@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,95 @@
|
|
|
1
|
+
import type { RadioGroupRootProps, RadioGroupRootEmits } from 'reka-ui';
|
|
2
|
+
import type { AppConfig } from '@nuxt/schema';
|
|
3
|
+
import theme from '#build/ui/radio-group';
|
|
4
|
+
import type { AcceptableValue, ComponentConfig } from '../types/utils';
|
|
5
|
+
type RadioGroup = ComponentConfig<typeof theme, AppConfig, 'radioGroup'>;
|
|
6
|
+
export type RadioGroupValue = AcceptableValue;
|
|
7
|
+
export type RadioGroupItem = {
|
|
8
|
+
label?: string;
|
|
9
|
+
description?: string;
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
value?: RadioGroupValue;
|
|
12
|
+
class?: any;
|
|
13
|
+
ui?: Pick<RadioGroup['slots'], 'item' | 'container' | 'base' | 'indicator' | 'wrapper' | 'label' | 'description'>;
|
|
14
|
+
[key: string]: any;
|
|
15
|
+
} | RadioGroupValue;
|
|
16
|
+
export interface RadioGroupProps<T extends RadioGroupItem = RadioGroupItem> extends Pick<RadioGroupRootProps, 'defaultValue' | 'disabled' | 'loop' | 'modelValue' | 'name' | 'required'> {
|
|
17
|
+
/**
|
|
18
|
+
* The element or component this component should render as.
|
|
19
|
+
* @defaultValue 'div'
|
|
20
|
+
*/
|
|
21
|
+
as?: any;
|
|
22
|
+
legend?: string;
|
|
23
|
+
/**
|
|
24
|
+
* When `items` is an array of objects, select the field to use as the value.
|
|
25
|
+
* @defaultValue 'value'
|
|
26
|
+
*/
|
|
27
|
+
valueKey?: string;
|
|
28
|
+
/**
|
|
29
|
+
* When `items` is an array of objects, select the field to use as the label.
|
|
30
|
+
* @defaultValue 'label'
|
|
31
|
+
*/
|
|
32
|
+
labelKey?: string;
|
|
33
|
+
/**
|
|
34
|
+
* When `items` is an array of objects, select the field to use as the description.
|
|
35
|
+
* @defaultValue 'description'
|
|
36
|
+
*/
|
|
37
|
+
descriptionKey?: string;
|
|
38
|
+
items?: T[];
|
|
39
|
+
/**
|
|
40
|
+
* @defaultValue 'md'
|
|
41
|
+
*/
|
|
42
|
+
size?: RadioGroup['variants']['size'];
|
|
43
|
+
/**
|
|
44
|
+
* @defaultValue 'list'
|
|
45
|
+
*/
|
|
46
|
+
variant?: RadioGroup['variants']['variant'];
|
|
47
|
+
/**
|
|
48
|
+
* @defaultValue 'primary'
|
|
49
|
+
*/
|
|
50
|
+
color?: RadioGroup['variants']['color'];
|
|
51
|
+
/**
|
|
52
|
+
* The orientation the radio buttons are laid out.
|
|
53
|
+
* @defaultValue 'vertical'
|
|
54
|
+
*/
|
|
55
|
+
orientation?: RadioGroupRootProps['orientation'];
|
|
56
|
+
/**
|
|
57
|
+
* Position of the indicator.
|
|
58
|
+
* @defaultValue 'start'
|
|
59
|
+
*/
|
|
60
|
+
indicator?: RadioGroup['variants']['indicator'];
|
|
61
|
+
class?: any;
|
|
62
|
+
ui?: RadioGroup['slots'];
|
|
63
|
+
}
|
|
64
|
+
export type RadioGroupEmits = RadioGroupRootEmits & {
|
|
65
|
+
change: [event: Event];
|
|
66
|
+
};
|
|
67
|
+
type NormalizeItem<T extends RadioGroupItem> = Exclude<T & {
|
|
68
|
+
id: string;
|
|
69
|
+
}, RadioGroupValue>;
|
|
70
|
+
type SlotProps<T extends RadioGroupItem> = (props: {
|
|
71
|
+
item: NormalizeItem<T>;
|
|
72
|
+
modelValue?: RadioGroupValue;
|
|
73
|
+
}) => any;
|
|
74
|
+
export interface RadioGroupSlots<T extends RadioGroupItem = RadioGroupItem> {
|
|
75
|
+
legend(props?: {}): any;
|
|
76
|
+
label: SlotProps<T>;
|
|
77
|
+
description: SlotProps<T>;
|
|
78
|
+
}
|
|
79
|
+
declare const __VLS_export: <T extends RadioGroupItem>(__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<{
|
|
80
|
+
props: __VLS_PrettifyLocal<RadioGroupProps<T> & {
|
|
81
|
+
onChange?: ((event: Event) => any) | undefined;
|
|
82
|
+
"onUpdate:modelValue"?: ((payload: string) => any) | undefined;
|
|
83
|
+
}> & import("vue").PublicProps;
|
|
84
|
+
expose: (exposed: {}) => void;
|
|
85
|
+
attrs: any;
|
|
86
|
+
slots: RadioGroupSlots<T>;
|
|
87
|
+
emit: ((evt: "change", event: Event) => void) & ((evt: "update:modelValue", payload: string) => void);
|
|
88
|
+
}>) => import("vue").VNode & {
|
|
89
|
+
__ctx?: Awaited<typeof __VLS_setup>;
|
|
90
|
+
};
|
|
91
|
+
declare const _default: typeof __VLS_export;
|
|
92
|
+
export default _default;
|
|
93
|
+
type __VLS_PrettifyLocal<T> = {
|
|
94
|
+
[K in keyof T as K]: T[K];
|
|
95
|
+
} & {};
|
|
@@ -76,18 +76,19 @@ export interface RadioGroupSlots<T extends RadioGroupItem = RadioGroupItem> {
|
|
|
76
76
|
label: SlotProps<T>;
|
|
77
77
|
description: SlotProps<T>;
|
|
78
78
|
}
|
|
79
|
-
declare const
|
|
80
|
-
props: __VLS_PrettifyLocal<
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
}
|
|
84
|
-
expose(exposed:
|
|
79
|
+
declare const __VLS_export: <T extends RadioGroupItem>(__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<{
|
|
80
|
+
props: __VLS_PrettifyLocal<RadioGroupProps<T> & {
|
|
81
|
+
onChange?: ((event: Event) => any) | undefined;
|
|
82
|
+
"onUpdate:modelValue"?: ((payload: string) => any) | undefined;
|
|
83
|
+
}> & import("vue").PublicProps;
|
|
84
|
+
expose: (exposed: {}) => void;
|
|
85
85
|
attrs: any;
|
|
86
86
|
slots: RadioGroupSlots<T>;
|
|
87
87
|
emit: ((evt: "change", event: Event) => void) & ((evt: "update:modelValue", payload: string) => void);
|
|
88
88
|
}>) => import("vue").VNode & {
|
|
89
89
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
90
90
|
};
|
|
91
|
+
declare const _default: typeof __VLS_export;
|
|
91
92
|
export default _default;
|
|
92
93
|
type __VLS_PrettifyLocal<T> = {
|
|
93
94
|
[K in keyof T as K]: T[K];
|
|
@@ -0,0 +1,254 @@
|
|
|
1
|
+
import type { SelectRootProps, SelectRootEmits, SelectContentProps, SelectContentEmits, SelectArrowProps } from 'reka-ui';
|
|
2
|
+
import type { AppConfig } from '@nuxt/schema';
|
|
3
|
+
import theme from '#build/ui/select';
|
|
4
|
+
import type { UseComponentIconsProps } from '../composables/useComponentIcons';
|
|
5
|
+
import type { AvatarProps, ChipProps } from '../types';
|
|
6
|
+
import type { AcceptableValue, ArrayOrNested, GetItemKeys, GetModelValue, GetModelValueEmits, NestedItem, EmitsToProps, ComponentConfig } from '../types/utils';
|
|
7
|
+
type Select = ComponentConfig<typeof theme, AppConfig, 'select'>;
|
|
8
|
+
interface SelectItemBase {
|
|
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
|
+
value?: AcceptableValue | boolean;
|
|
22
|
+
disabled?: boolean;
|
|
23
|
+
onSelect?(e?: Event): void;
|
|
24
|
+
class?: any;
|
|
25
|
+
ui?: Pick<Select['slots'], 'label' | 'separator' | 'item' | 'itemLeadingIcon' | 'itemLeadingAvatarSize' | 'itemLeadingAvatar' | 'itemLeadingChipSize' | 'itemLeadingChip' | 'itemLabel' | 'itemTrailing' | 'itemTrailingIcon'>;
|
|
26
|
+
[key: string]: any;
|
|
27
|
+
}
|
|
28
|
+
export type SelectItem = SelectItemBase | AcceptableValue | boolean;
|
|
29
|
+
export interface SelectProps<T extends ArrayOrNested<SelectItem> = ArrayOrNested<SelectItem>, VK extends GetItemKeys<T> = 'value', M extends boolean = false> extends Omit<SelectRootProps<T>, 'dir' | 'multiple' | 'modelValue' | 'defaultValue' | 'by'>, UseComponentIconsProps {
|
|
30
|
+
id?: string;
|
|
31
|
+
/** The placeholder text when the select is empty. */
|
|
32
|
+
placeholder?: string;
|
|
33
|
+
/**
|
|
34
|
+
* @defaultValue 'primary'
|
|
35
|
+
*/
|
|
36
|
+
color?: Select['variants']['color'];
|
|
37
|
+
/**
|
|
38
|
+
* @defaultValue 'outline'
|
|
39
|
+
*/
|
|
40
|
+
variant?: Select['variants']['variant'];
|
|
41
|
+
/**
|
|
42
|
+
* @defaultValue 'md'
|
|
43
|
+
*/
|
|
44
|
+
size?: Select['variants']['size'];
|
|
45
|
+
/**
|
|
46
|
+
* The icon displayed to open the menu.
|
|
47
|
+
* @defaultValue appConfig.ui.icons.chevronDown
|
|
48
|
+
* @IconifyIcon
|
|
49
|
+
*/
|
|
50
|
+
trailingIcon?: string;
|
|
51
|
+
/**
|
|
52
|
+
* The icon displayed when an item is selected.
|
|
53
|
+
* @defaultValue appConfig.ui.icons.check
|
|
54
|
+
* @IconifyIcon
|
|
55
|
+
*/
|
|
56
|
+
selectedIcon?: string;
|
|
57
|
+
/**
|
|
58
|
+
* The content of the menu.
|
|
59
|
+
* @defaultValue { side: 'bottom', sideOffset: 8, collisionPadding: 8, position: 'popper' }
|
|
60
|
+
*/
|
|
61
|
+
content?: Omit<SelectContentProps, 'as' | 'asChild' | 'forceMount'> & Partial<EmitsToProps<SelectContentEmits>>;
|
|
62
|
+
/**
|
|
63
|
+
* Display an arrow alongside the menu.
|
|
64
|
+
* @defaultValue false
|
|
65
|
+
*/
|
|
66
|
+
arrow?: boolean | Omit<SelectArrowProps, 'as' | 'asChild'>;
|
|
67
|
+
/**
|
|
68
|
+
* Render the menu in a portal.
|
|
69
|
+
* @defaultValue true
|
|
70
|
+
*/
|
|
71
|
+
portal?: boolean | string | HTMLElement;
|
|
72
|
+
/**
|
|
73
|
+
* When `items` is an array of objects, select the field to use as the value.
|
|
74
|
+
* @defaultValue 'value'
|
|
75
|
+
*/
|
|
76
|
+
valueKey?: VK;
|
|
77
|
+
/**
|
|
78
|
+
* When `items` is an array of objects, select the field to use as the label.
|
|
79
|
+
* @defaultValue 'label'
|
|
80
|
+
*/
|
|
81
|
+
labelKey?: keyof NestedItem<T>;
|
|
82
|
+
items?: T;
|
|
83
|
+
/** The value of the Select when initially rendered. Use when you do not need to control the state of the Select. */
|
|
84
|
+
defaultValue?: GetModelValue<T, VK, M>;
|
|
85
|
+
/** The controlled value of the Select. Can be bind as `v-model`. */
|
|
86
|
+
modelValue?: GetModelValue<T, VK, M>;
|
|
87
|
+
/** Whether multiple options can be selected or not. */
|
|
88
|
+
multiple?: M & boolean;
|
|
89
|
+
/** Highlight the ring color like a focus state. */
|
|
90
|
+
highlight?: boolean;
|
|
91
|
+
autofocus?: boolean;
|
|
92
|
+
autofocusDelay?: number;
|
|
93
|
+
class?: any;
|
|
94
|
+
ui?: Select['slots'];
|
|
95
|
+
}
|
|
96
|
+
export type SelectEmits<A extends ArrayOrNested<SelectItem>, VK extends GetItemKeys<A> | undefined, M extends boolean> = Omit<SelectRootEmits, 'update:modelValue'> & {
|
|
97
|
+
change: [event: Event];
|
|
98
|
+
blur: [event: FocusEvent];
|
|
99
|
+
focus: [event: FocusEvent];
|
|
100
|
+
} & GetModelValueEmits<A, VK, M>;
|
|
101
|
+
type SlotProps<T extends SelectItem> = (props: {
|
|
102
|
+
item: T;
|
|
103
|
+
index: number;
|
|
104
|
+
}) => any;
|
|
105
|
+
export interface SelectSlots<A extends ArrayOrNested<SelectItem> = ArrayOrNested<SelectItem>, VK extends GetItemKeys<A> | undefined = undefined, M extends boolean = false, T extends NestedItem<A> = NestedItem<A>> {
|
|
106
|
+
'leading'(props: {
|
|
107
|
+
modelValue?: GetModelValue<A, VK, M>;
|
|
108
|
+
open: boolean;
|
|
109
|
+
ui: {
|
|
110
|
+
[K in keyof Required<Select['slots']>]: (props?: Record<string, any>) => string;
|
|
111
|
+
};
|
|
112
|
+
}): any;
|
|
113
|
+
'default'(props: {
|
|
114
|
+
modelValue?: GetModelValue<A, VK, M>;
|
|
115
|
+
open: boolean;
|
|
116
|
+
}): any;
|
|
117
|
+
'trailing'(props: {
|
|
118
|
+
modelValue?: GetModelValue<A, VK, M>;
|
|
119
|
+
open: boolean;
|
|
120
|
+
ui: {
|
|
121
|
+
[K in keyof Required<Select['slots']>]: (props?: Record<string, any>) => string;
|
|
122
|
+
};
|
|
123
|
+
}): any;
|
|
124
|
+
'item': SlotProps<T>;
|
|
125
|
+
'item-leading': SlotProps<T>;
|
|
126
|
+
'item-label': SlotProps<T>;
|
|
127
|
+
'item-trailing': SlotProps<T>;
|
|
128
|
+
'content-top': (props?: {}) => any;
|
|
129
|
+
'content-bottom': (props?: {}) => any;
|
|
130
|
+
}
|
|
131
|
+
declare const __VLS_export: <T extends ArrayOrNested<SelectItem>, VK extends GetItemKeys<T> = "value", M extends boolean = false>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
132
|
+
props: __VLS_PrettifyLocal<SelectProps<T, VK, M> & {
|
|
133
|
+
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
134
|
+
onChange?: ((event: Event) => any) | undefined;
|
|
135
|
+
onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
136
|
+
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
137
|
+
"onUpdate:modelValue"?: ((value: GetModelValue<T, VK, M>) => any) | undefined;
|
|
138
|
+
}> & import("vue").PublicProps;
|
|
139
|
+
expose: (exposed: import("vue").ShallowUnwrapRef<{
|
|
140
|
+
triggerRef: import("vue").Ref<({
|
|
141
|
+
$: import("vue").ComponentInternalInstance;
|
|
142
|
+
$data: {};
|
|
143
|
+
$props: {
|
|
144
|
+
readonly disabled?: boolean | undefined;
|
|
145
|
+
readonly reference?: import("reka-ui").ReferenceElement | undefined;
|
|
146
|
+
readonly asChild?: boolean | undefined;
|
|
147
|
+
readonly as?: (import("reka-ui").AsTag | import("vue").Component) | undefined;
|
|
148
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
|
|
149
|
+
$attrs: {
|
|
150
|
+
[x: string]: unknown;
|
|
151
|
+
};
|
|
152
|
+
$refs: {
|
|
153
|
+
[x: string]: unknown;
|
|
154
|
+
};
|
|
155
|
+
$slots: Readonly<{
|
|
156
|
+
[name: string]: import("vue").Slot<any> | undefined;
|
|
157
|
+
}>;
|
|
158
|
+
$root: import("vue").ComponentPublicInstance | null;
|
|
159
|
+
$parent: import("vue").ComponentPublicInstance | null;
|
|
160
|
+
$host: Element | null;
|
|
161
|
+
$emit: (event: string, ...args: any[]) => void;
|
|
162
|
+
$el: any;
|
|
163
|
+
$options: import("vue").ComponentOptionsBase<Readonly<import("reka-ui").SelectTriggerProps> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
|
|
164
|
+
as: import("reka-ui").AsTag | import("vue").Component;
|
|
165
|
+
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & {
|
|
166
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
167
|
+
created?: (() => void) | (() => void)[];
|
|
168
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
169
|
+
mounted?: (() => void) | (() => void)[];
|
|
170
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
171
|
+
updated?: (() => void) | (() => void)[];
|
|
172
|
+
activated?: (() => void) | (() => void)[];
|
|
173
|
+
deactivated?: (() => void) | (() => void)[];
|
|
174
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
175
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
176
|
+
destroyed?: (() => void) | (() => void)[];
|
|
177
|
+
unmounted?: (() => void) | (() => void)[];
|
|
178
|
+
renderTracked?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
|
179
|
+
renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
|
180
|
+
errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
181
|
+
};
|
|
182
|
+
$forceUpdate: () => void;
|
|
183
|
+
$nextTick: typeof import("vue").nextTick;
|
|
184
|
+
$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;
|
|
185
|
+
} & Readonly<{
|
|
186
|
+
as: import("reka-ui").AsTag | import("vue").Component;
|
|
187
|
+
}> & Omit<Readonly<import("reka-ui").SelectTriggerProps> & Readonly<{}>, "as"> & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties & {} & {
|
|
188
|
+
$slots: {
|
|
189
|
+
default?: (props: {}) => any;
|
|
190
|
+
};
|
|
191
|
+
}) | null, ({
|
|
192
|
+
$: import("vue").ComponentInternalInstance;
|
|
193
|
+
$data: {};
|
|
194
|
+
$props: {
|
|
195
|
+
readonly disabled?: boolean | undefined;
|
|
196
|
+
readonly reference?: import("reka-ui").ReferenceElement | undefined;
|
|
197
|
+
readonly asChild?: boolean | undefined;
|
|
198
|
+
readonly as?: (import("reka-ui").AsTag | import("vue").Component) | undefined;
|
|
199
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
|
|
200
|
+
$attrs: {
|
|
201
|
+
[x: string]: unknown;
|
|
202
|
+
};
|
|
203
|
+
$refs: {
|
|
204
|
+
[x: string]: unknown;
|
|
205
|
+
};
|
|
206
|
+
$slots: Readonly<{
|
|
207
|
+
[name: string]: import("vue").Slot<any> | undefined;
|
|
208
|
+
}>;
|
|
209
|
+
$root: import("vue").ComponentPublicInstance | null;
|
|
210
|
+
$parent: import("vue").ComponentPublicInstance | null;
|
|
211
|
+
$host: Element | null;
|
|
212
|
+
$emit: (event: string, ...args: any[]) => void;
|
|
213
|
+
$el: any;
|
|
214
|
+
$options: import("vue").ComponentOptionsBase<Readonly<import("reka-ui").SelectTriggerProps> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
|
|
215
|
+
as: import("reka-ui").AsTag | import("vue").Component;
|
|
216
|
+
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & {
|
|
217
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
218
|
+
created?: (() => void) | (() => void)[];
|
|
219
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
220
|
+
mounted?: (() => void) | (() => void)[];
|
|
221
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
222
|
+
updated?: (() => void) | (() => void)[];
|
|
223
|
+
activated?: (() => void) | (() => void)[];
|
|
224
|
+
deactivated?: (() => void) | (() => void)[];
|
|
225
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
226
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
227
|
+
destroyed?: (() => void) | (() => void)[];
|
|
228
|
+
unmounted?: (() => void) | (() => void)[];
|
|
229
|
+
renderTracked?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
|
230
|
+
renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
|
231
|
+
errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
232
|
+
};
|
|
233
|
+
$forceUpdate: () => void;
|
|
234
|
+
$nextTick: typeof import("vue").nextTick;
|
|
235
|
+
$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;
|
|
236
|
+
} & Readonly<{
|
|
237
|
+
as: import("reka-ui").AsTag | import("vue").Component;
|
|
238
|
+
}> & Omit<Readonly<import("reka-ui").SelectTriggerProps> & Readonly<{}>, "as"> & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties & {} & {
|
|
239
|
+
$slots: {
|
|
240
|
+
default?: (props: {}) => any;
|
|
241
|
+
};
|
|
242
|
+
}) | null>;
|
|
243
|
+
}>) => void;
|
|
244
|
+
attrs: any;
|
|
245
|
+
slots: SelectSlots<T, VK, M, NestedItem<T>>;
|
|
246
|
+
emit: ((evt: "blur", event: FocusEvent) => void) & ((evt: "change", event: Event) => void) & ((evt: "focus", event: FocusEvent) => void) & ((evt: "update:open", value: boolean) => void) & ((evt: "update:modelValue", value: GetModelValue<T, VK, M>) => void);
|
|
247
|
+
}>) => import("vue").VNode & {
|
|
248
|
+
__ctx?: Awaited<typeof __VLS_setup>;
|
|
249
|
+
};
|
|
250
|
+
declare const _default: typeof __VLS_export;
|
|
251
|
+
export default _default;
|
|
252
|
+
type __VLS_PrettifyLocal<T> = {
|
|
253
|
+
[K in keyof T as K]: T[K];
|
|
254
|
+
} & {};
|
|
@@ -128,15 +128,15 @@ export interface SelectSlots<A extends ArrayOrNested<SelectItem> = ArrayOrNested
|
|
|
128
128
|
'content-top': (props?: {}) => any;
|
|
129
129
|
'content-bottom': (props?: {}) => any;
|
|
130
130
|
}
|
|
131
|
-
declare const
|
|
132
|
-
props: __VLS_PrettifyLocal<
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
}
|
|
139
|
-
expose(exposed: import("vue").ShallowUnwrapRef<{
|
|
131
|
+
declare const __VLS_export: <T extends ArrayOrNested<SelectItem>, VK extends GetItemKeys<T> = "value", M extends boolean = false>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
132
|
+
props: __VLS_PrettifyLocal<SelectProps<T, VK, M> & {
|
|
133
|
+
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
134
|
+
onChange?: ((event: Event) => any) | undefined;
|
|
135
|
+
onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
136
|
+
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
137
|
+
"onUpdate:modelValue"?: ((value: GetModelValue<T, VK, M>) => any) | undefined;
|
|
138
|
+
}> & import("vue").PublicProps;
|
|
139
|
+
expose: (exposed: import("vue").ShallowUnwrapRef<{
|
|
140
140
|
triggerRef: import("vue").Ref<({
|
|
141
141
|
$: import("vue").ComponentInternalInstance;
|
|
142
142
|
$data: {};
|
|
@@ -240,13 +240,14 @@ declare const _default: <T extends ArrayOrNested<SelectItem>, VK extends GetItem
|
|
|
240
240
|
default?: (props: {}) => any;
|
|
241
241
|
};
|
|
242
242
|
}) | null>;
|
|
243
|
-
}>)
|
|
243
|
+
}>) => void;
|
|
244
244
|
attrs: any;
|
|
245
245
|
slots: SelectSlots<T, VK, M, NestedItem<T>>;
|
|
246
246
|
emit: ((evt: "blur", event: FocusEvent) => void) & ((evt: "change", event: Event) => void) & ((evt: "focus", event: FocusEvent) => void) & ((evt: "update:open", value: boolean) => void) & ((evt: "update:modelValue", value: GetModelValue<T, VK, M>) => void);
|
|
247
247
|
}>) => import("vue").VNode & {
|
|
248
248
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
249
249
|
};
|
|
250
|
+
declare const _default: typeof __VLS_export;
|
|
250
251
|
export default _default;
|
|
251
252
|
type __VLS_PrettifyLocal<T> = {
|
|
252
253
|
[K in keyof T as K]: T[K];
|