@cleartrip/ct-design-calendar-desktop 2.21.0-SNAPSHOT-rnwStable4Dec25.0 → 2.21.0-SNAPSHOT-header-holiday-v1.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.
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";var e=require("tslib"),t=require("react/jsx-runtime"),r=require("react-day-picker"),n=require("react"),i=require("@cleartrip/ct-design-theme"),o=require("@cleartrip/ct-design-container"),s=require("@cleartrip/ct-design-typography"),a=require("@cleartrip/ct-design-common-utils"),l=require("@cleartrip/ct-design-common-constants");function d(e){return e&&e.__esModule?e:{default:e}}var c=d(require("dayjs"));function u(r){return t.jsx("svg",e.__assign({viewBox:"0 0 20 20"},r,{children:t.jsx("path",{d:"M10.869 2l6.916 7.446a.821.821 0 01.077 1.01l-.077.098L10.869 18l-1.106-1.108 5.67-6.106-13.43.02L2 9.21l13.414-.02-5.65-6.082L10.868 2z",fill:"currentColor",fillRule:"nonzero"})}))}function f(r){return t.jsx("svg",e.__assign({viewBox:"0 0 20 20"},r,{children:t.jsx("path",{d:"M9.131 2L2.215 9.446a.821.821 0 00-.077 1.01l.077.098L9.131 18l1.106-1.108-5.67-6.106 13.43.02L18 9.21 4.586 9.19l5.65-6.082L9.132 2z",fill:"currentColor",fillRule:"nonzero"})}))}function g(n){var s=r.useDayPicker(),a=s.locale,l=s.formatters.formatCaption,d=i.useTheme(),g=r.useNavigation(),h=g.goToMonth,p=g.nextMonth,m=g.previousMonth,y=g.displayMonths,x=y.findIndex(
|
|
1
|
+
"use strict";var e=require("tslib"),t=require("react/jsx-runtime"),r=require("react-day-picker"),n=require("react"),i=require("@cleartrip/ct-design-theme"),o=require("@cleartrip/ct-design-container"),s=require("@cleartrip/ct-design-typography"),a=require("@cleartrip/ct-design-common-utils"),l=require("@cleartrip/ct-design-common-constants");function d(e){return e&&e.__esModule?e:{default:e}}var c=d(require("dayjs"));function u(r){return t.jsx("svg",e.__assign({viewBox:"0 0 20 20"},r,{children:t.jsx("path",{d:"M10.869 2l6.916 7.446a.821.821 0 01.077 1.01l-.077.098L10.869 18l-1.106-1.108 5.67-6.106-13.43.02L2 9.21l13.414-.02-5.65-6.082L10.868 2z",fill:"currentColor",fillRule:"nonzero"})}))}function f(r){return t.jsx("svg",e.__assign({viewBox:"0 0 20 20"},r,{children:t.jsx("path",{d:"M9.131 2L2.215 9.446a.821.821 0 00-.077 1.01l.077.098L9.131 18l1.106-1.108-5.67-6.106 13.43.02L18 9.21 4.586 9.19l5.65-6.082L9.132 2z",fill:"currentColor",fillRule:"nonzero"})}))}function g(n){var s=r.useDayPicker(),a=s.locale,l=s.formatters.formatCaption,d=i.useTheme(),g=r.useNavigation(),h=g.goToMonth,p=g.nextMonth,m=g.previousMonth,y=g.displayMonths,x=y.findIndex(function(e){return c.default(n.displayMonth).isSame(e)}),_=0===x,j=x===y.length-1;return t.jsxs(o.Container,e.__assign({display:"flex",flexDirection:"row"},{children:[_?t.jsx(o.Container,e.__assign({display:"flex",css:{textAlign:"left"}},{children:t.jsx(o.Container,e.__assign({display:"flex",flexDirection:"row",justifyContent:"center"},{children:t.jsx(f,{"data-testid":"leftArrow",height:20,width:20,className:"c-pointer c-neutral-900",onClick:function(){m&&h(m)}})}))})):t.jsx(o.Container,{display:"flex",width:"100%",css:{textAlign:"left"}}),t.jsx(o.Container,e.__assign({display:"flex",justifyContent:"center",width:"100%",css:{fontWeight:500}},{children:l(n.displayMonth,{locale:a})})),t.jsx(o.Container,e.__assign({display:"flex",justifyContent:"flex-end",alignItems:"center",css:{textAlign:"right"}},{children:j&&t.jsx(u,{disabled:!p,"data-testid":"rightArrow",height:20,width:20,style:{alignSelf:"flex-end",color:d.color.text.primary},className:"c-pointer",onClick:function(){p&&h(p)}})}))]}))}var h="react_day_picker_desktop";exports.CalendarDesktop=function(d){var c=d.onDateSelect,u=d.selectedDays,f=d.noOfMonths,p=d.mode,m=d.footer,y=d.customHeader,x=d.disabledDays,_=d.fromMonth,j=d.toDate,C=d.defaultMonth,k=d.onDateClick,M=i.useTheme(),v=function(r){var n=r.getDay();return t.jsx(s.Typography,e.__assign({variant:"B3",colorCode:n>0&&n<6?"#808080":"#C83232"},{children:l.WEEK_DAY_LABEL[n]}))},N=function(e){return e-1},D=n.useMemo(function(){return{"--rdp-accent-color":a.getNestedField(["color","calendar","selected"],M),"--rdp-outline":"1.5px solid ".concat(a.getNestedField(["color","calendar","accent"],M)),"--rdp-selected-range-color":a.getNestedField(["color","calendar","background"],M),"--rdp-day-borderRadius-custom":a.getNestedField(["size","10"],M),"--rdp-day-size":a.getNestedField(["size","11"],M),"--rdp-day-width-custom":a.getNestedField(["size","11"],M),"--rdp-day-height-custom":a.getNestedField(["size","11"],M),"--rdp-day-font-size":a.getNestedField(["typography","size","16"],M),"--rdp-day-font-weight":a.getNestedField(["typography","weight","semibold"],M)}},[M,a.getNestedField]);n.useEffect(function(){var e=document.getElementById(h);e&&Object.keys(D).forEach(function(t){var r;null===(r=null==e?void 0:e.style)||void 0===r||r.setProperty(t,D[t])})},[]);return t.jsx(o.Container,e.__assign({display:"flex",alignItems:"center"},{children:function(){switch(p){case"single":case"multiple":return t.jsx(r.DayPicker,{id:h,numberOfMonths:f,mode:p,selected:u,onSelect:c,disabled:x,components:{Caption:y||g},footer:m,fromMonth:_,toDate:j,formatters:{formatWeekdayName:v,formatWeekNumber:N},defaultMonth:C,ISOWeek:!0});case"range":return t.jsx(r.DayPicker,{id:h,numberOfMonths:f,mode:p,selected:u,onDayClick:k,onSelect:c,disabled:x,components:{Caption:y||g},footer:m,fromMonth:_,toDate:j,formatters:{formatWeekdayName:v,formatWeekNumber:N},defaultMonth:C,ISOWeek:!0})}}()}))};
|
|
2
2
|
//# sourceMappingURL=ct-design-calendar-desktop.browser.cjs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ct-design-calendar-desktop.browser.cjs.js","sources":["../packages/components/CalendarDesktop/src/icons/Arrows.tsx","../packages/components/CalendarDesktop/src/Caption.tsx","../packages/components/CalendarDesktop/src/CalendarDesktop.tsx"],"sourcesContent":[null,null,null],"names":["RightArrow","props","_jsx","viewBox","children","d","fill","fillRule","LeftArrow","Caption","_a","useDayPicker","locale","formatCaption","formatters","theme","useTheme","_b","useNavigation","goToMonth","nextMonth","previousMonth","displayMonths","displayIndex","findIndex","month","dayjs","displayMonth","isSame","isFirst","isLast","length","_jsxs","Container","__assign","display","flexDirection","css","textAlign","jsx","justifyContent","height","width","className","onClick","fontWeight","alignItems","disabled","style","alignSelf","color","text","primary","CALENDAR_ROOT_ID","onDateSelect","selectedDays","noOfMonths","mode","footer","customHeader","disabledDays","fromMonth","toDate","defaultMonth","onDateClick","formatWeekdayName","date","day","getDay","Typography","variant","colorCode","WEEK_DAY_LABEL","formatWeekNumber","weekNumber","styleConfigurableVariables","useMemo","getNestedField","concat","useEffect","calendarElement","document","getElementById","Object","keys","forEach","styleVar","setProperty","DayPicker","id","numberOfMonths","selected","onSelect","components","ISOWeek","onDayClick","renderCalendar"],"mappings":"oaAAM,SAAUA,EAAWC,GACzB,OACEC,wBAAKC,QAAQ,aAAgBF,EAC3B,CAAAG,SAAAF,EAAAA,IAAA,OAAA,CACEG,EAAE,2IACFC,KAAK,eACLC,SAAS,cAIjB,CAEM,SAAUC,EAAUP,GACxB,OACEC,wBAAKC,QAAQ,aAAgBF,EAC3B,CAAAG,SAAAF,EAAAA,IAAA,OAAA,CACEG,EAAE,wIACFC,KAAK,eACLC,SAAS,cAIjB,CCbM,SAAUE,EAAQR,GAChB,IAAAS,EAGFC,iBAFFC,EAAMF,EAAAE,OACQC,EAAaH,EAAAI,WAAAD,cAEvBE,EAAQC,EAAAA,WAERC,EAAyDC,EAAAA,gBAAvDC,EAASF,EAAAE,UAAEC,EAASH,EAAAG,UAAEC,EAAaJ,EAAAI,cAAEC,kBACvCC,EAAeD,EAAcE,
|
|
1
|
+
{"version":3,"file":"ct-design-calendar-desktop.browser.cjs.js","sources":["../packages/components/CalendarDesktop/src/icons/Arrows.tsx","../packages/components/CalendarDesktop/src/Caption.tsx","../packages/components/CalendarDesktop/src/CalendarDesktop.tsx"],"sourcesContent":[null,null,null],"names":["RightArrow","props","_jsx","viewBox","children","d","fill","fillRule","LeftArrow","Caption","_a","useDayPicker","locale","formatCaption","formatters","theme","useTheme","_b","useNavigation","goToMonth","nextMonth","previousMonth","displayMonths","displayIndex","findIndex","month","dayjs","displayMonth","isSame","isFirst","isLast","length","_jsxs","Container","__assign","display","flexDirection","css","textAlign","jsx","justifyContent","height","width","className","onClick","fontWeight","alignItems","disabled","style","alignSelf","color","text","primary","CALENDAR_ROOT_ID","onDateSelect","selectedDays","noOfMonths","mode","footer","customHeader","disabledDays","fromMonth","toDate","defaultMonth","onDateClick","formatWeekdayName","date","day","getDay","Typography","variant","colorCode","WEEK_DAY_LABEL","formatWeekNumber","weekNumber","styleConfigurableVariables","useMemo","getNestedField","concat","useEffect","calendarElement","document","getElementById","Object","keys","forEach","styleVar","setProperty","DayPicker","id","numberOfMonths","selected","onSelect","components","ISOWeek","onDayClick","renderCalendar"],"mappings":"oaAAM,SAAUA,EAAWC,GACzB,OACEC,wBAAKC,QAAQ,aAAgBF,EAC3B,CAAAG,SAAAF,EAAAA,IAAA,OAAA,CACEG,EAAE,2IACFC,KAAK,eACLC,SAAS,cAIjB,CAEM,SAAUC,EAAUP,GACxB,OACEC,wBAAKC,QAAQ,aAAgBF,EAC3B,CAAAG,SAAAF,EAAAA,IAAA,OAAA,CACEG,EAAE,wIACFC,KAAK,eACLC,SAAS,cAIjB,CCbM,SAAUE,EAAQR,GAChB,IAAAS,EAGFC,iBAFFC,EAAMF,EAAAE,OACQC,EAAaH,EAAAI,WAAAD,cAEvBE,EAAQC,EAAAA,WAERC,EAAyDC,EAAAA,gBAAvDC,EAASF,EAAAE,UAAEC,EAASH,EAAAG,UAAEC,EAAaJ,EAAAI,cAAEC,kBACvCC,EAAeD,EAAcE,UAAU,SAACC,GAAU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EAAE,IAsEH,OACEpF,EAACqC,IAAAN,EAASA,UAACC,WAAA,CAAAC,QAAQ,OAAOW,WAAW,UAClC,CAAA1C,SAtEkB,WACrB,OAAQqD,GACN,IAAK,SAoBL,IAAK,WACH,OACEvD,EAAAA,IAACsF,EAAAA,UAAS,CACRC,GAAIpC,EACJqC,eAAgBlC,EAChBC,KAAMA,EACNkC,SAAUpC,EACVqC,SAAUtC,EACVP,SAAUa,EACViC,WAAY,CACVpF,QAASkD,GAAgBlD,GAE3BiD,OAAQA,EACRG,UAAWA,EACXC,OAAQA,EACRhD,WAAY,CAAEmD,kBAAiBA,EAAEQ,iBAAgBA,GACjDV,aAAcA,EACd+B,SAAO,IAGb,IAAK,QACH,OACE5F,EAAAA,IAACsF,EAAAA,UAAS,CACRC,GAAIpC,EACJqC,eAAgBlC,EAChBC,KAAMA,EACNkC,SAAUpC,EACVwC,WAAY/B,EACZ4B,SAAUtC,EACVP,SAAUa,EACViC,WAAY,CACVpF,QAASkD,GAAgBlD,GAE3BiD,OAAQA,EACRG,UAAWA,EACXC,OAAQA,EACRhD,WAAY,CAAEmD,kBAAiBA,EAAEQ,iBAAgBA,GACjDV,aAAcA,EACd+B,SAAO,IAMjB,CAIKE,KAGP"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__assign as e}from"tslib";import{jsx as t,jsxs as o}from"react/jsx-runtime";import{useDayPicker as r,useNavigation as n,DayPicker as i}from"react-day-picker";import{useMemo as l,useEffect as a}from"react";import{useTheme as c}from"@cleartrip/ct-design-theme";import{Container as d}from"@cleartrip/ct-design-container";import{Typography as s}from"@cleartrip/ct-design-typography";import{getNestedField as f}from"@cleartrip/ct-design-common-utils";import{WEEK_DAY_LABEL as m}from"@cleartrip/ct-design-common-constants";import p from"dayjs";function u(o){return t("svg",e({viewBox:"0 0 20 20"},o,{children:t("path",{d:"M10.869 2l6.916 7.446a.821.821 0 01.077 1.01l-.077.098L10.869 18l-1.106-1.108 5.67-6.106-13.43.02L2 9.21l13.414-.02-5.65-6.082L10.868 2z",fill:"currentColor",fillRule:"nonzero"})}))}function h(o){return t("svg",e({viewBox:"0 0 20 20"},o,{children:t("path",{d:"M9.131 2L2.215 9.446a.821.821 0 00-.077 1.01l.077.098L9.131 18l1.106-1.108-5.67-6.106 13.43.02L18 9.21 4.586 9.19l5.65-6.082L9.132 2z",fill:"currentColor",fillRule:"nonzero"})}))}function y(i){var l=r(),a=l.locale,s=l.formatters.formatCaption,f=c(),m=n(),y=m.goToMonth,g=m.nextMonth,x=m.previousMonth,M=m.displayMonths,k=M.findIndex(
|
|
1
|
+
import{__assign as e}from"tslib";import{jsx as t,jsxs as o}from"react/jsx-runtime";import{useDayPicker as r,useNavigation as n,DayPicker as i}from"react-day-picker";import{useMemo as l,useEffect as a}from"react";import{useTheme as c}from"@cleartrip/ct-design-theme";import{Container as d}from"@cleartrip/ct-design-container";import{Typography as s}from"@cleartrip/ct-design-typography";import{getNestedField as f}from"@cleartrip/ct-design-common-utils";import{WEEK_DAY_LABEL as m}from"@cleartrip/ct-design-common-constants";import p from"dayjs";function u(o){return t("svg",e({viewBox:"0 0 20 20"},o,{children:t("path",{d:"M10.869 2l6.916 7.446a.821.821 0 01.077 1.01l-.077.098L10.869 18l-1.106-1.108 5.67-6.106-13.43.02L2 9.21l13.414-.02-5.65-6.082L10.868 2z",fill:"currentColor",fillRule:"nonzero"})}))}function h(o){return t("svg",e({viewBox:"0 0 20 20"},o,{children:t("path",{d:"M9.131 2L2.215 9.446a.821.821 0 00-.077 1.01l.077.098L9.131 18l1.106-1.108-5.67-6.106 13.43.02L18 9.21 4.586 9.19l5.65-6.082L9.132 2z",fill:"currentColor",fillRule:"nonzero"})}))}function y(i){var l=r(),a=l.locale,s=l.formatters.formatCaption,f=c(),m=n(),y=m.goToMonth,g=m.nextMonth,x=m.previousMonth,M=m.displayMonths,k=M.findIndex(function(e){return p(i.displayMonth).isSame(e)}),C=0===k,v=k===M.length-1;return o(d,e({display:"flex",flexDirection:"row"},{children:[t(d,C?e({display:"flex",css:{textAlign:"left"}},{children:t(d,e({display:"flex",flexDirection:"row",justifyContent:"center"},{children:t(h,{"data-testid":"leftArrow",height:20,width:20,className:"c-pointer c-neutral-900",onClick:function(){x&&y(x)}})}))}):{display:"flex",width:"100%",css:{textAlign:"left"}}),t(d,e({display:"flex",justifyContent:"center",width:"100%",css:{fontWeight:500}},{children:s(i.displayMonth,{locale:a})})),t(d,e({display:"flex",justifyContent:"flex-end",alignItems:"center",css:{textAlign:"right"}},{children:v&&t(u,{disabled:!g,"data-testid":"rightArrow",height:20,width:20,style:{alignSelf:"flex-end",color:f.color.text.primary},className:"c-pointer",onClick:function(){g&&y(g)}})}))]}))}var g="react_day_picker_desktop",x=function(o){var r=o.onDateSelect,n=o.selectedDays,p=o.noOfMonths,u=o.mode,h=o.footer,x=o.customHeader,M=o.disabledDays,k=o.fromMonth,C=o.toDate,v=o.defaultMonth,w=o.onDateClick,b=c(),D=function(o){var r=o.getDay();return t(s,e({variant:"B3",colorCode:r>0&&r<6?"#808080":"#C83232"},{children:m[r]}))},z=function(e){return e-1},L=l(function(){return{"--rdp-accent-color":f(["color","calendar","selected"],b),"--rdp-outline":"1.5px solid ".concat(f(["color","calendar","accent"],b)),"--rdp-selected-range-color":f(["color","calendar","background"],b),"--rdp-day-borderRadius-custom":f(["size","10"],b),"--rdp-day-size":f(["size","11"],b),"--rdp-day-width-custom":f(["size","11"],b),"--rdp-day-height-custom":f(["size","11"],b),"--rdp-day-font-size":f(["typography","size","16"],b),"--rdp-day-font-weight":f(["typography","weight","semibold"],b)}},[b,f]);a(function(){var e=document.getElementById(g);e&&Object.keys(L).forEach(function(t){var o;null===(o=null==e?void 0:e.style)||void 0===o||o.setProperty(t,L[t])})},[]);return t(d,e({display:"flex",alignItems:"center"},{children:function(){switch(u){case"single":case"multiple":return t(i,{id:g,numberOfMonths:p,mode:u,selected:n,onSelect:r,disabled:M,components:{Caption:x||y},footer:h,fromMonth:k,toDate:C,formatters:{formatWeekdayName:D,formatWeekNumber:z},defaultMonth:v,ISOWeek:!0});case"range":return t(i,{id:g,numberOfMonths:p,mode:u,selected:n,onDayClick:w,onSelect:r,disabled:M,components:{Caption:x||y},footer:h,fromMonth:k,toDate:C,formatters:{formatWeekdayName:D,formatWeekNumber:z},defaultMonth:v,ISOWeek:!0})}}()}))};export{x as CalendarDesktop};
|
|
2
2
|
//# sourceMappingURL=ct-design-calendar-desktop.browser.esm.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ct-design-calendar-desktop.browser.esm.js","sources":["../packages/components/CalendarDesktop/src/icons/Arrows.tsx","../packages/components/CalendarDesktop/src/Caption.tsx","../packages/components/CalendarDesktop/src/CalendarDesktop.tsx"],"sourcesContent":[null,null,null],"names":["RightArrow","props","_jsx","viewBox","children","d","fill","fillRule","LeftArrow","Caption","_a","useDayPicker","locale","formatCaption","formatters","theme","useTheme","_b","useNavigation","goToMonth","nextMonth","previousMonth","displayMonths","displayIndex","findIndex","month","dayjs","displayMonth","isSame","isFirst","isLast","length","_jsxs","Container","__assign","display","flexDirection","css","textAlign","justifyContent","height","width","className","onClick","fontWeight","alignItems","disabled","style","alignSelf","color","text","primary","CALENDAR_ROOT_ID","Calendar","onDateSelect","selectedDays","noOfMonths","mode","footer","customHeader","disabledDays","fromMonth","toDate","defaultMonth","onDateClick","formatWeekdayName","date","day","getDay","Typography","variant","colorCode","WEEK_DAY_LABEL","formatWeekNumber","weekNumber","styleConfigurableVariables","useMemo","getNestedField","concat","useEffect","calendarElement","document","getElementById","Object","keys","forEach","styleVar","setProperty","DayPicker","id","numberOfMonths","selected","onSelect","components","ISOWeek","onDayClick","renderCalendar"],"mappings":"iiBAAM,SAAUA,EAAWC,GACzB,OACEC,WAAKC,QAAQ,aAAgBF,EAC3B,CAAAG,SAAAF,EAAA,OAAA,CACEG,EAAE,2IACFC,KAAK,eACLC,SAAS,cAIjB,CAEM,SAAUC,EAAUP,GACxB,OACEC,WAAKC,QAAQ,aAAgBF,EAC3B,CAAAG,SAAAF,EAAA,OAAA,CACEG,EAAE,wIACFC,KAAK,eACLC,SAAS,cAIjB,CCbM,SAAUE,EAAQR,GAChB,IAAAS,EAGFC,IAFFC,EAAMF,EAAAE,OACQC,EAAaH,EAAAI,WAAAD,cAEvBE,EAAQC,IAERC,EAAyDC,IAAvDC,EAASF,EAAAE,UAAEC,EAASH,EAAAG,UAAEC,EAAaJ,EAAAI,cAAEC,kBACvCC,EAAeD,EAAcE,
|
|
1
|
+
{"version":3,"file":"ct-design-calendar-desktop.browser.esm.js","sources":["../packages/components/CalendarDesktop/src/icons/Arrows.tsx","../packages/components/CalendarDesktop/src/Caption.tsx","../packages/components/CalendarDesktop/src/CalendarDesktop.tsx"],"sourcesContent":[null,null,null],"names":["RightArrow","props","_jsx","viewBox","children","d","fill","fillRule","LeftArrow","Caption","_a","useDayPicker","locale","formatCaption","formatters","theme","useTheme","_b","useNavigation","goToMonth","nextMonth","previousMonth","displayMonths","displayIndex","findIndex","month","dayjs","displayMonth","isSame","isFirst","isLast","length","_jsxs","Container","__assign","display","flexDirection","css","textAlign","justifyContent","height","width","className","onClick","fontWeight","alignItems","disabled","style","alignSelf","color","text","primary","CALENDAR_ROOT_ID","Calendar","onDateSelect","selectedDays","noOfMonths","mode","footer","customHeader","disabledDays","fromMonth","toDate","defaultMonth","onDateClick","formatWeekdayName","date","day","getDay","Typography","variant","colorCode","WEEK_DAY_LABEL","formatWeekNumber","weekNumber","styleConfigurableVariables","useMemo","getNestedField","concat","useEffect","calendarElement","document","getElementById","Object","keys","forEach","styleVar","setProperty","DayPicker","id","numberOfMonths","selected","onSelect","components","ISOWeek","onDayClick","renderCalendar"],"mappings":"iiBAAM,SAAUA,EAAWC,GACzB,OACEC,WAAKC,QAAQ,aAAgBF,EAC3B,CAAAG,SAAAF,EAAA,OAAA,CACEG,EAAE,2IACFC,KAAK,eACLC,SAAS,cAIjB,CAEM,SAAUC,EAAUP,GACxB,OACEC,WAAKC,QAAQ,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aAAA,EAAAA,EAAiBjC,aAAK,IAAArC,GAAAA,EAAE6E,YAAYD,EAAUX,EAA2BW,GAC3E,EAEH,EAAE,IAsEH,OACEpF,EAAC+B,EAAUC,EAAA,CAAAC,QAAQ,OAAOU,WAAW,UAClC,CAAAzC,SAtEkB,WACrB,OAAQqD,GACN,IAAK,SAoBL,IAAK,WACH,OACEvD,EAACsF,EAAS,CACRC,GAAIrC,EACJsC,eAAgBlC,EAChBC,KAAMA,EACNkC,SAAUpC,EACVqC,SAAUtC,EACVR,SAAUc,EACViC,WAAY,CACVpF,QAASkD,GAAgBlD,GAE3BiD,OAAQA,EACRG,UAAWA,EACXC,OAAQA,EACRhD,WAAY,CAAEmD,kBAAiBA,EAAEQ,iBAAgBA,GACjDV,aAAcA,EACd+B,SAAO,IAGb,IAAK,QACH,OACE5F,EAACsF,EAAS,CACRC,GAAIrC,EACJsC,eAAgBlC,EAChBC,KAAMA,EACNkC,SAAUpC,EACVwC,WAAY/B,EACZ4B,SAAUtC,EACVR,SAAUc,EACViC,WAAY,CACVpF,QAASkD,GAAgBlD,GAE3BiD,OAAQA,EACRG,UAAWA,EACXC,OAAQA,EACRhD,WAAY,CAAEmD,kBAAiBA,EAAEQ,iBAAgBA,GACjDV,aAAcA,EACd+B,SAAO,IAMjB,CAIKE,KAGP"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cleartrip/ct-design-calendar-desktop",
|
|
3
|
-
"version": "2.21.0-SNAPSHOT-
|
|
3
|
+
"version": "2.21.0-SNAPSHOT-header-holiday-v1.0",
|
|
4
4
|
"description": "Calendar to run on desktop ",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"main": "dist/ct-design-calendar-desktop.cjs.js",
|
|
@@ -16,18 +16,19 @@
|
|
|
16
16
|
],
|
|
17
17
|
"dependencies": {
|
|
18
18
|
"react-day-picker": "8.10.0",
|
|
19
|
-
"@cleartrip/ct-design-theme": "3.21.0-SNAPSHOT-
|
|
20
|
-
"@cleartrip/ct-design-container": "3.21.0-SNAPSHOT-
|
|
21
|
-
"@cleartrip/ct-design-typography": "3.
|
|
22
|
-
"@cleartrip/ct-design-common-utils": "3.20.1-SNAPSHOT-
|
|
19
|
+
"@cleartrip/ct-design-theme": "3.21.0-SNAPSHOT-header-holiday-v1.0",
|
|
20
|
+
"@cleartrip/ct-design-container": "3.21.0-SNAPSHOT-header-holiday-v1.0",
|
|
21
|
+
"@cleartrip/ct-design-typography": "3.22.0-SNAPSHOT-header-holiday-v1.0",
|
|
22
|
+
"@cleartrip/ct-design-common-utils": "3.20.1-SNAPSHOT-header-holiday-v1.0",
|
|
23
23
|
"@cleartrip/ct-design-common-constants": "3.20.0"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"@cleartrip/ct-design-theme": "3.21.0-SNAPSHOT-
|
|
26
|
+
"@cleartrip/ct-design-theme": "3.21.0-SNAPSHOT-header-holiday-v1.0"
|
|
27
27
|
},
|
|
28
28
|
"peerDependencies": {
|
|
29
29
|
"react": ">=16.8.0",
|
|
30
|
-
"react-dom": ">=16.8.0"
|
|
30
|
+
"react-dom": ">=16.8.0",
|
|
31
|
+
"styled-components": "^5.3.6"
|
|
31
32
|
},
|
|
32
33
|
"publishConfig": {
|
|
33
34
|
"access": "public"
|