@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,6 +1,6 @@
|
|
|
1
1
|
import '../../../assets/core.css';
|
|
2
2
|
import './CLA11yButton.css';
|
|
3
|
-
import { _ as t } from "../../../chunks/CLA11yButton.vue_vue_type_style_index_0_lang-
|
|
3
|
+
import { _ as t } from "../../../chunks/CLA11yButton.vue_vue_type_style_index_0_lang-zGLnnSIW.js";
|
|
4
4
|
export {
|
|
5
5
|
t as CLA11yButton,
|
|
6
6
|
t as default
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import '../../../assets/core.css';
|
|
2
2
|
import './CLButton.css';
|
|
3
|
-
import { _ as t } from "../../../chunks/CLButton.vue_vue_type_style_index_0_lang-
|
|
3
|
+
import { _ as t } from "../../../chunks/CLButton.vue_vue_type_style_index_0_lang-MvhnNzVW.js";
|
|
4
4
|
export {
|
|
5
5
|
t as CLButton,
|
|
6
6
|
t as default
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import '../../assets/core.css';
|
|
2
2
|
import './CLIcon.css';
|
|
3
|
-
import { _ as o } from "../../chunks/CLIcon.vue_vue_type_style_index_0_lang-
|
|
3
|
+
import { _ as o } from "../../chunks/CLIcon.vue_vue_type_style_index_0_lang-Dhr2tI-g.js";
|
|
4
4
|
export {
|
|
5
5
|
o as CLIcon,
|
|
6
6
|
o as default
|
|
@@ -2,9 +2,9 @@ import '../../assets/core.css';
|
|
|
2
2
|
import './CLTable.css';
|
|
3
3
|
import { defineComponent as i, computed as b, createElementBlock as o, openBlock as a, normalizeStyle as p, normalizeClass as s, unref as d, createElementVNode as h, createCommentVNode as y, renderSlot as r, Fragment as k, renderList as L, createVNode as T, withCtx as v } from "vue";
|
|
4
4
|
import { CLMode as C, CLColorVariants as B, CLColors as w, CLTableTypes as g, CLTextTypes as H } from "../../index.js";
|
|
5
|
-
import { g as N } from "../../chunks/utils-
|
|
5
|
+
import { g as N } from "../../chunks/utils-D00IXMTR.js";
|
|
6
6
|
import { useTheme as x } from "../../composables/useTheme.js";
|
|
7
|
-
import { _ as V } from "../../chunks/CLText.vue_vue_type_style_index_0_lang-
|
|
7
|
+
import { _ as V } from "../../chunks/CLText.vue_vue_type_style_index_0_lang-B-L8ECJL.js";
|
|
8
8
|
const A = () => {
|
|
9
9
|
const { colors: l, darkMode: t } = x(), e = t.value ? C.Dark : C.Light, n = N({
|
|
10
10
|
color: w.Neutral,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import '../../../assets/core.css';
|
|
2
2
|
import './CLCard.css';
|
|
3
|
-
import { _ as r } from "../../../chunks/CLCard.vue_vue_type_style_index_0_lang-
|
|
3
|
+
import { _ as r } from "../../../chunks/CLCard.vue_vue_type_style_index_0_lang-Sre7UYZd.js";
|
|
4
4
|
export {
|
|
5
5
|
r as CLCard,
|
|
6
6
|
r as default
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import '../../../assets/core.css';
|
|
2
2
|
import './CLCarousel.css';
|
|
3
3
|
import { defineComponent as xe, computed as w, createElementBlock as h, openBlock as f, Fragment as te, createCommentVNode as P, unref as e, normalizeClass as r, renderList as ke, createBlock as ze, createElementVNode as x, createVNode as y, withCtx as de, createTextVNode as ue, toDisplayString as ee, useCssVars as Ie, ref as v, onMounted as Ee, nextTick as Y, onUnmounted as We, watch as Be, renderSlot as ve } from "vue";
|
|
4
|
-
import { _ as M } from "../../../chunks/CLButton.vue_vue_type_style_index_0_lang-
|
|
5
|
-
import { _ as Te } from "../../../chunks/CLText.vue_vue_type_style_index_0_lang-
|
|
4
|
+
import { _ as M } from "../../../chunks/CLButton.vue_vue_type_style_index_0_lang-MvhnNzVW.js";
|
|
5
|
+
import { _ as Te } from "../../../chunks/CLText.vue_vue_type_style_index_0_lang-B-L8ECJL.js";
|
|
6
6
|
import { CLPaginationType as E, CLColorVariants as A, CLSizes as D, CLIconSizes as j, CLIconNames as q, CLTextTypes as Ne, CLAlign as Q, CLOrder as Z, CLColors as Me } from "../../../index.js";
|
|
7
7
|
import { i as _, d as Ae, e as Ve } from "../../../chunks/helper-qUkciePY.js";
|
|
8
8
|
import { useHasSlotContent as Oe } from "../../../composables/useHasSlotContent.js";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import '../../../assets/core.css';
|
|
2
2
|
import './CLDisclosure.css';
|
|
3
3
|
import { defineComponent as L, ref as m, computed as g, onBeforeUnmount as I, createElementBlock as T, openBlock as i, normalizeStyle as H, normalizeClass as o, unref as n, createVNode as k, createElementVNode as l, withKeys as p, withCtx as u, createBlock as r, createCommentVNode as s, renderSlot as $, createTextVNode as h, toDisplayString as y } from "vue";
|
|
4
|
-
import { _ as E } from "../../../chunks/CLA11yButton.vue_vue_type_style_index_0_lang-
|
|
5
|
-
import { _ as N } from "../../../chunks/CLHeading.vue_vue_type_style_index_0_lang-
|
|
6
|
-
import { _ as b } from "../../../chunks/CLIcon.vue_vue_type_style_index_0_lang-
|
|
7
|
-
import { _ as D } from "../../../chunks/CLText.vue_vue_type_style_index_0_lang-
|
|
4
|
+
import { _ as E } from "../../../chunks/CLA11yButton.vue_vue_type_style_index_0_lang-zGLnnSIW.js";
|
|
5
|
+
import { _ as N } from "../../../chunks/CLHeading.vue_vue_type_style_index_0_lang-DH5oJc1C.js";
|
|
6
|
+
import { _ as b } from "../../../chunks/CLIcon.vue_vue_type_style_index_0_lang-Dhr2tI-g.js";
|
|
7
|
+
import { _ as D } from "../../../chunks/CLText.vue_vue_type_style_index_0_lang-B-L8ECJL.js";
|
|
8
8
|
import { CLColorVariants as V, CLSizes as w, CLTextTypes as A, CLIconSizes as R, CLIconNames as C, CLHeadingTypes as K, CLColors as M } from "../../../index.js";
|
|
9
|
-
import { d as U } from "../../../chunks/utils-
|
|
9
|
+
import { d as U } from "../../../chunks/utils-BjZURPWx.js";
|
|
10
10
|
import { useEsc as j } from "../../../composables/useEsc.js";
|
|
11
11
|
import { useHasSlotContent as q } from "../../../composables/useHasSlotContent.js";
|
|
12
12
|
const F = ["data-testid"], G = ["id", "aria-labelledby", "aria-hidden"], te = /* @__PURE__ */ L({
|
|
@@ -2,7 +2,7 @@ import '../../../assets/core.css';
|
|
|
2
2
|
import './CLDrawer.css';
|
|
3
3
|
import { defineComponent as q, useTemplateRef as G, ref as w, computed as i, watch as J, onMounted as K, onBeforeUnmount as Q, createElementBlock as $, createCommentVNode as E, unref as u, openBlock as M, normalizeStyle as h, normalizeClass as C, createElementVNode as X, renderSlot as Y } from "vue";
|
|
4
4
|
import { CLDrawerPosition as v } from "../../../index.js";
|
|
5
|
-
import { a as ee } from "../../../chunks/utils-
|
|
5
|
+
import { a as ee } from "../../../chunks/utils-BjZURPWx.js";
|
|
6
6
|
import { useEsc as te } from "../../../composables/useEsc.js";
|
|
7
7
|
import { SizeDimension as O, useElementSize as ne, SizeMode as k } from "../../../composables/useElementSize.js";
|
|
8
8
|
import { c as P, i as s, g as V, a as S } from "../../../chunks/helper-qUkciePY.js";
|
|
@@ -2,9 +2,9 @@ import '../../../assets/core.css';
|
|
|
2
2
|
import './CLCheckbox.css';
|
|
3
3
|
import '../../../assets/shared/form-utilities.css';
|
|
4
4
|
import { defineComponent as h, mergeModels as T, useTemplateRef as z, useModel as B, computed as y, createBlock as m, openBlock as f, withCtx as X, createElementVNode as u, createCommentVNode as L, normalizeStyle as S, normalizeClass as n, unref as c, withDirectives as M, vModelCheckbox as V, createVNode as q, createTextVNode as F, toDisplayString as N } from "vue";
|
|
5
|
-
import { _ as I, c as R, a as D } from "../../../chunks/CLInputMessages.vue_vue_type_style_index_0_lang-
|
|
6
|
-
import { _ as w } from "../../../chunks/CLIcon.vue_vue_type_style_index_0_lang-
|
|
7
|
-
import { _ as E } from "../../../chunks/CLText.vue_vue_type_style_index_0_lang-
|
|
5
|
+
import { _ as I, c as R, a as D } from "../../../chunks/CLInputMessages.vue_vue_type_style_index_0_lang-DTWvAACK.js";
|
|
6
|
+
import { _ as w } from "../../../chunks/CLIcon.vue_vue_type_style_index_0_lang-Dhr2tI-g.js";
|
|
7
|
+
import { _ as E } from "../../../chunks/CLText.vue_vue_type_style_index_0_lang-B-L8ECJL.js";
|
|
8
8
|
import { CLSizes as l, CLIconSizes as d, CLTextTypes as s, CLIconNames as H, CLColorVariants as O, CLColors as U } from "../../../index.js";
|
|
9
9
|
const j = ["data-testid"], A = ["for", "disabled"], G = ["id", "aria-label", "disabled", "form", "name", "required", "value"], Z = /* @__PURE__ */ h({
|
|
10
10
|
name: "CLCheckbox",
|
|
@@ -2,13 +2,13 @@ import '../../../assets/core.css';
|
|
|
2
2
|
import './CLInput.css';
|
|
3
3
|
import '../../../assets/shared/form-utilities.css';
|
|
4
4
|
import { defineComponent as p, computed as z, createElementBlock as $, openBlock as u, normalizeClass as y, unref as a, createBlock as b, Fragment as M, createTextVNode as q, toDisplayString as N, createVNode as K, ref as A, watch as P, createCommentVNode as v, mergeModels as w, useTemplateRef as Q, useModel as W, withCtx as Y, createElementVNode as F, normalizeStyle as Z, withDirectives as _, vModelDynamic as ee, isRef as le } from "vue";
|
|
5
|
-
import { _ as ie, i as ae, a as te } from "../../../chunks/CLInputMessages.vue_vue_type_style_index_0_lang-
|
|
6
|
-
import { _ as oe } from "../../../chunks/CLFormLabel.vue_vue_type_script_setup_true_lang-
|
|
5
|
+
import { _ as ie, i as ae, a as te } from "../../../chunks/CLInputMessages.vue_vue_type_style_index_0_lang-DTWvAACK.js";
|
|
6
|
+
import { _ as oe } from "../../../chunks/CLFormLabel.vue_vue_type_script_setup_true_lang-CIQxM6aH.js";
|
|
7
7
|
import { _ as ne } from "../../../chunks/CLFormCharCounter.vue_vue_type_style_index_0_lang-CJ4VrvmR.js";
|
|
8
|
-
import { _ as E } from "../../../chunks/CLIcon.vue_vue_type_style_index_0_lang-
|
|
9
|
-
import { _ as S } from "../../../chunks/CLButton.vue_vue_type_style_index_0_lang-
|
|
8
|
+
import { _ as E } from "../../../chunks/CLIcon.vue_vue_type_style_index_0_lang-Dhr2tI-g.js";
|
|
9
|
+
import { _ as S } from "../../../chunks/CLButton.vue_vue_type_style_index_0_lang-MvhnNzVW.js";
|
|
10
10
|
import { CLSizes as o, CLColors as k, CLBorderRadius as V, CLIconSizes as s, CLColorVariants as I, CLIconNames as X, CLInputTypes as d, CLOrientation as R, CLCharCounterLayout as de } from "../../../index.js";
|
|
11
|
-
import { _ as ue } from "../../../chunks/CLPill.vue_vue_type_style_index_0_lang-
|
|
11
|
+
import { _ as ue } from "../../../chunks/CLPill.vue_vue_type_style_index_0_lang-BQim03ge.js";
|
|
12
12
|
const se = ["data-testid"], H = /* @__PURE__ */ p({
|
|
13
13
|
name: "CLInputPrefix",
|
|
14
14
|
__name: "CLInputPrefix",
|
|
@@ -2,8 +2,8 @@ import '../../../assets/core.css';
|
|
|
2
2
|
import './CLRadioButton.css';
|
|
3
3
|
import '../../../assets/shared/form-utilities.css';
|
|
4
4
|
import { defineComponent as B, mergeModels as k, useModel as x, useTemplateRef as T, computed as f, createBlock as m, openBlock as c, withCtx as $, createElementVNode as i, createCommentVNode as y, normalizeStyle as h, normalizeClass as s, unref as u, withDirectives as R, vModelRadio as q, createTextVNode as S, toDisplayString as V } from "vue";
|
|
5
|
-
import { _ as z, c as M, a as F } from "../../../chunks/CLInputMessages.vue_vue_type_style_index_0_lang-
|
|
6
|
-
import { _ as N } from "../../../chunks/CLText.vue_vue_type_style_index_0_lang-
|
|
5
|
+
import { _ as z, c as M, a as F } from "../../../chunks/CLInputMessages.vue_vue_type_style_index_0_lang-DTWvAACK.js";
|
|
6
|
+
import { _ as N } from "../../../chunks/CLText.vue_vue_type_style_index_0_lang-B-L8ECJL.js";
|
|
7
7
|
import { CLSizes as t, CLTextTypes as d, CLColorVariants as w, CLColors as D } from "../../../index.js";
|
|
8
8
|
const I = ["data-testid"], E = ["for"], H = ["id", "aria-label", "checked", "disabled", "name", "value", "required"], G = /* @__PURE__ */ B({
|
|
9
9
|
name: "CLRadioButton",
|
|
@@ -2,9 +2,9 @@ import '../../../assets/core.css';
|
|
|
2
2
|
import './CLSelect.css';
|
|
3
3
|
import '../../../assets/shared/form-utilities.css';
|
|
4
4
|
import { defineComponent as B, mergeModels as S, useModel as h, useTemplateRef as X, computed as q, createBlock as f, openBlock as s, withCtx as x, createElementVNode as d, createCommentVNode as $, normalizeStyle as T, normalizeClass as r, unref as u, withDirectives as V, createElementBlock as b, Fragment as k, renderList as M, toDisplayString as F, vModelSelect as I, createVNode as N } from "vue";
|
|
5
|
-
import { _ as R, s as D, a as w } from "../../../chunks/CLInputMessages.vue_vue_type_style_index_0_lang-
|
|
6
|
-
import { _ as E } from "../../../chunks/CLFormLabel.vue_vue_type_script_setup_true_lang-
|
|
7
|
-
import { _ as H } from "../../../chunks/CLIcon.vue_vue_type_style_index_0_lang-
|
|
5
|
+
import { _ as R, s as D, a as w } from "../../../chunks/CLInputMessages.vue_vue_type_style_index_0_lang-DTWvAACK.js";
|
|
6
|
+
import { _ as E } from "../../../chunks/CLFormLabel.vue_vue_type_script_setup_true_lang-CIQxM6aH.js";
|
|
7
|
+
import { _ as H } from "../../../chunks/CLIcon.vue_vue_type_style_index_0_lang-Dhr2tI-g.js";
|
|
8
8
|
import { CLSizes as i, CLIconSizes as n, CLOrientation as y, CLIconNames as O, CLColorVariants as P, CLColors as U } from "../../../index.js";
|
|
9
9
|
const j = ["data-testid"], A = ["id", "aria-label", "disabled", "name", "placeholder", "form", "required"], G = ["value", "selected", "disabled"], p = /* @__PURE__ */ B({
|
|
10
10
|
name: "CLSelect",
|
|
@@ -2,8 +2,8 @@ import '../../../assets/core.css';
|
|
|
2
2
|
import './CLTextArea.css';
|
|
3
3
|
import '../../../assets/shared/form-utilities.css';
|
|
4
4
|
import { defineComponent as $, mergeModels as b, useTemplateRef as x, useModel as C, computed as L, createBlock as i, openBlock as r, withCtx as B, createElementVNode as d, createCommentVNode as s, normalizeStyle as z, normalizeClass as m, unref as c, withDirectives as v, vModelText as k } from "vue";
|
|
5
|
-
import { _ as T, i as q, a as V } from "../../../chunks/CLInputMessages.vue_vue_type_style_index_0_lang-
|
|
6
|
-
import { _ as w } from "../../../chunks/CLFormLabel.vue_vue_type_script_setup_true_lang-
|
|
5
|
+
import { _ as T, i as q, a as V } from "../../../chunks/CLInputMessages.vue_vue_type_style_index_0_lang-DTWvAACK.js";
|
|
6
|
+
import { _ as w } from "../../../chunks/CLFormLabel.vue_vue_type_script_setup_true_lang-CIQxM6aH.js";
|
|
7
7
|
import { _ as I } from "../../../chunks/CLFormCharCounter.vue_vue_type_style_index_0_lang-CJ4VrvmR.js";
|
|
8
8
|
import { CLOrientation as f, CLCharCounterLayout as F, CLColorVariants as R, CLSizes as M, CLColors as S } from "../../../index.js";
|
|
9
9
|
const A = ["data-testid"], N = ["id", "aria-label", "autocomplete", "cols", "disabled", "form", "maxlength", "minlength", "name", "pattern", "placeholder", "readonly", "required", "spellcheck", "rows"], j = /* @__PURE__ */ $({
|
|
@@ -2,7 +2,7 @@ import '../../../assets/core.css';
|
|
|
2
2
|
import './CLBadge.css';
|
|
3
3
|
import { defineComponent as c, computed as n, createElementBlock as m, openBlock as u, normalizeStyle as f, normalizeClass as s, unref as r, createElementVNode as b, toDisplayString as g } from "vue";
|
|
4
4
|
import { CLColorVariants as p, CLColors as C } from "../../../index.js";
|
|
5
|
-
import { b as v } from "../../../chunks/utils-
|
|
5
|
+
import { b as v } from "../../../chunks/utils-nD3K7jh9.js";
|
|
6
6
|
const $ = ["data-testid"], h = /* @__PURE__ */ c({
|
|
7
7
|
name: "CLBadge",
|
|
8
8
|
__name: "CLBadge",
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import '../../../assets/core.css';
|
|
2
2
|
import './CLBanner.css';
|
|
3
3
|
import { defineComponent as L, computed as h, createBlock as l, openBlock as n, unref as a, withCtx as s, createElementVNode as u, normalizeStyle as v, normalizeClass as r, createElementBlock as b, createCommentVNode as o, createTextVNode as m, toDisplayString as c, createVNode as y } from "vue";
|
|
4
|
-
import { _ as x } from "../../../chunks/CLA11yButton.vue_vue_type_style_index_0_lang-
|
|
5
|
-
import { _ as $ } from "../../../chunks/CLButton.vue_vue_type_style_index_0_lang-
|
|
6
|
-
import { _ as S } from "../../../chunks/CLHeading.vue_vue_type_style_index_0_lang-
|
|
7
|
-
import { _ as C } from "../../../chunks/CLSkeleton.vue_vue_type_style_index_0_lang-
|
|
8
|
-
import { _ as B } from "../../../chunks/CLText.vue_vue_type_style_index_0_lang-
|
|
4
|
+
import { _ as x } from "../../../chunks/CLA11yButton.vue_vue_type_style_index_0_lang-zGLnnSIW.js";
|
|
5
|
+
import { _ as $ } from "../../../chunks/CLButton.vue_vue_type_style_index_0_lang-MvhnNzVW.js";
|
|
6
|
+
import { _ as S } from "../../../chunks/CLHeading.vue_vue_type_style_index_0_lang-DH5oJc1C.js";
|
|
7
|
+
import { _ as C } from "../../../chunks/CLSkeleton.vue_vue_type_style_index_0_lang-DduoX6Cu.js";
|
|
8
|
+
import { _ as B } from "../../../chunks/CLText.vue_vue_type_style_index_0_lang-B-L8ECJL.js";
|
|
9
9
|
import { CLColorVariants as d, CLColors as z, CLAlign as D, CLHeadingTypes as T, CLTextTypes as N, CLSizes as R, CLIconSizes as w, CLIconNames as V } from "../../../index.js";
|
|
10
|
-
import { a as A } from "../../../chunks/utils-
|
|
10
|
+
import { a as A } from "../../../chunks/utils-nD3K7jh9.js";
|
|
11
11
|
const I = ["data-testid"], O = /* @__PURE__ */ L({
|
|
12
12
|
name: "CLBanner",
|
|
13
13
|
__name: "CLBanner",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import '../../../assets/core.css';
|
|
2
2
|
import './CLPill.css';
|
|
3
|
-
import { _ as s } from "../../../chunks/CLPill.vue_vue_type_style_index_0_lang-
|
|
3
|
+
import { _ as s } from "../../../chunks/CLPill.vue_vue_type_style_index_0_lang-BQim03ge.js";
|
|
4
4
|
export {
|
|
5
5
|
s as CLPill,
|
|
6
6
|
s as default
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import '../../../assets/core.css';
|
|
2
2
|
import './CLProgress.css';
|
|
3
3
|
import { defineComponent as f, mergeModels as p, useModel as _, computed as d, createElementBlock as n, openBlock as c, normalizeStyle as y, normalizeClass as s, unref as t, createCommentVNode as $, createElementVNode as l, createVNode as g, withCtx as C, createTextVNode as v, toDisplayString as V } from "vue";
|
|
4
|
-
import { _ as x } from "../../../chunks/CLText.vue_vue_type_style_index_0_lang-
|
|
4
|
+
import { _ as x } from "../../../chunks/CLText.vue_vue_type_style_index_0_lang-B-L8ECJL.js";
|
|
5
5
|
import { CLTextTypes as L, CLColors as u, CLSizes as N } from "../../../index.js";
|
|
6
|
-
import { c as z } from "../../../chunks/utils-
|
|
6
|
+
import { c as z } from "../../../chunks/utils-nD3K7jh9.js";
|
|
7
7
|
const B = ["data-testid"], k = /* @__PURE__ */ f({
|
|
8
8
|
name: "CLProgress",
|
|
9
9
|
__name: "CLProgress",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import '../../../assets/core.css';
|
|
2
2
|
import './CLSkeleton.css';
|
|
3
|
-
import { _ as e } from "../../../chunks/CLSkeleton.vue_vue_type_style_index_0_lang-
|
|
3
|
+
import { _ as e } from "../../../chunks/CLSkeleton.vue_vue_type_style_index_0_lang-DduoX6Cu.js";
|
|
4
4
|
export {
|
|
5
5
|
e as CLSkeleton,
|
|
6
6
|
e as default
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import '../../../assets/core.css';
|
|
2
2
|
import './CLSpinner.css';
|
|
3
|
-
import { _ as r } from "../../../chunks/CLSpinner.vue_vue_type_style_index_0_lang-
|
|
3
|
+
import { _ as r } from "../../../chunks/CLSpinner.vue_vue_type_style_index_0_lang-DlXqnsi8.js";
|
|
4
4
|
export {
|
|
5
5
|
r as CLSpinner,
|
|
6
6
|
r as default
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import '../../../assets/core.css';
|
|
2
2
|
import './CLModal.css';
|
|
3
3
|
import { defineComponent as W, useTemplateRef as F, useSlots as U, ref as Z, computed as m, watch as j, onMounted as q, onBeforeUnmount as A, createElementBlock as p, createCommentVNode as v, openBlock as w, normalizeStyle as y, normalizeClass as l, unref as n, createElementVNode as d, createBlock as B, renderSlot as $, withCtx as G, createTextVNode as J, toDisplayString as K } from "vue";
|
|
4
|
-
import { _ as P } from "../../../chunks/CLButton.vue_vue_type_style_index_0_lang-
|
|
5
|
-
import { _ as Q } from "../../../chunks/CLHeading.vue_vue_type_style_index_0_lang-
|
|
4
|
+
import { _ as P } from "../../../chunks/CLButton.vue_vue_type_style_index_0_lang-MvhnNzVW.js";
|
|
5
|
+
import { _ as Q } from "../../../chunks/CLHeading.vue_vue_type_style_index_0_lang-DH5oJc1C.js";
|
|
6
6
|
import { CLMode as k, CLColors as T, CLColorVariants as N, CLBorderRadius as X, CLIconSizes as Y, CLIconNames as ee, CLHeadingTypes as oe } from "../../../index.js";
|
|
7
|
-
import { g as te } from "../../../chunks/utils-
|
|
7
|
+
import { g as te } from "../../../chunks/utils-D00IXMTR.js";
|
|
8
8
|
import { useTheme as ne } from "../../../composables/useTheme.js";
|
|
9
9
|
import { useEsc as le } from "../../../composables/useEsc.js";
|
|
10
10
|
import { c as S, i as a } from "../../../chunks/helper-qUkciePY.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import '../../../assets/core.css';
|
|
2
2
|
import './CLLink.css';
|
|
3
|
-
import { _ as s } from "../../../chunks/CLLink.vue_vue_type_style_index_0_lang-
|
|
3
|
+
import { _ as s } from "../../../chunks/CLLink.vue_vue_type_style_index_0_lang-BXysZqLn.js";
|
|
4
4
|
export {
|
|
5
5
|
s as CLLink,
|
|
6
6
|
s as default
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import '../../../assets/core.css';
|
|
2
|
-
import { _ as s } from "../../../chunks/CLNavLink.vue_vue_type_script_setup_true_lang-
|
|
2
|
+
import { _ as s } from "../../../chunks/CLNavLink.vue_vue_type_script_setup_true_lang-Dhnmfa9W.js";
|
|
3
3
|
export {
|
|
4
4
|
s as CLNavLink,
|
|
5
5
|
s as default
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import '../../../assets/core.css';
|
|
2
2
|
import './CLNavSection.css';
|
|
3
3
|
import { defineComponent as f, computed as u, createElementBlock as a, openBlock as l, normalizeClass as m, unref as r, Fragment as p, renderList as _, createVNode as i, withCtx as n, createTextVNode as C, toDisplayString as x } from "vue";
|
|
4
|
-
import { _ as k } from "../../../chunks/CLNavLink.vue_vue_type_script_setup_true_lang-
|
|
5
|
-
import { _ as L } from "../../../chunks/CLText.vue_vue_type_style_index_0_lang-
|
|
4
|
+
import { _ as k } from "../../../chunks/CLNavLink.vue_vue_type_script_setup_true_lang-Dhnmfa9W.js";
|
|
5
|
+
import { _ as L } from "../../../chunks/CLText.vue_vue_type_style_index_0_lang-B-L8ECJL.js";
|
|
6
6
|
import { CLOrientation as h, CLColors as $ } from "../../../index.js";
|
|
7
7
|
const g = ["data-testid"], V = /* @__PURE__ */ f({
|
|
8
8
|
name: "CLNavSection",
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import '../../../assets/core.css';
|
|
2
2
|
import './CLDropdownMenu.css';
|
|
3
3
|
import { computed as V, ref as E, shallowRef as Qt, watch as ut, getCurrentScope as te, onScopeDispose as ee, shallowReadonly as _, unref as A, defineComponent as ne, onBeforeUnmount as oe, createElementBlock as St, openBlock as At, normalizeClass as dt, createVNode as Ot, createCommentVNode as ie, withCtx as Et, createTextVNode as re, toDisplayString as le, normalizeStyle as se, renderSlot as ce } from "vue";
|
|
4
|
-
import { _ as ae } from "../../../chunks/CLButton.vue_vue_type_style_index_0_lang-
|
|
5
|
-
import { _ as fe } from "../../../chunks/CLCard.vue_vue_type_style_index_0_lang-
|
|
4
|
+
import { _ as ae } from "../../../chunks/CLButton.vue_vue_type_style_index_0_lang-MvhnNzVW.js";
|
|
5
|
+
import { _ as fe } from "../../../chunks/CLCard.vue_vue_type_style_index_0_lang-Sre7UYZd.js";
|
|
6
6
|
import { c as ue, i as mt } from "../../../chunks/helper-qUkciePY.js";
|
|
7
7
|
import { useDropdown as de } from "../../../composables/useDropdown.js";
|
|
8
8
|
import { useEsc as me } from "../../../composables/useEsc.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import '../../../assets/core.css';
|
|
2
2
|
import './CLToast.css';
|
|
3
|
-
import { _ as s } from "../../../chunks/CLToast.vue_vue_type_style_index_0_lang-
|
|
3
|
+
import { _ as s } from "../../../chunks/CLToast.vue_vue_type_style_index_0_lang-CzSDeL_X.js";
|
|
4
4
|
export {
|
|
5
5
|
s as CLToast,
|
|
6
6
|
s as default
|
|
@@ -1,61 +1,9 @@
|
|
|
1
1
|
import '../../../assets/core.css';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { i as n, b as w } from "../../../chunks/helper-qUkciePY.js";
|
|
5
|
-
const L = /* @__PURE__ */ s({
|
|
6
|
-
__name: "CLThemeProvider",
|
|
7
|
-
props: {
|
|
8
|
-
tag: { default: "div" },
|
|
9
|
-
themeConfig: {},
|
|
10
|
-
autoDetectDarkMode: { type: Boolean, default: !0 }
|
|
11
|
-
},
|
|
12
|
-
setup(o) {
|
|
13
|
-
const t = o;
|
|
14
|
-
g(t.themeConfig);
|
|
15
|
-
let a = null;
|
|
16
|
-
const i = () => {
|
|
17
|
-
if (t.autoDetectDarkMode && n) {
|
|
18
|
-
const e = w();
|
|
19
|
-
d(e);
|
|
20
|
-
}
|
|
21
|
-
};
|
|
22
|
-
return l(() => {
|
|
23
|
-
t.autoDetectDarkMode && n && (i(), a = window.matchMedia("(prefers-color-scheme: dark)"), a.addEventListener("change", i));
|
|
24
|
-
}), m(() => {
|
|
25
|
-
a && n && a.removeEventListener("change", i);
|
|
26
|
-
}), r(
|
|
27
|
-
() => t.themeConfig?.borderRadius,
|
|
28
|
-
(e) => {
|
|
29
|
-
k(e);
|
|
30
|
-
}
|
|
31
|
-
), r(
|
|
32
|
-
() => t.themeConfig?.colors,
|
|
33
|
-
(e) => {
|
|
34
|
-
e && v(e);
|
|
35
|
-
}
|
|
36
|
-
), r(
|
|
37
|
-
() => t.themeConfig?.darkMode,
|
|
38
|
-
(e) => {
|
|
39
|
-
e !== void 0 && !t.autoDetectDarkMode && d(e);
|
|
40
|
-
}
|
|
41
|
-
), r(
|
|
42
|
-
() => t.themeConfig?.fontFamily,
|
|
43
|
-
(e) => {
|
|
44
|
-
y(e);
|
|
45
|
-
}
|
|
46
|
-
), (e, B) => (c(), f(u(o.tag), {
|
|
47
|
-
class: "clll-theme-provider",
|
|
48
|
-
style: h({ "--clll-font-family": o.themeConfig?.fontFamily || C(p).fontFamily, "--clll-default-radius": o.themeConfig?.borderRadius ? `var(--clll-${o.themeConfig.borderRadius})` : void 0 })
|
|
49
|
-
}, {
|
|
50
|
-
default: D(() => [
|
|
51
|
-
M(e.$slots, "default")
|
|
52
|
-
]),
|
|
53
|
-
_: 3
|
|
54
|
-
}, 8, ["style"]));
|
|
55
|
-
}
|
|
56
|
-
});
|
|
2
|
+
import { _ as a } from "../../../chunks/CLThemeProvider.vue_vue_type_script_setup_true_lang-jaJYKZL8.js";
|
|
3
|
+
import { D as m, T as s } from "../../../chunks/context-CEvx70FY.js";
|
|
57
4
|
export {
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
5
|
+
a as CLThemeProvider,
|
|
6
|
+
m as DEFAULT_THEME,
|
|
7
|
+
s as ThemeInjectionKey,
|
|
8
|
+
a as default
|
|
61
9
|
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CLColorVariants, CLMode, CLThemeConfig } from '../../../index.ts';
|
|
2
|
+
import { CLThemeContext } from './context';
|
|
2
3
|
export declare const DEFAULT_THEME: CLThemeConfig;
|
|
3
4
|
type ColorMap = Record<CLColorVariants, Record<CLMode, ColorModesKeys>>;
|
|
4
5
|
export interface ColorModesKeys {
|
|
@@ -14,9 +15,9 @@ export interface ColorModesKeys {
|
|
|
14
15
|
textDisabled?: number;
|
|
15
16
|
}
|
|
16
17
|
export declare const COLOR_VARIANTS_MAP: ColorMap;
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
export declare const setupTheme: (config?: CLThemeConfig) =>
|
|
18
|
+
/**
|
|
19
|
+
* Creates a new theme state instance.
|
|
20
|
+
* Using a factory function avoids global state leakage when multiple providers are used.
|
|
21
|
+
*/
|
|
22
|
+
export declare const setupTheme: (config?: CLThemeConfig) => CLThemeContext;
|
|
22
23
|
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { InjectionKey, Ref } from 'vue';
|
|
2
|
+
import { CLBorderRadius, CLPalette } from '../../../index.ts';
|
|
3
|
+
export interface CLThemeContext {
|
|
4
|
+
borderRadius: Ref<CLBorderRadius | undefined>;
|
|
5
|
+
colors: Ref<CLPalette>;
|
|
6
|
+
darkMode: Ref<boolean | undefined>;
|
|
7
|
+
fontFamily: Ref<string | undefined>;
|
|
8
|
+
setBorderRadius: (radius?: CLBorderRadius) => void;
|
|
9
|
+
setColors: (colors: CLPalette) => void;
|
|
10
|
+
setDarkMode: (enabled: boolean) => void;
|
|
11
|
+
setFontFamily: (font?: string) => void;
|
|
12
|
+
}
|
|
13
|
+
export declare const ThemeInjectionKey: InjectionKey<CLThemeContext>;
|
|
@@ -2,5 +2,6 @@ import { default as CLThemeProviderComponent } from './CLThemeProvider.vue';
|
|
|
2
2
|
import { DEFAULT_THEME } from './base-theme';
|
|
3
3
|
export { CLThemeProviderComponent as CLThemeProvider };
|
|
4
4
|
export { DEFAULT_THEME };
|
|
5
|
+
export { ThemeInjectionKey, type CLThemeContext } from './context';
|
|
5
6
|
export default CLThemeProviderComponent;
|
|
6
7
|
export type CLThemeProvider = InstanceType<typeof CLThemeProviderComponent>;
|
|
@@ -1,47 +1,8 @@
|
|
|
1
1
|
import '../../../assets/core.css';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
const $ = { class: "clll-toast-provider" }, E = /* @__PURE__ */ L({
|
|
5
|
-
name: "CLToastProvider",
|
|
6
|
-
__name: "CLToastProvider",
|
|
7
|
-
props: {
|
|
8
|
-
borderRadius: {},
|
|
9
|
-
dismissTimer: {},
|
|
10
|
-
position: {}
|
|
11
|
-
},
|
|
12
|
-
setup(p) {
|
|
13
|
-
const a = p, t = i(), l = i(), s = i(), v = i(), c = i(), u = i(), n = i(), d = i(), r = i(), m = i(), f = i(), o = i(!1), b = () => {
|
|
14
|
-
t.value = void 0, l.value = void 0, s.value = void 0, v.value = void 0, c.value = void 0, u.value = void 0, n.value = void 0, d.value = void 0, r.value = void 0, m.value = void 0, f.value = void 0;
|
|
15
|
-
}, C = (e) => {
|
|
16
|
-
b(), t.value = e.actionLabel, l.value = e.color, s.value = e.borderRadius ?? a.borderRadius, v.value = e.dismissTimer ?? a.dismissTimer, c.value = e.icon, u.value = e.iconSize, n.value = e.message, d.value = e.onAction, r.value = e.position ?? a.position, m.value = e.title, f.value = e.width, o.value = !0;
|
|
17
|
-
}, _ = () => {
|
|
18
|
-
o.value = !1, b();
|
|
19
|
-
};
|
|
20
|
-
return g("clll-toast", {
|
|
21
|
-
visible: o,
|
|
22
|
-
showToast: C,
|
|
23
|
-
hideToast: _
|
|
24
|
-
}), (e, x) => (h(), k("div", $, [
|
|
25
|
-
o.value ? (h(), z(S(A), {
|
|
26
|
-
key: 0,
|
|
27
|
-
"action-label": t.value,
|
|
28
|
-
"border-radius": s.value,
|
|
29
|
-
color: l.value,
|
|
30
|
-
"dismiss-timer": v.value,
|
|
31
|
-
icon: c.value,
|
|
32
|
-
"icon-size": u.value,
|
|
33
|
-
message: n.value,
|
|
34
|
-
"on-action": d.value,
|
|
35
|
-
"on-dismiss": _,
|
|
36
|
-
position: r.value,
|
|
37
|
-
title: m.value,
|
|
38
|
-
width: f.value
|
|
39
|
-
}, null, 8, ["action-label", "border-radius", "color", "dismiss-timer", "icon", "icon-size", "message", "on-action", "position", "title", "width"])) : B("", !0),
|
|
40
|
-
R(e.$slots, "default")
|
|
41
|
-
]));
|
|
42
|
-
}
|
|
43
|
-
});
|
|
2
|
+
import { _ as a } from "../../../chunks/CLToastProvider.vue_vue_type_script_setup_true_lang-DkGK0H4Z.js";
|
|
3
|
+
import { T as t } from "../../../chunks/context-dkA4VoF7.js";
|
|
44
4
|
export {
|
|
45
|
-
|
|
46
|
-
|
|
5
|
+
a as CLToastProvider,
|
|
6
|
+
t as ToastInjectionKey,
|
|
7
|
+
a as default
|
|
47
8
|
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { InjectionKey, Ref } from 'vue';
|
|
2
|
+
import { CLToastProps } from '../../../index.ts';
|
|
3
|
+
export interface CLToastContext {
|
|
4
|
+
visible: Ref<boolean>;
|
|
5
|
+
showToast: (newToastProps: Omit<CLToastProps, 'onDismiss'>) => void;
|
|
6
|
+
hideToast: () => void;
|
|
7
|
+
}
|
|
8
|
+
export declare const ToastInjectionKey: InjectionKey<CLToastContext>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { default as CLToastProviderComponent } from './CLToastProvider.vue';
|
|
2
2
|
export { CLToastProviderComponent as CLToastProvider };
|
|
3
|
+
export { ToastInjectionKey, type CLToastContext } from './context';
|
|
3
4
|
export default CLToastProviderComponent;
|
|
4
5
|
export type CLToastProvider = InstanceType<typeof CLToastProviderComponent>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import '../../../assets/core.css';
|
|
2
2
|
import './CLHeading.css';
|
|
3
|
-
import { _ as s } from "../../../chunks/CLHeading.vue_vue_type_style_index_0_lang-
|
|
3
|
+
import { _ as s } from "../../../chunks/CLHeading.vue_vue_type_style_index_0_lang-DH5oJc1C.js";
|
|
4
4
|
export {
|
|
5
5
|
s as CLHeading,
|
|
6
6
|
s as default
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import '../../../assets/core.css';
|
|
2
2
|
import './CLText.css';
|
|
3
|
-
import { _ as s } from "../../../chunks/CLText.vue_vue_type_style_index_0_lang-
|
|
3
|
+
import { _ as s } from "../../../chunks/CLText.vue_vue_type_style_index_0_lang-B-L8ECJL.js";
|
|
4
4
|
export {
|
|
5
5
|
s as CLText,
|
|
6
6
|
s as default
|
|
@@ -1,18 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { CLBorderRadius, CLPalette } from '../index.ts';
|
|
3
|
-
export interface ThemeState {
|
|
4
|
-
borderRadius: Ref<CLBorderRadius | undefined>;
|
|
5
|
-
colors: Ref<CLPalette>;
|
|
6
|
-
darkMode: Ref<boolean | undefined>;
|
|
7
|
-
fontFamily: Ref<string | undefined>;
|
|
8
|
-
setBorderRadius: (radius?: CLBorderRadius) => void;
|
|
9
|
-
setColors: (colors: CLPalette) => void;
|
|
10
|
-
setDarkMode: (enabled: boolean) => void;
|
|
11
|
-
setFontFamily: (font?: string) => void;
|
|
12
|
-
}
|
|
1
|
+
import { CLThemeContext } from '../components/Providers/CLThemeProvider/context';
|
|
13
2
|
/**
|
|
14
3
|
* Composable to access the theme state from anywhere in the application.
|
|
15
|
-
* Must be used within a CLThemeProvider component.
|
|
4
|
+
* Must be used within a CLThemeProvider component for full functionality.
|
|
16
5
|
*
|
|
17
6
|
* @returns Theme state object with refs and setter functions
|
|
18
7
|
*
|
|
@@ -23,4 +12,5 @@ export interface ThemeState {
|
|
|
23
12
|
* theme.setDarkMode(true)
|
|
24
13
|
* ```
|
|
25
14
|
*/
|
|
26
|
-
export declare const useTheme: () =>
|
|
15
|
+
export declare const useTheme: () => CLThemeContext;
|
|
16
|
+
export type ThemeState = CLThemeContext;
|