diff --git a/packages/adapters/x-adapter-date-fns-v3/src/AdapterDateFns/AdapterDateFns.ts b/packages/adapters/x-adapter-date-fns-v3/src/AdapterDateFns/AdapterDateFns.ts index 0ac78f5de4c2..1fb3f42dc2e9 100644 --- a/packages/adapters/x-adapter-date-fns-v3/src/AdapterDateFns/AdapterDateFns.ts +++ b/packages/adapters/x-adapter-date-fns-v3/src/AdapterDateFns/AdapterDateFns.ts @@ -1,53 +1,51 @@ /* eslint-disable class-methods-use-this */ import { AdapterFormats, AdapterOptions, MuiPickersAdapter } from '@mui/x-adapter-common'; -import { - addDays, - dateFnsFormat, - longFormatters, - DateFnsLocale, - addSeconds, - addMinutes, - addHours, - addWeeks, - addMonths, - addYears, - endOfDay, - endOfWeek, - endOfYear, - getDate, - getDaysInMonth, - getHours, - getMinutes, - getMonth, - getSeconds, - getMilliseconds, - getWeek, - getYear, - isAfter, - isBefore, - isEqual, - isSameDay, - isSameYear, - isSameMonth, - isSameHour, - isValid, - dateFnsParse, - setDate, - setHours, - setMinutes, - setMonth, - setSeconds, - setMilliseconds, - setYear, - startOfDay, - startOfMonth, - endOfMonth, - startOfWeek, - startOfYear, - isWithinInterval, - enUS, -} from './date-fns-exports'; +import addDays from 'date-fns/addDays'; +import addSeconds from 'date-fns/addSeconds'; +import addMinutes from 'date-fns/addMinutes'; +import addHours from 'date-fns/addHours'; +import addWeeks from 'date-fns/addWeeks'; +import addMonths from 'date-fns/addMonths'; +import addYears from 'date-fns/addYears'; +import endOfDay from 'date-fns/endOfDay'; +import endOfWeek from 'date-fns/endOfWeek'; +import endOfYear from 'date-fns/endOfYear'; +import { format as dateFnsFormat, longFormatters } from 'date-fns/format'; +import getDate from 'date-fns/getDate'; +import getDaysInMonth from 'date-fns/getDaysInMonth'; +import getHours from 'date-fns/getHours'; +import getMinutes from 'date-fns/getMinutes'; +import getMonth from 'date-fns/getMonth'; +import getSeconds from 'date-fns/getSeconds'; +import getMilliseconds from 'date-fns/getMilliseconds'; +import getWeek from 'date-fns/getWeek'; +import getYear from 'date-fns/getYear'; +import isAfter from 'date-fns/isAfter'; +import isBefore from 'date-fns/isBefore'; +import isEqual from 'date-fns/isEqual'; +import isSameDay from 'date-fns/isSameDay'; +import isSameYear from 'date-fns/isSameYear'; +import isSameMonth from 'date-fns/isSameMonth'; +import isSameHour from 'date-fns/isSameHour'; +import isValid from 'date-fns/isValid'; +import dateFnsParse from 'date-fns/parse'; +import setDate from 'date-fns/setDate'; +import setHours from 'date-fns/setHours'; +import setMinutes from 'date-fns/setMinutes'; +import setMonth from 'date-fns/setMonth'; +import setSeconds from 'date-fns/setSeconds'; +import setMilliseconds from 'date-fns/setMilliseconds'; +import setYear from 'date-fns/setYear'; +import startOfDay from 'date-fns/startOfDay'; +import startOfMonth from 'date-fns/startOfMonth'; +import endOfMonth from 'date-fns/endOfMonth'; +import startOfWeek from 'date-fns/startOfWeek'; +import startOfYear from 'date-fns/startOfYear'; +import isWithinInterval from 'date-fns/isWithinInterval'; +import enUS from 'date-fns/locale/en-US'; +import { Locale as DateFnsLocale } from 'date-fns/locale'; + import { AdapterDateFnsBase } from '../AdapterDateFnsBase'; /** diff --git a/packages/adapters/x-adapter-date-fns-v3/src/AdapterDateFns/date-fns-exports.ts b/packages/adapters/x-adapter-date-fns-v3/src/AdapterDateFns/date-fns-exports.ts deleted file mode 100644 index 34c0c81a9c7e..000000000000 --- a/packages/adapters/x-adapter-date-fns-v3/src/AdapterDateFns/date-fns-exports.ts +++ /dev/null @@ -1,45 +0,0 @@ -// @ts-nocheck -export { addDays } from 'date-fns/addDays'; -export { addSeconds } from 'date-fns/addSeconds'; -export { addMinutes } from 'date-fns/addMinutes'; -export { addHours } from 'date-fns/addHours'; -export { addWeeks } from 'date-fns/addWeeks'; -export { addMonths } from 'date-fns/addMonths'; -export { addYears } from 'date-fns/addYears'; -export { endOfDay } from 'date-fns/endOfDay'; -export { endOfWeek } from 'date-fns/endOfWeek'; -export { endOfYear } from 'date-fns/endOfYear'; -export { format as dateFnsFormat, longFormatters } from 'date-fns/format'; -export { getDate } from 'date-fns/getDate'; -export { getDaysInMonth } from 'date-fns/getDaysInMonth'; -export { getHours } from 'date-fns/getHours'; -export { getMinutes } from 'date-fns/getMinutes'; -export { getMonth } from 'date-fns/getMonth'; -export { getSeconds } from 'date-fns/getSeconds'; -export { getMilliseconds } from 'date-fns/getMilliseconds'; -export { getWeek } from 'date-fns/getWeek'; -export { getYear } from 'date-fns/getYear'; -export { isAfter } from 'date-fns/isAfter'; -export { isBefore } from 'date-fns/isBefore'; -export { isEqual } from 'date-fns/isEqual'; -export { isSameDay } from 'date-fns/isSameDay'; -export { isSameYear } from 'date-fns/isSameYear'; -export { isSameMonth } from 'date-fns/isSameMonth'; -export { isSameHour } from 'date-fns/isSameHour'; -export { isValid } from 'date-fns/isValid'; -export { parse as dateFnsParse } from 'date-fns/parse'; -export { setDate } from 'date-fns/setDate'; -export { setHours } from 'date-fns/setHours'; -export { setMinutes } from 'date-fns/setMinutes'; -export { setMonth } from 'date-fns/setMonth'; -export { setSeconds } from 'date-fns/setSeconds'; -export { setMilliseconds } from 'date-fns/setMilliseconds'; -export { setYear } from 'date-fns/setYear'; -export { startOfDay } from 'date-fns/startOfDay'; -export { startOfMonth } from 'date-fns/startOfMonth'; -export { endOfMonth } from 'date-fns/endOfMonth'; -export { startOfWeek } from 'date-fns/startOfWeek'; -export { startOfYear } from 'date-fns/startOfYear'; -export { isWithinInterval } from 'date-fns/isWithinInterval'; -export { enUS } from 'date-fns/locale/en-US'; -export { Locale as DateFnsLocale } from 'date-fns/locale/types';