@mantine/dates
Version:
Calendars, date and time pickers based on Mantine components
67 lines (66 loc) • 2.15 kB
JavaScript
"use client";
//#region packages/@mantine/dates/src/components/Calendar/pick-calendar-levels-props/pick-calendar-levels-props.ts
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, firstDayOfWeek, weekdayFormat, weekendDays, getDayProps, excludeDate, renderDay, hideOutsideDates, hideWeekdays, getDayAriaLabel, monthLabelFormat, monthsListFormat, getMonthControlProps, yearLabelFormat, yearsListFormat, getYearControlProps, decadeLabelFormat, allowSingleDateInRange, allowDeselect, 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,
firstDayOfWeek,
weekdayFormat,
weekendDays,
getDayProps,
excludeDate,
renderDay,
hideOutsideDates,
hideWeekdays,
getDayAriaLabel,
monthLabelFormat,
monthsListFormat,
getMonthControlProps,
yearLabelFormat,
yearsListFormat,
getYearControlProps,
decadeLabelFormat,
allowSingleDateInRange,
allowDeselect,
minDate,
maxDate,
locale
},
others
};
}
//#endregion
exports.pickCalendarProps = pickCalendarProps;
//# sourceMappingURL=pick-calendar-levels-props.cjs.map