diff --git a/COMPONENT_INDEX.md b/COMPONENT_INDEX.md
index e565a00a..7c9819a2 100644
--- a/COMPONENT_INDEX.md
+++ b/COMPONENT_INDEX.md
@@ -350,7 +350,7 @@ None.
| ref | let
| Yes | null | HTMLAnchorElement | HTMLButtonElement
| null
| Obtain a reference to the HTML element |
| hasIconOnly | let
| Yes | boolean
| false
| Set to `true` for the icon-only variant |
| kind | let
| No | "primary" | "secondary" | "tertiary" | "ghost" | "danger" | "danger-tertiary" | "danger-ghost"
| "primary"
| Specify the kind of button |
-| size | let
| No | "default" | "field" | "small"
| "default"
| Specify the size of button |
+| size | let
| No | "default" | "field" | "small" | "xl"
| "default"
| Specify the size of button |
| isSelected | let
| No | boolean
| false
| Set to `true` to enable the selected state for an icon-only, ghost button |
| icon | let
| No | typeof import("carbon-icons-svelte").CarbonIcon
| -- | Specify the icon from `carbon-icons-svelte` to render |
| iconDescription | let
| No | string
| -- | Specify the ARIA label for the button icon |
@@ -930,23 +930,23 @@ export interface DataTableCell {
### Props
-| Prop name | Kind | Reactive | Type | Default value | Description |
-| :------------- | :--------------- | :------- | :-------------------------------------------------- | ------------------ | ------------------------------------------------------------------------------------------------------------------- |
-| selectedRowIds | let
| Yes | DataTableRowId[]
| []
| Specify the row ids to be selected |
-| selectable | let
| Yes | boolean
| false
| Set to `true` for the selectable variant
Automatically set to `true` if `radio` or `batchSelection` are `true` |
-| expandedRowIds | let
| Yes | DataTableRowId[]
| []
| Specify the row ids to be expanded |
-| expandable | let
| Yes | boolean
| false
| Set to `true` for the expandable variant
Automatically set to `true` if `batchExpansion` is `true` |
-| rows | let
| Yes | DataTableRow[]
| []
| Specify the rows the data table should render
keys defined in `headers` are used for the row ids |
-| headers | let
| No | DataTableHeader[]
| []
| Specify the data table headers |
-| size | let
| No | "compact" | "short" | "tall"
| -- | Set the size of the data table |
-| title | let
| No | string
| ""
| Specify the title of the data table |
-| description | let
| No | string
| ""
| Specify the description of the data table |
-| zebra | let
| No | boolean
| false
| Set to `true` to use zebra styles |
-| sortable | let
| No | boolean
| false
| Set to `true` for the sortable variant |
-| batchExpansion | let
| No | boolean
| false
| Set to `true` to enable batch expansion |
-| radio | let
| No | boolean
| false
| Set to `true` for the radio selection variant |
-| batchSelection | let
| No | boolean
| false
| Set to `true` to enable batch selection |
-| stickyHeader | let
| No | boolean
| false
| Set to `true` to enable a sticky header |
+| Prop name | Kind | Reactive | Type | Default value | Description |
+| :------------- | :--------------- | :------- | :------------------------------------------------------------------ | ------------------ | ------------------------------------------------------------------------------------------------------------------- |
+| selectedRowIds | let
| Yes | DataTableRowId[]
| []
| Specify the row ids to be selected |
+| selectable | let
| Yes | boolean
| false
| Set to `true` for the selectable variant
Automatically set to `true` if `radio` or `batchSelection` are `true` |
+| expandedRowIds | let
| Yes | DataTableRowId[]
| []
| Specify the row ids to be expanded |
+| expandable | let
| Yes | boolean
| false
| Set to `true` for the expandable variant
Automatically set to `true` if `batchExpansion` is `true` |
+| rows | let
| Yes | DataTableRow[]
| []
| Specify the rows the data table should render
keys defined in `headers` are used for the row ids |
+| headers | let
| No | DataTableHeader[]
| []
| Specify the data table headers |
+| size | let
| No | "compact" | "short" | "medium" | "tall"
| -- | Set the size of the data table |
+| title | let
| No | string
| ""
| Specify the title of the data table |
+| description | let
| No | string
| ""
| Specify the description of the data table |
+| zebra | let
| No | boolean
| false
| Set to `true` to use zebra styles |
+| sortable | let
| No | boolean
| false
| Set to `true` for the sortable variant |
+| batchExpansion | let
| No | boolean
| false
| Set to `true` to enable batch expansion |
+| radio | let
| No | boolean
| false
| Set to `true` for the radio selection variant |
+| batchSelection | let
| No | boolean
| false
| Set to `true` to enable batch selection |
+| stickyHeader | let
| No | boolean
| false
| Set to `true` to enable a sticky header |
### Slots
@@ -1505,16 +1505,18 @@ None.
### Props
-| Prop name | Kind | Reactive | Type | Default value | Description |
-| :---------------------- | :--------------- | :------- | :----------------------------------------- | ------------------ | -------------------------------------------------------------------------------------------------------------------------------- |
-| ref | let
| Yes | null | HTMLAnchorElement
| null
| Obtain a reference to the HTML anchor element |
-| isSideNavOpen | let
| Yes | boolean
| false
| Set to `true` to open the side nav |
-| expandedByDefault | let
| No | boolean
| true
| Set to `false` to hide the side nav by default |
-| uiShellAriaLabel | let
| No | string
| -- | Specify the ARIA label for the header |
-| href | let
| No | string
| -- | Specify the `href` attribute |
-| company | let
| No | string
| -- | Specify the company name |
-| 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 |
+| Prop name | Kind | Reactive | Type | Default value | Description |
+| :---------------------- | :--------------- | :------- | :----------------------------------------------------------- | ------------------ | -------------------------------------------------------------------------------------------------------------------------------- |
+| ref | let
| Yes | null | HTMLAnchorElement
| null
| Obtain a reference to the HTML anchor element |
+| isSideNavOpen | let
| Yes | boolean
| false
| Set to `true` to open the side nav |
+| expandedByDefault | let
| No | boolean
| true
| Set to `false` to hide the side nav by default |
+| uiShellAriaLabel | let
| No | string
| -- | Specify the ARIA label for the header |
+| href | let
| No | string
| -- | Specify the `href` attribute |
+| company | let
| No | string
| -- | Specify the company name |
+| 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 |
+| iconMenu | let
| No | typeof import("carbon-icons-svelte").CarbonIcon
| -- | Specify the icon from `carbon-icons-svelte` to render for the closed state
Defaults to `Menu20` |
+| iconClose | let
| No | typeof import("carbon-icons-svelte").CarbonIcon
| -- | Specify the icon from `carbon-icons-svelte` to render for the opened state
Defaults to `Close20` |
### Slots
@@ -2745,6 +2747,9 @@ None.
| hideLabel | let
| No | boolean
| false
| Set to `true` to visually hide the label text |
| invalid | let
| No | boolean
| false
| Set to `true` to indicate an invalid state |
| invalidText | let
| No | string
| ""
| Specify the text for the invalid state |
+| warn | let
| No | boolean
| false
| Set to `true` to indicate an warning state |
+| warnText | let
| No | string
| ""
| Specify the warning state text |
+| inline | let
| No | boolean
| false
| Set to `true` to use inline version |
| id | let
| No | string
| "ccs-" + Math.random().toString(36)
| Set an id for the input element |
| name | let
| No | string
| -- | Specify a name attribute for the input |
@@ -3011,12 +3016,14 @@ None.
| :------------------- | :--------------- | :------- | :---------------------------------------- | ------------------------------------------------ | ------------------------------------------------------- |
| ref | let
| Yes | null | HTMLInputElement
| null
| Obtain a reference to the input HTML element |
| value | let
| Yes | string
| ""
| Specify the value of the search input |
+| expanded | let
| Yes | boolean
| false
| Set to `true to expand the search input |
| small | let
| No | boolean
| false
| -- |
| size | let
| No | "sm" | "lg" | "xl"
| "xl"
| Specify the size of the search input |
| searchClass | let
| No | string
| ""
| Specify the class name passed to the outer div element |
| skeleton | let
| No | boolean
| false
| Set to `true` to display the skeleton state |
| light | let
| No | boolean
| false
| Set to `true` to enable the light variant |
| disabled | let
| No | boolean
| false
| Set to `true` to disable the search input |
+| expandable | let
| No | boolean
| false
| Set to `true` to enable the expandable variant |
| type | let
| No | string
| "text"
| Specify the `type` attribute of the search input |
| placeholder | let
| No | string
| "Search..."
| Specify the `placeholder` attribute of the search input |
| autocomplete | let
| No | "on" | "off"
| "off"
| Specify the `autocomplete` attribute |
@@ -3031,18 +3038,20 @@ None.
### Events
-| Event name | Type | Detail |
-| :--------- | :--------- | :----- |
-| click | forwarded | -- |
-| mouseover | forwarded | -- |
-| mouseenter | forwarded | -- |
-| mouseleave | forwarded | -- |
-| change | forwarded | -- |
-| input | forwarded | -- |
-| focus | forwarded | -- |
-| blur | forwarded | -- |
-| keydown | forwarded | -- |
-| clear | dispatched | -- |
+| Event name | Type | Detail |
+| :--------- | :--------- | :--------------- |
+| expand | dispatched | any
|
+| collapse | dispatched | any
|
+| click | forwarded | -- |
+| mouseover | forwarded | -- |
+| mouseenter | forwarded | -- |
+| mouseleave | forwarded | -- |
+| change | forwarded | -- |
+| input | forwarded | -- |
+| focus | forwarded | -- |
+| blur | forwarded | -- |
+| keydown | forwarded | -- |
+| clear | dispatched | -- |
## `SearchSkeleton`
@@ -3212,7 +3221,11 @@ None.
### Events
-None.
+| Event name | Type | Detail |
+| :------------ | :--------- | :--------------- |
+| open | dispatched | any
|
+| close | dispatched | any
|
+| click:overlay | dispatched | any
|
## `SideNavDivider`
@@ -3674,14 +3687,14 @@ None.
### Props
-| Prop name | Kind | Reactive | Type | Default value | Description |
-| :--------------- | :--------------- | :------- | :-------------------------------------------------- | ------------------ | --------------------------------------- |
-| size | let
| No | "compact" | "short" | "tall"
| -- | Set the size of the table |
-| zebra | let
| No | boolean
| false
| Set to `true` to use zebra styles |
-| useStaticWidth | let
| No | boolean
| false
| Set to `true` to use static width |
-| shouldShowBorder | let
| No | boolean
| false
| Set to `true` for the bordered variant |
-| sortable | let
| No | boolean
| false
| Set to `true` for the sortable variant |
-| stickyHeader | let
| No | boolean
| false
| Set to `true` to enable a sticky header |
+| Prop name | Kind | Reactive | Type | Default value | Description |
+| :--------------- | :--------------- | :------- | :------------------------------------------------------------------ | ------------------ | --------------------------------------- |
+| size | let
| No | "compact" | "short" | "medium" | "tall"
| -- | Set the size of the table |
+| zebra | let
| No | boolean
| false
| Set to `true` to use zebra styles |
+| useStaticWidth | let
| No | boolean
| false
| Set to `true` to use static width |
+| shouldShowBorder | let
| No | boolean
| false
| Set to `true` for the bordered variant |
+| sortable | let
| No | boolean
| false
| Set to `true` for the sortable variant |
+| stickyHeader | let
| No | boolean
| false
| Set to `true` to enable a sticky header |
### Slots
diff --git a/README.md b/README.md
index 119dcc6d..a49b4350 100644
--- a/README.md
+++ b/README.md
@@ -89,6 +89,7 @@ Import components from `carbon-components-svelte` in the `script` tag of your Sv
- **white.css**: Default Carbon theme (light)
- **g10.css**: Gray 10 theme (light)
+- **g80.css**: Gray 80 theme (dark)
- **g90.css**: Gray 90 theme (dark)
- **g100.css**: Gray 100 theme (dark)
- **all.css**: All themes (White, Gray 10, Gray 90, Gray 100) using [CSS variables](https://developer.mozilla.org/en-US/docs/Web/CSS/Using_CSS_custom_properties)
@@ -99,6 +100,7 @@ The compiled CSS is generated from the following `.scss` files:
- [css/white.scss](css/white.scss)
- [css/g10.scss](css/g10.scss)
+- [css/g80.scss](css/g80.scss)
- [css/g90.scss](css/g90.scss)
- [css/g100.scss](css/g100.scss)
- [css/all.scss](css/all.scss)
@@ -157,7 +159,7 @@ Using JavaScript:
```svelte
{#if skeleton}
@@ -101,9 +98,17 @@
class:bx--search--sm="{size === 'sm' || small}"
class:bx--search--lg="{size === 'lg'}"
class:bx--search--xl="{size === 'xl'}"
+ class:bx--search--expandable="{expandable}"
+ class:bx--search--expanded="{expanded}"
class="{searchClass}"
>
-