Skip to content

Commit

Permalink
chore: component docs
Browse files Browse the repository at this point in the history
  • Loading branch information
nkrantz committed Sep 28, 2023
1 parent 63e78c4 commit dc24e0d
Show file tree
Hide file tree
Showing 50 changed files with 3,516 additions and 1,355 deletions.
1 change: 1 addition & 0 deletions packages/paste-codemods/tools/.cache/mappings.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
"Callout": "@twilio-paste/core/callout",
"CalloutHeading": "@twilio-paste/core/callout",
"CalloutList": "@twilio-paste/core/callout",
"CalloutListItem": "@twilio-paste/core/callout",
"CalloutText": "@twilio-paste/core/callout",
"Card": "@twilio-paste/core/card",
"ChatComposer": "@twilio-paste/core/chat-composer",
Expand Down
12 changes: 6 additions & 6 deletions packages/paste-core/components/alert-dialog/type-docs.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,42 +2,42 @@
"AlertDialog": {
"heading": {
"type": "string",
"defaultValue": "null",
"defaultValue": null,
"required": true,
"externalProp": false,
"description": "Header for the Alert Dialog"
},
"isOpen": {
"type": "boolean",
"defaultValue": "null",
"defaultValue": null,
"required": true,
"externalProp": false,
"description": "Determines whether the Alert Dialog is open"
},
"onConfirm": {
"type": "() => void",
"defaultValue": "null",
"defaultValue": null,
"required": true,
"externalProp": false,
"description": "Function to run when the confirm button is used"
},
"onConfirmLabel": {
"type": "string",
"defaultValue": "null",
"defaultValue": null,
"required": true,
"externalProp": false,
"description": "Label for the confirm button"
},
"onDismiss": {
"type": "() => void",
"defaultValue": "null",
"defaultValue": null,
"required": true,
"externalProp": false,
"description": "Function to run when the dismiss button is used"
},
"onDismissLabel": {
"type": "string",
"defaultValue": "null",
"defaultValue": null,
"required": true,
"externalProp": false,
"description": "Label for the dismiss button"
Expand Down
4 changes: 2 additions & 2 deletions packages/paste-core/components/alert/type-docs.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"Alert": {
"variant": {
"type": "AlertVariants",
"defaultValue": "null",
"defaultValue": null,
"required": true,
"externalProp": false
},
Expand Down Expand Up @@ -422,7 +422,7 @@
},
"element": {
"type": "string",
"defaultValue": "'Alert'",
"defaultValue": "'ALERT'",
"required": false,
"externalProp": false,
"description": "Overrides the default element name to apply unique styles with the Customization Provider"
Expand Down
4 changes: 2 additions & 2 deletions packages/paste-core/components/avatar/type-docs.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"Avatar": {
"name": {
"type": "string",
"defaultValue": "null",
"defaultValue": null,
"required": true,
"externalProp": false,
"description": "Used to determine the initials, alt text (if using an image), or title (if using an icon) of the Avatar."
Expand Down Expand Up @@ -443,7 +443,7 @@
},
"icon": {
"type": "FC<PropsWithChildren<GenericIconProps>>",
"defaultValue": "null",
"defaultValue": null,
"required": false,
"externalProp": false,
"description": "Pass a Paste Icon to display in the Avatar"
Expand Down
2 changes: 1 addition & 1 deletion packages/paste-core/components/callout/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "4.0.0",
"category": "feedback",
"status": "production",
"description": "A callout is highlighted information in a larger page.",
"description": "A Callout is a banner that highlights important information on a page.",
"author": "Twilio Inc.",
"license": "MIT",
"main:dev": "src/index.tsx",
Expand Down
7 changes: 7 additions & 0 deletions packages/paste-core/components/callout/src/CalloutList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,13 @@ CalloutList.displayName = 'CalloutList';

export interface CalloutListItemProps extends Partial<Omit<HTMLLIElement, 'children'>> {
children?: React.ReactNode;
/**
* Overrides the default element name to apply unique styles with the Customization Provider
*
* @default 'CALLOUT_LIST_ITEM'
* @type {BoxProps['element']}
* @memberof CalloutListProps
*/
element?: BoxProps['element'];
}

Expand Down
2 changes: 2 additions & 0 deletions packages/paste-core/components/callout/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,7 @@ export {CalloutHeading} from './CalloutHeading';
export type {CalloutHeadingProps} from './CalloutHeading';
export {CalloutList} from './CalloutList';
export type {CalloutListProps} from './CalloutList';
export {CalloutListItem} from './CalloutList';
export type {CalloutListItemProps} from './CalloutList';
export {CalloutText} from './CalloutText';
export type {CalloutTextProps} from './CalloutText';

0 comments on commit dc24e0d

Please sign in to comment.