@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,4 +1,81 @@
|
|
|
1
1
|
import type { SlotsType, PropType } from 'vue';
|
|
2
|
+
import type { Strategy, MeterColor, MeterSize } from '../../types.js';
|
|
3
|
+
declare const config: {
|
|
4
|
+
wrapper: string;
|
|
5
|
+
indicator: {
|
|
6
|
+
container: string;
|
|
7
|
+
text: string;
|
|
8
|
+
size: {
|
|
9
|
+
'2xs': string;
|
|
10
|
+
xs: string;
|
|
11
|
+
sm: string;
|
|
12
|
+
md: string;
|
|
13
|
+
lg: string;
|
|
14
|
+
xl: string;
|
|
15
|
+
'2xl': string;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
meter: {
|
|
19
|
+
base: string;
|
|
20
|
+
background: string;
|
|
21
|
+
color: string;
|
|
22
|
+
ring: string;
|
|
23
|
+
rounded: string;
|
|
24
|
+
shadow: string;
|
|
25
|
+
size: {
|
|
26
|
+
'2xs': string;
|
|
27
|
+
xs: string;
|
|
28
|
+
sm: string;
|
|
29
|
+
md: string;
|
|
30
|
+
lg: string;
|
|
31
|
+
xl: string;
|
|
32
|
+
'2xl': string;
|
|
33
|
+
};
|
|
34
|
+
appearance: {
|
|
35
|
+
inner: string;
|
|
36
|
+
meter: string;
|
|
37
|
+
bar: string;
|
|
38
|
+
value: string;
|
|
39
|
+
};
|
|
40
|
+
bar: {
|
|
41
|
+
transition: string;
|
|
42
|
+
ring: string;
|
|
43
|
+
rounded: string;
|
|
44
|
+
size: {
|
|
45
|
+
'2xs': string;
|
|
46
|
+
xs: string;
|
|
47
|
+
sm: string;
|
|
48
|
+
md: string;
|
|
49
|
+
lg: string;
|
|
50
|
+
xl: string;
|
|
51
|
+
'2xl': string;
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
label: {
|
|
56
|
+
base: string;
|
|
57
|
+
text: string;
|
|
58
|
+
color: string;
|
|
59
|
+
size: {
|
|
60
|
+
'2xs': string;
|
|
61
|
+
xs: string;
|
|
62
|
+
sm: string;
|
|
63
|
+
md: string;
|
|
64
|
+
lg: string;
|
|
65
|
+
xl: string;
|
|
66
|
+
'2xl': string;
|
|
67
|
+
};
|
|
68
|
+
};
|
|
69
|
+
color: {
|
|
70
|
+
white: string;
|
|
71
|
+
black: string;
|
|
72
|
+
gray: string;
|
|
73
|
+
};
|
|
74
|
+
default: {
|
|
75
|
+
size: string;
|
|
76
|
+
color: string;
|
|
77
|
+
};
|
|
78
|
+
};
|
|
2
79
|
declare const _default: import("vue").DefineComponent<{
|
|
3
80
|
value: {
|
|
4
81
|
type: NumberConstructor;
|
|
@@ -18,32 +95,109 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
18
95
|
};
|
|
19
96
|
label: {
|
|
20
97
|
type: StringConstructor;
|
|
21
|
-
default:
|
|
98
|
+
default: any;
|
|
22
99
|
};
|
|
23
100
|
size: {
|
|
24
|
-
type: PropType<
|
|
25
|
-
default: () =>
|
|
101
|
+
type: PropType<MeterSize>;
|
|
102
|
+
default: () => string;
|
|
26
103
|
validator(value: string): boolean;
|
|
27
104
|
};
|
|
28
105
|
color: {
|
|
29
|
-
type: PropType<
|
|
30
|
-
default: () =>
|
|
106
|
+
type: PropType<MeterColor>;
|
|
107
|
+
default: () => string;
|
|
31
108
|
validator(value: string): boolean;
|
|
32
109
|
};
|
|
33
110
|
icon: {
|
|
34
111
|
type: StringConstructor;
|
|
35
|
-
default:
|
|
112
|
+
default: any;
|
|
36
113
|
};
|
|
37
114
|
class: {
|
|
38
115
|
type: PropType<any>;
|
|
39
116
|
default: () => "";
|
|
40
117
|
};
|
|
41
118
|
ui: {
|
|
42
|
-
type: PropType<
|
|
119
|
+
type: PropType<Partial<typeof config> & {
|
|
120
|
+
strategy?: Strategy;
|
|
121
|
+
}>;
|
|
43
122
|
default: () => {};
|
|
44
123
|
};
|
|
45
124
|
}, {
|
|
46
|
-
ui: import("vue").ComputedRef<
|
|
125
|
+
ui: import("vue").ComputedRef<{
|
|
126
|
+
wrapper: string;
|
|
127
|
+
indicator: {
|
|
128
|
+
container: string;
|
|
129
|
+
text: string;
|
|
130
|
+
size: {
|
|
131
|
+
'2xs': string;
|
|
132
|
+
xs: string;
|
|
133
|
+
sm: string;
|
|
134
|
+
md: string;
|
|
135
|
+
lg: string;
|
|
136
|
+
xl: string;
|
|
137
|
+
'2xl': string;
|
|
138
|
+
};
|
|
139
|
+
};
|
|
140
|
+
meter: {
|
|
141
|
+
base: string;
|
|
142
|
+
background: string;
|
|
143
|
+
color: string;
|
|
144
|
+
ring: string;
|
|
145
|
+
rounded: string;
|
|
146
|
+
shadow: string;
|
|
147
|
+
size: {
|
|
148
|
+
'2xs': string;
|
|
149
|
+
xs: string;
|
|
150
|
+
sm: string;
|
|
151
|
+
md: string;
|
|
152
|
+
lg: string;
|
|
153
|
+
xl: string;
|
|
154
|
+
'2xl': string;
|
|
155
|
+
};
|
|
156
|
+
appearance: {
|
|
157
|
+
inner: string;
|
|
158
|
+
meter: string;
|
|
159
|
+
bar: string;
|
|
160
|
+
value: string;
|
|
161
|
+
};
|
|
162
|
+
bar: {
|
|
163
|
+
transition: string;
|
|
164
|
+
ring: string;
|
|
165
|
+
rounded: string;
|
|
166
|
+
size: {
|
|
167
|
+
'2xs': string;
|
|
168
|
+
xs: string;
|
|
169
|
+
sm: string;
|
|
170
|
+
md: string;
|
|
171
|
+
lg: string;
|
|
172
|
+
xl: string;
|
|
173
|
+
'2xl': string;
|
|
174
|
+
};
|
|
175
|
+
};
|
|
176
|
+
};
|
|
177
|
+
label: {
|
|
178
|
+
base: string;
|
|
179
|
+
text: string;
|
|
180
|
+
color: string;
|
|
181
|
+
size: {
|
|
182
|
+
'2xs': string;
|
|
183
|
+
xs: string;
|
|
184
|
+
sm: string;
|
|
185
|
+
md: string;
|
|
186
|
+
lg: string;
|
|
187
|
+
xl: string;
|
|
188
|
+
'2xl': string;
|
|
189
|
+
};
|
|
190
|
+
};
|
|
191
|
+
color: {
|
|
192
|
+
white: string;
|
|
193
|
+
black: string;
|
|
194
|
+
gray: string;
|
|
195
|
+
};
|
|
196
|
+
default: {
|
|
197
|
+
size: string;
|
|
198
|
+
color: string;
|
|
199
|
+
};
|
|
200
|
+
}>;
|
|
47
201
|
attrs: import("vue").ComputedRef<Pick<{
|
|
48
202
|
[x: string]: unknown;
|
|
49
203
|
}, string>>;
|
|
@@ -75,49 +229,51 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
75
229
|
};
|
|
76
230
|
label: {
|
|
77
231
|
type: StringConstructor;
|
|
78
|
-
default:
|
|
232
|
+
default: any;
|
|
79
233
|
};
|
|
80
234
|
size: {
|
|
81
|
-
type: PropType<
|
|
82
|
-
default: () =>
|
|
235
|
+
type: PropType<MeterSize>;
|
|
236
|
+
default: () => string;
|
|
83
237
|
validator(value: string): boolean;
|
|
84
238
|
};
|
|
85
239
|
color: {
|
|
86
|
-
type: PropType<
|
|
87
|
-
default: () =>
|
|
240
|
+
type: PropType<MeterColor>;
|
|
241
|
+
default: () => string;
|
|
88
242
|
validator(value: string): boolean;
|
|
89
243
|
};
|
|
90
244
|
icon: {
|
|
91
245
|
type: StringConstructor;
|
|
92
|
-
default:
|
|
246
|
+
default: any;
|
|
93
247
|
};
|
|
94
248
|
class: {
|
|
95
249
|
type: PropType<any>;
|
|
96
250
|
default: () => "";
|
|
97
251
|
};
|
|
98
252
|
ui: {
|
|
99
|
-
type: PropType<
|
|
253
|
+
type: PropType<Partial<typeof config> & {
|
|
254
|
+
strategy?: Strategy;
|
|
255
|
+
}>;
|
|
100
256
|
default: () => {};
|
|
101
257
|
};
|
|
102
258
|
}>>, {
|
|
103
|
-
|
|
104
|
-
|
|
259
|
+
size: "xs" | "sm" | "2xs" | "md" | "lg" | "xl" | "2xl";
|
|
260
|
+
ui: {};
|
|
261
|
+
color: MeterColor;
|
|
105
262
|
label: string;
|
|
106
|
-
class: any;
|
|
107
|
-
color: any;
|
|
108
|
-
ui: any;
|
|
109
263
|
icon: string;
|
|
264
|
+
class: any;
|
|
110
265
|
max: number;
|
|
266
|
+
value: number;
|
|
111
267
|
indicator: boolean;
|
|
112
268
|
min: number;
|
|
113
269
|
}, SlotsType<{
|
|
114
270
|
indicator?: {
|
|
115
271
|
percent: number;
|
|
116
272
|
value: number;
|
|
117
|
-
}
|
|
273
|
+
};
|
|
118
274
|
label?: {
|
|
119
275
|
percent: number;
|
|
120
276
|
value: number;
|
|
121
|
-
}
|
|
277
|
+
};
|
|
122
278
|
}>>;
|
|
123
279
|
export default _default;
|
|
@@ -1,4 +1,57 @@
|
|
|
1
1
|
import type { VNode, SlotsType, PropType } from 'vue';
|
|
2
|
+
import Meter from './Meter.vue.js';
|
|
3
|
+
import type { Strategy, MeterSize } from '../../types.js';
|
|
4
|
+
declare const meterGroupConfig: {
|
|
5
|
+
wrapper: string;
|
|
6
|
+
base: string;
|
|
7
|
+
background: string;
|
|
8
|
+
transition: string;
|
|
9
|
+
rounded: string;
|
|
10
|
+
shadow: string;
|
|
11
|
+
list: string;
|
|
12
|
+
orientation: {
|
|
13
|
+
'rounded-none': {
|
|
14
|
+
left: string;
|
|
15
|
+
right: string;
|
|
16
|
+
};
|
|
17
|
+
'rounded-sm': {
|
|
18
|
+
left: string;
|
|
19
|
+
right: string;
|
|
20
|
+
};
|
|
21
|
+
rounded: {
|
|
22
|
+
left: string;
|
|
23
|
+
right: string;
|
|
24
|
+
};
|
|
25
|
+
'rounded-md': {
|
|
26
|
+
left: string;
|
|
27
|
+
right: string;
|
|
28
|
+
};
|
|
29
|
+
'rounded-lg': {
|
|
30
|
+
left: string;
|
|
31
|
+
right: string;
|
|
32
|
+
};
|
|
33
|
+
'rounded-xl': {
|
|
34
|
+
left: string;
|
|
35
|
+
right: string;
|
|
36
|
+
};
|
|
37
|
+
'rounded-2xl': {
|
|
38
|
+
left: string;
|
|
39
|
+
right: string;
|
|
40
|
+
};
|
|
41
|
+
'rounded-3xl': {
|
|
42
|
+
left: string;
|
|
43
|
+
right: string;
|
|
44
|
+
};
|
|
45
|
+
'rounded-full': {
|
|
46
|
+
left: string;
|
|
47
|
+
right: string;
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
default: {
|
|
51
|
+
size: string;
|
|
52
|
+
icon: string;
|
|
53
|
+
};
|
|
54
|
+
};
|
|
2
55
|
declare const _default: import("vue").DefineComponent<{
|
|
3
56
|
min: {
|
|
4
57
|
type: NumberConstructor;
|
|
@@ -9,8 +62,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
9
62
|
default: number;
|
|
10
63
|
};
|
|
11
64
|
size: {
|
|
12
|
-
type: PropType<
|
|
13
|
-
default: () =>
|
|
65
|
+
type: PropType<MeterSize>;
|
|
66
|
+
default: () => string;
|
|
14
67
|
validator(value: string): boolean;
|
|
15
68
|
};
|
|
16
69
|
indicator: {
|
|
@@ -19,14 +72,16 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
19
72
|
};
|
|
20
73
|
icon: {
|
|
21
74
|
type: StringConstructor;
|
|
22
|
-
default: () =>
|
|
75
|
+
default: () => string;
|
|
23
76
|
};
|
|
24
77
|
class: {
|
|
25
78
|
type: PropType<any>;
|
|
26
79
|
default: () => "";
|
|
27
80
|
};
|
|
28
81
|
ui: {
|
|
29
|
-
type: PropType<
|
|
82
|
+
type: PropType<Partial<typeof meterGroupConfig> & {
|
|
83
|
+
strategy?: Strategy;
|
|
84
|
+
}>;
|
|
30
85
|
default: () => {};
|
|
31
86
|
};
|
|
32
87
|
}, () => VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
@@ -41,8 +96,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
41
96
|
default: number;
|
|
42
97
|
};
|
|
43
98
|
size: {
|
|
44
|
-
type: PropType<
|
|
45
|
-
default: () =>
|
|
99
|
+
type: PropType<MeterSize>;
|
|
100
|
+
default: () => string;
|
|
46
101
|
validator(value: string): boolean;
|
|
47
102
|
};
|
|
48
103
|
indicator: {
|
|
@@ -51,28 +106,30 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
51
106
|
};
|
|
52
107
|
icon: {
|
|
53
108
|
type: StringConstructor;
|
|
54
|
-
default: () =>
|
|
109
|
+
default: () => string;
|
|
55
110
|
};
|
|
56
111
|
class: {
|
|
57
112
|
type: PropType<any>;
|
|
58
113
|
default: () => "";
|
|
59
114
|
};
|
|
60
115
|
ui: {
|
|
61
|
-
type: PropType<
|
|
116
|
+
type: PropType<Partial<typeof meterGroupConfig> & {
|
|
117
|
+
strategy?: Strategy;
|
|
118
|
+
}>;
|
|
62
119
|
default: () => {};
|
|
63
120
|
};
|
|
64
121
|
}>>, {
|
|
65
|
-
size: "
|
|
66
|
-
ui:
|
|
122
|
+
size: "xs" | "sm" | "2xs" | "md" | "lg" | "xl" | "2xl";
|
|
123
|
+
ui: {};
|
|
67
124
|
icon: string;
|
|
68
125
|
class: any;
|
|
69
126
|
max: number;
|
|
70
|
-
min: number;
|
|
71
127
|
indicator: boolean;
|
|
128
|
+
min: number;
|
|
72
129
|
}, SlotsType<{
|
|
73
|
-
default?:
|
|
130
|
+
default?: (typeof Meter)[];
|
|
74
131
|
indicator?: {
|
|
75
132
|
percent: number;
|
|
76
|
-
}
|
|
133
|
+
};
|
|
77
134
|
}>>;
|
|
78
135
|
export default _default;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { h, cloneVNode, computed, toRef, defineComponent } from "vue";
|
|
2
2
|
import { twJoin } from "tailwind-merge";
|
|
3
|
-
import UIcon from "
|
|
4
|
-
import { useUI } from "../../composables/useUI.
|
|
5
|
-
import { mergeConfig, getSlotsChildren } from "../../utils/index.
|
|
3
|
+
import { UIcon } from "#components";
|
|
4
|
+
import { useUI } from "../../composables/useUI.js";
|
|
5
|
+
import { mergeConfig, getSlotsChildren } from "../../utils/index.js";
|
|
6
6
|
import appConfig from "#build/app.config";
|
|
7
7
|
import { meter, meterGroup } from "#ui/ui.config";
|
|
8
8
|
const meterConfig = mergeConfig(appConfig.ui.strategy, appConfig.ui.meter, meter);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div :class="ui.wrapper"
|
|
2
|
+
<div :class="ui.wrapper" role="progressbar">
|
|
3
3
|
<slot v-if="indicator || $slots.indicator" name="indicator" v-bind="{ percent }">
|
|
4
4
|
<div v-if="!isSteps" :class="indicatorContainerClass" :style="{ width: `${percent}%` }">
|
|
5
5
|
<div :class="indicatorClass">
|
|
@@ -8,7 +8,12 @@
|
|
|
8
8
|
</div>
|
|
9
9
|
</slot>
|
|
10
10
|
|
|
11
|
-
<progress
|
|
11
|
+
<progress
|
|
12
|
+
:aria-valuemax="realMax"
|
|
13
|
+
:aria-valuenow="value"
|
|
14
|
+
:class="progressClass"
|
|
15
|
+
v-bind="{ value, max: realMax, ...attrs }"
|
|
16
|
+
>
|
|
12
17
|
{{ percent !== undefined ? `${Math.round(percent)}%` : undefined }}
|
|
13
18
|
</progress>
|
|
14
19
|
|