diff --git a/docs/content/docs/2.components/checkbox-group.md b/docs/content/docs/2.components/checkbox-group.md index 3d79f203b0..a24175533e 100644 --- a/docs/content/docs/2.components/checkbox-group.md +++ b/docs/content/docs/2.components/checkbox-group.md @@ -64,8 +64,9 @@ You can also pass an array of objects with the following properties: - `description?: string`{lang="ts-type"} - [`value?: string`{lang="ts-type"}](#value-key) - `disabled?: boolean`{lang="ts-type"} +- `icon?: string`{lang="ts-type"} - `class?: any`{lang="ts-type"} -- `ui?: { item?: ClassNameValue, container?: ClassNameValue, base?: ClassNameValue, 'indicator'?: ClassNameValue, icon?: ClassNameValue, wrapper?: ClassNameValue, label?: ClassNameValue, description?: ClassNameValue }`{lang="ts-type"} +- `ui?: { item?: ClassNameValue, container?: ClassNameValue, base?: ClassNameValue, 'indicator'?: ClassNameValue, icon?: ClassNameValue, wrapper?: ClassNameValue, label?: ClassNameValue, leadingIcon?: ClassNameValue, description?: ClassNameValue }`{lang="ts-type"} ::component-code --- @@ -129,6 +130,36 @@ props: --- :: +### Icon + +Use the `icon` property in the items to display an icon next to the label. + +::component-code +--- +ignore: + - modelValue + - items +external: + - items + - modelValue +externalTypes: + - CheckboxGroupItem[] +props: + modelValue: + - 'system' + items: + - label: 'System' + icon: 'i-lucide-monitor' + value: 'system' + - label: 'Light' + icon: 'i-lucide-sun' + value: 'light' + - label: 'Dark' + icon: 'i-lucide-moon' + value: 'dark' +--- +:: + ### Legend Use the `legend` prop to set the legend of the CheckboxGroup. diff --git a/docs/content/docs/2.components/checkbox.md b/docs/content/docs/2.components/checkbox.md index 5704e5125c..4970116a55 100644 --- a/docs/content/docs/2.components/checkbox.md +++ b/docs/content/docs/2.components/checkbox.md @@ -140,6 +140,20 @@ You can customize this icon globally in your `vite.config.ts` under `ui.icons.ch ::: :: +### Leading Icon + +Use the `leading-icon` prop to display an icon next to the label of the Checkbox. + +::component-code +--- +ignore: + - label +props: + leadingIcon: 'i-lucide-tag' + label: Check me +--- +:: + ### Color Use the `color` prop to change the color of the Checkbox. diff --git a/docs/content/docs/2.components/radio-group.md b/docs/content/docs/2.components/radio-group.md index 40fc431639..f49cbdeb52 100644 --- a/docs/content/docs/2.components/radio-group.md +++ b/docs/content/docs/2.components/radio-group.md @@ -61,8 +61,9 @@ You can also pass an array of objects with the following properties: - `description?: string`{lang="ts-type"} - [`value?: string`{lang="ts-type"}](#value-key) - `disabled?: boolean`{lang="ts-type"} +- `icon?: string`{lang="ts-type"} - `class?: any`{lang="ts-type"} -- `ui?: { item?: ClassNameValue, container?: ClassNameValue, base?: ClassNameValue, 'indicator'?: ClassNameValue, wrapper?: ClassNameValue, label?: ClassNameValue, description?: ClassNameValue }`{lang="ts-type"} +- `ui?: { item?: ClassNameValue, container?: ClassNameValue, base?: ClassNameValue, 'indicator'?: ClassNameValue, wrapper?: ClassNameValue, label?: ClassNameValue, leadingIcon?: ClassNameValue, description?: ClassNameValue }`{lang="ts-type"} ::component-code --- @@ -124,6 +125,35 @@ props: --- :: +### Icon + +Use the `icon` property in the items to display an icon next to the label. + +::component-code +--- +ignore: + - modelValue + - items +external: + - items + - modelValue +externalTypes: + - RadioGroupItem[] +props: + modelValue: 'system' + items: + - label: 'System' + icon: 'i-lucide-monitor' + value: 'system' + - label: 'Light' + icon: 'i-lucide-sun' + value: 'light' + - label: 'Dark' + icon: 'i-lucide-moon' + value: 'dark' +--- +:: + ### Legend Use the `legend` prop to set the legend of the RadioGroup. diff --git a/playgrounds/nuxt/app/pages/components/checkbox-group.vue b/playgrounds/nuxt/app/pages/components/checkbox-group.vue index 14033d2b3d..63ab872e94 100644 --- a/playgrounds/nuxt/app/pages/components/checkbox-group.vue +++ b/playgrounds/nuxt/app/pages/components/checkbox-group.vue @@ -32,6 +32,19 @@ const itemsWithDescription = [ { value: '2', label: 'Option 2', description: 'Description 2' }, { value: '3', label: 'Option 3', description: 'Description 3' } ] +const itemsWithIcon = [ + { value: '1', label: 'System', icon: 'i-lucide-monitor' }, + { value: '2', label: 'Light', icon: 'i-lucide-sun' }, + { value: '3', label: 'Dark', icon: 'i-lucide-moon' } +] +const viewItems = [ + { value: 'table', label: 'Table', icon: 'i-lucide-table' }, + { value: 'board', label: 'Board', icon: 'i-lucide-kanban' }, + { value: 'calendar', label: 'Calendar', icon: 'i-lucide-calendar' }, + { value: 'list', label: 'List', icon: 'i-lucide-list' }, + { value: 'gallery', label: 'Gallery', icon: 'i-lucide-images' }, + { value: 'map', label: 'Map', icon: 'i-lucide-map' } +] + + +
+ +
diff --git a/playgrounds/nuxt/app/pages/components/checkbox.vue b/playgrounds/nuxt/app/pages/components/checkbox.vue index 08ed72e0c4..ae6c0f8a5e 100644 --- a/playgrounds/nuxt/app/pages/components/checkbox.vue +++ b/playgrounds/nuxt/app/pages/components/checkbox.vue @@ -29,6 +29,7 @@ const value = ref(true) + diff --git a/playgrounds/nuxt/app/pages/components/radio-group.vue b/playgrounds/nuxt/app/pages/components/radio-group.vue index 447367f1fe..c29abceffb 100644 --- a/playgrounds/nuxt/app/pages/components/radio-group.vue +++ b/playgrounds/nuxt/app/pages/components/radio-group.vue @@ -31,6 +31,19 @@ const itemsWithDescription = [ { value: '2', label: 'Option 2', description: 'Description 2' }, { value: '3', label: 'Option 3', description: 'Description 3' } ] +const itemsWithIcon = [ + { value: '1', label: 'System', icon: 'i-lucide-monitor' }, + { value: '2', label: 'Light', icon: 'i-lucide-sun' }, + { value: '3', label: 'Dark', icon: 'i-lucide-moon' } +] +const viewItems = [ + { value: 'table', label: 'Table', icon: 'i-lucide-table' }, + { value: 'board', label: 'Board', icon: 'i-lucide-kanban' }, + { value: 'calendar', label: 'Calendar', icon: 'i-lucide-calendar' }, + { value: 'list', label: 'List', icon: 'i-lucide-list' }, + { value: 'gallery', label: 'Gallery', icon: 'i-lucide-images' }, + { value: 'map', label: 'Map', icon: 'i-lucide-map' } +] + + +
+ +
diff --git a/src/runtime/components/Checkbox.vue b/src/runtime/components/Checkbox.vue index f14d3f2f7e..05cace429a 100644 --- a/src/runtime/components/Checkbox.vue +++ b/src/runtime/components/Checkbox.vue @@ -48,6 +48,11 @@ export interface CheckboxProps extends Pick, ' * @IconifyIcon */ indeterminateIcon?: IconProps['name'] + /** + * The icon displayed next to the label. + * @IconifyIcon + */ + leadingIcon?: IconProps['name'] class?: any ui?: Checkbox['slots'] } @@ -139,6 +144,7 @@ function onUpdate(value: any) {
+ {{ props.label }} diff --git a/src/runtime/components/CheckboxGroup.vue b/src/runtime/components/CheckboxGroup.vue index 07c5c523f4..80e40a7cca 100644 --- a/src/runtime/components/CheckboxGroup.vue +++ b/src/runtime/components/CheckboxGroup.vue @@ -16,6 +16,11 @@ export type CheckboxGroupItem = CheckboxGroupValue | { description?: string disabled?: boolean value?: string + /** + * The icon displayed next to the label. + * @IconifyIcon + */ + icon?: IconProps['name'] class?: any ui?: Pick & Omit['ui'], 'root'> [key: string]: any @@ -89,6 +94,7 @@ import { useFormField } from '../composables/useFormField' import { get, omit } from '../utils' import { tv } from '../utils/tv' import UCheckbox from './Checkbox.vue' +import type { IconProps } from './Icon.vue' const _props = withDefaults(defineProps>(), { labelKey: 'label', @@ -187,7 +193,8 @@ function onUpdate(value: any) { + ui?: Pick [key: string]: any } @@ -100,6 +105,8 @@ import { useForwardProps } from '../composables/useForwardProps' import { useFormField } from '../composables/useFormField' import { get } from '../utils' import { tv } from '../utils/tv' +import type { IconProps } from './Icon.vue' +import UIcon from './Icon.vue' const _props = withDefaults(defineProps>(), { valueKey: 'value' as never, @@ -213,6 +220,7 @@ function onUpdate(value: any) {
+ {{ item.label }} diff --git a/src/theme/checkbox.ts b/src/theme/checkbox.ts index 8a977897d6..1d73424164 100644 --- a/src/theme/checkbox.ts +++ b/src/theme/checkbox.ts @@ -9,6 +9,7 @@ export default (options: Required) => ({ icon: 'shrink-0 size-full', wrapper: 'w-full', label: 'block font-medium text-default', + leadingIcon: 'inline-block align-middle shrink-0 me-1.5', description: 'text-muted' }, variants: { @@ -48,27 +49,32 @@ export default (options: Required) => ({ xs: { base: 'size-3', container: 'h-4', - wrapper: 'text-xs' + wrapper: 'text-xs', + leadingIcon: 'size-3' }, sm: { base: 'size-3.5', container: 'h-4', - wrapper: 'text-xs' + wrapper: 'text-xs', + leadingIcon: 'size-3.5' }, md: { base: 'size-4', container: 'h-5', - wrapper: 'text-sm' + wrapper: 'text-sm', + leadingIcon: 'size-4' }, lg: { base: 'size-4.5', container: 'h-5', - wrapper: 'text-sm' + wrapper: 'text-sm', + leadingIcon: 'size-4.5' }, xl: { base: 'size-5', container: 'h-6', - wrapper: 'text-base' + wrapper: 'text-base', + leadingIcon: 'size-5' } }, required: { diff --git a/src/theme/radio-group.ts b/src/theme/radio-group.ts index 640199c1b4..7a18c0df7e 100644 --- a/src/theme/radio-group.ts +++ b/src/theme/radio-group.ts @@ -11,6 +11,7 @@ export default (options: Required) => ({ indicator: 'flex items-center justify-center size-full after:bg-default after:rounded-full', wrapper: 'w-full', label: 'block font-medium text-default', + leadingIcon: 'inline-block align-middle shrink-0 me-1.5', description: 'text-muted' }, variants: { @@ -64,7 +65,8 @@ export default (options: Required) => ({ base: 'size-3', item: 'text-xs', container: 'h-4', - indicator: 'after:size-1' + indicator: 'after:size-1', + leadingIcon: 'size-3' }, sm: { fieldset: 'gap-y-0.5', @@ -72,7 +74,8 @@ export default (options: Required) => ({ base: 'size-3.5', item: 'text-xs', container: 'h-4', - indicator: 'after:size-1' + indicator: 'after:size-1', + leadingIcon: 'size-3.5' }, md: { fieldset: 'gap-y-1', @@ -80,7 +83,8 @@ export default (options: Required) => ({ base: 'size-4', item: 'text-sm', container: 'h-5', - indicator: 'after:size-1.5' + indicator: 'after:size-1.5', + leadingIcon: 'size-4' }, lg: { fieldset: 'gap-y-1', @@ -88,7 +92,8 @@ export default (options: Required) => ({ base: 'size-4.5', item: 'text-sm', container: 'h-5', - indicator: 'after:size-1.5' + indicator: 'after:size-1.5', + leadingIcon: 'size-4.5' }, xl: { fieldset: 'gap-y-1.5', @@ -96,7 +101,8 @@ export default (options: Required) => ({ base: 'size-5', item: 'text-base', container: 'h-6', - indicator: 'after:size-2' + indicator: 'after:size-2', + leadingIcon: 'size-5' } }, highlight: { diff --git a/test/components/CheckboxGroup.spec.ts b/test/components/CheckboxGroup.spec.ts index d13f5ac115..0145fe6e5c 100644 --- a/test/components/CheckboxGroup.spec.ts +++ b/test/components/CheckboxGroup.spec.ts @@ -1,7 +1,8 @@ import { describe, it, expect, test } from 'vitest' import { axe } from 'vitest-axe' -import { flushPromises, mount } from '@vue/test-utils' +import { flushPromises, mount, type VueWrapper } from '@vue/test-utils' import CheckboxGroup from '../../src/runtime/components/CheckboxGroup.vue' +import Checkbox from '../../src/runtime/components/Checkbox.vue' import type { FormInputEvents } from '../../src/module' import { renderForm } from '../utils/form' import theme from '#build/ui/checkbox-group' @@ -31,6 +32,7 @@ describe('CheckboxGroup', () => { ['with descriptionKey', { props: { ...props, descriptionKey: 'value' } }], ['with disabled', { props: { ...props, disabled: true } }], ['with description', { props: { items: items.map((opt, count) => ({ ...opt, description: `Description ${count}` })) } }], + ['with icon', { props: { items: items.map(opt => ({ ...opt, icon: 'i-lucide-rocket' })) } }], ['with required', { props: { ...props, legend: 'Legend', required: true } }], ...sizes.map((size: string) => [`with size ${size}`, { props: { ...props, size, defaultValue: ['1'] } }]), ...variants.map((variant: string) => [`with primary variant ${variant}`, { props: { ...props, variant, defaultValue: ['1'] } }]), @@ -64,6 +66,15 @@ describe('CheckboxGroup', () => { expect(await axe(wrapper.element)).toHaveNoViolations() }) + it('maps an item icon to the leading icon, not the checkbox indicator icon', async () => { + const wrapper = await mountSuspended(CheckboxGroup, { + props: { items: [{ value: '1', label: 'Option 1', icon: 'i-lucide-rocket' }] } + }) + const checkbox = wrapper.findComponent(Checkbox) as unknown as VueWrapper + expect(checkbox.props('leadingIcon')).toBe('i-lucide-rocket') + expect(checkbox.props('icon')).toBeUndefined() + }) + describe('emits', () => { test('update:modelValue event', async () => { const wrapper = mount(CheckboxGroup, { props: { items: ['Option 1', 'Option 2'] } }) diff --git a/test/components/RadioGroup.spec.ts b/test/components/RadioGroup.spec.ts index 5c849709a9..f02a50827a 100644 --- a/test/components/RadioGroup.spec.ts +++ b/test/components/RadioGroup.spec.ts @@ -30,6 +30,7 @@ describe('RadioGroup', () => { ['with descriptionKey', { props: { ...props, descriptionKey: 'value' } }], ['with disabled', { props: { ...props, disabled: true } }], ['with description', { props: { items: items.map((opt, count) => ({ ...opt, description: `Description ${count}` })) } }], + ['with icon', { props: { items: items.map(opt => ({ ...opt, icon: 'i-lucide-rocket' })) } }], ['with required', { props: { ...props, legend: 'Legend', required: true } }], ...sizes.map((size: string) => [`with size ${size}`, { props: { ...props, size, defaultValue: '1' } }]), ...variants.map((variant: string) => [`with primary variant ${variant}`, { props: { ...props, variant, defaultValue: '1' } }]), diff --git a/test/components/__snapshots__/Checkbox-vue.spec.ts.snap b/test/components/__snapshots__/Checkbox-vue.spec.ts.snap index 38139da7f2..00ed900fd8 100644 --- a/test/components/__snapshots__/Checkbox-vue.spec.ts.snap +++ b/test/components/__snapshots__/Checkbox-vue.spec.ts.snap @@ -49,7 +49,9 @@ exports[`Checkbox > renders with description correctly 1`] = `
-
+

Description

" @@ -62,7 +64,9 @@ exports[`Checkbox > renders with description slot correctly 1`] = `
-
+
" @@ -153,7 +157,9 @@ exports[`Checkbox > renders with label correctly 1`] = ` -
+
" @@ -166,7 +172,9 @@ exports[`Checkbox > renders with label slot correctly 1`] = ` -
+
" @@ -271,7 +279,9 @@ exports[`Checkbox > renders with required correctly 1`] = ` -
+
" diff --git a/test/components/__snapshots__/Checkbox.spec.ts.snap b/test/components/__snapshots__/Checkbox.spec.ts.snap index 8db481e6aa..216d0adf46 100644 --- a/test/components/__snapshots__/Checkbox.spec.ts.snap +++ b/test/components/__snapshots__/Checkbox.spec.ts.snap @@ -49,7 +49,9 @@ exports[`Checkbox > renders with description correctly 1`] = ` -
+

Description

" @@ -62,7 +64,9 @@ exports[`Checkbox > renders with description slot correctly 1`] = ` -
+
" @@ -153,7 +157,9 @@ exports[`Checkbox > renders with label correctly 1`] = ` -
+
" @@ -166,7 +172,9 @@ exports[`Checkbox > renders with label slot correctly 1`] = ` -
+
" @@ -271,7 +279,9 @@ exports[`Checkbox > renders with required correctly 1`] = ` -
+
" diff --git a/test/components/__snapshots__/CheckboxGroup-vue.spec.ts.snap b/test/components/__snapshots__/CheckboxGroup-vue.spec.ts.snap index 17c6235c7e..1d6943e446 100644 --- a/test/components/__snapshots__/CheckboxGroup-vue.spec.ts.snap +++ b/test/components/__snapshots__/CheckboxGroup-vue.spec.ts.snap @@ -10,7 +10,9 @@ exports[`CheckboxGroup > renders with ariaLabel correctly 1`] = ` -
+
@@ -20,7 +22,9 @@ exports[`CheckboxGroup > renders with ariaLabel correctly 1`] = ` -
+
@@ -30,7 +34,9 @@ exports[`CheckboxGroup > renders with ariaLabel correctly 1`] = ` -
+
@@ -49,7 +55,9 @@ exports[`CheckboxGroup > renders with as correctly 1`] = ` -
+
@@ -59,7 +67,9 @@ exports[`CheckboxGroup > renders with as correctly 1`] = ` -
+
@@ -69,7 +79,9 @@ exports[`CheckboxGroup > renders with as correctly 1`] = ` -
+
@@ -88,7 +100,9 @@ exports[`CheckboxGroup > renders with class correctly 1`] = ` -
+
@@ -98,7 +112,9 @@ exports[`CheckboxGroup > renders with class correctly 1`] = ` -
+
@@ -108,7 +124,9 @@ exports[`CheckboxGroup > renders with class correctly 1`] = ` -
+
@@ -125,7 +143,9 @@ exports[`CheckboxGroup > renders with defaultValue correctly 1`] = `
-
+
@@ -135,7 +155,9 @@ exports[`CheckboxGroup > renders with defaultValue correctly 1`] = ` -
+
@@ -145,7 +167,9 @@ exports[`CheckboxGroup > renders with defaultValue correctly 1`] = ` -
+
@@ -164,7 +188,9 @@ exports[`CheckboxGroup > renders with description correctly 1`] = ` -
+

Description 0

@@ -174,7 +200,9 @@ exports[`CheckboxGroup > renders with description correctly 1`] = ` -
+

Description 1

@@ -184,7 +212,9 @@ exports[`CheckboxGroup > renders with description correctly 1`] = ` -
+

Description 2

@@ -203,7 +233,9 @@ exports[`CheckboxGroup > renders with description slot correctly 1`] = ` -
+

Description slot

@@ -213,7 +245,9 @@ exports[`CheckboxGroup > renders with description slot correctly 1`] = ` -
+

Description slot

@@ -223,7 +257,9 @@ exports[`CheckboxGroup > renders with description slot correctly 1`] = ` -
+

Description slot

@@ -242,7 +278,9 @@ exports[`CheckboxGroup > renders with descriptionKey correctly 1`] = ` -
+

1

@@ -252,7 +290,9 @@ exports[`CheckboxGroup > renders with descriptionKey correctly 1`] = ` -
+

2

@@ -262,7 +302,9 @@ exports[`CheckboxGroup > renders with descriptionKey correctly 1`] = ` -
+

3

@@ -281,7 +323,9 @@ exports[`CheckboxGroup > renders with disabled correctly 1`] = ` -
+
@@ -291,7 +335,9 @@ exports[`CheckboxGroup > renders with disabled correctly 1`] = ` -
+
@@ -301,7 +347,9 @@ exports[`CheckboxGroup > renders with disabled correctly 1`] = ` -
+
@@ -318,7 +366,9 @@ exports[`CheckboxGroup > renders with horizontal variant card correctly 1`] = `
-

Option 1

+

+ Option 1 +

@@ -355,7 +409,9 @@ exports[`CheckboxGroup > renders with horizontal variant list correctly 1`] = `
-
+
@@ -365,7 +421,9 @@ exports[`CheckboxGroup > renders with horizontal variant list correctly 1`] = ` -
+
@@ -375,7 +433,9 @@ exports[`CheckboxGroup > renders with horizontal variant list correctly 1`] = ` -
+
@@ -392,7 +452,9 @@ exports[`CheckboxGroup > renders with horizontal variant table correctly 1`] = `
-

Option 1

+

+ Option 1 +

@@ -421,6 +487,45 @@ exports[`CheckboxGroup > renders with horizontal variant table correctly 1`] = ` " `; +exports[`CheckboxGroup > renders with icon correctly 1`] = ` +"
+
+ +
+
+ +
+
+ +
+
+
+
+ +
+
+ +
+
+
+
+ +
+
+ +
+
+
+ +
" +`; + exports[`CheckboxGroup > renders with indicator end correctly 1`] = ` "
@@ -429,7 +534,9 @@ exports[`CheckboxGroup > renders with indicator end correctly 1`] = `
-
+
@@ -439,7 +546,9 @@ exports[`CheckboxGroup > renders with indicator end correctly 1`] = `
-
+
@@ -449,7 +558,9 @@ exports[`CheckboxGroup > renders with indicator end correctly 1`] = ` -
+
@@ -466,7 +577,9 @@ exports[`CheckboxGroup > renders with indicator hidden correctly 1`] = `
-
+
@@ -476,7 +589,9 @@ exports[`CheckboxGroup > renders with indicator hidden correctly 1`] = ` -
+
@@ -486,7 +601,9 @@ exports[`CheckboxGroup > renders with indicator hidden correctly 1`] = ` -
+
@@ -503,7 +620,9 @@ exports[`CheckboxGroup > renders with indicator start correctly 1`] = `
-
+
@@ -513,7 +632,9 @@ exports[`CheckboxGroup > renders with indicator start correctly 1`] = ` -
+
@@ -523,7 +644,9 @@ exports[`CheckboxGroup > renders with indicator start correctly 1`] = ` -
+
@@ -542,7 +665,9 @@ exports[`CheckboxGroup > renders with items correctly 1`] = ` -
+
@@ -552,7 +677,9 @@ exports[`CheckboxGroup > renders with items correctly 1`] = ` -
+
@@ -562,7 +689,9 @@ exports[`CheckboxGroup > renders with items correctly 1`] = ` -
+
@@ -581,7 +710,9 @@ exports[`CheckboxGroup > renders with label slot correctly 1`] = ` -
+
@@ -591,7 +722,9 @@ exports[`CheckboxGroup > renders with label slot correctly 1`] = ` -
+
@@ -601,7 +734,9 @@ exports[`CheckboxGroup > renders with label slot correctly 1`] = ` -
+
@@ -620,7 +755,9 @@ exports[`CheckboxGroup > renders with labelKey correctly 1`] = ` -
+
@@ -630,7 +767,9 @@ exports[`CheckboxGroup > renders with labelKey correctly 1`] = ` -
+
@@ -640,7 +779,9 @@ exports[`CheckboxGroup > renders with labelKey correctly 1`] = ` -
+
@@ -659,7 +800,9 @@ exports[`CheckboxGroup > renders with legend slot correctly 1`] = ` -
+
@@ -669,7 +812,9 @@ exports[`CheckboxGroup > renders with legend slot correctly 1`] = ` -
+
@@ -679,7 +824,9 @@ exports[`CheckboxGroup > renders with legend slot correctly 1`] = ` -
+
@@ -696,7 +843,9 @@ exports[`CheckboxGroup > renders with modelValue correctly 1`] = `
-
+
@@ -706,7 +855,9 @@ exports[`CheckboxGroup > renders with modelValue correctly 1`] = ` -
+
@@ -716,7 +867,9 @@ exports[`CheckboxGroup > renders with modelValue correctly 1`] = ` -
+
@@ -733,7 +886,9 @@ exports[`CheckboxGroup > renders with neutral variant card correctly 1`] = `
-

Option 1

+

+ Option 1 +

@@ -770,7 +929,9 @@ exports[`CheckboxGroup > renders with neutral variant card highlight correctly 1
-

Option 1

+

+ Option 1 +

@@ -807,7 +972,9 @@ exports[`CheckboxGroup > renders with neutral variant list correctly 1`] = `
-
+
@@ -817,7 +984,9 @@ exports[`CheckboxGroup > renders with neutral variant list correctly 1`] = ` -
+
@@ -827,7 +996,9 @@ exports[`CheckboxGroup > renders with neutral variant list correctly 1`] = ` -
+
@@ -844,7 +1015,9 @@ exports[`CheckboxGroup > renders with neutral variant list highlight correctly 1
-
+
@@ -854,7 +1027,9 @@ exports[`CheckboxGroup > renders with neutral variant list highlight correctly 1 -
+
@@ -864,7 +1039,9 @@ exports[`CheckboxGroup > renders with neutral variant list highlight correctly 1 -
+
@@ -881,7 +1058,9 @@ exports[`CheckboxGroup > renders with neutral variant table correctly 1`] = `
-

Option 1

+

+ Option 1 +

@@ -918,7 +1101,9 @@ exports[`CheckboxGroup > renders with neutral variant table highlight correctly
-

Option 1

+

+ Option 1 +

@@ -955,7 +1144,9 @@ exports[`CheckboxGroup > renders with primary variant card correctly 1`] = `
-

Option 1

+

+ Option 1 +

@@ -992,7 +1187,9 @@ exports[`CheckboxGroup > renders with primary variant card highlight correctly 1
-

Option 1

+

+ Option 1 +

@@ -1029,7 +1230,9 @@ exports[`CheckboxGroup > renders with primary variant list correctly 1`] = `
-
+
@@ -1039,7 +1242,9 @@ exports[`CheckboxGroup > renders with primary variant list correctly 1`] = ` -
+
@@ -1049,7 +1254,9 @@ exports[`CheckboxGroup > renders with primary variant list correctly 1`] = ` -
+
@@ -1066,7 +1273,9 @@ exports[`CheckboxGroup > renders with primary variant list highlight correctly 1
-
+
@@ -1076,7 +1285,9 @@ exports[`CheckboxGroup > renders with primary variant list highlight correctly 1 -
+
@@ -1086,7 +1297,9 @@ exports[`CheckboxGroup > renders with primary variant list highlight correctly 1 -
+
@@ -1103,7 +1316,9 @@ exports[`CheckboxGroup > renders with primary variant table correctly 1`] = `
-

Option 1

+

+ Option 1 +

@@ -1140,7 +1359,9 @@ exports[`CheckboxGroup > renders with primary variant table highlight correctly
-

Option 1

+

+ Option 1 +

@@ -1179,7 +1404,9 @@ exports[`CheckboxGroup > renders with required correctly 1`] = ` -
+
@@ -1189,7 +1416,9 @@ exports[`CheckboxGroup > renders with required correctly 1`] = ` -
+
@@ -1199,7 +1428,9 @@ exports[`CheckboxGroup > renders with required correctly 1`] = ` -
+
@@ -1216,7 +1447,9 @@ exports[`CheckboxGroup > renders with size lg correctly 1`] = `
-
+
@@ -1226,7 +1459,9 @@ exports[`CheckboxGroup > renders with size lg correctly 1`] = ` -
+
@@ -1236,7 +1471,9 @@ exports[`CheckboxGroup > renders with size lg correctly 1`] = ` -
+
@@ -1253,7 +1490,9 @@ exports[`CheckboxGroup > renders with size md correctly 1`] = `
-
+
@@ -1263,7 +1502,9 @@ exports[`CheckboxGroup > renders with size md correctly 1`] = ` -
+
@@ -1273,7 +1514,9 @@ exports[`CheckboxGroup > renders with size md correctly 1`] = ` -
+
@@ -1290,7 +1533,9 @@ exports[`CheckboxGroup > renders with size sm correctly 1`] = `
-
+
@@ -1300,7 +1545,9 @@ exports[`CheckboxGroup > renders with size sm correctly 1`] = ` -
+
@@ -1310,7 +1557,9 @@ exports[`CheckboxGroup > renders with size sm correctly 1`] = ` -
+
@@ -1327,7 +1576,9 @@ exports[`CheckboxGroup > renders with size xl correctly 1`] = `
-
+
@@ -1337,7 +1588,9 @@ exports[`CheckboxGroup > renders with size xl correctly 1`] = ` -
+
@@ -1347,7 +1600,9 @@ exports[`CheckboxGroup > renders with size xl correctly 1`] = ` -
+
@@ -1364,7 +1619,9 @@ exports[`CheckboxGroup > renders with size xs correctly 1`] = `
-
+
@@ -1374,7 +1631,9 @@ exports[`CheckboxGroup > renders with size xs correctly 1`] = ` -
+
@@ -1384,7 +1643,9 @@ exports[`CheckboxGroup > renders with size xs correctly 1`] = ` -
+
@@ -1403,7 +1664,9 @@ exports[`CheckboxGroup > renders with ui correctly 1`] = ` -
+
@@ -1413,7 +1676,9 @@ exports[`CheckboxGroup > renders with ui correctly 1`] = ` -
+
@@ -1423,7 +1688,9 @@ exports[`CheckboxGroup > renders with ui correctly 1`] = ` -
+
@@ -1440,7 +1707,9 @@ exports[`CheckboxGroup > renders with valueKey correctly 1`] = `
-
+
@@ -1450,7 +1719,9 @@ exports[`CheckboxGroup > renders with valueKey correctly 1`] = ` -
+
@@ -1460,7 +1731,9 @@ exports[`CheckboxGroup > renders with valueKey correctly 1`] = ` -
+
diff --git a/test/components/__snapshots__/CheckboxGroup.spec.ts.snap b/test/components/__snapshots__/CheckboxGroup.spec.ts.snap index 34765fe1e9..960b2dcd08 100644 --- a/test/components/__snapshots__/CheckboxGroup.spec.ts.snap +++ b/test/components/__snapshots__/CheckboxGroup.spec.ts.snap @@ -10,7 +10,9 @@ exports[`CheckboxGroup > renders with ariaLabel correctly 1`] = ` -
+
@@ -20,7 +22,9 @@ exports[`CheckboxGroup > renders with ariaLabel correctly 1`] = ` -
+
@@ -30,7 +34,9 @@ exports[`CheckboxGroup > renders with ariaLabel correctly 1`] = ` -
+
@@ -49,7 +55,9 @@ exports[`CheckboxGroup > renders with as correctly 1`] = ` -
+
@@ -59,7 +67,9 @@ exports[`CheckboxGroup > renders with as correctly 1`] = ` -
+
@@ -69,7 +79,9 @@ exports[`CheckboxGroup > renders with as correctly 1`] = ` -
+
@@ -88,7 +100,9 @@ exports[`CheckboxGroup > renders with class correctly 1`] = ` -
+
@@ -98,7 +112,9 @@ exports[`CheckboxGroup > renders with class correctly 1`] = ` -
+
@@ -108,7 +124,9 @@ exports[`CheckboxGroup > renders with class correctly 1`] = ` -
+
@@ -125,7 +143,9 @@ exports[`CheckboxGroup > renders with defaultValue correctly 1`] = `
-
+
@@ -135,7 +155,9 @@ exports[`CheckboxGroup > renders with defaultValue correctly 1`] = ` -
+
@@ -145,7 +167,9 @@ exports[`CheckboxGroup > renders with defaultValue correctly 1`] = ` -
+
@@ -164,7 +188,9 @@ exports[`CheckboxGroup > renders with description correctly 1`] = ` -
+

Description 0

@@ -174,7 +200,9 @@ exports[`CheckboxGroup > renders with description correctly 1`] = ` -
+

Description 1

@@ -184,7 +212,9 @@ exports[`CheckboxGroup > renders with description correctly 1`] = ` -
+

Description 2

@@ -203,7 +233,9 @@ exports[`CheckboxGroup > renders with description slot correctly 1`] = ` -
+

Description slot

@@ -213,7 +245,9 @@ exports[`CheckboxGroup > renders with description slot correctly 1`] = ` -
+

Description slot

@@ -223,7 +257,9 @@ exports[`CheckboxGroup > renders with description slot correctly 1`] = ` -
+

Description slot

@@ -242,7 +278,9 @@ exports[`CheckboxGroup > renders with descriptionKey correctly 1`] = ` -
+

1

@@ -252,7 +290,9 @@ exports[`CheckboxGroup > renders with descriptionKey correctly 1`] = ` -
+

2

@@ -262,7 +302,9 @@ exports[`CheckboxGroup > renders with descriptionKey correctly 1`] = ` -
+

3

@@ -281,7 +323,9 @@ exports[`CheckboxGroup > renders with disabled correctly 1`] = ` -
+
@@ -291,7 +335,9 @@ exports[`CheckboxGroup > renders with disabled correctly 1`] = ` -
+
@@ -301,7 +347,9 @@ exports[`CheckboxGroup > renders with disabled correctly 1`] = ` -
+
@@ -318,7 +366,9 @@ exports[`CheckboxGroup > renders with horizontal variant card correctly 1`] = `
-

Option 1

+

+ Option 1 +

@@ -355,7 +409,9 @@ exports[`CheckboxGroup > renders with horizontal variant list correctly 1`] = `
-
+
@@ -365,7 +421,9 @@ exports[`CheckboxGroup > renders with horizontal variant list correctly 1`] = ` -
+
@@ -375,7 +433,9 @@ exports[`CheckboxGroup > renders with horizontal variant list correctly 1`] = ` -
+
@@ -392,7 +452,9 @@ exports[`CheckboxGroup > renders with horizontal variant table correctly 1`] = `
-

Option 1

+

+ Option 1 +

@@ -421,6 +487,45 @@ exports[`CheckboxGroup > renders with horizontal variant table correctly 1`] = ` " `; +exports[`CheckboxGroup > renders with icon correctly 1`] = ` +"
+
+ +
+
+ +
+
+ +
+
+
+
+ +
+
+ +
+
+
+
+ +
+
+ +
+
+
+ +
" +`; + exports[`CheckboxGroup > renders with indicator end correctly 1`] = ` "
@@ -429,7 +534,9 @@ exports[`CheckboxGroup > renders with indicator end correctly 1`] = `
-
+
@@ -439,7 +546,9 @@ exports[`CheckboxGroup > renders with indicator end correctly 1`] = `
-
+
@@ -449,7 +558,9 @@ exports[`CheckboxGroup > renders with indicator end correctly 1`] = ` -
+
@@ -466,7 +577,9 @@ exports[`CheckboxGroup > renders with indicator hidden correctly 1`] = `
-
+
@@ -476,7 +589,9 @@ exports[`CheckboxGroup > renders with indicator hidden correctly 1`] = ` -
+
@@ -486,7 +601,9 @@ exports[`CheckboxGroup > renders with indicator hidden correctly 1`] = ` -
+
@@ -503,7 +620,9 @@ exports[`CheckboxGroup > renders with indicator start correctly 1`] = `
-
+
@@ -513,7 +632,9 @@ exports[`CheckboxGroup > renders with indicator start correctly 1`] = ` -
+
@@ -523,7 +644,9 @@ exports[`CheckboxGroup > renders with indicator start correctly 1`] = ` -
+
@@ -542,7 +665,9 @@ exports[`CheckboxGroup > renders with items correctly 1`] = ` -
+
@@ -552,7 +677,9 @@ exports[`CheckboxGroup > renders with items correctly 1`] = ` -
+
@@ -562,7 +689,9 @@ exports[`CheckboxGroup > renders with items correctly 1`] = ` -
+
@@ -581,7 +710,9 @@ exports[`CheckboxGroup > renders with label slot correctly 1`] = ` -
+
@@ -591,7 +722,9 @@ exports[`CheckboxGroup > renders with label slot correctly 1`] = ` -
+
@@ -601,7 +734,9 @@ exports[`CheckboxGroup > renders with label slot correctly 1`] = ` -
+
@@ -620,7 +755,9 @@ exports[`CheckboxGroup > renders with labelKey correctly 1`] = ` -
+
@@ -630,7 +767,9 @@ exports[`CheckboxGroup > renders with labelKey correctly 1`] = ` -
+
@@ -640,7 +779,9 @@ exports[`CheckboxGroup > renders with labelKey correctly 1`] = ` -
+
@@ -659,7 +800,9 @@ exports[`CheckboxGroup > renders with legend slot correctly 1`] = ` -
+
@@ -669,7 +812,9 @@ exports[`CheckboxGroup > renders with legend slot correctly 1`] = ` -
+
@@ -679,7 +824,9 @@ exports[`CheckboxGroup > renders with legend slot correctly 1`] = ` -
+
@@ -696,7 +843,9 @@ exports[`CheckboxGroup > renders with modelValue correctly 1`] = `
-
+
@@ -706,7 +855,9 @@ exports[`CheckboxGroup > renders with modelValue correctly 1`] = ` -
+
@@ -716,7 +867,9 @@ exports[`CheckboxGroup > renders with modelValue correctly 1`] = ` -
+
@@ -733,7 +886,9 @@ exports[`CheckboxGroup > renders with neutral variant card correctly 1`] = `
-

Option 1

+

+ Option 1 +

@@ -770,7 +929,9 @@ exports[`CheckboxGroup > renders with neutral variant card highlight correctly 1
-

Option 1

+

+ Option 1 +

@@ -807,7 +972,9 @@ exports[`CheckboxGroup > renders with neutral variant list correctly 1`] = `
-
+
@@ -817,7 +984,9 @@ exports[`CheckboxGroup > renders with neutral variant list correctly 1`] = ` -
+
@@ -827,7 +996,9 @@ exports[`CheckboxGroup > renders with neutral variant list correctly 1`] = ` -
+
@@ -844,7 +1015,9 @@ exports[`CheckboxGroup > renders with neutral variant list highlight correctly 1
-
+
@@ -854,7 +1027,9 @@ exports[`CheckboxGroup > renders with neutral variant list highlight correctly 1 -
+
@@ -864,7 +1039,9 @@ exports[`CheckboxGroup > renders with neutral variant list highlight correctly 1 -
+
@@ -881,7 +1058,9 @@ exports[`CheckboxGroup > renders with neutral variant table correctly 1`] = `
-

Option 1

+

+ Option 1 +

@@ -918,7 +1101,9 @@ exports[`CheckboxGroup > renders with neutral variant table highlight correctly
-

Option 1

+

+ Option 1 +

@@ -955,7 +1144,9 @@ exports[`CheckboxGroup > renders with primary variant card correctly 1`] = `
-

Option 1

+

+ Option 1 +

@@ -992,7 +1187,9 @@ exports[`CheckboxGroup > renders with primary variant card highlight correctly 1
-

Option 1

+

+ Option 1 +

@@ -1029,7 +1230,9 @@ exports[`CheckboxGroup > renders with primary variant list correctly 1`] = `
-
+
@@ -1039,7 +1242,9 @@ exports[`CheckboxGroup > renders with primary variant list correctly 1`] = ` -
+
@@ -1049,7 +1254,9 @@ exports[`CheckboxGroup > renders with primary variant list correctly 1`] = ` -
+
@@ -1066,7 +1273,9 @@ exports[`CheckboxGroup > renders with primary variant list highlight correctly 1
-
+
@@ -1076,7 +1285,9 @@ exports[`CheckboxGroup > renders with primary variant list highlight correctly 1 -
+
@@ -1086,7 +1297,9 @@ exports[`CheckboxGroup > renders with primary variant list highlight correctly 1 -
+
@@ -1103,7 +1316,9 @@ exports[`CheckboxGroup > renders with primary variant table correctly 1`] = `
-

Option 1

+

+ Option 1 +

@@ -1140,7 +1359,9 @@ exports[`CheckboxGroup > renders with primary variant table highlight correctly
-

Option 1

+

+ Option 1 +

@@ -1179,7 +1404,9 @@ exports[`CheckboxGroup > renders with required correctly 1`] = ` -
+
@@ -1189,7 +1416,9 @@ exports[`CheckboxGroup > renders with required correctly 1`] = ` -
+
@@ -1199,7 +1428,9 @@ exports[`CheckboxGroup > renders with required correctly 1`] = ` -
+
@@ -1216,7 +1447,9 @@ exports[`CheckboxGroup > renders with size lg correctly 1`] = `
-
+
@@ -1226,7 +1459,9 @@ exports[`CheckboxGroup > renders with size lg correctly 1`] = ` -
+
@@ -1236,7 +1471,9 @@ exports[`CheckboxGroup > renders with size lg correctly 1`] = ` -
+
@@ -1253,7 +1490,9 @@ exports[`CheckboxGroup > renders with size md correctly 1`] = `
-
+
@@ -1263,7 +1502,9 @@ exports[`CheckboxGroup > renders with size md correctly 1`] = ` -
+
@@ -1273,7 +1514,9 @@ exports[`CheckboxGroup > renders with size md correctly 1`] = ` -
+
@@ -1290,7 +1533,9 @@ exports[`CheckboxGroup > renders with size sm correctly 1`] = `
-
+
@@ -1300,7 +1545,9 @@ exports[`CheckboxGroup > renders with size sm correctly 1`] = ` -
+
@@ -1310,7 +1557,9 @@ exports[`CheckboxGroup > renders with size sm correctly 1`] = ` -
+
@@ -1327,7 +1576,9 @@ exports[`CheckboxGroup > renders with size xl correctly 1`] = `
-
+
@@ -1337,7 +1588,9 @@ exports[`CheckboxGroup > renders with size xl correctly 1`] = ` -
+
@@ -1347,7 +1600,9 @@ exports[`CheckboxGroup > renders with size xl correctly 1`] = ` -
+
@@ -1364,7 +1619,9 @@ exports[`CheckboxGroup > renders with size xs correctly 1`] = `
-
+
@@ -1374,7 +1631,9 @@ exports[`CheckboxGroup > renders with size xs correctly 1`] = ` -
+
@@ -1384,7 +1643,9 @@ exports[`CheckboxGroup > renders with size xs correctly 1`] = ` -
+
@@ -1403,7 +1664,9 @@ exports[`CheckboxGroup > renders with ui correctly 1`] = ` -
+
@@ -1413,7 +1676,9 @@ exports[`CheckboxGroup > renders with ui correctly 1`] = ` -
+
@@ -1423,7 +1688,9 @@ exports[`CheckboxGroup > renders with ui correctly 1`] = ` -
+
@@ -1440,7 +1707,9 @@ exports[`CheckboxGroup > renders with valueKey correctly 1`] = `
-
+
@@ -1450,7 +1719,9 @@ exports[`CheckboxGroup > renders with valueKey correctly 1`] = ` -
+
@@ -1460,7 +1731,9 @@ exports[`CheckboxGroup > renders with valueKey correctly 1`] = ` -
+
diff --git a/test/components/__snapshots__/RadioGroup-vue.spec.ts.snap b/test/components/__snapshots__/RadioGroup-vue.spec.ts.snap index 266edf59b7..a5941fd6c7 100644 --- a/test/components/__snapshots__/RadioGroup-vue.spec.ts.snap +++ b/test/components/__snapshots__/RadioGroup-vue.spec.ts.snap @@ -10,7 +10,9 @@ exports[`RadioGroup > renders with ariaLabel correctly 1`] = ` -
+
@@ -20,7 +22,9 @@ exports[`RadioGroup > renders with ariaLabel correctly 1`] = ` -
+
@@ -30,7 +34,9 @@ exports[`RadioGroup > renders with ariaLabel correctly 1`] = ` -
+
@@ -49,7 +55,9 @@ exports[`RadioGroup > renders with as correctly 1`] = ` -
+
@@ -59,7 +67,9 @@ exports[`RadioGroup > renders with as correctly 1`] = ` -
+
@@ -69,7 +79,9 @@ exports[`RadioGroup > renders with as correctly 1`] = ` -
+
@@ -88,7 +100,9 @@ exports[`RadioGroup > renders with class correctly 1`] = ` -
+
@@ -98,7 +112,9 @@ exports[`RadioGroup > renders with class correctly 1`] = ` -
+
@@ -108,7 +124,9 @@ exports[`RadioGroup > renders with class correctly 1`] = ` -
+
@@ -125,7 +143,9 @@ exports[`RadioGroup > renders with defaultValue correctly 1`] = `
-
+
@@ -135,7 +155,9 @@ exports[`RadioGroup > renders with defaultValue correctly 1`] = ` -
+
@@ -145,7 +167,9 @@ exports[`RadioGroup > renders with defaultValue correctly 1`] = ` -
+
@@ -164,7 +188,9 @@ exports[`RadioGroup > renders with description correctly 1`] = ` -
+

Description 0

@@ -174,7 +200,9 @@ exports[`RadioGroup > renders with description correctly 1`] = ` -
+

Description 1

@@ -184,7 +212,9 @@ exports[`RadioGroup > renders with description correctly 1`] = ` -
+

Description 2

@@ -203,7 +233,9 @@ exports[`RadioGroup > renders with description slot correctly 1`] = ` -
+
@@ -213,7 +245,9 @@ exports[`RadioGroup > renders with description slot correctly 1`] = ` -
+
@@ -223,7 +257,9 @@ exports[`RadioGroup > renders with description slot correctly 1`] = ` -
+
@@ -242,7 +278,9 @@ exports[`RadioGroup > renders with descriptionKey correctly 1`] = ` -
+

1

@@ -252,7 +290,9 @@ exports[`RadioGroup > renders with descriptionKey correctly 1`] = ` -
+

2

@@ -262,7 +302,9 @@ exports[`RadioGroup > renders with descriptionKey correctly 1`] = ` -
+

3

@@ -281,7 +323,9 @@ exports[`RadioGroup > renders with disabled correctly 1`] = ` -
+
@@ -291,7 +335,9 @@ exports[`RadioGroup > renders with disabled correctly 1`] = ` -
+
@@ -301,7 +347,9 @@ exports[`RadioGroup > renders with disabled correctly 1`] = ` -
+
@@ -318,7 +366,9 @@ exports[`RadioGroup > renders with horizontal variant card correctly 1`] = `
-

Option 1

+

+ Option 1 +

@@ -355,7 +409,9 @@ exports[`RadioGroup > renders with horizontal variant list correctly 1`] = `
-
+
@@ -365,7 +421,9 @@ exports[`RadioGroup > renders with horizontal variant list correctly 1`] = ` -
+
@@ -375,7 +433,9 @@ exports[`RadioGroup > renders with horizontal variant list correctly 1`] = ` -
+
@@ -392,7 +452,9 @@ exports[`RadioGroup > renders with horizontal variant table correctly 1`] = `
-

Option 1

+

+ Option 1 +

@@ -421,6 +487,45 @@ exports[`RadioGroup > renders with horizontal variant table correctly 1`] = ` " `; +exports[`RadioGroup > renders with icon correctly 1`] = ` +"
+
+ +
+
+ +
+
+ +
+
+
+
+ +
+
+ +
+
+
+
+ +
+
+ +
+
+
+ +
" +`; + exports[`RadioGroup > renders with indicator end correctly 1`] = ` "
@@ -429,7 +534,9 @@ exports[`RadioGroup > renders with indicator end correctly 1`] = `
-
+
@@ -439,7 +546,9 @@ exports[`RadioGroup > renders with indicator end correctly 1`] = `
-
+
@@ -449,7 +558,9 @@ exports[`RadioGroup > renders with indicator end correctly 1`] = ` -
+
@@ -466,7 +577,9 @@ exports[`RadioGroup > renders with indicator hidden correctly 1`] = `
-
+
@@ -476,7 +589,9 @@ exports[`RadioGroup > renders with indicator hidden correctly 1`] = ` -
+
@@ -486,7 +601,9 @@ exports[`RadioGroup > renders with indicator hidden correctly 1`] = ` -
+
@@ -503,7 +620,9 @@ exports[`RadioGroup > renders with indicator start correctly 1`] = `
-
+
@@ -513,7 +632,9 @@ exports[`RadioGroup > renders with indicator start correctly 1`] = ` -
+
@@ -523,7 +644,9 @@ exports[`RadioGroup > renders with indicator start correctly 1`] = ` -
+
@@ -542,7 +665,9 @@ exports[`RadioGroup > renders with items correctly 1`] = ` -
+
@@ -552,7 +677,9 @@ exports[`RadioGroup > renders with items correctly 1`] = ` -
+
@@ -562,7 +689,9 @@ exports[`RadioGroup > renders with items correctly 1`] = ` -
+
@@ -581,7 +710,9 @@ exports[`RadioGroup > renders with label slot correctly 1`] = ` -
+
@@ -591,7 +722,9 @@ exports[`RadioGroup > renders with label slot correctly 1`] = ` -
+
@@ -601,7 +734,9 @@ exports[`RadioGroup > renders with label slot correctly 1`] = ` -
+
@@ -620,7 +755,9 @@ exports[`RadioGroup > renders with labelKey correctly 1`] = ` -
+
@@ -630,7 +767,9 @@ exports[`RadioGroup > renders with labelKey correctly 1`] = ` -
+
@@ -640,7 +779,9 @@ exports[`RadioGroup > renders with labelKey correctly 1`] = ` -
+
@@ -659,7 +800,9 @@ exports[`RadioGroup > renders with legend slot correctly 1`] = ` -
+
@@ -669,7 +812,9 @@ exports[`RadioGroup > renders with legend slot correctly 1`] = ` -
+
@@ -679,7 +824,9 @@ exports[`RadioGroup > renders with legend slot correctly 1`] = ` -
+
@@ -696,7 +843,9 @@ exports[`RadioGroup > renders with modelValue correctly 1`] = `
-
+
@@ -706,7 +855,9 @@ exports[`RadioGroup > renders with modelValue correctly 1`] = ` -
+
@@ -716,7 +867,9 @@ exports[`RadioGroup > renders with modelValue correctly 1`] = ` -
+
@@ -733,7 +886,9 @@ exports[`RadioGroup > renders with neutral variant card correctly 1`] = `
-

Option 1

+

+ Option 1 +

@@ -770,7 +929,9 @@ exports[`RadioGroup > renders with neutral variant card highlight correctly 1`]
-

Option 1

+

+ Option 1 +

@@ -807,7 +972,9 @@ exports[`RadioGroup > renders with neutral variant list correctly 1`] = `
-
+
@@ -817,7 +984,9 @@ exports[`RadioGroup > renders with neutral variant list correctly 1`] = ` -
+
@@ -827,7 +996,9 @@ exports[`RadioGroup > renders with neutral variant list correctly 1`] = ` -
+
@@ -844,7 +1015,9 @@ exports[`RadioGroup > renders with neutral variant list highlight correctly 1`]
-
+
@@ -854,7 +1027,9 @@ exports[`RadioGroup > renders with neutral variant list highlight correctly 1`] -
+
@@ -864,7 +1039,9 @@ exports[`RadioGroup > renders with neutral variant list highlight correctly 1`] -
+
@@ -881,7 +1058,9 @@ exports[`RadioGroup > renders with neutral variant table correctly 1`] = `
-

Option 1

+

+ Option 1 +

@@ -918,7 +1101,9 @@ exports[`RadioGroup > renders with neutral variant table highlight correctly 1`]
-

Option 1

+

+ Option 1 +

@@ -955,7 +1144,9 @@ exports[`RadioGroup > renders with primary variant card correctly 1`] = `
-

Option 1

+

+ Option 1 +

@@ -992,7 +1187,9 @@ exports[`RadioGroup > renders with primary variant card highlight correctly 1`]
-

Option 1

+

+ Option 1 +

@@ -1029,7 +1230,9 @@ exports[`RadioGroup > renders with primary variant list correctly 1`] = `
-
+
@@ -1039,7 +1242,9 @@ exports[`RadioGroup > renders with primary variant list correctly 1`] = ` -
+
@@ -1049,7 +1254,9 @@ exports[`RadioGroup > renders with primary variant list correctly 1`] = ` -
+
@@ -1066,7 +1273,9 @@ exports[`RadioGroup > renders with primary variant list highlight correctly 1`]
-
+
@@ -1076,7 +1285,9 @@ exports[`RadioGroup > renders with primary variant list highlight correctly 1`] -
+
@@ -1086,7 +1297,9 @@ exports[`RadioGroup > renders with primary variant list highlight correctly 1`] -
+
@@ -1103,7 +1316,9 @@ exports[`RadioGroup > renders with primary variant table correctly 1`] = `
-

Option 1

+

+ Option 1 +

@@ -1140,7 +1359,9 @@ exports[`RadioGroup > renders with primary variant table highlight correctly 1`]
-

Option 1

+

+ Option 1 +

@@ -1179,7 +1404,9 @@ exports[`RadioGroup > renders with required correctly 1`] = ` -
+
@@ -1189,7 +1416,9 @@ exports[`RadioGroup > renders with required correctly 1`] = ` -
+
@@ -1199,7 +1428,9 @@ exports[`RadioGroup > renders with required correctly 1`] = ` -
+
@@ -1216,7 +1447,9 @@ exports[`RadioGroup > renders with size lg correctly 1`] = `
-
+
@@ -1226,7 +1459,9 @@ exports[`RadioGroup > renders with size lg correctly 1`] = ` -
+
@@ -1236,7 +1471,9 @@ exports[`RadioGroup > renders with size lg correctly 1`] = ` -
+
@@ -1253,7 +1490,9 @@ exports[`RadioGroup > renders with size md correctly 1`] = `
-
+
@@ -1263,7 +1502,9 @@ exports[`RadioGroup > renders with size md correctly 1`] = ` -
+
@@ -1273,7 +1514,9 @@ exports[`RadioGroup > renders with size md correctly 1`] = ` -
+
@@ -1290,7 +1533,9 @@ exports[`RadioGroup > renders with size sm correctly 1`] = `
-
+
@@ -1300,7 +1545,9 @@ exports[`RadioGroup > renders with size sm correctly 1`] = ` -
+
@@ -1310,7 +1557,9 @@ exports[`RadioGroup > renders with size sm correctly 1`] = ` -
+
@@ -1327,7 +1576,9 @@ exports[`RadioGroup > renders with size xl correctly 1`] = `
-
+
@@ -1337,7 +1588,9 @@ exports[`RadioGroup > renders with size xl correctly 1`] = ` -
+
@@ -1347,7 +1600,9 @@ exports[`RadioGroup > renders with size xl correctly 1`] = ` -
+
@@ -1364,7 +1619,9 @@ exports[`RadioGroup > renders with size xs correctly 1`] = `
-
+
@@ -1374,7 +1631,9 @@ exports[`RadioGroup > renders with size xs correctly 1`] = ` -
+
@@ -1384,7 +1643,9 @@ exports[`RadioGroup > renders with size xs correctly 1`] = ` -
+
@@ -1403,7 +1664,9 @@ exports[`RadioGroup > renders with ui correctly 1`] = ` -
+
@@ -1413,7 +1676,9 @@ exports[`RadioGroup > renders with ui correctly 1`] = ` -
+
@@ -1423,7 +1688,9 @@ exports[`RadioGroup > renders with ui correctly 1`] = ` -
+
@@ -1440,7 +1707,9 @@ exports[`RadioGroup > renders with valueKey correctly 1`] = `
-
+
@@ -1450,7 +1719,9 @@ exports[`RadioGroup > renders with valueKey correctly 1`] = ` -
+
@@ -1460,7 +1731,9 @@ exports[`RadioGroup > renders with valueKey correctly 1`] = ` -
+
diff --git a/test/components/__snapshots__/RadioGroup.spec.ts.snap b/test/components/__snapshots__/RadioGroup.spec.ts.snap index 4405aae944..6856412314 100644 --- a/test/components/__snapshots__/RadioGroup.spec.ts.snap +++ b/test/components/__snapshots__/RadioGroup.spec.ts.snap @@ -10,7 +10,9 @@ exports[`RadioGroup > renders with ariaLabel correctly 1`] = ` -
+
@@ -20,7 +22,9 @@ exports[`RadioGroup > renders with ariaLabel correctly 1`] = ` -
+
@@ -30,7 +34,9 @@ exports[`RadioGroup > renders with ariaLabel correctly 1`] = ` -
+
@@ -49,7 +55,9 @@ exports[`RadioGroup > renders with as correctly 1`] = ` -
+
@@ -59,7 +67,9 @@ exports[`RadioGroup > renders with as correctly 1`] = ` -
+
@@ -69,7 +79,9 @@ exports[`RadioGroup > renders with as correctly 1`] = ` -
+
@@ -88,7 +100,9 @@ exports[`RadioGroup > renders with class correctly 1`] = ` -
+
@@ -98,7 +112,9 @@ exports[`RadioGroup > renders with class correctly 1`] = ` -
+
@@ -108,7 +124,9 @@ exports[`RadioGroup > renders with class correctly 1`] = ` -
+
@@ -125,7 +143,9 @@ exports[`RadioGroup > renders with defaultValue correctly 1`] = `
-
+
@@ -135,7 +155,9 @@ exports[`RadioGroup > renders with defaultValue correctly 1`] = ` -
+
@@ -145,7 +167,9 @@ exports[`RadioGroup > renders with defaultValue correctly 1`] = ` -
+
@@ -164,7 +188,9 @@ exports[`RadioGroup > renders with description correctly 1`] = ` -
+

Description 0

@@ -174,7 +200,9 @@ exports[`RadioGroup > renders with description correctly 1`] = ` -
+

Description 1

@@ -184,7 +212,9 @@ exports[`RadioGroup > renders with description correctly 1`] = ` -
+

Description 2

@@ -203,7 +233,9 @@ exports[`RadioGroup > renders with description slot correctly 1`] = ` -
+
@@ -213,7 +245,9 @@ exports[`RadioGroup > renders with description slot correctly 1`] = ` -
+
@@ -223,7 +257,9 @@ exports[`RadioGroup > renders with description slot correctly 1`] = ` -
+
@@ -242,7 +278,9 @@ exports[`RadioGroup > renders with descriptionKey correctly 1`] = ` -
+

1

@@ -252,7 +290,9 @@ exports[`RadioGroup > renders with descriptionKey correctly 1`] = ` -
+

2

@@ -262,7 +302,9 @@ exports[`RadioGroup > renders with descriptionKey correctly 1`] = ` -
+

3

@@ -281,7 +323,9 @@ exports[`RadioGroup > renders with disabled correctly 1`] = ` -
+
@@ -291,7 +335,9 @@ exports[`RadioGroup > renders with disabled correctly 1`] = ` -
+
@@ -301,7 +347,9 @@ exports[`RadioGroup > renders with disabled correctly 1`] = ` -
+
@@ -318,7 +366,9 @@ exports[`RadioGroup > renders with horizontal variant card correctly 1`] = `
-

Option 1

+

+ Option 1 +

@@ -355,7 +409,9 @@ exports[`RadioGroup > renders with horizontal variant list correctly 1`] = `
-
+
@@ -365,7 +421,9 @@ exports[`RadioGroup > renders with horizontal variant list correctly 1`] = ` -
+
@@ -375,7 +433,9 @@ exports[`RadioGroup > renders with horizontal variant list correctly 1`] = ` -
+
@@ -392,7 +452,9 @@ exports[`RadioGroup > renders with horizontal variant table correctly 1`] = `
-

Option 1

+

+ Option 1 +

@@ -421,6 +487,45 @@ exports[`RadioGroup > renders with horizontal variant table correctly 1`] = ` " `; +exports[`RadioGroup > renders with icon correctly 1`] = ` +"
+
+ +
+
+ +
+
+ +
+
+
+
+ +
+
+ +
+
+
+
+ +
+
+ +
+
+
+ +
" +`; + exports[`RadioGroup > renders with indicator end correctly 1`] = ` "
@@ -429,7 +534,9 @@ exports[`RadioGroup > renders with indicator end correctly 1`] = `
-
+
@@ -439,7 +546,9 @@ exports[`RadioGroup > renders with indicator end correctly 1`] = `
-
+
@@ -449,7 +558,9 @@ exports[`RadioGroup > renders with indicator end correctly 1`] = ` -
+
@@ -466,7 +577,9 @@ exports[`RadioGroup > renders with indicator hidden correctly 1`] = `
-
+
@@ -476,7 +589,9 @@ exports[`RadioGroup > renders with indicator hidden correctly 1`] = ` -
+
@@ -486,7 +601,9 @@ exports[`RadioGroup > renders with indicator hidden correctly 1`] = ` -
+
@@ -503,7 +620,9 @@ exports[`RadioGroup > renders with indicator start correctly 1`] = `
-
+
@@ -513,7 +632,9 @@ exports[`RadioGroup > renders with indicator start correctly 1`] = ` -
+
@@ -523,7 +644,9 @@ exports[`RadioGroup > renders with indicator start correctly 1`] = ` -
+
@@ -542,7 +665,9 @@ exports[`RadioGroup > renders with items correctly 1`] = ` -
+
@@ -552,7 +677,9 @@ exports[`RadioGroup > renders with items correctly 1`] = ` -
+
@@ -562,7 +689,9 @@ exports[`RadioGroup > renders with items correctly 1`] = ` -
+
@@ -581,7 +710,9 @@ exports[`RadioGroup > renders with label slot correctly 1`] = ` -
+
@@ -591,7 +722,9 @@ exports[`RadioGroup > renders with label slot correctly 1`] = ` -
+
@@ -601,7 +734,9 @@ exports[`RadioGroup > renders with label slot correctly 1`] = ` -
+
@@ -620,7 +755,9 @@ exports[`RadioGroup > renders with labelKey correctly 1`] = ` -
+
@@ -630,7 +767,9 @@ exports[`RadioGroup > renders with labelKey correctly 1`] = ` -
+
@@ -640,7 +779,9 @@ exports[`RadioGroup > renders with labelKey correctly 1`] = ` -
+
@@ -659,7 +800,9 @@ exports[`RadioGroup > renders with legend slot correctly 1`] = ` -
+
@@ -669,7 +812,9 @@ exports[`RadioGroup > renders with legend slot correctly 1`] = ` -
+
@@ -679,7 +824,9 @@ exports[`RadioGroup > renders with legend slot correctly 1`] = ` -
+
@@ -696,7 +843,9 @@ exports[`RadioGroup > renders with modelValue correctly 1`] = `
-
+
@@ -706,7 +855,9 @@ exports[`RadioGroup > renders with modelValue correctly 1`] = ` -
+
@@ -716,7 +867,9 @@ exports[`RadioGroup > renders with modelValue correctly 1`] = ` -
+
@@ -733,7 +886,9 @@ exports[`RadioGroup > renders with neutral variant card correctly 1`] = `
-

Option 1

+

+ Option 1 +

@@ -770,7 +929,9 @@ exports[`RadioGroup > renders with neutral variant card highlight correctly 1`]
-

Option 1

+

+ Option 1 +

@@ -807,7 +972,9 @@ exports[`RadioGroup > renders with neutral variant list correctly 1`] = `
-
+
@@ -817,7 +984,9 @@ exports[`RadioGroup > renders with neutral variant list correctly 1`] = ` -
+
@@ -827,7 +996,9 @@ exports[`RadioGroup > renders with neutral variant list correctly 1`] = ` -
+
@@ -844,7 +1015,9 @@ exports[`RadioGroup > renders with neutral variant list highlight correctly 1`]
-
+
@@ -854,7 +1027,9 @@ exports[`RadioGroup > renders with neutral variant list highlight correctly 1`] -
+
@@ -864,7 +1039,9 @@ exports[`RadioGroup > renders with neutral variant list highlight correctly 1`] -
+
@@ -881,7 +1058,9 @@ exports[`RadioGroup > renders with neutral variant table correctly 1`] = `
-

Option 1

+

+ Option 1 +

@@ -918,7 +1101,9 @@ exports[`RadioGroup > renders with neutral variant table highlight correctly 1`]
-

Option 1

+

+ Option 1 +

@@ -955,7 +1144,9 @@ exports[`RadioGroup > renders with primary variant card correctly 1`] = `
-

Option 1

+

+ Option 1 +

@@ -992,7 +1187,9 @@ exports[`RadioGroup > renders with primary variant card highlight correctly 1`]
-

Option 1

+

+ Option 1 +

@@ -1029,7 +1230,9 @@ exports[`RadioGroup > renders with primary variant list correctly 1`] = `
-
+
@@ -1039,7 +1242,9 @@ exports[`RadioGroup > renders with primary variant list correctly 1`] = ` -
+
@@ -1049,7 +1254,9 @@ exports[`RadioGroup > renders with primary variant list correctly 1`] = ` -
+
@@ -1066,7 +1273,9 @@ exports[`RadioGroup > renders with primary variant list highlight correctly 1`]
-
+
@@ -1076,7 +1285,9 @@ exports[`RadioGroup > renders with primary variant list highlight correctly 1`] -
+
@@ -1086,7 +1297,9 @@ exports[`RadioGroup > renders with primary variant list highlight correctly 1`] -
+
@@ -1103,7 +1316,9 @@ exports[`RadioGroup > renders with primary variant table correctly 1`] = `
-

Option 1

+

+ Option 1 +

@@ -1140,7 +1359,9 @@ exports[`RadioGroup > renders with primary variant table highlight correctly 1`]
-

Option 1

+

+ Option 1 +

@@ -1179,7 +1404,9 @@ exports[`RadioGroup > renders with required correctly 1`] = ` -
+
@@ -1189,7 +1416,9 @@ exports[`RadioGroup > renders with required correctly 1`] = ` -
+
@@ -1199,7 +1428,9 @@ exports[`RadioGroup > renders with required correctly 1`] = ` -
+
@@ -1216,7 +1447,9 @@ exports[`RadioGroup > renders with size lg correctly 1`] = `
-
+
@@ -1226,7 +1459,9 @@ exports[`RadioGroup > renders with size lg correctly 1`] = ` -
+
@@ -1236,7 +1471,9 @@ exports[`RadioGroup > renders with size lg correctly 1`] = ` -
+
@@ -1253,7 +1490,9 @@ exports[`RadioGroup > renders with size md correctly 1`] = `
-
+
@@ -1263,7 +1502,9 @@ exports[`RadioGroup > renders with size md correctly 1`] = ` -
+
@@ -1273,7 +1514,9 @@ exports[`RadioGroup > renders with size md correctly 1`] = ` -
+
@@ -1290,7 +1533,9 @@ exports[`RadioGroup > renders with size sm correctly 1`] = `
-
+
@@ -1300,7 +1545,9 @@ exports[`RadioGroup > renders with size sm correctly 1`] = ` -
+
@@ -1310,7 +1557,9 @@ exports[`RadioGroup > renders with size sm correctly 1`] = ` -
+
@@ -1327,7 +1576,9 @@ exports[`RadioGroup > renders with size xl correctly 1`] = `
-
+
@@ -1337,7 +1588,9 @@ exports[`RadioGroup > renders with size xl correctly 1`] = ` -
+
@@ -1347,7 +1600,9 @@ exports[`RadioGroup > renders with size xl correctly 1`] = ` -
+
@@ -1364,7 +1619,9 @@ exports[`RadioGroup > renders with size xs correctly 1`] = `
-
+
@@ -1374,7 +1631,9 @@ exports[`RadioGroup > renders with size xs correctly 1`] = ` -
+
@@ -1384,7 +1643,9 @@ exports[`RadioGroup > renders with size xs correctly 1`] = ` -
+
@@ -1403,7 +1664,9 @@ exports[`RadioGroup > renders with ui correctly 1`] = ` -
+
@@ -1413,7 +1676,9 @@ exports[`RadioGroup > renders with ui correctly 1`] = ` -
+
@@ -1423,7 +1688,9 @@ exports[`RadioGroup > renders with ui correctly 1`] = ` -
+
@@ -1440,7 +1707,9 @@ exports[`RadioGroup > renders with valueKey correctly 1`] = `
-
+
@@ -1450,7 +1719,9 @@ exports[`RadioGroup > renders with valueKey correctly 1`] = ` -
+
@@ -1460,7 +1731,9 @@ exports[`RadioGroup > renders with valueKey correctly 1`] = ` -
+
diff --git a/test/components/__snapshots__/Table-vue.spec.ts.snap b/test/components/__snapshots__/Table-vue.spec.ts.snap index c75f5e1f75..d1a5149208 100644 --- a/test/components/__snapshots__/Table-vue.spec.ts.snap +++ b/test/components/__snapshots__/Table-vue.spec.ts.snap @@ -397,7 +397,9 @@ exports[`Table > renders with columns correctly 1`] = ` -
+
@@ -661,7 +663,9 @@ exports[`Table > renders with empty slot correctly 1`] = ` -
+
@@ -1495,7 +1499,9 @@ exports[`Table > renders with loading slot correctly 1`] = ` -
+
@@ -1559,7 +1565,9 @@ exports[`Table > renders with meta field on columns correctly 1`] = ` -
+
@@ -1992,7 +2000,9 @@ exports[`Table > renders with virtualize and sticky correctly 1`] = ` -
+
diff --git a/test/components/__snapshots__/Table.spec.ts.snap b/test/components/__snapshots__/Table.spec.ts.snap index 5a1dff536c..5c444f0380 100644 --- a/test/components/__snapshots__/Table.spec.ts.snap +++ b/test/components/__snapshots__/Table.spec.ts.snap @@ -397,7 +397,9 @@ exports[`Table > renders with columns correctly 1`] = ` -
+
@@ -661,7 +663,9 @@ exports[`Table > renders with empty slot correctly 1`] = ` -
+
@@ -1495,7 +1499,9 @@ exports[`Table > renders with loading slot correctly 1`] = ` -
+
@@ -1559,7 +1565,9 @@ exports[`Table > renders with meta field on columns correctly 1`] = ` -
+
@@ -1992,7 +2000,9 @@ exports[`Table > renders with virtualize and sticky correctly 1`] = ` -
+