New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

react-dropdown-select

Package Overview
Dependencies
Maintainers
1
Versions
120
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-dropdown-select - npm Package Compare versions

Comparing version 1.1.3 to 1.1.4

43

dist/components/Clear.js

@@ -1,42 +0,1 @@

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _styledBase = _interopRequireDefault(require("@emotion/styled-base"));
var _react = _interopRequireDefault(require("react"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
var Clear = function Clear(_ref) {
var parentProps = _ref.parentProps,
parentState = _ref.parentState,
parentMethods = _ref.parentMethods;
return parentProps.clearRenderer ? parentProps.clearRenderer(parentProps, parentState, parentMethods) : _react.default.createElement(ClearComponent, {
tabIndex: "-1",
onClick: function onClick() {
return parentMethods.clearAll();
},
onKeyPress: function onKeyPress() {
return parentMethods.clearAll();
}
}, "\xD7");
};
Clear.propTypes = {};
var ClearComponent = (0, _styledBase.default)("div", {
target: "e11qlq5e0",
label: "ClearComponent"
})(process.env.NODE_ENV === "production" ? {
name: "992gsg",
styles: "line-height:25px;margin:0 10px;cursor:pointer;:focus{outline:none;}:hover{color:tomato;}"
} : {
name: "992gsg",
styles: "line-height:25px;margin:0 10px;cursor:pointer;:focus{outline:none;}:hover{color:tomato;}",
map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9jb21wb25lbnRzL0NsZWFyLmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQWlCaUMiLCJmaWxlIjoiLi4vLi4vc3JjL2NvbXBvbmVudHMvQ2xlYXIuanMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgUmVhY3QgZnJvbSAncmVhY3QnO1xuaW1wb3J0IHN0eWxlZCBmcm9tICdAZW1vdGlvbi9zdHlsZWQnO1xuXG5jb25zdCBDbGVhciA9ICh7IHBhcmVudFByb3BzLCBwYXJlbnRTdGF0ZSwgcGFyZW50TWV0aG9kcyB9KSA9PlxuICBwYXJlbnRQcm9wcy5jbGVhclJlbmRlcmVyID8gKFxuICAgIHBhcmVudFByb3BzLmNsZWFyUmVuZGVyZXIocGFyZW50UHJvcHMsIHBhcmVudFN0YXRlLCBwYXJlbnRNZXRob2RzKVxuICApIDogKFxuICAgIDxDbGVhckNvbXBvbmVudFxuICAgICAgdGFiSW5kZXg9XCItMVwiXG4gICAgICBvbkNsaWNrPXsoKSA9PiBwYXJlbnRNZXRob2RzLmNsZWFyQWxsKCl9XG4gICAgICBvbktleVByZXNzPXsoKSA9PiBwYXJlbnRNZXRob2RzLmNsZWFyQWxsKCl9PlxuICAgICAgJnRpbWVzO1xuICAgIDwvQ2xlYXJDb21wb25lbnQ+XG4gICk7XG5cbkNsZWFyLnByb3BUeXBlcyA9IHt9O1xuXG5jb25zdCBDbGVhckNvbXBvbmVudCA9IHN0eWxlZC5kaXZgXG4gIGxpbmUtaGVpZ2h0OiAyNXB4O1xuICBtYXJnaW46IDAgMTBweDtcbiAgY3Vyc29yOiBwb2ludGVyO1xuICBcbiAgOmZvY3VzIHtcbiAgICBvdXRsaW5lOiBub25lO1xuICB9XG5cbiAgOmhvdmVyIHtcbiAgICBjb2xvcjogdG9tYXRvO1xuICB9XG5gO1xuXG5leHBvcnQgZGVmYXVsdCBDbGVhcjtcbiJdfQ== */"
});
var _default = Clear;
exports.default = _default;
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _styledBase=_interopRequireDefault(require("@emotion/styled-base")),_react=_interopRequireDefault(require("react"));function _interopRequireDefault(a){return a&&a.__esModule?a:{default:a}}var Clear=function(a){var b=a.parentProps,c=a.parentState,d=a.parentMethods;return b.clearRenderer?b.clearRenderer(b,c,d):_react.default.createElement(ClearComponent,{tabIndex:"-1",onClick:function a(){return d.clearAll()},onKeyPress:function a(){return d.clearAll()}},"\xD7")};Clear.propTypes={};var ClearComponent=(0,_styledBase.default)("div",{target:"e11qlq5e0",label:"ClearComponent"})("production"===process.env.NODE_ENV?{name:"992gsg",styles:"line-height:25px;margin:0 10px;cursor:pointer;:focus{outline:none;}:hover{color:tomato;}"}:{name:"992gsg",styles:"line-height:25px;margin:0 10px;cursor:pointer;:focus{outline:none;}:hover{color:tomato;}",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9jb21wb25lbnRzL0NsZWFyLmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQWlCaUMiLCJmaWxlIjoiLi4vLi4vc3JjL2NvbXBvbmVudHMvQ2xlYXIuanMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgUmVhY3QgZnJvbSAncmVhY3QnO1xuaW1wb3J0IHN0eWxlZCBmcm9tICdAZW1vdGlvbi9zdHlsZWQnO1xuXG5jb25zdCBDbGVhciA9ICh7IHBhcmVudFByb3BzLCBwYXJlbnRTdGF0ZSwgcGFyZW50TWV0aG9kcyB9KSA9PlxuICBwYXJlbnRQcm9wcy5jbGVhclJlbmRlcmVyID8gKFxuICAgIHBhcmVudFByb3BzLmNsZWFyUmVuZGVyZXIocGFyZW50UHJvcHMsIHBhcmVudFN0YXRlLCBwYXJlbnRNZXRob2RzKVxuICApIDogKFxuICAgIDxDbGVhckNvbXBvbmVudFxuICAgICAgdGFiSW5kZXg9XCItMVwiXG4gICAgICBvbkNsaWNrPXsoKSA9PiBwYXJlbnRNZXRob2RzLmNsZWFyQWxsKCl9XG4gICAgICBvbktleVByZXNzPXsoKSA9PiBwYXJlbnRNZXRob2RzLmNsZWFyQWxsKCl9PlxuICAgICAgJnRpbWVzO1xuICAgIDwvQ2xlYXJDb21wb25lbnQ+XG4gICk7XG5cbkNsZWFyLnByb3BUeXBlcyA9IHt9O1xuXG5jb25zdCBDbGVhckNvbXBvbmVudCA9IHN0eWxlZC5kaXZgXG4gIGxpbmUtaGVpZ2h0OiAyNXB4O1xuICBtYXJnaW46IDAgMTBweDtcbiAgY3Vyc29yOiBwb2ludGVyO1xuICBcbiAgOmZvY3VzIHtcbiAgICBvdXRsaW5lOiBub25lO1xuICB9XG5cbiAgOmhvdmVyIHtcbiAgICBjb2xvcjogdG9tYXRvO1xuICB9XG5gO1xuXG5leHBvcnQgZGVmYXVsdCBDbGVhcjtcbiJdfQ== */"}),_default=Clear;exports.default=_default;

@@ -1,55 +0,1 @@

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _styledBase = _interopRequireDefault(require("@emotion/styled-base"));
var _react = _interopRequireDefault(require("react"));
var _Option = _interopRequireDefault(require("./Option"));
var _Input = _interopRequireDefault(require("./Input"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
var Content = function Content(_ref) {
var parentProps = _ref.parentProps,
parentState = _ref.parentState,
parentMethods = _ref.parentMethods;
return _react.default.createElement(ContentComponent, {
className: "react-dropdown-select-content ".concat(parentProps.multi ? 'react-dropdown-select-type-multi' : 'react-dropdown-select-type-single'),
onClick: function onClick() {
return parentMethods.dropDown('open');
}
}, parentProps.contentRenderer ? parentProps.contentRenderer(parentProps, parentState, parentMethods) : _react.default.createElement(_react.default.Fragment, null, parentProps.multi ? parentState.values && parentState.values.map(function (item) {
return _react.default.createElement(_Option.default, {
key: "".concat(item.value).concat(item.label),
parentItem: item,
parentState: parentState,
parentProps: parentProps,
parentMethods: parentMethods
});
}) : parentState.values && parentState.values.length > 0 && _react.default.createElement("span", null, parentState.values[0].label), _react.default.createElement(_Input.default, {
parentProps: parentProps,
parentMethods: parentMethods,
parentState: parentState
})));
};
var ContentComponent = (0, _styledBase.default)("div", {
target: "e1gn6jc30",
label: "ContentComponent"
})(process.env.NODE_ENV === "production" ? {
name: "1rr4qq7",
styles: "flex:1;"
} : {
name: "1rr4qq7",
styles: "flex:1;",
map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9jb21wb25lbnRzL0NvbnRlbnQuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBeUNtQyIsImZpbGUiOiIuLi8uLi9zcmMvY29tcG9uZW50cy9Db250ZW50LmpzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IFJlYWN0IGZyb20gJ3JlYWN0JztcbmltcG9ydCBzdHlsZWQgZnJvbSAnQGVtb3Rpb24vc3R5bGVkJztcblxuaW1wb3J0IE9wdGlvbiBmcm9tICcuL09wdGlvbic7XG5pbXBvcnQgSW5wdXQgZnJvbSAnLi9JbnB1dCc7XG5cbmNvbnN0IENvbnRlbnQgPSAoeyBwYXJlbnRQcm9wcywgcGFyZW50U3RhdGUsIHBhcmVudE1ldGhvZHMgfSkgPT4ge1xuICByZXR1cm4gKFxuICAgIDxDb250ZW50Q29tcG9uZW50XG4gICAgICBjbGFzc05hbWU9e2ByZWFjdC1kcm9wZG93bi1zZWxlY3QtY29udGVudCAke1xuICAgICAgICBwYXJlbnRQcm9wcy5tdWx0aSA/ICdyZWFjdC1kcm9wZG93bi1zZWxlY3QtdHlwZS1tdWx0aScgOiAncmVhY3QtZHJvcGRvd24tc2VsZWN0LXR5cGUtc2luZ2xlJ1xuICAgICAgfWB9XG4gICAgICBvbkNsaWNrPXsoKSA9PiBwYXJlbnRNZXRob2RzLmRyb3BEb3duKCdvcGVuJyl9PlxuICAgICAge3BhcmVudFByb3BzLmNvbnRlbnRSZW5kZXJlciA/IChcbiAgICAgICAgcGFyZW50UHJvcHMuY29udGVudFJlbmRlcmVyKHBhcmVudFByb3BzLCBwYXJlbnRTdGF0ZSwgcGFyZW50TWV0aG9kcylcbiAgICAgICkgOiAoXG4gICAgICAgIDxSZWFjdC5GcmFnbWVudD5cbiAgICAgICAgICB7cGFyZW50UHJvcHMubXVsdGlcbiAgICAgICAgICAgID8gcGFyZW50U3RhdGUudmFsdWVzICYmXG4gICAgICAgICAgICAgIHBhcmVudFN0YXRlLnZhbHVlcy5tYXAoKGl0ZW0pID0+IChcbiAgICAgICAgICAgICAgICA8T3B0aW9uXG4gICAgICAgICAgICAgICAgICBrZXk9e2Ake2l0ZW0udmFsdWV9JHtpdGVtLmxhYmVsfWB9XG4gICAgICAgICAgICAgICAgICBwYXJlbnRJdGVtPXtpdGVtfVxuICAgICAgICAgICAgICAgICAgcGFyZW50U3RhdGU9e3BhcmVudFN0YXRlfVxuICAgICAgICAgICAgICAgICAgcGFyZW50UHJvcHM9e3BhcmVudFByb3BzfVxuICAgICAgICAgICAgICAgICAgcGFyZW50TWV0aG9kcz17cGFyZW50TWV0aG9kc31cbiAgICAgICAgICAgICAgICAvPlxuICAgICAgICAgICAgICApKVxuICAgICAgICAgICAgOiBwYXJlbnRTdGF0ZS52YWx1ZXMgJiZcbiAgICAgICAgICAgICAgcGFyZW50U3RhdGUudmFsdWVzLmxlbmd0aCA+IDAgJiYgPHNwYW4+e3BhcmVudFN0YXRlLnZhbHVlc1swXS5sYWJlbH08L3NwYW4+fVxuICAgICAgICAgIDxJbnB1dFxuICAgICAgICAgICAgcGFyZW50UHJvcHM9e3BhcmVudFByb3BzfVxuICAgICAgICAgICAgcGFyZW50TWV0aG9kcz17cGFyZW50TWV0aG9kc31cbiAgICAgICAgICAgIHBhcmVudFN0YXRlPXtwYXJlbnRTdGF0ZX1cbiAgICAgICAgICAvPlxuICAgICAgICA8L1JlYWN0LkZyYWdtZW50PlxuICAgICAgKX1cbiAgICA8L0NvbnRlbnRDb21wb25lbnQ+XG4gICk7XG59O1xuXG5jb25zdCBDb250ZW50Q29tcG9uZW50ID0gc3R5bGVkLmRpdmBcbiAgZmxleDogMTtcbmA7XG5cbkNvbnRlbnQucHJvcFR5cGVzID0ge307XG5cbmV4cG9ydCBkZWZhdWx0IENvbnRlbnQ7XG4iXX0= */"
});
Content.propTypes = {};
var _default = Content;
exports.default = _default;
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _styledBase=_interopRequireDefault(require("@emotion/styled-base")),_react=_interopRequireDefault(require("react")),_Option=_interopRequireDefault(require("./Option")),_Input=_interopRequireDefault(require("./Input"));function _interopRequireDefault(a){return a&&a.__esModule?a:{default:a}}var Content=function(a){var b=a.parentProps,c=a.parentState,d=a.parentMethods;return _react.default.createElement(ContentComponent,{className:"react-dropdown-select-content ".concat(b.multi?"react-dropdown-select-type-multi":"react-dropdown-select-type-single"),onClick:function a(){return d.dropDown("open")}},b.contentRenderer?b.contentRenderer(b,c,d):_react.default.createElement(_react.default.Fragment,null,b.multi?c.values&&c.values.map(function(a){return _react.default.createElement(_Option.default,{key:"".concat(a.value).concat(a.label),parentItem:a,parentState:c,parentProps:b,parentMethods:d})}):c.values&&0<c.values.length&&_react.default.createElement("span",null,c.values[0].label),_react.default.createElement(_Input.default,{parentProps:b,parentMethods:d,parentState:c})))},ContentComponent=(0,_styledBase.default)("div",{target:"e1gn6jc30",label:"ContentComponent"})("production"===process.env.NODE_ENV?{name:"1rr4qq7",styles:"flex:1;"}:{name:"1rr4qq7",styles:"flex:1;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9jb21wb25lbnRzL0NvbnRlbnQuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBeUNtQyIsImZpbGUiOiIuLi8uLi9zcmMvY29tcG9uZW50cy9Db250ZW50LmpzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IFJlYWN0IGZyb20gJ3JlYWN0JztcbmltcG9ydCBzdHlsZWQgZnJvbSAnQGVtb3Rpb24vc3R5bGVkJztcblxuaW1wb3J0IE9wdGlvbiBmcm9tICcuL09wdGlvbic7XG5pbXBvcnQgSW5wdXQgZnJvbSAnLi9JbnB1dCc7XG5cbmNvbnN0IENvbnRlbnQgPSAoeyBwYXJlbnRQcm9wcywgcGFyZW50U3RhdGUsIHBhcmVudE1ldGhvZHMgfSkgPT4ge1xuICByZXR1cm4gKFxuICAgIDxDb250ZW50Q29tcG9uZW50XG4gICAgICBjbGFzc05hbWU9e2ByZWFjdC1kcm9wZG93bi1zZWxlY3QtY29udGVudCAke1xuICAgICAgICBwYXJlbnRQcm9wcy5tdWx0aSA/ICdyZWFjdC1kcm9wZG93bi1zZWxlY3QtdHlwZS1tdWx0aScgOiAncmVhY3QtZHJvcGRvd24tc2VsZWN0LXR5cGUtc2luZ2xlJ1xuICAgICAgfWB9XG4gICAgICBvbkNsaWNrPXsoKSA9PiBwYXJlbnRNZXRob2RzLmRyb3BEb3duKCdvcGVuJyl9PlxuICAgICAge3BhcmVudFByb3BzLmNvbnRlbnRSZW5kZXJlciA/IChcbiAgICAgICAgcGFyZW50UHJvcHMuY29udGVudFJlbmRlcmVyKHBhcmVudFByb3BzLCBwYXJlbnRTdGF0ZSwgcGFyZW50TWV0aG9kcylcbiAgICAgICkgOiAoXG4gICAgICAgIDxSZWFjdC5GcmFnbWVudD5cbiAgICAgICAgICB7cGFyZW50UHJvcHMubXVsdGlcbiAgICAgICAgICAgID8gcGFyZW50U3RhdGUudmFsdWVzICYmXG4gICAgICAgICAgICAgIHBhcmVudFN0YXRlLnZhbHVlcy5tYXAoKGl0ZW0pID0+IChcbiAgICAgICAgICAgICAgICA8T3B0aW9uXG4gICAgICAgICAgICAgICAgICBrZXk9e2Ake2l0ZW0udmFsdWV9JHtpdGVtLmxhYmVsfWB9XG4gICAgICAgICAgICAgICAgICBwYXJlbnRJdGVtPXtpdGVtfVxuICAgICAgICAgICAgICAgICAgcGFyZW50U3RhdGU9e3BhcmVudFN0YXRlfVxuICAgICAgICAgICAgICAgICAgcGFyZW50UHJvcHM9e3BhcmVudFByb3BzfVxuICAgICAgICAgICAgICAgICAgcGFyZW50TWV0aG9kcz17cGFyZW50TWV0aG9kc31cbiAgICAgICAgICAgICAgICAvPlxuICAgICAgICAgICAgICApKVxuICAgICAgICAgICAgOiBwYXJlbnRTdGF0ZS52YWx1ZXMgJiZcbiAgICAgICAgICAgICAgcGFyZW50U3RhdGUudmFsdWVzLmxlbmd0aCA+IDAgJiYgPHNwYW4+e3BhcmVudFN0YXRlLnZhbHVlc1swXS5sYWJlbH08L3NwYW4+fVxuICAgICAgICAgIDxJbnB1dFxuICAgICAgICAgICAgcGFyZW50UHJvcHM9e3BhcmVudFByb3BzfVxuICAgICAgICAgICAgcGFyZW50TWV0aG9kcz17cGFyZW50TWV0aG9kc31cbiAgICAgICAgICAgIHBhcmVudFN0YXRlPXtwYXJlbnRTdGF0ZX1cbiAgICAgICAgICAvPlxuICAgICAgICA8L1JlYWN0LkZyYWdtZW50PlxuICAgICAgKX1cbiAgICA8L0NvbnRlbnRDb21wb25lbnQ+XG4gICk7XG59O1xuXG5jb25zdCBDb250ZW50Q29tcG9uZW50ID0gc3R5bGVkLmRpdmBcbiAgZmxleDogMTtcbmA7XG5cbkNvbnRlbnQucHJvcFR5cGVzID0ge307XG5cbmV4cG9ydCBkZWZhdWx0IENvbnRlbnQ7XG4iXX0= */"});Content.propTypes={};var _default=Content;exports.default=_default;

@@ -1,62 +0,1 @@

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _styledBase = _interopRequireDefault(require("@emotion/styled-base"));
var _react = _interopRequireDefault(require("react"));
var _NoData = _interopRequireDefault(require("./NoData"));
var _Item = _interopRequireDefault(require("./Item"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
var Dropdown = function Dropdown(_ref) {
var parentProps = _ref.parentProps,
parentState = _ref.parentState,
parentMethods = _ref.parentMethods;
return _react.default.createElement(DropDown, {
tabIndex: "-1",
"aria-expanded": "true",
role: "listbox",
selectBounds: parentState.selectBounds,
dropdownGap: parentProps.dropdownGap,
className: "react-dropdown-select-dropdown"
}, parentProps.dropdownRenderer ? parentProps.dropdownRenderer(parentProps, parentState, parentMethods) : _react.default.createElement(_react.default.Fragment, null, parentMethods.searchResults().length === 0 ? _react.default.createElement(_NoData.default, {
className: "react-dropdown-select-no-data",
parentState: parentState,
parentProps: parentProps,
parentMethods: parentMethods
}) : parentMethods.searchResults().map(function (item, itemIndex) {
return _react.default.createElement(_Item.default, {
key: item.value,
item: item,
index: itemIndex,
parentState: parentState,
parentProps: parentProps,
parentMethods: parentMethods
});
})));
};
Dropdown.propTypes = {};
var DropDown = (0, _styledBase.default)("div", {
target: "e1qjn9k90",
label: "DropDown"
})("position:absolute;top:", function (_ref2) {
var selectBounds = _ref2.selectBounds,
dropdownGap = _ref2.dropdownGap;
return selectBounds.bottom + dropdownGap;
}, "px;left:", function (_ref3) {
var selectBounds = _ref3.selectBounds;
return selectBounds.left;
}, "px;border:1px solid #ccc;width:", function (_ref4) {
var selectBounds = _ref4.selectBounds;
return selectBounds.width;
}, "px;padding:0;display:flex;flex-direction:column;background:#fff;border-radius:2px;box-shadow:0 0 10px 0 #0000003b;max-height:300px;overflow:auto;:focus{outline:none;}}" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9jb21wb25lbnRzL0Ryb3Bkb3duLmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQThDMkIiLCJmaWxlIjoiLi4vLi4vc3JjL2NvbXBvbmVudHMvRHJvcGRvd24uanMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgUmVhY3QgZnJvbSAncmVhY3QnO1xuaW1wb3J0IHN0eWxlZCBmcm9tICdAZW1vdGlvbi9zdHlsZWQnO1xuXG5pbXBvcnQgTm9EYXRhIGZyb20gJy4vTm9EYXRhJztcbmltcG9ydCBJdGVtIGZyb20gJy4vSXRlbSc7XG5cbmNvbnN0IERyb3Bkb3duID0gKHsgcGFyZW50UHJvcHMsIHBhcmVudFN0YXRlLCBwYXJlbnRNZXRob2RzIH0pID0+IChcbiAgPERyb3BEb3duXG4gICAgdGFiSW5kZXg9XCItMVwiXG4gICAgYXJpYS1leHBhbmRlZD1cInRydWVcIlxuICAgIHJvbGU9XCJsaXN0Ym94XCJcbiAgICBzZWxlY3RCb3VuZHM9e3BhcmVudFN0YXRlLnNlbGVjdEJvdW5kc31cbiAgICBkcm9wZG93bkdhcD17cGFyZW50UHJvcHMuZHJvcGRvd25HYXB9XG4gICAgY2xhc3NOYW1lPVwicmVhY3QtZHJvcGRvd24tc2VsZWN0LWRyb3Bkb3duXCI+XG4gICAge3BhcmVudFByb3BzLmRyb3Bkb3duUmVuZGVyZXIgPyAoXG4gICAgICBwYXJlbnRQcm9wcy5kcm9wZG93blJlbmRlcmVyKHBhcmVudFByb3BzLCBwYXJlbnRTdGF0ZSwgcGFyZW50TWV0aG9kcylcbiAgICApIDogKFxuICAgICAgPFJlYWN0LkZyYWdtZW50PlxuICAgICAgICB7cGFyZW50TWV0aG9kcy5zZWFyY2hSZXN1bHRzKCkubGVuZ3RoID09PSAwID8gKFxuICAgICAgICAgIDxOb0RhdGFcbiAgICAgICAgICAgIGNsYXNzTmFtZT1cInJlYWN0LWRyb3Bkb3duLXNlbGVjdC1uby1kYXRhXCJcbiAgICAgICAgICAgIHBhcmVudFN0YXRlPXtwYXJlbnRTdGF0ZX1cbiAgICAgICAgICAgIHBhcmVudFByb3BzPXtwYXJlbnRQcm9wc31cbiAgICAgICAgICAgIHBhcmVudE1ldGhvZHM9e3BhcmVudE1ldGhvZHN9XG4gICAgICAgICAgLz5cbiAgICAgICAgKSA6IChcbiAgICAgICAgICBwYXJlbnRNZXRob2RzXG4gICAgICAgICAgICAuc2VhcmNoUmVzdWx0cygpXG4gICAgICAgICAgICAubWFwKChpdGVtLCBpdGVtSW5kZXgpID0+IChcbiAgICAgICAgICAgICAgPEl0ZW1cbiAgICAgICAgICAgICAgICBrZXk9e2l0ZW0udmFsdWV9XG4gICAgICAgICAgICAgICAgaX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bHQgRHJvcGRvd247XG4iXX0= */"));
var _default = Dropdown;
exports.default = _default;
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _styledBase=_interopRequireDefault(require("@emotion/styled-base")),_react=_interopRequireDefault(require("react")),_NoData=_interopRequireDefault(require("./NoData")),_Item=_interopRequireDefault(require("./Item"));function _interopRequireDefault(a){return a&&a.__esModule?a:{default:a}}var Dropdown=function(a){var b=a.parentProps,c=a.parentState,d=a.parentMethods;return _react.default.createElement(DropDown,{tabIndex:"-1","aria-expanded":"true",role:"listbox",selectBounds:c.selectBounds,dropdownGap:b.dropdownGap,className:"react-dropdown-select-dropdown"},b.dropdownRenderer?b.dropdownRenderer(b,c,d):_react.default.createElement(_react.default.Fragment,null,0===d.searchResults().length?_react.default.createElement(_NoData.default,{className:"react-dropdown-select-no-data",parentState:c,parentProps:b,parentMethods:d}):d.searchResults().map(function(a,e){return _react.default.createElement(_Item.default,{key:a.value,item:a,index:e,parentState:c,parentProps:b,parentMethods:d})})))};Dropdown.propTypes={};var DropDown=(0,_styledBase.default)("div",{target:"e1qjn9k90",label:"DropDown"})("position:absolute;top:",function(a){var b=a.selectBounds,c=a.dropdownGap;return b.bottom+c},"px;left:",function(a){var b=a.selectBounds;return b.left},"px;border:1px solid #ccc;width:",function(a){var b=a.selectBounds;return b.width},"px;padding:0;display:flex;flex-direction:column;background:#fff;border-radius:2px;box-shadow:0 0 10px 0 #0000003b;max-height:300px;overflow:auto;:focus{outline:none;}}"+("production"===process.env.NODE_ENV?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9jb21wb25lbnRzL0Ryb3Bkb3duLmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQThDMkIiLCJmaWxlIjoiLi4vLi4vc3JjL2NvbXBvbmVudHMvRHJvcGRvd24uanMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgUm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6ICNmZmY7XG4gIGJvcmRlci1yYWRpdXM6IDJweDtcbiAgYm94LXNoYWRvdzogMCAwIDEwcHggMCAjMDAwMDAwM2I7XG4gIG1heC1oZWlnaHQ6IDMwMHB4O1xuICBvdmVyZmxvdzogYXV0bztcbiAgXG4gIDpmb2N1cyB7XG4gICAgb3V0bGluZTogbm9uZTtcbiAgfVxufVxuYDtcblxuZXhwb3J0IGRlZmF1bHQgRHJvcGRvd247XG4iXX0= */")),_default=Dropdown;exports.default=_default;

@@ -1,46 +0,1 @@

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _styledBase = _interopRequireDefault(require("@emotion/styled-base"));
var _react = _interopRequireDefault(require("react"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
var dropdownHandle = function dropdownHandle(_ref) {
var parentProps = _ref.parentProps,
parentState = _ref.parentState,
parentMethods = _ref.parentMethods;
return parentProps.dropdownHandleRenderer ? parentProps.dropdownHandleRenderer(parentProps, parentState, parentMethods) : _react.default.createElement(DropdownHandleComponent, {
tabIndex: "-1",
onClick: function onClick() {
return parentMethods.dropDown();
},
onKeyPress: function onKeyPress() {
return parentMethods.dropDown();
},
onKeyDown: function onKeyDown() {
return parentMethods.dropDown();
},
className: "react-dropdown-select-dropdown-handle"
}, parentState.dropdown ? _react.default.createElement(_react.default.Fragment, null, "\u203A") : _react.default.createElement(_react.default.Fragment, null, "\u2039"));
};
dropdownHandle.propTypes = {};
var DropdownHandleComponent = (0, _styledBase.default)("div", {
target: "e1vudypg0",
label: "DropdownHandleComponent"
})(process.env.NODE_ENV === "production" ? {
name: "17e6xx7",
styles: "width:20px;text-align:center;line-height:25px;transform:rotate(-90deg);cursor:pointer;font-size:26px;:focus{outline:none;color:deepskyblue;}"
} : {
name: "17e6xx7",
styles: "width:20px;text-align:center;line-height:25px;transform:rotate(-90deg);cursor:pointer;font-size:26px;:focus{outline:none;color:deepskyblue;}",
map: "/*# sourceMappingURL=data:application/json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hcXVvOzwvUmVhY3QuRnJhZ21lbnQ+XG4gICAgKX1cbiAgPC9Ecm9wZG93bkhhbmRsZUNvbXBvbmVudD5cbik7XG5cbmRyb3Bkb3duSGFuZGxlLnByb3BUeXBlcyA9IHt9O1xuXG5jb25zdCBEcm9wZG93bkhhbmRsZUNvbXBvbmVudCA9IHN0eWxlZC5kaXZgXG4gIHdpZHRoOiAyMHB4O1xuICB0ZXh0LWFsaWduOiBjZW50ZXI7XG4gIGxpbmUtaGVpZ2h0OiAyNXB4O1xuICB0cmFuc2Zvcm06IHJvdGF0ZSgtOTBkZWcpO1xuICBjdXJzb3I6IHBvaW50ZXI7XG4gIGZvbnQtc2l6ZTogMjZweDtcbiAgOmZvY3VzIHtcbiAgICBvdXRsaW5lOiBub25lO1xuICAgIGNvbG9yOiBkZWVwc2t5Ymx1ZTtcbiAgfVxuYDtcblxuZXhwb3J0IGRlZmF1bHQgZHJvcGRvd25IYW5kbGU7XG4iXX0= */"
});
var _default = dropdownHandle;
exports.default = _default;
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _styledBase=_interopRequireDefault(require("@emotion/styled-base")),_react=_interopRequireDefault(require("react"));function _interopRequireDefault(a){return a&&a.__esModule?a:{default:a}}var dropdownHandle=function(a){var b=a.parentProps,c=a.parentState,d=a.parentMethods;return b.dropdownHandleRenderer?b.dropdownHandleRenderer(b,c,d):_react.default.createElement(DropdownHandleComponent,{tabIndex:"-1",onClick:function a(){return d.dropDown()},onKeyPress:function a(){return d.dropDown()},onKeyDown:function a(){return d.dropDown()},className:"react-dropdown-select-dropdown-handle"},c.dropdown?_react.default.createElement(_react.default.Fragment,null,"\u203A"):_react.default.createElement(_react.default.Fragment,null,"\u2039"))};dropdownHandle.propTypes={};var DropdownHandleComponent=(0,_styledBase.default)("div",{target:"e1vudypg0",label:"DropdownHandleComponent"})("production"===process.env.NODE_ENV?{name:"17e6xx7",styles:"width:20px;text-align:center;line-height:25px;transform:rotate(-90deg);cursor:pointer;font-size:26px;:focus{outline:none;color:deepskyblue;}"}:{name:"17e6xx7",styles:"width:20px;text-align:center;line-height:25px;transform:rotate(-90deg);cursor:pointer;font-size:26px;:focus{outline:none;color:deepskyblue;}",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9jb21wb25lbnRzL0Ryb3Bkb3duSGFuZGxlLmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXNCMEMiLCJmaWxlIjoiLi4vLi4vc3JjL2NvbXBvbmVudHMvRHJvcGRvd25IYW5kbGUuanMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgUmVhY3QgZnJvbSAncmVhY3QnO1xuaW1wb3J0IHN0eWxlZCBmcm9tICdAZW1vdGlvbi9zdHlsZWQnO1xuXG5jb25zdCBkcm9wZG93bkhhbmRsZSA9ICh7IHBhcmVudFByb3BzLCBwYXJlbnRTdGF0ZSwgcGFyZW50TWV0aG9kcyB9KSA9PiBwYXJlbnRQcm9wcy5kcm9wZG93bkhhbmRsZVJlbmRlcmVyID8gKFxuICBwYXJlbnRQcm9wcy5kcm9wZG93bkhhbmRsZVJlbmRlcmVyKHBhcmVudFByb3BzLCBwYXJlbnRTdGF0ZSwgcGFyZW50TWV0aG9kcylcbikgOiAoXG4gIDxEcm9wZG93bkhhbmRsZUNvbXBvbmVudFxuICAgIHRhYkluZGV4PVwiLTFcIlxuICAgIG9uQ2xpY2s9eygpID0+IHBhcmVudE1ldGhvZHMuZHJvcERvd24oKX1cbiAgICBvbktleVByZXNzPXsoKSA9PiBwYXJlbnRNZXRob2RzLmRyb3BEb3duKCl9XG4gICAgb25LZXlEb3duPXsoKSA9PiBwYXJlbnRNZXRob2RzLmRyb3BEb3duKCl9XG4gICAgY2xhc3NOYW1lPVwicmVhY3QtZHJvcGRvd24tc2VsZWN0LWRyb3Bkb3duLWhhbmRsZVwiPlxuICAgIHtwYXJlbnRTdGF0ZS5kcm9wZG93biA/IChcbiAgICAgIDxSZWFjdC5GcmFnbWVudD4mcnNhcXVvOzwvUmVhY3QuRnJhZ21lbnQ+XG4gICAgKSA6IChcbiAgICAgIDxSZWFjdC5GcmFnbWVudD4mbHNhcXVvOzwvUmVhY3QuRnJhZ21lbnQ+XG4gICAgKX1cbiAgPC9Ecm9wZG93bkhhbmRsZUNvbXBvbmVudD5cbik7XG5cbmRyb3Bkb3duSGFuZGxlLnByb3BUeXBlcyA9IHt9O1xuXG5jb25zdCBEcm9wZG93bkhhbmRsZUNvbXBvbmVudCA9IHN0eWxlZC5kaXZgXG4gIHdpZHRoOiAyMHB4O1xuICB0ZXh0LWFsaWduOiBjZW50ZXI7XG4gIGxpbmUtaGVpZ2h0OiAyNXB4O1xuICB0cmFuc2Zvcm06IHJvdGF0ZSgtOTBkZWcpO1xuICBjdXJzb3I6IHBvaW50ZXI7XG4gIGZvbnQtc2l6ZTogMjZweDtcbiAgOmZvY3VzIHtcbiAgICBvdXRsaW5lOiBub25lO1xuICAgIGNvbG9yOiBkZWVwc2t5Ymx1ZTtcbiAgfVxuYDtcblxuZXhwb3J0IGRlZmF1bHQgZHJvcGRvd25IYW5kbGU7XG4iXX0= */"}),_default=dropdownHandle;exports.default=_default;

@@ -1,45 +0,1 @@

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _styledBase = _interopRequireDefault(require("@emotion/styled-base"));
var _react = _interopRequireDefault(require("react"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
var Input = function Input(_ref) {
var parentProps = _ref.parentProps,
parentState = _ref.parentState,
parentMethods = _ref.parentMethods;
var placeHolder = parentState.values && parentState.values.length > 0 && parentProps.addPlaceholder || parentProps.placeholder;
return parentProps.inputRenderer ? parentProps.inputRenderer(parentProps, parentState, parentMethods) : _react.default.createElement(InputComponent, {
tabIndex: "-1",
className: "react-dropdown-select-input",
size: parentMethods.getInputSize(),
value: parentState.search,
onClick: function onClick() {
return parentMethods.dropDown('open');
},
onChange: parentMethods.setSearch,
placeholder: placeHolder
});
};
Input.propTypes = {};
var InputComponent = (0, _styledBase.default)("input", {
target: "e11wid6y0",
label: "InputComponent"
})(process.env.NODE_ENV === "production" ? {
name: "12mid5e",
styles: "width:auto;border:none;margin-left:5px;background:transparent;font-size:smaller;:focus{outline:none;}"
} : {
name: "12mid5e",
styles: "width:auto;border:none;margin-left:5px;background:transparent;font-size:smaller;:focus{outline:none;}",
map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9jb21wb25lbnRzL0lucHV0LmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCbUMiLCJmaWxlIjoiLi4vLi4vc3JjL2NvbXBvbmVudHMvSW5wdXQuanMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgUmVhY3QgZnJvbSAncmVhY3QnO1xuaW1wb3J0IHN0eWxlZCBmcm9tICdAZW1vdGlvbi9zdHlsZWQnO1xuXG5jb25zdCBJbnB1dCA9ICh7IHBhcmVudFByb3BzLCBwYXJlbnRTdGF0ZSwgcGFyZW50TWV0aG9kcyB9KSA9PiB7XG4gIGNvbnN0IHBsYWNlSG9sZGVyID1cbiAgICAocGFyZW50U3RhdGUudmFsdWVzICYmIHBhcmVudFN0YXRlLnZhbHVlcy5sZW5ndGggPiAwICYmIHBhcmVudFByb3BzLmFkZFBsYWNlaG9sZGVyKSB8fFxuICAgIHBhcmVudFByb3BzLnBsYWNlaG9sZGVyO1xuXG4gIHJldHVybiBwYXJlbnRQcm9wcy5pbnB1dFJlbmRlcmVyID8gKFxuICAgIHBhcmVudFByb3BzLmlucHV0UmVuZGVyZXIocGFyZW50UHJvcHMsIHBhcmVudFN0YXRlLCBwYXJlbnRNZXRob2RzKVxuICApIDogKFxuICAgIDxJbnB1dENvbXBvbmVudFxuICAgICAgdGFiSW5kZXg9XCItMVwiXG4gICAgICBjbGFzc05hbWU9XCJyZWFjdC1kcm9wZG93bi1zZWxlY3QtaW5wdXRcIlxuICAgICAgc2l6ZT17cGFyZW50TWV0aG9kcy5nZXRJbnB1dFNpemUoKX1cbiAgICAgIHZhbHVlPXtwYXJlbnRTdGF0ZS5zZWFyY2h9XG4gICAgICBvbkNsaWNrPXsoKSA9PiBwYXJlbnRNZXRob2RzLmRyb3BEb3duKCdvcGVuJyl9XG4gICAgICBvbkNoYW5nZT17cGFyZW50TWV0aG9kcy5zZXRTZWFyY2h9XG4gICAgICBwbGFjZWhvbGRlcj17cGxhY2VIb2xkZXJ9XG4gICAgLz5cbiAgKTtcbn07XG5cbklucHV0LnByb3BUeXBlcyA9IHt9O1xuXG5jb25zdCBJbnB1dENvbXBvbmVudCA9IHN0eWxlZC5pbnB1dGBcbiAgd2lkdGg6IGF1dG87XG4gIGJvcmRlcjogbm9uZTtcbiAgbWFyZ2luLWxlZnQ6IDVweDtcbiAgYmFja2dyb3VuZDogdHJhbnNwYXJlbnQ7XG4gIGZvbnQtc2l6ZTogc21hbGxlcjtcbiAgOmZvY3VzIHtcbiAgICBvdXRsaW5lOiBub25lO1xuICB9XG5gO1xuXG5leHBvcnQgZGVmYXVsdCBJbnB1dDtcbiJdfQ== */"
});
var _default = Input;
exports.default = _default;
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _styledBase=_interopRequireDefault(require("@emotion/styled-base")),_react=_interopRequireDefault(require("react"));function _interopRequireDefault(a){return a&&a.__esModule?a:{default:a}}var Input=function(a){var b=a.parentProps,c=a.parentState,d=a.parentMethods,e=c.values&&0<c.values.length&&b.addPlaceholder||b.placeholder;return b.inputRenderer?b.inputRenderer(b,c,d):_react.default.createElement(InputComponent,{tabIndex:"-1",className:"react-dropdown-select-input",size:d.getInputSize(),value:c.search,onClick:function a(){return d.dropDown("open")},onChange:d.setSearch,placeholder:e})};Input.propTypes={};var InputComponent=(0,_styledBase.default)("input",{target:"e11wid6y0",label:"InputComponent"})("production"===process.env.NODE_ENV?{name:"12mid5e",styles:"width:auto;border:none;margin-left:5px;background:transparent;font-size:smaller;:focus{outline:none;}"}:{name:"12mid5e",styles:"width:auto;border:none;margin-left:5px;background:transparent;font-size:smaller;:focus{outline:none;}",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9jb21wb25lbnRzL0lucHV0LmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCbUMiLCJmaWxlIjoiLi4vLi4vc3JjL2NvbXBvbmVudHMvSW5wdXQuanMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgUmVhY3QgZnJvbSAncmVhY3QnO1xuaW1wb3J0IHN0eWxlZCBmcm9tICdAZW1vdGlvbi9zdHlsZWQnO1xuXG5jb25zdCBJbnB1dCA9ICh7IHBhcmVudFByb3BzLCBwYXJlbnRTdGF0ZSwgcGFyZW50TWV0aG9kcyB9KSA9PiB7XG4gIGNvbnN0IHBsYWNlSG9sZGVyID1cbiAgICAocGFyZW50U3RhdGUudmFsdWVzICYmIHBhcmVudFN0YXRlLnZhbHVlcy5sZW5ndGggPiAwICYmIHBhcmVudFByb3BzLmFkZFBsYWNlaG9sZGVyKSB8fFxuICAgIHBhcmVudFByb3BzLnBsYWNlaG9sZGVyO1xuXG4gIHJldHVybiBwYXJlbnRQcm9wcy5pbnB1dFJlbmRlcmVyID8gKFxuICAgIHBhcmVudFByb3BzLmlucHV0UmVuZGVyZXIocGFyZW50UHJvcHMsIHBhcmVudFN0YXRlLCBwYXJlbnRNZXRob2RzKVxuICApIDogKFxuICAgIDxJbnB1dENvbXBvbmVudFxuICAgICAgdGFiSW5kZXg9XCItMVwiXG4gICAgICBjbGFzc05hbWU9XCJyZWFjdC1kcm9wZG93bi1zZWxlY3QtaW5wdXRcIlxuICAgICAgc2l6ZT17cGFyZW50TWV0aG9kcy5nZXRJbnB1dFNpemUoKX1cbiAgICAgIHZhbHVlPXtwYXJlbnRTdGF0ZS5zZWFyY2h9XG4gICAgICBvbkNsaWNrPXsoKSA9PiBwYXJlbnRNZXRob2RzLmRyb3BEb3duKCdvcGVuJyl9XG4gICAgICBvbkNoYW5nZT17cGFyZW50TWV0aG9kcy5zZXRTZWFyY2h9XG4gICAgICBwbGFjZWhvbGRlcj17cGxhY2VIb2xkZXJ9XG4gICAgLz5cbiAgKTtcbn07XG5cbklucHV0LnByb3BUeXBlcyA9IHt9O1xuXG5jb25zdCBJbnB1dENvbXBvbmVudCA9IHN0eWxlZC5pbnB1dGBcbiAgd2lkdGg6IGF1dG87XG4gIGJvcmRlcjogbm9uZTtcbiAgbWFyZ2luLWxlZnQ6IDVweDtcbiAgYmFja2dyb3VuZDogdHJhbnNwYXJlbnQ7XG4gIGZvbnQtc2l6ZTogc21hbGxlcjtcbiAgOmZvY3VzIHtcbiAgICBvdXRsaW5lOiBub25lO1xuICB9XG5gO1xuXG5leHBvcnQgZGVmYXVsdCBJbnB1dDtcbiJdfQ== */"}),_default=Input;exports.default=_default;

@@ -1,49 +0,1 @@

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _styledBase = _interopRequireDefault(require("@emotion/styled-base"));
var _react = _interopRequireDefault(require("react"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
var Item = function Item(_ref) {
var parentProps = _ref.parentProps,
parentState = _ref.parentState,
parentMethods = _ref.parentMethods,
item = _ref.item,
itemIndex = _ref.itemIndex;
return parentProps.itemRenderer ? parentProps.itemRenderer(item, itemIndex, parentProps, parentState, parentMethods) : _react.default.createElement(ItemComponent, {
role: "option",
"aria-selected": parentMethods.isSelected(item),
"aria-label": item.label,
key: "".concat(item.value).concat(item.label),
tabIndex: "-1",
className: "react-dropdown-select-item ".concat(parentMethods.isSelected(item) ? 'react-dropdown-select-item-selected' : ''),
onClick: function onClick() {
return parentMethods.addItem(item);
},
onKeyPress: function onKeyPress() {
return parentMethods.addItem(item);
}
}, item.label);
};
Item.propTypes = {};
var ItemComponent = (0, _styledBase.default)("span", {
target: "evc32pp0",
label: "ItemComponent"
})(process.env.NODE_ENV === "production" ? {
name: "1w8xopz",
styles: "padding:10px;cursor:pointer;border-bottom:1px solid #fff;:hover,:focus{background:#f2f2f2;outline:none;}&.react-dropdown-select-item-selected{background:deepskyblue;color:#fff;border-bottom:1px solid #fff;}input{&[type='checkbox']{vertical-align:baseline;margin:0 10px 0 0;}}"
} : {
name: "1w8xopz",
styles: "padding:10px;cursor:pointer;border-bottom:1px solid #fff;:hover,:focus{background:#f2f2f2;outline:none;}&.react-dropdown-select-item-selected{background:deepskyblue;color:#fff;border-bottom:1px solid #fff;}input{&[type='checkbox']{vertical-align:baseline;margin:0 10px 0 0;}}",
map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9jb21wb25lbnRzL0l0ZW0uanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBd0JpQyIsImZpbGUiOiIuLi8uLi9zcmMvY29tcG9uZW50cy9JdGVtLmpzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IFJlYWN0IGZyb20gJ3JlYWN0JztcbmltcG9ydCBzdHlsZWQgZnJvbSAnQGVtb3Rpb24vc3R5bGVkJztcblxuY29uc3QgSXRlbSA9ICh7IHBhcmVudFByb3BzLCBwYXJlbnRTdGF0ZSwgcGFyZW50TWV0aG9kcywgaXRlbSwgaXRlbUluZGV4IH0pID0+XG4gIHBhcmVudFByb3BzLml0ZW1SZW5kZXJlciA/IChcbiAgICBwYXJlbnRQcm9wcy5pdGVtUmVuZGVyZXIoaXRlbSwgaXRlbUluZGV4LCBwYXJlbnRQcm9wcywgcGFyZW50U3RhdGUsIHBhcmVudE1ldGhvZHMpXG4gICkgOiAoXG4gICAgPEl0ZW1Db21wb25lbnRcbiAgICAgIHJvbGU9X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G4gICAgJlt0eXBlPSdjaGVja2JveCddIHtcbiAgICAgIHZlcnRpY2FsLWFsaWduOiBiYXNlbGluZTtcbiAgICAgIG1hcmdpbjogMCAxMHB4IDAgMDtcbiAgICB9XG4gIH1cbmA7XG5cbmV4cG9ydCBkZWZhdWx0IEl0ZW07XG4iXX0= */"
});
var _default = Item;
exports.default = _default;
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _styledBase=_interopRequireDefault(require("@emotion/styled-base")),_react=_interopRequireDefault(require("react"));function _interopRequireDefault(a){return a&&a.__esModule?a:{default:a}}var Item=function(a){var b=a.parentProps,c=a.parentState,d=a.parentMethods,e=a.item,f=a.itemIndex;return b.itemRenderer?b.itemRenderer(e,f,b,c,d):_react.default.createElement(ItemComponent,{role:"option","aria-selected":d.isSelected(e),"aria-label":e.label,key:"".concat(e.value).concat(e.label),tabIndex:"-1",className:"react-dropdown-select-item ".concat(d.isSelected(e)?"react-dropdown-select-item-selected":""),onClick:function a(){return d.addItem(e)},onKeyPress:function a(){return d.addItem(e)}},e.label)};Item.propTypes={};var ItemComponent=(0,_styledBase.default)("span",{target:"evc32pp0",label:"ItemComponent"})("production"===process.env.NODE_ENV?{name:"1w8xopz",styles:"padding:10px;cursor:pointer;border-bottom:1px solid #fff;:hover,:focus{background:#f2f2f2;outline:none;}&.react-dropdown-select-item-selected{background:deepskyblue;color:#fff;border-bottom:1px solid #fff;}input{&[type='checkbox']{vertical-align:baseline;margin:0 10px 0 0;}}"}:{name:"1w8xopz",styles:"padding:10px;cursor:pointer;border-bottom:1px solid #fff;:hover,:focus{background:#f2f2f2;outline:none;}&.react-dropdown-select-item-selected{background:deepskyblue;color:#fff;border-bottom:1px solid #fff;}input{&[type='checkbox']{vertical-align:baseline;margin:0 10px 0 0;}}",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9jb21wb25lbnRzL0l0ZW0uan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+XG4gICAgICB7aXRlbS5sYWJlbH1cbiAgICA8L0l0ZW1Db21wb25lbnQ+XG4gICk7XG5cbkl0ZW0ucHJvcFR5cGVzID0ge307XG5cbmNvbnN0IEl0ZW1Db21wb25lbnQgPSBzdHlsZWQuc3BhbmBcbiAgcGFkZGluZzogMTBweDtcbiAgY3Vyc29yOiBwb2ludGVyO1xuICBib3JkZXItYm90dG9tOiAxcHggc29saWQgI2ZmZjtcblxuICA6aG92ZXIsXG4gIDpmb2N1cyB7XG4gICAgYmFja2dyb3VuZDogI2YyZjJmMjtcbiAgICBvdXRsaW5lOiBub25lO1xuICB9XG5cbiAgJi5yZWFjdC1kcm9wZG93bi1zZWxlY3QtaXRlbS1zZWxlY3RlZCB7XG4gICAgYmFja2dyb3VuZDogZGVlcHNreWJsdWU7XG4gICAgY29sb3I6ICNmZmY7XG4gICAgYm9yZGVyLWJvdHRvbTogMXB4IHNvbGlkICNmZmY7XG4gIH1cblxuICBpbnB1dCB7XG4gICAgJlt0eXBlPSdjaGVja2JveCddIHtcbiAgICAgIHZlcnRpY2FsLWFsaWduOiBiYXNlbGluZTtcbiAgICAgIG1hcmdpbjogMCAxMHB4IDAgMDtcbiAgICB9XG4gIH1cbmA7XG5cbmV4cG9ydCBkZWZhdWx0IEl0ZW07XG4iXX0= */"}),_default=Item;exports.default=_default;

@@ -1,33 +0,1 @@

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _styledBase = _interopRequireDefault(require("@emotion/styled-base"));
var _react = _interopRequireDefault(require("react"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
var Loading = function Loading(parentProps) {
return parentProps.loadingRenderer ? parentProps.loadingRenderer() : _react.default.createElement(LoadingComponent, {
className: "react-dropdown-select-loading"
});
};
Loading.propTypes = {};
var LoadingComponent = (0, _styledBase.default)("div", {
target: "e1l5cpc30",
label: "LoadingComponent"
})(process.env.NODE_ENV === "production" ? {
name: "1a6p9gc",
styles: "@keyframes dual-ring-spin{0%{transform:rotate(0deg);}100%{transform:rotate(180deg);}}padding:0 5px;display:block;width:auto;height:auto;:after{content:' ';display:block;width:16px;height:16px;border-radius:50%;border-width:1px;border-style:solid;border-color:deepskyblue transparent;animation:dual-ring-spin 0.7s ease-in-out infinite;margin:0 0 0 -10px;}"
} : {
name: "1a6p9gc",
styles: "@keyframes dual-ring-spin{0%{transform:rotate(0deg);}100%{transform:rotate(180deg);}}padding:0 5px;display:block;width:auto;height:auto;:after{content:' ';display:block;width:16px;height:16px;border-radius:50%;border-width:1px;border-style:solid;border-color:deepskyblue transparent;animation:dual-ring-spin 0.7s ease-in-out infinite;margin:0 0 0 -10px;}",
map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9jb21wb25lbnRzL0xvYWRpbmcuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBWW1DIiwiZmlsZSI6Ii4uLy4uL3NyYy9jb21wb25lbnRzL0xvYWRpbmcuanMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgUmVhY3QgZnJvbSAncmVhY3QnO1xuaW1wb3J0IHN0eWxlZCBmcm9tICdAZW1vdGlvbi9zdHlsZWQnO1xuXG5jb25zdCBMb2FkaW5nID0gKHBhcmVudFByb3BzKSA9PlxuICBwYXJlbnRQcm9wcy5sb2FkaW5nUmVuZGVyZXIgPyAoXG4gICAgcGFyZW50UHJvcHMubG9hZGluZ1JlbmRlcmVyKClcbiAgKSA6IChcbiAgICA8TG9hZGluZ0NvbXBvbmVudCBjbGFzc05hbWU9XCJyZWFjdC1kcm9wZG93bi1zZWxlY3QtbG9hZGluZ1wiIC8+XG4gICk7XG5cbkxvYWRpbmcucHJvcFR5cGVzID0ge307XG5cbmNvbnN0IExvYWRpbmdDb21wb25lbnQgPSBzdHlsZWQuZGl2YFxuICBAa2V5ZnJhbWVzIGR1YWwtcmluZy1zcGluIHtcbiAgICAwJSB7XG4gICAgICB0cmFuc2Zvcm06IHJvdGF0ZSgwZGVnKTtcbiAgICB9XG4gICAgMTAwJSB7XG4gICAgICB0cmFuc2Zvcm06IHJvdGF0ZSgxODBkZWcpO1xuICAgIH1cbiAgfVxuXG4gIHBhZGRpbmc6IDAgNXB4O1xuICBkaXNwbGF5OiBibG9jaztcbiAgd2lkdGg6IGF1dG87XG4gIGhlaWdodDogYXV0bztcblxuICA6YWZ0ZXIge1xuICAgIGNvbnRlbnQ6ICcgJztcbiAgICBkaXNwbGF5OiBibG9jaztcbiAgICB3aWR0aDogMTZweDtcbiAgICBoZWlnaHQ6IDE2cHg7XG4gICAgYm9yZGVyLXJhZGl1czogNTAlO1xuICAgIGJvcmRlci13aWR0aDogMXB4O1xuICAgIGJvcmRlci1zdHlsZTogc29saWQ7XG4gICAgYm9yZGVyLWNvbG9yOiBkZWVwc2t5Ymx1ZSB0cmFuc3BhcmVudDtcbiAgICBhbmltYXRpb246IGR1YWwtcmluZy1zcGluIDAuN3MgZWFzZS1pbi1vdXQgaW5maW5pdGU7XG4gICAgbWFyZ2luOiAwIDAgMCAtMTBweDtcbiAgfVxuYDtcblxuZXhwb3J0IGRlZmF1bHQgTG9hZGluZztcbiJdfQ== */"
});
var _default = Loading;
exports.default = _default;
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _styledBase=_interopRequireDefault(require("@emotion/styled-base")),_react=_interopRequireDefault(require("react"));function _interopRequireDefault(a){return a&&a.__esModule?a:{default:a}}var Loading=function(a){return a.loadingRenderer?a.loadingRenderer():_react.default.createElement(LoadingComponent,{className:"react-dropdown-select-loading"})};Loading.propTypes={};var LoadingComponent=(0,_styledBase.default)("div",{target:"e1l5cpc30",label:"LoadingComponent"})("production"===process.env.NODE_ENV?{name:"1a6p9gc",styles:"@keyframes dual-ring-spin{0%{transform:rotate(0deg);}100%{transform:rotate(180deg);}}padding:0 5px;display:block;width:auto;height:auto;:after{content:' ';display:block;width:16px;height:16px;border-radius:50%;border-width:1px;border-style:solid;border-color:deepskyblue transparent;animation:dual-ring-spin 0.7s ease-in-out infinite;margin:0 0 0 -10px;}"}:{name:"1a6p9gc",styles:"@keyframes dual-ring-spin{0%{transform:rotate(0deg);}100%{transform:rotate(180deg);}}padding:0 5px;display:block;width:auto;height:auto;:after{content:' ';display:block;width:16px;height:16px;border-radius:50%;border-width:1px;border-style:solid;border-color:deepskyblue transparent;animation:dual-ring-spin 0.7s ease-in-out infinite;margin:0 0 0 -10px;}",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9jb21wb25lbnRzL0xvYWRpbmcuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBWW1DIiwiZmlsZSI6Ii4uLy4uL3NyYy9jb21wb25lbnRzL0xvYWRpbmcuanMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgUmVhY3QgZnJvbSAncmVhY3QnO1xuaW1wb3J0IHN0eWxlZCBmcm9tICdAZW1vdGlvbi9zdHlsZWQnO1xuXG5jb25zdCBMb2FkaW5nID0gKHBhcmVudFByb3BzKSA9PlxuICBwYXJlbnRQcm9wcy5sb2FkaW5nUmVuZGVyZXIgPyAoXG4gICAgcGFyZW50UHJvcHMubG9hZGluZ1JlbmRlcmVyKClcbiAgKSA6IChcbiAgICA8TG9hZGluZ0NvbXBvbmVudCBjbGFzc05hbWU9XCJyZWFjdC1kcm9wZG93bi1zZWxlY3QtbG9hZGluZ1wiIC8+XG4gICk7XG5cbkxvYWRpbmcucHJvcFR5cGVzID0ge307XG5cbmNvbnN0IExvYWRpbmdDb21wb25lbnQgPSBzdHlsZWQuZGl2YFxuICBAa2V5ZnJhbWVzIGR1YWwtcmluZy1zcGluIHtcbiAgICAwJSB7XG4gICAgICB0cmFuc2Zvcm06IHJvdGF0ZSgwZGVnKTtcbiAgICB9XG4gICAgMTAwJSB7XG4gICAgICB0cmFuc2Zvcm06IHJvdGF0ZSgxODBkZWcpO1xuICAgIH1cbiAgfVxuXG4gIHBhZGRpbmc6IDAgNXB4O1xuICBkaXNwbGF5OiBibG9jaztcbiAgd2lkdGg6IGF1dG87XG4gIGhlaWdodDogYXV0bztcblxuICA6YWZ0ZXIge1xuICAgIGNvbnRlbnQ6ICcgJztcbiAgICBkaXNwbGF5OiBibG9jaztcbiAgICB3aWR0aDogMTZweDtcbiAgICBoZWlnaHQ6IDE2cHg7XG4gICAgYm9yZGVyLXJhZGl1czogNTAlO1xuICAgIGJvcmRlci13aWR0aDogMXB4O1xuICAgIGJvcmRlci1zdHlsZTogc29saWQ7XG4gICAgYm9yZGVyLWNvbG9yOiBkZWVwc2t5Ymx1ZSB0cmFuc3BhcmVudDtcbiAgICBhbmltYXRpb246IGR1YWwtcmluZy1zcGluIDAuN3MgZWFzZS1pbi1vdXQgaW5maW5pdGU7XG4gICAgbWFyZ2luOiAwIDAgMCAtMTBweDtcbiAgfVxuYDtcblxuZXhwb3J0IGRlZmF1bHQgTG9hZGluZztcbiJdfQ== */"}),_default=Loading;exports.default=_default;

@@ -1,34 +0,1 @@

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _styledBase = _interopRequireDefault(require("@emotion/styled-base"));
var _react = _interopRequireDefault(require("react"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
var NoData = function NoData(_ref) {
var parentProps = _ref.parentProps,
parentState = _ref.parentState,
parentMethods = _ref.parentMethods;
return parentProps.noDataRenderer ? parentProps.noDataRenderer(parentProps, parentState, parentMethods) : _react.default.createElement(NoDataComponent, null, parentProps.noDataLabel);
};
NoData.propTypes = {};
var NoDataComponent = (0, _styledBase.default)("div", {
target: "e1l5ho1t0",
label: "NoDataComponent"
})(process.env.NODE_ENV === "production" ? {
name: "5e6bao",
styles: "padding:10px;text-align:center;color:deepskyblue;"
} : {
name: "5e6bao",
styles: "padding:10px;text-align:center;color:deepskyblue;",
map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9jb21wb25lbnRzL05vRGF0YS5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFja0MiLCJmaWxlIjoiLi4vLi4vc3JjL2NvbXBvbmVudHMvTm9EYXRhLmpzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IFJlYWN0IGZyb20gJ3JlYWN0JztcbmltcG9ydCBzdHlsZWQgZnJvbSAnQGVtb3Rpb24vc3R5bGVkJztcblxuY29uc3QgTm9EYXRhID0gKHsgcGFyZW50UHJvcHMsIHBhcmVudFN0YXRlLCBwYXJlbnRNZXRob2RzIH0pID0+XG4gIHBhcmVudFByb3BzLm5vRGF0YVJlbmRlcmVyID8gKFxuICAgIHBhcmVudFByb3BzLm5vRGF0YVJlbmRlcmVyKHBhcmVudFByb3BzLCBwYXJlbnRTdGF0ZSwgcGFyZW50TWV0aG9kcylcbiAgKSA6IChcbiAgICA8Tm9EYXRhQ29tcG9uZW50PlxuICAgICAgeyBwYXJlbnRQcm9wcy5ub0RhdGFMYWJlbCB9XG4gICAgPC9Ob0RhdGFDb21wb25lbnQ+XG4gICk7XG5cbk5vRGF0YS5wcm9wVHlwZXMgPSB7fTtcblxuY29uc3QgTm9EYXRhQ29tcG9uZW50ID0gc3R5bGVkLmRpdmBcbiAgcGFkZGluZzogMTBweDtcbiAgdGV4dC1hbGlnbjogY2VudGVyO1xuICBjb2xvcjogZGVlcHNreWJsdWU7XG5gO1xuXG5leHBvcnQgZGVmYXVsdCBOb0RhdGE7XG4iXX0= */"
});
var _default = NoData;
exports.default = _default;
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _styledBase=_interopRequireDefault(require("@emotion/styled-base")),_react=_interopRequireDefault(require("react"));function _interopRequireDefault(a){return a&&a.__esModule?a:{default:a}}var NoData=function(a){var b=a.parentProps,c=a.parentState,d=a.parentMethods;return b.noDataRenderer?b.noDataRenderer(b,c,d):_react.default.createElement(NoDataComponent,null,b.noDataLabel)};NoData.propTypes={};var NoDataComponent=(0,_styledBase.default)("div",{target:"e1l5ho1t0",label:"NoDataComponent"})("production"===process.env.NODE_ENV?{name:"5e6bao",styles:"padding:10px;text-align:center;color:deepskyblue;"}:{name:"5e6bao",styles:"padding:10px;text-align:center;color:deepskyblue;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9jb21wb25lbnRzL05vRGF0YS5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFja0MiLCJmaWxlIjoiLi4vLi4vc3JjL2NvbXBvbmVudHMvTm9EYXRhLmpzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IFJlYWN0IGZyb20gJ3JlYWN0JztcbmltcG9ydCBzdHlsZWQgZnJvbSAnQGVtb3Rpb24vc3R5bGVkJztcblxuY29uc3QgTm9EYXRhID0gKHsgcGFyZW50UHJvcHMsIHBhcmVudFN0YXRlLCBwYXJlbnRNZXRob2RzIH0pID0+XG4gIHBhcmVudFByb3BzLm5vRGF0YVJlbmRlcmVyID8gKFxuICAgIHBhcmVudFByb3BzLm5vRGF0YVJlbmRlcmVyKHBhcmVudFByb3BzLCBwYXJlbnRTdGF0ZSwgcGFyZW50TWV0aG9kcylcbiAgKSA6IChcbiAgICA8Tm9EYXRhQ29tcG9uZW50PlxuICAgICAgeyBwYXJlbnRQcm9wcy5ub0RhdGFMYWJlbCB9XG4gICAgPC9Ob0RhdGFDb21wb25lbnQ+XG4gICk7XG5cbk5vRGF0YS5wcm9wVHlwZXMgPSB7fTtcblxuY29uc3QgTm9EYXRhQ29tcG9uZW50ID0gc3R5bGVkLmRpdmBcbiAgcGFkZGluZzogMTBweDtcbiAgdGV4dC1hbGlnbjogY2VudGVyO1xuICBjb2xvcjogZGVlcHNreWJsdWU7XG5gO1xuXG5leHBvcnQgZGVmYXVsdCBOb0RhdGE7XG4iXX0= */"}),_default=NoData;exports.default=_default;

@@ -1,46 +0,1 @@

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _styledBase = _interopRequireDefault(require("@emotion/styled-base"));
var _react = _interopRequireDefault(require("react"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
var Option = function Option(_ref) {
var parentProps = _ref.parentProps,
parentState = _ref.parentState,
parentMethods = _ref.parentMethods,
parentItem = _ref.parentItem;
return parentItem && parentProps.optionRenderer ? parentProps.optionRenderer(parentItem, parentProps, parentState, parentMethods) : _react.default.createElement(OptionComponent, {
role: "list-item",
disabled: parentProps.disabled,
className: "react-dropdown-select-option"
}, _react.default.createElement("span", {
className: "react-dropdown-select-option-label"
}, parentItem.label), _react.default.createElement("span", {
className: "react-dropdown-select-option-remove",
onClick: function onClick(event) {
return parentMethods.removeItem(event, parentItem, true);
}
}, "\xD7"));
};
Option.propTypes = {};
var OptionComponent = (0, _styledBase.default)("span", {
target: "e1l4eby50",
label: "OptionComponent"
})(process.env.NODE_ENV === "production" ? {
name: "ibyz5f",
styles: "padding:0 5px;border-radius:2px;line-height:21px;margin:3px 0 3px 5px;background:deepskyblue;color:#fff;white-space:nowrap;display:inline-block;.react-dropdown-select-option-remove{cursor:pointer;width:22px;height:22px;display:inline-block;text-align:center;margin:0 -5px 0 0px;border-radius:0 3px 3px 0;:hover{color:tomato;}}:hover,:hover > span{background:#00a7e6;}"
} : {
name: "ibyz5f",
styles: "padding:0 5px;border-radius:2px;line-height:21px;margin:3px 0 3px 5px;background:deepskyblue;color:#fff;white-space:nowrap;display:inline-block;.react-dropdown-select-option-remove{cursor:pointer;width:22px;height:22px;display:inline-block;text-align:center;margin:0 -5px 0 0px;border-radius:0 3px 3px 0;:hover{color:tomato;}}:hover,:hover > span{background:#00a7e6;}",
map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIj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aW1lcztcbiAgICAgIDwvc3Bhbj5cbiAgICA8L09wdGlvbkNvbXBvbmVudD5cbiAgKTtcblxuT3B0aW9uLnByb3BUeXBlcyA9IHt9O1xuXG5jb25zdCBPcHRpb25Db21wb25lbnQgPSBzdHlsZWQuc3BhbmBcbiAgcGFkZGluZzogMCA1cHg7XG4gIGJvcmRlci1yYWRpdXM6IDJweDtcbiAgbGluZS1oZWlnaHQ6IDIxcHg7XG4gIG1hcmdpbjogM3B4IDAgM3B4IDVweDtcbiAgYmFja2dyb3VuZDogZGVlcHNreWJsdWU7XG4gIGNvbG9yOiAjZmZmO1xuICB3aGl0ZS1zcGFjZTogbm93cmFwO1xuICBkaXNwbGF5OiBpbmxpbmUtYmxvY2s7XG5cbiAgLnJlYWN0LWRyb3Bkb3duLXNlbGVjdC1vcHRpb24tcmVtb3ZlIHtcbiAgICBjdXJzb3I6IHBvaW50ZXI7XG4gICAgd2lkdGg6IDIycHg7XG4gICAgaGVpZ2h0OiAyMnB4O1xuICAgIGRpc3BsYXk6IGlubGluZS1ibG9jaztcbiAgICB0ZXh0LWFsaWduOiBjZW50ZXI7XG4gICAgbWFyZ2luOiAwIC01cHggMCAwcHg7XG4gICAgYm9yZGVyLXJhZGl1czogMCAzcHggM3B4IDA7XG5cbiAgICA6aG92ZXIge1xuICAgICAgY29sb3I6IHRvbWF0bztcbiAgICB9XG4gIH1cblxuICA6aG92ZXIsXG4gIDpob3ZlciA+IHNwYW4ge1xuICAgIGJhY2tncm91bmQ6ICMwMGE3ZTY7XG4gIH1cbmA7XG5cbmV4cG9ydCBkZWZhdWx0IE9wdGlvbjtcbiJdfQ== */"
});
var _default = Option;
exports.default = _default;
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _styledBase=_interopRequireDefault(require("@emotion/styled-base")),_react=_interopRequireDefault(require("react"));function _interopRequireDefault(a){return a&&a.__esModule?a:{default:a}}var Option=function(a){var b=a.parentProps,c=a.parentState,d=a.parentMethods,e=a.parentItem;return e&&b.optionRenderer?b.optionRenderer(e,b,c,d):_react.default.createElement(OptionComponent,{role:"list-item",disabled:b.disabled,className:"react-dropdown-select-option"},_react.default.createElement("span",{className:"react-dropdown-select-option-label"},e.label),_react.default.createElement("span",{className:"react-dropdown-select-option-remove",onClick:function b(a){return d.removeItem(a,e,!0)}},"\xD7"))};Option.propTypes={};var OptionComponent=(0,_styledBase.default)("span",{target:"e1l4eby50",label:"OptionComponent"})("production"===process.env.NODE_ENV?{name:"ibyz5f",styles:"padding:0 5px;border-radius:2px;line-height:21px;margin:3px 0 3px 5px;background:deepskyblue;color:#fff;white-space:nowrap;display:inline-block;.react-dropdown-select-option-remove{cursor:pointer;width:22px;height:22px;display:inline-block;text-align:center;margin:0 -5px 0 0px;border-radius:0 3px 3px 0;:hover{color:tomato;}}:hover,:hover > span{background:#00a7e6;}"}:{name:"ibyz5f",styles:"padding:0 5px;border-radius:2px;line-height:21px;margin:3px 0 3px 5px;background:deepskyblue;color:#fff;white-space:nowrap;display:inline-block;.react-dropdown-select-option-remove{cursor:pointer;width:22px;height:22px;display:inline-block;text-align:center;margin:0 -5px 0 0px;border-radius:0 3px 3px 0;:hover{color:tomato;}}:hover,:hover > span{background:#00a7e6;}",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9jb21wb25lbnRzL09wdGlvbi5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFzQm1DIiwiZmlsZSI6Ii4uLy4uL3NyYy9jb21wb25lbnRzL09wdGlvbi5qcyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBSZWFjdCBmcm9tICdyZWFjdCc7XG5pbXBvcnQgc3R5bGVkIGZyb20gJ0BlbW90aW9uL3N0eWxlZCc7XG5cbmNvbnN0IE9wdGlvbiA9ICh7IHBhcmVudFByb3BzLCBwYXJlbnRTdGF0ZSwgcGFyZW50TWV0aG9kcywgcGFyZW50S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xuICBkaXNwbGF5OiBpbmxpbmUtYmxvY2s7XG5cbiAgLnJlYWN0LWRyb3Bkb3duLXNlbGVjdC1vcHRpb24tcmVtb3ZlIHtcbiAgICBjdXJzb3I6IHBvaW50ZXI7XG4gICAgd2lkdGg6IDIycHg7XG4gICAgaGVpZ2h0OiAyMnB4O1xuICAgIGRpc3BsYXk6IGlubGluZS1ibG9jaztcbiAgICB0ZXh0LWFsaWduOiBjZW50ZXI7XG4gICAgbWFyZ2luOiAwIC01cHggMCAwcHg7XG4gICAgYm9yZGVyLXJhZGl1czogMCAzcHggM3B4IDA7XG5cbiAgICA6aG92ZXIge1xuICAgICAgY29sb3I6IHRvbWF0bztcbiAgICB9XG4gIH1cblxuICA6aG92ZXIsXG4gIDpob3ZlciA+IHNwYW4ge1xuICAgIGJhY2tncm91bmQ6ICMwMGE3ZTY7XG4gIH1cbmA7XG5cbmV4cG9ydCBkZWZhdWx0IE9wdGlvbjtcbiJdfQ== */"}),_default=Option;exports.default=_default;

@@ -1,36 +0,1 @@

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _styledBase = _interopRequireDefault(require("@emotion/styled-base"));
var _react = _interopRequireDefault(require("react"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
var Separator = function Separator(_ref) {
var parentProps = _ref.parentProps,
parentState = _ref.parentState,
parentMethods = _ref.parentMethods;
return parentProps.separatorRenderer ? parentProps.separatorRenderer(parentProps, parentState, parentMethods) : _react.default.createElement(SeparatorComponent, {
className: "react-dropdown-select-separator"
});
};
Separator.propTypes = {};
var SeparatorComponent = (0, _styledBase.default)("div", {
target: "e19h5j1v0",
label: "SeparatorComponent"
})(process.env.NODE_ENV === "production" ? {
name: "gjy0ue",
styles: "border-left:1px solid #ccc;width:1px;height:25px;display:block;"
} : {
name: "gjy0ue",
styles: "border-left:1px solid #ccc;width:1px;height:25px;display:block;",
map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9jb21wb25lbnRzL1NlcGFyYXRvci5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFXcUMiLCJmaWxlIjoiLi4vLi4vc3JjL2NvbXBvbmVudHMvU2VwYXJhdG9yLmpzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IFJlYWN0IGZyb20gJ3JlYWN0JztcbmltcG9ydCBzdHlsZWQgZnJvbSAnQGVtb3Rpb24vc3R5bGVkJztcblxuY29uc3QgU2VwYXJhdG9yID0gKHsgcGFyZW50UHJvcHMsIHBhcmVudFN0YXRlLCBwYXJlbnRNZXRob2RzIH0pID0+IHBhcmVudFByb3BzLnNlcGFyYXRvclJlbmRlcmVyID8gKFxuICBwYXJlbnRQcm9wcy5zZXBhcmF0b3JSZW5kZXJlcihwYXJlbnRQcm9wcywgcGFyZW50U3RhdGUsIHBhcmVudE1ldGhvZHMpXG4pIDogKFxuICA8U2VwYXJhdG9yQ29tcG9uZW50IGNsYXNzTmFtZT1cInJlYWN0LWRyb3Bkb3duLXNlbGVjdC1zZXBhcmF0b3JcIiAvPlxuKTtcblxuU2VwYXJhdG9yLnByb3BUeXBlcyA9IHt9O1xuXG5jb25zdCBTZXBhcmF0b3JDb21wb25lbnQgPSBzdHlsZWQuZGl2YFxuICBib3JkZXItbGVmdDogMXB4IHNvbGlkICNjY2M7XG4gIHdpZHRoOiAxcHg7XG4gIGhlaWdodDogMjVweDtcbiAgZGlzcGxheTogYmxvY2s7XG5gO1xuXG5leHBvcnQgZGVmYXVsdCBTZXBhcmF0b3I7XG4iXX0= */"
});
var _default = Separator;
exports.default = _default;
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _styledBase=_interopRequireDefault(require("@emotion/styled-base")),_react=_interopRequireDefault(require("react"));function _interopRequireDefault(a){return a&&a.__esModule?a:{default:a}}var Separator=function(a){var b=a.parentProps,c=a.parentState,d=a.parentMethods;return b.separatorRenderer?b.separatorRenderer(b,c,d):_react.default.createElement(SeparatorComponent,{className:"react-dropdown-select-separator"})};Separator.propTypes={};var SeparatorComponent=(0,_styledBase.default)("div",{target:"e19h5j1v0",label:"SeparatorComponent"})("production"===process.env.NODE_ENV?{name:"gjy0ue",styles:"border-left:1px solid #ccc;width:1px;height:25px;display:block;"}:{name:"gjy0ue",styles:"border-left:1px solid #ccc;width:1px;height:25px;display:block;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9jb21wb25lbnRzL1NlcGFyYXRvci5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFXcUMiLCJmaWxlIjoiLi4vLi4vc3JjL2NvbXBvbmVudHMvU2VwYXJhdG9yLmpzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IFJlYWN0IGZyb20gJ3JlYWN0JztcbmltcG9ydCBzdHlsZWQgZnJvbSAnQGVtb3Rpb24vc3R5bGVkJztcblxuY29uc3QgU2VwYXJhdG9yID0gKHsgcGFyZW50UHJvcHMsIHBhcmVudFN0YXRlLCBwYXJlbnRNZXRob2RzIH0pID0+IHBhcmVudFByb3BzLnNlcGFyYXRvclJlbmRlcmVyID8gKFxuICBwYXJlbnRQcm9wcy5zZXBhcmF0b3JSZW5kZXJlcihwYXJlbnRQcm9wcywgcGFyZW50U3RhdGUsIHBhcmVudE1ldGhvZHMpXG4pIDogKFxuICA8U2VwYXJhdG9yQ29tcG9uZW50IGNsYXNzTmFtZT1cInJlYWN0LWRyb3Bkb3duLXNlbGVjdC1zZXBhcmF0b3JcIiAvPlxuKTtcblxuU2VwYXJhdG9yLnByb3BUeXBlcyA9IHt9O1xuXG5jb25zdCBTZXBhcmF0b3JDb21wb25lbnQgPSBzdHlsZWQuZGl2YFxuICBib3JkZXItbGVmdDogMXB4IHNvbGlkICNjY2M7XG4gIHdpZHRoOiAxcHg7XG4gIGhlaWdodDogMjVweDtcbiAgZGlzcGxheTogYmxvY2s7XG5gO1xuXG5leHBvcnQgZGVmYXVsdCBTZXBhcmF0b3I7XG4iXX0= */"}),_default=Separator;exports.default=_default;

@@ -1,355 +0,1 @@

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = exports.Select = void 0;
var _styledBase = _interopRequireDefault(require("@emotion/styled-base"));
var _react = _interopRequireDefault(require("react"));
var _propTypes = _interopRequireDefault(require("prop-types"));
var _reactOnclickout = _interopRequireDefault(require("react-onclickout"));
var _Content = _interopRequireDefault(require("./components/Content"));
var _Dropdown = _interopRequireDefault(require("./components/Dropdown"));
var _Loading = _interopRequireDefault(require("./components/Loading"));
var _Clear = _interopRequireDefault(require("./components/Clear"));
var _Separator = _interopRequireDefault(require("./components/Separator"));
var _DropdownHandle = _interopRequireDefault(require("./components/DropdownHandle"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); }
function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); }
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } }
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
var Select =
/*#__PURE__*/
function (_React$Component) {
_inherits(Select, _React$Component);
function Select(props) {
var _this;
_classCallCheck(this, Select);
_this = _possibleConstructorReturn(this, _getPrototypeOf(Select).call(this, props));
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "updateSelectBounds", function () {
return _this.setState({
selectBounds: _this.select.current.getBoundingClientRect()
});
});
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "getSelectBounds", function () {
return _this.state.selectBounds;
});
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "dropDown", function () {
var action = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'toggle';
if (_this.props.keepOpen) {
return _this.setState({
dropdown: true
});
}
if (action === 'close') {
return _this.setState({
dropdown: false,
search: ''
});
}
if (action === 'open') {
return _this.setState({
dropdown: true
});
}
if (action === 'toggle') {
return _this.setState({
dropdown: !_this.state.dropdown
});
}
return false;
});
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "getSelectRef", function () {
return _this.select.current;
});
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "addItem", function (item) {
if (_this.props.multi) {
if (_this.state.values.indexOf(item) !== -1) {
return _this.removeItem(null, item, false);
}
_this.setState({
values: [].concat(_toConsumableArray(_this.state.values), [item])
});
} else {
_this.setState({
values: [item],
dropdown: false,
search: ''
});
}
return true;
});
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "removeItem", function (event, item) {
var close = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
if (event && close) {
event.preventDefault();
event.stopPropagation();
_this.dropDown('close');
}
_this.setState({
values: _this.state.values.filter(function (values) {
return values.value !== item.value;
})
});
});
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "setSearch", function (event) {
return _this.setState({
search: event.target.value
});
});
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "getInputSize", function () {
if (_this.state.search) {
return _this.state.search.length;
}
if (_this.state.values.length > 0) {
return _this.props.addPlaceholder.length;
}
return _this.props.placeholder.length;
});
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "toggleSelectAll", function () {
return _this.setState({
values: _this.state.values.length === 0 ? _this.selectAll() : _this.clearAll()
});
});
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "clearAll", function () {
_this.props.onClearAll();
_this.setState({
values: []
});
});
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "selectAll", function () {
_this.props.onSelectAll();
return _this.setState({
values: _this.props.options
});
});
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "isSelected", function (option) {
return _this.state.values.indexOf(option) !== -1;
});
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "searchResults", function () {
var regexp = new RegExp(_this.state.search, 'i');
return _this.props.options.filter(function (item) {
return regexp.test(item[_this.props.searchBy] || item.label);
});
});
_this.state = {
dropdown: false,
values: [],
search: '',
selectBounds: {}
};
_this.methods = {
removeItem: _this.removeItem,
dropDown: _this.dropDown,
addItem: _this.addItem,
setSearch: _this.setSearch,
getInputSize: _this.getInputSize,
toggleSelectAll: _this.toggleSelectAll,
clearAll: _this.clearAll,
selectAll: _this.selectAll,
searchResults: _this.searchResults,
selectRef: _this.getSelectRef,
isSelected: _this.isSelected,
getSelectBounds: _this.getSelectBounds
};
_this.select = _react.default.createRef();
return _this;
}
_createClass(Select, [{
key: "componentDidMount",
value: function componentDidMount() {
window.addEventListener('resize', this.updateSelectBounds);
this.props.onChange(this.state.values);
this.dropDown('close');
if (this.select) {
this.updateSelectBounds();
}
}
}, {
key: "componentDidUpdate",
value: function componentDidUpdate(prevProps, prevState) {
if (prevState.values !== this.state.values || prevProps.multi !== this.props.multi) {
this.props.onChange(this.state.values);
this.updateSelectBounds();
}
if (prevState.dropdown && prevState.dropdown !== this.state.dropdown) {
this.props.onDropdownClose();
}
if (!prevState.dropdown && prevState.dropdown !== this.state.dropdown) {
this.props.onDropdownOpen();
}
}
}, {
key: "componentWillUnmount",
value: function componentWillUnmount() {
window.removeEventListener('resize', this.updateSelectBounds);
}
}, {
key: "render",
value: function render() {
var _this2 = this;
return _react.default.createElement(_reactOnclickout.default, {
onClickOut: function onClickOut() {
return _this2.dropDown('close');
}
}, _react.default.createElement(ReactDropdownSelect, {
ref: this.select,
disabled: this.props.disabled,
className: this.props.className
}, _react.default.createElement(_Content.default, {
parentProps: this.props,
parentState: this.state,
parentMethods: this.methods
}), this.props.loading && _react.default.createElement(_Loading.default, {
parentProps: this.props
}), this.props.clearable && _react.default.createElement(_Clear.default, {
parentProps: this.props,
parentState: this.state,
parentMethods: this.methods
}), this.props.separator && _react.default.createElement(_Separator.default, {
parentProps: this.props,
parentState: this.state,
parentMethods: this.methods
}), this.props.dropdownHandle && _react.default.createElement(_DropdownHandle.default, {
parentProps: this.props,
parentState: this.state,
parentMethods: this.methods
}), this.state.dropdown && _react.default.createElement(_Dropdown.default, {
parentProps: this.props,
parentState: this.state,
parentMethods: this.methods
})));
}
}]);
return Select;
}(_react.default.Component);
exports.Select = Select;
_defineProperty(Select, "propTypes", {
onChange: _propTypes.default.func.isRequired,
onDropdownClose: _propTypes.default.func,
onDropdownOpen: _propTypes.default.func,
onClearAll: _propTypes.default.func,
onSelectAll: _propTypes.default.func,
values: _propTypes.default.array,
options: _propTypes.default.array.isRequired,
keepOpen: _propTypes.default.bool,
dropdownGap: _propTypes.default.number,
multi: _propTypes.default.bool,
placeholder: _propTypes.default.string,
addPlaceholder: _propTypes.default.string,
disabled: _propTypes.default.bool,
className: _propTypes.default.string,
loading: _propTypes.default.bool,
clearable: _propTypes.default.bool,
separator: _propTypes.default.bool,
dropdownHandle: _propTypes.default.bool,
searchBy: _propTypes.default.string,
contentRenderer: _propTypes.default.func,
dropdownRenderer: _propTypes.default.func,
itemRenderer: _propTypes.default.func,
noDataRenderer: _propTypes.default.func,
optionRenderer: _propTypes.default.func,
inputRenderer: _propTypes.default.func,
loadingRenderer: _propTypes.default.func,
clearRenderer: _propTypes.default.func,
separatorRenderer: _propTypes.default.func,
dropdownHandleRenderer: _propTypes.default.func
});
Select.defaultProps = {
addPlaceholder: '+ add',
placeholder: 'Select...',
values: [],
multi: false,
disabled: false,
searchBy: 'label',
clearable: true,
keepOpen: undefined,
noDataLabel: 'No matches found',
dropdownGap: 5
};
var ReactDropdownSelect = (0, _styledBase.default)("div", {
target: "e1gzf2xs0",
label: "ReactDropdownSelect"
})("display:flex;border:1px solid #ccc;width:100%;border-radius:2px;padding:2px 5px;flex-direction:row;align-items:center;min-height:36px;", function (_ref) {
var disabled = _ref.disabled;
return disabled ? 'cursor: not-allowed;pointer-events: none;opacity: 0.3;' : 'pointer-events: all;';
}, ":focus-within{border-color:deepskyblue;}background:linear-gradient(#eee,#fff,#eee);" + (process.env.NODE_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KSA9PiB0aGlzLmRyb3BEb3duKCdjbG9zZScpfT5cbiAgICAgICAgPFJlYWN0RHJvcGRvd25TZWxlY3RcbiAgICAgICAgICByZWY9e3RoaXMuc2VsZWN0fVxuICAgICAgICAgIGRpc2FibGVkPXt0aGlzLnByb3BzLmRpc2FibGVkfVxuICAgICAgICAgIGNsYXNzTmFtZT17dGhpcy5wcm9wcy5jbGFzc05hbWV9PlxuICAgICAgICAgIDxDb250ZW50IHBhcmVudFByb3BzPXt0aGlzLnByb3BzfSBwYXJlbnRTdGF0ZT17dGhpcy5zdGF0ZX0gcGFyZW50TWV0aG9kcz17dGhpcy5tZXRob2RzfSAvPlxuXG4gICAgICAgICAge3RoaXMucHJvcHMubG9hZGluZyAmJiA8TG9hZGluZyBwYXJlbnRQcm9wcz17dGhpcy5wcm9wc30gLz59XG5cbiAgICAgICAgICB7dGhpcy5wcm9wcy5jbGVhcmFibGUgJiYgKFxuICAgICAgICAgICAgPENsZWFyIHBhcmVudFByb3BzPXt0aGlzLnByb3BzfSBwYXJlbnRTdGF0ZT17dGhpcy5zdGF0ZX0gcGFyZW50TWV0aG9kcz17dGhpcy5tZXRob2RzfSAvPlxuICAgICAgICAgICl9XG5cbiAgICAgICAgICB7dGhpcy5wcm9wcy5zZXBhcmF0b3IgJiYgKFxuICAgICAgICAgICAgPFNlcGFyYXRvclxuICAgICAgICAgICAgICBwYXJlbnRQcm9wcz17dGhpcy5wcm9wc31cbiAgICAgICAgICAgICAgcGFyZW50U3RhdGU9e3RoaXMuc3RhdGV9XG4gICAgICAgICAgICAgIHBhcmVudE1ldGhvZHM9e3RoaXMubWV0aG9kc31cbiAgICAgICAgICAgIC8+XG4gICAgICAgICAgKX1cblxuICAgICAgICAgIHt0aGlzLnByb3BzLmRyb3Bkb3duSGFuZGxlICYmIChcbiAgICAgICAgICAgIDxEcm9wZG93bkhhbmRsZVxuICAgICAgICAgICAgICBwYXJlbnRQcm9wcz17dGhpcy5wcm9wc31cbiAgICAgICAgICAgIC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lbnRlcjtcbiAgbWluLWhlaWdodDogMzZweDtcbiAgJHsoeyBkaXNhYmxlZCB9KSA9PlxuICAgIGRpc2FibGVkID8gJ2N1cnNvcjogbm90LWFsbG93ZWQ7cG9pbnRlci1ldmVudHM6IG5vbmU7b3BhY2l0eTogMC4zOycgOiAncG9pbnRlci1ldmVudHM6IGFsbDsnfVxuXG4gIDpmb2N1cy13aXRoaW4ge1xuICAgIGJvcmRlci1jb2xvcjogZGVlcHNreWJsdWU7XG4gIH1cbiAgYmFja2dyb3VuZDogbGluZWFyLWdyYWRpZW50KCNlZWUsICNmZmYsICNlZWUpO1xuYDtcblxuZXhwb3J0IGRlZmF1bHQgU2VsZWN0O1xuIl19 */"));
var _default = Select;
exports.default = _default;
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=exports.Select=void 0;var _styledBase=_interopRequireDefault(require("@emotion/styled-base")),_react=_interopRequireDefault(require("react")),_propTypes=_interopRequireDefault(require("prop-types")),_reactOnclickout=_interopRequireDefault(require("react-onclickout")),_Content=_interopRequireDefault(require("./components/Content")),_Dropdown=_interopRequireDefault(require("./components/Dropdown")),_Loading=_interopRequireDefault(require("./components/Loading")),_Clear=_interopRequireDefault(require("./components/Clear")),_Separator=_interopRequireDefault(require("./components/Separator")),_DropdownHandle=_interopRequireDefault(require("./components/DropdownHandle"));function _interopRequireDefault(a){return a&&a.__esModule?a:{default:a}}function _typeof(a){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},_typeof(a)}function _toConsumableArray(a){return _arrayWithoutHoles(a)||_iterableToArray(a)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function _iterableToArray(a){if(Symbol.iterator in Object(a)||"[object Arguments]"===Object.prototype.toString.call(a))return Array.from(a)}function _arrayWithoutHoles(a){if(Array.isArray(a)){for(var b=0,c=Array(a.length);b<a.length;b++)c[b]=a[b];return c}}function _classCallCheck(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function _defineProperties(a,b){for(var c,d=0;d<b.length;d++)c=b[d],c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(a,c.key,c)}function _createClass(a,b,c){return b&&_defineProperties(a.prototype,b),c&&_defineProperties(a,c),a}function _possibleConstructorReturn(a,b){return b&&("object"===_typeof(b)||"function"==typeof b)?b:_assertThisInitialized(a)}function _getPrototypeOf(a){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(a){return a.__proto__||Object.getPrototypeOf(a)},_getPrototypeOf(a)}function _inherits(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function");a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,writable:!0,configurable:!0}}),b&&_setPrototypeOf(a,b)}function _setPrototypeOf(a,b){return _setPrototypeOf=Object.setPrototypeOf||function(a,b){return a.__proto__=b,a},_setPrototypeOf(a,b)}function _assertThisInitialized(a){if(void 0===a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a}function _defineProperty(a,b,c){return b in a?Object.defineProperty(a,b,{value:c,enumerable:!0,configurable:!0,writable:!0}):a[b]=c,a}var Select=/*#__PURE__*/function(a){function b(a){var c;return _classCallCheck(this,b),c=_possibleConstructorReturn(this,_getPrototypeOf(b).call(this,a)),_defineProperty(_assertThisInitialized(_assertThisInitialized(c)),"updateSelectBounds",function(){return c.setState({selectBounds:c.select.current.getBoundingClientRect()})}),_defineProperty(_assertThisInitialized(_assertThisInitialized(c)),"getSelectBounds",function(){return c.state.selectBounds}),_defineProperty(_assertThisInitialized(_assertThisInitialized(c)),"dropDown",function(){var a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"toggle";return c.props.keepOpen?c.setState({dropdown:!0}):"close"===a?c.setState({dropdown:!1,search:""}):"open"===a?c.setState({dropdown:!0}):"toggle"===a&&c.setState({dropdown:!c.state.dropdown})}),_defineProperty(_assertThisInitialized(_assertThisInitialized(c)),"getSelectRef",function(){return c.select.current}),_defineProperty(_assertThisInitialized(_assertThisInitialized(c)),"addItem",function(a){if(c.props.multi){if(-1!==c.state.values.indexOf(a))return c.removeItem(null,a,!1);c.setState({values:[].concat(_toConsumableArray(c.state.values),[a])})}else c.setState({values:[a],dropdown:!1,search:""});return!0}),_defineProperty(_assertThisInitialized(_assertThisInitialized(c)),"removeItem",function(a,b){var d=!!(2<arguments.length&&void 0!==arguments[2])&&arguments[2];a&&d&&(a.preventDefault(),a.stopPropagation(),c.dropDown("close")),c.setState({values:c.state.values.filter(function(a){return a.value!==b.value})})}),_defineProperty(_assertThisInitialized(_assertThisInitialized(c)),"setSearch",function(a){return c.setState({search:a.target.value})}),_defineProperty(_assertThisInitialized(_assertThisInitialized(c)),"getInputSize",function(){return c.state.search?c.state.search.length:0<c.state.values.length?c.props.addPlaceholder.length:c.props.placeholder.length}),_defineProperty(_assertThisInitialized(_assertThisInitialized(c)),"toggleSelectAll",function(){return c.setState({values:0===c.state.values.length?c.selectAll():c.clearAll()})}),_defineProperty(_assertThisInitialized(_assertThisInitialized(c)),"clearAll",function(){c.props.onClearAll(),c.setState({values:[]})}),_defineProperty(_assertThisInitialized(_assertThisInitialized(c)),"selectAll",function(){return c.props.onSelectAll(),c.setState({values:c.props.options})}),_defineProperty(_assertThisInitialized(_assertThisInitialized(c)),"isSelected",function(a){return-1!==c.state.values.indexOf(a)}),_defineProperty(_assertThisInitialized(_assertThisInitialized(c)),"searchResults",function(){var a=new RegExp(c.state.search,"i");return c.props.options.filter(function(b){return a.test(b[c.props.searchBy]||b.label)})}),c.state={dropdown:!1,values:[],search:"",selectBounds:{}},c.methods={removeItem:c.removeItem,dropDown:c.dropDown,addItem:c.addItem,setSearch:c.setSearch,getInputSize:c.getInputSize,toggleSelectAll:c.toggleSelectAll,clearAll:c.clearAll,selectAll:c.selectAll,searchResults:c.searchResults,selectRef:c.getSelectRef,isSelected:c.isSelected,getSelectBounds:c.getSelectBounds},c.select=_react.default.createRef(),c}return _inherits(b,a),_createClass(b,[{key:"componentDidMount",value:function a(){window.addEventListener("resize",this.updateSelectBounds),this.props.onChange(this.state.values),this.dropDown("close"),this.select&&this.updateSelectBounds()}},{key:"componentDidUpdate",value:function c(a,b){(b.values!==this.state.values||a.multi!==this.props.multi)&&(this.props.onChange(this.state.values),this.updateSelectBounds()),b.dropdown&&b.dropdown!==this.state.dropdown&&this.props.onDropdownClose(),b.dropdown||b.dropdown===this.state.dropdown||this.props.onDropdownOpen()}},{key:"componentWillUnmount",value:function a(){window.removeEventListener("resize",this.updateSelectBounds)}},{key:"render",value:function b(){var a=this;return _react.default.createElement(_reactOnclickout.default,{onClickOut:function b(){return a.dropDown("close")}},_react.default.createElement(ReactDropdownSelect,{ref:this.select,disabled:this.props.disabled,className:this.props.className},_react.default.createElement(_Content.default,{parentProps:this.props,parentState:this.state,parentMethods:this.methods}),this.props.loading&&_react.default.createElement(_Loading.default,{parentProps:this.props}),this.props.clearable&&_react.default.createElement(_Clear.default,{parentProps:this.props,parentState:this.state,parentMethods:this.methods}),this.props.separator&&_react.default.createElement(_Separator.default,{parentProps:this.props,parentState:this.state,parentMethods:this.methods}),this.props.dropdownHandle&&_react.default.createElement(_DropdownHandle.default,{parentProps:this.props,parentState:this.state,parentMethods:this.methods}),this.state.dropdown&&_react.default.createElement(_Dropdown.default,{parentProps:this.props,parentState:this.state,parentMethods:this.methods})))}}]),b}(_react.default.Component);exports.Select=Select,_defineProperty(Select,"propTypes",{onChange:_propTypes.default.func.isRequired,onDropdownClose:_propTypes.default.func,onDropdownOpen:_propTypes.default.func,onClearAll:_propTypes.default.func,onSelectAll:_propTypes.default.func,values:_propTypes.default.array,options:_propTypes.default.array.isRequired,keepOpen:_propTypes.default.bool,dropdownGap:_propTypes.default.number,multi:_propTypes.default.bool,placeholder:_propTypes.default.string,addPlaceholder:_propTypes.default.string,disabled:_propTypes.default.bool,className:_propTypes.default.string,loading:_propTypes.default.bool,clearable:_propTypes.default.bool,separator:_propTypes.default.bool,dropdownHandle:_propTypes.default.bool,searchBy:_propTypes.default.string,contentRenderer:_propTypes.default.func,dropdownRenderer:_propTypes.default.func,itemRenderer:_propTypes.default.func,noDataRenderer:_propTypes.default.func,optionRenderer:_propTypes.default.func,inputRenderer:_propTypes.default.func,loadingRenderer:_propTypes.default.func,clearRenderer:_propTypes.default.func,separatorRenderer:_propTypes.default.func,dropdownHandleRenderer:_propTypes.default.func}),Select.defaultProps={addPlaceholder:"+ add",placeholder:"Select...",values:[],multi:!1,disabled:!1,searchBy:"label",clearable:!0,keepOpen:void 0,noDataLabel:"No matches found",dropdownGap:5,dropdownHandle:!0,onDropdownOpen:function a(){},onDropdownClose:function a(){},onClearAll:function a(){},onSelectAll:function a(){}};var ReactDropdownSelect=(0,_styledBase.default)("div",{target:"e1gzf2xs0",label:"ReactDropdownSelect"})("display:flex;border:1px solid #ccc;width:100%;border-radius:2px;padding:2px 5px;flex-direction:row;align-items:center;min-height:36px;",function(a){var b=a.disabled;return b?"cursor: not-allowed;pointer-events: none;opacity: 0.3;":"pointer-events: all;"},":focus-within{border-color:deepskyblue;}background:linear-gradient(#eee,#fff,#eee);"+("production"===process.env.NODE_ENV?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9pbmRleC5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFpUnNDIiwiZmlsZSI6Ii4uL3NyYy9pbmRleC5qcyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBSZWFjdCBmcm9tICdyZWFjdCc7XG5pbXBvcnQgUHJvcFR5cGVzIGZyb20gJ3Byb3AtdHlwZXMnO1xuaW1wb3J0IHN0eWxlZCBmcm9tICdAZW1vdGlvbi9zdHlsZWQnO1xuaW1wb3J0IENsaWNrT3V0SGFuZGxlciBmcm9tICdyZWFjdC1vbmNsaW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iA8TG9hZGluZyBwYXJlbnRQcm9wcz17dGhpcy5wcm9wc30gLz59XG5cbiAgICAgICAgICB7dGhpcy5wcm9wcy5jbGVhcmFibGUgJiYgKFxuICAgICAgICAgICAgPENsZWFyIHBhcmVudFByb3BzPXt0aGlzLnByb3BzfSBwYXJlbnRTdGF0ZT17dGhpcy5zdGF0ZX0gcGFyZW50TWV0aG9kcz17dGhpcy5tZXRob2RzfSAvPlxuICAgICAgICAgICl9XG5cbiAgICAgICAgICB7dGhpcy5wcm9wcy5zZXBhcmF0b3IgJiYgKFxuICAgICAgICAgICAgPFNlcGFyYXRvclxuICAgICAgICAgICAgICBwYXJlbnRQcm9wcz17dGhpcy5wcm9wc31cbiAgICAgICAgICAgICAgcGFyZW50U3RhdGU9e3RoaXMuc3RhdGV9XG4gICAgICAgICAgICAgIHBhcmVudE1ldGhvZHM9e3RoaXMubWV0aG9kc31cbiAgICAgICAgICAgIC8+XG4gICAgICAgICAgKX1cblxuICAgICAgICAgIHt0aGlzLnByb3BzLmRyb3Bkb3duSGFuZGxlICYmIChcbiAgICAgICAgICAgIDxEcm9wZG93bkhhbmRsZVxuICAgICAgICAgICAgICBwYXJlbnRQcm9wcz17dGhpcy5wcm9wc31cbiAgICAgICAgICAgICAgcGFyZW50U3RhdGU9e3RoaXMuc3RhdGV9XG4gICAgICAgICAgICAgIHBhcmVudE1ldGhvZHM9e3RoaXMubWV0aG9kc30vPlxuICAgICAgICAgICl9XG5cbiAgICAgICAgICB7dGhpcy5zdGF0ZS5kcm9wZG93biAmJiAoXG4gICAgICAgICAgICA8RHJvcGRvd25cbiAgICAgICAgICAgICAgcGFyZW50UHJvcHM9e3RoaXMucHJvcHN9XG4gICAgICAgICAgICAgIHBhcmVudFN0YXRlPXt0aGlzLnN0YXRlfVxuICAgICAgICAgICAgICBwYXJlbnRNZXRob2RzPXt0aGlzLm1ldGhvZHN9XG4gICAgICAgICAgICAvPlxuICAgICAgICAgICl9XG4gICAgICAgIDwvUmVhY3REcm9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V2ZW50czogYWxsOyd9XG5cbiAgOmZvY3VzLXdpdGhpbiB7XG4gICAgYm9yZGVyLWNvbG9yOiBkZWVwc2t5Ymx1ZTtcbiAgfVxuICBiYWNrZ3JvdW5kOiBsaW5lYXItZ3JhZGllbnQoI2VlZSwgI2ZmZiwgI2VlZSk7XG5gO1xuXG5leHBvcnQgZGVmYXVsdCBTZWxlY3Q7XG4iXX0= */")),_default=Select;exports.default=_default;

5

package.json
{
"name": "react-dropdown-select",
"version": "1.1.3",
"version": "1.1.4",
"description": "Customizable dropdown select for react",

@@ -9,3 +9,3 @@ "main": "dist/index.js",

"start": "webpack-dev-server --mode development",
"transpile": "babel src -d dist",
"transpile": "BABEL_ENV=production babel src -d dist",
"prepublishOnly": "npm run transpile",

@@ -44,2 +44,3 @@ "build": "webpack --mode production",

"babel-plugin-transform-dynamic-import": "^2.1.0",
"babel-preset-minify": "^0.5.0",
"css-loader": "^2.0.2",

@@ -46,0 +47,0 @@ "gh-pages": "^2.0.1",

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc