UNPKG

@mui/lab

Version:
32 lines (31 loc) 1.44 kB
"use strict"; 'use client'; /* eslint-disable @typescript-eslint/no-unused-vars */ var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default; Object.defineProperty(exports, "__esModule", { value: true }); exports.monthPickerClasses = exports.getMonthPickerUtilityClass = exports.default = void 0; var React = _interopRequireWildcard(require("react")); let warnedOnce = false; const warn = () => { if (!warnedOnce) { console.warn(['MUI: The MonthPicker component was moved from `@mui/lab` to `@mui/x-date-pickers`.', '', "You should use `import { MonthPicker } from '@mui/x-date-pickers'`", "or `import { MonthPicker } from '@mui/x-date-pickers/MonthPicker'`", '', 'More information about this migration on our blog: https://mui.com/blog/lab-date-pickers-to-mui-x/.'].join('\n')); warnedOnce = true; } }; /** * @deprecated The MonthPicker component was moved from `@mui/lab` to `@mui/x-date-pickers`. More information about this migration on our blog: https://mui.com/blog/lab-date-pickers-to-mui-x/. * @ignore - do not document. */ const MonthPicker = /*#__PURE__*/React.forwardRef(function DeprecatedMonthPicker() { warn(); return null; }); var _default = exports.default = MonthPicker; const monthPickerClasses = exports.monthPickerClasses = {}; const getMonthPickerUtilityClass = slot => { warn(); return ''; }; exports.getMonthPickerUtilityClass = getMonthPickerUtilityClass;