@youcan/celeste 0.6.73 → 0.6.75
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 +233 -201
- package/dist/cjs/alert.js +33 -33
- package/dist/cjs/badge.js +17 -14
- 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 +2292 -2289
- package/dist/cjs/chunks/index2.js +14 -14
- package/dist/cjs/chunks/index3.js +28 -28
- package/dist/cjs/chunks/index4.js +125 -96
- package/dist/cjs/chunks/index5.js +4720 -4015
- 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 +742 -45
- 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 +5 -4
- package/dist/cjs/chunks/sidebar.js +21 -21
- package/dist/cjs/chunks/slider.js +11 -11
- package/dist/cjs/chunks/sonner.js +214 -146
- 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 +7 -6
- package/dist/cjs/combobox-separator.js +7 -7
- package/dist/cjs/combobox-trigger.js +8 -8
- package/dist/cjs/combobox.js +54 -53
- 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 +8 -7
- 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 +9 -9
- package/dist/cjs/hue-slider.js +15 -15
- package/dist/cjs/index.js +5 -5
- 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-area.js +42 -2
- package/dist/cjs/scroll-bar.js +10 -17
- package/dist/cjs/segmented-control-item.js +6 -8
- 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 +21 -21
- 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 +4 -2
- package/dist/components/rich-editor/link-bubble.d.ts +3 -1
- package/dist/components/scroll-area/scroll-area.d.ts +1 -1
- package/dist/components/scroll-area/scroll-bar.d.ts +1 -1
- package/dist/es/alert.js +2 -2
- package/dist/es/badge.js +6 -3
- 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 +1156 -1153
- package/dist/es/chunks/index2.js +3 -3
- package/dist/es/chunks/index3.js +2 -2
- package/dist/es/chunks/index4.js +119 -90
- package/dist/es/chunks/index5.js +4733 -4028
- 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 +743 -46
- 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 +2 -1
- package/dist/es/chunks/sidebar.js +1 -1
- package/dist/es/chunks/slider.js +7 -7
- package/dist/es/chunks/sonner.js +97 -29
- 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 +5 -4
- package/dist/es/combobox-separator.js +3 -3
- package/dist/es/combobox-trigger.js +4 -4
- package/dist/es/combobox.js +4 -3
- 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 +5 -4
- 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 +2 -2
- package/dist/es/hue-slider.js +3 -3
- package/dist/es/index.js +90 -90
- 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-area.js +42 -2
- package/dist/es/scroll-bar.js +8 -15
- package/dist/es/segmented-control-item.js +3 -5
- 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 +7 -7
- package/dist/es/use-sidebar.js +2 -2
- package/package.json +3 -3
- package/src/components/alert/alert.vue +1 -1
- package/src/components/badge/badge.vue +5 -1
- package/src/components/hint-text/hint-text.vue +1 -1
- package/src/components/scroll-area/scroll-area.vue +22 -8
- package/src/components/scroll-area/scroll-bar.vue +33 -17
- package/src/components/scroll-area/stories/scroll-area.stories.ts +184 -0
- package/src/components/tooltip/tooltip-content.vue +1 -0
- package/dist/cjs/chunks/scroll-area.js +0 -41
- package/dist/es/chunks/scroll-area.js +0 -42
package/dist/cjs/fancy-button.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const
|
|
2
|
+
const No = 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__ */ No.defineComponent({
|
|
8
8
|
__name: "fancy-button",
|
|
9
9
|
props: {
|
|
10
10
|
class: {},
|
|
@@ -16,18 +16,18 @@ const _sfc_main = /* @__PURE__ */ Mo.defineComponent({
|
|
|
16
16
|
setup(__props) {
|
|
17
17
|
const props = __props;
|
|
18
18
|
return (_ctx, _cache) => {
|
|
19
|
-
return
|
|
19
|
+
return No.openBlock(), No.createBlock(No.unref(index.O), {
|
|
20
20
|
as: _ctx.as,
|
|
21
21
|
"as-child": _ctx.asChild,
|
|
22
|
-
class:
|
|
22
|
+
class: No.normalizeClass(No.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: No.withCtx(() => [
|
|
30
|
+
No.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 No = 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__ */ No.defineComponent({
|
|
16
16
|
__name: "file-upload-area",
|
|
17
|
-
props: /* @__PURE__ */
|
|
17
|
+
props: /* @__PURE__ */ No.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__ */ Mo.defineComponent({
|
|
|
30
30
|
"modelValue": { default: [] },
|
|
31
31
|
"modelModifiers": {}
|
|
32
32
|
}),
|
|
33
|
-
emits: /* @__PURE__ */
|
|
33
|
+
emits: /* @__PURE__ */ No.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 = No.useModel(__props, "modelValue");
|
|
38
|
+
const dropZoneRef = No.useTemplateRef("dropZoneRef");
|
|
39
39
|
const { isOverDropZone } = index.useDropZone(dropZoneRef, { onDrop });
|
|
40
|
-
const uploadComponent =
|
|
40
|
+
const uploadComponent = No.computed(() => {
|
|
41
41
|
return props.onTriggerClick ? "div" : "label";
|
|
42
42
|
});
|
|
43
43
|
function handleUpload(e) {
|
|
@@ -99,25 +99,25 @@ const _sfc_main = /* @__PURE__ */ Mo.defineComponent({
|
|
|
99
99
|
}
|
|
100
100
|
}
|
|
101
101
|
return (_ctx, _cache) => {
|
|
102
|
-
return
|
|
102
|
+
return No.openBlock(), No.createBlock(No.resolveDynamicComponent(uploadComponent.value), {
|
|
103
103
|
ref_key: "dropZoneRef",
|
|
104
104
|
ref: dropZoneRef,
|
|
105
|
-
class:
|
|
105
|
+
class: No.normalizeClass(No.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": No.unref(isOverDropZone),
|
|
110
110
|
onClick: handleTriggerClick
|
|
111
111
|
}, {
|
|
112
|
-
default:
|
|
113
|
-
|
|
114
|
-
class:
|
|
112
|
+
default: No.withCtx(() => [
|
|
113
|
+
No.createElementVNode("i", {
|
|
114
|
+
class: No.normalizeClass(_ctx.icon)
|
|
115
115
|
}, null, 2),
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
!
|
|
116
|
+
No.createElementVNode("div", _hoisted_1, [
|
|
117
|
+
No.createElementVNode("span", _hoisted_2, No.toDisplayString(No.unref(isOverDropZone) ? _ctx.labelOnDrop : _ctx.label), 1),
|
|
118
|
+
!No.unref(isOverDropZone) ? (No.openBlock(), No.createElementBlock("span", _hoisted_3, No.toDisplayString(_ctx.description), 1)) : No.createCommentVNode("", true)
|
|
119
119
|
]),
|
|
120
|
-
!
|
|
120
|
+
!No.unref(isOverDropZone) ? (No.openBlock(), No.createBlock(button, {
|
|
121
121
|
key: 0,
|
|
122
122
|
"as-child": "",
|
|
123
123
|
intent: "neutral",
|
|
@@ -125,17 +125,17 @@ const _sfc_main = /* @__PURE__ */ Mo.defineComponent({
|
|
|
125
125
|
size: "xs",
|
|
126
126
|
class: "celeste-file-upload-area-trigger"
|
|
127
127
|
}, {
|
|
128
|
-
default:
|
|
129
|
-
|
|
128
|
+
default: No.withCtx(() => [
|
|
129
|
+
No.createElementVNode("span", null, No.toDisplayString(_ctx.triggerLabel), 1)
|
|
130
130
|
]),
|
|
131
131
|
_: 1
|
|
132
|
-
})) :
|
|
133
|
-
!_ctx.onTriggerClick ? (
|
|
132
|
+
})) : No.createCommentVNode("", true),
|
|
133
|
+
!_ctx.onTriggerClick ? (No.openBlock(), No.createElementBlock("input", No.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)) : No.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 No = 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__ */ No.defineComponent({
|
|
9
9
|
__name: "hint-text",
|
|
10
10
|
props: {
|
|
11
11
|
text: {},
|
|
@@ -16,22 +16,22 @@ const _sfc_main = /* @__PURE__ */ Mo.defineComponent({
|
|
|
16
16
|
setup(__props) {
|
|
17
17
|
const props = __props;
|
|
18
18
|
return (_ctx, _cache) => {
|
|
19
|
-
return
|
|
19
|
+
return No.openBlock(), No.createElementBlock("div", {
|
|
20
20
|
role: props.state === "error" ? "alert" : "note",
|
|
21
|
-
class:
|
|
21
|
+
class: No.normalizeClass(No.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 ? (No.openBlock(), No.createElementBlock("i", {
|
|
28
28
|
key: 0,
|
|
29
|
-
class:
|
|
30
|
-
}, null, 2)) :
|
|
31
|
-
_ctx.text ? (
|
|
29
|
+
class: No.normalizeClass(_ctx.icon)
|
|
30
|
+
}, null, 2)) : No.createCommentVNode("", true),
|
|
31
|
+
_ctx.text ? (No.openBlock(), No.createElementBlock("p", _hoisted_2, No.toDisplayString(_ctx.text), 1)) : No.createCommentVNode("", true)
|
|
32
32
|
], 10, _hoisted_1);
|
|
33
33
|
};
|
|
34
34
|
}
|
|
35
35
|
});
|
|
36
|
-
const hintText = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
36
|
+
const hintText = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main, [["__scopeId", "data-v-42c3df99"]]);
|
|
37
37
|
module.exports = hintText;
|
package/dist/cjs/hue-slider.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const
|
|
2
|
+
const No = 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__ */ No.defineComponent({
|
|
10
10
|
__name: "hue-slider",
|
|
11
11
|
props: {
|
|
12
12
|
"modelValue": {
|
|
@@ -16,24 +16,24 @@ const _sfc_main = /* @__PURE__ */ Mo.defineComponent({
|
|
|
16
16
|
},
|
|
17
17
|
emits: ["update:modelValue"],
|
|
18
18
|
setup(__props) {
|
|
19
|
-
const hue =
|
|
20
|
-
const pullDirection =
|
|
21
|
-
const containerRef =
|
|
19
|
+
const hue = No.useModel(__props, "modelValue");
|
|
20
|
+
const pullDirection = No.ref();
|
|
21
|
+
const containerRef = No.useTemplateRef("slider-track");
|
|
22
22
|
const { preventPageUserSelect, allowPageUserSelect } = useUserSelect.useUserPageSelection();
|
|
23
|
-
|
|
23
|
+
No.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 = No.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 = No.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__ */ Mo.defineComponent({
|
|
|
101
101
|
emitChange(newValue);
|
|
102
102
|
}
|
|
103
103
|
}
|
|
104
|
-
|
|
104
|
+
No.onUnmounted(() => {
|
|
105
105
|
unbindEventListeners();
|
|
106
106
|
});
|
|
107
107
|
return (_ctx, _cache) => {
|
|
108
|
-
return
|
|
109
|
-
|
|
108
|
+
return No.openBlock(), No.createElementBlock("div", _hoisted_1, [
|
|
109
|
+
No.createElementVNode("div", {
|
|
110
110
|
ref: "slider-track",
|
|
111
111
|
class: "slider-track",
|
|
112
112
|
role: "slider",
|
|
@@ -120,9 +120,9 @@ const _sfc_main = /* @__PURE__ */ Mo.defineComponent({
|
|
|
120
120
|
onTouchstartPassive: handleChange,
|
|
121
121
|
onKeydown: handleKeyDown
|
|
122
122
|
}, [
|
|
123
|
-
|
|
123
|
+
No.createElementVNode("div", {
|
|
124
124
|
class: "celeste-color-thumb",
|
|
125
|
-
style:
|
|
125
|
+
style: No.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__ */ Mo.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
|
@@ -77,7 +77,7 @@ const radioGroupLabel = require("./radio-group-label.js");
|
|
|
77
77
|
const radioGroup_vue_vue_type_script_setup_true_lang = require("./chunks/radio-group.js");
|
|
78
78
|
;/* empty css */
|
|
79
79
|
const richEditor = require("./rich-editor.js");
|
|
80
|
-
const
|
|
80
|
+
const scrollArea = require("./scroll-area.js");
|
|
81
81
|
const segmentedControlItem = require("./segmented-control-item.js");
|
|
82
82
|
const segmentedControl = require("./segmented-control.js");
|
|
83
83
|
const selectContent = require("./select-content.js");
|
|
@@ -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 No = require("vue");
|
|
159
159
|
const components = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
160
160
|
__proto__: null,
|
|
161
161
|
Alert: alert,
|
|
@@ -228,7 +228,7 @@ const components = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePr
|
|
|
228
228
|
RadioGroupItem: radioGroupItem_vue_vue_type_script_setup_true_lang._sfc_main,
|
|
229
229
|
RadioGroupLabel: radioGroupLabel,
|
|
230
230
|
RichEditor: richEditor,
|
|
231
|
-
ScrollArea:
|
|
231
|
+
ScrollArea: scrollArea,
|
|
232
232
|
SegmentedControl: segmentedControl,
|
|
233
233
|
SegmentedControlItem: segmentedControlItem,
|
|
234
234
|
Select: select_vue_vue_type_script_setup_true_lang._sfc_main,
|
|
@@ -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(No.markRaw(sonnerAlert), {
|
|
304
304
|
...externalToastProps,
|
|
305
305
|
componentProps: {
|
|
306
306
|
title,
|
|
@@ -416,7 +416,7 @@ exports.RadioGroupItem = radioGroupItem_vue_vue_type_script_setup_true_lang._sfc
|
|
|
416
416
|
exports.RadioGroupLabel = radioGroupLabel;
|
|
417
417
|
exports.RadioGroup = radioGroup_vue_vue_type_script_setup_true_lang._sfc_main;
|
|
418
418
|
exports.RichEditor = richEditor;
|
|
419
|
-
exports.ScrollArea =
|
|
419
|
+
exports.ScrollArea = scrollArea;
|
|
420
420
|
exports.SegmentedControlItem = segmentedControlItem;
|
|
421
421
|
exports.SegmentedControl = segmentedControl;
|
|
422
422
|
exports.SelectContent = selectContent;
|
package/dist/cjs/label.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const
|
|
2
|
+
const No = 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__ */ No.defineComponent({
|
|
14
14
|
__name: "label",
|
|
15
15
|
props: {
|
|
16
16
|
for: {},
|
|
@@ -26,26 +26,26 @@ const _sfc_main = /* @__PURE__ */ Mo.defineComponent({
|
|
|
26
26
|
const props = __props;
|
|
27
27
|
const delegatedProps = useDelegatedProps.useDelegatedProps(props, "class");
|
|
28
28
|
return (_ctx, _cache) => {
|
|
29
|
-
return
|
|
29
|
+
return No.openBlock(), No.createBlock(No.unref(index.Vh), No.mergeProps(No.unref(delegatedProps), {
|
|
30
30
|
"aria-required": _ctx.required,
|
|
31
31
|
"aria-disabled": _ctx.disabled,
|
|
32
|
-
class:
|
|
32
|
+
class: No.unref(clsx.clsx)("celeste-label", props.class)
|
|
33
33
|
}), {
|
|
34
|
-
default:
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
_ctx.sublabel ? (
|
|
38
|
-
_ctx.information ? (
|
|
34
|
+
default: No.withCtx(() => [
|
|
35
|
+
No.renderSlot(_ctx.$slots, "default", {}, void 0, true),
|
|
36
|
+
No.renderSlot(_ctx.$slots, "button", { class: "celeste-label-button" }, void 0, true),
|
|
37
|
+
_ctx.sublabel ? (No.openBlock(), No.createElementBlock("span", _hoisted_1, No.toDisplayString(_ctx.sublabel), 1)) : No.createCommentVNode("", true),
|
|
38
|
+
_ctx.information ? (No.openBlock(), No.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: No.withCtx(() => _cache[0] || (_cache[0] = [
|
|
43
|
+
No.createElementVNode("button", { class: "celeste-label-info" }, [
|
|
44
|
+
No.createElementVNode("i", { class: "i-celeste-information-2-fill" })
|
|
45
45
|
], -1)
|
|
46
46
|
])),
|
|
47
47
|
_: 1
|
|
48
|
-
}, 8, ["title"])) :
|
|
48
|
+
}, 8, ["title"])) : No.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 No = 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__ */ No.defineComponent({
|
|
24
24
|
__name: "link-bubble",
|
|
25
25
|
props: {
|
|
26
26
|
editor: {},
|
|
@@ -30,14 +30,14 @@ const _sfc_main = /* @__PURE__ */ Mo.defineComponent({
|
|
|
30
30
|
setup(__props, { emit: __emit }) {
|
|
31
31
|
const props = __props;
|
|
32
32
|
const emit = __emit;
|
|
33
|
-
const BubbleMenu =
|
|
33
|
+
const BubbleMenu = No.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 = No.ref("");
|
|
37
|
+
const openInNewTab = No.ref(false);
|
|
38
|
+
const editing = No.ref(false);
|
|
39
39
|
const isTextSelected = () => props.editor.state.selection.from !== props.editor.state.selection.to;
|
|
40
|
-
const showBubble =
|
|
40
|
+
const showBubble = No.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__ */ Mo.defineComponent({
|
|
|
86
86
|
}
|
|
87
87
|
return false;
|
|
88
88
|
}
|
|
89
|
-
const isValidUrl =
|
|
89
|
+
const isValidUrl = No.computed(() => isAllowedUri());
|
|
90
90
|
function applyLink() {
|
|
91
91
|
if (!href.value || !isValidUrl.value) {
|
|
92
92
|
return;
|
|
@@ -97,7 +97,7 @@ const _sfc_main = /* @__PURE__ */ Mo.defineComponent({
|
|
|
97
97
|
}).run();
|
|
98
98
|
reset();
|
|
99
99
|
}
|
|
100
|
-
const bubbleRef =
|
|
100
|
+
const bubbleRef = No.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__ */ Mo.defineComponent({
|
|
|
111
111
|
}
|
|
112
112
|
emit("set-link-closed");
|
|
113
113
|
}
|
|
114
|
-
|
|
114
|
+
No.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__ */ Mo.defineComponent({
|
|
|
123
123
|
});
|
|
124
124
|
document.addEventListener("click", handleClickOutside);
|
|
125
125
|
});
|
|
126
|
-
|
|
126
|
+
No.onUnmounted(() => {
|
|
127
127
|
document.removeEventListener("click", handleClickOutside);
|
|
128
128
|
});
|
|
129
129
|
return (_ctx, _cache) => {
|
|
130
|
-
return
|
|
130
|
+
return No.openBlock(), No.createBlock(No.unref(BubbleMenu), {
|
|
131
131
|
"should-show": () => true,
|
|
132
132
|
editor: _ctx.editor,
|
|
133
133
|
options: {
|
|
@@ -138,16 +138,16 @@ const _sfc_main = /* @__PURE__ */ Mo.defineComponent({
|
|
|
138
138
|
}
|
|
139
139
|
}
|
|
140
140
|
}, {
|
|
141
|
-
default:
|
|
142
|
-
showBubble.value ? (
|
|
141
|
+
default: No.withCtx(() => [
|
|
142
|
+
showBubble.value ? (No.openBlock(), No.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() ? (No.openBlock(), No.createElementBlock("div", _hoisted_1, [
|
|
149
|
+
No.createElementVNode("div", _hoisted_2, [
|
|
150
|
+
No.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__ */ Mo.defineComponent({
|
|
|
155
155
|
placeholder: "Paste or type a link",
|
|
156
156
|
class: "link-input",
|
|
157
157
|
onKeydown: [
|
|
158
|
-
|
|
159
|
-
|
|
158
|
+
No.withKeys(applyLink, ["enter"]),
|
|
159
|
+
No.withKeys(reset, ["esc"])
|
|
160
160
|
]
|
|
161
161
|
}, {
|
|
162
|
-
leadingNode:
|
|
163
|
-
|
|
164
|
-
default:
|
|
165
|
-
|
|
162
|
+
leadingNode: No.withCtx(() => [
|
|
163
|
+
No.createVNode(textInputAffix, null, {
|
|
164
|
+
default: No.withCtx(() => _cache[2] || (_cache[2] = [
|
|
165
|
+
No.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
|
+
No.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: No.withCtx(() => _cache[3] || (_cache[3] = [
|
|
180
|
+
No.createTextVNode(" Set link ")
|
|
181
181
|
])),
|
|
182
182
|
_: 1
|
|
183
183
|
}, 8, ["disabled"])
|
|
184
184
|
]),
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
default:
|
|
188
|
-
|
|
185
|
+
No.createElementVNode("div", _hoisted_3, [
|
|
186
|
+
No.createVNode(label, { for: "open-in-new-tab" }, {
|
|
187
|
+
default: No.withCtx(() => _cache[4] || (_cache[4] = [
|
|
188
|
+
No.createTextVNode(" Open in new tab ")
|
|
189
189
|
])),
|
|
190
190
|
_: 1
|
|
191
191
|
}),
|
|
192
|
-
|
|
192
|
+
No.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") ? (No.openBlock(), No.createElementBlock("div", _hoisted_4, [
|
|
199
|
+
No.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: No.withCtx(() => [
|
|
204
|
+
No.createTextVNode(No.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] = No.createElementVNode("div", { class: "divider" }, null, -1)),
|
|
209
|
+
No.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
|
+
No.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
|
+
])) : No.createCommentVNode("", true)
|
|
222
|
+
], 512)) : No.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 No = 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__ */ No.defineComponent({
|
|
8
8
|
__name: "link-button",
|
|
9
9
|
props: {
|
|
10
10
|
class: {},
|
|
@@ -18,11 +18,11 @@ const _sfc_main = /* @__PURE__ */ Mo.defineComponent({
|
|
|
18
18
|
setup(__props) {
|
|
19
19
|
const props = __props;
|
|
20
20
|
return (_ctx, _cache) => {
|
|
21
|
-
return
|
|
21
|
+
return No.openBlock(), No.createBlock(No.unref(index.O), {
|
|
22
22
|
as: _ctx.as,
|
|
23
23
|
disabled: _ctx.disabled,
|
|
24
24
|
"as-child": _ctx.asChild,
|
|
25
|
-
class:
|
|
25
|
+
class: No.normalizeClass(No.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__ */ Mo.defineComponent({
|
|
|
32
32
|
)),
|
|
33
33
|
role: _ctx.as === "a" ? "link" : "button"
|
|
34
34
|
}, {
|
|
35
|
-
default:
|
|
36
|
-
|
|
35
|
+
default: No.withCtx(() => [
|
|
36
|
+
No.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 No = 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__ */ No.defineComponent({
|
|
7
7
|
__name: "modal-body",
|
|
8
8
|
props: {
|
|
9
9
|
class: {}
|
|
@@ -11,10 +11,10 @@ const _sfc_main = /* @__PURE__ */ Mo.defineComponent({
|
|
|
11
11
|
setup(__props) {
|
|
12
12
|
const props = __props;
|
|
13
13
|
return (_ctx, _cache) => {
|
|
14
|
-
return
|
|
15
|
-
class:
|
|
14
|
+
return No.openBlock(), No.createElementBlock("div", {
|
|
15
|
+
class: No.normalizeClass(No.unref(clsx.clsx)("celeste-modal-body", props.class))
|
|
16
16
|
}, [
|
|
17
|
-
|
|
17
|
+
No.renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
18
18
|
], 2);
|
|
19
19
|
};
|
|
20
20
|
}
|