@codeandfunction/callaloo 4.9.8 → 4.10.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.
- package/dist/callaloo.global.js +1 -1
- package/dist/chunks/{CLButton.vue_vue_type_style_index_0_lang-hEXnJ7H1.js → CLButton.vue_vue_type_style_index_0_lang-CqwRXex5.js} +1 -1
- package/dist/chunks/{CLCalendar.vue_vue_type_style_index_0_lang-BqrGuMVB.js → CLCalendar.vue_vue_type_style_index_0_lang-US_3N22Q.js} +1 -1
- package/dist/chunks/{CLCard.vue_vue_type_style_index_0_lang-BGKjh5vA.js → CLCard.vue_vue_type_style_index_0_lang-CMQi_nx9.js} +1 -1
- package/dist/chunks/{CLIcon.vue_vue_type_style_index_0_lang-Cjt6fX90.js → CLIcon.vue_vue_type_style_index_0_lang-MCaGYSd9.js} +1 -1
- package/dist/chunks/{CLLink.vue_vue_type_style_index_0_lang-C9_EwMBi.js → CLLink.vue_vue_type_style_index_0_lang-DDtyvg4a.js} +1 -1
- package/dist/chunks/{CLModal.vue_vue_type_style_index_0_lang-DroQPRWC.js → CLModal.vue_vue_type_style_index_0_lang-wrr29HDF.js} +1 -1
- package/dist/chunks/{CLNavLink.vue_vue_type_script_setup_true_lang-Dqr8A_2Z.js → CLNavLink.vue_vue_type_script_setup_true_lang-Dm81o6kG.js} +1 -1
- package/dist/chunks/{CLPill.vue_vue_type_style_index_0_lang-DCtH-u0_.js → CLPill.vue_vue_type_style_index_0_lang-Dd9Hr0ol.js} +1 -1
- package/dist/chunks/{CLToast.vue_vue_type_style_index_0_lang-CtXJMlF9.js → CLToast.vue_vue_type_style_index_0_lang-BTKkG8MZ.js} +1 -1
- package/dist/chunks/icons-CD2PuwG0.js +1 -0
- package/dist/components/Buttons/CLButton/CLButton.js +1 -1
- package/dist/components/CLIcon/CLIcon.js +1 -1
- package/dist/components/Containers/CLCard/CLCard.js +1 -1
- package/dist/components/Containers/CLCarousel/CLCarousel.js +1 -1
- package/dist/components/Containers/CLDisclosure/CLDisclosure.js +1 -1
- package/dist/components/Form/CLCalendar/CLCalendar.js +1 -1
- package/dist/components/Form/CLCheckbox/CLCheckbox.js +1 -1
- package/dist/components/Form/CLInput/CLInput.js +1 -1
- package/dist/components/Form/CLInputDatePicker/CLInputDatePicker.js +1 -1
- package/dist/components/Form/CLSelect/CLSelect.js +1 -1
- package/dist/components/Indicators/CLBanner/CLBanner.js +1 -1
- package/dist/components/Indicators/CLPill/CLPill.js +1 -1
- package/dist/components/Modals/CLModal/CLModal.js +1 -1
- package/dist/components/Modals/CLModalDatePicker/CLModalDatePicker.js +1 -1
- package/dist/components/Navigation/CLLink/CLLink.js +1 -1
- package/dist/components/Navigation/CLNavLink/CLNavLink.js +1 -1
- package/dist/components/Navigation/CLNavSection/CLNavSection.js +1 -1
- package/dist/components/Popups/CLDropdownMenu/CLDropdownMenu.js +1 -1
- package/dist/components/Popups/CLToast/CLToast.js +1 -1
- package/dist/components/Providers/CLToastProvider/CLToastProvider.js +1 -1
- package/dist/index.js +1 -1
- package/dist/types.d.ts +9 -0
- package/package.json +1 -1
- package/dist/chunks/icons-6SVrmx7c.js +0 -1
|
@@ -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 n,resolveDynamicComponent as r,normalizeStyle as s,normalizeClass as u,unref as f,withCtx as c,createCommentVNode as p,createElementBlock as y,renderSlot as v}from"vue";import{_ as b}from"./CLIcon.vue_vue_type_style_index_0_lang-
|
|
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 n,resolveDynamicComponent as r,normalizeStyle as s,normalizeClass as u,unref as f,withCtx as c,createCommentVNode as p,createElementBlock as y,renderSlot as v}from"vue";import{_ as b}from"./CLIcon.vue_vue_type_style_index_0_lang-MCaGYSd9.js";import{_ as m}from"./CLSpinner.vue_vue_type_style_index_0_lang-DgZLt9T1.js";import{CLColorVariants as $,CLButtonTypes as _,CLLinkTarget as g,CLSizes as h,CLIconSizes as B,CLColors as L,CLAlign as z,CLPosition as C}from"../index.js";import{b as X}from"./utils-MElq6rY3.js";import{useHasSlotContent as S}from"../composables/useHasSlotContent.js";const w=/* @__PURE__ */e({name:"CLButton",__name:"CLButton",props:{active:{type:Boolean,default:!1},alignContent:{default:z.Center},ariaLabel:{default:void 0},as:{default:"button"},borderRadius:{default:void 0},busy:{type:Boolean,default:!1},color:{default:L.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:B.Small},onClick:{type:Function,default:void 0},pill:{type:Boolean,default:!1},rounded:{type:Boolean,default:!0},size:{default:h.Small},target:{default:g.Self},testId:{default:"clll-button"},title:{default:void 0},type:{default:_.Button},variant:{default:$.Soft},width:{default:"auto"},wrap:{type:Boolean,default:!1}},setup(e){const $=e,_=S();t();const g=a(),B="clll-button",L=o(()=>[B,`${B}--${$.type}`,`${B}--${$.color}--${$.variant}`,`${B}--${$.size}`,`${B}--${$.alignContent}`,$.active?`${B}--active`:"",$.busy?`${B}--busy`:"",$.disabled?`${B}--disabled`:"",$.wrap?`${B}--wrapped`:"",$.rounded?`${B}--rounded`:"",$.borderRadius?`${B}--${$.borderRadius}`:"",_.value?`${B}--has-content`:`${B}--no-content`,$.iconBefore?`${B}--icon-before`:"",$.iconAfter?`${B}--icon-after`:"",$.elevated?`${B}--elevated`:"",$.pill?`${B}--pill`:""]),w=()=>{switch($.size){case h.Medium:case h.Large:return h.Small;case h.XL:case h.XXL:return h.Medium;case h.XXXL:return h.Large;case h.XXXXL:return h.XL;case h.Tiny:default:return h.Tiny}};l(()=>{i(()=>{g.value&&$.forwardRef?.(g.value)})});const k=e=>{$.onClick?.(e)};return(t,a)=>(n(),d(r(e.as),{ref_key:"buttonRef",ref:g,"aria-label":e.ariaLabel,class:u(f(L)),"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(X)({color:e.color,variant:e.variant})}),onClick:k},{default:c(()=>[e.iconBefore?(n(),d(f(b),{key:0,filled:e.iconFilled,name:e.iconBefore,size:e.iconSize,"test-id":`${e.testId}-icon-before`},null,8,["filled","name","size","test-id"])):p("",!0),f(_)?(n(),y("span",{key:1,class:u(`${B}__content`)},[v(t.$slots,"default")],2)):p("",!0),e.iconAfter?(n(),d(f(b),{key:2,filled:e.iconFilled,name:e.iconAfter,size:e.iconSize,"test-id":`${e.testId}-icon-after`},null,8,["filled","name","size","test-id"])):p("",!0),e.busy?(n(),d(f(m),{key:3,align:f(z).Center,position:f(C).Absolute,size:w(),color:e.color},null,8,["align","position","size","color"])):p("",!0)]),_:3},8,["aria-label","class","data-testid","disabled","form","href","target","title","type","style"]))}});export{w 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 n,createElementBlock as o,openBlock as s,normalizeClass as u,createElementVNode as c,createVNode as p,unref as f,withCtx as v,createTextVNode as _,toDisplayString as y,Fragment as m,renderList as h,createBlock as b,createCommentVNode as g}from"vue";import{_ as k}from"./CLButton.vue_vue_type_style_index_0_lang-
|
|
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 n,createElementBlock as o,openBlock as s,normalizeClass as u,createElementVNode as c,createVNode as p,unref as f,withCtx as v,createTextVNode as _,toDisplayString as y,Fragment as m,renderList as h,createBlock as b,createCommentVNode as g}from"vue";import{_ as k}from"./CLButton.vue_vue_type_style_index_0_lang-CqwRXex5.js";import{_ as x}from"./CLText.vue_vue_type_style_index_0_lang-CMXJdE-D.js";import{CLColorVariants as z,CLSizes as D,CLIconSizes as w,CLIconNames as C,CLBorderRadius as S,CLTextTypes as L,CLColors as $,CLAlign as M}from"../index.js";import{useDatePicker as B}from"../composables/useDatePicker.js";const P=["data-testid"],R=/* @__PURE__ */e({name:"CLCalendar",__name:"CLCalendar",props:/* @__PURE__ */a({color:{default:$.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:R}){l(e=>({v63768322:e.width}));const T=e,j=R,E="clll-calendar",G=t(e,"modelValue"),F=i(G.value?.end??null),I=i(G.value?.start??null),{calendarGrid:N,cancelDraft:V,clearDraft:A,currentMonthLabel:O,draftEnd:q,draftStart:H,getDayAriaLabel:J,handleNextMonth:K,handlePrevMonth:Q,initializeDraft:U,isDraftEnd:W,isDraftStart:X,isInDraftRange:Y,onDayClick:Z,weekDays:ee}=B({appliedEnd:F,appliedStart:I,isRange:d(T,"isRange")});r(G,e=>{I.value=e?.start??null,F.value=e?.end??null,U()},{deep:!0}),n(()=>{U()});return a({apply:()=>{I.value=H.value,F.value=q.value,G.value={end:F.value,start:I.value}},cancel:()=>{V()},draftEnd:q,draftStart:H,initializeDraft:U,reset:()=>{A(),I.value=null,F.value=null,G.value=null}}),(a,l)=>(s(),o("div",{class:u([E,e.fluid?`${E}__fluid`:""]),"data-testid":e.testId},[c("div",{class:u(`${E}__header`)},[p(f(k),{"aria-label":"Previous month","border-radius":f(S).Full,"icon-before":f(C).ChevronLeft,"icon-size":f(w).Tiny,"on-click":f(Q),size:f(D).Tiny,variant:f(z).Ghost,height:"32px",width:"32px",wrap:""},null,8,["border-radius","icon-before","icon-size","on-click","size","variant"]),p(f(x),{type:f(L).Medium,medium:""},{default:v(()=>[_(y(f(O)),1)]),_:1},8,["type"]),p(f(k),{"aria-label":"Next month","border-radius":f(S).Full,"icon-before":f(C).ChevronRight,"icon-size":f(w).Tiny,"on-click":f(K),size:f(D).Tiny,variant:f(z).Ghost,height:"32px",width:"32px",wrap:""},null,8,["border-radius","icon-before","icon-size","on-click","size","variant"])],2),c("div",{class:u(`${E}__grid`)},[(s(!0),o(m,null,h(f(ee),e=>(s(),o("div",{key:e,class:u(`${E}__weekday`)},[p(f(x),{align:f(M).Center,color:f($).Neutral,type:f(L).Small},{default:v(()=>[_(y(e),1)]),_:2},1032,["align","color","type"])],2))),128)),(s(!0),o(m,null,h(f(N),(a,l)=>(s(),o("div",{key:a.date??`pad-${l}`,class:u([`${E}__cell`,a.isOutsideMonth?`${E}__cell--outside`:""])},[a.day&&a.date?(s(),b(f(k),{key:0,"aria-label":f(J)(a.date),"border-radius":f(S).Full,color:f(X)(a.date)||f(W)(a.date)?e.color:f($).Secondary,disabled:e.disabled||e.busy,size:f(D).Small,height:"100%",width:"100%","on-click":e=>((e,a)=>{a?.preventDefault(),a?.stopPropagation(),T.disabled||T.busy||!e||(Z(e),j("date-select",e))})(a.date,e),variant:f(X)(a.date)||f(W)(a.date)?f(z).Solid:f(Y)(a.date)?f(z).Soft:f(z).Ghost,wrap:""},{default:v(()=>[_(y(a.day),1)]),_:2},1032,["aria-label","border-radius","color","disabled","size","on-click","variant"])):g("",!0)],2))),128))],2)],10,P))}});export{R 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 n,normalizeStyle as s,normalizeClass as u,unref as c,createCommentVNode as g,createElementVNode as y,createBlock as h,renderSlot as f,Fragment as m,withCtx as _,createTextVNode as b,toDisplayString as v}from"vue";import{_ as $}from"./CLHeading.vue_vue_type_style_index_0_lang-CsmrsD6c.js";import{_ as p}from"./CLLink.vue_vue_type_style_index_0_lang-
|
|
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 n,normalizeStyle as s,normalizeClass as u,unref as c,createCommentVNode as g,createElementVNode as y,createBlock as h,renderSlot as f,Fragment as m,withCtx as _,createTextVNode as b,toDisplayString as v}from"vue";import{_ as $}from"./CLHeading.vue_vue_type_style_index_0_lang-CsmrsD6c.js";import{_ as p}from"./CLLink.vue_vue_type_style_index_0_lang-DDtyvg4a.js";import{_ as k}from"./CLSkeleton.vue_vue_type_style_index_0_lang-BmjT9fQ_.js";import{_ as C}from"./CLText.vue_vue_type_style_index_0_lang-CMXJdE-D.js";import{CLColorVariants as w,CLCardTypes as x,CLHeadingTypes as L,CLHeadingLevels as H,CLLinkTarget as R,CLOverflow as T,CLLoading as B,CLColors as S,CLAlign as j,CLOrder as A,CLTextTypes as O}from"../index.js";import{c as W}from"./utils-Dst7nzvj.js";import{useHasSlotContent as E}from"../composables/useHasSlotContent.js";const I=["data-testid","tabindex"],N=["alt","loading","src"],q={key:0,class:"clll-card__header-skeleton"},G=["alt","loading","src"],K=["aria-label","href","target"],M=/* @__PURE__ */e({name:"CLCard",__name:"CLCard",props:{active:{type:Boolean,default:!1},align:{default:j.Left},ariaLabel:{},borderRadius:{},bordered:{type:Boolean,default:!0},busy:{type:Boolean,default:!1},byline:{},color:{default:S.Neutral},compact:{type:Boolean,default:!1},elevated:{type:Boolean,default:!1},forwardRef:{},height:{default:"auto"},href:{},image:{},imageAltText:{default:""},imageHeight:{default:"auto"},imageLoading:{default:B.Eager},imageOrder:{},imageWidth:{default:"auto"},onClick:{},overflow:{default:T.Hidden},padded:{type:Boolean,default:!0},rounded:{type:Boolean,default:!0},target:{default:R.Self},testId:{default:"clll-card"},title:{},titleHLevel:{default:H.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=e,H=E(),R=a(),T=t(),B=t(),S=["a","button"],j=t(),M=l(()=>[x,`${x}--${L.type}`,`${x}--${L.color}-${L.variant}`,`${x}--${L.variant}`,`${x}--align-${L.align}`,L.rounded?`${x}--rounded`:`${x}--box`,L.bordered?`${x}--bordered`:"",L.borderRadius?`${x}--${L.borderRadius}`:"",L.busy?`${x}--busy`:`${x}--ready`,L.compact?`${x}--compact`:`${x}--no-compact`,L.title||L.byline?`${x}--has-header`:`${x}--no-header`,T.value?`${x}--has-heading`:`${x}--no-heading`,H.value?`${x}--has-content`:`${x}--no-content`,B.value?`${x}--has-footer`:`${x}--no-footer`,L.image?`${x}--has-image`:`${x}--has-no-image`,L.imageOrder?`${x}--image-${L.imageOrder}`:"",L.active?`${x}--active`:`${x}--inactive`,L.onClick?`${x}--has-link`:"",L.truncateTitle?`${x}--has-truncated-title`:"",L.elevated?`${x}--elevated`:"",L.overflow?`${x}--overflow-${L.overflow}`:"",L.padded?"":`${x}--no-padding`]),z=e=>{if(L.busy||!L.onClick)return;const{target:a}=e,t=a?a.closest("a,button"):void 0,l=[...j.value?.querySelectorAll("[data-expand-click-area]")??[]];if(l.length){const a=l[0],i=t?S.includes(t.tagName.toLowerCase()):null;t||a===e.target||i||a.click()}};return i(async()=>{await r(),j.value&&L.forwardRef?.(j.value),T.value=R?.heading,B.value=R?.footer}),(a,t)=>(d(),o("div",{ref_key:"refExpandedArea",ref:j,class:u(c(M)),style:s({...c(W)({color:e.color,variant:e.variant}),width:e.width,height:e.height,overflow:e.overflow}),"data-testid":e.testId,tabindex:e.onClick?0:void 0,onClick:z,onKeyup:n(z,["enter"])},[!e.image||e.imageOrder!==c(A).Before&&e.imageOrder?g("",!0):(d(),o("div",{key:0,class:u(["clll-card__image",{busy:e.busy}]),style:s({width:e.imageWidth,height:e.imageHeight})},[e.busy?(d(),h(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,N)):g("",!0)],6)),y("div",{class:u(`${x}__content`)},[y("div",{class:u(["clll-card__header",{busy:e.busy}])},[e.busy&&(c(T)||e.title||e.byline)?(d(),o("div",q,[c(T)||e.title?(d(),h(c(k),{key:0,"border-radius":e.borderRadius,height:"27px"},null,8,["border-radius"])):g("",!0),e.byline?(d(),h(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(T)&&(e.onClick||e.href)?(d(),h(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:_(()=>[f(a.$slots,"heading"),e.title?(d(),h(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(),h(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(),h(c(C),{key:3,align:e.align,class:u(`${x}__byline`),color:e.color,type:c(O).Small},{default:_(()=>[b(v(e.byline),1)]),_:1},8,["align","class","color","type"])):g("",!0)],2),y("div",{class:u(`${x}__slot`)},[y("div",{ref:"slot-content",class:u([`${x}__slot-content`,{busy:e.busy}])},[c(H)&&e.busy?(d(),h(c(k),{key:0,"border-radius":e.borderRadius,width:"100%",height:"100%"},null,8,["border-radius"])):g("",!0),y("div",null,[f(a.$slots,"default")])],2)],2),y("div",{class:u(["clll-card__footer",{busy:e.busy}])},[c(B)&&e.busy?(d(),h(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(A).After?(d(),o("div",{key:1,class:u(["clll-card__image",{busy:e.busy}]),style:s({width:e.imageWidth,height:e.imageHeight})},[e.busy?(d(),h(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,G)):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,K)),e.onClick&&e.variant!==c(w).Ghost?(d(),o("div",{key:3,class:u(`${x}__hover-elem`)},null,2)):g("",!0)],46,I))}});export{M as _};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import '../components/CLIcon/CLIcon.css';
|
|
2
|
-
import{defineComponent as e,ref as t,computed as l,watch as n,onMounted as o,createElementBlock as i,openBlock as a,normalizeStyle as r,normalizeClass as s,unref as c,createElementVNode as d}from"vue";import{CLMode as u,CLColors as m,CLColorVariants as f,CLIconSizes as p}from"../index.js";import{g as h}from"./utils-DVxwAjJ4.js";import{useTheme as v}from"../composables/useTheme.js";import{i as g}from"./helper-C542dSLs.js";const y=({color:e=m.Neutral})=>{const{colors:t,darkMode:l}=v(),n=l.value?u.Dark:u.Light,o=h({color:e,colors:t.value,mode:n,variant:f.Text});return{"--clll-icon-color":o?.textBody??"inherit"}},L=["data-testid"],X=["height","width"],w=["href"],B=/* @__PURE__ */e({name:"CLIcon",__name:"CLIcon",props:{color:{default:m.Neutral},filled:{type:Boolean,default:!1},name:{},size:{default:p.Small},testId:{default:"clll-icon"}},setup(e){const u=e,m="clll-icon",f={[p.Tiny]:20,[p.Small]:24,[p.Medium]:28,[p.Large]:32,[p.XL]:36,[p.XXL]:40,[p.XXXL]:44,[p.XXXXL]:48},h=/* @__PURE__ */new Map,v=t(!1),B=t(!1),I=l(()=>u.filled?u.name.endsWith("-filled")?u.name:u.name.replace("tabler:","tabler:")+"-filled":u.name),x=l(()=>{if(!B.value)return u.name;const e=I.value;return u.filled&&e!==u.name?v.value&&(e=>{if(!g)return!1;if(h.has(e))return h.get(e);const t=document.getElementById("clll-icons");if(!t)return!1;const l=document.getElementById(e),n=null!==l&&t.contains(l);return h.set(e,n),n})(e)?e:u.name:e}),$=l(()=>[m,`${m}--${u.name}`,`${m}--${u.size}`,{[`${m}--filled`]:u.filled&&x.value===I.value}]),b=l(()=>({...y({color:u.color}),width:f[u.size]+4+"px",height:f[u.size]+4+"px"}));n(()=>v.value,e=>{e&&h.clear()});return o(()=>{B.value=!0,(async()=>{if(!g)return;let e=document.getElementById("clll-icons");if(e)v.value=!0;else try{const t=/* #__PURE__ */Object.assign({"/src/icons.svg":()=>import("./icons-
|
|
2
|
+
import{defineComponent as e,ref as t,computed as l,watch as n,onMounted as o,createElementBlock as i,openBlock as a,normalizeStyle as r,normalizeClass as s,unref as c,createElementVNode as d}from"vue";import{CLMode as u,CLColors as m,CLColorVariants as f,CLIconSizes as p}from"../index.js";import{g as h}from"./utils-DVxwAjJ4.js";import{useTheme as v}from"../composables/useTheme.js";import{i as g}from"./helper-C542dSLs.js";const y=({color:e=m.Neutral})=>{const{colors:t,darkMode:l}=v(),n=l.value?u.Dark:u.Light,o=h({color:e,colors:t.value,mode:n,variant:f.Text});return{"--clll-icon-color":o?.textBody??"inherit"}},L=["data-testid"],X=["height","width"],w=["href"],B=/* @__PURE__ */e({name:"CLIcon",__name:"CLIcon",props:{color:{default:m.Neutral},filled:{type:Boolean,default:!1},name:{},size:{default:p.Small},testId:{default:"clll-icon"}},setup(e){const u=e,m="clll-icon",f={[p.Tiny]:20,[p.Small]:24,[p.Medium]:28,[p.Large]:32,[p.XL]:36,[p.XXL]:40,[p.XXXL]:44,[p.XXXXL]:48},h=/* @__PURE__ */new Map,v=t(!1),B=t(!1),I=l(()=>u.filled?u.name.endsWith("-filled")?u.name:u.name.replace("tabler:","tabler:")+"-filled":u.name),x=l(()=>{if(!B.value)return u.name;const e=I.value;return u.filled&&e!==u.name?v.value&&(e=>{if(!g)return!1;if(h.has(e))return h.get(e);const t=document.getElementById("clll-icons");if(!t)return!1;const l=document.getElementById(e),n=null!==l&&t.contains(l);return h.set(e,n),n})(e)?e:u.name:e}),$=l(()=>[m,`${m}--${u.name}`,`${m}--${u.size}`,{[`${m}--filled`]:u.filled&&x.value===I.value}]),b=l(()=>({...y({color:u.color}),width:f[u.size]+4+"px",height:f[u.size]+4+"px"}));n(()=>v.value,e=>{e&&h.clear()});return o(()=>{B.value=!0,(async()=>{if(!g)return;let e=document.getElementById("clll-icons");if(e)v.value=!0;else try{const t=/* #__PURE__ */Object.assign({"/src/icons.svg":()=>import("./icons-CD2PuwG0.js").then(e=>e.default)})["/src/icons.svg"];if(!t)return;const l=await t();if(e=document.getElementById("clll-icons"),e)return void(v.value=!0);const n=document.createElement("div");n.id="clll-icons",n.style.display="none",n.innerHTML=l.toString();const o=()=>{document.body.insertBefore(n,document.body.childNodes[0]),v.value=!0};"loading"===document.readyState?window.addEventListener("DOMContentLoaded",o,{once:!0}):o()}catch(t){console.error("[Callaloo] Failed to load icon sprite:",t)}})()}),(t,l)=>(a(),i("span",{class:s(c($)),"data-testid":e.testId,style:r(c(b))},[(a(),i("svg",{"aria-hidden":"true",class:s(`${m}-sprite`),height:f[e.size],width:f[e.size],viewBox:"0 0 24 24"},[d("use",{href:`#${c(x)}`},null,8,w)],10,X))],14,L))}});export{B as _};
|
|
@@ -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-
|
|
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-MCaGYSd9.js";import{CLMode as u,CLColors as f,CLColorVariants as p,CLLinkTarget as m,CLIconSizes as k,CLIconNames as x}from"../index.js";import{g as h}from"./utils-DVxwAjJ4.js";import{useTheme as b}from"../composables/useTheme.js";const v=({color:e=f.Primary,underline:l=!0})=>{const{colors:r,darkMode:n}=b(),t=n.value?u.Dark:u.Light,a=h({color:e,colors:r.value,mode:t,variant:p.Outline}),o=a?.border,i=a?.textDisabled,s=a?.textBody;return{"--clll-link-text-color":s??"inherit","--clll-link-text-hover":(n.value?a?.borderHover:a?.textDisabled)??"inherit","--clll-link-underline-color":l?o??"transparent":"transparent","--clll-link-underline-hover":l?i??"transparent":"transparent","--clll-link-focus-border":s??"transparent","--clll-link-focus-shadow":a?.shadow??"transparent"}},y=["aria-label","data-testid","href","rel","target"],_=/* @__PURE__ */e({name:"CLLink",__name:"CLLink",props:{ariaLabel:{},color:{default:f.Primary},external:{type:Boolean,default:!1},href:{},onClick:{},rel:{default:"noreferrer noopener"},target:{default:m.Self},testId:{default:"clll-link"},underline:{type:Boolean,default:!0}},setup(e){const u=e,f="clll-link",p=l(()=>[f,`${f}--${u.color}`,`${f}--${u.external?"external":"internal"}`,u.underline?`${f}--underline`:`${f}--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})),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(x).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 t,ref as l,computed as a,watch as n,onMounted as s,onBeforeUnmount as d,createElementBlock as i,createCommentVNode as r,openBlock as c,normalizeStyle as _,normalizeClass as u,unref as m,createElementVNode as v,createBlock as f,renderSlot as y,withCtx as p,createTextVNode as b,toDisplayString as $}from"vue";import{_ as h}from"./CLButton.vue_vue_type_style_index_0_lang-
|
|
2
|
+
import{defineComponent as e,useTemplateRef as o,useSlots as t,ref as l,computed as a,watch as n,onMounted as s,onBeforeUnmount as d,createElementBlock as i,createCommentVNode as r,openBlock as c,normalizeStyle as _,normalizeClass as u,unref as m,createElementVNode as v,createBlock as f,renderSlot as y,withCtx as p,createTextVNode as b,toDisplayString as $}from"vue";import{_ as h}from"./CLButton.vue_vue_type_style_index_0_lang-CqwRXex5.js";import{_ as w}from"./CLHeading.vue_vue_type_style_index_0_lang-CsmrsD6c.js";import{CLMode as x,CLColors as I,CLColorVariants as z,CLBorderRadius as g,CLIconSizes as L,CLIconNames as k,CLHeadingTypes as C}from"../index.js";import{g as B}from"./utils-DVxwAjJ4.js";import{useTheme as j}from"../composables/useTheme.js";import{useEsc as T}from"../composables/useEsc.js";import{c as E,i as O}from"./helper-C542dSLs.js";const R=()=>{const{colors:e,darkMode:o}=j(),t=o.value?x.Dark:x.Light,l=B({color:I.Neutral,colors:e.value,mode:t,variant:z.Solid}),a=o.value?"black":"white";return{"--clll-modal-overlay-bg":l?.bg??"transparent","--clll-modal-content-bg":a,"--clll-modal-theme-radius":"var(--clll-default-radius)"}},S=["id","data-testid"],M=["aria-labelledby"],D=/* @__PURE__ */e({name:"CLModal",__name:"CLModal",props:{borderRadius:{default:void 0},close:{type:Boolean,default:!0},closeBorderRadius:{default:g.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},testId:{default:"clll-modal"},title:{default:void 0},zIndex:{default:100}},emits:["modal-open","modal-close"],setup(e,{emit:x}){const g=x,B=o("modal-window"),j=t(),D=e,F="clll-modal",H="clll-prevent-scroll",N=l(),W=()=>{O&&window?.document.body.classList.add(H)},q=()=>{O&&window?.document.body.classList.remove(H)},A=a(()=>[F]),G=a(()=>[`${F}__window`,D.fullscreen?`${F}__window--fullscreen`:""]),J=a(()=>[`${F}__content`,D.borderRadius?`${F}__content--${D.borderRadius}`:"",D.close?`${F}__content--has-close-button`:`${F}__content--has-no-close-button`,j.body?`${F}__content--has-body`:`${F}__content--has-no-body`,j.footer?`${F}__content--has-footer`:`${F}__content--has-no-footer`,j.header||D.title?`${F}__content--has-header`:`${F}__content--has-no-header`,D.title?`${F}__content--has-title`:`${F}__content--has-no-title`]),K=a(()=>"auto"===D.zIndex||E(D.zIndex)?D.zIndex:D.zIndex.toString()),P=a(()=>{if("auto"===D.zIndex)return D.zIndex;return((E(D.zIndex)?parseInt(D.zIndex,10):D.zIndex)+100).toString()}),Q=e=>{try{(e=>{try{const o=e?.target,t=B.value;return!(!O||!t||t.contains(o))||void 0}catch(o){return void console.error(o)}})(e)&&(O&&window.removeEventListener("mousedown",Q),X())}catch(o){console.error(o)}},U=()=>{O&&window.removeEventListener("mousedown",Q)},V=()=>{O&&(N.value&&O&&window.clearTimeout(N.value),U(),q())},X=()=>{D.isOpen&&(D.onClose?.(),V())};n(D,e=>{e.isOpen?(g("modal-open"),W(),B.value&&B.value.focus(),O&&e.dismissible&&(U(),N.value=window.setTimeout(()=>{window.addEventListener("mousedown",Q)},100))):(B.value&&B.value.blur(),q(),U(),N.value&&O&&window.clearTimeout(N.value),g("modal-close"))}),s(()=>{D.isOpen&&O&&(W(),B.value&&B.value.focus())});const{clearEventListeners:Y}=T({escHandler:D.dismissible?X:void 0});return d(()=>{V(),Y()}),(o,t)=>e.isOpen?(c(),i("div",{key:0,id:e.modalId,class:u(m(A)),"data-testid":e.testId,style:_({...m(R)(),zIndex:m(K)})},[v("div",{class:u(m(G)),style:_({zIndex:m(P)})},[v("div",{ref:"modal-window","aria-modal":"true","aria-labelledby":`${F}__content__header__title`,class:u(m(J)),role:"dialog",tabindex:-1,style:_({"--clll-modal-max-width":e.maxWidth})},[v("div",{class:u(`${F}__close-button`)},[e.onClose&&e.close?(c(),f(m(h),{key:0,"aria-label":"Close modal","border-radius":e.closeBorderRadius,color:m(I).Neutral,"icon-before":m(k).Delete,"icon-size":m(L).Tiny,"on-click":e.onClose,"test-id":`${F}__close-button`,variant:m(z).Text},null,8,["border-radius","color","icon-before","icon-size","on-click","test-id","variant"])):r("",!0)],2),v("div",{class:u(`${F}__content__header`)},[v("div",{class:u(`${F}__content__title`)},[v("div",{class:u(`${F}__content__header__container`)},[e.title?(c(),f(m(w),{key:0,id:`${F}__content__header__title`,class:u(`${F}__content__header__title`),type:m(C).Section},{default:p(()=>[b($(e.title),1)]),_:1},8,["id","class","type"])):r("",!0),y(o.$slots,"header")],2)],2)],2),v("div",{class:u(`${F}__content__scroller`)},[v("div",{class:u(`${F}__content__body`)},[y(o.$slots,"body")],2)],2),v("div",{class:u(`${F}__content__footer`)},[y(o.$slots,"footer")],2)],14,M)],6),e.overlay?(c(),i("div",{key:0,ref:"overlay-ref",class:u(`${F}__overlay`),style:_({zIndex:e.zIndex})},null,6)):r("",!0)],14,S)):r("",!0)}});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-
|
|
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-DDtyvg4a.js";import{CLColors as o}from"../index.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,c=o,s=e=>{d.onClick&&d.onClick(e),c("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:s},{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 l,computed as o,createElementBlock as e,openBlock as n,Fragment as a,createCommentVNode as t,createBlock as i,normalizeStyle as c,normalizeClass as s,unref as d,createElementVNode as r,toDisplayString as u,withCtx as _}from"vue";import{_ as p}from"./CLButton.vue_vue_type_style_index_0_lang-
|
|
2
|
+
import{defineComponent as l,computed as o,createElementBlock as e,openBlock as n,Fragment as a,createCommentVNode as t,createBlock as i,normalizeStyle as c,normalizeClass as s,unref as d,createElementVNode as r,toDisplayString as u,withCtx as _}from"vue";import{_ as p}from"./CLButton.vue_vue_type_style_index_0_lang-CqwRXex5.js";import{_ as v}from"./CLIcon.vue_vue_type_style_index_0_lang-MCaGYSd9.js";import{CLColorVariants as $,CLColors as f,CLIconSizes as y}from"../index.js";import{p as m}from"./utils-CCWSWRuR.js";const k=["data-testid"],C=/* @__PURE__ */l({name:"CLPill",__name:"CLPill",props:{color:{default:f.Neutral},count:{},elevated:{type:Boolean,default:!1},icon:{},iconFilled:{type:Boolean,default:!1},label:{},onClick:{},rounded:{type:Boolean,default:!0},testId:{default:"clll-pill"},variant:{default:$.Soft}},setup(l){const $=l,f="clll-pill",C=o(()=>[f,`${f}--${$.color}--${$.variant}`,$.count?`${f}--has-count`:"",$.elevated?`${f}--elevated`:"",$.icon?`${f}--has-icon`:`${f}--has-noicon`,$.rounded?`${f}--rounded`:""]),b=o(()=>[f,`${f}--clickable`,`${f}--${$.color}--${$.variant}`,$.count?`${f}--has-count`:"",$.icon?`${f}--has-icon`:`${f}--has-noicon`,$.rounded?`${f}--rounded`:""]);return(o,$)=>(n(),e(a,null,[l.onClick?t("",!0):(n(),e("div",{key:0,class:s(d(C)),"data-testid":l.testId,style:c(d(m)({color:l.color,variant:l.variant}))},[l.icon?(n(),i(d(v),{key:0,filled:l.iconFilled,name:l.icon,size:d(y).Tiny},null,8,["filled","name","size"])):t("",!0),r("span",{class:s(`${f}__label`)},u(l.label),3),l.count?(n(),e("span",{key:1,class:s(`${f}__count`)},u(l.count),3)):t("",!0)],14,k)),l.onClick?(n(),i(d(p),{key:1,color:l.color,"on-click":l.onClick,variant:l.variant,pill:"",rounded:l.rounded},{default:_(()=>[r("div",{class:s(d(b)),style:c(d(m)({color:l.color,variant:l.variant}))},[l.icon?(n(),i(d(v),{key:0,filled:l.iconFilled,name:l.icon,size:d(y).Tiny},null,8,["filled","name","size"])):t("",!0),r("span",{class:s(`${f}__label`)},u(l.label),3),l.count?(n(),e("span",{key:1,class:s(`${f}__count`)},u(l.count),3)):t("",!0)],6)]),_:1},8,["color","on-click","variant","rounded"])):t("",!0)],64))}});export{C 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 y}from"vue";import{_ as h}from"./CLButton.vue_vue_type_style_index_0_lang-
|
|
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 y}from"vue";import{_ as h}from"./CLButton.vue_vue_type_style_index_0_lang-CqwRXex5.js";import{_ as g}from"./CLIcon.vue_vue_type_style_index_0_lang-MCaGYSd9.js";import{_ as $}from"./CLText.vue_vue_type_style_index_0_lang-CMXJdE-D.js";import{CLColorVariants as T,CLMode as x,CLColors as L,CLToastPosition as k,CLIconSizes as z,CLTextTypes as D,CLSizes as j,CLIconNames as M}from"../index.js";import{i as w,g as B,a as R}from"./helper-C542dSLs.js";import{useEsc as S}from"../composables/useEsc.js";import{g as C}from"./utils-DVxwAjJ4.js";import{useTheme as F}from"../composables/useTheme.js";const A=({color:e})=>{const{colors:t,darkMode:o}=F(),l=C({color:e,colors:t.value,mode:(o.value,x.Light),variant:T.Soft}),s=C({color:L.Neutral,colors:t.value,mode:o.value?x.Light:x.Dark,variant:T.Text});return{"--clll-toast-bg-color":o.value?"white":"#322F35","--clll-toast-text-color":s?.textBody,"--clll-toast-action-button-text-color":l?.text,"--clll-toast-action-button-bg-color":l?.bg,"--clll-toast-action-button-hover-color":l?.hover,"--clll-toast-dismiss-button-text-color":s?.text,"--clll-toast-dismiss-button-bg-color":s?.bg,"--clll-toast-dismiss-button-hover-color":s?.hover,"--clll-toast-icon-bg":l?.bg,"--clll-toast-icon-color":l?.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:L.Secondary},dismissTimer:{default:5},icon:{},iconSize:{default:z.Small},iconFilled:{type:Boolean,default:!1},message:{},onAction:{},onDismiss:{},position:{default:k.TopRight},rounded:{type:Boolean,default:!0},testId:{default:"clll-toast"},title:{},width:{default:"24rem"}},setup(e){const x=e,k=t(),C=t(!1),F=t(),H=t(0),q=t(!1),G=t(null),J=t(0),K=t(0),O=t(!1),P=o(()=>[N,x.borderRadius?`${N}--${x.borderRadius}`:"",x.dismissTimer?`${N}--has-timer`:"",x.icon?`${N}--has-icon`:"",x.message&&!x.title?`${N}--has-messageonly`:"",C.value?`${N}--mounted`:"",x.onAction&&x.actionLabel?`${N}--has-action`:"",x.rounded?`${N}--rounded`:`${N}--box`,x.title&&!x.message?`${N}--has-titleonly`:"",x.title&&x.message?`${N}--has-titleandmessage`:"",`${N}--${x.position}`]),Q=()=>{null!==G.value&&(clearTimeout(G.value),G.value=null),F.value?.stop()},U=()=>{x.dismissTimer&&!q.value&&(Q(),J.value=Date.now(),K.value=1e3*x.dismissTimer,O.value=!1,G.value=setTimeout(()=>{O.value||q.value||Y()},K.value))},V=()=>{if(!x.dismissTimer||O.value||q.value)return;O.value=!0;const e=Date.now()-J.value;K.value=Math.max(0,K.value-e),Q()},W=()=>{x.dismissTimer&&O.value&&!q.value&&(O.value=!1,J.value=Date.now(),G.value=setTimeout(()=>{O.value||q.value||Y()},K.value))},X=()=>{document.hidden?V():W()},Y=()=>{q.value||(q.value=!0,C.value=!1,Q(),F.value&&F.value.start(I,e=>{Math.min(e,I)===I&&(F.value?.stop(),x.onDismiss?.())}),Z())};l(()=>x.dismissTimer,()=>{Q(),q.value=!1,x.dismissTimer&&x.dismissTimer>0&&U()}),s(()=>{w&&(H.value=B()+1,F.value||(F.value=R(),F.value.start(100,e=>{100===Math.min(e,100)&&(F.value?.stop(),C.value=!0,x.dismissTimer&&F.value?.start(I,e=>{Math.min(e,I)===I&&(F.value?.stop(),U())}))})),document.addEventListener("visibilitychange",X))}),a(()=>{w&&(Q(),F.value=void 0,document.removeEventListener("visibilitychange",X)),C.value=!1,q.value||(q.value=!0,x.onDismiss?.())});const{clearEventListeners:Z}=S({escHandler:Y});return i(()=>{Z()}),(t,o)=>(u(),r("output",{ref_key:"elem",ref:k,class:d(c(P)),"data-testid":e.testId,style:n({zIndex:c(H),"--clll-toast-width":e.width,...c(A)({color:e.color})}),onMouseenter:V,onMouseleave:W,onFocusin:V,onFocusout:W},[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(L).Neutral,"test-id":`${N}__title`,type:c(D).Body,bold:""},{default:p(()=>[f(y(e.title),1)]),_:1},8,["color","test-id","type"])):v("",!0),e.message?(u(),b(c($),{key:1,color:c(L).Neutral,"test-id":`${N}__message`,type:e.title?c(D).Medium:c(D).Body},{default:p(()=>[f(y(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(h),{color:e.color,"border-radius":e.borderRadius,"on-click":e.onAction,"test-id":`${N}__action-button`,variant:c(T).Soft},{default:p(()=>[f(y(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(h),{"aria-label":"Dismiss toast",color:c(L).Neutral,"border-radius":e.borderRadius,"icon-before":c(M).Delete,"icon-size":c(z).Tiny,"on-click":Y,size:c(j).Tiny,"test-id":`${N}__dismiss-button`,variant:c(T).Text},null,8,["color","border-radius","icon-before","icon-size","size","test-id","variant"])],2)],2)],46,E))}});export{H as _};
|