UNPKG

@mui/system

Version:

MUI System is a set of CSS utilities to help you build custom designs more efficiently. It makes it possible to rapidly lay out custom designs.

51 lines (49 loc) 2.36 kB
"use strict"; 'use client'; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _propTypes = _interopRequireDefault(require("prop-types")); var _ClassNameGenerator = _interopRequireDefault(require("@mui/utils/ClassNameGenerator")); var _createBox = _interopRequireDefault(require("../createBox")); var _boxClasses = _interopRequireDefault(require("./boxClasses")); // The SimpleSystemKeys are subset of the AllSystemCSSProperties, so this should be ok // This is needed as these are used as keys inside AllSystemCSSProperties /** * * Demos: * * - [Box (Material UI)](https://mui.com/material-ui/react-box/) * - [Menubar (Material UI)](https://mui.com/material-ui/react-menubar/) * - [Box (MUI System)](https://mui.com/system/react-box/) * * API: * * - [Box API](https://mui.com/system/api/box/) */ const Box = (0, _createBox.default)({ defaultClassName: _boxClasses.default.root, generateClassName: _ClassNameGenerator.default.generate }); process.env.NODE_ENV !== "production" ? Box.propTypes /* remove-proptypes */ = { // ┌────────────────────────────── Warning ──────────────────────────────┐ // │ These PropTypes are generated from the TypeScript type definitions. │ // │ To update them, edit the TypeScript types and run `pnpm proptypes`. │ // └─────────────────────────────────────────────────────────────────────┘ /** * @ignore */ children: _propTypes.default.node, /** * The component used for the root node. * Either a string to use a HTML element or a component. */ component: _propTypes.default.elementType, /** * The system prop that allows defining system overrides as well as additional CSS styles. */ sx: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.object, _propTypes.default.bool])), _propTypes.default.func, _propTypes.default.object]) } : void 0; var _default = exports.default = Box;