UNPKG

@mui/material

Version:

Quickly build beautiful React apps. MUI is a simple and customizable component library to build faster, beautiful, and more accessible React applications. Follow your own design system, or start with Material Design.

25 lines (21 loc) 1.17 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; exports.getGridUtilityClass = getGridUtilityClass; var _base = require("@mui/base"); function getGridUtilityClass(slot) { return (0, _base.generateUtilityClass)('MuiGrid', slot); } const SPACINGS = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10]; const DIRECTIONS = ['column-reverse', 'column', 'row-reverse', 'row']; const WRAPS = ['nowrap', 'wrap-reverse', 'wrap']; const GRID_SIZES = ['auto', true, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]; const gridClasses = (0, _base.generateUtilityClasses)('MuiGrid', ['root', 'container', 'item', 'zeroMinWidth', // spacings ...SPACINGS.map(spacing => `spacing-xs-${spacing}`), // direction values ...DIRECTIONS.map(direction => `direction-xs-${direction}`), // wrap values ...WRAPS.map(wrap => `wrap-xs-${wrap}`), // grid sizes for all breakpoints ...GRID_SIZES.map(size => `grid-xs-${size}`), ...GRID_SIZES.map(size => `grid-sm-${size}`), ...GRID_SIZES.map(size => `grid-md-${size}`), ...GRID_SIZES.map(size => `grid-lg-${size}`), ...GRID_SIZES.map(size => `grid-xl-${size}`)]); var _default = gridClasses; exports.default = _default;