Strip out RadioTileGroup

This commit is contained in:
Richard O'flynn 2020-12-01 00:40:10 +00:00
commit c37d7b3760
9 changed files with 10 additions and 123 deletions

View file

@ -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",

View file

@ -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>