@youcan/celeste 0.6.27 → 0.6.29
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/package.json +3 -3
- package/src/components/checkbox/checkbox-label.vue +112 -0
- package/src/components/checkbox/checkbox.vue +2 -1
- package/src/components/checkbox/index.ts +3 -0
- package/src/components/checkbox/stories/checkbox.stories.ts +37 -20
- package/dist/celeste.css +0 -3996
- package/dist/cjs/alert.js +0 -111
- package/dist/cjs/alpha-slider.js +0 -3
- package/dist/cjs/badge.js +0 -55
- package/dist/cjs/button.js +0 -39
- package/dist/cjs/checkbox.js +0 -3
- package/dist/cjs/chunks/_plugin-vue_export-helper.js +0 -9
- package/dist/cjs/chunks/alpha-slider.js +0 -127
- package/dist/cjs/chunks/checkbox.vue_vue_type_style_index_0_lang.js +0 -38
- package/dist/cjs/chunks/clsx.js +0 -15
- package/dist/cjs/chunks/combobox-anchor.js +0 -31
- package/dist/cjs/chunks/content-divider.vue_vue_type_style_index_0_lang.js +0 -52
- package/dist/cjs/chunks/dropdown-menu-content.vue_vue_type_style_index_0_lang.js +0 -51
- package/dist/cjs/chunks/dropdown-menu-sub-content.vue_vue_type_style_index_0_lang.js +0 -49
- package/dist/cjs/chunks/dropdown-menu-sub-trigger.vue_vue_type_style_index_0_lang.js +0 -32
- package/dist/cjs/chunks/dropdown-menu-sub.js +0 -25
- package/dist/cjs/chunks/index.js +0 -9073
- package/dist/cjs/chunks/modal-close.js +0 -22
- package/dist/cjs/chunks/modal-trigger.js +0 -22
- package/dist/cjs/chunks/modal.js +0 -26
- package/dist/cjs/chunks/popover.js +0 -26
- package/dist/cjs/chunks/scroll-area.js +0 -41
- package/dist/cjs/chunks/select-group.js +0 -22
- package/dist/cjs/chunks/select.js +0 -38
- package/dist/cjs/chunks/slider.vue_vue_type_style_index_0_lang.js +0 -52
- package/dist/cjs/chunks/switch.vue_vue_type_style_index_0_lang.js +0 -38
- package/dist/cjs/chunks/use-color-model.js +0 -992
- package/dist/cjs/color-area.js +0 -175
- package/dist/cjs/color-picker.js +0 -514
- package/dist/cjs/color-swatch.js +0 -59
- package/dist/cjs/color.js +0 -102
- package/dist/cjs/combobox-anchor.js +0 -3
- package/dist/cjs/combobox-empty.js +0 -32
- package/dist/cjs/combobox-group.js +0 -42
- package/dist/cjs/combobox-input.js +0 -63
- package/dist/cjs/combobox-item.js +0 -109
- package/dist/cjs/combobox-list.js +0 -62
- package/dist/cjs/combobox-root.js +0 -40
- package/dist/cjs/combobox-separator.js +0 -32
- package/dist/cjs/combobox-trigger.js +0 -47
- package/dist/cjs/combobox.js +0 -233
- package/dist/cjs/command-group.js +0 -41
- package/dist/cjs/command-input.js +0 -42
- package/dist/cjs/command-item.js +0 -34
- package/dist/cjs/command-list.js +0 -52
- package/dist/cjs/command-root.js +0 -45
- package/dist/cjs/command-separator.js +0 -32
- package/dist/cjs/compact-button.js +0 -42
- package/dist/cjs/content-divider.js +0 -3
- package/dist/cjs/context-menu-item.js +0 -134
- package/dist/cjs/crypto.js +0 -8
- package/dist/cjs/dropdown-item.js +0 -99
- package/dist/cjs/dropdown-menu-content.js +0 -3
- package/dist/cjs/dropdown-menu-group.js +0 -24
- package/dist/cjs/dropdown-menu-item.js +0 -68
- package/dist/cjs/dropdown-menu-label.js +0 -31
- package/dist/cjs/dropdown-menu-separator.js +0 -25
- package/dist/cjs/dropdown-menu-sub-content.js +0 -3
- package/dist/cjs/dropdown-menu-sub-trigger.js +0 -3
- package/dist/cjs/dropdown-menu-sub.js +0 -3
- package/dist/cjs/dropdown-menu-trigger.js +0 -26
- package/dist/cjs/dropdown-menu.js +0 -32
- package/dist/cjs/dropdown.js +0 -291
- package/dist/cjs/fancy-button.js +0 -38
- package/dist/cjs/hint-text.js +0 -36
- package/dist/cjs/hue-slider.js +0 -133
- package/dist/cjs/index.js +0 -217
- package/dist/cjs/label.js +0 -55
- package/dist/cjs/link-button.js +0 -44
- package/dist/cjs/modal-body.js +0 -22
- package/dist/cjs/modal-close.js +0 -3
- package/dist/cjs/modal-content.js +0 -48
- package/dist/cjs/modal-footer.js +0 -22
- package/dist/cjs/modal-header.js +0 -81
- package/dist/cjs/modal-trigger.js +0 -3
- package/dist/cjs/modal.js +0 -3
- package/dist/cjs/popover-content.js +0 -104
- package/dist/cjs/popover-trigger.js +0 -24
- package/dist/cjs/popover.js +0 -3
- package/dist/cjs/scroll-area.js +0 -3
- package/dist/cjs/scroll-bar.js +0 -39
- package/dist/cjs/segmented-control-item.js +0 -41
- package/dist/cjs/segmented-control.js +0 -40
- package/dist/cjs/select-content.js +0 -61
- package/dist/cjs/select-group.js +0 -3
- package/dist/cjs/select-icon.js +0 -25
- package/dist/cjs/select-item.js +0 -44
- package/dist/cjs/select-label.js +0 -32
- package/dist/cjs/select-separator.js +0 -26
- package/dist/cjs/select-trigger.js +0 -40
- package/dist/cjs/select-value.js +0 -31
- package/dist/cjs/select.js +0 -3
- package/dist/cjs/shims.js +0 -1
- package/dist/cjs/slider.js +0 -3
- package/dist/cjs/social-button.js +0 -45
- package/dist/cjs/status-badge.js +0 -49
- package/dist/cjs/switch.js +0 -3
- package/dist/cjs/tab-menu-content.js +0 -32
- package/dist/cjs/tab-menu-item.js +0 -44
- package/dist/cjs/tab-menu-list.js +0 -34
- package/dist/cjs/tab-menu.js +0 -32
- package/dist/cjs/text-input-affix.js +0 -27
- package/dist/cjs/text-input-button.js +0 -31
- package/dist/cjs/text-input.js +0 -119
- package/dist/cjs/textarea.js +0 -56
- package/dist/cjs/tooltip.js +0 -115
- package/dist/cjs/use-color-model.js +0 -6
- package/dist/cjs/use-delegated-props.js +0 -14
- package/dist/cjs/use-user-select.js +0 -39
- package/dist/components/alert/alert.d.ts +0 -30
- package/dist/components/alert/index.d.ts +0 -2
- package/dist/components/badge/badge.d.ts +0 -17
- package/dist/components/badge/index.d.ts +0 -4
- package/dist/components/badge/status-badge.d.ts +0 -13
- package/dist/components/button/button.d.ts +0 -22
- package/dist/components/button/compact-button.d.ts +0 -15
- package/dist/components/button/fancy-button.d.ts +0 -20
- package/dist/components/button/index.d.ts +0 -10
- package/dist/components/button/link-button.d.ts +0 -22
- package/dist/components/button/social-button.d.ts +0 -10
- package/dist/components/checkbox/checkbox.d.ts +0 -11
- package/dist/components/checkbox/index.d.ts +0 -2
- package/dist/components/color-picker/alpha-slider.d.ts +0 -15
- package/dist/components/color-picker/color-area.d.ts +0 -9
- package/dist/components/color-picker/color-picker.d.ts +0 -47
- package/dist/components/color-picker/color-swatch.d.ts +0 -19
- package/dist/components/color-picker/composable/use-color-model.d.ts +0 -7
- package/dist/components/color-picker/composable/use-user-select.d.ts +0 -8
- package/dist/components/color-picker/hue-slider.d.ts +0 -14
- package/dist/components/color-picker/index.d.ts +0 -10
- package/dist/components/combobox/combobox-anchor.d.ts +0 -22
- package/dist/components/combobox/combobox-empty.d.ts +0 -22
- package/dist/components/combobox/combobox-group.d.ts +0 -23
- package/dist/components/combobox/combobox-input.d.ts +0 -17
- package/dist/components/combobox/combobox-item.d.ts +0 -31
- package/dist/components/combobox/combobox-list.d.ts +0 -36
- package/dist/components/combobox/combobox-root.d.ts +0 -29
- package/dist/components/combobox/combobox-separator.d.ts +0 -22
- package/dist/components/combobox/combobox-trigger.d.ts +0 -20
- package/dist/components/combobox/combobox.d.ts +0 -42
- package/dist/components/combobox/index.d.ts +0 -20
- package/dist/components/content-divider/content-divider.d.ts +0 -10
- package/dist/components/content-divider/index.d.ts +0 -2
- package/dist/components/dropdown/context-menu-item.d.ts +0 -39
- package/dist/components/dropdown/dropdown-item.d.ts +0 -30
- package/dist/components/dropdown/dropdown.d.ts +0 -55
- package/dist/components/dropdown/index.d.ts +0 -6
- package/dist/components/dropdown-menu/dropdown-menu-content.d.ts +0 -36
- package/dist/components/dropdown-menu/dropdown-menu-group.d.ts +0 -18
- package/dist/components/dropdown-menu/dropdown-menu-item.d.ts +0 -26
- package/dist/components/dropdown-menu/dropdown-menu-label.d.ts +0 -22
- package/dist/components/dropdown-menu/dropdown-menu-separator.d.ts +0 -7
- package/dist/components/dropdown-menu/dropdown-menu-sub-content.d.ts +0 -38
- package/dist/components/dropdown-menu/dropdown-menu-sub-trigger.d.ts +0 -22
- package/dist/components/dropdown-menu/dropdown-menu-sub.d.ts +0 -22
- package/dist/components/dropdown-menu/dropdown-menu-trigger.d.ts +0 -18
- package/dist/components/dropdown-menu/dropdown-menu.d.ts +0 -18
- package/dist/components/dropdown-menu/index.d.ts +0 -20
- package/dist/components/hint-text/hint-text.d.ts +0 -11
- package/dist/components/hint-text/index.d.ts +0 -2
- package/dist/components/index.d.ts +0 -21
- package/dist/components/label/index.d.ts +0 -2
- package/dist/components/label/label.d.ts +0 -29
- package/dist/components/modal/index.d.ts +0 -14
- package/dist/components/modal/modal-body.d.ts +0 -21
- package/dist/components/modal/modal-close.d.ts +0 -18
- package/dist/components/modal/modal-content.d.ts +0 -37
- package/dist/components/modal/modal-footer.d.ts +0 -21
- package/dist/components/modal/modal-header.d.ts +0 -16
- package/dist/components/modal/modal-trigger.d.ts +0 -18
- package/dist/components/modal/modal.d.ts +0 -22
- package/dist/components/popover/index.d.ts +0 -6
- package/dist/components/popover/popover-content.d.ts +0 -41
- package/dist/components/popover/popover-trigger.d.ts +0 -18
- package/dist/components/popover/popover.d.ts +0 -22
- package/dist/components/scroll-area/index.d.ts +0 -2
- package/dist/components/scroll-area/scroll-area.d.ts +0 -22
- package/dist/components/scroll-area/scroll-bar.d.ts +0 -9
- package/dist/components/segmented-control/index.d.ts +0 -4
- package/dist/components/segmented-control/segmented-control-item.d.ts +0 -22
- package/dist/components/segmented-control/segmented-control.d.ts +0 -26
- package/dist/components/select/index.d.ts +0 -18
- package/dist/components/select/select-content.d.ts +0 -33
- package/dist/components/select/select-group.d.ts +0 -18
- package/dist/components/select/select-icon.d.ts +0 -21
- package/dist/components/select/select-item.d.ts +0 -22
- package/dist/components/select/select-label.d.ts +0 -22
- package/dist/components/select/select-separator.d.ts +0 -7
- package/dist/components/select/select-trigger.d.ts +0 -28
- package/dist/components/select/select-value.d.ts +0 -22
- package/dist/components/select/select.d.ts +0 -28
- package/dist/components/slider/index.d.ts +0 -2
- package/dist/components/slider/slider.d.ts +0 -13
- package/dist/components/switch/index.d.ts +0 -2
- package/dist/components/switch/switch.d.ts +0 -11
- package/dist/components/tab-menu/index.d.ts +0 -8
- package/dist/components/tab-menu/tab-menu-content.d.ts +0 -22
- package/dist/components/tab-menu/tab-menu-item.d.ts +0 -24
- package/dist/components/tab-menu/tab-menu-list.d.ts +0 -22
- package/dist/components/tab-menu/tab-menu.d.ts +0 -23
- package/dist/components/text-input/index.d.ts +0 -6
- package/dist/components/text-input/text-input-affix.d.ts +0 -23
- package/dist/components/text-input/text-input-button.d.ts +0 -23
- package/dist/components/text-input/text-input.d.ts +0 -32
- package/dist/components/textarea/index.d.ts +0 -2
- package/dist/components/textarea/textarea.d.ts +0 -22
- package/dist/components/tooltip/index.d.ts +0 -2
- package/dist/components/tooltip/tooltip.d.ts +0 -29
- package/dist/composables/use-delegated-props.d.ts +0 -2
- package/dist/es/alert.js +0 -112
- package/dist/es/alpha-slider.js +0 -4
- package/dist/es/badge.js +0 -56
- package/dist/es/button.js +0 -40
- package/dist/es/checkbox.js +0 -4
- package/dist/es/chunks/_plugin-vue_export-helper.js +0 -10
- package/dist/es/chunks/alpha-slider.js +0 -128
- package/dist/es/chunks/checkbox.vue_vue_type_style_index_0_lang.js +0 -39
- package/dist/es/chunks/clsx.js +0 -16
- package/dist/es/chunks/combobox-anchor.js +0 -32
- package/dist/es/chunks/content-divider.vue_vue_type_style_index_0_lang.js +0 -53
- package/dist/es/chunks/dropdown-menu-content.vue_vue_type_style_index_0_lang.js +0 -52
- package/dist/es/chunks/dropdown-menu-sub-content.vue_vue_type_style_index_0_lang.js +0 -50
- package/dist/es/chunks/dropdown-menu-sub-trigger.vue_vue_type_style_index_0_lang.js +0 -33
- package/dist/es/chunks/dropdown-menu-sub.js +0 -26
- package/dist/es/chunks/index.js +0 -9058
- package/dist/es/chunks/modal-close.js +0 -23
- package/dist/es/chunks/modal-trigger.js +0 -23
- package/dist/es/chunks/modal.js +0 -27
- package/dist/es/chunks/popover.js +0 -27
- package/dist/es/chunks/scroll-area.js +0 -42
- package/dist/es/chunks/select-group.js +0 -23
- package/dist/es/chunks/select.js +0 -39
- package/dist/es/chunks/slider.vue_vue_type_style_index_0_lang.js +0 -53
- package/dist/es/chunks/switch.vue_vue_type_style_index_0_lang.js +0 -39
- package/dist/es/chunks/use-color-model.js +0 -993
- package/dist/es/color-area.js +0 -176
- package/dist/es/color-picker.js +0 -515
- package/dist/es/color-swatch.js +0 -60
- package/dist/es/color.js +0 -102
- package/dist/es/combobox-anchor.js +0 -4
- package/dist/es/combobox-empty.js +0 -33
- package/dist/es/combobox-group.js +0 -43
- package/dist/es/combobox-input.js +0 -64
- package/dist/es/combobox-item.js +0 -110
- package/dist/es/combobox-list.js +0 -63
- package/dist/es/combobox-root.js +0 -41
- package/dist/es/combobox-separator.js +0 -33
- package/dist/es/combobox-trigger.js +0 -48
- package/dist/es/combobox.js +0 -234
- package/dist/es/command-group.js +0 -42
- package/dist/es/command-input.js +0 -43
- package/dist/es/command-item.js +0 -35
- package/dist/es/command-list.js +0 -53
- package/dist/es/command-root.js +0 -46
- package/dist/es/command-separator.js +0 -33
- package/dist/es/compact-button.js +0 -43
- package/dist/es/content-divider.js +0 -4
- package/dist/es/context-menu-item.js +0 -135
- package/dist/es/crypto.js +0 -8
- package/dist/es/dropdown-item.js +0 -100
- package/dist/es/dropdown-menu-content.js +0 -4
- package/dist/es/dropdown-menu-group.js +0 -25
- package/dist/es/dropdown-menu-item.js +0 -69
- package/dist/es/dropdown-menu-label.js +0 -32
- package/dist/es/dropdown-menu-separator.js +0 -26
- package/dist/es/dropdown-menu-sub-content.js +0 -4
- package/dist/es/dropdown-menu-sub-trigger.js +0 -4
- package/dist/es/dropdown-menu-sub.js +0 -4
- package/dist/es/dropdown-menu-trigger.js +0 -27
- package/dist/es/dropdown-menu.js +0 -33
- package/dist/es/dropdown.js +0 -292
- package/dist/es/fancy-button.js +0 -39
- package/dist/es/hint-text.js +0 -37
- package/dist/es/hue-slider.js +0 -134
- package/dist/es/index.js +0 -217
- package/dist/es/label.js +0 -56
- package/dist/es/link-button.js +0 -45
- package/dist/es/modal-body.js +0 -23
- package/dist/es/modal-close.js +0 -4
- package/dist/es/modal-content.js +0 -49
- package/dist/es/modal-footer.js +0 -23
- package/dist/es/modal-header.js +0 -82
- package/dist/es/modal-trigger.js +0 -4
- package/dist/es/modal.js +0 -4
- package/dist/es/popover-content.js +0 -105
- package/dist/es/popover-trigger.js +0 -25
- package/dist/es/popover.js +0 -4
- package/dist/es/scroll-area.js +0 -4
- package/dist/es/scroll-bar.js +0 -40
- package/dist/es/segmented-control-item.js +0 -42
- package/dist/es/segmented-control.js +0 -41
- package/dist/es/select-content.js +0 -62
- package/dist/es/select-group.js +0 -4
- package/dist/es/select-icon.js +0 -26
- package/dist/es/select-item.js +0 -45
- package/dist/es/select-label.js +0 -33
- package/dist/es/select-separator.js +0 -27
- package/dist/es/select-trigger.js +0 -41
- package/dist/es/select-value.js +0 -32
- package/dist/es/select.js +0 -4
- package/dist/es/shims.js +0 -1
- package/dist/es/slider.js +0 -4
- package/dist/es/social-button.js +0 -46
- package/dist/es/status-badge.js +0 -50
- package/dist/es/switch.js +0 -4
- package/dist/es/tab-menu-content.js +0 -33
- package/dist/es/tab-menu-item.js +0 -45
- package/dist/es/tab-menu-list.js +0 -35
- package/dist/es/tab-menu.js +0 -33
- package/dist/es/text-input-affix.js +0 -28
- package/dist/es/text-input-button.js +0 -32
- package/dist/es/text-input.js +0 -120
- package/dist/es/textarea.js +0 -57
- package/dist/es/tooltip.js +0 -116
- package/dist/es/use-color-model.js +0 -6
- package/dist/es/use-delegated-props.js +0 -14
- package/dist/es/use-user-select.js +0 -39
- package/dist/index.d.ts +0 -5
- package/dist/utils/color.d.ts +0 -26
- package/dist/utils/crypto.d.ts +0 -1
package/dist/es/command-group.js
DELETED
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { defineComponent, computed, openBlock, createBlock, unref, mergeProps, withCtx, createTextVNode, toDisplayString, createCommentVNode, renderSlot } from "vue";
|
|
2
|
-
import { B as qv, Y as Yv } from "./chunks/index.js";
|
|
3
|
-
import { _ as _export_sfc } from "./chunks/_plugin-vue_export-helper.js";
|
|
4
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
5
|
-
__name: "command-group",
|
|
6
|
-
props: {
|
|
7
|
-
asChild: { type: Boolean },
|
|
8
|
-
as: {},
|
|
9
|
-
class: {},
|
|
10
|
-
heading: {}
|
|
11
|
-
},
|
|
12
|
-
setup(__props) {
|
|
13
|
-
const props = __props;
|
|
14
|
-
const delegatedProps = computed(() => {
|
|
15
|
-
const { class: _, ...delegated } = props;
|
|
16
|
-
return delegated;
|
|
17
|
-
});
|
|
18
|
-
return (_ctx, _cache) => {
|
|
19
|
-
return openBlock(), createBlock(unref(qv), mergeProps(delegatedProps.value, {
|
|
20
|
-
class: ["celeste-command-group", props.class]
|
|
21
|
-
}), {
|
|
22
|
-
default: withCtx(() => [
|
|
23
|
-
_ctx.heading ? (openBlock(), createBlock(unref(Yv), {
|
|
24
|
-
key: 0,
|
|
25
|
-
class: "celeste-command-label"
|
|
26
|
-
}, {
|
|
27
|
-
default: withCtx(() => [
|
|
28
|
-
createTextVNode(toDisplayString(_ctx.heading), 1)
|
|
29
|
-
]),
|
|
30
|
-
_: 1
|
|
31
|
-
})) : createCommentVNode("", true),
|
|
32
|
-
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
33
|
-
]),
|
|
34
|
-
_: 3
|
|
35
|
-
}, 16, ["class"]);
|
|
36
|
-
};
|
|
37
|
-
}
|
|
38
|
-
});
|
|
39
|
-
const commandGroup = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-04d6d7e5"]]);
|
|
40
|
-
export {
|
|
41
|
-
commandGroup as default
|
|
42
|
-
};
|
package/dist/es/command-input.js
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { defineComponent, computed, openBlock, createElementBlock, createElementVNode, createVNode, unref, mergeProps } from "vue";
|
|
2
|
-
import { c as clsx } from "./chunks/clsx.js";
|
|
3
|
-
import { A as At, D as Wv } from "./chunks/index.js";
|
|
4
|
-
import { _ as _export_sfc } from "./chunks/_plugin-vue_export-helper.js";
|
|
5
|
-
const _hoisted_1 = {
|
|
6
|
-
class: "celeste-command-input",
|
|
7
|
-
"cmdk-input-wrapper": ""
|
|
8
|
-
};
|
|
9
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
10
|
-
...{
|
|
11
|
-
inheritAttrs: false
|
|
12
|
-
},
|
|
13
|
-
__name: "command-input",
|
|
14
|
-
props: {
|
|
15
|
-
type: {},
|
|
16
|
-
disabled: { type: Boolean },
|
|
17
|
-
autoFocus: { type: Boolean },
|
|
18
|
-
asChild: { type: Boolean },
|
|
19
|
-
as: {},
|
|
20
|
-
class: {}
|
|
21
|
-
},
|
|
22
|
-
setup(__props) {
|
|
23
|
-
const props = __props;
|
|
24
|
-
const delegatedProps = computed(() => {
|
|
25
|
-
const { class: _, ...delegated } = props;
|
|
26
|
-
return delegated;
|
|
27
|
-
});
|
|
28
|
-
const forwardedProps = At(delegatedProps);
|
|
29
|
-
return (_ctx, _cache) => {
|
|
30
|
-
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
31
|
-
_cache[0] || (_cache[0] = createElementVNode("i", { class: "celeste-command-input-icon i-celeste-search-line" }, null, -1)),
|
|
32
|
-
createVNode(unref(Wv), mergeProps({ ...unref(forwardedProps), ..._ctx.$attrs }, {
|
|
33
|
-
"auto-focus": "",
|
|
34
|
-
class: unref(clsx)("celeste-command-input-primitive", props.class)
|
|
35
|
-
}), null, 16, ["class"])
|
|
36
|
-
]);
|
|
37
|
-
};
|
|
38
|
-
}
|
|
39
|
-
});
|
|
40
|
-
const commandInput = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-0407a5d5"]]);
|
|
41
|
-
export {
|
|
42
|
-
commandInput as default
|
|
43
|
-
};
|
package/dist/es/command-item.js
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { defineComponent, computed, openBlock, createBlock, unref, mergeProps, withCtx, renderSlot } from "vue";
|
|
2
|
-
import { x as xe, E as Qv } from "./chunks/index.js";
|
|
3
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
4
|
-
__name: "command-item",
|
|
5
|
-
props: {
|
|
6
|
-
value: {},
|
|
7
|
-
disabled: { type: Boolean },
|
|
8
|
-
asChild: { type: Boolean },
|
|
9
|
-
as: {},
|
|
10
|
-
class: {}
|
|
11
|
-
},
|
|
12
|
-
emits: ["select"],
|
|
13
|
-
setup(__props, { emit: __emit }) {
|
|
14
|
-
const props = __props;
|
|
15
|
-
const emits = __emit;
|
|
16
|
-
const delegatedProps = computed(() => {
|
|
17
|
-
const { class: _, ...delegated } = props;
|
|
18
|
-
return delegated;
|
|
19
|
-
});
|
|
20
|
-
const forwarded = xe(delegatedProps, emits);
|
|
21
|
-
return (_ctx, _cache) => {
|
|
22
|
-
return openBlock(), createBlock(unref(Qv), mergeProps(unref(forwarded), {
|
|
23
|
-
class: ["celeste-command-item", props.class]
|
|
24
|
-
}), {
|
|
25
|
-
default: withCtx(() => [
|
|
26
|
-
renderSlot(_ctx.$slots, "default")
|
|
27
|
-
]),
|
|
28
|
-
_: 3
|
|
29
|
-
}, 16, ["class"]);
|
|
30
|
-
};
|
|
31
|
-
}
|
|
32
|
-
});
|
|
33
|
-
export {
|
|
34
|
-
_sfc_main as default
|
|
35
|
-
};
|
package/dist/es/command-list.js
DELETED
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import { defineComponent, computed, openBlock, createBlock, unref, mergeProps, withCtx, createElementVNode, renderSlot } from "vue";
|
|
2
|
-
import { x as xe, X as Xv } from "./chunks/index.js";
|
|
3
|
-
const _hoisted_1 = { role: "presentation" };
|
|
4
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
5
|
-
__name: "command-list",
|
|
6
|
-
props: {
|
|
7
|
-
forceMount: { type: Boolean },
|
|
8
|
-
position: {},
|
|
9
|
-
bodyLock: { type: Boolean },
|
|
10
|
-
dismissable: { type: Boolean, default: false },
|
|
11
|
-
side: {},
|
|
12
|
-
sideOffset: {},
|
|
13
|
-
align: {},
|
|
14
|
-
alignOffset: {},
|
|
15
|
-
avoidCollisions: { type: Boolean },
|
|
16
|
-
collisionBoundary: {},
|
|
17
|
-
collisionPadding: {},
|
|
18
|
-
arrowPadding: {},
|
|
19
|
-
sticky: {},
|
|
20
|
-
hideWhenDetached: { type: Boolean },
|
|
21
|
-
updatePositionStrategy: {},
|
|
22
|
-
prioritizePosition: { type: Boolean },
|
|
23
|
-
asChild: { type: Boolean },
|
|
24
|
-
as: {},
|
|
25
|
-
disableOutsidePointerEvents: { type: Boolean },
|
|
26
|
-
class: {}
|
|
27
|
-
},
|
|
28
|
-
emits: ["escapeKeyDown", "pointerDownOutside", "focusOutside", "interactOutside"],
|
|
29
|
-
setup(__props, { emit: __emit }) {
|
|
30
|
-
const props = __props;
|
|
31
|
-
const emits = __emit;
|
|
32
|
-
const delegatedProps = computed(() => {
|
|
33
|
-
const { class: _, ...delegated } = props;
|
|
34
|
-
return delegated;
|
|
35
|
-
});
|
|
36
|
-
const forwarded = xe(delegatedProps, emits);
|
|
37
|
-
return (_ctx, _cache) => {
|
|
38
|
-
return openBlock(), createBlock(unref(Xv), mergeProps(unref(forwarded), {
|
|
39
|
-
class: ["celeste-command-list", props.class]
|
|
40
|
-
}), {
|
|
41
|
-
default: withCtx(() => [
|
|
42
|
-
createElementVNode("div", _hoisted_1, [
|
|
43
|
-
renderSlot(_ctx.$slots, "default")
|
|
44
|
-
])
|
|
45
|
-
]),
|
|
46
|
-
_: 3
|
|
47
|
-
}, 16, ["class"]);
|
|
48
|
-
};
|
|
49
|
-
}
|
|
50
|
-
});
|
|
51
|
-
export {
|
|
52
|
-
_sfc_main as default
|
|
53
|
-
};
|
package/dist/es/command-root.js
DELETED
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { defineComponent, computed, openBlock, createBlock, unref, mergeProps, withCtx, renderSlot } from "vue";
|
|
2
|
-
import { x as xe, I as Hv } from "./chunks/index.js";
|
|
3
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
4
|
-
__name: "command-root",
|
|
5
|
-
props: {
|
|
6
|
-
modelValue: { default: "" },
|
|
7
|
-
defaultValue: {},
|
|
8
|
-
open: { type: Boolean, default: true },
|
|
9
|
-
defaultOpen: { type: Boolean },
|
|
10
|
-
searchTerm: {},
|
|
11
|
-
selectedValue: {},
|
|
12
|
-
multiple: { type: Boolean },
|
|
13
|
-
disabled: { type: Boolean },
|
|
14
|
-
name: {},
|
|
15
|
-
dir: {},
|
|
16
|
-
filterFunction: {},
|
|
17
|
-
displayValue: {},
|
|
18
|
-
resetSearchTermOnBlur: { type: Boolean },
|
|
19
|
-
asChild: { type: Boolean },
|
|
20
|
-
as: {},
|
|
21
|
-
class: {}
|
|
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 delegatedProps = computed(() => {
|
|
28
|
-
const { class: _, ...delegated } = props;
|
|
29
|
-
return delegated;
|
|
30
|
-
});
|
|
31
|
-
const forwarded = xe(delegatedProps, emits);
|
|
32
|
-
return (_ctx, _cache) => {
|
|
33
|
-
return openBlock(), createBlock(unref(Hv), mergeProps(unref(forwarded), {
|
|
34
|
-
class: ["celeste-command-root", props.class]
|
|
35
|
-
}), {
|
|
36
|
-
default: withCtx(() => [
|
|
37
|
-
renderSlot(_ctx.$slots, "default")
|
|
38
|
-
]),
|
|
39
|
-
_: 3
|
|
40
|
-
}, 16, ["class"]);
|
|
41
|
-
};
|
|
42
|
-
}
|
|
43
|
-
});
|
|
44
|
-
export {
|
|
45
|
-
_sfc_main as default
|
|
46
|
-
};
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { defineComponent, computed, openBlock, createBlock, unref, mergeProps, withCtx, renderSlot } from "vue";
|
|
2
|
-
import { c as clsx } from "./chunks/clsx.js";
|
|
3
|
-
import { L as tm } from "./chunks/index.js";
|
|
4
|
-
import { _ as _export_sfc } from "./chunks/_plugin-vue_export-helper.js";
|
|
5
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
6
|
-
__name: "command-separator",
|
|
7
|
-
props: {
|
|
8
|
-
asChild: { type: Boolean },
|
|
9
|
-
as: {},
|
|
10
|
-
class: {}
|
|
11
|
-
},
|
|
12
|
-
setup(__props) {
|
|
13
|
-
const props = __props;
|
|
14
|
-
const delegatedProps = computed(() => {
|
|
15
|
-
const { class: _, ...delegated } = props;
|
|
16
|
-
return delegated;
|
|
17
|
-
});
|
|
18
|
-
return (_ctx, _cache) => {
|
|
19
|
-
return openBlock(), createBlock(unref(tm), mergeProps(delegatedProps.value, {
|
|
20
|
-
class: unref(clsx)("celeste-command-separator", props.class)
|
|
21
|
-
}), {
|
|
22
|
-
default: withCtx(() => [
|
|
23
|
-
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
24
|
-
]),
|
|
25
|
-
_: 3
|
|
26
|
-
}, 16, ["class"]);
|
|
27
|
-
};
|
|
28
|
-
}
|
|
29
|
-
});
|
|
30
|
-
const commandSeparator = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-547148a7"]]);
|
|
31
|
-
export {
|
|
32
|
-
commandSeparator as default
|
|
33
|
-
};
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { defineComponent, openBlock, createBlock, unref, normalizeClass, withCtx, createElementVNode } from "vue";
|
|
2
|
-
import { c as clsx } from "./chunks/clsx.js";
|
|
3
|
-
import { f as O } from "./chunks/index.js";
|
|
4
|
-
import { _ as _export_sfc } from "./chunks/_plugin-vue_export-helper.js";
|
|
5
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
6
|
-
__name: "compact-button",
|
|
7
|
-
props: {
|
|
8
|
-
class: {},
|
|
9
|
-
icon: {},
|
|
10
|
-
size: { default: "lg" },
|
|
11
|
-
rounded: { type: Boolean },
|
|
12
|
-
variant: { default: "stroke" },
|
|
13
|
-
asChild: { type: Boolean },
|
|
14
|
-
as: { default: "button" }
|
|
15
|
-
},
|
|
16
|
-
setup(__props) {
|
|
17
|
-
const props = __props;
|
|
18
|
-
return (_ctx, _cache) => {
|
|
19
|
-
return openBlock(), createBlock(unref(O), {
|
|
20
|
-
as: _ctx.as,
|
|
21
|
-
"as-child": _ctx.asChild,
|
|
22
|
-
class: normalizeClass(unref(clsx)(
|
|
23
|
-
"celeste-cbutton",
|
|
24
|
-
`celeste-cbutton-${_ctx.size}`,
|
|
25
|
-
`celeste-cbutton-${_ctx.variant}`,
|
|
26
|
-
_ctx.rounded && `celeste-cbutton-rounded`,
|
|
27
|
-
props.class
|
|
28
|
-
))
|
|
29
|
-
}, {
|
|
30
|
-
default: withCtx(() => [
|
|
31
|
-
createElementVNode("i", {
|
|
32
|
-
class: normalizeClass(_ctx.icon)
|
|
33
|
-
}, null, 2)
|
|
34
|
-
]),
|
|
35
|
-
_: 1
|
|
36
|
-
}, 8, ["as", "as-child", "class"]);
|
|
37
|
-
};
|
|
38
|
-
}
|
|
39
|
-
});
|
|
40
|
-
const CompactButton = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-c062bacd"]]);
|
|
41
|
-
export {
|
|
42
|
-
CompactButton as default
|
|
43
|
-
};
|
|
@@ -1,135 +0,0 @@
|
|
|
1
|
-
import { defineComponent, mergeModels, useModel, computed, openBlock, createElementBlock, normalizeClass, unref, renderSlot, createCommentVNode, createElementVNode, toDisplayString, createBlock, mergeProps, createVNode, withCtx, normalizeProps } from "vue";
|
|
2
|
-
import { c as clsx } from "./chunks/clsx.js";
|
|
3
|
-
import { m as mg, h as hg } from "./chunks/index.js";
|
|
4
|
-
import Badge from "./badge.js";
|
|
5
|
-
import Button from "./button.js";
|
|
6
|
-
import { _ as _export_sfc } from "./chunks/_plugin-vue_export-helper.js";
|
|
7
|
-
const _hoisted_1 = ["aria-disabled"];
|
|
8
|
-
const _hoisted_2 = { class: "celeste-context-menu-item-info" };
|
|
9
|
-
const _hoisted_3 = ["innerHTML"];
|
|
10
|
-
const _hoisted_4 = {
|
|
11
|
-
key: 0,
|
|
12
|
-
class: "celeste-context-menu-item-sublabel"
|
|
13
|
-
};
|
|
14
|
-
const _hoisted_5 = {
|
|
15
|
-
key: 0,
|
|
16
|
-
class: "celeste-context-menu-item-description"
|
|
17
|
-
};
|
|
18
|
-
const _hoisted_6 = {
|
|
19
|
-
key: 2,
|
|
20
|
-
class: "celeste-context-menu-item-shortcut"
|
|
21
|
-
};
|
|
22
|
-
const _hoisted_7 = { class: "celeste-context-menu-item-switch" };
|
|
23
|
-
const _hoisted_8 = { class: "celeste-context-menu-item-button" };
|
|
24
|
-
const _hoisted_9 = {
|
|
25
|
-
key: 3,
|
|
26
|
-
class: "celeste-context-menu-item-suffix"
|
|
27
|
-
};
|
|
28
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
29
|
-
__name: "context-menu-item",
|
|
30
|
-
props: /* @__PURE__ */ mergeModels({
|
|
31
|
-
size: { default: "sm" },
|
|
32
|
-
class: {},
|
|
33
|
-
label: {},
|
|
34
|
-
sublabel: {},
|
|
35
|
-
description: {},
|
|
36
|
-
disabled: { type: Boolean, default: false },
|
|
37
|
-
focused: { type: Boolean, default: false },
|
|
38
|
-
badgeProps: {},
|
|
39
|
-
shortcut: {},
|
|
40
|
-
toggle: { type: Boolean },
|
|
41
|
-
selected: { type: Boolean },
|
|
42
|
-
buttonProps: {},
|
|
43
|
-
rightIcon: {}
|
|
44
|
-
}, {
|
|
45
|
-
"selected": { type: Boolean },
|
|
46
|
-
"selectedModifiers": {}
|
|
47
|
-
}),
|
|
48
|
-
emits: ["update:selected"],
|
|
49
|
-
setup(__props) {
|
|
50
|
-
const props = __props;
|
|
51
|
-
const selectedModel = useModel(__props, "selected");
|
|
52
|
-
const mergedBadgeProps = computed(() => ({
|
|
53
|
-
...props.badgeProps,
|
|
54
|
-
disabled: props.disabled
|
|
55
|
-
}));
|
|
56
|
-
const mergedButtonProps = computed(() => {
|
|
57
|
-
return props.buttonProps ? {
|
|
58
|
-
size: props.size === "sm" ? "xxs" : "xs",
|
|
59
|
-
variant: props.size === "sm" ? "ghost" : "lighter",
|
|
60
|
-
disabled: props.disabled,
|
|
61
|
-
...props.buttonProps
|
|
62
|
-
} : null;
|
|
63
|
-
});
|
|
64
|
-
return (_ctx, _cache) => {
|
|
65
|
-
return openBlock(), createElementBlock("div", {
|
|
66
|
-
tabindex: "0",
|
|
67
|
-
"aria-disabled": _ctx.disabled,
|
|
68
|
-
class: normalizeClass(unref(clsx)(
|
|
69
|
-
"celeste-context-menu-item",
|
|
70
|
-
`celeste-context-menu-item-size-${_ctx.size}`,
|
|
71
|
-
{ "celeste-context-menu-item-disabled": _ctx.disabled },
|
|
72
|
-
{ "celeste-context-menu-item-selected": __props.selected },
|
|
73
|
-
{ "celeste-context-menu-item-focused": _ctx.focused }
|
|
74
|
-
))
|
|
75
|
-
}, [
|
|
76
|
-
_ctx.$slots.prefix ? (openBlock(), createElementBlock("div", {
|
|
77
|
-
key: 0,
|
|
78
|
-
class: normalizeClass(unref(clsx)(
|
|
79
|
-
"celeste-context-menu-item-prefix",
|
|
80
|
-
`celeste-context-menu-item-prefix-${_ctx.size}`
|
|
81
|
-
))
|
|
82
|
-
}, [
|
|
83
|
-
renderSlot(_ctx.$slots, "prefix", {}, void 0, true)
|
|
84
|
-
], 2)) : createCommentVNode("", true),
|
|
85
|
-
createElementVNode("div", _hoisted_2, [
|
|
86
|
-
createElementVNode("div", {
|
|
87
|
-
class: normalizeClass(unref(clsx)(
|
|
88
|
-
"celeste-context-menu-item-header",
|
|
89
|
-
`celeste-context-menu-item-header-${_ctx.size}`
|
|
90
|
-
))
|
|
91
|
-
}, [
|
|
92
|
-
createElementVNode("span", {
|
|
93
|
-
class: "celeste-context-menu-item-label",
|
|
94
|
-
innerHTML: _ctx.label
|
|
95
|
-
}, null, 8, _hoisted_3),
|
|
96
|
-
_ctx.sublabel ? (openBlock(), createElementBlock("span", _hoisted_4, toDisplayString(_ctx.sublabel), 1)) : createCommentVNode("", true)
|
|
97
|
-
], 2),
|
|
98
|
-
props.description && props.size === "lg" ? (openBlock(), createElementBlock("p", _hoisted_5, toDisplayString(_ctx.description), 1)) : createCommentVNode("", true)
|
|
99
|
-
]),
|
|
100
|
-
mergedBadgeProps.value ? (openBlock(), createBlock(Badge, mergeProps({ key: 1 }, mergedBadgeProps.value, { class: "celeste-context-menu-item-badge" }), null, 16)) : createCommentVNode("", true),
|
|
101
|
-
_ctx.shortcut ? (openBlock(), createElementBlock("span", _hoisted_6, toDisplayString(_ctx.shortcut), 1)) : createCommentVNode("", true),
|
|
102
|
-
createElementVNode("span", _hoisted_7, [
|
|
103
|
-
createVNode(unref(mg), {
|
|
104
|
-
checked: selectedModel.value,
|
|
105
|
-
"onUpdate:checked": _cache[0] || (_cache[0] = ($event) => selectedModel.value = $event),
|
|
106
|
-
disabled: _ctx.disabled,
|
|
107
|
-
class: "celeste-switch-root"
|
|
108
|
-
}, {
|
|
109
|
-
default: withCtx(() => [
|
|
110
|
-
createVNode(unref(hg), { class: "celeste-switch-thumb" })
|
|
111
|
-
]),
|
|
112
|
-
_: 1
|
|
113
|
-
}, 8, ["checked", "disabled"])
|
|
114
|
-
]),
|
|
115
|
-
createElementVNode("span", _hoisted_8, [
|
|
116
|
-
mergedButtonProps.value ? (openBlock(), createBlock(Button, normalizeProps(mergeProps({ key: 0 }, mergedButtonProps.value)), {
|
|
117
|
-
default: withCtx(() => [
|
|
118
|
-
renderSlot(_ctx.$slots, "button-label", {}, void 0, true)
|
|
119
|
-
]),
|
|
120
|
-
_: 3
|
|
121
|
-
}, 16)) : createCommentVNode("", true)
|
|
122
|
-
]),
|
|
123
|
-
_ctx.rightIcon ? (openBlock(), createElementBlock("span", _hoisted_9, [
|
|
124
|
-
createElementVNode("i", {
|
|
125
|
-
class: normalizeClass(_ctx.rightIcon)
|
|
126
|
-
}, null, 2)
|
|
127
|
-
])) : createCommentVNode("", true)
|
|
128
|
-
], 10, _hoisted_1);
|
|
129
|
-
};
|
|
130
|
-
}
|
|
131
|
-
});
|
|
132
|
-
const contextMenuItem = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-3d94f388"]]);
|
|
133
|
-
export {
|
|
134
|
-
contextMenuItem as default
|
|
135
|
-
};
|
package/dist/es/crypto.js
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
function uid(prefix = "", random = false) {
|
|
2
|
-
const sec = Date.now() * 1e3 + Math.random() * 1e3;
|
|
3
|
-
const id = sec.toString(16).replace(/\./g, "").padEnd(14, "0");
|
|
4
|
-
return `${prefix}${id}${random ? `.${Math.trunc(Math.random() * 1e8)}` : ""}`;
|
|
5
|
-
}
|
|
6
|
-
export {
|
|
7
|
-
uid
|
|
8
|
-
};
|
package/dist/es/dropdown-item.js
DELETED
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
import { defineComponent, openBlock, createElementBlock, normalizeClass, unref, withKeys, createBlock, createCommentVNode, renderSlot, createElementVNode, toDisplayString } from "vue";
|
|
2
|
-
import { c as clsx } from "./chunks/clsx.js";
|
|
3
|
-
import { _ as _sfc_main$1 } from "./chunks/checkbox.vue_vue_type_style_index_0_lang.js";
|
|
4
|
-
import { _ as _export_sfc } from "./chunks/_plugin-vue_export-helper.js";
|
|
5
|
-
const _hoisted_1 = ["aria-disabled"];
|
|
6
|
-
const _hoisted_2 = { class: "celeste-dropdown-item-info" };
|
|
7
|
-
const _hoisted_3 = ["innerHTML"];
|
|
8
|
-
const _hoisted_4 = {
|
|
9
|
-
key: 0,
|
|
10
|
-
class: "celeste-dropdown-item-sublabel"
|
|
11
|
-
};
|
|
12
|
-
const _hoisted_5 = {
|
|
13
|
-
key: 0,
|
|
14
|
-
class: "celeste-dropdown-item-description"
|
|
15
|
-
};
|
|
16
|
-
const _hoisted_6 = {
|
|
17
|
-
key: 2,
|
|
18
|
-
class: "celeste-dropdown-item-suffix"
|
|
19
|
-
};
|
|
20
|
-
const _hoisted_7 = {
|
|
21
|
-
key: 3,
|
|
22
|
-
class: "i-celeste-check-fill"
|
|
23
|
-
};
|
|
24
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
25
|
-
__name: "dropdown-item",
|
|
26
|
-
props: {
|
|
27
|
-
class: {},
|
|
28
|
-
label: {},
|
|
29
|
-
size: { default: "sm" },
|
|
30
|
-
checkbox: { type: Boolean },
|
|
31
|
-
sublabel: {},
|
|
32
|
-
description: {},
|
|
33
|
-
selected: { type: [Boolean, String], default: false },
|
|
34
|
-
disabled: { type: Boolean, default: false },
|
|
35
|
-
focused: { type: Boolean, default: false }
|
|
36
|
-
},
|
|
37
|
-
emits: ["update:selected"],
|
|
38
|
-
setup(__props, { emit: __emit }) {
|
|
39
|
-
const props = __props;
|
|
40
|
-
const emit = __emit;
|
|
41
|
-
function toggleSelection() {
|
|
42
|
-
if (!props.disabled && props.checkbox) {
|
|
43
|
-
emit("update:selected", !props.selected);
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
return (_ctx, _cache) => {
|
|
47
|
-
return openBlock(), createElementBlock("div", {
|
|
48
|
-
tabindex: "0",
|
|
49
|
-
"aria-disabled": _ctx.disabled,
|
|
50
|
-
class: normalizeClass(unref(clsx)(
|
|
51
|
-
"celeste-dropdown-item",
|
|
52
|
-
{ "celeste-dropdown-item-disabled": _ctx.disabled },
|
|
53
|
-
{ "celeste-dropdown-item-selected": _ctx.selected },
|
|
54
|
-
{ "celeste-dropdown-item-focused": _ctx.focused }
|
|
55
|
-
)),
|
|
56
|
-
onKeydown: withKeys(toggleSelection, ["enter"]),
|
|
57
|
-
onClick: toggleSelection
|
|
58
|
-
}, [
|
|
59
|
-
_ctx.checkbox && _ctx.size === "sm" ? (openBlock(), createBlock(_sfc_main$1, {
|
|
60
|
-
key: 0,
|
|
61
|
-
checked: _ctx.selected,
|
|
62
|
-
disabled: _ctx.disabled,
|
|
63
|
-
"onUpdate:checked": _cache[0] || (_cache[0] = (value) => _ctx.$emit("update:selected", value))
|
|
64
|
-
}, null, 8, ["checked", "disabled"])) : createCommentVNode("", true),
|
|
65
|
-
_ctx.$slots.prefix ? (openBlock(), createElementBlock("div", {
|
|
66
|
-
key: 1,
|
|
67
|
-
class: normalizeClass(unref(clsx)(
|
|
68
|
-
"celeste-dropdown-item-prefix",
|
|
69
|
-
`celeste-dropdown-item-prefix-${_ctx.size}`
|
|
70
|
-
))
|
|
71
|
-
}, [
|
|
72
|
-
renderSlot(_ctx.$slots, "prefix", {}, void 0, true)
|
|
73
|
-
], 2)) : createCommentVNode("", true),
|
|
74
|
-
createElementVNode("div", _hoisted_2, [
|
|
75
|
-
createElementVNode("div", {
|
|
76
|
-
class: normalizeClass(unref(clsx)(
|
|
77
|
-
"celeste-dropdown-item-header",
|
|
78
|
-
`celeste-dropdown-item-header-${_ctx.size}`
|
|
79
|
-
))
|
|
80
|
-
}, [
|
|
81
|
-
createElementVNode("span", {
|
|
82
|
-
class: "celeste-dropdown-item-label",
|
|
83
|
-
innerHTML: _ctx.label
|
|
84
|
-
}, null, 8, _hoisted_3),
|
|
85
|
-
_ctx.sublabel ? (openBlock(), createElementBlock("span", _hoisted_4, toDisplayString(_ctx.sublabel), 1)) : createCommentVNode("", true)
|
|
86
|
-
], 2),
|
|
87
|
-
props.description && props.size === "lg" ? (openBlock(), createElementBlock("p", _hoisted_5, toDisplayString(_ctx.description), 1)) : createCommentVNode("", true)
|
|
88
|
-
]),
|
|
89
|
-
_ctx.$slots.suffix ? (openBlock(), createElementBlock("div", _hoisted_6, [
|
|
90
|
-
renderSlot(_ctx.$slots, "suffix", {}, void 0, true)
|
|
91
|
-
])) : createCommentVNode("", true),
|
|
92
|
-
_ctx.selected ? (openBlock(), createElementBlock("i", _hoisted_7)) : createCommentVNode("", true)
|
|
93
|
-
], 42, _hoisted_1);
|
|
94
|
-
};
|
|
95
|
-
}
|
|
96
|
-
});
|
|
97
|
-
const DropdownItem = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-a0a634ce"]]);
|
|
98
|
-
export {
|
|
99
|
-
DropdownItem as default
|
|
100
|
-
};
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { defineComponent, openBlock, createBlock, unref, mergeProps, withCtx, renderSlot } from "vue";
|
|
2
|
-
import { P as fh } from "./chunks/index.js";
|
|
3
|
-
import { _ as _export_sfc } from "./chunks/_plugin-vue_export-helper.js";
|
|
4
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
5
|
-
__name: "dropdown-menu-group",
|
|
6
|
-
props: {
|
|
7
|
-
asChild: { type: Boolean },
|
|
8
|
-
as: {}
|
|
9
|
-
},
|
|
10
|
-
setup(__props) {
|
|
11
|
-
const props = __props;
|
|
12
|
-
return (_ctx, _cache) => {
|
|
13
|
-
return openBlock(), createBlock(unref(fh), mergeProps({ class: "celeste-dropdown-menu-group" }, props), {
|
|
14
|
-
default: withCtx(() => [
|
|
15
|
-
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
16
|
-
]),
|
|
17
|
-
_: 3
|
|
18
|
-
}, 16);
|
|
19
|
-
};
|
|
20
|
-
}
|
|
21
|
-
});
|
|
22
|
-
const dropdownMenuGroup = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-87c13894"]]);
|
|
23
|
-
export {
|
|
24
|
-
dropdownMenuGroup as default
|
|
25
|
-
};
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
import { defineComponent, openBlock, createBlock, unref, mergeProps, withCtx, createElementVNode, renderSlot, toDisplayString, createElementBlock, createCommentVNode } from "vue";
|
|
2
|
-
import { useDelegatedProps } from "./use-delegated-props.js";
|
|
3
|
-
import { c as clsx } from "./chunks/clsx.js";
|
|
4
|
-
import { A as At, R as ch } from "./chunks/index.js";
|
|
5
|
-
import { _ as _export_sfc } from "./chunks/_plugin-vue_export-helper.js";
|
|
6
|
-
const _hoisted_1 = { class: "celeste-dropdown-menu-item-prefix" };
|
|
7
|
-
const _hoisted_2 = { class: "celeste-dropdown-menu-item-body" };
|
|
8
|
-
const _hoisted_3 = { class: "celeste-dropdown-menu-item-text" };
|
|
9
|
-
const _hoisted_4 = ["title"];
|
|
10
|
-
const _hoisted_5 = ["title"];
|
|
11
|
-
const _hoisted_6 = {
|
|
12
|
-
key: 0,
|
|
13
|
-
class: "celeste-dropdown-menu-item-description"
|
|
14
|
-
};
|
|
15
|
-
const _hoisted_7 = { class: "celeste-dropdown-menu-item-suffix" };
|
|
16
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
17
|
-
__name: "dropdown-menu-item",
|
|
18
|
-
props: {
|
|
19
|
-
disabled: { type: Boolean },
|
|
20
|
-
textValue: {},
|
|
21
|
-
asChild: { type: Boolean },
|
|
22
|
-
as: {},
|
|
23
|
-
class: {},
|
|
24
|
-
label: {},
|
|
25
|
-
sublabel: {},
|
|
26
|
-
description: {}
|
|
27
|
-
},
|
|
28
|
-
setup(__props) {
|
|
29
|
-
const props = __props;
|
|
30
|
-
const delegatedProps = useDelegatedProps(props, "class");
|
|
31
|
-
const forwardedProps = At(delegatedProps);
|
|
32
|
-
return (_ctx, _cache) => {
|
|
33
|
-
return openBlock(), createBlock(unref(ch), mergeProps(unref(forwardedProps), {
|
|
34
|
-
class: unref(clsx)(
|
|
35
|
-
"celeste-dropdown-menu-item",
|
|
36
|
-
props.class
|
|
37
|
-
)
|
|
38
|
-
}), {
|
|
39
|
-
default: withCtx(() => [
|
|
40
|
-
createElementVNode("div", _hoisted_1, [
|
|
41
|
-
renderSlot(_ctx.$slots, "prefix", {}, void 0, true)
|
|
42
|
-
]),
|
|
43
|
-
createElementVNode("div", _hoisted_2, [
|
|
44
|
-
createElementVNode("div", _hoisted_3, [
|
|
45
|
-
createElementVNode("span", {
|
|
46
|
-
class: "celeste-dropdown-menu-item-label",
|
|
47
|
-
title: _ctx.label
|
|
48
|
-
}, toDisplayString(_ctx.label), 9, _hoisted_4),
|
|
49
|
-
_ctx.sublabel ? (openBlock(), createElementBlock("span", {
|
|
50
|
-
key: 0,
|
|
51
|
-
title: _ctx.sublabel,
|
|
52
|
-
class: "celeste-dropdown-menu-item-sublabel"
|
|
53
|
-
}, toDisplayString(_ctx.sublabel), 9, _hoisted_5)) : createCommentVNode("", true)
|
|
54
|
-
]),
|
|
55
|
-
_ctx.description ? (openBlock(), createElementBlock("div", _hoisted_6, toDisplayString(_ctx.description), 1)) : createCommentVNode("", true)
|
|
56
|
-
]),
|
|
57
|
-
createElementVNode("div", _hoisted_7, [
|
|
58
|
-
renderSlot(_ctx.$slots, "suffix", {}, void 0, true)
|
|
59
|
-
])
|
|
60
|
-
]),
|
|
61
|
-
_: 3
|
|
62
|
-
}, 16, ["class"]);
|
|
63
|
-
};
|
|
64
|
-
}
|
|
65
|
-
});
|
|
66
|
-
const dropdownMenuItem = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-f6a0291c"]]);
|
|
67
|
-
export {
|
|
68
|
-
dropdownMenuItem as default
|
|
69
|
-
};
|