@nuxt/ui 2.17.0 → 2.18.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 +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 +53 -15
- package/dist/runtime/components/data/Table.vue.d.ts +249 -50
- package/dist/runtime/components/elements/Accordion.vue.d.ts +140 -14
- package/dist/runtime/components/elements/Alert.vue +1 -1
- package/dist/runtime/components/elements/Alert.vue.d.ts +106 -23
- package/dist/runtime/components/elements/Avatar.vue.d.ts +146 -25
- package/dist/runtime/components/elements/AvatarGroup.d.ts +20 -11
- package/dist/runtime/components/elements/{AvatarGroup.mjs → AvatarGroup.js} +2 -2
- package/dist/runtime/components/elements/Badge.vue.d.ts +53 -16
- package/dist/runtime/components/elements/Button.vue.d.ts +259 -96
- package/dist/runtime/components/elements/ButtonGroup.d.ts +113 -9
- 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 +95 -23
- package/dist/runtime/components/elements/Dropdown.vue +3 -6
- package/dist/runtime/components/elements/Dropdown.vue.d.ts +135 -16
- package/dist/runtime/components/elements/Icon.vue +16 -15
- package/dist/runtime/components/elements/Icon.vue.d.ts +33 -10
- package/dist/runtime/components/elements/Kbd.vue.d.ts +45 -10
- package/dist/runtime/components/elements/Link.vue.d.ts +72 -72
- package/dist/runtime/components/elements/Meter.vue +1 -1
- package/dist/runtime/components/elements/Meter.vue.d.ts +179 -23
- package/dist/runtime/components/elements/MeterGroup.d.ts +72 -15
- 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 +188 -32
- package/dist/runtime/components/forms/Checkbox.vue +5 -3
- package/dist/runtime/components/forms/Checkbox.vue.d.ts +73 -32
- package/dist/runtime/components/forms/Form.vue +1 -2
- package/dist/runtime/components/forms/Form.vue.d.ts +11 -10
- package/dist/runtime/components/forms/FormGroup.vue +1 -1
- package/dist/runtime/components/forms/FormGroup.vue.d.ts +78 -25
- package/dist/runtime/components/forms/Input.vue +1 -1
- package/dist/runtime/components/forms/Input.vue.d.ts +272 -55
- package/dist/runtime/components/forms/InputMenu.vue +11 -8
- package/dist/runtime/components/forms/InputMenu.vue.d.ts +431 -81
- package/dist/runtime/components/forms/Radio.vue +5 -3
- package/dist/runtime/components/forms/Radio.vue.d.ts +71 -32
- package/dist/runtime/components/forms/RadioGroup.vue +11 -3
- package/dist/runtime/components/forms/RadioGroup.vue.d.ts +83 -25
- package/dist/runtime/components/forms/Range.vue.d.ts +153 -24
- package/dist/runtime/components/forms/Select.vue +1 -1
- package/dist/runtime/components/forms/Select.vue.d.ts +272 -49
- package/dist/runtime/components/forms/SelectMenu.vue +49 -23
- package/dist/runtime/components/forms/SelectMenu.vue.d.ts +449 -84
- package/dist/runtime/components/forms/Textarea.vue.d.ts +258 -43
- package/dist/runtime/components/forms/Toggle.vue.d.ts +152 -25
- package/dist/runtime/components/layout/Card.vue.d.ts +54 -4
- package/dist/runtime/components/layout/Container.vue.d.ts +18 -4
- 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.d.ts +52 -9
- package/dist/runtime/components/navigation/CommandPalette.vue +7 -4
- package/dist/runtime/components/navigation/CommandPalette.vue.d.ts +193 -35
- package/dist/runtime/components/navigation/CommandPaletteGroup.vue.d.ts +5 -7
- 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 +83 -11
- package/dist/runtime/components/navigation/Tabs.vue +10 -0
- package/dist/runtime/components/navigation/Tabs.vue.d.ts +85 -14
- 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 +1 -1
- package/dist/runtime/components/overlays/Notification.vue.d.ts +127 -26
- 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 +86 -14
- 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 +90 -54
- 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 +19 -21
- 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,8 +1,8 @@
|
|
|
1
1
|
import { h, computed, toRef, defineComponent } from "vue";
|
|
2
2
|
import { twMerge, twJoin } from "tailwind-merge";
|
|
3
|
-
import { useUI } from "../../composables/useUI.
|
|
4
|
-
import { mergeConfig, getSlotsChildren } from "../../utils/index.
|
|
5
|
-
import { useProvideButtonGroup } from "../../composables/useButtonGroup.
|
|
3
|
+
import { useUI } from "../../composables/useUI.js";
|
|
4
|
+
import { mergeConfig, getSlotsChildren } from "../../utils/index.js";
|
|
5
|
+
import { useProvideButtonGroup } from "../../composables/useButtonGroup.js";
|
|
6
6
|
import appConfig from "#build/app.config";
|
|
7
7
|
import { button, buttonGroup } from "#ui/ui.config";
|
|
8
8
|
const buttonConfig = mergeConfig(appConfig.ui.strategy, appConfig.ui.button, button);
|
|
@@ -1,9 +1,35 @@
|
|
|
1
1
|
import type { PropType } from 'vue';
|
|
2
|
-
import type { Button } from '../../types';
|
|
2
|
+
import type { Strategy, Button } from '../../types.js';
|
|
3
|
+
declare const config: {
|
|
4
|
+
wrapper: string;
|
|
5
|
+
container: string;
|
|
6
|
+
item: string;
|
|
7
|
+
arrows: {
|
|
8
|
+
wrapper: string;
|
|
9
|
+
};
|
|
10
|
+
indicators: {
|
|
11
|
+
wrapper: string;
|
|
12
|
+
base: string;
|
|
13
|
+
active: string;
|
|
14
|
+
inactive: string;
|
|
15
|
+
};
|
|
16
|
+
default: {
|
|
17
|
+
prevButton: {
|
|
18
|
+
color: "black";
|
|
19
|
+
class: string;
|
|
20
|
+
icon: string;
|
|
21
|
+
};
|
|
22
|
+
nextButton: {
|
|
23
|
+
color: "black";
|
|
24
|
+
class: string;
|
|
25
|
+
icon: string;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
};
|
|
3
29
|
declare const _default: import("vue").DefineComponent<{
|
|
4
30
|
items: {
|
|
5
31
|
type: PropType<any[]>;
|
|
6
|
-
default: () =>
|
|
32
|
+
default: () => any[];
|
|
7
33
|
};
|
|
8
34
|
arrows: {
|
|
9
35
|
type: BooleanConstructor;
|
|
@@ -15,18 +41,18 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
15
41
|
};
|
|
16
42
|
prevButton: {
|
|
17
43
|
type: PropType<Button & {
|
|
18
|
-
class?: string
|
|
44
|
+
class?: string;
|
|
19
45
|
}>;
|
|
20
46
|
default: () => Button & {
|
|
21
|
-
class?: string
|
|
47
|
+
class?: string;
|
|
22
48
|
};
|
|
23
49
|
};
|
|
24
50
|
nextButton: {
|
|
25
51
|
type: PropType<Button & {
|
|
26
|
-
class?: string
|
|
52
|
+
class?: string;
|
|
27
53
|
}>;
|
|
28
54
|
default: () => Button & {
|
|
29
|
-
class?: string
|
|
55
|
+
class?: string;
|
|
30
56
|
};
|
|
31
57
|
};
|
|
32
58
|
class: {
|
|
@@ -34,17 +60,44 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
34
60
|
default: () => string;
|
|
35
61
|
};
|
|
36
62
|
ui: {
|
|
37
|
-
type: PropType<Partial<
|
|
38
|
-
|
|
63
|
+
type: PropType<Partial<typeof config & {
|
|
64
|
+
strategy?: Strategy;
|
|
65
|
+
}>>;
|
|
66
|
+
default: any;
|
|
39
67
|
};
|
|
40
68
|
}, {
|
|
41
|
-
ui: import("vue").ComputedRef<
|
|
69
|
+
ui: import("vue").ComputedRef<{
|
|
70
|
+
wrapper: string;
|
|
71
|
+
container: string;
|
|
72
|
+
item: string;
|
|
73
|
+
arrows: {
|
|
74
|
+
wrapper: string;
|
|
75
|
+
};
|
|
76
|
+
indicators: {
|
|
77
|
+
wrapper: string;
|
|
78
|
+
base: string;
|
|
79
|
+
active: string;
|
|
80
|
+
inactive: string;
|
|
81
|
+
};
|
|
82
|
+
default: {
|
|
83
|
+
prevButton: {
|
|
84
|
+
color: "black";
|
|
85
|
+
class: string;
|
|
86
|
+
icon: string;
|
|
87
|
+
};
|
|
88
|
+
nextButton: {
|
|
89
|
+
color: "black";
|
|
90
|
+
class: string;
|
|
91
|
+
icon: string;
|
|
92
|
+
};
|
|
93
|
+
};
|
|
94
|
+
}>;
|
|
42
95
|
attrs: import("vue").ComputedRef<Pick<{
|
|
43
96
|
[x: string]: unknown;
|
|
44
97
|
}, string>>;
|
|
45
98
|
isFirst: import("vue").ComputedRef<boolean>;
|
|
46
99
|
isLast: import("vue").ComputedRef<boolean>;
|
|
47
|
-
carouselRef: import("vue").Ref<HTMLElement
|
|
100
|
+
carouselRef: import("vue").Ref<HTMLElement>;
|
|
48
101
|
pages: import("vue").ComputedRef<number>;
|
|
49
102
|
currentPage: import("vue").ComputedRef<number>;
|
|
50
103
|
onClickNext: () => void;
|
|
@@ -54,7 +107,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
54
107
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
55
108
|
items: {
|
|
56
109
|
type: PropType<any[]>;
|
|
57
|
-
default: () =>
|
|
110
|
+
default: () => any[];
|
|
58
111
|
};
|
|
59
112
|
arrows: {
|
|
60
113
|
type: BooleanConstructor;
|
|
@@ -66,18 +119,18 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
66
119
|
};
|
|
67
120
|
prevButton: {
|
|
68
121
|
type: PropType<Button & {
|
|
69
|
-
class?: string
|
|
122
|
+
class?: string;
|
|
70
123
|
}>;
|
|
71
124
|
default: () => Button & {
|
|
72
|
-
class?: string
|
|
125
|
+
class?: string;
|
|
73
126
|
};
|
|
74
127
|
};
|
|
75
128
|
nextButton: {
|
|
76
129
|
type: PropType<Button & {
|
|
77
|
-
class?: string
|
|
130
|
+
class?: string;
|
|
78
131
|
}>;
|
|
79
132
|
default: () => Button & {
|
|
80
|
-
class?: string
|
|
133
|
+
class?: string;
|
|
81
134
|
};
|
|
82
135
|
};
|
|
83
136
|
class: {
|
|
@@ -85,20 +138,22 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
85
138
|
default: () => string;
|
|
86
139
|
};
|
|
87
140
|
ui: {
|
|
88
|
-
type: PropType<Partial<
|
|
89
|
-
|
|
141
|
+
type: PropType<Partial<typeof config & {
|
|
142
|
+
strategy?: Strategy;
|
|
143
|
+
}>>;
|
|
144
|
+
default: any;
|
|
90
145
|
};
|
|
91
146
|
}>>, {
|
|
92
147
|
class: any;
|
|
93
|
-
ui:
|
|
148
|
+
ui: any;
|
|
94
149
|
items: any[];
|
|
95
150
|
arrows: boolean;
|
|
96
151
|
indicators: boolean;
|
|
97
152
|
prevButton: Button & {
|
|
98
|
-
class?: string
|
|
153
|
+
class?: string;
|
|
99
154
|
};
|
|
100
155
|
nextButton: Button & {
|
|
101
|
-
class?: string
|
|
156
|
+
class?: string;
|
|
102
157
|
};
|
|
103
158
|
}, {}>;
|
|
104
159
|
export default _default;
|
|
@@ -1,27 +1,62 @@
|
|
|
1
1
|
import type { PropType } from 'vue';
|
|
2
|
+
import type { ChipSize, ChipColor, ChipPosition, Strategy } from '../../types.js';
|
|
3
|
+
declare const config: {
|
|
4
|
+
wrapper: string;
|
|
5
|
+
base: string;
|
|
6
|
+
background: string;
|
|
7
|
+
position: {
|
|
8
|
+
'top-right': string;
|
|
9
|
+
'bottom-right': string;
|
|
10
|
+
'top-left': string;
|
|
11
|
+
'bottom-left': string;
|
|
12
|
+
};
|
|
13
|
+
translate: {
|
|
14
|
+
'top-right': string;
|
|
15
|
+
'bottom-right': string;
|
|
16
|
+
'top-left': string;
|
|
17
|
+
'bottom-left': string;
|
|
18
|
+
};
|
|
19
|
+
size: {
|
|
20
|
+
'3xs': string;
|
|
21
|
+
'2xs': string;
|
|
22
|
+
xs: string;
|
|
23
|
+
sm: string;
|
|
24
|
+
md: string;
|
|
25
|
+
lg: string;
|
|
26
|
+
xl: string;
|
|
27
|
+
'2xl': string;
|
|
28
|
+
'3xl': string;
|
|
29
|
+
};
|
|
30
|
+
default: {
|
|
31
|
+
size: string;
|
|
32
|
+
color: string;
|
|
33
|
+
position: string;
|
|
34
|
+
inset: boolean;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
2
37
|
declare const _default: import("vue").DefineComponent<{
|
|
3
38
|
size: {
|
|
4
|
-
type: PropType<
|
|
5
|
-
default: () =>
|
|
39
|
+
type: PropType<ChipSize>;
|
|
40
|
+
default: () => string;
|
|
6
41
|
validator(value: string): boolean;
|
|
7
42
|
};
|
|
8
43
|
color: {
|
|
9
|
-
type: PropType<
|
|
10
|
-
default: () =>
|
|
44
|
+
type: PropType<ChipColor>;
|
|
45
|
+
default: () => string;
|
|
11
46
|
validator(value: string): boolean;
|
|
12
47
|
};
|
|
13
48
|
position: {
|
|
14
|
-
type: PropType<
|
|
15
|
-
default: () =>
|
|
49
|
+
type: PropType<ChipPosition>;
|
|
50
|
+
default: () => string;
|
|
16
51
|
validator(value: string): boolean;
|
|
17
52
|
};
|
|
18
53
|
text: {
|
|
19
54
|
type: (StringConstructor | NumberConstructor)[];
|
|
20
|
-
default:
|
|
55
|
+
default: any;
|
|
21
56
|
};
|
|
22
57
|
inset: {
|
|
23
58
|
type: BooleanConstructor;
|
|
24
|
-
default: () =>
|
|
59
|
+
default: () => boolean;
|
|
25
60
|
};
|
|
26
61
|
show: {
|
|
27
62
|
type: BooleanConstructor;
|
|
@@ -32,38 +67,73 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
32
67
|
default: () => "";
|
|
33
68
|
};
|
|
34
69
|
ui: {
|
|
35
|
-
type: PropType<
|
|
70
|
+
type: PropType<Partial<typeof config> & {
|
|
71
|
+
strategy?: Strategy;
|
|
72
|
+
}>;
|
|
36
73
|
default: () => {};
|
|
37
74
|
};
|
|
38
75
|
}, {
|
|
39
|
-
ui: import("vue").ComputedRef<
|
|
76
|
+
ui: import("vue").ComputedRef<{
|
|
77
|
+
wrapper: string;
|
|
78
|
+
base: string;
|
|
79
|
+
background: string;
|
|
80
|
+
position: {
|
|
81
|
+
'top-right': string;
|
|
82
|
+
'bottom-right': string;
|
|
83
|
+
'top-left': string;
|
|
84
|
+
'bottom-left': string;
|
|
85
|
+
};
|
|
86
|
+
translate: {
|
|
87
|
+
'top-right': string;
|
|
88
|
+
'bottom-right': string;
|
|
89
|
+
'top-left': string;
|
|
90
|
+
'bottom-left': string;
|
|
91
|
+
};
|
|
92
|
+
size: {
|
|
93
|
+
'3xs': string;
|
|
94
|
+
'2xs': string;
|
|
95
|
+
xs: string;
|
|
96
|
+
sm: string;
|
|
97
|
+
md: string;
|
|
98
|
+
lg: string;
|
|
99
|
+
xl: string;
|
|
100
|
+
'2xl': string;
|
|
101
|
+
'3xl': string;
|
|
102
|
+
};
|
|
103
|
+
default: {
|
|
104
|
+
size: string;
|
|
105
|
+
color: string;
|
|
106
|
+
position: string;
|
|
107
|
+
inset: boolean;
|
|
108
|
+
};
|
|
109
|
+
}>;
|
|
40
110
|
attrs: import("vue").ComputedRef<Pick<{
|
|
41
111
|
[x: string]: unknown;
|
|
42
112
|
}, string>>;
|
|
43
113
|
chipClass: import("vue").ComputedRef<string>;
|
|
44
114
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
45
115
|
size: {
|
|
46
|
-
type: PropType<
|
|
47
|
-
default: () =>
|
|
116
|
+
type: PropType<ChipSize>;
|
|
117
|
+
default: () => string;
|
|
48
118
|
validator(value: string): boolean;
|
|
49
119
|
};
|
|
50
120
|
color: {
|
|
51
|
-
type: PropType<
|
|
52
|
-
default: () =>
|
|
121
|
+
type: PropType<ChipColor>;
|
|
122
|
+
default: () => string;
|
|
53
123
|
validator(value: string): boolean;
|
|
54
124
|
};
|
|
55
125
|
position: {
|
|
56
|
-
type: PropType<
|
|
57
|
-
default: () =>
|
|
126
|
+
type: PropType<ChipPosition>;
|
|
127
|
+
default: () => string;
|
|
58
128
|
validator(value: string): boolean;
|
|
59
129
|
};
|
|
60
130
|
text: {
|
|
61
131
|
type: (StringConstructor | NumberConstructor)[];
|
|
62
|
-
default:
|
|
132
|
+
default: any;
|
|
63
133
|
};
|
|
64
134
|
inset: {
|
|
65
135
|
type: BooleanConstructor;
|
|
66
|
-
default: () =>
|
|
136
|
+
default: () => boolean;
|
|
67
137
|
};
|
|
68
138
|
show: {
|
|
69
139
|
type: BooleanConstructor;
|
|
@@ -74,17 +144,19 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
74
144
|
default: () => "";
|
|
75
145
|
};
|
|
76
146
|
ui: {
|
|
77
|
-
type: PropType<
|
|
147
|
+
type: PropType<Partial<typeof config> & {
|
|
148
|
+
strategy?: Strategy;
|
|
149
|
+
}>;
|
|
78
150
|
default: () => {};
|
|
79
151
|
};
|
|
80
152
|
}>>, {
|
|
81
|
-
size: "
|
|
82
|
-
text: string | number;
|
|
153
|
+
size: "xs" | "sm" | "2xs" | "md" | "lg" | "xl" | "3xs" | "2xl" | "3xl";
|
|
83
154
|
class: any;
|
|
155
|
+
ui: {};
|
|
156
|
+
color: ChipColor;
|
|
84
157
|
inset: boolean;
|
|
85
158
|
position: "top-right" | "bottom-right" | "top-left" | "bottom-left";
|
|
86
|
-
|
|
87
|
-
ui: any;
|
|
159
|
+
text: string | number;
|
|
88
160
|
show: boolean;
|
|
89
161
|
}, {}>;
|
|
90
162
|
export default _default;
|
|
@@ -217,10 +217,8 @@ export default defineComponent({
|
|
|
217
217
|
}
|
|
218
218
|
}
|
|
219
219
|
watch(() => props.open, (newValue, oldValue) => {
|
|
220
|
-
if (!menuApi.value)
|
|
221
|
-
|
|
222
|
-
if (oldValue === void 0 || newValue === oldValue)
|
|
223
|
-
return;
|
|
220
|
+
if (!menuApi.value) return;
|
|
221
|
+
if (oldValue === void 0 || newValue === oldValue) return;
|
|
224
222
|
if (newValue) {
|
|
225
223
|
menuApi.value.openMenu();
|
|
226
224
|
} else {
|
|
@@ -228,8 +226,7 @@ export default defineComponent({
|
|
|
228
226
|
}
|
|
229
227
|
});
|
|
230
228
|
watch(() => menuApi.value?.menuState, (newValue, oldValue) => {
|
|
231
|
-
if (oldValue === void 0 || newValue === oldValue)
|
|
232
|
-
return;
|
|
229
|
+
if (oldValue === void 0 || newValue === oldValue) return;
|
|
233
230
|
emit("update:open", newValue === 0);
|
|
234
231
|
});
|
|
235
232
|
const NuxtLink = resolveComponent("NuxtLink");
|
|
@@ -1,10 +1,68 @@
|
|
|
1
1
|
import type { PropType } from 'vue';
|
|
2
2
|
import { twJoin } from 'tailwind-merge';
|
|
3
|
-
import type { DropdownItem, PopperOptions } from '../../types';
|
|
3
|
+
import type { DropdownItem, PopperOptions, Strategy } from '../../types.js';
|
|
4
|
+
declare const config: {
|
|
5
|
+
wrapper: string;
|
|
6
|
+
container: string;
|
|
7
|
+
trigger: string;
|
|
8
|
+
width: string;
|
|
9
|
+
height: string;
|
|
10
|
+
background: string;
|
|
11
|
+
shadow: string;
|
|
12
|
+
rounded: string;
|
|
13
|
+
ring: string;
|
|
14
|
+
base: string;
|
|
15
|
+
divide: string;
|
|
16
|
+
padding: string;
|
|
17
|
+
item: {
|
|
18
|
+
base: string;
|
|
19
|
+
rounded: string;
|
|
20
|
+
padding: string;
|
|
21
|
+
size: string;
|
|
22
|
+
active: string;
|
|
23
|
+
inactive: string;
|
|
24
|
+
disabled: string;
|
|
25
|
+
icon: {
|
|
26
|
+
base: string;
|
|
27
|
+
active: string;
|
|
28
|
+
inactive: string;
|
|
29
|
+
};
|
|
30
|
+
avatar: {
|
|
31
|
+
base: string;
|
|
32
|
+
size: "2xs";
|
|
33
|
+
};
|
|
34
|
+
label: string;
|
|
35
|
+
shortcuts: string;
|
|
36
|
+
};
|
|
37
|
+
transition: {
|
|
38
|
+
enterActiveClass: string;
|
|
39
|
+
enterFromClass: string;
|
|
40
|
+
enterToClass: string;
|
|
41
|
+
leaveActiveClass: string;
|
|
42
|
+
leaveFromClass: string;
|
|
43
|
+
leaveToClass: string;
|
|
44
|
+
};
|
|
45
|
+
popper: {
|
|
46
|
+
placement: string;
|
|
47
|
+
strategy: string;
|
|
48
|
+
};
|
|
49
|
+
default: {
|
|
50
|
+
openDelay: number;
|
|
51
|
+
closeDelay: number;
|
|
52
|
+
};
|
|
53
|
+
arrow: {
|
|
54
|
+
ring: string;
|
|
55
|
+
background: string;
|
|
56
|
+
base: string;
|
|
57
|
+
rounded: string;
|
|
58
|
+
shadow: string;
|
|
59
|
+
placement: string;
|
|
60
|
+
};
|
|
61
|
+
};
|
|
4
62
|
declare const _default: import("vue").DefineComponent<{
|
|
5
63
|
items: {
|
|
6
64
|
type: PropType<DropdownItem[][]>;
|
|
7
|
-
default: () =>
|
|
65
|
+
default: () => any[];
|
|
8
66
|
};
|
|
9
67
|
mode: {
|
|
10
68
|
type: PropType<"click" | "hover">;
|
|
@@ -13,7 +71,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
13
71
|
};
|
|
14
72
|
open: {
|
|
15
73
|
type: BooleanConstructor;
|
|
16
|
-
default:
|
|
74
|
+
default: any;
|
|
17
75
|
};
|
|
18
76
|
disabled: {
|
|
19
77
|
type: BooleanConstructor;
|
|
@@ -25,22 +83,81 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
25
83
|
};
|
|
26
84
|
openDelay: {
|
|
27
85
|
type: NumberConstructor;
|
|
28
|
-
default: () =>
|
|
86
|
+
default: () => number;
|
|
29
87
|
};
|
|
30
88
|
closeDelay: {
|
|
31
89
|
type: NumberConstructor;
|
|
32
|
-
default: () =>
|
|
90
|
+
default: () => number;
|
|
33
91
|
};
|
|
34
92
|
class: {
|
|
35
93
|
type: PropType<any>;
|
|
36
94
|
default: () => string;
|
|
37
95
|
};
|
|
38
96
|
ui: {
|
|
39
|
-
type: PropType<
|
|
97
|
+
type: PropType<Partial<typeof config> & {
|
|
98
|
+
strategy?: Strategy;
|
|
99
|
+
}>;
|
|
40
100
|
default: () => {};
|
|
41
101
|
};
|
|
42
102
|
}, {
|
|
43
|
-
ui: import("vue").ComputedRef<
|
|
103
|
+
ui: import("vue").ComputedRef<{
|
|
104
|
+
wrapper: string;
|
|
105
|
+
container: string;
|
|
106
|
+
trigger: string;
|
|
107
|
+
width: string;
|
|
108
|
+
height: string;
|
|
109
|
+
background: string;
|
|
110
|
+
shadow: string;
|
|
111
|
+
rounded: string;
|
|
112
|
+
ring: string;
|
|
113
|
+
base: string;
|
|
114
|
+
divide: string;
|
|
115
|
+
padding: string;
|
|
116
|
+
item: {
|
|
117
|
+
base: string;
|
|
118
|
+
rounded: string;
|
|
119
|
+
padding: string;
|
|
120
|
+
size: string;
|
|
121
|
+
active: string;
|
|
122
|
+
inactive: string;
|
|
123
|
+
disabled: string;
|
|
124
|
+
icon: {
|
|
125
|
+
base: string;
|
|
126
|
+
active: string;
|
|
127
|
+
inactive: string;
|
|
128
|
+
};
|
|
129
|
+
avatar: {
|
|
130
|
+
base: string;
|
|
131
|
+
size: "2xs";
|
|
132
|
+
};
|
|
133
|
+
label: string;
|
|
134
|
+
shortcuts: string;
|
|
135
|
+
};
|
|
136
|
+
transition: {
|
|
137
|
+
enterActiveClass: string;
|
|
138
|
+
enterFromClass: string;
|
|
139
|
+
enterToClass: string;
|
|
140
|
+
leaveActiveClass: string;
|
|
141
|
+
leaveFromClass: string;
|
|
142
|
+
leaveToClass: string;
|
|
143
|
+
};
|
|
144
|
+
popper: {
|
|
145
|
+
placement: string;
|
|
146
|
+
strategy: string;
|
|
147
|
+
};
|
|
148
|
+
default: {
|
|
149
|
+
openDelay: number;
|
|
150
|
+
closeDelay: number;
|
|
151
|
+
};
|
|
152
|
+
arrow: {
|
|
153
|
+
ring: string;
|
|
154
|
+
background: string;
|
|
155
|
+
base: string;
|
|
156
|
+
rounded: string;
|
|
157
|
+
shadow: string;
|
|
158
|
+
placement: string;
|
|
159
|
+
};
|
|
160
|
+
}>;
|
|
44
161
|
attrs: import("vue").ComputedRef<Pick<{
|
|
45
162
|
[x: string]: unknown;
|
|
46
163
|
}, string>>;
|
|
@@ -84,7 +201,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
84
201
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:open"[], "update:open", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
85
202
|
items: {
|
|
86
203
|
type: PropType<DropdownItem[][]>;
|
|
87
|
-
default: () =>
|
|
204
|
+
default: () => any[];
|
|
88
205
|
};
|
|
89
206
|
mode: {
|
|
90
207
|
type: PropType<"click" | "hover">;
|
|
@@ -93,7 +210,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
93
210
|
};
|
|
94
211
|
open: {
|
|
95
212
|
type: BooleanConstructor;
|
|
96
|
-
default:
|
|
213
|
+
default: any;
|
|
97
214
|
};
|
|
98
215
|
disabled: {
|
|
99
216
|
type: BooleanConstructor;
|
|
@@ -105,30 +222,32 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
105
222
|
};
|
|
106
223
|
openDelay: {
|
|
107
224
|
type: NumberConstructor;
|
|
108
|
-
default: () =>
|
|
225
|
+
default: () => number;
|
|
109
226
|
};
|
|
110
227
|
closeDelay: {
|
|
111
228
|
type: NumberConstructor;
|
|
112
|
-
default: () =>
|
|
229
|
+
default: () => number;
|
|
113
230
|
};
|
|
114
231
|
class: {
|
|
115
232
|
type: PropType<any>;
|
|
116
233
|
default: () => string;
|
|
117
234
|
};
|
|
118
235
|
ui: {
|
|
119
|
-
type: PropType<
|
|
236
|
+
type: PropType<Partial<typeof config> & {
|
|
237
|
+
strategy?: Strategy;
|
|
238
|
+
}>;
|
|
120
239
|
default: () => {};
|
|
121
240
|
};
|
|
122
241
|
}>> & {
|
|
123
|
-
"onUpdate:open"?: (
|
|
242
|
+
"onUpdate:open"?: (...args: any[]) => any;
|
|
124
243
|
}, {
|
|
244
|
+
mode: "click" | "hover";
|
|
125
245
|
class: any;
|
|
126
|
-
popper: PopperOptions;
|
|
127
246
|
disabled: boolean;
|
|
128
|
-
ui:
|
|
247
|
+
ui: {};
|
|
248
|
+
popper: PopperOptions;
|
|
129
249
|
open: boolean;
|
|
130
250
|
items: DropdownItem[][];
|
|
131
|
-
mode: "click" | "hover";
|
|
132
251
|
openDelay: number;
|
|
133
252
|
closeDelay: number;
|
|
134
253
|
}, {}>;
|
|
@@ -1,29 +1,30 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<Icon v-
|
|
3
|
-
<span v-else :class="name" />
|
|
2
|
+
<Icon v-bind="$props" />
|
|
4
3
|
</template>
|
|
5
4
|
|
|
6
5
|
<script>
|
|
7
|
-
import { defineComponent
|
|
8
|
-
import { useAppConfig } from "#imports";
|
|
6
|
+
import { defineComponent } from "vue";
|
|
9
7
|
export default defineComponent({
|
|
10
8
|
props: {
|
|
11
9
|
name: {
|
|
12
10
|
type: String,
|
|
13
11
|
required: true
|
|
14
12
|
},
|
|
15
|
-
|
|
16
|
-
type:
|
|
17
|
-
|
|
13
|
+
mode: {
|
|
14
|
+
type: String,
|
|
15
|
+
required: false,
|
|
16
|
+
default: null
|
|
17
|
+
},
|
|
18
|
+
size: {
|
|
19
|
+
type: [Number, String],
|
|
20
|
+
required: false,
|
|
21
|
+
default: null
|
|
22
|
+
},
|
|
23
|
+
customize: {
|
|
24
|
+
type: Function,
|
|
25
|
+
required: false,
|
|
26
|
+
default: null
|
|
18
27
|
}
|
|
19
|
-
},
|
|
20
|
-
setup(props) {
|
|
21
|
-
const appConfig = useAppConfig();
|
|
22
|
-
const dynamic = computed(() => props.dynamic || appConfig.ui?.icons?.dynamic);
|
|
23
|
-
return {
|
|
24
|
-
// eslint-disable-next-line vue/no-dupe-keys
|
|
25
|
-
dynamic
|
|
26
|
-
};
|
|
27
28
|
}
|
|
28
29
|
});
|
|
29
30
|
</script>
|