UNPKG

@roo-ui/components

Version:

30 lines (21 loc) 4.59 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _styledBase = _interopRequireDefault(require("@emotion/styled-base")); var _styledSystem = require("styled-system"); var _omitProps = _interopRequireDefault(require("../omitProps")); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } var Box = ( /*#__PURE__*/ 0, _styledBase.default)('div', _extends({}, { target: "e1syng1p0", label: "Box" }, (0, _omitProps.default)()))(_styledSystem.display, " ", _styledSystem.space, " ", _styledSystem.width, " ", _styledSystem.minWidth, " ", _styledSystem.maxWidth, " ", _styledSystem.height, " ", _styledSystem.minHeight, " ", _styledSystem.maxHeight, " ", _styledSystem.color, " ", _styledSystem.textAlign, " ", _styledSystem.boxShadow, " ", _styledSystem.borderRadius, " ", _styledSystem.borders, " ", _styledSystem.borderColor, " ", _styledSystem.flexBasis, " ", _styledSystem.flex, " ", _styledSystem.position, " ", _styledSystem.zIndex, process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9Cb3gvQm94LmpzIl0s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aC5wcm9wVHlwZXMsXG4gIC4uLm1pbldpZHRoLnByb3BUeXBlcyxcbiAgLi4ubWF4V2lkdGgucHJvcFR5cGVzLFxuICAuLi5oZWlnaHQucHJvcFR5cGVzLFxuICAuLi5taW5IZWlnaHQucHJvcFR5cGVzLFxuICAuLi5tYXhIZWlnaHQucHJvcFR5cGVzLFxuICAuLi5jb2xvci5wcm9wVHlwZXMsXG4gIC4uLnRleHRBbGlnbi5wcm9wVHlwZXMsXG4gIC4uLmJveFNoYWRvdy5wcm9wVHlwZXMsXG4gIC4uLmJvcmRlclJhZGl1cy5wcm9wVHlwZXMsXG4gIC4uLmJvcmRlcnMucHJvcFR5cGVzLFxuICAuLi5ib3JkZXJDb2xvci5wcm9wVHlwZXMsXG4gIC4uLmZsZXhCYXNpcy5wcm9wVHlwZXMsXG4gIC4uLmZsZXgucHJvcFR5cGVzLFxuICAuLi5wb3NpdGlvbi5wcm9wVHlwZXMsXG4gIC4uLnpJbmRleC5wcm9wVHlwZXMsXG59O1xuXG5leHBvcnQgZGVmYXVsdCBCb3g7XG4iXX0= */"); Box.propTypes = _objectSpread({}, _styledSystem.display.propTypes, _styledSystem.space.propTypes, _styledSystem.width.propTypes, _styledSystem.minWidth.propTypes, _styledSystem.maxWidth.propTypes, _styledSystem.height.propTypes, _styledSystem.minHeight.propTypes, _styledSystem.maxHeight.propTypes, _styledSystem.color.propTypes, _styledSystem.textAlign.propTypes, _styledSystem.boxShadow.propTypes, _styledSystem.borderRadius.propTypes, _styledSystem.borders.propTypes, _styledSystem.borderColor.propTypes, _styledSystem.flexBasis.propTypes, _styledSystem.flex.propTypes, _styledSystem.position.propTypes, _styledSystem.zIndex.propTypes); var _default = Box; exports.default = _default;