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