@xds/vue 1.1.0 → 1.2.0
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/dist/Breadcrumb.js +4 -0
- package/dist/Breadcrumb.vue.d.ts +6 -0
- package/dist/Breadcrumb.vue_vue_type_script_setup_true_lang.js +47 -0
- package/dist/Checkbox.vue_vue_type_script_setup_true_lang.js +11 -3
- package/dist/Combobox.js +4 -0
- package/dist/Combobox.vue.d.ts +22 -0
- package/dist/Combobox.vue_vue_type_script_setup_true_lang.js +140 -0
- package/dist/Link.js +4 -0
- package/dist/Link.vue.d.ts +27 -0
- package/dist/Link.vue_vue_type_script_setup_true_lang.js +62 -0
- package/dist/Pagination.js +4 -0
- package/dist/Pagination.vue.d.ts +9 -0
- package/dist/Pagination.vue_vue_type_script_setup_true_lang.js +74 -0
- package/dist/Popover.js +4 -0
- package/dist/Popover.vue.d.ts +26 -0
- package/dist/Popover.vue_vue_type_script_setup_true_lang.js +81 -0
- package/dist/Select.vue.d.ts +3 -1
- package/dist/Select.vue_vue_type_script_setup_true_lang.js +41 -17
- package/dist/Table.js +4 -0
- package/dist/Table.vue.d.ts +10 -0
- package/dist/Table.vue_vue_type_script_setup_true_lang.js +61 -0
- package/dist/TimePicker.js +4 -0
- package/dist/TimePicker.vue.d.ts +10 -0
- package/dist/TimePicker.vue_vue_type_script_setup_true_lang.js +168 -0
- package/dist/ToastQueue.js +4 -0
- package/dist/ToastQueue.vue.d.ts +9 -0
- package/dist/ToastQueue.vue_vue_type_script_setup_true_lang.js +42 -0
- package/dist/base.d.ts +13 -0
- package/dist/base.js +14 -0
- package/dist/index.d.ts +13 -4
- package/dist/index.js +10 -1
- package/dist/preview.d.ts +20 -3
- package/dist/preview.js +29 -6
- package/eject/files/Accordion.vue +89 -0
- package/eject/files/AccordionPanel.vue +47 -0
- package/eject/files/Avatar.vue +41 -0
- package/eject/files/AvatarStack.vue +46 -0
- package/eject/files/Badge.vue +29 -0
- package/eject/files/Banner.vue +65 -0
- package/eject/files/Breadcrumb.vue +43 -0
- package/eject/files/Button.vue +93 -0
- package/eject/files/Card.vue +85 -0
- package/eject/files/Checkbox.vue +104 -0
- package/eject/files/Chip.vue +32 -0
- package/eject/files/ChipBar.vue +25 -0
- package/eject/files/Combobox.vue +175 -0
- package/eject/files/CountBadge.vue +45 -0
- package/eject/files/DatePicker.vue +223 -0
- package/eject/files/DateRangePicker.vue +317 -0
- package/eject/files/Dialog.vue +105 -0
- package/eject/files/Divider.vue +15 -0
- package/eject/files/EmptyState.vue +28 -0
- package/eject/files/Icon.vue +34 -0
- package/eject/files/IconButton.vue +71 -0
- package/eject/files/Link.vue +48 -0
- package/eject/files/ListRow.vue +33 -0
- package/eject/files/MediaCard.vue +109 -0
- package/eject/files/Menu.vue +181 -0
- package/eject/files/Pagination.vue +88 -0
- package/eject/files/PlaceRow.vue +54 -0
- package/eject/files/Popover.vue +119 -0
- package/eject/files/ProgressBar.vue +34 -0
- package/eject/files/RadioGroup.vue +126 -0
- package/eject/files/SearchField.vue +129 -0
- package/eject/files/SectionHeader.vue +37 -0
- package/eject/files/SegmentedControl.vue +81 -0
- package/eject/files/Select.vue +269 -0
- package/eject/files/Sidebar.vue +101 -0
- package/eject/files/SidebarRailButton.vue +31 -0
- package/eject/files/Skeleton.vue +27 -0
- package/eject/files/Slider.vue +126 -0
- package/eject/files/Spinner.vue +36 -0
- package/eject/files/Switch.vue +88 -0
- package/eject/files/Table.vue +77 -0
- package/eject/files/Tabs.vue +72 -0
- package/eject/files/Text.vue +22 -0
- package/eject/files/TextField.vue +190 -0
- package/eject/files/Thumbnail.vue +62 -0
- package/eject/files/TimePicker.vue +224 -0
- package/eject/files/Toast.vue +83 -0
- package/eject/files/ToastQueue.vue +54 -0
- package/eject/files/Tooltip.vue +28 -0
- package/eject/files/TooltipOverlay.vue +86 -0
- package/eject/files/accordion.css +89 -0
- package/eject/files/accordion.ts +67 -0
- package/eject/files/avatar-stack.ts +57 -0
- package/eject/files/avatar.ts +42 -0
- package/eject/files/badge.ts +30 -0
- package/eject/files/banner.ts +71 -0
- package/eject/files/base.css +38 -0
- package/eject/files/breadcrumb.css +51 -0
- package/eject/files/breadcrumb.ts +42 -0
- package/eject/files/button.css +241 -0
- package/eject/files/button.ts +106 -0
- package/eject/files/card.ts +58 -0
- package/eject/files/checkbox.ts +52 -0
- package/eject/files/chip-bar.ts +16 -0
- package/eject/files/chip.ts +35 -0
- package/eject/files/combobox.css +269 -0
- package/eject/files/combobox.ts +85 -0
- package/eject/files/count-badge.ts +32 -0
- package/eject/files/date-picker.css +375 -0
- package/eject/files/date-picker.ts +280 -0
- package/eject/files/date-range-picker.ts +338 -0
- package/eject/files/dialog.css +139 -0
- package/eject/files/dialog.ts +15 -0
- package/eject/files/divider.ts +5 -0
- package/eject/files/empty-state.ts +22 -0
- package/eject/files/icon.ts +36 -0
- package/eject/files/link.css +64 -0
- package/eject/files/link.ts +63 -0
- package/eject/files/list-row.ts +66 -0
- package/eject/files/media-card.ts +66 -0
- package/eject/files/menu.css +192 -0
- package/eject/files/menu.ts +84 -0
- package/eject/files/overlay.css +40 -0
- package/eject/files/pagination.css +106 -0
- package/eject/files/pagination.ts +68 -0
- package/eject/files/parts.ts +17 -0
- package/eject/files/popover.css +101 -0
- package/eject/files/popover.ts +37 -0
- package/eject/files/progress-bar.ts +26 -0
- package/eject/files/radio-group.css +184 -0
- package/eject/files/radio-group.ts +30 -0
- package/eject/files/section-header.ts +32 -0
- package/eject/files/segmented-control.ts +33 -0
- package/eject/files/select.css +347 -0
- package/eject/files/select.ts +77 -0
- package/eject/files/sidebar.ts +75 -0
- package/eject/files/skeleton.ts +51 -0
- package/eject/files/slider.css +160 -0
- package/eject/files/slider.ts +80 -0
- package/eject/files/spinner.ts +22 -0
- package/eject/files/switch.ts +45 -0
- package/eject/files/table.css +107 -0
- package/eject/files/table.ts +84 -0
- package/eject/files/tabs.css +120 -0
- package/eject/files/tabs.ts +37 -0
- package/eject/files/text-field.css +225 -0
- package/eject/files/text-field.ts +64 -0
- package/eject/files/text.ts +38 -0
- package/eject/files/thumbnail.ts +51 -0
- package/eject/files/time-picker.ts +113 -0
- package/eject/files/toast-queue.ts +64 -0
- package/eject/files/toast.ts +31 -0
- package/eject/files/tooltip.css +111 -0
- package/eject/files/tooltip.ts +21 -0
- package/eject/manifest.json +1122 -0
- package/package.json +11 -4
- package/styles.css +1066 -168
- package/tailwind.css +1295 -218
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import Breadcrumb_vue_vue_type_script_setup_true_lang_default from "./Breadcrumb.vue_vue_type_script_setup_true_lang.js";
|
|
2
|
+
// packages/ui-vue/src/Breadcrumb.vue
|
|
3
|
+
var Breadcrumb_default = Breadcrumb_vue_vue_type_script_setup_true_lang_default;
|
|
4
|
+
export { Breadcrumb_default as default };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { type BreadcrumbBaseProps } from "@xds/core";
|
|
2
|
+
export type { BreadcrumbItem } from "@xds/core";
|
|
3
|
+
export type BreadcrumbProps = BreadcrumbBaseProps;
|
|
4
|
+
declare const __VLS_export: import("vue").DefineComponent<BreadcrumbBaseProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<BreadcrumbBaseProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
5
|
+
declare const _default: typeof __VLS_export;
|
|
6
|
+
export default _default;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import Icon_default from "./Icon.js";
|
|
2
|
+
import { useLabels } from "./labels.js";
|
|
3
|
+
import Link_default from "./Link.js";
|
|
4
|
+
import { Fragment, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, normalizeClass, openBlock, renderList, toDisplayString, unref, withCtx } from "vue";
|
|
5
|
+
import { BREADCRUMB_PARTS, BREADCRUMB_SEPARATOR, rootPart } from "@xds/core";
|
|
6
|
+
// packages/ui-vue/src/Breadcrumb.vue?vue&type=script&setup=true&lang.ts
|
|
7
|
+
var _hoisted_1 = ["aria-label"];
|
|
8
|
+
var Breadcrumb_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComponent({
|
|
9
|
+
__name: "Breadcrumb",
|
|
10
|
+
props: {
|
|
11
|
+
items: {},
|
|
12
|
+
label: {}
|
|
13
|
+
},
|
|
14
|
+
setup(__props) {
|
|
15
|
+
const labels = useLabels();
|
|
16
|
+
return (_ctx, _cache) => {
|
|
17
|
+
return openBlock(), createElementBlock("nav", {
|
|
18
|
+
class: normalizeClass(unref(rootPart)("Breadcrumb")),
|
|
19
|
+
"aria-label": __props.label ?? unref(labels).breadcrumb
|
|
20
|
+
}, [createElementVNode("ol", { class: normalizeClass(unref(BREADCRUMB_PARTS).list) }, [(openBlock(true), createElementBlock(Fragment, null, renderList(__props.items, (item, index) => {
|
|
21
|
+
return openBlock(), createElementBlock("li", {
|
|
22
|
+
key: index,
|
|
23
|
+
class: normalizeClass(unref(BREADCRUMB_PARTS).item)
|
|
24
|
+
}, [index === __props.items.length - 1 ? (openBlock(), createElementBlock("span", {
|
|
25
|
+
key: 0,
|
|
26
|
+
"aria-current": "page",
|
|
27
|
+
class: normalizeClass(unref(BREADCRUMB_PARTS).current)
|
|
28
|
+
}, toDisplayString(item.label), 3)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [createVNode(Link_default, {
|
|
29
|
+
href: item.href,
|
|
30
|
+
onPress: ($event) => item.onPress?.()
|
|
31
|
+
}, {
|
|
32
|
+
default: withCtx(() => [createTextVNode(toDisplayString(item.label), 1)]),
|
|
33
|
+
_: 2
|
|
34
|
+
}, 1032, ["href", "onPress"]), createVNode(Icon_default, {
|
|
35
|
+
name: unref(BREADCRUMB_SEPARATOR).name,
|
|
36
|
+
size: unref(BREADCRUMB_SEPARATOR).size,
|
|
37
|
+
class: normalizeClass(unref(BREADCRUMB_PARTS).separator)
|
|
38
|
+
}, null, 8, [
|
|
39
|
+
"name",
|
|
40
|
+
"size",
|
|
41
|
+
"class"
|
|
42
|
+
])], 64))], 2);
|
|
43
|
+
}), 128))], 2)], 10, _hoisted_1);
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
});
|
|
47
|
+
export { Breadcrumb_vue_vue_type_script_setup_true_lang_default as default };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { focusable, formDefault, keepChecked, useControllable, useFormReset } from "./controlled.js";
|
|
2
|
-
import { createCommentVNode, createElementBlock, createElementVNode, defineComponent, mergeProps, normalizeClass, openBlock, toDisplayString, unref, useTemplateRef } from "vue";
|
|
3
|
-
import {
|
|
2
|
+
import { createCommentVNode, createElementBlock, createElementVNode, defineComponent, mergeProps, normalizeClass, openBlock, toDisplayString, unref, useTemplateRef, watchEffect } from "vue";
|
|
3
|
+
import { checkboxBoxClass, checkboxClass, checkboxLabelClass, checkboxMark, checkboxMarkClass, classes, rootPart } from "@xds/core";
|
|
4
4
|
// packages/ui-vue/src/Checkbox.vue?vue&type=script&setup=true&lang.ts
|
|
5
5
|
var _hoisted_1 = [
|
|
6
6
|
"aria-label",
|
|
@@ -17,6 +17,10 @@ var Checkbox_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineC
|
|
|
17
17
|
type: Boolean,
|
|
18
18
|
default: false
|
|
19
19
|
},
|
|
20
|
+
indeterminate: {
|
|
21
|
+
type: Boolean,
|
|
22
|
+
default: false
|
|
23
|
+
},
|
|
20
24
|
label: {},
|
|
21
25
|
name: {},
|
|
22
26
|
disabled: {
|
|
@@ -36,8 +40,12 @@ var Checkbox_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineC
|
|
|
36
40
|
const { value: checked, set, controlled, reset } = useControllable("checked", () => __props.checked, () => __props.defaultChecked, (next) => emit("update:checked", next));
|
|
37
41
|
useFormReset(() => input.value, controlled, reset);
|
|
38
42
|
__expose(focusable(() => input.value));
|
|
43
|
+
watchEffect(() => {
|
|
44
|
+
if (input.value) input.value.indeterminate = __props.indeterminate;
|
|
45
|
+
});
|
|
39
46
|
function change(event) {
|
|
40
47
|
const element = event.currentTarget;
|
|
48
|
+
element.indeterminate = __props.indeterminate;
|
|
41
49
|
set(element.checked);
|
|
42
50
|
keepChecked(element, () => checked.value);
|
|
43
51
|
}
|
|
@@ -63,7 +71,7 @@ var Checkbox_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineC
|
|
|
63
71
|
"aria-hidden": "true",
|
|
64
72
|
class: normalizeClass(unref(checkboxMarkClass))
|
|
65
73
|
}, [createElementVNode("path", {
|
|
66
|
-
d: unref(
|
|
74
|
+
d: unref(checkboxMark)(__props.indeterminate),
|
|
67
75
|
stroke: "currentColor",
|
|
68
76
|
"stroke-width": "2",
|
|
69
77
|
"stroke-linecap": "round",
|
package/dist/Combobox.js
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import Combobox_vue_vue_type_script_setup_true_lang_default from "./Combobox.vue_vue_type_script_setup_true_lang.js";
|
|
2
|
+
// packages/ui-vue/src/Combobox.vue
|
|
3
|
+
var Combobox_default = Combobox_vue_vue_type_script_setup_true_lang_default;
|
|
4
|
+
export { Combobox_default as default };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { type ComboboxBaseProps } from "@xds/core";
|
|
2
|
+
export type ComboboxProps<Value extends string = string> = ComboboxBaseProps<Value>;
|
|
3
|
+
declare const __VLS_export: <Value extends string = string>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>['props'], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, 'attrs' | 'emit' | 'slots'>>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>['expose'], __VLS_setup?: Promise<{
|
|
4
|
+
props: import('vue').PublicProps & __VLS_PrettifyLocal<ComboboxProps<Value> & {
|
|
5
|
+
"onUpdate:value"?: ((value: Value) => any) | undefined;
|
|
6
|
+
}> & (typeof globalThis extends {
|
|
7
|
+
__VLS_PROPS_FALLBACK: infer P;
|
|
8
|
+
} ? P : {});
|
|
9
|
+
expose: (exposed: {}) => void;
|
|
10
|
+
attrs: any;
|
|
11
|
+
slots: {};
|
|
12
|
+
emit: (evt: "update:value", value: Value) => void;
|
|
13
|
+
}>) => import('vue').VNode & {
|
|
14
|
+
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
15
|
+
};
|
|
16
|
+
declare const _default: typeof __VLS_export;
|
|
17
|
+
export default _default;
|
|
18
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? {
|
|
19
|
+
[K in keyof T]: T[K];
|
|
20
|
+
} : {
|
|
21
|
+
[K in keyof T as K]: T[K];
|
|
22
|
+
}) & {};
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
import { useControllable, useFormReset } from "./controlled.js";
|
|
2
|
+
import Icon_default from "./Icon.js";
|
|
3
|
+
import { useLabels } from "./labels.js";
|
|
4
|
+
import Portal_default from "./Portal.js";
|
|
5
|
+
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, mergeProps, normalizeClass, openBlock, renderList, shallowRef, toDisplayString, unref, useId, useTemplateRef, withCtx } from "vue";
|
|
6
|
+
import { COMBOBOX_PARTS, matchOptions, readCssPx, selectOptionIds } from "@xds/core";
|
|
7
|
+
import { mergeProps as mergeProps$1, normalizeProps as normalizeProps$1, useMachine } from "@zag-js/vue";
|
|
8
|
+
import { space } from "@xds/tokens";
|
|
9
|
+
import * as combobox from "@zag-js/combobox";
|
|
10
|
+
// packages/ui-vue/src/Combobox.vue?vue&type=script&setup=true&lang.ts
|
|
11
|
+
var _hoisted_1 = ["aria-describedby"];
|
|
12
|
+
var _hoisted_2 = ["name", "value"];
|
|
13
|
+
var _hoisted_3 = ["aria-labelledby", "aria-describedby"];
|
|
14
|
+
var _hoisted_4 = ["id"];
|
|
15
|
+
var _hoisted_5 = ["id"];
|
|
16
|
+
var Combobox_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComponent({
|
|
17
|
+
__name: "Combobox",
|
|
18
|
+
props: {
|
|
19
|
+
label: {},
|
|
20
|
+
options: {},
|
|
21
|
+
value: {},
|
|
22
|
+
defaultValue: {},
|
|
23
|
+
placeholder: {},
|
|
24
|
+
description: {},
|
|
25
|
+
error: {},
|
|
26
|
+
name: {},
|
|
27
|
+
disabled: {
|
|
28
|
+
type: Boolean,
|
|
29
|
+
default: false
|
|
30
|
+
},
|
|
31
|
+
emptyLabel: {}
|
|
32
|
+
},
|
|
33
|
+
emits: ["update:value"],
|
|
34
|
+
setup(__props, { emit: __emit }) {
|
|
35
|
+
const emit = __emit;
|
|
36
|
+
const labels = useLabels();
|
|
37
|
+
const { value, set, controlled, reset } = useControllable("value", () => __props.value, () => __props.defaultValue, (next) => {
|
|
38
|
+
if (next !== void 0) emit("update:value", next);
|
|
39
|
+
});
|
|
40
|
+
const root = useTemplateRef("root");
|
|
41
|
+
useFormReset(() => root.value, controlled, reset);
|
|
42
|
+
const id = useId();
|
|
43
|
+
const descriptionId = `${id}-description`;
|
|
44
|
+
const errorId = `${id}-error`;
|
|
45
|
+
const invalid = computed(() => __props.error !== void 0);
|
|
46
|
+
const query = shallowRef("");
|
|
47
|
+
const shown = computed(() => matchOptions(__props.options, query.value));
|
|
48
|
+
const collection = computed(() => combobox.collection({
|
|
49
|
+
items: shown.value,
|
|
50
|
+
itemToValue: (option) => option.value,
|
|
51
|
+
itemToString: (option) => option.label
|
|
52
|
+
}));
|
|
53
|
+
const service = useMachine(combobox.machine, computed(() => ({
|
|
54
|
+
id,
|
|
55
|
+
collection: collection.value,
|
|
56
|
+
value: value.value === void 0 ? [] : [value.value],
|
|
57
|
+
onValueChange: (details) => {
|
|
58
|
+
const next = details.value[0];
|
|
59
|
+
if (next !== void 0) set(next);
|
|
60
|
+
},
|
|
61
|
+
onInputValueChange: (details) => {
|
|
62
|
+
if (details.reason === "input-change") query.value = details.inputValue;
|
|
63
|
+
},
|
|
64
|
+
onOpenChange: (details) => {
|
|
65
|
+
if (!details.open) query.value = "";
|
|
66
|
+
},
|
|
67
|
+
inputBehavior: "autohighlight",
|
|
68
|
+
selectionBehavior: "replace",
|
|
69
|
+
openOnClick: true,
|
|
70
|
+
disabled: __props.disabled,
|
|
71
|
+
invalid: invalid.value,
|
|
72
|
+
placeholder: __props.placeholder,
|
|
73
|
+
positioning: {
|
|
74
|
+
placement: "bottom-start",
|
|
75
|
+
gutter: readCssPx(null, "--xds-space-1", space[1]),
|
|
76
|
+
sameWidth: true,
|
|
77
|
+
overflowPadding: readCssPx(null, "--xds-space-3", space[3])
|
|
78
|
+
}
|
|
79
|
+
})));
|
|
80
|
+
const api = computed(() => combobox.connect(service, normalizeProps$1));
|
|
81
|
+
const input = computed(() => mergeProps$1(api.value.getInputProps(), { onBlur: () => {
|
|
82
|
+
const chosen = __props.options.find((option) => option.value === value.value)?.label ?? "";
|
|
83
|
+
const now = combobox.connect(service, normalizeProps$1);
|
|
84
|
+
if (now.inputValue !== chosen) now.setInputValue(chosen, "script");
|
|
85
|
+
} }));
|
|
86
|
+
return (_ctx, _cache) => {
|
|
87
|
+
return openBlock(), createElementBlock("div", mergeProps({
|
|
88
|
+
ref_key: "root",
|
|
89
|
+
ref: root
|
|
90
|
+
}, api.value.getRootProps(), { class: "xds-combobox" }), [
|
|
91
|
+
createElementVNode("label", mergeProps(api.value.getLabelProps(), { class: unref(COMBOBOX_PARTS).label }), toDisplayString(__props.label), 17),
|
|
92
|
+
createElementVNode("div", mergeProps(api.value.getControlProps(), { class: unref(COMBOBOX_PARTS).control }), [createElementVNode("input", mergeProps(input.value, {
|
|
93
|
+
"aria-describedby": invalid.value ? errorId : __props.description ? descriptionId : void 0,
|
|
94
|
+
class: unref(COMBOBOX_PARTS).input
|
|
95
|
+
}), null, 16, _hoisted_1), createVNode(Icon_default, {
|
|
96
|
+
name: "chevrons-up-down",
|
|
97
|
+
size: "sm",
|
|
98
|
+
class: normalizeClass(unref(COMBOBOX_PARTS).icon)
|
|
99
|
+
}, null, 8, ["class"])], 16),
|
|
100
|
+
createElementVNode("div", { class: normalizeClass(unref(COMBOBOX_PARTS).footer) }, [!invalid.value && __props.description ? (openBlock(), createElementBlock("span", {
|
|
101
|
+
key: 0,
|
|
102
|
+
id: descriptionId,
|
|
103
|
+
class: normalizeClass(unref(COMBOBOX_PARTS).description)
|
|
104
|
+
}, toDisplayString(__props.description), 3)) : createCommentVNode("", true), createElementVNode("span", {
|
|
105
|
+
id: errorId,
|
|
106
|
+
class: normalizeClass(unref(COMBOBOX_PARTS).error),
|
|
107
|
+
"aria-live": "polite"
|
|
108
|
+
}, toDisplayString(__props.error), 3)], 2),
|
|
109
|
+
__props.name !== void 0 ? (openBlock(), createElementBlock("input", {
|
|
110
|
+
key: 0,
|
|
111
|
+
type: "hidden",
|
|
112
|
+
name: __props.name,
|
|
113
|
+
value: unref(value) ?? ""
|
|
114
|
+
}, null, 8, _hoisted_2)) : createCommentVNode("", true),
|
|
115
|
+
createVNode(Portal_default, null, {
|
|
116
|
+
default: withCtx(() => [createElementVNode("div", mergeProps(api.value.getPositionerProps(), { class: unref(COMBOBOX_PARTS).positioner }), [createElementVNode("div", mergeProps(api.value.getContentProps(), { class: unref(COMBOBOX_PARTS).content }), [shown.value.length === 0 ? (openBlock(), createElementBlock("div", mergeProps({ key: 0 }, api.value.getEmptyProps(), { class: unref(COMBOBOX_PARTS).empty }), toDisplayString(__props.emptyLabel ?? unref(labels).noMatches), 17)) : (openBlock(), createElementBlock("div", mergeProps({ key: 1 }, api.value.getListProps(), { class: unref(COMBOBOX_PARTS).list }), [(openBlock(true), createElementBlock(Fragment, null, renderList(shown.value, (option, index) => {
|
|
117
|
+
return openBlock(), createElementBlock("div", mergeProps({ key: option.value }, { ref_for: true }, api.value.getItemProps({ item: option }), {
|
|
118
|
+
"aria-labelledby": unref(selectOptionIds)(unref(id), index).label,
|
|
119
|
+
"aria-describedby": option.description ? unref(selectOptionIds)(unref(id), index).description : void 0,
|
|
120
|
+
class: unref(COMBOBOX_PARTS).item
|
|
121
|
+
}), [createElementVNode("span", { class: normalizeClass(unref(COMBOBOX_PARTS).itemWords) }, [createElementVNode("span", mergeProps({ ref_for: true }, api.value.getItemTextProps({ item: option }), {
|
|
122
|
+
id: unref(selectOptionIds)(unref(id), index).label,
|
|
123
|
+
class: unref(COMBOBOX_PARTS).itemLabel
|
|
124
|
+
}), toDisplayString(option.label), 17, _hoisted_4), option.description ? (openBlock(), createElementBlock("span", {
|
|
125
|
+
key: 0,
|
|
126
|
+
id: unref(selectOptionIds)(unref(id), index).description,
|
|
127
|
+
class: normalizeClass(unref(COMBOBOX_PARTS).itemDescription)
|
|
128
|
+
}, toDisplayString(option.description), 11, _hoisted_5)) : createCommentVNode("", true)], 2), api.value.getItemState({ item: option }).selected ? (openBlock(), createBlock(Icon_default, {
|
|
129
|
+
key: 0,
|
|
130
|
+
name: "check",
|
|
131
|
+
size: "sm"
|
|
132
|
+
})) : createCommentVNode("", true)], 16, _hoisted_3);
|
|
133
|
+
}), 128))], 16))], 16)], 16)]),
|
|
134
|
+
_: 1
|
|
135
|
+
})
|
|
136
|
+
], 16);
|
|
137
|
+
};
|
|
138
|
+
}
|
|
139
|
+
});
|
|
140
|
+
export { Combobox_vue_vue_type_script_setup_true_lang_default as default };
|
package/dist/Link.js
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { type LinkBaseProps } from "@xds/core";
|
|
2
|
+
export type LinkProps = LinkBaseProps;
|
|
3
|
+
type __VLS_Slots = {
|
|
4
|
+
/** The text, which names the link. */
|
|
5
|
+
default(): unknown;
|
|
6
|
+
};
|
|
7
|
+
declare const __VLS_base: import("vue").DefineComponent<LinkBaseProps, {
|
|
8
|
+
focus: (options?: FocusOptions) => void | undefined;
|
|
9
|
+
blur: () => void | undefined;
|
|
10
|
+
element: () => HTMLElement | null;
|
|
11
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
12
|
+
blur: (event: FocusEvent) => any;
|
|
13
|
+
focus: (event: FocusEvent) => any;
|
|
14
|
+
press: () => any;
|
|
15
|
+
}, string, import("vue").PublicProps, Readonly<LinkBaseProps> & Readonly<{
|
|
16
|
+
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
17
|
+
onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
18
|
+
onPress?: (() => any) | undefined;
|
|
19
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
20
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
21
|
+
declare const _default: typeof __VLS_export;
|
|
22
|
+
export default _default;
|
|
23
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
24
|
+
new (): {
|
|
25
|
+
$slots: S;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { focusable } from "./controlled.js";
|
|
2
|
+
import Icon_default from "./Icon.js";
|
|
3
|
+
import { computed, createBlock, createCommentVNode, defineComponent, mergeProps, normalizeClass, openBlock, renderSlot, resolveDynamicComponent, unref, useTemplateRef, withCtx } from "vue";
|
|
4
|
+
import { LINK_ICON, LINK_PARTS, linkElement, rootPart } from "@xds/core";
|
|
5
|
+
// packages/ui-vue/src/Link.vue?vue&type=script&setup=true&lang.ts
|
|
6
|
+
var Link_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComponent({
|
|
7
|
+
__name: "Link",
|
|
8
|
+
props: {
|
|
9
|
+
href: {},
|
|
10
|
+
external: {
|
|
11
|
+
type: Boolean,
|
|
12
|
+
default: false
|
|
13
|
+
},
|
|
14
|
+
disabled: {
|
|
15
|
+
type: Boolean,
|
|
16
|
+
default: false
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
emits: [
|
|
20
|
+
"press",
|
|
21
|
+
"focus",
|
|
22
|
+
"blur"
|
|
23
|
+
],
|
|
24
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
25
|
+
/** `press` comes before the browser follows `href`. A disabled link never sends it. */
|
|
26
|
+
const emit = __emit;
|
|
27
|
+
const root = useTemplateRef("root");
|
|
28
|
+
__expose(focusable(() => root.value));
|
|
29
|
+
const element = computed(() => linkElement({
|
|
30
|
+
href: __props.href,
|
|
31
|
+
external: __props.external,
|
|
32
|
+
disabled: __props.disabled
|
|
33
|
+
}));
|
|
34
|
+
function press() {
|
|
35
|
+
if (!__props.disabled) emit("press");
|
|
36
|
+
}
|
|
37
|
+
return (_ctx, _cache) => {
|
|
38
|
+
return openBlock(), createBlock(resolveDynamicComponent(element.value.tag), mergeProps({
|
|
39
|
+
ref_key: "root",
|
|
40
|
+
ref: root
|
|
41
|
+
}, element.value.attributes, {
|
|
42
|
+
class: unref(rootPart)("Link"),
|
|
43
|
+
onClick: press,
|
|
44
|
+
onFocus: _cache[0] || (_cache[0] = ($event) => emit("focus", $event)),
|
|
45
|
+
onBlur: _cache[1] || (_cache[1] = ($event) => emit("blur", $event))
|
|
46
|
+
}), {
|
|
47
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default"), __props.external ? (openBlock(), createBlock(Icon_default, {
|
|
48
|
+
key: 0,
|
|
49
|
+
name: unref(LINK_ICON).name,
|
|
50
|
+
size: unref(LINK_ICON).size,
|
|
51
|
+
class: normalizeClass(unref(LINK_PARTS).icon)
|
|
52
|
+
}, null, 8, [
|
|
53
|
+
"name",
|
|
54
|
+
"size",
|
|
55
|
+
"class"
|
|
56
|
+
])) : createCommentVNode("", true)]),
|
|
57
|
+
_: 3
|
|
58
|
+
}, 16, ["class"]);
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
});
|
|
62
|
+
export { Link_vue_vue_type_script_setup_true_lang_default as default };
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import Pagination_vue_vue_type_script_setup_true_lang_default from "./Pagination.vue_vue_type_script_setup_true_lang.js";
|
|
2
|
+
// packages/ui-vue/src/Pagination.vue
|
|
3
|
+
var Pagination_default = Pagination_vue_vue_type_script_setup_true_lang_default;
|
|
4
|
+
export { Pagination_default as default };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type PaginationBaseProps } from "@xds/core";
|
|
2
|
+
export type PaginationProps = PaginationBaseProps;
|
|
3
|
+
declare const __VLS_export: import("vue").DefineComponent<PaginationBaseProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
4
|
+
"update:value": (value: number) => any;
|
|
5
|
+
}, string, import("vue").PublicProps, Readonly<PaginationBaseProps> & Readonly<{
|
|
6
|
+
"onUpdate:value"?: ((value: number) => any) | undefined;
|
|
7
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
8
|
+
declare const _default: typeof __VLS_export;
|
|
9
|
+
export default _default;
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { useControllable } from "./controlled.js";
|
|
2
|
+
import Icon_default from "./Icon.js";
|
|
3
|
+
import { useLabels } from "./labels.js";
|
|
4
|
+
import { Fragment, computed, createElementBlock, createElementVNode, createVNode, defineComponent, normalizeClass, openBlock, renderList, toDisplayString, unref } from "vue";
|
|
5
|
+
import { PAGINATION_PARTS, PAGINATION_STEPS, clampPage, paginationEntries, rootPart } from "@xds/core";
|
|
6
|
+
// packages/ui-vue/src/Pagination.vue?vue&type=script&setup=true&lang.ts
|
|
7
|
+
var _hoisted_1 = ["aria-label"];
|
|
8
|
+
var _hoisted_2 = ["aria-label", "aria-disabled"];
|
|
9
|
+
var _hoisted_3 = ["aria-current", "onClick"];
|
|
10
|
+
var _hoisted_4 = ["aria-label", "aria-disabled"];
|
|
11
|
+
var Pagination_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComponent({
|
|
12
|
+
__name: "Pagination",
|
|
13
|
+
props: {
|
|
14
|
+
count: {},
|
|
15
|
+
value: {},
|
|
16
|
+
defaultValue: {},
|
|
17
|
+
label: {},
|
|
18
|
+
previousLabel: {},
|
|
19
|
+
nextLabel: {}
|
|
20
|
+
},
|
|
21
|
+
emits: ["update:value"],
|
|
22
|
+
setup(__props, { emit: __emit }) {
|
|
23
|
+
const emit = __emit;
|
|
24
|
+
const { value, set } = useControllable("value", () => __props.value, () => __props.defaultValue ?? 1, (next) => emit("update:value", next));
|
|
25
|
+
const labels = useLabels();
|
|
26
|
+
const page = computed(() => clampPage(value.value ?? 1, __props.count));
|
|
27
|
+
const last = computed(() => Math.max(1, Math.floor(__props.count)));
|
|
28
|
+
const entries = computed(() => paginationEntries(page.value, __props.count));
|
|
29
|
+
const go = (next) => {
|
|
30
|
+
if (next !== page.value && next >= 1 && next <= last.value) set(next);
|
|
31
|
+
};
|
|
32
|
+
return (_ctx, _cache) => {
|
|
33
|
+
return openBlock(), createElementBlock("nav", {
|
|
34
|
+
class: normalizeClass(unref(rootPart)("Pagination")),
|
|
35
|
+
"aria-label": __props.label ?? unref(labels).pagination
|
|
36
|
+
}, [createElementVNode("ul", { class: normalizeClass(unref(PAGINATION_PARTS).list) }, [
|
|
37
|
+
createElementVNode("li", null, [createElementVNode("button", {
|
|
38
|
+
type: "button",
|
|
39
|
+
class: normalizeClass(unref(PAGINATION_PARTS).step),
|
|
40
|
+
"aria-label": __props.previousLabel ?? unref(labels).previousPage,
|
|
41
|
+
"aria-disabled": page.value <= 1 ? true : void 0,
|
|
42
|
+
onClick: _cache[0] || (_cache[0] = ($event) => go(page.value - 1))
|
|
43
|
+
}, [createVNode(Icon_default, {
|
|
44
|
+
name: unref(PAGINATION_STEPS).previous,
|
|
45
|
+
size: unref(PAGINATION_STEPS).size
|
|
46
|
+
}, null, 8, ["name", "size"])], 10, _hoisted_2)]),
|
|
47
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(entries.value, (entry, index) => {
|
|
48
|
+
return openBlock(), createElementBlock("li", { key: entry === "gap" ? `gap-${index}` : entry }, [entry === "gap" ? (openBlock(), createElementBlock("span", {
|
|
49
|
+
key: 0,
|
|
50
|
+
class: normalizeClass(unref(PAGINATION_PARTS).gap),
|
|
51
|
+
"aria-hidden": "true"
|
|
52
|
+
}, "…", 2)) : (openBlock(), createElementBlock("button", {
|
|
53
|
+
key: 1,
|
|
54
|
+
type: "button",
|
|
55
|
+
class: normalizeClass(unref(PAGINATION_PARTS).page),
|
|
56
|
+
"aria-current": entry === page.value ? "page" : void 0,
|
|
57
|
+
onClick: ($event) => go(entry)
|
|
58
|
+
}, toDisplayString(entry), 11, _hoisted_3))]);
|
|
59
|
+
}), 128)),
|
|
60
|
+
createElementVNode("li", null, [createElementVNode("button", {
|
|
61
|
+
type: "button",
|
|
62
|
+
class: normalizeClass(unref(PAGINATION_PARTS).step),
|
|
63
|
+
"aria-label": __props.nextLabel ?? unref(labels).nextPage,
|
|
64
|
+
"aria-disabled": page.value >= last.value ? true : void 0,
|
|
65
|
+
onClick: _cache[1] || (_cache[1] = ($event) => go(page.value + 1))
|
|
66
|
+
}, [createVNode(Icon_default, {
|
|
67
|
+
name: unref(PAGINATION_STEPS).next,
|
|
68
|
+
size: unref(PAGINATION_STEPS).size
|
|
69
|
+
}, null, 8, ["name", "size"])], 10, _hoisted_4)])
|
|
70
|
+
], 2)], 10, _hoisted_1);
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
});
|
|
74
|
+
export { Pagination_vue_vue_type_script_setup_true_lang_default as default };
|
package/dist/Popover.js
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { type PopoverBaseProps } from "@xds/core";
|
|
2
|
+
export type PopoverProps = PopoverBaseProps;
|
|
3
|
+
type __VLS_Props = PopoverProps & {
|
|
4
|
+
id?: string;
|
|
5
|
+
};
|
|
6
|
+
type __VLS_Slots = {
|
|
7
|
+
/** The control that opens it: a Button or an IconButton. */
|
|
8
|
+
trigger(): unknown;
|
|
9
|
+
/** What it holds: a few lines of text, a short form, actions. */
|
|
10
|
+
default?(): unknown;
|
|
11
|
+
};
|
|
12
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
13
|
+
openChange: (open: boolean) => any;
|
|
14
|
+
"update:open": (open: boolean) => any;
|
|
15
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
16
|
+
onOpenChange?: ((open: boolean) => any) | undefined;
|
|
17
|
+
"onUpdate:open"?: ((open: boolean) => any) | undefined;
|
|
18
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
19
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
20
|
+
declare const _default: typeof __VLS_export;
|
|
21
|
+
export default _default;
|
|
22
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
23
|
+
new (): {
|
|
24
|
+
$slots: S;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { useControllable } from "./controlled.js";
|
|
2
|
+
import IconButton_default from "./IconButton.js";
|
|
3
|
+
import { useLabels } from "./labels.js";
|
|
4
|
+
import Portal_default from "./Portal.js";
|
|
5
|
+
import { usePresence } from "./presence.js";
|
|
6
|
+
import { TriggerScope } from "./trigger.js";
|
|
7
|
+
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, mergeProps, normalizeClass, openBlock, renderSlot, toDisplayString, unref, useId, useTemplateRef, withCtx } from "vue";
|
|
8
|
+
import { POPOVER_PARTS, leaveEscapeToFields, readCssPx } from "@xds/core";
|
|
9
|
+
import { mergeProps as mergeProps$1, normalizeProps as normalizeProps$1, useMachine } from "@zag-js/vue";
|
|
10
|
+
import { space } from "@xds/tokens";
|
|
11
|
+
import * as popover from "@zag-js/popover";
|
|
12
|
+
// packages/ui-vue/src/Popover.vue?vue&type=script&setup=true&lang.ts
|
|
13
|
+
var Popover_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComponent({
|
|
14
|
+
inheritAttrs: false,
|
|
15
|
+
__name: "Popover",
|
|
16
|
+
props: {
|
|
17
|
+
title: {},
|
|
18
|
+
placement: { default: "bottom" },
|
|
19
|
+
closeLabel: {},
|
|
20
|
+
open: { type: Boolean },
|
|
21
|
+
defaultOpen: {
|
|
22
|
+
type: Boolean,
|
|
23
|
+
default: false
|
|
24
|
+
},
|
|
25
|
+
id: {}
|
|
26
|
+
},
|
|
27
|
+
emits: ["update:open", "openChange"],
|
|
28
|
+
setup(__props, { emit: __emit }) {
|
|
29
|
+
const emit = __emit;
|
|
30
|
+
const labels = useLabels();
|
|
31
|
+
const { value: open, set } = useControllable("open", () => __props.open, () => __props.defaultOpen, (next) => {
|
|
32
|
+
emit("update:open", next ?? false);
|
|
33
|
+
emit("openChange", next ?? false);
|
|
34
|
+
});
|
|
35
|
+
const content = useTemplateRef("content");
|
|
36
|
+
const id = useId();
|
|
37
|
+
const service = useMachine(popover.machine, computed(() => ({
|
|
38
|
+
id,
|
|
39
|
+
ids: { content: __props.id },
|
|
40
|
+
open: open.value ?? false,
|
|
41
|
+
onOpenChange: (details) => set(details.open),
|
|
42
|
+
positioning: {
|
|
43
|
+
placement: __props.placement,
|
|
44
|
+
gutter: readCssPx(null, "--xds-space-1", space[1])
|
|
45
|
+
},
|
|
46
|
+
onEscapeKeyDown: leaveEscapeToFields,
|
|
47
|
+
initialFocusEl: () => content.value
|
|
48
|
+
})));
|
|
49
|
+
const api = computed(() => popover.connect(service, normalizeProps$1));
|
|
50
|
+
const trigger = computed(() => mergeProps$1(api.value.getTriggerProps(), { class: POPOVER_PARTS.trigger }));
|
|
51
|
+
const present = usePresence(() => api.value.open, () => [content.value]);
|
|
52
|
+
return (_ctx, _cache) => {
|
|
53
|
+
return openBlock(), createElementBlock(Fragment, null, [createVNode(unref(TriggerScope), { trigger: trigger.value }, {
|
|
54
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "trigger")]),
|
|
55
|
+
_: 3
|
|
56
|
+
}, 8, ["trigger"]), unref(present) ? (openBlock(), createBlock(Portal_default, { key: 0 }, {
|
|
57
|
+
default: withCtx(() => [createVNode(unref(TriggerScope), { trigger: null }, {
|
|
58
|
+
default: withCtx(() => [createElementVNode("div", mergeProps(api.value.getPositionerProps(), { class: unref(POPOVER_PARTS).positioner }), [createElementVNode("section", mergeProps(unref(mergeProps$1)(api.value.getContentProps(), _ctx.$attrs), {
|
|
59
|
+
ref_key: "content",
|
|
60
|
+
ref: content,
|
|
61
|
+
hidden: false,
|
|
62
|
+
class: "xds-popover"
|
|
63
|
+
}), [createElementVNode("div", { class: normalizeClass(unref(POPOVER_PARTS).header) }, [createElementVNode("h2", mergeProps(api.value.getTitleProps(), { class: unref(POPOVER_PARTS).title }), toDisplayString(__props.title), 17), createVNode(IconButton_default, {
|
|
64
|
+
icon: "x",
|
|
65
|
+
label: __props.closeLabel ?? unref(labels).close,
|
|
66
|
+
variant: "ghost",
|
|
67
|
+
size: "sm",
|
|
68
|
+
class: normalizeClass(unref(POPOVER_PARTS).close),
|
|
69
|
+
onPress: _cache[0] || (_cache[0] = ($event) => api.value.setOpen(false))
|
|
70
|
+
}, null, 8, ["label", "class"])], 2), _ctx.$slots.default ? (openBlock(), createElementBlock("div", {
|
|
71
|
+
key: 0,
|
|
72
|
+
class: normalizeClass(unref(POPOVER_PARTS).body)
|
|
73
|
+
}, [renderSlot(_ctx.$slots, "default")], 2)) : createCommentVNode("", true)], 16)], 16)]),
|
|
74
|
+
_: 3
|
|
75
|
+
})]),
|
|
76
|
+
_: 3
|
|
77
|
+
})) : createCommentVNode("", true)], 64);
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
});
|
|
81
|
+
export { Popover_vue_vue_type_script_setup_true_lang_default as default };
|
package/dist/Select.vue.d.ts
CHANGED
|
@@ -4,13 +4,15 @@ export type SelectProps<Value extends string = string> = SelectBaseProps<Value>;
|
|
|
4
4
|
declare const __VLS_export: <Value extends string = string>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>['props'], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, 'attrs' | 'emit' | 'slots'>>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>['expose'], __VLS_setup?: Promise<{
|
|
5
5
|
props: import('vue').PublicProps & __VLS_PrettifyLocal<SelectProps<Value> & {
|
|
6
6
|
"onUpdate:value"?: ((value: Value) => any) | undefined;
|
|
7
|
+
"onUpdate:values"?: ((values: Value[]) => any) | undefined;
|
|
8
|
+
onValuesChange?: ((values: Value[]) => any) | undefined;
|
|
7
9
|
}> & (typeof globalThis extends {
|
|
8
10
|
__VLS_PROPS_FALLBACK: infer P;
|
|
9
11
|
} ? P : {});
|
|
10
12
|
expose: (exposed: {}) => void;
|
|
11
13
|
attrs: any;
|
|
12
14
|
slots: {};
|
|
13
|
-
emit: (evt: "update:value", value: Value) => void;
|
|
15
|
+
emit: ((evt: "update:value", value: Value) => void) & ((evt: "update:values", values: Value[]) => void) & ((evt: "valuesChange", values: Value[]) => void);
|
|
14
16
|
}>) => import('vue').VNode & {
|
|
15
17
|
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
16
18
|
};
|