@mui/lab
Version:
Laboratory for new Material UI modules.
30 lines (29 loc) • 1.25 kB
JavaScript
'use client';
/* eslint-disable @typescript-eslint/no-unused-vars */
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.yearPickerClasses = exports.getYearPickerUtilityClass = exports.default = void 0;
let warnedOnce = false;
const warn = () => {
if (!warnedOnce) {
console.warn(['MUI: The YearPicker component was moved from `@mui/lab` to `@mui/x-date-pickers`.', '', "You should use `import { YearPicker } from '@mui/x-date-pickers'`", "or `import { YearPicker } from '@mui/x-date-pickers/YearPicker'`", '', 'More information about this migration on our blog: https://mui.com/blog/lab-date-pickers-to-mui-x/.'].join('\n'));
warnedOnce = true;
}
};
/**
* @deprecated The YearPicker 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 YearPicker = function DeprecatedYearPicker() {
warn();
return null;
};
var _default = exports.default = YearPicker;
const yearPickerClasses = exports.yearPickerClasses = {};
const getYearPickerUtilityClass = slot => {
warn();
return '';
};
exports.getYearPickerUtilityClass = getYearPickerUtilityClass;
;