@luminati-io/uikit 3.1.5 → 3.1.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -24434,8 +24434,8 @@ var buildComponents = function buildComponents(props) {
24434
24434
  },
24435
24435
  DropdownIndicator: _dropdown_indicator__WEBPACK_IMPORTED_MODULE_1__["default"],
24436
24436
  ClearIndicator: _clear_indicator__WEBPACK_IMPORTED_MODULE_0__["default"],
24437
- MenuList: _menu_list__WEBPACK_IMPORTED_MODULE_3__["default"],
24438
- Group: _group__WEBPACK_IMPORTED_MODULE_2__["default"],
24437
+ MenuList: _menu_list__WEBPACK_IMPORTED_MODULE_3__.MenuList,
24438
+ Group: _group__WEBPACK_IMPORTED_MODULE_2__.Group,
24439
24439
  Option: _option__WEBPACK_IMPORTED_MODULE_4__.Option
24440
24440
  }, props.components);
24441
24441
  if (props.virtualized) {
@@ -24527,27 +24527,24 @@ __webpack_require__.r(__webpack_exports__);
24527
24527
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
24528
24528
  /* harmony export */ Dropdown: () => (/* binding */ Dropdown)
24529
24529
  /* harmony export */ });
24530
- /* harmony import */ var lodash_omit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/omit */ "./node_modules/lodash/omit.js");
24531
- /* harmony import */ var lodash_omit__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_omit__WEBPACK_IMPORTED_MODULE_0__);
24532
- /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "prop-types");
24533
- /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
24534
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ "react");
24535
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);
24536
- /* harmony import */ var react_select__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! react-select */ "./node_modules/react-select/dist/react-select.esm.js");
24537
- /* harmony import */ var react_select_creatable__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react-select/creatable */ "./node_modules/react-select/creatable/dist/react-select-creatable.esm.js");
24538
- /* harmony import */ var _hooks__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../hooks */ "./src/hooks/index.js");
24539
- /* harmony import */ var _layout__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../layout */ "./src/layout/index.js");
24540
- /* harmony import */ var _theme__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../theme */ "./src/theme.js");
24541
- /* harmony import */ var _translation__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../translation */ "./src/translation.js");
24542
- /* harmony import */ var _shared__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../shared */ "./src/input/shared.js");
24543
- /* harmony import */ var _build_components__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./build_components */ "./src/input/dropdown/build_components.js");
24544
- /* harmony import */ var _use_custom_styles__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./use_custom_styles */ "./src/input/dropdown/use_custom_styles.js");
24530
+ /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! prop-types */ "prop-types");
24531
+ /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_0__);
24532
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
24533
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
24534
+ /* harmony import */ var react_select__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! react-select */ "./node_modules/react-select/dist/react-select.esm.js");
24535
+ /* harmony import */ var react_select_creatable__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react-select/creatable */ "./node_modules/react-select/creatable/dist/react-select-creatable.esm.js");
24536
+ /* harmony import */ var _hooks__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../hooks */ "./src/hooks/index.js");
24537
+ /* harmony import */ var _layout__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../layout */ "./src/layout/index.js");
24538
+ /* harmony import */ var _translation__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../translation */ "./src/translation.js");
24539
+ /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../utils */ "./src/utils.js");
24540
+ /* harmony import */ var _shared__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../shared */ "./src/input/shared.js");
24541
+ /* harmony import */ var _build_components__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./build_components */ "./src/input/dropdown/build_components.js");
24542
+ /* harmony import */ var _use_custom_styles__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./use_custom_styles */ "./src/input/dropdown/use_custom_styles.js");
24545
24543
  // LICENSE_CODE ZON
24546
24544
 
24547
24545
 
24548
24546
  /*jslint react:true*/
24549
-
24550
- var _excluded = ["label", "labelIcon", "required", "size", "value", "defaultValue", "placeholder", "options", "onChange", "onFocus", "onBlur", "multiselect", "creatable", "onCreateOption", "clearable", "disabled", "invalid", "helperText", "classNamePrefix", "onChangeCapture", "menuPortalTarget", "filterOption", "formatOptionLabel", "menuPlacement", "hideSelectedOptions", "onInputChange", "getOptionValue", "getOptionLabel", "isOptionDisabled", "isOptionSelected"];
24547
+ var _excluded = ["label", "labelIcon", "required", "value", "defaultValue", "placeholder", "options", "onChange", "onFocus", "onBlur", "multiselect", "creatable", "onCreateOption", "clearable", "disabled", "invalid", "helperText", "classNamePrefix", "onChangeCapture", "menuPortalTarget", "filterOption", "formatOptionLabel", "menuPlacement", "hideSelectedOptions", "onInputChange", "getOptionValue", "getOptionLabel", "isOptionDisabled", "isOptionSelected", "isLoading"];
24551
24548
  function _extends() { _extends = Object.assign ? Object.assign.bind() : 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; }; return _extends.apply(this, arguments); }
24552
24549
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
24553
24550
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
@@ -24562,11 +24559,10 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
24562
24559
 
24563
24560
 
24564
24561
 
24565
- var Dropdown = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().forwardRef(function (props, forwardRef) {
24562
+ var Dropdown = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forwardRef(function (props, forwardRef) {
24566
24563
  var label = props.label,
24567
24564
  labelIcon = props.labelIcon,
24568
24565
  required = props.required,
24569
- size = props.size,
24570
24566
  value = props.value,
24571
24567
  defaultValue = props.defaultValue,
24572
24568
  placeholder = props.placeholder,
@@ -24593,31 +24589,32 @@ var Dropdown = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().forward
24593
24589
  getOptionLabel = props.getOptionLabel,
24594
24590
  isOptionDisabled = props.isOptionDisabled,
24595
24591
  isOptionSelected = props.isOptionSelected,
24592
+ isLoading = props.isLoading,
24596
24593
  rest = _objectWithoutProperties(props, _excluded);
24597
- var labelId = (0,_hooks__WEBPACK_IMPORTED_MODULE_4__.useLabelId)(props.id);
24598
- var t = (0,_translation__WEBPACK_IMPORTED_MODULE_7__.useTranslate)();
24599
- var styles = (0,_use_custom_styles__WEBPACK_IMPORTED_MODULE_10__.useCustomStyles)(size);
24600
- var SelectComp = creatable ? react_select_creatable__WEBPACK_IMPORTED_MODULE_3__["default"] : react_select__WEBPACK_IMPORTED_MODULE_11__["default"];
24601
- var _isOptionDisabled = (0,react__WEBPACK_IMPORTED_MODULE_2__.useMemo)(function () {
24594
+ var labelId = (0,_hooks__WEBPACK_IMPORTED_MODULE_3__.useLabelId)(props.id);
24595
+ var t = (0,_translation__WEBPACK_IMPORTED_MODULE_5__.useTranslate)();
24596
+ var styles = (0,_use_custom_styles__WEBPACK_IMPORTED_MODULE_9__.useCustomStyles)(props);
24597
+ var SelectComp = creatable ? react_select_creatable__WEBPACK_IMPORTED_MODULE_2__["default"] : react_select__WEBPACK_IMPORTED_MODULE_10__["default"];
24598
+ var _isOptionDisabled = (0,react__WEBPACK_IMPORTED_MODULE_1__.useMemo)(function () {
24602
24599
  return isOptionDisabled || function (opt) {
24603
24600
  return opt.disabled;
24604
24601
  };
24605
24602
  }, [isOptionDisabled]);
24606
- var _hideSelectedOptions = (0,react__WEBPACK_IMPORTED_MODULE_2__.useMemo)(function () {
24603
+ var _hideSelectedOptions = (0,react__WEBPACK_IMPORTED_MODULE_1__.useMemo)(function () {
24607
24604
  return props.autosize === false ? false : hideSelectedOptions;
24608
24605
  }, [props.autosize, hideSelectedOptions]);
24609
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_layout__WEBPACK_IMPORTED_MODULE_5__.Flex, _extends({
24606
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_layout__WEBPACK_IMPORTED_MODULE_4__.Flex, _extends({
24610
24607
  ref: forwardRef,
24611
24608
  "data-testid": "dropdown"
24612
- }, lodash_omit__WEBPACK_IMPORTED_MODULE_0___default()(rest, 'components', 'virtualized', 'autosize', 'maxToShow', 'components'), {
24609
+ }, (0,_utils__WEBPACK_IMPORTED_MODULE_6__.getCommonProps)(rest), {
24613
24610
  flex_direction: "column",
24614
- gap: _theme__WEBPACK_IMPORTED_MODULE_6__["default"].spacing['02']
24615
- }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_shared__WEBPACK_IMPORTED_MODULE_8__.InputLabel, {
24611
+ gap: "02"
24612
+ }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_shared__WEBPACK_IMPORTED_MODULE_7__.InputLabel, {
24616
24613
  id: labelId,
24617
24614
  label: label,
24618
24615
  labelIcon: labelIcon,
24619
24616
  required: required
24620
- }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(SelectComp, {
24617
+ }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(SelectComp, {
24621
24618
  filterOption: filterOption,
24622
24619
  formatOptionLabel: formatOptionLabel,
24623
24620
  "aria-labelledby": label ? labelId : undefined,
@@ -24635,7 +24632,7 @@ var Dropdown = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().forward
24635
24632
  isDisabled: disabled,
24636
24633
  required: required,
24637
24634
  styles: styles,
24638
- components: (0,_build_components__WEBPACK_IMPORTED_MODULE_9__.buildComponents)(props),
24635
+ components: (0,_build_components__WEBPACK_IMPORTED_MODULE_8__.buildComponents)(props),
24639
24636
  classNamePrefix: classNamePrefix,
24640
24637
  menuPortalTarget: menuPortalTarget,
24641
24638
  onChangeCapture: onChangeCapture,
@@ -24646,44 +24643,47 @@ var Dropdown = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().forward
24646
24643
  getOptionValue: getOptionValue,
24647
24644
  getOptionLabel: getOptionLabel,
24648
24645
  isOptionDisabled: _isOptionDisabled,
24649
- isOptionSelected: isOptionSelected
24650
- }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_shared__WEBPACK_IMPORTED_MODULE_8__.HelperText, {
24646
+ isOptionSelected: isOptionSelected,
24647
+ isLoading: isLoading
24648
+ }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_shared__WEBPACK_IMPORTED_MODULE_7__.HelperText, {
24651
24649
  invalid: invalid
24652
24650
  }, helperText));
24653
24651
  });
24654
24652
  Dropdown.displayName = 'Dropdown';
24655
24653
  Dropdown.propTypes = {
24656
- value: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().any),
24657
- defaultValue: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().any),
24658
- filterOption: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().func),
24659
- formatOptionLabel: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().func),
24660
- onChange: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().func),
24661
- onFocus: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().func),
24662
- onBlur: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().func),
24663
- placeholder: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().string),
24664
- disabled: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().bool),
24665
- required: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().bool),
24666
- invalid: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().bool),
24667
- label: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_1___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_1___default().func)]),
24668
- labelIcon: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().string),
24669
- helperText: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_1___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_1___default().func)]),
24670
- size: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOf(['sm', 'md', 'lg']),
24671
- options: prop_types__WEBPACK_IMPORTED_MODULE_1___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_1___default().any)).isRequired,
24672
- multiselect: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().bool),
24673
- clearable: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().bool),
24674
- creatable: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().bool),
24675
- onCreateOption: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().func),
24676
- classNamePrefix: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().string),
24677
- menuPlacement: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOf(['bottom', 'auto', 'top']),
24678
- virtualized: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().bool),
24679
- autosize: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().bool),
24680
- hideSelectedOptions: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().bool),
24681
- onInputChange: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().func),
24682
- getOptionValue: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().func),
24683
- getOptionLabel: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().func),
24684
- isOptionDisabled: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().func),
24685
- isOptionSelected: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().func),
24686
- components: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().object)
24654
+ value: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().any),
24655
+ defaultValue: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().any),
24656
+ filterOption: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
24657
+ formatOptionLabel: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
24658
+ onChange: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
24659
+ onFocus: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
24660
+ onBlur: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
24661
+ placeholder: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
24662
+ disabled: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
24663
+ required: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
24664
+ invalid: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
24665
+ label: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func)]),
24666
+ labelIcon: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
24667
+ helperText: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func)]),
24668
+ size: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['sm', 'md', 'lg']),
24669
+ options: prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().any)).isRequired,
24670
+ multiselect: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
24671
+ clearable: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
24672
+ creatable: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
24673
+ onCreateOption: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
24674
+ classNamePrefix: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
24675
+ menuPlacement: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['bottom', 'auto', 'top']),
24676
+ virtualized: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
24677
+ autosize: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
24678
+ hideSelectedOptions: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
24679
+ onInputChange: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
24680
+ getOptionValue: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
24681
+ getOptionLabel: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
24682
+ isOptionDisabled: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
24683
+ isOptionSelected: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
24684
+ isLoading: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
24685
+ components: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object),
24686
+ styles: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object)
24687
24687
  };
24688
24688
  Dropdown.defaultProps = {
24689
24689
  size: 'sm',
@@ -24842,7 +24842,7 @@ var getStyleProps = function getStyleProps(props, name, classNamesState) {
24842
24842
  "use strict";
24843
24843
  __webpack_require__.r(__webpack_exports__);
24844
24844
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
24845
- /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
24845
+ /* harmony export */ Group: () => (/* binding */ Group)
24846
24846
  /* harmony export */ });
24847
24847
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
24848
24848
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
@@ -24872,7 +24872,6 @@ var Group = function Group(props) {
24872
24872
  text: label
24873
24873
  }), children);
24874
24874
  };
24875
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Group);
24876
24875
 
24877
24876
  /***/ }),
24878
24877
 
@@ -24885,7 +24884,7 @@ var Group = function Group(props) {
24885
24884
  "use strict";
24886
24885
  __webpack_require__.r(__webpack_exports__);
24887
24886
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
24888
- /* harmony export */ MenuList: () => (/* reexport safe */ _menu_list__WEBPACK_IMPORTED_MODULE_1__["default"]),
24887
+ /* harmony export */ MenuList: () => (/* reexport safe */ _menu_list__WEBPACK_IMPORTED_MODULE_1__.MenuList),
24889
24888
  /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
24890
24889
  /* harmony export */ });
24891
24890
  /* harmony import */ var _dropdown__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./dropdown */ "./src/input/dropdown/dropdown.js");
@@ -24896,7 +24895,6 @@ __webpack_require__.r(__webpack_exports__);
24896
24895
  /*jslint react:true*/
24897
24896
 
24898
24897
 
24899
-
24900
24898
  /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (_dropdown__WEBPACK_IMPORTED_MODULE_0__.Dropdown);
24901
24899
 
24902
24900
  /***/ }),
@@ -24910,7 +24908,7 @@ __webpack_require__.r(__webpack_exports__);
24910
24908
  "use strict";
24911
24909
  __webpack_require__.r(__webpack_exports__);
24912
24910
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
24913
- /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
24911
+ /* harmony export */ MenuList: () => (/* binding */ MenuList)
24914
24912
  /* harmony export */ });
24915
24913
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
24916
24914
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
@@ -24943,7 +24941,6 @@ var MenuList = function MenuList(props) {
24943
24941
  });
24944
24942
  }));
24945
24943
  };
24946
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (MenuList);
24947
24944
 
24948
24945
  /***/ }),
24949
24946
 
@@ -25048,9 +25045,23 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
25048
25045
 
25049
25046
 
25050
25047
 
25051
- var useCustomStyles = function useCustomStyles(size) {
25048
+ var withUserStyles = function withUserStyles(styles, custom) {
25049
+ var res = _objectSpread({}, styles);
25050
+ Object.keys(custom).forEach(function (key) {
25051
+ var cb = custom[key];
25052
+ var fn = res[key];
25053
+ res[key] = function (baseStyles, state) {
25054
+ var _baseStyles = cb(baseStyles, state);
25055
+ return fn ? fn(_baseStyles, state) : _baseStyles;
25056
+ };
25057
+ });
25058
+ return res;
25059
+ };
25060
+ var useCustomStyles = function useCustomStyles(_ref) {
25061
+ var styles = _ref.styles,
25062
+ size = _ref.size;
25052
25063
  return (0,react__WEBPACK_IMPORTED_MODULE_0__.useMemo)(function () {
25053
- return {
25064
+ return withUserStyles(styles, {
25054
25065
  control: function control(baseStyles, state) {
25055
25066
  var height = {
25056
25067
  sm: 36,
@@ -25147,15 +25158,14 @@ var useCustomStyles = function useCustomStyles(size) {
25147
25158
  });
25148
25159
  },
25149
25160
  option: function option(baseStyles, state) {
25150
- console.log(baseStyles, state);
25151
25161
  var backgroundColor = baseStyles.backgroundColor;
25152
25162
  if (state.selected) backgroundColor = _theme__WEBPACK_IMPORTED_MODULE_1__["default"].color.blue_3;
25153
25163
  return _objectSpread(_objectSpread({}, baseStyles), {}, {
25154
25164
  backgroundColor: backgroundColor
25155
25165
  });
25156
25166
  }
25157
- };
25158
- }, [size]);
25167
+ });
25168
+ }, [styles, size]);
25159
25169
  };
25160
25170
 
25161
25171
  /***/ }),