@codeandfunction/callaloo 5.15.1 → 5.17.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (102) hide show
  1. package/dist/assets/CLFormField.css +1 -0
  2. package/dist/assets/CLInputMessages.css +1 -1
  3. package/dist/callaloo.global.js +1 -1
  4. package/dist/chunks/{CLA11yButton.vue_vue_type_style_index_0_lang-BnJRXVwW.js → CLA11yButton.vue_vue_type_style_index_0_lang-BQBmDfM8.js} +1 -1
  5. package/dist/chunks/CLButton.vue_vue_type_style_index_0_lang-pE0JrYmS.js +2 -0
  6. package/dist/chunks/CLCalendar.vue_vue_type_style_index_0_lang-DUc5dHAZ.js +2 -0
  7. package/dist/chunks/{CLCard.vue_vue_type_style_index_0_lang-D3JriMVx.js → CLCard.vue_vue_type_style_index_0_lang-CY-Qr_CV.js} +1 -1
  8. package/dist/chunks/{CLFormCharCounter.vue_vue_type_style_index_0_lang-hB5Ua5Ta.js → CLFormCharCounter.vue_vue_type_style_index_0_lang-D3Ao581E.js} +1 -1
  9. package/dist/chunks/CLFormField.vue_vue_type_style_index_0_lang-Rf_Mo_VS.js +2 -0
  10. package/dist/chunks/{CLFormLabel.vue_vue_type_script_setup_true_lang-D7UZMu_6.js → CLFormLabel.vue_vue_type_script_setup_true_lang-DoM5X-sA.js} +1 -1
  11. package/dist/chunks/{CLHeading.vue_vue_type_style_index_0_lang-Bp0Hmc-g.js → CLHeading.vue_vue_type_style_index_0_lang-PCOhAZkN.js} +1 -1
  12. package/dist/chunks/{CLIcon.vue_vue_type_style_index_0_lang-BN_rKLKK.js → CLIcon.vue_vue_type_style_index_0_lang-BmRKmzSl.js} +1 -1
  13. package/dist/chunks/CLInputMessages.vue_vue_type_style_index_0_lang-gkHODA90.js +2 -0
  14. package/dist/chunks/{CLLink.vue_vue_type_style_index_0_lang-DoqyJ8FL.js → CLLink.vue_vue_type_style_index_0_lang-B94b55if.js} +1 -1
  15. package/dist/chunks/{CLModal.vue_vue_type_style_index_0_lang-DNUsoevN.js → CLModal.vue_vue_type_style_index_0_lang-DLUfvRC_.js} +1 -1
  16. package/dist/chunks/{CLNavLink.vue_vue_type_script_setup_true_lang-B2DxfBQx.js → CLNavLink.vue_vue_type_script_setup_true_lang-BXjSe15F.js} +1 -1
  17. package/dist/chunks/{CLPill.vue_vue_type_style_index_0_lang-mVxJKPLS.js → CLPill.vue_vue_type_style_index_0_lang-BjrbTAI3.js} +1 -1
  18. package/dist/chunks/{CLSkeleton.vue_vue_type_style_index_0_lang-B6zTBcne.js → CLSkeleton.vue_vue_type_style_index_0_lang-DAHFJ7wZ.js} +1 -1
  19. package/dist/chunks/{CLSpinner.vue_vue_type_style_index_0_lang-C70Q-aOu.js → CLSpinner.vue_vue_type_style_index_0_lang-B4PAMCz6.js} +1 -1
  20. package/dist/chunks/{CLText.vue_vue_type_style_index_0_lang-BZQzsJMF.js → CLText.vue_vue_type_style_index_0_lang-CdA4TW0N.js} +1 -1
  21. package/dist/chunks/{CLToast.vue_vue_type_style_index_0_lang-D2V4LMvh.js → CLToast.vue_vue_type_style_index_0_lang-D7KGFx9t.js} +1 -1
  22. package/dist/chunks/{index-DwjW-Z-U.js → index-DsloP0ml.js} +1 -1
  23. package/dist/chunks/{index-C9S3C1LU.js → index-wkMXT2wB.js} +1 -1
  24. package/dist/chunks/{utils-CYyJsKfZ.js → utils-BVrLpGWo.js} +1 -1
  25. package/dist/chunks/utils-BfamOHei.js +1 -0
  26. package/dist/chunks/{utils-FFu1_F8K.js → utils-BolqCol3.js} +1 -1
  27. package/dist/chunks/utils-CGcDgs5c.js +1 -0
  28. package/dist/chunks/{utils-D1egvxnD.js → utils-D0LERx2k.js} +1 -1
  29. package/dist/chunks/{utils-BDThP-Sb.js → utils-jYeghjKF.js} +1 -1
  30. package/dist/components/Buttons/CLA11yButton/CLA11yButton.js +1 -1
  31. package/dist/components/Buttons/CLButton/CLButton.css +1 -1
  32. package/dist/components/Buttons/CLButton/CLButton.js +1 -1
  33. package/dist/components/Buttons/CLButton/CLButton.vue.d.ts +4 -4
  34. package/dist/components/CLIcon/CLIcon.js +1 -1
  35. package/dist/components/CLTable/CLTable.js +1 -1
  36. package/dist/components/Containers/CLCard/CLCard.js +1 -1
  37. package/dist/components/Containers/CLCard/CLCard.vue.d.ts +2 -2
  38. package/dist/components/Containers/CLCarousel/CLCarousel.js +1 -1
  39. package/dist/components/Containers/CLCarousel/CLCarousel.vue.d.ts +1 -1
  40. package/dist/components/Containers/CLDisclosure/CLDisclosure.js +1 -1
  41. package/dist/components/Containers/CLDrawer/CLDrawer.js +1 -1
  42. package/dist/components/Containers/CLDrawer/CLDrawer.vue.d.ts +2 -2
  43. package/dist/components/Form/CLCalendar/CLCalendar.css +1 -1
  44. package/dist/components/Form/CLCalendar/CLCalendar.js +1 -1
  45. package/dist/components/Form/CLCalendar/CLCalendar.vue.d.ts +14 -11
  46. package/dist/components/Form/CLCheckbox/CLCheckbox.js +1 -1
  47. package/dist/components/Form/CLCheckbox/CLCheckbox.vue.d.ts +3 -3
  48. package/dist/components/Form/CLInput/CLInput.js +1 -1
  49. package/dist/components/Form/CLInput/CLInput.vue.d.ts +3 -3
  50. package/dist/components/Form/CLInputDatePicker/CLInputDatePicker.js +1 -1
  51. package/dist/components/Form/CLInputDatePicker/CLInputDatePicker.vue.d.ts +25 -23
  52. package/dist/components/Form/CLInputTimePicker/CLInputTimePicker.js +1 -1
  53. package/dist/components/Form/CLInputTimePicker/CLInputTimePicker.vue.d.ts +10 -10
  54. package/dist/components/Form/CLInputTimePicker/index.d.ts +10 -10
  55. package/dist/components/Form/CLRadioButton/CLRadioButton.js +1 -1
  56. package/dist/components/Form/CLSelect/CLSelect.js +1 -1
  57. package/dist/components/Form/CLTextArea/CLTextArea.js +1 -1
  58. package/dist/components/Form/CLTimePicker/CLTimePicker.js +1 -1
  59. package/dist/components/Form/CLTimePicker/CLTimePicker.vue.d.ts +1 -1
  60. package/dist/components/Form/CLTimePicker/index.d.ts +1 -1
  61. package/dist/components/Indicators/CLBadge/CLBadge.js +1 -1
  62. package/dist/components/Indicators/CLBanner/CLBanner.js +1 -1
  63. package/dist/components/Indicators/CLBanner/CLBanner.vue.d.ts +2 -2
  64. package/dist/components/Indicators/CLPill/CLPill.js +1 -1
  65. package/dist/components/Indicators/CLProgress/CLProgress.js +1 -1
  66. package/dist/components/Loading/CLSkeleton/CLSkeleton.js +1 -1
  67. package/dist/components/Loading/CLSkeleton/CLSkeleton.vue.d.ts +2 -2
  68. package/dist/components/Loading/CLSpinner/CLSpinner.js +1 -1
  69. package/dist/components/Modals/CLModal/CLModal.js +1 -1
  70. package/dist/components/Modals/CLModal/CLModal.vue.d.ts +1 -1
  71. package/dist/components/Modals/CLModalDatePicker/CLModalDatePicker.css +1 -1
  72. package/dist/components/Modals/CLModalDatePicker/CLModalDatePicker.js +1 -1
  73. package/dist/components/Modals/CLModalDatePicker/CLModalDatePicker.vue.d.ts +35 -17
  74. package/dist/components/Modals/CLModalDatePicker/index.d.ts +1 -0
  75. package/dist/components/Modals/CLModalTimePicker/CLModalTimePicker.css +1 -1
  76. package/dist/components/Modals/CLModalTimePicker/CLModalTimePicker.js +1 -1
  77. package/dist/components/Modals/CLModalTimePicker/CLModalTimePicker.vue.d.ts +16 -4
  78. package/dist/components/Modals/CLModalTimePicker/index.d.ts +7 -3
  79. package/dist/components/Navigation/CLLink/CLLink.js +1 -1
  80. package/dist/components/Navigation/CLNavLink/CLNavLink.js +1 -1
  81. package/dist/components/Navigation/CLNavSection/CLNavSection.js +1 -1
  82. package/dist/components/Popups/CLDropdownMenu/CLDropdownMenu.js +1 -1
  83. package/dist/components/Popups/CLDropdownMenu/CLDropdownMenu.vue.d.ts +9 -9
  84. package/dist/components/Popups/CLToast/CLToast.js +1 -1
  85. package/dist/components/Popups/CLToast/CLToast.vue.d.ts +1 -1
  86. package/dist/components/Providers/CLThemeProvider/CLThemeProvider.js +1 -1
  87. package/dist/components/Providers/CLToastProvider/CLToastProvider.js +1 -1
  88. package/dist/components/Typography/CLHeading/CLHeading.js +1 -1
  89. package/dist/components/Typography/CLText/CLText.js +1 -1
  90. package/dist/composables/useDatePicker.d.ts +31 -21
  91. package/dist/composables/useDatePicker.js +1 -1
  92. package/dist/composables/useTheme.js +1 -1
  93. package/dist/index.d.ts +1 -1
  94. package/dist/index.js +1 -1
  95. package/dist/styles.css +1 -1
  96. package/dist/types.d.ts +1 -0
  97. package/package.json +1 -1
  98. package/dist/chunks/CLButton.vue_vue_type_style_index_0_lang-hSiZPrZr.js +0 -2
  99. package/dist/chunks/CLCalendar.vue_vue_type_style_index_0_lang-BsB4QKTu.js +0 -2
  100. package/dist/chunks/CLInputMessages.vue_vue_type_style_index_0_lang-CtGriC2l.js +0 -2
  101. package/dist/chunks/utils-DBWrbn3p.js +0 -1
  102. package/dist/chunks/utils-DxfNBBvx.js +0 -1
@@ -1 +1 @@
1
- .clll-button{position:relative;border:1px solid var(--clll-button-border-color, transparent);background-color:var(--clll-button-bg-color, transparent);cursor:pointer}.clll-button[href]{text-decoration:none}.clll-button{transition-property:background-color;transition-duration:.3s;transition-timing-function:ease}.clll-button .clll-button__content,.clll-button .clll-icon{color:var(--clll-button-text-color, inherit);font-weight:500;font-family:var(--clll-font-family);-webkit-font-smoothing:antialiased;margin:0;transition-property:color;transition-duration:.3s;transition-timing-function:ease}.clll-button:hover:not([disabled]){background-color:var(--clll-button-hover-bg, transparent);border-color:var(--clll-button-hover-border, transparent)}.clll-button[class*=--ghost]:hover:not([disabled]){--clll-icon-color: var( --clll-button-focus-border, var(--clll-button-text-color, inherit) )}.clll-button[class*=--ghost]:hover:not([disabled]) .clll-button__content,.clll-button[class*=--ghost]:hover:not([disabled]) .clll-text{color:var(--clll-button-focus-border, var(--clll-button-text-color, inherit))}.clll-button[class*=--ghost]:hover:not([disabled]) .clll-icon{color:var(--clll-button-focus-border, var(--clll-button-text-color, inherit))!important}.clll-button.clll-input__input-prefix[class*=--ghost]:hover:not([disabled]),.clll-button.clll-input__input-suffix[class*=--ghost]:hover:not([disabled]){--clll-icon-color: var( --clll-button-focus-border, var(--clll-button-text-color, inherit) );color:var(--clll-button-focus-border, var(--clll-button-text-color, inherit))}.clll-button.clll-input__input-prefix[class*=--ghost]:hover:not([disabled]) .clll-button__content,.clll-button.clll-input__input-prefix[class*=--ghost]:hover:not([disabled]) .clll-text,.clll-button.clll-input__input-suffix[class*=--ghost]:hover:not([disabled]) .clll-button__content,.clll-button.clll-input__input-suffix[class*=--ghost]:hover:not([disabled]) .clll-text{color:var(--clll-button-focus-border, var(--clll-button-text-color, inherit))}.clll-button.clll-input__input-prefix[class*=--ghost]:hover:not([disabled]) .clll-icon svg,.clll-button.clll-input__input-suffix[class*=--ghost]:hover:not([disabled]) .clll-icon svg{color:var(--clll-button-text-color)}.clll-button:focus-visible{outline:none;border-color:transparent!important;outline-color:var(--clll-button-focus-border, transparent);outline-style:solid;outline-width:2px;box-shadow:0 0 0 var(--clll-unit-0) var(--clll-button-focus-shadow, transparent)}.clll-button.clll-button--has-content{display:inline-flex;align-items:center}.clll-button.clll-button--no-content.clll-button--left,.clll-button.clll-button--no-content.clll-button--right{justify-content:center}.clll-button.clll-button--no-content .clll-button__content{display:none}.clll-button.clll-button--busy .clll-button__content,.clll-button.clll-button--busy .clll-icon{visibility:hidden}.clll-button.clll-button--tiny{font-size:var(--clll-unit-3);line-height:var(--clll-unit-5);padding:var(--clll-unit-0_5) var(--clll-unit-2)}.clll-button.clll-button--tiny.clll-button--has-content>:not([hidden])~:not([hidden]){margin-left:var(--clll-unit-0_5)}.clll-button.clll-button--tiny.clll-button--has-content>:not([hidden])~:not([hidden]).clll-spinner{margin-left:0;margin-right:0}.clll-button.clll-button--tiny.clll-button--rounded{border-radius:var(--clll-rounded-lg)}.clll-button.clll-button--tiny.clll-button--rounded.clll-button--rounded-full,.clll-button.clll-button--tiny.clll-button--rounded.clll-button--rounded-full .clll-{border-radius:var(--clll-rounded-full)}.clll-button.clll-button--tiny.clll-button--rounded.clll-button--rounded-lg,.clll-button.clll-button--tiny.clll-button--rounded.clll-button--rounded-lg .clll-{border-radius:var(--clll-rounded-lg)}.clll-button.clll-button--tiny.clll-button--rounded.clll-button--rounded-md,.clll-button.clll-button--tiny.clll-button--rounded.clll-button--rounded-md .clll-{border-radius:var(--clll-rounded-md)}.clll-button.clll-button--tiny.clll-button--rounded.clll-button--rounded-sm,.clll-button.clll-button--tiny.clll-button--rounded.clll-button--rounded-sm .clll-{border-radius:var(--clll-rounded-sm)}.clll-button.clll-button--tiny.clll-button--rounded.clll-button--rounded-xs,.clll-button.clll-button--tiny.clll-button--rounded.clll-button--rounded-xs .clll-{border-radius:var(--clll-rounded-xs)}.clll-button.clll-button--tiny.clll-button--rounded.clll-button--rounded-xl,.clll-button.clll-button--tiny.clll-button--rounded.clll-button--rounded-xl .clll-{border-radius:var(--clll-rounded-xl)}.clll-button.clll-button--tiny.clll-button--rounded.clll-button--rounded-2xl,.clll-button.clll-button--tiny.clll-button--rounded.clll-button--rounded-2xl .clll-{border-radius:var(--clll-rounded-2xl)}.clll-button.clll-button--tiny.clll-button--rounded.clll-button--rounded-3xl,.clll-button.clll-button--tiny.clll-button--rounded.clll-button--rounded-3xl .clll-{border-radius:var(--clll-rounded-3xl)}.clll-button.clll-button--tiny.clll-button--rounded.clll-button--rounded-none,.clll-button.clll-button--tiny.clll-button--rounded.clll-button--rounded-none .clll-{border-radius:0}.clll-button.clll-button--tiny:not([class*=clll-button--rounded-]).clll-button--rounded{border-radius:var(--clll-button-theme-radius)}.clll-button.clll-button--tiny.clll-button--no-content{padding:var(--clll-unit-1_5)}.clll-button.clll-button--small{font-size:var(--clll-unit-3_5);line-height:var(--clll-unit-6);padding:var(--clll-unit-1) var(--clll-unit-2_5)}.clll-button.clll-button--small.clll-button--has-content>:not([hidden])~:not([hidden]){margin-left:var(--clll-unit-1)}.clll-button.clll-button--small.clll-button--has-content>:not([hidden])~:not([hidden]).clll-spinner{margin-left:0;margin-right:0}.clll-button.clll-button--small.clll-button--rounded{border-radius:var(--clll-rounded-xl)}.clll-button.clll-button--small.clll-button--rounded.clll-button--rounded-full,.clll-button.clll-button--small.clll-button--rounded.clll-button--rounded-full .clll-{border-radius:var(--clll-rounded-full)}.clll-button.clll-button--small.clll-button--rounded.clll-button--rounded-lg,.clll-button.clll-button--small.clll-button--rounded.clll-button--rounded-lg .clll-{border-radius:var(--clll-rounded-lg)}.clll-button.clll-button--small.clll-button--rounded.clll-button--rounded-md,.clll-button.clll-button--small.clll-button--rounded.clll-button--rounded-md .clll-{border-radius:var(--clll-rounded-md)}.clll-button.clll-button--small.clll-button--rounded.clll-button--rounded-sm,.clll-button.clll-button--small.clll-button--rounded.clll-button--rounded-sm .clll-{border-radius:var(--clll-rounded-sm)}.clll-button.clll-button--small.clll-button--rounded.clll-button--rounded-xs,.clll-button.clll-button--small.clll-button--rounded.clll-button--rounded-xs .clll-{border-radius:var(--clll-rounded-xs)}.clll-button.clll-button--small.clll-button--rounded.clll-button--rounded-xl,.clll-button.clll-button--small.clll-button--rounded.clll-button--rounded-xl .clll-{border-radius:var(--clll-rounded-xl)}.clll-button.clll-button--small.clll-button--rounded.clll-button--rounded-2xl,.clll-button.clll-button--small.clll-button--rounded.clll-button--rounded-2xl .clll-{border-radius:var(--clll-rounded-2xl)}.clll-button.clll-button--small.clll-button--rounded.clll-button--rounded-3xl,.clll-button.clll-button--small.clll-button--rounded.clll-button--rounded-3xl .clll-{border-radius:var(--clll-rounded-3xl)}.clll-button.clll-button--small.clll-button--rounded.clll-button--rounded-none,.clll-button.clll-button--small.clll-button--rounded.clll-button--rounded-none .clll-{border-radius:0}.clll-button.clll-button--small:not([class*=clll-button--rounded-]).clll-button--rounded{border-radius:var(--clll-button-theme-radius)}.clll-button.clll-button--small.clll-button--no-content{padding:var(--clll-unit-2)}.clll-button.clll-button--medium{font-size:var(--clll-unit-4);line-height:var(--clll-unit-6_5);padding:var(--clll-unit-1_5) var(--clll-unit-3)}.clll-button.clll-button--medium.clll-button--has-content>:not([hidden])~:not([hidden]){margin-left:var(--clll-unit-1_5)}.clll-button.clll-button--medium.clll-button--has-content>:not([hidden])~:not([hidden]).clll-spinner{margin-left:0;margin-right:0}.clll-button.clll-button--medium.clll-button--rounded{border-radius:var(--clll-rounded-xl)}.clll-button.clll-button--medium.clll-button--rounded.clll-button--rounded-full,.clll-button.clll-button--medium.clll-button--rounded.clll-button--rounded-full .clll-{border-radius:var(--clll-rounded-full)}.clll-button.clll-button--medium.clll-button--rounded.clll-button--rounded-lg,.clll-button.clll-button--medium.clll-button--rounded.clll-button--rounded-lg .clll-{border-radius:var(--clll-rounded-lg)}.clll-button.clll-button--medium.clll-button--rounded.clll-button--rounded-md,.clll-button.clll-button--medium.clll-button--rounded.clll-button--rounded-md .clll-{border-radius:var(--clll-rounded-md)}.clll-button.clll-button--medium.clll-button--rounded.clll-button--rounded-sm,.clll-button.clll-button--medium.clll-button--rounded.clll-button--rounded-sm .clll-{border-radius:var(--clll-rounded-sm)}.clll-button.clll-button--medium.clll-button--rounded.clll-button--rounded-xs,.clll-button.clll-button--medium.clll-button--rounded.clll-button--rounded-xs .clll-{border-radius:var(--clll-rounded-xs)}.clll-button.clll-button--medium.clll-button--rounded.clll-button--rounded-xl,.clll-button.clll-button--medium.clll-button--rounded.clll-button--rounded-xl .clll-{border-radius:var(--clll-rounded-xl)}.clll-button.clll-button--medium.clll-button--rounded.clll-button--rounded-2xl,.clll-button.clll-button--medium.clll-button--rounded.clll-button--rounded-2xl .clll-{border-radius:var(--clll-rounded-2xl)}.clll-button.clll-button--medium.clll-button--rounded.clll-button--rounded-3xl,.clll-button.clll-button--medium.clll-button--rounded.clll-button--rounded-3xl .clll-{border-radius:var(--clll-rounded-3xl)}.clll-button.clll-button--medium.clll-button--rounded.clll-button--rounded-none,.clll-button.clll-button--medium.clll-button--rounded.clll-button--rounded-none .clll-{border-radius:0}.clll-button.clll-button--medium:not([class*=clll-button--rounded-]).clll-button--rounded{border-radius:var(--clll-button-theme-radius)}.clll-button.clll-button--medium.clll-button--no-content{padding:var(--clll-unit-2_5)}.clll-button.clll-button--large{font-size:var(--clll-unit-4_5);line-height:var(--clll-unit-7);padding:var(--clll-unit-2) var(--clll-unit-3_5)}.clll-button.clll-button--large.clll-button--has-content>:not([hidden])~:not([hidden]){margin-left:var(--clll-unit-2)}.clll-button.clll-button--large.clll-button--has-content>:not([hidden])~:not([hidden]).clll-spinner{margin-left:0;margin-right:0}.clll-button.clll-button--large.clll-button--rounded{border-radius:var(--clll-rounded-2xl)}.clll-button.clll-button--large.clll-button--rounded.clll-button--rounded-full,.clll-button.clll-button--large.clll-button--rounded.clll-button--rounded-full .clll-{border-radius:var(--clll-rounded-full)}.clll-button.clll-button--large.clll-button--rounded.clll-button--rounded-lg,.clll-button.clll-button--large.clll-button--rounded.clll-button--rounded-lg .clll-{border-radius:var(--clll-rounded-lg)}.clll-button.clll-button--large.clll-button--rounded.clll-button--rounded-md,.clll-button.clll-button--large.clll-button--rounded.clll-button--rounded-md .clll-{border-radius:var(--clll-rounded-md)}.clll-button.clll-button--large.clll-button--rounded.clll-button--rounded-sm,.clll-button.clll-button--large.clll-button--rounded.clll-button--rounded-sm .clll-{border-radius:var(--clll-rounded-sm)}.clll-button.clll-button--large.clll-button--rounded.clll-button--rounded-xs,.clll-button.clll-button--large.clll-button--rounded.clll-button--rounded-xs .clll-{border-radius:var(--clll-rounded-xs)}.clll-button.clll-button--large.clll-button--rounded.clll-button--rounded-xl,.clll-button.clll-button--large.clll-button--rounded.clll-button--rounded-xl .clll-{border-radius:var(--clll-rounded-xl)}.clll-button.clll-button--large.clll-button--rounded.clll-button--rounded-2xl,.clll-button.clll-button--large.clll-button--rounded.clll-button--rounded-2xl .clll-{border-radius:var(--clll-rounded-2xl)}.clll-button.clll-button--large.clll-button--rounded.clll-button--rounded-3xl,.clll-button.clll-button--large.clll-button--rounded.clll-button--rounded-3xl .clll-{border-radius:var(--clll-rounded-3xl)}.clll-button.clll-button--large.clll-button--rounded.clll-button--rounded-none,.clll-button.clll-button--large.clll-button--rounded.clll-button--rounded-none .clll-{border-radius:0}.clll-button.clll-button--large:not([class*=clll-button--rounded-]).clll-button--rounded{border-radius:var(--clll-button-theme-radius)}.clll-button.clll-button--large.clll-button--no-content{padding:var(--clll-unit-3)}.clll-button.clll-button--xlarge{font-size:var(--clll-unit-6);line-height:var(--clll-unit-8_5);padding:var(--clll-unit-3) var(--clll-unit-4_5)}.clll-button.clll-button--xlarge.clll-button--has-content>:not([hidden])~:not([hidden]){margin-left:var(--clll-unit-2_5)}.clll-button.clll-button--xlarge.clll-button--has-content>:not([hidden])~:not([hidden]).clll-spinner{margin-left:0;margin-right:0}.clll-button.clll-button--xlarge.clll-button--rounded{border-radius:var(--clll-rounded-3xl)}.clll-button.clll-button--xlarge.clll-button--rounded.clll-button--rounded-full,.clll-button.clll-button--xlarge.clll-button--rounded.clll-button--rounded-full .clll-{border-radius:var(--clll-rounded-full)}.clll-button.clll-button--xlarge.clll-button--rounded.clll-button--rounded-lg,.clll-button.clll-button--xlarge.clll-button--rounded.clll-button--rounded-lg .clll-{border-radius:var(--clll-rounded-lg)}.clll-button.clll-button--xlarge.clll-button--rounded.clll-button--rounded-md,.clll-button.clll-button--xlarge.clll-button--rounded.clll-button--rounded-md .clll-{border-radius:var(--clll-rounded-md)}.clll-button.clll-button--xlarge.clll-button--rounded.clll-button--rounded-sm,.clll-button.clll-button--xlarge.clll-button--rounded.clll-button--rounded-sm .clll-{border-radius:var(--clll-rounded-sm)}.clll-button.clll-button--xlarge.clll-button--rounded.clll-button--rounded-xs,.clll-button.clll-button--xlarge.clll-button--rounded.clll-button--rounded-xs .clll-{border-radius:var(--clll-rounded-xs)}.clll-button.clll-button--xlarge.clll-button--rounded.clll-button--rounded-xl,.clll-button.clll-button--xlarge.clll-button--rounded.clll-button--rounded-xl .clll-{border-radius:var(--clll-rounded-xl)}.clll-button.clll-button--xlarge.clll-button--rounded.clll-button--rounded-2xl,.clll-button.clll-button--xlarge.clll-button--rounded.clll-button--rounded-2xl .clll-{border-radius:var(--clll-rounded-2xl)}.clll-button.clll-button--xlarge.clll-button--rounded.clll-button--rounded-3xl,.clll-button.clll-button--xlarge.clll-button--rounded.clll-button--rounded-3xl .clll-{border-radius:var(--clll-rounded-3xl)}.clll-button.clll-button--xlarge.clll-button--rounded.clll-button--rounded-none,.clll-button.clll-button--xlarge.clll-button--rounded.clll-button--rounded-none .clll-{border-radius:0}.clll-button.clll-button--xlarge:not([class*=clll-button--rounded-]).clll-button--rounded{border-radius:var(--clll-button-theme-radius)}.clll-button.clll-button--xlarge.clll-button--no-content{padding:var(--clll-unit-4)}.clll-button.clll-button--xxlarge{font-size:var(--clll-unit-7);line-height:var(--clll-unit-9_5);padding:var(--clll-unit-3_5) var(--clll-unit-5)}.clll-button.clll-button--xxlarge.clll-button--has-content>:not([hidden])~:not([hidden]){margin-left:var(--clll-unit-3)}.clll-button.clll-button--xxlarge.clll-button--has-content>:not([hidden])~:not([hidden]).clll-spinner{margin-left:0;margin-right:0}.clll-button.clll-button--xxlarge.clll-button--rounded{border-radius:var(--clll-rounded-3xl)}.clll-button.clll-button--xxlarge.clll-button--rounded.clll-button--rounded-full,.clll-button.clll-button--xxlarge.clll-button--rounded.clll-button--rounded-full .clll-{border-radius:var(--clll-rounded-full)}.clll-button.clll-button--xxlarge.clll-button--rounded.clll-button--rounded-lg,.clll-button.clll-button--xxlarge.clll-button--rounded.clll-button--rounded-lg .clll-{border-radius:var(--clll-rounded-lg)}.clll-button.clll-button--xxlarge.clll-button--rounded.clll-button--rounded-md,.clll-button.clll-button--xxlarge.clll-button--rounded.clll-button--rounded-md .clll-{border-radius:var(--clll-rounded-md)}.clll-button.clll-button--xxlarge.clll-button--rounded.clll-button--rounded-sm,.clll-button.clll-button--xxlarge.clll-button--rounded.clll-button--rounded-sm .clll-{border-radius:var(--clll-rounded-sm)}.clll-button.clll-button--xxlarge.clll-button--rounded.clll-button--rounded-xs,.clll-button.clll-button--xxlarge.clll-button--rounded.clll-button--rounded-xs .clll-{border-radius:var(--clll-rounded-xs)}.clll-button.clll-button--xxlarge.clll-button--rounded.clll-button--rounded-xl,.clll-button.clll-button--xxlarge.clll-button--rounded.clll-button--rounded-xl .clll-{border-radius:var(--clll-rounded-xl)}.clll-button.clll-button--xxlarge.clll-button--rounded.clll-button--rounded-2xl,.clll-button.clll-button--xxlarge.clll-button--rounded.clll-button--rounded-2xl .clll-{border-radius:var(--clll-rounded-2xl)}.clll-button.clll-button--xxlarge.clll-button--rounded.clll-button--rounded-3xl,.clll-button.clll-button--xxlarge.clll-button--rounded.clll-button--rounded-3xl .clll-{border-radius:var(--clll-rounded-3xl)}.clll-button.clll-button--xxlarge.clll-button--rounded.clll-button--rounded-none,.clll-button.clll-button--xxlarge.clll-button--rounded.clll-button--rounded-none .clll-{border-radius:0}.clll-button.clll-button--xxlarge:not([class*=clll-button--rounded-]).clll-button--rounded{border-radius:var(--clll-button-theme-radius)}.clll-button.clll-button--xxlarge.clll-button--no-content{padding:var(--clll-unit-4_5)}.clll-button.clll-button--xxxlarge{font-size:var(--clll-unit-8);line-height:var(--clll-unit-10_5);padding:var(--clll-unit-4) var(--clll-unit-5_5)}.clll-button.clll-button--xxxlarge.clll-button--has-content>:not([hidden])~:not([hidden]){margin-left:var(--clll-unit-3_5)}.clll-button.clll-button--xxxlarge.clll-button--has-content>:not([hidden])~:not([hidden]).clll-spinner{margin-left:0;margin-right:0}.clll-button.clll-button--xxxlarge.clll-button--rounded{border-radius:var(--clll-rounded-3xl)}.clll-button.clll-button--xxxlarge.clll-button--rounded.clll-button--rounded-full,.clll-button.clll-button--xxxlarge.clll-button--rounded.clll-button--rounded-full .clll-{border-radius:var(--clll-rounded-full)}.clll-button.clll-button--xxxlarge.clll-button--rounded.clll-button--rounded-lg,.clll-button.clll-button--xxxlarge.clll-button--rounded.clll-button--rounded-lg .clll-{border-radius:var(--clll-rounded-lg)}.clll-button.clll-button--xxxlarge.clll-button--rounded.clll-button--rounded-md,.clll-button.clll-button--xxxlarge.clll-button--rounded.clll-button--rounded-md .clll-{border-radius:var(--clll-rounded-md)}.clll-button.clll-button--xxxlarge.clll-button--rounded.clll-button--rounded-sm,.clll-button.clll-button--xxxlarge.clll-button--rounded.clll-button--rounded-sm .clll-{border-radius:var(--clll-rounded-sm)}.clll-button.clll-button--xxxlarge.clll-button--rounded.clll-button--rounded-xs,.clll-button.clll-button--xxxlarge.clll-button--rounded.clll-button--rounded-xs .clll-{border-radius:var(--clll-rounded-xs)}.clll-button.clll-button--xxxlarge.clll-button--rounded.clll-button--rounded-xl,.clll-button.clll-button--xxxlarge.clll-button--rounded.clll-button--rounded-xl .clll-{border-radius:var(--clll-rounded-xl)}.clll-button.clll-button--xxxlarge.clll-button--rounded.clll-button--rounded-2xl,.clll-button.clll-button--xxxlarge.clll-button--rounded.clll-button--rounded-2xl .clll-{border-radius:var(--clll-rounded-2xl)}.clll-button.clll-button--xxxlarge.clll-button--rounded.clll-button--rounded-3xl,.clll-button.clll-button--xxxlarge.clll-button--rounded.clll-button--rounded-3xl .clll-{border-radius:var(--clll-rounded-3xl)}.clll-button.clll-button--xxxlarge.clll-button--rounded.clll-button--rounded-none,.clll-button.clll-button--xxxlarge.clll-button--rounded.clll-button--rounded-none .clll-{border-radius:0}.clll-button.clll-button--xxxlarge:not([class*=clll-button--rounded-]).clll-button--rounded{border-radius:var(--clll-button-theme-radius)}.clll-button.clll-button--xxxlarge.clll-button--no-content{padding:var(--clll-unit-5)}.clll-button.clll-button--xxxxlarge{font-size:var(--clll-unit-10);line-height:var(--clll-unit-12_5);padding:var(--clll-unit-4_5) var(--clll-unit-6)}.clll-button.clll-button--xxxxlarge.clll-button--has-content>:not([hidden])~:not([hidden]){margin-left:var(--clll-unit-4)}.clll-button.clll-button--xxxxlarge.clll-button--has-content>:not([hidden])~:not([hidden]).clll-spinner{margin-left:0;margin-right:0}.clll-button.clll-button--xxxxlarge.clll-button--rounded{border-radius:var(--clll-rounded-3xl)}.clll-button.clll-button--xxxxlarge.clll-button--rounded.clll-button--rounded-full,.clll-button.clll-button--xxxxlarge.clll-button--rounded.clll-button--rounded-full .clll-{border-radius:var(--clll-rounded-full)}.clll-button.clll-button--xxxxlarge.clll-button--rounded.clll-button--rounded-lg,.clll-button.clll-button--xxxxlarge.clll-button--rounded.clll-button--rounded-lg .clll-{border-radius:var(--clll-rounded-lg)}.clll-button.clll-button--xxxxlarge.clll-button--rounded.clll-button--rounded-md,.clll-button.clll-button--xxxxlarge.clll-button--rounded.clll-button--rounded-md .clll-{border-radius:var(--clll-rounded-md)}.clll-button.clll-button--xxxxlarge.clll-button--rounded.clll-button--rounded-sm,.clll-button.clll-button--xxxxlarge.clll-button--rounded.clll-button--rounded-sm .clll-{border-radius:var(--clll-rounded-sm)}.clll-button.clll-button--xxxxlarge.clll-button--rounded.clll-button--rounded-xs,.clll-button.clll-button--xxxxlarge.clll-button--rounded.clll-button--rounded-xs .clll-{border-radius:var(--clll-rounded-xs)}.clll-button.clll-button--xxxxlarge.clll-button--rounded.clll-button--rounded-xl,.clll-button.clll-button--xxxxlarge.clll-button--rounded.clll-button--rounded-xl .clll-{border-radius:var(--clll-rounded-xl)}.clll-button.clll-button--xxxxlarge.clll-button--rounded.clll-button--rounded-2xl,.clll-button.clll-button--xxxxlarge.clll-button--rounded.clll-button--rounded-2xl .clll-{border-radius:var(--clll-rounded-2xl)}.clll-button.clll-button--xxxxlarge.clll-button--rounded.clll-button--rounded-3xl,.clll-button.clll-button--xxxxlarge.clll-button--rounded.clll-button--rounded-3xl .clll-{border-radius:var(--clll-rounded-3xl)}.clll-button.clll-button--xxxxlarge.clll-button--rounded.clll-button--rounded-none,.clll-button.clll-button--xxxxlarge.clll-button--rounded.clll-button--rounded-none .clll-{border-radius:0}.clll-button.clll-button--xxxxlarge:not([class*=clll-button--rounded-]).clll-button--rounded{border-radius:var(--clll-button-theme-radius)}.clll-button.clll-button--xxxxlarge.clll-button--no-content{padding:var(--clll-unit-5_5)}.clll-button .clll-button__content{overflow:hidden}.clll-button.clll-button--left.clll-button--has-content .clll-button__content,.clll-button.clll-button--right.clll-button--has-content .clll-button__content{display:inline-flex;flex:1;min-width:0}.clll-button.clll-button--left.clll-button--has-content .clll-button__content{justify-content:flex-start}.clll-button.clll-button--right.clll-button--has-content .clll-button__content{justify-content:flex-end}.clll-button.clll-button--left{justify-content:flex-start}.clll-button.clll-button--center{justify-content:center}.clll-button.clll-button--right{justify-content:flex-end}.clll-button.clll-button--no-content{display:flex;align-items:center}.clll-button.clll-button--no-content>:not([hidden])~:not([hidden]){margin-left:var(--clll-unit-0)}.clll-button.clll-button--no-content.clll-button--rounded{border-radius:var(--clll-rounded-full)}.clll-button.clll-button--wrapped{padding:var(--clll-unit-0)}.clll-button.clll-button--wrapped.clll-button--no-content{padding:0}.clll-button.clll-button--pill{border:0;padding:var(--clll-unit-0);background-color:transparent;outline-offset:-.5px}.clll-button.clll-button--pill:focus{box-shadow:none}.clll-button.clll-button--pill.clll-button--rounded{border-radius:var(--clll-button-theme-radius, --clll-rounded-xs)}.clll-button.clll-button--pill .clll-button__content{line-height:0}.clll-button.clll-button--active{pointer-events:none;user-select:none}.clll-button.clll-button--elevated{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}.clll-button:disabled{cursor:not-allowed;pointer-events:all;opacity:.75;user-select:none}
1
+ .clll-button{position:relative;border:1px solid var(--clll-button-border-color, transparent);background-color:var(--clll-button-bg-color, transparent);cursor:pointer}.clll-button[href]{text-decoration:none}.clll-button{transition-property:background-color;transition-duration:.3s;transition-timing-function:ease}.clll-button .clll-button__content,.clll-button .clll-icon{color:var(--clll-button-text-color, inherit);font-weight:500;font-family:var(--clll-font-family);-webkit-font-smoothing:antialiased;margin:0;transition-property:color;transition-duration:.3s;transition-timing-function:ease}.clll-button:hover:not([disabled]){background-color:var(--clll-button-hover-bg, transparent);border-color:var(--clll-button-hover-border, transparent)}.clll-button[class*=--ghost]:hover:not([disabled]){--clll-icon-color: var( --clll-button-focus-border, var(--clll-button-text-color, inherit) )}.clll-button[class*=--ghost]:hover:not([disabled]) .clll-button__content,.clll-button[class*=--ghost]:hover:not([disabled]) .clll-text{color:var(--clll-button-focus-border, var(--clll-button-text-color, inherit))}.clll-button[class*=--ghost]:hover:not([disabled]) .clll-icon{color:var(--clll-button-focus-border, var(--clll-button-text-color, inherit))!important}.clll-button.clll-input__input-prefix[class*=--ghost]:hover:not([disabled]),.clll-button.clll-input__input-suffix[class*=--ghost]:hover:not([disabled]){--clll-icon-color: var( --clll-button-focus-border, var(--clll-button-text-color, inherit) );color:var(--clll-button-focus-border, var(--clll-button-text-color, inherit))}.clll-button.clll-input__input-prefix[class*=--ghost]:hover:not([disabled]) .clll-button__content,.clll-button.clll-input__input-prefix[class*=--ghost]:hover:not([disabled]) .clll-text,.clll-button.clll-input__input-suffix[class*=--ghost]:hover:not([disabled]) .clll-button__content,.clll-button.clll-input__input-suffix[class*=--ghost]:hover:not([disabled]) .clll-text{color:var(--clll-button-focus-border, var(--clll-button-text-color, inherit))}.clll-button.clll-input__input-prefix[class*=--ghost]:hover:not([disabled]) .clll-icon svg,.clll-button.clll-input__input-suffix[class*=--ghost]:hover:not([disabled]) .clll-icon svg{color:var(--clll-button-text-color)}.clll-button:focus-visible{outline:none;border-color:transparent!important;outline-color:var(--clll-button-focus-border, transparent);outline-style:solid;outline-width:2px;box-shadow:0 0 0 var(--clll-unit-0) var(--clll-button-focus-shadow, transparent)}.clll-button.clll-button--has-content{display:inline-flex;align-items:center}.clll-button.clll-button--no-content.clll-button--left,.clll-button.clll-button--no-content.clll-button--right{justify-content:center}.clll-button.clll-button--no-content .clll-button__content{display:none}.clll-button.clll-button--busy .clll-button__content,.clll-button.clll-button--busy .clll-icon{visibility:hidden}.clll-button.clll-button--tiny{font-size:var(--clll-unit-3);line-height:var(--clll-unit-5);padding:var(--clll-unit-0_5) var(--clll-unit-2)}.clll-button.clll-button--tiny.clll-button--has-content>:not([hidden])~:not([hidden]){margin-left:var(--clll-unit-0_5)}.clll-button.clll-button--tiny.clll-button--has-content>:not([hidden])~:not([hidden]).clll-spinner{margin-left:0;margin-right:0}.clll-button.clll-button--tiny.clll-button--rounded.clll-button--rounded-full,.clll-button.clll-button--tiny.clll-button--rounded.clll-button--rounded-full .clll-{border-radius:var(--clll-rounded-full)}.clll-button.clll-button--tiny.clll-button--rounded.clll-button--rounded-lg,.clll-button.clll-button--tiny.clll-button--rounded.clll-button--rounded-lg .clll-{border-radius:var(--clll-rounded-lg)}.clll-button.clll-button--tiny.clll-button--rounded.clll-button--rounded-md,.clll-button.clll-button--tiny.clll-button--rounded.clll-button--rounded-md .clll-{border-radius:var(--clll-rounded-md)}.clll-button.clll-button--tiny.clll-button--rounded.clll-button--rounded-sm,.clll-button.clll-button--tiny.clll-button--rounded.clll-button--rounded-sm .clll-{border-radius:var(--clll-rounded-sm)}.clll-button.clll-button--tiny.clll-button--rounded.clll-button--rounded-xs,.clll-button.clll-button--tiny.clll-button--rounded.clll-button--rounded-xs .clll-{border-radius:var(--clll-rounded-xs)}.clll-button.clll-button--tiny.clll-button--rounded.clll-button--rounded-xl,.clll-button.clll-button--tiny.clll-button--rounded.clll-button--rounded-xl .clll-{border-radius:var(--clll-rounded-xl)}.clll-button.clll-button--tiny.clll-button--rounded.clll-button--rounded-2xl,.clll-button.clll-button--tiny.clll-button--rounded.clll-button--rounded-2xl .clll-{border-radius:var(--clll-rounded-2xl)}.clll-button.clll-button--tiny.clll-button--rounded.clll-button--rounded-3xl,.clll-button.clll-button--tiny.clll-button--rounded.clll-button--rounded-3xl .clll-{border-radius:var(--clll-rounded-3xl)}.clll-button.clll-button--tiny.clll-button--rounded.clll-button--rounded-none,.clll-button.clll-button--tiny.clll-button--rounded.clll-button--rounded-none .clll-{border-radius:0}.clll-button.clll-button--tiny:not([class*=clll-button--rounded-]).clll-button--rounded{border-radius:var(--clll-button-theme-radius)}.clll-button.clll-button--tiny.clll-button--no-content{padding:var(--clll-unit-1_5)}.clll-button.clll-button--small{font-size:var(--clll-unit-3_5);line-height:var(--clll-unit-6);padding:var(--clll-unit-1) var(--clll-unit-2_5)}.clll-button.clll-button--small.clll-button--has-content>:not([hidden])~:not([hidden]){margin-left:var(--clll-unit-1)}.clll-button.clll-button--small.clll-button--has-content>:not([hidden])~:not([hidden]).clll-spinner{margin-left:0;margin-right:0}.clll-button.clll-button--small.clll-button--rounded.clll-button--rounded-full,.clll-button.clll-button--small.clll-button--rounded.clll-button--rounded-full .clll-{border-radius:var(--clll-rounded-full)}.clll-button.clll-button--small.clll-button--rounded.clll-button--rounded-lg,.clll-button.clll-button--small.clll-button--rounded.clll-button--rounded-lg .clll-{border-radius:var(--clll-rounded-lg)}.clll-button.clll-button--small.clll-button--rounded.clll-button--rounded-md,.clll-button.clll-button--small.clll-button--rounded.clll-button--rounded-md .clll-{border-radius:var(--clll-rounded-md)}.clll-button.clll-button--small.clll-button--rounded.clll-button--rounded-sm,.clll-button.clll-button--small.clll-button--rounded.clll-button--rounded-sm .clll-{border-radius:var(--clll-rounded-sm)}.clll-button.clll-button--small.clll-button--rounded.clll-button--rounded-xs,.clll-button.clll-button--small.clll-button--rounded.clll-button--rounded-xs .clll-{border-radius:var(--clll-rounded-xs)}.clll-button.clll-button--small.clll-button--rounded.clll-button--rounded-xl,.clll-button.clll-button--small.clll-button--rounded.clll-button--rounded-xl .clll-{border-radius:var(--clll-rounded-xl)}.clll-button.clll-button--small.clll-button--rounded.clll-button--rounded-2xl,.clll-button.clll-button--small.clll-button--rounded.clll-button--rounded-2xl .clll-{border-radius:var(--clll-rounded-2xl)}.clll-button.clll-button--small.clll-button--rounded.clll-button--rounded-3xl,.clll-button.clll-button--small.clll-button--rounded.clll-button--rounded-3xl .clll-{border-radius:var(--clll-rounded-3xl)}.clll-button.clll-button--small.clll-button--rounded.clll-button--rounded-none,.clll-button.clll-button--small.clll-button--rounded.clll-button--rounded-none .clll-{border-radius:0}.clll-button.clll-button--small:not([class*=clll-button--rounded-]).clll-button--rounded{border-radius:var(--clll-button-theme-radius)}.clll-button.clll-button--small.clll-button--no-content{padding:var(--clll-unit-2)}.clll-button.clll-button--medium{font-size:var(--clll-unit-4);line-height:var(--clll-unit-6_5);padding:var(--clll-unit-1_5) var(--clll-unit-3)}.clll-button.clll-button--medium.clll-button--has-content>:not([hidden])~:not([hidden]){margin-left:var(--clll-unit-1_5)}.clll-button.clll-button--medium.clll-button--has-content>:not([hidden])~:not([hidden]).clll-spinner{margin-left:0;margin-right:0}.clll-button.clll-button--medium.clll-button--rounded.clll-button--rounded-full,.clll-button.clll-button--medium.clll-button--rounded.clll-button--rounded-full .clll-{border-radius:var(--clll-rounded-full)}.clll-button.clll-button--medium.clll-button--rounded.clll-button--rounded-lg,.clll-button.clll-button--medium.clll-button--rounded.clll-button--rounded-lg .clll-{border-radius:var(--clll-rounded-lg)}.clll-button.clll-button--medium.clll-button--rounded.clll-button--rounded-md,.clll-button.clll-button--medium.clll-button--rounded.clll-button--rounded-md .clll-{border-radius:var(--clll-rounded-md)}.clll-button.clll-button--medium.clll-button--rounded.clll-button--rounded-sm,.clll-button.clll-button--medium.clll-button--rounded.clll-button--rounded-sm .clll-{border-radius:var(--clll-rounded-sm)}.clll-button.clll-button--medium.clll-button--rounded.clll-button--rounded-xs,.clll-button.clll-button--medium.clll-button--rounded.clll-button--rounded-xs .clll-{border-radius:var(--clll-rounded-xs)}.clll-button.clll-button--medium.clll-button--rounded.clll-button--rounded-xl,.clll-button.clll-button--medium.clll-button--rounded.clll-button--rounded-xl .clll-{border-radius:var(--clll-rounded-xl)}.clll-button.clll-button--medium.clll-button--rounded.clll-button--rounded-2xl,.clll-button.clll-button--medium.clll-button--rounded.clll-button--rounded-2xl .clll-{border-radius:var(--clll-rounded-2xl)}.clll-button.clll-button--medium.clll-button--rounded.clll-button--rounded-3xl,.clll-button.clll-button--medium.clll-button--rounded.clll-button--rounded-3xl .clll-{border-radius:var(--clll-rounded-3xl)}.clll-button.clll-button--medium.clll-button--rounded.clll-button--rounded-none,.clll-button.clll-button--medium.clll-button--rounded.clll-button--rounded-none .clll-{border-radius:0}.clll-button.clll-button--medium:not([class*=clll-button--rounded-]).clll-button--rounded{border-radius:var(--clll-button-theme-radius)}.clll-button.clll-button--medium.clll-button--no-content{padding:var(--clll-unit-2_5)}.clll-button.clll-button--large{font-size:var(--clll-unit-4_5);line-height:var(--clll-unit-7);padding:var(--clll-unit-2) var(--clll-unit-3_5)}.clll-button.clll-button--large.clll-button--has-content>:not([hidden])~:not([hidden]){margin-left:var(--clll-unit-2)}.clll-button.clll-button--large.clll-button--has-content>:not([hidden])~:not([hidden]).clll-spinner{margin-left:0;margin-right:0}.clll-button.clll-button--large.clll-button--rounded.clll-button--rounded-full,.clll-button.clll-button--large.clll-button--rounded.clll-button--rounded-full .clll-{border-radius:var(--clll-rounded-full)}.clll-button.clll-button--large.clll-button--rounded.clll-button--rounded-lg,.clll-button.clll-button--large.clll-button--rounded.clll-button--rounded-lg .clll-{border-radius:var(--clll-rounded-lg)}.clll-button.clll-button--large.clll-button--rounded.clll-button--rounded-md,.clll-button.clll-button--large.clll-button--rounded.clll-button--rounded-md .clll-{border-radius:var(--clll-rounded-md)}.clll-button.clll-button--large.clll-button--rounded.clll-button--rounded-sm,.clll-button.clll-button--large.clll-button--rounded.clll-button--rounded-sm .clll-{border-radius:var(--clll-rounded-sm)}.clll-button.clll-button--large.clll-button--rounded.clll-button--rounded-xs,.clll-button.clll-button--large.clll-button--rounded.clll-button--rounded-xs .clll-{border-radius:var(--clll-rounded-xs)}.clll-button.clll-button--large.clll-button--rounded.clll-button--rounded-xl,.clll-button.clll-button--large.clll-button--rounded.clll-button--rounded-xl .clll-{border-radius:var(--clll-rounded-xl)}.clll-button.clll-button--large.clll-button--rounded.clll-button--rounded-2xl,.clll-button.clll-button--large.clll-button--rounded.clll-button--rounded-2xl .clll-{border-radius:var(--clll-rounded-2xl)}.clll-button.clll-button--large.clll-button--rounded.clll-button--rounded-3xl,.clll-button.clll-button--large.clll-button--rounded.clll-button--rounded-3xl .clll-{border-radius:var(--clll-rounded-3xl)}.clll-button.clll-button--large.clll-button--rounded.clll-button--rounded-none,.clll-button.clll-button--large.clll-button--rounded.clll-button--rounded-none .clll-{border-radius:0}.clll-button.clll-button--large:not([class*=clll-button--rounded-]).clll-button--rounded{border-radius:var(--clll-button-theme-radius)}.clll-button.clll-button--large.clll-button--no-content{padding:var(--clll-unit-3)}.clll-button.clll-button--xlarge{font-size:var(--clll-unit-6);line-height:var(--clll-unit-8_5);padding:var(--clll-unit-3) var(--clll-unit-4_5)}.clll-button.clll-button--xlarge.clll-button--has-content>:not([hidden])~:not([hidden]){margin-left:var(--clll-unit-2_5)}.clll-button.clll-button--xlarge.clll-button--has-content>:not([hidden])~:not([hidden]).clll-spinner{margin-left:0;margin-right:0}.clll-button.clll-button--xlarge.clll-button--rounded.clll-button--rounded-full,.clll-button.clll-button--xlarge.clll-button--rounded.clll-button--rounded-full .clll-{border-radius:var(--clll-rounded-full)}.clll-button.clll-button--xlarge.clll-button--rounded.clll-button--rounded-lg,.clll-button.clll-button--xlarge.clll-button--rounded.clll-button--rounded-lg .clll-{border-radius:var(--clll-rounded-lg)}.clll-button.clll-button--xlarge.clll-button--rounded.clll-button--rounded-md,.clll-button.clll-button--xlarge.clll-button--rounded.clll-button--rounded-md .clll-{border-radius:var(--clll-rounded-md)}.clll-button.clll-button--xlarge.clll-button--rounded.clll-button--rounded-sm,.clll-button.clll-button--xlarge.clll-button--rounded.clll-button--rounded-sm .clll-{border-radius:var(--clll-rounded-sm)}.clll-button.clll-button--xlarge.clll-button--rounded.clll-button--rounded-xs,.clll-button.clll-button--xlarge.clll-button--rounded.clll-button--rounded-xs .clll-{border-radius:var(--clll-rounded-xs)}.clll-button.clll-button--xlarge.clll-button--rounded.clll-button--rounded-xl,.clll-button.clll-button--xlarge.clll-button--rounded.clll-button--rounded-xl .clll-{border-radius:var(--clll-rounded-xl)}.clll-button.clll-button--xlarge.clll-button--rounded.clll-button--rounded-2xl,.clll-button.clll-button--xlarge.clll-button--rounded.clll-button--rounded-2xl .clll-{border-radius:var(--clll-rounded-2xl)}.clll-button.clll-button--xlarge.clll-button--rounded.clll-button--rounded-3xl,.clll-button.clll-button--xlarge.clll-button--rounded.clll-button--rounded-3xl .clll-{border-radius:var(--clll-rounded-3xl)}.clll-button.clll-button--xlarge.clll-button--rounded.clll-button--rounded-none,.clll-button.clll-button--xlarge.clll-button--rounded.clll-button--rounded-none .clll-{border-radius:0}.clll-button.clll-button--xlarge:not([class*=clll-button--rounded-]).clll-button--rounded{border-radius:var(--clll-button-theme-radius)}.clll-button.clll-button--xlarge.clll-button--no-content{padding:var(--clll-unit-4)}.clll-button.clll-button--xxlarge{font-size:var(--clll-unit-7);line-height:var(--clll-unit-9_5);padding:var(--clll-unit-3_5) var(--clll-unit-5)}.clll-button.clll-button--xxlarge.clll-button--has-content>:not([hidden])~:not([hidden]){margin-left:var(--clll-unit-3)}.clll-button.clll-button--xxlarge.clll-button--has-content>:not([hidden])~:not([hidden]).clll-spinner{margin-left:0;margin-right:0}.clll-button.clll-button--xxlarge.clll-button--rounded.clll-button--rounded-full,.clll-button.clll-button--xxlarge.clll-button--rounded.clll-button--rounded-full .clll-{border-radius:var(--clll-rounded-full)}.clll-button.clll-button--xxlarge.clll-button--rounded.clll-button--rounded-lg,.clll-button.clll-button--xxlarge.clll-button--rounded.clll-button--rounded-lg .clll-{border-radius:var(--clll-rounded-lg)}.clll-button.clll-button--xxlarge.clll-button--rounded.clll-button--rounded-md,.clll-button.clll-button--xxlarge.clll-button--rounded.clll-button--rounded-md .clll-{border-radius:var(--clll-rounded-md)}.clll-button.clll-button--xxlarge.clll-button--rounded.clll-button--rounded-sm,.clll-button.clll-button--xxlarge.clll-button--rounded.clll-button--rounded-sm .clll-{border-radius:var(--clll-rounded-sm)}.clll-button.clll-button--xxlarge.clll-button--rounded.clll-button--rounded-xs,.clll-button.clll-button--xxlarge.clll-button--rounded.clll-button--rounded-xs .clll-{border-radius:var(--clll-rounded-xs)}.clll-button.clll-button--xxlarge.clll-button--rounded.clll-button--rounded-xl,.clll-button.clll-button--xxlarge.clll-button--rounded.clll-button--rounded-xl .clll-{border-radius:var(--clll-rounded-xl)}.clll-button.clll-button--xxlarge.clll-button--rounded.clll-button--rounded-2xl,.clll-button.clll-button--xxlarge.clll-button--rounded.clll-button--rounded-2xl .clll-{border-radius:var(--clll-rounded-2xl)}.clll-button.clll-button--xxlarge.clll-button--rounded.clll-button--rounded-3xl,.clll-button.clll-button--xxlarge.clll-button--rounded.clll-button--rounded-3xl .clll-{border-radius:var(--clll-rounded-3xl)}.clll-button.clll-button--xxlarge.clll-button--rounded.clll-button--rounded-none,.clll-button.clll-button--xxlarge.clll-button--rounded.clll-button--rounded-none .clll-{border-radius:0}.clll-button.clll-button--xxlarge:not([class*=clll-button--rounded-]).clll-button--rounded{border-radius:var(--clll-button-theme-radius)}.clll-button.clll-button--xxlarge.clll-button--no-content{padding:var(--clll-unit-4_5)}.clll-button.clll-button--xxxlarge{font-size:var(--clll-unit-8);line-height:var(--clll-unit-10_5);padding:var(--clll-unit-4) var(--clll-unit-5_5)}.clll-button.clll-button--xxxlarge.clll-button--has-content>:not([hidden])~:not([hidden]){margin-left:var(--clll-unit-3_5)}.clll-button.clll-button--xxxlarge.clll-button--has-content>:not([hidden])~:not([hidden]).clll-spinner{margin-left:0;margin-right:0}.clll-button.clll-button--xxxlarge.clll-button--rounded.clll-button--rounded-full,.clll-button.clll-button--xxxlarge.clll-button--rounded.clll-button--rounded-full .clll-{border-radius:var(--clll-rounded-full)}.clll-button.clll-button--xxxlarge.clll-button--rounded.clll-button--rounded-lg,.clll-button.clll-button--xxxlarge.clll-button--rounded.clll-button--rounded-lg .clll-{border-radius:var(--clll-rounded-lg)}.clll-button.clll-button--xxxlarge.clll-button--rounded.clll-button--rounded-md,.clll-button.clll-button--xxxlarge.clll-button--rounded.clll-button--rounded-md .clll-{border-radius:var(--clll-rounded-md)}.clll-button.clll-button--xxxlarge.clll-button--rounded.clll-button--rounded-sm,.clll-button.clll-button--xxxlarge.clll-button--rounded.clll-button--rounded-sm .clll-{border-radius:var(--clll-rounded-sm)}.clll-button.clll-button--xxxlarge.clll-button--rounded.clll-button--rounded-xs,.clll-button.clll-button--xxxlarge.clll-button--rounded.clll-button--rounded-xs .clll-{border-radius:var(--clll-rounded-xs)}.clll-button.clll-button--xxxlarge.clll-button--rounded.clll-button--rounded-xl,.clll-button.clll-button--xxxlarge.clll-button--rounded.clll-button--rounded-xl .clll-{border-radius:var(--clll-rounded-xl)}.clll-button.clll-button--xxxlarge.clll-button--rounded.clll-button--rounded-2xl,.clll-button.clll-button--xxxlarge.clll-button--rounded.clll-button--rounded-2xl .clll-{border-radius:var(--clll-rounded-2xl)}.clll-button.clll-button--xxxlarge.clll-button--rounded.clll-button--rounded-3xl,.clll-button.clll-button--xxxlarge.clll-button--rounded.clll-button--rounded-3xl .clll-{border-radius:var(--clll-rounded-3xl)}.clll-button.clll-button--xxxlarge.clll-button--rounded.clll-button--rounded-none,.clll-button.clll-button--xxxlarge.clll-button--rounded.clll-button--rounded-none .clll-{border-radius:0}.clll-button.clll-button--xxxlarge:not([class*=clll-button--rounded-]).clll-button--rounded{border-radius:var(--clll-button-theme-radius)}.clll-button.clll-button--xxxlarge.clll-button--no-content{padding:var(--clll-unit-5)}.clll-button.clll-button--xxxxlarge{font-size:var(--clll-unit-10);line-height:var(--clll-unit-12_5);padding:var(--clll-unit-4_5) var(--clll-unit-6)}.clll-button.clll-button--xxxxlarge.clll-button--has-content>:not([hidden])~:not([hidden]){margin-left:var(--clll-unit-4)}.clll-button.clll-button--xxxxlarge.clll-button--has-content>:not([hidden])~:not([hidden]).clll-spinner{margin-left:0;margin-right:0}.clll-button.clll-button--xxxxlarge.clll-button--rounded.clll-button--rounded-full,.clll-button.clll-button--xxxxlarge.clll-button--rounded.clll-button--rounded-full .clll-{border-radius:var(--clll-rounded-full)}.clll-button.clll-button--xxxxlarge.clll-button--rounded.clll-button--rounded-lg,.clll-button.clll-button--xxxxlarge.clll-button--rounded.clll-button--rounded-lg .clll-{border-radius:var(--clll-rounded-lg)}.clll-button.clll-button--xxxxlarge.clll-button--rounded.clll-button--rounded-md,.clll-button.clll-button--xxxxlarge.clll-button--rounded.clll-button--rounded-md .clll-{border-radius:var(--clll-rounded-md)}.clll-button.clll-button--xxxxlarge.clll-button--rounded.clll-button--rounded-sm,.clll-button.clll-button--xxxxlarge.clll-button--rounded.clll-button--rounded-sm .clll-{border-radius:var(--clll-rounded-sm)}.clll-button.clll-button--xxxxlarge.clll-button--rounded.clll-button--rounded-xs,.clll-button.clll-button--xxxxlarge.clll-button--rounded.clll-button--rounded-xs .clll-{border-radius:var(--clll-rounded-xs)}.clll-button.clll-button--xxxxlarge.clll-button--rounded.clll-button--rounded-xl,.clll-button.clll-button--xxxxlarge.clll-button--rounded.clll-button--rounded-xl .clll-{border-radius:var(--clll-rounded-xl)}.clll-button.clll-button--xxxxlarge.clll-button--rounded.clll-button--rounded-2xl,.clll-button.clll-button--xxxxlarge.clll-button--rounded.clll-button--rounded-2xl .clll-{border-radius:var(--clll-rounded-2xl)}.clll-button.clll-button--xxxxlarge.clll-button--rounded.clll-button--rounded-3xl,.clll-button.clll-button--xxxxlarge.clll-button--rounded.clll-button--rounded-3xl .clll-{border-radius:var(--clll-rounded-3xl)}.clll-button.clll-button--xxxxlarge.clll-button--rounded.clll-button--rounded-none,.clll-button.clll-button--xxxxlarge.clll-button--rounded.clll-button--rounded-none .clll-{border-radius:0}.clll-button.clll-button--xxxxlarge:not([class*=clll-button--rounded-]).clll-button--rounded{border-radius:var(--clll-button-theme-radius)}.clll-button.clll-button--xxxxlarge.clll-button--no-content{padding:var(--clll-unit-5_5)}.clll-button .clll-button__content{overflow:hidden}.clll-button.clll-button--left.clll-button--has-content .clll-button__content,.clll-button.clll-button--right.clll-button--has-content .clll-button__content{display:inline-flex;flex:1;min-width:0}.clll-button.clll-button--left.clll-button--has-content .clll-button__content{justify-content:flex-start}.clll-button.clll-button--right.clll-button--has-content .clll-button__content{justify-content:flex-end}.clll-button.clll-button--left{justify-content:flex-start}.clll-button.clll-button--center{justify-content:center}.clll-button.clll-button--right{justify-content:flex-end}.clll-button.clll-button--no-content{display:flex;align-items:center}.clll-button.clll-button--no-content>:not([hidden])~:not([hidden]){margin-left:var(--clll-unit-0)}.clll-button.clll-button--wrapped{padding:var(--clll-unit-0)}.clll-button.clll-button--wrapped.clll-button--no-content{padding:0}.clll-button.clll-button--pill{border:0;padding:var(--clll-unit-0);background-color:transparent;outline-offset:-.5px}.clll-button.clll-button--pill:focus{box-shadow:none}.clll-button.clll-button--pill .clll-button__content{line-height:0}.clll-button.clll-button--active{pointer-events:none;user-select:none}.clll-button.clll-button--elevated{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}.clll-button:disabled{cursor:not-allowed;pointer-events:all;opacity:.75;user-select:none}
@@ -1,3 +1,3 @@
1
1
  import '../../../assets/core.css';
2
2
  import './CLButton.css';
3
- import{_ as t}from"../../../chunks/CLButton.vue_vue_type_style_index_0_lang-hSiZPrZr.js";export{t as CLButton,t as default};
3
+ import{_ as t}from"../../../chunks/CLButton.vue_vue_type_style_index_0_lang-pE0JrYmS.js";export{t as CLButton,t as default};
@@ -58,18 +58,18 @@ export interface CLButtonProps {
58
58
  wrap?: boolean;
59
59
  }
60
60
  declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<CLButtonProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<CLButtonProps> & Readonly<{}>, {
61
+ width: string;
62
+ height: string;
63
+ form: string;
64
+ title: string;
61
65
  size: CLSizes;
62
66
  color: CLColors;
63
67
  variant: CLColorVariants;
64
68
  rounded: boolean;
65
69
  testId: string;
66
70
  type: CLButtonTypes;
67
- form: string;
68
- title: string;
69
71
  onClick: (event?: Event) => void;
70
72
  target: CLLinkTarget;
71
- width: string;
72
- height: string;
73
73
  borderRadius: CLBorderRadius;
74
74
  iconFilled: boolean;
75
75
  iconSize: CLIconSizes;
@@ -1,3 +1,3 @@
1
1
  import '../../assets/core.css';
2
2
  import './CLIcon.css';
3
- import{_ as e}from"../../chunks/CLIcon.vue_vue_type_style_index_0_lang-BN_rKLKK.js";export{e as CLIcon,e as default};
3
+ import{_ as e}from"../../chunks/CLIcon.vue_vue_type_style_index_0_lang-BmRKmzSl.js";export{e as CLIcon,e as default};
@@ -1,3 +1,3 @@
1
1
  import '../../assets/core.css';
2
2
  import './CLTable.css';
3
- import{defineComponent as e,computed as l,createElementBlock as t,openBlock as a,normalizeStyle as o,normalizeClass as s,unref as d,createElementVNode as r,createCommentVNode as n,renderSlot as c,Fragment as i,renderList as u,createVNode as b,withCtx as p}from"vue";import{b as _,g as $,c as y,d as f,q as m,a as C}from"../../chunks/index-DwjW-Z-U.js";import{useTheme as h}from"../../composables/useTheme.js";import{_ as k}from"../../chunks/CLText.vue_vue_type_style_index_0_lang-BZQzsJMF.js";const v=e=>{const{colors:l,darkMode:t}=e??h(),a=t.value?_.Dark:_.Light,o=$({color:f.Neutral,colors:l.value,mode:a,variant:y.Outline});return{"--clll-table-border-color":o?.border??"transparent","--clll-table-hover-bg":o?.hover??"transparent","--clll-table-theme-radius":"var(--clll-default-radius)"}},L=["data-testid"],T=["id"],B={key:0},w=/* @__PURE__ */e({name:"CLTable",__name:"CLTable",props:{bordered:{type:Boolean},borderRadius:{},colWidths:{},id:{default:"main"},rounded:{type:Boolean,default:!1},rowHeight:{default:"auto"},striped:{type:Boolean},testId:{default:"clll-table"},type:{default:m.Default},withVerticalLines:{type:Boolean}},setup(e){const b=e,p=h(),_="clll-table",$=l(()=>[`${_}-container`,b.bordered?`${_}--bordered`:void 0,b.borderRadius&&b.bordered?`${_}--${b.borderRadius}`:"",b.rounded?`${_}--rounded`:`${_}--box`]),y=l(()=>[_,`${_}--${b.type}`,b.striped?`${_}--striped`:void 0,b.withVerticalLines?`${_}--vertical-lines`:void 0,b.bordered?`${_}--bordered`:void 0]);return(l,b)=>(a(),t("div",{class:s(d($)),"data-testid":e.testId,style:o(d(v)(d(p)))},[r("table",{id:`${_}-${e.id}`,class:s(d(y)),style:o({"--clll-table-row-height":e.rowHeight})},[e.colWidths?.length?(a(),t("colgroup",B,[(a(!0),t(i,null,u(e.colWidths,(l,s)=>(a(),t("col",{key:`table-${e.id}-col-${s}`,style:o({width:l})},null,4))),128))])):n("",!0),c(l.$slots,"default")],14,T)],14,L))}}),g=/* @__PURE__ */e({name:"CLTableBody",__name:"CLTableBody",setup:e=>(e,l)=>(a(),t("tbody",{class:s(["clll-table__body"])},[c(e.$slots,"default")],2))}),H=["colspan"],A=["colspan"],N=/* @__PURE__ */e({name:"CLTableCell",__name:"CLTableCell",props:{colSpan:{default:1},isAction:{type:Boolean,default:!1},isActive:{type:Boolean,default:!1},isHeader:{type:Boolean,default:!1},isNumber:{type:Boolean,default:!1},onClick:{}},setup(e){const o=e,r="clll-table__cell",n=l(()=>[r,o.isHeader?`${r}--header`:`${r}--default`,o.isNumber?`${r}--number`:"",o.isAction?`${r}--hasactions`:"",o.isActive?`${r}--active`:"",o.onClick?`${r}--clickable`:""]),i=()=>o?.onClick?.();return(l,o)=>e.isHeader?(a(),t("th",{key:0,class:s(d(n)),colspan:e.colSpan,onClick:i},[e.isAction?(a(),t("div",{key:1,class:s(`${r}__actions`)},[c(l.$slots,"default")],2)):c(l.$slots,"default",{key:0})],10,H)):(a(),t("td",{key:1,class:s(d(n)),colspan:e.colSpan,onClick:i},[e.isAction?(a(),t("div",{key:1,class:s(`${r}__actions`)},[c(l.$slots,"default")],2)):c(l.$slots,"default",{key:0})],10,A))}}),R=/* @__PURE__ */e({name:"CLTableFooter",__name:"CLTableFooter",setup:e=>(e,l)=>(a(),t("tfoot",{class:s(["clll-table__footer"])},[c(e.$slots,"default")],2))}),x=/* @__PURE__ */e({name:"CLTableHeader",__name:"CLTableHeader",setup:e=>(e,l)=>(a(),t("thead",{class:s(["clll-table__header"])},[c(e.$slots,"default")],2))}),F=/* @__PURE__ */e({name:"CLTableNestedCell",__name:"CLTableNestedCell",props:{truncate:{type:Boolean}},setup:e=>(l,o)=>(a(),t("div",{class:s("clll-table__nested-cell")},[b(d(k),{type:d(C).Small,truncate:e.truncate},{default:p(()=>[c(l.$slots,"default")]),_:3},8,["type","truncate"])]))}),S=/* @__PURE__ */e({name:"CLTableRow",__name:"CLTableRow",props:{onClick:{type:Function}},setup(e){const o=e,r="clll-table__row",n=l(()=>[r,o.onClick?`${r}--clickable`:""]),i=()=>o?.onClick?.();return(e,l)=>(a(),t("tr",{class:s(d(n)),onClick:i},[c(e.$slots,"default")],2))}}),j=w;j.Body=g,j.Cell=N,j.Footer=R,j.Header=x,j.NestedCell=F,j.Row=S;export{j as CLTable,j as default};
3
+ import{defineComponent as e,computed as l,createElementBlock as t,openBlock as a,normalizeStyle as o,normalizeClass as s,unref as d,createElementVNode as r,createCommentVNode as n,renderSlot as c,Fragment as i,renderList as u,createVNode as b,withCtx as p}from"vue";import{C as _,g as $,a as y,b as f,q as m,d as C}from"../../chunks/index-DsloP0ml.js";import{useTheme as h}from"../../composables/useTheme.js";import{_ as k}from"../../chunks/CLText.vue_vue_type_style_index_0_lang-CdA4TW0N.js";const v=e=>{const{colors:l,darkMode:t}=e??h(),a=t.value?_.Dark:_.Light,o=$({color:f.Neutral,colors:l.value,mode:a,variant:y.Outline});return{"--clll-table-border-color":o?.border??"transparent","--clll-table-hover-bg":o?.hover??"transparent","--clll-table-theme-radius":"var(--clll-default-radius)"}},L=["data-testid"],T=["id"],B={key:0},w=/* @__PURE__ */e({name:"CLTable",__name:"CLTable",props:{bordered:{type:Boolean},borderRadius:{},colWidths:{},id:{default:"main"},rounded:{type:Boolean,default:!1},rowHeight:{default:"auto"},striped:{type:Boolean},testId:{default:"clll-table"},type:{default:m.Default},withVerticalLines:{type:Boolean}},setup(e){const b=e,p=h(),_="clll-table",$=l(()=>[`${_}-container`,b.bordered?`${_}--bordered`:void 0,b.borderRadius&&b.bordered?`${_}--${b.borderRadius}`:"",b.rounded?`${_}--rounded`:`${_}--box`]),y=l(()=>[_,`${_}--${b.type}`,b.striped?`${_}--striped`:void 0,b.withVerticalLines?`${_}--vertical-lines`:void 0,b.bordered?`${_}--bordered`:void 0]);return(l,b)=>(a(),t("div",{class:s(d($)),"data-testid":e.testId,style:o(d(v)(d(p)))},[r("table",{id:`${_}-${e.id}`,class:s(d(y)),style:o({"--clll-table-row-height":e.rowHeight})},[e.colWidths?.length?(a(),t("colgroup",B,[(a(!0),t(i,null,u(e.colWidths,(l,s)=>(a(),t("col",{key:`table-${e.id}-col-${s}`,style:o({width:l})},null,4))),128))])):n("",!0),c(l.$slots,"default")],14,T)],14,L))}}),g=/* @__PURE__ */e({name:"CLTableBody",__name:"CLTableBody",setup:e=>(e,l)=>(a(),t("tbody",{class:s(["clll-table__body"])},[c(e.$slots,"default")],2))}),H=["colspan"],A=["colspan"],N=/* @__PURE__ */e({name:"CLTableCell",__name:"CLTableCell",props:{colSpan:{default:1},isAction:{type:Boolean,default:!1},isActive:{type:Boolean,default:!1},isHeader:{type:Boolean,default:!1},isNumber:{type:Boolean,default:!1},onClick:{}},setup(e){const o=e,r="clll-table__cell",n=l(()=>[r,o.isHeader?`${r}--header`:`${r}--default`,o.isNumber?`${r}--number`:"",o.isAction?`${r}--hasactions`:"",o.isActive?`${r}--active`:"",o.onClick?`${r}--clickable`:""]),i=()=>o?.onClick?.();return(l,o)=>e.isHeader?(a(),t("th",{key:0,class:s(d(n)),colspan:e.colSpan,onClick:i},[e.isAction?(a(),t("div",{key:1,class:s(`${r}__actions`)},[c(l.$slots,"default")],2)):c(l.$slots,"default",{key:0})],10,H)):(a(),t("td",{key:1,class:s(d(n)),colspan:e.colSpan,onClick:i},[e.isAction?(a(),t("div",{key:1,class:s(`${r}__actions`)},[c(l.$slots,"default")],2)):c(l.$slots,"default",{key:0})],10,A))}}),R=/* @__PURE__ */e({name:"CLTableFooter",__name:"CLTableFooter",setup:e=>(e,l)=>(a(),t("tfoot",{class:s(["clll-table__footer"])},[c(e.$slots,"default")],2))}),x=/* @__PURE__ */e({name:"CLTableHeader",__name:"CLTableHeader",setup:e=>(e,l)=>(a(),t("thead",{class:s(["clll-table__header"])},[c(e.$slots,"default")],2))}),F=/* @__PURE__ */e({name:"CLTableNestedCell",__name:"CLTableNestedCell",props:{truncate:{type:Boolean}},setup:e=>(l,o)=>(a(),t("div",{class:s("clll-table__nested-cell")},[b(d(k),{type:d(C).Small,truncate:e.truncate},{default:p(()=>[c(l.$slots,"default")]),_:3},8,["type","truncate"])]))}),S=/* @__PURE__ */e({name:"CLTableRow",__name:"CLTableRow",props:{onClick:{type:Function}},setup(e){const o=e,r="clll-table__row",n=l(()=>[r,o.onClick?`${r}--clickable`:""]),i=()=>o?.onClick?.();return(e,l)=>(a(),t("tr",{class:s(d(n)),onClick:i},[c(e.$slots,"default")],2))}}),j=w;j.Body=g,j.Cell=N,j.Footer=R,j.Header=x,j.NestedCell=F,j.Row=S;export{j as CLTable,j as default};
@@ -1,3 +1,3 @@
1
1
  import '../../../assets/core.css';
2
2
  import './CLCard.css';
3
- import{_ as a}from"../../../chunks/CLCard.vue_vue_type_style_index_0_lang-D3JriMVx.js";export{a as CLCard,a as default};
3
+ import{_ as a}from"../../../chunks/CLCard.vue_vue_type_style_index_0_lang-CY-Qr_CV.js";export{a as CLCard,a as default};
@@ -66,14 +66,14 @@ export interface CLCardProps {
66
66
  width?: string;
67
67
  }
68
68
  declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<CLCardProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<CLCardProps> & Readonly<{}>, {
69
+ width: string;
70
+ height: string;
69
71
  color: CLColors;
70
72
  variant: CLColorVariants;
71
73
  rounded: boolean;
72
74
  testId: string;
73
75
  type: CLCardTypes;
74
76
  target: CLLinkTarget;
75
- width: string;
76
- height: string;
77
77
  align: CLAlign;
78
78
  active: boolean;
79
79
  busy: boolean;
@@ -1,3 +1,3 @@
1
1
  import '../../../assets/core.css';
2
2
  import './CLCarousel.css';
3
- import{defineComponent as e,computed as a,createElementBlock as l,openBlock as o,Fragment as i,createCommentVNode as t,unref as n,normalizeClass as s,renderList as r,createBlock as c,createElementVNode as v,createVNode as d,withCtx as u,createTextVNode as p,toDisplayString as f,useCssVars as g,ref as h,onMounted as b,nextTick as m,onUnmounted as _,watch as w,renderSlot as y}from"vue";import{_ as x}from"../../../chunks/CLButton.vue_vue_type_style_index_0_lang-hSiZPrZr.js";import{_ as T}from"../../../chunks/CLText.vue_vue_type_style_index_0_lang-BZQzsJMF.js";import{c as $,C as k,e as L,f as z,a as P,i as C,d as S}from"../../../chunks/index-DwjW-Z-U.js";import{g as B,e as E}from"../../../chunks/index-C9S3C1LU.js";import{i as M,d as I,e as N}from"../../../chunks/helper-BlxFN3eF.js";import{useHasSlotContent as A}from"../../../composables/useHasSlotContent.js";const j=/* @__PURE__ */e({name:"CLCarouselNavigation",__name:"CLCarouselNavigation",props:{color:{},currentPage:{},enabled:{type:Boolean},gotoPage:{},moreAriaLabel:{default:"Navigate to page to see more results"},moreLabel:{},nextPageEnabled:{type:Boolean},paginationType:{},prefix:{},prevPageEnabled:{type:Boolean},showMore:{},showNextItems:{},showPrevItems:{},totalPages:{},variant:{}},setup(e){const g=e,h=a(()=>[`${g.prefix}__dots-container`]),b=a(()=>[`${g.prefix}__arrows-container`]),m=a(()=>[`${g.prefix}__numbered-container`]),_=a(()=>[`${g.prefix}__inline-container`]),w=a(()=>[`${g.prefix}__prev-page`]),y=a(()=>[`${g.prefix}__next-page`]),S=a(()=>[`${g.prefix}__page-indicator`]),E=a(()=>[`${g.prefix}__show-more`]),M=e=>g.currentPage===e,I=a(()=>!g.enabled||!g.prevPageEnabled),N=a(()=>!g.enabled||!g.nextPageEnabled);return(a,g)=>(o(),l(i,null,[e.paginationType===n(B).Dots?(o(),l("div",{key:0,class:s(n(h))},[(o(!0),l(i,null,r(e.totalPages,a=>(o(),c(n(x),{key:`dot-${a}`,"aria-label":`Show page ${a}`,color:e.color,disabled:M(a),height:"0.75rem","on-click":()=>e.gotoPage(a),width:"0.75rem",variant:M(a)?n($).Outline:e.variant,wrap:""},null,8,["aria-label","color","disabled","on-click","variant"]))),128))],2)):t("",!0),e.paginationType===n(B).Numbered?(o(),l("div",{key:1,class:s(n(m))},[v("div",{class:s(n(w))},[d(n(x),{"aria-label":"Show previous page of slides",color:e.color,disabled:n(I),"icon-before":n(z).ChevronLeft,"icon-size":n(L).Tiny,size:n(k).Tiny,"on-click":e.showPrevItems,variant:n(I)?n($).Text:e.variant},null,8,["color","disabled","icon-before","icon-size","size","on-click","variant"])],2),v("div",{class:s(n(S))},[d(n(T),{type:n(P).Small},{default:u(()=>[p(f(e.currentPage)+" / "+f(e.totalPages),1)]),_:1},8,["type"])],2),v("div",{class:s(n(y))},[d(n(x),{"aria-label":"Show next page of slides",color:e.color,disabled:n(N),"icon-before":n(z).ChevronRight,"icon-size":n(L).Tiny,size:n(k).Tiny,"on-click":e.showNextItems,variant:n(N)?n($).Text:e.variant},null,8,["color","disabled","icon-before","icon-size","size","on-click","variant"])],2),e.showMore?(o(),l("div",{key:0,class:s(n(E))},[d(n(x),{"aria-label":e.moreAriaLabel,color:e.color,size:n(k).Small,"on-click":e.showMore,variant:e.variant},{default:u(()=>[p(f(e.moreLabel),1)]),_:1},8,["aria-label","color","size","on-click","variant"])],2)):t("",!0)],2)):t("",!0),e.paginationType===n(B).Arrows?(o(),l("div",{key:2,class:s(n(b))},[v("div",{class:s(n(w))},[d(n(x),{"aria-label":"Show previous page of slides",color:e.color,disabled:n(I),"icon-before":n(z).ChevronLeft,"icon-size":n(L).Tiny,size:n(k).Tiny,"on-click":e.showPrevItems,variant:n(I)?n($).Text:e.variant},null,8,["color","disabled","icon-before","icon-size","size","on-click","variant"])],2),v("div",{class:s(n(y))},[d(n(x),{"aria-label":"Show next page of slides",color:e.color,disabled:n(N),"icon-before":n(z).ChevronRight,"icon-size":n(L).Tiny,size:n(k).Tiny,"on-click":e.showNextItems,variant:n(N)?n($).Text:e.variant},null,8,["color","disabled","icon-before","icon-size","size","on-click","variant"])],2)],2)):t("",!0),e.paginationType===n(B).Inline?(o(),l("div",{key:3,class:s(n(_))},[v("div",{class:s(n(w))},[d(n(x),{"aria-label":"Show previous page of slides","align-content":n(C).Center,color:e.color,disabled:n(I),"icon-before":n(z).ChevronLeft,"icon-size":n(L).Small,size:n(k).Tiny,"on-click":e.showPrevItems,variant:n(I)?n($).Text:e.variant,width:"30px",height:"30px",wrap:""},null,8,["align-content","color","disabled","icon-before","icon-size","size","on-click","variant"])],2),v("div",{class:s(n(y))},[d(n(x),{"aria-label":"Show next page of slides","align-content":n(C).Center,color:e.color,disabled:n(N),"icon-before":n(z).ChevronRight,"icon-size":n(L).Small,size:n(k).Tiny,"on-click":e.showNextItems,variant:n(N)?n($).Text:e.variant,width:"30px",height:"30px",wrap:""},null,8,["align-content","color","disabled","icon-before","icon-size","size","on-click","variant"])],2)],2)):t("",!0)],64))}}),W=["data-testid"],H=["hidden"],O=/* @__PURE__ */e({name:"CLCarousel",__name:"CLCarousel",props:{color:{default:S.Neutral},controlAlign:{default:C.Right},controlPosition:{default:E.Before},enabled:{type:Boolean,default:!0},infinite:{type:Boolean,default:!1},moreLabel:{default:"More"},onShowMore:{},paginationType:{default:B.Numbered},perPage:{default:3},perPageByBreakpoints:{},testId:{default:"clll-carousel"},title:{},variant:{default:$.Soft},width:{default:"100%"}},setup(e){g(e=>({fd2b86ea:e.width,v75596a20:n(Q)}));const r="clll-carousel",c=e,x=h(),$=h(!1),k=h(1),L=h(c.perPage),z=h(0),P=A("title"),S=h(!1),O=h(!1),R=h(!1),q=h(0),D=h(!1),F=h(),G=h(!1),J=h(),K=h(),Q=h("100%"),U=h(0),V=h(0),X=()=>{if(c.perPageByBreakpoints?.length){L.value=c.perPage;for(const[e,a]of c.perPageByBreakpoints){window.matchMedia(`(min-width: ${e}px)`).matches&&(L.value=a)}}},Y=()=>{const e=J?.value;if(e&&V.value){const e=Math.ceil(V.value/L.value);U.value=e,c.infinite?(O.value=!0,R.value=!0):e>1&&(O.value=!0)}},Z=e=>{x.value&&m(()=>{const a=I(x.value)&&!P.value;a||!e.title&&e.controlPosition!==E.Before?$.value=a:$.value=!1})},ee=e=>{const a=J?.value,l=a.offsetWidth;if(a&&l)if(c.infinite&&c.enabled&&q.value>0){const o=l/L.value*(z.value/2)+l*(e-1);a.scrollTo({left:o,behavior:"smooth"})}else{const o=l*(e-1);a.scrollTo({left:o,behavior:"smooth"})}},ae=()=>{D.value=!0;const e=L.value;X(),ie(),Y();const a=J?.value,l=a.offsetWidth;if(a)if(c.infinite&&c.enabled&&q.value>0){const o=l/L.value,i=l/e,t=z.value/2,n=i*t,s=a.scrollLeft-n;if(e!==L.value){const e=a.querySelectorAll(`div[class="${r}__slides"] > *`),l=Array.from(e),o=l.slice(t,l.length-t);a.innerHTML="",o.forEach(e=>a.appendChild(e));const i=Math.min(L.value,o.length);if(i>0&&o.length>0){o.slice(-i).forEach(e=>{const l=e.cloneNode(!0);a.insertBefore(l,o[0])});o.slice(0,i).forEach(e=>{const l=e.cloneNode(!0);a.appendChild(l)}),z.value=2*i}}const c=o*(z.value/2)+s;m(()=>{a.scrollLeft=c})}else{k.value=1;const e=l*(k.value-1);a.scrollLeft=e}M&&D.value&&(window.clearTimeout(F.value),F.value=window.setTimeout(()=>{D.value&&(D.value=!1),window.clearTimeout(F.value)},300))},le=()=>{D.value||(G.value=!0,M&&G.value&&(window.clearTimeout(K.value),K.value=window.setTimeout(()=>{G.value&&oe(),window.clearTimeout(K.value)},200)))},oe=()=>{D.value||(G.value=!1,S.value||m(()=>{let e,a;const l=J?.value;if(l){const o=l?.querySelectorAll(`div[class="${r}__slides"] > *`)??[];if(c.infinite&&c.enabled&&q.value>0){const e=l.offsetWidth,a=e/L.value,o=l.scrollLeft,i=a*(z.value/2),t=a*q.value;let n=o-i;n<0&&(n=t+n);const s=Math.floor(n/e)+1;if(s<1?k.value=U.value:s>U.value?k.value=1:k.value=s,!S.value)if(o<i){S.value=!0;const e=o+t;l.scrollTo({left:e,behavior:"auto"}),setTimeout(()=>{S.value=!1},50)}else if(o>=i+t){S.value=!0;const e=o-t;l.scrollTo({left:e,behavior:"auto"}),setTimeout(()=>{S.value=!1},50)}}else{const i=V.value-1;for(let t=0;t<U.value;t++){const n=L.value*(t+1)-1,s=n<i?o[n]:o[i],r=n<i?n:i;N({parent:l,child:s,leftOffset:40,rightOffset:40,threshold:.5})&&(r===i?(a=i,e=t+1):(a=r,e=t+1))}void 0!==a&&a>-1&&e&&(k.value=e,e>1&&(R.value=!0),1===e&&(R.value=!1),e<U.value&&(O.value=!0),e===U.value&&(O.value=!1))}}}))},ie=()=>{const e=J?.value;if(e){const a=e.offsetWidth;V.value>=L.value?Q.value=a/L.value+"px":Q.value=a/V.value+"px"}},te=()=>{const e=J?.value,a=e.offsetWidth;if(e&&a)if(c.infinite&&c.enabled&&q.value>0){const l=e.scrollLeft+a;e.scrollTo({left:l,behavior:"smooth"})}else{const l=a*k.value;e.scrollTo({left:l,behavior:"smooth"})}},ne=()=>{const e=J?.value,a=e.offsetWidth;if(e&&a)if(c.infinite&&c.enabled&&q.value>0){const l=e.scrollLeft-a;e.scrollTo({left:l,behavior:"smooth"})}else{const l=a*(k.value-1-1);e.scrollTo({left:l,behavior:"smooth"})}};b(()=>{if(M){window.addEventListener("resize",ae);const e=J?.value;if(e){const a=e?.querySelectorAll(`div[class="${r}__slides"] > *`)??[];if(q.value=a.length,V.value=a.length,c.infinite&&c.enabled&&a.length>0){const l=Array.from(a),o=Math.min(L.value,l.length);l.slice(-o).forEach(a=>{const o=a.cloneNode(!0);e.insertBefore(o,l[0])});l.slice(0,o).forEach(a=>{const l=a.cloneNode(!0);e.appendChild(l)}),z.value=2*o,m(()=>{const a=e.offsetWidth/L.value*o;e.scrollLeft=a})}e.addEventListener("scroll",le),e.addEventListener("scrollend",oe)}Z(c),X(),ie(),Y()}}),_(()=>{if(M){window.removeEventListener("resize",ae),F.value&&window.clearTimeout(F.value),K.value&&window.clearTimeout(K.value);const e=J?.value;e&&(e.removeEventListener("scroll",le),e.removeEventListener("scrollend",oe))}});const se=a(()=>[r,`${r}--${c.controlAlign}`,`${r}--${c.controlPosition}`,`${r}--${c.paginationType}`,c.enabled?`${r}--enabled`:`${r}--disabled`,$.value?"":`${r}--hastitle`,c.onShowMore?`${r}--has-more`:""]),re=a(()=>[`${r}__slide-controls`,P.value?`${r}__slide-controls--hascustomtitle`:""]),ce=a(()=>[`${r}__slides`,D.value?`${r}__slides--resizing`:"",G.value?`${r}__slides--scrolling`:"",S.value?`${r}__slides--jumping`:""]),ve=a(()=>[`${r}__navigation`,`${r}__navigation--${c.controlAlign}`,`${r}__navigation--${c.controlPosition}`]);return w(c,e=>{Z(e)}),(a,c)=>(o(),l("div",{class:s(n(se)),"data-testid":e.testId},[v("div",{ref_key:"beforeControls",ref:x,class:s(n(re)),hidden:n($)},[v("div",{class:s(`${r}__custom-title`)},[y(a.$slots,"title")],2),e.title?(o(),l("div",{key:0,class:s(`${r}__title`)},[d(n(T),{align:n(P)?n(C).Center:n(C).Left,label:"",truncate:""},{default:u(()=>[p(f(e.title),1)]),_:1},8,["align"])],2)):t("",!0),e.controlPosition!==n(E).Before||[n(B).Inline,n(B).Hidden].includes(e.paginationType)?t("",!0):(o(),l(i,{key:1},[n(U)&&n(V)>n(L)?(o(),l("div",{key:0,class:s(n(ve))},[d(j,{color:e.color,"current-page":n(k),enabled:!n(G),"goto-page":ee,"more-label":e.moreLabel,"next-page-enabled":n(O),"pagination-type":e.paginationType,"prev-page-enabled":n(R),prefix:r,"show-more":e.onShowMore,"show-next-items":te,"show-prev-items":ne,"total-pages":n(U),variant:e.variant},null,8,["color","current-page","enabled","more-label","next-page-enabled","pagination-type","prev-page-enabled","show-more","total-pages","variant"])],2)):t("",!0)],64))],10,H),v("div",{ref_key:"scrollContainer",ref:J,class:s(n(ce)),tabindex:"0"},[y(a.$slots,"default")],2),e.controlPosition!==n(E).After||[n(B).Inline,n(B).Hidden].includes(e.paginationType)?t("",!0):(o(),l(i,{key:0},[n(U)&&n(V)>n(L)?(o(),l("div",{key:0,class:s(`${r}__slide-controls`)},[v("div",{class:s(n(ve))},[d(j,{color:e.color,"current-page":n(k),enabled:!n(G),"goto-page":ee,"more-label":e.moreLabel,"next-page-enabled":n(O),"pagination-type":e.paginationType,prefix:r,"prev-page-enabled":n(R),"show-more":e.onShowMore,"show-next-items":te,"show-prev-items":ne,"total-pages":n(U),variant:e.variant},null,8,["color","current-page","enabled","more-label","next-page-enabled","pagination-type","prev-page-enabled","show-more","total-pages","variant"])],2)],2)):t("",!0)],64)),e.paginationType===n(B).Inline?(o(),l("div",{key:1,class:s(`${r}__slide-controls ${r}__slide-controls--inline`)},[v("div",{class:s(`${r}__navigation`)},[d(j,{color:e.color,"current-page":n(k),enabled:!n(G),"goto-page":ee,"more-label":e.moreLabel,"next-page-enabled":n(O),"pagination-type":e.paginationType,prefix:r,"prev-page-enabled":n(R),"show-more":e.onShowMore,"show-next-items":te,"show-prev-items":ne,"total-pages":n(U),variant:e.variant},null,8,["color","current-page","enabled","more-label","next-page-enabled","pagination-type","prev-page-enabled","show-more","total-pages","variant"])],2)],2)):t("",!0)],10,W))}}),R=(e,a)=>{const l=e.__vccOpts||e;for(const[o,i]of a)l[o]=i;return l},q={},D={class:/*@__PURE__*/s(["clll-carousel__slide"])};const F=/*#__PURE__*/R(q,[["render",function(e,a){return o(),l("div",D,[y(e.$slots,"default")])}]]),G=O;G.Slide=F;export{G as CLCarousel,G as default};
3
+ import{defineComponent as e,computed as a,createElementBlock as l,openBlock as o,Fragment as i,createCommentVNode as t,unref as n,normalizeClass as s,renderList as r,createBlock as c,createElementVNode as v,createVNode as d,withCtx as u,createTextVNode as p,toDisplayString as f,useCssVars as g,ref as h,onMounted as b,nextTick as m,onUnmounted as _,watch as w,renderSlot as y}from"vue";import{_ as x}from"../../../chunks/CLButton.vue_vue_type_style_index_0_lang-pE0JrYmS.js";import{_ as T}from"../../../chunks/CLText.vue_vue_type_style_index_0_lang-CdA4TW0N.js";import{a as $,c as k,e as L,f as z,d as P,i as C,b as S}from"../../../chunks/index-DsloP0ml.js";import{g as B,f as E}from"../../../chunks/index-wkMXT2wB.js";import{i as M,d as I,e as N}from"../../../chunks/helper-BlxFN3eF.js";import{useHasSlotContent as A}from"../../../composables/useHasSlotContent.js";const j=/* @__PURE__ */e({name:"CLCarouselNavigation",__name:"CLCarouselNavigation",props:{color:{},currentPage:{},enabled:{type:Boolean},gotoPage:{},moreAriaLabel:{default:"Navigate to page to see more results"},moreLabel:{},nextPageEnabled:{type:Boolean},paginationType:{},prefix:{},prevPageEnabled:{type:Boolean},showMore:{},showNextItems:{},showPrevItems:{},totalPages:{},variant:{}},setup(e){const g=e,h=a(()=>[`${g.prefix}__dots-container`]),b=a(()=>[`${g.prefix}__arrows-container`]),m=a(()=>[`${g.prefix}__numbered-container`]),_=a(()=>[`${g.prefix}__inline-container`]),w=a(()=>[`${g.prefix}__prev-page`]),y=a(()=>[`${g.prefix}__next-page`]),S=a(()=>[`${g.prefix}__page-indicator`]),E=a(()=>[`${g.prefix}__show-more`]),M=e=>g.currentPage===e,I=a(()=>!g.enabled||!g.prevPageEnabled),N=a(()=>!g.enabled||!g.nextPageEnabled);return(a,g)=>(o(),l(i,null,[e.paginationType===n(B).Dots?(o(),l("div",{key:0,class:s(n(h))},[(o(!0),l(i,null,r(e.totalPages,a=>(o(),c(n(x),{key:`dot-${a}`,"aria-label":`Show page ${a}`,color:e.color,disabled:M(a),height:"0.75rem","on-click":()=>e.gotoPage(a),width:"0.75rem",variant:M(a)?n($).Outline:e.variant,wrap:""},null,8,["aria-label","color","disabled","on-click","variant"]))),128))],2)):t("",!0),e.paginationType===n(B).Numbered?(o(),l("div",{key:1,class:s(n(m))},[v("div",{class:s(n(w))},[d(n(x),{"aria-label":"Show previous page of slides",color:e.color,disabled:n(I),"icon-before":n(z).ChevronLeft,"icon-size":n(L).Tiny,size:n(k).Tiny,"on-click":e.showPrevItems,variant:n(I)?n($).Text:e.variant},null,8,["color","disabled","icon-before","icon-size","size","on-click","variant"])],2),v("div",{class:s(n(S))},[d(n(T),{type:n(P).Small},{default:u(()=>[p(f(e.currentPage)+" / "+f(e.totalPages),1)]),_:1},8,["type"])],2),v("div",{class:s(n(y))},[d(n(x),{"aria-label":"Show next page of slides",color:e.color,disabled:n(N),"icon-before":n(z).ChevronRight,"icon-size":n(L).Tiny,size:n(k).Tiny,"on-click":e.showNextItems,variant:n(N)?n($).Text:e.variant},null,8,["color","disabled","icon-before","icon-size","size","on-click","variant"])],2),e.showMore?(o(),l("div",{key:0,class:s(n(E))},[d(n(x),{"aria-label":e.moreAriaLabel,color:e.color,size:n(k).Small,"on-click":e.showMore,variant:e.variant},{default:u(()=>[p(f(e.moreLabel),1)]),_:1},8,["aria-label","color","size","on-click","variant"])],2)):t("",!0)],2)):t("",!0),e.paginationType===n(B).Arrows?(o(),l("div",{key:2,class:s(n(b))},[v("div",{class:s(n(w))},[d(n(x),{"aria-label":"Show previous page of slides",color:e.color,disabled:n(I),"icon-before":n(z).ChevronLeft,"icon-size":n(L).Tiny,size:n(k).Tiny,"on-click":e.showPrevItems,variant:n(I)?n($).Text:e.variant},null,8,["color","disabled","icon-before","icon-size","size","on-click","variant"])],2),v("div",{class:s(n(y))},[d(n(x),{"aria-label":"Show next page of slides",color:e.color,disabled:n(N),"icon-before":n(z).ChevronRight,"icon-size":n(L).Tiny,size:n(k).Tiny,"on-click":e.showNextItems,variant:n(N)?n($).Text:e.variant},null,8,["color","disabled","icon-before","icon-size","size","on-click","variant"])],2)],2)):t("",!0),e.paginationType===n(B).Inline?(o(),l("div",{key:3,class:s(n(_))},[v("div",{class:s(n(w))},[d(n(x),{"aria-label":"Show previous page of slides","align-content":n(C).Center,color:e.color,disabled:n(I),"icon-before":n(z).ChevronLeft,"icon-size":n(L).Small,size:n(k).Tiny,"on-click":e.showPrevItems,variant:n(I)?n($).Text:e.variant,width:"30px",height:"30px",wrap:""},null,8,["align-content","color","disabled","icon-before","icon-size","size","on-click","variant"])],2),v("div",{class:s(n(y))},[d(n(x),{"aria-label":"Show next page of slides","align-content":n(C).Center,color:e.color,disabled:n(N),"icon-before":n(z).ChevronRight,"icon-size":n(L).Small,size:n(k).Tiny,"on-click":e.showNextItems,variant:n(N)?n($).Text:e.variant,width:"30px",height:"30px",wrap:""},null,8,["align-content","color","disabled","icon-before","icon-size","size","on-click","variant"])],2)],2)):t("",!0)],64))}}),W=["data-testid"],H=["hidden"],O=/* @__PURE__ */e({name:"CLCarousel",__name:"CLCarousel",props:{color:{default:S.Neutral},controlAlign:{default:C.Right},controlPosition:{default:E.Before},enabled:{type:Boolean,default:!0},infinite:{type:Boolean,default:!1},moreLabel:{default:"More"},onShowMore:{},paginationType:{default:B.Numbered},perPage:{default:3},perPageByBreakpoints:{},testId:{default:"clll-carousel"},title:{},variant:{default:$.Soft},width:{default:"100%"}},setup(e){g(e=>({fd2b86ea:e.width,v75596a20:n(Q)}));const r="clll-carousel",c=e,x=h(),$=h(!1),k=h(1),L=h(c.perPage),z=h(0),P=A("title"),S=h(!1),O=h(!1),R=h(!1),q=h(0),D=h(!1),F=h(),G=h(!1),J=h(),K=h(),Q=h("100%"),U=h(0),V=h(0),X=()=>{if(c.perPageByBreakpoints?.length){L.value=c.perPage;for(const[e,a]of c.perPageByBreakpoints){window.matchMedia(`(min-width: ${e}px)`).matches&&(L.value=a)}}},Y=()=>{const e=J?.value;if(e&&V.value){const e=Math.ceil(V.value/L.value);U.value=e,c.infinite?(O.value=!0,R.value=!0):e>1&&(O.value=!0)}},Z=e=>{x.value&&m(()=>{const a=I(x.value)&&!P.value;a||!e.title&&e.controlPosition!==E.Before?$.value=a:$.value=!1})},ee=e=>{const a=J?.value,l=a.offsetWidth;if(a&&l)if(c.infinite&&c.enabled&&q.value>0){const o=l/L.value*(z.value/2)+l*(e-1);a.scrollTo({left:o,behavior:"smooth"})}else{const o=l*(e-1);a.scrollTo({left:o,behavior:"smooth"})}},ae=()=>{D.value=!0;const e=L.value;X(),ie(),Y();const a=J?.value,l=a.offsetWidth;if(a)if(c.infinite&&c.enabled&&q.value>0){const o=l/L.value,i=l/e,t=z.value/2,n=i*t,s=a.scrollLeft-n;if(e!==L.value){const e=a.querySelectorAll(`div[class="${r}__slides"] > *`),l=Array.from(e),o=l.slice(t,l.length-t);a.innerHTML="",o.forEach(e=>a.appendChild(e));const i=Math.min(L.value,o.length);if(i>0&&o.length>0){o.slice(-i).forEach(e=>{const l=e.cloneNode(!0);a.insertBefore(l,o[0])});o.slice(0,i).forEach(e=>{const l=e.cloneNode(!0);a.appendChild(l)}),z.value=2*i}}const c=o*(z.value/2)+s;m(()=>{a.scrollLeft=c})}else{k.value=1;const e=l*(k.value-1);a.scrollLeft=e}M&&D.value&&(window.clearTimeout(F.value),F.value=window.setTimeout(()=>{D.value&&(D.value=!1),window.clearTimeout(F.value)},300))},le=()=>{D.value||(G.value=!0,M&&G.value&&(window.clearTimeout(K.value),K.value=window.setTimeout(()=>{G.value&&oe(),window.clearTimeout(K.value)},200)))},oe=()=>{D.value||(G.value=!1,S.value||m(()=>{let e,a;const l=J?.value;if(l){const o=l?.querySelectorAll(`div[class="${r}__slides"] > *`)??[];if(c.infinite&&c.enabled&&q.value>0){const e=l.offsetWidth,a=e/L.value,o=l.scrollLeft,i=a*(z.value/2),t=a*q.value;let n=o-i;n<0&&(n=t+n);const s=Math.floor(n/e)+1;if(s<1?k.value=U.value:s>U.value?k.value=1:k.value=s,!S.value)if(o<i){S.value=!0;const e=o+t;l.scrollTo({left:e,behavior:"auto"}),setTimeout(()=>{S.value=!1},50)}else if(o>=i+t){S.value=!0;const e=o-t;l.scrollTo({left:e,behavior:"auto"}),setTimeout(()=>{S.value=!1},50)}}else{const i=V.value-1;for(let t=0;t<U.value;t++){const n=L.value*(t+1)-1,s=n<i?o[n]:o[i],r=n<i?n:i;N({parent:l,child:s,leftOffset:40,rightOffset:40,threshold:.5})&&(r===i?(a=i,e=t+1):(a=r,e=t+1))}void 0!==a&&a>-1&&e&&(k.value=e,e>1&&(R.value=!0),1===e&&(R.value=!1),e<U.value&&(O.value=!0),e===U.value&&(O.value=!1))}}}))},ie=()=>{const e=J?.value;if(e){const a=e.offsetWidth;V.value>=L.value?Q.value=a/L.value+"px":Q.value=a/V.value+"px"}},te=()=>{const e=J?.value,a=e.offsetWidth;if(e&&a)if(c.infinite&&c.enabled&&q.value>0){const l=e.scrollLeft+a;e.scrollTo({left:l,behavior:"smooth"})}else{const l=a*k.value;e.scrollTo({left:l,behavior:"smooth"})}},ne=()=>{const e=J?.value,a=e.offsetWidth;if(e&&a)if(c.infinite&&c.enabled&&q.value>0){const l=e.scrollLeft-a;e.scrollTo({left:l,behavior:"smooth"})}else{const l=a*(k.value-1-1);e.scrollTo({left:l,behavior:"smooth"})}};b(()=>{if(M){window.addEventListener("resize",ae);const e=J?.value;if(e){const a=e?.querySelectorAll(`div[class="${r}__slides"] > *`)??[];if(q.value=a.length,V.value=a.length,c.infinite&&c.enabled&&a.length>0){const l=Array.from(a),o=Math.min(L.value,l.length);l.slice(-o).forEach(a=>{const o=a.cloneNode(!0);e.insertBefore(o,l[0])});l.slice(0,o).forEach(a=>{const l=a.cloneNode(!0);e.appendChild(l)}),z.value=2*o,m(()=>{const a=e.offsetWidth/L.value*o;e.scrollLeft=a})}e.addEventListener("scroll",le),e.addEventListener("scrollend",oe)}Z(c),X(),ie(),Y()}}),_(()=>{if(M){window.removeEventListener("resize",ae),F.value&&window.clearTimeout(F.value),K.value&&window.clearTimeout(K.value);const e=J?.value;e&&(e.removeEventListener("scroll",le),e.removeEventListener("scrollend",oe))}});const se=a(()=>[r,`${r}--${c.controlAlign}`,`${r}--${c.controlPosition}`,`${r}--${c.paginationType}`,c.enabled?`${r}--enabled`:`${r}--disabled`,$.value?"":`${r}--hastitle`,c.onShowMore?`${r}--has-more`:""]),re=a(()=>[`${r}__slide-controls`,P.value?`${r}__slide-controls--hascustomtitle`:""]),ce=a(()=>[`${r}__slides`,D.value?`${r}__slides--resizing`:"",G.value?`${r}__slides--scrolling`:"",S.value?`${r}__slides--jumping`:""]),ve=a(()=>[`${r}__navigation`,`${r}__navigation--${c.controlAlign}`,`${r}__navigation--${c.controlPosition}`]);return w(c,e=>{Z(e)}),(a,c)=>(o(),l("div",{class:s(n(se)),"data-testid":e.testId},[v("div",{ref_key:"beforeControls",ref:x,class:s(n(re)),hidden:n($)},[v("div",{class:s(`${r}__custom-title`)},[y(a.$slots,"title")],2),e.title?(o(),l("div",{key:0,class:s(`${r}__title`)},[d(n(T),{align:n(P)?n(C).Center:n(C).Left,label:"",truncate:""},{default:u(()=>[p(f(e.title),1)]),_:1},8,["align"])],2)):t("",!0),e.controlPosition!==n(E).Before||[n(B).Inline,n(B).Hidden].includes(e.paginationType)?t("",!0):(o(),l(i,{key:1},[n(U)&&n(V)>n(L)?(o(),l("div",{key:0,class:s(n(ve))},[d(j,{color:e.color,"current-page":n(k),enabled:!n(G),"goto-page":ee,"more-label":e.moreLabel,"next-page-enabled":n(O),"pagination-type":e.paginationType,"prev-page-enabled":n(R),prefix:r,"show-more":e.onShowMore,"show-next-items":te,"show-prev-items":ne,"total-pages":n(U),variant:e.variant},null,8,["color","current-page","enabled","more-label","next-page-enabled","pagination-type","prev-page-enabled","show-more","total-pages","variant"])],2)):t("",!0)],64))],10,H),v("div",{ref_key:"scrollContainer",ref:J,class:s(n(ce)),tabindex:"0"},[y(a.$slots,"default")],2),e.controlPosition!==n(E).After||[n(B).Inline,n(B).Hidden].includes(e.paginationType)?t("",!0):(o(),l(i,{key:0},[n(U)&&n(V)>n(L)?(o(),l("div",{key:0,class:s(`${r}__slide-controls`)},[v("div",{class:s(n(ve))},[d(j,{color:e.color,"current-page":n(k),enabled:!n(G),"goto-page":ee,"more-label":e.moreLabel,"next-page-enabled":n(O),"pagination-type":e.paginationType,prefix:r,"prev-page-enabled":n(R),"show-more":e.onShowMore,"show-next-items":te,"show-prev-items":ne,"total-pages":n(U),variant:e.variant},null,8,["color","current-page","enabled","more-label","next-page-enabled","pagination-type","prev-page-enabled","show-more","total-pages","variant"])],2)],2)):t("",!0)],64)),e.paginationType===n(B).Inline?(o(),l("div",{key:1,class:s(`${r}__slide-controls ${r}__slide-controls--inline`)},[v("div",{class:s(`${r}__navigation`)},[d(j,{color:e.color,"current-page":n(k),enabled:!n(G),"goto-page":ee,"more-label":e.moreLabel,"next-page-enabled":n(O),"pagination-type":e.paginationType,prefix:r,"prev-page-enabled":n(R),"show-more":e.onShowMore,"show-next-items":te,"show-prev-items":ne,"total-pages":n(U),variant:e.variant},null,8,["color","current-page","enabled","more-label","next-page-enabled","pagination-type","prev-page-enabled","show-more","total-pages","variant"])],2)],2)):t("",!0)],10,W))}}),R=(e,a)=>{const l=e.__vccOpts||e;for(const[o,i]of a)l[o]=i;return l},q={},D={class:/*@__PURE__*/s(["clll-carousel__slide"])};const F=/*#__PURE__*/R(q,[["render",function(e,a){return o(),l("div",D,[y(e.$slots,"default")])}]]),G=O;G.Slide=F;export{G as CLCarousel,G as default};
@@ -30,11 +30,11 @@ export interface CLCarouselProps {
30
30
  width?: string;
31
31
  }
32
32
  declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<CLCarouselProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<CLCarouselProps> & Readonly<{}>, {
33
+ width: string;
33
34
  color: CLColors;
34
35
  variant: CLColorVariants;
35
36
  enabled: boolean;
36
37
  testId: string;
37
- width: string;
38
38
  moreLabel: string;
39
39
  paginationType: CLPaginationType;
40
40
  controlAlign: CLAlign;
@@ -1,3 +1,3 @@
1
1
  import '../../../assets/core.css';
2
2
  import './CLDisclosure.css';
3
- import{defineComponent as e,ref as a,watch as t,computed as d,onBeforeUnmount as o,createElementBlock as n,openBlock as s,normalizeStyle as l,normalizeClass as i,unref as r,createVNode as u,createElementVNode as c,withKeys as p,withCtx as _,createBlock as g,createCommentVNode as f,renderSlot as m,createTextVNode as $,toDisplayString as y}from"vue";import{_ as v}from"../../../chunks/CLA11yButton.vue_vue_type_style_index_0_lang-BnJRXVwW.js";import{_ as h}from"../../../chunks/CLHeading.vue_vue_type_style_index_0_lang-Bp0Hmc-g.js";import{_ as b}from"../../../chunks/CLIcon.vue_vue_type_style_index_0_lang-BN_rKLKK.js";import{_ as x}from"../../../chunks/CLText.vue_vue_type_style_index_0_lang-BZQzsJMF.js";import{c as B,C,a as S,e as k,f as z,l as I,d as L}from"../../../chunks/index-DwjW-Z-U.js";import{d as j}from"../../../chunks/utils-CYyJsKfZ.js";import{useEsc as H}from"../../../composables/useEsc.js";import{useHasSlotContent as T}from"../../../composables/useHasSlotContent.js";import{useTheme as A}from"../../../composables/useTheme.js";const D=["data-testid"],E=["id","aria-labelledby","aria-hidden"],R=/* @__PURE__ */e({name:"CLDisclosure",__name:"CLDisclosure",props:{bordered:{type:Boolean,default:!0},borderRadius:{},color:{default:L.Neutral},compact:{type:Boolean,default:!1},contentSpacing:{type:Boolean,default:!0},disclosureId:{},expanded:{type:Boolean,default:!1},expandedIcon:{default:z.ChevronUp},heading:{},headingLevel:{},headingType:{default:I.Section},iconAfter:{default:z.ChevronDown},iconBefore:{},iconSize:{default:k.Medium},rounded:{type:Boolean,default:!0},subHeading:{},subHeadingType:{default:S.Body},testId:{default:"clll-disclosure"},triggerButtonSize:{default:C.Medium},variant:{default:B.Soft}},emits:["disclosure-toggle","update:expanded"],setup(e,{expose:B,emit:C}){const S=C,k="clll-disclosure",z=A(),I=e;let L=a();const R=a(I.expanded);t(()=>I.expanded,e=>{R.value=e});const M=T("trailing"),q=d(()=>[k,`${k}--${I.color}--${I.variant}`,`${k}--${I.triggerButtonSize}`,I.bordered?`${k}--bordered`:"",I.borderRadius?`${k}--${I.borderRadius}`:"",I.contentSpacing?`${k}--padded`:`${k}--nopadding`,I.compact?`${k}--compact`:"",R.value?`${k}--expanded`:`${k}--collapsed`,I.heading?`${k}--hasheading`:"",I.subHeading||M.value?`${k}--hassubheading`:"",I.rounded?`${k}--rounded`:`${k}--box`,`${k}--${I.triggerButtonSize}`]),w=d(()=>[`${k}__content`,`${k}__content--${I.triggerButtonSize}`]),K=e=>{R.value="boolean"==typeof e?e:!R.value,S("update:expanded",R.value),S("disclosure-toggle",R.value)},N=()=>{K()},{clearEventListeners:U}=H({escHandler:N,triggerElem:L});return o(()=>{U()}),B({close:()=>{K(!1)},expanded:R,open:()=>{K(!0)},toggle:K}),(a,t)=>(s(),n("div",{class:i(r(q)),style:l(r(j)({color:e.color,variant:e.variant,theme:r(z)})),"data-testid":e.testId},[u(r(v),{id:`${k}__button--${e.disclosureId}`,"aria-controls":`${k}--${e.disclosureId}`,"aria-expanded":r(R),color:e.color,enabled:!0,fluid:!0,rounded:e.rounded,role:"button",onClick:N,onKeyup:p(N,["enter"])},{default:_(()=>[c("div",{class:i(`${k}__trigger`)},[c("span",{class:i(`${k}__heading`)},[e.iconBefore?(s(),g(r(b),{key:0,name:e.iconBefore,size:e.iconSize},null,8,["name","size"])):f("",!0),c("span",{class:i(`${k}__heading-text`)},[e.heading?(s(),g(r(h),{key:0,class:i(`${k}__text-heading`),type:e.headingType,level:e.headingLevel,truncate:""},{default:_(()=>[$(y(e.heading),1)]),_:1},8,["class","type","level"])):f("",!0),e.subHeading?(s(),g(r(x),{key:1,class:i(`${k}__text-subheading`),type:e.subHeadingType,truncate:""},{default:_(()=>[$(y(e.subHeading),1)]),_:1},8,["class","type"])):f("",!0)],2),m(a.$slots,"trailing"),e.iconAfter?(s(),g(r(b),{key:1,name:r(R)?e.expandedIcon:e.iconAfter,size:e.iconSize},null,8,["name","size"])):f("",!0)],2)],2)]),_:3},8,["id","aria-controls","aria-expanded","color","rounded"]),c("div",{id:`${k}--${e.disclosureId}`,"aria-labelledby":`${k}__button--${e.disclosureId}`,"aria-hidden":!r(R),class:i(r(w))},[m(a.$slots,"default")],10,E)],14,D))}});export{R as CLDisclosure,R as default};
3
+ import{defineComponent as e,ref as a,watch as d,computed as t,onBeforeUnmount as o,createElementBlock as n,openBlock as s,normalizeStyle as l,normalizeClass as i,unref as r,createVNode as u,createElementVNode as c,withKeys as p,withCtx as _,createBlock as g,createCommentVNode as f,renderSlot as m,createTextVNode as $,toDisplayString as y}from"vue";import{_ as v}from"../../../chunks/CLA11yButton.vue_vue_type_style_index_0_lang-BQBmDfM8.js";import{_ as b}from"../../../chunks/CLHeading.vue_vue_type_style_index_0_lang-PCOhAZkN.js";import{_ as h}from"../../../chunks/CLIcon.vue_vue_type_style_index_0_lang-BmRKmzSl.js";import{_ as x}from"../../../chunks/CLText.vue_vue_type_style_index_0_lang-CdA4TW0N.js";import{a as B,c as S,d as k,e as z,f as C,l as I,b as L}from"../../../chunks/index-DsloP0ml.js";import{d as j}from"../../../chunks/utils-BVrLpGWo.js";import{useEsc as H}from"../../../composables/useEsc.js";import{useHasSlotContent as T}from"../../../composables/useHasSlotContent.js";import{useTheme as A}from"../../../composables/useTheme.js";const D=["data-testid"],E=["id","aria-labelledby","aria-hidden"],R=/* @__PURE__ */e({name:"CLDisclosure",__name:"CLDisclosure",props:{bordered:{type:Boolean,default:!0},borderRadius:{},color:{default:L.Neutral},compact:{type:Boolean,default:!1},contentSpacing:{type:Boolean,default:!0},disclosureId:{},expanded:{type:Boolean,default:!1},expandedIcon:{default:C.ChevronUp},heading:{},headingLevel:{},headingType:{default:I.Section},iconAfter:{default:C.ChevronDown},iconBefore:{},iconSize:{default:z.Medium},rounded:{type:Boolean,default:!0},subHeading:{},subHeadingType:{default:k.Body},testId:{default:"clll-disclosure"},triggerButtonSize:{default:S.Medium},variant:{default:B.Soft}},emits:["disclosure-toggle","update:expanded"],setup(e,{expose:B,emit:S}){const k=S,z="clll-disclosure",C=A(),I=e;let L=a();const R=a(I.expanded);d(()=>I.expanded,e=>{R.value=e});const M=T("trailing"),q=t(()=>[z,`${z}--${I.color}--${I.variant}`,`${z}--${I.triggerButtonSize}`,I.bordered?`${z}--bordered`:"",I.borderRadius?`${z}--${I.borderRadius}`:"",I.contentSpacing?`${z}--padded`:`${z}--nopadding`,I.compact?`${z}--compact`:"",R.value?`${z}--expanded`:`${z}--collapsed`,I.heading?`${z}--hasheading`:"",I.subHeading||M.value?`${z}--hassubheading`:"",I.rounded?`${z}--rounded`:`${z}--box`,`${z}--${I.triggerButtonSize}`]),w=t(()=>[`${z}__content`,`${z}__content--${I.triggerButtonSize}`]),K=e=>{R.value="boolean"==typeof e?e:!R.value,k("update:expanded",R.value),k("disclosure-toggle",R.value)},N=()=>{K()},{clearEventListeners:U}=H({escHandler:N,triggerElem:L});return o(()=>{U()}),B({close:()=>{K(!1)},expanded:R,open:()=>{K(!0)},toggle:K}),(a,d)=>(s(),n("div",{class:i(r(q)),style:l(r(j)({color:e.color,variant:e.variant,theme:r(C)})),"data-testid":e.testId},[u(r(v),{id:`${z}__button--${e.disclosureId}`,"aria-controls":`${z}--${e.disclosureId}`,"aria-expanded":r(R),color:e.color,enabled:!0,fluid:!0,rounded:e.rounded,role:"button",onClick:N,onKeyup:p(N,["enter"])},{default:_(()=>[c("div",{class:i(`${z}__trigger`)},[c("span",{class:i(`${z}__heading`)},[e.iconBefore?(s(),g(r(h),{key:0,name:e.iconBefore,size:e.iconSize},null,8,["name","size"])):f("",!0),c("span",{class:i(`${z}__heading-text`)},[e.heading?(s(),g(r(b),{key:0,class:i(`${z}__text-heading`),type:e.headingType,level:e.headingLevel,truncate:""},{default:_(()=>[$(y(e.heading),1)]),_:1},8,["class","type","level"])):f("",!0),e.subHeading?(s(),g(r(x),{key:1,class:i(`${z}__text-subheading`),type:e.subHeadingType,truncate:""},{default:_(()=>[$(y(e.subHeading),1)]),_:1},8,["class","type"])):f("",!0)],2),m(a.$slots,"trailing"),e.iconAfter?(s(),g(r(h),{key:1,name:r(R)?e.expandedIcon:e.iconAfter,size:e.iconSize},null,8,["name","size"])):f("",!0)],2)],2)]),_:3},8,["id","aria-controls","aria-expanded","color","rounded"]),c("div",{id:`${z}--${e.disclosureId}`,"aria-labelledby":`${z}__button--${e.disclosureId}`,"aria-hidden":!r(R),class:i(r(w))},[m(a.$slots,"default")],10,E)],14,D))}});export{R as CLDisclosure,R as default};
@@ -1,3 +1,3 @@
1
1
  import '../../../assets/core.css';
2
2
  import './CLDrawer.css';
3
- import{defineComponent as e,useTemplateRef as t,ref as o,computed as a,watch as l,nextTick as s,onMounted as n,onBeforeUnmount as r,createElementBlock as d,createCommentVNode as i,unref as u,openBlock as v,normalizeStyle as c,normalizeClass as p,createElementVNode as m,renderSlot as f}from"vue";import{m as w}from"../../../chunks/index-DwjW-Z-U.js";import{a as h}from"../../../chunks/utils-CYyJsKfZ.js";import{useEsc as y}from"../../../composables/useEsc.js";import{useTheme as b}from"../../../composables/useTheme.js";import{SizeDimension as x,useElementSize as z,SizeMode as I}from"../../../composables/useElementSize.js";import{b as _,i as S,g as O,a as $}from"../../../chunks/helper-BlxFN3eF.js";const g=["data-testid"],C=/* @__PURE__ */e({name:"CLDrawer",__name:"CLDrawer",props:{autoSize:{type:Boolean,default:!1},borderRadius:{default:void 0},detached:{type:Boolean,default:!1},dismissible:{type:Boolean,default:!0},isOpen:{type:Boolean,default:!1},left:{default:void 0},onClose:{type:Function,default:void 0},overlay:{type:Boolean,default:!0},position:{default:w.Left},resetScrollKey:{default:void 0},resetScrollOnOpen:{type:Boolean,default:!0},rounded:{type:Boolean,default:!1},snapPoint:{default:1},testId:{default:"clll-drawer"},width:{default:void 0},zIndex:{default:100}},emits:["drawer-open","drawer-close"],setup(e,{expose:C,emit:L}){const B=L,T=b(),k=t("drawer-content"),j=300,E=o(!1),D=o(),M=o(0),P=o(!1),R=a(()=>H.isOpen||P.value),H=e,A="clll-drawer",K="clll-prevent-scroll",W=a(()=>H.position===w.Top||H.position===w.Bottom?x.Height:x.Width),{size:F,measure:q,destroy:G}=z({elementRef:k,dimension:W,mode:a(()=>H.autoSize?I.Auto:I.Percentage),snapPoint:a(()=>H.snapPoint),observeChanges:!0,debounceDelay:50,isActive:a(()=>H.isOpen&&E.value)}),J=()=>{S&&window?.document.body.classList.add(K)},N=()=>{S&&window?.document.body.classList.remove(K)},Q=a(()=>[A,`${A}--${H.position}`,E.value?`${A}--mounted`:""]),U=a(()=>[`${A}__content`,`${A}__content--${H.position}`,H.detached?`${A}__content--detached`:"",H.rounded?`${A}__content--rounded`:"",H.borderRadius?`${A}__content--${H.borderRadius}`:""]),V=a(()=>{if("auto"===H.zIndex)return H.zIndex;const e=_(H.zIndex)?parseInt(H.zIndex,10):H.zIndex;return e>0?e.toString():M.value.toString()}),X=a(()=>((_(H.zIndex)?parseInt(H.zIndex,10):H.zIndex)-1).toString()),Y=a(()=>{const e={...h(T),zIndex:V.value};return void 0!==H.left&&(e.left=H.left,void 0===H.width&&(e.width="auto")),void 0!==H.width&&(e.width=H.width),e}),Z=a(()=>{const e=H.position===w.Top||H.position===w.Bottom,t=e?"height":"width",o={zIndex:V.value,[t]:F.value};return H.autoSize&&(e?o.maxHeight=H.detached?"calc(100dvh - var(--clll-unit-8))":"100dvh":o.maxWidth=H.detached?"calc(100vw - var(--clll-unit-8))":"100vw"),o}),ee=e=>{try{(e=>{try{const t=e?.target,o=k.value;return!(!S||!o||o.contains(t))}catch(t){return console.error(t),!1}})(e)&&(S&&window.removeEventListener("mousedown",ee),ae())}catch(t){console.error(t)}},te=()=>{S&&window.removeEventListener("mousedown",ee)},oe=()=>{S&&(D.value&&D.value.stop(),te(),N(),P.value=!1,G())},ae=()=>{H.isOpen&&(P.value=!0,E.value=!1,S?(D.value&&D.value.stop(),D.value||(D.value=$()),D.value.start(j,e=>{Math.min(e,j)===j&&(D.value?.stop(),H.onClose?.(),oe())})):(H.onClose?.(),oe()))},le=e=>{k.value&&("number"==typeof e?k.value.scrollTop=e:e?k.value.scrollTo(e):k.value.scrollTop=0)};l(()=>H.resetScrollKey,()=>{le()}),l(()=>H.isOpen,e=>{e?(H.resetScrollOnOpen&&s(()=>le()),P.value=!1,B("drawer-open"),J(),S&&(M.value=O()+1,D.value||(D.value=$()),D.value.start(100,e=>{100===Math.min(e,100)&&(D.value?.stop(),E.value=!0,H.dismissible&&(te(),setTimeout(()=>{S&&window.addEventListener("mousedown",ee)},100)))}),k.value&&k.value.focus())):(P.value=!0,k.value&&k.value.blur(),N(),te(),D.value?(E.value=!1,D.value.start(j,e=>{Math.min(e,j)===j&&(D.value?.stop(),H.onClose?.(),oe())})):(E.value=!1,H.onClose?.(),oe()),B("drawer-close"))}),n(()=>{H.isOpen&&S&&(H.resetScrollOnOpen&&s(()=>le()),J(),M.value=O()+1,D.value||(D.value=$()),D.value.start(100,e=>{100===Math.min(e,100)&&(D.value?.stop(),E.value=!0)}),k.value&&k.value.focus())});const{clearEventListeners:se}=y({escHandler:H.dismissible?ae:void 0});return r(()=>{oe(),se(),D.value&&D.value.stop()}),C({drawerContent:k,recalculateSize:()=>{s(()=>{q()})},scrollToTop:le}),(t,o)=>u(R)?(v(),d("div",{key:0,class:p(u(Q)),"data-testid":e.testId,style:c(u(Y))},[m("div",{ref:"drawer-content",class:p(u(U)),style:c(u(Z)),role:"dialog",tabindex:-1},[f(t.$slots,"default")],6),e.overlay?(v(),d("div",{key:0,class:p(`${A}__overlay`),style:c({zIndex:u(X)}),onClick:o[0]||(o[0]=t=>e.dismissible?ae():void 0)},null,6)):i("",!0)],14,g)):i("",!0)}});export{C as CLDrawer,C as default};
3
+ import{defineComponent as e,useTemplateRef as t,ref as o,computed as a,watch as l,nextTick as s,onMounted as n,onBeforeUnmount as r,createElementBlock as d,createCommentVNode as i,unref as u,openBlock as v,normalizeStyle as c,normalizeClass as p,createElementVNode as m,renderSlot as f}from"vue";import{m as w}from"../../../chunks/index-DsloP0ml.js";import{a as h}from"../../../chunks/utils-BVrLpGWo.js";import{useEsc as y}from"../../../composables/useEsc.js";import{useTheme as b}from"../../../composables/useTheme.js";import{SizeDimension as x,useElementSize as z,SizeMode as I}from"../../../composables/useElementSize.js";import{b as _,i as S,g as O,a as $}from"../../../chunks/helper-BlxFN3eF.js";const g=["data-testid"],C=/* @__PURE__ */e({name:"CLDrawer",__name:"CLDrawer",props:{autoSize:{type:Boolean,default:!1},borderRadius:{default:void 0},detached:{type:Boolean,default:!1},dismissible:{type:Boolean,default:!0},isOpen:{type:Boolean,default:!1},left:{default:void 0},onClose:{type:Function,default:void 0},overlay:{type:Boolean,default:!0},position:{default:w.Left},resetScrollKey:{default:void 0},resetScrollOnOpen:{type:Boolean,default:!0},rounded:{type:Boolean,default:!1},snapPoint:{default:1},testId:{default:"clll-drawer"},width:{default:void 0},zIndex:{default:100}},emits:["drawer-open","drawer-close"],setup(e,{expose:C,emit:L}){const B=L,T=b(),k=t("drawer-content"),j=300,E=o(!1),D=o(),M=o(0),P=o(!1),R=a(()=>H.isOpen||P.value),H=e,A="clll-drawer",K="clll-prevent-scroll",W=a(()=>H.position===w.Top||H.position===w.Bottom?x.Height:x.Width),{size:F,measure:q,destroy:G}=z({elementRef:k,dimension:W,mode:a(()=>H.autoSize?I.Auto:I.Percentage),snapPoint:a(()=>H.snapPoint),observeChanges:!0,debounceDelay:50,isActive:a(()=>H.isOpen&&E.value)}),J=()=>{S&&window?.document.body.classList.add(K)},N=()=>{S&&window?.document.body.classList.remove(K)},Q=a(()=>[A,`${A}--${H.position}`,E.value?`${A}--mounted`:""]),U=a(()=>[`${A}__content`,`${A}__content--${H.position}`,H.detached?`${A}__content--detached`:"",H.rounded?`${A}__content--rounded`:"",H.borderRadius?`${A}__content--${H.borderRadius}`:""]),V=a(()=>{if("auto"===H.zIndex)return H.zIndex;const e=_(H.zIndex)?parseInt(H.zIndex,10):H.zIndex;return e>0?e.toString():M.value.toString()}),X=a(()=>((_(H.zIndex)?parseInt(H.zIndex,10):H.zIndex)-1).toString()),Y=a(()=>{const e={...h(T),zIndex:V.value};return void 0!==H.left&&(e.left=H.left,void 0===H.width&&(e.width="auto")),void 0!==H.width&&(e.width=H.width),e}),Z=a(()=>{const e=H.position===w.Top||H.position===w.Bottom,t=e?"height":"width",o={zIndex:V.value,[t]:F.value};return H.autoSize&&(e?o.maxHeight=H.detached?"calc(100dvh - var(--clll-unit-8))":"100dvh":o.maxWidth=H.detached?"calc(100vw - var(--clll-unit-8))":"100vw"),o}),ee=e=>{try{(e=>{try{const t=e?.target,o=k.value;return!(!S||!o||o.contains(t))}catch(t){return console.error(t),!1}})(e)&&(S&&window.removeEventListener("mousedown",ee),ae())}catch(t){console.error(t)}},te=()=>{S&&window.removeEventListener("mousedown",ee)},oe=()=>{S&&(D.value&&D.value.stop(),te(),N(),P.value=!1,G())},ae=()=>{H.isOpen&&(P.value=!0,E.value=!1,S?(D.value&&D.value.stop(),D.value||(D.value=$()),D.value.start(j,e=>{Math.min(e,j)===j&&(D.value?.stop(),H.onClose?.(),oe())})):(H.onClose?.(),oe()))},le=e=>{k.value&&("number"==typeof e?k.value.scrollTop=e:e?k.value.scrollTo(e):k.value.scrollTop=0)};l(()=>H.resetScrollKey,()=>{le()}),l(()=>H.isOpen,e=>{e?(H.resetScrollOnOpen&&s(()=>le()),P.value=!1,B("drawer-open"),J(),S&&(M.value=O()+1,D.value||(D.value=$()),D.value.start(100,e=>{100===Math.min(e,100)&&(D.value?.stop(),E.value=!0,H.dismissible&&(te(),setTimeout(()=>{S&&window.addEventListener("mousedown",ee)},100)))}),k.value&&k.value.focus())):(P.value=!0,k.value&&k.value.blur(),N(),te(),D.value?(E.value=!1,D.value.start(j,e=>{Math.min(e,j)===j&&(D.value?.stop(),H.onClose?.(),oe())})):(E.value=!1,H.onClose?.(),oe()),B("drawer-close"))}),n(()=>{H.isOpen&&S&&(H.resetScrollOnOpen&&s(()=>le()),J(),M.value=O()+1,D.value||(D.value=$()),D.value.start(100,e=>{100===Math.min(e,100)&&(D.value?.stop(),E.value=!0)}),k.value&&k.value.focus())});const{clearEventListeners:se}=y({escHandler:H.dismissible?ae:void 0});return r(()=>{oe(),se(),D.value&&D.value.stop()}),C({drawerContent:k,recalculateSize:()=>{s(()=>{q()})},scrollToTop:le}),(t,o)=>u(R)?(v(),d("div",{key:0,class:p(u(Q)),"data-testid":e.testId,style:c(u(Y))},[m("div",{ref:"drawer-content",class:p(u(U)),style:c(u(Z)),role:"dialog",tabindex:-1},[f(t.$slots,"default")],6),e.overlay?(v(),d("div",{key:0,class:p(`${A}__overlay`),style:c({zIndex:u(X)}),onClick:o[0]||(o[0]=t=>e.dismissible?ae():void 0)},null,6)):i("",!0)],14,g)):i("",!0)}});export{C as CLDrawer,C as default};
@@ -44,10 +44,10 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<CL
44
44
  "onDrawer-open"?: (() => any) | undefined;
45
45
  "onDrawer-close"?: (() => any) | undefined;
46
46
  }>, {
47
- rounded: boolean;
48
- testId: string;
49
47
  left: string;
50
48
  width: string;
49
+ rounded: boolean;
50
+ testId: string;
51
51
  borderRadius: CLBorderRadius;
52
52
  position: CLDrawerPosition;
53
53
  snapPoint: number;
@@ -1 +1 @@
1
- .clll-calendar{display:flex;flex-direction:column;background-color:var(--clll-calendar-content-bg);box-sizing:border-box;width:var(--v5d82e3ae)}.clll-calendar__fluid{width:100%;max-width:none}.clll-calendar__header{display:flex;justify-content:space-between;align-items:center;margin-bottom:var(--clll-unit-4)}.clll-calendar__grid{display:grid;grid-template-columns:repeat(7,1fr);gap:var(--clll-unit-1)}.clll-calendar__weekday{text-align:center;padding-bottom:var(--clll-unit-1)}.clll-calendar__cell{aspect-ratio:1;display:flex;justify-content:center;align-items:center}.clll-calendar__cell--outside{opacity:.55}.clll-calendar__cell--same-day .clll-button{outline:2px solid var(--clll-button-bg-color);outline-offset:2px}
1
+ .clll-calendar{display:flex;flex-direction:column;background-color:var(--clll-calendar-content-bg);box-sizing:border-box;width:var(--v2a0ead45)}.clll-calendar__fluid{width:100%;max-width:none}.clll-calendar__header{display:flex;justify-content:space-between;align-items:center;margin-bottom:var(--clll-unit-4)}.clll-calendar__grid{display:grid;grid-template-columns:repeat(7,1fr);gap:var(--clll-unit-1)}.clll-calendar__weekday{text-align:center;padding-bottom:var(--clll-unit-1)}.clll-calendar__cell{aspect-ratio:1;display:flex;justify-content:center;align-items:center}.clll-calendar__cell--outside{opacity:.55}.clll-calendar__cell--same-day .clll-button{outline:2px solid var(--clll-button-bg-color);outline-offset:2px}
@@ -1,3 +1,3 @@
1
1
  import '../../../assets/core.css';
2
2
  import './CLCalendar.css';
3
- import{_ as a}from"../../../chunks/CLCalendar.vue_vue_type_style_index_0_lang-BsB4QKTu.js";export{a as CLCalendar,a as default};
3
+ import{_ as a}from"../../../chunks/CLCalendar.vue_vue_type_style_index_0_lang-DUc5dHAZ.js";export{a as CLCalendar,a as default};
@@ -1,6 +1,8 @@
1
1
  import { CLColors } from '../../../index.ts';
2
- import { ISODate } from '../../../composables/useDatePicker';
2
+ import { CLISODate, CLAllowedDates } from '../../../composables/useDatePicker';
3
3
  export interface CLCalendarProps {
4
+ /** Allowed dates or range of dates that can be selected. When specified, all other dates appear disabled. */
5
+ allowedDates?: CLAllowedDates;
4
6
  /** The color theme of the calendar selection. */
5
7
  color?: CLColors;
6
8
  /** Sets the disabled state. */
@@ -18,8 +20,8 @@ export interface CLCalendarProps {
18
20
  }
19
21
  declare const _default: import('vue').DefineComponent<{
20
22
  modelValue?: {
21
- end: ISODate | null;
22
- start: ISODate | null;
23
+ end: CLISODate | null;
24
+ start: CLISODate | null;
23
25
  } | null;
24
26
  } & CLCalendarProps, {
25
27
  apply: () => void;
@@ -30,28 +32,29 @@ declare const _default: import('vue').DefineComponent<{
30
32
  reset: () => void;
31
33
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
32
34
  "update:modelValue": (value: {
33
- end: ISODate | null;
34
- start: ISODate | null;
35
+ end: CLISODate | null;
36
+ start: CLISODate | null;
35
37
  } | null) => any;
36
38
  "date-select": (date: string) => any;
37
39
  }, string, import('vue').PublicProps, Readonly<{
38
40
  modelValue?: {
39
- end: ISODate | null;
40
- start: ISODate | null;
41
+ end: CLISODate | null;
42
+ start: CLISODate | null;
41
43
  } | null;
42
44
  } & CLCalendarProps> & Readonly<{
43
45
  "onUpdate:modelValue"?: ((value: {
44
- end: ISODate | null;
45
- start: ISODate | null;
46
+ end: CLISODate | null;
47
+ start: CLISODate | null;
46
48
  } | null) => any) | undefined;
47
49
  "onDate-select"?: ((date: string) => any) | undefined;
48
50
  }>, {
51
+ width: string;
52
+ allowedDates: CLAllowedDates;
53
+ isRange: boolean;
49
54
  color: CLColors;
50
55
  fluid: boolean;
51
56
  testId: string;
52
- width: string;
53
57
  busy: boolean;
54
58
  disabled: boolean;
55
- isRange: boolean;
56
59
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
57
60
  export default _default;
@@ -1,4 +1,4 @@
1
1
  import '../../../assets/core.css';
2
2
  import './CLCheckbox.css';
3
3
  import '../../../assets/shared/form-utilities.css';
4
- import{defineComponent as e,mergeModels as a,useTemplateRef as l,useModel as s,computed as o,createBlock as d,openBlock as u,withCtx as i,createElementVNode as t,createCommentVNode as n,normalizeStyle as r,normalizeClass as c,unref as m,withDirectives as f,vModelCheckbox as p,createVNode as b,createTextVNode as _,toDisplayString as y}from"vue";import{_ as X,a as v}from"../../../chunks/CLInputMessages.vue_vue_type_style_index_0_lang-CtGriC2l.js";import{_ as L}from"../../../chunks/CLIcon.vue_vue_type_style_index_0_lang-BN_rKLKK.js";import{_ as h}from"../../../chunks/CLText.vue_vue_type_style_index_0_lang-BZQzsJMF.js";import{C as $,e as g,a as k,f as x,c as C,d as B}from"../../../chunks/index-DwjW-Z-U.js";import{a as T}from"../../../chunks/utils-BDThP-Sb.js";import{useTheme as q}from"../../../composables/useTheme.js";const M=["data-testid"],F=["for","disabled"],j=["id","aria-label","disabled","form","name","required","value"],z=/* @__PURE__ */e({name:"CLCheckbox",__name:"CLCheckbox",props:/* @__PURE__ */a({ariaLabel:{default:void 0},borderRadius:{default:void 0},busy:{type:Boolean,default:!1},color:{default:B.Neutral},disabled:{type:Boolean,default:!1},form:{default:void 0},id:{},label:{default:void 0},messages:{default:()=>[]},messageType:{default:void 0},name:{},onBlur:{type:Function,default:void 0},onChange:{type:Function,default:void 0},onFocus:{type:Function,default:void 0},required:{type:Boolean,default:!1},rounded:{type:Boolean,default:!0},size:{default:$.Small},testId:{default:"clll-checkbox"},value:{type:[String,Number,Boolean],default:void 0},variant:{default:C.Outline}},{modelValue:{type:Boolean},modelModifiers:{}}),emits:["update:modelValue"],setup(e,{expose:a}){const C={[$.Tiny]:g.Tiny,[$.Small]:g.Tiny,[$.Medium]:g.Small,[$.Large]:g.Medium,[$.XL]:g.Medium,[$.XXL]:g.Large,[$.XXXL]:g.Large,[$.XXXXL]:g.XL},B={[$.Tiny]:k.Small,[$.Small]:k.Medium,[$.Medium]:k.Medium,[$.Large]:k.Large,[$.XL]:k.XL,[$.XXL]:k.XXL,[$.XXXL]:k.XXXL,[$.XXXXL]:k.XXXXL},z=e,S=q(),I=l("checkbox-ref"),R=s(e,"modelValue"),V="clll-checkbox",N=o(()=>[V,z.borderRadius?`${V}--${z.borderRadius}`:"",z.busy?`${V}--busy`:`${V}--ready`,z.disabled?`${V}--disabled`:`${V}--active`,z.label?`${V}--haslabel`:"",`${V}--${z.color}`,`${V}--${z.size}`,z.messageType?`${V}--${z.messageType}`:"",z.rounded?`${V}--rounded`:`${V}--box`,z.required?`${V}--required`:`${V}--optional`]),O=o(()=>[`${V}__checkbox-container`,`${V}--${z.variant}`]),U=()=>{I.value&&I.value.focus()};return a({checkboxRef:I}),(a,l)=>(u(),d(X,null,{default:i(()=>[t("span",{class:c(m(N)),style:r(m(T)({color:e.color,variant:e.variant,theme:m(S)})),"data-testid":e.testId},[t("span",{class:c(m(O)),onClick:U},[t("label",{for:e.id,class:c(`${V}__label`),disabled:e.disabled},[t("span",{class:c([`${V}__checkbox-frame`,"form-control-flex"])},[f(t("input",{id:e.id,ref:"checkbox-ref","onUpdate:modelValue":l[0]||(l[0]=e=>R.value=e),"aria-label":e.ariaLabel,class:c(`${V}__checkbox`),disabled:e.disabled||e.busy,form:e.form,name:e.name,required:e.required,type:"checkbox",value:e.value,onBlur:l[1]||(l[1]=(...a)=>e.onBlur&&e.onBlur(...a)),onChange:l[2]||(l[2]=(...a)=>e.onChange&&e.onChange(...a)),onFocus:l[3]||(l[3]=(...a)=>e.onFocus&&e.onFocus(...a))},null,42,j),[[p,R.value]]),t("span",{class:c(`${V}__icon`)},[b(m(L),{name:m(x).Check,size:C[e.size]},null,8,["name","size"])],2)],2),e.label?(u(),d(m(h),{key:0,as:"span",type:B[e.size],class:c(e.required?`${V}__label--required`:"")},{default:i(()=>[_(y(e.label),1)]),_:1},8,["type","class"])):n("",!0)],10,F)],2)],14,M),e.id?(u(),d(v,{key:0,id:e.id,messages:e.messages,"message-type":e.messageType},null,8,["id","messages","message-type"])):n("",!0)]),_:1}))}});export{z as CLCheckbox,z as default};
4
+ import{defineComponent as e,mergeModels as a,useTemplateRef as l,useModel as s,computed as o,createBlock as d,openBlock as u,withCtx as i,createElementVNode as t,createCommentVNode as n,normalizeStyle as r,normalizeClass as m,unref as c,withDirectives as p,vModelCheckbox as f,createVNode as b,createTextVNode as _,toDisplayString as y}from"vue";import{_ as v}from"../../../chunks/CLFormField.vue_vue_type_style_index_0_lang-Rf_Mo_VS.js";import{_ as X}from"../../../chunks/CLInputMessages.vue_vue_type_style_index_0_lang-gkHODA90.js";import{_ as L}from"../../../chunks/CLIcon.vue_vue_type_style_index_0_lang-BmRKmzSl.js";import{_ as h}from"../../../chunks/CLText.vue_vue_type_style_index_0_lang-CdA4TW0N.js";import{c as g,e as $,d as k,f as x,a as C,b as B}from"../../../chunks/index-DsloP0ml.js";import{a as T}from"../../../chunks/utils-jYeghjKF.js";import{useTheme as F}from"../../../composables/useTheme.js";const q=["data-testid"],M=["for","disabled"],j=["id","aria-label","disabled","form","name","required","value"],z=/* @__PURE__ */e({name:"CLCheckbox",__name:"CLCheckbox",props:/* @__PURE__ */a({ariaLabel:{default:void 0},borderRadius:{default:void 0},busy:{type:Boolean,default:!1},color:{default:B.Neutral},disabled:{type:Boolean,default:!1},form:{default:void 0},id:{},label:{default:void 0},messages:{default:()=>[]},messageType:{default:void 0},name:{},onBlur:{type:Function,default:void 0},onChange:{type:Function,default:void 0},onFocus:{type:Function,default:void 0},required:{type:Boolean,default:!1},rounded:{type:Boolean,default:!0},size:{default:g.Small},testId:{default:"clll-checkbox"},value:{type:[String,Number,Boolean],default:void 0},variant:{default:C.Outline}},{modelValue:{type:Boolean},modelModifiers:{}}),emits:["update:modelValue"],setup(e,{expose:a}){const C={[g.Tiny]:$.Tiny,[g.Small]:$.Tiny,[g.Medium]:$.Small,[g.Large]:$.Medium,[g.XL]:$.Medium,[g.XXL]:$.Large,[g.XXXL]:$.Large,[g.XXXXL]:$.XL},B={[g.Tiny]:k.Small,[g.Small]:k.Medium,[g.Medium]:k.Medium,[g.Large]:k.Large,[g.XL]:k.XL,[g.XXL]:k.XXL,[g.XXXL]:k.XXXL,[g.XXXXL]:k.XXXXL},z=e,S=F(),I=l("checkbox-ref"),R=s(e,"modelValue"),V="clll-checkbox",N=o(()=>[V,z.borderRadius?`${V}--${z.borderRadius}`:"",z.busy?`${V}--busy`:`${V}--ready`,z.disabled?`${V}--disabled`:`${V}--active`,z.label?`${V}--haslabel`:"",`${V}--${z.color}`,`${V}--${z.size}`,z.messageType?`${V}--${z.messageType}`:"",z.rounded?`${V}--rounded`:`${V}--box`,z.required?`${V}--required`:`${V}--optional`]),O=o(()=>[`${V}__checkbox-container`,`${V}--${z.variant}`]),U=()=>{I.value&&I.value.focus()};return a({checkboxRef:I}),(a,l)=>(u(),d(v,null,{default:i(()=>[t("span",{class:m(c(N)),style:r(c(T)({color:e.color,variant:e.variant,theme:c(S)})),"data-testid":e.testId},[t("span",{class:m(c(O)),onClick:U},[t("label",{for:e.id,class:m(`${V}__label`),disabled:e.disabled},[t("span",{class:m([`${V}__checkbox-frame`,"form-control-flex"])},[p(t("input",{id:e.id,ref:"checkbox-ref","onUpdate:modelValue":l[0]||(l[0]=e=>R.value=e),"aria-label":e.ariaLabel,class:m(`${V}__checkbox`),disabled:e.disabled||e.busy,form:e.form,name:e.name,required:e.required,type:"checkbox",value:e.value,onBlur:l[1]||(l[1]=(...a)=>e.onBlur&&e.onBlur(...a)),onChange:l[2]||(l[2]=(...a)=>e.onChange&&e.onChange(...a)),onFocus:l[3]||(l[3]=(...a)=>e.onFocus&&e.onFocus(...a))},null,42,j),[[f,R.value]]),t("span",{class:m(`${V}__icon`)},[b(c(L),{name:c(x).Check,size:C[e.size]},null,8,["name","size"])],2)],2),e.label?(u(),d(c(h),{key:0,as:"span",type:B[e.size],class:m(e.required?`${V}__label--required`:"")},{default:i(()=>[_(y(e.label),1)]),_:1},8,["type","class"])):n("",!0)],10,M)],2)],14,q),e.id?(u(),d(X,{key:0,id:e.id,messages:e.messages,"message-type":e.messageType},null,8,["id","messages","message-type"])):n("",!0)]),_:1}))}});export{z as CLCheckbox,z as default};
@@ -52,18 +52,18 @@ declare const _default: import('vue').DefineComponent<{
52
52
  } & CLCheckboxProps> & Readonly<{
53
53
  "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
54
54
  }>, {
55
+ form: string;
56
+ label: string;
57
+ value: string | number | boolean;
55
58
  size: CLSizes;
56
59
  color: CLColors;
57
60
  variant: CLColorVariants.Outline | CLColorVariants.Ghost;
58
61
  rounded: boolean;
59
62
  testId: string;
60
- form: string;
61
- label: string;
62
63
  onFocus: CLGenericFocusFunction;
63
64
  onBlur: CLGenericFocusFunction;
64
65
  onChange: CLGenericFunction;
65
66
  borderRadius: CLBorderRadius;
66
- value: string | number | boolean;
67
67
  required: boolean;
68
68
  ariaLabel: string;
69
69
  busy: boolean;
@@ -1,4 +1,4 @@
1
1
  import '../../../assets/core.css';
2
2
  import './CLInput.css';
3
3
  import '../../../assets/shared/form-utilities.css';
4
- import{defineComponent as e,computed as l,createElementBlock as a,openBlock as o,normalizeClass as i,unref as t,createBlock as r,Fragment as s,createTextVNode as d,toDisplayString as n,createVNode as u,ref as p,watch as c,createCommentVNode as f,mergeModels as m,useTemplateRef as b,useModel as y,withCtx as x,createElementVNode as v,normalizeStyle as _,withDirectives as g,vModelDynamic as h,isRef as L}from"vue";import{_ as C,a as X}from"../../../chunks/CLInputMessages.vue_vue_type_style_index_0_lang-CtGriC2l.js";import{_ as k}from"../../../chunks/CLFormLabel.vue_vue_type_script_setup_true_lang-D7UZMu_6.js";import{_ as z}from"../../../chunks/CLFormCharCounter.vue_vue_type_style_index_0_lang-hB5Ua5Ta.js";import{_ as $}from"../../../chunks/CLIcon.vue_vue_type_style_index_0_lang-BN_rKLKK.js";import{_ as I}from"../../../chunks/CLButton.vue_vue_type_style_index_0_lang-hSiZPrZr.js";import{C as F,d as S,h as B,e as T,c as R,f as V}from"../../../chunks/index-DwjW-Z-U.js";import{_ as j}from"../../../chunks/CLPill.vue_vue_type_style_index_0_lang-mVxJKPLS.js";import{h as P,f as q,C as w}from"../../../chunks/index-C9S3C1LU.js";import{i as M}from"../../../chunks/utils-BDThP-Sb.js";import{useTheme as N}from"../../../composables/useTheme.js";const U=["data-testid"],A=/* @__PURE__ */e({name:"CLInputPrefix",__name:"CLInputPrefix",props:{ariaLabel:{default:void 0},borderRadius:{default:B.XS},color:{default:S.Neutral},disabled:{type:Boolean,default:!1},grouped:{type:Boolean,default:!1},onClick:{type:Function,default:void 0},prefix:{},size:{default:F.Small},testId:{default:"clll-input-prefix"}},setup(e){const u=e,p="clll-input",c=e=>Object.values(V).includes(e),f={[F.Tiny]:T.Tiny,[F.Small]:T.Small,[F.Medium]:T.Medium,[F.Large]:T.Large,[F.XL]:T.XL,[F.XXL]:T.XXL,[F.XXXL]:T.XXXL,[F.XXXXL]:T.XXXXL},m=l(()=>!!u.onClick&&c(u.prefix)),b=l(()=>{return[`${p}__input-prefix`,"form-addon-flex","form-addon-flex--left",c(u.prefix)?`${p}__input-prefix--icon form-addon-flex--icon`:`${p}__input-prefix--string form-addon-flex--string`,{"--interactive":m},{"--input-group":u.grouped||u.prefix},{"--disabled":u.disabled},u.grouped?`form-addon-radius--left-${e=u.borderRadius,e?.replace("rounded-","")||"xs"}`:""];var e}),y=e=>{u.onClick&&e&&!u.disabled&&(e.stopPropagation(),u.onClick(e))};return(l,u)=>(o(),a("div",{class:i(t(b))},[t(m)?(o(),r(t(I),{key:0,"aria-label":e.ariaLabel,"border-radius":e.borderRadius,color:e.color,disabled:e.disabled,"icon-before":e.prefix,"icon-size":f[e.size],"on-click":y,size:e.size,"test-id":e.testId,variant:t(R).Text,wrap:""},null,8,["aria-label","border-radius","color","disabled","icon-before","icon-size","size","test-id","variant"])):(o(),a("span",{key:1,class:"icon-container","data-testid":e.testId},[c(e.prefix)?(o(),r(t($),{key:0,name:e.prefix,size:f[e.size],color:e.color},null,8,["name","size","color"])):(o(),a(s,{key:1},[d(n(e.prefix),1)],64))],8,U))],2))}}),O=["data-testid"],E=/* @__PURE__ */e({name:"CLInputSuffix",__name:"CLInputSuffix",props:{ariaLabel:{default:void 0},borderRadius:{default:B.XS},color:{default:S.Neutral},disabled:{type:Boolean,default:!1},grouped:{type:Boolean,default:!1},onClick:{type:Function,default:void 0},suffix:{},size:{default:F.Small},testId:{default:"clll-input-suffix"}},setup(e){const u=e,p="clll-input",c=e=>Object.values(V).includes(e),f={[F.Tiny]:T.Tiny,[F.Small]:T.Small,[F.Medium]:T.Medium,[F.Large]:T.Large,[F.XL]:T.XL,[F.XXL]:T.XXL,[F.XXXL]:T.XXXL,[F.XXXXL]:T.XXXXL},m=l(()=>!!u.onClick&&c(u.suffix)),b=l(()=>{return[`${p}__input-suffix`,"form-addon-flex","form-addon-flex--right",c(u.suffix)?`${p}__input-suffix--icon form-addon-flex--icon`:`${p}__input-suffix--string form-addon-flex--string`,{"--interactive":m},{"--input-group":u.grouped||u.suffix},{"--disabled":u.disabled},u.grouped?`form-addon-radius--right-${e=u.borderRadius,e?.replace("rounded-","")||"xs"}`:""];var e}),y=e=>{u.onClick&&e&&!u.disabled&&(e.stopPropagation(),u.onClick(e))};return(l,u)=>(o(),a("div",{class:i(t(b))},[t(m)?(o(),r(t(I),{key:0,"aria-label":e.ariaLabel,"border-radius":e.borderRadius,color:e.color,disabled:e.disabled,"icon-before":e.suffix,"icon-size":f[e.size],"on-click":y,size:e.size,"test-id":e.testId,variant:t(R).Text,wrap:""},null,8,["aria-label","border-radius","color","disabled","icon-before","icon-size","size","test-id","variant"])):(o(),a("span",{key:1,class:"icon-container","data-testid":e.testId},[c(e.suffix)?(o(),r(t($),{key:0,name:e.suffix,size:f[e.size],color:e.color},null,8,["name","size","color"])):(o(),a(s,{key:1},[d(n(e.suffix),1)],64))],8,O))],2))}}),G=["data-testid"],H=/* @__PURE__ */e({name:"CLInputPill",__name:"CLInputPill",props:{color:{default:S.Neutral},label:{},testId:{default:"clll-input-pill"}},setup:e=>(l,r)=>(o(),a("span",{class:i("clll-input__pill"),"data-testid":e.testId},[u(t(j),{color:e.color,label:e.label,variant:t(R).Soft},null,8,["color","label","variant"])],10,G))}),D=["data-testid"],J=/* @__PURE__ */e({name:"CLInputColorTools",__name:"CLInputColorTools",props:{copied:{type:Boolean,default:!1},initialValue:{default:void 0},modelValue:{default:void 0},size:{default:F.Small},testId:{default:"clll-input-color-tools"}},emits:["copy","reset","update:copied"],setup(e,{emit:l}){const s=e,d=l,n="clll-input",u=p(s.copied),m={[F.Tiny]:T.Tiny,[F.Small]:T.Small,[F.Medium]:T.Medium,[F.Large]:T.Large,[F.XL]:T.XL,[F.XXL]:T.XXL,[F.XXXL]:T.XXXL,[F.XXXXL]:T.XXXXL},b=async()=>{try{s.modelValue&&(await navigator.clipboard.writeText(s.modelValue.toString()),u.value=!0,d("update:copied",!0),d("copy"))}catch(e){console.error(e)}},y=()=>{d("reset",s.initialValue)};return c(()=>s.copied,e=>{u.value=e}),c(()=>s.modelValue,()=>{u.value=!1,d("update:copied",!1)}),(l,s)=>(o(),a("span",{class:i(`${n}__selected-color-tools`),"data-testid":e.testId},[e.modelValue?(o(),r(t(I),{key:0,"aria-label":"Copy color to clipboard",class:i(`${n}__copy-to-clipboard`),color:t(S).Neutral,"icon-before":t(u)?t(V).Check:t(V).Copy,"icon-size":m[e.size],"on-click":b,size:e.size,title:t(u)?"Color copied to clipboard":"Copy color to clipboard",variant:t(R).Ghost,wrap:""},null,8,["class","color","icon-before","icon-size","size","title","variant"])):f("",!0),e.modelValue?(o(),r(t(I),{key:1,"aria-label":"Reset selected color",class:i(`${n}__reset-selected-color`),color:t(S).Neutral,"on-click":y,"icon-before":t(V).Restore,"icon-size":m[e.size],size:e.size,title:"Reset selected color",variant:t(R).Ghost,wrap:""},null,8,["class","color","icon-before","icon-size","size","variant"])):f("",!0)],10,D))}}),K=["data-testid"],Q=["id","name","aria-label","autocomplete","disabled","form","maxlength","minlength","pattern","placeholder","readonly","required","spellcheck","type"],W=/* @__PURE__ */e({name:"CLInput",__name:"CLInput",props:/* @__PURE__ */m({ariaLabel:{default:void 0},autoComplete:{type:Boolean,default:void 0},borderRadius:{default:void 0},busy:{type:Boolean,default:!1},charCounter:{type:Boolean,default:!1},color:{default:S.Neutral},disabled:{type:Boolean,default:!1},fluid:{type:Boolean,default:!1},form:{default:void 0},grouped:{type:Boolean,default:!1},id:{},label:{default:void 0},maxLength:{default:void 0},messages:{default:()=>[]},messageType:{default:void 0},minLength:{default:void 0},name:{},onBlur:{type:Function,default:void 0},onChange:{type:Function,default:void 0},onFocus:{type:Function,default:void 0},onInput:{type:Function,default:void 0},onPrefixClick:{type:Function,default:void 0},onSuffixClick:{type:Function,default:void 0},orientation:{default:q.Vertical},pattern:{default:void 0},pill:{default:void 0},placeholder:{default:void 0},prefix:{default:void 0},prefixAriaLabel:{default:void 0},readonly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},rounded:{type:Boolean,default:!0},size:{default:F.Small},spellCheck:{type:Boolean,default:void 0},suffix:{default:void 0},suffixAriaLabel:{default:void 0},testId:{default:"clll-input"},type:{default:P.Text},variant:{default:R.Outline}},{modelValue:{},modelModifiers:{}}),emits:/* @__PURE__ */m(["reset"],["update:modelValue"]),setup(e,{expose:s,emit:d}){const u=e,m=d,$=N(),I="clll-input",F=p(!1),S=b("input-elem"),B=y(e,"modelValue");u.type!==P.Color||B.value||(B.value="#FFFFFF");const T=B.value?.toString(),R=e=>Object.values(V).includes(e),j=l(()=>[I,u.borderRadius?`${I}--${u.borderRadius}`:"",u.busy?`${I}--busy`:`${I}--ready`,`${I}--${u.color}`,`${I}--${u.size}`,`${I}--${u.type}`,`${I}--${u.variant}`,u.disabled||u.busy?`${I}--disabled`:`${I}--active`,u.fluid||u.orientation===q.Horizontal?`${I}--fluid`:`${I}--fixed`,u.grouped?`${I}--grouped`:"",u.label?`${I}--haslabel`:"",u.messageType?`${I}--${u.messageType}`:"",u.orientation?`${I}--${u.orientation}`:"",u.pill?`${I}--haspill`:"",u.charCounter&&u.maxLength&&[P.Email,P.None,P.Text,P.Url].includes(u.type)?`${I}--hascharcounter`:"",u.prefix&&![P.Color,P.File].includes(u.type)?`${I}--hasprefix`:"",u.prefix&&![P.Color,P.File].includes(u.type)?R(u.prefix)?`${I}--hasiconprefix`:`${I}--hascustomprefix`:"",u.readonly?`${I}--readonly`:`${I}--writeable`,u.rounded?`${I}--rounded`:`${I}--box`,u.required?`${I}--required`:`${I}--optional`,u.suffix&&![P.Color,P.File].includes(u.type)?`${I}--hassuffix`:"",u.suffix&&![P.Color,P.File].includes(u.type)?R(u.suffix)?`${I}--hasiconsuffix`:`${I}--hascustomsuffix`:""]),U=l(()=>[`${I}__input`,{"--nocolor":u.type===P.Color&&!B.value},{"--input-group":u.grouped||u.prefix||u.suffix}]),O=e=>{B.value=e,m("reset",B.value)},G=e=>{!e.target.closest('button, a, [role="button"]')&&S.value&&S.value.focus()};return c(B,()=>{F.value=!1}),s({inputRef:S}),(l,s)=>(o(),r(C,{fluid:e.fluid,"has-pill":!!e.pill,"has-char-counter":!(!e.charCounter||!e.maxLength),orientation:e.orientation},{default:x(()=>[v("span",{class:i(t(j)),style:_(t(M)({color:e.color,variant:e.variant,theme:t($)})),"data-testid":e.testId},[e.label?(o(),r(k,{key:0,"css-prefix":I,"html-for":e.id,label:e.label,required:e.required,size:e.size},null,8,["html-for","label","required","size"])):f("",!0),v("span",{class:i([`${I}__input-container`,"--focus-within"]),onClick:G},[e.prefix&&![t(P).Color,t(P).File].includes(e.type)?(o(),r(A,{key:0,prefix:e.prefix,size:e.size,grouped:e.grouped,"border-radius":e.borderRadius,color:e.color,"on-click":e.onPrefixClick,"aria-label":e.prefixAriaLabel,disabled:e.disabled||e.busy},null,8,["prefix","size","grouped","border-radius","color","on-click","aria-label","disabled"])):f("",!0),v("span",{class:i(`${I}__input-border-control`)},[g(v("input",{id:e.id,ref:"input-elem","onUpdate:modelValue":s[0]||(s[0]=e=>B.value=e),name:e.name,"aria-label":e.ariaLabel,autocomplete:e.autoComplete?"on":"off",class:i(t(U)),disabled:e.disabled||e.busy,form:e.form,maxlength:e.maxLength,minlength:e.minLength,pattern:e.pattern,placeholder:e.placeholder,readonly:e.readonly,required:e.required,spellcheck:e.spellCheck,type:e.type,onBlur:s[1]||(s[1]=(...l)=>e.onBlur&&e.onBlur(...l)),onChange:s[2]||(s[2]=(...l)=>e.onChange&&e.onChange(...l)),onFocus:s[3]||(s[3]=(...l)=>e.onFocus&&e.onFocus(...l)),onInput:s[4]||(s[4]=(...l)=>e.onInput&&e.onInput(...l))},null,42,Q),[[h,B.value]])],2),e.type===t(P).Color?(o(),a("span",{key:1,class:i(`${I}__selected-color`)},n(B.value||"none"),3)):f("",!0),e.type===t(P).Color?(o(),r(J,{key:2,modelValue:B.value,"onUpdate:modelValue":s[5]||(s[5]=e=>B.value=e),copied:t(F),"onUpdate:copied":s[6]||(s[6]=e=>L(F)?F.value=e:null),"initial-value":t(T),size:e.size,onReset:O},null,8,["modelValue","copied","initial-value","size"])):f("",!0),e.suffix&&![t(P).Color,t(P).File].includes(e.type)?(o(),r(E,{key:3,suffix:e.suffix,size:e.size,grouped:e.grouped,"border-radius":e.borderRadius,color:e.color,"on-click":e.onSuffixClick,"aria-label":e.suffixAriaLabel,disabled:e.disabled||e.busy},null,8,["suffix","size","grouped","border-radius","color","on-click","aria-label","disabled"])):f("",!0),e.charCounter&&e.maxLength&&[t(P).Email,t(P).None,t(P).Text,t(P).Url].includes(e.type)?(o(),r(z,{key:4,color:e.color,"css-prefix":I,"current-length":B.value?B.value.toString().length:0,"max-length":e.maxLength,layout:t(w).Inline,size:e.size},null,8,["color","current-length","max-length","layout","size"])):f("",!0)],2)],14,K),e.pill&&e.label&&e.orientation===t(q).Horizontal?(o(),a("span",{key:0,class:i(`${I}__spacer`)},null,2)):f("",!0),e.pill?(o(),r(H,{key:1,label:e.pill,color:e.color},null,8,["label","color"])):f("",!0),e.id?(o(),r(X,{key:2,id:e.id,messages:e.messages,"message-type":e.messageType},null,8,["id","messages","message-type"])):f("",!0)]),_:1},8,["fluid","has-pill","has-char-counter","orientation"]))}});W.Prefix=A,W.Suffix=E,W.Pill=H,W.ColorTools=J;export{W as CLInput,W as default};
4
+ import{defineComponent as e,computed as l,createElementBlock as a,openBlock as o,normalizeClass as i,unref as t,createBlock as r,Fragment as s,createTextVNode as d,toDisplayString as n,createVNode as u,ref as p,watch as c,createCommentVNode as f,mergeModels as m,useTemplateRef as b,useModel as y,withCtx as x,createElementVNode as v,normalizeStyle as _,withDirectives as g,vModelDynamic as h,isRef as L}from"vue";import{_ as C}from"../../../chunks/CLFormField.vue_vue_type_style_index_0_lang-Rf_Mo_VS.js";import{_ as X}from"../../../chunks/CLInputMessages.vue_vue_type_style_index_0_lang-gkHODA90.js";import{_ as k}from"../../../chunks/CLFormLabel.vue_vue_type_script_setup_true_lang-DoM5X-sA.js";import{_ as z}from"../../../chunks/CLFormCharCounter.vue_vue_type_style_index_0_lang-D3Ao581E.js";import{_ as $}from"../../../chunks/CLIcon.vue_vue_type_style_index_0_lang-BmRKmzSl.js";import{_ as I}from"../../../chunks/CLButton.vue_vue_type_style_index_0_lang-pE0JrYmS.js";import{c as F,b as S,h as B,e as T,a as R,f as V}from"../../../chunks/index-DsloP0ml.js";import{_ as j}from"../../../chunks/CLPill.vue_vue_type_style_index_0_lang-BjrbTAI3.js";import{h as P,a as q,C as w}from"../../../chunks/index-wkMXT2wB.js";import{b as M}from"../../../chunks/utils-jYeghjKF.js";import{useTheme as N}from"../../../composables/useTheme.js";const U=["data-testid"],A=/* @__PURE__ */e({name:"CLInputPrefix",__name:"CLInputPrefix",props:{ariaLabel:{default:void 0},borderRadius:{default:B.XS},color:{default:S.Neutral},disabled:{type:Boolean,default:!1},grouped:{type:Boolean,default:!1},onClick:{type:Function,default:void 0},prefix:{},size:{default:F.Small},testId:{default:"clll-input-prefix"}},setup(e){const u=e,p="clll-input",c=e=>Object.values(V).includes(e),f={[F.Tiny]:T.Tiny,[F.Small]:T.Small,[F.Medium]:T.Medium,[F.Large]:T.Large,[F.XL]:T.XL,[F.XXL]:T.XXL,[F.XXXL]:T.XXXL,[F.XXXXL]:T.XXXXL},m=l(()=>!!u.onClick&&c(u.prefix)),b=l(()=>{return[`${p}__input-prefix`,"form-addon-flex","form-addon-flex--left",c(u.prefix)?`${p}__input-prefix--icon form-addon-flex--icon`:`${p}__input-prefix--string form-addon-flex--string`,{"--interactive":m},{"--input-group":u.grouped||u.prefix},{"--disabled":u.disabled},u.grouped?`form-addon-radius--left-${e=u.borderRadius,e?.replace("rounded-","")||"xs"}`:""];var e}),y=e=>{u.onClick&&e&&!u.disabled&&(e.stopPropagation(),u.onClick(e))};return(l,u)=>(o(),a("div",{class:i(t(b))},[t(m)?(o(),r(t(I),{key:0,"aria-label":e.ariaLabel,"border-radius":e.borderRadius,color:e.color,disabled:e.disabled,"icon-before":e.prefix,"icon-size":f[e.size],"on-click":y,size:e.size,"test-id":e.testId,variant:t(R).Text,wrap:""},null,8,["aria-label","border-radius","color","disabled","icon-before","icon-size","size","test-id","variant"])):(o(),a("span",{key:1,class:"icon-container","data-testid":e.testId},[c(e.prefix)?(o(),r(t($),{key:0,name:e.prefix,size:f[e.size],color:e.color},null,8,["name","size","color"])):(o(),a(s,{key:1},[d(n(e.prefix),1)],64))],8,U))],2))}}),O=["data-testid"],E=/* @__PURE__ */e({name:"CLInputSuffix",__name:"CLInputSuffix",props:{ariaLabel:{default:void 0},borderRadius:{default:B.XS},color:{default:S.Neutral},disabled:{type:Boolean,default:!1},grouped:{type:Boolean,default:!1},onClick:{type:Function,default:void 0},suffix:{},size:{default:F.Small},testId:{default:"clll-input-suffix"}},setup(e){const u=e,p="clll-input",c=e=>Object.values(V).includes(e),f={[F.Tiny]:T.Tiny,[F.Small]:T.Small,[F.Medium]:T.Medium,[F.Large]:T.Large,[F.XL]:T.XL,[F.XXL]:T.XXL,[F.XXXL]:T.XXXL,[F.XXXXL]:T.XXXXL},m=l(()=>!!u.onClick&&c(u.suffix)),b=l(()=>{return[`${p}__input-suffix`,"form-addon-flex","form-addon-flex--right",c(u.suffix)?`${p}__input-suffix--icon form-addon-flex--icon`:`${p}__input-suffix--string form-addon-flex--string`,{"--interactive":m},{"--input-group":u.grouped||u.suffix},{"--disabled":u.disabled},u.grouped?`form-addon-radius--right-${e=u.borderRadius,e?.replace("rounded-","")||"xs"}`:""];var e}),y=e=>{u.onClick&&e&&!u.disabled&&(e.stopPropagation(),u.onClick(e))};return(l,u)=>(o(),a("div",{class:i(t(b))},[t(m)?(o(),r(t(I),{key:0,"aria-label":e.ariaLabel,"border-radius":e.borderRadius,color:e.color,disabled:e.disabled,"icon-before":e.suffix,"icon-size":f[e.size],"on-click":y,size:e.size,"test-id":e.testId,variant:t(R).Text,wrap:""},null,8,["aria-label","border-radius","color","disabled","icon-before","icon-size","size","test-id","variant"])):(o(),a("span",{key:1,class:"icon-container","data-testid":e.testId},[c(e.suffix)?(o(),r(t($),{key:0,name:e.suffix,size:f[e.size],color:e.color},null,8,["name","size","color"])):(o(),a(s,{key:1},[d(n(e.suffix),1)],64))],8,O))],2))}}),G=["data-testid"],H=/* @__PURE__ */e({name:"CLInputPill",__name:"CLInputPill",props:{color:{default:S.Neutral},label:{},testId:{default:"clll-input-pill"}},setup:e=>(l,r)=>(o(),a("span",{class:i("clll-input__pill"),"data-testid":e.testId},[u(t(j),{color:e.color,label:e.label,variant:t(R).Soft},null,8,["color","label","variant"])],10,G))}),D=["data-testid"],J=/* @__PURE__ */e({name:"CLInputColorTools",__name:"CLInputColorTools",props:{copied:{type:Boolean,default:!1},initialValue:{default:void 0},modelValue:{default:void 0},size:{default:F.Small},testId:{default:"clll-input-color-tools"}},emits:["copy","reset","update:copied"],setup(e,{emit:l}){const s=e,d=l,n="clll-input",u=p(s.copied),m={[F.Tiny]:T.Tiny,[F.Small]:T.Small,[F.Medium]:T.Medium,[F.Large]:T.Large,[F.XL]:T.XL,[F.XXL]:T.XXL,[F.XXXL]:T.XXXL,[F.XXXXL]:T.XXXXL},b=async()=>{try{s.modelValue&&(await navigator.clipboard.writeText(s.modelValue.toString()),u.value=!0,d("update:copied",!0),d("copy"))}catch(e){console.error(e)}},y=()=>{d("reset",s.initialValue)};return c(()=>s.copied,e=>{u.value=e}),c(()=>s.modelValue,()=>{u.value=!1,d("update:copied",!1)}),(l,s)=>(o(),a("span",{class:i(`${n}__selected-color-tools`),"data-testid":e.testId},[e.modelValue?(o(),r(t(I),{key:0,"aria-label":"Copy color to clipboard",class:i(`${n}__copy-to-clipboard`),color:t(S).Neutral,"icon-before":t(u)?t(V).Check:t(V).Copy,"icon-size":m[e.size],"on-click":b,size:e.size,title:t(u)?"Color copied to clipboard":"Copy color to clipboard",variant:t(R).Ghost,wrap:""},null,8,["class","color","icon-before","icon-size","size","title","variant"])):f("",!0),e.modelValue?(o(),r(t(I),{key:1,"aria-label":"Reset selected color",class:i(`${n}__reset-selected-color`),color:t(S).Neutral,"on-click":y,"icon-before":t(V).Restore,"icon-size":m[e.size],size:e.size,title:"Reset selected color",variant:t(R).Ghost,wrap:""},null,8,["class","color","icon-before","icon-size","size","variant"])):f("",!0)],10,D))}}),K=["data-testid"],Q=["id","name","aria-label","autocomplete","disabled","form","maxlength","minlength","pattern","placeholder","readonly","required","spellcheck","type"],W=/* @__PURE__ */e({name:"CLInput",__name:"CLInput",props:/* @__PURE__ */m({ariaLabel:{default:void 0},autoComplete:{type:Boolean,default:void 0},borderRadius:{default:void 0},busy:{type:Boolean,default:!1},charCounter:{type:Boolean,default:!1},color:{default:S.Neutral},disabled:{type:Boolean,default:!1},fluid:{type:Boolean,default:!1},form:{default:void 0},grouped:{type:Boolean,default:!1},id:{},label:{default:void 0},maxLength:{default:void 0},messages:{default:()=>[]},messageType:{default:void 0},minLength:{default:void 0},name:{},onBlur:{type:Function,default:void 0},onChange:{type:Function,default:void 0},onFocus:{type:Function,default:void 0},onInput:{type:Function,default:void 0},onPrefixClick:{type:Function,default:void 0},onSuffixClick:{type:Function,default:void 0},orientation:{default:q.Vertical},pattern:{default:void 0},pill:{default:void 0},placeholder:{default:void 0},prefix:{default:void 0},prefixAriaLabel:{default:void 0},readonly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},rounded:{type:Boolean,default:!0},size:{default:F.Small},spellCheck:{type:Boolean,default:void 0},suffix:{default:void 0},suffixAriaLabel:{default:void 0},testId:{default:"clll-input"},type:{default:P.Text},variant:{default:R.Outline}},{modelValue:{},modelModifiers:{}}),emits:/* @__PURE__ */m(["reset"],["update:modelValue"]),setup(e,{expose:s,emit:d}){const u=e,m=d,$=N(),I="clll-input",F=p(!1),S=b("input-elem"),B=y(e,"modelValue");u.type!==P.Color||B.value||(B.value="#FFFFFF");const T=B.value?.toString(),R=e=>Object.values(V).includes(e),j=l(()=>[I,u.borderRadius?`${I}--${u.borderRadius}`:"",u.busy?`${I}--busy`:`${I}--ready`,`${I}--${u.color}`,`${I}--${u.size}`,`${I}--${u.type}`,`${I}--${u.variant}`,u.disabled||u.busy?`${I}--disabled`:`${I}--active`,u.fluid||u.orientation===q.Horizontal?`${I}--fluid`:`${I}--fixed`,u.grouped?`${I}--grouped`:"",u.label?`${I}--haslabel`:"",u.messageType?`${I}--${u.messageType}`:"",u.orientation?`${I}--${u.orientation}`:"",u.pill?`${I}--haspill`:"",u.charCounter&&u.maxLength&&[P.Email,P.None,P.Text,P.Url].includes(u.type)?`${I}--hascharcounter`:"",u.prefix&&![P.Color,P.File].includes(u.type)?`${I}--hasprefix`:"",u.prefix&&![P.Color,P.File].includes(u.type)?R(u.prefix)?`${I}--hasiconprefix`:`${I}--hascustomprefix`:"",u.readonly?`${I}--readonly`:`${I}--writeable`,u.rounded?`${I}--rounded`:`${I}--box`,u.required?`${I}--required`:`${I}--optional`,u.suffix&&![P.Color,P.File].includes(u.type)?`${I}--hassuffix`:"",u.suffix&&![P.Color,P.File].includes(u.type)?R(u.suffix)?`${I}--hasiconsuffix`:`${I}--hascustomsuffix`:""]),U=l(()=>[`${I}__input`,{"--nocolor":u.type===P.Color&&!B.value},{"--input-group":u.grouped||u.prefix||u.suffix}]),O=e=>{B.value=e,m("reset",B.value)},G=e=>{!e.target.closest('button, a, [role="button"]')&&S.value&&S.value.focus()};return c(B,()=>{F.value=!1}),s({inputRef:S}),(l,s)=>(o(),r(C,{fluid:e.fluid,"has-pill":!!e.pill,"has-char-counter":!(!e.charCounter||!e.maxLength),orientation:e.orientation},{default:x(()=>[v("span",{class:i(t(j)),style:_(t(M)({color:e.color,variant:e.variant,theme:t($)})),"data-testid":e.testId},[e.label?(o(),r(k,{key:0,"css-prefix":I,"html-for":e.id,label:e.label,required:e.required,size:e.size},null,8,["html-for","label","required","size"])):f("",!0),v("span",{class:i([`${I}__input-container`,"--focus-within"]),onClick:G},[e.prefix&&![t(P).Color,t(P).File].includes(e.type)?(o(),r(A,{key:0,prefix:e.prefix,size:e.size,grouped:e.grouped,"border-radius":e.borderRadius,color:e.color,"on-click":e.onPrefixClick,"aria-label":e.prefixAriaLabel,disabled:e.disabled||e.busy},null,8,["prefix","size","grouped","border-radius","color","on-click","aria-label","disabled"])):f("",!0),v("span",{class:i(`${I}__input-border-control`)},[g(v("input",{id:e.id,ref:"input-elem","onUpdate:modelValue":s[0]||(s[0]=e=>B.value=e),name:e.name,"aria-label":e.ariaLabel,autocomplete:e.autoComplete?"on":"off",class:i(t(U)),disabled:e.disabled||e.busy,form:e.form,maxlength:e.maxLength,minlength:e.minLength,pattern:e.pattern,placeholder:e.placeholder,readonly:e.readonly,required:e.required,spellcheck:e.spellCheck,type:e.type,onBlur:s[1]||(s[1]=(...l)=>e.onBlur&&e.onBlur(...l)),onChange:s[2]||(s[2]=(...l)=>e.onChange&&e.onChange(...l)),onFocus:s[3]||(s[3]=(...l)=>e.onFocus&&e.onFocus(...l)),onInput:s[4]||(s[4]=(...l)=>e.onInput&&e.onInput(...l))},null,42,Q),[[h,B.value]])],2),e.type===t(P).Color?(o(),a("span",{key:1,class:i(`${I}__selected-color`)},n(B.value||"none"),3)):f("",!0),e.type===t(P).Color?(o(),r(J,{key:2,modelValue:B.value,"onUpdate:modelValue":s[5]||(s[5]=e=>B.value=e),copied:t(F),"onUpdate:copied":s[6]||(s[6]=e=>L(F)?F.value=e:null),"initial-value":t(T),size:e.size,onReset:O},null,8,["modelValue","copied","initial-value","size"])):f("",!0),e.suffix&&![t(P).Color,t(P).File].includes(e.type)?(o(),r(E,{key:3,suffix:e.suffix,size:e.size,grouped:e.grouped,"border-radius":e.borderRadius,color:e.color,"on-click":e.onSuffixClick,"aria-label":e.suffixAriaLabel,disabled:e.disabled||e.busy},null,8,["suffix","size","grouped","border-radius","color","on-click","aria-label","disabled"])):f("",!0),e.charCounter&&e.maxLength&&[t(P).Email,t(P).None,t(P).Text,t(P).Url].includes(e.type)?(o(),r(z,{key:4,color:e.color,"css-prefix":I,"current-length":B.value?B.value.toString().length:0,"max-length":e.maxLength,layout:t(w).Inline,size:e.size},null,8,["color","current-length","max-length","layout","size"])):f("",!0)],2)],14,K),e.pill&&e.label&&e.orientation===t(q).Horizontal?(o(),a("span",{key:0,class:i(`${I}__spacer`)},null,2)):f("",!0),e.pill?(o(),r(H,{key:1,label:e.pill,color:e.color},null,8,["label","color"])):f("",!0),e.id?(o(),r(X,{key:2,id:e.id,messages:e.messages,"message-type":e.messageType},null,8,["id","messages","message-type"])):f("",!0)]),_:1},8,["fluid","has-pill","has-char-counter","orientation"]))}});W.Prefix=A,W.Suffix=E,W.Pill=H,W.ColorTools=J;export{W as CLInput,W as default};
@@ -92,6 +92,9 @@ declare const _default: import('vue').DefineComponent<{
92
92
  onReset?: ((...args: any[]) => any) | undefined;
93
93
  "onUpdate:modelValue"?: ((value: string | number) => any) | undefined;
94
94
  }>, {
95
+ form: string;
96
+ label: string;
97
+ pattern: string;
95
98
  size: CLSizes;
96
99
  color: CLColors;
97
100
  variant: CLColorVariants.Outline | CLColorVariants.Ghost;
@@ -99,9 +102,6 @@ declare const _default: import('vue').DefineComponent<{
99
102
  rounded: boolean;
100
103
  testId: string;
101
104
  type: CLInputTypes;
102
- form: string;
103
- label: string;
104
- pattern: string;
105
105
  onFocus: CLGenericFocusFunction;
106
106
  onBlur: CLGenericFocusFunction;
107
107
  onChange: CLGenericFunction;