@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,202 +0,0 @@
1
- import '../components/Popups/CLToast/CLToast.css';
2
- import { defineComponent as q, ref as n, computed as G, watch as J, onMounted as K, onUnmounted as O, onBeforeUnmount as Q, createElementBlock as D, openBlock as h, normalizeStyle as W, normalizeClass as c, unref as a, createElementVNode as y, createCommentVNode as $, createVNode as M, createBlock as A, withCtx as B, createTextVNode as S, toDisplayString as N } from "vue";
3
- import { _ } from "./CLButton.vue_vue_type_style_index_0_lang-MvhnNzVW.js";
4
- import { _ as X } from "./CLIcon.vue_vue_type_style_index_0_lang-Dhr2tI-g.js";
5
- import { _ as H } from "./CLText.vue_vue_type_style_index_0_lang-B-L8ECJL.js";
6
- import { CLColorVariants as x, CLMode as C, CLColors as g, CLToastPosition as Y, CLIconSizes as P, CLTextTypes as I, CLSizes as ee, CLIconNames as te } from "../index.js";
7
- import { i as U, g as oe, a as ae } from "./helper-qUkciePY.js";
8
- import { useEsc as se } from "../composables/useEsc.js";
9
- import { g as Z } from "./utils-D00IXMTR.js";
10
- import { useTheme as ie } from "../composables/useTheme.js";
11
- const le = ({ color: t }) => {
12
- const { colors: e, darkMode: m } = ie(), i = Z({
13
- color: t,
14
- colors: e.value,
15
- mode: m.value ? C.Light : C.Light,
16
- variant: x.Soft
17
- }), s = Z({
18
- color: g.Neutral,
19
- colors: e.value,
20
- mode: m.value ? C.Light : C.Dark,
21
- variant: x.Text
22
- });
23
- return {
24
- "--clll-toast-bg-color": m.value ? "white" : "#322F35",
25
- // Text override variables
26
- "--clll-toast-text-color": s?.textBody,
27
- // Action button override variables
28
- "--clll-toast-action-button-text-color": i?.text,
29
- "--clll-toast-action-button-bg-color": i?.bg,
30
- "--clll-toast-action-button-hover-color": i?.hover,
31
- // Dismiss button override variables
32
- "--clll-toast-dismiss-button-text-color": s?.text,
33
- "--clll-toast-dismiss-button-bg-color": s?.bg,
34
- "--clll-toast-dismiss-button-hover-color": s?.hover,
35
- // Icon colors
36
- "--clll-toast-icon-bg": i?.bg,
37
- "--clll-toast-icon-color": i?.text,
38
- "--clll-toast-theme-radius": "var(--clll-default-radius)"
39
- };
40
- }, ne = ["data-testid"], d = 300, o = "clll-toast", Te = /* @__PURE__ */ q({
41
- name: "CLToast",
42
- __name: "CLToast",
43
- props: {
44
- actionLabel: {},
45
- borderRadius: {},
46
- color: { default: g.Secondary },
47
- dismissTimer: { default: 5 },
48
- icon: {},
49
- iconSize: { default: P.Small },
50
- iconFilled: { type: Boolean, default: !1 },
51
- message: {},
52
- onAction: {},
53
- onDismiss: {},
54
- position: { default: Y.TopRight },
55
- rounded: { type: Boolean, default: !0 },
56
- testId: { default: "clll-toast" },
57
- title: {},
58
- width: { default: "24rem" }
59
- },
60
- setup(t) {
61
- const e = t, m = n(), i = n(!1), s = n(), L = n(0), l = n(!1), v = n(null), k = n(0), f = n(0), r = n(!1), j = G(() => [
62
- o,
63
- e.borderRadius ? `${o}--${e.borderRadius}` : "",
64
- e.dismissTimer ? `${o}--has-timer` : "",
65
- e.icon ? `${o}--has-icon` : "",
66
- e.message && !e.title ? `${o}--has-messageonly` : "",
67
- i.value ? `${o}--mounted` : "",
68
- e.onAction && e.actionLabel ? `${o}--has-action` : "",
69
- e.rounded ? `${o}--rounded` : `${o}--box`,
70
- e.title && !e.message ? `${o}--has-titleonly` : "",
71
- e.title && e.message ? `${o}--has-titleandmessage` : "",
72
- `${o}--${e.position}`
73
- ]), b = () => {
74
- v.value !== null && (clearTimeout(v.value), v.value = null), s.value?.stop();
75
- }, V = () => {
76
- !e.dismissTimer || l.value || (b(), k.value = Date.now(), f.value = e.dismissTimer * 1e3, r.value = !1, v.value = setTimeout(() => {
77
- !r.value && !l.value && T();
78
- }, f.value));
79
- }, z = () => {
80
- if (!e.dismissTimer || r.value || l.value) return;
81
- r.value = !0;
82
- const u = Date.now() - k.value;
83
- f.value = Math.max(0, f.value - u), b();
84
- }, w = () => {
85
- !e.dismissTimer || !r.value || l.value || (r.value = !1, k.value = Date.now(), v.value = setTimeout(() => {
86
- !r.value && !l.value && T();
87
- }, f.value));
88
- }, E = () => {
89
- document.hidden ? z() : w();
90
- }, T = () => {
91
- l.value || (l.value = !0, i.value = !1, b(), s.value && s.value.start(d, (u) => {
92
- Math.min(u, d) === d && (s.value?.stop(), e.onDismiss?.());
93
- }), R());
94
- };
95
- J(() => e.dismissTimer, () => {
96
- b(), l.value = !1, e.dismissTimer && e.dismissTimer > 0 && V();
97
- }), K(() => {
98
- U && (L.value = oe() + 1, s.value || (s.value = ae(), s.value.start(100, (u) => {
99
- Math.min(u, 100) === 100 && (s.value?.stop(), i.value = !0, e.dismissTimer && s.value?.start(d, (p) => {
100
- Math.min(p, d) === d && (s.value?.stop(), V());
101
- }));
102
- })), document.addEventListener("visibilitychange", E));
103
- }), O(() => {
104
- U && (b(), s.value = void 0, document.removeEventListener("visibilitychange", E)), i.value = !1, l.value || (l.value = !0, e.onDismiss?.());
105
- });
106
- const { clearEventListeners: R } = se({ escHandler: T });
107
- return Q(() => {
108
- R();
109
- }), (u, F) => (h(), D("output", {
110
- ref_key: "elem",
111
- ref: m,
112
- class: c(a(j)),
113
- "data-testid": t.testId,
114
- style: W({ zIndex: a(L), "--clll-toast-width": t.width, ...a(le)({ color: t.color }) }),
115
- onMouseenter: z,
116
- onMouseleave: w,
117
- onFocusin: z,
118
- onFocusout: w
119
- }, [
120
- y("div", {
121
- class: c(`${o}__body`)
122
- }, [
123
- y("div", {
124
- class: c(`${o}__content`)
125
- }, [
126
- t.icon ? (h(), D("div", {
127
- key: 0,
128
- class: c(`${o}__icon`)
129
- }, [
130
- M(a(X), {
131
- filled: t.iconFilled,
132
- name: t.icon,
133
- size: t.iconSize
134
- }, null, 8, ["filled", "name", "size"])
135
- ], 2)) : $("", !0),
136
- y("div", {
137
- class: c(`${o}__text`)
138
- }, [
139
- t.title ? (h(), A(a(H), {
140
- key: 0,
141
- color: a(g).Neutral,
142
- "test-id": `${o}__title`,
143
- type: a(I).Body,
144
- bold: ""
145
- }, {
146
- default: B(() => [
147
- S(N(t.title), 1)
148
- ]),
149
- _: 1
150
- }, 8, ["color", "test-id", "type"])) : $("", !0),
151
- t.message ? (h(), A(a(H), {
152
- key: 1,
153
- color: a(g).Neutral,
154
- "test-id": `${o}__message`,
155
- type: t.title ? a(I).Medium : a(I).Body
156
- }, {
157
- default: B(() => [
158
- S(N(t.message), 1)
159
- ]),
160
- _: 1
161
- }, 8, ["color", "test-id", "type"])) : $("", !0)
162
- ], 2),
163
- t.onAction && t.actionLabel ? (h(), D("div", {
164
- key: 1,
165
- class: c(`${o}__action-button`)
166
- }, [
167
- M(a(_), {
168
- color: t.color,
169
- "border-radius": t.borderRadius,
170
- "on-click": t.onAction,
171
- "test-id": `${o}__action-button`,
172
- variant: a(x).Soft
173
- }, {
174
- default: B(() => [
175
- S(N(t.actionLabel), 1)
176
- ]),
177
- _: 1
178
- }, 8, ["color", "border-radius", "on-click", "test-id", "variant"])
179
- ], 2)) : $("", !0)
180
- ], 2),
181
- y("div", {
182
- class: c(`${o}__dismiss-button`)
183
- }, [
184
- M(a(_), {
185
- "aria-label": "Dismiss toast",
186
- color: a(g).Neutral,
187
- "border-radius": t.borderRadius,
188
- "icon-before": a(te).Delete,
189
- "icon-size": a(P).Tiny,
190
- "on-click": T,
191
- size: a(ee).Tiny,
192
- "test-id": `${o}__dismiss-button`,
193
- variant: a(x).Text
194
- }, null, 8, ["color", "border-radius", "icon-before", "icon-size", "size", "test-id", "variant"])
195
- ], 2)
196
- ], 2)
197
- ], 46, ne));
198
- }
199
- });
200
- export {
201
- Te as _
202
- };
@@ -1,35 +0,0 @@
1
- import { defineComponent as m, ref as t, provide as l, createElementBlock as c, openBlock as a, createBlock as u, createCommentVNode as p, renderSlot as v, unref as f, mergeProps as _ } from "vue";
2
- import { _ as T } from "./CLToast.vue_vue_type_style_index_0_lang-CzSDeL_X.js";
3
- import { T as b } from "./context-dkA4VoF7.js";
4
- const h = { class: "clll-toast-provider" }, y = /* @__PURE__ */ m({
5
- name: "CLToastProvider",
6
- __name: "CLToastProvider",
7
- props: {
8
- borderRadius: {},
9
- dismissTimer: {},
10
- position: {}
11
- },
12
- setup(n) {
13
- const o = n, i = t({}), s = t(!1), d = (e) => {
14
- i.value = {
15
- ...e,
16
- borderRadius: e.borderRadius ?? o.borderRadius,
17
- dismissTimer: e.dismissTimer ?? o.dismissTimer,
18
- position: e.position ?? o.position
19
- }, s.value = !0;
20
- }, r = () => {
21
- s.value = !1, i.value = {};
22
- };
23
- return l(b, {
24
- visible: s,
25
- showToast: d,
26
- hideToast: r
27
- }), (e, k) => (a(), c("div", h, [
28
- s.value ? (a(), u(f(T), _({ key: 0 }, i.value, { "on-dismiss": r }), null, 16)) : p("", !0),
29
- v(e.$slots, "default")
30
- ]));
31
- }
32
- });
33
- export {
34
- y as _
35
- };
@@ -1,264 +0,0 @@
1
- import { ref as b } from "vue";
2
- import { CLMode as o } from "../index.js";
3
- function c(e, r) {
4
- if (!r)
5
- return e;
6
- const f = { ...e };
7
- for (const t in r)
8
- if (Object.prototype.hasOwnProperty.call(r, t)) {
9
- const a = r[t], d = f[t];
10
- l(d) && l(a) ? f[t] = c(d, a) : f[t] = a;
11
- }
12
- return f;
13
- }
14
- function l(e) {
15
- return e !== null && typeof e == "object" && !Array.isArray(e) && !(e instanceof Date) && !(e instanceof Map) && !(e instanceof Set);
16
- }
17
- const i = {
18
- borderRadius: void 0,
19
- colors: {
20
- primary: {
21
- 0: "#ffffff",
22
- 100: "#def5ff",
23
- 200: "#b6eeff",
24
- 300: "#75e3ff",
25
- 400: "#2cd6ff",
26
- 500: "#00c8ff",
27
- 600: "#009cd4",
28
- 700: "#007cab",
29
- 800: "#00688d",
30
- 900: "#065674"
31
- },
32
- secondary: {
33
- 0: "#ffffff",
34
- 100: "#DEE2E8",
35
- 200: "#BFC7D4",
36
- 300: "#9EAABD",
37
- 400: "#8090A8",
38
- 500: "#61738E",
39
- 600: "#4F5D73",
40
- 700: "#3A4555",
41
- 800: "#272F3A",
42
- 900: "#13161B"
43
- },
44
- neutral: {
45
- 0: "#ffffff",
46
- 100: "#F7F7F7",
47
- 200: "#F2F2F2",
48
- 300: "#EBEBEB",
49
- 400: "#E6E6E6",
50
- 500: "#DEDEDE",
51
- 600: "#B3B3B3",
52
- 700: "#858585",
53
- 800: "#595959",
54
- 900: "#2B2B2B"
55
- },
56
- danger: {
57
- 0: "#ffffff",
58
- 100: "#ffd3ce",
59
- 200: "#ffb2ac",
60
- 300: "#ff8e88",
61
- 400: "#fe6561",
62
- 500: "#e74c4c",
63
- 600: "#d20e27",
64
- 700: "#9b0018",
65
- 800: "#63000c",
66
- 900: "#360003"
67
- },
68
- warning: {
69
- 0: "#ffffff",
70
- 100: "#ffeaba",
71
- 200: "#ffdf95",
72
- 300: "#ffd36a",
73
- 400: "#fdc836",
74
- 500: "#f5be1a",
75
- 600: "#c79800",
76
- 700: "#8a6900",
77
- 800: "#4f3b00",
78
- 900: "#211700"
79
- },
80
- success: {
81
- 0: "#ffffff",
82
- 100: "#9effb2",
83
- 200: "#69f68d",
84
- 300: "#56e57e",
85
- 400: "#41d56e",
86
- 500: "#22c55d",
87
- 600: "#00a147",
88
- 700: "#007230",
89
- 800: "#00441a",
90
- 900: "#001f08"
91
- },
92
- info: {
93
- 0: "#ffffff",
94
- 100: "#cfe2ff",
95
- 200: "#afceff",
96
- 300: "#8eb9ff",
97
- 400: "#6ca4ff",
98
- 500: "#4e8ff8",
99
- 600: "#2470e7",
100
- 700: "#004cb5",
101
- 800: "#002e73",
102
- 900: "#00153e"
103
- }
104
- },
105
- darkMode: !1,
106
- fontFamily: "BlinkMacSystemFont,-apple-system,'Segoe UI',Roboto,Oxygen,Ubuntu,Cantarell,'Fira Sans','Droid Sans','Helvetica Neue',Helvetica,Arial,sans-serif"
107
- }, y = {
108
- contrast: {
109
- [o.Light]: {
110
- border: 900,
111
- borderHover: 700,
112
- bg: 900,
113
- disabled: 500,
114
- focus: 900,
115
- hover: 800,
116
- shadow: 900,
117
- text: 0,
118
- textDisabled: 800
119
- },
120
- [o.Dark]: {
121
- border: 400,
122
- borderHover: 700,
123
- bg: 100,
124
- disabled: 500,
125
- focus: 400,
126
- hover: 200,
127
- shadow: 400,
128
- text: 900,
129
- textDisabled: 500
130
- }
131
- },
132
- ghost: {
133
- [o.Light]: {
134
- disabled: 100,
135
- focus: 700,
136
- text: 800,
137
- textDisabled: 800
138
- },
139
- [o.Dark]: {
140
- disabled: 700,
141
- focus: 300,
142
- text: 300,
143
- textDisabled: 700
144
- }
145
- },
146
- outline: {
147
- [o.Light]: {
148
- border: 300,
149
- borderHover: 700,
150
- disabled: 400,
151
- focus: 700,
152
- hover: 100,
153
- text: 900,
154
- textBody: 700,
155
- textDisabled: 800
156
- },
157
- [o.Dark]: {
158
- border: 500,
159
- borderHover: 500,
160
- disabled: 800,
161
- focus: 300,
162
- hover: 900,
163
- text: 300,
164
- textBody: 300,
165
- textDisabled: 700
166
- }
167
- },
168
- soft: {
169
- [o.Light]: {
170
- bg: 100,
171
- border: 300,
172
- borderHover: 700,
173
- disabled: 100,
174
- focus: 400,
175
- hover: 200,
176
- shadow: 200,
177
- text: 900,
178
- textDisabled: 800
179
- },
180
- [o.Dark]: {
181
- bg: 900,
182
- border: 100,
183
- borderHover: 300,
184
- disabled: 800,
185
- focus: 100,
186
- hover: 800,
187
- shadow: 800,
188
- text: 300,
189
- textDisabled: 500
190
- }
191
- },
192
- solid: {
193
- [o.Light]: {
194
- bg: 600,
195
- border: 700,
196
- borderHover: 900,
197
- disabled: 500,
198
- focus: 700,
199
- hover: 500,
200
- shadow: 700,
201
- text: 0,
202
- textDisabled: 100
203
- },
204
- [o.Dark]: {
205
- bg: 400,
206
- border: 100,
207
- borderHover: 300,
208
- disabled: 600,
209
- focus: 100,
210
- hover: 500,
211
- shadow: 100,
212
- text: 900,
213
- textDisabled: 800
214
- }
215
- },
216
- text: {
217
- [o.Light]: {
218
- border: 100,
219
- borderHover: 300,
220
- disabled: 100,
221
- focus: 800,
222
- hover: 200,
223
- text: 800,
224
- textBody: 800,
225
- textDisabled: 700
226
- },
227
- [o.Dark]: {
228
- border: 300,
229
- borderHover: 500,
230
- disabled: 800,
231
- focus: 300,
232
- hover: 900,
233
- text: 100,
234
- textBody: 100,
235
- textDisabled: 500
236
- }
237
- }
238
- }, F = (e) => {
239
- const r = b(e?.borderRadius || i.borderRadius), f = b(e?.darkMode ?? i.darkMode), t = b(e?.fontFamily ?? i.fontFamily), a = c(i.colors, e?.colors), d = b(a);
240
- return {
241
- borderRadius: r,
242
- colors: d,
243
- darkMode: f,
244
- fontFamily: t,
245
- setBorderRadius: (s) => {
246
- r.value = s;
247
- },
248
- setColors: (s) => {
249
- d.value = { ...d.value, ...s };
250
- },
251
- setDarkMode: (s) => {
252
- f.value = s;
253
- },
254
- setFontFamily: (s) => {
255
- t.value = s;
256
- }
257
- };
258
- }, B = /* @__PURE__ */ Symbol("clll-theme");
259
- export {
260
- y as C,
261
- i as D,
262
- B as T,
263
- F as s
264
- };
@@ -1,4 +0,0 @@
1
- const o = /* @__PURE__ */ Symbol("clll-toast");
2
- export {
3
- o as T
4
- };