@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,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
85
  class: any;
36
86
  as: string;
37
- ui: any;
87
+ ui: {};
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
49
  class: any;
36
50
  as: string;
37
- ui: any;
51
+ ui: {};
38
52
  }, {}>;
39
53
  export default _default;
@@ -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
  }>>, {
84
189
  size: DividerSize;
85
190
  type: "solid" | "dotted" | "dashed";
86
- label: string;
87
191
  class: any;
88
- avatar: Avatar;
89
- orientation: "horizontal" | "vertical";
90
- ui: any;
192
+ ui: {};
193
+ avatar: any;
194
+ label: string;
91
195
  icon: string;
196
+ orientation: "horizontal" | "vertical";
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
  }>>, {
27
49
  class: any;
28
- ui: any;
50
+ as: string;
51
+ ui: {};
29
52
  }, {}>;
30
53
  export default _default;
@@ -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
  }>>, {
47
90
  class: any;
48
- ui: any;
91
+ ui: {};
49
92
  divider: string;
50
93
  links: BreadcrumbLink[];
51
94
  }, {}>;
@@ -205,7 +205,7 @@ export default defineComponent({
205
205
  const commands = computed(() => {
206
206
  const commands2 = [];
207
207
  for (const group of props.groups) {
208
- if (!group.search) {
208
+ if (!group.search && !group.static) {
209
209
  commands2.push(...group.commands?.map((command) => ({ ...command, group: group.key })) || []);
210
210
  }
211
211
  }
@@ -249,9 +249,13 @@ export default defineComponent({
249
249
  const commands2 = searchResults.value[group.key] || [];
250
250
  return getGroupWithCommands(group, [...commands2]);
251
251
  });
252
+ const staticGroups = props.groups.filter((group) => group.static && group.commands?.length).map((group) => {
253
+ return getGroupWithCommands(group, group.commands);
254
+ });
252
255
  return [
253
256
  ...groups2,
254
- ...searchGroups
257
+ ...searchGroups,
258
+ ...staticGroups
255
259
  ];
256
260
  });
257
261
  const debouncedSearch = useDebounceFn(async () => {
@@ -284,8 +288,7 @@ export default defineComponent({
284
288
  );
285
289
  });
286
290
  const emptyState = computed(() => {
287
- if (props.emptyState === null)
288
- return null;
291
+ if (props.emptyState === null) return null;
289
292
  return { ...ui.value.default.emptyState, ...props.emptyState };
290
293
  });
291
294
  function activateFirstOption() {