@nuxt/ui 2.17.0 → 2.18.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/dist/module.d.mts +3 -1988
- package/dist/module.d.ts +3 -1988
- package/dist/module.json +6 -2
- package/dist/module.mjs +6 -71
- package/dist/runtime/components/data/Table.vue +54 -19
- package/dist/runtime/components/data/Table.vue.d.ts +247 -48
- package/dist/runtime/components/elements/Accordion.vue +1 -2
- package/dist/runtime/components/elements/Accordion.vue.d.ts +140 -14
- package/dist/runtime/components/elements/Alert.vue +2 -4
- package/dist/runtime/components/elements/Alert.vue.d.ts +107 -24
- package/dist/runtime/components/elements/Avatar.vue +1 -1
- package/dist/runtime/components/elements/Avatar.vue.d.ts +153 -32
- package/dist/runtime/components/elements/AvatarGroup.d.ts +17 -8
- package/dist/runtime/components/elements/{AvatarGroup.mjs → AvatarGroup.js} +2 -2
- package/dist/runtime/components/elements/Badge.vue.d.ts +55 -18
- package/dist/runtime/components/elements/Button.vue +1 -2
- package/dist/runtime/components/elements/Button.vue.d.ts +259 -96
- package/dist/runtime/components/elements/ButtonGroup.d.ts +110 -6
- package/dist/runtime/components/elements/{ButtonGroup.mjs → ButtonGroup.js} +3 -3
- package/dist/runtime/components/elements/Carousel.vue.d.ts +75 -20
- package/dist/runtime/components/elements/Chip.vue.d.ts +97 -25
- package/dist/runtime/components/elements/Dropdown.vue +4 -9
- package/dist/runtime/components/elements/Dropdown.vue.d.ts +135 -16
- package/dist/runtime/components/elements/Kbd.vue.d.ts +45 -10
- package/dist/runtime/components/elements/Link.vue.d.ts +73 -73
- package/dist/runtime/components/elements/Meter.vue +1 -1
- package/dist/runtime/components/elements/Meter.vue.d.ts +178 -22
- package/dist/runtime/components/elements/MeterGroup.d.ts +70 -13
- package/dist/runtime/components/elements/{MeterGroup.mjs → MeterGroup.js} +3 -3
- package/dist/runtime/components/elements/Progress.vue +7 -2
- package/dist/runtime/components/elements/Progress.vue.d.ts +187 -31
- package/dist/runtime/components/forms/Checkbox.vue +5 -3
- package/dist/runtime/components/forms/Checkbox.vue.d.ts +76 -35
- package/dist/runtime/components/forms/Form.vue +1 -2
- package/dist/runtime/components/forms/Form.vue.d.ts +12 -11
- package/dist/runtime/components/forms/FormGroup.vue +1 -1
- package/dist/runtime/components/forms/FormGroup.vue.d.ts +80 -27
- package/dist/runtime/components/forms/Input.vue +2 -2
- package/dist/runtime/components/forms/Input.vue.d.ts +276 -59
- package/dist/runtime/components/forms/InputMenu.vue +12 -10
- package/dist/runtime/components/forms/InputMenu.vue.d.ts +434 -84
- package/dist/runtime/components/forms/Radio.vue +5 -3
- package/dist/runtime/components/forms/Radio.vue.d.ts +74 -35
- package/dist/runtime/components/forms/RadioGroup.vue +11 -3
- package/dist/runtime/components/forms/RadioGroup.vue.d.ts +85 -27
- package/dist/runtime/components/forms/Range.vue.d.ts +155 -26
- package/dist/runtime/components/forms/Select.vue +2 -2
- package/dist/runtime/components/forms/Select.vue.d.ts +273 -50
- package/dist/runtime/components/forms/SelectMenu.vue +50 -25
- package/dist/runtime/components/forms/SelectMenu.vue.d.ts +451 -86
- package/dist/runtime/components/forms/Textarea.vue.d.ts +263 -48
- package/dist/runtime/components/forms/Toggle.vue +1 -1
- package/dist/runtime/components/forms/Toggle.vue.d.ts +153 -26
- package/dist/runtime/components/layout/Card.vue.d.ts +55 -5
- package/dist/runtime/components/layout/Container.vue.d.ts +19 -5
- package/dist/runtime/components/layout/Divider.vue +1 -2
- package/dist/runtime/components/layout/Divider.vue.d.ts +121 -16
- package/dist/runtime/components/layout/Skeleton.vue +5 -1
- package/dist/runtime/components/layout/Skeleton.vue.d.ts +27 -4
- package/dist/runtime/components/navigation/Breadcrumb.vue +1 -2
- package/dist/runtime/components/navigation/Breadcrumb.vue.d.ts +52 -9
- package/dist/runtime/components/navigation/CommandPalette.vue +8 -6
- package/dist/runtime/components/navigation/CommandPalette.vue.d.ts +198 -40
- package/dist/runtime/components/navigation/CommandPaletteGroup.vue +1 -3
- package/dist/runtime/components/navigation/CommandPaletteGroup.vue.d.ts +5 -7
- package/dist/runtime/components/navigation/HorizontalNavigation.vue +1 -4
- package/dist/runtime/components/navigation/HorizontalNavigation.vue.d.ts +64 -9
- package/dist/runtime/components/navigation/Pagination.vue +2 -4
- package/dist/runtime/components/navigation/Pagination.vue.d.ts +84 -12
- package/dist/runtime/components/navigation/Tabs.vue +10 -0
- package/dist/runtime/components/navigation/Tabs.vue.d.ts +86 -15
- package/dist/runtime/components/navigation/VerticalNavigation.vue +1 -5
- package/dist/runtime/components/navigation/VerticalNavigation.vue.d.ts +78 -9
- package/dist/runtime/components/overlays/ContextMenu.vue.d.ts +71 -8
- package/dist/runtime/components/overlays/Modal.vue.d.ts +85 -11
- package/dist/runtime/components/overlays/Notification.vue +2 -4
- package/dist/runtime/components/overlays/Notification.vue.d.ts +130 -29
- package/dist/runtime/components/overlays/Notifications.vue.d.ts +31 -16
- package/dist/runtime/components/overlays/Popover.vue +3 -6
- package/dist/runtime/components/overlays/Popover.vue.d.ts +110 -15
- package/dist/runtime/components/overlays/Slideover.vue.d.ts +87 -15
- package/dist/runtime/components/overlays/Tooltip.vue.d.ts +90 -15
- package/dist/runtime/composables/{defineShortcuts.mjs → defineShortcuts.js} +1 -1
- package/dist/runtime/composables/{useButtonGroup.mjs → useButtonGroup.js} +8 -9
- package/dist/runtime/composables/useCopyToClipboard.d.ts +1 -1
- package/dist/runtime/composables/{useCopyToClipboard.mjs → useCopyToClipboard.js} +1 -1
- package/dist/runtime/composables/useFormGroup.d.ts +5 -5
- package/dist/runtime/composables/useFormGroup.js +49 -0
- package/dist/runtime/composables/useModal.d.ts +3 -3
- package/dist/runtime/composables/{useModal.mjs → useModal.js} +2 -4
- package/dist/runtime/composables/usePopper.d.ts +91 -55
- package/dist/runtime/composables/useShortcuts.d.ts +4 -4
- package/dist/runtime/composables/useSlideover.d.ts +3 -3
- package/dist/runtime/composables/{useSlideover.mjs → useSlideover.js} +2 -4
- package/dist/runtime/composables/useTimer.d.ts +1 -1
- package/dist/runtime/composables/useToast.d.ts +11 -11
- package/dist/runtime/composables/useUI.d.ts +1 -1
- package/dist/runtime/composables/{useUI.mjs → useUI.js} +1 -1
- package/dist/runtime/plugins/colors.d.ts +1 -1
- package/dist/runtime/plugins/{colors.mjs → colors.js} +1 -1
- package/dist/runtime/plugins/modals.d.ts +1 -1
- package/dist/runtime/plugins/{modals.mjs → modals.js} +1 -1
- package/dist/runtime/plugins/slideovers.d.ts +1 -1
- package/dist/runtime/plugins/{slideovers.mjs → slideovers.js} +1 -1
- package/dist/runtime/types/accordion.d.ts +6 -7
- package/dist/runtime/types/accordion.js +0 -0
- package/dist/runtime/types/alert.d.ts +8 -10
- package/dist/runtime/types/alert.js +0 -0
- package/dist/runtime/types/avatar.d.ts +13 -15
- package/dist/runtime/types/avatar.js +0 -0
- package/dist/runtime/types/badge.d.ts +11 -13
- package/dist/runtime/types/badge.js +0 -0
- package/dist/runtime/types/breadcrumb.d.ts +6 -8
- package/dist/runtime/types/breadcrumb.js +0 -0
- package/dist/runtime/types/button.d.ts +27 -29
- package/dist/runtime/types/button.js +0 -0
- package/dist/runtime/types/chip.d.ts +11 -13
- package/dist/runtime/types/chip.js +0 -0
- package/dist/runtime/types/clipboard.d.ts +7 -1
- package/dist/runtime/types/clipboard.js +0 -0
- package/dist/runtime/types/command-palette.d.ts +23 -24
- package/dist/runtime/types/command-palette.js +0 -0
- package/dist/runtime/types/component.d.ts +17 -14
- package/dist/runtime/types/component.js +0 -0
- package/dist/runtime/types/divider.d.ts +2 -3
- package/dist/runtime/types/divider.js +0 -0
- package/dist/runtime/types/dropdown.d.ts +12 -13
- package/dist/runtime/types/dropdown.js +0 -0
- package/dist/runtime/types/form-group.d.ts +4 -5
- package/dist/runtime/types/form-group.js +0 -0
- package/dist/runtime/types/form.d.ts +29 -28
- package/dist/runtime/types/form.js +0 -0
- package/dist/runtime/types/horizontal-navigation.d.ts +10 -11
- package/dist/runtime/types/horizontal-navigation.js +0 -0
- package/dist/runtime/types/index.d.ts +31 -31
- package/dist/runtime/types/index.js +31 -0
- package/dist/runtime/types/input.d.ts +7 -8
- package/dist/runtime/types/input.js +0 -0
- package/dist/runtime/types/kbd.d.ts +4 -5
- package/dist/runtime/types/kbd.js +0 -0
- package/dist/runtime/types/link.d.ts +9 -10
- package/dist/runtime/types/link.js +0 -0
- package/dist/runtime/types/meter.d.ts +4 -5
- package/dist/runtime/types/meter.js +0 -0
- package/dist/runtime/types/modal.d.ts +13 -15
- package/dist/runtime/types/modal.js +0 -0
- package/dist/runtime/types/notification.d.ts +17 -20
- package/dist/runtime/types/notification.js +0 -0
- package/dist/runtime/types/popper.d.ts +13 -15
- package/dist/runtime/types/popper.js +0 -0
- package/dist/runtime/types/progress.d.ts +5 -6
- package/dist/runtime/types/progress.js +0 -0
- package/dist/runtime/types/range.d.ts +6 -7
- package/dist/runtime/types/range.js +0 -0
- package/dist/runtime/types/select.d.ts +7 -8
- package/dist/runtime/types/select.js +0 -0
- package/dist/runtime/types/slideover.d.ts +10 -12
- package/dist/runtime/types/slideover.js +0 -0
- package/dist/runtime/types/tabs.d.ts +6 -5
- package/dist/runtime/types/tabs.js +0 -0
- package/dist/runtime/types/textarea.d.ts +7 -8
- package/dist/runtime/types/textarea.js +0 -0
- package/dist/runtime/types/toggle.d.ts +6 -7
- package/dist/runtime/types/toggle.js +0 -0
- package/dist/runtime/types/tooltip.d.ts +5 -5
- package/dist/runtime/types/tooltip.js +0 -0
- package/dist/runtime/types/utils.d.ts +15 -27
- package/dist/runtime/types/utils.js +0 -0
- package/dist/runtime/types/vertical-navigation.d.ts +10 -11
- package/dist/runtime/types/vertical-navigation.js +0 -0
- package/dist/runtime/ui.config/data/table.d.ts +10 -0
- package/dist/runtime/ui.config/data/{table.mjs → table.js} +10 -0
- package/dist/runtime/ui.config/elements/accordion.d.ts +1 -0
- package/dist/runtime/ui.config/elements/{accordion.mjs → accordion.js} +3 -2
- package/dist/runtime/ui.config/elements/alert.d.ts +2 -2
- package/dist/runtime/ui.config/elements/avatar.d.ts +2 -2
- package/dist/runtime/ui.config/elements/{carousel.mjs → carousel.js} +1 -1
- package/dist/runtime/ui.config/elements/{dropdown.mjs → dropdown.js} +1 -1
- package/dist/runtime/ui.config/forms/{inputMenu.mjs → inputMenu.js} +1 -1
- package/dist/runtime/ui.config/forms/{select.mjs → select.js} +1 -1
- package/dist/runtime/ui.config/forms/{selectMenu.mjs → selectMenu.js} +2 -2
- package/dist/runtime/ui.config/forms/{textarea.mjs → textarea.js} +1 -1
- package/dist/runtime/ui.config/forms/toggle.d.ts +2 -2
- package/dist/runtime/ui.config/index.d.ts +43 -43
- package/dist/runtime/ui.config/index.js +43 -0
- package/dist/runtime/ui.config/navigation/{breadcrumb.mjs → breadcrumb.js} +2 -2
- package/dist/runtime/ui.config/navigation/commandPalette.d.ts +1 -1
- package/dist/runtime/ui.config/navigation/tabs.d.ts +1 -0
- package/dist/runtime/ui.config/navigation/{tabs.mjs → tabs.js} +2 -1
- package/dist/runtime/ui.config/overlays/{contextMenu.mjs → contextMenu.js} +1 -1
- package/dist/runtime/ui.config/overlays/{modal.mjs → modal.js} +2 -2
- package/dist/runtime/ui.config/overlays/notification.d.ts +1 -1
- package/dist/runtime/ui.config/overlays/{popover.mjs → popover.js} +1 -1
- package/dist/runtime/ui.config/overlays/{slideover.mjs → slideover.js} +2 -2
- package/dist/runtime/ui.config/overlays/{tooltip.mjs → tooltip.js} +1 -1
- package/dist/runtime/utils/colors.d.ts +2 -2
- package/dist/runtime/utils/{colors.mjs → colors.js} +1 -1
- package/dist/runtime/utils/index.d.ts +4 -4
- package/dist/runtime/utils/{index.mjs → index.js} +2 -2
- package/dist/runtime/utils/link.d.ts +26 -24
- package/dist/runtime/utils/{link.mjs → link.js} +1 -1
- package/dist/types.d.mts +1 -16
- package/dist/types.d.ts +1 -16
- package/package.json +20 -21
- package/dist/runtime/components/elements/Icon.vue +0 -29
- package/dist/runtime/components/elements/Icon.vue.d.ts +0 -24
- package/dist/runtime/composables/useFormGroup.mjs +0 -45
- package/dist/runtime/ui.config/index.mjs +0 -43
- /package/dist/runtime/composables/{useCarouselScroll.mjs → useCarouselScroll.js} +0 -0
- /package/dist/runtime/composables/{usePopper.mjs → usePopper.js} +0 -0
- /package/dist/runtime/composables/{useShortcuts.mjs → useShortcuts.js} +0 -0
- /package/dist/runtime/composables/{useTimer.mjs → useTimer.js} +0 -0
- /package/dist/runtime/composables/{useToast.mjs → useToast.js} +0 -0
- /package/dist/runtime/ui.config/elements/{alert.mjs → alert.js} +0 -0
- /package/dist/runtime/ui.config/elements/{avatar.mjs → avatar.js} +0 -0
- /package/dist/runtime/ui.config/elements/{avatarGroup.mjs → avatarGroup.js} +0 -0
- /package/dist/runtime/ui.config/elements/{badge.mjs → badge.js} +0 -0
- /package/dist/runtime/ui.config/elements/{button.mjs → button.js} +0 -0
- /package/dist/runtime/ui.config/elements/{buttonGroup.mjs → buttonGroup.js} +0 -0
- /package/dist/runtime/ui.config/elements/{chip.mjs → chip.js} +0 -0
- /package/dist/runtime/ui.config/elements/{kbd.mjs → kbd.js} +0 -0
- /package/dist/runtime/ui.config/elements/{meter.mjs → meter.js} +0 -0
- /package/dist/runtime/ui.config/elements/{meterGroup.mjs → meterGroup.js} +0 -0
- /package/dist/runtime/ui.config/elements/{progress.mjs → progress.js} +0 -0
- /package/dist/runtime/ui.config/forms/{checkbox.mjs → checkbox.js} +0 -0
- /package/dist/runtime/ui.config/forms/{formGroup.mjs → formGroup.js} +0 -0
- /package/dist/runtime/ui.config/forms/{input.mjs → input.js} +0 -0
- /package/dist/runtime/ui.config/forms/{radio.mjs → radio.js} +0 -0
- /package/dist/runtime/ui.config/forms/{radioGroup.mjs → radioGroup.js} +0 -0
- /package/dist/runtime/ui.config/forms/{range.mjs → range.js} +0 -0
- /package/dist/runtime/ui.config/forms/{toggle.mjs → toggle.js} +0 -0
- /package/dist/runtime/ui.config/layout/{card.mjs → card.js} +0 -0
- /package/dist/runtime/ui.config/layout/{container.mjs → container.js} +0 -0
- /package/dist/runtime/ui.config/layout/{divider.mjs → divider.js} +0 -0
- /package/dist/runtime/ui.config/layout/{skeleton.mjs → skeleton.js} +0 -0
- /package/dist/runtime/ui.config/navigation/{commandPalette.mjs → commandPalette.js} +0 -0
- /package/dist/runtime/ui.config/navigation/{horizontalNavigation.mjs → horizontalNavigation.js} +0 -0
- /package/dist/runtime/ui.config/navigation/{pagination.mjs → pagination.js} +0 -0
- /package/dist/runtime/ui.config/navigation/{verticalNavigation.mjs → verticalNavigation.js} +0 -0
- /package/dist/runtime/ui.config/overlays/{notification.mjs → notification.js} +0 -0
- /package/dist/runtime/ui.config/overlays/{notifications.mjs → notifications.js} +0 -0
- /package/dist/runtime/ui.config/{popper.mjs → popper.js} +0 -0
- /package/dist/runtime/utils/{lodash.mjs → lodash.js} +0 -0
|
@@ -1,9 +1,43 @@
|
|
|
1
1
|
import type { PropType } from 'vue';
|
|
2
|
-
import type { TabItem } from '../../types';
|
|
2
|
+
import type { TabItem, Strategy } from '../../types.js';
|
|
3
|
+
declare const config: {
|
|
4
|
+
wrapper: string;
|
|
5
|
+
container: string;
|
|
6
|
+
base: string;
|
|
7
|
+
list: {
|
|
8
|
+
base: string;
|
|
9
|
+
background: string;
|
|
10
|
+
rounded: string;
|
|
11
|
+
shadow: string;
|
|
12
|
+
padding: string;
|
|
13
|
+
height: string;
|
|
14
|
+
width: string;
|
|
15
|
+
marker: {
|
|
16
|
+
wrapper: string;
|
|
17
|
+
base: string;
|
|
18
|
+
background: string;
|
|
19
|
+
rounded: string;
|
|
20
|
+
shadow: string;
|
|
21
|
+
};
|
|
22
|
+
tab: {
|
|
23
|
+
base: string;
|
|
24
|
+
background: string;
|
|
25
|
+
active: string;
|
|
26
|
+
inactive: string;
|
|
27
|
+
height: string;
|
|
28
|
+
padding: string;
|
|
29
|
+
size: string;
|
|
30
|
+
font: string;
|
|
31
|
+
rounded: string;
|
|
32
|
+
shadow: string;
|
|
33
|
+
icon: string;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
};
|
|
3
37
|
declare const _default: import("vue").DefineComponent<{
|
|
4
38
|
modelValue: {
|
|
5
39
|
type: NumberConstructor;
|
|
6
|
-
default:
|
|
40
|
+
default: any;
|
|
7
41
|
};
|
|
8
42
|
orientation: {
|
|
9
43
|
type: PropType<"horizontal" | "vertical">;
|
|
@@ -16,7 +50,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
16
50
|
};
|
|
17
51
|
items: {
|
|
18
52
|
type: PropType<TabItem[]>;
|
|
19
|
-
default: () =>
|
|
53
|
+
default: () => any[];
|
|
20
54
|
};
|
|
21
55
|
unmount: {
|
|
22
56
|
type: BooleanConstructor;
|
|
@@ -31,23 +65,58 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
31
65
|
default: () => string;
|
|
32
66
|
};
|
|
33
67
|
ui: {
|
|
34
|
-
type: PropType<
|
|
68
|
+
type: PropType<Partial<typeof config> & {
|
|
69
|
+
strategy?: Strategy;
|
|
70
|
+
}>;
|
|
35
71
|
default: () => {};
|
|
36
72
|
};
|
|
37
73
|
}, {
|
|
38
|
-
ui: import("vue").ComputedRef<
|
|
74
|
+
ui: import("vue").ComputedRef<{
|
|
75
|
+
wrapper: string;
|
|
76
|
+
container: string;
|
|
77
|
+
base: string;
|
|
78
|
+
list: {
|
|
79
|
+
base: string;
|
|
80
|
+
background: string;
|
|
81
|
+
rounded: string;
|
|
82
|
+
shadow: string;
|
|
83
|
+
padding: string;
|
|
84
|
+
height: string;
|
|
85
|
+
width: string;
|
|
86
|
+
marker: {
|
|
87
|
+
wrapper: string;
|
|
88
|
+
base: string;
|
|
89
|
+
background: string;
|
|
90
|
+
rounded: string;
|
|
91
|
+
shadow: string;
|
|
92
|
+
};
|
|
93
|
+
tab: {
|
|
94
|
+
base: string;
|
|
95
|
+
background: string;
|
|
96
|
+
active: string;
|
|
97
|
+
inactive: string;
|
|
98
|
+
height: string;
|
|
99
|
+
padding: string;
|
|
100
|
+
size: string;
|
|
101
|
+
font: string;
|
|
102
|
+
rounded: string;
|
|
103
|
+
shadow: string;
|
|
104
|
+
icon: string;
|
|
105
|
+
};
|
|
106
|
+
};
|
|
107
|
+
}>;
|
|
39
108
|
attrs: import("vue").ComputedRef<Pick<{
|
|
40
109
|
[x: string]: unknown;
|
|
41
110
|
}, string>>;
|
|
42
|
-
listRef: import("vue").Ref<HTMLElement
|
|
111
|
+
listRef: import("vue").Ref<HTMLElement>;
|
|
43
112
|
itemRefs: import("vue").Ref<HTMLElement[]>;
|
|
44
|
-
markerRef: import("vue").Ref<HTMLElement
|
|
45
|
-
selectedIndex: import("vue").Ref<number
|
|
113
|
+
markerRef: import("vue").Ref<HTMLElement>;
|
|
114
|
+
selectedIndex: import("vue").Ref<number>;
|
|
46
115
|
onChange: (index: number) => void;
|
|
47
116
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:modelValue")[], "change" | "update:modelValue", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
48
117
|
modelValue: {
|
|
49
118
|
type: NumberConstructor;
|
|
50
|
-
default:
|
|
119
|
+
default: any;
|
|
51
120
|
};
|
|
52
121
|
orientation: {
|
|
53
122
|
type: PropType<"horizontal" | "vertical">;
|
|
@@ -60,7 +129,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
60
129
|
};
|
|
61
130
|
items: {
|
|
62
131
|
type: PropType<TabItem[]>;
|
|
63
|
-
default: () =>
|
|
132
|
+
default: () => any[];
|
|
64
133
|
};
|
|
65
134
|
unmount: {
|
|
66
135
|
type: BooleanConstructor;
|
|
@@ -75,17 +144,19 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
75
144
|
default: () => string;
|
|
76
145
|
};
|
|
77
146
|
ui: {
|
|
78
|
-
type: PropType<
|
|
147
|
+
type: PropType<Partial<typeof config> & {
|
|
148
|
+
strategy?: Strategy;
|
|
149
|
+
}>;
|
|
79
150
|
default: () => {};
|
|
80
151
|
};
|
|
81
152
|
}>> & {
|
|
82
|
-
onChange?: (
|
|
83
|
-
"onUpdate:modelValue"?: (
|
|
153
|
+
onChange?: (...args: any[]) => any;
|
|
154
|
+
"onUpdate:modelValue"?: (...args: any[]) => any;
|
|
84
155
|
}, {
|
|
156
|
+
orientation: "horizontal" | "vertical";
|
|
157
|
+
ui: {};
|
|
85
158
|
class: any;
|
|
86
159
|
content: boolean;
|
|
87
|
-
orientation: "horizontal" | "vertical";
|
|
88
|
-
ui: any;
|
|
89
160
|
modelValue: number;
|
|
90
161
|
unmount: boolean;
|
|
91
162
|
items: TabItem[];
|
|
@@ -55,11 +55,7 @@
|
|
|
55
55
|
<script>
|
|
56
56
|
import { toRef, defineComponent, computed } from "vue";
|
|
57
57
|
import { twMerge, twJoin } from "tailwind-merge";
|
|
58
|
-
import UIcon from "
|
|
59
|
-
import UAvatar from "../elements/Avatar.vue";
|
|
60
|
-
import UBadge from "../elements/Badge.vue";
|
|
61
|
-
import ULink from "../elements/Link.vue";
|
|
62
|
-
import UDivider from "../layout/Divider.vue";
|
|
58
|
+
import { UIcon, UAvatar, UBadge, ULink, UDivider } from "#components";
|
|
63
59
|
import { useUI } from "../../composables/useUI";
|
|
64
60
|
import { mergeConfig, getULinkProps } from "../../utils";
|
|
65
61
|
import appConfig from "#build/app.config";
|
|
@@ -1,21 +1,88 @@
|
|
|
1
1
|
import type { PropType } from 'vue';
|
|
2
2
|
import { twJoin } from 'tailwind-merge';
|
|
3
|
-
import type { VerticalNavigationLink } from '../../types';
|
|
3
|
+
import type { VerticalNavigationLink, Strategy } from '../../types.js';
|
|
4
|
+
declare const config: {
|
|
5
|
+
wrapper: string;
|
|
6
|
+
base: string;
|
|
7
|
+
ring: string;
|
|
8
|
+
padding: string;
|
|
9
|
+
width: string;
|
|
10
|
+
rounded: string;
|
|
11
|
+
font: string;
|
|
12
|
+
size: string;
|
|
13
|
+
active: string;
|
|
14
|
+
inactive: string;
|
|
15
|
+
label: string;
|
|
16
|
+
icon: {
|
|
17
|
+
base: string;
|
|
18
|
+
active: string;
|
|
19
|
+
inactive: string;
|
|
20
|
+
};
|
|
21
|
+
avatar: {
|
|
22
|
+
base: string;
|
|
23
|
+
size: "2xs";
|
|
24
|
+
};
|
|
25
|
+
badge: {
|
|
26
|
+
base: string;
|
|
27
|
+
color: "gray";
|
|
28
|
+
variant: "solid";
|
|
29
|
+
size: "xs";
|
|
30
|
+
};
|
|
31
|
+
divider: {
|
|
32
|
+
wrapper: {
|
|
33
|
+
base: string;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
};
|
|
4
37
|
declare const _default: import("vue").DefineComponent<{
|
|
5
38
|
links: {
|
|
6
|
-
type: PropType<VerticalNavigationLink[] | VerticalNavigationLink[]
|
|
7
|
-
default: () =>
|
|
39
|
+
type: PropType<VerticalNavigationLink[][] | VerticalNavigationLink[]>;
|
|
40
|
+
default: () => any[];
|
|
8
41
|
};
|
|
9
42
|
class: {
|
|
10
43
|
type: PropType<any>;
|
|
11
44
|
default: () => string;
|
|
12
45
|
};
|
|
13
46
|
ui: {
|
|
14
|
-
type: PropType<
|
|
47
|
+
type: PropType<Partial<typeof config> & {
|
|
48
|
+
strategy?: Strategy;
|
|
49
|
+
}>;
|
|
15
50
|
default: () => {};
|
|
16
51
|
};
|
|
17
52
|
}, {
|
|
18
|
-
ui: import("vue").ComputedRef<
|
|
53
|
+
ui: import("vue").ComputedRef<{
|
|
54
|
+
wrapper: string;
|
|
55
|
+
base: string;
|
|
56
|
+
ring: string;
|
|
57
|
+
padding: string;
|
|
58
|
+
width: string;
|
|
59
|
+
rounded: string;
|
|
60
|
+
font: string;
|
|
61
|
+
size: string;
|
|
62
|
+
active: string;
|
|
63
|
+
inactive: string;
|
|
64
|
+
label: string;
|
|
65
|
+
icon: {
|
|
66
|
+
base: string;
|
|
67
|
+
active: string;
|
|
68
|
+
inactive: string;
|
|
69
|
+
};
|
|
70
|
+
avatar: {
|
|
71
|
+
base: string;
|
|
72
|
+
size: "2xs";
|
|
73
|
+
};
|
|
74
|
+
badge: {
|
|
75
|
+
base: string;
|
|
76
|
+
color: "gray";
|
|
77
|
+
variant: "solid";
|
|
78
|
+
size: "xs";
|
|
79
|
+
};
|
|
80
|
+
divider: {
|
|
81
|
+
wrapper: {
|
|
82
|
+
base: string;
|
|
83
|
+
};
|
|
84
|
+
};
|
|
85
|
+
}>;
|
|
19
86
|
attrs: import("vue").ComputedRef<Pick<{
|
|
20
87
|
[x: string]: unknown;
|
|
21
88
|
}, string>>;
|
|
@@ -25,20 +92,22 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
25
92
|
twJoin: typeof twJoin;
|
|
26
93
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
27
94
|
links: {
|
|
28
|
-
type: PropType<VerticalNavigationLink[] | VerticalNavigationLink[]
|
|
29
|
-
default: () =>
|
|
95
|
+
type: PropType<VerticalNavigationLink[][] | VerticalNavigationLink[]>;
|
|
96
|
+
default: () => any[];
|
|
30
97
|
};
|
|
31
98
|
class: {
|
|
32
99
|
type: PropType<any>;
|
|
33
100
|
default: () => string;
|
|
34
101
|
};
|
|
35
102
|
ui: {
|
|
36
|
-
type: PropType<
|
|
103
|
+
type: PropType<Partial<typeof config> & {
|
|
104
|
+
strategy?: Strategy;
|
|
105
|
+
}>;
|
|
37
106
|
default: () => {};
|
|
38
107
|
};
|
|
39
108
|
}>>, {
|
|
109
|
+
ui: {};
|
|
40
110
|
class: any;
|
|
41
|
-
ui: any;
|
|
42
111
|
links: VerticalNavigationLink[] | VerticalNavigationLink[][];
|
|
43
112
|
}, {}>;
|
|
44
113
|
export default _default;
|
|
@@ -1,5 +1,35 @@
|
|
|
1
1
|
import type { PropType, Ref } from 'vue';
|
|
2
|
-
import type { PopperOptions } from '../../types';
|
|
2
|
+
import type { PopperOptions, Strategy } from '../../types.js';
|
|
3
|
+
declare const config: {
|
|
4
|
+
wrapper: string;
|
|
5
|
+
container: string;
|
|
6
|
+
width: string;
|
|
7
|
+
background: string;
|
|
8
|
+
shadow: string;
|
|
9
|
+
rounded: string;
|
|
10
|
+
ring: string;
|
|
11
|
+
base: string;
|
|
12
|
+
transition: {
|
|
13
|
+
enterActiveClass: string;
|
|
14
|
+
enterFromClass: string;
|
|
15
|
+
enterToClass: string;
|
|
16
|
+
leaveActiveClass: string;
|
|
17
|
+
leaveFromClass: string;
|
|
18
|
+
leaveToClass: string;
|
|
19
|
+
};
|
|
20
|
+
popper: {
|
|
21
|
+
placement: string;
|
|
22
|
+
scroll: boolean;
|
|
23
|
+
};
|
|
24
|
+
arrow: {
|
|
25
|
+
base: string;
|
|
26
|
+
ring: string;
|
|
27
|
+
rounded: string;
|
|
28
|
+
background: string;
|
|
29
|
+
shadow: string;
|
|
30
|
+
placement: string;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
3
33
|
declare const _default: import("vue").DefineComponent<{
|
|
4
34
|
modelValue: {
|
|
5
35
|
type: BooleanConstructor;
|
|
@@ -18,11 +48,42 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
18
48
|
default: () => string;
|
|
19
49
|
};
|
|
20
50
|
ui: {
|
|
21
|
-
type: PropType<
|
|
51
|
+
type: PropType<Partial<typeof config> & {
|
|
52
|
+
strategy?: Strategy;
|
|
53
|
+
}>;
|
|
22
54
|
default: () => {};
|
|
23
55
|
};
|
|
24
56
|
}, {
|
|
25
|
-
ui: import("vue").ComputedRef<
|
|
57
|
+
ui: import("vue").ComputedRef<{
|
|
58
|
+
wrapper: string;
|
|
59
|
+
container: string;
|
|
60
|
+
width: string;
|
|
61
|
+
background: string;
|
|
62
|
+
shadow: string;
|
|
63
|
+
rounded: string;
|
|
64
|
+
ring: string;
|
|
65
|
+
base: string;
|
|
66
|
+
transition: {
|
|
67
|
+
enterActiveClass: string;
|
|
68
|
+
enterFromClass: string;
|
|
69
|
+
enterToClass: string;
|
|
70
|
+
leaveActiveClass: string;
|
|
71
|
+
leaveFromClass: string;
|
|
72
|
+
leaveToClass: string;
|
|
73
|
+
};
|
|
74
|
+
popper: {
|
|
75
|
+
placement: string;
|
|
76
|
+
scroll: boolean;
|
|
77
|
+
};
|
|
78
|
+
arrow: {
|
|
79
|
+
base: string;
|
|
80
|
+
ring: string;
|
|
81
|
+
rounded: string;
|
|
82
|
+
background: string;
|
|
83
|
+
shadow: string;
|
|
84
|
+
placement: string;
|
|
85
|
+
};
|
|
86
|
+
}>;
|
|
26
87
|
attrs: import("vue").ComputedRef<Pick<{
|
|
27
88
|
[x: string]: unknown;
|
|
28
89
|
}, string>>;
|
|
@@ -30,7 +91,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
30
91
|
wrapperClass: import("vue").ComputedRef<string>;
|
|
31
92
|
popper: import("vue").ComputedRef<PopperOptions>;
|
|
32
93
|
container: Ref<import("@vueuse/core").MaybeElement>;
|
|
33
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("
|
|
94
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("close" | "update:modelValue")[], "close" | "update:modelValue", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
34
95
|
modelValue: {
|
|
35
96
|
type: BooleanConstructor;
|
|
36
97
|
default: boolean;
|
|
@@ -48,16 +109,18 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
48
109
|
default: () => string;
|
|
49
110
|
};
|
|
50
111
|
ui: {
|
|
51
|
-
type: PropType<
|
|
112
|
+
type: PropType<Partial<typeof config> & {
|
|
113
|
+
strategy?: Strategy;
|
|
114
|
+
}>;
|
|
52
115
|
default: () => {};
|
|
53
116
|
};
|
|
54
117
|
}>> & {
|
|
55
|
-
|
|
56
|
-
|
|
118
|
+
onClose?: (...args: any[]) => any;
|
|
119
|
+
"onUpdate:modelValue"?: (...args: any[]) => any;
|
|
57
120
|
}, {
|
|
121
|
+
ui: {};
|
|
58
122
|
class: any;
|
|
59
123
|
popper: PopperOptions;
|
|
60
|
-
ui: any;
|
|
61
124
|
modelValue: boolean;
|
|
62
125
|
}, {}>;
|
|
63
126
|
export default _default;
|
|
@@ -1,4 +1,40 @@
|
|
|
1
1
|
import type { PropType } from 'vue';
|
|
2
|
+
import type { Strategy } from '../../types.js';
|
|
3
|
+
declare const config: {
|
|
4
|
+
wrapper: string;
|
|
5
|
+
inner: string;
|
|
6
|
+
container: string;
|
|
7
|
+
padding: string;
|
|
8
|
+
margin: string;
|
|
9
|
+
base: string;
|
|
10
|
+
overlay: {
|
|
11
|
+
base: string;
|
|
12
|
+
background: string;
|
|
13
|
+
transition: {
|
|
14
|
+
enter: string;
|
|
15
|
+
enterFrom: string;
|
|
16
|
+
enterTo: string;
|
|
17
|
+
leave: string;
|
|
18
|
+
leaveFrom: string;
|
|
19
|
+
leaveTo: string;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
background: string;
|
|
23
|
+
ring: string;
|
|
24
|
+
rounded: string;
|
|
25
|
+
shadow: string;
|
|
26
|
+
width: string;
|
|
27
|
+
height: string;
|
|
28
|
+
fullscreen: string;
|
|
29
|
+
transition: {
|
|
30
|
+
enter: string;
|
|
31
|
+
enterFrom: string;
|
|
32
|
+
enterTo: string;
|
|
33
|
+
leave: string;
|
|
34
|
+
leaveFrom: string;
|
|
35
|
+
leaveTo: string;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
2
38
|
declare const _default: import("vue").DefineComponent<{
|
|
3
39
|
modelValue: {
|
|
4
40
|
type: BooleanConstructor;
|
|
@@ -29,19 +65,55 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
29
65
|
default: () => string;
|
|
30
66
|
};
|
|
31
67
|
ui: {
|
|
32
|
-
type: PropType<
|
|
68
|
+
type: PropType<Partial<typeof config> & {
|
|
69
|
+
strategy?: Strategy;
|
|
70
|
+
}>;
|
|
33
71
|
default: () => {};
|
|
34
72
|
};
|
|
35
73
|
}, {
|
|
36
|
-
ui: import("vue").ComputedRef<
|
|
74
|
+
ui: import("vue").ComputedRef<{
|
|
75
|
+
wrapper: string;
|
|
76
|
+
inner: string;
|
|
77
|
+
container: string;
|
|
78
|
+
padding: string;
|
|
79
|
+
margin: string;
|
|
80
|
+
base: string;
|
|
81
|
+
overlay: {
|
|
82
|
+
base: string;
|
|
83
|
+
background: string;
|
|
84
|
+
transition: {
|
|
85
|
+
enter: string;
|
|
86
|
+
enterFrom: string;
|
|
87
|
+
enterTo: string;
|
|
88
|
+
leave: string;
|
|
89
|
+
leaveFrom: string;
|
|
90
|
+
leaveTo: string;
|
|
91
|
+
};
|
|
92
|
+
};
|
|
93
|
+
background: string;
|
|
94
|
+
ring: string;
|
|
95
|
+
rounded: string;
|
|
96
|
+
shadow: string;
|
|
97
|
+
width: string;
|
|
98
|
+
height: string;
|
|
99
|
+
fullscreen: string;
|
|
100
|
+
transition: {
|
|
101
|
+
enter: string;
|
|
102
|
+
enterFrom: string;
|
|
103
|
+
enterTo: string;
|
|
104
|
+
leave: string;
|
|
105
|
+
leaveFrom: string;
|
|
106
|
+
leaveTo: string;
|
|
107
|
+
};
|
|
108
|
+
}>;
|
|
37
109
|
attrs: import("vue").ComputedRef<Pick<{
|
|
38
110
|
[x: string]: unknown;
|
|
39
111
|
}, string>>;
|
|
40
112
|
isOpen: import("vue").WritableComputedRef<boolean>;
|
|
41
|
-
transitionClass: import("vue").ComputedRef<
|
|
113
|
+
transitionClass: import("vue").ComputedRef<{}>;
|
|
42
114
|
onAfterLeave: () => void;
|
|
43
115
|
close: (value: boolean) => void;
|
|
44
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("
|
|
116
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("close" | "update:modelValue" | "close-prevented" | "after-leave")[], "close" | "update:modelValue" | "close-prevented" | "after-leave", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
45
117
|
modelValue: {
|
|
46
118
|
type: BooleanConstructor;
|
|
47
119
|
default: boolean;
|
|
@@ -71,22 +143,24 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
71
143
|
default: () => string;
|
|
72
144
|
};
|
|
73
145
|
ui: {
|
|
74
|
-
type: PropType<
|
|
146
|
+
type: PropType<Partial<typeof config> & {
|
|
147
|
+
strategy?: Strategy;
|
|
148
|
+
}>;
|
|
75
149
|
default: () => {};
|
|
76
150
|
};
|
|
77
151
|
}>> & {
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
"onClose-prevented"?: (
|
|
81
|
-
"onAfter-leave"?: (
|
|
152
|
+
onClose?: (...args: any[]) => any;
|
|
153
|
+
"onUpdate:modelValue"?: (...args: any[]) => any;
|
|
154
|
+
"onClose-prevented"?: (...args: any[]) => any;
|
|
155
|
+
"onAfter-leave"?: (...args: any[]) => any;
|
|
82
156
|
}, {
|
|
157
|
+
ui: {};
|
|
83
158
|
class: any;
|
|
84
159
|
transition: boolean;
|
|
85
|
-
ui: any;
|
|
86
|
-
modelValue: boolean;
|
|
87
160
|
appear: boolean;
|
|
88
161
|
overlay: boolean;
|
|
89
162
|
preventClose: boolean;
|
|
90
163
|
fullscreen: boolean;
|
|
164
|
+
modelValue: boolean;
|
|
91
165
|
}, {}>;
|
|
92
166
|
export default _default;
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
{{ title }}
|
|
19
19
|
</slot>
|
|
20
20
|
</p>
|
|
21
|
-
<div v-if="(description || $slots.description)" :class="twMerge(ui.description, !
|
|
21
|
+
<div v-if="(description || $slots.description)" :class="twMerge(ui.description, !title && !$slots.title && 'mt-0 leading-5')">
|
|
22
22
|
<slot name="description" :description="description">
|
|
23
23
|
{{ description }}
|
|
24
24
|
</slot>
|
|
@@ -45,9 +45,7 @@
|
|
|
45
45
|
<script>
|
|
46
46
|
import { ref, computed, toRef, onMounted, onUnmounted, watch, watchEffect, defineComponent } from "vue";
|
|
47
47
|
import { twMerge, twJoin } from "tailwind-merge";
|
|
48
|
-
import UIcon from "
|
|
49
|
-
import UAvatar from "../elements/Avatar.vue";
|
|
50
|
-
import UButton from "../elements/Button.vue";
|
|
48
|
+
import { UIcon, UAvatar, UButton } from "#components";
|
|
51
49
|
import { useUI } from "../../composables/useUI";
|
|
52
50
|
import { useTimer } from "../../composables/useTimer";
|
|
53
51
|
import { mergeConfig } from "../../utils";
|