@up-group-ui/react-controls
Version:
Up shared react controls
33 lines • 1.43 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.UpBox = void 0;
var tslib_1 = require("tslib");
var jsx_runtime_1 = require("react/jsx-runtime");
var classnames_1 = (0, tslib_1.__importDefault)(require("classnames"));
var styles_1 = require("./styles");
var withTheme_1 = (0, tslib_1.__importDefault)(require("../../../Common/theming/withTheme"));
var UpBox = function (props) {
var children = props.children, style = props.style, onClick = props.onClick, className = props.className, othersProps = (0, tslib_1.__rest)(props, ["children", "style", "onClick", "className"]);
return ((0, jsx_runtime_1.jsx)("div", (0, tslib_1.__assign)({ onClick: onClick, style: style || {}, className: (0, classnames_1.default)((0, styles_1.getBoxStyles)(othersProps), (0, styles_1.getSize)(othersProps), className) }, { children: children || null }), void 0));
};
exports.UpBox = UpBox;
UpBox.defaultProps = {
flexDirection: 'column',
alignContent: 'flex-start',
justifyContent: 'flex-start',
alignItems: 'flex-start',
pad: 'none',
margin: 'none',
color: 'black',
backgroundColor: 'transparent',
backgroundImage: 'transparent',
style: {},
onClick: function () { },
selectable: 'auto',
flexWrap: false,
reverse: false,
full: false,
boxSize: 'auto',
};
exports.default = (0, withTheme_1.default)(UpBox);
//# sourceMappingURL=UpBox.js.map