@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,5 +1,113 @@
1
1
  import type { PropType } from 'vue';
2
- import type { TextareaSize, TextareaVariant } from '../../types';
2
+ import type { TextareaSize, TextareaColor, TextareaVariant, Strategy } from '../../types.js';
3
+ declare const config: {
4
+ form: string;
5
+ default: {
6
+ size: string;
7
+ color: string;
8
+ variant: string;
9
+ };
10
+ wrapper: string;
11
+ base: string;
12
+ rounded: string;
13
+ placeholder: string;
14
+ file: {
15
+ base: string;
16
+ };
17
+ size: {
18
+ '2xs': string;
19
+ xs: string;
20
+ sm: string;
21
+ md: string;
22
+ lg: string;
23
+ xl: string;
24
+ };
25
+ gap: {
26
+ '2xs': string;
27
+ xs: string;
28
+ sm: string;
29
+ md: string;
30
+ lg: string;
31
+ xl: string;
32
+ };
33
+ padding: {
34
+ '2xs': string;
35
+ xs: string;
36
+ sm: string;
37
+ md: string;
38
+ lg: string;
39
+ xl: string;
40
+ };
41
+ leading: {
42
+ padding: {
43
+ '2xs': string;
44
+ xs: string;
45
+ sm: string;
46
+ md: string;
47
+ lg: string;
48
+ xl: string;
49
+ };
50
+ };
51
+ trailing: {
52
+ padding: {
53
+ '2xs': string;
54
+ xs: string;
55
+ sm: string;
56
+ md: string;
57
+ lg: string;
58
+ xl: string;
59
+ };
60
+ };
61
+ color: {
62
+ white: {
63
+ outline: string;
64
+ };
65
+ gray: {
66
+ outline: string;
67
+ };
68
+ };
69
+ variant: {
70
+ outline: string;
71
+ none: string;
72
+ };
73
+ icon: {
74
+ base: string;
75
+ color: string;
76
+ loading: string;
77
+ size: {
78
+ '2xs': string;
79
+ xs: string;
80
+ sm: string;
81
+ md: string;
82
+ lg: string;
83
+ xl: string;
84
+ };
85
+ leading: {
86
+ wrapper: string;
87
+ pointer: string;
88
+ padding: {
89
+ '2xs': string;
90
+ xs: string;
91
+ sm: string;
92
+ md: string;
93
+ lg: string;
94
+ xl: string;
95
+ };
96
+ };
97
+ trailing: {
98
+ wrapper: string;
99
+ pointer: string;
100
+ padding: {
101
+ '2xs': string;
102
+ xs: string;
103
+ sm: string;
104
+ md: string;
105
+ lg: string;
106
+ xl: string;
107
+ };
108
+ };
109
+ };
110
+ };
3
111
  declare const _default: import("vue").DefineComponent<{
4
112
  modelValue: {
5
113
  type: (StringConstructor | NumberConstructor)[];
@@ -7,15 +115,15 @@ declare const _default: import("vue").DefineComponent<{
7
115
  };
8
116
  id: {
9
117
  type: StringConstructor;
10
- default: null;
118
+ default: any;
11
119
  };
12
120
  name: {
13
121
  type: StringConstructor;
14
- default: null;
122
+ default: any;
15
123
  };
16
124
  placeholder: {
17
125
  type: StringConstructor;
18
- default: null;
126
+ default: any;
19
127
  };
20
128
  required: {
21
129
  type: BooleanConstructor;
@@ -55,47 +163,156 @@ declare const _default: import("vue").DefineComponent<{
55
163
  };
56
164
  size: {
57
165
  type: PropType<TextareaSize>;
58
- default: null;
166
+ default: any;
59
167
  validator(value: string): boolean;
60
168
  };
61
169
  color: {
62
- type: PropType<any>;
63
- default: () => any;
170
+ type: PropType<TextareaColor>;
171
+ default: () => string;
64
172
  validator(value: string): boolean;
65
173
  };
66
174
  variant: {
67
175
  type: PropType<TextareaVariant>;
68
- default: () => any;
176
+ default: () => string;
69
177
  validator(value: string): boolean;
70
178
  };
71
179
  textareaClass: {
72
180
  type: StringConstructor;
73
- default: null;
181
+ default: any;
74
182
  };
75
183
  class: {
76
184
  type: PropType<any>;
77
185
  default: () => "";
78
186
  };
79
187
  ui: {
80
- type: PropType<any>;
188
+ type: PropType<Partial<typeof config> & {
189
+ strategy?: Strategy;
190
+ }>;
81
191
  default: () => {};
82
192
  };
83
193
  modelModifiers: {
84
194
  type: PropType<{
85
- trim?: boolean | undefined;
86
- lazy?: boolean | undefined;
87
- number?: boolean | undefined;
195
+ trim?: boolean;
196
+ lazy?: boolean;
197
+ number?: boolean;
88
198
  }>;
89
199
  default: () => {};
90
200
  };
91
201
  }, {
92
- ui: import("vue").ComputedRef<any>;
202
+ ui: import("vue").ComputedRef<{
203
+ form: string;
204
+ default: {
205
+ size: string;
206
+ color: string;
207
+ variant: string;
208
+ };
209
+ wrapper: string;
210
+ base: string;
211
+ rounded: string;
212
+ placeholder: string;
213
+ file: {
214
+ base: string;
215
+ };
216
+ size: {
217
+ '2xs': string;
218
+ xs: string;
219
+ sm: string;
220
+ md: string;
221
+ lg: string;
222
+ xl: string;
223
+ };
224
+ gap: {
225
+ '2xs': string;
226
+ xs: string;
227
+ sm: string;
228
+ md: string;
229
+ lg: string;
230
+ xl: string;
231
+ };
232
+ padding: {
233
+ '2xs': string;
234
+ xs: string;
235
+ sm: string;
236
+ md: string;
237
+ lg: string;
238
+ xl: string;
239
+ };
240
+ leading: {
241
+ padding: {
242
+ '2xs': string;
243
+ xs: string;
244
+ sm: string;
245
+ md: string;
246
+ lg: string;
247
+ xl: string;
248
+ };
249
+ };
250
+ trailing: {
251
+ padding: {
252
+ '2xs': string;
253
+ xs: string;
254
+ sm: string;
255
+ md: string;
256
+ lg: string;
257
+ xl: string;
258
+ };
259
+ };
260
+ color: {
261
+ white: {
262
+ outline: string;
263
+ };
264
+ gray: {
265
+ outline: string;
266
+ };
267
+ };
268
+ variant: {
269
+ outline: string;
270
+ none: string;
271
+ };
272
+ icon: {
273
+ base: string;
274
+ color: string;
275
+ loading: string;
276
+ size: {
277
+ '2xs': string;
278
+ xs: string;
279
+ sm: string;
280
+ md: string;
281
+ lg: string;
282
+ xl: string;
283
+ };
284
+ leading: {
285
+ wrapper: string;
286
+ pointer: string;
287
+ padding: {
288
+ '2xs': string;
289
+ xs: string;
290
+ sm: string;
291
+ md: string;
292
+ lg: string;
293
+ xl: string;
294
+ };
295
+ };
296
+ trailing: {
297
+ wrapper: string;
298
+ pointer: string;
299
+ padding: {
300
+ '2xs': string;
301
+ xs: string;
302
+ sm: string;
303
+ md: string;
304
+ lg: string;
305
+ xl: string;
306
+ };
307
+ };
308
+ };
309
+ }>;
93
310
  attrs: import("vue").ComputedRef<Pick<{
94
311
  [x: string]: unknown;
95
312
  }, string>>;
96
- name: import("vue").ComputedRef<string | undefined>;
97
- inputId: import("vue").ComputedRef<string | undefined>;
98
- textarea: import("vue").Ref<HTMLTextAreaElement | null>;
313
+ name: import("vue").ComputedRef<string>;
314
+ inputId: import("vue").ComputedRef<string>;
315
+ textarea: import("vue").Ref<HTMLTextAreaElement>;
99
316
  textareaClass: import("vue").ComputedRef<string>;
100
317
  onInput: (event: Event) => void;
101
318
  onChange: (event: Event) => void;
@@ -107,15 +324,15 @@ declare const _default: import("vue").DefineComponent<{
107
324
  };
108
325
  id: {
109
326
  type: StringConstructor;
110
- default: null;
327
+ default: any;
111
328
  };
112
329
  name: {
113
330
  type: StringConstructor;
114
- default: null;
331
+ default: any;
115
332
  };
116
333
  placeholder: {
117
334
  type: StringConstructor;
118
- default: null;
335
+ default: any;
119
336
  };
120
337
  required: {
121
338
  type: BooleanConstructor;
@@ -155,65 +372,63 @@ declare const _default: import("vue").DefineComponent<{
155
372
  };
156
373
  size: {
157
374
  type: PropType<TextareaSize>;
158
- default: null;
375
+ default: any;
159
376
  validator(value: string): boolean;
160
377
  };
161
378
  color: {
162
- type: PropType<any>;
163
- default: () => any;
379
+ type: PropType<TextareaColor>;
380
+ default: () => string;
164
381
  validator(value: string): boolean;
165
382
  };
166
383
  variant: {
167
384
  type: PropType<TextareaVariant>;
168
- default: () => any;
385
+ default: () => string;
169
386
  validator(value: string): boolean;
170
387
  };
171
388
  textareaClass: {
172
389
  type: StringConstructor;
173
- default: null;
390
+ default: any;
174
391
  };
175
392
  class: {
176
393
  type: PropType<any>;
177
394
  default: () => "";
178
395
  };
179
396
  ui: {
180
- type: PropType<any>;
397
+ type: PropType<Partial<typeof config> & {
398
+ strategy?: Strategy;
399
+ }>;
181
400
  default: () => {};
182
401
  };
183
402
  modelModifiers: {
184
403
  type: PropType<{
185
- trim?: boolean | undefined;
186
- lazy?: boolean | undefined;
187
- number?: boolean | undefined;
404
+ trim?: boolean;
405
+ lazy?: boolean;
406
+ number?: boolean;
188
407
  }>;
189
408
  default: () => {};
190
409
  };
191
410
  }>> & {
192
- onBlur?: ((...args: any[]) => any) | undefined;
193
- onChange?: ((...args: any[]) => any) | undefined;
194
- "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
411
+ onBlur?: (...args: any[]) => any;
412
+ onChange?: (...args: any[]) => any;
413
+ "onUpdate:modelValue"?: (...args: any[]) => any;
195
414
  }, {
196
- size: TextareaSize;
197
415
  name: string;
416
+ size: TextareaSize;
198
417
  required: boolean;
199
418
  class: any;
200
- resize: boolean;
201
- color: any;
202
- variant: TextareaVariant;
203
419
  disabled: boolean;
204
- ui: any;
205
- padded: boolean;
420
+ ui: {};
421
+ color: TextareaColor;
422
+ variant: TextareaVariant;
206
423
  id: string;
424
+ resize: boolean;
207
425
  modelValue: string | number;
426
+ padded: boolean;
208
427
  rows: number;
209
428
  placeholder: string;
210
429
  autofocus: boolean;
211
430
  autofocusDelay: number;
212
- modelModifiers: {
213
- trim?: boolean | undefined;
214
- lazy?: boolean | undefined;
215
- number?: boolean | undefined;
216
- };
431
+ modelModifiers: {};
217
432
  maxrows: number;
218
433
  autoresize: boolean;
219
434
  textareaClass: string;
@@ -1,13 +1,75 @@
1
1
  import type { PropType } from 'vue';
2
- import type { ToggleSize } from '../../types';
2
+ import type { ToggleSize, ToggleColor, Strategy } from '../../types.js';
3
+ declare const config: {
4
+ base: string;
5
+ rounded: string;
6
+ ring: string;
7
+ active: string;
8
+ inactive: string;
9
+ size: {
10
+ '2xs': string;
11
+ xs: string;
12
+ sm: string;
13
+ md: string;
14
+ lg: string;
15
+ xl: string;
16
+ '2xl': string;
17
+ };
18
+ container: {
19
+ base: string;
20
+ active: {
21
+ '2xs': string;
22
+ xs: string;
23
+ sm: string;
24
+ md: string;
25
+ lg: string;
26
+ xl: string;
27
+ '2xl': string;
28
+ };
29
+ inactive: string;
30
+ size: {
31
+ '2xs': string;
32
+ xs: string;
33
+ sm: string;
34
+ md: string;
35
+ lg: string;
36
+ xl: string;
37
+ '2xl': string;
38
+ };
39
+ };
40
+ icon: {
41
+ base: string;
42
+ active: string;
43
+ inactive: 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
+ on: string;
54
+ off: string;
55
+ loading: string;
56
+ };
57
+ default: {
58
+ onIcon: any;
59
+ offIcon: any;
60
+ loadingIcon: string;
61
+ color: string;
62
+ size: string;
63
+ };
64
+ };
3
65
  declare const _default: import("vue").DefineComponent<{
4
66
  id: {
5
67
  type: StringConstructor;
6
- default: null;
68
+ default: any;
7
69
  };
8
70
  name: {
9
71
  type: StringConstructor;
10
- default: null;
72
+ default: any;
11
73
  };
12
74
  modelValue: {
13
75
  type: BooleanConstructor;
@@ -31,16 +93,16 @@ declare const _default: import("vue").DefineComponent<{
31
93
  };
32
94
  loadingIcon: {
33
95
  type: StringConstructor;
34
- default: () => any;
96
+ default: () => string;
35
97
  };
36
98
  color: {
37
- type: PropType<any>;
38
- default: () => any;
99
+ type: PropType<ToggleColor>;
100
+ default: () => string;
39
101
  validator(value: string): any;
40
102
  };
41
103
  size: {
42
104
  type: PropType<ToggleSize>;
43
- default: () => any;
105
+ default: () => string;
44
106
  validator(value: string): boolean;
45
107
  };
46
108
  class: {
@@ -48,16 +110,79 @@ declare const _default: import("vue").DefineComponent<{
48
110
  default: () => "";
49
111
  };
50
112
  ui: {
51
- type: PropType<any>;
113
+ type: PropType<Partial<typeof config> & {
114
+ strategy?: Strategy;
115
+ }>;
52
116
  default: () => {};
53
117
  };
54
118
  }, {
55
- ui: import("vue").ComputedRef<any>;
119
+ ui: import("vue").ComputedRef<{
120
+ base: string;
121
+ rounded: string;
122
+ ring: string;
123
+ active: string;
124
+ inactive: string;
125
+ size: {
126
+ '2xs': string;
127
+ xs: string;
128
+ sm: string;
129
+ md: string;
130
+ lg: string;
131
+ xl: string;
132
+ '2xl': string;
133
+ };
134
+ container: {
135
+ base: string;
136
+ active: {
137
+ '2xs': string;
138
+ xs: string;
139
+ sm: string;
140
+ md: string;
141
+ lg: string;
142
+ xl: string;
143
+ '2xl': string;
144
+ };
145
+ inactive: string;
146
+ size: {
147
+ '2xs': string;
148
+ xs: string;
149
+ sm: string;
150
+ md: string;
151
+ lg: string;
152
+ xl: string;
153
+ '2xl': string;
154
+ };
155
+ };
156
+ icon: {
157
+ base: string;
158
+ active: string;
159
+ inactive: string;
160
+ size: {
161
+ '2xs': string;
162
+ xs: string;
163
+ sm: string;
164
+ md: string;
165
+ lg: string;
166
+ xl: string;
167
+ '2xl': string;
168
+ };
169
+ on: string;
170
+ off: string;
171
+ loading: string;
172
+ };
173
+ default: {
174
+ onIcon: any;
175
+ offIcon: any;
176
+ loadingIcon: string;
177
+ color: string;
178
+ size: string;
179
+ };
180
+ }>;
56
181
  attrs: import("vue").ComputedRef<Pick<{
57
182
  [x: string]: unknown;
58
183
  }, string>>;
59
- name: import("vue").ComputedRef<string | undefined>;
60
- inputId: import("vue").ComputedRef<string | undefined>;
184
+ name: import("vue").ComputedRef<string>;
185
+ inputId: import("vue").ComputedRef<string>;
61
186
  active: import("vue").WritableComputedRef<boolean>;
62
187
  switchClass: import("vue").ComputedRef<string>;
63
188
  containerClass: import("vue").ComputedRef<string>;
@@ -67,11 +192,11 @@ declare const _default: import("vue").DefineComponent<{
67
192
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:modelValue")[], "change" | "update:modelValue", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
68
193
  id: {
69
194
  type: StringConstructor;
70
- default: null;
195
+ default: any;
71
196
  };
72
197
  name: {
73
198
  type: StringConstructor;
74
- default: null;
199
+ default: any;
75
200
  };
76
201
  modelValue: {
77
202
  type: BooleanConstructor;
@@ -95,16 +220,16 @@ declare const _default: import("vue").DefineComponent<{
95
220
  };
96
221
  loadingIcon: {
97
222
  type: StringConstructor;
98
- default: () => any;
223
+ default: () => string;
99
224
  };
100
225
  color: {
101
- type: PropType<any>;
102
- default: () => any;
226
+ type: PropType<ToggleColor>;
227
+ default: () => string;
103
228
  validator(value: string): any;
104
229
  };
105
230
  size: {
106
231
  type: PropType<ToggleSize>;
107
- default: () => any;
232
+ default: () => string;
108
233
  validator(value: string): boolean;
109
234
  };
110
235
  class: {
@@ -112,23 +237,25 @@ declare const _default: import("vue").DefineComponent<{
112
237
  default: () => "";
113
238
  };
114
239
  ui: {
115
- type: PropType<any>;
240
+ type: PropType<Partial<typeof config> & {
241
+ strategy?: Strategy;
242
+ }>;
116
243
  default: () => {};
117
244
  };
118
245
  }>> & {
119
- onChange?: ((...args: any[]) => any) | undefined;
120
- "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
246
+ onChange?: (...args: any[]) => any;
247
+ "onUpdate:modelValue"?: (...args: any[]) => any;
121
248
  }, {
122
- size: ToggleSize;
123
249
  name: string;
250
+ size: ToggleSize;
124
251
  class: any;
125
- color: any;
126
252
  disabled: boolean;
127
- ui: any;
128
- loading: boolean;
129
- loadingIcon: string;
253
+ ui: {};
254
+ color: "primary" | "red" | "orange" | "amber" | "yellow" | "lime" | "green" | "emerald" | "teal" | "cyan" | "sky" | "blue" | "indigo" | "violet" | "purple" | "fuchsia" | "pink" | "rose";
130
255
  id: string;
131
256
  modelValue: boolean;
257
+ loading: boolean;
258
+ loadingIcon: string;
132
259
  onIcon: string;
133
260
  offIcon: string;
134
261
  }, {}>;