@codeandfunction/callaloo 5.16.0 → 5.17.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/CLCalendar.vue_vue_type_style_index_0_lang-DUc5dHAZ.js +2 -0
- package/dist/components/Buttons/CLButton/CLButton.vue.d.ts +4 -4
- package/dist/components/Containers/CLCard/CLCard.vue.d.ts +2 -2
- package/dist/components/Containers/CLCarousel/CLCarousel.vue.d.ts +1 -1
- package/dist/components/Containers/CLDrawer/CLDrawer.vue.d.ts +2 -2
- package/dist/components/Form/CLCalendar/CLCalendar.css +1 -1
- package/dist/components/Form/CLCalendar/CLCalendar.js +1 -1
- package/dist/components/Form/CLCalendar/CLCalendar.vue.d.ts +14 -11
- package/dist/components/Form/CLCheckbox/CLCheckbox.vue.d.ts +3 -3
- package/dist/components/Form/CLInput/CLInput.vue.d.ts +3 -3
- package/dist/components/Form/CLInputDatePicker/CLInputDatePicker.js +1 -1
- package/dist/components/Form/CLInputDatePicker/CLInputDatePicker.vue.d.ts +25 -23
- package/dist/components/Form/CLInputTimePicker/CLInputTimePicker.vue.d.ts +10 -10
- package/dist/components/Form/CLInputTimePicker/index.d.ts +10 -10
- package/dist/components/Form/CLTimePicker/CLTimePicker.vue.d.ts +1 -1
- package/dist/components/Form/CLTimePicker/index.d.ts +1 -1
- package/dist/components/Indicators/CLBanner/CLBanner.vue.d.ts +2 -2
- package/dist/components/Loading/CLSkeleton/CLSkeleton.vue.d.ts +2 -2
- 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 +24 -18
- package/dist/components/Modals/CLModalTimePicker/CLModalTimePicker.vue.d.ts +5 -5
- package/dist/components/Modals/CLModalTimePicker/index.d.ts +5 -5
- package/dist/components/Popups/CLDropdownMenu/CLDropdownMenu.vue.d.ts +9 -9
- package/dist/components/Popups/CLToast/CLToast.vue.d.ts +1 -1
- package/dist/composables/useDatePicker.d.ts +31 -21
- package/dist/composables/useDatePicker.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/styles.css +1 -1
- package/dist/types.d.ts +1 -0
- package/package.json +1 -1
- package/dist/chunks/CLCalendar.vue_vue_type_style_index_0_lang-PiGGhTHo.js +0 -2
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
|
@@ -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 _};
|