@activecollab/components
Version:
ActiveCollab Components
39 lines (38 loc) • 2.67 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 _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
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