@luminati-io/uikit 6.3.12 → 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",
@@ -49946,13 +49977,14 @@ __webpack_require__.r(__webpack_exports__);
49946
49977
  /* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! styled-components */ "styled-components");
49947
49978
  /* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(styled_components__WEBPACK_IMPORTED_MODULE_2__);
49948
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");
49949
- /* harmony import */ var _typography__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../typography */ "./src/typography/index.js");
49950
- /* 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");
49951
49983
  // LICENSE_CODE ZON
49952
49984
 
49953
49985
 
49954
49986
  /*jslint react:true*/
49955
- var _excluded = ["type", "showIcon", "header", "children", "container_style"];
49987
+ var _excluded = ["className", "classNamePrefix", "variant", "type", "showIcon", "header", "children", "contentStyle", "container_style"];
49956
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); }
49957
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; }
49958
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; }
@@ -49962,54 +49994,95 @@ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t =
49962
49994
 
49963
49995
 
49964
49996
 
49965
- var Snackbar = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forwardRef(function (_ref, ref) {
49966
- var _ref$type = _ref.type,
49967
- type = _ref$type === void 0 ? 'info' : _ref$type,
49968
- showIcon = _ref.showIcon,
49969
- header = _ref.header,
49970
- children = _ref.children,
49971
- container_style = _ref.container_style,
49972
- rest = _objectWithoutProperties(_ref, _excluded);
49973
- 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, {
49974
50013
  variant: "lg_snug",
49975
50014
  color: "text"
49976
50015
  }, children) : children;
49977
50016
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(Wrapper, _extends({
49978
- ref: ref,
49979
- $type: type
49980
- }, (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, {
49981
- type: type
49982
- }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(Container, {
49983
- style: container_style
49984
- }, !!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, {
49985
50032
  variant: "lg",
49986
- color: "text"
50033
+ color: "text",
50034
+ className: (0,_util__WEBPACK_IMPORTED_MODULE_4__.classNames)(classNamePrefix, {
50035
+ '-header': true
50036
+ })
49987
50037
  }, header), content));
49988
50038
  });
49989
50039
  Snackbar.displayName = 'Snackbar';
49990
50040
  Snackbar.propTypes = {
49991
- container_style: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object),
49992
- 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']),
49993
50045
  header: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().node),
49994
50046
  showIcon: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool)
49995
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
+ };
49996
50056
  var Wrapper = styled_components__WEBPACK_IMPORTED_MODULE_2___default().div.withConfig({
49997
50057
  displayName: "Wrapper",
49998
50058
  componentId: "sc-6ku6mu-0"
49999
- })(["display:flex;flex-direction:row;justify-content:flex-start;align-items:flex-start;padding:16px;gap:16px;border-radius:4px;background-color:", ";"], function (_ref2) {
50000
- var $type = _ref2.$type,
50001
- color = _ref2.theme.color;
50002
- return {
50003
- info: color.bg_fill_primary_secondary,
50004
- success: color.bg_fill_success_secondary,
50005
- error: color.bg_fill_error_secondary,
50006
- warning: color.bg_fill_warning_secondary
50007
- }[$type] || color.bg_fill_secondary;
50008
- });
50009
- var Container = styled_components__WEBPACK_IMPORTED_MODULE_2___default().div.withConfig({
50010
- 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",
50011
50082
  componentId: "sc-6ku6mu-1"
50012
- })(["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
+ }));
50013
50086
 
50014
50087
  /***/ }),
50015
50088
 
@@ -50033,25 +50106,21 @@ __webpack_require__.r(__webpack_exports__);
50033
50106
  /*jslint react:true*/
50034
50107
 
50035
50108
 
50036
- var SnackbarIcon = function SnackbarIcon(props) {
50037
- 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;
50038
50113
  var name = {
50039
50114
  info: 'Info',
50040
50115
  success: 'CheckCircle',
50041
50116
  error: 'Warning',
50042
50117
  warning: 'Warning',
50043
50118
  generic: 'Info'
50044
- }[type] || 'Info';
50045
- var color = {
50046
- info: 'icon_primary',
50047
- success: 'icon_success',
50048
- error: 'icon_error',
50049
- warning: 'icon_warning'
50050
- }[type] || 'icon';
50119
+ }[variant] || 'Info';
50051
50120
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_icon__WEBPACK_IMPORTED_MODULE_1__.Icon, {
50052
50121
  name: name,
50053
- color: color,
50054
- size: "sm"
50122
+ size: "sm",
50123
+ className: className
50055
50124
  });
50056
50125
  };
50057
50126
 
@@ -55354,6 +55423,7 @@ __webpack_require__.r(__webpack_exports__);
55354
55423
  /* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! styled-components */ "styled-components");
55355
55424
  /* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(styled_components__WEBPACK_IMPORTED_MODULE_2__);
55356
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");
55357
55427
  // LICENSE_CODE ZON
55358
55428
 
55359
55429
 
@@ -55368,6 +55438,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
55368
55438
 
55369
55439
 
55370
55440
 
55441
+
55371
55442
  var baseTheme = {
55372
55443
  font_family: _constant__WEBPACK_IMPORTED_MODULE_3__.fontFamily,
55373
55444
  font_size: _constant__WEBPACK_IMPORTED_MODULE_3__.fontSize,
@@ -55393,14 +55464,12 @@ var lightTheme = _objectSpread(_objectSpread({}, baseTheme), {}, {
55393
55464
  color: _objectSpread(_objectSpread(_objectSpread({}, _constant__WEBPACK_IMPORTED_MODULE_3__.color), _constant__WEBPACK_IMPORTED_MODULE_3__.semanticLight), _constant__WEBPACK_IMPORTED_MODULE_3__.componentLight)
55394
55465
  });
55395
55466
  lightTheme.scrollbars = (0,_constant__WEBPACK_IMPORTED_MODULE_3__.scrollbars)(lightTheme);
55396
- // addVar('--uikit-', lightTheme.color);
55397
-
55467
+ (0,_util__WEBPACK_IMPORTED_MODULE_4__.addVar)('--uikit-', lightTheme.color);
55398
55468
  var darkTheme = _objectSpread(_objectSpread({}, baseTheme), {}, {
55399
55469
  color: _objectSpread(_objectSpread(_objectSpread({}, _constant__WEBPACK_IMPORTED_MODULE_3__.color), _constant__WEBPACK_IMPORTED_MODULE_3__.semanticDark), _constant__WEBPACK_IMPORTED_MODULE_3__.componentDark)
55400
55470
  });
55401
55471
  darkTheme.scrollbars = (0,_constant__WEBPACK_IMPORTED_MODULE_3__.scrollbars)(darkTheme);
55402
- // addVar('--uikit-', darkTheme.color);
55403
-
55472
+ (0,_util__WEBPACK_IMPORTED_MODULE_4__.addVar)('--uikit-', darkTheme.color);
55404
55473
  var PT_THEME = prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['light', 'dark']);
55405
55474
  var ThemeProvider = function ThemeProvider(_ref) {
55406
55475
  var theme = _ref.theme,
@@ -55446,6 +55515,47 @@ ThemeProvider.propTypes = {
55446
55515
 
55447
55516
 
55448
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
+
55449
55559
  /***/ }),
55450
55560
 
55451
55561
  /***/ "./src/toast/context.js":
@@ -57808,6 +57918,9 @@ var StyledList = styled_components__WEBPACK_IMPORTED_MODULE_3___default()(react_
57808
57918
  var scrollbars = _ref2.theme.scrollbars;
57809
57919
  return scrollbars.thin;
57810
57920
  });
57921
+ var defaultValueGetter = function defaultValueGetter(item) {
57922
+ return item && item.value;
57923
+ };
57811
57924
  var ListVirtualizedComponent = function ListVirtualizedComponent(props) {
57812
57925
  var listComponent;
57813
57926
  var _useState = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(undefined),
@@ -57818,15 +57931,20 @@ var ListVirtualizedComponent = function ListVirtualizedComponent(props) {
57818
57931
  _useState4 = _slicedToArray(_useState3, 2),
57819
57932
  queueScrollToIdx = _useState4[0],
57820
57933
  setQueueScrollToIdx = _useState4[1];
57821
- 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,
57822
57938
  children = props.children,
57823
57939
  optionHeight = props.optionHeight,
57824
57940
  options = props.options,
57825
57941
  selectedValue = props.selectedValue,
57826
57942
  defaultValue = props.defaultValue,
57827
- valueGetter = props.valueGetter,
57943
+ _props$valueGetter = props.valueGetter,
57944
+ valueGetter = _props$valueGetter === void 0 ? defaultValueGetter : _props$valueGetter,
57828
57945
  formatOptionLabel = props.formatOptionLabel,
57829
- Option = props.Option;
57946
+ Option = props.Option,
57947
+ threshold = props.threshold;
57830
57948
  (0,react__WEBPACK_IMPORTED_MODULE_1__.useEffect)(function () {
57831
57949
  // only scroll to index when we have something in the queue of focused
57832
57950
  // and not visible
@@ -57838,7 +57956,8 @@ var ListVirtualizedComponent = function ListVirtualizedComponent(props) {
57838
57956
  var onOptionFocused = (0,react__WEBPACK_IMPORTED_MODULE_1__.useCallback)(function (_ref3) {
57839
57957
  var index = _ref3.index,
57840
57958
  isVisible = _ref3.isVisible;
57841
- // 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
57842
57961
  setTimeout(function () {
57843
57962
  if (index !== undefined && focusedItemIndex !== index && isVisible) setFocusedItemIndex(index);else if (index !== undefined && !isVisible && !queueScrollToIdx) setQueueScrollToIdx(index);
57844
57963
  }, 100);
@@ -57878,16 +57997,17 @@ var ListVirtualizedComponent = function ListVirtualizedComponent(props) {
57878
57997
  stopIndex = _ref5.stopIndex;
57879
57998
  for (var i = startIndex; i <= stopIndex; i++) list.push(children[i]);
57880
57999
  }, 100);
58000
+ var rowCount = (children === null || children === void 0 ? void 0 : children.length) || 0;
57881
58001
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(react_virtualized__WEBPACK_IMPORTED_MODULE_2__.AutoSizer, {
57882
58002
  disableHeight: true
57883
58003
  }, function (_ref6) {
57884
58004
  var width = _ref6.width;
57885
58005
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(react_virtualized__WEBPACK_IMPORTED_MODULE_2__.InfiniteLoader, {
57886
58006
  isRowLoaded: isRowLoaded,
57887
- threshold: props.threshold,
58007
+ threshold: threshold,
57888
58008
  loadMoreRows: loadMoreRows,
57889
- rowCount: props.children.length || 0,
57890
- minimumBatchSize: props.minimumBatchSize
58009
+ rowCount: rowCount,
58010
+ minimumBatchSize: minimumBatchSize
57891
58011
  }, function (_ref7) {
57892
58012
  var onRowsRendered = _ref7.onRowsRendered,
57893
58013
  registerChild = _ref7.registerChild;
@@ -57902,8 +58022,8 @@ var ListVirtualizedComponent = function ListVirtualizedComponent(props) {
57902
58022
  onRowsRendered: onRowsRendered,
57903
58023
  height: height,
57904
58024
  scrollToIndex: scrollToIndex,
57905
- rowCount: props.children.length,
57906
- rowHeight: props.optionHeight,
58025
+ rowCount: rowCount,
58026
+ rowHeight: optionHeight,
57907
58027
  rowRenderer: rowRenderer,
57908
58028
  width: width
57909
58029
  });
@@ -57922,13 +58042,6 @@ ListVirtualized.propTypes = {
57922
58042
  options: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().array).isRequired,
57923
58043
  minimumBatchSize: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number)
57924
58044
  };
57925
- ListVirtualized.defaultProps = {
57926
- valueGetter: function valueGetter(item) {
57927
- return item && item.value;
57928
- },
57929
- maxHeight: 200,
57930
- minimumBatchSize: 100
57931
- };
57932
58045
  var VirtualizedListRowRenderer = function VirtualizedListRowRenderer(_ref8) {
57933
58046
  var children = _ref8.children,
57934
58047
  onOptionFocused = _ref8.onOptionFocused,
@@ -57948,12 +58061,14 @@ var VirtualizedListRowRenderer = function VirtualizedListRowRenderer(_ref8) {
57948
58061
  var className = thisProps.cx({
57949
58062
  'virtualized-item': true
57950
58063
  });
57951
- if (thisProps.isFocused && !isScrolling) onOptionFocused({
57952
- data: thisProps.data,
57953
- index: index,
57954
- isVisible: isVisible,
57955
- isScrolling: isScrolling
57956
- });
58064
+ if (thisProps.isFocused && !isScrolling) {
58065
+ onOptionFocused({
58066
+ data: thisProps.data,
58067
+ index: index,
58068
+ isVisible: isVisible,
58069
+ isScrolling: isScrolling
58070
+ });
58071
+ }
57957
58072
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("div", {
57958
58073
  className: className,
57959
58074
  key: key,