@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
package/package.json CHANGED
@@ -17,7 +17,7 @@
17
17
  "ui components",
18
18
  "vuejs"
19
19
  ],
20
- "version": "4.9.3",
20
+ "version": "4.9.5",
21
21
  "license": "MIT",
22
22
  "type": "module",
23
23
  "unpkg": "dist/callaloo.global.js",
@@ -194,9 +194,9 @@
194
194
  },
195
195
  "devDependencies": {
196
196
  "@chromatic-com/storybook": "^4.1.3",
197
- "@floating-ui/vue": "^1.1.8",
198
- "@iconify-json/tabler": "^1.2.25",
199
- "@iconify/tools": "^5.0.1",
197
+ "@floating-ui/vue": "^1.1.10",
198
+ "@iconify-json/tabler": "^1.2.26",
199
+ "@iconify/tools": "^5.0.2",
200
200
  "@iconify/types": "^2.0.0",
201
201
  "@semantic-release/changelog": "^6.0.3",
202
202
  "@semantic-release/git": "^10.0.1",
@@ -204,48 +204,48 @@
204
204
  "@size-limit/esbuild": "^12.0.0",
205
205
  "@size-limit/esbuild-why": "^12.0.0",
206
206
  "@size-limit/preset-small-lib": "^12.0.0",
207
- "@storybook/addon-a11y": "^10.1.10",
208
- "@storybook/addon-docs": "^10.1.10",
209
- "@storybook/cli": "^10.1.10",
207
+ "@storybook/addon-a11y": "^10.2.1",
208
+ "@storybook/addon-docs": "^10.2.1",
209
+ "@storybook/cli": "^10.2.1",
210
210
  "@storybook/test-runner": "^0.24.2",
211
- "@storybook/vue3-vite": "^10.1.10",
211
+ "@storybook/vue3-vite": "^10.2.1",
212
212
  "@types/lodash-es": "^4.17.12",
213
- "@types/node": "^25.0.3",
213
+ "@types/node": "^25.1.0",
214
214
  "@vitejs/plugin-vue": "^6.0.3",
215
215
  "@vitejs/plugin-vue-jsx": "^5.1.3",
216
216
  "@vitest/browser": "4.0.16",
217
217
  "@vitest/coverage-istanbul": "4.0.16",
218
218
  "@vitest/coverage-v8": "4.0.16",
219
- "@vitest/ui": "^4.0.16",
219
+ "@vitest/ui": "^4.0.18",
220
220
  "@vue/test-utils": "^2.4.6",
221
221
  "@vue/tsconfig": "^0.8.1",
222
222
  "@wdns/vue-code-block": "^2.3.5",
223
- "chromatic": "^13.3.4",
223
+ "chromatic": "^13.3.5",
224
224
  "conventional-changelog-conventionalcommits": "^9.1.0",
225
225
  "eslint-plugin-storybook": "10.1.10",
226
- "eslint-plugin-vue": "^10.6.2",
226
+ "eslint-plugin-vue": "^10.7.0",
227
227
  "fast-glob": "^3.3.3",
228
228
  "jsdom": "^27.4.0",
229
- "lodash-es": "^4.17.22",
230
- "playwright": "^1.57.0",
229
+ "lodash-es": "^4.17.23",
230
+ "playwright": "^1.58.0",
231
231
  "rollup-plugin-visualizer": "^6.0.5",
232
- "sass": "^1.97.1",
232
+ "sass": "^1.97.3",
233
233
  "semantic-release": "^25.0.2",
234
234
  "size-limit": "^12.0.0",
235
- "storybook": "^10.1.10",
235
+ "storybook": "^10.2.1",
236
236
  "storybook-addon-deep-controls": "^0.10.0",
237
237
  "tsx": "^4.21.0",
238
238
  "unplugin-auto-import": "^20.3.0",
239
239
  "vite": "^7.3.0",
240
240
  "vite-plugin-dts": "^4.5.4",
241
241
  "vite-plugin-lib-inject-css": "^2.2.2",
242
- "vite-tsconfig-paths": "^6.0.3",
242
+ "vite-tsconfig-paths": "^6.0.5",
243
243
  "vitest": "4.0.16",
244
- "vue": "^3.5.26",
245
- "vue-component-meta": "^3.2.1",
244
+ "vue": "^3.5.27",
245
+ "vue-component-meta": "^3.2.4",
246
246
  "vue-docgen-api": "^4.79.2",
247
247
  "vue-router": "^4.6.4",
248
- "vue-tsc": "^3.2.1"
248
+ "vue-tsc": "^3.2.4"
249
249
  },
250
250
  "peerDependencies": {
251
251
  "vue": "^3.5.26"
@@ -1,47 +0,0 @@
1
- import '../components/Buttons/CLA11yButton/CLA11yButton.css';
2
- import { defineComponent as y, ref as b, computed as p, createElementBlock as k, openBlock as C, withKeys as B, normalizeStyle as E, normalizeClass as x, unref as d, renderSlot as A } from "vue";
3
- import { CLColors as _ } from "../index.js";
4
- import { a as g } from "./utils-C1xiySYN.js";
5
- const h = ["data-testid", "tabindex"], w = /* @__PURE__ */ y({
6
- name: "CLA11yButton",
7
- __name: "CLA11yButton",
8
- props: {
9
- color: { default: _.Neutral },
10
- enabled: { type: Boolean, default: !1 },
11
- fluid: { type: Boolean, default: !0 },
12
- rounded: { type: Boolean, default: !0 },
13
- testId: { default: "clll-a11y__button" }
14
- },
15
- setup(e) {
16
- const t = e, i = ["a", "button"], n = b(), u = "clll-a11y__button", f = p(() => [
17
- u,
18
- t.enabled ? "--enabled" : "",
19
- t.rounded ? "--rounded" : "",
20
- t.fluid ? "--fluid" : ""
21
- ]), c = (l) => {
22
- if (!t.enabled) return;
23
- const { target: a } = l, o = a ? a.closest("a,button") : void 0, r = [
24
- ...n.value?.querySelectorAll("[data-expand-click-area]") ?? []
25
- ];
26
- if (r.length) {
27
- const s = r[0], m = o ? i.includes(o.tagName.toLowerCase()) : null;
28
- !o && s !== l.target && !m && s.click();
29
- }
30
- };
31
- return (l, a) => (C(), k("div", {
32
- ref_key: "refExpandedArea",
33
- ref: n,
34
- class: x(d(f)),
35
- "data-testid": e.testId,
36
- tabindex: e.enabled ? 0 : void 0,
37
- style: E(d(g)({ color: e.color })),
38
- onClick: c,
39
- onKeyup: B(c, ["enter"])
40
- }, [
41
- A(l.$slots, "default")
42
- ], 46, h));
43
- }
44
- });
45
- export {
46
- w as _
47
- };
@@ -1,136 +0,0 @@
1
- import '../components/Buttons/CLButton/CLButton.css';
2
- import { defineComponent as $, useSlots as C, ref as h, computed as L, onMounted as B, nextTick as z, createBlock as n, openBlock as o, resolveDynamicComponent as S, normalizeStyle as g, normalizeClass as s, unref as i, withCtx as k, createCommentVNode as d, createElementBlock as X, renderSlot as w } from "vue";
3
- import { _ as c } from "./CLIcon.vue_vue_type_style_index_0_lang-Dhr2tI-g.js";
4
- import { _ as R } from "./CLSpinner.vue_vue_type_style_index_0_lang-DlXqnsi8.js";
5
- import { CLColorVariants as A, CLButtonTypes as T, CLLinkTarget as F, CLSizes as l, CLIconSizes as I, CLColors as x, CLAlign as m, CLPosition as M } from "../index.js";
6
- import { b as N } from "./utils-C1xiySYN.js";
7
- import { useHasSlotContent as V } from "../composables/useHasSlotContent.js";
8
- const J = /* @__PURE__ */ $({
9
- name: "CLButton",
10
- __name: "CLButton",
11
- props: {
12
- active: { type: Boolean, default: !1 },
13
- alignContent: { default: m.Center },
14
- ariaLabel: { default: void 0 },
15
- as: { default: "button" },
16
- borderRadius: { default: void 0 },
17
- busy: { type: Boolean, default: !1 },
18
- color: { default: x.Neutral },
19
- disabled: { type: Boolean, default: !1 },
20
- elevated: { type: Boolean, default: !1 },
21
- form: { default: void 0 },
22
- forwardRef: { type: Function, default: void 0 },
23
- height: { default: "auto" },
24
- href: { default: void 0 },
25
- iconAfter: { default: void 0 },
26
- iconBefore: { default: void 0 },
27
- iconFilled: { type: Boolean, default: !1 },
28
- iconSize: { default: I.Small },
29
- onClick: { type: Function, default: void 0 },
30
- pill: { type: Boolean, default: !1 },
31
- rounded: { type: Boolean, default: !0 },
32
- size: { default: l.Small },
33
- target: { default: F.Self },
34
- testId: { default: "clll-button" },
35
- title: { default: void 0 },
36
- type: { default: T.Button },
37
- variant: { default: A.Soft },
38
- width: { default: "auto" },
39
- wrap: { type: Boolean, default: !1 }
40
- },
41
- setup(e) {
42
- const t = e, r = V();
43
- C();
44
- const u = h(), a = "clll-button", b = L(() => [
45
- a,
46
- `${a}--${t.type}`,
47
- `${a}--${t.color}--${t.variant}`,
48
- `${a}--${t.size}`,
49
- `${a}--${t.alignContent}`,
50
- t.active ? `${a}--active` : "",
51
- t.busy ? `${a}--busy` : "",
52
- t.disabled ? `${a}--disabled` : "",
53
- t.wrap ? `${a}--wrapped` : "",
54
- t.rounded ? `${a}--rounded` : "",
55
- t.borderRadius ? `${a}--${t.borderRadius}` : "",
56
- r.value ? `${a}--has-content` : `${a}--no-content`,
57
- t.iconBefore ? `${a}--icon-before` : "",
58
- t.iconAfter ? `${a}--icon-after` : "",
59
- t.elevated ? `${a}--elevated` : "",
60
- t.pill ? `${a}--pill` : ""
61
- ]), y = () => {
62
- switch (t.size) {
63
- case l.Medium:
64
- case l.Large:
65
- return l.Small;
66
- case l.XL:
67
- case l.XXL:
68
- return l.Medium;
69
- case l.XXXL:
70
- return l.Large;
71
- case l.XXXXL:
72
- return l.XL;
73
- case l.Tiny:
74
- default:
75
- return l.Tiny;
76
- }
77
- };
78
- B(() => {
79
- z(() => {
80
- u.value && t.forwardRef?.(u.value);
81
- });
82
- });
83
- const v = (f) => {
84
- t.onClick?.(f);
85
- };
86
- return (f, D) => (o(), n(S(e.as), {
87
- ref_key: "buttonRef",
88
- ref: u,
89
- "aria-label": e.ariaLabel,
90
- class: s(i(b)),
91
- "data-testid": e.testId,
92
- disabled: e.as === "button" ? e.busy || e.disabled : void 0,
93
- form: e.as === "button" ? e.form : void 0,
94
- href: e.as === "a" ? e.href : void 0,
95
- target: e.as === "a" ? e.target : void 0,
96
- title: e.title,
97
- type: e.as === "button" ? e.type : void 0,
98
- style: g({ width: e.width, height: e.height, ...i(N)({ color: e.color, variant: e.variant }) }),
99
- onClick: v
100
- }, {
101
- default: k(() => [
102
- e.iconBefore ? (o(), n(i(c), {
103
- key: 0,
104
- filled: e.iconFilled,
105
- name: e.iconBefore,
106
- size: e.iconSize,
107
- "test-id": `${e.testId}-icon-before`
108
- }, null, 8, ["filled", "name", "size", "test-id"])) : d("", !0),
109
- i(r) ? (o(), X("span", {
110
- key: 1,
111
- class: s(`${a}__content`)
112
- }, [
113
- w(f.$slots, "default")
114
- ], 2)) : d("", !0),
115
- e.iconAfter ? (o(), n(i(c), {
116
- key: 2,
117
- filled: e.iconFilled,
118
- name: e.iconAfter,
119
- size: e.iconSize,
120
- "test-id": `${e.testId}-icon-after`
121
- }, null, 8, ["filled", "name", "size", "test-id"])) : d("", !0),
122
- e.busy ? (o(), n(i(R), {
123
- key: 3,
124
- align: i(m).Center,
125
- position: i(M).Absolute,
126
- size: y(),
127
- color: e.color
128
- }, null, 8, ["align", "position", "size", "color"])) : d("", !0)
129
- ]),
130
- _: 3
131
- }, 8, ["aria-label", "class", "data-testid", "disabled", "form", "href", "target", "title", "type", "style"]));
132
- }
133
- });
134
- export {
135
- J as _
136
- };
@@ -1,163 +0,0 @@
1
- import '../components/Form/CLCalendar/CLCalendar.css';
2
- import { defineComponent as Y, mergeModels as w, useCssVars as Z, useModel as ee, ref as S, toRef as ae, watch as te, onMounted as le, createElementBlock as s, openBlock as r, normalizeClass as u, createElementVNode as M, createVNode as f, unref as e, withCtx as h, createTextVNode as v, toDisplayString as C, Fragment as V, renderList as $, createBlock as ie, createCommentVNode as re } from "vue";
3
- import { _ as b } from "./CLButton.vue_vue_type_style_index_0_lang-MvhnNzVW.js";
4
- import { _ as B } from "./CLText.vue_vue_type_style_index_0_lang-B-L8ECJL.js";
5
- import { CLColorVariants as c, CLSizes as k, CLIconSizes as N, CLIconNames as P, CLBorderRadius as _, CLTextTypes as R, CLColors as g, CLAlign as ne } from "../index.js";
6
- import { useDatePicker as oe } from "../composables/useDatePicker.js";
7
- const de = ["data-testid"], ve = /* @__PURE__ */ Y({
8
- name: "CLCalendar",
9
- __name: "CLCalendar",
10
- props: /* @__PURE__ */ w({
11
- color: { default: g.Primary },
12
- disabled: { type: Boolean, default: !1 },
13
- busy: { type: Boolean, default: !1 },
14
- isRange: { type: Boolean, default: !0 },
15
- fluid: { type: Boolean, default: !1 },
16
- testId: { default: "clll-calendar" },
17
- width: { default: "280px" }
18
- }, {
19
- modelValue: {},
20
- modelModifiers: {}
21
- }),
22
- emits: /* @__PURE__ */ w(["date-select"], ["update:modelValue"]),
23
- setup(l, { expose: T, emit: E }) {
24
- Z((t) => ({
25
- v63768322: t.width
26
- }));
27
- const m = l, I = E, i = "clll-calendar", n = ee(l, "modelValue"), o = S(n.value?.end ?? null), d = S(n.value?.start ?? null), {
28
- calendarGrid: F,
29
- cancelDraft: G,
30
- clearDraft: A,
31
- currentMonthLabel: O,
32
- draftEnd: D,
33
- draftStart: x,
34
- getDayAriaLabel: j,
35
- handleNextMonth: q,
36
- handlePrevMonth: H,
37
- initializeDraft: p,
38
- isDraftEnd: z,
39
- isDraftStart: L,
40
- isInDraftRange: J,
41
- onDayClick: K,
42
- weekDays: Q
43
- } = oe({
44
- appliedEnd: o,
45
- appliedStart: d,
46
- isRange: ae(m, "isRange")
47
- });
48
- te(n, (t) => {
49
- d.value = t?.start ?? null, o.value = t?.end ?? null, p();
50
- }, { deep: !0 }), le(() => {
51
- p();
52
- });
53
- const U = (t, y) => {
54
- y?.preventDefault(), y?.stopPropagation(), !(m.disabled || m.busy || !t) && (K(t), I("date-select", t));
55
- };
56
- return T({
57
- apply: () => {
58
- d.value = x.value, o.value = D.value, n.value = {
59
- end: o.value,
60
- start: d.value
61
- };
62
- },
63
- cancel: () => {
64
- G();
65
- },
66
- draftEnd: D,
67
- draftStart: x,
68
- initializeDraft: p,
69
- reset: () => {
70
- A(), d.value = null, o.value = null, n.value = null;
71
- }
72
- }), (t, y) => (r(), s("div", {
73
- class: u([i, l.fluid ? `${i}__fluid` : ""]),
74
- "data-testid": l.testId
75
- }, [
76
- M("div", {
77
- class: u(`${i}__header`)
78
- }, [
79
- f(e(b), {
80
- "aria-label": "Previous month",
81
- "border-radius": e(_).Full,
82
- "icon-before": e(P).ChevronLeft,
83
- "icon-size": e(N).Tiny,
84
- "on-click": e(H),
85
- size: e(k).Tiny,
86
- variant: e(c).Ghost,
87
- height: "32px",
88
- width: "32px",
89
- wrap: ""
90
- }, null, 8, ["border-radius", "icon-before", "icon-size", "on-click", "size", "variant"]),
91
- f(e(B), {
92
- type: e(R).Medium,
93
- medium: ""
94
- }, {
95
- default: h(() => [
96
- v(C(e(O)), 1)
97
- ]),
98
- _: 1
99
- }, 8, ["type"]),
100
- f(e(b), {
101
- "aria-label": "Next month",
102
- "border-radius": e(_).Full,
103
- "icon-before": e(P).ChevronRight,
104
- "icon-size": e(N).Tiny,
105
- "on-click": e(q),
106
- size: e(k).Tiny,
107
- variant: e(c).Ghost,
108
- height: "32px",
109
- width: "32px",
110
- wrap: ""
111
- }, null, 8, ["border-radius", "icon-before", "icon-size", "on-click", "size", "variant"])
112
- ], 2),
113
- M("div", {
114
- class: u(`${i}__grid`)
115
- }, [
116
- (r(!0), s(V, null, $(e(Q), (a) => (r(), s("div", {
117
- key: a,
118
- class: u(`${i}__weekday`)
119
- }, [
120
- f(e(B), {
121
- align: e(ne).Center,
122
- color: e(g).Neutral,
123
- type: e(R).Small
124
- }, {
125
- default: h(() => [
126
- v(C(a), 1)
127
- ]),
128
- _: 2
129
- }, 1032, ["align", "color", "type"])
130
- ], 2))), 128)),
131
- (r(!0), s(V, null, $(e(F), (a, W) => (r(), s("div", {
132
- key: a.date ?? `pad-${W}`,
133
- class: u([
134
- `${i}__cell`,
135
- a.isOutsideMonth ? `${i}__cell--outside` : ""
136
- ])
137
- }, [
138
- a.day && a.date ? (r(), ie(e(b), {
139
- key: 0,
140
- "aria-label": e(j)(a.date),
141
- "border-radius": e(_).Full,
142
- color: e(L)(a.date) || e(z)(a.date) ? l.color : e(g).Secondary,
143
- disabled: l.disabled || l.busy,
144
- size: e(k).Small,
145
- height: "100%",
146
- width: "100%",
147
- "on-click": (X) => U(a.date, X),
148
- variant: e(L)(a.date) || e(z)(a.date) ? e(c).Solid : e(J)(a.date) ? e(c).Soft : e(c).Ghost,
149
- wrap: ""
150
- }, {
151
- default: h(() => [
152
- v(C(a.day), 1)
153
- ]),
154
- _: 2
155
- }, 1032, ["aria-label", "border-radius", "color", "disabled", "size", "on-click", "variant"])) : re("", !0)
156
- ], 2))), 128))
157
- ], 2)
158
- ], 10, de));
159
- }
160
- });
161
- export {
162
- ve as _
163
- };