From ad7474f3f3e5896a70f593eb380e80f37b28e451 Mon Sep 17 00:00:00 2001 From: metonym Date: Wed, 20 Oct 2021 13:33:06 -0700 Subject: [PATCH] fix(types): update description for icon props #865 --- COMPONENT_INDEX.md | 128 +++++++++--------- docs/src/COMPONENT_API.json | 34 ++--- src/Button/Button.svelte | 2 +- src/ContextMenu/ContextMenuOption.svelte | 2 +- src/Icon/Icon.svelte | 2 +- src/Link/Link.svelte | 2 +- src/Notification/NotificationButton.svelte | 2 +- src/OverflowMenu/OverflowMenu.svelte | 2 +- src/Search/Search.svelte | 2 +- src/Tag/Tag.svelte | 2 +- src/Tooltip/Tooltip.svelte | 2 +- src/TooltipIcon/TooltipIcon.svelte | 2 +- src/TreeView/TreeViewNode.svelte | 2 +- src/TreeView/TreeViewNodeList.svelte | 2 +- src/UIShell/GlobalHeader/Header.svelte | 4 +- src/UIShell/GlobalHeader/HeaderAction.svelte | 4 +- .../GlobalHeader/HeaderActionLink.svelte | 2 +- src/UIShell/SideNav/HamburgerMenu.svelte | 4 +- src/UIShell/SideNav/SideNavLink.svelte | 2 +- src/UIShell/SideNav/SideNavMenu.svelte | 2 +- types/Button/Button.svelte.d.ts | 2 +- .../ContextMenu/ContextMenuOption.svelte.d.ts | 2 +- types/Icon/Icon.svelte.d.ts | 2 +- types/Link/Link.svelte.d.ts | 2 +- .../NotificationButton.svelte.d.ts | 2 +- types/OverflowMenu/OverflowMenu.svelte.d.ts | 2 +- types/Search/Search.svelte.d.ts | 2 +- types/Tag/Tag.svelte.d.ts | 2 +- types/Tooltip/Tooltip.svelte.d.ts | 2 +- types/TooltipIcon/TooltipIcon.svelte.d.ts | 2 +- types/UIShell/GlobalHeader/Header.svelte.d.ts | 4 +- .../GlobalHeader/HeaderAction.svelte.d.ts | 4 +- .../GlobalHeader/HeaderActionLink.svelte.d.ts | 2 +- types/UIShell/SideNav/SideNavLink.svelte.d.ts | 2 +- types/UIShell/SideNav/SideNavMenu.svelte.d.ts | 2 +- 35 files changed, 119 insertions(+), 119 deletions(-) diff --git a/COMPONENT_INDEX.md b/COMPONENT_INDEX.md index ae29fbf1..9e76a2d0 100644 --- a/COMPONENT_INDEX.md +++ b/COMPONENT_INDEX.md @@ -388,7 +388,7 @@ export type BreakpointValue = 320 | 672 | 1056 | 1312 | 1584; | size | let | No | "default" | "field" | "small" | "lg" | "xl" | "default" | Specify the size of button | | expressive | let | No | boolean | false | Set to `true` to use Carbon's expressive typesetting | | isSelected | let | No | boolean | false | Set to `true` to enable the selected state for an icon-only, ghost button | -| icon | let | No | typeof import("svelte").SvelteComponent | -- | Specify the icon from `carbon-icons-svelte` to render | +| icon | let | No | typeof import("svelte").SvelteComponent | -- | Specify the icon to render | | iconDescription | let | No | string | -- | Specify the ARIA label for the button icon | | tooltipAlignment | let | No | "start" | "center" | "end" | "center" | Set the alignment of the tooltip relative to the icon
`hasIconOnly` must be set to `true` | | tooltipPosition | let | No | "top" | "right" | "bottom" | "left" | "bottom" | Set the position of the tooltip relative to the icon | @@ -844,7 +844,7 @@ None. | ref | let | Yes | null | HTMLLIElement | null | Obtain a reference to the list item HTML element | | selectable | let | Yes | boolean | false | Set to `true` to enable the selectable variant
Automatically set to `true` if `selected` is `true` | | selected | let | Yes | boolean | false | Set to `true` to use the selected variant | -| icon | let | Yes | typeof import("svelte").SvelteComponent | -- | Specify the icon from `carbon-icons-svelte` to render
Icon is rendered to the left of the label text | +| icon | let | Yes | typeof import("svelte").SvelteComponent | -- | Specify the icon to render
Icon is rendered to the left of the label text | | indented | let | Yes | boolean | false | Set to `true` to indent the label | | kind | let | No | "default" | "danger" | "default" | Specify the kind of option | | disabled | let | No | boolean | false | Set to `true` to enable the disabled state | @@ -1578,8 +1578,8 @@ None. | platformName | let | No | string | "" | Specify the platform name
Alternatively, use the named slot "platform" (e.g., <span slot="platform">...</span>) | | persistentHamburgerMenu | let | No | boolean | false | Set to `true` to persist the hamburger menu | | expansionBreakpoint | let | No | number | 1056 | The window width (px) at which the SideNav is expanded and the hamburger menu is hidden
1056 represents the "large" breakpoint in pixels from the Carbon Design System:
small: 320
medium: 672
large: 1056
x-large: 1312
max: 1584 | -| iconMenu | let | No | typeof import("svelte").SvelteComponent | -- | Specify the icon from `carbon-icons-svelte` to render for the closed state
Defaults to `Menu20` | -| iconClose | let | No | typeof import("svelte").SvelteComponent | -- | Specify the icon from `carbon-icons-svelte` to render for the opened state
Defaults to `Close20` | +| iconMenu | let | No | typeof import("svelte").SvelteComponent | -- | Specify the icon to render for the closed state
Defaults to `Menu20` | +| iconClose | let | No | typeof import("svelte").SvelteComponent | -- | Specify the icon to render for the opened state
Defaults to `Close20` | ### Slots @@ -1613,8 +1613,8 @@ export interface HeaderActionSlideTransition { | :--------- | :--------------- | :------- | :---------------------------------------------------- | ------------------------------ | ------------------------------------------------------------------------------------------------------------- | | ref | let | Yes | null | HTMLButtonElement | null | Obtain a reference to the button HTML element | | isOpen | let | Yes | boolean | false | Set to `true` to open the panel | -| icon | let | No | typeof import("svelte").SvelteComponent | -- | Specify the icon from `carbon-icons-svelte` to render | -| closeIcon | let | No | typeof import("svelte").SvelteComponent | -- | Specify the close icon from `carbon-icons-svelte` to render | +| icon | let | No | typeof import("svelte").SvelteComponent | -- | Specify the icon to render | +| closeIcon | let | No | typeof import("svelte").SvelteComponent | -- | Specify the icon to render when the action panel is open | | text | let | No | string | -- | Specify the text
Alternatively, use the named slot "text" (e.g., <div slot="text">...</div>) | | transition | let | No | false | HeaderActionSlideTransition | { duration: 200 } | Customize the panel transition (i.e., `transition:slide`)
Set to `false` to disable the transition | @@ -1636,12 +1636,12 @@ export interface HeaderActionSlideTransition { ### Props -| Prop name | Kind | Reactive | Type | Default value | Description | -| :----------- | :--------------- | :------- | :--------------------------------------------------- | ------------------ | ----------------------------------------------------- | -| ref | let | Yes | null | HTMLAnchorElement | null | Obtain a reference to the HTML anchor element | -| linkIsActive | let | No | boolean | false | Set to `true` to use the active state | -| href | let | No | string | -- | Specify the `href` attribute | -| icon | let | No | typeof import("svelte").SvelteComponent | -- | Specify the icon from `carbon-icons-svelte` to render | +| Prop name | Kind | Reactive | Type | Default value | Description | +| :----------- | :--------------- | :------- | :--------------------------------------------------- | ------------------ | --------------------------------------------- | +| ref | let | Yes | null | HTMLAnchorElement | null | Obtain a reference to the HTML anchor element | +| linkIsActive | let | No | boolean | false | Set to `true` to use the active state | +| href | let | No | string | -- | Specify the `href` attribute | +| icon | let | No | typeof import("svelte").SvelteComponent | -- | Specify the icon to render | ### Slots @@ -1884,10 +1884,10 @@ None. ### Props -| Prop name | Kind | Reactive | Type | Default value | Description | -| :-------- | :--------------- | :------- | :--------------------------------------------------- | ------------------ | ----------------------------------------------------- | -| render | let | No | typeof import("svelte").SvelteComponent | -- | Specify the icon from `carbon-icons-svelte` to render | -| skeleton | let | No | boolean | false | Set to `true` to display the skeleton state | +| Prop name | Kind | Reactive | Type | Default value | Description | +| :-------- | :--------------- | :------- | :--------------------------------------------------- | ------------------ | ------------------------------------------- | +| render | let | No | typeof import("svelte").SvelteComponent | -- | Specify the icon to render | +| skeleton | let | No | boolean | false | Set to `true` to display the skeleton state | ### Slots @@ -2013,15 +2013,15 @@ None. ### Props -| Prop name | Kind | Reactive | Type | Default value | Description | -| :-------- | :--------------- | :------- | :--------------------------------------------------------------------- | ------------------ | ----------------------------------------------------------------------------------- | -| ref | let | Yes | null | HTMLAnchorElement | HTMLParagraphElement | null | Obtain a reference to the top-level HTML element | -| size | let | No | "sm" | "lg" | -- | Specify the size of the link | -| href | let | No | string | -- | Specify the href value | -| inline | let | No | boolean | false | Set to `true` to use the inline variant | -| icon | let | No | typeof import("svelte").SvelteComponent | -- | Specify the icon from `carbon-icons-svelte` to render
`inline` must be `false` | -| disabled | let | No | boolean | false | Set to `true` to disable the checkbox | -| visited | let | No | boolean | false | Set to `true` to allow visited styles | +| Prop name | Kind | Reactive | Type | Default value | Description | +| :-------- | :--------------- | :------- | :--------------------------------------------------------------------- | ------------------ | -------------------------------------------------------- | +| ref | let | Yes | null | HTMLAnchorElement | HTMLParagraphElement | null | Obtain a reference to the top-level HTML element | +| size | let | No | "sm" | "lg" | -- | Specify the size of the link | +| href | let | No | string | -- | Specify the href value | +| inline | let | No | boolean | false | Set to `true` to use the inline variant | +| icon | let | No | typeof import("svelte").SvelteComponent | -- | Specify the icon to render
`inline` must be `false` | +| disabled | let | No | boolean | false | Set to `true` to disable the checkbox | +| visited | let | No | boolean | false | Set to `true` to allow visited styles | ### Slots @@ -2480,12 +2480,12 @@ None. ### Props -| Prop name | Kind | Reactive | Type | Default value | Description | -| :--------------- | :--------------- | :------- | :--------------------------------------------------- | ------------------------- | ----------------------------------------------------- | -| notificationType | let | No | "toast" | "inline" | "toast" | Set the type of notification | -| icon | let | No | typeof import("svelte").SvelteComponent | -- | Specify the icon from `carbon-icons-svelte` to render | -| title | let | No | string | -- | Specify the title of the icon | -| iconDescription | let | No | string | "Close icon" | Specify the ARIA label for the icon | +| Prop name | Kind | Reactive | Type | Default value | Description | +| :--------------- | :--------------- | :------- | :--------------------------------------------------- | ------------------------- | ----------------------------------- | +| notificationType | let | No | "toast" | "inline" | "toast" | Set the type of notification | +| icon | let | No | typeof import("svelte").SvelteComponent | -- | Specify the icon to render | +| title | let | No | string | -- | Specify the title of the icon | +| iconDescription | let | No | string | "Close icon" | Specify the ARIA label for the icon | ### Slots @@ -2668,7 +2668,7 @@ None. | :--------------- | :--------------- | :------- | :--------------------------------------------------- | ------------------------------------------------ | ----------------------------------------------------------------- | | menuRef | let | Yes | null | HTMLUListElement | null | Obtain a reference to the overflow menu element | | buttonRef | let | Yes | null | HTMLButtonElement | null | Obtain a reference to the trigger button element | -| icon | let | Yes | typeof import("svelte").SvelteComponent | -- | Specify the icon from `carbon-icons-svelte` to render | +| icon | let | Yes | typeof import("svelte").SvelteComponent | -- | Specify the icon to render | | open | let | Yes | boolean | false | Set to `true` to open the menu | | size | let | No | "sm" | "xl" | -- | Specify the size of the overflow menu | | direction | let | No | "top" | "bottom" | "bottom" | Specify the direction of the overflow menu relative to the button | @@ -3165,7 +3165,7 @@ None. | autofocus | let | No | boolean | false | Set to `true` to auto focus the search element | | closeButtonLabelText | let | No | string | "Clear search input" | Specify the close button label text | | labelText | let | No | string | "" | Specify the label text | -| icon | let | No | typeof import("svelte").SvelteComponent | -- | Specify the icon from `carbon-icons-svelte` to render | +| icon | let | No | typeof import("svelte").SvelteComponent | -- | Specify the icon to render | | id | let | No | string | "ccs-" + Math.random().toString(36) | Set an id for the input element | ### Slots @@ -3405,13 +3405,13 @@ None. ### Props -| Prop name | Kind | Reactive | Type | Default value | Description | -| :--------- | :--------------- | :------- | :--------------------------------------------------- | ------------------ | ----------------------------------------------------- | -| ref | let | Yes | null | HTMLAnchorElement | null | Obtain a reference to the HTML anchor element | -| isSelected | let | No | boolean | false | Set to `true` to select the current link | -| href | let | No | string | -- | Specify the `href` attribute | -| text | let | No | string | -- | Specify the text | -| icon | let | No | typeof import("svelte").SvelteComponent | -- | Specify the icon from `carbon-icons-svelte` to render | +| Prop name | Kind | Reactive | Type | Default value | Description | +| :--------- | :--------------- | :------- | :--------------------------------------------------- | ------------------ | --------------------------------------------- | +| ref | let | Yes | null | HTMLAnchorElement | null | Obtain a reference to the HTML anchor element | +| isSelected | let | No | boolean | false | Set to `true` to select the current link | +| href | let | No | string | -- | Specify the `href` attribute | +| text | let | No | string | -- | Specify the text | +| icon | let | No | typeof import("svelte").SvelteComponent | -- | Specify the icon to render | ### Slots @@ -3427,12 +3427,12 @@ None. ### Props -| Prop name | Kind | Reactive | Type | Default value | Description | -| :-------- | :--------------- | :------- | :--------------------------------------------------- | ------------------ | ----------------------------------------------------- | -| ref | let | Yes | null | HTMLButtonElement | null | Obtain a reference to the HTML button element | -| expanded | let | Yes | boolean | false | Set to `true` to toggle the expanded state | -| text | let | No | string | -- | Specify the text | -| icon | let | No | typeof import("svelte").SvelteComponent | -- | Specify the icon from `carbon-icons-svelte` to render | +| Prop name | Kind | Reactive | Type | Default value | Description | +| :-------- | :--------------- | :------- | :--------------------------------------------------- | ------------------ | --------------------------------------------- | +| ref | let | Yes | null | HTMLButtonElement | null | Obtain a reference to the HTML button element | +| expanded | let | Yes | boolean | false | Set to `true` to toggle the expanded state | +| text | let | No | string | -- | Specify the text | +| icon | let | No | typeof import("svelte").SvelteComponent | -- | Specify the icon to render | ### Slots @@ -4041,7 +4041,7 @@ None. | interactive | let | No | boolean | false | Set to `true` to render a `button` element instead of a `div` | | skeleton | let | No | boolean | false | Set to `true` to display the skeleton state | | title | let | No | string | "Clear filter" | Set the title for the close button in a filterable tag | -| icon | let | No | typeof import("svelte").SvelteComponent | -- | Specify the icon from `carbon-icons-svelte` to render | +| icon | let | No | typeof import("svelte").SvelteComponent | -- | Specify the icon to render | | id | let | No | string | "ccs-" + Math.random().toString(36) | Set an id for the filterable tag | ### Slots @@ -4628,22 +4628,22 @@ None. ### Props -| Prop name | Kind | Reactive | Type | Default value | Description | -| :-------------- | :--------------- | :------- | :-------------------------------------------------------------- | ------------------------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------- | -| refIcon | let | Yes | null | HTMLDivElement | null | Obtain a reference to the icon HTML element | -| refTooltip | let | Yes | null | HTMLDivElement | null | Obtain a reference to the tooltip HTML element | -| ref | let | Yes | null | HTMLDivElement | null | Obtain a reference to the trigger text HTML element | -| open | let | Yes | boolean | false | Set to `true` to open the tooltip | -| align | let | No | "start" | "center" | "end" | "center" | Set the alignment of the tooltip relative to the icon | -| direction | let | No | "top" | "right" | "bottom" | "left" | "bottom" | Set the direction of the tooltip relative to the button | -| hideIcon | let | No | boolean | false | Set to `true` to hide the tooltip icon | -| icon | let | No | typeof import("svelte").SvelteComponent | -- | Specify the icon from `carbon-icons-svelte` to render for the tooltip button
Icon size must be 16px (e.g., `Add16`, `Task16`) | -| iconDescription | let | No | string | "" | Specify the ARIA label for the tooltip button | -| iconName | let | No | string | "" | Specify the icon name attribute | -| tabindex | let | No | string | "0" | Set the button tabindex | -| tooltipId | let | No | string | "ccs-" + Math.random().toString(36) | Set an id for the tooltip | -| triggerId | let | No | string | "ccs-" + Math.random().toString(36) | Set an id for the tooltip button | -| triggerText | let | No | string | "" | Set the tooltip button text | +| Prop name | Kind | Reactive | Type | Default value | Description | +| :-------------- | :--------------- | :------- | :-------------------------------------------------------------- | ------------------------------------------------ | ------------------------------------------------------------------------------------------------------- | +| refIcon | let | Yes | null | HTMLDivElement | null | Obtain a reference to the icon HTML element | +| refTooltip | let | Yes | null | HTMLDivElement | null | Obtain a reference to the tooltip HTML element | +| ref | let | Yes | null | HTMLDivElement | null | Obtain a reference to the trigger text HTML element | +| open | let | Yes | boolean | false | Set to `true` to open the tooltip | +| align | let | No | "start" | "center" | "end" | "center" | Set the alignment of the tooltip relative to the icon | +| direction | let | No | "top" | "right" | "bottom" | "left" | "bottom" | Set the direction of the tooltip relative to the button | +| hideIcon | let | No | boolean | false | Set to `true` to hide the tooltip icon | +| icon | let | No | typeof import("svelte").SvelteComponent | -- | Specify the icon to render for the tooltip button
Icon size must be 16px (e.g., `Add16`, `Task16`) | +| iconDescription | let | No | string | "" | Specify the ARIA label for the tooltip button | +| iconName | let | No | string | "" | Specify the icon name attribute | +| tabindex | let | No | string | "0" | Set the button tabindex | +| tooltipId | let | No | string | "ccs-" + Math.random().toString(36) | Set an id for the tooltip | +| triggerId | let | No | string | "ccs-" + Math.random().toString(36) | Set an id for the tooltip button | +| triggerText | let | No | string | "" | Set the tooltip button text | ### Slots @@ -4715,7 +4715,7 @@ None. | :---------- | :--------------- | :------- | :-------------------------------------------------------------- | ------------------------------------------------ | ------------------------------------------------------------------------ | | ref | let | Yes | null | HTMLButtonElement | null | Obtain a reference to the button HTML element | | tooltipText | let | No | string | "" | Specify the tooltip text.
Alternatively, use the "tooltipText" slot | -| icon | let | No | typeof import("svelte").SvelteComponent | -- | Specify the icon from `carbon-icons-svelte` to render | +| icon | let | No | typeof import("svelte").SvelteComponent | -- | Specify the icon to render | | disabled | let | No | boolean | false | Set to `true` to disable the tooltip icon | | align | let | No | "start" | "center" | "end" | "center" | Set the alignment of the tooltip relative to the icon | | direction | let | No | "top" | "right" | "bottom" | "left" | "bottom" | Set the direction of the tooltip relative to the icon | diff --git a/docs/src/COMPONENT_API.json b/docs/src/COMPONENT_API.json index 790f58a2..9176f272 100644 --- a/docs/src/COMPONENT_API.json +++ b/docs/src/COMPONENT_API.json @@ -489,7 +489,7 @@ { "name": "icon", "kind": "let", - "description": "Specify the icon from `carbon-icons-svelte` to render", + "description": "Specify the icon to render", "type": "typeof import(\"svelte\").SvelteComponent", "isFunction": false, "isFunctionDeclaration": false, @@ -1942,7 +1942,7 @@ { "name": "icon", "kind": "let", - "description": "Specify the icon from `carbon-icons-svelte` to render\nIcon is rendered to the left of the label text", + "description": "Specify the icon to render\nIcon is rendered to the left of the label text", "type": "typeof import(\"svelte\").SvelteComponent", "isFunction": false, "isFunctionDeclaration": false, @@ -4339,7 +4339,7 @@ { "name": "iconMenu", "kind": "let", - "description": "Specify the icon from `carbon-icons-svelte` to render for the closed state\nDefaults to `Menu20`", + "description": "Specify the icon to render for the closed state\nDefaults to `Menu20`", "type": "typeof import(\"svelte\").SvelteComponent", "isFunction": false, "isFunctionDeclaration": false, @@ -4349,7 +4349,7 @@ { "name": "iconClose", "kind": "let", - "description": "Specify the icon from `carbon-icons-svelte` to render for the opened state\nDefaults to `Close20`", + "description": "Specify the icon to render for the opened state\nDefaults to `Close20`", "type": "typeof import(\"svelte\").SvelteComponent", "isFunction": false, "isFunctionDeclaration": false, @@ -4389,7 +4389,7 @@ { "name": "icon", "kind": "let", - "description": "Specify the icon from `carbon-icons-svelte` to render", + "description": "Specify the icon to render", "type": "typeof import(\"svelte\").SvelteComponent", "isFunction": false, "isFunctionDeclaration": false, @@ -4399,7 +4399,7 @@ { "name": "closeIcon", "kind": "let", - "description": "Specify the close icon from `carbon-icons-svelte` to render", + "description": "Specify the icon to render when the action panel is open", "type": "typeof import(\"svelte\").SvelteComponent", "isFunction": false, "isFunctionDeclaration": false, @@ -4489,7 +4489,7 @@ { "name": "icon", "kind": "let", - "description": "Specify the icon from `carbon-icons-svelte` to render", + "description": "Specify the icon to render", "type": "typeof import(\"svelte\").SvelteComponent", "isFunction": false, "isFunctionDeclaration": false, @@ -4887,7 +4887,7 @@ { "name": "render", "kind": "let", - "description": "Specify the icon from `carbon-icons-svelte` to render", + "description": "Specify the icon to render", "type": "typeof import(\"svelte\").SvelteComponent", "isFunction": false, "isFunctionDeclaration": false, @@ -5260,7 +5260,7 @@ { "name": "icon", "kind": "let", - "description": "Specify the icon from `carbon-icons-svelte` to render\n`inline` must be `false`", + "description": "Specify the icon to render\n`inline` must be `false`", "type": "typeof import(\"svelte\").SvelteComponent", "isFunction": false, "isFunctionDeclaration": false, @@ -6737,7 +6737,7 @@ { "name": "icon", "kind": "let", - "description": "Specify the icon from `carbon-icons-svelte` to render", + "description": "Specify the icon to render", "type": "typeof import(\"svelte\").SvelteComponent", "isFunction": false, "isFunctionDeclaration": false, @@ -7321,7 +7321,7 @@ { "name": "icon", "kind": "let", - "description": "Specify the icon from `carbon-icons-svelte` to render", + "description": "Specify the icon to render", "type": "typeof import(\"svelte\").SvelteComponent", "isFunction": false, "isFunctionDeclaration": false, @@ -9093,7 +9093,7 @@ { "name": "icon", "kind": "let", - "description": "Specify the icon from `carbon-icons-svelte` to render", + "description": "Specify the icon to render", "type": "typeof import(\"svelte\").SvelteComponent", "isFunction": false, "isFunctionDeclaration": false, @@ -9753,7 +9753,7 @@ { "name": "icon", "kind": "let", - "description": "Specify the icon from `carbon-icons-svelte` to render", + "description": "Specify the icon to render", "type": "typeof import(\"svelte\").SvelteComponent", "isFunction": false, "isFunctionDeclaration": false, @@ -9805,7 +9805,7 @@ { "name": "icon", "kind": "let", - "description": "Specify the icon from `carbon-icons-svelte` to render", + "description": "Specify the icon to render", "type": "typeof import(\"svelte\").SvelteComponent", "isFunction": false, "isFunctionDeclaration": false, @@ -11139,7 +11139,7 @@ { "name": "icon", "kind": "let", - "description": "Specify the icon from `carbon-icons-svelte` to render", + "description": "Specify the icon to render", "type": "typeof import(\"svelte\").SvelteComponent", "isFunction": false, "isFunctionDeclaration": false, @@ -12788,7 +12788,7 @@ { "name": "icon", "kind": "let", - "description": "Specify the icon from `carbon-icons-svelte` to render for the tooltip button\nIcon size must be 16px (e.g., `Add16`, `Task16`)", + "description": "Specify the icon to render for the tooltip button\nIcon size must be 16px (e.g., `Add16`, `Task16`)", "type": "typeof import(\"svelte\").SvelteComponent", "isFunction": false, "isFunctionDeclaration": false, @@ -13034,7 +13034,7 @@ { "name": "icon", "kind": "let", - "description": "Specify the icon from `carbon-icons-svelte` to render", + "description": "Specify the icon to render", "type": "typeof import(\"svelte\").SvelteComponent", "isFunction": false, "isFunctionDeclaration": false, diff --git a/src/Button/Button.svelte b/src/Button/Button.svelte index 9ecf1200..6f8a0c5c 100644 --- a/src/Button/Button.svelte +++ b/src/Button/Button.svelte @@ -32,7 +32,7 @@ export let hasIconOnly = false; /** - * Specify the icon from `carbon-icons-svelte` to render + * Specify the icon to render * @type {typeof import("svelte").SvelteComponent} */ export let icon = undefined; diff --git a/src/ContextMenu/ContextMenuOption.svelte b/src/ContextMenu/ContextMenuOption.svelte index f4cc6290..b5df8ec1 100644 --- a/src/ContextMenu/ContextMenuOption.svelte +++ b/src/ContextMenu/ContextMenuOption.svelte @@ -12,7 +12,7 @@ export let indented = false; /** - * Specify the icon from `carbon-icons-svelte` to render + * Specify the icon to render * Icon is rendered to the left of the label text * @type {typeof import("svelte").SvelteComponent} */ diff --git a/src/Icon/Icon.svelte b/src/Icon/Icon.svelte index 5c03e293..7159b029 100644 --- a/src/Icon/Icon.svelte +++ b/src/Icon/Icon.svelte @@ -11,7 +11,7 @@ */ /** - * Specify the icon from `carbon-icons-svelte` to render + * Specify the icon to render * @type {typeof import("svelte").SvelteComponent} */ export let render = undefined; diff --git a/src/Link/Link.svelte b/src/Link/Link.svelte index 4456e1be..0da97518 100644 --- a/src/Link/Link.svelte +++ b/src/Link/Link.svelte @@ -15,7 +15,7 @@ export let inline = false; /** - * Specify the icon from `carbon-icons-svelte` to render + * Specify the icon to render * `inline` must be `false` * @type {typeof import("svelte").SvelteComponent} */ diff --git a/src/Notification/NotificationButton.svelte b/src/Notification/NotificationButton.svelte index 4f158951..e7e42823 100644 --- a/src/Notification/NotificationButton.svelte +++ b/src/Notification/NotificationButton.svelte @@ -6,7 +6,7 @@ export let notificationType = "toast"; /** - * Specify the icon from `carbon-icons-svelte` to render + * Specify the icon to render * @type {typeof import("svelte").SvelteComponent} */ export let icon = Close20; diff --git a/src/OverflowMenu/OverflowMenu.svelte b/src/OverflowMenu/OverflowMenu.svelte index 0d569b0d..e5ae78fd 100644 --- a/src/OverflowMenu/OverflowMenu.svelte +++ b/src/OverflowMenu/OverflowMenu.svelte @@ -31,7 +31,7 @@ export let menuOptionsClass = undefined; /** - * Specify the icon from `carbon-icons-svelte` to render + * Specify the icon to render * @type {typeof import("svelte").SvelteComponent} */ export let icon = OverflowMenuVertical16; diff --git a/src/Search/Search.svelte b/src/Search/Search.svelte index 6461b0d2..7539c8df 100644 --- a/src/Search/Search.svelte +++ b/src/Search/Search.svelte @@ -59,7 +59,7 @@ export let labelText = ""; /** - * Specify the icon from `carbon-icons-svelte` to render + * Specify the icon to render * @type {typeof import("svelte").SvelteComponent} */ export let icon = Search16; diff --git a/src/Tag/Tag.svelte b/src/Tag/Tag.svelte index d232ccb6..71c12a0f 100644 --- a/src/Tag/Tag.svelte +++ b/src/Tag/Tag.svelte @@ -26,7 +26,7 @@ export let title = "Clear filter"; /** - * Specify the icon from `carbon-icons-svelte` to render + * Specify the icon to render * @type {typeof import("svelte").SvelteComponent} */ export let icon = undefined; diff --git a/src/Tooltip/Tooltip.svelte b/src/Tooltip/Tooltip.svelte index 8b3482eb..2162148a 100644 --- a/src/Tooltip/Tooltip.svelte +++ b/src/Tooltip/Tooltip.svelte @@ -24,7 +24,7 @@ export let hideIcon = false; /** - * Specify the icon from `carbon-icons-svelte` to render for the tooltip button + * Specify the icon to render for the tooltip button * Icon size must be 16px (e.g., `Add16`, `Task16`) * @type {typeof import("svelte").SvelteComponent} */ diff --git a/src/TooltipIcon/TooltipIcon.svelte b/src/TooltipIcon/TooltipIcon.svelte index a6995a9d..bfcc1170 100644 --- a/src/TooltipIcon/TooltipIcon.svelte +++ b/src/TooltipIcon/TooltipIcon.svelte @@ -6,7 +6,7 @@ export let tooltipText = ""; /** - * Specify the icon from `carbon-icons-svelte` to render + * Specify the icon to render * @type {typeof import("svelte").SvelteComponent} */ export let icon = undefined; diff --git a/src/TreeView/TreeViewNode.svelte b/src/TreeView/TreeViewNode.svelte index d7b06379..3401627d 100644 --- a/src/TreeView/TreeViewNode.svelte +++ b/src/TreeView/TreeViewNode.svelte @@ -44,7 +44,7 @@ export let disabled = false; /** - * Specify the icon from `carbon-icons-svelte` to render + * Specify the icon to render * @type {typeof import("svelte").SvelteComponent} */ export let icon = undefined; diff --git a/src/TreeView/TreeViewNodeList.svelte b/src/TreeView/TreeViewNodeList.svelte index fd4ad8dc..07666c37 100644 --- a/src/TreeView/TreeViewNodeList.svelte +++ b/src/TreeView/TreeViewNodeList.svelte @@ -15,7 +15,7 @@ export let disabled = false; /** - * Specify the icon from `carbon-icons-svelte` to render + * Specify the icon to render * @type {typeof import("svelte").SvelteComponent} */ export let icon = undefined; diff --git a/src/UIShell/GlobalHeader/Header.svelte b/src/UIShell/GlobalHeader/Header.svelte index 32988b8b..5204349e 100644 --- a/src/UIShell/GlobalHeader/Header.svelte +++ b/src/UIShell/GlobalHeader/Header.svelte @@ -47,14 +47,14 @@ export let ref = null; /** - * Specify the icon from `carbon-icons-svelte` to render for the closed state + * Specify the icon to render for the closed state * Defaults to `Menu20` * @type {typeof import("svelte").SvelteComponent} */ export let iconMenu = Menu20; /** - * Specify the icon from `carbon-icons-svelte` to render for the opened state + * Specify the icon to render for the opened state * Defaults to `Close20` * @type {typeof import("svelte").SvelteComponent} */ diff --git a/src/UIShell/GlobalHeader/HeaderAction.svelte b/src/UIShell/GlobalHeader/HeaderAction.svelte index 385a0a98..d7628cb8 100644 --- a/src/UIShell/GlobalHeader/HeaderAction.svelte +++ b/src/UIShell/GlobalHeader/HeaderAction.svelte @@ -7,13 +7,13 @@ export let isOpen = false; /** - * Specify the icon from `carbon-icons-svelte` to render + * Specify the icon to render * @type {typeof import("svelte").SvelteComponent} */ export let icon = AppSwitcher20; /** - * Specify the close icon from `carbon-icons-svelte` to render + * Specify the icon to render when the action panel is open * @type {typeof import("svelte").SvelteComponent} */ export let closeIcon = Close20; diff --git a/src/UIShell/GlobalHeader/HeaderActionLink.svelte b/src/UIShell/GlobalHeader/HeaderActionLink.svelte index b4ad3a36..ffa22a4d 100644 --- a/src/UIShell/GlobalHeader/HeaderActionLink.svelte +++ b/src/UIShell/GlobalHeader/HeaderActionLink.svelte @@ -9,7 +9,7 @@ export let href = undefined; /** - * Specify the icon from `carbon-icons-svelte` to render + * Specify the icon to render * @type {typeof import("svelte").SvelteComponent} */ export let icon = undefined; diff --git a/src/UIShell/SideNav/HamburgerMenu.svelte b/src/UIShell/SideNav/HamburgerMenu.svelte index 4a24c2d1..fa184a13 100644 --- a/src/UIShell/SideNav/HamburgerMenu.svelte +++ b/src/UIShell/SideNav/HamburgerMenu.svelte @@ -9,14 +9,14 @@ export let isOpen = false; /** - * Specify the icon from `carbon-icons-svelte` to render for the closed state + * Specify the icon to render for the closed state * Defaults to `Menu20` * @type {typeof import("svelte").SvelteComponent} */ export let iconMenu = Menu20; /** - * Specify the icon from `carbon-icons-svelte` to render for the opened state + * Specify the icon to render for the opened state * Defaults to `Close20` * @type {typeof import("svelte").SvelteComponent} */ diff --git a/src/UIShell/SideNav/SideNavLink.svelte b/src/UIShell/SideNav/SideNavLink.svelte index 94f674ff..8053cd49 100644 --- a/src/UIShell/SideNav/SideNavLink.svelte +++ b/src/UIShell/SideNav/SideNavLink.svelte @@ -15,7 +15,7 @@ export let text = undefined; /** - * Specify the icon from `carbon-icons-svelte` to render + * Specify the icon to render * @type {typeof import("svelte").SvelteComponent} */ export let icon = undefined; diff --git a/src/UIShell/SideNav/SideNavMenu.svelte b/src/UIShell/SideNav/SideNavMenu.svelte index 9d19cbf4..ebbdb6ff 100644 --- a/src/UIShell/SideNav/SideNavMenu.svelte +++ b/src/UIShell/SideNav/SideNavMenu.svelte @@ -9,7 +9,7 @@ export let text = undefined; /** - * Specify the icon from `carbon-icons-svelte` to render + * Specify the icon to render * @type {typeof import("svelte").SvelteComponent} */ export let icon = undefined; diff --git a/types/Button/Button.svelte.d.ts b/types/Button/Button.svelte.d.ts index 222c2858..aab2ea9d 100644 --- a/types/Button/Button.svelte.d.ts +++ b/types/Button/Button.svelte.d.ts @@ -45,7 +45,7 @@ export interface ButtonProps hasIconOnly?: boolean; /** - * Specify the icon from `carbon-icons-svelte` to render + * Specify the icon to render */ icon?: typeof import("svelte").SvelteComponent; diff --git a/types/ContextMenu/ContextMenuOption.svelte.d.ts b/types/ContextMenu/ContextMenuOption.svelte.d.ts index dae07f4e..47dfd117 100644 --- a/types/ContextMenu/ContextMenuOption.svelte.d.ts +++ b/types/ContextMenu/ContextMenuOption.svelte.d.ts @@ -22,7 +22,7 @@ export interface ContextMenuOptionProps indented?: boolean; /** - * Specify the icon from `carbon-icons-svelte` to render + * Specify the icon to render * Icon is rendered to the left of the label text */ icon?: typeof import("svelte").SvelteComponent; diff --git a/types/Icon/Icon.svelte.d.ts b/types/Icon/Icon.svelte.d.ts index 2ae43b78..19977ced 100644 --- a/types/Icon/Icon.svelte.d.ts +++ b/types/Icon/Icon.svelte.d.ts @@ -6,7 +6,7 @@ export interface IconProps extends IconSkeletonProps, svelte.JSX.HTMLAttributes { /** - * Specify the icon from `carbon-icons-svelte` to render + * Specify the icon to render */ render?: typeof import("svelte").SvelteComponent; diff --git a/types/Link/Link.svelte.d.ts b/types/Link/Link.svelte.d.ts index a2b096d0..5a5efca3 100644 --- a/types/Link/Link.svelte.d.ts +++ b/types/Link/Link.svelte.d.ts @@ -20,7 +20,7 @@ export interface LinkProps inline?: boolean; /** - * Specify the icon from `carbon-icons-svelte` to render + * Specify the icon to render * `inline` must be `false` */ icon?: typeof import("svelte").SvelteComponent; diff --git a/types/Notification/NotificationButton.svelte.d.ts b/types/Notification/NotificationButton.svelte.d.ts index 55cf0cb6..682c819f 100644 --- a/types/Notification/NotificationButton.svelte.d.ts +++ b/types/Notification/NotificationButton.svelte.d.ts @@ -10,7 +10,7 @@ export interface NotificationButtonProps notificationType?: "toast" | "inline"; /** - * Specify the icon from `carbon-icons-svelte` to render + * Specify the icon to render */ icon?: typeof import("svelte").SvelteComponent; diff --git a/types/OverflowMenu/OverflowMenu.svelte.d.ts b/types/OverflowMenu/OverflowMenu.svelte.d.ts index b1844d38..823a6a4b 100644 --- a/types/OverflowMenu/OverflowMenu.svelte.d.ts +++ b/types/OverflowMenu/OverflowMenu.svelte.d.ts @@ -38,7 +38,7 @@ export interface OverflowMenuProps menuOptionsClass?: string; /** - * Specify the icon from `carbon-icons-svelte` to render + * Specify the icon to render */ icon?: typeof import("svelte").SvelteComponent; diff --git a/types/Search/Search.svelte.d.ts b/types/Search/Search.svelte.d.ts index e47c64ae..143e02a5 100644 --- a/types/Search/Search.svelte.d.ts +++ b/types/Search/Search.svelte.d.ts @@ -92,7 +92,7 @@ export interface SearchProps { labelText?: string; /** - * Specify the icon from `carbon-icons-svelte` to render + * Specify the icon to render */ icon?: typeof import("svelte").SvelteComponent; diff --git a/types/Tag/Tag.svelte.d.ts b/types/Tag/Tag.svelte.d.ts index 4172d642..fd6cb90b 100644 --- a/types/Tag/Tag.svelte.d.ts +++ b/types/Tag/Tag.svelte.d.ts @@ -57,7 +57,7 @@ export interface TagProps title?: string; /** - * Specify the icon from `carbon-icons-svelte` to render + * Specify the icon to render */ icon?: typeof import("svelte").SvelteComponent; diff --git a/types/Tooltip/Tooltip.svelte.d.ts b/types/Tooltip/Tooltip.svelte.d.ts index dfa910f0..5e6f28ed 100644 --- a/types/Tooltip/Tooltip.svelte.d.ts +++ b/types/Tooltip/Tooltip.svelte.d.ts @@ -28,7 +28,7 @@ export interface TooltipProps hideIcon?: boolean; /** - * Specify the icon from `carbon-icons-svelte` to render for the tooltip button + * Specify the icon to render for the tooltip button * Icon size must be 16px (e.g., `Add16`, `Task16`) */ icon?: typeof import("svelte").SvelteComponent; diff --git a/types/TooltipIcon/TooltipIcon.svelte.d.ts b/types/TooltipIcon/TooltipIcon.svelte.d.ts index 79186201..c648f307 100644 --- a/types/TooltipIcon/TooltipIcon.svelte.d.ts +++ b/types/TooltipIcon/TooltipIcon.svelte.d.ts @@ -11,7 +11,7 @@ export interface TooltipIconProps tooltipText?: string; /** - * Specify the icon from `carbon-icons-svelte` to render + * Specify the icon to render */ icon?: typeof import("svelte").SvelteComponent; diff --git a/types/UIShell/GlobalHeader/Header.svelte.d.ts b/types/UIShell/GlobalHeader/Header.svelte.d.ts index 8f4cf483..e6dd5d9a 100644 --- a/types/UIShell/GlobalHeader/Header.svelte.d.ts +++ b/types/UIShell/GlobalHeader/Header.svelte.d.ts @@ -62,13 +62,13 @@ export interface HeaderProps ref?: null | HTMLAnchorElement; /** - * Specify the icon from `carbon-icons-svelte` to render for the closed state + * Specify the icon to render for the closed state * Defaults to `Menu20` */ iconMenu?: typeof import("svelte").SvelteComponent; /** - * Specify the icon from `carbon-icons-svelte` to render for the opened state + * Specify the icon to render for the opened state * Defaults to `Close20` */ iconClose?: typeof import("svelte").SvelteComponent; diff --git a/types/UIShell/GlobalHeader/HeaderAction.svelte.d.ts b/types/UIShell/GlobalHeader/HeaderAction.svelte.d.ts index 41c9d6af..1b35128f 100644 --- a/types/UIShell/GlobalHeader/HeaderAction.svelte.d.ts +++ b/types/UIShell/GlobalHeader/HeaderAction.svelte.d.ts @@ -16,12 +16,12 @@ export interface HeaderActionProps isOpen?: boolean; /** - * Specify the icon from `carbon-icons-svelte` to render + * Specify the icon to render */ icon?: typeof import("svelte").SvelteComponent; /** - * Specify the close icon from `carbon-icons-svelte` to render + * Specify the icon to render when the action panel is open */ closeIcon?: typeof import("svelte").SvelteComponent; diff --git a/types/UIShell/GlobalHeader/HeaderActionLink.svelte.d.ts b/types/UIShell/GlobalHeader/HeaderActionLink.svelte.d.ts index 85764b83..3ac65409 100644 --- a/types/UIShell/GlobalHeader/HeaderActionLink.svelte.d.ts +++ b/types/UIShell/GlobalHeader/HeaderActionLink.svelte.d.ts @@ -15,7 +15,7 @@ export interface HeaderActionLinkProps href?: string; /** - * Specify the icon from `carbon-icons-svelte` to render + * Specify the icon to render */ icon?: typeof import("svelte").SvelteComponent; diff --git a/types/UIShell/SideNav/SideNavLink.svelte.d.ts b/types/UIShell/SideNav/SideNavLink.svelte.d.ts index ec95a2ea..6cb66fc2 100644 --- a/types/UIShell/SideNav/SideNavLink.svelte.d.ts +++ b/types/UIShell/SideNav/SideNavLink.svelte.d.ts @@ -20,7 +20,7 @@ export interface SideNavLinkProps text?: string; /** - * Specify the icon from `carbon-icons-svelte` to render + * Specify the icon to render */ icon?: typeof import("svelte").SvelteComponent; diff --git a/types/UIShell/SideNav/SideNavMenu.svelte.d.ts b/types/UIShell/SideNav/SideNavMenu.svelte.d.ts index 574e6e17..02e155b3 100644 --- a/types/UIShell/SideNav/SideNavMenu.svelte.d.ts +++ b/types/UIShell/SideNav/SideNavMenu.svelte.d.ts @@ -15,7 +15,7 @@ export interface SideNavMenuProps text?: string; /** - * Specify the icon from `carbon-icons-svelte` to render + * Specify the icon to render */ icon?: typeof import("svelte").SvelteComponent;