@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,10 +1,81 @@
1
1
  import type { ComputedRef, PropType, ComponentPublicInstance } from 'vue';
2
2
  import type { UseFuseOptions } from '@vueuse/integrations/useFuse';
3
- import type { Group, Command, Button } from '../../types';
3
+ import type { Group, Command, Button, Strategy } from '../../types.js';
4
+ declare const config: {
5
+ wrapper: string;
6
+ container: string;
7
+ input: {
8
+ wrapper: string;
9
+ base: string;
10
+ padding: string;
11
+ height: string;
12
+ size: string;
13
+ icon: {
14
+ base: string;
15
+ loading: string;
16
+ size: string;
17
+ padding: string;
18
+ };
19
+ closeButton: {
20
+ base: string;
21
+ padding: string;
22
+ };
23
+ };
24
+ emptyState: {
25
+ wrapper: string;
26
+ label: string;
27
+ queryLabel: string;
28
+ icon: string;
29
+ };
30
+ group: {
31
+ wrapper: string;
32
+ label: string;
33
+ container: string;
34
+ command: {
35
+ base: string;
36
+ active: string;
37
+ inactive: string;
38
+ label: string;
39
+ prefix: string;
40
+ suffix: string;
41
+ container: string;
42
+ icon: {
43
+ base: string;
44
+ active: string;
45
+ inactive: string;
46
+ };
47
+ selectedIcon: {
48
+ base: string;
49
+ };
50
+ avatar: {
51
+ base: string;
52
+ size: "2xs";
53
+ };
54
+ chip: {
55
+ base: string;
56
+ };
57
+ disabled: string;
58
+ shortcuts: string;
59
+ };
60
+ active: string;
61
+ inactive: string;
62
+ };
63
+ default: {
64
+ icon: string;
65
+ loadingIcon: string;
66
+ emptyState: {
67
+ icon: string;
68
+ label: string;
69
+ queryLabel: string;
70
+ };
71
+ closeButton: any;
72
+ selectedIcon: string;
73
+ };
74
+ };
4
75
  declare const _default: import("vue").DefineComponent<{
5
76
  modelValue: {
6
- type: (StringConstructor | ObjectConstructor | ArrayConstructor | NumberConstructor)[];
7
- default: null;
77
+ type: (ObjectConstructor | NumberConstructor | StringConstructor | ArrayConstructor)[];
78
+ default: any;
8
79
  };
9
80
  by: {
10
81
  type: StringConstructor;
@@ -28,19 +99,19 @@ declare const _default: import("vue").DefineComponent<{
28
99
  };
29
100
  groups: {
30
101
  type: PropType<Group[]>;
31
- default: () => never[];
102
+ default: () => any[];
32
103
  };
33
104
  icon: {
34
105
  type: StringConstructor;
35
- default: () => any;
106
+ default: () => string;
36
107
  };
37
108
  loadingIcon: {
38
109
  type: StringConstructor;
39
- default: () => any;
110
+ default: () => string;
40
111
  };
41
112
  selectedIcon: {
42
113
  type: StringConstructor;
43
- default: () => any;
114
+ default: () => string;
44
115
  };
45
116
  closeButton: {
46
117
  type: PropType<Button>;
@@ -52,7 +123,11 @@ declare const _default: import("vue").DefineComponent<{
52
123
  label: string;
53
124
  queryLabel: string;
54
125
  }>;
55
- default: () => any;
126
+ default: () => {
127
+ icon: string;
128
+ label: string;
129
+ queryLabel: string;
130
+ };
56
131
  };
57
132
  placeholder: {
58
133
  type: StringConstructor;
@@ -87,33 +162,110 @@ declare const _default: import("vue").DefineComponent<{
87
162
  default: () => string;
88
163
  };
89
164
  ui: {
90
- type: PropType<any>;
165
+ type: PropType<Partial<typeof config> & {
166
+ strategy?: Strategy;
167
+ }>;
91
168
  default: () => {};
92
169
  };
93
170
  }, {
94
- ui: ComputedRef<any>;
171
+ ui: ComputedRef<{
172
+ wrapper: string;
173
+ container: string;
174
+ input: {
175
+ wrapper: string;
176
+ base: string;
177
+ padding: string;
178
+ height: string;
179
+ size: string;
180
+ icon: {
181
+ base: string;
182
+ loading: string;
183
+ size: string;
184
+ padding: string;
185
+ };
186
+ closeButton: {
187
+ base: string;
188
+ padding: string;
189
+ };
190
+ };
191
+ emptyState: {
192
+ wrapper: string;
193
+ label: string;
194
+ queryLabel: string;
195
+ icon: string;
196
+ };
197
+ group: {
198
+ wrapper: string;
199
+ label: string;
200
+ container: string;
201
+ command: {
202
+ base: string;
203
+ active: string;
204
+ inactive: string;
205
+ label: string;
206
+ prefix: string;
207
+ suffix: string;
208
+ container: string;
209
+ icon: {
210
+ base: string;
211
+ active: string;
212
+ inactive: string;
213
+ };
214
+ selectedIcon: {
215
+ base: string;
216
+ };
217
+ avatar: {
218
+ base: string;
219
+ size: "2xs";
220
+ };
221
+ chip: {
222
+ base: string;
223
+ };
224
+ disabled: string;
225
+ shortcuts: string;
226
+ };
227
+ active: string;
228
+ inactive: string;
229
+ };
230
+ default: {
231
+ icon: string;
232
+ loadingIcon: string;
233
+ emptyState: {
234
+ icon: string;
235
+ label: string;
236
+ queryLabel: string;
237
+ };
238
+ closeButton: any;
239
+ selectedIcon: string;
240
+ };
241
+ }>;
95
242
  attrs: ComputedRef<Pick<{
96
243
  [x: string]: unknown;
97
244
  }, string>>;
98
245
  groups: ComputedRef<(Group | {
99
246
  commands: Command[];
100
247
  key: string;
101
- active?: string | undefined;
102
- inactive?: string | undefined;
103
- search?: Function | undefined;
104
- filter?: Function | undefined;
105
- } | undefined)[]>;
106
- comboboxInput: import("vue").Ref<ComponentPublicInstance<HTMLInputElement> | undefined>;
248
+ active?: string;
249
+ inactive?: string;
250
+ search?: Function;
251
+ filter?: Function;
252
+ static?: Boolean;
253
+ })[]>;
254
+ comboboxInput: import("vue").Ref<ComponentPublicInstance<HTMLInputElement>>;
107
255
  query: import("vue").Ref<string>;
108
- iconName: ComputedRef<string | undefined>;
256
+ iconName: ComputedRef<string>;
109
257
  iconClass: ComputedRef<string>;
110
- emptyState: ComputedRef<any>;
258
+ emptyState: ComputedRef<{
259
+ icon: string;
260
+ label: string;
261
+ queryLabel: string;
262
+ }>;
111
263
  onSelect: (option: Command | Command[]) => void;
112
264
  onClear: () => void;
113
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "close")[], "update:modelValue" | "close", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
265
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("close" | "update:modelValue")[], "close" | "update:modelValue", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
114
266
  modelValue: {
115
- type: (StringConstructor | ObjectConstructor | ArrayConstructor | NumberConstructor)[];
116
- default: null;
267
+ type: (ObjectConstructor | NumberConstructor | StringConstructor | ArrayConstructor)[];
268
+ default: any;
117
269
  };
118
270
  by: {
119
271
  type: StringConstructor;
@@ -137,19 +289,19 @@ declare const _default: import("vue").DefineComponent<{
137
289
  };
138
290
  groups: {
139
291
  type: PropType<Group[]>;
140
- default: () => never[];
292
+ default: () => any[];
141
293
  };
142
294
  icon: {
143
295
  type: StringConstructor;
144
- default: () => any;
296
+ default: () => string;
145
297
  };
146
298
  loadingIcon: {
147
299
  type: StringConstructor;
148
- default: () => any;
300
+ default: () => string;
149
301
  };
150
302
  selectedIcon: {
151
303
  type: StringConstructor;
152
- default: () => any;
304
+ default: () => string;
153
305
  };
154
306
  closeButton: {
155
307
  type: PropType<Button>;
@@ -161,7 +313,11 @@ declare const _default: import("vue").DefineComponent<{
161
313
  label: string;
162
314
  queryLabel: string;
163
315
  }>;
164
- default: () => any;
316
+ default: () => {
317
+ icon: string;
318
+ label: string;
319
+ queryLabel: string;
320
+ };
165
321
  };
166
322
  placeholder: {
167
323
  type: StringConstructor;
@@ -196,37 +352,39 @@ declare const _default: import("vue").DefineComponent<{
196
352
  default: () => string;
197
353
  };
198
354
  ui: {
199
- type: PropType<any>;
355
+ type: PropType<Partial<typeof config> & {
356
+ strategy?: Strategy;
357
+ }>;
200
358
  default: () => {};
201
359
  };
202
360
  }>> & {
203
- "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
204
- onClose?: ((...args: any[]) => any) | undefined;
361
+ onClose?: (...args: any[]) => any;
362
+ "onUpdate:modelValue"?: (...args: any[]) => any;
205
363
  }, {
364
+ ui: {};
365
+ icon: string;
206
366
  class: any;
207
- ui: any;
367
+ closeButton: Button;
368
+ modelValue: string | number | unknown[] | Record<string, any>;
208
369
  loading: boolean;
209
- icon: string;
210
370
  loadingIcon: string;
211
- modelValue: string | number | Record<string, any> | unknown[];
212
- by: string;
213
- emptyState: {
214
- icon: string;
215
- label: string;
216
- queryLabel: string;
217
- };
218
371
  multiple: boolean;
219
372
  placeholder: string;
220
- closeButton: Button;
221
373
  nullable: boolean;
374
+ by: string;
222
375
  selectedIcon: string;
223
376
  debounce: number;
224
377
  searchable: boolean;
225
378
  groupAttribute: string;
226
379
  commandAttribute: string;
380
+ emptyState: {
381
+ icon: string;
382
+ label: string;
383
+ queryLabel: string;
384
+ };
227
385
  groups: Group[];
228
386
  autoselect: boolean;
229
387
  autoclear: boolean;
230
- fuse: UseFuseOptions<Command>;
388
+ fuse: {};
231
389
  }, {}>;
232
390
  export default _default;
@@ -72,9 +72,7 @@
72
72
  <script>
73
73
  import { computed, defineComponent } from "vue";
74
74
  import { ComboboxOption as HComboboxOption, provideUseId } from "@headlessui/vue";
75
- import UIcon from "../elements/Icon.vue";
76
- import UAvatar from "../elements/Avatar.vue";
77
- import UKbd from "../elements/Kbd.vue";
75
+ import { UIcon, UAvatar, UKbd } from "#components";
78
76
  import { useId } from "#imports";
79
77
  export default defineComponent({
80
78
  components: {
@@ -1,5 +1,6 @@
1
1
  import type { PropType } from 'vue';
2
- import type { Group } from '../../types';
2
+ import type { Command, Group } from '../../types.js';
3
+ import { commandPalette } from '#ui/ui.config';
3
4
  declare const _default: import("vue").DefineComponent<{
4
5
  group: {
5
6
  type: PropType<Group>;
@@ -22,15 +23,12 @@ declare const _default: import("vue").DefineComponent<{
22
23
  required: true;
23
24
  };
24
25
  ui: {
25
- type: PropType<any>;
26
+ type: PropType<typeof commandPalette>;
26
27
  required: true;
27
28
  };
28
29
  }, {
29
30
  label: import("vue").ComputedRef<any>;
30
- highlight: (text: string, { indices, value }: {
31
- indices: number[][];
32
- value: string;
33
- }) => string;
31
+ highlight: (text: string, { indices, value }: Command["matches"][number]) => string;
34
32
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
35
33
  group: {
36
34
  type: PropType<Group>;
@@ -53,7 +51,7 @@ declare const _default: import("vue").DefineComponent<{
53
51
  required: true;
54
52
  };
55
53
  ui: {
56
- type: PropType<any>;
54
+ type: PropType<typeof commandPalette>;
57
55
  required: true;
58
56
  };
59
57
  }>>, {
@@ -54,10 +54,7 @@
54
54
  <script>
55
55
  import { toRef, defineComponent, computed } from "vue";
56
56
  import { twMerge, twJoin } from "tailwind-merge";
57
- import UIcon from "../elements/Icon.vue";
58
- import UAvatar from "../elements/Avatar.vue";
59
- import UBadge from "../elements/Badge.vue";
60
- import ULink from "../elements/Link.vue";
57
+ import { UIcon, UAvatar, UBadge, ULink } from "#components";
61
58
  import { useUI } from "../../composables/useUI";
62
59
  import { mergeConfig, getULinkProps } from "../../utils";
63
60
  import appConfig from "#build/app.config";
@@ -1,21 +1,74 @@
1
1
  import type { PropType } from 'vue';
2
2
  import { twJoin } from 'tailwind-merge';
3
- import type { HorizontalNavigationLink } from '../../types';
3
+ import type { HorizontalNavigationLink, Strategy } from '../../types.js';
4
+ declare const config: {
5
+ wrapper: string;
6
+ container: string;
7
+ inner: string;
8
+ base: string;
9
+ before: string;
10
+ after: string;
11
+ active: string;
12
+ inactive: string;
13
+ label: string;
14
+ icon: {
15
+ base: string;
16
+ active: string;
17
+ inactive: string;
18
+ };
19
+ avatar: {
20
+ base: string;
21
+ size: "2xs";
22
+ };
23
+ badge: {
24
+ base: string;
25
+ color: "gray";
26
+ variant: "solid";
27
+ size: "xs";
28
+ };
29
+ };
4
30
  declare const _default: import("vue").DefineComponent<{
5
31
  links: {
6
- type: PropType<HorizontalNavigationLink[] | HorizontalNavigationLink[][]>;
7
- default: () => never[];
32
+ type: PropType<HorizontalNavigationLink[][] | HorizontalNavigationLink[]>;
33
+ default: () => any[];
8
34
  };
9
35
  class: {
10
36
  type: PropType<any>;
11
37
  default: () => string;
12
38
  };
13
39
  ui: {
14
- type: PropType<any>;
40
+ type: PropType<Partial<typeof config> & {
41
+ strategy?: Strategy;
42
+ }>;
15
43
  default: () => {};
16
44
  };
17
45
  }, {
18
- ui: import("vue").ComputedRef<any>;
46
+ ui: import("vue").ComputedRef<{
47
+ wrapper: string;
48
+ container: string;
49
+ inner: string;
50
+ base: string;
51
+ before: string;
52
+ after: string;
53
+ active: string;
54
+ inactive: string;
55
+ label: string;
56
+ icon: {
57
+ base: string;
58
+ active: string;
59
+ inactive: string;
60
+ };
61
+ avatar: {
62
+ base: string;
63
+ size: "2xs";
64
+ };
65
+ badge: {
66
+ base: string;
67
+ color: "gray";
68
+ variant: "solid";
69
+ size: "xs";
70
+ };
71
+ }>;
19
72
  attrs: import("vue").ComputedRef<Pick<{
20
73
  [x: string]: unknown;
21
74
  }, string>>;
@@ -25,20 +78,22 @@ declare const _default: import("vue").DefineComponent<{
25
78
  twJoin: typeof twJoin;
26
79
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
27
80
  links: {
28
- type: PropType<HorizontalNavigationLink[] | HorizontalNavigationLink[][]>;
29
- default: () => never[];
81
+ type: PropType<HorizontalNavigationLink[][] | HorizontalNavigationLink[]>;
82
+ default: () => any[];
30
83
  };
31
84
  class: {
32
85
  type: PropType<any>;
33
86
  default: () => string;
34
87
  };
35
88
  ui: {
36
- type: PropType<any>;
89
+ type: PropType<Partial<typeof config> & {
90
+ strategy?: Strategy;
91
+ }>;
37
92
  default: () => {};
38
93
  };
39
94
  }>>, {
95
+ ui: {};
40
96
  class: any;
41
- ui: any;
42
97
  links: HorizontalNavigationLink[] | HorizontalNavigationLink[][];
43
98
  }, {}>;
44
99
  export default _default;
@@ -190,8 +190,7 @@ export default defineComponent({
190
190
  return items;
191
191
  }
192
192
  items.push(1);
193
- if (beforeWrapped)
194
- items.push(props.divider);
193
+ if (beforeWrapped) items.push(props.divider);
195
194
  if (!afterWrapped) {
196
195
  const addedItems = current + r + 2 - totalPages;
197
196
  for (let i = current - r - addedItems; i <= current - r - 1; i++) {
@@ -207,8 +206,7 @@ export default defineComponent({
207
206
  items.push(i);
208
207
  }
209
208
  }
210
- if (afterWrapped)
211
- items.push(props.divider);
209
+ if (afterWrapped) items.push(props.divider);
212
210
  if (r2 < totalPages) {
213
211
  items.push(totalPages);
214
212
  }
@@ -1,5 +1,40 @@
1
1
  import type { PropType } from 'vue';
2
- import type { Button, ButtonSize } from '../../types';
2
+ import type { RouteLocationRaw } from '#vue-router';
3
+ import type { Button, ButtonSize, Strategy } from '../../types.js';
4
+ declare const config: {
5
+ wrapper: string;
6
+ base: string;
7
+ rounded: string;
8
+ default: {
9
+ size: string;
10
+ activeButton: {
11
+ color: "primary";
12
+ };
13
+ inactiveButton: {
14
+ color: "white";
15
+ };
16
+ firstButton: {
17
+ color: "white";
18
+ class: string;
19
+ icon: string;
20
+ };
21
+ lastButton: {
22
+ color: "white";
23
+ class: string;
24
+ icon: string;
25
+ };
26
+ prevButton: {
27
+ color: "white";
28
+ class: string;
29
+ icon: string;
30
+ };
31
+ nextButton: {
32
+ color: "white";
33
+ class: string;
34
+ icon: string;
35
+ };
36
+ };
37
+ };
3
38
  declare const _default: import("vue").DefineComponent<{
4
39
  modelValue: {
5
40
  type: NumberConstructor;
@@ -24,12 +59,12 @@ declare const _default: import("vue").DefineComponent<{
24
59
  };
25
60
  size: {
26
61
  type: PropType<ButtonSize>;
27
- default: () => any;
62
+ default: () => string;
28
63
  validator(value: string): boolean;
29
64
  };
30
65
  to: {
31
66
  type: PropType<(page: number) => RouteLocationRaw>;
32
- default: null;
67
+ default: any;
33
68
  };
34
69
  activeButton: {
35
70
  type: PropType<Button>;
@@ -72,11 +107,46 @@ declare const _default: import("vue").DefineComponent<{
72
107
  default: () => "";
73
108
  };
74
109
  ui: {
75
- type: PropType<any>;
110
+ type: PropType<Partial<typeof config> & {
111
+ strategy?: Strategy;
112
+ }>;
76
113
  default: () => {};
77
114
  };
78
115
  }, {
79
- ui: import("vue").ComputedRef<any>;
116
+ ui: import("vue").ComputedRef<{
117
+ wrapper: string;
118
+ base: string;
119
+ rounded: string;
120
+ default: {
121
+ size: string;
122
+ activeButton: {
123
+ color: "primary";
124
+ };
125
+ inactiveButton: {
126
+ color: "white";
127
+ };
128
+ firstButton: {
129
+ color: "white";
130
+ class: string;
131
+ icon: string;
132
+ };
133
+ lastButton: {
134
+ color: "white";
135
+ class: string;
136
+ icon: string;
137
+ };
138
+ prevButton: {
139
+ color: "white";
140
+ class: string;
141
+ icon: string;
142
+ };
143
+ nextButton: {
144
+ color: "white";
145
+ class: string;
146
+ icon: string;
147
+ };
148
+ };
149
+ }>;
80
150
  attrs: import("vue").ComputedRef<Pick<{
81
151
  [x: string]: unknown;
82
152
  }, string>>;
@@ -114,12 +184,12 @@ declare const _default: import("vue").DefineComponent<{
114
184
  };
115
185
  size: {
116
186
  type: PropType<ButtonSize>;
117
- default: () => any;
187
+ default: () => string;
118
188
  validator(value: string): boolean;
119
189
  };
120
190
  to: {
121
191
  type: PropType<(page: number) => RouteLocationRaw>;
122
- default: null;
192
+ default: any;
123
193
  };
124
194
  activeButton: {
125
195
  type: PropType<Button>;
@@ -162,17 +232,19 @@ declare const _default: import("vue").DefineComponent<{
162
232
  default: () => "";
163
233
  };
164
234
  ui: {
165
- type: PropType<any>;
235
+ type: PropType<Partial<typeof config> & {
236
+ strategy?: Strategy;
237
+ }>;
166
238
  default: () => {};
167
239
  };
168
240
  }>> & {
169
- "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
241
+ "onUpdate:modelValue"?: (...args: any[]) => any;
170
242
  }, {
171
243
  size: ButtonSize;
172
- class: any;
173
- disabled: boolean;
244
+ ui: {};
174
245
  to: (page: number) => RouteLocationRaw;
175
- ui: any;
246
+ disabled: boolean;
247
+ class: any;
176
248
  max: number;
177
249
  prevButton: Button;
178
250
  nextButton: Button;
@@ -25,6 +25,16 @@
25
25
  as="template"
26
26
  >
27
27
  <button :class="[ui.list.tab.base, ui.list.tab.background, ui.list.tab.height, ui.list.tab.padding, ui.list.tab.size, ui.list.tab.font, ui.list.tab.rounded, ui.list.tab.shadow, selected ? ui.list.tab.active : ui.list.tab.inactive]">
28
+ <slot
29
+ name="icon"
30
+ :item="item"
31
+ :index="index"
32
+ :selected="selected"
33
+ :disabled="disabled"
34
+ >
35
+ <UIcon v-if="item.icon" :name="item.icon" :class="ui.list.tab.icon" />
36
+ </slot>
37
+
28
38
  <slot :item="item" :index="index" :selected="selected" :disabled="disabled">
29
39
  <span class="truncate">{{ item.label }}</span>
30
40
  </slot>