UNPKG

suomifi-ui-components

Version:
21 lines (18 loc) 1.12 kB
import { __makeTemplateObject, __rest, __assign } from 'tslib'; import React from 'react'; import { css, styled } from 'styled-components'; import { resets, resetWithSelectors } from '../utils/index.js'; var textareaResets = css(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n ", "\n ", "\n ", "\n ", "\n display: inline-block;\n max-width: 100%;\n"], ["\n ", "\n ", "\n ", "\n ", "\n display: inline-block;\n max-width: 100%;\n"])), resets.normalize.html, resets.normalize.textarea, resetWithSelectors(['::-webkit-input-placeholder']), resets.common); var Textarea = function Textarea(_a) { var forwardedRef = _a.forwardedRef, passProps = __rest(_a, ["forwardedRef"]); return /*#__PURE__*/React.createElement("textarea", __assign({}, passProps, { ref: forwardedRef })); }; var HtmlTextarea = styled(Textarea).withConfig({ componentId: "sc-vdx405-0" })(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), textareaResets); var templateObject_1, templateObject_2; export { HtmlTextarea }; //# sourceMappingURL=HtmlTextarea.js.map