@paubox/ui 3.3.0 → 3.5.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 +167 -93
- package/package.json +1 -1
- package/src/lib/Pagination/Pagination.d.ts +3 -1
- package/src/lib/Table/Table.d.ts +2 -1
package/index.esm.js
CHANGED
|
@@ -1981,7 +1981,7 @@ function _templateObject3$h() {
|
|
|
1981
1981
|
};
|
|
1982
1982
|
return data;
|
|
1983
1983
|
}
|
|
1984
|
-
function _templateObject4$
|
|
1984
|
+
function _templateObject4$f() {
|
|
1985
1985
|
var data = _tagged_template_literal$v([
|
|
1986
1986
|
"\n ",
|
|
1987
1987
|
"\n font-size: ",
|
|
@@ -1989,12 +1989,12 @@ function _templateObject4$e() {
|
|
|
1989
1989
|
"rem;\n letter-spacing: ",
|
|
1990
1990
|
"px;\n font-weight: 600;\n"
|
|
1991
1991
|
]);
|
|
1992
|
-
_templateObject4$
|
|
1992
|
+
_templateObject4$f = function _templateObject() {
|
|
1993
1993
|
return data;
|
|
1994
1994
|
};
|
|
1995
1995
|
return data;
|
|
1996
1996
|
}
|
|
1997
|
-
function _templateObject5$
|
|
1997
|
+
function _templateObject5$9() {
|
|
1998
1998
|
var data = _tagged_template_literal$v([
|
|
1999
1999
|
"\n ",
|
|
2000
2000
|
"\n font-size: ",
|
|
@@ -2002,7 +2002,7 @@ function _templateObject5$8() {
|
|
|
2002
2002
|
"rem;\n letter-spacing: ",
|
|
2003
2003
|
"px;\n font-weight: 400;\n"
|
|
2004
2004
|
]);
|
|
2005
|
-
_templateObject5$
|
|
2005
|
+
_templateObject5$9 = function _templateObject() {
|
|
2006
2006
|
return data;
|
|
2007
2007
|
};
|
|
2008
2008
|
return data;
|
|
@@ -2272,8 +2272,8 @@ var commonStyles = css(_templateObject$v());
|
|
|
2272
2272
|
var $headline100Regular = css(_templateObject1$l(), commonStyles, headline100FontSize / BASE_FONT_SIZE, headline100LineHeight / BASE_FONT_SIZE, headline100LetterSpacing);
|
|
2273
2273
|
var $headline100Semibold = css(_templateObject2$l(), commonStyles, headline100FontSize / BASE_FONT_SIZE, headline100LineHeight / BASE_FONT_SIZE, headline100LetterSpacing);
|
|
2274
2274
|
var $headline200Regular = css(_templateObject3$h(), commonStyles, headline200FontSize / BASE_FONT_SIZE, headline200LineHeight / BASE_FONT_SIZE, headline200LetterSpacing);
|
|
2275
|
-
var $headline200Semibold = css(_templateObject4$
|
|
2276
|
-
var $headline300Regular = css(_templateObject5$
|
|
2275
|
+
var $headline200Semibold = css(_templateObject4$f(), commonStyles, headline200FontSize / BASE_FONT_SIZE, headline200LineHeight / BASE_FONT_SIZE, headline200LetterSpacing);
|
|
2276
|
+
var $headline300Regular = css(_templateObject5$9(), commonStyles, headline300FontSize / BASE_FONT_SIZE, headline300LineHeight / BASE_FONT_SIZE, headline300LetterSpacing);
|
|
2277
2277
|
var $headline300Semibold = css(_templateObject6$4(), commonStyles, headline300FontSize / BASE_FONT_SIZE, headline300LineHeight / BASE_FONT_SIZE, headline300LetterSpacing);
|
|
2278
2278
|
// PARAGRAPH
|
|
2279
2279
|
var $paragraph100Regular = css(_templateObject7$3(), commonStyles, paragraph100FontSize / BASE_FONT_SIZE, paragraph100LineHeight / BASE_FONT_SIZE, paragraph100LetterSpacing);
|
|
@@ -2452,22 +2452,22 @@ function _templateObject3$g() {
|
|
|
2452
2452
|
};
|
|
2453
2453
|
return data;
|
|
2454
2454
|
}
|
|
2455
|
-
function _templateObject4$
|
|
2455
|
+
function _templateObject4$e() {
|
|
2456
2456
|
var data = _tagged_template_literal$u([
|
|
2457
2457
|
"\n display: flex;\n flex-direction: column;\n gap: 0.25rem;\n overflow: hidden;\n text-overflow: ellipsis;\n max-width: 100%;\n"
|
|
2458
2458
|
]);
|
|
2459
|
-
_templateObject4$
|
|
2459
|
+
_templateObject4$e = function _templateObject() {
|
|
2460
2460
|
return data;
|
|
2461
2461
|
};
|
|
2462
2462
|
return data;
|
|
2463
2463
|
}
|
|
2464
|
-
function _templateObject5$
|
|
2464
|
+
function _templateObject5$8() {
|
|
2465
2465
|
var data = _tagged_template_literal$u([
|
|
2466
2466
|
"\n background-color: transparent;\n border: none;\n color: ",
|
|
2467
2467
|
";\n cursor: pointer;\n padding: 0.25rem;\n font-size: 0.75rem;\n margin-left: ",
|
|
2468
2468
|
";\n"
|
|
2469
2469
|
]);
|
|
2470
|
-
_templateObject5$
|
|
2470
|
+
_templateObject5$8 = function _templateObject() {
|
|
2471
2471
|
return data;
|
|
2472
2472
|
};
|
|
2473
2473
|
return data;
|
|
@@ -2488,8 +2488,8 @@ var StyledIcon = styled.div(_templateObject3$g(), function(param) {
|
|
|
2488
2488
|
var type = param.type;
|
|
2489
2489
|
return type === 'info' ? primary700$1 : type === 'error' ? danger700$1 : type === 'success' ? success700$1 : warning700$1;
|
|
2490
2490
|
});
|
|
2491
|
-
var TextWrapper = styled.div(_templateObject4$
|
|
2492
|
-
var TruncaterButton = styled.button(_templateObject5$
|
|
2491
|
+
var TextWrapper = styled.div(_templateObject4$e());
|
|
2492
|
+
var TruncaterButton = styled.button(_templateObject5$8(), primary700$1, function(param) {
|
|
2493
2493
|
var isExpanded = param.isExpanded;
|
|
2494
2494
|
return !isExpanded ? '0' : '0.25rem';
|
|
2495
2495
|
});
|
|
@@ -22851,6 +22851,10 @@ var DatePicker = function(_param) {
|
|
|
22851
22851
|
style: {
|
|
22852
22852
|
width: rangeSelect ? 200 : 107
|
|
22853
22853
|
},
|
|
22854
|
+
// Analytics autocapture hooks (@paubox/tracking). The trigger is a native
|
|
22855
|
+
// button; tag it so the captured click is identifiable as a date picker.
|
|
22856
|
+
"data-pb-component": "DatePicker",
|
|
22857
|
+
"data-pb-name": rangeSelect ? 'date_range' : 'date',
|
|
22854
22858
|
children: [
|
|
22855
22859
|
dateString,
|
|
22856
22860
|
/*#__PURE__*/ jsx("div", {
|
|
@@ -23427,21 +23431,21 @@ function _templateObject3$e() {
|
|
|
23427
23431
|
};
|
|
23428
23432
|
return data;
|
|
23429
23433
|
}
|
|
23430
|
-
function _templateObject4$
|
|
23434
|
+
function _templateObject4$d() {
|
|
23431
23435
|
var data = _tagged_template_literal$k([
|
|
23432
23436
|
"\n width: 100%;\n border-radius: 0.5rem;\n border: 4px dashed #e5e7eb;\n background-color: #f9fafb;\n padding: 2rem;\n\n &:hover {\n cursor: pointer;\n &:not(:disabled) {\n background-color: ",
|
|
23433
23437
|
";\n }\n &:disabled {\n cursor: not-allowed;\n }\n }\n"
|
|
23434
23438
|
]);
|
|
23435
|
-
_templateObject4$
|
|
23439
|
+
_templateObject4$d = function _templateObject() {
|
|
23436
23440
|
return data;
|
|
23437
23441
|
};
|
|
23438
23442
|
return data;
|
|
23439
23443
|
}
|
|
23440
|
-
function _templateObject5$
|
|
23444
|
+
function _templateObject5$7() {
|
|
23441
23445
|
var data = _tagged_template_literal$k([
|
|
23442
23446
|
"\n display: flex;\n flex-direction: row;\n gap: 0.5rem;\n"
|
|
23443
23447
|
]);
|
|
23444
|
-
_templateObject5$
|
|
23448
|
+
_templateObject5$7 = function _templateObject() {
|
|
23445
23449
|
return data;
|
|
23446
23450
|
};
|
|
23447
23451
|
return data;
|
|
@@ -23465,8 +23469,8 @@ var FilterGroup = styled.div(_templateObject1$h(), function(param) {
|
|
|
23465
23469
|
});
|
|
23466
23470
|
var CloseButton$1 = styled.button(_templateObject2$h());
|
|
23467
23471
|
var FilterRowsContainer = styled.div(_templateObject3$e());
|
|
23468
|
-
var OrButton = styled.button(_templateObject4$
|
|
23469
|
-
var ButtonGroup = styled.div(_templateObject5$
|
|
23472
|
+
var OrButton = styled.button(_templateObject4$d(), neutral100$1);
|
|
23473
|
+
var ButtonGroup = styled.div(_templateObject5$7());
|
|
23470
23474
|
var AndButtonContainer = styled.div(_templateObject6$3());
|
|
23471
23475
|
var FilterForm = function(param) {
|
|
23472
23476
|
var values = param.values, fieldOptions = param.fieldOptions, operatorOptions = param.operatorOptions, onSubmit = param.onSubmit, onClear = param.onClear, onChange = param.onChange, errors = param.errors, touched = param.touched;
|
|
@@ -23835,14 +23839,14 @@ function _templateObject3$d() {
|
|
|
23835
23839
|
};
|
|
23836
23840
|
return data;
|
|
23837
23841
|
}
|
|
23838
|
-
function _templateObject4$
|
|
23842
|
+
function _templateObject4$c() {
|
|
23839
23843
|
var data = _tagged_template_literal$j([
|
|
23840
23844
|
"\n ",
|
|
23841
23845
|
"\n background: ",
|
|
23842
23846
|
";\n\n html.dark & {\n background: ",
|
|
23843
23847
|
";\n }\n"
|
|
23844
23848
|
]);
|
|
23845
|
-
_templateObject4$
|
|
23849
|
+
_templateObject4$c = function _templateObject() {
|
|
23846
23850
|
return data;
|
|
23847
23851
|
};
|
|
23848
23852
|
return data;
|
|
@@ -23857,7 +23861,7 @@ var StyledItem = styled.button(_templateObject3$d(), buttonStyles, function(para
|
|
|
23857
23861
|
var selected = param.selected;
|
|
23858
23862
|
return selected ? primary200 : 'transparent';
|
|
23859
23863
|
});
|
|
23860
|
-
var StyledLink = styled.a(_templateObject4$
|
|
23864
|
+
var StyledLink = styled.a(_templateObject4$c(), buttonStyles, function(param) {
|
|
23861
23865
|
var selected = param.selected;
|
|
23862
23866
|
return selected ? primary200$1 : 'transparent';
|
|
23863
23867
|
}, function(param) {
|
|
@@ -24108,23 +24112,23 @@ function _templateObject3$c() {
|
|
|
24108
24112
|
};
|
|
24109
24113
|
return data;
|
|
24110
24114
|
}
|
|
24111
|
-
function _templateObject4$
|
|
24115
|
+
function _templateObject4$b() {
|
|
24112
24116
|
var data = _tagged_template_literal$i([
|
|
24113
24117
|
"\n padding: 0.5rem 0.75rem;\n color: ",
|
|
24114
24118
|
";\n ",
|
|
24115
24119
|
"\n\n html.dark & {\n color: ",
|
|
24116
24120
|
";\n }\n"
|
|
24117
24121
|
]);
|
|
24118
|
-
_templateObject4$
|
|
24122
|
+
_templateObject4$b = function _templateObject() {
|
|
24119
24123
|
return data;
|
|
24120
24124
|
};
|
|
24121
24125
|
return data;
|
|
24122
24126
|
}
|
|
24123
|
-
function _templateObject5$
|
|
24127
|
+
function _templateObject5$6() {
|
|
24124
24128
|
var data = _tagged_template_literal$i([
|
|
24125
24129
|
'\n /* role="option" wrapper — visual state is delegated to inner MenuItem */\n'
|
|
24126
24130
|
]);
|
|
24127
|
-
_templateObject5$
|
|
24131
|
+
_templateObject5$6 = function _templateObject() {
|
|
24128
24132
|
return data;
|
|
24129
24133
|
};
|
|
24130
24134
|
return data;
|
|
@@ -24154,8 +24158,8 @@ var BaseInput$2 = styled.input(_templateObject1$f(), textPrimary$1, neutral500$1
|
|
|
24154
24158
|
});
|
|
24155
24159
|
var Chip$2 = styled.button(_templateObject2$f(), neutral100$1, $label200Medium, primary600$1, surfaceRaised, textPrimaryWhite, primary500);
|
|
24156
24160
|
var RightIconWrapper = styled.div(_templateObject3$c(), neutral600$1, surfaceMuted);
|
|
24157
|
-
var EmptyState = styled.div(_templateObject4$
|
|
24158
|
-
var OptionWrapper = styled.div(_templateObject5$
|
|
24161
|
+
var EmptyState = styled.div(_templateObject4$b(), neutral500$1, $paragraph200Regular, surfaceMuted);
|
|
24162
|
+
var OptionWrapper = styled.div(_templateObject5$6());
|
|
24159
24163
|
/**
|
|
24160
24164
|
* AutoComplete: single-line input that filters a closed list of options as
|
|
24161
24165
|
* the user types. Selected items render as removable chips. Multi-select.
|
|
@@ -24376,6 +24380,10 @@ var OptionWrapper = styled.div(_templateObject5$5());
|
|
|
24376
24380
|
"aria-activedescendant": open ? activeOptionId : undefined,
|
|
24377
24381
|
"aria-haspopup": "listbox",
|
|
24378
24382
|
"aria-label": ariaLabel,
|
|
24383
|
+
// Analytics autocapture hooks (@paubox/tracking). The input is native, so
|
|
24384
|
+
// field_interaction works out of the box; tag the component for clarity.
|
|
24385
|
+
"data-pb-component": "AutoComplete",
|
|
24386
|
+
"data-pb-name": ariaLabel || inputProps.name || undefined,
|
|
24379
24387
|
onChange: handleInputChange,
|
|
24380
24388
|
onFocus: function() {
|
|
24381
24389
|
return setIsFocused(true);
|
|
@@ -24870,24 +24878,24 @@ function _templateObject3$b() {
|
|
|
24870
24878
|
};
|
|
24871
24879
|
return data;
|
|
24872
24880
|
}
|
|
24873
|
-
function _templateObject4$
|
|
24881
|
+
function _templateObject4$a() {
|
|
24874
24882
|
var data = _tagged_template_literal$g([
|
|
24875
24883
|
"\n position: absolute;\n display: flex;\n gap: 0.25rem;\n width: min-content;\n max-width: 85%;\n height: auto;\n overflow-x: auto;\n\n /* Always show scrollbar when overflowing */\n &::-webkit-scrollbar {\n height: 4px;\n display: block;\n }\n\n &::-webkit-scrollbar-track {\n background: ",
|
|
24876
24884
|
";\n border-radius: 2px;\n display: block;\n width: 95%;\n }\n\n &::-webkit-scrollbar-thumb {\n background: ",
|
|
24877
24885
|
";\n border-radius: 2px;\n display: block;\n }\n\n padding: ",
|
|
24878
24886
|
";\n"
|
|
24879
24887
|
]);
|
|
24880
|
-
_templateObject4$
|
|
24888
|
+
_templateObject4$a = function _templateObject() {
|
|
24881
24889
|
return data;
|
|
24882
24890
|
};
|
|
24883
24891
|
return data;
|
|
24884
24892
|
}
|
|
24885
|
-
function _templateObject5$
|
|
24893
|
+
function _templateObject5$5() {
|
|
24886
24894
|
var data = _tagged_template_literal$g([
|
|
24887
24895
|
"\n position: absolute;\n right: 0rem;\n width: 2rem;\n background-color: inherit;\n display: flex;\n align-items: center;\n justify-content: center;\n z-index: 0;\n border: none;\n cursor: pointer;\n z-index: 0;\n transition: all 150ms ease-in-out;\n transform: ",
|
|
24888
24896
|
";\n"
|
|
24889
24897
|
]);
|
|
24890
|
-
_templateObject5$
|
|
24898
|
+
_templateObject5$5 = function _templateObject() {
|
|
24891
24899
|
return data;
|
|
24892
24900
|
};
|
|
24893
24901
|
return data;
|
|
@@ -24953,7 +24961,7 @@ var Chip$1 = styled.button(_templateObject3$b(), function(param) {
|
|
|
24953
24961
|
var sz = param.sz;
|
|
24954
24962
|
return sz === 'lg' ? $label100Medium : $label200Medium;
|
|
24955
24963
|
});
|
|
24956
|
-
var ChipWrapper$1 = styled.div(_templateObject4$
|
|
24964
|
+
var ChipWrapper$1 = styled.div(_templateObject4$a(), neutral100$1, neutral300$1, function(param) {
|
|
24957
24965
|
var sz = param.sz;
|
|
24958
24966
|
return sz === 'lg' ? '0.5rem 0.563rem' : '0.375rem 0.563rem';
|
|
24959
24967
|
});
|
|
@@ -24973,7 +24981,7 @@ var MultiSelectChip = function(option) {
|
|
|
24973
24981
|
});
|
|
24974
24982
|
};
|
|
24975
24983
|
// Style for the Icons
|
|
24976
|
-
var IconWrapper$2 = styled.div(_templateObject5$
|
|
24984
|
+
var IconWrapper$2 = styled.div(_templateObject5$5(), function(param) {
|
|
24977
24985
|
var open = param.open;
|
|
24978
24986
|
return open ? 'rotate(180deg)' : 'rotate(0deg)';
|
|
24979
24987
|
});
|
|
@@ -25017,6 +25025,10 @@ var MultiSelect = function(_param) {
|
|
|
25017
25025
|
return !prev;
|
|
25018
25026
|
});
|
|
25019
25027
|
},
|
|
25028
|
+
// Analytics autocapture hooks (@paubox/tracking). The interactive node is
|
|
25029
|
+
// this wrapper div (the inner <select> is inert), so identify it here.
|
|
25030
|
+
"data-pb-component": "MultiSelect",
|
|
25031
|
+
"data-pb-name": props['aria-label'] || props.name || label || undefined,
|
|
25020
25032
|
children: [
|
|
25021
25033
|
/*#__PURE__*/ jsxs(InputWrapper$2, {
|
|
25022
25034
|
children: [
|
|
@@ -25281,12 +25293,12 @@ function _templateObject3$a() {
|
|
|
25281
25293
|
};
|
|
25282
25294
|
return data;
|
|
25283
25295
|
}
|
|
25284
|
-
function _templateObject4$
|
|
25296
|
+
function _templateObject4$9() {
|
|
25285
25297
|
var data = _tagged_template_literal$f([
|
|
25286
25298
|
"\n position: absolute;\n right: 0.5rem;\n opacity: 0.8;\n\n ",
|
|
25287
25299
|
"\n"
|
|
25288
25300
|
]);
|
|
25289
|
-
_templateObject4$
|
|
25301
|
+
_templateObject4$9 = function _templateObject() {
|
|
25290
25302
|
return data;
|
|
25291
25303
|
};
|
|
25292
25304
|
return data;
|
|
@@ -25308,7 +25320,7 @@ var Chip = styled.button(_templateObject2$c(), function(param) {
|
|
|
25308
25320
|
return secondary ? neutral300$1 : neutral100$1;
|
|
25309
25321
|
}, $label200Medium);
|
|
25310
25322
|
var ChipWrapper = styled.div(_templateObject3$a());
|
|
25311
|
-
var ChipCounter = styled.p(_templateObject4$
|
|
25323
|
+
var ChipCounter = styled.p(_templateObject4$9(), function(param) {
|
|
25312
25324
|
var sz = param.sz, type = param.type;
|
|
25313
25325
|
return type === 'primary' ? sz === 'lg' ? $paragraph100Regular : $paragraph200Regular : sz === 'lg' ? $paragraph100Semibold : $paragraph200Semibold;
|
|
25314
25326
|
});
|
|
@@ -25617,14 +25629,14 @@ function _templateObject3$9() {
|
|
|
25617
25629
|
};
|
|
25618
25630
|
return data;
|
|
25619
25631
|
}
|
|
25620
|
-
function _templateObject4$
|
|
25632
|
+
function _templateObject4$8() {
|
|
25621
25633
|
var data = _tagged_template_literal$e([
|
|
25622
25634
|
"\n ",
|
|
25623
25635
|
"\n color: ",
|
|
25624
25636
|
";\n\n html.dark & {\n color: ",
|
|
25625
25637
|
";\n }\n"
|
|
25626
25638
|
]);
|
|
25627
|
-
_templateObject4$
|
|
25639
|
+
_templateObject4$8 = function _templateObject() {
|
|
25628
25640
|
return data;
|
|
25629
25641
|
};
|
|
25630
25642
|
return data;
|
|
@@ -25677,7 +25689,7 @@ var IconWrapper$1 = styled.div(_templateObject3$9(), function(param) {
|
|
|
25677
25689
|
var open = param.open;
|
|
25678
25690
|
return open ? 'rotate(180deg)' : 'rotate(0deg)';
|
|
25679
25691
|
}, neutral200$1);
|
|
25680
|
-
var SelectOption = styled.option(_templateObject4$
|
|
25692
|
+
var SelectOption = styled.option(_templateObject4$8(), $paragraph100Semibold, textPrimary$1, neutral200$1);
|
|
25681
25693
|
var Select = function(_param) {
|
|
25682
25694
|
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, fullWidth = _param.fullWidth, props = _object_without_properties$b(_param, [
|
|
25683
25695
|
"sz",
|
|
@@ -25722,6 +25734,10 @@ var Select = function(_param) {
|
|
|
25722
25734
|
return !prev;
|
|
25723
25735
|
});
|
|
25724
25736
|
},
|
|
25737
|
+
// Analytics autocapture hooks (@paubox/tracking). The interactive node is
|
|
25738
|
+
// this wrapper div (the inner <select> is inert), so identify it here.
|
|
25739
|
+
"data-pb-component": "Select",
|
|
25740
|
+
"data-pb-name": props['aria-label'] || props.name || undefined,
|
|
25725
25741
|
children: [
|
|
25726
25742
|
/*#__PURE__*/ jsxs(InputWrapper, {
|
|
25727
25743
|
children: [
|
|
@@ -29835,12 +29851,12 @@ function _templateObject3$8() {
|
|
|
29835
29851
|
};
|
|
29836
29852
|
return data;
|
|
29837
29853
|
}
|
|
29838
|
-
function _templateObject4$
|
|
29854
|
+
function _templateObject4$7() {
|
|
29839
29855
|
var data = _tagged_template_literal$a([
|
|
29840
29856
|
"\n display: flex;\n justify-content: end;\n gap: ",
|
|
29841
29857
|
"px;\n"
|
|
29842
29858
|
]);
|
|
29843
|
-
_templateObject4$
|
|
29859
|
+
_templateObject4$7 = function _templateObject() {
|
|
29844
29860
|
return data;
|
|
29845
29861
|
};
|
|
29846
29862
|
return data;
|
|
@@ -29849,7 +29865,7 @@ var StyledModal = styled(Modal$1)(_templateObject$a());
|
|
|
29849
29865
|
var ModalContent = styled.div(_templateObject1$9(), spacing(2), spacing(1), spacing(3), elevation400, surfacePrimary);
|
|
29850
29866
|
var ModalHeader = styled.div(_templateObject2$9());
|
|
29851
29867
|
var ModalBody = styled.div(_templateObject3$8());
|
|
29852
|
-
var ModalFooter = styled.div(_templateObject4$
|
|
29868
|
+
var ModalFooter = styled.div(_templateObject4$7(), spacing(1));
|
|
29853
29869
|
var Modal = function(param) {
|
|
29854
29870
|
var open = param.open, onClose = param.onClose, loading = param.loading, title = param.title, header = param.header, children = param.children, actions = param.actions, style = param.style, _param_testId = param.testId, testId = _param_testId === void 0 ? 'modal' : _param_testId;
|
|
29855
29871
|
return /*#__PURE__*/ jsx(StyledModal, {
|
|
@@ -30000,20 +30016,42 @@ function _templateObject2$8() {
|
|
|
30000
30016
|
}
|
|
30001
30017
|
function _templateObject3$7() {
|
|
30002
30018
|
var data = _tagged_template_literal$9([
|
|
30003
|
-
"\n
|
|
30019
|
+
"\n display: flex;\n align-items: center;\n gap: ",
|
|
30020
|
+
"px;\n"
|
|
30004
30021
|
]);
|
|
30005
30022
|
_templateObject3$7 = function _templateObject() {
|
|
30006
30023
|
return data;
|
|
30007
30024
|
};
|
|
30008
30025
|
return data;
|
|
30009
30026
|
}
|
|
30027
|
+
function _templateObject4$6() {
|
|
30028
|
+
var data = _tagged_template_literal$9([
|
|
30029
|
+
"\n width: 45px;\n text-align: center;\n padding-top: 0.3rem;\n padding-bottom: 0.3rem;\n line-height: 1rem;\n"
|
|
30030
|
+
]);
|
|
30031
|
+
_templateObject4$6 = function _templateObject() {
|
|
30032
|
+
return data;
|
|
30033
|
+
};
|
|
30034
|
+
return data;
|
|
30035
|
+
}
|
|
30036
|
+
var DEFAULT_PAGE_SIZE_OPTIONS = [
|
|
30037
|
+
50,
|
|
30038
|
+
100,
|
|
30039
|
+
150
|
|
30040
|
+
];
|
|
30010
30041
|
var PaginationContainer = styled.div(_templateObject$9(), spacing(2));
|
|
30011
30042
|
var PageControls = styled.div(_templateObject1$8(), spacing(1));
|
|
30012
30043
|
var PageInputWrapper = styled.div(_templateObject2$8(), spacing(0.5));
|
|
30013
|
-
var
|
|
30044
|
+
var PageSizeWrapper = styled.div(_templateObject3$7(), spacing(1));
|
|
30045
|
+
var PageInput = styled(Input)(_templateObject4$6());
|
|
30014
30046
|
var Pagination = function(param) {
|
|
30015
|
-
var mode = param.mode, pageInfo = param.pageInfo, _param_isLoading = param.isLoading, isLoading = _param_isLoading === void 0 ? false : _param_isLoading
|
|
30047
|
+
var mode = param.mode, pageInfo = param.pageInfo, _param_isLoading = param.isLoading, isLoading = _param_isLoading === void 0 ? false : _param_isLoading, onPageSizeChange = param.onPageSizeChange, _param_pageSizeOptions = param.pageSizeOptions, pageSizeOptions = _param_pageSizeOptions === void 0 ? DEFAULT_PAGE_SIZE_OPTIONS : _param_pageSizeOptions, subText = param.subText, onPageChange = param.onPageChange, _param_testId = param.testId, testId = _param_testId === void 0 ? 'pagination' : _param_testId;
|
|
30016
30048
|
var _useState = _sliced_to_array$5(useState(''), 2), pageInputValue = _useState[0], setPageInputValue = _useState[1];
|
|
30049
|
+
var sizeOptions = pageSizeOptions.map(function(size) {
|
|
30050
|
+
return {
|
|
30051
|
+
value: String(size),
|
|
30052
|
+
label: String(size)
|
|
30053
|
+
};
|
|
30054
|
+
});
|
|
30017
30055
|
var formatNumber = function(num) {
|
|
30018
30056
|
return num.toLocaleString('en-US');
|
|
30019
30057
|
};
|
|
@@ -30060,6 +30098,26 @@ var Pagination = function(param) {
|
|
|
30060
30098
|
}),
|
|
30061
30099
|
/*#__PURE__*/ jsxs(PageControls, {
|
|
30062
30100
|
children: [
|
|
30101
|
+
/*#__PURE__*/ jsxs(PageSizeWrapper, {
|
|
30102
|
+
children: [
|
|
30103
|
+
/*#__PURE__*/ jsx(Typography, {
|
|
30104
|
+
variant: "paragraph300Regular",
|
|
30105
|
+
as: "span",
|
|
30106
|
+
children: "Rows per page"
|
|
30107
|
+
}),
|
|
30108
|
+
/*#__PURE__*/ jsx(Select, {
|
|
30109
|
+
"aria-label": "Rows per page",
|
|
30110
|
+
sz: "sm",
|
|
30111
|
+
value: String(pageInfo.pageSize),
|
|
30112
|
+
setValue: function(value) {
|
|
30113
|
+
return value && onPageSizeChange(Number(value));
|
|
30114
|
+
},
|
|
30115
|
+
options: sizeOptions,
|
|
30116
|
+
disabled: isLoading,
|
|
30117
|
+
"data-testid": "".concat(testId, "-page-size-select")
|
|
30118
|
+
})
|
|
30119
|
+
]
|
|
30120
|
+
}),
|
|
30063
30121
|
mode === 'page' && /*#__PURE__*/ jsxs(Fragment, {
|
|
30064
30122
|
children: [
|
|
30065
30123
|
/*#__PURE__*/ jsx(Typography, {
|
|
@@ -30879,11 +30937,11 @@ function _templateObject4$5() {
|
|
|
30879
30937
|
};
|
|
30880
30938
|
return data;
|
|
30881
30939
|
}
|
|
30882
|
-
function _templateObject5$
|
|
30940
|
+
function _templateObject5$4() {
|
|
30883
30941
|
var data = _tagged_template_literal$6([
|
|
30884
30942
|
"\n width: 100%;\n max-height: 420px;\n overflow-y: auto;\n"
|
|
30885
30943
|
]);
|
|
30886
|
-
_templateObject5$
|
|
30944
|
+
_templateObject5$4 = function _templateObject() {
|
|
30887
30945
|
return data;
|
|
30888
30946
|
};
|
|
30889
30947
|
return data;
|
|
@@ -30982,7 +31040,7 @@ var ClearButton = styled(IconButton)(_templateObject3$5(), spacing(1));
|
|
|
30982
31040
|
* Inner content of the dropdown. Popper provides the outer container
|
|
30983
31041
|
* (positioning, portal, elevation, dark-mode background). We just lay out
|
|
30984
31042
|
* the rows full-width inside it, with our own max-height + scroll behavior.
|
|
30985
|
-
*/ var DropdownContent = styled.div(_templateObject5$
|
|
31043
|
+
*/ var DropdownContent = styled.div(_templateObject5$4());
|
|
30986
31044
|
var DropdownRow = styled.button(_templateObject6$1(), spacing(1), spacing(1), spacing(2), function(param) {
|
|
30987
31045
|
var highlighted = param.highlighted;
|
|
30988
31046
|
return highlighted ? neutral100$1 : 'transparent';
|
|
@@ -32003,13 +32061,13 @@ function _templateObject4$4() {
|
|
|
32003
32061
|
};
|
|
32004
32062
|
return data;
|
|
32005
32063
|
}
|
|
32006
|
-
function _templateObject5$
|
|
32064
|
+
function _templateObject5$3() {
|
|
32007
32065
|
var data = _tagged_template_literal$5([
|
|
32008
32066
|
"\n color: ",
|
|
32009
32067
|
";\n font-size: 12px;\n line-height: 1.2;\n font-family: 'Roboto', sans-serif;\n\n html.dark & {\n color: ",
|
|
32010
32068
|
";\n }\n"
|
|
32011
32069
|
]);
|
|
32012
|
-
_templateObject5$
|
|
32070
|
+
_templateObject5$3 = function _templateObject() {
|
|
32013
32071
|
return data;
|
|
32014
32072
|
};
|
|
32015
32073
|
return data;
|
|
@@ -32039,7 +32097,7 @@ var IconBadge = styled.div(_templateObject1$5(), function(param) {
|
|
|
32039
32097
|
var TextBlock = styled.div(_templateObject2$5());
|
|
32040
32098
|
var Label = styled.div(_templateObject3$4(), neutral500$1, neutral400$1);
|
|
32041
32099
|
var Value = styled.div(_templateObject4$4(), neutral900$1, neutral100$1);
|
|
32042
|
-
var Caption = styled.div(_templateObject5$
|
|
32100
|
+
var Caption = styled.div(_templateObject5$3(), neutral400$1, neutral500$1);
|
|
32043
32101
|
var StatCard = function(param) {
|
|
32044
32102
|
var label = param.label, value = param.value, icon = param.icon, _param_variant = param.variant, variant = _param_variant === void 0 ? 'blue' : _param_variant, className = param.className, caption = param.caption;
|
|
32045
32103
|
var _variantMap_variant = variantMap[variant], bg = _variantMap_variant.bg, color = _variantMap_variant.color;
|
|
@@ -36135,12 +36193,12 @@ function _templateObject4$3() {
|
|
|
36135
36193
|
};
|
|
36136
36194
|
return data;
|
|
36137
36195
|
}
|
|
36138
|
-
function _templateObject5$
|
|
36196
|
+
function _templateObject5$2() {
|
|
36139
36197
|
var data = _tagged_template_literal$4([
|
|
36140
36198
|
"\n font-size: 9px;\n display: inline-flex;\n flex-direction: column;\n margin-left: ",
|
|
36141
36199
|
"px;\n align-items: center;\n\n & svg:first-of-type {\n margin-bottom: -1.5px;\n }\n & svg:last-of-type {\n margin-top: -1.5px;\n }\n"
|
|
36142
36200
|
]);
|
|
36143
|
-
_templateObject5$
|
|
36201
|
+
_templateObject5$2 = function _templateObject() {
|
|
36144
36202
|
return data;
|
|
36145
36203
|
};
|
|
36146
36204
|
return data;
|
|
@@ -36150,7 +36208,7 @@ var Th = styled(Typography)(_templateObject1$4(), spacing(1), neutral100$1, neut
|
|
|
36150
36208
|
var HeaderContent = styled.div(_templateObject2$4());
|
|
36151
36209
|
var ResizeHandleContainer = styled.div(_templateObject3$3());
|
|
36152
36210
|
var ResizeHandle = styled.div(_templateObject4$3(), neutral300$1);
|
|
36153
|
-
var SortIcon = styled.span(_templateObject5$
|
|
36211
|
+
var SortIcon = styled.span(_templateObject5$2(), spacing(1));
|
|
36154
36212
|
var TableHeader = function(param) {
|
|
36155
36213
|
var table = param.table, disableControls = param.disableControls, dense = param.dense, _param_testId = param.testId, testId = _param_testId === void 0 ? 'table' : _param_testId;
|
|
36156
36214
|
return /*#__PURE__*/ jsx(StyledHeader, {
|
|
@@ -36281,11 +36339,11 @@ function _templateObject4$2() {
|
|
|
36281
36339
|
};
|
|
36282
36340
|
return data;
|
|
36283
36341
|
}
|
|
36284
|
-
function _templateObject5() {
|
|
36342
|
+
function _templateObject5$1() {
|
|
36285
36343
|
var data = _tagged_template_literal$3([
|
|
36286
36344
|
"\n white-space: normal;\n "
|
|
36287
36345
|
]);
|
|
36288
|
-
_templateObject5 = function _templateObject() {
|
|
36346
|
+
_templateObject5$1 = function _templateObject() {
|
|
36289
36347
|
return data;
|
|
36290
36348
|
};
|
|
36291
36349
|
return data;
|
|
@@ -36339,7 +36397,7 @@ var Td = styled(Typography)(_templateObject7(), neutral300$1, function(props) {
|
|
|
36339
36397
|
}
|
|
36340
36398
|
if (overflow === 'clamp') {
|
|
36341
36399
|
// For clamp, don't apply display styles to td - content wrapper will handle it
|
|
36342
|
-
return css(_templateObject5());
|
|
36400
|
+
return css(_templateObject5$1());
|
|
36343
36401
|
}
|
|
36344
36402
|
// Default: truncate
|
|
36345
36403
|
return css(_templateObject6());
|
|
@@ -36601,8 +36659,8 @@ function _templateObject2$2() {
|
|
|
36601
36659
|
}
|
|
36602
36660
|
function _templateObject3$1() {
|
|
36603
36661
|
var data = _tagged_template_literal$2([
|
|
36604
|
-
"\n display: flex;\n flex-
|
|
36605
|
-
"px;\n
|
|
36662
|
+
"\n display: flex;\n justify-content: flex-end;\n align-items: center;\n padding: ",
|
|
36663
|
+
"px 0 0 0;\n\n @media (max-width: 768px) {\n justify-content: stretch;\n }\n"
|
|
36606
36664
|
]);
|
|
36607
36665
|
_templateObject3$1 = function _templateObject() {
|
|
36608
36666
|
return data;
|
|
@@ -36610,11 +36668,21 @@ function _templateObject3$1() {
|
|
|
36610
36668
|
return data;
|
|
36611
36669
|
}
|
|
36612
36670
|
function _templateObject4$1() {
|
|
36671
|
+
var data = _tagged_template_literal$2([
|
|
36672
|
+
"\n display: flex;\n flex-wrap: wrap;\n gap: ",
|
|
36673
|
+
"px;\n align-items: center;\n"
|
|
36674
|
+
]);
|
|
36675
|
+
_templateObject4$1 = function _templateObject() {
|
|
36676
|
+
return data;
|
|
36677
|
+
};
|
|
36678
|
+
return data;
|
|
36679
|
+
}
|
|
36680
|
+
function _templateObject5() {
|
|
36613
36681
|
var data = _tagged_template_literal$2([
|
|
36614
36682
|
"\n display: flex;\n align-items: center;\n justify-content: center;\n /* The kebab icon is 1em (20px here) — already equal to a cell's text\n line-height (paragraph200Regular = 20px). The BaseButton's border (2px) and\n vertical padding (8px) were the only things making rows with a context menu\n ~10px taller than rows without one. Drop both so the trigger occupies exactly\n one text line and row height matches a table with no context column. Keep the\n horizontal padding for a comfortable hit area. */\n padding: 0 ",
|
|
36615
36683
|
"px;\n border: none;\n background: none;\n font-size: 20px;\n"
|
|
36616
36684
|
]);
|
|
36617
|
-
|
|
36685
|
+
_templateObject5 = function _templateObject() {
|
|
36618
36686
|
return data;
|
|
36619
36687
|
};
|
|
36620
36688
|
return data;
|
|
@@ -36626,10 +36694,11 @@ var TableContainer = styled(/*#__PURE__*/ forwardRef(function(props, ref) {
|
|
|
36626
36694
|
}))(_templateObject$2(), neutral300$1, spacing(1), surfaceRaised);
|
|
36627
36695
|
var TableWrapper = styled.table(_templateObject1$2());
|
|
36628
36696
|
var TopBar = styled.div(_templateObject2$2(), spacing(2), spacing(2));
|
|
36629
|
-
var
|
|
36630
|
-
var
|
|
36697
|
+
var BottomBar = styled.div(_templateObject3$1(), spacing(2));
|
|
36698
|
+
var TopBarElement = styled.div(_templateObject4$1(), spacing(1));
|
|
36699
|
+
var ContextMenuButton = styled(Button)(_templateObject5(), spacing(0.5));
|
|
36631
36700
|
var Table = function(param) {
|
|
36632
|
-
var columns = param.columns, _param_data = param.data, data = _param_data === void 0 ? [] : _param_data, getRowId = param.getRowId, _param_isLoading = param.isLoading, isLoading = _param_isLoading === void 0 ? false : _param_isLoading, _param_paginationMode = param.paginationMode, paginationMode = _param_paginationMode === void 0 ? 'page' : _param_paginationMode, pageInfo = param.pageInfo, subText = param.subText, onPageSizeChange = param.onPageSizeChange, onPageChange = param.onPageChange, sortBy = param.sortBy, sortOrder = param.sortOrder, onSortChange = param.onSortChange, _param_enableRowSelection = param.enableRowSelection, enableRowSelection = _param_enableRowSelection === void 0 ? false : _param_enableRowSelection, _param_selectedRows = param.selectedRows, selectedRows = _param_selectedRows === void 0 ? {} : _param_selectedRows, onRowSelectionChange = param.onRowSelectionChange, getRowDisabled = param.getRowDisabled, onRowClick = param.onRowClick, contextMenuActions = param.contextMenuActions, _param_dense = param.dense, dense = _param_dense === void 0 ? false : _param_dense, height = param.height, containerStyle = param.containerStyle, error = param.error, _param_testId = param.testId, testId = _param_testId === void 0 ? 'table' : _param_testId, toolbar = param.toolbar;
|
|
36701
|
+
var columns = param.columns, _param_data = param.data, data = _param_data === void 0 ? [] : _param_data, getRowId = param.getRowId, _param_isLoading = param.isLoading, isLoading = _param_isLoading === void 0 ? false : _param_isLoading, _param_paginationMode = param.paginationMode, paginationMode = _param_paginationMode === void 0 ? 'page' : _param_paginationMode, pageInfo = param.pageInfo, subText = param.subText, onPageSizeChange = param.onPageSizeChange, pageSizeOptions = param.pageSizeOptions, onPageChange = param.onPageChange, sortBy = param.sortBy, sortOrder = param.sortOrder, onSortChange = param.onSortChange, _param_enableRowSelection = param.enableRowSelection, enableRowSelection = _param_enableRowSelection === void 0 ? false : _param_enableRowSelection, _param_selectedRows = param.selectedRows, selectedRows = _param_selectedRows === void 0 ? {} : _param_selectedRows, onRowSelectionChange = param.onRowSelectionChange, getRowDisabled = param.getRowDisabled, onRowClick = param.onRowClick, contextMenuActions = param.contextMenuActions, _param_dense = param.dense, dense = _param_dense === void 0 ? false : _param_dense, height = param.height, containerStyle = param.containerStyle, error = param.error, _param_testId = param.testId, testId = _param_testId === void 0 ? 'table' : _param_testId, toolbar = param.toolbar;
|
|
36633
36702
|
var containerRef = useRef(null);
|
|
36634
36703
|
var ctxMenuAnchorRef = useRef(null);
|
|
36635
36704
|
var _useState = _sliced_to_array$1(useState({}), 2), columnSizing = _useState[0], setColumnSizing = _useState[1];
|
|
@@ -36813,6 +36882,36 @@ var Table = function(param) {
|
|
|
36813
36882
|
onColumnSizingChange: setColumnSizing,
|
|
36814
36883
|
columnResizeMode: 'onChange'
|
|
36815
36884
|
});
|
|
36885
|
+
var renderPagination = function() {
|
|
36886
|
+
if (!hasPaginationHandlers || !pageInfo) return null;
|
|
36887
|
+
var sharedProps = {
|
|
36888
|
+
subText: subText,
|
|
36889
|
+
isLoading: isLoading,
|
|
36890
|
+
pageSizeOptions: pageSizeOptions,
|
|
36891
|
+
onPageSizeChange: function(size) {
|
|
36892
|
+
resetContainerScroll();
|
|
36893
|
+
onPageSizeChange(size);
|
|
36894
|
+
},
|
|
36895
|
+
testId: "".concat(testId, "-pagination")
|
|
36896
|
+
};
|
|
36897
|
+
return paginationMode === 'page' && 'currentPage' in pageInfo ? /*#__PURE__*/ jsx(Pagination, _object_spread_props$2(_object_spread$2({
|
|
36898
|
+
mode: "page",
|
|
36899
|
+
pageInfo: pageInfo
|
|
36900
|
+
}, sharedProps), {
|
|
36901
|
+
onPageChange: function(page) {
|
|
36902
|
+
resetContainerScroll();
|
|
36903
|
+
onPageChange(page);
|
|
36904
|
+
}
|
|
36905
|
+
})) : /*#__PURE__*/ jsx(Pagination, _object_spread_props$2(_object_spread$2({
|
|
36906
|
+
mode: "cursor",
|
|
36907
|
+
pageInfo: pageInfo
|
|
36908
|
+
}, sharedProps), {
|
|
36909
|
+
onPageChange: function(page) {
|
|
36910
|
+
resetContainerScroll();
|
|
36911
|
+
onPageChange(page);
|
|
36912
|
+
}
|
|
36913
|
+
}));
|
|
36914
|
+
};
|
|
36816
36915
|
var showTopBar = hasPaginationHandlers || toolbar;
|
|
36817
36916
|
return /*#__PURE__*/ jsxs("div", {
|
|
36818
36917
|
children: [
|
|
@@ -36831,35 +36930,7 @@ var Table = function(param) {
|
|
|
36831
36930
|
style: {
|
|
36832
36931
|
marginLeft: 'auto'
|
|
36833
36932
|
},
|
|
36834
|
-
children:
|
|
36835
|
-
mode: "page",
|
|
36836
|
-
pageInfo: pageInfo,
|
|
36837
|
-
subText: subText,
|
|
36838
|
-
isLoading: isLoading,
|
|
36839
|
-
onPageSizeChange: function(size) {
|
|
36840
|
-
resetContainerScroll();
|
|
36841
|
-
onPageSizeChange(size);
|
|
36842
|
-
},
|
|
36843
|
-
onPageChange: function(page) {
|
|
36844
|
-
resetContainerScroll();
|
|
36845
|
-
onPageChange(page);
|
|
36846
|
-
},
|
|
36847
|
-
testId: "".concat(testId, "-pagination")
|
|
36848
|
-
}) : /*#__PURE__*/ jsx(Pagination, {
|
|
36849
|
-
mode: "cursor",
|
|
36850
|
-
pageInfo: pageInfo,
|
|
36851
|
-
subText: subText,
|
|
36852
|
-
isLoading: isLoading,
|
|
36853
|
-
onPageSizeChange: function(size) {
|
|
36854
|
-
resetContainerScroll();
|
|
36855
|
-
onPageSizeChange(size);
|
|
36856
|
-
},
|
|
36857
|
-
onPageChange: function(page) {
|
|
36858
|
-
resetContainerScroll();
|
|
36859
|
-
onPageChange(page);
|
|
36860
|
-
},
|
|
36861
|
-
testId: "".concat(testId, "-pagination")
|
|
36862
|
-
})
|
|
36933
|
+
children: renderPagination()
|
|
36863
36934
|
})
|
|
36864
36935
|
]
|
|
36865
36936
|
}),
|
|
@@ -36923,6 +36994,9 @@ var Table = function(param) {
|
|
|
36923
36994
|
isLoading && /*#__PURE__*/ jsx(LoadingOverlay, {})
|
|
36924
36995
|
]
|
|
36925
36996
|
}),
|
|
36997
|
+
hasPaginationHandlers && pageInfo && /*#__PURE__*/ jsx(BottomBar, {
|
|
36998
|
+
children: renderPagination()
|
|
36999
|
+
}),
|
|
36926
37000
|
/*#__PURE__*/ jsx(RowContextMenu, {
|
|
36927
37001
|
anchorRef: ctxMenuAnchorRef,
|
|
36928
37002
|
actions: contextMenuActions,
|
|
@@ -37318,4 +37392,4 @@ var Tooltip = function(_param) {
|
|
|
37318
37392
|
});
|
|
37319
37393
|
};
|
|
37320
37394
|
|
|
37321
|
-
export { Add, AlertBar, AutoComplete, BaseInput$1 as BaseInput, BaseTextArea, Button, Calendar, CalendarIcon$1 as CalendarIcon, Cancel, Checkbox, ChevronDown, ChevronLeft, ChevronRight, ChevronUp, Close, DEFAULT_SPACING, DatePicker, Delete, DropdownMenu, Edit, Error$1 as Error, FilterForm, FilterList, IconButton, IconWrapper$3 as IconWrapper, Info, Input, InputWrapper$3 as InputWrapper, LoadingWheel, LockClosed, LockOpen, MenuItem, Modal, MoreVertical, MultiInput, MultiSelect, OpenInNew, Pagination, PauboxUIThemeProvider, Popper, RadioButton, RadioGroup, Return, SearchBar, SearchIcon, SearchOmnibox, Select, StatCard, Success, Table, TableContainer, TableWrapper, TextArea, Toggle, Tooltip, Typography, Warning, Wrapper, baseTypography, colors, darkColors, elevation, spacing, typography, useTheme };
|
|
37395
|
+
export { Add, AlertBar, AutoComplete, BaseInput$1 as BaseInput, BaseTextArea, Button, Calendar, CalendarIcon$1 as CalendarIcon, Cancel, Checkbox, ChevronDown, ChevronLeft, ChevronRight, ChevronUp, Close, DEFAULT_PAGE_SIZE_OPTIONS, DEFAULT_SPACING, DatePicker, Delete, DropdownMenu, Edit, Error$1 as Error, FilterForm, FilterList, IconButton, IconWrapper$3 as IconWrapper, Info, Input, InputWrapper$3 as InputWrapper, LoadingWheel, LockClosed, LockOpen, MenuItem, Modal, MoreVertical, MultiInput, MultiSelect, OpenInNew, Pagination, PauboxUIThemeProvider, Popper, RadioButton, RadioGroup, Return, SearchBar, SearchIcon, SearchOmnibox, Select, StatCard, Success, Table, TableContainer, TableWrapper, TextArea, Toggle, Tooltip, Typography, Warning, Wrapper, baseTypography, colors, darkColors, elevation, spacing, typography, useTheme };
|
package/package.json
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export declare const DEFAULT_PAGE_SIZE_OPTIONS: number[];
|
|
1
2
|
export interface PageInfoPageBased {
|
|
2
3
|
currentPage: number;
|
|
3
4
|
pageSize: number;
|
|
@@ -16,6 +17,7 @@ interface BasePaginationProps {
|
|
|
16
17
|
isLoading: boolean;
|
|
17
18
|
subText?: string;
|
|
18
19
|
onPageSizeChange: (size: number) => void;
|
|
20
|
+
pageSizeOptions?: number[];
|
|
19
21
|
testId?: string;
|
|
20
22
|
}
|
|
21
23
|
interface PagePaginationProps extends BasePaginationProps {
|
|
@@ -29,5 +31,5 @@ interface CursorPaginationProps extends BasePaginationProps {
|
|
|
29
31
|
onPageChange: (page: 'next' | 'prev') => void;
|
|
30
32
|
}
|
|
31
33
|
export type PaginationProps = PagePaginationProps | CursorPaginationProps;
|
|
32
|
-
export declare const Pagination: ({ mode, pageInfo, isLoading, onPageSizeChange, subText, onPageChange, testId, }: PaginationProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
34
|
+
export declare const Pagination: ({ mode, pageInfo, isLoading, onPageSizeChange, pageSizeOptions, subText, onPageChange, testId, }: PaginationProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
33
35
|
export {};
|
package/src/lib/Table/Table.d.ts
CHANGED
|
@@ -48,6 +48,7 @@ interface PaginationProps {
|
|
|
48
48
|
pageInfo?: PageInfoPageBased | PageInfoCursorBased;
|
|
49
49
|
subText?: string;
|
|
50
50
|
onPageSizeChange?: (size: number) => void;
|
|
51
|
+
pageSizeOptions?: number[];
|
|
51
52
|
onPageChange?: (page: number | 'next' | 'prev') => void;
|
|
52
53
|
}
|
|
53
54
|
interface TableDataProps<T> {
|
|
@@ -64,5 +65,5 @@ interface TableDataProps<T> {
|
|
|
64
65
|
}
|
|
65
66
|
export interface TableProps<T extends object> extends TableStyleProps, TableRowProps<T>, TableDataProps<T>, PaginationProps {
|
|
66
67
|
}
|
|
67
|
-
export declare const Table: <T extends object>({ columns, data, getRowId, isLoading, paginationMode, pageInfo, subText, onPageSizeChange, onPageChange, sortBy, sortOrder, onSortChange, enableRowSelection, selectedRows, onRowSelectionChange, getRowDisabled, onRowClick, contextMenuActions, dense, height, containerStyle, error, testId, toolbar, }: TableProps<T>) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
68
|
+
export declare const Table: <T extends object>({ columns, data, getRowId, isLoading, paginationMode, pageInfo, subText, onPageSizeChange, pageSizeOptions, onPageChange, sortBy, sortOrder, onSortChange, enableRowSelection, selectedRows, onRowSelectionChange, getRowDisabled, onRowClick, contextMenuActions, dense, height, containerStyle, error, testId, toolbar, }: TableProps<T>) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
68
69
|
export {};
|