@nuxt/ui 2.11.0 → 2.11.1
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/module.d.mts +196 -22
- package/dist/module.d.ts +196 -22
- package/dist/module.json +1 -1
- package/dist/module.mjs +5 -3
- package/dist/runtime/components/data/Table.vue +3 -3
- package/dist/runtime/components/data/Table.vue.d.ts +7 -7
- package/dist/runtime/components/elements/Accordion.vue +2 -2
- package/dist/runtime/components/elements/Accordion.vue.d.ts +7 -7
- package/dist/runtime/components/elements/Alert.vue +6 -6
- package/dist/runtime/components/elements/Alert.vue.d.ts +7 -7
- package/dist/runtime/components/elements/Avatar.vue +2 -2
- package/dist/runtime/components/elements/Avatar.vue.d.ts +7 -7
- package/dist/runtime/components/elements/AvatarGroup.d.ts +7 -7
- package/dist/runtime/components/elements/AvatarGroup.mjs +2 -2
- package/dist/runtime/components/elements/Badge.vue +2 -2
- package/dist/runtime/components/elements/Badge.vue.d.ts +7 -7
- package/dist/runtime/components/elements/Button.vue +8 -6
- package/dist/runtime/components/elements/Button.vue.d.ts +8 -7
- package/dist/runtime/components/elements/ButtonGroup.d.ts +7 -7
- package/dist/runtime/components/elements/ButtonGroup.mjs +3 -16
- package/dist/runtime/components/elements/Chip.vue +2 -2
- package/dist/runtime/components/elements/Chip.vue.d.ts +7 -7
- package/dist/runtime/components/elements/Dropdown.vue +5 -5
- package/dist/runtime/components/elements/Dropdown.vue.d.ts +7 -7
- package/dist/runtime/components/elements/Kbd.vue +2 -2
- package/dist/runtime/components/elements/Kbd.vue.d.ts +7 -7
- package/dist/runtime/components/elements/Meter.vue +2 -2
- package/dist/runtime/components/elements/Meter.vue.d.ts +7 -7
- package/dist/runtime/components/elements/MeterGroup.d.ts +9 -9
- package/dist/runtime/components/elements/MeterGroup.mjs +8 -21
- package/dist/runtime/components/elements/Progress.vue +5 -94
- package/dist/runtime/components/elements/Progress.vue.d.ts +123 -1
- package/dist/runtime/components/forms/Checkbox.vue +7 -7
- package/dist/runtime/components/forms/Checkbox.vue.d.ts +8 -8
- package/dist/runtime/components/forms/Form.vue +1 -1
- package/dist/runtime/components/forms/FormGroup.vue +2 -2
- package/dist/runtime/components/forms/FormGroup.vue.d.ts +7 -7
- package/dist/runtime/components/forms/Input.vue +7 -7
- package/dist/runtime/components/forms/Input.vue.d.ts +10 -10
- package/dist/runtime/components/forms/Radio.vue +7 -7
- package/dist/runtime/components/forms/Radio.vue.d.ts +7 -7
- package/dist/runtime/components/forms/RadioGroup.vue +4 -4
- package/dist/runtime/components/forms/RadioGroup.vue.d.ts +13 -13
- package/dist/runtime/components/forms/Range.vue +5 -5
- package/dist/runtime/components/forms/Range.vue.d.ts +8 -8
- package/dist/runtime/components/forms/Select.vue +7 -7
- package/dist/runtime/components/forms/Select.vue.d.ts +9 -9
- package/dist/runtime/components/forms/SelectMenu.vue +18 -18
- package/dist/runtime/components/forms/SelectMenu.vue.d.ts +13 -13
- package/dist/runtime/components/forms/Textarea.vue +3 -3
- package/dist/runtime/components/forms/Textarea.vue.d.ts +10 -10
- package/dist/runtime/components/forms/Toggle.vue +9 -9
- package/dist/runtime/components/forms/Toggle.vue.d.ts +14 -14
- package/dist/runtime/components/layout/Card.vue +2 -2
- package/dist/runtime/components/layout/Card.vue.d.ts +7 -7
- package/dist/runtime/components/layout/Container.vue +2 -2
- package/dist/runtime/components/layout/Container.vue.d.ts +7 -7
- package/dist/runtime/components/layout/Divider.vue +3 -8
- package/dist/runtime/components/layout/Divider.vue.d.ts +7 -7
- package/dist/runtime/components/layout/Skeleton.vue +2 -2
- package/dist/runtime/components/layout/Skeleton.vue.d.ts +7 -7
- package/dist/runtime/components/navigation/Breadcrumb.vue +2 -2
- package/dist/runtime/components/navigation/Breadcrumb.vue.d.ts +7 -7
- package/dist/runtime/components/navigation/CommandPalette.vue +42 -33
- package/dist/runtime/components/navigation/CommandPalette.vue.d.ts +15 -8
- package/dist/runtime/components/navigation/CommandPaletteGroup.vue +1 -3
- package/dist/runtime/components/navigation/Pagination.vue +7 -7
- package/dist/runtime/components/navigation/Pagination.vue.d.ts +7 -7
- package/dist/runtime/components/navigation/Tabs.vue +8 -5
- package/dist/runtime/components/navigation/Tabs.vue.d.ts +9 -9
- package/dist/runtime/components/navigation/VerticalNavigation.vue +2 -2
- package/dist/runtime/components/navigation/VerticalNavigation.vue.d.ts +7 -7
- package/dist/runtime/components/overlays/ContextMenu.vue +4 -3
- package/dist/runtime/components/overlays/ContextMenu.vue.d.ts +7 -7
- package/dist/runtime/components/overlays/Modal.vue +3 -6
- package/dist/runtime/components/overlays/Modal.vue.d.ts +7 -7
- package/dist/runtime/components/overlays/Notification.vue +7 -7
- package/dist/runtime/components/overlays/Notification.vue.d.ts +7 -7
- package/dist/runtime/components/overlays/Notifications.vue +2 -2
- package/dist/runtime/components/overlays/Notifications.vue.d.ts +7 -7
- package/dist/runtime/components/overlays/Popover.vue +5 -4
- package/dist/runtime/components/overlays/Popover.vue.d.ts +7 -7
- package/dist/runtime/components/overlays/Slideover.vue +6 -6
- package/dist/runtime/components/overlays/Slideover.vue.d.ts +7 -7
- package/dist/runtime/components/overlays/Tooltip.vue +6 -5
- package/dist/runtime/components/overlays/Tooltip.vue.d.ts +7 -7
- package/dist/runtime/composables/useFormGroup.d.ts +3 -3
- package/dist/runtime/composables/useFormGroup.mjs +1 -1
- package/dist/runtime/composables/useUI.d.ts +3 -3
- package/dist/runtime/types/breadcrumb.d.ts +2 -0
- package/dist/runtime/types/form.d.ts +1 -1
- package/dist/runtime/types/popper.d.ts +2 -0
- package/dist/runtime/types/utils.d.ts +4 -4
- package/dist/runtime/ui.config/data/table.d.ts +2 -2
- package/dist/runtime/ui.config/elements/accordion.d.ts +1 -1
- package/dist/runtime/ui.config/elements/alert.d.ts +5 -4
- package/dist/runtime/ui.config/elements/alert.mjs +1 -0
- package/dist/runtime/ui.config/elements/button.d.ts +4 -0
- package/dist/runtime/ui.config/elements/button.mjs +4 -0
- package/dist/runtime/ui.config/elements/buttonGroup.d.ts +92 -0
- package/dist/runtime/ui.config/elements/buttonGroup.mjs +12 -1
- package/dist/runtime/ui.config/elements/dropdown.d.ts +3 -1
- package/dist/runtime/ui.config/elements/dropdown.mjs +4 -2
- package/dist/runtime/ui.config/elements/meterGroup.d.ts +40 -0
- package/dist/runtime/ui.config/elements/meterGroup.mjs +14 -1
- package/dist/runtime/ui.config/forms/checkbox.d.ts +3 -0
- package/dist/runtime/ui.config/forms/checkbox.mjs +3 -0
- package/dist/runtime/ui.config/forms/input.d.ts +2 -0
- package/dist/runtime/ui.config/forms/input.mjs +2 -0
- package/dist/runtime/ui.config/forms/radio.d.ts +3 -0
- package/dist/runtime/ui.config/forms/radio.mjs +3 -0
- package/dist/runtime/ui.config/forms/select.d.ts +2 -0
- package/dist/runtime/ui.config/forms/select.mjs +1 -0
- package/dist/runtime/ui.config/forms/selectMenu.d.ts +6 -1
- package/dist/runtime/ui.config/forms/selectMenu.mjs +7 -2
- package/dist/runtime/ui.config/forms/textarea.d.ts +2 -0
- package/dist/runtime/ui.config/forms/textarea.mjs +1 -0
- package/dist/runtime/ui.config/layout/divider.d.ts +6 -1
- package/dist/runtime/ui.config/layout/divider.mjs +5 -0
- package/dist/runtime/ui.config/navigation/breadcrumb.mjs +1 -1
- package/dist/runtime/ui.config/navigation/commandPalette.d.ts +5 -1
- package/dist/runtime/ui.config/navigation/commandPalette.mjs +5 -1
- package/dist/runtime/ui.config/navigation/pagination.d.ts +6 -6
- package/dist/runtime/ui.config/navigation/verticalNavigation.d.ts +1 -1
- package/dist/runtime/ui.config/overlays/contextMenu.mjs +1 -1
- package/dist/runtime/ui.config/overlays/modal.d.ts +1 -0
- package/dist/runtime/ui.config/overlays/modal.mjs +3 -2
- package/dist/runtime/ui.config/overlays/notification.d.ts +5 -4
- package/dist/runtime/ui.config/overlays/notification.mjs +1 -0
- package/dist/runtime/ui.config/overlays/popover.d.ts +1 -0
- package/dist/runtime/ui.config/overlays/popover.mjs +2 -1
- package/dist/runtime/ui.config/overlays/slideover.d.ts +5 -0
- package/dist/runtime/ui.config/overlays/slideover.mjs +5 -0
- package/dist/runtime/ui.config/overlays/tooltip.d.ts +1 -0
- package/dist/runtime/ui.config/overlays/tooltip.mjs +2 -1
- package/dist/runtime/ui.config/{_popperArrow.d.ts → popper.d.ts} +1 -2
- package/dist/runtime/ui.config/{_popperArrow.mjs → popper.mjs} +2 -2
- package/dist/runtime/ui.css +1 -13
- package/dist/runtime/utils/index.mjs +1 -1
- package/package.json +12 -14
|
@@ -39,11 +39,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
39
39
|
};
|
|
40
40
|
class: {
|
|
41
41
|
type: PropType<any>;
|
|
42
|
-
default:
|
|
42
|
+
default: () => "";
|
|
43
43
|
};
|
|
44
44
|
ui: {
|
|
45
|
-
type: PropType<
|
|
46
|
-
default:
|
|
45
|
+
type: PropType<any>;
|
|
46
|
+
default: () => {};
|
|
47
47
|
};
|
|
48
48
|
}, {
|
|
49
49
|
ui: import("vue").ComputedRef<any>;
|
|
@@ -91,16 +91,16 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
91
91
|
};
|
|
92
92
|
class: {
|
|
93
93
|
type: PropType<any>;
|
|
94
|
-
default:
|
|
94
|
+
default: () => "";
|
|
95
95
|
};
|
|
96
96
|
ui: {
|
|
97
|
-
type: PropType<
|
|
98
|
-
default:
|
|
97
|
+
type: PropType<any>;
|
|
98
|
+
default: () => {};
|
|
99
99
|
};
|
|
100
100
|
}>> & {
|
|
101
101
|
onClose?: ((...args: any[]) => any) | undefined;
|
|
102
102
|
}, {
|
|
103
|
-
ui:
|
|
103
|
+
ui: any;
|
|
104
104
|
description: string;
|
|
105
105
|
icon: string;
|
|
106
106
|
avatar: Avatar;
|
|
@@ -42,11 +42,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
42
42
|
};
|
|
43
43
|
class: {
|
|
44
44
|
type: PropType<any>;
|
|
45
|
-
default:
|
|
45
|
+
default: () => "";
|
|
46
46
|
};
|
|
47
47
|
ui: {
|
|
48
|
-
type: PropType<
|
|
49
|
-
default:
|
|
48
|
+
type: PropType<any>;
|
|
49
|
+
default: () => {};
|
|
50
50
|
};
|
|
51
51
|
}, {
|
|
52
52
|
ui: import("vue").ComputedRef<any>;
|
|
@@ -103,16 +103,16 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
103
103
|
};
|
|
104
104
|
class: {
|
|
105
105
|
type: PropType<any>;
|
|
106
|
-
default:
|
|
106
|
+
default: () => "";
|
|
107
107
|
};
|
|
108
108
|
ui: {
|
|
109
|
-
type: PropType<
|
|
110
|
-
default:
|
|
109
|
+
type: PropType<any>;
|
|
110
|
+
default: () => {};
|
|
111
111
|
};
|
|
112
112
|
}>>, {
|
|
113
113
|
alt: string;
|
|
114
114
|
size: AvatarSize;
|
|
115
|
-
ui:
|
|
115
|
+
ui: any;
|
|
116
116
|
icon: string;
|
|
117
117
|
class: any;
|
|
118
118
|
src: string | boolean;
|
|
@@ -12,11 +12,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
12
12
|
};
|
|
13
13
|
class: {
|
|
14
14
|
type: PropType<any>;
|
|
15
|
-
default:
|
|
15
|
+
default: () => "";
|
|
16
16
|
};
|
|
17
17
|
ui: {
|
|
18
|
-
type: PropType<
|
|
19
|
-
default:
|
|
18
|
+
type: PropType<any>;
|
|
19
|
+
default: () => {};
|
|
20
20
|
};
|
|
21
21
|
}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
22
22
|
[key: string]: any;
|
|
@@ -32,15 +32,15 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
32
32
|
};
|
|
33
33
|
class: {
|
|
34
34
|
type: PropType<any>;
|
|
35
|
-
default:
|
|
35
|
+
default: () => "";
|
|
36
36
|
};
|
|
37
37
|
ui: {
|
|
38
|
-
type: PropType<
|
|
39
|
-
default:
|
|
38
|
+
type: PropType<any>;
|
|
39
|
+
default: () => {};
|
|
40
40
|
};
|
|
41
41
|
}>>, {
|
|
42
42
|
size: AvatarSize;
|
|
43
|
-
ui:
|
|
43
|
+
ui: any;
|
|
44
44
|
class: any;
|
|
45
45
|
max: number;
|
|
46
46
|
}, {}>;
|
|
@@ -22,11 +22,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
22
22
|
};
|
|
23
23
|
class: {
|
|
24
24
|
type: PropType<any>;
|
|
25
|
-
default:
|
|
25
|
+
default: () => "";
|
|
26
26
|
};
|
|
27
27
|
ui: {
|
|
28
|
-
type: PropType<
|
|
29
|
-
default:
|
|
28
|
+
type: PropType<any>;
|
|
29
|
+
default: () => {};
|
|
30
30
|
};
|
|
31
31
|
}, {
|
|
32
32
|
attrs: import("vue").ComputedRef<Pick<{
|
|
@@ -55,15 +55,15 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
55
55
|
};
|
|
56
56
|
class: {
|
|
57
57
|
type: PropType<any>;
|
|
58
|
-
default:
|
|
58
|
+
default: () => "";
|
|
59
59
|
};
|
|
60
60
|
ui: {
|
|
61
|
-
type: PropType<
|
|
62
|
-
default:
|
|
61
|
+
type: PropType<any>;
|
|
62
|
+
default: () => {};
|
|
63
63
|
};
|
|
64
64
|
}>>, {
|
|
65
65
|
size: BadgeSize;
|
|
66
|
-
ui:
|
|
66
|
+
ui: any;
|
|
67
67
|
color: any;
|
|
68
68
|
class: any;
|
|
69
69
|
label: string | number;
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
</slot>
|
|
6
6
|
|
|
7
7
|
<slot>
|
|
8
|
-
<span v-if="label" :class="[truncate ?
|
|
8
|
+
<span v-if="label" :class="[truncate ? ui.truncate : '']">
|
|
9
9
|
{{ label }}
|
|
10
10
|
</span>
|
|
11
11
|
</slot>
|
|
@@ -116,11 +116,11 @@ export default defineComponent({
|
|
|
116
116
|
},
|
|
117
117
|
class: {
|
|
118
118
|
type: [String, Object, Array],
|
|
119
|
-
default:
|
|
119
|
+
default: () => ""
|
|
120
120
|
},
|
|
121
121
|
ui: {
|
|
122
122
|
type: Object,
|
|
123
|
-
default:
|
|
123
|
+
default: () => ({})
|
|
124
124
|
}
|
|
125
125
|
},
|
|
126
126
|
setup(props, { slots }) {
|
|
@@ -143,7 +143,7 @@ export default defineComponent({
|
|
|
143
143
|
ui.value.gap[size.value],
|
|
144
144
|
props.padded && ui.value[isSquare.value ? "square" : "padding"][size.value],
|
|
145
145
|
variant?.replaceAll("{color}", props.color),
|
|
146
|
-
props.block ?
|
|
146
|
+
props.block ? ui.value.block : ui.value.inline
|
|
147
147
|
), props.class);
|
|
148
148
|
});
|
|
149
149
|
const leadingIconName = computed(() => {
|
|
@@ -162,17 +162,19 @@ export default defineComponent({
|
|
|
162
162
|
return twJoin(
|
|
163
163
|
ui.value.icon.base,
|
|
164
164
|
ui.value.icon.size[size.value],
|
|
165
|
-
props.loading &&
|
|
165
|
+
props.loading && ui.value.icon.loading
|
|
166
166
|
);
|
|
167
167
|
});
|
|
168
168
|
const trailingIconClass = computed(() => {
|
|
169
169
|
return twJoin(
|
|
170
170
|
ui.value.icon.base,
|
|
171
171
|
ui.value.icon.size[size.value],
|
|
172
|
-
props.loading && !isLeading.value &&
|
|
172
|
+
props.loading && !isLeading.value && ui.value.icon.loading
|
|
173
173
|
);
|
|
174
174
|
});
|
|
175
175
|
return {
|
|
176
|
+
// eslint-disable-next-line vue/no-dupe-keys
|
|
177
|
+
ui,
|
|
176
178
|
attrs,
|
|
177
179
|
isLeading,
|
|
178
180
|
isTrailing,
|
|
@@ -74,13 +74,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
74
74
|
};
|
|
75
75
|
class: {
|
|
76
76
|
type: PropType<any>;
|
|
77
|
-
default:
|
|
77
|
+
default: () => "";
|
|
78
78
|
};
|
|
79
79
|
ui: {
|
|
80
|
-
type: PropType<
|
|
81
|
-
default:
|
|
80
|
+
type: PropType<any>;
|
|
81
|
+
default: () => {};
|
|
82
82
|
};
|
|
83
83
|
}, {
|
|
84
|
+
ui: import("vue").ComputedRef<any>;
|
|
84
85
|
attrs: import("vue").ComputedRef<Pick<{
|
|
85
86
|
[x: string]: unknown;
|
|
86
87
|
}, string>>;
|
|
@@ -166,15 +167,15 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
166
167
|
};
|
|
167
168
|
class: {
|
|
168
169
|
type: PropType<any>;
|
|
169
|
-
default:
|
|
170
|
+
default: () => "";
|
|
170
171
|
};
|
|
171
172
|
ui: {
|
|
172
|
-
type: PropType<
|
|
173
|
-
default:
|
|
173
|
+
type: PropType<any>;
|
|
174
|
+
default: () => {};
|
|
174
175
|
};
|
|
175
176
|
}>>, {
|
|
176
177
|
size: ButtonSize;
|
|
177
|
-
ui:
|
|
178
|
+
ui: any;
|
|
178
179
|
truncate: boolean;
|
|
179
180
|
icon: string;
|
|
180
181
|
color: any;
|
|
@@ -13,11 +13,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
13
13
|
};
|
|
14
14
|
class: {
|
|
15
15
|
type: PropType<any>;
|
|
16
|
-
default:
|
|
16
|
+
default: () => "";
|
|
17
17
|
};
|
|
18
18
|
ui: {
|
|
19
|
-
type: PropType<
|
|
20
|
-
default:
|
|
19
|
+
type: PropType<any>;
|
|
20
|
+
default: () => {};
|
|
21
21
|
};
|
|
22
22
|
}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
23
23
|
[key: string]: any;
|
|
@@ -34,16 +34,16 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
34
34
|
};
|
|
35
35
|
class: {
|
|
36
36
|
type: PropType<any>;
|
|
37
|
-
default:
|
|
37
|
+
default: () => "";
|
|
38
38
|
};
|
|
39
39
|
ui: {
|
|
40
|
-
type: PropType<
|
|
41
|
-
default:
|
|
40
|
+
type: PropType<any>;
|
|
41
|
+
default: () => {};
|
|
42
42
|
};
|
|
43
43
|
}>>, {
|
|
44
44
|
orientation: "horizontal" | "vertical";
|
|
45
45
|
size: ButtonSize;
|
|
46
|
-
ui:
|
|
46
|
+
ui: any;
|
|
47
47
|
class: any;
|
|
48
48
|
}, {}>;
|
|
49
49
|
export default _default;
|
|
@@ -27,11 +27,11 @@ export default defineComponent({
|
|
|
27
27
|
},
|
|
28
28
|
class: {
|
|
29
29
|
type: [String, Object, Array],
|
|
30
|
-
default:
|
|
30
|
+
default: () => ""
|
|
31
31
|
},
|
|
32
32
|
ui: {
|
|
33
33
|
type: Object,
|
|
34
|
-
default:
|
|
34
|
+
default: () => ({})
|
|
35
35
|
}
|
|
36
36
|
},
|
|
37
37
|
setup(props, { slots }) {
|
|
@@ -44,20 +44,7 @@ export default defineComponent({
|
|
|
44
44
|
ui.value.shadow
|
|
45
45
|
), props.class);
|
|
46
46
|
});
|
|
47
|
-
const rounded = computed(() =>
|
|
48
|
-
const roundedMap = {
|
|
49
|
-
"rounded-none": { horizontal: { start: "rounded-s-none", end: "rounded-e-none" }, vertical: { start: "rounded-t-none", end: "rounded-b-none" } },
|
|
50
|
-
"rounded-sm": { horizontal: { start: "rounded-s-sm", end: "rounded-e-sm" }, vertical: { start: "rounded-t-sm", end: "rounded-b-sm" } },
|
|
51
|
-
rounded: { horizontal: { start: "rounded-s", end: "rounded-e" }, vertical: { start: "rounded-t", end: "rounded-b" } },
|
|
52
|
-
"rounded-md": { horizontal: { start: "rounded-s-md", end: "rounded-e-md" }, vertical: { start: "rounded-t-md", end: "rounded-b-md" } },
|
|
53
|
-
"rounded-lg": { horizontal: { start: "rounded-s-lg", end: "rounded-e-lg" }, vertical: { start: "rounded-t-lg", end: "rounded-b-lg" } },
|
|
54
|
-
"rounded-xl": { horizontal: { start: "rounded-s-xl", end: "rounded-e-xl" }, vertical: { start: "rounded-t-xl", end: "rounded-b-xl" } },
|
|
55
|
-
"rounded-2xl": { horizontal: { start: "rounded-s-2xl", end: "rounded-e-2xl" }, vertical: { start: "rounded-t-2xl", end: "rounded-b-2xl" } },
|
|
56
|
-
"rounded-3xl": { horizontal: { start: "rounded-s-3xl", end: "rounded-e-3xl" }, vertical: { start: "rounded-t-3xl", end: "rounded-b-3xl" } },
|
|
57
|
-
"rounded-full": { horizontal: { start: "rounded-s-full", end: "rounded-e-full" }, vertical: { start: "rounded-t-full", end: "rounded-b-full" } }
|
|
58
|
-
};
|
|
59
|
-
return roundedMap[ui.value.rounded][props.orientation];
|
|
60
|
-
});
|
|
47
|
+
const rounded = computed(() => ui.value.orientation[ui.value.rounded][props.orientation]);
|
|
61
48
|
useProvideButtonGroup({ orientation: toRef(props, "orientation"), size: toRef(props, "size"), ui, rounded });
|
|
62
49
|
return () => h("div", { class: wrapperClass.value, ...attrs.value }, children.value);
|
|
63
50
|
}
|
|
@@ -29,11 +29,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
29
29
|
};
|
|
30
30
|
class: {
|
|
31
31
|
type: PropType<any>;
|
|
32
|
-
default:
|
|
32
|
+
default: () => "";
|
|
33
33
|
};
|
|
34
34
|
ui: {
|
|
35
|
-
type: PropType<
|
|
36
|
-
default:
|
|
35
|
+
type: PropType<any>;
|
|
36
|
+
default: () => {};
|
|
37
37
|
};
|
|
38
38
|
}, {
|
|
39
39
|
ui: import("vue").ComputedRef<any>;
|
|
@@ -71,15 +71,15 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
71
71
|
};
|
|
72
72
|
class: {
|
|
73
73
|
type: PropType<any>;
|
|
74
|
-
default:
|
|
74
|
+
default: () => "";
|
|
75
75
|
};
|
|
76
76
|
ui: {
|
|
77
|
-
type: PropType<
|
|
78
|
-
default:
|
|
77
|
+
type: PropType<any>;
|
|
78
|
+
default: () => {};
|
|
79
79
|
};
|
|
80
80
|
}>>, {
|
|
81
81
|
size: "sm" | "3xs" | "md" | "xs" | "2xs" | "lg" | "xl" | "2xl" | "3xl";
|
|
82
|
-
ui:
|
|
82
|
+
ui: any;
|
|
83
83
|
color: any;
|
|
84
84
|
class: any;
|
|
85
85
|
text: string | number;
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
ref="trigger"
|
|
5
5
|
as="div"
|
|
6
6
|
:disabled="disabled"
|
|
7
|
-
class="
|
|
7
|
+
:class="ui.trigger"
|
|
8
8
|
role="button"
|
|
9
9
|
@mouseover="onMouseOver"
|
|
10
10
|
>
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
<div v-if="open && items.length" ref="container" :class="[ui.container, ui.width]" :style="containerStyle" @mouseover="onMouseOver">
|
|
19
19
|
<Transition appear v-bind="ui.transition">
|
|
20
20
|
<div>
|
|
21
|
-
<div v-if="popper.arrow" data-popper-arrow :class="
|
|
21
|
+
<div v-if="popper.arrow" data-popper-arrow :class="Object.values(ui.arrow)" />
|
|
22
22
|
<HMenuItems :class="[ui.base, ui.divide, ui.ring, ui.rounded, ui.shadow, ui.background, ui.height]" static>
|
|
23
23
|
<div v-for="(subItems, index) of items" :key="index" :class="ui.padding">
|
|
24
24
|
<NuxtLink v-for="(item, subIndex) of subItems" :key="subIndex" v-slot="{ href, target, rel, navigate, isExternal }" v-bind="omit(item, ['label', 'slot', 'icon', 'iconClass', 'avatar', 'shortcuts', 'disabled', 'click'])" custom>
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
<UIcon v-if="item.icon" :name="item.icon" :class="[ui.item.icon.base, active ? ui.item.icon.active : ui.item.icon.inactive, item.iconClass]" />
|
|
36
36
|
<UAvatar v-else-if="item.avatar" v-bind="{ size: ui.item.avatar.size, ...item.avatar }" :class="ui.item.avatar.base" />
|
|
37
37
|
|
|
38
|
-
<span class="
|
|
38
|
+
<span :class="ui.item.label">{{ item.label }}</span>
|
|
39
39
|
|
|
40
40
|
<span v-if="item.shortcuts?.length" :class="ui.item.shortcuts">
|
|
41
41
|
<UKbd v-for="shortcut of item.shortcuts" :key="shortcut">{{ shortcut }}</UKbd>
|
|
@@ -104,11 +104,11 @@ export default defineComponent({
|
|
|
104
104
|
},
|
|
105
105
|
class: {
|
|
106
106
|
type: [String, Object, Array],
|
|
107
|
-
default:
|
|
107
|
+
default: () => ""
|
|
108
108
|
},
|
|
109
109
|
ui: {
|
|
110
110
|
type: Object,
|
|
111
|
-
default:
|
|
111
|
+
default: () => ({})
|
|
112
112
|
}
|
|
113
113
|
},
|
|
114
114
|
setup(props) {
|
|
@@ -29,11 +29,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
29
29
|
};
|
|
30
30
|
class: {
|
|
31
31
|
type: PropType<any>;
|
|
32
|
-
default:
|
|
32
|
+
default: () => string;
|
|
33
33
|
};
|
|
34
34
|
ui: {
|
|
35
|
-
type: PropType<
|
|
36
|
-
default:
|
|
35
|
+
type: PropType<any>;
|
|
36
|
+
default: () => {};
|
|
37
37
|
};
|
|
38
38
|
}, {
|
|
39
39
|
ui: import("vue").ComputedRef<any>;
|
|
@@ -88,14 +88,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
88
88
|
};
|
|
89
89
|
class: {
|
|
90
90
|
type: PropType<any>;
|
|
91
|
-
default:
|
|
91
|
+
default: () => string;
|
|
92
92
|
};
|
|
93
93
|
ui: {
|
|
94
|
-
type: PropType<
|
|
95
|
-
default:
|
|
94
|
+
type: PropType<any>;
|
|
95
|
+
default: () => {};
|
|
96
96
|
};
|
|
97
97
|
}>>, {
|
|
98
|
-
ui:
|
|
98
|
+
ui: any;
|
|
99
99
|
popper: PopperOptions;
|
|
100
100
|
class: any;
|
|
101
101
|
disabled: boolean;
|
|
@@ -12,11 +12,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
12
12
|
};
|
|
13
13
|
class: {
|
|
14
14
|
type: PropType<any>;
|
|
15
|
-
default:
|
|
15
|
+
default: () => "";
|
|
16
16
|
};
|
|
17
17
|
ui: {
|
|
18
|
-
type: PropType<
|
|
19
|
-
default:
|
|
18
|
+
type: PropType<any>;
|
|
19
|
+
default: () => {};
|
|
20
20
|
};
|
|
21
21
|
}, {
|
|
22
22
|
ui: import("vue").ComputedRef<any>;
|
|
@@ -36,15 +36,15 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
36
36
|
};
|
|
37
37
|
class: {
|
|
38
38
|
type: PropType<any>;
|
|
39
|
-
default:
|
|
39
|
+
default: () => "";
|
|
40
40
|
};
|
|
41
41
|
ui: {
|
|
42
|
-
type: PropType<
|
|
43
|
-
default:
|
|
42
|
+
type: PropType<any>;
|
|
43
|
+
default: () => {};
|
|
44
44
|
};
|
|
45
45
|
}>>, {
|
|
46
46
|
size: KbdSize;
|
|
47
|
-
ui:
|
|
47
|
+
ui: any;
|
|
48
48
|
value: string;
|
|
49
49
|
class: any;
|
|
50
50
|
}, {}>;
|
|
@@ -36,11 +36,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
36
36
|
};
|
|
37
37
|
class: {
|
|
38
38
|
type: PropType<any>;
|
|
39
|
-
default:
|
|
39
|
+
default: () => "";
|
|
40
40
|
};
|
|
41
41
|
ui: {
|
|
42
|
-
type: PropType<
|
|
43
|
-
default:
|
|
42
|
+
type: PropType<any>;
|
|
43
|
+
default: () => {};
|
|
44
44
|
};
|
|
45
45
|
}, {
|
|
46
46
|
ui: import("vue").ComputedRef<any>;
|
|
@@ -93,15 +93,15 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
93
93
|
};
|
|
94
94
|
class: {
|
|
95
95
|
type: PropType<any>;
|
|
96
|
-
default:
|
|
96
|
+
default: () => "";
|
|
97
97
|
};
|
|
98
98
|
ui: {
|
|
99
|
-
type: PropType<
|
|
100
|
-
default:
|
|
99
|
+
type: PropType<any>;
|
|
100
|
+
default: () => {};
|
|
101
101
|
};
|
|
102
102
|
}>>, {
|
|
103
103
|
size: "sm" | "md" | "xs" | "2xs" | "lg" | "xl" | "2xl";
|
|
104
|
-
ui:
|
|
104
|
+
ui: any;
|
|
105
105
|
value: number;
|
|
106
106
|
icon: string;
|
|
107
107
|
color: any;
|
|
@@ -19,15 +19,15 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
19
19
|
};
|
|
20
20
|
icon: {
|
|
21
21
|
type: StringConstructor;
|
|
22
|
-
default:
|
|
22
|
+
default: () => any;
|
|
23
23
|
};
|
|
24
24
|
class: {
|
|
25
25
|
type: PropType<any>;
|
|
26
|
-
default:
|
|
26
|
+
default: () => "";
|
|
27
27
|
};
|
|
28
28
|
ui: {
|
|
29
|
-
type: PropType<
|
|
30
|
-
default:
|
|
29
|
+
type: PropType<any>;
|
|
30
|
+
default: () => {};
|
|
31
31
|
};
|
|
32
32
|
}, () => VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
33
33
|
[key: string]: any;
|
|
@@ -51,19 +51,19 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
51
51
|
};
|
|
52
52
|
icon: {
|
|
53
53
|
type: StringConstructor;
|
|
54
|
-
default:
|
|
54
|
+
default: () => any;
|
|
55
55
|
};
|
|
56
56
|
class: {
|
|
57
57
|
type: PropType<any>;
|
|
58
|
-
default:
|
|
58
|
+
default: () => "";
|
|
59
59
|
};
|
|
60
60
|
ui: {
|
|
61
|
-
type: PropType<
|
|
62
|
-
default:
|
|
61
|
+
type: PropType<any>;
|
|
62
|
+
default: () => {};
|
|
63
63
|
};
|
|
64
64
|
}>>, {
|
|
65
65
|
size: "sm" | "md" | "xs" | "2xs" | "lg" | "xl" | "2xl";
|
|
66
|
-
ui:
|
|
66
|
+
ui: any;
|
|
67
67
|
icon: string;
|
|
68
68
|
class: any;
|
|
69
69
|
max: number;
|