UNPKG

fk-react-ui-components

Version:

Step 1 : Create a file in [ Seeds / Plants / Trees ] <br> Step 2 : It should export an Object with component name and story Component [Refer other components] <br> Step 3 : Story Component should return a react component <br> Step 3 : Created file should

62 lines (50 loc) 5.21 kB
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.SelectFilterContainer = undefined; var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; /** * Created by manoraj.k on 17/08/17. */ var _templateObject = _taggedTemplateLiteral(['\n .selected-text,\n .Select-placeholder {\n font-size: 13px;\n color: ', ';\n }\n .Select-arrow-zone {\n font-size: 12px;\n }\n .select-option {\n white-space: nowrap;\n text-overflow: ellipsis;\n overflow: hidden;\n font-size: 13px;\n background: ', ';\n &:hover {\n background: ', ';\n }\n &.is-selected {\n background: ', ';\n }\n }\n\n .Select {\n }\n .Select-input {\n height: ', ';\n }\n .Select-control {\n width: ', ';\n font-size: 13px;\n height: ', ';\n border-color: ', ';\n }\n\n .Select-placeholder,\n .Select--single > .Select-control .Select-value {\n line-height: ', ';\n max-width: 90%;\n }\n .is-focused:not(.is-open) > .Select-control {\n border-color: ', ';\n box-shadow: none;\n }\n .active-icon-color {\n color: ', ';\n }\n .inprogress-icon-color {\n color: ', ';\n }\n .is-open > .Select-control {\n border-color: ', ';\n }\n .Select-menu-outer {\n width: ', ';\n border: none;\n border-radius: 4px;\n background-color: ', ';\n box-shadow: rgba(208, 208, 208, 0.5) 1px 0px 6px 0px;\n }\n'], ['\n .selected-text,\n .Select-placeholder {\n font-size: 13px;\n color: ', ';\n }\n .Select-arrow-zone {\n font-size: 12px;\n }\n .select-option {\n white-space: nowrap;\n text-overflow: ellipsis;\n overflow: hidden;\n font-size: 13px;\n background: ', ';\n &:hover {\n background: ', ';\n }\n &.is-selected {\n background: ', ';\n }\n }\n\n .Select {\n }\n .Select-input {\n height: ', ';\n }\n .Select-control {\n width: ', ';\n font-size: 13px;\n height: ', ';\n border-color: ', ';\n }\n\n .Select-placeholder,\n .Select--single > .Select-control .Select-value {\n line-height: ', ';\n max-width: 90%;\n }\n .is-focused:not(.is-open) > .Select-control {\n border-color: ', ';\n box-shadow: none;\n }\n .active-icon-color {\n color: ', ';\n }\n .inprogress-icon-color {\n color: ', ';\n }\n .is-open > .Select-control {\n border-color: ', ';\n }\n .Select-menu-outer {\n width: ', ';\n border: none;\n border-radius: 4px;\n background-color: ', ';\n box-shadow: rgba(208, 208, 208, 0.5) 1px 0px 6px 0px;\n }\n']); var _styledComponents = require('styled-components'); var _styledComponents2 = _interopRequireDefault(_styledComponents); var _colorCodes = require('../../colorCodes'); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _taggedTemplateLiteral(strings, raw) { return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); } var defaultProps = { theme: _extends({}, _colorCodes.guidelineColors) }; var SelectFilterContainer = exports.SelectFilterContainer = _styledComponents2.default.div(_templateObject, function (props) { return props.theme.text.secondary; }, function (props) { return props.theme.white; }, function (props) { return props.theme.background.secondary; }, function (props) { return props.theme.border.primary; }, function (props) { return props.height || '29px'; }, function (props) { return props.width || '210px'; }, function (props) { return props.height || '30px'; }, function (props) { return props.theme.border.primary; }, function (props) { return props.height || '29px'; }, function (props) { return props.theme.accent.primary; }, function (props) { return props.theme.accent.primary; }, function (props) { return props.theme.text.tertiary; }, function (props) { return props.theme.border.primary; }, function (props) { return props.width || '210px'; }, function (props) { return props.theme.white; }); SelectFilterContainer.defaultProps = defaultProps; exports.default = SelectFilterContainer;