@codeandfunction/callaloo 4.10.0 → 4.11.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/package.json CHANGED
@@ -17,7 +17,7 @@
17
17
  "ui components",
18
18
  "vuejs"
19
19
  ],
20
- "version": "4.10.0",
20
+ "version": "4.11.0",
21
21
  "license": "MIT",
22
22
  "type": "module",
23
23
  "unpkg": "dist/callaloo.global.js",
@@ -1,2 +0,0 @@
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-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 _};