@codeandfunction/callaloo 4.11.0 → 4.12.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 (112) hide show
  1. package/dist/callaloo.global.js +1 -1
  2. package/dist/chunks/CLA11yButton.vue_vue_type_style_index_0_lang-RwSPgx8U.js +2 -0
  3. package/dist/chunks/CLButton.vue_vue_type_style_index_0_lang-Bi7GC71m.js +2 -0
  4. package/dist/chunks/CLCalendar.vue_vue_type_style_index_0_lang-BxZBofc_.js +2 -0
  5. package/dist/chunks/CLCard.vue_vue_type_style_index_0_lang-Lb49WiaW.js +2 -0
  6. package/dist/chunks/{CLFormLabel.vue_vue_type_script_setup_true_lang-BPwFZq94.js → CLFormLabel.vue_vue_type_script_setup_true_lang-BesVgApW.js} +1 -1
  7. package/dist/chunks/CLHeading.vue_vue_type_style_index_0_lang-C7RHX0J4.js +2 -0
  8. package/dist/chunks/CLIcon.vue_vue_type_style_index_0_lang-CaZM-HFg.js +2 -0
  9. package/dist/chunks/CLInputMessages.vue_vue_type_style_index_0_lang-BrlOiHsE.js +2 -0
  10. package/dist/chunks/CLLink.vue_vue_type_style_index_0_lang-7e7xSEg0.js +2 -0
  11. package/dist/chunks/CLModal.vue_vue_type_style_index_0_lang-CWceRHGW.js +2 -0
  12. package/dist/chunks/{CLNavLink.vue_vue_type_script_setup_true_lang-Dm81o6kG.js → CLNavLink.vue_vue_type_script_setup_true_lang-I-qjKZJQ.js} +1 -1
  13. package/dist/chunks/{CLPill.vue_vue_type_style_index_0_lang-B7EJOOmg.js → CLPill.vue_vue_type_style_index_0_lang-BSi1ljPG.js} +1 -1
  14. package/dist/chunks/CLSkeleton.vue_vue_type_style_index_0_lang-BtFHeFjp.js +2 -0
  15. package/dist/chunks/CLSpinner.vue_vue_type_style_index_0_lang-Ch4Vh_y3.js +2 -0
  16. package/dist/chunks/CLText.vue_vue_type_style_index_0_lang-Tv0xzrRz.js +2 -0
  17. package/dist/chunks/CLToast.vue_vue_type_style_index_0_lang-zgtfLRPh.js +2 -0
  18. package/dist/chunks/utils-BMhH7W6x.js +1 -0
  19. package/dist/chunks/utils-CdeA8xWg.js +1 -0
  20. package/dist/chunks/utils-Dea4wPBy.js +1 -0
  21. package/dist/chunks/{utils-CCWSWRuR.js → utils-DfgurNgA.js} +1 -1
  22. package/dist/chunks/utils-fXNd28fD.js +1 -0
  23. package/dist/chunks/utils-rZl51JEP.js +1 -0
  24. package/dist/components/Buttons/CLA11yButton/CLA11yButton.js +1 -1
  25. package/dist/components/Buttons/CLButton/CLButton.js +1 -1
  26. package/dist/components/Buttons/CLButton/CLButton.vue.d.ts +4 -4
  27. package/dist/components/Buttons/utils.d.ts +9 -3
  28. package/dist/components/CLIcon/CLIcon.js +1 -1
  29. package/dist/components/CLIcon/CLIcon.vue.d.ts +1 -1
  30. package/dist/components/CLIcon/utils.d.ts +8 -2
  31. package/dist/components/CLTable/CLTable.js +1 -1
  32. package/dist/components/CLTable/CLTableCell.vue.d.ts +1 -1
  33. package/dist/components/CLTable/utils.d.ts +8 -1
  34. package/dist/components/Containers/CLCard/CLCard.css +1 -1
  35. package/dist/components/Containers/CLCard/CLCard.js +1 -1
  36. package/dist/components/Containers/CLCarousel/CLCarousel.js +1 -1
  37. package/dist/components/Containers/CLDisclosure/CLDisclosure.js +1 -1
  38. package/dist/components/Containers/CLDisclosure/CLDisclosure.vue.d.ts +1 -1
  39. package/dist/components/Containers/CLDrawer/CLDrawer.js +1 -1
  40. package/dist/components/Containers/CLDrawer/CLDrawer.vue.d.ts +1 -1
  41. package/dist/components/Containers/utils.d.ts +10 -4
  42. package/dist/components/Form/CLCalendar/CLCalendar.css +1 -1
  43. package/dist/components/Form/CLCalendar/CLCalendar.js +1 -1
  44. package/dist/components/Form/CLCheckbox/CLCheckbox.js +1 -1
  45. package/dist/components/Form/CLCheckbox/CLCheckbox.vue.d.ts +3 -3
  46. package/dist/components/Form/CLFormCharCounter/CLFormCharCounter.vue.d.ts +1 -1
  47. package/dist/components/Form/CLFormLabel/CLFormLabel.vue.d.ts +1 -1
  48. package/dist/components/Form/CLInput/CLInput.js +1 -1
  49. package/dist/components/Form/CLInput/CLInput.vue.d.ts +2 -2
  50. package/dist/components/Form/CLInput/CLInputColorTools.vue.d.ts +1 -1
  51. package/dist/components/Form/CLInput/CLInputPrefix.vue.d.ts +2 -2
  52. package/dist/components/Form/CLInput/CLInputSuffix.vue.d.ts +2 -2
  53. package/dist/components/Form/CLInputDatePicker/CLInputDatePicker.js +1 -1
  54. package/dist/components/Form/CLInputDatePicker/CLInputDatePicker.vue.d.ts +6 -6
  55. package/dist/components/Form/CLRadioButton/CLRadioButton.js +1 -1
  56. package/dist/components/Form/CLRadioButton/CLRadioButton.vue.d.ts +1 -1
  57. package/dist/components/Form/CLSelect/CLSelect.js +1 -1
  58. package/dist/components/Form/CLSelect/CLSelect.vue.d.ts +1 -1
  59. package/dist/components/Form/CLTextArea/CLTextArea.js +1 -1
  60. package/dist/components/Form/CLTextArea/CLTextArea.vue.d.ts +1 -1
  61. package/dist/components/Form/utils.d.ts +14 -5
  62. package/dist/components/Indicators/CLBadge/CLBadge.js +1 -1
  63. package/dist/components/Indicators/CLBanner/CLBanner.js +1 -1
  64. package/dist/components/Indicators/CLPill/CLPill.css +1 -1
  65. package/dist/components/Indicators/CLPill/CLPill.js +1 -1
  66. package/dist/components/Indicators/CLPill/CLPill.vue.d.ts +1 -1
  67. package/dist/components/Indicators/CLProgress/CLProgress.js +1 -1
  68. package/dist/components/Indicators/CLProgress/CLProgress.vue.d.ts +1 -1
  69. package/dist/components/Indicators/utils.d.ts +8 -2
  70. package/dist/components/Loading/CLSkeleton/CLSkeleton.js +1 -1
  71. package/dist/components/Loading/CLSpinner/CLSpinner.js +1 -1
  72. package/dist/components/Loading/CLSpinner/CLSpinner.vue.d.ts +2 -2
  73. package/dist/components/Loading/utils.d.ts +9 -3
  74. package/dist/components/Modals/CLModal/CLModal.js +1 -1
  75. package/dist/components/Modals/CLModalDatePicker/CLModalDatePicker.js +1 -1
  76. package/dist/components/Modals/utils.d.ts +8 -1
  77. package/dist/components/Navigation/CLLink/CLLink.js +1 -1
  78. package/dist/components/Navigation/CLNavLink/CLNavLink.js +1 -1
  79. package/dist/components/Navigation/CLNavSection/CLNavSection.js +1 -1
  80. package/dist/components/Navigation/utils.d.ts +8 -2
  81. package/dist/components/Popups/CLDropdownMenu/CLDropdownMenu.js +1 -1
  82. package/dist/components/Popups/CLDropdownMenu/CLDropdownMenu.vue.d.ts +10 -10
  83. package/dist/components/Popups/CLToast/CLToast.js +1 -1
  84. package/dist/components/Popups/CLToast/CLToast.vue.d.ts +3 -3
  85. package/dist/components/Popups/utils.d.ts +8 -2
  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/components/Typography/utils.d.ts +8 -2
  91. package/dist/composables/useTheme.js +1 -1
  92. package/dist/composables/useToast.d.ts +30 -5
  93. package/dist/composables/useToast.js +1 -1
  94. package/dist/styles.css +1 -1
  95. package/package.json +1 -1
  96. package/dist/chunks/CLA11yButton.vue_vue_type_style_index_0_lang-BHF3fJsf.js +0 -2
  97. package/dist/chunks/CLButton.vue_vue_type_style_index_0_lang-CqwRXex5.js +0 -2
  98. package/dist/chunks/CLCalendar.vue_vue_type_style_index_0_lang-US_3N22Q.js +0 -2
  99. package/dist/chunks/CLCard.vue_vue_type_style_index_0_lang-CMQi_nx9.js +0 -2
  100. package/dist/chunks/CLHeading.vue_vue_type_style_index_0_lang-CsmrsD6c.js +0 -2
  101. package/dist/chunks/CLIcon.vue_vue_type_style_index_0_lang-MCaGYSd9.js +0 -2
  102. package/dist/chunks/CLInputMessages.vue_vue_type_style_index_0_lang-DCByJ7MB.js +0 -2
  103. package/dist/chunks/CLLink.vue_vue_type_style_index_0_lang-DDtyvg4a.js +0 -2
  104. package/dist/chunks/CLModal.vue_vue_type_style_index_0_lang-wrr29HDF.js +0 -2
  105. package/dist/chunks/CLSkeleton.vue_vue_type_style_index_0_lang-BmjT9fQ_.js +0 -2
  106. package/dist/chunks/CLSpinner.vue_vue_type_style_index_0_lang-DgZLt9T1.js +0 -2
  107. package/dist/chunks/CLText.vue_vue_type_style_index_0_lang-CMXJdE-D.js +0 -2
  108. package/dist/chunks/CLToast.vue_vue_type_style_index_0_lang-BTKkG8MZ.js +0 -2
  109. package/dist/chunks/utils-C1iUBPIL.js +0 -1
  110. package/dist/chunks/utils-CYywa195.js +0 -1
  111. package/dist/chunks/utils-Dst7nzvj.js +0 -1
  112. package/dist/chunks/utils-MElq6rY3.js +0 -1
@@ -1,3 +1,3 @@
1
1
  import '../../../assets/core.css';
2
2
  import './CLBanner.css';
3
- import{defineComponent as e,computed as t,createBlock as o,openBlock as a,unref as i,withCtx as n,createElementVNode as s,normalizeStyle as l,normalizeClass as r,createElementBlock as d,createCommentVNode as u,createTextVNode as c,toDisplayString as _,createVNode as b}from"vue";import{_ as y}from"../../../chunks/CLA11yButton.vue_vue_type_style_index_0_lang-BHF3fJsf.js";import{_ as m}from"../../../chunks/CLButton.vue_vue_type_style_index_0_lang-CqwRXex5.js";import{_ as f}from"../../../chunks/CLHeading.vue_vue_type_style_index_0_lang-CsmrsD6c.js";import{_ as k}from"../../../chunks/CLSkeleton.vue_vue_type_style_index_0_lang-BmjT9fQ_.js";import{_ as p}from"../../../chunks/CLText.vue_vue_type_style_index_0_lang-CMXJdE-D.js";import{CLColorVariants as v,CLColors as g,CLAlign as $,CLHeadingTypes as h,CLTextTypes as L,CLSizes as C,CLIconSizes as x,CLIconNames as B}from"../../../index.js";import{a as j}from"../../../chunks/utils-CCWSWRuR.js";const S=["data-testid"],D=/* @__PURE__ */e({name:"CLBanner",__name:"CLBanner",props:{actionLabel:{},align:{default:$.Left},ariaLabel:{},bordered:{type:Boolean,default:!0},borderRadius:{},busy:{type:Boolean,default:!1},color:{default:g.Neutral},height:{default:"auto"},message:{},onAction:{},onClick:{},onDismiss:{},rounded:{type:Boolean,default:!0},testId:{default:"clll-banner"},title:{},width:{default:"100%"},variant:{default:v.Soft}},setup(e){const g=e,$="clll-banner",D=t(()=>[$,g.actionLabel?`${$}--actionable`:"",g.busy?`${$}--busy`:`${$}--ready`,g.bordered&&g.variant!==v.Ghost?`${$}--bordered`:"",g.borderRadius?`${$}--${g.borderRadius}`:"",g.onDismiss?`${$}--dismissable`:"",`${$}--${g.color}--${g.variant}`,`${$}--align-${g.align}`,g.rounded?`${$}--rounded`:`${$}--box`]);return(t,g)=>(a(),o(i(y),{color:e.color,enabled:!(!e.onClick||!e.ariaLabel),rounded:e.rounded},{default:n(()=>[s("div",{class:r(i(D)),"data-testid":e.testId,style:l({...i(j)({color:e.color,variant:e.variant}),width:e.width,height:e.height})},[s("div",{class:r(`${$}__content`)},[s("div",{class:r(`${$}__nested_content`)},[e.busy?(a(),o(i(k),{key:0,"border-radius":e.borderRadius,height:"28px","test-id":`${$}__skeleton-title`},null,8,["border-radius","test-id"])):u("",!0),e.busy?(a(),o(i(k),{key:1,"border-radius":e.borderRadius,width:"70%",height:"20px","test-id":`${$}__skeleton-message`},null,8,["border-radius","test-id"])):u("",!0),e.title&&!e.busy?(a(),o(i(f),{key:2,align:e.align,color:e.color,type:i(h).Section},{default:n(()=>[c(_(e.title),1)]),_:1},8,["align","color","type"])):u("",!0),e.message&&!e.busy?(a(),o(i(p),{key:3,align:e.align,color:e.color,type:i(L).Summary},{default:n(()=>[c(_(e.message),1)]),_:1},8,["align","color","type"])):u("",!0)],2),e.onAction&&e.actionLabel?(a(),d("div",{key:0,class:r(`${$}__action-button`)},[b(i(m),{color:e.color,"border-radius":e.borderRadius,"on-click":e.onAction,"test-id":`${$}__action-button`,variant:e.variant===i(v).Solid?i(v).Soft:i(v).Solid},{default:n(()=>[c(_(e.actionLabel),1)]),_:1},8,["color","border-radius","on-click","test-id","variant"])],2)):u("",!0)],2),e.onDismiss?(a(),d("div",{key:0,class:r(`${$}__dismiss-button`)},[b(i(m),{"aria-label":"Dismiss banner",color:e.color,"icon-before":i(B).Delete,"icon-size":i(x).Tiny,"on-click":e.onDismiss,size:i(C).Tiny,"test-id":`${$}__dismiss-button`,variant:e.variant},null,8,["color","icon-before","icon-size","on-click","size","test-id","variant"])],2)):u("",!0),e.onClick&&e.ariaLabel?(a(),d("button",{key:1,class:"sr-only","data-expand-click-area":"",onClick:g[0]||(g[0]=(...t)=>e.onClick&&e.onClick(...t))},_(e.ariaLabel),1)):u("",!0)],14,S)]),_:1},8,["color","enabled","rounded"]))}});export{D as CLBanner,D as default};
3
+ import{defineComponent as e,computed as t,createBlock as o,openBlock as a,unref as i,withCtx as n,createElementVNode as s,normalizeStyle as l,normalizeClass as r,createElementBlock as d,createCommentVNode as u,createTextVNode as c,toDisplayString as _,createVNode as b}from"vue";import{_ as y}from"../../../chunks/CLA11yButton.vue_vue_type_style_index_0_lang-RwSPgx8U.js";import{_ as m}from"../../../chunks/CLButton.vue_vue_type_style_index_0_lang-Bi7GC71m.js";import{_ as p}from"../../../chunks/CLHeading.vue_vue_type_style_index_0_lang-C7RHX0J4.js";import{_ as f}from"../../../chunks/CLSkeleton.vue_vue_type_style_index_0_lang-BtFHeFjp.js";import{_ as k}from"../../../chunks/CLText.vue_vue_type_style_index_0_lang-Tv0xzrRz.js";import{CLColorVariants as v,CLColors as g,CLAlign as $,CLHeadingTypes as h,CLTextTypes as L,CLSizes as C,CLIconSizes as x,CLIconNames as B}from"../../../index.js";import{a as j}from"../../../chunks/utils-DfgurNgA.js";const S=["data-testid"],D=/* @__PURE__ */e({name:"CLBanner",__name:"CLBanner",props:{actionLabel:{},align:{default:$.Left},ariaLabel:{},bordered:{type:Boolean,default:!0},borderRadius:{},busy:{type:Boolean,default:!1},color:{default:g.Neutral},height:{default:"auto"},message:{},onAction:{},onClick:{},onDismiss:{},rounded:{type:Boolean,default:!0},testId:{default:"clll-banner"},title:{},width:{default:"100%"},variant:{default:v.Soft}},setup(e){const g=e,$="clll-banner",D=t(()=>[$,g.actionLabel?`${$}--actionable`:"",g.busy?`${$}--busy`:`${$}--ready`,g.bordered&&g.variant!==v.Ghost?`${$}--bordered`:"",g.borderRadius?`${$}--${g.borderRadius}`:"",g.onDismiss?`${$}--dismissable`:"",`${$}--${g.color}--${g.variant}`,`${$}--align-${g.align}`,g.rounded?`${$}--rounded`:`${$}--box`]);return(t,g)=>(a(),o(i(y),{color:e.color,enabled:!(!e.onClick||!e.ariaLabel),rounded:e.rounded},{default:n(()=>[s("div",{class:r(i(D)),"data-testid":e.testId,style:l({...i(j)({color:e.color,variant:e.variant}),width:e.width,height:e.height})},[s("div",{class:r(`${$}__content`)},[s("div",{class:r(`${$}__nested_content`)},[e.busy?(a(),o(i(f),{key:0,"border-radius":e.borderRadius,height:"28px","test-id":`${$}__skeleton-title`},null,8,["border-radius","test-id"])):u("",!0),e.busy?(a(),o(i(f),{key:1,"border-radius":e.borderRadius,width:"70%",height:"20px","test-id":`${$}__skeleton-message`},null,8,["border-radius","test-id"])):u("",!0),e.title&&!e.busy?(a(),o(i(p),{key:2,align:e.align,color:e.color,type:i(h).Section},{default:n(()=>[c(_(e.title),1)]),_:1},8,["align","color","type"])):u("",!0),e.message&&!e.busy?(a(),o(i(k),{key:3,align:e.align,color:e.color,type:i(L).Summary},{default:n(()=>[c(_(e.message),1)]),_:1},8,["align","color","type"])):u("",!0)],2),e.onAction&&e.actionLabel?(a(),d("div",{key:0,class:r(`${$}__action-button`)},[b(i(m),{color:e.color,"border-radius":e.borderRadius,"on-click":e.onAction,"test-id":`${$}__action-button`,variant:e.variant===i(v).Solid?i(v).Soft:i(v).Solid},{default:n(()=>[c(_(e.actionLabel),1)]),_:1},8,["color","border-radius","on-click","test-id","variant"])],2)):u("",!0)],2),e.onDismiss?(a(),d("div",{key:0,class:r(`${$}__dismiss-button`)},[b(i(m),{"aria-label":"Dismiss banner",color:e.color,"icon-before":i(B).Delete,"icon-size":i(x).Tiny,"on-click":e.onDismiss,size:i(C).Tiny,"test-id":`${$}__dismiss-button`,variant:e.variant},null,8,["color","icon-before","icon-size","on-click","size","test-id","variant"])],2)):u("",!0),e.onClick&&e.ariaLabel?(a(),d("button",{key:1,class:"sr-only","data-expand-click-area":"",onClick:g[0]||(g[0]=(...t)=>e.onClick&&e.onClick(...t))},_(e.ariaLabel),1)):u("",!0)],14,S)]),_:1},8,["color","enabled","rounded"]))}});export{D as CLBanner,D as default};
@@ -1 +1 @@
1
- .clll-pill{position:relative;border-radius:0;flex:none;display:inline-flex;align-items:center;box-sizing:border-box;background-color:var(--clll-pill-bg-color, transparent);border-color:var(--clll-pill-border-color, transparent);border-style:var(--clll-pill-border-style, none);border-width:var(--clll-pill-border-width, 0);width:fit-content;overflow:hidden}.clll-pill.clll-pill--rounded .clll-pill__container,.clll-pill.clll-pill--rounded .clll-pill__button{position:relative;overflow:hidden;border-radius:0;flex:none;display:inline-flex;align-items:center;box-sizing:border-box}.clll-pill.clll-pill--rounded{border-radius:var(--clll-pill-theme-radius, var(--clll-rounded-xs))}.clll-pill:not(.clll-pill--rounded){position:relative;overflow:hidden;border-radius:0;flex:none;display:inline-flex;align-items:center;box-sizing:border-box}.clll-pill:not(.clll-pill--rounded) .clll-pill__container,.clll-pill:not(.clll-pill--rounded) .clll-pill__button{position:relative;overflow:hidden;border-radius:0;flex:none;display:inline-flex;align-items:center;box-sizing:border-box}.clll-pill .clll-pill__count{font-family:var(--clll-font-family);-webkit-font-smoothing:antialiased;margin:0;font-size:var(--clll-unit-3);line-height:var(--clll-unit-5);display:block;font-weight:400;padding:var(--clll-py-xs) var(--clll-px-md);color:var(--clll-pill-text-color, inherit);background-color:var(--clll-pill-count-bg, transparent);border-left-style:var(--clll-pill-count-border-style, none);border-left-color:var(--clll-pill-count-border-color, transparent);border-left-width:var(--clll-pill-count-border-width, 0)}.clll-pill .clll-text{padding:var(--clll-py-sm) var(--clll-px-lg);color:var(--clll-pill-text-color, inherit);background-color:var(--clll-pill-bg-color, transparent)}.clll-pill .clll-icon{color:var(--clll-pill-text-color, inherit);background-color:var(--clll-pill-bg-color, transparent)}.clll-pill.clll-pill--has-count .clll-pill__container>:not([hidden])~:not([hidden]),.clll-pill.clll-pill--has-count .clll-pill__button>:not([hidden])~:not([hidden]){margin-left:var(--clll-unit-1)}.clll-pill.clll-pill--has-count .clll-pill__container .clll-text,.clll-pill.clll-pill--has-count .clll-pill__button .clll-text{padding-right:var(--clll-px-s-sm)}.clll-pill.clll-pill--has-icon .clll-pill__container,.clll-pill.clll-pill--has-icon .clll-pill__button,.clll-pill.clll-pill--has-icon .clll-pill__container .clll-text,.clll-pill.clll-pill--has-icon .clll-pill__button .clll-text{padding-left:var(--clll-px-xs)}.clll-pill.clll-pill--dismissable .clll-pill__button{padding-right:var(--clll-px-sm)}.clll-pill .clll-pill__button{transition-property:all;transition-duration:.3s;transition-timing-function:ease}.clll-pill .clll-pill__button:hover{background-color:var(--clll-pill-hover-bg, transparent)}.clll-pill.clll-pill--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}
1
+ .clll-pill{position:relative;border-radius:0;flex:none;display:inline-flex;align-items:center;box-sizing:border-box;background-color:var(--clll-pill-bg-color, transparent);border-color:var(--clll-pill-border-color, transparent);border-style:var(--clll-pill-border-style, none);border-width:var(--clll-pill-border-width, 0);width:fit-content;overflow:hidden}.clll-pill.clll-pill--rounded .clll-pill__container,.clll-pill.clll-pill--rounded .clll-pill__button{position:relative;overflow:hidden;border-radius:0;flex:none;display:inline-flex;align-items:center;box-sizing:border-box}.clll-pill.clll-pill--rounded{border-radius:var(--clll-pill-theme-radius, var(--clll-rounded-xs))}.clll-pill:not(.clll-pill--rounded){position:relative;overflow:hidden;border-radius:0;flex:none;display:inline-flex;align-items:center;box-sizing:border-box}.clll-pill:not(.clll-pill--rounded) .clll-pill__container,.clll-pill:not(.clll-pill--rounded) .clll-pill__button{position:relative;overflow:hidden;border-radius:0;flex:none;display:inline-flex;align-items:center;box-sizing:border-box}.clll-pill .clll-pill__count{font-family:var(--clll-font-family);-webkit-font-smoothing:antialiased;margin:0;font-size:var(--clll-unit-3);line-height:var(--clll-unit-5);display:block;font-weight:400;padding:var(--clll-py-sm) var(--clll-px-lg);color:var(--clll-pill-text-color, inherit);background-color:var(--clll-pill-count-bg, transparent);border-left-style:var(--clll-pill-count-border-style, none);border-left-color:var(--clll-pill-count-border-color, transparent);border-left-width:var(--clll-pill-count-border-width, 0)}.clll-pill .clll-text{padding:var(--clll-py-sm) var(--clll-px-lg);color:var(--clll-pill-text-color, inherit);background-color:var(--clll-pill-bg-color, transparent)}.clll-pill .clll-icon{color:var(--clll-pill-text-color, inherit);background-color:var(--clll-pill-bg-color, transparent)}.clll-pill.clll-pill--has-count .clll-pill__container>:not([hidden])~:not([hidden]),.clll-pill.clll-pill--has-count .clll-pill__button>:not([hidden])~:not([hidden]){margin-left:var(--clll-unit-1)}.clll-pill.clll-pill--has-count .clll-pill__container .clll-text,.clll-pill.clll-pill--has-count .clll-pill__button .clll-text{padding-right:var(--clll-px-sm)}.clll-pill.clll-pill--has-icon .clll-pill__container,.clll-pill.clll-pill--has-icon .clll-pill__button,.clll-pill.clll-pill--has-icon .clll-pill__container .clll-text,.clll-pill.clll-pill--has-icon .clll-pill__button .clll-text{padding-left:var(--clll-px-xs)}.clll-pill.clll-pill--dismissable .clll-pill__button{padding-right:var(--clll-px-sm)}.clll-pill .clll-pill__button .clll-text,.clll-pill .clll-pill__button .clll-icon{background-color:transparent}.clll-pill.clll-pill--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}
@@ -1,3 +1,3 @@
1
1
  import '../../../assets/core.css';
2
2
  import './CLPill.css';
3
- import{_ as e}from"../../../chunks/CLPill.vue_vue_type_style_index_0_lang-B7EJOOmg.js";export{e as CLPill,e as default};
3
+ import{_ as e}from"../../../chunks/CLPill.vue_vue_type_style_index_0_lang-BSi1ljPG.js";export{e as CLPill,e as default};
@@ -30,7 +30,7 @@ declare const _default: import('vue').DefineComponent<CLPillProps, {}, {}, {}, {
30
30
  variant: CLColorVariants;
31
31
  rounded: boolean;
32
32
  testId: string;
33
- elevated: boolean;
34
33
  iconFilled: boolean;
34
+ elevated: boolean;
35
35
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
36
36
  export default _default;
@@ -1,3 +1,3 @@
1
1
  import '../../../assets/core.css';
2
2
  import './CLProgress.css';
3
- import{defineComponent as e,mergeModels as t,useModel as s,computed as l,createElementBlock as o,openBlock as a,normalizeStyle as r,normalizeClass as d,unref as u,createCommentVNode as i,createElementVNode as n,createVNode as _,withCtx as c,createTextVNode as m,toDisplayString as p}from"vue";import{_ as f}from"../../../chunks/CLText.vue_vue_type_style_index_0_lang-CMXJdE-D.js";import{CLTextTypes as v,CLColors as y,CLSizes as $}from"../../../index.js";import{c as g}from"../../../chunks/utils-CCWSWRuR.js";const b=["data-testid"],x=/* @__PURE__ */e({name:"CLProgress",__name:"CLProgress",props:/* @__PURE__ */t({color:{default:y.Primary},inverted:{type:Boolean,default:!1},rounded:{type:Boolean,default:!0},size:{default:$.Medium},status:{type:Boolean,default:!1},testId:{default:"clll-progress"}},{modelValue:{type:Number,default:0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=e,$=s(e,"modelValue"),x="clll-progress",C=l(()=>[x,`${x}--${t.color}`,`${x}--${t.size}`,t.inverted?`${x}--inverted`:"",t.rounded?`${x}--rounded`:`${x}--not-rounded`]),L=l(()=>`${$.value}%`);return(t,s)=>(a(),o("div",{class:d(u(C)),"data-testid":e.testId,style:r({...u(g)({color:e.color}),"--clll-progress-value":$.value})},[e.status?(a(),o("div",{key:0,class:d(`${x}__status__container`)},[n("div",{class:d(`${x}__status__label`)},[_(u(f),{color:u(y).Neutral,type:u(v).Summary},{default:c(()=>[m(p(u(L)),1)]),_:1},8,["color","type"])],2)],2)):i("",!0),n("div",{class:d(`${x}__bar-container`)},[n("div",{class:d(`${x}__bar`)},null,2)],2)],14,b))}});export{x as CLProgress,x as default};
3
+ import{defineComponent as e,mergeModels as s,useModel as t,computed as l,createElementBlock as o,openBlock as r,normalizeStyle as a,normalizeClass as d,unref as u,createCommentVNode as i,createElementVNode as n,createVNode as m,withCtx as c,createTextVNode as _,toDisplayString as p}from"vue";import{_ as f}from"../../../chunks/CLText.vue_vue_type_style_index_0_lang-Tv0xzrRz.js";import{CLTextTypes as v,CLColors as y,CLSizes as $}from"../../../index.js";import{c as g}from"../../../chunks/utils-DfgurNgA.js";import{useTheme as b}from"../../../composables/useTheme.js";const h=["data-testid"],j=/* @__PURE__ */e({name:"CLProgress",__name:"CLProgress",props:/* @__PURE__ */s({color:{default:y.Primary},inverted:{type:Boolean,default:!1},rounded:{type:Boolean,default:!0},size:{default:$.Medium},status:{type:Boolean,default:!1},testId:{default:"clll-progress"}},{modelValue:{type:Number,default:0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const s=e,$=b(),j=t(e,"modelValue"),x="clll-progress",C=l(()=>[x,`${x}--${s.color}`,`${x}--${s.size}`,s.inverted?`${x}--inverted`:"",s.rounded?`${x}--rounded`:`${x}--not-rounded`]),L=l(()=>`${j.value}%`);return(s,t)=>(r(),o("div",{class:d(u(C)),"data-testid":e.testId,style:a({...u(g)({color:e.color,theme:u($)}),"--clll-progress-value":j.value})},[e.status?(r(),o("div",{key:0,class:d(`${x}__status__container`)},[n("div",{class:d(`${x}__status__label`)},[m(u(f),{color:u(y).Neutral,type:u(v).Summary},{default:c(()=>[_(p(u(L)),1)]),_:1},8,["color","type"])],2)],2)):i("",!0),n("div",{class:d(`${x}__bar-container`)},[n("div",{class:d(`${x}__bar`)},null,2)],2)],14,h))}});export{j as CLProgress,j as default};
@@ -23,9 +23,9 @@ declare const _default: import('vue').DefineComponent<{
23
23
  "onUpdate:modelValue"?: ((value: number) => any) | undefined;
24
24
  }>, {
25
25
  color: CLColors;
26
+ size: CLSizes;
26
27
  rounded: boolean;
27
28
  testId: string;
28
- size: CLSizes;
29
29
  status: boolean;
30
30
  inverted: boolean;
31
31
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
@@ -1,7 +1,13 @@
1
- import { CLColors, CLColorVariants } from '../../index.ts';
1
+ import { Ref } from 'vue';
2
+ import { CLColors, CLColorVariants, CLPalette } from '../../index.ts';
3
+ interface ThemeContext {
4
+ colors: Ref<CLPalette>;
5
+ darkMode: Ref<boolean | undefined>;
6
+ }
2
7
  interface ThemeProps {
3
8
  color: CLColors;
4
9
  variant: CLColorVariants;
10
+ theme?: ThemeContext;
5
11
  }
6
12
  export declare const badgeTheme: ({ color, variant }: ThemeProps) => {
7
13
  '--clll-badge-bg-color': string;
@@ -30,7 +36,7 @@ export declare const pillTheme: ({ color, variant }: ThemeProps) => {
30
36
  '--clll-pill-count-border-width': string;
31
37
  '--clll-pill-theme-radius': string;
32
38
  };
33
- export declare const progressTheme: ({ color }: Omit<ThemeProps, "variant">) => {
39
+ export declare const progressTheme: ({ color, theme }: Omit<ThemeProps, "variant">) => {
34
40
  '--clll-progress-container-bg': string;
35
41
  '--clll-progress-bar-bg': string;
36
42
  };
@@ -1,3 +1,3 @@
1
1
  import '../../../assets/core.css';
2
2
  import './CLSkeleton.css';
3
- import{_ as e}from"../../../chunks/CLSkeleton.vue_vue_type_style_index_0_lang-BmjT9fQ_.js";export{e as CLSkeleton,e as default};
3
+ import{_ as e}from"../../../chunks/CLSkeleton.vue_vue_type_style_index_0_lang-BtFHeFjp.js";export{e as CLSkeleton,e as default};
@@ -1,3 +1,3 @@
1
1
  import '../../../assets/core.css';
2
2
  import './CLSpinner.css';
3
- import{_ as e}from"../../../chunks/CLSpinner.vue_vue_type_style_index_0_lang-DgZLt9T1.js";export{e as CLSpinner,e as default};
3
+ import{_ as e}from"../../../chunks/CLSpinner.vue_vue_type_style_index_0_lang-Ch4Vh_y3.js";export{e as CLSpinner,e as default};
@@ -13,9 +13,9 @@ export interface CLSpinnerProps {
13
13
  }
14
14
  declare const _default: import('vue').DefineComponent<CLSpinnerProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<CLSpinnerProps> & Readonly<{}>, {
15
15
  color: CLColors;
16
- testId: string;
17
16
  size: CLSizes;
18
- align: CLAlign;
17
+ testId: string;
19
18
  position: CLPosition;
19
+ align: CLAlign;
20
20
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
21
21
  export default _default;
@@ -1,12 +1,18 @@
1
- import { CLColors } from '../../index.ts';
1
+ import { Ref } from 'vue';
2
+ import { CLColors, CLPalette } from '../../index.ts';
3
+ interface ThemeContext {
4
+ colors: Ref<CLPalette>;
5
+ darkMode: Ref<boolean | undefined>;
6
+ }
2
7
  interface ThemeProps {
3
8
  color: CLColors;
9
+ theme?: ThemeContext;
4
10
  }
5
- export declare const skeletonTheme: () => {
11
+ export declare const skeletonTheme: (theme?: ThemeContext) => {
6
12
  '--clll-skeleton-bg-color': string;
7
13
  '--clll-skeleton-theme-radius': string;
8
14
  };
9
- export declare const spinnerTheme: ({ color }: ThemeProps) => {
15
+ export declare const spinnerTheme: ({ color, theme }: ThemeProps) => {
10
16
  '--clll-spinner-color': string;
11
17
  };
12
18
  export {};
@@ -1,3 +1,3 @@
1
1
  import '../../../assets/core.css';
2
2
  import './CLModal.css';
3
- import{_ as a}from"../../../chunks/CLModal.vue_vue_type_style_index_0_lang-wrr29HDF.js";export{a as CLModal,a as default};
3
+ import{_ as a}from"../../../chunks/CLModal.vue_vue_type_style_index_0_lang-CWceRHGW.js";export{a as CLModal,a as default};
@@ -1,3 +1,3 @@
1
1
  import '../../../assets/core.css';
2
2
  import './CLModalDatePicker.css';
3
- import{defineComponent as e,mergeModels as a,ref as t,computed as l,useModel as o,onMounted as d,onBeforeUnmount as i,createElementBlock as u,openBlock as n,normalizeClass as r,unref as s,createVNode as b,withCtx as c,createTextVNode as f,toDisplayString as p,createElementVNode as v,nextTick as m}from"vue";import{_ as y}from"../../../chunks/CLButton.vue_vue_type_style_index_0_lang-CqwRXex5.js";import{_}from"../../../chunks/CLModal.vue_vue_type_style_index_0_lang-wrr29HDF.js";import{_ as L}from"../../../chunks/CLCalendar.vue_vue_type_style_index_0_lang-US_3N22Q.js";import{CLSizes as X,CLIconSizes as g,CLIconNames as k,CLBorderRadius as $,CLColorVariants as h,CLColors as C}from"../../../index.js";import{i as w}from"../../../chunks/helper-C542dSLs.js";import{useDatePicker as R}from"../../../composables/useDatePicker.js";const S=["data-testid"],B=/* @__PURE__ */e({name:"CLModalDatePicker",__name:"CLModalDatePicker",props:/* @__PURE__ */a({buttonAriaLabel:{default:void 0},buttonBorderRadius:{default:void 0},buttonColor:{default:C.Primary},buttonLabel:{default:"Select dates"},buttonSize:{default:X.Small},buttonVariant:{default:h.Soft},buttonWidth:{default:"auto"},buttonWrapped:{type:Boolean,default:!1},busy:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},fluid:{type:Boolean,default:!1},id:{},isRange:{type:Boolean,default:!0},onBlur:{type:Function,default:void 0},onChange:{type:Function,default:void 0},onFocus:{type:Function,default:void 0},onReset:{},testId:{default:"clll-date-picker-modal"},title:{default:"Select dates"}},{modelValue:{default:()=>({end:null,start:null})},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const a=e,B="clll-date-picker-modal",z=t(!1),V=l(()=>`date-picker-modal-${a.id}`),x=t(),M=o(e,"modelValue"),{rangeLabel:E}=R({appliedStart:l(()=>M.value?.start??null),appliedEnd:l(()=>M.value?.end??null),isRange:a.isRange}),F=t(!1),j=()=>{w&&(F.value=window.innerWidth<480)},P=()=>{if(a.disabled||a.busy)return;j(),z.value=!0,m(()=>{x.value?.initializeDraft()});const e=new FocusEvent("focus",{bubbles:!0,cancelable:!0});a.onFocus?.(e)},D=()=>{z.value=!1,x.value?.cancel();const e=new FocusEvent("blur",{bubbles:!0,cancelable:!0});a.onBlur?.(e)},W=()=>{x.value?.apply(),z.value=!1,a.onChange?.()},A=()=>{x.value?.reset(),a.onReset?.()},I=l(()=>F.value);d(()=>{w&&(j(),window.addEventListener("resize",j))}),i(()=>{w&&window.removeEventListener("resize",j)});const N={[X.Tiny]:g.Tiny,[X.Small]:g.Small,[X.Medium]:g.Medium,[X.Large]:g.Large,[X.XL]:g.XL,[X.XXL]:g.XXL,[X.XXXL]:g.XXXL,[X.XXXXL]:g.XXXXL},G=l(()=>[B,a.buttonBorderRadius?`${B}--${a.buttonBorderRadius}`:"",a.busy?`${B}--busy`:`${B}--ready`,`${B}--${a.buttonColor}`,`${B}--${a.buttonSize}`,`${B}--${a.buttonVariant}`,a.disabled||a.busy?`${B}--disabled`:`${B}--active`,a.fluid?`${B}--fluid`:`${B}--fixed`]),T=l(()=>{const e=x.value?.draftStart,t=x.value?.draftEnd;return a.isRange?!!e&&!!t:!!e});return(a,t)=>(n(),u("div",{class:r(s(G)),"data-testid":e.testId},[b(s(y),{"aria-label":e.buttonAriaLabel||"Open date picker","border-radius":e.buttonBorderRadius,busy:e.busy,color:e.buttonColor,disabled:e.disabled||e.busy,"icon-before":s(k).Calendar,"icon-size":N[e.buttonSize],"on-click":P,"test-id":`${e.testId}__trigger`,size:e.buttonSize,variant:e.buttonVariant,width:e.buttonWidth,wrap:e.buttonWrapped},{default:c(()=>[f(p(s(E)||e.buttonLabel),1)]),_:1},8,["aria-label","border-radius","busy","color","disabled","icon-before","icon-size","test-id","size","variant","width","wrap"]),b(s(_),{"border-radius":s(I)?s($).None:s($).Medium,fullscreen:s(I),"is-open":s(z),"max-width":"336px","modal-id":s(V),"on-close":D,title:e.title},{body:c(()=>[b(s(L),{ref_key:"calendarRef",ref:x,modelValue:M.value,"onUpdate:modelValue":t[0]||(t[0]=e=>M.value=e),busy:e.busy,disabled:e.disabled,fluid:s(I),"is-range":e.isRange},null,8,["modelValue","busy","disabled","fluid","is-range"])]),footer:c(()=>[v("div",{class:r(`${B}__footer-actions`)},[b(s(y),{color:s(C).Neutral,"on-click":D,variant:s(h).Ghost},{default:c(()=>[...t[1]||(t[1]=[f(" Cancel ",-1)])]),_:1},8,["color","variant"]),v("div",{class:r(`${B}__footer-right`)},[b(s(y),{color:s(C).Neutral,disabled:!s(x)?.draftStart&&!s(x)?.draftEnd,"on-click":A,variant:s(h).Ghost},{default:c(()=>[...t[2]||(t[2]=[f(" Reset ",-1)])]),_:1},8,["color","disabled","variant"]),b(s(y),{color:s(C).Primary,disabled:!s(T),"on-click":W},{default:c(()=>[...t[3]||(t[3]=[f(" Apply ",-1)])]),_:1},8,["color","disabled"])],2)],2)]),_:1},8,["border-radius","fullscreen","is-open","modal-id","title"])],10,S))}});export{B as CLModalDatePicker,B as default};
3
+ import{defineComponent as e,mergeModels as a,ref as t,computed as l,useModel as o,onMounted as d,onBeforeUnmount as i,createElementBlock as u,openBlock as n,normalizeClass as r,unref as s,createVNode as b,withCtx as c,createTextVNode as f,toDisplayString as p,createElementVNode as v,nextTick as m}from"vue";import{_ as y}from"../../../chunks/CLButton.vue_vue_type_style_index_0_lang-Bi7GC71m.js";import{_}from"../../../chunks/CLModal.vue_vue_type_style_index_0_lang-CWceRHGW.js";import{_ as L}from"../../../chunks/CLCalendar.vue_vue_type_style_index_0_lang-BxZBofc_.js";import{CLSizes as X,CLIconSizes as g,CLIconNames as $,CLBorderRadius as k,CLColorVariants as h,CLColors as C}from"../../../index.js";import{i as w}from"../../../chunks/helper-C542dSLs.js";import{useDatePicker as R}from"../../../composables/useDatePicker.js";const S=["data-testid"],B=/* @__PURE__ */e({name:"CLModalDatePicker",__name:"CLModalDatePicker",props:/* @__PURE__ */a({buttonAriaLabel:{default:void 0},buttonBorderRadius:{default:void 0},buttonColor:{default:C.Primary},buttonLabel:{default:"Select dates"},buttonSize:{default:X.Small},buttonVariant:{default:h.Soft},buttonWidth:{default:"auto"},buttonWrapped:{type:Boolean,default:!1},busy:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},fluid:{type:Boolean,default:!1},id:{},isRange:{type:Boolean,default:!0},onBlur:{type:Function,default:void 0},onChange:{type:Function,default:void 0},onFocus:{type:Function,default:void 0},onReset:{},testId:{default:"clll-date-picker-modal"},title:{default:"Select dates"}},{modelValue:{default:()=>({end:null,start:null})},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const a=e,B="clll-date-picker-modal",z=t(!1),V=l(()=>`date-picker-modal-${a.id}`),x=t(),M=o(e,"modelValue"),{rangeLabel:E}=R({appliedStart:l(()=>M.value?.start??null),appliedEnd:l(()=>M.value?.end??null),isRange:a.isRange}),F=t(!1),j=()=>{w&&(F.value=window.innerWidth<480)},P=()=>{if(a.disabled||a.busy)return;j(),z.value=!0,m(()=>{x.value?.initializeDraft()});const e=new FocusEvent("focus",{bubbles:!0,cancelable:!0});a.onFocus?.(e)},D=()=>{z.value=!1,x.value?.cancel();const e=new FocusEvent("blur",{bubbles:!0,cancelable:!0});a.onBlur?.(e)},W=()=>{x.value?.apply(),z.value=!1,a.onChange?.()},A=()=>{x.value?.reset(),a.onReset?.()},I=l(()=>F.value);d(()=>{w&&(j(),window.addEventListener("resize",j))}),i(()=>{w&&window.removeEventListener("resize",j)});const N={[X.Tiny]:g.Tiny,[X.Small]:g.Small,[X.Medium]:g.Medium,[X.Large]:g.Large,[X.XL]:g.XL,[X.XXL]:g.XXL,[X.XXXL]:g.XXXL,[X.XXXXL]:g.XXXXL},G=l(()=>[B,a.buttonBorderRadius?`${B}--${a.buttonBorderRadius}`:"",a.busy?`${B}--busy`:`${B}--ready`,`${B}--${a.buttonColor}`,`${B}--${a.buttonSize}`,`${B}--${a.buttonVariant}`,a.disabled||a.busy?`${B}--disabled`:`${B}--active`,a.fluid?`${B}--fluid`:`${B}--fixed`]),T=l(()=>{const e=x.value?.draftStart,t=x.value?.draftEnd;return a.isRange?!!e&&!!t:!!e});return(a,t)=>(n(),u("div",{class:r(s(G)),"data-testid":e.testId},[b(s(y),{"aria-label":e.buttonAriaLabel||"Open date picker","border-radius":e.buttonBorderRadius,busy:e.busy,color:e.buttonColor,disabled:e.disabled||e.busy,"icon-before":s($).Calendar,"icon-size":N[e.buttonSize],"on-click":P,"test-id":`${e.testId}__trigger`,size:e.buttonSize,variant:e.buttonVariant,width:e.buttonWidth,wrap:e.buttonWrapped},{default:c(()=>[f(p(s(E)||e.buttonLabel),1)]),_:1},8,["aria-label","border-radius","busy","color","disabled","icon-before","icon-size","test-id","size","variant","width","wrap"]),b(s(_),{"border-radius":s(I)?s(k).None:s(k).Medium,fullscreen:s(I),"is-open":s(z),"max-width":"336px","modal-id":s(V),"on-close":D,title:e.title},{body:c(()=>[b(s(L),{ref_key:"calendarRef",ref:x,modelValue:M.value,"onUpdate:modelValue":t[0]||(t[0]=e=>M.value=e),busy:e.busy,disabled:e.disabled,fluid:s(I),"is-range":e.isRange},null,8,["modelValue","busy","disabled","fluid","is-range"])]),footer:c(()=>[v("div",{class:r(`${B}__footer-actions`)},[b(s(y),{color:s(C).Neutral,"on-click":D,variant:s(h).Ghost},{default:c(()=>[...t[1]||(t[1]=[f(" Cancel ",-1)])]),_:1},8,["color","variant"]),v("div",{class:r(`${B}__footer-right`)},[b(s(y),{color:s(C).Neutral,disabled:!s(x)?.draftStart&&!s(x)?.draftEnd,"on-click":A,variant:s(h).Ghost},{default:c(()=>[...t[2]||(t[2]=[f(" Reset ",-1)])]),_:1},8,["color","disabled","variant"]),b(s(y),{color:s(C).Primary,disabled:!s(T),"on-click":W},{default:c(()=>[...t[3]||(t[3]=[f(" Apply ",-1)])]),_:1},8,["color","disabled"])],2)],2)]),_:1},8,["border-radius","fullscreen","is-open","modal-id","title"])],10,S))}});export{B as CLModalDatePicker,B as default};
@@ -1,5 +1,12 @@
1
- export declare const modalTheme: () => {
1
+ import { Ref } from 'vue';
2
+ import { CLPalette } from '../../index.ts';
3
+ interface ThemeContext {
4
+ colors: Ref<CLPalette>;
5
+ darkMode: Ref<boolean | undefined>;
6
+ }
7
+ export declare const modalTheme: (theme?: ThemeContext) => {
2
8
  '--clll-modal-overlay-bg': string;
3
9
  '--clll-modal-content-bg': string;
4
10
  '--clll-modal-theme-radius': string;
5
11
  };
12
+ export {};
@@ -1,3 +1,3 @@
1
1
  import '../../../assets/core.css';
2
2
  import './CLLink.css';
3
- import{_ as e}from"../../../chunks/CLLink.vue_vue_type_style_index_0_lang-DDtyvg4a.js";export{e as CLLink,e as default};
3
+ import{_ as e}from"../../../chunks/CLLink.vue_vue_type_style_index_0_lang-7e7xSEg0.js";export{e as CLLink,e as default};
@@ -1,2 +1,2 @@
1
1
  import '../../../assets/core.css';
2
- import{_ as a}from"../../../chunks/CLNavLink.vue_vue_type_script_setup_true_lang-Dm81o6kG.js";export{a as CLNavLink,a as default};
2
+ import{_ as a}from"../../../chunks/CLNavLink.vue_vue_type_script_setup_true_lang-I-qjKZJQ.js";export{a as CLNavLink,a as default};
@@ -1,3 +1,3 @@
1
1
  import '../../../assets/core.css';
2
2
  import './CLNavSection.css';
3
- import{defineComponent as e,computed as t,createElementBlock as a,openBlock as l,normalizeClass as r,unref as n,Fragment as i,renderList as o,createVNode as s,withCtx as c,createTextVNode as _,toDisplayString as u}from"vue";import{_ as d}from"../../../chunks/CLNavLink.vue_vue_type_script_setup_true_lang-Dm81o6kG.js";import{_ as p}from"../../../chunks/CLText.vue_vue_type_style_index_0_lang-CMXJdE-D.js";import{CLOrientation as f,CLColors as m}from"../../../index.js";const v=["data-testid"],k=/* @__PURE__ */e({name:"CLNavSection",__name:"CLNavSection",props:{color:{default:m.Primary},navItems:{},testId:{default:"clll-nav-section"},type:{default:f.Horizontal}},setup(e){const f=e,m="clll-nav-section",k=t(()=>[m,`${m}--${f.type}`]);return(t,f)=>(l(),a("ul",{class:r(n(k)),"data-testid":e.testId},[(l(!0),a(i,null,o(e.navItems,(t,r)=>(l(),a("li",{key:`link-${t.id}-${r}`,class:"clll-nav-section__item"},[s(n(d),{id:t.id,"aria-label":t.ariaLabel,color:e.color,external:t.external,href:t.href,rel:t.rel,target:t.target,"on-click":t.onClick},{default:c(()=>[s(n(p),{as:"span"},{default:c(()=>[_(u(t.label),1)]),_:2},1024)]),_:2},1032,["id","aria-label","color","external","href","rel","target","on-click"])]))),128))],10,v))}});export{k as CLNavSection,k as default};
3
+ import{defineComponent as e,computed as t,createElementBlock as a,openBlock as l,normalizeClass as r,unref as n,Fragment as i,renderList as o,createVNode as s,withCtx as c,createTextVNode as _,toDisplayString as u}from"vue";import{_ as d}from"../../../chunks/CLNavLink.vue_vue_type_script_setup_true_lang-I-qjKZJQ.js";import{_ as p}from"../../../chunks/CLText.vue_vue_type_style_index_0_lang-Tv0xzrRz.js";import{CLOrientation as m,CLColors as v}from"../../../index.js";const f=["data-testid"],k=/* @__PURE__ */e({name:"CLNavSection",__name:"CLNavSection",props:{color:{default:v.Primary},navItems:{},testId:{default:"clll-nav-section"},type:{default:m.Horizontal}},setup(e){const m=e,v="clll-nav-section",k=t(()=>[v,`${v}--${m.type}`]);return(t,m)=>(l(),a("ul",{class:r(n(k)),"data-testid":e.testId},[(l(!0),a(i,null,o(e.navItems,(t,r)=>(l(),a("li",{key:`link-${t.id}-${r}`,class:"clll-nav-section__item"},[s(n(d),{id:t.id,"aria-label":t.ariaLabel,color:e.color,external:t.external,href:t.href,rel:t.rel,target:t.target,"on-click":t.onClick},{default:c(()=>[s(n(p),{as:"span"},{default:c(()=>[_(u(t.label),1)]),_:2},1024)]),_:2},1032,["id","aria-label","color","external","href","rel","target","on-click"])]))),128))],10,f))}});export{k as CLNavSection,k as default};
@@ -1,9 +1,15 @@
1
- import { CLColors } from '../../index.ts';
1
+ import { Ref } from 'vue';
2
+ import { CLColors, CLPalette } from '../../index.ts';
3
+ interface ThemeContext {
4
+ colors: Ref<CLPalette>;
5
+ darkMode: Ref<boolean | undefined>;
6
+ }
2
7
  interface BaseLinkProps {
3
8
  color: CLColors;
4
9
  underline?: boolean;
10
+ theme?: ThemeContext;
5
11
  }
6
- export declare const base_link: ({ color, underline }: BaseLinkProps) => {
12
+ export declare const base_link: ({ color, underline, theme }: BaseLinkProps) => {
7
13
  '--clll-link-text-color': string;
8
14
  '--clll-link-text-hover': string;
9
15
  '--clll-link-underline-color': string;
@@ -1,3 +1,3 @@
1
1
  import '../../../assets/core.css';
2
2
  import './CLDropdownMenu.css';
3
- import{defineComponent as e,ref as o,computed as t,onBeforeUnmount as n,createElementBlock as a,openBlock as d,normalizeClass as r,createVNode as l,createCommentVNode as i,unref as s,withCtx as u,createTextVNode as c,toDisplayString as p,normalizeStyle as b,renderSlot as f}from"vue";import{u as m,a as _,f as v,o as w,s as h}from"../../../chunks/floating-ui.vue-C0JWy0Dz.js";import{_ as y}from"../../../chunks/CLButton.vue_vue_type_style_index_0_lang-CqwRXex5.js";import{_ as g}from"../../../chunks/CLCard.vue_vue_type_style_index_0_lang-CMQi_nx9.js";import{c as B,i as $}from"../../../chunks/helper-C542dSLs.js";import{useDropdown as z}from"../../../composables/useDropdown.js";import{useEsc as x}from"../../../composables/useEsc.js";import{CLPlacement as I,CLIconSizes as k,CLIconNames as E,CLColorVariants as L,CLSizes as C,CLColors as D}from"../../../index.js";const S=["data-testid"],H=["id","aria-labelledby","aria-hidden"],j=/* @__PURE__ */e({name:"CLDropdownMenu",__name:"CLDropdownMenu",props:{buttonAriaLabel:{},buttonBorderRadius:{},buttonBusy:{type:Boolean},buttonColor:{default:D.Secondary},buttonDisabled:{type:Boolean},buttonHeight:{default:"auto"},buttonSize:{default:C.Small},buttonVariant:{default:L.Soft},buttonWidth:{default:"auto"},buttonWrapped:{type:Boolean},containerBordered:{type:Boolean,default:!0},containerBorderRadius:{},containerElevated:{type:Boolean,default:!1},contentWidth:{default:"auto"},dropdownId:{},iconAfter:{default:E.ChevronDown},iconBefore:{},iconSize:{default:k.Tiny},isOpen:{type:Boolean,default:!1},label:{},onCloseHandler:{},onOpenHandler:{},placement:{default:I.BottomStart},testId:{default:"clll-dropdown-menu"},zIndex:{default:30}},setup(e,{expose:I}){const k=e;let E=o(),C=o();const j=o(),O=o(),W=o(k.isOpen),R=o(k.placement),A="clll-dropdown-menu",M=t(()=>"auto"===k.zIndex||B(k.zIndex)?k.zIndex:k.zIndex.toString()),V=e=>{e&&(E.value=e)},G=e=>{e&&(C.value=e)},N=()=>{T.value?F():q()},{open:T,openDropdown:q,closeDropdown:F,clearEventListeners:J}=z({triggerElem:E,dropdownRef:O,openDropdownHandler:()=>{W.value=!0,k?.onOpenHandler?.(),P(),$&&document.addEventListener("click",Q)},closeDropdownHandler:()=>{W.value=!1,k?.onCloseHandler?.(),$&&document.removeEventListener("click",Q),U(),J()}});I({close:()=>{F(),J(),U()},open:()=>{q()}});const{floatingStyles:K,update:P}=m(j,O,{middleware:[v(),w(10),h()],placement:R,open:W,whileElementsMounted:_}),Q=e=>{W.value&&O.value?.contains(e?.target)&&F()},{clearEventListeners:U}=x({escHandler:F,triggerElem:E});return n(()=>{$&&document.removeEventListener("click",Q),U(),J()}),(o,t)=>(d(),a("div",{class:r([`${A}__menu`]),"data-testid":e.testId},[l(s(y),{id:`${A}__toggle--${e.dropdownId}`,ref_key:"anchor",ref:j,"aria-controls":`${A}--${e.dropdownId}`,"aria-expanded":s(W)||e.isOpen,"aria-label":e.buttonAriaLabel,busy:e.buttonBusy,disabled:e.buttonDisabled||e.buttonBusy,class:r(`${A}__toggle`),color:e.buttonColor,"border-radius":e.buttonBorderRadius,"forward-ref":V,height:e.buttonHeight,"icon-after":e.iconAfter,"icon-before":e.iconBefore,"icon-size":e.iconSize,size:e.buttonSize,"test-id":`${A}__toggle`,variant:e.buttonVariant,width:e.buttonWidth,wrap:e.buttonWrapped,"on-click":N},{default:u(()=>[c(p(e.label),1)]),_:1},8,["id","aria-controls","aria-expanded","aria-label","busy","disabled","class","color","border-radius","height","icon-after","icon-before","icon-size","size","test-id","variant","width","wrap"]),s(W)||e.isOpen?(d(),a("div",{key:0,id:`${A}--${e.dropdownId}`,ref_key:"dropdownElem",ref:O,"aria-labelledby":`${A}__toggle--${e.dropdownId}`,"aria-hidden":!(s(W)||e.isOpen),class:r([`${A}__dropdown`,`${A}__dropdown--${s(R)}`]),style:b({...s(K),zIndex:s(M)})},[l(s(g),{bordered:e.containerBordered,"border-radius":e.containerBorderRadius,color:s(D).Neutral,elevated:e.containerElevated,"forward-ref":G,padded:!1,"test-id":`${A}__content`,variant:s(L).Ghost,width:e.contentWidth},{default:u(()=>[f(o.$slots,"content")]),_:3},8,["bordered","border-radius","color","elevated","test-id","variant","width"])],14,H)):i("",!0)],10,S))}});export{j as CLDropdownMenu,j as default};
3
+ import{defineComponent as e,ref as o,computed as t,onBeforeUnmount as n,createElementBlock as a,openBlock as d,normalizeClass as r,createVNode as l,createCommentVNode as i,unref as s,withCtx as u,createTextVNode as c,toDisplayString as p,normalizeStyle as b,renderSlot as f}from"vue";import{u as m,a as _,f as v,o as w,s as h}from"../../../chunks/floating-ui.vue-C0JWy0Dz.js";import{_ as y}from"../../../chunks/CLButton.vue_vue_type_style_index_0_lang-Bi7GC71m.js";import{_ as g}from"../../../chunks/CLCard.vue_vue_type_style_index_0_lang-Lb49WiaW.js";import{c as B,i as $}from"../../../chunks/helper-C542dSLs.js";import{useDropdown as z}from"../../../composables/useDropdown.js";import{useEsc as x}from"../../../composables/useEsc.js";import{CLPlacement as I,CLIconSizes as E,CLIconNames as L,CLColorVariants as k,CLSizes as C,CLColors as D}from"../../../index.js";const S=["data-testid"],H=["id","aria-labelledby","aria-hidden"],j=/* @__PURE__ */e({name:"CLDropdownMenu",__name:"CLDropdownMenu",props:{buttonAriaLabel:{},buttonBorderRadius:{},buttonBusy:{type:Boolean},buttonColor:{default:D.Secondary},buttonDisabled:{type:Boolean},buttonHeight:{default:"auto"},buttonSize:{default:C.Small},buttonVariant:{default:k.Soft},buttonWidth:{default:"auto"},buttonWrapped:{type:Boolean},containerBordered:{type:Boolean,default:!0},containerBorderRadius:{},containerElevated:{type:Boolean,default:!1},contentWidth:{default:"auto"},dropdownId:{},iconAfter:{default:L.ChevronDown},iconBefore:{},iconSize:{default:E.Tiny},isOpen:{type:Boolean,default:!1},label:{},onCloseHandler:{},onOpenHandler:{},placement:{default:I.BottomStart},testId:{default:"clll-dropdown-menu"},zIndex:{default:30}},setup(e,{expose:I}){const E=e;let L=o(),C=o();const j=o(),O=o(),W=o(E.isOpen),R=o(E.placement),A="clll-dropdown-menu",M=t(()=>"auto"===E.zIndex||B(E.zIndex)?E.zIndex:E.zIndex.toString()),V=e=>{e&&(L.value=e)},G=e=>{e&&(C.value=e)},N=()=>{T.value?F():q()},{open:T,openDropdown:q,closeDropdown:F,clearEventListeners:J}=z({triggerElem:L,dropdownRef:O,openDropdownHandler:()=>{W.value=!0,E?.onOpenHandler?.(),P(),$&&document.addEventListener("click",Q)},closeDropdownHandler:()=>{W.value=!1,E?.onCloseHandler?.(),$&&document.removeEventListener("click",Q),U(),J()}});I({close:()=>{F(),J(),U()},open:()=>{q()}});const{floatingStyles:K,update:P}=m(j,O,{middleware:[v(),w(10),h()],placement:R,open:W,whileElementsMounted:_}),Q=e=>{W.value&&O.value?.contains(e?.target)&&F()},{clearEventListeners:U}=x({escHandler:F,triggerElem:L});return n(()=>{$&&document.removeEventListener("click",Q),U(),J()}),(o,t)=>(d(),a("div",{class:r([`${A}__menu`]),"data-testid":e.testId},[l(s(y),{id:`${A}__toggle--${e.dropdownId}`,ref_key:"anchor",ref:j,"aria-controls":`${A}--${e.dropdownId}`,"aria-expanded":s(W)||e.isOpen,"aria-label":e.buttonAriaLabel,busy:e.buttonBusy,disabled:e.buttonDisabled||e.buttonBusy,class:r(`${A}__toggle`),color:e.buttonColor,"border-radius":e.buttonBorderRadius,"forward-ref":V,height:e.buttonHeight,"icon-after":e.iconAfter,"icon-before":e.iconBefore,"icon-size":e.iconSize,size:e.buttonSize,"test-id":`${A}__toggle`,variant:e.buttonVariant,width:e.buttonWidth,wrap:e.buttonWrapped,"on-click":N},{default:u(()=>[c(p(e.label),1)]),_:1},8,["id","aria-controls","aria-expanded","aria-label","busy","disabled","class","color","border-radius","height","icon-after","icon-before","icon-size","size","test-id","variant","width","wrap"]),s(W)||e.isOpen?(d(),a("div",{key:0,id:`${A}--${e.dropdownId}`,ref_key:"dropdownElem",ref:O,"aria-labelledby":`${A}__toggle--${e.dropdownId}`,"aria-hidden":!(s(W)||e.isOpen),class:r([`${A}__dropdown`,`${A}__dropdown--${s(R)}`]),style:b({...s(K),zIndex:s(M)})},[l(s(g),{bordered:e.containerBordered,"border-radius":e.containerBorderRadius,color:s(D).Neutral,elevated:e.containerElevated,"forward-ref":G,padded:!1,"test-id":`${A}__content`,variant:s(k).Ghost,width:e.contentWidth},{default:u(()=>[f(o.$slots,"content")]),_:3},8,["bordered","border-radius","color","elevated","test-id","variant","width"])],14,H)):i("",!0)],10,S))}});export{j as CLDropdownMenu,j as default};
@@ -56,8 +56,8 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<CL
56
56
  open: () => void;
57
57
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<CLDropdownMenuProps> & Readonly<{}>, {
58
58
  testId: string;
59
- iconAfter: CLIconNames;
60
59
  iconSize: CLIconSizes;
60
+ iconAfter: CLIconNames;
61
61
  isOpen: boolean;
62
62
  zIndex: number | string;
63
63
  placement: CLPlacement;
@@ -123,6 +123,7 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<CL
123
123
  title: string;
124
124
  color: CLColors;
125
125
  variant: CLColorVariants;
126
+ size: CLSizes;
126
127
  rounded: boolean;
127
128
  testId: string;
128
129
  type: import('../../../types').CLButtonTypes;
@@ -131,21 +132,20 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<CL
131
132
  target: import('../../../types').CLLinkTarget;
132
133
  width: string;
133
134
  height: string;
134
- size: CLSizes;
135
+ borderRadius: CLBorderRadius;
136
+ iconSize: CLIconSizes;
137
+ iconFilled: boolean;
135
138
  href: string;
136
139
  active: boolean;
137
140
  alignContent: import('../../../types').CLAlign;
138
141
  ariaLabel: string;
139
142
  as: import('../../../types').CLButtonTags;
140
- borderRadius: CLBorderRadius;
141
143
  busy: boolean;
142
144
  disabled: boolean;
143
145
  elevated: boolean;
144
146
  forwardRef: import('../../../types').CLButtonForwardRefFunction;
145
147
  iconAfter: CLIconNames;
146
148
  iconBefore: CLIconNames;
147
- iconFilled: boolean;
148
- iconSize: CLIconSizes;
149
149
  pill: boolean;
150
150
  wrap: boolean;
151
151
  }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
@@ -172,6 +172,7 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<CL
172
172
  title: string;
173
173
  color: CLColors;
174
174
  variant: CLColorVariants;
175
+ size: CLSizes;
175
176
  rounded: boolean;
176
177
  testId: string;
177
178
  type: import('../../../types').CLButtonTypes;
@@ -180,24 +181,23 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<CL
180
181
  target: import('../../../types').CLLinkTarget;
181
182
  width: string;
182
183
  height: string;
183
- size: CLSizes;
184
+ borderRadius: CLBorderRadius;
185
+ iconSize: CLIconSizes;
186
+ iconFilled: boolean;
184
187
  href: string;
185
188
  active: boolean;
186
189
  alignContent: import('../../../types').CLAlign;
187
190
  ariaLabel: string;
188
191
  as: import('../../../types').CLButtonTags;
189
- borderRadius: CLBorderRadius;
190
192
  busy: boolean;
191
193
  disabled: boolean;
192
194
  elevated: boolean;
193
195
  forwardRef: import('../../../types').CLButtonForwardRefFunction;
194
196
  iconAfter: CLIconNames;
195
197
  iconBefore: CLIconNames;
196
- iconFilled: boolean;
197
- iconSize: CLIconSizes;
198
198
  pill: boolean;
199
199
  wrap: boolean;
200
- }> & Omit<Readonly<import('../../Buttons/CLButton/CLButton.vue').CLButtonProps> & Readonly<{}>, "title" | "color" | "variant" | "rounded" | "testId" | "type" | "form" | "onClick" | "target" | "width" | "height" | "size" | "href" | "active" | "alignContent" | "ariaLabel" | "as" | "borderRadius" | "busy" | "disabled" | "elevated" | "forwardRef" | "iconAfter" | "iconBefore" | "iconFilled" | "iconSize" | "pill" | "wrap"> & import('vue').ShallowUnwrapRef<{}> & {} & import('vue').ComponentCustomProperties & {} & {
200
+ }> & Omit<Readonly<import('../../Buttons/CLButton/CLButton.vue').CLButtonProps> & Readonly<{}>, "title" | "color" | "variant" | "size" | "rounded" | "testId" | "type" | "form" | "onClick" | "target" | "width" | "height" | "borderRadius" | "iconSize" | "iconFilled" | "href" | "active" | "alignContent" | "ariaLabel" | "as" | "busy" | "disabled" | "elevated" | "forwardRef" | "iconAfter" | "iconBefore" | "pill" | "wrap"> & import('vue').ShallowUnwrapRef<{}> & {} & import('vue').ComponentCustomProperties & {} & {
201
201
  $slots: {
202
202
  default?(_: {}): any;
203
203
  };
@@ -1,3 +1,3 @@
1
1
  import '../../../assets/core.css';
2
2
  import './CLToast.css';
3
- import{_ as s}from"../../../chunks/CLToast.vue_vue_type_style_index_0_lang-BTKkG8MZ.js";export{s as CLToast,s as default};
3
+ import{_ as s}from"../../../chunks/CLToast.vue_vue_type_style_index_0_lang-zgtfLRPh.js";export{s as CLToast,s as default};
@@ -4,10 +4,10 @@ declare const _default: import('vue').DefineComponent<CLToastProps, {}, {}, {},
4
4
  rounded: boolean;
5
5
  testId: string;
6
6
  width: string;
7
- position: CLToastPosition;
8
- iconFilled: boolean;
9
- iconSize: CLIconSizes;
10
7
  dismissTimer: number;
8
+ iconSize: CLIconSizes;
9
+ iconFilled: boolean;
10
+ position: CLToastPosition;
11
11
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
12
12
  elem: HTMLOutputElement;
13
13
  }, HTMLOutputElement>;
@@ -1,8 +1,14 @@
1
- import { CLColors } from '../../index.ts';
1
+ import { Ref } from 'vue';
2
+ import { CLColors, CLPalette } from '../../index.ts';
3
+ interface ThemeContext {
4
+ colors: Ref<CLPalette>;
5
+ darkMode: Ref<boolean | undefined>;
6
+ }
2
7
  interface ThemeProps {
3
8
  color: CLColors;
9
+ theme?: ThemeContext;
4
10
  }
5
- export declare const toastTheme: ({ color }: ThemeProps) => {
11
+ export declare const toastTheme: ({ color, theme }: ThemeProps) => {
6
12
  '--clll-toast-bg-color': string;
7
13
  '--clll-toast-text-color': string | undefined;
8
14
  '--clll-toast-action-button-text-color': string | undefined;
@@ -1,2 +1,2 @@
1
1
  import '../../../assets/core.css';
2
- import{defineComponent as e,provide as t,onMounted as o,onBeforeUnmount as a,watch as r,createBlock as s,openBlock as l,resolveDynamicComponent as i,normalizeStyle as d,unref as n,withCtx as m,renderSlot as f}from"vue";import{s as c,T as u,D as h}from"../../../chunks/context-CRxE5KWX.js";import{i as g,b as C}from"../../../chunks/helper-C542dSLs.js";const p=/* @__PURE__ */e({__name:"CLThemeProvider",props:{tag:{default:"div"},themeConfig:{},autoDetectDarkMode:{type:Boolean,default:!0}},setup(e){const p=e,v=c(p.themeConfig);t(u,v);const{setBorderRadius:k,setColors:D,setDarkMode:y,setFontFamily:M}=v;let F=null;const b=()=>{if(p.autoDetectDarkMode&&g){const e=C();y(e)}};return o(()=>{p.autoDetectDarkMode&&g&&(b(),F=window.matchMedia("(prefers-color-scheme: dark)"),F.addEventListener("change",b))}),a(()=>{F&&g&&F.removeEventListener("change",b)}),r(()=>p.themeConfig?.borderRadius,e=>{k(e)}),r(()=>p.themeConfig?.colors,e=>{e&&D(e)}),r(()=>p.themeConfig?.darkMode,e=>{void 0===e||p.autoDetectDarkMode||y(e)}),r(()=>p.themeConfig?.fontFamily,e=>{M(e)}),(t,o)=>(l(),s(i(e.tag),{class:"clll-theme-provider",style:d({"--clll-font-family":e.themeConfig?.fontFamily||n(h).fontFamily,"--clll-default-radius":e.themeConfig?.borderRadius?`var(--clll-${e.themeConfig.borderRadius})`:void 0})},{default:m(()=>[f(t.$slots,"default")]),_:3},8,["style"]))}});export{p as CLThemeProvider,h as DEFAULT_THEME,u as ThemeInjectionKey,p as default};
2
+ import{defineComponent as e,provide as t,onMounted as o,onBeforeUnmount as a,watch as r,createBlock as s,openBlock as l,resolveDynamicComponent as d,normalizeStyle as n,normalizeClass as i,unref as c,withCtx as m,renderSlot as f}from"vue";import{s as u,T as h}from"../../../chunks/context-CRxE5KWX.js";export{D as DEFAULT_THEME}from"../../../chunks/context-CRxE5KWX.js";import{i as k,b as p}from"../../../chunks/helper-C542dSLs.js";const g=/* @__PURE__ */e({__name:"CLThemeProvider",props:{tag:{default:"div"},themeConfig:{},autoDetectDarkMode:{type:Boolean,default:!0}},setup(e){const g=e,v=u(g.themeConfig);t(h,v);const{borderRadius:D,darkMode:C,fontFamily:M,setBorderRadius:y,setColors:E,setDarkMode:F,setFontFamily:L}=v;let T=null;const x=()=>{if(g.autoDetectDarkMode&&k){const e=p();F(e)}};return o(()=>{g.autoDetectDarkMode&&k&&(x(),T=window.matchMedia("(prefers-color-scheme: dark)"),T.addEventListener("change",x))}),a(()=>{T&&k&&T.removeEventListener("change",x)}),r(()=>g.themeConfig?.borderRadius,e=>{y(e)}),r(()=>g.themeConfig?.colors,e=>{e&&E(e)}),r(()=>g.themeConfig?.darkMode,e=>{void 0===e||g.autoDetectDarkMode||F(e)}),r(()=>g.themeConfig?.fontFamily,e=>{L(e)}),(t,o)=>(l(),s(d(e.tag),{class:i(["clll-theme-provider","--clll-color-theme-"+(c(C)?"dark":"light")]),style:n({"--clll-font-family":c(M),"--clll-default-radius":c(D)?`var(--clll-${c(D)})`:void 0})},{default:m(()=>[f(t.$slots,"default")]),_:3},8,["class","style"]))}});export{g as CLThemeProvider,h as ThemeInjectionKey,g as default};
@@ -1,2 +1,2 @@
1
1
  import '../../../assets/core.css';
2
- import{defineComponent as s,ref as i,provide as o,createElementBlock as e,openBlock as r,createBlock as a,createCommentVNode as t,renderSlot as d,unref as u,mergeProps as l}from"vue";import{_ as m}from"../../../chunks/CLToast.vue_vue_type_style_index_0_lang-BTKkG8MZ.js";import{T as n}from"../../../chunks/context-JmPivI9V.js";const v={class:"clll-toast-provider"},p=/* @__PURE__ */s({name:"CLToastProvider",__name:"CLToastProvider",props:{borderRadius:{},dismissTimer:{},position:{}},setup(s){const p=s,T=i({}),_=i(!1),c=()=>{_.value=!1,T.value={}};return o(n,{visible:_,showToast:s=>{T.value={...s,borderRadius:s.borderRadius??p.borderRadius,dismissTimer:s.dismissTimer??p.dismissTimer,position:s.position??p.position},_.value=!0},hideToast:c}),(s,i)=>(r(),e("div",v,[_.value?(r(),a(u(m),l({key:0},T.value,{"on-dismiss":c}),null,16)):t("",!0),d(s.$slots,"default")]))}});export{p as CLToastProvider,n as ToastInjectionKey,p as default};
2
+ import{defineComponent as s,ref as i,provide as o,createElementBlock as e,openBlock as r,createBlock as a,createCommentVNode as t,renderSlot as d,unref as u,mergeProps as l}from"vue";import{_ as m}from"../../../chunks/CLToast.vue_vue_type_style_index_0_lang-zgtfLRPh.js";import{T as n}from"../../../chunks/context-JmPivI9V.js";const v={class:"clll-toast-provider"},p=/* @__PURE__ */s({name:"CLToastProvider",__name:"CLToastProvider",props:{borderRadius:{},dismissTimer:{},position:{}},setup(s){const p=s,T=i({}),_=i(!1),c=()=>{_.value=!1,T.value={}};return o(n,{visible:_,showToast:s=>{T.value={...s,borderRadius:s.borderRadius??p.borderRadius,dismissTimer:s.dismissTimer??p.dismissTimer,position:s.position??p.position},_.value=!0},hideToast:c}),(s,i)=>(r(),e("div",v,[_.value?(r(),a(u(m),l({key:0},T.value,{"on-dismiss":c}),null,16)):t("",!0),d(s.$slots,"default")]))}});export{p as CLToastProvider,n as ToastInjectionKey,p as default};
@@ -1,3 +1,3 @@
1
1
  import '../../../assets/core.css';
2
2
  import './CLHeading.css';
3
- import{_ as e}from"../../../chunks/CLHeading.vue_vue_type_style_index_0_lang-CsmrsD6c.js";export{e as CLHeading,e as default};
3
+ import{_ as e}from"../../../chunks/CLHeading.vue_vue_type_style_index_0_lang-C7RHX0J4.js";export{e as CLHeading,e as default};
@@ -1,3 +1,3 @@
1
1
  import '../../../assets/core.css';
2
2
  import './CLText.css';
3
- import{_ as e}from"../../../chunks/CLText.vue_vue_type_style_index_0_lang-CMXJdE-D.js";export{e as CLText,e as default};
3
+ import{_ as e}from"../../../chunks/CLText.vue_vue_type_style_index_0_lang-Tv0xzrRz.js";export{e as CLText,e as default};
@@ -1,8 +1,14 @@
1
- import { CLColors } from '../../index.ts';
1
+ import { Ref } from 'vue';
2
+ import { CLColors, CLPalette } from '../../index.ts';
3
+ interface ThemeContext {
4
+ colors: Ref<CLPalette>;
5
+ darkMode: Ref<boolean | undefined>;
6
+ }
2
7
  interface TextThemeProps {
3
8
  color?: CLColors;
9
+ theme?: ThemeContext;
4
10
  }
5
- export declare const textTheme: ({ color }: TextThemeProps) => {
11
+ export declare const textTheme: ({ color, theme }: TextThemeProps) => {
6
12
  '--clll-text-color': string;
7
13
  };
8
14
  export {};
@@ -1,2 +1,2 @@
1
1
  import '../assets/core.css';
2
- import{ref as e,inject as o}from"vue";import{D as r,T as a}from"../chunks/context-CRxE5KWX.js";const s=e(r.borderRadius),l=e(r.darkMode),n=e(r.fontFamily),t=e(r.colors||{primary:{},secondary:{},neutral:{},danger:{},warning:{},success:{},info:{}}),u=()=>{const e=o(a,null);return e||(console.warn("[Callaloo]: useTheme() must be used within a <CLThemeProvider />."),{borderRadius:s,colors:t,darkMode:l,fontFamily:n,setBorderRadius:e=>{s.value=e},setColors:e=>{t.value={...t.value,...e}},setDarkMode:e=>{l.value=e},setFontFamily:e=>{n.value=e}})};export{u as useTheme};
2
+ import{D as e,T as o}from"../chunks/context-CRxE5KWX.js";import{ref as r,getCurrentInstance as a,inject as n}from"vue";const s=r(e.borderRadius),t=r(e.darkMode),l=r(e.fontFamily),u=r(e.colors||{primary:{},secondary:{},neutral:{},danger:{},warning:{},success:{},info:{}}),d=()=>{const e=a(),r=e?.type.name||"(anonymous component)",d=n(o,null);return d||(console.warn(`[Callaloo]: useTheme() must be used within a <CLThemeProvider />. Called from component: ${r}`,(new Error).stack),{borderRadius:s,colors:u,darkMode:t,fontFamily:l,setBorderRadius:e=>{s.value=e},setColors:e=>{u.value={...u.value,...e}},setDarkMode:e=>{t.value=e},setFontFamily:e=>{l.value=e}})};export{d as useTheme};
@@ -1,6 +1,31 @@
1
+ import { ComputedRef } from 'vue';
1
2
  import { CLToastProps } from '../index.ts';
2
- export declare const useToast: () => {
3
- visible: globalThis.ComputedRef<boolean>;
4
- showToast: (input: Omit<CLToastProps, "onDismiss">) => void;
5
- hideToast: () => void | undefined;
6
- };
3
+ interface UseToastReturn {
4
+ /**
5
+ * Whether a toast is currently visible.
6
+ *
7
+ * This value is always a boolean. When used without a `<CLToastProvider />`,
8
+ * it will remain `false` and `showToast` / `hideToast` will be safe no-ops.
9
+ */
10
+ visible: ComputedRef<boolean>;
11
+ /**
12
+ * Show a toast using the configured provider.
13
+ *
14
+ * When called without a `<CLToastProvider />`, this function is a no-op
15
+ * and will not throw, but a console warning will have been emitted when
16
+ * the composable was first used.
17
+ */
18
+ showToast: (input: Omit<CLToastProps, 'onDismiss'>) => void;
19
+ /**
20
+ * Hide the current toast using the configured provider.
21
+ *
22
+ * When called without a `<CLToastProvider />`, this function is a no-op.
23
+ */
24
+ hideToast: () => void;
25
+ }
26
+ /**
27
+ * Composable to control toasts via the `CLToastProvider`.
28
+ * Must be used within a `CLToastProvider` component for full functionality.
29
+ */
30
+ export declare const useToast: () => UseToastReturn;
31
+ export {};
@@ -1,2 +1,2 @@
1
1
  import '../assets/core.css';
2
- import{inject as o,computed as s}from"vue";import{T as t}from"../chunks/context-JmPivI9V.js";const e=()=>{const e=o(t,null);e||console.warn("[Callaloo]: useToast() must be used within a <CLToastProvider />.");return{visible:s(()=>e?.visible.value??!1),showToast:o=>{e?.showToast?.(o)},hideToast:()=>e?.hideToast()}};export{e as useToast};
2
+ import{T as o}from"../chunks/context-JmPivI9V.js";import{getCurrentInstance as s,inject as e,computed as t}from"vue";const n=()=>{const n=s(),a=n?.type.name||"(anonymous component)",r=e(o,null);r||console.warn(`[Callaloo]: useToast() must be used within a <CLToastProvider />. Called from component: ${a}`,(new Error).stack);return{visible:t(()=>r?.visible.value??!1),showToast:o=>{r?.showToast?.(o)},hideToast:()=>r?.hideToast()}};export{n as useToast};