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
}

0 commit comments

Comments
 (0)