@oneclick.dev/cms-kit 0.0.56 → 0.0.57
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/cms-kit.cjs +2 -2
- package/dist/cms-kit.js +9 -22
- package/package.json +1 -1
package/dist/cms-kit.js
CHANGED
|
@@ -69322,11 +69322,7 @@ const _hoisted_1$7$1 = [
|
|
|
69322
69322
|
"data-expanded",
|
|
69323
69323
|
"data-testid"
|
|
69324
69324
|
];
|
|
69325
|
-
const _hoisted_2$2$2 = [
|
|
69326
|
-
"aria-label",
|
|
69327
|
-
"data-disabled",
|
|
69328
|
-
"data-close-button-position"
|
|
69329
|
-
];
|
|
69325
|
+
const _hoisted_2$2$2 = ["aria-label", "data-disabled"];
|
|
69330
69326
|
var Toast_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
69331
69327
|
__name: "Toast",
|
|
69332
69328
|
props: {
|
|
@@ -69339,7 +69335,6 @@ var Toast_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineCo
|
|
|
69339
69335
|
heights: {},
|
|
69340
69336
|
gap: {},
|
|
69341
69337
|
position: {},
|
|
69342
|
-
closeButtonPosition: {},
|
|
69343
69338
|
visibleToasts: {},
|
|
69344
69339
|
expandByDefault: { type: Boolean },
|
|
69345
69340
|
closeButton: { type: Boolean },
|
|
@@ -69611,13 +69606,9 @@ var Toast_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineCo
|
|
|
69611
69606
|
"aria-label": _ctx.closeButtonAriaLabel || "Close toast",
|
|
69612
69607
|
"data-disabled": disabled.value,
|
|
69613
69608
|
"data-close-button": "true",
|
|
69614
|
-
"data-close-button-position": _ctx.closeButtonPosition,
|
|
69615
69609
|
class: normalizeClass(unref(cn$1)((_g = _ctx.classes) == null ? void 0 : _g.closeButton, (_i2 = (_h = _ctx.toast) == null ? void 0 : _h.classes) == null ? void 0 : _i2.closeButton)),
|
|
69616
69610
|
onClick: handleCloseToast
|
|
69617
|
-
}, [((_j = _ctx.icons) == null ? void 0 : _j.close) ? (openBlock(), createBlock(resolveDynamicComponent((_k = _ctx.icons) == null ? void 0 : _k.close), { key: 0 })) : renderSlot(_ctx.$slots, "close-icon", { key: 1 })], 10, _hoisted_2$2$2)) : createCommentVNode("v-if", true), _ctx.toast.component ? (openBlock(), createBlock(resolveDynamicComponent(_ctx.toast.component), mergeProps({ key: 1 }, _ctx.toast.componentProps, {
|
|
69618
|
-
onCloseToast: handleCloseToast,
|
|
69619
|
-
isPaused: _ctx.$props.expanded || _ctx.$props.interacting || unref(isDocumentHidden)
|
|
69620
|
-
}), null, 16, ["isPaused"])) : (openBlock(), createElementBlock(Fragment, { key: 2 }, [
|
|
69611
|
+
}, [((_j = _ctx.icons) == null ? void 0 : _j.close) ? (openBlock(), createBlock(resolveDynamicComponent((_k = _ctx.icons) == null ? void 0 : _k.close), { key: 0 })) : renderSlot(_ctx.$slots, "close-icon", { key: 1 })], 10, _hoisted_2$2$2)) : createCommentVNode("v-if", true), _ctx.toast.component ? (openBlock(), createBlock(resolveDynamicComponent(_ctx.toast.component), mergeProps({ key: 1 }, _ctx.toast.componentProps, { onCloseToast: handleCloseToast }), null, 16)) : (openBlock(), createElementBlock(Fragment, { key: 2 }, [
|
|
69621
69612
|
toastType.value !== "default" || _ctx.toast.icon || _ctx.toast.promise ? (openBlock(), createElementBlock("div", {
|
|
69622
69613
|
key: 0,
|
|
69623
69614
|
"data-icon": "",
|
|
@@ -69812,7 +69803,6 @@ var Toaster_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ define
|
|
|
69812
69803
|
},
|
|
69813
69804
|
theme: { default: "light" },
|
|
69814
69805
|
position: { default: "bottom-right" },
|
|
69815
|
-
closeButtonPosition: { default: "top-left" },
|
|
69816
69806
|
hotkey: { default: () => ["altKey", "KeyT"] },
|
|
69817
69807
|
richColors: {
|
|
69818
69808
|
type: Boolean,
|
|
@@ -70066,7 +70056,7 @@ var Toaster_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ define
|
|
|
70066
70056
|
onPointerdown: onPointerDown,
|
|
70067
70057
|
onPointerup: handlePointerUp
|
|
70068
70058
|
}), [(openBlock(true), createElementBlock(Fragment, null, renderList(filteredToasts(pos, index), (toast$1, idx) => {
|
|
70069
|
-
var _a3, _b, _c, _d, _e2, _f, _g, _h, _i2, _j
|
|
70059
|
+
var _a3, _b, _c, _d, _e2, _f, _g, _h, _i2, _j;
|
|
70070
70060
|
return openBlock(), createBlock(Toast_default, {
|
|
70071
70061
|
key: toast$1.id,
|
|
70072
70062
|
heights: heights.value,
|
|
@@ -70082,13 +70072,12 @@ var Toaster_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ define
|
|
|
70082
70072
|
closeButton: ((_d = _ctx.toastOptions) == null ? void 0 : _d.closeButton) ?? _ctx.closeButton,
|
|
70083
70073
|
interacting: interacting.value,
|
|
70084
70074
|
position: pos,
|
|
70085
|
-
|
|
70086
|
-
|
|
70087
|
-
|
|
70088
|
-
|
|
70089
|
-
|
|
70090
|
-
|
|
70091
|
-
"close-button-aria-label": (_k = _ctx.toastOptions) == null ? void 0 : _k.closeButtonAriaLabel,
|
|
70075
|
+
style: normalizeStyle((_e2 = _ctx.toastOptions) == null ? void 0 : _e2.style),
|
|
70076
|
+
unstyled: (_f = _ctx.toastOptions) == null ? void 0 : _f.unstyled,
|
|
70077
|
+
classes: (_g = _ctx.toastOptions) == null ? void 0 : _g.classes,
|
|
70078
|
+
cancelButtonStyle: (_h = _ctx.toastOptions) == null ? void 0 : _h.cancelButtonStyle,
|
|
70079
|
+
actionButtonStyle: (_i2 = _ctx.toastOptions) == null ? void 0 : _i2.actionButtonStyle,
|
|
70080
|
+
"close-button-aria-label": (_j = _ctx.toastOptions) == null ? void 0 : _j.closeButtonAriaLabel,
|
|
70092
70081
|
toasts: toastsByPosition.value[pos],
|
|
70093
70082
|
expandByDefault: _ctx.expand,
|
|
70094
70083
|
gap: _ctx.gap,
|
|
@@ -70119,7 +70108,6 @@ var Toaster_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ define
|
|
|
70119
70108
|
"closeButton",
|
|
70120
70109
|
"interacting",
|
|
70121
70110
|
"position",
|
|
70122
|
-
"closeButtonPosition",
|
|
70123
70111
|
"style",
|
|
70124
70112
|
"unstyled",
|
|
70125
70113
|
"classes",
|
|
@@ -133871,7 +133859,6 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
133871
133859
|
invert: { type: Boolean },
|
|
133872
133860
|
theme: {},
|
|
133873
133861
|
position: {},
|
|
133874
|
-
closeButtonPosition: {},
|
|
133875
133862
|
hotkey: {},
|
|
133876
133863
|
richColors: { type: Boolean },
|
|
133877
133864
|
expand: { type: Boolean },
|