@codeandfunction/callaloo 3.16.0 → 3.16.1
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/chunks/{CLA11yButton.vue_vue_type_style_index_0_lang-COGwQtRU.js → CLA11yButton.vue_vue_type_style_index_0_lang-Cdx5rsou.js} +1 -1
- package/dist/chunks/{CLButton.vue_vue_type_style_index_0_lang-CqgySW52.js → CLButton.vue_vue_type_style_index_0_lang-CrhjC50b.js} +3 -3
- package/dist/chunks/{CLCard.vue_vue_type_style_index_0_lang-DSvubJfG.js → CLCard.vue_vue_type_style_index_0_lang-DVuAcV5A.js} +5 -5
- package/dist/chunks/{CLFormLabel.vue_vue_type_script_setup_true_lang-ORvye4vi.js → CLFormLabel.vue_vue_type_script_setup_true_lang-fddy-FWI.js} +1 -1
- package/dist/chunks/{CLHeading.vue_vue_type_style_index_0_lang-CbHdHW2E.js → CLHeading.vue_vue_type_style_index_0_lang-DILwNSgn.js} +1 -1
- package/dist/chunks/{CLIcon.vue_vue_type_style_index_0_lang-zZ4zGuBt.js → CLIcon.vue_vue_type_style_index_0_lang-CZB8svPf.js} +4 -4
- package/dist/chunks/{CLInputMessages.vue_vue_type_style_index_0_lang-xm2qDJGJ.js → CLInputMessages.vue_vue_type_style_index_0_lang-RMOT1TQk.js} +11 -12
- package/dist/chunks/{CLLink.vue_vue_type_style_index_0_lang-D7BqWIqs.js → CLLink.vue_vue_type_style_index_0_lang-BUgw8Rpy.js} +11 -12
- package/dist/chunks/{CLNavLink.vue_vue_type_script_setup_true_lang-Dp3SsIfq.js → CLNavLink.vue_vue_type_script_setup_true_lang-Ckz9MEj5.js} +1 -1
- package/dist/chunks/{CLPill.vue_vue_type_style_index_0_lang-BXGTb6A6.js → CLPill.vue_vue_type_style_index_0_lang-mkIKVHjg.js} +3 -3
- package/dist/chunks/{CLProgress.vue_vue_type_style_index_0_lang-5-cwF-oh.js → CLProgress.vue_vue_type_style_index_0_lang-CSf7WiNb.js} +2 -2
- package/dist/chunks/{CLSkeleton.vue_vue_type_style_index_0_lang-D7_swcoA.js → CLSkeleton.vue_vue_type_style_index_0_lang-E-bZeUWT.js} +1 -1
- package/dist/chunks/{CLSpinner.vue_vue_type_style_index_0_lang-CLccujHE.js → CLSpinner.vue_vue_type_style_index_0_lang-C8s8K4zb.js} +1 -1
- package/dist/chunks/{CLText.vue_vue_type_style_index_0_lang-CTc6UiQV.js → CLText.vue_vue_type_style_index_0_lang-V7LSR7DF.js} +1 -1
- package/dist/chunks/{CLToast.vue_vue_type_style_index_0_lang-BIiSNSlg.js → CLToast.vue_vue_type_style_index_0_lang-DOI4DZGg.js} +12 -12
- package/dist/chunks/{base-theme-B89pbWnC.js → base-theme-C9_Hz5HW.js} +250 -259
- package/dist/chunks/{useEsc-BGAp0d_1.js → useEsc-C9QIDZ_8.js} +1 -1
- package/dist/chunks/useTheme-yoEfuNvB.js +417 -0
- package/dist/chunks/{utils-DaKwZixu.js → utils-C7Yjsqk-.js} +9 -10
- package/dist/chunks/{utils-D2P_fCSp.js → utils-DFnkOeYP.js} +25 -26
- package/dist/chunks/utils-DTWXs4YX.js +14 -0
- package/dist/chunks/{utils-CFL9veAf.js → utils-D_WP3vZz.js} +12 -13
- package/dist/chunks/utils-Da9LXXQ0.js +28 -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 +7 -8
- package/dist/components/Containers/CLCard/CLCard.js +1 -1
- package/dist/components/Containers/CLCarousel/CLCarousel.js +3 -3
- package/dist/components/Containers/CLDisclosure/CLDisclosure.js +6 -6
- 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 +1 -1
- 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 +7 -7
- 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 +4 -4
- package/dist/components/Popups/CLToast/CLToast.js +1 -1
- package/dist/components/Providers/CLThemeProvider/CLThemeProvider.js +10 -8
- package/dist/components/Providers/CLThemeProvider/base-theme.d.ts +0 -26
- package/dist/components/Providers/CLThemeProvider/index.d.ts +2 -0
- package/dist/components/Providers/CLToastProvider/CLToastProvider.js +1 -1
- package/dist/components/Typography/CLHeading/CLHeading.js +1 -1
- package/dist/components/Typography/CLText/CLText.js +1 -1
- package/dist/composables/useTheme.d.ts +26 -0
- package/package.json +4 -1
- package/dist/chunks/utils-DYzsHCvl.js +0 -15
- package/dist/chunks/utils-Dg9e9uLW.js +0 -29
- package/dist/chunks/utils-Dz_31dEE.js +0 -387
|
@@ -1,19 +1,18 @@
|
|
|
1
1
|
import './CLTable.css';
|
|
2
2
|
import { defineComponent as b, useCssVars as C, computed as u, createElementBlock as a, openBlock as d, normalizeClass as s, unref as n, createElementVNode as y, createCommentVNode as w, renderSlot as c, Fragment as g, renderList as k, normalizeStyle as v, createVNode as L, withCtx as x } from "vue";
|
|
3
3
|
import { CLMode as p, CLColorVariants as T, CLColors as B, CLTableTypes as H, CLTextTypes as N } from "../../index.js";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { _ as S } from "../../chunks/CLText.vue_vue_type_style_index_0_lang-CTc6UiQV.js";
|
|
4
|
+
import { u as R, g as V, c as $, a as A } from "../../chunks/useTheme-yoEfuNvB.js";
|
|
5
|
+
import { _ as S } from "../../chunks/CLText.vue_vue_type_style_index_0_lang-V7LSR7DF.js";
|
|
7
6
|
const F = () => {
|
|
8
|
-
const { borderRadius: o, colors: l, darkMode: e } =
|
|
7
|
+
const { borderRadius: o, colors: l, darkMode: e } = R(), i = e.value ? p.Dark : p.Light, t = V({
|
|
9
8
|
color: B.Neutral,
|
|
10
9
|
colors: l.value,
|
|
11
10
|
mode: i,
|
|
12
11
|
variant: T.Outline
|
|
13
12
|
});
|
|
14
13
|
let r;
|
|
15
|
-
return o.value && (r =
|
|
16
|
-
|
|
14
|
+
return o.value && (r = $`&:not([class*='clll-table--rounded-']){&.clll-table-container.clll-table--rounded{border-radius:var(--clll-${o.value})}}`), A(
|
|
15
|
+
$`&.clll-table--bordered{border-color:${t?.border};border-style:solid;border-width:1px;.clll-table{.clll-table__header{.clll-table__row{.clll-table__cell{border-right-color:${t?.border};border-right-style:solid;border-right-width:1px}}}.clll-table__body{.clll-table__row{border-bottom-color:${t?.border};border-bottom-style:solid;border-bottom-width:1px;.clll-table__cell{border-right-color:${t?.border};border-right-style:solid;border-right-width:1px}}}.clll-table__footer{.clll-table__row{.clll-table__cell{border-right-color:${t?.border};border-right-style:solid;border-right-width:1px}}}}}.clll-table{&.clll-table--default,&.clll-table--condensed{.clll-table__header{.clll-table__row{border-bottom-color:${t?.border};border-bottom-style:solid;border-bottom-width:1px}}.clll-table__body{.clll-table__row{border-bottom-color:${t?.border};border-bottom-style:solid;border-bottom-width:1px;&:hover{background-color:${t?.hover}}&:last-child{border-bottom:0}}}.clll-table__footer{.clll-table__row{border-top-color:${t?.border};border-top-style:solid;border-top-width:1px}}}&.clll-table--striped{.clll-table__body{.clll-table__row{&:nth-child(even){background-color:${t?.hover}}}}}&.clll-table--vertical-lines{.clll-table__header{.clll-table__row{.clll-table__cell{border-right-color:${t?.border};border-right-style:solid;border-right-width:1px}}}.clll-table__body{.clll-table__row{border-bottom-color:${t?.border};border-bottom-style:solid;border-bottom-width:1px;.clll-table__cell{border-right-color:${t?.border};border-right-style:solid;border-right-width:1px}}}.clll-table__footer{.clll-table__row{.clll-table__cell{border-right-color:${t?.border};border-right-style:solid;border-right-width:1px}}}}.clll-table__cell{&.clll-table__cell--active{background-color:${t?.hover}}}}`,
|
|
17
16
|
r
|
|
18
17
|
);
|
|
19
18
|
}, W = ["data-testid"], z = ["id"], D = { key: 0 }, E = /* @__PURE__ */ b({
|
|
@@ -59,9 +58,9 @@ const F = () => {
|
|
|
59
58
|
class: s(n(t))
|
|
60
59
|
}, [
|
|
61
60
|
o.colWidths?.length ? (d(), a("colgroup", D, [
|
|
62
|
-
(d(!0), a(g, null, k(o.colWidths, (
|
|
61
|
+
(d(!0), a(g, null, k(o.colWidths, (m, f) => (d(), a("col", {
|
|
63
62
|
key: `table-${o.id}-col-${f}`,
|
|
64
|
-
style: v({ width:
|
|
63
|
+
style: v({ width: m })
|
|
65
64
|
}, null, 4))), 128))
|
|
66
65
|
])) : w("", !0),
|
|
67
66
|
c(r.$slots, "default")
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import './CLCarousel.css';
|
|
2
2
|
import { defineComponent as re, computed as u, createElementBlock as c, openBlock as s, Fragment as j, createCommentVNode as C, unref as e, normalizeClass as l, renderList as me, createBlock as he, createElementVNode as y, createVNode as x, withCtx as X, createTextVNode as Y, toDisplayString as q, useCssVars as be, ref as r, onMounted as we, onUnmounted as pe, watch as Ce, renderSlot as Z, nextTick as se } from "vue";
|
|
3
|
-
import { _ as E } from "../../../chunks/CLButton.vue_vue_type_style_index_0_lang-
|
|
4
|
-
import { _ as ce } from "../../../chunks/CLText.vue_vue_type_style_index_0_lang-
|
|
3
|
+
import { _ as E } from "../../../chunks/CLButton.vue_vue_type_style_index_0_lang-CrhjC50b.js";
|
|
4
|
+
import { _ as ce } from "../../../chunks/CLText.vue_vue_type_style_index_0_lang-V7LSR7DF.js";
|
|
5
5
|
import { CLPaginationType as $, CLColorVariants as B, CLSizes as W, CLIconSizes as D, CLIconNames as O, CLTextTypes as xe, CLAlign as A, CLOrder as R, CLColors as ye } from "../../../index.js";
|
|
6
|
-
import { i as H, h as Pe, j as $e } from "../../../chunks/base-theme-
|
|
6
|
+
import { i as H, h as Pe, j as $e } from "../../../chunks/base-theme-C9_Hz5HW.js";
|
|
7
7
|
import { u as Te } from "../../../chunks/useHasSlotContent-DDqs5uK9.js";
|
|
8
8
|
const Q = /* @__PURE__ */ re({
|
|
9
9
|
name: "CLCarouselNavigation",
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import './CLDisclosure.css';
|
|
2
2
|
import { defineComponent as S, ref as g, computed as $, onBeforeUnmount as L, createElementBlock as I, openBlock as i, normalizeClass as o, unref as d, createElementVNode as c, createVNode as T, withCtx as u, createBlock as l, createCommentVNode as s, createTextVNode as b, toDisplayString as y, renderSlot as H } from "vue";
|
|
3
|
-
import { _ as k } from "../../../chunks/CLButton.vue_vue_type_style_index_0_lang-
|
|
4
|
-
import { _ as E } from "../../../chunks/CLHeading.vue_vue_type_style_index_0_lang-
|
|
5
|
-
import { _ as h } from "../../../chunks/CLIcon.vue_vue_type_style_index_0_lang-
|
|
6
|
-
import { _ as N } from "../../../chunks/CLText.vue_vue_type_style_index_0_lang-
|
|
3
|
+
import { _ as k } from "../../../chunks/CLButton.vue_vue_type_style_index_0_lang-CrhjC50b.js";
|
|
4
|
+
import { _ as E } from "../../../chunks/CLHeading.vue_vue_type_style_index_0_lang-DILwNSgn.js";
|
|
5
|
+
import { _ as h } from "../../../chunks/CLIcon.vue_vue_type_style_index_0_lang-CZB8svPf.js";
|
|
6
|
+
import { _ as N } from "../../../chunks/CLText.vue_vue_type_style_index_0_lang-V7LSR7DF.js";
|
|
7
7
|
import { CLColorVariants as R, CLSizes as w, CLTextTypes as A, CLIconSizes as D, CLIconNames as C, CLHeadingTypes as V, CLColors as p, CLBorderRadius as M, CLButtonTypes as U } from "../../../index.js";
|
|
8
|
-
import { d as F } from "../../../chunks/utils-
|
|
9
|
-
import { u as j } from "../../../chunks/useEsc-
|
|
8
|
+
import { d as F } from "../../../chunks/utils-D_WP3vZz.js";
|
|
9
|
+
import { u as j } from "../../../chunks/useEsc-C9QIDZ_8.js";
|
|
10
10
|
const q = ["data-testid"], G = ["id", "aria-labelledby", "aria-hidden"], _ = /* @__PURE__ */ S({
|
|
11
11
|
name: "CLDisclosure",
|
|
12
12
|
__name: "CLDisclosure",
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import './CLCheckbox.css';
|
|
2
2
|
import { defineComponent as T, mergeModels as B, useTemplateRef as z, useModel as S, computed as y, createBlock as r, openBlock as f, withCtx as $, createElementVNode as s, createCommentVNode as C, normalizeClass as i, unref as n, withDirectives as M, vModelCheckbox as V, createVNode as q, createTextVNode as F, toDisplayString as N } from "vue";
|
|
3
|
-
import { _ as I, c as R, a as D } from "../../../chunks/CLInputMessages.vue_vue_type_style_index_0_lang-
|
|
4
|
-
import { _ as X } from "../../../chunks/CLIcon.vue_vue_type_style_index_0_lang-
|
|
5
|
-
import { _ as w } from "../../../chunks/CLText.vue_vue_type_style_index_0_lang-
|
|
3
|
+
import { _ as I, c as R, a as D } from "../../../chunks/CLInputMessages.vue_vue_type_style_index_0_lang-RMOT1TQk.js";
|
|
4
|
+
import { _ as X } from "../../../chunks/CLIcon.vue_vue_type_style_index_0_lang-CZB8svPf.js";
|
|
5
|
+
import { _ as w } from "../../../chunks/CLText.vue_vue_type_style_index_0_lang-V7LSR7DF.js";
|
|
6
6
|
import { CLSizes as o, CLIconSizes as u, CLTextTypes as c, CLIconNames as E, CLColorVariants as H, CLColors as O } from "../../../index.js";
|
|
7
7
|
const U = ["data-testid"], j = ["for", "disabled"], A = ["id", "aria-label", "disabled", "form", "name", "required", "value"], Y = /* @__PURE__ */ T({
|
|
8
8
|
name: "CLCheckbox",
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import './CLInput.css';
|
|
2
2
|
import { defineComponent as v, computed as I, createElementBlock as p, openBlock as n, normalizeClass as x, unref as a, createBlock as m, Fragment as M, createTextVNode as q, toDisplayString as R, createVNode as K, ref as w, watch as T, createCommentVNode as g, mergeModels as N, useTemplateRef as Q, useModel as W, withCtx as Y, createElementVNode as L, withDirectives as Z, vModelDynamic as _, isRef as ee } from "vue";
|
|
3
|
-
import { _ as le, i as te, a as ae } from "../../../chunks/CLInputMessages.vue_vue_type_style_index_0_lang-
|
|
4
|
-
import { _ as ie } from "../../../chunks/CLFormLabel.vue_vue_type_script_setup_true_lang-
|
|
3
|
+
import { _ as le, i as te, a as ae } from "../../../chunks/CLInputMessages.vue_vue_type_style_index_0_lang-RMOT1TQk.js";
|
|
4
|
+
import { _ as ie } from "../../../chunks/CLFormLabel.vue_vue_type_script_setup_true_lang-fddy-FWI.js";
|
|
5
5
|
import { _ as oe } from "../../../chunks/CLFormCharCounter.vue_vue_type_style_index_0_lang-CJ4VrvmR.js";
|
|
6
|
-
import { _ as X } from "../../../chunks/CLIcon.vue_vue_type_style_index_0_lang-
|
|
6
|
+
import { _ as X } from "../../../chunks/CLIcon.vue_vue_type_style_index_0_lang-CZB8svPf.js";
|
|
7
7
|
import { CLSizes as u, CLBorderRadius as H, CLIconSizes as r, CLIconNames as h, CLColors as k, CLColorVariants as S, CLInputTypes as o, CLOrientation as B, CLCharCounterLayout as ne } from "../../../index.js";
|
|
8
|
-
import { _ as ue } from "../../../chunks/CLPill.vue_vue_type_style_index_0_lang-
|
|
9
|
-
import { _ as P } from "../../../chunks/CLButton.vue_vue_type_style_index_0_lang-
|
|
8
|
+
import { _ as ue } from "../../../chunks/CLPill.vue_vue_type_style_index_0_lang-mkIKVHjg.js";
|
|
9
|
+
import { _ as P } from "../../../chunks/CLButton.vue_vue_type_style_index_0_lang-CrhjC50b.js";
|
|
10
10
|
const de = ["data-testid"], E = /* @__PURE__ */ v({
|
|
11
11
|
name: "CLInputPrefix",
|
|
12
12
|
__name: "CLInputPrefix",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import './CLRadioButton.css';
|
|
2
2
|
import { defineComponent as k, mergeModels as x, useModel as T, useTemplateRef as h, computed as f, createBlock as m, openBlock as c, withCtx as $, createElementVNode as n, createCommentVNode as y, normalizeClass as d, unref as u, withDirectives as R, vModelRadio as q, createTextVNode as V, toDisplayString as M } from "vue";
|
|
3
|
-
import { _ as S, c as z, a as F } from "../../../chunks/CLInputMessages.vue_vue_type_style_index_0_lang-
|
|
4
|
-
import { _ as N } from "../../../chunks/CLText.vue_vue_type_style_index_0_lang-
|
|
3
|
+
import { _ as S, c as z, a as F } from "../../../chunks/CLInputMessages.vue_vue_type_style_index_0_lang-RMOT1TQk.js";
|
|
4
|
+
import { _ as N } from "../../../chunks/CLText.vue_vue_type_style_index_0_lang-V7LSR7DF.js";
|
|
5
5
|
import { CLSizes as s, CLTextTypes as i, CLColorVariants as w, CLColors as D } from "../../../index.js";
|
|
6
6
|
const I = ["data-testid"], X = ["for"], E = ["id", "aria-label", "checked", "disabled", "name", "value", "required"], A = /* @__PURE__ */ k({
|
|
7
7
|
name: "CLRadioButton",
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import './CLSelect.css';
|
|
2
2
|
import { defineComponent as B, mergeModels as h, useModel as S, useTemplateRef as q, computed as x, createBlock as f, openBlock as o, withCtx as T, createElementVNode as d, createCommentVNode as b, normalizeClass as r, unref as u, withDirectives as V, createElementBlock as $, Fragment as k, renderList as M, toDisplayString as F, vModelSelect as I, createVNode as N } from "vue";
|
|
3
|
-
import { _ as R, s as D, a as w } from "../../../chunks/CLInputMessages.vue_vue_type_style_index_0_lang-
|
|
4
|
-
import { _ as E } from "../../../chunks/CLFormLabel.vue_vue_type_script_setup_true_lang-
|
|
5
|
-
import { _ as H } from "../../../chunks/CLIcon.vue_vue_type_style_index_0_lang-
|
|
3
|
+
import { _ as R, s as D, a as w } from "../../../chunks/CLInputMessages.vue_vue_type_style_index_0_lang-RMOT1TQk.js";
|
|
4
|
+
import { _ as E } from "../../../chunks/CLFormLabel.vue_vue_type_script_setup_true_lang-fddy-FWI.js";
|
|
5
|
+
import { _ as H } from "../../../chunks/CLIcon.vue_vue_type_style_index_0_lang-CZB8svPf.js";
|
|
6
6
|
import { CLSizes as n, CLIconSizes as s, CLOrientation as y, CLIconNames as O, CLColorVariants as P, CLColors as U } from "../../../index.js";
|
|
7
7
|
const X = ["data-testid"], j = ["id", "aria-label", "disabled", "name", "placeholder", "form", "required"], A = ["value", "selected", "disabled"], Z = /* @__PURE__ */ B({
|
|
8
8
|
name: "CLSelect",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import './CLTextArea.css';
|
|
2
2
|
import { defineComponent as g, mergeModels as $, useTemplateRef as x, useModel as C, computed as L, createBlock as i, openBlock as r, withCtx as B, createElementVNode as u, createCommentVNode as s, normalizeClass as m, unref as c, withDirectives as z, vModelText as v } from "vue";
|
|
3
|
-
import { _ as k, i as T, a as q } from "../../../chunks/CLInputMessages.vue_vue_type_style_index_0_lang-
|
|
4
|
-
import { _ as V } from "../../../chunks/CLFormLabel.vue_vue_type_script_setup_true_lang-
|
|
3
|
+
import { _ as k, i as T, a as q } from "../../../chunks/CLInputMessages.vue_vue_type_style_index_0_lang-RMOT1TQk.js";
|
|
4
|
+
import { _ as V } from "../../../chunks/CLFormLabel.vue_vue_type_script_setup_true_lang-fddy-FWI.js";
|
|
5
5
|
import { _ as w } from "../../../chunks/CLFormCharCounter.vue_vue_type_style_index_0_lang-CJ4VrvmR.js";
|
|
6
6
|
import { CLOrientation as f, CLCharCounterLayout as I, CLColorVariants as F, CLSizes as R, CLColors as M } from "../../../index.js";
|
|
7
7
|
const A = ["data-testid"], N = ["id", "aria-label", "autocomplete", "cols", "disabled", "form", "maxlength", "minlength", "name", "pattern", "placeholder", "readonly", "required", "spellcheck", "rows"], U = /* @__PURE__ */ g({
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import './CLBadge.css';
|
|
2
2
|
import { defineComponent as c, computed as n, createElementBlock as m, openBlock as u, normalizeClass as s, unref as r, createElementVNode as f, toDisplayString as b } from "vue";
|
|
3
3
|
import { CLColorVariants as g, CLColors as p } from "../../../index.js";
|
|
4
|
-
import { b as C } from "../../../chunks/utils-
|
|
4
|
+
import { b as C } from "../../../chunks/utils-DFnkOeYP.js";
|
|
5
5
|
const v = ["data-testid"], h = /* @__PURE__ */ c({
|
|
6
6
|
name: "CLBadge",
|
|
7
7
|
__name: "CLBadge",
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import './CLBanner.css';
|
|
2
2
|
import { defineComponent as v, useCssVars as h, computed as x, createBlock as l, openBlock as n, unref as a, withCtx as s, createElementVNode as m, normalizeClass as r, createElementBlock as b, createCommentVNode as o, createTextVNode as f, toDisplayString as c, createVNode as $ } from "vue";
|
|
3
|
-
import { _ as B } from "../../../chunks/CLA11yButton.vue_vue_type_style_index_0_lang-
|
|
4
|
-
import { _ as C } from "../../../chunks/CLButton.vue_vue_type_style_index_0_lang-
|
|
5
|
-
import { _ as S } from "../../../chunks/CLHeading.vue_vue_type_style_index_0_lang-
|
|
6
|
-
import { _ as k } from "../../../chunks/CLSkeleton.vue_vue_type_style_index_0_lang-
|
|
7
|
-
import { _ as z } from "../../../chunks/CLText.vue_vue_type_style_index_0_lang-
|
|
3
|
+
import { _ as B } from "../../../chunks/CLA11yButton.vue_vue_type_style_index_0_lang-Cdx5rsou.js";
|
|
4
|
+
import { _ as C } from "../../../chunks/CLButton.vue_vue_type_style_index_0_lang-CrhjC50b.js";
|
|
5
|
+
import { _ as S } from "../../../chunks/CLHeading.vue_vue_type_style_index_0_lang-DILwNSgn.js";
|
|
6
|
+
import { _ as k } from "../../../chunks/CLSkeleton.vue_vue_type_style_index_0_lang-E-bZeUWT.js";
|
|
7
|
+
import { _ as z } from "../../../chunks/CLText.vue_vue_type_style_index_0_lang-V7LSR7DF.js";
|
|
8
8
|
import { CLColorVariants as d, CLColors as D, CLAlign as T, CLHeadingTypes as N, CLTextTypes as V, CLSizes as w, CLIconSizes as A, CLIconNames as I } from "../../../index.js";
|
|
9
|
-
import { c as R } from "../../../chunks/utils-
|
|
9
|
+
import { c as R } from "../../../chunks/utils-DFnkOeYP.js";
|
|
10
10
|
const E = ["data-testid"], O = /* @__PURE__ */ v({
|
|
11
11
|
name: "CLBanner",
|
|
12
12
|
__name: "CLBanner",
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import './CLModal.css';
|
|
2
2
|
import { defineComponent as W, useCssVars as F, unref as n, computed as m, useTemplateRef as U, useSlots as Z, ref as j, watch as q, onMounted as A, onBeforeUnmount as G, createElementBlock as g, createCommentVNode as f, openBlock as v, normalizeClass as a, createElementVNode as r, createBlock as p, renderSlot as $, withCtx as J, createTextVNode as K, toDisplayString as P, normalizeStyle as Q } from "vue";
|
|
3
|
-
import { _ as X } from "../../../chunks/CLButton.vue_vue_type_style_index_0_lang-
|
|
4
|
-
import { _ as Y } from "../../../chunks/CLHeading.vue_vue_type_style_index_0_lang-
|
|
3
|
+
import { _ as X } from "../../../chunks/CLButton.vue_vue_type_style_index_0_lang-CrhjC50b.js";
|
|
4
|
+
import { _ as Y } from "../../../chunks/CLHeading.vue_vue_type_style_index_0_lang-DILwNSgn.js";
|
|
5
5
|
import { CLMode as k, CLColors as R, CLColorVariants as T, CLBorderRadius as ee, CLIconSizes as oe, CLIconNames as te, CLHeadingTypes as le } from "../../../index.js";
|
|
6
|
-
import {
|
|
7
|
-
import { u as
|
|
8
|
-
import {
|
|
6
|
+
import { u as ne, g as ae, c as B, a as se } from "../../../chunks/useTheme-yoEfuNvB.js";
|
|
7
|
+
import { u as de } from "../../../chunks/useEsc-C9QIDZ_8.js";
|
|
8
|
+
import { f as S, i as s } from "../../../chunks/base-theme-C9_Hz5HW.js";
|
|
9
9
|
const re = () => {
|
|
10
|
-
const { borderRadius: t, colors: w, darkMode: c } =
|
|
10
|
+
const { borderRadius: t, colors: w, darkMode: c } = ne(), d = c.value ? k.Dark : k.Light, u = ae({
|
|
11
11
|
color: R.Neutral,
|
|
12
12
|
colors: w.value,
|
|
13
13
|
mode: d,
|
|
14
14
|
variant: T.Solid
|
|
15
15
|
}), o = c.value ? "black" : "white";
|
|
16
16
|
let e;
|
|
17
|
-
return t.value && (e = B`&.clll-modal{.clll-modal__window{.clll-modal__content:not([class*='clll-modal__content--rounded-']){border-radius:var(--clll-${t.value});}}}`),
|
|
17
|
+
return t.value && (e = B`&.clll-modal{.clll-modal__window{.clll-modal__content:not([class*='clll-modal__content--rounded-']){border-radius:var(--clll-${t.value});}}}`), se(B`.clll-modal__overlay{background-color:${u?.bg};}.clll-modal__window{.clll-modal__content{background:${o}}}`, e);
|
|
18
18
|
}, ie = ["id", "data-testid"], ce = ["aria-labelledby"], ye = /* @__PURE__ */ W({
|
|
19
19
|
name: "CLModal",
|
|
20
20
|
__name: "CLModal",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import './CLNavSection.css';
|
|
2
2
|
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";
|
|
3
|
-
import { _ as k } from "../../../chunks/CLNavLink.vue_vue_type_script_setup_true_lang-
|
|
4
|
-
import { _ as L } from "../../../chunks/CLText.vue_vue_type_style_index_0_lang-
|
|
3
|
+
import { _ as k } from "../../../chunks/CLNavLink.vue_vue_type_script_setup_true_lang-Ckz9MEj5.js";
|
|
4
|
+
import { _ as L } from "../../../chunks/CLText.vue_vue_type_style_index_0_lang-V7LSR7DF.js";
|
|
5
5
|
import { CLOrientation as h, CLColors as $ } from "../../../index.js";
|
|
6
6
|
const g = ["data-testid"], V = /* @__PURE__ */ f({
|
|
7
7
|
name: "CLNavSection",
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import './CLDropdownMenu.css';
|
|
2
2
|
import { computed as V, ref as L, shallowRef as te, watch as dt, getCurrentScope as ee, onScopeDispose as ne, shallowReadonly as U, unref as R, defineComponent as oe, useCssVars as ie, onBeforeUnmount as re, createElementBlock as Lt, openBlock as St, normalizeClass as mt, createVNode as Rt, createCommentVNode as se, withCtx as At, createTextVNode as le, toDisplayString as ce, normalizeStyle as ae, renderSlot as fe } from "vue";
|
|
3
|
-
import { _ as ue } from "../../../chunks/CLButton.vue_vue_type_style_index_0_lang-
|
|
4
|
-
import { _ as de } from "../../../chunks/CLCard.vue_vue_type_style_index_0_lang-
|
|
5
|
-
import { i as F, f as me } from "../../../chunks/base-theme-
|
|
6
|
-
import { u as he } from "../../../chunks/useEsc-
|
|
3
|
+
import { _ as ue } from "../../../chunks/CLButton.vue_vue_type_style_index_0_lang-CrhjC50b.js";
|
|
4
|
+
import { _ as de } from "../../../chunks/CLCard.vue_vue_type_style_index_0_lang-DVuAcV5A.js";
|
|
5
|
+
import { i as F, f as me } from "../../../chunks/base-theme-C9_Hz5HW.js";
|
|
6
|
+
import { u as he } from "../../../chunks/useEsc-C9QIDZ_8.js";
|
|
7
7
|
import { CLPlacement as we, CLIconSizes as Ot, CLIconNames as ge, CLColorVariants as Dt, CLSizes as pe, CLColors as Tt } from "../../../index.js";
|
|
8
8
|
const et = Math.min, N = Math.max, nt = Math.round, tt = Math.floor, k = (t) => ({
|
|
9
9
|
x: t,
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { s as f, a as l, b as c, c as h, d as
|
|
3
|
-
|
|
1
|
+
import { defineComponent as a, watch as o, createBlock as s, openBlock as i, resolveDynamicComponent as m, withCtx as n, renderSlot as d } from "vue";
|
|
2
|
+
import { s as f, a as l, b as c, c as h, d as p } from "../../../chunks/base-theme-C9_Hz5HW.js";
|
|
3
|
+
import { D as k } from "../../../chunks/base-theme-C9_Hz5HW.js";
|
|
4
|
+
const v = /* @__PURE__ */ a({
|
|
4
5
|
__name: "CLThemeProvider",
|
|
5
6
|
props: {
|
|
6
7
|
tag: { default: "div" },
|
|
7
8
|
themeConfig: {}
|
|
8
9
|
},
|
|
9
|
-
setup(
|
|
10
|
-
const t =
|
|
10
|
+
setup(r) {
|
|
11
|
+
const t = r;
|
|
11
12
|
return f(t.themeConfig), o(
|
|
12
13
|
() => t.themeConfig?.borderRadius,
|
|
13
14
|
(e) => {
|
|
@@ -26,10 +27,10 @@ const v = /* @__PURE__ */ r({
|
|
|
26
27
|
), o(
|
|
27
28
|
() => t.themeConfig?.fontFamily,
|
|
28
29
|
(e) => {
|
|
29
|
-
|
|
30
|
+
p(e);
|
|
30
31
|
}
|
|
31
|
-
), (e,
|
|
32
|
-
default:
|
|
32
|
+
), (e, C) => (i(), s(m(r.tag), { class: "clll-theme-provider" }, {
|
|
33
|
+
default: n(() => [
|
|
33
34
|
d(e.$slots, "default")
|
|
34
35
|
]),
|
|
35
36
|
_: 3
|
|
@@ -38,5 +39,6 @@ const v = /* @__PURE__ */ r({
|
|
|
38
39
|
});
|
|
39
40
|
export {
|
|
40
41
|
v as CLThemeProvider,
|
|
42
|
+
k as DEFAULT_THEME,
|
|
41
43
|
v as default
|
|
42
44
|
};
|
|
@@ -19,30 +19,4 @@ export declare const setColors: (colors: CLPalette) => void;
|
|
|
19
19
|
export declare const setDarkMode: (enabled: boolean) => void;
|
|
20
20
|
export declare const setFontFamily: (font?: string) => void;
|
|
21
21
|
export declare const setupTheme: (config?: CLThemeConfig) => void;
|
|
22
|
-
export declare const useTheme: () => {
|
|
23
|
-
borderRadius: globalThis.Ref<CLBorderRadius | undefined, CLBorderRadius | undefined>;
|
|
24
|
-
colors: globalThis.Ref<{
|
|
25
|
-
primary?: import('../../../index.ts').CLShades | undefined;
|
|
26
|
-
secondary?: import('../../../index.ts').CLShades | undefined;
|
|
27
|
-
neutral?: import('../../../index.ts').CLShades | undefined;
|
|
28
|
-
danger?: import('../../../index.ts').CLShades | undefined;
|
|
29
|
-
warning?: import('../../../index.ts').CLShades | undefined;
|
|
30
|
-
success?: import('../../../index.ts').CLShades | undefined;
|
|
31
|
-
info?: import('../../../index.ts').CLShades | undefined;
|
|
32
|
-
}, CLPalette | {
|
|
33
|
-
primary?: import('../../../index.ts').CLShades | undefined;
|
|
34
|
-
secondary?: import('../../../index.ts').CLShades | undefined;
|
|
35
|
-
neutral?: import('../../../index.ts').CLShades | undefined;
|
|
36
|
-
danger?: import('../../../index.ts').CLShades | undefined;
|
|
37
|
-
warning?: import('../../../index.ts').CLShades | undefined;
|
|
38
|
-
success?: import('../../../index.ts').CLShades | undefined;
|
|
39
|
-
info?: import('../../../index.ts').CLShades | undefined;
|
|
40
|
-
}>;
|
|
41
|
-
darkMode: globalThis.Ref<boolean | undefined, boolean | undefined>;
|
|
42
|
-
fontFamily: globalThis.Ref<string | undefined, string | undefined>;
|
|
43
|
-
setBorderRadius: (radius?: CLBorderRadius) => void;
|
|
44
|
-
setColors: (colors: CLPalette) => void;
|
|
45
|
-
setDarkMode: (enabled: boolean) => void;
|
|
46
|
-
setFontFamily: (font?: string) => void;
|
|
47
|
-
};
|
|
48
22
|
export {};
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { default as CLThemeProviderComponent } from './CLThemeProvider.vue';
|
|
2
|
+
import { DEFAULT_THEME } from './base-theme';
|
|
2
3
|
export { CLThemeProviderComponent as CLThemeProvider };
|
|
4
|
+
export { DEFAULT_THEME };
|
|
3
5
|
export default CLThemeProviderComponent;
|
|
4
6
|
export type CLThemeProvider = InstanceType<typeof CLThemeProviderComponent>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as L, ref as i, provide as g, createElementBlock as k, openBlock as p, createBlock as z, createCommentVNode as B, renderSlot as S, unref as A } from "vue";
|
|
2
|
-
import { _ as $ } from "../../../chunks/CLToast.vue_vue_type_style_index_0_lang-
|
|
2
|
+
import { _ as $ } from "../../../chunks/CLToast.vue_vue_type_style_index_0_lang-DOI4DZGg.js";
|
|
3
3
|
const x = { class: "clll-toast-provider" }, N = /* @__PURE__ */ L({
|
|
4
4
|
name: "CLToastProvider",
|
|
5
5
|
__name: "CLToastProvider",
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { Ref } from 'vue';
|
|
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
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Composable to access the theme state from anywhere in the application.
|
|
15
|
+
* Must be used within a CLThemeProvider component.
|
|
16
|
+
*
|
|
17
|
+
* @returns Theme state object with refs and setter functions
|
|
18
|
+
*
|
|
19
|
+
* @example
|
|
20
|
+
* ```typescript
|
|
21
|
+
* const theme = useTheme()
|
|
22
|
+
* console.log(theme.darkMode.value)
|
|
23
|
+
* theme.setDarkMode(true)
|
|
24
|
+
* ```
|
|
25
|
+
*/
|
|
26
|
+
export declare const useTheme: () => ThemeState;
|
package/package.json
CHANGED
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"ui components",
|
|
18
18
|
"vuejs"
|
|
19
19
|
],
|
|
20
|
-
"version": "3.16.
|
|
20
|
+
"version": "3.16.1",
|
|
21
21
|
"license": "MIT",
|
|
22
22
|
"type": "module",
|
|
23
23
|
"scripts": {
|
|
@@ -164,6 +164,9 @@
|
|
|
164
164
|
"types": "./dist/components/Typography/CLText/CLText.vue.d.ts",
|
|
165
165
|
"import": "./dist/components/Typography/CLText/CLText.js"
|
|
166
166
|
},
|
|
167
|
+
"./composables/useTheme": {
|
|
168
|
+
"types": "./dist/composables/useTheme.d.ts"
|
|
169
|
+
},
|
|
167
170
|
"./composables/useToast": {
|
|
168
171
|
"types": "./dist/composables/useToast.d.ts"
|
|
169
172
|
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { CLMode as o, CLColors as c, CLColorVariants as l } from "../index.js";
|
|
2
|
-
import { g as m, a as p, c as i } from "./utils-Dz_31dEE.js";
|
|
3
|
-
import { u as n } from "./base-theme-B89pbWnC.js";
|
|
4
|
-
const x = ({ color: e = c.Neutral }) => {
|
|
5
|
-
const { colors: r, darkMode: t } = n(), a = t.value ? o.Light : o.Dark, s = m({
|
|
6
|
-
color: e,
|
|
7
|
-
colors: r.value,
|
|
8
|
-
mode: a,
|
|
9
|
-
variant: l.Text
|
|
10
|
-
});
|
|
11
|
-
return p(i`color: ${s?.textBody};white-space: pre-wrap;`);
|
|
12
|
-
};
|
|
13
|
-
export {
|
|
14
|
-
x as t
|
|
15
|
-
};
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { CLMode as a, CLColorVariants as u } from "../index.js";
|
|
2
|
-
import { g as b, c as s, a as h, f as v } from "./utils-Dz_31dEE.js";
|
|
3
|
-
import { u as m } from "./base-theme-B89pbWnC.js";
|
|
4
|
-
const $ = ({ color: d }) => {
|
|
5
|
-
const { borderRadius: r, colors: e, darkMode: c } = m(), n = c.value ? a.Dark : a.Light, t = b({
|
|
6
|
-
color: d,
|
|
7
|
-
colors: e.value,
|
|
8
|
-
mode: n,
|
|
9
|
-
variant: u.Solid
|
|
10
|
-
});
|
|
11
|
-
let l;
|
|
12
|
-
return r.value && (l = s`&.clll-a11y__button.--rounded{border-radius:var(--clll-${r.value});}`), h(s`${v({ borderColor: t?.focus, shadowColor: t?.shadow, shadowWidth: "--clll-unit-0" })}`, l);
|
|
13
|
-
}, g = ({
|
|
14
|
-
color: d,
|
|
15
|
-
variant: r = u.Soft
|
|
16
|
-
}) => {
|
|
17
|
-
const { borderRadius: e, colors: c, darkMode: n } = m(), t = n.value ? a.Dark : a.Light, l = r === u.Outline, o = b({
|
|
18
|
-
color: d,
|
|
19
|
-
colors: c.value,
|
|
20
|
-
mode: t,
|
|
21
|
-
variant: r
|
|
22
|
-
});
|
|
23
|
-
let i;
|
|
24
|
-
return e.value && (i = s`&:not([class*='clll-button--rounded-']){&.clll-button.clll-button--rounded{border-radius:var(--clll-${e.value})}}`), h(s`.clll-button__content,.clll-icon{color:${o?.text};}border-color:${l ? o?.border : "transparent"};background-color:${o?.bg ?? "transparent"};&:hover:not([disabled]){background-color:${o?.hover ?? "transparent"};border-color:${l ? o?.borderHover : "transparent"};}${v({ borderColor: o?.focus, shadowColor: o?.shadow, shadowWidth: "--clll-unit-0" })}`, i);
|
|
25
|
-
};
|
|
26
|
-
export {
|
|
27
|
-
$ as a,
|
|
28
|
-
g as b
|
|
29
|
-
};
|