@activecollab/components
Version:
ActiveCollab Components
38 lines (37 loc) • 2.49 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.StyledButtonGroup = void 0;
var _styledComponents = _interopRequireWildcard(require("styled-components"));
var _BoxSizingStyle = require("../BoxSizingStyle");
var _FontStyle = require("../FontStyle");
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
var StyledButtonGroup = exports.StyledButtonGroup = _styledComponents.default.div.withConfig({
displayName: "Styles__StyledButtonGroup",
componentId: "sc-1vw4iq2-0"
})(["", " ", " ", " button{&:disabled{opacity:1;color:var(--color-theme-500);pointer-events:none;}&:first-child:not(:last-child){svg{margin-right:-4px;}", " ", "}&:last-child:not(:first-child){svg{margin-left:-4px;}", " ", "}&:not(:first-child):not(:last-child){", " ", "}}svg{", "}"], {
"display": "flex",
"flexDirection": "row"
}, _FontStyle.FontStyle, _BoxSizingStyle.BoxSizingStyle, {
"marginRight": "-1px",
"borderTopRightRadius": "0px",
"borderBottomRightRadius": "0px"
}, function (props) {
return props.$invalid && (0, _styledComponents.css)(["border-top-color:var(--red-alert) !important;border-bottom-color:var(--red-alert) !important;border-left-color:var(--red-alert) !important;"]);
}, {
"borderTopLeftRadius": "0px",
"borderBottomLeftRadius": "0px"
}, function (props) {
return props.$invalid && (0, _styledComponents.css)(["border-top-color:var(--red-alert) !important;border-bottom-color:var(--red-alert) !important;border-right-color:var(--red-alert) !important;"]);
}, {
"marginRight": "-1px",
"borderRadius": "0px"
}, function (props) {
return props.$invalid && (0, _styledComponents.css)(["border-top-color:var(--red-alert) !important;border-bottom-color:var(--red-alert) !important;"]);
}, {
"fill": "currentColor",
"color": "var(--color-theme-900)"
});
StyledButtonGroup.displayName = "StyledButtonGroup";
//# sourceMappingURL=Styles.js.map