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, range and multiple range pickers.
2 lines (1 loc) • 518 B
JavaScript
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?module.exports=n():"function"==typeof define&&define.amd?define(n):(e="undefined"!=typeof globalThis?globalThis:e||self).HighlightWeekends=n()}(this,(function(){"use strict";return function(e){var n={gregorian:[0,6],persian:[6],arabic:[0,6],indian:[0]};return{type:"mapDays",fn:function(){return function(i){var t=i.date,r=t.calendar,a=t.weekDay;if((Array.isArray(e)?e:n[r.name]).includes(a.index))return{className:"highlight highlight-red"}}}}}}));