@mantine/dates
Version:
Calendars, date and time pickers based on Mantine components
132 lines (130 loc) • 2.67 kB
JavaScript
'use client';
function pickCalendarProps(props) {
const {
maxLevel,
minLevel,
defaultLevel,
level,
onLevelChange,
nextIcon,
previousIcon,
date,
defaultDate,
onDateChange,
numberOfColumns,
columnsToScroll,
ariaLabels,
nextLabel,
previousLabel,
onYearSelect,
onMonthSelect,
onYearMouseEnter,
onMonthMouseEnter,
onNextMonth,
onPreviousMonth,
onNextYear,
onPreviousYear,
onNextDecade,
onPreviousDecade,
withCellSpacing,
highlightToday,
__updateDateOnYearSelect,
__updateDateOnMonthSelect,
__setDateRef,
__setLevelRef,
withWeekNumbers,
headerControlsOrder,
// MonthLevelGroup props
firstDayOfWeek,
weekdayFormat,
weekendDays,
getDayProps,
excludeDate,
renderDay,
hideOutsideDates,
hideWeekdays,
getDayAriaLabel,
monthLabelFormat,
// YearLevelGroup props
monthsListFormat,
getMonthControlProps,
yearLabelFormat,
// DecadeLevelGroup props
yearsListFormat,
getYearControlProps,
decadeLabelFormat,
// External picker props
allowSingleDateInRange,
allowDeselect,
// Other props
minDate,
maxDate,
locale,
...others
} = props;
return {
calendarProps: {
maxLevel,
minLevel,
defaultLevel,
level,
onLevelChange,
nextIcon,
previousIcon,
date,
defaultDate,
onDateChange,
numberOfColumns,
columnsToScroll,
ariaLabels,
nextLabel,
previousLabel,
onYearSelect,
onMonthSelect,
onYearMouseEnter,
onMonthMouseEnter,
onNextMonth,
onPreviousMonth,
onNextYear,
onPreviousYear,
onNextDecade,
onPreviousDecade,
withCellSpacing,
highlightToday,
__updateDateOnYearSelect,
__updateDateOnMonthSelect,
__setDateRef,
withWeekNumbers,
headerControlsOrder,
// MonthLevelGroup props
firstDayOfWeek,
weekdayFormat,
weekendDays,
getDayProps,
excludeDate,
renderDay,
hideOutsideDates,
hideWeekdays,
getDayAriaLabel,
monthLabelFormat,
// YearLevelGroup props
monthsListFormat,
getMonthControlProps,
yearLabelFormat,
// DecadeLevelGroup props
yearsListFormat,
getYearControlProps,
decadeLabelFormat,
// External picker props
allowSingleDateInRange,
allowDeselect,
// Other props
minDate,
maxDate,
locale
},
others
};
}
export { pickCalendarProps };
//# sourceMappingURL=pick-calendar-levels-props.mjs.map