@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.
- package/.nuxt/ui/drawer.ts +23 -0
- package/.nuxt/ui/progress.ts +3 -3
- package/README.md +10 -10
- package/dist/module.d.mts +6 -6
- package/dist/module.json +2 -2
- package/dist/module.mjs +3 -3
- package/dist/runtime/components/Accordion.d.vue.ts +78 -0
- package/dist/runtime/components/Accordion.vue.d.ts +6 -5
- package/dist/runtime/components/Alert.d.vue.ts +82 -0
- package/dist/runtime/components/Alert.vue.d.ts +2 -1
- package/dist/runtime/components/App.d.vue.ts +25 -0
- package/dist/runtime/components/App.vue +1 -1
- package/dist/runtime/components/App.vue.d.ts +5 -4
- package/dist/runtime/components/Avatar.d.vue.ts +42 -0
- package/dist/runtime/components/Avatar.vue.d.ts +2 -1
- package/dist/runtime/components/AvatarGroup.d.vue.ts +32 -0
- package/dist/runtime/components/AvatarGroup.vue.d.ts +2 -1
- package/dist/runtime/components/Badge.d.vue.ts +44 -0
- package/dist/runtime/components/Badge.vue.d.ts +2 -1
- package/dist/runtime/components/Breadcrumb.d.vue.ts +67 -0
- package/dist/runtime/components/Breadcrumb.vue.d.ts +4 -3
- package/dist/runtime/components/Button.d.vue.ts +45 -0
- package/dist/runtime/components/Button.vue.d.ts +2 -1
- package/dist/runtime/components/ButtonGroup.d.vue.ts +35 -0
- package/dist/runtime/components/ButtonGroup.vue.d.ts +2 -1
- package/dist/runtime/components/Calendar.d.vue.ts +113 -0
- package/dist/runtime/components/Calendar.vue.d.ts +9 -8
- package/dist/runtime/components/Card.d.vue.ts +30 -0
- package/dist/runtime/components/Card.vue.d.ts +2 -1
- package/dist/runtime/components/Carousel.d.vue.ts +128 -0
- package/dist/runtime/components/Carousel.vue +32 -12
- package/dist/runtime/components/Carousel.vue.d.ts +7 -6
- package/dist/runtime/components/Checkbox.d.vue.ts +74 -0
- package/dist/runtime/components/Checkbox.vue.d.ts +2 -1
- package/dist/runtime/components/CheckboxGroup.d.vue.ts +85 -0
- package/dist/runtime/components/CheckboxGroup.vue.d.ts +7 -6
- package/dist/runtime/components/Chip.d.vue.ts +58 -0
- package/dist/runtime/components/Chip.vue.d.ts +2 -1
- package/dist/runtime/components/Collapsible.d.vue.ts +36 -0
- package/dist/runtime/components/Collapsible.vue.d.ts +2 -1
- package/dist/runtime/components/ColorPicker.d.vue.ts +49 -0
- package/dist/runtime/components/ColorPicker.vue.d.ts +2 -1
- package/dist/runtime/components/CommandPalette.d.vue.ts +193 -0
- package/dist/runtime/components/CommandPalette.vue.d.ts +13 -12
- package/dist/runtime/components/Container.d.vue.ts +19 -0
- package/dist/runtime/components/Container.vue.d.ts +2 -1
- package/dist/runtime/components/ContextMenu.d.vue.ts +110 -0
- package/dist/runtime/components/ContextMenu.vue.d.ts +6 -5
- package/dist/runtime/components/ContextMenuContent.d.vue.ts +50 -0
- package/dist/runtime/components/ContextMenuContent.vue.d.ts +10 -9
- package/dist/runtime/components/Drawer.d.vue.ts +87 -0
- package/dist/runtime/components/Drawer.vue +19 -5
- package/dist/runtime/components/Drawer.vue.d.ts +5 -1
- package/dist/runtime/components/DropdownMenu.d.vue.ts +120 -0
- package/dist/runtime/components/DropdownMenu.vue.d.ts +6 -5
- package/dist/runtime/components/DropdownMenuContent.d.vue.ts +56 -0
- package/dist/runtime/components/DropdownMenuContent.vue.d.ts +10 -9
- package/dist/runtime/components/FileUpload.d.vue.ts +167 -0
- package/dist/runtime/components/FileUpload.vue.d.ts +9 -8
- package/dist/runtime/components/Form.d.vue.ts +72 -0
- package/dist/runtime/components/Form.vue.d.ts +7 -6
- package/dist/runtime/components/FormField.d.vue.ts +62 -0
- package/dist/runtime/components/FormField.vue.d.ts +2 -1
- package/dist/runtime/components/Icon.d.vue.ts +9 -0
- package/dist/runtime/components/Icon.vue.d.ts +2 -1
- package/dist/runtime/components/Input.d.vue.ts +78 -0
- package/dist/runtime/components/Input.vue.d.ts +9 -8
- package/dist/runtime/components/InputMenu.d.vue.ts +330 -0
- package/dist/runtime/components/InputMenu.vue +1 -1
- package/dist/runtime/components/InputMenu.vue.d.ts +19 -24
- package/dist/runtime/components/InputNumber.d.vue.ts +187 -0
- package/dist/runtime/components/InputNumber.vue.d.ts +2 -1
- package/dist/runtime/components/InputTags.d.vue.ts +186 -0
- package/dist/runtime/components/InputTags.vue +2 -2
- package/dist/runtime/components/InputTags.vue.d.ts +13 -12
- package/dist/runtime/components/Kbd.d.vue.ts +39 -0
- package/dist/runtime/components/Kbd.vue.d.ts +2 -1
- package/dist/runtime/components/Link.d.vue.ts +92 -0
- package/dist/runtime/components/Link.vue.d.ts +2 -1
- package/dist/runtime/components/LinkBase.d.vue.ts +26 -0
- package/dist/runtime/components/LinkBase.vue.d.ts +2 -1
- package/dist/runtime/components/Modal.d.vue.ts +107 -0
- package/dist/runtime/components/Modal.vue.d.ts +4 -3
- package/dist/runtime/components/NavigationMenu.d.vue.ts +171 -0
- package/dist/runtime/components/NavigationMenu.vue.d.ts +6 -5
- package/dist/runtime/components/OverlayProvider.d.vue.ts +3 -0
- package/dist/runtime/components/OverlayProvider.vue.d.ts +2 -1
- package/dist/runtime/components/Pagination.d.vue.ts +119 -0
- package/dist/runtime/components/Pagination.vue +4 -4
- package/dist/runtime/components/Pagination.vue.d.ts +2 -1
- package/dist/runtime/components/PinInput.d.vue.ts +61 -0
- package/dist/runtime/components/PinInput.vue.d.ts +10 -9
- package/dist/runtime/components/Popover.d.vue.ts +71 -0
- package/dist/runtime/components/Popover.vue.d.ts +2 -1
- package/dist/runtime/components/Progress.d.vue.ts +67 -0
- package/dist/runtime/components/Progress.vue +2 -3
- package/dist/runtime/components/Progress.vue.d.ts +2 -1
- package/dist/runtime/components/RadioGroup.d.vue.ts +95 -0
- package/dist/runtime/components/RadioGroup.vue.d.ts +7 -6
- package/dist/runtime/components/Select.d.vue.ts +254 -0
- package/dist/runtime/components/Select.vue.d.ts +11 -10
- package/dist/runtime/components/SelectMenu.d.vue.ts +303 -0
- package/dist/runtime/components/SelectMenu.vue.d.ts +16 -15
- package/dist/runtime/components/Separator.d.vue.ts +55 -0
- package/dist/runtime/components/Separator.vue.d.ts +2 -1
- package/dist/runtime/components/Skeleton.d.vue.ts +18 -0
- package/dist/runtime/components/Skeleton.vue.d.ts +2 -1
- package/dist/runtime/components/Slideover.d.vue.ts +108 -0
- package/dist/runtime/components/Slideover.vue.d.ts +4 -3
- package/dist/runtime/components/Slider.d.vue.ts +58 -0
- package/dist/runtime/components/Slider.vue.d.ts +8 -7
- package/dist/runtime/components/Stepper.d.vue.ts +86 -0
- package/dist/runtime/components/Stepper.vue.d.ts +10 -9
- package/dist/runtime/components/Switch.d.vue.ts +71 -0
- package/dist/runtime/components/Switch.vue.d.ts +2 -1
- package/dist/runtime/components/Table.d.vue.ts +202 -0
- package/dist/runtime/components/Table.vue +19 -1
- package/dist/runtime/components/Table.vue.d.ts +20 -19
- package/dist/runtime/components/Tabs.d.vue.ts +99 -0
- package/dist/runtime/components/Tabs.vue +2 -2
- package/dist/runtime/components/Tabs.vue.d.ts +7 -6
- package/dist/runtime/components/Textarea.d.vue.ts +80 -0
- package/dist/runtime/components/Textarea.vue.d.ts +9 -8
- package/dist/runtime/components/Timeline.d.vue.ts +71 -0
- package/dist/runtime/components/Timeline.vue.d.ts +7 -6
- package/dist/runtime/components/Toast.d.vue.ts +165 -0
- package/dist/runtime/components/Toast.vue.d.ts +2 -1
- package/dist/runtime/components/Toaster.d.vue.ts +45 -0
- package/dist/runtime/components/Toaster.vue.d.ts +2 -1
- package/dist/runtime/components/Tooltip.d.vue.ts +57 -0
- package/dist/runtime/components/Tooltip.vue.d.ts +2 -1
- package/dist/runtime/components/Tree.d.vue.ts +115 -0
- package/dist/runtime/components/Tree.vue.d.ts +7 -6
- package/dist/runtime/composables/useKbd.js +1 -1
- package/dist/runtime/composables/usePortal.d.ts +3 -3
- package/dist/runtime/composables/usePortal.js +5 -10
- package/dist/runtime/inertia/components/Link.d.vue.ts +64 -0
- package/dist/runtime/inertia/components/Link.vue.d.ts +2 -1
- package/dist/runtime/inertia/components/LinkBase.d.vue.ts +26 -0
- package/dist/runtime/inertia/components/LinkBase.vue.d.ts +2 -1
- package/dist/runtime/types/tv.d.ts +9 -2
- package/dist/runtime/vue/components/Icon.d.vue.ts +6 -0
- package/dist/runtime/vue/components/Icon.vue.d.ts +2 -1
- package/dist/runtime/vue/components/Link.d.vue.ts +94 -0
- package/dist/runtime/vue/components/Link.vue.d.ts +2 -1
- package/dist/shared/{ui.BTUFJHYJ.mjs → ui.DBpKc5X3.mjs} +100 -68
- package/dist/unplugin.mjs +1 -1
- package/dist/vite.mjs +1 -1
- package/package.json +18 -18
|
@@ -0,0 +1,303 @@
|
|
|
1
|
+
import type { ComboboxRootProps, ComboboxRootEmits, ComboboxContentProps, ComboboxContentEmits, ComboboxArrowProps } from 'reka-ui';
|
|
2
|
+
import type { AppConfig } from '@nuxt/schema';
|
|
3
|
+
import theme from '#build/ui/select-menu';
|
|
4
|
+
import type { UseComponentIconsProps } from '../composables/useComponentIcons';
|
|
5
|
+
import type { AvatarProps, ChipProps, InputProps } from '../types';
|
|
6
|
+
import type { AcceptableValue, ArrayOrNested, GetItemKeys, GetModelValue, GetModelValueEmits, NestedItem, EmitsToProps, ComponentConfig } from '../types/utils';
|
|
7
|
+
type SelectMenu = ComponentConfig<typeof theme, AppConfig, 'selectMenu'>;
|
|
8
|
+
interface _SelectMenuItem {
|
|
9
|
+
label?: string;
|
|
10
|
+
/**
|
|
11
|
+
* @IconifyIcon
|
|
12
|
+
*/
|
|
13
|
+
icon?: string;
|
|
14
|
+
avatar?: AvatarProps;
|
|
15
|
+
chip?: ChipProps;
|
|
16
|
+
/**
|
|
17
|
+
* The item type.
|
|
18
|
+
* @defaultValue 'item'
|
|
19
|
+
*/
|
|
20
|
+
type?: 'label' | 'separator' | 'item';
|
|
21
|
+
disabled?: boolean;
|
|
22
|
+
onSelect?(e?: Event): void;
|
|
23
|
+
class?: any;
|
|
24
|
+
ui?: Pick<SelectMenu['slots'], 'label' | 'separator' | 'item' | 'itemLeadingIcon' | 'itemLeadingAvatarSize' | 'itemLeadingAvatar' | 'itemLeadingChipSize' | 'itemLeadingChip' | 'itemLabel' | 'itemTrailing' | 'itemTrailingIcon'>;
|
|
25
|
+
[key: string]: any;
|
|
26
|
+
}
|
|
27
|
+
export type SelectMenuItem = _SelectMenuItem | AcceptableValue | boolean;
|
|
28
|
+
export interface SelectMenuProps<T extends ArrayOrNested<SelectMenuItem> = ArrayOrNested<SelectMenuItem>, VK extends GetItemKeys<T> | undefined = undefined, M extends boolean = false> extends Pick<ComboboxRootProps<T>, 'open' | 'defaultOpen' | 'disabled' | 'name' | 'resetSearchTermOnBlur' | 'resetSearchTermOnSelect' | 'highlightOnHover'>, UseComponentIconsProps {
|
|
29
|
+
id?: string;
|
|
30
|
+
/** The placeholder text when the select is empty. */
|
|
31
|
+
placeholder?: string;
|
|
32
|
+
/**
|
|
33
|
+
* Whether to display the search input or not.
|
|
34
|
+
* Can be an object to pass additional props to the input.
|
|
35
|
+
* `{ placeholder: 'Search...', variant: 'none' }`{lang="ts-type"}
|
|
36
|
+
* @defaultValue true
|
|
37
|
+
*/
|
|
38
|
+
searchInput?: boolean | InputProps;
|
|
39
|
+
/**
|
|
40
|
+
* @defaultValue 'primary'
|
|
41
|
+
*/
|
|
42
|
+
color?: SelectMenu['variants']['color'];
|
|
43
|
+
/**
|
|
44
|
+
* @defaultValue 'outline'
|
|
45
|
+
*/
|
|
46
|
+
variant?: SelectMenu['variants']['variant'];
|
|
47
|
+
/**
|
|
48
|
+
* @defaultValue 'md'
|
|
49
|
+
*/
|
|
50
|
+
size?: SelectMenu['variants']['size'];
|
|
51
|
+
required?: boolean;
|
|
52
|
+
/**
|
|
53
|
+
* The icon displayed to open the menu.
|
|
54
|
+
* @defaultValue appConfig.ui.icons.chevronDown
|
|
55
|
+
* @IconifyIcon
|
|
56
|
+
*/
|
|
57
|
+
trailingIcon?: string;
|
|
58
|
+
/**
|
|
59
|
+
* The icon displayed when an item is selected.
|
|
60
|
+
* @defaultValue appConfig.ui.icons.check
|
|
61
|
+
* @IconifyIcon
|
|
62
|
+
*/
|
|
63
|
+
selectedIcon?: string;
|
|
64
|
+
/**
|
|
65
|
+
* The content of the menu.
|
|
66
|
+
* @defaultValue { side: 'bottom', sideOffset: 8, collisionPadding: 8, position: 'popper' }
|
|
67
|
+
*/
|
|
68
|
+
content?: Omit<ComboboxContentProps, 'as' | 'asChild' | 'forceMount'> & Partial<EmitsToProps<ComboboxContentEmits>>;
|
|
69
|
+
/**
|
|
70
|
+
* Display an arrow alongside the menu.
|
|
71
|
+
* @defaultValue false
|
|
72
|
+
* @IconifyIcon
|
|
73
|
+
*/
|
|
74
|
+
arrow?: boolean | Omit<ComboboxArrowProps, 'as' | 'asChild'>;
|
|
75
|
+
/**
|
|
76
|
+
* Render the menu in a portal.
|
|
77
|
+
* @defaultValue true
|
|
78
|
+
*/
|
|
79
|
+
portal?: boolean | string | HTMLElement;
|
|
80
|
+
/**
|
|
81
|
+
* When `items` is an array of objects, select the field to use as the value instead of the object itself.
|
|
82
|
+
* @defaultValue undefined
|
|
83
|
+
*/
|
|
84
|
+
valueKey?: VK;
|
|
85
|
+
/**
|
|
86
|
+
* When `items` is an array of objects, select the field to use as the label.
|
|
87
|
+
* @defaultValue 'label'
|
|
88
|
+
*/
|
|
89
|
+
labelKey?: keyof NestedItem<T>;
|
|
90
|
+
items?: T;
|
|
91
|
+
/** The value of the SelectMenu when initially rendered. Use when you do not need to control the state of the SelectMenu. */
|
|
92
|
+
defaultValue?: GetModelValue<T, VK, M>;
|
|
93
|
+
/** The controlled value of the SelectMenu. Can be binded-with with `v-model`. */
|
|
94
|
+
modelValue?: GetModelValue<T, VK, M>;
|
|
95
|
+
/** Whether multiple options can be selected or not. */
|
|
96
|
+
multiple?: M & boolean;
|
|
97
|
+
/** Highlight the ring color like a focus state. */
|
|
98
|
+
highlight?: boolean;
|
|
99
|
+
/**
|
|
100
|
+
* Determines if custom user input that does not exist in options can be added.
|
|
101
|
+
* @defaultValue false
|
|
102
|
+
*/
|
|
103
|
+
createItem?: boolean | 'always' | {
|
|
104
|
+
position?: 'top' | 'bottom';
|
|
105
|
+
when?: 'empty' | 'always';
|
|
106
|
+
};
|
|
107
|
+
/**
|
|
108
|
+
* Fields to filter items by.
|
|
109
|
+
* @defaultValue [labelKey]
|
|
110
|
+
*/
|
|
111
|
+
filterFields?: string[];
|
|
112
|
+
/**
|
|
113
|
+
* When `true`, disable the default filters, useful for custom filtering (useAsyncData, useFetch, etc.).
|
|
114
|
+
* @defaultValue false
|
|
115
|
+
*/
|
|
116
|
+
ignoreFilter?: boolean;
|
|
117
|
+
autofocus?: boolean;
|
|
118
|
+
autofocusDelay?: number;
|
|
119
|
+
class?: any;
|
|
120
|
+
ui?: SelectMenu['slots'];
|
|
121
|
+
}
|
|
122
|
+
export type SelectMenuEmits<A extends ArrayOrNested<SelectMenuItem>, VK extends GetItemKeys<A> | undefined, M extends boolean> = Pick<ComboboxRootEmits, 'update:open'> & {
|
|
123
|
+
change: [event: Event];
|
|
124
|
+
blur: [event: FocusEvent];
|
|
125
|
+
focus: [event: FocusEvent];
|
|
126
|
+
create: [item: string];
|
|
127
|
+
/** Event handler when highlighted element changes. */
|
|
128
|
+
highlight: [
|
|
129
|
+
payload: {
|
|
130
|
+
ref: HTMLElement;
|
|
131
|
+
value: GetModelValue<A, VK, M>;
|
|
132
|
+
} | undefined
|
|
133
|
+
];
|
|
134
|
+
} & GetModelValueEmits<A, VK, M>;
|
|
135
|
+
type SlotProps<T extends SelectMenuItem> = (props: {
|
|
136
|
+
item: T;
|
|
137
|
+
index: number;
|
|
138
|
+
}) => any;
|
|
139
|
+
export interface SelectMenuSlots<A extends ArrayOrNested<SelectMenuItem> = ArrayOrNested<SelectMenuItem>, VK extends GetItemKeys<A> | undefined = undefined, M extends boolean = false, T extends NestedItem<A> = NestedItem<A>> {
|
|
140
|
+
'leading'(props: {
|
|
141
|
+
modelValue?: GetModelValue<A, VK, M>;
|
|
142
|
+
open: boolean;
|
|
143
|
+
ui: {
|
|
144
|
+
[K in keyof Required<SelectMenu['slots']>]: (props?: Record<string, any>) => string;
|
|
145
|
+
};
|
|
146
|
+
}): any;
|
|
147
|
+
'default'(props: {
|
|
148
|
+
modelValue?: GetModelValue<A, VK, M>;
|
|
149
|
+
open: boolean;
|
|
150
|
+
}): any;
|
|
151
|
+
'trailing'(props: {
|
|
152
|
+
modelValue?: GetModelValue<A, VK, M>;
|
|
153
|
+
open: boolean;
|
|
154
|
+
ui: {
|
|
155
|
+
[K in keyof Required<SelectMenu['slots']>]: (props?: Record<string, any>) => string;
|
|
156
|
+
};
|
|
157
|
+
}): any;
|
|
158
|
+
'empty'(props: {
|
|
159
|
+
searchTerm?: string;
|
|
160
|
+
}): any;
|
|
161
|
+
'item': SlotProps<T>;
|
|
162
|
+
'item-leading': SlotProps<T>;
|
|
163
|
+
'item-label': SlotProps<T>;
|
|
164
|
+
'item-trailing': SlotProps<T>;
|
|
165
|
+
'content-top': (props?: {}) => any;
|
|
166
|
+
'content-bottom': (props?: {}) => any;
|
|
167
|
+
'create-item-label'(props: {
|
|
168
|
+
item: string;
|
|
169
|
+
}): any;
|
|
170
|
+
}
|
|
171
|
+
declare const __VLS_export: <T extends ArrayOrNested<SelectMenuItem>, VK extends GetItemKeys<T> | undefined = undefined, 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<{
|
|
172
|
+
props: __VLS_PrettifyLocal<(SelectMenuProps<T, VK, M> & {
|
|
173
|
+
searchTerm?: string;
|
|
174
|
+
}) & {
|
|
175
|
+
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
176
|
+
onChange?: ((event: Event) => any) | undefined;
|
|
177
|
+
onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
178
|
+
onCreate?: ((item: string) => any) | undefined;
|
|
179
|
+
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
180
|
+
"onUpdate:modelValue"?: ((value: GetModelValue<T, VK, M>) => any) | undefined;
|
|
181
|
+
onHighlight?: ((payload: {
|
|
182
|
+
ref: HTMLElement;
|
|
183
|
+
value: GetModelValue<T, VK, M>;
|
|
184
|
+
} | undefined) => any) | undefined;
|
|
185
|
+
"onUpdate:searchTerm"?: ((value: string) => any) | undefined;
|
|
186
|
+
}> & import("vue").PublicProps;
|
|
187
|
+
expose: (exposed: import("vue").ShallowUnwrapRef<{
|
|
188
|
+
triggerRef: import("vue").Ref<({
|
|
189
|
+
$: import("vue").ComponentInternalInstance;
|
|
190
|
+
$data: {};
|
|
191
|
+
$props: {
|
|
192
|
+
readonly disabled?: boolean | undefined;
|
|
193
|
+
readonly asChild?: boolean | undefined;
|
|
194
|
+
readonly as?: (import("reka-ui").AsTag | import("vue").Component) | undefined;
|
|
195
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
|
|
196
|
+
$attrs: {
|
|
197
|
+
[x: string]: unknown;
|
|
198
|
+
};
|
|
199
|
+
$refs: {
|
|
200
|
+
[x: string]: unknown;
|
|
201
|
+
};
|
|
202
|
+
$slots: Readonly<{
|
|
203
|
+
[name: string]: import("vue").Slot<any> | undefined;
|
|
204
|
+
}>;
|
|
205
|
+
$root: import("vue").ComponentPublicInstance | null;
|
|
206
|
+
$parent: import("vue").ComponentPublicInstance | null;
|
|
207
|
+
$host: Element | null;
|
|
208
|
+
$emit: (event: string, ...args: any[]) => void;
|
|
209
|
+
$el: any;
|
|
210
|
+
$options: import("vue").ComponentOptionsBase<Readonly<import("reka-ui").ComboboxTriggerProps> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
|
|
211
|
+
as: import("reka-ui").AsTag | import("vue").Component;
|
|
212
|
+
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & {
|
|
213
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
214
|
+
created?: (() => void) | (() => void)[];
|
|
215
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
216
|
+
mounted?: (() => void) | (() => void)[];
|
|
217
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
218
|
+
updated?: (() => void) | (() => void)[];
|
|
219
|
+
activated?: (() => void) | (() => void)[];
|
|
220
|
+
deactivated?: (() => void) | (() => void)[];
|
|
221
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
222
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
223
|
+
destroyed?: (() => void) | (() => void)[];
|
|
224
|
+
unmounted?: (() => void) | (() => void)[];
|
|
225
|
+
renderTracked?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
|
226
|
+
renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
|
227
|
+
errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
228
|
+
};
|
|
229
|
+
$forceUpdate: () => void;
|
|
230
|
+
$nextTick: typeof import("vue").nextTick;
|
|
231
|
+
$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;
|
|
232
|
+
} & Readonly<{
|
|
233
|
+
as: import("reka-ui").AsTag | import("vue").Component;
|
|
234
|
+
}> & Omit<Readonly<import("reka-ui").ComboboxTriggerProps> & Readonly<{}>, "as"> & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties & {} & {
|
|
235
|
+
$slots: {
|
|
236
|
+
default?: (props: {}) => any;
|
|
237
|
+
};
|
|
238
|
+
}) | null, ({
|
|
239
|
+
$: import("vue").ComponentInternalInstance;
|
|
240
|
+
$data: {};
|
|
241
|
+
$props: {
|
|
242
|
+
readonly disabled?: boolean | undefined;
|
|
243
|
+
readonly asChild?: boolean | undefined;
|
|
244
|
+
readonly as?: (import("reka-ui").AsTag | import("vue").Component) | undefined;
|
|
245
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
|
|
246
|
+
$attrs: {
|
|
247
|
+
[x: string]: unknown;
|
|
248
|
+
};
|
|
249
|
+
$refs: {
|
|
250
|
+
[x: string]: unknown;
|
|
251
|
+
};
|
|
252
|
+
$slots: Readonly<{
|
|
253
|
+
[name: string]: import("vue").Slot<any> | undefined;
|
|
254
|
+
}>;
|
|
255
|
+
$root: import("vue").ComponentPublicInstance | null;
|
|
256
|
+
$parent: import("vue").ComponentPublicInstance | null;
|
|
257
|
+
$host: Element | null;
|
|
258
|
+
$emit: (event: string, ...args: any[]) => void;
|
|
259
|
+
$el: any;
|
|
260
|
+
$options: import("vue").ComponentOptionsBase<Readonly<import("reka-ui").ComboboxTriggerProps> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
|
|
261
|
+
as: import("reka-ui").AsTag | import("vue").Component;
|
|
262
|
+
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & {
|
|
263
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
264
|
+
created?: (() => void) | (() => void)[];
|
|
265
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
266
|
+
mounted?: (() => void) | (() => void)[];
|
|
267
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
268
|
+
updated?: (() => void) | (() => void)[];
|
|
269
|
+
activated?: (() => void) | (() => void)[];
|
|
270
|
+
deactivated?: (() => void) | (() => void)[];
|
|
271
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
272
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
273
|
+
destroyed?: (() => void) | (() => void)[];
|
|
274
|
+
unmounted?: (() => void) | (() => void)[];
|
|
275
|
+
renderTracked?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
|
276
|
+
renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
|
277
|
+
errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
278
|
+
};
|
|
279
|
+
$forceUpdate: () => void;
|
|
280
|
+
$nextTick: typeof import("vue").nextTick;
|
|
281
|
+
$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;
|
|
282
|
+
} & Readonly<{
|
|
283
|
+
as: import("reka-ui").AsTag | import("vue").Component;
|
|
284
|
+
}> & Omit<Readonly<import("reka-ui").ComboboxTriggerProps> & Readonly<{}>, "as"> & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties & {} & {
|
|
285
|
+
$slots: {
|
|
286
|
+
default?: (props: {}) => any;
|
|
287
|
+
};
|
|
288
|
+
}) | null>;
|
|
289
|
+
}>) => void;
|
|
290
|
+
attrs: any;
|
|
291
|
+
slots: SelectMenuSlots<T, VK, M, NestedItem<T>>;
|
|
292
|
+
emit: (((evt: "blur", event: FocusEvent) => void) & ((evt: "change", event: Event) => void) & ((evt: "focus", event: FocusEvent) => void) & ((evt: "create", item: string) => void) & ((evt: "update:open", value: boolean) => void) & ((evt: "update:modelValue", value: GetModelValue<T, VK, M>) => void) & ((evt: "highlight", payload: {
|
|
293
|
+
ref: HTMLElement;
|
|
294
|
+
value: GetModelValue<T, VK, M>;
|
|
295
|
+
} | undefined) => void)) & ((evt: "update:searchTerm", value: string) => void);
|
|
296
|
+
}>) => import("vue").VNode & {
|
|
297
|
+
__ctx?: Awaited<typeof __VLS_setup>;
|
|
298
|
+
};
|
|
299
|
+
declare const _default: typeof __VLS_export;
|
|
300
|
+
export default _default;
|
|
301
|
+
type __VLS_PrettifyLocal<T> = {
|
|
302
|
+
[K in keyof T as K]: T[K];
|
|
303
|
+
} & {};
|
|
@@ -168,23 +168,23 @@ export interface SelectMenuSlots<A extends ArrayOrNested<SelectMenuItem> = Array
|
|
|
168
168
|
item: string;
|
|
169
169
|
}): any;
|
|
170
170
|
}
|
|
171
|
-
declare const
|
|
172
|
-
props: __VLS_PrettifyLocal<
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
171
|
+
declare const __VLS_export: <T extends ArrayOrNested<SelectMenuItem>, VK extends GetItemKeys<T> | undefined = undefined, 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<{
|
|
172
|
+
props: __VLS_PrettifyLocal<(SelectMenuProps<T, VK, M> & {
|
|
173
|
+
searchTerm?: string;
|
|
174
|
+
}) & {
|
|
175
|
+
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
176
|
+
onChange?: ((event: Event) => any) | undefined;
|
|
177
|
+
onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
178
|
+
onCreate?: ((item: string) => any) | undefined;
|
|
179
|
+
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
180
|
+
"onUpdate:modelValue"?: ((value: GetModelValue<T, VK, M>) => any) | undefined;
|
|
181
|
+
onHighlight?: ((payload: {
|
|
180
182
|
ref: HTMLElement;
|
|
181
183
|
value: GetModelValue<T, VK, M>;
|
|
182
184
|
} | undefined) => any) | undefined;
|
|
183
|
-
|
|
184
|
-
} & import("vue").
|
|
185
|
-
|
|
186
|
-
}) & {}> & import("vue").PublicProps;
|
|
187
|
-
expose(exposed: import("vue").ShallowUnwrapRef<{
|
|
185
|
+
"onUpdate:searchTerm"?: ((value: string) => any) | undefined;
|
|
186
|
+
}> & import("vue").PublicProps;
|
|
187
|
+
expose: (exposed: import("vue").ShallowUnwrapRef<{
|
|
188
188
|
triggerRef: import("vue").Ref<({
|
|
189
189
|
$: import("vue").ComponentInternalInstance;
|
|
190
190
|
$data: {};
|
|
@@ -286,7 +286,7 @@ declare const _default: <T extends ArrayOrNested<SelectMenuItem>, VK extends Get
|
|
|
286
286
|
default?: (props: {}) => any;
|
|
287
287
|
};
|
|
288
288
|
}) | null>;
|
|
289
|
-
}>)
|
|
289
|
+
}>) => void;
|
|
290
290
|
attrs: any;
|
|
291
291
|
slots: SelectMenuSlots<T, VK, M, NestedItem<T>>;
|
|
292
292
|
emit: (((evt: "blur", event: FocusEvent) => void) & ((evt: "change", event: Event) => void) & ((evt: "focus", event: FocusEvent) => void) & ((evt: "create", item: string) => void) & ((evt: "update:open", value: boolean) => void) & ((evt: "update:modelValue", value: GetModelValue<T, VK, M>) => void) & ((evt: "highlight", payload: {
|
|
@@ -296,6 +296,7 @@ declare const _default: <T extends ArrayOrNested<SelectMenuItem>, VK extends Get
|
|
|
296
296
|
}>) => import("vue").VNode & {
|
|
297
297
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
298
298
|
};
|
|
299
|
+
declare const _default: typeof __VLS_export;
|
|
299
300
|
export default _default;
|
|
300
301
|
type __VLS_PrettifyLocal<T> = {
|
|
301
302
|
[K in keyof T as K]: T[K];
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { Separator } from 'reka-ui';
|
|
2
|
+
import type { SeparatorProps as _SeparatorProps } from 'reka-ui';
|
|
3
|
+
import type { AppConfig } from '@nuxt/schema';
|
|
4
|
+
import theme from '#build/ui/separator';
|
|
5
|
+
import type { AvatarProps } from '../types';
|
|
6
|
+
import type { ComponentConfig } from '../types/utils';
|
|
7
|
+
type Separator = ComponentConfig<typeof theme, AppConfig, 'separator'>;
|
|
8
|
+
export interface SeparatorProps extends Pick<_SeparatorProps, 'decorative'> {
|
|
9
|
+
/**
|
|
10
|
+
* The element or component this component should render as.
|
|
11
|
+
* @defaultValue 'div'
|
|
12
|
+
*/
|
|
13
|
+
as?: any;
|
|
14
|
+
/** Display a label in the middle. */
|
|
15
|
+
label?: string;
|
|
16
|
+
/**
|
|
17
|
+
* Display an icon in the middle.
|
|
18
|
+
* @IconifyIcon
|
|
19
|
+
*/
|
|
20
|
+
icon?: string;
|
|
21
|
+
/** Display an avatar in the middle. */
|
|
22
|
+
avatar?: AvatarProps;
|
|
23
|
+
/**
|
|
24
|
+
* @defaultValue 'neutral'
|
|
25
|
+
*/
|
|
26
|
+
color?: Separator['variants']['color'];
|
|
27
|
+
/**
|
|
28
|
+
* @defaultValue 'xs'
|
|
29
|
+
*/
|
|
30
|
+
size?: Separator['variants']['size'];
|
|
31
|
+
/**
|
|
32
|
+
* @defaultValue 'solid'
|
|
33
|
+
*/
|
|
34
|
+
type?: Separator['variants']['type'];
|
|
35
|
+
/**
|
|
36
|
+
* The orientation of the separator.
|
|
37
|
+
* @defaultValue 'horizontal'
|
|
38
|
+
*/
|
|
39
|
+
orientation?: _SeparatorProps['orientation'];
|
|
40
|
+
class?: any;
|
|
41
|
+
ui?: Separator['slots'];
|
|
42
|
+
}
|
|
43
|
+
export interface SeparatorSlots {
|
|
44
|
+
default(props?: {}): any;
|
|
45
|
+
}
|
|
46
|
+
declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<SeparatorProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<SeparatorProps> & Readonly<{}>, {
|
|
47
|
+
orientation: "horizontal" | "vertical";
|
|
48
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, SeparatorSlots>;
|
|
49
|
+
declare const _default: typeof __VLS_export;
|
|
50
|
+
export default _default;
|
|
51
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
52
|
+
new (): {
|
|
53
|
+
$slots: S;
|
|
54
|
+
};
|
|
55
|
+
};
|
|
@@ -43,9 +43,10 @@ export interface SeparatorProps extends Pick<_SeparatorProps, 'decorative'> {
|
|
|
43
43
|
export interface SeparatorSlots {
|
|
44
44
|
default(props?: {}): any;
|
|
45
45
|
}
|
|
46
|
-
declare const
|
|
46
|
+
declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<SeparatorProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<SeparatorProps> & Readonly<{}>, {
|
|
47
47
|
orientation: "horizontal" | "vertical";
|
|
48
48
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, SeparatorSlots>;
|
|
49
|
+
declare const _default: typeof __VLS_export;
|
|
49
50
|
export default _default;
|
|
50
51
|
type __VLS_WithSlots<T, S> = T & {
|
|
51
52
|
new (): {
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export interface SkeletonProps {
|
|
2
|
+
/**
|
|
3
|
+
* The element or component this component should render as.
|
|
4
|
+
* @defaultValue 'div'
|
|
5
|
+
*/
|
|
6
|
+
as?: any;
|
|
7
|
+
class?: any;
|
|
8
|
+
}
|
|
9
|
+
declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<SkeletonProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<SkeletonProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
10
|
+
default?: (props: {}) => any;
|
|
11
|
+
}>;
|
|
12
|
+
declare const _default: typeof __VLS_export;
|
|
13
|
+
export default _default;
|
|
14
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
15
|
+
new (): {
|
|
16
|
+
$slots: S;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
@@ -6,9 +6,10 @@ export interface SkeletonProps {
|
|
|
6
6
|
as?: any;
|
|
7
7
|
class?: any;
|
|
8
8
|
}
|
|
9
|
-
declare const
|
|
9
|
+
declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<SkeletonProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<SkeletonProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
10
10
|
default?: (props: {}) => any;
|
|
11
11
|
}>;
|
|
12
|
+
declare const _default: typeof __VLS_export;
|
|
12
13
|
export default _default;
|
|
13
14
|
type __VLS_WithSlots<T, S> = T & {
|
|
14
15
|
new (): {
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import type { DialogRootProps, DialogRootEmits, DialogContentProps, DialogContentEmits } from 'reka-ui';
|
|
2
|
+
import type { AppConfig } from '@nuxt/schema';
|
|
3
|
+
import theme from '#build/ui/slideover';
|
|
4
|
+
import type { ButtonProps } from '../types';
|
|
5
|
+
import type { EmitsToProps, ComponentConfig } from '../types/utils';
|
|
6
|
+
type Slideover = ComponentConfig<typeof theme, AppConfig, 'slideover'>;
|
|
7
|
+
export interface SlideoverProps extends DialogRootProps {
|
|
8
|
+
title?: string;
|
|
9
|
+
description?: string;
|
|
10
|
+
/** The content of the slideover. */
|
|
11
|
+
content?: Omit<DialogContentProps, 'as' | 'asChild' | 'forceMount'> & Partial<EmitsToProps<DialogContentEmits>>;
|
|
12
|
+
/**
|
|
13
|
+
* Render an overlay behind the slideover.
|
|
14
|
+
* @defaultValue true
|
|
15
|
+
*/
|
|
16
|
+
overlay?: boolean;
|
|
17
|
+
/**
|
|
18
|
+
* Animate the slideover when opening or closing.
|
|
19
|
+
* @defaultValue true
|
|
20
|
+
*/
|
|
21
|
+
transition?: boolean;
|
|
22
|
+
/**
|
|
23
|
+
* The side of the slideover.
|
|
24
|
+
* @defaultValue 'right'
|
|
25
|
+
*/
|
|
26
|
+
side?: Slideover['variants']['side'];
|
|
27
|
+
/**
|
|
28
|
+
* Render the slideover in a portal.
|
|
29
|
+
* @defaultValue true
|
|
30
|
+
*/
|
|
31
|
+
portal?: boolean | string | HTMLElement;
|
|
32
|
+
/**
|
|
33
|
+
* Display a close button to dismiss the slideover.
|
|
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 slideover will not close when clicking outside or pressing escape.
|
|
46
|
+
* @defaultValue true
|
|
47
|
+
*/
|
|
48
|
+
dismissible?: boolean;
|
|
49
|
+
class?: any;
|
|
50
|
+
ui?: Slideover['slots'];
|
|
51
|
+
}
|
|
52
|
+
export interface SlideoverEmits extends DialogRootEmits {
|
|
53
|
+
'after:leave': [];
|
|
54
|
+
'after:enter': [];
|
|
55
|
+
'close:prevent': [];
|
|
56
|
+
}
|
|
57
|
+
export interface SlideoverSlots {
|
|
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<Slideover['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<SlideoverProps, {}, {}, {}, {}, 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<SlideoverProps> & 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
|
+
side: Slideover["variants"]["side"];
|
|
100
|
+
dismissible: boolean;
|
|
101
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, SlideoverSlots>;
|
|
102
|
+
declare const _default: typeof __VLS_export;
|
|
103
|
+
export default _default;
|
|
104
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
105
|
+
new (): {
|
|
106
|
+
$slots: S;
|
|
107
|
+
};
|
|
108
|
+
};
|
|
@@ -80,16 +80,16 @@ export interface SlideoverSlots {
|
|
|
80
80
|
close: () => void;
|
|
81
81
|
}): any;
|
|
82
82
|
}
|
|
83
|
-
declare const
|
|
83
|
+
declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<SlideoverProps, {}, {}, {}, {}, 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<SlideoverProps> & 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;
|
|
@@ -99,6 +99,7 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<SlideoverP
|
|
|
99
99
|
side: Slideover["variants"]["side"];
|
|
100
100
|
dismissible: boolean;
|
|
101
101
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, SlideoverSlots>;
|
|
102
|
+
declare const _default: typeof __VLS_export;
|
|
102
103
|
export default _default;
|
|
103
104
|
type __VLS_WithSlots<T, S> = T & {
|
|
104
105
|
new (): {
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import type { SliderRootProps } from 'reka-ui';
|
|
2
|
+
import type { AppConfig } from '@nuxt/schema';
|
|
3
|
+
import theme from '#build/ui/slider';
|
|
4
|
+
import type { TooltipProps } from '../types';
|
|
5
|
+
import type { ComponentConfig } from '../types/utils';
|
|
6
|
+
type Slider = ComponentConfig<typeof theme, AppConfig, 'slider'>;
|
|
7
|
+
export interface SliderProps extends Pick<SliderRootProps, 'name' | 'disabled' | 'inverted' | 'min' | 'max' | 'step' | 'minStepsBetweenThumbs'> {
|
|
8
|
+
/**
|
|
9
|
+
* The element or component this component should render as.
|
|
10
|
+
* @defaultValue 'div'
|
|
11
|
+
*/
|
|
12
|
+
as?: any;
|
|
13
|
+
/**
|
|
14
|
+
* @defaultValue 'md'
|
|
15
|
+
*/
|
|
16
|
+
size?: Slider['variants']['size'];
|
|
17
|
+
/**
|
|
18
|
+
* @defaultValue 'primary'
|
|
19
|
+
*/
|
|
20
|
+
color?: Slider['variants']['color'];
|
|
21
|
+
/**
|
|
22
|
+
* The orientation of the slider.
|
|
23
|
+
* @defaultValue 'horizontal'
|
|
24
|
+
*/
|
|
25
|
+
orientation?: SliderRootProps['orientation'];
|
|
26
|
+
/**
|
|
27
|
+
* Display a tooltip around the slider thumbs with the current value.
|
|
28
|
+
* `{ disableClosingTrigger: true }`{lang="ts-type"}
|
|
29
|
+
* @defaultValue false
|
|
30
|
+
*/
|
|
31
|
+
tooltip?: boolean | TooltipProps;
|
|
32
|
+
/** The value of the slider when initially rendered. Use when you do not need to control the state of the slider. */
|
|
33
|
+
defaultValue?: number | number[];
|
|
34
|
+
class?: any;
|
|
35
|
+
ui?: Slider['slots'];
|
|
36
|
+
}
|
|
37
|
+
export interface SliderEmits {
|
|
38
|
+
change: [event: Event];
|
|
39
|
+
}
|
|
40
|
+
declare const __VLS_export: <T extends number | number[]>(__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<{
|
|
41
|
+
props: __VLS_PrettifyLocal<(SliderProps & {
|
|
42
|
+
modelValue?: T;
|
|
43
|
+
}) & {
|
|
44
|
+
onChange?: ((event: Event) => any) | undefined;
|
|
45
|
+
"onUpdate:modelValue"?: ((value: T | undefined) => any) | undefined;
|
|
46
|
+
}> & import("vue").PublicProps;
|
|
47
|
+
expose: (exposed: {}) => void;
|
|
48
|
+
attrs: any;
|
|
49
|
+
slots: {};
|
|
50
|
+
emit: ((evt: "change", event: Event) => void) & ((evt: "update:modelValue", value: T | undefined) => void);
|
|
51
|
+
}>) => import("vue").VNode & {
|
|
52
|
+
__ctx?: Awaited<typeof __VLS_setup>;
|
|
53
|
+
};
|
|
54
|
+
declare const _default: typeof __VLS_export;
|
|
55
|
+
export default _default;
|
|
56
|
+
type __VLS_PrettifyLocal<T> = {
|
|
57
|
+
[K in keyof T as K]: T[K];
|
|
58
|
+
} & {};
|