@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,17 +1,17 @@
1
- import type { Notification } from '../types/notification';
1
+ import type { Notification } from '../types/notification.js';
2
2
  export declare function useToast(): {
3
3
  add: (notification: Partial<Notification>) => {
4
4
  id: string;
5
- title?: string | undefined;
6
- description?: string | undefined;
7
- icon?: string | undefined;
8
- avatar?: import("../types").Avatar | undefined;
9
- closeButton?: import("../types").Button | undefined;
10
- timeout?: number | undefined;
11
- actions?: import("../types/notification").NotificationAction[] | undefined;
12
- click?: Function | undefined;
13
- callback?: Function | undefined;
14
- color?: any;
5
+ title?: string;
6
+ description?: string;
7
+ icon?: string;
8
+ avatar?: import("../types").Avatar;
9
+ closeButton?: import("../types").Button;
10
+ timeout?: number;
11
+ actions?: import("../types").NotificationAction[];
12
+ click?: (...args: any[]) => void;
13
+ callback?: (...args: any[]) => void;
14
+ color?: import("../types").NotificationColor;
15
15
  ui?: any;
16
16
  };
17
17
  remove: (id: string) => void;
@@ -1,5 +1,5 @@
1
1
  import type { Ref } from 'vue';
2
- import type { Strategy } from '../types';
2
+ import type { Strategy } from '../types.js';
3
3
  export declare const useUI: <T>(key: any, $ui?: Ref<(Partial<T> & {
4
4
  strategy?: Strategy;
5
5
  }) | undefined>, $config?: Ref<T> | T, $wrapperClass?: Ref<string>, withAppConfig?: boolean) => {
@@ -1,6 +1,6 @@
1
1
  import { computed, toValue, useAttrs } from "vue";
2
2
  import { useAppConfig } from "#imports";
3
- import { mergeConfig, omit, get } from "../utils/index.mjs";
3
+ import { mergeConfig, omit, get } from "../utils/index.js";
4
4
  export const useUI = (key, $ui, $config, $wrapperClass, withAppConfig = false) => {
5
5
  const $attrs = useAttrs();
6
6
  const appConfig = useAppConfig();
@@ -1,2 +1,2 @@
1
- declare const _default: any;
1
+ declare const _default: import("#app").Plugin<Record<string, unknown>> & import("#app").ObjectPlugin<Record<string, unknown>>;
2
2
  export default _default;
@@ -1,5 +1,5 @@
1
1
  import { computed } from "vue";
2
- import { hexToRgb } from "../utils/index.mjs";
2
+ import { hexToRgb } from "../utils/index.js";
3
3
  import { defineNuxtPlugin, useAppConfig, useNuxtApp, useHead } from "#imports";
4
4
  import colors from "#tailwind-config/theme/colors";
5
5
  export default defineNuxtPlugin(() => {
@@ -1,2 +1,2 @@
1
- declare const _default: any;
1
+ declare const _default: import("#app").Plugin<Record<string, unknown>> & import("#app").ObjectPlugin<Record<string, unknown>>;
2
2
  export default _default;
@@ -1,6 +1,6 @@
1
1
  import { defineNuxtPlugin } from "#imports";
2
2
  import { shallowRef } from "vue";
3
- import { modalInjectionKey } from "../composables/useModal.mjs";
3
+ import { modalInjectionKey } from "../composables/useModal.js";
4
4
  export default defineNuxtPlugin((nuxtApp) => {
5
5
  const modalState = shallowRef({
6
6
  component: "div",
@@ -1,2 +1,2 @@
1
- declare const _default: any;
1
+ declare const _default: import("#app").Plugin<Record<string, unknown>> & import("#app").ObjectPlugin<Record<string, unknown>>;
2
2
  export default _default;
@@ -1,6 +1,6 @@
1
1
  import { defineNuxtPlugin } from "#imports";
2
2
  import { shallowRef } from "vue";
3
- import { slidOverInjectionKey } from "../composables/useSlideover.mjs";
3
+ import { slidOverInjectionKey } from "../composables/useSlideover.js";
4
4
  export default defineNuxtPlugin((nuxtApp) => {
5
5
  const slideoverState = shallowRef({
6
6
  component: "div",
@@ -1,9 +1,8 @@
1
- import type { Button } from './button'
2
-
1
+ import type { Button } from './button.js';
3
2
  export interface AccordionItem extends Button {
4
- slot?: string
5
- disabled?: boolean
6
- content?: string
7
- defaultOpen?: boolean
8
- closeOthers?: boolean
3
+ slot?: string;
4
+ disabled?: boolean;
5
+ content?: string;
6
+ defaultOpen?: boolean;
7
+ closeOthers?: boolean;
9
8
  }
File without changes
@@ -1,12 +1,10 @@
1
- import { alert } from '../ui.config'
2
- import type { NestedKeyOf, ExtractDeepKey, ExtractDeepObject } from '.'
3
- import type { Button } from './button'
4
- import colors from '#ui-colors'
5
- import type { AppConfig } from 'nuxt/schema'
6
-
7
- export type AlertColor = keyof typeof alert.color | ExtractDeepKey<AppConfig, ['ui', 'alert', 'color']> | typeof colors[number]
8
- export type AlertVariant = keyof typeof alert.variant | ExtractDeepKey<AppConfig, ['ui', 'alert', 'variant']> | NestedKeyOf<typeof alert.color> | NestedKeyOf<ExtractDeepObject<AppConfig, ['ui', 'alert', 'color']>>
9
-
1
+ import { alert } from '../ui.config.js';
2
+ import type { NestedKeyOf, ExtractDeepKey, ExtractDeepObject } from '.';
3
+ import type { Button } from './button.js';
4
+ import colors from '#ui-colors';
5
+ import type { AppConfig } from 'nuxt/schema';
6
+ export type AlertColor = keyof typeof alert.color | ExtractDeepKey<AppConfig, ['ui', 'alert', 'color']> | typeof colors[number];
7
+ export type AlertVariant = keyof typeof alert.variant | ExtractDeepKey<AppConfig, ['ui', 'alert', 'variant']> | NestedKeyOf<typeof alert.color> | NestedKeyOf<ExtractDeepObject<AppConfig, ['ui', 'alert', 'color']>>;
10
8
  export interface AlertAction extends Button {
11
- click?: Function
9
+ click?: (...args: any[]) => void;
12
10
  }
File without changes
@@ -1,17 +1,15 @@
1
- import { avatar } from '../ui.config'
2
- import type { ExtractDeepKey } from '.'
3
- import colors from '#ui-colors'
4
- import type { AppConfig } from 'nuxt/schema'
5
-
6
- export type AvatarSize = keyof typeof avatar.size | ExtractDeepKey<AppConfig, ['ui', 'avatar', 'size']>
7
- export type AvatarChipColor = 'gray' | typeof colors[number]
8
- export type AvatarChipPosition = keyof typeof avatar.chip.position
9
-
1
+ import { avatar } from '../ui.config.js';
2
+ import type { ExtractDeepKey } from '.';
3
+ import colors from '#ui-colors';
4
+ import type { AppConfig } from 'nuxt/schema';
5
+ export type AvatarSize = keyof typeof avatar.size | ExtractDeepKey<AppConfig, ['ui', 'avatar', 'size']>;
6
+ export type AvatarChipColor = 'gray' | typeof colors[number];
7
+ export type AvatarChipPosition = keyof typeof avatar.chip.position;
10
8
  export interface Avatar {
11
- src?: string | boolean
12
- alt?: string
13
- text?: string
14
- size?: AvatarSize
15
- chipColor?: AvatarChipColor
16
- chipPosition?: AvatarChipPosition
9
+ src?: string | boolean;
10
+ alt?: string;
11
+ text?: string;
12
+ size?: AvatarSize;
13
+ chipColor?: AvatarChipColor;
14
+ chipPosition?: AvatarChipPosition;
17
15
  }
File without changes
@@ -1,15 +1,13 @@
1
- import { badge } 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 BadgeSize = keyof typeof badge.size | ExtractDeepKey<AppConfig, ['ui', 'badge', 'size']>
7
- export type BadgeColor = keyof typeof badge.color | ExtractDeepKey<AppConfig, ['ui', 'badge', 'color']> | typeof colors[number]
8
- export type BadgeVariant = keyof typeof badge.variant | ExtractDeepKey<AppConfig, ['ui', 'badge', 'variant']> | NestedKeyOf<typeof badge.color> | NestedKeyOf<ExtractDeepObject<AppConfig, ['ui', 'badge', 'color']>>
9
-
1
+ import { badge } 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 BadgeSize = keyof typeof badge.size | ExtractDeepKey<AppConfig, ['ui', 'badge', 'size']>;
6
+ export type BadgeColor = keyof typeof badge.color | ExtractDeepKey<AppConfig, ['ui', 'badge', 'color']> | typeof colors[number];
7
+ export type BadgeVariant = keyof typeof badge.variant | ExtractDeepKey<AppConfig, ['ui', 'badge', 'variant']> | NestedKeyOf<typeof badge.color> | NestedKeyOf<ExtractDeepObject<AppConfig, ['ui', 'badge', 'color']>>;
10
8
  export interface Badge {
11
- label?: string
12
- size?: BadgeSize
13
- color?: BadgeColor
14
- variant?: BadgeVariant
9
+ label?: string;
10
+ size?: BadgeSize;
11
+ color?: BadgeColor;
12
+ variant?: BadgeVariant;
15
13
  }
File without changes
@@ -1,10 +1,8 @@
1
- import type { Link } from './link'
2
-
1
+ import type { Link } from './link.js';
3
2
  export interface BreadcrumbLink extends Link {
4
- label: string
5
- labelClass?: string
6
- icon?: string
7
- iconClass?: string
8
- // FIXME: This is a workaround for `link.to` not being resolved although it extends `NuxtLinkProps`
9
- [key: string]: any
3
+ label: string;
4
+ labelClass?: string;
5
+ icon?: string;
6
+ iconClass?: string;
7
+ [key: string]: any;
10
8
  }
File without changes
@@ -1,31 +1,29 @@
1
- import type { Link } from './link'
2
- import { button } from '../ui.config'
3
- import type { NestedKeyOf, ExtractDeepKey, ExtractDeepObject } from '.'
4
- import colors from '#ui-colors'
5
- import type { AppConfig } from 'nuxt/schema'
6
-
7
- export type ButtonSize = keyof typeof button.size | ExtractDeepKey<AppConfig, ['ui', 'button', 'size']>
8
- export type ButtonColor = keyof typeof button.color | ExtractDeepKey<AppConfig, ['ui', 'button', 'color']> | typeof colors[number]
9
- export type ButtonVariant = keyof typeof button.variant | ExtractDeepKey<AppConfig, ['ui', 'button', 'variant']> | NestedKeyOf<typeof button.color> | NestedKeyOf<ExtractDeepObject<AppConfig, ['ui', 'button', 'color']>>
10
-
1
+ import type { Link } from './link.js';
2
+ import { button } from '../ui.config.js';
3
+ import type { NestedKeyOf, ExtractDeepKey, ExtractDeepObject } from '.';
4
+ import colors from '#ui-colors';
5
+ import type { AppConfig } from 'nuxt/schema';
6
+ export type ButtonSize = keyof typeof button.size | ExtractDeepKey<AppConfig, ['ui', 'button', 'size']>;
7
+ export type ButtonColor = keyof typeof button.color | ExtractDeepKey<AppConfig, ['ui', 'button', 'color']> | typeof colors[number];
8
+ export type ButtonVariant = keyof typeof button.variant | ExtractDeepKey<AppConfig, ['ui', 'button', 'variant']> | NestedKeyOf<typeof button.color> | NestedKeyOf<ExtractDeepObject<AppConfig, ['ui', 'button', 'color']>>;
11
9
  export interface Button extends Link {
12
- type?: string
13
- block?: boolean
14
- label?: string
15
- loading?: boolean
16
- disabled?: boolean
17
- padded?: boolean
18
- size?: ButtonSize
19
- color?: ButtonColor
20
- variant?: ButtonVariant
21
- icon?: string
22
- loadingIcon?: string
23
- leadingIcon?: string
24
- trailingIcon?: string
25
- trailing?: boolean
26
- leading?: boolean
27
- to?: string | object
28
- target?: string
29
- square?: boolean
30
- truncate?: boolean
10
+ type?: string;
11
+ block?: boolean;
12
+ label?: string;
13
+ loading?: boolean;
14
+ disabled?: boolean;
15
+ padded?: boolean;
16
+ size?: ButtonSize;
17
+ color?: ButtonColor;
18
+ variant?: ButtonVariant;
19
+ icon?: string;
20
+ loadingIcon?: string;
21
+ leadingIcon?: string;
22
+ trailingIcon?: string;
23
+ trailing?: boolean;
24
+ leading?: boolean;
25
+ to?: string | object;
26
+ target?: string;
27
+ square?: boolean;
28
+ truncate?: boolean;
31
29
  }
File without changes
@@ -1,15 +1,13 @@
1
- import { chip } from '../ui.config'
2
- import colors from '#ui-colors'
3
-
4
- export type ChipSize = keyof typeof chip.size
5
- export type ChipColor = 'gray' | typeof colors[number]
6
- export type ChipPosition = keyof typeof chip.position
7
-
1
+ import { chip } from '../ui.config.js';
2
+ import colors from '#ui-colors';
3
+ export type ChipSize = keyof typeof chip.size;
4
+ export type ChipColor = 'gray' | typeof colors[number];
5
+ export type ChipPosition = keyof typeof chip.position;
8
6
  export interface Chip {
9
- size?: ChipSize
10
- color?: ChipColor
11
- position?: ChipPosition
12
- text?: string
13
- inset?: boolean
14
- show?: boolean
7
+ size?: ChipSize;
8
+ color?: ChipColor;
9
+ position?: ChipPosition;
10
+ text?: string;
11
+ inset?: boolean;
12
+ show?: boolean;
15
13
  }
File without changes
@@ -1,3 +1,9 @@
1
1
  export interface ClipboardPlugin {
2
- copy: (text: string, success?: { title?: string, description?: string }, failure?: { title?: string, description?: string }) => void
2
+ copy: (text: string, success?: {
3
+ title?: string;
4
+ description?: string;
5
+ }, failure?: {
6
+ title?: string;
7
+ description?: string;
8
+ }) => void;
3
9
  }
File without changes
@@ -1,28 +1,27 @@
1
- import type { FuseSortFunctionMatch, FuseSortFunctionMatchList } from 'fuse.js'
2
- import type { Avatar } from './avatar'
3
-
1
+ import Fuse from 'fuse.js';
2
+ import type { Avatar } from './avatar.js';
4
3
  export interface Command {
5
- id: string | number
6
- prefix?: string
7
- suffix?: string
8
- icon?: string
9
- iconClass?: string
10
- avatar?: Avatar
11
- chip?: string
12
- disabled?: boolean
13
- shortcuts?: string[]
14
- group?: string
15
- score?: number
16
- matches?: (FuseSortFunctionMatch | FuseSortFunctionMatchList)[]
17
- [key: string]: any
4
+ id: string | number;
5
+ prefix?: string;
6
+ suffix?: string;
7
+ icon?: string;
8
+ iconClass?: string;
9
+ avatar?: Avatar;
10
+ chip?: string;
11
+ disabled?: boolean;
12
+ shortcuts?: string[];
13
+ group?: string;
14
+ score?: number;
15
+ matches?: Fuse.FuseResultMatch[];
16
+ [key: string]: any;
18
17
  }
19
-
20
18
  export interface Group {
21
- key: string
22
- active?: string
23
- inactive?: string
24
- commands?: Command[]
25
- search?: Function
26
- filter?: Function
27
- [key: string]: any
19
+ key: string;
20
+ active?: string;
21
+ inactive?: string;
22
+ commands?: Command[];
23
+ search?: (...args: any[]) => any[] | Promise<any[]>;
24
+ filter?: (...args: any[]) => Command[];
25
+ static?: Boolean;
26
+ [key: string]: any;
28
27
  }
File without changes
@@ -1,14 +1,17 @@
1
- export type ComponentProps<T> =
2
- T extends new () => { $props: infer P } ? NonNullable<P> :
3
- T extends (props: infer P, ...args: any) => any ? P :
4
- {}
5
-
6
- export type ComponentSlots<T> =
7
- T extends new () => { $slots: infer S } ? NonNullable<S> :
8
- T extends (props: any, ctx: { slots: infer S; attrs: any; emit: any }, ...args: any) => any ? NonNullable<S> :
9
- {}
10
-
11
- export type ComponentEmit<T> =
12
- T extends new () => { $emit: infer E } ? NonNullable<E> :
13
- T extends (props: any, ctx: { slots: any; attrs: any; emit: infer E }, ...args: any) => any ? NonNullable<E> :
14
- {}
1
+ export type ComponentProps<T> = T extends new () => {
2
+ $props: infer P;
3
+ } ? NonNullable<P> : T extends (props: infer P, ...args: any) => any ? P : {};
4
+ export type ComponentSlots<T> = T extends new () => {
5
+ $slots: infer S;
6
+ } ? NonNullable<S> : T extends (props: any, ctx: {
7
+ slots: infer S;
8
+ attrs: any;
9
+ emit: any;
10
+ }, ...args: any) => any ? NonNullable<S> : {};
11
+ export type ComponentEmit<T> = T extends new () => {
12
+ $emit: infer E;
13
+ } ? NonNullable<E> : T extends (props: any, ctx: {
14
+ slots: any;
15
+ attrs: any;
16
+ emit: infer E;
17
+ }, ...args: any) => any ? NonNullable<E> : {};
File without changes
@@ -1,3 +1,2 @@
1
- import { divider } from '#ui/ui.config'
2
-
3
- export type DividerSize = keyof typeof divider.border.size.horizontal | keyof typeof divider.border.size.vertical
1
+ import { divider } from '#ui/ui.config';
2
+ export type DividerSize = keyof typeof divider.border.size.horizontal | keyof typeof divider.border.size.vertical;
File without changes
@@ -1,15 +1,14 @@
1
- import type { NuxtLinkProps } from '#app'
2
- import type { Avatar } from './avatar'
3
-
1
+ import type { NuxtLinkProps } from '#app';
2
+ import type { Avatar } from './avatar.js';
4
3
  export interface DropdownItem extends NuxtLinkProps {
5
- label: string
6
- labelClass?: string
7
- slot?: string
8
- icon?: string
9
- iconClass?: string
10
- avatar?: Avatar
11
- shortcuts?: string[]
12
- disabled?: boolean
13
- class?: string
14
- click?: Function
4
+ label: string;
5
+ labelClass?: string;
6
+ slot?: string;
7
+ icon?: string;
8
+ iconClass?: string;
9
+ avatar?: Avatar;
10
+ shortcuts?: string[];
11
+ disabled?: boolean;
12
+ class?: string;
13
+ click?: (...args: any[]) => void;
15
14
  }
File without changes
@@ -1,5 +1,4 @@
1
- import { formGroup } from '../ui.config'
2
- import type { ExtractDeepKey } from '.'
3
- import type { AppConfig } from 'nuxt/schema'
4
-
5
- export type FormGroupSize = keyof typeof formGroup.size | ExtractDeepKey<AppConfig, ['ui', 'formGroup', 'size']>
1
+ import { formGroup } from '../ui.config.js';
2
+ import type { ExtractDeepKey } from '.';
3
+ import type { AppConfig } from 'nuxt/schema';
4
+ export type FormGroupSize = keyof typeof formGroup.size | ExtractDeepKey<AppConfig, ['ui', 'formGroup', 'size']>;
File without changes
@@ -1,38 +1,39 @@
1
- import type { Ref } from 'vue'
2
-
1
+ import type { Ref } from 'vue';
3
2
  export interface FormError<T extends string = string> {
4
- path: T
5
- message: string
3
+ path: T;
4
+ message: string;
6
5
  }
7
-
8
6
  export interface FormErrorWithId extends FormError {
9
- id: string
7
+ id: string;
10
8
  }
11
-
12
9
  export interface Form<T> {
13
- validate(path?: string | string[], opts?: { silent?: true }): Promise<T | false>;
14
- validate(path?: string | string[], opts?: { silent?: false }): Promise<T>;
15
- clear(path?: string): void
16
- errors: Ref<FormError[]>
17
- setErrors(errs: FormError[], path?: string): void
18
- getErrors(path?: string): FormError[]
19
- submit(): Promise<void>
10
+ validate(path?: string | string[], opts?: {
11
+ silent?: true;
12
+ }): Promise<T | false>;
13
+ validate(path?: string | string[], opts?: {
14
+ silent?: false;
15
+ }): Promise<T>;
16
+ clear(path?: string): void;
17
+ errors: Ref<FormError[]>;
18
+ setErrors(errs: FormError[], path?: string): void;
19
+ getErrors(path?: string): FormError[];
20
+ submit(): Promise<void>;
20
21
  }
21
-
22
- export type FormSubmitEvent<T> = SubmitEvent & { data: T }
23
- export type FormErrorEvent = SubmitEvent & { errors: FormErrorWithId[] }
24
-
25
- export type FormEventType = 'blur' | 'input' | 'change' | 'submit'
26
-
22
+ export type FormSubmitEvent<T> = SubmitEvent & {
23
+ data: T;
24
+ };
25
+ export type FormErrorEvent = SubmitEvent & {
26
+ errors: FormErrorWithId[];
27
+ };
28
+ export type FormEventType = 'blur' | 'input' | 'change' | 'submit';
27
29
  export interface FormEvent {
28
- type: FormEventType
29
- path?: string
30
+ type: FormEventType;
31
+ path?: string;
30
32
  }
31
-
32
33
  export interface InjectedFormGroupValue {
33
- inputId: Ref<string | undefined>
34
- name: Ref<string>
35
- size: Ref<string | number | symbol>
36
- error: Ref<string | boolean | undefined>
37
- eagerValidation: Ref<boolean>
34
+ inputId: Ref<string | undefined>;
35
+ name: Ref<string>;
36
+ size: Ref<string | number | symbol>;
37
+ error: Ref<string | boolean | undefined>;
38
+ eagerValidation: Ref<boolean>;
38
39
  }
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 HorizontalNavigationLink 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