@codeandfunction/callaloo 5.18.0 → 5.19.1

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 (68) hide show
  1. package/dist/callaloo.global.js +1 -1
  2. package/dist/chunks/{CLA11yButton.vue_vue_type_style_index_0_lang-DGiLtqOy.js → CLA11yButton.vue_vue_type_style_index_0_lang-CklXklqV.js} +1 -1
  3. package/dist/chunks/{CLBadge.vue_vue_type_style_index_0_lang-CC1d7FFT.js → CLBadge.vue_vue_type_style_index_0_lang-CV_7_Qyj.js} +1 -1
  4. package/dist/chunks/{CLButton.vue_vue_type_style_index_0_lang-3oov-2S-.js → CLButton.vue_vue_type_style_index_0_lang-Djk1tZMn.js} +1 -1
  5. package/dist/chunks/{CLCalendar.vue_vue_type_style_index_0_lang-xa6sggad.js → CLCalendar.vue_vue_type_style_index_0_lang-PWGiCc3o.js} +1 -1
  6. package/dist/chunks/{CLCard.vue_vue_type_style_index_0_lang-DXz2T1Ha.js → CLCard.vue_vue_type_style_index_0_lang-rqasvjs2.js} +1 -1
  7. package/dist/chunks/{CLFormCharCounter.vue_vue_type_style_index_0_lang-DOFo6uDr.js → CLFormCharCounter.vue_vue_type_style_index_0_lang-SV4Y0w3M.js} +1 -1
  8. package/dist/chunks/{CLFormLabel.vue_vue_type_script_setup_true_lang-BaRxbSSD.js → CLFormLabel.vue_vue_type_script_setup_true_lang-C5yGBUgu.js} +1 -1
  9. package/dist/chunks/{CLHeading.vue_vue_type_style_index_0_lang-DtnWXEDh.js → CLHeading.vue_vue_type_style_index_0_lang-D0XEmw1o.js} +1 -1
  10. package/dist/chunks/CLIcon.vue_vue_type_style_index_0_lang-BBNiJbT_.js +2 -0
  11. package/dist/chunks/{CLInputMessages.vue_vue_type_style_index_0_lang-_9xPoXzB.js → CLInputMessages.vue_vue_type_style_index_0_lang-c_7B01YR.js} +1 -1
  12. package/dist/chunks/{CLLink.vue_vue_type_style_index_0_lang-Dpe8ZXTT.js → CLLink.vue_vue_type_style_index_0_lang-DOr1YNzt.js} +1 -1
  13. package/dist/chunks/{CLModal.vue_vue_type_style_index_0_lang-C-OnnPRY.js → CLModal.vue_vue_type_style_index_0_lang-GFYtqy5P.js} +1 -1
  14. package/dist/chunks/{CLNavLink.vue_vue_type_script_setup_true_lang-Cr1KTBJu.js → CLNavLink.vue_vue_type_script_setup_true_lang-BbjtTT3Q.js} +1 -1
  15. package/dist/chunks/{CLPill.vue_vue_type_style_index_0_lang-DaqrLsbi.js → CLPill.vue_vue_type_style_index_0_lang-BY_ejhuK.js} +1 -1
  16. package/dist/chunks/{CLSkeleton.vue_vue_type_style_index_0_lang-C3nvMzZQ.js → CLSkeleton.vue_vue_type_style_index_0_lang-CDLBI5eJ.js} +1 -1
  17. package/dist/chunks/{CLSpinner.vue_vue_type_style_index_0_lang-j8raz5Wv.js → CLSpinner.vue_vue_type_style_index_0_lang-DPEknyfT.js} +1 -1
  18. package/dist/chunks/{CLText.vue_vue_type_style_index_0_lang-BsVCn68a.js → CLText.vue_vue_type_style_index_0_lang-BAAbTVfM.js} +1 -1
  19. package/dist/chunks/{CLToast.vue_vue_type_style_index_0_lang-BDASgT5Y.js → CLToast.vue_vue_type_style_index_0_lang-Cb9O6aBh.js} +1 -1
  20. package/dist/chunks/icons-P5t3hFEA.js +1 -0
  21. package/dist/chunks/{index-DwjW-Z-U.js → index-B12lvfc1.js} +1 -1
  22. package/dist/chunks/{utils-CYyJsKfZ.js → utils-B9d9FGrx.js} +1 -1
  23. package/dist/chunks/{utils-BoyoJazO.js → utils-BoV9808p.js} +1 -1
  24. package/dist/chunks/{utils-C3JaGgm2.js → utils-Bwwl2IrH.js} +1 -1
  25. package/dist/chunks/{utils-DRDgxG5G.js → utils-By5hNPYe.js} +1 -1
  26. package/dist/chunks/{utils-YT2O7a-k.js → utils-C_TTXNNJ.js} +1 -1
  27. package/dist/chunks/{utils-DvcV6fqd.js → utils-Le7SULjh.js} +1 -1
  28. package/dist/components/Buttons/CLA11yButton/CLA11yButton.js +1 -1
  29. package/dist/components/Buttons/CLButton/CLButton.js +1 -1
  30. package/dist/components/CLIcon/CLIcon.js +1 -1
  31. package/dist/components/CLIcon/CLIcon.vue.d.ts +3 -1
  32. package/dist/components/CLTable/CLTable.js +1 -1
  33. package/dist/components/Containers/CLCard/CLCard.js +1 -1
  34. package/dist/components/Containers/CLCarousel/CLCarousel.js +1 -1
  35. package/dist/components/Containers/CLDisclosure/CLDisclosure.js +1 -1
  36. package/dist/components/Containers/CLDrawer/CLDrawer.js +1 -1
  37. package/dist/components/Form/CLCalendar/CLCalendar.js +1 -1
  38. package/dist/components/Form/CLCheckbox/CLCheckbox.js +1 -1
  39. package/dist/components/Form/CLInput/CLInput.js +1 -1
  40. package/dist/components/Form/CLInputDatePicker/CLInputDatePicker.js +1 -1
  41. package/dist/components/Form/CLInputTimePicker/CLInputTimePicker.js +1 -1
  42. package/dist/components/Form/CLRadioButton/CLRadioButton.js +1 -1
  43. package/dist/components/Form/CLSelect/CLSelect.js +1 -1
  44. package/dist/components/Form/CLTextArea/CLTextArea.js +1 -1
  45. package/dist/components/Form/CLTimePicker/CLTimePicker.js +1 -1
  46. package/dist/components/Indicators/CLBadge/CLBadge.js +1 -1
  47. package/dist/components/Indicators/CLBanner/CLBanner.js +1 -1
  48. package/dist/components/Indicators/CLPill/CLPill.js +1 -1
  49. package/dist/components/Indicators/CLProgress/CLProgress.js +1 -1
  50. package/dist/components/Loading/CLSkeleton/CLSkeleton.js +1 -1
  51. package/dist/components/Loading/CLSpinner/CLSpinner.js +1 -1
  52. package/dist/components/Modals/CLModal/CLModal.js +1 -1
  53. package/dist/components/Modals/CLModalDatePicker/CLModalDatePicker.js +1 -1
  54. package/dist/components/Modals/CLModalTimePicker/CLModalTimePicker.js +1 -1
  55. package/dist/components/Navigation/CLLink/CLLink.js +1 -1
  56. package/dist/components/Navigation/CLNavLink/CLNavLink.js +1 -1
  57. package/dist/components/Navigation/CLNavSection/CLNavSection.js +1 -1
  58. package/dist/components/Popups/CLDropdownMenu/CLDropdownMenu.js +1 -1
  59. package/dist/components/Popups/CLToast/CLToast.js +1 -1
  60. package/dist/components/Providers/CLThemeProvider/CLThemeProvider.js +1 -1
  61. package/dist/components/Providers/CLToastProvider/CLToastProvider.js +1 -1
  62. package/dist/components/Typography/CLHeading/CLHeading.js +1 -1
  63. package/dist/components/Typography/CLText/CLText.js +1 -1
  64. package/dist/composables/useTheme.js +1 -1
  65. package/dist/index.js +1 -1
  66. package/package.json +2 -2
  67. package/dist/chunks/CLIcon.vue_vue_type_style_index_0_lang-DW43E2NB.js +0 -2
  68. package/dist/chunks/icons-B_JpVsf3.js +0 -1
@@ -1,2 +1,2 @@
1
1
  import '../components/Buttons/CLA11yButton/CLA11yButton.css';
2
- import{defineComponent as e,ref as t,computed as a,createElementBlock as o,openBlock as l,withKeys as d,normalizeStyle as n,normalizeClass as r,unref as u,renderSlot as s}from"vue";import{d as i}from"./index-DwjW-Z-U.js";import{a as c}from"./utils-C3JaGgm2.js";import{useTheme as f}from"../composables/useTheme.js";const p=["data-testid","tabindex"],m=/* @__PURE__ */e({name:"CLA11yButton",__name:"CLA11yButton",props:{color:{default:i.Neutral},enabled:{type:Boolean,default:!1},fluid:{type:Boolean,default:!0},rounded:{type:Boolean,default:!0},testId:{default:"clll-a11y__button"}},setup(e){const i=e,m=f(),b=["a","button"],y=t(),_=a(()=>["clll-a11y__button",i.enabled?"--enabled":"",i.rounded?"--rounded":"",i.fluid?"--fluid":""]),x=e=>{if(!i.enabled)return;const{target:t}=e,a=t?t.closest("a,button"):void 0,o=[...y.value?.querySelectorAll("[data-expand-click-area]")??[]];if(o.length){const t=o[0],l=a?b.includes(a.tagName.toLowerCase()):null;a||t===e.target||l||t.click()}};return(t,a)=>(l(),o("div",{ref_key:"refExpandedArea",ref:y,class:r(u(_)),"data-testid":e.testId,tabindex:e.enabled?0:void 0,style:n(u(c)({color:e.color,theme:u(m)})),onClick:x,onKeyup:d(x,["enter"])},[s(t.$slots,"default")],46,p))}});export{m as _};
2
+ import{defineComponent as e,ref as t,computed as a,createElementBlock as o,openBlock as l,withKeys as d,normalizeStyle as n,normalizeClass as r,unref as u,renderSlot as s}from"vue";import{d as i}from"./index-B12lvfc1.js";import{a as c}from"./utils-Bwwl2IrH.js";import{useTheme as f}from"../composables/useTheme.js";const p=["data-testid","tabindex"],m=/* @__PURE__ */e({name:"CLA11yButton",__name:"CLA11yButton",props:{color:{default:i.Neutral},enabled:{type:Boolean,default:!1},fluid:{type:Boolean,default:!0},rounded:{type:Boolean,default:!0},testId:{default:"clll-a11y__button"}},setup(e){const i=e,m=f(),b=["a","button"],y=t(),_=a(()=>["clll-a11y__button",i.enabled?"--enabled":"",i.rounded?"--rounded":"",i.fluid?"--fluid":""]),x=e=>{if(!i.enabled)return;const{target:t}=e,a=t?t.closest("a,button"):void 0,o=[...y.value?.querySelectorAll("[data-expand-click-area]")??[]];if(o.length){const t=o[0],l=a?b.includes(a.tagName.toLowerCase()):null;a||t===e.target||l||t.click()}};return(t,a)=>(l(),o("div",{ref_key:"refExpandedArea",ref:y,class:r(u(_)),"data-testid":e.testId,tabindex:e.enabled?0:void 0,style:n(u(c)({color:e.color,theme:u(m)})),onClick:x,onKeyup:d(x,["enter"])},[s(t.$slots,"default")],46,p))}});export{m as _};
@@ -1,2 +1,2 @@
1
1
  import '../components/Indicators/CLBadge/CLBadge.css';
2
- import{defineComponent as e,computed as t,createElementBlock as a,openBlock as l,normalizeStyle as d,normalizeClass as o,unref as r,createCommentVNode as i,toDisplayString as s}from"vue";import{c as n,d as u}from"./index-DwjW-Z-U.js";import{b as c}from"./utils-DRDgxG5G.js";const v=["data-testid"],b=/* @__PURE__ */e({name:"CLBadge",__name:"CLBadge",props:{borderRadius:{},color:{default:u.Neutral},elevated:{type:Boolean,default:!1},label:{default:void 0},limit:{default:void 0},testId:{default:"clll-badge"},variant:{default:n.Soft}},setup(e){const n=e,u="clll-badge",b=t(()=>void 0===n.label||null===n.label||""===n.label),f=t(()=>{if(b.value)return"";const e=n.limit??0,t=n.label;return e&&t.toString().length>e?`${t.toString().slice(0,e)}+`:t}),m=t(()=>[u,n.borderRadius?`${u}--${n.borderRadius}`:"",n.elevated?`${u}--elevated`:"",b.value?`${u}--dot`:"",`${u}--${n.color}--${n.variant}`]);return(t,n)=>(l(),a("div",{class:o(r(m)),"data-testid":e.testId,style:d(r(c)({color:e.color,variant:e.variant}))},[r(b)?i("",!0):(l(),a("span",{key:0,class:o(`${u}__count`)},s(r(f)),3))],14,v))}});export{b as _};
2
+ import{defineComponent as e,computed as t,createElementBlock as a,openBlock as l,normalizeStyle as d,normalizeClass as o,unref as r,createCommentVNode as i,toDisplayString as s}from"vue";import{c as n,d as u}from"./index-B12lvfc1.js";import{b as c}from"./utils-By5hNPYe.js";const v=["data-testid"],b=/* @__PURE__ */e({name:"CLBadge",__name:"CLBadge",props:{borderRadius:{},color:{default:u.Neutral},elevated:{type:Boolean,default:!1},label:{default:void 0},limit:{default:void 0},testId:{default:"clll-badge"},variant:{default:n.Soft}},setup(e){const n=e,u="clll-badge",b=t(()=>void 0===n.label||null===n.label||""===n.label),f=t(()=>{if(b.value)return"";const e=n.limit??0,t=n.label;return e&&t.toString().length>e?`${t.toString().slice(0,e)}+`:t}),m=t(()=>[u,n.borderRadius?`${u}--${n.borderRadius}`:"",n.elevated?`${u}--elevated`:"",b.value?`${u}--dot`:"",`${u}--${n.color}--${n.variant}`]);return(t,n)=>(l(),a("div",{class:o(r(m)),"data-testid":e.testId,style:d(r(c)({color:e.color,variant:e.variant}))},[r(b)?i("",!0):(l(),a("span",{key:0,class:o(`${u}__count`)},s(r(f)),3))],14,v))}});export{b as _};
@@ -1,2 +1,2 @@
1
1
  import '../components/Buttons/CLButton/CLButton.css';
2
- import{defineComponent as e,useSlots as t,ref as a,computed as o,onMounted as l,nextTick as i,createBlock as d,openBlock as r,resolveDynamicComponent as n,normalizeStyle as s,normalizeClass as u,unref as f,withCtx as c,createCommentVNode as b,createElementBlock as p,renderSlot as m}from"vue";import{_ as v}from"./CLBadge.vue_vue_type_style_index_0_lang-CC1d7FFT.js";import{_ as y}from"./CLIcon.vue_vue_type_style_index_0_lang-DW43E2NB.js";import{_ as g}from"./CLSpinner.vue_vue_type_style_index_0_lang-j8raz5Wv.js";import{CLButtonTypes as _}from"../index.js";import{b as $}from"./utils-C3JaGgm2.js";import{useHasSlotContent as h}from"../composables/useHasSlotContent.js";import{useTheme as B}from"../composables/useTheme.js";import{c as C,C as L,e as z,d as S,i as X,j,h as k}from"./index-DwjW-Z-U.js";import{b as w}from"./index-wkMXT2wB.js";const x=/* @__PURE__ */e({name:"CLButton",__name:"CLButton",props:{active:{type:Boolean,default:!1},alignContent:{default:X.Center},ariaLabel:{default:void 0},as:{default:"button"},badge:{type:[Boolean,Number,String],default:void 0},badgeColor:{default:S.Danger},badgeLimit:{default:void 0},borderRadius:{default:void 0},busy:{type:Boolean,default:!1},color:{default:S.Neutral},disabled:{type:Boolean,default:!1},elevated:{type:Boolean,default:!1},form:{default:void 0},forwardRef:{type:Function,default:void 0},height:{default:"auto"},href:{default:void 0},iconAfter:{default:void 0},iconBefore:{default:void 0},iconFilled:{type:Boolean,default:!1},iconSize:{default:z.Small},onClick:{type:Function,default:void 0},pill:{type:Boolean,default:!1},rounded:{type:Boolean,default:!0},size:{default:L.Small},target:{default:w.Self},testId:{default:"clll-button"},title:{default:void 0},type:{default:_.Button},variant:{default:C.Soft},width:{default:"auto"},wrap:{type:Boolean,default:!1}},setup(e){const _=e,z=B(),S=h();t();const w=a(),x="clll-button",F=o(()=>void 0!==_.badge&&!1!==_.badge&&"false"!==_.badge&&""!==_.badge),I=o(()=>{if("boolean"!=typeof _.badge&&"true"!==_.badge)return _.badge}),R=o(()=>[x,`${x}--${_.type}`,`${x}--${_.color}--${_.variant}`,`${x}--${_.size}`,`${x}--${_.alignContent}`,_.active?`${x}--active`:"",_.busy?`${x}--busy`:"",_.disabled?`${x}--disabled`:"",_.wrap?`${x}--wrapped`:"",_.rounded?`${x}--rounded`:"",_.borderRadius?`${x}--${_.borderRadius}`:"",S.value?`${x}--has-content`:`${x}--no-content`,_.iconBefore?`${x}--icon-before`:"",_.iconAfter?`${x}--icon-after`:"",_.elevated?`${x}--elevated`:"",_.pill?`${x}--pill`:"",F.value?`${x}--has-badge`:""]),A=()=>{switch(_.size){case L.Medium:case L.Large:return L.Small;case L.XL:case L.XXL:return L.Medium;case L.XXXL:return L.Large;case L.XXXXL:return L.XL;case L.Tiny:default:return L.Tiny}};l(()=>{i(()=>{w.value&&_.forwardRef?.(w.value)})});const T=e=>{_.onClick?.(e)};return(t,a)=>(r(),d(n(e.as),{ref_key:"buttonRef",ref:w,"aria-label":e.ariaLabel,class:u(f(R)),"data-testid":e.testId,disabled:"button"===e.as?e.busy||e.disabled:void 0,form:"button"===e.as?e.form:void 0,href:"a"===e.as?e.href:void 0,target:"a"===e.as?e.target:void 0,title:e.title,type:"button"===e.as?e.type:void 0,style:s({width:e.width,height:e.height,...f($)({color:e.color,variant:e.variant,theme:f(z)})}),onClick:T},{default:c(()=>[e.iconBefore?(r(),d(f(y),{key:0,filled:e.iconFilled,name:e.iconBefore,size:e.iconSize,"test-id":`${e.testId}-icon-before`},null,8,["filled","name","size","test-id"])):b("",!0),f(S)?(r(),p("span",{key:1,class:u(`${x}__content`)},[m(t.$slots,"default")],2)):b("",!0),e.iconAfter?(r(),d(f(y),{key:2,filled:e.iconFilled,name:e.iconAfter,size:e.iconSize,"test-id":`${e.testId}-icon-after`},null,8,["filled","name","size","test-id"])):b("",!0),e.busy?(r(),d(f(g),{key:3,align:f(X).Center,position:f(j).Absolute,size:A(),color:e.color},null,8,["align","position","size","color"])):b("",!0),f(F)?(r(),d(f(v),{key:4,"border-radius":f(k).Full,class:u(`${x}__badge`),color:e.badgeColor,label:f(I),limit:e.badgeLimit,"test-id":`${e.testId}-badge`,variant:f(C).Solid},null,8,["border-radius","class","color","label","limit","test-id","variant"])):b("",!0)]),_:3},8,["aria-label","class","data-testid","disabled","form","href","target","title","type","style"]))}});export{x as _};
2
+ import{defineComponent as e,useSlots as t,ref as a,computed as o,onMounted as l,nextTick as i,createBlock as d,openBlock as r,resolveDynamicComponent as n,normalizeStyle as s,normalizeClass as u,unref as f,withCtx as c,createCommentVNode as b,createElementBlock as p,renderSlot as m}from"vue";import{_ as v}from"./CLBadge.vue_vue_type_style_index_0_lang-CV_7_Qyj.js";import{_ as y}from"./CLIcon.vue_vue_type_style_index_0_lang-BBNiJbT_.js";import{_ as g}from"./CLSpinner.vue_vue_type_style_index_0_lang-DPEknyfT.js";import{CLButtonTypes as _}from"../index.js";import{b as $}from"./utils-Bwwl2IrH.js";import{useHasSlotContent as h}from"../composables/useHasSlotContent.js";import{useTheme as B}from"../composables/useTheme.js";import{c as C,C as L,e as z,d as S,i as X,j,h as k}from"./index-B12lvfc1.js";import{b as w}from"./index-wkMXT2wB.js";const x=/* @__PURE__ */e({name:"CLButton",__name:"CLButton",props:{active:{type:Boolean,default:!1},alignContent:{default:X.Center},ariaLabel:{default:void 0},as:{default:"button"},badge:{type:[Boolean,Number,String],default:void 0},badgeColor:{default:S.Danger},badgeLimit:{default:void 0},borderRadius:{default:void 0},busy:{type:Boolean,default:!1},color:{default:S.Neutral},disabled:{type:Boolean,default:!1},elevated:{type:Boolean,default:!1},form:{default:void 0},forwardRef:{type:Function,default:void 0},height:{default:"auto"},href:{default:void 0},iconAfter:{default:void 0},iconBefore:{default:void 0},iconFilled:{type:Boolean,default:!1},iconSize:{default:z.Small},onClick:{type:Function,default:void 0},pill:{type:Boolean,default:!1},rounded:{type:Boolean,default:!0},size:{default:L.Small},target:{default:w.Self},testId:{default:"clll-button"},title:{default:void 0},type:{default:_.Button},variant:{default:C.Soft},width:{default:"auto"},wrap:{type:Boolean,default:!1}},setup(e){const _=e,z=B(),S=h();t();const w=a(),x="clll-button",F=o(()=>void 0!==_.badge&&!1!==_.badge&&"false"!==_.badge&&""!==_.badge),I=o(()=>{if("boolean"!=typeof _.badge&&"true"!==_.badge)return _.badge}),R=o(()=>[x,`${x}--${_.type}`,`${x}--${_.color}--${_.variant}`,`${x}--${_.size}`,`${x}--${_.alignContent}`,_.active?`${x}--active`:"",_.busy?`${x}--busy`:"",_.disabled?`${x}--disabled`:"",_.wrap?`${x}--wrapped`:"",_.rounded?`${x}--rounded`:"",_.borderRadius?`${x}--${_.borderRadius}`:"",S.value?`${x}--has-content`:`${x}--no-content`,_.iconBefore?`${x}--icon-before`:"",_.iconAfter?`${x}--icon-after`:"",_.elevated?`${x}--elevated`:"",_.pill?`${x}--pill`:"",F.value?`${x}--has-badge`:""]),A=()=>{switch(_.size){case L.Medium:case L.Large:return L.Small;case L.XL:case L.XXL:return L.Medium;case L.XXXL:return L.Large;case L.XXXXL:return L.XL;case L.Tiny:default:return L.Tiny}};l(()=>{i(()=>{w.value&&_.forwardRef?.(w.value)})});const T=e=>{_.onClick?.(e)};return(t,a)=>(r(),d(n(e.as),{ref_key:"buttonRef",ref:w,"aria-label":e.ariaLabel,class:u(f(R)),"data-testid":e.testId,disabled:"button"===e.as?e.busy||e.disabled:void 0,form:"button"===e.as?e.form:void 0,href:"a"===e.as?e.href:void 0,target:"a"===e.as?e.target:void 0,title:e.title,type:"button"===e.as?e.type:void 0,style:s({width:e.width,height:e.height,...f($)({color:e.color,variant:e.variant,theme:f(z)})}),onClick:T},{default:c(()=>[e.iconBefore?(r(),d(f(y),{key:0,filled:e.iconFilled,name:e.iconBefore,size:e.iconSize,"test-id":`${e.testId}-icon-before`},null,8,["filled","name","size","test-id"])):b("",!0),f(S)?(r(),p("span",{key:1,class:u(`${x}__content`)},[m(t.$slots,"default")],2)):b("",!0),e.iconAfter?(r(),d(f(y),{key:2,filled:e.iconFilled,name:e.iconAfter,size:e.iconSize,"test-id":`${e.testId}-icon-after`},null,8,["filled","name","size","test-id"])):b("",!0),e.busy?(r(),d(f(g),{key:3,align:f(X).Center,position:f(j).Absolute,size:A(),color:e.color},null,8,["align","position","size","color"])):b("",!0),f(F)?(r(),d(f(v),{key:4,"border-radius":f(k).Full,class:u(`${x}__badge`),color:e.badgeColor,label:f(I),limit:e.badgeLimit,"test-id":`${e.testId}-badge`,variant:f(C).Solid},null,8,["border-radius","class","color","label","limit","test-id","variant"])):b("",!0)]),_:3},8,["aria-label","class","data-testid","disabled","form","href","target","title","type","style"]))}});export{x as _};
@@ -1,2 +1,2 @@
1
1
  import '../components/Form/CLCalendar/CLCalendar.css';
2
- import{defineComponent as e,mergeModels as a,useCssVars as l,useModel as t,ref as i,toRef as d,watch as r,onMounted as s,createElementBlock as o,openBlock as n,normalizeStyle as u,normalizeClass as c,unref as p,createElementVNode as f,createVNode as v,withCtx as y,createTextVNode as m,toDisplayString as _,Fragment as b,renderList as h,createBlock as D,createCommentVNode as g}from"vue";import{_ as k}from"./CLButton.vue_vue_type_style_index_0_lang-3oov-2S-.js";import{_ as w}from"./CLText.vue_vue_type_style_index_0_lang-BsVCn68a.js";import{c as x,C as z,e as C,f as S,h as $,a as j,d as L,i as M}from"./index-DwjW-Z-U.js";import{c as T}from"./utils-YT2O7a-k.js";import{useDatePicker as B}from"../composables/useDatePicker.js";import{useTheme as P}from"../composables/useTheme.js";const R=["data-testid"],E=/* @__PURE__ */e({name:"CLCalendar",__name:"CLCalendar",props:/* @__PURE__ */a({allowedDates:{type:[Array,Object,Function],default:void 0},color:{default:L.Primary},disabled:{type:Boolean,default:!1},busy:{type:Boolean,default:!1},isRange:{type:Boolean,default:!0},fluid:{type:Boolean,default:!1},testId:{default:"clll-calendar"},width:{default:"280px"}},{modelValue:{},modelModifiers:{}}),emits:/* @__PURE__ */a(["date-select"],["update:modelValue"]),setup(e,{expose:a,emit:E}){l(e=>({v2a0ead45:e.width}));const F=e,G=E,I=P(),N="clll-calendar",V=t(e,"modelValue"),A=i(V.value?.end??null),O=i(V.value?.start??null),{calendarGrid:q,cancelDraft:H,clearDraft:J,currentMonthLabel:K,draftEnd:Q,draftStart:U,getDayAriaLabel:W,handleNextMonth:X,handlePrevMonth:Y,initializeDraft:Z,isDraftEnd:ee,isDraftSameDay:ae,isDraftStart:le,isInDraftRange:te,onDayClick:ie,weekDays:de}=B({allowedDates:d(F,"allowedDates"),appliedEnd:A,appliedStart:O,isRange:d(F,"isRange")});r(V,e=>{O.value=e?.start??null,A.value=e?.end??null,Z()},{deep:!0}),s(()=>{Z()});return a({apply:()=>{O.value=U.value,A.value=Q.value,V.value={end:A.value,start:O.value}},cancel:()=>{H()},draftEnd:Q,draftStart:U,initializeDraft:Z,reset:()=>{J(),O.value=null,A.value=null,V.value=null}}),(a,l)=>(n(),o("div",{class:c([N,e.fluid?`${N}__fluid`:""]),"data-testid":e.testId,style:u(p(T)(p(I)))},[f("div",{class:c(`${N}__header`)},[v(p(k),{"aria-label":"Previous month","border-radius":p($).Full,"icon-before":p(S).ChevronLeft,"icon-size":p(C).Tiny,"on-click":p(Y),size:p(z).Tiny,variant:p(x).Ghost,height:"32px",width:"32px",wrap:""},null,8,["border-radius","icon-before","icon-size","on-click","size","variant"]),v(p(w),{type:p(j).Medium,medium:""},{default:y(()=>[m(_(p(K)),1)]),_:1},8,["type"]),v(p(k),{"aria-label":"Next month","border-radius":p($).Full,"icon-before":p(S).ChevronRight,"icon-size":p(C).Tiny,"on-click":p(X),size:p(z).Tiny,variant:p(x).Ghost,height:"32px",width:"32px",wrap:""},null,8,["border-radius","icon-before","icon-size","on-click","size","variant"])],2),f("div",{class:c(`${N}__grid`)},[(n(!0),o(b,null,h(p(de),e=>(n(),o("div",{key:e,class:c(`${N}__weekday`)},[v(p(w),{align:p(M).Center,color:p(L).Neutral,type:p(j).Small},{default:y(()=>[m(_(e),1)]),_:2},1032,["align","color","type"])],2))),128)),(n(!0),o(b,null,h(p(q),(a,l)=>(n(),o("div",{key:a.date??`pad-${l}`,class:c([`${N}__cell`,a.isOutsideMonth||a.isDisabled?`${N}__cell--outside`:"",a.date&&p(ae)(a.date)?`${N}__cell--same-day`:""])},[a.day&&a.date?(n(),D(p(k),{key:0,"aria-label":p(W)(a.date),"border-radius":p($).Full,color:p(le)(a.date)||p(ee)(a.date)?e.color:p(L).Secondary,disabled:e.disabled||e.busy||a.isDisabled,size:p(z).Small,height:"100%",width:"100%","on-click":e=>((e,a)=>{a?.preventDefault(),a?.stopPropagation(),F.disabled||F.busy||!e||(ie(e),G("date-select",e))})(a.date,e),variant:p(le)(a.date)||p(ee)(a.date)?p(x).Solid:p(te)(a.date)?p(x).Soft:p(x).Ghost,wrap:""},{default:y(()=>[m(_(a.day),1)]),_:2},1032,["aria-label","border-radius","color","disabled","size","on-click","variant"])):g("",!0)],2))),128))],2)],14,R))}});export{E as _};
2
+ import{defineComponent as e,mergeModels as a,useCssVars as l,useModel as t,ref as i,toRef as d,watch as r,onMounted as s,createElementBlock as o,openBlock as n,normalizeStyle as u,normalizeClass as c,unref as p,createElementVNode as f,createVNode as v,withCtx as y,createTextVNode as m,toDisplayString as _,Fragment as b,renderList as h,createBlock as D,createCommentVNode as g}from"vue";import{_ as k}from"./CLButton.vue_vue_type_style_index_0_lang-Djk1tZMn.js";import{_ as w}from"./CLText.vue_vue_type_style_index_0_lang-BAAbTVfM.js";import{c as x,C as z,e as C,f as S,h as $,a as j,d as L,i as M}from"./index-B12lvfc1.js";import{c as T}from"./utils-C_TTXNNJ.js";import{useDatePicker as B}from"../composables/useDatePicker.js";import{useTheme as P}from"../composables/useTheme.js";const R=["data-testid"],E=/* @__PURE__ */e({name:"CLCalendar",__name:"CLCalendar",props:/* @__PURE__ */a({allowedDates:{type:[Array,Object,Function],default:void 0},color:{default:L.Primary},disabled:{type:Boolean,default:!1},busy:{type:Boolean,default:!1},isRange:{type:Boolean,default:!0},fluid:{type:Boolean,default:!1},testId:{default:"clll-calendar"},width:{default:"280px"}},{modelValue:{},modelModifiers:{}}),emits:/* @__PURE__ */a(["date-select"],["update:modelValue"]),setup(e,{expose:a,emit:E}){l(e=>({v2a0ead45:e.width}));const F=e,G=E,I=P(),N="clll-calendar",V=t(e,"modelValue"),A=i(V.value?.end??null),O=i(V.value?.start??null),{calendarGrid:q,cancelDraft:H,clearDraft:J,currentMonthLabel:K,draftEnd:Q,draftStart:U,getDayAriaLabel:W,handleNextMonth:X,handlePrevMonth:Y,initializeDraft:Z,isDraftEnd:ee,isDraftSameDay:ae,isDraftStart:le,isInDraftRange:te,onDayClick:ie,weekDays:de}=B({allowedDates:d(F,"allowedDates"),appliedEnd:A,appliedStart:O,isRange:d(F,"isRange")});r(V,e=>{O.value=e?.start??null,A.value=e?.end??null,Z()},{deep:!0}),s(()=>{Z()});return a({apply:()=>{O.value=U.value,A.value=Q.value,V.value={end:A.value,start:O.value}},cancel:()=>{H()},draftEnd:Q,draftStart:U,initializeDraft:Z,reset:()=>{J(),O.value=null,A.value=null,V.value=null}}),(a,l)=>(n(),o("div",{class:c([N,e.fluid?`${N}__fluid`:""]),"data-testid":e.testId,style:u(p(T)(p(I)))},[f("div",{class:c(`${N}__header`)},[v(p(k),{"aria-label":"Previous month","border-radius":p($).Full,"icon-before":p(S).ChevronLeft,"icon-size":p(C).Tiny,"on-click":p(Y),size:p(z).Tiny,variant:p(x).Ghost,height:"32px",width:"32px",wrap:""},null,8,["border-radius","icon-before","icon-size","on-click","size","variant"]),v(p(w),{type:p(j).Medium,medium:""},{default:y(()=>[m(_(p(K)),1)]),_:1},8,["type"]),v(p(k),{"aria-label":"Next month","border-radius":p($).Full,"icon-before":p(S).ChevronRight,"icon-size":p(C).Tiny,"on-click":p(X),size:p(z).Tiny,variant:p(x).Ghost,height:"32px",width:"32px",wrap:""},null,8,["border-radius","icon-before","icon-size","on-click","size","variant"])],2),f("div",{class:c(`${N}__grid`)},[(n(!0),o(b,null,h(p(de),e=>(n(),o("div",{key:e,class:c(`${N}__weekday`)},[v(p(w),{align:p(M).Center,color:p(L).Neutral,type:p(j).Small},{default:y(()=>[m(_(e),1)]),_:2},1032,["align","color","type"])],2))),128)),(n(!0),o(b,null,h(p(q),(a,l)=>(n(),o("div",{key:a.date??`pad-${l}`,class:c([`${N}__cell`,a.isOutsideMonth||a.isDisabled?`${N}__cell--outside`:"",a.date&&p(ae)(a.date)?`${N}__cell--same-day`:""])},[a.day&&a.date?(n(),D(p(k),{key:0,"aria-label":p(W)(a.date),"border-radius":p($).Full,color:p(le)(a.date)||p(ee)(a.date)?e.color:p(L).Secondary,disabled:e.disabled||e.busy||a.isDisabled,size:p(z).Small,height:"100%",width:"100%","on-click":e=>((e,a)=>{a?.preventDefault(),a?.stopPropagation(),F.disabled||F.busy||!e||(ie(e),G("date-select",e))})(a.date,e),variant:p(le)(a.date)||p(ee)(a.date)?p(x).Solid:p(te)(a.date)?p(x).Soft:p(x).Ghost,wrap:""},{default:y(()=>[m(_(a.day),1)]),_:2},1032,["aria-label","border-radius","color","disabled","size","on-click","variant"])):g("",!0)],2))),128))],2)],14,R))}});export{E as _};
@@ -1,2 +1,2 @@
1
1
  import '../components/Containers/CLCard/CLCard.css';
2
- import{defineComponent as e,useSlots as a,ref as t,computed as l,onMounted as i,nextTick as r,createElementBlock as o,openBlock as d,withKeys as s,normalizeStyle as n,normalizeClass as u,unref as c,createCommentVNode as g,createElementVNode as h,createBlock as y,renderSlot as f,Fragment as m,withCtx as b,createTextVNode as _,toDisplayString as v}from"vue";import{_ as $}from"./CLHeading.vue_vue_type_style_index_0_lang-DtnWXEDh.js";import{_ as p}from"./CLLink.vue_vue_type_style_index_0_lang-Dpe8ZXTT.js";import{_ as k}from"./CLSkeleton.vue_vue_type_style_index_0_lang-C3nvMzZQ.js";import{_ as C}from"./CLText.vue_vue_type_style_index_0_lang-BsVCn68a.js";import{c as w,k as x,l as L,d as H,i as T,a as R}from"./index-DwjW-Z-U.js";import{c as j,b as B,d as S,e as A,f as O}from"./index-wkMXT2wB.js";import{c as W}from"./utils-CYyJsKfZ.js";import{useHasSlotContent as E}from"../composables/useHasSlotContent.js";import{useTheme as I}from"../composables/useTheme.js";const N=["data-testid","tabindex"],q=["alt","loading","src"],G={key:0,class:"clll-card__header-skeleton"},K=["alt","loading","src"],M=["aria-label","href","target"],z=/* @__PURE__ */e({name:"CLCard",__name:"CLCard",props:{active:{type:Boolean,default:!1},align:{default:T.Left},ariaLabel:{},borderRadius:{},bordered:{type:Boolean,default:!0},busy:{type:Boolean,default:!1},byline:{},color:{default:H.Neutral},compact:{type:Boolean,default:!1},elevated:{type:Boolean,default:!1},forwardRef:{},height:{default:"auto"},href:{},image:{},imageAltText:{default:""},imageHeight:{default:"auto"},imageLoading:{default:A.Eager},imageOrder:{},imageWidth:{default:"auto"},onClick:{},overflow:{default:S.Hidden},padded:{type:Boolean,default:!0},rounded:{type:Boolean,default:!0},target:{default:B.Self},testId:{default:"clll-card"},title:{},titleHLevel:{default:j.H2},titleType:{default:L.SubSection},truncateTitle:{type:Boolean,default:!1},type:{default:x.Medium},variant:{default:w.Soft},width:{default:"auto"}},setup(e){const x="clll-card",L=I(),H=e,T=E(),j=a(),B=t(),S=t(),A=["a","button"],z=t(),D=l(()=>[x,`${x}--${H.type}`,`${x}--${H.color}-${H.variant}`,`${x}--${H.variant}`,`${x}--align-${H.align}`,H.rounded?`${x}--rounded`:`${x}--box`,H.bordered?`${x}--bordered`:"",H.borderRadius?`${x}--${H.borderRadius}`:"",H.busy?`${x}--busy`:`${x}--ready`,H.compact?`${x}--compact`:`${x}--no-compact`,H.title||H.byline?`${x}--has-header`:`${x}--no-header`,H.byline?`${x}--has-byline`:`${x}--no-byline`,B.value?`${x}--has-heading`:`${x}--no-heading`,T.value?`${x}--has-content`:`${x}--no-content`,S.value?`${x}--has-footer`:`${x}--no-footer`,H.image?`${x}--has-image`:`${x}--has-no-image`,H.imageOrder?`${x}--image-${H.imageOrder}`:"",H.active?`${x}--active`:`${x}--inactive`,H.onClick?`${x}--has-link`:"",H.truncateTitle?`${x}--has-truncated-title`:"",H.elevated?`${x}--elevated`:"",H.overflow?`${x}--overflow-${H.overflow}`:"",H.padded?"":`${x}--no-padding`]),F=e=>{if(H.busy||!H.onClick)return;const{target:a}=e,t=a?a.closest("a,button"):void 0,l=[...z.value?.querySelectorAll("[data-expand-click-area]")??[]];if(l.length){const a=l[0],i=t?A.includes(t.tagName.toLowerCase()):null;t||a===e.target||i||a.click()}};return i(async()=>{await r(),z.value&&H.forwardRef?.(z.value),B.value=j?.heading,S.value=j?.footer}),(a,t)=>(d(),o("div",{ref_key:"refExpandedArea",ref:z,class:u(c(D)),style:n({...c(W)({color:e.color,variant:e.variant,theme:c(L)}),width:e.width,height:e.height,overflow:e.overflow}),"data-testid":e.testId,tabindex:e.onClick?0:void 0,onClick:F,onKeyup:s(F,["enter"])},[!e.image||e.imageOrder!==c(O).Before&&e.imageOrder?g("",!0):(d(),o("div",{key:0,class:u(["clll-card__image",{busy:e.busy}]),style:n({width:e.imageWidth,height:e.imageHeight})},[e.busy?(d(),y(c(k),{key:0,"border-radius":e.borderRadius,width:e.imageWidth,height:e.imageHeight,rounded:!1},null,8,["border-radius","width","height"])):g("",!0),e.image?(d(),o("img",{key:1,alt:e.imageAltText,class:u(`${x}__image__elem`),loading:e.imageLoading,src:e.image},null,10,q)):g("",!0)],6)),h("div",{class:u(`${x}__content`)},[h("div",{class:u(["clll-card__header",{busy:e.busy}])},[e.busy&&(c(B)||e.title||e.byline)?(d(),o("div",G,[c(B)||e.title?(d(),y(c(k),{key:0,"border-radius":e.borderRadius,height:"27px"},null,8,["border-radius"])):g("",!0),e.byline?(d(),y(c(k),{key:1,"border-radius":e.borderRadius,width:"70%",height:"20px"},null,8,["border-radius"])):g("",!0)])):g("",!0),e.onClick||e.href?e.title||c(B)&&(e.onClick||e.href)?(d(),y(c(p),{key:2,"aria-label":e.ariaLabel,color:e.color,href:e.href,target:e.target,"on-click":e.onClick,"data-expand-click-area":""},{default:b(()=>[f(a.$slots,"heading"),e.title?(d(),y(c($),{key:0,align:e.align,class:u(`${x}__heading`),color:e.color,level:e.titleHLevel,truncate:e.truncateTitle,type:e.titleType},{default:b(()=>[_(v(e.title),1)]),_:1},8,["align","class","color","level","truncate","type"])):g("",!0)]),_:3},8,["aria-label","color","href","target","on-click"])):g("",!0):(d(),o(m,{key:1},[f(a.$slots,"heading"),e.title?(d(),y(c($),{key:0,align:e.align,class:u(`${x}__heading`),color:e.color,level:e.titleHLevel,truncate:e.truncateTitle,type:e.titleType},{default:b(()=>[_(v(e.title),1)]),_:1},8,["align","class","color","level","truncate","type"])):g("",!0)],64)),f(a.$slots,"byline"),e.byline?(d(),y(c(C),{key:3,align:e.align,class:u(`${x}__byline`),color:e.color,type:c(R).Small},{default:b(()=>[_(v(e.byline),1)]),_:1},8,["align","class","color","type"])):g("",!0)],2),h("div",{class:u(`${x}__slot`)},[h("div",{ref:"slot-content",class:u([`${x}__slot-content`,{busy:e.busy}])},[c(T)&&e.busy?(d(),y(c(k),{key:0,"border-radius":e.borderRadius,width:"100%",height:"100%"},null,8,["border-radius"])):g("",!0),h("div",null,[f(a.$slots,"default")])],2)],2),h("div",{class:u(["clll-card__footer",{busy:e.busy}])},[c(S)&&e.busy?(d(),y(c(k),{key:0,"border-radius":e.borderRadius,width:"100%",height:"20px"},null,8,["border-radius"])):g("",!0),f(a.$slots,"footer")],2)],2),e.image&&e.imageOrder===c(O).After?(d(),o("div",{key:1,class:u(["clll-card__image",{busy:e.busy}]),style:n({width:e.imageWidth,height:e.imageHeight})},[e.busy?(d(),y(c(k),{key:0,"border-radius":e.borderRadius,width:e.imageWidth,height:e.imageHeight,rounded:!1},null,8,["border-radius","width","height"])):g("",!0),f(a.$slots,"image"),e.image?(d(),o("img",{key:1,alt:e.imageAltText,class:u(`${x}__image__elem`),loading:e.imageLoading,src:e.image},null,10,K)):g("",!0)],6)):g("",!0),e.title||!e.onClick&&!e.href?g("",!0):(d(),o("a",{key:2,"aria-label":e.ariaLabel,class:"sr-only",href:e.href,target:e.target,"data-expand-click-area":"",onClick:t[0]||(t[0]=(...a)=>e.onClick&&e.onClick(...a))},null,8,M)),e.onClick&&e.variant!==c(w).Ghost?(d(),o("div",{key:3,class:u(`${x}__hover-elem`)},null,2)):g("",!0)],46,N))}});export{z as _};
2
+ import{defineComponent as e,useSlots as a,ref as t,computed as l,onMounted as i,nextTick as r,createElementBlock as o,openBlock as d,withKeys as s,normalizeStyle as n,normalizeClass as u,unref as c,createCommentVNode as g,createElementVNode as h,createBlock as y,renderSlot as f,Fragment as m,withCtx as b,createTextVNode as _,toDisplayString as v}from"vue";import{_ as $}from"./CLHeading.vue_vue_type_style_index_0_lang-D0XEmw1o.js";import{_ as p}from"./CLLink.vue_vue_type_style_index_0_lang-DOr1YNzt.js";import{_ as k}from"./CLSkeleton.vue_vue_type_style_index_0_lang-CDLBI5eJ.js";import{_ as C}from"./CLText.vue_vue_type_style_index_0_lang-BAAbTVfM.js";import{c as w,k as x,l as L,d as H,i as T,a as R}from"./index-B12lvfc1.js";import{c as j,b as B,d as S,e as A,f as O}from"./index-wkMXT2wB.js";import{c as W}from"./utils-B9d9FGrx.js";import{useHasSlotContent as E}from"../composables/useHasSlotContent.js";import{useTheme as I}from"../composables/useTheme.js";const N=["data-testid","tabindex"],q=["alt","loading","src"],G={key:0,class:"clll-card__header-skeleton"},K=["alt","loading","src"],M=["aria-label","href","target"],z=/* @__PURE__ */e({name:"CLCard",__name:"CLCard",props:{active:{type:Boolean,default:!1},align:{default:T.Left},ariaLabel:{},borderRadius:{},bordered:{type:Boolean,default:!0},busy:{type:Boolean,default:!1},byline:{},color:{default:H.Neutral},compact:{type:Boolean,default:!1},elevated:{type:Boolean,default:!1},forwardRef:{},height:{default:"auto"},href:{},image:{},imageAltText:{default:""},imageHeight:{default:"auto"},imageLoading:{default:A.Eager},imageOrder:{},imageWidth:{default:"auto"},onClick:{},overflow:{default:S.Hidden},padded:{type:Boolean,default:!0},rounded:{type:Boolean,default:!0},target:{default:B.Self},testId:{default:"clll-card"},title:{},titleHLevel:{default:j.H2},titleType:{default:L.SubSection},truncateTitle:{type:Boolean,default:!1},type:{default:x.Medium},variant:{default:w.Soft},width:{default:"auto"}},setup(e){const x="clll-card",L=I(),H=e,T=E(),j=a(),B=t(),S=t(),A=["a","button"],z=t(),D=l(()=>[x,`${x}--${H.type}`,`${x}--${H.color}-${H.variant}`,`${x}--${H.variant}`,`${x}--align-${H.align}`,H.rounded?`${x}--rounded`:`${x}--box`,H.bordered?`${x}--bordered`:"",H.borderRadius?`${x}--${H.borderRadius}`:"",H.busy?`${x}--busy`:`${x}--ready`,H.compact?`${x}--compact`:`${x}--no-compact`,H.title||H.byline?`${x}--has-header`:`${x}--no-header`,H.byline?`${x}--has-byline`:`${x}--no-byline`,B.value?`${x}--has-heading`:`${x}--no-heading`,T.value?`${x}--has-content`:`${x}--no-content`,S.value?`${x}--has-footer`:`${x}--no-footer`,H.image?`${x}--has-image`:`${x}--has-no-image`,H.imageOrder?`${x}--image-${H.imageOrder}`:"",H.active?`${x}--active`:`${x}--inactive`,H.onClick?`${x}--has-link`:"",H.truncateTitle?`${x}--has-truncated-title`:"",H.elevated?`${x}--elevated`:"",H.overflow?`${x}--overflow-${H.overflow}`:"",H.padded?"":`${x}--no-padding`]),F=e=>{if(H.busy||!H.onClick)return;const{target:a}=e,t=a?a.closest("a,button"):void 0,l=[...z.value?.querySelectorAll("[data-expand-click-area]")??[]];if(l.length){const a=l[0],i=t?A.includes(t.tagName.toLowerCase()):null;t||a===e.target||i||a.click()}};return i(async()=>{await r(),z.value&&H.forwardRef?.(z.value),B.value=j?.heading,S.value=j?.footer}),(a,t)=>(d(),o("div",{ref_key:"refExpandedArea",ref:z,class:u(c(D)),style:n({...c(W)({color:e.color,variant:e.variant,theme:c(L)}),width:e.width,height:e.height,overflow:e.overflow}),"data-testid":e.testId,tabindex:e.onClick?0:void 0,onClick:F,onKeyup:s(F,["enter"])},[!e.image||e.imageOrder!==c(O).Before&&e.imageOrder?g("",!0):(d(),o("div",{key:0,class:u(["clll-card__image",{busy:e.busy}]),style:n({width:e.imageWidth,height:e.imageHeight})},[e.busy?(d(),y(c(k),{key:0,"border-radius":e.borderRadius,width:e.imageWidth,height:e.imageHeight,rounded:!1},null,8,["border-radius","width","height"])):g("",!0),e.image?(d(),o("img",{key:1,alt:e.imageAltText,class:u(`${x}__image__elem`),loading:e.imageLoading,src:e.image},null,10,q)):g("",!0)],6)),h("div",{class:u(`${x}__content`)},[h("div",{class:u(["clll-card__header",{busy:e.busy}])},[e.busy&&(c(B)||e.title||e.byline)?(d(),o("div",G,[c(B)||e.title?(d(),y(c(k),{key:0,"border-radius":e.borderRadius,height:"27px"},null,8,["border-radius"])):g("",!0),e.byline?(d(),y(c(k),{key:1,"border-radius":e.borderRadius,width:"70%",height:"20px"},null,8,["border-radius"])):g("",!0)])):g("",!0),e.onClick||e.href?e.title||c(B)&&(e.onClick||e.href)?(d(),y(c(p),{key:2,"aria-label":e.ariaLabel,color:e.color,href:e.href,target:e.target,"on-click":e.onClick,"data-expand-click-area":""},{default:b(()=>[f(a.$slots,"heading"),e.title?(d(),y(c($),{key:0,align:e.align,class:u(`${x}__heading`),color:e.color,level:e.titleHLevel,truncate:e.truncateTitle,type:e.titleType},{default:b(()=>[_(v(e.title),1)]),_:1},8,["align","class","color","level","truncate","type"])):g("",!0)]),_:3},8,["aria-label","color","href","target","on-click"])):g("",!0):(d(),o(m,{key:1},[f(a.$slots,"heading"),e.title?(d(),y(c($),{key:0,align:e.align,class:u(`${x}__heading`),color:e.color,level:e.titleHLevel,truncate:e.truncateTitle,type:e.titleType},{default:b(()=>[_(v(e.title),1)]),_:1},8,["align","class","color","level","truncate","type"])):g("",!0)],64)),f(a.$slots,"byline"),e.byline?(d(),y(c(C),{key:3,align:e.align,class:u(`${x}__byline`),color:e.color,type:c(R).Small},{default:b(()=>[_(v(e.byline),1)]),_:1},8,["align","class","color","type"])):g("",!0)],2),h("div",{class:u(`${x}__slot`)},[h("div",{ref:"slot-content",class:u([`${x}__slot-content`,{busy:e.busy}])},[c(T)&&e.busy?(d(),y(c(k),{key:0,"border-radius":e.borderRadius,width:"100%",height:"100%"},null,8,["border-radius"])):g("",!0),h("div",null,[f(a.$slots,"default")])],2)],2),h("div",{class:u(["clll-card__footer",{busy:e.busy}])},[c(S)&&e.busy?(d(),y(c(k),{key:0,"border-radius":e.borderRadius,width:"100%",height:"20px"},null,8,["border-radius"])):g("",!0),f(a.$slots,"footer")],2)],2),e.image&&e.imageOrder===c(O).After?(d(),o("div",{key:1,class:u(["clll-card__image",{busy:e.busy}]),style:n({width:e.imageWidth,height:e.imageHeight})},[e.busy?(d(),y(c(k),{key:0,"border-radius":e.borderRadius,width:e.imageWidth,height:e.imageHeight,rounded:!1},null,8,["border-radius","width","height"])):g("",!0),f(a.$slots,"image"),e.image?(d(),o("img",{key:1,alt:e.imageAltText,class:u(`${x}__image__elem`),loading:e.imageLoading,src:e.image},null,10,K)):g("",!0)],6)):g("",!0),e.title||!e.onClick&&!e.href?g("",!0):(d(),o("a",{key:2,"aria-label":e.ariaLabel,class:"sr-only",href:e.href,target:e.target,"data-expand-click-area":"",onClick:t[0]||(t[0]=(...a)=>e.onClick&&e.onClick(...a))},null,8,M)),e.onClick&&e.variant!==c(w).Ghost?(d(),o("div",{key:3,class:u(`${x}__hover-elem`)},null,2)):g("",!0)],46,N))}});export{z as _};
@@ -1,2 +1,2 @@
1
1
  import '../assets/CLFormCharCounter.css';
2
- import{defineComponent as r,computed as t,createElementBlock as e,openBlock as o,normalizeClass as l,unref as a,createElementVNode as c,toDisplayString as n}from"vue";import{C as s,d as u}from"./index-DwjW-Z-U.js";import{C as m}from"./index-wkMXT2wB.js";const f=["data-testid"],i={"aria-live":"polite",class:"clll-form-char-counter__char-counter__text",role:"status"},d=/* @__PURE__ */r({name:"CLFormCharCounter",__name:"CLFormCharCounter",props:{color:{default:u.Neutral},cssPrefix:{},currentLength:{},layout:{default:m.Block},maxLength:{},size:{default:s.Small},testId:{default:"clll-form-char-counter"}},setup(r){const s=r,u=t(()=>[`${s.cssPrefix}__char-counter`,"clll-form-char-counter",`clll-form-char-counter--${s.layout}`,`clll-form-char-counter--${s.size}`,`clll-form-char-counter--${s.color}`,s.layout===m.Inline?"form-counter-flex":""]);return(t,s)=>(o(),e("span",{class:l(a(u)),"data-testid":r.testId},[c("div",i,n(r.currentLength)+"/"+n(r.maxLength),1)],10,f))}});export{d as _};
2
+ import{defineComponent as r,computed as t,createElementBlock as e,openBlock as o,normalizeClass as l,unref as a,createElementVNode as c,toDisplayString as n}from"vue";import{C as s,d as u}from"./index-B12lvfc1.js";import{C as m}from"./index-wkMXT2wB.js";const f=["data-testid"],i={"aria-live":"polite",class:"clll-form-char-counter__char-counter__text",role:"status"},d=/* @__PURE__ */r({name:"CLFormCharCounter",__name:"CLFormCharCounter",props:{color:{default:u.Neutral},cssPrefix:{},currentLength:{},layout:{default:m.Block},maxLength:{},size:{default:s.Small},testId:{default:"clll-form-char-counter"}},setup(r){const s=r,u=t(()=>[`${s.cssPrefix}__char-counter`,"clll-form-char-counter",`clll-form-char-counter--${s.layout}`,`clll-form-char-counter--${s.size}`,`clll-form-char-counter--${s.color}`,s.layout===m.Inline?"form-counter-flex":""]);return(t,s)=>(o(),e("span",{class:l(a(u)),"data-testid":r.testId},[c("div",i,n(r.currentLength)+"/"+n(r.maxLength),1)],10,f))}});export{d as _};
@@ -1 +1 @@
1
- import{defineComponent as e,createElementBlock as l,openBlock as a,normalizeClass as s,createVNode as t,unref as r,withCtx as o,createTextVNode as d,toDisplayString as X}from"vue";import{_ as i}from"./CLText.vue_vue_type_style_index_0_lang-BsVCn68a.js";import{C as m,a as f}from"./index-DwjW-Z-U.js";const u=["for","data-testid"],_=/* @__PURE__ */e({name:"CLFormLabel",__name:"CLFormLabel",props:{cssPrefix:{default:"clll-form"},htmlFor:{},label:{},required:{type:Boolean,default:!1},size:{default:m.Small},testId:{default:"clll-form-label"}},setup(e){const _={[m.Tiny]:f.Tiny,[m.Small]:f.Small,[m.Medium]:f.Medium,[m.Large]:f.Body,[m.XL]:f.XL,[m.XXL]:f.XXL,[m.XXXL]:f.XXXL,[m.XXXXL]:f.XXXXL};return(m,f)=>(a(),l("label",{for:e.htmlFor,class:s(`${e.cssPrefix}__label`),"data-testid":e.testId},[t(r(i),{as:"span",type:_[e.size],class:s(e.required?`${e.cssPrefix}__label--required`:"")},{default:o(()=>[d(X(e.label),1)]),_:1},8,["type","class"])],10,u))}});export{_};
1
+ import{defineComponent as e,createElementBlock as l,openBlock as a,normalizeClass as s,createVNode as t,unref as r,withCtx as o,createTextVNode as d,toDisplayString as X}from"vue";import{_ as i}from"./CLText.vue_vue_type_style_index_0_lang-BAAbTVfM.js";import{C as m,a as f}from"./index-B12lvfc1.js";const u=["for","data-testid"],_=/* @__PURE__ */e({name:"CLFormLabel",__name:"CLFormLabel",props:{cssPrefix:{default:"clll-form"},htmlFor:{},label:{},required:{type:Boolean,default:!1},size:{default:m.Small},testId:{default:"clll-form-label"}},setup(e){const _={[m.Tiny]:f.Tiny,[m.Small]:f.Small,[m.Medium]:f.Medium,[m.Large]:f.Body,[m.XL]:f.XL,[m.XXL]:f.XXL,[m.XXXL]:f.XXXL,[m.XXXXL]:f.XXXXL};return(m,f)=>(a(),l("label",{for:e.htmlFor,class:s(`${e.cssPrefix}__label`),"data-testid":e.testId},[t(r(i),{as:"span",type:_[e.size],class:s(e.required?`${e.cssPrefix}__label--required`:"")},{default:o(()=>[d(X(e.label),1)]),_:1},8,["type","class"])],10,u))}});export{_};
@@ -1,2 +1,2 @@
1
1
  import '../components/Typography/CLHeading/CLHeading.css';
2
- import{defineComponent as e,computed as t,createBlock as l,openBlock as a,resolveDynamicComponent as o,unref as s,normalizeStyle as r,normalizeClass as d,withCtx as n,renderSlot as i}from"vue";import{l as c,d as u,i as p}from"./index-DwjW-Z-U.js";import{c as f}from"./index-wkMXT2wB.js";import{t as m}from"./utils-DvcV6fqd.js";import{useTheme as $}from"../composables/useTheme.js";const y=/* @__PURE__ */e({name:"CLHeading",__name:"CLHeading",props:{align:{default:p.Left},bolder:{type:Boolean,default:!1},color:{default:u.Secondary},level:{},testId:{default:"clll-heading"},truncate:{type:Boolean,default:!1},type:{default:c.Title}},setup(e){const u=e,p=$(),y="clll-heading",g=t(()=>{if(u.level)return u.level;switch(u.type){case c.Section:return f.H2;case c.SubSection:return f.H3;case c.PageTitle:case c.Title:default:return f.H1}}),h=t(()=>[y,`${y}--${u.align}`,`${y}--${u.color}`,`${y}--${u.truncate?"wrap":"nowrap"}`,`${y}--${u.type}`,u.bolder?`${y}--bolder`:""]);return(t,c)=>(a(),l(o(s(g)),{class:d(s(h)),"data-testid":e.testId,style:r(s(m)({color:e.color,theme:s(p)}))},{default:n(()=>[i(t.$slots,"default")]),_:3},8,["class","data-testid","style"]))}});export{y as _};
2
+ import{defineComponent as e,computed as t,createBlock as l,openBlock as a,resolveDynamicComponent as o,unref as s,normalizeStyle as r,normalizeClass as d,withCtx as n,renderSlot as i}from"vue";import{l as c,d as u,i as p}from"./index-B12lvfc1.js";import{c as f}from"./index-wkMXT2wB.js";import{t as m}from"./utils-Le7SULjh.js";import{useTheme as $}from"../composables/useTheme.js";const y=/* @__PURE__ */e({name:"CLHeading",__name:"CLHeading",props:{align:{default:p.Left},bolder:{type:Boolean,default:!1},color:{default:u.Secondary},level:{},testId:{default:"clll-heading"},truncate:{type:Boolean,default:!1},type:{default:c.Title}},setup(e){const u=e,p=$(),y="clll-heading",g=t(()=>{if(u.level)return u.level;switch(u.type){case c.Section:return f.H2;case c.SubSection:return f.H3;case c.PageTitle:case c.Title:default:return f.H1}}),h=t(()=>[y,`${y}--${u.align}`,`${y}--${u.color}`,`${y}--${u.truncate?"wrap":"nowrap"}`,`${y}--${u.type}`,u.bolder?`${y}--bolder`:""]);return(t,c)=>(a(),l(o(s(g)),{class:d(s(h)),"data-testid":e.testId,style:r(s(m)({color:e.color,theme:s(p)}))},{default:n(()=>[i(t.$slots,"default")]),_:3},8,["class","data-testid","style"]))}});export{y as _};
@@ -0,0 +1,2 @@
1
+ import '../components/CLIcon/CLIcon.css';
2
+ import{defineComponent as e,useTemplateRef as t,ref as l,computed as o,watch as n,onMounted as a,createElementBlock as i,openBlock as s,normalizeStyle as r,normalizeClass as c,unref as d,createElementVNode as u}from"vue";import{b as m,g as f,d as h,c as v,e as p}from"./index-B12lvfc1.js";import{useTheme as g}from"../composables/useTheme.js";import{i as y}from"./helper-BlxFN3eF.js";const L=({color:e=h.Neutral,theme:t})=>{const{colors:l,darkMode:o}=t??g(),n=o.value?m.Dark:m.Light,a=f({color:e,colors:l.value,mode:n,variant:v.Text});return{"--clll-icon-color":a?.textBody??"inherit"}},w=["data-testid"],X=["height","width"],B=["href"],I=/* @__PURE__ */e({name:"CLIcon",__name:"CLIcon",props:{color:{default:h.Neutral},filled:{type:Boolean,default:!1},name:{},size:{default:p.Small},testId:{default:"clll-icon"}},setup(e){const m=e,f=g(),h="clll-icon",v={[p.Tiny]:20,[p.Small]:24,[p.Medium]:28,[p.Large]:32,[p.XL]:36,[p.XXL]:40,[p.XXXL]:44,[p.XXXXL]:48},I=t("icon-elem"),x=/* @__PURE__ */new Map,$=()=>{const e=I.value?.getRootNode();return e instanceof ShadowRoot?e:document},b=l(!1),z=l(!1),E=o(()=>m.filled?m.name.endsWith("-filled")?m.name:m.name.replace("tabler:","tabler:")+"-filled":m.name),S=o(()=>{if(!z.value)return m.name;const e=E.value;return m.filled&&e!==m.name?b.value&&(e=>{if(!y)return!1;if(x.has(e))return x.get(e);const t=$(),l=t.getElementById("clll-icons");if(!l)return!1;const o=t.getElementById(e),n=null!==o&&l.contains(o);return x.set(e,n),n})(e)?e:m.name:e}),j=o(()=>[h,`${h}--${m.name}`,`${h}--${m.size}`,{[`${h}--filled`]:m.filled&&S.value===E.value}]),C=o(()=>({...L({color:m.color,theme:f}),width:v[m.size]+4+"px",height:v[m.size]+4+"px"}));n(()=>b.value,e=>{e&&x.clear()});return a(()=>{z.value=!0,(async()=>{if(!y)return;const e=$();let t=e.getElementById("clll-icons");if(t)b.value=!0;else try{const l=/* #__PURE__ */Object.assign({"/src/icons.svg":()=>import("./icons-P5t3hFEA.js").then(e=>e.default)})["/src/icons.svg"];if(!l)return;const o=await l();if(t=e.getElementById("clll-icons"),t)return void(b.value=!0);const n=document.createElement("div");n.id="clll-icons",n.style.display="none",n.innerHTML=o.toString();const a=()=>{const t=e instanceof ShadowRoot?e:document.body;t.insertBefore(n,t.firstChild),b.value=!0};e instanceof Document&&"loading"===document.readyState?window.addEventListener("DOMContentLoaded",a,{once:!0}):a()}catch(l){console.error("[Callaloo] Failed to load icon sprite:",l)}})()}),(t,l)=>(s(),i("span",{ref:"icon-elem",class:c(d(j)),"data-testid":e.testId,style:r(d(C))},[(s(),i("svg",{"aria-hidden":"true",class:c(`${h}-sprite`),height:v[e.size],width:v[e.size],viewBox:"0 0 24 24"},[u("use",{href:`#${d(S)}`},null,8,B)],10,X))],14,w))}});export{I as _};
@@ -1,2 +1,2 @@
1
1
  import '../assets/CLInputMessages.css';
2
- import{defineComponent as s,createElementBlock as e,openBlock as a,Fragment as m,renderList as p,normalizeStyle as t,normalizeClass as l,unref as o,createElementVNode as r,toDisplayString as i}from"vue";import{d as g}from"./index-DwjW-Z-U.js";import{i as n}from"./utils-YT2O7a-k.js";const u="clll-input__message",_=/* @__PURE__ */s({__name:"CLInputMessages",props:{id:{},messages:{},messageType:{default:g.Neutral}},setup:s=>(g,_)=>(a(!0),e(m,null,p(s.messages,(m,p)=>(a(),e("span",{key:`${s.id}-message-${p}`,class:l([u,`${u}--${s.messageType}`]),style:t(o(n)({color:s.messageType}))},[r("span",{class:l([`${u}__text`])},i(m),3)],6))),128))});export{_};
2
+ import{defineComponent as s,createElementBlock as e,openBlock as a,Fragment as m,renderList as p,normalizeStyle as t,normalizeClass as l,unref as o,createElementVNode as r,toDisplayString as i}from"vue";import{d as g}from"./index-B12lvfc1.js";import{i as n}from"./utils-C_TTXNNJ.js";const u="clll-input__message",_=/* @__PURE__ */s({__name:"CLInputMessages",props:{id:{},messages:{},messageType:{default:g.Neutral}},setup:s=>(g,_)=>(a(!0),e(m,null,p(s.messages,(m,p)=>(a(),e("span",{key:`${s.id}-message-${p}`,class:l([u,`${u}--${s.messageType}`]),style:t(o(n)({color:s.messageType}))},[r("span",{class:l([`${u}__text`])},i(m),3)],6))),128))});export{_};
@@ -1,2 +1,2 @@
1
1
  import '../components/Navigation/CLLink/CLLink.css';
2
- import{defineComponent as e,computed as l,createElementBlock as r,openBlock as n,normalizeStyle as t,normalizeClass as a,unref as o,renderSlot as i,createBlock as s,createCommentVNode as d}from"vue";import{_ as c}from"./CLIcon.vue_vue_type_style_index_0_lang-DW43E2NB.js";import{b as u,g as f,d as m,c as p,e as k,f as h}from"./index-DwjW-Z-U.js";import{b as x}from"./index-wkMXT2wB.js";import{useTheme as b}from"../composables/useTheme.js";const v=({color:e=m.Primary,underline:l=!0,theme:r})=>{const{colors:n,darkMode:t}=r??b(),a=t.value?u.Dark:u.Light,o=f({color:e,colors:n.value,mode:a,variant:p.Outline}),i=o?.border,s=o?.textDisabled,d=o?.textBody;return{"--clll-link-text-color":d??"inherit","--clll-link-text-hover":(t.value?o?.borderHover:o?.textDisabled)??"inherit","--clll-link-underline-color":l?i??"transparent":"transparent","--clll-link-underline-hover":l?s??"transparent":"transparent","--clll-link-focus-border":d??"transparent","--clll-link-focus-shadow":o?.shadow??"transparent"}},y=["aria-label","data-testid","href","rel","target"],_=/* @__PURE__ */e({name:"CLLink",__name:"CLLink",props:{ariaLabel:{},color:{default:m.Primary},external:{type:Boolean,default:!1},href:{},onClick:{},rel:{default:"noreferrer noopener"},target:{default:x.Self},testId:{default:"clll-link"},underline:{type:Boolean,default:!0}},setup(e){const u=e,f=b(),m="clll-link",p=l(()=>[m,`${m}--${u.color}`,`${m}--${u.external?"external":"internal"}`,u.underline?`${m}--underline`:`${m}--nounderline`]);return(l,u)=>(n(),r("a",{"aria-label":e.ariaLabel,class:a(o(p)),"data-testid":e.testId,href:e.href,rel:e.external?e.rel:"",target:e.target,style:t(o(v)({color:e.color,underline:e.underline,theme:o(f)})),onClick:u[0]||(u[0]=(...l)=>e.onClick&&e.onClick(...l))},[i(l.$slots,"default"),e.external?(n(),s(o(c),{key:0,color:e.color,name:o(h).ExternalLink,size:o(k).Tiny},null,8,["color","name","size"])):d("",!0)],14,y))}});export{_};
2
+ import{defineComponent as e,computed as l,createElementBlock as r,openBlock as n,normalizeStyle as t,normalizeClass as a,unref as o,renderSlot as i,createBlock as s,createCommentVNode as d}from"vue";import{_ as c}from"./CLIcon.vue_vue_type_style_index_0_lang-BBNiJbT_.js";import{b as u,g as f,d as m,c as p,e as k,f as h}from"./index-B12lvfc1.js";import{b as x}from"./index-wkMXT2wB.js";import{useTheme as b}from"../composables/useTheme.js";const v=({color:e=m.Primary,underline:l=!0,theme:r})=>{const{colors:n,darkMode:t}=r??b(),a=t.value?u.Dark:u.Light,o=f({color:e,colors:n.value,mode:a,variant:p.Outline}),i=o?.border,s=o?.textDisabled,d=o?.textBody;return{"--clll-link-text-color":d??"inherit","--clll-link-text-hover":(t.value?o?.borderHover:o?.textDisabled)??"inherit","--clll-link-underline-color":l?i??"transparent":"transparent","--clll-link-underline-hover":l?s??"transparent":"transparent","--clll-link-focus-border":d??"transparent","--clll-link-focus-shadow":o?.shadow??"transparent"}},y=["aria-label","data-testid","href","rel","target"],_=/* @__PURE__ */e({name:"CLLink",__name:"CLLink",props:{ariaLabel:{},color:{default:m.Primary},external:{type:Boolean,default:!1},href:{},onClick:{},rel:{default:"noreferrer noopener"},target:{default:x.Self},testId:{default:"clll-link"},underline:{type:Boolean,default:!0}},setup(e){const u=e,f=b(),m="clll-link",p=l(()=>[m,`${m}--${u.color}`,`${m}--${u.external?"external":"internal"}`,u.underline?`${m}--underline`:`${m}--nounderline`]);return(l,u)=>(n(),r("a",{"aria-label":e.ariaLabel,class:a(o(p)),"data-testid":e.testId,href:e.href,rel:e.external?e.rel:"",target:e.target,style:t(o(v)({color:e.color,underline:e.underline,theme:o(f)})),onClick:u[0]||(u[0]=(...l)=>e.onClick&&e.onClick(...l))},[i(l.$slots,"default"),e.external?(n(),s(o(c),{key:0,color:e.color,name:o(h).ExternalLink,size:o(k).Tiny},null,8,["color","name","size"])):d("",!0)],14,y))}});export{_};
@@ -1,2 +1,2 @@
1
1
  import '../components/Modals/CLModal/CLModal.css';
2
- import{defineComponent as e,useTemplateRef as o,useSlots as l,ref as t,computed as a,watch as d,onMounted as n,onBeforeUnmount as s,createBlock as r,openBlock as i,Teleport as c,createElementBlock as _,createCommentVNode as u,normalizeStyle as v,normalizeClass as m,unref as f,createElementVNode as p,renderSlot as y,withCtx as b,createTextVNode as h,toDisplayString as $}from"vue";import{_ as w}from"./CLButton.vue_vue_type_style_index_0_lang-3oov-2S-.js";import{_ as x}from"./CLHeading.vue_vue_type_style_index_0_lang-DtnWXEDh.js";import{b as I,g as z,d as g,c as k,h as L,e as B,f as C,l as T}from"./index-DwjW-Z-U.js";import{useTheme as j}from"../composables/useTheme.js";import{useEsc as R}from"../composables/useEsc.js";import{b as E,i as O}from"./helper-BlxFN3eF.js";const M=e=>{const{borderRadius:o,colors:l,darkMode:t,fontFamily:a}=e??j(),d=t.value?I.Dark:I.Light,n=z({color:g.Neutral,colors:l.value,mode:d,variant:k.Solid}),s=t.value?"black":"white",r=o?.value?`var(--clll-${o.value})`:void 0;return{"--clll-modal-overlay-bg":n?.bg??"transparent","--clll-modal-content-bg":s,"--clll-default-radius":r,"--clll-modal-theme-radius":r??"var(--clll-default-radius)","--clll-font-family":a?.value}},S=["id","data-testid"],F=["aria-labelledby"],D=/* @__PURE__ */e({name:"CLModal",__name:"CLModal",props:{borderRadius:{default:void 0},close:{type:Boolean,default:!0},closeBorderRadius:{default:L.Full},dismissible:{type:Boolean,default:!0},fullscreen:{type:Boolean,default:!1},isOpen:{type:Boolean,default:!1},maxWidth:{default:"640px"},modalId:{},onClose:{type:Function,default:void 0},overlay:{type:Boolean,default:!0},teleport:{type:Boolean,default:!0},teleportTo:{default:"body"},testId:{default:"clll-modal"},title:{default:void 0},zIndex:{default:100}},emits:["modal-open","modal-close"],setup(e,{emit:I}){const z=I,L=j(),D=o("modal-window"),H=l(),N=e,W="clll-modal",q="clll-prevent-scroll",A=t(),G=()=>{O&&window?.document.body.classList.add(q)},J=()=>{O&&window?.document.body.classList.remove(q)},K=a(()=>[W,"clll-theme-provider","--clll-color-theme-"+(L.darkMode?.value?"dark":"light")]),P=a(()=>[`${W}__window`,N.fullscreen?`${W}__window--fullscreen`:""]),Q=a(()=>[`${W}__content`,N.borderRadius?`${W}__content--${N.borderRadius}`:"",N.close?`${W}__content--has-close-button`:`${W}__content--has-no-close-button`,H.body?`${W}__content--has-body`:`${W}__content--has-no-body`,H.footer?`${W}__content--has-footer`:`${W}__content--has-no-footer`,H.header||N.title?`${W}__content--has-header`:`${W}__content--has-no-header`,N.title?`${W}__content--has-title`:`${W}__content--has-no-title`]),U=a(()=>"auto"===N.zIndex||E(N.zIndex)?N.zIndex:N.zIndex.toString()),V=a(()=>{if("auto"===N.zIndex)return N.zIndex;return((E(N.zIndex)?parseInt(N.zIndex,10):N.zIndex)+100).toString()}),X=e=>{try{(e=>{try{const o=e?.target,l=D.value;return!(!O||!l||l.contains(o))||void 0}catch(o){return void console.error(o)}})(e)&&(O&&window.removeEventListener("mousedown",X),ee())}catch(o){console.error(o)}},Y=()=>{O&&window.removeEventListener("mousedown",X)},Z=()=>{O&&(A.value&&O&&window.clearTimeout(A.value),Y(),J())},ee=()=>{N.isOpen&&(N.onClose?.(),Z())};d(N,e=>{e.isOpen?(z("modal-open"),G(),D.value&&D.value.focus(),O&&e.dismissible&&(Y(),A.value=window.setTimeout(()=>{window.addEventListener("mousedown",X)},100))):(D.value&&D.value.blur(),J(),Y(),A.value&&O&&window.clearTimeout(A.value),z("modal-close"))}),n(()=>{N.isOpen&&O&&(G(),D.value&&D.value.focus())});const{clearEventListeners:oe}=R({escHandler:N.dismissible?ee:void 0});return s(()=>{Z(),oe()}),(o,l)=>(i(),r(c,{to:e.teleportTo,disabled:!e.teleport},[e.isOpen?(i(),_("div",{key:0,id:e.modalId,class:m(f(K)),"data-testid":e.testId,style:v({...f(M)(f(L)),zIndex:f(U)})},[p("div",{class:m(f(P)),style:v({zIndex:f(V)})},[p("div",{ref:"modal-window","aria-modal":"true","aria-labelledby":`${W}__content__header__title`,class:m(f(Q)),role:"dialog",tabindex:-1,style:v({"--clll-modal-max-width":e.maxWidth})},[p("div",{class:m(`${W}__close-button`)},[e.onClose&&e.close?(i(),r(f(w),{key:0,"aria-label":"Close modal","border-radius":e.closeBorderRadius,color:f(g).Neutral,"icon-before":f(C).Delete,"icon-size":f(B).Tiny,"on-click":e.onClose,"test-id":`${W}__close-button`,variant:f(k).Text},null,8,["border-radius","color","icon-before","icon-size","on-click","test-id","variant"])):u("",!0)],2),p("div",{class:m(`${W}__content__header`)},[p("div",{class:m(`${W}__content__title`)},[p("div",{class:m(`${W}__content__header__container`)},[e.title?(i(),r(f(x),{key:0,id:`${W}__content__header__title`,class:m(`${W}__content__header__title`),type:f(T).Section},{default:b(()=>[h($(e.title),1)]),_:1},8,["id","class","type"])):u("",!0),y(o.$slots,"header")],2)],2)],2),p("div",{class:m(`${W}__content__scroller`)},[p("div",{class:m(`${W}__content__body`)},[y(o.$slots,"body")],2)],2),p("div",{class:m(`${W}__content__footer`)},[y(o.$slots,"footer")],2)],14,F)],6),e.overlay?(i(),_("div",{key:0,ref:"overlay-ref",class:m(`${W}__overlay`),style:v({zIndex:e.zIndex})},null,6)):u("",!0)],14,S)):u("",!0)],8,["to","disabled"]))}});export{D as _};
2
+ import{defineComponent as e,useTemplateRef as o,useSlots as l,ref as t,computed as a,watch as d,onMounted as n,onBeforeUnmount as s,createBlock as r,openBlock as i,Teleport as c,createElementBlock as _,createCommentVNode as u,normalizeStyle as v,normalizeClass as m,unref as f,createElementVNode as p,renderSlot as y,withCtx as b,createTextVNode as h,toDisplayString as $}from"vue";import{_ as w}from"./CLButton.vue_vue_type_style_index_0_lang-Djk1tZMn.js";import{_ as x}from"./CLHeading.vue_vue_type_style_index_0_lang-D0XEmw1o.js";import{b as I,g as z,d as g,c as k,h as L,e as B,f as C,l as T}from"./index-B12lvfc1.js";import{useTheme as j}from"../composables/useTheme.js";import{useEsc as R}from"../composables/useEsc.js";import{b as E,i as O}from"./helper-BlxFN3eF.js";const M=e=>{const{borderRadius:o,colors:l,darkMode:t,fontFamily:a}=e??j(),d=t.value?I.Dark:I.Light,n=z({color:g.Neutral,colors:l.value,mode:d,variant:k.Solid}),s=t.value?"black":"white",r=o?.value?`var(--clll-${o.value})`:void 0;return{"--clll-modal-overlay-bg":n?.bg??"transparent","--clll-modal-content-bg":s,"--clll-default-radius":r,"--clll-modal-theme-radius":r??"var(--clll-default-radius)","--clll-font-family":a?.value}},S=["id","data-testid"],F=["aria-labelledby"],D=/* @__PURE__ */e({name:"CLModal",__name:"CLModal",props:{borderRadius:{default:void 0},close:{type:Boolean,default:!0},closeBorderRadius:{default:L.Full},dismissible:{type:Boolean,default:!0},fullscreen:{type:Boolean,default:!1},isOpen:{type:Boolean,default:!1},maxWidth:{default:"640px"},modalId:{},onClose:{type:Function,default:void 0},overlay:{type:Boolean,default:!0},teleport:{type:Boolean,default:!0},teleportTo:{default:"body"},testId:{default:"clll-modal"},title:{default:void 0},zIndex:{default:100}},emits:["modal-open","modal-close"],setup(e,{emit:I}){const z=I,L=j(),D=o("modal-window"),H=l(),N=e,W="clll-modal",q="clll-prevent-scroll",A=t(),G=()=>{O&&window?.document.body.classList.add(q)},J=()=>{O&&window?.document.body.classList.remove(q)},K=a(()=>[W,"clll-theme-provider","--clll-color-theme-"+(L.darkMode?.value?"dark":"light")]),P=a(()=>[`${W}__window`,N.fullscreen?`${W}__window--fullscreen`:""]),Q=a(()=>[`${W}__content`,N.borderRadius?`${W}__content--${N.borderRadius}`:"",N.close?`${W}__content--has-close-button`:`${W}__content--has-no-close-button`,H.body?`${W}__content--has-body`:`${W}__content--has-no-body`,H.footer?`${W}__content--has-footer`:`${W}__content--has-no-footer`,H.header||N.title?`${W}__content--has-header`:`${W}__content--has-no-header`,N.title?`${W}__content--has-title`:`${W}__content--has-no-title`]),U=a(()=>"auto"===N.zIndex||E(N.zIndex)?N.zIndex:N.zIndex.toString()),V=a(()=>{if("auto"===N.zIndex)return N.zIndex;return((E(N.zIndex)?parseInt(N.zIndex,10):N.zIndex)+100).toString()}),X=e=>{try{(e=>{try{const o=e?.target,l=D.value;return!(!O||!l||l.contains(o))||void 0}catch(o){return void console.error(o)}})(e)&&(O&&window.removeEventListener("mousedown",X),ee())}catch(o){console.error(o)}},Y=()=>{O&&window.removeEventListener("mousedown",X)},Z=()=>{O&&(A.value&&O&&window.clearTimeout(A.value),Y(),J())},ee=()=>{N.isOpen&&(N.onClose?.(),Z())};d(N,e=>{e.isOpen?(z("modal-open"),G(),D.value&&D.value.focus(),O&&e.dismissible&&(Y(),A.value=window.setTimeout(()=>{window.addEventListener("mousedown",X)},100))):(D.value&&D.value.blur(),J(),Y(),A.value&&O&&window.clearTimeout(A.value),z("modal-close"))}),n(()=>{N.isOpen&&O&&(G(),D.value&&D.value.focus())});const{clearEventListeners:oe}=R({escHandler:N.dismissible?ee:void 0});return s(()=>{Z(),oe()}),(o,l)=>(i(),r(c,{to:e.teleportTo,disabled:!e.teleport},[e.isOpen?(i(),_("div",{key:0,id:e.modalId,class:m(f(K)),"data-testid":e.testId,style:v({...f(M)(f(L)),zIndex:f(U)})},[p("div",{class:m(f(P)),style:v({zIndex:f(V)})},[p("div",{ref:"modal-window","aria-modal":"true","aria-labelledby":`${W}__content__header__title`,class:m(f(Q)),role:"dialog",tabindex:-1,style:v({"--clll-modal-max-width":e.maxWidth})},[p("div",{class:m(`${W}__close-button`)},[e.onClose&&e.close?(i(),r(f(w),{key:0,"aria-label":"Close modal","border-radius":e.closeBorderRadius,color:f(g).Neutral,"icon-before":f(C).Delete,"icon-size":f(B).Tiny,"on-click":e.onClose,"test-id":`${W}__close-button`,variant:f(k).Text},null,8,["border-radius","color","icon-before","icon-size","on-click","test-id","variant"])):u("",!0)],2),p("div",{class:m(`${W}__content__header`)},[p("div",{class:m(`${W}__content__title`)},[p("div",{class:m(`${W}__content__header__container`)},[e.title?(i(),r(f(x),{key:0,id:`${W}__content__header__title`,class:m(`${W}__content__header__title`),type:f(T).Section},{default:b(()=>[h($(e.title),1)]),_:1},8,["id","class","type"])):u("",!0),y(o.$slots,"header")],2)],2)],2),p("div",{class:m(`${W}__content__scroller`)},[p("div",{class:m(`${W}__content__body`)},[y(o.$slots,"body")],2)],2),p("div",{class:m(`${W}__content__footer`)},[y(o.$slots,"footer")],2)],14,F)],6),e.overlay?(i(),_("div",{key:0,ref:"overlay-ref",class:m(`${W}__overlay`),style:v({zIndex:e.zIndex})},null,6)):u("",!0)],14,S)):u("",!0)],8,["to","disabled"]))}});export{D as _};
@@ -1 +1 @@
1
- import{defineComponent as e,createBlock as t,openBlock as l,unref as r,withCtx as a,renderSlot as i}from"vue";import{_ as n}from"./CLLink.vue_vue_type_style_index_0_lang-Dpe8ZXTT.js";import{d as o}from"./index-DwjW-Z-U.js";const d=/* @__PURE__ */e({name:"CLNavLink",__name:"CLNavLink",props:{ariaLabel:{},color:{default:o.Neutral},external:{type:Boolean,default:!1},href:{},id:{},onClick:{},rel:{default:"noreferrer noopener"},target:{},testId:{default:"clll-navlink"}},emits:["click"],setup(e,{emit:o}){const d=e,s=o,c=e=>{d.onClick&&d.onClick(e),s("click",e)};return(o,d)=>(l(),t(r(n),{id:e.id,"aria-label":e.ariaLabel,color:e.color,"data-testid":e.testId,external:e.external,href:e.href,rel:e.rel,target:e.target,underline:!e.onClick,onClick:c},{default:a(()=>[i(o.$slots,"default")]),_:3},8,["id","aria-label","color","data-testid","external","href","rel","target","underline"]))}});export{d as _};
1
+ import{defineComponent as e,createBlock as t,openBlock as l,unref as r,withCtx as a,renderSlot as i}from"vue";import{_ as n}from"./CLLink.vue_vue_type_style_index_0_lang-DOr1YNzt.js";import{d as o}from"./index-B12lvfc1.js";const d=/* @__PURE__ */e({name:"CLNavLink",__name:"CLNavLink",props:{ariaLabel:{},color:{default:o.Neutral},external:{type:Boolean,default:!1},href:{},id:{},onClick:{},rel:{default:"noreferrer noopener"},target:{},testId:{default:"clll-navlink"}},emits:["click"],setup(e,{emit:o}){const d=e,s=o,c=e=>{d.onClick&&d.onClick(e),s("click",e)};return(o,d)=>(l(),t(r(n),{id:e.id,"aria-label":e.ariaLabel,color:e.color,"data-testid":e.testId,external:e.external,href:e.href,rel:e.rel,target:e.target,underline:!e.onClick,onClick:c},{default:a(()=>[i(o.$slots,"default")]),_:3},8,["id","aria-label","color","data-testid","external","href","rel","target","underline"]))}});export{d as _};
@@ -1,2 +1,2 @@
1
1
  import '../components/Indicators/CLPill/CLPill.css';
2
- import{defineComponent as e,computed as l,createElementBlock as n,openBlock as a,normalizeStyle as i,normalizeClass as s,unref as o,createCommentVNode as t,createBlock as c,createVNode as d,withCtx as u,createTextVNode as r,toDisplayString as _,createElementVNode as m}from"vue";import{_ as p}from"./CLButton.vue_vue_type_style_index_0_lang-3oov-2S-.js";import{_ as y}from"./CLIcon.vue_vue_type_style_index_0_lang-DW43E2NB.js";import{_ as f}from"./CLText.vue_vue_type_style_index_0_lang-BsVCn68a.js";import{c as v,d as k,e as $,a as b,f as z}from"./index-DwjW-Z-U.js";import{p as C}from"./utils-DRDgxG5G.js";const x=["data-testid"],D=/* @__PURE__ */e({name:"CLPill",__name:"CLPill",props:{color:{default:k.Neutral},count:{},dismissable:{type:Boolean},elevated:{type:Boolean,default:!1},icon:{},iconFilled:{type:Boolean,default:!1},label:{},onClick:{},onDismiss:{},rounded:{type:Boolean,default:!0},testId:{default:"clll-pill"},variant:{default:v.Soft}},setup(e){const v=e,k="clll-pill",D=l(()=>[k,`${k}--${v.color}--${v.variant}`,v.count?`${k}--has-count`:"",v.dismissable?`${k}--dismissable`:"",v.elevated?`${k}--elevated`:"",v.icon?`${k}--has-icon`:`${k}--has-noicon`,v.rounded?`${k}--rounded`:""]);return(l,v)=>(a(),n("div",{"data-testid":e.testId,class:s(o(D)),style:i(o(C)({color:e.color,variant:e.variant}))},[e.onClick||e.onDismiss?t("",!0):(a(),n("span",{key:0,class:s(`${k}__container`)},[e.icon?(a(),c(o(y),{key:0,filled:e.iconFilled,name:e.icon,size:o($).Tiny},null,8,["filled","name","size"])):t("",!0),d(o(f),{as:"span",type:o(b).Small,truncate:""},{default:u(()=>[r(_(e.label),1)]),_:1},8,["type"]),e.count?(a(),n("span",{key:1,class:s(`${k}__count`)},_(e.count),3)):t("",!0)],2)),e.onClick&&!e.dismissable?(a(),c(o(p),{key:1,color:e.color,"on-click":e.onClick,variant:e.variant,pill:"",rounded:e.rounded},{default:u(()=>[m("span",{class:s(`${k}__button`)},[e.icon?(a(),c(o(y),{key:0,filled:e.iconFilled,name:e.icon,size:o($).Tiny},null,8,["filled","name","size"])):t("",!0),d(o(f),{as:"span",type:o(b).Small,truncate:""},{default:u(()=>[r(_(e.label),1)]),_:1},8,["type"]),e.count?(a(),n("span",{key:1,class:s(`${k}__count`)},_(e.count),3)):t("",!0),e.dismissable?(a(),c(o(y),{key:2,name:o(z).Delete,size:o($).Tiny},null,8,["name","size"])):t("",!0)],2)]),_:1},8,["color","on-click","variant","rounded"])):t("",!0),e.onDismiss&&e.dismissable?(a(),c(o(p),{key:2,color:e.color,"on-click":e.onDismiss,variant:e.variant,pill:"",rounded:e.rounded},{default:u(()=>[m("span",{class:s(`${k}__button`)},[e.icon?(a(),c(o(y),{key:0,filled:e.iconFilled,name:e.icon,size:o($).Tiny},null,8,["filled","name","size"])):t("",!0),d(o(f),{as:"span",type:o(b).Small,truncate:""},{default:u(()=>[r(_(e.label),1)]),_:1},8,["type"]),e.dismissable?(a(),c(o(y),{key:1,name:o(z).Delete,size:o($).Tiny},null,8,["name","size"])):t("",!0)],2)]),_:1},8,["color","on-click","variant","rounded"])):t("",!0)],14,x))}});export{D as _};
2
+ import{defineComponent as e,computed as l,createElementBlock as n,openBlock as a,normalizeStyle as i,normalizeClass as s,unref as o,createCommentVNode as t,createBlock as c,createVNode as d,withCtx as u,createTextVNode as r,toDisplayString as _,createElementVNode as m}from"vue";import{_ as p}from"./CLButton.vue_vue_type_style_index_0_lang-Djk1tZMn.js";import{_ as y}from"./CLIcon.vue_vue_type_style_index_0_lang-BBNiJbT_.js";import{_ as f}from"./CLText.vue_vue_type_style_index_0_lang-BAAbTVfM.js";import{c as v,d as k,e as $,a as b,f as z}from"./index-B12lvfc1.js";import{p as C}from"./utils-By5hNPYe.js";const x=["data-testid"],D=/* @__PURE__ */e({name:"CLPill",__name:"CLPill",props:{color:{default:k.Neutral},count:{},dismissable:{type:Boolean},elevated:{type:Boolean,default:!1},icon:{},iconFilled:{type:Boolean,default:!1},label:{},onClick:{},onDismiss:{},rounded:{type:Boolean,default:!0},testId:{default:"clll-pill"},variant:{default:v.Soft}},setup(e){const v=e,k="clll-pill",D=l(()=>[k,`${k}--${v.color}--${v.variant}`,v.count?`${k}--has-count`:"",v.dismissable?`${k}--dismissable`:"",v.elevated?`${k}--elevated`:"",v.icon?`${k}--has-icon`:`${k}--has-noicon`,v.rounded?`${k}--rounded`:""]);return(l,v)=>(a(),n("div",{"data-testid":e.testId,class:s(o(D)),style:i(o(C)({color:e.color,variant:e.variant}))},[e.onClick||e.onDismiss?t("",!0):(a(),n("span",{key:0,class:s(`${k}__container`)},[e.icon?(a(),c(o(y),{key:0,filled:e.iconFilled,name:e.icon,size:o($).Tiny},null,8,["filled","name","size"])):t("",!0),d(o(f),{as:"span",type:o(b).Small,truncate:""},{default:u(()=>[r(_(e.label),1)]),_:1},8,["type"]),e.count?(a(),n("span",{key:1,class:s(`${k}__count`)},_(e.count),3)):t("",!0)],2)),e.onClick&&!e.dismissable?(a(),c(o(p),{key:1,color:e.color,"on-click":e.onClick,variant:e.variant,pill:"",rounded:e.rounded},{default:u(()=>[m("span",{class:s(`${k}__button`)},[e.icon?(a(),c(o(y),{key:0,filled:e.iconFilled,name:e.icon,size:o($).Tiny},null,8,["filled","name","size"])):t("",!0),d(o(f),{as:"span",type:o(b).Small,truncate:""},{default:u(()=>[r(_(e.label),1)]),_:1},8,["type"]),e.count?(a(),n("span",{key:1,class:s(`${k}__count`)},_(e.count),3)):t("",!0),e.dismissable?(a(),c(o(y),{key:2,name:o(z).Delete,size:o($).Tiny},null,8,["name","size"])):t("",!0)],2)]),_:1},8,["color","on-click","variant","rounded"])):t("",!0),e.onDismiss&&e.dismissable?(a(),c(o(p),{key:2,color:e.color,"on-click":e.onDismiss,variant:e.variant,pill:"",rounded:e.rounded},{default:u(()=>[m("span",{class:s(`${k}__button`)},[e.icon?(a(),c(o(y),{key:0,filled:e.iconFilled,name:e.icon,size:o($).Tiny},null,8,["filled","name","size"])):t("",!0),d(o(f),{as:"span",type:o(b).Small,truncate:""},{default:u(()=>[r(_(e.label),1)]),_:1},8,["type"]),e.dismissable?(a(),c(o(y),{key:1,name:o(z).Delete,size:o($).Tiny},null,8,["name","size"])):t("",!0)],2)]),_:1},8,["color","on-click","variant","rounded"])):t("",!0)],14,x))}});export{D as _};
@@ -1,2 +1,2 @@
1
1
  import '../components/Loading/CLSkeleton/CLSkeleton.css';
2
- import{defineComponent as e,computed as t,createElementBlock as s,openBlock as d,normalizeStyle as l,normalizeClass as o,unref as a,createElementVNode as r}from"vue";import{a as i}from"./utils-BoyoJazO.js";import{useTheme as n}from"../composables/useTheme.js";const u=["data-testid"],m=/* @__PURE__ */e({name:"CLSkeleton",__name:"CLSkeleton",props:{borderRadius:{},height:{default:"100%"},rounded:{type:Boolean,default:!0},testId:{default:"clll-skeleton"},width:{default:"100%"}},setup(e){const m=e,h=n(),p="clll-skeleton",c=t(()=>[p,m.borderRadius?`${p}--${m.borderRadius}`:"",m.rounded?`${p}--rounded`:`${p}--square`]);return(t,n)=>(d(),s("div",{class:o(a(c)),"data-testid":e.testId,style:l({...a(i)(a(h)),width:e.width,height:e.height})},[...n[0]||(n[0]=[r("div",{class:"clll-skeleton__animation"},null,-1)])],14,u))}});export{m as _};
2
+ import{defineComponent as e,computed as t,createElementBlock as s,openBlock as d,normalizeStyle as l,normalizeClass as o,unref as a,createElementVNode as r}from"vue";import{a as i}from"./utils-BoV9808p.js";import{useTheme as n}from"../composables/useTheme.js";const u=["data-testid"],m=/* @__PURE__ */e({name:"CLSkeleton",__name:"CLSkeleton",props:{borderRadius:{},height:{default:"100%"},rounded:{type:Boolean,default:!0},testId:{default:"clll-skeleton"},width:{default:"100%"}},setup(e){const m=e,h=n(),p="clll-skeleton",c=t(()=>[p,m.borderRadius?`${p}--${m.borderRadius}`:"",m.rounded?`${p}--rounded`:`${p}--square`]);return(t,n)=>(d(),s("div",{class:o(a(c)),"data-testid":e.testId,style:l({...a(i)(a(h)),width:e.width,height:e.height})},[...n[0]||(n[0]=[r("div",{class:"clll-skeleton__animation"},null,-1)])],14,u))}});export{m as _};
@@ -1,2 +1,2 @@
1
1
  import '../components/Loading/CLSpinner/CLSpinner.css';
2
- import{defineComponent as e,computed as s,createElementBlock as t,openBlock as l,normalizeStyle as o,normalizeClass as r,unref as i,createElementVNode as a}from"vue";import{C as n,j as c,d,i as m}from"./index-DwjW-Z-U.js";import{s as p}from"./utils-BoyoJazO.js";import{useTheme as u}from"../composables/useTheme.js";const f=["data-testid"],$=/* @__PURE__ */e({name:"CLSpinner",__name:"CLSpinner",props:{align:{default:m.Left},color:{default:d.Primary},position:{default:c.Absolute},size:{default:n.Medium},testId:{default:"clll-spinner"}},setup(e){const n=e,c=u(),d="clll-spinner",m=s(()=>[d,`${d}--${n.position}`,`${d}--${n.color}`,`${d}--${n.size}`,`${d}--${n.align}`]),$=s(()=>[`${d}__circle`,`${d}__circle--${n.size}`]);return(s,n)=>(l(),t("div",{class:r(i(m)),"data-testid":e.testId,style:o(i(p)({color:e.color,theme:i(c)}))},[(l(),t("svg",{class:r(i($)),xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},[...n[0]||(n[0]=[a("circle",{style:{opacity:"0.25"},cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"},null,-1),a("path",{fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"},null,-1)])],2))],14,f))}});export{$ as _};
2
+ import{defineComponent as e,computed as s,createElementBlock as t,openBlock as l,normalizeStyle as o,normalizeClass as r,unref as i,createElementVNode as a}from"vue";import{C as n,j as c,d,i as m}from"./index-B12lvfc1.js";import{s as p}from"./utils-BoV9808p.js";import{useTheme as u}from"../composables/useTheme.js";const f=["data-testid"],$=/* @__PURE__ */e({name:"CLSpinner",__name:"CLSpinner",props:{align:{default:m.Left},color:{default:d.Primary},position:{default:c.Absolute},size:{default:n.Medium},testId:{default:"clll-spinner"}},setup(e){const n=e,c=u(),d="clll-spinner",m=s(()=>[d,`${d}--${n.position}`,`${d}--${n.color}`,`${d}--${n.size}`,`${d}--${n.align}`]),$=s(()=>[`${d}__circle`,`${d}__circle--${n.size}`]);return(s,n)=>(l(),t("div",{class:r(i(m)),"data-testid":e.testId,style:o(i(p)({color:e.color,theme:i(c)}))},[(l(),t("svg",{class:r(i($)),xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},[...n[0]||(n[0]=[a("circle",{style:{opacity:"0.25"},cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"},null,-1),a("path",{fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"},null,-1)])],2))],14,f))}});export{$ as _};
@@ -1,2 +1,2 @@
1
1
  import '../components/Typography/CLText/CLText.css';
2
- import{defineComponent as t,computed as e,createBlock as l,openBlock as o,resolveDynamicComponent as a,normalizeStyle as d,normalizeClass as s,unref as r,withCtx as u,renderSlot as m}from"vue";import{a as p,d as n,i as f}from"./index-DwjW-Z-U.js";import{t as i}from"./utils-DvcV6fqd.js";import{useTheme as c}from"../composables/useTheme.js";const $=/* @__PURE__ */t({name:"CLText",__name:"CLText",props:{align:{default:f.Left},as:{default:"p"},bold:{type:Boolean,default:!1},bolder:{type:Boolean,default:!1},color:{default:n.Secondary},light:{type:Boolean,default:!1},medium:{type:Boolean,default:!1},testId:{default:"clll-text"},truncate:{type:Boolean,default:!1},type:{default:p.Body}},setup(t){const p=t,n=c(),f="clll-text",$=e(()=>[f,`${f}--${p.align}`,`${f}--${p.color}`,`${f}--${p.truncate?"wrap":"nowrap"}`,`${f}--${p.type}`,{[`${f}--mediumbold`]:p.medium,[`${f}--light`]:p.light,[`${f}--bold`]:p.bold,[`${f}--bolder`]:p.bolder}]);return(e,p)=>(o(),l(a(t.as),{class:s(r($)),"data-testid":t.testId,style:d(r(i)({color:t.color,theme:r(n)}))},{default:u(()=>[m(e.$slots,"default")]),_:3},8,["class","data-testid","style"]))}});export{$ as _};
2
+ import{defineComponent as t,computed as e,createBlock as l,openBlock as o,resolveDynamicComponent as a,normalizeStyle as d,normalizeClass as s,unref as r,withCtx as u,renderSlot as m}from"vue";import{a as p,d as n,i as f}from"./index-B12lvfc1.js";import{t as i}from"./utils-Le7SULjh.js";import{useTheme as c}from"../composables/useTheme.js";const $=/* @__PURE__ */t({name:"CLText",__name:"CLText",props:{align:{default:f.Left},as:{default:"p"},bold:{type:Boolean,default:!1},bolder:{type:Boolean,default:!1},color:{default:n.Secondary},light:{type:Boolean,default:!1},medium:{type:Boolean,default:!1},testId:{default:"clll-text"},truncate:{type:Boolean,default:!1},type:{default:p.Body}},setup(t){const p=t,n=c(),f="clll-text",$=e(()=>[f,`${f}--${p.align}`,`${f}--${p.color}`,`${f}--${p.truncate?"wrap":"nowrap"}`,`${f}--${p.type}`,{[`${f}--mediumbold`]:p.medium,[`${f}--light`]:p.light,[`${f}--bold`]:p.bold,[`${f}--bolder`]:p.bolder}]);return(e,p)=>(o(),l(a(t.as),{class:s(r($)),"data-testid":t.testId,style:d(r(i)({color:t.color,theme:r(n)}))},{default:u(()=>[m(e.$slots,"default")]),_:3},8,["class","data-testid","style"]))}});export{$ as _};
@@ -1,2 +1,2 @@
1
1
  import '../components/Popups/CLToast/CLToast.css';
2
- import{defineComponent as e,ref as t,computed as o,watch as l,onMounted as s,onUnmounted as a,onBeforeUnmount as i,createElementBlock as r,openBlock as u,normalizeStyle as n,normalizeClass as d,unref as c,createElementVNode as m,createCommentVNode as v,createVNode as _,createBlock as b,withCtx as p,createTextVNode as f,toDisplayString as h}from"vue";import{_ as y}from"./CLButton.vue_vue_type_style_index_0_lang-3oov-2S-.js";import{_ as g}from"./CLIcon.vue_vue_type_style_index_0_lang-DW43E2NB.js";import{_ as $}from"./CLText.vue_vue_type_style_index_0_lang-BsVCn68a.js";import{g as T,c as x,b as L,d as k,o as z,e as D,a as M,C as j,f as w}from"./index-DwjW-Z-U.js";import{i as B,g as C,a as R}from"./helper-BlxFN3eF.js";import{useEsc as S}from"../composables/useEsc.js";import{useTheme as F}from"../composables/useTheme.js";const A=({color:e,theme:t})=>{const{colors:o,darkMode:l}=t??F(),s=T({color:e,colors:o.value,mode:(l.value,L.Light),variant:x.Soft}),a=T({color:k.Neutral,colors:o.value,mode:l.value?L.Light:L.Dark,variant:x.Text});return{"--clll-toast-bg-color":l.value?"white":"#322F35","--clll-toast-text-color":a?.textBody,"--clll-toast-action-button-text-color":s?.text,"--clll-toast-action-button-bg-color":s?.bg,"--clll-toast-action-button-hover-color":s?.hover,"--clll-toast-dismiss-button-text-color":a?.text,"--clll-toast-dismiss-button-bg-color":a?.bg,"--clll-toast-dismiss-button-hover-color":a?.hover,"--clll-toast-icon-bg":s?.bg,"--clll-toast-icon-color":s?.text,"--clll-toast-theme-radius":"var(--clll-default-radius)"}},E=["data-testid"],I=300,N="clll-toast",H=/* @__PURE__ */e({name:"CLToast",__name:"CLToast",props:{actionLabel:{},borderRadius:{},color:{default:k.Secondary},dismissTimer:{default:5},icon:{},iconFilled:{type:Boolean,default:!1},iconSize:{default:D.Small},message:{},onAction:{},onDismiss:{},position:{default:z.TopRight},rounded:{type:Boolean,default:!0},testId:{default:"clll-toast"},title:{},width:{default:"24rem"}},setup(e){const T=e,L=F(),z=t(),H=t(!1),q=t(),G=t(0),J=t(!1),K=t(null),O=t(0),P=t(0),Q=t(!1),U=o(()=>[N,T.borderRadius?`${N}--${T.borderRadius}`:"",T.dismissTimer?`${N}--has-timer`:"",T.icon?`${N}--has-icon`:"",T.message&&!T.title?`${N}--has-messageonly`:"",H.value?`${N}--mounted`:"",T.onAction&&T.actionLabel?`${N}--has-action`:"",T.rounded?`${N}--rounded`:`${N}--box`,T.title&&!T.message?`${N}--has-titleonly`:"",T.title&&T.message?`${N}--has-titleandmessage`:"",`${N}--${T.position}`]),V=()=>{null!==K.value&&(clearTimeout(K.value),K.value=null),q.value?.stop()},W=()=>{T.dismissTimer&&!J.value&&(V(),O.value=Date.now(),P.value=1e3*T.dismissTimer,Q.value=!1,K.value=setTimeout(()=>{Q.value||J.value||ee()},P.value))},X=()=>{if(!T.dismissTimer||Q.value||J.value)return;Q.value=!0;const e=Date.now()-O.value;P.value=Math.max(0,P.value-e),V()},Y=()=>{T.dismissTimer&&Q.value&&!J.value&&(Q.value=!1,O.value=Date.now(),K.value=setTimeout(()=>{Q.value||J.value||ee()},P.value))},Z=()=>{document.hidden?X():Y()},ee=()=>{J.value||(J.value=!0,H.value=!1,V(),q.value&&q.value.start(I,e=>{Math.min(e,I)===I&&(q.value?.stop(),T.onDismiss?.())}),te())};l(()=>T.dismissTimer,()=>{V(),J.value=!1,T.dismissTimer&&T.dismissTimer>0&&W()}),s(()=>{B&&(G.value=C()+1,q.value||(q.value=R(),q.value.start(100,e=>{100===Math.min(e,100)&&(q.value?.stop(),H.value=!0,T.dismissTimer&&q.value?.start(I,e=>{Math.min(e,I)===I&&(q.value?.stop(),W())}))})),document.addEventListener("visibilitychange",Z))}),a(()=>{B&&(V(),q.value=void 0,document.removeEventListener("visibilitychange",Z)),H.value=!1,J.value||(J.value=!0,T.onDismiss?.())});const{clearEventListeners:te}=S({escHandler:ee});return i(()=>{te()}),(t,o)=>(u(),r("output",{ref_key:"elem",ref:z,class:d(c(U)),"data-testid":e.testId,style:n({zIndex:c(G),"--clll-toast-width":e.width,...c(A)({color:e.color,theme:c(L)})}),onMouseenter:X,onMouseleave:Y,onFocusin:X,onFocusout:Y},[m("div",{class:d(`${N}__body`)},[m("div",{class:d(`${N}__content`)},[e.icon?(u(),r("div",{key:0,class:d(`${N}__icon`)},[_(c(g),{filled:e.iconFilled,name:e.icon,size:e.iconSize},null,8,["filled","name","size"])],2)):v("",!0),m("div",{class:d(`${N}__text`)},[e.title?(u(),b(c($),{key:0,color:c(k).Neutral,"test-id":`${N}__title`,type:c(M).Body,bold:""},{default:p(()=>[f(h(e.title),1)]),_:1},8,["color","test-id","type"])):v("",!0),e.message?(u(),b(c($),{key:1,color:c(k).Neutral,"test-id":`${N}__message`,type:e.title?c(M).Medium:c(M).Body},{default:p(()=>[f(h(e.message),1)]),_:1},8,["color","test-id","type"])):v("",!0)],2),e.onAction&&e.actionLabel?(u(),r("div",{key:1,class:d(`${N}__action-button`)},[_(c(y),{color:e.color,"border-radius":e.borderRadius,"on-click":e.onAction,"test-id":`${N}__action-button`,variant:c(x).Soft},{default:p(()=>[f(h(e.actionLabel),1)]),_:1},8,["color","border-radius","on-click","test-id","variant"])],2)):v("",!0)],2),m("div",{class:d(`${N}__dismiss-button`)},[_(c(y),{"aria-label":"Dismiss toast",color:c(k).Neutral,"border-radius":e.borderRadius,"icon-before":c(w).Delete,"icon-size":c(D).Tiny,"on-click":ee,size:c(j).Tiny,"test-id":`${N}__dismiss-button`,variant:c(x).Text},null,8,["color","border-radius","icon-before","icon-size","size","test-id","variant"])],2)],2)],46,E))}});export{H as _};
2
+ import{defineComponent as e,ref as t,computed as o,watch as l,onMounted as s,onUnmounted as a,onBeforeUnmount as i,createElementBlock as r,openBlock as u,normalizeStyle as n,normalizeClass as d,unref as c,createElementVNode as m,createCommentVNode as v,createVNode as _,createBlock as b,withCtx as p,createTextVNode as f,toDisplayString as h}from"vue";import{_ as y}from"./CLButton.vue_vue_type_style_index_0_lang-Djk1tZMn.js";import{_ as g}from"./CLIcon.vue_vue_type_style_index_0_lang-BBNiJbT_.js";import{_ as $}from"./CLText.vue_vue_type_style_index_0_lang-BAAbTVfM.js";import{g as T,c as x,b as L,d as k,o as z,e as D,a as M,C as j,f as w}from"./index-B12lvfc1.js";import{i as B,g as C,a as R}from"./helper-BlxFN3eF.js";import{useEsc as S}from"../composables/useEsc.js";import{useTheme as F}from"../composables/useTheme.js";const A=({color:e,theme:t})=>{const{colors:o,darkMode:l}=t??F(),s=T({color:e,colors:o.value,mode:(l.value,L.Light),variant:x.Soft}),a=T({color:k.Neutral,colors:o.value,mode:l.value?L.Light:L.Dark,variant:x.Text});return{"--clll-toast-bg-color":l.value?"white":"#322F35","--clll-toast-text-color":a?.textBody,"--clll-toast-action-button-text-color":s?.text,"--clll-toast-action-button-bg-color":s?.bg,"--clll-toast-action-button-hover-color":s?.hover,"--clll-toast-dismiss-button-text-color":a?.text,"--clll-toast-dismiss-button-bg-color":a?.bg,"--clll-toast-dismiss-button-hover-color":a?.hover,"--clll-toast-icon-bg":s?.bg,"--clll-toast-icon-color":s?.text,"--clll-toast-theme-radius":"var(--clll-default-radius)"}},E=["data-testid"],I=300,N="clll-toast",H=/* @__PURE__ */e({name:"CLToast",__name:"CLToast",props:{actionLabel:{},borderRadius:{},color:{default:k.Secondary},dismissTimer:{default:5},icon:{},iconFilled:{type:Boolean,default:!1},iconSize:{default:D.Small},message:{},onAction:{},onDismiss:{},position:{default:z.TopRight},rounded:{type:Boolean,default:!0},testId:{default:"clll-toast"},title:{},width:{default:"24rem"}},setup(e){const T=e,L=F(),z=t(),H=t(!1),q=t(),G=t(0),J=t(!1),K=t(null),O=t(0),P=t(0),Q=t(!1),U=o(()=>[N,T.borderRadius?`${N}--${T.borderRadius}`:"",T.dismissTimer?`${N}--has-timer`:"",T.icon?`${N}--has-icon`:"",T.message&&!T.title?`${N}--has-messageonly`:"",H.value?`${N}--mounted`:"",T.onAction&&T.actionLabel?`${N}--has-action`:"",T.rounded?`${N}--rounded`:`${N}--box`,T.title&&!T.message?`${N}--has-titleonly`:"",T.title&&T.message?`${N}--has-titleandmessage`:"",`${N}--${T.position}`]),V=()=>{null!==K.value&&(clearTimeout(K.value),K.value=null),q.value?.stop()},W=()=>{T.dismissTimer&&!J.value&&(V(),O.value=Date.now(),P.value=1e3*T.dismissTimer,Q.value=!1,K.value=setTimeout(()=>{Q.value||J.value||ee()},P.value))},X=()=>{if(!T.dismissTimer||Q.value||J.value)return;Q.value=!0;const e=Date.now()-O.value;P.value=Math.max(0,P.value-e),V()},Y=()=>{T.dismissTimer&&Q.value&&!J.value&&(Q.value=!1,O.value=Date.now(),K.value=setTimeout(()=>{Q.value||J.value||ee()},P.value))},Z=()=>{document.hidden?X():Y()},ee=()=>{J.value||(J.value=!0,H.value=!1,V(),q.value&&q.value.start(I,e=>{Math.min(e,I)===I&&(q.value?.stop(),T.onDismiss?.())}),te())};l(()=>T.dismissTimer,()=>{V(),J.value=!1,T.dismissTimer&&T.dismissTimer>0&&W()}),s(()=>{B&&(G.value=C()+1,q.value||(q.value=R(),q.value.start(100,e=>{100===Math.min(e,100)&&(q.value?.stop(),H.value=!0,T.dismissTimer&&q.value?.start(I,e=>{Math.min(e,I)===I&&(q.value?.stop(),W())}))})),document.addEventListener("visibilitychange",Z))}),a(()=>{B&&(V(),q.value=void 0,document.removeEventListener("visibilitychange",Z)),H.value=!1,J.value||(J.value=!0,T.onDismiss?.())});const{clearEventListeners:te}=S({escHandler:ee});return i(()=>{te()}),(t,o)=>(u(),r("output",{ref_key:"elem",ref:z,class:d(c(U)),"data-testid":e.testId,style:n({zIndex:c(G),"--clll-toast-width":e.width,...c(A)({color:e.color,theme:c(L)})}),onMouseenter:X,onMouseleave:Y,onFocusin:X,onFocusout:Y},[m("div",{class:d(`${N}__body`)},[m("div",{class:d(`${N}__content`)},[e.icon?(u(),r("div",{key:0,class:d(`${N}__icon`)},[_(c(g),{filled:e.iconFilled,name:e.icon,size:e.iconSize},null,8,["filled","name","size"])],2)):v("",!0),m("div",{class:d(`${N}__text`)},[e.title?(u(),b(c($),{key:0,color:c(k).Neutral,"test-id":`${N}__title`,type:c(M).Body,bold:""},{default:p(()=>[f(h(e.title),1)]),_:1},8,["color","test-id","type"])):v("",!0),e.message?(u(),b(c($),{key:1,color:c(k).Neutral,"test-id":`${N}__message`,type:e.title?c(M).Medium:c(M).Body},{default:p(()=>[f(h(e.message),1)]),_:1},8,["color","test-id","type"])):v("",!0)],2),e.onAction&&e.actionLabel?(u(),r("div",{key:1,class:d(`${N}__action-button`)},[_(c(y),{color:e.color,"border-radius":e.borderRadius,"on-click":e.onAction,"test-id":`${N}__action-button`,variant:c(x).Soft},{default:p(()=>[f(h(e.actionLabel),1)]),_:1},8,["color","border-radius","on-click","test-id","variant"])],2)):v("",!0)],2),m("div",{class:d(`${N}__dismiss-button`)},[_(c(y),{"aria-label":"Dismiss toast",color:c(k).Neutral,"border-radius":e.borderRadius,"icon-before":c(w).Delete,"icon-size":c(D).Tiny,"on-click":ee,size:c(j).Tiny,"test-id":`${N}__dismiss-button`,variant:c(x).Text},null,8,["color","border-radius","icon-before","icon-size","size","test-id","variant"])],2)],2)],46,E))}});export{H as _};