@luminati-io/uikit 3.0.9 → 3.0.10

Sign up to get free protection for your applications and to get access to all the features.
@@ -22340,15 +22340,13 @@ var CodeBlockBody = styled_components__WEBPACK_IMPORTED_MODULE_1___default()(_la
22340
22340
  }).withConfig({
22341
22341
  displayName: "CodeBlockBody",
22342
22342
  componentId: "sc-13u859f-0"
22343
- })(["background-color:", ";overflow-y:auto;::-webkit-scrollbar{height:10px;width:10px;}::-webkit-scrollbar-thumb{background-color:", ";border-radius:10px;border:0 solid transparent;background-clip:content-box;}::-webkit-scrollbar-track-piece{background:", ";}position:relative;", ""], function (props) {
22343
+ })(["background-color:", ";overflow-y:auto;::-webkit-scrollbar{height:10px;width:10px;}::-webkit-scrollbar-thumb{background-color:", ";border-radius:10px;border:0 solid transparent;background-clip:content-box;}::-webkit-scrollbar-track-piece{background:", ";}position:relative;"], function (props) {
22344
22344
  return _theme__WEBPACK_IMPORTED_MODULE_3__["default"].color[props.$theme == 'white' ? 'gray_2' : 'gray_12'];
22345
- }, _theme__WEBPACK_IMPORTED_MODULE_3__["default"].color.gray_11, function (props) {
22346
- return _theme__WEBPACK_IMPORTED_MODULE_3__["default"].color[props.$theme == 'white' ? 'gray_8' : 'gray_11_50'];
22347
- }, '' /* ${CodeBlockCopyBtn} {
22348
- position: sticky;
22349
- top: 0;
22350
- } */);
22351
-
22345
+ }, function (props) {
22346
+ return _theme__WEBPACK_IMPORTED_MODULE_3__["default"].color[props.$theme == 'white' ? 'gray_3' : 'gray_11_50'];
22347
+ }, function (props) {
22348
+ return _theme__WEBPACK_IMPORTED_MODULE_3__["default"].color[props.$theme == 'white' ? 'gray_8' : 'gray_10'];
22349
+ });
22352
22350
  /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (CodeSnippet);
22353
22351
 
22354
22352
  /***/ }),
@@ -23452,7 +23450,7 @@ __webpack_require__.r(__webpack_exports__);
23452
23450
 
23453
23451
 
23454
23452
  /*jslint react:true*/
23455
- var _excluded = ["variant", "disabled", "active", "icon", "tooltip", "tooltipPlacement"];
23453
+ var _excluded = ["variant", "disabled", "active", "icon", "tooltip", "tooltipPlacement", "size", "noBackColor"];
23456
23454
  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); }
23457
23455
  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; }
23458
23456
  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; }
@@ -23470,10 +23468,14 @@ var IconButton = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().forwa
23470
23468
  icon = props.icon,
23471
23469
  tooltip = props.tooltip,
23472
23470
  tooltipPlacement = props.tooltipPlacement,
23471
+ size = props.size,
23472
+ noBackColor = props.noBackColor,
23473
23473
  rest = _objectWithoutProperties(props, _excluded);
23474
+ size = calcSize(variant, size);
23475
+ noBackColor = variant == 'ghost' || noBackColor;
23474
23476
  var ic = _icons__WEBPACK_IMPORTED_MODULE_3__["default"][icon];
23475
23477
  if (!ic) return null;
23476
- var iconSize = variant == 'icon-button' ? 18 : 16;
23478
+ var iconSize = size == 'lg' || size == 'md' ? 18 : 16;
23477
23479
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_tooltip__WEBPACK_IMPORTED_MODULE_5__["default"], {
23478
23480
  tooltip: tooltip,
23479
23481
  placement: tooltipPlacement
@@ -23481,7 +23483,8 @@ var IconButton = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().forwa
23481
23483
  ref: ref
23482
23484
  }, rest, {
23483
23485
  disabled: disabled,
23484
- $variant: variant,
23486
+ $size: size,
23487
+ $noBackColor: noBackColor,
23485
23488
  $active: active
23486
23489
  }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(StyledSvg, {
23487
23490
  viewBox: ic.viewBox,
@@ -23493,21 +23496,28 @@ var IconButton = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().forwa
23493
23496
  });
23494
23497
  IconButton.displayName = 'IconButton';
23495
23498
  IconButton.defaultProps = {
23496
- variant: 'icon-button'
23499
+ size: 'md'
23497
23500
  };
23498
23501
  IconButton.propTypes = {
23499
- variant: prop_types__WEBPACK_IMPORTED_MODULE_2___default().oneOf(['icon', 'icon-button', 'ghost']),
23502
+ // variant: PT.oneOf(['icon', 'icon-button', 'ghost']),
23500
23503
  icon: prop_types__WEBPACK_IMPORTED_MODULE_2___default().oneOf(_utils__WEBPACK_IMPORTED_MODULE_4__.iconNames).isRequired,
23501
23504
  disabled: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().bool),
23502
23505
  active: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().bool),
23503
23506
  tooltip: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().node),
23504
- tooltipPlacement: prop_types__WEBPACK_IMPORTED_MODULE_2___default().oneOf(_utils__WEBPACK_IMPORTED_MODULE_4__.tooltipPlacements)
23507
+ tooltipPlacement: prop_types__WEBPACK_IMPORTED_MODULE_2___default().oneOf(_utils__WEBPACK_IMPORTED_MODULE_4__.tooltipPlacements),
23508
+ size: prop_types__WEBPACK_IMPORTED_MODULE_2___default().oneOf(['xs', 'sm', 'md', 'lg']),
23509
+ noBackColor: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().bool)
23505
23510
  };
23506
23511
  var StyledIconButton = styled_components__WEBPACK_IMPORTED_MODULE_1___default().button.withConfig({
23507
23512
  displayName: "StyledIconButton",
23508
23513
  componentId: "sc-114c1w5-0"
23509
23514
  })(["display:flex;align-items:center;justify-content:center;border-radius:4px;padding:0;box-sizing:border-box;", " cursor:pointer;", ""], function (props) {
23510
- return (0,_utils__WEBPACK_IMPORTED_MODULE_4__.toSize)(props.$variant == 'icon-button' ? 36 : 24);
23515
+ return (0,_utils__WEBPACK_IMPORTED_MODULE_4__.toSize)({
23516
+ lg: 40,
23517
+ md: 36,
23518
+ sm: 28,
23519
+ xs: 24
23520
+ }[props.$size] || 36);
23511
23521
  }, function (props) {
23512
23522
  var backColor = 'transparent';
23513
23523
  var border = "1px solid ".concat(_theme__WEBPACK_IMPORTED_MODULE_6__["default"].color.gray_6);
@@ -23520,12 +23530,12 @@ var StyledIconButton = styled_components__WEBPACK_IMPORTED_MODULE_1___default().
23520
23530
  backColor = _theme__WEBPACK_IMPORTED_MODULE_6__["default"].color.blue_4;
23521
23531
  border = "1px solid ".concat(_theme__WEBPACK_IMPORTED_MODULE_6__["default"].color.blue_4);
23522
23532
  }
23523
- if (props.$variant == 'ghost') {
23533
+ if (props.$noBackColor) {
23524
23534
  backColor = 'transparent';
23525
23535
  hoverBackColor = 'transparent';
23526
23536
  activeBackColor = 'transparent';
23527
23537
  }
23528
- if (props.$variant == 'icon' || props.$variant == 'ghost') {
23538
+ if (props.$size == 'xs') {
23529
23539
  hoverBorder = '0 none';
23530
23540
  activeBorder = '0 none';
23531
23541
  disabledBorder = '0 none';
@@ -23541,6 +23551,10 @@ var StyledSvg = styled_components__WEBPACK_IMPORTED_MODULE_1___default().svg.wit
23541
23551
  }, function (props) {
23542
23552
  return (0,_utils__WEBPACK_IMPORTED_MODULE_4__.toSize)(props.$size);
23543
23553
  }, StyledIconButton, _theme__WEBPACK_IMPORTED_MODULE_6__["default"].color.gray_11_25, StyledIconButton, _theme__WEBPACK_IMPORTED_MODULE_6__["default"].color.blue_11, StyledIconButton, _theme__WEBPACK_IMPORTED_MODULE_6__["default"].color.gray_7);
23554
+ var calcSize = function calcSize(variant, size) {
23555
+ if (!variant) return size;
23556
+ return variant == 'icon-button' ? 'md' : 'xs';
23557
+ };
23544
23558
  /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (IconButton);
23545
23559
 
23546
23560
  /***/ }),
@@ -23837,7 +23851,10 @@ CompareTo.defaultProps = {
23837
23851
  };
23838
23852
  CompareTo.propTypes = {
23839
23853
  value: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().any),
23840
- options: prop_types__WEBPACK_IMPORTED_MODULE_1___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_1___default().any))
23854
+ options: prop_types__WEBPACK_IMPORTED_MODULE_1___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_1___default().any)),
23855
+ size: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOf(['sm', 'md', 'lg']),
23856
+ format: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().string),
23857
+ placeholder: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().string)
23841
23858
  };
23842
23859
  var CompareToMenuList = function CompareToMenuList(props) {
23843
23860
  var className = props.className,
@@ -24014,7 +24031,7 @@ DatePicker.propTypes = {
24014
24031
  label: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func)]),
24015
24032
  labelIcon: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
24016
24033
  helperText: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func)]),
24017
- size: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['sm', 'md', 'lg']),
24034
+ size: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['xs', 'sm', 'md', 'lg']),
24018
24035
  disabledDays: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().any),
24019
24036
  renderPopover: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
24020
24037
  isRange: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
@@ -25253,6 +25270,7 @@ var Number = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().forwardRe
25253
25270
  }, [onChange, minValue, maxValue]);
25254
25271
  var heightCalculationCallback = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(function () {
25255
25272
  var sizes = {
25273
+ 'xs': 28,
25256
25274
  'sm': 36,
25257
25275
  'md': 40,
25258
25276
  'lg': 48
@@ -25299,7 +25317,7 @@ Number.propTypes = {
25299
25317
  label: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_1___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_1___default().func)]),
25300
25318
  labelIcon: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().string),
25301
25319
  helperText: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_1___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_1___default().func)]),
25302
- size: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOf(['sm', 'md', 'lg'])
25320
+ size: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOf(['xs', 'sm', 'md', 'lg'])
25303
25321
  };
25304
25322
  var NumberField = styled_components__WEBPACK_IMPORTED_MODULE_2___default().input.attrs({
25305
25323
  type: 'number'
@@ -25847,6 +25865,7 @@ HelperText.propTypes = {
25847
25865
  var useHeightCalculationCallback = function useHeightCalculationCallback(size) {
25848
25866
  return (0,react__WEBPACK_IMPORTED_MODULE_1__.useCallback)(function () {
25849
25867
  var height = {
25868
+ xs: 28,
25850
25869
  sm: 36,
25851
25870
  md: 40,
25852
25871
  lg: 48
@@ -26008,7 +26027,7 @@ Textbox.propTypes = {
26008
26027
  label: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_1___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_1___default().func)]),
26009
26028
  labelIcon: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().string),
26010
26029
  helperText: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_1___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_1___default().func)]),
26011
- size: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOf(['sm', 'md', 'lg']),
26030
+ size: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOf(['xs', 'sm', 'md', 'lg']),
26012
26031
  autofocus: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().bool)
26013
26032
  };
26014
26033
  Textbox.defaultProps = {
@@ -27945,7 +27964,7 @@ __webpack_require__.r(__webpack_exports__);
27945
27964
 
27946
27965
  /*jslint react:true*/
27947
27966
  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); }
27948
- var _excluded = ["data", "columnsSort", "pageSize", "pageSizes", "children", "stateManager", "hooks", "NoDataComp", "LoadingComp", "isLoading", "onPageChange", "manualPagination", "totalCount", "getHeaderProps", "getColumnProps", "getRowProps", "getCellProps", "getFooterProps"];
27967
+ var _excluded = ["data", "columnsSort", "pageSize", "pageSizes", "children", "stateManager", "hooks", "NoDataComp", "LoadingComp", "noDataText", "loadingText", "isLoading", "onPageChange", "manualPagination", "totalCount", "getHeaderProps", "getColumnProps", "getRowProps", "getCellProps", "getFooterProps"];
27949
27968
  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; }
27950
27969
  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; }
27951
27970
  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; }
@@ -28002,10 +28021,12 @@ var Provider = function Provider(props) {
28002
28021
  stateManager = props.stateManager,
28003
28022
  _props$hooks = props.hooks,
28004
28023
  hooks = _props$hooks === void 0 ? [] : _props$hooks,
28005
- _props$NoDataComp = props.NoDataComp,
28006
- NoDataComp = _props$NoDataComp === void 0 ? NoDataBody : _props$NoDataComp,
28007
- _props$LoadingComp = props.LoadingComp,
28008
- LoadingComp = _props$LoadingComp === void 0 ? LoadingBody : _props$LoadingComp,
28024
+ NoDataComp = props.NoDataComp,
28025
+ LoadingComp = props.LoadingComp,
28026
+ _props$noDataText = props.noDataText,
28027
+ noDataText = _props$noDataText === void 0 ? 'No data' : _props$noDataText,
28028
+ _props$loadingText = props.loadingText,
28029
+ loadingText = _props$loadingText === void 0 ? 'Loading...' : _props$loadingText,
28009
28030
  _props$isLoading = props.isLoading,
28010
28031
  isLoading = _props$isLoading === void 0 ? false : _props$isLoading,
28011
28032
  onPageChange = props.onPageChange,
@@ -28068,12 +28089,17 @@ var Provider = function Provider(props) {
28068
28089
  pageSize: _pageSize
28069
28090
  });
28070
28091
  }, [manualPagination, totalCount, pageIndex, _pageSize]);
28092
+ var _LoadingComp = useComp(loadingText, LoadingComp);
28093
+ var _NoDataComp = useComp(noDataText, NoDataComp);
28094
+ console.log(_NoDataComp);
28095
+ var value = _objectSpread(_objectSpread({
28096
+ columnsSort: columnsSort
28097
+ }, table), {}, {
28098
+ LoadingComp: _LoadingComp,
28099
+ NoDataComp: _NoDataComp
28100
+ });
28071
28101
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(TableContext.Provider, {
28072
- value: _objectSpread({
28073
- columnsSort: columnsSort,
28074
- NoDataComp: NoDataComp,
28075
- LoadingComp: LoadingComp
28076
- }, table)
28102
+ value: value
28077
28103
  }, children);
28078
28104
  };
28079
28105
  Provider.displayName = 'Table.Provider';
@@ -28118,7 +28144,9 @@ Provider.propTypes = {
28118
28144
  getColumnProps: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
28119
28145
  getRowProps: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
28120
28146
  getCellProps: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
28121
- getFooterProps: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func)
28147
+ getFooterProps: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
28148
+ 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)]),
28149
+ 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)])
28122
28150
  };
28123
28151
  var calcPageCount = function calcPageCount(totalCount, pageSize) {
28124
28152
  return Math.ceil(totalCount / pageSize);
@@ -28139,6 +28167,13 @@ var useCanHideColumns = function useCanHideColumns(hooks) {
28139
28167
  });
28140
28168
  };
28141
28169
  useCanHideColumns.pluginName = 'useCanHideColumns';
28170
+ var useComp = function useComp(text, Comp) {
28171
+ return (0,react__WEBPACK_IMPORTED_MODULE_1__.useMemo)(function () {
28172
+ if (Comp) return Comp;
28173
+ if (!text || typeof text != 'string' || text.trim() == '') return text;
28174
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(EmptyBody, null, text);
28175
+ }, [text, Comp]);
28176
+ };
28142
28177
  var EmptyBody = function EmptyBody(_ref) {
28143
28178
  var children = _ref.children;
28144
28179
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_layout__WEBPACK_IMPORTED_MODULE_3__.Flex, {
@@ -28149,12 +28184,6 @@ var EmptyBody = function EmptyBody(_ref) {
28149
28184
  color: "gray_11_50"
28150
28185
  }, children));
28151
28186
  };
28152
- var NoDataBody = function NoDataBody() {
28153
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(EmptyBody, null, "No data");
28154
- };
28155
- var LoadingBody = function LoadingBody() {
28156
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(EmptyBody, null, "Loading...");
28157
- };
28158
28187
  /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Provider);
28159
28188
 
28160
28189
  /***/ }),
@@ -28479,6 +28508,45 @@ useEditableColumns.pluginName = 'useEditableColumns';
28479
28508
 
28480
28509
  /***/ }),
28481
28510
 
28511
+ /***/ "./src/table/flex_renderer.js":
28512
+ /*!************************************!*\
28513
+ !*** ./src/table/flex_renderer.js ***!
28514
+ \************************************/
28515
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
28516
+
28517
+ "use strict";
28518
+ __webpack_require__.r(__webpack_exports__);
28519
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
28520
+ /* harmony export */ flexRender: () => (/* binding */ flexRender)
28521
+ /* harmony export */ });
28522
+ // LICENSE_CODE ZON
28523
+
28524
+
28525
+ /*jslint react:true*/
28526
+
28527
+ /**
28528
+ * If rendering headers, cells, or footers with custom markup,
28529
+ * use flexRender instead of `cell.getValue()` or `cell.renderValue()`.
28530
+ */
28531
+ 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); }
28532
+ var flexRender = function flexRender(Comp, props) {
28533
+ return !Comp ? null : isReactComponent(Comp) ? /*#__PURE__*/React.createElement(Comp, props) : Comp;
28534
+ };
28535
+ var isReactComponent = function isReactComponent(component) {
28536
+ return isClassComponent(component) || typeof component === 'function' || isExoticComponent(component);
28537
+ };
28538
+ var isClassComponent = function isClassComponent(component) {
28539
+ return typeof component === 'function' && function () {
28540
+ var proto = Object.getPrototypeOf(component);
28541
+ return proto.prototype && proto.prototype.isReactComponent;
28542
+ }();
28543
+ };
28544
+ var isExoticComponent = function isExoticComponent(component) {
28545
+ return _typeof(component) === 'object' && _typeof(component.$$typeof) === 'symbol' && ['react.memo', 'react.forward_ref'].includes(component.$$typeof.description);
28546
+ };
28547
+
28548
+ /***/ }),
28549
+
28482
28550
  /***/ "./src/table/footer.js":
28483
28551
  /*!*****************************!*\
28484
28552
  !*** ./src/table/footer.js ***!
@@ -29939,6 +30007,7 @@ __webpack_require__.r(__webpack_exports__);
29939
30007
  /* harmony import */ var _header__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./header */ "./src/table/header.js");
29940
30008
  /* harmony import */ var _render_row__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./render_row */ "./src/table/render_row.js");
29941
30009
  /* harmony import */ var _sticky_header__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./sticky_header */ "./src/table/sticky_header.js");
30010
+ /* harmony import */ var _flex_renderer__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./flex_renderer */ "./src/table/flex_renderer.js");
29942
30011
  // LICENSE_CODE ZON
29943
30012
 
29944
30013
 
@@ -29955,6 +30024,7 @@ function _extends() { _extends = Object.assign ? Object.assign.bind() : function
29955
30024
 
29956
30025
 
29957
30026
 
30027
+
29958
30028
  var Table = function Table(props) {
29959
30029
  var className = props.className,
29960
30030
  rowDensity = props.rowDensity,
@@ -29977,8 +30047,8 @@ var Table = function Table(props) {
29977
30047
  var wrapperRef = (0,react__WEBPACK_IMPORTED_MODULE_2__.useRef)();
29978
30048
  var tableRef = (0,react__WEBPACK_IMPORTED_MODULE_2__.useRef)();
29979
30049
  var body = function () {
29980
- if (isLoading) return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(LoadingComp, null);
29981
- if (!page.length) return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(NoDataComp, null);
30050
+ if (isLoading) return (0,_flex_renderer__WEBPACK_IMPORTED_MODULE_11__.flexRender)(LoadingComp);
30051
+ if (!page.length) return (0,_flex_renderer__WEBPACK_IMPORTED_MODULE_11__.flexRender)(NoDataComp);
29982
30052
  return page.map(function (row, i, arr) {
29983
30053
  prepareRow(row);
29984
30054
  if (row.isPinned) return null;
@@ -31201,14 +31271,16 @@ var Style = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().forwardRef
31201
31271
  italic_sm: 'sm',
31202
31272
  italic_xs: 'xs',
31203
31273
  code: 'sm',
31274
+ code_sm: 'sm',
31204
31275
  code_xxs: 'xxs',
31205
31276
  capitals: 'xs',
31277
+ capitals_xs: 'xs',
31206
31278
  capitals_xxs: 'xxs'
31207
31279
  }[props.variant] || 'md',
31208
31280
  line_height: ['italic_lg', 'italic_sm'].includes(props.variant) ? 'snug' : 'none',
31209
- font_family: ['code', 'code_xxs'].includes(props.variant) ? 'mono' : 'sans',
31281
+ font_family: ['code', 'code_sm', 'code_xxs'].includes(props.variant) ? 'mono' : 'sans',
31210
31282
  italic: ['italic_lg', 'italic_sm', 'italic_xs'].includes(props.variant),
31211
- uppercase: ['capitals', 'capitals_xxs'].includes(props.variant)
31283
+ uppercase: ['capitals', 'capitals_xs', 'capitals_xxs'].includes(props.variant)
31212
31284
  });
31213
31285
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_3__["default"], _extends({
31214
31286
  ref: ref
@@ -31219,7 +31291,7 @@ Style.defaultProps = {
31219
31291
  variant: 'italic_lg'
31220
31292
  };
31221
31293
  Style.propTypes = {
31222
- variant: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOf(['italic_lg', 'italic_sm', 'italic_xs', 'code', 'code_xxs', 'capitals', 'capitals_xxs']),
31294
+ variant: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOf(['italic_lg', 'italic_sm', 'italic_xs', 'code_sm', 'code_xxs', 'capitals_xs', 'capitals_xxs']),
31223
31295
  whiteSpace: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOf(_utils__WEBPACK_IMPORTED_MODULE_2__.whiteSpaces)
31224
31296
  };
31225
31297
  /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Style);