@nuxt/ui 3.3.5 → 3.3.7

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 (146) hide show
  1. package/.nuxt/ui/drawer.ts +23 -0
  2. package/dist/module.json +3 -3
  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 +1 -1
  42. package/dist/runtime/components/CommandPalette.vue.d.ts +13 -12
  43. package/dist/runtime/components/Container.d.vue.ts +2 -1
  44. package/dist/runtime/components/Container.vue.d.ts +2 -1
  45. package/dist/runtime/components/ContextMenu.d.vue.ts +6 -5
  46. package/dist/runtime/components/ContextMenu.vue.d.ts +6 -5
  47. package/dist/runtime/components/ContextMenuContent.d.vue.ts +10 -9
  48. package/dist/runtime/components/ContextMenuContent.vue.d.ts +10 -9
  49. package/dist/runtime/components/Drawer.d.vue.ts +5 -1
  50. package/dist/runtime/components/Drawer.vue +19 -5
  51. package/dist/runtime/components/Drawer.vue.d.ts +5 -1
  52. package/dist/runtime/components/DropdownMenu.d.vue.ts +6 -5
  53. package/dist/runtime/components/DropdownMenu.vue.d.ts +6 -5
  54. package/dist/runtime/components/DropdownMenuContent.d.vue.ts +10 -9
  55. package/dist/runtime/components/DropdownMenuContent.vue.d.ts +10 -9
  56. package/dist/runtime/components/FileUpload.d.vue.ts +9 -8
  57. package/dist/runtime/components/FileUpload.vue +3 -2
  58. package/dist/runtime/components/FileUpload.vue.d.ts +9 -8
  59. package/dist/runtime/components/Form.d.vue.ts +7 -6
  60. package/dist/runtime/components/Form.vue.d.ts +7 -6
  61. package/dist/runtime/components/FormField.d.vue.ts +2 -1
  62. package/dist/runtime/components/FormField.vue.d.ts +2 -1
  63. package/dist/runtime/components/Icon.d.vue.ts +2 -1
  64. package/dist/runtime/components/Icon.vue.d.ts +2 -1
  65. package/dist/runtime/components/Input.d.vue.ts +9 -8
  66. package/dist/runtime/components/Input.vue.d.ts +9 -8
  67. package/dist/runtime/components/InputMenu.d.vue.ts +17 -16
  68. package/dist/runtime/components/InputMenu.vue.d.ts +17 -16
  69. package/dist/runtime/components/InputNumber.d.vue.ts +2 -1
  70. package/dist/runtime/components/InputNumber.vue.d.ts +2 -1
  71. package/dist/runtime/components/InputTags.d.vue.ts +13 -12
  72. package/dist/runtime/components/InputTags.vue.d.ts +13 -12
  73. package/dist/runtime/components/Kbd.d.vue.ts +2 -1
  74. package/dist/runtime/components/Kbd.vue.d.ts +2 -1
  75. package/dist/runtime/components/Link.d.vue.ts +2 -1
  76. package/dist/runtime/components/Link.vue.d.ts +2 -1
  77. package/dist/runtime/components/LinkBase.d.vue.ts +2 -1
  78. package/dist/runtime/components/LinkBase.vue.d.ts +2 -1
  79. package/dist/runtime/components/Modal.d.vue.ts +4 -3
  80. package/dist/runtime/components/Modal.vue.d.ts +4 -3
  81. package/dist/runtime/components/NavigationMenu.d.vue.ts +6 -5
  82. package/dist/runtime/components/NavigationMenu.vue +1 -1
  83. package/dist/runtime/components/NavigationMenu.vue.d.ts +6 -5
  84. package/dist/runtime/components/OverlayProvider.d.vue.ts +2 -1
  85. package/dist/runtime/components/OverlayProvider.vue.d.ts +2 -1
  86. package/dist/runtime/components/Pagination.d.vue.ts +2 -1
  87. package/dist/runtime/components/Pagination.vue +4 -4
  88. package/dist/runtime/components/Pagination.vue.d.ts +2 -1
  89. package/dist/runtime/components/PinInput.d.vue.ts +10 -9
  90. package/dist/runtime/components/PinInput.vue.d.ts +10 -9
  91. package/dist/runtime/components/Popover.d.vue.ts +2 -1
  92. package/dist/runtime/components/Popover.vue.d.ts +2 -1
  93. package/dist/runtime/components/Progress.d.vue.ts +2 -1
  94. package/dist/runtime/components/Progress.vue.d.ts +2 -1
  95. package/dist/runtime/components/RadioGroup.d.vue.ts +7 -6
  96. package/dist/runtime/components/RadioGroup.vue.d.ts +7 -6
  97. package/dist/runtime/components/Select.d.vue.ts +11 -10
  98. package/dist/runtime/components/Select.vue.d.ts +11 -10
  99. package/dist/runtime/components/SelectMenu.d.vue.ts +16 -15
  100. package/dist/runtime/components/SelectMenu.vue.d.ts +16 -15
  101. package/dist/runtime/components/Separator.d.vue.ts +2 -1
  102. package/dist/runtime/components/Separator.vue.d.ts +2 -1
  103. package/dist/runtime/components/Skeleton.d.vue.ts +2 -1
  104. package/dist/runtime/components/Skeleton.vue.d.ts +2 -1
  105. package/dist/runtime/components/Slideover.d.vue.ts +4 -3
  106. package/dist/runtime/components/Slideover.vue.d.ts +4 -3
  107. package/dist/runtime/components/Slider.d.vue.ts +8 -7
  108. package/dist/runtime/components/Slider.vue.d.ts +8 -7
  109. package/dist/runtime/components/Stepper.d.vue.ts +10 -9
  110. package/dist/runtime/components/Stepper.vue.d.ts +10 -9
  111. package/dist/runtime/components/Switch.d.vue.ts +2 -1
  112. package/dist/runtime/components/Switch.vue.d.ts +2 -1
  113. package/dist/runtime/components/Table.d.vue.ts +20 -19
  114. package/dist/runtime/components/Table.vue +19 -1
  115. package/dist/runtime/components/Table.vue.d.ts +20 -19
  116. package/dist/runtime/components/Tabs.d.vue.ts +7 -6
  117. package/dist/runtime/components/Tabs.vue.d.ts +7 -6
  118. package/dist/runtime/components/Textarea.d.vue.ts +9 -8
  119. package/dist/runtime/components/Textarea.vue.d.ts +9 -8
  120. package/dist/runtime/components/Timeline.d.vue.ts +7 -6
  121. package/dist/runtime/components/Timeline.vue.d.ts +7 -6
  122. package/dist/runtime/components/Toast.d.vue.ts +4 -3
  123. package/dist/runtime/components/Toast.vue.d.ts +4 -3
  124. package/dist/runtime/components/Toaster.d.vue.ts +2 -1
  125. package/dist/runtime/components/Toaster.vue +2 -1
  126. package/dist/runtime/components/Toaster.vue.d.ts +2 -1
  127. package/dist/runtime/components/Tooltip.d.vue.ts +2 -1
  128. package/dist/runtime/components/Tooltip.vue.d.ts +2 -1
  129. package/dist/runtime/components/Tree.d.vue.ts +7 -6
  130. package/dist/runtime/components/Tree.vue.d.ts +7 -6
  131. package/dist/runtime/composables/useKbd.js +1 -1
  132. package/dist/runtime/composables/usePortal.d.ts +3 -3
  133. package/dist/runtime/composables/usePortal.js +5 -10
  134. package/dist/runtime/inertia/components/Link.d.vue.ts +2 -1
  135. package/dist/runtime/inertia/components/Link.vue +12 -7
  136. package/dist/runtime/inertia/components/Link.vue.d.ts +2 -1
  137. package/dist/runtime/inertia/components/LinkBase.d.vue.ts +2 -1
  138. package/dist/runtime/inertia/components/LinkBase.vue.d.ts +2 -1
  139. package/dist/runtime/vue/components/Icon.d.vue.ts +2 -1
  140. package/dist/runtime/vue/components/Icon.vue.d.ts +2 -1
  141. package/dist/runtime/vue/components/Link.d.vue.ts +2 -1
  142. package/dist/runtime/vue/components/Link.vue.d.ts +2 -1
  143. package/dist/shared/{ui.DH9BUZkq.mjs → ui.DBpKc5X3.mjs} +88 -60
  144. package/dist/unplugin.mjs +1 -1
  145. package/dist/vite.mjs +1 -1
  146. package/package.json +22 -21
@@ -43,6 +43,9 @@ export default {
43
43
  "true": {
44
44
  "content": "rounded-lg after:hidden overflow-hidden [--initial-transform:calc(100%+1.5rem)]"
45
45
  }
46
+ },
47
+ "snapPoints": {
48
+ "true": ""
46
49
  }
47
50
  },
48
51
  "compoundVariants": [
@@ -56,6 +59,16 @@ export default {
56
59
  "handle": "!w-12 !h-1.5 mx-auto"
57
60
  }
58
61
  },
62
+ {
63
+ "direction": [
64
+ "top" as typeof direction[number],
65
+ "bottom" as typeof direction[number]
66
+ ],
67
+ "snapPoints": true,
68
+ "class": {
69
+ "content": "h-full"
70
+ }
71
+ },
59
72
  {
60
73
  "direction": [
61
74
  "right" as typeof direction[number],
@@ -66,6 +79,16 @@ export default {
66
79
  "handle": "!h-12 !w-1.5 mt-auto mb-auto"
67
80
  }
68
81
  },
82
+ {
83
+ "direction": [
84
+ "right" as typeof direction[number],
85
+ "left" as typeof direction[number]
86
+ ],
87
+ "snapPoints": true,
88
+ "class": {
89
+ "content": "w-full"
90
+ }
91
+ },
69
92
  {
70
93
  "direction": "top" as typeof direction[number],
71
94
  "inset": true,
package/dist/module.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@nuxt/ui",
3
- "version": "3.3.5",
3
+ "version": "3.3.7",
4
4
  "docs": "https://ui3.nuxt.com/getting-started/installation/nuxt",
5
5
  "configKey": "ui",
6
6
  "compatibility": {
7
7
  "nuxt": ">=3.16.0"
8
8
  },
9
9
  "builder": {
10
- "@nuxt/module-builder": "1.0.2",
11
- "unbuild": "3.6.0"
10
+ "@nuxt/module-builder": "1.0.1",
11
+ "unbuild": "3.6.1"
12
12
  }
13
13
  }
package/dist/module.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import { defu } from 'defu';
2
2
  import { defineNuxtModule, createResolver, addVitePlugin, addPlugin, addComponentsDir, addImportsDir, hasNuxtModule, installModule } from '@nuxt/kit';
3
- import { d as defaultOptions, r as resolveColors, a as getDefaultUiConfig, b as addTemplates } from './shared/ui.DH9BUZkq.mjs';
3
+ import { d as defaultOptions, r as resolveColors, a as getDefaultUiConfig, b as addTemplates } from './shared/ui.DBpKc5X3.mjs';
4
4
  import '../dist/runtime/utils/index.js';
5
5
  import 'node:url';
6
6
  import 'scule';
@@ -8,7 +8,7 @@ import 'tailwindcss/colors';
8
8
  import 'knitwork';
9
9
 
10
10
  const name = "@nuxt/ui";
11
- const version = "3.3.5";
11
+ const version = "3.3.7";
12
12
 
13
13
  const module = defineNuxtModule({
14
14
  meta: {
@@ -60,17 +60,18 @@ export type AccordionSlots<T extends AccordionItem = AccordionItem> = {
60
60
  index: number;
61
61
  open: boolean;
62
62
  }>;
63
- declare const _default: <T extends AccordionItem>(__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<{
64
- props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
65
- readonly "onUpdate:modelValue"?: ((value: string | string[] | undefined) => any) | undefined;
66
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onUpdate:modelValue"> & AccordionProps<T> & {}> & import("vue").PublicProps;
67
- expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
63
+ declare const __VLS_export: <T extends AccordionItem>(__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<{
64
+ props: __VLS_PrettifyLocal<AccordionProps<T> & {
65
+ "onUpdate:modelValue"?: ((value: string | string[] | undefined) => any) | undefined;
66
+ }> & import("vue").PublicProps;
67
+ expose: (exposed: {}) => void;
68
68
  attrs: any;
69
69
  slots: AccordionSlots<T>;
70
70
  emit: (evt: "update:modelValue", value: string | string[] | undefined) => void;
71
71
  }>) => import("vue").VNode & {
72
72
  __ctx?: Awaited<typeof __VLS_setup>;
73
73
  };
74
+ declare const _default: typeof __VLS_export;
74
75
  export default _default;
75
76
  type __VLS_PrettifyLocal<T> = {
76
77
  [K in keyof T as K]: T[K];
@@ -60,17 +60,18 @@ export type AccordionSlots<T extends AccordionItem = AccordionItem> = {
60
60
  index: number;
61
61
  open: boolean;
62
62
  }>;
63
- declare const _default: <T extends AccordionItem>(__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<{
64
- props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
65
- readonly "onUpdate:modelValue"?: ((value: string | string[] | undefined) => any) | undefined;
66
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onUpdate:modelValue"> & AccordionProps<T> & {}> & import("vue").PublicProps;
67
- expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
63
+ declare const __VLS_export: <T extends AccordionItem>(__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<{
64
+ props: __VLS_PrettifyLocal<AccordionProps<T> & {
65
+ "onUpdate:modelValue"?: ((value: string | string[] | undefined) => any) | undefined;
66
+ }> & import("vue").PublicProps;
67
+ expose: (exposed: {}) => void;
68
68
  attrs: any;
69
69
  slots: AccordionSlots<T>;
70
70
  emit: (evt: "update:modelValue", value: string | string[] | undefined) => void;
71
71
  }>) => import("vue").VNode & {
72
72
  __ctx?: Awaited<typeof __VLS_setup>;
73
73
  };
74
+ declare const _default: typeof __VLS_export;
74
75
  export default _default;
75
76
  type __VLS_PrettifyLocal<T> = {
76
77
  [K in keyof T as K]: T[K];
@@ -66,13 +66,14 @@ export interface AlertSlots {
66
66
  };
67
67
  }): any;
68
68
  }
69
- declare const _default: __VLS_WithSlots<import("vue").DefineComponent<AlertProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
69
+ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<AlertProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
70
70
  "update:open": (value: boolean) => any;
71
71
  }, string, import("vue").PublicProps, Readonly<AlertProps> & Readonly<{
72
72
  "onUpdate:open"?: ((value: boolean) => any) | undefined;
73
73
  }>, {
74
74
  orientation: Alert["variants"]["orientation"];
75
75
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, AlertSlots>;
76
+ declare const _default: typeof __VLS_export;
76
77
  export default _default;
77
78
  type __VLS_WithSlots<T, S> = T & {
78
79
  new (): {
@@ -66,13 +66,14 @@ export interface AlertSlots {
66
66
  };
67
67
  }): any;
68
68
  }
69
- declare const _default: __VLS_WithSlots<import("vue").DefineComponent<AlertProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
69
+ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<AlertProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
70
70
  "update:open": (value: boolean) => any;
71
71
  }, string, import("vue").PublicProps, Readonly<AlertProps> & Readonly<{
72
72
  "onUpdate:open"?: ((value: boolean) => any) | undefined;
73
73
  }>, {
74
74
  orientation: Alert["variants"]["orientation"];
75
75
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, AlertSlots>;
76
+ declare const _default: typeof __VLS_export;
76
77
  export default _default;
77
78
  type __VLS_WithSlots<T, S> = T & {
78
79
  new (): {
@@ -4,20 +4,21 @@ export interface AppProps<T extends Messages = Messages> extends Omit<ConfigProv
4
4
  tooltip?: TooltipProviderProps;
5
5
  toaster?: ToasterProps | null;
6
6
  locale?: Locale<T>;
7
- portal?: string | HTMLElement;
7
+ portal?: boolean | string | HTMLElement;
8
8
  }
9
9
  export interface AppSlots {
10
10
  default(props?: {}): any;
11
11
  }
12
- declare const _default: <T extends Messages>(__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<{
13
- props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, never> & AppProps<T> & {}> & import("vue").PublicProps;
14
- expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
12
+ declare const __VLS_export: <T extends Messages>(__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<{
13
+ props: __VLS_PrettifyLocal<AppProps<T>> & import("vue").PublicProps;
14
+ expose: (exposed: {}) => void;
15
15
  attrs: any;
16
16
  slots: AppSlots;
17
17
  emit: {};
18
18
  }>) => import("vue").VNode & {
19
19
  __ctx?: Awaited<typeof __VLS_setup>;
20
20
  };
21
+ declare const _default: typeof __VLS_export;
21
22
  export default _default;
22
23
  type __VLS_PrettifyLocal<T> = {
23
24
  [K in keyof T as K]: T[K];
@@ -16,7 +16,7 @@ const props = defineProps({
16
16
  tooltip: { type: Object, required: false },
17
17
  toaster: { type: [Object, null], required: false },
18
18
  locale: { type: Object, required: false },
19
- portal: { type: null, required: false, default: "body" },
19
+ portal: { type: [Boolean, String], required: false, skipCheck: true, default: "body" },
20
20
  scrollBody: { type: [Boolean, Object], required: false },
21
21
  nonce: { type: String, required: false }
22
22
  });
@@ -4,20 +4,21 @@ export interface AppProps<T extends Messages = Messages> extends Omit<ConfigProv
4
4
  tooltip?: TooltipProviderProps;
5
5
  toaster?: ToasterProps | null;
6
6
  locale?: Locale<T>;
7
- portal?: string | HTMLElement;
7
+ portal?: boolean | string | HTMLElement;
8
8
  }
9
9
  export interface AppSlots {
10
10
  default(props?: {}): any;
11
11
  }
12
- declare const _default: <T extends Messages>(__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<{
13
- props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, never> & AppProps<T> & {}> & import("vue").PublicProps;
14
- expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
12
+ declare const __VLS_export: <T extends Messages>(__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<{
13
+ props: __VLS_PrettifyLocal<AppProps<T>> & import("vue").PublicProps;
14
+ expose: (exposed: {}) => void;
15
15
  attrs: any;
16
16
  slots: AppSlots;
17
17
  emit: {};
18
18
  }>) => import("vue").VNode & {
19
19
  __ctx?: Awaited<typeof __VLS_setup>;
20
20
  };
21
+ declare const _default: typeof __VLS_export;
21
22
  export default _default;
22
23
  type __VLS_PrettifyLocal<T> = {
23
24
  [K in keyof T as K]: T[K];
@@ -28,11 +28,12 @@ export interface AvatarProps {
28
28
  export interface AvatarSlots {
29
29
  default(props?: {}): any;
30
30
  }
31
- declare const _default: __VLS_WithSlots<import("vue").DefineComponent<AvatarProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<AvatarProps> & Readonly<{}>, {
31
+ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<AvatarProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<AvatarProps> & Readonly<{}>, {
32
32
  as: any;
33
33
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
34
34
  default?: (props: {}) => any;
35
35
  }>;
36
+ declare const _default: typeof __VLS_export;
36
37
  export default _default;
37
38
  type __VLS_WithSlots<T, S> = T & {
38
39
  new (): {
@@ -28,11 +28,12 @@ export interface AvatarProps {
28
28
  export interface AvatarSlots {
29
29
  default(props?: {}): any;
30
30
  }
31
- declare const _default: __VLS_WithSlots<import("vue").DefineComponent<AvatarProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<AvatarProps> & Readonly<{}>, {
31
+ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<AvatarProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<AvatarProps> & Readonly<{}>, {
32
32
  as: any;
33
33
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
34
34
  default?: (props: {}) => any;
35
35
  }>;
36
+ declare const _default: typeof __VLS_export;
36
37
  export default _default;
37
38
  type __VLS_WithSlots<T, S> = T & {
38
39
  new (): {
@@ -22,7 +22,8 @@ export interface AvatarGroupProps {
22
22
  export interface AvatarGroupSlots {
23
23
  default(props?: {}): any;
24
24
  }
25
- declare const _default: __VLS_WithSlots<import("vue").DefineComponent<AvatarGroupProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<AvatarGroupProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, AvatarGroupSlots>;
25
+ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<AvatarGroupProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<AvatarGroupProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, AvatarGroupSlots>;
26
+ declare const _default: typeof __VLS_export;
26
27
  export default _default;
27
28
  type __VLS_WithSlots<T, S> = T & {
28
29
  new (): {
@@ -22,7 +22,8 @@ export interface AvatarGroupProps {
22
22
  export interface AvatarGroupSlots {
23
23
  default(props?: {}): any;
24
24
  }
25
- declare const _default: __VLS_WithSlots<import("vue").DefineComponent<AvatarGroupProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<AvatarGroupProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, AvatarGroupSlots>;
25
+ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<AvatarGroupProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<AvatarGroupProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, AvatarGroupSlots>;
26
+ declare const _default: typeof __VLS_export;
26
27
  export default _default;
27
28
  type __VLS_WithSlots<T, S> = T & {
28
29
  new (): {
@@ -32,9 +32,10 @@ export interface BadgeSlots {
32
32
  default(props?: {}): any;
33
33
  trailing(props?: {}): any;
34
34
  }
35
- declare const _default: __VLS_WithSlots<import("vue").DefineComponent<BadgeProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<BadgeProps> & Readonly<{}>, {
35
+ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<BadgeProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<BadgeProps> & Readonly<{}>, {
36
36
  as: any;
37
37
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, BadgeSlots>;
38
+ declare const _default: typeof __VLS_export;
38
39
  export default _default;
39
40
  type __VLS_WithSlots<T, S> = T & {
40
41
  new (): {
@@ -32,9 +32,10 @@ export interface BadgeSlots {
32
32
  default(props?: {}): any;
33
33
  trailing(props?: {}): any;
34
34
  }
35
- declare const _default: __VLS_WithSlots<import("vue").DefineComponent<BadgeProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<BadgeProps> & Readonly<{}>, {
35
+ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<BadgeProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<BadgeProps> & Readonly<{}>, {
36
36
  as: any;
37
37
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, BadgeSlots>;
38
+ declare const _default: typeof __VLS_export;
38
39
  export default _default;
39
40
  type __VLS_WithSlots<T, S> = T & {
40
41
  new (): {
@@ -51,15 +51,16 @@ export type BreadcrumbSlots<T extends BreadcrumbItem = BreadcrumbItem> = {
51
51
  index: number;
52
52
  active?: boolean;
53
53
  }>;
54
- declare const _default: <T extends BreadcrumbItem>(__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<{} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, never> & BreadcrumbProps<T> & {}> & import("vue").PublicProps;
56
- expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
54
+ declare const __VLS_export: <T extends BreadcrumbItem>(__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<BreadcrumbProps<T>> & import("vue").PublicProps;
56
+ expose: (exposed: {}) => void;
57
57
  attrs: any;
58
58
  slots: BreadcrumbSlots<T>;
59
59
  emit: {};
60
60
  }>) => import("vue").VNode & {
61
61
  __ctx?: Awaited<typeof __VLS_setup>;
62
62
  };
63
+ declare const _default: typeof __VLS_export;
63
64
  export default _default;
64
65
  type __VLS_PrettifyLocal<T> = {
65
66
  [K in keyof T as K]: T[K];
@@ -51,15 +51,16 @@ export type BreadcrumbSlots<T extends BreadcrumbItem = BreadcrumbItem> = {
51
51
  index: number;
52
52
  active?: boolean;
53
53
  }>;
54
- declare const _default: <T extends BreadcrumbItem>(__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<{} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, never> & BreadcrumbProps<T> & {}> & import("vue").PublicProps;
56
- expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
54
+ declare const __VLS_export: <T extends BreadcrumbItem>(__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<BreadcrumbProps<T>> & import("vue").PublicProps;
56
+ expose: (exposed: {}) => void;
57
57
  attrs: any;
58
58
  slots: BreadcrumbSlots<T>;
59
59
  emit: {};
60
60
  }>) => import("vue").VNode & {
61
61
  __ctx?: Awaited<typeof __VLS_setup>;
62
62
  };
63
+ declare const _default: typeof __VLS_export;
63
64
  export default _default;
64
65
  type __VLS_PrettifyLocal<T> = {
65
66
  [K in keyof T as K]: T[K];
@@ -35,7 +35,8 @@ export interface ButtonSlots {
35
35
  default(props?: {}): any;
36
36
  trailing(props?: {}): any;
37
37
  }
38
- declare const _default: __VLS_WithSlots<import("vue").DefineComponent<ButtonProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ButtonProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, ButtonSlots>;
38
+ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<ButtonProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ButtonProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, ButtonSlots>;
39
+ declare const _default: typeof __VLS_export;
39
40
  export default _default;
40
41
  type __VLS_WithSlots<T, S> = T & {
41
42
  new (): {
@@ -35,7 +35,8 @@ export interface ButtonSlots {
35
35
  default(props?: {}): any;
36
36
  trailing(props?: {}): any;
37
37
  }
38
- declare const _default: __VLS_WithSlots<import("vue").DefineComponent<ButtonProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ButtonProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, ButtonSlots>;
38
+ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<ButtonProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ButtonProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, ButtonSlots>;
39
+ declare const _default: typeof __VLS_export;
39
40
  export default _default;
40
41
  type __VLS_WithSlots<T, S> = T & {
41
42
  new (): {
@@ -23,9 +23,10 @@ export interface ButtonGroupProps {
23
23
  export interface ButtonGroupSlots {
24
24
  default(props?: {}): any;
25
25
  }
26
- declare const _default: __VLS_WithSlots<import("vue").DefineComponent<ButtonGroupProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ButtonGroupProps> & Readonly<{}>, {
26
+ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<ButtonGroupProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ButtonGroupProps> & Readonly<{}>, {
27
27
  orientation: ButtonGroup["variants"]["orientation"];
28
28
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, ButtonGroupSlots>;
29
+ declare const _default: typeof __VLS_export;
29
30
  export default _default;
30
31
  type __VLS_WithSlots<T, S> = T & {
31
32
  new (): {
@@ -23,9 +23,10 @@ export interface ButtonGroupProps {
23
23
  export interface ButtonGroupSlots {
24
24
  default(props?: {}): any;
25
25
  }
26
- declare const _default: __VLS_WithSlots<import("vue").DefineComponent<ButtonGroupProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ButtonGroupProps> & Readonly<{}>, {
26
+ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<ButtonGroupProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ButtonGroupProps> & Readonly<{}>, {
27
27
  orientation: ButtonGroup["variants"]["orientation"];
28
28
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, ButtonGroupSlots>;
29
+ declare const _default: typeof __VLS_export;
29
30
  export default _default;
30
31
  type __VLS_WithSlots<T, S> = T & {
31
32
  new (): {
@@ -92,20 +92,21 @@ export interface CalendarSlots {
92
92
  day: string;
93
93
  }) => any;
94
94
  }
95
- declare const _default: <R extends boolean, M extends boolean>(__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<{
96
- props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
97
- readonly "onUpdate:modelValue"?: ((date: CalendarModelValue<R, M>) => any) | undefined;
98
- readonly "onUpdate:placeholder"?: ((...args: unknown[]) => any) | undefined;
99
- readonly "onUpdate:validModelValue"?: ((date: DateRange) => any) | undefined;
100
- readonly "onUpdate:startValue"?: ((date: DateValue | undefined) => any) | undefined;
101
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onUpdate:modelValue" | "onUpdate:placeholder" | "onUpdate:validModelValue" | "onUpdate:startValue"> & CalendarProps<R, M> & {}> & import("vue").PublicProps;
102
- expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
95
+ declare const __VLS_export: <R extends boolean, M extends boolean>(__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<{
96
+ props: __VLS_PrettifyLocal<CalendarProps<R, M> & {
97
+ "onUpdate:modelValue"?: ((date: CalendarModelValue<R, M>) => any) | undefined;
98
+ "onUpdate:placeholder"?: ((...args: DateValue[]) => any) | undefined;
99
+ "onUpdate:validModelValue"?: ((date: DateRange) => any) | undefined;
100
+ "onUpdate:startValue"?: ((date: DateValue | undefined) => any) | undefined;
101
+ }> & import("vue").PublicProps;
102
+ expose: (exposed: {}) => void;
103
103
  attrs: any;
104
104
  slots: CalendarSlots;
105
105
  emit: ((evt: "update:modelValue", date: CalendarModelValue<R, M>) => void) & ((evt: "update:placeholder", ...args: [date: DateValue] & [date: DateValue]) => void) & ((evt: "update:validModelValue", date: DateRange) => void) & ((evt: "update:startValue", date: DateValue | undefined) => void);
106
106
  }>) => import("vue").VNode & {
107
107
  __ctx?: Awaited<typeof __VLS_setup>;
108
108
  };
109
+ declare const _default: typeof __VLS_export;
109
110
  export default _default;
110
111
  type __VLS_PrettifyLocal<T> = {
111
112
  [K in keyof T as K]: T[K];
@@ -92,20 +92,21 @@ export interface CalendarSlots {
92
92
  day: string;
93
93
  }) => any;
94
94
  }
95
- declare const _default: <R extends boolean, M extends boolean>(__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<{
96
- props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
97
- readonly "onUpdate:modelValue"?: ((date: CalendarModelValue<R, M>) => any) | undefined;
98
- readonly "onUpdate:placeholder"?: ((...args: unknown[]) => any) | undefined;
99
- readonly "onUpdate:validModelValue"?: ((date: DateRange) => any) | undefined;
100
- readonly "onUpdate:startValue"?: ((date: DateValue | undefined) => any) | undefined;
101
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onUpdate:modelValue" | "onUpdate:placeholder" | "onUpdate:validModelValue" | "onUpdate:startValue"> & CalendarProps<R, M> & {}> & import("vue").PublicProps;
102
- expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
95
+ declare const __VLS_export: <R extends boolean, M extends boolean>(__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<{
96
+ props: __VLS_PrettifyLocal<CalendarProps<R, M> & {
97
+ "onUpdate:modelValue"?: ((date: CalendarModelValue<R, M>) => any) | undefined;
98
+ "onUpdate:placeholder"?: ((...args: DateValue[]) => any) | undefined;
99
+ "onUpdate:validModelValue"?: ((date: DateRange) => any) | undefined;
100
+ "onUpdate:startValue"?: ((date: DateValue | undefined) => any) | undefined;
101
+ }> & import("vue").PublicProps;
102
+ expose: (exposed: {}) => void;
103
103
  attrs: any;
104
104
  slots: CalendarSlots;
105
105
  emit: ((evt: "update:modelValue", date: CalendarModelValue<R, M>) => void) & ((evt: "update:placeholder", ...args: [date: DateValue] & [date: DateValue]) => void) & ((evt: "update:validModelValue", date: DateRange) => void) & ((evt: "update:startValue", date: DateValue | undefined) => void);
106
106
  }>) => import("vue").VNode & {
107
107
  __ctx?: Awaited<typeof __VLS_setup>;
108
108
  };
109
+ declare const _default: typeof __VLS_export;
109
110
  export default _default;
110
111
  type __VLS_PrettifyLocal<T> = {
111
112
  [K in keyof T as K]: T[K];
@@ -20,7 +20,8 @@ export interface CardSlots {
20
20
  default(props?: {}): any;
21
21
  footer(props?: {}): any;
22
22
  }
23
- declare const _default: __VLS_WithSlots<import("vue").DefineComponent<CardProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<CardProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, CardSlots>;
23
+ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<CardProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<CardProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, CardSlots>;
24
+ declare const _default: typeof __VLS_export;
24
25
  export default _default;
25
26
  type __VLS_WithSlots<T, S> = T & {
26
27
  new (): {
@@ -20,7 +20,8 @@ export interface CardSlots {
20
20
  default(props?: {}): any;
21
21
  footer(props?: {}): any;
22
22
  }
23
- declare const _default: __VLS_WithSlots<import("vue").DefineComponent<CardProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<CardProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, CardSlots>;
23
+ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<CardProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<CardProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, CardSlots>;
24
+ declare const _default: typeof __VLS_export;
24
25
  export default _default;
25
26
  type __VLS_WithSlots<T, S> = T & {
26
27
  new (): {
@@ -107,20 +107,21 @@ export interface CarouselEmits {
107
107
  */
108
108
  select: [selectedIndex: number];
109
109
  }
110
- declare const _default: <T extends CarouselItem>(__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<{
111
- props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
112
- readonly onSelect?: ((selectedIndex: number) => any) | undefined;
113
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onSelect"> & CarouselProps<T> & {}> & import("vue").PublicProps;
114
- expose(exposed: import("vue").ShallowUnwrapRef<{
110
+ declare const __VLS_export: <T extends CarouselItem>(__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<{
111
+ props: __VLS_PrettifyLocal<CarouselProps<T> & {
112
+ onSelect?: ((selectedIndex: number) => any) | undefined;
113
+ }> & import("vue").PublicProps;
114
+ expose: (exposed: import("vue").ShallowUnwrapRef<{
115
115
  emblaRef: import("vue").Ref<HTMLElement | undefined, HTMLElement | undefined>;
116
116
  emblaApi: import("vue").Ref<EmblaCarouselType | undefined, EmblaCarouselType | undefined>;
117
- }>): void;
117
+ }>) => void;
118
118
  attrs: any;
119
119
  slots: CarouselSlots<T>;
120
120
  emit: (evt: "select", selectedIndex: number) => void;
121
121
  }>) => import("vue").VNode & {
122
122
  __ctx?: Awaited<typeof __VLS_setup>;
123
123
  };
124
+ declare const _default: typeof __VLS_export;
124
125
  export default _default;
125
126
  type __VLS_PrettifyLocal<T> = {
126
127
  [K in keyof T as K]: T[K];
@@ -3,7 +3,7 @@ import theme from "#build/ui/carousel";
3
3
  </script>
4
4
 
5
5
  <script setup>
6
- import { computed, ref, watch, onMounted } from "vue";
6
+ import { computed, ref, watch, onMounted, onBeforeUnmount } from "vue";
7
7
  import useEmblaCarousel from "embla-carousel-vue";
8
8
  import { Primitive, useForwardProps } from "reka-ui";
9
9
  import { reactivePick } from "@vueuse/core";
@@ -91,11 +91,14 @@ async function loadPlugins() {
91
91
  }
92
92
  plugins.value = emblaPlugins;
93
93
  }
94
- watch(() => [props.autoplay, props.autoScroll, props.autoHeight, props.classNames, props.fade, props.wheelGestures], loadPlugins, { immediate: true });
95
- const [emblaRef, emblaApi] = useEmblaCarousel(options.value, plugins.value);
96
- watch([options, plugins], () => {
94
+ watch(() => [props.autoplay, props.autoScroll, props.autoHeight, props.classNames, props.fade, props.wheelGestures], async () => {
95
+ await loadPlugins();
97
96
  emblaApi.value?.reInit(options.value, plugins.value);
98
- });
97
+ }, { immediate: true });
98
+ const [emblaRef, emblaApi] = useEmblaCarousel(options, plugins);
99
+ watch(options, () => {
100
+ emblaApi.value?.reInit(options.value, plugins.value);
101
+ }, { flush: "post" });
99
102
  function scrollPrev() {
100
103
  emblaApi.value?.scrollPrev();
101
104
  }
@@ -106,8 +109,15 @@ function scrollTo(index) {
106
109
  emblaApi.value?.scrollTo(index);
107
110
  }
108
111
  function onKeyDown(event) {
109
- const prevKey = props.orientation === "vertical" ? "ArrowUp" : "ArrowLeft";
110
- const nextKey = props.orientation === "vertical" ? "ArrowDown" : "ArrowRight";
112
+ let prevKey;
113
+ let nextKey;
114
+ if (props.orientation === "horizontal") {
115
+ prevKey = dir.value === "ltr" ? "ArrowLeft" : "ArrowRight";
116
+ nextKey = dir.value === "ltr" ? "ArrowRight" : "ArrowLeft";
117
+ } else {
118
+ prevKey = "ArrowUp";
119
+ nextKey = "ArrowDown";
120
+ }
111
121
  if (event.key === prevKey) {
112
122
  event.preventDefault();
113
123
  scrollPrev();
@@ -138,11 +148,21 @@ onMounted(() => {
138
148
  if (!emblaApi.value) {
139
149
  return;
140
150
  }
141
- emblaApi.value?.on("init", onInit);
142
- emblaApi.value?.on("init", onSelect);
143
- emblaApi.value?.on("reInit", onInit);
144
- emblaApi.value?.on("reInit", onSelect);
145
- emblaApi.value?.on("select", onSelect);
151
+ emblaApi.value.on("init", onInit);
152
+ emblaApi.value.on("init", onSelect);
153
+ emblaApi.value.on("reInit", onInit);
154
+ emblaApi.value.on("reInit", onSelect);
155
+ emblaApi.value.on("select", onSelect);
156
+ });
157
+ onBeforeUnmount(() => {
158
+ if (!emblaApi.value) {
159
+ return;
160
+ }
161
+ emblaApi.value.off("init", onInit);
162
+ emblaApi.value.off("init", onSelect);
163
+ emblaApi.value.off("reInit", onInit);
164
+ emblaApi.value.off("reInit", onSelect);
165
+ emblaApi.value.off("select", onSelect);
146
166
  });
147
167
  defineExpose({
148
168
  emblaRef,