diff --git a/COMPONENT_INDEX.md b/COMPONENT_INDEX.md index d48cee4d..359ccd42 100644 --- a/COMPONENT_INDEX.md +++ b/COMPONENT_INDEX.md @@ -1613,7 +1613,7 @@ None. | Prop name | Required | Kind | Reactive | Type | Default value | Description | | :------------------------- | :------- | :--------------- | :------- | ----------------------------------------------------------------- | ------------------------------ | ---------------------------------------------------------------------------------------------------------------- | | ref | No | let | Yes | null | HTMLButtonElement | null | Obtain a reference to the button HTML element | -| isOpen | No | let | Yes | boolean | false | Set to `true` to open the panel | +| open | No | let | Yes | boolean | false | Set to `true` to open the panel | | icon | No | let | No | typeof import("svelte").SvelteComponent | undefined | Specify the icon to render when the action panel is closed.
Defaults to `<Switcher size={20} />` | | closeIcon | No | let | No | typeof import("svelte").SvelteComponent | undefined | Specify the icon to render when the action panel is open.
Defaults to `<Close size={20} />` | | text | No | let | No | string | undefined | Specify the text.
Alternatively, use the named slot "text" (e.g., `<div slot="text">...</div>`) | @@ -3310,7 +3310,7 @@ None. | Prop name | Required | Kind | Reactive | Type | Default value | Description | | :------------------ | :------- | :--------------- | :------- | -------------------- | ---------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| isOpen | No | let | Yes | boolean | false | Set to `true` to toggle the expanded state | +| open | No | let | Yes | boolean | false | Set to `true` to toggle the expanded state | | fixed | No | let | No | boolean | false | Set to `true` to use the fixed variant | | rail | No | let | No | boolean | false | Set to `true` to use the rail variant | | ariaLabel | No | let | No | string | undefined | Specify the ARIA label for the nav | diff --git a/docs/src/COMPONENT_API.json b/docs/src/COMPONENT_API.json index 89844c68..a5b71650 100644 --- a/docs/src/COMPONENT_API.json +++ b/docs/src/COMPONENT_API.json @@ -4897,7 +4897,7 @@ "filePath": "src/UIShell/HeaderAction.svelte", "props": [ { - "name": "isOpen", + "name": "open", "kind": "let", "description": "Set to `true` to open the panel", "type": "boolean", @@ -10733,7 +10733,7 @@ "reactive": false }, { - "name": "isOpen", + "name": "open", "kind": "let", "description": "Set to `true` to toggle the expanded state", "type": "boolean", diff --git a/docs/src/pages/_layout.svelte b/docs/src/pages/_layout.svelte index 17ca12ef..4dac785b 100644 --- a/docs/src/pages/_layout.svelte +++ b/docs/src/pages/_layout.svelte @@ -46,7 +46,7 @@ let active = false; $: results = miniSearch.search(value).slice(0, 10); - let isOpen = false; + let open = false; let isSideNavOpen = true; let innerWidth = 2048; @@ -121,7 +121,7 @@ href="https://github.com/carbon-design-system/carbon-components-svelte" target="_blank" /> - + Carbon Svelte portfolio - + {#each components.children.filter((child) => !deprecated.includes(child.title)) as child (child.path)} \ No newline at end of file + diff --git a/docs/src/pages/framed/UIShell/HeaderNav.svelte b/docs/src/pages/framed/UIShell/HeaderNav.svelte index 0f8024a3..d6318ad9 100644 --- a/docs/src/pages/framed/UIShell/HeaderNav.svelte +++ b/docs/src/pages/framed/UIShell/HeaderNav.svelte @@ -37,7 +37,7 @@ - + diff --git a/docs/src/pages/framed/UIShell/HeaderNavRail.svelte b/docs/src/pages/framed/UIShell/HeaderNavRail.svelte index dbd7fb87..e36c6c24 100644 --- a/docs/src/pages/framed/UIShell/HeaderNavRail.svelte +++ b/docs/src/pages/framed/UIShell/HeaderNavRail.svelte @@ -38,7 +38,7 @@ - + diff --git a/docs/src/pages/framed/UIShell/HeaderSwitcher.svelte b/docs/src/pages/framed/UIShell/HeaderSwitcher.svelte index c06c72a5..86e163e7 100644 --- a/docs/src/pages/framed/UIShell/HeaderSwitcher.svelte +++ b/docs/src/pages/framed/UIShell/HeaderSwitcher.svelte @@ -22,7 +22,7 @@ import { expoIn } from "svelte/easing"; let isSideNavOpen = false; - let isOpen = false; + let open = false; let selected = "0"; let transitions = { "0": { @@ -45,7 +45,7 @@ - + Switcher subject 1 Switcher item 1 @@ -60,7 +60,7 @@ - + diff --git a/docs/src/pages/framed/UIShell/HeaderUtilities.svelte b/docs/src/pages/framed/UIShell/HeaderUtilities.svelte index 3b6d5029..9e8aae2e 100644 --- a/docs/src/pages/framed/UIShell/HeaderUtilities.svelte +++ b/docs/src/pages/framed/UIShell/HeaderUtilities.svelte @@ -33,7 +33,7 @@ @@ -50,7 +50,7 @@ Switcher item 1 - + Switcher subject 1 Switcher item 1 @@ -65,7 +65,7 @@ - + diff --git a/docs/src/pages/framed/UIShell/PersistedHamburgerMenu.svelte b/docs/src/pages/framed/UIShell/PersistedHamburgerMenu.svelte index 6bad2c56..8e8264cc 100644 --- a/docs/src/pages/framed/UIShell/PersistedHamburgerMenu.svelte +++ b/docs/src/pages/framed/UIShell/PersistedHamburgerMenu.svelte @@ -40,7 +40,7 @@ - + diff --git a/src/UIShell/HamburgerMenu.svelte b/src/UIShell/HamburgerMenu.svelte index c5be0db9..bf69cdfa 100644 --- a/src/UIShell/HamburgerMenu.svelte +++ b/src/UIShell/HamburgerMenu.svelte @@ -6,7 +6,7 @@ export let ariaLabel = undefined; /** Set to `true` to toggle the open state */ - export let isOpen = false; + export let open = false; /** * Specify the icon to render for the closed state. @@ -39,7 +39,7 @@ class:bx--header__menu-toggle="{true}" {...$$restProps} on:click - on:click="{() => (isOpen = !isOpen)}" + on:click="{() => (open = !open)}" > - + diff --git a/src/UIShell/Header.svelte b/src/UIShell/Header.svelte index 3574f01e..1d92d71e 100644 --- a/src/UIShell/Header.svelte +++ b/src/UIShell/Header.svelte @@ -84,7 +84,7 @@ {#if ($shouldRenderHamburgerMenu && winWidth < expansionBreakpoint) || persistentHamburgerMenu} diff --git a/src/UIShell/HeaderAction.svelte b/src/UIShell/HeaderAction.svelte index 185bf045..70432f00 100644 --- a/src/UIShell/HeaderAction.svelte +++ b/src/UIShell/HeaderAction.svelte @@ -5,7 +5,7 @@ */ /** Set to `true` to open the panel */ - export let isOpen = false; + export let open = false; /** * Specify the icon to render when the action panel is closed. @@ -54,12 +54,12 @@ - {#if isOpen} + {#if open} @@ -91,7 +91,7 @@ {#if text}{text}{/if} -{#if isOpen} +{#if open}
{ @@ -60,23 +60,23 @@
{/if}