@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,22 +1,47 @@
1
1
  import type { Ref, PropType } from 'vue';
2
- import type { FormGroupSize } from '../../types';
2
+ import type { FormGroupSize, Strategy } from '../../types.js';
3
+ declare const config: {
4
+ wrapper: string;
5
+ inner: string;
6
+ label: {
7
+ wrapper: string;
8
+ base: string;
9
+ required: string;
10
+ };
11
+ size: {
12
+ '2xs': string;
13
+ xs: string;
14
+ sm: string;
15
+ md: string;
16
+ lg: string;
17
+ xl: string;
18
+ };
19
+ container: string;
20
+ description: string;
21
+ hint: string;
22
+ help: string;
23
+ error: string;
24
+ default: {
25
+ size: string;
26
+ };
27
+ };
3
28
  declare const _default: import("vue").DefineComponent<{
4
29
  name: {
5
30
  type: StringConstructor;
6
- default: null;
31
+ default: any;
7
32
  };
8
33
  size: {
9
34
  type: PropType<FormGroupSize>;
10
- default: null;
35
+ default: any;
11
36
  validator(value: string): boolean;
12
37
  };
13
38
  label: {
14
39
  type: StringConstructor;
15
- default: null;
40
+ default: any;
16
41
  };
17
42
  description: {
18
43
  type: StringConstructor;
19
- default: null;
44
+ default: any;
20
45
  };
21
46
  required: {
22
47
  type: BooleanConstructor;
@@ -24,22 +49,24 @@ declare const _default: import("vue").DefineComponent<{
24
49
  };
25
50
  help: {
26
51
  type: StringConstructor;
27
- default: null;
52
+ default: any;
28
53
  };
29
54
  error: {
30
55
  type: (StringConstructor | BooleanConstructor)[];
31
- default: null;
56
+ default: any;
32
57
  };
33
58
  hint: {
34
59
  type: StringConstructor;
35
- default: null;
60
+ default: any;
36
61
  };
37
62
  class: {
38
63
  type: PropType<any>;
39
64
  default: () => "";
40
65
  };
41
66
  ui: {
42
- type: PropType<any>;
67
+ type: PropType<Partial<typeof config> & {
68
+ strategy?: Strategy;
69
+ }>;
43
70
  default: () => {};
44
71
  };
45
72
  eagerValidation: {
@@ -47,30 +74,54 @@ declare const _default: import("vue").DefineComponent<{
47
74
  default: boolean;
48
75
  };
49
76
  }, {
50
- ui: import("vue").ComputedRef<any>;
77
+ ui: import("vue").ComputedRef<{
78
+ wrapper: string;
79
+ inner: string;
80
+ label: {
81
+ wrapper: string;
82
+ base: string;
83
+ required: string;
84
+ };
85
+ size: {
86
+ '2xs': string;
87
+ xs: string;
88
+ sm: string;
89
+ md: string;
90
+ lg: string;
91
+ xl: string;
92
+ };
93
+ container: string;
94
+ description: string;
95
+ hint: string;
96
+ help: string;
97
+ error: string;
98
+ default: {
99
+ size: string;
100
+ };
101
+ }>;
51
102
  attrs: import("vue").ComputedRef<Pick<{
52
103
  [x: string]: unknown;
53
104
  }, string>>;
54
- inputId: Ref<any>;
105
+ inputId: Ref<string>;
55
106
  size: import("vue").ComputedRef<any>;
56
- error: import("vue").ComputedRef<string | boolean | undefined>;
107
+ error: import("vue").ComputedRef<string | boolean>;
57
108
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
58
109
  name: {
59
110
  type: StringConstructor;
60
- default: null;
111
+ default: any;
61
112
  };
62
113
  size: {
63
114
  type: PropType<FormGroupSize>;
64
- default: null;
115
+ default: any;
65
116
  validator(value: string): boolean;
66
117
  };
67
118
  label: {
68
119
  type: StringConstructor;
69
- default: null;
120
+ default: any;
70
121
  };
71
122
  description: {
72
123
  type: StringConstructor;
73
- default: null;
124
+ default: any;
74
125
  };
75
126
  required: {
76
127
  type: BooleanConstructor;
@@ -78,22 +129,24 @@ declare const _default: import("vue").DefineComponent<{
78
129
  };
79
130
  help: {
80
131
  type: StringConstructor;
81
- default: null;
132
+ default: any;
82
133
  };
83
134
  error: {
84
135
  type: (StringConstructor | BooleanConstructor)[];
85
- default: null;
136
+ default: any;
86
137
  };
87
138
  hint: {
88
139
  type: StringConstructor;
89
- default: null;
140
+ default: any;
90
141
  };
91
142
  class: {
92
143
  type: PropType<any>;
93
144
  default: () => "";
94
145
  };
95
146
  ui: {
96
- type: PropType<any>;
147
+ type: PropType<Partial<typeof config> & {
148
+ strategy?: Strategy;
149
+ }>;
97
150
  default: () => {};
98
151
  };
99
152
  eagerValidation: {
@@ -101,15 +154,15 @@ declare const _default: import("vue").DefineComponent<{
101
154
  default: boolean;
102
155
  };
103
156
  }>>, {
104
- size: FormGroupSize;
105
157
  name: string;
158
+ size: FormGroupSize;
106
159
  required: boolean;
107
- label: string;
108
160
  class: any;
109
- ui: any;
110
- help: string;
111
- description: string;
161
+ ui: {};
162
+ label: string;
112
163
  error: string | boolean;
164
+ description: string;
165
+ help: string;
113
166
  hint: string;
114
167
  eagerValidation: boolean;
115
168
  }, {}>;
@@ -163,7 +163,7 @@ export default defineComponent({
163
163
  const { ui, attrs } = useUI("input", toRef(props, "ui"), config, toRef(props, "class"));
164
164
  const { size: sizeButtonGroup, rounded } = useInjectButtonGroup({ ui, props });
165
165
  const { emitFormBlur, emitFormInput, size: sizeFormGroup, color, inputId, name } = useFormGroup(props, config);
166
- const size = computed(() => sizeButtonGroup.value || sizeFormGroup.value);
166
+ const size = computed(() => sizeButtonGroup.value ?? sizeFormGroup.value);
167
167
  const modelModifiers = ref(defu({}, props.modelModifiers, { trim: false, lazy: false, number: false }));
168
168
  const input2 = ref(null);
169
169
  const autoFocus = () => {
@@ -1,5 +1,114 @@
1
1
  import type { PropType } from 'vue';
2
- import type { InputSize, InputVariant } from '../../types';
2
+ import type { InputSize, InputColor, InputVariant, Strategy } from '../../types.js';
3
+ declare const config: {
4
+ wrapper: string;
5
+ base: string;
6
+ form: string;
7
+ rounded: string;
8
+ placeholder: string;
9
+ file: {
10
+ base: string;
11
+ };
12
+ size: {
13
+ '2xs': string;
14
+ xs: string;
15
+ sm: string;
16
+ md: string;
17
+ lg: string;
18
+ xl: string;
19
+ };
20
+ gap: {
21
+ '2xs': string;
22
+ xs: string;
23
+ sm: string;
24
+ md: string;
25
+ lg: string;
26
+ xl: string;
27
+ };
28
+ padding: {
29
+ '2xs': string;
30
+ xs: string;
31
+ sm: string;
32
+ md: string;
33
+ lg: string;
34
+ xl: string;
35
+ };
36
+ leading: {
37
+ padding: {
38
+ '2xs': string;
39
+ xs: string;
40
+ sm: string;
41
+ md: string;
42
+ lg: string;
43
+ xl: string;
44
+ };
45
+ };
46
+ trailing: {
47
+ padding: {
48
+ '2xs': string;
49
+ xs: string;
50
+ sm: string;
51
+ md: string;
52
+ lg: string;
53
+ xl: string;
54
+ };
55
+ };
56
+ color: {
57
+ white: {
58
+ outline: string;
59
+ };
60
+ gray: {
61
+ outline: string;
62
+ };
63
+ };
64
+ variant: {
65
+ outline: string;
66
+ none: string;
67
+ };
68
+ icon: {
69
+ base: string;
70
+ color: string;
71
+ loading: string;
72
+ size: {
73
+ '2xs': string;
74
+ xs: string;
75
+ sm: string;
76
+ md: string;
77
+ lg: string;
78
+ xl: string;
79
+ };
80
+ leading: {
81
+ wrapper: string;
82
+ pointer: string;
83
+ padding: {
84
+ '2xs': string;
85
+ xs: string;
86
+ sm: string;
87
+ md: string;
88
+ lg: string;
89
+ xl: string;
90
+ };
91
+ };
92
+ trailing: {
93
+ wrapper: string;
94
+ pointer: string;
95
+ padding: {
96
+ '2xs': string;
97
+ xs: string;
98
+ sm: string;
99
+ md: string;
100
+ lg: string;
101
+ xl: string;
102
+ };
103
+ };
104
+ };
105
+ default: {
106
+ size: string;
107
+ color: string;
108
+ variant: string;
109
+ loadingIcon: string;
110
+ };
111
+ };
3
112
  declare const _default: import("vue").DefineComponent<{
4
113
  modelValue: {
5
114
  type: (StringConstructor | NumberConstructor)[];
@@ -11,15 +120,15 @@ declare const _default: import("vue").DefineComponent<{
11
120
  };
12
121
  id: {
13
122
  type: StringConstructor;
14
- default: null;
123
+ default: any;
15
124
  };
16
125
  name: {
17
126
  type: StringConstructor;
18
- default: null;
127
+ default: any;
19
128
  };
20
129
  placeholder: {
21
130
  type: StringConstructor;
22
- default: null;
131
+ default: any;
23
132
  };
24
133
  required: {
25
134
  type: BooleanConstructor;
@@ -39,19 +148,19 @@ declare const _default: import("vue").DefineComponent<{
39
148
  };
40
149
  icon: {
41
150
  type: StringConstructor;
42
- default: null;
151
+ default: any;
43
152
  };
44
153
  loadingIcon: {
45
154
  type: StringConstructor;
46
- default: () => any;
155
+ default: () => string;
47
156
  };
48
157
  leadingIcon: {
49
158
  type: StringConstructor;
50
- default: null;
159
+ default: any;
51
160
  };
52
161
  trailingIcon: {
53
162
  type: StringConstructor;
54
- default: null;
163
+ default: any;
55
164
  };
56
165
  trailing: {
57
166
  type: BooleanConstructor;
@@ -71,54 +180,164 @@ declare const _default: import("vue").DefineComponent<{
71
180
  };
72
181
  size: {
73
182
  type: PropType<InputSize>;
74
- default: null;
183
+ default: any;
75
184
  validator(value: string): boolean;
76
185
  };
77
186
  color: {
78
- type: PropType<any>;
79
- default: () => any;
187
+ type: PropType<InputColor>;
188
+ default: () => string;
80
189
  validator(value: string): boolean;
81
190
  };
82
191
  variant: {
83
192
  type: PropType<InputVariant>;
84
- default: () => any;
193
+ default: () => string;
85
194
  validator(value: string): boolean;
86
195
  };
87
196
  inputClass: {
88
197
  type: StringConstructor;
89
- default: null;
198
+ default: any;
90
199
  };
91
200
  class: {
92
201
  type: PropType<any>;
93
202
  default: () => "";
94
203
  };
95
204
  ui: {
96
- type: PropType<any>;
205
+ type: PropType<Partial<typeof config> & {
206
+ strategy?: Strategy;
207
+ }>;
97
208
  default: () => {};
98
209
  };
99
210
  modelModifiers: {
100
211
  type: PropType<{
101
- trim?: boolean | undefined;
102
- lazy?: boolean | undefined;
103
- number?: boolean | undefined;
212
+ trim?: boolean;
213
+ lazy?: boolean;
214
+ number?: boolean;
104
215
  }>;
105
216
  default: () => {};
106
217
  };
107
218
  }, {
108
- ui: import("vue").ComputedRef<any>;
219
+ ui: import("vue").ComputedRef<{
220
+ wrapper: string;
221
+ base: string;
222
+ form: string;
223
+ rounded: string;
224
+ placeholder: string;
225
+ file: {
226
+ base: string;
227
+ };
228
+ size: {
229
+ '2xs': string;
230
+ xs: string;
231
+ sm: string;
232
+ md: string;
233
+ lg: string;
234
+ xl: string;
235
+ };
236
+ gap: {
237
+ '2xs': string;
238
+ xs: string;
239
+ sm: string;
240
+ md: string;
241
+ lg: string;
242
+ xl: string;
243
+ };
244
+ padding: {
245
+ '2xs': string;
246
+ xs: string;
247
+ sm: string;
248
+ md: string;
249
+ lg: string;
250
+ xl: string;
251
+ };
252
+ leading: {
253
+ padding: {
254
+ '2xs': string;
255
+ xs: string;
256
+ sm: string;
257
+ md: string;
258
+ lg: string;
259
+ xl: string;
260
+ };
261
+ };
262
+ trailing: {
263
+ padding: {
264
+ '2xs': string;
265
+ xs: string;
266
+ sm: string;
267
+ md: string;
268
+ lg: string;
269
+ xl: string;
270
+ };
271
+ };
272
+ color: {
273
+ white: {
274
+ outline: string;
275
+ };
276
+ gray: {
277
+ outline: string;
278
+ };
279
+ };
280
+ variant: {
281
+ outline: string;
282
+ none: string;
283
+ };
284
+ icon: {
285
+ base: string;
286
+ color: string;
287
+ loading: string;
288
+ size: {
289
+ '2xs': string;
290
+ xs: string;
291
+ sm: string;
292
+ md: string;
293
+ lg: string;
294
+ xl: string;
295
+ };
296
+ leading: {
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
+ trailing: {
309
+ wrapper: string;
310
+ pointer: string;
311
+ padding: {
312
+ '2xs': string;
313
+ xs: string;
314
+ sm: string;
315
+ md: string;
316
+ lg: string;
317
+ xl: string;
318
+ };
319
+ };
320
+ };
321
+ default: {
322
+ size: string;
323
+ color: string;
324
+ variant: string;
325
+ loadingIcon: string;
326
+ };
327
+ }>;
109
328
  attrs: import("vue").ComputedRef<Pick<{
110
329
  [x: string]: unknown;
111
330
  }, string>>;
112
- name: import("vue").ComputedRef<string | undefined>;
113
- inputId: import("vue").ComputedRef<string | undefined>;
114
- input: import("vue").Ref<HTMLInputElement | null>;
331
+ name: import("vue").ComputedRef<string>;
332
+ inputId: import("vue").ComputedRef<string>;
333
+ input: import("vue").Ref<HTMLInputElement>;
115
334
  isLeading: import("vue").ComputedRef<string | true>;
116
335
  isTrailing: import("vue").ComputedRef<string | true>;
117
336
  inputClass: import("vue").ComputedRef<string>;
118
- leadingIconName: import("vue").ComputedRef<string | undefined>;
337
+ leadingIconName: import("vue").ComputedRef<string>;
119
338
  leadingIconClass: import("vue").ComputedRef<string>;
120
339
  leadingWrapperIconClass: import("vue").ComputedRef<string>;
121
- trailingIconName: import("vue").ComputedRef<string | undefined>;
340
+ trailingIconName: import("vue").ComputedRef<string>;
122
341
  trailingIconClass: import("vue").ComputedRef<string>;
123
342
  trailingWrapperIconClass: import("vue").ComputedRef<string>;
124
343
  onInput: (event: Event) => void;
@@ -135,15 +354,15 @@ declare const _default: import("vue").DefineComponent<{
135
354
  };
136
355
  id: {
137
356
  type: StringConstructor;
138
- default: null;
357
+ default: any;
139
358
  };
140
359
  name: {
141
360
  type: StringConstructor;
142
- default: null;
361
+ default: any;
143
362
  };
144
363
  placeholder: {
145
364
  type: StringConstructor;
146
- default: null;
365
+ default: any;
147
366
  };
148
367
  required: {
149
368
  type: BooleanConstructor;
@@ -163,19 +382,19 @@ declare const _default: import("vue").DefineComponent<{
163
382
  };
164
383
  icon: {
165
384
  type: StringConstructor;
166
- default: null;
385
+ default: any;
167
386
  };
168
387
  loadingIcon: {
169
388
  type: StringConstructor;
170
- default: () => any;
389
+ default: () => string;
171
390
  };
172
391
  leadingIcon: {
173
392
  type: StringConstructor;
174
- default: null;
393
+ default: any;
175
394
  };
176
395
  trailingIcon: {
177
396
  type: StringConstructor;
178
- default: null;
397
+ default: any;
179
398
  };
180
399
  trailing: {
181
400
  type: BooleanConstructor;
@@ -195,71 +414,69 @@ declare const _default: import("vue").DefineComponent<{
195
414
  };
196
415
  size: {
197
416
  type: PropType<InputSize>;
198
- default: null;
417
+ default: any;
199
418
  validator(value: string): boolean;
200
419
  };
201
420
  color: {
202
- type: PropType<any>;
203
- default: () => any;
421
+ type: PropType<InputColor>;
422
+ default: () => string;
204
423
  validator(value: string): boolean;
205
424
  };
206
425
  variant: {
207
426
  type: PropType<InputVariant>;
208
- default: () => any;
427
+ default: () => string;
209
428
  validator(value: string): boolean;
210
429
  };
211
430
  inputClass: {
212
431
  type: StringConstructor;
213
- default: null;
432
+ default: any;
214
433
  };
215
434
  class: {
216
435
  type: PropType<any>;
217
436
  default: () => "";
218
437
  };
219
438
  ui: {
220
- type: PropType<any>;
439
+ type: PropType<Partial<typeof config> & {
440
+ strategy?: Strategy;
441
+ }>;
221
442
  default: () => {};
222
443
  };
223
444
  modelModifiers: {
224
445
  type: PropType<{
225
- trim?: boolean | undefined;
226
- lazy?: boolean | undefined;
227
- number?: boolean | undefined;
446
+ trim?: boolean;
447
+ lazy?: boolean;
448
+ number?: boolean;
228
449
  }>;
229
450
  default: () => {};
230
451
  };
231
452
  }>> & {
232
- onBlur?: ((...args: any[]) => any) | undefined;
233
- onChange?: ((...args: any[]) => any) | undefined;
234
- "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
453
+ onBlur?: (...args: any[]) => any;
454
+ onChange?: (...args: any[]) => any;
455
+ "onUpdate:modelValue"?: (...args: any[]) => any;
235
456
  }, {
236
- size: InputSize;
237
457
  name: string;
458
+ size: InputSize;
238
459
  type: string;
239
460
  required: boolean;
240
461
  class: any;
241
- leading: boolean;
242
- color: any;
243
- variant: InputVariant;
244
462
  disabled: boolean;
245
- ui: any;
463
+ ui: {};
464
+ color: InputColor;
465
+ variant: InputVariant;
466
+ icon: string;
467
+ id: string;
468
+ leading: boolean;
469
+ modelValue: string | number;
246
470
  loading: boolean;
247
471
  padded: boolean;
248
- icon: string;
249
472
  loadingIcon: string;
250
473
  leadingIcon: string;
251
474
  trailingIcon: string;
252
475
  trailing: boolean;
253
- id: string;
254
- modelValue: string | number;
255
476
  inputClass: string;
256
477
  placeholder: string;
257
478
  autofocus: boolean;
258
479
  autofocusDelay: number;
259
- modelModifiers: {
260
- trim?: boolean | undefined;
261
- lazy?: boolean | undefined;
262
- number?: boolean | undefined;
263
- };
480
+ modelModifiers: {};
264
481
  }, {}>;
265
482
  export default _default;