@nuxt/ui 2.16.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 (245) hide show
  1. package/dist/module.d.mts +3 -1985
  2. package/dist/module.d.ts +3 -1985
  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 +12 -10
  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 +9 -13
  35. package/dist/runtime/components/forms/Form.vue.d.ts +14 -18
  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 +3 -3
  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 +4 -4
  48. package/dist/runtime/components/forms/Select.vue.d.ts +273 -50
  49. package/dist/runtime/components/forms/SelectMenu.vue +51 -26
  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 +2 -3
  61. package/dist/runtime/components/navigation/Breadcrumb.vue.d.ts +52 -9
  62. package/dist/runtime/components/navigation/CommandPalette.vue +11 -5
  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 +15 -1
  71. package/dist/runtime/components/navigation/Tabs.vue.d.ts +95 -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 +5 -6
  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 +43 -6
  82. package/dist/runtime/components/overlays/Slideover.vue.d.ts +87 -14
  83. package/dist/runtime/components/overlays/Tooltip.vue.d.ts +90 -15
  84. package/dist/runtime/composables/{defineShortcuts.mjs → defineShortcuts.js} +1 -1
  85. package/dist/runtime/composables/{useButtonGroup.mjs → useButtonGroup.js} +8 -9
  86. package/dist/runtime/composables/{useCarouselScroll.mjs → useCarouselScroll.js} +2 -0
  87. package/dist/runtime/composables/useCopyToClipboard.d.ts +1 -1
  88. package/dist/runtime/composables/{useCopyToClipboard.mjs → useCopyToClipboard.js} +1 -1
  89. package/dist/runtime/composables/useFormGroup.d.ts +5 -5
  90. package/dist/runtime/composables/useFormGroup.js +49 -0
  91. package/dist/runtime/composables/useModal.d.ts +3 -3
  92. package/dist/runtime/composables/{useModal.mjs → useModal.js} +2 -4
  93. package/dist/runtime/composables/usePopper.d.ts +91 -55
  94. package/dist/runtime/composables/useShortcuts.d.ts +4 -4
  95. package/dist/runtime/composables/useSlideover.d.ts +3 -3
  96. package/dist/runtime/composables/{useSlideover.mjs → useSlideover.js} +2 -4
  97. package/dist/runtime/composables/useTimer.d.ts +1 -1
  98. package/dist/runtime/composables/useToast.d.ts +11 -11
  99. package/dist/runtime/composables/useUI.d.ts +1 -1
  100. package/dist/runtime/composables/{useUI.mjs → useUI.js} +1 -1
  101. package/dist/runtime/plugins/colors.d.ts +1 -1
  102. package/dist/runtime/plugins/{colors.mjs → colors.js} +1 -1
  103. package/dist/runtime/plugins/modals.d.ts +1 -1
  104. package/dist/runtime/plugins/{modals.mjs → modals.js} +1 -1
  105. package/dist/runtime/plugins/slideovers.d.ts +1 -1
  106. package/dist/runtime/plugins/{slideovers.mjs → slideovers.js} +1 -1
  107. package/dist/runtime/types/accordion.d.ts +6 -7
  108. package/dist/runtime/types/accordion.js +0 -0
  109. package/dist/runtime/types/alert.d.ts +8 -10
  110. package/dist/runtime/types/alert.js +0 -0
  111. package/dist/runtime/types/avatar.d.ts +13 -15
  112. package/dist/runtime/types/avatar.js +0 -0
  113. package/dist/runtime/types/badge.d.ts +11 -13
  114. package/dist/runtime/types/badge.js +0 -0
  115. package/dist/runtime/types/breadcrumb.d.ts +6 -8
  116. package/dist/runtime/types/breadcrumb.js +0 -0
  117. package/dist/runtime/types/button.d.ts +27 -29
  118. package/dist/runtime/types/button.js +0 -0
  119. package/dist/runtime/types/chip.d.ts +11 -13
  120. package/dist/runtime/types/chip.js +0 -0
  121. package/dist/runtime/types/clipboard.d.ts +7 -1
  122. package/dist/runtime/types/clipboard.js +0 -0
  123. package/dist/runtime/types/command-palette.d.ts +23 -24
  124. package/dist/runtime/types/command-palette.js +0 -0
  125. package/dist/runtime/types/component.d.ts +17 -14
  126. package/dist/runtime/types/component.js +0 -0
  127. package/dist/runtime/types/divider.d.ts +2 -3
  128. package/dist/runtime/types/divider.js +0 -0
  129. package/dist/runtime/types/dropdown.d.ts +12 -13
  130. package/dist/runtime/types/dropdown.js +0 -0
  131. package/dist/runtime/types/form-group.d.ts +4 -5
  132. package/dist/runtime/types/form-group.js +0 -0
  133. package/dist/runtime/types/form.d.ts +29 -28
  134. package/dist/runtime/types/form.js +0 -0
  135. package/dist/runtime/types/horizontal-navigation.d.ts +10 -11
  136. package/dist/runtime/types/horizontal-navigation.js +0 -0
  137. package/dist/runtime/types/index.d.ts +31 -31
  138. package/dist/runtime/types/index.js +31 -0
  139. package/dist/runtime/types/input.d.ts +7 -8
  140. package/dist/runtime/types/input.js +0 -0
  141. package/dist/runtime/types/kbd.d.ts +4 -5
  142. package/dist/runtime/types/kbd.js +0 -0
  143. package/dist/runtime/types/link.d.ts +9 -10
  144. package/dist/runtime/types/link.js +0 -0
  145. package/dist/runtime/types/meter.d.ts +4 -5
  146. package/dist/runtime/types/meter.js +0 -0
  147. package/dist/runtime/types/modal.d.ts +13 -15
  148. package/dist/runtime/types/modal.js +0 -0
  149. package/dist/runtime/types/notification.d.ts +17 -20
  150. package/dist/runtime/types/notification.js +0 -0
  151. package/dist/runtime/types/popper.d.ts +13 -15
  152. package/dist/runtime/types/popper.js +0 -0
  153. package/dist/runtime/types/progress.d.ts +5 -6
  154. package/dist/runtime/types/progress.js +0 -0
  155. package/dist/runtime/types/range.d.ts +6 -7
  156. package/dist/runtime/types/range.js +0 -0
  157. package/dist/runtime/types/select.d.ts +7 -8
  158. package/dist/runtime/types/select.js +0 -0
  159. package/dist/runtime/types/slideover.d.ts +10 -12
  160. package/dist/runtime/types/slideover.js +0 -0
  161. package/dist/runtime/types/tabs.d.ts +6 -5
  162. package/dist/runtime/types/tabs.js +0 -0
  163. package/dist/runtime/types/textarea.d.ts +7 -8
  164. package/dist/runtime/types/textarea.js +0 -0
  165. package/dist/runtime/types/toggle.d.ts +6 -7
  166. package/dist/runtime/types/toggle.js +0 -0
  167. package/dist/runtime/types/tooltip.d.ts +5 -5
  168. package/dist/runtime/types/tooltip.js +0 -0
  169. package/dist/runtime/types/utils.d.ts +15 -27
  170. package/dist/runtime/types/utils.js +0 -0
  171. package/dist/runtime/types/vertical-navigation.d.ts +10 -11
  172. package/dist/runtime/types/vertical-navigation.js +0 -0
  173. package/dist/runtime/ui.config/data/table.d.ts +10 -0
  174. package/dist/runtime/ui.config/data/{table.mjs → table.js} +10 -0
  175. package/dist/runtime/ui.config/elements/accordion.d.ts +1 -0
  176. package/dist/runtime/ui.config/elements/{accordion.mjs → accordion.js} +3 -2
  177. package/dist/runtime/ui.config/elements/alert.d.ts +2 -2
  178. package/dist/runtime/ui.config/elements/avatar.d.ts +2 -2
  179. package/dist/runtime/ui.config/elements/{carousel.mjs → carousel.js} +1 -1
  180. package/dist/runtime/ui.config/elements/{dropdown.mjs → dropdown.js} +1 -1
  181. package/dist/runtime/ui.config/forms/{inputMenu.mjs → inputMenu.js} +1 -1
  182. package/dist/runtime/ui.config/forms/{select.mjs → select.js} +1 -1
  183. package/dist/runtime/ui.config/forms/{selectMenu.mjs → selectMenu.js} +2 -2
  184. package/dist/runtime/ui.config/forms/{textarea.mjs → textarea.js} +1 -1
  185. package/dist/runtime/ui.config/forms/toggle.d.ts +2 -2
  186. package/dist/runtime/ui.config/index.d.ts +43 -43
  187. package/dist/runtime/ui.config/index.js +43 -0
  188. package/dist/runtime/ui.config/navigation/{breadcrumb.mjs → breadcrumb.js} +2 -2
  189. package/dist/runtime/ui.config/navigation/commandPalette.d.ts +1 -1
  190. package/dist/runtime/ui.config/navigation/tabs.d.ts +1 -0
  191. package/dist/runtime/ui.config/navigation/{tabs.mjs → tabs.js} +2 -1
  192. package/dist/runtime/ui.config/overlays/{contextMenu.mjs → contextMenu.js} +1 -1
  193. package/dist/runtime/ui.config/overlays/{modal.mjs → modal.js} +2 -2
  194. package/dist/runtime/ui.config/overlays/notification.d.ts +1 -1
  195. package/dist/runtime/ui.config/overlays/{popover.mjs → popover.js} +1 -1
  196. package/dist/runtime/ui.config/overlays/slideover.d.ts +3 -0
  197. package/dist/runtime/ui.config/overlays/{slideover.mjs → slideover.js} +6 -3
  198. package/dist/runtime/ui.config/overlays/{tooltip.mjs → tooltip.js} +1 -1
  199. package/dist/runtime/utils/colors.d.ts +2 -2
  200. package/dist/runtime/utils/{colors.mjs → colors.js} +1 -1
  201. package/dist/runtime/utils/index.d.ts +4 -4
  202. package/dist/runtime/utils/{index.mjs → index.js} +2 -2
  203. package/dist/runtime/utils/link.d.ts +26 -24
  204. package/dist/runtime/utils/{link.mjs → link.js} +1 -1
  205. package/dist/types.d.mts +1 -16
  206. package/dist/types.d.ts +1 -16
  207. package/package.json +29 -27
  208. package/dist/runtime/components/elements/Icon.vue +0 -29
  209. package/dist/runtime/components/elements/Icon.vue.d.ts +0 -24
  210. package/dist/runtime/composables/useFormGroup.mjs +0 -45
  211. package/dist/runtime/ui.config/index.mjs +0 -43
  212. /package/dist/runtime/composables/{usePopper.mjs → usePopper.js} +0 -0
  213. /package/dist/runtime/composables/{useShortcuts.mjs → useShortcuts.js} +0 -0
  214. /package/dist/runtime/composables/{useTimer.mjs → useTimer.js} +0 -0
  215. /package/dist/runtime/composables/{useToast.mjs → useToast.js} +0 -0
  216. /package/dist/runtime/ui.config/elements/{alert.mjs → alert.js} +0 -0
  217. /package/dist/runtime/ui.config/elements/{avatar.mjs → avatar.js} +0 -0
  218. /package/dist/runtime/ui.config/elements/{avatarGroup.mjs → avatarGroup.js} +0 -0
  219. /package/dist/runtime/ui.config/elements/{badge.mjs → badge.js} +0 -0
  220. /package/dist/runtime/ui.config/elements/{button.mjs → button.js} +0 -0
  221. /package/dist/runtime/ui.config/elements/{buttonGroup.mjs → buttonGroup.js} +0 -0
  222. /package/dist/runtime/ui.config/elements/{chip.mjs → chip.js} +0 -0
  223. /package/dist/runtime/ui.config/elements/{kbd.mjs → kbd.js} +0 -0
  224. /package/dist/runtime/ui.config/elements/{meter.mjs → meter.js} +0 -0
  225. /package/dist/runtime/ui.config/elements/{meterGroup.mjs → meterGroup.js} +0 -0
  226. /package/dist/runtime/ui.config/elements/{progress.mjs → progress.js} +0 -0
  227. /package/dist/runtime/ui.config/forms/{checkbox.mjs → checkbox.js} +0 -0
  228. /package/dist/runtime/ui.config/forms/{formGroup.mjs → formGroup.js} +0 -0
  229. /package/dist/runtime/ui.config/forms/{input.mjs → input.js} +0 -0
  230. /package/dist/runtime/ui.config/forms/{radio.mjs → radio.js} +0 -0
  231. /package/dist/runtime/ui.config/forms/{radioGroup.mjs → radioGroup.js} +0 -0
  232. /package/dist/runtime/ui.config/forms/{range.mjs → range.js} +0 -0
  233. /package/dist/runtime/ui.config/forms/{toggle.mjs → toggle.js} +0 -0
  234. /package/dist/runtime/ui.config/layout/{card.mjs → card.js} +0 -0
  235. /package/dist/runtime/ui.config/layout/{container.mjs → container.js} +0 -0
  236. /package/dist/runtime/ui.config/layout/{divider.mjs → divider.js} +0 -0
  237. /package/dist/runtime/ui.config/layout/{skeleton.mjs → skeleton.js} +0 -0
  238. /package/dist/runtime/ui.config/navigation/{commandPalette.mjs → commandPalette.js} +0 -0
  239. /package/dist/runtime/ui.config/navigation/{horizontalNavigation.mjs → horizontalNavigation.js} +0 -0
  240. /package/dist/runtime/ui.config/navigation/{pagination.mjs → pagination.js} +0 -0
  241. /package/dist/runtime/ui.config/navigation/{verticalNavigation.mjs → verticalNavigation.js} +0 -0
  242. /package/dist/runtime/ui.config/overlays/{notification.mjs → notification.js} +0 -0
  243. /package/dist/runtime/ui.config/overlays/{notifications.mjs → notifications.js} +0 -0
  244. /package/dist/runtime/ui.config/{popper.mjs → popper.js} +0 -0
  245. /package/dist/runtime/utils/{lodash.mjs → lodash.js} +0 -0
@@ -1,4 +1,28 @@
1
1
  import type { PropType } from 'vue';
2
+ import type { Strategy } from '../../types.js';
3
+ declare const config: {
4
+ base: string;
5
+ background: string;
6
+ divide: string;
7
+ ring: string;
8
+ rounded: string;
9
+ shadow: string;
10
+ body: {
11
+ base: string;
12
+ background: string;
13
+ padding: string;
14
+ };
15
+ header: {
16
+ base: string;
17
+ background: string;
18
+ padding: string;
19
+ };
20
+ footer: {
21
+ base: string;
22
+ background: string;
23
+ padding: string;
24
+ };
25
+ };
2
26
  declare const _default: import("vue").DefineComponent<{
3
27
  as: {
4
28
  type: StringConstructor;
@@ -9,11 +33,35 @@ declare const _default: import("vue").DefineComponent<{
9
33
  default: () => string;
10
34
  };
11
35
  ui: {
12
- type: PropType<any>;
36
+ type: PropType<Partial<typeof config> & {
37
+ strategy?: Strategy;
38
+ }>;
13
39
  default: () => {};
14
40
  };
15
41
  }, {
16
- ui: import("vue").ComputedRef<any>;
42
+ ui: import("vue").ComputedRef<{
43
+ base: string;
44
+ background: string;
45
+ divide: string;
46
+ ring: string;
47
+ rounded: string;
48
+ shadow: string;
49
+ body: {
50
+ base: string;
51
+ background: string;
52
+ padding: string;
53
+ };
54
+ header: {
55
+ base: string;
56
+ background: string;
57
+ padding: string;
58
+ };
59
+ footer: {
60
+ base: string;
61
+ background: string;
62
+ padding: string;
63
+ };
64
+ }>;
17
65
  attrs: import("vue").ComputedRef<Pick<{
18
66
  [x: string]: unknown;
19
67
  }, string>>;
@@ -28,12 +76,14 @@ declare const _default: import("vue").DefineComponent<{
28
76
  default: () => string;
29
77
  };
30
78
  ui: {
31
- type: PropType<any>;
79
+ type: PropType<Partial<typeof config> & {
80
+ strategy?: Strategy;
81
+ }>;
32
82
  default: () => {};
33
83
  };
34
84
  }>>, {
35
- class: any;
85
+ ui: {};
36
86
  as: string;
37
- ui: any;
87
+ class: any;
38
88
  }, {}>;
39
89
  export default _default;
@@ -1,4 +1,10 @@
1
1
  import type { PropType } from 'vue';
2
+ import type { Strategy } from '../../types.js';
3
+ declare const config: {
4
+ base: string;
5
+ padding: string;
6
+ constrained: string;
7
+ };
2
8
  declare const _default: import("vue").DefineComponent<{
3
9
  as: {
4
10
  type: StringConstructor;
@@ -9,11 +15,17 @@ declare const _default: import("vue").DefineComponent<{
9
15
  default: () => string;
10
16
  };
11
17
  ui: {
12
- type: PropType<any>;
18
+ type: PropType<Partial<typeof config> & {
19
+ strategy?: Strategy;
20
+ }>;
13
21
  default: () => {};
14
22
  };
15
23
  }, {
16
- ui: import("vue").ComputedRef<any>;
24
+ ui: import("vue").ComputedRef<{
25
+ base: string;
26
+ padding: string;
27
+ constrained: string;
28
+ }>;
17
29
  attrs: import("vue").ComputedRef<Pick<{
18
30
  [x: string]: unknown;
19
31
  }, string>>;
@@ -28,12 +40,14 @@ declare const _default: import("vue").DefineComponent<{
28
40
  default: () => string;
29
41
  };
30
42
  ui: {
31
- type: PropType<any>;
43
+ type: PropType<Partial<typeof config> & {
44
+ strategy?: Strategy;
45
+ }>;
32
46
  default: () => {};
33
47
  };
34
48
  }>>, {
35
- class: any;
49
+ ui: {};
36
50
  as: string;
37
- ui: any;
51
+ class: any;
38
52
  }, {}>;
39
53
  export default _default;
@@ -21,8 +21,7 @@
21
21
  <script>
22
22
  import { toRef, computed, defineComponent } from "vue";
23
23
  import { twMerge, twJoin } from "tailwind-merge";
24
- import UIcon from "../elements/Icon.vue";
25
- import UAvatar from "../elements/Avatar.vue";
24
+ import { UIcon, UAvatar } from "#components";
26
25
  import { useUI } from "../../composables/useUI";
27
26
  import { mergeConfig } from "../../utils";
28
27
  import appConfig from "#build/app.config";
@@ -1,21 +1,72 @@
1
1
  import type { PropType } from 'vue';
2
- import type { Avatar, DividerSize } from '../../types';
2
+ import type { Avatar, DividerSize, Strategy } from '../../types.js';
3
+ declare const config: {
4
+ wrapper: {
5
+ base: string;
6
+ horizontal: string;
7
+ vertical: string;
8
+ };
9
+ container: {
10
+ base: string;
11
+ horizontal: string;
12
+ vertical: string;
13
+ };
14
+ border: {
15
+ base: string;
16
+ horizontal: string;
17
+ vertical: string;
18
+ size: {
19
+ horizontal: {
20
+ '2xs': string;
21
+ xs: string;
22
+ sm: string;
23
+ md: string;
24
+ lg: string;
25
+ xl: string;
26
+ };
27
+ vertical: {
28
+ '2xs': string;
29
+ xs: string;
30
+ sm: string;
31
+ md: string;
32
+ lg: string;
33
+ xl: string;
34
+ };
35
+ };
36
+ type: {
37
+ solid: string;
38
+ dotted: string;
39
+ dashed: string;
40
+ };
41
+ };
42
+ icon: {
43
+ base: string;
44
+ };
45
+ avatar: {
46
+ base: string;
47
+ size: "2xs";
48
+ };
49
+ label: string;
50
+ default: {
51
+ size: "2xs";
52
+ };
53
+ };
3
54
  declare const _default: import("vue").DefineComponent<{
4
55
  label: {
5
56
  type: StringConstructor;
6
- default: null;
57
+ default: any;
7
58
  };
8
59
  icon: {
9
60
  type: StringConstructor;
10
- default: null;
61
+ default: any;
11
62
  };
12
63
  avatar: {
13
64
  type: PropType<Avatar>;
14
- default: null;
65
+ default: any;
15
66
  };
16
67
  size: {
17
68
  type: PropType<DividerSize>;
18
- default: () => any;
69
+ default: () => "2xs";
19
70
  validator(value: string): boolean;
20
71
  };
21
72
  orientation: {
@@ -33,11 +84,63 @@ declare const _default: import("vue").DefineComponent<{
33
84
  default: () => "";
34
85
  };
35
86
  ui: {
36
- type: PropType<any>;
87
+ type: PropType<Partial<typeof config> & {
88
+ strategy?: Strategy;
89
+ }>;
37
90
  default: () => {};
38
91
  };
39
92
  }, {
40
- ui: import("vue").ComputedRef<any>;
93
+ ui: import("vue").ComputedRef<{
94
+ wrapper: {
95
+ base: string;
96
+ horizontal: string;
97
+ vertical: string;
98
+ };
99
+ container: {
100
+ base: string;
101
+ horizontal: string;
102
+ vertical: string;
103
+ };
104
+ border: {
105
+ base: string;
106
+ horizontal: string;
107
+ vertical: string;
108
+ size: {
109
+ horizontal: {
110
+ '2xs': string;
111
+ xs: string;
112
+ sm: string;
113
+ md: string;
114
+ lg: string;
115
+ xl: string;
116
+ };
117
+ vertical: {
118
+ '2xs': string;
119
+ xs: string;
120
+ sm: string;
121
+ md: string;
122
+ lg: string;
123
+ xl: string;
124
+ };
125
+ };
126
+ type: {
127
+ solid: string;
128
+ dotted: string;
129
+ dashed: string;
130
+ };
131
+ };
132
+ icon: {
133
+ base: string;
134
+ };
135
+ avatar: {
136
+ base: string;
137
+ size: "2xs";
138
+ };
139
+ label: string;
140
+ default: {
141
+ size: "2xs";
142
+ };
143
+ }>;
41
144
  attrs: import("vue").ComputedRef<Pick<{
42
145
  [x: string]: unknown;
43
146
  }, string>>;
@@ -47,19 +150,19 @@ declare const _default: import("vue").DefineComponent<{
47
150
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
48
151
  label: {
49
152
  type: StringConstructor;
50
- default: null;
153
+ default: any;
51
154
  };
52
155
  icon: {
53
156
  type: StringConstructor;
54
- default: null;
157
+ default: any;
55
158
  };
56
159
  avatar: {
57
160
  type: PropType<Avatar>;
58
- default: null;
161
+ default: any;
59
162
  };
60
163
  size: {
61
164
  type: PropType<DividerSize>;
62
- default: () => any;
165
+ default: () => "2xs";
63
166
  validator(value: string): boolean;
64
167
  };
65
168
  orientation: {
@@ -77,17 +180,19 @@ declare const _default: import("vue").DefineComponent<{
77
180
  default: () => "";
78
181
  };
79
182
  ui: {
80
- type: PropType<any>;
183
+ type: PropType<Partial<typeof config> & {
184
+ strategy?: Strategy;
185
+ }>;
81
186
  default: () => {};
82
187
  };
83
188
  }>>, {
189
+ orientation: "horizontal" | "vertical";
84
190
  size: DividerSize;
191
+ ui: {};
85
192
  type: "solid" | "dotted" | "dashed";
86
193
  label: string;
87
- class: any;
88
- avatar: Avatar;
89
- orientation: "horizontal" | "vertical";
90
- ui: any;
91
194
  icon: string;
195
+ avatar: any;
196
+ class: any;
92
197
  }, {}>;
93
198
  export default _default;
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <div :class="skeletonClass" v-bind="attrs" />
2
+ <component :is="as" :class="skeletonClass" v-bind="attrs" />
3
3
  </template>
4
4
 
5
5
  <script>
@@ -13,6 +13,10 @@ const config = mergeConfig(appConfig.ui.strategy, appConfig.ui.skeleton, skeleto
13
13
  export default defineComponent({
14
14
  inheritAttrs: false,
15
15
  props: {
16
+ as: {
17
+ type: String,
18
+ default: "div"
19
+ },
16
20
  class: {
17
21
  type: [String, Object, Array],
18
22
  default: () => ""
@@ -1,30 +1,53 @@
1
1
  import type { PropType } from 'vue';
2
+ import type { Strategy } from '../../types.js';
3
+ declare const config: {
4
+ base: string;
5
+ background: string;
6
+ rounded: string;
7
+ };
2
8
  declare const _default: import("vue").DefineComponent<{
9
+ as: {
10
+ type: StringConstructor;
11
+ default: string;
12
+ };
3
13
  class: {
4
14
  type: PropType<any>;
5
15
  default: () => string;
6
16
  };
7
17
  ui: {
8
- type: PropType<any>;
18
+ type: PropType<Partial<typeof config> & {
19
+ strategy?: Strategy;
20
+ }>;
9
21
  default: () => {};
10
22
  };
11
23
  }, {
12
- ui: import("vue").ComputedRef<any>;
24
+ ui: import("vue").ComputedRef<{
25
+ base: string;
26
+ background: string;
27
+ rounded: string;
28
+ }>;
13
29
  attrs: import("vue").ComputedRef<Pick<{
14
30
  [x: string]: unknown;
15
31
  }, string>>;
16
32
  skeletonClass: import("vue").ComputedRef<string>;
17
33
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
34
+ as: {
35
+ type: StringConstructor;
36
+ default: string;
37
+ };
18
38
  class: {
19
39
  type: PropType<any>;
20
40
  default: () => string;
21
41
  };
22
42
  ui: {
23
- type: PropType<any>;
43
+ type: PropType<Partial<typeof config> & {
44
+ strategy?: Strategy;
45
+ }>;
24
46
  default: () => {};
25
47
  };
26
48
  }>>, {
49
+ ui: {};
50
+ as: string;
27
51
  class: any;
28
- ui: any;
29
52
  }, {}>;
30
53
  export default _default;
@@ -5,8 +5,8 @@
5
5
  <ULink
6
6
  as="span"
7
7
  :class="[ui.base, index === links.length - 1 ? ui.active : !!link.to ? ui.inactive : '']"
8
- v-bind="getULinkProps(link)"
9
8
  :aria-current="index === links.length - 1 ? 'page' : undefined"
9
+ v-bind="getULinkProps(link)"
10
10
  @click="link.click"
11
11
  >
12
12
  <slot name="icon" :link="link" :index="index" :is-active="index === links.length - 1">
@@ -36,8 +36,7 @@
36
36
  <script>
37
37
  import { defineComponent, toRef } from "vue";
38
38
  import { twMerge, twJoin } from "tailwind-merge";
39
- import UIcon from "../elements/Icon.vue";
40
- import ULink from "../elements/Link.vue";
39
+ import { UIcon, ULink } from "#components";
41
40
  import { useUI } from "../../composables/useUI";
42
41
  import { mergeConfig, getULinkProps } from "../../utils";
43
42
  import appConfig from "#build/app.config";
@@ -1,25 +1,66 @@
1
1
  import type { PropType } from 'vue';
2
2
  import { twJoin } from 'tailwind-merge';
3
- import type { BreadcrumbLink } from '../../types';
3
+ import type { BreadcrumbLink, Strategy } from '../../types.js';
4
+ declare const config: {
5
+ wrapper: string;
6
+ ol: string;
7
+ li: string;
8
+ base: string;
9
+ label: string;
10
+ icon: {
11
+ base: string;
12
+ active: string;
13
+ inactive: string;
14
+ };
15
+ divider: {
16
+ base: string;
17
+ };
18
+ active: string;
19
+ inactive: string;
20
+ default: {
21
+ divider: string;
22
+ };
23
+ };
4
24
  declare const _default: import("vue").DefineComponent<{
5
25
  links: {
6
26
  type: PropType<BreadcrumbLink[]>;
7
- default: () => never[];
27
+ default: () => any[];
8
28
  };
9
29
  divider: {
10
30
  type: StringConstructor;
11
- default: () => any;
31
+ default: () => string;
12
32
  };
13
33
  class: {
14
34
  type: PropType<any>;
15
35
  default: () => string;
16
36
  };
17
37
  ui: {
18
- type: PropType<any>;
38
+ type: PropType<Partial<typeof config> & {
39
+ strategy?: Strategy;
40
+ }>;
19
41
  default: () => {};
20
42
  };
21
43
  }, {
22
- ui: import("vue").ComputedRef<any>;
44
+ ui: import("vue").ComputedRef<{
45
+ wrapper: string;
46
+ ol: string;
47
+ li: string;
48
+ base: string;
49
+ label: string;
50
+ icon: {
51
+ base: string;
52
+ active: string;
53
+ inactive: string;
54
+ };
55
+ divider: {
56
+ base: string;
57
+ };
58
+ active: string;
59
+ inactive: string;
60
+ default: {
61
+ divider: string;
62
+ };
63
+ }>;
23
64
  attrs: import("vue").ComputedRef<Pick<{
24
65
  [x: string]: unknown;
25
66
  }, string>>;
@@ -29,23 +70,25 @@ declare const _default: import("vue").DefineComponent<{
29
70
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
30
71
  links: {
31
72
  type: PropType<BreadcrumbLink[]>;
32
- default: () => never[];
73
+ default: () => any[];
33
74
  };
34
75
  divider: {
35
76
  type: StringConstructor;
36
- default: () => any;
77
+ default: () => string;
37
78
  };
38
79
  class: {
39
80
  type: PropType<any>;
40
81
  default: () => string;
41
82
  };
42
83
  ui: {
43
- type: PropType<any>;
84
+ type: PropType<Partial<typeof config> & {
85
+ strategy?: Strategy;
86
+ }>;
44
87
  default: () => {};
45
88
  };
46
89
  }>>, {
90
+ ui: {};
47
91
  class: any;
48
- ui: any;
49
92
  divider: string;
50
93
  links: BreadcrumbLink[];
51
94
  }, {}>;
@@ -68,8 +68,7 @@ import { useDebounceFn } from "@vueuse/core";
68
68
  import { useFuse } from "@vueuse/integrations/useFuse";
69
69
  import { twJoin } from "tailwind-merge";
70
70
  import { defu } from "defu";
71
- import UIcon from "../elements/Icon.vue";
72
- import UButton from "../elements/Button.vue";
71
+ import { UIcon, UButton } from "#components";
73
72
  import CommandPaletteGroup from "./CommandPaletteGroup.vue";
74
73
  import { useUI } from "../../composables/useUI";
75
74
  import { mergeConfig } from "../../utils";
@@ -205,7 +204,7 @@ export default defineComponent({
205
204
  const commands = computed(() => {
206
205
  const commands2 = [];
207
206
  for (const group of props.groups) {
208
- if (!group.search) {
207
+ if (!group.search && !group.static) {
209
208
  commands2.push(...group.commands?.map((command) => ({ ...command, group: group.key })) || []);
210
209
  }
211
210
  }
@@ -249,9 +248,13 @@ export default defineComponent({
249
248
  const commands2 = searchResults.value[group.key] || [];
250
249
  return getGroupWithCommands(group, [...commands2]);
251
250
  });
251
+ const staticGroups = props.groups.filter((group) => group.static && group.commands?.length).map((group) => {
252
+ return getGroupWithCommands(group, group.commands);
253
+ });
252
254
  return [
253
255
  ...groups2,
254
- ...searchGroups
256
+ ...searchGroups,
257
+ ...staticGroups
255
258
  ];
256
259
  });
257
260
  const debouncedSearch = useDebounceFn(async () => {
@@ -283,7 +286,10 @@ export default defineComponent({
283
286
  (props.loading || isLoading.value) && props.loadingIcon && ui.value.input.icon.loading
284
287
  );
285
288
  });
286
- const emptyState = computed(() => ({ ...ui.value.default.emptyState, ...props.emptyState }));
289
+ const emptyState = computed(() => {
290
+ if (props.emptyState === null) return null;
291
+ return { ...ui.value.default.emptyState, ...props.emptyState };
292
+ });
287
293
  function activateFirstOption() {
288
294
  setTimeout(() => {
289
295
  comboboxInput.value?.$el.dispatchEvent(new KeyboardEvent("keydown", { key: "PageUp" }));