@luminati-io/uikit 3.8.3 → 3.9.1

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,15 @@ 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,
33822
+ isRange: isRange
33777
33823
  }));
33778
33824
  });
33779
33825
  DatePicker.displayName = 'DatePicker';
33780
- DatePicker.defaultProps = {
33781
- format: 'dd/MM/yyyy',
33782
- size: 'md',
33783
- isRange: false
33784
- };
33785
33826
  DatePicker.propTypes = {
33786
33827
  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
33828
  format: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
@@ -33850,7 +33891,7 @@ var PickerPopover = function PickerPopover(props) {
33850
33891
  onChange = props.onChange,
33851
33892
  renderPopover = props.renderPopover,
33852
33893
  popover = props.popover,
33853
- rest = _objectWithoutProperties(props, _excluded);
33894
+ rest = _objectWithoutProperties(props, _excluded2);
33854
33895
  var handleDayClick = (0,react__WEBPACK_IMPORTED_MODULE_1__.useCallback)(function (day, activeModifiers) {
33855
33896
  if (activeModifiers.disabled) return;
33856
33897
  var val = day;
@@ -33870,8 +33911,8 @@ var PickerPopover = function PickerPopover(props) {
33870
33911
  }
33871
33912
  onChange(val);
33872
33913
  }, [mode, selected]);
33873
- var render = typeof renderPopover == 'function' ? renderPopover : function (_ref) {
33874
- var picker = _ref.picker;
33914
+ var render = typeof renderPopover == 'function' ? renderPopover : function (_ref2) {
33915
+ var picker = _ref2.picker;
33875
33916
  return picker;
33876
33917
  };
33877
33918
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(DayPickerWrapper, {
@@ -33928,21 +33969,21 @@ Day.displayName = 'Day';
33928
33969
  var DayWrapper = styled_components__WEBPACK_IMPORTED_MODULE_3___default().div.withConfig({
33929
33970
  displayName: "DayWrapper",
33930
33971
  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) {
33972
+ })(["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
33973
  var $mod = _ref3.$mod;
33936
- return $mod.range_middle || $mod.range_end && !$mod.range_start ? '0' : borderRadius;
33974
+ return $mod.selected ? _theme__WEBPACK_IMPORTED_MODULE_5__["default"].color.blue_3 : _theme__WEBPACK_IMPORTED_MODULE_5__["default"].color.white;
33937
33975
  }, function (_ref4) {
33938
33976
  var $mod = _ref4.$mod;
33939
33977
  return $mod.range_middle || $mod.range_end && !$mod.range_start ? '0' : borderRadius;
33940
33978
  }, function (_ref5) {
33941
33979
  var $mod = _ref5.$mod;
33942
- return $mod.range_middle || $mod.range_start && !$mod.range_end ? '0' : borderRadius;
33980
+ return $mod.range_middle || $mod.range_end && !$mod.range_start ? '0' : borderRadius;
33943
33981
  }, function (_ref6) {
33944
33982
  var $mod = _ref6.$mod;
33945
33983
  return $mod.range_middle || $mod.range_start && !$mod.range_end ? '0' : borderRadius;
33984
+ }, function (_ref7) {
33985
+ var $mod = _ref7.$mod;
33986
+ return $mod.range_middle || $mod.range_start && !$mod.range_end ? '0' : borderRadius;
33946
33987
  }, 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
33988
  var getDateText = function getDateText(props) {
33948
33989
  var value = props.value,
@@ -34031,13 +34072,23 @@ var addItem = function addItem(matrix, i, j, item) {
34031
34072
  var newMatrix = matrix.toSpliced(i, 1, newRow);
34032
34073
  return newMatrix;
34033
34074
  };
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;
34075
+ var noop = function noop() {
34076
+ return 0;
34077
+ };
34078
+ var DragDrop = function DragDrop(_ref) {
34079
+ var _ref$value = _ref.value,
34080
+ value = _ref$value === void 0 ? [[]] : _ref$value,
34081
+ _ref$onChange = _ref.onChange,
34082
+ onChange = _ref$onChange === void 0 ? noop : _ref$onChange,
34083
+ _ref$items = _ref.items,
34084
+ items = _ref$items === void 0 ? [] : _ref$items,
34085
+ _ref$sections = _ref.sections,
34086
+ sections = _ref$sections === void 0 ? [] : _ref$sections,
34087
+ _ref$direction = _ref.direction,
34088
+ direction = _ref$direction === void 0 ? 'row' : _ref$direction,
34089
+ CustomDrop = _ref.CustomDrop,
34090
+ CustomDrag = _ref.CustomDrag,
34091
+ EmptyComp = _ref.EmptyComp;
34041
34092
  var onDragEnd = (0,react__WEBPACK_IMPORTED_MODULE_1__.useCallback)(function (arg) {
34042
34093
  var source = arg.source,
34043
34094
  destination = arg.destination;
@@ -34084,21 +34135,12 @@ var DragDrop = function DragDrop(props) {
34084
34135
  isFirst: i == 0,
34085
34136
  isLast: i == value.length - 1,
34086
34137
  containerDirection: direction,
34087
- Comp: props.CustomDrop,
34088
- DragComp: props.CustomDrag,
34089
- EmptyComp: props.EmptyComp
34138
+ Comp: CustomDrop,
34139
+ DragComp: CustomDrag,
34140
+ EmptyComp: EmptyComp
34090
34141
  });
34091
34142
  })));
34092
34143
  };
34093
- DragDrop.displayName = 'DragDrop';
34094
- DragDrop.defaultProps = {
34095
- value: [[]],
34096
- items: [],
34097
- onChange: function onChange() {
34098
- return 0;
34099
- },
34100
- direction: 'row'
34101
- };
34102
34144
  DragDrop.propTypes = {
34103
34145
  value: prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().array)),
34104
34146
  items: prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().object)),
@@ -34464,7 +34506,7 @@ __webpack_require__.r(__webpack_exports__);
34464
34506
 
34465
34507
 
34466
34508
  /*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"];
34509
+ 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
34510
  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
34511
  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
34512
  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 +34533,7 @@ var defaultIsOptionDisabled = function defaultIsOptionDisabled(opt) {
34491
34533
  return opt.disabled;
34492
34534
  };
34493
34535
  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'),
34536
+ 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
34537
  _splitProps2 = _slicedToArray(_splitProps, 2),
34496
34538
  selectProps = _splitProps2[0],
34497
34539
  restProps = _splitProps2[1];
@@ -34504,7 +34546,8 @@ var Dropdown = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forward
34504
34546
  placeholder = restProps.placeholder,
34505
34547
  multiselect = restProps.multiselect,
34506
34548
  creatable = restProps.creatable,
34507
- clearable = restProps.clearable,
34549
+ _restProps$clearable = restProps.clearable,
34550
+ clearable = _restProps$clearable === void 0 ? false : _restProps$clearable,
34508
34551
  disabled = restProps.disabled,
34509
34552
  invalid = restProps.invalid,
34510
34553
  helperText = restProps.helperText,
@@ -34515,10 +34558,20 @@ var Dropdown = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forward
34515
34558
  async = restProps.async,
34516
34559
  searchable = restProps.searchable,
34517
34560
  closeMenuOnSelect = restProps.closeMenuOnSelect,
34561
+ _restProps$size = restProps.size,
34562
+ size = _restProps$size === void 0 ? 'sm' : _restProps$size,
34563
+ _restProps$menuPlacem = restProps.menuPlacement,
34564
+ menuPlacement = _restProps$menuPlacem === void 0 ? 'auto' : _restProps$menuPlacem,
34565
+ menuPortalTarget = restProps.menuPortalTarget,
34566
+ _styles = restProps.styles,
34518
34567
  rest = _objectWithoutProperties(restProps, _excluded);
34519
34568
  var labelId = (0,_hooks__WEBPACK_IMPORTED_MODULE_5__.useLabelId)(id);
34520
34569
  var t = (0,_translation__WEBPACK_IMPORTED_MODULE_7__.useTranslate)();
34521
- var styles = (0,_use_styles__WEBPACK_IMPORTED_MODULE_11__.useStyles)(props);
34570
+ var styles = (0,_use_styles__WEBPACK_IMPORTED_MODULE_11__.useStyles)({
34571
+ styles: _styles,
34572
+ size: size,
34573
+ menuPortalTarget: menuPortalTarget
34574
+ });
34522
34575
  var SelectComp = getComponent({
34523
34576
  async: async,
34524
34577
  creatable: creatable
@@ -34556,7 +34609,9 @@ var Dropdown = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forward
34556
34609
  classNamePrefix: classNamePrefix,
34557
34610
  closeMenuOnSelect: (0,_util__WEBPACK_IMPORTED_MODULE_8__.firstDefined)(closeMenuOnSelect, !multiselect),
34558
34611
  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)
34612
+ isOptionDisabled: (0,_util__WEBPACK_IMPORTED_MODULE_8__.firstDefined)(isOptionDisabled, defaultIsOptionDisabled),
34613
+ menuPlacement: menuPlacement,
34614
+ menuPortalTarget: menuPortalTarget
34560
34615
  })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_shared__WEBPACK_IMPORTED_MODULE_9__.HelperText, {
34561
34616
  invalid: invalid
34562
34617
  }, helperText));
@@ -34614,11 +34669,6 @@ Dropdown.propTypes = {
34614
34669
  menuIsOpen: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
34615
34670
  closeMenuOnSelect: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool)
34616
34671
  };
34617
- Dropdown.defaultProps = {
34618
- size: 'sm',
34619
- clearable: false,
34620
- menuPlacement: 'auto'
34621
- };
34622
34672
  var getComponent = function getComponent(opt) {
34623
34673
  if (opt.async) return opt.creatable ? react_select_async_creatable__WEBPACK_IMPORTED_MODULE_4__["default"] : react_select_async__WEBPACK_IMPORTED_MODULE_3__["default"];
34624
34674
  return opt.creatable ? react_select_creatable__WEBPACK_IMPORTED_MODULE_2__["default"] : react_select__WEBPACK_IMPORTED_MODULE_12__["default"];
@@ -35203,16 +35253,24 @@ function _extends() { _extends = Object.assign ? Object.assign.bind() : function
35203
35253
 
35204
35254
 
35205
35255
 
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;
35256
+ var defaultFileInfoFormatter = function defaultFileInfoFormatter() {
35257
+ var file = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
35258
+ return file.name || '';
35259
+ };
35260
+ var FileUploader = function FileUploader(_ref) {
35261
+ var label = _ref.label,
35262
+ _ref$antiVirusScanTex = _ref.antiVirusScanText,
35263
+ antiVirusScanText = _ref$antiVirusScanTex === void 0 ? 'Scanning for viruses...' : _ref$antiVirusScanTex,
35264
+ accept = _ref.accept,
35265
+ multi = _ref.multi,
35266
+ _ref$files = _ref.files,
35267
+ files = _ref$files === void 0 ? [] : _ref$files,
35268
+ _ref$fileInfoFormatte = _ref.fileInfoFormatter,
35269
+ fileInfoFormatter = _ref$fileInfoFormatte === void 0 ? defaultFileInfoFormatter : _ref$fileInfoFormatte,
35270
+ onFileUpload = _ref.onFileUpload,
35271
+ onFileDelete = _ref.onFileDelete,
35272
+ _ref$showDropzone = _ref.showDropzone,
35273
+ showDropzone = _ref$showDropzone === void 0 ? true : _ref$showDropzone;
35216
35274
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_layout__WEBPACK_IMPORTED_MODULE_2__.Flex, {
35217
35275
  flex_direction: "column",
35218
35276
  gap: "03"
@@ -35230,7 +35288,6 @@ var FileUploader = function FileUploader(props) {
35230
35288
  }, file));
35231
35289
  }));
35232
35290
  };
35233
- FileUploader.displayName = 'FileUploader';
35234
35291
  FileUploader.propTypes = {
35235
35292
  label: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
35236
35293
  antiVirusScanText: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
@@ -35253,15 +35310,6 @@ FileUploader.propTypes = {
35253
35310
  onFileUpload: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
35254
35311
  onFileDelete: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func)
35255
35312
  };
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
35313
 
35266
35314
  /***/ }),
35267
35315
 
@@ -35486,10 +35534,7 @@ var UploadItemBody = styled_components__WEBPACK_IMPORTED_MODULE_1___default()(_l
35486
35534
  componentId: "sc-1ua6zh3-2"
35487
35535
  })(["flex-grow:1;"]);
35488
35536
  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,
35537
+ var size = props.size,
35493
35538
  id = props.id,
35494
35539
  status = props.status,
35495
35540
  error = props.error,
@@ -35538,7 +35583,6 @@ UploadItem.propTypes = {
35538
35583
  icon: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().any),
35539
35584
  antiVirusScanText: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string)
35540
35585
  };
35541
- UploadItem.defaultProps = {};
35542
35586
 
35543
35587
  /***/ }),
35544
35588
 
@@ -36663,8 +36707,8 @@ __webpack_require__.r(__webpack_exports__);
36663
36707
 
36664
36708
  /*jslint react:true*/
36665
36709
  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"];
36710
+ var _excluded = ["id", "className", "classNamePrefix", "value", "onChange", "disabled", "options", "variant", "size", "label", "labelIcon", "labelTooltip", "helperText", "invalid", "required", "necessityIndicator"],
36711
+ _excluded2 = ["id", "classNamePrefix", "value", "checked", "onClick", "label", "disabled", "size", "tooltip", "tooltipProps", "verticalAlign"];
36668
36712
  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
36713
  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
36714
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
@@ -36681,24 +36725,27 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
36681
36725
 
36682
36726
 
36683
36727
 
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);
36728
+ var RadioGroup = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forwardRef(function (_ref, ref) {
36729
+ var id = _ref.id,
36730
+ className = _ref.className,
36731
+ classNamePrefix = _ref.classNamePrefix,
36732
+ value = _ref.value,
36733
+ onChange = _ref.onChange,
36734
+ disabled = _ref.disabled,
36735
+ options = _ref.options,
36736
+ _ref$variant = _ref.variant,
36737
+ variant = _ref$variant === void 0 ? 'row' : _ref$variant,
36738
+ _ref$size = _ref.size,
36739
+ size = _ref$size === void 0 ? 'sm' : _ref$size,
36740
+ label = _ref.label,
36741
+ labelIcon = _ref.labelIcon,
36742
+ labelTooltip = _ref.labelTooltip,
36743
+ helperText = _ref.helperText,
36744
+ invalid = _ref.invalid,
36745
+ required = _ref.required,
36746
+ necessityIndicator = _ref.necessityIndicator,
36747
+ rest = _objectWithoutProperties(_ref, _excluded);
36748
+ var labelId = (0,_hooks__WEBPACK_IMPORTED_MODULE_2__.useLabelId)(id);
36702
36749
  var handleChange = function handleChange(val, opt, evt) {
36703
36750
  if (!disabled) onChange === null || onChange === void 0 || onChange(val, opt, evt);
36704
36751
  };
@@ -36708,7 +36755,7 @@ var RadioGroup = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forwa
36708
36755
  container: true
36709
36756
  }, className),
36710
36757
  flex_direction: "column",
36711
- gap: _theme__WEBPACK_IMPORTED_MODULE_4__["default"].spacing['03']
36758
+ gap: "03"
36712
36759
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_shared__WEBPACK_IMPORTED_MODULE_8__.InputLabel, {
36713
36760
  classNamePrefix: classNamePrefix,
36714
36761
  id: labelId,
@@ -36720,6 +36767,7 @@ var RadioGroup = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forwa
36720
36767
  variant: "lg"
36721
36768
  }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_common__WEBPACK_IMPORTED_MODULE_9__.GroupWrapper, _extends({
36722
36769
  ref: ref,
36770
+ id: id,
36723
36771
  className: (0,_util__WEBPACK_IMPORTED_MODULE_7__.classNames)(classNamePrefix, _defineProperty({
36724
36772
  radioGroup: true
36725
36773
  }, "radioGroup--".concat(variant), true)),
@@ -36765,31 +36813,30 @@ RadioGroup.propTypes = {
36765
36813
  })),
36766
36814
  classNamePrefix: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string)
36767
36815
  };
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);
36816
+ var Radio = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forwardRef(function (_ref2, ref) {
36817
+ var id = _ref2.id,
36818
+ classNamePrefix = _ref2.classNamePrefix,
36819
+ value = _ref2.value,
36820
+ checked = _ref2.checked,
36821
+ onClick = _ref2.onClick,
36822
+ label = _ref2.label,
36823
+ disabled = _ref2.disabled,
36824
+ _ref2$size = _ref2.size,
36825
+ size = _ref2$size === void 0 ? 'md' : _ref2$size,
36826
+ tooltip = _ref2.tooltip,
36827
+ tooltipProps = _ref2.tooltipProps,
36828
+ _ref2$verticalAlign = _ref2.verticalAlign,
36829
+ verticalAlign = _ref2$verticalAlign === void 0 ? 'top' : _ref2$verticalAlign,
36830
+ rest = _objectWithoutProperties(_ref2, _excluded2);
36831
+ var labelId = (0,_hooks__WEBPACK_IMPORTED_MODULE_2__.useLabelId)(id);
36785
36832
  var handleClick = function handleClick(evt) {
36786
36833
  if (!disabled) onClick === null || onClick === void 0 || onClick(value, evt);
36787
36834
  };
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({
36835
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_tooltip__WEBPACK_IMPORTED_MODULE_5__.Tooltip, _extends({}, tooltipProps, {
36836
+ tooltip: tooltip
36837
+ }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_common__WEBPACK_IMPORTED_MODULE_9__.RadioWrapper, _extends({
36792
36838
  ref: ref,
36839
+ id: id,
36793
36840
  className: (0,_util__WEBPACK_IMPORTED_MODULE_7__.classNames)(classNamePrefix, _defineProperty(_defineProperty({
36794
36841
  radio: true
36795
36842
  }, 'radio--is-selected', checked), 'radio--is-disabled', disabled))
@@ -36827,10 +36874,6 @@ Radio.propTypes = {
36827
36874
  verticalAlign: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['top', 'middle', 'bottom']),
36828
36875
  size: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['sm', 'md'])
36829
36876
  };
36830
- Radio.defaultProps = {
36831
- verticalAlign: 'top',
36832
- size: 'md'
36833
- };
36834
36877
 
36835
36878
  /***/ }),
36836
36879
 
@@ -36862,7 +36905,7 @@ __webpack_require__.r(__webpack_exports__);
36862
36905
 
36863
36906
  /*jslint react:true*/
36864
36907
  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"];
36908
+ var _excluded = ["options", "classNamePrefix", "rounded", "disabled", "size"];
36866
36909
  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
36910
  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
36911
  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 +36968,29 @@ var RadioTabLabel = function RadioTabLabel(props) {
36925
36968
  }, description)));
36926
36969
  };
36927
36970
  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);
36971
+ var RadioTab = function RadioTab(_ref2) {
36972
+ var options = _ref2.options,
36973
+ classNamePrefix = _ref2.classNamePrefix,
36974
+ rounded = _ref2.rounded,
36975
+ disabled = _ref2.disabled,
36976
+ _ref2$size = _ref2.size,
36977
+ size = _ref2$size === void 0 ? 'sm' : _ref2$size,
36978
+ rest = _objectWithoutProperties(_ref2, _excluded);
36933
36979
  var cnPrefix = classNamePrefix ? "".concat(classNamePrefix, "_").concat(radioTabPrefix) : radioTabPrefix;
36934
36980
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(RadioTabStyled, _extends({}, rest, {
36935
36981
  $rounded: rounded,
36982
+ size: size,
36983
+ disabled: disabled,
36936
36984
  classNamePrefix: cnPrefix,
36937
36985
  options: options.map(function (o) {
36938
36986
  return _objectSpread(_objectSpread({}, o), {}, {
36939
36987
  label: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(RadioTabLabel, _extends({}, o, {
36940
- disabled: props.disabled || o.disabled
36988
+ disabled: disabled || o.disabled
36941
36989
  }))
36942
36990
  });
36943
36991
  })
36944
36992
  }));
36945
36993
  };
36946
- RadioTab.displayName = 'RadioTab';
36947
36994
  RadioTab.propTypes = {
36948
36995
  value: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().any),
36949
36996
  onChange: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
@@ -36968,9 +37015,6 @@ RadioTab.propTypes = {
36968
37015
  })),
36969
37016
  classNamePrefix: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string)
36970
37017
  };
36971
- RadioTab.defaultProps = {
36972
- size: 'sm'
36973
- };
36974
37018
 
36975
37019
  /***/ }),
36976
37020
 
@@ -37164,16 +37208,18 @@ var Field = styled_components__WEBPACK_IMPORTED_MODULE_2___default().input.withC
37164
37208
  displayName: "Field",
37165
37209
  componentId: "sc-r60v1b-0"
37166
37210
  })(["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;
37211
+ var InputLabel = function InputLabel(_ref) {
37212
+ var className = _ref.className,
37213
+ classNamePrefix = _ref.classNamePrefix,
37214
+ id = _ref.id,
37215
+ label = _ref.label,
37216
+ labelIcon = _ref.labelIcon,
37217
+ labelTooltip = _ref.labelTooltip,
37218
+ required = _ref.required,
37219
+ _ref$necessityIndicat = _ref.necessityIndicator,
37220
+ necessityIndicator = _ref$necessityIndicat === void 0 ? 'asterisk' : _ref$necessityIndicat,
37221
+ _ref$variant = _ref.variant,
37222
+ variant = _ref$variant === void 0 ? 'sm' : _ref$variant;
37177
37223
  var t = (0,_translation__WEBPACK_IMPORTED_MODULE_8__.useReactTranslate)();
37178
37224
  if (!label) return null;
37179
37225
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(LabelWrapper, {
@@ -37203,10 +37249,6 @@ var InputLabel = function InputLabel(props) {
37203
37249
  color: "gray_9"
37204
37250
  })));
37205
37251
  };
37206
- InputLabel.displayName = 'InputLabel';
37207
- InputLabel.defaultProps = {
37208
- necessityIndicator: 'asterisk'
37209
- };
37210
37252
  InputLabel.propTypes = {
37211
37253
  label: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().node),
37212
37254
  labelIcon: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
@@ -37215,9 +37257,6 @@ InputLabel.propTypes = {
37215
37257
  necessityIndicator: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['asterisk', 'text']),
37216
37258
  variant: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['sm', 'lg'])
37217
37259
  };
37218
- InputLabel.defaultProps = {
37219
- variant: 'sm'
37220
- };
37221
37260
  var LabelWrapper = styled_components__WEBPACK_IMPORTED_MODULE_2___default().div.withConfig({
37222
37261
  displayName: "LabelWrapper",
37223
37262
  componentId: "sc-r60v1b-1"
@@ -37260,7 +37299,8 @@ var InputWrapper = styled_components__WEBPACK_IMPORTED_MODULE_2___default().div.
37260
37299
  displayName: "InputWrapper",
37261
37300
  componentId: "sc-r60v1b-7"
37262
37301
  })(["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;
37302
+ var _props$$verticalAlign;
37303
+ return (_props$$verticalAlign = props.$verticalAlign) !== null && _props$$verticalAlign !== void 0 ? _props$$verticalAlign : 'normal';
37264
37304
  }, function (props) {
37265
37305
  return props.$leftOuterContent ? '0' : '4px';
37266
37306
  }, function (props) {
@@ -37289,10 +37329,6 @@ var InputWrapper = styled_components__WEBPACK_IMPORTED_MODULE_2___default().div.
37289
37329
  }
37290
37330
  return (0,styled_components__WEBPACK_IMPORTED_MODULE_2__.css)(["cursor:", ";background-color:", ";border-color:", ";color:", ";box-shadow:", ";"], cursor, backgroundColor, borderColor, color, boxShadow);
37291
37331
  });
37292
- InputWrapper.displayName = 'InputWrapper';
37293
- InputWrapper.defaultProps = {
37294
- $verticalAlign: 'normal'
37295
- };
37296
37332
  var HelperText = function HelperText(props) {
37297
37333
  var children = props.children,
37298
37334
  invalid = props.invalid;
@@ -37776,7 +37812,7 @@ __webpack_require__.r(__webpack_exports__);
37776
37812
 
37777
37813
  /*jslint node:true, react:true*/
37778
37814
  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"];
37815
+ 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
37816
  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
37817
  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
37818
  function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
@@ -37801,32 +37837,34 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
37801
37837
 
37802
37838
 
37803
37839
 
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);
37840
+ var TextboxList = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().forwardRef(function (_ref, ref) {
37841
+ var id = _ref.id,
37842
+ className = _ref.className,
37843
+ size = _ref.size,
37844
+ label = _ref.label,
37845
+ labelIcon = _ref.labelIcon,
37846
+ labelTooltip = _ref.labelTooltip,
37847
+ required = _ref.required,
37848
+ necessityIndicator = _ref.necessityIndicator,
37849
+ disabled = _ref.disabled,
37850
+ _ref$buttonText = _ref.buttonText,
37851
+ buttonText = _ref$buttonText === void 0 ? 'Add' : _ref$buttonText,
37852
+ onButtonClick = _ref.onButtonClick,
37853
+ invalid = _ref.invalid,
37854
+ helperText = _ref.helperText,
37855
+ placeholder = _ref.placeholder,
37856
+ value = _ref.value,
37857
+ onFocus = _ref.onFocus,
37858
+ onBlur = _ref.onBlur,
37859
+ onValidate = _ref.onValidate,
37860
+ onRemoveItem = _ref.onRemoveItem,
37861
+ onChange = _ref.onChange,
37862
+ maxItems = _ref.maxItems,
37863
+ itemRenderer = _ref.itemRenderer,
37864
+ isItemDisabled = _ref.isItemDisabled,
37865
+ defaultInputValue = _ref.defaultInputValue,
37866
+ defaultValue = _ref.defaultValue,
37867
+ rest = _objectWithoutProperties(_ref, _excluded);
37830
37868
  var _useState = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(''),
37831
37869
  _useState2 = _slicedToArray(_useState, 2),
37832
37870
  inputValue = _useState2[0],
@@ -37887,9 +37925,7 @@ var TextboxList = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().forw
37887
37925
  onBlur === null || onBlur === void 0 || onBlur(evt);
37888
37926
  }, [onBlur, addItem]);
37889
37927
  var onInputKeyDown = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(function (evt) {
37890
- if (evt.key === 'Enter') {
37891
- addItem(false);
37892
- }
37928
+ if (evt.key === 'Enter') addItem(false);
37893
37929
  }, [addItem]);
37894
37930
  var _onRemoveItem = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(function (val) {
37895
37931
  void _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
@@ -37923,9 +37959,10 @@ var TextboxList = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().forw
37923
37959
  }, _callee2);
37924
37960
  }))();
37925
37961
  }, [value, onRemoveItem, onChange]);
37926
- var labelId = (0,_hooks__WEBPACK_IMPORTED_MODULE_2__.useLabelId)(props.id);
37962
+ var labelId = (0,_hooks__WEBPACK_IMPORTED_MODULE_2__.useLabelId)(id);
37927
37963
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_layout__WEBPACK_IMPORTED_MODULE_3__.Flex, _extends({
37928
37964
  ref: ref,
37965
+ id: id,
37929
37966
  "data-testid": "textbox-list",
37930
37967
  className: className
37931
37968
  }, (0,_util__WEBPACK_IMPORTED_MODULE_4__.getCommonProps)(rest), {
@@ -37970,9 +38007,6 @@ var TextboxList = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().forw
37970
38007
  }, helperText !== null && helperText !== void 0 ? helperText : error));
37971
38008
  });
37972
38009
  TextboxList.displayName = 'TextboxList';
37973
- TextboxList.defaultProps = {
37974
- buttonText: 'Add'
37975
- };
37976
38010
  TextboxList.propTypes = {
37977
38011
  disabled: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().bool),
37978
38012
  required: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().bool),
@@ -38037,19 +38071,23 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
38037
38071
 
38038
38072
 
38039
38073
 
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);
38074
+ var Toggle = function Toggle(_ref) {
38075
+ var id = _ref.id,
38076
+ value = _ref.value,
38077
+ label = _ref.label,
38078
+ disabled = _ref.disabled,
38079
+ _ref$size = _ref.size,
38080
+ size = _ref$size === void 0 ? 'sm' : _ref$size,
38081
+ onChange = _ref.onChange,
38082
+ rest = _objectWithoutProperties(_ref, _excluded);
38048
38083
  var handleChange = (0,react__WEBPACK_IMPORTED_MODULE_1__.useCallback)(function (evt) {
38049
38084
  var checked = evt.target.checked;
38050
38085
  onChange === null || onChange === void 0 || onChange(checked, evt);
38051
38086
  }, [onChange]);
38052
- var color = getLabelColor(props);
38087
+ var color = getLabelColor({
38088
+ disabled: disabled,
38089
+ value: value
38090
+ });
38053
38091
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(ToggleLabel, _extends({}, (0,_util__WEBPACK_IMPORTED_MODULE_5__.getCommonProps)(rest), {
38054
38092
  $size: size
38055
38093
  }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(ToggleInput, {
@@ -38065,10 +38103,6 @@ var Toggle = function Toggle(props) {
38065
38103
  no_wrap: true
38066
38104
  }, label));
38067
38105
  };
38068
- Toggle.displayName = 'Toggle';
38069
- Toggle.defaultProps = {
38070
- size: 'sm'
38071
- };
38072
38106
  Toggle.propTypes = {
38073
38107
  value: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
38074
38108
  label: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
@@ -38253,18 +38287,19 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
38253
38287
 
38254
38288
 
38255
38289
 
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);
38290
+ var Flex = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().forwardRef(function (_ref, ref) {
38291
+ var inline = _ref.inline,
38292
+ align_items = _ref.align_items,
38293
+ align_content = _ref.align_content,
38294
+ justify_items = _ref.justify_items,
38295
+ justify_content = _ref.justify_content,
38296
+ flex_wrap = _ref.flex_wrap,
38297
+ _ref$flex_direction = _ref.flex_direction,
38298
+ flex_direction = _ref$flex_direction === void 0 ? 'row' : _ref$flex_direction,
38299
+ gap = _ref.gap,
38300
+ row_gap = _ref.row_gap,
38301
+ column_gap = _ref.column_gap,
38302
+ rest = _objectWithoutProperties(_ref, _excluded);
38268
38303
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(StyledFlex, _extends({
38269
38304
  ref: ref,
38270
38305
  $inline: inline,
@@ -38280,9 +38315,6 @@ var Flex = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().forwardRef(
38280
38315
  }, rest));
38281
38316
  });
38282
38317
  Flex.displayName = 'Flex';
38283
- Flex.defaultProps = {
38284
- flex_direction: 'row'
38285
- };
38286
38318
  Flex.propTypes = {
38287
38319
  inline: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().bool),
38288
38320
  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 +38404,31 @@ __webpack_require__.r(__webpack_exports__);
38372
38404
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
38373
38405
  /* harmony export */ Link: () => (/* binding */ Link)
38374
38406
  /* 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");
38407
+ /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! prop-types */ "prop-types");
38408
+ /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_0__);
38409
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
38410
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
38411
+ /* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! styled-components */ "styled-components");
38412
+ /* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(styled_components__WEBPACK_IMPORTED_MODULE_2__);
38413
+ /* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../icon */ "./src/icon.js");
38414
+ /* harmony import */ var _theme__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../theme */ "./src/theme.js");
38415
+ /* harmony import */ var _typography__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../typography */ "./src/typography/index.js");
38416
+ /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../utils */ "./src/utils.js");
38387
38417
  // LICENSE_CODE ZON
38388
38418
 
38389
38419
 
38390
38420
  /*jslint react:true*/
38391
-
38392
- var _excluded = ["isLeft", "isRight"];
38393
38421
  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; }
38422
+ var _excluded = ["text", "variant", "size", "underline", "icon", "iconPlacement", "as", "href", "target", "rel", "newTab"],
38423
+ _excluded2 = ["isLeft", "isRight"];
38396
38424
  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
38425
  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
38426
  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
38427
  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
38428
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
38401
38429
  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); }
38430
+ 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; }
38431
+ 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
38432
 
38403
38433
 
38404
38434
 
@@ -38406,24 +38436,44 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
38406
38436
 
38407
38437
 
38408
38438
 
38409
- var _theme$color = _theme__WEBPACK_IMPORTED_MODULE_5__["default"].color,
38439
+ var _theme$color = _theme__WEBPACK_IMPORTED_MODULE_4__["default"].color,
38410
38440
  blue_10 = _theme$color.blue_10,
38411
38441
  blue_11 = _theme$color.blue_11,
38412
38442
  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({
38443
+ var Link = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forwardRef(function (_ref, ref) {
38444
+ var text = _ref.text,
38445
+ _ref$variant = _ref.variant,
38446
+ variant = _ref$variant === void 0 ? 'primary' : _ref$variant,
38447
+ _ref$size = _ref.size,
38448
+ size = _ref$size === void 0 ? 'md' : _ref$size,
38449
+ underline = _ref.underline,
38450
+ icon = _ref.icon,
38451
+ _ref$iconPlacement = _ref.iconPlacement,
38452
+ iconPlacement = _ref$iconPlacement === void 0 ? 'left' : _ref$iconPlacement,
38453
+ as = _ref.as,
38454
+ href = _ref.href,
38455
+ target = _ref.target,
38456
+ rel = _ref.rel,
38457
+ newTab = _ref.newTab,
38458
+ rest = _objectWithoutProperties(_ref, _excluded);
38459
+ var linkProps = _objectSpread(_objectSpread({}, rest), getLinkProps({
38460
+ as: as,
38461
+ href: href,
38462
+ target: target,
38463
+ rel: rel,
38464
+ newTab: newTab
38465
+ }));
38466
+ if (variant == 'inline') return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(InlineLink, _extends({
38421
38467
  ref: ref
38422
38468
  }, linkProps), text);
38423
- var _getIconProps = (0,_utils__WEBPACK_IMPORTED_MODULE_7__.getIconProps)('Link', props),
38469
+ var _getIconProps = (0,_utils__WEBPACK_IMPORTED_MODULE_6__.getIconProps)('Link', {
38470
+ size: size,
38471
+ icon: icon,
38472
+ iconPlacement: iconPlacement
38473
+ }),
38424
38474
  isLeft = _getIconProps.isLeft,
38425
38475
  isRight = _getIconProps.isRight,
38426
- iconProps = _objectWithoutProperties(_getIconProps, _excluded);
38476
+ iconProps = _objectWithoutProperties(_getIconProps, _excluded2);
38427
38477
  var labelProps = {
38428
38478
  variant: {
38429
38479
  lg: 'lg',
@@ -38433,29 +38483,24 @@ var Link = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().forwardRef(
38433
38483
  no_wrap: true,
38434
38484
  'data-label': true
38435
38485
  };
38436
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(StyledLink, _extends({
38486
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(StyledLink, _extends({
38437
38487
  ref: ref
38438
38488
  }, linkProps, {
38439
38489
  $variant: variant,
38440
38490
  $underline: underline,
38441
38491
  $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));
38492
+ }), 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
38493
  });
38444
38494
  Link.displayName = 'Link';
38445
- Link.defaultProps = {
38446
- variant: 'primary',
38447
- size: 'md',
38448
- iconPlacement: 'left'
38449
- };
38450
38495
  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)
38496
+ text: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().node).isRequired,
38497
+ variant: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['primary', 'secondary', 'inline']),
38498
+ size: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['sm', 'md', 'lg']),
38499
+ icon: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(_utils__WEBPACK_IMPORTED_MODULE_6__.iconNames),
38500
+ iconPlacement: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['left', 'right']),
38501
+ href: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
38502
+ newTab: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
38503
+ underline: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool)
38459
38504
  };
38460
38505
  var getLinkProps = function getLinkProps(opt) {
38461
38506
  var as = opt.as,
@@ -38475,11 +38520,11 @@ var getLinkProps = function getLinkProps(opt) {
38475
38520
  });
38476
38521
  return p;
38477
38522
  };
38478
- var StyledLink = styled_components__WEBPACK_IMPORTED_MODULE_3___default().a.withConfig({
38523
+ var StyledLink = styled_components__WEBPACK_IMPORTED_MODULE_2___default().a.withConfig({
38479
38524
  displayName: "StyledLink",
38480
38525
  componentId: "sc-1ilmd36-0"
38481
38526
  })(["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);
38527
+ return (0,_utils__WEBPACK_IMPORTED_MODULE_6__.toPixel)(props.$size == 'lg' ? 8 : 4);
38483
38528
  }, function (props) {
38484
38529
  return props.$variant == 'primary' ? blue_11 : gray_11_50;
38485
38530
  }, function (props) {
@@ -38489,7 +38534,7 @@ var StyledLink = styled_components__WEBPACK_IMPORTED_MODULE_3___default().a.with
38489
38534
  }, function (props) {
38490
38535
  return props.$underline || props.$variant == 'primary' ? 'underline' : 'none';
38491
38536
  });
38492
- var InlineLink = styled_components__WEBPACK_IMPORTED_MODULE_3___default().a.withConfig({
38537
+ var InlineLink = styled_components__WEBPACK_IMPORTED_MODULE_2___default().a.withConfig({
38493
38538
  displayName: "InlineLink",
38494
38539
  componentId: "sc-1ilmd36-1"
38495
38540
  })(["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 +38592,12 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
38547
38592
 
38548
38593
 
38549
38594
 
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);
38595
+ var Menu = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forwardRef(function (_ref, ref) {
38596
+ var items = _ref.items,
38597
+ _ref$size = _ref.size,
38598
+ size = _ref$size === void 0 ? 'md' : _ref$size,
38599
+ noShadow = _ref.noShadow,
38600
+ rest = _objectWithoutProperties(_ref, _excluded);
38555
38601
  if (!items || !items.length) return null;
38556
38602
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_shared__WEBPACK_IMPORTED_MODULE_2__.MenuContainer, _extends({
38557
38603
  ref: ref
@@ -38569,9 +38615,6 @@ var Menu = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forwardRef(
38569
38615
  }));
38570
38616
  });
38571
38617
  Menu.displayName = 'Menu';
38572
- Menu.defaultProps = {
38573
- size: 'md'
38574
- };
38575
38618
  Menu.propTypes = {
38576
38619
  size: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['sm', 'md', 'lg']),
38577
38620
  items: prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().any)).isRequired
@@ -38613,7 +38656,7 @@ __webpack_require__.r(__webpack_exports__);
38613
38656
 
38614
38657
  /*jslint react:true*/
38615
38658
 
38616
- var _excluded = ["type", "text", "secondaryText", "tertiaryText", "description", "size", "children", "variant", "tag", "disabled", "selected", "subMenu", "tooltip", "isFirstItem"],
38659
+ var _excluded = ["type", "text", "secondaryText", "tertiaryText", "description", "size", "children", "variant", "tag", "disabled", "selected", "subMenu", "tooltip", "isFirstItem", "icon", "iconPlacement"],
38617
38660
  _excluded2 = ["isLeft"],
38618
38661
  _excluded3 = ["subItems", "children"],
38619
38662
  _excluded4 = ["popover", "onClick"];
@@ -38633,22 +38676,27 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
38633
38676
 
38634
38677
 
38635
38678
 
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);
38679
+ var MenuItem = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_2__.forwardRef)(function (_ref, ref) {
38680
+ var _ref$type = _ref.type,
38681
+ type = _ref$type === void 0 ? 'item' : _ref$type,
38682
+ text = _ref.text,
38683
+ secondaryText = _ref.secondaryText,
38684
+ tertiaryText = _ref.tertiaryText,
38685
+ description = _ref.description,
38686
+ _ref$size = _ref.size,
38687
+ size = _ref$size === void 0 ? 'md' : _ref$size,
38688
+ children = _ref.children,
38689
+ _ref$variant = _ref.variant,
38690
+ variant = _ref$variant === void 0 ? 'default' : _ref$variant,
38691
+ tag = _ref.tag,
38692
+ disabled = _ref.disabled,
38693
+ selected = _ref.selected,
38694
+ subMenu = _ref.subMenu,
38695
+ tooltip = _ref.tooltip,
38696
+ isFirstItem = _ref.isFirstItem,
38697
+ icon = _ref.icon,
38698
+ iconPlacement = _ref.iconPlacement,
38699
+ rest = _objectWithoutProperties(_ref, _excluded);
38652
38700
  if (type == 'divider') return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_menu_item_divider__WEBPACK_IMPORTED_MODULE_11__["default"], {
38653
38701
  ref: ref
38654
38702
  });
@@ -38663,7 +38711,11 @@ var MenuItem = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_2__.forwardRef)(fu
38663
38711
  isFirstItem: isFirstItem
38664
38712
  }, rest), subItems);
38665
38713
  }
38666
- var _getIconProps = (0,_utils__WEBPACK_IMPORTED_MODULE_9__.getIconProps)('MenuItem', props),
38714
+ var _getIconProps = (0,_utils__WEBPACK_IMPORTED_MODULE_9__.getIconProps)('MenuItem', {
38715
+ size: size,
38716
+ icon: icon,
38717
+ iconPlacement: iconPlacement
38718
+ }),
38667
38719
  isLeft = _getIconProps.isLeft,
38668
38720
  iconProps = _objectWithoutProperties(_getIconProps, _excluded2);
38669
38721
  var iconColor = disabled ? 'gray_6' : variant == 'negative' ? 'red_10' : 'gray_9';
@@ -38675,7 +38727,7 @@ var MenuItem = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_2__.forwardRef)(fu
38675
38727
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_tooltip__WEBPACK_IMPORTED_MODULE_7__.Tooltip, {
38676
38728
  tooltip: tooltip,
38677
38729
  noWrap: true
38678
- }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(MenuItemComp, _extends({}, lodash_omit__WEBPACK_IMPORTED_MODULE_0___default()(rest, 'icon', 'iconPlacement'), {
38730
+ }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(MenuItemComp, _extends({}, rest, {
38679
38731
  "aria-disabled": disabled ? true : undefined,
38680
38732
  size: size,
38681
38733
  role: "button",
@@ -38696,11 +38748,6 @@ var MenuItem = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_2__.forwardRef)(fu
38696
38748
  }))));
38697
38749
  });
38698
38750
  MenuItem.displayName = 'MenuItem';
38699
- MenuItem.defaultProps = {
38700
- type: 'item',
38701
- size: 'md',
38702
- variant: 'default'
38703
- };
38704
38751
  MenuItem.propTypes = {
38705
38752
  text: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().node),
38706
38753
  secondaryText: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().node),
@@ -38905,11 +38952,11 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
38905
38952
 
38906
38953
 
38907
38954
 
38908
- var MenuItemGroup = function MenuItemGroup(props) {
38909
- var text = props.text,
38910
- children = props.children,
38911
- isFirstItem = props.isFirstItem,
38912
- rest = _objectWithoutProperties(props, _excluded);
38955
+ var MenuItemGroup = function MenuItemGroup(_ref) {
38956
+ var text = _ref.text,
38957
+ children = _ref.children,
38958
+ isFirstItem = _ref.isFirstItem,
38959
+ rest = _objectWithoutProperties(_ref, _excluded);
38913
38960
  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
38961
  role: "presentation"
38915
38962
  }, rest), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(GroupTitle, {
@@ -38922,7 +38969,6 @@ var MenuItemGroup = function MenuItemGroup(props) {
38922
38969
  role: "group"
38923
38970
  }, children)));
38924
38971
  };
38925
- MenuItemGroup.displayName = 'MenuItemGroup';
38926
38972
  var GroupTitle = styled_components__WEBPACK_IMPORTED_MODULE_1___default()(_typography__WEBPACK_IMPORTED_MODULE_2__.Label).withConfig({
38927
38973
  displayName: "GroupTitle",
38928
38974
  componentId: "sc-q9wnng-0"
@@ -39034,18 +39080,20 @@ var StyledFooterWrapper = styled_components__WEBPACK_IMPORTED_MODULE_2___default
39034
39080
  displayName: "StyledFooterWrapper",
39035
39081
  componentId: "sc-1nggvo0-3"
39036
39082
  })([""]);
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 ? {
39083
+ var ModalBase = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_1__.forwardRef)(function (_ref, ref) {
39084
+ var className = _ref.className,
39085
+ header = _ref.header,
39086
+ content = _ref.content,
39087
+ footer = _ref.footer,
39088
+ _ref$size = _ref.size,
39089
+ size = _ref$size === void 0 ? 'md' : _ref$size,
39090
+ _ref$shadow = _ref.shadow,
39091
+ shadow = _ref$shadow === void 0 ? 'md' : _ref$shadow,
39092
+ _ref$borders = _ref.borders,
39093
+ borders = _ref$borders === void 0 ? {
39046
39094
  bottom: true
39047
- } : _props$borders,
39048
- rest = _objectWithoutProperties(props, _excluded);
39095
+ } : _ref$borders,
39096
+ rest = _objectWithoutProperties(_ref, _excluded);
39049
39097
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(StyledWrapper, _extends({
39050
39098
  ref: ref,
39051
39099
  className: className
@@ -39075,10 +39123,6 @@ ModalBase.propTypes = {
39075
39123
  content: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().node),
39076
39124
  footer: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().node)
39077
39125
  };
39078
- ModalBase.defaultProps = {
39079
- size: 'md',
39080
- shadow: 'md'
39081
- };
39082
39126
 
39083
39127
  /***/ }),
39084
39128
 
@@ -39296,8 +39340,10 @@ ModalHeader.propTypes = {
39296
39340
  cancelDisabled: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool)
39297
39341
  };
39298
39342
  var ModalFooter = function ModalFooter(_ref3) {
39299
- var okLabel = _ref3.okLabel,
39300
- cancelLabel = _ref3.cancelLabel,
39343
+ var _ref3$okLabel = _ref3.okLabel,
39344
+ okLabel = _ref3$okLabel === void 0 ? 'OK' : _ref3$okLabel,
39345
+ _ref3$cancelLabel = _ref3.cancelLabel,
39346
+ cancelLabel = _ref3$cancelLabel === void 0 ? 'Cancel' : _ref3$cancelLabel,
39301
39347
  onOk = _ref3.onOk,
39302
39348
  onCancel = _ref3.onCancel,
39303
39349
  okDisabled = _ref3.okDisabled,
@@ -39327,10 +39373,6 @@ ModalFooter.propTypes = {
39327
39373
  okDisabled: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
39328
39374
  cancelDisabled: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool)
39329
39375
  };
39330
- ModalFooter.defaultProps = {
39331
- okLabel: 'OK',
39332
- cancelLabel: 'Cancel'
39333
- };
39334
39376
 
39335
39377
  /***/ }),
39336
39378
 
@@ -39678,14 +39720,16 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
39678
39720
 
39679
39721
 
39680
39722
  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);
39723
+ var Snackbar = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forwardRef(function (_ref, ref) {
39724
+ var _ref$variant = _ref.variant,
39725
+ variant = _ref$variant === void 0 ? 'vertical' : _ref$variant,
39726
+ _ref$type = _ref.type,
39727
+ type = _ref$type === void 0 ? 'info' : _ref$type,
39728
+ showIcon = _ref.showIcon,
39729
+ header = _ref.header,
39730
+ children = _ref.children,
39731
+ action = _ref.action,
39732
+ rest = _objectWithoutProperties(_ref, _excluded);
39689
39733
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(Wrapper, _extends({
39690
39734
  ref: ref,
39691
39735
  $type: type
@@ -39698,10 +39742,6 @@ var Snackbar = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forward
39698
39742
  }, children), !!action && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_snackbar_action__WEBPACK_IMPORTED_MODULE_5__.SnackbarAction, action)));
39699
39743
  });
39700
39744
  Snackbar.displayName = 'Snackbar';
39701
- Snackbar.defaultProps = {
39702
- variant: 'vertical',
39703
- type: 'info'
39704
- };
39705
39745
  Snackbar.propTypes = {
39706
39746
  variant: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['vertical', 'horizontal']),
39707
39747
  type: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['info', 'success', 'error', 'warning', 'generic']),
@@ -39889,12 +39929,13 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
39889
39929
 
39890
39930
 
39891
39931
 
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);
39932
+ var Group = function Group(_ref) {
39933
+ var children = _ref.children,
39934
+ className = _ref.className,
39935
+ _ref$variant = _ref.variant,
39936
+ variant = _ref$variant === void 0 ? 'main' : _ref$variant,
39937
+ onKeyDown = _ref.onKeyDown,
39938
+ rest = _objectWithoutProperties(_ref, _excluded);
39898
39939
  var ref = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_1__.createRef)(null);
39899
39940
  var handleKeyDown = (0,react__WEBPACK_IMPORTED_MODULE_1__.useCallback)(function (e) {
39900
39941
  if (e.key == 'ArrowRight' || e.key == 'ArrowLeft') {
@@ -39933,9 +39974,6 @@ var Group = function Group(props) {
39933
39974
  });
39934
39975
  }));
39935
39976
  };
39936
- Group.defaultProps = {
39937
- variant: 'main'
39938
- };
39939
39977
  Group.propTypes = {
39940
39978
  variant: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['main', 'underline', 'contain', 'vertical'])
39941
39979
  };
@@ -40007,21 +40045,26 @@ __webpack_require__.r(__webpack_exports__);
40007
40045
 
40008
40046
 
40009
40047
  /*jslint react:true*/
40048
+ var _excluded = ["className", "variant", "text", "selected", "disabled", "leftContent", "rightContent"];
40010
40049
  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); }
40050
+ 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; }
40051
+ 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
40052
 
40012
40053
 
40013
40054
 
40014
40055
 
40015
40056
 
40016
40057
 
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;
40058
+ var Tab = function Tab(_ref) {
40059
+ var className = _ref.className,
40060
+ _ref$variant = _ref.variant,
40061
+ variant = _ref$variant === void 0 ? 'main' : _ref$variant,
40062
+ text = _ref.text,
40063
+ selected = _ref.selected,
40064
+ disabled = _ref.disabled,
40065
+ leftContent = _ref.leftContent,
40066
+ rightContent = _ref.rightContent,
40067
+ rest = _objectWithoutProperties(_ref, _excluded);
40025
40068
  var Wrap = variant == 'vertical' ? Left : react__WEBPACK_IMPORTED_MODULE_1__.Fragment;
40026
40069
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(TabContainer, _extends({
40027
40070
  role: "tab",
@@ -40031,13 +40074,10 @@ var Tab = function Tab(props) {
40031
40074
  tabIndex: selected ? 0 : -1,
40032
40075
  "aria-disabled": disabled ? 'true' : undefined,
40033
40076
  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, {
40077
+ }, (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
40078
  $variant: variant
40036
40079
  }, text)), rightContent);
40037
40080
  };
40038
- Tab.defaultProps = {
40039
- variant: 'main'
40040
- };
40041
40081
  Tab.propTypes = {
40042
40082
  variant: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['main', 'underline', 'contain', 'vertical']),
40043
40083
  text: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().node).isRequired,
@@ -40094,35 +40134,32 @@ var Text = styled_components__WEBPACK_IMPORTED_MODULE_2___default()(_typography_
40094
40134
  "use strict";
40095
40135
  __webpack_require__.r(__webpack_exports__);
40096
40136
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
40097
- /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__),
40137
+ /* harmony export */ Provider: () => (/* binding */ Provider),
40098
40138
  /* harmony export */ defaultContextValue: () => (/* binding */ defaultContextValue),
40099
40139
  /* harmony export */ useTableContext: () => (/* binding */ useTableContext)
40100
40140
  /* 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");
40141
+ /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! prop-types */ "prop-types");
40142
+ /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_0__);
40143
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
40144
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
40145
+ /* harmony import */ var react_table__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react-table */ "react-table");
40146
+ /* harmony import */ var react_table__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react_table__WEBPACK_IMPORTED_MODULE_2__);
40147
+ /* harmony import */ var _layout__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../layout */ "./src/layout/index.js");
40148
+ /* harmony import */ var _theme__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../theme */ "./src/theme.js");
40149
+ /* harmony import */ var _typography__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../typography */ "./src/typography/index.js");
40150
+ /* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../util */ "./src/util/index.js");
40151
+ /* harmony import */ var _editable_columns__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./editable_columns */ "./src/table/editable_columns.js");
40152
+ /* harmony import */ var _pinned_columns__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./pinned_columns */ "./src/table/pinned_columns.js");
40153
+ /* harmony import */ var _expandable_rows__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./expandable_rows */ "./src/table/expandable_rows.js");
40154
+ /* harmony import */ var _select_rows__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./select_rows */ "./src/table/select_rows.js");
40155
+ /* harmony import */ var _row_menu__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./row_menu */ "./src/table/row_menu.js");
40156
+ /* harmony import */ var _order_logic__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./order_logic */ "./src/table/order_logic.js");
40119
40157
  // LICENSE_CODE ZON
40120
40158
 
40121
40159
 
40122
40160
  /*jslint react:true*/
40123
40161
  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"];
40162
+ 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
40163
  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
40164
  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
40165
  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 +40194,123 @@ var assign = Object.assign;
40157
40194
  var defaultPropGetter = function defaultPropGetter() {
40158
40195
  return {};
40159
40196
  };
40197
+ var defaultIsCellEditable = function defaultIsCellEditable(_ref) {
40198
+ var column = _ref.column;
40199
+ return column.canEdit;
40200
+ };
40160
40201
  var defaultContextValue = {};
40161
- var TableContext = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createContext(defaultContextValue);
40202
+ var TableContext = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createContext(defaultContextValue);
40162
40203
  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, {
40204
+ var Cell = function Cell(_ref2) {
40205
+ var value = _ref2.value;
40206
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_5__.Paragraph, {
40165
40207
  variant: "sm",
40166
40208
  color: "gray-11-50"
40167
- }, String(props.value));
40209
+ }, String(value));
40168
40210
  };
40169
- var Provider = function Provider(props) {
40211
+ var Provider = function Provider(_ref3) {
40170
40212
  var _columns$;
40171
- var defaultColumn = (0,react__WEBPACK_IMPORTED_MODULE_2__.useMemo)(function () {
40213
+ var columns = _ref3.columns,
40214
+ _ref3$data = _ref3.data,
40215
+ data = _ref3$data === void 0 ? [] : _ref3$data,
40216
+ pageSize = _ref3.pageSize,
40217
+ _ref3$pageSizes = _ref3.pageSizes,
40218
+ pageSizes = _ref3$pageSizes === void 0 ? [5, 10, 20, 30] : _ref3$pageSizes,
40219
+ children = _ref3.children,
40220
+ stateManager = _ref3.stateManager,
40221
+ _ref3$hooks = _ref3.hooks,
40222
+ hooks = _ref3$hooks === void 0 ? [] : _ref3$hooks,
40223
+ NoDataComp = _ref3.NoDataComp,
40224
+ LoadingComp = _ref3.LoadingComp,
40225
+ _ref3$ExpandHandleCom = _ref3.ExpandHandleComp,
40226
+ ExpandHandleComp = _ref3$ExpandHandleCom === void 0 ? _expandable_rows__WEBPACK_IMPORTED_MODULE_9__.ExpandHandle : _ref3$ExpandHandleCom,
40227
+ _ref3$noDataText = _ref3.noDataText,
40228
+ noDataText = _ref3$noDataText === void 0 ? 'No data' : _ref3$noDataText,
40229
+ _ref3$loadingText = _ref3.loadingText,
40230
+ loadingText = _ref3$loadingText === void 0 ? 'Loading...' : _ref3$loadingText,
40231
+ _ref3$isLoading = _ref3.isLoading,
40232
+ isLoading = _ref3$isLoading === void 0 ? false : _ref3$isLoading,
40233
+ onPageChange = _ref3.onPageChange,
40234
+ _ref3$manualPaginatio = _ref3.manualPagination,
40235
+ manualPagination = _ref3$manualPaginatio === void 0 ? false : _ref3$manualPaginatio,
40236
+ totalCount = _ref3.totalCount,
40237
+ _ref3$paginateExpande = _ref3.paginateExpandedRows,
40238
+ paginateExpandedRows = _ref3$paginateExpande === void 0 ? false : _ref3$paginateExpande,
40239
+ _ref3$getHeaderProps = _ref3.getHeaderProps,
40240
+ getHeaderProps = _ref3$getHeaderProps === void 0 ? defaultPropGetter : _ref3$getHeaderProps,
40241
+ _ref3$getColumnProps = _ref3.getColumnProps,
40242
+ getColumnProps = _ref3$getColumnProps === void 0 ? defaultPropGetter : _ref3$getColumnProps,
40243
+ _ref3$getRowProps = _ref3.getRowProps,
40244
+ getRowProps = _ref3$getRowProps === void 0 ? defaultPropGetter : _ref3$getRowProps,
40245
+ _ref3$getCellProps = _ref3.getCellProps,
40246
+ getCellProps = _ref3$getCellProps === void 0 ? defaultPropGetter : _ref3$getCellProps,
40247
+ _ref3$getFooterProps = _ref3.getFooterProps,
40248
+ getFooterProps = _ref3$getFooterProps === void 0 ? defaultPropGetter : _ref3$getFooterProps,
40249
+ selectedRowIds = _ref3.selectedRowIds,
40250
+ _ref3$canOrderColumns = _ref3.canOrderColumns,
40251
+ canOrderColumns = _ref3$canOrderColumns === void 0 ? false : _ref3$canOrderColumns,
40252
+ rowActions = _ref3.rowActions,
40253
+ _ref3$columnSort = _ref3.columnSort,
40254
+ columnSort = _ref3$columnSort === void 0 ? {} : _ref3$columnSort,
40255
+ onColumnSortChanged = _ref3.onColumnSortChanged,
40256
+ _ref3$isCellEditable = _ref3.isCellEditable,
40257
+ isCellEditable = _ref3$isCellEditable === void 0 ? defaultIsCellEditable : _ref3$isCellEditable,
40258
+ onStartEdit = _ref3.onStartEdit,
40259
+ _ref3$draggableRows = _ref3.draggableRows,
40260
+ draggableRows = _ref3$draggableRows === void 0 ? false : _ref3$draggableRows,
40261
+ onRowDragStart = _ref3.onRowDragStart,
40262
+ onRowDragEnd = _ref3.onRowDragEnd,
40263
+ hoverActions = _ref3.hoverActions,
40264
+ _ref3$hoverActionsDir = _ref3.hoverActionsDirection,
40265
+ hoverActionsDirection = _ref3$hoverActionsDir === void 0 ? 'row' : _ref3$hoverActionsDir,
40266
+ _ref3$virtualized = _ref3.virtualized,
40267
+ virtualized = _ref3$virtualized === void 0 ? false : _ref3$virtualized,
40268
+ _hiddenColumns = _ref3.hiddenColumns,
40269
+ _pinnedColumns = _ref3.pinnedColumns,
40270
+ _columnOrder = _ref3.columnOrder,
40271
+ _initialState = _ref3.initialState,
40272
+ _expandColumnId = _ref3.expandColumnId,
40273
+ fullWidth = _ref3.fullWidth,
40274
+ _ref3$rowDensity = _ref3.rowDensity,
40275
+ rowDensity = _ref3$rowDensity === void 0 ? 'busy_bee' : _ref3$rowDensity,
40276
+ rest = _objectWithoutProperties(_ref3, _excluded);
40277
+ var defaultColumn = (0,react__WEBPACK_IMPORTED_MODULE_1__.useMemo)(function () {
40172
40278
  return {
40173
40279
  minWidth: 100,
40174
40280
  Cell: Cell
40175
40281
  };
40176
40282
  }, []);
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),
40283
+ var _useState = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(undefined),
40219
40284
  _useState2 = _slicedToArray(_useState, 2),
40220
40285
  pageCount = _useState2[0],
40221
40286
  setPageCount = _useState2[1];
40222
- var _useState3 = (0,react__WEBPACK_IMPORTED_MODULE_2__.useState)(false),
40287
+ var _useState3 = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(false),
40223
40288
  _useState4 = _slicedToArray(_useState3, 2),
40224
40289
  isDraggingRow = _useState4[0],
40225
40290
  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({
40291
+ var hiddenColumns = (0,_util__WEBPACK_IMPORTED_MODULE_6__.firstDefined)(stateManager === null || stateManager === void 0 ? void 0 : stateManager.get('hiddenColumns'), _hiddenColumns);
40292
+ var pinnedColumns = (0,_util__WEBPACK_IMPORTED_MODULE_6__.firstDefined)(stateManager === null || stateManager === void 0 ? void 0 : stateManager.get('pinnedColumns'), _pinnedColumns);
40293
+ var columnOrder = (0,_util__WEBPACK_IMPORTED_MODULE_6__.firstDefined)(stateManager === null || stateManager === void 0 ? void 0 : stateManager.get('columnOrder'), _columnOrder);
40294
+ var initialState = (0,react__WEBPACK_IMPORTED_MODULE_1__.useMemo)(function () {
40295
+ return assign({}, _initialState, pageSize && {
40296
+ pageSize: pageSize
40297
+ }, hiddenColumns && {
40298
+ hiddenColumns: hiddenColumns
40299
+ }, pinnedColumns && {
40300
+ pinnedColumns: pinnedColumns
40301
+ }, columnOrder && {
40302
+ columnOrder: columnOrder
40303
+ }, selectedRowIds && {
40304
+ selectedRowIds: selectedRowIds
40305
+ });
40306
+ }, [_initialState, pageSize, hiddenColumns, pinnedColumns, columnOrder, selectedRowIds]);
40307
+ var table = react_table__WEBPACK_IMPORTED_MODULE_2__.useTable.apply(void 0, [Object.assign(_objectSpread({
40241
40308
  columns: columns,
40242
40309
  data: data,
40243
40310
  defaultColumn: defaultColumn,
40244
40311
  initialState: initialState,
40245
40312
  pageSizes: pageSizes,
40246
40313
  manualPagination: manualPagination,
40247
- pageCount: pageCount,
40248
40314
  totalCount: totalCount,
40249
40315
  paginateExpandedRows: paginateExpandedRows,
40250
40316
  isLoading: isLoading,
@@ -40253,15 +40319,19 @@ var Provider = function Provider(props) {
40253
40319
  getRowProps: getRowProps,
40254
40320
  getCellProps: getCellProps,
40255
40321
  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)));
40322
+ ExpandHandleComp: ExpandHandleComp,
40323
+ fullWidth: fullWidth,
40324
+ rowDensity: rowDensity
40325
+ }, rest), manualPagination && {
40326
+ pageCount: pageCount
40327
+ }), 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
40328
  var _table$state = table.state,
40259
40329
  pageIndex = _table$state.pageIndex,
40260
40330
  _pageSize = _table$state.pageSize;
40261
- (0,react__WEBPACK_IMPORTED_MODULE_2__.useEffect)(function () {
40331
+ (0,react__WEBPACK_IMPORTED_MODULE_1__.useEffect)(function () {
40262
40332
  stateManager === null || stateManager === void 0 || stateManager.onStateChange(table.state);
40263
40333
  }, [table.state]);
40264
- (0,react__WEBPACK_IMPORTED_MODULE_2__.useEffect)(function () {
40334
+ (0,react__WEBPACK_IMPORTED_MODULE_1__.useEffect)(function () {
40265
40335
  if (!manualPagination) return;
40266
40336
  setPageCount(calcPageCount(totalCount, _pageSize));
40267
40337
  onPageChange === null || onPageChange === void 0 || onPageChange({
@@ -40271,8 +40341,8 @@ var Provider = function Provider(props) {
40271
40341
  }, [manualPagination, totalCount, pageIndex, _pageSize]);
40272
40342
  var _LoadingComp = useComp(loadingText, LoadingComp);
40273
40343
  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);
40344
+ var orderLogic = (0,_order_logic__WEBPACK_IMPORTED_MODULE_12__.useOrderLogic)(table);
40345
+ var expandColumnId = (0,_util__WEBPACK_IMPORTED_MODULE_6__.firstDefined)(_expandColumnId, (_columns$ = columns[0]) === null || _columns$ === void 0 ? void 0 : _columns$.id);
40276
40346
  var value = _objectSpread(_objectSpread({
40277
40347
  columnSort: columnSort,
40278
40348
  onColumnSortChanged: onColumnSortChanged,
@@ -40294,107 +40364,81 @@ var Provider = function Provider(props) {
40294
40364
  hoverActionsDirection: hoverActionsDirection,
40295
40365
  virtualized: virtualized
40296
40366
  });
40297
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(TableContext.Provider, {
40367
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(TableContext.Provider, {
40298
40368
  value: value
40299
40369
  }, children);
40300
40370
  };
40301
40371
  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
40372
  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)
40373
+ columns: prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
40374
+ id: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string).isRequired,
40375
+ 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)]),
40376
+ type: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['string', 'number']),
40377
+ 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)]),
40378
+ Cell: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
40379
+ 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)]),
40380
+ canSort: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
40381
+ disableHiding: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
40382
+ width: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number),
40383
+ minWidth: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number),
40384
+ maxWidth: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number),
40385
+ disableResizing: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
40386
+ disablePinning: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
40387
+ canEdit: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
40388
+ className: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string)
40345
40389
  })),
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)
40390
+ data: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().array),
40391
+ columnSort: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object),
40392
+ onColumnSortChanged: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
40393
+ pageSize: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number),
40394
+ pageSizes: prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().number)),
40395
+ manualPagination: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
40396
+ totalCount: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number),
40397
+ paginateExpandedRows: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
40398
+ onPageChange: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
40399
+ isLoading: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
40400
+ hiddenColumns: prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().string)),
40401
+ pinnedColumns: prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().string)),
40402
+ fullWidth: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
40403
+ disableHiding: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
40404
+ disableResizing: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
40405
+ disablePinning: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
40406
+ canEdit: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
40407
+ isCellEditable: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
40408
+ onStartEdit: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
40409
+ hideHeader: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
40410
+ hideFooter: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
40411
+ getHeaderProps: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
40412
+ getColumnProps: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
40413
+ getRowProps: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
40414
+ getCellProps: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
40415
+ getFooterProps: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
40416
+ 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)]),
40417
+ 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)]),
40418
+ renderRowSubComponent: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
40419
+ rowDensity: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['busy_bee', 'diamond_hand', 'white_spaced']),
40420
+ onRowClick: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
40421
+ 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)]),
40422
+ scrollTarget: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().any),
40423
+ className: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
40424
+ onSelectRows: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
40425
+ canOrderColumns: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
40426
+ rowActions: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().array),
40427
+ scrollable: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
40428
+ scrollHeight: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
40429
+ expandColumnId: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
40430
+ draggableRows: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
40431
+ onRowDragStart: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
40432
+ onRowDragEnd: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
40433
+ 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)]),
40434
+ hoverActionsDirection: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['row', 'column']),
40435
+ virtualized: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool)
40392
40436
  };
40393
40437
  var calcPageCount = function calcPageCount(totalCount, pageSize) {
40394
40438
  return Math.ceil(totalCount / pageSize);
40395
40439
  };
40396
40440
  var useTableContext = function useTableContext() {
40397
- return (0,react__WEBPACK_IMPORTED_MODULE_2__.useContext)(TableContext);
40441
+ return (0,react__WEBPACK_IMPORTED_MODULE_1__.useContext)(TableContext);
40398
40442
  };
40399
40443
 
40400
40444
  // can hide columns
@@ -40404,29 +40448,28 @@ var useCanHideColumns = function useCanHideColumns(hooks) {
40404
40448
  var disableHiding = instance.disableHiding,
40405
40449
  flatHeaders = instance.flatHeaders;
40406
40450
  flatHeaders.forEach(function (header) {
40407
- header.canHide = (0,_util__WEBPACK_IMPORTED_MODULE_7__.firstDefined)(header.disableHiding === true ? false : undefined, disableHiding === true ? false : undefined, true);
40451
+ header.canHide = (0,_util__WEBPACK_IMPORTED_MODULE_6__.firstDefined)(header.disableHiding === true ? false : undefined, disableHiding === true ? false : undefined, true);
40408
40452
  });
40409
40453
  });
40410
40454
  };
40411
40455
  useCanHideColumns.pluginName = 'useCanHideColumns';
40412
40456
  var useComp = function useComp(text, Comp) {
40413
- return (0,react__WEBPACK_IMPORTED_MODULE_2__.useMemo)(function () {
40457
+ return (0,react__WEBPACK_IMPORTED_MODULE_1__.useMemo)(function () {
40414
40458
  if (Comp) return Comp;
40415
40459
  if (!text || typeof text != 'string' || text.trim() == '') return text;
40416
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(EmptyBody, null, text);
40460
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(EmptyBody, null, text);
40417
40461
  }, [text, Comp]);
40418
40462
  };
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, {
40463
+ var EmptyBody = function EmptyBody(_ref4) {
40464
+ var children = _ref4.children;
40465
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_layout__WEBPACK_IMPORTED_MODULE_3__.Flex, {
40422
40466
  align_items: "center",
40423
40467
  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, {
40468
+ padding: "".concat(_theme__WEBPACK_IMPORTED_MODULE_4__["default"].spacing['04'], " ").concat(_theme__WEBPACK_IMPORTED_MODULE_4__["default"].spacing['05'])
40469
+ }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_5__.Label, {
40426
40470
  color: "gray_11_50"
40427
40471
  }, children));
40428
40472
  };
40429
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Provider);
40430
40473
 
40431
40474
  /***/ }),
40432
40475
 
@@ -40439,7 +40482,7 @@ var EmptyBody = function EmptyBody(_ref2) {
40439
40482
  "use strict";
40440
40483
  __webpack_require__.r(__webpack_exports__);
40441
40484
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
40442
- /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
40485
+ /* harmony export */ CustomizeButton: () => (/* binding */ CustomizeButton)
40443
40486
  /* harmony export */ });
40444
40487
  /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! prop-types */ "prop-types");
40445
40488
  /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_0__);
@@ -40516,9 +40559,6 @@ var CustomizeButton = function CustomizeButton(props) {
40516
40559
  });
40517
40560
  };
40518
40561
  CustomizeButton.displayName = 'Table.CustomizeButton';
40519
- CustomizeButton.defaultProps = {
40520
- maxMenuHeight: 300
40521
- };
40522
40562
  CustomizeButton.propTypes = {
40523
40563
  searchable: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
40524
40564
  maxMenuHeight: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number)
@@ -40527,9 +40567,9 @@ var PopoverContainer = styled_components__WEBPACK_IMPORTED_MODULE_2___default().
40527
40567
  displayName: "PopoverContainer",
40528
40568
  componentId: "sc-1uptv2h-0"
40529
40569
  })(["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;
40570
+ var Search = function Search(_ref) {
40571
+ var search = _ref.search,
40572
+ setSearch = _ref.setSearch;
40533
40573
  var clearButton = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_icon_button__WEBPACK_IMPORTED_MODULE_5__.IconButton, {
40534
40574
  variant: "ghost",
40535
40575
  icon: "Close",
@@ -40555,7 +40595,6 @@ var Search = function Search(props) {
40555
40595
  onChange: setSearch
40556
40596
  }));
40557
40597
  };
40558
- Search.displayName = 'Search';
40559
40598
  var ItemsWrapper = styled_components__WEBPACK_IMPORTED_MODULE_2___default().div.withConfig({
40560
40599
  displayName: "ItemsWrapper",
40561
40600
  componentId: "sc-1uptv2h-1"
@@ -40564,13 +40603,14 @@ var ItemsWrapper = styled_components__WEBPACK_IMPORTED_MODULE_2___default().div.
40564
40603
  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
40604
  }
40566
40605
  });
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;
40606
+ var CustomizeButtonPopover = function CustomizeButtonPopover(_ref2) {
40607
+ var searchable = _ref2.searchable,
40608
+ search = _ref2.search,
40609
+ setSearch = _ref2.setSearch,
40610
+ _ref2$maxMenuHeight = _ref2.maxMenuHeight,
40611
+ maxMenuHeight = _ref2$maxMenuHeight === void 0 ? 300 : _ref2$maxMenuHeight,
40612
+ items = _ref2.items,
40613
+ orderProps = _ref2.orderProps;
40574
40614
  var maxHeight = Number.parseInt(maxMenuHeight);
40575
40615
  var _maxMenuHeight = orderProps && (!maxHeight || maxHeight < 600) ? 600 : maxMenuHeight;
40576
40616
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(PopoverContainer, null, searchable && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(Search, {
@@ -40584,28 +40624,28 @@ var CustomizeButtonPopover = function CustomizeButtonPopover(props) {
40584
40624
  items: items
40585
40625
  })));
40586
40626
  };
40587
- CustomizeButtonPopover.displayName = 'CustomizeButtonPopover';
40588
- var CustomizeButtonWithPopover = (0,_hoc__WEBPACK_IMPORTED_MODULE_3__.withPopover)(function (p) {
40627
+ var CustomizeButtonWithPopover = (0,_hoc__WEBPACK_IMPORTED_MODULE_3__.withPopover)(function (_ref3) {
40628
+ var popover = _ref3.popover;
40589
40629
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_icon_button__WEBPACK_IMPORTED_MODULE_5__.IconButton, {
40590
- onClick: p.popover.toggle,
40630
+ onClick: popover.toggle,
40591
40631
  tooltip: "Customize columns",
40592
40632
  icon: "Customize"
40593
40633
  });
40594
40634
  }, CustomizeButtonPopover, {
40595
40635
  placement: 'bottom'
40596
40636
  });
40597
- var CustomizeButtonStaticItems = function CustomizeButtonStaticItems(_ref) {
40598
- var items = _ref.items;
40637
+ var CustomizeButtonStaticItems = function CustomizeButtonStaticItems(_ref4) {
40638
+ var items = _ref4.items;
40599
40639
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement((react__WEBPACK_IMPORTED_MODULE_1___default().Fragment), null, items.map(function (c) {
40600
40640
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(CustomizeButtonItem, _extends({
40601
40641
  key: c.id
40602
40642
  }, c));
40603
40643
  }));
40604
40644
  };
40605
- var CustomizeButtonDraggableItems = function CustomizeButtonDraggableItems(props) {
40606
- var items = props.items,
40607
- orders = props.orders,
40608
- moveColumn = props.moveColumn;
40645
+ var CustomizeButtonDraggableItems = function CustomizeButtonDraggableItems(_ref5) {
40646
+ var items = _ref5.items,
40647
+ orders = _ref5.orders,
40648
+ moveColumn = _ref5.moveColumn;
40609
40649
  var sections = (0,react__WEBPACK_IMPORTED_MODULE_1__.useMemo)(function () {
40610
40650
  var _orders$pinned;
40611
40651
  return [((_orders$pinned = orders.pinned) === null || _orders$pinned === void 0 ? void 0 : _orders$pinned.length) && {
@@ -40661,25 +40701,25 @@ var CustomizeButtonDraggableItems = function CustomizeButtonDraggableItems(props
40661
40701
  CustomDrag: CustomizeButtonDraggableItem
40662
40702
  });
40663
40703
  };
40664
- var CustomizeButtonDraggableItem = function CustomizeButtonDraggableItem(props) {
40665
- var Dragger = props.Dragger,
40666
- isDragging = props.isDragging,
40667
- itemProps = _objectWithoutProperties(props, _excluded);
40704
+ var CustomizeButtonDraggableItem = function CustomizeButtonDraggableItem(_ref6) {
40705
+ var Dragger = _ref6.Dragger,
40706
+ isDragging = _ref6.isDragging,
40707
+ itemProps = _objectWithoutProperties(_ref6, _excluded);
40668
40708
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_input__WEBPACK_IMPORTED_MODULE_6__.DragDrop.DraggableItem, {
40669
40709
  Dragger: Dragger,
40670
40710
  isDragging: isDragging
40671
40711
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(CustomizeButtonItem, itemProps));
40672
40712
  };
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;
40713
+ var CustomizeButtonItem = function CustomizeButtonItem(_ref7) {
40714
+ var id = _ref7.id,
40715
+ name = _ref7.name,
40716
+ canPin = _ref7.canPin,
40717
+ isPinned = _ref7.isPinned,
40718
+ togglePinned = _ref7.togglePinned,
40719
+ canHide = _ref7.canHide,
40720
+ isVisible = _ref7.isVisible,
40721
+ toggleHidden = _ref7.toggleHidden,
40722
+ className = _ref7.className;
40683
40723
  var handlePinned = (0,react__WEBPACK_IMPORTED_MODULE_1__.useCallback)(function () {
40684
40724
  togglePinned(!isPinned);
40685
40725
  }, [isPinned, togglePinned]);
@@ -40701,24 +40741,25 @@ var CustomizeButtonItem = function CustomizeButtonItem(props) {
40701
40741
  tooltip: "".concat(isVisible ? 'Hide' : 'Show', " column")
40702
40742
  }));
40703
40743
  };
40704
- CustomizeButtonItem.displayName = 'CustomizeButtonItem';
40705
40744
  var CustomizeButtonItemWrapper = styled_components__WEBPACK_IMPORTED_MODULE_2___default().div.withConfig({
40706
40745
  displayName: "CustomizeButtonItemWrapper",
40707
40746
  componentId: "sc-1uptv2h-2"
40708
40747
  })(["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) {
40748
+ var CustomizeButtonItemAction = function CustomizeButtonItemAction(_ref8) {
40749
+ var onClick = _ref8.onClick,
40750
+ tooltip = _ref8.tooltip,
40751
+ icon = _ref8.icon;
40710
40752
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(CustomizeButtonItemActionWrapper, {
40711
- onClick: props.onClick
40753
+ onClick: onClick
40712
40754
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_tooltip__WEBPACK_IMPORTED_MODULE_8__.Tooltip, {
40713
- tooltip: props.tooltip,
40755
+ tooltip: tooltip,
40714
40756
  tooltipPlacement: "top"
40715
40757
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_icon__WEBPACK_IMPORTED_MODULE_4__.Icon, {
40716
- name: props.icon,
40758
+ name: icon,
40717
40759
  size: "xs",
40718
40760
  color: "gray_9"
40719
40761
  })));
40720
40762
  };
40721
- CustomizeButtonItemAction.displayName = 'CustomizeButtonItemAction';
40722
40763
  var CustomizeButtonItemActionWrapper = styled_components__WEBPACK_IMPORTED_MODULE_2___default().div.withConfig({
40723
40764
  displayName: "CustomizeButtonItemActionWrapper",
40724
40765
  componentId: "sc-1uptv2h-3"
@@ -40729,7 +40770,6 @@ var searchColumn = function searchColumn(search) {
40729
40770
  return !search || name.toLowerCase().includes(search.toLowerCase());
40730
40771
  };
40731
40772
  };
40732
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (CustomizeButton);
40733
40773
 
40734
40774
  /***/ }),
40735
40775
 
@@ -41612,9 +41652,9 @@ __webpack_require__.r(__webpack_exports__);
41612
41652
 
41613
41653
 
41614
41654
 
41615
- _table__WEBPACK_IMPORTED_MODULE_3__.Table.CustomizeButton = _customize_button__WEBPACK_IMPORTED_MODULE_2__["default"];
41655
+ _table__WEBPACK_IMPORTED_MODULE_3__.Table.CustomizeButton = _customize_button__WEBPACK_IMPORTED_MODULE_2__.CustomizeButton;
41616
41656
  _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"];
41657
+ _table__WEBPACK_IMPORTED_MODULE_3__.Table.Provider = _context__WEBPACK_IMPORTED_MODULE_1__.Provider;
41618
41658
  _table__WEBPACK_IMPORTED_MODULE_3__.Table.withPlugins = _plugin__WEBPACK_IMPORTED_MODULE_5__.withPlugins;
41619
41659
  _table__WEBPACK_IMPORTED_MODULE_3__.Table.plugins = _plugin__WEBPACK_IMPORTED_MODULE_5__.plugins;
41620
41660
 
@@ -41801,7 +41841,7 @@ __webpack_require__.r(__webpack_exports__);
41801
41841
 
41802
41842
  /*jslint react:true*/
41803
41843
  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"];
41844
+ var _excluded = ["state", "totalCount", "manualPagination", "rows", "pageSizes"];
41805
41845
  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
41846
  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
41847
  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 +41864,25 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
41824
41864
 
41825
41865
 
41826
41866
 
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;
41867
+ var Pagination = function Pagination(_ref) {
41868
+ var className = _ref.className,
41869
+ onDownload = _ref.onDownload,
41870
+ _ref$downloadTooltip = _ref.downloadTooltip,
41871
+ downloadTooltip = _ref$downloadTooltip === void 0 ? 'Download' : _ref$downloadTooltip;
41832
41872
  var _useTableContext = (0,_context__WEBPACK_IMPORTED_MODULE_8__.useTableContext)(),
41833
41873
  state = _useTableContext.state,
41834
41874
  totalCount = _useTableContext.totalCount,
41835
41875
  manualPagination = _useTableContext.manualPagination,
41876
+ rows = _useTableContext.rows,
41877
+ pageSizes = _useTableContext.pageSizes,
41836
41878
  rest = _objectWithoutProperties(_useTableContext, _excluded);
41837
- var rows = rest.rows,
41838
- pageSizes = rest.pageSizes;
41839
41879
  var minPageSize = Math.min.apply(Math, _toConsumableArray(pageSizes));
41840
41880
  var total = manualPagination ? totalCount : rows.length;
41841
41881
  if (total <= minPageSize) return null;
41842
41882
  var childProps = _objectSpread(_objectSpread(_objectSpread({}, state), rest), {}, {
41843
- total: total
41883
+ total: total,
41884
+ rows: rows,
41885
+ pageSizes: pageSizes
41844
41886
  });
41845
41887
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(PaginationWrapper, {
41846
41888
  className: className
@@ -41851,7 +41893,6 @@ var Pagination = function Pagination(props) {
41851
41893
  variant: "icon"
41852
41894
  }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(PaginationControls, childProps)));
41853
41895
  };
41854
- Pagination.displayName = 'Table.Pagination';
41855
41896
  Pagination.propTypes = {
41856
41897
  onDownload: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
41857
41898
  downloadTooltip: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string)
@@ -41864,12 +41905,12 @@ var PaginationControlsWrapper = styled_components__WEBPACK_IMPORTED_MODULE_2___d
41864
41905
  displayName: "PaginationControlsWrapper",
41865
41906
  componentId: "sc-1rdn0jh-1"
41866
41907
  })(["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;
41908
+ var PaginationControls = function PaginationControls(_ref2) {
41909
+ var pageIndex = _ref2.pageIndex,
41910
+ pageSize = _ref2.pageSize,
41911
+ pageSizes = _ref2.pageSizes,
41912
+ setPageSize = _ref2.setPageSize,
41913
+ total = _ref2.total;
41873
41914
  var handleChange = function handleChange(option) {
41874
41915
  return setPageSize(+option.value);
41875
41916
  };
@@ -41906,15 +41947,14 @@ var PaginationControls = function PaginationControls(props) {
41906
41947
  color: "gray_11_50"
41907
41948
  }, total)));
41908
41949
  };
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;
41950
+ var PaginationItems = function PaginationItems(_ref3) {
41951
+ var pageIndex = _ref3.pageIndex,
41952
+ canPreviousPage = _ref3.canPreviousPage,
41953
+ previousPage = _ref3.previousPage,
41954
+ canNextPage = _ref3.canNextPage,
41955
+ nextPage = _ref3.nextPage,
41956
+ gotoPage = _ref3.gotoPage,
41957
+ pageCount = _ref3.pageCount;
41918
41958
  var pages = usePages({
41919
41959
  pageIndex: pageIndex,
41920
41960
  gotoPage: gotoPage,
@@ -41922,38 +41962,42 @@ var PaginationItems = function PaginationItems(props) {
41922
41962
  });
41923
41963
  if (!pages) return null;
41924
41964
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(PaginationItemsWrapper, null, canPreviousPage && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(PageLink, {
41925
- onClick: previousPage,
41965
+ onClick: function onClick() {
41966
+ return previousPage();
41967
+ },
41926
41968
  text: "Prev"
41927
41969
  }), pages, canNextPage && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(PageLink, {
41928
- onClick: nextPage,
41970
+ onClick: function onClick() {
41971
+ return nextPage();
41972
+ },
41929
41973
  text: "Next"
41930
41974
  }));
41931
41975
  };
41932
- PaginationItems.displayName = 'PaginationItems';
41933
41976
  var PaginationItemsWrapper = styled_components__WEBPACK_IMPORTED_MODULE_2___default().div.withConfig({
41934
41977
  displayName: "PaginationItemsWrapper",
41935
41978
  componentId: "sc-1rdn0jh-2"
41936
41979
  })(["display:flex;flex-direction:row;align-items:center;gap:8px;"]);
41937
- var PageLink = function PageLink(props) {
41980
+ var PageLink = function PageLink(_ref4) {
41981
+ var onClick = _ref4.onClick,
41982
+ text = _ref4.text;
41938
41983
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_link__WEBPACK_IMPORTED_MODULE_6__.Link, {
41939
41984
  as: "div",
41940
41985
  variant: "secondary",
41941
41986
  size: "sm",
41942
- onClick: props.onClick,
41943
- text: String(props.text),
41987
+ onClick: onClick,
41988
+ text: String(text),
41944
41989
  style: {
41945
41990
  cursor: 'pointer'
41946
41991
  }
41947
41992
  });
41948
41993
  };
41949
- PageLink.displayName = 'PageLink';
41950
- var PageLabel = function PageLabel(props) {
41994
+ var PageLabel = function PageLabel(_ref5) {
41995
+ var text = _ref5.text;
41951
41996
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_7__.Label, {
41952
41997
  variant: "sm",
41953
41998
  color: "gray_11_50"
41954
- }, props.text);
41999
+ }, text);
41955
42000
  };
41956
- PageLabel.displayName = 'PageLabel';
41957
42001
  var usePages = function usePages(opt) {
41958
42002
  return (0,react__WEBPACK_IMPORTED_MODULE_1__.useMemo)(function () {
41959
42003
  var pageIndex = opt.pageIndex,
@@ -42248,7 +42292,7 @@ var withPlugins = function withPlugins() {
42248
42292
  return acc.concat.apply(acc, _toConsumableArray(((_plugin$hooks = plugin.hooks) === null || _plugin$hooks === void 0 ? void 0 : _plugin$hooks.call(plugin)) || []));
42249
42293
  }, []);
42250
42294
  var ProviderWithPlugins = function ProviderWithPlugins(props) {
42251
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_context__WEBPACK_IMPORTED_MODULE_1__["default"], _extends({}, pluginProps, props, {
42295
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_context__WEBPACK_IMPORTED_MODULE_1__.Provider, _extends({}, pluginProps, props, {
42252
42296
  hooks: hooks
42253
42297
  }));
42254
42298
  };
@@ -42878,20 +42922,21 @@ __webpack_require__.r(__webpack_exports__);
42878
42922
  /*jslint react:true*/
42879
42923
 
42880
42924
 
42881
- var SortIcon = function SortIcon(props) {
42925
+ var SortIcon = function SortIcon(_ref) {
42926
+ var _ref$visible = _ref.visible,
42927
+ visible = _ref$visible === void 0 ? true : _ref$visible,
42928
+ _ref$color = _ref.color,
42929
+ color = _ref$color === void 0 ? 'blue_10' : _ref$color,
42930
+ reverse = _ref.reverse;
42882
42931
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_icon__WEBPACK_IMPORTED_MODULE_1__.Icon, {
42883
42932
  size: "xs",
42884
- name: props.reverse ? 'SortDesc' : 'SortAsc',
42885
- color: props.color || 'blue_10',
42933
+ name: reverse ? 'SortDesc' : 'SortAsc',
42934
+ color: color,
42886
42935
  style: {
42887
- visibility: props.visible ? 'visible' : 'hidden'
42936
+ visibility: visible ? 'visible' : 'hidden'
42888
42937
  }
42889
42938
  });
42890
42939
  };
42891
- SortIcon.displayName = 'SortIcon';
42892
- SortIcon.defaultProps = {
42893
- visible: true
42894
- };
42895
42940
 
42896
42941
  /***/ }),
42897
42942
 
@@ -43230,12 +43275,12 @@ var Table = function Table(props) {
43230
43275
  var context = (0,_context__WEBPACK_IMPORTED_MODULE_7__.useTableContext)();
43231
43276
  // not under context
43232
43277
  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));
43278
+ 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
43279
  }
43235
43280
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(InnerTable, props);
43236
43281
  };
43237
43282
  Table.displayName = 'Table';
43238
- Table.propTypes = lodash_cloneDeep__WEBPACK_IMPORTED_MODULE_1___default()(_context__WEBPACK_IMPORTED_MODULE_7__["default"].propTypes);
43283
+ Table.propTypes = lodash_cloneDeep__WEBPACK_IMPORTED_MODULE_1___default()(_context__WEBPACK_IMPORTED_MODULE_7__.Provider.propTypes);
43239
43284
  var InnerTable = function InnerTable(props) {
43240
43285
  var _useTableContext = (0,_context__WEBPACK_IMPORTED_MODULE_7__.useTableContext)(),
43241
43286
  getTableProps = _useTableContext.getTableProps,
@@ -44314,14 +44359,15 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
44314
44359
 
44315
44360
 
44316
44361
  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);
44362
+ var Toast = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forwardRef(function (_ref, ref) {
44363
+ var type = _ref.type,
44364
+ children = _ref.children,
44365
+ onClose = _ref.onClose,
44366
+ dismissible = _ref.dismissible,
44367
+ notDismissible = _ref.notDismissible,
44368
+ _ref$classNamePrefix = _ref.classNamePrefix,
44369
+ classNamePrefix = _ref$classNamePrefix === void 0 ? '' : _ref$classNamePrefix,
44370
+ rest = _objectWithoutProperties(_ref, _excluded);
44325
44371
  var _dismissible = dismissible || type == 'error' || type == 'warning';
44326
44372
  var _notDismissible = notDismissible;
44327
44373
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(Wrapper, _extends({
@@ -44343,9 +44389,6 @@ var Toast = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forwardRef
44343
44389
  }));
44344
44390
  });
44345
44391
  Toast.displayName = 'Toast';
44346
- Toast.defaultProps = {
44347
- classNamePrefix: ''
44348
- };
44349
44392
  Toast.propTypes = {
44350
44393
  type: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['success', 'error', 'warning', 'info', 'generic']),
44351
44394
  onClose: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
@@ -44389,10 +44432,10 @@ var ToastIcon = function ToastIcon(props) {
44389
44432
  size: "xs"
44390
44433
  });
44391
44434
  };
44392
- var RemoveButton = function RemoveButton(props) {
44393
- var onClick = props.onClick,
44394
- dismissible = props.dismissible,
44395
- classNamePrefix = props.classNamePrefix;
44435
+ var RemoveButton = function RemoveButton(_ref2) {
44436
+ var onClick = _ref2.onClick,
44437
+ dismissible = _ref2.dismissible,
44438
+ classNamePrefix = _ref2.classNamePrefix;
44396
44439
  if (!dismissible) return null;
44397
44440
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(StyledRemoveButton, {
44398
44441
  variant: "icon",
@@ -44401,7 +44444,6 @@ var RemoveButton = function RemoveButton(props) {
44401
44444
  className: classNamePrefix + 'dismissButton'
44402
44445
  });
44403
44446
  };
44404
- RemoveButton.defaultProps = {};
44405
44447
  RemoveButton.propTypes = {
44406
44448
  classNamePrefix: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
44407
44449
  onClick: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
@@ -44459,21 +44501,19 @@ var ToastAnimatedComp = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default(
44459
44501
  displayName: "ToastAnimatedComp",
44460
44502
  componentId: "sc-1whlqk5-0"
44461
44503
  })(["display:flex;align-items:center;will-change:transform;max-width:350px;", ";"], function (props) {
44462
- var $position = props.$position,
44504
+ var _props$$position = props.$position,
44505
+ $position = _props$$position === void 0 ? 'bottom-left' : _props$$position,
44463
44506
  $visible = props.$visible;
44464
44507
  var top = $position.includes('top');
44465
44508
  var factor = top ? 1 : -1;
44466
44509
  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
44510
  }));
44468
- ToastAnimatedComp.defaultProps = {
44469
- $position: 'bottom-left'
44470
- };
44471
44511
  ToastAnimatedComp.propTypes = {
44472
44512
  $position: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOf(_utils__WEBPACK_IMPORTED_MODULE_5__.toastPositions),
44473
44513
  $visible: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().bool)
44474
44514
  };
44475
- var ToastComp = function ToastComp(props) {
44476
- var toast = props.toast;
44515
+ var ToastComp = function ToastComp(_ref) {
44516
+ var toast = _ref.toast;
44477
44517
  var id = toast.id,
44478
44518
  type = toast.type,
44479
44519
  onClose = toast.onClose,
@@ -44555,13 +44595,17 @@ __webpack_require__.r(__webpack_exports__);
44555
44595
  var defaultContainerStyle = {
44556
44596
  inset: 24
44557
44597
  };
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;
44598
+ var Toaster = function Toaster(_ref) {
44599
+ var _ref$position = _ref.position,
44600
+ position = _ref$position === void 0 ? 'bottom-left' : _ref$position,
44601
+ _ref$maxToasts = _ref.maxToasts,
44602
+ maxToasts = _ref$maxToasts === void 0 ? 2 : _ref$maxToasts,
44603
+ _ref$idPrefix = _ref.idPrefix,
44604
+ idPrefix = _ref$idPrefix === void 0 ? 'toast' : _ref$idPrefix,
44605
+ _ref$classNamePrefix = _ref.classNamePrefix,
44606
+ classNamePrefix = _ref$classNamePrefix === void 0 ? 'toast' : _ref$classNamePrefix,
44607
+ containerStyle = _ref.containerStyle,
44608
+ children = _ref.children;
44565
44609
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_context__WEBPACK_IMPORTED_MODULE_4__.ToastContext.Provider, {
44566
44610
  value: {
44567
44611
  maxToasts: maxToasts,
@@ -44577,12 +44621,6 @@ var Toaster = function Toaster(props) {
44577
44621
  containerStyle: containerStyle || defaultContainerStyle
44578
44622
  }, _toast_item__WEBPACK_IMPORTED_MODULE_5__.ToastItem));
44579
44623
  };
44580
- Toaster.defaultProps = {
44581
- position: 'bottom-left',
44582
- maxToasts: 2,
44583
- idPrefix: 'toast',
44584
- classNamePrefix: 'toast'
44585
- };
44586
44624
  Toaster.propTypes = {
44587
44625
  position: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(_utils__WEBPACK_IMPORTED_MODULE_3__.toastPositions),
44588
44626
  maxToasts: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number)
@@ -44786,15 +44824,18 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
44786
44824
 
44787
44825
 
44788
44826
  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;
44827
+ var Tooltip = function Tooltip(_ref) {
44828
+ var children = _ref.children,
44829
+ tooltip = _ref.tooltip,
44830
+ _ref$placement = _ref.placement,
44831
+ placement = _ref$placement === void 0 ? 'top' : _ref$placement,
44832
+ noWrap = _ref.noWrap,
44833
+ interactive = _ref.interactive,
44834
+ _ref$trigger = _ref.trigger,
44835
+ trigger = _ref$trigger === void 0 ? 'hover' : _ref$trigger,
44836
+ className = _ref.className,
44837
+ _ref$variant = _ref.variant,
44838
+ variant = _ref$variant === void 0 ? 'black' : _ref$variant;
44798
44839
  var _useState = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(null),
44799
44840
  _useState2 = _slicedToArray(_useState, 2),
44800
44841
  referenceElement = _useState2[0],
@@ -44880,11 +44921,6 @@ var Tooltip = function Tooltip(props) {
44880
44921
  className: className
44881
44922
  }, triggerProps), children), tooltipNode);
44882
44923
  };
44883
- Tooltip.defaultProps = {
44884
- placement: 'top',
44885
- trigger: 'hover',
44886
- variant: 'black'
44887
- };
44888
44924
  Tooltip.propTypes = {
44889
44925
  tooltip: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().node),
44890
44926
  placement: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(_util__WEBPACK_IMPORTED_MODULE_5__.tooltipPlacement),
@@ -45125,32 +45161,36 @@ __webpack_require__.r(__webpack_exports__);
45125
45161
 
45126
45162
  /*jslint react:true*/
45127
45163
  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); }
45164
+ var _excluded = ["variant", "children"];
45128
45165
  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
45166
  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
45167
  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
45168
  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
45169
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
45133
45170
  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); }
45171
+ 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; }
45172
+ 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
45173
 
45135
45174
 
45136
45175
 
45137
45176
 
45138
45177
 
45139
45178
 
45140
- var Header = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().forwardRef(function (props, ref) {
45179
+ var Header = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().forwardRef(function (_ref, ref) {
45180
+ var _ref$variant = _ref.variant,
45181
+ variant = _ref$variant === void 0 ? 'xl' : _ref$variant,
45182
+ children = _ref.children,
45183
+ rest = _objectWithoutProperties(_ref, _excluded);
45141
45184
  var t = (0,_translation__WEBPACK_IMPORTED_MODULE_2__.useReactTranslate)();
45142
- var typographyProps = _objectSpread(_objectSpread({}, (0,_get_typography_props__WEBPACK_IMPORTED_MODULE_4__.getTypographyProps)(props)), {}, {
45185
+ var typographyProps = _objectSpread(_objectSpread({}, (0,_get_typography_props__WEBPACK_IMPORTED_MODULE_4__.getTypographyProps)(rest)), {}, {
45143
45186
  font_weight: 'semibold',
45144
- font_size: props.variant == '2xl' ? 'xl' : 'lg'
45187
+ font_size: variant == '2xl' ? 'xl' : 'lg'
45145
45188
  });
45146
45189
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_5__["default"], _extends({
45147
45190
  ref: ref
45148
- }, typographyProps), t(props.children));
45191
+ }, typographyProps), t(children));
45149
45192
  });
45150
45193
  Header.displayName = 'Header';
45151
- Header.defaultProps = {
45152
- variant: 'xl'
45153
- };
45154
45194
  Header.propTypes = {
45155
45195
  variant: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOf(['xl', '2xl']),
45156
45196
  whiteSpace: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOf(_constant__WEBPACK_IMPORTED_MODULE_3__.WHITE_SPACES)
@@ -45183,33 +45223,37 @@ __webpack_require__.r(__webpack_exports__);
45183
45223
 
45184
45224
  /*jslint react:true*/
45185
45225
  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); }
45226
+ var _excluded = ["variant", "children"];
45186
45227
  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
45228
  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
45229
  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
45230
  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
45231
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
45191
45232
  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); }
45233
+ 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; }
45234
+ 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
45235
 
45193
45236
 
45194
45237
 
45195
45238
 
45196
45239
 
45197
45240
 
45198
- var Hyperlink = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().forwardRef(function (props, ref) {
45241
+ var Hyperlink = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().forwardRef(function (_ref, ref) {
45242
+ var _ref$variant = _ref.variant,
45243
+ variant = _ref$variant === void 0 ? 'lg' : _ref$variant,
45244
+ children = _ref.children,
45245
+ rest = _objectWithoutProperties(_ref, _excluded);
45199
45246
  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',
45247
+ var typographyProps = _objectSpread(_objectSpread({}, (0,_get_typography_props__WEBPACK_IMPORTED_MODULE_4__.getTypographyProps)(rest)), {}, {
45248
+ font_size: variant == 'lg' ? 'md' : 'xs',
45202
45249
  line_height: 'none',
45203
45250
  underline: true
45204
45251
  });
45205
45252
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_5__["default"], _extends({
45206
45253
  ref: ref
45207
- }, typographyProps), t(props.children));
45254
+ }, typographyProps), t(children));
45208
45255
  });
45209
45256
  Hyperlink.displayName = 'Hyperlink';
45210
- Hyperlink.defaultProps = {
45211
- variant: 'lg'
45212
- };
45213
45257
  Hyperlink.propTypes = {
45214
45258
  variant: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOf(['xs', 'lg']),
45215
45259
  whiteSpace: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOf(_constant__WEBPACK_IMPORTED_MODULE_3__.WHITE_SPACES)
@@ -45275,40 +45319,44 @@ __webpack_require__.r(__webpack_exports__);
45275
45319
 
45276
45320
  /*jslint react:true*/
45277
45321
  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); }
45322
+ var _excluded = ["variant", "children"];
45278
45323
  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
45324
  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
45325
  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
45326
  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
45327
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
45283
45328
  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); }
45329
+ 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; }
45330
+ 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
45331
 
45285
45332
 
45286
45333
 
45287
45334
 
45288
45335
 
45289
45336
 
45290
- var Label = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().forwardRef(function (props, ref) {
45337
+ var Label = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().forwardRef(function (_ref, ref) {
45338
+ var _ref$variant = _ref.variant,
45339
+ variant = _ref$variant === void 0 ? 'base' : _ref$variant,
45340
+ children = _ref.children,
45341
+ rest = _objectWithoutProperties(_ref, _excluded);
45291
45342
  var t = (0,_translation__WEBPACK_IMPORTED_MODULE_2__.useReactTranslate)();
45292
- var typographyProps = _objectSpread(_objectSpread({}, (0,_get_typography_props__WEBPACK_IMPORTED_MODULE_4__.getTypographyProps)(props)), {}, {
45343
+ var typographyProps = _objectSpread(_objectSpread({}, (0,_get_typography_props__WEBPACK_IMPORTED_MODULE_4__.getTypographyProps)(rest)), {}, {
45293
45344
  font_size: {
45294
45345
  xxs: 'xxs',
45295
45346
  xs: 'xs',
45296
45347
  sm: 'sm',
45297
45348
  sm_medium: 'sm'
45298
- }[props.variant] || 'md',
45349
+ }[variant] || 'md',
45299
45350
  font_weight: {
45300
45351
  lg: 'semibold',
45301
45352
  sm_medium: 'medium'
45302
- }[props.variant] || 'regular'
45353
+ }[variant] || 'regular'
45303
45354
  });
45304
45355
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_5__["default"], _extends({
45305
45356
  ref: ref
45306
- }, typographyProps), t(props.children));
45357
+ }, typographyProps), t(children));
45307
45358
  });
45308
45359
  Label.displayName = 'Label';
45309
- Label.defaultProps = {
45310
- variant: 'base'
45311
- };
45312
45360
  Label.propTypes = {
45313
45361
  variant: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOf(['xxs', 'xs', 'sm', 'sm_medium', 'base', 'lg']),
45314
45362
  whiteSpace: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOf(_constant__WEBPACK_IMPORTED_MODULE_3__.WHITE_SPACES)
@@ -45341,39 +45389,43 @@ __webpack_require__.r(__webpack_exports__);
45341
45389
 
45342
45390
  /*jslint react:true*/
45343
45391
  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); }
45392
+ var _excluded = ["variant", "children"];
45344
45393
  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
45394
  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
45395
  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
45396
  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
45397
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
45349
45398
  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); }
45399
+ 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; }
45400
+ 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
45401
 
45351
45402
 
45352
45403
 
45353
45404
 
45354
45405
 
45355
45406
 
45356
- var Paragraph = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().forwardRef(function (props, ref) {
45407
+ var Paragraph = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().forwardRef(function (_ref, ref) {
45408
+ var _ref$variant = _ref.variant,
45409
+ variant = _ref$variant === void 0 ? 'lg_snug' : _ref$variant,
45410
+ children = _ref.children,
45411
+ rest = _objectWithoutProperties(_ref, _excluded);
45357
45412
  var t = (0,_translation__WEBPACK_IMPORTED_MODULE_2__.useReactTranslate)();
45358
- var typographyProps = _objectSpread(_objectSpread({}, (0,_get_typography_props__WEBPACK_IMPORTED_MODULE_4__.getTypographyProps)(props)), {}, {
45413
+ var typographyProps = _objectSpread(_objectSpread({}, (0,_get_typography_props__WEBPACK_IMPORTED_MODULE_4__.getTypographyProps)(rest)), {}, {
45359
45414
  font_size: {
45360
45415
  xxs: 'xxs',
45361
45416
  xs: 'xs',
45362
45417
  sm: 'sm'
45363
- }[props.variant] || 'md',
45418
+ }[variant] || 'md',
45364
45419
  line_height: {
45365
45420
  xs: 'loose',
45366
45421
  'lg_loose': 'loose'
45367
- }[props.variant] || 'snug'
45422
+ }[variant] || 'snug'
45368
45423
  });
45369
45424
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_5__["default"], _extends({
45370
45425
  ref: ref
45371
- }, typographyProps), t(props.children));
45426
+ }, typographyProps), t(children));
45372
45427
  });
45373
45428
  Paragraph.displayName = 'Paragraph';
45374
- Paragraph.defaultProps = {
45375
- variant: 'lg_snug'
45376
- };
45377
45429
  Paragraph.propTypes = {
45378
45430
  variant: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOf(['xxs', 'xs', 'sm', 'lg_snug', 'lg_loose']),
45379
45431
  whiteSpace: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOf(_constant__WEBPACK_IMPORTED_MODULE_3__.WHITE_SPACES)
@@ -45405,20 +45457,26 @@ __webpack_require__.r(__webpack_exports__);
45405
45457
 
45406
45458
  /*jslint react:true*/
45407
45459
  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); }
45460
+ var _excluded = ["children", "variant"];
45408
45461
  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
45462
  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
45463
  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
45464
  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
45465
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
45413
45466
  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); }
45467
+ 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; }
45468
+ 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
45469
 
45415
45470
 
45416
45471
 
45417
45472
 
45418
45473
 
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)), {}, {
45474
+ var Style = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().forwardRef(function (_ref, ref) {
45475
+ var children = _ref.children,
45476
+ _ref$variant = _ref.variant,
45477
+ variant = _ref$variant === void 0 ? 'italic_lg' : _ref$variant,
45478
+ rest = _objectWithoutProperties(_ref, _excluded);
45479
+ var typographyProps = _objectSpread(_objectSpread({}, (0,_get_typography_props__WEBPACK_IMPORTED_MODULE_3__.getTypographyProps)(rest)), {}, {
45422
45480
  font_size: {
45423
45481
  italic_sm: 'sm',
45424
45482
  italic_xs: 'xs',
@@ -45428,20 +45486,17 @@ var Style = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().forwardRef
45428
45486
  capitals: 'xs',
45429
45487
  capitals_xs: 'xs',
45430
45488
  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)
45489
+ }[variant] || 'md',
45490
+ line_height: ['italic_lg', 'italic_sm'].includes(variant) ? 'snug' : 'none',
45491
+ font_family: ['code', 'code_sm', 'code_xxs'].includes(variant) ? 'mono' : 'sans',
45492
+ italic: ['italic_lg', 'italic_sm', 'italic_xs'].includes(variant),
45493
+ uppercase: ['capitals', 'capitals_xs', 'capitals_xxs'].includes(variant)
45436
45494
  });
45437
45495
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_4__["default"], _extends({
45438
45496
  ref: ref
45439
45497
  }, typographyProps), children);
45440
45498
  });
45441
45499
  Style.displayName = 'Style';
45442
- Style.defaultProps = {
45443
- variant: 'italic_lg'
45444
- };
45445
45500
  Style.propTypes = {
45446
45501
  variant: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOf(['italic_lg', 'italic_sm', 'italic_xs', 'code_sm', 'code_xxs', 'capitals_xs', 'capitals_xxs']),
45447
45502
  whiteSpace: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOf(_constant__WEBPACK_IMPORTED_MODULE_2__.WHITE_SPACES)
@@ -81467,7 +81522,8 @@ const areBoundsEqual = (a, b) => keys.every(key => a[key] === b[key]);
81467
81522
  /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
81468
81523
 
81469
81524
  "use strict";
81470
- /** @license React v16.14.0
81525
+ /**
81526
+ * @license React
81471
81527
  * react-jsx-runtime.development.js
81472
81528
  *
81473
81529
  * Copyright (c) Facebook, Inc. and its affiliates.
@@ -81487,54 +81543,21 @@ var React = __webpack_require__(/*! react */ "react");
81487
81543
  // ATTENTION
81488
81544
  // When adding new symbols to this file,
81489
81545
  // 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;
81546
+ // The Symbol used to tag the ReactElement-like types.
81547
+ var REACT_ELEMENT_TYPE = Symbol.for('react.element');
81548
+ var REACT_PORTAL_TYPE = Symbol.for('react.portal');
81549
+ var REACT_FRAGMENT_TYPE = Symbol.for('react.fragment');
81550
+ var REACT_STRICT_MODE_TYPE = Symbol.for('react.strict_mode');
81551
+ var REACT_PROFILER_TYPE = Symbol.for('react.profiler');
81552
+ var REACT_PROVIDER_TYPE = Symbol.for('react.provider');
81553
+ var REACT_CONTEXT_TYPE = Symbol.for('react.context');
81554
+ var REACT_FORWARD_REF_TYPE = Symbol.for('react.forward_ref');
81555
+ var REACT_SUSPENSE_TYPE = Symbol.for('react.suspense');
81556
+ var REACT_SUSPENSE_LIST_TYPE = Symbol.for('react.suspense_list');
81557
+ var REACT_MEMO_TYPE = Symbol.for('react.memo');
81558
+ var REACT_LAZY_TYPE = Symbol.for('react.lazy');
81559
+ var REACT_OFFSCREEN_TYPE = Symbol.for('react.offscreen');
81560
+ var MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
81538
81561
  var FAUX_ITERATOR_SYMBOL = '@@iterator';
81539
81562
  function getIteratorFn(maybeIterable) {
81540
81563
  if (maybeIterable === null || typeof maybeIterable !== 'object') {
@@ -81554,11 +81577,13 @@ var ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FI
81554
81577
 
81555
81578
  function error(format) {
81556
81579
  {
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
- }
81580
+ {
81581
+ for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
81582
+ args[_key2 - 1] = arguments[_key2];
81583
+ }
81560
81584
 
81561
- printWarning('error', format, args);
81585
+ printWarning('error', format, args);
81586
+ }
81562
81587
  }
81563
81588
  }
81564
81589
 
@@ -81567,23 +81592,16 @@ function printWarning(level, format, args) {
81567
81592
  // update consoleWithStackDev.www.js as well.
81568
81593
  {
81569
81594
  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();
81595
+ var stack = ReactDebugCurrentFrame.getStackAddendum();
81579
81596
 
81580
81597
  if (stack !== '') {
81581
81598
  format += '%s';
81582
81599
  args = args.concat([stack]);
81583
- }
81600
+ } // eslint-disable-next-line react-internal/safe-string-coercion
81601
+
81584
81602
 
81585
81603
  var argsWithFormat = args.map(function (item) {
81586
- return '' + item;
81604
+ return String(item);
81587
81605
  }); // Careful: RN currently depends on this prefix
81588
81606
 
81589
81607
  argsWithFormat.unshift('Warning: ' + format); // We intentionally don't use spread (or .apply) directly because it
@@ -81594,9 +81612,23 @@ function printWarning(level, format, args) {
81594
81612
  }
81595
81613
  }
81596
81614
 
81597
- // Filter certain DOM attributes (e.g. src, href) if their values are empty strings.
81615
+ // -----------------------------------------------------------------------------
81598
81616
 
81599
81617
  var enableScopeAPI = false; // Experimental Create Event Handle API.
81618
+ var enableCacheElement = false;
81619
+ var enableTransitionTracing = false; // No known bugs, but needs performance testing
81620
+
81621
+ var enableLegacyHidden = false; // Enables unstable_avoidThisFallback feature in Fiber
81622
+ // stuff. Intended to enable React core members to more easily debug scheduling
81623
+ // issues in DEV builds.
81624
+
81625
+ var enableDebugTracing = false; // Track which Fiber(s) schedule render work.
81626
+
81627
+ var REACT_MODULE_REFERENCE;
81628
+
81629
+ {
81630
+ REACT_MODULE_REFERENCE = Symbol.for('react.module.reference');
81631
+ }
81600
81632
 
81601
81633
  function isValidElementType(type) {
81602
81634
  if (typeof type === 'string' || typeof type === 'function') {
@@ -81604,12 +81636,16 @@ function isValidElementType(type) {
81604
81636
  } // Note: typeof might be other than 'symbol' or 'number' (e.g. if it's a polyfill).
81605
81637
 
81606
81638
 
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 ) {
81639
+ 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
81640
  return true;
81609
81641
  }
81610
81642
 
81611
81643
  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) {
81644
+ 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
81645
+ // types supported by any Flight configuration anywhere since
81646
+ // we don't know which Flight build this will end up being used
81647
+ // with.
81648
+ type.$$typeof === REACT_MODULE_REFERENCE || type.getModuleId !== undefined) {
81613
81649
  return true;
81614
81650
  }
81615
81651
  }
@@ -81617,51 +81653,24 @@ function isValidElementType(type) {
81617
81653
  return false;
81618
81654
  }
81619
81655
 
81656
+ function getWrappedName(outerType, innerType, wrapperName) {
81657
+ var displayName = outerType.displayName;
81620
81658
 
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 + ')';
81659
+ if (displayName) {
81660
+ return displayName;
81649
81661
  }
81650
81662
 
81651
- return '\n in ' + (name || 'Unknown') + sourceInfo;
81652
- }
81663
+ var functionName = innerType.displayName || innerType.name || '';
81664
+ return functionName !== '' ? wrapperName + "(" + functionName + ")" : wrapperName;
81665
+ } // Keep in sync with react-reconciler/getComponentNameFromFiber
81653
81666
 
81654
- var Resolved = 1;
81655
- function refineResolvedLazyComponent(lazyComponent) {
81656
- return lazyComponent._status === Resolved ? lazyComponent._result : null;
81657
- }
81658
81667
 
81659
- function getWrappedName(outerType, innerType, wrapperName) {
81660
- var functionName = innerType.displayName || innerType.name || '';
81661
- return outerType.displayName || (functionName !== '' ? wrapperName + "(" + functionName + ")" : wrapperName);
81662
- }
81668
+ function getContextName(type) {
81669
+ return type.displayName || 'Context';
81670
+ } // Note that the reconciler package should generally prefer to use getComponentNameFromFiber() instead.
81663
81671
 
81664
- function getComponentName(type) {
81672
+
81673
+ function getComponentNameFromType(type) {
81665
81674
  if (type == null) {
81666
81675
  // Host root, text node or just invalid type.
81667
81676
  return null;
@@ -81669,7 +81678,7 @@ function getComponentName(type) {
81669
81678
 
81670
81679
  {
81671
81680
  if (typeof type.tag === 'number') {
81672
- error('Received an unexpected object in getComponentName(). ' + 'This is likely a bug in React. Please file an issue.');
81681
+ error('Received an unexpected object in getComponentNameFromType(). ' + 'This is likely a bug in React. Please file an issue.');
81673
81682
  }
81674
81683
  }
81675
81684
 
@@ -81682,14 +81691,14 @@ function getComponentName(type) {
81682
81691
  }
81683
81692
 
81684
81693
  switch (type) {
81685
- case exports.Fragment:
81694
+ case REACT_FRAGMENT_TYPE:
81686
81695
  return 'Fragment';
81687
81696
 
81688
81697
  case REACT_PORTAL_TYPE:
81689
81698
  return 'Portal';
81690
81699
 
81691
81700
  case REACT_PROFILER_TYPE:
81692
- return "Profiler";
81701
+ return 'Profiler';
81693
81702
 
81694
81703
  case REACT_STRICT_MODE_TYPE:
81695
81704
  return 'StrictMode';
@@ -81699,56 +81708,414 @@ function getComponentName(type) {
81699
81708
 
81700
81709
  case REACT_SUSPENSE_LIST_TYPE:
81701
81710
  return 'SuspenseList';
81711
+
81702
81712
  }
81703
81713
 
81704
81714
  if (typeof type === 'object') {
81705
81715
  switch (type.$$typeof) {
81706
81716
  case REACT_CONTEXT_TYPE:
81707
- return 'Context.Consumer';
81717
+ var context = type;
81718
+ return getContextName(context) + '.Consumer';
81708
81719
 
81709
81720
  case REACT_PROVIDER_TYPE:
81710
- return 'Context.Provider';
81721
+ var provider = type;
81722
+ return getContextName(provider._context) + '.Provider';
81711
81723
 
81712
81724
  case REACT_FORWARD_REF_TYPE:
81713
81725
  return getWrappedName(type, type.render, 'ForwardRef');
81714
81726
 
81715
81727
  case REACT_MEMO_TYPE:
81716
- return getComponentName(type.type);
81728
+ var outerName = type.displayName || null;
81729
+
81730
+ if (outerName !== null) {
81731
+ return outerName;
81732
+ }
81717
81733
 
81718
- case REACT_BLOCK_TYPE:
81719
- return getComponentName(type.render);
81734
+ return getComponentNameFromType(type.type) || 'Memo';
81720
81735
 
81721
81736
  case REACT_LAZY_TYPE:
81722
81737
  {
81723
- var thenable = type;
81724
- var resolvedThenable = refineResolvedLazyComponent(thenable);
81738
+ var lazyComponent = type;
81739
+ var payload = lazyComponent._payload;
81740
+ var init = lazyComponent._init;
81741
+
81742
+ try {
81743
+ return getComponentNameFromType(init(payload));
81744
+ } catch (x) {
81745
+ return null;
81746
+ }
81747
+ }
81748
+
81749
+ // eslint-disable-next-line no-fallthrough
81750
+ }
81751
+ }
81752
+
81753
+ return null;
81754
+ }
81755
+
81756
+ var assign = Object.assign;
81757
+
81758
+ // Helpers to patch console.logs to avoid logging during side-effect free
81759
+ // replaying on render function. This currently only patches the object
81760
+ // lazily which won't cover if the log function was extracted eagerly.
81761
+ // We could also eagerly patch the method.
81762
+ var disabledDepth = 0;
81763
+ var prevLog;
81764
+ var prevInfo;
81765
+ var prevWarn;
81766
+ var prevError;
81767
+ var prevGroup;
81768
+ var prevGroupCollapsed;
81769
+ var prevGroupEnd;
81770
+
81771
+ function disabledLog() {}
81772
+
81773
+ disabledLog.__reactDisabledLog = true;
81774
+ function disableLogs() {
81775
+ {
81776
+ if (disabledDepth === 0) {
81777
+ /* eslint-disable react-internal/no-production-logging */
81778
+ prevLog = console.log;
81779
+ prevInfo = console.info;
81780
+ prevWarn = console.warn;
81781
+ prevError = console.error;
81782
+ prevGroup = console.group;
81783
+ prevGroupCollapsed = console.groupCollapsed;
81784
+ prevGroupEnd = console.groupEnd; // https://github.com/facebook/react/issues/19099
81785
+
81786
+ var props = {
81787
+ configurable: true,
81788
+ enumerable: true,
81789
+ value: disabledLog,
81790
+ writable: true
81791
+ }; // $FlowFixMe Flow thinks console is immutable.
81792
+
81793
+ Object.defineProperties(console, {
81794
+ info: props,
81795
+ log: props,
81796
+ warn: props,
81797
+ error: props,
81798
+ group: props,
81799
+ groupCollapsed: props,
81800
+ groupEnd: props
81801
+ });
81802
+ /* eslint-enable react-internal/no-production-logging */
81803
+ }
81804
+
81805
+ disabledDepth++;
81806
+ }
81807
+ }
81808
+ function reenableLogs() {
81809
+ {
81810
+ disabledDepth--;
81811
+
81812
+ if (disabledDepth === 0) {
81813
+ /* eslint-disable react-internal/no-production-logging */
81814
+ var props = {
81815
+ configurable: true,
81816
+ enumerable: true,
81817
+ writable: true
81818
+ }; // $FlowFixMe Flow thinks console is immutable.
81819
+
81820
+ Object.defineProperties(console, {
81821
+ log: assign({}, props, {
81822
+ value: prevLog
81823
+ }),
81824
+ info: assign({}, props, {
81825
+ value: prevInfo
81826
+ }),
81827
+ warn: assign({}, props, {
81828
+ value: prevWarn
81829
+ }),
81830
+ error: assign({}, props, {
81831
+ value: prevError
81832
+ }),
81833
+ group: assign({}, props, {
81834
+ value: prevGroup
81835
+ }),
81836
+ groupCollapsed: assign({}, props, {
81837
+ value: prevGroupCollapsed
81838
+ }),
81839
+ groupEnd: assign({}, props, {
81840
+ value: prevGroupEnd
81841
+ })
81842
+ });
81843
+ /* eslint-enable react-internal/no-production-logging */
81844
+ }
81845
+
81846
+ if (disabledDepth < 0) {
81847
+ error('disabledDepth fell below zero. ' + 'This is a bug in React. Please file an issue.');
81848
+ }
81849
+ }
81850
+ }
81725
81851
 
81726
- if (resolvedThenable) {
81727
- return getComponentName(resolvedThenable);
81852
+ var ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher;
81853
+ var prefix;
81854
+ function describeBuiltInComponentFrame(name, source, ownerFn) {
81855
+ {
81856
+ if (prefix === undefined) {
81857
+ // Extract the VM specific prefix used by each line.
81858
+ try {
81859
+ throw Error();
81860
+ } catch (x) {
81861
+ var match = x.stack.trim().match(/\n( *(at )?)/);
81862
+ prefix = match && match[1] || '';
81863
+ }
81864
+ } // We use the prefix to ensure our stacks line up with native stack frames.
81865
+
81866
+
81867
+ return '\n' + prefix + name;
81868
+ }
81869
+ }
81870
+ var reentry = false;
81871
+ var componentFrameCache;
81872
+
81873
+ {
81874
+ var PossiblyWeakMap = typeof WeakMap === 'function' ? WeakMap : Map;
81875
+ componentFrameCache = new PossiblyWeakMap();
81876
+ }
81877
+
81878
+ function describeNativeComponentFrame(fn, construct) {
81879
+ // If something asked for a stack inside a fake render, it should get ignored.
81880
+ if ( !fn || reentry) {
81881
+ return '';
81882
+ }
81883
+
81884
+ {
81885
+ var frame = componentFrameCache.get(fn);
81886
+
81887
+ if (frame !== undefined) {
81888
+ return frame;
81889
+ }
81890
+ }
81891
+
81892
+ var control;
81893
+ reentry = true;
81894
+ var previousPrepareStackTrace = Error.prepareStackTrace; // $FlowFixMe It does accept undefined.
81895
+
81896
+ Error.prepareStackTrace = undefined;
81897
+ var previousDispatcher;
81898
+
81899
+ {
81900
+ previousDispatcher = ReactCurrentDispatcher.current; // Set the dispatcher in DEV because this might be call in the render function
81901
+ // for warnings.
81902
+
81903
+ ReactCurrentDispatcher.current = null;
81904
+ disableLogs();
81905
+ }
81906
+
81907
+ try {
81908
+ // This should throw.
81909
+ if (construct) {
81910
+ // Something should be setting the props in the constructor.
81911
+ var Fake = function () {
81912
+ throw Error();
81913
+ }; // $FlowFixMe
81914
+
81915
+
81916
+ Object.defineProperty(Fake.prototype, 'props', {
81917
+ set: function () {
81918
+ // We use a throwing setter instead of frozen or non-writable props
81919
+ // because that won't throw in a non-strict mode function.
81920
+ throw Error();
81921
+ }
81922
+ });
81923
+
81924
+ if (typeof Reflect === 'object' && Reflect.construct) {
81925
+ // We construct a different control for this case to include any extra
81926
+ // frames added by the construct call.
81927
+ try {
81928
+ Reflect.construct(Fake, []);
81929
+ } catch (x) {
81930
+ control = x;
81931
+ }
81932
+
81933
+ Reflect.construct(fn, [], Fake);
81934
+ } else {
81935
+ try {
81936
+ Fake.call();
81937
+ } catch (x) {
81938
+ control = x;
81939
+ }
81940
+
81941
+ fn.call(Fake.prototype);
81942
+ }
81943
+ } else {
81944
+ try {
81945
+ throw Error();
81946
+ } catch (x) {
81947
+ control = x;
81948
+ }
81949
+
81950
+ fn();
81951
+ }
81952
+ } catch (sample) {
81953
+ // This is inlined manually because closure doesn't do it for us.
81954
+ if (sample && control && typeof sample.stack === 'string') {
81955
+ // This extracts the first frame from the sample that isn't also in the control.
81956
+ // Skipping one frame that we assume is the frame that calls the two.
81957
+ var sampleLines = sample.stack.split('\n');
81958
+ var controlLines = control.stack.split('\n');
81959
+ var s = sampleLines.length - 1;
81960
+ var c = controlLines.length - 1;
81961
+
81962
+ while (s >= 1 && c >= 0 && sampleLines[s] !== controlLines[c]) {
81963
+ // We expect at least one stack frame to be shared.
81964
+ // Typically this will be the root most one. However, stack frames may be
81965
+ // cut off due to maximum stack limits. In this case, one maybe cut off
81966
+ // earlier than the other. We assume that the sample is longer or the same
81967
+ // and there for cut off earlier. So we should find the root most frame in
81968
+ // the sample somewhere in the control.
81969
+ c--;
81970
+ }
81971
+
81972
+ for (; s >= 1 && c >= 0; s--, c--) {
81973
+ // Next we find the first one that isn't the same which should be the
81974
+ // frame that called our sample function and the control.
81975
+ if (sampleLines[s] !== controlLines[c]) {
81976
+ // In V8, the first line is describing the message but other VMs don't.
81977
+ // If we're about to return the first line, and the control is also on the same
81978
+ // line, that's a pretty good indicator that our sample threw at same line as
81979
+ // the control. I.e. before we entered the sample frame. So we ignore this result.
81980
+ // This can happen if you passed a class to function component, or non-function.
81981
+ if (s !== 1 || c !== 1) {
81982
+ do {
81983
+ s--;
81984
+ c--; // We may still have similar intermediate frames from the construct call.
81985
+ // The next one that isn't the same should be our match though.
81986
+
81987
+ if (c < 0 || sampleLines[s] !== controlLines[c]) {
81988
+ // V8 adds a "new" prefix for native classes. Let's remove it to make it prettier.
81989
+ var _frame = '\n' + sampleLines[s].replace(' at new ', ' at '); // If our component frame is labeled "<anonymous>"
81990
+ // but we have a user-provided "displayName"
81991
+ // splice it in to make the stack more readable.
81992
+
81993
+
81994
+ if (fn.displayName && _frame.includes('<anonymous>')) {
81995
+ _frame = _frame.replace('<anonymous>', fn.displayName);
81996
+ }
81997
+
81998
+ {
81999
+ if (typeof fn === 'function') {
82000
+ componentFrameCache.set(fn, _frame);
82001
+ }
82002
+ } // Return the line we found.
82003
+
82004
+
82005
+ return _frame;
82006
+ }
82007
+ } while (s >= 1 && c >= 0);
81728
82008
  }
81729
82009
 
81730
82010
  break;
81731
82011
  }
82012
+ }
82013
+ }
82014
+ } finally {
82015
+ reentry = false;
82016
+
82017
+ {
82018
+ ReactCurrentDispatcher.current = previousDispatcher;
82019
+ reenableLogs();
82020
+ }
82021
+
82022
+ Error.prepareStackTrace = previousPrepareStackTrace;
82023
+ } // Fallback to just using the name if we couldn't make it throw.
82024
+
82025
+
82026
+ var name = fn ? fn.displayName || fn.name : '';
82027
+ var syntheticFrame = name ? describeBuiltInComponentFrame(name) : '';
82028
+
82029
+ {
82030
+ if (typeof fn === 'function') {
82031
+ componentFrameCache.set(fn, syntheticFrame);
81732
82032
  }
81733
82033
  }
81734
82034
 
81735
- return null;
82035
+ return syntheticFrame;
82036
+ }
82037
+ function describeFunctionComponentFrame(fn, source, ownerFn) {
82038
+ {
82039
+ return describeNativeComponentFrame(fn, false);
82040
+ }
82041
+ }
82042
+
82043
+ function shouldConstruct(Component) {
82044
+ var prototype = Component.prototype;
82045
+ return !!(prototype && prototype.isReactComponent);
82046
+ }
82047
+
82048
+ function describeUnknownElementTypeFrameInDEV(type, source, ownerFn) {
82049
+
82050
+ if (type == null) {
82051
+ return '';
82052
+ }
82053
+
82054
+ if (typeof type === 'function') {
82055
+ {
82056
+ return describeNativeComponentFrame(type, shouldConstruct(type));
82057
+ }
82058
+ }
82059
+
82060
+ if (typeof type === 'string') {
82061
+ return describeBuiltInComponentFrame(type);
82062
+ }
82063
+
82064
+ switch (type) {
82065
+ case REACT_SUSPENSE_TYPE:
82066
+ return describeBuiltInComponentFrame('Suspense');
82067
+
82068
+ case REACT_SUSPENSE_LIST_TYPE:
82069
+ return describeBuiltInComponentFrame('SuspenseList');
82070
+ }
82071
+
82072
+ if (typeof type === 'object') {
82073
+ switch (type.$$typeof) {
82074
+ case REACT_FORWARD_REF_TYPE:
82075
+ return describeFunctionComponentFrame(type.render);
82076
+
82077
+ case REACT_MEMO_TYPE:
82078
+ // Memo may contain any component type so we recursively resolve it.
82079
+ return describeUnknownElementTypeFrameInDEV(type.type, source, ownerFn);
82080
+
82081
+ case REACT_LAZY_TYPE:
82082
+ {
82083
+ var lazyComponent = type;
82084
+ var payload = lazyComponent._payload;
82085
+ var init = lazyComponent._init;
82086
+
82087
+ try {
82088
+ // Lazy may contain any component type so we recursively resolve it.
82089
+ return describeUnknownElementTypeFrameInDEV(init(payload), source, ownerFn);
82090
+ } catch (x) {}
82091
+ }
82092
+ }
82093
+ }
82094
+
82095
+ return '';
81736
82096
  }
81737
82097
 
82098
+ var hasOwnProperty = Object.prototype.hasOwnProperty;
82099
+
81738
82100
  var loggedTypeFailures = {};
81739
82101
  var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
81740
- var currentlyValidatingElement = null;
81741
82102
 
81742
82103
  function setCurrentlyValidatingElement(element) {
81743
82104
  {
81744
- currentlyValidatingElement = element;
82105
+ if (element) {
82106
+ var owner = element._owner;
82107
+ var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
82108
+ ReactDebugCurrentFrame.setExtraStackFrame(stack);
82109
+ } else {
82110
+ ReactDebugCurrentFrame.setExtraStackFrame(null);
82111
+ }
81745
82112
  }
81746
82113
  }
81747
82114
 
81748
82115
  function checkPropTypes(typeSpecs, values, location, componentName, element) {
81749
82116
  {
81750
82117
  // $FlowFixMe This is okay but Flow doesn't know it.
81751
- var has = Function.call.bind(Object.prototype.hasOwnProperty);
82118
+ var has = Function.call.bind(hasOwnProperty);
81752
82119
 
81753
82120
  for (var typeSpecName in typeSpecs) {
81754
82121
  if (has(typeSpecs, typeSpecName)) {
@@ -81760,6 +82127,7 @@ function checkPropTypes(typeSpecs, values, location, componentName, element) {
81760
82127
  // This is intentionally an invariant that gets caught. It's the same
81761
82128
  // behavior as without this statement except with a better message.
81762
82129
  if (typeof typeSpecs[typeSpecName] !== 'function') {
82130
+ // eslint-disable-next-line react-internal/prod-error-codes
81763
82131
  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
82132
  err.name = 'Invariant Violation';
81765
82133
  throw err;
@@ -81793,8 +82161,80 @@ function checkPropTypes(typeSpecs, values, location, componentName, element) {
81793
82161
  }
81794
82162
  }
81795
82163
 
82164
+ var isArrayImpl = Array.isArray; // eslint-disable-next-line no-redeclare
82165
+
82166
+ function isArray(a) {
82167
+ return isArrayImpl(a);
82168
+ }
82169
+
82170
+ /*
82171
+ * The `'' + value` pattern (used in in perf-sensitive code) throws for Symbol
82172
+ * and Temporal.* types. See https://github.com/facebook/react/pull/22064.
82173
+ *
82174
+ * The functions in this module will throw an easier-to-understand,
82175
+ * easier-to-debug exception with a clear errors message message explaining the
82176
+ * problem. (Instead of a confusing exception thrown inside the implementation
82177
+ * of the `value` object).
82178
+ */
82179
+ // $FlowFixMe only called in DEV, so void return is not possible.
82180
+ function typeName(value) {
82181
+ {
82182
+ // toStringTag is needed for namespaced types like Temporal.Instant
82183
+ var hasToStringTag = typeof Symbol === 'function' && Symbol.toStringTag;
82184
+ var type = hasToStringTag && value[Symbol.toStringTag] || value.constructor.name || 'Object';
82185
+ return type;
82186
+ }
82187
+ } // $FlowFixMe only called in DEV, so void return is not possible.
82188
+
82189
+
82190
+ function willCoercionThrow(value) {
82191
+ {
82192
+ try {
82193
+ testStringCoercion(value);
82194
+ return false;
82195
+ } catch (e) {
82196
+ return true;
82197
+ }
82198
+ }
82199
+ }
82200
+
82201
+ function testStringCoercion(value) {
82202
+ // If you ended up here by following an exception call stack, here's what's
82203
+ // happened: you supplied an object or symbol value to React (as a prop, key,
82204
+ // DOM attribute, CSS property, string ref, etc.) and when React tried to
82205
+ // coerce it to a string using `'' + value`, an exception was thrown.
82206
+ //
82207
+ // The most common types that will cause this exception are `Symbol` instances
82208
+ // and Temporal objects like `Temporal.Instant`. But any object that has a
82209
+ // `valueOf` or `[Symbol.toPrimitive]` method that throws will also cause this
82210
+ // exception. (Library authors do this to prevent users from using built-in
82211
+ // numeric operators like `+` or comparison operators like `>=` because custom
82212
+ // methods are needed to perform accurate arithmetic or comparison.)
82213
+ //
82214
+ // To fix the problem, coerce this object or symbol value to a string before
82215
+ // passing it to React. The most reliable way is usually `String(value)`.
82216
+ //
82217
+ // To find which value is throwing, check the browser or debugger console.
82218
+ // Before this exception was thrown, there should be `console.error` output
82219
+ // that shows the type (Symbol, Temporal.PlainDate, etc.) that caused the
82220
+ // problem and how that type was used: key, atrribute, input value prop, etc.
82221
+ // In most cases, this console output also shows the component and its
82222
+ // ancestor components where the exception happened.
82223
+ //
82224
+ // eslint-disable-next-line react-internal/safe-string-coercion
82225
+ return '' + value;
82226
+ }
82227
+ function checkKeyStringCoercion(value) {
82228
+ {
82229
+ if (willCoercionThrow(value)) {
82230
+ error('The provided key is an unsupported type %s.' + ' This value must be coerced to a string before before using it here.', typeName(value));
82231
+
82232
+ return testStringCoercion(value); // throw (to help callers find troubleshooting comments)
82233
+ }
82234
+ }
82235
+ }
82236
+
81796
82237
  var ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner;
81797
- var hasOwnProperty = Object.prototype.hasOwnProperty;
81798
82238
  var RESERVED_PROPS = {
81799
82239
  key: true,
81800
82240
  ref: true,
@@ -81840,10 +82280,10 @@ function hasValidKey(config) {
81840
82280
  function warnIfStringRefCannotBeAutoConverted(config, self) {
81841
82281
  {
81842
82282
  if (typeof config.ref === 'string' && ReactCurrentOwner.current && self && ReactCurrentOwner.current.stateNode !== self) {
81843
- var componentName = getComponentName(ReactCurrentOwner.current.type);
82283
+ var componentName = getComponentNameFromType(ReactCurrentOwner.current.type);
81844
82284
 
81845
82285
  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);
82286
+ 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
82287
 
81848
82288
  didWarnAboutStringRefs[componentName] = true;
81849
82289
  }
@@ -81982,10 +82422,18 @@ function jsxDEV(type, config, maybeKey, source, self) {
81982
82422
  // key is explicitly declared to be undefined or not.
81983
82423
 
81984
82424
  if (maybeKey !== undefined) {
82425
+ {
82426
+ checkKeyStringCoercion(maybeKey);
82427
+ }
82428
+
81985
82429
  key = '' + maybeKey;
81986
82430
  }
81987
82431
 
81988
82432
  if (hasValidKey(config)) {
82433
+ {
82434
+ checkKeyStringCoercion(config.key);
82435
+ }
82436
+
81989
82437
  key = '' + config.key;
81990
82438
  }
81991
82439
 
@@ -82032,7 +82480,15 @@ var ReactCurrentOwner$1 = ReactSharedInternals.ReactCurrentOwner;
82032
82480
  var ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame;
82033
82481
 
82034
82482
  function setCurrentlyValidatingElement$1(element) {
82035
- currentlyValidatingElement = element;
82483
+ {
82484
+ if (element) {
82485
+ var owner = element._owner;
82486
+ var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
82487
+ ReactDebugCurrentFrame$1.setExtraStackFrame(stack);
82488
+ } else {
82489
+ ReactDebugCurrentFrame$1.setExtraStackFrame(null);
82490
+ }
82491
+ }
82036
82492
  }
82037
82493
 
82038
82494
  var propTypesMisspellWarningShown;
@@ -82048,6 +82504,7 @@ var propTypesMisspellWarningShown;
82048
82504
  * @final
82049
82505
  */
82050
82506
 
82507
+
82051
82508
  function isValidElement(object) {
82052
82509
  {
82053
82510
  return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
@@ -82057,7 +82514,7 @@ function isValidElement(object) {
82057
82514
  function getDeclarationErrorAddendum() {
82058
82515
  {
82059
82516
  if (ReactCurrentOwner$1.current) {
82060
- var name = getComponentName(ReactCurrentOwner$1.current.type);
82517
+ var name = getComponentNameFromType(ReactCurrentOwner$1.current.type);
82061
82518
 
82062
82519
  if (name) {
82063
82520
  return '\n\nCheck the render method of `' + name + '`.';
@@ -82137,7 +82594,7 @@ function validateExplicitKey(element, parentType) {
82137
82594
 
82138
82595
  if (element && element._owner && element._owner !== ReactCurrentOwner$1.current) {
82139
82596
  // Give the component that originally created this child.
82140
- childOwner = " It was passed a child from " + getComponentName(element._owner.type) + ".";
82597
+ childOwner = " It was passed a child from " + getComponentNameFromType(element._owner.type) + ".";
82141
82598
  }
82142
82599
 
82143
82600
  setCurrentlyValidatingElement$1(element);
@@ -82164,7 +82621,7 @@ function validateChildKeys(node, parentType) {
82164
82621
  return;
82165
82622
  }
82166
82623
 
82167
- if (Array.isArray(node)) {
82624
+ if (isArray(node)) {
82168
82625
  for (var i = 0; i < node.length; i++) {
82169
82626
  var child = node[i];
82170
82627
 
@@ -82227,12 +82684,12 @@ function validatePropTypes(element) {
82227
82684
 
82228
82685
  if (propTypes) {
82229
82686
  // Intentionally inside to avoid triggering lazy initializers:
82230
- var name = getComponentName(type);
82687
+ var name = getComponentNameFromType(type);
82231
82688
  checkPropTypes(propTypes, element.props, 'prop', name, element);
82232
82689
  } else if (type.PropTypes !== undefined && !propTypesMisspellWarningShown) {
82233
82690
  propTypesMisspellWarningShown = true; // Intentionally inside to avoid triggering lazy initializers:
82234
82691
 
82235
- var _name = getComponentName(type);
82692
+ var _name = getComponentNameFromType(type);
82236
82693
 
82237
82694
  error('Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?', _name || 'Unknown');
82238
82695
  }
@@ -82275,6 +82732,7 @@ function validateFragmentProps(fragment) {
82275
82732
  }
82276
82733
  }
82277
82734
 
82735
+ var didWarnAboutKeySpread = {};
82278
82736
  function jsxWithValidation(type, props, key, isStaticChildren, source, self) {
82279
82737
  {
82280
82738
  var validType = isValidElementType(type); // We warn in this case but don't throw. We expect the element creation to
@@ -82299,10 +82757,10 @@ function jsxWithValidation(type, props, key, isStaticChildren, source, self) {
82299
82757
 
82300
82758
  if (type === null) {
82301
82759
  typeString = 'null';
82302
- } else if (Array.isArray(type)) {
82760
+ } else if (isArray(type)) {
82303
82761
  typeString = 'array';
82304
82762
  } else if (type !== undefined && type.$$typeof === REACT_ELEMENT_TYPE) {
82305
- typeString = "<" + (getComponentName(type.type) || 'Unknown') + " />";
82763
+ typeString = "<" + (getComponentNameFromType(type.type) || 'Unknown') + " />";
82306
82764
  info = ' Did you accidentally export a JSX literal instead of a component?';
82307
82765
  } else {
82308
82766
  typeString = typeof type;
@@ -82328,7 +82786,7 @@ function jsxWithValidation(type, props, key, isStaticChildren, source, self) {
82328
82786
 
82329
82787
  if (children !== undefined) {
82330
82788
  if (isStaticChildren) {
82331
- if (Array.isArray(children)) {
82789
+ if (isArray(children)) {
82332
82790
  for (var i = 0; i < children.length; i++) {
82333
82791
  validateChildKeys(children[i], type);
82334
82792
  }
@@ -82345,7 +82803,25 @@ function jsxWithValidation(type, props, key, isStaticChildren, source, self) {
82345
82803
  }
82346
82804
  }
82347
82805
 
82348
- if (type === exports.Fragment) {
82806
+ {
82807
+ if (hasOwnProperty.call(props, 'key')) {
82808
+ var componentName = getComponentNameFromType(type);
82809
+ var keys = Object.keys(props).filter(function (k) {
82810
+ return k !== 'key';
82811
+ });
82812
+ var beforeExample = keys.length > 0 ? '{key: someKey, ' + keys.join(': ..., ') + ': ...}' : '{key: someKey}';
82813
+
82814
+ if (!didWarnAboutKeySpread[componentName + beforeExample]) {
82815
+ var afterExample = keys.length > 0 ? '{' + keys.join(': ..., ') + ': ...}' : '{}';
82816
+
82817
+ 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);
82818
+
82819
+ didWarnAboutKeySpread[componentName + beforeExample] = true;
82820
+ }
82821
+ }
82822
+ }
82823
+
82824
+ if (type === REACT_FRAGMENT_TYPE) {
82349
82825
  validateFragmentProps(element);
82350
82826
  } else {
82351
82827
  validatePropTypes(element);
@@ -82374,6 +82850,7 @@ var jsx = jsxWithValidationDynamic ; // we may want to special case jsxs intern
82374
82850
 
82375
82851
  var jsxs = jsxWithValidationStatic ;
82376
82852
 
82853
+ exports.Fragment = REACT_FRAGMENT_TYPE;
82377
82854
  exports.jsx = jsx;
82378
82855
  exports.jsxs = jsxs;
82379
82856
  })();