UNPKG

@vimeo/iris

Version:
25 lines (22 loc) 2.4 kB
import { a as __makeTemplateObject } from '../../../tslib.es6-7f0e734f.js'; import styled from 'styled-components'; import { inputColors, inputShape } from '../Shared.esm.js'; import { ChevronDown as ChevronDown$1 } from '../../../icons/ui/ChevronDown.esm.js'; import 'polished'; import '../../../color/colors.esm.js'; import 'react'; var SelectStyled = styled.select(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n appearance: none;\n ", ";\n ", ";\n padding-right: 2rem;\n cursor: pointer;\n font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;\n transition: all 120ms ease-in-out, opacity 0ms;\n"], ["\n appearance: none;\n ", ";\n ", ";\n padding-right: 2rem;\n cursor: pointer;\n font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;\n transition: all 120ms ease-in-out, opacity 0ms;\n"])), inputColors, inputShape); var Placeholder = styled.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n appearance: none;\n ", ";\n ", ";\n padding-right: 2rem;\n cursor: pointer;\n text-rendering: auto;\n letter-spacing: normal;\n word-spacing: normal;\n text-transform: none;\n text-indent: 0px;\n text-shadow: none;\n background: transparent;\n text-overflow: ellipsis;\n white-space: nowrap;\n overflow: hidden;\n"], ["\n appearance: none;\n ", ";\n ", ";\n padding-right: 2rem;\n cursor: pointer;\n text-rendering: auto;\n letter-spacing: normal;\n word-spacing: normal;\n text-transform: none;\n text-indent: 0px;\n text-shadow: none;\n background: transparent;\n text-overflow: ellipsis;\n white-space: nowrap;\n overflow: hidden;\n"])), inputColors, inputShape); var ChevronDown = styled(ChevronDown$1)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n position: absolute;\n top: ", "rem;\n right: 0.3rem;\n width: 1.5rem;\n height: 1.5rem;\n pointer-events: none;\n\n * {\n fill: ", ";\n }\n"], ["\n position: absolute;\n top: ", "rem;\n right: 0.3rem;\n width: 1.5rem;\n height: 1.5rem;\n pointer-events: none;\n\n * {\n fill: ", ";\n }\n"])), function (p) { return bottom[p.size]; }, function (_a) { var theme = _a.theme; return theme.content.color; }); var bottom = { xs: 0.1, sm: 0.2, md: 0.3, lg: 0.8, xl: 1.1, }; var templateObject_1, templateObject_2, templateObject_3; export { ChevronDown, Placeholder, SelectStyled };