@codeandfunction/callaloo 5.9.0 → 5.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/dist/callaloo.global.js +1 -1
- package/dist/chunks/{CLA11yButton.vue_vue_type_style_index_0_lang-f1fPKzcG.js → CLA11yButton.vue_vue_type_style_index_0_lang-DmZZOodW.js} +1 -1
- package/dist/chunks/{CLButton.vue_vue_type_style_index_0_lang-CjZJuMsj.js → CLButton.vue_vue_type_style_index_0_lang-C4FnlILR.js} +1 -1
- package/dist/chunks/CLCalendar.vue_vue_type_style_index_0_lang-DcHQwUiD.js +2 -0
- package/dist/chunks/{CLCard.vue_vue_type_style_index_0_lang-DbPAZNtp.js → CLCard.vue_vue_type_style_index_0_lang-BipF7MT1.js} +1 -1
- package/dist/chunks/{CLFormCharCounter.vue_vue_type_style_index_0_lang-BI9KcBgN.js → CLFormCharCounter.vue_vue_type_style_index_0_lang-FFNlcIuE.js} +1 -1
- package/dist/chunks/{CLFormLabel.vue_vue_type_script_setup_true_lang-CAHC-mI7.js → CLFormLabel.vue_vue_type_script_setup_true_lang-D7aTnF1Y.js} +1 -1
- package/dist/chunks/{CLHeading.vue_vue_type_style_index_0_lang-8r8ehDQf.js → CLHeading.vue_vue_type_style_index_0_lang-BkfH2FiT.js} +1 -1
- package/dist/chunks/{CLIcon.vue_vue_type_style_index_0_lang-7-UT438b.js → CLIcon.vue_vue_type_style_index_0_lang-C21socAp.js} +1 -1
- package/dist/chunks/{CLInputMessages.vue_vue_type_style_index_0_lang-BJ_Y2usB.js → CLInputMessages.vue_vue_type_style_index_0_lang-DMZJm-t4.js} +1 -1
- package/dist/chunks/{CLLink.vue_vue_type_style_index_0_lang-BoZjt2Xh.js → CLLink.vue_vue_type_style_index_0_lang-Dfcq8WIX.js} +1 -1
- package/dist/chunks/{CLModal.vue_vue_type_style_index_0_lang-vUfynvl2.js → CLModal.vue_vue_type_style_index_0_lang-CZzQ8wCU.js} +1 -1
- package/dist/chunks/{CLNavLink.vue_vue_type_script_setup_true_lang-grTk84C0.js → CLNavLink.vue_vue_type_script_setup_true_lang-BDDQvo5I.js} +1 -1
- package/dist/chunks/{CLPill.vue_vue_type_style_index_0_lang-j0AHu53P.js → CLPill.vue_vue_type_style_index_0_lang-CoaDiJJy.js} +1 -1
- package/dist/chunks/{CLSkeleton.vue_vue_type_style_index_0_lang-BwASexqS.js → CLSkeleton.vue_vue_type_style_index_0_lang-_qLiUhKp.js} +1 -1
- package/dist/chunks/{CLSpinner.vue_vue_type_style_index_0_lang-C0jwsD1v.js → CLSpinner.vue_vue_type_style_index_0_lang-BUtkZagF.js} +1 -1
- package/dist/chunks/{CLText.vue_vue_type_style_index_0_lang-CkTc30tw.js → CLText.vue_vue_type_style_index_0_lang-BfbUuVfZ.js} +1 -1
- package/dist/chunks/{CLToast.vue_vue_type_style_index_0_lang-Dw2Am9xs.js → CLToast.vue_vue_type_style_index_0_lang-CwaPbZ_K.js} +1 -1
- package/dist/chunks/{index-ojQDOR8H.js → index-C9S3C1LU.js} +1 -1
- package/dist/chunks/{index-C_yUYGq9.js → index-CGlfDAYR.js} +1 -1
- package/dist/chunks/utils-B5AOZV7T.js +1 -0
- package/dist/chunks/{utils-CpKbjET1.js → utils-BrVlb7BP.js} +1 -1
- package/dist/chunks/{utils-5Vh8KJC-.js → utils-CQ3b50lb.js} +1 -1
- package/dist/chunks/{utils-DqMdkofF.js → utils-Dd3hXwRa.js} +1 -1
- package/dist/chunks/{utils-MGg9IN4I.js → utils-OYa6vYYI.js} +1 -1
- package/dist/chunks/{utils-BTCQeV7Y.js → utils-iQnJybN9.js} +1 -1
- package/dist/components/Buttons/CLA11yButton/CLA11yButton.js +1 -1
- package/dist/components/Buttons/CLButton/CLButton.js +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.js +1 -1
- package/dist/components/Containers/CLDisclosure/CLDisclosure.js +1 -1
- package/dist/components/Containers/CLDrawer/CLDrawer.css +1 -1
- package/dist/components/Containers/CLDrawer/CLDrawer.js +1 -1
- package/dist/components/Containers/CLDrawer/CLDrawer.vue.d.ts +6 -0
- 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/CLInputTimePicker/CLInputTimePicker.css +1 -0
- package/dist/components/Form/CLInputTimePicker/CLInputTimePicker.js +3 -0
- package/dist/components/Form/CLInputTimePicker/CLInputTimePicker.vue.d.ts +249 -0
- package/dist/components/Form/CLInputTimePicker/index.d.ts +199 -0
- 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/Form/CLTimePicker/CLTimePicker.css +1 -0
- package/dist/components/Form/CLTimePicker/CLTimePicker.js +3 -0
- package/dist/components/Form/CLTimePicker/CLTimePicker.vue.d.ts +50 -0
- package/dist/components/Form/CLTimePicker/index.d.ts +33 -0
- package/dist/components/Form/index.d.ts +2 -0
- package/dist/components/Form/utils.d.ts +10 -0
- 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/CLModalDatePicker/CLModalDatePicker.js +1 -1
- package/dist/components/Modals/CLModalTimePicker/CLModalTimePicker.css +1 -0
- package/dist/components/Modals/CLModalTimePicker/CLModalTimePicker.js +3 -0
- package/dist/components/Modals/CLModalTimePicker/CLModalTimePicker.vue.d.ts +128 -0
- package/dist/components/Modals/CLModalTimePicker/index.d.ts +90 -0
- package/dist/components/Modals/index.d.ts +2 -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/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/composables/index.d.ts +2 -0
- package/dist/composables/useDatePicker.d.ts +1 -0
- package/dist/composables/useDatePicker.js +1 -1
- package/dist/composables/useTheme.js +1 -1
- package/dist/composables/useTimeInputMask.d.ts +6 -0
- package/dist/composables/useTimeInputMask.js +2 -0
- package/dist/composables/useTimePicker.d.ts +24 -0
- package/dist/composables/useTimePicker.js +2 -0
- package/dist/index.cdn.d.ts +6 -1
- package/dist/index.js +1 -1
- package/dist/styles.css +1 -1
- package/package.json +17 -2
- package/dist/chunks/CLCalendar.vue_vue_type_style_index_0_lang-bEkt9DYK.js +0 -2
- package/dist/chunks/utils-B8oj25O0.js +0 -1
package/package.json
CHANGED
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"ui components",
|
|
18
18
|
"vuejs"
|
|
19
19
|
],
|
|
20
|
-
"version": "5.
|
|
20
|
+
"version": "5.11.0",
|
|
21
21
|
"license": "MIT",
|
|
22
22
|
"type": "module",
|
|
23
23
|
"unpkg": "dist/callaloo.global.js",
|
|
@@ -82,6 +82,10 @@
|
|
|
82
82
|
"types": "./dist/components/Form/CLInputDatePicker/CLInputDatePicker.vue.d.ts",
|
|
83
83
|
"import": "./dist/components/Form/CLInputDatePicker/CLInputDatePicker.js"
|
|
84
84
|
},
|
|
85
|
+
"./CLInputTimePicker": {
|
|
86
|
+
"types": "./dist/components/Form/CLInputTimePicker/CLInputTimePicker.vue.d.ts",
|
|
87
|
+
"import": "./dist/components/Form/CLInputTimePicker/CLInputTimePicker.js"
|
|
88
|
+
},
|
|
85
89
|
"./CLRadioButton": {
|
|
86
90
|
"types": "./dist/components/Form/CLRadioButton/CLRadioButton.vue.d.ts",
|
|
87
91
|
"import": "./dist/components/Form/CLRadioButton/CLRadioButton.js"
|
|
@@ -94,6 +98,10 @@
|
|
|
94
98
|
"types": "./dist/components/Form/CLTextArea/CLTextArea.vue.d.ts",
|
|
95
99
|
"import": "./dist/components/Form/CLTextArea/CLTextArea.js"
|
|
96
100
|
},
|
|
101
|
+
"./CLTimePicker": {
|
|
102
|
+
"types": "./dist/components/Form/CLTimePicker/CLTimePicker.vue.d.ts",
|
|
103
|
+
"import": "./dist/components/Form/CLTimePicker/CLTimePicker.js"
|
|
104
|
+
},
|
|
97
105
|
"./CLBadge": {
|
|
98
106
|
"types": "./dist/components/Indicators/CLBadge/CLBadge.vue.d.ts",
|
|
99
107
|
"import": "./dist/components/Indicators/CLBadge/CLBadge.js"
|
|
@@ -126,6 +134,10 @@
|
|
|
126
134
|
"types": "./dist/components/Modals/CLModalDatePicker/CLModalDatePicker.vue.d.ts",
|
|
127
135
|
"import": "./dist/components/Modals/CLModalDatePicker/CLModalDatePicker.js"
|
|
128
136
|
},
|
|
137
|
+
"./CLModalTimePicker": {
|
|
138
|
+
"types": "./dist/components/Modals/CLModalTimePicker/CLModalTimePicker.vue.d.ts",
|
|
139
|
+
"import": "./dist/components/Modals/CLModalTimePicker/CLModalTimePicker.js"
|
|
140
|
+
},
|
|
129
141
|
"./CLLink": {
|
|
130
142
|
"types": "./dist/components/Navigation/CLLink/CLLink.vue.d.ts",
|
|
131
143
|
"import": "./dist/components/Navigation/CLLink/CLLink.js"
|
|
@@ -263,6 +275,9 @@
|
|
|
263
275
|
"test": "vitest --run --passWithNoTests",
|
|
264
276
|
"test:watch": "vitest",
|
|
265
277
|
"test:ui": "vitest --ui --coverage",
|
|
266
|
-
"test:storybook": "test-storybook --url http://127.0.0.1:4400"
|
|
278
|
+
"test:storybook": "test-storybook --url http://127.0.0.1:4400",
|
|
279
|
+
"typecheck": "vue-tsc --noEmit -p tsconfig.lib.json",
|
|
280
|
+
"typecheck:storybook": "vue-tsc --noEmit -p tsconfig.storybook.json",
|
|
281
|
+
"typecheck:all": "pnpm typecheck && pnpm typecheck:storybook"
|
|
267
282
|
}
|
|
268
283
|
}
|
|
@@ -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 k}from"vue";import{_ as x}from"./CLButton.vue_vue_type_style_index_0_lang-CjZJuMsj.js";import{_ as z}from"./CLText.vue_vue_type_style_index_0_lang-CkTc30tw.js";import{c as D,C,e as w,f as S,h as L,a as $,d as j,i as M}from"./index-C_yUYGq9.js";import{c as T}from"./utils-B8oj25O0.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=>({v531731c4: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}),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(x),{"aria-label":"Previous month","border-radius":p(L).Full,"icon-before":p(S).ChevronLeft,"icon-size":p(w).Tiny,"on-click":p(Y),size:p(C).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(w).Tiny,"on-click":p(X),size:p(C).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`)},[(n(!0),o(h,null,b(p(ie),e=>(n(),o("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)),(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.day&&a.date?(n(),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(C).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 +0,0 @@
|
|
|
1
|
-
import{b as l,c as e,g as r}from"./index-C_yUYGq9.js";import{useTheme as t}from"../composables/useTheme.js";const a=({color:a,variant:c,theme:o})=>{const{colors:s,darkMode:i}=o??t(),d=i.value?l.Dark:l.Light,u=c===e.Ghost,b=r({color:a,colors:s.value,mode:d,variant:e.Solid}),p=r({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,g=p?.focus,f=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":g??"transparent","--clll-checkbox-focus-shadow":f??"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??t())??"red"}},c=({color:a,variant:c,theme:o})=>{const{colors:s,darkMode:i}=o??t(),d=i.value?l.Dark:l.Light,u=c===e.Ghost,b=r({color:a,colors:s.value,mode:d,variant:e.Solid}),p=r({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,g=i.value?"black":b?.textDisabled,f=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":g??"transparent","--clll-input-readonly-border":x??"transparent","--clll-input-readonly-bg":g??"transparent","--clll-input-focus-border":f??"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??t())??"red"}},o=({color:a,theme:c})=>{const{colors:o,darkMode:s}=c??t(),n=s.value?l.Dark:l.Light,i=r({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??t(),d=i.value?l.Dark:l.Light,u=c===e.Ghost,b=r({color:a,colors:s.value,mode:d,variant:e.Solid}),p=r({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,g=p?.focus,f=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":g??"transparent","--clll-select-focus-shadow":f??"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??t())??"red"}},n=l=>{const{colors:e,darkMode:r}=l??t();return r.value?e.value.danger?.[400]:e.value.danger?.[700]},i=l=>{const{darkMode:e}=l??t();return{"--clll-calendar-content-bg":e.value?"black":"white"}};export{a,o as b,i as c,c as i,s};
|