@codeandfunction/callaloo 3.16.1 → 3.16.3

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 (106) hide show
  1. package/README.md +5 -3
  2. package/dist/assets/CLFormCharCounter.css +1 -1
  3. package/dist/assets/CLInputMessages.css +1 -1
  4. package/dist/assets/core.css +1 -0
  5. package/dist/assets/shared/form-utilities.css +1 -0
  6. package/dist/chunks/{CLA11yButton.vue_vue_type_style_index_0_lang-Cdx5rsou.js → CLA11yButton.vue_vue_type_style_index_0_lang-Caaw-9_c.js} +1 -1
  7. package/dist/chunks/{CLButton.vue_vue_type_style_index_0_lang-CrhjC50b.js → CLButton.vue_vue_type_style_index_0_lang-N3EWoTbB.js} +4 -4
  8. package/dist/chunks/{CLCard.vue_vue_type_style_index_0_lang-DVuAcV5A.js → CLCard.vue_vue_type_style_index_0_lang-CpReGucs.js} +6 -6
  9. package/dist/chunks/{CLFormLabel.vue_vue_type_script_setup_true_lang-fddy-FWI.js → CLFormLabel.vue_vue_type_script_setup_true_lang-Cw3nPc64.js} +1 -1
  10. package/dist/chunks/{CLHeading.vue_vue_type_style_index_0_lang-DILwNSgn.js → CLHeading.vue_vue_type_style_index_0_lang-BcCh5-Bx.js} +1 -1
  11. package/dist/chunks/{CLIcon.vue_vue_type_style_index_0_lang-CZB8svPf.js → CLIcon.vue_vue_type_style_index_0_lang-BaCl5yQI.js} +23 -22
  12. package/dist/chunks/{CLInputMessages.vue_vue_type_style_index_0_lang-RMOT1TQk.js → CLInputMessages.vue_vue_type_style_index_0_lang-BNGT0om7.js} +12 -11
  13. package/dist/chunks/{CLLink.vue_vue_type_style_index_0_lang-BUgw8Rpy.js → CLLink.vue_vue_type_style_index_0_lang-BMUevw_4.js} +12 -11
  14. package/dist/chunks/{CLNavLink.vue_vue_type_script_setup_true_lang-Ckz9MEj5.js → CLNavLink.vue_vue_type_script_setup_true_lang-D2oCLUGX.js} +1 -1
  15. package/dist/chunks/{CLPill.vue_vue_type_style_index_0_lang-mkIKVHjg.js → CLPill.vue_vue_type_style_index_0_lang-DYXrV-YE.js} +3 -3
  16. package/dist/chunks/{CLProgress.vue_vue_type_style_index_0_lang-CSf7WiNb.js → CLProgress.vue_vue_type_style_index_0_lang-Cu3FhEX0.js} +2 -2
  17. package/dist/chunks/{CLSkeleton.vue_vue_type_style_index_0_lang-E-bZeUWT.js → CLSkeleton.vue_vue_type_style_index_0_lang-DblqrUXo.js} +1 -1
  18. package/dist/chunks/{CLSpinner.vue_vue_type_style_index_0_lang-C8s8K4zb.js → CLSpinner.vue_vue_type_style_index_0_lang-DskZL4VC.js} +1 -1
  19. package/dist/chunks/{CLText.vue_vue_type_style_index_0_lang-V7LSR7DF.js → CLText.vue_vue_type_style_index_0_lang-Cz9Sv2AC.js} +1 -1
  20. package/dist/chunks/{CLToast.vue_vue_type_style_index_0_lang-DOI4DZGg.js → CLToast.vue_vue_type_style_index_0_lang-CYcPXUMQ.js} +24 -23
  21. package/dist/chunks/base-theme-Bg6XMoeN.js +275 -0
  22. package/dist/chunks/helper--hRjZVm6.js +62 -0
  23. package/dist/chunks/utils-Bp7YeySh.js +29 -0
  24. package/dist/chunks/utils-C9rOAW29.js +387 -0
  25. package/dist/chunks/{utils-C7Yjsqk-.js → utils-D-5TdmRW.js} +10 -9
  26. package/dist/chunks/{utils-D_WP3vZz.js → utils-DRsWhcFX.js} +13 -12
  27. package/dist/chunks/{utils-DFnkOeYP.js → utils-DVR3a-_d.js} +26 -25
  28. package/dist/chunks/utils-nC7WS9e0.js +15 -0
  29. package/dist/components/Buttons/CLA11yButton/CLA11yButton.css +1 -1
  30. package/dist/components/Buttons/CLA11yButton/CLA11yButton.js +2 -1
  31. package/dist/components/Buttons/CLButton/CLButton.css +1 -1
  32. package/dist/components/Buttons/CLButton/CLButton.js +2 -1
  33. package/dist/components/Buttons/CLButton/CLButton.vue.d.ts +3 -3
  34. package/dist/components/CLIcon/CLIcon.css +1 -1
  35. package/dist/components/CLIcon/CLIcon.js +2 -1
  36. package/dist/components/CLTable/CLTable.css +1 -1
  37. package/dist/components/CLTable/CLTable.js +31 -29
  38. package/dist/components/Containers/CLCard/CLCard.css +1 -1
  39. package/dist/components/Containers/CLCard/CLCard.js +2 -1
  40. package/dist/components/Containers/CLCard/CLCard.vue.d.ts +2 -2
  41. package/dist/components/Containers/CLCarousel/CLCarousel.css +1 -1
  42. package/dist/components/Containers/CLCarousel/CLCarousel.js +17 -16
  43. package/dist/components/Containers/CLCarousel/CLCarousel.vue.d.ts +1 -1
  44. package/dist/components/Containers/CLDisclosure/CLDisclosure.css +1 -1
  45. package/dist/components/Containers/CLDisclosure/CLDisclosure.js +7 -6
  46. package/dist/components/Form/CLCheckbox/CLCheckbox.css +1 -1
  47. package/dist/components/Form/CLCheckbox/CLCheckbox.js +5 -3
  48. package/dist/components/Form/CLCheckbox/CLCheckbox.vue.d.ts +2 -2
  49. package/dist/components/Form/CLInput/CLInput.css +1 -1
  50. package/dist/components/Form/CLInput/CLInput.js +7 -5
  51. package/dist/components/Form/CLInput/CLInput.vue.d.ts +2 -2
  52. package/dist/components/Form/CLRadioButton/CLRadioButton.css +1 -1
  53. package/dist/components/Form/CLRadioButton/CLRadioButton.js +4 -2
  54. package/dist/components/Form/CLRadioButton/CLRadioButton.vue.d.ts +1 -1
  55. package/dist/components/Form/CLSelect/CLSelect.css +1 -1
  56. package/dist/components/Form/CLSelect/CLSelect.js +5 -3
  57. package/dist/components/Form/CLSelect/CLSelect.vue.d.ts +1 -1
  58. package/dist/components/Form/CLTextArea/CLTextArea.css +1 -1
  59. package/dist/components/Form/CLTextArea/CLTextArea.js +4 -2
  60. package/dist/components/Form/CLTextArea/CLTextArea.vue.d.ts +1 -1
  61. package/dist/components/Indicators/CLBadge/CLBadge.css +1 -1
  62. package/dist/components/Indicators/CLBadge/CLBadge.js +2 -1
  63. package/dist/components/Indicators/CLBanner/CLBanner.css +1 -1
  64. package/dist/components/Indicators/CLBanner/CLBanner.js +7 -6
  65. package/dist/components/Indicators/CLBanner/CLBanner.vue.d.ts +2 -2
  66. package/dist/components/Indicators/CLPill/CLPill.css +1 -1
  67. package/dist/components/Indicators/CLPill/CLPill.js +2 -1
  68. package/dist/components/Indicators/CLProgress/CLProgress.css +1 -1
  69. package/dist/components/Indicators/CLProgress/CLProgress.js +2 -1
  70. package/dist/components/Loading/CLSkeleton/CLSkeleton.css +1 -1
  71. package/dist/components/Loading/CLSkeleton/CLSkeleton.js +2 -1
  72. package/dist/components/Loading/CLSkeleton/CLSkeleton.vue.d.ts +2 -2
  73. package/dist/components/Loading/CLSpinner/CLSpinner.css +1 -1
  74. package/dist/components/Loading/CLSpinner/CLSpinner.js +2 -1
  75. package/dist/components/Modals/CLModal/CLModal.css +1 -1
  76. package/dist/components/Modals/CLModal/CLModal.js +17 -15
  77. package/dist/components/Navigation/CLLink/CLLink.css +1 -1
  78. package/dist/components/Navigation/CLLink/CLLink.js +2 -1
  79. package/dist/components/Navigation/CLNavLink/CLNavLink.js +2 -1
  80. package/dist/components/Navigation/CLNavSection/CLNavSection.css +1 -1
  81. package/dist/components/Navigation/CLNavSection/CLNavSection.js +3 -2
  82. package/dist/components/Popups/CLDropdownMenu/CLDropdownMenu.css +1 -1
  83. package/dist/components/Popups/CLDropdownMenu/CLDropdownMenu.js +510 -551
  84. package/dist/components/Popups/CLDropdownMenu/CLDropdownMenu.vue.d.ts +7 -7
  85. package/dist/components/Popups/CLToast/CLToast.css +1 -1
  86. package/dist/components/Popups/CLToast/CLToast.js +2 -1
  87. package/dist/components/Popups/CLToast/CLToast.vue.d.ts +1 -1
  88. package/dist/components/Providers/CLThemeProvider/CLThemeProvider.js +20 -17
  89. package/dist/components/Providers/CLToastProvider/CLToastProvider.js +2 -1
  90. package/dist/components/Typography/CLHeading/CLHeading.css +1 -1
  91. package/dist/components/Typography/CLHeading/CLHeading.js +2 -1
  92. package/dist/components/Typography/CLText/CLText.css +1 -1
  93. package/dist/components/Typography/CLText/CLText.js +2 -1
  94. package/dist/composables/index.d.ts +2 -0
  95. package/dist/composables/useDropdown.js +50 -0
  96. package/dist/{chunks/useEsc-C9QIDZ_8.js → composables/useEsc.js} +3 -2
  97. package/dist/{chunks/useHasSlotContent-DDqs5uK9.js → composables/useHasSlotContent.js} +3 -2
  98. package/dist/composables/useTheme.js +31 -0
  99. package/dist/composables/useToast.js +15 -0
  100. package/dist/index.js +1 -0
  101. package/dist/utils/merge.d.ts +18 -0
  102. package/package.json +32 -30
  103. package/dist/chunks/base-theme-C9_Hz5HW.js +0 -832
  104. package/dist/chunks/useTheme-yoEfuNvB.js +0 -417
  105. package/dist/chunks/utils-DTWXs4YX.js +0 -14
  106. package/dist/chunks/utils-Da9LXXQ0.js +0 -28
package/README.md CHANGED
@@ -13,10 +13,11 @@ Callaloo is a Vue UI library. It is easy to integrate into any Vue3+ project, ha
13
13
 
14
14
  ## Installation
15
15
 
16
- ```sh [pnpm]
17
- $ pnpm add @codeandfunction/callaloo
16
+ ```sh
17
+ pnpm add @codeandfunction/callaloo
18
18
  ```
19
19
 
20
+ **or**
20
21
 
21
22
  ```sh
22
23
  npm install @codeandfunction/callaloo
@@ -36,6 +37,7 @@ The following example demonstrates how to use a Callaloo component in your Vue p
36
37
  <script setup lang="ts">
37
38
  import CLThemeProvider from '@codeandfunction/callaloo/CLThemeProvider';
38
39
  import CLButton from '@codeandfunction/callaloo/CLButton';
40
+ import { CLSizes } from '@codeandfunction/callaloo';
39
41
 
40
42
  const onClickHandler = (evt?: Event) => {
41
43
  alert('Hello World!');
@@ -45,7 +47,7 @@ const onClickHandler = (evt?: Event) => {
45
47
  <template>
46
48
  <div class="my-awesome-app">
47
49
  <CLThemeProvider>
48
- <CLButton :on-click="onClickHandler">Hello world</CLButton>
50
+ <CLButton :on-click="onClickHandler" :size="CLSizes.Medium">Hello world</CLButton>
49
51
  </CLThemeProvider>
50
52
  </div>
51
53
  </template>
@@ -1 +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-form-char-counter{pointer-events:none;user-select:none}.clll-form-char-counter--inline{max-width:100px;box-sizing:border-box;flex:1;position:relative}.clll-form-char-counter--block{display:block;width:100%;text-align:right;box-sizing:border-box;position:relative}.clll-form-char-counter__char-counter__text{font-family:var(--clll-font-family);-webkit-font-smoothing:antialiased}.clll-form-char-counter--tiny .clll-form-char-counter__char-counter__text{font-size:var(--clll-unit-3);line-height:var(--clll-unit-5)}.clll-form-char-counter--small .clll-form-char-counter__char-counter__text{font-size:var(--clll-unit-3_5);line-height:var(--clll-unit-6)}.clll-form-char-counter--medium .clll-form-char-counter__char-counter__text{font-size:var(--clll-unit-4);line-height:var(--clll-unit-6_5)}.clll-form-char-counter--large .clll-form-char-counter__char-counter__text{font-size:var(--clll-unit-4_5);line-height:var(--clll-unit-7)}.clll-form-char-counter--xlarge .clll-form-char-counter__char-counter__text{font-size:var(--clll-unit-5);line-height:var(--clll-unit-7_5)}
1
+ .clll-form-char-counter{pointer-events:none;user-select:none}.clll-form-char-counter--inline{max-width:100px;box-sizing:border-box;flex:1;position:relative}.clll-form-char-counter--block{display:block;width:100%;text-align:right;box-sizing:border-box;position:relative}.clll-form-char-counter__char-counter__text{font-family:var(--clll-font-family);-webkit-font-smoothing:antialiased}.clll-form-char-counter--tiny .clll-form-char-counter__char-counter__text{font-size:var(--clll-unit-3);line-height:var(--clll-unit-5)}.clll-form-char-counter--small .clll-form-char-counter__char-counter__text{font-size:var(--clll-unit-3_5);line-height:var(--clll-unit-6)}.clll-form-char-counter--medium .clll-form-char-counter__char-counter__text{font-size:var(--clll-unit-4);line-height:var(--clll-unit-6_5)}.clll-form-char-counter--large .clll-form-char-counter__char-counter__text{font-size:var(--clll-unit-4_5);line-height:var(--clll-unit-7)}.clll-form-char-counter--xlarge .clll-form-char-counter__char-counter__text{font-size:var(--clll-unit-5);line-height:var(--clll-unit-7_5)}
@@ -1 +1 @@
1
- .clll-form-field{position:relative;flex:none;display:inline-flex;flex-direction:column;flex-wrap:wrap;box-sizing:border-box}.clll-form-field.clll-form-field--fluid{width:100%}.clll-form-field.clll-form-field--haspill>:not([hidden])~:not([hidden]){margin-top:var(--clll-unit-1_5)}.clll-form-field.clll-form-field--horizontal{display:flex;flex-direction:row}.clll-form-field.clll-form-field--horizontal.clll-form-field--haspill .clll-input__pill,.clll-form-field.clll-form-field--horizontal.clll-form-field--haspill .clll-input__spacer{width:50%}: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-input__message{margin-top:var(--clll-unit-1);width:100%}.clll-input__message .clll-input__message__text{font-size:var(--clll-unit-3);font-family:var(--clll-font-family);-webkit-font-smoothing:antialiased;margin:0}
1
+ .clll-form-field{position:relative;flex:none;display:inline-flex;flex-direction:column;flex-wrap:wrap;box-sizing:border-box}.clll-form-field.clll-form-field--fluid{width:100%}.clll-form-field.clll-form-field--haspill>:not([hidden])~:not([hidden]){margin-top:var(--clll-unit-1_5)}.clll-form-field.clll-form-field--horizontal{display:flex;flex-direction:row}.clll-form-field.clll-form-field--horizontal.clll-form-field--haspill .clll-input__pill,.clll-form-field.clll-form-field--horizontal.clll-form-field--haspill .clll-input__spacer{width:50%}.clll-input__message{margin-top:var(--clll-unit-1);width:100%}.clll-input__message .clll-input__message__text{font-size:var(--clll-unit-3);font-family:var(--clll-font-family);-webkit-font-smoothing:antialiased;margin:0}
@@ -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}: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}
@@ -0,0 +1 @@
1
+ .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}
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as b, ref as p, computed as y, createElementBlock as k, openBlock as C, withKeys as B, normalizeClass as E, unref as s, renderSlot as x } from "vue";
2
2
  import { CLColors as A } from "../index.js";
3
- import { a as _ } from "./utils-Da9LXXQ0.js";
3
+ import { a as _ } from "./utils-Bp7YeySh.js";
4
4
  const g = ["data-testid", "tabindex"], w = /* @__PURE__ */ b({
5
5
  name: "CLA11yButton",
6
6
  __name: "CLA11yButton",
@@ -1,9 +1,9 @@
1
1
  import { defineComponent as C, useSlots as h, ref as S, computed as z, onMounted as B, nextTick as g, createBlock as n, openBlock as i, resolveDynamicComponent as L, normalizeStyle as k, normalizeClass as s, unref as l, withCtx as w, createCommentVNode as d, createElementBlock as A, renderSlot as R } from "vue";
2
- import { _ as c } from "./CLIcon.vue_vue_type_style_index_0_lang-CZB8svPf.js";
3
- import { _ as T } from "./CLSpinner.vue_vue_type_style_index_0_lang-C8s8K4zb.js";
2
+ import { _ as c } from "./CLIcon.vue_vue_type_style_index_0_lang-BaCl5yQI.js";
3
+ import { _ as T } from "./CLSpinner.vue_vue_type_style_index_0_lang-DskZL4VC.js";
4
4
  import { CLColorVariants as I, CLButtonTypes as x, CLLinkTarget as M, CLSizes as o, CLIconSizes as m, CLColors as F, CLAlign as b, CLPosition as N } from "../index.js";
5
- import { b as V } from "./utils-Da9LXXQ0.js";
6
- import { u as D } from "./useHasSlotContent-DDqs5uK9.js";
5
+ import { b as V } from "./utils-Bp7YeySh.js";
6
+ import { useHasSlotContent as D } from "../composables/useHasSlotContent.js";
7
7
  const J = /* @__PURE__ */ C({
8
8
  name: "CLButton",
9
9
  __name: "CLButton",
@@ -1,11 +1,11 @@
1
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-DILwNSgn.js";
3
- import { _ as j } from "./CLLink.vue_vue_type_style_index_0_lang-BUgw8Rpy.js";
4
- import { _ as m } from "./CLSkeleton.vue_vue_type_style_index_0_lang-E-bZeUWT.js";
5
- import { _ as J } from "./CLText.vue_vue_type_style_index_0_lang-V7LSR7DF.js";
2
+ import { _ as A } from "./CLHeading.vue_vue_type_style_index_0_lang-BcCh5-Bx.js";
3
+ import { _ as j } from "./CLLink.vue_vue_type_style_index_0_lang-BMUevw_4.js";
4
+ import { _ as m } from "./CLSkeleton.vue_vue_type_style_index_0_lang-DblqrUXo.js";
5
+ import { _ as J } from "./CLText.vue_vue_type_style_index_0_lang-Cz9Sv2AC.js";
6
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-D_WP3vZz.js";
8
- import { u as te } from "./useHasSlotContent-DDqs5uK9.js";
7
+ import { c as ae } from "./utils-DRsWhcFX.js";
8
+ import { useHasSlotContent as te } from "../composables/useHasSlotContent.js";
9
9
  const le = ["data-testid", "tabindex"], ie = ["alt", "loading", "src"], ne = ["alt", "loading", "src"], de = ["aria-label", "href", "target"], ye = /* @__PURE__ */ W({
10
10
  name: "CLCard",
11
11
  __name: "CLCard",
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as r, createElementBlock as i, openBlock as o, normalizeClass as a, createVNode as m, unref as d, withCtx as n, createTextVNode as c, toDisplayString as f } from "vue";
2
- import { _ as u } from "./CLText.vue_vue_type_style_index_0_lang-V7LSR7DF.js";
2
+ import { _ as u } from "./CLText.vue_vue_type_style_index_0_lang-Cz9Sv2AC.js";
3
3
  import { CLSizes as l, CLTextTypes as t } from "../index.js";
4
4
  const b = ["for", "data-testid"], h = /* @__PURE__ */ r({
5
5
  name: "CLFormLabel",
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as i, computed as r, createBlock as u, openBlock as f, resolveDynamicComponent as p, unref as o, normalizeClass as m, withCtx as g, renderSlot as C } from "vue";
2
2
  import { CLHeadingTypes as l, CLColors as $, CLAlign as L, CLHeadingLevels as n } from "../index.js";
3
- import { t as h } from "./utils-DTWXs4YX.js";
3
+ import { t as h } from "./utils-nC7WS9e0.js";
4
4
  const T = /* @__PURE__ */ i({
5
5
  name: "CLHeading",
6
6
  __name: "CLHeading",
@@ -1,16 +1,17 @@
1
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
2
  import { CLMode as f, CLColors as h, CLColorVariants as I, CLIconSizes as e } from "../index.js";
3
- import { u as x, g as z, a as S, c as M } from "./useTheme-yoEfuNvB.js";
4
- import { i as $ } from "./base-theme-C9_Hz5HW.js";
3
+ import { g as x, a as z, c as S } from "./utils-C9rOAW29.js";
4
+ import { useTheme as M } from "../composables/useTheme.js";
5
+ import { i as $ } from "./helper--hRjZVm6.js";
5
6
  const b = ({ color: o = h.Neutral }) => {
6
- const { colors: i, darkMode: t } = x(), s = t.value ? f.Light : f.Dark, l = z({
7
+ const { colors: c, darkMode: t } = M(), s = t.value ? f.Light : f.Dark, r = x({
7
8
  color: o,
8
- colors: i.value,
9
+ colors: c.value,
9
10
  mode: s,
10
11
  variant: I.Text
11
12
  });
12
- return S(M`color: ${l?.textBody};`);
13
- }, E = ["data-testid"], N = ["height", "width"], T = ["href"], O = /* @__PURE__ */ p({
13
+ return z(S`color: ${r?.textBody};`);
14
+ }, E = ["data-testid"], N = ["height", "width"], T = ["href"], j = /* @__PURE__ */ p({
14
15
  name: "CLIcon",
15
16
  __name: "CLIcon",
16
17
  props: {
@@ -23,7 +24,7 @@ const b = ({ color: o = h.Neutral }) => {
23
24
  y((n) => ({
24
25
  v18b705a2: s[n.size] + "px"
25
26
  }));
26
- const i = o, t = "clll-icon", s = {
27
+ const c = o, t = "clll-icon", s = {
27
28
  [e.Tiny]: 20,
28
29
  [e.Small]: 24,
29
30
  [e.Medium]: 28,
@@ -32,36 +33,36 @@ const b = ({ color: o = h.Neutral }) => {
32
33
  [e.XXL]: 40,
33
34
  [e.XXXL]: 44,
34
35
  [e.XXXXL]: 48
35
- }, l = v(() => [
36
+ }, r = v(() => [
36
37
  t,
37
- `${t}--${i.name}`,
38
- `${t}--${i.size}`
38
+ `${t}--${c.name}`,
39
+ `${t}--${c.size}`
39
40
  ]), C = async () => {
40
41
  if (!$) return;
41
42
  let n = window?.document.getElementById("clll-icons");
42
43
  if (!n)
43
44
  try {
44
- const r = (/* @__PURE__ */ Object.assign({
45
+ const d = (/* @__PURE__ */ Object.assign({
45
46
  "/src/icons.svg": () => import("./icons-QRYZHNAf.js").then((g) => g.default)
46
47
  }))["/src/icons.svg"];
47
- if (!r) {
48
+ if (!d) {
48
49
  console.warn("[Callaloo] Icon sprite not found");
49
50
  return;
50
51
  }
51
- const L = await r();
52
+ const L = await d();
52
53
  if (n = window?.document.getElementById("clll-icons"), n) return;
53
- const c = window?.document.createElement("div");
54
- c.id = "clll-icons", c.style.display = "none", c.innerHTML = L.toString(), window?.document.readyState === "loading" ? window.addEventListener("DOMContentLoaded", () => {
55
- window?.document.body.insertBefore(c, window?.document.body.childNodes[0]);
56
- }) : window?.document.body.insertBefore(c, window?.document.body.childNodes[0]);
57
- } catch (d) {
58
- console.error("[Callaloo] Failed to load icon sprite:", d);
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);
59
60
  }
60
61
  };
61
62
  return X(() => {
62
63
  C();
63
- }), (n, d) => (m(), a("span", {
64
- class: u([w(l), w(b)({ color: o.color })]),
64
+ }), (n, l) => (m(), a("span", {
65
+ class: u([w(r), w(b)({ color: o.color })]),
65
66
  "data-testid": o.testId
66
67
  }, [
67
68
  (m(), a("svg", {
@@ -79,5 +80,5 @@ const b = ({ color: o = h.Neutral }) => {
79
80
  }
80
81
  });
81
82
  export {
82
- O as _
83
+ j as _
83
84
  };
@@ -1,7 +1,8 @@
1
1
  import { defineComponent as G, createElementBlock as W, openBlock as R, normalizeClass as O, unref as E, renderSlot as N, Fragment as A, renderList as H, createElementVNode as I, toDisplayString as j } from "vue";
2
2
  import { CLOrientation as J, CLMode as x, CLColorVariants as n, CLColors as K } from "../index.js";
3
- import { u as L, g as w, c as r, b as q, f as M, a as S } from "./useTheme-yoEfuNvB.js";
4
- const B = "clll-form-field", Z = /* @__PURE__ */ G({
3
+ import { useTheme as L } from "../composables/useTheme.js";
4
+ import { g as w, c as r, b as q, f as M, a as S } from "./utils-C9rOAW29.js";
5
+ const B = "clll-form-field", m = /* @__PURE__ */ G({
5
6
  __name: "CLFormField",
6
7
  props: {
7
8
  fluid: { type: Boolean },
@@ -22,7 +23,7 @@ const B = "clll-form-field", Z = /* @__PURE__ */ G({
22
23
  N(l.$slots, "default")
23
24
  ], 2));
24
25
  }
25
- }), m = ({
26
+ }), ll = ({
26
27
  color: e,
27
28
  component: l,
28
29
  disabled: s,
@@ -43,7 +44,7 @@ const B = "clll-form-field", Z = /* @__PURE__ */ G({
43
44
  c.value && (o = r`&:not([class*='clll-${l}--rounded-']){&.clll-${l}.clll-${l}--rounded .clll-${l}__${l}{border-radius:var(--clll-${c.value});}&.clll-${l}.clll-${l}--rounded{.clll-radiobutton__indicator{border-radius:var(--clll-${c.value});}}}`), s && (p = r`.clll-${l}__${l}-container{.clll-${l}__label{cursor:not-allowed;.clll-${l}__${l}{&:disabled{&:checked{background-color:${u};}}}}}&.clll-${l}--disabled{.clll-${l}__label{.clll-${l}__${l}-frame{.clll-${l}__icon{color:${v};}.clll-radiobutton__indicator{background-color:${v};}}}`);
44
45
  const T = r`&.clll-${l}--haslabel{.clll-${l}__label{.clll-text{&.clll-${l}__label--required::after{${z()}}}}}.clll-${l}__${l}-container{.clll-${l}__label{.clll-${l}__${l}-frame{.clll-${l}__icon{color:${k};}.clll-radiobutton__indicator{background-color:${k};}.clll-${l}__${l}{${M({ borderColor: $, shadowColor: C, outlineWidth: _, outlineColor: g, shadowWidth: "--clll-unit-0" })}&:checked{background-color:${t};${s ? M({ borderColor: y, shadowColor: C, outlineWidth: _, outlineColor: g, shadowWidth: "--clll-unit-0" }) : ""}}}}}}.clll-${l}__${l}{${q({ backgroundColor: t, borderColor: $ })}}`;
45
46
  return S(T, o, p, D);
46
- }, ll = ({
47
+ }, el = ({
47
48
  color: e,
48
49
  component: l,
49
50
  disabled: s,
@@ -73,7 +74,7 @@ const B = "clll-form-field", Z = /* @__PURE__ */ G({
73
74
  variant: n.Outline
74
75
  });
75
76
  return S(r`&.clll-input__message--${e}{color:${c?.textBody};}`);
76
- }, el = ({ color: e, disabled: l, variant: s }) => {
77
+ }, ol = ({ color: e, disabled: l, variant: s }) => {
77
78
  const { borderRadius: a, colors: c, darkMode: b } = L(), f = b.value ? x.Dark : x.Light, h = w({
78
79
  color: e,
79
80
  colors: c.value,
@@ -93,7 +94,7 @@ const B = "clll-form-field", Z = /* @__PURE__ */ G({
93
94
  }, z = () => {
94
95
  const { colors: e, darkMode: l } = L();
95
96
  return `position:relative;top:var(--clll-unit-1);content:'*';font-size:var(--clll-unit-4_5);font-weight:500;font-family:var(--clll-font-family);-webkit-font-smoothing:antialiased;color:${l.value ? e.value.danger?.["400"] : e.value.danger?.["700"]};text-decoration:unset;margin-inline-start:var(--clll-unit-0_5);box-sizing:content-box;line-height:0;`;
96
- }, P = "clll-input__message", ol = /* @__PURE__ */ G({
97
+ }, P = "clll-input__message", rl = /* @__PURE__ */ G({
97
98
  __name: "CLInputMessages",
98
99
  props: {
99
100
  id: {},
@@ -112,9 +113,9 @@ const B = "clll-form-field", Z = /* @__PURE__ */ G({
112
113
  }
113
114
  });
114
115
  export {
115
- Z as _,
116
- ol as a,
117
- m as c,
118
- ll as i,
119
- el as s
116
+ m as _,
117
+ rl as a,
118
+ ll as c,
119
+ el as i,
120
+ ol as s
120
121
  };
@@ -1,24 +1,25 @@
1
1
  import { defineComponent as x, computed as C, createElementBlock as k, openBlock as d, normalizeClass as b, unref as l, renderSlot as L, createBlock as $, createCommentVNode as g } from "vue";
2
- import { _ as h } from "./CLIcon.vue_vue_type_style_index_0_lang-CZB8svPf.js";
3
- import { CLMode as u, CLColors as f, CLColorVariants as v, CLLinkTarget as y, CLIconSizes as B, CLIconNames as w } from "../index.js";
4
- import { u as z, g as I, a as T, f as p, c as D } from "./useTheme-yoEfuNvB.js";
2
+ import { _ as h } from "./CLIcon.vue_vue_type_style_index_0_lang-BaCl5yQI.js";
3
+ import { CLMode as u, CLColors as m, CLColorVariants as v, CLLinkTarget as y, CLIconSizes as B, CLIconNames as p } from "../index.js";
4
+ import { g as w, a as z, f as I, c as T } from "./utils-C9rOAW29.js";
5
+ import { useTheme as D } from "../composables/useTheme.js";
5
6
  const H = ({
6
- color: e = f.Primary,
7
+ color: e = m.Primary,
7
8
  underline: o = !0
8
9
  }) => {
9
- const { colors: r, darkMode: n } = z(), a = n.value ? u.Dark : u.Light, t = I({
10
+ const { colors: r, darkMode: n } = D(), a = n.value ? u.Dark : u.Light, t = w({
10
11
  color: e,
11
12
  colors: r.value,
12
13
  mode: a,
13
14
  variant: v.Outline
14
- }), i = t?.border, m = t?.textDisabled, c = t?.textBody, s = n.value ? t?.borderHover : t?.textDisabled;
15
- return T(D`text-decoration-line:underline;text-decoration-color:${o ? i : "transparent"};display:inline-flex;align-items:center;transition: color 200ms linear, text-decoration-color 200ms linear;color:${c};font-weight:500;background-color:transparent;padding:0;border:0;.clll-text{color:${c};}&:hover{text-decoration-color:${o ? m : "transparent"};background-color:transparent;color:${s};.clll-text{color:${s};}}${p({ borderColor: c ?? "transparent", shadowColor: t?.shadow ?? "transparent", outlineOffset: "2px", shadowWidth: "--clll-unit-0" })}`);
16
- }, S = ["aria-label", "data-testid", "href", "rel", "target"], O = /* @__PURE__ */ x({
15
+ }), i = t?.border, f = t?.textDisabled, c = t?.textBody, s = n.value ? t?.borderHover : t?.textDisabled;
16
+ return z(T`text-decoration-line:underline;text-decoration-color:${o ? i : "transparent"};display:inline-flex;align-items:center;transition: color 200ms linear, text-decoration-color 200ms linear;color:${c};font-weight:500;background-color:transparent;padding:0;border:0;.clll-text{color:${c};}&:hover{text-decoration-color:${o ? f : "transparent"};background-color:transparent;color:${s};.clll-text{color:${s};}}${I({ borderColor: c ?? "transparent", shadowColor: t?.shadow ?? "transparent", outlineOffset: "2px", shadowWidth: "--clll-unit-0" })}`);
17
+ }, S = ["aria-label", "data-testid", "href", "rel", "target"], P = /* @__PURE__ */ x({
17
18
  name: "CLLink",
18
19
  __name: "CLLink",
19
20
  props: {
20
21
  ariaLabel: {},
21
- color: { default: f.Primary },
22
+ color: { default: m.Primary },
22
23
  external: { type: Boolean, default: !1 },
23
24
  href: {},
24
25
  onClick: {},
@@ -48,12 +49,12 @@ const H = ({
48
49
  e.external ? (d(), $(l(h), {
49
50
  key: 0,
50
51
  color: e.color,
51
- name: l(w).ExternalLink,
52
+ name: l(p).ExternalLink,
52
53
  size: l(B).Tiny
53
54
  }, null, 8, ["color", "name", "size"])) : g("", !0)
54
55
  ], 10, S));
55
56
  }
56
57
  });
57
58
  export {
58
- O as _
59
+ P as _
59
60
  };
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as i, createBlock as o, openBlock as c, unref as d, withCtx as f, renderSlot as m } from "vue";
2
- import { _ as u } from "./CLLink.vue_vue_type_style_index_0_lang-BUgw8Rpy.js";
2
+ import { _ as u } from "./CLLink.vue_vue_type_style_index_0_lang-BMUevw_4.js";
3
3
  import { CLColors as k } from "../index.js";
4
4
  const x = /* @__PURE__ */ i({
5
5
  name: "CLNavLink",
@@ -1,8 +1,8 @@
1
1
  import { defineComponent as v, computed as d, createElementBlock as i, openBlock as t, Fragment as y, createCommentVNode as o, createBlock as u, normalizeClass as c, unref as a, createElementVNode as s, toDisplayString as r, withCtx as h } from "vue";
2
- import { _ as b } from "./CLButton.vue_vue_type_style_index_0_lang-CrhjC50b.js";
3
- import { _ as m } from "./CLIcon.vue_vue_type_style_index_0_lang-CZB8svPf.js";
2
+ import { _ as b } from "./CLButton.vue_vue_type_style_index_0_lang-N3EWoTbB.js";
3
+ import { _ as m } from "./CLIcon.vue_vue_type_style_index_0_lang-BaCl5yQI.js";
4
4
  import { CLColorVariants as z, CLColors as B, CLIconSizes as $ } from "../index.js";
5
- import { p as f } from "./utils-DFnkOeYP.js";
5
+ import { p as f } from "./utils-DVR3a-_d.js";
6
6
  const L = ["data-testid"], E = /* @__PURE__ */ v({
7
7
  name: "CLPill",
8
8
  __name: "CLPill",
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as p, mergeModels as _, useCssVars as $, useModel as C, computed as d, createElementBlock as n, openBlock as c, normalizeClass as s, unref as t, createCommentVNode as v, createElementVNode as a, createVNode as y, withCtx as g, createTextVNode as V, toDisplayString as x } from "vue";
2
- import { _ as N } from "./CLText.vue_vue_type_style_index_0_lang-V7LSR7DF.js";
2
+ import { _ as N } from "./CLText.vue_vue_type_style_index_0_lang-Cz9Sv2AC.js";
3
3
  import { CLTextTypes as B, CLColors as u, CLSizes as L } from "../index.js";
4
- import { a as b } from "./utils-DFnkOeYP.js";
4
+ import { a as b } from "./utils-DVR3a-_d.js";
5
5
  const h = ["data-testid"], S = /* @__PURE__ */ p({
6
6
  name: "CLProgress",
7
7
  __name: "CLProgress",
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as a, useCssVars as r, computed as i, createElementBlock as u, openBlock as c, normalizeClass as m, unref as n, createElementVNode as f } from "vue";
2
- import { s as p } from "./utils-C7Yjsqk-.js";
2
+ import { s as p } from "./utils-D-5TdmRW.js";
3
3
  const k = ["data-testid"], _ = /* @__PURE__ */ a({
4
4
  name: "CLSkeleton",
5
5
  __name: "CLSkeleton",
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as m, computed as n, createElementBlock as r, openBlock as i, normalizeClass as c, unref as l, createElementVNode as a } from "vue";
2
2
  import { CLSizes as u, CLPosition as f, CLColors as C, CLAlign as $ } from "../index.js";
3
- import { a as z } from "./utils-C7Yjsqk-.js";
3
+ import { a as z } from "./utils-D-5TdmRW.js";
4
4
  const L = ["data-testid"], h = /* @__PURE__ */ m({
5
5
  name: "CLSpinner",
6
6
  __name: "CLSpinner",
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as s, computed as n, createBlock as r, openBlock as f, resolveDynamicComponent as c, normalizeClass as u, unref as o, withCtx as m, renderSlot as i } from "vue";
2
2
  import { CLTextTypes as p, CLColors as $, CLAlign as y } from "../index.js";
3
- import { t as C } from "./utils-DTWXs4YX.js";
3
+ import { t as C } from "./utils-nC7WS9e0.js";
4
4
  const h = /* @__PURE__ */ s({
5
5
  name: "CLText",
6
6
  __name: "CLText",
@@ -1,23 +1,24 @@
1
- import { defineComponent as U, useCssVars as F, ref as b, computed as P, watch as X, onMounted as Z, onUnmounted as j, onBeforeUnmount as q, createElementBlock as k, openBlock as u, normalizeStyle as G, normalizeClass as c, unref as a, createElementVNode as g, createBlock as x, createCommentVNode as $, createVNode as L, withCtx as z, createTextVNode as S, toDisplayString as _, isRef as J } from "vue";
2
- import { _ as M } from "./CLButton.vue_vue_type_style_index_0_lang-CrhjC50b.js";
3
- import { _ as K } from "./CLIcon.vue_vue_type_style_index_0_lang-CZB8svPf.js";
4
- import { _ as O } from "./CLProgress.vue_vue_type_style_index_0_lang-CSf7WiNb.js";
5
- import { _ as Q } from "./CLText.vue_vue_type_style_index_0_lang-V7LSR7DF.js";
6
- import { _ as W } from "./CLHeading.vue_vue_type_style_index_0_lang-DILwNSgn.js";
7
- import { CLMode as R, CLColorVariants as N, CLToastPosition as Y, CLIconSizes as B, CLColors as C, CLHeadingTypes as p, CLTextTypes as I, CLSizes as w, CLIconNames as ee } from "../index.js";
8
- import { i as A, g as te, e as oe } from "./base-theme-C9_Hz5HW.js";
9
- import { u as ae } from "./useEsc-C9QIDZ_8.js";
10
- import { u as se, g as ie, c as E, a as le } from "./useTheme-yoEfuNvB.js";
1
+ import { defineComponent as U, useCssVars as F, ref as b, computed as P, watch as X, onMounted as Z, onUnmounted as j, onBeforeUnmount as p, createElementBlock as k, openBlock as u, normalizeStyle as q, normalizeClass as c, unref as a, createElementVNode as g, createBlock as x, createCommentVNode as $, createVNode as L, withCtx as z, createTextVNode as S, toDisplayString as _, isRef as G } from "vue";
2
+ import { _ as M } from "./CLButton.vue_vue_type_style_index_0_lang-N3EWoTbB.js";
3
+ import { _ as J } from "./CLIcon.vue_vue_type_style_index_0_lang-BaCl5yQI.js";
4
+ import { _ as K } from "./CLProgress.vue_vue_type_style_index_0_lang-Cu3FhEX0.js";
5
+ import { _ as O } from "./CLText.vue_vue_type_style_index_0_lang-Cz9Sv2AC.js";
6
+ import { _ as Q } from "./CLHeading.vue_vue_type_style_index_0_lang-BcCh5-Bx.js";
7
+ import { CLMode as R, CLColorVariants as N, CLToastPosition as W, CLIconSizes as B, CLColors as C, CLHeadingTypes as Y, CLTextTypes as I, CLSizes as w, CLIconNames as ee } from "../index.js";
8
+ import { i as A, g as te, a as oe } from "./helper--hRjZVm6.js";
9
+ import { useEsc as ae } from "../composables/useEsc.js";
10
+ import { g as se, c as E, a as ie } from "./utils-C9rOAW29.js";
11
+ import { useTheme as le } from "../composables/useTheme.js";
11
12
  const ne = ({ color: e, variant: t }) => {
12
- const { borderRadius: y, colors: d, darkMode: n } = se(), s = n.value ? R.Dark : R.Light, r = ie({
13
+ const { borderRadius: y, colors: d, darkMode: n } = le(), s = n.value ? R.Dark : R.Light, r = se({
13
14
  color: e,
14
15
  colors: d.value,
15
16
  mode: s,
16
17
  variant: t
17
18
  }), T = n.value ? "black" : "white";
18
19
  let m;
19
- return y.value && (m = E`&:not([class*='clll-toast--rounded-']){&.clll-toast.clll-toast--rounded{border-radius:var(--clll-${y.value});}}`), le(E`background-color:${T};color:${r?.text};.clll-toast__body{.clll-toast__content{.clll-toast__icon{background-color:${r?.bg ?? "transparent"};.clll-icon{color:${r?.text};}}}}.clll-toast__timer-bar{background-color:${r?.textDisabled};}`, m);
20
- }, re = ["data-testid"], f = 300, o = "clll-toast", Ce = /* @__PURE__ */ U({
20
+ return y.value && (m = E`&:not([class*='clll-toast--rounded-']){&.clll-toast.clll-toast--rounded{border-radius:var(--clll-${y.value});}}`), ie(E`background-color:${T};color:${r?.text};.clll-toast__body{.clll-toast__content{.clll-toast__icon{background-color:${r?.bg ?? "transparent"};.clll-icon{color:${r?.text};}}}}.clll-toast__timer-bar{background-color:${r?.textDisabled};}`, m);
21
+ }, re = ["data-testid"], f = 300, o = "clll-toast", Te = /* @__PURE__ */ U({
21
22
  name: "CLToast",
22
23
  __name: "CLToast",
23
24
  props: {
@@ -30,7 +31,7 @@ const ne = ({ color: e, variant: t }) => {
30
31
  message: {},
31
32
  onAction: {},
32
33
  onDismiss: {},
33
- position: { default: Y.TopRight },
34
+ position: { default: W.TopRight },
34
35
  rounded: { type: Boolean, default: !0 },
35
36
  testId: { default: "clll-toast" },
36
37
  title: {},
@@ -78,14 +79,14 @@ const ne = ({ color: e, variant: t }) => {
78
79
  A && t?.dismissTimer && s.value && (s.value.stop(), s.value = void 0), n.value = !1, t.onDismiss?.();
79
80
  });
80
81
  const { clearEventListeners: V } = ae({ escHandler: m });
81
- return q(() => {
82
+ return p(() => {
82
83
  V();
83
84
  }), (i, l) => (u(), k("output", {
84
85
  ref_key: "elem",
85
86
  ref: y,
86
87
  class: c([a(T), a(ne)({ color: e.color, variant: e.variant })]),
87
88
  "data-testid": e.testId,
88
- style: G({ zIndex: a(r) })
89
+ style: q({ zIndex: a(r) })
89
90
  }, [
90
91
  g("div", {
91
92
  class: c(`${o}__body`)
@@ -97,7 +98,7 @@ const ne = ({ color: e, variant: t }) => {
97
98
  key: 0,
98
99
  class: c(`${o}__icon`)
99
100
  }, [
100
- L(a(K), {
101
+ L(a(J), {
101
102
  name: e.icon,
102
103
  size: e.iconSize
103
104
  }, null, 8, ["name", "size"])
@@ -105,18 +106,18 @@ const ne = ({ color: e, variant: t }) => {
105
106
  g("div", {
106
107
  class: c(`${o}__text`)
107
108
  }, [
108
- e.title ? (u(), x(a(W), {
109
+ e.title ? (u(), x(a(Q), {
109
110
  key: 0,
110
111
  color: a(C).Neutral,
111
112
  "test-id": `${o}__title`,
112
- type: a(p).Section
113
+ type: a(Y).Section
113
114
  }, {
114
115
  default: z(() => [
115
116
  S(_(e.title), 1)
116
117
  ]),
117
118
  _: 1
118
119
  }, 8, ["color", "test-id", "type"])) : $("", !0),
119
- e.message ? (u(), x(a(Q), {
120
+ e.message ? (u(), x(a(O), {
120
121
  key: 1,
121
122
  color: a(C).Neutral,
122
123
  "test-id": `${o}__message`,
@@ -162,10 +163,10 @@ const ne = ({ color: e, variant: t }) => {
162
163
  }, null, 8, ["color", "border-radius", "icon-before", "icon-size", "size", "test-id", "variant"])
163
164
  ], 2)
164
165
  ], 2),
165
- e.dismissTimer ? (u(), x(a(O), {
166
+ e.dismissTimer ? (u(), x(a(K), {
166
167
  key: 0,
167
168
  modelValue: a(d),
168
- "onUpdate:modelValue": l[0] || (l[0] = (v) => J(d) ? d.value = v : null),
169
+ "onUpdate:modelValue": l[0] || (l[0] = (v) => G(d) ? d.value = v : null),
169
170
  color: e.color,
170
171
  rounded: !1,
171
172
  size: a(w).Small
@@ -174,5 +175,5 @@ const ne = ({ color: e, variant: t }) => {
174
175
  }
175
176
  });
176
177
  export {
177
- Ce as _
178
+ Te as _
178
179
  };