@nuxt/ui 2.19.2 → 2.21.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/README.md +2 -2
- package/dist/module.d.mts +2 -0
- package/dist/module.d.ts +2 -0
- package/dist/module.json +1 -1
- package/dist/module.mjs +16 -11
- package/dist/runtime/components/data/Table.vue +88 -38
- package/dist/runtime/components/data/Table.vue.d.ts +73 -61
- package/dist/runtime/components/elements/Accordion.vue +3 -1
- package/dist/runtime/components/elements/Accordion.vue.d.ts +25 -24
- package/dist/runtime/components/elements/Alert.vue +2 -2
- package/dist/runtime/components/elements/Alert.vue.d.ts +39 -39
- package/dist/runtime/components/elements/Avatar.vue +2 -2
- package/dist/runtime/components/elements/Avatar.vue.d.ts +3 -3
- package/dist/runtime/components/elements/AvatarGroup.d.ts +11 -9
- package/dist/runtime/components/elements/AvatarGroup.js +2 -2
- package/dist/runtime/components/elements/Badge.vue +71 -4
- package/dist/runtime/components/elements/Badge.vue.d.ts +131 -4
- package/dist/runtime/components/elements/Button.vue +2 -2
- package/dist/runtime/components/elements/Button.vue.d.ts +20 -20
- package/dist/runtime/components/elements/ButtonGroup.d.ts +15 -13
- package/dist/runtime/components/elements/ButtonGroup.js +2 -2
- package/dist/runtime/components/elements/Carousel.vue +1 -2
- package/dist/runtime/components/elements/Carousel.vue.d.ts +43 -41
- package/dist/runtime/components/elements/Chip.vue.d.ts +5 -5
- package/dist/runtime/components/elements/Dropdown.vue +2 -2
- 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/Link.vue +15 -4
- package/dist/runtime/components/elements/Link.vue.d.ts +30 -29
- package/dist/runtime/components/elements/Meter.vue.d.ts +3 -3
- package/dist/runtime/components/elements/MeterGroup.d.ts +20 -18
- package/dist/runtime/components/elements/MeterGroup.js +1 -1
- package/dist/runtime/components/elements/Progress.vue.d.ts +2 -2
- package/dist/runtime/components/forms/Checkbox.vue +2 -2
- package/dist/runtime/components/forms/Checkbox.vue.d.ts +2 -2
- package/dist/runtime/components/forms/Form.vue +6 -5
- package/dist/runtime/components/forms/FormGroup.vue.d.ts +2 -2
- package/dist/runtime/components/forms/Input.vue +2 -2
- package/dist/runtime/components/forms/Input.vue.d.ts +3 -3
- package/dist/runtime/components/forms/InputMenu.vue +37 -7
- package/dist/runtime/components/forms/InputMenu.vue.d.ts +13 -12
- package/dist/runtime/components/forms/Radio.vue +2 -2
- package/dist/runtime/components/forms/Radio.vue.d.ts +2 -2
- package/dist/runtime/components/forms/RadioGroup.vue +1 -1
- package/dist/runtime/components/forms/RadioGroup.vue.d.ts +4 -4
- package/dist/runtime/components/forms/Range.vue +2 -2
- package/dist/runtime/components/forms/Range.vue.d.ts +2 -2
- package/dist/runtime/components/forms/Select.vue +2 -2
- package/dist/runtime/components/forms/Select.vue.d.ts +3 -3
- package/dist/runtime/components/forms/SelectMenu.vue +48 -25
- package/dist/runtime/components/forms/SelectMenu.vue.d.ts +12 -11
- package/dist/runtime/components/forms/Textarea.vue +2 -2
- package/dist/runtime/components/forms/Textarea.vue.d.ts +3 -3
- package/dist/runtime/components/forms/Toggle.vue +2 -2
- package/dist/runtime/components/forms/Toggle.vue.d.ts +1 -1
- package/dist/runtime/components/layout/Card.vue +2 -2
- package/dist/runtime/components/layout/Card.vue.d.ts +1 -1
- package/dist/runtime/components/layout/Container.vue +2 -2
- package/dist/runtime/components/layout/Container.vue.d.ts +1 -1
- package/dist/runtime/components/layout/Divider.vue +2 -2
- package/dist/runtime/components/layout/Divider.vue.d.ts +19 -19
- package/dist/runtime/components/layout/Skeleton.vue +2 -2
- package/dist/runtime/components/layout/Skeleton.vue.d.ts +1 -1
- package/dist/runtime/components/navigation/Breadcrumb.vue +2 -2
- package/dist/runtime/components/navigation/Breadcrumb.vue.d.ts +3 -3
- package/dist/runtime/components/navigation/CommandPalette.vue.d.ts +26 -26
- package/dist/runtime/components/navigation/CommandPaletteGroup.vue.d.ts +3 -3
- package/dist/runtime/components/navigation/HorizontalNavigation.vue +2 -2
- package/dist/runtime/components/navigation/HorizontalNavigation.vue.d.ts +164 -22
- package/dist/runtime/components/navigation/Pagination.vue.d.ts +38 -38
- package/dist/runtime/components/navigation/Tabs.vue.d.ts +2 -2
- package/dist/runtime/components/navigation/VerticalNavigation.vue +2 -2
- package/dist/runtime/components/navigation/VerticalNavigation.vue.d.ts +186 -44
- package/dist/runtime/components/overlays/ContextMenu.vue +2 -2
- package/dist/runtime/components/overlays/ContextMenu.vue.d.ts +1 -1
- package/dist/runtime/components/overlays/Notification.vue +8 -4
- package/dist/runtime/components/overlays/Notification.vue.d.ts +50 -41
- package/dist/runtime/components/overlays/Notifications.vue +4 -4
- package/dist/runtime/components/overlays/Notifications.vue.d.ts +55 -46
- package/dist/runtime/components/overlays/Popover.vue.d.ts +1 -1
- package/dist/runtime/components/overlays/Tooltip.vue.d.ts +2 -2
- package/dist/runtime/types/checkbox.d.ts +3 -0
- package/dist/runtime/types/divider.d.ts +1 -1
- package/dist/runtime/types/index.d.ts +1 -0
- package/dist/runtime/types/index.js +1 -0
- package/dist/runtime/types/link.d.ts +1 -1
- package/dist/runtime/types/utils.d.ts +1 -1
- package/dist/runtime/ui.config/data/table.d.ts +9 -8
- 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/badge.d.ts +15 -0
- package/dist/runtime/ui.config/elements/badge.js +15 -0
- package/dist/runtime/ui.config/elements/carousel.d.ts +3 -2
- package/dist/runtime/ui.config/elements/dropdown.d.ts +2 -1
- package/dist/runtime/ui.config/forms/inputMenu.d.ts +2 -1
- package/dist/runtime/ui.config/forms/selectMenu.d.ts +1 -1
- package/dist/runtime/ui.config/layout/divider.d.ts +4 -3
- package/dist/runtime/ui.config/navigation/commandPalette.d.ts +2 -1
- package/dist/runtime/ui.config/navigation/horizontalNavigation.d.ts +5 -4
- package/dist/runtime/ui.config/navigation/pagination.d.ts +7 -6
- package/dist/runtime/ui.config/navigation/verticalNavigation.d.ts +5 -4
- package/dist/runtime/ui.config/overlays/notification.d.ts +6 -5
- package/dist/runtime/utils/index.d.ts +1 -0
- package/dist/runtime/utils/index.js +4 -3
- package/package.json +28 -25
|
@@ -10,6 +10,12 @@ declare const config: {
|
|
|
10
10
|
md: string;
|
|
11
11
|
lg: string;
|
|
12
12
|
};
|
|
13
|
+
gap: {
|
|
14
|
+
xs: string;
|
|
15
|
+
sm: string;
|
|
16
|
+
md: string;
|
|
17
|
+
lg: string;
|
|
18
|
+
};
|
|
13
19
|
color: {
|
|
14
20
|
white: {
|
|
15
21
|
solid: string;
|
|
@@ -27,6 +33,15 @@ declare const config: {
|
|
|
27
33
|
soft: string;
|
|
28
34
|
subtle: string;
|
|
29
35
|
};
|
|
36
|
+
icon: {
|
|
37
|
+
base: string;
|
|
38
|
+
size: {
|
|
39
|
+
xs: string;
|
|
40
|
+
sm: string;
|
|
41
|
+
md: string;
|
|
42
|
+
lg: string;
|
|
43
|
+
};
|
|
44
|
+
};
|
|
30
45
|
default: {
|
|
31
46
|
size: string;
|
|
32
47
|
variant: string;
|
|
@@ -53,6 +68,26 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
53
68
|
type: (StringConstructor | NumberConstructor)[];
|
|
54
69
|
default: any;
|
|
55
70
|
};
|
|
71
|
+
icon: {
|
|
72
|
+
type: StringConstructor;
|
|
73
|
+
default: any;
|
|
74
|
+
};
|
|
75
|
+
leadingIcon: {
|
|
76
|
+
type: StringConstructor;
|
|
77
|
+
default: any;
|
|
78
|
+
};
|
|
79
|
+
trailingIcon: {
|
|
80
|
+
type: StringConstructor;
|
|
81
|
+
default: any;
|
|
82
|
+
};
|
|
83
|
+
trailing: {
|
|
84
|
+
type: BooleanConstructor;
|
|
85
|
+
default: boolean;
|
|
86
|
+
};
|
|
87
|
+
leading: {
|
|
88
|
+
type: BooleanConstructor;
|
|
89
|
+
default: boolean;
|
|
90
|
+
};
|
|
56
91
|
class: {
|
|
57
92
|
type: PropType<any>;
|
|
58
93
|
default: () => "";
|
|
@@ -67,7 +102,13 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
67
102
|
attrs: import("vue").ComputedRef<Pick<{
|
|
68
103
|
[x: string]: unknown;
|
|
69
104
|
}, string>>;
|
|
105
|
+
isLeading: import("vue").ComputedRef<string | true>;
|
|
106
|
+
isTrailing: import("vue").ComputedRef<string | true>;
|
|
70
107
|
badgeClass: import("vue").ComputedRef<string>;
|
|
108
|
+
leadingIconName: import("vue").ComputedRef<string>;
|
|
109
|
+
trailingIconName: import("vue").ComputedRef<string>;
|
|
110
|
+
leadingIconClass: import("vue").ComputedRef<string>;
|
|
111
|
+
trailingIconClass: import("vue").ComputedRef<string>;
|
|
71
112
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
72
113
|
size: {
|
|
73
114
|
type: PropType<BadgeSize>;
|
|
@@ -88,6 +129,26 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
88
129
|
type: (StringConstructor | NumberConstructor)[];
|
|
89
130
|
default: any;
|
|
90
131
|
};
|
|
132
|
+
icon: {
|
|
133
|
+
type: StringConstructor;
|
|
134
|
+
default: any;
|
|
135
|
+
};
|
|
136
|
+
leadingIcon: {
|
|
137
|
+
type: StringConstructor;
|
|
138
|
+
default: any;
|
|
139
|
+
};
|
|
140
|
+
trailingIcon: {
|
|
141
|
+
type: StringConstructor;
|
|
142
|
+
default: any;
|
|
143
|
+
};
|
|
144
|
+
trailing: {
|
|
145
|
+
type: BooleanConstructor;
|
|
146
|
+
default: boolean;
|
|
147
|
+
};
|
|
148
|
+
leading: {
|
|
149
|
+
type: BooleanConstructor;
|
|
150
|
+
default: boolean;
|
|
151
|
+
};
|
|
91
152
|
class: {
|
|
92
153
|
type: PropType<any>;
|
|
93
154
|
default: () => "";
|
|
@@ -101,9 +162,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
101
162
|
}>> & Readonly<{}>, {
|
|
102
163
|
size: BadgeSize;
|
|
103
164
|
class: any;
|
|
104
|
-
color: BadgeColor;
|
|
105
|
-
variant: BadgeVariant;
|
|
106
|
-
label: string | number;
|
|
107
165
|
ui: {
|
|
108
166
|
base?: string;
|
|
109
167
|
rounded?: string;
|
|
@@ -114,6 +172,12 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
114
172
|
md: string;
|
|
115
173
|
lg: string;
|
|
116
174
|
}, any>;
|
|
175
|
+
gap?: DeepPartial<{
|
|
176
|
+
xs: string;
|
|
177
|
+
sm: string;
|
|
178
|
+
md: string;
|
|
179
|
+
lg: string;
|
|
180
|
+
}, any>;
|
|
117
181
|
color?: DeepPartial<{
|
|
118
182
|
white: {
|
|
119
183
|
solid: string;
|
|
@@ -131,6 +195,15 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
131
195
|
soft: string;
|
|
132
196
|
subtle: string;
|
|
133
197
|
}, any>;
|
|
198
|
+
icon?: DeepPartial<{
|
|
199
|
+
base: string;
|
|
200
|
+
size: {
|
|
201
|
+
xs: string;
|
|
202
|
+
sm: string;
|
|
203
|
+
md: string;
|
|
204
|
+
lg: string;
|
|
205
|
+
};
|
|
206
|
+
}, any>;
|
|
134
207
|
default?: DeepPartial<{
|
|
135
208
|
size: string;
|
|
136
209
|
variant: string;
|
|
@@ -141,5 +214,59 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
141
214
|
} & {
|
|
142
215
|
strategy?: Strategy;
|
|
143
216
|
};
|
|
144
|
-
|
|
217
|
+
color: BadgeColor;
|
|
218
|
+
variant: BadgeVariant;
|
|
219
|
+
leading: boolean;
|
|
220
|
+
label: string | number;
|
|
221
|
+
icon: string;
|
|
222
|
+
leadingIcon: string;
|
|
223
|
+
trailingIcon: string;
|
|
224
|
+
trailing: boolean;
|
|
225
|
+
}, {}, {
|
|
226
|
+
UIcon: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
227
|
+
name: {
|
|
228
|
+
type: StringConstructor;
|
|
229
|
+
required: true;
|
|
230
|
+
};
|
|
231
|
+
mode: {
|
|
232
|
+
type: PropType<"svg" | "css">;
|
|
233
|
+
required: false;
|
|
234
|
+
default: any;
|
|
235
|
+
};
|
|
236
|
+
size: {
|
|
237
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
238
|
+
required: false;
|
|
239
|
+
default: any;
|
|
240
|
+
};
|
|
241
|
+
customize: {
|
|
242
|
+
type: FunctionConstructor;
|
|
243
|
+
required: false;
|
|
244
|
+
default: any;
|
|
245
|
+
};
|
|
246
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
247
|
+
name: {
|
|
248
|
+
type: StringConstructor;
|
|
249
|
+
required: true;
|
|
250
|
+
};
|
|
251
|
+
mode: {
|
|
252
|
+
type: PropType<"svg" | "css">;
|
|
253
|
+
required: false;
|
|
254
|
+
default: any;
|
|
255
|
+
};
|
|
256
|
+
size: {
|
|
257
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
258
|
+
required: false;
|
|
259
|
+
default: any;
|
|
260
|
+
};
|
|
261
|
+
customize: {
|
|
262
|
+
type: FunctionConstructor;
|
|
263
|
+
required: false;
|
|
264
|
+
default: any;
|
|
265
|
+
};
|
|
266
|
+
}>> & Readonly<{}>, {
|
|
267
|
+
mode: "svg" | "css";
|
|
268
|
+
size: string | number;
|
|
269
|
+
customize: Function;
|
|
270
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
271
|
+
}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
145
272
|
export default _default;
|
|
@@ -18,11 +18,11 @@
|
|
|
18
18
|
|
|
19
19
|
<script>
|
|
20
20
|
import { computed, defineComponent, toRef } from "vue";
|
|
21
|
-
import {
|
|
21
|
+
import { twJoin } from "tailwind-merge";
|
|
22
22
|
import UIcon from "../elements/Icon.vue";
|
|
23
23
|
import ULink from "../elements/Link.vue";
|
|
24
24
|
import { useUI } from "../../composables/useUI";
|
|
25
|
-
import { mergeConfig, nuxtLinkProps,
|
|
25
|
+
import { getNuxtLinkProps, mergeConfig, nuxtLinkProps, twMerge } from "../../utils";
|
|
26
26
|
import { useInjectButtonGroup } from "../../composables/useButtonGroup";
|
|
27
27
|
import appConfig from "#build/app.config";
|
|
28
28
|
import { button } from "#ui/ui.config";
|
|
@@ -473,23 +473,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
473
473
|
class: any;
|
|
474
474
|
to: string | import("vue-router").RouteLocationAsRelativeGeneric | import("vue-router").RouteLocationAsPathGeneric;
|
|
475
475
|
disabled: boolean;
|
|
476
|
-
truncate: boolean;
|
|
477
|
-
target: "_blank" | "_parent" | "_self" | "_top" | (string & {});
|
|
478
|
-
activeClass: string;
|
|
479
|
-
exactActiveClass: string;
|
|
480
|
-
ariaCurrentValue: "page" | "step" | "location" | "date" | "time" | "true" | "false";
|
|
481
|
-
replace: boolean;
|
|
482
|
-
noRel: boolean;
|
|
483
|
-
prefetch: boolean;
|
|
484
|
-
noPrefetch: boolean;
|
|
485
|
-
prefetchedClass: string;
|
|
486
|
-
external: boolean;
|
|
487
|
-
leading: boolean;
|
|
488
|
-
color: ButtonColor;
|
|
489
|
-
variant: ButtonVariant;
|
|
490
|
-
href: string | import("vue-router").RouteLocationAsRelativeGeneric | import("vue-router").RouteLocationAsPathGeneric;
|
|
491
|
-
rel: any;
|
|
492
|
-
label: string;
|
|
493
476
|
ui: {
|
|
494
477
|
base?: string;
|
|
495
478
|
font?: string;
|
|
@@ -574,6 +557,23 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
574
557
|
} & {
|
|
575
558
|
strategy?: Strategy;
|
|
576
559
|
};
|
|
560
|
+
color: ButtonColor;
|
|
561
|
+
variant: ButtonVariant;
|
|
562
|
+
truncate: boolean;
|
|
563
|
+
target: "_blank" | "_parent" | "_self" | "_top" | (string & {});
|
|
564
|
+
activeClass: string;
|
|
565
|
+
exactActiveClass: string;
|
|
566
|
+
ariaCurrentValue: "page" | "step" | "location" | "date" | "time" | "true" | "false";
|
|
567
|
+
replace: boolean;
|
|
568
|
+
noRel: boolean;
|
|
569
|
+
prefetch: boolean;
|
|
570
|
+
noPrefetch: boolean;
|
|
571
|
+
prefetchedClass: string;
|
|
572
|
+
external: boolean;
|
|
573
|
+
leading: boolean;
|
|
574
|
+
href: string | import("vue-router").RouteLocationAsRelativeGeneric | import("vue-router").RouteLocationAsPathGeneric;
|
|
575
|
+
rel: any;
|
|
576
|
+
label: string;
|
|
577
577
|
icon: string;
|
|
578
578
|
block: boolean;
|
|
579
579
|
square: boolean;
|
|
@@ -651,7 +651,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
651
651
|
default: boolean;
|
|
652
652
|
};
|
|
653
653
|
exactQuery: {
|
|
654
|
-
type:
|
|
654
|
+
type: PropType<boolean | "partial">;
|
|
655
655
|
default: boolean;
|
|
656
656
|
};
|
|
657
657
|
exactHash: {
|
|
@@ -754,7 +754,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
754
754
|
default: boolean;
|
|
755
755
|
};
|
|
756
756
|
exactQuery: {
|
|
757
|
-
type:
|
|
757
|
+
type: PropType<boolean | "partial">;
|
|
758
758
|
default: boolean;
|
|
759
759
|
};
|
|
760
760
|
exactHash: {
|
|
@@ -847,7 +847,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
847
847
|
as: string;
|
|
848
848
|
active: boolean;
|
|
849
849
|
exact: boolean;
|
|
850
|
-
exactQuery: boolean;
|
|
850
|
+
exactQuery: boolean | "partial";
|
|
851
851
|
exactHash: boolean;
|
|
852
852
|
inactiveClass: string;
|
|
853
853
|
href: string | import("vue-router").RouteLocationAsRelativeGeneric | import("vue-router").RouteLocationAsPathGeneric;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { PropType } from 'vue';
|
|
2
|
-
import type { ButtonSize, Strategy } from '../../types/index.js';
|
|
2
|
+
import type { ButtonSize, DeepPartial, Strategy } from '../../types/index.js';
|
|
3
3
|
declare const buttonGroupConfig: {
|
|
4
4
|
wrapper: {
|
|
5
5
|
horizontal: string;
|
|
@@ -116,7 +116,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
116
116
|
default: () => "";
|
|
117
117
|
};
|
|
118
118
|
ui: {
|
|
119
|
-
type: PropType<
|
|
119
|
+
type: PropType<DeepPartial<typeof buttonGroupConfig> & {
|
|
120
120
|
strategy?: Strategy;
|
|
121
121
|
}>;
|
|
122
122
|
default: () => {};
|
|
@@ -139,22 +139,20 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
139
139
|
default: () => "";
|
|
140
140
|
};
|
|
141
141
|
ui: {
|
|
142
|
-
type: PropType<
|
|
142
|
+
type: PropType<DeepPartial<typeof buttonGroupConfig> & {
|
|
143
143
|
strategy?: Strategy;
|
|
144
144
|
}>;
|
|
145
145
|
default: () => {};
|
|
146
146
|
};
|
|
147
147
|
}>> & Readonly<{}>, {
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
ui: Partial<{
|
|
151
|
-
wrapper: {
|
|
148
|
+
ui: {
|
|
149
|
+
wrapper?: DeepPartial<{
|
|
152
150
|
horizontal: string;
|
|
153
151
|
vertical: string;
|
|
154
|
-
}
|
|
155
|
-
rounded
|
|
156
|
-
shadow
|
|
157
|
-
orientation
|
|
152
|
+
}, any>;
|
|
153
|
+
rounded?: string;
|
|
154
|
+
shadow?: string;
|
|
155
|
+
orientation?: DeepPartial<{
|
|
158
156
|
'rounded-none': {
|
|
159
157
|
horizontal: {
|
|
160
158
|
start: string;
|
|
@@ -245,10 +243,14 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
245
243
|
end: string;
|
|
246
244
|
};
|
|
247
245
|
};
|
|
248
|
-
}
|
|
249
|
-
}
|
|
246
|
+
}, any>;
|
|
247
|
+
} & {
|
|
248
|
+
[key: string]: any;
|
|
249
|
+
} & {
|
|
250
250
|
strategy?: Strategy;
|
|
251
251
|
};
|
|
252
|
+
size: ButtonSize;
|
|
253
|
+
orientation: "horizontal" | "vertical";
|
|
252
254
|
class: any;
|
|
253
255
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
254
256
|
export default _default;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { h, computed, toRef, defineComponent } from "vue";
|
|
2
|
-
import {
|
|
2
|
+
import { twJoin } from "tailwind-merge";
|
|
3
3
|
import { useUI } from "../../composables/useUI.js";
|
|
4
|
-
import { mergeConfig,
|
|
4
|
+
import { getSlotsChildren, mergeConfig, twMerge } from "../../utils/index.js";
|
|
5
5
|
import { useProvideButtonGroup } from "../../composables/useButtonGroup.js";
|
|
6
6
|
import appConfig from "#build/app.config";
|
|
7
7
|
import { button, buttonGroup } from "#ui/ui.config";
|
|
@@ -57,9 +57,8 @@
|
|
|
57
57
|
|
|
58
58
|
<script>
|
|
59
59
|
import { ref, toRef, computed, defineComponent } from "vue";
|
|
60
|
-
import { twMerge } from "tailwind-merge";
|
|
61
60
|
import { useScroll, useResizeObserver, useElementSize } from "@vueuse/core";
|
|
62
|
-
import { mergeConfig } from "../../utils";
|
|
61
|
+
import { mergeConfig, twMerge } from "../../utils";
|
|
63
62
|
import UButton from "../elements/Button.vue";
|
|
64
63
|
import { useUI } from "../../composables/useUI";
|
|
65
64
|
import { useCarouselScroll } from "../../composables/useCarouselScroll";
|
|
@@ -15,12 +15,12 @@ declare const config: {
|
|
|
15
15
|
};
|
|
16
16
|
default: {
|
|
17
17
|
prevButton: {
|
|
18
|
-
color: "
|
|
18
|
+
color: import("../../types/button").ButtonColor;
|
|
19
19
|
class: string;
|
|
20
20
|
icon: string;
|
|
21
21
|
};
|
|
22
22
|
nextButton: {
|
|
23
|
-
color: "
|
|
23
|
+
color: import("../../types/button").ButtonColor;
|
|
24
24
|
class: string;
|
|
25
25
|
icon: string;
|
|
26
26
|
};
|
|
@@ -64,9 +64,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
64
64
|
default: () => string;
|
|
65
65
|
};
|
|
66
66
|
ui: {
|
|
67
|
-
type: PropType<DeepPartial<typeof config & {
|
|
67
|
+
type: PropType<DeepPartial<typeof config> & {
|
|
68
68
|
strategy?: Strategy;
|
|
69
|
-
}
|
|
69
|
+
}>;
|
|
70
70
|
default: any;
|
|
71
71
|
};
|
|
72
72
|
}>, {
|
|
@@ -85,12 +85,12 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
85
85
|
};
|
|
86
86
|
default: {
|
|
87
87
|
prevButton: {
|
|
88
|
-
color: "
|
|
88
|
+
color: import("../../types/button").ButtonColor;
|
|
89
89
|
class: string;
|
|
90
90
|
icon: string;
|
|
91
91
|
};
|
|
92
92
|
nextButton: {
|
|
93
|
-
color: "
|
|
93
|
+
color: import("../../types/button").ButtonColor;
|
|
94
94
|
class: string;
|
|
95
95
|
icon: string;
|
|
96
96
|
};
|
|
@@ -146,41 +146,43 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
146
146
|
default: () => string;
|
|
147
147
|
};
|
|
148
148
|
ui: {
|
|
149
|
-
type: PropType<DeepPartial<typeof config & {
|
|
149
|
+
type: PropType<DeepPartial<typeof config> & {
|
|
150
150
|
strategy?: Strategy;
|
|
151
|
-
}
|
|
151
|
+
}>;
|
|
152
152
|
default: any;
|
|
153
153
|
};
|
|
154
154
|
}>> & Readonly<{}>, {
|
|
155
155
|
class: any;
|
|
156
|
-
ui:
|
|
157
|
-
wrapper
|
|
158
|
-
container
|
|
159
|
-
item
|
|
160
|
-
arrows
|
|
156
|
+
ui: {
|
|
157
|
+
wrapper?: string;
|
|
158
|
+
container?: string;
|
|
159
|
+
item?: string;
|
|
160
|
+
arrows?: DeepPartial<{
|
|
161
161
|
wrapper: string;
|
|
162
|
-
}
|
|
163
|
-
indicators
|
|
162
|
+
}, any>;
|
|
163
|
+
indicators?: DeepPartial<{
|
|
164
164
|
wrapper: string;
|
|
165
165
|
base: string;
|
|
166
166
|
active: string;
|
|
167
167
|
inactive: string;
|
|
168
|
-
}
|
|
169
|
-
default
|
|
168
|
+
}, any>;
|
|
169
|
+
default?: DeepPartial<{
|
|
170
170
|
prevButton: {
|
|
171
|
-
color: "
|
|
171
|
+
color: import("../../types/button").ButtonColor;
|
|
172
172
|
class: string;
|
|
173
173
|
icon: string;
|
|
174
174
|
};
|
|
175
175
|
nextButton: {
|
|
176
|
-
color: "
|
|
176
|
+
color: import("../../types/button").ButtonColor;
|
|
177
177
|
class: string;
|
|
178
178
|
icon: string;
|
|
179
179
|
};
|
|
180
|
-
}
|
|
180
|
+
}, any>;
|
|
181
|
+
} & {
|
|
182
|
+
[key: string]: any;
|
|
181
183
|
} & {
|
|
182
184
|
strategy?: Strategy;
|
|
183
|
-
}
|
|
185
|
+
};
|
|
184
186
|
items: any[];
|
|
185
187
|
arrows: boolean;
|
|
186
188
|
indicators: boolean;
|
|
@@ -743,23 +745,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
743
745
|
class: any;
|
|
744
746
|
to: string | import("vue-router").RouteLocationAsRelativeGeneric | import("vue-router").RouteLocationAsPathGeneric;
|
|
745
747
|
disabled: boolean;
|
|
746
|
-
truncate: boolean;
|
|
747
|
-
target: "_blank" | "_parent" | "_self" | "_top" | (string & {});
|
|
748
|
-
activeClass: string;
|
|
749
|
-
exactActiveClass: string;
|
|
750
|
-
ariaCurrentValue: "page" | "step" | "location" | "date" | "time" | "true" | "false";
|
|
751
|
-
replace: boolean;
|
|
752
|
-
noRel: boolean;
|
|
753
|
-
prefetch: boolean;
|
|
754
|
-
noPrefetch: boolean;
|
|
755
|
-
prefetchedClass: string;
|
|
756
|
-
external: boolean;
|
|
757
|
-
leading: boolean;
|
|
758
|
-
color: import("../../types/button").ButtonColor;
|
|
759
|
-
variant: import("../../types/button").ButtonVariant;
|
|
760
|
-
href: string | import("vue-router").RouteLocationAsRelativeGeneric | import("vue-router").RouteLocationAsPathGeneric;
|
|
761
|
-
rel: any;
|
|
762
|
-
label: string;
|
|
763
748
|
ui: {
|
|
764
749
|
base?: string;
|
|
765
750
|
font?: string;
|
|
@@ -844,6 +829,23 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
844
829
|
} & {
|
|
845
830
|
strategy?: Strategy;
|
|
846
831
|
};
|
|
832
|
+
color: import("../../types/button").ButtonColor;
|
|
833
|
+
variant: import("../../types/button").ButtonVariant;
|
|
834
|
+
truncate: boolean;
|
|
835
|
+
target: "_blank" | "_parent" | "_self" | "_top" | (string & {});
|
|
836
|
+
activeClass: string;
|
|
837
|
+
exactActiveClass: string;
|
|
838
|
+
ariaCurrentValue: "page" | "step" | "location" | "date" | "time" | "true" | "false";
|
|
839
|
+
replace: boolean;
|
|
840
|
+
noRel: boolean;
|
|
841
|
+
prefetch: boolean;
|
|
842
|
+
noPrefetch: boolean;
|
|
843
|
+
prefetchedClass: string;
|
|
844
|
+
external: boolean;
|
|
845
|
+
leading: boolean;
|
|
846
|
+
href: string | import("vue-router").RouteLocationAsRelativeGeneric | import("vue-router").RouteLocationAsPathGeneric;
|
|
847
|
+
rel: any;
|
|
848
|
+
label: string;
|
|
847
849
|
icon: string;
|
|
848
850
|
block: boolean;
|
|
849
851
|
square: boolean;
|
|
@@ -921,7 +923,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
921
923
|
default: boolean;
|
|
922
924
|
};
|
|
923
925
|
exactQuery: {
|
|
924
|
-
type:
|
|
926
|
+
type: PropType<boolean | "partial">;
|
|
925
927
|
default: boolean;
|
|
926
928
|
};
|
|
927
929
|
exactHash: {
|
|
@@ -1024,7 +1026,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
1024
1026
|
default: boolean;
|
|
1025
1027
|
};
|
|
1026
1028
|
exactQuery: {
|
|
1027
|
-
type:
|
|
1029
|
+
type: PropType<boolean | "partial">;
|
|
1028
1030
|
default: boolean;
|
|
1029
1031
|
};
|
|
1030
1032
|
exactHash: {
|
|
@@ -1117,7 +1119,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
1117
1119
|
as: string;
|
|
1118
1120
|
active: boolean;
|
|
1119
1121
|
exact: boolean;
|
|
1120
|
-
exactQuery: boolean;
|
|
1122
|
+
exactQuery: boolean | "partial";
|
|
1121
1123
|
exactHash: boolean;
|
|
1122
1124
|
inactiveClass: string;
|
|
1123
1125
|
href: string | import("vue-router").RouteLocationAsRelativeGeneric | import("vue-router").RouteLocationAsPathGeneric;
|
|
@@ -150,12 +150,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
150
150
|
default: () => {};
|
|
151
151
|
};
|
|
152
152
|
}>> & Readonly<{}>, {
|
|
153
|
-
size: "
|
|
153
|
+
size: "sm" | "xs" | "2xs" | "md" | "lg" | "xl" | "3xs" | "2xl" | "3xl";
|
|
154
154
|
class: any;
|
|
155
|
-
inset: boolean;
|
|
156
|
-
position: "top-right" | "bottom-right" | "top-left" | "bottom-left";
|
|
157
|
-
color: ChipColor;
|
|
158
|
-
text: string | number;
|
|
159
155
|
ui: {
|
|
160
156
|
wrapper?: string;
|
|
161
157
|
base?: string;
|
|
@@ -194,6 +190,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
194
190
|
} & {
|
|
195
191
|
strategy?: Strategy;
|
|
196
192
|
};
|
|
193
|
+
color: ChipColor;
|
|
194
|
+
inset: boolean;
|
|
195
|
+
position: "top-right" | "bottom-right" | "top-left" | "bottom-left";
|
|
196
|
+
text: string | number;
|
|
197
197
|
show: boolean;
|
|
198
198
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
199
199
|
export default _default;
|
|
@@ -59,13 +59,13 @@
|
|
|
59
59
|
import { defineComponent, ref, computed, watch, toRef, onMounted, resolveComponent } from "vue";
|
|
60
60
|
import { Menu as HMenu, MenuButton as HMenuButton, MenuItems as HMenuItems, MenuItem as HMenuItem, provideUseId } from "@headlessui/vue";
|
|
61
61
|
import { defu } from "defu";
|
|
62
|
-
import {
|
|
62
|
+
import { twJoin } from "tailwind-merge";
|
|
63
63
|
import UIcon from "../elements/Icon.vue";
|
|
64
64
|
import UAvatar from "../elements/Avatar.vue";
|
|
65
65
|
import UKbd from "../elements/Kbd.vue";
|
|
66
66
|
import { useUI } from "../../composables/useUI";
|
|
67
67
|
import { usePopper } from "../../composables/usePopper";
|
|
68
|
-
import { mergeConfig,
|
|
68
|
+
import { getNuxtLinkProps, mergeConfig, twMerge } from "../../utils";
|
|
69
69
|
import appConfig from "#build/app.config";
|
|
70
70
|
import { dropdown } from "#ui/ui.config";
|
|
71
71
|
import { useId } from "#imports";
|
|
@@ -29,7 +29,7 @@ declare const config: {
|
|
|
29
29
|
};
|
|
30
30
|
avatar: {
|
|
31
31
|
base: string;
|
|
32
|
-
size: "
|
|
32
|
+
size: import("../../types/avatar").AvatarSize;
|
|
33
33
|
};
|
|
34
34
|
label: string;
|
|
35
35
|
shortcuts: string;
|
|
@@ -128,7 +128,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
128
128
|
};
|
|
129
129
|
avatar: {
|
|
130
130
|
base: string;
|
|
131
|
-
size: "
|
|
131
|
+
size: import("../../types/avatar").AvatarSize;
|
|
132
132
|
};
|
|
133
133
|
label: string;
|
|
134
134
|
shortcuts: string;
|
|
@@ -244,7 +244,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
244
244
|
mode: "click" | "hover";
|
|
245
245
|
class: any;
|
|
246
246
|
disabled: boolean;
|
|
247
|
-
popper: PopperOptions;
|
|
248
247
|
ui: {
|
|
249
248
|
wrapper?: string;
|
|
250
249
|
container?: string;
|
|
@@ -273,7 +272,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
273
272
|
};
|
|
274
273
|
avatar: {
|
|
275
274
|
base: string;
|
|
276
|
-
size: "
|
|
275
|
+
size: import("../../types/avatar").AvatarSize;
|
|
277
276
|
};
|
|
278
277
|
label: string;
|
|
279
278
|
shortcuts: string;
|
|
@@ -307,6 +306,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
307
306
|
} & {
|
|
308
307
|
strategy?: Strategy;
|
|
309
308
|
};
|
|
309
|
+
popper: PopperOptions;
|
|
310
310
|
open: boolean;
|
|
311
311
|
items: DropdownItem[][];
|
|
312
312
|
openDelay: number;
|
|
@@ -786,9 +786,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
786
786
|
}>> & Readonly<{}>, {
|
|
787
787
|
size: import("../../types/avatar").AvatarSize;
|
|
788
788
|
class: any;
|
|
789
|
-
as: string | Record<string, any>;
|
|
790
|
-
text: string;
|
|
791
|
-
alt: string;
|
|
792
789
|
ui: {
|
|
793
790
|
wrapper?: string;
|
|
794
791
|
background?: string;
|
|
@@ -852,6 +849,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
852
849
|
} & {
|
|
853
850
|
strategy?: Strategy;
|
|
854
851
|
};
|
|
852
|
+
as: string | Record<string, any>;
|
|
853
|
+
text: string;
|
|
854
|
+
alt: string;
|
|
855
855
|
icon: string;
|
|
856
856
|
src: string | boolean;
|
|
857
857
|
chipColor: import("../../types/avatar").AvatarChipColor;
|
|
@@ -6,9 +6,9 @@
|
|
|
6
6
|
|
|
7
7
|
<script>
|
|
8
8
|
import { toRef, defineComponent, computed } from "vue";
|
|
9
|
-
import {
|
|
9
|
+
import { twJoin } from "tailwind-merge";
|
|
10
10
|
import { useUI } from "../../composables/useUI";
|
|
11
|
-
import { mergeConfig } from "../../utils";
|
|
11
|
+
import { mergeConfig, twMerge } from "../../utils";
|
|
12
12
|
import appConfig from "#build/app.config";
|
|
13
13
|
import { kbd } from "#ui/ui.config";
|
|
14
14
|
const config = mergeConfig(appConfig.ui.strategy, appConfig.ui.kbd, kbd);
|