@nuxt/ui 3.3.4 → 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 (149) hide show
  1. package/.nuxt/ui/drawer.ts +23 -0
  2. package/.nuxt/ui/progress.ts +3 -3
  3. package/README.md +10 -10
  4. package/dist/module.d.mts +6 -6
  5. package/dist/module.json +2 -2
  6. package/dist/module.mjs +3 -3
  7. package/dist/runtime/components/Accordion.d.vue.ts +78 -0
  8. package/dist/runtime/components/Accordion.vue.d.ts +6 -5
  9. package/dist/runtime/components/Alert.d.vue.ts +82 -0
  10. package/dist/runtime/components/Alert.vue.d.ts +2 -1
  11. package/dist/runtime/components/App.d.vue.ts +25 -0
  12. package/dist/runtime/components/App.vue +1 -1
  13. package/dist/runtime/components/App.vue.d.ts +5 -4
  14. package/dist/runtime/components/Avatar.d.vue.ts +42 -0
  15. package/dist/runtime/components/Avatar.vue.d.ts +2 -1
  16. package/dist/runtime/components/AvatarGroup.d.vue.ts +32 -0
  17. package/dist/runtime/components/AvatarGroup.vue.d.ts +2 -1
  18. package/dist/runtime/components/Badge.d.vue.ts +44 -0
  19. package/dist/runtime/components/Badge.vue.d.ts +2 -1
  20. package/dist/runtime/components/Breadcrumb.d.vue.ts +67 -0
  21. package/dist/runtime/components/Breadcrumb.vue.d.ts +4 -3
  22. package/dist/runtime/components/Button.d.vue.ts +45 -0
  23. package/dist/runtime/components/Button.vue.d.ts +2 -1
  24. package/dist/runtime/components/ButtonGroup.d.vue.ts +35 -0
  25. package/dist/runtime/components/ButtonGroup.vue.d.ts +2 -1
  26. package/dist/runtime/components/Calendar.d.vue.ts +113 -0
  27. package/dist/runtime/components/Calendar.vue.d.ts +9 -8
  28. package/dist/runtime/components/Card.d.vue.ts +30 -0
  29. package/dist/runtime/components/Card.vue.d.ts +2 -1
  30. package/dist/runtime/components/Carousel.d.vue.ts +128 -0
  31. package/dist/runtime/components/Carousel.vue +32 -12
  32. package/dist/runtime/components/Carousel.vue.d.ts +7 -6
  33. package/dist/runtime/components/Checkbox.d.vue.ts +74 -0
  34. package/dist/runtime/components/Checkbox.vue.d.ts +2 -1
  35. package/dist/runtime/components/CheckboxGroup.d.vue.ts +85 -0
  36. package/dist/runtime/components/CheckboxGroup.vue.d.ts +7 -6
  37. package/dist/runtime/components/Chip.d.vue.ts +58 -0
  38. package/dist/runtime/components/Chip.vue.d.ts +2 -1
  39. package/dist/runtime/components/Collapsible.d.vue.ts +36 -0
  40. package/dist/runtime/components/Collapsible.vue.d.ts +2 -1
  41. package/dist/runtime/components/ColorPicker.d.vue.ts +49 -0
  42. package/dist/runtime/components/ColorPicker.vue.d.ts +2 -1
  43. package/dist/runtime/components/CommandPalette.d.vue.ts +193 -0
  44. package/dist/runtime/components/CommandPalette.vue.d.ts +13 -12
  45. package/dist/runtime/components/Container.d.vue.ts +19 -0
  46. package/dist/runtime/components/Container.vue.d.ts +2 -1
  47. package/dist/runtime/components/ContextMenu.d.vue.ts +110 -0
  48. package/dist/runtime/components/ContextMenu.vue.d.ts +6 -5
  49. package/dist/runtime/components/ContextMenuContent.d.vue.ts +50 -0
  50. package/dist/runtime/components/ContextMenuContent.vue.d.ts +10 -9
  51. package/dist/runtime/components/Drawer.d.vue.ts +87 -0
  52. package/dist/runtime/components/Drawer.vue +19 -5
  53. package/dist/runtime/components/Drawer.vue.d.ts +5 -1
  54. package/dist/runtime/components/DropdownMenu.d.vue.ts +120 -0
  55. package/dist/runtime/components/DropdownMenu.vue.d.ts +6 -5
  56. package/dist/runtime/components/DropdownMenuContent.d.vue.ts +56 -0
  57. package/dist/runtime/components/DropdownMenuContent.vue.d.ts +10 -9
  58. package/dist/runtime/components/FileUpload.d.vue.ts +167 -0
  59. package/dist/runtime/components/FileUpload.vue.d.ts +9 -8
  60. package/dist/runtime/components/Form.d.vue.ts +72 -0
  61. package/dist/runtime/components/Form.vue.d.ts +7 -6
  62. package/dist/runtime/components/FormField.d.vue.ts +62 -0
  63. package/dist/runtime/components/FormField.vue.d.ts +2 -1
  64. package/dist/runtime/components/Icon.d.vue.ts +9 -0
  65. package/dist/runtime/components/Icon.vue.d.ts +2 -1
  66. package/dist/runtime/components/Input.d.vue.ts +78 -0
  67. package/dist/runtime/components/Input.vue.d.ts +9 -8
  68. package/dist/runtime/components/InputMenu.d.vue.ts +330 -0
  69. package/dist/runtime/components/InputMenu.vue +1 -1
  70. package/dist/runtime/components/InputMenu.vue.d.ts +19 -24
  71. package/dist/runtime/components/InputNumber.d.vue.ts +187 -0
  72. package/dist/runtime/components/InputNumber.vue.d.ts +2 -1
  73. package/dist/runtime/components/InputTags.d.vue.ts +186 -0
  74. package/dist/runtime/components/InputTags.vue +2 -2
  75. package/dist/runtime/components/InputTags.vue.d.ts +13 -12
  76. package/dist/runtime/components/Kbd.d.vue.ts +39 -0
  77. package/dist/runtime/components/Kbd.vue.d.ts +2 -1
  78. package/dist/runtime/components/Link.d.vue.ts +92 -0
  79. package/dist/runtime/components/Link.vue.d.ts +2 -1
  80. package/dist/runtime/components/LinkBase.d.vue.ts +26 -0
  81. package/dist/runtime/components/LinkBase.vue.d.ts +2 -1
  82. package/dist/runtime/components/Modal.d.vue.ts +107 -0
  83. package/dist/runtime/components/Modal.vue.d.ts +4 -3
  84. package/dist/runtime/components/NavigationMenu.d.vue.ts +171 -0
  85. package/dist/runtime/components/NavigationMenu.vue.d.ts +6 -5
  86. package/dist/runtime/components/OverlayProvider.d.vue.ts +3 -0
  87. package/dist/runtime/components/OverlayProvider.vue.d.ts +2 -1
  88. package/dist/runtime/components/Pagination.d.vue.ts +119 -0
  89. package/dist/runtime/components/Pagination.vue +4 -4
  90. package/dist/runtime/components/Pagination.vue.d.ts +2 -1
  91. package/dist/runtime/components/PinInput.d.vue.ts +61 -0
  92. package/dist/runtime/components/PinInput.vue.d.ts +10 -9
  93. package/dist/runtime/components/Popover.d.vue.ts +71 -0
  94. package/dist/runtime/components/Popover.vue.d.ts +2 -1
  95. package/dist/runtime/components/Progress.d.vue.ts +67 -0
  96. package/dist/runtime/components/Progress.vue +2 -3
  97. package/dist/runtime/components/Progress.vue.d.ts +2 -1
  98. package/dist/runtime/components/RadioGroup.d.vue.ts +95 -0
  99. package/dist/runtime/components/RadioGroup.vue.d.ts +7 -6
  100. package/dist/runtime/components/Select.d.vue.ts +254 -0
  101. package/dist/runtime/components/Select.vue.d.ts +11 -10
  102. package/dist/runtime/components/SelectMenu.d.vue.ts +303 -0
  103. package/dist/runtime/components/SelectMenu.vue.d.ts +16 -15
  104. package/dist/runtime/components/Separator.d.vue.ts +55 -0
  105. package/dist/runtime/components/Separator.vue.d.ts +2 -1
  106. package/dist/runtime/components/Skeleton.d.vue.ts +18 -0
  107. package/dist/runtime/components/Skeleton.vue.d.ts +2 -1
  108. package/dist/runtime/components/Slideover.d.vue.ts +108 -0
  109. package/dist/runtime/components/Slideover.vue.d.ts +4 -3
  110. package/dist/runtime/components/Slider.d.vue.ts +58 -0
  111. package/dist/runtime/components/Slider.vue.d.ts +8 -7
  112. package/dist/runtime/components/Stepper.d.vue.ts +86 -0
  113. package/dist/runtime/components/Stepper.vue.d.ts +10 -9
  114. package/dist/runtime/components/Switch.d.vue.ts +71 -0
  115. package/dist/runtime/components/Switch.vue.d.ts +2 -1
  116. package/dist/runtime/components/Table.d.vue.ts +202 -0
  117. package/dist/runtime/components/Table.vue +19 -1
  118. package/dist/runtime/components/Table.vue.d.ts +20 -19
  119. package/dist/runtime/components/Tabs.d.vue.ts +99 -0
  120. package/dist/runtime/components/Tabs.vue +2 -2
  121. package/dist/runtime/components/Tabs.vue.d.ts +7 -6
  122. package/dist/runtime/components/Textarea.d.vue.ts +80 -0
  123. package/dist/runtime/components/Textarea.vue.d.ts +9 -8
  124. package/dist/runtime/components/Timeline.d.vue.ts +71 -0
  125. package/dist/runtime/components/Timeline.vue.d.ts +7 -6
  126. package/dist/runtime/components/Toast.d.vue.ts +165 -0
  127. package/dist/runtime/components/Toast.vue.d.ts +2 -1
  128. package/dist/runtime/components/Toaster.d.vue.ts +45 -0
  129. package/dist/runtime/components/Toaster.vue.d.ts +2 -1
  130. package/dist/runtime/components/Tooltip.d.vue.ts +57 -0
  131. package/dist/runtime/components/Tooltip.vue.d.ts +2 -1
  132. package/dist/runtime/components/Tree.d.vue.ts +115 -0
  133. package/dist/runtime/components/Tree.vue.d.ts +7 -6
  134. package/dist/runtime/composables/useKbd.js +1 -1
  135. package/dist/runtime/composables/usePortal.d.ts +3 -3
  136. package/dist/runtime/composables/usePortal.js +5 -10
  137. package/dist/runtime/inertia/components/Link.d.vue.ts +64 -0
  138. package/dist/runtime/inertia/components/Link.vue.d.ts +2 -1
  139. package/dist/runtime/inertia/components/LinkBase.d.vue.ts +26 -0
  140. package/dist/runtime/inertia/components/LinkBase.vue.d.ts +2 -1
  141. package/dist/runtime/types/tv.d.ts +9 -2
  142. package/dist/runtime/vue/components/Icon.d.vue.ts +6 -0
  143. package/dist/runtime/vue/components/Icon.vue.d.ts +2 -1
  144. package/dist/runtime/vue/components/Link.d.vue.ts +94 -0
  145. package/dist/runtime/vue/components/Link.vue.d.ts +2 -1
  146. package/dist/shared/{ui.BTUFJHYJ.mjs → ui.DBpKc5X3.mjs} +100 -68
  147. package/dist/unplugin.mjs +1 -1
  148. package/dist/vite.mjs +1 -1
  149. package/package.json +18 -18
@@ -0,0 +1,186 @@
1
+ import type { AppConfig } from '@nuxt/schema';
2
+ import type { TagsInputRootProps, TagsInputRootEmits, AcceptableInputValue } from 'reka-ui';
3
+ import theme from '#build/ui/input-tags';
4
+ import type { UseComponentIconsProps } from '../composables/useComponentIcons';
5
+ import type { ComponentConfig } from '../types/utils';
6
+ type InputTags = ComponentConfig<typeof theme, AppConfig, 'inputTags'>;
7
+ export type InputTagItem = AcceptableInputValue;
8
+ export interface InputTagsProps<T extends InputTagItem = InputTagItem> extends Pick<TagsInputRootProps<T>, 'modelValue' | 'defaultValue' | 'addOnPaste' | 'addOnTab' | 'addOnBlur' | 'duplicate' | 'disabled' | 'delimiter' | 'max' | 'id' | 'convertValue' | 'displayValue' | 'name' | 'required'>, UseComponentIconsProps {
9
+ /**
10
+ * The element or component this component should render as.
11
+ * @defaultValue 'div'
12
+ */
13
+ as?: any;
14
+ /** The placeholder text when the input is empty. */
15
+ placeholder?: string;
16
+ /** The maximum number of character allowed. */
17
+ maxLength?: number;
18
+ /**
19
+ * @defaultValue 'primary'
20
+ */
21
+ color?: InputTags['variants']['color'];
22
+ /**
23
+ * @defaultValue 'outline'
24
+ */
25
+ variant?: InputTags['variants']['variant'];
26
+ /**
27
+ * @defaultValue 'md'
28
+ */
29
+ size?: InputTags['variants']['size'];
30
+ autofocus?: boolean;
31
+ autofocusDelay?: number;
32
+ /**
33
+ * The icon displayed to delete a tag.
34
+ * @defaultValue appConfig.ui.icons.close
35
+ * @IconifyIcon
36
+ */
37
+ deleteIcon?: string;
38
+ /** Highlight the ring color like a focus state. */
39
+ highlight?: boolean;
40
+ class?: any;
41
+ ui?: InputTags['slots'];
42
+ }
43
+ export interface InputTagsEmits<T extends InputTagItem> extends TagsInputRootEmits<T> {
44
+ change: [event: Event];
45
+ blur: [event: FocusEvent];
46
+ focus: [event: FocusEvent];
47
+ }
48
+ type SlotProps<T extends InputTagItem> = (props: {
49
+ item: T;
50
+ index: number;
51
+ }) => any;
52
+ export interface InputTagsSlots<T extends InputTagItem = InputTagItem> {
53
+ 'leading'(props?: {}): any;
54
+ 'default'(props?: {}): any;
55
+ 'trailing'(props?: {}): any;
56
+ 'item-text': SlotProps<T>;
57
+ 'item-delete': SlotProps<T>;
58
+ }
59
+ declare const __VLS_export: <T extends InputTagItem>(__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<{
60
+ props: __VLS_PrettifyLocal<InputTagsProps<T> & {
61
+ onBlur?: ((event: FocusEvent) => any) | undefined;
62
+ onChange?: ((event: Event) => any) | undefined;
63
+ onFocus?: ((event: FocusEvent) => any) | undefined;
64
+ onInvalid?: ((payload: T) => any) | undefined;
65
+ "onUpdate:modelValue"?: ((payload: T[]) => any) | undefined;
66
+ onAddTag?: ((payload: T) => any) | undefined;
67
+ onRemoveTag?: ((payload: T) => any) | undefined;
68
+ }> & import("vue").PublicProps;
69
+ expose: (exposed: import("vue").ShallowUnwrapRef<{
70
+ inputRef: import("vue").Ref<({
71
+ $: import("vue").ComponentInternalInstance;
72
+ $data: {};
73
+ $props: {
74
+ readonly placeholder?: string | undefined;
75
+ readonly autoFocus?: boolean | undefined;
76
+ readonly maxLength?: number | undefined;
77
+ readonly asChild?: boolean | undefined;
78
+ readonly as?: (import("reka-ui").AsTag | import("vue").Component) | undefined;
79
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
80
+ $attrs: {
81
+ [x: string]: unknown;
82
+ };
83
+ $refs: {
84
+ [x: string]: unknown;
85
+ };
86
+ $slots: Readonly<{
87
+ [name: string]: import("vue").Slot<any> | undefined;
88
+ }>;
89
+ $root: import("vue").ComponentPublicInstance | null;
90
+ $parent: import("vue").ComponentPublicInstance | null;
91
+ $host: Element | null;
92
+ $emit: (event: string, ...args: any[]) => void;
93
+ $el: any;
94
+ $options: import("vue").ComponentOptionsBase<Readonly<import("reka-ui").TagsInputInputProps> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
95
+ as: import("reka-ui").AsTag | import("vue").Component;
96
+ }, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & {
97
+ beforeCreate?: (() => void) | (() => void)[];
98
+ created?: (() => void) | (() => void)[];
99
+ beforeMount?: (() => void) | (() => void)[];
100
+ mounted?: (() => void) | (() => void)[];
101
+ beforeUpdate?: (() => void) | (() => void)[];
102
+ updated?: (() => void) | (() => void)[];
103
+ activated?: (() => void) | (() => void)[];
104
+ deactivated?: (() => void) | (() => void)[];
105
+ beforeDestroy?: (() => void) | (() => void)[];
106
+ beforeUnmount?: (() => void) | (() => void)[];
107
+ destroyed?: (() => void) | (() => void)[];
108
+ unmounted?: (() => void) | (() => void)[];
109
+ renderTracked?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
110
+ renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
111
+ errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance | null, info: string) => boolean | void)[];
112
+ };
113
+ $forceUpdate: () => void;
114
+ $nextTick: typeof import("vue").nextTick;
115
+ $watch<T_1 extends string | ((...args: any) => any)>(source: T_1, cb: T_1 extends (...args: any) => infer R ? (...args: [R, R, import("@vue/reactivity").OnCleanup]) => any : (...args: [any, any, import("@vue/reactivity").OnCleanup]) => any, options?: import("vue").WatchOptions): import("vue").WatchStopHandle;
116
+ } & Readonly<{
117
+ as: import("reka-ui").AsTag | import("vue").Component;
118
+ }> & Omit<Readonly<import("reka-ui").TagsInputInputProps> & Readonly<{}>, "as"> & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties & {} & {
119
+ $slots: {
120
+ default?: (props: {}) => any;
121
+ };
122
+ }) | null, ({
123
+ $: import("vue").ComponentInternalInstance;
124
+ $data: {};
125
+ $props: {
126
+ readonly placeholder?: string | undefined;
127
+ readonly autoFocus?: boolean | undefined;
128
+ readonly maxLength?: number | undefined;
129
+ readonly asChild?: boolean | undefined;
130
+ readonly as?: (import("reka-ui").AsTag | import("vue").Component) | undefined;
131
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
132
+ $attrs: {
133
+ [x: string]: unknown;
134
+ };
135
+ $refs: {
136
+ [x: string]: unknown;
137
+ };
138
+ $slots: Readonly<{
139
+ [name: string]: import("vue").Slot<any> | undefined;
140
+ }>;
141
+ $root: import("vue").ComponentPublicInstance | null;
142
+ $parent: import("vue").ComponentPublicInstance | null;
143
+ $host: Element | null;
144
+ $emit: (event: string, ...args: any[]) => void;
145
+ $el: any;
146
+ $options: import("vue").ComponentOptionsBase<Readonly<import("reka-ui").TagsInputInputProps> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
147
+ as: import("reka-ui").AsTag | import("vue").Component;
148
+ }, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & {
149
+ beforeCreate?: (() => void) | (() => void)[];
150
+ created?: (() => void) | (() => void)[];
151
+ beforeMount?: (() => void) | (() => void)[];
152
+ mounted?: (() => void) | (() => void)[];
153
+ beforeUpdate?: (() => void) | (() => void)[];
154
+ updated?: (() => void) | (() => void)[];
155
+ activated?: (() => void) | (() => void)[];
156
+ deactivated?: (() => void) | (() => void)[];
157
+ beforeDestroy?: (() => void) | (() => void)[];
158
+ beforeUnmount?: (() => void) | (() => void)[];
159
+ destroyed?: (() => void) | (() => void)[];
160
+ unmounted?: (() => void) | (() => void)[];
161
+ renderTracked?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
162
+ renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
163
+ errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance | null, info: string) => boolean | void)[];
164
+ };
165
+ $forceUpdate: () => void;
166
+ $nextTick: typeof import("vue").nextTick;
167
+ $watch<T_1 extends string | ((...args: any) => any)>(source: T_1, cb: T_1 extends (...args: any) => infer R ? (...args: [R, R, import("@vue/reactivity").OnCleanup]) => any : (...args: [any, any, import("@vue/reactivity").OnCleanup]) => any, options?: import("vue").WatchOptions): import("vue").WatchStopHandle;
168
+ } & Readonly<{
169
+ as: import("reka-ui").AsTag | import("vue").Component;
170
+ }> & Omit<Readonly<import("reka-ui").TagsInputInputProps> & Readonly<{}>, "as"> & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties & {} & {
171
+ $slots: {
172
+ default?: (props: {}) => any;
173
+ };
174
+ }) | null>;
175
+ }>) => void;
176
+ attrs: any;
177
+ slots: InputTagsSlots<T>;
178
+ emit: ((evt: "blur", event: FocusEvent) => void) & ((evt: "change", event: Event) => void) & ((evt: "focus", event: FocusEvent) => void) & ((evt: "invalid", payload: T) => void) & ((evt: "update:modelValue", payload: T[]) => void) & ((evt: "addTag", payload: T) => void) & ((evt: "removeTag", payload: T) => void);
179
+ }>) => import("vue").VNode & {
180
+ __ctx?: Awaited<typeof __VLS_setup>;
181
+ };
182
+ declare const _default: typeof __VLS_export;
183
+ export default _default;
184
+ type __VLS_PrettifyLocal<T> = {
185
+ [K in keyof T as K]: T[K];
186
+ } & {};
@@ -112,8 +112,6 @@ defineExpose({
112
112
  :name="name"
113
113
  :disabled="disabled"
114
114
  @update:model-value="onUpdate"
115
- @blur="onBlur"
116
- @focus="onFocus"
117
115
  >
118
116
  <TagsInputItem
119
117
  v-for="(item, index) in tags"
@@ -141,6 +139,8 @@ defineExpose({
141
139
  :placeholder="placeholder"
142
140
  :max-length="maxLength"
143
141
  :class="ui.input({ class: props.ui?.input })"
142
+ @blur="onBlur"
143
+ @focus="onFocus"
144
144
  />
145
145
 
146
146
  <slot />
@@ -56,17 +56,17 @@ export interface InputTagsSlots<T extends InputTagItem = InputTagItem> {
56
56
  'item-text': SlotProps<T>;
57
57
  'item-delete': SlotProps<T>;
58
58
  }
59
- declare const _default: <T extends InputTagItem>(__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<{
60
- props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
61
- readonly onBlur?: ((event: FocusEvent) => any) | undefined;
62
- readonly onChange?: ((event: Event) => any) | undefined;
63
- readonly onFocus?: ((event: FocusEvent) => any) | undefined;
64
- readonly onInvalid?: ((payload: T) => any) | undefined;
65
- readonly "onUpdate:modelValue"?: ((payload: T[]) => any) | undefined;
66
- readonly onAddTag?: ((payload: T) => any) | undefined;
67
- readonly onRemoveTag?: ((payload: T) => any) | undefined;
68
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onFocus" | "onBlur" | "onChange" | "onInvalid" | "onUpdate:modelValue" | "onRemoveTag" | "onAddTag"> & InputTagsProps<T> & {}> & import("vue").PublicProps;
69
- expose(exposed: import("vue").ShallowUnwrapRef<{
59
+ declare const __VLS_export: <T extends InputTagItem>(__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<{
60
+ props: __VLS_PrettifyLocal<InputTagsProps<T> & {
61
+ onBlur?: ((event: FocusEvent) => any) | undefined;
62
+ onChange?: ((event: Event) => any) | undefined;
63
+ onFocus?: ((event: FocusEvent) => any) | undefined;
64
+ onInvalid?: ((payload: T) => any) | undefined;
65
+ "onUpdate:modelValue"?: ((payload: T[]) => any) | undefined;
66
+ onAddTag?: ((payload: T) => any) | undefined;
67
+ onRemoveTag?: ((payload: T) => any) | undefined;
68
+ }> & import("vue").PublicProps;
69
+ expose: (exposed: import("vue").ShallowUnwrapRef<{
70
70
  inputRef: import("vue").Ref<({
71
71
  $: import("vue").ComponentInternalInstance;
72
72
  $data: {};
@@ -172,13 +172,14 @@ declare const _default: <T extends InputTagItem>(__VLS_props: NonNullable<Awaite
172
172
  default?: (props: {}) => any;
173
173
  };
174
174
  }) | null>;
175
- }>): void;
175
+ }>) => void;
176
176
  attrs: any;
177
177
  slots: InputTagsSlots<T>;
178
178
  emit: ((evt: "blur", event: FocusEvent) => void) & ((evt: "change", event: Event) => void) & ((evt: "focus", event: FocusEvent) => void) & ((evt: "invalid", payload: T) => void) & ((evt: "update:modelValue", payload: T[]) => void) & ((evt: "addTag", payload: T) => void) & ((evt: "removeTag", payload: T) => void);
179
179
  }>) => import("vue").VNode & {
180
180
  __ctx?: Awaited<typeof __VLS_setup>;
181
181
  };
182
+ declare const _default: typeof __VLS_export;
182
183
  export default _default;
183
184
  type __VLS_PrettifyLocal<T> = {
184
185
  [K in keyof T as K]: T[K];
@@ -0,0 +1,39 @@
1
+ import type { AppConfig } from '@nuxt/schema';
2
+ import theme from '#build/ui/kbd';
3
+ import type { KbdKey } from '../composables/useKbd';
4
+ import type { ComponentConfig } from '../types/utils';
5
+ type Kbd = ComponentConfig<typeof theme, AppConfig, 'kbd'>;
6
+ export interface KbdProps {
7
+ /**
8
+ * The element or component this component should render as.
9
+ * @defaultValue 'kbd'
10
+ */
11
+ as?: any;
12
+ value?: KbdKey | string;
13
+ /**
14
+ * @defaultValue 'neutral'
15
+ */
16
+ color?: Kbd['variants']['color'];
17
+ /**
18
+ * @defaultValue 'outline'
19
+ */
20
+ variant?: Kbd['variants']['variant'];
21
+ /**
22
+ * @defaultValue 'md'
23
+ */
24
+ size?: Kbd['variants']['size'];
25
+ class?: any;
26
+ }
27
+ export interface KbdSlots {
28
+ default(props?: {}): any;
29
+ }
30
+ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<KbdProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<KbdProps> & Readonly<{}>, {
31
+ as: any;
32
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, KbdSlots>;
33
+ declare const _default: typeof __VLS_export;
34
+ export default _default;
35
+ type __VLS_WithSlots<T, S> = T & {
36
+ new (): {
37
+ $slots: S;
38
+ };
39
+ };
@@ -27,9 +27,10 @@ export interface KbdProps {
27
27
  export interface KbdSlots {
28
28
  default(props?: {}): any;
29
29
  }
30
- declare const _default: __VLS_WithSlots<import("vue").DefineComponent<KbdProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<KbdProps> & Readonly<{}>, {
30
+ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<KbdProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<KbdProps> & Readonly<{}>, {
31
31
  as: any;
32
32
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, KbdSlots>;
33
+ declare const _default: typeof __VLS_export;
33
34
  export default _default;
34
35
  type __VLS_WithSlots<T, S> = T & {
35
36
  new (): {
@@ -0,0 +1,92 @@
1
+ import type { ButtonHTMLAttributes } from 'vue';
2
+ import type { RouterLinkProps, RouteLocationRaw } from 'vue-router';
3
+ interface NuxtLinkProps extends Omit<RouterLinkProps, 'to'> {
4
+ /**
5
+ * Route Location the link should navigate to when clicked on.
6
+ */
7
+ to?: RouteLocationRaw;
8
+ /**
9
+ * An alias for `to`. If used with `to`, `href` will be ignored
10
+ */
11
+ href?: NuxtLinkProps['to'];
12
+ /**
13
+ * Forces the link to be considered as external (true) or internal (false). This is helpful to handle edge-cases
14
+ */
15
+ external?: boolean;
16
+ /**
17
+ * Where to display the linked URL, as the name for a browsing context.
18
+ */
19
+ target?: '_blank' | '_parent' | '_self' | '_top' | (string & {}) | null;
20
+ /**
21
+ * A rel attribute value to apply on the link. Defaults to "noopener noreferrer" for external links.
22
+ */
23
+ rel?: 'noopener' | 'noreferrer' | 'nofollow' | 'sponsored' | 'ugc' | (string & {}) | null;
24
+ /**
25
+ * If set to true, no rel attribute will be added to the link
26
+ */
27
+ noRel?: boolean;
28
+ /**
29
+ * A class to apply to links that have been prefetched.
30
+ */
31
+ prefetchedClass?: string;
32
+ /**
33
+ * When enabled will prefetch middleware, layouts and payloads of links in the viewport.
34
+ */
35
+ prefetch?: boolean;
36
+ /**
37
+ * Allows controlling when to prefetch links. By default, prefetch is triggered only on visibility.
38
+ */
39
+ prefetchOn?: 'visibility' | 'interaction' | Partial<{
40
+ visibility: boolean;
41
+ interaction: boolean;
42
+ }>;
43
+ /**
44
+ * Escape hatch to disable `prefetch` attribute.
45
+ */
46
+ noPrefetch?: boolean;
47
+ }
48
+ export interface LinkProps extends NuxtLinkProps {
49
+ /**
50
+ * The element or component this component should render as when not a link.
51
+ * @defaultValue 'button'
52
+ */
53
+ as?: any;
54
+ /**
55
+ * The type of the button when not a link.
56
+ * @defaultValue 'button'
57
+ */
58
+ type?: ButtonHTMLAttributes['type'];
59
+ disabled?: boolean;
60
+ /** Force the link to be active independent of the current route. */
61
+ active?: boolean;
62
+ /** Will only be active if the current route is an exact match. */
63
+ exact?: boolean;
64
+ /** Allows controlling how the current route query sets the link as active. */
65
+ exactQuery?: boolean | 'partial';
66
+ /** Will only be active if the current route hash is an exact match. */
67
+ exactHash?: boolean;
68
+ /** The class to apply when the link is inactive. */
69
+ inactiveClass?: string;
70
+ custom?: boolean;
71
+ /** When `true`, only styles from `class`, `activeClass`, and `inactiveClass` will be applied. */
72
+ raw?: boolean;
73
+ class?: any;
74
+ }
75
+ export interface LinkSlots {
76
+ default(props: {
77
+ active: boolean;
78
+ }): any;
79
+ }
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
+ type: "reset" | "submit" | "button";
82
+ as: any;
83
+ ariaCurrentValue: "page" | "step" | "location" | "date" | "time" | "true" | "false";
84
+ active: boolean;
85
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, LinkSlots>;
86
+ declare const _default: typeof __VLS_export;
87
+ export default _default;
88
+ type __VLS_WithSlots<T, S> = T & {
89
+ new (): {
90
+ $slots: S;
91
+ };
92
+ };
@@ -77,12 +77,13 @@ 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
  ariaCurrentValue: "page" | "step" | "location" | "date" | "time" | "true" | "false";
84
84
  active: boolean;
85
85
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, LinkSlots>;
86
+ declare const _default: typeof __VLS_export;
86
87
  export default _default;
87
88
  type __VLS_WithSlots<T, S> = T & {
88
89
  new (): {
@@ -0,0 +1,26 @@
1
+ import type { LinkProps } from '../types';
2
+ export interface LinkBaseProps {
3
+ as?: string;
4
+ type?: string;
5
+ disabled?: boolean;
6
+ onClick?: ((e: MouseEvent) => void | Promise<void>) | Array<((e: MouseEvent) => void | Promise<void>)>;
7
+ href?: string;
8
+ navigate?: (e: MouseEvent) => void;
9
+ target?: LinkProps['target'];
10
+ rel?: LinkProps['rel'];
11
+ active?: boolean;
12
+ isExternal?: boolean;
13
+ }
14
+ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<LinkBaseProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<LinkBaseProps> & Readonly<{}>, {
15
+ type: string;
16
+ as: string;
17
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
18
+ default?: (props: {}) => any;
19
+ }>;
20
+ declare const _default: typeof __VLS_export;
21
+ export default _default;
22
+ type __VLS_WithSlots<T, S> = T & {
23
+ new (): {
24
+ $slots: S;
25
+ };
26
+ };
@@ -11,12 +11,13 @@ export interface LinkBaseProps {
11
11
  active?: boolean;
12
12
  isExternal?: boolean;
13
13
  }
14
- declare const _default: __VLS_WithSlots<import("vue").DefineComponent<LinkBaseProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<LinkBaseProps> & Readonly<{}>, {
14
+ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<LinkBaseProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<LinkBaseProps> & Readonly<{}>, {
15
15
  type: string;
16
16
  as: string;
17
17
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
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 (): {
@@ -0,0 +1,107 @@
1
+ import type { DialogRootProps, DialogRootEmits, DialogContentProps, DialogContentEmits } from 'reka-ui';
2
+ import type { AppConfig } from '@nuxt/schema';
3
+ import theme from '#build/ui/modal';
4
+ import type { ButtonProps } from '../types';
5
+ import type { EmitsToProps, ComponentConfig } from '../types/utils';
6
+ type Modal = ComponentConfig<typeof theme, AppConfig, 'modal'>;
7
+ export interface ModalProps extends DialogRootProps {
8
+ title?: string;
9
+ description?: string;
10
+ /** The content of the modal. */
11
+ content?: Omit<DialogContentProps, 'as' | 'asChild' | 'forceMount'> & Partial<EmitsToProps<DialogContentEmits>>;
12
+ /**
13
+ * Render an overlay behind the modal.
14
+ * @defaultValue true
15
+ */
16
+ overlay?: boolean;
17
+ /**
18
+ * Animate the modal when opening or closing.
19
+ * @defaultValue true
20
+ */
21
+ transition?: boolean;
22
+ /**
23
+ * When `true`, the modal will take up the full screen.
24
+ * @defaultValue false
25
+ */
26
+ fullscreen?: boolean;
27
+ /**
28
+ * Render the modal in a portal.
29
+ * @defaultValue true
30
+ */
31
+ portal?: boolean | string | HTMLElement;
32
+ /**
33
+ * Display a close button to dismiss the modal.
34
+ * `{ size: 'md', color: 'neutral', variant: 'ghost' }`{lang="ts-type"}
35
+ * @defaultValue true
36
+ */
37
+ close?: boolean | Partial<ButtonProps>;
38
+ /**
39
+ * The icon displayed in the close button.
40
+ * @defaultValue appConfig.ui.icons.close
41
+ * @IconifyIcon
42
+ */
43
+ closeIcon?: string;
44
+ /**
45
+ * When `false`, the modal will not close when clicking outside or pressing escape.
46
+ * @defaultValue true
47
+ */
48
+ dismissible?: boolean;
49
+ class?: any;
50
+ ui?: Modal['slots'];
51
+ }
52
+ export interface ModalEmits extends DialogRootEmits {
53
+ 'after:leave': [];
54
+ 'after:enter': [];
55
+ 'close:prevent': [];
56
+ }
57
+ export interface ModalSlots {
58
+ default(props: {
59
+ open: boolean;
60
+ }): any;
61
+ content(props: {
62
+ close: () => void;
63
+ }): any;
64
+ header(props: {
65
+ close: () => void;
66
+ }): any;
67
+ title(props?: {}): any;
68
+ description(props?: {}): any;
69
+ actions(props?: {}): any;
70
+ close(props: {
71
+ close: () => void;
72
+ ui: {
73
+ [K in keyof Required<Modal['slots']>]: (props?: Record<string, any>) => string;
74
+ };
75
+ }): any;
76
+ body(props: {
77
+ close: () => void;
78
+ }): any;
79
+ footer(props: {
80
+ close: () => void;
81
+ }): any;
82
+ }
83
+ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<ModalProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
84
+ "update:open": (value: boolean) => any;
85
+ "after:leave": () => any;
86
+ "close:prevent": () => any;
87
+ "after:enter": () => any;
88
+ }, string, import("vue").PublicProps, Readonly<ModalProps> & Readonly<{
89
+ "onUpdate:open"?: ((value: boolean) => any) | undefined;
90
+ "onAfter:leave"?: (() => any) | undefined;
91
+ "onClose:prevent"?: (() => any) | undefined;
92
+ "onAfter:enter"?: (() => any) | undefined;
93
+ }>, {
94
+ close: boolean | Partial<ButtonProps>;
95
+ modal: boolean;
96
+ transition: boolean;
97
+ portal: boolean | string | HTMLElement;
98
+ overlay: boolean;
99
+ dismissible: boolean;
100
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, ModalSlots>;
101
+ declare const _default: typeof __VLS_export;
102
+ export default _default;
103
+ type __VLS_WithSlots<T, S> = T & {
104
+ new (): {
105
+ $slots: S;
106
+ };
107
+ };
@@ -80,16 +80,16 @@ export interface ModalSlots {
80
80
  close: () => void;
81
81
  }): any;
82
82
  }
83
- declare const _default: __VLS_WithSlots<import("vue").DefineComponent<ModalProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
83
+ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<ModalProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
84
84
  "update:open": (value: boolean) => any;
85
85
  "after:leave": () => any;
86
- "after:enter": () => any;
87
86
  "close:prevent": () => any;
87
+ "after:enter": () => any;
88
88
  }, string, import("vue").PublicProps, Readonly<ModalProps> & Readonly<{
89
89
  "onUpdate:open"?: ((value: boolean) => any) | undefined;
90
90
  "onAfter:leave"?: (() => any) | undefined;
91
- "onAfter:enter"?: (() => any) | undefined;
92
91
  "onClose:prevent"?: (() => any) | undefined;
92
+ "onAfter:enter"?: (() => any) | undefined;
93
93
  }>, {
94
94
  close: boolean | Partial<ButtonProps>;
95
95
  modal: boolean;
@@ -98,6 +98,7 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<ModalProps
98
98
  overlay: boolean;
99
99
  dismissible: boolean;
100
100
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, ModalSlots>;
101
+ declare const _default: typeof __VLS_export;
101
102
  export default _default;
102
103
  type __VLS_WithSlots<T, S> = T & {
103
104
  new (): {