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.
@@ -8890,7 +8890,7 @@ var LabelText$1 = styled.div(_templateObject5$5 || (_templateObject5$5 = _tagged
8890
8890
  return $disabled ? theme.vms.text.medium : $color || theme.vms.text.medium;
8891
8891
  });
8892
8892
  var NoOptions = styled(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"])));
8893
- var DropdownMenu$1 = styled.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) {
8893
+ var DropdownMenu$1 = styled.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) {
8894
8894
  var theme = _ref24.theme;
8895
8895
  return "1px solid " + theme.vms.border.light;
8896
8896
  }, function (_ref25) {
@@ -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
- label: '5',
10700
- value: '5'
10701
- }, {
10702
- label: '10',
10703
- value: '10'
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
  }))));