@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.
Files changed (234) hide show
  1. package/dist/module.d.mts +3 -1988
  2. package/dist/module.d.ts +3 -1988
  3. package/dist/module.json +6 -2
  4. package/dist/module.mjs +6 -71
  5. package/dist/runtime/components/data/Table.vue +53 -15
  6. package/dist/runtime/components/data/Table.vue.d.ts +249 -50
  7. package/dist/runtime/components/elements/Accordion.vue.d.ts +140 -14
  8. package/dist/runtime/components/elements/Alert.vue +1 -1
  9. package/dist/runtime/components/elements/Alert.vue.d.ts +106 -23
  10. package/dist/runtime/components/elements/Avatar.vue.d.ts +146 -25
  11. package/dist/runtime/components/elements/AvatarGroup.d.ts +20 -11
  12. package/dist/runtime/components/elements/{AvatarGroup.mjs → AvatarGroup.js} +2 -2
  13. package/dist/runtime/components/elements/Badge.vue.d.ts +53 -16
  14. package/dist/runtime/components/elements/Button.vue.d.ts +259 -96
  15. package/dist/runtime/components/elements/ButtonGroup.d.ts +113 -9
  16. package/dist/runtime/components/elements/{ButtonGroup.mjs → ButtonGroup.js} +3 -3
  17. package/dist/runtime/components/elements/Carousel.vue.d.ts +75 -20
  18. package/dist/runtime/components/elements/Chip.vue.d.ts +95 -23
  19. package/dist/runtime/components/elements/Dropdown.vue +3 -6
  20. package/dist/runtime/components/elements/Dropdown.vue.d.ts +135 -16
  21. package/dist/runtime/components/elements/Icon.vue +16 -15
  22. package/dist/runtime/components/elements/Icon.vue.d.ts +33 -10
  23. package/dist/runtime/components/elements/Kbd.vue.d.ts +45 -10
  24. package/dist/runtime/components/elements/Link.vue.d.ts +72 -72
  25. package/dist/runtime/components/elements/Meter.vue +1 -1
  26. package/dist/runtime/components/elements/Meter.vue.d.ts +179 -23
  27. package/dist/runtime/components/elements/MeterGroup.d.ts +72 -15
  28. package/dist/runtime/components/elements/{MeterGroup.mjs → MeterGroup.js} +3 -3
  29. package/dist/runtime/components/elements/Progress.vue +7 -2
  30. package/dist/runtime/components/elements/Progress.vue.d.ts +188 -32
  31. package/dist/runtime/components/forms/Checkbox.vue +5 -3
  32. package/dist/runtime/components/forms/Checkbox.vue.d.ts +73 -32
  33. package/dist/runtime/components/forms/Form.vue +1 -2
  34. package/dist/runtime/components/forms/Form.vue.d.ts +11 -10
  35. package/dist/runtime/components/forms/FormGroup.vue +1 -1
  36. package/dist/runtime/components/forms/FormGroup.vue.d.ts +78 -25
  37. package/dist/runtime/components/forms/Input.vue +1 -1
  38. package/dist/runtime/components/forms/Input.vue.d.ts +272 -55
  39. package/dist/runtime/components/forms/InputMenu.vue +11 -8
  40. package/dist/runtime/components/forms/InputMenu.vue.d.ts +431 -81
  41. package/dist/runtime/components/forms/Radio.vue +5 -3
  42. package/dist/runtime/components/forms/Radio.vue.d.ts +71 -32
  43. package/dist/runtime/components/forms/RadioGroup.vue +11 -3
  44. package/dist/runtime/components/forms/RadioGroup.vue.d.ts +83 -25
  45. package/dist/runtime/components/forms/Range.vue.d.ts +153 -24
  46. package/dist/runtime/components/forms/Select.vue +1 -1
  47. package/dist/runtime/components/forms/Select.vue.d.ts +272 -49
  48. package/dist/runtime/components/forms/SelectMenu.vue +49 -23
  49. package/dist/runtime/components/forms/SelectMenu.vue.d.ts +449 -84
  50. package/dist/runtime/components/forms/Textarea.vue.d.ts +258 -43
  51. package/dist/runtime/components/forms/Toggle.vue.d.ts +152 -25
  52. package/dist/runtime/components/layout/Card.vue.d.ts +54 -4
  53. package/dist/runtime/components/layout/Container.vue.d.ts +18 -4
  54. package/dist/runtime/components/layout/Divider.vue.d.ts +121 -16
  55. package/dist/runtime/components/layout/Skeleton.vue +5 -1
  56. package/dist/runtime/components/layout/Skeleton.vue.d.ts +27 -4
  57. package/dist/runtime/components/navigation/Breadcrumb.vue.d.ts +52 -9
  58. package/dist/runtime/components/navigation/CommandPalette.vue +7 -4
  59. package/dist/runtime/components/navigation/CommandPalette.vue.d.ts +193 -35
  60. package/dist/runtime/components/navigation/CommandPaletteGroup.vue.d.ts +5 -7
  61. package/dist/runtime/components/navigation/HorizontalNavigation.vue.d.ts +64 -9
  62. package/dist/runtime/components/navigation/Pagination.vue +2 -4
  63. package/dist/runtime/components/navigation/Pagination.vue.d.ts +83 -11
  64. package/dist/runtime/components/navigation/Tabs.vue +10 -0
  65. package/dist/runtime/components/navigation/Tabs.vue.d.ts +85 -14
  66. package/dist/runtime/components/navigation/VerticalNavigation.vue.d.ts +78 -9
  67. package/dist/runtime/components/overlays/ContextMenu.vue.d.ts +71 -8
  68. package/dist/runtime/components/overlays/Modal.vue.d.ts +85 -11
  69. package/dist/runtime/components/overlays/Notification.vue +1 -1
  70. package/dist/runtime/components/overlays/Notification.vue.d.ts +127 -26
  71. package/dist/runtime/components/overlays/Notifications.vue.d.ts +31 -16
  72. package/dist/runtime/components/overlays/Popover.vue +3 -6
  73. package/dist/runtime/components/overlays/Popover.vue.d.ts +110 -15
  74. package/dist/runtime/components/overlays/Slideover.vue.d.ts +86 -14
  75. package/dist/runtime/components/overlays/Tooltip.vue.d.ts +90 -15
  76. package/dist/runtime/composables/{defineShortcuts.mjs → defineShortcuts.js} +1 -1
  77. package/dist/runtime/composables/{useButtonGroup.mjs → useButtonGroup.js} +8 -9
  78. package/dist/runtime/composables/useCopyToClipboard.d.ts +1 -1
  79. package/dist/runtime/composables/{useCopyToClipboard.mjs → useCopyToClipboard.js} +1 -1
  80. package/dist/runtime/composables/useFormGroup.d.ts +5 -5
  81. package/dist/runtime/composables/useFormGroup.js +49 -0
  82. package/dist/runtime/composables/useModal.d.ts +3 -3
  83. package/dist/runtime/composables/{useModal.mjs → useModal.js} +2 -4
  84. package/dist/runtime/composables/usePopper.d.ts +90 -54
  85. package/dist/runtime/composables/useShortcuts.d.ts +4 -4
  86. package/dist/runtime/composables/useSlideover.d.ts +3 -3
  87. package/dist/runtime/composables/{useSlideover.mjs → useSlideover.js} +2 -4
  88. package/dist/runtime/composables/useTimer.d.ts +1 -1
  89. package/dist/runtime/composables/useToast.d.ts +11 -11
  90. package/dist/runtime/composables/useUI.d.ts +1 -1
  91. package/dist/runtime/composables/{useUI.mjs → useUI.js} +1 -1
  92. package/dist/runtime/plugins/colors.d.ts +1 -1
  93. package/dist/runtime/plugins/{colors.mjs → colors.js} +1 -1
  94. package/dist/runtime/plugins/modals.d.ts +1 -1
  95. package/dist/runtime/plugins/{modals.mjs → modals.js} +1 -1
  96. package/dist/runtime/plugins/slideovers.d.ts +1 -1
  97. package/dist/runtime/plugins/{slideovers.mjs → slideovers.js} +1 -1
  98. package/dist/runtime/types/accordion.d.ts +6 -7
  99. package/dist/runtime/types/accordion.js +0 -0
  100. package/dist/runtime/types/alert.d.ts +8 -10
  101. package/dist/runtime/types/alert.js +0 -0
  102. package/dist/runtime/types/avatar.d.ts +13 -15
  103. package/dist/runtime/types/avatar.js +0 -0
  104. package/dist/runtime/types/badge.d.ts +11 -13
  105. package/dist/runtime/types/badge.js +0 -0
  106. package/dist/runtime/types/breadcrumb.d.ts +6 -8
  107. package/dist/runtime/types/breadcrumb.js +0 -0
  108. package/dist/runtime/types/button.d.ts +27 -29
  109. package/dist/runtime/types/button.js +0 -0
  110. package/dist/runtime/types/chip.d.ts +11 -13
  111. package/dist/runtime/types/chip.js +0 -0
  112. package/dist/runtime/types/clipboard.d.ts +7 -1
  113. package/dist/runtime/types/clipboard.js +0 -0
  114. package/dist/runtime/types/command-palette.d.ts +23 -24
  115. package/dist/runtime/types/command-palette.js +0 -0
  116. package/dist/runtime/types/component.d.ts +17 -14
  117. package/dist/runtime/types/component.js +0 -0
  118. package/dist/runtime/types/divider.d.ts +2 -3
  119. package/dist/runtime/types/divider.js +0 -0
  120. package/dist/runtime/types/dropdown.d.ts +12 -13
  121. package/dist/runtime/types/dropdown.js +0 -0
  122. package/dist/runtime/types/form-group.d.ts +4 -5
  123. package/dist/runtime/types/form-group.js +0 -0
  124. package/dist/runtime/types/form.d.ts +29 -28
  125. package/dist/runtime/types/form.js +0 -0
  126. package/dist/runtime/types/horizontal-navigation.d.ts +10 -11
  127. package/dist/runtime/types/horizontal-navigation.js +0 -0
  128. package/dist/runtime/types/index.d.ts +31 -31
  129. package/dist/runtime/types/index.js +31 -0
  130. package/dist/runtime/types/input.d.ts +7 -8
  131. package/dist/runtime/types/input.js +0 -0
  132. package/dist/runtime/types/kbd.d.ts +4 -5
  133. package/dist/runtime/types/kbd.js +0 -0
  134. package/dist/runtime/types/link.d.ts +9 -10
  135. package/dist/runtime/types/link.js +0 -0
  136. package/dist/runtime/types/meter.d.ts +4 -5
  137. package/dist/runtime/types/meter.js +0 -0
  138. package/dist/runtime/types/modal.d.ts +13 -15
  139. package/dist/runtime/types/modal.js +0 -0
  140. package/dist/runtime/types/notification.d.ts +17 -20
  141. package/dist/runtime/types/notification.js +0 -0
  142. package/dist/runtime/types/popper.d.ts +13 -15
  143. package/dist/runtime/types/popper.js +0 -0
  144. package/dist/runtime/types/progress.d.ts +5 -6
  145. package/dist/runtime/types/progress.js +0 -0
  146. package/dist/runtime/types/range.d.ts +6 -7
  147. package/dist/runtime/types/range.js +0 -0
  148. package/dist/runtime/types/select.d.ts +7 -8
  149. package/dist/runtime/types/select.js +0 -0
  150. package/dist/runtime/types/slideover.d.ts +10 -12
  151. package/dist/runtime/types/slideover.js +0 -0
  152. package/dist/runtime/types/tabs.d.ts +6 -5
  153. package/dist/runtime/types/tabs.js +0 -0
  154. package/dist/runtime/types/textarea.d.ts +7 -8
  155. package/dist/runtime/types/textarea.js +0 -0
  156. package/dist/runtime/types/toggle.d.ts +6 -7
  157. package/dist/runtime/types/toggle.js +0 -0
  158. package/dist/runtime/types/tooltip.d.ts +5 -5
  159. package/dist/runtime/types/tooltip.js +0 -0
  160. package/dist/runtime/types/utils.d.ts +15 -27
  161. package/dist/runtime/types/utils.js +0 -0
  162. package/dist/runtime/types/vertical-navigation.d.ts +10 -11
  163. package/dist/runtime/types/vertical-navigation.js +0 -0
  164. package/dist/runtime/ui.config/data/table.d.ts +10 -0
  165. package/dist/runtime/ui.config/data/{table.mjs → table.js} +10 -0
  166. package/dist/runtime/ui.config/elements/accordion.d.ts +1 -0
  167. package/dist/runtime/ui.config/elements/{accordion.mjs → accordion.js} +3 -2
  168. package/dist/runtime/ui.config/elements/alert.d.ts +2 -2
  169. package/dist/runtime/ui.config/elements/avatar.d.ts +2 -2
  170. package/dist/runtime/ui.config/elements/{carousel.mjs → carousel.js} +1 -1
  171. package/dist/runtime/ui.config/elements/{dropdown.mjs → dropdown.js} +1 -1
  172. package/dist/runtime/ui.config/forms/{inputMenu.mjs → inputMenu.js} +1 -1
  173. package/dist/runtime/ui.config/forms/{select.mjs → select.js} +1 -1
  174. package/dist/runtime/ui.config/forms/{selectMenu.mjs → selectMenu.js} +2 -2
  175. package/dist/runtime/ui.config/forms/{textarea.mjs → textarea.js} +1 -1
  176. package/dist/runtime/ui.config/forms/toggle.d.ts +2 -2
  177. package/dist/runtime/ui.config/index.d.ts +43 -43
  178. package/dist/runtime/ui.config/index.js +43 -0
  179. package/dist/runtime/ui.config/navigation/{breadcrumb.mjs → breadcrumb.js} +2 -2
  180. package/dist/runtime/ui.config/navigation/commandPalette.d.ts +1 -1
  181. package/dist/runtime/ui.config/navigation/tabs.d.ts +1 -0
  182. package/dist/runtime/ui.config/navigation/{tabs.mjs → tabs.js} +2 -1
  183. package/dist/runtime/ui.config/overlays/{contextMenu.mjs → contextMenu.js} +1 -1
  184. package/dist/runtime/ui.config/overlays/{modal.mjs → modal.js} +2 -2
  185. package/dist/runtime/ui.config/overlays/notification.d.ts +1 -1
  186. package/dist/runtime/ui.config/overlays/{popover.mjs → popover.js} +1 -1
  187. package/dist/runtime/ui.config/overlays/{slideover.mjs → slideover.js} +2 -2
  188. package/dist/runtime/ui.config/overlays/{tooltip.mjs → tooltip.js} +1 -1
  189. package/dist/runtime/utils/colors.d.ts +2 -2
  190. package/dist/runtime/utils/{colors.mjs → colors.js} +1 -1
  191. package/dist/runtime/utils/index.d.ts +4 -4
  192. package/dist/runtime/utils/{index.mjs → index.js} +2 -2
  193. package/dist/runtime/utils/link.d.ts +26 -24
  194. package/dist/runtime/utils/{link.mjs → link.js} +1 -1
  195. package/dist/types.d.mts +1 -16
  196. package/dist/types.d.ts +1 -16
  197. package/package.json +19 -21
  198. package/dist/runtime/composables/useFormGroup.mjs +0 -45
  199. package/dist/runtime/ui.config/index.mjs +0 -43
  200. /package/dist/runtime/composables/{useCarouselScroll.mjs → useCarouselScroll.js} +0 -0
  201. /package/dist/runtime/composables/{usePopper.mjs → usePopper.js} +0 -0
  202. /package/dist/runtime/composables/{useShortcuts.mjs → useShortcuts.js} +0 -0
  203. /package/dist/runtime/composables/{useTimer.mjs → useTimer.js} +0 -0
  204. /package/dist/runtime/composables/{useToast.mjs → useToast.js} +0 -0
  205. /package/dist/runtime/ui.config/elements/{alert.mjs → alert.js} +0 -0
  206. /package/dist/runtime/ui.config/elements/{avatar.mjs → avatar.js} +0 -0
  207. /package/dist/runtime/ui.config/elements/{avatarGroup.mjs → avatarGroup.js} +0 -0
  208. /package/dist/runtime/ui.config/elements/{badge.mjs → badge.js} +0 -0
  209. /package/dist/runtime/ui.config/elements/{button.mjs → button.js} +0 -0
  210. /package/dist/runtime/ui.config/elements/{buttonGroup.mjs → buttonGroup.js} +0 -0
  211. /package/dist/runtime/ui.config/elements/{chip.mjs → chip.js} +0 -0
  212. /package/dist/runtime/ui.config/elements/{kbd.mjs → kbd.js} +0 -0
  213. /package/dist/runtime/ui.config/elements/{meter.mjs → meter.js} +0 -0
  214. /package/dist/runtime/ui.config/elements/{meterGroup.mjs → meterGroup.js} +0 -0
  215. /package/dist/runtime/ui.config/elements/{progress.mjs → progress.js} +0 -0
  216. /package/dist/runtime/ui.config/forms/{checkbox.mjs → checkbox.js} +0 -0
  217. /package/dist/runtime/ui.config/forms/{formGroup.mjs → formGroup.js} +0 -0
  218. /package/dist/runtime/ui.config/forms/{input.mjs → input.js} +0 -0
  219. /package/dist/runtime/ui.config/forms/{radio.mjs → radio.js} +0 -0
  220. /package/dist/runtime/ui.config/forms/{radioGroup.mjs → radioGroup.js} +0 -0
  221. /package/dist/runtime/ui.config/forms/{range.mjs → range.js} +0 -0
  222. /package/dist/runtime/ui.config/forms/{toggle.mjs → toggle.js} +0 -0
  223. /package/dist/runtime/ui.config/layout/{card.mjs → card.js} +0 -0
  224. /package/dist/runtime/ui.config/layout/{container.mjs → container.js} +0 -0
  225. /package/dist/runtime/ui.config/layout/{divider.mjs → divider.js} +0 -0
  226. /package/dist/runtime/ui.config/layout/{skeleton.mjs → skeleton.js} +0 -0
  227. /package/dist/runtime/ui.config/navigation/{commandPalette.mjs → commandPalette.js} +0 -0
  228. /package/dist/runtime/ui.config/navigation/{horizontalNavigation.mjs → horizontalNavigation.js} +0 -0
  229. /package/dist/runtime/ui.config/navigation/{pagination.mjs → pagination.js} +0 -0
  230. /package/dist/runtime/ui.config/navigation/{verticalNavigation.mjs → verticalNavigation.js} +0 -0
  231. /package/dist/runtime/ui.config/overlays/{notification.mjs → notification.js} +0 -0
  232. /package/dist/runtime/ui.config/overlays/{notifications.mjs → notifications.js} +0 -0
  233. /package/dist/runtime/ui.config/{popper.mjs → popper.js} +0 -0
  234. /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: null;
98
+ default: any;
22
99
  };
23
100
  size: {
24
- type: PropType<"sm" | "2xs" | "md" | "xs" | "lg" | "xl" | "2xl">;
25
- default: () => any;
101
+ type: PropType<MeterSize>;
102
+ default: () => string;
26
103
  validator(value: string): boolean;
27
104
  };
28
105
  color: {
29
- type: PropType<any>;
30
- default: () => any;
106
+ type: PropType<MeterColor>;
107
+ default: () => string;
31
108
  validator(value: string): boolean;
32
109
  };
33
110
  icon: {
34
111
  type: StringConstructor;
35
- default: null;
112
+ default: any;
36
113
  };
37
114
  class: {
38
115
  type: PropType<any>;
39
116
  default: () => "";
40
117
  };
41
118
  ui: {
42
- type: PropType<any>;
119
+ type: PropType<Partial<typeof config> & {
120
+ strategy?: Strategy;
121
+ }>;
43
122
  default: () => {};
44
123
  };
45
124
  }, {
46
- ui: import("vue").ComputedRef<any>;
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: null;
232
+ default: any;
79
233
  };
80
234
  size: {
81
- type: PropType<"sm" | "2xs" | "md" | "xs" | "lg" | "xl" | "2xl">;
82
- default: () => any;
235
+ type: PropType<MeterSize>;
236
+ default: () => string;
83
237
  validator(value: string): boolean;
84
238
  };
85
239
  color: {
86
- type: PropType<any>;
87
- default: () => any;
240
+ type: PropType<MeterColor>;
241
+ default: () => string;
88
242
  validator(value: string): boolean;
89
243
  };
90
244
  icon: {
91
245
  type: StringConstructor;
92
- default: null;
246
+ default: any;
93
247
  };
94
248
  class: {
95
249
  type: PropType<any>;
96
250
  default: () => "";
97
251
  };
98
252
  ui: {
99
- type: PropType<any>;
253
+ type: PropType<Partial<typeof config> & {
254
+ strategy?: Strategy;
255
+ }>;
100
256
  default: () => {};
101
257
  };
102
258
  }>>, {
103
- value: number;
104
- size: "sm" | "2xs" | "md" | "xs" | "lg" | "xl" | "2xl";
105
- label: string;
259
+ size: "xs" | "sm" | "2xs" | "md" | "lg" | "xl" | "2xl";
106
260
  class: any;
107
- color: any;
108
- ui: any;
261
+ ui: {};
262
+ color: MeterColor;
263
+ label: string;
109
264
  icon: string;
110
- max: number;
111
265
  indicator: boolean;
266
+ value: number;
267
+ max: number;
112
268
  min: number;
113
269
  }, SlotsType<{
114
270
  indicator?: {
115
271
  percent: number;
116
272
  value: number;
117
- } | undefined;
273
+ };
118
274
  label?: {
119
275
  percent: number;
120
276
  value: number;
121
- } | undefined;
277
+ };
122
278
  }>>;
123
279
  export default _default;
@@ -1,5 +1,58 @@
1
1
  import type { VNode, SlotsType, PropType } from 'vue';
2
- declare const _default: import("vue").DefineComponent<{
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
+ };
55
+ declare const _default: import("@vue/runtime-core").DefineComponent<{
3
56
  min: {
4
57
  type: NumberConstructor;
5
58
  default: number;
@@ -9,8 +62,8 @@ declare const _default: import("vue").DefineComponent<{
9
62
  default: number;
10
63
  };
11
64
  size: {
12
- type: PropType<"sm" | "2xs" | "md" | "xs" | "lg" | "xl" | "2xl">;
13
- default: () => any;
65
+ type: PropType<MeterSize>;
66
+ default: () => string;
14
67
  validator(value: string): boolean;
15
68
  };
16
69
  indicator: {
@@ -19,19 +72,21 @@ declare const _default: import("vue").DefineComponent<{
19
72
  };
20
73
  icon: {
21
74
  type: StringConstructor;
22
- default: () => any;
75
+ default: () => string;
23
76
  };
24
77
  class: {
25
78
  type: PropType<any>;
26
79
  default: () => "";
27
80
  };
28
81
  ui: {
29
- type: PropType<any>;
82
+ type: PropType<Partial<typeof meterGroupConfig> & {
83
+ strategy?: Strategy;
84
+ }>;
30
85
  default: () => {};
31
86
  };
32
- }, () => VNode<import("vue").RendererNode, import("vue").RendererElement, {
87
+ }, () => VNode<import("@vue/runtime-core").RendererNode, import("@vue/runtime-core").RendererElement, {
33
88
  [key: string]: any;
34
- }>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
89
+ }>, unknown, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").PublicProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<{
35
90
  min: {
36
91
  type: NumberConstructor;
37
92
  default: number;
@@ -41,8 +96,8 @@ declare const _default: import("vue").DefineComponent<{
41
96
  default: number;
42
97
  };
43
98
  size: {
44
- type: PropType<"sm" | "2xs" | "md" | "xs" | "lg" | "xl" | "2xl">;
45
- default: () => any;
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: () => any;
109
+ default: () => string;
55
110
  };
56
111
  class: {
57
112
  type: PropType<any>;
58
113
  default: () => "";
59
114
  };
60
115
  ui: {
61
- type: PropType<any>;
116
+ type: PropType<Partial<typeof meterGroupConfig> & {
117
+ strategy?: Strategy;
118
+ }>;
62
119
  default: () => {};
63
120
  };
64
121
  }>>, {
65
- size: "sm" | "2xs" | "md" | "xs" | "lg" | "xl" | "2xl";
66
- ui: any;
122
+ size: "xs" | "sm" | "2xs" | "md" | "lg" | "xl" | "2xl";
123
+ ui: {};
67
124
  icon: string;
68
125
  class: any;
69
126
  max: number;
70
127
  min: number;
71
128
  indicator: boolean;
72
129
  }, SlotsType<{
73
- default?: any[] | undefined;
130
+ default?: (typeof Meter)[];
74
131
  indicator?: {
75
132
  percent: number;
76
- } | undefined;
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 "./Icon.vue";
4
- import { useUI } from "../../composables/useUI.mjs";
5
- import { mergeConfig, getSlotsChildren } from "../../utils/index.mjs";
3
+ import UIcon from "../elements/Icon.vue";
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" v-bind="attrs">
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 :class="progressClass" v-bind="{ value, max: realMax }">
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