@youcan/celeste 0.6.71 → 0.6.72
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 +4 -3
- 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/dist/cjs/fancy-button.js
CHANGED
|
@@ -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: "fancy-button",
|
|
9
9
|
props: {
|
|
10
10
|
class: {},
|
|
@@ -16,18 +16,18 @@ const _sfc_main = /* @__PURE__ */ No.defineComponent({
|
|
|
16
16
|
setup(__props) {
|
|
17
17
|
const props = __props;
|
|
18
18
|
return (_ctx, _cache) => {
|
|
19
|
-
return
|
|
19
|
+
return Mo.openBlock(), Mo.createBlock(Mo.unref(index.O), {
|
|
20
20
|
as: _ctx.as,
|
|
21
21
|
"as-child": _ctx.asChild,
|
|
22
|
-
class:
|
|
22
|
+
class: Mo.normalizeClass(Mo.unref(clsx.clsx)(
|
|
23
23
|
"celeste-fbutton",
|
|
24
24
|
`celeste-fbutton-${_ctx.intent}`,
|
|
25
25
|
`celeste-fbutton-${_ctx.size}`,
|
|
26
26
|
props.class
|
|
27
27
|
))
|
|
28
28
|
}, {
|
|
29
|
-
default:
|
|
30
|
-
|
|
29
|
+
default: Mo.withCtx(() => [
|
|
30
|
+
Mo.renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
31
31
|
]),
|
|
32
32
|
_: 3
|
|
33
33
|
}, 8, ["as", "as-child", "class"]);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const
|
|
2
|
+
const Mo = require("vue");
|
|
3
3
|
const button = require("./button.js");
|
|
4
4
|
const index = require("./chunks/index3.js");
|
|
5
5
|
const clsx = require("./chunks/clsx.js");
|
|
@@ -12,9 +12,9 @@ const _hoisted_3 = {
|
|
|
12
12
|
class: "celeste-file-upload-area-description"
|
|
13
13
|
};
|
|
14
14
|
const _hoisted_4 = ["multiple", "accept"];
|
|
15
|
-
const _sfc_main = /* @__PURE__ */
|
|
15
|
+
const _sfc_main = /* @__PURE__ */ Mo.defineComponent({
|
|
16
16
|
__name: "file-upload-area",
|
|
17
|
-
props: /* @__PURE__ */
|
|
17
|
+
props: /* @__PURE__ */ Mo.mergeModels({
|
|
18
18
|
label: { default: "Choose a file or drag & drop it here." },
|
|
19
19
|
description: { default: "JPEG, PNG, PDF, and MP4 formats, up to 50 MB." },
|
|
20
20
|
labelOnDrop: { default: "Drop file to upload" },
|
|
@@ -30,14 +30,14 @@ const _sfc_main = /* @__PURE__ */ No.defineComponent({
|
|
|
30
30
|
"modelValue": { default: [] },
|
|
31
31
|
"modelModifiers": {}
|
|
32
32
|
}),
|
|
33
|
-
emits: /* @__PURE__ */
|
|
33
|
+
emits: /* @__PURE__ */ Mo.mergeModels(["error"], ["update:modelValue"]),
|
|
34
34
|
setup(__props, { emit: __emit }) {
|
|
35
35
|
const props = __props;
|
|
36
36
|
const emit = __emit;
|
|
37
|
-
const files =
|
|
38
|
-
const dropZoneRef =
|
|
37
|
+
const files = Mo.useModel(__props, "modelValue");
|
|
38
|
+
const dropZoneRef = Mo.useTemplateRef("dropZoneRef");
|
|
39
39
|
const { isOverDropZone } = index.useDropZone(dropZoneRef, { onDrop });
|
|
40
|
-
const uploadComponent =
|
|
40
|
+
const uploadComponent = Mo.computed(() => {
|
|
41
41
|
return props.onTriggerClick ? "div" : "label";
|
|
42
42
|
});
|
|
43
43
|
function handleUpload(e) {
|
|
@@ -99,25 +99,25 @@ const _sfc_main = /* @__PURE__ */ No.defineComponent({
|
|
|
99
99
|
}
|
|
100
100
|
}
|
|
101
101
|
return (_ctx, _cache) => {
|
|
102
|
-
return
|
|
102
|
+
return Mo.openBlock(), Mo.createBlock(Mo.resolveDynamicComponent(uploadComponent.value), {
|
|
103
103
|
ref_key: "dropZoneRef",
|
|
104
104
|
ref: dropZoneRef,
|
|
105
|
-
class:
|
|
105
|
+
class: Mo.normalizeClass(Mo.unref(clsx.clsx)(
|
|
106
106
|
"celeste-file-upload-area",
|
|
107
107
|
props.class
|
|
108
108
|
)),
|
|
109
|
-
"data-over-drop-zone":
|
|
109
|
+
"data-over-drop-zone": Mo.unref(isOverDropZone),
|
|
110
110
|
onClick: handleTriggerClick
|
|
111
111
|
}, {
|
|
112
|
-
default:
|
|
113
|
-
|
|
114
|
-
class:
|
|
112
|
+
default: Mo.withCtx(() => [
|
|
113
|
+
Mo.createElementVNode("i", {
|
|
114
|
+
class: Mo.normalizeClass(_ctx.icon)
|
|
115
115
|
}, null, 2),
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
!
|
|
116
|
+
Mo.createElementVNode("div", _hoisted_1, [
|
|
117
|
+
Mo.createElementVNode("span", _hoisted_2, Mo.toDisplayString(Mo.unref(isOverDropZone) ? _ctx.labelOnDrop : _ctx.label), 1),
|
|
118
|
+
!Mo.unref(isOverDropZone) ? (Mo.openBlock(), Mo.createElementBlock("span", _hoisted_3, Mo.toDisplayString(_ctx.description), 1)) : Mo.createCommentVNode("", true)
|
|
119
119
|
]),
|
|
120
|
-
!
|
|
120
|
+
!Mo.unref(isOverDropZone) ? (Mo.openBlock(), Mo.createBlock(button, {
|
|
121
121
|
key: 0,
|
|
122
122
|
"as-child": "",
|
|
123
123
|
intent: "neutral",
|
|
@@ -125,17 +125,17 @@ const _sfc_main = /* @__PURE__ */ No.defineComponent({
|
|
|
125
125
|
size: "xs",
|
|
126
126
|
class: "celeste-file-upload-area-trigger"
|
|
127
127
|
}, {
|
|
128
|
-
default:
|
|
129
|
-
|
|
128
|
+
default: Mo.withCtx(() => [
|
|
129
|
+
Mo.createElementVNode("span", null, Mo.toDisplayString(_ctx.triggerLabel), 1)
|
|
130
130
|
]),
|
|
131
131
|
_: 1
|
|
132
|
-
})) :
|
|
133
|
-
!_ctx.onTriggerClick ? (
|
|
132
|
+
})) : Mo.createCommentVNode("", true),
|
|
133
|
+
!_ctx.onTriggerClick ? (Mo.openBlock(), Mo.createElementBlock("input", Mo.mergeProps({ key: 1 }, _ctx.$attrs, {
|
|
134
134
|
type: "file",
|
|
135
135
|
multiple: _ctx.multiple,
|
|
136
136
|
accept: _ctx.accept,
|
|
137
137
|
onChange: handleUpload
|
|
138
|
-
}), null, 16, _hoisted_4)) :
|
|
138
|
+
}), null, 16, _hoisted_4)) : Mo.createCommentVNode("", true)
|
|
139
139
|
]),
|
|
140
140
|
_: 1
|
|
141
141
|
}, 8, ["class", "data-over-drop-zone"]);
|
package/dist/cjs/hint-text.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const
|
|
2
|
+
const Mo = require("vue");
|
|
3
3
|
const clsx = require("./chunks/clsx.js");
|
|
4
4
|
;/* empty css */
|
|
5
5
|
const _pluginVue_exportHelper = require("./chunks/_plugin-vue_export-helper.js");
|
|
6
6
|
const _hoisted_1 = ["role"];
|
|
7
7
|
const _hoisted_2 = { key: 1 };
|
|
8
|
-
const _sfc_main = /* @__PURE__ */
|
|
8
|
+
const _sfc_main = /* @__PURE__ */ Mo.defineComponent({
|
|
9
9
|
__name: "hint-text",
|
|
10
10
|
props: {
|
|
11
11
|
text: {},
|
|
@@ -16,19 +16,19 @@ const _sfc_main = /* @__PURE__ */ No.defineComponent({
|
|
|
16
16
|
setup(__props) {
|
|
17
17
|
const props = __props;
|
|
18
18
|
return (_ctx, _cache) => {
|
|
19
|
-
return
|
|
19
|
+
return Mo.openBlock(), Mo.createElementBlock("div", {
|
|
20
20
|
role: props.state === "error" ? "alert" : "note",
|
|
21
|
-
class:
|
|
21
|
+
class: Mo.normalizeClass(Mo.unref(clsx.clsx)(
|
|
22
22
|
"celeste-hint-text",
|
|
23
23
|
`celeste-hint-text-${_ctx.state}`,
|
|
24
24
|
props.class
|
|
25
25
|
))
|
|
26
26
|
}, [
|
|
27
|
-
_ctx.icon ? (
|
|
27
|
+
_ctx.icon ? (Mo.openBlock(), Mo.createElementBlock("i", {
|
|
28
28
|
key: 0,
|
|
29
|
-
class:
|
|
30
|
-
}, null, 2)) :
|
|
31
|
-
_ctx.text ? (
|
|
29
|
+
class: Mo.normalizeClass(_ctx.icon)
|
|
30
|
+
}, null, 2)) : Mo.createCommentVNode("", true),
|
|
31
|
+
_ctx.text ? (Mo.openBlock(), Mo.createElementBlock("p", _hoisted_2, Mo.toDisplayString(_ctx.text), 1)) : Mo.createCommentVNode("", true)
|
|
32
32
|
], 10, _hoisted_1);
|
|
33
33
|
};
|
|
34
34
|
}
|
package/dist/cjs/hue-slider.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const
|
|
2
|
+
const Mo = require("vue");
|
|
3
3
|
const color = require("./color.js");
|
|
4
4
|
const useUserSelect = require("./use-user-select.js");
|
|
5
5
|
;/* empty css */
|
|
6
6
|
const _pluginVue_exportHelper = require("./chunks/_plugin-vue_export-helper.js");
|
|
7
7
|
const _hoisted_1 = { class: "celeste-color-slider" };
|
|
8
8
|
const _hoisted_2 = ["aria-valuenow"];
|
|
9
|
-
const _sfc_main = /* @__PURE__ */
|
|
9
|
+
const _sfc_main = /* @__PURE__ */ Mo.defineComponent({
|
|
10
10
|
__name: "hue-slider",
|
|
11
11
|
props: {
|
|
12
12
|
"modelValue": {
|
|
@@ -16,24 +16,24 @@ const _sfc_main = /* @__PURE__ */ No.defineComponent({
|
|
|
16
16
|
},
|
|
17
17
|
emits: ["update:modelValue"],
|
|
18
18
|
setup(__props) {
|
|
19
|
-
const hue =
|
|
20
|
-
const pullDirection =
|
|
21
|
-
const containerRef =
|
|
19
|
+
const hue = Mo.useModel(__props, "modelValue");
|
|
20
|
+
const pullDirection = Mo.ref();
|
|
21
|
+
const containerRef = Mo.useTemplateRef("slider-track");
|
|
22
22
|
const { preventPageUserSelect, allowPageUserSelect } = useUserSelect.useUserPageSelection();
|
|
23
|
-
|
|
23
|
+
Mo.watch(hue, (newHue, oldHue) => {
|
|
24
24
|
if (newHue !== 0 && newHue - oldHue > 0)
|
|
25
25
|
pullDirection.value = "right";
|
|
26
26
|
if (newHue !== 0 && newHue - oldHue < 0)
|
|
27
27
|
pullDirection.value = "left";
|
|
28
28
|
});
|
|
29
|
-
const pointerLeft =
|
|
29
|
+
const pointerLeft = Mo.computed(
|
|
30
30
|
() => {
|
|
31
31
|
if (hue.value === 0 && pullDirection.value === "right")
|
|
32
32
|
return "100%";
|
|
33
33
|
return `${hue.value * 100 / 360}%`;
|
|
34
34
|
}
|
|
35
35
|
);
|
|
36
|
-
const trackThumbBg =
|
|
36
|
+
const trackThumbBg = Mo.computed(() => {
|
|
37
37
|
return `hsl(${hue.value}, 100%, 50%)`;
|
|
38
38
|
});
|
|
39
39
|
function handleChange(e, skip) {
|
|
@@ -101,12 +101,12 @@ const _sfc_main = /* @__PURE__ */ No.defineComponent({
|
|
|
101
101
|
emitChange(newValue);
|
|
102
102
|
}
|
|
103
103
|
}
|
|
104
|
-
|
|
104
|
+
Mo.onUnmounted(() => {
|
|
105
105
|
unbindEventListeners();
|
|
106
106
|
});
|
|
107
107
|
return (_ctx, _cache) => {
|
|
108
|
-
return
|
|
109
|
-
|
|
108
|
+
return Mo.openBlock(), Mo.createElementBlock("div", _hoisted_1, [
|
|
109
|
+
Mo.createElementVNode("div", {
|
|
110
110
|
ref: "slider-track",
|
|
111
111
|
class: "slider-track",
|
|
112
112
|
role: "slider",
|
|
@@ -120,9 +120,9 @@ const _sfc_main = /* @__PURE__ */ No.defineComponent({
|
|
|
120
120
|
onTouchstartPassive: handleChange,
|
|
121
121
|
onKeydown: handleKeyDown
|
|
122
122
|
}, [
|
|
123
|
-
|
|
123
|
+
Mo.createElementVNode("div", {
|
|
124
124
|
class: "celeste-color-thumb",
|
|
125
|
-
style:
|
|
125
|
+
style: Mo.normalizeStyle({ left: pointerLeft.value, background: trackThumbBg.value }),
|
|
126
126
|
role: "presentation"
|
|
127
127
|
}, null, 4)
|
|
128
128
|
], 40, _hoisted_2)
|
|
@@ -130,5 +130,5 @@ const _sfc_main = /* @__PURE__ */ No.defineComponent({
|
|
|
130
130
|
};
|
|
131
131
|
}
|
|
132
132
|
});
|
|
133
|
-
const
|
|
134
|
-
module.exports =
|
|
133
|
+
const HueSlider = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main, [["__scopeId", "data-v-cb479a28"]]);
|
|
134
|
+
module.exports = HueSlider;
|
package/dist/cjs/index.js
CHANGED
|
@@ -155,7 +155,7 @@ const useDelegatedProps = require("./use-delegated-props.js");
|
|
|
155
155
|
const useSidebar = require("./use-sidebar.js");
|
|
156
156
|
const color = require("./color.js");
|
|
157
157
|
const crypto = require("./crypto.js");
|
|
158
|
-
const
|
|
158
|
+
const Mo = require("vue");
|
|
159
159
|
const components = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
160
160
|
__proto__: null,
|
|
161
161
|
Alert: alert,
|
|
@@ -300,7 +300,7 @@ function createToast(title, data) {
|
|
|
300
300
|
const dismissToast = () => {
|
|
301
301
|
sonner_vue_vue_type_script_setup_true_lang.toast.dismiss(toastId);
|
|
302
302
|
};
|
|
303
|
-
toastId = sonner_vue_vue_type_script_setup_true_lang.toast.custom(
|
|
303
|
+
toastId = sonner_vue_vue_type_script_setup_true_lang.toast.custom(Mo.markRaw(sonnerAlert), {
|
|
304
304
|
...externalToastProps,
|
|
305
305
|
componentProps: {
|
|
306
306
|
title,
|
package/dist/cjs/label.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const
|
|
2
|
+
const Mo = require("vue");
|
|
3
3
|
const tooltip_vue_vue_type_script_setup_true_lang = require("./chunks/tooltip.js");
|
|
4
4
|
const useDelegatedProps = require("./use-delegated-props.js");
|
|
5
5
|
const clsx = require("./chunks/clsx.js");
|
|
@@ -10,7 +10,7 @@ const _hoisted_1 = {
|
|
|
10
10
|
key: 0,
|
|
11
11
|
class: "celeste-sublabel"
|
|
12
12
|
};
|
|
13
|
-
const _sfc_main = /* @__PURE__ */
|
|
13
|
+
const _sfc_main = /* @__PURE__ */ Mo.defineComponent({
|
|
14
14
|
__name: "label",
|
|
15
15
|
props: {
|
|
16
16
|
for: {},
|
|
@@ -26,26 +26,26 @@ const _sfc_main = /* @__PURE__ */ No.defineComponent({
|
|
|
26
26
|
const props = __props;
|
|
27
27
|
const delegatedProps = useDelegatedProps.useDelegatedProps(props, "class");
|
|
28
28
|
return (_ctx, _cache) => {
|
|
29
|
-
return
|
|
29
|
+
return Mo.openBlock(), Mo.createBlock(Mo.unref(index.Oh), Mo.mergeProps(Mo.unref(delegatedProps), {
|
|
30
30
|
"aria-required": _ctx.required,
|
|
31
31
|
"aria-disabled": _ctx.disabled,
|
|
32
|
-
class:
|
|
32
|
+
class: Mo.unref(clsx.clsx)("celeste-label", props.class)
|
|
33
33
|
}), {
|
|
34
|
-
default:
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
_ctx.sublabel ? (
|
|
38
|
-
_ctx.information ? (
|
|
34
|
+
default: Mo.withCtx(() => [
|
|
35
|
+
Mo.renderSlot(_ctx.$slots, "default", {}, void 0, true),
|
|
36
|
+
Mo.renderSlot(_ctx.$slots, "button", { class: "celeste-label-button" }, void 0, true),
|
|
37
|
+
_ctx.sublabel ? (Mo.openBlock(), Mo.createElementBlock("span", _hoisted_1, Mo.toDisplayString(_ctx.sublabel), 1)) : Mo.createCommentVNode("", true),
|
|
38
|
+
_ctx.information ? (Mo.openBlock(), Mo.createBlock(tooltip_vue_vue_type_script_setup_true_lang._sfc_main, {
|
|
39
39
|
key: 1,
|
|
40
40
|
title: _ctx.information
|
|
41
41
|
}, {
|
|
42
|
-
default:
|
|
43
|
-
|
|
44
|
-
|
|
42
|
+
default: Mo.withCtx(() => _cache[0] || (_cache[0] = [
|
|
43
|
+
Mo.createElementVNode("button", { class: "celeste-label-info" }, [
|
|
44
|
+
Mo.createElementVNode("i", { class: "i-celeste-information-2-fill" })
|
|
45
45
|
], -1)
|
|
46
46
|
])),
|
|
47
47
|
_: 1
|
|
48
|
-
}, 8, ["title"])) :
|
|
48
|
+
}, 8, ["title"])) : Mo.createCommentVNode("", true)
|
|
49
49
|
]),
|
|
50
50
|
_: 3
|
|
51
51
|
}, 16, ["aria-required", "aria-disabled", "class"]);
|
package/dist/cjs/link-bubble.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const
|
|
2
|
+
const Mo = require("vue");
|
|
3
3
|
const button = require("./button.js");
|
|
4
4
|
const compactButton = require("./compact-button.js");
|
|
5
5
|
const linkButton = require("./link-button.js");
|
|
@@ -20,7 +20,7 @@ const _hoisted_4 = {
|
|
|
20
20
|
key: 1,
|
|
21
21
|
class: "edit-mode"
|
|
22
22
|
};
|
|
23
|
-
const _sfc_main = /* @__PURE__ */
|
|
23
|
+
const _sfc_main = /* @__PURE__ */ Mo.defineComponent({
|
|
24
24
|
__name: "link-bubble",
|
|
25
25
|
props: {
|
|
26
26
|
editor: {},
|
|
@@ -30,14 +30,14 @@ const _sfc_main = /* @__PURE__ */ No.defineComponent({
|
|
|
30
30
|
setup(__props, { emit: __emit }) {
|
|
31
31
|
const props = __props;
|
|
32
32
|
const emit = __emit;
|
|
33
|
-
const BubbleMenu =
|
|
33
|
+
const BubbleMenu = Mo.defineAsyncComponent(
|
|
34
34
|
() => Promise.resolve().then(() => require("./chunks/index4.js")).then((m) => m.BubbleMenu)
|
|
35
35
|
);
|
|
36
|
-
const href =
|
|
37
|
-
const openInNewTab =
|
|
38
|
-
const editing =
|
|
36
|
+
const href = Mo.ref("");
|
|
37
|
+
const openInNewTab = Mo.ref(false);
|
|
38
|
+
const editing = Mo.ref(false);
|
|
39
39
|
const isTextSelected = () => props.editor.state.selection.from !== props.editor.state.selection.to;
|
|
40
|
-
const showBubble =
|
|
40
|
+
const showBubble = Mo.computed(() => {
|
|
41
41
|
return editing.value || props.editor.isActive("link") || props.showSetLinkFromToolbar && isTextSelected();
|
|
42
42
|
});
|
|
43
43
|
function startEdit() {
|
|
@@ -86,7 +86,7 @@ const _sfc_main = /* @__PURE__ */ No.defineComponent({
|
|
|
86
86
|
}
|
|
87
87
|
return false;
|
|
88
88
|
}
|
|
89
|
-
const isValidUrl =
|
|
89
|
+
const isValidUrl = Mo.computed(() => isAllowedUri());
|
|
90
90
|
function applyLink() {
|
|
91
91
|
if (!href.value || !isValidUrl.value) {
|
|
92
92
|
return;
|
|
@@ -97,7 +97,7 @@ const _sfc_main = /* @__PURE__ */ No.defineComponent({
|
|
|
97
97
|
}).run();
|
|
98
98
|
reset();
|
|
99
99
|
}
|
|
100
|
-
const bubbleRef =
|
|
100
|
+
const bubbleRef = Mo.ref(null);
|
|
101
101
|
function handleClickOutside(event) {
|
|
102
102
|
const target = event.target;
|
|
103
103
|
if (!bubbleRef.value) {
|
|
@@ -111,7 +111,7 @@ const _sfc_main = /* @__PURE__ */ No.defineComponent({
|
|
|
111
111
|
}
|
|
112
112
|
emit("set-link-closed");
|
|
113
113
|
}
|
|
114
|
-
|
|
114
|
+
Mo.onMounted(() => {
|
|
115
115
|
props.editor.on("selectionUpdate", () => {
|
|
116
116
|
if (props.editor.isActive("link") || props.showSetLinkFromToolbar) {
|
|
117
117
|
const attrs = props.editor.getAttributes("link");
|
|
@@ -123,11 +123,11 @@ const _sfc_main = /* @__PURE__ */ No.defineComponent({
|
|
|
123
123
|
});
|
|
124
124
|
document.addEventListener("click", handleClickOutside);
|
|
125
125
|
});
|
|
126
|
-
|
|
126
|
+
Mo.onUnmounted(() => {
|
|
127
127
|
document.removeEventListener("click", handleClickOutside);
|
|
128
128
|
});
|
|
129
129
|
return (_ctx, _cache) => {
|
|
130
|
-
return
|
|
130
|
+
return Mo.openBlock(), Mo.createBlock(Mo.unref(BubbleMenu), {
|
|
131
131
|
"should-show": () => true,
|
|
132
132
|
editor: _ctx.editor,
|
|
133
133
|
options: {
|
|
@@ -138,16 +138,16 @@ const _sfc_main = /* @__PURE__ */ No.defineComponent({
|
|
|
138
138
|
}
|
|
139
139
|
}
|
|
140
140
|
}, {
|
|
141
|
-
default:
|
|
142
|
-
showBubble.value ? (
|
|
141
|
+
default: Mo.withCtx(() => [
|
|
142
|
+
showBubble.value ? (Mo.openBlock(), Mo.createElementBlock("div", {
|
|
143
143
|
key: 0,
|
|
144
144
|
ref_key: "bubbleRef",
|
|
145
145
|
ref: bubbleRef,
|
|
146
146
|
class: "link-bubble"
|
|
147
147
|
}, [
|
|
148
|
-
editing.value || props.showSetLinkFromToolbar && isTextSelected() ? (
|
|
149
|
-
|
|
150
|
-
|
|
148
|
+
editing.value || props.showSetLinkFromToolbar && isTextSelected() ? (Mo.openBlock(), Mo.createElementBlock("div", _hoisted_1, [
|
|
149
|
+
Mo.createElementVNode("div", _hoisted_2, [
|
|
150
|
+
Mo.createVNode(textInput, {
|
|
151
151
|
modelValue: href.value,
|
|
152
152
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => href.value = $event),
|
|
153
153
|
type: "url",
|
|
@@ -155,71 +155,71 @@ const _sfc_main = /* @__PURE__ */ No.defineComponent({
|
|
|
155
155
|
placeholder: "Paste or type a link",
|
|
156
156
|
class: "link-input",
|
|
157
157
|
onKeydown: [
|
|
158
|
-
|
|
159
|
-
|
|
158
|
+
Mo.withKeys(applyLink, ["enter"]),
|
|
159
|
+
Mo.withKeys(reset, ["esc"])
|
|
160
160
|
]
|
|
161
161
|
}, {
|
|
162
|
-
leadingNode:
|
|
163
|
-
|
|
164
|
-
default:
|
|
165
|
-
|
|
162
|
+
leadingNode: Mo.withCtx(() => [
|
|
163
|
+
Mo.createVNode(textInputAffix, null, {
|
|
164
|
+
default: Mo.withCtx(() => _cache[2] || (_cache[2] = [
|
|
165
|
+
Mo.createElementVNode("i", { class: "i-celeste-link" }, null, -1)
|
|
166
166
|
])),
|
|
167
167
|
_: 1
|
|
168
168
|
})
|
|
169
169
|
]),
|
|
170
170
|
_: 1
|
|
171
171
|
}, 8, ["modelValue"]),
|
|
172
|
-
|
|
172
|
+
Mo.createVNode(button, {
|
|
173
173
|
intent: "neutral",
|
|
174
174
|
size: "xs",
|
|
175
175
|
variant: "stroke",
|
|
176
176
|
disabled: !isValidUrl.value,
|
|
177
177
|
onClick: applyLink
|
|
178
178
|
}, {
|
|
179
|
-
default:
|
|
180
|
-
|
|
179
|
+
default: Mo.withCtx(() => _cache[3] || (_cache[3] = [
|
|
180
|
+
Mo.createTextVNode(" Set link ")
|
|
181
181
|
])),
|
|
182
182
|
_: 1
|
|
183
183
|
}, 8, ["disabled"])
|
|
184
184
|
]),
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
default:
|
|
188
|
-
|
|
185
|
+
Mo.createElementVNode("div", _hoisted_3, [
|
|
186
|
+
Mo.createVNode(label, { for: "open-in-new-tab" }, {
|
|
187
|
+
default: Mo.withCtx(() => _cache[4] || (_cache[4] = [
|
|
188
|
+
Mo.createTextVNode(" Open in new tab ")
|
|
189
189
|
])),
|
|
190
190
|
_: 1
|
|
191
191
|
}),
|
|
192
|
-
|
|
192
|
+
Mo.createVNode(switch_vue_vue_type_script_setup_true_lang._sfc_main, {
|
|
193
193
|
id: "open-in-new-tab",
|
|
194
194
|
checked: openInNewTab.value,
|
|
195
195
|
"onUpdate:checked": _cache[1] || (_cache[1] = ($event) => openInNewTab.value = $event)
|
|
196
196
|
}, null, 8, ["checked"])
|
|
197
197
|
])
|
|
198
|
-
])) : props.editor.isActive("link") ? (
|
|
199
|
-
|
|
198
|
+
])) : props.editor.isActive("link") ? (Mo.openBlock(), Mo.createElementBlock("div", _hoisted_4, [
|
|
199
|
+
Mo.createVNode(linkButton, {
|
|
200
200
|
href: _ctx.editor.getAttributes("link").href,
|
|
201
201
|
target: _ctx.editor.getAttributes("link").target
|
|
202
202
|
}, {
|
|
203
|
-
default:
|
|
204
|
-
|
|
203
|
+
default: Mo.withCtx(() => [
|
|
204
|
+
Mo.createTextVNode(Mo.toDisplayString(truncateMiddleUrl(_ctx.editor.getAttributes("link").href)), 1)
|
|
205
205
|
]),
|
|
206
206
|
_: 1
|
|
207
207
|
}, 8, ["href", "target"]),
|
|
208
|
-
_cache[5] || (_cache[5] =
|
|
209
|
-
|
|
208
|
+
_cache[5] || (_cache[5] = Mo.createElementVNode("div", { class: "divider" }, null, -1)),
|
|
209
|
+
Mo.createVNode(compactButton, {
|
|
210
210
|
icon: "i-celeste-edit-line",
|
|
211
211
|
size: "lg",
|
|
212
212
|
variant: "ghost",
|
|
213
213
|
onClick: startEdit
|
|
214
214
|
}),
|
|
215
|
-
|
|
215
|
+
Mo.createVNode(compactButton, {
|
|
216
216
|
icon: "i-celeste-delete-bin-line",
|
|
217
217
|
size: "lg",
|
|
218
218
|
variant: "ghost",
|
|
219
219
|
onClick: removeLink
|
|
220
220
|
})
|
|
221
|
-
])) :
|
|
222
|
-
], 512)) :
|
|
221
|
+
])) : Mo.createCommentVNode("", true)
|
|
222
|
+
], 512)) : Mo.createCommentVNode("", true)
|
|
223
223
|
]),
|
|
224
224
|
_: 1
|
|
225
225
|
}, 8, ["editor"]);
|
package/dist/cjs/link-button.js
CHANGED
|
@@ -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: "link-button",
|
|
9
9
|
props: {
|
|
10
10
|
class: {},
|
|
@@ -18,11 +18,11 @@ const _sfc_main = /* @__PURE__ */ No.defineComponent({
|
|
|
18
18
|
setup(__props) {
|
|
19
19
|
const props = __props;
|
|
20
20
|
return (_ctx, _cache) => {
|
|
21
|
-
return
|
|
21
|
+
return Mo.openBlock(), Mo.createBlock(Mo.unref(index.O), {
|
|
22
22
|
as: _ctx.as,
|
|
23
23
|
disabled: _ctx.disabled,
|
|
24
24
|
"as-child": _ctx.asChild,
|
|
25
|
-
class:
|
|
25
|
+
class: Mo.normalizeClass(Mo.unref(clsx.clsx)(
|
|
26
26
|
"celeste-link-button",
|
|
27
27
|
`celeste-link-button-${_ctx.intent}`,
|
|
28
28
|
`celeste-link-button-${_ctx.size}`,
|
|
@@ -32,8 +32,8 @@ const _sfc_main = /* @__PURE__ */ No.defineComponent({
|
|
|
32
32
|
)),
|
|
33
33
|
role: _ctx.as === "a" ? "link" : "button"
|
|
34
34
|
}, {
|
|
35
|
-
default:
|
|
36
|
-
|
|
35
|
+
default: Mo.withCtx(() => [
|
|
36
|
+
Mo.renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
37
37
|
]),
|
|
38
38
|
_: 3
|
|
39
39
|
}, 8, ["as", "disabled", "as-child", "class", "role"]);
|
package/dist/cjs/modal-body.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const
|
|
2
|
+
const Mo = require("vue");
|
|
3
3
|
const clsx = require("./chunks/clsx.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: "modal-body",
|
|
8
8
|
props: {
|
|
9
9
|
class: {}
|
|
@@ -11,10 +11,10 @@ const _sfc_main = /* @__PURE__ */ No.defineComponent({
|
|
|
11
11
|
setup(__props) {
|
|
12
12
|
const props = __props;
|
|
13
13
|
return (_ctx, _cache) => {
|
|
14
|
-
return
|
|
15
|
-
class:
|
|
14
|
+
return Mo.openBlock(), Mo.createElementBlock("div", {
|
|
15
|
+
class: Mo.normalizeClass(Mo.unref(clsx.clsx)("celeste-modal-body", props.class))
|
|
16
16
|
}, [
|
|
17
|
-
|
|
17
|
+
Mo.renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
18
18
|
], 2);
|
|
19
19
|
};
|
|
20
20
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const
|
|
2
|
+
const Mo = require("vue");
|
|
3
3
|
const useDelegatedProps = require("./use-delegated-props.js");
|
|
4
4
|
const clsx = require("./chunks/clsx.js");
|
|
5
5
|
const index = require("./chunks/index.js");
|
|
6
6
|
;/* empty css */
|
|
7
7
|
const _pluginVue_exportHelper = require("./chunks/_plugin-vue_export-helper.js");
|
|
8
|
-
const _sfc_main = /* @__PURE__ */
|
|
8
|
+
const _sfc_main = /* @__PURE__ */ Mo.defineComponent({
|
|
9
9
|
__name: "modal-content",
|
|
10
10
|
props: {
|
|
11
11
|
forceMount: { type: Boolean },
|
|
@@ -21,18 +21,18 @@ const _sfc_main = /* @__PURE__ */ No.defineComponent({
|
|
|
21
21
|
const props = __props;
|
|
22
22
|
const emits = __emit;
|
|
23
23
|
const delegatedProps = useDelegatedProps.useDelegatedProps(props, "class");
|
|
24
|
-
const forwarded = index.
|
|
24
|
+
const forwarded = index.xe(delegatedProps, emits);
|
|
25
25
|
return (_ctx, _cache) => {
|
|
26
|
-
return
|
|
27
|
-
default:
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
default:
|
|
31
|
-
|
|
32
|
-
class:
|
|
26
|
+
return Mo.openBlock(), Mo.createBlock(Mo.unref(index.Dv), null, {
|
|
27
|
+
default: Mo.withCtx(() => [
|
|
28
|
+
Mo.createVNode(Mo.unref(index.Eu), { class: "celeste-modal-overlay" }),
|
|
29
|
+
Mo.createVNode(Mo.Transition, { name: "fade" }, {
|
|
30
|
+
default: Mo.withCtx(() => [
|
|
31
|
+
Mo.createVNode(Mo.unref(index.xu), Mo.mergeProps(Mo.unref(forwarded), {
|
|
32
|
+
class: Mo.unref(clsx.clsx)("celeste-modal-content", props.class)
|
|
33
33
|
}), {
|
|
34
|
-
default:
|
|
35
|
-
|
|
34
|
+
default: Mo.withCtx(() => [
|
|
35
|
+
Mo.renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
36
36
|
]),
|
|
37
37
|
_: 3
|
|
38
38
|
}, 16, ["class"])
|