@smart-react-components/ui
Version:
SRC UI includes React and Styled components.
11 lines (10 loc) • 890 B
JavaScript
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const Div_1 = __importDefault(require("@smart-react-components/core/Element/Div"));
const styled_components_1 = __importDefault(require("styled-components"));
exports.default = (0, styled_components_1.default)(Div_1.default).attrs(({ marginHorizontal = 'auto', paddingHorizontal = '$length.grid.space', maxWidth = '100%', maxWidthSm = '{length.grid.containerWidth.small}px', maxWidthMd = '{length.grid.containerWidth.medium}px', maxWidthLg = '{length.grid.containerWidth.large}px', maxWidthXl = '{length.grid.containerWidth.xlarge}px', }) => ({ marginHorizontal, paddingHorizontal, maxWidth, maxWidthSm, maxWidthMd, maxWidthLg, maxWidthXl })) `
box-sizing: border-box;
`;
;