@youcan/celeste 0.6.70 → 0.6.71
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 +3 -4
- 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 +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/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 +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 +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 +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 +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 +4 -2
- package/dist/components/rich-editor/link-bubble.d.ts +3 -1
- 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 +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/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 +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 +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 +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 +6 -6
- package/dist/es/use-sidebar.js +2 -2
- package/package.json +38 -38
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const
|
|
2
|
+
const No = 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");
|
|
@@ -11,7 +11,7 @@ const _hoisted_3 = {
|
|
|
11
11
|
role: "presentation",
|
|
12
12
|
class: "celeste-radio-card-row"
|
|
13
13
|
};
|
|
14
|
-
const _sfc_main = /* @__PURE__ */
|
|
14
|
+
const _sfc_main = /* @__PURE__ */ No.defineComponent({
|
|
15
15
|
__name: "radio-group-card",
|
|
16
16
|
props: {
|
|
17
17
|
for: {},
|
|
@@ -25,79 +25,79 @@ const _sfc_main = /* @__PURE__ */ Mo.defineComponent({
|
|
|
25
25
|
const props = __props;
|
|
26
26
|
const delegatedProps = useDelegatedProps.useDelegatedProps(props, "class");
|
|
27
27
|
return (_ctx, _cache) => {
|
|
28
|
-
return
|
|
28
|
+
return No.openBlock(), No.createBlock(No.unref(index.Vh), No.mergeProps(No.unref(delegatedProps), {
|
|
29
29
|
"aria-required": _ctx.required,
|
|
30
30
|
"aria-disabled": _ctx.disabled,
|
|
31
|
-
class:
|
|
31
|
+
class: No.unref(clsx.clsx)("celeste-radio-card", props.class, {
|
|
32
32
|
"celeste-radio-card-disabled": _ctx.disabled
|
|
33
33
|
})
|
|
34
34
|
}), {
|
|
35
|
-
default:
|
|
36
|
-
_ctx.$slots.image || _ctx.$slots.icon ? (
|
|
35
|
+
default: No.withCtx(() => [
|
|
36
|
+
_ctx.$slots.image || _ctx.$slots.icon ? (No.openBlock(), No.createElementBlock("div", {
|
|
37
37
|
key: 0,
|
|
38
38
|
role: "presentation",
|
|
39
|
-
class:
|
|
39
|
+
class: No.normalizeClass(["celeste-radio-card-preview", [_ctx.$slots.image ? "celeste-radio-card-preview-image" : "celeste-radio-card-preview-icon"]])
|
|
40
40
|
}, [
|
|
41
|
-
_ctx.$slots.image ? (
|
|
42
|
-
_cache[0] || (_cache[0] =
|
|
41
|
+
_ctx.$slots.image ? (No.openBlock(), No.createElementBlock(No.Fragment, { key: 0 }, [
|
|
42
|
+
_cache[0] || (_cache[0] = No.createElementVNode("i", {
|
|
43
43
|
class: "celeste-radio-card-preview-fallback",
|
|
44
44
|
"i-celeste-image-circle-fill": ""
|
|
45
45
|
}, null, -1)),
|
|
46
|
-
|
|
47
|
-
], 64)) : _ctx.$slots.icon ?
|
|
48
|
-
], 2)) :
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
46
|
+
No.renderSlot(_ctx.$slots, "image", { class: "i-celeste-image-circle-fill?bg" }, void 0, true)
|
|
47
|
+
], 64)) : _ctx.$slots.icon ? No.renderSlot(_ctx.$slots, "icon", { key: 1 }, void 0, true) : No.createCommentVNode("", true)
|
|
48
|
+
], 2)) : No.createCommentVNode("", true),
|
|
49
|
+
No.createElementVNode("div", _hoisted_1, [
|
|
50
|
+
No.createElementVNode("div", _hoisted_2, [
|
|
51
|
+
No.createElementVNode("div", _hoisted_3, [
|
|
52
|
+
No.createVNode(No.unref(index.O), {
|
|
53
53
|
as: "span",
|
|
54
54
|
class: "celeste-radio-card-label"
|
|
55
55
|
}, {
|
|
56
|
-
default:
|
|
57
|
-
|
|
56
|
+
default: No.withCtx(() => [
|
|
57
|
+
No.renderSlot(_ctx.$slots, "label", {}, void 0, true)
|
|
58
58
|
]),
|
|
59
59
|
_: 3
|
|
60
60
|
}),
|
|
61
|
-
_ctx.$slots.sublabel ? (
|
|
61
|
+
_ctx.$slots.sublabel ? (No.openBlock(), No.createBlock(No.unref(index.O), {
|
|
62
62
|
key: 0,
|
|
63
63
|
as: "span",
|
|
64
64
|
class: "celeste-radio-card-sublabel"
|
|
65
65
|
}, {
|
|
66
|
-
default:
|
|
67
|
-
|
|
66
|
+
default: No.withCtx(() => [
|
|
67
|
+
No.renderSlot(_ctx.$slots, "sublabel", {}, void 0, true)
|
|
68
68
|
]),
|
|
69
69
|
_: 3
|
|
70
|
-
})) :
|
|
71
|
-
_ctx.$slots.badge ? (
|
|
70
|
+
})) : No.createCommentVNode("", true),
|
|
71
|
+
_ctx.$slots.badge ? (No.openBlock(), No.createBlock(No.unref(index.O), {
|
|
72
72
|
key: 1,
|
|
73
73
|
"as-child": "",
|
|
74
74
|
class: "celeste-radio-card-badge"
|
|
75
75
|
}, {
|
|
76
|
-
default:
|
|
77
|
-
|
|
76
|
+
default: No.withCtx(() => [
|
|
77
|
+
No.renderSlot(_ctx.$slots, "badge", { disabled: _ctx.disabled }, void 0, true)
|
|
78
78
|
]),
|
|
79
79
|
_: 3
|
|
80
|
-
})) :
|
|
80
|
+
})) : No.createCommentVNode("", true)
|
|
81
81
|
])
|
|
82
82
|
]),
|
|
83
|
-
_ctx.$slots.description ? (
|
|
83
|
+
_ctx.$slots.description ? (No.openBlock(), No.createBlock(No.unref(index.O), {
|
|
84
84
|
key: 0,
|
|
85
85
|
as: "span",
|
|
86
86
|
class: "celeste-radio-card-description"
|
|
87
87
|
}, {
|
|
88
|
-
default:
|
|
89
|
-
|
|
88
|
+
default: No.withCtx(() => [
|
|
89
|
+
No.renderSlot(_ctx.$slots, "description", {}, void 0, true)
|
|
90
90
|
]),
|
|
91
91
|
_: 3
|
|
92
|
-
})) :
|
|
92
|
+
})) : No.createCommentVNode("", true)
|
|
93
93
|
]),
|
|
94
|
-
|
|
94
|
+
No.createVNode(No.unref(index.O), {
|
|
95
95
|
disabled: _ctx.disabled,
|
|
96
96
|
"as-child": "",
|
|
97
97
|
class: "celeste-radio-card-radio"
|
|
98
98
|
}, {
|
|
99
|
-
default:
|
|
100
|
-
|
|
99
|
+
default: No.withCtx(() => [
|
|
100
|
+
No.renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
101
101
|
]),
|
|
102
102
|
_: 3
|
|
103
103
|
}, 8, ["disabled"])
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const
|
|
2
|
+
const No = 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");
|
|
@@ -14,7 +14,7 @@ const _hoisted_3 = {
|
|
|
14
14
|
role: "presentation",
|
|
15
15
|
class: "celeste-radio-label-content"
|
|
16
16
|
};
|
|
17
|
-
const _sfc_main = /* @__PURE__ */
|
|
17
|
+
const _sfc_main = /* @__PURE__ */ No.defineComponent({
|
|
18
18
|
__name: "radio-group-label",
|
|
19
19
|
props: {
|
|
20
20
|
for: {},
|
|
@@ -28,76 +28,76 @@ const _sfc_main = /* @__PURE__ */ Mo.defineComponent({
|
|
|
28
28
|
const props = __props;
|
|
29
29
|
const delegatedProps = useDelegatedProps.useDelegatedProps(props, "class");
|
|
30
30
|
return (_ctx, _cache) => {
|
|
31
|
-
return
|
|
31
|
+
return No.openBlock(), No.createBlock(No.unref(index.Vh), No.mergeProps(No.unref(delegatedProps), {
|
|
32
32
|
"aria-required": _ctx.required,
|
|
33
33
|
"aria-disabled": _ctx.disabled,
|
|
34
|
-
class:
|
|
34
|
+
class: No.unref(clsx.clsx)("celeste-radio-label", props.class)
|
|
35
35
|
}), {
|
|
36
|
-
default:
|
|
37
|
-
|
|
36
|
+
default: No.withCtx(() => [
|
|
37
|
+
No.createVNode(No.unref(index.O), {
|
|
38
38
|
"as-child": "",
|
|
39
39
|
class: "celeste-radio-label-radio"
|
|
40
40
|
}, {
|
|
41
|
-
default:
|
|
42
|
-
|
|
41
|
+
default: No.withCtx(() => [
|
|
42
|
+
No.renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
43
43
|
]),
|
|
44
44
|
_: 3
|
|
45
45
|
}),
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
46
|
+
No.createElementVNode("div", _hoisted_1, [
|
|
47
|
+
No.createElementVNode("div", _hoisted_2, [
|
|
48
|
+
No.createElementVNode("div", null, [
|
|
49
|
+
No.createVNode(No.unref(index.O), {
|
|
50
50
|
as: "span",
|
|
51
51
|
class: "celeste-radio-label-label"
|
|
52
52
|
}, {
|
|
53
|
-
default:
|
|
54
|
-
|
|
53
|
+
default: No.withCtx(() => [
|
|
54
|
+
No.renderSlot(_ctx.$slots, "label", {}, void 0, true)
|
|
55
55
|
]),
|
|
56
56
|
_: 3
|
|
57
57
|
}),
|
|
58
|
-
_ctx.$slots.sublabel ? (
|
|
58
|
+
_ctx.$slots.sublabel ? (No.openBlock(), No.createBlock(No.unref(index.O), {
|
|
59
59
|
key: 0,
|
|
60
60
|
as: "span",
|
|
61
61
|
class: "celeste-radio-label-sublabel"
|
|
62
62
|
}, {
|
|
63
|
-
default:
|
|
64
|
-
|
|
63
|
+
default: No.withCtx(() => [
|
|
64
|
+
No.renderSlot(_ctx.$slots, "sublabel", {}, void 0, true)
|
|
65
65
|
]),
|
|
66
66
|
_: 3
|
|
67
|
-
})) :
|
|
67
|
+
})) : No.createCommentVNode("", true)
|
|
68
68
|
]),
|
|
69
|
-
_ctx.$slots.badge ? (
|
|
69
|
+
_ctx.$slots.badge ? (No.openBlock(), No.createBlock(No.unref(index.O), {
|
|
70
70
|
key: 0,
|
|
71
71
|
"as-child": "",
|
|
72
72
|
class: "celeste-radio-label-badge"
|
|
73
73
|
}, {
|
|
74
|
-
default:
|
|
75
|
-
|
|
74
|
+
default: No.withCtx(() => [
|
|
75
|
+
No.renderSlot(_ctx.$slots, "badge", {}, void 0, true)
|
|
76
76
|
]),
|
|
77
77
|
_: 3
|
|
78
|
-
})) :
|
|
78
|
+
})) : No.createCommentVNode("", true)
|
|
79
79
|
]),
|
|
80
|
-
|
|
81
|
-
_ctx.$slots.description ? (
|
|
80
|
+
No.createElementVNode("div", _hoisted_3, [
|
|
81
|
+
_ctx.$slots.description ? (No.openBlock(), No.createBlock(No.unref(index.O), {
|
|
82
82
|
key: 0,
|
|
83
83
|
as: "span",
|
|
84
84
|
class: "celeste-radio-label-description"
|
|
85
85
|
}, {
|
|
86
|
-
default:
|
|
87
|
-
|
|
86
|
+
default: No.withCtx(() => [
|
|
87
|
+
No.renderSlot(_ctx.$slots, "description", {}, void 0, true)
|
|
88
88
|
]),
|
|
89
89
|
_: 3
|
|
90
|
-
})) :
|
|
91
|
-
_ctx.$slots.linkButton ? (
|
|
90
|
+
})) : No.createCommentVNode("", true),
|
|
91
|
+
_ctx.$slots.linkButton ? (No.openBlock(), No.createBlock(No.unref(index.O), {
|
|
92
92
|
key: 1,
|
|
93
93
|
"as-child": "",
|
|
94
94
|
class: "celeste-radio-label-link-button"
|
|
95
95
|
}, {
|
|
96
|
-
default:
|
|
97
|
-
|
|
96
|
+
default: No.withCtx(() => [
|
|
97
|
+
No.renderSlot(_ctx.$slots, "linkButton", {}, void 0, true)
|
|
98
98
|
]),
|
|
99
99
|
_: 3
|
|
100
|
-
})) :
|
|
100
|
+
})) : No.createCommentVNode("", true)
|
|
101
101
|
])
|
|
102
102
|
])
|
|
103
103
|
]),
|
package/dist/cjs/rich-editor.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const
|
|
2
|
+
const No = require("vue");
|
|
3
3
|
const compactButton = require("./compact-button.js");
|
|
4
4
|
const selectContent = require("./select-content.js");
|
|
5
5
|
const selectIcon = require("./select-icon.js");
|
|
@@ -15,7 +15,7 @@ const extraSettings = require("./extra-settings.js");
|
|
|
15
15
|
const linkBubble = require("./link-bubble.js");
|
|
16
16
|
const _pluginVue_exportHelper = require("./chunks/_plugin-vue_export-helper.js");
|
|
17
17
|
function useDebouncedRef(value) {
|
|
18
|
-
return
|
|
18
|
+
return No.customRef((track, trigger) => {
|
|
19
19
|
return {
|
|
20
20
|
get() {
|
|
21
21
|
track();
|
|
@@ -43,7 +43,7 @@ var Editor = class extends index.Editor {
|
|
|
43
43
|
this.reactiveState.value = nextState;
|
|
44
44
|
this.reactiveExtensionStorage.value = this.extensionStorage;
|
|
45
45
|
});
|
|
46
|
-
return
|
|
46
|
+
return No.markRaw(this);
|
|
47
47
|
}
|
|
48
48
|
get state() {
|
|
49
49
|
return this.reactiveState ? this.reactiveState.value : this.view.state;
|
|
@@ -72,7 +72,7 @@ var Editor = class extends index.Editor {
|
|
|
72
72
|
return nextState;
|
|
73
73
|
}
|
|
74
74
|
};
|
|
75
|
-
var EditorContent =
|
|
75
|
+
var EditorContent = No.defineComponent({
|
|
76
76
|
name: "EditorContent",
|
|
77
77
|
props: {
|
|
78
78
|
editor: {
|
|
@@ -81,18 +81,18 @@ var EditorContent = Mo.defineComponent({
|
|
|
81
81
|
}
|
|
82
82
|
},
|
|
83
83
|
setup(props) {
|
|
84
|
-
const rootEl =
|
|
85
|
-
const instance =
|
|
86
|
-
|
|
84
|
+
const rootEl = No.ref();
|
|
85
|
+
const instance = No.getCurrentInstance();
|
|
86
|
+
No.watchEffect(() => {
|
|
87
87
|
const editor = props.editor;
|
|
88
88
|
if (editor && editor.options.element && rootEl.value) {
|
|
89
|
-
|
|
89
|
+
No.nextTick(() => {
|
|
90
90
|
var _a;
|
|
91
|
-
if (!rootEl.value || !((_a = editor.
|
|
91
|
+
if (!rootEl.value || !((_a = editor.view.dom) == null ? void 0 : _a.firstChild)) {
|
|
92
92
|
return;
|
|
93
93
|
}
|
|
94
|
-
const element =
|
|
95
|
-
rootEl.value.append(
|
|
94
|
+
const element = No.unref(rootEl.value);
|
|
95
|
+
rootEl.value.append(editor.view.dom);
|
|
96
96
|
editor.contentComponent = instance.ctx._;
|
|
97
97
|
if (instance) {
|
|
98
98
|
editor.appContext = {
|
|
@@ -110,7 +110,7 @@ var EditorContent = Mo.defineComponent({
|
|
|
110
110
|
});
|
|
111
111
|
}
|
|
112
112
|
});
|
|
113
|
-
|
|
113
|
+
No.onBeforeUnmount(() => {
|
|
114
114
|
const editor = props.editor;
|
|
115
115
|
if (!editor) {
|
|
116
116
|
return;
|
|
@@ -121,14 +121,14 @@ var EditorContent = Mo.defineComponent({
|
|
|
121
121
|
return { rootEl };
|
|
122
122
|
},
|
|
123
123
|
render() {
|
|
124
|
-
return
|
|
124
|
+
return No.h("div", {
|
|
125
125
|
ref: (el) => {
|
|
126
126
|
this.rootEl = el;
|
|
127
127
|
}
|
|
128
128
|
});
|
|
129
129
|
}
|
|
130
130
|
});
|
|
131
|
-
|
|
131
|
+
No.defineComponent({
|
|
132
132
|
name: "NodeViewContent",
|
|
133
133
|
props: {
|
|
134
134
|
as: {
|
|
@@ -137,7 +137,7 @@ Mo.defineComponent({
|
|
|
137
137
|
}
|
|
138
138
|
},
|
|
139
139
|
render() {
|
|
140
|
-
return
|
|
140
|
+
return No.h(this.as, {
|
|
141
141
|
style: {
|
|
142
142
|
whiteSpace: "pre-wrap"
|
|
143
143
|
},
|
|
@@ -145,7 +145,7 @@ Mo.defineComponent({
|
|
|
145
145
|
});
|
|
146
146
|
}
|
|
147
147
|
});
|
|
148
|
-
|
|
148
|
+
No.defineComponent({
|
|
149
149
|
name: "NodeViewWrapper",
|
|
150
150
|
props: {
|
|
151
151
|
as: {
|
|
@@ -156,7 +156,7 @@ Mo.defineComponent({
|
|
|
156
156
|
inject: ["onDragStart", "decorationClasses"],
|
|
157
157
|
render() {
|
|
158
158
|
var _a, _b;
|
|
159
|
-
return
|
|
159
|
+
return No.h(
|
|
160
160
|
this.as,
|
|
161
161
|
{
|
|
162
162
|
// @ts-ignore
|
|
@@ -172,7 +172,7 @@ Mo.defineComponent({
|
|
|
172
172
|
);
|
|
173
173
|
}
|
|
174
174
|
});
|
|
175
|
-
|
|
175
|
+
No.defineComponent({
|
|
176
176
|
name: "MarkViewContent",
|
|
177
177
|
props: {
|
|
178
178
|
as: {
|
|
@@ -181,7 +181,7 @@ Mo.defineComponent({
|
|
|
181
181
|
}
|
|
182
182
|
},
|
|
183
183
|
render() {
|
|
184
|
-
return
|
|
184
|
+
return No.h(this.as, {
|
|
185
185
|
style: {
|
|
186
186
|
whiteSpace: "inherit"
|
|
187
187
|
},
|
|
@@ -205,7 +205,7 @@ const _hoisted_6 = {
|
|
|
205
205
|
class: "extra-settings-wrapper"
|
|
206
206
|
};
|
|
207
207
|
const _hoisted_7 = { class: "text-field" };
|
|
208
|
-
const _sfc_main = /* @__PURE__ */
|
|
208
|
+
const _sfc_main = /* @__PURE__ */ No.defineComponent({
|
|
209
209
|
__name: "rich-editor",
|
|
210
210
|
props: {
|
|
211
211
|
modelValue: {
|
|
@@ -233,7 +233,7 @@ const _sfc_main = /* @__PURE__ */ Mo.defineComponent({
|
|
|
233
233
|
setup(__props, { emit: __emit }) {
|
|
234
234
|
const props = __props;
|
|
235
235
|
const emit = __emit;
|
|
236
|
-
const filteredToolbar =
|
|
236
|
+
const filteredToolbar = No.computed(() => {
|
|
237
237
|
const customToolbar = props.customToolbar;
|
|
238
238
|
if (!customToolbar || customToolbar.length === 0) {
|
|
239
239
|
return config.fullToolbar.value;
|
|
@@ -248,16 +248,16 @@ const _sfc_main = /* @__PURE__ */ Mo.defineComponent({
|
|
|
248
248
|
return toolbarMap.get(key);
|
|
249
249
|
}).filter((item) => Boolean(item));
|
|
250
250
|
});
|
|
251
|
-
const editor =
|
|
252
|
-
const showSetLinkFromToolbar =
|
|
251
|
+
const editor = No.ref();
|
|
252
|
+
const showSetLinkFromToolbar = No.ref(false);
|
|
253
253
|
function openLinkBubbleFromToolbar() {
|
|
254
254
|
showSetLinkFromToolbar.value = true;
|
|
255
255
|
}
|
|
256
|
-
const charactersCount =
|
|
256
|
+
const charactersCount = No.computed(() => {
|
|
257
257
|
var _a;
|
|
258
258
|
return ((_a = editor.value) == null ? void 0 : _a.storage.characterCount.characters()) || 0;
|
|
259
259
|
});
|
|
260
|
-
const limitWarning =
|
|
260
|
+
const limitWarning = No.computed(() => {
|
|
261
261
|
const isCloseToMaxCharacter = charactersCount.value >= props.maxLimit - 20;
|
|
262
262
|
const isMaxCharacter = charactersCount.value === props.maxLimit;
|
|
263
263
|
if (isCloseToMaxCharacter && !isMaxCharacter) {
|
|
@@ -268,14 +268,14 @@ const _sfc_main = /* @__PURE__ */ Mo.defineComponent({
|
|
|
268
268
|
}
|
|
269
269
|
return "";
|
|
270
270
|
});
|
|
271
|
-
|
|
271
|
+
No.watch(() => props.modelValue, (value) => {
|
|
272
272
|
var _a, _b;
|
|
273
273
|
if (((_a = editor.value) == null ? void 0 : _a.getHTML()) === value) {
|
|
274
274
|
return;
|
|
275
275
|
}
|
|
276
276
|
(_b = editor.value) == null ? void 0 : _b.commands.setContent(value);
|
|
277
277
|
});
|
|
278
|
-
|
|
278
|
+
No.onMounted(() => {
|
|
279
279
|
editor.value = new Editor({
|
|
280
280
|
content: props.modelValue,
|
|
281
281
|
extensions: [
|
|
@@ -315,77 +315,77 @@ const _sfc_main = /* @__PURE__ */ Mo.defineComponent({
|
|
|
315
315
|
}
|
|
316
316
|
});
|
|
317
317
|
});
|
|
318
|
-
|
|
318
|
+
No.onBeforeUnmount(() => {
|
|
319
319
|
var _a;
|
|
320
320
|
(_a = editor.value) == null ? void 0 : _a.destroy();
|
|
321
321
|
});
|
|
322
322
|
return (_ctx, _cache) => {
|
|
323
|
-
return editor.value ? (
|
|
324
|
-
|
|
325
|
-
(
|
|
326
|
-
return
|
|
327
|
-
item.type !== "divider" && !item.children ? (
|
|
323
|
+
return editor.value ? (No.openBlock(), No.createElementBlock("div", _hoisted_1, [
|
|
324
|
+
No.createElementVNode("div", _hoisted_2, [
|
|
325
|
+
(No.openBlock(true), No.createElementBlock(No.Fragment, null, No.renderList(filteredToolbar.value, (item, parentIndex) => {
|
|
326
|
+
return No.openBlock(), No.createElementBlock(No.Fragment, { key: parentIndex }, [
|
|
327
|
+
item.type !== "divider" && !item.children ? (No.openBlock(), No.createBlock(tooltip_vue_vue_type_script_setup_true_lang._sfc_main, {
|
|
328
328
|
key: 0,
|
|
329
329
|
title: item.name,
|
|
330
330
|
variant: "dark"
|
|
331
331
|
}, {
|
|
332
|
-
default:
|
|
333
|
-
|
|
332
|
+
default: No.withCtx(() => [
|
|
333
|
+
No.createVNode(compactButton, {
|
|
334
334
|
icon: `${item.icon}`,
|
|
335
335
|
variant: "ghost",
|
|
336
|
-
class:
|
|
337
|
-
onClick: ($event) =>
|
|
336
|
+
class: No.normalizeClass({ active: typeof item.active === "string" && editor.value.isActive(item.active) }),
|
|
337
|
+
onClick: ($event) => No.unref(config.onActionClick)(editor.value, item.slug, null, openLinkBubbleFromToolbar)
|
|
338
338
|
}, null, 8, ["icon", "class", "onClick"])
|
|
339
339
|
]),
|
|
340
340
|
_: 2
|
|
341
|
-
}, 1032, ["title"])) : item.type !== "divider" && item.children ? (
|
|
341
|
+
}, 1032, ["title"])) : item.type !== "divider" && item.children ? (No.openBlock(), No.createBlock(tooltip_vue_vue_type_script_setup_true_lang._sfc_main, {
|
|
342
342
|
key: 1,
|
|
343
343
|
title: item.name,
|
|
344
344
|
variant: "dark"
|
|
345
345
|
}, {
|
|
346
|
-
default:
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
"model-value":
|
|
350
|
-
"onUpdate:modelValue": ($event) =>
|
|
346
|
+
default: No.withCtx(() => [
|
|
347
|
+
No.createElementVNode("div", _hoisted_3, [
|
|
348
|
+
No.createVNode(select_vue_vue_type_script_setup_true_lang._sfc_main, {
|
|
349
|
+
"model-value": No.unref(config.selectedOption)(editor.value, item.children),
|
|
350
|
+
"onUpdate:modelValue": ($event) => No.unref(config.onActionClick)(editor.value, item.slug, $event)
|
|
351
351
|
}, {
|
|
352
|
-
default:
|
|
353
|
-
|
|
354
|
-
default:
|
|
355
|
-
|
|
352
|
+
default: No.withCtx(() => [
|
|
353
|
+
No.createVNode(selectTrigger, { variant: "inline" }, {
|
|
354
|
+
default: No.withCtx(() => [
|
|
355
|
+
No.createVNode(selectValue)
|
|
356
356
|
]),
|
|
357
357
|
_: 1
|
|
358
358
|
}),
|
|
359
|
-
|
|
359
|
+
No.createVNode(selectContent, {
|
|
360
360
|
align: "end",
|
|
361
361
|
width: "fit"
|
|
362
362
|
}, {
|
|
363
|
-
default:
|
|
364
|
-
(
|
|
365
|
-
return
|
|
363
|
+
default: No.withCtx(() => [
|
|
364
|
+
(No.openBlock(true), No.createElementBlock(No.Fragment, null, No.renderList(item.children, (child, childIndex) => {
|
|
365
|
+
return No.openBlock(), No.createBlock(selectItem, {
|
|
366
366
|
key: childIndex,
|
|
367
367
|
value: child.option
|
|
368
368
|
}, {
|
|
369
|
-
default:
|
|
370
|
-
item.slug === "color" ? (
|
|
371
|
-
|
|
372
|
-
default:
|
|
373
|
-
|
|
374
|
-
class:
|
|
375
|
-
style:
|
|
369
|
+
default: No.withCtx(() => [
|
|
370
|
+
item.slug === "color" ? (No.openBlock(), No.createElementBlock(No.Fragment, { key: 0 }, [
|
|
371
|
+
No.createVNode(selectIcon, null, {
|
|
372
|
+
default: No.withCtx(() => [
|
|
373
|
+
No.createElementVNode("i", {
|
|
374
|
+
class: No.normalizeClass(child.icon),
|
|
375
|
+
style: No.normalizeStyle({ background: child.option })
|
|
376
376
|
}, null, 6)
|
|
377
377
|
]),
|
|
378
378
|
_: 2
|
|
379
379
|
}, 1024),
|
|
380
|
-
|
|
381
|
-
], 64)) : item.slug === "align" ? (
|
|
382
|
-
default:
|
|
383
|
-
|
|
384
|
-
class:
|
|
380
|
+
No.createElementVNode("span", null, No.toDisplayString(child.name), 1)
|
|
381
|
+
], 64)) : item.slug === "align" ? (No.openBlock(), No.createBlock(selectIcon, { key: 1 }, {
|
|
382
|
+
default: No.withCtx(() => [
|
|
383
|
+
No.createElementVNode("i", {
|
|
384
|
+
class: No.normalizeClass(child.icon)
|
|
385
385
|
}, null, 2)
|
|
386
386
|
]),
|
|
387
387
|
_: 2
|
|
388
|
-
}, 1024)) : (
|
|
388
|
+
}, 1024)) : (No.openBlock(), No.createElementBlock("span", _hoisted_4, No.toDisplayString(child.name), 1))
|
|
389
389
|
]),
|
|
390
390
|
_: 2
|
|
391
391
|
}, 1032, ["value"]);
|
|
@@ -399,30 +399,30 @@ const _sfc_main = /* @__PURE__ */ Mo.defineComponent({
|
|
|
399
399
|
])
|
|
400
400
|
]),
|
|
401
401
|
_: 2
|
|
402
|
-
}, 1032, ["title"])) : (
|
|
402
|
+
}, 1032, ["title"])) : (No.openBlock(), No.createElementBlock("div", _hoisted_5))
|
|
403
403
|
], 64);
|
|
404
404
|
}), 128)),
|
|
405
|
-
__props.showExtraSettings ? (
|
|
406
|
-
_cache[1] || (_cache[1] =
|
|
407
|
-
|
|
408
|
-
])) :
|
|
405
|
+
__props.showExtraSettings ? (No.openBlock(), No.createElementBlock("div", _hoisted_6, [
|
|
406
|
+
_cache[1] || (_cache[1] = No.createElementVNode("div", { class: "divider" }, null, -1)),
|
|
407
|
+
No.createVNode(extraSettings, { editor: editor.value }, null, 8, ["editor"])
|
|
408
|
+
])) : No.createCommentVNode("", true)
|
|
409
409
|
]),
|
|
410
|
-
|
|
411
|
-
|
|
410
|
+
No.createElementVNode("div", _hoisted_7, [
|
|
411
|
+
No.createVNode(No.unref(EditorContent), { editor: editor.value }, null, 8, ["editor"])
|
|
412
412
|
]),
|
|
413
|
-
__props.maxLimit ? (
|
|
413
|
+
__props.maxLimit ? (No.openBlock(), No.createElementBlock("div", {
|
|
414
414
|
key: 0,
|
|
415
|
-
class:
|
|
415
|
+
class: No.normalizeClass(["characters-count", {
|
|
416
416
|
warning: limitWarning.value === "warning",
|
|
417
417
|
danger: limitWarning.value === "danger"
|
|
418
418
|
}])
|
|
419
|
-
},
|
|
420
|
-
|
|
419
|
+
}, No.toDisplayString(charactersCount.value) + "/" + No.toDisplayString(__props.maxLimit), 3)) : No.createCommentVNode("", true),
|
|
420
|
+
No.createVNode(linkBubble, {
|
|
421
421
|
editor: editor.value,
|
|
422
422
|
"show-set-link-from-toolbar": showSetLinkFromToolbar.value,
|
|
423
423
|
onSetLinkClosed: _cache[0] || (_cache[0] = ($event) => showSetLinkFromToolbar.value = false)
|
|
424
424
|
}, null, 8, ["editor", "show-set-link-from-toolbar"])
|
|
425
|
-
])) :
|
|
425
|
+
])) : No.createCommentVNode("", true);
|
|
426
426
|
};
|
|
427
427
|
}
|
|
428
428
|
});
|
package/dist/cjs/scroll-bar.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: "scroll-bar",
|
|
9
9
|
props: {
|
|
10
10
|
orientation: { default: "vertical" },
|
|
@@ -15,21 +15,21 @@ const _sfc_main = /* @__PURE__ */ Mo.defineComponent({
|
|
|
15
15
|
},
|
|
16
16
|
setup(__props) {
|
|
17
17
|
const props = __props;
|
|
18
|
-
const delegatedProps =
|
|
18
|
+
const delegatedProps = No.computed(() => {
|
|
19
19
|
const { class: _, ...delegated } = props;
|
|
20
20
|
return delegated;
|
|
21
21
|
});
|
|
22
22
|
return (_ctx, _cache) => {
|
|
23
|
-
return
|
|
24
|
-
class:
|
|
23
|
+
return No.openBlock(), No.createBlock(No.unref(index.Ny), No.mergeProps(delegatedProps.value, {
|
|
24
|
+
class: No.unref(clsx.clsx)(
|
|
25
25
|
"flex touch-none select-none transition-colors",
|
|
26
26
|
_ctx.orientation === "vertical" && "h-full w-1.5 border-l border-l-transparent p-px",
|
|
27
27
|
_ctx.orientation === "horizontal" && "h-1.5 flex-col border-t border-t-transparent p-px",
|
|
28
28
|
props.class
|
|
29
29
|
)
|
|
30
30
|
}), {
|
|
31
|
-
default:
|
|
32
|
-
|
|
31
|
+
default: No.withCtx(() => [
|
|
32
|
+
No.createVNode(No.unref(index.Ly), { class: "thumb relative flex-1 rounded-full" })
|
|
33
33
|
]),
|
|
34
34
|
_: 1
|
|
35
35
|
}, 16, ["class"]);
|