@codeandfunction/callaloo 3.15.2 → 3.16.0

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 (142) hide show
  1. package/README.md +7 -3
  2. package/dist/assets/CLFormCharCounter.css +1 -0
  3. package/dist/assets/CLInputMessages.css +1 -0
  4. package/dist/chunks/CLA11yButton.vue_vue_type_style_index_0_lang-COGwQtRU.js +45 -0
  5. package/dist/chunks/CLButton.vue_vue_type_style_index_0_lang-CqgySW52.js +128 -0
  6. package/dist/chunks/CLCard.vue_vue_type_style_index_0_lang-DSvubJfG.js +252 -0
  7. package/dist/chunks/CLFormCharCounter.vue_vue_type_style_index_0_lang-CJ4VrvmR.js +38 -0
  8. package/dist/chunks/CLFormLabel.vue_vue_type_script_setup_true_lang-ORvye4vi.js +43 -0
  9. package/dist/chunks/CLHeading.vue_vue_type_style_index_0_lang-CbHdHW2E.js +50 -0
  10. package/dist/chunks/CLIcon.vue_vue_type_style_index_0_lang-zZ4zGuBt.js +83 -0
  11. package/dist/chunks/CLInputMessages.vue_vue_type_style_index_0_lang-xm2qDJGJ.js +121 -0
  12. package/dist/chunks/CLLink.vue_vue_type_style_index_0_lang-D7BqWIqs.js +60 -0
  13. package/dist/chunks/CLNavLink.vue_vue_type_script_setup_true_lang-Dp3SsIfq.js +44 -0
  14. package/dist/chunks/CLPill.vue_vue_type_style_index_0_lang-BXGTb6A6.js +88 -0
  15. package/dist/chunks/CLProgress.vue_vue_type_style_index_0_lang-5-cwF-oh.js +65 -0
  16. package/dist/chunks/CLSkeleton.vue_vue_type_style_index_0_lang-D7_swcoA.js +33 -0
  17. package/dist/chunks/CLSpinner.vue_vue_type_style_index_0_lang-CLccujHE.js +53 -0
  18. package/dist/chunks/CLText.vue_vue_type_style_index_0_lang-CTc6UiQV.js +46 -0
  19. package/dist/chunks/CLToast.vue_vue_type_style_index_0_lang-BIiSNSlg.js +178 -0
  20. package/dist/chunks/base-theme-B89pbWnC.js +841 -0
  21. package/dist/chunks/useEsc-BGAp0d_1.js +19 -0
  22. package/dist/chunks/useHasSlotContent-DDqs5uK9.js +14 -0
  23. package/dist/chunks/utils-CFL9veAf.js +30 -0
  24. package/dist/chunks/utils-D2P_fCSp.js +73 -0
  25. package/dist/chunks/utils-DYzsHCvl.js +15 -0
  26. package/dist/chunks/utils-DaKwZixu.js +26 -0
  27. package/dist/chunks/utils-Dg9e9uLW.js +29 -0
  28. package/dist/chunks/utils-Dz_31dEE.js +387 -0
  29. package/dist/components/Buttons/CLA11yButton/CLA11yButton.css +1 -0
  30. package/dist/components/Buttons/CLA11yButton/CLA11yButton.js +6 -0
  31. package/dist/components/Buttons/CLA11yButton/CLA11yButton.vue.d.ts +2 -2
  32. package/dist/components/Buttons/CLButton/CLButton.css +1 -0
  33. package/dist/components/Buttons/CLButton/CLButton.js +6 -0
  34. package/dist/components/Buttons/CLButton/CLButton.vue.d.ts +7 -7
  35. package/dist/components/CLIcon/CLIcon.css +1 -0
  36. package/dist/components/CLIcon/CLIcon.js +6 -0
  37. package/dist/components/{Assets/CLIcon → CLIcon}/CLIcon.vue.d.ts +1 -1
  38. package/dist/components/CLTable/CLTable.css +1 -0
  39. package/dist/components/CLTable/CLTable.js +197 -0
  40. package/dist/components/{Table → CLTable}/index.d.ts +0 -7
  41. package/dist/components/Containers/CLCard/CLCard.css +1 -0
  42. package/dist/components/Containers/CLCard/CLCard.js +6 -0
  43. package/dist/components/Containers/CLCard/CLCard.vue.d.ts +6 -6
  44. package/dist/components/Containers/CLCarousel/CLCarousel.css +1 -0
  45. package/dist/components/Containers/CLCarousel/CLCarousel.js +436 -0
  46. package/dist/components/Containers/CLCarousel/CLCarousel.vue.d.ts +2 -2
  47. package/dist/components/Containers/CLCarousel/CLCarouselNavigation.vue.d.ts +1 -1
  48. package/dist/components/Containers/CLDisclosure/CLDisclosure.css +1 -0
  49. package/dist/components/Containers/CLDisclosure/CLDisclosure.js +137 -0
  50. package/dist/components/Containers/CLDisclosure/CLDisclosure.vue.d.ts +3 -3
  51. package/dist/components/Form/CLCheckbox/CLCheckbox.css +1 -0
  52. package/dist/components/Form/CLCheckbox/CLCheckbox.js +147 -0
  53. package/dist/components/Form/CLCheckbox/CLCheckbox.vue.d.ts +4 -4
  54. package/dist/components/Form/CLFormCharCounter/CLFormCharCounter.vue.d.ts +24 -0
  55. package/dist/components/Form/CLFormLabel/CLFormLabel.vue.d.ts +22 -0
  56. package/dist/components/Form/CLInput/CLInput.css +1 -0
  57. package/dist/components/Form/CLInput/CLInput.js +378 -0
  58. package/dist/components/Form/CLInput/CLInput.vue.d.ts +8 -8
  59. package/dist/components/Form/CLInput/CLInputColorTools.vue.d.ts +29 -0
  60. package/dist/components/Form/CLInput/CLInputPill.vue.d.ts +14 -0
  61. package/dist/components/Form/CLInput/CLInputPrefix.vue.d.ts +20 -0
  62. package/dist/components/Form/CLInput/CLInputSuffix.vue.d.ts +20 -0
  63. package/dist/components/Form/CLInput/index.d.ts +18 -3
  64. package/dist/components/Form/CLRadioButton/CLRadioButton.css +1 -0
  65. package/dist/components/Form/CLRadioButton/CLRadioButton.js +132 -0
  66. package/dist/components/Form/CLRadioButton/CLRadioButton.vue.d.ts +1 -1
  67. package/dist/components/Form/CLSelect/CLSelect.css +1 -0
  68. package/dist/components/Form/CLSelect/CLSelect.js +137 -0
  69. package/dist/components/Form/CLSelect/CLSelect.vue.d.ts +9 -9
  70. package/dist/components/Form/CLTextArea/CLTextArea.css +1 -0
  71. package/dist/components/Form/CLTextArea/CLTextArea.js +149 -0
  72. package/dist/components/Form/CLTextArea/CLTextArea.vue.d.ts +2 -2
  73. package/dist/components/Form/index.d.ts +5 -6
  74. package/dist/components/Indicators/CLBadge/CLBadge.css +1 -0
  75. package/dist/components/Indicators/CLBadge/CLBadge.js +40 -0
  76. package/dist/components/Indicators/CLBadge/CLBadge.vue.d.ts +1 -1
  77. package/dist/components/Indicators/CLBanner/CLBanner.css +1 -0
  78. package/dist/components/Indicators/CLBanner/CLBanner.js +147 -0
  79. package/dist/components/Indicators/CLBanner/CLBanner.vue.d.ts +3 -3
  80. package/dist/components/Indicators/CLPill/CLPill.css +1 -0
  81. package/dist/components/Indicators/CLPill/CLPill.js +6 -0
  82. package/dist/components/Indicators/CLPill/CLPill.vue.d.ts +3 -3
  83. package/dist/components/Indicators/CLProgress/CLProgress.css +1 -0
  84. package/dist/components/Indicators/CLProgress/CLProgress.js +6 -0
  85. package/dist/components/Indicators/CLProgress/CLProgress.vue.d.ts +2 -2
  86. package/dist/components/Loading/CLSkeleton/CLSkeleton.css +1 -0
  87. package/dist/components/Loading/CLSkeleton/CLSkeleton.js +6 -0
  88. package/dist/components/Loading/CLSkeleton/CLSkeleton.vue.d.ts +1 -1
  89. package/dist/components/Loading/CLSpinner/CLSpinner.css +1 -0
  90. package/dist/components/Loading/CLSpinner/CLSpinner.js +6 -0
  91. package/dist/components/Loading/CLSpinner/CLSpinner.vue.d.ts +1 -1
  92. package/dist/components/Modals/CLModal/CLModal.css +1 -0
  93. package/dist/components/Modals/CLModal/CLModal.js +175 -0
  94. package/dist/components/Modals/CLModal/CLModal.vue.d.ts +2 -2
  95. package/dist/components/Navigation/CLLink/CLLink.css +1 -0
  96. package/dist/components/Navigation/CLLink/CLLink.js +6 -0
  97. package/dist/components/Navigation/CLLink/CLLink.vue.d.ts +2 -2
  98. package/dist/components/Navigation/CLNavLink/CLNavLink.js +5 -0
  99. package/dist/components/Navigation/CLNavLink/CLNavLink.vue.d.ts +1 -1
  100. package/dist/components/Navigation/CLNavSection/CLNavSection.css +1 -0
  101. package/dist/components/Navigation/CLNavSection/CLNavSection.js +55 -0
  102. package/dist/components/Navigation/CLNavSection/CLNavSection.vue.d.ts +1 -1
  103. package/dist/components/Popups/CLDropdownMenu/CLDropdownMenu.css +1 -0
  104. package/dist/components/Popups/CLDropdownMenu/CLDropdownMenu.js +1233 -0
  105. package/dist/components/Popups/CLDropdownMenu/CLDropdownMenu.vue.d.ts +29 -29
  106. package/dist/components/Popups/CLToast/CLToast.css +1 -0
  107. package/dist/components/Popups/CLToast/CLToast.js +6 -0
  108. package/dist/components/Popups/CLToast/CLToast.vue.d.ts +2 -2
  109. package/dist/components/Providers/CLThemeProvider/CLThemeProvider.js +42 -0
  110. package/dist/components/Providers/CLThemeProvider/CLThemeProvider.vue.d.ts +27 -0
  111. package/dist/components/Providers/CLThemeProvider/index.d.ts +4 -0
  112. package/dist/components/Providers/CLToastProvider/CLToastProvider.js +45 -0
  113. package/dist/components/Providers/{Toast → CLToastProvider}/CLToastProvider.vue.d.ts +1 -7
  114. package/dist/components/Providers/CLToastProvider/index.d.ts +4 -0
  115. package/dist/components/Providers/index.d.ts +2 -6
  116. package/dist/components/Typography/CLHeading/CLHeading.css +1 -0
  117. package/dist/components/Typography/CLHeading/CLHeading.js +6 -0
  118. package/dist/components/Typography/CLText/CLText.css +1 -0
  119. package/dist/components/Typography/CLText/CLText.js +6 -0
  120. package/dist/index.d.ts +1 -16
  121. package/dist/index.js +27 -5769
  122. package/dist/types.d.ts +4 -0
  123. package/dist/utils/helper.d.ts +1 -0
  124. package/package.json +133 -10
  125. package/dist/assets/styles.css +0 -1
  126. package/dist/components/Assets/index.d.ts +0 -2
  127. package/dist/components/Providers/Theme/CLThemeProvider.vue.d.ts +0 -26
  128. package/dist/constants.d.ts +0 -22
  129. package/dist/stats.json +0 -41
  130. package/dist/chunks/{icons.QRYZHNAf.js → icons-QRYZHNAf.js} +0 -0
  131. package/dist/components/{Assets/CLIcon → CLIcon}/index.d.ts +0 -0
  132. package/dist/components/{Assets → CLIcon}/utils.d.ts +0 -0
  133. package/dist/components/{Table → CLTable}/CLTable.vue.d.ts +1 -1
  134. /package/dist/components/{Table → CLTable}/CLTableBody.vue.d.ts +0 -0
  135. /package/dist/components/{Table → CLTable}/CLTableCell.vue.d.ts +0 -0
  136. /package/dist/components/{Table → CLTable}/CLTableFooter.vue.d.ts +0 -0
  137. /package/dist/components/{Table → CLTable}/CLTableHeader.vue.d.ts +0 -0
  138. /package/dist/components/{Table → CLTable}/CLTableNestedCell.vue.d.ts +0 -0
  139. /package/dist/components/{Table → CLTable}/CLTableRow.vue.d.ts +0 -0
  140. /package/dist/components/{Table → CLTable}/utils.d.ts +0 -0
  141. /package/dist/components/Providers/{Theme → CLThemeProvider}/base-theme.d.ts +0 -0
  142. /package/dist/components/Providers/{Theme → CLThemeProvider}/utils.d.ts +0 -0
@@ -0,0 +1,175 @@
1
+ import './CLModal.css';
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-CqgySW52.js";
4
+ import { _ as Y } from "../../../chunks/CLHeading.vue_vue_type_style_index_0_lang-CbHdHW2E.js";
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 { g as ne, c as B, a as ae } from "../../../chunks/utils-Dz_31dEE.js";
7
+ import { u as se, f as S, i as s } from "../../../chunks/base-theme-B89pbWnC.js";
8
+ import { u as de } from "../../../chunks/useEsc-BGAp0d_1.js";
9
+ const re = () => {
10
+ const { borderRadius: t, colors: w, darkMode: c } = se(), d = c.value ? k.Dark : k.Light, u = ne({
11
+ color: R.Neutral,
12
+ colors: w.value,
13
+ mode: d,
14
+ variant: T.Solid
15
+ }), o = c.value ? "black" : "white";
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});}}}`), ae(B`.clll-modal__overlay{background-color:${u?.bg};}.clll-modal__window{.clll-modal__content{background:${o}}}`, e);
18
+ }, ie = ["id", "data-testid"], ce = ["aria-labelledby"], ye = /* @__PURE__ */ W({
19
+ name: "CLModal",
20
+ __name: "CLModal",
21
+ props: {
22
+ borderRadius: { default: void 0 },
23
+ close: { type: Boolean, default: !0 },
24
+ closeBorderRadius: { default: ee.Full },
25
+ dismissible: { type: Boolean, default: !0 },
26
+ fullscreen: { type: Boolean, default: !1 },
27
+ isOpen: { type: Boolean, default: !1 },
28
+ maxWidth: { default: "640px" },
29
+ modalId: {},
30
+ onClose: { type: Function, default: void 0 },
31
+ overlay: { type: Boolean, default: !0 },
32
+ testId: { default: "clll-modal" },
33
+ title: { default: void 0 },
34
+ zIndex: { default: 100 }
35
+ },
36
+ emits: ["modal-open", "modal-close"],
37
+ setup(t, { emit: w }) {
38
+ F((l) => ({
39
+ v1b3cde5d: n(O),
40
+ v9756aaa0: n(V),
41
+ v7a09ccea: l.maxWidth
42
+ }));
43
+ const c = w, d = U("modal-window"), u = Z(), o = t, e = "clll-modal", h = "clll-prevent-scroll", _ = j(), C = () => {
44
+ s && window?.document.body.classList.add(h);
45
+ }, x = () => {
46
+ s && window?.document.body.classList.remove(h);
47
+ }, N = m(() => [
48
+ e
49
+ ]), E = m(() => [
50
+ `${e}__window`,
51
+ o.fullscreen ? `${e}__window--fullscreen` : ""
52
+ ]), M = m(() => [
53
+ `${e}__content`,
54
+ o.borderRadius ? `${e}__content--${o.borderRadius}` : "",
55
+ o.close ? `${e}__content--has-close-button` : `${e}__content--has-no-close-button`,
56
+ u.body ? `${e}__content--has-body` : `${e}__content--has-no-body`,
57
+ u.footer ? `${e}__content--has-footer` : `${e}__content--has-no-footer`,
58
+ u.header || o.title ? `${e}__content--has-header` : `${e}__content--has-no-header`,
59
+ o.title ? `${e}__content--has-title` : `${e}__content--has-no-title`
60
+ ]), 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 = (l) => {
61
+ try {
62
+ const i = l?.target, L = d.value;
63
+ return s && L && !L.contains(i) ? !0 : void 0;
64
+ } catch (i) {
65
+ console.error(i);
66
+ return;
67
+ }
68
+ }, b = (l) => {
69
+ try {
70
+ H(l) && (s && window.removeEventListener("mousedown", b), z());
71
+ } catch (i) {
72
+ console.error(i);
73
+ }
74
+ }, y = () => {
75
+ s && window.removeEventListener("mousedown", b);
76
+ }, I = () => {
77
+ s && (_.value && s && window.clearTimeout(_.value), y(), x());
78
+ }, z = () => {
79
+ o.isOpen && (o.onClose?.(), I());
80
+ };
81
+ q(o, (l) => {
82
+ l.isOpen ? (c("modal-open"), C(), d.value && d.value.focus(), s && l.dismissible && (y(), _.value = window.setTimeout(() => {
83
+ window.addEventListener("mousedown", b);
84
+ }, 100))) : (d.value && d.value.blur(), x(), y(), _.value && s && window.clearTimeout(_.value), c("modal-close"));
85
+ }), A(() => {
86
+ o.isOpen && s && (C(), d.value && d.value.focus());
87
+ });
88
+ const { clearEventListeners: D } = de({ escHandler: o.dismissible ? z : void 0 });
89
+ return G(() => {
90
+ I(), D();
91
+ }), (l, i) => t.isOpen ? (v(), g("div", {
92
+ key: 0,
93
+ id: t.modalId,
94
+ class: a([n(N), n(re)()]),
95
+ "data-testid": t.testId
96
+ }, [
97
+ r("div", {
98
+ class: a(n(E))
99
+ }, [
100
+ r("div", {
101
+ ref: "modal-window",
102
+ "aria-modal": "true",
103
+ "aria-labelledby": `${e}__content__header__title`,
104
+ class: a(n(M)),
105
+ role: "dialog",
106
+ tabindex: -1
107
+ }, [
108
+ r("div", {
109
+ class: a(`${e}__close-button`)
110
+ }, [
111
+ t.onClose && t.close ? (v(), p(n(X), {
112
+ key: 0,
113
+ "aria-label": "Close modal",
114
+ "border-radius": t.closeBorderRadius,
115
+ color: n(R).Neutral,
116
+ "icon-before": n(te).Delete,
117
+ "icon-size": n(oe).Tiny,
118
+ "on-click": t.onClose,
119
+ "test-id": `${e}__close-button`,
120
+ variant: n(T).Text
121
+ }, null, 8, ["border-radius", "color", "icon-before", "icon-size", "on-click", "test-id", "variant"])) : f("", !0)
122
+ ], 2),
123
+ r("div", {
124
+ class: a(`${e}__content__header`)
125
+ }, [
126
+ r("div", {
127
+ class: a(`${e}__content__title`)
128
+ }, [
129
+ r("div", {
130
+ class: a(`${e}__content__header__container`)
131
+ }, [
132
+ t.title ? (v(), p(n(Y), {
133
+ key: 0,
134
+ id: `${e}__content__header__title`,
135
+ class: a(`${e}__content__header__title`),
136
+ type: n(le).Section
137
+ }, {
138
+ default: J(() => [
139
+ K(P(t.title), 1)
140
+ ]),
141
+ _: 1
142
+ }, 8, ["id", "class", "type"])) : f("", !0),
143
+ $(l.$slots, "header")
144
+ ], 2)
145
+ ], 2)
146
+ ], 2),
147
+ r("div", {
148
+ class: a(`${e}__content__scroller`)
149
+ }, [
150
+ r("div", {
151
+ class: a(`${e}__content__body`)
152
+ }, [
153
+ $(l.$slots, "body")
154
+ ], 2)
155
+ ], 2),
156
+ r("div", {
157
+ class: a(`${e}__content__footer`)
158
+ }, [
159
+ $(l.$slots, "footer")
160
+ ], 2)
161
+ ], 10, ce)
162
+ ], 2),
163
+ t.overlay ? (v(), g("div", {
164
+ key: 0,
165
+ ref: "overlay-ref",
166
+ class: a(`${e}__overlay`),
167
+ style: Q({ zIndex: t.zIndex })
168
+ }, null, 6)) : f("", !0)
169
+ ], 10, ie)) : f("", !0);
170
+ }
171
+ });
172
+ export {
173
+ ye as CLModal,
174
+ ye as default
175
+ };
@@ -38,14 +38,14 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<CL
38
38
  borderRadius: CLBorderRadius;
39
39
  close: boolean;
40
40
  testId: string;
41
- isOpen: boolean;
42
- zIndex: number | string;
43
41
  closeBorderRadius: CLBorderRadius;
44
42
  dismissible: boolean;
45
43
  fullscreen: boolean;
44
+ isOpen: boolean;
46
45
  maxWidth: string;
47
46
  onClose: CLGenericFunction;
48
47
  overlay: boolean;
48
+ zIndex: number | string;
49
49
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
50
50
  'modal-window': HTMLDivElement;
51
51
  'overlay-ref': HTMLDivElement;
@@ -0,0 +1 @@
1
+ :root{--clll-unit-0: 0;--clll-unit-0_5: .125rem;--clll-unit-1: .25rem;--clll-unit-1_5: .375rem;--clll-unit-2: .5rem;--clll-unit-2_5: .625rem;--clll-unit-3: .75rem;--clll-unit-3_5: .875rem;--clll-unit-4: 1rem;--clll-unit-4_5: 1.125rem;--clll-unit-5: 1.25rem;--clll-unit-5_5: 1.375rem;--clll-unit-6: 1.5rem;--clll-unit-6_5: 1.625rem;--clll-unit-7: 1.75rem;--clll-unit-7_5: 1.875rem;--clll-unit-8: 2rem;--clll-unit-8_5: 2.125rem;--clll-unit-9_5: 2.375rem;--clll-unit-10: 2.5rem;--clll-unit-10_5: 2.625rem;--clll-unit-12: 3rem;--clll-unit-14: 3.5rem;--clll-unit-14_5: 3.625rem;--clll-unit-18: 4.5rem}.form-addon-flex{display:flex;align-items:center;justify-content:center;pointer-events:none;user-select:none}.form-addon-flex--left{left:0}.form-addon-flex--right{right:0}.form-addon-flex--icon{z-index:10;box-sizing:border-box}.form-addon-flex--string{position:relative}.form-addon-radius--left-full{border-top-left-radius:var(--clll-rounded-full);border-bottom-left-radius:var(--clll-rounded-full)}.form-addon-radius--right-full{border-top-right-radius:var(--clll-rounded-full);border-bottom-right-radius:var(--clll-rounded-full)}.form-addon-radius--left-lg{border-top-left-radius:var(--clll-rounded-lg);border-bottom-left-radius:var(--clll-rounded-lg)}.form-addon-radius--right-lg{border-top-right-radius:var(--clll-rounded-lg);border-bottom-right-radius:var(--clll-rounded-lg)}.form-addon-radius--left-md{border-top-left-radius:var(--clll-rounded-md);border-bottom-left-radius:var(--clll-rounded-md)}.form-addon-radius--right-md{border-top-right-radius:var(--clll-rounded-md);border-bottom-right-radius:var(--clll-rounded-md)}.form-addon-radius--left-sm{border-top-left-radius:var(--clll-rounded-sm);border-bottom-left-radius:var(--clll-rounded-sm)}.form-addon-radius--right-sm{border-top-right-radius:var(--clll-rounded-sm);border-bottom-right-radius:var(--clll-rounded-sm)}.form-addon-radius--left-xs{border-top-left-radius:var(--clll-rounded-xs);border-bottom-left-radius:var(--clll-rounded-xs)}.form-addon-radius--right-xs{border-top-right-radius:var(--clll-rounded-xs);border-bottom-right-radius:var(--clll-rounded-xs)}.form-addon-radius--left-xl{border-top-left-radius:var(--clll-rounded-xl);border-bottom-left-radius:var(--clll-rounded-xl)}.form-addon-radius--right-xl{border-top-right-radius:var(--clll-rounded-xl);border-bottom-right-radius:var(--clll-rounded-xl)}.form-addon-radius--left-2xl{border-top-left-radius:var(--clll-rounded-2xl);border-bottom-left-radius:var(--clll-rounded-2xl)}.form-addon-radius--right-2xl{border-top-right-radius:var(--clll-rounded-2xl);border-bottom-right-radius:var(--clll-rounded-2xl)}.form-addon-radius--left-3xl{border-top-left-radius:var(--clll-rounded-3xl);border-bottom-left-radius:var(--clll-rounded-3xl)}.form-addon-radius--right-3xl{border-top-right-radius:var(--clll-rounded-3xl);border-bottom-right-radius:var(--clll-rounded-3xl)}.form-addon-radius--left-none{border-top-left-radius:0;border-bottom-left-radius:0}.form-addon-radius--right-none{border-top-right-radius:0;border-bottom-right-radius:0}.form-control-flex{display:inline-flex;align-items:center;justify-content:center;position:relative}.form-counter-flex{display:flex;align-items:center;justify-content:flex-end;max-width:100px;box-sizing:border-box;flex:1;position:relative;pointer-events:none;user-select:none}.form-select-icon-flex{position:absolute;top:0;right:0;height:100%;display:flex;align-items:center;pointer-events:none}:root{--clll-rounded-full: 9999px;--clll-rounded-none: 0;--clll-rounded-xs: var(--clll-unit-1);--clll-rounded-sm: var(--clll-unit-2);--clll-rounded-md: var(--clll-unit-3);--clll-rounded-lg: var(--clll-unit-4);--clll-rounded-xl: var(--clll-unit-5);--clll-rounded-2xl: var(--clll-unit-6);--clll-rounded-3xl: var(--clll-unit-7);--clll-px-xs: var(--clll-unit-1_5);--clll-px-sm: var(--clll-unit-2);--clll-px-md: var(--clll-unit-2_5);--clll-px-lg: var(--clll-unit-3);--clll-px-xl: var(--clll-unit-3_5);--clll-px-2xl: var(--clll-unit-4);--clll-px-3xl: var(--clll-unit-4_5);--clll-px-s-xs: calc(var(--clll-px-xs) * .5);--clll-px-s-sm: calc(var(--clll-px-sm) * .5);--clll-py-xs: calc(var(--clll-unit-1) - 1px);--clll-py-sm: calc(var(--clll-unit-1_5) - 1px);--clll-py-md: calc(var(--clll-unit-2) - 1px);--clll-py-lg: var(--clll-unit-2);--clll-py-xl: var(--clll-unit-2_5);--clll-py-2xl: var(--clll-unit-3);--clll-py-3xl: var(--clll-unit-3_5);--clll-py-4xl: var(--clll-unit-4);--clll-py-s-xs: calc(var(--clll-py-xs) * .5);--clll-z-index-10: 10}.clll-link{cursor:pointer}.clll-link.clll-link--underline.clll-link--neutral,.clll-link.clll-link--underline.clll-link--primary,.clll-link.clll-link--underline.clll-link--secondary,.clll-link.clll-link--underline.clll-link--danger,.clll-link.clll-link--underline.clll-link--info,.clll-link.clll-link--underline.clll-link--warning,.clll-link.clll-link--underline.clll-link--success{font-family:var(--clll-font-family);-webkit-font-smoothing:antialiased;border-radius:var(--clll-rounded-xs);text-underline-offset:var(--clll-unit-0_5);transition-property:text-decoration-color;transition-duration:.3s;transition-timing-function:ease}.clll-link.clll-link--nounderline.clll-link--neutral,.clll-link.clll-link--nounderline.clll-link--primary,.clll-link.clll-link--nounderline.clll-link--secondary,.clll-link.clll-link--nounderline.clll-link--danger,.clll-link.clll-link--nounderline.clll-link--info,.clll-link.clll-link--nounderline.clll-link--warning,.clll-link.clll-link--nounderline.clll-link--success{font-family:var(--clll-font-family);-webkit-font-smoothing:antialiased;border-radius:var(--clll-rounded-xs);transition-property:text-decoration-color;transition-duration:.3s;transition-timing-function:ease}.clll-link .clll-text{transition-property:color;transition-duration:.3s;transition-timing-function:ease}.clll-link.clll-link--external .clll-icon{padding-left:var(--clll-px-s-xs)}
@@ -0,0 +1,6 @@
1
+ import './CLLink.css';
2
+ import { _ as s } from "../../../chunks/CLLink.vue_vue_type_style_index_0_lang-D7BqWIqs.js";
3
+ export {
4
+ s as CLLink,
5
+ s as default
6
+ };
@@ -1,4 +1,4 @@
1
- import { CLColors, CLGenericFunction, CLLinkTarget } from '../../../index.ts';
1
+ import { CLColors, CLGenericFunction, CLLinkTarget } from '../../../types';
2
2
  export interface CLLinkProps {
3
3
  /** Sets the aria-label on the Link element. */
4
4
  ariaLabel?: string;
@@ -23,9 +23,9 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<CL
23
23
  color: CLColors;
24
24
  testId: string;
25
25
  target: CLLinkTarget;
26
+ underline: boolean;
26
27
  external: boolean;
27
28
  rel: string;
28
- underline: boolean;
29
29
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLAnchorElement>, {
30
30
  default?(_: {}): any;
31
31
  }>;
@@ -0,0 +1,5 @@
1
+ import { _ as s } from "../../../chunks/CLNavLink.vue_vue_type_script_setup_true_lang-Dp3SsIfq.js";
2
+ export {
3
+ s as CLNavLink,
4
+ s as default
5
+ };
@@ -1,4 +1,4 @@
1
- import { CLColors, CLGenericFunction, CLLinkTarget } from '../../../index.ts';
1
+ import { CLColors, CLGenericFunction, CLLinkTarget } from '../../../types';
2
2
  export interface CLNavLinkProps {
3
3
  /** Sets the aria-label on the NavLink element. */
4
4
  ariaLabel?: string;
@@ -0,0 +1 @@
1
+ :root{--clll-unit-0: 0;--clll-unit-0_5: .125rem;--clll-unit-1: .25rem;--clll-unit-1_5: .375rem;--clll-unit-2: .5rem;--clll-unit-2_5: .625rem;--clll-unit-3: .75rem;--clll-unit-3_5: .875rem;--clll-unit-4: 1rem;--clll-unit-4_5: 1.125rem;--clll-unit-5: 1.25rem;--clll-unit-5_5: 1.375rem;--clll-unit-6: 1.5rem;--clll-unit-6_5: 1.625rem;--clll-unit-7: 1.75rem;--clll-unit-7_5: 1.875rem;--clll-unit-8: 2rem;--clll-unit-8_5: 2.125rem;--clll-unit-9_5: 2.375rem;--clll-unit-10: 2.5rem;--clll-unit-10_5: 2.625rem;--clll-unit-12: 3rem;--clll-unit-14: 3.5rem;--clll-unit-14_5: 3.625rem;--clll-unit-18: 4.5rem}.form-addon-flex{display:flex;align-items:center;justify-content:center;pointer-events:none;user-select:none}.form-addon-flex--left{left:0}.form-addon-flex--right{right:0}.form-addon-flex--icon{z-index:10;box-sizing:border-box}.form-addon-flex--string{position:relative}.form-addon-radius--left-full{border-top-left-radius:var(--clll-rounded-full);border-bottom-left-radius:var(--clll-rounded-full)}.form-addon-radius--right-full{border-top-right-radius:var(--clll-rounded-full);border-bottom-right-radius:var(--clll-rounded-full)}.form-addon-radius--left-lg{border-top-left-radius:var(--clll-rounded-lg);border-bottom-left-radius:var(--clll-rounded-lg)}.form-addon-radius--right-lg{border-top-right-radius:var(--clll-rounded-lg);border-bottom-right-radius:var(--clll-rounded-lg)}.form-addon-radius--left-md{border-top-left-radius:var(--clll-rounded-md);border-bottom-left-radius:var(--clll-rounded-md)}.form-addon-radius--right-md{border-top-right-radius:var(--clll-rounded-md);border-bottom-right-radius:var(--clll-rounded-md)}.form-addon-radius--left-sm{border-top-left-radius:var(--clll-rounded-sm);border-bottom-left-radius:var(--clll-rounded-sm)}.form-addon-radius--right-sm{border-top-right-radius:var(--clll-rounded-sm);border-bottom-right-radius:var(--clll-rounded-sm)}.form-addon-radius--left-xs{border-top-left-radius:var(--clll-rounded-xs);border-bottom-left-radius:var(--clll-rounded-xs)}.form-addon-radius--right-xs{border-top-right-radius:var(--clll-rounded-xs);border-bottom-right-radius:var(--clll-rounded-xs)}.form-addon-radius--left-xl{border-top-left-radius:var(--clll-rounded-xl);border-bottom-left-radius:var(--clll-rounded-xl)}.form-addon-radius--right-xl{border-top-right-radius:var(--clll-rounded-xl);border-bottom-right-radius:var(--clll-rounded-xl)}.form-addon-radius--left-2xl{border-top-left-radius:var(--clll-rounded-2xl);border-bottom-left-radius:var(--clll-rounded-2xl)}.form-addon-radius--right-2xl{border-top-right-radius:var(--clll-rounded-2xl);border-bottom-right-radius:var(--clll-rounded-2xl)}.form-addon-radius--left-3xl{border-top-left-radius:var(--clll-rounded-3xl);border-bottom-left-radius:var(--clll-rounded-3xl)}.form-addon-radius--right-3xl{border-top-right-radius:var(--clll-rounded-3xl);border-bottom-right-radius:var(--clll-rounded-3xl)}.form-addon-radius--left-none{border-top-left-radius:0;border-bottom-left-radius:0}.form-addon-radius--right-none{border-top-right-radius:0;border-bottom-right-radius:0}.form-control-flex{display:inline-flex;align-items:center;justify-content:center;position:relative}.form-counter-flex{display:flex;align-items:center;justify-content:flex-end;max-width:100px;box-sizing:border-box;flex:1;position:relative;pointer-events:none;user-select:none}.form-select-icon-flex{position:absolute;top:0;right:0;height:100%;display:flex;align-items:center;pointer-events:none}:root{--clll-rounded-full: 9999px;--clll-rounded-none: 0;--clll-rounded-xs: var(--clll-unit-1);--clll-rounded-sm: var(--clll-unit-2);--clll-rounded-md: var(--clll-unit-3);--clll-rounded-lg: var(--clll-unit-4);--clll-rounded-xl: var(--clll-unit-5);--clll-rounded-2xl: var(--clll-unit-6);--clll-rounded-3xl: var(--clll-unit-7);--clll-px-xs: var(--clll-unit-1_5);--clll-px-sm: var(--clll-unit-2);--clll-px-md: var(--clll-unit-2_5);--clll-px-lg: var(--clll-unit-3);--clll-px-xl: var(--clll-unit-3_5);--clll-px-2xl: var(--clll-unit-4);--clll-px-3xl: var(--clll-unit-4_5);--clll-px-s-xs: calc(var(--clll-px-xs) * .5);--clll-px-s-sm: calc(var(--clll-px-sm) * .5);--clll-py-xs: calc(var(--clll-unit-1) - 1px);--clll-py-sm: calc(var(--clll-unit-1_5) - 1px);--clll-py-md: calc(var(--clll-unit-2) - 1px);--clll-py-lg: var(--clll-unit-2);--clll-py-xl: var(--clll-unit-2_5);--clll-py-2xl: var(--clll-unit-3);--clll-py-3xl: var(--clll-unit-3_5);--clll-py-4xl: var(--clll-unit-4);--clll-py-s-xs: calc(var(--clll-py-xs) * .5);--clll-z-index-10: 10}.clll-nav-section{margin:0;padding:0;list-style:none}.clll-nav-section.clll-nav-section--horizontal>:not([hidden])~:not([hidden]){margin-top:var(--clll-unit-2)}@media (min-width: 768px){.clll-nav-section.clll-nav-section--horizontal{display:inline-block}.clll-nav-section.clll-nav-section--horizontal>:not([hidden])~:not([hidden]){margin-top:var(--clll-unit-0)}.clll-nav-section.clll-nav-section--horizontal>:not([hidden])~:not([hidden]){margin-left:var(--clll-unit-4)}}@media (min-width: 1280px){.clll-nav-section.clll-nav-section--horizontal>:not([hidden])~:not([hidden]){margin-left:var(--clll-unit-8)}}@media (min-width: 768px){.clll-nav-section.clll-nav-section--horizontal .clll-nav-section__item{display:inline-block}}.clll-nav-section.clll-nav-section--vertical>:not([hidden])~:not([hidden]){margin-top:var(--clll-unit-2)}@media (min-width: 768px){.clll-nav-section.clll-nav-section--vertical>:not([hidden])~:not([hidden]){margin-top:var(--clll-unit-4)}}
@@ -0,0 +1,55 @@
1
+ import './CLNavSection.css';
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-Dp3SsIfq.js";
4
+ import { _ as L } from "../../../chunks/CLText.vue_vue_type_style_index_0_lang-CTc6UiQV.js";
5
+ import { CLOrientation as h, CLColors as $ } from "../../../index.js";
6
+ const g = ["data-testid"], V = /* @__PURE__ */ f({
7
+ name: "CLNavSection",
8
+ __name: "CLNavSection",
9
+ props: {
10
+ color: { default: $.Primary },
11
+ navItems: {},
12
+ testId: { default: "clll-nav-section" },
13
+ type: { default: h.Horizontal }
14
+ },
15
+ setup(t) {
16
+ const c = t, o = "clll-nav-section", s = u(() => [
17
+ o,
18
+ `${o}--${c.type}`
19
+ ]);
20
+ return (y, N) => (l(), a("ul", {
21
+ class: m(r(s)),
22
+ "data-testid": t.testId
23
+ }, [
24
+ (l(!0), a(p, null, _(t.navItems, (e, d) => (l(), a("li", {
25
+ key: `link-${e.id}-${d}`,
26
+ class: "clll-nav-section__item"
27
+ }, [
28
+ i(r(k), {
29
+ id: e.id,
30
+ "aria-label": e.ariaLabel,
31
+ color: t.color,
32
+ external: e.external,
33
+ href: e.href,
34
+ rel: e.rel,
35
+ target: e.target,
36
+ "on-click": e.onClick
37
+ }, {
38
+ default: n(() => [
39
+ i(r(L), { as: "span" }, {
40
+ default: n(() => [
41
+ C(x(e.label), 1)
42
+ ]),
43
+ _: 2
44
+ }, 1024)
45
+ ]),
46
+ _: 2
47
+ }, 1032, ["id", "aria-label", "color", "external", "href", "rel", "target", "on-click"])
48
+ ]))), 128))
49
+ ], 10, g));
50
+ }
51
+ });
52
+ export {
53
+ V as CLNavSection,
54
+ V as default
55
+ };
@@ -1,4 +1,4 @@
1
- import { CLColors, CLNavItem, CLOrientation } from '../../../index.ts';
1
+ import { CLColors, CLNavItem, CLOrientation } from '../../../types';
2
2
  export interface CLNavSectionProps {
3
3
  /** Set the color of the link. The property can be one of `CLColors`, e.g. `CLColors.Secondary`. */
4
4
  color?: CLColors;
@@ -0,0 +1 @@
1
+ :root{--clll-unit-0: 0;--clll-unit-0_5: .125rem;--clll-unit-1: .25rem;--clll-unit-1_5: .375rem;--clll-unit-2: .5rem;--clll-unit-2_5: .625rem;--clll-unit-3: .75rem;--clll-unit-3_5: .875rem;--clll-unit-4: 1rem;--clll-unit-4_5: 1.125rem;--clll-unit-5: 1.25rem;--clll-unit-5_5: 1.375rem;--clll-unit-6: 1.5rem;--clll-unit-6_5: 1.625rem;--clll-unit-7: 1.75rem;--clll-unit-7_5: 1.875rem;--clll-unit-8: 2rem;--clll-unit-8_5: 2.125rem;--clll-unit-9_5: 2.375rem;--clll-unit-10: 2.5rem;--clll-unit-10_5: 2.625rem;--clll-unit-12: 3rem;--clll-unit-14: 3.5rem;--clll-unit-14_5: 3.625rem;--clll-unit-18: 4.5rem}.form-addon-flex{display:flex;align-items:center;justify-content:center;pointer-events:none;user-select:none}.form-addon-flex--left{left:0}.form-addon-flex--right{right:0}.form-addon-flex--icon{z-index:10;box-sizing:border-box}.form-addon-flex--string{position:relative}.form-addon-radius--left-full{border-top-left-radius:var(--clll-rounded-full);border-bottom-left-radius:var(--clll-rounded-full)}.form-addon-radius--right-full{border-top-right-radius:var(--clll-rounded-full);border-bottom-right-radius:var(--clll-rounded-full)}.form-addon-radius--left-lg{border-top-left-radius:var(--clll-rounded-lg);border-bottom-left-radius:var(--clll-rounded-lg)}.form-addon-radius--right-lg{border-top-right-radius:var(--clll-rounded-lg);border-bottom-right-radius:var(--clll-rounded-lg)}.form-addon-radius--left-md{border-top-left-radius:var(--clll-rounded-md);border-bottom-left-radius:var(--clll-rounded-md)}.form-addon-radius--right-md{border-top-right-radius:var(--clll-rounded-md);border-bottom-right-radius:var(--clll-rounded-md)}.form-addon-radius--left-sm{border-top-left-radius:var(--clll-rounded-sm);border-bottom-left-radius:var(--clll-rounded-sm)}.form-addon-radius--right-sm{border-top-right-radius:var(--clll-rounded-sm);border-bottom-right-radius:var(--clll-rounded-sm)}.form-addon-radius--left-xs{border-top-left-radius:var(--clll-rounded-xs);border-bottom-left-radius:var(--clll-rounded-xs)}.form-addon-radius--right-xs{border-top-right-radius:var(--clll-rounded-xs);border-bottom-right-radius:var(--clll-rounded-xs)}.form-addon-radius--left-xl{border-top-left-radius:var(--clll-rounded-xl);border-bottom-left-radius:var(--clll-rounded-xl)}.form-addon-radius--right-xl{border-top-right-radius:var(--clll-rounded-xl);border-bottom-right-radius:var(--clll-rounded-xl)}.form-addon-radius--left-2xl{border-top-left-radius:var(--clll-rounded-2xl);border-bottom-left-radius:var(--clll-rounded-2xl)}.form-addon-radius--right-2xl{border-top-right-radius:var(--clll-rounded-2xl);border-bottom-right-radius:var(--clll-rounded-2xl)}.form-addon-radius--left-3xl{border-top-left-radius:var(--clll-rounded-3xl);border-bottom-left-radius:var(--clll-rounded-3xl)}.form-addon-radius--right-3xl{border-top-right-radius:var(--clll-rounded-3xl);border-bottom-right-radius:var(--clll-rounded-3xl)}.form-addon-radius--left-none{border-top-left-radius:0;border-bottom-left-radius:0}.form-addon-radius--right-none{border-top-right-radius:0;border-bottom-right-radius:0}.form-control-flex{display:inline-flex;align-items:center;justify-content:center;position:relative}.form-counter-flex{display:flex;align-items:center;justify-content:flex-end;max-width:100px;box-sizing:border-box;flex:1;position:relative;pointer-events:none;user-select:none}.form-select-icon-flex{position:absolute;top:0;right:0;height:100%;display:flex;align-items:center;pointer-events:none}:root{--clll-rounded-full: 9999px;--clll-rounded-none: 0;--clll-rounded-xs: var(--clll-unit-1);--clll-rounded-sm: var(--clll-unit-2);--clll-rounded-md: var(--clll-unit-3);--clll-rounded-lg: var(--clll-unit-4);--clll-rounded-xl: var(--clll-unit-5);--clll-rounded-2xl: var(--clll-unit-6);--clll-rounded-3xl: var(--clll-unit-7);--clll-px-xs: var(--clll-unit-1_5);--clll-px-sm: var(--clll-unit-2);--clll-px-md: var(--clll-unit-2_5);--clll-px-lg: var(--clll-unit-3);--clll-px-xl: var(--clll-unit-3_5);--clll-px-2xl: var(--clll-unit-4);--clll-px-3xl: var(--clll-unit-4_5);--clll-px-s-xs: calc(var(--clll-px-xs) * .5);--clll-px-s-sm: calc(var(--clll-px-sm) * .5);--clll-py-xs: calc(var(--clll-unit-1) - 1px);--clll-py-sm: calc(var(--clll-unit-1_5) - 1px);--clll-py-md: calc(var(--clll-unit-2) - 1px);--clll-py-lg: var(--clll-unit-2);--clll-py-xl: var(--clll-unit-2_5);--clll-py-2xl: var(--clll-unit-3);--clll-py-3xl: var(--clll-unit-3_5);--clll-py-4xl: var(--clll-unit-4);--clll-py-s-xs: calc(var(--clll-py-xs) * .5);--clll-z-index-10: 10}.clll-dropdown-menu__menu{position:relative;display:inline-block}.clll-dropdown-menu__menu .clll-dropdown-menu__dropdown{z-index:var(--v69f60b10)}