From 8f532dc6812243337a5a47c1014025f0d0eff66c Mon Sep 17 00:00:00 2001 From: Eric Liu Date: Sun, 14 Aug 2022 12:59:21 -0700 Subject: [PATCH] Run "yarn build:docs" --- COMPONENT_INDEX.md | 23 ++++++++++--------- docs/src/COMPONENT_API.json | 12 ++++++++++ .../ToastNotification.svelte.d.ts | 7 ++++++ 3 files changed, 31 insertions(+), 11 deletions(-) diff --git a/COMPONENT_INDEX.md b/COMPONENT_INDEX.md index d43e129c..279d1992 100644 --- a/COMPONENT_INDEX.md +++ b/COMPONENT_INDEX.md @@ -4306,17 +4306,18 @@ export type CarbonTheme = "white" | "g10" | "g80" | "g90" | "g100"; ### Props -| Prop name | Required | Kind | Reactive | Type | Default value | Description | -| :-------------- | :------- | :--------------- | :------- | -------------------------------------------------------------------------------------------------------------- | ---------------------------------- | ----------------------------------------------------------------------- | -| kind | No | let | No | "error" | "info" | "info-square" | "success" | "warning" | "warning-alt" | "error" | Specify the kind of notification | -| lowContrast | No | let | No | boolean | false | Set to `true` to use the low contrast variant | -| timeout | No | let | No | number | 0 | Set the timeout duration (ms) to hide the notification after opening it | -| role | No | let | No | string | "alert" | Set the `role` attribute | -| title | No | let | No | string | "" | Specify the title text | -| subtitle | No | let | No | string | "" | Specify the subtitle text | -| caption | No | let | No | string | "" | Specify the caption text | -| iconDescription | No | let | No | string | "Closes notification" | Specify the ARIA label for the icon | -| hideCloseButton | No | let | No | boolean | false | Set to `true` to hide the close button | +| Prop name | Required | Kind | Reactive | Type | Default value | Description | +| :-------------- | :------- | :--------------- | :------- | -------------------------------------------------------------------------------------------------------------- | ---------------------------------- | ----------------------------------------------------------------------------------------- | +| kind | No | let | No | "error" | "info" | "info-square" | "success" | "warning" | "warning-alt" | "error" | Specify the kind of notification | +| lowContrast | No | let | No | boolean | false | Set to `true` to use the low contrast variant | +| timeout | No | let | No | number | 0 | Set the timeout duration (ms) to hide the notification after opening it | +| role | No | let | No | string | "alert" | Set the `role` attribute | +| title | No | let | No | string | "" | Specify the title text | +| subtitle | No | let | No | string | "" | Specify the subtitle text | +| caption | No | let | No | string | "" | Specify the caption text | +| iconDescription | No | let | No | string | "Closes notification" | Specify the ARIA label for the icon | +| hideCloseButton | No | let | No | boolean | false | Set to `true` to hide the close button | +| fullWidth | No | let | No | boolean | false | Set to `true` for the notification to span
the full width of its containing element. | ### Slots diff --git a/docs/src/COMPONENT_API.json b/docs/src/COMPONENT_API.json index e149ae27..0d9c9b5e 100644 --- a/docs/src/COMPONENT_API.json +++ b/docs/src/COMPONENT_API.json @@ -13386,6 +13386,18 @@ "isRequired": false, "constant": false, "reactive": false + }, + { + "name": "fullWidth", + "kind": "let", + "description": "Set to `true` for the notification to span\nthe full width of its containing element.", + "type": "boolean", + "value": "false", + "isFunction": false, + "isFunctionDeclaration": false, + "isRequired": false, + "constant": false, + "reactive": false } ], "moduleExports": [], diff --git a/types/Notification/ToastNotification.svelte.d.ts b/types/Notification/ToastNotification.svelte.d.ts index dd22e4aa..9e86f6ed 100644 --- a/types/Notification/ToastNotification.svelte.d.ts +++ b/types/Notification/ToastNotification.svelte.d.ts @@ -62,6 +62,13 @@ export interface ToastNotificationProps * @default false */ hideCloseButton?: boolean; + + /** + * Set to `true` for the notification to span + * the full width of its containing element. + * @default false + */ + fullWidth?: boolean; } export default class ToastNotification extends SvelteComponentTyped<