@paubox/ui 1.9.0 → 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 +156 -105
- package/package.json +1 -1
- package/src/lib/Modal/Modal.d.ts +1 -0
- package/src/lib/Table/Table.d.ts +1 -0
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$
|
|
2498
|
+
function _object_without_properties$n(source, excluded) {
|
|
2499
2499
|
if (source == null) return {};
|
|
2500
|
-
var target = _object_without_properties_loose$
|
|
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$
|
|
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$
|
|
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$
|
|
13606
|
+
function _object_without_properties$m(source, excluded) {
|
|
13607
13607
|
if (source == null) return {};
|
|
13608
|
-
var target = _object_without_properties_loose$
|
|
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$
|
|
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$
|
|
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$
|
|
15814
|
+
function _object_without_properties$l(source, excluded) {
|
|
15815
15815
|
if (source == null) return {};
|
|
15816
|
-
var target = _object_without_properties_loose$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
21851
|
+
function _object_without_properties$k(source, excluded) {
|
|
21852
21852
|
if (source == null) return {};
|
|
21853
|
-
var target = _object_without_properties_loose$
|
|
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$
|
|
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$
|
|
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$
|
|
22014
|
+
function _object_without_properties$j(source, excluded) {
|
|
22015
22015
|
if (source == null) return {};
|
|
22016
|
-
var target = _object_without_properties_loose$
|
|
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$
|
|
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$
|
|
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",
|
|
@@ -22324,6 +22324,8 @@ var Popper = function(param) {
|
|
|
22324
22324
|
], onClose, open);
|
|
22325
22325
|
var updatePosition = useCallback(function() {
|
|
22326
22326
|
if (!anchorRef.current || !containerRef.current) return;
|
|
22327
|
+
// Check if anchor element is still connected to the DOM
|
|
22328
|
+
if (!anchorRef.current.isConnected) return;
|
|
22327
22329
|
var anchorRect = anchorRef.current.getBoundingClientRect();
|
|
22328
22330
|
var popperRect = containerRef.current.getBoundingClientRect();
|
|
22329
22331
|
var el = anchorRef.current;
|
|
@@ -22477,9 +22479,9 @@ function _object_spread_props$n(target, source) {
|
|
|
22477
22479
|
}
|
|
22478
22480
|
return target;
|
|
22479
22481
|
}
|
|
22480
|
-
function _object_without_properties$
|
|
22482
|
+
function _object_without_properties$i(source, excluded) {
|
|
22481
22483
|
if (source == null) return {};
|
|
22482
|
-
var target = _object_without_properties_loose$
|
|
22484
|
+
var target = _object_without_properties_loose$i(source, excluded);
|
|
22483
22485
|
var key, i;
|
|
22484
22486
|
if (Object.getOwnPropertySymbols) {
|
|
22485
22487
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
@@ -22492,7 +22494,7 @@ function _object_without_properties$h(source, excluded) {
|
|
|
22492
22494
|
}
|
|
22493
22495
|
return target;
|
|
22494
22496
|
}
|
|
22495
|
-
function _object_without_properties_loose$
|
|
22497
|
+
function _object_without_properties_loose$i(source, excluded) {
|
|
22496
22498
|
if (source == null) return {};
|
|
22497
22499
|
var target = {};
|
|
22498
22500
|
var sourceKeys = Object.keys(source);
|
|
@@ -22539,7 +22541,7 @@ function _templateObject$l() {
|
|
|
22539
22541
|
}
|
|
22540
22542
|
var DatePickerButton = styled(Button)(_templateObject$l(), spacing(1), neutral300, spacing(1));
|
|
22541
22543
|
var DatePicker = function(_param) {
|
|
22542
|
-
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$
|
|
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, [
|
|
22543
22545
|
"rangeSelect",
|
|
22544
22546
|
"selectedDate",
|
|
22545
22547
|
"startDate",
|
|
@@ -23374,9 +23376,9 @@ function _object_spread_props$l(target, source) {
|
|
|
23374
23376
|
}
|
|
23375
23377
|
return target;
|
|
23376
23378
|
}
|
|
23377
|
-
function _object_without_properties$
|
|
23379
|
+
function _object_without_properties$h(source, excluded) {
|
|
23378
23380
|
if (source == null) return {};
|
|
23379
|
-
var target = _object_without_properties_loose$
|
|
23381
|
+
var target = _object_without_properties_loose$h(source, excluded);
|
|
23380
23382
|
var key, i;
|
|
23381
23383
|
if (Object.getOwnPropertySymbols) {
|
|
23382
23384
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
@@ -23389,7 +23391,7 @@ function _object_without_properties$g(source, excluded) {
|
|
|
23389
23391
|
}
|
|
23390
23392
|
return target;
|
|
23391
23393
|
}
|
|
23392
|
-
function _object_without_properties_loose$
|
|
23394
|
+
function _object_without_properties_loose$h(source, excluded) {
|
|
23393
23395
|
if (source == null) return {};
|
|
23394
23396
|
var target = {};
|
|
23395
23397
|
var sourceKeys = Object.keys(source);
|
|
@@ -23402,7 +23404,7 @@ function _object_without_properties_loose$g(source, excluded) {
|
|
|
23402
23404
|
return target;
|
|
23403
23405
|
}
|
|
23404
23406
|
var IconButton = /*#__PURE__*/ forwardRef(function(_param, ref) {
|
|
23405
|
-
var Icon = _param.icon, size = _param.size, circular = _param.circular, fontSize = _param.fontSize, style = _param.style, props = _object_without_properties$
|
|
23407
|
+
var Icon = _param.icon, size = _param.size, circular = _param.circular, fontSize = _param.fontSize, style = _param.style, props = _object_without_properties$h(_param, [
|
|
23406
23408
|
"icon",
|
|
23407
23409
|
"size",
|
|
23408
23410
|
"circular",
|
|
@@ -23471,9 +23473,9 @@ function _object_spread_props$k(target, source) {
|
|
|
23471
23473
|
}
|
|
23472
23474
|
return target;
|
|
23473
23475
|
}
|
|
23474
|
-
function _object_without_properties$
|
|
23476
|
+
function _object_without_properties$g(source, excluded) {
|
|
23475
23477
|
if (source == null) return {};
|
|
23476
|
-
var target = _object_without_properties_loose$
|
|
23478
|
+
var target = _object_without_properties_loose$g(source, excluded);
|
|
23477
23479
|
var key, i;
|
|
23478
23480
|
if (Object.getOwnPropertySymbols) {
|
|
23479
23481
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
@@ -23486,7 +23488,7 @@ function _object_without_properties$f(source, excluded) {
|
|
|
23486
23488
|
}
|
|
23487
23489
|
return target;
|
|
23488
23490
|
}
|
|
23489
|
-
function _object_without_properties_loose$
|
|
23491
|
+
function _object_without_properties_loose$g(source, excluded) {
|
|
23490
23492
|
if (source == null) return {};
|
|
23491
23493
|
var target = {};
|
|
23492
23494
|
var sourceKeys = Object.keys(source);
|
|
@@ -23576,7 +23578,7 @@ var IconWrapper$3 = styled.span(_templateObject2$c(), function(param) {
|
|
|
23576
23578
|
return position === 'right' ? '0.5rem' : 'auto';
|
|
23577
23579
|
});
|
|
23578
23580
|
var Input = function(_param) {
|
|
23579
|
-
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$
|
|
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, [
|
|
23580
23582
|
"leftIcon",
|
|
23581
23583
|
"rightIcon",
|
|
23582
23584
|
"clearable",
|
|
@@ -23716,9 +23718,9 @@ function _object_spread_props$j(target, source) {
|
|
|
23716
23718
|
}
|
|
23717
23719
|
return target;
|
|
23718
23720
|
}
|
|
23719
|
-
function _object_without_properties$
|
|
23721
|
+
function _object_without_properties$f(source, excluded) {
|
|
23720
23722
|
if (source == null) return {};
|
|
23721
|
-
var target = _object_without_properties_loose$
|
|
23723
|
+
var target = _object_without_properties_loose$f(source, excluded);
|
|
23722
23724
|
var key, i;
|
|
23723
23725
|
if (Object.getOwnPropertySymbols) {
|
|
23724
23726
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
@@ -23731,7 +23733,7 @@ function _object_without_properties$e(source, excluded) {
|
|
|
23731
23733
|
}
|
|
23732
23734
|
return target;
|
|
23733
23735
|
}
|
|
23734
|
-
function _object_without_properties_loose$
|
|
23736
|
+
function _object_without_properties_loose$f(source, excluded) {
|
|
23735
23737
|
if (source == null) return {};
|
|
23736
23738
|
var target = {};
|
|
23737
23739
|
var sourceKeys = Object.keys(source);
|
|
@@ -23926,7 +23928,7 @@ var IconWrapper$2 = styled.div(_templateObject5$2(), function(param) {
|
|
|
23926
23928
|
var PlaceholderOption = styled.option(_templateObject6$1(), $paragraph100Semibold, textSecondary);
|
|
23927
23929
|
var SelectedOption = styled.option(_templateObject7$1(), $paragraph200Regular, textPrimary);
|
|
23928
23930
|
var MultiSelect = function(_param) {
|
|
23929
|
-
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$
|
|
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, [
|
|
23930
23932
|
"sz",
|
|
23931
23933
|
"error",
|
|
23932
23934
|
"options",
|
|
@@ -24105,9 +24107,9 @@ function _object_spread$m(target) {
|
|
|
24105
24107
|
}
|
|
24106
24108
|
return target;
|
|
24107
24109
|
}
|
|
24108
|
-
function _object_without_properties$
|
|
24110
|
+
function _object_without_properties$e(source, excluded) {
|
|
24109
24111
|
if (source == null) return {};
|
|
24110
|
-
var target = _object_without_properties_loose$
|
|
24112
|
+
var target = _object_without_properties_loose$e(source, excluded);
|
|
24111
24113
|
var key, i;
|
|
24112
24114
|
if (Object.getOwnPropertySymbols) {
|
|
24113
24115
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
@@ -24120,7 +24122,7 @@ function _object_without_properties$d(source, excluded) {
|
|
|
24120
24122
|
}
|
|
24121
24123
|
return target;
|
|
24122
24124
|
}
|
|
24123
|
-
function _object_without_properties_loose$
|
|
24125
|
+
function _object_without_properties_loose$e(source, excluded) {
|
|
24124
24126
|
if (source == null) return {};
|
|
24125
24127
|
var target = {};
|
|
24126
24128
|
var sourceKeys = Object.keys(source);
|
|
@@ -24171,7 +24173,7 @@ var Loader = function() {
|
|
|
24171
24173
|
});
|
|
24172
24174
|
};
|
|
24173
24175
|
var Search = function(_param) {
|
|
24174
|
-
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$
|
|
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, [
|
|
24175
24177
|
"loading",
|
|
24176
24178
|
"setLoading",
|
|
24177
24179
|
"setSearchValue",
|
|
@@ -24299,9 +24301,9 @@ function _object_spread_props$i(target, source) {
|
|
|
24299
24301
|
}
|
|
24300
24302
|
return target;
|
|
24301
24303
|
}
|
|
24302
|
-
function _object_without_properties$
|
|
24304
|
+
function _object_without_properties$d(source, excluded) {
|
|
24303
24305
|
if (source == null) return {};
|
|
24304
|
-
var target = _object_without_properties_loose$
|
|
24306
|
+
var target = _object_without_properties_loose$d(source, excluded);
|
|
24305
24307
|
var key, i;
|
|
24306
24308
|
if (Object.getOwnPropertySymbols) {
|
|
24307
24309
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
@@ -24314,7 +24316,7 @@ function _object_without_properties$c(source, excluded) {
|
|
|
24314
24316
|
}
|
|
24315
24317
|
return target;
|
|
24316
24318
|
}
|
|
24317
|
-
function _object_without_properties_loose$
|
|
24319
|
+
function _object_without_properties_loose$d(source, excluded) {
|
|
24318
24320
|
if (source == null) return {};
|
|
24319
24321
|
var target = {};
|
|
24320
24322
|
var sourceKeys = Object.keys(source);
|
|
@@ -24440,7 +24442,7 @@ var MultiInputChip = function(param) {
|
|
|
24440
24442
|
});
|
|
24441
24443
|
};
|
|
24442
24444
|
var MultiInput = function(_param) {
|
|
24443
|
-
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$
|
|
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, [
|
|
24444
24446
|
"sz",
|
|
24445
24447
|
"error",
|
|
24446
24448
|
"type",
|
|
@@ -24624,9 +24626,9 @@ function _object_spread_props$h(target, source) {
|
|
|
24624
24626
|
}
|
|
24625
24627
|
return target;
|
|
24626
24628
|
}
|
|
24627
|
-
function _object_without_properties$
|
|
24629
|
+
function _object_without_properties$c(source, excluded) {
|
|
24628
24630
|
if (source == null) return {};
|
|
24629
|
-
var target = _object_without_properties_loose$
|
|
24631
|
+
var target = _object_without_properties_loose$c(source, excluded);
|
|
24630
24632
|
var key, i;
|
|
24631
24633
|
if (Object.getOwnPropertySymbols) {
|
|
24632
24634
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
@@ -24639,7 +24641,7 @@ function _object_without_properties$b(source, excluded) {
|
|
|
24639
24641
|
}
|
|
24640
24642
|
return target;
|
|
24641
24643
|
}
|
|
24642
|
-
function _object_without_properties_loose$
|
|
24644
|
+
function _object_without_properties_loose$c(source, excluded) {
|
|
24643
24645
|
if (source == null) return {};
|
|
24644
24646
|
var target = {};
|
|
24645
24647
|
var sourceKeys = Object.keys(source);
|
|
@@ -24772,7 +24774,7 @@ var IconWrapper$1 = styled.div(_templateObject3$7(), function(param) {
|
|
|
24772
24774
|
});
|
|
24773
24775
|
var SelectOption = styled.option(_templateObject4$6(), $paragraph100Semibold, textPrimary);
|
|
24774
24776
|
var Select = function(_param) {
|
|
24775
|
-
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$
|
|
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, [
|
|
24776
24778
|
"sz",
|
|
24777
24779
|
"error",
|
|
24778
24780
|
"options",
|
|
@@ -24821,6 +24823,8 @@ var Select = function(_param) {
|
|
|
24821
24823
|
disabled: disabled,
|
|
24822
24824
|
sz: sz,
|
|
24823
24825
|
value: value,
|
|
24826
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
24827
|
+
onChange: function() {},
|
|
24824
24828
|
error: error,
|
|
24825
24829
|
children: !value ? /*#__PURE__*/ jsx(SelectOption, {
|
|
24826
24830
|
value: "",
|
|
@@ -24920,9 +24924,9 @@ function _object_spread_props$g(target, source) {
|
|
|
24920
24924
|
}
|
|
24921
24925
|
return target;
|
|
24922
24926
|
}
|
|
24923
|
-
function _object_without_properties$
|
|
24927
|
+
function _object_without_properties$b(source, excluded) {
|
|
24924
24928
|
if (source == null) return {};
|
|
24925
|
-
var target = _object_without_properties_loose$
|
|
24929
|
+
var target = _object_without_properties_loose$b(source, excluded);
|
|
24926
24930
|
var key, i;
|
|
24927
24931
|
if (Object.getOwnPropertySymbols) {
|
|
24928
24932
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
@@ -24935,7 +24939,7 @@ function _object_without_properties$a(source, excluded) {
|
|
|
24935
24939
|
}
|
|
24936
24940
|
return target;
|
|
24937
24941
|
}
|
|
24938
|
-
function _object_without_properties_loose$
|
|
24942
|
+
function _object_without_properties_loose$b(source, excluded) {
|
|
24939
24943
|
if (source == null) return {};
|
|
24940
24944
|
var target = {};
|
|
24941
24945
|
var sourceKeys = Object.keys(source);
|
|
@@ -25014,7 +25018,7 @@ var BaseTextArea = styled.textarea(_templateObject1$9(), function(param) {
|
|
|
25014
25018
|
});
|
|
25015
25019
|
var CloseButton = styled(IconButton)(_templateObject2$8());
|
|
25016
25020
|
var TextArea = /*#__PURE__*/ forwardRef(function(_param, ref) {
|
|
25017
|
-
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$
|
|
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, [
|
|
25018
25022
|
"sz",
|
|
25019
25023
|
"error",
|
|
25020
25024
|
"clearable",
|
|
@@ -25111,9 +25115,9 @@ function _object_spread_props$f(target, source) {
|
|
|
25111
25115
|
}
|
|
25112
25116
|
return target;
|
|
25113
25117
|
}
|
|
25114
|
-
function _object_without_properties$
|
|
25118
|
+
function _object_without_properties$a(source, excluded) {
|
|
25115
25119
|
if (source == null) return {};
|
|
25116
|
-
var target = _object_without_properties_loose$
|
|
25120
|
+
var target = _object_without_properties_loose$a(source, excluded);
|
|
25117
25121
|
var key, i;
|
|
25118
25122
|
if (Object.getOwnPropertySymbols) {
|
|
25119
25123
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
@@ -25126,7 +25130,7 @@ function _object_without_properties$9(source, excluded) {
|
|
|
25126
25130
|
}
|
|
25127
25131
|
return target;
|
|
25128
25132
|
}
|
|
25129
|
-
function _object_without_properties_loose$
|
|
25133
|
+
function _object_without_properties_loose$a(source, excluded) {
|
|
25130
25134
|
if (source == null) return {};
|
|
25131
25135
|
var target = {};
|
|
25132
25136
|
var sourceKeys = Object.keys(source);
|
|
@@ -25205,7 +25209,7 @@ var buttonStyles = css(_templateObject2$7(), spacing(1), spacing(2), $paragraph2
|
|
|
25205
25209
|
var StyledItem = styled.button(_templateObject3$6(), buttonStyles);
|
|
25206
25210
|
var StyledLink = styled.a(_templateObject4$5(), buttonStyles);
|
|
25207
25211
|
var MenuItem = function(_param) {
|
|
25208
|
-
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$
|
|
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, [
|
|
25209
25213
|
"label",
|
|
25210
25214
|
"href",
|
|
25211
25215
|
"selected",
|
|
@@ -27109,9 +27113,9 @@ function _object_spread_props$c(target, source) {
|
|
|
27109
27113
|
}
|
|
27110
27114
|
return target;
|
|
27111
27115
|
}
|
|
27112
|
-
function _object_without_properties$
|
|
27116
|
+
function _object_without_properties$9(source, excluded) {
|
|
27113
27117
|
if (source == null) return {};
|
|
27114
|
-
var target = _object_without_properties_loose$
|
|
27118
|
+
var target = _object_without_properties_loose$9(source, excluded);
|
|
27115
27119
|
var key, i;
|
|
27116
27120
|
if (Object.getOwnPropertySymbols) {
|
|
27117
27121
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
@@ -27124,7 +27128,7 @@ function _object_without_properties$8(source, excluded) {
|
|
|
27124
27128
|
}
|
|
27125
27129
|
return target;
|
|
27126
27130
|
}
|
|
27127
|
-
function _object_without_properties_loose$
|
|
27131
|
+
function _object_without_properties_loose$9(source, excluded) {
|
|
27128
27132
|
if (source == null) return {};
|
|
27129
27133
|
var target = {};
|
|
27130
27134
|
var sourceKeys = Object.keys(source);
|
|
@@ -27145,7 +27149,7 @@ function _object_without_properties_loose$8(source, excluded) {
|
|
|
27145
27149
|
* @param parameters.getSlotProps - A function that returns the props to be passed to the slot component.
|
|
27146
27150
|
*/ function useSlotProps(parameters) {
|
|
27147
27151
|
var _parameters_additionalProps;
|
|
27148
|
-
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$
|
|
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, [
|
|
27149
27153
|
"elementType",
|
|
27150
27154
|
"externalSlotProps",
|
|
27151
27155
|
"ownerState",
|
|
@@ -27250,9 +27254,9 @@ function _object_spread_props$b(target, source) {
|
|
|
27250
27254
|
}
|
|
27251
27255
|
return target;
|
|
27252
27256
|
}
|
|
27253
|
-
function _object_without_properties$
|
|
27257
|
+
function _object_without_properties$8(source, excluded) {
|
|
27254
27258
|
if (source == null) return {};
|
|
27255
|
-
var target = _object_without_properties_loose$
|
|
27259
|
+
var target = _object_without_properties_loose$8(source, excluded);
|
|
27256
27260
|
var key, i;
|
|
27257
27261
|
if (Object.getOwnPropertySymbols) {
|
|
27258
27262
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
@@ -27265,7 +27269,7 @@ function _object_without_properties$7(source, excluded) {
|
|
|
27265
27269
|
}
|
|
27266
27270
|
return target;
|
|
27267
27271
|
}
|
|
27268
|
-
function _object_without_properties_loose$
|
|
27272
|
+
function _object_without_properties_loose$8(source, excluded) {
|
|
27269
27273
|
if (source == null) return {};
|
|
27270
27274
|
var target = {};
|
|
27271
27275
|
var sourceKeys = Object.keys(source);
|
|
@@ -27279,7 +27283,7 @@ function _object_without_properties_loose$7(source, excluded) {
|
|
|
27279
27283
|
}
|
|
27280
27284
|
function prepareForSlot(Component) {
|
|
27281
27285
|
return /*#__PURE__*/ React.forwardRef(function Slot(props, ref) {
|
|
27282
|
-
props.ownerState; var other = _object_without_properties$
|
|
27286
|
+
props.ownerState; var other = _object_without_properties$8(props, [
|
|
27283
27287
|
"ownerState"
|
|
27284
27288
|
]);
|
|
27285
27289
|
return /*#__PURE__*/ React.createElement(Component, _object_spread_props$b(_object_spread$d({}, other), {
|
|
@@ -28418,9 +28422,9 @@ function _object_spread_props$9(target, source) {
|
|
|
28418
28422
|
}
|
|
28419
28423
|
return target;
|
|
28420
28424
|
}
|
|
28421
|
-
function _object_without_properties$
|
|
28425
|
+
function _object_without_properties$7(source, excluded) {
|
|
28422
28426
|
if (source == null) return {};
|
|
28423
|
-
var target = _object_without_properties_loose$
|
|
28427
|
+
var target = _object_without_properties_loose$7(source, excluded);
|
|
28424
28428
|
var key, i;
|
|
28425
28429
|
if (Object.getOwnPropertySymbols) {
|
|
28426
28430
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
@@ -28433,7 +28437,7 @@ function _object_without_properties$6(source, excluded) {
|
|
|
28433
28437
|
}
|
|
28434
28438
|
return target;
|
|
28435
28439
|
}
|
|
28436
|
-
function _object_without_properties_loose$
|
|
28440
|
+
function _object_without_properties_loose$7(source, excluded) {
|
|
28437
28441
|
if (source == null) return {};
|
|
28438
28442
|
var target = {};
|
|
28439
28443
|
var sourceKeys = Object.keys(source);
|
|
@@ -28479,7 +28483,7 @@ var useUtilityClasses = function(ownerState) {
|
|
|
28479
28483
|
*
|
|
28480
28484
|
* - [Modal API](https://mui.com/base-ui/react-modal/components-api/#modal)
|
|
28481
28485
|
*/ var Modal$1 = /*#__PURE__*/ React.forwardRef(function Modal(props, forwardedRef) {
|
|
28482
|
-
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$
|
|
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, [
|
|
28483
28487
|
"children",
|
|
28484
28488
|
"closeAfterTransition",
|
|
28485
28489
|
"container",
|
|
@@ -28901,9 +28905,9 @@ function _object_spread$9(target) {
|
|
|
28901
28905
|
}
|
|
28902
28906
|
return target;
|
|
28903
28907
|
}
|
|
28904
|
-
function _object_without_properties$
|
|
28908
|
+
function _object_without_properties$6(source, excluded) {
|
|
28905
28909
|
if (source == null) return {};
|
|
28906
|
-
var target = _object_without_properties_loose$
|
|
28910
|
+
var target = _object_without_properties_loose$6(source, excluded);
|
|
28907
28911
|
var key, i;
|
|
28908
28912
|
if (Object.getOwnPropertySymbols) {
|
|
28909
28913
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
@@ -28916,7 +28920,7 @@ function _object_without_properties$5(source, excluded) {
|
|
|
28916
28920
|
}
|
|
28917
28921
|
return target;
|
|
28918
28922
|
}
|
|
28919
|
-
function _object_without_properties_loose$
|
|
28923
|
+
function _object_without_properties_loose$6(source, excluded) {
|
|
28920
28924
|
if (source == null) return {};
|
|
28921
28925
|
var target = {};
|
|
28922
28926
|
var sourceKeys = Object.keys(source);
|
|
@@ -28948,7 +28952,7 @@ function _templateObject$a() {
|
|
|
28948
28952
|
return data;
|
|
28949
28953
|
}
|
|
28950
28954
|
var BaseBackdrop = /*#__PURE__*/ forwardRef(function(props, ref) {
|
|
28951
|
-
var open = props.open, className = props.className, other = _object_without_properties$
|
|
28955
|
+
var open = props.open, className = props.className, other = _object_without_properties$6(props, [
|
|
28952
28956
|
"open",
|
|
28953
28957
|
"className"
|
|
28954
28958
|
]);
|
|
@@ -29034,9 +29038,9 @@ function _object_spread_props$7(target, source) {
|
|
|
29034
29038
|
}
|
|
29035
29039
|
return target;
|
|
29036
29040
|
}
|
|
29037
|
-
function _object_without_properties$
|
|
29041
|
+
function _object_without_properties$5(source, excluded) {
|
|
29038
29042
|
if (source == null) return {};
|
|
29039
|
-
var target = _object_without_properties_loose$
|
|
29043
|
+
var target = _object_without_properties_loose$5(source, excluded);
|
|
29040
29044
|
var key, i;
|
|
29041
29045
|
if (Object.getOwnPropertySymbols) {
|
|
29042
29046
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
@@ -29049,7 +29053,7 @@ function _object_without_properties$4(source, excluded) {
|
|
|
29049
29053
|
}
|
|
29050
29054
|
return target;
|
|
29051
29055
|
}
|
|
29052
|
-
function _object_without_properties_loose$
|
|
29056
|
+
function _object_without_properties_loose$5(source, excluded) {
|
|
29053
29057
|
if (source == null) return {};
|
|
29054
29058
|
var target = {};
|
|
29055
29059
|
var sourceKeys = Object.keys(source);
|
|
@@ -29171,14 +29175,15 @@ var Modal = function(param) {
|
|
|
29171
29175
|
}),
|
|
29172
29176
|
Boolean(actions === null || actions === void 0 ? void 0 : actions.length) && /*#__PURE__*/ jsx(ModalFooter, {
|
|
29173
29177
|
children: actions === null || actions === void 0 ? void 0 : actions.map(function(_param) {
|
|
29174
|
-
var label = _param.label, rest = _object_without_properties$
|
|
29178
|
+
var id = _param.id, label = _param.label, rest = _object_without_properties$5(_param, [
|
|
29179
|
+
"id",
|
|
29175
29180
|
"label"
|
|
29176
29181
|
]);
|
|
29177
29182
|
return /*#__PURE__*/ jsx(Button, _object_spread_props$7(_object_spread$8({
|
|
29178
29183
|
"data-testid": "".concat(testId, "-").concat(formatForId(label), "-button")
|
|
29179
29184
|
}, rest), {
|
|
29180
29185
|
children: label
|
|
29181
|
-
}));
|
|
29186
|
+
}), id !== null && id !== void 0 ? id : formatForId(label));
|
|
29182
29187
|
})
|
|
29183
29188
|
}),
|
|
29184
29189
|
loading && /*#__PURE__*/ jsx(LoadingOverlay, {})
|
|
@@ -29372,9 +29377,9 @@ function _object_spread$7(target) {
|
|
|
29372
29377
|
}
|
|
29373
29378
|
return target;
|
|
29374
29379
|
}
|
|
29375
|
-
function _object_without_properties$
|
|
29380
|
+
function _object_without_properties$4(source, excluded) {
|
|
29376
29381
|
if (source == null) return {};
|
|
29377
|
-
var target = _object_without_properties_loose$
|
|
29382
|
+
var target = _object_without_properties_loose$4(source, excluded);
|
|
29378
29383
|
var key, i;
|
|
29379
29384
|
if (Object.getOwnPropertySymbols) {
|
|
29380
29385
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
@@ -29387,7 +29392,7 @@ function _object_without_properties$3(source, excluded) {
|
|
|
29387
29392
|
}
|
|
29388
29393
|
return target;
|
|
29389
29394
|
}
|
|
29390
|
-
function _object_without_properties_loose$
|
|
29395
|
+
function _object_without_properties_loose$4(source, excluded) {
|
|
29391
29396
|
if (source == null) return {};
|
|
29392
29397
|
var target = {};
|
|
29393
29398
|
var sourceKeys = Object.keys(source);
|
|
@@ -29420,7 +29425,7 @@ function _templateObject$6() {
|
|
|
29420
29425
|
}
|
|
29421
29426
|
var RadioButtonContainer = styled.div(_templateObject$6());
|
|
29422
29427
|
var RadioButton = function(_param) {
|
|
29423
|
-
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$
|
|
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, [
|
|
29424
29429
|
"id",
|
|
29425
29430
|
"name",
|
|
29426
29431
|
"label",
|
|
@@ -29605,9 +29610,9 @@ function _object_spread_props$5(target, source) {
|
|
|
29605
29610
|
}
|
|
29606
29611
|
return target;
|
|
29607
29612
|
}
|
|
29608
|
-
function _object_without_properties$
|
|
29613
|
+
function _object_without_properties$3(source, excluded) {
|
|
29609
29614
|
if (source == null) return {};
|
|
29610
|
-
var target = _object_without_properties_loose$
|
|
29615
|
+
var target = _object_without_properties_loose$3(source, excluded);
|
|
29611
29616
|
var key, i;
|
|
29612
29617
|
if (Object.getOwnPropertySymbols) {
|
|
29613
29618
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
@@ -29620,7 +29625,7 @@ function _object_without_properties$2(source, excluded) {
|
|
|
29620
29625
|
}
|
|
29621
29626
|
return target;
|
|
29622
29627
|
}
|
|
29623
|
-
function _object_without_properties_loose$
|
|
29628
|
+
function _object_without_properties_loose$3(source, excluded) {
|
|
29624
29629
|
if (source == null) return {};
|
|
29625
29630
|
var target = {};
|
|
29626
29631
|
var sourceKeys = Object.keys(source);
|
|
@@ -29688,7 +29693,7 @@ var IconWrapper = styled(IconWrapper$3)(_templateObject1$5(), neutral200, neutra
|
|
|
29688
29693
|
var StyledInput = styled(BaseInput$1)(_templateObject2$5());
|
|
29689
29694
|
var GoButton = styled(Button)(_templateObject3$4(), spacing(1), spacing(1));
|
|
29690
29695
|
var SearchBar = function(_param) {
|
|
29691
|
-
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$
|
|
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, [
|
|
29692
29697
|
"placeholder",
|
|
29693
29698
|
"error",
|
|
29694
29699
|
"onClear",
|
|
@@ -29900,9 +29905,9 @@ function _object_spread_props$4(target, source) {
|
|
|
29900
29905
|
}
|
|
29901
29906
|
return target;
|
|
29902
29907
|
}
|
|
29903
|
-
function _object_without_properties$
|
|
29908
|
+
function _object_without_properties$2(source, excluded) {
|
|
29904
29909
|
if (source == null) return {};
|
|
29905
|
-
var target = _object_without_properties_loose$
|
|
29910
|
+
var target = _object_without_properties_loose$2(source, excluded);
|
|
29906
29911
|
var key, i;
|
|
29907
29912
|
if (Object.getOwnPropertySymbols) {
|
|
29908
29913
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
@@ -29915,7 +29920,7 @@ function _object_without_properties$1(source, excluded) {
|
|
|
29915
29920
|
}
|
|
29916
29921
|
return target;
|
|
29917
29922
|
}
|
|
29918
|
-
function _object_without_properties_loose$
|
|
29923
|
+
function _object_without_properties_loose$2(source, excluded) {
|
|
29919
29924
|
if (source == null) return {};
|
|
29920
29925
|
var target = {};
|
|
29921
29926
|
var sourceKeys = Object.keys(source);
|
|
@@ -31470,7 +31475,7 @@ var ColumnSizing = (_obj = {
|
|
|
31470
31475
|
}, getMemoOptions(table.options, 'debugColumns', 'getAfter'));
|
|
31471
31476
|
column.resetSize = function() {
|
|
31472
31477
|
table.setColumnSizing(function(_ref2) {
|
|
31473
|
-
var _column_id = column.id; _ref2[_column_id]; var rest = _object_without_properties$
|
|
31478
|
+
var _column_id = column.id; _ref2[_column_id]; var rest = _object_without_properties$2(_ref2, [
|
|
31474
31479
|
_column_id
|
|
31475
31480
|
].map(_to_property_key));
|
|
31476
31481
|
return rest;
|
|
@@ -32000,7 +32005,7 @@ var RowExpanding = _define_property$4({
|
|
|
32000
32005
|
return _object_spread_props$4(_object_spread$4({}, oldExpanded), _define_property$4({}, row.id, true));
|
|
32001
32006
|
}
|
|
32002
32007
|
if (exists && !expanded) {
|
|
32003
|
-
var _row_id = row.id; oldExpanded[_row_id]; var rest = _object_without_properties$
|
|
32008
|
+
var _row_id = row.id; oldExpanded[_row_id]; var rest = _object_without_properties$2(oldExpanded, [
|
|
32004
32009
|
_row_id
|
|
32005
32010
|
].map(_to_property_key));
|
|
32006
32011
|
return rest;
|
|
@@ -34179,6 +34184,33 @@ function _object_spread_props$2(target, source) {
|
|
|
34179
34184
|
}
|
|
34180
34185
|
return target;
|
|
34181
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
|
+
}
|
|
34182
34214
|
function _sliced_to_array$1(arr, i) {
|
|
34183
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();
|
|
34184
34216
|
}
|
|
@@ -34277,13 +34309,29 @@ var Table = function(param) {
|
|
|
34277
34309
|
}
|
|
34278
34310
|
var tableColumns = useMemo(function() {
|
|
34279
34311
|
return columns.map(function(col) {
|
|
34280
|
-
|
|
34281
|
-
|
|
34282
|
-
|
|
34283
|
-
|
|
34284
|
-
|
|
34285
|
-
|
|
34286
|
-
|
|
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
|
+
});
|
|
34287
34335
|
});
|
|
34288
34336
|
}, [
|
|
34289
34337
|
columns
|
|
@@ -34326,13 +34374,9 @@ var Table = function(param) {
|
|
|
34326
34374
|
]);
|
|
34327
34375
|
var handleContextMenu = useCallback(function(e, row) {
|
|
34328
34376
|
e.stopPropagation();
|
|
34377
|
+
ctxMenuAnchorRef.current = e.currentTarget;
|
|
34329
34378
|
setCtxMenuRow(function(prev) {
|
|
34330
|
-
|
|
34331
|
-
ctxMenuAnchorRef.current = null;
|
|
34332
|
-
return null;
|
|
34333
|
-
}
|
|
34334
|
-
ctxMenuAnchorRef.current = e.currentTarget;
|
|
34335
|
-
return row.original;
|
|
34379
|
+
return prev === row.original ? null : row.original;
|
|
34336
34380
|
});
|
|
34337
34381
|
}, []);
|
|
34338
34382
|
var contextColumn = useMemo(function() {
|
|
@@ -34345,6 +34389,12 @@ var Table = function(param) {
|
|
|
34345
34389
|
cell: function(param) {
|
|
34346
34390
|
var row = param.row;
|
|
34347
34391
|
return /*#__PURE__*/ jsx(ContextMenuButton, {
|
|
34392
|
+
ref: function(el) {
|
|
34393
|
+
// Keep anchor ref in sync when this row's menu is open
|
|
34394
|
+
if (ctxMenuRow === row.original && el) {
|
|
34395
|
+
ctxMenuAnchorRef.current = el;
|
|
34396
|
+
}
|
|
34397
|
+
},
|
|
34348
34398
|
onClick: function(e) {
|
|
34349
34399
|
e.stopPropagation();
|
|
34350
34400
|
handleContextMenu(e, row);
|
|
@@ -34359,7 +34409,8 @@ var Table = function(param) {
|
|
|
34359
34409
|
};
|
|
34360
34410
|
}, [
|
|
34361
34411
|
handleContextMenu,
|
|
34362
|
-
testId
|
|
34412
|
+
testId,
|
|
34413
|
+
ctxMenuRow
|
|
34363
34414
|
]);
|
|
34364
34415
|
var allColumns = useMemo(function() {
|
|
34365
34416
|
var cols = _to_consumable_array(tableColumns);
|
package/package.json
CHANGED
package/src/lib/Modal/Modal.d.ts
CHANGED
package/src/lib/Table/Table.d.ts
CHANGED