UNPKG

baseui

Version:

A React Component library implementing the Base design language

29 lines (26 loc) 742 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.StyledRoot = void 0; var _styles = require("../styles"); var _button = require("../button"); /* Copyright (c) Uber Technologies, Inc. This source code is licensed under the MIT license found in the LICENSE file in the root directory of this source tree. */ const StyledRoot = exports.StyledRoot = (0, _styles.styled)('div', ({ $shape, $length, $theme }) => { const margin = $length === 1 ? undefined : $shape !== _button.SHAPE.default ? `-${$theme.sizing.scale100}` : '-0.5px'; return { display: 'flex', marginLeft: margin, marginRight: margin }; }); StyledRoot.displayName = "StyledRoot"; StyledRoot.displayName = 'StyledRoot';