@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,74 @@
|
|
|
1
|
+
import type { CheckboxRootProps } from 'reka-ui';
|
|
2
|
+
import type { AppConfig } from '@nuxt/schema';
|
|
3
|
+
import theme from '#build/ui/checkbox';
|
|
4
|
+
import type { ComponentConfig } from '../types/utils';
|
|
5
|
+
type Checkbox = ComponentConfig<typeof theme, AppConfig, 'checkbox'>;
|
|
6
|
+
export interface CheckboxProps extends Pick<CheckboxRootProps, 'disabled' | 'required' | 'name' | 'value' | 'id' | 'defaultValue'> {
|
|
7
|
+
/**
|
|
8
|
+
* The element or component this component should render as.
|
|
9
|
+
* @defaultValue 'div'
|
|
10
|
+
*/
|
|
11
|
+
as?: any;
|
|
12
|
+
label?: string;
|
|
13
|
+
description?: string;
|
|
14
|
+
/**
|
|
15
|
+
* @defaultValue 'primary'
|
|
16
|
+
*/
|
|
17
|
+
color?: Checkbox['variants']['color'];
|
|
18
|
+
/**
|
|
19
|
+
* @defaultValue 'list'
|
|
20
|
+
*/
|
|
21
|
+
variant?: Checkbox['variants']['variant'];
|
|
22
|
+
/**
|
|
23
|
+
* @defaultValue 'md'
|
|
24
|
+
*/
|
|
25
|
+
size?: Checkbox['variants']['size'];
|
|
26
|
+
/**
|
|
27
|
+
* Position of the indicator.
|
|
28
|
+
* @defaultValue 'start'
|
|
29
|
+
*/
|
|
30
|
+
indicator?: Checkbox['variants']['indicator'];
|
|
31
|
+
/**
|
|
32
|
+
* The icon displayed when checked.
|
|
33
|
+
* @defaultValue appConfig.ui.icons.check
|
|
34
|
+
* @IconifyIcon
|
|
35
|
+
*/
|
|
36
|
+
icon?: string;
|
|
37
|
+
/**
|
|
38
|
+
* The icon displayed when the checkbox is indeterminate.
|
|
39
|
+
* @defaultValue appConfig.ui.icons.minus
|
|
40
|
+
* @IconifyIcon
|
|
41
|
+
*/
|
|
42
|
+
indeterminateIcon?: string;
|
|
43
|
+
class?: any;
|
|
44
|
+
ui?: Checkbox['slots'];
|
|
45
|
+
}
|
|
46
|
+
export type CheckboxEmits = {
|
|
47
|
+
change: [event: Event];
|
|
48
|
+
};
|
|
49
|
+
export interface CheckboxSlots {
|
|
50
|
+
label(props: {
|
|
51
|
+
label?: string;
|
|
52
|
+
}): any;
|
|
53
|
+
description(props: {
|
|
54
|
+
description?: string;
|
|
55
|
+
}): any;
|
|
56
|
+
}
|
|
57
|
+
declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<CheckboxProps & {
|
|
58
|
+
modelValue?: boolean | "indeterminate";
|
|
59
|
+
}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
60
|
+
change: (event: Event) => any;
|
|
61
|
+
"update:modelValue": (value: boolean | "indeterminate") => any;
|
|
62
|
+
}, string, import("vue").PublicProps, Readonly<CheckboxProps & {
|
|
63
|
+
modelValue?: boolean | "indeterminate";
|
|
64
|
+
}> & Readonly<{
|
|
65
|
+
onChange?: ((event: Event) => any) | undefined;
|
|
66
|
+
"onUpdate:modelValue"?: ((value: boolean | "indeterminate") => any) | undefined;
|
|
67
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, CheckboxSlots>;
|
|
68
|
+
declare const _default: typeof __VLS_export;
|
|
69
|
+
export default _default;
|
|
70
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
71
|
+
new (): {
|
|
72
|
+
$slots: S;
|
|
73
|
+
};
|
|
74
|
+
};
|
|
@@ -54,7 +54,7 @@ export interface CheckboxSlots {
|
|
|
54
54
|
description?: string;
|
|
55
55
|
}): any;
|
|
56
56
|
}
|
|
57
|
-
declare const
|
|
57
|
+
declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<CheckboxProps & {
|
|
58
58
|
modelValue?: boolean | "indeterminate";
|
|
59
59
|
}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
60
60
|
change: (event: Event) => any;
|
|
@@ -65,6 +65,7 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<CheckboxPr
|
|
|
65
65
|
onChange?: ((event: Event) => any) | undefined;
|
|
66
66
|
"onUpdate:modelValue"?: ((value: boolean | "indeterminate") => any) | undefined;
|
|
67
67
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, CheckboxSlots>;
|
|
68
|
+
declare const _default: typeof __VLS_export;
|
|
68
69
|
export default _default;
|
|
69
70
|
type __VLS_WithSlots<T, S> = T & {
|
|
70
71
|
new (): {
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import type { CheckboxGroupRootProps, CheckboxGroupRootEmits } from 'reka-ui';
|
|
2
|
+
import type { AppConfig } from '@nuxt/schema';
|
|
3
|
+
import theme from '#build/ui/checkbox-group';
|
|
4
|
+
import type { CheckboxProps } from '../types';
|
|
5
|
+
import type { AcceptableValue, ComponentConfig } from '../types/utils';
|
|
6
|
+
type CheckboxGroup = ComponentConfig<typeof theme, AppConfig, 'checkboxGroup'>;
|
|
7
|
+
export type CheckboxGroupValue = AcceptableValue;
|
|
8
|
+
export type CheckboxGroupItem = {
|
|
9
|
+
label?: string;
|
|
10
|
+
description?: string;
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
value?: string;
|
|
13
|
+
class?: any;
|
|
14
|
+
ui?: Pick<CheckboxGroup['slots'], 'item'> & Omit<Required<CheckboxProps>['ui'], 'root'>;
|
|
15
|
+
[key: string]: any;
|
|
16
|
+
} | CheckboxGroupValue;
|
|
17
|
+
export interface CheckboxGroupProps<T extends CheckboxGroupItem = CheckboxGroupItem> extends Pick<CheckboxGroupRootProps, 'defaultValue' | 'disabled' | 'loop' | 'modelValue' | 'name' | 'required'>, Pick<CheckboxProps, 'color' | 'indicator' | 'icon'> {
|
|
18
|
+
/**
|
|
19
|
+
* The element or component this component should render as.
|
|
20
|
+
* @defaultValue 'div'
|
|
21
|
+
*/
|
|
22
|
+
as?: any;
|
|
23
|
+
legend?: string;
|
|
24
|
+
/**
|
|
25
|
+
* When `items` is an array of objects, select the field to use as the value.
|
|
26
|
+
* @defaultValue 'value'
|
|
27
|
+
*/
|
|
28
|
+
valueKey?: string;
|
|
29
|
+
/**
|
|
30
|
+
* When `items` is an array of objects, select the field to use as the label.
|
|
31
|
+
* @defaultValue 'label'
|
|
32
|
+
*/
|
|
33
|
+
labelKey?: string;
|
|
34
|
+
/**
|
|
35
|
+
* When `items` is an array of objects, select the field to use as the description.
|
|
36
|
+
* @defaultValue 'description'
|
|
37
|
+
*/
|
|
38
|
+
descriptionKey?: string;
|
|
39
|
+
items?: T[];
|
|
40
|
+
/**
|
|
41
|
+
* @defaultValue 'md'
|
|
42
|
+
*/
|
|
43
|
+
size?: CheckboxGroup['variants']['size'];
|
|
44
|
+
/**
|
|
45
|
+
* @defaultValue 'list'
|
|
46
|
+
*/
|
|
47
|
+
variant?: CheckboxGroup['variants']['variant'];
|
|
48
|
+
/**
|
|
49
|
+
* The orientation the checkbox buttons are laid out.
|
|
50
|
+
* @defaultValue 'vertical'
|
|
51
|
+
*/
|
|
52
|
+
orientation?: CheckboxGroupRootProps['orientation'];
|
|
53
|
+
class?: any;
|
|
54
|
+
ui?: CheckboxGroup['slots'] & CheckboxProps['ui'];
|
|
55
|
+
}
|
|
56
|
+
export type CheckboxGroupEmits = CheckboxGroupRootEmits & {
|
|
57
|
+
change: [event: Event];
|
|
58
|
+
};
|
|
59
|
+
type SlotProps<T extends CheckboxGroupItem> = (props: {
|
|
60
|
+
item: T & {
|
|
61
|
+
id: string;
|
|
62
|
+
};
|
|
63
|
+
}) => any;
|
|
64
|
+
export interface CheckboxGroupSlots<T extends CheckboxGroupItem = CheckboxGroupItem> {
|
|
65
|
+
legend(props?: {}): any;
|
|
66
|
+
label: SlotProps<T>;
|
|
67
|
+
description: SlotProps<T>;
|
|
68
|
+
}
|
|
69
|
+
declare const __VLS_export: <T extends CheckboxGroupItem>(__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<{
|
|
70
|
+
props: __VLS_PrettifyLocal<CheckboxGroupProps<T> & {
|
|
71
|
+
onChange?: ((event: Event) => any) | undefined;
|
|
72
|
+
"onUpdate:modelValue"?: ((value: import("reka-ui").AcceptableValue[]) => any) | undefined;
|
|
73
|
+
}> & import("vue").PublicProps;
|
|
74
|
+
expose: (exposed: {}) => void;
|
|
75
|
+
attrs: any;
|
|
76
|
+
slots: CheckboxGroupSlots<T>;
|
|
77
|
+
emit: ((evt: "change", event: Event) => void) & ((evt: "update:modelValue", value: import("reka-ui").AcceptableValue[]) => void);
|
|
78
|
+
}>) => import("vue").VNode & {
|
|
79
|
+
__ctx?: Awaited<typeof __VLS_setup>;
|
|
80
|
+
};
|
|
81
|
+
declare const _default: typeof __VLS_export;
|
|
82
|
+
export default _default;
|
|
83
|
+
type __VLS_PrettifyLocal<T> = {
|
|
84
|
+
[K in keyof T as K]: T[K];
|
|
85
|
+
} & {};
|
|
@@ -66,18 +66,19 @@ export interface CheckboxGroupSlots<T extends CheckboxGroupItem = CheckboxGroupI
|
|
|
66
66
|
label: SlotProps<T>;
|
|
67
67
|
description: SlotProps<T>;
|
|
68
68
|
}
|
|
69
|
-
declare const
|
|
70
|
-
props: __VLS_PrettifyLocal<
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
}
|
|
74
|
-
expose(exposed:
|
|
69
|
+
declare const __VLS_export: <T extends CheckboxGroupItem>(__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<{
|
|
70
|
+
props: __VLS_PrettifyLocal<CheckboxGroupProps<T> & {
|
|
71
|
+
onChange?: ((event: Event) => any) | undefined;
|
|
72
|
+
"onUpdate:modelValue"?: ((value: import("reka-ui").AcceptableValue[]) => any) | undefined;
|
|
73
|
+
}> & import("vue").PublicProps;
|
|
74
|
+
expose: (exposed: {}) => void;
|
|
75
75
|
attrs: any;
|
|
76
76
|
slots: CheckboxGroupSlots<T>;
|
|
77
77
|
emit: ((evt: "change", event: Event) => void) & ((evt: "update:modelValue", value: import("reka-ui").AcceptableValue[]) => void);
|
|
78
78
|
}>) => import("vue").VNode & {
|
|
79
79
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
80
80
|
};
|
|
81
|
+
declare const _default: typeof __VLS_export;
|
|
81
82
|
export default _default;
|
|
82
83
|
type __VLS_PrettifyLocal<T> = {
|
|
83
84
|
[K in keyof T as K]: T[K];
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import type { AppConfig } from '@nuxt/schema';
|
|
2
|
+
import theme from '#build/ui/chip';
|
|
3
|
+
import type { ComponentConfig } from '../types/utils';
|
|
4
|
+
type Chip = ComponentConfig<typeof theme, AppConfig, 'chip'>;
|
|
5
|
+
export interface ChipProps {
|
|
6
|
+
/**
|
|
7
|
+
* The element or component this component should render as.
|
|
8
|
+
* @defaultValue 'div'
|
|
9
|
+
*/
|
|
10
|
+
as?: any;
|
|
11
|
+
/** Display some text inside the chip. */
|
|
12
|
+
text?: string | number;
|
|
13
|
+
/**
|
|
14
|
+
* @defaultValue 'primary'
|
|
15
|
+
*/
|
|
16
|
+
color?: Chip['variants']['color'];
|
|
17
|
+
/**
|
|
18
|
+
* @defaultValue 'md'
|
|
19
|
+
*/
|
|
20
|
+
size?: Chip['variants']['size'];
|
|
21
|
+
/**
|
|
22
|
+
* The position of the chip.
|
|
23
|
+
* @defaultValue 'top-right'
|
|
24
|
+
*/
|
|
25
|
+
position?: Chip['variants']['position'];
|
|
26
|
+
/** When `true`, keep the chip inside the component for rounded elements. */
|
|
27
|
+
inset?: boolean;
|
|
28
|
+
/** When `true`, render the chip relatively to the parent. */
|
|
29
|
+
standalone?: boolean;
|
|
30
|
+
class?: any;
|
|
31
|
+
ui?: Chip['slots'];
|
|
32
|
+
}
|
|
33
|
+
export interface ChipEmits {
|
|
34
|
+
'update:show': [value: boolean];
|
|
35
|
+
}
|
|
36
|
+
export interface ChipSlots {
|
|
37
|
+
default(props?: {}): any;
|
|
38
|
+
content(props?: {}): any;
|
|
39
|
+
}
|
|
40
|
+
declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<ChipProps & {
|
|
41
|
+
show?: boolean;
|
|
42
|
+
}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
43
|
+
"update:show": (value: boolean) => any;
|
|
44
|
+
}, string, import("vue").PublicProps, Readonly<ChipProps & {
|
|
45
|
+
show?: boolean;
|
|
46
|
+
}> & Readonly<{
|
|
47
|
+
"onUpdate:show"?: ((value: boolean) => any) | undefined;
|
|
48
|
+
}>, {
|
|
49
|
+
inset: boolean;
|
|
50
|
+
standalone: boolean;
|
|
51
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, ChipSlots>;
|
|
52
|
+
declare const _default: typeof __VLS_export;
|
|
53
|
+
export default _default;
|
|
54
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
55
|
+
new (): {
|
|
56
|
+
$slots: S;
|
|
57
|
+
};
|
|
58
|
+
};
|
|
@@ -37,7 +37,7 @@ export interface ChipSlots {
|
|
|
37
37
|
default(props?: {}): any;
|
|
38
38
|
content(props?: {}): any;
|
|
39
39
|
}
|
|
40
|
-
declare const
|
|
40
|
+
declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<ChipProps & {
|
|
41
41
|
show?: boolean;
|
|
42
42
|
}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
43
43
|
"update:show": (value: boolean) => any;
|
|
@@ -49,6 +49,7 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<ChipProps
|
|
|
49
49
|
inset: boolean;
|
|
50
50
|
standalone: boolean;
|
|
51
51
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, ChipSlots>;
|
|
52
|
+
declare const _default: typeof __VLS_export;
|
|
52
53
|
export default _default;
|
|
53
54
|
type __VLS_WithSlots<T, S> = T & {
|
|
54
55
|
new (): {
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import type { CollapsibleRootProps, CollapsibleRootEmits } from 'reka-ui';
|
|
2
|
+
import type { AppConfig } from '@nuxt/schema';
|
|
3
|
+
import theme from '#build/ui/collapsible';
|
|
4
|
+
import type { ComponentConfig } from '../types/utils';
|
|
5
|
+
type Collapsible = ComponentConfig<typeof theme, AppConfig, 'collapsible'>;
|
|
6
|
+
export interface CollapsibleProps extends Pick<CollapsibleRootProps, 'defaultOpen' | 'open' | 'disabled' | 'unmountOnHide'> {
|
|
7
|
+
/**
|
|
8
|
+
* The element or component this component should render as.
|
|
9
|
+
* @defaultValue 'div'
|
|
10
|
+
*/
|
|
11
|
+
as?: any;
|
|
12
|
+
class?: any;
|
|
13
|
+
ui?: Collapsible['slots'];
|
|
14
|
+
}
|
|
15
|
+
export interface CollapsibleEmits extends CollapsibleRootEmits {
|
|
16
|
+
}
|
|
17
|
+
export interface CollapsibleSlots {
|
|
18
|
+
default(props: {
|
|
19
|
+
open: boolean;
|
|
20
|
+
}): any;
|
|
21
|
+
content(props?: {}): any;
|
|
22
|
+
}
|
|
23
|
+
declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<CollapsibleProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
24
|
+
"update:open": (value: boolean) => any;
|
|
25
|
+
}, string, import("vue").PublicProps, Readonly<CollapsibleProps> & Readonly<{
|
|
26
|
+
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
27
|
+
}>, {
|
|
28
|
+
unmountOnHide: boolean;
|
|
29
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, CollapsibleSlots>;
|
|
30
|
+
declare const _default: typeof __VLS_export;
|
|
31
|
+
export default _default;
|
|
32
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
33
|
+
new (): {
|
|
34
|
+
$slots: S;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
@@ -20,13 +20,14 @@ export interface CollapsibleSlots {
|
|
|
20
20
|
}): any;
|
|
21
21
|
content(props?: {}): any;
|
|
22
22
|
}
|
|
23
|
-
declare const
|
|
23
|
+
declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<CollapsibleProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
24
24
|
"update:open": (value: boolean) => any;
|
|
25
25
|
}, string, import("vue").PublicProps, Readonly<CollapsibleProps> & Readonly<{
|
|
26
26
|
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
27
27
|
}>, {
|
|
28
28
|
unmountOnHide: boolean;
|
|
29
29
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, CollapsibleSlots>;
|
|
30
|
+
declare const _default: typeof __VLS_export;
|
|
30
31
|
export default _default;
|
|
31
32
|
type __VLS_WithSlots<T, S> = T & {
|
|
32
33
|
new (): {
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import type { AppConfig } from '@nuxt/schema';
|
|
2
|
+
import theme from '#build/ui/color-picker';
|
|
3
|
+
import type { ComponentConfig } from '../types/utils';
|
|
4
|
+
type ColorPicker = ComponentConfig<typeof theme, AppConfig, 'colorPicker'>;
|
|
5
|
+
export type ColorPickerProps = {
|
|
6
|
+
/**
|
|
7
|
+
* The element or component this component should render as.
|
|
8
|
+
* @defaultValue 'div'
|
|
9
|
+
*/
|
|
10
|
+
as?: any;
|
|
11
|
+
/**
|
|
12
|
+
* Throttle time in ms for the color picker
|
|
13
|
+
*/
|
|
14
|
+
throttle?: number;
|
|
15
|
+
/**
|
|
16
|
+
* Disable the color picker
|
|
17
|
+
*/
|
|
18
|
+
disabled?: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* The default value of the color picker
|
|
21
|
+
*/
|
|
22
|
+
defaultValue?: string;
|
|
23
|
+
/**
|
|
24
|
+
* Format of the color
|
|
25
|
+
* @defaultValue 'hex'
|
|
26
|
+
*/
|
|
27
|
+
format?: 'hex' | 'rgb' | 'hsl' | 'cmyk' | 'lab';
|
|
28
|
+
/**
|
|
29
|
+
* @defaultValue 'md'
|
|
30
|
+
*/
|
|
31
|
+
size?: ColorPicker['variants']['size'];
|
|
32
|
+
class?: any;
|
|
33
|
+
ui?: ColorPicker['slots'];
|
|
34
|
+
};
|
|
35
|
+
declare const __VLS_export: import("vue").DefineComponent<ColorPickerProps & {
|
|
36
|
+
modelValue?: string;
|
|
37
|
+
}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
38
|
+
"update:modelValue": (value: string | undefined) => any;
|
|
39
|
+
}, string, import("vue").PublicProps, Readonly<ColorPickerProps & {
|
|
40
|
+
modelValue?: string;
|
|
41
|
+
}> & Readonly<{
|
|
42
|
+
"onUpdate:modelValue"?: ((value: string | undefined) => any) | undefined;
|
|
43
|
+
}>, {
|
|
44
|
+
format: "hex" | "rgb" | "hsl" | "cmyk" | "lab";
|
|
45
|
+
defaultValue: string;
|
|
46
|
+
throttle: number;
|
|
47
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
48
|
+
declare const _default: typeof __VLS_export;
|
|
49
|
+
export default _default;
|
|
@@ -32,7 +32,7 @@ export type ColorPickerProps = {
|
|
|
32
32
|
class?: any;
|
|
33
33
|
ui?: ColorPicker['slots'];
|
|
34
34
|
};
|
|
35
|
-
declare const
|
|
35
|
+
declare const __VLS_export: import("vue").DefineComponent<ColorPickerProps & {
|
|
36
36
|
modelValue?: string;
|
|
37
37
|
}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
38
38
|
"update:modelValue": (value: string | undefined) => any;
|
|
@@ -45,4 +45,5 @@ declare const _default: import("vue").DefineComponent<ColorPickerProps & {
|
|
|
45
45
|
defaultValue: string;
|
|
46
46
|
throttle: number;
|
|
47
47
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
48
|
+
declare const _default: typeof __VLS_export;
|
|
48
49
|
export default _default;
|
|
@@ -0,0 +1,193 @@
|
|
|
1
|
+
import type { ListboxRootProps, ListboxRootEmits } from 'reka-ui';
|
|
2
|
+
import type { AppConfig } from '@nuxt/schema';
|
|
3
|
+
import type { UseFuseOptions } from '@vueuse/integrations/useFuse';
|
|
4
|
+
import theme from '#build/ui/command-palette';
|
|
5
|
+
import type { UseComponentIconsProps } from '../composables/useComponentIcons';
|
|
6
|
+
import type { AvatarProps, ButtonProps, ChipProps, KbdProps, InputProps, LinkProps } from '../types';
|
|
7
|
+
import type { ComponentConfig } from '../types/utils';
|
|
8
|
+
type CommandPalette = ComponentConfig<typeof theme, AppConfig, 'commandPalette'>;
|
|
9
|
+
export interface CommandPaletteItem extends Omit<LinkProps, 'type' | 'raw' | 'custom'> {
|
|
10
|
+
prefix?: string;
|
|
11
|
+
label?: string;
|
|
12
|
+
suffix?: string;
|
|
13
|
+
/**
|
|
14
|
+
* @IconifyIcon
|
|
15
|
+
*/
|
|
16
|
+
icon?: string;
|
|
17
|
+
avatar?: AvatarProps;
|
|
18
|
+
chip?: ChipProps;
|
|
19
|
+
kbds?: KbdProps['value'][] | KbdProps[];
|
|
20
|
+
active?: boolean;
|
|
21
|
+
loading?: boolean;
|
|
22
|
+
disabled?: boolean;
|
|
23
|
+
slot?: string;
|
|
24
|
+
/**
|
|
25
|
+
* The placeholder to display when the item has children.
|
|
26
|
+
*/
|
|
27
|
+
placeholder?: string;
|
|
28
|
+
children?: CommandPaletteItem[];
|
|
29
|
+
onSelect?(e?: Event): void;
|
|
30
|
+
class?: any;
|
|
31
|
+
ui?: Pick<CommandPalette['slots'], 'item' | 'itemLeadingIcon' | 'itemLeadingAvatarSize' | 'itemLeadingAvatar' | 'itemLeadingChipSize' | 'itemLeadingChip' | 'itemLabel' | 'itemLabelPrefix' | 'itemLabelBase' | 'itemLabelSuffix' | 'itemTrailing' | 'itemTrailingKbds' | 'itemTrailingKbdsSize' | 'itemTrailingHighlightedIcon' | 'itemTrailingIcon'>;
|
|
32
|
+
[key: string]: any;
|
|
33
|
+
}
|
|
34
|
+
export interface CommandPaletteGroup<T extends CommandPaletteItem = CommandPaletteItem> {
|
|
35
|
+
id: string;
|
|
36
|
+
label?: string;
|
|
37
|
+
slot?: string;
|
|
38
|
+
items?: T[];
|
|
39
|
+
/**
|
|
40
|
+
* Whether to filter group items with [useFuse](https://vueuse.org/integrations/useFuse).
|
|
41
|
+
* When `true`, items will not be filtered which is useful for custom filtering (useAsyncData, useFetch, etc.).
|
|
42
|
+
* @defaultValue false
|
|
43
|
+
*/
|
|
44
|
+
ignoreFilter?: boolean;
|
|
45
|
+
/** Filter group items after the search happened. */
|
|
46
|
+
postFilter?: (searchTerm: string, items: T[]) => T[];
|
|
47
|
+
/**
|
|
48
|
+
* The icon displayed when an item is highlighted.
|
|
49
|
+
* @IconifyIcon
|
|
50
|
+
*/
|
|
51
|
+
highlightedIcon?: string;
|
|
52
|
+
}
|
|
53
|
+
export interface CommandPaletteProps<G extends CommandPaletteGroup<T> = CommandPaletteGroup<any>, T extends CommandPaletteItem = CommandPaletteItem> extends Pick<ListboxRootProps, 'multiple' | 'disabled' | 'modelValue' | 'defaultValue' | 'highlightOnHover' | 'selectionBehavior'>, Pick<UseComponentIconsProps, 'loading' | 'loadingIcon'> {
|
|
54
|
+
/**
|
|
55
|
+
* The element or component this component should render as.
|
|
56
|
+
* @defaultValue 'div'
|
|
57
|
+
*/
|
|
58
|
+
as?: any;
|
|
59
|
+
/**
|
|
60
|
+
* The icon displayed in the input.
|
|
61
|
+
* @defaultValue appConfig.ui.icons.search
|
|
62
|
+
* @IconifyIcon
|
|
63
|
+
*/
|
|
64
|
+
icon?: string;
|
|
65
|
+
/**
|
|
66
|
+
* The icon displayed when an item is selected.
|
|
67
|
+
* @defaultValue appConfig.ui.icons.check
|
|
68
|
+
* @IconifyIcon
|
|
69
|
+
*/
|
|
70
|
+
selectedIcon?: string;
|
|
71
|
+
/**
|
|
72
|
+
* The icon displayed when an item has children.
|
|
73
|
+
* @defaultValue appConfig.ui.icons.chevronRight
|
|
74
|
+
* @IconifyIcon
|
|
75
|
+
*/
|
|
76
|
+
trailingIcon?: string;
|
|
77
|
+
/**
|
|
78
|
+
* The placeholder text for the input.
|
|
79
|
+
* @defaultValue t('commandPalette.placeholder')
|
|
80
|
+
*/
|
|
81
|
+
placeholder?: InputProps['placeholder'];
|
|
82
|
+
/**
|
|
83
|
+
* Automatically focus the input when component is mounted.
|
|
84
|
+
* @defaultValue true
|
|
85
|
+
*/
|
|
86
|
+
autofocus?: boolean;
|
|
87
|
+
/**
|
|
88
|
+
* Display a close button in the input (useful when inside a Modal for example).
|
|
89
|
+
* `{ size: 'md', color: 'neutral', variant: 'ghost' }`{lang="ts-type"}
|
|
90
|
+
* @emits 'update:open'
|
|
91
|
+
* @defaultValue false
|
|
92
|
+
*/
|
|
93
|
+
close?: boolean | Partial<ButtonProps>;
|
|
94
|
+
/**
|
|
95
|
+
* The icon displayed in the close button.
|
|
96
|
+
* @defaultValue appConfig.ui.icons.close
|
|
97
|
+
* @IconifyIcon
|
|
98
|
+
*/
|
|
99
|
+
closeIcon?: string;
|
|
100
|
+
/**
|
|
101
|
+
* Display a button to navigate back in history.
|
|
102
|
+
* `{ size: 'md', color: 'neutral', variant: 'link' }`{lang="ts-type"}
|
|
103
|
+
* @defaultValue true
|
|
104
|
+
*/
|
|
105
|
+
back?: boolean | ButtonProps;
|
|
106
|
+
/**
|
|
107
|
+
* The icon displayed in the back button.
|
|
108
|
+
* @defaultValue appConfig.ui.icons.arrowLeft
|
|
109
|
+
* @IconifyIcon
|
|
110
|
+
*/
|
|
111
|
+
backIcon?: string;
|
|
112
|
+
groups?: G[];
|
|
113
|
+
/**
|
|
114
|
+
* Options for [useFuse](https://vueuse.org/integrations/useFuse).
|
|
115
|
+
* @defaultValue {
|
|
116
|
+
fuseOptions: {
|
|
117
|
+
ignoreLocation: true,
|
|
118
|
+
threshold: 0.1,
|
|
119
|
+
keys: ['label', 'suffix']
|
|
120
|
+
},
|
|
121
|
+
resultLimit: 12,
|
|
122
|
+
matchAllWhenSearchEmpty: true
|
|
123
|
+
}
|
|
124
|
+
*/
|
|
125
|
+
fuse?: UseFuseOptions<T>;
|
|
126
|
+
/**
|
|
127
|
+
* The key used to get the label from the item.
|
|
128
|
+
* @defaultValue 'label'
|
|
129
|
+
*/
|
|
130
|
+
labelKey?: string;
|
|
131
|
+
class?: any;
|
|
132
|
+
ui?: CommandPalette['slots'];
|
|
133
|
+
}
|
|
134
|
+
export type CommandPaletteEmits<T extends CommandPaletteItem = CommandPaletteItem> = ListboxRootEmits<T> & {
|
|
135
|
+
'update:open': [value: boolean];
|
|
136
|
+
};
|
|
137
|
+
type SlotProps<T> = (props: {
|
|
138
|
+
item: T;
|
|
139
|
+
index: number;
|
|
140
|
+
}) => any;
|
|
141
|
+
export type CommandPaletteSlots<G extends CommandPaletteGroup<T> = CommandPaletteGroup<any>, T extends CommandPaletteItem = CommandPaletteItem> = {
|
|
142
|
+
'empty'(props: {
|
|
143
|
+
searchTerm?: string;
|
|
144
|
+
}): any;
|
|
145
|
+
'footer'(props: {
|
|
146
|
+
ui: {
|
|
147
|
+
[K in keyof Required<CommandPalette['slots']>]: (props?: Record<string, any>) => string;
|
|
148
|
+
};
|
|
149
|
+
}): any;
|
|
150
|
+
'back'(props: {
|
|
151
|
+
ui: {
|
|
152
|
+
[K in keyof Required<CommandPalette['slots']>]: (props?: Record<string, any>) => string;
|
|
153
|
+
};
|
|
154
|
+
}): any;
|
|
155
|
+
'close'(props: {
|
|
156
|
+
ui: {
|
|
157
|
+
[K in keyof Required<CommandPalette['slots']>]: (props?: Record<string, any>) => string;
|
|
158
|
+
};
|
|
159
|
+
}): any;
|
|
160
|
+
'item': SlotProps<T>;
|
|
161
|
+
'item-leading': SlotProps<T>;
|
|
162
|
+
'item-label': SlotProps<T>;
|
|
163
|
+
'item-trailing': SlotProps<T>;
|
|
164
|
+
} & Record<string, SlotProps<G>> & Record<string, SlotProps<T>>;
|
|
165
|
+
declare const __VLS_export: <G extends CommandPaletteGroup<T>, T extends CommandPaletteItem>(__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<{
|
|
166
|
+
props: __VLS_PrettifyLocal<(CommandPaletteProps<G, T> & {
|
|
167
|
+
searchTerm?: string;
|
|
168
|
+
}) & {
|
|
169
|
+
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
170
|
+
"onUpdate:modelValue"?: ((value: T) => any) | undefined;
|
|
171
|
+
onHighlight?: ((payload: {
|
|
172
|
+
ref: HTMLElement;
|
|
173
|
+
value: T;
|
|
174
|
+
} | undefined) => any) | undefined;
|
|
175
|
+
onEntryFocus?: ((event: CustomEvent<any>) => any) | undefined;
|
|
176
|
+
onLeave?: ((event: Event) => any) | undefined;
|
|
177
|
+
"onUpdate:searchTerm"?: ((value: string) => any) | undefined;
|
|
178
|
+
}> & import("vue").PublicProps;
|
|
179
|
+
expose: (exposed: {}) => void;
|
|
180
|
+
attrs: any;
|
|
181
|
+
slots: CommandPaletteSlots<G, T>;
|
|
182
|
+
emit: (((evt: "update:open", value: boolean) => void) & ((evt: "update:modelValue", value: T) => void) & ((evt: "highlight", payload: {
|
|
183
|
+
ref: HTMLElement;
|
|
184
|
+
value: T;
|
|
185
|
+
} | undefined) => void) & ((evt: "entryFocus", event: CustomEvent<any>) => void) & ((evt: "leave", event: Event) => void)) & ((evt: "update:searchTerm", value: string) => void);
|
|
186
|
+
}>) => import("vue").VNode & {
|
|
187
|
+
__ctx?: Awaited<typeof __VLS_setup>;
|
|
188
|
+
};
|
|
189
|
+
declare const _default: typeof __VLS_export;
|
|
190
|
+
export default _default;
|
|
191
|
+
type __VLS_PrettifyLocal<T> = {
|
|
192
|
+
[K in keyof T as K]: T[K];
|
|
193
|
+
} & {};
|
|
@@ -162,21 +162,21 @@ export type CommandPaletteSlots<G extends CommandPaletteGroup<T> = CommandPalett
|
|
|
162
162
|
'item-label': SlotProps<T>;
|
|
163
163
|
'item-trailing': SlotProps<T>;
|
|
164
164
|
} & Record<string, SlotProps<G>> & Record<string, SlotProps<T>>;
|
|
165
|
-
declare const
|
|
166
|
-
props: __VLS_PrettifyLocal<
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
165
|
+
declare const __VLS_export: <G extends CommandPaletteGroup<T>, T extends CommandPaletteItem>(__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<{
|
|
166
|
+
props: __VLS_PrettifyLocal<(CommandPaletteProps<G, T> & {
|
|
167
|
+
searchTerm?: string;
|
|
168
|
+
}) & {
|
|
169
|
+
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
170
|
+
"onUpdate:modelValue"?: ((value: T) => any) | undefined;
|
|
171
|
+
onHighlight?: ((payload: {
|
|
170
172
|
ref: HTMLElement;
|
|
171
173
|
value: T;
|
|
172
174
|
} | undefined) => any) | undefined;
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
} & import("vue").
|
|
177
|
-
|
|
178
|
-
}) & {}> & import("vue").PublicProps;
|
|
179
|
-
expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
|
|
175
|
+
onEntryFocus?: ((event: CustomEvent<any>) => any) | undefined;
|
|
176
|
+
onLeave?: ((event: Event) => any) | undefined;
|
|
177
|
+
"onUpdate:searchTerm"?: ((value: string) => any) | undefined;
|
|
178
|
+
}> & import("vue").PublicProps;
|
|
179
|
+
expose: (exposed: {}) => void;
|
|
180
180
|
attrs: any;
|
|
181
181
|
slots: CommandPaletteSlots<G, T>;
|
|
182
182
|
emit: (((evt: "update:open", value: boolean) => void) & ((evt: "update:modelValue", value: T) => void) & ((evt: "highlight", payload: {
|
|
@@ -186,6 +186,7 @@ declare const _default: <G extends CommandPaletteGroup<T>, T extends CommandPale
|
|
|
186
186
|
}>) => import("vue").VNode & {
|
|
187
187
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
188
188
|
};
|
|
189
|
+
declare const _default: typeof __VLS_export;
|
|
189
190
|
export default _default;
|
|
190
191
|
type __VLS_PrettifyLocal<T> = {
|
|
191
192
|
[K in keyof T as K]: T[K];
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export interface ContainerProps {
|
|
2
|
+
/**
|
|
3
|
+
* The element or component this component should render as.
|
|
4
|
+
* @defaultValue 'div'
|
|
5
|
+
*/
|
|
6
|
+
as?: any;
|
|
7
|
+
class?: any;
|
|
8
|
+
}
|
|
9
|
+
export interface ContainerSlots {
|
|
10
|
+
default(props?: {}): any;
|
|
11
|
+
}
|
|
12
|
+
declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<ContainerProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ContainerProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, ContainerSlots>;
|
|
13
|
+
declare const _default: typeof __VLS_export;
|
|
14
|
+
export default _default;
|
|
15
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
16
|
+
new (): {
|
|
17
|
+
$slots: S;
|
|
18
|
+
};
|
|
19
|
+
};
|