UNPKG

@activecollab/components

Version:

ActiveCollab Components

34 lines (33 loc) 2.35 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.StyledValueButtonValue = exports.StyledValueButtonLabel = exports.StyledValueButton = void 0; var _styledComponents = _interopRequireWildcard(require("styled-components")); var _Button = require("../Button"); var _Typography = require("../Typography"); 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 StyledValueButtonLabel = exports.StyledValueButtonLabel = (0, _styledComponents.default)(_Typography.Body2).withConfig({ displayName: "Styles__StyledValueButtonLabel", componentId: "sc-7n59oz-0" })(["opacity:60%;margin-right:2px;"]); StyledValueButtonLabel.displayName = "StyledValueButtonLabel"; var StyledValueButtonValue = exports.StyledValueButtonValue = (0, _styledComponents.default)(_Typography.Body2).withConfig({ displayName: "Styles__StyledValueButtonValue", componentId: "sc-7n59oz-1" })([""]); StyledValueButtonValue.displayName = "StyledValueButtonValue"; var StyledValueButton = exports.StyledValueButton = (0, _styledComponents.default)(_Button.Button).withConfig({ displayName: "Styles__StyledValueButton", componentId: "sc-7n59oz-2" })(["", " ", ""], function (props) { return props.$active && (0, _styledComponents.css)(["", ",", "{", " color:var(--color-theme-900) !important;}svg{fill:var(--color-primary);}"], StyledValueButtonLabel, StyledValueButtonValue, { "pointerEvents": "none" }); }, function (props) { return props.$active !== true && (0, _styledComponents.css)(["{&:hover{", ",", "{", " color:var(--color-theme-900) !important;}}"], StyledValueButtonLabel, StyledValueButtonValue, { "pointerEvents": "none" }); }); StyledValueButton.displayName = "StyledValueButton"; //# sourceMappingURL=Styles.js.map