@codeandfunction/callaloo 4.9.3 → 4.9.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.
Files changed (110) hide show
  1. package/dist/callaloo.global.js +1 -1
  2. package/dist/chunks/CLA11yButton.vue_vue_type_style_index_0_lang-BHF3fJsf.js +2 -0
  3. package/dist/chunks/CLButton.vue_vue_type_style_index_0_lang-3vGTMU-k.js +2 -0
  4. package/dist/chunks/CLCalendar.vue_vue_type_style_index_0_lang-BAfGE35e.js +2 -0
  5. package/dist/chunks/CLCard.vue_vue_type_style_index_0_lang-DPQxSLkQ.js +2 -0
  6. package/dist/chunks/CLFormCharCounter.vue_vue_type_style_index_0_lang-BYHbqaf0.js +2 -0
  7. package/dist/chunks/CLFormLabel.vue_vue_type_script_setup_true_lang-BPwFZq94.js +1 -0
  8. package/dist/chunks/CLHeading.vue_vue_type_style_index_0_lang-CsmrsD6c.js +2 -0
  9. package/dist/chunks/CLIcon.vue_vue_type_style_index_0_lang-yF4CdZbV.js +2 -0
  10. package/dist/chunks/CLInputMessages.vue_vue_type_style_index_0_lang-DCByJ7MB.js +2 -0
  11. package/dist/chunks/CLLink.vue_vue_type_style_index_0_lang-CCyY39MJ.js +2 -0
  12. package/dist/chunks/CLModal.vue_vue_type_style_index_0_lang-CwdYGfO9.js +2 -0
  13. package/dist/chunks/CLNavLink.vue_vue_type_script_setup_true_lang-Ds2aJNK9.js +1 -0
  14. package/dist/chunks/CLPill.vue_vue_type_style_index_0_lang-BVsLNnfE.js +2 -0
  15. package/dist/chunks/CLSkeleton.vue_vue_type_style_index_0_lang-BmjT9fQ_.js +2 -0
  16. package/dist/chunks/CLSpinner.vue_vue_type_style_index_0_lang-DgZLt9T1.js +2 -0
  17. package/dist/chunks/CLText.vue_vue_type_style_index_0_lang-CMXJdE-D.js +2 -0
  18. package/dist/chunks/CLToast.vue_vue_type_style_index_0_lang-BIehrtqC.js +2 -0
  19. package/dist/chunks/context-CRxE5KWX.js +1 -0
  20. package/dist/chunks/context-JmPivI9V.js +1 -0
  21. package/dist/chunks/floating-ui.vue-C0JWy0Dz.js +1 -0
  22. package/dist/chunks/helper-C542dSLs.js +1 -0
  23. package/dist/chunks/icons-6SVrmx7c.js +1 -0
  24. package/dist/chunks/utils-C1iUBPIL.js +1 -0
  25. package/dist/chunks/utils-CCWSWRuR.js +1 -0
  26. package/dist/chunks/utils-CYywa195.js +1 -0
  27. package/dist/chunks/utils-DVxwAjJ4.js +1 -0
  28. package/dist/chunks/utils-Dst7nzvj.js +1 -0
  29. package/dist/chunks/utils-MElq6rY3.js +1 -0
  30. package/dist/components/Buttons/CLA11yButton/CLA11yButton.js +1 -5
  31. package/dist/components/Buttons/CLButton/CLButton.js +1 -5
  32. package/dist/components/CLIcon/CLIcon.js +1 -5
  33. package/dist/components/CLTable/CLTable.js +1 -192
  34. package/dist/components/Containers/CLCard/CLCard.js +1 -5
  35. package/dist/components/Containers/CLCarousel/CLCarousel.js +1 -544
  36. package/dist/components/Containers/CLDisclosure/CLDisclosure.js +1 -139
  37. package/dist/components/Containers/CLDrawer/CLDrawer.js +1 -119
  38. package/dist/components/Form/CLCalendar/CLCalendar.js +1 -5
  39. package/dist/components/Form/CLCheckbox/CLCheckbox.js +1 -150
  40. package/dist/components/Form/CLInput/CLInput.js +1 -450
  41. package/dist/components/Form/CLInputDatePicker/CLInputDatePicker.js +1 -178
  42. package/dist/components/Form/CLRadioButton/CLRadioButton.js +1 -135
  43. package/dist/components/Form/CLSelect/CLSelect.js +1 -140
  44. package/dist/components/Form/CLTextArea/CLTextArea.js +1 -149
  45. package/dist/components/Indicators/CLBadge/CLBadge.js +1 -40
  46. package/dist/components/Indicators/CLBanner/CLBanner.js +1 -145
  47. package/dist/components/Indicators/CLPill/CLPill.js +1 -5
  48. package/dist/components/Indicators/CLProgress/CLProgress.js +1 -64
  49. package/dist/components/Loading/CLSkeleton/CLSkeleton.js +1 -5
  50. package/dist/components/Loading/CLSpinner/CLSpinner.js +1 -5
  51. package/dist/components/Modals/CLModal/CLModal.js +1 -5
  52. package/dist/components/Modals/CLModalDatePicker/CLModalDatePicker.css +1 -1
  53. package/dist/components/Modals/CLModalDatePicker/CLModalDatePicker.js +1 -182
  54. package/dist/components/Modals/CLModalDatePicker/CLModalDatePicker.vue.d.ts +3 -0
  55. package/dist/components/Navigation/CLLink/CLLink.js +1 -5
  56. package/dist/components/Navigation/CLNavLink/CLNavLink.js +1 -5
  57. package/dist/components/Navigation/CLNavSection/CLNavSection.js +1 -54
  58. package/dist/components/Popups/CLDropdownMenu/CLDropdownMenu.js +1 -150
  59. package/dist/components/Popups/CLDropdownMenu/CLDropdownMenu.vue.d.ts +1 -1
  60. package/dist/components/Popups/CLToast/CLToast.js +1 -5
  61. package/dist/components/Providers/CLThemeProvider/CLThemeProvider.js +1 -8
  62. package/dist/components/Providers/CLToastProvider/CLToastProvider.js +1 -7
  63. package/dist/components/Typography/CLHeading/CLHeading.js +1 -5
  64. package/dist/components/Typography/CLText/CLText.js +1 -5
  65. package/dist/composables/useDateInputMask.js +1 -38
  66. package/dist/composables/useDatePicker.js +1 -140
  67. package/dist/composables/useDropdown.js +1 -49
  68. package/dist/composables/useElementSize.js +1 -73
  69. package/dist/composables/useEsc.js +1 -19
  70. package/dist/composables/useHasSlotContent.js +1 -14
  71. package/dist/composables/useTheme.js +1 -40
  72. package/dist/composables/useToast.js +1 -17
  73. package/dist/index.js +1 -30
  74. package/dist/styles.css +1 -1
  75. package/package.json +20 -20
  76. package/dist/chunks/CLA11yButton.vue_vue_type_style_index_0_lang-zGLnnSIW.js +0 -47
  77. package/dist/chunks/CLButton.vue_vue_type_style_index_0_lang-MvhnNzVW.js +0 -136
  78. package/dist/chunks/CLCalendar.vue_vue_type_style_index_0_lang-Bz1JdT1A.js +0 -163
  79. package/dist/chunks/CLCard.vue_vue_type_style_index_0_lang-Sre7UYZd.js +0 -263
  80. package/dist/chunks/CLFormCharCounter.vue_vue_type_style_index_0_lang-CJ4VrvmR.js +0 -39
  81. package/dist/chunks/CLFormLabel.vue_vue_type_script_setup_true_lang-CIQxM6aH.js +0 -46
  82. package/dist/chunks/CLHeading.vue_vue_type_style_index_0_lang-DH5oJc1C.js +0 -52
  83. package/dist/chunks/CLIcon.vue_vue_type_style_index_0_lang-Dhr2tI-g.js +0 -113
  84. package/dist/chunks/CLInputMessages.vue_vue_type_style_index_0_lang-DTWvAACK.js +0 -149
  85. package/dist/chunks/CLLink.vue_vue_type_style_index_0_lang-BXysZqLn.js +0 -69
  86. package/dist/chunks/CLModal.vue_vue_type_style_index_0_lang-BDyONfaQ.js +0 -176
  87. package/dist/chunks/CLNavLink.vue_vue_type_script_setup_true_lang-Dhnmfa9W.js +0 -44
  88. package/dist/chunks/CLPill.vue_vue_type_style_index_0_lang-BQim03ge.js +0 -94
  89. package/dist/chunks/CLSkeleton.vue_vue_type_style_index_0_lang-DduoX6Cu.js +0 -31
  90. package/dist/chunks/CLSpinner.vue_vue_type_style_index_0_lang-DlXqnsi8.js +0 -55
  91. package/dist/chunks/CLText.vue_vue_type_style_index_0_lang-B-L8ECJL.js +0 -48
  92. package/dist/chunks/CLThemeProvider.vue_vue_type_script_setup_true_lang-jaJYKZL8.js +0 -59
  93. package/dist/chunks/CLToast.vue_vue_type_style_index_0_lang-CzSDeL_X.js +0 -202
  94. package/dist/chunks/CLToastProvider.vue_vue_type_script_setup_true_lang-DkGK0H4Z.js +0 -35
  95. package/dist/chunks/context-CEvx70FY.js +0 -264
  96. package/dist/chunks/context-dkA4VoF7.js +0 -4
  97. package/dist/chunks/floating-ui.vue-Fx4CxKut.js +0 -1057
  98. package/dist/chunks/helper-qUkciePY.js +0 -81
  99. package/dist/chunks/icons-DllZKtC2.js +0 -4
  100. package/dist/chunks/magic-string.es-uPKorP4O.js +0 -663
  101. package/dist/chunks/utils-BfOa9ckr.js +0 -24
  102. package/dist/chunks/utils-BjZURPWx.js +0 -51
  103. package/dist/chunks/utils-C1xiySYN.js +0 -41
  104. package/dist/chunks/utils-D00IXMTR.js +0 -25
  105. package/dist/chunks/utils-eBt2zUZl.js +0 -17
  106. package/dist/chunks/utils-nD3K7jh9.js +0 -85
  107. package/dist/chunks/vue-test-utils.esm-bundler-BeQTU4qG.js +0 -18679
  108. package/dist/composables/useDatePicker.spec.js +0 -232
  109. package/dist/composables/useTheme.spec.js +0 -88
  110. package/dist/composables/useToast.spec.js +0 -45
@@ -1,69 +0,0 @@
1
- import '../components/Navigation/CLLink/CLLink.css';
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-Dhr2tI-g.js";
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-D00IXMTR.js";
6
- import { useTheme as D } from "../composables/useTheme.js";
7
- const H = ({
8
- color: e = u.Primary,
9
- underline: r = !0
10
- }) => {
11
- const { colors: t, darkMode: o } = D(), a = o.value ? d.Dark : d.Light, l = S({
12
- color: e,
13
- colors: t.value,
14
- mode: a,
15
- variant: $.Outline
16
- }), i = l?.border, m = l?.textDisabled, c = l?.textBody, f = o.value ? l?.borderHover : l?.textDisabled;
17
- return {
18
- "--clll-link-text-color": c ?? "inherit",
19
- "--clll-link-text-hover": f ?? "inherit",
20
- "--clll-link-underline-color": r ? i ?? "transparent" : "transparent",
21
- "--clll-link-underline-hover": r ? m ?? "transparent" : "transparent",
22
- "--clll-link-focus-border": c ?? "transparent",
23
- "--clll-link-focus-shadow": l?.shadow ?? "transparent"
24
- };
25
- }, T = ["aria-label", "data-testid", "href", "rel", "target"], P = /* @__PURE__ */ k({
26
- name: "CLLink",
27
- __name: "CLLink",
28
- props: {
29
- ariaLabel: {},
30
- color: { default: u.Primary },
31
- external: { type: Boolean, default: !1 },
32
- href: {},
33
- onClick: {},
34
- rel: { default: "noreferrer noopener" },
35
- target: { default: B.Self },
36
- testId: { default: "clll-link" },
37
- underline: { type: Boolean, default: !0 }
38
- },
39
- setup(e) {
40
- const r = e, t = "clll-link", o = C(() => [
41
- t,
42
- `${t}--${r.color}`,
43
- `${t}--${r.external ? "external" : "internal"}`,
44
- r.underline ? `${t}--underline` : `${t}--nounderline`
45
- ]);
46
- return (a, l) => (s(), x("a", {
47
- "aria-label": e.ariaLabel,
48
- class: b(n(o)),
49
- "data-testid": e.testId,
50
- href: e.href,
51
- rel: e.external ? e.rel : "",
52
- target: e.target,
53
- style: L(n(H)({ color: e.color, underline: e.underline })),
54
- onClick: l[0] || (l[0] = //@ts-ignore
55
- (...i) => e.onClick && e.onClick(...i))
56
- }, [
57
- h(a.$slots, "default"),
58
- e.external ? (s(), v(n(g), {
59
- key: 0,
60
- color: e.color,
61
- name: n(I).ExternalLink,
62
- size: n(z).Tiny
63
- }, null, 8, ["color", "name", "size"])) : y("", !0)
64
- ], 14, T));
65
- }
66
- });
67
- export {
68
- P as _
69
- };
@@ -1,176 +0,0 @@
1
- import '../components/Modals/CLModal/CLModal.css';
2
- 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";
3
- import { _ as P } from "./CLButton.vue_vue_type_style_index_0_lang-MvhnNzVW.js";
4
- import { _ as Q } from "./CLHeading.vue_vue_type_style_index_0_lang-DH5oJc1C.js";
5
- 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";
6
- import { g as te } from "./utils-D00IXMTR.js";
7
- import { useTheme as ne } from "../composables/useTheme.js";
8
- import { useEsc as le } from "../composables/useEsc.js";
9
- import { c as S, i as a } from "./helper-qUkciePY.js";
10
- const se = () => {
11
- const { colors: t, darkMode: _ } = ne(), f = _.value ? k.Dark : k.Light, r = te({
12
- color: T.Neutral,
13
- colors: t.value,
14
- mode: f,
15
- variant: N.Solid
16
- }), c = _.value ? "black" : "white";
17
- return {
18
- "--clll-modal-overlay-bg": r?.bg ?? "transparent",
19
- "--clll-modal-content-bg": c,
20
- "--clll-modal-theme-radius": "var(--clll-default-radius)"
21
- };
22
- }, ae = ["id", "data-testid"], re = ["aria-labelledby"], we = /* @__PURE__ */ W({
23
- name: "CLModal",
24
- __name: "CLModal",
25
- props: {
26
- borderRadius: { default: void 0 },
27
- close: { type: Boolean, default: !0 },
28
- closeBorderRadius: { default: X.Full },
29
- dismissible: { type: Boolean, default: !0 },
30
- fullscreen: { type: Boolean, default: !1 },
31
- isOpen: { type: Boolean, default: !1 },
32
- maxWidth: { default: "640px" },
33
- modalId: {},
34
- onClose: { type: Function, default: void 0 },
35
- overlay: { type: Boolean, default: !0 },
36
- testId: { default: "clll-modal" },
37
- title: { default: void 0 },
38
- zIndex: { default: 100 }
39
- },
40
- emits: ["modal-open", "modal-close"],
41
- setup(t, { emit: _ }) {
42
- const f = _, r = F("modal-window"), c = U(), o = t, e = "clll-modal", x = "clll-prevent-scroll", u = Z(), I = () => {
43
- a && window?.document.body.classList.add(x);
44
- }, C = () => {
45
- a && window?.document.body.classList.remove(x);
46
- }, R = m(() => [
47
- e
48
- ]), E = m(() => [
49
- `${e}__window`,
50
- o.fullscreen ? `${e}__window--fullscreen` : ""
51
- ]), M = m(() => [
52
- `${e}__content`,
53
- o.borderRadius ? `${e}__content--${o.borderRadius}` : "",
54
- o.close ? `${e}__content--has-close-button` : `${e}__content--has-no-close-button`,
55
- c.body ? `${e}__content--has-body` : `${e}__content--has-no-body`,
56
- c.footer ? `${e}__content--has-footer` : `${e}__content--has-no-footer`,
57
- c.header || o.title ? `${e}__content--has-header` : `${e}__content--has-no-header`,
58
- o.title ? `${e}__content--has-title` : `${e}__content--has-no-title`
59
- ]), O = m(() => o.zIndex === "auto" || S(o.zIndex) ? o.zIndex : o.zIndex.toString()), V = m(() => o.zIndex === "auto" ? o.zIndex : ((S(o.zIndex) ? parseInt(o.zIndex, 10) : o.zIndex) + 100).toString()), H = (s) => {
60
- try {
61
- const i = s?.target, g = r.value;
62
- return a && g && !g.contains(i) ? !0 : void 0;
63
- } catch (i) {
64
- console.error(i);
65
- return;
66
- }
67
- }, b = (s) => {
68
- try {
69
- H(s) && (a && window.removeEventListener("mousedown", b), L());
70
- } catch (i) {
71
- console.error(i);
72
- }
73
- }, h = () => {
74
- a && window.removeEventListener("mousedown", b);
75
- }, z = () => {
76
- a && (u.value && a && window.clearTimeout(u.value), h(), C());
77
- }, L = () => {
78
- o.isOpen && (o.onClose?.(), z());
79
- };
80
- j(o, (s) => {
81
- s.isOpen ? (f("modal-open"), I(), r.value && r.value.focus(), a && s.dismissible && (h(), u.value = window.setTimeout(() => {
82
- window.addEventListener("mousedown", b);
83
- }, 100))) : (r.value && r.value.blur(), C(), h(), u.value && a && window.clearTimeout(u.value), f("modal-close"));
84
- }), q(() => {
85
- o.isOpen && a && (I(), r.value && r.value.focus());
86
- });
87
- const { clearEventListeners: D } = le({ escHandler: o.dismissible ? L : void 0 });
88
- return A(() => {
89
- z(), D();
90
- }), (s, i) => t.isOpen ? (w(), p("div", {
91
- key: 0,
92
- id: t.modalId,
93
- class: l(n(R)),
94
- "data-testid": t.testId,
95
- style: y({ ...n(se)(), zIndex: n(O) })
96
- }, [
97
- d("div", {
98
- class: l(n(E)),
99
- style: y({ zIndex: n(V) })
100
- }, [
101
- d("div", {
102
- ref: "modal-window",
103
- "aria-modal": "true",
104
- "aria-labelledby": `${e}__content__header__title`,
105
- class: l(n(M)),
106
- role: "dialog",
107
- tabindex: -1,
108
- style: y({ "--clll-modal-max-width": t.maxWidth })
109
- }, [
110
- d("div", {
111
- class: l(`${e}__close-button`)
112
- }, [
113
- t.onClose && t.close ? (w(), B(n(P), {
114
- key: 0,
115
- "aria-label": "Close modal",
116
- "border-radius": t.closeBorderRadius,
117
- color: n(T).Neutral,
118
- "icon-before": n(ee).Delete,
119
- "icon-size": n(Y).Tiny,
120
- "on-click": t.onClose,
121
- "test-id": `${e}__close-button`,
122
- variant: n(N).Text
123
- }, null, 8, ["border-radius", "color", "icon-before", "icon-size", "on-click", "test-id", "variant"])) : v("", !0)
124
- ], 2),
125
- d("div", {
126
- class: l(`${e}__content__header`)
127
- }, [
128
- d("div", {
129
- class: l(`${e}__content__title`)
130
- }, [
131
- d("div", {
132
- class: l(`${e}__content__header__container`)
133
- }, [
134
- t.title ? (w(), B(n(Q), {
135
- key: 0,
136
- id: `${e}__content__header__title`,
137
- class: l(`${e}__content__header__title`),
138
- type: n(oe).Section
139
- }, {
140
- default: G(() => [
141
- J(K(t.title), 1)
142
- ]),
143
- _: 1
144
- }, 8, ["id", "class", "type"])) : v("", !0),
145
- $(s.$slots, "header")
146
- ], 2)
147
- ], 2)
148
- ], 2),
149
- d("div", {
150
- class: l(`${e}__content__scroller`)
151
- }, [
152
- d("div", {
153
- class: l(`${e}__content__body`)
154
- }, [
155
- $(s.$slots, "body")
156
- ], 2)
157
- ], 2),
158
- d("div", {
159
- class: l(`${e}__content__footer`)
160
- }, [
161
- $(s.$slots, "footer")
162
- ], 2)
163
- ], 14, re)
164
- ], 6),
165
- t.overlay ? (w(), p("div", {
166
- key: 0,
167
- ref: "overlay-ref",
168
- class: l(`${e}__overlay`),
169
- style: y({ zIndex: t.zIndex })
170
- }, null, 6)) : v("", !0)
171
- ], 14, ae)) : v("", !0);
172
- }
173
- });
174
- export {
175
- we as _
176
- };
@@ -1,44 +0,0 @@
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-BXysZqLn.js";
3
- import { CLColors as k } from "../index.js";
4
- const x = /* @__PURE__ */ i({
5
- name: "CLNavLink",
6
- __name: "CLNavLink",
7
- props: {
8
- ariaLabel: {},
9
- color: { default: k.Neutral },
10
- external: { type: Boolean, default: !1 },
11
- href: {},
12
- id: {},
13
- onClick: {},
14
- rel: { default: "noreferrer noopener" },
15
- target: {},
16
- testId: { default: "clll-navlink" }
17
- },
18
- emits: ["click"],
19
- setup(e, { emit: a }) {
20
- const l = e, r = a, n = (t) => {
21
- l.onClick && l.onClick(t), r("click", t);
22
- };
23
- return (t, s) => (c(), o(d(u), {
24
- id: e.id,
25
- "aria-label": e.ariaLabel,
26
- color: e.color,
27
- "data-testid": e.testId,
28
- external: e.external,
29
- href: e.href,
30
- rel: e.rel,
31
- target: e.target,
32
- underline: !e.onClick,
33
- onClick: n
34
- }, {
35
- default: f(() => [
36
- m(t.$slots, "default")
37
- ]),
38
- _: 3
39
- }, 8, ["id", "aria-label", "color", "data-testid", "external", "href", "rel", "target", "underline"]));
40
- }
41
- });
42
- export {
43
- x as _
44
- };
@@ -1,94 +0,0 @@
1
- import '../components/Indicators/CLPill/CLPill.css';
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-MvhnNzVW.js";
4
- import { _ as f } from "./CLIcon.vue_vue_type_style_index_0_lang-Dhr2tI-g.js";
5
- import { CLColorVariants as b, CLColors as L, CLIconSizes as $ } from "../index.js";
6
- import { p as C } from "./utils-nD3K7jh9.js";
7
- const x = ["data-testid"], E = /* @__PURE__ */ y({
8
- name: "CLPill",
9
- __name: "CLPill",
10
- props: {
11
- color: { default: L.Neutral },
12
- count: {},
13
- elevated: { type: Boolean, default: !1 },
14
- icon: {},
15
- iconFilled: { type: Boolean, default: !1 },
16
- label: {},
17
- onClick: {},
18
- rounded: { type: Boolean, default: !0 },
19
- testId: { default: "clll-pill" },
20
- variant: { default: b.Soft }
21
- },
22
- setup(e) {
23
- const n = e, l = "clll-pill", k = s(() => [
24
- l,
25
- `${l}--${n.color}--${n.variant}`,
26
- n.count ? `${l}--has-count` : "",
27
- n.elevated ? `${l}--elevated` : "",
28
- n.icon ? `${l}--has-icon` : `${l}--has-noicon`,
29
- n.rounded ? `${l}--rounded` : ""
30
- ]), v = s(() => [
31
- l,
32
- `${l}--clickable`,
33
- `${l}--${n.color}--${n.variant}`,
34
- n.count ? `${l}--has-count` : "",
35
- n.icon ? `${l}--has-icon` : `${l}--has-noicon`,
36
- n.rounded ? `${l}--rounded` : ""
37
- ]);
38
- return (F, S) => (a(), i(h, null, [
39
- e.onClick ? o("", !0) : (a(), i("div", {
40
- key: 0,
41
- class: c(t(k)),
42
- "data-testid": e.testId,
43
- style: m(t(C)({ color: e.color, variant: e.variant }))
44
- }, [
45
- e.icon ? (a(), r(t(f), {
46
- key: 0,
47
- filled: e.iconFilled,
48
- name: e.icon,
49
- size: t($).Tiny
50
- }, null, 8, ["filled", "name", "size"])) : o("", !0),
51
- u("span", {
52
- class: c(`${l}__label`)
53
- }, d(e.label), 3),
54
- e.count ? (a(), i("span", {
55
- key: 1,
56
- class: c(`${l}__count`)
57
- }, d(e.count), 3)) : o("", !0)
58
- ], 14, x)),
59
- e.onClick ? (a(), r(t(B), {
60
- key: 1,
61
- color: e.color,
62
- "on-click": e.onClick,
63
- variant: e.variant,
64
- pill: "",
65
- rounded: e.rounded
66
- }, {
67
- default: z(() => [
68
- u("div", {
69
- class: c(t(v)),
70
- style: m(t(C)({ color: e.color, variant: e.variant }))
71
- }, [
72
- e.icon ? (a(), r(t(f), {
73
- key: 0,
74
- filled: e.iconFilled,
75
- name: e.icon,
76
- size: t($).Tiny
77
- }, null, 8, ["filled", "name", "size"])) : o("", !0),
78
- u("span", {
79
- class: c(`${l}__label`)
80
- }, d(e.label), 3),
81
- e.count ? (a(), i("span", {
82
- key: 1,
83
- class: c(`${l}__count`)
84
- }, d(e.count), 3)) : o("", !0)
85
- ], 6)
86
- ]),
87
- _: 1
88
- }, 8, ["color", "on-click", "variant", "rounded"])) : o("", !0)
89
- ], 64));
90
- }
91
- });
92
- export {
93
- E as _
94
- };
@@ -1,31 +0,0 @@
1
- import '../components/Loading/CLSkeleton/CLSkeleton.css';
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-BfOa9ckr.js";
4
- const h = ["data-testid"], $ = /* @__PURE__ */ d({
5
- name: "CLSkeleton",
6
- __name: "CLSkeleton",
7
- props: {
8
- borderRadius: {},
9
- height: { default: "100%" },
10
- rounded: { type: Boolean, default: !0 },
11
- testId: { default: "clll-skeleton" },
12
- width: { default: "100%" }
13
- },
14
- setup(e) {
15
- const l = e, t = "clll-skeleton", s = a(() => [
16
- t,
17
- l.borderRadius ? `${t}--${l.borderRadius}` : "",
18
- l.rounded ? `${t}--rounded` : `${t}--square`
19
- ]);
20
- return (k, o) => (i(), r("div", {
21
- class: c(n(s)),
22
- "data-testid": e.testId,
23
- style: u({ ...n(f)(), width: e.width, height: e.height })
24
- }, [...o[0] || (o[0] = [
25
- m("div", { class: "clll-skeleton__animation" }, null, -1)
26
- ])], 14, h));
27
- }
28
- });
29
- export {
30
- $ as _
31
- };
@@ -1,55 +0,0 @@
1
- import '../components/Loading/CLSpinner/CLSpinner.css';
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
- import { CLSizes as f, CLPosition as C, CLColors as $, CLAlign as z } from "../index.js";
4
- import { a as L } from "./utils-BfOa9ckr.js";
5
- const _ = ["data-testid"], h = /* @__PURE__ */ d({
6
- name: "CLSpinner",
7
- __name: "CLSpinner",
8
- props: {
9
- align: { default: z.Left },
10
- color: { default: $.Primary },
11
- position: { default: C.Absolute },
12
- size: { default: f.Medium },
13
- testId: { default: "clll-spinner" }
14
- },
15
- setup(l) {
16
- const t = l, e = "clll-spinner", m = n(() => [
17
- e,
18
- `${e}--${t.position}`,
19
- `${e}--${t.color}`,
20
- `${e}--${t.size}`,
21
- `${e}--${t.align}`
22
- ]), p = n(() => [
23
- `${e}__circle`,
24
- `${e}__circle--${t.size}`
25
- ]);
26
- return (g, s) => (i(), r("div", {
27
- class: c(o(m)),
28
- "data-testid": l.testId,
29
- style: u(o(L)({ color: l.color }))
30
- }, [
31
- (i(), r("svg", {
32
- class: c(o(p)),
33
- xmlns: "http://www.w3.org/2000/svg",
34
- fill: "none",
35
- viewBox: "0 0 24 24"
36
- }, [...s[0] || (s[0] = [
37
- a("circle", {
38
- style: { opacity: "0.25" },
39
- cx: "12",
40
- cy: "12",
41
- r: "10",
42
- stroke: "currentColor",
43
- "stroke-width": "4"
44
- }, null, -1),
45
- a("path", {
46
- fill: "currentColor",
47
- d: "M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"
48
- }, null, -1)
49
- ])], 2))
50
- ], 14, _));
51
- }
52
- });
53
- export {
54
- h as _
55
- };
@@ -1,48 +0,0 @@
1
- import '../components/Typography/CLText/CLText.css';
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
- import { CLTextTypes as y, CLColors as $, CLAlign as C } from "../index.js";
4
- import { t as x } from "./utils-eBt2zUZl.js";
5
- const L = /* @__PURE__ */ d({
6
- name: "CLText",
7
- __name: "CLText",
8
- props: {
9
- align: { default: C.Left },
10
- as: { default: "p" },
11
- bold: { type: Boolean, default: !1 },
12
- bolder: { type: Boolean, default: !1 },
13
- color: { default: $.Secondary },
14
- light: { type: Boolean, default: !1 },
15
- medium: { type: Boolean, default: !1 },
16
- testId: { default: "clll-text" },
17
- truncate: { type: Boolean, default: !1 },
18
- type: { default: y.Body }
19
- },
20
- setup(l) {
21
- const t = l, e = "clll-text", a = n(() => [
22
- e,
23
- `${e}--${t.align}`,
24
- `${e}--${t.color}`,
25
- `${e}--${t.truncate ? "wrap" : "nowrap"}`,
26
- `${e}--${t.type}`,
27
- {
28
- [`${e}--mediumbold`]: t.medium,
29
- [`${e}--light`]: t.light,
30
- [`${e}--bold`]: t.bold,
31
- [`${e}--bolder`]: t.bolder
32
- }
33
- ]);
34
- return (s, B) => (f(), r(c(l.as), {
35
- class: u(o(a)),
36
- "data-testid": l.testId,
37
- style: m(o(x)({ color: l.color }))
38
- }, {
39
- default: i(() => [
40
- p(s.$slots, "default")
41
- ]),
42
- _: 3
43
- }, 8, ["class", "data-testid", "style"]));
44
- }
45
- });
46
- export {
47
- L as _
48
- };
@@ -1,59 +0,0 @@
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
- };