@bitrix24/b24ui-nuxt 2.1.4 → 2.1.5
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 +114 -95
- package/dist/meta.mjs +114 -95
- package/dist/module.json +1 -1
- package/dist/module.mjs +1 -1
- package/dist/runtime/components/CheckboxGroup.vue +3 -2
- package/dist/runtime/components/DashboardSearchButton.vue +4 -3
- package/dist/runtime/components/NavigationMenu.d.vue.ts +44 -9
- package/dist/runtime/components/NavigationMenu.vue +19 -11
- package/dist/runtime/components/NavigationMenu.vue.d.ts +44 -9
- package/dist/runtime/components/RadioGroup.vue +5 -5
- package/dist/runtime/components/content/ContentSearchButton.vue +4 -3
- package/dist/shared/{b24ui-nuxt.Bs0V9FLV.mjs → b24ui-nuxt.Dspx5yCK.mjs} +63 -33
- package/dist/unplugin.mjs +1 -1
- package/dist/vite.mjs +1 -1
- package/package.json +1 -1
|
@@ -21,6 +21,9 @@ import B24Tooltip from "./Tooltip.vue";
|
|
|
21
21
|
defineOptions({ inheritAttrs: false });
|
|
22
22
|
const props = defineProps({
|
|
23
23
|
as: { type: null, required: false },
|
|
24
|
+
type: { type: null, required: false, default: "multiple" },
|
|
25
|
+
modelValue: { type: null, required: false },
|
|
26
|
+
defaultValue: { type: null, required: false },
|
|
24
27
|
trailingIcon: { type: [Function, Object], required: false },
|
|
25
28
|
externalIcon: { type: [Boolean, Function, Object], required: false, default: true },
|
|
26
29
|
items: { type: null, required: false },
|
|
@@ -32,8 +35,6 @@ const props = defineProps({
|
|
|
32
35
|
labelKey: { type: null, required: false, default: "label" },
|
|
33
36
|
class: { type: null, required: false },
|
|
34
37
|
b24ui: { type: null, required: false },
|
|
35
|
-
modelValue: { type: String, required: false },
|
|
36
|
-
defaultValue: { type: String, required: false },
|
|
37
38
|
delayDuration: { type: Number, required: false, default: 0 },
|
|
38
39
|
disableClickTrigger: { type: Boolean, required: false },
|
|
39
40
|
disableHoverTrigger: { type: Boolean, required: false },
|
|
@@ -41,7 +42,6 @@ const props = defineProps({
|
|
|
41
42
|
disablePointerLeaveClose: { type: Boolean, required: false },
|
|
42
43
|
unmountOnHide: { type: Boolean, required: false, default: true },
|
|
43
44
|
disabled: { type: Boolean, required: false },
|
|
44
|
-
type: { type: String, required: false, default: "multiple" },
|
|
45
45
|
collapsible: { type: Boolean, required: false, default: true }
|
|
46
46
|
});
|
|
47
47
|
const emits = defineEmits(["update:modelValue"]);
|
|
@@ -49,8 +49,6 @@ const slots = defineSlots();
|
|
|
49
49
|
const appConfig = useAppConfig();
|
|
50
50
|
const rootProps = useForwardPropsEmits(computed(() => ({
|
|
51
51
|
as: props.as,
|
|
52
|
-
modelValue: props.modelValue,
|
|
53
|
-
defaultValue: props.defaultValue,
|
|
54
52
|
delayDuration: props.delayDuration,
|
|
55
53
|
skipDelayDuration: props.skipDelayDuration,
|
|
56
54
|
orientation: props.orientation,
|
|
@@ -133,7 +131,7 @@ function getAccordionDefaultValue(list, level = 0) {
|
|
|
133
131
|
</slot>
|
|
134
132
|
|
|
135
133
|
<span
|
|
136
|
-
v-if="
|
|
134
|
+
v-if="get(item, props.labelKey) || !!slots[item.slot ? `${item.slot}-label` : 'item-label']"
|
|
137
135
|
data-slot="linkLabel"
|
|
138
136
|
:class="b24ui.linkLabel({ class: [props.b24ui?.linkLabel, item.b24ui?.linkLabel], active })"
|
|
139
137
|
>
|
|
@@ -151,8 +149,10 @@ function getAccordionDefaultValue(list, level = 0) {
|
|
|
151
149
|
|
|
152
150
|
<component
|
|
153
151
|
:is="orientation === 'vertical' && item.children?.length && !collapsed ? AccordionTrigger : 'span'"
|
|
154
|
-
v-if="
|
|
155
|
-
|
|
152
|
+
v-if="
|
|
153
|
+
/* (item.badge || item.badge === 0) || */
|
|
154
|
+
orientation === 'horizontal' && (item.children?.length || !!slots[item.slot ? `${item.slot}-content` : 'item-content']) || orientation === 'vertical' && item.children?.length || item.trailingIcon || !!slots[item.slot ? `${item.slot}-trailing` : 'item-trailing']
|
|
155
|
+
"
|
|
156
156
|
as="span"
|
|
157
157
|
data-slot="linkTrailing"
|
|
158
158
|
:class="b24ui.linkTrailing({ class: [props.b24ui?.linkTrailing, item.b24ui?.linkTrailing] })"
|
|
@@ -421,7 +421,14 @@ function getAccordionDefaultValue(list, level = 0) {
|
|
|
421
421
|
</DefineItemTemplate>
|
|
422
422
|
|
|
423
423
|
<NavigationMenuRoot
|
|
424
|
-
v-bind="{
|
|
424
|
+
v-bind="{
|
|
425
|
+
...rootProps,
|
|
426
|
+
...orientation === 'horizontal' ? {
|
|
427
|
+
modelValue,
|
|
428
|
+
defaultValue
|
|
429
|
+
} : {},
|
|
430
|
+
...$attrs
|
|
431
|
+
}"
|
|
425
432
|
:data-collapsed="collapsed"
|
|
426
433
|
data-component="section"
|
|
427
434
|
data-slot="root"
|
|
@@ -433,9 +440,10 @@ function getAccordionDefaultValue(list, level = 0) {
|
|
|
433
440
|
<component
|
|
434
441
|
v-bind="orientation === 'vertical' && !collapsed ? {
|
|
435
442
|
...accordionProps,
|
|
436
|
-
|
|
443
|
+
modelValue,
|
|
444
|
+
defaultValue: defaultValue ?? getAccordionDefaultValue(list)
|
|
437
445
|
} : {}"
|
|
438
|
-
:is="orientation === 'vertical'
|
|
446
|
+
:is="orientation === 'vertical' ? AccordionRoot : NavigationMenuList"
|
|
439
447
|
as="ul"
|
|
440
448
|
data-slot="list"
|
|
441
449
|
:class="b24ui.list({ class: props.b24ui?.list })"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { NavigationMenuRootProps,
|
|
1
|
+
import type { NavigationMenuRootProps, NavigationMenuContentProps, NavigationMenuContentEmits, AccordionRootProps } from 'reka-ui';
|
|
2
2
|
import type { AppConfig } from '@nuxt/schema';
|
|
3
3
|
import theme from '#build/b24ui/navigation-menu';
|
|
4
4
|
import type { AvatarProps, BadgeProps, IconComponent, LinkProps, PopoverProps, TooltipProps } from '../types';
|
|
@@ -75,6 +75,9 @@ export interface NavigationMenuItem extends Omit<LinkProps, 'type' | 'raw' | 'cu
|
|
|
75
75
|
b24ui?: Pick<NavigationMenu['slots'], 'item' | 'linkLeadingAvatarSize' | 'linkLeadingAvatar' | 'linkLeadingIcon' | 'linkLabel' | 'linkLabelExternalIcon' | 'linkTrailing' | 'linkLeadingHint' | 'linkLeadingBadgeSize' | 'linkLeadingBadge' | 'linkTrailingIcon' | 'label' | 'link' | 'content' | 'childList' | 'childLabel' | 'childItem' | 'childLink' | 'childLinkIcon' | 'childLinkHint' | 'childLinkBadgeSize' | 'childLinkBadge' | 'childLinkWrapper' | 'childLinkLabel' | 'childLinkLabelExternalIcon' | 'popoverWrapper'>;
|
|
76
76
|
[key: string]: any;
|
|
77
77
|
}
|
|
78
|
+
type SingleOrMultipleType = 'single' | 'multiple';
|
|
79
|
+
type Orientation = NavigationMenuRootProps['orientation'];
|
|
80
|
+
type NavigationMenuModelValue<K extends SingleOrMultipleType = SingleOrMultipleType, O extends Orientation = Orientation> = O extends 'horizontal' ? string : K extends 'single' ? string : K extends 'multiple' ? string[] : string | string[];
|
|
78
81
|
/**
|
|
79
82
|
* @memo remove contentOrientation
|
|
80
83
|
* @memo remove highlight
|
|
@@ -83,12 +86,37 @@ export interface NavigationMenuItem extends Omit<LinkProps, 'type' | 'raw' | 'cu
|
|
|
83
86
|
* @memo remove color
|
|
84
87
|
* @memo remove variant (link) -> use variant.pill
|
|
85
88
|
*/
|
|
86
|
-
export interface NavigationMenuProps<T extends ArrayOrNested<NavigationMenuItem> = ArrayOrNested<NavigationMenuItem
|
|
89
|
+
export interface NavigationMenuProps<T extends ArrayOrNested<NavigationMenuItem> = ArrayOrNested<NavigationMenuItem>, K extends SingleOrMultipleType = SingleOrMultipleType, O extends Orientation = Orientation> extends Pick<NavigationMenuRootProps, 'delayDuration' | 'disableClickTrigger' | 'disableHoverTrigger' | 'skipDelayDuration' | 'disablePointerLeaveClose' | 'unmountOnHide'>, Pick<AccordionRootProps, 'disabled' | 'collapsible'> {
|
|
87
90
|
/**
|
|
88
91
|
* The element or component this component should render as.
|
|
89
92
|
* @defaultValue 'div'
|
|
90
93
|
*/
|
|
91
94
|
as?: any;
|
|
95
|
+
/**
|
|
96
|
+
* Determines whether a "single" or "multiple" items can be selected at a time.
|
|
97
|
+
*
|
|
98
|
+
* Only works when `orientation` is `vertical`.
|
|
99
|
+
* @defaultValue 'multiple'
|
|
100
|
+
*/
|
|
101
|
+
type?: K;
|
|
102
|
+
/**
|
|
103
|
+
* The controlled value of the active item(s).
|
|
104
|
+
* - In horizontal orientation: always `string`
|
|
105
|
+
* - In vertical orientation with `type="single"`: `string`
|
|
106
|
+
* - In vertical orientation with `type="multiple"`: `string[]`
|
|
107
|
+
*
|
|
108
|
+
* Use this when you need to control the state of the items. Can be binded with `v-model`
|
|
109
|
+
*/
|
|
110
|
+
modelValue?: NavigationMenuModelValue<K, O>;
|
|
111
|
+
/**
|
|
112
|
+
* The default active value of the item(s).
|
|
113
|
+
* - In horizontal orientation: always `string`
|
|
114
|
+
* - In vertical orientation with `type="single"`: `string`
|
|
115
|
+
* - In vertical orientation with `type="multiple"`: `string[]`
|
|
116
|
+
*
|
|
117
|
+
* Use when you do not need to control the state of the item(s).
|
|
118
|
+
*/
|
|
119
|
+
defaultValue?: NavigationMenuModelValue<K, O>;
|
|
92
120
|
/**
|
|
93
121
|
* The icon displayed to open the menu.
|
|
94
122
|
* @defaultValue icons.chevronDown
|
|
@@ -107,7 +135,7 @@ export interface NavigationMenuProps<T extends ArrayOrNested<NavigationMenuItem>
|
|
|
107
135
|
* The orientation of the menu.
|
|
108
136
|
* @defaultValue 'horizontal'
|
|
109
137
|
*/
|
|
110
|
-
orientation?:
|
|
138
|
+
orientation?: O;
|
|
111
139
|
/**
|
|
112
140
|
* Collapse the navigation menu to only show icons.
|
|
113
141
|
* Only works when `orientation` is `vertical`.
|
|
@@ -138,8 +166,15 @@ export interface NavigationMenuProps<T extends ArrayOrNested<NavigationMenuItem>
|
|
|
138
166
|
class?: any;
|
|
139
167
|
b24ui?: NavigationMenu['slots'];
|
|
140
168
|
}
|
|
141
|
-
export
|
|
142
|
-
|
|
169
|
+
export type NavigationMenuEmits<K extends SingleOrMultipleType = SingleOrMultipleType, O extends Orientation = Orientation> = {
|
|
170
|
+
/**
|
|
171
|
+
* Event handler called when the value changes.
|
|
172
|
+
* - In horizontal orientation: emits `string`
|
|
173
|
+
* - In vertical orientation with `type="single"`: emits `string | undefined`
|
|
174
|
+
* - In vertical orientation with `type="multiple"`: emits `string[] | undefined`
|
|
175
|
+
*/
|
|
176
|
+
'update:modelValue': [value: NavigationMenuModelValue<K, O> | undefined];
|
|
177
|
+
};
|
|
143
178
|
type SlotProps<T extends NavigationMenuItem> = (props: {
|
|
144
179
|
item: T;
|
|
145
180
|
index: number;
|
|
@@ -169,14 +204,14 @@ export type NavigationMenuSlots<A extends ArrayOrNested<NavigationMenuItem> = Ar
|
|
|
169
204
|
active?: boolean;
|
|
170
205
|
b24ui: NavigationMenu['b24ui'];
|
|
171
206
|
}>;
|
|
172
|
-
declare const __VLS_export: <T extends ArrayOrNested<NavigationMenuItem
|
|
173
|
-
props: __VLS_PrettifyLocal<NavigationMenuProps<T> & {
|
|
174
|
-
"onUpdate:modelValue"?: ((value:
|
|
207
|
+
declare const __VLS_export: <T extends ArrayOrNested<NavigationMenuItem>, K extends SingleOrMultipleType = SingleOrMultipleType, O extends Orientation = Orientation>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
208
|
+
props: __VLS_PrettifyLocal<NavigationMenuProps<T, K, O> & {
|
|
209
|
+
"onUpdate:modelValue"?: ((value: NavigationMenuModelValue<K, O> | undefined) => any) | undefined;
|
|
175
210
|
}> & import("vue").PublicProps;
|
|
176
211
|
expose: (exposed: {}) => void;
|
|
177
212
|
attrs: any;
|
|
178
213
|
slots: NavigationMenuSlots<T, NestedItem<T>>;
|
|
179
|
-
emit: (evt: "update:modelValue", value:
|
|
214
|
+
emit: (evt: "update:modelValue", value: NavigationMenuModelValue<K, O> | undefined) => void;
|
|
180
215
|
}>) => import("vue").VNode & {
|
|
181
216
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
182
217
|
};
|
|
@@ -111,15 +111,15 @@ function onUpdate(value) {
|
|
|
111
111
|
v-for="item in normalizedItems"
|
|
112
112
|
:key="item.value"
|
|
113
113
|
data-slot="item"
|
|
114
|
-
:class="b24ui.item({ class: [props.b24ui?.item, item.b24ui?.item, item.class] })"
|
|
114
|
+
:class="b24ui.item({ class: [props.b24ui?.item, item.b24ui?.item, item.class], disabled: item.disabled || disabled })"
|
|
115
115
|
>
|
|
116
116
|
<div data-slot="container" :class="b24ui.container({ class: [props.b24ui?.container, item.b24ui?.container] })">
|
|
117
117
|
<RRadioGroupItem
|
|
118
118
|
:id="item.id"
|
|
119
119
|
:value="item.value"
|
|
120
|
-
:disabled="item.disabled"
|
|
120
|
+
:disabled="item.disabled || disabled"
|
|
121
121
|
data-slot="base"
|
|
122
|
-
:class="b24ui.base({ class: [props.b24ui?.base, item.b24ui?.base], disabled: item.disabled })"
|
|
122
|
+
:class="b24ui.base({ class: [props.b24ui?.base, item.b24ui?.base], disabled: item.disabled || disabled })"
|
|
123
123
|
>
|
|
124
124
|
<RadioGroupIndicator data-slot="indicator" :class="b24ui.indicator({ class: [props.b24ui?.indicator, item.b24ui?.indicator] })" />
|
|
125
125
|
</RRadioGroupItem>
|
|
@@ -135,7 +135,7 @@ function onUpdate(value) {
|
|
|
135
135
|
v-if="item.label || !!slots.label"
|
|
136
136
|
:for="item.id"
|
|
137
137
|
data-slot="label"
|
|
138
|
-
:class="b24ui.label({ class: [props.b24ui?.label, item.b24ui?.label] })"
|
|
138
|
+
:class="b24ui.label({ class: [props.b24ui?.label, item.b24ui?.label], disabled: item.disabled || disabled })"
|
|
139
139
|
>
|
|
140
140
|
<slot name="label" :item="item" :model-value="modelValue">
|
|
141
141
|
{{ item.label }}
|
|
@@ -144,7 +144,7 @@ function onUpdate(value) {
|
|
|
144
144
|
<p
|
|
145
145
|
v-if="item.description || !!slots.description"
|
|
146
146
|
data-slot="description"
|
|
147
|
-
:class="b24ui.description({ class: [props.b24ui?.description, item.b24ui?.description] })"
|
|
147
|
+
:class="b24ui.description({ class: [props.b24ui?.description, item.b24ui?.description], disabled: item.disabled || disabled })"
|
|
148
148
|
>
|
|
149
149
|
<slot name="description" :item="item" :model-value="modelValue">
|
|
150
150
|
{{ item.description }}
|
|
@@ -74,7 +74,9 @@ const tooltipProps = toRef(() => defu(typeof props.tooltip === "boolean" ? {} :
|
|
|
74
74
|
const { t } = useLocale();
|
|
75
75
|
const { open } = useContentSearch();
|
|
76
76
|
const appConfig = useAppConfig();
|
|
77
|
-
const b24ui = computed(() => tv({ extend: tv(theme), ...appConfig.b24ui?.contentSearchButton || {} })(
|
|
77
|
+
const b24ui = computed(() => tv({ extend: tv(theme), ...appConfig.b24ui?.contentSearchButton || {} })({
|
|
78
|
+
collapsed: props.collapsed
|
|
79
|
+
}));
|
|
78
80
|
</script>
|
|
79
81
|
|
|
80
82
|
<template>
|
|
@@ -85,7 +87,6 @@ const b24ui = computed(() => tv({ extend: tv(theme), ...appConfig.b24ui?.content
|
|
|
85
87
|
v-bind="{
|
|
86
88
|
...buttonProps,
|
|
87
89
|
...collapsed ? {
|
|
88
|
-
'label': void 0,
|
|
89
90
|
'aria-label': label || t('contentSearchButton.label')
|
|
90
91
|
} : {
|
|
91
92
|
color: 'air-secondary-no-accent'
|
|
@@ -101,7 +102,7 @@ const b24ui = computed(() => tv({ extend: tv(theme), ...appConfig.b24ui?.content
|
|
|
101
102
|
<slot :name="name" v-bind="slotData" />
|
|
102
103
|
</template>
|
|
103
104
|
|
|
104
|
-
<template
|
|
105
|
+
<template #trailing="{ b24ui: b24uiProxy }">
|
|
105
106
|
<div data-slot="trailing" :class="b24ui.trailing({ class: props.b24ui?.trailing })">
|
|
106
107
|
<slot name="trailing" :b24ui="b24uiProxy">
|
|
107
108
|
<template v-if="kbds?.length">
|
|
@@ -8,7 +8,7 @@ import { globSync } from 'tinyglobby';
|
|
|
8
8
|
import { defuFn } from 'defu';
|
|
9
9
|
|
|
10
10
|
const name = "@bitrix24/b24ui-nuxt";
|
|
11
|
-
const version = "2.1.
|
|
11
|
+
const version = "2.1.5";
|
|
12
12
|
|
|
13
13
|
function getDefaultConfig(theme) {
|
|
14
14
|
return {
|
|
@@ -1937,9 +1937,10 @@ const checkbox = {
|
|
|
1937
1937
|
},
|
|
1938
1938
|
disabled: {
|
|
1939
1939
|
true: {
|
|
1940
|
-
|
|
1941
|
-
|
|
1942
|
-
|
|
1940
|
+
root: "opacity-30",
|
|
1941
|
+
base: "cursor-not-allowed",
|
|
1942
|
+
label: "cursor-not-allowed",
|
|
1943
|
+
description: "cursor-not-allowed"
|
|
1943
1944
|
}
|
|
1944
1945
|
},
|
|
1945
1946
|
checked: {
|
|
@@ -1964,8 +1965,15 @@ const checkbox = {
|
|
|
1964
1965
|
class: {
|
|
1965
1966
|
root: "border-(--b24ui-border-color) cursor-pointer"
|
|
1966
1967
|
}
|
|
1967
|
-
}
|
|
1968
|
+
},
|
|
1968
1969
|
// endregion ////
|
|
1970
|
+
{
|
|
1971
|
+
variant: "card",
|
|
1972
|
+
disabled: true,
|
|
1973
|
+
class: {
|
|
1974
|
+
root: "cursor-not-allowed"
|
|
1975
|
+
}
|
|
1976
|
+
}
|
|
1969
1977
|
],
|
|
1970
1978
|
defaultVariants: {
|
|
1971
1979
|
color: "air-primary",
|
|
@@ -2054,11 +2062,7 @@ const checkboxGroup = {
|
|
|
2054
2062
|
}
|
|
2055
2063
|
},
|
|
2056
2064
|
disabled: {
|
|
2057
|
-
true: {
|
|
2058
|
-
base: "cursor-not-allowed opacity-30",
|
|
2059
|
-
label: "cursor-not-allowed opacity-30",
|
|
2060
|
-
item: "cursor-not-allowed opacity-30"
|
|
2061
|
-
}
|
|
2065
|
+
true: {}
|
|
2062
2066
|
},
|
|
2063
2067
|
required: {
|
|
2064
2068
|
true: {
|
|
@@ -2137,8 +2141,15 @@ const checkboxGroup = {
|
|
|
2137
2141
|
item: "first-of-type:rounded-t-(--ui-border-radius-md) last-of-type:rounded-b-(--ui-border-radius-md)",
|
|
2138
2142
|
fieldset: "gap-0 -space-y-px"
|
|
2139
2143
|
}
|
|
2140
|
-
}
|
|
2144
|
+
},
|
|
2141
2145
|
// endregion ////
|
|
2146
|
+
{
|
|
2147
|
+
variant: "table",
|
|
2148
|
+
disabled: true,
|
|
2149
|
+
class: {
|
|
2150
|
+
item: "cursor-not-allowed"
|
|
2151
|
+
}
|
|
2152
|
+
}
|
|
2142
2153
|
],
|
|
2143
2154
|
defaultVariants: {
|
|
2144
2155
|
size: "md",
|
|
@@ -2742,7 +2753,18 @@ const dashboardSearch = {
|
|
|
2742
2753
|
const dashboardSearchButton = {
|
|
2743
2754
|
slots: {
|
|
2744
2755
|
base: "",
|
|
2756
|
+
baseLine: "",
|
|
2757
|
+
label: "",
|
|
2745
2758
|
trailing: "hidden lg:flex items-center gap-0.5 ms-auto"
|
|
2759
|
+
},
|
|
2760
|
+
variants: {
|
|
2761
|
+
collapsed: {
|
|
2762
|
+
true: {
|
|
2763
|
+
baseLine: "ps-[5px] pe-[5px]",
|
|
2764
|
+
label: "hidden",
|
|
2765
|
+
trailing: "lg:hidden"
|
|
2766
|
+
}
|
|
2767
|
+
}
|
|
2746
2768
|
}
|
|
2747
2769
|
};
|
|
2748
2770
|
|
|
@@ -5304,7 +5326,9 @@ const navigationMenu = {
|
|
|
5304
5326
|
orientation: "vertical",
|
|
5305
5327
|
collapsed: true,
|
|
5306
5328
|
class: {
|
|
5307
|
-
childList: "grid px-0 py-(--menu-popup-padding)"
|
|
5329
|
+
childList: "grid px-0 py-(--menu-popup-padding)",
|
|
5330
|
+
linkLabel: "hidden",
|
|
5331
|
+
linkTrailing: "hidden"
|
|
5308
5332
|
}
|
|
5309
5333
|
},
|
|
5310
5334
|
{
|
|
@@ -5314,21 +5338,6 @@ const navigationMenu = {
|
|
|
5314
5338
|
link: "collapsed data-[state=open]:-mt-(--leftmenu-group-stroke-weight) data-[state=open]:-mx-(--leftmenu-group-stroke-weight)"
|
|
5315
5339
|
}
|
|
5316
5340
|
},
|
|
5317
|
-
// {
|
|
5318
|
-
// orientation: 'horizontal',
|
|
5319
|
-
// class: {
|
|
5320
|
-
// link: ['after:absolute after:-bottom-2 after:inset-x-2.5 after:block after:h-px after:rounded-full', 'after:transition-colors']
|
|
5321
|
-
// }
|
|
5322
|
-
// },
|
|
5323
|
-
// endregion ////
|
|
5324
|
-
// region vertical ////
|
|
5325
|
-
// {
|
|
5326
|
-
// orientation: 'vertical',
|
|
5327
|
-
// level: true,
|
|
5328
|
-
// class: {
|
|
5329
|
-
// link: ['after:absolute after:-start-1.5 after:inset-y-0.5 after:block after:w-[7px] after:rounded-full', 'after:transition-colors']
|
|
5330
|
-
// }
|
|
5331
|
-
// },
|
|
5332
5341
|
// endregion ////
|
|
5333
5342
|
// region pill ////
|
|
5334
5343
|
{
|
|
@@ -6543,8 +6552,10 @@ const radioGroup = {
|
|
|
6543
6552
|
},
|
|
6544
6553
|
disabled: {
|
|
6545
6554
|
true: {
|
|
6546
|
-
|
|
6547
|
-
|
|
6555
|
+
item: "opacity-30",
|
|
6556
|
+
base: "cursor-not-allowed",
|
|
6557
|
+
label: "cursor-not-allowed",
|
|
6558
|
+
description: "cursor-not-allowed"
|
|
6548
6559
|
}
|
|
6549
6560
|
},
|
|
6550
6561
|
required: {
|
|
@@ -6624,8 +6635,15 @@ const radioGroup = {
|
|
|
6624
6635
|
item: "first-of-type:rounded-t-(--ui-border-radius-md) last-of-type:rounded-b-(--ui-border-radius-md)",
|
|
6625
6636
|
fieldset: "gap-0 -space-y-px"
|
|
6626
6637
|
}
|
|
6627
|
-
}
|
|
6638
|
+
},
|
|
6628
6639
|
// endregion ////
|
|
6640
|
+
{
|
|
6641
|
+
variant: ["card", "table"],
|
|
6642
|
+
disabled: true,
|
|
6643
|
+
class: {
|
|
6644
|
+
item: "cursor-not-allowed"
|
|
6645
|
+
}
|
|
6646
|
+
}
|
|
6629
6647
|
],
|
|
6630
6648
|
defaultVariants: {
|
|
6631
6649
|
color: "air-primary",
|
|
@@ -7665,9 +7683,10 @@ const _switch = {
|
|
|
7665
7683
|
},
|
|
7666
7684
|
disabled: {
|
|
7667
7685
|
true: {
|
|
7668
|
-
|
|
7669
|
-
|
|
7670
|
-
|
|
7686
|
+
root: "opacity-30",
|
|
7687
|
+
base: "cursor-not-allowed",
|
|
7688
|
+
label: "cursor-not-allowed",
|
|
7689
|
+
description: "cursor-not-allowed"
|
|
7671
7690
|
}
|
|
7672
7691
|
}
|
|
7673
7692
|
},
|
|
@@ -10127,7 +10146,18 @@ const contentSearch = {
|
|
|
10127
10146
|
const contentSearchButton = {
|
|
10128
10147
|
slots: {
|
|
10129
10148
|
base: "",
|
|
10149
|
+
baseLine: "",
|
|
10150
|
+
label: "",
|
|
10130
10151
|
trailing: "hidden lg:flex items-center gap-0.5 ms-auto"
|
|
10152
|
+
},
|
|
10153
|
+
variants: {
|
|
10154
|
+
collapsed: {
|
|
10155
|
+
true: {
|
|
10156
|
+
baseLine: "ps-[5px] pe-[5px]",
|
|
10157
|
+
label: "hidden",
|
|
10158
|
+
trailing: "lg:hidden"
|
|
10159
|
+
}
|
|
10160
|
+
}
|
|
10131
10161
|
}
|
|
10132
10162
|
};
|
|
10133
10163
|
|
package/dist/unplugin.mjs
CHANGED
|
@@ -3,7 +3,7 @@ import { join, normalize } from 'pathe';
|
|
|
3
3
|
import { createUnplugin } from 'unplugin';
|
|
4
4
|
import { defu } from 'defu';
|
|
5
5
|
import tailwind from '@tailwindcss/vite';
|
|
6
|
-
import { g as getTemplates, d as defaultOptions, a as getDefaultConfig } from './shared/b24ui-nuxt.
|
|
6
|
+
import { g as getTemplates, d as defaultOptions, a as getDefaultConfig } from './shared/b24ui-nuxt.Dspx5yCK.mjs';
|
|
7
7
|
import fs from 'node:fs';
|
|
8
8
|
import path from 'node:path';
|
|
9
9
|
import MagicString from 'magic-string';
|
package/dist/vite.mjs
CHANGED
package/package.json
CHANGED