@bitrix24/b24ui-nuxt 0.5.7 → 0.5.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/meta.d.mts CHANGED
@@ -42353,6 +42353,23 @@ var B24UIMeta = {
42353
42353
  }
42354
42354
  }
42355
42355
  },
42356
+ {
42357
+ "name": "stepSnapping",
42358
+ "global": false,
42359
+ "description": "When `false`, prevents the value from snapping to the nearest increment of the step value",
42360
+ "tags": [],
42361
+ "required": false,
42362
+ "type": "boolean | undefined",
42363
+ "schema": {
42364
+ "kind": "enum",
42365
+ "type": "boolean | undefined",
42366
+ "schema": {
42367
+ "0": "undefined",
42368
+ "1": "false",
42369
+ "2": "true"
42370
+ }
42371
+ }
42372
+ },
42356
42373
  {
42357
42374
  "name": "formatOptions",
42358
42375
  "global": false,
@@ -42372,6 +42389,23 @@ var B24UIMeta = {
42372
42389
  }
42373
42390
  }
42374
42391
  }
42392
+ },
42393
+ {
42394
+ "name": "disableWheelChange",
42395
+ "global": false,
42396
+ "description": "When `true`, prevents the value from changing on wheel scroll.",
42397
+ "tags": [],
42398
+ "required": false,
42399
+ "type": "boolean | undefined",
42400
+ "schema": {
42401
+ "kind": "enum",
42402
+ "type": "boolean | undefined",
42403
+ "schema": {
42404
+ "0": "undefined",
42405
+ "1": "false",
42406
+ "2": "true"
42407
+ }
42408
+ }
42375
42409
  }
42376
42410
  ],
42377
42411
  "slots": [
@@ -53233,6 +53267,29 @@ var B24UIMeta = {
53233
53267
  }
53234
53268
  }
53235
53269
  },
53270
+ {
53271
+ "name": "variant",
53272
+ "global": false,
53273
+ "description": "",
53274
+ "tags": [
53275
+ {
53276
+ "name": "defaultValue",
53277
+ "text": "'list'"
53278
+ }
53279
+ ],
53280
+ "required": false,
53281
+ "type": "\"table\" | \"list\" | \"card\" | undefined",
53282
+ "schema": {
53283
+ "kind": "enum",
53284
+ "type": "\"table\" | \"list\" | \"card\" | undefined",
53285
+ "schema": {
53286
+ "0": "undefined",
53287
+ "1": "\"table\"",
53288
+ "2": "\"list\"",
53289
+ "3": "\"card\""
53290
+ }
53291
+ }
53292
+ },
53236
53293
  {
53237
53294
  "name": "color",
53238
53295
  "global": false,
@@ -53284,19 +53341,42 @@ var B24UIMeta = {
53284
53341
  },
53285
53342
  "default": "\"vertical\""
53286
53343
  },
53344
+ {
53345
+ "name": "indicator",
53346
+ "global": false,
53347
+ "description": "Position of the indicator.",
53348
+ "tags": [
53349
+ {
53350
+ "name": "defaultValue",
53351
+ "text": "'start'"
53352
+ }
53353
+ ],
53354
+ "required": false,
53355
+ "type": "\"start\" | \"end\" | \"hidden\" | undefined",
53356
+ "schema": {
53357
+ "kind": "enum",
53358
+ "type": "\"start\" | \"end\" | \"hidden\" | undefined",
53359
+ "schema": {
53360
+ "0": "undefined",
53361
+ "1": "\"start\"",
53362
+ "2": "\"end\"",
53363
+ "3": "\"hidden\""
53364
+ }
53365
+ }
53366
+ },
53287
53367
  {
53288
53368
  "name": "b24ui",
53289
53369
  "global": false,
53290
53370
  "description": "",
53291
53371
  "tags": [],
53292
53372
  "required": false,
53293
- "type": "Partial<{ root: string; fieldset: string; legend: string; item: string; base: string; indicator: string; container: string; wrapper: string; label: string; description: string; }> | undefined",
53373
+ "type": "Partial<{ root: string; fieldset: string; legend: string; item: string; base: string; indicator: \"start\" | \"end\" | \"hidden\"; container: string; wrapper: string; label: string; description: string; }> | undefined",
53294
53374
  "schema": {
53295
53375
  "kind": "enum",
53296
- "type": "Partial<{ root: string; fieldset: string; legend: string; item: string; base: string; indicator: string; container: string; wrapper: string; label: string; description: string; }> | undefined",
53376
+ "type": "Partial<{ root: string; fieldset: string; legend: string; item: string; base: string; indicator: \"start\" | \"end\" | \"hidden\"; container: string; wrapper: string; label: string; description: string; }> | undefined",
53297
53377
  "schema": {
53298
53378
  "0": "undefined",
53299
- "1": "Partial<{ root: string; fieldset: string; legend: string; item: string; base: string; indicator: string; container: string; wrapper: string; label: string; description: string; }>"
53379
+ "1": "Partial<{ root: string; fieldset: string; legend: string; item: string; base: string; indicator: \"start\" | \"end\" | \"hidden\"; container: string; wrapper: string; label: string; description: string; }>"
53300
53380
  }
53301
53381
  }
53302
53382
  },
package/dist/meta.d.ts CHANGED
@@ -42353,6 +42353,23 @@ var B24UIMeta = {
42353
42353
  }
42354
42354
  }
42355
42355
  },
42356
+ {
42357
+ "name": "stepSnapping",
42358
+ "global": false,
42359
+ "description": "When `false`, prevents the value from snapping to the nearest increment of the step value",
42360
+ "tags": [],
42361
+ "required": false,
42362
+ "type": "boolean | undefined",
42363
+ "schema": {
42364
+ "kind": "enum",
42365
+ "type": "boolean | undefined",
42366
+ "schema": {
42367
+ "0": "undefined",
42368
+ "1": "false",
42369
+ "2": "true"
42370
+ }
42371
+ }
42372
+ },
42356
42373
  {
42357
42374
  "name": "formatOptions",
42358
42375
  "global": false,
@@ -42372,6 +42389,23 @@ var B24UIMeta = {
42372
42389
  }
42373
42390
  }
42374
42391
  }
42392
+ },
42393
+ {
42394
+ "name": "disableWheelChange",
42395
+ "global": false,
42396
+ "description": "When `true`, prevents the value from changing on wheel scroll.",
42397
+ "tags": [],
42398
+ "required": false,
42399
+ "type": "boolean | undefined",
42400
+ "schema": {
42401
+ "kind": "enum",
42402
+ "type": "boolean | undefined",
42403
+ "schema": {
42404
+ "0": "undefined",
42405
+ "1": "false",
42406
+ "2": "true"
42407
+ }
42408
+ }
42375
42409
  }
42376
42410
  ],
42377
42411
  "slots": [
@@ -53233,6 +53267,29 @@ var B24UIMeta = {
53233
53267
  }
53234
53268
  }
53235
53269
  },
53270
+ {
53271
+ "name": "variant",
53272
+ "global": false,
53273
+ "description": "",
53274
+ "tags": [
53275
+ {
53276
+ "name": "defaultValue",
53277
+ "text": "'list'"
53278
+ }
53279
+ ],
53280
+ "required": false,
53281
+ "type": "\"table\" | \"list\" | \"card\" | undefined",
53282
+ "schema": {
53283
+ "kind": "enum",
53284
+ "type": "\"table\" | \"list\" | \"card\" | undefined",
53285
+ "schema": {
53286
+ "0": "undefined",
53287
+ "1": "\"table\"",
53288
+ "2": "\"list\"",
53289
+ "3": "\"card\""
53290
+ }
53291
+ }
53292
+ },
53236
53293
  {
53237
53294
  "name": "color",
53238
53295
  "global": false,
@@ -53284,19 +53341,42 @@ var B24UIMeta = {
53284
53341
  },
53285
53342
  "default": "\"vertical\""
53286
53343
  },
53344
+ {
53345
+ "name": "indicator",
53346
+ "global": false,
53347
+ "description": "Position of the indicator.",
53348
+ "tags": [
53349
+ {
53350
+ "name": "defaultValue",
53351
+ "text": "'start'"
53352
+ }
53353
+ ],
53354
+ "required": false,
53355
+ "type": "\"start\" | \"end\" | \"hidden\" | undefined",
53356
+ "schema": {
53357
+ "kind": "enum",
53358
+ "type": "\"start\" | \"end\" | \"hidden\" | undefined",
53359
+ "schema": {
53360
+ "0": "undefined",
53361
+ "1": "\"start\"",
53362
+ "2": "\"end\"",
53363
+ "3": "\"hidden\""
53364
+ }
53365
+ }
53366
+ },
53287
53367
  {
53288
53368
  "name": "b24ui",
53289
53369
  "global": false,
53290
53370
  "description": "",
53291
53371
  "tags": [],
53292
53372
  "required": false,
53293
- "type": "Partial<{ root: string; fieldset: string; legend: string; item: string; base: string; indicator: string; container: string; wrapper: string; label: string; description: string; }> | undefined",
53373
+ "type": "Partial<{ root: string; fieldset: string; legend: string; item: string; base: string; indicator: \"start\" | \"end\" | \"hidden\"; container: string; wrapper: string; label: string; description: string; }> | undefined",
53294
53374
  "schema": {
53295
53375
  "kind": "enum",
53296
- "type": "Partial<{ root: string; fieldset: string; legend: string; item: string; base: string; indicator: string; container: string; wrapper: string; label: string; description: string; }> | undefined",
53376
+ "type": "Partial<{ root: string; fieldset: string; legend: string; item: string; base: string; indicator: \"start\" | \"end\" | \"hidden\"; container: string; wrapper: string; label: string; description: string; }> | undefined",
53297
53377
  "schema": {
53298
53378
  "0": "undefined",
53299
- "1": "Partial<{ root: string; fieldset: string; legend: string; item: string; base: string; indicator: string; container: string; wrapper: string; label: string; description: string; }>"
53379
+ "1": "Partial<{ root: string; fieldset: string; legend: string; item: string; base: string; indicator: \"start\" | \"end\" | \"hidden\"; container: string; wrapper: string; label: string; description: string; }>"
53300
53380
  }
53301
53381
  }
53302
53382
  },
package/dist/meta.mjs CHANGED
@@ -42353,6 +42353,23 @@ const B24UIMeta = {
42353
42353
  }
42354
42354
  }
42355
42355
  },
42356
+ {
42357
+ "name": "stepSnapping",
42358
+ "global": false,
42359
+ "description": "When `false`, prevents the value from snapping to the nearest increment of the step value",
42360
+ "tags": [],
42361
+ "required": false,
42362
+ "type": "boolean | undefined",
42363
+ "schema": {
42364
+ "kind": "enum",
42365
+ "type": "boolean | undefined",
42366
+ "schema": {
42367
+ "0": "undefined",
42368
+ "1": "false",
42369
+ "2": "true"
42370
+ }
42371
+ }
42372
+ },
42356
42373
  {
42357
42374
  "name": "formatOptions",
42358
42375
  "global": false,
@@ -42372,6 +42389,23 @@ const B24UIMeta = {
42372
42389
  }
42373
42390
  }
42374
42391
  }
42392
+ },
42393
+ {
42394
+ "name": "disableWheelChange",
42395
+ "global": false,
42396
+ "description": "When `true`, prevents the value from changing on wheel scroll.",
42397
+ "tags": [],
42398
+ "required": false,
42399
+ "type": "boolean | undefined",
42400
+ "schema": {
42401
+ "kind": "enum",
42402
+ "type": "boolean | undefined",
42403
+ "schema": {
42404
+ "0": "undefined",
42405
+ "1": "false",
42406
+ "2": "true"
42407
+ }
42408
+ }
42375
42409
  }
42376
42410
  ],
42377
42411
  "slots": [
@@ -53233,6 +53267,29 @@ const B24UIMeta = {
53233
53267
  }
53234
53268
  }
53235
53269
  },
53270
+ {
53271
+ "name": "variant",
53272
+ "global": false,
53273
+ "description": "",
53274
+ "tags": [
53275
+ {
53276
+ "name": "defaultValue",
53277
+ "text": "'list'"
53278
+ }
53279
+ ],
53280
+ "required": false,
53281
+ "type": "\"table\" | \"list\" | \"card\" | undefined",
53282
+ "schema": {
53283
+ "kind": "enum",
53284
+ "type": "\"table\" | \"list\" | \"card\" | undefined",
53285
+ "schema": {
53286
+ "0": "undefined",
53287
+ "1": "\"table\"",
53288
+ "2": "\"list\"",
53289
+ "3": "\"card\""
53290
+ }
53291
+ }
53292
+ },
53236
53293
  {
53237
53294
  "name": "color",
53238
53295
  "global": false,
@@ -53284,19 +53341,42 @@ const B24UIMeta = {
53284
53341
  },
53285
53342
  "default": "\"vertical\""
53286
53343
  },
53344
+ {
53345
+ "name": "indicator",
53346
+ "global": false,
53347
+ "description": "Position of the indicator.",
53348
+ "tags": [
53349
+ {
53350
+ "name": "defaultValue",
53351
+ "text": "'start'"
53352
+ }
53353
+ ],
53354
+ "required": false,
53355
+ "type": "\"start\" | \"end\" | \"hidden\" | undefined",
53356
+ "schema": {
53357
+ "kind": "enum",
53358
+ "type": "\"start\" | \"end\" | \"hidden\" | undefined",
53359
+ "schema": {
53360
+ "0": "undefined",
53361
+ "1": "\"start\"",
53362
+ "2": "\"end\"",
53363
+ "3": "\"hidden\""
53364
+ }
53365
+ }
53366
+ },
53287
53367
  {
53288
53368
  "name": "b24ui",
53289
53369
  "global": false,
53290
53370
  "description": "",
53291
53371
  "tags": [],
53292
53372
  "required": false,
53293
- "type": "Partial<{ root: string; fieldset: string; legend: string; item: string; base: string; indicator: string; container: string; wrapper: string; label: string; description: string; }> | undefined",
53373
+ "type": "Partial<{ root: string; fieldset: string; legend: string; item: string; base: string; indicator: \"start\" | \"end\" | \"hidden\"; container: string; wrapper: string; label: string; description: string; }> | undefined",
53294
53374
  "schema": {
53295
53375
  "kind": "enum",
53296
- "type": "Partial<{ root: string; fieldset: string; legend: string; item: string; base: string; indicator: string; container: string; wrapper: string; label: string; description: string; }> | undefined",
53376
+ "type": "Partial<{ root: string; fieldset: string; legend: string; item: string; base: string; indicator: \"start\" | \"end\" | \"hidden\"; container: string; wrapper: string; label: string; description: string; }> | undefined",
53297
53377
  "schema": {
53298
53378
  "0": "undefined",
53299
- "1": "Partial<{ root: string; fieldset: string; legend: string; item: string; base: string; indicator: string; container: string; wrapper: string; label: string; description: string; }>"
53379
+ "1": "Partial<{ root: string; fieldset: string; legend: string; item: string; base: string; indicator: \"start\" | \"end\" | \"hidden\"; container: string; wrapper: string; label: string; description: string; }>"
53300
53380
  }
53301
53381
  }
53302
53382
  },
package/dist/module.cjs CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  const defu = require('defu');
4
4
  const kit = require('@nuxt/kit');
5
- const templates = require('./shared/b24ui-nuxt.BsnG7poi.cjs');
5
+ const templates = require('./shared/b24ui-nuxt.B9fPD5yO.cjs');
6
6
  require('node:url');
7
7
  require('scule');
8
8
 
package/dist/module.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "nuxt": ">=3.16.0"
6
6
  },
7
7
  "docs": "https://bitrix24.github.io/b24ui/guide/installation-nuxt-app.html",
8
- "version": "0.5.7",
8
+ "version": "0.5.8",
9
9
  "builder": {
10
10
  "@nuxt/module-builder": "0.8.4",
11
11
  "unbuild": "2.0.0"
package/dist/module.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import { defu } from 'defu';
2
2
  import { defineNuxtModule, createResolver, addVitePlugin, addPlugin, addComponentsDir, addImportsDir, hasNuxtModule, installModule } from '@nuxt/kit';
3
- import { d as defaultOptions, a as getDefaultUiConfig, b as addTemplates } from './shared/b24ui-nuxt.CMCKw62O.mjs';
3
+ import { d as defaultOptions, a as getDefaultUiConfig, b as addTemplates } from './shared/b24ui-nuxt.DBFS6LH7.mjs';
4
4
  import 'node:url';
5
5
  import 'scule';
6
6
 
@@ -38,6 +38,7 @@ import { computed } from 'vue'
38
38
  import { DropdownMenu } from 'reka-ui/namespaced'
39
39
  import { useForwardPropsEmits } from 'reka-ui'
40
40
  import { reactiveOmit, createReusableTemplate } from '@vueuse/core'
41
+ import { useLocale } from '../composables/useLocale'
41
42
  import { omit, get, isArrayOfArray } from '../utils'
42
43
  import { pickLinkProps } from '../utils/link'
43
44
  import icons from '../dictionary/icons'
@@ -52,11 +53,13 @@ const props = defineProps<DropdownMenuContentProps<T>>()
52
53
  const emits = defineEmits<DropdownMenuContentEmits>()
53
54
  const slots = defineSlots<DropdownMenuContentSlots<T>>()
54
55
 
56
+ const { dir } = useLocale()
55
57
  const contentProps = useForwardPropsEmits(reactiveOmit(props, 'sub', 'items', 'portal', 'labelKey', 'checkedIcon', 'externalIcon', 'class', 'b24ui', 'b24uiOverride'), emits)
56
58
  const proxySlots = omit(slots, ['default'])
57
59
 
58
60
  const [DefineItemTemplate, ReuseItemTemplate] = createReusableTemplate<{ item: DropdownMenuItem, active?: boolean, index: number }>()
59
61
 
62
+ const childrenIcon = computed(() => dir.value === 'rtl' ? icons.chevronLeft : icons.chevronRight)
60
63
  const groups = computed<DropdownMenuItem[][]>(() =>
61
64
  props.items?.length
62
65
  ? isArrayOfArray(props.items)
@@ -102,7 +105,7 @@ const groups = computed<DropdownMenuItem[][]>(() =>
102
105
  <span :class="b24ui.itemTrailing({ class: b24uiOverride?.itemTrailing })">
103
106
  <slot :name="((item.slot ? `${item.slot}-trailing`: 'item-trailing') as keyof DropdownMenuContentSlots<T>)" :item="(item as Extract<NestedItem<T>, { slot: string; }>)" :active="active" :index="index">
104
107
  <Component
105
- :is="icons.chevronRight"
108
+ :is="childrenIcon"
106
109
  v-if="item.children?.length"
107
110
  :class="b24ui.itemTrailingIcon({ class: b24uiOverride?.itemTrailingIcon, color: item?.color, active })"
108
111
  />
@@ -147,7 +150,6 @@ const groups = computed<DropdownMenuItem[][]>(() =>
147
150
  :b24ui-override="b24uiOverride"
148
151
  :portal="portal"
149
152
  :items="(item.children as T)"
150
- side="right"
151
153
  align="start"
152
154
  :align-offset="-4"
153
155
  :side-offset="3"
@@ -397,6 +397,7 @@ function onRemoveTag(event: any) {
397
397
  const modelValue = props.modelValue as GetModelValue<T, VK, true>
398
398
  const filteredValue = modelValue.filter(value => !isEqual(value, event))
399
399
  emits('update:modelValue', filteredValue as GetModelValue<T, VK, M>)
400
+ onUpdate(filteredValue)
400
401
  }
401
402
  }
402
403
 
@@ -547,7 +548,7 @@ defineExpose({
547
548
  :class="b24ui.item({ class: props.b24ui?.item, colorItem: isInputItem(item) ? item?.color : undefined })"
548
549
  :disabled="isInputItem(item) && item.disabled"
549
550
  :value="props.valueKey && isInputItem(item) ? get(item, String(props.valueKey)) : item"
550
- @select="isInputItem(item) && item.onSelect"
551
+ @select="isInputItem(item) && item.onSelect?.($event)"
551
552
  >
552
553
  <slot name="item" :item="(item as NestedItem<T>)" :index="index">
553
554
  <slot name="item-leading" :item="(item as NestedItem<T>)" :index="index">
@@ -14,7 +14,7 @@ const inputNumber = tv({ extend: tv(theme), ...(appConfigInputNumber.b24ui?.inpu
14
14
 
15
15
  type InputNumberVariants = VariantProps<typeof inputNumber>
16
16
 
17
- export interface InputNumberProps extends Pick<NumberFieldRootProps, 'modelValue' | 'defaultValue' | 'min' | 'max' | 'step' | 'disabled' | 'required' | 'id' | 'name' | 'formatOptions'> {
17
+ export interface InputNumberProps extends Pick<NumberFieldRootProps, 'modelValue' | 'defaultValue' | 'min' | 'max' | 'stepSnapping' | 'step' | 'disabled' | 'required' | 'id' | 'name' | 'formatOptions' | 'disableWheelChange'> {
18
18
  /**
19
19
  * The element or component this component should render as.
20
20
  * @defaultValue 'div'
@@ -137,7 +137,7 @@ const props = withDefaults(defineProps<InputNumberProps>(), {
137
137
  const emits = defineEmits<InputNumberEmits>()
138
138
  defineSlots<InputNumberSlots>()
139
139
 
140
- const rootProps = useForwardPropsEmits(reactivePick(props, 'as', 'modelValue', 'defaultValue', 'min', 'max', 'step', 'formatOptions'), emits)
140
+ const rootProps = useForwardPropsEmits(reactivePick(props, 'as', 'modelValue', 'defaultValue', 'min', 'max', 'step', 'stepSnapping', 'formatOptions', 'disableWheelChange'), emits)
141
141
 
142
142
  const { emitFormBlur, emitFormFocus, emitFormChange, emitFormInput, id, color, size, name, highlight, disabled, ariaAttrs } = useFormField<InputNumberProps>(props)
143
143
 
@@ -49,6 +49,10 @@ export interface RadioGroupProps<T extends RadioGroupItem = RadioGroupItem> exte
49
49
  * @defaultValue 'md'
50
50
  */
51
51
  size?: RadioGroupVariants['size']
52
+ /**
53
+ * @defaultValue 'list'
54
+ */
55
+ variant?: RadioGroupVariants['variant']
52
56
  /**
53
57
  * @defaultValue 'primary'
54
58
  */
@@ -58,6 +62,11 @@ export interface RadioGroupProps<T extends RadioGroupItem = RadioGroupItem> exte
58
62
  * @defaultValue 'vertical'
59
63
  */
60
64
  orientation?: RadioGroupRootProps['orientation']
65
+ /**
66
+ * Position of the indicator.
67
+ * @defaultValue 'start'
68
+ */
69
+ indicator?: RadioGroupVariants['indicator']
61
70
  class?: any
62
71
  b24ui?: Partial<typeof radioGroup.slots>
63
72
  }
@@ -101,7 +110,9 @@ const b24ui = computed(() => radioGroup({
101
110
  color: color.value,
102
111
  disabled: disabled.value,
103
112
  required: props.required,
104
- orientation: props.orientation
113
+ orientation: props.orientation,
114
+ variant: props.variant,
115
+ indicator: props.indicator
105
116
  }))
106
117
 
107
118
  function normalizeItem(item: any) {
@@ -167,7 +178,7 @@ function onUpdate(value: any) {
167
178
  {{ legend }}
168
179
  </slot>
169
180
  </legend>
170
- <div v-for="item in normalizedItems" :key="item.value" :class="b24ui.item({ class: props.b24ui?.item })">
181
+ <component :is="variant === 'list' ? 'div' : Label" v-for="item in normalizedItems" :key="item.value" :class="b24ui.item({ class: props.b24ui?.item })">
171
182
  <div :class="b24ui.container({ class: props.b24ui?.container })">
172
183
  <RadioGroupItem
173
184
  :id="item.id"
@@ -180,18 +191,18 @@ function onUpdate(value: any) {
180
191
  </div>
181
192
 
182
193
  <div :class="b24ui.wrapper({ class: props.b24ui?.wrapper })">
183
- <Label :class="b24ui.label({ class: props.b24ui?.label })" :for="item.id">
194
+ <component :is="variant === 'list' ? Label : 'p'" :class="b24ui.label({ class: props.b24ui?.label })" :for="item.id">
184
195
  <slot name="label" :item="item" :model-value="(modelValue as RadioGroupValue)">
185
196
  {{ item.label }}
186
197
  </slot>
187
- </Label>
198
+ </component>
188
199
  <p v-if="item.description || !!slots.description" :class="b24ui.description({ class: props.b24ui?.description })">
189
200
  <slot name="description" :item="item" :model-value="(modelValue as RadioGroupValue)">
190
201
  {{ item.description }}
191
202
  </slot>
192
203
  </p>
193
204
  </div>
194
- </div>
205
+ </component>
195
206
  </fieldset>
196
207
  </RadioGroupRoot>
197
208
  </template>
@@ -495,7 +495,7 @@ function isSelectItem(item: SelectMenuItem): item is _SelectMenuItem {
495
495
  :class="b24ui.item({ class: props.b24ui?.item, colorItem: isSelectItem(item) ? item?.color : undefined })"
496
496
  :disabled="isSelectItem(item) && item.disabled"
497
497
  :value="props.valueKey && isSelectItem(item) ? get(item, props.valueKey as string) : item"
498
- @select="isSelectItem(item) && item.onSelect"
498
+ @select="isSelectItem(item) && item.onSelect?.($event)"
499
499
  >
500
500
  <slot name="item" :item="(item as NestedItem<T>)" :index="index">
501
501
  <slot name="item-leading" :item="(item as NestedItem<T>)" :index="index">