@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,31 +1,31 @@
1
- export * from './accordion'
2
- export * from './alert'
3
- export * from './avatar'
4
- export * from './badge'
5
- export * from './breadcrumb'
6
- export * from './button'
7
- export * from './chip'
8
- export * from './clipboard'
9
- export * from './command-palette'
10
- export * from './divider'
11
- export * from './dropdown'
12
- export * from './form-group'
13
- export * from './form'
14
- export * from './horizontal-navigation'
15
- export * from './input'
16
- export * from './kbd'
17
- export * from './link'
18
- export * from './meter'
19
- export * from './modal'
20
- export * from './slideover'
21
- export * from './notification'
22
- export * from './popper'
23
- export * from './progress'
24
- export * from './range'
25
- export * from './select'
26
- export * from './tabs'
27
- export * from './textarea'
28
- export * from './toggle'
29
- export * from './tooltip'
30
- export * from './vertical-navigation'
31
- export * from './utils'
1
+ export * from './accordion.js';
2
+ export * from './alert.js';
3
+ export * from './avatar.js';
4
+ export * from './badge.js';
5
+ export * from './breadcrumb.js';
6
+ export * from './button.js';
7
+ export * from './chip.js';
8
+ export * from './clipboard.js';
9
+ export * from './command-palette.js';
10
+ export * from './divider.js';
11
+ export * from './dropdown.js';
12
+ export * from './form-group.js';
13
+ export * from './form.js';
14
+ export * from './horizontal-navigation.js';
15
+ export * from './input.js';
16
+ export * from './kbd.js';
17
+ export * from './link.js';
18
+ export * from './meter.js';
19
+ export * from './modal.js';
20
+ export * from './slideover.js';
21
+ export * from './notification.js';
22
+ export * from './popper.js';
23
+ export * from './progress.js';
24
+ export * from './range.js';
25
+ export * from './select.js';
26
+ export * from './tabs.js';
27
+ export * from './textarea.js';
28
+ export * from './toggle.js';
29
+ export * from './tooltip.js';
30
+ export * from './vertical-navigation.js';
31
+ export * from './utils.js';
@@ -0,0 +1,31 @@
1
+ export * from "./accordion.js";
2
+ export * from "./alert.js";
3
+ export * from "./avatar.js";
4
+ export * from "./badge.js";
5
+ export * from "./breadcrumb.js";
6
+ export * from "./button.js";
7
+ export * from "./chip.js";
8
+ export * from "./clipboard.js";
9
+ export * from "./command-palette.js";
10
+ export * from "./divider.js";
11
+ export * from "./dropdown.js";
12
+ export * from "./form-group.js";
13
+ export * from "./form.js";
14
+ export * from "./horizontal-navigation.js";
15
+ export * from "./input.js";
16
+ export * from "./kbd.js";
17
+ export * from "./link.js";
18
+ export * from "./meter.js";
19
+ export * from "./modal.js";
20
+ export * from "./slideover.js";
21
+ export * from "./notification.js";
22
+ export * from "./popper.js";
23
+ export * from "./progress.js";
24
+ export * from "./range.js";
25
+ export * from "./select.js";
26
+ export * from "./tabs.js";
27
+ export * from "./textarea.js";
28
+ export * from "./toggle.js";
29
+ export * from "./tooltip.js";
30
+ export * from "./vertical-navigation.js";
31
+ export * from "./utils.js";
@@ -1,8 +1,7 @@
1
- import { input } from '../ui.config'
2
- import type { NestedKeyOf, ExtractDeepKey, ExtractDeepObject } from '.'
3
- import colors from '#ui-colors'
4
- import type { AppConfig } from 'nuxt/schema'
5
-
6
- export type InputSize = keyof typeof input.size | ExtractDeepKey<AppConfig, ['ui', 'input', 'size']>
7
- export type InputColor = keyof typeof input.color | ExtractDeepKey<AppConfig, ['ui', 'input', 'color']> | typeof colors[number]
8
- export type InputVariant = keyof typeof input.variant | ExtractDeepKey<AppConfig, ['ui', 'input', 'variant']> | NestedKeyOf<typeof input.color> | NestedKeyOf<ExtractDeepObject<AppConfig, ['ui', 'input', 'color']>>
1
+ import { input } from '../ui.config.js';
2
+ import type { NestedKeyOf, ExtractDeepKey, ExtractDeepObject } from '.';
3
+ import colors from '#ui-colors';
4
+ import type { AppConfig } from 'nuxt/schema';
5
+ export type InputSize = keyof typeof input.size | ExtractDeepKey<AppConfig, ['ui', 'input', 'size']>;
6
+ export type InputColor = keyof typeof input.color | ExtractDeepKey<AppConfig, ['ui', 'input', 'color']> | typeof colors[number];
7
+ export type InputVariant = keyof typeof input.variant | ExtractDeepKey<AppConfig, ['ui', 'input', 'variant']> | NestedKeyOf<typeof input.color> | NestedKeyOf<ExtractDeepObject<AppConfig, ['ui', 'input', 'color']>>;
File without changes
@@ -1,5 +1,4 @@
1
- import { kbd } from '../ui.config'
2
- import type { ExtractDeepKey } from '.'
3
- import type { AppConfig } from 'nuxt/schema'
4
-
5
- export type KbdSize = keyof typeof kbd.size | ExtractDeepKey<AppConfig, ['ui', 'kbd', 'size']>
1
+ import { kbd } from '../ui.config.js';
2
+ import type { ExtractDeepKey } from '.';
3
+ import type { AppConfig } from 'nuxt/schema';
4
+ export type KbdSize = keyof typeof kbd.size | ExtractDeepKey<AppConfig, ['ui', 'kbd', 'size']>;
File without changes
@@ -1,12 +1,11 @@
1
- import type { NuxtLinkProps } from '#app'
2
-
1
+ import type { NuxtLinkProps } from '#app';
3
2
  export interface Link extends NuxtLinkProps {
4
- as?: string
5
- type?: string
6
- disabled?: boolean
7
- active?: boolean
8
- exact?: boolean
9
- exactQuery?: boolean
10
- exactHash?: boolean
11
- inactiveClass?: string
3
+ as?: string;
4
+ type?: string;
5
+ disabled?: boolean;
6
+ active?: boolean;
7
+ exact?: boolean;
8
+ exactQuery?: boolean;
9
+ exactHash?: boolean;
10
+ inactiveClass?: string;
12
11
  }
File without changes
@@ -1,5 +1,4 @@
1
- import { meter } from '../ui.config'
2
- import colors from '#ui-colors'
3
-
4
- export type MeterSize = keyof typeof meter.meter.size
5
- export type MeterColor = keyof typeof meter.color | typeof colors[number]
1
+ import { meter } from '../ui.config.js';
2
+ import colors from '#ui-colors';
3
+ export type MeterSize = keyof typeof meter.meter.size;
4
+ export type MeterColor = keyof typeof meter.color | typeof colors[number];
File without changes
@@ -1,18 +1,16 @@
1
- import type { Component } from 'vue'
2
-
1
+ import type { Component } from 'vue';
3
2
  export interface Modal {
4
- appear?: boolean
5
- overlay?: boolean
6
- transition?: boolean
7
- preventClose?: boolean
8
- fullscreen?: boolean
9
- class?: string | Object | string[]
10
- ui?: any
11
- onClose?: () => void
12
- onClosePrevented?: () => void
3
+ appear?: boolean;
4
+ overlay?: boolean;
5
+ transition?: boolean;
6
+ preventClose?: boolean;
7
+ fullscreen?: boolean;
8
+ class?: string | Object | string[];
9
+ ui?: any;
10
+ onClose?: () => void;
11
+ onClosePrevented?: () => void;
13
12
  }
14
-
15
13
  export interface ModalState {
16
- component: Component | string
17
- props: Modal
18
- }
14
+ component: Component | string;
15
+ props: Modal;
16
+ }
File without changes
@@ -1,24 +1,21 @@
1
- import type { Avatar } from './avatar'
2
- import type { Button } from './button'
3
- import colors from '#ui-colors'
4
-
5
- export type NotificationColor = 'gray' | typeof colors[number]
6
-
1
+ import type { Avatar } from './avatar.js';
2
+ import type { Button } from './button.js';
3
+ import colors from '#ui-colors';
4
+ export type NotificationColor = 'gray' | typeof colors[number];
7
5
  export interface NotificationAction extends Button {
8
- click?: Function
6
+ click?: (...args: any[]) => void;
9
7
  }
10
-
11
8
  export interface Notification {
12
- id: string
13
- title: string
14
- description?: string
15
- icon?: string
16
- avatar?: Avatar
17
- closeButton?: Button
18
- timeout: number
19
- actions?: NotificationAction[]
20
- click?: Function
21
- callback?: Function
22
- color?: NotificationColor
23
- ui?: any
9
+ id: string;
10
+ title: string;
11
+ description?: string;
12
+ icon?: string;
13
+ avatar?: Avatar;
14
+ closeButton?: Button;
15
+ timeout: number;
16
+ actions?: NotificationAction[];
17
+ click?: (...args: any[]) => void;
18
+ callback?: (...args: any[]) => void;
19
+ color?: NotificationColor;
20
+ ui?: any;
24
21
  }
File without changes
@@ -1,17 +1,15 @@
1
- import type { Placement, PositioningStrategy } from '@popperjs/core'
2
-
1
+ import type { Placement, PositioningStrategy } from '@popperjs/core';
3
2
  export interface PopperOptions {
4
- // Workaround for weak types: https://mariusschulz.com/blog/weak-type-detection-in-typescript#workarounds-for-weak-types
5
- [key: string]: unknown
6
- locked?: boolean
7
- overflowPadding?: number
8
- offsetDistance?: number
9
- offsetSkid?: number
10
- placement?: Placement
11
- strategy?: PositioningStrategy
12
- gpuAcceleration?: boolean
13
- adaptive?: boolean
14
- scroll?: boolean
15
- resize?: boolean
16
- arrow?: boolean
3
+ [key: string]: unknown;
4
+ locked?: boolean;
5
+ overflowPadding?: number;
6
+ offsetDistance?: number;
7
+ offsetSkid?: number;
8
+ placement?: Placement;
9
+ strategy?: PositioningStrategy;
10
+ gpuAcceleration?: boolean;
11
+ adaptive?: boolean;
12
+ scroll?: boolean;
13
+ resize?: boolean;
14
+ arrow?: boolean;
17
15
  }
File without changes
@@ -1,6 +1,5 @@
1
- import { progress } from '../ui.config'
2
- import colors from '#ui-colors'
3
-
4
- export type ProgressSize = keyof typeof progress.progress.size
5
- export type ProgressAnimation = keyof typeof progress.animation
6
- export type ProgressColor = typeof colors[number]
1
+ import { progress } from '../ui.config.js';
2
+ import colors from '#ui-colors';
3
+ export type ProgressSize = keyof typeof progress.progress.size;
4
+ export type ProgressAnimation = keyof typeof progress.animation;
5
+ export type ProgressColor = typeof colors[number];
File without changes
@@ -1,7 +1,6 @@
1
- import { range } from '../ui.config'
2
- import type { ExtractDeepKey } from '.'
3
- import type { AppConfig } from 'nuxt/schema'
4
- import colors from '#ui-colors'
5
-
6
- export type RangeSize = keyof typeof range.size | ExtractDeepKey<AppConfig, ['ui', 'range', 'size']>
7
- export type RangeColor = typeof colors[number]
1
+ import { range } from '../ui.config.js';
2
+ import type { ExtractDeepKey } from '.';
3
+ import type { AppConfig } from 'nuxt/schema';
4
+ import colors from '#ui-colors';
5
+ export type RangeSize = keyof typeof range.size | ExtractDeepKey<AppConfig, ['ui', 'range', 'size']>;
6
+ export type RangeColor = typeof colors[number];
File without changes
@@ -1,8 +1,7 @@
1
- import { select } from '../ui.config'
2
- import type { NestedKeyOf, ExtractDeepKey, ExtractDeepObject } from '.'
3
- import colors from '#ui-colors'
4
- import type { AppConfig } from 'nuxt/schema'
5
-
6
- export type SelectSize = keyof typeof select.size | ExtractDeepKey<AppConfig, ['ui', 'select', 'size']>
7
- export type SelectColor = keyof typeof select.color | ExtractDeepKey<AppConfig, ['ui', 'select', 'color']> | typeof colors[number]
8
- export type SelectVariant = keyof typeof select.variant | ExtractDeepKey<AppConfig, ['ui', 'select', 'variant']> | NestedKeyOf<typeof select.color> | NestedKeyOf<ExtractDeepObject<AppConfig, ['ui', 'select', 'color']>>
1
+ import { select } from '../ui.config.js';
2
+ import type { NestedKeyOf, ExtractDeepKey, ExtractDeepObject } from '.';
3
+ import colors from '#ui-colors';
4
+ import type { AppConfig } from 'nuxt/schema';
5
+ export type SelectSize = keyof typeof select.size | ExtractDeepKey<AppConfig, ['ui', 'select', 'size']>;
6
+ export type SelectColor = keyof typeof select.color | ExtractDeepKey<AppConfig, ['ui', 'select', 'color']> | typeof colors[number];
7
+ export type SelectVariant = keyof typeof select.variant | ExtractDeepKey<AppConfig, ['ui', 'select', 'variant']> | NestedKeyOf<typeof select.color> | NestedKeyOf<ExtractDeepObject<AppConfig, ['ui', 'select', 'color']>>;
File without changes
@@ -1,16 +1,14 @@
1
- import type { Component } from 'vue'
2
-
1
+ import type { Component } from 'vue';
3
2
  export interface Slideover {
4
- ui?: any
5
- side?: 'right' | 'left'
6
- transition?: boolean
7
- appear?: boolean
8
- overlay?: boolean
9
- preventClose?: boolean
10
- modelValue?: boolean
3
+ ui?: any;
4
+ side?: 'right' | 'left';
5
+ transition?: boolean;
6
+ appear?: boolean;
7
+ overlay?: boolean;
8
+ preventClose?: boolean;
9
+ modelValue?: boolean;
11
10
  }
12
-
13
11
  export interface SlideoverState {
14
- component: Component | string
15
- props: Slideover
12
+ component: Component | string;
13
+ props: Slideover;
16
14
  }
File without changes
@@ -1,7 +1,8 @@
1
1
  export interface TabItem {
2
- label: string
3
- slot?: string
4
- disabled?: boolean
5
- content?: string
6
- [key: string]: any
2
+ label: string;
3
+ icon?: string;
4
+ slot?: string;
5
+ disabled?: boolean;
6
+ content?: string;
7
+ [key: string]: any;
7
8
  }
File without changes
@@ -1,8 +1,7 @@
1
- import { textarea } from '../ui.config'
2
- import type { NestedKeyOf, ExtractDeepKey, ExtractDeepObject } from '.'
3
- import colors from '#ui-colors'
4
- import type { AppConfig } from 'nuxt/schema'
5
-
6
- export type TextareaSize = keyof typeof textarea.size | ExtractDeepKey<AppConfig, ['ui', 'textarea', 'size']>
7
- export type TextareaColor = keyof typeof textarea.color | ExtractDeepKey<AppConfig, ['ui', 'textarea', 'color']> | typeof colors[number]
8
- export type TextareaVariant = keyof typeof textarea.variant | ExtractDeepKey<AppConfig, ['ui', 'textarea', 'variant']> | NestedKeyOf<typeof textarea.color> | NestedKeyOf<ExtractDeepObject<AppConfig, ['ui', 'textarea', 'color']>>
1
+ import { textarea } from '../ui.config.js';
2
+ import type { NestedKeyOf, ExtractDeepKey, ExtractDeepObject } from '.';
3
+ import colors from '#ui-colors';
4
+ import type { AppConfig } from 'nuxt/schema';
5
+ export type TextareaSize = keyof typeof textarea.size | ExtractDeepKey<AppConfig, ['ui', 'textarea', 'size']>;
6
+ export type TextareaColor = keyof typeof textarea.color | ExtractDeepKey<AppConfig, ['ui', 'textarea', 'color']> | typeof colors[number];
7
+ export type TextareaVariant = keyof typeof textarea.variant | ExtractDeepKey<AppConfig, ['ui', 'textarea', 'variant']> | NestedKeyOf<typeof textarea.color> | NestedKeyOf<ExtractDeepObject<AppConfig, ['ui', 'textarea', 'color']>>;
File without changes
@@ -1,7 +1,6 @@
1
- import { toggle } from '../ui.config'
2
- import type { ExtractDeepKey } from '.'
3
- import type { AppConfig } from 'nuxt/schema'
4
- import colors from '#ui-colors'
5
-
6
- export type ToggleSize = keyof typeof toggle.size | ExtractDeepKey<AppConfig, ['ui', 'toggle', 'size']>
7
- export type ToggleColor = typeof colors[number]
1
+ import { toggle } from '../ui.config.js';
2
+ import type { ExtractDeepKey } from '.';
3
+ import type { AppConfig } from 'nuxt/schema';
4
+ import colors from '#ui-colors';
5
+ export type ToggleSize = keyof typeof toggle.size | ExtractDeepKey<AppConfig, ['ui', 'toggle', 'size']>;
6
+ export type ToggleColor = typeof colors[number];
File without changes
@@ -1,7 +1,7 @@
1
1
  export interface Tooltip {
2
- text?: string
3
- prevent?: boolean
4
- shortcuts?: string[]
5
- openDelay?: number
6
- closeDelay?: number
2
+ text?: string;
3
+ prevent?: boolean;
4
+ shortcuts?: string[];
5
+ openDelay?: number;
6
+ closeDelay?: number;
7
7
  }
File without changes
@@ -1,28 +1,16 @@
1
- export type Strategy = 'merge' | 'override'
2
-
1
+ export type Strategy = 'merge' | 'override';
2
+ export interface TightMap<O = any> {
3
+ [key: string]: TightMap | O;
4
+ }
5
+ export type DeepPartial<T, O = any> = {
6
+ [P in keyof T]?: T[P] extends object ? DeepPartial<T[P], O> : T[P];
7
+ } & {
8
+ [key: string]: O | TightMap<O>;
9
+ };
3
10
  export type NestedKeyOf<ObjectType extends Record<string, any>> = {
4
- [Key in keyof ObjectType]: ObjectType[Key] extends Record<string, any>
5
- ? NestedKeyOf<ObjectType[Key]>
6
- : Key
7
- }[keyof ObjectType]
8
-
9
- export type DeepPartial<T> = Partial<{
10
- [P in keyof T]: DeepPartial<T[P]> | { [key: string]: string | object }
11
- }>
12
-
13
- type DeepKey<T, Keys extends string[]> =
14
- Keys extends [infer First, ...infer Rest]
15
- ? First extends keyof T
16
- ? Rest extends string[]
17
- ? DeepKey<T[First], Rest>
18
- : never
19
- : never
20
- : T
21
-
22
- export type ExtractDeepKey<T, Path extends string[]> = DeepKey<T, Path> extends infer Result
23
- ? Result extends Record<string, any> ? keyof Result : never
24
- : never
25
-
26
- export type ExtractDeepObject<T, Path extends string[]> = DeepKey<T, Path> extends infer Result
27
- ? Result extends Record<string, any> ? Result : never
28
- : never
11
+ [Key in keyof ObjectType]: ObjectType[Key] extends Record<string, any> ? NestedKeyOf<ObjectType[Key]> : Key;
12
+ }[keyof ObjectType];
13
+ type DeepKey<T, Keys extends string[]> = Keys extends [infer First, ...infer Rest] ? First extends keyof T ? Rest extends string[] ? DeepKey<T[First], Rest> : never : never : T;
14
+ export type ExtractDeepKey<T, Path extends string[]> = DeepKey<T, Path> extends infer Result ? Result extends Record<string, any> ? keyof Result : never : never;
15
+ export type ExtractDeepObject<T, Path extends string[]> = DeepKey<T, Path> extends infer Result ? Result extends Record<string, any> ? Result : never : never;
16
+ export {};
File without changes
@@ -1,13 +1,12 @@
1
- import type { Link } from './link'
2
- import type { Avatar } from './avatar'
3
- import type { Badge } from './badge'
4
-
1
+ import type { Link } from './link.js';
2
+ import type { Avatar } from './avatar.js';
3
+ import type { Badge } from './badge.js';
5
4
  export interface VerticalNavigationLink extends Link {
6
- label: string
7
- labelClass?: string
8
- icon?: string
9
- iconClass?: string
10
- avatar?: Avatar
11
- click?: Function
12
- badge?: string | number | Badge
5
+ label: string;
6
+ labelClass?: string;
7
+ icon?: string;
8
+ iconClass?: string;
9
+ avatar?: Avatar;
10
+ click?: (...args: any[]) => void;
11
+ badge?: string | number | Badge;
13
12
  }
File without changes
@@ -37,6 +37,9 @@ declare const _default: {
37
37
  label: string;
38
38
  icon: string;
39
39
  };
40
+ expand: {
41
+ icon: string;
42
+ };
40
43
  progress: {
41
44
  wrapper: string;
42
45
  };
@@ -51,6 +54,13 @@ declare const _default: {
51
54
  variant: "ghost";
52
55
  class: string;
53
56
  };
57
+ expandButton: {
58
+ icon: string;
59
+ color: "gray";
60
+ variant: "ghost";
61
+ size: "xs";
62
+ class: string;
63
+ };
54
64
  checkbox: {
55
65
  color: "primary";
56
66
  };
@@ -37,6 +37,9 @@ export default {
37
37
  label: "text-sm text-center text-gray-900 dark:text-white",
38
38
  icon: "w-6 h-6 mx-auto text-gray-400 dark:text-gray-500 mb-4"
39
39
  },
40
+ expand: {
41
+ icon: "transform transition-transform duration-200"
42
+ },
40
43
  progress: {
41
44
  wrapper: "absolute inset-x-0 -bottom-[0.5px] p-0"
42
45
  },
@@ -51,6 +54,13 @@ export default {
51
54
  variant: "ghost",
52
55
  class: "-m-1.5"
53
56
  },
57
+ expandButton: {
58
+ icon: "i-heroicons-chevron-down",
59
+ color: "gray",
60
+ variant: "ghost",
61
+ size: "xs",
62
+ class: "-my-1.5 align-middle"
63
+ },
54
64
  checkbox: {
55
65
  color: "primary"
56
66
  },
@@ -17,6 +17,7 @@ declare const _default: {
17
17
  closeIcon: string;
18
18
  class: string;
19
19
  variant: "soft";
20
+ truncate: boolean;
20
21
  };
21
22
  };
22
23
  export default _default;
@@ -6,7 +6,7 @@ export default {
6
6
  size: "text-sm",
7
7
  color: "text-gray-500 dark:text-gray-400",
8
8
  padding: "pt-1.5 pb-3",
9
- icon: "ms-auto transform transition-transform duration-200"
9
+ icon: "ms-auto transform transition-transform duration-200 flex-shrink-0"
10
10
  },
11
11
  transition: {
12
12
  enterActiveClass: "overflow-hidden transition-[height] duration-200 ease-out",
@@ -16,6 +16,7 @@ export default {
16
16
  openIcon: "i-heroicons-chevron-down-20-solid",
17
17
  closeIcon: "",
18
18
  class: "mb-1.5 w-full",
19
- variant: "soft"
19
+ variant: "soft",
20
+ truncate: true
20
21
  }
21
22
  };
@@ -29,8 +29,8 @@ declare const _default: {
29
29
  default: {
30
30
  color: string;
31
31
  variant: string;
32
- icon: null;
33
- closeButton: null;
32
+ icon: any;
33
+ closeButton: any;
34
34
  actionButton: {
35
35
  size: "xs";
36
36
  color: "primary";
@@ -52,8 +52,8 @@ declare const _default: {
52
52
  };
53
53
  default: {
54
54
  size: string;
55
- icon: null;
56
- chipColor: null;
55
+ icon: any;
56
+ chipColor: any;
57
57
  chipPosition: string;
58
58
  };
59
59
  };
@@ -9,7 +9,7 @@ export default {
9
9
  wrapper: "absolute flex items-center justify-center gap-3 bottom-4 inset-x-0",
10
10
  base: "rounded-full h-3 w-3",
11
11
  active: "bg-primary-500 dark:bg-primary-400",
12
- inactive: "bg-gray-100 dark:bg-gray-800 mix-blend-overlay"
12
+ inactive: "bg-gray-100 dark:bg-gray-800"
13
13
  },
14
14
  default: {
15
15
  prevButton: {
@@ -1,4 +1,4 @@
1
- import { arrow } from "../popper.mjs";
1
+ import { arrow } from "../popper.js";
2
2
  export default {
3
3
  wrapper: "relative inline-flex text-left rtl:text-right",
4
4
  container: "z-20 group",