@nuxt/ui 3.3.5 → 3.3.6

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 (141) hide show
  1. package/.nuxt/ui/drawer.ts +23 -0
  2. package/dist/module.json +2 -2
  3. package/dist/module.mjs +2 -2
  4. package/dist/runtime/components/Accordion.d.vue.ts +6 -5
  5. package/dist/runtime/components/Accordion.vue.d.ts +6 -5
  6. package/dist/runtime/components/Alert.d.vue.ts +2 -1
  7. package/dist/runtime/components/Alert.vue.d.ts +2 -1
  8. package/dist/runtime/components/App.d.vue.ts +5 -4
  9. package/dist/runtime/components/App.vue +1 -1
  10. package/dist/runtime/components/App.vue.d.ts +5 -4
  11. package/dist/runtime/components/Avatar.d.vue.ts +2 -1
  12. package/dist/runtime/components/Avatar.vue.d.ts +2 -1
  13. package/dist/runtime/components/AvatarGroup.d.vue.ts +2 -1
  14. package/dist/runtime/components/AvatarGroup.vue.d.ts +2 -1
  15. package/dist/runtime/components/Badge.d.vue.ts +2 -1
  16. package/dist/runtime/components/Badge.vue.d.ts +2 -1
  17. package/dist/runtime/components/Breadcrumb.d.vue.ts +4 -3
  18. package/dist/runtime/components/Breadcrumb.vue.d.ts +4 -3
  19. package/dist/runtime/components/Button.d.vue.ts +2 -1
  20. package/dist/runtime/components/Button.vue.d.ts +2 -1
  21. package/dist/runtime/components/ButtonGroup.d.vue.ts +2 -1
  22. package/dist/runtime/components/ButtonGroup.vue.d.ts +2 -1
  23. package/dist/runtime/components/Calendar.d.vue.ts +9 -8
  24. package/dist/runtime/components/Calendar.vue.d.ts +9 -8
  25. package/dist/runtime/components/Card.d.vue.ts +2 -1
  26. package/dist/runtime/components/Card.vue.d.ts +2 -1
  27. package/dist/runtime/components/Carousel.d.vue.ts +7 -6
  28. package/dist/runtime/components/Carousel.vue +32 -12
  29. package/dist/runtime/components/Carousel.vue.d.ts +7 -6
  30. package/dist/runtime/components/Checkbox.d.vue.ts +2 -1
  31. package/dist/runtime/components/Checkbox.vue.d.ts +2 -1
  32. package/dist/runtime/components/CheckboxGroup.d.vue.ts +7 -6
  33. package/dist/runtime/components/CheckboxGroup.vue.d.ts +7 -6
  34. package/dist/runtime/components/Chip.d.vue.ts +2 -1
  35. package/dist/runtime/components/Chip.vue.d.ts +2 -1
  36. package/dist/runtime/components/Collapsible.d.vue.ts +2 -1
  37. package/dist/runtime/components/Collapsible.vue.d.ts +2 -1
  38. package/dist/runtime/components/ColorPicker.d.vue.ts +2 -1
  39. package/dist/runtime/components/ColorPicker.vue.d.ts +2 -1
  40. package/dist/runtime/components/CommandPalette.d.vue.ts +13 -12
  41. package/dist/runtime/components/CommandPalette.vue.d.ts +13 -12
  42. package/dist/runtime/components/Container.d.vue.ts +2 -1
  43. package/dist/runtime/components/Container.vue.d.ts +2 -1
  44. package/dist/runtime/components/ContextMenu.d.vue.ts +6 -5
  45. package/dist/runtime/components/ContextMenu.vue.d.ts +6 -5
  46. package/dist/runtime/components/ContextMenuContent.d.vue.ts +10 -9
  47. package/dist/runtime/components/ContextMenuContent.vue.d.ts +10 -9
  48. package/dist/runtime/components/Drawer.d.vue.ts +5 -1
  49. package/dist/runtime/components/Drawer.vue +19 -5
  50. package/dist/runtime/components/Drawer.vue.d.ts +5 -1
  51. package/dist/runtime/components/DropdownMenu.d.vue.ts +6 -5
  52. package/dist/runtime/components/DropdownMenu.vue.d.ts +6 -5
  53. package/dist/runtime/components/DropdownMenuContent.d.vue.ts +10 -9
  54. package/dist/runtime/components/DropdownMenuContent.vue.d.ts +10 -9
  55. package/dist/runtime/components/FileUpload.d.vue.ts +9 -8
  56. package/dist/runtime/components/FileUpload.vue.d.ts +9 -8
  57. package/dist/runtime/components/Form.d.vue.ts +7 -6
  58. package/dist/runtime/components/Form.vue.d.ts +7 -6
  59. package/dist/runtime/components/FormField.d.vue.ts +2 -1
  60. package/dist/runtime/components/FormField.vue.d.ts +2 -1
  61. package/dist/runtime/components/Icon.d.vue.ts +2 -1
  62. package/dist/runtime/components/Icon.vue.d.ts +2 -1
  63. package/dist/runtime/components/Input.d.vue.ts +9 -8
  64. package/dist/runtime/components/Input.vue.d.ts +9 -8
  65. package/dist/runtime/components/InputMenu.d.vue.ts +17 -16
  66. package/dist/runtime/components/InputMenu.vue.d.ts +17 -16
  67. package/dist/runtime/components/InputNumber.d.vue.ts +2 -1
  68. package/dist/runtime/components/InputNumber.vue.d.ts +2 -1
  69. package/dist/runtime/components/InputTags.d.vue.ts +13 -12
  70. package/dist/runtime/components/InputTags.vue.d.ts +13 -12
  71. package/dist/runtime/components/Kbd.d.vue.ts +2 -1
  72. package/dist/runtime/components/Kbd.vue.d.ts +2 -1
  73. package/dist/runtime/components/Link.d.vue.ts +2 -1
  74. package/dist/runtime/components/Link.vue.d.ts +2 -1
  75. package/dist/runtime/components/LinkBase.d.vue.ts +2 -1
  76. package/dist/runtime/components/LinkBase.vue.d.ts +2 -1
  77. package/dist/runtime/components/Modal.d.vue.ts +4 -3
  78. package/dist/runtime/components/Modal.vue.d.ts +4 -3
  79. package/dist/runtime/components/NavigationMenu.d.vue.ts +6 -5
  80. package/dist/runtime/components/NavigationMenu.vue.d.ts +6 -5
  81. package/dist/runtime/components/OverlayProvider.d.vue.ts +2 -1
  82. package/dist/runtime/components/OverlayProvider.vue.d.ts +2 -1
  83. package/dist/runtime/components/Pagination.d.vue.ts +2 -1
  84. package/dist/runtime/components/Pagination.vue +4 -4
  85. package/dist/runtime/components/Pagination.vue.d.ts +2 -1
  86. package/dist/runtime/components/PinInput.d.vue.ts +10 -9
  87. package/dist/runtime/components/PinInput.vue.d.ts +10 -9
  88. package/dist/runtime/components/Popover.d.vue.ts +2 -1
  89. package/dist/runtime/components/Popover.vue.d.ts +2 -1
  90. package/dist/runtime/components/Progress.d.vue.ts +2 -1
  91. package/dist/runtime/components/Progress.vue.d.ts +2 -1
  92. package/dist/runtime/components/RadioGroup.d.vue.ts +7 -6
  93. package/dist/runtime/components/RadioGroup.vue.d.ts +7 -6
  94. package/dist/runtime/components/Select.d.vue.ts +11 -10
  95. package/dist/runtime/components/Select.vue.d.ts +11 -10
  96. package/dist/runtime/components/SelectMenu.d.vue.ts +16 -15
  97. package/dist/runtime/components/SelectMenu.vue.d.ts +16 -15
  98. package/dist/runtime/components/Separator.d.vue.ts +2 -1
  99. package/dist/runtime/components/Separator.vue.d.ts +2 -1
  100. package/dist/runtime/components/Skeleton.d.vue.ts +2 -1
  101. package/dist/runtime/components/Skeleton.vue.d.ts +2 -1
  102. package/dist/runtime/components/Slideover.d.vue.ts +4 -3
  103. package/dist/runtime/components/Slideover.vue.d.ts +4 -3
  104. package/dist/runtime/components/Slider.d.vue.ts +8 -7
  105. package/dist/runtime/components/Slider.vue.d.ts +8 -7
  106. package/dist/runtime/components/Stepper.d.vue.ts +10 -9
  107. package/dist/runtime/components/Stepper.vue.d.ts +10 -9
  108. package/dist/runtime/components/Switch.d.vue.ts +2 -1
  109. package/dist/runtime/components/Switch.vue.d.ts +2 -1
  110. package/dist/runtime/components/Table.d.vue.ts +20 -19
  111. package/dist/runtime/components/Table.vue +19 -1
  112. package/dist/runtime/components/Table.vue.d.ts +20 -19
  113. package/dist/runtime/components/Tabs.d.vue.ts +7 -6
  114. package/dist/runtime/components/Tabs.vue.d.ts +7 -6
  115. package/dist/runtime/components/Textarea.d.vue.ts +9 -8
  116. package/dist/runtime/components/Textarea.vue.d.ts +9 -8
  117. package/dist/runtime/components/Timeline.d.vue.ts +7 -6
  118. package/dist/runtime/components/Timeline.vue.d.ts +7 -6
  119. package/dist/runtime/components/Toast.d.vue.ts +2 -1
  120. package/dist/runtime/components/Toast.vue.d.ts +2 -1
  121. package/dist/runtime/components/Toaster.d.vue.ts +2 -1
  122. package/dist/runtime/components/Toaster.vue.d.ts +2 -1
  123. package/dist/runtime/components/Tooltip.d.vue.ts +2 -1
  124. package/dist/runtime/components/Tooltip.vue.d.ts +2 -1
  125. package/dist/runtime/components/Tree.d.vue.ts +7 -6
  126. package/dist/runtime/components/Tree.vue.d.ts +7 -6
  127. package/dist/runtime/composables/useKbd.js +1 -1
  128. package/dist/runtime/composables/usePortal.d.ts +3 -3
  129. package/dist/runtime/composables/usePortal.js +5 -10
  130. package/dist/runtime/inertia/components/Link.d.vue.ts +2 -1
  131. package/dist/runtime/inertia/components/Link.vue.d.ts +2 -1
  132. package/dist/runtime/inertia/components/LinkBase.d.vue.ts +2 -1
  133. package/dist/runtime/inertia/components/LinkBase.vue.d.ts +2 -1
  134. package/dist/runtime/vue/components/Icon.d.vue.ts +2 -1
  135. package/dist/runtime/vue/components/Icon.vue.d.ts +2 -1
  136. package/dist/runtime/vue/components/Link.d.vue.ts +2 -1
  137. package/dist/runtime/vue/components/Link.vue.d.ts +2 -1
  138. package/dist/shared/{ui.DH9BUZkq.mjs → ui.DBpKc5X3.mjs} +88 -60
  139. package/dist/unplugin.mjs +1 -1
  140. package/dist/vite.mjs +1 -1
  141. package/package.json +14 -14
@@ -58,21 +58,22 @@ export interface TextareaSlots {
58
58
  default(props?: {}): any;
59
59
  trailing(props?: {}): any;
60
60
  }
61
- declare const _default: <T extends TextareaValue>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
62
- props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
63
- readonly onBlur?: ((event: FocusEvent) => any) | undefined;
64
- readonly onChange?: ((event: Event) => any) | undefined;
65
- readonly "onUpdate:modelValue"?: ((value: T) => any) | undefined;
66
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onBlur" | "onChange" | "onUpdate:modelValue"> & TextareaProps<T> & {}> & import("vue").PublicProps;
67
- expose(exposed: import("vue").ShallowUnwrapRef<{
61
+ declare const __VLS_export: <T extends TextareaValue>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
62
+ props: __VLS_PrettifyLocal<TextareaProps<T> & {
63
+ onBlur?: ((event: FocusEvent) => any) | undefined;
64
+ onChange?: ((event: Event) => any) | undefined;
65
+ "onUpdate:modelValue"?: ((value: T) => any) | undefined;
66
+ }> & import("vue").PublicProps;
67
+ expose: (exposed: import("vue").ShallowUnwrapRef<{
68
68
  textareaRef: import("vue").Ref<HTMLTextAreaElement | null, HTMLTextAreaElement | null>;
69
- }>): void;
69
+ }>) => void;
70
70
  attrs: any;
71
71
  slots: TextareaSlots;
72
72
  emit: ((evt: "blur", event: FocusEvent) => void) & ((evt: "change", event: Event) => void) & ((evt: "update:modelValue", value: T) => void);
73
73
  }>) => import("vue").VNode & {
74
74
  __ctx?: Awaited<typeof __VLS_setup>;
75
75
  };
76
+ declare const _default: typeof __VLS_export;
76
77
  export default _default;
77
78
  type __VLS_PrettifyLocal<T> = {
78
79
  [K in keyof T as K]: T[K];
@@ -51,19 +51,20 @@ export type TimelineSlots<T extends TimelineItem = TimelineItem> = {
51
51
  } & DynamicSlots<T, 'indicator' | 'date' | 'title' | 'description', {
52
52
  item: T;
53
53
  }>;
54
- declare const _default: <T extends TimelineItem>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
55
- props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
56
- readonly "onUpdate:modelValue"?: ((value: string | number | undefined) => any) | undefined;
57
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onUpdate:modelValue"> & (TimelineProps<T> & {
54
+ declare const __VLS_export: <T extends TimelineItem>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
55
+ props: __VLS_PrettifyLocal<(TimelineProps<T> & {
58
56
  modelValue?: string | number;
59
- }) & {}> & import("vue").PublicProps;
60
- expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
57
+ }) & {
58
+ "onUpdate:modelValue"?: ((value: string | number | undefined) => any) | undefined;
59
+ }> & import("vue").PublicProps;
60
+ expose: (exposed: {}) => void;
61
61
  attrs: any;
62
62
  slots: TimelineSlots<T>;
63
63
  emit: (evt: "update:modelValue", value: string | number | undefined) => void;
64
64
  }>) => import("vue").VNode & {
65
65
  __ctx?: Awaited<typeof __VLS_setup>;
66
66
  };
67
+ declare const _default: typeof __VLS_export;
67
68
  export default _default;
68
69
  type __VLS_PrettifyLocal<T> = {
69
70
  [K in keyof T as K]: T[K];
@@ -51,19 +51,20 @@ export type TimelineSlots<T extends TimelineItem = TimelineItem> = {
51
51
  } & DynamicSlots<T, 'indicator' | 'date' | 'title' | 'description', {
52
52
  item: T;
53
53
  }>;
54
- declare const _default: <T extends TimelineItem>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
55
- props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
56
- readonly "onUpdate:modelValue"?: ((value: string | number | undefined) => any) | undefined;
57
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onUpdate:modelValue"> & (TimelineProps<T> & {
54
+ declare const __VLS_export: <T extends TimelineItem>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
55
+ props: __VLS_PrettifyLocal<(TimelineProps<T> & {
58
56
  modelValue?: string | number;
59
- }) & {}> & import("vue").PublicProps;
60
- expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
57
+ }) & {
58
+ "onUpdate:modelValue"?: ((value: string | number | undefined) => any) | undefined;
59
+ }> & import("vue").PublicProps;
60
+ expose: (exposed: {}) => void;
61
61
  attrs: any;
62
62
  slots: TimelineSlots<T>;
63
63
  emit: (evt: "update:modelValue", value: string | number | undefined) => void;
64
64
  }>) => import("vue").VNode & {
65
65
  __ctx?: Awaited<typeof __VLS_setup>;
66
66
  };
67
+ declare const _default: typeof __VLS_export;
67
68
  export default _default;
68
69
  type __VLS_PrettifyLocal<T> = {
69
70
  [K in keyof T as K]: T[K];
@@ -67,7 +67,7 @@ export interface ToastSlots {
67
67
  };
68
68
  }): any;
69
69
  }
70
- declare const _default: __VLS_WithSlots<import("vue").DefineComponent<ToastProps, {
70
+ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<ToastProps, {
71
71
  height: import("vue").Ref<number, number>;
72
72
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
73
73
  resume: () => any;
@@ -156,6 +156,7 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<ToastProps
156
156
  progress: boolean | Pick<ProgressProps, "color" | "ui">;
157
157
  orientation: Toast["variants"]["orientation"];
158
158
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, ToastSlots>;
159
+ declare const _default: typeof __VLS_export;
159
160
  export default _default;
160
161
  type __VLS_WithSlots<T, S> = T & {
161
162
  new (): {
@@ -67,7 +67,7 @@ export interface ToastSlots {
67
67
  };
68
68
  }): any;
69
69
  }
70
- declare const _default: __VLS_WithSlots<import("vue").DefineComponent<ToastProps, {
70
+ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<ToastProps, {
71
71
  height: import("vue").Ref<number, number>;
72
72
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
73
73
  resume: () => any;
@@ -156,6 +156,7 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<ToastProps
156
156
  progress: boolean | Pick<ProgressProps, "color" | "ui">;
157
157
  orientation: Toast["variants"]["orientation"];
158
158
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, ToastSlots>;
159
+ declare const _default: typeof __VLS_export;
159
160
  export default _default;
160
161
  type __VLS_WithSlots<T, S> = T & {
161
162
  new (): {
@@ -30,12 +30,13 @@ export interface ToasterProps extends Omit<ToastProviderProps, 'swipeDirection'>
30
30
  export interface ToasterSlots {
31
31
  default(props?: {}): any;
32
32
  }
33
- declare const _default: __VLS_WithSlots<import("vue").DefineComponent<ToasterProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ToasterProps> & Readonly<{}>, {
33
+ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<ToasterProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ToasterProps> & Readonly<{}>, {
34
34
  progress: boolean;
35
35
  duration: number;
36
36
  expand: boolean;
37
37
  portal: boolean | string | HTMLElement;
38
38
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, ToasterSlots>;
39
+ declare const _default: typeof __VLS_export;
39
40
  export default _default;
40
41
  type __VLS_WithSlots<T, S> = T & {
41
42
  new (): {
@@ -30,12 +30,13 @@ export interface ToasterProps extends Omit<ToastProviderProps, 'swipeDirection'>
30
30
  export interface ToasterSlots {
31
31
  default(props?: {}): any;
32
32
  }
33
- declare const _default: __VLS_WithSlots<import("vue").DefineComponent<ToasterProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ToasterProps> & Readonly<{}>, {
33
+ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<ToasterProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ToasterProps> & Readonly<{}>, {
34
34
  progress: boolean;
35
35
  duration: number;
36
36
  expand: boolean;
37
37
  portal: boolean | string | HTMLElement;
38
38
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, ToasterSlots>;
39
+ declare const _default: typeof __VLS_export;
39
40
  export default _default;
40
41
  type __VLS_WithSlots<T, S> = T & {
41
42
  new (): {
@@ -41,13 +41,14 @@ export interface TooltipSlots {
41
41
  }): any;
42
42
  content(props?: {}): any;
43
43
  }
44
- declare const _default: __VLS_WithSlots<import("vue").DefineComponent<TooltipProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
44
+ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<TooltipProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
45
45
  "update:open": (value: boolean) => any;
46
46
  }, string, import("vue").PublicProps, Readonly<TooltipProps> & Readonly<{
47
47
  "onUpdate:open"?: ((value: boolean) => any) | undefined;
48
48
  }>, {
49
49
  portal: boolean | string | HTMLElement;
50
50
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, TooltipSlots>;
51
+ declare const _default: typeof __VLS_export;
51
52
  export default _default;
52
53
  type __VLS_WithSlots<T, S> = T & {
53
54
  new (): {
@@ -41,13 +41,14 @@ export interface TooltipSlots {
41
41
  }): any;
42
42
  content(props?: {}): any;
43
43
  }
44
- declare const _default: __VLS_WithSlots<import("vue").DefineComponent<TooltipProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
44
+ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<TooltipProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
45
45
  "update:open": (value: boolean) => any;
46
46
  }, string, import("vue").PublicProps, Readonly<TooltipProps> & Readonly<{
47
47
  "onUpdate:open"?: ((value: boolean) => any) | undefined;
48
48
  }>, {
49
49
  portal: boolean | string | HTMLElement;
50
50
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, TooltipSlots>;
51
+ declare const _default: typeof __VLS_export;
51
52
  export default _default;
52
53
  type __VLS_WithSlots<T, S> = T & {
53
54
  new (): {
@@ -96,18 +96,19 @@ export type TreeSlots<A extends TreeItem[] = TreeItem[], T extends NestedItem<A>
96
96
  expanded: boolean;
97
97
  selected: boolean;
98
98
  }>;
99
- declare const _default: <T extends TreeItem[], VK extends GetItemKeys<T> = "value", M extends boolean = false>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
100
- props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
101
- readonly "onUpdate:modelValue"?: ((value: GetModelValue<T, VK, M>) => any) | undefined;
102
- readonly "onUpdate:expanded"?: ((val: string[]) => any) | undefined;
103
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onUpdate:modelValue" | "onUpdate:expanded"> & TreeProps<T, VK, M> & {}> & import("vue").PublicProps;
104
- expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
99
+ declare const __VLS_export: <T extends TreeItem[], VK extends GetItemKeys<T> = "value", M extends boolean = false>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
100
+ props: __VLS_PrettifyLocal<TreeProps<T, VK, M> & {
101
+ "onUpdate:modelValue"?: ((value: GetModelValue<T, VK, M>) => any) | undefined;
102
+ "onUpdate:expanded"?: ((val: string[]) => any) | undefined;
103
+ }> & import("vue").PublicProps;
104
+ expose: (exposed: {}) => void;
105
105
  attrs: any;
106
106
  slots: TreeSlots<T, NestedItem<T>>;
107
107
  emit: ((evt: "update:modelValue", value: GetModelValue<T, VK, M>) => void) & ((evt: "update:expanded", val: string[]) => void);
108
108
  }>) => import("vue").VNode & {
109
109
  __ctx?: Awaited<typeof __VLS_setup>;
110
110
  };
111
+ declare const _default: typeof __VLS_export;
111
112
  export default _default;
112
113
  type __VLS_PrettifyLocal<T> = {
113
114
  [K in keyof T as K]: T[K];
@@ -96,18 +96,19 @@ export type TreeSlots<A extends TreeItem[] = TreeItem[], T extends NestedItem<A>
96
96
  expanded: boolean;
97
97
  selected: boolean;
98
98
  }>;
99
- declare const _default: <T extends TreeItem[], VK extends GetItemKeys<T> = "value", M extends boolean = false>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
100
- props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
101
- readonly "onUpdate:modelValue"?: ((value: GetModelValue<T, VK, M>) => any) | undefined;
102
- readonly "onUpdate:expanded"?: ((val: string[]) => any) | undefined;
103
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onUpdate:modelValue" | "onUpdate:expanded"> & TreeProps<T, VK, M> & {}> & import("vue").PublicProps;
104
- expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
99
+ declare const __VLS_export: <T extends TreeItem[], VK extends GetItemKeys<T> = "value", M extends boolean = false>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
100
+ props: __VLS_PrettifyLocal<TreeProps<T, VK, M> & {
101
+ "onUpdate:modelValue"?: ((value: GetModelValue<T, VK, M>) => any) | undefined;
102
+ "onUpdate:expanded"?: ((val: string[]) => any) | undefined;
103
+ }> & import("vue").PublicProps;
104
+ expose: (exposed: {}) => void;
105
105
  attrs: any;
106
106
  slots: TreeSlots<T, NestedItem<T>>;
107
107
  emit: ((evt: "update:modelValue", value: GetModelValue<T, VK, M>) => void) & ((evt: "update:expanded", val: string[]) => void);
108
108
  }>) => import("vue").VNode & {
109
109
  __ctx?: Awaited<typeof __VLS_setup>;
110
110
  };
111
+ declare const _default: typeof __VLS_export;
111
112
  export default _default;
112
113
  type __VLS_PrettifyLocal<T> = {
113
114
  [K in keyof T as K]: T[K];
@@ -12,7 +12,7 @@ export const kbdKeysMap = {
12
12
  enter: "\u21B5",
13
13
  delete: "\u2326",
14
14
  backspace: "\u232B",
15
- escape: "\u238B",
15
+ escape: "Esc",
16
16
  tab: "\u21E5",
17
17
  capslock: "\u21EA",
18
18
  arrowup: "\u2191",
@@ -1,6 +1,6 @@
1
1
  import type { Ref, InjectionKey } from 'vue';
2
- export declare const portalTargetInjectionKey: InjectionKey<Ref<string | HTMLElement>>;
3
- export declare function usePortal(portal: Ref<string | HTMLElement | boolean | undefined>): import("vue").ComputedRef<{
4
- to: string | HTMLElement;
2
+ export declare const portalTargetInjectionKey: InjectionKey<Ref<boolean | string | HTMLElement>>;
3
+ export declare function usePortal(portal: Ref<boolean | string | HTMLElement | undefined>): import("vue").ComputedRef<{
4
+ to: string | HTMLElement | undefined;
5
5
  disabled: boolean;
6
6
  }>;
@@ -1,15 +1,10 @@
1
- import { inject, provide, computed } from "vue";
1
+ import { inject, computed } from "vue";
2
2
  export const portalTargetInjectionKey = Symbol("nuxt-ui.portal-target");
3
3
  export function usePortal(portal) {
4
- const portalTarget = inject(portalTargetInjectionKey, void 0);
5
- const to = computed(() => {
6
- if (typeof portal.value === "boolean" || portal.value === void 0) {
7
- return portalTarget?.value ?? "body";
8
- }
9
- return portal.value;
10
- });
11
- const disabled = computed(() => typeof portal.value === "boolean" ? !portal.value : false);
12
- provide(portalTargetInjectionKey, computed(() => to.value));
4
+ const globalPortal = inject(portalTargetInjectionKey, void 0);
5
+ const value = computed(() => portal.value === true ? globalPortal?.value : portal.value);
6
+ const disabled = computed(() => typeof value.value === "boolean" ? !value.value : false);
7
+ const to = computed(() => typeof value.value === "boolean" ? "body" : value.value);
13
8
  return computed(() => ({
14
9
  to: to.value,
15
10
  disabled: disabled.value
@@ -48,13 +48,14 @@ export interface LinkSlots {
48
48
  active: boolean;
49
49
  }): any;
50
50
  }
51
- declare const _default: __VLS_WithSlots<import("vue").DefineComponent<LinkProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<LinkProps> & Readonly<{}>, {
51
+ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<LinkProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<LinkProps> & Readonly<{}>, {
52
52
  type: "reset" | "submit" | "button";
53
53
  as: any;
54
54
  activeClass: string;
55
55
  active: boolean;
56
56
  inactiveClass: string;
57
57
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, LinkSlots>;
58
+ declare const _default: typeof __VLS_export;
58
59
  export default _default;
59
60
  type __VLS_WithSlots<T, S> = T & {
60
61
  new (): {
@@ -48,13 +48,14 @@ export interface LinkSlots {
48
48
  active: boolean;
49
49
  }): any;
50
50
  }
51
- declare const _default: __VLS_WithSlots<import("vue").DefineComponent<LinkProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<LinkProps> & Readonly<{}>, {
51
+ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<LinkProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<LinkProps> & Readonly<{}>, {
52
52
  type: "reset" | "submit" | "button";
53
53
  as: any;
54
54
  activeClass: string;
55
55
  active: boolean;
56
56
  inactiveClass: string;
57
57
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, LinkSlots>;
58
+ declare const _default: typeof __VLS_export;
58
59
  export default _default;
59
60
  type __VLS_WithSlots<T, S> = T & {
60
61
  new (): {
@@ -9,7 +9,7 @@ export interface LinkBaseProps {
9
9
  active?: boolean;
10
10
  isExternal?: boolean;
11
11
  }
12
- declare const _default: __VLS_WithSlots<import("vue").DefineComponent<LinkBaseProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<LinkBaseProps> & Readonly<{}>, {
12
+ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<LinkBaseProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<LinkBaseProps> & Readonly<{}>, {
13
13
  type: string;
14
14
  as: string;
15
15
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
@@ -17,6 +17,7 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<LinkBasePr
17
17
  } & {
18
18
  default?: (props: {}) => any;
19
19
  }>;
20
+ declare const _default: typeof __VLS_export;
20
21
  export default _default;
21
22
  type __VLS_WithSlots<T, S> = T & {
22
23
  new (): {
@@ -9,7 +9,7 @@ export interface LinkBaseProps {
9
9
  active?: boolean;
10
10
  isExternal?: boolean;
11
11
  }
12
- declare const _default: __VLS_WithSlots<import("vue").DefineComponent<LinkBaseProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<LinkBaseProps> & Readonly<{}>, {
12
+ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<LinkBaseProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<LinkBaseProps> & Readonly<{}>, {
13
13
  type: string;
14
14
  as: string;
15
15
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
@@ -17,6 +17,7 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<LinkBasePr
17
17
  } & {
18
18
  default?: (props: {}) => any;
19
19
  }>;
20
+ declare const _default: typeof __VLS_export;
20
21
  export default _default;
21
22
  type __VLS_WithSlots<T, S> = T & {
22
23
  new (): {
@@ -1,5 +1,6 @@
1
1
  export interface IconProps {
2
2
  name: string;
3
3
  }
4
- declare const _default: import("vue").DefineComponent<IconProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<IconProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
4
+ declare const __VLS_export: import("vue").DefineComponent<IconProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<IconProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
5
+ declare const _default: typeof __VLS_export;
5
6
  export default _default;
@@ -1,5 +1,6 @@
1
1
  export interface IconProps {
2
2
  name: string;
3
3
  }
4
- declare const _default: import("vue").DefineComponent<IconProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<IconProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
4
+ declare const __VLS_export: import("vue").DefineComponent<IconProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<IconProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
5
+ declare const _default: typeof __VLS_export;
5
6
  export default _default;
@@ -77,7 +77,7 @@ export interface LinkSlots {
77
77
  active: boolean;
78
78
  }): any;
79
79
  }
80
- declare const _default: __VLS_WithSlots<import("vue").DefineComponent<LinkProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<LinkProps> & Readonly<{}>, {
80
+ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<LinkProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<LinkProps> & Readonly<{}>, {
81
81
  type: "reset" | "submit" | "button";
82
82
  as: any;
83
83
  activeClass: string;
@@ -85,6 +85,7 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<LinkProps,
85
85
  active: boolean;
86
86
  inactiveClass: string;
87
87
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, LinkSlots>;
88
+ declare const _default: typeof __VLS_export;
88
89
  export default _default;
89
90
  type __VLS_WithSlots<T, S> = T & {
90
91
  new (): {
@@ -77,7 +77,7 @@ export interface LinkSlots {
77
77
  active: boolean;
78
78
  }): any;
79
79
  }
80
- declare const _default: __VLS_WithSlots<import("vue").DefineComponent<LinkProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<LinkProps> & Readonly<{}>, {
80
+ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<LinkProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<LinkProps> & Readonly<{}>, {
81
81
  type: "reset" | "submit" | "button";
82
82
  as: any;
83
83
  activeClass: string;
@@ -85,6 +85,7 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<LinkProps,
85
85
  active: boolean;
86
86
  inactiveClass: string;
87
87
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, LinkSlots>;
88
+ declare const _default: typeof __VLS_export;
88
89
  export default _default;
89
90
  type __VLS_WithSlots<T, S> = T & {
90
91
  new (): {
@@ -1270,69 +1270,97 @@ const drawer = (options) => ({
1270
1270
  true: {
1271
1271
  content: "rounded-lg after:hidden overflow-hidden [--initial-transform:calc(100%+1.5rem)]"
1272
1272
  }
1273
+ },
1274
+ snapPoints: {
1275
+ true: ""
1273
1276
  }
1274
1277
  },
1275
- compoundVariants: [{
1276
- direction: ["top", "bottom"],
1277
- class: {
1278
- content: "h-auto max-h-[96%]",
1279
- handle: "!w-12 !h-1.5 mx-auto"
1280
- }
1281
- }, {
1282
- direction: ["right", "left"],
1283
- class: {
1284
- content: "w-auto max-w-[calc(100%-2rem)]",
1285
- handle: "!h-12 !w-1.5 mt-auto mb-auto"
1286
- }
1287
- }, {
1288
- direction: "top",
1289
- inset: true,
1290
- class: {
1291
- content: "inset-x-4 top-4"
1292
- }
1293
- }, {
1294
- direction: "top",
1295
- inset: false,
1296
- class: {
1297
- content: "inset-x-0 top-0 rounded-b-lg"
1298
- }
1299
- }, {
1300
- direction: "bottom",
1301
- inset: true,
1302
- class: {
1303
- content: "inset-x-4 bottom-4"
1304
- }
1305
- }, {
1306
- direction: "bottom",
1307
- inset: false,
1308
- class: {
1309
- content: "inset-x-0 bottom-0 rounded-t-lg"
1310
- }
1311
- }, {
1312
- direction: "left",
1313
- inset: true,
1314
- class: {
1315
- content: "inset-y-4 left-4"
1316
- }
1317
- }, {
1318
- direction: "left",
1319
- inset: false,
1320
- class: {
1321
- content: "inset-y-0 left-0 rounded-r-lg"
1322
- }
1323
- }, {
1324
- direction: "right",
1325
- inset: true,
1326
- class: {
1327
- content: "inset-y-4 right-4"
1328
- }
1329
- }, {
1330
- direction: "right",
1331
- inset: false,
1332
- class: {
1333
- content: "inset-y-0 right-0 rounded-l-lg"
1278
+ compoundVariants: [
1279
+ {
1280
+ direction: ["top", "bottom"],
1281
+ class: {
1282
+ content: "h-auto max-h-[96%]",
1283
+ handle: "!w-12 !h-1.5 mx-auto"
1284
+ }
1285
+ },
1286
+ {
1287
+ direction: ["top", "bottom"],
1288
+ snapPoints: true,
1289
+ class: {
1290
+ content: "h-full"
1291
+ }
1292
+ },
1293
+ {
1294
+ direction: ["right", "left"],
1295
+ class: {
1296
+ content: "w-auto max-w-[calc(100%-2rem)]",
1297
+ handle: "!h-12 !w-1.5 mt-auto mb-auto"
1298
+ }
1299
+ },
1300
+ {
1301
+ direction: ["right", "left"],
1302
+ snapPoints: true,
1303
+ class: {
1304
+ content: "w-full"
1305
+ }
1306
+ },
1307
+ {
1308
+ direction: "top",
1309
+ inset: true,
1310
+ class: {
1311
+ content: "inset-x-4 top-4"
1312
+ }
1313
+ },
1314
+ {
1315
+ direction: "top",
1316
+ inset: false,
1317
+ class: {
1318
+ content: "inset-x-0 top-0 rounded-b-lg"
1319
+ }
1320
+ },
1321
+ {
1322
+ direction: "bottom",
1323
+ inset: true,
1324
+ class: {
1325
+ content: "inset-x-4 bottom-4"
1326
+ }
1327
+ },
1328
+ {
1329
+ direction: "bottom",
1330
+ inset: false,
1331
+ class: {
1332
+ content: "inset-x-0 bottom-0 rounded-t-lg"
1333
+ }
1334
+ },
1335
+ {
1336
+ direction: "left",
1337
+ inset: true,
1338
+ class: {
1339
+ content: "inset-y-4 left-4"
1340
+ }
1341
+ },
1342
+ {
1343
+ direction: "left",
1344
+ inset: false,
1345
+ class: {
1346
+ content: "inset-y-0 left-0 rounded-r-lg"
1347
+ }
1348
+ },
1349
+ {
1350
+ direction: "right",
1351
+ inset: true,
1352
+ class: {
1353
+ content: "inset-y-4 right-4"
1354
+ }
1355
+ },
1356
+ {
1357
+ direction: "right",
1358
+ inset: false,
1359
+ class: {
1360
+ content: "inset-y-0 right-0 rounded-l-lg"
1361
+ }
1334
1362
  }
1335
- }]
1363
+ ]
1336
1364
  });
1337
1365
 
1338
1366
  const dropdownMenu = (options) => ({
package/dist/unplugin.mjs CHANGED
@@ -3,7 +3,7 @@ import { join, normalize } from 'pathe';
3
3
  import { createUnplugin } from 'unplugin';
4
4
  import { defu } from 'defu';
5
5
  import tailwind from '@tailwindcss/vite';
6
- import { g as getTemplates, d as defaultOptions, r as resolveColors, a as getDefaultUiConfig } from './shared/ui.DH9BUZkq.mjs';
6
+ import { g as getTemplates, d as defaultOptions, r as resolveColors, a as getDefaultUiConfig } from './shared/ui.DBpKc5X3.mjs';
7
7
  import { globSync } from 'tinyglobby';
8
8
  import { genSafeVariableName } from 'knitwork';
9
9
  import MagicString from 'magic-string';
package/dist/vite.mjs CHANGED
@@ -4,7 +4,7 @@ import 'pathe';
4
4
  import 'unplugin';
5
5
  import 'defu';
6
6
  import '@tailwindcss/vite';
7
- import './shared/ui.DH9BUZkq.mjs';
7
+ import './shared/ui.DBpKc5X3.mjs';
8
8
  import '../dist/runtime/utils/index.js';
9
9
  import 'scule';
10
10
  import '@nuxt/kit';