@luminati-io/uikit 6.3.11 → 6.3.13

Sign up to get free protection for your applications and to get access to all the features.
@@ -36300,14 +36300,26 @@ __webpack_require__.r(__webpack_exports__);
36300
36300
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
36301
36301
  /* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! styled-components */ "styled-components");
36302
36302
  /* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(styled_components__WEBPACK_IMPORTED_MODULE_2__);
36303
- /* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./icon */ "./src/icon.js");
36304
- /* harmony import */ var _layout__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./layout */ "./src/layout/index.js");
36303
+ /* harmony import */ var rc_util_lib_pickAttrs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! rc-util/lib/pickAttrs */ "./node_modules/rc-util/lib/pickAttrs.js");
36304
+ /* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./icon */ "./src/icon.js");
36305
36305
  /* harmony import */ var _typography__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./typography */ "./src/typography/index.js");
36306
- /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./utils */ "./src/utils.js");
36306
+ /* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./util */ "./src/util/index.js");
36307
+ /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./utils */ "./src/utils.js");
36307
36308
  // LICENSE_CODE ZON
36308
36309
 
36309
36310
 
36310
36311
  /*jslint react:true*/
36312
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
36313
+ var _excluded = ["className", "classNamePrefix", "variant", "children", "shape", "icon", "iconPlacement", "onIconClick", "style"];
36314
+ function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
36315
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
36316
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
36317
+ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
36318
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
36319
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
36320
+ function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var s = Object.getOwnPropertySymbols(e); for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
36321
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
36322
+
36311
36323
 
36312
36324
 
36313
36325
 
@@ -36317,80 +36329,100 @@ __webpack_require__.r(__webpack_exports__);
36317
36329
 
36318
36330
  var Badge = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forwardRef(function (props, ref) {
36319
36331
  var className = props.className,
36332
+ _props$classNamePrefi = props.classNamePrefix,
36333
+ classNamePrefix = _props$classNamePrefi === void 0 ? 'uikit_badge' : _props$classNamePrefi,
36334
+ _props$variant = props.variant,
36335
+ variant = _props$variant === void 0 ? 'generic' : _props$variant,
36320
36336
  children = props.children,
36321
36337
  _props$shape = props.shape,
36322
36338
  shape = _props$shape === void 0 ? 'square' : _props$shape,
36323
- _props$variant = props.variant,
36324
- variant = _props$variant === void 0 ? 'default' : _props$variant,
36325
36339
  icon = props.icon,
36326
36340
  iconPlacement = props.iconPlacement,
36327
- onClick = props.onClick;
36328
- var textColor = (0,react__WEBPACK_IMPORTED_MODULE_1__.useMemo)(function () {
36329
- return {
36330
- "default": 'text',
36331
- negative: 'text_error',
36332
- positive: 'text_success',
36333
- gold: 'text_warning',
36334
- blue: 'text_primary'
36335
- }[variant] || 'text';
36336
- }, [variant]);
36337
- var iconColor = (0,react__WEBPACK_IMPORTED_MODULE_1__.useMemo)(function () {
36338
- return {
36339
- "default": 'icon_accent',
36340
- negative: 'icon_error',
36341
- positive: 'icon_success',
36342
- gold: 'icon_warning',
36343
- blue: 'icon_primary'
36344
- }[variant] || 'icon_accent';
36345
- }, [variant]);
36346
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(BadgeWrapper, {
36347
- ref: ref,
36348
- className: className,
36349
- $shape: shape,
36350
- $variant: variant,
36351
- flex_direction: iconPlacement == 'right' ? 'row-reverse' : 'row'
36352
- }, icon && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_icon__WEBPACK_IMPORTED_MODULE_3__.Icon, {
36341
+ onIconClick = props.onIconClick,
36342
+ style = props.style,
36343
+ rest = _objectWithoutProperties(props, _excluded);
36344
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(Wrapper, _extends({
36345
+ ref: ref
36346
+ }, (0,rc_util_lib_pickAttrs__WEBPACK_IMPORTED_MODULE_3__["default"])(rest), {
36347
+ $prefixCls: classNamePrefix,
36348
+ className: (0,_util__WEBPACK_IMPORTED_MODULE_6__.classNames)(null, null, className, classNamePrefix, "".concat(classNamePrefix, "_").concat(variant), "".concat(classNamePrefix, "_").concat(shape)),
36349
+ style: _objectSpread({
36350
+ flexDirection: iconPlacement == 'right' ? 'row-reverse' : 'row'
36351
+ }, style)
36352
+ }), icon && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_icon__WEBPACK_IMPORTED_MODULE_4__.Icon, {
36353
36353
  name: icon,
36354
36354
  size: "xxs",
36355
- color: iconColor,
36356
- onClick: onClick
36355
+ onClick: onIconClick,
36356
+ className: (0,_util__WEBPACK_IMPORTED_MODULE_6__.classNames)(classNamePrefix, {
36357
+ '-icon': true
36358
+ })
36357
36359
  }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_5__.Label, {
36358
36360
  variant: "xs",
36359
- color: textColor
36361
+ className: (0,_util__WEBPACK_IMPORTED_MODULE_6__.classNames)(classNamePrefix, {
36362
+ '-content': true
36363
+ })
36360
36364
  }, children));
36361
36365
  });
36362
36366
  Badge.displayName = 'Badge';
36363
36367
  Badge.propTypes = {
36368
+ className: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
36369
+ classNamePrefix: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
36364
36370
  shape: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['rounded', 'square']),
36365
- variant: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['default', 'negative', 'positive', 'gold', 'blue']),
36366
- icon: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(_utils__WEBPACK_IMPORTED_MODULE_6__.iconNames),
36367
- iconPlacement: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['left', 'right'])
36371
+ variant: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['generic', 'info', 'success', 'error', 'warning']),
36372
+ icon: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(_utils__WEBPACK_IMPORTED_MODULE_7__.iconNames),
36373
+ iconPlacement: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['left', 'right']),
36374
+ onIconClick: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func)
36368
36375
  };
36369
- var BadgeWrapper = styled_components__WEBPACK_IMPORTED_MODULE_2___default()(_layout__WEBPACK_IMPORTED_MODULE_4__.Flex).attrs({
36370
- gap: '01',
36371
- align_items: 'center',
36372
- padding: '02'
36373
- }).withConfig({
36374
- displayName: "BadgeWrapper",
36376
+ var prefixCls = function prefixCls(p) {
36377
+ return p.$prefixCls;
36378
+ };
36379
+ var theme = function theme(cb) {
36380
+ return function (p) {
36381
+ return cb(p.theme);
36382
+ };
36383
+ };
36384
+ var Wrapper = styled_components__WEBPACK_IMPORTED_MODULE_2___default().div.withConfig({
36385
+ displayName: "Wrapper",
36375
36386
  componentId: "sc-1fckq03-0"
36376
- })(["width:fit-content;border-radius:", ";background-color:", ";"], function (_ref) {
36377
- var $shape = _ref.$shape,
36378
- spacing = _ref.theme.spacing;
36379
- return {
36380
- rounded: '16px',
36381
- square: spacing['02']
36382
- }[$shape];
36383
- }, function (_ref2) {
36384
- var $variant = _ref2.$variant,
36385
- color = _ref2.theme.color;
36386
- return {
36387
- "default": color.bg_fill_secondary,
36388
- negative: color.bg_fill_error_secondary,
36389
- positive: color.bg_fill_success_secondary,
36390
- gold: color.bg_fill_warning_secondary,
36391
- blue: color.bg_fill_primary_secondary
36392
- }[$variant] || color.bg_fill_secondary;
36393
- });
36387
+ })(["display:flex;width:fit-content;gap:", ";padding:", ";align-self:center;&.", "{&_square{border-radius:", ";}&_rounded{border-radius:", ";}&_info{background-color:", ";.", "{&-icon{color:", ";}&-content{color:", ";}}}&_success{background-color:", ";.", "{&-icon{color:", ";}&-content{color:", ";}}}&_error{background-color:", ";.", "{&-icon{color:", ";}&-content{color:", ";}}}&_warning{background-color:", ";.", "{&-icon{color:", ";}&-content{color:", ";}}}&_generic{background-color:", ";.", "{&-icon{color:", ";}&-content{color:", ";}}}}"], theme(function (t) {
36388
+ return t.spacing['01'];
36389
+ }), theme(function (t) {
36390
+ return t.spacing['02'];
36391
+ }), prefixCls, theme(function (t) {
36392
+ return t.spacing['02'];
36393
+ }), theme(function (t) {
36394
+ return t.spacing['05'];
36395
+ }), theme(function (t) {
36396
+ return t.color.bg_fill_primary_secondary;
36397
+ }), prefixCls, theme(function (t) {
36398
+ return t.color.icon_primary;
36399
+ }), theme(function (t) {
36400
+ return t.color.text_primary;
36401
+ }), theme(function (t) {
36402
+ return t.color.bg_fill_success_secondary;
36403
+ }), prefixCls, theme(function (t) {
36404
+ return t.color.icon_success;
36405
+ }), theme(function (t) {
36406
+ return t.color.text_success;
36407
+ }), theme(function (t) {
36408
+ return t.color.bg_fill_error_secondary;
36409
+ }), prefixCls, theme(function (t) {
36410
+ return t.color.icon_error;
36411
+ }), theme(function (t) {
36412
+ return t.color.text_error;
36413
+ }), theme(function (t) {
36414
+ return t.color.bg_fill_warning_secondary;
36415
+ }), prefixCls, theme(function (t) {
36416
+ return t.color.icon_warning;
36417
+ }), theme(function (t) {
36418
+ return t.color.text_warning;
36419
+ }), theme(function (t) {
36420
+ return t.color.bg_fill_secondary;
36421
+ }), prefixCls, theme(function (t) {
36422
+ return t.color.icon_accent;
36423
+ }), theme(function (t) {
36424
+ return t.color.text;
36425
+ }));
36394
36426
 
36395
36427
  /***/ }),
36396
36428
 
@@ -39948,7 +39980,7 @@ var PT_INPUT_SHARED = {
39948
39980
  onFocus: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
39949
39981
  onBlur: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
39950
39982
  onKeyDown: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
39951
- placeholder: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
39983
+ placeholder: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().node),
39952
39984
  disabled: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
39953
39985
  invalid: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
39954
39986
  after: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().node),
@@ -41698,8 +41730,14 @@ __webpack_require__.r(__webpack_exports__);
41698
41730
 
41699
41731
 
41700
41732
  /*jslint react:true*/
41733
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
41701
41734
 
41702
41735
  var _excluded = ["id", "styles", "size", "async", "creatable", "isOptionDisabled", "className", "label", "labelIcon", "labelTooltip", "required", "necessityIndicator", "invalid", "helperText", "placeholder", "disabled"];
41736
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
41737
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
41738
+ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
41739
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
41740
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
41703
41741
  function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
41704
41742
  function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var s = Object.getOwnPropertySymbols(e); for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
41705
41743
  function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
@@ -41718,26 +41756,26 @@ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t =
41718
41756
 
41719
41757
 
41720
41758
 
41721
- var CheckboxList = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().forwardRef(function (_ref, forwardRef) {
41722
- var id = _ref.id,
41723
- styles = _ref.styles,
41724
- _ref$size = _ref.size,
41725
- size = _ref$size === void 0 ? 'sm' : _ref$size,
41726
- async = _ref.async,
41727
- creatable = _ref.creatable,
41728
- isOptionDisabled = _ref.isOptionDisabled,
41729
- className = _ref.className,
41730
- label = _ref.label,
41731
- labelIcon = _ref.labelIcon,
41732
- labelTooltip = _ref.labelTooltip,
41733
- required = _ref.required,
41734
- necessityIndicator = _ref.necessityIndicator,
41735
- invalid = _ref.invalid,
41736
- helperText = _ref.helperText,
41737
- _ref$placeholder = _ref.placeholder,
41738
- placeholder = _ref$placeholder === void 0 ? 'Search...' : _ref$placeholder,
41739
- disabled = _ref.disabled,
41740
- rest = _objectWithoutProperties(_ref, _excluded);
41759
+ var CheckboxList = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().forwardRef(function (props, ref) {
41760
+ var id = props.id,
41761
+ styles = props.styles,
41762
+ _props$size = props.size,
41763
+ size = _props$size === void 0 ? 'sm' : _props$size,
41764
+ async = props.async,
41765
+ creatable = props.creatable,
41766
+ isOptionDisabled = props.isOptionDisabled,
41767
+ className = props.className,
41768
+ label = props.label,
41769
+ labelIcon = props.labelIcon,
41770
+ labelTooltip = props.labelTooltip,
41771
+ required = props.required,
41772
+ necessityIndicator = props.necessityIndicator,
41773
+ invalid = props.invalid,
41774
+ helperText = props.helperText,
41775
+ _props$placeholder = props.placeholder,
41776
+ placeholder = _props$placeholder === void 0 ? 'Search...' : _props$placeholder,
41777
+ disabled = props.disabled,
41778
+ rest = _objectWithoutProperties(props, _excluded);
41741
41779
  var labelId = (0,_hooks__WEBPACK_IMPORTED_MODULE_8__.useLabelId)(id);
41742
41780
  var t = (0,_translation__WEBPACK_IMPORTED_MODULE_10__.useTranslate)();
41743
41781
  var SelectComp = getComponent({
@@ -41759,7 +41797,7 @@ var CheckboxList = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().for
41759
41797
  });
41760
41798
  var selectProps = lodash_omit__WEBPACK_IMPORTED_MODULE_0___default()(rest, Object.keys(wrapperProps));
41761
41799
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_layout__WEBPACK_IMPORTED_MODULE_9__.Flex, _extends({
41762
- ref: forwardRef,
41800
+ ref: ref,
41763
41801
  "data-testid": "checkbox-list",
41764
41802
  className: className,
41765
41803
  flex_direction: "column",
@@ -41792,23 +41830,14 @@ var CheckboxList = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().for
41792
41830
  }, helperText));
41793
41831
  });
41794
41832
  CheckboxList.displayName = 'CheckboxList';
41795
- CheckboxList.propTypes = {
41796
- value: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().any),
41797
- onChange: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().func),
41798
- onFocus: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().func),
41799
- onBlur: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().func),
41800
- placeholder: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().node),
41801
- disabled: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().bool),
41802
- required: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().bool),
41803
- necessityIndicator: _constants__WEBPACK_IMPORTED_MODULE_7__.PT_NECESSITY_INDICATOR,
41804
- invalid: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().bool),
41805
- label: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().node),
41806
- labelIcon: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().string),
41807
- labelTooltip: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().node),
41808
- helperText: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().node),
41833
+ CheckboxList.propTypes = _objectSpread(_objectSpread({}, _constants__WEBPACK_IMPORTED_MODULE_7__.PT_INPUT_SHARED), {}, {
41809
41834
  size: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOf(['sm', 'md', 'lg']),
41810
- virtualized: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().bool)
41811
- };
41835
+ virtualized: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().bool),
41836
+ /** Minimum height of the menu before flipping */
41837
+ minMenuHeight: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().number),
41838
+ /** Maximum height of the menu before scrolling */
41839
+ maxMenuHeight: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().number)
41840
+ });
41812
41841
  var getComponent = function getComponent(opt) {
41813
41842
  if (opt.async) return opt.creatable ? react_select_async_creatable__WEBPACK_IMPORTED_MODULE_5__["default"] : react_select_async__WEBPACK_IMPORTED_MODULE_4__["default"];
41814
41843
  return opt.creatable ? react_select_creatable__WEBPACK_IMPORTED_MODULE_3__["default"] : react_select__WEBPACK_IMPORTED_MODULE_15__["default"];
@@ -42158,28 +42187,26 @@ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t =
42158
42187
 
42159
42188
 
42160
42189
 
42161
- var CompareTo = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().forwardRef(function (_ref, ref) {
42162
- var _ref$size = _ref.size,
42163
- size = _ref$size === void 0 ? 'md' : _ref$size,
42164
- _ref$format = _ref.format,
42165
- fmt = _ref$format === void 0 ? 'dd/MM/yyyy' : _ref$format,
42166
- _ref$placeholder = _ref.placeholder,
42167
- placeholder = _ref$placeholder === void 0 ? 'Compare to' : _ref$placeholder,
42168
- _ref$options = _ref.options,
42169
- options = _ref$options === void 0 ? [] : _ref$options,
42170
- formatOptionLabel = _ref.formatOptionLabel,
42171
- rest = _objectWithoutProperties(_ref, _excluded);
42190
+ var CompareTo = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().forwardRef(function (props, ref) {
42191
+ var _props$size = props.size,
42192
+ size = _props$size === void 0 ? 'md' : _props$size,
42193
+ _props$format = props.format,
42194
+ fmt = _props$format === void 0 ? 'dd/MM/yyyy' : _props$format,
42195
+ _props$placeholder = props.placeholder,
42196
+ placeholder = _props$placeholder === void 0 ? 'Compare to' : _props$placeholder,
42197
+ _props$options = props.options,
42198
+ options = _props$options === void 0 ? [] : _props$options,
42199
+ formatOptionLabel = props.formatOptionLabel,
42200
+ rest = _objectWithoutProperties(props, _excluded);
42172
42201
  var _formatOptionLabel = (0,react__WEBPACK_IMPORTED_MODULE_2__.useCallback)(function (opt) {
42173
- if (opt && lodash_isObject__WEBPACK_IMPORTED_MODULE_0___default()(opt)) {
42174
- var str;
42175
- try {
42176
- str = opt.value != 'custom' ? opt.label : (0,date_fns_format__WEBPACK_IMPORTED_MODULE_11__["default"])(opt.from, fmt);
42177
- } catch (e) {
42178
- str = '-';
42179
- }
42180
- return "".concat(placeholder, " ").concat(str);
42202
+ if (!opt || !lodash_isObject__WEBPACK_IMPORTED_MODULE_0___default()(opt)) return '';
42203
+ var str;
42204
+ try {
42205
+ str = opt.value != 'custom' ? opt.label : (0,date_fns_format__WEBPACK_IMPORTED_MODULE_11__["default"])(opt.from, fmt);
42206
+ } catch (e) {
42207
+ str = '-';
42181
42208
  }
42182
- return '';
42209
+ return "".concat(placeholder, " ").concat(str);
42183
42210
  }, [fmt, placeholder]);
42184
42211
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_dropdown__WEBPACK_IMPORTED_MODULE_9__.Dropdown, _extends({
42185
42212
  ref: ref
@@ -42197,9 +42224,7 @@ var CompareTo = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().forwar
42197
42224
  styles: {
42198
42225
  menu: function menu(baseStyles) {
42199
42226
  return _objectSpread(_objectSpread({}, baseStyles), {}, {
42200
- padding: '8px',
42201
- margin: '0',
42202
- minWidth: '0',
42227
+ minWidth: 0,
42203
42228
  width: null
42204
42229
  });
42205
42230
  }
@@ -42252,6 +42277,14 @@ var CompareToCalendar = function CompareToCalendar(props) {
42252
42277
  _useState4 = _slicedToArray(_useState3, 2),
42253
42278
  customDate = _useState4[0],
42254
42279
  setCustomDate = _useState4[1];
42280
+ var onButtonClick = function onButtonClick() {
42281
+ var opt = {
42282
+ value: 'custom',
42283
+ label: 'Custom',
42284
+ from: customDate
42285
+ };
42286
+ onApply(opt, 'select-option');
42287
+ };
42255
42288
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_layout__WEBPACK_IMPORTED_MODULE_5__.Flex, {
42256
42289
  flex_direction: "column",
42257
42290
  padding: "04",
@@ -42275,13 +42308,7 @@ var CompareToCalendar = function CompareToCalendar(props) {
42275
42308
  variant: "primary",
42276
42309
  text: "Apply",
42277
42310
  disabled: !customDate,
42278
- onClick: function onClick() {
42279
- onApply({
42280
- value: 'custom',
42281
- label: 'Custom',
42282
- from: customDate
42283
- }, 'select-option');
42284
- },
42311
+ onClick: onButtonClick,
42285
42312
  style: {
42286
42313
  width: '100%'
42287
42314
  }
@@ -43548,11 +43575,10 @@ var MenuList = function MenuList(props) {
43548
43575
  children = props.children;
43549
43576
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_menu_shared__WEBPACK_IMPORTED_MODULE_1__.MenuContainer, _extends({
43550
43577
  ref: innerRef,
43551
- $noBorder: true,
43552
43578
  role: "menu",
43553
43579
  className: cx({
43554
43580
  menuList: true
43555
- }, className),
43581
+ }, className, 'unstyled'),
43556
43582
  style: getStyles('menuList', props)
43557
43583
  }, innerProps), react__WEBPACK_IMPORTED_MODULE_0___default().Children.map(children, function (child, ind) {
43558
43584
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cloneElement(child, {
@@ -43754,9 +43780,10 @@ var useStyles = function useStyles(_ref) {
43754
43780
  minWidth: 'fit-content',
43755
43781
  maxWidth: '540px',
43756
43782
  width: '100%',
43757
- backgroundColor: color.bg_elevated,
43783
+ border: "1px solid ".concat(color.popover_border),
43784
+ backgroundColor: color.bg,
43758
43785
  borderRadius: spacing['02'],
43759
- boxShadow: shadow.medium,
43786
+ boxShadow: color.popover_shadow,
43760
43787
  zIndex: menuPortalTarget ? baseStyles.zIndex : _constants__WEBPACK_IMPORTED_MODULE_3__.Z_INDEX.dropdown
43761
43788
  });
43762
43789
  },
@@ -47694,29 +47721,34 @@ __webpack_require__.r(__webpack_exports__);
47694
47721
  /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_0__);
47695
47722
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
47696
47723
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
47697
- /* harmony import */ var _shared__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./shared */ "./src/menu/shared.js");
47724
+ /* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../util */ "./src/util/index.js");
47725
+ /* harmony import */ var _shared__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./shared */ "./src/menu/shared.js");
47698
47726
  // LICENSE_CODE ZON
47699
47727
 
47700
47728
 
47701
47729
  /*jslint react:true*/
47702
- var _excluded = ["items", "size", "noBorder"];
47730
+ var _excluded = ["className", "items", "size", "noBorder", "unstyled"];
47703
47731
  function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
47704
47732
  function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var s = Object.getOwnPropertySymbols(e); for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
47705
47733
  function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
47706
47734
 
47707
47735
 
47708
47736
 
47709
- var Menu = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forwardRef(function (_ref, ref) {
47710
- var items = _ref.items,
47711
- _ref$size = _ref.size,
47712
- size = _ref$size === void 0 ? 'md' : _ref$size,
47713
- noBorder = _ref.noBorder,
47714
- rest = _objectWithoutProperties(_ref, _excluded);
47737
+
47738
+ var Menu = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forwardRef(function (props, ref) {
47739
+ var _props$className = props.className,
47740
+ className = _props$className === void 0 ? 'uikit_menu' : _props$className,
47741
+ items = props.items,
47742
+ _props$size = props.size,
47743
+ size = _props$size === void 0 ? 'md' : _props$size,
47744
+ noBorder = props.noBorder,
47745
+ unstyled = props.unstyled,
47746
+ rest = _objectWithoutProperties(props, _excluded);
47715
47747
  if (!items || !items.length) return null;
47716
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_shared__WEBPACK_IMPORTED_MODULE_2__.MenuContainer, _extends({
47717
- ref: ref
47748
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_shared__WEBPACK_IMPORTED_MODULE_3__.MenuContainer, _extends({
47749
+ ref: ref,
47750
+ className: (0,_util__WEBPACK_IMPORTED_MODULE_2__.classNames)(null, null, className, (noBorder || unstyled) && 'unstyled')
47718
47751
  }, rest, {
47719
- $noBorder: noBorder,
47720
47752
  role: "menu",
47721
47753
  "data-testid": "menu"
47722
47754
  }), items.map(function (item, ind) {
@@ -47730,9 +47762,10 @@ var Menu = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forwardRef(
47730
47762
  });
47731
47763
  Menu.displayName = 'Menu';
47732
47764
  Menu.propTypes = {
47765
+ className: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
47733
47766
  size: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['sm', 'md', 'lg']),
47734
47767
  items: prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().any)).isRequired,
47735
- noBorder: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool)
47768
+ unstyled: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool)
47736
47769
  };
47737
47770
 
47738
47771
  /***/ }),
@@ -48071,7 +48104,7 @@ var MenuItemGroup = function MenuItemGroup(_ref) {
48071
48104
  color: "text_quaternary",
48072
48105
  role: "presentation"
48073
48106
  }, text), children && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_shared__WEBPACK_IMPORTED_MODULE_4__.MenuContainer, {
48074
- $noBorder: true,
48107
+ className: "unstyled",
48075
48108
  role: "group"
48076
48109
  }, children)));
48077
48110
  };
@@ -48288,20 +48321,18 @@ __webpack_require__.r(__webpack_exports__);
48288
48321
  var MenuContainer = styled_components__WEBPACK_IMPORTED_MODULE_0___default().ul.withConfig({
48289
48322
  displayName: "MenuContainer",
48290
48323
  componentId: "sc-laozu6-0"
48291
- })(["margin:0;padding:4px 0;box-sizing:border-box;min-width:168px;max-width:540px;background:", ";border:", ";border-radius:4px;display:flex;flex-direction:column;gap:2px;box-shadow:", ";max-height:80vh;overflow-y:auto;", ";"], function (_ref) {
48292
- var color = _ref.theme.color;
48293
- return color.bg_elevated;
48324
+ })(["margin:0;padding:4px 0;box-sizing:border-box;min-width:168px;max-width:540px;border-radius:4px;display:flex;flex-direction:column;gap:2px;max-height:80vh;overflow-y:auto;", ";&:not(.unstyled){background:", ";border:", ";box-shadow:", ";}"], function (_ref) {
48325
+ var scrollbars = _ref.theme.scrollbars;
48326
+ return scrollbars.thin;
48294
48327
  }, function (_ref2) {
48295
- var $noBorder = _ref2.$noBorder,
48296
- color = _ref2.theme.color;
48297
- return $noBorder ? '0 none' : "1px solid ".concat(color.border_secondary);
48328
+ var color = _ref2.theme.color;
48329
+ return color.bg;
48298
48330
  }, function (_ref3) {
48299
- var $noBorder = _ref3.$noBorder,
48300
- shadow = _ref3.theme.shadow;
48301
- return $noBorder ? 'none' : shadow.medium;
48331
+ var color = _ref3.theme.color;
48332
+ return "1px solid ".concat(color.popover_border);
48302
48333
  }, function (_ref4) {
48303
- var scrollbars = _ref4.theme.scrollbars;
48304
- return scrollbars.thin;
48334
+ var color = _ref4.theme.color;
48335
+ return color.popover_shadow;
48305
48336
  });
48306
48337
  var MenuItemContainer = styled_components__WEBPACK_IMPORTED_MODULE_0___default().li.withConfig({
48307
48338
  displayName: "MenuItemContainer",
@@ -49636,7 +49667,7 @@ __webpack_require__.r(__webpack_exports__);
49636
49667
 
49637
49668
 
49638
49669
  /*jslint react:true*/
49639
- var _excluded = ["className", "classNamePrefix", "style", "trigger", "visible", "placement", "popover", "onVisibleChange", "afterVisibleChange", "children", "hideOnScroll", "getScrollDOMNode"];
49670
+ var _excluded = ["className", "classNamePrefix", "style", "trigger", "visible", "placement", "popover", "onVisibleChange", "afterVisibleChange", "children", "hideOnScroll", "getScrollDOMNode", "destroyOnClose"];
49640
49671
  function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
49641
49672
  function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
49642
49673
  function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
@@ -49669,6 +49700,8 @@ var _Popover = function Popover(_ref) {
49669
49700
  children = _ref.children,
49670
49701
  hideOnScroll = _ref.hideOnScroll,
49671
49702
  getScrollDOMNode = _ref.getScrollDOMNode,
49703
+ _ref$destroyOnClose = _ref.destroyOnClose,
49704
+ destroyOnClose = _ref$destroyOnClose === void 0 ? true : _ref$destroyOnClose,
49672
49705
  rest = _objectWithoutProperties(_ref, _excluded);
49673
49706
  var theme = (0,styled_components__WEBPACK_IMPORTED_MODULE_2__.useTheme)();
49674
49707
  var mouseEnterDelay = (0,_util__WEBPACK_IMPORTED_MODULE_5__.firstDefined)(rest.showDelay, _Popover.showDelay);
@@ -49715,7 +49748,8 @@ var _Popover = function Popover(_ref) {
49715
49748
  afterPopupVisibleChange: afterVisibleChange,
49716
49749
  mouseEnterDelay: mouseEnterDelay,
49717
49750
  mouseLeaveDelay: mouseLeaveDelay,
49718
- popup: popover
49751
+ popup: popover,
49752
+ destroyOnClose: destroyOnClose
49719
49753
  }, children));
49720
49754
  };
49721
49755
 
@@ -49732,7 +49766,8 @@ _Popover.propTypes = {
49732
49766
  onVisibleChange: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
49733
49767
  afterVisibleChange: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
49734
49768
  hideOnScroll: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
49735
- getScrollDOMNode: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func)
49769
+ getScrollDOMNode: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
49770
+ destroyOnClose: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool)
49736
49771
  };
49737
49772
  _Popover.showDelay = 0.1;
49738
49773
  _Popover.hideDelay = 0.1;
@@ -49942,13 +49977,14 @@ __webpack_require__.r(__webpack_exports__);
49942
49977
  /* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! styled-components */ "styled-components");
49943
49978
  /* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(styled_components__WEBPACK_IMPORTED_MODULE_2__);
49944
49979
  /* harmony import */ var rc_util_lib_pickAttrs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! rc-util/lib/pickAttrs */ "./node_modules/rc-util/lib/pickAttrs.js");
49945
- /* harmony import */ var _typography__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../typography */ "./src/typography/index.js");
49946
- /* harmony import */ var _snackbar_icon__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./snackbar_icon */ "./src/snackbar/snackbar_icon.js");
49980
+ /* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../util */ "./src/util/index.js");
49981
+ /* harmony import */ var _typography__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../typography */ "./src/typography/index.js");
49982
+ /* harmony import */ var _snackbar_icon__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./snackbar_icon */ "./src/snackbar/snackbar_icon.js");
49947
49983
  // LICENSE_CODE ZON
49948
49984
 
49949
49985
 
49950
49986
  /*jslint react:true*/
49951
- var _excluded = ["type", "showIcon", "header", "children", "container_style"];
49987
+ var _excluded = ["className", "classNamePrefix", "variant", "type", "showIcon", "header", "children", "contentStyle", "container_style"];
49952
49988
  function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
49953
49989
  function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var s = Object.getOwnPropertySymbols(e); for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
49954
49990
  function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
@@ -49958,54 +49994,95 @@ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t =
49958
49994
 
49959
49995
 
49960
49996
 
49961
- var Snackbar = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forwardRef(function (_ref, ref) {
49962
- var _ref$type = _ref.type,
49963
- type = _ref$type === void 0 ? 'info' : _ref$type,
49964
- showIcon = _ref.showIcon,
49965
- header = _ref.header,
49966
- children = _ref.children,
49967
- container_style = _ref.container_style,
49968
- rest = _objectWithoutProperties(_ref, _excluded);
49969
- var content = typeof children == 'string' ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_4__.Paragraph, {
49997
+
49998
+ var Snackbar = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forwardRef(function (props, ref) {
49999
+ var className = props.className,
50000
+ _props$classNamePrefi = props.classNamePrefix,
50001
+ classNamePrefix = _props$classNamePrefi === void 0 ? 'uikit_snackbar' : _props$classNamePrefi,
50002
+ _props$variant = props.variant,
50003
+ variant = _props$variant === void 0 ? 'generic' : _props$variant,
50004
+ type = props.type,
50005
+ showIcon = props.showIcon,
50006
+ header = props.header,
50007
+ children = props.children,
50008
+ contentStyle = props.contentStyle,
50009
+ container_style = props.container_style,
50010
+ rest = _objectWithoutProperties(props, _excluded);
50011
+ var _variant = type || variant;
50012
+ var content = typeof children == 'string' ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_5__.Paragraph, {
49970
50013
  variant: "lg_snug",
49971
50014
  color: "text"
49972
50015
  }, children) : children;
49973
50016
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(Wrapper, _extends({
49974
- ref: ref,
49975
- $type: type
49976
- }, (0,rc_util_lib_pickAttrs__WEBPACK_IMPORTED_MODULE_3__["default"])(rest)), !!showIcon && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_snackbar_icon__WEBPACK_IMPORTED_MODULE_5__.SnackbarIcon, {
49977
- type: type
49978
- }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(Container, {
49979
- style: container_style
49980
- }, !!header && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_4__.Label, {
50017
+ ref: ref
50018
+ }, (0,rc_util_lib_pickAttrs__WEBPACK_IMPORTED_MODULE_3__["default"])(rest), {
50019
+ $prefixCls: classNamePrefix,
50020
+ className: (0,_util__WEBPACK_IMPORTED_MODULE_4__.classNames)(null, null, className, classNamePrefix, "".concat(classNamePrefix, "_").concat(_variant))
50021
+ }), !!showIcon && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_snackbar_icon__WEBPACK_IMPORTED_MODULE_6__.SnackbarIcon, {
50022
+ variant: _variant,
50023
+ className: (0,_util__WEBPACK_IMPORTED_MODULE_4__.classNames)(classNamePrefix, {
50024
+ '-icon': true
50025
+ })
50026
+ }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(Content, {
50027
+ className: (0,_util__WEBPACK_IMPORTED_MODULE_4__.classNames)(classNamePrefix, {
50028
+ '-content': true
50029
+ }),
50030
+ style: container_style || contentStyle
50031
+ }, !!header && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_5__.Label, {
49981
50032
  variant: "lg",
49982
- color: "text"
50033
+ color: "text",
50034
+ className: (0,_util__WEBPACK_IMPORTED_MODULE_4__.classNames)(classNamePrefix, {
50035
+ '-header': true
50036
+ })
49983
50037
  }, header), content));
49984
50038
  });
49985
50039
  Snackbar.displayName = 'Snackbar';
49986
50040
  Snackbar.propTypes = {
49987
- container_style: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object),
49988
- type: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['info', 'success', 'error', 'warning', 'generic']),
50041
+ className: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
50042
+ classNamePrefix: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
50043
+ contentStyle: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object),
50044
+ variant: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['generic', 'info', 'success', 'error', 'warning']),
49989
50045
  header: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().node),
49990
50046
  showIcon: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool)
49991
50047
  };
50048
+ var prefixCls = function prefixCls(p) {
50049
+ return p.$prefixCls;
50050
+ };
50051
+ var theme = function theme(cb) {
50052
+ return function (p) {
50053
+ return cb(p.theme);
50054
+ };
50055
+ };
49992
50056
  var Wrapper = styled_components__WEBPACK_IMPORTED_MODULE_2___default().div.withConfig({
49993
50057
  displayName: "Wrapper",
49994
50058
  componentId: "sc-6ku6mu-0"
49995
- })(["display:flex;flex-direction:row;justify-content:flex-start;align-items:flex-start;padding:16px;gap:16px;border-radius:4px;background-color:", ";"], function (_ref2) {
49996
- var $type = _ref2.$type,
49997
- color = _ref2.theme.color;
49998
- return {
49999
- info: color.bg_fill_primary_secondary,
50000
- success: color.bg_fill_success_secondary,
50001
- error: color.bg_fill_error_secondary,
50002
- warning: color.bg_fill_warning_secondary
50003
- }[$type] || color.bg_fill_secondary;
50004
- });
50005
- var Container = styled_components__WEBPACK_IMPORTED_MODULE_2___default().div.withConfig({
50006
- displayName: "Container",
50059
+ })(["display:flex;flex-direction:row;justify-content:flex-start;align-items:flex-start;padding:16px;gap:16px;border-radius:4px;&.", "{&_info{background-color:", ";.", "-icon{color:", ";}}&_success{background-color:", ";.", "-icon{color:", ";}}&_error{background-color:", ";.", "-icon{color:", ";}}&_warning{background-color:", ";.", "-icon{color:", ";}}&_generic{background-color:", ";.", "-icon{color:", ";}}}"], prefixCls, theme(function (t) {
50060
+ return t.color.bg_fill_primary_secondary;
50061
+ }), prefixCls, theme(function (t) {
50062
+ return t.color.icon_primary;
50063
+ }), theme(function (t) {
50064
+ return t.color.bg_fill_success_secondary;
50065
+ }), prefixCls, theme(function (t) {
50066
+ return t.color.icon_success;
50067
+ }), theme(function (t) {
50068
+ return t.color.bg_fill_error_secondary;
50069
+ }), prefixCls, theme(function (t) {
50070
+ return t.color.icon_error;
50071
+ }), theme(function (t) {
50072
+ return t.color.bg_fill_warning_secondary;
50073
+ }), prefixCls, theme(function (t) {
50074
+ return t.color.icon_warning;
50075
+ }), theme(function (t) {
50076
+ return t.color.bg_fill_secondary;
50077
+ }), prefixCls, theme(function (t) {
50078
+ return t.color.icon;
50079
+ }));
50080
+ var Content = styled_components__WEBPACK_IMPORTED_MODULE_2___default().div.withConfig({
50081
+ displayName: "Content",
50007
50082
  componentId: "sc-6ku6mu-1"
50008
- })(["display:flex;flex-direction:column;justify-content:center;align-items:flex-start;gap:16px;"]);
50083
+ })(["display:flex;flex-direction:column;justify-content:center;align-items:flex-start;gap:", ";"], theme(function (t) {
50084
+ return t.spacing['05'];
50085
+ }));
50009
50086
 
50010
50087
  /***/ }),
50011
50088
 
@@ -50029,25 +50106,21 @@ __webpack_require__.r(__webpack_exports__);
50029
50106
  /*jslint react:true*/
50030
50107
 
50031
50108
 
50032
- var SnackbarIcon = function SnackbarIcon(props) {
50033
- var type = props.type;
50109
+ var SnackbarIcon = function SnackbarIcon(_ref) {
50110
+ var _ref$variant = _ref.variant,
50111
+ variant = _ref$variant === void 0 ? 'info' : _ref$variant,
50112
+ className = _ref.className;
50034
50113
  var name = {
50035
50114
  info: 'Info',
50036
50115
  success: 'CheckCircle',
50037
50116
  error: 'Warning',
50038
50117
  warning: 'Warning',
50039
50118
  generic: 'Info'
50040
- }[type] || 'Info';
50041
- var color = {
50042
- info: 'icon_primary',
50043
- success: 'icon_success',
50044
- error: 'icon_error',
50045
- warning: 'icon_warning'
50046
- }[type] || 'icon';
50119
+ }[variant] || 'Info';
50047
50120
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_icon__WEBPACK_IMPORTED_MODULE_1__.Icon, {
50048
50121
  name: name,
50049
- color: color,
50050
- size: "sm"
50122
+ size: "sm",
50123
+ className: className
50051
50124
  });
50052
50125
  };
50053
50126
 
@@ -50434,7 +50507,7 @@ __webpack_require__.r(__webpack_exports__);
50434
50507
 
50435
50508
 
50436
50509
  /*jslint react:true*/
50437
- var _excluded = ["className", "classNamePrefix", "style", "popupClassName", "variant", "moreIcon", "more", "tabs", "children", "indicator", "onChange", "onTabClick", "onTabScroll", "tabBarGutter", "tabBarStyle", "locale", "activeKey", "renderTabBar"];
50510
+ var _excluded = ["className", "classNamePrefix", "style", "popupClassName", "variant", "moreIcon", "more", "tabs", "children", "indicator", "onChange", "onTabClick", "onTabScroll", "tabBarExtraContent", "tabBarGutter", "tabBarStyle", "locale", "activeKey", "renderTabBar"];
50438
50511
  function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
50439
50512
  function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var s = Object.getOwnPropertySymbols(e); for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
50440
50513
  function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
@@ -50461,6 +50534,7 @@ var Tabs = function Tabs(_ref) {
50461
50534
  onChange = _ref.onChange,
50462
50535
  onTabClick = _ref.onTabClick,
50463
50536
  onTabScroll = _ref.onTabScroll,
50537
+ tabBarExtraContent = _ref.tabBarExtraContent,
50464
50538
  tabBarGutter = _ref.tabBarGutter,
50465
50539
  tabBarStyle = _ref.tabBarStyle,
50466
50540
  locale = _ref.locale,
@@ -50489,6 +50563,7 @@ var Tabs = function Tabs(_ref) {
50489
50563
  onChange: onChange,
50490
50564
  onTabClick: onTabClick,
50491
50565
  onTabScroll: onTabClick,
50566
+ tabBarExtraContent: tabBarExtraContent,
50492
50567
  tabBarGutter: tabBarGutter,
50493
50568
  tabBarStyle: tabBarStyle,
50494
50569
  locale: locale,
@@ -50506,6 +50581,10 @@ Tabs.propTypes = {
50506
50581
  onChange: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
50507
50582
  onTabClick: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
50508
50583
  onTabScroll: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
50584
+ tabBarExtraContent: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().node), prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
50585
+ left: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().node),
50586
+ right: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().node)
50587
+ })]),
50509
50588
  tabBarGutter: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number),
50510
50589
  tabBarStyle: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object),
50511
50590
  locale: prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
@@ -50513,7 +50592,8 @@ Tabs.propTypes = {
50513
50592
  removeAriaLabel: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
50514
50593
  addAriaLabel: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string)
50515
50594
  }),
50516
- activeKey: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string)
50595
+ activeKey: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
50596
+ renderTabBar: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func)
50517
50597
  };
50518
50598
  var prefixCls = function prefixCls(p) {
50519
50599
  return p.$prefixCls;
@@ -55343,6 +55423,7 @@ __webpack_require__.r(__webpack_exports__);
55343
55423
  /* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! styled-components */ "styled-components");
55344
55424
  /* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(styled_components__WEBPACK_IMPORTED_MODULE_2__);
55345
55425
  /* harmony import */ var _constant__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./constant */ "./src/themes/constant.js");
55426
+ /* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./util */ "./src/themes/util.js");
55346
55427
  // LICENSE_CODE ZON
55347
55428
 
55348
55429
 
@@ -55357,6 +55438,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
55357
55438
 
55358
55439
 
55359
55440
 
55441
+
55360
55442
  var baseTheme = {
55361
55443
  font_family: _constant__WEBPACK_IMPORTED_MODULE_3__.fontFamily,
55362
55444
  font_size: _constant__WEBPACK_IMPORTED_MODULE_3__.fontSize,
@@ -55382,14 +55464,12 @@ var lightTheme = _objectSpread(_objectSpread({}, baseTheme), {}, {
55382
55464
  color: _objectSpread(_objectSpread(_objectSpread({}, _constant__WEBPACK_IMPORTED_MODULE_3__.color), _constant__WEBPACK_IMPORTED_MODULE_3__.semanticLight), _constant__WEBPACK_IMPORTED_MODULE_3__.componentLight)
55383
55465
  });
55384
55466
  lightTheme.scrollbars = (0,_constant__WEBPACK_IMPORTED_MODULE_3__.scrollbars)(lightTheme);
55385
- // addVar('--uikit-', lightTheme.color);
55386
-
55467
+ (0,_util__WEBPACK_IMPORTED_MODULE_4__.addVar)('--uikit-', lightTheme.color);
55387
55468
  var darkTheme = _objectSpread(_objectSpread({}, baseTheme), {}, {
55388
55469
  color: _objectSpread(_objectSpread(_objectSpread({}, _constant__WEBPACK_IMPORTED_MODULE_3__.color), _constant__WEBPACK_IMPORTED_MODULE_3__.semanticDark), _constant__WEBPACK_IMPORTED_MODULE_3__.componentDark)
55389
55470
  });
55390
55471
  darkTheme.scrollbars = (0,_constant__WEBPACK_IMPORTED_MODULE_3__.scrollbars)(darkTheme);
55391
- // addVar('--uikit-', darkTheme.color);
55392
-
55472
+ (0,_util__WEBPACK_IMPORTED_MODULE_4__.addVar)('--uikit-', darkTheme.color);
55393
55473
  var PT_THEME = prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['light', 'dark']);
55394
55474
  var ThemeProvider = function ThemeProvider(_ref) {
55395
55475
  var theme = _ref.theme,
@@ -55435,6 +55515,47 @@ ThemeProvider.propTypes = {
55435
55515
 
55436
55516
 
55437
55517
 
55518
+ /***/ }),
55519
+
55520
+ /***/ "./src/themes/util.js":
55521
+ /*!****************************!*\
55522
+ !*** ./src/themes/util.js ***!
55523
+ \****************************/
55524
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
55525
+
55526
+ "use strict";
55527
+ __webpack_require__.r(__webpack_exports__);
55528
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
55529
+ /* harmony export */ addVar: () => (/* binding */ addVar),
55530
+ /* harmony export */ buildVars: () => (/* binding */ buildVars)
55531
+ /* harmony export */ });
55532
+ // LICENSE_CODE ZON
55533
+
55534
+
55535
+ /*jslint react:true*/
55536
+ function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
55537
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
55538
+ function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
55539
+ function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
55540
+ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
55541
+ function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
55542
+ var buildVars = function buildVars(prefix, obj) {
55543
+ var res = '';
55544
+ Object.entries(obj).forEach(function (_ref) {
55545
+ var _ref2 = _slicedToArray(_ref, 2),
55546
+ k = _ref2[0],
55547
+ v = _ref2[1];
55548
+ res += prefix + k.replaceAll('_', '-') + ': ' + v + ';\n';
55549
+ });
55550
+ return res;
55551
+ };
55552
+ var addVar = function addVar(prefix, obj) {
55553
+ Object.keys(obj).forEach(function (k) {
55554
+ if (typeof obj[k] != 'string' || obj[k].includes(',')) return;
55555
+ obj[k] = 'var(' + prefix + k.replaceAll('_', '-') + ', ' + obj[k] + ')';
55556
+ });
55557
+ };
55558
+
55438
55559
  /***/ }),
55439
55560
 
55440
55561
  /***/ "./src/toast/context.js":
@@ -56352,7 +56473,7 @@ __webpack_require__.r(__webpack_exports__);
56352
56473
 
56353
56474
 
56354
56475
  /*jslint react:true*/
56355
- var _excluded = ["id", "className", "classNamePrefix", "variant", "trigger", "visible", "placement", "tooltip", "showArrow", "onVisibleChange", "afterVisibleChange", "children"];
56476
+ var _excluded = ["id", "className", "classNamePrefix", "variant", "trigger", "visible", "placement", "tooltip", "showArrow", "onVisibleChange", "afterVisibleChange", "children", "destroyOnClose"];
56356
56477
  function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var s = Object.getOwnPropertySymbols(e); for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
56357
56478
  function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
56358
56479
 
@@ -56378,6 +56499,8 @@ var _Tooltip = function Tooltip2(_ref) {
56378
56499
  onVisibleChange = _ref.onVisibleChange,
56379
56500
  afterVisibleChange = _ref.afterVisibleChange,
56380
56501
  children = _ref.children,
56502
+ _ref$destroyOnClose = _ref.destroyOnClose,
56503
+ destroyOnClose = _ref$destroyOnClose === void 0 ? true : _ref$destroyOnClose,
56381
56504
  rest = _objectWithoutProperties(_ref, _excluded);
56382
56505
  var theme = (0,styled_components__WEBPACK_IMPORTED_MODULE_3__.useTheme)();
56383
56506
  var mouseEnterDelay = (0,_util__WEBPACK_IMPORTED_MODULE_4__.firstDefined)(rest.showDelay, _Tooltip.showDelay);
@@ -56402,7 +56525,8 @@ var _Tooltip = function Tooltip2(_ref) {
56402
56525
  align: align,
56403
56526
  showArrow: showArrow,
56404
56527
  onVisibleChange: onVisibleChange,
56405
- afterVisibleChange: afterVisibleChange
56528
+ afterVisibleChange: afterVisibleChange,
56529
+ destroyOnClose: destroyOnClose
56406
56530
  }, children));
56407
56531
  };
56408
56532
 
@@ -56420,7 +56544,8 @@ _Tooltip.propTypes = {
56420
56544
  align: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object),
56421
56545
  showArrow: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
56422
56546
  onVisibleChange: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
56423
- afterVisibleChange: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func)
56547
+ afterVisibleChange: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
56548
+ destroyOnClose: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool)
56424
56549
  };
56425
56550
  _Tooltip.showDelay = 0.1;
56426
56551
  _Tooltip.hideDelay = 0.1;
@@ -57793,6 +57918,9 @@ var StyledList = styled_components__WEBPACK_IMPORTED_MODULE_3___default()(react_
57793
57918
  var scrollbars = _ref2.theme.scrollbars;
57794
57919
  return scrollbars.thin;
57795
57920
  });
57921
+ var defaultValueGetter = function defaultValueGetter(item) {
57922
+ return item && item.value;
57923
+ };
57796
57924
  var ListVirtualizedComponent = function ListVirtualizedComponent(props) {
57797
57925
  var listComponent;
57798
57926
  var _useState = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(undefined),
@@ -57803,15 +57931,20 @@ var ListVirtualizedComponent = function ListVirtualizedComponent(props) {
57803
57931
  _useState4 = _slicedToArray(_useState3, 2),
57804
57932
  queueScrollToIdx = _useState4[0],
57805
57933
  setQueueScrollToIdx = _useState4[1];
57806
- var maxHeight = props.maxHeight,
57934
+ var _props$maxHeight = props.maxHeight,
57935
+ maxHeight = _props$maxHeight === void 0 ? 200 : _props$maxHeight,
57936
+ _props$minimumBatchSi = props.minimumBatchSize,
57937
+ minimumBatchSize = _props$minimumBatchSi === void 0 ? 100 : _props$minimumBatchSi,
57807
57938
  children = props.children,
57808
57939
  optionHeight = props.optionHeight,
57809
57940
  options = props.options,
57810
57941
  selectedValue = props.selectedValue,
57811
57942
  defaultValue = props.defaultValue,
57812
- valueGetter = props.valueGetter,
57943
+ _props$valueGetter = props.valueGetter,
57944
+ valueGetter = _props$valueGetter === void 0 ? defaultValueGetter : _props$valueGetter,
57813
57945
  formatOptionLabel = props.formatOptionLabel,
57814
- Option = props.Option;
57946
+ Option = props.Option,
57947
+ threshold = props.threshold;
57815
57948
  (0,react__WEBPACK_IMPORTED_MODULE_1__.useEffect)(function () {
57816
57949
  // only scroll to index when we have something in the queue of focused
57817
57950
  // and not visible
@@ -57823,7 +57956,8 @@ var ListVirtualizedComponent = function ListVirtualizedComponent(props) {
57823
57956
  var onOptionFocused = (0,react__WEBPACK_IMPORTED_MODULE_1__.useCallback)(function (_ref3) {
57824
57957
  var index = _ref3.index,
57825
57958
  isVisible = _ref3.isVisible;
57826
- // enqueue the changes to the task queue so we do not interrupt rendering
57959
+ // enqueue the changes to the task queue so we do not interrupt
57960
+ // rendering
57827
57961
  setTimeout(function () {
57828
57962
  if (index !== undefined && focusedItemIndex !== index && isVisible) setFocusedItemIndex(index);else if (index !== undefined && !isVisible && !queueScrollToIdx) setQueueScrollToIdx(index);
57829
57963
  }, 100);
@@ -57863,16 +57997,17 @@ var ListVirtualizedComponent = function ListVirtualizedComponent(props) {
57863
57997
  stopIndex = _ref5.stopIndex;
57864
57998
  for (var i = startIndex; i <= stopIndex; i++) list.push(children[i]);
57865
57999
  }, 100);
58000
+ var rowCount = (children === null || children === void 0 ? void 0 : children.length) || 0;
57866
58001
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(react_virtualized__WEBPACK_IMPORTED_MODULE_2__.AutoSizer, {
57867
58002
  disableHeight: true
57868
58003
  }, function (_ref6) {
57869
58004
  var width = _ref6.width;
57870
58005
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(react_virtualized__WEBPACK_IMPORTED_MODULE_2__.InfiniteLoader, {
57871
58006
  isRowLoaded: isRowLoaded,
57872
- threshold: props.threshold,
58007
+ threshold: threshold,
57873
58008
  loadMoreRows: loadMoreRows,
57874
- rowCount: props.children.length || 0,
57875
- minimumBatchSize: props.minimumBatchSize
58009
+ rowCount: rowCount,
58010
+ minimumBatchSize: minimumBatchSize
57876
58011
  }, function (_ref7) {
57877
58012
  var onRowsRendered = _ref7.onRowsRendered,
57878
58013
  registerChild = _ref7.registerChild;
@@ -57887,8 +58022,8 @@ var ListVirtualizedComponent = function ListVirtualizedComponent(props) {
57887
58022
  onRowsRendered: onRowsRendered,
57888
58023
  height: height,
57889
58024
  scrollToIndex: scrollToIndex,
57890
- rowCount: props.children.length,
57891
- rowHeight: props.optionHeight,
58025
+ rowCount: rowCount,
58026
+ rowHeight: optionHeight,
57892
58027
  rowRenderer: rowRenderer,
57893
58028
  width: width
57894
58029
  });
@@ -57907,13 +58042,6 @@ ListVirtualized.propTypes = {
57907
58042
  options: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().array).isRequired,
57908
58043
  minimumBatchSize: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number)
57909
58044
  };
57910
- ListVirtualized.defaultProps = {
57911
- valueGetter: function valueGetter(item) {
57912
- return item && item.value;
57913
- },
57914
- maxHeight: 200,
57915
- minimumBatchSize: 100
57916
- };
57917
58045
  var VirtualizedListRowRenderer = function VirtualizedListRowRenderer(_ref8) {
57918
58046
  var children = _ref8.children,
57919
58047
  onOptionFocused = _ref8.onOptionFocused,
@@ -57933,12 +58061,14 @@ var VirtualizedListRowRenderer = function VirtualizedListRowRenderer(_ref8) {
57933
58061
  var className = thisProps.cx({
57934
58062
  'virtualized-item': true
57935
58063
  });
57936
- if (thisProps.isFocused && !isScrolling) onOptionFocused({
57937
- data: thisProps.data,
57938
- index: index,
57939
- isVisible: isVisible,
57940
- isScrolling: isScrolling
57941
- });
58064
+ if (thisProps.isFocused && !isScrolling) {
58065
+ onOptionFocused({
58066
+ data: thisProps.data,
58067
+ index: index,
58068
+ isVisible: isVisible,
58069
+ isScrolling: isScrolling
58070
+ });
58071
+ }
57942
58072
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("div", {
57943
58073
  className: className,
57944
58074
  key: key,