@codeandfunction/callaloo 4.7.4 → 4.7.5
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/callaloo.global.js +1 -1
- package/dist/chunks/{CLA11yButton.vue_vue_type_style_index_0_lang-fn1ix3QX.js → CLA11yButton.vue_vue_type_style_index_0_lang-zGLnnSIW.js} +1 -1
- package/dist/chunks/{CLButton.vue_vue_type_style_index_0_lang-D0vMBs0W.js → CLButton.vue_vue_type_style_index_0_lang-MvhnNzVW.js} +3 -3
- package/dist/chunks/{CLCard.vue_vue_type_style_index_0_lang-CfB_Fpy5.js → CLCard.vue_vue_type_style_index_0_lang-Sre7UYZd.js} +5 -5
- package/dist/chunks/{CLFormLabel.vue_vue_type_script_setup_true_lang-BcHOofhM.js → CLFormLabel.vue_vue_type_script_setup_true_lang-CIQxM6aH.js} +1 -1
- package/dist/chunks/{CLHeading.vue_vue_type_style_index_0_lang-DntAR1dI.js → CLHeading.vue_vue_type_style_index_0_lang-DH5oJc1C.js} +1 -1
- package/dist/chunks/{CLIcon.vue_vue_type_style_index_0_lang-CzJDIguL.js → CLIcon.vue_vue_type_style_index_0_lang-Dhr2tI-g.js} +1 -1
- package/dist/chunks/{CLInputMessages.vue_vue_type_style_index_0_lang-CF_lxNr8.js → CLInputMessages.vue_vue_type_style_index_0_lang-DTWvAACK.js} +1 -1
- package/dist/chunks/{CLLink.vue_vue_type_style_index_0_lang-CZZm1duI.js → CLLink.vue_vue_type_style_index_0_lang-BXysZqLn.js} +2 -2
- package/dist/chunks/{CLNavLink.vue_vue_type_script_setup_true_lang-BEBTiI0u.js → CLNavLink.vue_vue_type_script_setup_true_lang-Dhnmfa9W.js} +1 -1
- package/dist/chunks/{CLPill.vue_vue_type_style_index_0_lang-Eh8_1A7g.js → CLPill.vue_vue_type_style_index_0_lang-BQim03ge.js} +3 -3
- package/dist/chunks/{CLSkeleton.vue_vue_type_style_index_0_lang-DO-kZ629.js → CLSkeleton.vue_vue_type_style_index_0_lang-DduoX6Cu.js} +1 -1
- package/dist/chunks/{CLSpinner.vue_vue_type_style_index_0_lang-ByLBkPr8.js → CLSpinner.vue_vue_type_style_index_0_lang-DlXqnsi8.js} +1 -1
- package/dist/chunks/{CLText.vue_vue_type_style_index_0_lang-DVwTAVXM.js → CLText.vue_vue_type_style_index_0_lang-B-L8ECJL.js} +1 -1
- package/dist/chunks/CLThemeProvider.vue_vue_type_script_setup_true_lang-jaJYKZL8.js +59 -0
- package/dist/chunks/{CLToast.vue_vue_type_style_index_0_lang-BYHaeCZV.js → CLToast.vue_vue_type_style_index_0_lang-CzSDeL_X.js} +4 -4
- package/dist/chunks/CLToastProvider.vue_vue_type_script_setup_true_lang-DkGK0H4Z.js +35 -0
- package/dist/chunks/{base-theme--kHiV8Yr.js → context-CEvx70FY.js} +36 -47
- package/dist/chunks/context-dkA4VoF7.js +4 -0
- package/dist/chunks/magic-string.es-uPKorP4O.js +663 -0
- package/dist/chunks/{utils-C9p9W8oE.js → utils-BfOa9ckr.js} +1 -1
- package/dist/chunks/{utils-Dp9v2LTO.js → utils-BjZURPWx.js} +1 -1
- package/dist/chunks/{utils-DvIHDaPn.js → utils-C1xiySYN.js} +1 -1
- package/dist/chunks/{utils-DtSQZ0tk.js → utils-D00IXMTR.js} +1 -1
- package/dist/chunks/{utils-BFZ8uebw.js → utils-eBt2zUZl.js} +1 -1
- package/dist/chunks/{utils-BT2IMc_A.js → utils-nD3K7jh9.js} +1 -1
- package/dist/chunks/vue-test-utils.esm-bundler-BeQTU4qG.js +18679 -0
- package/dist/components/Buttons/CLA11yButton/CLA11yButton.js +1 -1
- package/dist/components/Buttons/CLButton/CLButton.js +1 -1
- package/dist/components/CLIcon/CLIcon.js +1 -1
- package/dist/components/CLTable/CLTable.js +2 -2
- package/dist/components/Containers/CLCard/CLCard.js +1 -1
- package/dist/components/Containers/CLCarousel/CLCarousel.js +2 -2
- package/dist/components/Containers/CLDisclosure/CLDisclosure.js +5 -5
- package/dist/components/Containers/CLDrawer/CLDrawer.js +1 -1
- package/dist/components/Form/CLCheckbox/CLCheckbox.js +3 -3
- package/dist/components/Form/CLInput/CLInput.js +5 -5
- package/dist/components/Form/CLRadioButton/CLRadioButton.js +2 -2
- package/dist/components/Form/CLSelect/CLSelect.js +3 -3
- package/dist/components/Form/CLTextArea/CLTextArea.js +2 -2
- package/dist/components/Indicators/CLBadge/CLBadge.js +1 -1
- package/dist/components/Indicators/CLBanner/CLBanner.js +6 -6
- package/dist/components/Indicators/CLPill/CLPill.js +1 -1
- package/dist/components/Indicators/CLProgress/CLProgress.js +2 -2
- package/dist/components/Loading/CLSkeleton/CLSkeleton.js +1 -1
- package/dist/components/Loading/CLSpinner/CLSpinner.js +1 -1
- package/dist/components/Modals/CLModal/CLModal.js +3 -3
- package/dist/components/Navigation/CLLink/CLLink.js +1 -1
- package/dist/components/Navigation/CLNavLink/CLNavLink.js +1 -1
- package/dist/components/Navigation/CLNavSection/CLNavSection.js +2 -2
- package/dist/components/Popups/CLDropdownMenu/CLDropdownMenu.js +2 -2
- package/dist/components/Popups/CLToast/CLToast.js +1 -1
- package/dist/components/Providers/CLThemeProvider/CLThemeProvider.js +6 -58
- package/dist/components/Providers/CLThemeProvider/base-theme.d.ts +7 -6
- package/dist/components/Providers/CLThemeProvider/context.d.ts +13 -0
- package/dist/components/Providers/CLThemeProvider/index.d.ts +1 -0
- package/dist/components/Providers/CLToastProvider/CLToastProvider.js +5 -44
- package/dist/components/Providers/CLToastProvider/context.d.ts +8 -0
- package/dist/components/Providers/CLToastProvider/index.d.ts +1 -0
- package/dist/components/Typography/CLHeading/CLHeading.js +1 -1
- package/dist/components/Typography/CLText/CLText.js +1 -1
- package/dist/composables/useTheme.d.ts +4 -14
- package/dist/composables/useTheme.js +38 -29
- package/dist/composables/useTheme.spec.js +88 -0
- package/dist/composables/useToast.d.ts +2 -2
- package/dist/composables/useToast.js +9 -6
- package/dist/composables/useToast.spec.js +45 -0
- package/dist/test-setup.d.ts +1 -0
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import '../components/Buttons/CLA11yButton/CLA11yButton.css';
|
|
2
2
|
import { defineComponent as y, ref as b, computed as p, createElementBlock as k, openBlock as C, withKeys as B, normalizeStyle as E, normalizeClass as x, unref as d, renderSlot as A } from "vue";
|
|
3
3
|
import { CLColors as _ } from "../index.js";
|
|
4
|
-
import { a as g } from "./utils-
|
|
4
|
+
import { a as g } from "./utils-C1xiySYN.js";
|
|
5
5
|
const h = ["data-testid", "tabindex"], w = /* @__PURE__ */ y({
|
|
6
6
|
name: "CLA11yButton",
|
|
7
7
|
__name: "CLA11yButton",
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import '../components/Buttons/CLButton/CLButton.css';
|
|
2
2
|
import { defineComponent as $, useSlots as C, ref as h, computed as L, onMounted as B, nextTick as z, createBlock as n, openBlock as o, resolveDynamicComponent as S, normalizeStyle as g, normalizeClass as s, unref as i, withCtx as k, createCommentVNode as d, createElementBlock as X, renderSlot as w } from "vue";
|
|
3
|
-
import { _ as c } from "./CLIcon.vue_vue_type_style_index_0_lang-
|
|
4
|
-
import { _ as R } from "./CLSpinner.vue_vue_type_style_index_0_lang-
|
|
3
|
+
import { _ as c } from "./CLIcon.vue_vue_type_style_index_0_lang-Dhr2tI-g.js";
|
|
4
|
+
import { _ as R } from "./CLSpinner.vue_vue_type_style_index_0_lang-DlXqnsi8.js";
|
|
5
5
|
import { CLColorVariants as A, CLButtonTypes as T, CLLinkTarget as F, CLSizes as l, CLIconSizes as I, CLColors as x, CLAlign as m, CLPosition as M } from "../index.js";
|
|
6
|
-
import { b as N } from "./utils-
|
|
6
|
+
import { b as N } from "./utils-C1xiySYN.js";
|
|
7
7
|
import { useHasSlotContent as V } from "../composables/useHasSlotContent.js";
|
|
8
8
|
const J = /* @__PURE__ */ $({
|
|
9
9
|
name: "CLButton",
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import '../components/Containers/CLCard/CLCard.css';
|
|
2
2
|
import { defineComponent as W, useSlots as V, ref as k, computed as I, onMounted as z, nextTick as F, createElementBlock as c, openBlock as i, withKeys as K, normalizeStyle as v, normalizeClass as n, unref as l, createCommentVNode as d, createElementVNode as u, createBlock as r, renderSlot as s, Fragment as M, withCtx as b, createTextVNode as C, toDisplayString as L } from "vue";
|
|
3
|
-
import { _ as S } from "./CLHeading.vue_vue_type_style_index_0_lang-
|
|
4
|
-
import { _ as q } from "./CLLink.vue_vue_type_style_index_0_lang-
|
|
5
|
-
import { _ as g } from "./CLSkeleton.vue_vue_type_style_index_0_lang-
|
|
6
|
-
import { _ as D } from "./CLText.vue_vue_type_style_index_0_lang-
|
|
3
|
+
import { _ as S } from "./CLHeading.vue_vue_type_style_index_0_lang-DH5oJc1C.js";
|
|
4
|
+
import { _ as q } from "./CLLink.vue_vue_type_style_index_0_lang-BXysZqLn.js";
|
|
5
|
+
import { _ as g } from "./CLSkeleton.vue_vue_type_style_index_0_lang-DduoX6Cu.js";
|
|
6
|
+
import { _ as D } from "./CLText.vue_vue_type_style_index_0_lang-B-L8ECJL.js";
|
|
7
7
|
import { CLColorVariants as R, CLCardTypes as G, CLHeadingTypes as j, CLHeadingLevels as J, CLLinkTarget as P, CLOverflow as Q, CLLoading as U, CLColors as X, CLAlign as Y, CLOrder as A, CLTextTypes as Z } from "../index.js";
|
|
8
|
-
import { c as p } from "./utils-
|
|
8
|
+
import { c as p } from "./utils-BjZURPWx.js";
|
|
9
9
|
import { useHasSlotContent as _ } from "../composables/useHasSlotContent.js";
|
|
10
10
|
const ee = ["data-testid", "tabindex"], ae = ["alt", "loading", "src"], te = {
|
|
11
11
|
key: 0,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as r, createElementBlock as i, openBlock as o, normalizeClass as a, createVNode as m, unref as n, withCtx as c, createTextVNode as d, toDisplayString as f } from "vue";
|
|
2
|
-
import { _ as X } from "./CLText.vue_vue_type_style_index_0_lang-
|
|
2
|
+
import { _ as X } from "./CLText.vue_vue_type_style_index_0_lang-B-L8ECJL.js";
|
|
3
3
|
import { CLSizes as e, CLTextTypes as l } from "../index.js";
|
|
4
4
|
const L = ["for", "data-testid"], S = /* @__PURE__ */ r({
|
|
5
5
|
name: "CLFormLabel",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import '../components/Typography/CLHeading/CLHeading.css';
|
|
2
2
|
import { defineComponent as i, computed as r, createBlock as u, openBlock as f, resolveDynamicComponent as p, unref as o, normalizeStyle as m, normalizeClass as g, withCtx as C, renderSlot as y } from "vue";
|
|
3
3
|
import { CLHeadingTypes as l, CLColors as $, CLAlign as L, CLHeadingLevels as n } from "../index.js";
|
|
4
|
-
import { t as h } from "./utils-
|
|
4
|
+
import { t as h } from "./utils-eBt2zUZl.js";
|
|
5
5
|
const b = /* @__PURE__ */ i({
|
|
6
6
|
name: "CLHeading",
|
|
7
7
|
__name: "CLHeading",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import '../components/CLIcon/CLIcon.css';
|
|
2
2
|
import { defineComponent as X, ref as M, computed as m, watch as _, onMounted as $, createElementBlock as v, openBlock as y, normalizeStyle as b, normalizeClass as L, unref as f, createElementVNode as N } from "vue";
|
|
3
3
|
import { CLMode as C, CLColors as E, CLColorVariants as k, CLIconSizes as o } from "../index.js";
|
|
4
|
-
import { g as T } from "./utils-
|
|
4
|
+
import { g as T } from "./utils-D00IXMTR.js";
|
|
5
5
|
import { useTheme as V } from "../composables/useTheme.js";
|
|
6
6
|
import { i as x } from "./helper-qUkciePY.js";
|
|
7
7
|
const q = ({ color: s = E.Neutral }) => {
|
|
@@ -2,7 +2,7 @@ import '../assets/CLInputMessages.css';
|
|
|
2
2
|
import { defineComponent as D, createElementBlock as w, openBlock as $, normalizeClass as y, unref as S, renderSlot as T, Fragment as q, renderList as P, normalizeStyle as G, createElementVNode as O, toDisplayString as A } from "vue";
|
|
3
3
|
import { CLOrientation as z, CLMode as n, CLColorVariants as a, CLColors as F } from "../index.js";
|
|
4
4
|
import { useTheme as v } from "../composables/useTheme.js";
|
|
5
|
-
import { g as u } from "./utils-
|
|
5
|
+
import { g as u } from "./utils-D00IXMTR.js";
|
|
6
6
|
const f = "clll-form-field", R = /* @__PURE__ */ D({
|
|
7
7
|
__name: "CLFormField",
|
|
8
8
|
props: {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import '../components/Navigation/CLLink/CLLink.css';
|
|
2
2
|
import { defineComponent as k, computed as C, createElementBlock as x, openBlock as s, normalizeStyle as L, normalizeClass as b, unref as n, renderSlot as h, createBlock as v, createCommentVNode as y } from "vue";
|
|
3
|
-
import { _ as g } from "./CLIcon.vue_vue_type_style_index_0_lang-
|
|
3
|
+
import { _ as g } from "./CLIcon.vue_vue_type_style_index_0_lang-Dhr2tI-g.js";
|
|
4
4
|
import { CLMode as d, CLColors as u, CLColorVariants as $, CLLinkTarget as B, CLIconSizes as z, CLIconNames as I } from "../index.js";
|
|
5
|
-
import { g as S } from "./utils-
|
|
5
|
+
import { g as S } from "./utils-D00IXMTR.js";
|
|
6
6
|
import { useTheme as D } from "../composables/useTheme.js";
|
|
7
7
|
const H = ({
|
|
8
8
|
color: e = u.Primary,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as i, createBlock as o, openBlock as c, unref as d, withCtx as f, renderSlot as m } from "vue";
|
|
2
|
-
import { _ as u } from "./CLLink.vue_vue_type_style_index_0_lang-
|
|
2
|
+
import { _ as u } from "./CLLink.vue_vue_type_style_index_0_lang-BXysZqLn.js";
|
|
3
3
|
import { CLColors as k } from "../index.js";
|
|
4
4
|
const x = /* @__PURE__ */ i({
|
|
5
5
|
name: "CLNavLink",
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import '../components/Indicators/CLPill/CLPill.css';
|
|
2
2
|
import { defineComponent as y, computed as s, createElementBlock as i, openBlock as a, Fragment as h, createCommentVNode as o, createBlock as r, normalizeStyle as m, normalizeClass as c, unref as t, createElementVNode as u, toDisplayString as d, withCtx as z } from "vue";
|
|
3
|
-
import { _ as B } from "./CLButton.vue_vue_type_style_index_0_lang-
|
|
4
|
-
import { _ as f } from "./CLIcon.vue_vue_type_style_index_0_lang-
|
|
3
|
+
import { _ as B } from "./CLButton.vue_vue_type_style_index_0_lang-MvhnNzVW.js";
|
|
4
|
+
import { _ as f } from "./CLIcon.vue_vue_type_style_index_0_lang-Dhr2tI-g.js";
|
|
5
5
|
import { CLColorVariants as b, CLColors as L, CLIconSizes as $ } from "../index.js";
|
|
6
|
-
import { p as C } from "./utils-
|
|
6
|
+
import { p as C } from "./utils-nD3K7jh9.js";
|
|
7
7
|
const x = ["data-testid"], E = /* @__PURE__ */ y({
|
|
8
8
|
name: "CLPill",
|
|
9
9
|
__name: "CLPill",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import '../components/Loading/CLSkeleton/CLSkeleton.css';
|
|
2
2
|
import { defineComponent as d, computed as a, createElementBlock as r, openBlock as i, normalizeStyle as u, normalizeClass as c, unref as n, createElementVNode as m } from "vue";
|
|
3
|
-
import { s as f } from "./utils-
|
|
3
|
+
import { s as f } from "./utils-BfOa9ckr.js";
|
|
4
4
|
const h = ["data-testid"], $ = /* @__PURE__ */ d({
|
|
5
5
|
name: "CLSkeleton",
|
|
6
6
|
__name: "CLSkeleton",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import '../components/Loading/CLSpinner/CLSpinner.css';
|
|
2
2
|
import { defineComponent as d, computed as n, createElementBlock as r, openBlock as i, normalizeStyle as u, normalizeClass as c, unref as o, createElementVNode as a } from "vue";
|
|
3
3
|
import { CLSizes as f, CLPosition as C, CLColors as $, CLAlign as z } from "../index.js";
|
|
4
|
-
import { a as L } from "./utils-
|
|
4
|
+
import { a as L } from "./utils-BfOa9ckr.js";
|
|
5
5
|
const _ = ["data-testid"], h = /* @__PURE__ */ d({
|
|
6
6
|
name: "CLSpinner",
|
|
7
7
|
__name: "CLSpinner",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import '../components/Typography/CLText/CLText.css';
|
|
2
2
|
import { defineComponent as d, computed as n, createBlock as r, openBlock as f, resolveDynamicComponent as c, normalizeStyle as m, normalizeClass as u, unref as o, withCtx as i, renderSlot as p } from "vue";
|
|
3
3
|
import { CLTextTypes as y, CLColors as $, CLAlign as C } from "../index.js";
|
|
4
|
-
import { t as x } from "./utils-
|
|
4
|
+
import { t as x } from "./utils-eBt2zUZl.js";
|
|
5
5
|
const L = /* @__PURE__ */ d({
|
|
6
6
|
name: "CLText",
|
|
7
7
|
__name: "CLText",
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { defineComponent as c, provide as u, onMounted as h, onBeforeUnmount as D, watch as a, createBlock as C, openBlock as M, resolveDynamicComponent as g, normalizeStyle as k, unref as y, withCtx as v, renderSlot as p } from "vue";
|
|
2
|
+
import { s as w, T as B, D as F } from "./context-CEvx70FY.js";
|
|
3
|
+
import { i, b as T } from "./helper-qUkciePY.js";
|
|
4
|
+
const S = /* @__PURE__ */ c({
|
|
5
|
+
__name: "CLThemeProvider",
|
|
6
|
+
props: {
|
|
7
|
+
tag: { default: "div" },
|
|
8
|
+
themeConfig: {},
|
|
9
|
+
autoDetectDarkMode: { type: Boolean, default: !0 }
|
|
10
|
+
},
|
|
11
|
+
setup(o) {
|
|
12
|
+
const t = o, d = w(t.themeConfig);
|
|
13
|
+
u(B, d);
|
|
14
|
+
const { setBorderRadius: l, setColors: m, setDarkMode: s, setFontFamily: f } = d;
|
|
15
|
+
let r = null;
|
|
16
|
+
const n = () => {
|
|
17
|
+
if (t.autoDetectDarkMode && i) {
|
|
18
|
+
const e = T();
|
|
19
|
+
s(e);
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
return h(() => {
|
|
23
|
+
t.autoDetectDarkMode && i && (n(), r = window.matchMedia("(prefers-color-scheme: dark)"), r.addEventListener("change", n));
|
|
24
|
+
}), D(() => {
|
|
25
|
+
r && i && r.removeEventListener("change", n);
|
|
26
|
+
}), a(
|
|
27
|
+
() => t.themeConfig?.borderRadius,
|
|
28
|
+
(e) => {
|
|
29
|
+
l(e);
|
|
30
|
+
}
|
|
31
|
+
), a(
|
|
32
|
+
() => t.themeConfig?.colors,
|
|
33
|
+
(e) => {
|
|
34
|
+
e && m(e);
|
|
35
|
+
}
|
|
36
|
+
), a(
|
|
37
|
+
() => t.themeConfig?.darkMode,
|
|
38
|
+
(e) => {
|
|
39
|
+
e !== void 0 && !t.autoDetectDarkMode && s(e);
|
|
40
|
+
}
|
|
41
|
+
), a(
|
|
42
|
+
() => t.themeConfig?.fontFamily,
|
|
43
|
+
(e) => {
|
|
44
|
+
f(e);
|
|
45
|
+
}
|
|
46
|
+
), (e, E) => (M(), C(g(o.tag), {
|
|
47
|
+
class: "clll-theme-provider",
|
|
48
|
+
style: k({ "--clll-font-family": o.themeConfig?.fontFamily || y(F).fontFamily, "--clll-default-radius": o.themeConfig?.borderRadius ? `var(--clll-${o.themeConfig.borderRadius})` : void 0 })
|
|
49
|
+
}, {
|
|
50
|
+
default: v(() => [
|
|
51
|
+
p(e.$slots, "default")
|
|
52
|
+
]),
|
|
53
|
+
_: 3
|
|
54
|
+
}, 8, ["style"]));
|
|
55
|
+
}
|
|
56
|
+
});
|
|
57
|
+
export {
|
|
58
|
+
S as _
|
|
59
|
+
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import '../components/Popups/CLToast/CLToast.css';
|
|
2
2
|
import { defineComponent as q, ref as n, computed as G, watch as J, onMounted as K, onUnmounted as O, onBeforeUnmount as Q, createElementBlock as D, openBlock as h, normalizeStyle as W, normalizeClass as c, unref as a, createElementVNode as y, createCommentVNode as $, createVNode as M, createBlock as A, withCtx as B, createTextVNode as S, toDisplayString as N } from "vue";
|
|
3
|
-
import { _ } from "./CLButton.vue_vue_type_style_index_0_lang-
|
|
4
|
-
import { _ as X } from "./CLIcon.vue_vue_type_style_index_0_lang-
|
|
5
|
-
import { _ as H } from "./CLText.vue_vue_type_style_index_0_lang-
|
|
3
|
+
import { _ } from "./CLButton.vue_vue_type_style_index_0_lang-MvhnNzVW.js";
|
|
4
|
+
import { _ as X } from "./CLIcon.vue_vue_type_style_index_0_lang-Dhr2tI-g.js";
|
|
5
|
+
import { _ as H } from "./CLText.vue_vue_type_style_index_0_lang-B-L8ECJL.js";
|
|
6
6
|
import { CLColorVariants as x, CLMode as C, CLColors as g, CLToastPosition as Y, CLIconSizes as P, CLTextTypes as I, CLSizes as ee, CLIconNames as te } from "../index.js";
|
|
7
7
|
import { i as U, g as oe, a as ae } from "./helper-qUkciePY.js";
|
|
8
8
|
import { useEsc as se } from "../composables/useEsc.js";
|
|
9
|
-
import { g as Z } from "./utils-
|
|
9
|
+
import { g as Z } from "./utils-D00IXMTR.js";
|
|
10
10
|
import { useTheme as ie } from "../composables/useTheme.js";
|
|
11
11
|
const le = ({ color: t }) => {
|
|
12
12
|
const { colors: e, darkMode: m } = ie(), i = Z({
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { defineComponent as m, ref as t, provide as l, createElementBlock as c, openBlock as a, createBlock as u, createCommentVNode as p, renderSlot as v, unref as f, mergeProps as _ } from "vue";
|
|
2
|
+
import { _ as T } from "./CLToast.vue_vue_type_style_index_0_lang-CzSDeL_X.js";
|
|
3
|
+
import { T as b } from "./context-dkA4VoF7.js";
|
|
4
|
+
const h = { class: "clll-toast-provider" }, y = /* @__PURE__ */ m({
|
|
5
|
+
name: "CLToastProvider",
|
|
6
|
+
__name: "CLToastProvider",
|
|
7
|
+
props: {
|
|
8
|
+
borderRadius: {},
|
|
9
|
+
dismissTimer: {},
|
|
10
|
+
position: {}
|
|
11
|
+
},
|
|
12
|
+
setup(n) {
|
|
13
|
+
const o = n, i = t({}), s = t(!1), d = (e) => {
|
|
14
|
+
i.value = {
|
|
15
|
+
...e,
|
|
16
|
+
borderRadius: e.borderRadius ?? o.borderRadius,
|
|
17
|
+
dismissTimer: e.dismissTimer ?? o.dismissTimer,
|
|
18
|
+
position: e.position ?? o.position
|
|
19
|
+
}, s.value = !0;
|
|
20
|
+
}, r = () => {
|
|
21
|
+
s.value = !1, i.value = {};
|
|
22
|
+
};
|
|
23
|
+
return l(b, {
|
|
24
|
+
visible: s,
|
|
25
|
+
showToast: d,
|
|
26
|
+
hideToast: r
|
|
27
|
+
}), (e, k) => (a(), c("div", h, [
|
|
28
|
+
s.value ? (a(), u(f(T), _({ key: 0 }, i.value, { "on-dismiss": r }), null, 16)) : p("", !0),
|
|
29
|
+
v(e.$slots, "default")
|
|
30
|
+
]));
|
|
31
|
+
}
|
|
32
|
+
});
|
|
33
|
+
export {
|
|
34
|
+
y as _
|
|
35
|
+
};
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { ref as
|
|
1
|
+
import { ref as b } from "vue";
|
|
2
2
|
import { CLMode as o } from "../index.js";
|
|
3
|
-
function
|
|
4
|
-
if (!
|
|
3
|
+
function c(e, r) {
|
|
4
|
+
if (!r)
|
|
5
5
|
return e;
|
|
6
|
-
const
|
|
7
|
-
for (const
|
|
8
|
-
if (Object.prototype.hasOwnProperty.call(
|
|
9
|
-
const
|
|
10
|
-
l(d) && l(
|
|
6
|
+
const f = { ...e };
|
|
7
|
+
for (const t in r)
|
|
8
|
+
if (Object.prototype.hasOwnProperty.call(r, t)) {
|
|
9
|
+
const a = r[t], d = f[t];
|
|
10
|
+
l(d) && l(a) ? f[t] = c(d, a) : f[t] = a;
|
|
11
11
|
}
|
|
12
|
-
return
|
|
12
|
+
return f;
|
|
13
13
|
}
|
|
14
14
|
function l(e) {
|
|
15
15
|
return e !== null && typeof e == "object" && !Array.isArray(e) && !(e instanceof Date) && !(e instanceof Map) && !(e instanceof Set);
|
|
16
16
|
}
|
|
17
|
-
const
|
|
17
|
+
const i = {
|
|
18
18
|
borderRadius: void 0,
|
|
19
19
|
colors: {
|
|
20
20
|
primary: {
|
|
@@ -104,7 +104,7 @@ const b = {
|
|
|
104
104
|
},
|
|
105
105
|
darkMode: !1,
|
|
106
106
|
fontFamily: "BlinkMacSystemFont,-apple-system,'Segoe UI',Roboto,Oxygen,Ubuntu,Cantarell,'Fira Sans','Droid Sans','Helvetica Neue',Helvetica,Arial,sans-serif"
|
|
107
|
-
},
|
|
107
|
+
}, y = {
|
|
108
108
|
contrast: {
|
|
109
109
|
[o.Light]: {
|
|
110
110
|
border: 900,
|
|
@@ -235,41 +235,30 @@ const b = {
|
|
|
235
235
|
textDisabled: 500
|
|
236
236
|
}
|
|
237
237
|
}
|
|
238
|
-
},
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
},
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
darkMode: y,
|
|
260
|
-
fontFamily: B,
|
|
261
|
-
setBorderRadius: n,
|
|
262
|
-
setColors: u,
|
|
263
|
-
setDarkMode: D,
|
|
264
|
-
setFontFamily: v
|
|
265
|
-
});
|
|
266
|
-
};
|
|
238
|
+
}, F = (e) => {
|
|
239
|
+
const r = b(e?.borderRadius || i.borderRadius), f = b(e?.darkMode ?? i.darkMode), t = b(e?.fontFamily ?? i.fontFamily), a = c(i.colors, e?.colors), d = b(a);
|
|
240
|
+
return {
|
|
241
|
+
borderRadius: r,
|
|
242
|
+
colors: d,
|
|
243
|
+
darkMode: f,
|
|
244
|
+
fontFamily: t,
|
|
245
|
+
setBorderRadius: (s) => {
|
|
246
|
+
r.value = s;
|
|
247
|
+
},
|
|
248
|
+
setColors: (s) => {
|
|
249
|
+
d.value = { ...d.value, ...s };
|
|
250
|
+
},
|
|
251
|
+
setDarkMode: (s) => {
|
|
252
|
+
f.value = s;
|
|
253
|
+
},
|
|
254
|
+
setFontFamily: (s) => {
|
|
255
|
+
t.value = s;
|
|
256
|
+
}
|
|
257
|
+
};
|
|
258
|
+
}, B = /* @__PURE__ */ Symbol("clll-theme");
|
|
267
259
|
export {
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
D as c,
|
|
273
|
-
v as d,
|
|
274
|
-
R as s
|
|
260
|
+
y as C,
|
|
261
|
+
i as D,
|
|
262
|
+
B as T,
|
|
263
|
+
F as s
|
|
275
264
|
};
|