@luminati-io/uikit 3.8.3 → 3.9.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -28561,17 +28561,16 @@ __webpack_require__.r(__webpack_exports__);
28561
28561
 
28562
28562
 
28563
28563
 
28564
- var Badge = function Badge(props) {
28565
- var className = props.className,
28566
- children = props.children,
28567
- shape = props.shape,
28568
- variant = props.variant,
28569
- icon = props.icon,
28570
- iconPlacement = props.iconPlacement,
28571
- onClick = props.onClick;
28572
- var handleClick = (0,react__WEBPACK_IMPORTED_MODULE_1__.useCallback)(function () {
28573
- onClick === null || onClick === void 0 || onClick();
28574
- }, [onClick]);
28564
+ var Badge = function Badge(_ref) {
28565
+ var className = _ref.className,
28566
+ children = _ref.children,
28567
+ _ref$shape = _ref.shape,
28568
+ shape = _ref$shape === void 0 ? 'square' : _ref$shape,
28569
+ _ref$variant = _ref.variant,
28570
+ variant = _ref$variant === void 0 ? 'default' : _ref$variant,
28571
+ icon = _ref.icon,
28572
+ iconPlacement = _ref.iconPlacement,
28573
+ onClick = _ref.onClick;
28575
28574
  var bgColor = (0,react__WEBPACK_IMPORTED_MODULE_1__.useMemo)(function () {
28576
28575
  return {
28577
28576
  "default": _theme__WEBPACK_IMPORTED_MODULE_5__["default"].color.gray_3,
@@ -28599,16 +28598,12 @@ var Badge = function Badge(props) {
28599
28598
  name: icon,
28600
28599
  size: "xxs",
28601
28600
  color: color,
28602
- onClick: handleClick
28601
+ onClick: onClick
28603
28602
  }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_6__.Label, {
28604
28603
  variant: "xs",
28605
28604
  color: color
28606
28605
  }, children));
28607
28606
  };
28608
- Badge.defaultProps = {
28609
- shape: 'square',
28610
- variant: 'default'
28611
- };
28612
28607
  Badge.propTypes = {
28613
28608
  shape: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['rounded', 'square']),
28614
28609
  variant: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['default', 'negative', 'positive', 'gold', 'blue']),
@@ -29064,25 +29059,22 @@ __webpack_require__.r(__webpack_exports__);
29064
29059
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
29065
29060
  /* harmony export */ Button: () => (/* binding */ Button)
29066
29061
  /* harmony export */ });
29067
- /* harmony import */ var lodash_omit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/omit */ "./node_modules/lodash/omit.js");
29068
- /* harmony import */ var lodash_omit__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_omit__WEBPACK_IMPORTED_MODULE_0__);
29069
- /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "prop-types");
29070
- /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
29071
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ "react");
29072
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);
29073
- /* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! styled-components */ "styled-components");
29074
- /* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(styled_components__WEBPACK_IMPORTED_MODULE_3__);
29075
- /* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../icon */ "./src/icon.js");
29076
- /* harmony import */ var _typography__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../typography */ "./src/typography/index.js");
29077
- /* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../util */ "./src/util/index.js");
29078
- /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../utils */ "./src/utils.js");
29079
- /* harmony import */ var _loading_icon__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./loading_icon */ "./src/button/loading_icon.js");
29062
+ /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! prop-types */ "prop-types");
29063
+ /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_0__);
29064
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
29065
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
29066
+ /* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! styled-components */ "styled-components");
29067
+ /* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(styled_components__WEBPACK_IMPORTED_MODULE_2__);
29068
+ /* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../icon */ "./src/icon.js");
29069
+ /* harmony import */ var _typography__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../typography */ "./src/typography/index.js");
29070
+ /* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../util */ "./src/util/index.js");
29071
+ /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../utils */ "./src/utils.js");
29072
+ /* harmony import */ var _loading_icon__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./loading_icon */ "./src/button/loading_icon.js");
29080
29073
  // LICENSE_CODE ZON
29081
29074
 
29082
29075
 
29083
29076
  /*jslint react:true*/
29084
-
29085
- var _excluded = ["text", "variant", "size", "disabled", "loading", "loadingText"],
29077
+ var _excluded = ["text", "variant", "size", "disabled", "loading", "loadingText", "icon", "iconPlacement"],
29086
29078
  _excluded2 = ["isLeft", "isRight"];
29087
29079
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
29088
29080
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
@@ -29095,51 +29087,55 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
29095
29087
 
29096
29088
 
29097
29089
 
29098
- var Button = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().forwardRef(function (props, ref) {
29099
- var text = props.text,
29100
- variant = props.variant,
29101
- size = props.size,
29102
- disabled = props.disabled,
29103
- loading = props.loading,
29104
- loadingText = props.loadingText,
29105
- rest = _objectWithoutProperties(props, _excluded);
29106
- var _getIconProps = (0,_utils__WEBPACK_IMPORTED_MODULE_7__.getIconProps)('Button', props),
29090
+ var Button = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forwardRef(function (_ref, ref) {
29091
+ var text = _ref.text,
29092
+ _ref$variant = _ref.variant,
29093
+ variant = _ref$variant === void 0 ? 'primary' : _ref$variant,
29094
+ _ref$size = _ref.size,
29095
+ size = _ref$size === void 0 ? 'md' : _ref$size,
29096
+ disabled = _ref.disabled,
29097
+ loading = _ref.loading,
29098
+ _ref$loadingText = _ref.loadingText,
29099
+ loadingText = _ref$loadingText === void 0 ? 'Loading...' : _ref$loadingText,
29100
+ icon = _ref.icon,
29101
+ _ref$iconPlacement = _ref.iconPlacement,
29102
+ iconPlacement = _ref$iconPlacement === void 0 ? 'left' : _ref$iconPlacement,
29103
+ rest = _objectWithoutProperties(_ref, _excluded);
29104
+ var _getIconProps = (0,_utils__WEBPACK_IMPORTED_MODULE_6__.getIconProps)('Button', {
29105
+ size: size,
29106
+ icon: icon,
29107
+ iconPlacement: iconPlacement
29108
+ }),
29107
29109
  isLeft = _getIconProps.isLeft,
29108
29110
  isRight = _getIconProps.isRight,
29109
29111
  iconProps = _objectWithoutProperties(_getIconProps, _excluded2);
29110
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(StyledButton, _extends({
29112
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(StyledButton, _extends({
29111
29113
  ref: ref
29112
- }, lodash_omit__WEBPACK_IMPORTED_MODULE_0___default()(rest, 'icon', 'iconPlacement'), {
29114
+ }, rest, {
29113
29115
  disabled: loading || disabled,
29114
29116
  $variant: variant,
29115
29117
  $size: size,
29116
29118
  $iconPlacement: isLeft || loading ? 'left' : isRight ? 'right' : ''
29117
- }), loading && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_loading_icon__WEBPACK_IMPORTED_MODULE_8__.LoadingIcon, {
29119
+ }), loading && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_loading_icon__WEBPACK_IMPORTED_MODULE_7__.LoadingIcon, {
29118
29120
  size: iconProps.size
29119
- }), isLeft && !loading && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_icon__WEBPACK_IMPORTED_MODULE_4__.Icon, iconProps), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_5__.Label, {
29121
+ }), isLeft && !loading && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_icon__WEBPACK_IMPORTED_MODULE_3__.Icon, iconProps), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_4__.Label, {
29120
29122
  variant: size == 'xs' ? 'sm' : 'lg',
29121
29123
  no_wrap: true,
29122
29124
  "data-label": true
29123
- }, loading ? loadingText : text), isRight && !loading && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_icon__WEBPACK_IMPORTED_MODULE_4__.Icon, iconProps));
29125
+ }, loading ? loadingText : text), isRight && !loading && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_icon__WEBPACK_IMPORTED_MODULE_3__.Icon, iconProps));
29124
29126
  });
29125
29127
  Button.displayName = 'Button';
29126
- Button.defaultProps = {
29127
- variant: 'primary',
29128
- size: 'md',
29129
- iconPlacement: 'left',
29130
- loadingText: 'Loading...'
29131
- };
29132
29128
  Button.propTypes = {
29133
- text: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().node).isRequired,
29134
- variant: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOf(['primary', 'secondary', 'negative', 'negative_secondary', 'positive', 'white']),
29135
- size: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOf(['xs', 'sm', 'md', 'lg']),
29136
- icon: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOf(_utils__WEBPACK_IMPORTED_MODULE_7__.iconNames),
29137
- iconPlacement: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOf(['left', 'right']),
29138
- disabled: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().bool),
29139
- loading: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().bool),
29140
- loadingText: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().string)
29129
+ text: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().node).isRequired,
29130
+ variant: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['primary', 'secondary', 'negative', 'negative_secondary', 'positive', 'white']),
29131
+ size: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['xs', 'sm', 'md', 'lg']),
29132
+ icon: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(_utils__WEBPACK_IMPORTED_MODULE_6__.iconNames),
29133
+ iconPlacement: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['left', 'right']),
29134
+ disabled: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
29135
+ loading: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
29136
+ loadingText: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string)
29141
29137
  };
29142
- var StyledButton = styled_components__WEBPACK_IMPORTED_MODULE_3___default().button.withConfig({
29138
+ var StyledButton = styled_components__WEBPACK_IMPORTED_MODULE_2___default().button.withConfig({
29143
29139
  displayName: "StyledButton",
29144
29140
  componentId: "sc-ckjtjy-0"
29145
29141
  })(["display:inline-flex;align-items:center;justify-content:center;border-radius:4px;cursor:pointer;&:disabled{cursor:not-allowed;}text-decoration:none;&:hover,&:visited,:focus{text-decoration:none;}", " ", " ", ""], function (props) {
@@ -29151,12 +29147,12 @@ var StyledButton = styled_components__WEBPACK_IMPORTED_MODULE_3___default().butt
29151
29147
  gap = 2;
29152
29148
  paddingLeft = paddingRight = 8;
29153
29149
  }
29154
- return (0,styled_components__WEBPACK_IMPORTED_MODULE_3__.css)(["gap:", ";padding-left:", ";padding-right:", ";"], (0,_utils__WEBPACK_IMPORTED_MODULE_7__.toPixel)(gap), (0,_utils__WEBPACK_IMPORTED_MODULE_7__.toPixel)(paddingLeft), (0,_utils__WEBPACK_IMPORTED_MODULE_7__.toPixel)(paddingRight));
29150
+ return (0,styled_components__WEBPACK_IMPORTED_MODULE_2__.css)(["gap:", ";padding-left:", ";padding-right:", ";"], (0,_utils__WEBPACK_IMPORTED_MODULE_6__.toPixel)(gap), (0,_utils__WEBPACK_IMPORTED_MODULE_6__.toPixel)(paddingLeft), (0,_utils__WEBPACK_IMPORTED_MODULE_6__.toPixel)(paddingRight));
29155
29151
  }, function (props) {
29156
- var colors = (0,_util__WEBPACK_IMPORTED_MODULE_6__.getButtonColors)(props);
29157
- return (0,styled_components__WEBPACK_IMPORTED_MODULE_3__.css)(["background-color:", ";border:", ";[data-label]{color:", ";}[data-icon]{color:", ";}", " ", ""], colors.backColor, colors.border || '0 none', colors.color, colors.iconColor || colors.color, colors.hover && "&:hover {\n background-color: ".concat(colors.hover.backColor, ";\n }"), colors.active && "&:active {\n background-color: ".concat(colors.active.backColor, ";\n border: ").concat(colors.active.border, ";\n box-shadow: ").concat(colors.active.boxShadow, ";\n ").concat(colors.active.iconColor && "[data-icon] {\n color: ".concat(colors.active.iconColor, ";\n }"), "\n }"));
29152
+ var colors = (0,_util__WEBPACK_IMPORTED_MODULE_5__.getButtonColors)(props);
29153
+ return (0,styled_components__WEBPACK_IMPORTED_MODULE_2__.css)(["background-color:", ";border:", ";[data-label]{color:", ";}[data-icon]{color:", ";}", " ", ""], colors.backColor, colors.border || '0 none', colors.color, colors.iconColor || colors.color, colors.hover && "&:hover {\n background-color: ".concat(colors.hover.backColor, ";\n }"), colors.active && "&:active {\n background-color: ".concat(colors.active.backColor, ";\n border: ").concat(colors.active.border, ";\n box-shadow: ").concat(colors.active.boxShadow, ";\n ").concat(colors.active.iconColor && "[data-icon] {\n color: ".concat(colors.active.iconColor, ";\n }"), "\n }"));
29158
29154
  }, function (props) {
29159
- return (0,_util__WEBPACK_IMPORTED_MODULE_6__.getButtonSize)(props.$size);
29155
+ return (0,_util__WEBPACK_IMPORTED_MODULE_5__.getButtonSize)(props.$size);
29160
29156
  });
29161
29157
 
29162
29158
  /***/ }),
@@ -29255,6 +29251,9 @@ __webpack_require__.r(__webpack_exports__);
29255
29251
 
29256
29252
  /*jslint react:true*/
29257
29253
  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); }
29254
+ var _excluded = ["animated", "showGridRows", "showGridColumns", "stacked"];
29255
+ function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
29256
+ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } } return target; }
29258
29257
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
29259
29258
  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."); }
29260
29259
  function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
@@ -29395,21 +29394,32 @@ AreaChart.displayName = 'AreaChart';
29395
29394
  var Area = function Area(props) {
29396
29395
  var _splitProps = (0,_util__WEBPACK_IMPORTED_MODULE_2__.splitProps)(props, 'animated', 'showGridRows', 'showGridColumns', 'numTicks', 'xAxis', 'yAxis', 'formatValue', 'margin', 'stacked', 'showTooltip', 'tooltipContent', 'curveType', 'onPointerMove', 'onPointerOut', 'onPointerUp', 'onPointerDown', 'pointerEventsDataKey', 'children'),
29397
29396
  _splitProps2 = _slicedToArray(_splitProps, 2),
29398
- chartProps = _splitProps2[0],
29399
- restProps = _splitProps2[1];
29397
+ _splitProps2$ = _splitProps2[0],
29398
+ _splitProps2$$animate = _splitProps2$.animated,
29399
+ animated = _splitProps2$$animate === void 0 ? true : _splitProps2$$animate,
29400
+ _splitProps2$$showGri = _splitProps2$.showGridRows,
29401
+ showGridRows = _splitProps2$$showGri === void 0 ? false : _splitProps2$$showGri,
29402
+ _splitProps2$$showGri2 = _splitProps2$.showGridColumns,
29403
+ showGridColumns = _splitProps2$$showGri2 === void 0 ? false : _splitProps2$$showGri2,
29404
+ _splitProps2$$stacked = _splitProps2$.stacked,
29405
+ stacked = _splitProps2$$stacked === void 0 ? false : _splitProps2$$stacked,
29406
+ chartProps = _objectWithoutProperties(_splitProps2$, _excluded),
29407
+ _splitProps2$2 = _splitProps2[1],
29408
+ _splitProps2$2$classN = _splitProps2$2.className,
29409
+ className = _splitProps2$2$classN === void 0 ? 'area-class' : _splitProps2$2$classN,
29410
+ restProps = _splitProps2$2.restProps;
29400
29411
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_chart_container__WEBPACK_IMPORTED_MODULE_3__.ChartContainer, _extends({}, restProps, {
29412
+ className: className,
29401
29413
  Chart: AreaChart,
29402
- chartProps: chartProps
29414
+ chartProps: _objectSpread({
29415
+ animated: animated,
29416
+ showGridRows: showGridRows,
29417
+ showGridColumns: showGridColumns,
29418
+ stacked: stacked
29419
+ }, chartProps)
29403
29420
  }));
29404
29421
  };
29405
29422
  Area.displayName = 'Chart.Area';
29406
- Area.defaultProps = {
29407
- animated: true,
29408
- showGridRows: false,
29409
- showGridColumns: false,
29410
- stacked: false,
29411
- className: 'area-class'
29412
- };
29413
29423
  Area.propTypes = {
29414
29424
  animated: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().bool),
29415
29425
  showGridRows: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().bool),
@@ -29487,7 +29497,8 @@ __webpack_require__.r(__webpack_exports__);
29487
29497
 
29488
29498
  /*jslint react:true*/
29489
29499
  var _excluded = ["id", "type"],
29490
- _excluded2 = ["pattern"];
29500
+ _excluded2 = ["pattern"],
29501
+ _excluded3 = ["animated", "showGridRows", "showGridColumns", "horizontal"];
29491
29502
  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); }
29492
29503
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
29493
29504
  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."); }
@@ -29672,20 +29683,28 @@ BarChart.displayName = 'BarChart';
29672
29683
  var Bar = function Bar(props) {
29673
29684
  var _splitProps = (0,_util__WEBPACK_IMPORTED_MODULE_2__.splitProps)(props, 'animated', 'showGridRows', 'showGridColumns', 'numTicks', 'xAxis', 'yAxis', 'formatValue', 'margin', 'horizontal', 'stacked', 'showAnnotations', 'showTooltip', 'tooltipContent', 'snapTooltipToDatumX', 'snapTooltipToDatumY', 'showVerticalCrosshair', 'showHorizontalCrosshair', 'onPointerMove', 'onPointerOut', 'onPointerUp', 'onPointerDown', 'pointerEventsDataKey', 'children'),
29674
29685
  _splitProps2 = _slicedToArray(_splitProps, 2),
29675
- chartProps = _splitProps2[0],
29686
+ _splitProps2$ = _splitProps2[0],
29687
+ _splitProps2$$animate = _splitProps2$.animated,
29688
+ animated = _splitProps2$$animate === void 0 ? true : _splitProps2$$animate,
29689
+ _splitProps2$$showGri = _splitProps2$.showGridRows,
29690
+ showGridRows = _splitProps2$$showGri === void 0 ? false : _splitProps2$$showGri,
29691
+ _splitProps2$$showGri2 = _splitProps2$.showGridColumns,
29692
+ showGridColumns = _splitProps2$$showGri2 === void 0 ? false : _splitProps2$$showGri2,
29693
+ _splitProps2$$horizon = _splitProps2$.horizontal,
29694
+ horizontal = _splitProps2$$horizon === void 0 ? false : _splitProps2$$horizon,
29695
+ chartProps = _objectWithoutProperties(_splitProps2$, _excluded3),
29676
29696
  restProps = _splitProps2[1];
29677
29697
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_chart_container__WEBPACK_IMPORTED_MODULE_4__.ChartContainer, _extends({}, restProps, {
29678
29698
  Chart: BarChart,
29679
- chartProps: chartProps
29699
+ chartProps: _objectSpread({
29700
+ animated: animated,
29701
+ showGridRows: showGridRows,
29702
+ showGridColumns: showGridColumns,
29703
+ horizontal: horizontal
29704
+ }, chartProps)
29680
29705
  }));
29681
29706
  };
29682
29707
  Bar.displayName = 'Chart.Bar';
29683
- Bar.defaultProps = {
29684
- animated: true,
29685
- showGridRows: false,
29686
- showGridColumns: false,
29687
- horizontal: false
29688
- };
29689
29708
  Bar.propTypes = {
29690
29709
  animated: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().bool),
29691
29710
  showGridRows: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().bool),
@@ -30059,22 +30078,25 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
30059
30078
 
30060
30079
 
30061
30080
 
30062
- var ChartContainer = function ChartContainer(props) {
30063
- var header = props.header,
30064
- description = props.description,
30065
- actions = props.actions,
30066
- data = props.data,
30067
- palette = props.palette,
30068
- loading = props.loading,
30069
- Chart = props.Chart,
30070
- legendItem = props.legendItem,
30071
- chartProps = props.chartProps,
30072
- showLegend = props.showLegend,
30073
- variant = props.variant,
30074
- _width = props.width,
30075
- _height = props.height,
30076
- classNamePrefix = props.classNamePrefix,
30077
- rest = _objectWithoutProperties(props, _excluded);
30081
+ var defaultPalette = ['#AA99EC', '#3DB9CF', '#E58FB1', '#EBBC00', '#94BA2C', '#D09E72', '#0091FF', '#E5484D', '#12A594', '#FFB224'];
30082
+ var ChartContainer = function ChartContainer(_ref) {
30083
+ var header = _ref.header,
30084
+ description = _ref.description,
30085
+ actions = _ref.actions,
30086
+ data = _ref.data,
30087
+ _ref$palette = _ref.palette,
30088
+ palette = _ref$palette === void 0 ? defaultPalette : _ref$palette,
30089
+ loading = _ref.loading,
30090
+ Chart = _ref.Chart,
30091
+ legendItem = _ref.legendItem,
30092
+ chartProps = _ref.chartProps,
30093
+ showLegend = _ref.showLegend,
30094
+ _ref$variant = _ref.variant,
30095
+ variant = _ref$variant === void 0 ? 'default' : _ref$variant,
30096
+ _width = _ref.width,
30097
+ _height = _ref.height,
30098
+ classNamePrefix = _ref.classNamePrefix,
30099
+ rest = _objectWithoutProperties(_ref, _excluded);
30078
30100
  var outerWidth = _width ? Math.max(410, _width) : undefined;
30079
30101
  var outerHeight = Math.max(176, _height || 0);
30080
30102
  var noData = !(data && data.length);
@@ -30107,9 +30129,9 @@ var ChartContainer = function ChartContainer(props) {
30107
30129
  className: (0,_util__WEBPACK_IMPORTED_MODULE_5__.classNames)(classNamePrefix, {
30108
30130
  container: true
30109
30131
  })
30110
- }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_visx_responsive_lib_components_ParentSize__WEBPACK_IMPORTED_MODULE_11__["default"], null, function (_ref) {
30111
- var width = _ref.width,
30112
- height = _ref.height;
30132
+ }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_visx_responsive_lib_components_ParentSize__WEBPACK_IMPORTED_MODULE_11__["default"], null, function (_ref2) {
30133
+ var width = _ref2.width,
30134
+ height = _ref2.height;
30113
30135
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(Chart, _extends({}, chartProps, {
30114
30136
  data: data,
30115
30137
  palette: palette,
@@ -30126,10 +30148,6 @@ var ChartContainer = function ChartContainer(props) {
30126
30148
  }))));
30127
30149
  };
30128
30150
  ChartContainer.displayName = 'ChartContainer';
30129
- ChartContainer.defaultProps = {
30130
- palette: ['#AA99EC', '#3DB9CF', '#E58FB1', '#EBBC00', '#94BA2C', '#D09E72', '#0091FF', '#E5484D', '#12A594', '#FFB224'],
30131
- variant: 'default'
30132
- };
30133
30151
  ChartContainer.propTypes = {
30134
30152
  header: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().node),
30135
30153
  description: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().node),
@@ -30610,7 +30628,8 @@ __webpack_require__.r(__webpack_exports__);
30610
30628
  /*jslint react:true*/
30611
30629
  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); }
30612
30630
  var _excluded = ["label", "numTicks", "formatTick", "labelOffset"],
30613
- _excluded2 = ["label", "numTicks", "formatTick", "labelOffset"];
30631
+ _excluded2 = ["label", "numTicks", "formatTick", "labelOffset"],
30632
+ _excluded3 = ["animated", "showGridRows", "showGridColumns"];
30614
30633
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
30615
30634
  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."); }
30616
30635
  function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
@@ -30756,19 +30775,25 @@ LineChart.displayName = 'LineChart';
30756
30775
  var Line = function Line(props) {
30757
30776
  var _splitProps = (0,_util__WEBPACK_IMPORTED_MODULE_2__.splitProps)(props, 'animated', 'showGridRows', 'showGridColumns', 'numTicks', 'xAxis', 'yAxis', 'formatValue', 'margin', 'showTooltip', 'tooltipContent', 'curveType', 'onPointerMove', 'onPointerOut', 'onPointerUp', 'onPointerDown', 'pointerEventsDataKey', 'children'),
30758
30777
  _splitProps2 = _slicedToArray(_splitProps, 2),
30759
- chartProps = _splitProps2[0],
30778
+ _splitProps2$ = _splitProps2[0],
30779
+ _splitProps2$$animate = _splitProps2$.animated,
30780
+ animated = _splitProps2$$animate === void 0 ? true : _splitProps2$$animate,
30781
+ _splitProps2$$showGri = _splitProps2$.showGridRows,
30782
+ showGridRows = _splitProps2$$showGri === void 0 ? true : _splitProps2$$showGri,
30783
+ _splitProps2$$showGri2 = _splitProps2$.showGridColumns,
30784
+ showGridColumns = _splitProps2$$showGri2 === void 0 ? true : _splitProps2$$showGri2,
30785
+ chartProps = _objectWithoutProperties(_splitProps2$, _excluded3),
30760
30786
  restProps = _splitProps2[1];
30761
30787
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_chart_container__WEBPACK_IMPORTED_MODULE_3__.ChartContainer, _extends({}, restProps, {
30762
30788
  Chart: LineChart,
30763
- chartProps: chartProps
30789
+ chartProps: _objectSpread({
30790
+ animated: animated,
30791
+ showGridRows: showGridRows,
30792
+ showGridColumns: showGridColumns
30793
+ }, chartProps)
30764
30794
  }));
30765
30795
  };
30766
30796
  Line.displayName = 'Chart.Line';
30767
- Line.defaultProps = {
30768
- animated: true,
30769
- showGridRows: true,
30770
- showGridColumns: true
30771
- };
30772
30797
  Line.propTypes = {
30773
30798
  animated: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().bool),
30774
30799
  showGridRows: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().bool),
@@ -31282,12 +31307,13 @@ __webpack_require__.r(__webpack_exports__);
31282
31307
 
31283
31308
  // import 'prismjs/plugins/line-numbers/prism-line-numbers';
31284
31309
 
31285
- var Code = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(function (props, ref) {
31286
- var className = props.className,
31287
- text = props.text,
31288
- lang = props.lang,
31289
- themeProp = props.theme,
31290
- lineNumbers = props.lineNumbers;
31310
+ var Code = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(function (_ref, ref) {
31311
+ var className = _ref.className,
31312
+ text = _ref.text,
31313
+ lang = _ref.lang,
31314
+ _ref$theme = _ref.theme,
31315
+ themeProp = _ref$theme === void 0 ? 'white' : _ref$theme,
31316
+ lineNumbers = _ref.lineNumbers;
31291
31317
  (0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(function () {
31292
31318
  prismjs_components_prism_core__WEBPACK_IMPORTED_MODULE_1___default().highlightAll();
31293
31319
  }, [text, lang, lineNumbers]);
@@ -31300,9 +31326,6 @@ var Code = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(functi
31300
31326
  }, text));
31301
31327
  });
31302
31328
  Code.displayName = 'Code';
31303
- Code.defaultProps = {
31304
- theme: 'white'
31305
- };
31306
31329
  Code.propTypes = {
31307
31330
  text: (prop_types__WEBPACK_IMPORTED_MODULE_18___default().string),
31308
31331
  lang: prop_types__WEBPACK_IMPORTED_MODULE_18___default().oneOf(['js', 'javascript', 'css', 'markup', 'shell', 'java', 'csharp', 'vbnet', 'php', 'ruby', 'perl', 'python', 'json']),
@@ -31350,7 +31373,10 @@ __webpack_require__.r(__webpack_exports__);
31350
31373
 
31351
31374
 
31352
31375
  /*jslint react:true*/
31376
+ var _excluded = ["className", "header", "code", "lang", "max_height", "theme", "lineNumbers", "copyButton", "onCopy"];
31353
31377
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
31378
+ function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
31379
+ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } } return target; }
31354
31380
 
31355
31381
 
31356
31382
 
@@ -31358,19 +31384,23 @@ function _extends() { _extends = Object.assign ? Object.assign.bind() : function
31358
31384
 
31359
31385
 
31360
31386
 
31361
- var CodeBlock = function CodeBlock(props) {
31362
- var className = props.className,
31363
- header = props.header,
31364
- code = props.code,
31365
- lang = props.lang,
31366
- max_height = props.max_height,
31367
- themeProp = props.theme,
31368
- lineNumbers = props.lineNumbers,
31369
- copyButton = props.copyButton,
31370
- onCopy = props.onCopy;
31387
+ var CodeBlock = function CodeBlock(_ref) {
31388
+ var className = _ref.className,
31389
+ header = _ref.header,
31390
+ code = _ref.code,
31391
+ lang = _ref.lang,
31392
+ _ref$max_height = _ref.max_height,
31393
+ max_height = _ref$max_height === void 0 ? '500px' : _ref$max_height,
31394
+ _ref$theme = _ref.theme,
31395
+ themeProp = _ref$theme === void 0 ? 'black' : _ref$theme,
31396
+ lineNumbers = _ref.lineNumbers,
31397
+ copyButton = _ref.copyButton,
31398
+ onCopy = _ref.onCopy,
31399
+ rest = _objectWithoutProperties(_ref, _excluded);
31371
31400
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(CodeBlockWrapper, _extends({
31372
- "data-testid": "code_block"
31373
- }, (0,_util__WEBPACK_IMPORTED_MODULE_5__.getCommonProps)(props)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(CodeBlockHeader, {
31401
+ "data-testid": "code_block",
31402
+ className: className
31403
+ }, (0,_util__WEBPACK_IMPORTED_MODULE_5__.getCommonProps)(rest)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(CodeBlockHeader, {
31374
31404
  className: (0,_util__WEBPACK_IMPORTED_MODULE_5__.classNames)(className, {
31375
31405
  header: true
31376
31406
  }),
@@ -31388,11 +31418,6 @@ var CodeBlock = function CodeBlock(props) {
31388
31418
  onCopy: onCopy
31389
31419
  }));
31390
31420
  };
31391
- CodeBlock.displayName = 'CodeBlock';
31392
- CodeBlock.defaultProps = {
31393
- max_height: '500px',
31394
- theme: 'black'
31395
- };
31396
31421
  CodeBlock.propTypes = {
31397
31422
  header: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().node),
31398
31423
  code: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().string),
@@ -31455,16 +31480,17 @@ __webpack_require__.r(__webpack_exports__);
31455
31480
 
31456
31481
 
31457
31482
 
31458
- var CodeSnippet = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(function (props, ref) {
31459
- var code = props.code,
31460
- lang = props.lang,
31461
- max_height = props.max_height,
31462
- className = props.className,
31463
- themeProp = props.theme,
31464
- lineNumbers = props.lineNumbers,
31465
- copyButton = props.copyButton,
31466
- loading = props.loading,
31467
- onCopy = props.onCopy;
31483
+ var CodeSnippet = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(function (_ref, ref) {
31484
+ var code = _ref.code,
31485
+ lang = _ref.lang,
31486
+ max_height = _ref.max_height,
31487
+ className = _ref.className,
31488
+ _ref$theme = _ref.theme,
31489
+ themeProp = _ref$theme === void 0 ? 'black' : _ref$theme,
31490
+ lineNumbers = _ref.lineNumbers,
31491
+ copyButton = _ref.copyButton,
31492
+ loading = _ref.loading,
31493
+ onCopy = _ref.onCopy;
31468
31494
  var codeRef = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(null);
31469
31495
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(CodeBlockBody, {
31470
31496
  ref: ref,
@@ -31487,9 +31513,6 @@ var CodeSnippet = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)
31487
31513
  }));
31488
31514
  });
31489
31515
  CodeSnippet.displayName = 'CodeSnippet';
31490
- CodeSnippet.defaultProps = {
31491
- theme: 'black'
31492
- };
31493
31516
  CodeSnippet.propTypes = {
31494
31517
  code: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().string),
31495
31518
  lang: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().string),
@@ -31768,27 +31791,24 @@ __webpack_require__.r(__webpack_exports__);
31768
31791
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
31769
31792
  /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
31770
31793
  /* harmony export */ });
31771
- /* harmony import */ var lodash_omit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/omit */ "./node_modules/lodash/omit.js");
31772
- /* harmony import */ var lodash_omit__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_omit__WEBPACK_IMPORTED_MODULE_0__);
31773
- /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "prop-types");
31774
- /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
31775
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ "react");
31776
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);
31777
- /* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! styled-components */ "styled-components");
31778
- /* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(styled_components__WEBPACK_IMPORTED_MODULE_3__);
31779
- /* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../constants */ "./src/constants.js");
31780
- /* harmony import */ var _hoc__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../hoc */ "./src/hoc/index.js");
31781
- /* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../icon */ "./src/icon.js");
31782
- /* harmony import */ var _menu__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../menu */ "./src/menu/index.js");
31783
- /* harmony import */ var _typography__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../typography */ "./src/typography/index.js");
31784
- /* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../util */ "./src/util/index.js");
31785
- /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../utils */ "./src/utils.js");
31794
+ /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! prop-types */ "prop-types");
31795
+ /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_0__);
31796
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
31797
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
31798
+ /* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! styled-components */ "styled-components");
31799
+ /* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(styled_components__WEBPACK_IMPORTED_MODULE_2__);
31800
+ /* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../constants */ "./src/constants.js");
31801
+ /* harmony import */ var _hoc__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../hoc */ "./src/hoc/index.js");
31802
+ /* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../icon */ "./src/icon.js");
31803
+ /* harmony import */ var _menu__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../menu */ "./src/menu/index.js");
31804
+ /* harmony import */ var _typography__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../typography */ "./src/typography/index.js");
31805
+ /* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../util */ "./src/util/index.js");
31806
+ /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../utils */ "./src/utils.js");
31786
31807
  // LICENSE_CODE ZON
31787
31808
 
31788
31809
 
31789
31810
  /*jslint react:true*/
31790
-
31791
- var _excluded = ["text", "variant", "size", "items", "disabled", "onClick"],
31811
+ var _excluded = ["text", "variant", "size", "items", "disabled", "onClick", "icon", "iconPlacement"],
31792
31812
  _excluded2 = ["isLeft"],
31793
31813
  _excluded3 = ["popover"];
31794
31814
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
@@ -31804,61 +31824,65 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
31804
31824
 
31805
31825
 
31806
31826
 
31807
- var ComboButton = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().forwardRef(function (props, ref) {
31808
- var text = props.text,
31809
- variant = props.variant,
31810
- size = props.size,
31811
- items = props.items,
31812
- disabled = props.disabled,
31813
- onClick = props.onClick,
31814
- rest = _objectWithoutProperties(props, _excluded);
31815
- var _getIconProps = (0,_utils__WEBPACK_IMPORTED_MODULE_10__.getIconProps)('Button', props),
31827
+ var ComboButton = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forwardRef(function (_ref, ref) {
31828
+ var text = _ref.text,
31829
+ _ref$variant = _ref.variant,
31830
+ variant = _ref$variant === void 0 ? 'primary' : _ref$variant,
31831
+ _ref$size = _ref.size,
31832
+ size = _ref$size === void 0 ? 'sm' : _ref$size,
31833
+ items = _ref.items,
31834
+ disabled = _ref.disabled,
31835
+ onClick = _ref.onClick,
31836
+ icon = _ref.icon,
31837
+ iconPlacement = _ref.iconPlacement,
31838
+ rest = _objectWithoutProperties(_ref, _excluded);
31839
+ var _getIconProps = (0,_utils__WEBPACK_IMPORTED_MODULE_9__.getIconProps)('Button', {
31840
+ size: size,
31841
+ icon: icon,
31842
+ iconPlacement: iconPlacement
31843
+ }),
31816
31844
  isLeft = _getIconProps.isLeft,
31817
31845
  iconProps = _objectWithoutProperties(_getIconProps, _excluded2);
31818
- var menuProps = (0,react__WEBPACK_IMPORTED_MODULE_2__.useMemo)(function () {
31846
+ var menuProps = (0,react__WEBPACK_IMPORTED_MODULE_1__.useMemo)(function () {
31819
31847
  return {
31820
31848
  size: size == 'xs' ? 'sm' : 'md',
31821
31849
  items: items
31822
31850
  };
31823
31851
  }, [size, items]);
31824
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(StyledButtonWrapper, _extends({
31852
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(StyledButtonWrapper, _extends({
31825
31853
  ref: ref
31826
- }, lodash_omit__WEBPACK_IMPORTED_MODULE_0___default()(rest, 'icon', 'iconPlacement'), {
31854
+ }, rest, {
31827
31855
  disabled: disabled,
31828
31856
  $variant: variant,
31829
31857
  $size: size,
31830
31858
  $iconPlacement: isLeft ? 'left' : ''
31831
- }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(StyledButton, {
31859
+ }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(StyledButton, {
31832
31860
  disabled: disabled,
31833
31861
  onClick: onClick,
31834
31862
  "data-testid": "combo_button_main"
31835
- }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(ComboButtonContent, null, isLeft && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_icon__WEBPACK_IMPORTED_MODULE_6__.Icon, iconProps), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_8__.Label, {
31863
+ }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(ComboButtonContent, null, isLeft && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_icon__WEBPACK_IMPORTED_MODULE_5__.Icon, iconProps), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_7__.Label, {
31836
31864
  variant: size == 'xs' ? 'sm' : 'lg',
31837
31865
  no_wrap: true,
31838
31866
  "data-label": true
31839
- }, text))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(ComboButtonMenuTrigger, {
31867
+ }, text))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(ComboButtonMenuTrigger, {
31840
31868
  disabled: disabled,
31841
31869
  popoverProps: menuProps
31842
31870
  }));
31843
31871
  });
31844
31872
  ComboButton.displayName = 'ComboButton';
31845
- ComboButton.defaultProps = {
31846
- variant: 'primary',
31847
- size: 'sm'
31848
- };
31849
31873
  ComboButton.propTypes = {
31850
- text: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().string).isRequired,
31851
- variant: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOf(['primary', 'secondary', 'negative', 'negative_secondary', 'positive', 'white']),
31852
- size: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOf(['xs', 'sm', 'md', 'lg']),
31853
- icon: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOf(_utils__WEBPACK_IMPORTED_MODULE_10__.iconNames),
31854
- items: prop_types__WEBPACK_IMPORTED_MODULE_1___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_1___default().any)).isRequired,
31855
- disabled: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().bool)
31874
+ text: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string).isRequired,
31875
+ variant: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['primary', 'secondary', 'negative', 'negative_secondary', 'positive', 'white']),
31876
+ size: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['xs', 'sm', 'md', 'lg']),
31877
+ icon: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(_utils__WEBPACK_IMPORTED_MODULE_9__.iconNames),
31878
+ items: prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().any)).isRequired,
31879
+ disabled: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool)
31856
31880
  };
31857
31881
  var ComboButtonMenu = function ComboButtonMenu(props) {
31858
31882
  var size = props.size,
31859
31883
  items = props.items,
31860
31884
  popover = props.popover;
31861
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_menu__WEBPACK_IMPORTED_MODULE_7__.Menu, {
31885
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_menu__WEBPACK_IMPORTED_MODULE_6__.Menu, {
31862
31886
  size: size,
31863
31887
  items: items,
31864
31888
  onClick: popover.hide
@@ -31867,20 +31891,20 @@ var ComboButtonMenu = function ComboButtonMenu(props) {
31867
31891
  var ArrowIcon = function ArrowIcon(props) {
31868
31892
  var popover = props.popover,
31869
31893
  rest = _objectWithoutProperties(props, _excluded3);
31870
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(ComboButtonArrow, _extends({
31894
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(ComboButtonArrow, _extends({
31871
31895
  onClick: popover.toggle
31872
31896
  }, rest, {
31873
31897
  "data-testid": "combo_button_menu_button"
31874
- }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_icon__WEBPACK_IMPORTED_MODULE_6__.Icon, {
31898
+ }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_icon__WEBPACK_IMPORTED_MODULE_5__.Icon, {
31875
31899
  name: "ChevronDown",
31876
31900
  size: "xs"
31877
31901
  }));
31878
31902
  };
31879
- var ComboButtonMenuTrigger = (0,_hoc__WEBPACK_IMPORTED_MODULE_5__.withPopover)(ArrowIcon, ComboButtonMenu, {
31903
+ var ComboButtonMenuTrigger = (0,_hoc__WEBPACK_IMPORTED_MODULE_4__.withPopover)(ArrowIcon, ComboButtonMenu, {
31880
31904
  placement: 'bottom-end',
31881
- zIndex: _constants__WEBPACK_IMPORTED_MODULE_4__.Z_INDEX.combobutton
31905
+ zIndex: _constants__WEBPACK_IMPORTED_MODULE_3__.Z_INDEX.combobutton
31882
31906
  });
31883
- var StyledButtonWrapper = styled_components__WEBPACK_IMPORTED_MODULE_3___default().div.withConfig({
31907
+ var StyledButtonWrapper = styled_components__WEBPACK_IMPORTED_MODULE_2___default().div.withConfig({
31884
31908
  displayName: "StyledButtonWrapper",
31885
31909
  componentId: "sc-s9elw5-0"
31886
31910
  })(["display:inline-flex;align-items:stretch;justify-content:center;border-radius:4px;text-decoration:none;&:hover,&:visited,:focus{text-decoration:none;}padding:0;", " ", " ", ""], function (props) {
@@ -31892,22 +31916,22 @@ var StyledButtonWrapper = styled_components__WEBPACK_IMPORTED_MODULE_3___default
31892
31916
  gap = 2;
31893
31917
  paddingLeft = paddingRight = 8;
31894
31918
  }
31895
- return (0,styled_components__WEBPACK_IMPORTED_MODULE_3__.css)(["", "{gap:", ";padding-left:", ";padding-right:", ";}"], ComboButtonContent, (0,_utils__WEBPACK_IMPORTED_MODULE_10__.toPixel)(gap), (0,_utils__WEBPACK_IMPORTED_MODULE_10__.toPixel)(paddingLeft), (0,_utils__WEBPACK_IMPORTED_MODULE_10__.toPixel)(paddingRight));
31919
+ return (0,styled_components__WEBPACK_IMPORTED_MODULE_2__.css)(["", "{gap:", ";padding-left:", ";padding-right:", ";}"], ComboButtonContent, (0,_utils__WEBPACK_IMPORTED_MODULE_9__.toPixel)(gap), (0,_utils__WEBPACK_IMPORTED_MODULE_9__.toPixel)(paddingLeft), (0,_utils__WEBPACK_IMPORTED_MODULE_9__.toPixel)(paddingRight));
31896
31920
  }, function (props) {
31897
- var colors = (0,_util__WEBPACK_IMPORTED_MODULE_9__.getButtonColors)(props);
31898
- return (0,styled_components__WEBPACK_IMPORTED_MODULE_3__.css)(["background-color:", ";", "{color:", ";border-top:", ";border-right:0 none;border-bottom:", ";border-left:", ";[data-icon]{color:", ";}", "}", "{border-top:", ";border-right:", ";border-bottom:", ";border-left:", ";[data-icon]{color:", ";}", "}", ""], colors.backColor, StyledButton, colors.color, colors.border || '0 none', colors.border || '0 none', colors.border || '0 none', colors.iconColor || colors.color, colors.active && "&:active {\n background-color: ".concat(colors.active.backColor, ";\n border-top: ").concat(colors.active.border, ";\n border-bottom: ").concat(colors.active.border, ";\n border-left: ").concat(colors.active.border, ";\n box-shadow: ").concat(colors.active.boxShadow, ";\n ").concat(colors.active.iconColor && "[data-icon] {\n color: ".concat(colors.active.iconColor, ";\n }"), "\n }"), ComboButtonArrow, colors.border || '0 none', colors.border || '0 none', colors.border || '0 none', colors.separator || colors.border || '0 none', colors.iconColor || colors.color, colors.active && "&:active {\n background-color: ".concat(colors.active.backColor, ";\n border: ").concat(colors.active.border, ";\n box-shadow: ").concat(colors.active.boxShadow, ";\n ").concat(colors.active.iconColor && "[data-icon] {\n color: ".concat(colors.active.iconColor, ";\n }"), "\n }"), colors.hover && "\n ".concat(StyledButton, ":hover, ").concat(ComboButtonArrow, ":hover {\n background-color: ").concat(colors.hover.backColor, ";\n }\n "));
31921
+ var colors = (0,_util__WEBPACK_IMPORTED_MODULE_8__.getButtonColors)(props);
31922
+ return (0,styled_components__WEBPACK_IMPORTED_MODULE_2__.css)(["background-color:", ";", "{color:", ";border-top:", ";border-right:0 none;border-bottom:", ";border-left:", ";[data-icon]{color:", ";}", "}", "{border-top:", ";border-right:", ";border-bottom:", ";border-left:", ";[data-icon]{color:", ";}", "}", ""], colors.backColor, StyledButton, colors.color, colors.border || '0 none', colors.border || '0 none', colors.border || '0 none', colors.iconColor || colors.color, colors.active && "&:active {\n background-color: ".concat(colors.active.backColor, ";\n border-top: ").concat(colors.active.border, ";\n border-bottom: ").concat(colors.active.border, ";\n border-left: ").concat(colors.active.border, ";\n box-shadow: ").concat(colors.active.boxShadow, ";\n ").concat(colors.active.iconColor && "[data-icon] {\n color: ".concat(colors.active.iconColor, ";\n }"), "\n }"), ComboButtonArrow, colors.border || '0 none', colors.border || '0 none', colors.border || '0 none', colors.separator || colors.border || '0 none', colors.iconColor || colors.color, colors.active && "&:active {\n background-color: ".concat(colors.active.backColor, ";\n border: ").concat(colors.active.border, ";\n box-shadow: ").concat(colors.active.boxShadow, ";\n ").concat(colors.active.iconColor && "[data-icon] {\n color: ".concat(colors.active.iconColor, ";\n }"), "\n }"), colors.hover && "\n ".concat(StyledButton, ":hover, ").concat(ComboButtonArrow, ":hover {\n background-color: ").concat(colors.hover.backColor, ";\n }\n "));
31899
31923
  }, function (props) {
31900
- return (0,_util__WEBPACK_IMPORTED_MODULE_9__.getButtonSize)(props.$size);
31924
+ return (0,_util__WEBPACK_IMPORTED_MODULE_8__.getButtonSize)(props.$size);
31901
31925
  });
31902
- var StyledButton = styled_components__WEBPACK_IMPORTED_MODULE_3___default().button.withConfig({
31926
+ var StyledButton = styled_components__WEBPACK_IMPORTED_MODULE_2___default().button.withConfig({
31903
31927
  displayName: "StyledButton",
31904
31928
  componentId: "sc-s9elw5-1"
31905
31929
  })(["cursor:pointer;&:disabled{cursor:not-allowed;}display:flex;align-items:center;height:100%;border:none;border-top-left-radius:4px;border-bottom-left-radius:4px;background:none;padding:0;"]);
31906
- var ComboButtonContent = styled_components__WEBPACK_IMPORTED_MODULE_3___default().div.withConfig({
31930
+ var ComboButtonContent = styled_components__WEBPACK_IMPORTED_MODULE_2___default().div.withConfig({
31907
31931
  displayName: "ComboButtonContent",
31908
31932
  componentId: "sc-s9elw5-2"
31909
31933
  })(["display:flex;align-items:center;height:100%;"]);
31910
- var ComboButtonArrow = styled_components__WEBPACK_IMPORTED_MODULE_3___default().button.withConfig({
31934
+ var ComboButtonArrow = styled_components__WEBPACK_IMPORTED_MODULE_2___default().button.withConfig({
31911
31935
  displayName: "ComboButtonArrow",
31912
31936
  componentId: "sc-s9elw5-3"
31913
31937
  })(["display:flex;align-items:center;justify-content:center;width:32px;height:100%;border:none;border-top-right-radius:4px;border-bottom-right-radius:4px;background:none;cursor:pointer;&:disabled{cursor:not-allowed;}"]);
@@ -31976,64 +32000,64 @@ var Z_INDEX = {
31976
32000
  "use strict";
31977
32001
  __webpack_require__.r(__webpack_exports__);
31978
32002
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
31979
- /* harmony export */ Badge: () => (/* reexport safe */ _badge__WEBPACK_IMPORTED_MODULE_10__.Badge),
31980
- /* harmony export */ Breadcrumbs: () => (/* reexport safe */ _breadcrumbs__WEBPACK_IMPORTED_MODULE_12__.Breadcrumbs),
31981
- /* harmony export */ Button: () => (/* reexport safe */ _button__WEBPACK_IMPORTED_MODULE_11__.Button),
32003
+ /* harmony export */ Badge: () => (/* reexport safe */ _badge__WEBPACK_IMPORTED_MODULE_9__.Badge),
32004
+ /* harmony export */ Breadcrumbs: () => (/* reexport safe */ _breadcrumbs__WEBPACK_IMPORTED_MODULE_11__.Breadcrumbs),
32005
+ /* harmony export */ Button: () => (/* reexport safe */ _button__WEBPACK_IMPORTED_MODULE_10__.Button),
31982
32006
  /* harmony export */ Chart: () => (/* reexport safe */ _chart__WEBPACK_IMPORTED_MODULE_0__["default"]),
31983
- /* harmony export */ ClickableTag: () => (/* reexport safe */ _tag__WEBPACK_IMPORTED_MODULE_20__.ClickableTag),
31984
- /* harmony export */ Code: () => (/* reexport safe */ _code__WEBPACK_IMPORTED_MODULE_13__.Code),
31985
- /* harmony export */ CodeBlock: () => (/* reexport safe */ _code__WEBPACK_IMPORTED_MODULE_13__.CodeBlock),
31986
- /* harmony export */ CodeSnippet: () => (/* reexport safe */ _code__WEBPACK_IMPORTED_MODULE_13__.CodeSnippet),
32007
+ /* harmony export */ ClickableTag: () => (/* reexport safe */ _tag__WEBPACK_IMPORTED_MODULE_19__.ClickableTag),
32008
+ /* harmony export */ Code: () => (/* reexport safe */ _code__WEBPACK_IMPORTED_MODULE_12__.Code),
32009
+ /* harmony export */ CodeBlock: () => (/* reexport safe */ _code__WEBPACK_IMPORTED_MODULE_12__.CodeBlock),
32010
+ /* harmony export */ CodeSnippet: () => (/* reexport safe */ _code__WEBPACK_IMPORTED_MODULE_12__.CodeSnippet),
31987
32011
  /* harmony export */ ComboButton: () => (/* reexport safe */ _combo_button__WEBPACK_IMPORTED_MODULE_1__["default"]),
31988
- /* harmony export */ Icon: () => (/* reexport safe */ _icon__WEBPACK_IMPORTED_MODULE_22__.Icon),
31989
- /* harmony export */ IconButton: () => (/* reexport safe */ _icon_button__WEBPACK_IMPORTED_MODULE_23__.IconButton),
31990
- /* harmony export */ InfoChip: () => (/* reexport safe */ _infochip__WEBPACK_IMPORTED_MODULE_2__["default"]),
31991
- /* harmony export */ Input: () => (/* reexport module object */ _input__WEBPACK_IMPORTED_MODULE_3__),
31992
- /* harmony export */ Layout: () => (/* reexport module object */ _layout__WEBPACK_IMPORTED_MODULE_4__),
31993
- /* harmony export */ Link: () => (/* reexport safe */ _link__WEBPACK_IMPORTED_MODULE_15__.Link),
31994
- /* harmony export */ Menu: () => (/* reexport safe */ _menu__WEBPACK_IMPORTED_MODULE_16__.Menu),
31995
- /* harmony export */ Modal: () => (/* reexport module object */ _modal__WEBPACK_IMPORTED_MODULE_5__),
31996
- /* harmony export */ Progress: () => (/* reexport safe */ _progress__WEBPACK_IMPORTED_MODULE_17__.Progress),
31997
- /* harmony export */ ProgressBar: () => (/* reexport safe */ _progress__WEBPACK_IMPORTED_MODULE_17__.ProgressBar),
31998
- /* harmony export */ RemovableTag: () => (/* reexport safe */ _tag__WEBPACK_IMPORTED_MODULE_20__.RemovableTag),
31999
- /* harmony export */ Snackbar: () => (/* reexport safe */ _snackbar__WEBPACK_IMPORTED_MODULE_18__.Snackbar),
32000
- /* harmony export */ Tab: () => (/* reexport safe */ _tab__WEBPACK_IMPORTED_MODULE_8__["default"]),
32001
- /* harmony export */ Table: () => (/* reexport safe */ _table__WEBPACK_IMPORTED_MODULE_19__.Table),
32002
- /* harmony export */ TagGroup: () => (/* reexport safe */ _tag__WEBPACK_IMPORTED_MODULE_20__.TagGroup),
32003
- /* harmony export */ Toast: () => (/* reexport safe */ _toast__WEBPACK_IMPORTED_MODULE_21__.Toast),
32004
- /* harmony export */ Toaster: () => (/* reexport safe */ _toast__WEBPACK_IMPORTED_MODULE_21__.Toaster),
32012
+ /* harmony export */ Icon: () => (/* reexport safe */ _icon__WEBPACK_IMPORTED_MODULE_21__.Icon),
32013
+ /* harmony export */ IconButton: () => (/* reexport safe */ _icon_button__WEBPACK_IMPORTED_MODULE_22__.IconButton),
32014
+ /* harmony export */ InfoChip: () => (/* reexport safe */ _infochip__WEBPACK_IMPORTED_MODULE_23__.InfoChip),
32015
+ /* harmony export */ Input: () => (/* reexport module object */ _input__WEBPACK_IMPORTED_MODULE_2__),
32016
+ /* harmony export */ Layout: () => (/* reexport module object */ _layout__WEBPACK_IMPORTED_MODULE_3__),
32017
+ /* harmony export */ Link: () => (/* reexport safe */ _link__WEBPACK_IMPORTED_MODULE_14__.Link),
32018
+ /* harmony export */ Menu: () => (/* reexport safe */ _menu__WEBPACK_IMPORTED_MODULE_15__.Menu),
32019
+ /* harmony export */ Modal: () => (/* reexport module object */ _modal__WEBPACK_IMPORTED_MODULE_4__),
32020
+ /* harmony export */ Progress: () => (/* reexport safe */ _progress__WEBPACK_IMPORTED_MODULE_16__.Progress),
32021
+ /* harmony export */ ProgressBar: () => (/* reexport safe */ _progress__WEBPACK_IMPORTED_MODULE_16__.ProgressBar),
32022
+ /* harmony export */ RemovableTag: () => (/* reexport safe */ _tag__WEBPACK_IMPORTED_MODULE_19__.RemovableTag),
32023
+ /* harmony export */ Snackbar: () => (/* reexport safe */ _snackbar__WEBPACK_IMPORTED_MODULE_17__.Snackbar),
32024
+ /* harmony export */ Tab: () => (/* reexport safe */ _tab__WEBPACK_IMPORTED_MODULE_7__["default"]),
32025
+ /* harmony export */ Table: () => (/* reexport safe */ _table__WEBPACK_IMPORTED_MODULE_18__.Table),
32026
+ /* harmony export */ TagGroup: () => (/* reexport safe */ _tag__WEBPACK_IMPORTED_MODULE_19__.TagGroup),
32027
+ /* harmony export */ Toast: () => (/* reexport safe */ _toast__WEBPACK_IMPORTED_MODULE_20__.Toast),
32028
+ /* harmony export */ Toaster: () => (/* reexport safe */ _toast__WEBPACK_IMPORTED_MODULE_20__.Toaster),
32005
32029
  /* harmony export */ Tooltip: () => (/* reexport safe */ _tooltip__WEBPACK_IMPORTED_MODULE_24__.Tooltip),
32006
- /* harmony export */ Typography: () => (/* reexport module object */ _typography__WEBPACK_IMPORTED_MODULE_9__),
32007
- /* harmony export */ theme: () => (/* reexport safe */ _theme__WEBPACK_IMPORTED_MODULE_6__["default"]),
32008
- /* harmony export */ translation: () => (/* reexport safe */ _translation__WEBPACK_IMPORTED_MODULE_7__["default"]),
32009
- /* harmony export */ useToaster: () => (/* reexport safe */ _toast__WEBPACK_IMPORTED_MODULE_21__.useToaster),
32010
- /* harmony export */ withPopover: () => (/* reexport safe */ _hoc__WEBPACK_IMPORTED_MODULE_14__.withPopover),
32030
+ /* harmony export */ Typography: () => (/* reexport module object */ _typography__WEBPACK_IMPORTED_MODULE_8__),
32031
+ /* harmony export */ theme: () => (/* reexport safe */ _theme__WEBPACK_IMPORTED_MODULE_5__["default"]),
32032
+ /* harmony export */ translation: () => (/* reexport safe */ _translation__WEBPACK_IMPORTED_MODULE_6__["default"]),
32033
+ /* harmony export */ useToaster: () => (/* reexport safe */ _toast__WEBPACK_IMPORTED_MODULE_20__.useToaster),
32034
+ /* harmony export */ withPopover: () => (/* reexport safe */ _hoc__WEBPACK_IMPORTED_MODULE_13__.withPopover),
32011
32035
  /* harmony export */ withTooltip: () => (/* reexport safe */ _tooltip__WEBPACK_IMPORTED_MODULE_24__.withTooltip)
32012
32036
  /* harmony export */ });
32013
32037
  /* harmony import */ var _chart__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./chart */ "./src/chart/index.js");
32014
32038
  /* harmony import */ var _combo_button__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./combo_button */ "./src/combo_button/index.js");
32015
- /* harmony import */ var _infochip__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./infochip */ "./src/infochip.js");
32016
- /* harmony import */ var _input__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./input */ "./src/input/index.js");
32017
- /* harmony import */ var _layout__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./layout */ "./src/layout/index.js");
32018
- /* harmony import */ var _modal__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./modal */ "./src/modal/index.js");
32019
- /* harmony import */ var _theme__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./theme */ "./src/theme.js");
32020
- /* harmony import */ var _translation__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./translation */ "./src/translation.js");
32021
- /* harmony import */ var _tab__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./tab */ "./src/tab/index.js");
32022
- /* harmony import */ var _typography__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./typography */ "./src/typography/index.js");
32023
- /* harmony import */ var _badge__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./badge */ "./src/badge.js");
32024
- /* harmony import */ var _button__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./button */ "./src/button/index.js");
32025
- /* harmony import */ var _breadcrumbs__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./breadcrumbs */ "./src/breadcrumbs/index.js");
32026
- /* harmony import */ var _code__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./code */ "./src/code/index.js");
32027
- /* harmony import */ var _hoc__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./hoc */ "./src/hoc/index.js");
32028
- /* harmony import */ var _link__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./link */ "./src/link/index.js");
32029
- /* harmony import */ var _menu__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./menu */ "./src/menu/index.js");
32030
- /* harmony import */ var _progress__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./progress */ "./src/progress/index.js");
32031
- /* harmony import */ var _snackbar__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./snackbar */ "./src/snackbar/index.js");
32032
- /* harmony import */ var _table__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./table */ "./src/table/index.js");
32033
- /* harmony import */ var _tag__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./tag */ "./src/tag/index.js");
32034
- /* harmony import */ var _toast__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./toast */ "./src/toast/index.js");
32035
- /* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./icon */ "./src/icon.js");
32036
- /* harmony import */ var _icon_button__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./icon_button */ "./src/icon_button.js");
32039
+ /* harmony import */ var _input__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./input */ "./src/input/index.js");
32040
+ /* harmony import */ var _layout__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./layout */ "./src/layout/index.js");
32041
+ /* harmony import */ var _modal__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./modal */ "./src/modal/index.js");
32042
+ /* harmony import */ var _theme__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./theme */ "./src/theme.js");
32043
+ /* harmony import */ var _translation__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./translation */ "./src/translation.js");
32044
+ /* harmony import */ var _tab__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./tab */ "./src/tab/index.js");
32045
+ /* harmony import */ var _typography__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./typography */ "./src/typography/index.js");
32046
+ /* harmony import */ var _badge__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./badge */ "./src/badge.js");
32047
+ /* harmony import */ var _button__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./button */ "./src/button/index.js");
32048
+ /* harmony import */ var _breadcrumbs__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./breadcrumbs */ "./src/breadcrumbs/index.js");
32049
+ /* harmony import */ var _code__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./code */ "./src/code/index.js");
32050
+ /* harmony import */ var _hoc__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./hoc */ "./src/hoc/index.js");
32051
+ /* harmony import */ var _link__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./link */ "./src/link/index.js");
32052
+ /* harmony import */ var _menu__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./menu */ "./src/menu/index.js");
32053
+ /* harmony import */ var _progress__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./progress */ "./src/progress/index.js");
32054
+ /* harmony import */ var _snackbar__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./snackbar */ "./src/snackbar/index.js");
32055
+ /* harmony import */ var _table__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./table */ "./src/table/index.js");
32056
+ /* harmony import */ var _tag__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./tag */ "./src/tag/index.js");
32057
+ /* harmony import */ var _toast__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./toast */ "./src/toast/index.js");
32058
+ /* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./icon */ "./src/icon.js");
32059
+ /* harmony import */ var _icon_button__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./icon_button */ "./src/icon_button.js");
32060
+ /* harmony import */ var _infochip__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./infochip */ "./src/infochip.js");
32037
32061
  /* harmony import */ var _tooltip__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ./tooltip */ "./src/tooltip.js");
32038
32062
  // LICENSE_CODE ZON
32039
32063
 
@@ -32653,7 +32677,10 @@ __webpack_require__.r(__webpack_exports__);
32653
32677
 
32654
32678
 
32655
32679
  /*jslint react:true*/
32680
+ var _excluded = ["name", "size", "color", "verticalAlign"];
32656
32681
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
32682
+ function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
32683
+ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } } return target; }
32657
32684
 
32658
32685
 
32659
32686
 
@@ -32661,16 +32688,18 @@ function _extends() { _extends = Object.assign ? Object.assign.bind() : function
32661
32688
 
32662
32689
 
32663
32690
 
32664
- var Icon = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().forwardRef(function (props, ref) {
32665
- var name = props.name,
32666
- size = props.size,
32667
- color = props.color,
32668
- verticalAlign = props.verticalAlign;
32691
+ var Icon = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().forwardRef(function (_ref, ref) {
32692
+ var name = _ref.name,
32693
+ _ref$size = _ref.size,
32694
+ size = _ref$size === void 0 ? 'md' : _ref$size,
32695
+ color = _ref.color,
32696
+ verticalAlign = _ref.verticalAlign,
32697
+ rest = _objectWithoutProperties(_ref, _excluded);
32669
32698
  var ic = _icons__WEBPACK_IMPORTED_MODULE_3__["default"][name];
32670
32699
  if (!ic) return null;
32671
32700
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(StyledSvg, _extends({
32672
32701
  ref: ref
32673
- }, (0,_util__WEBPACK_IMPORTED_MODULE_4__.getCommonProps)(props), {
32702
+ }, (0,_util__WEBPACK_IMPORTED_MODULE_4__.getCommonProps)(rest), {
32674
32703
  $size: size,
32675
32704
  viewBox: ic.viewBox,
32676
32705
  $color: _theme__WEBPACK_IMPORTED_MODULE_6__["default"].color[color],
@@ -32681,9 +32710,6 @@ var Icon = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().forwardRef(
32681
32710
  }));
32682
32711
  });
32683
32712
  Icon.displayName = 'Icon';
32684
- Icon.defaultProps = {
32685
- size: 'md'
32686
- };
32687
32713
  Icon.propTypes = {
32688
32714
  name: prop_types__WEBPACK_IMPORTED_MODULE_2___default().oneOf(_utils__WEBPACK_IMPORTED_MODULE_5__.iconNames).isRequired,
32689
32715
  color: prop_types__WEBPACK_IMPORTED_MODULE_2___default().oneOf(_utils__WEBPACK_IMPORTED_MODULE_5__.colorNames),
@@ -32741,16 +32767,17 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
32741
32767
 
32742
32768
 
32743
32769
 
32744
- var IconButton = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().forwardRef(function (props, ref) {
32745
- var variant = props.variant,
32746
- disabled = props.disabled,
32747
- active = props.active,
32748
- icon = props.icon,
32749
- tooltip = props.tooltip,
32750
- placement = props.tooltipPlacement,
32751
- size = props.size,
32752
- noBackColor = props.noBackColor,
32753
- rest = _objectWithoutProperties(props, _excluded);
32770
+ var IconButton = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().forwardRef(function (_ref, ref) {
32771
+ var variant = _ref.variant,
32772
+ disabled = _ref.disabled,
32773
+ active = _ref.active,
32774
+ icon = _ref.icon,
32775
+ tooltip = _ref.tooltip,
32776
+ placement = _ref.tooltipPlacement,
32777
+ _ref$size = _ref.size,
32778
+ size = _ref$size === void 0 ? 'md' : _ref$size,
32779
+ noBackColor = _ref.noBackColor,
32780
+ rest = _objectWithoutProperties(_ref, _excluded);
32754
32781
  size = calcSize(variant, size);
32755
32782
  noBackColor = variant == 'ghost' || noBackColor;
32756
32783
  var ic = _icons__WEBPACK_IMPORTED_MODULE_3__["default"][icon];
@@ -32775,9 +32802,6 @@ var IconButton = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().forwa
32775
32802
  }))));
32776
32803
  });
32777
32804
  IconButton.displayName = 'IconButton';
32778
- IconButton.defaultProps = {
32779
- size: 'md'
32780
- };
32781
32805
  IconButton.propTypes = {
32782
32806
  icon: prop_types__WEBPACK_IMPORTED_MODULE_2___default().oneOf(_utils__WEBPACK_IMPORTED_MODULE_5__.iconNames).isRequired,
32783
32807
  disabled: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().bool),
@@ -32846,7 +32870,7 @@ var calcSize = function calcSize(variant, size) {
32846
32870
  "use strict";
32847
32871
  __webpack_require__.r(__webpack_exports__);
32848
32872
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
32849
- /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
32873
+ /* harmony export */ InfoChip: () => (/* binding */ InfoChip)
32850
32874
  /* harmony export */ });
32851
32875
  /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! prop-types */ "prop-types");
32852
32876
  /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_0__);
@@ -32864,7 +32888,10 @@ __webpack_require__.r(__webpack_exports__);
32864
32888
 
32865
32889
 
32866
32890
  /*jslint react:true*/
32891
+ var _excluded = ["variant", "text", "icon"];
32867
32892
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
32893
+ function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
32894
+ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } } return target; }
32868
32895
 
32869
32896
 
32870
32897
 
@@ -32884,10 +32911,12 @@ var InfoChipWrapper = styled_components__WEBPACK_IMPORTED_MODULE_2___default()(_
32884
32911
  })(["background-color:", ";border-radius:24px;width:fit-content;min-height:24px;height:24px;"], function (props) {
32885
32912
  return props.color && _theme__WEBPACK_IMPORTED_MODULE_5__["default"].color[props.color];
32886
32913
  });
32887
- var InfoChip = function InfoChip(props) {
32888
- var variant = props.variant,
32889
- text = props.text,
32890
- icon = props.icon;
32914
+ var InfoChip = function InfoChip(_ref) {
32915
+ var _ref$variant = _ref.variant,
32916
+ variant = _ref$variant === void 0 ? 'default' : _ref$variant,
32917
+ text = _ref.text,
32918
+ icon = _ref.icon,
32919
+ rest = _objectWithoutProperties(_ref, _excluded);
32891
32920
  var bgColors = {
32892
32921
  "default": 'gray_3',
32893
32922
  success: 'green_3',
@@ -32904,7 +32933,7 @@ var InfoChip = function InfoChip(props) {
32904
32933
  info: 'blue_11'
32905
32934
  };
32906
32935
  var color = colors[variant] || colors["default"];
32907
- var commonProps = (0,_util__WEBPACK_IMPORTED_MODULE_7__.getCommonProps)(props);
32936
+ var commonProps = (0,_util__WEBPACK_IMPORTED_MODULE_7__.getCommonProps)(rest);
32908
32937
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(InfoChipWrapper, _extends({
32909
32938
  color: bgColor
32910
32939
  }, commonProps), icon && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_icon__WEBPACK_IMPORTED_MODULE_3__.Icon, {
@@ -32916,16 +32945,11 @@ var InfoChip = function InfoChip(props) {
32916
32945
  color: color
32917
32946
  }, text));
32918
32947
  };
32919
- InfoChip.displayName = 'InfoChip';
32920
- InfoChip.defaultProps = {
32921
- variant: 'default'
32922
- };
32923
32948
  InfoChip.propTypes = {
32924
32949
  variant: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['default', 'success', 'alert', 'warning', 'info']),
32925
32950
  text: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
32926
32951
  icon: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(_utils__WEBPACK_IMPORTED_MODULE_8__.iconNames)
32927
32952
  };
32928
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (InfoChip);
32929
32953
 
32930
32954
  /***/ }),
32931
32955
 
@@ -32971,19 +32995,20 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
32971
32995
 
32972
32996
 
32973
32997
 
32974
- var Checkbox = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forwardRef(function (props, ref) {
32975
- var id = props.id,
32976
- checked = props.checked,
32977
- onChange = props.onChange,
32978
- onClick = props.onClick,
32979
- label = props.label,
32980
- disabled = props.disabled,
32981
- tooltip = props.tooltip,
32982
- indeterminate = props.indeterminate,
32983
- verticalAlign = props.verticalAlign,
32984
- className = props.className,
32985
- classNamePrefix = props.classNamePrefix,
32986
- rest = _objectWithoutProperties(props, _excluded);
32998
+ var Checkbox = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forwardRef(function (_ref, ref) {
32999
+ var id = _ref.id,
33000
+ checked = _ref.checked,
33001
+ onChange = _ref.onChange,
33002
+ onClick = _ref.onClick,
33003
+ label = _ref.label,
33004
+ disabled = _ref.disabled,
33005
+ tooltip = _ref.tooltip,
33006
+ indeterminate = _ref.indeterminate,
33007
+ _ref$verticalAlign = _ref.verticalAlign,
33008
+ verticalAlign = _ref$verticalAlign === void 0 ? 'top' : _ref$verticalAlign,
33009
+ className = _ref.className,
33010
+ classNamePrefix = _ref.classNamePrefix,
33011
+ rest = _objectWithoutProperties(_ref, _excluded);
32987
33012
  var labelId = (0,_hooks__WEBPACK_IMPORTED_MODULE_3__.useLabelId)(id);
32988
33013
  var handleClick = function handleClick(evt) {
32989
33014
  if (disabled) return;
@@ -33033,9 +33058,6 @@ Checkbox.propTypes = {
33033
33058
  verticalAlign: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['top', 'middle', 'bottom']),
33034
33059
  classNamePrefix: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string)
33035
33060
  };
33036
- Checkbox.defaultProps = {
33037
- verticalAlign: 'top'
33038
- };
33039
33061
  var CheckboxWrapper = styled_components__WEBPACK_IMPORTED_MODULE_2___default().div.withConfig({
33040
33062
  displayName: "CheckboxWrapper",
33041
33063
  componentId: "sc-623yyg-0"
@@ -33181,24 +33203,26 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
33181
33203
 
33182
33204
 
33183
33205
 
33184
- var CheckboxList = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().forwardRef(function (props, forwardRef) {
33185
- var id = props.id,
33186
- styles = props.styles,
33187
- size = props.size,
33188
- async = props.async,
33189
- creatable = props.creatable,
33190
- isOptionDisabled = props.isOptionDisabled,
33191
- className = props.className,
33192
- label = props.label,
33193
- labelIcon = props.labelIcon,
33194
- labelTooltip = props.labelTooltip,
33195
- required = props.required,
33196
- necessityIndicator = props.necessityIndicator,
33197
- invalid = props.invalid,
33198
- helperText = props.helperText,
33199
- placeholder = props.placeholder,
33200
- disabled = props.disabled,
33201
- rest = _objectWithoutProperties(props, _excluded);
33206
+ var CheckboxList = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().forwardRef(function (_ref, forwardRef) {
33207
+ var id = _ref.id,
33208
+ styles = _ref.styles,
33209
+ _ref$size = _ref.size,
33210
+ size = _ref$size === void 0 ? 'sm' : _ref$size,
33211
+ async = _ref.async,
33212
+ creatable = _ref.creatable,
33213
+ isOptionDisabled = _ref.isOptionDisabled,
33214
+ className = _ref.className,
33215
+ label = _ref.label,
33216
+ labelIcon = _ref.labelIcon,
33217
+ labelTooltip = _ref.labelTooltip,
33218
+ required = _ref.required,
33219
+ necessityIndicator = _ref.necessityIndicator,
33220
+ invalid = _ref.invalid,
33221
+ helperText = _ref.helperText,
33222
+ _ref$placeholder = _ref.placeholder,
33223
+ placeholder = _ref$placeholder === void 0 ? 'Search...' : _ref$placeholder,
33224
+ disabled = _ref.disabled,
33225
+ rest = _objectWithoutProperties(_ref, _excluded);
33202
33226
  var labelId = (0,_hooks__WEBPACK_IMPORTED_MODULE_6__.useLabelId)(id);
33203
33227
  var t = (0,_translation__WEBPACK_IMPORTED_MODULE_8__.useTranslate)();
33204
33228
  var SelectComp = getComponent({
@@ -33240,7 +33264,7 @@ var CheckboxList = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().for
33240
33264
  isDisabled: disabled,
33241
33265
  required: required,
33242
33266
  styles: _styles,
33243
- components: (0,_build_components__WEBPACK_IMPORTED_MODULE_11__.buildComponents)(props),
33267
+ components: (0,_build_components__WEBPACK_IMPORTED_MODULE_11__.buildComponents)(rest),
33244
33268
  className: (0,_util__WEBPACK_IMPORTED_MODULE_9__.classNames)(className, {
33245
33269
  container: true
33246
33270
  }),
@@ -33267,10 +33291,6 @@ CheckboxList.propTypes = {
33267
33291
  size: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOf(['sm', 'md', 'lg']),
33268
33292
  virtualized: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().bool)
33269
33293
  };
33270
- CheckboxList.defaultProps = {
33271
- size: 'sm',
33272
- placeholder: 'Search...'
33273
- };
33274
33294
  var getComponent = function getComponent(opt) {
33275
33295
  if (opt.async) return opt.creatable ? react_select_async_creatable__WEBPACK_IMPORTED_MODULE_5__["default"] : react_select_async__WEBPACK_IMPORTED_MODULE_4__["default"];
33276
33296
  return opt.creatable ? react_select_creatable__WEBPACK_IMPORTED_MODULE_3__["default"] : react_select__WEBPACK_IMPORTED_MODULE_13__["default"];
@@ -33573,6 +33593,7 @@ __webpack_require__.r(__webpack_exports__);
33573
33593
 
33574
33594
  /*jslint react:true*/
33575
33595
 
33596
+ var _excluded = ["size", "format", "placeholder", "options", "formatOptionLabel"];
33576
33597
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
33577
33598
  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."); }
33578
33599
  function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
@@ -33580,6 +33601,8 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
33580
33601
  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; } }
33581
33602
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
33582
33603
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
33604
+ function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
33605
+ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } } return target; }
33583
33606
 
33584
33607
 
33585
33608
 
@@ -33592,17 +33615,31 @@ function _extends() { _extends = Object.assign ? Object.assign.bind() : function
33592
33615
 
33593
33616
 
33594
33617
 
33595
- var CompareTo = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().forwardRef(function (props, ref) {
33596
- var formatOptionLabel = (0,react__WEBPACK_IMPORTED_MODULE_2__.useCallback)(function (opt) {
33618
+ var CompareTo = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().forwardRef(function (_ref, ref) {
33619
+ var _ref$size = _ref.size,
33620
+ size = _ref$size === void 0 ? 'md' : _ref$size,
33621
+ _ref$format = _ref.format,
33622
+ fmt = _ref$format === void 0 ? 'dd/MM/yyyy' : _ref$format,
33623
+ _ref$placeholder = _ref.placeholder,
33624
+ placeholder = _ref$placeholder === void 0 ? 'Compare to' : _ref$placeholder,
33625
+ _ref$options = _ref.options,
33626
+ options = _ref$options === void 0 ? [] : _ref$options,
33627
+ formatOptionLabel = _ref.formatOptionLabel,
33628
+ rest = _objectWithoutProperties(_ref, _excluded);
33629
+ var _formatOptionLabel = (0,react__WEBPACK_IMPORTED_MODULE_2__.useCallback)(function (opt) {
33597
33630
  if (opt && lodash_isObject__WEBPACK_IMPORTED_MODULE_0___default()(opt)) {
33598
- var text = opt.value != 'custom' ? opt.label : (0,date_fns_format__WEBPACK_IMPORTED_MODULE_12__["default"])(opt.from, props.format);
33599
- return "".concat(props.placeholder, " ").concat(text);
33631
+ var text = opt.value != 'custom' ? opt.label : (0,date_fns_format__WEBPACK_IMPORTED_MODULE_12__["default"])(opt.from, fmt);
33632
+ return "".concat(placeholder, " ").concat(text);
33600
33633
  }
33601
33634
  return '';
33602
- }, [props.format, props.placeholder]);
33603
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_dropdown__WEBPACK_IMPORTED_MODULE_10__.Dropdown, _extends({}, props, {
33604
- options: props.options || [],
33605
- formatOptionLabel: props.formatOptionLabel || formatOptionLabel,
33635
+ }, [fmt, placeholder]);
33636
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_dropdown__WEBPACK_IMPORTED_MODULE_10__.Dropdown, _extends({
33637
+ ref: ref
33638
+ }, rest, {
33639
+ size: size,
33640
+ placeholder: placeholder,
33641
+ options: options,
33642
+ formatOptionLabel: formatOptionLabel || _formatOptionLabel,
33606
33643
  components: {
33607
33644
  MenuList: CompareToMenuList,
33608
33645
  NoOptionsMessage: function NoOptionsMessage() {
@@ -33613,11 +33650,6 @@ var CompareTo = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().forwar
33613
33650
  }));
33614
33651
  });
33615
33652
  CompareTo.displayName = 'CompareTo';
33616
- CompareTo.defaultProps = {
33617
- format: 'dd/MM/yyyy',
33618
- size: 'md',
33619
- placeholder: 'Compare to'
33620
- };
33621
33653
  CompareTo.propTypes = {
33622
33654
  value: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().any),
33623
33655
  options: prop_types__WEBPACK_IMPORTED_MODULE_1___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_1___default().any)),
@@ -33727,16 +33759,17 @@ __webpack_require__.r(__webpack_exports__);
33727
33759
 
33728
33760
 
33729
33761
  /*jslint react:true*/
33730
- var _excluded = ["mode", "selected", "onChange", "renderPopover", "popover"];
33762
+ var _excluded = ["onChange", "disabledDays", "isRange", "defaultMonth", "month", "onMonthChange", "renderPopover", "format", "size", "value"],
33763
+ _excluded2 = ["mode", "selected", "onChange", "renderPopover", "popover"];
33731
33764
  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); }
33732
- function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
33733
- function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } } return target; }
33734
33765
  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; }
33735
33766
  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; }
33736
33767
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
33737
33768
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
33738
33769
  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); }
33739
33770
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
33771
+ function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
33772
+ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } } return target; }
33740
33773
 
33741
33774
 
33742
33775
 
@@ -33747,15 +33780,25 @@ function _extends() { _extends = Object.assign ? Object.assign.bind() : function
33747
33780
 
33748
33781
 
33749
33782
 
33750
- var DatePicker = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forwardRef(function (props, ref) {
33751
- var onChange = props.onChange,
33752
- disabledDays = props.disabledDays,
33753
- isRange = props.isRange,
33754
- defaultMonth = props.defaultMonth,
33755
- month = props.month,
33756
- onMonthChange = props.onMonthChange,
33757
- renderPopover = props.renderPopover;
33758
- var value = useValue(props);
33783
+ var DatePicker = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forwardRef(function (_ref, ref) {
33784
+ var onChange = _ref.onChange,
33785
+ disabledDays = _ref.disabledDays,
33786
+ _ref$isRange = _ref.isRange,
33787
+ isRange = _ref$isRange === void 0 ? false : _ref$isRange,
33788
+ defaultMonth = _ref.defaultMonth,
33789
+ month = _ref.month,
33790
+ onMonthChange = _ref.onMonthChange,
33791
+ renderPopover = _ref.renderPopover,
33792
+ _ref$format = _ref.format,
33793
+ fmt = _ref$format === void 0 ? 'dd/MM/yyyy' : _ref$format,
33794
+ _ref$size = _ref.size,
33795
+ size = _ref$size === void 0 ? 'md' : _ref$size,
33796
+ _value = _ref.value,
33797
+ rest = _objectWithoutProperties(_ref, _excluded);
33798
+ var value = useValue({
33799
+ isRange: isRange,
33800
+ value: _value
33801
+ });
33759
33802
  var popoverProps = (0,react__WEBPACK_IMPORTED_MODULE_1__.useMemo)(function () {
33760
33803
  return {
33761
33804
  selected: value,
@@ -33771,17 +33814,14 @@ var DatePicker = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forwa
33771
33814
  }, [value, disabledDays, onChange, isRange, defaultMonth, month, onMonthChange, renderPopover]);
33772
33815
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(Picker, _extends({
33773
33816
  ref: ref
33774
- }, props, {
33817
+ }, rest, {
33818
+ format: fmt,
33775
33819
  value: value,
33776
- popoverProps: popoverProps
33820
+ popoverProps: popoverProps,
33821
+ size: size
33777
33822
  }));
33778
33823
  });
33779
33824
  DatePicker.displayName = 'DatePicker';
33780
- DatePicker.defaultProps = {
33781
- format: 'dd/MM/yyyy',
33782
- size: 'md',
33783
- isRange: false
33784
- };
33785
33825
  DatePicker.propTypes = {
33786
33826
  value: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number), prop_types__WEBPACK_IMPORTED_MODULE_0___default().instanceOf(Date), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object)]),
33787
33827
  format: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
@@ -33850,7 +33890,7 @@ var PickerPopover = function PickerPopover(props) {
33850
33890
  onChange = props.onChange,
33851
33891
  renderPopover = props.renderPopover,
33852
33892
  popover = props.popover,
33853
- rest = _objectWithoutProperties(props, _excluded);
33893
+ rest = _objectWithoutProperties(props, _excluded2);
33854
33894
  var handleDayClick = (0,react__WEBPACK_IMPORTED_MODULE_1__.useCallback)(function (day, activeModifiers) {
33855
33895
  if (activeModifiers.disabled) return;
33856
33896
  var val = day;
@@ -33870,8 +33910,8 @@ var PickerPopover = function PickerPopover(props) {
33870
33910
  }
33871
33911
  onChange(val);
33872
33912
  }, [mode, selected]);
33873
- var render = typeof renderPopover == 'function' ? renderPopover : function (_ref) {
33874
- var picker = _ref.picker;
33913
+ var render = typeof renderPopover == 'function' ? renderPopover : function (_ref2) {
33914
+ var picker = _ref2.picker;
33875
33915
  return picker;
33876
33916
  };
33877
33917
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(DayPickerWrapper, {
@@ -33928,21 +33968,21 @@ Day.displayName = 'Day';
33928
33968
  var DayWrapper = styled_components__WEBPACK_IMPORTED_MODULE_3___default().div.withConfig({
33929
33969
  displayName: "DayWrapper",
33930
33970
  componentId: "sc-1gurvxq-2"
33931
- })(["padding:0;background-color:", ";border-top-left-radius:", ";border-bottom-left-radius:", ";border-top-right-radius:", ";border-bottom-right-radius:", ";.rdp-day{display:flex;flex-direction:column;justify-content:center;align-items:center;width:32px;height:32px;box-sizing:border-box;border-radius:", ";border:1px solid ", ";background-color:", ";cursor:pointer;font-family:", ";font-style:normal;font-weight:", ";font-size:", ";line-height:", ";color:", ";&:hover:not(:disabled){border:1px solid ", ";}&:disabled{color:", ";cursor:not-allowed;}}.rdp-day_today{color:", ";font-weight:", ";}.rdp-day_selected{background-color:", ";border:1px solid ", ";color:", ";}.rdp-day_range_middle{background-color:", ";border:1px solid ", ";color:", ";&.rdp-day_today{color:", ";}}"], function (_ref2) {
33932
- var $mod = _ref2.$mod;
33933
- return $mod.selected ? _theme__WEBPACK_IMPORTED_MODULE_5__["default"].color.blue_3 : _theme__WEBPACK_IMPORTED_MODULE_5__["default"].color.white;
33934
- }, function (_ref3) {
33971
+ })(["padding:0;background-color:", ";border-top-left-radius:", ";border-bottom-left-radius:", ";border-top-right-radius:", ";border-bottom-right-radius:", ";.rdp-day{display:flex;flex-direction:column;justify-content:center;align-items:center;width:32px;height:32px;box-sizing:border-box;border-radius:", ";border:1px solid ", ";background-color:", ";cursor:pointer;font-family:", ";font-style:normal;font-weight:", ";font-size:", ";line-height:", ";color:", ";&:hover:not(:disabled){border:1px solid ", ";}&:disabled{color:", ";cursor:not-allowed;}}.rdp-day_today{color:", ";font-weight:", ";}.rdp-day_selected{background-color:", ";border:1px solid ", ";color:", ";}.rdp-day_range_middle{background-color:", ";border:1px solid ", ";color:", ";&.rdp-day_today{color:", ";}}"], function (_ref3) {
33935
33972
  var $mod = _ref3.$mod;
33936
- return $mod.range_middle || $mod.range_end && !$mod.range_start ? '0' : borderRadius;
33973
+ return $mod.selected ? _theme__WEBPACK_IMPORTED_MODULE_5__["default"].color.blue_3 : _theme__WEBPACK_IMPORTED_MODULE_5__["default"].color.white;
33937
33974
  }, function (_ref4) {
33938
33975
  var $mod = _ref4.$mod;
33939
33976
  return $mod.range_middle || $mod.range_end && !$mod.range_start ? '0' : borderRadius;
33940
33977
  }, function (_ref5) {
33941
33978
  var $mod = _ref5.$mod;
33942
- return $mod.range_middle || $mod.range_start && !$mod.range_end ? '0' : borderRadius;
33979
+ return $mod.range_middle || $mod.range_end && !$mod.range_start ? '0' : borderRadius;
33943
33980
  }, function (_ref6) {
33944
33981
  var $mod = _ref6.$mod;
33945
33982
  return $mod.range_middle || $mod.range_start && !$mod.range_end ? '0' : borderRadius;
33983
+ }, function (_ref7) {
33984
+ var $mod = _ref7.$mod;
33985
+ return $mod.range_middle || $mod.range_start && !$mod.range_end ? '0' : borderRadius;
33946
33986
  }, borderRadius, _theme__WEBPACK_IMPORTED_MODULE_5__["default"].color.white, _theme__WEBPACK_IMPORTED_MODULE_5__["default"].color.white, _theme__WEBPACK_IMPORTED_MODULE_5__["default"].font_family.sans, _theme__WEBPACK_IMPORTED_MODULE_5__["default"].font_weight.regular, _theme__WEBPACK_IMPORTED_MODULE_5__["default"].font_size.xs, _theme__WEBPACK_IMPORTED_MODULE_5__["default"].line_height.none, _theme__WEBPACK_IMPORTED_MODULE_5__["default"].color.gray_11_50, _theme__WEBPACK_IMPORTED_MODULE_5__["default"].color.blue_10, _theme__WEBPACK_IMPORTED_MODULE_5__["default"].color.gray_7, _theme__WEBPACK_IMPORTED_MODULE_5__["default"].color.blue_11, _theme__WEBPACK_IMPORTED_MODULE_5__["default"].font_weight.semibold, _theme__WEBPACK_IMPORTED_MODULE_5__["default"].color.blue_10, _theme__WEBPACK_IMPORTED_MODULE_5__["default"].color.blue_10, _theme__WEBPACK_IMPORTED_MODULE_5__["default"].color.white, _theme__WEBPACK_IMPORTED_MODULE_5__["default"].color.blue_3, _theme__WEBPACK_IMPORTED_MODULE_5__["default"].color.blue_3, _theme__WEBPACK_IMPORTED_MODULE_5__["default"].color.gray_11_50, _theme__WEBPACK_IMPORTED_MODULE_5__["default"].color.blue_11);
33947
33987
  var getDateText = function getDateText(props) {
33948
33988
  var value = props.value,
@@ -34031,13 +34071,23 @@ var addItem = function addItem(matrix, i, j, item) {
34031
34071
  var newMatrix = matrix.toSpliced(i, 1, newRow);
34032
34072
  return newMatrix;
34033
34073
  };
34034
- var DragDrop = function DragDrop(props) {
34035
- var value = props.value,
34036
- onChange = props.onChange,
34037
- items = props.items,
34038
- _props$sections = props.sections,
34039
- sections = _props$sections === void 0 ? [] : _props$sections,
34040
- direction = props.direction;
34074
+ var noop = function noop() {
34075
+ return 0;
34076
+ };
34077
+ var DragDrop = function DragDrop(_ref) {
34078
+ var _ref$value = _ref.value,
34079
+ value = _ref$value === void 0 ? [[]] : _ref$value,
34080
+ _ref$onChange = _ref.onChange,
34081
+ onChange = _ref$onChange === void 0 ? noop : _ref$onChange,
34082
+ _ref$items = _ref.items,
34083
+ items = _ref$items === void 0 ? [] : _ref$items,
34084
+ _ref$sections = _ref.sections,
34085
+ sections = _ref$sections === void 0 ? [] : _ref$sections,
34086
+ _ref$direction = _ref.direction,
34087
+ direction = _ref$direction === void 0 ? 'row' : _ref$direction,
34088
+ CustomDrop = _ref.CustomDrop,
34089
+ CustomDrag = _ref.CustomDrag,
34090
+ EmptyComp = _ref.EmptyComp;
34041
34091
  var onDragEnd = (0,react__WEBPACK_IMPORTED_MODULE_1__.useCallback)(function (arg) {
34042
34092
  var source = arg.source,
34043
34093
  destination = arg.destination;
@@ -34084,21 +34134,12 @@ var DragDrop = function DragDrop(props) {
34084
34134
  isFirst: i == 0,
34085
34135
  isLast: i == value.length - 1,
34086
34136
  containerDirection: direction,
34087
- Comp: props.CustomDrop,
34088
- DragComp: props.CustomDrag,
34089
- EmptyComp: props.EmptyComp
34137
+ Comp: CustomDrop,
34138
+ DragComp: CustomDrag,
34139
+ EmptyComp: EmptyComp
34090
34140
  });
34091
34141
  })));
34092
34142
  };
34093
- DragDrop.displayName = 'DragDrop';
34094
- DragDrop.defaultProps = {
34095
- value: [[]],
34096
- items: [],
34097
- onChange: function onChange() {
34098
- return 0;
34099
- },
34100
- direction: 'row'
34101
- };
34102
34143
  DragDrop.propTypes = {
34103
34144
  value: prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().array)),
34104
34145
  items: prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().object)),
@@ -34464,7 +34505,7 @@ __webpack_require__.r(__webpack_exports__);
34464
34505
 
34465
34506
 
34466
34507
  /*jslint react:true*/
34467
- var _excluded = ["id", "label", "labelIcon", "labelTooltip", "required", "necessityIndicator", "placeholder", "multiselect", "creatable", "clearable", "disabled", "invalid", "helperText", "className", "classNamePrefix", "hideSelectedOptions", "isOptionDisabled", "async", "searchable", "closeMenuOnSelect"];
34508
+ var _excluded = ["id", "label", "labelIcon", "labelTooltip", "required", "necessityIndicator", "placeholder", "multiselect", "creatable", "clearable", "disabled", "invalid", "helperText", "className", "classNamePrefix", "hideSelectedOptions", "isOptionDisabled", "async", "searchable", "closeMenuOnSelect", "size", "menuPlacement", "menuPortalTarget", "styles"];
34468
34509
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
34469
34510
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
34470
34511
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } } return target; }
@@ -34491,7 +34532,7 @@ var defaultIsOptionDisabled = function defaultIsOptionDisabled(opt) {
34491
34532
  return opt.disabled;
34492
34533
  };
34493
34534
  var Dropdown = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forwardRef(function (props, forwardRef) {
34494
- var _splitProps = (0,_util__WEBPACK_IMPORTED_MODULE_8__.splitProps)(props, 'autoFocus', 'blurInputOnSelect', 'filterOption', 'formatOptionLabel', 'value', 'defaultValue', 'options', 'onChange', 'onFocus', 'onBlur', 'menuPortalTarget', 'onChangeCapture', 'menuPlacement', 'onInputChange', 'getOptionValue', 'getOptionLabel', 'isOptionSelected', 'isLoading', 'loadOptions', 'defaultOptions', 'cacheOptions', 'onCreateOption', 'formatCreateLabel', 'isValidNewOption', 'getNewOptionData', 'onMenuOpen', 'onMenuClose', 'openMenuOnFocus', 'menuIsOpen'),
34535
+ var _splitProps = (0,_util__WEBPACK_IMPORTED_MODULE_8__.splitProps)(props, 'autoFocus', 'blurInputOnSelect', 'filterOption', 'formatOptionLabel', 'value', 'defaultValue', 'options', 'onChange', 'onFocus', 'onBlur', 'onChangeCapture', 'onInputChange', 'getOptionValue', 'getOptionLabel', 'isOptionSelected', 'isLoading', 'loadOptions', 'defaultOptions', 'cacheOptions', 'onCreateOption', 'formatCreateLabel', 'isValidNewOption', 'getNewOptionData', 'onMenuOpen', 'onMenuClose', 'openMenuOnFocus', 'menuIsOpen'),
34495
34536
  _splitProps2 = _slicedToArray(_splitProps, 2),
34496
34537
  selectProps = _splitProps2[0],
34497
34538
  restProps = _splitProps2[1];
@@ -34504,7 +34545,8 @@ var Dropdown = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forward
34504
34545
  placeholder = restProps.placeholder,
34505
34546
  multiselect = restProps.multiselect,
34506
34547
  creatable = restProps.creatable,
34507
- clearable = restProps.clearable,
34548
+ _restProps$clearable = restProps.clearable,
34549
+ clearable = _restProps$clearable === void 0 ? false : _restProps$clearable,
34508
34550
  disabled = restProps.disabled,
34509
34551
  invalid = restProps.invalid,
34510
34552
  helperText = restProps.helperText,
@@ -34515,10 +34557,20 @@ var Dropdown = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forward
34515
34557
  async = restProps.async,
34516
34558
  searchable = restProps.searchable,
34517
34559
  closeMenuOnSelect = restProps.closeMenuOnSelect,
34560
+ _restProps$size = restProps.size,
34561
+ size = _restProps$size === void 0 ? 'sm' : _restProps$size,
34562
+ _restProps$menuPlacem = restProps.menuPlacement,
34563
+ menuPlacement = _restProps$menuPlacem === void 0 ? 'auto' : _restProps$menuPlacem,
34564
+ menuPortalTarget = restProps.menuPortalTarget,
34565
+ _styles = restProps.styles,
34518
34566
  rest = _objectWithoutProperties(restProps, _excluded);
34519
34567
  var labelId = (0,_hooks__WEBPACK_IMPORTED_MODULE_5__.useLabelId)(id);
34520
34568
  var t = (0,_translation__WEBPACK_IMPORTED_MODULE_7__.useTranslate)();
34521
- var styles = (0,_use_styles__WEBPACK_IMPORTED_MODULE_11__.useStyles)(props);
34569
+ var styles = (0,_use_styles__WEBPACK_IMPORTED_MODULE_11__.useStyles)({
34570
+ styles: _styles,
34571
+ size: size,
34572
+ menuPortalTarget: menuPortalTarget
34573
+ });
34522
34574
  var SelectComp = getComponent({
34523
34575
  async: async,
34524
34576
  creatable: creatable
@@ -34556,7 +34608,9 @@ var Dropdown = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forward
34556
34608
  classNamePrefix: classNamePrefix,
34557
34609
  closeMenuOnSelect: (0,_util__WEBPACK_IMPORTED_MODULE_8__.firstDefined)(closeMenuOnSelect, !multiselect),
34558
34610
  hideSelectedOptions: (0,_util__WEBPACK_IMPORTED_MODULE_8__.firstDefined)(props.autosize === false ? false : undefined, hideSelectedOptions),
34559
- isOptionDisabled: (0,_util__WEBPACK_IMPORTED_MODULE_8__.firstDefined)(isOptionDisabled, defaultIsOptionDisabled)
34611
+ isOptionDisabled: (0,_util__WEBPACK_IMPORTED_MODULE_8__.firstDefined)(isOptionDisabled, defaultIsOptionDisabled),
34612
+ menuPlacement: menuPlacement,
34613
+ menuPortalTarget: menuPortalTarget
34560
34614
  })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_shared__WEBPACK_IMPORTED_MODULE_9__.HelperText, {
34561
34615
  invalid: invalid
34562
34616
  }, helperText));
@@ -34614,11 +34668,6 @@ Dropdown.propTypes = {
34614
34668
  menuIsOpen: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
34615
34669
  closeMenuOnSelect: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool)
34616
34670
  };
34617
- Dropdown.defaultProps = {
34618
- size: 'sm',
34619
- clearable: false,
34620
- menuPlacement: 'auto'
34621
- };
34622
34671
  var getComponent = function getComponent(opt) {
34623
34672
  if (opt.async) return opt.creatable ? react_select_async_creatable__WEBPACK_IMPORTED_MODULE_4__["default"] : react_select_async__WEBPACK_IMPORTED_MODULE_3__["default"];
34624
34673
  return opt.creatable ? react_select_creatable__WEBPACK_IMPORTED_MODULE_2__["default"] : react_select__WEBPACK_IMPORTED_MODULE_12__["default"];
@@ -35203,16 +35252,24 @@ function _extends() { _extends = Object.assign ? Object.assign.bind() : function
35203
35252
 
35204
35253
 
35205
35254
 
35206
- var FileUploader = function FileUploader(props) {
35207
- var label = props.label,
35208
- antiVirusScanText = props.antiVirusScanText,
35209
- accept = props.accept,
35210
- multi = props.multi,
35211
- files = props.files,
35212
- fileInfoFormatter = props.fileInfoFormatter,
35213
- onFileUpload = props.onFileUpload,
35214
- onFileDelete = props.onFileDelete,
35215
- showDropzone = props.showDropzone;
35255
+ var defaultFileInfoFormatter = function defaultFileInfoFormatter() {
35256
+ var file = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
35257
+ return file.name || '';
35258
+ };
35259
+ var FileUploader = function FileUploader(_ref) {
35260
+ var label = _ref.label,
35261
+ _ref$antiVirusScanTex = _ref.antiVirusScanText,
35262
+ antiVirusScanText = _ref$antiVirusScanTex === void 0 ? 'Scanning for viruses...' : _ref$antiVirusScanTex,
35263
+ accept = _ref.accept,
35264
+ multi = _ref.multi,
35265
+ _ref$files = _ref.files,
35266
+ files = _ref$files === void 0 ? [] : _ref$files,
35267
+ _ref$fileInfoFormatte = _ref.fileInfoFormatter,
35268
+ fileInfoFormatter = _ref$fileInfoFormatte === void 0 ? defaultFileInfoFormatter : _ref$fileInfoFormatte,
35269
+ onFileUpload = _ref.onFileUpload,
35270
+ onFileDelete = _ref.onFileDelete,
35271
+ _ref$showDropzone = _ref.showDropzone,
35272
+ showDropzone = _ref$showDropzone === void 0 ? true : _ref$showDropzone;
35216
35273
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_layout__WEBPACK_IMPORTED_MODULE_2__.Flex, {
35217
35274
  flex_direction: "column",
35218
35275
  gap: "03"
@@ -35230,7 +35287,6 @@ var FileUploader = function FileUploader(props) {
35230
35287
  }, file));
35231
35288
  }));
35232
35289
  };
35233
- FileUploader.displayName = 'FileUploader';
35234
35290
  FileUploader.propTypes = {
35235
35291
  label: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
35236
35292
  antiVirusScanText: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
@@ -35253,15 +35309,6 @@ FileUploader.propTypes = {
35253
35309
  onFileUpload: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
35254
35310
  onFileDelete: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func)
35255
35311
  };
35256
- FileUploader.defaultProps = {
35257
- files: [],
35258
- fileInfoFormatter: function fileInfoFormatter() {
35259
- var file = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
35260
- return file.name;
35261
- },
35262
- showDropzone: true,
35263
- antiVirusScanText: 'Scanning for viruses...'
35264
- };
35265
35312
 
35266
35313
  /***/ }),
35267
35314
 
@@ -35486,10 +35533,7 @@ var UploadItemBody = styled_components__WEBPACK_IMPORTED_MODULE_1___default()(_l
35486
35533
  componentId: "sc-1ua6zh3-2"
35487
35534
  })(["flex-grow:1;"]);
35488
35535
  var UploadItem = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().memo(function (props) {
35489
- var type = props.type,
35490
- createTime = props.createTime,
35491
- size = props.size,
35492
- name = props.name,
35536
+ var size = props.size,
35493
35537
  id = props.id,
35494
35538
  status = props.status,
35495
35539
  error = props.error,
@@ -35538,7 +35582,6 @@ UploadItem.propTypes = {
35538
35582
  icon: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().any),
35539
35583
  antiVirusScanText: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string)
35540
35584
  };
35541
- UploadItem.defaultProps = {};
35542
35585
 
35543
35586
  /***/ }),
35544
35587
 
@@ -36663,8 +36706,8 @@ __webpack_require__.r(__webpack_exports__);
36663
36706
 
36664
36707
  /*jslint react:true*/
36665
36708
  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); }
36666
- var _excluded = ["className", "classNamePrefix", "value", "onChange", "disabled", "options", "variant", "size", "label", "labelIcon", "labelTooltip", "helperText", "invalid", "required", "necessityIndicator"],
36667
- _excluded2 = ["classNamePrefix", "value", "checked", "onClick", "label", "disabled", "size", "tooltip", "interactive_tooltip", "verticalAlign"];
36709
+ var _excluded = ["id", "className", "classNamePrefix", "value", "onChange", "disabled", "options", "variant", "size", "label", "labelIcon", "labelTooltip", "helperText", "invalid", "required", "necessityIndicator"],
36710
+ _excluded2 = ["id", "classNamePrefix", "value", "checked", "onClick", "label", "disabled", "size", "tooltip", "tooltipProps", "verticalAlign"];
36668
36711
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
36669
36712
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
36670
36713
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
@@ -36681,24 +36724,27 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
36681
36724
 
36682
36725
 
36683
36726
 
36684
- var RadioGroup = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forwardRef(function (props, ref) {
36685
- var className = props.className,
36686
- classNamePrefix = props.classNamePrefix,
36687
- value = props.value,
36688
- onChange = props.onChange,
36689
- disabled = props.disabled,
36690
- options = props.options,
36691
- variant = props.variant,
36692
- size = props.size,
36693
- label = props.label,
36694
- labelIcon = props.labelIcon,
36695
- labelTooltip = props.labelTooltip,
36696
- helperText = props.helperText,
36697
- invalid = props.invalid,
36698
- required = props.required,
36699
- necessityIndicator = props.necessityIndicator,
36700
- rest = _objectWithoutProperties(props, _excluded);
36701
- var labelId = (0,_hooks__WEBPACK_IMPORTED_MODULE_2__.useLabelId)(props.id);
36727
+ var RadioGroup = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forwardRef(function (_ref, ref) {
36728
+ var id = _ref.id,
36729
+ className = _ref.className,
36730
+ classNamePrefix = _ref.classNamePrefix,
36731
+ value = _ref.value,
36732
+ onChange = _ref.onChange,
36733
+ disabled = _ref.disabled,
36734
+ options = _ref.options,
36735
+ _ref$variant = _ref.variant,
36736
+ variant = _ref$variant === void 0 ? 'row' : _ref$variant,
36737
+ _ref$size = _ref.size,
36738
+ size = _ref$size === void 0 ? 'sm' : _ref$size,
36739
+ label = _ref.label,
36740
+ labelIcon = _ref.labelIcon,
36741
+ labelTooltip = _ref.labelTooltip,
36742
+ helperText = _ref.helperText,
36743
+ invalid = _ref.invalid,
36744
+ required = _ref.required,
36745
+ necessityIndicator = _ref.necessityIndicator,
36746
+ rest = _objectWithoutProperties(_ref, _excluded);
36747
+ var labelId = (0,_hooks__WEBPACK_IMPORTED_MODULE_2__.useLabelId)(id);
36702
36748
  var handleChange = function handleChange(val, opt, evt) {
36703
36749
  if (!disabled) onChange === null || onChange === void 0 || onChange(val, opt, evt);
36704
36750
  };
@@ -36708,7 +36754,7 @@ var RadioGroup = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forwa
36708
36754
  container: true
36709
36755
  }, className),
36710
36756
  flex_direction: "column",
36711
- gap: _theme__WEBPACK_IMPORTED_MODULE_4__["default"].spacing['03']
36757
+ gap: "03"
36712
36758
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_shared__WEBPACK_IMPORTED_MODULE_8__.InputLabel, {
36713
36759
  classNamePrefix: classNamePrefix,
36714
36760
  id: labelId,
@@ -36720,6 +36766,7 @@ var RadioGroup = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forwa
36720
36766
  variant: "lg"
36721
36767
  }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_common__WEBPACK_IMPORTED_MODULE_9__.GroupWrapper, _extends({
36722
36768
  ref: ref,
36769
+ id: id,
36723
36770
  className: (0,_util__WEBPACK_IMPORTED_MODULE_7__.classNames)(classNamePrefix, _defineProperty({
36724
36771
  radioGroup: true
36725
36772
  }, "radioGroup--".concat(variant), true)),
@@ -36765,31 +36812,30 @@ RadioGroup.propTypes = {
36765
36812
  })),
36766
36813
  classNamePrefix: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string)
36767
36814
  };
36768
- RadioGroup.defaultProps = {
36769
- variant: 'row',
36770
- size: 'sm'
36771
- };
36772
- var Radio = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forwardRef(function (props, ref) {
36773
- var classNamePrefix = props.classNamePrefix,
36774
- value = props.value,
36775
- checked = props.checked,
36776
- onClick = props.onClick,
36777
- label = props.label,
36778
- disabled = props.disabled,
36779
- size = props.size,
36780
- tooltip = props.tooltip,
36781
- interactive_tooltip = props.interactive_tooltip,
36782
- verticalAlign = props.verticalAlign,
36783
- rest = _objectWithoutProperties(props, _excluded2);
36784
- var labelId = (0,_hooks__WEBPACK_IMPORTED_MODULE_2__.useLabelId)(props.id);
36815
+ var Radio = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forwardRef(function (_ref2, ref) {
36816
+ var id = _ref2.id,
36817
+ classNamePrefix = _ref2.classNamePrefix,
36818
+ value = _ref2.value,
36819
+ checked = _ref2.checked,
36820
+ onClick = _ref2.onClick,
36821
+ label = _ref2.label,
36822
+ disabled = _ref2.disabled,
36823
+ _ref2$size = _ref2.size,
36824
+ size = _ref2$size === void 0 ? 'md' : _ref2$size,
36825
+ tooltip = _ref2.tooltip,
36826
+ tooltipProps = _ref2.tooltipProps,
36827
+ _ref2$verticalAlign = _ref2.verticalAlign,
36828
+ verticalAlign = _ref2$verticalAlign === void 0 ? 'top' : _ref2$verticalAlign,
36829
+ rest = _objectWithoutProperties(_ref2, _excluded2);
36830
+ var labelId = (0,_hooks__WEBPACK_IMPORTED_MODULE_2__.useLabelId)(id);
36785
36831
  var handleClick = function handleClick(evt) {
36786
36832
  if (!disabled) onClick === null || onClick === void 0 || onClick(value, evt);
36787
36833
  };
36788
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_tooltip__WEBPACK_IMPORTED_MODULE_5__.Tooltip, {
36789
- tooltip: tooltip,
36790
- interactive: interactive_tooltip
36791
- }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_common__WEBPACK_IMPORTED_MODULE_9__.RadioWrapper, _extends({
36834
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_tooltip__WEBPACK_IMPORTED_MODULE_5__.Tooltip, _extends({}, tooltipProps, {
36835
+ tooltip: tooltip
36836
+ }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_common__WEBPACK_IMPORTED_MODULE_9__.RadioWrapper, _extends({
36792
36837
  ref: ref,
36838
+ id: id,
36793
36839
  className: (0,_util__WEBPACK_IMPORTED_MODULE_7__.classNames)(classNamePrefix, _defineProperty(_defineProperty({
36794
36840
  radio: true
36795
36841
  }, 'radio--is-selected', checked), 'radio--is-disabled', disabled))
@@ -36827,10 +36873,6 @@ Radio.propTypes = {
36827
36873
  verticalAlign: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['top', 'middle', 'bottom']),
36828
36874
  size: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['sm', 'md'])
36829
36875
  };
36830
- Radio.defaultProps = {
36831
- verticalAlign: 'top',
36832
- size: 'md'
36833
- };
36834
36876
 
36835
36877
  /***/ }),
36836
36878
 
@@ -36862,7 +36904,7 @@ __webpack_require__.r(__webpack_exports__);
36862
36904
 
36863
36905
  /*jslint react:true*/
36864
36906
  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); }
36865
- var _excluded = ["options", "classNamePrefix", "rounded"];
36907
+ var _excluded = ["options", "classNamePrefix", "rounded", "disabled", "size"];
36866
36908
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
36867
36909
  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; }
36868
36910
  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; }
@@ -36925,25 +36967,29 @@ var RadioTabLabel = function RadioTabLabel(props) {
36925
36967
  }, description)));
36926
36968
  };
36927
36969
  var radioTabPrefix = 'radioTab';
36928
- var RadioTab = function RadioTab(props) {
36929
- var options = props.options,
36930
- classNamePrefix = props.classNamePrefix,
36931
- rounded = props.rounded,
36932
- rest = _objectWithoutProperties(props, _excluded);
36970
+ var RadioTab = function RadioTab(_ref2) {
36971
+ var options = _ref2.options,
36972
+ classNamePrefix = _ref2.classNamePrefix,
36973
+ rounded = _ref2.rounded,
36974
+ disabled = _ref2.disabled,
36975
+ _ref2$size = _ref2.size,
36976
+ size = _ref2$size === void 0 ? 'sm' : _ref2$size,
36977
+ rest = _objectWithoutProperties(_ref2, _excluded);
36933
36978
  var cnPrefix = classNamePrefix ? "".concat(classNamePrefix, "_").concat(radioTabPrefix) : radioTabPrefix;
36934
36979
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(RadioTabStyled, _extends({}, rest, {
36935
36980
  $rounded: rounded,
36981
+ size: size,
36982
+ disabled: disabled,
36936
36983
  classNamePrefix: cnPrefix,
36937
36984
  options: options.map(function (o) {
36938
36985
  return _objectSpread(_objectSpread({}, o), {}, {
36939
36986
  label: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(RadioTabLabel, _extends({}, o, {
36940
- disabled: props.disabled || o.disabled
36987
+ disabled: disabled || o.disabled
36941
36988
  }))
36942
36989
  });
36943
36990
  })
36944
36991
  }));
36945
36992
  };
36946
- RadioTab.displayName = 'RadioTab';
36947
36993
  RadioTab.propTypes = {
36948
36994
  value: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().any),
36949
36995
  onChange: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
@@ -36968,9 +37014,6 @@ RadioTab.propTypes = {
36968
37014
  })),
36969
37015
  classNamePrefix: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string)
36970
37016
  };
36971
- RadioTab.defaultProps = {
36972
- size: 'sm'
36973
- };
36974
37017
 
36975
37018
  /***/ }),
36976
37019
 
@@ -37164,16 +37207,18 @@ var Field = styled_components__WEBPACK_IMPORTED_MODULE_2___default().input.withC
37164
37207
  displayName: "Field",
37165
37208
  componentId: "sc-r60v1b-0"
37166
37209
  })(["width:100%;box-sizing:border-box;padding:0;outline:none;border:0;flex-grow:1;background:inherit;font-family:", ";font-style:normal;font-weight:", ";font-size:", ";line-height:", ";color:", ";::placeholder{color:", ";}"], _theme__WEBPACK_IMPORTED_MODULE_6__["default"].font_family.sans, _theme__WEBPACK_IMPORTED_MODULE_6__["default"].font_weight.regular, _theme__WEBPACK_IMPORTED_MODULE_6__["default"].font_size.sm, _theme__WEBPACK_IMPORTED_MODULE_6__["default"].line_height.none, _theme__WEBPACK_IMPORTED_MODULE_6__["default"].color.gray_11_50, _theme__WEBPACK_IMPORTED_MODULE_6__["default"].color.gray_8);
37167
- var InputLabel = function InputLabel(props) {
37168
- var className = props.className,
37169
- classNamePrefix = props.classNamePrefix,
37170
- id = props.id,
37171
- label = props.label,
37172
- labelIcon = props.labelIcon,
37173
- labelTooltip = props.labelTooltip,
37174
- required = props.required,
37175
- necessityIndicator = props.necessityIndicator,
37176
- variant = props.variant;
37210
+ var InputLabel = function InputLabel(_ref) {
37211
+ var className = _ref.className,
37212
+ classNamePrefix = _ref.classNamePrefix,
37213
+ id = _ref.id,
37214
+ label = _ref.label,
37215
+ labelIcon = _ref.labelIcon,
37216
+ labelTooltip = _ref.labelTooltip,
37217
+ required = _ref.required,
37218
+ _ref$necessityIndicat = _ref.necessityIndicator,
37219
+ necessityIndicator = _ref$necessityIndicat === void 0 ? 'asterisk' : _ref$necessityIndicat,
37220
+ _ref$variant = _ref.variant,
37221
+ variant = _ref$variant === void 0 ? 'sm' : _ref$variant;
37177
37222
  var t = (0,_translation__WEBPACK_IMPORTED_MODULE_8__.useReactTranslate)();
37178
37223
  if (!label) return null;
37179
37224
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(LabelWrapper, {
@@ -37203,10 +37248,6 @@ var InputLabel = function InputLabel(props) {
37203
37248
  color: "gray_9"
37204
37249
  })));
37205
37250
  };
37206
- InputLabel.displayName = 'InputLabel';
37207
- InputLabel.defaultProps = {
37208
- necessityIndicator: 'asterisk'
37209
- };
37210
37251
  InputLabel.propTypes = {
37211
37252
  label: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().node),
37212
37253
  labelIcon: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
@@ -37215,9 +37256,6 @@ InputLabel.propTypes = {
37215
37256
  necessityIndicator: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['asterisk', 'text']),
37216
37257
  variant: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['sm', 'lg'])
37217
37258
  };
37218
- InputLabel.defaultProps = {
37219
- variant: 'sm'
37220
- };
37221
37259
  var LabelWrapper = styled_components__WEBPACK_IMPORTED_MODULE_2___default().div.withConfig({
37222
37260
  displayName: "LabelWrapper",
37223
37261
  componentId: "sc-r60v1b-1"
@@ -37260,7 +37298,8 @@ var InputWrapper = styled_components__WEBPACK_IMPORTED_MODULE_2___default().div.
37260
37298
  displayName: "InputWrapper",
37261
37299
  componentId: "sc-r60v1b-7"
37262
37300
  })(["position:relative;width:100%;border:1px solid;border-radius:4px;box-sizing:border-box;font-family:", ";padding:", "px ", "px;overflow:auto;display:flex;gap:8px;align-items:", ";border-left-width:1px;border-right-width:1px;border-top-left-radius:", ";border-bottom-left-radius:", ";border-top-right-radius:", ";border-bottom-right-radius:", ";", " ", ""], _theme__WEBPACK_IMPORTED_MODULE_6__["default"].font_family.sans, inputVerticalPadding, inputHorizontalPadding, function (props) {
37263
- return props.$verticalAlign;
37301
+ var _props$$verticalAlign;
37302
+ return (_props$$verticalAlign = props.$verticalAlign) !== null && _props$$verticalAlign !== void 0 ? _props$$verticalAlign : 'normal';
37264
37303
  }, function (props) {
37265
37304
  return props.$leftOuterContent ? '0' : '4px';
37266
37305
  }, function (props) {
@@ -37289,10 +37328,6 @@ var InputWrapper = styled_components__WEBPACK_IMPORTED_MODULE_2___default().div.
37289
37328
  }
37290
37329
  return (0,styled_components__WEBPACK_IMPORTED_MODULE_2__.css)(["cursor:", ";background-color:", ";border-color:", ";color:", ";box-shadow:", ";"], cursor, backgroundColor, borderColor, color, boxShadow);
37291
37330
  });
37292
- InputWrapper.displayName = 'InputWrapper';
37293
- InputWrapper.defaultProps = {
37294
- $verticalAlign: 'normal'
37295
- };
37296
37331
  var HelperText = function HelperText(props) {
37297
37332
  var children = props.children,
37298
37333
  invalid = props.invalid;
@@ -37776,7 +37811,7 @@ __webpack_require__.r(__webpack_exports__);
37776
37811
 
37777
37812
  /*jslint node:true, react:true*/
37778
37813
  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); }
37779
- var _excluded = ["className", "size", "label", "labelIcon", "labelTooltip", "required", "necessityIndicator", "disabled", "buttonText", "onButtonClick", "invalid", "helperText", "placeholder", "value", "onFocus", "onBlur", "onValidate", "onRemoveItem", "onChange", "maxItems", "itemRenderer", "isItemDisabled", "defaultInputValue", "defaultValue"];
37814
+ var _excluded = ["id", "className", "size", "label", "labelIcon", "labelTooltip", "required", "necessityIndicator", "disabled", "buttonText", "onButtonClick", "invalid", "helperText", "placeholder", "value", "onFocus", "onBlur", "onValidate", "onRemoveItem", "onChange", "maxItems", "itemRenderer", "isItemDisabled", "defaultInputValue", "defaultValue"];
37780
37815
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
37781
37816
  function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator["return"] && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, "catch": function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; }
37782
37817
  function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
@@ -37801,32 +37836,34 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
37801
37836
 
37802
37837
 
37803
37838
 
37804
- var TextboxList = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().forwardRef(function (props, ref) {
37805
- var className = props.className,
37806
- size = props.size,
37807
- label = props.label,
37808
- labelIcon = props.labelIcon,
37809
- labelTooltip = props.labelTooltip,
37810
- required = props.required,
37811
- necessityIndicator = props.necessityIndicator,
37812
- disabled = props.disabled,
37813
- buttonText = props.buttonText,
37814
- onButtonClick = props.onButtonClick,
37815
- invalid = props.invalid,
37816
- helperText = props.helperText,
37817
- placeholder = props.placeholder,
37818
- value = props.value,
37819
- onFocus = props.onFocus,
37820
- onBlur = props.onBlur,
37821
- onValidate = props.onValidate,
37822
- onRemoveItem = props.onRemoveItem,
37823
- onChange = props.onChange,
37824
- maxItems = props.maxItems,
37825
- itemRenderer = props.itemRenderer,
37826
- isItemDisabled = props.isItemDisabled,
37827
- defaultInputValue = props.defaultInputValue,
37828
- defaultValue = props.defaultValue,
37829
- rest = _objectWithoutProperties(props, _excluded);
37839
+ var TextboxList = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().forwardRef(function (_ref, ref) {
37840
+ var id = _ref.id,
37841
+ className = _ref.className,
37842
+ size = _ref.size,
37843
+ label = _ref.label,
37844
+ labelIcon = _ref.labelIcon,
37845
+ labelTooltip = _ref.labelTooltip,
37846
+ required = _ref.required,
37847
+ necessityIndicator = _ref.necessityIndicator,
37848
+ disabled = _ref.disabled,
37849
+ _ref$buttonText = _ref.buttonText,
37850
+ buttonText = _ref$buttonText === void 0 ? 'Add' : _ref$buttonText,
37851
+ onButtonClick = _ref.onButtonClick,
37852
+ invalid = _ref.invalid,
37853
+ helperText = _ref.helperText,
37854
+ placeholder = _ref.placeholder,
37855
+ value = _ref.value,
37856
+ onFocus = _ref.onFocus,
37857
+ onBlur = _ref.onBlur,
37858
+ onValidate = _ref.onValidate,
37859
+ onRemoveItem = _ref.onRemoveItem,
37860
+ onChange = _ref.onChange,
37861
+ maxItems = _ref.maxItems,
37862
+ itemRenderer = _ref.itemRenderer,
37863
+ isItemDisabled = _ref.isItemDisabled,
37864
+ defaultInputValue = _ref.defaultInputValue,
37865
+ defaultValue = _ref.defaultValue,
37866
+ rest = _objectWithoutProperties(_ref, _excluded);
37830
37867
  var _useState = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(''),
37831
37868
  _useState2 = _slicedToArray(_useState, 2),
37832
37869
  inputValue = _useState2[0],
@@ -37887,9 +37924,7 @@ var TextboxList = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().forw
37887
37924
  onBlur === null || onBlur === void 0 || onBlur(evt);
37888
37925
  }, [onBlur, addItem]);
37889
37926
  var onInputKeyDown = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(function (evt) {
37890
- if (evt.key === 'Enter') {
37891
- addItem(false);
37892
- }
37927
+ if (evt.key === 'Enter') addItem(false);
37893
37928
  }, [addItem]);
37894
37929
  var _onRemoveItem = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(function (val) {
37895
37930
  void _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
@@ -37923,9 +37958,10 @@ var TextboxList = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().forw
37923
37958
  }, _callee2);
37924
37959
  }))();
37925
37960
  }, [value, onRemoveItem, onChange]);
37926
- var labelId = (0,_hooks__WEBPACK_IMPORTED_MODULE_2__.useLabelId)(props.id);
37961
+ var labelId = (0,_hooks__WEBPACK_IMPORTED_MODULE_2__.useLabelId)(id);
37927
37962
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_layout__WEBPACK_IMPORTED_MODULE_3__.Flex, _extends({
37928
37963
  ref: ref,
37964
+ id: id,
37929
37965
  "data-testid": "textbox-list",
37930
37966
  className: className
37931
37967
  }, (0,_util__WEBPACK_IMPORTED_MODULE_4__.getCommonProps)(rest), {
@@ -37970,9 +38006,6 @@ var TextboxList = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().forw
37970
38006
  }, helperText !== null && helperText !== void 0 ? helperText : error));
37971
38007
  });
37972
38008
  TextboxList.displayName = 'TextboxList';
37973
- TextboxList.defaultProps = {
37974
- buttonText: 'Add'
37975
- };
37976
38009
  TextboxList.propTypes = {
37977
38010
  disabled: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().bool),
37978
38011
  required: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().bool),
@@ -38037,19 +38070,23 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
38037
38070
 
38038
38071
 
38039
38072
 
38040
- var Toggle = function Toggle(props) {
38041
- var id = props.id,
38042
- value = props.value,
38043
- label = props.label,
38044
- disabled = props.disabled,
38045
- size = props.size,
38046
- onChange = props.onChange,
38047
- rest = _objectWithoutProperties(props, _excluded);
38073
+ var Toggle = function Toggle(_ref) {
38074
+ var id = _ref.id,
38075
+ value = _ref.value,
38076
+ label = _ref.label,
38077
+ disabled = _ref.disabled,
38078
+ _ref$size = _ref.size,
38079
+ size = _ref$size === void 0 ? 'sm' : _ref$size,
38080
+ onChange = _ref.onChange,
38081
+ rest = _objectWithoutProperties(_ref, _excluded);
38048
38082
  var handleChange = (0,react__WEBPACK_IMPORTED_MODULE_1__.useCallback)(function (evt) {
38049
38083
  var checked = evt.target.checked;
38050
38084
  onChange === null || onChange === void 0 || onChange(checked, evt);
38051
38085
  }, [onChange]);
38052
- var color = getLabelColor(props);
38086
+ var color = getLabelColor({
38087
+ disabled: disabled,
38088
+ value: value
38089
+ });
38053
38090
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(ToggleLabel, _extends({}, (0,_util__WEBPACK_IMPORTED_MODULE_5__.getCommonProps)(rest), {
38054
38091
  $size: size
38055
38092
  }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(ToggleInput, {
@@ -38065,10 +38102,6 @@ var Toggle = function Toggle(props) {
38065
38102
  no_wrap: true
38066
38103
  }, label));
38067
38104
  };
38068
- Toggle.displayName = 'Toggle';
38069
- Toggle.defaultProps = {
38070
- size: 'sm'
38071
- };
38072
38105
  Toggle.propTypes = {
38073
38106
  value: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
38074
38107
  label: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
@@ -38253,18 +38286,19 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
38253
38286
 
38254
38287
 
38255
38288
 
38256
- var Flex = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().forwardRef(function (props, ref) {
38257
- var inline = props.inline,
38258
- align_items = props.align_items,
38259
- align_content = props.align_content,
38260
- justify_items = props.justify_items,
38261
- justify_content = props.justify_content,
38262
- flex_wrap = props.flex_wrap,
38263
- flex_direction = props.flex_direction,
38264
- gap = props.gap,
38265
- row_gap = props.row_gap,
38266
- column_gap = props.column_gap,
38267
- rest = _objectWithoutProperties(props, _excluded);
38289
+ var Flex = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().forwardRef(function (_ref, ref) {
38290
+ var inline = _ref.inline,
38291
+ align_items = _ref.align_items,
38292
+ align_content = _ref.align_content,
38293
+ justify_items = _ref.justify_items,
38294
+ justify_content = _ref.justify_content,
38295
+ flex_wrap = _ref.flex_wrap,
38296
+ _ref$flex_direction = _ref.flex_direction,
38297
+ flex_direction = _ref$flex_direction === void 0 ? 'row' : _ref$flex_direction,
38298
+ gap = _ref.gap,
38299
+ row_gap = _ref.row_gap,
38300
+ column_gap = _ref.column_gap,
38301
+ rest = _objectWithoutProperties(_ref, _excluded);
38268
38302
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(StyledFlex, _extends({
38269
38303
  ref: ref,
38270
38304
  $inline: inline,
@@ -38280,9 +38314,6 @@ var Flex = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().forwardRef(
38280
38314
  }, rest));
38281
38315
  });
38282
38316
  Flex.displayName = 'Flex';
38283
- Flex.defaultProps = {
38284
- flex_direction: 'row'
38285
- };
38286
38317
  Flex.propTypes = {
38287
38318
  inline: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().bool),
38288
38319
  align_items: prop_types__WEBPACK_IMPORTED_MODULE_2___default().oneOf(['stretch', 'flex-start', 'flex-end', 'center', 'baseline', 'start', 'end', 'self-start', 'self-end']),
@@ -38372,33 +38403,31 @@ __webpack_require__.r(__webpack_exports__);
38372
38403
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
38373
38404
  /* harmony export */ Link: () => (/* binding */ Link)
38374
38405
  /* harmony export */ });
38375
- /* harmony import */ var lodash_omit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/omit */ "./node_modules/lodash/omit.js");
38376
- /* harmony import */ var lodash_omit__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_omit__WEBPACK_IMPORTED_MODULE_0__);
38377
- /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "prop-types");
38378
- /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
38379
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ "react");
38380
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);
38381
- /* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! styled-components */ "styled-components");
38382
- /* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(styled_components__WEBPACK_IMPORTED_MODULE_3__);
38383
- /* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../icon */ "./src/icon.js");
38384
- /* harmony import */ var _theme__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../theme */ "./src/theme.js");
38385
- /* harmony import */ var _typography__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../typography */ "./src/typography/index.js");
38386
- /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../utils */ "./src/utils.js");
38406
+ /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! prop-types */ "prop-types");
38407
+ /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_0__);
38408
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
38409
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
38410
+ /* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! styled-components */ "styled-components");
38411
+ /* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(styled_components__WEBPACK_IMPORTED_MODULE_2__);
38412
+ /* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../icon */ "./src/icon.js");
38413
+ /* harmony import */ var _theme__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../theme */ "./src/theme.js");
38414
+ /* harmony import */ var _typography__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../typography */ "./src/typography/index.js");
38415
+ /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../utils */ "./src/utils.js");
38387
38416
  // LICENSE_CODE ZON
38388
38417
 
38389
38418
 
38390
38419
  /*jslint react:true*/
38391
-
38392
- var _excluded = ["isLeft", "isRight"];
38393
38420
  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); }
38394
- function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
38395
- function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } } return target; }
38421
+ var _excluded = ["text", "variant", "size", "underline", "icon", "iconPlacement", "as", "href", "target", "rel", "newTab"],
38422
+ _excluded2 = ["isLeft", "isRight"];
38396
38423
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
38397
38424
  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; }
38398
38425
  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; }
38399
38426
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
38400
38427
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
38401
38428
  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); }
38429
+ function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
38430
+ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } } return target; }
38402
38431
 
38403
38432
 
38404
38433
 
@@ -38406,24 +38435,44 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
38406
38435
 
38407
38436
 
38408
38437
 
38409
- var _theme$color = _theme__WEBPACK_IMPORTED_MODULE_5__["default"].color,
38438
+ var _theme$color = _theme__WEBPACK_IMPORTED_MODULE_4__["default"].color,
38410
38439
  blue_10 = _theme$color.blue_10,
38411
38440
  blue_11 = _theme$color.blue_11,
38412
38441
  gray_11_50 = _theme$color.gray_11_50;
38413
- var knownProps = ['text', 'variant', 'size', 'underline', 'icon', 'iconPlacement', 'newTab'];
38414
- var Link = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().forwardRef(function (props, ref) {
38415
- var text = props.text,
38416
- variant = props.variant,
38417
- size = props.size,
38418
- underline = props.underline;
38419
- var linkProps = _objectSpread(_objectSpread({}, lodash_omit__WEBPACK_IMPORTED_MODULE_0___default()(props, knownProps)), getLinkProps(props));
38420
- if (variant == 'inline') return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(InlineLink, _extends({
38442
+ var Link = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forwardRef(function (_ref, ref) {
38443
+ var text = _ref.text,
38444
+ _ref$variant = _ref.variant,
38445
+ variant = _ref$variant === void 0 ? 'primary' : _ref$variant,
38446
+ _ref$size = _ref.size,
38447
+ size = _ref$size === void 0 ? 'md' : _ref$size,
38448
+ underline = _ref.underline,
38449
+ icon = _ref.icon,
38450
+ _ref$iconPlacement = _ref.iconPlacement,
38451
+ iconPlacement = _ref$iconPlacement === void 0 ? 'left' : _ref$iconPlacement,
38452
+ as = _ref.as,
38453
+ href = _ref.href,
38454
+ target = _ref.target,
38455
+ rel = _ref.rel,
38456
+ newTab = _ref.newTab,
38457
+ rest = _objectWithoutProperties(_ref, _excluded);
38458
+ var linkProps = _objectSpread(_objectSpread({}, rest), getLinkProps({
38459
+ as: as,
38460
+ href: href,
38461
+ target: target,
38462
+ rel: rel,
38463
+ newTab: newTab
38464
+ }));
38465
+ if (variant == 'inline') return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(InlineLink, _extends({
38421
38466
  ref: ref
38422
38467
  }, linkProps), text);
38423
- var _getIconProps = (0,_utils__WEBPACK_IMPORTED_MODULE_7__.getIconProps)('Link', props),
38468
+ var _getIconProps = (0,_utils__WEBPACK_IMPORTED_MODULE_6__.getIconProps)('Link', {
38469
+ size: size,
38470
+ icon: icon,
38471
+ iconPlacement: iconPlacement
38472
+ }),
38424
38473
  isLeft = _getIconProps.isLeft,
38425
38474
  isRight = _getIconProps.isRight,
38426
- iconProps = _objectWithoutProperties(_getIconProps, _excluded);
38475
+ iconProps = _objectWithoutProperties(_getIconProps, _excluded2);
38427
38476
  var labelProps = {
38428
38477
  variant: {
38429
38478
  lg: 'lg',
@@ -38433,29 +38482,24 @@ var Link = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().forwardRef(
38433
38482
  no_wrap: true,
38434
38483
  'data-label': true
38435
38484
  };
38436
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(StyledLink, _extends({
38485
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(StyledLink, _extends({
38437
38486
  ref: ref
38438
38487
  }, linkProps, {
38439
38488
  $variant: variant,
38440
38489
  $underline: underline,
38441
38490
  $size: size
38442
- }), isLeft && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_icon__WEBPACK_IMPORTED_MODULE_4__.Icon, iconProps), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_6__.Label, labelProps), isRight && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_icon__WEBPACK_IMPORTED_MODULE_4__.Icon, iconProps));
38491
+ }), isLeft && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_icon__WEBPACK_IMPORTED_MODULE_3__.Icon, iconProps), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_5__.Label, labelProps), isRight && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_icon__WEBPACK_IMPORTED_MODULE_3__.Icon, iconProps));
38443
38492
  });
38444
38493
  Link.displayName = 'Link';
38445
- Link.defaultProps = {
38446
- variant: 'primary',
38447
- size: 'md',
38448
- iconPlacement: 'left'
38449
- };
38450
38494
  Link.propTypes = {
38451
- text: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().node).isRequired,
38452
- variant: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOf(['primary', 'secondary', 'inline']),
38453
- size: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOf(['sm', 'md', 'lg']),
38454
- icon: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOf(_utils__WEBPACK_IMPORTED_MODULE_7__.iconNames),
38455
- iconPlacement: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOf(['left', 'right']),
38456
- href: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().string),
38457
- newTab: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().bool),
38458
- underline: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().bool)
38495
+ text: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().node).isRequired,
38496
+ variant: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['primary', 'secondary', 'inline']),
38497
+ size: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['sm', 'md', 'lg']),
38498
+ icon: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(_utils__WEBPACK_IMPORTED_MODULE_6__.iconNames),
38499
+ iconPlacement: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['left', 'right']),
38500
+ href: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
38501
+ newTab: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
38502
+ underline: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool)
38459
38503
  };
38460
38504
  var getLinkProps = function getLinkProps(opt) {
38461
38505
  var as = opt.as,
@@ -38475,11 +38519,11 @@ var getLinkProps = function getLinkProps(opt) {
38475
38519
  });
38476
38520
  return p;
38477
38521
  };
38478
- var StyledLink = styled_components__WEBPACK_IMPORTED_MODULE_3___default().a.withConfig({
38522
+ var StyledLink = styled_components__WEBPACK_IMPORTED_MODULE_2___default().a.withConfig({
38479
38523
  displayName: "StyledLink",
38480
38524
  componentId: "sc-1ilmd36-0"
38481
38525
  })(["display:inline-flex;align-items:center;justify-content:center;text-decoration:none;background:0 none;border:0 none;padding:0;gap:", ";color:", ";[data-label]{text-decoration:", ";}cursor:pointer;&:disabled{cursor:not-allowed;}&:hover:not(:disabled){color:", ";[data-label]{text-decoration:", ";}}&:hover,:visited,:focus{text-decoration:none;}"], function (props) {
38482
- return (0,_utils__WEBPACK_IMPORTED_MODULE_7__.toPixel)(props.$size == 'lg' ? 8 : 4);
38526
+ return (0,_utils__WEBPACK_IMPORTED_MODULE_6__.toPixel)(props.$size == 'lg' ? 8 : 4);
38483
38527
  }, function (props) {
38484
38528
  return props.$variant == 'primary' ? blue_11 : gray_11_50;
38485
38529
  }, function (props) {
@@ -38489,7 +38533,7 @@ var StyledLink = styled_components__WEBPACK_IMPORTED_MODULE_3___default().a.with
38489
38533
  }, function (props) {
38490
38534
  return props.$underline || props.$variant == 'primary' ? 'underline' : 'none';
38491
38535
  });
38492
- var InlineLink = styled_components__WEBPACK_IMPORTED_MODULE_3___default().a.withConfig({
38536
+ var InlineLink = styled_components__WEBPACK_IMPORTED_MODULE_2___default().a.withConfig({
38493
38537
  displayName: "InlineLink",
38494
38538
  componentId: "sc-1ilmd36-1"
38495
38539
  })(["justify-content:center;text-decoration:underline;background:0 none;border:0 none;padding:0;cursor:pointer;&:disabled{cursor:not-allowed;}&:hover,:visited,:focus{text-decoration:underline;}"]);
@@ -38547,11 +38591,12 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
38547
38591
 
38548
38592
 
38549
38593
 
38550
- var Menu = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forwardRef(function (props, ref) {
38551
- var items = props.items,
38552
- size = props.size,
38553
- noShadow = props.noShadow,
38554
- rest = _objectWithoutProperties(props, _excluded);
38594
+ var Menu = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forwardRef(function (_ref, ref) {
38595
+ var items = _ref.items,
38596
+ _ref$size = _ref.size,
38597
+ size = _ref$size === void 0 ? 'md' : _ref$size,
38598
+ noShadow = _ref.noShadow,
38599
+ rest = _objectWithoutProperties(_ref, _excluded);
38555
38600
  if (!items || !items.length) return null;
38556
38601
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_shared__WEBPACK_IMPORTED_MODULE_2__.MenuContainer, _extends({
38557
38602
  ref: ref
@@ -38569,9 +38614,6 @@ var Menu = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forwardRef(
38569
38614
  }));
38570
38615
  });
38571
38616
  Menu.displayName = 'Menu';
38572
- Menu.defaultProps = {
38573
- size: 'md'
38574
- };
38575
38617
  Menu.propTypes = {
38576
38618
  size: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['sm', 'md', 'lg']),
38577
38619
  items: prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().any)).isRequired
@@ -38613,7 +38655,7 @@ __webpack_require__.r(__webpack_exports__);
38613
38655
 
38614
38656
  /*jslint react:true*/
38615
38657
 
38616
- var _excluded = ["type", "text", "secondaryText", "tertiaryText", "description", "size", "children", "variant", "tag", "disabled", "selected", "subMenu", "tooltip", "isFirstItem"],
38658
+ var _excluded = ["type", "text", "secondaryText", "tertiaryText", "description", "size", "children", "variant", "tag", "disabled", "selected", "subMenu", "tooltip", "isFirstItem", "icon", "iconPlacement"],
38617
38659
  _excluded2 = ["isLeft"],
38618
38660
  _excluded3 = ["subItems", "children"],
38619
38661
  _excluded4 = ["popover", "onClick"];
@@ -38633,22 +38675,27 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
38633
38675
 
38634
38676
 
38635
38677
 
38636
- var MenuItem = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_2__.forwardRef)(function (props, ref) {
38637
- var type = props.type,
38638
- text = props.text,
38639
- secondaryText = props.secondaryText,
38640
- tertiaryText = props.tertiaryText,
38641
- description = props.description,
38642
- size = props.size,
38643
- children = props.children,
38644
- variant = props.variant,
38645
- tag = props.tag,
38646
- disabled = props.disabled,
38647
- selected = props.selected,
38648
- subMenu = props.subMenu,
38649
- tooltip = props.tooltip,
38650
- isFirstItem = props.isFirstItem,
38651
- rest = _objectWithoutProperties(props, _excluded);
38678
+ var MenuItem = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_2__.forwardRef)(function (_ref, ref) {
38679
+ var _ref$type = _ref.type,
38680
+ type = _ref$type === void 0 ? 'item' : _ref$type,
38681
+ text = _ref.text,
38682
+ secondaryText = _ref.secondaryText,
38683
+ tertiaryText = _ref.tertiaryText,
38684
+ description = _ref.description,
38685
+ _ref$size = _ref.size,
38686
+ size = _ref$size === void 0 ? 'md' : _ref$size,
38687
+ children = _ref.children,
38688
+ _ref$variant = _ref.variant,
38689
+ variant = _ref$variant === void 0 ? 'default' : _ref$variant,
38690
+ tag = _ref.tag,
38691
+ disabled = _ref.disabled,
38692
+ selected = _ref.selected,
38693
+ subMenu = _ref.subMenu,
38694
+ tooltip = _ref.tooltip,
38695
+ isFirstItem = _ref.isFirstItem,
38696
+ icon = _ref.icon,
38697
+ iconPlacement = _ref.iconPlacement,
38698
+ rest = _objectWithoutProperties(_ref, _excluded);
38652
38699
  if (type == 'divider') return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_menu_item_divider__WEBPACK_IMPORTED_MODULE_11__["default"], {
38653
38700
  ref: ref
38654
38701
  });
@@ -38663,7 +38710,11 @@ var MenuItem = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_2__.forwardRef)(fu
38663
38710
  isFirstItem: isFirstItem
38664
38711
  }, rest), subItems);
38665
38712
  }
38666
- var _getIconProps = (0,_utils__WEBPACK_IMPORTED_MODULE_9__.getIconProps)('MenuItem', props),
38713
+ var _getIconProps = (0,_utils__WEBPACK_IMPORTED_MODULE_9__.getIconProps)('MenuItem', {
38714
+ size: size,
38715
+ icon: icon,
38716
+ iconPlacement: iconPlacement
38717
+ }),
38667
38718
  isLeft = _getIconProps.isLeft,
38668
38719
  iconProps = _objectWithoutProperties(_getIconProps, _excluded2);
38669
38720
  var iconColor = disabled ? 'gray_6' : variant == 'negative' ? 'red_10' : 'gray_9';
@@ -38675,7 +38726,7 @@ var MenuItem = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_2__.forwardRef)(fu
38675
38726
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_tooltip__WEBPACK_IMPORTED_MODULE_7__.Tooltip, {
38676
38727
  tooltip: tooltip,
38677
38728
  noWrap: true
38678
- }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(MenuItemComp, _extends({}, lodash_omit__WEBPACK_IMPORTED_MODULE_0___default()(rest, 'icon', 'iconPlacement'), {
38729
+ }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(MenuItemComp, _extends({}, rest, {
38679
38730
  "aria-disabled": disabled ? true : undefined,
38680
38731
  size: size,
38681
38732
  role: "button",
@@ -38696,11 +38747,6 @@ var MenuItem = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_2__.forwardRef)(fu
38696
38747
  }))));
38697
38748
  });
38698
38749
  MenuItem.displayName = 'MenuItem';
38699
- MenuItem.defaultProps = {
38700
- type: 'item',
38701
- size: 'md',
38702
- variant: 'default'
38703
- };
38704
38750
  MenuItem.propTypes = {
38705
38751
  text: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().node),
38706
38752
  secondaryText: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().node),
@@ -38905,11 +38951,11 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
38905
38951
 
38906
38952
 
38907
38953
 
38908
- var MenuItemGroup = function MenuItemGroup(props) {
38909
- var text = props.text,
38910
- children = props.children,
38911
- isFirstItem = props.isFirstItem,
38912
- rest = _objectWithoutProperties(props, _excluded);
38954
+ var MenuItemGroup = function MenuItemGroup(_ref) {
38955
+ var text = _ref.text,
38956
+ children = _ref.children,
38957
+ isFirstItem = _ref.isFirstItem,
38958
+ rest = _objectWithoutProperties(_ref, _excluded);
38913
38959
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement((react__WEBPACK_IMPORTED_MODULE_0___default().Fragment), null, !isFirstItem && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_menu_item_divider__WEBPACK_IMPORTED_MODULE_3__["default"], null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_shared__WEBPACK_IMPORTED_MODULE_4__.MenuItemContainer, _extends({
38914
38960
  role: "presentation"
38915
38961
  }, rest), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(GroupTitle, {
@@ -38922,7 +38968,6 @@ var MenuItemGroup = function MenuItemGroup(props) {
38922
38968
  role: "group"
38923
38969
  }, children)));
38924
38970
  };
38925
- MenuItemGroup.displayName = 'MenuItemGroup';
38926
38971
  var GroupTitle = styled_components__WEBPACK_IMPORTED_MODULE_1___default()(_typography__WEBPACK_IMPORTED_MODULE_2__.Label).withConfig({
38927
38972
  displayName: "GroupTitle",
38928
38973
  componentId: "sc-q9wnng-0"
@@ -39034,18 +39079,20 @@ var StyledFooterWrapper = styled_components__WEBPACK_IMPORTED_MODULE_2___default
39034
39079
  displayName: "StyledFooterWrapper",
39035
39080
  componentId: "sc-1nggvo0-3"
39036
39081
  })([""]);
39037
- var ModalBase = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_1__.forwardRef)(function (props, ref) {
39038
- var className = props.className,
39039
- header = props.header,
39040
- content = props.content,
39041
- footer = props.footer,
39042
- size = props.size,
39043
- shadow = props.shadow,
39044
- _props$borders = props.borders,
39045
- borders = _props$borders === void 0 ? {
39082
+ var ModalBase = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_1__.forwardRef)(function (_ref, ref) {
39083
+ var className = _ref.className,
39084
+ header = _ref.header,
39085
+ content = _ref.content,
39086
+ footer = _ref.footer,
39087
+ _ref$size = _ref.size,
39088
+ size = _ref$size === void 0 ? 'md' : _ref$size,
39089
+ _ref$shadow = _ref.shadow,
39090
+ shadow = _ref$shadow === void 0 ? 'md' : _ref$shadow,
39091
+ _ref$borders = _ref.borders,
39092
+ borders = _ref$borders === void 0 ? {
39046
39093
  bottom: true
39047
- } : _props$borders,
39048
- rest = _objectWithoutProperties(props, _excluded);
39094
+ } : _ref$borders,
39095
+ rest = _objectWithoutProperties(_ref, _excluded);
39049
39096
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(StyledWrapper, _extends({
39050
39097
  ref: ref,
39051
39098
  className: className
@@ -39075,10 +39122,6 @@ ModalBase.propTypes = {
39075
39122
  content: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().node),
39076
39123
  footer: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().node)
39077
39124
  };
39078
- ModalBase.defaultProps = {
39079
- size: 'md',
39080
- shadow: 'md'
39081
- };
39082
39125
 
39083
39126
  /***/ }),
39084
39127
 
@@ -39296,8 +39339,10 @@ ModalHeader.propTypes = {
39296
39339
  cancelDisabled: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool)
39297
39340
  };
39298
39341
  var ModalFooter = function ModalFooter(_ref3) {
39299
- var okLabel = _ref3.okLabel,
39300
- cancelLabel = _ref3.cancelLabel,
39342
+ var _ref3$okLabel = _ref3.okLabel,
39343
+ okLabel = _ref3$okLabel === void 0 ? 'OK' : _ref3$okLabel,
39344
+ _ref3$cancelLabel = _ref3.cancelLabel,
39345
+ cancelLabel = _ref3$cancelLabel === void 0 ? 'Cancel' : _ref3$cancelLabel,
39301
39346
  onOk = _ref3.onOk,
39302
39347
  onCancel = _ref3.onCancel,
39303
39348
  okDisabled = _ref3.okDisabled,
@@ -39327,10 +39372,6 @@ ModalFooter.propTypes = {
39327
39372
  okDisabled: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
39328
39373
  cancelDisabled: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool)
39329
39374
  };
39330
- ModalFooter.defaultProps = {
39331
- okLabel: 'OK',
39332
- cancelLabel: 'Cancel'
39333
- };
39334
39375
 
39335
39376
  /***/ }),
39336
39377
 
@@ -39678,14 +39719,16 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
39678
39719
 
39679
39720
 
39680
39721
  var color = _theme__WEBPACK_IMPORTED_MODULE_4__["default"].color;
39681
- var Snackbar = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forwardRef(function (props, ref) {
39682
- var variant = props.variant,
39683
- type = props.type,
39684
- showIcon = props.showIcon,
39685
- header = props.header,
39686
- children = props.children,
39687
- action = props.action,
39688
- rest = _objectWithoutProperties(props, _excluded);
39722
+ var Snackbar = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forwardRef(function (_ref, ref) {
39723
+ var _ref$variant = _ref.variant,
39724
+ variant = _ref$variant === void 0 ? 'vertical' : _ref$variant,
39725
+ _ref$type = _ref.type,
39726
+ type = _ref$type === void 0 ? 'info' : _ref$type,
39727
+ showIcon = _ref.showIcon,
39728
+ header = _ref.header,
39729
+ children = _ref.children,
39730
+ action = _ref.action,
39731
+ rest = _objectWithoutProperties(_ref, _excluded);
39689
39732
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(Wrapper, _extends({
39690
39733
  ref: ref,
39691
39734
  $type: type
@@ -39698,10 +39741,6 @@ var Snackbar = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forward
39698
39741
  }, children), !!action && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_snackbar_action__WEBPACK_IMPORTED_MODULE_5__.SnackbarAction, action)));
39699
39742
  });
39700
39743
  Snackbar.displayName = 'Snackbar';
39701
- Snackbar.defaultProps = {
39702
- variant: 'vertical',
39703
- type: 'info'
39704
- };
39705
39744
  Snackbar.propTypes = {
39706
39745
  variant: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['vertical', 'horizontal']),
39707
39746
  type: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['info', 'success', 'error', 'warning', 'generic']),
@@ -39889,12 +39928,13 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
39889
39928
 
39890
39929
 
39891
39930
 
39892
- var Group = function Group(props) {
39893
- var children = props.children,
39894
- className = props.className,
39895
- variant = props.variant,
39896
- onKeyDown = props.onKeyDown,
39897
- rest = _objectWithoutProperties(props, _excluded);
39931
+ var Group = function Group(_ref) {
39932
+ var children = _ref.children,
39933
+ className = _ref.className,
39934
+ _ref$variant = _ref.variant,
39935
+ variant = _ref$variant === void 0 ? 'main' : _ref$variant,
39936
+ onKeyDown = _ref.onKeyDown,
39937
+ rest = _objectWithoutProperties(_ref, _excluded);
39898
39938
  var ref = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_1__.createRef)(null);
39899
39939
  var handleKeyDown = (0,react__WEBPACK_IMPORTED_MODULE_1__.useCallback)(function (e) {
39900
39940
  if (e.key == 'ArrowRight' || e.key == 'ArrowLeft') {
@@ -39933,9 +39973,6 @@ var Group = function Group(props) {
39933
39973
  });
39934
39974
  }));
39935
39975
  };
39936
- Group.defaultProps = {
39937
- variant: 'main'
39938
- };
39939
39976
  Group.propTypes = {
39940
39977
  variant: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['main', 'underline', 'contain', 'vertical'])
39941
39978
  };
@@ -40007,21 +40044,26 @@ __webpack_require__.r(__webpack_exports__);
40007
40044
 
40008
40045
 
40009
40046
  /*jslint react:true*/
40047
+ var _excluded = ["className", "variant", "text", "selected", "disabled", "leftContent", "rightContent"];
40010
40048
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
40049
+ function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
40050
+ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } } return target; }
40011
40051
 
40012
40052
 
40013
40053
 
40014
40054
 
40015
40055
 
40016
40056
 
40017
- var Tab = function Tab(props) {
40018
- var className = props.className,
40019
- variant = props.variant,
40020
- text = props.text,
40021
- selected = props.selected,
40022
- disabled = props.disabled,
40023
- leftContent = props.leftContent,
40024
- rightContent = props.rightContent;
40057
+ var Tab = function Tab(_ref) {
40058
+ var className = _ref.className,
40059
+ _ref$variant = _ref.variant,
40060
+ variant = _ref$variant === void 0 ? 'main' : _ref$variant,
40061
+ text = _ref.text,
40062
+ selected = _ref.selected,
40063
+ disabled = _ref.disabled,
40064
+ leftContent = _ref.leftContent,
40065
+ rightContent = _ref.rightContent,
40066
+ rest = _objectWithoutProperties(_ref, _excluded);
40025
40067
  var Wrap = variant == 'vertical' ? Left : react__WEBPACK_IMPORTED_MODULE_1__.Fragment;
40026
40068
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(TabContainer, _extends({
40027
40069
  role: "tab",
@@ -40031,13 +40073,10 @@ var Tab = function Tab(props) {
40031
40073
  tabIndex: selected ? 0 : -1,
40032
40074
  "aria-disabled": disabled ? 'true' : undefined,
40033
40075
  disabled: !!disabled
40034
- }, (0,_util__WEBPACK_IMPORTED_MODULE_5__.getCommonProps)(props)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(Wrap, null, leftContent, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(Text, {
40076
+ }, (0,_util__WEBPACK_IMPORTED_MODULE_5__.getCommonProps)(rest)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(Wrap, null, leftContent, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(Text, {
40035
40077
  $variant: variant
40036
40078
  }, text)), rightContent);
40037
40079
  };
40038
- Tab.defaultProps = {
40039
- variant: 'main'
40040
- };
40041
40080
  Tab.propTypes = {
40042
40081
  variant: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['main', 'underline', 'contain', 'vertical']),
40043
40082
  text: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().node).isRequired,
@@ -40094,35 +40133,32 @@ var Text = styled_components__WEBPACK_IMPORTED_MODULE_2___default()(_typography_
40094
40133
  "use strict";
40095
40134
  __webpack_require__.r(__webpack_exports__);
40096
40135
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
40097
- /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__),
40136
+ /* harmony export */ Provider: () => (/* binding */ Provider),
40098
40137
  /* harmony export */ defaultContextValue: () => (/* binding */ defaultContextValue),
40099
40138
  /* harmony export */ useTableContext: () => (/* binding */ useTableContext)
40100
40139
  /* harmony export */ });
40101
- /* harmony import */ var lodash_omit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/omit */ "./node_modules/lodash/omit.js");
40102
- /* harmony import */ var lodash_omit__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_omit__WEBPACK_IMPORTED_MODULE_0__);
40103
- /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "prop-types");
40104
- /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
40105
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ "react");
40106
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);
40107
- /* harmony import */ var react_table__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react-table */ "react-table");
40108
- /* harmony import */ var react_table__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react_table__WEBPACK_IMPORTED_MODULE_3__);
40109
- /* harmony import */ var _layout__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../layout */ "./src/layout/index.js");
40110
- /* harmony import */ var _theme__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../theme */ "./src/theme.js");
40111
- /* harmony import */ var _typography__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../typography */ "./src/typography/index.js");
40112
- /* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../util */ "./src/util/index.js");
40113
- /* harmony import */ var _editable_columns__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./editable_columns */ "./src/table/editable_columns.js");
40114
- /* harmony import */ var _pinned_columns__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./pinned_columns */ "./src/table/pinned_columns.js");
40115
- /* harmony import */ var _expandable_rows__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./expandable_rows */ "./src/table/expandable_rows.js");
40116
- /* harmony import */ var _select_rows__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./select_rows */ "./src/table/select_rows.js");
40117
- /* harmony import */ var _row_menu__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./row_menu */ "./src/table/row_menu.js");
40118
- /* harmony import */ var _order_logic__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./order_logic */ "./src/table/order_logic.js");
40140
+ /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! prop-types */ "prop-types");
40141
+ /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_0__);
40142
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
40143
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
40144
+ /* harmony import */ var react_table__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react-table */ "react-table");
40145
+ /* harmony import */ var react_table__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react_table__WEBPACK_IMPORTED_MODULE_2__);
40146
+ /* harmony import */ var _layout__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../layout */ "./src/layout/index.js");
40147
+ /* harmony import */ var _theme__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../theme */ "./src/theme.js");
40148
+ /* harmony import */ var _typography__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../typography */ "./src/typography/index.js");
40149
+ /* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../util */ "./src/util/index.js");
40150
+ /* harmony import */ var _editable_columns__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./editable_columns */ "./src/table/editable_columns.js");
40151
+ /* harmony import */ var _pinned_columns__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./pinned_columns */ "./src/table/pinned_columns.js");
40152
+ /* harmony import */ var _expandable_rows__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./expandable_rows */ "./src/table/expandable_rows.js");
40153
+ /* harmony import */ var _select_rows__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./select_rows */ "./src/table/select_rows.js");
40154
+ /* harmony import */ var _row_menu__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./row_menu */ "./src/table/row_menu.js");
40155
+ /* harmony import */ var _order_logic__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./order_logic */ "./src/table/order_logic.js");
40119
40156
  // LICENSE_CODE ZON
40120
40157
 
40121
40158
 
40122
40159
  /*jslint react:true*/
40123
40160
  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); }
40124
-
40125
- var _excluded = ["columns", "data", "pageSize", "pageSizes", "children", "stateManager", "hooks", "NoDataComp", "LoadingComp", "ExpandHandleComp", "noDataText", "loadingText", "isLoading", "onPageChange", "manualPagination", "totalCount", "paginateExpandedRows", "getHeaderProps", "getColumnProps", "getRowProps", "getCellProps", "getFooterProps", "selectedRowIds", "canOrderColumns", "rowActions", "columnSort", "onColumnSortChanged", "isCellEditable", "onStartEdit", "draggableRows", "onRowDragStart", "onRowDragEnd", "hoverActions", "hoverActionsDirection", "virtualized"];
40161
+ var _excluded = ["columns", "data", "pageSize", "pageSizes", "children", "stateManager", "hooks", "NoDataComp", "LoadingComp", "ExpandHandleComp", "noDataText", "loadingText", "isLoading", "onPageChange", "manualPagination", "totalCount", "paginateExpandedRows", "getHeaderProps", "getColumnProps", "getRowProps", "getCellProps", "getFooterProps", "selectedRowIds", "canOrderColumns", "rowActions", "columnSort", "onColumnSortChanged", "isCellEditable", "onStartEdit", "draggableRows", "onRowDragStart", "onRowDragEnd", "hoverActions", "hoverActionsDirection", "virtualized", "hiddenColumns", "pinnedColumns", "columnOrder", "initialState", "expandColumnId", "fullWidth", "rowDensity"];
40126
40162
  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; }
40127
40163
  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; }
40128
40164
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
@@ -40157,94 +40193,123 @@ var assign = Object.assign;
40157
40193
  var defaultPropGetter = function defaultPropGetter() {
40158
40194
  return {};
40159
40195
  };
40196
+ var defaultIsCellEditable = function defaultIsCellEditable(_ref) {
40197
+ var column = _ref.column;
40198
+ return column.canEdit;
40199
+ };
40160
40200
  var defaultContextValue = {};
40161
- var TableContext = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createContext(defaultContextValue);
40201
+ var TableContext = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createContext(defaultContextValue);
40162
40202
  TableContext.displayName = 'TableContext';
40163
- var Cell = function Cell(props) {
40164
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_6__.Paragraph, {
40203
+ var Cell = function Cell(_ref2) {
40204
+ var value = _ref2.value;
40205
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_5__.Paragraph, {
40165
40206
  variant: "sm",
40166
40207
  color: "gray-11-50"
40167
- }, String(props.value));
40208
+ }, String(value));
40168
40209
  };
40169
- var Provider = function Provider(props) {
40210
+ var Provider = function Provider(_ref3) {
40170
40211
  var _columns$;
40171
- var defaultColumn = (0,react__WEBPACK_IMPORTED_MODULE_2__.useMemo)(function () {
40212
+ var columns = _ref3.columns,
40213
+ _ref3$data = _ref3.data,
40214
+ data = _ref3$data === void 0 ? [] : _ref3$data,
40215
+ pageSize = _ref3.pageSize,
40216
+ _ref3$pageSizes = _ref3.pageSizes,
40217
+ pageSizes = _ref3$pageSizes === void 0 ? [5, 10, 20, 30] : _ref3$pageSizes,
40218
+ children = _ref3.children,
40219
+ stateManager = _ref3.stateManager,
40220
+ _ref3$hooks = _ref3.hooks,
40221
+ hooks = _ref3$hooks === void 0 ? [] : _ref3$hooks,
40222
+ NoDataComp = _ref3.NoDataComp,
40223
+ LoadingComp = _ref3.LoadingComp,
40224
+ _ref3$ExpandHandleCom = _ref3.ExpandHandleComp,
40225
+ ExpandHandleComp = _ref3$ExpandHandleCom === void 0 ? _expandable_rows__WEBPACK_IMPORTED_MODULE_9__.ExpandHandle : _ref3$ExpandHandleCom,
40226
+ _ref3$noDataText = _ref3.noDataText,
40227
+ noDataText = _ref3$noDataText === void 0 ? 'No data' : _ref3$noDataText,
40228
+ _ref3$loadingText = _ref3.loadingText,
40229
+ loadingText = _ref3$loadingText === void 0 ? 'Loading...' : _ref3$loadingText,
40230
+ _ref3$isLoading = _ref3.isLoading,
40231
+ isLoading = _ref3$isLoading === void 0 ? false : _ref3$isLoading,
40232
+ onPageChange = _ref3.onPageChange,
40233
+ _ref3$manualPaginatio = _ref3.manualPagination,
40234
+ manualPagination = _ref3$manualPaginatio === void 0 ? false : _ref3$manualPaginatio,
40235
+ totalCount = _ref3.totalCount,
40236
+ _ref3$paginateExpande = _ref3.paginateExpandedRows,
40237
+ paginateExpandedRows = _ref3$paginateExpande === void 0 ? false : _ref3$paginateExpande,
40238
+ _ref3$getHeaderProps = _ref3.getHeaderProps,
40239
+ getHeaderProps = _ref3$getHeaderProps === void 0 ? defaultPropGetter : _ref3$getHeaderProps,
40240
+ _ref3$getColumnProps = _ref3.getColumnProps,
40241
+ getColumnProps = _ref3$getColumnProps === void 0 ? defaultPropGetter : _ref3$getColumnProps,
40242
+ _ref3$getRowProps = _ref3.getRowProps,
40243
+ getRowProps = _ref3$getRowProps === void 0 ? defaultPropGetter : _ref3$getRowProps,
40244
+ _ref3$getCellProps = _ref3.getCellProps,
40245
+ getCellProps = _ref3$getCellProps === void 0 ? defaultPropGetter : _ref3$getCellProps,
40246
+ _ref3$getFooterProps = _ref3.getFooterProps,
40247
+ getFooterProps = _ref3$getFooterProps === void 0 ? defaultPropGetter : _ref3$getFooterProps,
40248
+ selectedRowIds = _ref3.selectedRowIds,
40249
+ _ref3$canOrderColumns = _ref3.canOrderColumns,
40250
+ canOrderColumns = _ref3$canOrderColumns === void 0 ? false : _ref3$canOrderColumns,
40251
+ rowActions = _ref3.rowActions,
40252
+ _ref3$columnSort = _ref3.columnSort,
40253
+ columnSort = _ref3$columnSort === void 0 ? {} : _ref3$columnSort,
40254
+ onColumnSortChanged = _ref3.onColumnSortChanged,
40255
+ _ref3$isCellEditable = _ref3.isCellEditable,
40256
+ isCellEditable = _ref3$isCellEditable === void 0 ? defaultIsCellEditable : _ref3$isCellEditable,
40257
+ onStartEdit = _ref3.onStartEdit,
40258
+ _ref3$draggableRows = _ref3.draggableRows,
40259
+ draggableRows = _ref3$draggableRows === void 0 ? false : _ref3$draggableRows,
40260
+ onRowDragStart = _ref3.onRowDragStart,
40261
+ onRowDragEnd = _ref3.onRowDragEnd,
40262
+ hoverActions = _ref3.hoverActions,
40263
+ _ref3$hoverActionsDir = _ref3.hoverActionsDirection,
40264
+ hoverActionsDirection = _ref3$hoverActionsDir === void 0 ? 'row' : _ref3$hoverActionsDir,
40265
+ _ref3$virtualized = _ref3.virtualized,
40266
+ virtualized = _ref3$virtualized === void 0 ? false : _ref3$virtualized,
40267
+ _hiddenColumns = _ref3.hiddenColumns,
40268
+ _pinnedColumns = _ref3.pinnedColumns,
40269
+ _columnOrder = _ref3.columnOrder,
40270
+ _initialState = _ref3.initialState,
40271
+ _expandColumnId = _ref3.expandColumnId,
40272
+ fullWidth = _ref3.fullWidth,
40273
+ _ref3$rowDensity = _ref3.rowDensity,
40274
+ rowDensity = _ref3$rowDensity === void 0 ? 'busy_bee' : _ref3$rowDensity,
40275
+ rest = _objectWithoutProperties(_ref3, _excluded);
40276
+ var defaultColumn = (0,react__WEBPACK_IMPORTED_MODULE_1__.useMemo)(function () {
40172
40277
  return {
40173
40278
  minWidth: 100,
40174
40279
  Cell: Cell
40175
40280
  };
40176
40281
  }, []);
40177
- var columns = props.columns,
40178
- data = props.data,
40179
- pageSize = props.pageSize,
40180
- pageSizes = props.pageSizes,
40181
- children = props.children,
40182
- stateManager = props.stateManager,
40183
- hooks = props.hooks,
40184
- NoDataComp = props.NoDataComp,
40185
- LoadingComp = props.LoadingComp,
40186
- ExpandHandleComp = props.ExpandHandleComp,
40187
- noDataText = props.noDataText,
40188
- loadingText = props.loadingText,
40189
- isLoading = props.isLoading,
40190
- onPageChange = props.onPageChange,
40191
- manualPagination = props.manualPagination,
40192
- totalCount = props.totalCount,
40193
- paginateExpandedRows = props.paginateExpandedRows,
40194
- _props$getHeaderProps = props.getHeaderProps,
40195
- getHeaderProps = _props$getHeaderProps === void 0 ? defaultPropGetter : _props$getHeaderProps,
40196
- _props$getColumnProps = props.getColumnProps,
40197
- getColumnProps = _props$getColumnProps === void 0 ? defaultPropGetter : _props$getColumnProps,
40198
- _props$getRowProps = props.getRowProps,
40199
- getRowProps = _props$getRowProps === void 0 ? defaultPropGetter : _props$getRowProps,
40200
- _props$getCellProps = props.getCellProps,
40201
- getCellProps = _props$getCellProps === void 0 ? defaultPropGetter : _props$getCellProps,
40202
- _props$getFooterProps = props.getFooterProps,
40203
- getFooterProps = _props$getFooterProps === void 0 ? defaultPropGetter : _props$getFooterProps,
40204
- selectedRowIds = props.selectedRowIds,
40205
- canOrderColumns = props.canOrderColumns,
40206
- rowActions = props.rowActions,
40207
- columnSort = props.columnSort,
40208
- onColumnSortChanged = props.onColumnSortChanged,
40209
- isCellEditable = props.isCellEditable,
40210
- onStartEdit = props.onStartEdit,
40211
- draggableRows = props.draggableRows,
40212
- onRowDragStart = props.onRowDragStart,
40213
- onRowDragEnd = props.onRowDragEnd,
40214
- hoverActions = props.hoverActions,
40215
- hoverActionsDirection = props.hoverActionsDirection,
40216
- virtualized = props.virtualized,
40217
- rest = _objectWithoutProperties(props, _excluded);
40218
- var _useState = (0,react__WEBPACK_IMPORTED_MODULE_2__.useState)(0),
40282
+ var _useState = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(undefined),
40219
40283
  _useState2 = _slicedToArray(_useState, 2),
40220
40284
  pageCount = _useState2[0],
40221
40285
  setPageCount = _useState2[1];
40222
- var _useState3 = (0,react__WEBPACK_IMPORTED_MODULE_2__.useState)(false),
40286
+ var _useState3 = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(false),
40223
40287
  _useState4 = _slicedToArray(_useState3, 2),
40224
40288
  isDraggingRow = _useState4[0],
40225
40289
  setIsDraggingRow = _useState4[1];
40226
- var hiddenColumns = (0,_util__WEBPACK_IMPORTED_MODULE_7__.firstDefined)(stateManager === null || stateManager === void 0 ? void 0 : stateManager.get('hiddenColumns'), props.hiddenColumns);
40227
- var pinnedColumns = (0,_util__WEBPACK_IMPORTED_MODULE_7__.firstDefined)(stateManager === null || stateManager === void 0 ? void 0 : stateManager.get('pinnedColumns'), props.pinnedColumns);
40228
- var columnOrder = (0,_util__WEBPACK_IMPORTED_MODULE_7__.firstDefined)(stateManager === null || stateManager === void 0 ? void 0 : stateManager.get('columnOrder'), props.columnOrder);
40229
- var initialState = assign({}, props.initialState, pageSize && {
40230
- pageSize: pageSize
40231
- }, hiddenColumns && {
40232
- hiddenColumns: hiddenColumns
40233
- }, pinnedColumns && {
40234
- pinnedColumns: pinnedColumns
40235
- }, columnOrder && {
40236
- columnOrder: columnOrder
40237
- }, selectedRowIds && {
40238
- selectedRowIds: selectedRowIds
40239
- });
40240
- var table = react_table__WEBPACK_IMPORTED_MODULE_3__.useTable.apply(void 0, [_objectSpread({
40290
+ var hiddenColumns = (0,_util__WEBPACK_IMPORTED_MODULE_6__.firstDefined)(stateManager === null || stateManager === void 0 ? void 0 : stateManager.get('hiddenColumns'), _hiddenColumns);
40291
+ var pinnedColumns = (0,_util__WEBPACK_IMPORTED_MODULE_6__.firstDefined)(stateManager === null || stateManager === void 0 ? void 0 : stateManager.get('pinnedColumns'), _pinnedColumns);
40292
+ var columnOrder = (0,_util__WEBPACK_IMPORTED_MODULE_6__.firstDefined)(stateManager === null || stateManager === void 0 ? void 0 : stateManager.get('columnOrder'), _columnOrder);
40293
+ var initialState = (0,react__WEBPACK_IMPORTED_MODULE_1__.useMemo)(function () {
40294
+ return assign({}, _initialState, pageSize && {
40295
+ pageSize: pageSize
40296
+ }, hiddenColumns && {
40297
+ hiddenColumns: hiddenColumns
40298
+ }, pinnedColumns && {
40299
+ pinnedColumns: pinnedColumns
40300
+ }, columnOrder && {
40301
+ columnOrder: columnOrder
40302
+ }, selectedRowIds && {
40303
+ selectedRowIds: selectedRowIds
40304
+ });
40305
+ }, [_initialState, pageSize, hiddenColumns, pinnedColumns, columnOrder, selectedRowIds]);
40306
+ var table = react_table__WEBPACK_IMPORTED_MODULE_2__.useTable.apply(void 0, [Object.assign(_objectSpread({
40241
40307
  columns: columns,
40242
40308
  data: data,
40243
40309
  defaultColumn: defaultColumn,
40244
40310
  initialState: initialState,
40245
40311
  pageSizes: pageSizes,
40246
40312
  manualPagination: manualPagination,
40247
- pageCount: pageCount,
40248
40313
  totalCount: totalCount,
40249
40314
  paginateExpandedRows: paginateExpandedRows,
40250
40315
  isLoading: isLoading,
@@ -40253,15 +40318,19 @@ var Provider = function Provider(props) {
40253
40318
  getRowProps: getRowProps,
40254
40319
  getCellProps: getCellProps,
40255
40320
  getFooterProps: getFooterProps,
40256
- ExpandHandleComp: ExpandHandleComp
40257
- }, lodash_omit__WEBPACK_IMPORTED_MODULE_0___default()(rest, 'initialState', 'hiddenColumns', 'pinnedColumns', 'columnOrder', 'expandColumnId')), useCanHideColumns, react_table__WEBPACK_IMPORTED_MODULE_3__.useExpanded, _expandable_rows__WEBPACK_IMPORTED_MODULE_10__.useExpandHandle, react_table__WEBPACK_IMPORTED_MODULE_3__.usePagination, props.fullWidth ? react_table__WEBPACK_IMPORTED_MODULE_3__.useFlexLayout : react_table__WEBPACK_IMPORTED_MODULE_3__.useBlockLayout, react_table__WEBPACK_IMPORTED_MODULE_3__.useResizeColumns, react_table__WEBPACK_IMPORTED_MODULE_3__.useColumnOrder, _pinned_columns__WEBPACK_IMPORTED_MODULE_9__.usePinnedColumns, _editable_columns__WEBPACK_IMPORTED_MODULE_8__.useEditableColumns, react_table__WEBPACK_IMPORTED_MODULE_3__.useRowSelect, _select_rows__WEBPACK_IMPORTED_MODULE_11__.useSelectRows].concat(_toConsumableArray(rowActions !== null && rowActions !== void 0 && rowActions.length ? [_row_menu__WEBPACK_IMPORTED_MODULE_12__.useRowMenu] : []), _toConsumableArray(hooks)));
40321
+ ExpandHandleComp: ExpandHandleComp,
40322
+ fullWidth: fullWidth,
40323
+ rowDensity: rowDensity
40324
+ }, rest), manualPagination && {
40325
+ pageCount: pageCount
40326
+ }), useCanHideColumns, react_table__WEBPACK_IMPORTED_MODULE_2__.useExpanded, _expandable_rows__WEBPACK_IMPORTED_MODULE_9__.useExpandHandle, react_table__WEBPACK_IMPORTED_MODULE_2__.usePagination, fullWidth ? react_table__WEBPACK_IMPORTED_MODULE_2__.useFlexLayout : react_table__WEBPACK_IMPORTED_MODULE_2__.useBlockLayout, react_table__WEBPACK_IMPORTED_MODULE_2__.useResizeColumns, react_table__WEBPACK_IMPORTED_MODULE_2__.useColumnOrder, _pinned_columns__WEBPACK_IMPORTED_MODULE_8__.usePinnedColumns, _editable_columns__WEBPACK_IMPORTED_MODULE_7__.useEditableColumns, react_table__WEBPACK_IMPORTED_MODULE_2__.useRowSelect, _select_rows__WEBPACK_IMPORTED_MODULE_10__.useSelectRows].concat(_toConsumableArray(rowActions !== null && rowActions !== void 0 && rowActions.length ? [_row_menu__WEBPACK_IMPORTED_MODULE_11__.useRowMenu] : []), _toConsumableArray(hooks)));
40258
40327
  var _table$state = table.state,
40259
40328
  pageIndex = _table$state.pageIndex,
40260
40329
  _pageSize = _table$state.pageSize;
40261
- (0,react__WEBPACK_IMPORTED_MODULE_2__.useEffect)(function () {
40330
+ (0,react__WEBPACK_IMPORTED_MODULE_1__.useEffect)(function () {
40262
40331
  stateManager === null || stateManager === void 0 || stateManager.onStateChange(table.state);
40263
40332
  }, [table.state]);
40264
- (0,react__WEBPACK_IMPORTED_MODULE_2__.useEffect)(function () {
40333
+ (0,react__WEBPACK_IMPORTED_MODULE_1__.useEffect)(function () {
40265
40334
  if (!manualPagination) return;
40266
40335
  setPageCount(calcPageCount(totalCount, _pageSize));
40267
40336
  onPageChange === null || onPageChange === void 0 || onPageChange({
@@ -40271,8 +40340,8 @@ var Provider = function Provider(props) {
40271
40340
  }, [manualPagination, totalCount, pageIndex, _pageSize]);
40272
40341
  var _LoadingComp = useComp(loadingText, LoadingComp);
40273
40342
  var _NoDataComp = useComp(noDataText, NoDataComp);
40274
- var orderLogic = (0,_order_logic__WEBPACK_IMPORTED_MODULE_13__.useOrderLogic)(table);
40275
- var expandColumnId = (0,_util__WEBPACK_IMPORTED_MODULE_7__.firstDefined)(props.expandColumnId, (_columns$ = columns[0]) === null || _columns$ === void 0 ? void 0 : _columns$.id);
40343
+ var orderLogic = (0,_order_logic__WEBPACK_IMPORTED_MODULE_12__.useOrderLogic)(table);
40344
+ var expandColumnId = (0,_util__WEBPACK_IMPORTED_MODULE_6__.firstDefined)(_expandColumnId, (_columns$ = columns[0]) === null || _columns$ === void 0 ? void 0 : _columns$.id);
40276
40345
  var value = _objectSpread(_objectSpread({
40277
40346
  columnSort: columnSort,
40278
40347
  onColumnSortChanged: onColumnSortChanged,
@@ -40294,107 +40363,81 @@ var Provider = function Provider(props) {
40294
40363
  hoverActionsDirection: hoverActionsDirection,
40295
40364
  virtualized: virtualized
40296
40365
  });
40297
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(TableContext.Provider, {
40366
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(TableContext.Provider, {
40298
40367
  value: value
40299
40368
  }, children);
40300
40369
  };
40301
40370
  Provider.displayName = 'Table.Provider';
40302
- Provider.defaultProps = {
40303
- data: [],
40304
- columnSort: {},
40305
- pageSizes: [5, 10, 20, 30],
40306
- hooks: [],
40307
- ExpandHandleComp: _expandable_rows__WEBPACK_IMPORTED_MODULE_10__.ExpandHandle,
40308
- noDataText: 'No data',
40309
- loadingText: 'Loading...',
40310
- isLoading: false,
40311
- manualPagination: false,
40312
- paginateExpandedRows: false,
40313
- getHeaderProps: defaultPropGetter,
40314
- getColumnProps: defaultPropGetter,
40315
- getRowProps: defaultPropGetter,
40316
- getCellProps: defaultPropGetter,
40317
- getFooterProps: defaultPropGetter,
40318
- rowDensity: 'busy_bee',
40319
- canOrderColumns: false,
40320
- isCellEditable: function isCellEditable(_ref) {
40321
- var column = _ref.column;
40322
- return column.canEdit;
40323
- },
40324
- draggableRows: false,
40325
- hoverActionsDirection: 'row',
40326
- virtualized: false
40327
- };
40328
40371
  Provider.propTypes = {
40329
- columns: prop_types__WEBPACK_IMPORTED_MODULE_1___default().arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_1___default().shape({
40330
- id: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().string).isRequired,
40331
- accessor: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_1___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_1___default().func)]),
40332
- type: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOf(['string', 'number']),
40333
- Header: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_1___default().node), (prop_types__WEBPACK_IMPORTED_MODULE_1___default().func)]),
40334
- Cell: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().func),
40335
- Footer: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_1___default().node), (prop_types__WEBPACK_IMPORTED_MODULE_1___default().func)]),
40336
- canSort: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().bool),
40337
- disableHiding: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().bool),
40338
- width: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().number),
40339
- minWidth: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().number),
40340
- maxWidth: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().number),
40341
- disableResizing: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().bool),
40342
- disablePinning: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().bool),
40343
- canEdit: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().bool),
40344
- className: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().string)
40372
+ columns: prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
40373
+ id: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string).isRequired,
40374
+ accessor: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func)]),
40375
+ type: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['string', 'number']),
40376
+ Header: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().node), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func)]),
40377
+ Cell: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
40378
+ Footer: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().node), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func)]),
40379
+ canSort: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
40380
+ disableHiding: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
40381
+ width: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number),
40382
+ minWidth: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number),
40383
+ maxWidth: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number),
40384
+ disableResizing: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
40385
+ disablePinning: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
40386
+ canEdit: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
40387
+ className: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string)
40345
40388
  })),
40346
- data: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().array),
40347
- columnSort: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().object),
40348
- onColumnSortChanged: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().func),
40349
- pageSize: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().number),
40350
- pageSizes: prop_types__WEBPACK_IMPORTED_MODULE_1___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_1___default().number)),
40351
- manualPagination: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().bool),
40352
- totalCount: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().number),
40353
- paginateExpandedRows: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().bool),
40354
- onPageChange: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().func),
40355
- isLoading: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().bool),
40356
- hiddenColumns: prop_types__WEBPACK_IMPORTED_MODULE_1___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_1___default().string)),
40357
- pinnedColumns: prop_types__WEBPACK_IMPORTED_MODULE_1___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_1___default().string)),
40358
- fullWidth: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().bool),
40359
- disableHiding: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().bool),
40360
- disableResizing: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().bool),
40361
- disablePinning: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().bool),
40362
- canEdit: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().bool),
40363
- isCellEditable: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().func),
40364
- onStartEdit: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().func),
40365
- hideHeader: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().bool),
40366
- hideFooter: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().bool),
40367
- getHeaderProps: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().func),
40368
- getColumnProps: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().func),
40369
- getRowProps: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().func),
40370
- getCellProps: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().func),
40371
- getFooterProps: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().func),
40372
- noDataText: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_1___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_1___default().node), (prop_types__WEBPACK_IMPORTED_MODULE_1___default().func)]),
40373
- loadingText: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_1___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_1___default().node), (prop_types__WEBPACK_IMPORTED_MODULE_1___default().func)]),
40374
- renderRowSubComponent: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().func),
40375
- rowDensity: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOf(['busy_bee', 'diamond_hand', 'white_spaced']),
40376
- onRowClick: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().func),
40377
- stickyHeader: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_1___default().bool), (prop_types__WEBPACK_IMPORTED_MODULE_1___default().object)]),
40378
- scrollTarget: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().any),
40379
- className: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().string),
40380
- onSelectRows: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().func),
40381
- canOrderColumns: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().bool),
40382
- rowActions: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().array),
40383
- scrollable: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().bool),
40384
- scrollHeight: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().string),
40385
- expandColumnId: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().string),
40386
- draggableRows: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().bool),
40387
- onRowDragStart: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().func),
40388
- onRowDragEnd: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().func),
40389
- hoverActions: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_1___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_1___default().object)), (prop_types__WEBPACK_IMPORTED_MODULE_1___default().func)]),
40390
- hoverActionsDirection: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOf(['row', 'column']),
40391
- virtualized: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().bool)
40389
+ data: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().array),
40390
+ columnSort: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object),
40391
+ onColumnSortChanged: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
40392
+ pageSize: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number),
40393
+ pageSizes: prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().number)),
40394
+ manualPagination: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
40395
+ totalCount: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number),
40396
+ paginateExpandedRows: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
40397
+ onPageChange: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
40398
+ isLoading: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
40399
+ hiddenColumns: prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().string)),
40400
+ pinnedColumns: prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().string)),
40401
+ fullWidth: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
40402
+ disableHiding: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
40403
+ disableResizing: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
40404
+ disablePinning: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
40405
+ canEdit: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
40406
+ isCellEditable: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
40407
+ onStartEdit: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
40408
+ hideHeader: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
40409
+ hideFooter: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
40410
+ getHeaderProps: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
40411
+ getColumnProps: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
40412
+ getRowProps: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
40413
+ getCellProps: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
40414
+ getFooterProps: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
40415
+ noDataText: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().node), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func)]),
40416
+ loadingText: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().node), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func)]),
40417
+ renderRowSubComponent: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
40418
+ rowDensity: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['busy_bee', 'diamond_hand', 'white_spaced']),
40419
+ onRowClick: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
40420
+ stickyHeader: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object)]),
40421
+ scrollTarget: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().any),
40422
+ className: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
40423
+ onSelectRows: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
40424
+ canOrderColumns: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
40425
+ rowActions: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().array),
40426
+ scrollable: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
40427
+ scrollHeight: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
40428
+ expandColumnId: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
40429
+ draggableRows: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
40430
+ onRowDragStart: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
40431
+ onRowDragEnd: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
40432
+ hoverActions: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().object)), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func)]),
40433
+ hoverActionsDirection: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['row', 'column']),
40434
+ virtualized: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool)
40392
40435
  };
40393
40436
  var calcPageCount = function calcPageCount(totalCount, pageSize) {
40394
40437
  return Math.ceil(totalCount / pageSize);
40395
40438
  };
40396
40439
  var useTableContext = function useTableContext() {
40397
- return (0,react__WEBPACK_IMPORTED_MODULE_2__.useContext)(TableContext);
40440
+ return (0,react__WEBPACK_IMPORTED_MODULE_1__.useContext)(TableContext);
40398
40441
  };
40399
40442
 
40400
40443
  // can hide columns
@@ -40404,29 +40447,28 @@ var useCanHideColumns = function useCanHideColumns(hooks) {
40404
40447
  var disableHiding = instance.disableHiding,
40405
40448
  flatHeaders = instance.flatHeaders;
40406
40449
  flatHeaders.forEach(function (header) {
40407
- header.canHide = (0,_util__WEBPACK_IMPORTED_MODULE_7__.firstDefined)(header.disableHiding === true ? false : undefined, disableHiding === true ? false : undefined, true);
40450
+ header.canHide = (0,_util__WEBPACK_IMPORTED_MODULE_6__.firstDefined)(header.disableHiding === true ? false : undefined, disableHiding === true ? false : undefined, true);
40408
40451
  });
40409
40452
  });
40410
40453
  };
40411
40454
  useCanHideColumns.pluginName = 'useCanHideColumns';
40412
40455
  var useComp = function useComp(text, Comp) {
40413
- return (0,react__WEBPACK_IMPORTED_MODULE_2__.useMemo)(function () {
40456
+ return (0,react__WEBPACK_IMPORTED_MODULE_1__.useMemo)(function () {
40414
40457
  if (Comp) return Comp;
40415
40458
  if (!text || typeof text != 'string' || text.trim() == '') return text;
40416
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(EmptyBody, null, text);
40459
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(EmptyBody, null, text);
40417
40460
  }, [text, Comp]);
40418
40461
  };
40419
- var EmptyBody = function EmptyBody(_ref2) {
40420
- var children = _ref2.children;
40421
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_layout__WEBPACK_IMPORTED_MODULE_4__.Flex, {
40462
+ var EmptyBody = function EmptyBody(_ref4) {
40463
+ var children = _ref4.children;
40464
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_layout__WEBPACK_IMPORTED_MODULE_3__.Flex, {
40422
40465
  align_items: "center",
40423
40466
  width: "100%",
40424
- padding: "".concat(_theme__WEBPACK_IMPORTED_MODULE_5__["default"].spacing['04'], " ").concat(_theme__WEBPACK_IMPORTED_MODULE_5__["default"].spacing['05'])
40425
- }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_6__.Label, {
40467
+ padding: "".concat(_theme__WEBPACK_IMPORTED_MODULE_4__["default"].spacing['04'], " ").concat(_theme__WEBPACK_IMPORTED_MODULE_4__["default"].spacing['05'])
40468
+ }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_5__.Label, {
40426
40469
  color: "gray_11_50"
40427
40470
  }, children));
40428
40471
  };
40429
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Provider);
40430
40472
 
40431
40473
  /***/ }),
40432
40474
 
@@ -40439,7 +40481,7 @@ var EmptyBody = function EmptyBody(_ref2) {
40439
40481
  "use strict";
40440
40482
  __webpack_require__.r(__webpack_exports__);
40441
40483
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
40442
- /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
40484
+ /* harmony export */ CustomizeButton: () => (/* binding */ CustomizeButton)
40443
40485
  /* harmony export */ });
40444
40486
  /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! prop-types */ "prop-types");
40445
40487
  /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_0__);
@@ -40516,9 +40558,6 @@ var CustomizeButton = function CustomizeButton(props) {
40516
40558
  });
40517
40559
  };
40518
40560
  CustomizeButton.displayName = 'Table.CustomizeButton';
40519
- CustomizeButton.defaultProps = {
40520
- maxMenuHeight: 300
40521
- };
40522
40561
  CustomizeButton.propTypes = {
40523
40562
  searchable: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
40524
40563
  maxMenuHeight: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number)
@@ -40527,9 +40566,9 @@ var PopoverContainer = styled_components__WEBPACK_IMPORTED_MODULE_2___default().
40527
40566
  displayName: "PopoverContainer",
40528
40567
  componentId: "sc-1uptv2h-0"
40529
40568
  })(["box-shadow:", ";background:white;border-radius:4px;padding:4px 0;min-width:168px;max-width:540px;"], _theme__WEBPACK_IMPORTED_MODULE_7__["default"].box_shadow.md);
40530
- var Search = function Search(props) {
40531
- var search = props.search,
40532
- setSearch = props.setSearch;
40569
+ var Search = function Search(_ref) {
40570
+ var search = _ref.search,
40571
+ setSearch = _ref.setSearch;
40533
40572
  var clearButton = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_icon_button__WEBPACK_IMPORTED_MODULE_5__.IconButton, {
40534
40573
  variant: "ghost",
40535
40574
  icon: "Close",
@@ -40555,7 +40594,6 @@ var Search = function Search(props) {
40555
40594
  onChange: setSearch
40556
40595
  }));
40557
40596
  };
40558
- Search.displayName = 'Search';
40559
40597
  var ItemsWrapper = styled_components__WEBPACK_IMPORTED_MODULE_2___default().div.withConfig({
40560
40598
  displayName: "ItemsWrapper",
40561
40599
  componentId: "sc-1uptv2h-1"
@@ -40564,13 +40602,14 @@ var ItemsWrapper = styled_components__WEBPACK_IMPORTED_MODULE_2___default().div.
40564
40602
  return (0,styled_components__WEBPACK_IMPORTED_MODULE_2__.css)(["max-height:", ";overflow-y:auto;", ""], (0,_utils__WEBPACK_IMPORTED_MODULE_10__.toPixel)(props.$maxMenuHeight), _theme__WEBPACK_IMPORTED_MODULE_7__["default"].scrollbars.thin);
40565
40603
  }
40566
40604
  });
40567
- var CustomizeButtonPopover = function CustomizeButtonPopover(props) {
40568
- var searchable = props.searchable,
40569
- search = props.search,
40570
- setSearch = props.setSearch,
40571
- maxMenuHeight = props.maxMenuHeight,
40572
- items = props.items,
40573
- orderProps = props.orderProps;
40605
+ var CustomizeButtonPopover = function CustomizeButtonPopover(_ref2) {
40606
+ var searchable = _ref2.searchable,
40607
+ search = _ref2.search,
40608
+ setSearch = _ref2.setSearch,
40609
+ _ref2$maxMenuHeight = _ref2.maxMenuHeight,
40610
+ maxMenuHeight = _ref2$maxMenuHeight === void 0 ? 300 : _ref2$maxMenuHeight,
40611
+ items = _ref2.items,
40612
+ orderProps = _ref2.orderProps;
40574
40613
  var maxHeight = Number.parseInt(maxMenuHeight);
40575
40614
  var _maxMenuHeight = orderProps && (!maxHeight || maxHeight < 600) ? 600 : maxMenuHeight;
40576
40615
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(PopoverContainer, null, searchable && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(Search, {
@@ -40584,28 +40623,28 @@ var CustomizeButtonPopover = function CustomizeButtonPopover(props) {
40584
40623
  items: items
40585
40624
  })));
40586
40625
  };
40587
- CustomizeButtonPopover.displayName = 'CustomizeButtonPopover';
40588
- var CustomizeButtonWithPopover = (0,_hoc__WEBPACK_IMPORTED_MODULE_3__.withPopover)(function (p) {
40626
+ var CustomizeButtonWithPopover = (0,_hoc__WEBPACK_IMPORTED_MODULE_3__.withPopover)(function (_ref3) {
40627
+ var popover = _ref3.popover;
40589
40628
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_icon_button__WEBPACK_IMPORTED_MODULE_5__.IconButton, {
40590
- onClick: p.popover.toggle,
40629
+ onClick: popover.toggle,
40591
40630
  tooltip: "Customize columns",
40592
40631
  icon: "Customize"
40593
40632
  });
40594
40633
  }, CustomizeButtonPopover, {
40595
40634
  placement: 'bottom'
40596
40635
  });
40597
- var CustomizeButtonStaticItems = function CustomizeButtonStaticItems(_ref) {
40598
- var items = _ref.items;
40636
+ var CustomizeButtonStaticItems = function CustomizeButtonStaticItems(_ref4) {
40637
+ var items = _ref4.items;
40599
40638
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement((react__WEBPACK_IMPORTED_MODULE_1___default().Fragment), null, items.map(function (c) {
40600
40639
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(CustomizeButtonItem, _extends({
40601
40640
  key: c.id
40602
40641
  }, c));
40603
40642
  }));
40604
40643
  };
40605
- var CustomizeButtonDraggableItems = function CustomizeButtonDraggableItems(props) {
40606
- var items = props.items,
40607
- orders = props.orders,
40608
- moveColumn = props.moveColumn;
40644
+ var CustomizeButtonDraggableItems = function CustomizeButtonDraggableItems(_ref5) {
40645
+ var items = _ref5.items,
40646
+ orders = _ref5.orders,
40647
+ moveColumn = _ref5.moveColumn;
40609
40648
  var sections = (0,react__WEBPACK_IMPORTED_MODULE_1__.useMemo)(function () {
40610
40649
  var _orders$pinned;
40611
40650
  return [((_orders$pinned = orders.pinned) === null || _orders$pinned === void 0 ? void 0 : _orders$pinned.length) && {
@@ -40661,25 +40700,25 @@ var CustomizeButtonDraggableItems = function CustomizeButtonDraggableItems(props
40661
40700
  CustomDrag: CustomizeButtonDraggableItem
40662
40701
  });
40663
40702
  };
40664
- var CustomizeButtonDraggableItem = function CustomizeButtonDraggableItem(props) {
40665
- var Dragger = props.Dragger,
40666
- isDragging = props.isDragging,
40667
- itemProps = _objectWithoutProperties(props, _excluded);
40703
+ var CustomizeButtonDraggableItem = function CustomizeButtonDraggableItem(_ref6) {
40704
+ var Dragger = _ref6.Dragger,
40705
+ isDragging = _ref6.isDragging,
40706
+ itemProps = _objectWithoutProperties(_ref6, _excluded);
40668
40707
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_input__WEBPACK_IMPORTED_MODULE_6__.DragDrop.DraggableItem, {
40669
40708
  Dragger: Dragger,
40670
40709
  isDragging: isDragging
40671
40710
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(CustomizeButtonItem, itemProps));
40672
40711
  };
40673
- var CustomizeButtonItem = function CustomizeButtonItem(props) {
40674
- var id = props.id,
40675
- name = props.name,
40676
- canPin = props.canPin,
40677
- isPinned = props.isPinned,
40678
- togglePinned = props.togglePinned,
40679
- canHide = props.canHide,
40680
- isVisible = props.isVisible,
40681
- toggleHidden = props.toggleHidden,
40682
- className = props.className;
40712
+ var CustomizeButtonItem = function CustomizeButtonItem(_ref7) {
40713
+ var id = _ref7.id,
40714
+ name = _ref7.name,
40715
+ canPin = _ref7.canPin,
40716
+ isPinned = _ref7.isPinned,
40717
+ togglePinned = _ref7.togglePinned,
40718
+ canHide = _ref7.canHide,
40719
+ isVisible = _ref7.isVisible,
40720
+ toggleHidden = _ref7.toggleHidden,
40721
+ className = _ref7.className;
40683
40722
  var handlePinned = (0,react__WEBPACK_IMPORTED_MODULE_1__.useCallback)(function () {
40684
40723
  togglePinned(!isPinned);
40685
40724
  }, [isPinned, togglePinned]);
@@ -40701,24 +40740,25 @@ var CustomizeButtonItem = function CustomizeButtonItem(props) {
40701
40740
  tooltip: "".concat(isVisible ? 'Hide' : 'Show', " column")
40702
40741
  }));
40703
40742
  };
40704
- CustomizeButtonItem.displayName = 'CustomizeButtonItem';
40705
40743
  var CustomizeButtonItemWrapper = styled_components__WEBPACK_IMPORTED_MODULE_2___default().div.withConfig({
40706
40744
  displayName: "CustomizeButtonItemWrapper",
40707
40745
  componentId: "sc-1uptv2h-2"
40708
40746
  })(["margin:0;padding:8px 16px;display:flex;align-items:center;gap:4px;min-width:230px;div[data-label]{margin-right:auto;}&:hover{background-color:", ";}"], _theme__WEBPACK_IMPORTED_MODULE_7__["default"].color.gray_2);
40709
- var CustomizeButtonItemAction = function CustomizeButtonItemAction(props) {
40747
+ var CustomizeButtonItemAction = function CustomizeButtonItemAction(_ref8) {
40748
+ var onClick = _ref8.onClick,
40749
+ tooltip = _ref8.tooltip,
40750
+ icon = _ref8.icon;
40710
40751
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(CustomizeButtonItemActionWrapper, {
40711
- onClick: props.onClick
40752
+ onClick: onClick
40712
40753
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_tooltip__WEBPACK_IMPORTED_MODULE_8__.Tooltip, {
40713
- tooltip: props.tooltip,
40754
+ tooltip: tooltip,
40714
40755
  tooltipPlacement: "top"
40715
40756
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_icon__WEBPACK_IMPORTED_MODULE_4__.Icon, {
40716
- name: props.icon,
40757
+ name: icon,
40717
40758
  size: "xs",
40718
40759
  color: "gray_9"
40719
40760
  })));
40720
40761
  };
40721
- CustomizeButtonItemAction.displayName = 'CustomizeButtonItemAction';
40722
40762
  var CustomizeButtonItemActionWrapper = styled_components__WEBPACK_IMPORTED_MODULE_2___default().div.withConfig({
40723
40763
  displayName: "CustomizeButtonItemActionWrapper",
40724
40764
  componentId: "sc-1uptv2h-3"
@@ -40729,7 +40769,6 @@ var searchColumn = function searchColumn(search) {
40729
40769
  return !search || name.toLowerCase().includes(search.toLowerCase());
40730
40770
  };
40731
40771
  };
40732
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (CustomizeButton);
40733
40772
 
40734
40773
  /***/ }),
40735
40774
 
@@ -41612,9 +41651,9 @@ __webpack_require__.r(__webpack_exports__);
41612
41651
 
41613
41652
 
41614
41653
 
41615
- _table__WEBPACK_IMPORTED_MODULE_3__.Table.CustomizeButton = _customize_button__WEBPACK_IMPORTED_MODULE_2__["default"];
41654
+ _table__WEBPACK_IMPORTED_MODULE_3__.Table.CustomizeButton = _customize_button__WEBPACK_IMPORTED_MODULE_2__.CustomizeButton;
41616
41655
  _table__WEBPACK_IMPORTED_MODULE_3__.Table.Pagination = _pagination__WEBPACK_IMPORTED_MODULE_4__["default"];
41617
- _table__WEBPACK_IMPORTED_MODULE_3__.Table.Provider = _context__WEBPACK_IMPORTED_MODULE_1__["default"];
41656
+ _table__WEBPACK_IMPORTED_MODULE_3__.Table.Provider = _context__WEBPACK_IMPORTED_MODULE_1__.Provider;
41618
41657
  _table__WEBPACK_IMPORTED_MODULE_3__.Table.withPlugins = _plugin__WEBPACK_IMPORTED_MODULE_5__.withPlugins;
41619
41658
  _table__WEBPACK_IMPORTED_MODULE_3__.Table.plugins = _plugin__WEBPACK_IMPORTED_MODULE_5__.plugins;
41620
41659
 
@@ -41801,7 +41840,7 @@ __webpack_require__.r(__webpack_exports__);
41801
41840
 
41802
41841
  /*jslint react:true*/
41803
41842
  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); }
41804
- var _excluded = ["state", "totalCount", "manualPagination"];
41843
+ var _excluded = ["state", "totalCount", "manualPagination", "rows", "pageSizes"];
41805
41844
  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; }
41806
41845
  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; }
41807
41846
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
@@ -41824,23 +41863,25 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
41824
41863
 
41825
41864
 
41826
41865
 
41827
- var Pagination = function Pagination(props) {
41828
- var className = props.className,
41829
- onDownload = props.onDownload,
41830
- _props$downloadToolti = props.downloadTooltip,
41831
- downloadTooltip = _props$downloadToolti === void 0 ? 'Download' : _props$downloadToolti;
41866
+ var Pagination = function Pagination(_ref) {
41867
+ var className = _ref.className,
41868
+ onDownload = _ref.onDownload,
41869
+ _ref$downloadTooltip = _ref.downloadTooltip,
41870
+ downloadTooltip = _ref$downloadTooltip === void 0 ? 'Download' : _ref$downloadTooltip;
41832
41871
  var _useTableContext = (0,_context__WEBPACK_IMPORTED_MODULE_8__.useTableContext)(),
41833
41872
  state = _useTableContext.state,
41834
41873
  totalCount = _useTableContext.totalCount,
41835
41874
  manualPagination = _useTableContext.manualPagination,
41875
+ rows = _useTableContext.rows,
41876
+ pageSizes = _useTableContext.pageSizes,
41836
41877
  rest = _objectWithoutProperties(_useTableContext, _excluded);
41837
- var rows = rest.rows,
41838
- pageSizes = rest.pageSizes;
41839
41878
  var minPageSize = Math.min.apply(Math, _toConsumableArray(pageSizes));
41840
41879
  var total = manualPagination ? totalCount : rows.length;
41841
41880
  if (total <= minPageSize) return null;
41842
41881
  var childProps = _objectSpread(_objectSpread(_objectSpread({}, state), rest), {}, {
41843
- total: total
41882
+ total: total,
41883
+ rows: rows,
41884
+ pageSizes: pageSizes
41844
41885
  });
41845
41886
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(PaginationWrapper, {
41846
41887
  className: className
@@ -41851,7 +41892,6 @@ var Pagination = function Pagination(props) {
41851
41892
  variant: "icon"
41852
41893
  }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(PaginationControls, childProps)));
41853
41894
  };
41854
- Pagination.displayName = 'Table.Pagination';
41855
41895
  Pagination.propTypes = {
41856
41896
  onDownload: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
41857
41897
  downloadTooltip: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string)
@@ -41864,12 +41904,12 @@ var PaginationControlsWrapper = styled_components__WEBPACK_IMPORTED_MODULE_2___d
41864
41904
  displayName: "PaginationControlsWrapper",
41865
41905
  componentId: "sc-1rdn0jh-1"
41866
41906
  })(["margin-left:auto;display:flex;flex-direction:row;align-items:center;gap:12px;"]);
41867
- var PaginationControls = function PaginationControls(props) {
41868
- var pageIndex = props.pageIndex,
41869
- pageSize = props.pageSize,
41870
- pageSizes = props.pageSizes,
41871
- setPageSize = props.setPageSize,
41872
- total = props.total;
41907
+ var PaginationControls = function PaginationControls(_ref2) {
41908
+ var pageIndex = _ref2.pageIndex,
41909
+ pageSize = _ref2.pageSize,
41910
+ pageSizes = _ref2.pageSizes,
41911
+ setPageSize = _ref2.setPageSize,
41912
+ total = _ref2.total;
41873
41913
  var handleChange = function handleChange(option) {
41874
41914
  return setPageSize(+option.value);
41875
41915
  };
@@ -41906,15 +41946,14 @@ var PaginationControls = function PaginationControls(props) {
41906
41946
  color: "gray_11_50"
41907
41947
  }, total)));
41908
41948
  };
41909
- PaginationControls.displayName = 'PaginationControls';
41910
- var PaginationItems = function PaginationItems(props) {
41911
- var pageIndex = props.pageIndex,
41912
- canPreviousPage = props.canPreviousPage,
41913
- previousPage = props.previousPage,
41914
- canNextPage = props.canNextPage,
41915
- nextPage = props.nextPage,
41916
- gotoPage = props.gotoPage,
41917
- pageCount = props.pageCount;
41949
+ var PaginationItems = function PaginationItems(_ref3) {
41950
+ var pageIndex = _ref3.pageIndex,
41951
+ canPreviousPage = _ref3.canPreviousPage,
41952
+ previousPage = _ref3.previousPage,
41953
+ canNextPage = _ref3.canNextPage,
41954
+ nextPage = _ref3.nextPage,
41955
+ gotoPage = _ref3.gotoPage,
41956
+ pageCount = _ref3.pageCount;
41918
41957
  var pages = usePages({
41919
41958
  pageIndex: pageIndex,
41920
41959
  gotoPage: gotoPage,
@@ -41922,38 +41961,42 @@ var PaginationItems = function PaginationItems(props) {
41922
41961
  });
41923
41962
  if (!pages) return null;
41924
41963
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(PaginationItemsWrapper, null, canPreviousPage && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(PageLink, {
41925
- onClick: previousPage,
41964
+ onClick: function onClick() {
41965
+ return previousPage();
41966
+ },
41926
41967
  text: "Prev"
41927
41968
  }), pages, canNextPage && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(PageLink, {
41928
- onClick: nextPage,
41969
+ onClick: function onClick() {
41970
+ return nextPage();
41971
+ },
41929
41972
  text: "Next"
41930
41973
  }));
41931
41974
  };
41932
- PaginationItems.displayName = 'PaginationItems';
41933
41975
  var PaginationItemsWrapper = styled_components__WEBPACK_IMPORTED_MODULE_2___default().div.withConfig({
41934
41976
  displayName: "PaginationItemsWrapper",
41935
41977
  componentId: "sc-1rdn0jh-2"
41936
41978
  })(["display:flex;flex-direction:row;align-items:center;gap:8px;"]);
41937
- var PageLink = function PageLink(props) {
41979
+ var PageLink = function PageLink(_ref4) {
41980
+ var onClick = _ref4.onClick,
41981
+ text = _ref4.text;
41938
41982
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_link__WEBPACK_IMPORTED_MODULE_6__.Link, {
41939
41983
  as: "div",
41940
41984
  variant: "secondary",
41941
41985
  size: "sm",
41942
- onClick: props.onClick,
41943
- text: String(props.text),
41986
+ onClick: onClick,
41987
+ text: String(text),
41944
41988
  style: {
41945
41989
  cursor: 'pointer'
41946
41990
  }
41947
41991
  });
41948
41992
  };
41949
- PageLink.displayName = 'PageLink';
41950
- var PageLabel = function PageLabel(props) {
41993
+ var PageLabel = function PageLabel(_ref5) {
41994
+ var text = _ref5.text;
41951
41995
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_7__.Label, {
41952
41996
  variant: "sm",
41953
41997
  color: "gray_11_50"
41954
- }, props.text);
41998
+ }, text);
41955
41999
  };
41956
- PageLabel.displayName = 'PageLabel';
41957
42000
  var usePages = function usePages(opt) {
41958
42001
  return (0,react__WEBPACK_IMPORTED_MODULE_1__.useMemo)(function () {
41959
42002
  var pageIndex = opt.pageIndex,
@@ -42248,7 +42291,7 @@ var withPlugins = function withPlugins() {
42248
42291
  return acc.concat.apply(acc, _toConsumableArray(((_plugin$hooks = plugin.hooks) === null || _plugin$hooks === void 0 ? void 0 : _plugin$hooks.call(plugin)) || []));
42249
42292
  }, []);
42250
42293
  var ProviderWithPlugins = function ProviderWithPlugins(props) {
42251
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_context__WEBPACK_IMPORTED_MODULE_1__["default"], _extends({}, pluginProps, props, {
42294
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_context__WEBPACK_IMPORTED_MODULE_1__.Provider, _extends({}, pluginProps, props, {
42252
42295
  hooks: hooks
42253
42296
  }));
42254
42297
  };
@@ -42878,20 +42921,21 @@ __webpack_require__.r(__webpack_exports__);
42878
42921
  /*jslint react:true*/
42879
42922
 
42880
42923
 
42881
- var SortIcon = function SortIcon(props) {
42924
+ var SortIcon = function SortIcon(_ref) {
42925
+ var _ref$visible = _ref.visible,
42926
+ visible = _ref$visible === void 0 ? true : _ref$visible,
42927
+ _ref$color = _ref.color,
42928
+ color = _ref$color === void 0 ? 'blue_10' : _ref$color,
42929
+ reverse = _ref.reverse;
42882
42930
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_icon__WEBPACK_IMPORTED_MODULE_1__.Icon, {
42883
42931
  size: "xs",
42884
- name: props.reverse ? 'SortDesc' : 'SortAsc',
42885
- color: props.color || 'blue_10',
42932
+ name: reverse ? 'SortDesc' : 'SortAsc',
42933
+ color: color,
42886
42934
  style: {
42887
- visibility: props.visible ? 'visible' : 'hidden'
42935
+ visibility: visible ? 'visible' : 'hidden'
42888
42936
  }
42889
42937
  });
42890
42938
  };
42891
- SortIcon.displayName = 'SortIcon';
42892
- SortIcon.defaultProps = {
42893
- visible: true
42894
- };
42895
42939
 
42896
42940
  /***/ }),
42897
42941
 
@@ -43230,12 +43274,12 @@ var Table = function Table(props) {
43230
43274
  var context = (0,_context__WEBPACK_IMPORTED_MODULE_7__.useTableContext)();
43231
43275
  // not under context
43232
43276
  if (context === _context__WEBPACK_IMPORTED_MODULE_7__.defaultContextValue) {
43233
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_context__WEBPACK_IMPORTED_MODULE_7__["default"], props, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(InnerTable, props));
43277
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_context__WEBPACK_IMPORTED_MODULE_7__.Provider, props, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(InnerTable, props));
43234
43278
  }
43235
43279
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(InnerTable, props);
43236
43280
  };
43237
43281
  Table.displayName = 'Table';
43238
- Table.propTypes = lodash_cloneDeep__WEBPACK_IMPORTED_MODULE_1___default()(_context__WEBPACK_IMPORTED_MODULE_7__["default"].propTypes);
43282
+ Table.propTypes = lodash_cloneDeep__WEBPACK_IMPORTED_MODULE_1___default()(_context__WEBPACK_IMPORTED_MODULE_7__.Provider.propTypes);
43239
43283
  var InnerTable = function InnerTable(props) {
43240
43284
  var _useTableContext = (0,_context__WEBPACK_IMPORTED_MODULE_7__.useTableContext)(),
43241
43285
  getTableProps = _useTableContext.getTableProps,
@@ -44314,14 +44358,15 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
44314
44358
 
44315
44359
 
44316
44360
  var color = _theme__WEBPACK_IMPORTED_MODULE_7__["default"].color;
44317
- var Toast = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forwardRef(function (props, ref) {
44318
- var type = props.type,
44319
- children = props.children,
44320
- onClose = props.onClose,
44321
- dismissible = props.dismissible,
44322
- notDismissible = props.notDismissible,
44323
- classNamePrefix = props.classNamePrefix,
44324
- rest = _objectWithoutProperties(props, _excluded);
44361
+ var Toast = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forwardRef(function (_ref, ref) {
44362
+ var type = _ref.type,
44363
+ children = _ref.children,
44364
+ onClose = _ref.onClose,
44365
+ dismissible = _ref.dismissible,
44366
+ notDismissible = _ref.notDismissible,
44367
+ _ref$classNamePrefix = _ref.classNamePrefix,
44368
+ classNamePrefix = _ref$classNamePrefix === void 0 ? '' : _ref$classNamePrefix,
44369
+ rest = _objectWithoutProperties(_ref, _excluded);
44325
44370
  var _dismissible = dismissible || type == 'error' || type == 'warning';
44326
44371
  var _notDismissible = notDismissible;
44327
44372
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(Wrapper, _extends({
@@ -44343,9 +44388,6 @@ var Toast = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forwardRef
44343
44388
  }));
44344
44389
  });
44345
44390
  Toast.displayName = 'Toast';
44346
- Toast.defaultProps = {
44347
- classNamePrefix: ''
44348
- };
44349
44391
  Toast.propTypes = {
44350
44392
  type: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['success', 'error', 'warning', 'info', 'generic']),
44351
44393
  onClose: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
@@ -44389,10 +44431,10 @@ var ToastIcon = function ToastIcon(props) {
44389
44431
  size: "xs"
44390
44432
  });
44391
44433
  };
44392
- var RemoveButton = function RemoveButton(props) {
44393
- var onClick = props.onClick,
44394
- dismissible = props.dismissible,
44395
- classNamePrefix = props.classNamePrefix;
44434
+ var RemoveButton = function RemoveButton(_ref2) {
44435
+ var onClick = _ref2.onClick,
44436
+ dismissible = _ref2.dismissible,
44437
+ classNamePrefix = _ref2.classNamePrefix;
44396
44438
  if (!dismissible) return null;
44397
44439
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(StyledRemoveButton, {
44398
44440
  variant: "icon",
@@ -44401,7 +44443,6 @@ var RemoveButton = function RemoveButton(props) {
44401
44443
  className: classNamePrefix + 'dismissButton'
44402
44444
  });
44403
44445
  };
44404
- RemoveButton.defaultProps = {};
44405
44446
  RemoveButton.propTypes = {
44406
44447
  classNamePrefix: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
44407
44448
  onClick: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
@@ -44459,21 +44500,19 @@ var ToastAnimatedComp = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default(
44459
44500
  displayName: "ToastAnimatedComp",
44460
44501
  componentId: "sc-1whlqk5-0"
44461
44502
  })(["display:flex;align-items:center;will-change:transform;max-width:350px;", ";"], function (props) {
44462
- var $position = props.$position,
44503
+ var _props$$position = props.$position,
44504
+ $position = _props$$position === void 0 ? 'bottom-left' : _props$$position,
44463
44505
  $visible = props.$visible;
44464
44506
  var top = $position.includes('top');
44465
44507
  var factor = top ? 1 : -1;
44466
44508
  return $visible ? (0,styled_components__WEBPACK_IMPORTED_MODULE_4__.css)(["animation:", " 0.35s cubic-bezier(.21,1.02,.73,1) forwards;"], enterAnimation(factor)) : (0,styled_components__WEBPACK_IMPORTED_MODULE_4__.css)(["animation:", " 0.4s forwards cubic-bezier(.06,.71,.55,1)"], exitAnimation(factor));
44467
44509
  }));
44468
- ToastAnimatedComp.defaultProps = {
44469
- $position: 'bottom-left'
44470
- };
44471
44510
  ToastAnimatedComp.propTypes = {
44472
44511
  $position: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOf(_utils__WEBPACK_IMPORTED_MODULE_5__.toastPositions),
44473
44512
  $visible: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().bool)
44474
44513
  };
44475
- var ToastComp = function ToastComp(props) {
44476
- var toast = props.toast;
44514
+ var ToastComp = function ToastComp(_ref) {
44515
+ var toast = _ref.toast;
44477
44516
  var id = toast.id,
44478
44517
  type = toast.type,
44479
44518
  onClose = toast.onClose,
@@ -44555,13 +44594,17 @@ __webpack_require__.r(__webpack_exports__);
44555
44594
  var defaultContainerStyle = {
44556
44595
  inset: 24
44557
44596
  };
44558
- var Toaster = function Toaster(props) {
44559
- var position = props.position,
44560
- maxToasts = props.maxToasts,
44561
- idPrefix = props.idPrefix,
44562
- classNamePrefix = props.classNamePrefix,
44563
- containerStyle = props.containerStyle,
44564
- children = props.children;
44597
+ var Toaster = function Toaster(_ref) {
44598
+ var _ref$position = _ref.position,
44599
+ position = _ref$position === void 0 ? 'bottom-left' : _ref$position,
44600
+ _ref$maxToasts = _ref.maxToasts,
44601
+ maxToasts = _ref$maxToasts === void 0 ? 2 : _ref$maxToasts,
44602
+ _ref$idPrefix = _ref.idPrefix,
44603
+ idPrefix = _ref$idPrefix === void 0 ? 'toast' : _ref$idPrefix,
44604
+ _ref$classNamePrefix = _ref.classNamePrefix,
44605
+ classNamePrefix = _ref$classNamePrefix === void 0 ? 'toast' : _ref$classNamePrefix,
44606
+ containerStyle = _ref.containerStyle,
44607
+ children = _ref.children;
44565
44608
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_context__WEBPACK_IMPORTED_MODULE_4__.ToastContext.Provider, {
44566
44609
  value: {
44567
44610
  maxToasts: maxToasts,
@@ -44577,12 +44620,6 @@ var Toaster = function Toaster(props) {
44577
44620
  containerStyle: containerStyle || defaultContainerStyle
44578
44621
  }, _toast_item__WEBPACK_IMPORTED_MODULE_5__.ToastItem));
44579
44622
  };
44580
- Toaster.defaultProps = {
44581
- position: 'bottom-left',
44582
- maxToasts: 2,
44583
- idPrefix: 'toast',
44584
- classNamePrefix: 'toast'
44585
- };
44586
44623
  Toaster.propTypes = {
44587
44624
  position: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(_utils__WEBPACK_IMPORTED_MODULE_3__.toastPositions),
44588
44625
  maxToasts: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number)
@@ -44786,15 +44823,18 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
44786
44823
 
44787
44824
 
44788
44825
  var CLOSE_DELAY = 200;
44789
- var Tooltip = function Tooltip(props) {
44790
- var children = props.children,
44791
- tooltip = props.tooltip,
44792
- placement = props.placement,
44793
- noWrap = props.noWrap,
44794
- interactive = props.interactive,
44795
- trigger = props.trigger,
44796
- className = props.className,
44797
- variant = props.variant;
44826
+ var Tooltip = function Tooltip(_ref) {
44827
+ var children = _ref.children,
44828
+ tooltip = _ref.tooltip,
44829
+ _ref$placement = _ref.placement,
44830
+ placement = _ref$placement === void 0 ? 'top' : _ref$placement,
44831
+ noWrap = _ref.noWrap,
44832
+ interactive = _ref.interactive,
44833
+ _ref$trigger = _ref.trigger,
44834
+ trigger = _ref$trigger === void 0 ? 'hover' : _ref$trigger,
44835
+ className = _ref.className,
44836
+ _ref$variant = _ref.variant,
44837
+ variant = _ref$variant === void 0 ? 'black' : _ref$variant;
44798
44838
  var _useState = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(null),
44799
44839
  _useState2 = _slicedToArray(_useState, 2),
44800
44840
  referenceElement = _useState2[0],
@@ -44880,11 +44920,6 @@ var Tooltip = function Tooltip(props) {
44880
44920
  className: className
44881
44921
  }, triggerProps), children), tooltipNode);
44882
44922
  };
44883
- Tooltip.defaultProps = {
44884
- placement: 'top',
44885
- trigger: 'hover',
44886
- variant: 'black'
44887
- };
44888
44923
  Tooltip.propTypes = {
44889
44924
  tooltip: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().node),
44890
44925
  placement: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(_util__WEBPACK_IMPORTED_MODULE_5__.tooltipPlacement),
@@ -45125,32 +45160,36 @@ __webpack_require__.r(__webpack_exports__);
45125
45160
 
45126
45161
  /*jslint react:true*/
45127
45162
  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); }
45163
+ var _excluded = ["variant", "children"];
45128
45164
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
45129
45165
  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; }
45130
45166
  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; }
45131
45167
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
45132
45168
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
45133
45169
  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); }
45170
+ function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
45171
+ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } } return target; }
45134
45172
 
45135
45173
 
45136
45174
 
45137
45175
 
45138
45176
 
45139
45177
 
45140
- var Header = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().forwardRef(function (props, ref) {
45178
+ var Header = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().forwardRef(function (_ref, ref) {
45179
+ var _ref$variant = _ref.variant,
45180
+ variant = _ref$variant === void 0 ? 'xl' : _ref$variant,
45181
+ children = _ref.children,
45182
+ rest = _objectWithoutProperties(_ref, _excluded);
45141
45183
  var t = (0,_translation__WEBPACK_IMPORTED_MODULE_2__.useReactTranslate)();
45142
- var typographyProps = _objectSpread(_objectSpread({}, (0,_get_typography_props__WEBPACK_IMPORTED_MODULE_4__.getTypographyProps)(props)), {}, {
45184
+ var typographyProps = _objectSpread(_objectSpread({}, (0,_get_typography_props__WEBPACK_IMPORTED_MODULE_4__.getTypographyProps)(rest)), {}, {
45143
45185
  font_weight: 'semibold',
45144
- font_size: props.variant == '2xl' ? 'xl' : 'lg'
45186
+ font_size: variant == '2xl' ? 'xl' : 'lg'
45145
45187
  });
45146
45188
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_5__["default"], _extends({
45147
45189
  ref: ref
45148
- }, typographyProps), t(props.children));
45190
+ }, typographyProps), t(children));
45149
45191
  });
45150
45192
  Header.displayName = 'Header';
45151
- Header.defaultProps = {
45152
- variant: 'xl'
45153
- };
45154
45193
  Header.propTypes = {
45155
45194
  variant: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOf(['xl', '2xl']),
45156
45195
  whiteSpace: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOf(_constant__WEBPACK_IMPORTED_MODULE_3__.WHITE_SPACES)
@@ -45183,33 +45222,37 @@ __webpack_require__.r(__webpack_exports__);
45183
45222
 
45184
45223
  /*jslint react:true*/
45185
45224
  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); }
45225
+ var _excluded = ["variant", "children"];
45186
45226
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
45187
45227
  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; }
45188
45228
  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; }
45189
45229
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
45190
45230
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
45191
45231
  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); }
45232
+ function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
45233
+ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } } return target; }
45192
45234
 
45193
45235
 
45194
45236
 
45195
45237
 
45196
45238
 
45197
45239
 
45198
- var Hyperlink = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().forwardRef(function (props, ref) {
45240
+ var Hyperlink = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().forwardRef(function (_ref, ref) {
45241
+ var _ref$variant = _ref.variant,
45242
+ variant = _ref$variant === void 0 ? 'lg' : _ref$variant,
45243
+ children = _ref.children,
45244
+ rest = _objectWithoutProperties(_ref, _excluded);
45199
45245
  var t = (0,_translation__WEBPACK_IMPORTED_MODULE_2__.useReactTranslate)();
45200
- var typographyProps = _objectSpread(_objectSpread({}, (0,_get_typography_props__WEBPACK_IMPORTED_MODULE_4__.getTypographyProps)(props)), {}, {
45201
- font_size: props.variant == 'lg' ? 'md' : 'xs',
45246
+ var typographyProps = _objectSpread(_objectSpread({}, (0,_get_typography_props__WEBPACK_IMPORTED_MODULE_4__.getTypographyProps)(rest)), {}, {
45247
+ font_size: variant == 'lg' ? 'md' : 'xs',
45202
45248
  line_height: 'none',
45203
45249
  underline: true
45204
45250
  });
45205
45251
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_5__["default"], _extends({
45206
45252
  ref: ref
45207
- }, typographyProps), t(props.children));
45253
+ }, typographyProps), t(children));
45208
45254
  });
45209
45255
  Hyperlink.displayName = 'Hyperlink';
45210
- Hyperlink.defaultProps = {
45211
- variant: 'lg'
45212
- };
45213
45256
  Hyperlink.propTypes = {
45214
45257
  variant: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOf(['xs', 'lg']),
45215
45258
  whiteSpace: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOf(_constant__WEBPACK_IMPORTED_MODULE_3__.WHITE_SPACES)
@@ -45275,40 +45318,44 @@ __webpack_require__.r(__webpack_exports__);
45275
45318
 
45276
45319
  /*jslint react:true*/
45277
45320
  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); }
45321
+ var _excluded = ["variant", "children"];
45278
45322
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
45279
45323
  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; }
45280
45324
  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; }
45281
45325
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
45282
45326
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
45283
45327
  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); }
45328
+ function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
45329
+ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } } return target; }
45284
45330
 
45285
45331
 
45286
45332
 
45287
45333
 
45288
45334
 
45289
45335
 
45290
- var Label = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().forwardRef(function (props, ref) {
45336
+ var Label = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().forwardRef(function (_ref, ref) {
45337
+ var _ref$variant = _ref.variant,
45338
+ variant = _ref$variant === void 0 ? 'base' : _ref$variant,
45339
+ children = _ref.children,
45340
+ rest = _objectWithoutProperties(_ref, _excluded);
45291
45341
  var t = (0,_translation__WEBPACK_IMPORTED_MODULE_2__.useReactTranslate)();
45292
- var typographyProps = _objectSpread(_objectSpread({}, (0,_get_typography_props__WEBPACK_IMPORTED_MODULE_4__.getTypographyProps)(props)), {}, {
45342
+ var typographyProps = _objectSpread(_objectSpread({}, (0,_get_typography_props__WEBPACK_IMPORTED_MODULE_4__.getTypographyProps)(rest)), {}, {
45293
45343
  font_size: {
45294
45344
  xxs: 'xxs',
45295
45345
  xs: 'xs',
45296
45346
  sm: 'sm',
45297
45347
  sm_medium: 'sm'
45298
- }[props.variant] || 'md',
45348
+ }[variant] || 'md',
45299
45349
  font_weight: {
45300
45350
  lg: 'semibold',
45301
45351
  sm_medium: 'medium'
45302
- }[props.variant] || 'regular'
45352
+ }[variant] || 'regular'
45303
45353
  });
45304
45354
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_5__["default"], _extends({
45305
45355
  ref: ref
45306
- }, typographyProps), t(props.children));
45356
+ }, typographyProps), t(children));
45307
45357
  });
45308
45358
  Label.displayName = 'Label';
45309
- Label.defaultProps = {
45310
- variant: 'base'
45311
- };
45312
45359
  Label.propTypes = {
45313
45360
  variant: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOf(['xxs', 'xs', 'sm', 'sm_medium', 'base', 'lg']),
45314
45361
  whiteSpace: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOf(_constant__WEBPACK_IMPORTED_MODULE_3__.WHITE_SPACES)
@@ -45341,39 +45388,43 @@ __webpack_require__.r(__webpack_exports__);
45341
45388
 
45342
45389
  /*jslint react:true*/
45343
45390
  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); }
45391
+ var _excluded = ["variant", "children"];
45344
45392
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
45345
45393
  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; }
45346
45394
  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; }
45347
45395
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
45348
45396
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
45349
45397
  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); }
45398
+ function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
45399
+ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } } return target; }
45350
45400
 
45351
45401
 
45352
45402
 
45353
45403
 
45354
45404
 
45355
45405
 
45356
- var Paragraph = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().forwardRef(function (props, ref) {
45406
+ var Paragraph = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().forwardRef(function (_ref, ref) {
45407
+ var _ref$variant = _ref.variant,
45408
+ variant = _ref$variant === void 0 ? 'lg_snug' : _ref$variant,
45409
+ children = _ref.children,
45410
+ rest = _objectWithoutProperties(_ref, _excluded);
45357
45411
  var t = (0,_translation__WEBPACK_IMPORTED_MODULE_2__.useReactTranslate)();
45358
- var typographyProps = _objectSpread(_objectSpread({}, (0,_get_typography_props__WEBPACK_IMPORTED_MODULE_4__.getTypographyProps)(props)), {}, {
45412
+ var typographyProps = _objectSpread(_objectSpread({}, (0,_get_typography_props__WEBPACK_IMPORTED_MODULE_4__.getTypographyProps)(rest)), {}, {
45359
45413
  font_size: {
45360
45414
  xxs: 'xxs',
45361
45415
  xs: 'xs',
45362
45416
  sm: 'sm'
45363
- }[props.variant] || 'md',
45417
+ }[variant] || 'md',
45364
45418
  line_height: {
45365
45419
  xs: 'loose',
45366
45420
  'lg_loose': 'loose'
45367
- }[props.variant] || 'snug'
45421
+ }[variant] || 'snug'
45368
45422
  });
45369
45423
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_5__["default"], _extends({
45370
45424
  ref: ref
45371
- }, typographyProps), t(props.children));
45425
+ }, typographyProps), t(children));
45372
45426
  });
45373
45427
  Paragraph.displayName = 'Paragraph';
45374
- Paragraph.defaultProps = {
45375
- variant: 'lg_snug'
45376
- };
45377
45428
  Paragraph.propTypes = {
45378
45429
  variant: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOf(['xxs', 'xs', 'sm', 'lg_snug', 'lg_loose']),
45379
45430
  whiteSpace: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOf(_constant__WEBPACK_IMPORTED_MODULE_3__.WHITE_SPACES)
@@ -45405,20 +45456,26 @@ __webpack_require__.r(__webpack_exports__);
45405
45456
 
45406
45457
  /*jslint react:true*/
45407
45458
  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); }
45459
+ var _excluded = ["children", "variant"];
45408
45460
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
45409
45461
  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; }
45410
45462
  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; }
45411
45463
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
45412
45464
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
45413
45465
  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); }
45466
+ function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
45467
+ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } } return target; }
45414
45468
 
45415
45469
 
45416
45470
 
45417
45471
 
45418
45472
 
45419
- var Style = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().forwardRef(function (props, ref) {
45420
- var children = props.children;
45421
- var typographyProps = _objectSpread(_objectSpread({}, (0,_get_typography_props__WEBPACK_IMPORTED_MODULE_3__.getTypographyProps)(props)), {}, {
45473
+ var Style = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().forwardRef(function (_ref, ref) {
45474
+ var children = _ref.children,
45475
+ _ref$variant = _ref.variant,
45476
+ variant = _ref$variant === void 0 ? 'italic_lg' : _ref$variant,
45477
+ rest = _objectWithoutProperties(_ref, _excluded);
45478
+ var typographyProps = _objectSpread(_objectSpread({}, (0,_get_typography_props__WEBPACK_IMPORTED_MODULE_3__.getTypographyProps)(rest)), {}, {
45422
45479
  font_size: {
45423
45480
  italic_sm: 'sm',
45424
45481
  italic_xs: 'xs',
@@ -45428,20 +45485,17 @@ var Style = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().forwardRef
45428
45485
  capitals: 'xs',
45429
45486
  capitals_xs: 'xs',
45430
45487
  capitals_xxs: 'xxs'
45431
- }[props.variant] || 'md',
45432
- line_height: ['italic_lg', 'italic_sm'].includes(props.variant) ? 'snug' : 'none',
45433
- font_family: ['code', 'code_sm', 'code_xxs'].includes(props.variant) ? 'mono' : 'sans',
45434
- italic: ['italic_lg', 'italic_sm', 'italic_xs'].includes(props.variant),
45435
- uppercase: ['capitals', 'capitals_xs', 'capitals_xxs'].includes(props.variant)
45488
+ }[variant] || 'md',
45489
+ line_height: ['italic_lg', 'italic_sm'].includes(variant) ? 'snug' : 'none',
45490
+ font_family: ['code', 'code_sm', 'code_xxs'].includes(variant) ? 'mono' : 'sans',
45491
+ italic: ['italic_lg', 'italic_sm', 'italic_xs'].includes(variant),
45492
+ uppercase: ['capitals', 'capitals_xs', 'capitals_xxs'].includes(variant)
45436
45493
  });
45437
45494
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_4__["default"], _extends({
45438
45495
  ref: ref
45439
45496
  }, typographyProps), children);
45440
45497
  });
45441
45498
  Style.displayName = 'Style';
45442
- Style.defaultProps = {
45443
- variant: 'italic_lg'
45444
- };
45445
45499
  Style.propTypes = {
45446
45500
  variant: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOf(['italic_lg', 'italic_sm', 'italic_xs', 'code_sm', 'code_xxs', 'capitals_xs', 'capitals_xxs']),
45447
45501
  whiteSpace: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOf(_constant__WEBPACK_IMPORTED_MODULE_2__.WHITE_SPACES)
@@ -81467,7 +81521,8 @@ const areBoundsEqual = (a, b) => keys.every(key => a[key] === b[key]);
81467
81521
  /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
81468
81522
 
81469
81523
  "use strict";
81470
- /** @license React v16.14.0
81524
+ /**
81525
+ * @license React
81471
81526
  * react-jsx-runtime.development.js
81472
81527
  *
81473
81528
  * Copyright (c) Facebook, Inc. and its affiliates.
@@ -81487,54 +81542,21 @@ var React = __webpack_require__(/*! react */ "react");
81487
81542
  // ATTENTION
81488
81543
  // When adding new symbols to this file,
81489
81544
  // Please consider also adding to 'react-devtools-shared/src/backend/ReactSymbols'
81490
- // The Symbol used to tag the ReactElement-like types. If there is no native Symbol
81491
- // nor polyfill, then a plain number is used for performance.
81492
- var REACT_ELEMENT_TYPE = 0xeac7;
81493
- var REACT_PORTAL_TYPE = 0xeaca;
81494
- exports.Fragment = 0xeacb;
81495
- var REACT_STRICT_MODE_TYPE = 0xeacc;
81496
- var REACT_PROFILER_TYPE = 0xead2;
81497
- var REACT_PROVIDER_TYPE = 0xeacd;
81498
- var REACT_CONTEXT_TYPE = 0xeace;
81499
- var REACT_FORWARD_REF_TYPE = 0xead0;
81500
- var REACT_SUSPENSE_TYPE = 0xead1;
81501
- var REACT_SUSPENSE_LIST_TYPE = 0xead8;
81502
- var REACT_MEMO_TYPE = 0xead3;
81503
- var REACT_LAZY_TYPE = 0xead4;
81504
- var REACT_BLOCK_TYPE = 0xead9;
81505
- var REACT_SERVER_BLOCK_TYPE = 0xeada;
81506
- var REACT_FUNDAMENTAL_TYPE = 0xead5;
81507
- var REACT_SCOPE_TYPE = 0xead7;
81508
- var REACT_OPAQUE_ID_TYPE = 0xeae0;
81509
- var REACT_DEBUG_TRACING_MODE_TYPE = 0xeae1;
81510
- var REACT_OFFSCREEN_TYPE = 0xeae2;
81511
- var REACT_LEGACY_HIDDEN_TYPE = 0xeae3;
81512
-
81513
- if (typeof Symbol === 'function' && Symbol.for) {
81514
- var symbolFor = Symbol.for;
81515
- REACT_ELEMENT_TYPE = symbolFor('react.element');
81516
- REACT_PORTAL_TYPE = symbolFor('react.portal');
81517
- exports.Fragment = symbolFor('react.fragment');
81518
- REACT_STRICT_MODE_TYPE = symbolFor('react.strict_mode');
81519
- REACT_PROFILER_TYPE = symbolFor('react.profiler');
81520
- REACT_PROVIDER_TYPE = symbolFor('react.provider');
81521
- REACT_CONTEXT_TYPE = symbolFor('react.context');
81522
- REACT_FORWARD_REF_TYPE = symbolFor('react.forward_ref');
81523
- REACT_SUSPENSE_TYPE = symbolFor('react.suspense');
81524
- REACT_SUSPENSE_LIST_TYPE = symbolFor('react.suspense_list');
81525
- REACT_MEMO_TYPE = symbolFor('react.memo');
81526
- REACT_LAZY_TYPE = symbolFor('react.lazy');
81527
- REACT_BLOCK_TYPE = symbolFor('react.block');
81528
- REACT_SERVER_BLOCK_TYPE = symbolFor('react.server.block');
81529
- REACT_FUNDAMENTAL_TYPE = symbolFor('react.fundamental');
81530
- REACT_SCOPE_TYPE = symbolFor('react.scope');
81531
- REACT_OPAQUE_ID_TYPE = symbolFor('react.opaque.id');
81532
- REACT_DEBUG_TRACING_MODE_TYPE = symbolFor('react.debug_trace_mode');
81533
- REACT_OFFSCREEN_TYPE = symbolFor('react.offscreen');
81534
- REACT_LEGACY_HIDDEN_TYPE = symbolFor('react.legacy_hidden');
81535
- }
81536
-
81537
- var MAYBE_ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
81545
+ // The Symbol used to tag the ReactElement-like types.
81546
+ var REACT_ELEMENT_TYPE = Symbol.for('react.element');
81547
+ var REACT_PORTAL_TYPE = Symbol.for('react.portal');
81548
+ var REACT_FRAGMENT_TYPE = Symbol.for('react.fragment');
81549
+ var REACT_STRICT_MODE_TYPE = Symbol.for('react.strict_mode');
81550
+ var REACT_PROFILER_TYPE = Symbol.for('react.profiler');
81551
+ var REACT_PROVIDER_TYPE = Symbol.for('react.provider');
81552
+ var REACT_CONTEXT_TYPE = Symbol.for('react.context');
81553
+ var REACT_FORWARD_REF_TYPE = Symbol.for('react.forward_ref');
81554
+ var REACT_SUSPENSE_TYPE = Symbol.for('react.suspense');
81555
+ var REACT_SUSPENSE_LIST_TYPE = Symbol.for('react.suspense_list');
81556
+ var REACT_MEMO_TYPE = Symbol.for('react.memo');
81557
+ var REACT_LAZY_TYPE = Symbol.for('react.lazy');
81558
+ var REACT_OFFSCREEN_TYPE = Symbol.for('react.offscreen');
81559
+ var MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
81538
81560
  var FAUX_ITERATOR_SYMBOL = '@@iterator';
81539
81561
  function getIteratorFn(maybeIterable) {
81540
81562
  if (maybeIterable === null || typeof maybeIterable !== 'object') {
@@ -81554,11 +81576,13 @@ var ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FI
81554
81576
 
81555
81577
  function error(format) {
81556
81578
  {
81557
- for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
81558
- args[_key2 - 1] = arguments[_key2];
81559
- }
81579
+ {
81580
+ for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
81581
+ args[_key2 - 1] = arguments[_key2];
81582
+ }
81560
81583
 
81561
- printWarning('error', format, args);
81584
+ printWarning('error', format, args);
81585
+ }
81562
81586
  }
81563
81587
  }
81564
81588
 
@@ -81567,23 +81591,16 @@ function printWarning(level, format, args) {
81567
81591
  // update consoleWithStackDev.www.js as well.
81568
81592
  {
81569
81593
  var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
81570
- var stack = '';
81571
-
81572
- if (currentlyValidatingElement) {
81573
- var name = getComponentName(currentlyValidatingElement.type);
81574
- var owner = currentlyValidatingElement._owner;
81575
- stack += describeComponentFrame(name, currentlyValidatingElement._source, owner && getComponentName(owner.type));
81576
- }
81577
-
81578
- stack += ReactDebugCurrentFrame.getStackAddendum();
81594
+ var stack = ReactDebugCurrentFrame.getStackAddendum();
81579
81595
 
81580
81596
  if (stack !== '') {
81581
81597
  format += '%s';
81582
81598
  args = args.concat([stack]);
81583
- }
81599
+ } // eslint-disable-next-line react-internal/safe-string-coercion
81600
+
81584
81601
 
81585
81602
  var argsWithFormat = args.map(function (item) {
81586
- return '' + item;
81603
+ return String(item);
81587
81604
  }); // Careful: RN currently depends on this prefix
81588
81605
 
81589
81606
  argsWithFormat.unshift('Warning: ' + format); // We intentionally don't use spread (or .apply) directly because it
@@ -81594,9 +81611,23 @@ function printWarning(level, format, args) {
81594
81611
  }
81595
81612
  }
81596
81613
 
81597
- // Filter certain DOM attributes (e.g. src, href) if their values are empty strings.
81614
+ // -----------------------------------------------------------------------------
81598
81615
 
81599
81616
  var enableScopeAPI = false; // Experimental Create Event Handle API.
81617
+ var enableCacheElement = false;
81618
+ var enableTransitionTracing = false; // No known bugs, but needs performance testing
81619
+
81620
+ var enableLegacyHidden = false; // Enables unstable_avoidThisFallback feature in Fiber
81621
+ // stuff. Intended to enable React core members to more easily debug scheduling
81622
+ // issues in DEV builds.
81623
+
81624
+ var enableDebugTracing = false; // Track which Fiber(s) schedule render work.
81625
+
81626
+ var REACT_MODULE_REFERENCE;
81627
+
81628
+ {
81629
+ REACT_MODULE_REFERENCE = Symbol.for('react.module.reference');
81630
+ }
81600
81631
 
81601
81632
  function isValidElementType(type) {
81602
81633
  if (typeof type === 'string' || typeof type === 'function') {
@@ -81604,12 +81635,16 @@ function isValidElementType(type) {
81604
81635
  } // Note: typeof might be other than 'symbol' or 'number' (e.g. if it's a polyfill).
81605
81636
 
81606
81637
 
81607
- if (type === exports.Fragment || type === REACT_PROFILER_TYPE || type === REACT_DEBUG_TRACING_MODE_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || type === REACT_LEGACY_HIDDEN_TYPE || enableScopeAPI ) {
81638
+ if (type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || enableDebugTracing || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || enableLegacyHidden || type === REACT_OFFSCREEN_TYPE || enableScopeAPI || enableCacheElement || enableTransitionTracing ) {
81608
81639
  return true;
81609
81640
  }
81610
81641
 
81611
81642
  if (typeof type === 'object' && type !== null) {
81612
- if (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_BLOCK_TYPE || type[0] === REACT_SERVER_BLOCK_TYPE) {
81643
+ if (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || // This needs to include all possible module reference object
81644
+ // types supported by any Flight configuration anywhere since
81645
+ // we don't know which Flight build this will end up being used
81646
+ // with.
81647
+ type.$$typeof === REACT_MODULE_REFERENCE || type.getModuleId !== undefined) {
81613
81648
  return true;
81614
81649
  }
81615
81650
  }
@@ -81617,51 +81652,24 @@ function isValidElementType(type) {
81617
81652
  return false;
81618
81653
  }
81619
81654
 
81655
+ function getWrappedName(outerType, innerType, wrapperName) {
81656
+ var displayName = outerType.displayName;
81620
81657
 
81621
- var BEFORE_SLASH_RE = /^(.*)[\\\/]/;
81622
- function describeComponentFrame (name, source, ownerName) {
81623
- var sourceInfo = '';
81624
-
81625
- if (source) {
81626
- var path = source.fileName;
81627
- var fileName = path.replace(BEFORE_SLASH_RE, '');
81628
-
81629
- {
81630
- // In DEV, include code for a common special case:
81631
- // prefer "folder/index.js" instead of just "index.js".
81632
- if (/^index\./.test(fileName)) {
81633
- var match = path.match(BEFORE_SLASH_RE);
81634
-
81635
- if (match) {
81636
- var pathBeforeSlash = match[1];
81637
-
81638
- if (pathBeforeSlash) {
81639
- var folderName = pathBeforeSlash.replace(BEFORE_SLASH_RE, '');
81640
- fileName = folderName + '/' + fileName;
81641
- }
81642
- }
81643
- }
81644
- }
81645
-
81646
- sourceInfo = ' (at ' + fileName + ':' + source.lineNumber + ')';
81647
- } else if (ownerName) {
81648
- sourceInfo = ' (created by ' + ownerName + ')';
81658
+ if (displayName) {
81659
+ return displayName;
81649
81660
  }
81650
81661
 
81651
- return '\n in ' + (name || 'Unknown') + sourceInfo;
81652
- }
81662
+ var functionName = innerType.displayName || innerType.name || '';
81663
+ return functionName !== '' ? wrapperName + "(" + functionName + ")" : wrapperName;
81664
+ } // Keep in sync with react-reconciler/getComponentNameFromFiber
81653
81665
 
81654
- var Resolved = 1;
81655
- function refineResolvedLazyComponent(lazyComponent) {
81656
- return lazyComponent._status === Resolved ? lazyComponent._result : null;
81657
- }
81658
81666
 
81659
- function getWrappedName(outerType, innerType, wrapperName) {
81660
- var functionName = innerType.displayName || innerType.name || '';
81661
- return outerType.displayName || (functionName !== '' ? wrapperName + "(" + functionName + ")" : wrapperName);
81662
- }
81667
+ function getContextName(type) {
81668
+ return type.displayName || 'Context';
81669
+ } // Note that the reconciler package should generally prefer to use getComponentNameFromFiber() instead.
81663
81670
 
81664
- function getComponentName(type) {
81671
+
81672
+ function getComponentNameFromType(type) {
81665
81673
  if (type == null) {
81666
81674
  // Host root, text node or just invalid type.
81667
81675
  return null;
@@ -81669,7 +81677,7 @@ function getComponentName(type) {
81669
81677
 
81670
81678
  {
81671
81679
  if (typeof type.tag === 'number') {
81672
- error('Received an unexpected object in getComponentName(). ' + 'This is likely a bug in React. Please file an issue.');
81680
+ error('Received an unexpected object in getComponentNameFromType(). ' + 'This is likely a bug in React. Please file an issue.');
81673
81681
  }
81674
81682
  }
81675
81683
 
@@ -81682,14 +81690,14 @@ function getComponentName(type) {
81682
81690
  }
81683
81691
 
81684
81692
  switch (type) {
81685
- case exports.Fragment:
81693
+ case REACT_FRAGMENT_TYPE:
81686
81694
  return 'Fragment';
81687
81695
 
81688
81696
  case REACT_PORTAL_TYPE:
81689
81697
  return 'Portal';
81690
81698
 
81691
81699
  case REACT_PROFILER_TYPE:
81692
- return "Profiler";
81700
+ return 'Profiler';
81693
81701
 
81694
81702
  case REACT_STRICT_MODE_TYPE:
81695
81703
  return 'StrictMode';
@@ -81699,56 +81707,414 @@ function getComponentName(type) {
81699
81707
 
81700
81708
  case REACT_SUSPENSE_LIST_TYPE:
81701
81709
  return 'SuspenseList';
81710
+
81702
81711
  }
81703
81712
 
81704
81713
  if (typeof type === 'object') {
81705
81714
  switch (type.$$typeof) {
81706
81715
  case REACT_CONTEXT_TYPE:
81707
- return 'Context.Consumer';
81716
+ var context = type;
81717
+ return getContextName(context) + '.Consumer';
81708
81718
 
81709
81719
  case REACT_PROVIDER_TYPE:
81710
- return 'Context.Provider';
81720
+ var provider = type;
81721
+ return getContextName(provider._context) + '.Provider';
81711
81722
 
81712
81723
  case REACT_FORWARD_REF_TYPE:
81713
81724
  return getWrappedName(type, type.render, 'ForwardRef');
81714
81725
 
81715
81726
  case REACT_MEMO_TYPE:
81716
- return getComponentName(type.type);
81727
+ var outerName = type.displayName || null;
81728
+
81729
+ if (outerName !== null) {
81730
+ return outerName;
81731
+ }
81717
81732
 
81718
- case REACT_BLOCK_TYPE:
81719
- return getComponentName(type.render);
81733
+ return getComponentNameFromType(type.type) || 'Memo';
81720
81734
 
81721
81735
  case REACT_LAZY_TYPE:
81722
81736
  {
81723
- var thenable = type;
81724
- var resolvedThenable = refineResolvedLazyComponent(thenable);
81737
+ var lazyComponent = type;
81738
+ var payload = lazyComponent._payload;
81739
+ var init = lazyComponent._init;
81740
+
81741
+ try {
81742
+ return getComponentNameFromType(init(payload));
81743
+ } catch (x) {
81744
+ return null;
81745
+ }
81746
+ }
81747
+
81748
+ // eslint-disable-next-line no-fallthrough
81749
+ }
81750
+ }
81751
+
81752
+ return null;
81753
+ }
81754
+
81755
+ var assign = Object.assign;
81756
+
81757
+ // Helpers to patch console.logs to avoid logging during side-effect free
81758
+ // replaying on render function. This currently only patches the object
81759
+ // lazily which won't cover if the log function was extracted eagerly.
81760
+ // We could also eagerly patch the method.
81761
+ var disabledDepth = 0;
81762
+ var prevLog;
81763
+ var prevInfo;
81764
+ var prevWarn;
81765
+ var prevError;
81766
+ var prevGroup;
81767
+ var prevGroupCollapsed;
81768
+ var prevGroupEnd;
81769
+
81770
+ function disabledLog() {}
81771
+
81772
+ disabledLog.__reactDisabledLog = true;
81773
+ function disableLogs() {
81774
+ {
81775
+ if (disabledDepth === 0) {
81776
+ /* eslint-disable react-internal/no-production-logging */
81777
+ prevLog = console.log;
81778
+ prevInfo = console.info;
81779
+ prevWarn = console.warn;
81780
+ prevError = console.error;
81781
+ prevGroup = console.group;
81782
+ prevGroupCollapsed = console.groupCollapsed;
81783
+ prevGroupEnd = console.groupEnd; // https://github.com/facebook/react/issues/19099
81784
+
81785
+ var props = {
81786
+ configurable: true,
81787
+ enumerable: true,
81788
+ value: disabledLog,
81789
+ writable: true
81790
+ }; // $FlowFixMe Flow thinks console is immutable.
81791
+
81792
+ Object.defineProperties(console, {
81793
+ info: props,
81794
+ log: props,
81795
+ warn: props,
81796
+ error: props,
81797
+ group: props,
81798
+ groupCollapsed: props,
81799
+ groupEnd: props
81800
+ });
81801
+ /* eslint-enable react-internal/no-production-logging */
81802
+ }
81803
+
81804
+ disabledDepth++;
81805
+ }
81806
+ }
81807
+ function reenableLogs() {
81808
+ {
81809
+ disabledDepth--;
81810
+
81811
+ if (disabledDepth === 0) {
81812
+ /* eslint-disable react-internal/no-production-logging */
81813
+ var props = {
81814
+ configurable: true,
81815
+ enumerable: true,
81816
+ writable: true
81817
+ }; // $FlowFixMe Flow thinks console is immutable.
81818
+
81819
+ Object.defineProperties(console, {
81820
+ log: assign({}, props, {
81821
+ value: prevLog
81822
+ }),
81823
+ info: assign({}, props, {
81824
+ value: prevInfo
81825
+ }),
81826
+ warn: assign({}, props, {
81827
+ value: prevWarn
81828
+ }),
81829
+ error: assign({}, props, {
81830
+ value: prevError
81831
+ }),
81832
+ group: assign({}, props, {
81833
+ value: prevGroup
81834
+ }),
81835
+ groupCollapsed: assign({}, props, {
81836
+ value: prevGroupCollapsed
81837
+ }),
81838
+ groupEnd: assign({}, props, {
81839
+ value: prevGroupEnd
81840
+ })
81841
+ });
81842
+ /* eslint-enable react-internal/no-production-logging */
81843
+ }
81844
+
81845
+ if (disabledDepth < 0) {
81846
+ error('disabledDepth fell below zero. ' + 'This is a bug in React. Please file an issue.');
81847
+ }
81848
+ }
81849
+ }
81725
81850
 
81726
- if (resolvedThenable) {
81727
- return getComponentName(resolvedThenable);
81851
+ var ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher;
81852
+ var prefix;
81853
+ function describeBuiltInComponentFrame(name, source, ownerFn) {
81854
+ {
81855
+ if (prefix === undefined) {
81856
+ // Extract the VM specific prefix used by each line.
81857
+ try {
81858
+ throw Error();
81859
+ } catch (x) {
81860
+ var match = x.stack.trim().match(/\n( *(at )?)/);
81861
+ prefix = match && match[1] || '';
81862
+ }
81863
+ } // We use the prefix to ensure our stacks line up with native stack frames.
81864
+
81865
+
81866
+ return '\n' + prefix + name;
81867
+ }
81868
+ }
81869
+ var reentry = false;
81870
+ var componentFrameCache;
81871
+
81872
+ {
81873
+ var PossiblyWeakMap = typeof WeakMap === 'function' ? WeakMap : Map;
81874
+ componentFrameCache = new PossiblyWeakMap();
81875
+ }
81876
+
81877
+ function describeNativeComponentFrame(fn, construct) {
81878
+ // If something asked for a stack inside a fake render, it should get ignored.
81879
+ if ( !fn || reentry) {
81880
+ return '';
81881
+ }
81882
+
81883
+ {
81884
+ var frame = componentFrameCache.get(fn);
81885
+
81886
+ if (frame !== undefined) {
81887
+ return frame;
81888
+ }
81889
+ }
81890
+
81891
+ var control;
81892
+ reentry = true;
81893
+ var previousPrepareStackTrace = Error.prepareStackTrace; // $FlowFixMe It does accept undefined.
81894
+
81895
+ Error.prepareStackTrace = undefined;
81896
+ var previousDispatcher;
81897
+
81898
+ {
81899
+ previousDispatcher = ReactCurrentDispatcher.current; // Set the dispatcher in DEV because this might be call in the render function
81900
+ // for warnings.
81901
+
81902
+ ReactCurrentDispatcher.current = null;
81903
+ disableLogs();
81904
+ }
81905
+
81906
+ try {
81907
+ // This should throw.
81908
+ if (construct) {
81909
+ // Something should be setting the props in the constructor.
81910
+ var Fake = function () {
81911
+ throw Error();
81912
+ }; // $FlowFixMe
81913
+
81914
+
81915
+ Object.defineProperty(Fake.prototype, 'props', {
81916
+ set: function () {
81917
+ // We use a throwing setter instead of frozen or non-writable props
81918
+ // because that won't throw in a non-strict mode function.
81919
+ throw Error();
81920
+ }
81921
+ });
81922
+
81923
+ if (typeof Reflect === 'object' && Reflect.construct) {
81924
+ // We construct a different control for this case to include any extra
81925
+ // frames added by the construct call.
81926
+ try {
81927
+ Reflect.construct(Fake, []);
81928
+ } catch (x) {
81929
+ control = x;
81930
+ }
81931
+
81932
+ Reflect.construct(fn, [], Fake);
81933
+ } else {
81934
+ try {
81935
+ Fake.call();
81936
+ } catch (x) {
81937
+ control = x;
81938
+ }
81939
+
81940
+ fn.call(Fake.prototype);
81941
+ }
81942
+ } else {
81943
+ try {
81944
+ throw Error();
81945
+ } catch (x) {
81946
+ control = x;
81947
+ }
81948
+
81949
+ fn();
81950
+ }
81951
+ } catch (sample) {
81952
+ // This is inlined manually because closure doesn't do it for us.
81953
+ if (sample && control && typeof sample.stack === 'string') {
81954
+ // This extracts the first frame from the sample that isn't also in the control.
81955
+ // Skipping one frame that we assume is the frame that calls the two.
81956
+ var sampleLines = sample.stack.split('\n');
81957
+ var controlLines = control.stack.split('\n');
81958
+ var s = sampleLines.length - 1;
81959
+ var c = controlLines.length - 1;
81960
+
81961
+ while (s >= 1 && c >= 0 && sampleLines[s] !== controlLines[c]) {
81962
+ // We expect at least one stack frame to be shared.
81963
+ // Typically this will be the root most one. However, stack frames may be
81964
+ // cut off due to maximum stack limits. In this case, one maybe cut off
81965
+ // earlier than the other. We assume that the sample is longer or the same
81966
+ // and there for cut off earlier. So we should find the root most frame in
81967
+ // the sample somewhere in the control.
81968
+ c--;
81969
+ }
81970
+
81971
+ for (; s >= 1 && c >= 0; s--, c--) {
81972
+ // Next we find the first one that isn't the same which should be the
81973
+ // frame that called our sample function and the control.
81974
+ if (sampleLines[s] !== controlLines[c]) {
81975
+ // In V8, the first line is describing the message but other VMs don't.
81976
+ // If we're about to return the first line, and the control is also on the same
81977
+ // line, that's a pretty good indicator that our sample threw at same line as
81978
+ // the control. I.e. before we entered the sample frame. So we ignore this result.
81979
+ // This can happen if you passed a class to function component, or non-function.
81980
+ if (s !== 1 || c !== 1) {
81981
+ do {
81982
+ s--;
81983
+ c--; // We may still have similar intermediate frames from the construct call.
81984
+ // The next one that isn't the same should be our match though.
81985
+
81986
+ if (c < 0 || sampleLines[s] !== controlLines[c]) {
81987
+ // V8 adds a "new" prefix for native classes. Let's remove it to make it prettier.
81988
+ var _frame = '\n' + sampleLines[s].replace(' at new ', ' at '); // If our component frame is labeled "<anonymous>"
81989
+ // but we have a user-provided "displayName"
81990
+ // splice it in to make the stack more readable.
81991
+
81992
+
81993
+ if (fn.displayName && _frame.includes('<anonymous>')) {
81994
+ _frame = _frame.replace('<anonymous>', fn.displayName);
81995
+ }
81996
+
81997
+ {
81998
+ if (typeof fn === 'function') {
81999
+ componentFrameCache.set(fn, _frame);
82000
+ }
82001
+ } // Return the line we found.
82002
+
82003
+
82004
+ return _frame;
82005
+ }
82006
+ } while (s >= 1 && c >= 0);
81728
82007
  }
81729
82008
 
81730
82009
  break;
81731
82010
  }
82011
+ }
82012
+ }
82013
+ } finally {
82014
+ reentry = false;
82015
+
82016
+ {
82017
+ ReactCurrentDispatcher.current = previousDispatcher;
82018
+ reenableLogs();
82019
+ }
82020
+
82021
+ Error.prepareStackTrace = previousPrepareStackTrace;
82022
+ } // Fallback to just using the name if we couldn't make it throw.
82023
+
82024
+
82025
+ var name = fn ? fn.displayName || fn.name : '';
82026
+ var syntheticFrame = name ? describeBuiltInComponentFrame(name) : '';
82027
+
82028
+ {
82029
+ if (typeof fn === 'function') {
82030
+ componentFrameCache.set(fn, syntheticFrame);
81732
82031
  }
81733
82032
  }
81734
82033
 
81735
- return null;
82034
+ return syntheticFrame;
82035
+ }
82036
+ function describeFunctionComponentFrame(fn, source, ownerFn) {
82037
+ {
82038
+ return describeNativeComponentFrame(fn, false);
82039
+ }
82040
+ }
82041
+
82042
+ function shouldConstruct(Component) {
82043
+ var prototype = Component.prototype;
82044
+ return !!(prototype && prototype.isReactComponent);
82045
+ }
82046
+
82047
+ function describeUnknownElementTypeFrameInDEV(type, source, ownerFn) {
82048
+
82049
+ if (type == null) {
82050
+ return '';
82051
+ }
82052
+
82053
+ if (typeof type === 'function') {
82054
+ {
82055
+ return describeNativeComponentFrame(type, shouldConstruct(type));
82056
+ }
82057
+ }
82058
+
82059
+ if (typeof type === 'string') {
82060
+ return describeBuiltInComponentFrame(type);
82061
+ }
82062
+
82063
+ switch (type) {
82064
+ case REACT_SUSPENSE_TYPE:
82065
+ return describeBuiltInComponentFrame('Suspense');
82066
+
82067
+ case REACT_SUSPENSE_LIST_TYPE:
82068
+ return describeBuiltInComponentFrame('SuspenseList');
82069
+ }
82070
+
82071
+ if (typeof type === 'object') {
82072
+ switch (type.$$typeof) {
82073
+ case REACT_FORWARD_REF_TYPE:
82074
+ return describeFunctionComponentFrame(type.render);
82075
+
82076
+ case REACT_MEMO_TYPE:
82077
+ // Memo may contain any component type so we recursively resolve it.
82078
+ return describeUnknownElementTypeFrameInDEV(type.type, source, ownerFn);
82079
+
82080
+ case REACT_LAZY_TYPE:
82081
+ {
82082
+ var lazyComponent = type;
82083
+ var payload = lazyComponent._payload;
82084
+ var init = lazyComponent._init;
82085
+
82086
+ try {
82087
+ // Lazy may contain any component type so we recursively resolve it.
82088
+ return describeUnknownElementTypeFrameInDEV(init(payload), source, ownerFn);
82089
+ } catch (x) {}
82090
+ }
82091
+ }
82092
+ }
82093
+
82094
+ return '';
81736
82095
  }
81737
82096
 
82097
+ var hasOwnProperty = Object.prototype.hasOwnProperty;
82098
+
81738
82099
  var loggedTypeFailures = {};
81739
82100
  var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
81740
- var currentlyValidatingElement = null;
81741
82101
 
81742
82102
  function setCurrentlyValidatingElement(element) {
81743
82103
  {
81744
- currentlyValidatingElement = element;
82104
+ if (element) {
82105
+ var owner = element._owner;
82106
+ var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
82107
+ ReactDebugCurrentFrame.setExtraStackFrame(stack);
82108
+ } else {
82109
+ ReactDebugCurrentFrame.setExtraStackFrame(null);
82110
+ }
81745
82111
  }
81746
82112
  }
81747
82113
 
81748
82114
  function checkPropTypes(typeSpecs, values, location, componentName, element) {
81749
82115
  {
81750
82116
  // $FlowFixMe This is okay but Flow doesn't know it.
81751
- var has = Function.call.bind(Object.prototype.hasOwnProperty);
82117
+ var has = Function.call.bind(hasOwnProperty);
81752
82118
 
81753
82119
  for (var typeSpecName in typeSpecs) {
81754
82120
  if (has(typeSpecs, typeSpecName)) {
@@ -81760,6 +82126,7 @@ function checkPropTypes(typeSpecs, values, location, componentName, element) {
81760
82126
  // This is intentionally an invariant that gets caught. It's the same
81761
82127
  // behavior as without this statement except with a better message.
81762
82128
  if (typeof typeSpecs[typeSpecName] !== 'function') {
82129
+ // eslint-disable-next-line react-internal/prod-error-codes
81763
82130
  var err = Error((componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' + 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' + 'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.');
81764
82131
  err.name = 'Invariant Violation';
81765
82132
  throw err;
@@ -81793,8 +82160,80 @@ function checkPropTypes(typeSpecs, values, location, componentName, element) {
81793
82160
  }
81794
82161
  }
81795
82162
 
82163
+ var isArrayImpl = Array.isArray; // eslint-disable-next-line no-redeclare
82164
+
82165
+ function isArray(a) {
82166
+ return isArrayImpl(a);
82167
+ }
82168
+
82169
+ /*
82170
+ * The `'' + value` pattern (used in in perf-sensitive code) throws for Symbol
82171
+ * and Temporal.* types. See https://github.com/facebook/react/pull/22064.
82172
+ *
82173
+ * The functions in this module will throw an easier-to-understand,
82174
+ * easier-to-debug exception with a clear errors message message explaining the
82175
+ * problem. (Instead of a confusing exception thrown inside the implementation
82176
+ * of the `value` object).
82177
+ */
82178
+ // $FlowFixMe only called in DEV, so void return is not possible.
82179
+ function typeName(value) {
82180
+ {
82181
+ // toStringTag is needed for namespaced types like Temporal.Instant
82182
+ var hasToStringTag = typeof Symbol === 'function' && Symbol.toStringTag;
82183
+ var type = hasToStringTag && value[Symbol.toStringTag] || value.constructor.name || 'Object';
82184
+ return type;
82185
+ }
82186
+ } // $FlowFixMe only called in DEV, so void return is not possible.
82187
+
82188
+
82189
+ function willCoercionThrow(value) {
82190
+ {
82191
+ try {
82192
+ testStringCoercion(value);
82193
+ return false;
82194
+ } catch (e) {
82195
+ return true;
82196
+ }
82197
+ }
82198
+ }
82199
+
82200
+ function testStringCoercion(value) {
82201
+ // If you ended up here by following an exception call stack, here's what's
82202
+ // happened: you supplied an object or symbol value to React (as a prop, key,
82203
+ // DOM attribute, CSS property, string ref, etc.) and when React tried to
82204
+ // coerce it to a string using `'' + value`, an exception was thrown.
82205
+ //
82206
+ // The most common types that will cause this exception are `Symbol` instances
82207
+ // and Temporal objects like `Temporal.Instant`. But any object that has a
82208
+ // `valueOf` or `[Symbol.toPrimitive]` method that throws will also cause this
82209
+ // exception. (Library authors do this to prevent users from using built-in
82210
+ // numeric operators like `+` or comparison operators like `>=` because custom
82211
+ // methods are needed to perform accurate arithmetic or comparison.)
82212
+ //
82213
+ // To fix the problem, coerce this object or symbol value to a string before
82214
+ // passing it to React. The most reliable way is usually `String(value)`.
82215
+ //
82216
+ // To find which value is throwing, check the browser or debugger console.
82217
+ // Before this exception was thrown, there should be `console.error` output
82218
+ // that shows the type (Symbol, Temporal.PlainDate, etc.) that caused the
82219
+ // problem and how that type was used: key, atrribute, input value prop, etc.
82220
+ // In most cases, this console output also shows the component and its
82221
+ // ancestor components where the exception happened.
82222
+ //
82223
+ // eslint-disable-next-line react-internal/safe-string-coercion
82224
+ return '' + value;
82225
+ }
82226
+ function checkKeyStringCoercion(value) {
82227
+ {
82228
+ if (willCoercionThrow(value)) {
82229
+ error('The provided key is an unsupported type %s.' + ' This value must be coerced to a string before before using it here.', typeName(value));
82230
+
82231
+ return testStringCoercion(value); // throw (to help callers find troubleshooting comments)
82232
+ }
82233
+ }
82234
+ }
82235
+
81796
82236
  var ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner;
81797
- var hasOwnProperty = Object.prototype.hasOwnProperty;
81798
82237
  var RESERVED_PROPS = {
81799
82238
  key: true,
81800
82239
  ref: true,
@@ -81840,10 +82279,10 @@ function hasValidKey(config) {
81840
82279
  function warnIfStringRefCannotBeAutoConverted(config, self) {
81841
82280
  {
81842
82281
  if (typeof config.ref === 'string' && ReactCurrentOwner.current && self && ReactCurrentOwner.current.stateNode !== self) {
81843
- var componentName = getComponentName(ReactCurrentOwner.current.type);
82282
+ var componentName = getComponentNameFromType(ReactCurrentOwner.current.type);
81844
82283
 
81845
82284
  if (!didWarnAboutStringRefs[componentName]) {
81846
- error('Component "%s" contains the string ref "%s". ' + 'Support for string refs will be removed in a future major release. ' + 'This case cannot be automatically converted to an arrow function. ' + 'We ask you to manually fix this case by using useRef() or createRef() instead. ' + 'Learn more about using refs safely here: ' + 'https://reactjs.org/link/strict-mode-string-ref', getComponentName(ReactCurrentOwner.current.type), config.ref);
82285
+ error('Component "%s" contains the string ref "%s". ' + 'Support for string refs will be removed in a future major release. ' + 'This case cannot be automatically converted to an arrow function. ' + 'We ask you to manually fix this case by using useRef() or createRef() instead. ' + 'Learn more about using refs safely here: ' + 'https://reactjs.org/link/strict-mode-string-ref', getComponentNameFromType(ReactCurrentOwner.current.type), config.ref);
81847
82286
 
81848
82287
  didWarnAboutStringRefs[componentName] = true;
81849
82288
  }
@@ -81982,10 +82421,18 @@ function jsxDEV(type, config, maybeKey, source, self) {
81982
82421
  // key is explicitly declared to be undefined or not.
81983
82422
 
81984
82423
  if (maybeKey !== undefined) {
82424
+ {
82425
+ checkKeyStringCoercion(maybeKey);
82426
+ }
82427
+
81985
82428
  key = '' + maybeKey;
81986
82429
  }
81987
82430
 
81988
82431
  if (hasValidKey(config)) {
82432
+ {
82433
+ checkKeyStringCoercion(config.key);
82434
+ }
82435
+
81989
82436
  key = '' + config.key;
81990
82437
  }
81991
82438
 
@@ -82032,7 +82479,15 @@ var ReactCurrentOwner$1 = ReactSharedInternals.ReactCurrentOwner;
82032
82479
  var ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame;
82033
82480
 
82034
82481
  function setCurrentlyValidatingElement$1(element) {
82035
- currentlyValidatingElement = element;
82482
+ {
82483
+ if (element) {
82484
+ var owner = element._owner;
82485
+ var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
82486
+ ReactDebugCurrentFrame$1.setExtraStackFrame(stack);
82487
+ } else {
82488
+ ReactDebugCurrentFrame$1.setExtraStackFrame(null);
82489
+ }
82490
+ }
82036
82491
  }
82037
82492
 
82038
82493
  var propTypesMisspellWarningShown;
@@ -82048,6 +82503,7 @@ var propTypesMisspellWarningShown;
82048
82503
  * @final
82049
82504
  */
82050
82505
 
82506
+
82051
82507
  function isValidElement(object) {
82052
82508
  {
82053
82509
  return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
@@ -82057,7 +82513,7 @@ function isValidElement(object) {
82057
82513
  function getDeclarationErrorAddendum() {
82058
82514
  {
82059
82515
  if (ReactCurrentOwner$1.current) {
82060
- var name = getComponentName(ReactCurrentOwner$1.current.type);
82516
+ var name = getComponentNameFromType(ReactCurrentOwner$1.current.type);
82061
82517
 
82062
82518
  if (name) {
82063
82519
  return '\n\nCheck the render method of `' + name + '`.';
@@ -82137,7 +82593,7 @@ function validateExplicitKey(element, parentType) {
82137
82593
 
82138
82594
  if (element && element._owner && element._owner !== ReactCurrentOwner$1.current) {
82139
82595
  // Give the component that originally created this child.
82140
- childOwner = " It was passed a child from " + getComponentName(element._owner.type) + ".";
82596
+ childOwner = " It was passed a child from " + getComponentNameFromType(element._owner.type) + ".";
82141
82597
  }
82142
82598
 
82143
82599
  setCurrentlyValidatingElement$1(element);
@@ -82164,7 +82620,7 @@ function validateChildKeys(node, parentType) {
82164
82620
  return;
82165
82621
  }
82166
82622
 
82167
- if (Array.isArray(node)) {
82623
+ if (isArray(node)) {
82168
82624
  for (var i = 0; i < node.length; i++) {
82169
82625
  var child = node[i];
82170
82626
 
@@ -82227,12 +82683,12 @@ function validatePropTypes(element) {
82227
82683
 
82228
82684
  if (propTypes) {
82229
82685
  // Intentionally inside to avoid triggering lazy initializers:
82230
- var name = getComponentName(type);
82686
+ var name = getComponentNameFromType(type);
82231
82687
  checkPropTypes(propTypes, element.props, 'prop', name, element);
82232
82688
  } else if (type.PropTypes !== undefined && !propTypesMisspellWarningShown) {
82233
82689
  propTypesMisspellWarningShown = true; // Intentionally inside to avoid triggering lazy initializers:
82234
82690
 
82235
- var _name = getComponentName(type);
82691
+ var _name = getComponentNameFromType(type);
82236
82692
 
82237
82693
  error('Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?', _name || 'Unknown');
82238
82694
  }
@@ -82275,6 +82731,7 @@ function validateFragmentProps(fragment) {
82275
82731
  }
82276
82732
  }
82277
82733
 
82734
+ var didWarnAboutKeySpread = {};
82278
82735
  function jsxWithValidation(type, props, key, isStaticChildren, source, self) {
82279
82736
  {
82280
82737
  var validType = isValidElementType(type); // We warn in this case but don't throw. We expect the element creation to
@@ -82299,10 +82756,10 @@ function jsxWithValidation(type, props, key, isStaticChildren, source, self) {
82299
82756
 
82300
82757
  if (type === null) {
82301
82758
  typeString = 'null';
82302
- } else if (Array.isArray(type)) {
82759
+ } else if (isArray(type)) {
82303
82760
  typeString = 'array';
82304
82761
  } else if (type !== undefined && type.$$typeof === REACT_ELEMENT_TYPE) {
82305
- typeString = "<" + (getComponentName(type.type) || 'Unknown') + " />";
82762
+ typeString = "<" + (getComponentNameFromType(type.type) || 'Unknown') + " />";
82306
82763
  info = ' Did you accidentally export a JSX literal instead of a component?';
82307
82764
  } else {
82308
82765
  typeString = typeof type;
@@ -82328,7 +82785,7 @@ function jsxWithValidation(type, props, key, isStaticChildren, source, self) {
82328
82785
 
82329
82786
  if (children !== undefined) {
82330
82787
  if (isStaticChildren) {
82331
- if (Array.isArray(children)) {
82788
+ if (isArray(children)) {
82332
82789
  for (var i = 0; i < children.length; i++) {
82333
82790
  validateChildKeys(children[i], type);
82334
82791
  }
@@ -82345,7 +82802,25 @@ function jsxWithValidation(type, props, key, isStaticChildren, source, self) {
82345
82802
  }
82346
82803
  }
82347
82804
 
82348
- if (type === exports.Fragment) {
82805
+ {
82806
+ if (hasOwnProperty.call(props, 'key')) {
82807
+ var componentName = getComponentNameFromType(type);
82808
+ var keys = Object.keys(props).filter(function (k) {
82809
+ return k !== 'key';
82810
+ });
82811
+ var beforeExample = keys.length > 0 ? '{key: someKey, ' + keys.join(': ..., ') + ': ...}' : '{key: someKey}';
82812
+
82813
+ if (!didWarnAboutKeySpread[componentName + beforeExample]) {
82814
+ var afterExample = keys.length > 0 ? '{' + keys.join(': ..., ') + ': ...}' : '{}';
82815
+
82816
+ error('A props object containing a "key" prop is being spread into JSX:\n' + ' let props = %s;\n' + ' <%s {...props} />\n' + 'React keys must be passed directly to JSX without using spread:\n' + ' let props = %s;\n' + ' <%s key={someKey} {...props} />', beforeExample, componentName, afterExample, componentName);
82817
+
82818
+ didWarnAboutKeySpread[componentName + beforeExample] = true;
82819
+ }
82820
+ }
82821
+ }
82822
+
82823
+ if (type === REACT_FRAGMENT_TYPE) {
82349
82824
  validateFragmentProps(element);
82350
82825
  } else {
82351
82826
  validatePropTypes(element);
@@ -82374,6 +82849,7 @@ var jsx = jsxWithValidationDynamic ; // we may want to special case jsxs intern
82374
82849
 
82375
82850
  var jsxs = jsxWithValidationStatic ;
82376
82851
 
82852
+ exports.Fragment = REACT_FRAGMENT_TYPE;
82377
82853
  exports.jsx = jsx;
82378
82854
  exports.jsxs = jsxs;
82379
82855
  })();