@bitrix24/b24ui-nuxt 0.2.9 → 0.3.0
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/.nuxt/b24ui/dropdown-menu.ts +15 -15
- package/.nuxt/b24ui/input-menu.ts +42 -0
- package/.nuxt/b24ui/select-menu.ts +43 -1
- package/.nuxt/b24ui/select.ts +43 -1
- package/dist/meta.cjs +1663 -1157
- package/dist/meta.d.cts +1663 -1157
- package/dist/meta.d.mts +1663 -1157
- package/dist/meta.d.ts +1663 -1157
- package/dist/meta.mjs +1663 -1157
- package/dist/module.cjs +1 -1
- package/dist/module.json +1 -1
- package/dist/module.mjs +1 -1
- package/dist/runtime/components/Checkbox.vue +3 -1
- package/dist/runtime/components/InputMenu.vue +9 -8
- package/dist/runtime/components/Select.vue +12 -9
- package/dist/runtime/components/SelectMenu.vue +12 -9
- package/dist/runtime/components/Switch.vue +4 -1
- package/dist/runtime/composables/useComponentIcons.d.ts +2 -2
- package/dist/runtime/plugins/colors.js +9 -7
- package/dist/shared/{b24ui-nuxt.DcPkWX-m.cjs → b24ui-nuxt.BDw9-NAb.cjs} +115 -20
- package/dist/shared/{b24ui-nuxt.0h2uYsyZ.mjs → b24ui-nuxt.aLj37Bax.mjs} +115 -20
- package/dist/unplugin.cjs +1 -1
- package/dist/unplugin.mjs +1 -1
- package/dist/vite.cjs +1 -1
- package/dist/vite.mjs +1 -1
- package/package.json +5 -5
package/dist/module.cjs
CHANGED
package/dist/module.json
CHANGED
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.
|
|
3
|
+
import { d as defaultOptions, a as getDefaultUiConfig, b as addTemplates } from './shared/b24ui-nuxt.aLj37Bax.mjs';
|
|
4
4
|
import 'node:url';
|
|
5
5
|
import 'scule';
|
|
6
6
|
|
|
@@ -44,6 +44,8 @@ import { useFormField } from '../composables/useFormField'
|
|
|
44
44
|
import Minus20Icon from '@bitrix24/b24icons-vue/actions/Minus20Icon'
|
|
45
45
|
import CheckIcon from '@bitrix24/b24icons-vue/main/CheckIcon'
|
|
46
46
|
|
|
47
|
+
defineOptions({ inheritAttrs: false })
|
|
48
|
+
|
|
47
49
|
const props = defineProps<CheckboxProps>()
|
|
48
50
|
const slots = defineSlots<CheckboxSlots>()
|
|
49
51
|
const emits = defineEmits<CheckboxEmits>()
|
|
@@ -78,7 +80,7 @@ function onUpdate(value: any) {
|
|
|
78
80
|
<div :class="b24ui.container({ class: props.b24ui?.container })">
|
|
79
81
|
<CheckboxRoot
|
|
80
82
|
:id="id"
|
|
81
|
-
v-bind="{ ...rootProps, ...ariaAttrs }"
|
|
83
|
+
v-bind="{ ...rootProps, ...$attrs, ...ariaAttrs }"
|
|
82
84
|
v-model="modelValue"
|
|
83
85
|
:name="name"
|
|
84
86
|
:disabled="disabled"
|
|
@@ -14,10 +14,13 @@ const appConfigInputMenu = _appConfig as AppConfig & { b24ui: { inputMenu: Parti
|
|
|
14
14
|
|
|
15
15
|
const inputMenu = tv({ extend: tv(theme), ...(appConfigInputMenu.b24ui?.inputMenu || {}) })
|
|
16
16
|
|
|
17
|
+
type InputMenuVariants = VariantProps<typeof inputMenu>
|
|
18
|
+
|
|
17
19
|
export interface InputMenuItem {
|
|
18
20
|
label?: string
|
|
19
21
|
icon?: IconComponent
|
|
20
22
|
avatar?: AvatarProps
|
|
23
|
+
color?: InputMenuVariants['color']
|
|
21
24
|
chip?: ChipProps
|
|
22
25
|
/**
|
|
23
26
|
* The item type.
|
|
@@ -28,8 +31,6 @@ export interface InputMenuItem {
|
|
|
28
31
|
onSelect?(e?: Event): void
|
|
29
32
|
}
|
|
30
33
|
|
|
31
|
-
type InputMenuVariants = VariantProps<typeof inputMenu>
|
|
32
|
-
|
|
33
34
|
export interface InputMenuProps<T extends MaybeArrayOfArrayItem<I>, I extends MaybeArrayOfArray<InputMenuItem | AcceptableValue | boolean> = MaybeArrayOfArray<InputMenuItem | AcceptableValue | boolean>, V extends SelectItemKey<T> | undefined = undefined, M extends boolean = false> extends Pick<ComboboxRootProps<T>, 'open' | 'defaultOpen' | 'disabled' | 'name' | 'resetSearchTermOnBlur' | 'highlightOnHover'>, UseComponentIconsProps {
|
|
34
35
|
/**
|
|
35
36
|
* The element or component this component should render as.
|
|
@@ -453,7 +454,7 @@ defineExpose({
|
|
|
453
454
|
|
|
454
455
|
<ComboboxItem
|
|
455
456
|
v-else
|
|
456
|
-
:class="b24ui.item({ class: props.b24ui?.item })"
|
|
457
|
+
:class="b24ui.item({ class: props.b24ui?.item, colorItem: item?.color })"
|
|
457
458
|
:disabled="item.disabled"
|
|
458
459
|
:value="valueKey && typeof item === 'object' ? get(item, props.valueKey as string) : item"
|
|
459
460
|
@select="item.onSelect"
|
|
@@ -463,16 +464,16 @@ defineExpose({
|
|
|
463
464
|
<Component
|
|
464
465
|
:is="item.icon"
|
|
465
466
|
v-if="item.icon"
|
|
466
|
-
:class="b24ui.itemLeadingIcon({ class: props.b24ui?.itemLeadingIcon })"
|
|
467
|
+
:class="b24ui.itemLeadingIcon({ class: props.b24ui?.itemLeadingIcon, colorItem: item?.color })"
|
|
467
468
|
/>
|
|
468
|
-
<B24Avatar v-else-if="item.avatar" :size="((props.b24ui?.itemLeadingAvatarSize || b24ui.itemLeadingAvatarSize()) as AvatarProps['size'])" v-bind="item.avatar" :class="b24ui.itemLeadingAvatar({ class: props.b24ui?.itemLeadingAvatar })" />
|
|
469
|
+
<B24Avatar v-else-if="item.avatar" :size="((props.b24ui?.itemLeadingAvatarSize || b24ui.itemLeadingAvatarSize()) as AvatarProps['size'])" v-bind="item.avatar" :class="b24ui.itemLeadingAvatar({ class: props.b24ui?.itemLeadingAvatar, colorItem: item?.color })" />
|
|
469
470
|
<B24Chip
|
|
470
471
|
v-else-if="item.chip"
|
|
471
472
|
:size="((props.b24ui?.itemLeadingChipSize || b24ui.itemLeadingChipSize()) as ChipProps['size'])"
|
|
472
473
|
inset
|
|
473
474
|
standalone
|
|
474
475
|
v-bind="item.chip"
|
|
475
|
-
:class="b24ui.itemLeadingChip({ class: props.b24ui?.itemLeadingChip })"
|
|
476
|
+
:class="b24ui.itemLeadingChip({ class: props.b24ui?.itemLeadingChip, colorItem: item?.color })"
|
|
476
477
|
/>
|
|
477
478
|
</slot>
|
|
478
479
|
|
|
@@ -482,13 +483,13 @@ defineExpose({
|
|
|
482
483
|
</slot>
|
|
483
484
|
</span>
|
|
484
485
|
|
|
485
|
-
<span :class="b24ui.itemTrailing({ class: props.b24ui?.itemTrailing })">
|
|
486
|
+
<span :class="b24ui.itemTrailing({ class: props.b24ui?.itemTrailing, colorItem: item?.color })">
|
|
486
487
|
<slot name="item-trailing" :item="(item as T)" :index="index" />
|
|
487
488
|
|
|
488
489
|
<ComboboxItemIndicator as-child>
|
|
489
490
|
<Component
|
|
490
491
|
:is="selectedIcon || icons.check"
|
|
491
|
-
:class="b24ui.itemTrailingIcon({ class: props.b24ui?.itemTrailingIcon })"
|
|
492
|
+
:class="b24ui.itemTrailingIcon({ class: props.b24ui?.itemTrailingIcon, colorItem: item?.color })"
|
|
492
493
|
/>
|
|
493
494
|
</ComboboxItemIndicator>
|
|
494
495
|
</span>
|
|
@@ -13,10 +13,13 @@ const appConfigSelect = _appConfig as AppConfig & { b24ui: { select: Partial<typ
|
|
|
13
13
|
|
|
14
14
|
const select = tv({ extend: tv(theme), ...(appConfigSelect.b24ui?.select || {}) })
|
|
15
15
|
|
|
16
|
+
type SelectVariants = VariantProps<typeof select>
|
|
17
|
+
|
|
16
18
|
export interface SelectItem {
|
|
17
19
|
label?: string
|
|
18
20
|
icon?: IconComponent
|
|
19
21
|
avatar?: AvatarProps
|
|
22
|
+
color?: SelectVariants['color']
|
|
20
23
|
chip?: ChipProps
|
|
21
24
|
/**
|
|
22
25
|
* The item type.
|
|
@@ -27,8 +30,6 @@ export interface SelectItem {
|
|
|
27
30
|
disabled?: boolean
|
|
28
31
|
}
|
|
29
32
|
|
|
30
|
-
type SelectVariants = VariantProps<typeof select>
|
|
31
|
-
|
|
32
33
|
export interface SelectProps<T extends MaybeArrayOfArrayItem<I>, I extends MaybeArrayOfArray<SelectItem | AcceptableValue | boolean> = MaybeArrayOfArray<SelectItem | AcceptableValue | boolean>, V extends SelectItemKey<T> | undefined = undefined, M extends boolean = false> extends Omit<SelectRootProps<T>, 'dir' | 'multiple' | 'modelValue' | 'defaultValue' | 'by'>, UseComponentIconsProps {
|
|
33
34
|
id?: string
|
|
34
35
|
/** The placeholder text when the select is empty. */
|
|
@@ -125,6 +126,8 @@ import icons from '../dictionary/icons'
|
|
|
125
126
|
import B24Avatar from './Avatar.vue'
|
|
126
127
|
import B24Chip from './Chip.vue'
|
|
127
128
|
|
|
129
|
+
defineOptions({ inheritAttrs: false })
|
|
130
|
+
|
|
128
131
|
const props = withDefaults(defineProps<SelectProps<T, I, V, M>>(), {
|
|
129
132
|
valueKey: 'value' as never,
|
|
130
133
|
labelKey: 'label' as never,
|
|
@@ -214,7 +217,7 @@ function onUpdateOpen(value: boolean) {
|
|
|
214
217
|
@update:model-value="onUpdate"
|
|
215
218
|
@update:open="onUpdateOpen"
|
|
216
219
|
>
|
|
217
|
-
<SelectTrigger :id="id" :class="b24ui.base({ class: [props.class, props.b24ui?.base] })" v-bind="ariaAttrs">
|
|
220
|
+
<SelectTrigger :id="id" :class="b24ui.base({ class: [props.class, props.b24ui?.base] })" v-bind="{ ...$attrs, ...ariaAttrs }">
|
|
218
221
|
<div v-if="isTag" :class="b24ui.tag({ class: props.b24ui?.tag })">
|
|
219
222
|
{{ props.tag }}
|
|
220
223
|
</div>
|
|
@@ -271,7 +274,7 @@ function onUpdateOpen(value: boolean) {
|
|
|
271
274
|
|
|
272
275
|
<SelectItem
|
|
273
276
|
v-else
|
|
274
|
-
:class="b24ui.item({ class: props.b24ui?.item })"
|
|
277
|
+
:class="b24ui.item({ class: props.b24ui?.item, colorItem: item?.color })"
|
|
275
278
|
:disabled="item.disabled"
|
|
276
279
|
:value="typeof item === 'object' ? get(item, props.valueKey as string) : item"
|
|
277
280
|
>
|
|
@@ -280,16 +283,16 @@ function onUpdateOpen(value: boolean) {
|
|
|
280
283
|
<Component
|
|
281
284
|
:is="item.icon"
|
|
282
285
|
v-if="item.icon"
|
|
283
|
-
:class="b24ui.itemLeadingIcon({ class: props.b24ui?.itemLeadingIcon })"
|
|
286
|
+
:class="b24ui.itemLeadingIcon({ class: props.b24ui?.itemLeadingIcon, colorItem: item?.color })"
|
|
284
287
|
/>
|
|
285
|
-
<B24Avatar v-else-if="item.avatar" :size="((props.b24ui?.itemLeadingAvatarSize || b24ui.itemLeadingAvatarSize()) as AvatarProps['size'])" v-bind="item.avatar" :class="b24ui.itemLeadingAvatar({ class: props.b24ui?.itemLeadingAvatar })" />
|
|
288
|
+
<B24Avatar v-else-if="item.avatar" :size="((props.b24ui?.itemLeadingAvatarSize || b24ui.itemLeadingAvatarSize()) as AvatarProps['size'])" v-bind="item.avatar" :class="b24ui.itemLeadingAvatar({ class: props.b24ui?.itemLeadingAvatar, colorItem: item?.color })" />
|
|
286
289
|
<B24Chip
|
|
287
290
|
v-else-if="item.chip"
|
|
288
291
|
:size="((props.b24ui?.itemLeadingChipSize || b24ui.itemLeadingChipSize()) as ChipProps['size'])"
|
|
289
292
|
inset
|
|
290
293
|
standalone
|
|
291
294
|
v-bind="item.chip"
|
|
292
|
-
:class="b24ui.itemLeadingChip({ class: props.b24ui?.itemLeadingChip })"
|
|
295
|
+
:class="b24ui.itemLeadingChip({ class: props.b24ui?.itemLeadingChip, colorItem: item?.color })"
|
|
293
296
|
/>
|
|
294
297
|
</slot>
|
|
295
298
|
|
|
@@ -299,13 +302,13 @@ function onUpdateOpen(value: boolean) {
|
|
|
299
302
|
</slot>
|
|
300
303
|
</SelectItemText>
|
|
301
304
|
|
|
302
|
-
<span :class="b24ui.itemTrailing({ class: props.b24ui?.itemTrailing })">
|
|
305
|
+
<span :class="b24ui.itemTrailing({ class: props.b24ui?.itemTrailing, colorItem: item?.color })">
|
|
303
306
|
<slot name="item-trailing" :item="(item as T)" :index="index" />
|
|
304
307
|
|
|
305
308
|
<SelectItemIndicator as-child>
|
|
306
309
|
<Component
|
|
307
310
|
:is="selectedIcon || icons.check"
|
|
308
|
-
:class="b24ui.itemTrailingIcon({ class: props.b24ui?.itemTrailingIcon })"
|
|
311
|
+
:class="b24ui.itemTrailingIcon({ class: props.b24ui?.itemTrailingIcon, colorItem: item?.color })"
|
|
309
312
|
/>
|
|
310
313
|
</SelectItemIndicator>
|
|
311
314
|
</span>
|
|
@@ -13,10 +13,13 @@ const appConfigSelectMenu = _appConfig as AppConfig & { b24ui: { selectMenu: Par
|
|
|
13
13
|
|
|
14
14
|
const selectMenu = tv({ extend: tv(theme), ...(appConfigSelectMenu.b24ui?.selectMenu || {}) })
|
|
15
15
|
|
|
16
|
+
type SelectMenuVariants = VariantProps<typeof selectMenu>
|
|
17
|
+
|
|
16
18
|
export interface SelectMenuItem {
|
|
17
19
|
label?: string
|
|
18
20
|
icon?: IconComponent
|
|
19
21
|
avatar?: AvatarProps
|
|
22
|
+
color?: SelectMenuVariants['color']
|
|
20
23
|
chip?: ChipProps
|
|
21
24
|
/**
|
|
22
25
|
* The item type.
|
|
@@ -27,8 +30,6 @@ export interface SelectMenuItem {
|
|
|
27
30
|
onSelect?(e?: Event): void
|
|
28
31
|
}
|
|
29
32
|
|
|
30
|
-
type SelectMenuVariants = VariantProps<typeof selectMenu>
|
|
31
|
-
|
|
32
33
|
export interface SelectMenuProps<T extends MaybeArrayOfArrayItem<I>, I extends MaybeArrayOfArray<SelectMenuItem | AcceptableValue | boolean> = MaybeArrayOfArray<SelectMenuItem | AcceptableValue | boolean>, V extends SelectItemKey<T> | undefined = undefined, M extends boolean = false> extends Pick<ComboboxRootProps<T>, 'open' | 'defaultOpen' | 'disabled' | 'name' | 'resetSearchTermOnBlur' | 'highlightOnHover'>, UseComponentIconsProps {
|
|
33
34
|
id?: string
|
|
34
35
|
/** The placeholder text when the select is empty. */
|
|
@@ -172,6 +173,8 @@ import B24Avatar from './Avatar.vue'
|
|
|
172
173
|
import B24Chip from './Chip.vue'
|
|
173
174
|
import B24Input from './Input.vue'
|
|
174
175
|
|
|
176
|
+
defineOptions({ inheritAttrs: false })
|
|
177
|
+
|
|
175
178
|
const props = withDefaults(defineProps<SelectMenuProps<T, I, V, M>>(), {
|
|
176
179
|
portal: true,
|
|
177
180
|
searchInput: true,
|
|
@@ -341,7 +344,7 @@ function onUpdateOpen(value: boolean) {
|
|
|
341
344
|
<ComboboxRoot
|
|
342
345
|
:id="id"
|
|
343
346
|
v-slot="{ modelValue, open }"
|
|
344
|
-
v-bind="{ ...rootProps, ...ariaAttrs }"
|
|
347
|
+
v-bind="{ ...rootProps, ...$attrs, ...ariaAttrs }"
|
|
345
348
|
ignore-filter
|
|
346
349
|
as-child
|
|
347
350
|
:name="name"
|
|
@@ -414,7 +417,7 @@ function onUpdateOpen(value: boolean) {
|
|
|
414
417
|
|
|
415
418
|
<ComboboxItem
|
|
416
419
|
v-else
|
|
417
|
-
:class="b24ui.item({ class: props.b24ui?.item })"
|
|
420
|
+
:class="b24ui.item({ class: props.b24ui?.item, colorItem: item?.color })"
|
|
418
421
|
:disabled="item.disabled"
|
|
419
422
|
:value="valueKey && typeof item === 'object' ? get(item, props.valueKey as string) : item"
|
|
420
423
|
@select="item.onSelect"
|
|
@@ -424,16 +427,16 @@ function onUpdateOpen(value: boolean) {
|
|
|
424
427
|
<Component
|
|
425
428
|
:is="item.icon"
|
|
426
429
|
v-if="item.icon"
|
|
427
|
-
:class="b24ui.itemLeadingIcon({ class: props.b24ui?.itemLeadingIcon })"
|
|
430
|
+
:class="b24ui.itemLeadingIcon({ class: props.b24ui?.itemLeadingIcon, colorItem: item?.color })"
|
|
428
431
|
/>
|
|
429
|
-
<B24Avatar v-else-if="item.avatar" :size="((props.b24ui?.itemLeadingAvatarSize || b24ui.itemLeadingAvatarSize()) as AvatarProps['size'])" v-bind="item.avatar" :class="b24ui.itemLeadingAvatar({ class: props.b24ui?.itemLeadingAvatar })" />
|
|
432
|
+
<B24Avatar v-else-if="item.avatar" :size="((props.b24ui?.itemLeadingAvatarSize || b24ui.itemLeadingAvatarSize()) as AvatarProps['size'])" v-bind="item.avatar" :class="b24ui.itemLeadingAvatar({ class: props.b24ui?.itemLeadingAvatar, colorItem: item?.color })" />
|
|
430
433
|
<B24Chip
|
|
431
434
|
v-else-if="item.chip"
|
|
432
435
|
:size="((props.b24ui?.itemLeadingChipSize || b24ui.itemLeadingChipSize()) as ChipProps['size'])"
|
|
433
436
|
inset
|
|
434
437
|
standalone
|
|
435
438
|
v-bind="item.chip"
|
|
436
|
-
:class="b24ui.itemLeadingChip({ class: props.b24ui?.itemLeadingChip })"
|
|
439
|
+
:class="b24ui.itemLeadingChip({ class: props.b24ui?.itemLeadingChip, colorItem: item?.color })"
|
|
437
440
|
/>
|
|
438
441
|
</slot>
|
|
439
442
|
|
|
@@ -443,13 +446,13 @@ function onUpdateOpen(value: boolean) {
|
|
|
443
446
|
</slot>
|
|
444
447
|
</span>
|
|
445
448
|
|
|
446
|
-
<span :class="b24ui.itemTrailing({ class: props.b24ui?.itemTrailing })">
|
|
449
|
+
<span :class="b24ui.itemTrailing({ class: props.b24ui?.itemTrailing, colorItem: item?.color })">
|
|
447
450
|
<slot name="item-trailing" :item="(item as T)" :index="index" />
|
|
448
451
|
|
|
449
452
|
<ComboboxItemIndicator as-child>
|
|
450
453
|
<Component
|
|
451
454
|
:is="selectedIcon || icons.check"
|
|
452
|
-
:class="b24ui.itemTrailingIcon({ class: props.b24ui?.itemTrailingIcon })"
|
|
455
|
+
:class="b24ui.itemTrailingIcon({ class: props.b24ui?.itemTrailingIcon, colorItem: item?.color })"
|
|
453
456
|
/>
|
|
454
457
|
</ComboboxItemIndicator>
|
|
455
458
|
</span>
|
|
@@ -54,8 +54,11 @@ import { computed, useId } from 'vue'
|
|
|
54
54
|
import { Primitive, SwitchRoot, SwitchThumb, useForwardProps, Label } from 'reka-ui'
|
|
55
55
|
import { reactivePick } from '@vueuse/core'
|
|
56
56
|
import { useFormField } from '../composables/useFormField'
|
|
57
|
+
import { omit } from '../utils'
|
|
57
58
|
import icons from '../dictionary/icons'
|
|
58
59
|
|
|
60
|
+
defineOptions({ inheritAttrs: false })
|
|
61
|
+
|
|
59
62
|
const props = defineProps<SwitchProps>()
|
|
60
63
|
const slots = defineSlots<SwitchSlots>()
|
|
61
64
|
const emits = defineEmits<SwitchEmits>()
|
|
@@ -89,7 +92,7 @@ function onUpdate(value: any) {
|
|
|
89
92
|
<div :class="b24ui.container({ class: props.b24ui?.container })">
|
|
90
93
|
<SwitchRoot
|
|
91
94
|
:id="id"
|
|
92
|
-
v-bind="{ ...rootProps, ...ariaAttrs }"
|
|
95
|
+
v-bind="{ ...rootProps, ...omit({ ...$attrs }, ['data-state']), ...ariaAttrs }"
|
|
93
96
|
v-model="modelValue"
|
|
94
97
|
:name="name"
|
|
95
98
|
:disabled="disabled || loading"
|
|
@@ -15,6 +15,6 @@ export interface UseComponentIconsProps {
|
|
|
15
15
|
export declare function useComponentIcons(componentProps: MaybeRefOrGetter<UseComponentIconsProps>): {
|
|
16
16
|
isLeading: import("vue").ComputedRef<any>;
|
|
17
17
|
isTrailing: import("vue").ComputedRef<boolean>;
|
|
18
|
-
leadingIconName: import("vue").ComputedRef<
|
|
19
|
-
trailingIconName: import("vue").ComputedRef<
|
|
18
|
+
leadingIconName: import("vue").ComputedRef<IconComponent | undefined>;
|
|
19
|
+
trailingIconName: import("vue").ComputedRef<IconComponent | undefined>;
|
|
20
20
|
};
|
|
@@ -28,13 +28,15 @@ export default defineNuxtPlugin(() => {
|
|
|
28
28
|
}]
|
|
29
29
|
};
|
|
30
30
|
if (import.meta.client && nuxtApp.isHydrating && !nuxtApp.payload.serverRendered) {
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
31
|
+
if (typeof document !== "undefined") {
|
|
32
|
+
const style = document.createElement("style");
|
|
33
|
+
style.innerHTML = root.value;
|
|
34
|
+
style.setAttribute("data-bitrix24-ui-colors", "");
|
|
35
|
+
document.head.appendChild(style);
|
|
36
|
+
headData.script = [{
|
|
37
|
+
innerHTML: "document.head.removeChild(document.querySelector('[data-bitrix24-ui-colors]'))"
|
|
38
|
+
}];
|
|
39
|
+
}
|
|
38
40
|
}
|
|
39
41
|
useHead(headData);
|
|
40
42
|
});
|
|
@@ -1761,7 +1761,7 @@ const dropdownMenu = {
|
|
|
1761
1761
|
"dark:text-red-150 dark:data-highlighted:text-red-200 dark:data-highlighted:before:bg-red-900 dark:data-[state=open]:text-red-200 dark:data-[state=open]:before:bg-red-900"
|
|
1762
1762
|
].join(" "),
|
|
1763
1763
|
itemLeadingIcon: [
|
|
1764
|
-
"text-red-500 group-data-highlighted:text-red-
|
|
1764
|
+
"text-red-500 group-data-highlighted:text-red-900 group-data-[state=open]:text-red-900",
|
|
1765
1765
|
"dark:text-red-700 dark:group-data-highlighted:text-red-150 dark:group-data-[state=open]:text-red-150"
|
|
1766
1766
|
].join(" ")
|
|
1767
1767
|
}
|
|
@@ -1775,7 +1775,7 @@ const dropdownMenu = {
|
|
|
1775
1775
|
"dark:text-red-200 dark:before:bg-red-900"
|
|
1776
1776
|
].join(" "),
|
|
1777
1777
|
itemLeadingIcon: [
|
|
1778
|
-
"text-red-
|
|
1778
|
+
"text-red-900 group-data-[state=open]:text-red-900",
|
|
1779
1779
|
"dark:text-red-700"
|
|
1780
1780
|
].join(" ")
|
|
1781
1781
|
}
|
|
@@ -1789,7 +1789,7 @@ const dropdownMenu = {
|
|
|
1789
1789
|
"dark:text-green-150 dark:data-highlighted:text-green-200 dark:data-highlighted:before:bg-green-900 dark:data-[state=open]:text-green-200 dark:data-[state=open]:before:bg-green-900"
|
|
1790
1790
|
].join(" "),
|
|
1791
1791
|
itemLeadingIcon: [
|
|
1792
|
-
"text-green-500 group-data-highlighted:text-green-
|
|
1792
|
+
"text-green-500 group-data-highlighted:text-green-900 group-data-[state=open]:text-green-900",
|
|
1793
1793
|
"dark:text-green-700 dark:group-data-highlighted:text-green-150 dark:group-data-[state=open]:text-green-150"
|
|
1794
1794
|
].join(" ")
|
|
1795
1795
|
}
|
|
@@ -1803,7 +1803,7 @@ const dropdownMenu = {
|
|
|
1803
1803
|
"dark:text-green-200 dark:before:bg-green-900"
|
|
1804
1804
|
].join(" "),
|
|
1805
1805
|
itemLeadingIcon: [
|
|
1806
|
-
"text-green-
|
|
1806
|
+
"text-green-900 group-data-[state=open]:text-green-900",
|
|
1807
1807
|
"dark:text-green-700"
|
|
1808
1808
|
].join(" ")
|
|
1809
1809
|
}
|
|
@@ -1817,7 +1817,7 @@ const dropdownMenu = {
|
|
|
1817
1817
|
"dark:text-orange-150 dark:data-highlighted:text-orange-200 dark:data-highlighted:before:bg-orange-900 dark:data-[state=open]:text-orange-200 dark:data-[state=open]:before:bg-orange-900"
|
|
1818
1818
|
].join(" "),
|
|
1819
1819
|
itemLeadingIcon: [
|
|
1820
|
-
"text-orange-500 group-data-highlighted:text-orange-
|
|
1820
|
+
"text-orange-500 group-data-highlighted:text-orange-900 group-data-[state=open]:text-orange-900",
|
|
1821
1821
|
"dark:text-orange-700 dark:group-data-highlighted:text-orange-150 dark:group-data-[state=open]:text-orange-150"
|
|
1822
1822
|
].join(" ")
|
|
1823
1823
|
}
|
|
@@ -1831,7 +1831,7 @@ const dropdownMenu = {
|
|
|
1831
1831
|
"dark:text-orange-200 dark:before:bg-orange-900"
|
|
1832
1832
|
].join(" "),
|
|
1833
1833
|
itemLeadingIcon: [
|
|
1834
|
-
"text-orange-
|
|
1834
|
+
"text-orange-900 group-data-[state=open]:text-orange-900",
|
|
1835
1835
|
"dark:text-orange-700"
|
|
1836
1836
|
].join(" ")
|
|
1837
1837
|
}
|
|
@@ -1845,7 +1845,7 @@ const dropdownMenu = {
|
|
|
1845
1845
|
"dark:text-blue-150 dark:data-highlighted:text-blue-200 dark:data-highlighted:before:bg-blue-900 dark:data-[state=open]:text-blue-200 dark:data-[state=open]:before:bg-blue-900"
|
|
1846
1846
|
].join(" "),
|
|
1847
1847
|
itemLeadingIcon: [
|
|
1848
|
-
"text-blue-500 group-data-highlighted:text-blue-
|
|
1848
|
+
"text-blue-500 group-data-highlighted:text-blue-900 group-data-[state=open]:text-blue-900",
|
|
1849
1849
|
"dark:text-blue-700 dark:group-data-highlighted:text-blue-150 dark:group-data-[state=open]:text-blue-150"
|
|
1850
1850
|
].join(" ")
|
|
1851
1851
|
}
|
|
@@ -1859,7 +1859,7 @@ const dropdownMenu = {
|
|
|
1859
1859
|
"dark:text-blue-200 dark:before:bg-blue-900"
|
|
1860
1860
|
].join(" "),
|
|
1861
1861
|
itemLeadingIcon: [
|
|
1862
|
-
"text-blue-
|
|
1862
|
+
"text-blue-900 group-data-[state=open]:text-blue-900",
|
|
1863
1863
|
"dark:text-blue-700"
|
|
1864
1864
|
].join(" ")
|
|
1865
1865
|
}
|
|
@@ -1873,7 +1873,7 @@ const dropdownMenu = {
|
|
|
1873
1873
|
"dark:text-cyan-150 dark:data-highlighted:text-cyan-200 dark:data-highlighted:before:bg-cyan-900 dark:data-[state=open]:text-cyan-200 dark:data-[state=open]:before:bg-cyan-900"
|
|
1874
1874
|
].join(" "),
|
|
1875
1875
|
itemLeadingIcon: [
|
|
1876
|
-
"text-cyan-500 group-data-highlighted:text-cyan-
|
|
1876
|
+
"text-cyan-500 group-data-highlighted:text-cyan-900 group-data-[state=open]:text-cyan-900",
|
|
1877
1877
|
"dark:text-cyan-700 dark:group-data-highlighted:text-cyan-150 dark:group-data-[state=open]:text-cyan-150"
|
|
1878
1878
|
].join(" ")
|
|
1879
1879
|
}
|
|
@@ -1887,7 +1887,7 @@ const dropdownMenu = {
|
|
|
1887
1887
|
"dark:text-cyan-200 dark:before:bg-cyan-900"
|
|
1888
1888
|
].join(" "),
|
|
1889
1889
|
itemLeadingIcon: [
|
|
1890
|
-
"text-cyan-
|
|
1890
|
+
"text-cyan-900 group-data-[state=open]:text-cyan-900",
|
|
1891
1891
|
"dark:text-cyan-700"
|
|
1892
1892
|
].join(" ")
|
|
1893
1893
|
}
|
|
@@ -1897,11 +1897,11 @@ const dropdownMenu = {
|
|
|
1897
1897
|
active: false,
|
|
1898
1898
|
class: {
|
|
1899
1899
|
item: [
|
|
1900
|
-
"text-collab-
|
|
1900
|
+
"text-collab-900 data-highlighted:text-collab-900 data-highlighted:before:bg-collab-100 data-[state=open]:text-collab-900 data-[state=open]:before:bg-collab-100",
|
|
1901
1901
|
"dark:text-collab-150 dark:data-highlighted:text-collab-200 dark:data-highlighted:before:bg-collab-900 dark:data-[state=open]:text-collab-200 dark:data-[state=open]:before:bg-collab-900"
|
|
1902
1902
|
].join(" "),
|
|
1903
1903
|
itemLeadingIcon: [
|
|
1904
|
-
"text-collab-
|
|
1904
|
+
"text-collab-600 group-data-highlighted:text-collab-900 group-data-[state=open]:text-collab-900",
|
|
1905
1905
|
"dark:text-collab-700 dark:group-data-highlighted:text-collab-150 dark:group-data-[state=open]:text-collab-150"
|
|
1906
1906
|
].join(" ")
|
|
1907
1907
|
}
|
|
@@ -1915,7 +1915,7 @@ const dropdownMenu = {
|
|
|
1915
1915
|
"dark:text-collab-200 dark:before:bg-collab-900"
|
|
1916
1916
|
].join(" "),
|
|
1917
1917
|
itemLeadingIcon: [
|
|
1918
|
-
"text-collab-
|
|
1918
|
+
"text-collab-900 group-data-[state=open]:text-collab-900",
|
|
1919
1919
|
"dark:text-collab-700"
|
|
1920
1920
|
].join(" ")
|
|
1921
1921
|
}
|
|
@@ -1929,7 +1929,7 @@ const dropdownMenu = {
|
|
|
1929
1929
|
"dark:text-ai-150 dark:data-highlighted:text-ai-200 dark:data-highlighted:before:bg-ai-900 dark:data-[state=open]:text-ai-200 dark:data-[state=open]:before:bg-ai-900"
|
|
1930
1930
|
].join(" "),
|
|
1931
1931
|
itemLeadingIcon: [
|
|
1932
|
-
"text-ai-500 group-data-highlighted:text-ai-
|
|
1932
|
+
"text-ai-500 group-data-highlighted:text-ai-900 group-data-[state=open]:text-ai-900",
|
|
1933
1933
|
"dark:text-ai-700 dark:group-data-highlighted:text-ai-150 dark:group-data-[state=open]:text-ai-150"
|
|
1934
1934
|
].join(" ")
|
|
1935
1935
|
}
|
|
@@ -1943,7 +1943,7 @@ const dropdownMenu = {
|
|
|
1943
1943
|
"dark:text-ai-200 dark:before:bg-ai-900"
|
|
1944
1944
|
].join(" "),
|
|
1945
1945
|
itemLeadingIcon: [
|
|
1946
|
-
"text-ai-
|
|
1946
|
+
"text-ai-900 group-data-[state=open]:text-ai-900",
|
|
1947
1947
|
"dark:text-ai-700"
|
|
1948
1948
|
].join(" ")
|
|
1949
1949
|
}
|
|
@@ -2449,6 +2449,99 @@ const input = {
|
|
|
2449
2449
|
}
|
|
2450
2450
|
};
|
|
2451
2451
|
|
|
2452
|
+
const colorDropDownItem = {
|
|
2453
|
+
colorItem: {
|
|
2454
|
+
/**
|
|
2455
|
+
* @memo not fill - use default data
|
|
2456
|
+
*/
|
|
2457
|
+
default: "",
|
|
2458
|
+
danger: {
|
|
2459
|
+
item: [
|
|
2460
|
+
"text-red-900 dark:text-red-150",
|
|
2461
|
+
"data-highlighted:text-red-900 dark:data-highlighted:text-red-200 data-highlighted:before:bg-red-100 dark:data-highlighted:before:bg-red-900",
|
|
2462
|
+
"data-[state=checked]:text-red-900 dark:data-[state=checked]:text-red-200 data-[state=checked]:before:bg-red-100 dark:data-[state=checked]:before:bg-red-900"
|
|
2463
|
+
].join(" "),
|
|
2464
|
+
itemLeadingIcon: [
|
|
2465
|
+
"text-red-600 dark:text-red-700",
|
|
2466
|
+
"group-data-highlighted:text-red-900 dark:group-data-highlighted:text-red-150",
|
|
2467
|
+
"group-data-[state=checked]:text-red-900 dark:group-data-[state=checked]:text-red-700"
|
|
2468
|
+
].join(" ")
|
|
2469
|
+
},
|
|
2470
|
+
success: {
|
|
2471
|
+
item: [
|
|
2472
|
+
"text-green-900 dark:text-green-150",
|
|
2473
|
+
"data-highlighted:text-green-900 dark:data-highlighted:text-green-200 data-highlighted:before:bg-green-100 dark:data-highlighted:before:bg-green-900",
|
|
2474
|
+
"data-[state=checked]:text-green-900 dark:data-[state=checked]:text-green-200 data-[state=checked]:before:bg-green-100 dark:data-[state=checked]:before:bg-green-900"
|
|
2475
|
+
].join(" "),
|
|
2476
|
+
itemLeadingIcon: [
|
|
2477
|
+
"text-green-600 dark:text-green-700",
|
|
2478
|
+
"group-data-highlighted:text-green-900 dark:group-data-highlighted:text-green-150",
|
|
2479
|
+
"group-data-[state=checked]:text-green-900 dark:group-data-[state=checked]:text-green-700"
|
|
2480
|
+
].join(" ")
|
|
2481
|
+
},
|
|
2482
|
+
warning: {
|
|
2483
|
+
item: [
|
|
2484
|
+
"text-orange-900 dark:text-orange-150",
|
|
2485
|
+
"data-highlighted:text-orange-900 dark:data-highlighted:text-orange-200 data-highlighted:before:bg-orange-100 dark:data-highlighted:before:bg-orange-900",
|
|
2486
|
+
"data-[state=checked]:text-orange-900 dark:data-[state=checked]:text-orange-200 data-[state=checked]:before:bg-orange-100 dark:data-[state=checked]:before:bg-orange-900"
|
|
2487
|
+
].join(" "),
|
|
2488
|
+
itemLeadingIcon: [
|
|
2489
|
+
"text-orange-600 dark:text-orange-700",
|
|
2490
|
+
"group-data-highlighted:text-orange-900 dark:group-data-highlighted:text-orange-150",
|
|
2491
|
+
"group-data-[state=checked]:text-orange-900 dark:group-data-[state=checked]:text-orange-700"
|
|
2492
|
+
].join(" ")
|
|
2493
|
+
},
|
|
2494
|
+
primary: {
|
|
2495
|
+
item: [
|
|
2496
|
+
"text-blue-900 dark:text-blue-150",
|
|
2497
|
+
"data-highlighted:text-blue-900 dark:data-highlighted:text-blue-200 data-highlighted:before:bg-blue-100 dark:data-highlighted:before:bg-blue-900",
|
|
2498
|
+
"data-[state=checked]:text-blue-900 dark:data-[state=checked]:text-blue-200 data-[state=checked]:before:bg-blue-100 dark:data-[state=checked]:before:bg-blue-900"
|
|
2499
|
+
].join(" "),
|
|
2500
|
+
itemLeadingIcon: [
|
|
2501
|
+
"text-blue-600 dark:text-blue-700",
|
|
2502
|
+
"group-data-highlighted:text-blue-900 dark:group-data-highlighted:text-blue-150",
|
|
2503
|
+
"group-data-[state=checked]:text-blue-900 dark:group-data-[state=checked]:text-blue-700"
|
|
2504
|
+
].join(" ")
|
|
2505
|
+
},
|
|
2506
|
+
secondary: {
|
|
2507
|
+
item: [
|
|
2508
|
+
"text-cyan-900 dark:text-cyan-150",
|
|
2509
|
+
"data-highlighted:text-cyan-900 dark:data-highlighted:text-cyan-200 data-highlighted:before:bg-cyan-100 dark:data-highlighted:before:bg-cyan-900",
|
|
2510
|
+
"data-[state=checked]:text-cyan-900 dark:data-[state=checked]:text-cyan-200 data-[state=checked]:before:bg-cyan-100 dark:data-[state=checked]:before:bg-cyan-900"
|
|
2511
|
+
].join(" "),
|
|
2512
|
+
itemLeadingIcon: [
|
|
2513
|
+
"text-cyan-600 dark:text-cyan-700",
|
|
2514
|
+
"group-data-highlighted:text-cyan-900 dark:group-data-highlighted:text-cyan-150",
|
|
2515
|
+
"group-data-[state=checked]:text-cyan-900 dark:group-data-[state=checked]:text-cyan-700"
|
|
2516
|
+
].join(" ")
|
|
2517
|
+
},
|
|
2518
|
+
collab: {
|
|
2519
|
+
item: [
|
|
2520
|
+
"text-collab-900 dark:text-collab-150",
|
|
2521
|
+
"data-highlighted:text-collab-900 dark:data-highlighted:text-collab-200 data-highlighted:before:bg-collab-100 dark:data-highlighted:before:bg-collab-900",
|
|
2522
|
+
"data-[state=checked]:text-collab-900 dark:data-[state=checked]:text-collab-200 data-[state=checked]:before:bg-collab-100 dark:data-[state=checked]:before:bg-collab-900"
|
|
2523
|
+
].join(" "),
|
|
2524
|
+
itemLeadingIcon: [
|
|
2525
|
+
"text-collab-600 dark:text-collab-700",
|
|
2526
|
+
"group-data-highlighted:text-collab-900 dark:group-data-highlighted:text-collab-150",
|
|
2527
|
+
"group-data-[state=checked]:text-collab-900 dark:group-data-[state=checked]:text-collab-700"
|
|
2528
|
+
].join(" ")
|
|
2529
|
+
},
|
|
2530
|
+
ai: {
|
|
2531
|
+
item: [
|
|
2532
|
+
"text-ai-900 dark:text-ai-150",
|
|
2533
|
+
"data-highlighted:text-ai-900 dark:data-highlighted:text-ai-200 data-highlighted:before:bg-ai-100 dark:data-highlighted:before:bg-ai-900",
|
|
2534
|
+
"data-[state=checked]:text-ai-900 dark:data-[state=checked]:text-ai-200 data-[state=checked]:before:bg-ai-100 dark:data-[state=checked]:before:bg-ai-900"
|
|
2535
|
+
].join(" "),
|
|
2536
|
+
itemLeadingIcon: [
|
|
2537
|
+
"text-ai-600 dark:text-ai-700",
|
|
2538
|
+
"group-data-highlighted:text-ai-900 dark:group-data-highlighted:text-ai-150",
|
|
2539
|
+
"group-data-[state=checked]:text-ai-900 dark:group-data-[state=checked]:text-ai-700"
|
|
2540
|
+
].join(" ")
|
|
2541
|
+
}
|
|
2542
|
+
}
|
|
2543
|
+
};
|
|
2544
|
+
|
|
2452
2545
|
const defSize$1 = {
|
|
2453
2546
|
label: "h-9 ps-2 pe-3 text-sm gap-2",
|
|
2454
2547
|
item: "h-9 ps-3 pe-3 text-sm gap-2",
|
|
@@ -2620,7 +2713,8 @@ const inputMenu = () => {
|
|
|
2620
2713
|
tagsItemDeleteIcon: "size-3.5"
|
|
2621
2714
|
}
|
|
2622
2715
|
)
|
|
2623
|
-
}
|
|
2716
|
+
},
|
|
2717
|
+
...colorDropDownItem
|
|
2624
2718
|
},
|
|
2625
2719
|
compoundVariants: [
|
|
2626
2720
|
// region Color ////
|
|
@@ -3811,10 +3905,10 @@ const select = () => {
|
|
|
3811
3905
|
"transition-colors before:transition-colors"
|
|
3812
3906
|
].join(" "),
|
|
3813
3907
|
itemLeadingIcon: [
|
|
3814
|
-
"shrink-0
|
|
3908
|
+
"shrink-0 transition-colors",
|
|
3909
|
+
"text-base-500 dark:text-base-700",
|
|
3815
3910
|
"group-data-highlighted:text-base-master dark:group-data-highlighted:text-base-150",
|
|
3816
|
-
"group-data-[state=checked]:text-base-master dark:group-data-[state=checked]:text-base-150"
|
|
3817
|
-
"transition-colors"
|
|
3911
|
+
"group-data-[state=checked]:text-base-master dark:group-data-[state=checked]:text-base-150"
|
|
3818
3912
|
].join(" "),
|
|
3819
3913
|
itemLeadingAvatar: "shrink-0",
|
|
3820
3914
|
itemLeadingAvatarSize: "",
|
|
@@ -3831,7 +3925,8 @@ const select = () => {
|
|
|
3831
3925
|
sm: defSize,
|
|
3832
3926
|
md: defSize,
|
|
3833
3927
|
lg: defSize
|
|
3834
|
-
}
|
|
3928
|
+
},
|
|
3929
|
+
...colorDropDownItem
|
|
3835
3930
|
}
|
|
3836
3931
|
},
|
|
3837
3932
|
input
|