labsense-ui-kit 1.3.93 → 1.3.95
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/dist/Pagination/Pagination.d.ts +1 -0
- package/dist/index.js +10 -12
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +10 -12
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -8604,7 +8604,7 @@ var MultiSelectDropdown = function MultiSelectDropdown(_ref32) {
|
|
|
8604
8604
|
};
|
|
8605
8605
|
var SELECT_ALL_VALUE = '__SELECT_ALL__';
|
|
8606
8606
|
var computedOptions = React.useMemo(function () {
|
|
8607
|
-
if (!selectAllOption) return options;
|
|
8607
|
+
if (!selectAllOption || options.length === 0) return options;
|
|
8608
8608
|
return [{
|
|
8609
8609
|
value: SELECT_ALL_VALUE,
|
|
8610
8610
|
labelText: selectAllLabel
|
|
@@ -10581,7 +10581,9 @@ var Pagination = function Pagination(_ref4) {
|
|
|
10581
10581
|
currentPage = _ref4.currentPage,
|
|
10582
10582
|
itemsPerPage = _ref4.itemsPerPage,
|
|
10583
10583
|
onPageChange = _ref4.onPageChange,
|
|
10584
|
-
onItemsPerPageChange = _ref4.onItemsPerPageChange
|
|
10584
|
+
onItemsPerPageChange = _ref4.onItemsPerPageChange,
|
|
10585
|
+
_ref4$itemsPerPageOpt = _ref4.itemsPerPageOptions,
|
|
10586
|
+
itemsPerPageOptions = _ref4$itemsPerPageOpt === void 0 ? [5, 10, 20] : _ref4$itemsPerPageOpt;
|
|
10585
10587
|
var themeColors = useTheme();
|
|
10586
10588
|
var _useTranslation = useTranslation(),
|
|
10587
10589
|
t = _useTranslation.t;
|
|
@@ -10695,16 +10697,12 @@ var Pagination = function Pagination(_ref4) {
|
|
|
10695
10697
|
onItemsPerPageChange(val);
|
|
10696
10698
|
}
|
|
10697
10699
|
},
|
|
10698
|
-
options:
|
|
10699
|
-
|
|
10700
|
-
|
|
10701
|
-
|
|
10702
|
-
|
|
10703
|
-
|
|
10704
|
-
}, {
|
|
10705
|
-
label: '20',
|
|
10706
|
-
value: '20'
|
|
10707
|
-
}],
|
|
10700
|
+
options: itemsPerPageOptions.map(function (option) {
|
|
10701
|
+
return {
|
|
10702
|
+
label: option.toString(),
|
|
10703
|
+
value: option.toString()
|
|
10704
|
+
};
|
|
10705
|
+
}),
|
|
10708
10706
|
positionRef: containerRef,
|
|
10709
10707
|
allowDeselect: false
|
|
10710
10708
|
}))));
|