@codeandfunction/callaloo 5.16.0 → 5.17.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (67) hide show
  1. package/dist/callaloo.global.js +1 -1
  2. package/dist/chunks/CLCalendar.vue_vue_type_style_index_0_lang-D35OH5qI.js +2 -0
  3. package/dist/chunks/{CLCard.vue_vue_type_style_index_0_lang-CY-Qr_CV.js → CLCard.vue_vue_type_style_index_0_lang-CAg8Jmzv.js} +1 -1
  4. package/dist/chunks/{CLFormLabel.vue_vue_type_script_setup_true_lang-DoM5X-sA.js → CLFormLabel.vue_vue_type_script_setup_true_lang-Cv4WHr_X.js} +1 -1
  5. package/dist/chunks/{CLHeading.vue_vue_type_style_index_0_lang-PCOhAZkN.js → CLHeading.vue_vue_type_style_index_0_lang-CYgxrrIE.js} +1 -1
  6. package/dist/chunks/{CLModal.vue_vue_type_style_index_0_lang-DLUfvRC_.js → CLModal.vue_vue_type_style_index_0_lang-DFQqYIGs.js} +1 -1
  7. package/dist/chunks/CLPill.vue_vue_type_style_index_0_lang-CY8F0FJJ.js +2 -0
  8. package/dist/chunks/{CLText.vue_vue_type_style_index_0_lang-CdA4TW0N.js → CLText.vue_vue_type_style_index_0_lang-DR2zoTEJ.js} +1 -1
  9. package/dist/chunks/{CLToast.vue_vue_type_style_index_0_lang-D7KGFx9t.js → CLToast.vue_vue_type_style_index_0_lang-DM_9Iykj.js} +1 -1
  10. package/dist/chunks/utils-DNuPk_OL.js +1 -0
  11. package/dist/components/Buttons/CLButton/CLButton.vue.d.ts +4 -4
  12. package/dist/components/CLTable/CLTable.js +1 -1
  13. package/dist/components/Containers/CLCard/CLCard.js +1 -1
  14. package/dist/components/Containers/CLCard/CLCard.vue.d.ts +2 -2
  15. package/dist/components/Containers/CLCarousel/CLCarousel.js +1 -1
  16. package/dist/components/Containers/CLCarousel/CLCarousel.vue.d.ts +1 -1
  17. package/dist/components/Containers/CLDisclosure/CLDisclosure.js +1 -1
  18. package/dist/components/Containers/CLDrawer/CLDrawer.vue.d.ts +2 -2
  19. package/dist/components/Form/CLCalendar/CLCalendar.css +1 -1
  20. package/dist/components/Form/CLCalendar/CLCalendar.js +1 -1
  21. package/dist/components/Form/CLCalendar/CLCalendar.vue.d.ts +14 -11
  22. package/dist/components/Form/CLCheckbox/CLCheckbox.js +1 -1
  23. package/dist/components/Form/CLCheckbox/CLCheckbox.vue.d.ts +3 -3
  24. package/dist/components/Form/CLInput/CLInput.js +1 -1
  25. package/dist/components/Form/CLInput/CLInput.vue.d.ts +3 -3
  26. package/dist/components/Form/CLInputDatePicker/CLInputDatePicker.js +1 -1
  27. package/dist/components/Form/CLInputDatePicker/CLInputDatePicker.vue.d.ts +25 -23
  28. package/dist/components/Form/CLInputTimePicker/CLInputTimePicker.js +1 -1
  29. package/dist/components/Form/CLInputTimePicker/CLInputTimePicker.vue.d.ts +10 -10
  30. package/dist/components/Form/CLInputTimePicker/index.d.ts +10 -10
  31. package/dist/components/Form/CLRadioButton/CLRadioButton.js +1 -1
  32. package/dist/components/Form/CLSelect/CLSelect.js +1 -1
  33. package/dist/components/Form/CLTextArea/CLTextArea.js +1 -1
  34. package/dist/components/Form/CLTimePicker/CLTimePicker.js +1 -1
  35. package/dist/components/Form/CLTimePicker/CLTimePicker.vue.d.ts +1 -1
  36. package/dist/components/Form/CLTimePicker/index.d.ts +1 -1
  37. package/dist/components/Indicators/CLBanner/CLBanner.js +1 -1
  38. package/dist/components/Indicators/CLBanner/CLBanner.vue.d.ts +2 -2
  39. package/dist/components/Indicators/CLPill/CLPill.css +1 -1
  40. package/dist/components/Indicators/CLPill/CLPill.js +1 -1
  41. package/dist/components/Indicators/CLProgress/CLProgress.js +1 -1
  42. package/dist/components/Loading/CLSkeleton/CLSkeleton.vue.d.ts +2 -2
  43. package/dist/components/Modals/CLModal/CLModal.js +1 -1
  44. package/dist/components/Modals/CLModal/CLModal.vue.d.ts +1 -1
  45. package/dist/components/Modals/CLModalDatePicker/CLModalDatePicker.js +1 -1
  46. package/dist/components/Modals/CLModalDatePicker/CLModalDatePicker.vue.d.ts +24 -18
  47. package/dist/components/Modals/CLModalTimePicker/CLModalTimePicker.js +1 -1
  48. package/dist/components/Modals/CLModalTimePicker/CLModalTimePicker.vue.d.ts +5 -5
  49. package/dist/components/Modals/CLModalTimePicker/index.d.ts +5 -5
  50. package/dist/components/Navigation/CLNavSection/CLNavSection.js +1 -1
  51. package/dist/components/Popups/CLDropdownMenu/CLDropdownMenu.js +1 -1
  52. package/dist/components/Popups/CLDropdownMenu/CLDropdownMenu.vue.d.ts +9 -9
  53. package/dist/components/Popups/CLToast/CLToast.js +1 -1
  54. package/dist/components/Popups/CLToast/CLToast.vue.d.ts +1 -1
  55. package/dist/components/Providers/CLToastProvider/CLToastProvider.js +1 -1
  56. package/dist/components/Typography/CLHeading/CLHeading.js +1 -1
  57. package/dist/components/Typography/CLText/CLText.js +1 -1
  58. package/dist/composables/useDatePicker.d.ts +31 -21
  59. package/dist/composables/useDatePicker.js +1 -1
  60. package/dist/composables/useTheme.js +1 -1
  61. package/dist/index.d.ts +1 -1
  62. package/dist/styles.css +1 -1
  63. package/dist/types.d.ts +1 -0
  64. package/package.json +1 -1
  65. package/dist/chunks/CLCalendar.vue_vue_type_style_index_0_lang-PiGGhTHo.js +0 -2
  66. package/dist/chunks/CLPill.vue_vue_type_style_index_0_lang-BjrbTAI3.js +0 -2
  67. package/dist/chunks/utils-BfamOHei.js +0 -1
package/dist/types.d.ts CHANGED
@@ -36,3 +36,4 @@ export type CLInlineTextHtmlTags = 'a' | 'abbr' | 'b' | 'bdi' | 'bdo' | 'br' | '
36
36
  export type CLTextHtmlTags = CLBlockTextHtmlTags | CLInlineTextHtmlTags;
37
37
  export interface CLToastProps extends CLBaseToastProps {
38
38
  }
39
+ export type { CLAllowedDates, CLCalendarCell, CLISODate } from './composables/useDatePicker';
package/package.json CHANGED
@@ -17,7 +17,7 @@
17
17
  "ui components",
18
18
  "vuejs"
19
19
  ],
20
- "version": "5.16.0",
20
+ "version": "5.17.1",
21
21
  "license": "MIT",
22
22
  "type": "module",
23
23
  "unpkg": "dist/callaloo.global.js",
@@ -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 s,createElementBlock as o,openBlock as n,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 h,renderList as b,createBlock as g,createCommentVNode as D}from"vue";import{_ as k}from"./CLButton.vue_vue_type_style_index_0_lang-pE0JrYmS.js";import{_ as x}from"./CLText.vue_vue_type_style_index_0_lang-CdA4TW0N.js";import{a as z,c as w,e as C,f as S,h as $,d as L,b as j,i as M}from"./index-DsloP0ml.js";import{c as T}from"./utils-jYeghjKF.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=>({v5d82e3ae: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,isDraftSameDay:ae,isDraftStart:le,isInDraftRange:te,onDayClick:ie,weekDays:de}=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}),s(()=>{Z()});return a({apply:()=>{O.value=U.value,A.value=Q.value,V.value={end:A.value,start:O.value}},cancel:()=>{H()},draftEnd:Q,draftStart:U,initializeDraft:Z,reset:()=>{J(),O.value=null,A.value=null,V.value=null}}),(a,l)=>(n(),o("div",{class:c([N,e.fluid?`${N}__fluid`:""]),"data-testid":e.testId,style:u(p(T)(p(I)))},[f("div",{class:c(`${N}__header`)},[v(p(k),{"aria-label":"Previous month","border-radius":p($).Full,"icon-before":p(S).ChevronLeft,"icon-size":p(C).Tiny,"on-click":p(Y),size:p(w).Tiny,variant:p(z).Ghost,height:"32px",width:"32px",wrap:""},null,8,["border-radius","icon-before","icon-size","on-click","size","variant"]),v(p(x),{type:p(L).Medium,medium:""},{default:m(()=>[y(_(p(K)),1)]),_:1},8,["type"]),v(p(k),{"aria-label":"Next month","border-radius":p($).Full,"icon-before":p(S).ChevronRight,"icon-size":p(C).Tiny,"on-click":p(X),size:p(w).Tiny,variant:p(z).Ghost,height:"32px",width:"32px",wrap:""},null,8,["border-radius","icon-before","icon-size","on-click","size","variant"])],2),f("div",{class:c(`${N}__grid`)},[(n(!0),o(h,null,b(p(de),e=>(n(),o("div",{key:e,class:c(`${N}__weekday`)},[v(p(x),{align:p(M).Center,color:p(j).Neutral,type:p(L).Small},{default:m(()=>[y(_(e),1)]),_:2},1032,["align","color","type"])],2))),128)),(n(!0),o(h,null,b(p(q),(a,l)=>(n(),o("div",{key:a.date??`pad-${l}`,class:c([`${N}__cell`,a.isOutsideMonth?`${N}__cell--outside`:"",a.date&&p(ae)(a.date)?`${N}__cell--same-day`:""])},[a.day&&a.date?(n(),g(p(k),{key:0,"aria-label":p(W)(a.date),"border-radius":p($).Full,color:p(le)(a.date)||p(ee)(a.date)?e.color:p(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||(ie(e),F("date-select",e))})(a.date,e),variant:p(le)(a.date)||p(ee)(a.date)?p(z).Solid:p(te)(a.date)?p(z).Soft:p(z).Ghost,wrap:""},{default:m(()=>[y(_(a.day),1)]),_:2},1032,["aria-label","border-radius","color","disabled","size","on-click","variant"])):D("",!0)],2))),128))],2)],14,R))}});export{E as _};
@@ -1,2 +0,0 @@
1
- import '../components/Indicators/CLPill/CLPill.css';
2
- import{defineComponent as e,computed as l,createElementBlock as a,openBlock as n,normalizeStyle as s,normalizeClass as o,unref as i,createCommentVNode as t,createBlock as d,createVNode as c,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-pE0JrYmS.js";import{_ as y}from"./CLIcon.vue_vue_type_style_index_0_lang-BmRKmzSl.js";import{_ as f}from"./CLText.vue_vue_type_style_index_0_lang-CdA4TW0N.js";import{a as v,b as k,e as b,d as $,f as C}from"./index-DsloP0ml.js";import{p as z}from"./utils-D0LERx2k.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)=>(n(),a("div",{"data-testid":e.testId,class:o(i(D)),style:s(i(z)({color:e.color,variant:e.variant}))},[e.onClick||e.onDismiss?t("",!0):(n(),a("span",{key:0,class:o(`${k}__container`)},[e.icon?(n(),d(i(y),{key:0,filled:e.iconFilled,name:e.icon,size:i(b).Tiny},null,8,["filled","name","size"])):t("",!0),c(i(f),{as:"span",type:i($).Small,truncate:""},{default:r(()=>[u(_(e.label),1)]),_:1},8,["type"]),e.count?(n(),a("span",{key:1,class:o(`${k}__count`)},_(e.count),3)):t("",!0)],2)),e.onClick&&!e.dismissable?(n(),d(i(p),{key:1,color:e.color,"on-click":e.onClick,variant:e.variant,pill:"",rounded:e.rounded},{default:r(()=>[m("span",{class:o(`${k}__button`)},[e.icon?(n(),d(i(y),{key:0,filled:e.iconFilled,name:e.icon,size:i(b).Tiny},null,8,["filled","name","size"])):t("",!0),c(i(f),{as:"span",type:i($).Small,truncate:""},{default:r(()=>[u(_(e.label),1)]),_:1},8,["type"]),e.count?(n(),a("span",{key:1,class:o(`${k}__count`)},_(e.count),3)):t("",!0),e.dismissable?(n(),d(i(y),{key:2,name:i(C).Delete,size:i(b).Tiny},null,8,["name","size"])):t("",!0)],2)]),_:1},8,["color","on-click","variant","rounded"])):t("",!0),e.onDismiss&&e.dismissable?(n(),d(i(p),{key:2,color:e.color,"on-click":e.onDismiss,variant:e.variant,pill:"",rounded:e.rounded},{default:r(()=>[m("span",{class:o(`${k}__button`)},[c(i(f),{as:"span",type:i($).Small,truncate:""},{default:r(()=>[u(_(e.label),1)]),_:1},8,["type"]),e.dismissable?(n(),d(i(y),{key:0,name:i(C).Delete,size:i(b).Tiny},null,8,["name","size"])):t("",!0)],2)]),_:1},8,["color","on-click","variant","rounded"])):t("",!0)],14,x))}});export{D as _};
@@ -1 +0,0 @@
1
- import{C as o,g as e,a as r,b as t}from"./index-DsloP0ml.js";import{useTheme as a}from"../composables/useTheme.js";const s=({color:s=t.Neutral,theme:l})=>{const{colors:c,darkMode:m}=l??a(),i=m.value?o.Dark:o.Light,n=e({color:s,colors:c.value,mode:i,variant:r.Text});return{"--clll-text-color":n?.textBody??"inherit"}};export{s as t};