@youcan/celeste 0.6.71 → 0.6.73
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 +7 -6
- package/dist/cjs/alert.js +32 -32
- package/dist/cjs/badge.js +12 -12
- package/dist/cjs/button.js +6 -6
- package/dist/cjs/checkbox-card.js +33 -33
- package/dist/cjs/checkbox-label.js +31 -31
- package/dist/cjs/chunks/alpha-slider.js +12 -12
- package/dist/cjs/chunks/checkbox.js +7 -7
- package/dist/cjs/chunks/collapsible-content.js +6 -6
- package/dist/cjs/chunks/collapsible-trigger.js +5 -5
- package/dist/cjs/chunks/collapsible.js +6 -6
- package/dist/cjs/chunks/combobox-anchor.js +8 -8
- package/dist/cjs/chunks/content-divider.vue_vue_type_style_index_0_lang.js +15 -15
- package/dist/cjs/chunks/counter-input.js +13 -13
- package/dist/cjs/chunks/dropdown-menu-sub.js +6 -6
- package/dist/cjs/chunks/index.js +2289 -2292
- package/dist/cjs/chunks/index2.js +14 -14
- package/dist/cjs/chunks/index3.js +28 -28
- package/dist/cjs/chunks/index4.js +96 -125
- package/dist/cjs/chunks/index5.js +3381 -4086
- package/dist/cjs/chunks/modal-close.js +5 -5
- package/dist/cjs/chunks/modal-trigger.js +5 -5
- package/dist/cjs/chunks/modal.js +6 -6
- package/dist/cjs/chunks/pagination-first.js +9 -9
- package/dist/cjs/chunks/pagination-item.js +6 -6
- package/dist/cjs/chunks/pagination-last.js +9 -9
- package/dist/cjs/chunks/pagination-next.js +9 -9
- package/dist/cjs/chunks/pagination-previous.js +9 -9
- package/dist/cjs/chunks/popover.js +6 -6
- package/dist/cjs/chunks/radio-group-item.js +7 -7
- package/dist/cjs/chunks/radio-group.js +8 -8
- package/dist/cjs/chunks/rich-editor.vue_vue_type_style_index_0_scoped_dbc85b1a_lang.js +45 -742
- package/dist/cjs/chunks/scroll-area.js +11 -11
- package/dist/cjs/chunks/select-group.js +5 -5
- package/dist/cjs/chunks/select.js +7 -7
- package/dist/cjs/chunks/sheet-trigger.js +5 -5
- package/dist/cjs/chunks/sheet.js +6 -6
- package/dist/cjs/chunks/sidebar-content.js +5 -5
- package/dist/cjs/chunks/sidebar-element.js +6 -6
- package/dist/cjs/chunks/sidebar-footer.js +5 -5
- package/dist/cjs/chunks/sidebar-group-label.js +6 -6
- package/dist/cjs/chunks/sidebar-group.js +5 -5
- package/dist/cjs/chunks/sidebar-header.js +5 -5
- package/dist/cjs/chunks/sidebar-menu-action.js +6 -6
- package/dist/cjs/chunks/sidebar-menu-badge.js +4 -4
- package/dist/cjs/chunks/sidebar-menu-button.js +7 -7
- package/dist/cjs/chunks/sidebar-menu-item.js +5 -5
- package/dist/cjs/chunks/sidebar-menu-sub-button.js +6 -6
- package/dist/cjs/chunks/sidebar-menu-sub-item.js +5 -5
- package/dist/cjs/chunks/sidebar-menu-sub.js +5 -5
- package/dist/cjs/chunks/sidebar-menu.js +5 -5
- package/dist/cjs/chunks/sidebar-provider.vue_vue_type_style_index_0_lang.js +9 -9
- package/dist/cjs/chunks/sidebar-separator.vue_vue_type_style_index_0_lang.js +4 -4
- package/dist/cjs/chunks/sidebar.js +21 -21
- package/dist/cjs/chunks/slider.js +11 -11
- package/dist/cjs/chunks/sonner.js +146 -214
- package/dist/cjs/chunks/switch.js +7 -7
- package/dist/cjs/chunks/tinycolor.js +2 -2
- package/dist/cjs/chunks/tooltip-provider.js +5 -5
- package/dist/cjs/chunks/tooltip-root.js +7 -7
- package/dist/cjs/chunks/tooltip-trigger.js +6 -6
- package/dist/cjs/chunks/tooltip.js +12 -12
- package/dist/cjs/color-area.js +16 -16
- package/dist/cjs/color-picker.js +102 -102
- package/dist/cjs/color-swatch.js +11 -11
- package/dist/cjs/combobox-empty.js +7 -7
- package/dist/cjs/combobox-group.js +11 -11
- package/dist/cjs/combobox-input.js +12 -12
- package/dist/cjs/combobox-item.js +24 -24
- package/dist/cjs/combobox-list.js +12 -12
- package/dist/cjs/combobox-root.js +6 -7
- package/dist/cjs/combobox-separator.js +7 -7
- package/dist/cjs/combobox-trigger.js +8 -8
- package/dist/cjs/combobox.js +53 -54
- package/dist/cjs/command-group.js +10 -10
- package/dist/cjs/command-input.js +8 -8
- package/dist/cjs/command-item.js +7 -7
- package/dist/cjs/command-list.js +8 -8
- package/dist/cjs/command-root.js +7 -8
- package/dist/cjs/command-separator.js +7 -7
- package/dist/cjs/compact-button.js +7 -7
- package/dist/cjs/config.js +2 -2
- package/dist/cjs/digit-input-group.js +7 -7
- package/dist/cjs/digit-input-slot.js +5 -5
- package/dist/cjs/digit-input.js +7 -7
- package/dist/cjs/dropdown-menu-content.js +9 -9
- package/dist/cjs/dropdown-menu-group.js +5 -5
- package/dist/cjs/dropdown-menu-item.js +14 -14
- package/dist/cjs/dropdown-menu-label.js +7 -7
- package/dist/cjs/dropdown-menu-separator.js +4 -4
- package/dist/cjs/dropdown-menu-sub-content.js +9 -9
- package/dist/cjs/dropdown-menu-sub-trigger.js +12 -12
- package/dist/cjs/dropdown-menu-trigger.js +6 -6
- package/dist/cjs/dropdown-menu.js +7 -7
- package/dist/cjs/extra-settings.js +21 -21
- package/dist/cjs/fancy-button.js +6 -6
- package/dist/cjs/file-upload-area.js +22 -22
- package/dist/cjs/hint-text.js +8 -8
- package/dist/cjs/hue-slider.js +15 -15
- package/dist/cjs/index.js +2 -2
- package/dist/cjs/label.js +13 -13
- package/dist/cjs/link-bubble.js +40 -40
- package/dist/cjs/link-button.js +6 -6
- package/dist/cjs/modal-body.js +5 -5
- package/dist/cjs/modal-content.js +12 -12
- package/dist/cjs/modal-footer.js +5 -5
- package/dist/cjs/modal-header.js +22 -22
- package/dist/cjs/pagination-content.js +6 -6
- package/dist/cjs/pagination-ellipsis.js +8 -8
- package/dist/cjs/pagination.js +14 -14
- package/dist/cjs/popover-content.js +30 -30
- package/dist/cjs/popover-trigger.js +5 -5
- package/dist/cjs/progress-bar.js +19 -19
- package/dist/cjs/progress-circle.js +20 -20
- package/dist/cjs/radio-group-card.js +33 -33
- package/dist/cjs/radio-group-label.js +31 -31
- package/dist/cjs/rich-editor.js +76 -76
- package/dist/cjs/scroll-bar.js +7 -7
- package/dist/cjs/segmented-control-item.js +8 -6
- package/dist/cjs/segmented-control.js +8 -8
- package/dist/cjs/select-content.js +11 -11
- package/dist/cjs/select-icon.js +5 -5
- package/dist/cjs/select-item.js +11 -11
- package/dist/cjs/select-label.js +6 -6
- package/dist/cjs/select-separator.js +4 -4
- package/dist/cjs/select-trigger.js +9 -9
- package/dist/cjs/select-value.js +6 -6
- package/dist/cjs/sheet-close.js +6 -6
- package/dist/cjs/sheet-content.js +14 -14
- package/dist/cjs/sheet-description.js +7 -7
- package/dist/cjs/sheet-footer.js +6 -6
- package/dist/cjs/sheet-header.js +5 -5
- package/dist/cjs/sheet-title.js +7 -7
- package/dist/cjs/sidebar-group-content.js +5 -5
- package/dist/cjs/sidebar-trigger.js +7 -7
- package/dist/cjs/social-button.js +8 -8
- package/dist/cjs/sonner-alert.js +8 -8
- package/dist/cjs/status-badge.js +8 -8
- package/dist/cjs/tab-menu-content.js +7 -7
- package/dist/cjs/tab-menu-item.js +11 -11
- package/dist/cjs/tab-menu-list.js +6 -6
- package/dist/cjs/tab-menu.js +6 -6
- package/dist/cjs/table-body.js +5 -5
- package/dist/cjs/table-caption.js +5 -5
- package/dist/cjs/table-cell.js +5 -5
- package/dist/cjs/table-empty.js +9 -9
- package/dist/cjs/table-footer.js +5 -5
- package/dist/cjs/table-head.js +5 -5
- package/dist/cjs/table-header.js +5 -5
- package/dist/cjs/table-row.js +8 -8
- package/dist/cjs/table.js +6 -6
- package/dist/cjs/tag.js +10 -10
- package/dist/cjs/text-input-affix.js +5 -5
- package/dist/cjs/text-input-button.js +6 -6
- package/dist/cjs/text-input.js +31 -31
- package/dist/cjs/textarea.js +9 -9
- package/dist/cjs/tooltip-content.js +20 -20
- package/dist/cjs/use-color-model.js +2 -2
- package/dist/cjs/use-delegated-props.js +2 -2
- package/dist/cjs/use-sidebar.js +1 -1
- package/dist/cjs/use-user-select.js +4 -4
- package/dist/components/color-picker/alpha-slider.d.ts +1 -1
- package/dist/components/color-picker/color-area.d.ts +1 -1
- package/dist/components/color-picker/hue-slider.d.ts +1 -1
- package/dist/components/file-upload/file-upload-area.d.ts +2 -4
- package/dist/components/rich-editor/link-bubble.d.ts +1 -3
- package/dist/es/alert.js +1 -1
- package/dist/es/badge.js +1 -1
- package/dist/es/button.js +2 -2
- package/dist/es/checkbox-card.js +3 -3
- package/dist/es/checkbox-label.js +3 -3
- package/dist/es/chunks/alpha-slider.js +1 -1
- package/dist/es/chunks/checkbox.js +5 -5
- package/dist/es/chunks/collapsible-content.js +3 -3
- package/dist/es/chunks/collapsible-trigger.js +3 -3
- package/dist/es/chunks/collapsible.js +4 -4
- package/dist/es/chunks/combobox-anchor.js +4 -4
- package/dist/es/chunks/content-divider.vue_vue_type_style_index_0_lang.js +3 -3
- package/dist/es/chunks/counter-input.js +7 -7
- package/dist/es/chunks/dropdown-menu-sub.js +4 -4
- package/dist/es/chunks/index.js +1153 -1156
- package/dist/es/chunks/index2.js +3 -3
- package/dist/es/chunks/index3.js +2 -2
- package/dist/es/chunks/index4.js +90 -119
- package/dist/es/chunks/index5.js +3394 -4099
- package/dist/es/chunks/modal-close.js +3 -3
- package/dist/es/chunks/modal-trigger.js +3 -3
- package/dist/es/chunks/modal.js +4 -4
- package/dist/es/chunks/pagination-first.js +4 -4
- package/dist/es/chunks/pagination-item.js +3 -3
- package/dist/es/chunks/pagination-last.js +4 -4
- package/dist/es/chunks/pagination-next.js +4 -4
- package/dist/es/chunks/pagination-previous.js +4 -4
- package/dist/es/chunks/popover.js +4 -4
- package/dist/es/chunks/radio-group-item.js +5 -5
- package/dist/es/chunks/radio-group.js +4 -4
- package/dist/es/chunks/rich-editor.vue_vue_type_style_index_0_scoped_dbc85b1a_lang.js +46 -743
- package/dist/es/chunks/scroll-area.js +5 -5
- package/dist/es/chunks/select-group.js +3 -3
- package/dist/es/chunks/select.js +4 -4
- package/dist/es/chunks/sheet-trigger.js +3 -3
- package/dist/es/chunks/sheet.js +4 -4
- package/dist/es/chunks/sidebar-content.js +1 -1
- package/dist/es/chunks/sidebar-element.js +2 -2
- package/dist/es/chunks/sidebar-footer.js +1 -1
- package/dist/es/chunks/sidebar-group-label.js +2 -2
- package/dist/es/chunks/sidebar-group.js +1 -1
- package/dist/es/chunks/sidebar-header.js +1 -1
- package/dist/es/chunks/sidebar-menu-action.js +2 -2
- package/dist/es/chunks/sidebar-menu-badge.js +1 -1
- package/dist/es/chunks/sidebar-menu-button.js +2 -2
- package/dist/es/chunks/sidebar-menu-item.js +1 -1
- package/dist/es/chunks/sidebar-menu-sub-button.js +2 -2
- package/dist/es/chunks/sidebar-menu-sub-item.js +1 -1
- package/dist/es/chunks/sidebar-menu-sub.js +1 -1
- package/dist/es/chunks/sidebar-menu.js +1 -1
- package/dist/es/chunks/sidebar-provider.vue_vue_type_style_index_0_lang.js +3 -3
- package/dist/es/chunks/sidebar-separator.vue_vue_type_style_index_0_lang.js +1 -1
- package/dist/es/chunks/sidebar.js +1 -1
- package/dist/es/chunks/slider.js +7 -7
- package/dist/es/chunks/sonner.js +29 -97
- package/dist/es/chunks/switch.js +5 -5
- package/dist/es/chunks/tinycolor.js +2 -2
- package/dist/es/chunks/tooltip-provider.js +3 -3
- package/dist/es/chunks/tooltip-root.js +4 -4
- package/dist/es/chunks/tooltip-trigger.js +4 -4
- package/dist/es/chunks/tooltip.js +3 -3
- package/dist/es/color-area.js +2 -2
- package/dist/es/color-picker.js +5 -5
- package/dist/es/color-swatch.js +1 -1
- package/dist/es/combobox-empty.js +3 -3
- package/dist/es/combobox-group.js +4 -4
- package/dist/es/combobox-input.js +3 -3
- package/dist/es/combobox-item.js +4 -4
- package/dist/es/combobox-list.js +6 -6
- package/dist/es/combobox-root.js +4 -5
- package/dist/es/combobox-separator.js +3 -3
- package/dist/es/combobox-trigger.js +4 -4
- package/dist/es/combobox.js +3 -4
- package/dist/es/command-group.js +4 -4
- package/dist/es/command-input.js +4 -4
- package/dist/es/command-item.js +4 -4
- package/dist/es/command-list.js +4 -4
- package/dist/es/command-root.js +4 -5
- package/dist/es/command-separator.js +3 -3
- package/dist/es/compact-button.js +2 -2
- package/dist/es/digit-input-group.js +3 -3
- package/dist/es/digit-input-slot.js +4 -4
- package/dist/es/digit-input.js +4 -4
- package/dist/es/dropdown-menu-content.js +5 -5
- package/dist/es/dropdown-menu-group.js +3 -3
- package/dist/es/dropdown-menu-item.js +4 -4
- package/dist/es/dropdown-menu-label.js +4 -4
- package/dist/es/dropdown-menu-separator.js +3 -3
- package/dist/es/dropdown-menu-sub-content.js +5 -5
- package/dist/es/dropdown-menu-sub-trigger.js +4 -4
- package/dist/es/dropdown-menu-trigger.js +4 -4
- package/dist/es/dropdown-menu.js +4 -4
- package/dist/es/extra-settings.js +1 -1
- package/dist/es/fancy-button.js +2 -2
- package/dist/es/file-upload-area.js +1 -1
- package/dist/es/hint-text.js +1 -1
- package/dist/es/hue-slider.js +3 -3
- package/dist/es/index.js +3 -3
- package/dist/es/label.js +3 -3
- package/dist/es/link-bubble.js +1 -1
- package/dist/es/link-button.js +2 -2
- package/dist/es/modal-body.js +1 -1
- package/dist/es/modal-content.js +6 -6
- package/dist/es/modal-footer.js +1 -1
- package/dist/es/modal-header.js +5 -5
- package/dist/es/pagination-content.js +3 -3
- package/dist/es/pagination-ellipsis.js +3 -3
- package/dist/es/pagination.js +4 -4
- package/dist/es/popover-content.js +7 -7
- package/dist/es/popover-trigger.js +3 -3
- package/dist/es/progress-bar.js +4 -4
- package/dist/es/progress-circle.js +4 -4
- package/dist/es/radio-group-card.js +3 -3
- package/dist/es/radio-group-label.js +3 -3
- package/dist/es/rich-editor.js +4 -4
- package/dist/es/scroll-bar.js +4 -4
- package/dist/es/segmented-control-item.js +5 -3
- package/dist/es/segmented-control.js +4 -4
- package/dist/es/select-content.js +6 -6
- package/dist/es/select-icon.js +1 -1
- package/dist/es/select-item.js +5 -5
- package/dist/es/select-label.js +3 -3
- package/dist/es/select-separator.js +3 -3
- package/dist/es/select-trigger.js +4 -4
- package/dist/es/select-value.js +3 -3
- package/dist/es/sheet-close.js +3 -3
- package/dist/es/sheet-content.js +7 -7
- package/dist/es/sheet-description.js +3 -3
- package/dist/es/sheet-footer.js +1 -1
- package/dist/es/sheet-header.js +1 -1
- package/dist/es/sheet-title.js +3 -3
- package/dist/es/sidebar-group-content.js +1 -1
- package/dist/es/sidebar-trigger.js +1 -1
- package/dist/es/social-button.js +2 -2
- package/dist/es/sonner-alert.js +1 -1
- package/dist/es/status-badge.js +1 -1
- package/dist/es/tab-menu-content.js +3 -3
- package/dist/es/tab-menu-item.js +4 -4
- package/dist/es/tab-menu-list.js +3 -3
- package/dist/es/tab-menu.js +4 -4
- package/dist/es/table-body.js +1 -1
- package/dist/es/table-caption.js +1 -1
- package/dist/es/table-cell.js +1 -1
- package/dist/es/table-empty.js +1 -1
- package/dist/es/table-footer.js +1 -1
- package/dist/es/table-head.js +1 -1
- package/dist/es/table-header.js +1 -1
- package/dist/es/table-row.js +1 -1
- package/dist/es/table.js +1 -1
- package/dist/es/tag.js +2 -2
- package/dist/es/text-input-affix.js +1 -1
- package/dist/es/text-input-button.js +1 -1
- package/dist/es/text-input.js +2 -2
- package/dist/es/textarea.js +1 -1
- package/dist/es/tooltip-content.js +6 -6
- package/dist/es/use-sidebar.js +2 -2
- package/package.json +3 -3
- package/src/components/slider/slider.vue +3 -3
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const
|
|
2
|
+
const Mo = require("vue");
|
|
3
3
|
const clsx = require("./chunks/clsx.js");
|
|
4
4
|
const index = require("./chunks/index.js");
|
|
5
5
|
const checkbox_vue_vue_type_script_setup_true_lang = require("./chunks/checkbox.js");
|
|
@@ -25,7 +25,7 @@ const _hoisted_7 = {
|
|
|
25
25
|
key: 3,
|
|
26
26
|
class: "i-celeste-check-fill"
|
|
27
27
|
};
|
|
28
|
-
const _sfc_main = /* @__PURE__ */
|
|
28
|
+
const _sfc_main = /* @__PURE__ */ Mo.defineComponent({
|
|
29
29
|
__name: "combobox-item",
|
|
30
30
|
props: {
|
|
31
31
|
class: {},
|
|
@@ -45,21 +45,21 @@ const _sfc_main = /* @__PURE__ */ No.defineComponent({
|
|
|
45
45
|
setup(__props, { emit: __emit }) {
|
|
46
46
|
const props = __props;
|
|
47
47
|
const emits = __emit;
|
|
48
|
-
const delegatedProps =
|
|
48
|
+
const delegatedProps = Mo.computed(() => {
|
|
49
49
|
const { class: _, ...delegated } = props;
|
|
50
50
|
return delegated;
|
|
51
51
|
});
|
|
52
|
-
const forwarded = index.
|
|
52
|
+
const forwarded = index.xe(delegatedProps, emits);
|
|
53
53
|
return (_ctx, _cache) => {
|
|
54
|
-
return
|
|
54
|
+
return Mo.openBlock(), Mo.createBlock(Mo.unref(index.Qv), Mo.mergeProps(Mo.unref(forwarded), {
|
|
55
55
|
disabled: _ctx.disabled,
|
|
56
56
|
"as-child": ""
|
|
57
57
|
}), {
|
|
58
|
-
default:
|
|
59
|
-
|
|
58
|
+
default: Mo.withCtx(() => [
|
|
59
|
+
Mo.createElementVNode("div", {
|
|
60
60
|
tabindex: "0",
|
|
61
61
|
"aria-disabled": _ctx.disabled,
|
|
62
|
-
class:
|
|
62
|
+
class: Mo.normalizeClass(Mo.unref(clsx.clsx)(
|
|
63
63
|
props.class,
|
|
64
64
|
"celeste-dropdown-item",
|
|
65
65
|
{ "celeste-dropdown-item-disabled": _ctx.disabled },
|
|
@@ -67,39 +67,39 @@ const _sfc_main = /* @__PURE__ */ No.defineComponent({
|
|
|
67
67
|
{ "celeste-dropdown-item-focused": _ctx.focused }
|
|
68
68
|
))
|
|
69
69
|
}, [
|
|
70
|
-
_ctx.checkbox && _ctx.size === "sm" ? (
|
|
70
|
+
_ctx.checkbox && _ctx.size === "sm" ? (Mo.openBlock(), Mo.createBlock(checkbox_vue_vue_type_script_setup_true_lang._sfc_main, {
|
|
71
71
|
key: 0,
|
|
72
72
|
checked: _ctx.selected,
|
|
73
73
|
disabled: _ctx.disabled
|
|
74
|
-
}, null, 8, ["checked", "disabled"])) :
|
|
75
|
-
_ctx.$slots.prefix ? (
|
|
74
|
+
}, null, 8, ["checked", "disabled"])) : Mo.createCommentVNode("", true),
|
|
75
|
+
_ctx.$slots.prefix ? (Mo.openBlock(), Mo.createElementBlock("div", {
|
|
76
76
|
key: 1,
|
|
77
|
-
class:
|
|
77
|
+
class: Mo.normalizeClass(Mo.unref(clsx.clsx)(
|
|
78
78
|
"celeste-dropdown-item-prefix",
|
|
79
79
|
`celeste-dropdown-item-prefix-${_ctx.size}`
|
|
80
80
|
))
|
|
81
81
|
}, [
|
|
82
|
-
|
|
83
|
-
], 2)) :
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
class:
|
|
82
|
+
Mo.renderSlot(_ctx.$slots, "prefix", {}, void 0, true)
|
|
83
|
+
], 2)) : Mo.createCommentVNode("", true),
|
|
84
|
+
Mo.createElementVNode("div", _hoisted_2, [
|
|
85
|
+
Mo.createElementVNode("div", {
|
|
86
|
+
class: Mo.normalizeClass(Mo.unref(clsx.clsx)(
|
|
87
87
|
"celeste-dropdown-item-header",
|
|
88
88
|
`celeste-dropdown-item-header-${_ctx.size}`
|
|
89
89
|
))
|
|
90
90
|
}, [
|
|
91
|
-
|
|
91
|
+
Mo.createElementVNode("span", {
|
|
92
92
|
class: "celeste-dropdown-item-label",
|
|
93
93
|
innerHTML: _ctx.label
|
|
94
94
|
}, null, 8, _hoisted_3),
|
|
95
|
-
_ctx.sublabel ? (
|
|
95
|
+
_ctx.sublabel ? (Mo.openBlock(), Mo.createElementBlock("span", _hoisted_4, Mo.toDisplayString(_ctx.sublabel), 1)) : Mo.createCommentVNode("", true)
|
|
96
96
|
], 2),
|
|
97
|
-
_ctx.description && _ctx.size === "lg" ? (
|
|
97
|
+
_ctx.description && _ctx.size === "lg" ? (Mo.openBlock(), Mo.createElementBlock("p", _hoisted_5, Mo.toDisplayString(_ctx.description), 1)) : Mo.createCommentVNode("", true)
|
|
98
98
|
]),
|
|
99
|
-
_ctx.$slots.suffix ? (
|
|
100
|
-
|
|
101
|
-
])) :
|
|
102
|
-
_ctx.selected ? (
|
|
99
|
+
_ctx.$slots.suffix ? (Mo.openBlock(), Mo.createElementBlock("div", _hoisted_6, [
|
|
100
|
+
Mo.renderSlot(_ctx.$slots, "suffix", {}, void 0, true)
|
|
101
|
+
])) : Mo.createCommentVNode("", true),
|
|
102
|
+
_ctx.selected ? (Mo.openBlock(), Mo.createElementBlock("i", _hoisted_7)) : Mo.createCommentVNode("", true)
|
|
103
103
|
], 10, _hoisted_1)
|
|
104
104
|
]),
|
|
105
105
|
_: 3
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const
|
|
2
|
+
const Mo = require("vue");
|
|
3
3
|
const clsx = require("./chunks/clsx.js");
|
|
4
4
|
const index = require("./chunks/index.js");
|
|
5
5
|
;/* empty css */
|
|
6
6
|
const _pluginVue_exportHelper = require("./chunks/_plugin-vue_export-helper.js");
|
|
7
|
-
const _sfc_main = /* @__PURE__ */
|
|
7
|
+
const _sfc_main = /* @__PURE__ */ Mo.defineComponent({
|
|
8
8
|
__name: "combobox-list",
|
|
9
9
|
props: {
|
|
10
10
|
forceMount: { type: Boolean },
|
|
@@ -32,21 +32,21 @@ const _sfc_main = /* @__PURE__ */ No.defineComponent({
|
|
|
32
32
|
setup(__props, { emit: __emit }) {
|
|
33
33
|
const props = __props;
|
|
34
34
|
const emits = __emit;
|
|
35
|
-
const delegatedProps =
|
|
35
|
+
const delegatedProps = Mo.computed(() => {
|
|
36
36
|
const { class: _, ...delegated } = props;
|
|
37
37
|
return delegated;
|
|
38
38
|
});
|
|
39
|
-
const forwarded = index.
|
|
39
|
+
const forwarded = index.xe(delegatedProps, emits);
|
|
40
40
|
return (_ctx, _cache) => {
|
|
41
|
-
return
|
|
42
|
-
default:
|
|
43
|
-
|
|
44
|
-
class:
|
|
41
|
+
return Mo.openBlock(), Mo.createBlock(Mo.unref(index.nm), null, {
|
|
42
|
+
default: Mo.withCtx(() => [
|
|
43
|
+
Mo.createVNode(Mo.unref(index.Xv), Mo.mergeProps(Mo.unref(forwarded), {
|
|
44
|
+
class: Mo.unref(clsx.clsx)("celeste-dropdown-content", props.class)
|
|
45
45
|
}), {
|
|
46
|
-
default:
|
|
47
|
-
|
|
48
|
-
default:
|
|
49
|
-
|
|
46
|
+
default: Mo.withCtx(() => [
|
|
47
|
+
Mo.createVNode(Mo.unref(index.Jv), { class: "celeste-dropdown-items-viewport" }, {
|
|
48
|
+
default: Mo.withCtx(() => [
|
|
49
|
+
Mo.renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
50
50
|
]),
|
|
51
51
|
_: 3
|
|
52
52
|
})
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const
|
|
2
|
+
const Mo = require("vue");
|
|
3
3
|
const index = require("./chunks/index.js");
|
|
4
4
|
;/* empty css */
|
|
5
5
|
const _pluginVue_exportHelper = require("./chunks/_plugin-vue_export-helper.js");
|
|
6
|
-
const _sfc_main = /* @__PURE__ */
|
|
6
|
+
const _sfc_main = /* @__PURE__ */ Mo.defineComponent({
|
|
7
7
|
__name: "combobox-root",
|
|
8
8
|
props: {
|
|
9
9
|
modelValue: {},
|
|
@@ -19,7 +19,6 @@ const _sfc_main = /* @__PURE__ */ No.defineComponent({
|
|
|
19
19
|
filterFunction: { type: Function },
|
|
20
20
|
displayValue: { type: Function },
|
|
21
21
|
resetSearchTermOnBlur: { type: Boolean },
|
|
22
|
-
resetSearchTermOnSelect: { type: Boolean },
|
|
23
22
|
asChild: { type: Boolean },
|
|
24
23
|
as: {}
|
|
25
24
|
},
|
|
@@ -27,11 +26,11 @@ const _sfc_main = /* @__PURE__ */ No.defineComponent({
|
|
|
27
26
|
setup(__props, { emit: __emit }) {
|
|
28
27
|
const props = __props;
|
|
29
28
|
const emits = __emit;
|
|
30
|
-
const forwarded = index.
|
|
29
|
+
const forwarded = index.xe(props, emits);
|
|
31
30
|
return (_ctx, _cache) => {
|
|
32
|
-
return
|
|
33
|
-
default:
|
|
34
|
-
|
|
31
|
+
return Mo.openBlock(), Mo.createBlock(Mo.unref(index.Hv), Mo.mergeProps({ class: "celeste-combobox-root" }, Mo.unref(forwarded)), {
|
|
32
|
+
default: Mo.withCtx(() => [
|
|
33
|
+
Mo.renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
35
34
|
]),
|
|
36
35
|
_: 3
|
|
37
36
|
}, 16);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const
|
|
2
|
+
const Mo = require("vue");
|
|
3
3
|
const clsx = require("./chunks/clsx.js");
|
|
4
4
|
const index = require("./chunks/index.js");
|
|
5
5
|
;/* empty css */
|
|
6
6
|
const _pluginVue_exportHelper = require("./chunks/_plugin-vue_export-helper.js");
|
|
7
|
-
const _sfc_main = /* @__PURE__ */
|
|
7
|
+
const _sfc_main = /* @__PURE__ */ Mo.defineComponent({
|
|
8
8
|
__name: "combobox-separator",
|
|
9
9
|
props: {
|
|
10
10
|
asChild: { type: Boolean },
|
|
@@ -13,16 +13,16 @@ const _sfc_main = /* @__PURE__ */ No.defineComponent({
|
|
|
13
13
|
},
|
|
14
14
|
setup(__props) {
|
|
15
15
|
const props = __props;
|
|
16
|
-
const delegatedProps =
|
|
16
|
+
const delegatedProps = Mo.computed(() => {
|
|
17
17
|
const { class: _, ...delegated } = props;
|
|
18
18
|
return delegated;
|
|
19
19
|
});
|
|
20
20
|
return (_ctx, _cache) => {
|
|
21
|
-
return
|
|
22
|
-
class:
|
|
21
|
+
return Mo.openBlock(), Mo.createBlock(Mo.unref(index.tm), Mo.mergeProps(delegatedProps.value, {
|
|
22
|
+
class: Mo.unref(clsx.clsx)("celeste-dropdown-separator", props.class)
|
|
23
23
|
}), {
|
|
24
|
-
default:
|
|
25
|
-
|
|
24
|
+
default: Mo.withCtx(() => [
|
|
25
|
+
Mo.renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
26
26
|
]),
|
|
27
27
|
_: 3
|
|
28
28
|
}, 16, ["class"]);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const
|
|
2
|
+
const Mo = require("vue");
|
|
3
3
|
const clsx = require("./chunks/clsx.js");
|
|
4
4
|
const index = require("./chunks/index.js");
|
|
5
5
|
;/* empty css */
|
|
6
6
|
const _pluginVue_exportHelper = require("./chunks/_plugin-vue_export-helper.js");
|
|
7
|
-
const _sfc_main = /* @__PURE__ */
|
|
7
|
+
const _sfc_main = /* @__PURE__ */ Mo.defineComponent({
|
|
8
8
|
__name: "combobox-trigger",
|
|
9
9
|
props: {
|
|
10
10
|
class: {},
|
|
@@ -18,16 +18,16 @@ const _sfc_main = /* @__PURE__ */ No.defineComponent({
|
|
|
18
18
|
},
|
|
19
19
|
setup(__props) {
|
|
20
20
|
const props = __props;
|
|
21
|
-
const delegatedProps =
|
|
21
|
+
const delegatedProps = Mo.computed(() => {
|
|
22
22
|
const { class: _, ...delegated } = props;
|
|
23
23
|
return delegated;
|
|
24
24
|
});
|
|
25
|
-
const forwarded = index.
|
|
25
|
+
const forwarded = index.At(delegatedProps);
|
|
26
26
|
return (_ctx, _cache) => {
|
|
27
|
-
return
|
|
27
|
+
return Mo.openBlock(), Mo.createBlock(Mo.unref(index.Uv), Mo.mergeProps(Mo.unref(forwarded), {
|
|
28
28
|
type: "button",
|
|
29
29
|
tabindex: "0",
|
|
30
|
-
class:
|
|
30
|
+
class: Mo.unref(clsx.clsx)(
|
|
31
31
|
"celeste-dropdown-anchor-trigger",
|
|
32
32
|
`celeste-dropdown-anchor-trigger-size-${props.size}`,
|
|
33
33
|
`celeste-dropdown-anchor-trigger-type-${props.type}`,
|
|
@@ -36,8 +36,8 @@ const _sfc_main = /* @__PURE__ */ No.defineComponent({
|
|
|
36
36
|
props.class
|
|
37
37
|
)
|
|
38
38
|
}), {
|
|
39
|
-
default:
|
|
40
|
-
|
|
39
|
+
default: Mo.withCtx(() => [
|
|
40
|
+
Mo.renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
41
41
|
]),
|
|
42
42
|
_: 3
|
|
43
43
|
}, 16, ["class"]);
|
package/dist/cjs/combobox.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const
|
|
2
|
+
const Mo = require("vue");
|
|
3
3
|
const index = require("./chunks/index.js");
|
|
4
4
|
const badge = require("./badge.js");
|
|
5
5
|
const comboboxAnchor_vue_vue_type_script_setup_true_lang = require("./chunks/combobox-anchor.js");
|
|
@@ -36,7 +36,7 @@ const _hoisted_8 = ["src"];
|
|
|
36
36
|
const __default__ = {
|
|
37
37
|
inheritAttrs: false
|
|
38
38
|
};
|
|
39
|
-
const _sfc_main = /* @__PURE__ */
|
|
39
|
+
const _sfc_main = /* @__PURE__ */ Mo.defineComponent({
|
|
40
40
|
...__default__,
|
|
41
41
|
__name: "combobox",
|
|
42
42
|
props: {
|
|
@@ -63,7 +63,6 @@ const _sfc_main = /* @__PURE__ */ No.defineComponent({
|
|
|
63
63
|
filterFunction: {},
|
|
64
64
|
displayValue: {},
|
|
65
65
|
resetSearchTermOnBlur: { type: Boolean },
|
|
66
|
-
resetSearchTermOnSelect: { type: Boolean },
|
|
67
66
|
asChild: { type: Boolean },
|
|
68
67
|
as: {}
|
|
69
68
|
},
|
|
@@ -71,7 +70,7 @@ const _sfc_main = /* @__PURE__ */ No.defineComponent({
|
|
|
71
70
|
setup(__props, { emit: __emit }) {
|
|
72
71
|
const props = __props;
|
|
73
72
|
const emits = __emit;
|
|
74
|
-
const delegatedProps =
|
|
73
|
+
const delegatedProps = Mo.computed(() => {
|
|
75
74
|
const {
|
|
76
75
|
open,
|
|
77
76
|
filterFunction: filterFunction2,
|
|
@@ -89,9 +88,9 @@ const _sfc_main = /* @__PURE__ */ No.defineComponent({
|
|
|
89
88
|
} = props;
|
|
90
89
|
return delegated;
|
|
91
90
|
});
|
|
92
|
-
const forwarded = index.
|
|
93
|
-
const model =
|
|
94
|
-
const label =
|
|
91
|
+
const forwarded = index.xe(delegatedProps, emits);
|
|
92
|
+
const model = Mo.computed(() => props.modelValue);
|
|
93
|
+
const label = Mo.computed(() => {
|
|
95
94
|
if (!model.value)
|
|
96
95
|
return props.placeholder;
|
|
97
96
|
if (Array.isArray(model.value)) {
|
|
@@ -125,49 +124,49 @@ const _sfc_main = /* @__PURE__ */ No.defineComponent({
|
|
|
125
124
|
return value.toString().toLowerCase().includes(searchTerm.toLowerCase()) || label2.toString().toLowerCase().includes(searchTerm.toLowerCase());
|
|
126
125
|
});
|
|
127
126
|
}
|
|
128
|
-
const mergedBadgeProps =
|
|
127
|
+
const mergedBadgeProps = Mo.computed(() => ({
|
|
129
128
|
...props.badgeProps,
|
|
130
129
|
disabled: props.disabled
|
|
131
130
|
}));
|
|
132
131
|
return (_ctx, _cache) => {
|
|
133
|
-
return
|
|
134
|
-
default:
|
|
135
|
-
|
|
136
|
-
default:
|
|
137
|
-
|
|
132
|
+
return Mo.openBlock(), Mo.createBlock(comboboxRoot, Mo.mergeProps(Mo.unref(forwarded), { "filter-function": filterFunction }), {
|
|
133
|
+
default: Mo.withCtx(() => [
|
|
134
|
+
Mo.createVNode(comboboxAnchor_vue_vue_type_script_setup_true_lang._sfc_main, { "as-child": "" }, {
|
|
135
|
+
default: Mo.withCtx(() => [
|
|
136
|
+
Mo.createVNode(comboboxTrigger, {
|
|
138
137
|
type: _ctx.type,
|
|
139
138
|
filled: !!model.value,
|
|
140
139
|
size: _ctx.size,
|
|
141
|
-
class:
|
|
140
|
+
class: Mo.normalizeClass(props.class)
|
|
142
141
|
}, {
|
|
143
|
-
default:
|
|
144
|
-
model.value && !Array.isArray(model.value) && (model.value.icon || model.value.image) ? (
|
|
145
|
-
|
|
146
|
-
model.value.icon ? (
|
|
142
|
+
default: Mo.withCtx(() => [
|
|
143
|
+
model.value && !Array.isArray(model.value) && (model.value.icon || model.value.image) ? (Mo.openBlock(), Mo.createElementBlock("div", _hoisted_1, [
|
|
144
|
+
Mo.createElementVNode("div", _hoisted_2, [
|
|
145
|
+
model.value.icon ? (Mo.openBlock(), Mo.createElementBlock("i", {
|
|
147
146
|
key: 0,
|
|
148
|
-
class:
|
|
149
|
-
}, null, 2)) :
|
|
150
|
-
model.value.image ? (
|
|
151
|
-
|
|
152
|
-
|
|
147
|
+
class: Mo.normalizeClass(model.value.icon)
|
|
148
|
+
}, null, 2)) : Mo.createCommentVNode("", true),
|
|
149
|
+
model.value.image ? (Mo.openBlock(), Mo.createElementBlock("div", _hoisted_3, [
|
|
150
|
+
Mo.renderSlot(_ctx.$slots, "image", Mo.normalizeProps(Mo.guardReactiveProps({ selected: model.value })), () => [
|
|
151
|
+
Mo.createElementVNode("img", {
|
|
153
152
|
src: model.value.image,
|
|
154
153
|
alt: "Selected option",
|
|
155
154
|
class: "selected-dropdown-image"
|
|
156
155
|
}, null, 8, _hoisted_4)
|
|
157
156
|
], true)
|
|
158
|
-
])) :
|
|
157
|
+
])) : Mo.createCommentVNode("", true)
|
|
159
158
|
])
|
|
160
|
-
])) : _ctx.$slots.prefix ? (
|
|
161
|
-
|
|
162
|
-
])) :
|
|
163
|
-
_ctx.type !== "inline" ? (
|
|
164
|
-
|
|
165
|
-
mergedBadgeProps.value && _ctx.badgeProps ? (
|
|
166
|
-
|
|
167
|
-
])) :
|
|
168
|
-
])) :
|
|
169
|
-
_cache[0] || (_cache[0] =
|
|
170
|
-
|
|
159
|
+
])) : _ctx.$slots.prefix ? (Mo.openBlock(), Mo.createElementBlock("div", _hoisted_5, [
|
|
160
|
+
Mo.renderSlot(_ctx.$slots, "prefix", { class: "celeste-dropdown-anchor-trigger-prefix-default" }, void 0, true)
|
|
161
|
+
])) : Mo.createCommentVNode("", true),
|
|
162
|
+
_ctx.type !== "inline" ? (Mo.openBlock(), Mo.createElementBlock("div", _hoisted_6, [
|
|
163
|
+
Mo.createElementVNode("span", null, Mo.toDisplayString(label.value), 1),
|
|
164
|
+
mergedBadgeProps.value && _ctx.badgeProps ? (Mo.openBlock(), Mo.createElementBlock("span", _hoisted_7, [
|
|
165
|
+
Mo.createVNode(badge, Mo.normalizeProps(Mo.guardReactiveProps(mergedBadgeProps.value)), null, 16)
|
|
166
|
+
])) : Mo.createCommentVNode("", true)
|
|
167
|
+
])) : Mo.createCommentVNode("", true),
|
|
168
|
+
_cache[0] || (_cache[0] = Mo.createElementVNode("div", { class: "celeste-dropdown-trigger" }, [
|
|
169
|
+
Mo.createElementVNode("i", { class: "i-celeste-arrow-down-s-line" })
|
|
171
170
|
], -1))
|
|
172
171
|
]),
|
|
173
172
|
_: 3
|
|
@@ -175,27 +174,27 @@ const _sfc_main = /* @__PURE__ */ No.defineComponent({
|
|
|
175
174
|
]),
|
|
176
175
|
_: 3
|
|
177
176
|
}),
|
|
178
|
-
|
|
179
|
-
default:
|
|
180
|
-
|
|
181
|
-
class:
|
|
177
|
+
Mo.createVNode(comboboxList, null, {
|
|
178
|
+
default: Mo.withCtx(() => [
|
|
179
|
+
Mo.createElementVNode("div", {
|
|
180
|
+
class: Mo.normalizeClass(["celeste-dropdown-inner-input", { "sr-only": !_ctx.searchable }])
|
|
182
181
|
}, [
|
|
183
|
-
|
|
184
|
-
_ctx.searchable ? (
|
|
182
|
+
Mo.createVNode(comboboxInput, { searchable: _ctx.searchable }, null, 8, ["searchable"]),
|
|
183
|
+
_ctx.searchable ? (Mo.openBlock(), Mo.createBlock(comboboxSeparator, { key: 0 })) : Mo.createCommentVNode("", true)
|
|
185
184
|
], 2),
|
|
186
|
-
|
|
185
|
+
Mo.createVNode(comboboxEmpty, null, Mo.createSlots({ _: 2 }, [
|
|
187
186
|
_ctx.emptyLabel ? {
|
|
188
187
|
name: "default",
|
|
189
|
-
fn:
|
|
190
|
-
|
|
188
|
+
fn: Mo.withCtx(() => [
|
|
189
|
+
Mo.createTextVNode(Mo.toDisplayString(_ctx.emptyLabel), 1)
|
|
191
190
|
]),
|
|
192
191
|
key: "0"
|
|
193
192
|
} : void 0
|
|
194
193
|
]), 1024),
|
|
195
|
-
|
|
196
|
-
default:
|
|
197
|
-
(
|
|
198
|
-
return
|
|
194
|
+
Mo.createVNode(comboboxGroup, null, {
|
|
195
|
+
default: Mo.withCtx(() => [
|
|
196
|
+
(Mo.openBlock(true), Mo.createElementBlock(Mo.Fragment, null, Mo.renderList(props.options, (option) => {
|
|
197
|
+
return Mo.openBlock(), Mo.createBlock(comboboxItem, {
|
|
199
198
|
key: option.label,
|
|
200
199
|
label: option.label,
|
|
201
200
|
sublabel: option.sublabel,
|
|
@@ -204,17 +203,17 @@ const _sfc_main = /* @__PURE__ */ No.defineComponent({
|
|
|
204
203
|
value: option,
|
|
205
204
|
selected: isSelected(option.value)
|
|
206
205
|
}, {
|
|
207
|
-
prefix:
|
|
208
|
-
option.icon ? (
|
|
206
|
+
prefix: Mo.withCtx(() => [
|
|
207
|
+
option.icon ? (Mo.openBlock(), Mo.createElementBlock("i", {
|
|
209
208
|
key: 0,
|
|
210
|
-
class:
|
|
211
|
-
}, null, 2)) :
|
|
212
|
-
option.image ? (
|
|
209
|
+
class: Mo.normalizeClass(option.icon)
|
|
210
|
+
}, null, 2)) : Mo.createCommentVNode("", true),
|
|
211
|
+
option.image ? (Mo.openBlock(), Mo.createElementBlock("img", {
|
|
213
212
|
key: 1,
|
|
214
213
|
src: option.image,
|
|
215
214
|
alt: "option",
|
|
216
215
|
class: "celeste-dropdown-item-image"
|
|
217
|
-
}, null, 8, _hoisted_8)) :
|
|
216
|
+
}, null, 8, _hoisted_8)) : Mo.createCommentVNode("", true)
|
|
218
217
|
]),
|
|
219
218
|
_: 2
|
|
220
219
|
}, 1032, ["label", "sublabel", "description", "checkbox", "value", "selected"]);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const
|
|
2
|
+
const Mo = require("vue");
|
|
3
3
|
const index = require("./chunks/index.js");
|
|
4
4
|
const _pluginVue_exportHelper = require("./chunks/_plugin-vue_export-helper.js");
|
|
5
|
-
const _sfc_main = /* @__PURE__ */
|
|
5
|
+
const _sfc_main = /* @__PURE__ */ Mo.defineComponent({
|
|
6
6
|
__name: "command-group",
|
|
7
7
|
props: {
|
|
8
8
|
asChild: { type: Boolean },
|
|
@@ -12,25 +12,25 @@ const _sfc_main = /* @__PURE__ */ No.defineComponent({
|
|
|
12
12
|
},
|
|
13
13
|
setup(__props) {
|
|
14
14
|
const props = __props;
|
|
15
|
-
const delegatedProps =
|
|
15
|
+
const delegatedProps = Mo.computed(() => {
|
|
16
16
|
const { class: _, ...delegated } = props;
|
|
17
17
|
return delegated;
|
|
18
18
|
});
|
|
19
19
|
return (_ctx, _cache) => {
|
|
20
|
-
return
|
|
20
|
+
return Mo.openBlock(), Mo.createBlock(Mo.unref(index.qv), Mo.mergeProps(delegatedProps.value, {
|
|
21
21
|
class: ["celeste-command-group", props.class]
|
|
22
22
|
}), {
|
|
23
|
-
default:
|
|
24
|
-
_ctx.heading ? (
|
|
23
|
+
default: Mo.withCtx(() => [
|
|
24
|
+
_ctx.heading ? (Mo.openBlock(), Mo.createBlock(Mo.unref(index.Yv), {
|
|
25
25
|
key: 0,
|
|
26
26
|
class: "celeste-command-label"
|
|
27
27
|
}, {
|
|
28
|
-
default:
|
|
29
|
-
|
|
28
|
+
default: Mo.withCtx(() => [
|
|
29
|
+
Mo.createTextVNode(Mo.toDisplayString(_ctx.heading), 1)
|
|
30
30
|
]),
|
|
31
31
|
_: 1
|
|
32
|
-
})) :
|
|
33
|
-
|
|
32
|
+
})) : Mo.createCommentVNode("", true),
|
|
33
|
+
Mo.renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
34
34
|
]),
|
|
35
35
|
_: 3
|
|
36
36
|
}, 16, ["class"]);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const
|
|
2
|
+
const Mo = require("vue");
|
|
3
3
|
const clsx = require("./chunks/clsx.js");
|
|
4
4
|
const index = require("./chunks/index.js");
|
|
5
5
|
const _pluginVue_exportHelper = require("./chunks/_plugin-vue_export-helper.js");
|
|
@@ -7,7 +7,7 @@ const _hoisted_1 = {
|
|
|
7
7
|
class: "celeste-command-input",
|
|
8
8
|
"cmdk-input-wrapper": ""
|
|
9
9
|
};
|
|
10
|
-
const _sfc_main = /* @__PURE__ */
|
|
10
|
+
const _sfc_main = /* @__PURE__ */ Mo.defineComponent({
|
|
11
11
|
...{
|
|
12
12
|
inheritAttrs: false
|
|
13
13
|
},
|
|
@@ -22,17 +22,17 @@ const _sfc_main = /* @__PURE__ */ No.defineComponent({
|
|
|
22
22
|
},
|
|
23
23
|
setup(__props) {
|
|
24
24
|
const props = __props;
|
|
25
|
-
const delegatedProps =
|
|
25
|
+
const delegatedProps = Mo.computed(() => {
|
|
26
26
|
const { class: _, ...delegated } = props;
|
|
27
27
|
return delegated;
|
|
28
28
|
});
|
|
29
|
-
const forwardedProps = index.
|
|
29
|
+
const forwardedProps = index.At(delegatedProps);
|
|
30
30
|
return (_ctx, _cache) => {
|
|
31
|
-
return
|
|
32
|
-
_cache[0] || (_cache[0] =
|
|
33
|
-
|
|
31
|
+
return Mo.openBlock(), Mo.createElementBlock("div", _hoisted_1, [
|
|
32
|
+
_cache[0] || (_cache[0] = Mo.createElementVNode("i", { class: "celeste-command-input-icon i-celeste-search-line" }, null, -1)),
|
|
33
|
+
Mo.createVNode(Mo.unref(index.Wv), Mo.mergeProps({ ...Mo.unref(forwardedProps), ..._ctx.$attrs }, {
|
|
34
34
|
"auto-focus": "",
|
|
35
|
-
class:
|
|
35
|
+
class: Mo.unref(clsx.clsx)("celeste-command-input-primitive", props.class)
|
|
36
36
|
}), null, 16, ["class"])
|
|
37
37
|
]);
|
|
38
38
|
};
|
package/dist/cjs/command-item.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const
|
|
2
|
+
const Mo = require("vue");
|
|
3
3
|
const index = require("./chunks/index.js");
|
|
4
|
-
const _sfc_main = /* @__PURE__ */
|
|
4
|
+
const _sfc_main = /* @__PURE__ */ Mo.defineComponent({
|
|
5
5
|
__name: "command-item",
|
|
6
6
|
props: {
|
|
7
7
|
value: {},
|
|
@@ -14,17 +14,17 @@ const _sfc_main = /* @__PURE__ */ No.defineComponent({
|
|
|
14
14
|
setup(__props, { emit: __emit }) {
|
|
15
15
|
const props = __props;
|
|
16
16
|
const emits = __emit;
|
|
17
|
-
const delegatedProps =
|
|
17
|
+
const delegatedProps = Mo.computed(() => {
|
|
18
18
|
const { class: _, ...delegated } = props;
|
|
19
19
|
return delegated;
|
|
20
20
|
});
|
|
21
|
-
const forwarded = index.
|
|
21
|
+
const forwarded = index.xe(delegatedProps, emits);
|
|
22
22
|
return (_ctx, _cache) => {
|
|
23
|
-
return
|
|
23
|
+
return Mo.openBlock(), Mo.createBlock(Mo.unref(index.Qv), Mo.mergeProps(Mo.unref(forwarded), {
|
|
24
24
|
class: ["celeste-command-item", props.class]
|
|
25
25
|
}), {
|
|
26
|
-
default:
|
|
27
|
-
|
|
26
|
+
default: Mo.withCtx(() => [
|
|
27
|
+
Mo.renderSlot(_ctx.$slots, "default")
|
|
28
28
|
]),
|
|
29
29
|
_: 3
|
|
30
30
|
}, 16, ["class"]);
|
package/dist/cjs/command-list.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const
|
|
2
|
+
const Mo = require("vue");
|
|
3
3
|
const index = require("./chunks/index.js");
|
|
4
4
|
const _hoisted_1 = { role: "presentation" };
|
|
5
|
-
const _sfc_main = /* @__PURE__ */
|
|
5
|
+
const _sfc_main = /* @__PURE__ */ Mo.defineComponent({
|
|
6
6
|
__name: "command-list",
|
|
7
7
|
props: {
|
|
8
8
|
forceMount: { type: Boolean },
|
|
@@ -30,18 +30,18 @@ const _sfc_main = /* @__PURE__ */ No.defineComponent({
|
|
|
30
30
|
setup(__props, { emit: __emit }) {
|
|
31
31
|
const props = __props;
|
|
32
32
|
const emits = __emit;
|
|
33
|
-
const delegatedProps =
|
|
33
|
+
const delegatedProps = Mo.computed(() => {
|
|
34
34
|
const { class: _, ...delegated } = props;
|
|
35
35
|
return delegated;
|
|
36
36
|
});
|
|
37
|
-
const forwarded = index.
|
|
37
|
+
const forwarded = index.xe(delegatedProps, emits);
|
|
38
38
|
return (_ctx, _cache) => {
|
|
39
|
-
return
|
|
39
|
+
return Mo.openBlock(), Mo.createBlock(Mo.unref(index.Xv), Mo.mergeProps(Mo.unref(forwarded), {
|
|
40
40
|
class: ["celeste-command-list", props.class]
|
|
41
41
|
}), {
|
|
42
|
-
default:
|
|
43
|
-
|
|
44
|
-
|
|
42
|
+
default: Mo.withCtx(() => [
|
|
43
|
+
Mo.createElementVNode("div", _hoisted_1, [
|
|
44
|
+
Mo.renderSlot(_ctx.$slots, "default")
|
|
45
45
|
])
|
|
46
46
|
]),
|
|
47
47
|
_: 3
|