-
-
Notifications
You must be signed in to change notification settings - Fork 261
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This removes legacy `ToggleSkeleton`.
- Loading branch information
Showing
11 changed files
with
57 additions
and
246 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# Component Index | ||
|
||
> 165 components exported from [email protected]. | ||
> 164 components exported from [email protected]. | ||
## Components | ||
|
||
|
@@ -155,7 +155,6 @@ | |
- [`TimePickerSelect`](#timepickerselect) | ||
- [`ToastNotification`](#toastnotification) | ||
- [`Toggle`](#toggle) | ||
- [`ToggleSkeleton`](#toggleskeleton) | ||
- [`Toolbar`](#toolbar) | ||
- [`ToolbarBatchActions`](#toolbarbatchactions) | ||
- [`ToolbarContent`](#toolbarcontent) | ||
|
@@ -4345,24 +4344,22 @@ export type CarbonTheme = "white" | "g10" | "g80" | "g90" | "g100"; | |
|
||
### Props | ||
|
||
| Prop name | Required | Kind | Reactive | Type | Default value | Description | | ||
| :-------- | :------- | :--------------- | :------- | ---------------------------------- | ------------------------------------------------ | ----------------------------------------------- | | ||
| toggled | No | <code>let</code> | Yes | <code>boolean</code> | <code>false</code> | Set to `true` to toggle the checkbox input | | ||
| size | No | <code>let</code> | No | <code>"default" | "sm"</code> | <code>"default"</code> | Specify the toggle size | | ||
| disabled | No | <code>let</code> | No | <code>boolean</code> | <code>false</code> | Set to `true` to disable checkbox input | | ||
| labelA | No | <code>let</code> | No | <code>string</code> | <code>"Off"</code> | Specify the label for the untoggled state | | ||
| labelB | No | <code>let</code> | No | <code>string</code> | <code>"On"</code> | Specify the label for the toggled state | | ||
| labelText | No | <code>let</code> | No | <code>string</code> | <code>""</code> | Specify the label text | | ||
| hideLabel | No | <code>let</code> | No | <code>boolean</code> | <code>false</code> | Set to `true` to visually hide the label text | | ||
| id | No | <code>let</code> | No | <code>string</code> | <code>"ccs-" + Math.random().toString(36)</code> | Set an id for the input element | | ||
| name | No | <code>let</code> | No | <code>string</code> | <code>undefined</code> | Specify a name attribute for the checkbox input | | ||
| Prop name | Required | Kind | Reactive | Type | Default value | Description | | ||
| :-------- | :------- | :--------------- | :------- | ----------------------------- | ------------------------------------------------ | ----------------------------------------------- | | ||
| toggled | No | <code>let</code> | Yes | <code>boolean</code> | <code>false</code> | Set to `true` to toggle the checkbox input | | ||
| size | No | <code>let</code> | No | <code>"md" | "sm"</code> | <code>"md"</code> | Specify the toggle size | | ||
| disabled | No | <code>let</code> | No | <code>boolean</code> | <code>false</code> | Set to `true` to disable checkbox input | | ||
| labelA | No | <code>let</code> | No | <code>string</code> | <code>"Off"</code> | Specify the label for the untoggled state | | ||
| labelB | No | <code>let</code> | No | <code>string</code> | <code>"On"</code> | Specify the label for the toggled state | | ||
| labelText | No | <code>let</code> | No | <code>string</code> | <code>""</code> | Specify the label text | | ||
| hideLabel | No | <code>let</code> | No | <code>boolean</code> | <code>false</code> | Set to `true` to visually hide the label text | | ||
| id | No | <code>let</code> | No | <code>string</code> | <code>"ccs-" + Math.random().toString(36)</code> | Set an id for the input element | | ||
| name | No | <code>let</code> | No | <code>string</code> | <code>undefined</code> | Specify a name attribute for the checkbox input | | ||
|
||
### Slots | ||
|
||
| Slot name | Default | Props | Fallback | | ||
| :-------- | :------ | :---- | :----------------------- | | ||
| labelA | No | -- | <code>{labelA}</code> | | ||
| labelB | No | -- | <code>{labelB}</code> | | ||
| labelText | No | -- | <code>{labelText}</code> | | ||
|
||
### Events | ||
|
@@ -4379,31 +4376,6 @@ export type CarbonTheme = "white" | "g10" | "g80" | "g90" | "g100"; | |
| focus | forwarded | -- | | ||
| blur | forwarded | -- | | ||
|
||
## `ToggleSkeleton` | ||
|
||
### Props | ||
|
||
| Prop name | Required | Kind | Reactive | Type | Default value | Description | | ||
| :-------- | :------- | :--------------- | :------- | ---------------------------------- | ------------------------------------------------ | ------------------------------- | | ||
| size | No | <code>let</code> | No | <code>"default" | "sm"</code> | <code>"default"</code> | Specify the toggle size | | ||
| labelText | No | <code>let</code> | No | <code>string</code> | <code>""</code> | Specify the label text | | ||
| id | No | <code>let</code> | No | <code>string</code> | <code>"ccs-" + Math.random().toString(36)</code> | Set an id for the input element | | ||
|
||
### Slots | ||
|
||
| Slot name | Default | Props | Fallback | | ||
| :-------- | :------ | :---- | :----------------------- | | ||
| labelText | No | -- | <code>{labelText}</code> | | ||
|
||
### Events | ||
|
||
| Event name | Type | Detail | | ||
| :--------- | :-------- | :----- | | ||
| click | forwarded | -- | | ||
| mouseover | forwarded | -- | | ||
| mouseenter | forwarded | -- | | ||
| mouseleave | forwarded | -- | | ||
|
||
## `Toolbar` | ||
|
||
### Props | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
export { default as Toggle } from "./Toggle.svelte"; | ||
export { default as ToggleSkeleton } from "./ToggleSkeleton.svelte"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.