mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-19 11:59:34 +00:00
Strip out RadioTileGroup
This commit is contained in:
parent
480337f9af
commit
c37d7b3760
9 changed files with 10 additions and 123 deletions
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"total": 157,
|
||||
"total": 156,
|
||||
"components": [
|
||||
{
|
||||
"moduleName": "SkeletonText",
|
||||
|
@ -8764,45 +8764,6 @@
|
|||
"typedefs": [],
|
||||
"rest_props": { "type": "Element", "name": "fieldset" }
|
||||
},
|
||||
{
|
||||
"moduleName": "RadioTileGroup",
|
||||
"filePath": "/src/Tile/RadioTileGroup.svelte",
|
||||
"props": [
|
||||
{
|
||||
"name": "selectedValue",
|
||||
"kind": "let",
|
||||
"description": "Specify the selected tile value",
|
||||
"type": "any",
|
||||
"isFunction": false,
|
||||
"constant": false,
|
||||
"reactive": true
|
||||
},
|
||||
{
|
||||
"name": "disabled",
|
||||
"kind": "let",
|
||||
"description": "Set to `true` to disable the tile group",
|
||||
"type": "boolean",
|
||||
"value": "false",
|
||||
"isFunction": false,
|
||||
"constant": false,
|
||||
"reactive": false
|
||||
},
|
||||
{
|
||||
"name": "legend",
|
||||
"kind": "let",
|
||||
"description": "Specify the legend text",
|
||||
"type": "string",
|
||||
"value": "\"\"",
|
||||
"isFunction": false,
|
||||
"constant": false,
|
||||
"reactive": false
|
||||
}
|
||||
],
|
||||
"slots": [{ "name": "__default__", "default": true, "slot_props": "{}" }],
|
||||
"events": [{ "type": "dispatched", "name": "select" }],
|
||||
"typedefs": [],
|
||||
"rest_props": { "type": "Element", "name": "fieldset" }
|
||||
},
|
||||
{
|
||||
"moduleName": "SelectableTileGroup",
|
||||
"filePath": "/src/Tile/SelectableTileGroup.svelte",
|
||||
|
|
|
@ -1,21 +1,16 @@
|
|||
---
|
||||
components: ["RadioTileGroup", "RadioTile"]
|
||||
components: ["TileGroup", "RadioTile"]
|
||||
---
|
||||
|
||||
<script>
|
||||
import { RadioTileGroup, RadioTile, InlineNotification } from "carbon-components-svelte";
|
||||
import { TileGroup, RadioTile } from "carbon-components-svelte";
|
||||
import Preview from "../../components/Preview.svelte";
|
||||
</script>
|
||||
|
||||
<InlineNotification svx-ignore title="Deprecation warning:" kind="warning" hideCloseButton>
|
||||
<div>
|
||||
The TileGroup component will be removed in favour of the RadioTileGroup component in the next major release.
|
||||
</div>
|
||||
</InlineNotification>
|
||||
|
||||
### Default
|
||||
|
||||
<RadioTileGroup legend="Service pricing tiers">
|
||||
<TileGroup legend="Service pricing tiers">
|
||||
<RadioTile value="0" checked>
|
||||
Lite plan
|
||||
</RadioTile>
|
||||
|
@ -25,11 +20,11 @@ components: ["RadioTileGroup", "RadioTile"]
|
|||
<RadioTile value="2">
|
||||
Plus plan
|
||||
</RadioTile>
|
||||
</RadioTileGroup>
|
||||
</TileGroup>
|
||||
|
||||
### Light variant
|
||||
|
||||
<RadioTileGroup legend="Service pricing tiers">
|
||||
<TileGroup legend="Service pricing tiers">
|
||||
<RadioTile light value="0" checked>
|
||||
Lite plan
|
||||
</RadioTile>
|
||||
|
@ -39,4 +34,4 @@ components: ["RadioTileGroup", "RadioTile"]
|
|||
<RadioTile light value="2">
|
||||
Plus plan
|
||||
</RadioTile>
|
||||
</RadioTileGroup>
|
||||
</TileGroup>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue