@codeandfunction/callaloo 4.12.2 → 5.0.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/CLA11yButton.vue_vue_type_style_index_0_lang-CSRl7Ywk.js +2 -0
- package/dist/chunks/CLButton.vue_vue_type_style_index_0_lang-DIWTZr8r.js +2 -0
- package/dist/chunks/CLCalendar.vue_vue_type_style_index_0_lang-C_V0TIOZ.js +2 -0
- package/dist/chunks/CLCard.vue_vue_type_style_index_0_lang-BvV2JMJg.js +2 -0
- package/dist/chunks/CLFormCharCounter.vue_vue_type_style_index_0_lang-CSZDp8WP.js +2 -0
- package/dist/chunks/CLFormLabel.vue_vue_type_script_setup_true_lang-BSGVX2OH.js +1 -0
- package/dist/chunks/CLHeading.vue_vue_type_style_index_0_lang-B5DkNiql.js +2 -0
- package/dist/chunks/CLIcon.vue_vue_type_style_index_0_lang-TznmoQu7.js +2 -0
- package/dist/chunks/CLInputMessages.vue_vue_type_style_index_0_lang-C4vm2Xov.js +2 -0
- package/dist/chunks/CLLink.vue_vue_type_style_index_0_lang-BxRVH7FA.js +2 -0
- package/dist/chunks/{CLModal.vue_vue_type_style_index_0_lang-CWceRHGW.js → CLModal.vue_vue_type_style_index_0_lang-Dil04VeQ.js} +1 -1
- package/dist/chunks/CLNavLink.vue_vue_type_script_setup_true_lang-Cj83Ka4j.js +1 -0
- package/dist/chunks/CLPill.vue_vue_type_style_index_0_lang-DnSECt7E.js +2 -0
- package/dist/chunks/{CLSkeleton.vue_vue_type_style_index_0_lang-BtFHeFjp.js → CLSkeleton.vue_vue_type_style_index_0_lang-CwyUPEE1.js} +1 -1
- package/dist/chunks/CLSpinner.vue_vue_type_style_index_0_lang-Cz3_Wz0P.js +2 -0
- package/dist/chunks/CLText.vue_vue_type_style_index_0_lang-CNOJZujE.js +2 -0
- package/dist/chunks/CLToast.vue_vue_type_style_index_0_lang-BpzaZguO.js +2 -0
- package/dist/chunks/context-DP_QBP01.js +1 -0
- package/dist/chunks/index-Bft6zZKv.js +1 -0
- package/dist/chunks/utils-Cism66KC.js +1 -0
- package/dist/chunks/utils-DEqqOzci.js +1 -0
- package/dist/chunks/utils-DVCnTWMt.js +1 -0
- package/dist/chunks/utils-DX6YX_aU.js +1 -0
- package/dist/chunks/utils-I87WCzVz.js +1 -0
- package/dist/chunks/{utils-DVxwAjJ4.js → utils-MlDbDIMX.js} +1 -1
- package/dist/chunks/utils-ugpM2L2U.js +1 -0
- package/dist/components/Buttons/CLA11yButton/CLA11yButton.js +1 -1
- package/dist/components/Buttons/CLButton/CLButton.css +1 -1
- package/dist/components/Buttons/CLButton/CLButton.js +1 -1
- package/dist/components/Buttons/CLButton/CLButton.vue.d.ts +1 -1
- package/dist/components/CLIcon/CLIcon.js +1 -1
- package/dist/components/CLTable/CLTable.js +1 -1
- package/dist/components/Containers/CLCard/CLCard.js +1 -1
- package/dist/components/Containers/CLCarousel/CLCarousel.css +1 -1
- package/dist/components/Containers/CLCarousel/CLCarousel.js +1 -1
- package/dist/components/Containers/CLDisclosure/CLDisclosure.js +1 -1
- package/dist/components/Containers/CLDrawer/CLDrawer.js +1 -1
- package/dist/components/Form/CLCalendar/CLCalendar.css +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/CLInputDatePicker/CLInputDatePicker.vue.d.ts +2 -2
- package/dist/components/Form/CLRadioButton/CLRadioButton.js +1 -1
- package/dist/components/Form/CLSelect/CLSelect.js +1 -1
- package/dist/components/Form/CLTextArea/CLTextArea.js +1 -1
- package/dist/components/Indicators/CLBadge/CLBadge.js +1 -1
- package/dist/components/Indicators/CLBanner/CLBanner.js +1 -1
- package/dist/components/Indicators/CLPill/CLPill.js +1 -1
- package/dist/components/Indicators/CLProgress/CLProgress.js +1 -1
- package/dist/components/Loading/CLSkeleton/CLSkeleton.js +1 -1
- package/dist/components/Loading/CLSpinner/CLSpinner.js +1 -1
- package/dist/components/Modals/CLModal/CLModal.js +1 -1
- package/dist/components/Modals/CLModal/CLModal.vue.d.ts +1 -1
- package/dist/components/Modals/CLModalDatePicker/CLModalDatePicker.js +1 -1
- package/dist/components/Modals/CLModalDatePicker/CLModalDatePicker.vue.d.ts +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/CLDropdownMenu/CLDropdownMenu.vue.d.ts +9 -9
- package/dist/components/Popups/CLToast/CLToast.css +1 -1
- package/dist/components/Popups/CLToast/CLToast.js +1 -1
- package/dist/components/Providers/CLThemeProvider/CLThemeProvider.js +1 -1
- package/dist/components/Providers/CLToastProvider/CLToastProvider.js +1 -1
- package/dist/components/Typography/CLHeading/CLHeading.js +1 -1
- package/dist/components/Typography/CLText/CLText.js +1 -1
- package/dist/components/Typography/CLText/CLText.vue.d.ts +2 -2
- package/dist/composables/useTheme.js +1 -1
- package/dist/index.js +1 -1
- package/dist/styles.css +1 -1
- package/dist/types.d.ts +4 -617
- package/package.json +4 -1
- package/dist/chunks/CLA11yButton.vue_vue_type_style_index_0_lang-RwSPgx8U.js +0 -2
- package/dist/chunks/CLButton.vue_vue_type_style_index_0_lang-Bi7GC71m.js +0 -2
- package/dist/chunks/CLCalendar.vue_vue_type_style_index_0_lang-BxZBofc_.js +0 -2
- package/dist/chunks/CLCard.vue_vue_type_style_index_0_lang-Lb49WiaW.js +0 -2
- package/dist/chunks/CLFormCharCounter.vue_vue_type_style_index_0_lang-BYHbqaf0.js +0 -2
- package/dist/chunks/CLFormLabel.vue_vue_type_script_setup_true_lang-BesVgApW.js +0 -1
- package/dist/chunks/CLHeading.vue_vue_type_style_index_0_lang-C7RHX0J4.js +0 -2
- package/dist/chunks/CLIcon.vue_vue_type_style_index_0_lang-CaZM-HFg.js +0 -2
- package/dist/chunks/CLInputMessages.vue_vue_type_style_index_0_lang-BrlOiHsE.js +0 -2
- package/dist/chunks/CLLink.vue_vue_type_style_index_0_lang-7e7xSEg0.js +0 -2
- package/dist/chunks/CLNavLink.vue_vue_type_script_setup_true_lang-I-qjKZJQ.js +0 -1
- package/dist/chunks/CLPill.vue_vue_type_style_index_0_lang-BSi1ljPG.js +0 -2
- package/dist/chunks/CLSpinner.vue_vue_type_style_index_0_lang-Ch4Vh_y3.js +0 -2
- package/dist/chunks/CLText.vue_vue_type_style_index_0_lang-Tv0xzrRz.js +0 -2
- package/dist/chunks/CLToast.vue_vue_type_style_index_0_lang-zgtfLRPh.js +0 -2
- package/dist/chunks/context-CRxE5KWX.js +0 -1
- package/dist/chunks/utils-BMhH7W6x.js +0 -1
- package/dist/chunks/utils-CdeA8xWg.js +0 -1
- package/dist/chunks/utils-Dea4wPBy.js +0 -1
- package/dist/chunks/utils-DfgurNgA.js +0 -1
- package/dist/chunks/utils-fXNd28fD.js +0 -1
- package/dist/chunks/utils-rZl51JEP.js +0 -1
|
@@ -1,2 +0,0 @@
|
|
|
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 o,createElementBlock as n,openBlock as s,normalizeStyle as u,normalizeClass as c,unref as p,createElementVNode as f,createVNode as v,withCtx as m,createTextVNode as y,toDisplayString as _,Fragment as b,renderList as h,createBlock as g,createCommentVNode as k}from"vue";import{_ as x}from"./CLButton.vue_vue_type_style_index_0_lang-Bi7GC71m.js";import{_ as z}from"./CLText.vue_vue_type_style_index_0_lang-Tv0xzrRz.js";import{CLColorVariants as D,CLSizes as w,CLIconSizes as C,CLIconNames as S,CLBorderRadius as L,CLTextTypes as $,CLColors as j,CLAlign as M}from"../index.js";import{c as T}from"./utils-CdeA8xWg.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({color:{default:j.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=>({v0d5ceeb8:e.width}));const G=e,F=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,isDraftStart:ae,isInDraftRange:le,onDayClick:te,weekDays:ie}=B({appliedEnd:A,appliedStart:O,isRange:d(G,"isRange")});r(V,e=>{O.value=e?.start??null,A.value=e?.end??null,Z()},{deep:!0}),o(()=>{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)=>(s(),n("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(x),{"aria-label":"Previous month","border-radius":p(L).Full,"icon-before":p(S).ChevronLeft,"icon-size":p(C).Tiny,"on-click":p(Y),size:p(w).Tiny,variant:p(D).Ghost,height:"32px",width:"32px",wrap:""},null,8,["border-radius","icon-before","icon-size","on-click","size","variant"]),v(p(z),{type:p($).Medium,medium:""},{default:m(()=>[y(_(p(K)),1)]),_:1},8,["type"]),v(p(x),{"aria-label":"Next month","border-radius":p(L).Full,"icon-before":p(S).ChevronRight,"icon-size":p(C).Tiny,"on-click":p(X),size:p(w).Tiny,variant:p(D).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`)},[(s(!0),n(b,null,h(p(ie),e=>(s(),n("div",{key:e,class:c(`${N}__weekday`)},[v(p(z),{align:p(M).Center,color:p(j).Neutral,type:p($).Small},{default:m(()=>[y(_(e),1)]),_:2},1032,["align","color","type"])],2))),128)),(s(!0),n(b,null,h(p(q),(a,l)=>(s(),n("div",{key:a.date??`pad-${l}`,class:c([`${N}__cell`,a.isOutsideMonth?`${N}__cell--outside`:""])},[a.day&&a.date?(s(),g(p(x),{key:0,"aria-label":p(W)(a.date),"border-radius":p(L).Full,color:p(ae)(a.date)||p(ee)(a.date)?e.color:p(j).Secondary,disabled:e.disabled||e.busy,size:p(w).Small,height:"100%",width:"100%","on-click":e=>((e,a)=>{a?.preventDefault(),a?.stopPropagation(),G.disabled||G.busy||!e||(te(e),F("date-select",e))})(a.date,e),variant:p(ae)(a.date)||p(ee)(a.date)?p(D).Solid:p(le)(a.date)?p(D).Soft:p(D).Ghost,wrap:""},{default:m(()=>[y(_(a.day),1)]),_:2},1032,["aria-label","border-radius","color","disabled","size","on-click","variant"])):k("",!0)],2))),128))],2)],14,R))}});export{E as _};
|
|
@@ -1,2 +0,0 @@
|
|
|
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-C7RHX0J4.js";import{_ as p}from"./CLLink.vue_vue_type_style_index_0_lang-7e7xSEg0.js";import{_ as k}from"./CLSkeleton.vue_vue_type_style_index_0_lang-BtFHeFjp.js";import{_ as C}from"./CLText.vue_vue_type_style_index_0_lang-Tv0xzrRz.js";import{CLColorVariants as w,CLCardTypes as x,CLHeadingTypes as L,CLHeadingLevels as H,CLLinkTarget as T,CLOverflow as R,CLLoading as B,CLColors as j,CLAlign as S,CLOrder as A,CLTextTypes as O}from"../index.js";import{c as W}from"./utils-Dea4wPBy.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:S.Left},ariaLabel:{},borderRadius:{},bordered:{type:Boolean,default:!0},busy:{type:Boolean,default:!1},byline:{},color:{default:j.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:R.Hidden},padded:{type:Boolean,default:!0},rounded:{type:Boolean,default:!0},target:{default:T.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=I(),H=e,T=E(),R=a(),B=t(),j=t(),S=["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`,j.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?S.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=R?.heading,j.value=R?.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(A).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(O).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(j)&&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(A).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 +0,0 @@
|
|
|
1
|
-
import '../assets/CLFormCharCounter.css';
|
|
2
|
-
import{defineComponent as r,computed as t,createElementBlock as e,openBlock as l,normalizeClass as o,unref as a,createElementVNode as c,toDisplayString as n}from"vue";import{CLSizes as u,CLCharCounterLayout as s,CLColors as m}from"../index.js";const f=["data-testid"],h={"aria-live":"polite",class:"clll-form-char-counter__char-counter__text",role:"status"},i=/* @__PURE__ */r({name:"CLFormCharCounter",__name:"CLFormCharCounter",props:{color:{default:m.Neutral},cssPrefix:{},currentLength:{},layout:{default:s.Block},maxLength:{},size:{default:u.Small},testId:{default:"clll-form-char-counter"}},setup(r){const u=r,m=t(()=>[`${u.cssPrefix}__char-counter`,"clll-form-char-counter",`clll-form-char-counter--${u.layout}`,`clll-form-char-counter--${u.size}`,`clll-form-char-counter--${u.color}`,u.layout===s.Inline?"form-counter-flex":""]);return(t,u)=>(l(),e("span",{class:o(a(m)),"data-testid":r.testId},[c("div",h,n(r.currentLength)+"/"+n(r.maxLength),1)],10,f))}});export{i as _};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{defineComponent as e,createElementBlock as l,openBlock as a,normalizeClass as t,createVNode as s,unref as r,withCtx as o,createTextVNode as X,toDisplayString as d}from"vue";import{_ as i}from"./CLText.vue_vue_type_style_index_0_lang-Tv0xzrRz.js";import{CLSizes as m,CLTextTypes as f}from"../index.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:t(`${e.cssPrefix}__label`),"data-testid":e.testId},[s(r(i),{as:"span",type:_[e.size],class:t(e.required?`${e.cssPrefix}__label--required`:"")},{default:o(()=>[X(d(e.label),1)]),_:1},8,["type","class"])],10,u))}});export{_};
|
|
@@ -1,2 +0,0 @@
|
|
|
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 r,normalizeStyle as s,normalizeClass as n,withCtx as d,renderSlot as c}from"vue";import{CLHeadingTypes as i,CLColors as u,CLAlign as p,CLHeadingLevels as f}from"../index.js";import{t as m}from"./utils-fXNd28fD.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:i.Title}},setup(e){const u=e,p=$(),y="clll-heading",g=t(()=>{if(u.level)return u.level;switch(u.type){case i.Section:return f.H2;case i.SubSection:return f.H3;case i.PageTitle:case i.Title:default:return f.H1}}),b=t(()=>[y,`${y}--${u.align}`,`${y}--${u.color}`,`${y}--${u.truncate?"wrap":"nowrap"}`,`${y}--${u.type}`,u.bolder?`${y}--bolder`:""]);return(t,i)=>(a(),l(o(r(g)),{class:n(r(b)),"data-testid":e.testId,style:s(r(m)({color:e.color,theme:r(p)}))},{default:d(()=>[c(t.$slots,"default")]),_:3},8,["class","data-testid","style"]))}});export{y as _};
|
|
@@ -1,2 +0,0 @@
|
|
|
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 h}from"../index.js";import{g as p}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,theme:t})=>{const{colors:l,darkMode:n}=t??v(),o=n.value?u.Dark:u.Light,i=p({color:e,colors:l.value,mode:o,variant:f.Text});return{"--clll-icon-color":i?.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:h.Small},testId:{default:"clll-icon"}},setup(e){const u=e,m=v(),f="clll-icon",p={[h.Tiny]:20,[h.Small]:24,[h.Medium]:28,[h.Large]:32,[h.XL]:36,[h.XXL]:40,[h.XXXL]:44,[h.XXXXL]:48},B=/* @__PURE__ */new Map,I=t(!1),x=t(!1),$=l(()=>u.filled?u.name.endsWith("-filled")?u.name:u.name.replace("tabler:","tabler:")+"-filled":u.name),b=l(()=>{if(!x.value)return u.name;const e=$.value;return u.filled&&e!==u.name?I.value&&(e=>{if(!g)return!1;if(B.has(e))return B.get(e);const t=document.getElementById("clll-icons");if(!t)return!1;const l=document.getElementById(e),n=null!==l&&t.contains(l);return B.set(e,n),n})(e)?e:u.name:e}),j=l(()=>[f,`${f}--${u.name}`,`${f}--${u.size}`,{[`${f}--filled`]:u.filled&&b.value===$.value}]),z=l(()=>({...y({color:u.color,theme:m}),width:p[u.size]+4+"px",height:p[u.size]+4+"px"}));n(()=>I.value,e=>{e&&B.clear()});return o(()=>{x.value=!0,(async()=>{if(!g)return;let e=document.getElementById("clll-icons");if(e)I.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(I.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]),I.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(j)),"data-testid":e.testId,style:r(c(z))},[(a(),i("svg",{"aria-hidden":"true",class:s(`${f}-sprite`),height:p[e.size],width:p[e.size],viewBox:"0 0 24 24"},[d("use",{href:`#${c(b)}`},null,8,w)],10,X))],14,L))}});export{B as _};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import '../assets/CLInputMessages.css';
|
|
2
|
-
import{defineComponent as e,createElementBlock as s,openBlock as a,normalizeClass as o,unref as l,renderSlot as t,Fragment as i,renderList as n,normalizeStyle as r,createElementVNode as p,toDisplayString as m}from"vue";import{CLOrientation as u,CLColors as d}from"../index.js";import{b as $}from"./utils-CdeA8xWg.js";const f="clll-form-field",c=/* @__PURE__ */e({__name:"CLFormField",props:{fluid:{type:Boolean},hasPill:{type:Boolean},hasCharCounter:{type:Boolean},orientation:{}},setup:e=>(i,n)=>(a(),s("div",{class:o([f,e.fluid||e.orientation===l(u).Horizontal?`${f}--fluid`:`${f}--fixed`,e.orientation?`${f}--${e.orientation}`:"",e.hasPill?`${f}--haspill`:"",e.hasCharCounter?`${f}--hascharcounter`:""])},[t(i.$slots,"default")],2))}),h="clll-input__message",_=/* @__PURE__ */e({__name:"CLInputMessages",props:{id:{},messages:{},messageType:{default:d.Neutral}},setup:e=>(t,u)=>(a(!0),s(i,null,n(e.messages,(t,i)=>(a(),s("span",{key:`${e.id}-message-${i}`,class:o([h,`${h}--${e.messageType}`]),style:r(l($)({color:e.messageType}))},[p("span",{class:o([`${h}__text`])},m(t),3)],6))),128))});export{c as _,_ as a};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import '../components/Navigation/CLLink/CLLink.css';
|
|
2
|
-
import{defineComponent as e,computed as l,createElementBlock as r,openBlock as t,normalizeStyle as n,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-CaZM-HFg.js";import{CLMode as u,CLColors as m,CLColorVariants as f,CLLinkTarget as p,CLIconSizes as k,CLIconNames as h}from"../index.js";import{g as x}from"./utils-DVxwAjJ4.js";import{useTheme as b}from"../composables/useTheme.js";const v=({color:e=m.Primary,underline:l=!0,theme:r})=>{const{colors:t,darkMode:n}=r??b(),a=n.value?u.Dark:u.Light,o=x({color:e,colors:t.value,mode:a,variant:f.Outline}),i=o?.border,s=o?.textDisabled,d=o?.textBody;return{"--clll-link-text-color":d??"inherit","--clll-link-text-hover":(n.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:p.Self},testId:{default:"clll-link"},underline:{type:Boolean,default:!0}},setup(e){const u=e,m=b(),f="clll-link",p=l(()=>[f,`${f}--${u.color}`,`${f}--${u.external?"external":"internal"}`,u.underline?`${f}--underline`:`${f}--nounderline`]);return(l,u)=>(t(),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:n(o(v)({color:e.color,underline:e.underline,theme:o(m)})),onClick:u[0]||(u[0]=(...l)=>e.onClick&&e.onClick(...l))},[i(l.$slots,"default"),e.external?(t(),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 +0,0 @@
|
|
|
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-7e7xSEg0.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 +0,0 @@
|
|
|
1
|
-
import '../components/Indicators/CLPill/CLPill.css';
|
|
2
|
-
import{defineComponent as e,computed as l,createElementBlock as n,openBlock as a,normalizeStyle as o,normalizeClass as i,unref as s,createCommentVNode as t,createBlock as c,createVNode as d,withCtx as r,createTextVNode as u,toDisplayString as _,createElementVNode as m}from"vue";import{_ as p}from"./CLButton.vue_vue_type_style_index_0_lang-Bi7GC71m.js";import{_ as y}from"./CLIcon.vue_vue_type_style_index_0_lang-CaZM-HFg.js";import{_ as f}from"./CLText.vue_vue_type_style_index_0_lang-Tv0xzrRz.js";import{CLColorVariants as v,CLColors as k,CLIconSizes as $,CLTextTypes as b,CLIconNames as C}from"../index.js";import{p as z}from"./utils-DfgurNgA.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:i(s(D)),style:o(s(z)({color:e.color,variant:e.variant}))},[e.onClick||e.onDismiss?t("",!0):(a(),n("span",{key:0,class:i(`${k}__container`)},[e.icon?(a(),c(s(y),{key:0,filled:e.iconFilled,name:e.icon,size:s($).Tiny},null,8,["filled","name","size"])):t("",!0),d(s(f),{as:"span",type:s(b).Small,truncate:""},{default:r(()=>[u(_(e.label),1)]),_:1},8,["type"]),e.count?(a(),n("span",{key:1,class:i(`${k}__count`)},_(e.count),3)):t("",!0)],2)),e.onClick&&!e.dismissable?(a(),c(s(p),{key:1,color:e.color,"on-click":e.onClick,variant:e.variant,pill:"",rounded:e.rounded},{default:r(()=>[m("span",{class:i(`${k}__button`)},[e.icon?(a(),c(s(y),{key:0,filled:e.iconFilled,name:e.icon,size:s($).Tiny},null,8,["filled","name","size"])):t("",!0),d(s(f),{as:"span",type:s(b).Small,truncate:""},{default:r(()=>[u(_(e.label),1)]),_:1},8,["type"]),e.count?(a(),n("span",{key:1,class:i(`${k}__count`)},_(e.count),3)):t("",!0),e.dismissable?(a(),c(s(y),{key:2,name:s(C).Delete,size:s($).Tiny},null,8,["name","size"])):t("",!0)],2)]),_:1},8,["color","on-click","variant","rounded"])):t("",!0),e.onDismiss&&e.dismissable?(a(),c(s(p),{key:2,color:e.color,"on-click":e.onDismiss,variant:e.variant,pill:"",rounded:e.rounded},{default:r(()=>[m("span",{class:i(`${k}__button`)},[d(s(f),{as:"span",type:s(b).Small,truncate:""},{default:r(()=>[u(_(e.label),1)]),_:1},8,["type"]),e.dismissable?(a(),c(s(y),{key:0,name:s(C).Delete,size:s($).Tiny},null,8,["name","size"])):t("",!0)],2)]),_:1},8,["color","on-click","variant","rounded"])):t("",!0)],14,x))}});export{D as _};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import '../components/Loading/CLSpinner/CLSpinner.css';
|
|
2
|
-
import{defineComponent as e,computed as t,createElementBlock as l,openBlock as o,normalizeStyle as s,normalizeClass as r,unref as i,createElementVNode as n}from"vue";import{CLSizes as a,CLPosition as c,CLColors as m,CLAlign as p}from"../index.js";import{a as d}from"./utils-BMhH7W6x.js";import{useTheme as u}from"../composables/useTheme.js";const f=["data-testid"],$=/* @__PURE__ */e({name:"CLSpinner",__name:"CLSpinner",props:{align:{default:p.Left},color:{default:m.Primary},position:{default:c.Absolute},size:{default:a.Medium},testId:{default:"clll-spinner"}},setup(e){const a=e,c=u(),m="clll-spinner",p=t(()=>[m,`${m}--${a.position}`,`${m}--${a.color}`,`${m}--${a.size}`,`${m}--${a.align}`]),$=t(()=>[`${m}__circle`,`${m}__circle--${a.size}`]);return(t,a)=>(o(),l("div",{class:r(i(p)),"data-testid":e.testId,style:s(i(d)({color:e.color,theme:i(c)}))},[(o(),l("svg",{class:r(i($)),xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},[...a[0]||(a[0]=[n("circle",{style:{opacity:"0.25"},cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"},null,-1),n("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 +0,0 @@
|
|
|
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{CLTextTypes as p,CLColors as n,CLAlign as f}from"../index.js";import{t as i}from"./utils-fXNd28fD.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 +0,0 @@
|
|
|
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-Bi7GC71m.js";import{_ as g}from"./CLIcon.vue_vue_type_style_index_0_lang-CaZM-HFg.js";import{_ as $}from"./CLText.vue_vue_type_style_index_0_lang-Tv0xzrRz.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{useTheme as C}from"../composables/useTheme.js";import{g as F}from"./utils-DVxwAjJ4.js";const A=({color:e,theme:t})=>{const{colors:o,darkMode:l}=t??C(),s=F({color:e,colors:o.value,mode:(l.value,x.Light),variant:T.Soft}),a=F({color:L.Neutral,colors:o.value,mode:l.value?x.Light:x.Dark,variant:T.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: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=C(),F=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,x.borderRadius?`${N}--${x.borderRadius}`:"",x.dismissTimer?`${N}--has-timer`:"",x.icon?`${N}--has-icon`:"",x.message&&!x.title?`${N}--has-messageonly`:"",H.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}`]),V=()=>{null!==K.value&&(clearTimeout(K.value),K.value=null),q.value?.stop()},W=()=>{x.dismissTimer&&!J.value&&(V(),O.value=Date.now(),P.value=1e3*x.dismissTimer,Q.value=!1,K.value=setTimeout(()=>{Q.value||J.value||ee()},P.value))},X=()=>{if(!x.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=()=>{x.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(),x.onDismiss?.())}),te())};l(()=>x.dismissTimer,()=>{V(),J.value=!1,x.dismissTimer&&x.dismissTimer>0&&W()}),s(()=>{w&&(G.value=B()+1,q.value||(q.value=R(),q.value.start(100,e=>{100===Math.min(e,100)&&(q.value?.stop(),H.value=!0,x.dismissTimer&&q.value?.start(I,e=>{Math.min(e,I)===I&&(q.value?.stop(),W())}))})),document.addEventListener("visibilitychange",Z))}),a(()=>{w&&(V(),q.value=void 0,document.removeEventListener("visibilitychange",Z)),H.value=!1,J.value||(J.value=!0,x.onDismiss?.())});const{clearEventListeners:te}=S({escHandler:ee});return i(()=>{te()}),(t,o)=>(u(),r("output",{ref_key:"elem",ref:F,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(k)})}),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(L).Neutral,"test-id":`${N}__title`,type:c(D).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(L).Neutral,"test-id":`${N}__message`,type:e.title?c(D).Medium:c(D).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(T).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(L).Neutral,"border-radius":e.borderRadius,"icon-before":c(M).Delete,"icon-size":c(z).Tiny,"on-click":ee,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 _};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{ref as e}from"vue";import{CLMode as o}from"../index.js";function r(e,o){if(!o)return e;const t={...e};for(const d in o)if(Object.prototype.hasOwnProperty.call(o,d)){const e=o[d],a=t[d];f(a)&&f(e)?t[d]=r(a,e):t[d]=e}return t}function f(e){return!(null===e||"object"!=typeof e||Array.isArray(e)||e instanceof Date||e instanceof Map||e instanceof Set)}const t={borderRadius:void 0,colors:{primary:{0:"#ffffff",100:"#def5ff",200:"#b6eeff",300:"#75e3ff",400:"#2cd6ff",500:"#00c8ff",600:"#009cd4",700:"#007cab",800:"#00688d",900:"#065674"},secondary:{0:"#ffffff",100:"#DEE2E8",200:"#BFC7D4",300:"#9EAABD",400:"#8090A8",500:"#61738E",600:"#4F5D73",700:"#3A4555",800:"#272F3A",900:"#13161B"},neutral:{0:"#ffffff",100:"#F7F7F7",200:"#F2F2F2",300:"#EBEBEB",400:"#E6E6E6",500:"#DEDEDE",600:"#B3B3B3",700:"#858585",800:"#595959",900:"#2B2B2B"},danger:{0:"#ffffff",100:"#ffd3ce",200:"#ffb2ac",300:"#ff8e88",400:"#fe6561",500:"#e74c4c",600:"#d20e27",700:"#9b0018",800:"#63000c",900:"#360003"},warning:{0:"#ffffff",100:"#ffeaba",200:"#ffdf95",300:"#ffd36a",400:"#fdc836",500:"#f5be1a",600:"#c79800",700:"#8a6900",800:"#4f3b00",900:"#211700"},success:{0:"#ffffff",100:"#9effb2",200:"#69f68d",300:"#56e57e",400:"#41d56e",500:"#22c55d",600:"#00a147",700:"#007230",800:"#00441a",900:"#001f08"},info:{0:"#ffffff",100:"#cfe2ff",200:"#afceff",300:"#8eb9ff",400:"#6ca4ff",500:"#4e8ff8",600:"#2470e7",700:"#004cb5",800:"#002e73",900:"#00153e"}},darkMode:!1,fontFamily:"BlinkMacSystemFont,-apple-system,'Segoe UI',Roboto,Oxygen,Ubuntu,Cantarell,'Fira Sans','Droid Sans','Helvetica Neue',Helvetica,Arial,sans-serif"},d={contrast:{[o.Light]:{border:900,borderHover:700,bg:900,disabled:500,focus:900,hover:800,shadow:900,text:0,textDisabled:800},[o.Dark]:{border:400,borderHover:700,bg:100,disabled:500,focus:400,hover:200,shadow:400,text:900,textDisabled:500}},ghost:{[o.Light]:{disabled:100,focus:700,text:800,textDisabled:800},[o.Dark]:{disabled:700,focus:300,text:300,textDisabled:700}},outline:{[o.Light]:{border:300,borderHover:700,disabled:400,focus:700,hover:100,text:900,textBody:700,textDisabled:800},[o.Dark]:{border:500,borderHover:500,disabled:800,focus:300,hover:900,text:300,textBody:300,textDisabled:700}},soft:{[o.Light]:{bg:100,border:300,borderHover:700,disabled:100,focus:400,hover:200,shadow:200,text:900,textDisabled:800},[o.Dark]:{bg:900,border:100,borderHover:300,disabled:800,focus:100,hover:800,shadow:800,text:300,textDisabled:500}},solid:{[o.Light]:{bg:600,border:700,borderHover:900,disabled:500,focus:700,hover:500,shadow:700,text:0,textDisabled:100},[o.Dark]:{bg:400,border:100,borderHover:300,disabled:600,focus:100,hover:500,shadow:100,text:900,textDisabled:800}},text:{[o.Light]:{border:100,borderHover:300,disabled:100,focus:800,hover:200,text:800,textBody:800,textDisabled:700},[o.Dark]:{border:300,borderHover:500,disabled:800,focus:300,hover:900,text:100,textBody:100,textDisabled:500}}},a=o=>{const f=e(o?.borderRadius||t.borderRadius),d=e(o?.darkMode??t.darkMode),a=e(o?.fontFamily??t.fontFamily),s=r(t.colors,o?.colors),b=e(s);return{borderRadius:f,colors:b,darkMode:d,fontFamily:a,setBorderRadius:e=>{f.value=e},setColors:e=>{b.value={...b.value,...e}},setDarkMode:e=>{d.value=e},setFontFamily:e=>{a.value=e}}},s=/* @__PURE__ */Symbol("clll-theme");export{d as C,t as D,s as T,a as s};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{CLMode as o,CLColors as r,CLColorVariants as l}from"../index.js";import{g as e}from"./utils-DVxwAjJ4.js";import{useTheme as a}from"../composables/useTheme.js";const s=o=>{const{darkMode:r}=o??a();return{"--clll-skeleton-bg-color":r.value?"rgba(0 0 0 / 0.005)":"rgba(0 0 0 / 0.075)","--clll-skeleton-theme-radius":"var(--clll-default-radius)"}},t=({color:s=r.Primary,theme:t})=>{const{colors:c,darkMode:i}=t??a(),m=i.value?o.Dark:o.Light,n=e({color:s,colors:c.value,mode:m,variant:l.Solid});return{"--clll-spinner-color":n?.bg??"inherit"}};export{t as a,s};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{CLMode as l,CLColorVariants as e}from"../index.js";import{useTheme as r}from"../composables/useTheme.js";import{g as t}from"./utils-DVxwAjJ4.js";const a=({color:a,variant:c,theme:o})=>{const{colors:s,darkMode:i}=o??r(),d=i.value?l.Dark:l.Light,u=c===e.Ghost,b=t({color:a,colors:s.value,mode:d,variant:e.Solid}),p=t({color:a,colors:s.value,mode:d,variant:e.Outline}),h=i.value?"black":"white",v=p?.border,k=p?.disabled,x=i.value?"black":b?.textDisabled,f=p?.focus,g=p?.focus,m=p?.text,w=p?.textDisabled;return{"--clll-checkbox-bg":u?"transparent":h??"white","--clll-checkbox-border":u?"transparent":v??"transparent","--clll-checkbox-disabled-border":k??"transparent","--clll-checkbox-disabled-bg":x??"transparent","--clll-checkbox-checked-bg":h??"white","--clll-checkbox-focus-border":f??"transparent","--clll-checkbox-focus-shadow":g??"transparent","--clll-checkbox-icon-color":m??"inherit","--clll-checkbox-disabled-icon-color":w??"transparent","--clll-checkbox-indicator-color":m??"inherit","--clll-checkbox-disabled-indicator-color":w??"transparent","--clll-checkbox-theme-radius":"var(--clll-default-radius)","--clll-checkbox-outline-width":u?"0px":"2px","--clll-checkbox-required-asterisk-color":n(o??r())??"red"}},c=({color:a,variant:c,theme:o})=>{const{colors:s,darkMode:i}=o??r(),d=i.value?l.Dark:l.Light,u=c===e.Ghost,b=t({color:a,colors:s.value,mode:d,variant:e.Solid}),p=t({color:a,colors:s.value,mode:d,variant:e.Outline}),h=i.value?"black":"white",v=i.value?"black":b?.textDisabled,k=p?.border,x=p?.disabled,f=i.value?"black":b?.textDisabled,g=p?.focus,m=p?.focus,w=p?.text,D=p?.focus;return{"--clll-input-bg":u?"transparent":h??"white","--clll-input-border":u?"transparent":k??"transparent","--clll-input-disabled-border":x??"transparent","--clll-input-disabled-bg":f??"transparent","--clll-input-readonly-border":x??"transparent","--clll-input-readonly-bg":f??"transparent","--clll-input-focus-border":g??"transparent","--clll-input-focus-shadow":m??"transparent","--clll-input-text":w??"inherit","--clll-input-text-placeholder":D??"transparent","--clll-input-grouped-bg":v??"transparent","--clll-input-prefix-suffix-color":D??"transparent","--clll-input-theme-radius":"var(--clll-default-radius)","--clll-input-ghost-padding":u?"0":void 0,"--clll-input-required-asterisk-color":n(o??r())??"red"}},o=({color:a,theme:c})=>{const{colors:o,darkMode:s}=c??r(),n=s.value?l.Dark:l.Light,i=t({color:a,colors:o.value,mode:n,variant:e.Outline});return{"--clll-input-message-color":i?.textBody??"inherit"}},s=({color:a,variant:c,theme:o})=>{const{colors:s,darkMode:i}=o??r(),d=i.value?l.Dark:l.Light,u=c===e.Ghost,b=t({color:a,colors:s.value,mode:d,variant:e.Solid}),p=t({color:a,colors:s.value,mode:d,variant:e.Outline}),h=i.value?"black":"white",v=p?.border,k=p?.disabled,x=i.value?"black":b?.textDisabled,f=p?.focus,g=p?.focus,m=p?.text,w=p?.focus;return{"--clll-select-bg":u?"transparent":h??"white","--clll-select-border":u?"transparent":v??"transparent","--clll-select-disabled-border":k??"transparent","--clll-select-disabled-bg":x??"transparent","--clll-select-focus-border":f??"transparent","--clll-select-focus-shadow":g??"transparent","--clll-select-text":m??"inherit","--clll-select-text-placeholder":w??"transparent","--clll-select-icon-color":m??"inherit","--clll-select-disabled-icon-color":w??"transparent","--clll-select-theme-radius":"var(--clll-default-radius)","--clll-select-ghost-padding":u?"0":void 0,"--clll-select-required-asterisk-color":n(o??r())??"red"}},n=l=>{const{colors:e,darkMode:t}=l??r();return t.value?e.value.danger?.[400]:e.value.danger?.[700]},i=l=>{const{darkMode:e}=l??r();return{"--clll-calendar-content-bg":e.value?"black":"white"}};export{a,o as b,i as c,c as i,s};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{CLMode as r,CLColorVariants as l,CLColors as o}from"../index.js";import{g as a}from"./utils-DVxwAjJ4.js";import{useTheme as e}from"../composables/useTheme.js";const t=({color:o,variant:t,theme:c})=>{const{colors:s,darkMode:n}=c??e(),d=n.value?r.Dark:r.Light,i=t===l.Ghost,u=a({color:o,colors:s.value,mode:d,variant:t});return{"--clll-card-border-color":i?"transparent":u?.border??"transparent","--clll-card-bg-color":u?.bg??"transparent","--clll-card-image-bg":u?.bg??"transparent","--clll-card-text-color":u?.text??"inherit","--clll-card-focus-border":u?.focus??"transparent","--clll-card-focus-shadow":u?.shadow??"transparent","--clll-card-theme-radius":"var(--clll-default-radius)"}},c=({color:o,variant:t,theme:c})=>{const{colors:s,darkMode:n}=c??e(),d=n.value?r.Dark:r.Light,i=t===l.Ghost,u=a({color:o,colors:s.value,mode:d,variant:t});return{"--clll-disclosure-border-color":i?"transparent":u?.focus??"transparent","--clll-disclosure-text-color":u?.text??"inherit","--clll-disclosure-content-border":i?"transparent":u?.focus??"transparent","--clll-disclosure-trigger-bg-color":u?.bg??"transparent","--clll-disclosure-trigger-hover-bg-color":u?.hover??"transparent","--clll-disclosure-theme-radius":"var(--clll-default-radius)"}},s=t=>{const{colors:c,darkMode:s}=t??e(),n=s.value?r.Dark:r.Light,d=a({color:o.Neutral,colors:c.value,mode:n,variant:l.Solid}),i=s.value?"black":"white";return{"--clll-drawer-overlay-bg":d?.bg??"transparent","--clll-drawer-content-bg":i}};export{s as a,t as c,c as d};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{CLMode as l,CLColorVariants as r,CLColors as o}from"../index.js";import{g as a}from"./utils-DVxwAjJ4.js";import{useTheme as e}from"../composables/useTheme.js";const t=({color:t=o.Primary,variant:n})=>{const{colors:c,darkMode:s}=e(),i=s.value?l.Dark:l.Light,d=n===r.Outline,b=a({color:t,colors:c.value,mode:i,variant:n});return{"--clll-badge-bg-color":b?.bg??"transparent","--clll-badge-border-color":d?b?.border??"transparent":"transparent","--clll-badge-border-style":d?"solid":"none","--clll-badge-border-width":d?"1px":"0","--clll-badge-text-color":b?.text??"inherit","--clll-badge-theme-radius":"var(--clll-default-radius)"}},n=({color:r=o.Primary,variant:t})=>{const{colors:n,darkMode:c}=e(),s=c.value?l.Dark:l.Light,i=a({color:r,colors:n.value,mode:s,variant:t});return{"--clll-banner-bg-color":i?.bg??"transparent","--clll-banner-border-color":i?.focus??"transparent","--clll-banner-text-color":i?.text??"inherit","--clll-banner-theme-radius":"var(--clll-default-radius)"}},c=({color:t=o.Primary,variant:n})=>{const{colors:c,darkMode:s}=e(),i=s.value?l.Dark:l.Light,d=n===r.Outline,b=n===r.Ghost,p=a({color:t,colors:c.value,mode:i,variant:n});return{"--clll-pill-bg-color":p?.bg??"transparent","--clll-pill-border-color":d?p?.border??"transparent":"transparent","--clll-pill-border-style":d?"solid":"none","--clll-pill-border-width":d?"1px":"0","--clll-pill-text-color":p?.text??"inherit","--clll-pill-hover-bg":p?.bg??"transparent","--clll-pill-count-bg":d||b?"transparent":p?.hover??"transparent","--clll-pill-count-border-style":d?"solid":"none","--clll-pill-count-border-color":d?p?.border??"transparent":"transparent","--clll-pill-count-border-width":d?"1px":"0","--clll-pill-theme-radius":"var(--clll-default-radius)"}},s=({color:t=o.Primary,theme:n})=>{const{colors:c,darkMode:s}=n??e(),i=s.value?l.Dark:l.Light,d=a({color:t,colors:c.value,mode:i,variant:r.Solid}),b=a({color:o.Neutral,colors:c.value,mode:i,variant:r.Solid});return{"--clll-progress-container-bg":b?.disabled??"transparent","--clll-progress-bar-bg":d?.bg??"transparent"}};export{n as a,t as b,s as c,c as p};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{CLMode as o,CLColors as r,CLColorVariants as t}from"../index.js";import{g as e}from"./utils-DVxwAjJ4.js";import{useTheme as l}from"../composables/useTheme.js";const s=({color:s=r.Neutral,theme:a})=>{const{colors:m,darkMode:c}=a??l(),i=c.value?o.Dark:o.Light,n=e({color:s,colors:m.value,mode:i,variant:t.Text});return{"--clll-text-color":n?.textBody??"inherit"}};export{s as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{CLMode as o,CLColorVariants as r}from"../index.js";import{g as t}from"./utils-DVxwAjJ4.js";import{useTheme as l}from"../composables/useTheme.js";const a=({color:a,theme:e})=>{const{colors:n,darkMode:s}=e??l(),c=s.value?o.Dark:o.Light,u=t({color:a,colors:n.value,mode:c,variant:r.Solid});return{"--clll-a11y-button-outline-color":u?.focus??"transparent","--clll-a11y-button-border-color":u?.focus??"transparent","--clll-a11y-button-shadow-color":u?.shadow??"transparent","--clll-a11y-button-theme-radius":"var(--clll-default-radius)"}},e=({color:a,variant:e=r.Soft,theme:n})=>{const{colors:s,darkMode:c}=n??l(),u=c.value?o.Dark:o.Light,d=e===r.Outline,b=t({color:a,colors:s.value,mode:u,variant:e});return{"--clll-button-text-color":b?.text??"inherit","--clll-button-bg-color":b?.bg??"transparent","--clll-button-border-color":d?b?.border??"transparent":"transparent","--clll-button-hover-bg":b?.hover??"transparent","--clll-button-hover-border":d?b?.borderHover??"transparent":"transparent","--clll-button-focus-border":b?.focus??"transparent","--clll-button-focus-shadow":b?.shadow??"transparent","--clll-button-theme-radius":"var(--clll-default-radius)"}};export{a,e as b};
|