@paubox/ui 1.9.1 → 1.10.0

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.
package/index.esm.js CHANGED
@@ -2495,9 +2495,9 @@ function _object_spread_props$v(target, source) {
2495
2495
  }
2496
2496
  return target;
2497
2497
  }
2498
- function _object_without_properties$m(source, excluded) {
2498
+ function _object_without_properties$n(source, excluded) {
2499
2499
  if (source == null) return {};
2500
- var target = _object_without_properties_loose$m(source, excluded);
2500
+ var target = _object_without_properties_loose$n(source, excluded);
2501
2501
  var key, i;
2502
2502
  if (Object.getOwnPropertySymbols) {
2503
2503
  var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
@@ -2510,7 +2510,7 @@ function _object_without_properties$m(source, excluded) {
2510
2510
  }
2511
2511
  return target;
2512
2512
  }
2513
- function _object_without_properties_loose$m(source, excluded) {
2513
+ function _object_without_properties_loose$n(source, excluded) {
2514
2514
  if (source == null) return {};
2515
2515
  var target = {};
2516
2516
  var sourceKeys = Object.keys(source);
@@ -2546,7 +2546,7 @@ var IconWrapper$4 = styled.span(_templateObject$q(), function(props) {
2546
2546
  return props.iconLeft ? '0 8px 0 0' : props.iconRight ? '0 0 0 8px' : '0';
2547
2547
  });
2548
2548
  var Button = /*#__PURE__*/ forwardRef(function(_param, ref) {
2549
- var IconLeft = _param.iconLeft, IconRight = _param.iconRight, _param_type = _param.type, type = _param_type === void 0 ? 'button' : _param_type, children = _param.children, props = _object_without_properties$m(_param, [
2549
+ var IconLeft = _param.iconLeft, IconRight = _param.iconRight, _param_type = _param.type, type = _param_type === void 0 ? 'button' : _param_type, children = _param.children, props = _object_without_properties$n(_param, [
2550
2550
  "iconLeft",
2551
2551
  "iconRight",
2552
2552
  "type",
@@ -13603,9 +13603,9 @@ function _object_spread_props$u(target, source) {
13603
13603
  }
13604
13604
  return target;
13605
13605
  }
13606
- function _object_without_properties$l(source, excluded) {
13606
+ function _object_without_properties$m(source, excluded) {
13607
13607
  if (source == null) return {};
13608
- var target = _object_without_properties_loose$l(source, excluded);
13608
+ var target = _object_without_properties_loose$m(source, excluded);
13609
13609
  var key, i;
13610
13610
  if (Object.getOwnPropertySymbols) {
13611
13611
  var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
@@ -13618,7 +13618,7 @@ function _object_without_properties$l(source, excluded) {
13618
13618
  }
13619
13619
  return target;
13620
13620
  }
13621
- function _object_without_properties_loose$l(source, excluded) {
13621
+ function _object_without_properties_loose$m(source, excluded) {
13622
13622
  if (source == null) return {};
13623
13623
  var target = {};
13624
13624
  var sourceKeys = Object.keys(source);
@@ -14190,7 +14190,7 @@ function _detectOverflow() {
14190
14190
  switch(_state.label){
14191
14191
  case 0:
14192
14192
  placement = state.placement, middlewareData = state.middlewareData, rects = state.rects, initialPlacement = state.initialPlacement, platform = state.platform, elements = state.elements;
14193
- _evaluate = evaluate(options, state), tmp = _evaluate.mainAxis, checkMainAxis = tmp === void 0 ? true : tmp, tmp1 = _evaluate.crossAxis, checkCrossAxis = tmp1 === void 0 ? true : tmp1, specifiedFallbackPlacements = _evaluate.fallbackPlacements, _evaluate_fallbackStrategy = _evaluate.fallbackStrategy, fallbackStrategy = _evaluate_fallbackStrategy === void 0 ? 'bestFit' : _evaluate_fallbackStrategy, _evaluate_fallbackAxisSideDirection = _evaluate.fallbackAxisSideDirection, fallbackAxisSideDirection = _evaluate_fallbackAxisSideDirection === void 0 ? 'none' : _evaluate_fallbackAxisSideDirection, _evaluate_flipAlignment = _evaluate.flipAlignment, flipAlignment = _evaluate_flipAlignment === void 0 ? true : _evaluate_flipAlignment, detectOverflowOptions = _object_without_properties$l(_evaluate, [
14193
+ _evaluate = evaluate(options, state), tmp = _evaluate.mainAxis, checkMainAxis = tmp === void 0 ? true : tmp, tmp1 = _evaluate.crossAxis, checkCrossAxis = tmp1 === void 0 ? true : tmp1, specifiedFallbackPlacements = _evaluate.fallbackPlacements, _evaluate_fallbackStrategy = _evaluate.fallbackStrategy, fallbackStrategy = _evaluate_fallbackStrategy === void 0 ? 'bestFit' : _evaluate_fallbackStrategy, _evaluate_fallbackAxisSideDirection = _evaluate.fallbackAxisSideDirection, fallbackAxisSideDirection = _evaluate_fallbackAxisSideDirection === void 0 ? 'none' : _evaluate_fallbackAxisSideDirection, _evaluate_flipAlignment = _evaluate.flipAlignment, flipAlignment = _evaluate_flipAlignment === void 0 ? true : _evaluate_flipAlignment, detectOverflowOptions = _object_without_properties$m(_evaluate, [
14194
14194
  "mainAxis",
14195
14195
  "crossAxis",
14196
14196
  "fallbackPlacements",
@@ -15811,9 +15811,9 @@ function _object_spread_props$r(target, source) {
15811
15811
  }
15812
15812
  return target;
15813
15813
  }
15814
- function _object_without_properties$k(source, excluded) {
15814
+ function _object_without_properties$l(source, excluded) {
15815
15815
  if (source == null) return {};
15816
- var target = _object_without_properties_loose$k(source, excluded);
15816
+ var target = _object_without_properties_loose$l(source, excluded);
15817
15817
  var key, i;
15818
15818
  if (Object.getOwnPropertySymbols) {
15819
15819
  var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
@@ -15826,7 +15826,7 @@ function _object_without_properties$k(source, excluded) {
15826
15826
  }
15827
15827
  return target;
15828
15828
  }
15829
- function _object_without_properties_loose$k(source, excluded) {
15829
+ function _object_without_properties_loose$l(source, excluded) {
15830
15830
  if (source == null) return {};
15831
15831
  var target = {};
15832
15832
  var sourceKeys = Object.keys(source);
@@ -15963,9 +15963,9 @@ function error() {
15963
15963
  * Renders a pointing arrow triangle.
15964
15964
  * @see https://floating-ui.com/docs/FloatingArrow
15965
15965
  */ var FloatingArrow = /*#__PURE__*/ React.forwardRef(function FloatingArrow(props, ref) {
15966
- var _props_context = props.context, placement = _props_context.placement, floating = _props_context.elements.floating, _props_context_middlewareData = _props_context.middlewareData, arrow = _props_context_middlewareData.arrow, shift = _props_context_middlewareData.shift, _props_width = props.width, width = _props_width === void 0 ? 14 : _props_width, _props_height = props.height, height = _props_height === void 0 ? 7 : _props_height, _props_tipRadius = props.tipRadius, tipRadius = _props_tipRadius === void 0 ? 0 : _props_tipRadius, _props_strokeWidth = props.strokeWidth, strokeWidth = _props_strokeWidth === void 0 ? 0 : _props_strokeWidth, staticOffset = props.staticOffset, stroke = props.stroke, d = props.d, tmp = props.style, transform = (tmp === void 0 ? {} : tmp).transform, restStyle = _object_without_properties$k(props.style, [
15966
+ var _props_context = props.context, placement = _props_context.placement, floating = _props_context.elements.floating, _props_context_middlewareData = _props_context.middlewareData, arrow = _props_context_middlewareData.arrow, shift = _props_context_middlewareData.shift, _props_width = props.width, width = _props_width === void 0 ? 14 : _props_width, _props_height = props.height, height = _props_height === void 0 ? 7 : _props_height, _props_tipRadius = props.tipRadius, tipRadius = _props_tipRadius === void 0 ? 0 : _props_tipRadius, _props_strokeWidth = props.strokeWidth, strokeWidth = _props_strokeWidth === void 0 ? 0 : _props_strokeWidth, staticOffset = props.staticOffset, stroke = props.stroke, d = props.d, tmp = props.style, transform = (tmp === void 0 ? {} : tmp).transform, restStyle = _object_without_properties$l(props.style, [
15967
15967
  "transform"
15968
- ]), rest = _object_without_properties$k(props, [
15968
+ ]), rest = _object_without_properties$l(props, [
15969
15969
  "context",
15970
15970
  "width",
15971
15971
  "height",
@@ -21848,9 +21848,9 @@ function _object_spread_props$p(target, source) {
21848
21848
  }
21849
21849
  return target;
21850
21850
  }
21851
- function _object_without_properties$j(source, excluded) {
21851
+ function _object_without_properties$k(source, excluded) {
21852
21852
  if (source == null) return {};
21853
- var target = _object_without_properties_loose$j(source, excluded);
21853
+ var target = _object_without_properties_loose$k(source, excluded);
21854
21854
  var key, i;
21855
21855
  if (Object.getOwnPropertySymbols) {
21856
21856
  var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
@@ -21863,7 +21863,7 @@ function _object_without_properties$j(source, excluded) {
21863
21863
  }
21864
21864
  return target;
21865
21865
  }
21866
- function _object_without_properties_loose$j(source, excluded) {
21866
+ function _object_without_properties_loose$k(source, excluded) {
21867
21867
  if (source == null) return {};
21868
21868
  var target = {};
21869
21869
  var sourceKeys = Object.keys(source);
@@ -21912,7 +21912,7 @@ var StyledTypography = styled.div(_templateObject$o(), function(param) {
21912
21912
  return $srOnly ? '-9999px' : undefined;
21913
21913
  });
21914
21914
  var Typography = function(_param) {
21915
- var _param_variant = _param.variant, variant = _param_variant === void 0 ? 'paragraph100Regular' : _param_variant, children = _param.children, _param_color = _param.color, color = _param_color === void 0 ? 'primary' : _param_color, _param_srOnly = _param.srOnly, srOnly = _param_srOnly === void 0 ? false : _param_srOnly, rest = _object_without_properties$j(_param, [
21915
+ var _param_variant = _param.variant, variant = _param_variant === void 0 ? 'paragraph100Regular' : _param_variant, children = _param.children, _param_color = _param.color, color = _param_color === void 0 ? 'primary' : _param_color, _param_srOnly = _param.srOnly, srOnly = _param_srOnly === void 0 ? false : _param_srOnly, rest = _object_without_properties$k(_param, [
21916
21916
  "variant",
21917
21917
  "children",
21918
21918
  "color",
@@ -22011,9 +22011,9 @@ function _object_spread_props$o(target, source) {
22011
22011
  }
22012
22012
  return target;
22013
22013
  }
22014
- function _object_without_properties$i(source, excluded) {
22014
+ function _object_without_properties$j(source, excluded) {
22015
22015
  if (source == null) return {};
22016
- var target = _object_without_properties_loose$i(source, excluded);
22016
+ var target = _object_without_properties_loose$j(source, excluded);
22017
22017
  var key, i;
22018
22018
  if (Object.getOwnPropertySymbols) {
22019
22019
  var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
@@ -22026,7 +22026,7 @@ function _object_without_properties$i(source, excluded) {
22026
22026
  }
22027
22027
  return target;
22028
22028
  }
22029
- function _object_without_properties_loose$i(source, excluded) {
22029
+ function _object_without_properties_loose$j(source, excluded) {
22030
22030
  if (source == null) return {};
22031
22031
  var target = {};
22032
22032
  var sourceKeys = Object.keys(source);
@@ -22059,7 +22059,7 @@ function _templateObject$n() {
22059
22059
  }
22060
22060
  var StyledCheckbox = styled.input(_templateObject$n());
22061
22061
  var Checkbox = function(_param) {
22062
- var id = _param.id, _param_checked = _param.checked, checked = _param_checked === void 0 ? false : _param_checked, disabled = _param.disabled, labelText = _param.labelText, labelProps = _param.labelProps, _param_indeterminate = _param.indeterminate, indeterminate = _param_indeterminate === void 0 ? false : _param_indeterminate, onChange = _param.onChange, props = _object_without_properties$i(_param, [
22062
+ var id = _param.id, _param_checked = _param.checked, checked = _param_checked === void 0 ? false : _param_checked, disabled = _param.disabled, labelText = _param.labelText, labelProps = _param.labelProps, _param_indeterminate = _param.indeterminate, indeterminate = _param_indeterminate === void 0 ? false : _param_indeterminate, onChange = _param.onChange, props = _object_without_properties$j(_param, [
22063
22063
  "id",
22064
22064
  "checked",
22065
22065
  "disabled",
@@ -22479,9 +22479,9 @@ function _object_spread_props$n(target, source) {
22479
22479
  }
22480
22480
  return target;
22481
22481
  }
22482
- function _object_without_properties$h(source, excluded) {
22482
+ function _object_without_properties$i(source, excluded) {
22483
22483
  if (source == null) return {};
22484
- var target = _object_without_properties_loose$h(source, excluded);
22484
+ var target = _object_without_properties_loose$i(source, excluded);
22485
22485
  var key, i;
22486
22486
  if (Object.getOwnPropertySymbols) {
22487
22487
  var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
@@ -22494,7 +22494,7 @@ function _object_without_properties$h(source, excluded) {
22494
22494
  }
22495
22495
  return target;
22496
22496
  }
22497
- function _object_without_properties_loose$h(source, excluded) {
22497
+ function _object_without_properties_loose$i(source, excluded) {
22498
22498
  if (source == null) return {};
22499
22499
  var target = {};
22500
22500
  var sourceKeys = Object.keys(source);
@@ -22541,7 +22541,7 @@ function _templateObject$l() {
22541
22541
  }
22542
22542
  var DatePickerButton = styled(Button)(_templateObject$l(), spacing(1), neutral300, spacing(1));
22543
22543
  var DatePicker = function(_param) {
22544
- var _param_rangeSelect = _param.rangeSelect, rangeSelect = _param_rangeSelect === void 0 ? false : _param_rangeSelect, _param_selectedDate = _param.selectedDate, selectedDate = _param_selectedDate === void 0 ? new Date() : _param_selectedDate, _param_startDate = _param.startDate, startDate = _param_startDate === void 0 ? new Date(Date.now() - 7 * 24 * 60 * 60 * 1000) : _param_startDate, _param_endDate = _param.endDate, endDate = _param_endDate === void 0 ? new Date() : _param_endDate, onChange = _param.onChange, rest = _object_without_properties$h(_param, [
22544
+ var _param_rangeSelect = _param.rangeSelect, rangeSelect = _param_rangeSelect === void 0 ? false : _param_rangeSelect, _param_selectedDate = _param.selectedDate, selectedDate = _param_selectedDate === void 0 ? new Date() : _param_selectedDate, _param_startDate = _param.startDate, startDate = _param_startDate === void 0 ? new Date(Date.now() - 7 * 24 * 60 * 60 * 1000) : _param_startDate, _param_endDate = _param.endDate, endDate = _param_endDate === void 0 ? new Date() : _param_endDate, onChange = _param.onChange, rest = _object_without_properties$i(_param, [
22545
22545
  "rangeSelect",
22546
22546
  "selectedDate",
22547
22547
  "startDate",
@@ -23376,9 +23376,9 @@ function _object_spread_props$l(target, source) {
23376
23376
  }
23377
23377
  return target;
23378
23378
  }
23379
- function _object_without_properties$g(source, excluded) {
23379
+ function _object_without_properties$h(source, excluded) {
23380
23380
  if (source == null) return {};
23381
- var target = _object_without_properties_loose$g(source, excluded);
23381
+ var target = _object_without_properties_loose$h(source, excluded);
23382
23382
  var key, i;
23383
23383
  if (Object.getOwnPropertySymbols) {
23384
23384
  var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
@@ -23391,7 +23391,7 @@ function _object_without_properties$g(source, excluded) {
23391
23391
  }
23392
23392
  return target;
23393
23393
  }
23394
- function _object_without_properties_loose$g(source, excluded) {
23394
+ function _object_without_properties_loose$h(source, excluded) {
23395
23395
  if (source == null) return {};
23396
23396
  var target = {};
23397
23397
  var sourceKeys = Object.keys(source);
@@ -23404,7 +23404,7 @@ function _object_without_properties_loose$g(source, excluded) {
23404
23404
  return target;
23405
23405
  }
23406
23406
  var IconButton = /*#__PURE__*/ forwardRef(function(_param, ref) {
23407
- var Icon = _param.icon, size = _param.size, circular = _param.circular, fontSize = _param.fontSize, style = _param.style, props = _object_without_properties$g(_param, [
23407
+ var Icon = _param.icon, size = _param.size, circular = _param.circular, fontSize = _param.fontSize, style = _param.style, props = _object_without_properties$h(_param, [
23408
23408
  "icon",
23409
23409
  "size",
23410
23410
  "circular",
@@ -23473,9 +23473,9 @@ function _object_spread_props$k(target, source) {
23473
23473
  }
23474
23474
  return target;
23475
23475
  }
23476
- function _object_without_properties$f(source, excluded) {
23476
+ function _object_without_properties$g(source, excluded) {
23477
23477
  if (source == null) return {};
23478
- var target = _object_without_properties_loose$f(source, excluded);
23478
+ var target = _object_without_properties_loose$g(source, excluded);
23479
23479
  var key, i;
23480
23480
  if (Object.getOwnPropertySymbols) {
23481
23481
  var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
@@ -23488,7 +23488,7 @@ function _object_without_properties$f(source, excluded) {
23488
23488
  }
23489
23489
  return target;
23490
23490
  }
23491
- function _object_without_properties_loose$f(source, excluded) {
23491
+ function _object_without_properties_loose$g(source, excluded) {
23492
23492
  if (source == null) return {};
23493
23493
  var target = {};
23494
23494
  var sourceKeys = Object.keys(source);
@@ -23578,7 +23578,7 @@ var IconWrapper$3 = styled.span(_templateObject2$c(), function(param) {
23578
23578
  return position === 'right' ? '0.5rem' : 'auto';
23579
23579
  });
23580
23580
  var Input = function(_param) {
23581
- var LeftIcon = _param.leftIcon, RightIcon = _param.rightIcon, _param_clearable = _param.clearable, clearable = _param_clearable === void 0 ? false : _param_clearable, _param_sz = _param.sz, sz = _param_sz === void 0 ? 'sm' : _param_sz, _param_error = _param.error, error = _param_error === void 0 ? false : _param_error, style = _param.style, props = _object_without_properties$f(_param, [
23581
+ var LeftIcon = _param.leftIcon, RightIcon = _param.rightIcon, _param_clearable = _param.clearable, clearable = _param_clearable === void 0 ? false : _param_clearable, _param_sz = _param.sz, sz = _param_sz === void 0 ? 'sm' : _param_sz, _param_error = _param.error, error = _param_error === void 0 ? false : _param_error, style = _param.style, props = _object_without_properties$g(_param, [
23582
23582
  "leftIcon",
23583
23583
  "rightIcon",
23584
23584
  "clearable",
@@ -23718,9 +23718,9 @@ function _object_spread_props$j(target, source) {
23718
23718
  }
23719
23719
  return target;
23720
23720
  }
23721
- function _object_without_properties$e(source, excluded) {
23721
+ function _object_without_properties$f(source, excluded) {
23722
23722
  if (source == null) return {};
23723
- var target = _object_without_properties_loose$e(source, excluded);
23723
+ var target = _object_without_properties_loose$f(source, excluded);
23724
23724
  var key, i;
23725
23725
  if (Object.getOwnPropertySymbols) {
23726
23726
  var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
@@ -23733,7 +23733,7 @@ function _object_without_properties$e(source, excluded) {
23733
23733
  }
23734
23734
  return target;
23735
23735
  }
23736
- function _object_without_properties_loose$e(source, excluded) {
23736
+ function _object_without_properties_loose$f(source, excluded) {
23737
23737
  if (source == null) return {};
23738
23738
  var target = {};
23739
23739
  var sourceKeys = Object.keys(source);
@@ -23928,7 +23928,7 @@ var IconWrapper$2 = styled.div(_templateObject5$2(), function(param) {
23928
23928
  var PlaceholderOption = styled.option(_templateObject6$1(), $paragraph100Semibold, textSecondary);
23929
23929
  var SelectedOption = styled.option(_templateObject7$1(), $paragraph200Regular, textPrimary);
23930
23930
  var MultiSelect = function(_param) {
23931
- var _param_sz = _param.sz, sz = _param_sz === void 0 ? 'sm' : _param_sz, _param_error = _param.error, error = _param_error === void 0 ? false : _param_error, _param_options = _param.options, options = _param_options === void 0 ? [] : _param_options; _param.checkbox; var placeholder = _param.placeholder, label = _param.label, _param_chips = _param.chips, chips = _param_chips === void 0 ? false : _param_chips, className = _param.className, values = _param.values, setValues = _param.setValues, _param_disabled = _param.disabled, disabled = _param_disabled === void 0 ? false : _param_disabled, _param_type = _param.type, type = _param_type === void 0 ? 'primary' : _param_type, props = _object_without_properties$e(_param, [
23931
+ var _param_sz = _param.sz, sz = _param_sz === void 0 ? 'sm' : _param_sz, _param_error = _param.error, error = _param_error === void 0 ? false : _param_error, _param_options = _param.options, options = _param_options === void 0 ? [] : _param_options; _param.checkbox; var placeholder = _param.placeholder, label = _param.label, _param_chips = _param.chips, chips = _param_chips === void 0 ? false : _param_chips, className = _param.className, values = _param.values, setValues = _param.setValues, _param_disabled = _param.disabled, disabled = _param_disabled === void 0 ? false : _param_disabled, _param_type = _param.type, type = _param_type === void 0 ? 'primary' : _param_type, props = _object_without_properties$f(_param, [
23932
23932
  "sz",
23933
23933
  "error",
23934
23934
  "options",
@@ -24107,9 +24107,9 @@ function _object_spread$m(target) {
24107
24107
  }
24108
24108
  return target;
24109
24109
  }
24110
- function _object_without_properties$d(source, excluded) {
24110
+ function _object_without_properties$e(source, excluded) {
24111
24111
  if (source == null) return {};
24112
- var target = _object_without_properties_loose$d(source, excluded);
24112
+ var target = _object_without_properties_loose$e(source, excluded);
24113
24113
  var key, i;
24114
24114
  if (Object.getOwnPropertySymbols) {
24115
24115
  var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
@@ -24122,7 +24122,7 @@ function _object_without_properties$d(source, excluded) {
24122
24122
  }
24123
24123
  return target;
24124
24124
  }
24125
- function _object_without_properties_loose$d(source, excluded) {
24125
+ function _object_without_properties_loose$e(source, excluded) {
24126
24126
  if (source == null) return {};
24127
24127
  var target = {};
24128
24128
  var sourceKeys = Object.keys(source);
@@ -24173,7 +24173,7 @@ var Loader = function() {
24173
24173
  });
24174
24174
  };
24175
24175
  var Search = function(_param) {
24176
- var loading = _param.loading, setLoading = _param.setLoading, setSearchValue = _param.setSearchValue, _param_clearable = _param.clearable, clearable = _param_clearable === void 0 ? false : _param_clearable, _param_sz = _param.sz, sz = _param_sz === void 0 ? 'sm' : _param_sz, props = _object_without_properties$d(_param, [
24176
+ var loading = _param.loading, setLoading = _param.setLoading, setSearchValue = _param.setSearchValue, _param_clearable = _param.clearable, clearable = _param_clearable === void 0 ? false : _param_clearable, _param_sz = _param.sz, sz = _param_sz === void 0 ? 'sm' : _param_sz, props = _object_without_properties$e(_param, [
24177
24177
  "loading",
24178
24178
  "setLoading",
24179
24179
  "setSearchValue",
@@ -24301,9 +24301,9 @@ function _object_spread_props$i(target, source) {
24301
24301
  }
24302
24302
  return target;
24303
24303
  }
24304
- function _object_without_properties$c(source, excluded) {
24304
+ function _object_without_properties$d(source, excluded) {
24305
24305
  if (source == null) return {};
24306
- var target = _object_without_properties_loose$c(source, excluded);
24306
+ var target = _object_without_properties_loose$d(source, excluded);
24307
24307
  var key, i;
24308
24308
  if (Object.getOwnPropertySymbols) {
24309
24309
  var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
@@ -24316,7 +24316,7 @@ function _object_without_properties$c(source, excluded) {
24316
24316
  }
24317
24317
  return target;
24318
24318
  }
24319
- function _object_without_properties_loose$c(source, excluded) {
24319
+ function _object_without_properties_loose$d(source, excluded) {
24320
24320
  if (source == null) return {};
24321
24321
  var target = {};
24322
24322
  var sourceKeys = Object.keys(source);
@@ -24442,7 +24442,7 @@ var MultiInputChip = function(param) {
24442
24442
  });
24443
24443
  };
24444
24444
  var MultiInput = function(_param) {
24445
- var _param_sz = _param.sz, sz = _param_sz === void 0 ? 'sm' : _param_sz, _param_error = _param.error, error = _param_error === void 0 ? false : _param_error, _param_type = _param.type, type = _param_type === void 0 ? 'primary' : _param_type, values = _param.values, setValues = _param.setValues, placeholder = _param.placeholder, _param_chips = _param.chips, chips = _param_chips === void 0 ? false : _param_chips, props = _object_without_properties$c(_param, [
24445
+ var _param_sz = _param.sz, sz = _param_sz === void 0 ? 'sm' : _param_sz, _param_error = _param.error, error = _param_error === void 0 ? false : _param_error, _param_type = _param.type, type = _param_type === void 0 ? 'primary' : _param_type, values = _param.values, setValues = _param.setValues, placeholder = _param.placeholder, _param_chips = _param.chips, chips = _param_chips === void 0 ? false : _param_chips, props = _object_without_properties$d(_param, [
24446
24446
  "sz",
24447
24447
  "error",
24448
24448
  "type",
@@ -24626,9 +24626,9 @@ function _object_spread_props$h(target, source) {
24626
24626
  }
24627
24627
  return target;
24628
24628
  }
24629
- function _object_without_properties$b(source, excluded) {
24629
+ function _object_without_properties$c(source, excluded) {
24630
24630
  if (source == null) return {};
24631
- var target = _object_without_properties_loose$b(source, excluded);
24631
+ var target = _object_without_properties_loose$c(source, excluded);
24632
24632
  var key, i;
24633
24633
  if (Object.getOwnPropertySymbols) {
24634
24634
  var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
@@ -24641,7 +24641,7 @@ function _object_without_properties$b(source, excluded) {
24641
24641
  }
24642
24642
  return target;
24643
24643
  }
24644
- function _object_without_properties_loose$b(source, excluded) {
24644
+ function _object_without_properties_loose$c(source, excluded) {
24645
24645
  if (source == null) return {};
24646
24646
  var target = {};
24647
24647
  var sourceKeys = Object.keys(source);
@@ -24774,7 +24774,7 @@ var IconWrapper$1 = styled.div(_templateObject3$7(), function(param) {
24774
24774
  });
24775
24775
  var SelectOption = styled.option(_templateObject4$6(), $paragraph100Semibold, textPrimary);
24776
24776
  var Select = function(_param) {
24777
- var _param_sz = _param.sz, sz = _param_sz === void 0 ? 'sm' : _param_sz, _param_error = _param.error, error = _param_error === void 0 ? false : _param_error, _param_options = _param.options, options = _param_options === void 0 ? [] : _param_options; _param.checkbox; var _param_placeholder = _param.placeholder, placeholder = _param_placeholder === void 0 ? 'Please select...' : _param_placeholder, value = _param.value, setValue = _param.setValue; _param.initialValue; var _param_type = _param.type, type = _param_type === void 0 ? 'primary' : _param_type, style = _param.style, _param_maxHeight = _param.maxHeight, maxHeight = _param_maxHeight === void 0 ? '14rem' : _param_maxHeight, _param_disabled = _param.disabled, disabled = _param_disabled === void 0 ? false : _param_disabled, _param_addClearOption = _param.addClearOption, addClearOption = _param_addClearOption === void 0 ? false : _param_addClearOption, _param_clearOptionLabel = _param.clearOptionLabel, clearOptionLabel = _param_clearOptionLabel === void 0 ? 'Clear' : _param_clearOptionLabel, props = _object_without_properties$b(_param, [
24777
+ var _param_sz = _param.sz, sz = _param_sz === void 0 ? 'sm' : _param_sz, _param_error = _param.error, error = _param_error === void 0 ? false : _param_error, _param_options = _param.options, options = _param_options === void 0 ? [] : _param_options; _param.checkbox; var _param_placeholder = _param.placeholder, placeholder = _param_placeholder === void 0 ? 'Please select...' : _param_placeholder, value = _param.value, setValue = _param.setValue; _param.initialValue; var _param_type = _param.type, type = _param_type === void 0 ? 'primary' : _param_type, style = _param.style, _param_maxHeight = _param.maxHeight, maxHeight = _param_maxHeight === void 0 ? '14rem' : _param_maxHeight, _param_disabled = _param.disabled, disabled = _param_disabled === void 0 ? false : _param_disabled, _param_addClearOption = _param.addClearOption, addClearOption = _param_addClearOption === void 0 ? false : _param_addClearOption, _param_clearOptionLabel = _param.clearOptionLabel, clearOptionLabel = _param_clearOptionLabel === void 0 ? 'Clear' : _param_clearOptionLabel, props = _object_without_properties$c(_param, [
24778
24778
  "sz",
24779
24779
  "error",
24780
24780
  "options",
@@ -24924,9 +24924,9 @@ function _object_spread_props$g(target, source) {
24924
24924
  }
24925
24925
  return target;
24926
24926
  }
24927
- function _object_without_properties$a(source, excluded) {
24927
+ function _object_without_properties$b(source, excluded) {
24928
24928
  if (source == null) return {};
24929
- var target = _object_without_properties_loose$a(source, excluded);
24929
+ var target = _object_without_properties_loose$b(source, excluded);
24930
24930
  var key, i;
24931
24931
  if (Object.getOwnPropertySymbols) {
24932
24932
  var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
@@ -24939,7 +24939,7 @@ function _object_without_properties$a(source, excluded) {
24939
24939
  }
24940
24940
  return target;
24941
24941
  }
24942
- function _object_without_properties_loose$a(source, excluded) {
24942
+ function _object_without_properties_loose$b(source, excluded) {
24943
24943
  if (source == null) return {};
24944
24944
  var target = {};
24945
24945
  var sourceKeys = Object.keys(source);
@@ -25018,7 +25018,7 @@ var BaseTextArea = styled.textarea(_templateObject1$9(), function(param) {
25018
25018
  });
25019
25019
  var CloseButton = styled(IconButton)(_templateObject2$8());
25020
25020
  var TextArea = /*#__PURE__*/ forwardRef(function(_param, ref) {
25021
- var _param_sz = _param.sz, sz = _param_sz === void 0 ? 'sm' : _param_sz, _param_error = _param.error, error = _param_error === void 0 ? false : _param_error, _param_clearable = _param.clearable, clearable = _param_clearable === void 0 ? false : _param_clearable, onClear = _param.onClear, style = _param.style, props = _object_without_properties$a(_param, [
25021
+ var _param_sz = _param.sz, sz = _param_sz === void 0 ? 'sm' : _param_sz, _param_error = _param.error, error = _param_error === void 0 ? false : _param_error, _param_clearable = _param.clearable, clearable = _param_clearable === void 0 ? false : _param_clearable, onClear = _param.onClear, style = _param.style, props = _object_without_properties$b(_param, [
25022
25022
  "sz",
25023
25023
  "error",
25024
25024
  "clearable",
@@ -25115,9 +25115,9 @@ function _object_spread_props$f(target, source) {
25115
25115
  }
25116
25116
  return target;
25117
25117
  }
25118
- function _object_without_properties$9(source, excluded) {
25118
+ function _object_without_properties$a(source, excluded) {
25119
25119
  if (source == null) return {};
25120
- var target = _object_without_properties_loose$9(source, excluded);
25120
+ var target = _object_without_properties_loose$a(source, excluded);
25121
25121
  var key, i;
25122
25122
  if (Object.getOwnPropertySymbols) {
25123
25123
  var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
@@ -25130,7 +25130,7 @@ function _object_without_properties$9(source, excluded) {
25130
25130
  }
25131
25131
  return target;
25132
25132
  }
25133
- function _object_without_properties_loose$9(source, excluded) {
25133
+ function _object_without_properties_loose$a(source, excluded) {
25134
25134
  if (source == null) return {};
25135
25135
  var target = {};
25136
25136
  var sourceKeys = Object.keys(source);
@@ -25209,7 +25209,7 @@ var buttonStyles = css(_templateObject2$7(), spacing(1), spacing(2), $paragraph2
25209
25209
  var StyledItem = styled.button(_templateObject3$6(), buttonStyles);
25210
25210
  var StyledLink = styled.a(_templateObject4$5(), buttonStyles);
25211
25211
  var MenuItem = function(_param) {
25212
- var label = _param.label, href = _param.href, selected = _param.selected, checkbox = _param.checkbox, onClick = _param.onClick, icon = _param.icon, disabled = _param.disabled, _param_size = _param.size, size = _param_size === void 0 ? 'small' : _param_size, props = _object_without_properties$9(_param, [
25212
+ var label = _param.label, href = _param.href, selected = _param.selected, checkbox = _param.checkbox, onClick = _param.onClick, icon = _param.icon, disabled = _param.disabled, _param_size = _param.size, size = _param_size === void 0 ? 'small' : _param_size, props = _object_without_properties$a(_param, [
25213
25213
  "label",
25214
25214
  "href",
25215
25215
  "selected",
@@ -27113,9 +27113,9 @@ function _object_spread_props$c(target, source) {
27113
27113
  }
27114
27114
  return target;
27115
27115
  }
27116
- function _object_without_properties$8(source, excluded) {
27116
+ function _object_without_properties$9(source, excluded) {
27117
27117
  if (source == null) return {};
27118
- var target = _object_without_properties_loose$8(source, excluded);
27118
+ var target = _object_without_properties_loose$9(source, excluded);
27119
27119
  var key, i;
27120
27120
  if (Object.getOwnPropertySymbols) {
27121
27121
  var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
@@ -27128,7 +27128,7 @@ function _object_without_properties$8(source, excluded) {
27128
27128
  }
27129
27129
  return target;
27130
27130
  }
27131
- function _object_without_properties_loose$8(source, excluded) {
27131
+ function _object_without_properties_loose$9(source, excluded) {
27132
27132
  if (source == null) return {};
27133
27133
  var target = {};
27134
27134
  var sourceKeys = Object.keys(source);
@@ -27149,7 +27149,7 @@ function _object_without_properties_loose$8(source, excluded) {
27149
27149
  * @param parameters.getSlotProps - A function that returns the props to be passed to the slot component.
27150
27150
  */ function useSlotProps(parameters) {
27151
27151
  var _parameters_additionalProps;
27152
- var elementType = parameters.elementType, externalSlotProps = parameters.externalSlotProps, ownerState = parameters.ownerState, _parameters_skipResolvingSlotProps = parameters.skipResolvingSlotProps, skipResolvingSlotProps = _parameters_skipResolvingSlotProps === void 0 ? false : _parameters_skipResolvingSlotProps, other = _object_without_properties$8(parameters, [
27152
+ var elementType = parameters.elementType, externalSlotProps = parameters.externalSlotProps, ownerState = parameters.ownerState, _parameters_skipResolvingSlotProps = parameters.skipResolvingSlotProps, skipResolvingSlotProps = _parameters_skipResolvingSlotProps === void 0 ? false : _parameters_skipResolvingSlotProps, other = _object_without_properties$9(parameters, [
27153
27153
  "elementType",
27154
27154
  "externalSlotProps",
27155
27155
  "ownerState",
@@ -27254,9 +27254,9 @@ function _object_spread_props$b(target, source) {
27254
27254
  }
27255
27255
  return target;
27256
27256
  }
27257
- function _object_without_properties$7(source, excluded) {
27257
+ function _object_without_properties$8(source, excluded) {
27258
27258
  if (source == null) return {};
27259
- var target = _object_without_properties_loose$7(source, excluded);
27259
+ var target = _object_without_properties_loose$8(source, excluded);
27260
27260
  var key, i;
27261
27261
  if (Object.getOwnPropertySymbols) {
27262
27262
  var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
@@ -27269,7 +27269,7 @@ function _object_without_properties$7(source, excluded) {
27269
27269
  }
27270
27270
  return target;
27271
27271
  }
27272
- function _object_without_properties_loose$7(source, excluded) {
27272
+ function _object_without_properties_loose$8(source, excluded) {
27273
27273
  if (source == null) return {};
27274
27274
  var target = {};
27275
27275
  var sourceKeys = Object.keys(source);
@@ -27283,7 +27283,7 @@ function _object_without_properties_loose$7(source, excluded) {
27283
27283
  }
27284
27284
  function prepareForSlot(Component) {
27285
27285
  return /*#__PURE__*/ React.forwardRef(function Slot(props, ref) {
27286
- props.ownerState; var other = _object_without_properties$7(props, [
27286
+ props.ownerState; var other = _object_without_properties$8(props, [
27287
27287
  "ownerState"
27288
27288
  ]);
27289
27289
  return /*#__PURE__*/ React.createElement(Component, _object_spread_props$b(_object_spread$d({}, other), {
@@ -28422,9 +28422,9 @@ function _object_spread_props$9(target, source) {
28422
28422
  }
28423
28423
  return target;
28424
28424
  }
28425
- function _object_without_properties$6(source, excluded) {
28425
+ function _object_without_properties$7(source, excluded) {
28426
28426
  if (source == null) return {};
28427
- var target = _object_without_properties_loose$6(source, excluded);
28427
+ var target = _object_without_properties_loose$7(source, excluded);
28428
28428
  var key, i;
28429
28429
  if (Object.getOwnPropertySymbols) {
28430
28430
  var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
@@ -28437,7 +28437,7 @@ function _object_without_properties$6(source, excluded) {
28437
28437
  }
28438
28438
  return target;
28439
28439
  }
28440
- function _object_without_properties_loose$6(source, excluded) {
28440
+ function _object_without_properties_loose$7(source, excluded) {
28441
28441
  if (source == null) return {};
28442
28442
  var target = {};
28443
28443
  var sourceKeys = Object.keys(source);
@@ -28483,7 +28483,7 @@ var useUtilityClasses = function(ownerState) {
28483
28483
  *
28484
28484
  * - [Modal API](https://mui.com/base-ui/react-modal/components-api/#modal)
28485
28485
  */ var Modal$1 = /*#__PURE__*/ React.forwardRef(function Modal(props, forwardedRef) {
28486
- var children = props.children, _props_closeAfterTransition = props.closeAfterTransition, closeAfterTransition = _props_closeAfterTransition === void 0 ? false : _props_closeAfterTransition, container = props.container, _props_disableAutoFocus = props.disableAutoFocus, disableAutoFocus = _props_disableAutoFocus === void 0 ? false : _props_disableAutoFocus, _props_disableEnforceFocus = props.disableEnforceFocus, disableEnforceFocus = _props_disableEnforceFocus === void 0 ? false : _props_disableEnforceFocus, _props_disableEscapeKeyDown = props.disableEscapeKeyDown, disableEscapeKeyDown = _props_disableEscapeKeyDown === void 0 ? false : _props_disableEscapeKeyDown, _props_disablePortal = props.disablePortal, disablePortal = _props_disablePortal === void 0 ? false : _props_disablePortal, _props_disableRestoreFocus = props.disableRestoreFocus, disableRestoreFocus = _props_disableRestoreFocus === void 0 ? false : _props_disableRestoreFocus, _props_disableScrollLock = props.disableScrollLock, disableScrollLock = _props_disableScrollLock === void 0 ? false : _props_disableScrollLock, _props_hideBackdrop = props.hideBackdrop, hideBackdrop = _props_hideBackdrop === void 0 ? false : _props_hideBackdrop, _props_keepMounted = props.keepMounted, keepMounted = _props_keepMounted === void 0 ? false : _props_keepMounted, onBackdropClick = props.onBackdropClick; props.onClose; props.onKeyDown; var open = props.open; props.onTransitionEnter; props.onTransitionExited; var _props_slotProps = props.slotProps, slotProps = _props_slotProps === void 0 ? {} : _props_slotProps, _props_slots = props.slots, slots = _props_slots === void 0 ? {} : _props_slots, other = _object_without_properties$6(props, [
28486
+ var children = props.children, _props_closeAfterTransition = props.closeAfterTransition, closeAfterTransition = _props_closeAfterTransition === void 0 ? false : _props_closeAfterTransition, container = props.container, _props_disableAutoFocus = props.disableAutoFocus, disableAutoFocus = _props_disableAutoFocus === void 0 ? false : _props_disableAutoFocus, _props_disableEnforceFocus = props.disableEnforceFocus, disableEnforceFocus = _props_disableEnforceFocus === void 0 ? false : _props_disableEnforceFocus, _props_disableEscapeKeyDown = props.disableEscapeKeyDown, disableEscapeKeyDown = _props_disableEscapeKeyDown === void 0 ? false : _props_disableEscapeKeyDown, _props_disablePortal = props.disablePortal, disablePortal = _props_disablePortal === void 0 ? false : _props_disablePortal, _props_disableRestoreFocus = props.disableRestoreFocus, disableRestoreFocus = _props_disableRestoreFocus === void 0 ? false : _props_disableRestoreFocus, _props_disableScrollLock = props.disableScrollLock, disableScrollLock = _props_disableScrollLock === void 0 ? false : _props_disableScrollLock, _props_hideBackdrop = props.hideBackdrop, hideBackdrop = _props_hideBackdrop === void 0 ? false : _props_hideBackdrop, _props_keepMounted = props.keepMounted, keepMounted = _props_keepMounted === void 0 ? false : _props_keepMounted, onBackdropClick = props.onBackdropClick; props.onClose; props.onKeyDown; var open = props.open; props.onTransitionEnter; props.onTransitionExited; var _props_slotProps = props.slotProps, slotProps = _props_slotProps === void 0 ? {} : _props_slotProps, _props_slots = props.slots, slots = _props_slots === void 0 ? {} : _props_slots, other = _object_without_properties$7(props, [
28487
28487
  "children",
28488
28488
  "closeAfterTransition",
28489
28489
  "container",
@@ -28905,9 +28905,9 @@ function _object_spread$9(target) {
28905
28905
  }
28906
28906
  return target;
28907
28907
  }
28908
- function _object_without_properties$5(source, excluded) {
28908
+ function _object_without_properties$6(source, excluded) {
28909
28909
  if (source == null) return {};
28910
- var target = _object_without_properties_loose$5(source, excluded);
28910
+ var target = _object_without_properties_loose$6(source, excluded);
28911
28911
  var key, i;
28912
28912
  if (Object.getOwnPropertySymbols) {
28913
28913
  var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
@@ -28920,7 +28920,7 @@ function _object_without_properties$5(source, excluded) {
28920
28920
  }
28921
28921
  return target;
28922
28922
  }
28923
- function _object_without_properties_loose$5(source, excluded) {
28923
+ function _object_without_properties_loose$6(source, excluded) {
28924
28924
  if (source == null) return {};
28925
28925
  var target = {};
28926
28926
  var sourceKeys = Object.keys(source);
@@ -28952,7 +28952,7 @@ function _templateObject$a() {
28952
28952
  return data;
28953
28953
  }
28954
28954
  var BaseBackdrop = /*#__PURE__*/ forwardRef(function(props, ref) {
28955
- var open = props.open, className = props.className, other = _object_without_properties$5(props, [
28955
+ var open = props.open, className = props.className, other = _object_without_properties$6(props, [
28956
28956
  "open",
28957
28957
  "className"
28958
28958
  ]);
@@ -29038,9 +29038,9 @@ function _object_spread_props$7(target, source) {
29038
29038
  }
29039
29039
  return target;
29040
29040
  }
29041
- function _object_without_properties$4(source, excluded) {
29041
+ function _object_without_properties$5(source, excluded) {
29042
29042
  if (source == null) return {};
29043
- var target = _object_without_properties_loose$4(source, excluded);
29043
+ var target = _object_without_properties_loose$5(source, excluded);
29044
29044
  var key, i;
29045
29045
  if (Object.getOwnPropertySymbols) {
29046
29046
  var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
@@ -29053,7 +29053,7 @@ function _object_without_properties$4(source, excluded) {
29053
29053
  }
29054
29054
  return target;
29055
29055
  }
29056
- function _object_without_properties_loose$4(source, excluded) {
29056
+ function _object_without_properties_loose$5(source, excluded) {
29057
29057
  if (source == null) return {};
29058
29058
  var target = {};
29059
29059
  var sourceKeys = Object.keys(source);
@@ -29175,7 +29175,7 @@ var Modal = function(param) {
29175
29175
  }),
29176
29176
  Boolean(actions === null || actions === void 0 ? void 0 : actions.length) && /*#__PURE__*/ jsx(ModalFooter, {
29177
29177
  children: actions === null || actions === void 0 ? void 0 : actions.map(function(_param) {
29178
- var id = _param.id, label = _param.label, rest = _object_without_properties$4(_param, [
29178
+ var id = _param.id, label = _param.label, rest = _object_without_properties$5(_param, [
29179
29179
  "id",
29180
29180
  "label"
29181
29181
  ]);
@@ -29377,9 +29377,9 @@ function _object_spread$7(target) {
29377
29377
  }
29378
29378
  return target;
29379
29379
  }
29380
- function _object_without_properties$3(source, excluded) {
29380
+ function _object_without_properties$4(source, excluded) {
29381
29381
  if (source == null) return {};
29382
- var target = _object_without_properties_loose$3(source, excluded);
29382
+ var target = _object_without_properties_loose$4(source, excluded);
29383
29383
  var key, i;
29384
29384
  if (Object.getOwnPropertySymbols) {
29385
29385
  var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
@@ -29392,7 +29392,7 @@ function _object_without_properties$3(source, excluded) {
29392
29392
  }
29393
29393
  return target;
29394
29394
  }
29395
- function _object_without_properties_loose$3(source, excluded) {
29395
+ function _object_without_properties_loose$4(source, excluded) {
29396
29396
  if (source == null) return {};
29397
29397
  var target = {};
29398
29398
  var sourceKeys = Object.keys(source);
@@ -29425,7 +29425,7 @@ function _templateObject$6() {
29425
29425
  }
29426
29426
  var RadioButtonContainer = styled.div(_templateObject$6());
29427
29427
  var RadioButton = function(_param) {
29428
- var id = _param.id, name = _param.name, label = _param.label, value = _param.value, checked = _param.checked, onChange = _param.onChange, disabled = _param.disabled, required = _param.required, className = _param.className, style = _param.style, props = _object_without_properties$3(_param, [
29428
+ var id = _param.id, name = _param.name, label = _param.label, value = _param.value, checked = _param.checked, onChange = _param.onChange, disabled = _param.disabled, required = _param.required, className = _param.className, style = _param.style, props = _object_without_properties$4(_param, [
29429
29429
  "id",
29430
29430
  "name",
29431
29431
  "label",
@@ -29610,9 +29610,9 @@ function _object_spread_props$5(target, source) {
29610
29610
  }
29611
29611
  return target;
29612
29612
  }
29613
- function _object_without_properties$2(source, excluded) {
29613
+ function _object_without_properties$3(source, excluded) {
29614
29614
  if (source == null) return {};
29615
- var target = _object_without_properties_loose$2(source, excluded);
29615
+ var target = _object_without_properties_loose$3(source, excluded);
29616
29616
  var key, i;
29617
29617
  if (Object.getOwnPropertySymbols) {
29618
29618
  var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
@@ -29625,7 +29625,7 @@ function _object_without_properties$2(source, excluded) {
29625
29625
  }
29626
29626
  return target;
29627
29627
  }
29628
- function _object_without_properties_loose$2(source, excluded) {
29628
+ function _object_without_properties_loose$3(source, excluded) {
29629
29629
  if (source == null) return {};
29630
29630
  var target = {};
29631
29631
  var sourceKeys = Object.keys(source);
@@ -29693,7 +29693,7 @@ var IconWrapper = styled(IconWrapper$3)(_templateObject1$5(), neutral200, neutra
29693
29693
  var StyledInput = styled(BaseInput$1)(_templateObject2$5());
29694
29694
  var GoButton = styled(Button)(_templateObject3$4(), spacing(1), spacing(1));
29695
29695
  var SearchBar = function(_param) {
29696
- var placeholder = _param.placeholder, _param_error = _param.error, error = _param_error === void 0 ? false : _param_error, onClear = _param.onClear, onSubmit = _param.onSubmit, _param_showButton = _param.showButton, showButton = _param_showButton === void 0 ? true : _param_showButton, _param_showFilters = _param.showFilters, showFilters = _param_showFilters === void 0 ? false : _param_showFilters, _param_testId = _param.testId, testId = _param_testId === void 0 ? 'search' : _param_testId, props = _object_without_properties$2(_param, [
29696
+ var placeholder = _param.placeholder, _param_error = _param.error, error = _param_error === void 0 ? false : _param_error, onClear = _param.onClear, onSubmit = _param.onSubmit, _param_showButton = _param.showButton, showButton = _param_showButton === void 0 ? true : _param_showButton, _param_showFilters = _param.showFilters, showFilters = _param_showFilters === void 0 ? false : _param_showFilters, _param_testId = _param.testId, testId = _param_testId === void 0 ? 'search' : _param_testId, props = _object_without_properties$3(_param, [
29697
29697
  "placeholder",
29698
29698
  "error",
29699
29699
  "onClear",
@@ -29905,9 +29905,9 @@ function _object_spread_props$4(target, source) {
29905
29905
  }
29906
29906
  return target;
29907
29907
  }
29908
- function _object_without_properties$1(source, excluded) {
29908
+ function _object_without_properties$2(source, excluded) {
29909
29909
  if (source == null) return {};
29910
- var target = _object_without_properties_loose$1(source, excluded);
29910
+ var target = _object_without_properties_loose$2(source, excluded);
29911
29911
  var key, i;
29912
29912
  if (Object.getOwnPropertySymbols) {
29913
29913
  var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
@@ -29920,7 +29920,7 @@ function _object_without_properties$1(source, excluded) {
29920
29920
  }
29921
29921
  return target;
29922
29922
  }
29923
- function _object_without_properties_loose$1(source, excluded) {
29923
+ function _object_without_properties_loose$2(source, excluded) {
29924
29924
  if (source == null) return {};
29925
29925
  var target = {};
29926
29926
  var sourceKeys = Object.keys(source);
@@ -31475,7 +31475,7 @@ var ColumnSizing = (_obj = {
31475
31475
  }, getMemoOptions(table.options, 'debugColumns', 'getAfter'));
31476
31476
  column.resetSize = function() {
31477
31477
  table.setColumnSizing(function(_ref2) {
31478
- var _column_id = column.id; _ref2[_column_id]; var rest = _object_without_properties$1(_ref2, [
31478
+ var _column_id = column.id; _ref2[_column_id]; var rest = _object_without_properties$2(_ref2, [
31479
31479
  _column_id
31480
31480
  ].map(_to_property_key));
31481
31481
  return rest;
@@ -32005,7 +32005,7 @@ var RowExpanding = _define_property$4({
32005
32005
  return _object_spread_props$4(_object_spread$4({}, oldExpanded), _define_property$4({}, row.id, true));
32006
32006
  }
32007
32007
  if (exists && !expanded) {
32008
- var _row_id = row.id; oldExpanded[_row_id]; var rest = _object_without_properties$1(oldExpanded, [
32008
+ var _row_id = row.id; oldExpanded[_row_id]; var rest = _object_without_properties$2(oldExpanded, [
32009
32009
  _row_id
32010
32010
  ].map(_to_property_key));
32011
32011
  return rest;
@@ -34184,6 +34184,33 @@ function _object_spread_props$2(target, source) {
34184
34184
  }
34185
34185
  return target;
34186
34186
  }
34187
+ function _object_without_properties$1(source, excluded) {
34188
+ if (source == null) return {};
34189
+ var target = _object_without_properties_loose$1(source, excluded);
34190
+ var key, i;
34191
+ if (Object.getOwnPropertySymbols) {
34192
+ var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
34193
+ for(i = 0; i < sourceSymbolKeys.length; i++){
34194
+ key = sourceSymbolKeys[i];
34195
+ if (excluded.indexOf(key) >= 0) continue;
34196
+ if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
34197
+ target[key] = source[key];
34198
+ }
34199
+ }
34200
+ return target;
34201
+ }
34202
+ function _object_without_properties_loose$1(source, excluded) {
34203
+ if (source == null) return {};
34204
+ var target = {};
34205
+ var sourceKeys = Object.keys(source);
34206
+ var key, i;
34207
+ for(i = 0; i < sourceKeys.length; i++){
34208
+ key = sourceKeys[i];
34209
+ if (excluded.indexOf(key) >= 0) continue;
34210
+ target[key] = source[key];
34211
+ }
34212
+ return target;
34213
+ }
34187
34214
  function _sliced_to_array$1(arr, i) {
34188
34215
  return _array_with_holes$1(arr) || _iterable_to_array_limit$1(arr, i) || _unsupported_iterable_to_array$1(arr, i) || _non_iterable_rest$1();
34189
34216
  }
@@ -34282,13 +34309,29 @@ var Table = function(param) {
34282
34309
  }
34283
34310
  var tableColumns = useMemo(function() {
34284
34311
  return columns.map(function(col) {
34285
- return _object_spread$2({
34286
- id: col.key,
34287
- accessorKey: col.key,
34288
- accessorFn: col.getter,
34289
- enableSorting: col.sortable,
34290
- enableResizing: !col.autoWidth
34291
- }, col);
34312
+ var key = col.key, header = col.header, sortable = col.sortable, getter = col.getter, render = col.render, autoWidth = col.autoWidth, cell = col.cell, restCol = _object_without_properties$1(col, [
34313
+ "key",
34314
+ "header",
34315
+ "sortable",
34316
+ "getter",
34317
+ "render",
34318
+ "autoWidth",
34319
+ "cell"
34320
+ ]);
34321
+ return _object_spread_props$2(_object_spread$2({
34322
+ id: key,
34323
+ accessorKey: key,
34324
+ accessorFn: getter,
34325
+ enableSorting: sortable,
34326
+ enableResizing: !autoWidth,
34327
+ header: header
34328
+ }, restCol), {
34329
+ cell: render ? function(info) {
34330
+ return render(info.row.original);
34331
+ } : cell ? cell : function(info) {
34332
+ return info.getValue();
34333
+ }
34334
+ });
34292
34335
  });
34293
34336
  }, [
34294
34337
  columns
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@paubox/ui",
3
3
  "author": "Paubox, Inc.",
4
4
  "description": "Paubox Component Library",
5
- "version": "1.9.1",
5
+ "version": "1.10.0",
6
6
  "type": "module",
7
7
  "private": false,
8
8
  "publishConfig": {
@@ -14,6 +14,7 @@ export type TableColumn<T> = ColumnDef<T> & {
14
14
  header: string;
15
15
  sortable?: boolean;
16
16
  getter?: () => unknown;
17
+ render?: (item: T) => ReactNode;
17
18
  autoWidth?: boolean;
18
19
  overflow?: CellOverflow;
19
20
  maxLines?: number;