@codeandfunction/callaloo 5.20.2 → 5.22.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (50) hide show
  1. package/dist/callaloo.global.js +1 -1
  2. package/dist/chunks/CLBadge.vue_vue_type_style_index_0_lang-C03m_R_c.js +2 -0
  3. package/dist/chunks/CLButton.vue_vue_type_style_index_0_lang-Dzbe7JWZ.js +2 -0
  4. package/dist/chunks/{CLCalendar.vue_vue_type_style_index_0_lang-B2c3R_eo.js → CLCalendar.vue_vue_type_style_index_0_lang-CTVzNLog.js} +1 -1
  5. package/dist/chunks/{CLCard.vue_vue_type_style_index_0_lang-BqfDwuqz.js → CLCard.vue_vue_type_style_index_0_lang-BBOuR1kL.js} +1 -1
  6. package/dist/chunks/{CLFormLabel.vue_vue_type_script_setup_true_lang-0GTnIrod.js → CLFormLabel.vue_vue_type_script_setup_true_lang-BM767yIM.js} +1 -1
  7. package/dist/chunks/{CLHeading.vue_vue_type_style_index_0_lang-DP9O-gHu.js → CLHeading.vue_vue_type_style_index_0_lang-BnYA-db5.js} +1 -1
  8. package/dist/chunks/{CLModal.vue_vue_type_style_index_0_lang-CJ9DJWEy.js → CLModal.vue_vue_type_style_index_0_lang-B0Q7BwUW.js} +1 -1
  9. package/dist/chunks/{CLPill.vue_vue_type_style_index_0_lang-CknufCvq.js → CLPill.vue_vue_type_style_index_0_lang-DzfYfqQl.js} +1 -1
  10. package/dist/chunks/{CLText.vue_vue_type_style_index_0_lang-BLjU8vDW.js → CLText.vue_vue_type_style_index_0_lang-DYZ0PnLl.js} +1 -1
  11. package/dist/chunks/{CLToast.vue_vue_type_style_index_0_lang-Cr6pyZr3.js → CLToast.vue_vue_type_style_index_0_lang-CyZeRWVs.js} +1 -1
  12. package/dist/chunks/utils-Bz2onxXq.js +1 -0
  13. package/dist/components/Buttons/CLButton/CLButton.js +1 -1
  14. package/dist/components/Buttons/CLButton/CLButton.vue.d.ts +3 -0
  15. package/dist/components/CLTable/CLTable.js +1 -1
  16. package/dist/components/Containers/CLCard/CLCard.js +1 -1
  17. package/dist/components/Containers/CLCarousel/CLCarousel.js +1 -1
  18. package/dist/components/Containers/CLDisclosure/CLDisclosure.js +1 -1
  19. package/dist/components/Containers/CLDisclosure/CLDisclosure.vue.d.ts +1 -0
  20. package/dist/components/Form/CLCalendar/CLCalendar.js +1 -1
  21. package/dist/components/Form/CLCheckbox/CLCheckbox.js +1 -1
  22. package/dist/components/Form/CLInput/CLInput.js +1 -1
  23. package/dist/components/Form/CLInputDatePicker/CLInputDatePicker.js +1 -1
  24. package/dist/components/Form/CLInputTimePicker/CLInputTimePicker.js +1 -1
  25. package/dist/components/Form/CLRadioButton/CLRadioButton.js +1 -1
  26. package/dist/components/Form/CLSelect/CLSelect.js +1 -1
  27. package/dist/components/Form/CLTextArea/CLTextArea.js +1 -1
  28. package/dist/components/Form/CLTimePicker/CLTimePicker.js +1 -1
  29. package/dist/components/Indicators/CLBadge/CLBadge.css +1 -1
  30. package/dist/components/Indicators/CLBadge/CLBadge.js +1 -1
  31. package/dist/components/Indicators/CLBadge/CLBadge.vue.d.ts +3 -0
  32. package/dist/components/Indicators/CLBanner/CLBanner.js +1 -1
  33. package/dist/components/Indicators/CLPill/CLPill.js +1 -1
  34. package/dist/components/Indicators/CLProgress/CLProgress.js +1 -1
  35. package/dist/components/Modals/CLModal/CLModal.js +1 -1
  36. package/dist/components/Modals/CLModalDatePicker/CLModalDatePicker.js +1 -1
  37. package/dist/components/Modals/CLModalTimePicker/CLModalTimePicker.js +1 -1
  38. package/dist/components/Navigation/CLNavSection/CLNavSection.js +1 -1
  39. package/dist/components/Popups/CLDropdownMenu/CLDropdownMenu.js +1 -1
  40. package/dist/components/Popups/CLDropdownMenu/CLDropdownMenu.vue.d.ts +4 -1
  41. package/dist/components/Popups/CLToast/CLToast.js +1 -1
  42. package/dist/components/Providers/CLToastProvider/CLToastProvider.js +1 -1
  43. package/dist/components/Typography/CLHeading/CLHeading.js +1 -1
  44. package/dist/components/Typography/CLText/CLText.js +1 -1
  45. package/dist/composables/useTheme.js +1 -1
  46. package/dist/styles.css +1 -1
  47. package/package.json +1 -1
  48. package/dist/chunks/CLBadge.vue_vue_type_style_index_0_lang-DXfUBYqW.js +0 -2
  49. package/dist/chunks/CLButton.vue_vue_type_style_index_0_lang-CdKhRClI.js +0 -2
  50. package/dist/chunks/utils-CCkMvR9Y.js +0 -1
package/package.json CHANGED
@@ -17,7 +17,7 @@
17
17
  "ui components",
18
18
  "vuejs"
19
19
  ],
20
- "version": "5.20.2",
20
+ "version": "5.22.0",
21
21
  "license": "MIT",
22
22
  "type": "module",
23
23
  "unpkg": "dist/callaloo.global.js",
@@ -1,2 +0,0 @@
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-Djy51eo9.js";import{b as c}from"./utils-HL8DrT3H.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 +0,0 @@
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-DXfUBYqW.js";import{_ as y}from"./CLIcon.vue_vue_type_style_index_0_lang-DqkY3kf7.js";import{_ as g}from"./CLSpinner.vue_vue_type_style_index_0_lang-DEt4Ycyj.js";import{CLButtonTypes as _}from"../index.js";import{b as $}from"./utils-CSguj38n.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-Djy51eo9.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 +0,0 @@
1
- import{b as o,g as e,c as r,d as t}from"./index-Djy51eo9.js";import{useTheme as s}from"../composables/useTheme.js";const a=({color:a=t.Neutral,theme:l})=>{const{colors:c,darkMode:m}=l??s(),d=m.value?o.Dark:o.Light,i=e({color:a,colors:c.value,mode:d,variant:r.Text});return{"--clll-text-color":i?.textBody??"inherit"}};export{a as t};