UNPKG

@activecollab/components

Version:

ActiveCollab Components

48 lines (47 loc) 2.79 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.StyledTextarea = 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 StyledTextarea = exports.StyledTextarea = _styledComponents.default.textarea.withConfig({ displayName: "Styles__StyledTextarea", componentId: "sc-m6jqw8-0" })(["", " ", " ", " ", " ", " border-width:1px;border-style:solid;background-color:var(--input-background-color);", " border-radius:8px;padding:4px 8px 6px 8px;height:auto;transition:all 0.3s ease;width:360px;min-height:90px;outline:none;", " ", " ", " ", " ", " &::placeholder{", "}", " ", ""], { "fontSize": "0.875rem" }, { "color": "var(--color-theme-900)" }, { "lineHeight": "1.375" }, { "letterSpacing": "0.02em" }, { "fontWeight": "400" }, { "borderColor": "var(--color-theme-500)" }, _FontStyle.FontStyle, _BoxSizingStyle.BoxSizingStyle, function (props) { return props.$mode === "flat" && (0, _styledComponents.css)(["border:none;background-color:transparent;"]); }, function (props) { return props.disabled && (0, _styledComponents.css)(["", ""], { "cursor": "not-allowed", "opacity": "0.5" }); }, function (props) { return !props.disabled && !props.$invalid && props.$mode === "outlined" && (0, _styledComponents.css)(["&:active,&:focus,&:hover{", "}"], { "borderColor": "var(--color-primary)" }); }, { "color": "var(--color-theme-transparent-500)" }, function (props) { return !props.disabled && props.$invalid && props.$mode === "outlined" && (0, _styledComponents.css)(["", ""], { "borderColor": "var(--red-alert)" }); }, function (props) { return !props.disabled && props.$invalid && props.$mode === "flat" && (0, _styledComponents.css)(["color:var(--red-alert);"]); }); StyledTextarea.displayName = "StyledTextarea"; //# sourceMappingURL=Styles.js.map