@luminati-io/uikit 2.0.5-beta.0 → 3.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -19999,14 +19999,16 @@ var Badge = function Badge(props) {
19999
19999
  return {
20000
20000
  "default": _theme__WEBPACK_IMPORTED_MODULE_5__["default"].color.gray_3,
20001
20001
  negative: _theme__WEBPACK_IMPORTED_MODULE_5__["default"].color.red_3,
20002
- positive: _theme__WEBPACK_IMPORTED_MODULE_5__["default"].color.green_3
20002
+ positive: _theme__WEBPACK_IMPORTED_MODULE_5__["default"].color.green_3,
20003
+ blue: _theme__WEBPACK_IMPORTED_MODULE_5__["default"].color.blue_3
20003
20004
  }[variant];
20004
20005
  }, [variant]);
20005
20006
  var color = (0,react__WEBPACK_IMPORTED_MODULE_1__.useMemo)(function () {
20006
20007
  return {
20007
20008
  "default": 'gray_11_25',
20008
20009
  negative: 'red_11',
20009
- positive: 'green_11'
20010
+ positive: 'green_11',
20011
+ blue: 'blue_11'
20010
20012
  }[variant];
20011
20013
  }, [variant]);
20012
20014
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(BadgeWrapper, {
@@ -20029,7 +20031,7 @@ Badge.defaultProps = {
20029
20031
  };
20030
20032
  Badge.propTypes = {
20031
20033
  shape: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['rounded', 'square']),
20032
- variant: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['default', 'negative', 'positive']),
20034
+ variant: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['default', 'negative', 'positive', 'blue']),
20033
20035
  icon: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(_utils__WEBPACK_IMPORTED_MODULE_7__.iconNames),
20034
20036
  iconPlacement: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['left', 'right'])
20035
20037
  };
@@ -28899,20 +28901,31 @@ __webpack_require__.r(__webpack_exports__);
28899
28901
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
28900
28902
  /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
28901
28903
  /* harmony export */ });
28902
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
28903
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
28904
- /* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! styled-components */ "styled-components");
28905
- /* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(styled_components__WEBPACK_IMPORTED_MODULE_1__);
28906
- /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../utils */ "./src/utils.js");
28907
- /* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../constants */ "./src/constants.js");
28908
- /* harmony import */ var _context__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./context */ "./src/table/context.js");
28909
- /* harmony import */ var _header__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./header */ "./src/table/header.js");
28910
- /* harmony import */ var _render_row__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./render_row */ "./src/table/render_row.js");
28904
+ /* harmony import */ var lodash_throttle__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/throttle */ "./node_modules/lodash/throttle.js");
28905
+ /* harmony import */ var lodash_throttle__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_throttle__WEBPACK_IMPORTED_MODULE_0__);
28906
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
28907
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
28908
+ /* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! styled-components */ "styled-components");
28909
+ /* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(styled_components__WEBPACK_IMPORTED_MODULE_2__);
28910
+ /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../utils */ "./src/utils.js");
28911
+ /* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../constants */ "./src/constants.js");
28912
+ /* harmony import */ var _hooks__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../hooks */ "./src/hooks/index.js");
28913
+ /* harmony import */ var _context__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./context */ "./src/table/context.js");
28914
+ /* harmony import */ var _header__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./header */ "./src/table/header.js");
28915
+ /* harmony import */ var _render_row__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./render_row */ "./src/table/render_row.js");
28911
28916
  // LICENSE_CODE ZON
28912
28917
 
28913
28918
 
28914
28919
  /*jslint react:true*/
28915
28920
 
28921
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
28922
+ 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."); }
28923
+ 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); }
28924
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
28925
+ function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
28926
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
28927
+
28928
+
28916
28929
 
28917
28930
 
28918
28931
 
@@ -28921,33 +28934,63 @@ __webpack_require__.r(__webpack_exports__);
28921
28934
 
28922
28935
  var StickyHeader = function StickyHeader(props) {
28923
28936
  var classNamePrefix = props.classNamePrefix,
28924
- top = props.top,
28925
- width = props.width,
28926
- left = props.left,
28937
+ offsetTop = props.offsetTop,
28927
28938
  onRowClick = props.onRowClick,
28928
- rowDensity = props.rowDensity;
28929
- var _useTableContext = (0,_context__WEBPACK_IMPORTED_MODULE_4__.useTableContext)(),
28939
+ rowDensity = props.rowDensity,
28940
+ tableRef = props.tableRef,
28941
+ scrollTarget = props.scrollTarget,
28942
+ wrapperRef = props.wrapperRef;
28943
+ var _useState = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(0),
28944
+ _useState2 = _slicedToArray(_useState, 2),
28945
+ width = _useState2[0],
28946
+ setWidth = _useState2[1];
28947
+ var _useState3 = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(false),
28948
+ _useState4 = _slicedToArray(_useState3, 2),
28949
+ showSticky = _useState4[0],
28950
+ setShowSticky = _useState4[1];
28951
+ (0,_hooks__WEBPACK_IMPORTED_MODULE_5__.useEventListener)(scrollTarget || window, {
28952
+ event: 'scroll',
28953
+ handler: lodash_throttle__WEBPACK_IMPORTED_MODULE_0___default()(function () {
28954
+ if (!tableRef.current) return;
28955
+ var rect = tableRef.current.getBoundingClientRect();
28956
+ setWidth(rect.width);
28957
+ var top = -rect.top + offsetTop;
28958
+ setShowSticky(top > 0 && top - rect.height <= 0);
28959
+ }, 100)
28960
+ });
28961
+ var _useState5 = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(0),
28962
+ _useState6 = _slicedToArray(_useState5, 2),
28963
+ left = _useState6[0],
28964
+ setLeft = _useState6[1];
28965
+ (0,_hooks__WEBPACK_IMPORTED_MODULE_5__.useEventListener)(wrapperRef.current, {
28966
+ event: 'scroll',
28967
+ handler: lodash_throttle__WEBPACK_IMPORTED_MODULE_0___default()(function (evt) {
28968
+ setLeft(evt.target.scrollLeft);
28969
+ }, 100)
28970
+ });
28971
+ var _useTableContext = (0,_context__WEBPACK_IMPORTED_MODULE_6__.useTableContext)(),
28930
28972
  prepareRow = _useTableContext.prepareRow,
28931
28973
  columnStartEditing = _useTableContext.columnStartEditing,
28932
28974
  columnDoneEditing = _useTableContext.columnDoneEditing,
28933
28975
  _useTableContext$pinn = _useTableContext.pinnedRows,
28934
28976
  pinnedRows = _useTableContext$pinn === void 0 ? [] : _useTableContext$pinn;
28935
28977
  var style = {
28936
- top: (0,_utils__WEBPACK_IMPORTED_MODULE_2__.toPixel)(top),
28937
- width: (0,_utils__WEBPACK_IMPORTED_MODULE_2__.toPixel)(width)
28978
+ top: (0,_utils__WEBPACK_IMPORTED_MODULE_3__.toPixel)(offsetTop),
28979
+ width: (0,_utils__WEBPACK_IMPORTED_MODULE_3__.toPixel)(width)
28938
28980
  };
28939
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(StickyHeaderWrapper, {
28981
+ if (!showSticky) return null;
28982
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(StickyHeaderWrapper, {
28940
28983
  style: style,
28941
- className: (0,_utils__WEBPACK_IMPORTED_MODULE_2__.classNames)(classNamePrefix, {
28984
+ className: (0,_utils__WEBPACK_IMPORTED_MODULE_3__.classNames)(classNamePrefix, {
28942
28985
  stickyHeader: true
28943
28986
  })
28944
- }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_header__WEBPACK_IMPORTED_MODULE_5__["default"], {
28987
+ }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_header__WEBPACK_IMPORTED_MODULE_7__["default"], {
28945
28988
  left: left,
28946
28989
  classNamePrefix: classNamePrefix,
28947
28990
  compact: true
28948
28991
  }), pinnedRows.map(function (row) {
28949
28992
  prepareRow(row);
28950
- return (0,_render_row__WEBPACK_IMPORTED_MODULE_6__["default"])({
28993
+ return (0,_render_row__WEBPACK_IMPORTED_MODULE_8__["default"])({
28951
28994
  row: row,
28952
28995
  columnStartEditing: columnStartEditing,
28953
28996
  columnDoneEditing: columnDoneEditing,
@@ -28958,10 +29001,10 @@ var StickyHeader = function StickyHeader(props) {
28958
29001
  }));
28959
29002
  };
28960
29003
  StickyHeader.displayName = 'StickyHeader';
28961
- var StickyHeaderWrapper = styled_components__WEBPACK_IMPORTED_MODULE_1___default().div.withConfig({
29004
+ var StickyHeaderWrapper = styled_components__WEBPACK_IMPORTED_MODULE_2___default().div.withConfig({
28962
29005
  displayName: "StickyHeaderWrapper",
28963
29006
  componentId: "sc-hh47bp-0"
28964
- })(["position:fixed;z-index:", ";overflow-x:hidden;box-shadow:0px 2px 4px -2px rgba(24,39,75,0.12);"], _constants__WEBPACK_IMPORTED_MODULE_3__.Z_INDEX.stickyHeader);
29007
+ })(["position:fixed;z-index:", ";overflow-x:hidden;box-shadow:0px 2px 4px -2px rgba(24,39,75,0.12);"], _constants__WEBPACK_IMPORTED_MODULE_4__.Z_INDEX.stickyHeader);
28965
29008
  StickyHeaderWrapper.displayName = 'StickyHeaderWrapper';
28966
29009
  /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (StickyHeader);
28967
29010
 
@@ -29182,27 +29225,19 @@ __webpack_require__.r(__webpack_exports__);
29182
29225
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);
29183
29226
  /* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! styled-components */ "styled-components");
29184
29227
  /* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(styled_components__WEBPACK_IMPORTED_MODULE_3__);
29185
- /* harmony import */ var _hooks__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../hooks */ "./src/hooks/index.js");
29186
- /* harmony import */ var _theme__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../theme */ "./src/theme.js");
29187
- /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../utils */ "./src/utils.js");
29188
- /* harmony import */ var _context__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./context */ "./src/table/context.js");
29189
- /* harmony import */ var _footer__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./footer */ "./src/table/footer.js");
29190
- /* harmony import */ var _header__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./header */ "./src/table/header.js");
29191
- /* harmony import */ var _render_row__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./render_row */ "./src/table/render_row.js");
29192
- /* harmony import */ var _sticky_header__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./sticky_header */ "./src/table/sticky_header.js");
29228
+ /* harmony import */ var _theme__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../theme */ "./src/theme.js");
29229
+ /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../utils */ "./src/utils.js");
29230
+ /* harmony import */ var _context__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./context */ "./src/table/context.js");
29231
+ /* harmony import */ var _footer__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./footer */ "./src/table/footer.js");
29232
+ /* harmony import */ var _header__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./header */ "./src/table/header.js");
29233
+ /* harmony import */ var _render_row__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./render_row */ "./src/table/render_row.js");
29234
+ /* harmony import */ var _sticky_header__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./sticky_header */ "./src/table/sticky_header.js");
29193
29235
  // LICENSE_CODE ZON
29194
29236
 
29195
29237
 
29196
29238
  /*jslint react:true*/
29197
29239
 
29198
29240
  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); }
29199
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
29200
- 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."); }
29201
- 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); }
29202
- function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
29203
- function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
29204
- function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
29205
-
29206
29241
 
29207
29242
 
29208
29243
 
@@ -29221,7 +29256,7 @@ var Table = function Table(props) {
29221
29256
  scrollTarget = props.scrollTarget,
29222
29257
  classNamePrefix = props.classNamePrefix;
29223
29258
  var offsetTop = lodash_isObject__WEBPACK_IMPORTED_MODULE_0___default()(stickyHeader) && stickyHeader.offsetTop || 0;
29224
- var _useTableContext = (0,_context__WEBPACK_IMPORTED_MODULE_7__.useTableContext)(),
29259
+ var _useTableContext = (0,_context__WEBPACK_IMPORTED_MODULE_6__.useTableContext)(),
29225
29260
  getTableProps = _useTableContext.getTableProps,
29226
29261
  getTableBodyProps = _useTableContext.getTableBodyProps,
29227
29262
  prepareRow = _useTableContext.prepareRow,
@@ -29233,40 +29268,14 @@ var Table = function Table(props) {
29233
29268
  isLoading = _useTableContext.isLoading,
29234
29269
  getRowProps = _useTableContext.getRowProps;
29235
29270
  var wrapperRef = (0,react__WEBPACK_IMPORTED_MODULE_2__.useRef)();
29236
- var _useState = (0,react__WEBPACK_IMPORTED_MODULE_2__.useState)(0),
29237
- _useState2 = _slicedToArray(_useState, 2),
29238
- left = _useState2[0],
29239
- setLeft = _useState2[1];
29240
- (0,_hooks__WEBPACK_IMPORTED_MODULE_4__.useEventListener)(wrapperRef.current, {
29241
- event: 'scroll',
29242
- handler: function handler(evt) {
29243
- setLeft(evt.target.scrollLeft);
29244
- }
29245
- });
29246
29271
  var tableRef = (0,react__WEBPACK_IMPORTED_MODULE_2__.useRef)();
29247
- var _useState3 = (0,react__WEBPACK_IMPORTED_MODULE_2__.useState)(0),
29248
- _useState4 = _slicedToArray(_useState3, 2),
29249
- width = _useState4[0],
29250
- setWidth = _useState4[1];
29251
- var _useState5 = (0,react__WEBPACK_IMPORTED_MODULE_2__.useState)(false),
29252
- _useState6 = _slicedToArray(_useState5, 2),
29253
- showSticky = _useState6[0],
29254
- setShowSticky = _useState6[1];
29255
- var scroll = (0,_hooks__WEBPACK_IMPORTED_MODULE_4__.useScroll)(scrollTarget);
29256
- (0,react__WEBPACK_IMPORTED_MODULE_2__.useEffect)(function () {
29257
- if (!stickyHeader || !tableRef.current) return;
29258
- var rect = tableRef.current.getBoundingClientRect();
29259
- setWidth(rect.width);
29260
- var top = -rect.top + offsetTop;
29261
- setShowSticky(top > 0 && top - rect.height <= 0);
29262
- }, [scroll]);
29263
29272
  var body = function () {
29264
29273
  if (isLoading) return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(LoadingComp, null);
29265
29274
  if (!page.length) return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(NoDataComp, null);
29266
29275
  return page.map(function (row, i, arr) {
29267
29276
  prepareRow(row);
29268
29277
  if (row.isPinned) return null;
29269
- return (0,_render_row__WEBPACK_IMPORTED_MODULE_10__["default"])({
29278
+ return (0,_render_row__WEBPACK_IMPORTED_MODULE_9__["default"])({
29270
29279
  row: row,
29271
29280
  rowDensity: rowDensity,
29272
29281
  onRowClick: onRowClick,
@@ -29278,42 +29287,43 @@ var Table = function Table(props) {
29278
29287
  }();
29279
29288
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(TableWrapper, {
29280
29289
  ref: wrapperRef,
29281
- className: (0,_utils__WEBPACK_IMPORTED_MODULE_6__.classNames)(classNamePrefix, {
29290
+ className: (0,_utils__WEBPACK_IMPORTED_MODULE_5__.classNames)(classNamePrefix, {
29282
29291
  container: true
29283
29292
  }, className)
29284
29293
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(StyledTable, _extends({
29285
29294
  ref: tableRef
29286
29295
  }, getTableProps(), {
29287
- className: (0,_utils__WEBPACK_IMPORTED_MODULE_6__.classNames)(classNamePrefix, {
29296
+ className: (0,_utils__WEBPACK_IMPORTED_MODULE_5__.classNames)(classNamePrefix, {
29288
29297
  table: true
29289
29298
  })
29290
- }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_header__WEBPACK_IMPORTED_MODULE_9__["default"], {
29299
+ }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_header__WEBPACK_IMPORTED_MODULE_8__["default"], {
29291
29300
  classNamePrefix: classNamePrefix
29292
29301
  }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement("div", _extends({
29293
29302
  "data-rowgroup-type": "body"
29294
29303
  }, getTableBodyProps(), {
29295
- className: (0,_utils__WEBPACK_IMPORTED_MODULE_6__.classNames)(classNamePrefix, {
29304
+ className: (0,_utils__WEBPACK_IMPORTED_MODULE_5__.classNames)(classNamePrefix, {
29296
29305
  tableBody: true
29297
29306
  })
29298
29307
  }), pinnedRows.map(function (row) {
29299
29308
  prepareRow(row);
29300
- return (0,_render_row__WEBPACK_IMPORTED_MODULE_10__["default"])({
29309
+ return (0,_render_row__WEBPACK_IMPORTED_MODULE_9__["default"])({
29301
29310
  row: row,
29302
29311
  rowDensity: rowDensity,
29303
29312
  onRowClick: onRowClick,
29304
29313
  classNamePrefix: classNamePrefix,
29305
29314
  getRowProps: getRowProps
29306
29315
  });
29307
- }), body), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_footer__WEBPACK_IMPORTED_MODULE_8__["default"], {
29316
+ }), body), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_footer__WEBPACK_IMPORTED_MODULE_7__["default"], {
29308
29317
  rowDensity: rowDensity,
29309
29318
  classNamePrefix: classNamePrefix
29310
- }), showSticky && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_sticky_header__WEBPACK_IMPORTED_MODULE_11__["default"], {
29311
- top: offsetTop,
29312
- width: width,
29313
- left: left,
29319
+ }), !!stickyHeader && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_sticky_header__WEBPACK_IMPORTED_MODULE_10__["default"], {
29320
+ offsetTop: offsetTop,
29314
29321
  onRowClick: onRowClick,
29315
29322
  rowDensity: rowDensity,
29316
- classNamePrefix: classNamePrefix
29323
+ classNamePrefix: classNamePrefix,
29324
+ tableRef: tableRef,
29325
+ scrollTarget: scrollTarget,
29326
+ wrapperRef: wrapperRef
29317
29327
  })));
29318
29328
  };
29319
29329
  Table.displayName = 'Table';
@@ -29330,7 +29340,7 @@ Table.propTypes = {
29330
29340
  var TableWrapper = styled_components__WEBPACK_IMPORTED_MODULE_3___default().div.withConfig({
29331
29341
  displayName: "TableWrapper",
29332
29342
  componentId: "sc-ebeoik-0"
29333
- })(["width:100%;border:1px solid ", ";border-radius:4px;overflow-x:auto;", ""], _theme__WEBPACK_IMPORTED_MODULE_5__["default"].color.gray_3, _theme__WEBPACK_IMPORTED_MODULE_5__["default"].scrollbars.thin);
29343
+ })(["width:100%;border:1px solid ", ";border-radius:4px;overflow-x:auto;", ""], _theme__WEBPACK_IMPORTED_MODULE_4__["default"].color.gray_3, _theme__WEBPACK_IMPORTED_MODULE_4__["default"].scrollbars.thin);
29334
29344
  TableWrapper.displayName = 'TableWrapper';
29335
29345
  var StyledTable = styled_components__WEBPACK_IMPORTED_MODULE_3___default().div.withConfig({
29336
29346
  displayName: "StyledTable",
@@ -46434,6 +46444,85 @@ function pickBy(object, predicate) {
46434
46444
  module.exports = pickBy;
46435
46445
 
46436
46446
 
46447
+ /***/ }),
46448
+
46449
+ /***/ "./node_modules/lodash/throttle.js":
46450
+ /*!*****************************************!*\
46451
+ !*** ./node_modules/lodash/throttle.js ***!
46452
+ \*****************************************/
46453
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
46454
+
46455
+ var debounce = __webpack_require__(/*! ./debounce */ "./node_modules/lodash/debounce.js"),
46456
+ isObject = __webpack_require__(/*! ./isObject */ "./node_modules/lodash/isObject.js");
46457
+
46458
+ /** Error message constants. */
46459
+ var FUNC_ERROR_TEXT = 'Expected a function';
46460
+
46461
+ /**
46462
+ * Creates a throttled function that only invokes `func` at most once per
46463
+ * every `wait` milliseconds. The throttled function comes with a `cancel`
46464
+ * method to cancel delayed `func` invocations and a `flush` method to
46465
+ * immediately invoke them. Provide `options` to indicate whether `func`
46466
+ * should be invoked on the leading and/or trailing edge of the `wait`
46467
+ * timeout. The `func` is invoked with the last arguments provided to the
46468
+ * throttled function. Subsequent calls to the throttled function return the
46469
+ * result of the last `func` invocation.
46470
+ *
46471
+ * **Note:** If `leading` and `trailing` options are `true`, `func` is
46472
+ * invoked on the trailing edge of the timeout only if the throttled function
46473
+ * is invoked more than once during the `wait` timeout.
46474
+ *
46475
+ * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred
46476
+ * until to the next tick, similar to `setTimeout` with a timeout of `0`.
46477
+ *
46478
+ * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)
46479
+ * for details over the differences between `_.throttle` and `_.debounce`.
46480
+ *
46481
+ * @static
46482
+ * @memberOf _
46483
+ * @since 0.1.0
46484
+ * @category Function
46485
+ * @param {Function} func The function to throttle.
46486
+ * @param {number} [wait=0] The number of milliseconds to throttle invocations to.
46487
+ * @param {Object} [options={}] The options object.
46488
+ * @param {boolean} [options.leading=true]
46489
+ * Specify invoking on the leading edge of the timeout.
46490
+ * @param {boolean} [options.trailing=true]
46491
+ * Specify invoking on the trailing edge of the timeout.
46492
+ * @returns {Function} Returns the new throttled function.
46493
+ * @example
46494
+ *
46495
+ * // Avoid excessively updating the position while scrolling.
46496
+ * jQuery(window).on('scroll', _.throttle(updatePosition, 100));
46497
+ *
46498
+ * // Invoke `renewToken` when the click event is fired, but not more than once every 5 minutes.
46499
+ * var throttled = _.throttle(renewToken, 300000, { 'trailing': false });
46500
+ * jQuery(element).on('click', throttled);
46501
+ *
46502
+ * // Cancel the trailing throttled invocation.
46503
+ * jQuery(window).on('popstate', throttled.cancel);
46504
+ */
46505
+ function throttle(func, wait, options) {
46506
+ var leading = true,
46507
+ trailing = true;
46508
+
46509
+ if (typeof func != 'function') {
46510
+ throw new TypeError(FUNC_ERROR_TEXT);
46511
+ }
46512
+ if (isObject(options)) {
46513
+ leading = 'leading' in options ? !!options.leading : leading;
46514
+ trailing = 'trailing' in options ? !!options.trailing : trailing;
46515
+ }
46516
+ return debounce(func, wait, {
46517
+ 'leading': leading,
46518
+ 'maxWait': wait,
46519
+ 'trailing': trailing
46520
+ });
46521
+ }
46522
+
46523
+ module.exports = throttle;
46524
+
46525
+
46437
46526
  /***/ }),
46438
46527
 
46439
46528
  /***/ "./node_modules/lodash/toNumber.js":