@luminati-io/uikit 3.1.3 → 3.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -21020,7 +21020,7 @@ __webpack_require__.r(__webpack_exports__);
21020
21020
 
21021
21021
 
21022
21022
  /*jslint react:true*/
21023
- var _excluded = ["header", "description", "actions", "data", "palette", "loading", "Chart", "legendItem", "chartProps", "showLegend"];
21023
+ var _excluded = ["header", "description", "actions", "data", "palette", "loading", "Chart", "legendItem", "chartProps", "showLegend", "variant", "width", "height"];
21024
21024
  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); }
21025
21025
  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; }
21026
21026
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
@@ -21046,13 +21046,17 @@ var ChartContainer = function ChartContainer(props) {
21046
21046
  legendItem = props.legendItem,
21047
21047
  chartProps = props.chartProps,
21048
21048
  showLegend = props.showLegend,
21049
+ variant = props.variant,
21050
+ _width = props.width,
21051
+ _height = props.height,
21049
21052
  rest = _objectWithoutProperties(props, _excluded);
21050
- var outerWidth = props.width ? Math.max(410, props.width) : undefined;
21051
- var outerHeight = Math.max(176, props.height || 0);
21053
+ var outerWidth = _width ? Math.max(410, _width) : undefined;
21054
+ var outerHeight = Math.max(176, _height || 0);
21052
21055
  var noData = !(data && data.length);
21053
21056
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(ChartContainerWrapper, _extends({}, rest, {
21054
- width: outerWidth,
21055
- height: outerHeight
21057
+ $variant: variant,
21058
+ $width: outerWidth,
21059
+ $height: outerHeight
21056
21060
  }), !!header && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(HeaderWrapper, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_4__.Header, {
21057
21061
  color: "gray_11_75"
21058
21062
  }, header), !!description && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_4__.Label, {
@@ -21094,11 +21098,11 @@ var ChartContainerWrapper = styled_components__WEBPACK_IMPORTED_MODULE_2___defau
21094
21098
  displayName: "ChartContainerWrapper",
21095
21099
  componentId: "sc-13xkdxv-0"
21096
21100
  })(["display:flex;flex-direction:column;", " height:", ";", ""], function (props) {
21097
- return props.width ? "width: ".concat((0,_utils__WEBPACK_IMPORTED_MODULE_5__.toPixel)(props.width), ";") : undefined;
21101
+ return props.$width ? "width: ".concat((0,_utils__WEBPACK_IMPORTED_MODULE_5__.toPixel)(props.$width), ";") : undefined;
21098
21102
  }, function (props) {
21099
- return (0,_utils__WEBPACK_IMPORTED_MODULE_5__.toPixel)(props.height);
21103
+ return (0,_utils__WEBPACK_IMPORTED_MODULE_5__.toPixel)(props.$height);
21100
21104
  }, function (props) {
21101
- if (props.variant != 'ghost') {
21105
+ if (props.$variant != 'ghost') {
21102
21106
  return (0,styled_components__WEBPACK_IMPORTED_MODULE_2__.css)(["padding:", ";border-radius:8px;border:1px solid ", ";"], _theme__WEBPACK_IMPORTED_MODULE_3__["default"].spacing['06'], _theme__WEBPACK_IMPORTED_MODULE_3__["default"].color.gray_5);
21103
21107
  }
21104
21108
  });
@@ -23886,8 +23890,8 @@ var Checkbox = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forward
23886
23890
  ref: ref
23887
23891
  }, rest, {
23888
23892
  onClick: handleClick,
23889
- verticalAlign: verticalAlign,
23890
- disabled: disabled
23893
+ $verticalAlign: verticalAlign,
23894
+ $disabled: disabled
23891
23895
  }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(CheckboxControl, {
23892
23896
  role: "checkbox",
23893
23897
  "aria-checked": checked ? true : indeterminate ? 'mixed' : false,
@@ -23916,9 +23920,9 @@ var CheckboxWrapper = styled_components__WEBPACK_IMPORTED_MODULE_2___default().d
23916
23920
  displayName: "CheckboxWrapper",
23917
23921
  componentId: "sc-623yyg-0"
23918
23922
  })(["display:inline-flex;align-items:center;gap:", ";vertical-align:", ";", ""], _theme__WEBPACK_IMPORTED_MODULE_4__["default"].spacing['03'], function (props) {
23919
- return props.verticalAlign;
23923
+ return props.$verticalAlign;
23920
23924
  }, function (props) {
23921
- return props.disabled ? undefined : (0,styled_components__WEBPACK_IMPORTED_MODULE_2__.css)(["cursor:pointer;"]);
23925
+ return props.$disabled ? undefined : (0,styled_components__WEBPACK_IMPORTED_MODULE_2__.css)(["cursor:pointer;"]);
23922
23926
  });
23923
23927
  var CheckboxControl = styled_components__WEBPACK_IMPORTED_MODULE_2___default().div.withConfig({
23924
23928
  displayName: "CheckboxControl",
@@ -25820,8 +25824,8 @@ var Radio = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forwardRef
25820
25824
  }, _defineProperty(_classNames2, 'radio--is-selected', checked), _defineProperty(_classNames2, 'radio--is-disabled', disabled), _classNames2))
25821
25825
  }, rest, {
25822
25826
  onClick: handleClick,
25823
- verticalAlign: verticalAlign,
25824
- disabled: disabled
25827
+ $verticalAlign: verticalAlign,
25828
+ $disabled: disabled
25825
25829
  }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(RadioControl, {
25826
25830
  className: (0,_utils__WEBPACK_IMPORTED_MODULE_8__.classNames)(classNamePrefix, {
25827
25831
  radioControl: true
@@ -25860,9 +25864,9 @@ var RadioWrapper = styled_components__WEBPACK_IMPORTED_MODULE_2___default().div.
25860
25864
  displayName: "RadioWrapper",
25861
25865
  componentId: "sc-10oi3py-0"
25862
25866
  })(["display:inline-flex;align-items:center;gap:", ";vertical-align:", ";", ""], _theme__WEBPACK_IMPORTED_MODULE_5__["default"].spacing['03'], function (props) {
25863
- return props.verticalAlign;
25867
+ return props.$verticalAlign;
25864
25868
  }, function (props) {
25865
- return props.disabled ? undefined : (0,styled_components__WEBPACK_IMPORTED_MODULE_2__.css)(["cursor:pointer;"]);
25869
+ return props.$disabled ? undefined : (0,styled_components__WEBPACK_IMPORTED_MODULE_2__.css)(["cursor:pointer;"]);
25866
25870
  });
25867
25871
  var RadioControl = styled_components__WEBPACK_IMPORTED_MODULE_2___default().div.withConfig({
25868
25872
  displayName: "RadioControl",
@@ -28345,12 +28349,13 @@ __webpack_require__.r(__webpack_exports__);
28345
28349
  /* harmony import */ var _editable_columns__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./editable_columns */ "./src/table/editable_columns.js");
28346
28350
  /* harmony import */ var _pinned_columns__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./pinned_columns */ "./src/table/pinned_columns.js");
28347
28351
  /* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./util */ "./src/table/util.js");
28352
+ /* harmony import */ var _expandable_rows__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./expandable_rows */ "./src/table/expandable_rows.js");
28348
28353
  // LICENSE_CODE ZON
28349
28354
 
28350
28355
 
28351
28356
  /*jslint react:true*/
28352
28357
  function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
28353
- var _excluded = ["data", "columnsSort", "pageSize", "pageSizes", "children", "stateManager", "hooks", "NoDataComp", "LoadingComp", "noDataText", "loadingText", "isLoading", "onPageChange", "manualPagination", "totalCount", "getHeaderProps", "getColumnProps", "getRowProps", "getCellProps", "getFooterProps"];
28358
+ var _excluded = ["data", "columnsSort", "pageSize", "pageSizes", "children", "stateManager", "hooks", "NoDataComp", "LoadingComp", "ExpandHandleComp", "noDataText", "loadingText", "isLoading", "onPageChange", "manualPagination", "totalCount", "paginateExpandedRows", "getHeaderProps", "getColumnProps", "getRowProps", "getCellProps", "getFooterProps"];
28354
28359
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
28355
28360
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
28356
28361
  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; }
@@ -28377,6 +28382,7 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
28377
28382
 
28378
28383
 
28379
28384
 
28385
+
28380
28386
  var assign = Object.assign;
28381
28387
  var defaultPropGetter = function defaultPropGetter() {
28382
28388
  return {};
@@ -28409,6 +28415,8 @@ var Provider = function Provider(props) {
28409
28415
  hooks = _props$hooks === void 0 ? [] : _props$hooks,
28410
28416
  NoDataComp = props.NoDataComp,
28411
28417
  LoadingComp = props.LoadingComp,
28418
+ _props$ExpandHandleCo = props.ExpandHandleComp,
28419
+ ExpandHandleComp = _props$ExpandHandleCo === void 0 ? _expandable_rows__WEBPACK_IMPORTED_MODULE_9__.ExpandHandle : _props$ExpandHandleCo,
28412
28420
  _props$noDataText = props.noDataText,
28413
28421
  noDataText = _props$noDataText === void 0 ? 'No data' : _props$noDataText,
28414
28422
  _props$loadingText = props.loadingText,
@@ -28419,6 +28427,8 @@ var Provider = function Provider(props) {
28419
28427
  _props$manualPaginati = props.manualPagination,
28420
28428
  manualPagination = _props$manualPaginati === void 0 ? false : _props$manualPaginati,
28421
28429
  totalCount = props.totalCount,
28430
+ _props$paginateExpand = props.paginateExpandedRows,
28431
+ paginateExpandedRows = _props$paginateExpand === void 0 ? false : _props$paginateExpand,
28422
28432
  _props$getHeaderProps = props.getHeaderProps,
28423
28433
  getHeaderProps = _props$getHeaderProps === void 0 ? defaultPropGetter : _props$getHeaderProps,
28424
28434
  _props$getColumnProps = props.getColumnProps,
@@ -28454,13 +28464,15 @@ var Provider = function Provider(props) {
28454
28464
  manualPagination: manualPagination,
28455
28465
  pageCount: pageCount,
28456
28466
  totalCount: totalCount,
28467
+ paginateExpandedRows: paginateExpandedRows,
28457
28468
  isLoading: isLoading,
28458
28469
  getHeaderProps: getHeaderProps,
28459
28470
  getColumnProps: getColumnProps,
28460
28471
  getRowProps: getRowProps,
28461
28472
  getCellProps: getCellProps,
28462
- getFooterProps: getFooterProps
28463
- }, rest), useCanHideColumns, react_table__WEBPACK_IMPORTED_MODULE_2__.usePagination, props.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_7__.usePinnedColumns, _editable_columns__WEBPACK_IMPORTED_MODULE_6__.useEditableColumns].concat(_toConsumableArray(hooks)));
28473
+ getFooterProps: getFooterProps,
28474
+ ExpandHandleComp: ExpandHandleComp
28475
+ }, rest), useCanHideColumns, react_table__WEBPACK_IMPORTED_MODULE_2__.useExpanded, _expandable_rows__WEBPACK_IMPORTED_MODULE_9__.useExpandHandle, react_table__WEBPACK_IMPORTED_MODULE_2__.usePagination, props.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_7__.usePinnedColumns, _editable_columns__WEBPACK_IMPORTED_MODULE_6__.useEditableColumns].concat(_toConsumableArray(hooks)));
28464
28476
  var _table$state = table.state,
28465
28477
  pageIndex = _table$state.pageIndex,
28466
28478
  _pageSize = _table$state.pageSize;
@@ -28513,6 +28525,7 @@ Provider.propTypes = {
28513
28525
  pageSizes: prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().number)),
28514
28526
  manualPagination: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
28515
28527
  totalCount: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number),
28528
+ paginateExpandedRows: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
28516
28529
  onPageChange: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
28517
28530
  isLoading: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
28518
28531
  hiddenColumns: prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().string)),
@@ -28701,8 +28714,8 @@ var ItemsWrapper = styled_components__WEBPACK_IMPORTED_MODULE_2___default().div.
28701
28714
  displayName: "ItemsWrapper",
28702
28715
  componentId: "sc-1uptv2h-1"
28703
28716
  })(["width:100%;display:flex;flex-direction:column;gap:2px;box-sizing:border-box;", ""], function (props) {
28704
- if (props.maxMenuHeight > 0) {
28705
- 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);
28717
+ if (props.$maxMenuHeight > 0) {
28718
+ 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);
28706
28719
  }
28707
28720
  });
28708
28721
  var CustomizeButtonPopover = function CustomizeButtonPopover(props) {
@@ -28715,7 +28728,7 @@ var CustomizeButtonPopover = function CustomizeButtonPopover(props) {
28715
28728
  search: search,
28716
28729
  setSearch: setSearch
28717
28730
  }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(ItemsWrapper, {
28718
- maxMenuHeight: maxMenuHeight
28731
+ $maxMenuHeight: maxMenuHeight
28719
28732
  }, items));
28720
28733
  };
28721
28734
  CustomizeButtonPopover.displayName = 'CustomizeButtonPopover';
@@ -28893,6 +28906,64 @@ useEditableColumns.pluginName = 'useEditableColumns';
28893
28906
 
28894
28907
  /***/ }),
28895
28908
 
28909
+ /***/ "./src/table/expandable_rows.js":
28910
+ /*!**************************************!*\
28911
+ !*** ./src/table/expandable_rows.js ***!
28912
+ \**************************************/
28913
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
28914
+
28915
+ "use strict";
28916
+ __webpack_require__.r(__webpack_exports__);
28917
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
28918
+ /* harmony export */ ExpandHandle: () => (/* binding */ ExpandHandle),
28919
+ /* harmony export */ useExpandHandle: () => (/* binding */ useExpandHandle)
28920
+ /* harmony export */ });
28921
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
28922
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
28923
+ /* harmony import */ var _layout__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../layout */ "./src/layout/index.js");
28924
+ /* harmony import */ var _theme__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../theme */ "./src/theme.js");
28925
+ /* harmony import */ var _icon_button__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../icon_button */ "./src/icon_button.js");
28926
+ // LICENSE_CODE ZON
28927
+
28928
+
28929
+ /*jslint react:true*/
28930
+ 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); }
28931
+
28932
+
28933
+
28934
+
28935
+
28936
+ // This is a complementary module to useExpanded from react-table.
28937
+
28938
+ var ExpandHandle = function ExpandHandle(props) {
28939
+ var canExpand = props.canExpand,
28940
+ getToggleRowExpandedProps = props.getToggleRowExpandedProps,
28941
+ isExpanded = props.isExpanded;
28942
+ var icon = isExpanded ? 'ChevronDown' : 'ChevronRight';
28943
+ if (!canExpand) return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_layout__WEBPACK_IMPORTED_MODULE_1__.Box, {
28944
+ width: _theme__WEBPACK_IMPORTED_MODULE_2__["default"].spacing['06']
28945
+ });
28946
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_icon_button__WEBPACK_IMPORTED_MODULE_3__["default"], _extends({
28947
+ icon: icon,
28948
+ size: "xs"
28949
+ }, getToggleRowExpandedProps()));
28950
+ };
28951
+ var withAttachedProps = function withAttachedProps(Comp, rowProps) {
28952
+ return function WithAttachedProps() {
28953
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(Comp, rowProps);
28954
+ };
28955
+ };
28956
+ var useExpandHandle = function useExpandHandle(hooks) {
28957
+ hooks.prepareRow.push(function (row, _ref) {
28958
+ var instance = _ref.instance;
28959
+ var ExpandHandleComp = instance.ExpandHandleComp;
28960
+ row.ExpandHandle = withAttachedProps(ExpandHandleComp, row);
28961
+ });
28962
+ };
28963
+ useExpandHandle.pluginName = 'useExpandHandle';
28964
+
28965
+ /***/ }),
28966
+
28896
28967
  /***/ "./src/table/footer.js":
28897
28968
  /*!*****************************!*\
28898
28969
  !*** ./src/table/footer.js ***!
@@ -30389,34 +30460,9 @@ var Table = function Table(props) {
30389
30460
  classNamePrefix = props.classNamePrefix;
30390
30461
  var offsetTop = lodash_isObject__WEBPACK_IMPORTED_MODULE_0___default()(stickyHeader) && stickyHeader.offsetTop || 0;
30391
30462
  var _useTableContext = (0,_context__WEBPACK_IMPORTED_MODULE_7__.useTableContext)(),
30392
- getTableProps = _useTableContext.getTableProps,
30393
- getTableBodyProps = _useTableContext.getTableBodyProps,
30394
- prepareRow = _useTableContext.prepareRow,
30395
- page = _useTableContext.page,
30396
- _useTableContext$pinn = _useTableContext.pinnedRows,
30397
- pinnedRows = _useTableContext$pinn === void 0 ? [] : _useTableContext$pinn,
30398
- NoDataComp = _useTableContext.NoDataComp,
30399
- LoadingComp = _useTableContext.LoadingComp,
30400
- isLoading = _useTableContext.isLoading,
30401
- getRowProps = _useTableContext.getRowProps;
30463
+ getTableProps = _useTableContext.getTableProps;
30402
30464
  var wrapperRef = (0,react__WEBPACK_IMPORTED_MODULE_2__.useRef)();
30403
30465
  var tableRef = (0,react__WEBPACK_IMPORTED_MODULE_2__.useRef)();
30404
- var body = function () {
30405
- if (isLoading) return (0,_util_flex_renderer__WEBPACK_IMPORTED_MODULE_6__.flexRender)(LoadingComp);
30406
- if (!page.length) return (0,_util_flex_renderer__WEBPACK_IMPORTED_MODULE_6__.flexRender)(NoDataComp);
30407
- return page.map(function (row, i, arr) {
30408
- prepareRow(row);
30409
- if (row.isPinned) return null;
30410
- return (0,_render_row__WEBPACK_IMPORTED_MODULE_10__["default"])({
30411
- row: row,
30412
- rowDensity: rowDensity,
30413
- onRowClick: onRowClick,
30414
- isLastRow: i == arr.length - 1,
30415
- classNamePrefix: classNamePrefix,
30416
- getRowProps: getRowProps
30417
- });
30418
- });
30419
- }();
30420
30466
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(TableWrapper, {
30421
30467
  ref: wrapperRef,
30422
30468
  className: (0,_utils__WEBPACK_IMPORTED_MODULE_5__.classNames)(classNamePrefix, {
@@ -30430,22 +30476,14 @@ var Table = function Table(props) {
30430
30476
  })
30431
30477
  }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_header__WEBPACK_IMPORTED_MODULE_9__["default"], {
30432
30478
  classNamePrefix: classNamePrefix
30433
- }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement("div", _extends({
30434
- "data-rowgroup-type": "body"
30435
- }, getTableBodyProps(), {
30479
+ }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(TableBody, {
30436
30480
  className: (0,_utils__WEBPACK_IMPORTED_MODULE_5__.classNames)(classNamePrefix, {
30437
30481
  tableBody: true
30438
- })
30439
- }), pinnedRows.map(function (row) {
30440
- prepareRow(row);
30441
- return (0,_render_row__WEBPACK_IMPORTED_MODULE_10__["default"])({
30442
- row: row,
30443
- rowDensity: rowDensity,
30444
- onRowClick: onRowClick,
30445
- classNamePrefix: classNamePrefix,
30446
- getRowProps: getRowProps
30447
- });
30448
- }), body), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_footer__WEBPACK_IMPORTED_MODULE_8__["default"], {
30482
+ }),
30483
+ rowDensity: rowDensity,
30484
+ onRowClick: onRowClick,
30485
+ classNamePrefix: classNamePrefix
30486
+ }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_footer__WEBPACK_IMPORTED_MODULE_8__["default"], {
30449
30487
  rowDensity: rowDensity,
30450
30488
  classNamePrefix: classNamePrefix
30451
30489
  }), !!stickyHeader && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_sticky_header__WEBPACK_IMPORTED_MODULE_11__["default"], {
@@ -30479,6 +30517,52 @@ var StyledTable = styled_components__WEBPACK_IMPORTED_MODULE_3___default().div.w
30479
30517
  componentId: "sc-ebeoik-1"
30480
30518
  })(["min-width:100%;border-spacing:0;border-collapse:separate;"]);
30481
30519
  StyledTable.displayName = 'StyledTable';
30520
+ var TableBody = function TableBody(props) {
30521
+ var className = props.className,
30522
+ rowDensity = props.rowDensity,
30523
+ onRowClick = props.onRowClick,
30524
+ classNamePrefix = props.classNamePrefix;
30525
+ var _useTableContext2 = (0,_context__WEBPACK_IMPORTED_MODULE_7__.useTableContext)(),
30526
+ getTableBodyProps = _useTableContext2.getTableBodyProps,
30527
+ prepareRow = _useTableContext2.prepareRow,
30528
+ page = _useTableContext2.page,
30529
+ _useTableContext2$pin = _useTableContext2.pinnedRows,
30530
+ pinnedRows = _useTableContext2$pin === void 0 ? [] : _useTableContext2$pin,
30531
+ NoDataComp = _useTableContext2.NoDataComp,
30532
+ LoadingComp = _useTableContext2.LoadingComp,
30533
+ isLoading = _useTableContext2.isLoading,
30534
+ getRowProps = _useTableContext2.getRowProps;
30535
+ var body = function () {
30536
+ if (isLoading) return (0,_util_flex_renderer__WEBPACK_IMPORTED_MODULE_6__.flexRender)(LoadingComp);
30537
+ if (!page.length) return (0,_util_flex_renderer__WEBPACK_IMPORTED_MODULE_6__.flexRender)(NoDataComp);
30538
+ return page.map(function (row, i, arr) {
30539
+ prepareRow(row);
30540
+ if (row.isPinned) return null;
30541
+ return (0,_render_row__WEBPACK_IMPORTED_MODULE_10__["default"])({
30542
+ row: row,
30543
+ rowDensity: rowDensity,
30544
+ onRowClick: onRowClick,
30545
+ isLastRow: i == arr.length - 1,
30546
+ classNamePrefix: classNamePrefix,
30547
+ getRowProps: getRowProps
30548
+ });
30549
+ });
30550
+ }();
30551
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement("div", _extends({
30552
+ "data-rowgroup-type": "body"
30553
+ }, getTableBodyProps(), {
30554
+ className: className
30555
+ }), pinnedRows.map(function (row) {
30556
+ prepareRow(row);
30557
+ return (0,_render_row__WEBPACK_IMPORTED_MODULE_10__["default"])({
30558
+ row: row,
30559
+ rowDensity: rowDensity,
30560
+ onRowClick: onRowClick,
30561
+ classNamePrefix: classNamePrefix,
30562
+ getRowProps: getRowProps
30563
+ });
30564
+ }), body);
30565
+ };
30482
30566
  /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Table);
30483
30567
 
30484
30568
  /***/ }),
@@ -31955,20 +32039,20 @@ var getButtonColors = function getButtonColors(props) {
31955
32039
  },
31956
32040
  negative: {
31957
32041
  color: _theme__WEBPACK_IMPORTED_MODULE_3__["default"].color.white,
31958
- backColor: _theme__WEBPACK_IMPORTED_MODULE_3__["default"].color.red_11,
32042
+ backColor: _theme__WEBPACK_IMPORTED_MODULE_3__["default"].color.red_9,
31959
32043
  separator: "1px solid ".concat(_theme__WEBPACK_IMPORTED_MODULE_3__["default"].color.white),
31960
32044
  hover: {
31961
32045
  backColor: _theme__WEBPACK_IMPORTED_MODULE_3__["default"].color.red_10
31962
32046
  },
31963
32047
  active: {
31964
- backColor: _theme__WEBPACK_IMPORTED_MODULE_3__["default"].color.red_11,
32048
+ backColor: _theme__WEBPACK_IMPORTED_MODULE_3__["default"].color.red_9,
31965
32049
  boxShadow: '0 0 0 2px rgba(205, 43, 49, 0.4)'
31966
32050
  }
31967
32051
  },
31968
32052
  negative_secondary: {
31969
- color: _theme__WEBPACK_IMPORTED_MODULE_3__["default"].color.red_11,
32053
+ color: _theme__WEBPACK_IMPORTED_MODULE_3__["default"].color.red_9,
31970
32054
  backColor: _theme__WEBPACK_IMPORTED_MODULE_3__["default"].color.white,
31971
- border: "1px solid ".concat(_theme__WEBPACK_IMPORTED_MODULE_3__["default"].color.red_11),
32055
+ border: "1px solid ".concat(_theme__WEBPACK_IMPORTED_MODULE_3__["default"].color.red_9),
31972
32056
  hover: {
31973
32057
  backColor: _theme__WEBPACK_IMPORTED_MODULE_3__["default"].color.red_2
31974
32058
  },