diff --git a/COMPONENT_INDEX.md b/COMPONENT_INDEX.md index 4b3eccc7b6..81a8ea4a22 100644 --- a/COMPONENT_INDEX.md +++ b/COMPONENT_INDEX.md @@ -2983,13 +2983,13 @@ None. ### Events -| Event name | Type | Detail | -| :--------- | :--------- | :----- | -| click | forwarded | -- | -| mouseover | forwarded | -- | -| mouseenter | forwarded | -- | -| mouseleave | forwarded | -- | -| change | dispatched | -- | +| Event name | Type | Detail | +| :--------- | :--------- | :------------------ | +| change | dispatched | string | +| click | forwarded | -- | +| mouseover | forwarded | -- | +| mouseenter | forwarded | -- | +| mouseleave | forwarded | -- | ## `RadioButtonSkeleton` @@ -4251,9 +4251,9 @@ export type CarbonTheme = "white" | "g10" | "g80" | "g90" | "g100"; ### Events -| Event name | Type | Detail | -| :--------- | :--------- | :----- | -| select | dispatched | -- | +| Event name | Type | Detail | +| :--------- | :--------- | :------------------ | +| select | dispatched | string | ## `TimePicker` diff --git a/docs/src/COMPONENT_API.json b/docs/src/COMPONENT_API.json index 84e1e4e0be..cf5a36521d 100644 --- a/docs/src/COMPONENT_API.json +++ b/docs/src/COMPONENT_API.json @@ -9615,11 +9615,11 @@ } ], "events": [ + { "type": "dispatched", "name": "change", "detail": "string" }, { "type": "forwarded", "name": "click", "element": "div" }, { "type": "forwarded", "name": "mouseover", "element": "div" }, { "type": "forwarded", "name": "mouseenter", "element": "div" }, - { "type": "forwarded", "name": "mouseleave", "element": "div" }, - { "type": "dispatched", "name": "change" } + { "type": "forwarded", "name": "mouseleave", "element": "div" } ], "typedefs": [], "rest_props": { "type": "Element", "name": "div" } @@ -13158,7 +13158,9 @@ ], "moduleExports": [], "slots": [{ "name": "__default__", "default": true, "slot_props": "{}" }], - "events": [{ "type": "dispatched", "name": "select" }], + "events": [ + { "type": "dispatched", "name": "select", "detail": "string" } + ], "typedefs": [], "rest_props": { "type": "Element", "name": "fieldset" } }, diff --git a/src/RadioButtonGroup/RadioButtonGroup.svelte b/src/RadioButtonGroup/RadioButtonGroup.svelte index 7ae8a4552a..d78d893029 100644 --- a/src/RadioButtonGroup/RadioButtonGroup.svelte +++ b/src/RadioButtonGroup/RadioButtonGroup.svelte @@ -1,4 +1,8 @@ - + diff --git a/tests/RadioTile.test.svelte b/tests/RadioTile.test.svelte index f31edd8dbf..8066cde0a7 100644 --- a/tests/RadioTile.test.svelte +++ b/tests/RadioTile.test.svelte @@ -2,8 +2,16 @@ import { TileGroup, RadioTile } from "../types"; - - Lite plan + + Lite plan Standard plan Plus plan diff --git a/types/RadioButtonGroup/RadioButtonGroup.svelte.d.ts b/types/RadioButtonGroup/RadioButtonGroup.svelte.d.ts index 0e259fde43..25bbeb92bc 100644 --- a/types/RadioButtonGroup/RadioButtonGroup.svelte.d.ts +++ b/types/RadioButtonGroup/RadioButtonGroup.svelte.d.ts @@ -64,11 +64,11 @@ export interface RadioButtonGroupProps extends RestProps { export default class RadioButtonGroup extends SvelteComponentTyped< RadioButtonGroupProps, { + change: CustomEvent; click: WindowEventMap["click"]; mouseover: WindowEventMap["mouseover"]; mouseenter: WindowEventMap["mouseenter"]; mouseleave: WindowEventMap["mouseleave"]; - change: CustomEvent; }, { default: {}; legendText: {} } > {} diff --git a/types/Tile/TileGroup.svelte.d.ts b/types/Tile/TileGroup.svelte.d.ts index 98326c9273..dbd3c94d54 100644 --- a/types/Tile/TileGroup.svelte.d.ts +++ b/types/Tile/TileGroup.svelte.d.ts @@ -39,6 +39,6 @@ export interface TileGroupProps extends RestProps { export default class TileGroup extends SvelteComponentTyped< TileGroupProps, - { select: CustomEvent }, + { select: CustomEvent }, { default: {} } > {}