Skip to content

Commit c855fa3

Browse files
committed
docs: update JSDoc comments
1 parent 5ea05a1 commit c855fa3

File tree

121 files changed

+446
-565
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

121 files changed

+446
-565
lines changed

src/components/accordion/CAccordion.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,19 @@ import classNames from 'classnames'
44

55
export interface CAccordionProps extends HTMLAttributes<HTMLDivElement> {
66
/**
7-
* The active item key. [docs]
7+
* The active item key.
88
*/
99
activeItemKey?: number | string
1010
/**
1111
* Make accordion items stay open when another item is opened
1212
*/
1313
alwaysOpen?: boolean
1414
/**
15-
* A string of all className you want applied to the base component. [docs]
15+
* A string of all className you want applied to the base component.
1616
*/
1717
className?: string
1818
/**
19-
* Removes the default background-color, some borders, and some rounded corners to render accordions edge-to-edge with their parent container. [docs]
19+
* Removes the default background-color, some borders, and some rounded corners to render accordions edge-to-edge with their parent container.
2020
*/
2121
flush?: boolean
2222
}

src/components/accordion/CAccordionBody.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { CAccordionItemContext } from './CAccordionItem'
77
import { CCollapse } from './../collapse/CCollapse'
88
export interface CAccordionBodyProps extends HTMLAttributes<HTMLDivElement> {
99
/**
10-
* A string of all className you want applied to the base component. [docs]
10+
* A string of all className you want applied to the base component.
1111
*/
1212
className?: string
1313
}

src/components/accordion/CAccordionButton.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { CAccordionItemContext } from './CAccordionItem'
66

77
export interface CAccordionButtonProps extends HTMLAttributes<HTMLButtonElement> {
88
/**
9-
* A string of all className you want applied to the base component. [docs]
9+
* A string of all className you want applied to the base component.
1010
*/
1111
className?: string
1212
}

src/components/accordion/CAccordionHeader.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { CAccordionButton } from './CAccordionButton'
66

77
export interface CAccordionHeaderProps extends HTMLAttributes<HTMLDivElement> {
88
/**
9-
* A string of all className you want applied to the base component. [docs]
9+
* A string of all className you want applied to the base component.
1010
*/
1111
className?: string
1212
}

src/components/accordion/CAccordionItem.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@ export const CAccordionItemContext = createContext({} as CAccordionItemContextPr
2121

2222
export interface CAccordionItemProps extends HTMLAttributes<HTMLDivElement> {
2323
/**
24-
* A string of all className you want applied to the base component. [docs]
24+
* A string of all className you want applied to the base component.
2525
*/
2626
className?: string
2727
/**
28-
* Item key. [docs]
28+
* Item key.
2929
*/
3030
itemKey?: number | string
3131
}

src/components/alert/CAlert.tsx

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,36 +8,33 @@ import { CCloseButton } from '../close-button/CCloseButton'
88

99
export interface CAlertProps extends HTMLAttributes<HTMLDivElement> {
1010
/**
11-
* A string of all className you want applied to the component. [docs]
11+
* A string of all className you want applied to the component.
1212
*/
1313
className?: string
1414
/**
15-
* Sets the color context of the component to one of CoreUI’s themed colors. [docs]
15+
* Sets the color context of the component to one of CoreUI’s themed colors.
1616
*
17-
* @type {'primary' | 'secondary' | 'success' | 'danger' | 'warning' | 'info' | 'dark' | 'light' | string }
18-
* @default 'primary'
17+
* @type 'primary' | 'secondary' | 'success' | 'danger' | 'warning' | 'info' | 'dark' | 'light' | string
1918
*/
2019
color: Colors
2120
/**
22-
* Optionally add a close button to alert and allow it to self dismiss. [docs]
21+
* Optionally add a close button to alert and allow it to self dismiss.
2322
*/
2423
dismissible?: boolean
2524
/**
26-
* Method called before the dissmiss animation has started. [docs]
25+
* Method called before the dissmiss animation has started.
2726
*/
2827
onDismiss?: () => void
2928
/**
30-
* Method called after the dissmiss animation has completed and the component is removed from the dom. [docs]
29+
* Method called after the dissmiss animation has completed and the component is removed from the dom.
3130
*/
3231
onDismissed?: () => void
3332
/**
34-
* Set the alert variant to a solid. [docs]
33+
* Set the alert variant to a solid.
3534
*/
3635
variant?: 'solid' | string
3736
/**
38-
* Toggle the visibility of component. [docs]
39-
*
40-
* @default true
37+
* Toggle the visibility of component.
4138
*/
4239
visible?: boolean
4340
}

src/components/alert/CAlertHeading.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,11 @@ import classNames from 'classnames'
44

55
export interface CAlertHeadingProps extends HTMLAttributes<HTMLHeadingElement> {
66
/**
7-
* A string of all className you want applied to the base component. [docs]
7+
* A string of all className you want applied to the base component.
88
*/
99
className?: string
1010
/**
11-
* Component used for the root node. Either a string to use a HTML element or a component. [docs]
12-
*
13-
* @default 'h4'
11+
* Component used for the root node. Either a string to use a HTML element or a component.
1412
*/
1513
component?: string | ElementType
1614
}

src/components/alert/CAlertLink.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { CLink } from '../link/CLink'
66

77
export interface CAlertLinkProps extends AnchorHTMLAttributes<HTMLAnchorElement> {
88
/**
9-
* A string of all className you want applied to the base component. [docs]
9+
* A string of all className you want applied to the base component.
1010
*/
1111
className?: string
1212
}

src/components/avatar/CAvatar.tsx

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -13,39 +13,39 @@ import {
1313

1414
export interface CAvatarProps extends HTMLAttributes<HTMLDivElement> {
1515
/**
16-
* A string of all className you want applied to the component. [docs]
16+
* A string of all className you want applied to the component.
1717
*/
1818
className?: string
1919
/**
20-
* Sets the color context of the component to one of CoreUI’s themed colors. [docs]
20+
* Sets the color context of the component to one of CoreUI’s themed colors.
2121
*
22-
* @type {'primary' | 'secondary' | 'success' | 'danger' | 'warning' | 'info' | 'dark' | 'light' | string}
22+
* @type 'primary' | 'secondary' | 'success' | 'danger' | 'warning' | 'info' | 'dark' | 'light' | string
2323
*/
2424
color?: Colors
2525
/**
26-
* Select the shape of the component. [docs]
26+
* Select the shape of the component.
2727
*
28-
* @type {'rounded' | 'rounded-top' | 'rounded-end' | 'rounded-bottom' | 'rounded-start' | 'rounded-circle' | 'rounded-pill' | 'rounded-0' | 'rounded-1' | 'rounded-2' | 'rounded-3' | string}
28+
* @type 'rounded' | 'rounded-top' | 'rounded-end' | 'rounded-bottom' | 'rounded-start' | 'rounded-circle' | 'rounded-pill' | 'rounded-0' | 'rounded-1' | 'rounded-2' | 'rounded-3' | string
2929
*/
3030
shape?: Shapes
3131
/**
32-
* Size the component small, large, or extra large. [docs]
32+
* Size the component small, large, or extra large.
3333
*/
3434
size?: string
3535
/**
36-
* The src attribute for the img element. [docs]
36+
* The src attribute for the img element.
3737
*/
3838
src?: string
3939
/**
40-
* Sets the color context of the status indicator to one of CoreUI’s themed colors. [docs]
40+
* Sets the color context of the status indicator to one of CoreUI’s themed colors.
4141
*
42-
* @type {'primary' | 'secondary' | 'success' | 'danger' | 'warning' | 'info' | 'dark' | 'light' | string}
42+
* @type 'primary' | 'secondary' | 'success' | 'danger' | 'warning' | 'info' | 'dark' | 'light' | string
4343
*/
4444
status?: Colors
4545
/**
46-
* Sets the text color of the component to one of CoreUI’s themed colors. [docs]
46+
* Sets the text color of the component to one of CoreUI’s themed colors.
4747
*
48-
* @type 'primary' | 'secondary' | 'success' | 'danger' | 'warning' | 'info' | 'dark' | 'light' | 'white' | 'muted' | string
48+
* @type 'primary' | 'secondary' | 'success' | 'danger' | 'warning' | 'info' | 'dark' | 'light' | 'white' | 'muted' | 'high-emphasis' | 'medium-emphasis' | 'disabled' | 'high-emphasis-inverse' | 'medium-emphasis-inverse' | 'disabled-inverse' | string
4949
*/
5050
textColor?: TextColors
5151
}

src/components/backdrop/CBackdrop.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ import classNames from 'classnames'
55

66
export interface CBackdropProps extends HTMLAttributes<HTMLDivElement> {
77
/**
8-
* A string of all className you want applied to the base component. [docs]
8+
* A string of all className you want applied to the base component.
99
*/
1010
className?: string
1111
/**
12-
* Toggle the visibility of modal component. [docs]
12+
* Toggle the visibility of modal component.
1313
*/
1414
visible?: boolean
1515
}

src/components/badge/CBadge.tsx

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -13,43 +13,37 @@ import {
1313

1414
export interface CBadgeProps extends HTMLAttributes<HTMLDivElement | HTMLSpanElement> {
1515
/**
16-
* A string of all className you want applied to the component. [docs]
16+
* A string of all className you want applied to the component.
1717
*/
1818
className?: string
1919
/**
20-
* Sets the color context of the component to one of CoreUI’s themed colors. [docs]
20+
* Sets the color context of the component to one of CoreUI’s themed colors.
2121
*
22-
* @type {'primary' | 'secondary' | 'success' | 'danger' | 'warning' | 'info' | 'dark' | 'light' | string}
22+
* @type 'primary' | 'secondary' | 'success' | 'danger' | 'warning' | 'info' | 'dark' | 'light' | string
2323
*/
2424
color?: Colors
2525
/**
26-
* Component used for the root node. Either a string to use a HTML element or a component. [docs]
27-
*
28-
* @default 'span'
26+
* Component used for the root node. Either a string to use a HTML element or a component.
2927
*/
3028
component?: string | ElementType
3129
/**
3230
* Position badge in one of the corners of a link or button.
33-
*
34-
* @type 'top-start' | 'top-end' | 'bottom-end' | 'bottom-start'
3531
*/
3632
position?: 'top-start' | 'top-end' | 'bottom-end' | 'bottom-start'
3733
/**
38-
* Select the shape of the component. [docs]
34+
* Select the shape of the component.
3935
*
4036
* @type 'rounded' | 'rounded-top' | 'rounded-end' | 'rounded-bottom' | 'rounded-start' | 'rounded-circle' | 'rounded-pill' | 'rounded-0' | 'rounded-1' | 'rounded-2' | 'rounded-3' | string
4137
*/
4238
shape?: Shapes
4339
/**
44-
* Size the component small. [docs]
45-
*
46-
* @type 'sm'
40+
* Size the component small.
4741
*/
4842
size?: 'sm'
4943
/**
50-
* Sets the text color of the component to one of CoreUI’s themed colors. [docs]
44+
* Sets the text color of the component to one of CoreUI’s themed colors.
5145
*
52-
* @type 'primary' | 'secondary' | 'success' | 'danger' | 'warning' | 'info' | 'dark' | 'light' | 'white' | 'muted' | string
46+
* @type 'primary' | 'secondary' | 'success' | 'danger' | 'warning' | 'info' | 'dark' | 'light' | 'white' | 'muted' | 'high-emphasis' | 'medium-emphasis' | 'disabled' | 'high-emphasis-inverse' | 'medium-emphasis-inverse' | 'disabled-inverse' | string
5347
*/
5448
textColor?: TextColors
5549
}

src/components/breadcrumb/CBreadcrumb.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import classNames from 'classnames'
44

55
export interface CBreadcrumbProps extends HTMLAttributes<HTMLOListElement> {
66
/**
7-
* A string of all className you want applied to the component. [docs]
7+
* A string of all className you want applied to the component.
88
*/
99
className?: string
1010
}

src/components/breadcrumb/CBreadcrumbItem.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@ import { CLink } from '../link/CLink'
66

77
export interface CBreadcrumbItemProps extends HTMLAttributes<HTMLLIElement> {
88
/**
9-
* Toggle the active state for the component. [docs]
9+
* Toggle the active state for the component.
1010
*/
1111
active?: boolean
1212
/**
13-
* A string of all className you want applied to the base component. [docs]
13+
* A string of all className you want applied to the base component.
1414
*/
1515
className?: string
1616
/**
17-
* The `href` attribute for the inner `<CLink>` component. [docs]
17+
* The `href` attribute for the inner `<CLink>` component.
1818
*/
1919
href?: string
2020
}

src/components/button-group/CButtonGroup.tsx

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,15 @@ import classNames from 'classnames'
44

55
export interface CButtonGroupProps extends HTMLAttributes<HTMLDivElement> {
66
/**
7-
* A string of all className you want applied to the base component. [docs]
7+
* A string of all className you want applied to the base component.
88
*/
99
className?: string
1010
/**
11-
* Size the component small or large. [docs]
12-
*
13-
* @type {'sm' | 'lg'}
11+
* Size the component small or large.
1412
*/
1513
size?: 'sm' | 'lg'
1614
/**
17-
* Create a set of buttons that appear vertically stacked rather than horizontally. Split button dropdowns are not supported here. [docs]
15+
* Create a set of buttons that appear vertically stacked rather than horizontally. Split button dropdowns are not supported here.
1816
*/
1917
vertical?: boolean
2018
}

src/components/button-group/CButtonToolbar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import classNames from 'classnames'
44

55
export interface CButtonToolbarProps extends HTMLAttributes<HTMLDivElement> {
66
/**
7-
* A string of all className you want applied to the base component. [docs]
7+
* A string of all className you want applied to the base component.
88
*/
99
className?: string
1010
}

src/components/button/CButton.tsx

Lines changed: 11 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -7,56 +7,52 @@ import { CLink } from '../link/CLink'
77

88
export interface CButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
99
/**
10-
* Toggle the active state for the component. [docs]
10+
* Toggle the active state for the component.
1111
*/
1212
active?: boolean
1313
/**
14-
* A string of all className you want applied to the base component. [docs]
14+
* A string of all className you want applied to the base component.
1515
*/
1616
className?: string
1717
/**
18-
* Sets the color context of the component to one of CoreUI’s themed colors. [docs]
18+
* Sets the color context of the component to one of CoreUI’s themed colors.
1919
*
2020
* @type 'primary' | 'secondary' | 'success' | 'danger' | 'warning' | 'info' | 'dark' | 'light' | string
2121
*/
2222
color?: Colors
2323
/**
24-
* Component used for the root node. Either a string to use a HTML element or a component. [docs]
24+
* Component used for the root node. Either a string to use a HTML element or a component.
2525
*/
2626
component?: string | ElementType
2727
/**
28-
* Toggle the disabled state for the component. [docs]
28+
* Toggle the disabled state for the component.
2929
*/
3030
disabled?: boolean
3131
/**
32-
* The href attribute specifies the URL of the page the link goes to. [docs]
32+
* The href attribute specifies the URL of the page the link goes to.
3333
*/
3434
href?: string
3535
/**
36-
* The role attribute describes the role of an element in programs that can make use of it, such as screen readers or magnifiers. [docs]
36+
* The role attribute describes the role of an element in programs that can make use of it, such as screen readers or magnifiers.
3737
*/
3838
role?: string
3939
/**
40-
* Select the shape of the component. [docs]
40+
* Select the shape of the component.
4141
*
4242
* @type 'rounded' | 'rounded-top' | 'rounded-end' | 'rounded-bottom' | 'rounded-start' | 'rounded-circle' | 'rounded-pill' | 'rounded-0' | 'rounded-1' | 'rounded-2' | 'rounded-3' | string
4343
*/
4444
shape?: Shapes
4545
/**
46-
* Size the component small or large. [docs]
47-
*
48-
* @type 'sm' | 'lg'
46+
* Size the component small or large.
4947
*/
5048
size?: 'sm' | 'lg'
5149
/**
5250
* Specifies the type of button. Always specify the type attribute for the `<button>` element.
53-
* Different browsers may use different default types for the `<button>` element. [docs]
54-
*
55-
* @type 'button' | 'submit' | 'reset'
51+
* Different browsers may use different default types for the `<button>` element.
5652
*/
5753
type?: 'button' | 'submit' | 'reset'
5854
/**
59-
* Set the button variant to an outlined button or a ghost button. [docs]
55+
* Set the button variant to an outlined button or a ghost button.
6056
*/
6157
variant?: 'outline' | 'ghost'
6258
}

src/components/callout/CCallout.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ import { Colors, colorPropType } from '../Types'
66

77
export interface CCalloutProps extends HTMLAttributes<HTMLDivElement> {
88
/**
9-
* A string of all className you want applied to the base component. [docs]
9+
* A string of all className you want applied to the base component.
1010
*/
1111
className?: string
1212
/**
13-
* Sets the color context of the component to one of CoreUI’s themed colors. [docs]
13+
* Sets the color context of the component to one of CoreUI’s themed colors.
1414
*
15-
* @type {'primary' | 'secondary' | 'success' | 'danger' | 'warning' | 'info' | 'dark' | 'light' | string}
15+
* @type 'primary' | 'secondary' | 'success' | 'danger' | 'warning' | 'info' | 'dark' | 'light' | string
1616
*/
1717
color?: Colors
1818
}

0 commit comments

Comments
 (0)