Some checks failed
No response / noResponse (push) Has been cancelled
CI / Continuous releases (push) Has been cancelled
CI / test-dev (macos-latest) (push) Has been cancelled
CI / test-dev (ubuntu-latest) (push) Has been cancelled
CI / test-dev (windows-latest) (push) Has been cancelled
Maintenance / main (push) Has been cancelled
Scorecards supply-chain security / Scorecards analysis (push) Has been cancelled
CodeQL / Analyze (push) Has been cancelled
43 lines
1.6 KiB
JavaScript
43 lines
1.6 KiB
JavaScript
'use client';
|
|
import { createBox } from '@mui/system';
|
|
import PropTypes from 'prop-types';
|
|
import { unstable_ClassNameGenerator as ClassNameGenerator } from '../className';
|
|
import { createTheme } from '../styles';
|
|
import THEME_ID from '../styles/identifier';
|
|
import boxClasses from './boxClasses';
|
|
|
|
const defaultTheme = createTheme();
|
|
|
|
const Box = createBox({
|
|
themeId: THEME_ID,
|
|
defaultTheme,
|
|
defaultClassName: boxClasses.root,
|
|
generateClassName: ClassNameGenerator.generate,
|
|
});
|
|
|
|
Box.propTypes /* remove-proptypes */ = {
|
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
// └─────────────────────────────────────────────────────────────────────┘
|
|
/**
|
|
* @ignore
|
|
*/
|
|
children: PropTypes.node,
|
|
/**
|
|
* The component used for the root node.
|
|
* Either a string to use a HTML element or a component.
|
|
*/
|
|
component: PropTypes.elementType,
|
|
/**
|
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
*/
|
|
sx: PropTypes.oneOfType([
|
|
PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])),
|
|
PropTypes.func,
|
|
PropTypes.object,
|
|
]),
|
|
};
|
|
|
|
export default Box;
|