@activecollab/components
Version:
ActiveCollab Components
36 lines (35 loc) • 3.04 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.StyledRadioLabel = exports.StyledRadioInput = exports.StyledRadioButton = void 0;
var _styledComponents = _interopRequireWildcard(require("styled-components"));
var _BoxSizingStyle = require("../BoxSizingStyle");
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 StyledRadioInput = exports.StyledRadioInput = _styledComponents.default.input.withConfig({
displayName: "Styles__StyledRadioInput",
componentId: "sc-1xh9uc2-0"
})(["display:none;"]);
StyledRadioInput.displayName = "StyledRadioInput";
var StyledRadioLabel = exports.StyledRadioLabel = _styledComponents.default.label.withConfig({
displayName: "Styles__StyledRadioLabel",
componentId: "sc-1xh9uc2-1"
})(["", ""], {
"display": "inline-flex",
"alignItems": "center"
});
StyledRadioLabel.displayName = "StyledRadioLabel";
var StyledRadioButton = exports.StyledRadioButton = _styledComponents.default.div.withConfig({
displayName: "Styles__StyledRadioButton",
componentId: "sc-1xh9uc2-2"
})(["", " ", " height:16px;width:16px;position:relative;svg{cursor:pointer;fill:transparent;}circle:first-child{transition-duration:0.2s;stroke:var(--color-theme-500);}circle:last-child{transition-duration:0.2s;transform-origin:center;transform:scale(0);fill:var(--color-secondary-500);}input:focus ~ ", "{circle:first-child{stroke:var(--color-secondary);}}input:disabled ~ ", "{pointer-events:none;opacity:0.5;}", " ", " input:checked ~ ", "{circle:first-child{stroke:var(--color-secondary);}circle:last-child{transform:scale(1);fill:var(--color-secondary);}}"], _BoxSizingStyle.BoxSizingStyle, {
"display": "inline-flex",
"alignItems": "center"
}, StyledRadioLabel, StyledRadioLabel, function (props) {
return props.$isControlled !== true && (0, _styledComponents.css)(["input:hover ~ ", "{circle:first-child{stroke:var(--color-secondary);}circle:last-child{transform:scale(1);}}"], StyledRadioLabel);
}, function (props) {
return props.$isHovered && (0, _styledComponents.css)(["", "{circle:first-child{stroke:var(--color-secondary);}circle:last-child{transform:scale(1);}}"], StyledRadioLabel);
}, StyledRadioLabel);
StyledRadioButton.displayName = "StyledRadioButton";
//# sourceMappingURL=Styles.js.map