suomifi-ui-components
Version:
Suomi.fi UI component library
23 lines (20 loc) • 1.15 kB
JavaScript
import { __makeTemplateObject, __rest, __assign } from 'tslib';
import React from 'react';
import { css, styled } from 'styled-components';
import { resets, resetWithSelectors } from '../utils/index.js';
var inputResets = 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.input, resetWithSelectors(['::-webkit-input-placeholder']), resets.common);
var Input = function Input(_a) {
var type = _a.type,
forwardedRef = _a.forwardedRef,
passProps = __rest(_a, ["type", "forwardedRef"]);
return /*#__PURE__*/React.createElement("input", __assign({}, passProps, {
type: !!type ? type : 'text',
ref: forwardedRef
}));
};
var HtmlInput = styled(Input).withConfig({
componentId: "sc-fkzflm-0"
})(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), inputResets);
var templateObject_1, templateObject_2;
export { HtmlInput };
//# sourceMappingURL=HtmlInput.js.map