@youcan/celeste 0.6.15 → 0.6.17
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/celeste.css +597 -198
- package/dist/cjs/chunks/combobox-anchor.js +31 -0
- package/dist/cjs/chunks/combobox-root.js +38 -0
- package/dist/cjs/chunks/index.js +17 -0
- package/dist/cjs/combobox-anchor.js +3 -0
- package/dist/cjs/combobox-empty.js +32 -0
- package/dist/cjs/combobox-group.js +42 -0
- package/dist/cjs/combobox-input.js +67 -0
- package/dist/cjs/combobox-item.js +109 -0
- package/dist/cjs/combobox-list.js +62 -0
- package/dist/cjs/combobox-root.js +3 -0
- package/dist/cjs/combobox-separator.js +32 -0
- package/dist/cjs/combobox-trigger.js +46 -0
- package/dist/cjs/combobox.js +190 -0
- package/dist/cjs/dropdown.js +10 -3
- package/dist/cjs/index.js +30 -0
- package/dist/cjs/text-input-icon.js +2 -2
- package/dist/components/combobox/combobox-anchor.d.ts +22 -0
- package/dist/components/combobox/combobox-empty.d.ts +22 -0
- package/dist/components/combobox/combobox-group.d.ts +23 -0
- package/dist/components/combobox/combobox-input.d.ts +17 -0
- package/dist/components/combobox/combobox-item.d.ts +31 -0
- package/dist/components/combobox/combobox-list.d.ts +36 -0
- package/dist/components/combobox/combobox-root.d.ts +29 -0
- package/dist/components/combobox/combobox-separator.d.ts +22 -0
- package/dist/components/combobox/combobox-trigger.d.ts +20 -0
- package/dist/components/combobox/combobox.d.ts +40 -0
- package/dist/components/combobox/index.d.ts +20 -0
- package/dist/components/dropdown/dropdown.d.ts +5 -1
- package/dist/components/dropdown-menu/dropdown-menu-sub-content.d.ts +4 -4
- package/dist/components/index.d.ts +1 -0
- package/dist/components/modal/modal-content.d.ts +2 -2
- package/dist/components/popover/popover-content.d.ts +2 -2
- package/dist/es/chunks/combobox-anchor.js +32 -0
- package/dist/es/chunks/combobox-root.js +39 -0
- package/dist/es/chunks/index.js +59 -42
- package/dist/es/combobox-anchor.js +4 -0
- package/dist/es/combobox-empty.js +33 -0
- package/dist/es/combobox-group.js +43 -0
- package/dist/es/combobox-input.js +68 -0
- package/dist/es/combobox-item.js +110 -0
- package/dist/es/combobox-list.js +63 -0
- package/dist/es/combobox-root.js +4 -0
- package/dist/es/combobox-separator.js +33 -0
- package/dist/es/combobox-trigger.js +47 -0
- package/dist/es/combobox.js +191 -0
- package/dist/es/command-group.js +1 -1
- package/dist/es/command-input.js +1 -1
- package/dist/es/command-separator.js +1 -1
- package/dist/es/dropdown-menu-group.js +1 -1
- package/dist/es/dropdown-menu-item.js +1 -1
- package/dist/es/dropdown-menu-label.js +1 -1
- package/dist/es/dropdown-menu-separator.js +1 -1
- package/dist/es/dropdown-menu-trigger.js +1 -1
- package/dist/es/dropdown-menu.js +1 -1
- package/dist/es/dropdown.js +11 -4
- package/dist/es/index.js +75 -45
- package/dist/es/label.js +1 -1
- package/dist/es/modal-content.js +1 -1
- package/dist/es/modal-header.js +1 -1
- package/dist/es/popover-content.js +1 -1
- package/dist/es/popover-trigger.js +1 -1
- package/dist/es/segmented-control-item.js +1 -1
- package/dist/es/segmented-control.js +1 -1
- package/dist/es/select-content.js +1 -1
- package/dist/es/select-item.js +1 -1
- package/dist/es/select-trigger.js +1 -1
- package/dist/es/select-value.js +1 -1
- package/dist/es/tab-menu-content.js +1 -1
- package/dist/es/tab-menu-item.js +1 -1
- package/dist/es/tab-menu-list.js +1 -1
- package/dist/es/text-input-icon.js +2 -2
- package/dist/es/tooltip.js +1 -1
- package/package.json +3 -3
- package/src/components/combobox/combobox-anchor.vue +25 -0
- package/src/components/combobox/combobox-empty.vue +30 -0
- package/src/components/combobox/combobox-group.vue +42 -0
- package/src/components/combobox/combobox-input.vue +64 -0
- package/src/components/combobox/combobox-item.vue +196 -0
- package/src/components/combobox/combobox-list.vue +100 -0
- package/src/components/combobox/combobox-root.vue +14 -0
- package/src/components/combobox/combobox-separator.vue +31 -0
- package/src/components/combobox/combobox-trigger.vue +249 -0
- package/src/components/combobox/combobox.vue +235 -0
- package/src/components/combobox/index.ts +29 -0
- package/src/components/combobox/stories/combobox.stories.ts +242 -0
- package/src/components/dropdown/dropdown.vue +33 -2
- package/src/components/index.ts +1 -0
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const Mo = require("vue");
|
|
3
|
+
const clsx = require("./clsx.js");
|
|
4
|
+
const index = require("./index.js");
|
|
5
|
+
const _sfc_main = /* @__PURE__ */ Mo.defineComponent({
|
|
6
|
+
__name: "combobox-anchor",
|
|
7
|
+
props: {
|
|
8
|
+
asChild: { type: Boolean },
|
|
9
|
+
as: {},
|
|
10
|
+
class: {}
|
|
11
|
+
},
|
|
12
|
+
setup(__props) {
|
|
13
|
+
const props = __props;
|
|
14
|
+
const delegatedProps = Mo.computed(() => {
|
|
15
|
+
const { class: _, ...delegated } = props;
|
|
16
|
+
return delegated;
|
|
17
|
+
});
|
|
18
|
+
const forwarded = index.At(delegatedProps);
|
|
19
|
+
return (_ctx, _cache) => {
|
|
20
|
+
return Mo.openBlock(), Mo.createBlock(Mo.unref(index.jv), Mo.mergeProps(Mo.unref(forwarded), {
|
|
21
|
+
class: Mo.unref(clsx.clsx)(props.class, "celeste-dropdown-anchor")
|
|
22
|
+
}), {
|
|
23
|
+
default: Mo.withCtx(() => [
|
|
24
|
+
Mo.renderSlot(_ctx.$slots, "default")
|
|
25
|
+
]),
|
|
26
|
+
_: 3
|
|
27
|
+
}, 16, ["class"]);
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
exports._sfc_main = _sfc_main;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const Mo = require("vue");
|
|
3
|
+
const index = require("./index.js");
|
|
4
|
+
const _sfc_main = /* @__PURE__ */ Mo.defineComponent({
|
|
5
|
+
__name: "combobox-root",
|
|
6
|
+
props: {
|
|
7
|
+
modelValue: {},
|
|
8
|
+
defaultValue: {},
|
|
9
|
+
open: { type: Boolean },
|
|
10
|
+
defaultOpen: { type: Boolean },
|
|
11
|
+
searchTerm: {},
|
|
12
|
+
selectedValue: {},
|
|
13
|
+
multiple: { type: Boolean },
|
|
14
|
+
disabled: { type: Boolean },
|
|
15
|
+
name: {},
|
|
16
|
+
dir: {},
|
|
17
|
+
filterFunction: { type: Function },
|
|
18
|
+
displayValue: { type: Function },
|
|
19
|
+
resetSearchTermOnBlur: { type: Boolean },
|
|
20
|
+
asChild: { type: Boolean },
|
|
21
|
+
as: {}
|
|
22
|
+
},
|
|
23
|
+
emits: ["update:modelValue", "update:open", "update:searchTerm", "update:selectedValue"],
|
|
24
|
+
setup(__props, { emit: __emit }) {
|
|
25
|
+
const props = __props;
|
|
26
|
+
const emits = __emit;
|
|
27
|
+
const forwarded = index.xe(props, emits);
|
|
28
|
+
return (_ctx, _cache) => {
|
|
29
|
+
return Mo.openBlock(), Mo.createBlock(Mo.unref(index.Hv), Mo.normalizeProps(Mo.guardReactiveProps(Mo.unref(forwarded))), {
|
|
30
|
+
default: Mo.withCtx(() => [
|
|
31
|
+
Mo.renderSlot(_ctx.$slots, "default")
|
|
32
|
+
]),
|
|
33
|
+
_: 3
|
|
34
|
+
}, 16);
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
exports._sfc_main = _sfc_main;
|
package/dist/cjs/chunks/index.js
CHANGED
|
@@ -4686,6 +4686,22 @@ const Jv = /* @__PURE__ */ Mo.defineComponent({
|
|
|
4686
4686
|
_: 3
|
|
4687
4687
|
}, 16));
|
|
4688
4688
|
}
|
|
4689
|
+
}), nm = /* @__PURE__ */ Mo.defineComponent({
|
|
4690
|
+
__name: "ComboboxPortal",
|
|
4691
|
+
props: {
|
|
4692
|
+
to: {},
|
|
4693
|
+
disabled: { type: Boolean },
|
|
4694
|
+
forceMount: { type: Boolean }
|
|
4695
|
+
},
|
|
4696
|
+
setup(a2) {
|
|
4697
|
+
const t = a2;
|
|
4698
|
+
return (e, n) => (Mo.openBlock(), Mo.createBlock(Mo.unref(ot), Mo.normalizeProps(Mo.guardReactiveProps(t)), {
|
|
4699
|
+
default: Mo.withCtx(() => [
|
|
4700
|
+
Mo.renderSlot(e.$slots, "default")
|
|
4701
|
+
]),
|
|
4702
|
+
_: 3
|
|
4703
|
+
}, 16));
|
|
4704
|
+
}
|
|
4689
4705
|
}), Za = /* @__PURE__ */ Mo.defineComponent({
|
|
4690
4706
|
__name: "MenuAnchor",
|
|
4691
4707
|
props: {
|
|
@@ -9033,6 +9049,7 @@ exports.ky = ky;
|
|
|
9033
9049
|
exports.lv = lv;
|
|
9034
9050
|
exports.mg = mg;
|
|
9035
9051
|
exports.ng = ng;
|
|
9052
|
+
exports.nm = nm;
|
|
9036
9053
|
exports.og = og;
|
|
9037
9054
|
exports.ph = ph;
|
|
9038
9055
|
exports.qv = qv;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const Mo = require("vue");
|
|
3
|
+
const clsx = require("./chunks/clsx.js");
|
|
4
|
+
const index = require("./chunks/index.js");
|
|
5
|
+
const _pluginVue_exportHelper = require("./chunks/_plugin-vue_export-helper.js");
|
|
6
|
+
const _sfc_main = /* @__PURE__ */ Mo.defineComponent({
|
|
7
|
+
__name: "combobox-empty",
|
|
8
|
+
props: {
|
|
9
|
+
asChild: { type: Boolean },
|
|
10
|
+
as: {},
|
|
11
|
+
class: {}
|
|
12
|
+
},
|
|
13
|
+
setup(__props) {
|
|
14
|
+
const props = __props;
|
|
15
|
+
const delegatedProps = Mo.computed(() => {
|
|
16
|
+
const { class: _, ...delegated } = props;
|
|
17
|
+
return delegated;
|
|
18
|
+
});
|
|
19
|
+
return (_ctx, _cache) => {
|
|
20
|
+
return Mo.openBlock(), Mo.createBlock(Mo.unref(index.Zv), Mo.mergeProps(delegatedProps.value, {
|
|
21
|
+
class: Mo.unref(clsx.clsx)("celeste-dropdown-empty-list", props.class)
|
|
22
|
+
}), {
|
|
23
|
+
default: Mo.withCtx(() => [
|
|
24
|
+
Mo.renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
25
|
+
]),
|
|
26
|
+
_: 3
|
|
27
|
+
}, 16, ["class"]);
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
const ComboboxEmpty = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main, [["__scopeId", "data-v-450bfb63"]]);
|
|
32
|
+
module.exports = ComboboxEmpty;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const Mo = require("vue");
|
|
3
|
+
const clsx = require("./chunks/clsx.js");
|
|
4
|
+
const index = require("./chunks/index.js");
|
|
5
|
+
const _pluginVue_exportHelper = require("./chunks/_plugin-vue_export-helper.js");
|
|
6
|
+
const _sfc_main = /* @__PURE__ */ Mo.defineComponent({
|
|
7
|
+
__name: "combobox-group",
|
|
8
|
+
props: {
|
|
9
|
+
asChild: { type: Boolean },
|
|
10
|
+
as: {},
|
|
11
|
+
class: {},
|
|
12
|
+
heading: {}
|
|
13
|
+
},
|
|
14
|
+
setup(__props) {
|
|
15
|
+
const props = __props;
|
|
16
|
+
const delegatedProps = Mo.computed(() => {
|
|
17
|
+
const { class: _, ...delegated } = props;
|
|
18
|
+
return delegated;
|
|
19
|
+
});
|
|
20
|
+
return (_ctx, _cache) => {
|
|
21
|
+
return Mo.openBlock(), Mo.createBlock(Mo.unref(index.qv), Mo.mergeProps(delegatedProps.value, {
|
|
22
|
+
class: Mo.unref(clsx.clsx)(props.class, "celeste-dropdown-items-group")
|
|
23
|
+
}), {
|
|
24
|
+
default: Mo.withCtx(() => [
|
|
25
|
+
_ctx.heading ? (Mo.openBlock(), Mo.createBlock(Mo.unref(index.Yv), {
|
|
26
|
+
key: 0,
|
|
27
|
+
class: ""
|
|
28
|
+
}, {
|
|
29
|
+
default: Mo.withCtx(() => [
|
|
30
|
+
Mo.createTextVNode(Mo.toDisplayString(_ctx.heading), 1)
|
|
31
|
+
]),
|
|
32
|
+
_: 1
|
|
33
|
+
})) : Mo.createCommentVNode("", true),
|
|
34
|
+
Mo.renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
35
|
+
]),
|
|
36
|
+
_: 3
|
|
37
|
+
}, 16, ["class"]);
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
});
|
|
41
|
+
const ComboboxGroup = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main, [["__scopeId", "data-v-66b5c9e4"]]);
|
|
42
|
+
module.exports = ComboboxGroup;
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const Mo = require("vue");
|
|
3
|
+
const clsx = require("./chunks/clsx.js");
|
|
4
|
+
const index = require("./chunks/index.js");
|
|
5
|
+
const textInputIcon = require("./text-input-icon.js");
|
|
6
|
+
const textInput = require("./text-input.js");
|
|
7
|
+
const _pluginVue_exportHelper = require("./chunks/_plugin-vue_export-helper.js");
|
|
8
|
+
const _sfc_main = /* @__PURE__ */ Mo.defineComponent({
|
|
9
|
+
__name: "combobox-input",
|
|
10
|
+
props: /* @__PURE__ */ Mo.mergeModels({
|
|
11
|
+
type: {},
|
|
12
|
+
disabled: { type: Boolean },
|
|
13
|
+
autoFocus: { type: Boolean },
|
|
14
|
+
asChild: { type: Boolean },
|
|
15
|
+
as: {},
|
|
16
|
+
class: {},
|
|
17
|
+
textInputProps: {},
|
|
18
|
+
searchable: { type: Boolean }
|
|
19
|
+
}, {
|
|
20
|
+
"modelValue": {},
|
|
21
|
+
"modelModifiers": {}
|
|
22
|
+
}),
|
|
23
|
+
emits: ["update:modelValue"],
|
|
24
|
+
setup(__props) {
|
|
25
|
+
const props = __props;
|
|
26
|
+
const model = Mo.useModel(__props, "modelValue");
|
|
27
|
+
const comboboxInputProps = Mo.computed(() => {
|
|
28
|
+
const { class: _class, textInputProps: _textInputProps, ...rest } = props;
|
|
29
|
+
return rest;
|
|
30
|
+
});
|
|
31
|
+
const textInputProps = Mo.computed(() => {
|
|
32
|
+
return {
|
|
33
|
+
type: "search",
|
|
34
|
+
size: "sm",
|
|
35
|
+
placeholder: "Search",
|
|
36
|
+
...props.textInputProps
|
|
37
|
+
};
|
|
38
|
+
});
|
|
39
|
+
return (_ctx, _cache) => {
|
|
40
|
+
return Mo.openBlock(), Mo.createBlock(Mo.unref(index.Wv), Mo.mergeProps(comboboxInputProps.value, {
|
|
41
|
+
class: Mo.unref(clsx.clsx)("celeste-dropdown-input", props.class),
|
|
42
|
+
readonly: !props.searchable,
|
|
43
|
+
as: "div"
|
|
44
|
+
}), {
|
|
45
|
+
default: Mo.withCtx(() => [
|
|
46
|
+
Mo.createVNode(textInput, Mo.mergeProps(textInputProps.value, {
|
|
47
|
+
modelValue: model.value,
|
|
48
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => model.value = $event),
|
|
49
|
+
readonly: !props.searchable,
|
|
50
|
+
style: !props.searchable ? "opacity: 0; height: 1px; padding: 0; border: none;" : ""
|
|
51
|
+
}), {
|
|
52
|
+
default: Mo.withCtx(() => [
|
|
53
|
+
props.searchable ? (Mo.openBlock(), Mo.createBlock(textInputIcon, {
|
|
54
|
+
key: 0,
|
|
55
|
+
icon: "i-celeste-search-2-line"
|
|
56
|
+
})) : Mo.createCommentVNode("", true)
|
|
57
|
+
]),
|
|
58
|
+
_: 1
|
|
59
|
+
}, 16, ["modelValue", "readonly", "style"])
|
|
60
|
+
]),
|
|
61
|
+
_: 1
|
|
62
|
+
}, 16, ["class", "readonly"]);
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
});
|
|
66
|
+
const ComboboxInput = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main, [["__scopeId", "data-v-6de83486"]]);
|
|
67
|
+
module.exports = ComboboxInput;
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const Mo = require("vue");
|
|
3
|
+
const clsx = require("./chunks/clsx.js");
|
|
4
|
+
const index = require("./chunks/index.js");
|
|
5
|
+
const checkbox_vue_vue_type_style_index_0_lang = require("./chunks/checkbox.vue_vue_type_style_index_0_lang.js");
|
|
6
|
+
const _pluginVue_exportHelper = require("./chunks/_plugin-vue_export-helper.js");
|
|
7
|
+
const _hoisted_1 = ["aria-disabled"];
|
|
8
|
+
const _hoisted_2 = { class: "celeste-dropdown-item-info" };
|
|
9
|
+
const _hoisted_3 = ["innerHTML"];
|
|
10
|
+
const _hoisted_4 = {
|
|
11
|
+
key: 0,
|
|
12
|
+
class: "celeste-dropdown-item-sublabel"
|
|
13
|
+
};
|
|
14
|
+
const _hoisted_5 = {
|
|
15
|
+
key: 0,
|
|
16
|
+
class: "celeste-dropdown-item-description"
|
|
17
|
+
};
|
|
18
|
+
const _hoisted_6 = {
|
|
19
|
+
key: 2,
|
|
20
|
+
class: "celeste-dropdown-item-suffix"
|
|
21
|
+
};
|
|
22
|
+
const _hoisted_7 = {
|
|
23
|
+
key: 3,
|
|
24
|
+
class: "i-celeste-check-fill"
|
|
25
|
+
};
|
|
26
|
+
const _sfc_main = /* @__PURE__ */ Mo.defineComponent({
|
|
27
|
+
__name: "combobox-item",
|
|
28
|
+
props: {
|
|
29
|
+
class: {},
|
|
30
|
+
label: {},
|
|
31
|
+
size: { default: "sm" },
|
|
32
|
+
checkbox: { type: Boolean },
|
|
33
|
+
sublabel: {},
|
|
34
|
+
description: {},
|
|
35
|
+
selected: { type: [Boolean, String] },
|
|
36
|
+
focused: { type: Boolean },
|
|
37
|
+
value: { type: [String, Number, Boolean, Object] },
|
|
38
|
+
icon: {},
|
|
39
|
+
image: {},
|
|
40
|
+
disabled: { type: Boolean }
|
|
41
|
+
},
|
|
42
|
+
emits: ["select"],
|
|
43
|
+
setup(__props, { emit: __emit }) {
|
|
44
|
+
const props = __props;
|
|
45
|
+
const emits = __emit;
|
|
46
|
+
const delegatedProps = Mo.computed(() => {
|
|
47
|
+
const { class: _, ...delegated } = props;
|
|
48
|
+
return delegated;
|
|
49
|
+
});
|
|
50
|
+
const forwarded = index.xe(delegatedProps, emits);
|
|
51
|
+
return (_ctx, _cache) => {
|
|
52
|
+
return Mo.openBlock(), Mo.createBlock(Mo.unref(index.Qv), Mo.mergeProps(Mo.unref(forwarded), {
|
|
53
|
+
disabled: _ctx.disabled,
|
|
54
|
+
"as-child": ""
|
|
55
|
+
}), {
|
|
56
|
+
default: Mo.withCtx(() => [
|
|
57
|
+
Mo.createElementVNode("div", {
|
|
58
|
+
tabindex: "0",
|
|
59
|
+
"aria-disabled": _ctx.disabled,
|
|
60
|
+
class: Mo.normalizeClass(Mo.unref(clsx.clsx)(
|
|
61
|
+
props.class,
|
|
62
|
+
"celeste-dropdown-item",
|
|
63
|
+
{ "celeste-dropdown-item-disabled": _ctx.disabled },
|
|
64
|
+
{ "celeste-dropdown-item-selected": _ctx.selected },
|
|
65
|
+
{ "celeste-dropdown-item-focused": _ctx.focused }
|
|
66
|
+
))
|
|
67
|
+
}, [
|
|
68
|
+
_ctx.checkbox && _ctx.size === "sm" ? (Mo.openBlock(), Mo.createBlock(checkbox_vue_vue_type_style_index_0_lang._sfc_main, {
|
|
69
|
+
key: 0,
|
|
70
|
+
checked: _ctx.selected,
|
|
71
|
+
disabled: _ctx.disabled
|
|
72
|
+
}, null, 8, ["checked", "disabled"])) : Mo.createCommentVNode("", true),
|
|
73
|
+
_ctx.$slots.prefix ? (Mo.openBlock(), Mo.createElementBlock("div", {
|
|
74
|
+
key: 1,
|
|
75
|
+
class: Mo.normalizeClass(Mo.unref(clsx.clsx)(
|
|
76
|
+
"celeste-dropdown-item-prefix",
|
|
77
|
+
`celeste-dropdown-item-prefix-${_ctx.size}`
|
|
78
|
+
))
|
|
79
|
+
}, [
|
|
80
|
+
Mo.renderSlot(_ctx.$slots, "prefix", {}, void 0, true)
|
|
81
|
+
], 2)) : Mo.createCommentVNode("", true),
|
|
82
|
+
Mo.createElementVNode("div", _hoisted_2, [
|
|
83
|
+
Mo.createElementVNode("div", {
|
|
84
|
+
class: Mo.normalizeClass(Mo.unref(clsx.clsx)(
|
|
85
|
+
"celeste-dropdown-item-header",
|
|
86
|
+
`celeste-dropdown-item-header-${_ctx.size}`
|
|
87
|
+
))
|
|
88
|
+
}, [
|
|
89
|
+
Mo.createElementVNode("span", {
|
|
90
|
+
class: "celeste-dropdown-item-label",
|
|
91
|
+
innerHTML: _ctx.label
|
|
92
|
+
}, null, 8, _hoisted_3),
|
|
93
|
+
_ctx.sublabel ? (Mo.openBlock(), Mo.createElementBlock("span", _hoisted_4, Mo.toDisplayString(_ctx.sublabel), 1)) : Mo.createCommentVNode("", true)
|
|
94
|
+
], 2),
|
|
95
|
+
_ctx.description && _ctx.size === "lg" ? (Mo.openBlock(), Mo.createElementBlock("p", _hoisted_5, Mo.toDisplayString(_ctx.description), 1)) : Mo.createCommentVNode("", true)
|
|
96
|
+
]),
|
|
97
|
+
_ctx.$slots.suffix ? (Mo.openBlock(), Mo.createElementBlock("div", _hoisted_6, [
|
|
98
|
+
Mo.renderSlot(_ctx.$slots, "suffix", {}, void 0, true)
|
|
99
|
+
])) : Mo.createCommentVNode("", true),
|
|
100
|
+
_ctx.selected ? (Mo.openBlock(), Mo.createElementBlock("i", _hoisted_7)) : Mo.createCommentVNode("", true)
|
|
101
|
+
], 10, _hoisted_1)
|
|
102
|
+
]),
|
|
103
|
+
_: 3
|
|
104
|
+
}, 16, ["disabled"]);
|
|
105
|
+
};
|
|
106
|
+
}
|
|
107
|
+
});
|
|
108
|
+
const ComboboxItem = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main, [["__scopeId", "data-v-3c2bd0ae"]]);
|
|
109
|
+
module.exports = ComboboxItem;
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const Mo = require("vue");
|
|
3
|
+
const clsx = require("./chunks/clsx.js");
|
|
4
|
+
const index = require("./chunks/index.js");
|
|
5
|
+
const _pluginVue_exportHelper = require("./chunks/_plugin-vue_export-helper.js");
|
|
6
|
+
const _sfc_main = /* @__PURE__ */ Mo.defineComponent({
|
|
7
|
+
__name: "combobox-list",
|
|
8
|
+
props: {
|
|
9
|
+
forceMount: { type: Boolean },
|
|
10
|
+
position: { default: "popper" },
|
|
11
|
+
bodyLock: { type: Boolean },
|
|
12
|
+
dismissable: { type: Boolean },
|
|
13
|
+
side: {},
|
|
14
|
+
sideOffset: { default: 4 },
|
|
15
|
+
align: { default: "start" },
|
|
16
|
+
alignOffset: {},
|
|
17
|
+
avoidCollisions: { type: Boolean },
|
|
18
|
+
collisionBoundary: {},
|
|
19
|
+
collisionPadding: {},
|
|
20
|
+
arrowPadding: {},
|
|
21
|
+
sticky: {},
|
|
22
|
+
hideWhenDetached: { type: Boolean },
|
|
23
|
+
updatePositionStrategy: {},
|
|
24
|
+
prioritizePosition: { type: Boolean },
|
|
25
|
+
asChild: { type: Boolean },
|
|
26
|
+
as: {},
|
|
27
|
+
disableOutsidePointerEvents: { type: Boolean },
|
|
28
|
+
class: {}
|
|
29
|
+
},
|
|
30
|
+
emits: ["escapeKeyDown", "pointerDownOutside", "focusOutside", "interactOutside"],
|
|
31
|
+
setup(__props, { emit: __emit }) {
|
|
32
|
+
const props = __props;
|
|
33
|
+
const emits = __emit;
|
|
34
|
+
const delegatedProps = Mo.computed(() => {
|
|
35
|
+
const { class: _, ...delegated } = props;
|
|
36
|
+
return delegated;
|
|
37
|
+
});
|
|
38
|
+
const forwarded = index.xe(delegatedProps, emits);
|
|
39
|
+
return (_ctx, _cache) => {
|
|
40
|
+
return Mo.openBlock(), Mo.createBlock(Mo.unref(index.nm), null, {
|
|
41
|
+
default: Mo.withCtx(() => [
|
|
42
|
+
Mo.createVNode(Mo.unref(index.Xv), Mo.mergeProps(Mo.unref(forwarded), {
|
|
43
|
+
class: Mo.unref(clsx.clsx)("celeste-dropdown-content", props.class)
|
|
44
|
+
}), {
|
|
45
|
+
default: Mo.withCtx(() => [
|
|
46
|
+
Mo.createVNode(Mo.unref(index.Jv), { class: "celeste-dropdown-items-viewport" }, {
|
|
47
|
+
default: Mo.withCtx(() => [
|
|
48
|
+
Mo.renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
49
|
+
]),
|
|
50
|
+
_: 3
|
|
51
|
+
})
|
|
52
|
+
]),
|
|
53
|
+
_: 3
|
|
54
|
+
}, 16, ["class"])
|
|
55
|
+
]),
|
|
56
|
+
_: 3
|
|
57
|
+
});
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
});
|
|
61
|
+
const ComboboxList = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main, [["__scopeId", "data-v-dc6bae8b"]]);
|
|
62
|
+
module.exports = ComboboxList;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const Mo = require("vue");
|
|
3
|
+
const clsx = require("./chunks/clsx.js");
|
|
4
|
+
const index = require("./chunks/index.js");
|
|
5
|
+
const _pluginVue_exportHelper = require("./chunks/_plugin-vue_export-helper.js");
|
|
6
|
+
const _sfc_main = /* @__PURE__ */ Mo.defineComponent({
|
|
7
|
+
__name: "combobox-separator",
|
|
8
|
+
props: {
|
|
9
|
+
asChild: { type: Boolean },
|
|
10
|
+
as: {},
|
|
11
|
+
class: {}
|
|
12
|
+
},
|
|
13
|
+
setup(__props) {
|
|
14
|
+
const props = __props;
|
|
15
|
+
const delegatedProps = Mo.computed(() => {
|
|
16
|
+
const { class: _, ...delegated } = props;
|
|
17
|
+
return delegated;
|
|
18
|
+
});
|
|
19
|
+
return (_ctx, _cache) => {
|
|
20
|
+
return Mo.openBlock(), Mo.createBlock(Mo.unref(index.tm), Mo.mergeProps(delegatedProps.value, {
|
|
21
|
+
class: Mo.unref(clsx.clsx)("celeste-dropdown-separator", props.class)
|
|
22
|
+
}), {
|
|
23
|
+
default: Mo.withCtx(() => [
|
|
24
|
+
Mo.renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
25
|
+
]),
|
|
26
|
+
_: 3
|
|
27
|
+
}, 16, ["class"]);
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
const ComboboxSeparator = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main, [["__scopeId", "data-v-987226c9"]]);
|
|
32
|
+
module.exports = ComboboxSeparator;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const Mo = require("vue");
|
|
3
|
+
const clsx = require("./chunks/clsx.js");
|
|
4
|
+
const index = require("./chunks/index.js");
|
|
5
|
+
const _pluginVue_exportHelper = require("./chunks/_plugin-vue_export-helper.js");
|
|
6
|
+
const _sfc_main = /* @__PURE__ */ Mo.defineComponent({
|
|
7
|
+
__name: "combobox-trigger",
|
|
8
|
+
props: {
|
|
9
|
+
class: {},
|
|
10
|
+
size: {},
|
|
11
|
+
filled: { type: Boolean },
|
|
12
|
+
type: { default: "normal" },
|
|
13
|
+
error: { type: Boolean },
|
|
14
|
+
disabled: { type: Boolean },
|
|
15
|
+
asChild: { type: Boolean },
|
|
16
|
+
as: {}
|
|
17
|
+
},
|
|
18
|
+
setup(__props) {
|
|
19
|
+
const props = __props;
|
|
20
|
+
const delegatedProps = Mo.computed(() => {
|
|
21
|
+
const { class: _, ...delegated } = props;
|
|
22
|
+
return delegated;
|
|
23
|
+
});
|
|
24
|
+
const forwarded = index.At(delegatedProps);
|
|
25
|
+
return (_ctx, _cache) => {
|
|
26
|
+
return Mo.openBlock(), Mo.createBlock(Mo.unref(index.Uv), Mo.mergeProps(Mo.unref(forwarded), {
|
|
27
|
+
tabindex: "0",
|
|
28
|
+
class: Mo.unref(clsx.clsx)(
|
|
29
|
+
"celeste-dropdown-anchor-trigger",
|
|
30
|
+
`celeste-dropdown-anchor-trigger-size-${props.size}`,
|
|
31
|
+
`celeste-dropdown-anchor-trigger-type-${props.type}`,
|
|
32
|
+
{ "celeste-dropdown-anchor-trigger-error": props.error },
|
|
33
|
+
{ "celeste-dropdown-anchor-trigger-filled": _ctx.filled },
|
|
34
|
+
props.class
|
|
35
|
+
)
|
|
36
|
+
}), {
|
|
37
|
+
default: Mo.withCtx(() => [
|
|
38
|
+
Mo.renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
39
|
+
]),
|
|
40
|
+
_: 3
|
|
41
|
+
}, 16, ["class"]);
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
});
|
|
45
|
+
const ComboboxTrigger = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main, [["__scopeId", "data-v-1d007d84"]]);
|
|
46
|
+
module.exports = ComboboxTrigger;
|