@itpsolver/react-multi-date-picker
Version:
a simple React datepicker component for working with gregorian, persian, arabic and indian calendars with the ability to select the date by single, multiple and range pickers.
2 lines (1 loc) • 350 B
JavaScript
;Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(e){var r={gregorian:[0,6],persian:[6],arabic:[0,6],indian:[0]};return{type:"mapDays",fn:function(){return function(a){var n=a.date,i=n.calendar,t=n.weekDay;if((Array.isArray(e)?e:r[i.name]).includes(t.index))return{className:"highlight highlight-red"}}}}};