labsense-ui-kit 1.3.92 → 1.3.94
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
|
@@ -5,6 +5,7 @@ declare type IPaginationProps = {
|
|
|
5
5
|
itemsPerPage: number;
|
|
6
6
|
onPageChange: (page: number) => void;
|
|
7
7
|
onItemsPerPageChange: (itemsPerPage: number) => void;
|
|
8
|
+
itemsPerPageOptions?: number[];
|
|
8
9
|
};
|
|
9
10
|
declare const Pagination: React.FC<IPaginationProps>;
|
|
10
11
|
export default Pagination;
|
package/dist/index.js
CHANGED
|
@@ -8894,7 +8894,7 @@ var LabelText$1 = styled__default.div(_templateObject5$5 || (_templateObject5$5
|
|
|
8894
8894
|
return $disabled ? theme.vms.text.medium : $color || theme.vms.text.medium;
|
|
8895
8895
|
});
|
|
8896
8896
|
var NoOptions = styled__default(Span)(_templateObject6$5 || (_templateObject6$5 = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n height: 100%;\n padding: 12px;\n font-size: 14px;\n font-weight: 400;\n"])));
|
|
8897
|
-
var DropdownMenu$1 = styled__default.div(_templateObject7$3 || (_templateObject7$3 = _taggedTemplateLiteralLoose(["\n height: auto;\n max-height: 170px;\n border: ", ";\n border-radius: ", ";\n min-width: 100%;\n max-width: 100%;\n width: ", ";\n background: ", ";\n box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);\n overflow: hidden;\n position: absolute;\n z-index: 2;\n outline: none;\n ", "\n ", "\n\n ", "\n"])), function (_ref24) {
|
|
8897
|
+
var DropdownMenu$1 = styled__default.div(_templateObject7$3 || (_templateObject7$3 = _taggedTemplateLiteralLoose(["\n height: auto;\n // max-height: 170px;\n border: ", ";\n border-radius: ", ";\n min-width: 100%;\n max-width: 100%;\n width: ", ";\n background: ", ";\n box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);\n overflow: hidden;\n position: absolute;\n z-index: 2;\n outline: none;\n ", "\n ", "\n\n ", "\n"])), function (_ref24) {
|
|
8898
8898
|
var theme = _ref24.theme;
|
|
8899
8899
|
return "1px solid " + theme.vms.border.light;
|
|
8900
8900
|
}, function (_ref25) {
|
|
@@ -10585,7 +10585,9 @@ var Pagination = function Pagination(_ref4) {
|
|
|
10585
10585
|
currentPage = _ref4.currentPage,
|
|
10586
10586
|
itemsPerPage = _ref4.itemsPerPage,
|
|
10587
10587
|
onPageChange = _ref4.onPageChange,
|
|
10588
|
-
onItemsPerPageChange = _ref4.onItemsPerPageChange
|
|
10588
|
+
onItemsPerPageChange = _ref4.onItemsPerPageChange,
|
|
10589
|
+
_ref4$itemsPerPageOpt = _ref4.itemsPerPageOptions,
|
|
10590
|
+
itemsPerPageOptions = _ref4$itemsPerPageOpt === void 0 ? [5, 10, 20] : _ref4$itemsPerPageOpt;
|
|
10589
10591
|
var themeColors = useTheme();
|
|
10590
10592
|
var _useTranslation = reactI18next.useTranslation(),
|
|
10591
10593
|
t = _useTranslation.t;
|
|
@@ -10699,16 +10701,12 @@ var Pagination = function Pagination(_ref4) {
|
|
|
10699
10701
|
onItemsPerPageChange(val);
|
|
10700
10702
|
}
|
|
10701
10703
|
},
|
|
10702
|
-
options:
|
|
10703
|
-
|
|
10704
|
-
|
|
10705
|
-
|
|
10706
|
-
|
|
10707
|
-
|
|
10708
|
-
}, {
|
|
10709
|
-
label: '20',
|
|
10710
|
-
value: '20'
|
|
10711
|
-
}],
|
|
10704
|
+
options: itemsPerPageOptions.map(function (option) {
|
|
10705
|
+
return {
|
|
10706
|
+
label: option.toString(),
|
|
10707
|
+
value: option.toString()
|
|
10708
|
+
};
|
|
10709
|
+
}),
|
|
10712
10710
|
positionRef: containerRef,
|
|
10713
10711
|
allowDeselect: false
|
|
10714
10712
|
}))));
|