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

45 lines (32 loc) 4.11 kB
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.SearchTypeList = exports.SimpleSearchIcon = 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; }; var _templateObject = _taggedTemplateLiteral(['\n position: absolute;\n right: 10px;\n top: 50%;\n -webkit-transform: translateY(-54%);\n -ms-transform: translateY(-54%);\n transform: translateY(-54%);\n cursor: pointer;\n &.active-icon-color {\n color: ', ';\n }\n &.inprogress-icon-color {\n color: ', ';\n }\n'], ['\n position: absolute;\n right: 10px;\n top: 50%;\n -webkit-transform: translateY(-54%);\n -ms-transform: translateY(-54%);\n transform: translateY(-54%);\n cursor: pointer;\n &.active-icon-color {\n color: ', ';\n }\n &.inprogress-icon-color {\n color: ', ';\n }\n']), _templateObject2 = _taggedTemplateLiteral(['\n list-style: none;\n padding: 0px;\n width: 100%;\n float: left;\n position: absolute;\n margin: 0px;\n border-radius: 4px;\n background-color: ', ';\n box-shadow: 0 1px 4px 0 rgba(63, 63, 63, 0.3);\n border: 1px solid rgba(0, 0, 0, 0.2);\n z-index: 1;\n .search-type-list-item {\n background: ', ';\n padding: 10px;\n cursor: pointer;\n font-size: 12px;\n &:hover {\n background-color: rgba(234, 234, 234, 0.5);\n }\n &:first-child {\n border-top-left-radius: 4px;\n border-top-right-radius: 4px;\n }\n &:last-child {\n border-bottom-left-radius: 4px;\n border-bottom-right-radius: 4px;\n }\n a {\n text-decoration: none;\n color: ', ';\n .id-type {\n color: ', ';\n }\n }\n }\n'], ['\n list-style: none;\n padding: 0px;\n width: 100%;\n float: left;\n position: absolute;\n margin: 0px;\n border-radius: 4px;\n background-color: ', ';\n box-shadow: 0 1px 4px 0 rgba(63, 63, 63, 0.3);\n border: 1px solid rgba(0, 0, 0, 0.2);\n z-index: 1;\n .search-type-list-item {\n background: ', ';\n padding: 10px;\n cursor: pointer;\n font-size: 12px;\n &:hover {\n background-color: rgba(234, 234, 234, 0.5);\n }\n &:first-child {\n border-top-left-radius: 4px;\n border-top-right-radius: 4px;\n }\n &:last-child {\n border-bottom-left-radius: 4px;\n border-bottom-right-radius: 4px;\n }\n a {\n text-decoration: none;\n color: ', ';\n .id-type {\n color: ', ';\n }\n }\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 SimpleSearchIcon = exports.SimpleSearchIcon = _styledComponents2.default.span(_templateObject, function (props) { return props.theme.accent.primary; }, function (props) { return props.theme.text.tertiary; }); SimpleSearchIcon.defaultProps = defaultProps; var SearchTypeList = exports.SearchTypeList = _styledComponents2.default.ul(_templateObject2, function (props) { return props.theme.white; }, function (props) { return props.theme.white; }, function (props) { return props.theme.text.primary; }, function (props) { return props.theme.text.tertiary; }); SearchTypeList.defaultProps = defaultProps;