UNPKG

@activecollab/components

Version:

ActiveCollab Components

58 lines (57 loc) 3.38 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.StyledSpan = exports.StyledInput = exports.StyledDiv = void 0; var _styledComponents = _interopRequireWildcard(require("styled-components")); var _BoxSizingStyle = require("../BoxSizingStyle"); var _FontStyle = require("../FontStyle"); var _Typography = require("../Typography/Typography"); 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 StyledDiv = exports.StyledDiv = _styledComponents.default.div.withConfig({ displayName: "Styles__StyledDiv", componentId: "sc-1wapx2a-0" })(["", " ", " ", ""], _FontStyle.FontStyle, _BoxSizingStyle.BoxSizingStyle, { "position": "relative", "display": "inline-block", "maxWidth": "100%" }); var StyledSpan = exports.StyledSpan = (0, _styledComponents.default)(_Typography.Typography).withConfig({ displayName: "Styles__StyledSpan", componentId: "sc-1wapx2a-1" })(["visibility:hidden;display:block;padding-left:4px;padding-right:4px;padding-top:1px;padding-bottom:1px;position:relative;border:1px solid transparent;border-radius:6px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:pre;font-variant-numeric:tabular-nums;", " ", " &:empty:before{content:\" \";}"], function (_ref) { var $disabled = _ref.$disabled; return $disabled && (0, _styledComponents.css)(["visibility:visible;"]); }, function (_ref2) { var invalid = _ref2.invalid; return invalid && (0, _styledComponents.css)(["border:1px solid var(--red-alert);"]); }); StyledSpan.displayName = "StyledSpan"; var StyledInput = exports.StyledInput = (0, _styledComponents.default)(_Typography.Typography).withConfig({ displayName: "Styles__StyledInput", componentId: "sc-1wapx2a-2" })(["", " background-color:inherit;padding-left:4px;padding-right:4px;padding-top:1px;padding-bottom:1px;text-overflow:ellipsis;font-variant-numeric:tabular-nums;&:focus-whitin{text-overflow:clip;}outline-width:0px;outline:none;&:disabled{opacity:0;}", ""], { "position": "absolute", "inset": "0px", "boxSizing": "border-box", "width": "100%", "overflow": "hidden", "whiteSpace": "nowrap", "borderRadius": "0.375rem", "borderWidth": "1px", "borderStyle": "solid", "borderColor": "transparent", ":focus-within": { "overflow": "scroll", "borderColor": "var(--color-theme-700)" }, ":hover": { "borderColor": "var(--color-theme-700)" } }, function (_ref3) { var invalid = _ref3.invalid; return invalid && (0, _styledComponents.css)(["border-color:var(--red-alert) !important;"]); }); StyledInput.displayName = "StyledInput"; //# sourceMappingURL=Styles.js.map