@codeandfunction/callaloo 3.16.4 → 3.16.6

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 (104) hide show
  1. package/dist/assets/CLInputMessages.css +1 -1
  2. package/dist/chunks/{CLA11yButton.vue_vue_type_style_index_0_lang-C9OzrJ6Y.js → CLA11yButton.vue_vue_type_style_index_0_lang-Drw6jsX_.js} +13 -12
  3. package/dist/chunks/{CLButton.vue_vue_type_style_index_0_lang--MP4S4D4.js → CLButton.vue_vue_type_style_index_0_lang-CQipGQ26.js} +5 -5
  4. package/dist/chunks/CLCard.vue_vue_type_style_index_0_lang-CAjsSjd9.js +248 -0
  5. package/dist/chunks/{CLFormLabel.vue_vue_type_script_setup_true_lang-DNZdlItJ.js → CLFormLabel.vue_vue_type_script_setup_true_lang-CaHCD2xF.js} +1 -1
  6. package/dist/chunks/{CLHeading.vue_vue_type_style_index_0_lang-BO5OiCE-.js → CLHeading.vue_vue_type_style_index_0_lang-nUnSpm32.js} +11 -10
  7. package/dist/chunks/CLIcon.vue_vue_type_style_index_0_lang-R0Nhlutc.js +84 -0
  8. package/dist/chunks/CLInputMessages.vue_vue_type_style_index_0_lang-Bt5xgOT4.js +153 -0
  9. package/dist/chunks/CLLink.vue_vue_type_style_index_0_lang-DCwTmOOz.js +68 -0
  10. package/dist/chunks/{CLNavLink.vue_vue_type_script_setup_true_lang-DtzSW2Tr.js → CLNavLink.vue_vue_type_script_setup_true_lang-B_AmMW02.js} +1 -1
  11. package/dist/chunks/CLPill.vue_vue_type_style_index_0_lang-B1MuCUnW.js +90 -0
  12. package/dist/chunks/CLProgress.vue_vue_type_style_index_0_lang-DVJDbuDr.js +63 -0
  13. package/dist/chunks/CLSkeleton.vue_vue_type_style_index_0_lang--LtiFHSO.js +30 -0
  14. package/dist/chunks/{CLSpinner.vue_vue_type_style_index_0_lang-DyT8L74M.js → CLSpinner.vue_vue_type_style_index_0_lang-BQ1w9Ik9.js} +17 -16
  15. package/dist/chunks/{CLText.vue_vue_type_style_index_0_lang-CG6043pv.js → CLText.vue_vue_type_style_index_0_lang-BJoS9z9q.js} +14 -13
  16. package/dist/chunks/CLToast.vue_vue_type_style_index_0_lang-Bhat3Q9Z.js +182 -0
  17. package/dist/chunks/utils-CAV1sBee.js +24 -0
  18. package/dist/chunks/utils-CS9Gz4oX.js +25 -0
  19. package/dist/chunks/utils-C_e2F4X7.js +17 -0
  20. package/dist/chunks/utils-Sqgt8Fa4.js +85 -0
  21. package/dist/chunks/utils-cOhtsyeB.js +41 -0
  22. package/dist/chunks/utils-zJwcNHl4.js +37 -0
  23. package/dist/components/Buttons/CLA11yButton/CLA11yButton.css +1 -1
  24. package/dist/components/Buttons/CLA11yButton/CLA11yButton.js +1 -1
  25. package/dist/components/Buttons/CLButton/CLButton.css +1 -1
  26. package/dist/components/Buttons/CLButton/CLButton.js +1 -1
  27. package/dist/components/Buttons/CLButton/CLButton.vue.d.ts +1 -1
  28. package/dist/components/Buttons/utils.d.ts +16 -2
  29. package/dist/components/CLIcon/CLIcon.css +1 -1
  30. package/dist/components/CLIcon/CLIcon.js +1 -1
  31. package/dist/components/CLIcon/utils.d.ts +3 -1
  32. package/dist/components/CLTable/CLTable.css +1 -1
  33. package/dist/components/CLTable/CLTable.js +113 -117
  34. package/dist/components/CLTable/utils.d.ts +5 -1
  35. package/dist/components/Containers/CLCard/CLCard.css +1 -1
  36. package/dist/components/Containers/CLCard/CLCard.js +1 -1
  37. package/dist/components/Containers/CLCarousel/CLCarousel.js +2 -2
  38. package/dist/components/Containers/CLDisclosure/CLDisclosure.css +1 -1
  39. package/dist/components/Containers/CLDisclosure/CLDisclosure.js +32 -31
  40. package/dist/components/Containers/utils.d.ts +15 -2
  41. package/dist/components/Form/CLCheckbox/CLCheckbox.css +1 -1
  42. package/dist/components/Form/CLCheckbox/CLCheckbox.js +33 -35
  43. package/dist/components/Form/CLCheckbox/CLCheckbox.vue.d.ts +2 -2
  44. package/dist/components/Form/CLInput/CLInput.css +1 -1
  45. package/dist/components/Form/CLInput/CLInput.js +31 -33
  46. package/dist/components/Form/CLInput/CLInput.vue.d.ts +3 -3
  47. package/dist/components/Form/CLRadioButton/CLRadioButton.css +1 -1
  48. package/dist/components/Form/CLRadioButton/CLRadioButton.js +35 -34
  49. package/dist/components/Form/CLSelect/CLSelect.css +1 -1
  50. package/dist/components/Form/CLSelect/CLSelect.js +32 -31
  51. package/dist/components/Form/CLTextArea/CLTextArea.css +1 -1
  52. package/dist/components/Form/CLTextArea/CLTextArea.js +21 -20
  53. package/dist/components/Form/utils.d.ts +51 -4
  54. package/dist/components/Indicators/CLBadge/CLBadge.css +1 -1
  55. package/dist/components/Indicators/CLBadge/CLBadge.js +12 -11
  56. package/dist/components/Indicators/CLBanner/CLBanner.css +1 -1
  57. package/dist/components/Indicators/CLBanner/CLBanner.js +49 -52
  58. package/dist/components/Indicators/CLPill/CLPill.css +1 -1
  59. package/dist/components/Indicators/CLPill/CLPill.js +1 -1
  60. package/dist/components/Indicators/CLProgress/CLProgress.css +1 -1
  61. package/dist/components/Indicators/CLProgress/CLProgress.js +1 -1
  62. package/dist/components/Indicators/utils.d.ts +31 -4
  63. package/dist/components/Loading/CLSkeleton/CLSkeleton.css +1 -1
  64. package/dist/components/Loading/CLSkeleton/CLSkeleton.js +1 -1
  65. package/dist/components/Loading/CLSpinner/CLSpinner.css +1 -1
  66. package/dist/components/Loading/CLSpinner/CLSpinner.js +1 -1
  67. package/dist/components/Loading/utils.d.ts +7 -2
  68. package/dist/components/Modals/CLModal/CLModal.css +1 -1
  69. package/dist/components/Modals/CLModal/CLModal.js +92 -91
  70. package/dist/components/Modals/utils.d.ts +5 -1
  71. package/dist/components/Navigation/CLLink/CLLink.css +1 -1
  72. package/dist/components/Navigation/CLLink/CLLink.js +1 -1
  73. package/dist/components/Navigation/CLNavLink/CLNavLink.js +1 -1
  74. package/dist/components/Navigation/CLNavSection/CLNavSection.js +2 -2
  75. package/dist/components/Navigation/utils.d.ts +8 -1
  76. package/dist/components/Popups/CLDropdownMenu/CLDropdownMenu.css +1 -1
  77. package/dist/components/Popups/CLDropdownMenu/CLDropdownMenu.js +200 -203
  78. package/dist/components/Popups/CLDropdownMenu/CLDropdownMenu.vue.d.ts +3 -3
  79. package/dist/components/Popups/CLToast/CLToast.css +1 -1
  80. package/dist/components/Popups/CLToast/CLToast.js +1 -1
  81. package/dist/components/Popups/utils.d.ts +8 -1
  82. package/dist/components/Providers/CLThemeProvider/utils.d.ts +0 -1
  83. package/dist/components/Providers/CLToastProvider/CLToastProvider.js +1 -1
  84. package/dist/components/Typography/CLHeading/CLHeading.css +1 -1
  85. package/dist/components/Typography/CLHeading/CLHeading.js +1 -1
  86. package/dist/components/Typography/CLText/CLText.css +1 -1
  87. package/dist/components/Typography/CLText/CLText.js +1 -1
  88. package/dist/components/Typography/utils.d.ts +3 -1
  89. package/dist/composables/useTheme.js +17 -16
  90. package/package.json +1 -4
  91. package/dist/chunks/CLCard.vue_vue_type_style_index_0_lang-Ba1c7ZNn.js +0 -252
  92. package/dist/chunks/CLIcon.vue_vue_type_style_index_0_lang-B_341q_b.js +0 -84
  93. package/dist/chunks/CLInputMessages.vue_vue_type_style_index_0_lang-DZEfoinY.js +0 -121
  94. package/dist/chunks/CLLink.vue_vue_type_style_index_0_lang-RAFpWIR2.js +0 -60
  95. package/dist/chunks/CLPill.vue_vue_type_style_index_0_lang-UKMQXfI-.js +0 -88
  96. package/dist/chunks/CLProgress.vue_vue_type_style_index_0_lang-BMozy0NJ.js +0 -65
  97. package/dist/chunks/CLSkeleton.vue_vue_type_style_index_0_lang-C82FyxKt.js +0 -33
  98. package/dist/chunks/CLToast.vue_vue_type_style_index_0_lang-LiL8p_1M.js +0 -179
  99. package/dist/chunks/utils-B_htczw5.js +0 -30
  100. package/dist/chunks/utils-Bf54TEIp.js +0 -387
  101. package/dist/chunks/utils-CPp2QUlb.js +0 -15
  102. package/dist/chunks/utils-Cm9XP0Vu.js +0 -29
  103. package/dist/chunks/utils-DPwEOLZc.js +0 -26
  104. package/dist/chunks/utils-_aITYXfA.js +0 -73
@@ -119,11 +119,11 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<CL
119
119
  title: string;
120
120
  color: CLColors;
121
121
  variant: CLColorVariants;
122
- form: string;
123
122
  borderRadius: CLBorderRadius;
124
123
  rounded: boolean;
125
124
  testId: string;
126
125
  type: import('../../../types').CLButtonTypes;
126
+ form: string;
127
127
  onClick: (event?: Event) => void;
128
128
  target: import('../../../types').CLLinkTarget;
129
129
  width: string;
@@ -168,11 +168,11 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<CL
168
168
  title: string;
169
169
  color: CLColors;
170
170
  variant: CLColorVariants;
171
- form: string;
172
171
  borderRadius: CLBorderRadius;
173
172
  rounded: boolean;
174
173
  testId: string;
175
174
  type: import('../../../types').CLButtonTypes;
175
+ form: string;
176
176
  onClick: (event?: Event) => void;
177
177
  target: import('../../../types').CLLinkTarget;
178
178
  width: string;
@@ -193,7 +193,7 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<CL
193
193
  iconSize: CLIconSizes;
194
194
  pill: boolean;
195
195
  wrap: boolean;
196
- }> & Omit<Readonly<import('../../Buttons/CLButton/CLButton.vue').CLButtonProps> & Readonly<{}>, "title" | "color" | "variant" | "form" | "borderRadius" | "rounded" | "testId" | "type" | "onClick" | "target" | "width" | "height" | "size" | "href" | "active" | "alignContent" | "ariaLabel" | "as" | "busy" | "disabled" | "elevated" | "forwardRef" | "iconAfter" | "iconBefore" | "iconAfterSize" | "iconSize" | "pill" | "wrap"> & import('vue').ShallowUnwrapRef<{}> & {} & import('vue').ComponentCustomProperties & {} & {
196
+ }> & Omit<Readonly<import('../../Buttons/CLButton/CLButton.vue').CLButtonProps> & Readonly<{}>, "title" | "color" | "variant" | "borderRadius" | "rounded" | "testId" | "type" | "form" | "onClick" | "target" | "width" | "height" | "size" | "href" | "active" | "alignContent" | "ariaLabel" | "as" | "busy" | "disabled" | "elevated" | "forwardRef" | "iconAfter" | "iconBefore" | "iconAfterSize" | "iconSize" | "pill" | "wrap"> & import('vue').ShallowUnwrapRef<{}> & {} & import('vue').ComponentCustomProperties & {} & {
197
197
  $slots: {
198
198
  default?(_: {}): any;
199
199
  };
@@ -1 +1 @@
1
- .clll-toast{bottom:var(--clll-unit-4);position:fixed;overflow:hidden;width:90%;left:0;right:0;margin-left:auto;margin-right:auto;transform:translateY(100vh);transition-property:all;transition-duration:.3s;transition-timing-function:ease;box-shadow:0 0 var(--clll-unit-3) var(--clll-unit-0_5) #0000001f,0 0 var(--clll-unit-1) var(--clll-unit-0_5) #00000005}@media(min-width:768px){.clll-toast{width:var(--v1fbbc974)}}@media(min-width:768px){.clll-toast.clll-toast--bottom-left{left:var(--clll-unit-8);bottom:var(--clll-unit-8);margin-left:0}}@media(min-width:768px){.clll-toast.clll-toast--bottom-center{left:0;right:0;margin-left:auto;margin-right:auto;bottom:var(--clll-unit-8)}}@media(min-width:768px){.clll-toast.clll-toast--bottom-right{right:var(--clll-unit-8);bottom:var(--clll-unit-8);margin-right:0}}@media(min-width:768px){.clll-toast.clll-toast--top-left{left:var(--clll-unit-8);top:var(--clll-unit-8);bottom:auto;transform:translateY(-20vh);margin-left:0}}@media(min-width:768px){.clll-toast.clll-toast--top-center{left:0;right:0;margin-left:auto;margin-right:auto;top:var(--clll-unit-8);bottom:auto;transform:translateY(-20vh)}}@media(min-width:768px){.clll-toast.clll-toast--top-right{right:var(--clll-unit-8);top:var(--clll-unit-8);bottom:auto;transform:translateY(-20vh);margin-right:0}}.clll-toast .clll-toast__body{display:flex;align-items:center;padding-top:var(--clll-unit-2_5);padding-left:var(--clll-unit-4);padding-bottom:var(--clll-unit-2_5);padding-right:var(--clll-unit-4)}.clll-toast .clll-toast__body>:not([hidden])~:not([hidden]){margin-left:var(--clll-unit-4)}.clll-toast .clll-toast__body .clll-toast__content{display:flex;align-items:center;flex:1 1 0%}.clll-toast .clll-toast__body .clll-toast__content>:not([hidden])~:not([hidden]){margin-left:var(--clll-unit-4)}.clll-toast .clll-toast__body .clll-toast__content .clll-toast__icon{display:flex;flex-direction:column;align-items:center;padding:var(--clll-unit-2);border-radius:var(--clll-rounded-full)}.clll-toast .clll-toast__body .clll-toast__content .clll-toast__text{flex:1 1 0%}.clll-toast .clll-toast__timer-bar{position:relative;left:0;bottom:0;height:var(--clll-unit-1);transform-origin:left;width:100%;transform:translateZ(0) rotate(0) skew(0) skewY(0) scaleX(0) scaleY(0)}.clll-toast.clll-toast--has-icon .clll-toast__body{padding-top:var(--clll-unit-2);padding-bottom:var(--clll-unit-2)}.clll-toast.clll-toast--has-titleandmessage .clll-toast__body{padding-top:var(--clll-unit-4);padding-bottom:var(--clll-unit-4)}.clll-toast.clll-toast--has-titleandmessage .clll-toast__body .clll-toast__content .clll-toast__text .clll-text--large{font-weight:500}.clll-toast.clll-toast--mounted{transform:translateY(0)}.clll-toast.clll-toast--rounded{border-radius:var(--clll-rounded-sm)}.clll-toast.clll-toast--rounded.clll-toast--rounded-full,.clll-toast.clll-toast--rounded.clll-toast--rounded-full .clll-{border-radius:var(--clll-rounded-full)}.clll-toast.clll-toast--rounded.clll-toast--rounded-lg,.clll-toast.clll-toast--rounded.clll-toast--rounded-lg .clll-{border-radius:var(--clll-rounded-lg)}.clll-toast.clll-toast--rounded.clll-toast--rounded-md,.clll-toast.clll-toast--rounded.clll-toast--rounded-md .clll-{border-radius:var(--clll-rounded-md)}.clll-toast.clll-toast--rounded.clll-toast--rounded-sm,.clll-toast.clll-toast--rounded.clll-toast--rounded-sm .clll-{border-radius:var(--clll-rounded-sm)}.clll-toast.clll-toast--rounded.clll-toast--rounded-xs,.clll-toast.clll-toast--rounded.clll-toast--rounded-xs .clll-{border-radius:var(--clll-rounded-xs)}.clll-toast.clll-toast--rounded.clll-toast--rounded-xl,.clll-toast.clll-toast--rounded.clll-toast--rounded-xl .clll-{border-radius:var(--clll-rounded-xl)}.clll-toast.clll-toast--rounded.clll-toast--rounded-2xl,.clll-toast.clll-toast--rounded.clll-toast--rounded-2xl .clll-{border-radius:var(--clll-rounded-2xl)}.clll-toast.clll-toast--rounded.clll-toast--rounded-3xl,.clll-toast.clll-toast--rounded.clll-toast--rounded-3xl .clll-{border-radius:var(--clll-rounded-3xl)}.clll-toast.clll-toast--rounded.clll-toast--rounded-none,.clll-toast.clll-toast--rounded.clll-toast--rounded-none .clll-{border-radius:0}
1
+ .clll-toast{bottom:var(--clll-unit-4);position:fixed;overflow:hidden;width:90%;left:0;right:0;margin-left:auto;margin-right:auto;transform:translateY(100vh);background-color:var(--clll-toast-bg-color, white);color:var(--clll-toast-text-color, inherit);transition-property:all;transition-duration:.3s;transition-timing-function:ease;box-shadow:0 0 var(--clll-unit-3) var(--clll-unit-0_5) #0000001f,0 0 var(--clll-unit-1) var(--clll-unit-0_5) #00000005}@media(min-width:768px){.clll-toast{width:var(--clll-toast-width)}}@media(min-width:768px){.clll-toast.clll-toast--bottom-left{left:var(--clll-unit-8);bottom:var(--clll-unit-8);margin-left:0}}@media(min-width:768px){.clll-toast.clll-toast--bottom-center{left:0;right:0;margin-left:auto;margin-right:auto;bottom:var(--clll-unit-8)}}@media(min-width:768px){.clll-toast.clll-toast--bottom-right{right:var(--clll-unit-8);bottom:var(--clll-unit-8);margin-right:0}}@media(min-width:768px){.clll-toast.clll-toast--top-left{left:var(--clll-unit-8);top:var(--clll-unit-8);bottom:auto;transform:translateY(-20vh);margin-left:0}}@media(min-width:768px){.clll-toast.clll-toast--top-center{left:0;right:0;margin-left:auto;margin-right:auto;top:var(--clll-unit-8);bottom:auto;transform:translateY(-20vh)}}@media(min-width:768px){.clll-toast.clll-toast--top-right{right:var(--clll-unit-8);top:var(--clll-unit-8);bottom:auto;transform:translateY(-20vh);margin-right:0}}.clll-toast .clll-toast__body{display:flex;align-items:center;padding-top:var(--clll-unit-2_5);padding-left:var(--clll-unit-4);padding-bottom:var(--clll-unit-2_5);padding-right:var(--clll-unit-4)}.clll-toast .clll-toast__body>:not([hidden])~:not([hidden]){margin-left:var(--clll-unit-4)}.clll-toast .clll-toast__body .clll-toast__content{display:flex;align-items:center;flex:1 1 0%}.clll-toast .clll-toast__body .clll-toast__content>:not([hidden])~:not([hidden]){margin-left:var(--clll-unit-4)}.clll-toast .clll-toast__body .clll-toast__content .clll-toast__icon{display:flex;flex-direction:column;align-items:center;padding:var(--clll-unit-2);border-radius:var(--clll-rounded-full);background-color:var(--clll-toast-icon-bg, transparent)}.clll-toast .clll-toast__body .clll-toast__content .clll-toast__icon .clll-icon{color:var(--clll-toast-icon-color, inherit)}.clll-toast .clll-toast__body .clll-toast__content .clll-toast__text{flex:1 1 0%}.clll-toast .clll-toast__timer-bar{position:relative;left:0;bottom:0;height:var(--clll-unit-1);transform-origin:left;width:100%;background-color:var(--clll-toast-timer-bg, transparent);transform:translateZ(0) rotate(0) skew(0) skewY(0) scaleX(0) scaleY(0)}.clll-toast.clll-toast--has-icon .clll-toast__body{padding-top:var(--clll-unit-2);padding-bottom:var(--clll-unit-2)}.clll-toast.clll-toast--has-titleandmessage .clll-toast__body{padding-top:var(--clll-unit-4);padding-bottom:var(--clll-unit-4)}.clll-toast.clll-toast--has-titleandmessage .clll-toast__body .clll-toast__content .clll-toast__text .clll-text--large{font-weight:500}.clll-toast.clll-toast--mounted{transform:translateY(0)}.clll-toast.clll-toast--rounded{border-radius:var(--clll-rounded-sm)}.clll-toast.clll-toast--rounded.clll-toast--rounded-full,.clll-toast.clll-toast--rounded.clll-toast--rounded-full .clll-{border-radius:var(--clll-rounded-full)}.clll-toast.clll-toast--rounded.clll-toast--rounded-lg,.clll-toast.clll-toast--rounded.clll-toast--rounded-lg .clll-{border-radius:var(--clll-rounded-lg)}.clll-toast.clll-toast--rounded.clll-toast--rounded-md,.clll-toast.clll-toast--rounded.clll-toast--rounded-md .clll-{border-radius:var(--clll-rounded-md)}.clll-toast.clll-toast--rounded.clll-toast--rounded-sm,.clll-toast.clll-toast--rounded.clll-toast--rounded-sm .clll-{border-radius:var(--clll-rounded-sm)}.clll-toast.clll-toast--rounded.clll-toast--rounded-xs,.clll-toast.clll-toast--rounded.clll-toast--rounded-xs .clll-{border-radius:var(--clll-rounded-xs)}.clll-toast.clll-toast--rounded.clll-toast--rounded-xl,.clll-toast.clll-toast--rounded.clll-toast--rounded-xl .clll-{border-radius:var(--clll-rounded-xl)}.clll-toast.clll-toast--rounded.clll-toast--rounded-2xl,.clll-toast.clll-toast--rounded.clll-toast--rounded-2xl .clll-{border-radius:var(--clll-rounded-2xl)}.clll-toast.clll-toast--rounded.clll-toast--rounded-3xl,.clll-toast.clll-toast--rounded.clll-toast--rounded-3xl .clll-{border-radius:var(--clll-rounded-3xl)}.clll-toast.clll-toast--rounded.clll-toast--rounded-none,.clll-toast.clll-toast--rounded.clll-toast--rounded-none .clll-{border-radius:0}.clll-toast.clll-toast--rounded:not([class*=clll-toast--rounded-]){border-radius:var(--clll-toast-theme-radius, var(--clll-rounded-sm))}
@@ -1,6 +1,6 @@
1
1
  import '../../../assets/core.css';
2
2
  import './CLToast.css';
3
- import { _ as s } from "../../../chunks/CLToast.vue_vue_type_style_index_0_lang-LiL8p_1M.js";
3
+ import { _ as s } from "../../../chunks/CLToast.vue_vue_type_style_index_0_lang-Bhat3Q9Z.js";
4
4
  export {
5
5
  s as CLToast,
6
6
  s as default
@@ -3,5 +3,12 @@ interface ThemeProps {
3
3
  color: CLColors;
4
4
  variant: CLColorVariants;
5
5
  }
6
- export declare const toastTheme: ({ color, variant }: ThemeProps) => string;
6
+ export declare const toastTheme: ({ color, variant }: ThemeProps) => {
7
+ '--clll-toast-bg-color': string;
8
+ '--clll-toast-text-color': string;
9
+ '--clll-toast-icon-bg': string;
10
+ '--clll-toast-icon-color': string;
11
+ '--clll-toast-timer-bg': string;
12
+ '--clll-toast-theme-radius': string | undefined;
13
+ };
7
14
  export {};
@@ -7,7 +7,6 @@ interface BaseFormElementProps {
7
7
  }
8
8
  export declare const baseFormElement: ({ backgroundColor, borderColor, placeholderColor }: BaseFormElementProps) => string;
9
9
  export declare const css: (template: TemplateStringsArray, ...args: any[]) => string;
10
- export declare const cx: (...classNames: any[]) => string;
11
10
  interface FocusProps {
12
11
  borderColor?: string;
13
12
  outlineWidth?: string;
@@ -1,6 +1,6 @@
1
1
  import '../../../assets/core.css';
2
2
  import { defineComponent as L, ref as i, provide as g, createElementBlock as k, openBlock as p, createBlock as z, createCommentVNode as B, renderSlot as S, unref as A } from "vue";
3
- import { _ as $ } from "../../../chunks/CLToast.vue_vue_type_style_index_0_lang-LiL8p_1M.js";
3
+ import { _ as $ } from "../../../chunks/CLToast.vue_vue_type_style_index_0_lang-Bhat3Q9Z.js";
4
4
  const x = { class: "clll-toast-provider" }, N = /* @__PURE__ */ L({
5
5
  name: "CLToastProvider",
6
6
  __name: "CLToastProvider",
@@ -1 +1 @@
1
- .clll-heading{font-family:var(--clll-font-family);-webkit-font-smoothing:antialiased;margin:0}.clll-heading.clll-heading--pagetitle{font-weight:700;font-size:var(--clll-unit-12);line-height:var(--clll-unit-14_5)}.clll-heading.clll-heading--title{font-weight:600;font-size:var(--clll-unit-8);line-height:var(--clll-unit-10_5)}.clll-heading.clll-heading--section{font-weight:600;font-size:var(--clll-unit-5);line-height:var(--clll-unit-7_5)}.clll-heading.clll-heading--subsection{font-weight:500;font-size:var(--clll-unit-4);line-height:var(--clll-unit-6_5)}.clll-heading.clll-heading--small{font-weight:700;font-size:var(--clll-unit-3);line-height:var(--clll-unit-5)}.clll-heading.clll-heading--medium{font-weight:700;font-size:var(--clll-unit-3_5);line-height:var(--clll-unit-6)}.clll-heading.clll-heading--large{font-weight:700;font-size:var(--clll-unit-4_5);line-height:var(--clll-unit-7)}.clll-heading.clll-heading--xlarge{font-weight:700;font-size:var(--clll-unit-5);line-height:var(--clll-unit-7_5)}.clll-heading.clll-heading--wrap{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.clll-heading.clll-heading--bolder{font-weight:900}.clll-heading.clll-heading--left{text-align:left}.clll-heading.clll-heading--center{text-align:center}.clll-heading.clll-heading--right{text-align:right}
1
+ .clll-heading{font-family:var(--clll-font-family);-webkit-font-smoothing:antialiased;margin:0;color:var(--clll-text-color, inherit);white-space:pre-wrap}.clll-heading.clll-heading--pagetitle{font-weight:700;font-size:var(--clll-unit-12);line-height:var(--clll-unit-14_5)}.clll-heading.clll-heading--title{font-weight:600;font-size:var(--clll-unit-8);line-height:var(--clll-unit-10_5)}.clll-heading.clll-heading--section{font-weight:600;font-size:var(--clll-unit-5);line-height:var(--clll-unit-7_5)}.clll-heading.clll-heading--subsection{font-weight:500;font-size:var(--clll-unit-4);line-height:var(--clll-unit-6_5)}.clll-heading.clll-heading--small{font-weight:700;font-size:var(--clll-unit-3);line-height:var(--clll-unit-5)}.clll-heading.clll-heading--medium{font-weight:700;font-size:var(--clll-unit-3_5);line-height:var(--clll-unit-6)}.clll-heading.clll-heading--large{font-weight:700;font-size:var(--clll-unit-4_5);line-height:var(--clll-unit-7)}.clll-heading.clll-heading--xlarge{font-weight:700;font-size:var(--clll-unit-5);line-height:var(--clll-unit-7_5)}.clll-heading.clll-heading--wrap{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.clll-heading.clll-heading--bolder{font-weight:900}.clll-heading.clll-heading--left{text-align:left}.clll-heading.clll-heading--center{text-align:center}.clll-heading.clll-heading--right{text-align:right}
@@ -1,6 +1,6 @@
1
1
  import '../../../assets/core.css';
2
2
  import './CLHeading.css';
3
- import { _ as s } from "../../../chunks/CLHeading.vue_vue_type_style_index_0_lang-BO5OiCE-.js";
3
+ import { _ as s } from "../../../chunks/CLHeading.vue_vue_type_style_index_0_lang-nUnSpm32.js";
4
4
  export {
5
5
  s as CLHeading,
6
6
  s as default
@@ -1 +1 @@
1
- .clll-text{font-family:var(--clll-font-family);-webkit-font-smoothing:antialiased;margin:0;font-weight:400}.clll-text.clll-text--body{font-size:var(--clll-unit-4);line-height:var(--clll-unit-6_5)}.clll-text.clll-text--summary{font-size:var(--clll-unit-3_5);line-height:var(--clll-unit-6)}.clll-text.clll-text--tiny{font-size:var(--clll-unit-2_5);line-height:var(--clll-unit-3_5)}.clll-text.clll-text--small{font-size:var(--clll-unit-3);line-height:var(--clll-unit-5)}.clll-text.clll-text--medium{font-size:var(--clll-unit-3_5);line-height:var(--clll-unit-6)}.clll-text.clll-text--large{font-size:var(--clll-unit-4_5);line-height:var(--clll-unit-7)}.clll-text.clll-text--xlarge{font-size:var(--clll-unit-5);line-height:var(--clll-unit-7_5)}.clll-text.clll-text--wrap{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.clll-text.clll-text--bold{font-weight:700}.clll-text.clll-text--bolder{font-weight:900}.clll-text.clll-text--light{font-weight:300}.clll-text.clll-text--mediumbold{font-weight:500}.clll-text.clll-text--left{text-align:left}.clll-text.clll-text--center{text-align:center}.clll-text.clll-text--right{text-align:right}
1
+ .clll-text{font-family:var(--clll-font-family);-webkit-font-smoothing:antialiased;margin:0;color:var(--clll-text-color, inherit);white-space:pre-wrap;font-weight:400}.clll-text.clll-text--body{font-size:var(--clll-unit-4);line-height:var(--clll-unit-6_5)}.clll-text.clll-text--summary{font-size:var(--clll-unit-3_5);line-height:var(--clll-unit-6)}.clll-text.clll-text--tiny{font-size:var(--clll-unit-2_5);line-height:var(--clll-unit-3_5)}.clll-text.clll-text--small{font-size:var(--clll-unit-3);line-height:var(--clll-unit-5)}.clll-text.clll-text--medium{font-size:var(--clll-unit-3_5);line-height:var(--clll-unit-6)}.clll-text.clll-text--large{font-size:var(--clll-unit-4_5);line-height:var(--clll-unit-7)}.clll-text.clll-text--xlarge{font-size:var(--clll-unit-5);line-height:var(--clll-unit-7_5)}.clll-text.clll-text--wrap{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.clll-text.clll-text--bold{font-weight:700}.clll-text.clll-text--bolder{font-weight:900}.clll-text.clll-text--light{font-weight:300}.clll-text.clll-text--mediumbold{font-weight:500}.clll-text.clll-text--left{text-align:left}.clll-text.clll-text--center{text-align:center}.clll-text.clll-text--right{text-align:right}
@@ -1,6 +1,6 @@
1
1
  import '../../../assets/core.css';
2
2
  import './CLText.css';
3
- import { _ as s } from "../../../chunks/CLText.vue_vue_type_style_index_0_lang-CG6043pv.js";
3
+ import { _ as s } from "../../../chunks/CLText.vue_vue_type_style_index_0_lang-BJoS9z9q.js";
4
4
  export {
5
5
  s as CLText,
6
6
  s as default
@@ -2,5 +2,7 @@ import { CLColors } from '../../index.ts';
2
2
  interface TextThemeProps {
3
3
  color?: CLColors;
4
4
  }
5
- export declare const textTheme: ({ color }: TextThemeProps) => string;
5
+ export declare const textTheme: ({ color }: TextThemeProps) => {
6
+ '--clll-text-color': string;
7
+ };
6
8
  export {};
@@ -1,6 +1,7 @@
1
1
  import '../assets/core.css';
2
2
  import { ref as t, inject as n } from "vue";
3
- const s = t(), a = t(), r = t(), o = t({
3
+ import { D as o } from "../chunks/base-theme-Bg6XMoeN.js";
4
+ const a = t(o.borderRadius), r = t(o.darkMode), l = t(o.fontFamily), s = t(o.colors || {
4
5
  primary: {},
5
6
  secondary: {},
6
7
  neutral: {},
@@ -8,24 +9,24 @@ const s = t(), a = t(), r = t(), o = t({
8
9
  warning: {},
9
10
  success: {},
10
11
  info: {}
11
- }), l = (e) => {
12
- s.value = e;
13
- }, c = (e) => {
14
- o.value = { ...o.value, ...e };
15
- }, u = (e) => {
12
+ }), c = (e) => {
16
13
  a.value = e;
14
+ }, u = (e) => {
15
+ s.value = { ...s.value, ...e };
17
16
  }, d = (e) => {
18
17
  r.value = e;
19
- }, m = () => n("clll-theme", {
20
- borderRadius: s,
21
- colors: o,
22
- darkMode: a,
23
- fontFamily: r,
24
- setBorderRadius: l,
25
- setColors: c,
26
- setDarkMode: u,
27
- setFontFamily: d
18
+ }, i = (e) => {
19
+ l.value = e;
20
+ }, D = () => n("clll-theme", {
21
+ borderRadius: a,
22
+ colors: s,
23
+ darkMode: r,
24
+ fontFamily: l,
25
+ setBorderRadius: c,
26
+ setColors: u,
27
+ setDarkMode: d,
28
+ setFontFamily: i
28
29
  });
29
30
  export {
30
- m as useTheme
31
+ D as useTheme
31
32
  };
package/package.json CHANGED
@@ -17,7 +17,7 @@
17
17
  "ui components",
18
18
  "vuejs"
19
19
  ],
20
- "version": "3.16.4",
20
+ "version": "3.16.6",
21
21
  "license": "MIT",
22
22
  "type": "module",
23
23
  "scripts": {
@@ -192,7 +192,6 @@
192
192
  "@storybook/vue3-vite": "^9.1.13",
193
193
  "@types/lodash-es": "^4.17.12",
194
194
  "@types/node": "^24.9.1",
195
- "@types/stylis": "^4.2.7",
196
195
  "@vitejs/plugin-vue": "^6.0.1",
197
196
  "@vitejs/plugin-vue-jsx": "^5.1.1",
198
197
  "@vitest/browser": "4.0.1",
@@ -209,7 +208,6 @@
209
208
  "fast-glob": "^3.3.3",
210
209
  "jsdom": "^27.0.1",
211
210
  "lodash-es": "^4.17.21",
212
- "murmurhash": "^2.0.1",
213
211
  "playwright": "^1.56.1",
214
212
  "rollup-plugin-visualizer": "^6.0.5",
215
213
  "sass": "^1.89.2",
@@ -217,7 +215,6 @@
217
215
  "size-limit": "^11.0.0",
218
216
  "storybook": "^9.1.13",
219
217
  "storybook-addon-deep-controls": "^0.9.5",
220
- "stylis": "^4.3.6",
221
218
  "tsx": "^4.20.6",
222
219
  "unplugin-auto-import": "^20.2.0",
223
220
  "vite": "^7.1.12",
@@ -1,252 +0,0 @@
1
- import { defineComponent as W, useCssVars as I, useSlots as D, ref as v, computed as F, onMounted as K, nextTick as M, createElementBlock as r, openBlock as n, withKeys as q, normalizeClass as d, unref as l, createCommentVNode as o, createElementVNode as u, withDirectives as S, createVNode as z, vShow as x, createBlock as c, renderSlot as s, Fragment as G, withCtx as y, createTextVNode as k, toDisplayString as b } from "vue";
2
- import { _ as A } from "./CLHeading.vue_vue_type_style_index_0_lang-BO5OiCE-.js";
3
- import { _ as j } from "./CLLink.vue_vue_type_style_index_0_lang-RAFpWIR2.js";
4
- import { _ as m } from "./CLSkeleton.vue_vue_type_style_index_0_lang-C82FyxKt.js";
5
- import { _ as J } from "./CLText.vue_vue_type_style_index_0_lang-CG6043pv.js";
6
- import { CLColorVariants as E, CLCardTypes as P, CLHeadingTypes as Q, CLHeadingLevels as U, CLLinkTarget as X, CLOverflow as Y, CLLoading as Z, CLColors as p, CLAlign as _, CLOrder as O, CLTextTypes as ee } from "../index.js";
7
- import { c as ae } from "./utils-B_htczw5.js";
8
- import { useHasSlotContent as te } from "../composables/useHasSlotContent.js";
9
- const le = ["data-testid", "tabindex"], ie = ["alt", "loading", "src"], ne = ["alt", "loading", "src"], de = ["aria-label", "href", "target"], ye = /* @__PURE__ */ W({
10
- name: "CLCard",
11
- __name: "CLCard",
12
- props: {
13
- active: { type: Boolean, default: !1 },
14
- align: { default: _.Left },
15
- ariaLabel: {},
16
- borderRadius: {},
17
- bordered: { type: Boolean, default: !0 },
18
- busy: { type: Boolean, default: !1 },
19
- byline: {},
20
- color: { default: p.Neutral },
21
- compact: { type: Boolean, default: !1 },
22
- elevated: { type: Boolean, default: !1 },
23
- forwardRef: {},
24
- height: { default: "auto" },
25
- href: {},
26
- image: {},
27
- imageAltText: { default: "" },
28
- imageHeight: { default: "auto" },
29
- imageLoading: { default: Z.Eager },
30
- imageOrder: {},
31
- imageWidth: { default: "auto" },
32
- onClick: {},
33
- overflow: { default: Y.Hidden },
34
- padded: { type: Boolean, default: !0 },
35
- rounded: { type: Boolean, default: !0 },
36
- target: { default: X.Self },
37
- testId: { default: "clll-card" },
38
- title: {},
39
- titleHLevel: { default: U.H2 },
40
- titleType: { default: Q.SubSection },
41
- truncateTitle: { type: Boolean, default: !1 },
42
- type: { default: P.Medium },
43
- variant: { default: E.Soft },
44
- width: { default: "auto" }
45
- },
46
- setup(e) {
47
- I((i) => ({
48
- v788294c1: i.width,
49
- v7e01098c: i.height,
50
- v561da727: i.overflow,
51
- v6ce6f310: i.imageWidth,
52
- v1628751d: i.imageHeight
53
- }));
54
- const a = "clll-card", t = e, C = te(), L = D(), $ = v(), w = v(), N = ["a", "button"], h = v(), V = F(() => [
55
- a,
56
- `${a}--${t.type}`,
57
- `${a}--${t.color}-${t.variant}`,
58
- `${a}--${t.variant}`,
59
- `${a}--align-${t.align}`,
60
- t.rounded ? `${a}--rounded` : `${a}--box`,
61
- t.bordered ? `${a}--bordered` : "",
62
- t.borderRadius ? `${a}--${t.borderRadius}` : "",
63
- t.busy ? `${a}--busy` : `${a}--ready`,
64
- t.compact ? `${a}--compact` : `${a}--no-compact`,
65
- t.title || t.byline ? `${a}--has-header` : `${a}--no-header`,
66
- $.value ? `${a}--has-heading` : `${a}--no-heading`,
67
- C.value ? `${a}--has-content` : `${a}--no-content`,
68
- w.value ? `${a}--has-footer` : `${a}--no-footer`,
69
- t.image ? `${a}--has-image` : `${a}--has-no-image`,
70
- t.imageOrder ? `${a}--image-${t.imageOrder}` : "",
71
- t.active ? `${a}--active` : `${a}--inactive`,
72
- t.onClick ? `${a}--has-link` : "",
73
- t.truncateTitle ? `${a}--has-truncated-title` : "",
74
- t.elevated ? `${a}--elevated` : "",
75
- t.overflow ? `${a}--overflow-${t.overflow}` : "",
76
- t.padded ? "" : `${a}--no-padding`
77
- ]), T = (i) => {
78
- if (t.busy || !t.onClick) return;
79
- const { target: g } = i, f = g ? g.closest("a,button") : void 0, H = [
80
- ...h.value?.querySelectorAll("[data-expand-click-area]") ?? []
81
- ];
82
- if (H.length) {
83
- const B = H[0], R = f ? N.includes(f.tagName.toLowerCase()) : null;
84
- !f && B !== i.target && !R && B.click();
85
- }
86
- };
87
- return K(async () => {
88
- await M(), h.value && t.forwardRef?.(h.value), $.value = L?.heading, w.value = L?.footer;
89
- }), (i, g) => (n(), r("div", {
90
- ref_key: "refExpandedArea",
91
- ref: h,
92
- class: d([l(V), l(ae)({ color: e.color, variant: e.variant })]),
93
- "data-testid": e.testId,
94
- tabindex: e.onClick ? 0 : void 0,
95
- onClick: T,
96
- onKeyup: q(T, ["enter"])
97
- }, [
98
- e.image && (e.imageOrder === l(O).Before || !e.imageOrder) ? (n(), r("div", {
99
- key: 0,
100
- class: d(`${a}__image`)
101
- }, [
102
- S(z(l(m), {
103
- width: e.imageWidth,
104
- height: e.imageHeight,
105
- rounded: !1
106
- }, null, 8, ["width", "height"]), [
107
- [x, e.busy]
108
- ]),
109
- S(u("img", {
110
- alt: e.imageAltText,
111
- class: d(`${a}__image__elem`),
112
- loading: e.imageLoading,
113
- src: e.image
114
- }, null, 10, ie), [
115
- [x, !e.busy]
116
- ])
117
- ], 2)) : o("", !0),
118
- u("div", {
119
- class: d(`${a}__content`)
120
- }, [
121
- u("div", {
122
- class: d(`${a}__header`)
123
- }, [
124
- e.busy ? (n(), c(l(m), {
125
- key: 0,
126
- height: "28px"
127
- })) : o("", !0),
128
- e.busy ? (n(), c(l(m), {
129
- key: 1,
130
- width: "70%",
131
- height: "16px"
132
- })) : o("", !0),
133
- !e.onClick && !e.href ? (n(), r(G, { key: 2 }, [
134
- s(i.$slots, "heading"),
135
- e.title && !e.busy ? (n(), c(l(A), {
136
- key: 0,
137
- align: e.align,
138
- class: d(`${a}__heading`),
139
- color: e.color,
140
- level: e.titleHLevel,
141
- truncate: e.truncateTitle,
142
- type: e.titleType
143
- }, {
144
- default: y(() => [
145
- k(b(e.title), 1)
146
- ]),
147
- _: 1
148
- }, 8, ["align", "class", "color", "level", "truncate", "type"])) : o("", !0)
149
- ], 64)) : e.title || l($) && (e.onClick || e.href) ? (n(), c(l(j), {
150
- key: 3,
151
- "aria-label": e.ariaLabel,
152
- color: e.color,
153
- href: e.href,
154
- target: e.target,
155
- "on-click": e.onClick,
156
- "data-expand-click-area": ""
157
- }, {
158
- default: y(() => [
159
- s(i.$slots, "heading"),
160
- e.title && !e.busy ? (n(), c(l(A), {
161
- key: 0,
162
- align: e.align,
163
- class: d(`${a}__heading`),
164
- color: e.color,
165
- level: e.titleHLevel,
166
- truncate: e.truncateTitle,
167
- type: e.titleType
168
- }, {
169
- default: y(() => [
170
- k(b(e.title), 1)
171
- ]),
172
- _: 1
173
- }, 8, ["align", "class", "color", "level", "truncate", "type"])) : o("", !0)
174
- ]),
175
- _: 3
176
- }, 8, ["aria-label", "color", "href", "target", "on-click"])) : o("", !0),
177
- s(i.$slots, "byline"),
178
- e.byline && !e.busy ? (n(), c(l(J), {
179
- key: 4,
180
- align: e.align,
181
- class: d(`${a}__byline`),
182
- color: e.color,
183
- type: l(ee).Small
184
- }, {
185
- default: y(() => [
186
- k(b(e.byline), 1)
187
- ]),
188
- _: 1
189
- }, 8, ["align", "class", "color", "type"])) : o("", !0)
190
- ], 2),
191
- u("div", {
192
- class: d(`${a}__slot`)
193
- }, [
194
- u("div", {
195
- ref: "slot-content",
196
- class: d([`${a}__slot-content`, { busy: e.busy }])
197
- }, [
198
- l(C) && e.busy ? (n(), c(l(m), {
199
- key: 0,
200
- width: "100%",
201
- height: "100%"
202
- })) : o("", !0),
203
- u("div", null, [
204
- s(i.$slots, "default")
205
- ])
206
- ], 2)
207
- ], 2),
208
- u("div", {
209
- class: d(`${a}__footer`)
210
- }, [
211
- s(i.$slots, "footer")
212
- ], 2)
213
- ], 2),
214
- e.image && e.imageOrder === l(O).After ? (n(), r("div", {
215
- key: 1,
216
- class: d(`${a}__image`)
217
- }, [
218
- e.busy ? (n(), c(l(m), {
219
- key: 0,
220
- width: e.imageWidth,
221
- height: e.imageHeight,
222
- rounded: !1
223
- }, null, 8, ["width", "height"])) : o("", !0),
224
- s(i.$slots, "image"),
225
- e.busy ? o("", !0) : (n(), r("img", {
226
- key: 1,
227
- alt: e.imageAltText,
228
- class: d(`${a}__image__elem`),
229
- loading: e.imageLoading,
230
- src: e.image
231
- }, null, 10, ne))
232
- ], 2)) : o("", !0),
233
- !e.title && (e.onClick || e.href) ? (n(), r("a", {
234
- key: 2,
235
- "aria-label": e.ariaLabel,
236
- class: "sr-only",
237
- href: e.href,
238
- target: e.target,
239
- "data-expand-click-area": "",
240
- onClick: g[0] || (g[0] = //@ts-ignore
241
- (...f) => e.onClick && e.onClick(...f))
242
- }, null, 8, de)) : o("", !0),
243
- e.onClick && e.variant !== l(E).Ghost ? (n(), r("div", {
244
- key: 3,
245
- class: d(`${a}__hover-elem`)
246
- }, null, 2)) : o("", !0)
247
- ], 42, le));
248
- }
249
- });
250
- export {
251
- ye as _
252
- };
@@ -1,84 +0,0 @@
1
- import { defineComponent as p, useCssVars as y, computed as v, onMounted as X, createElementBlock as a, openBlock as m, normalizeClass as u, unref as w, createElementVNode as B } from "vue";
2
- import { CLMode as f, CLColors as h, CLColorVariants as I, CLIconSizes as e } from "../index.js";
3
- import { g as x, a as z, c as S } from "./utils-Bf54TEIp.js";
4
- import { useTheme as M } from "../composables/useTheme.js";
5
- import { i as $ } from "./helper--hRjZVm6.js";
6
- const b = ({ color: o = h.Neutral }) => {
7
- const { colors: c, darkMode: t } = M(), s = t.value ? f.Light : f.Dark, r = x({
8
- color: o,
9
- colors: c.value,
10
- mode: s,
11
- variant: I.Text
12
- });
13
- return z(S`color: ${r?.textBody};`);
14
- }, E = ["data-testid"], N = ["height", "width"], T = ["href"], j = /* @__PURE__ */ p({
15
- name: "CLIcon",
16
- __name: "CLIcon",
17
- props: {
18
- color: { default: h.Neutral },
19
- name: {},
20
- size: { default: e.Small },
21
- testId: { default: "clll-icon" }
22
- },
23
- setup(o) {
24
- y((n) => ({
25
- v18b705a2: s[n.size] + "px"
26
- }));
27
- const c = o, t = "clll-icon", s = {
28
- [e.Tiny]: 20,
29
- [e.Small]: 24,
30
- [e.Medium]: 28,
31
- [e.Large]: 32,
32
- [e.XL]: 36,
33
- [e.XXL]: 40,
34
- [e.XXXL]: 44,
35
- [e.XXXXL]: 48
36
- }, r = v(() => [
37
- t,
38
- `${t}--${c.name}`,
39
- `${t}--${c.size}`
40
- ]), C = async () => {
41
- if (!$) return;
42
- let n = window?.document.getElementById("clll-icons");
43
- if (!n)
44
- try {
45
- const d = (/* @__PURE__ */ Object.assign({
46
- "/src/icons.svg": () => import("./icons-QRYZHNAf.js").then((g) => g.default)
47
- }))["/src/icons.svg"];
48
- if (!d) {
49
- console.warn("[Callaloo] Icon sprite not found");
50
- return;
51
- }
52
- const L = await d();
53
- if (n = window?.document.getElementById("clll-icons"), n) return;
54
- const i = window?.document.createElement("div");
55
- i.id = "clll-icons", i.style.display = "none", i.innerHTML = L.toString(), window?.document.readyState === "loading" ? window.addEventListener("DOMContentLoaded", () => {
56
- window?.document.body.insertBefore(i, window?.document.body.childNodes[0]);
57
- }) : window?.document.body.insertBefore(i, window?.document.body.childNodes[0]);
58
- } catch (l) {
59
- console.error("[Callaloo] Failed to load icon sprite:", l);
60
- }
61
- };
62
- return X(() => {
63
- C();
64
- }), (n, l) => (m(), a("span", {
65
- class: u([w(r), w(b)({ color: o.color })]),
66
- "data-testid": o.testId
67
- }, [
68
- (m(), a("svg", {
69
- "aria-hidden": "true",
70
- class: u(`${t}-sprite`),
71
- height: s[o.size],
72
- width: s[o.size],
73
- viewBox: "0 0 24 24"
74
- }, [
75
- B("use", {
76
- href: `#${o.name}`
77
- }, null, 8, T)
78
- ], 10, N))
79
- ], 10, E));
80
- }
81
- });
82
- export {
83
- j as _
84
- };