@natoora-libs/core 0.2.45 → 0.2.46

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.
@@ -6974,11 +6974,18 @@ var useStyles34 = (0, import_mui36.makeStyles)()((theme) => ({
6974
6974
  borderRadius: "0 0 4px 4px",
6975
6975
  width: "100%",
6976
6976
  height: paginationHeight,
6977
+ overflow: "hidden",
6977
6978
  "& > *": {
6978
6979
  margin: theme.spacing(2)
6979
6980
  },
6980
- "& .MuiTypography-body1": {
6981
- fontSize: ".850rem"
6981
+ "& .MuiPagination-root": {
6982
+ minWidth: 0
6983
+ },
6984
+ "& .MuiPagination-ul": {
6985
+ flexWrap: "nowrap"
6986
+ },
6987
+ "& .MuiPaginationItem-root": {
6988
+ flexShrink: 0
6982
6989
  }
6983
6990
  },
6984
6991
  fixed: {
@@ -6998,7 +7005,9 @@ var PaginationForTable = ({
6998
7005
  pagination,
6999
7006
  position = "relative",
7000
7007
  style,
7001
- updateFilters
7008
+ updateFilters,
7009
+ siblingCount = 1,
7010
+ boundaryCount = 1
7002
7011
  }) => {
7003
7012
  const { classes, cx } = useStyles34();
7004
7013
  const handleChange = (event, value) => {
@@ -7006,7 +7015,7 @@ var PaginationForTable = ({
7006
7015
  };
7007
7016
  const isFixed = position === "fixed";
7008
7017
  return /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(import_material54.Paper, { children: /* @__PURE__ */ (0, import_jsx_runtime107.jsxs)(
7009
- "div",
7018
+ import_material54.Box,
7010
7019
  {
7011
7020
  style,
7012
7021
  className: cx(classes.root, className, {
@@ -7017,14 +7026,16 @@ var PaginationForTable = ({
7017
7026
  "Page: ",
7018
7027
  page
7019
7028
  ] }),
7020
- /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(
7029
+ /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(import_material54.Box, { style: { overflowX: "auto", maxWidth: 400 }, children: /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(
7021
7030
  import_material54.Pagination,
7022
7031
  {
7023
7032
  count: pagination.num_pages,
7024
- page,
7025
- onChange: handleChange
7033
+ page: Number(page),
7034
+ onChange: handleChange,
7035
+ siblingCount,
7036
+ boundaryCount
7026
7037
  }
7027
- )
7038
+ ) })
7028
7039
  ]
7029
7040
  }
7030
7041
  ) });
@@ -8314,8 +8325,7 @@ var SearchHeader = ({
8314
8325
  value,
8315
8326
  onChange,
8316
8327
  onKeyDown,
8317
- width,
8318
- initialValue
8328
+ width
8319
8329
  }) => {
8320
8330
  return /* @__PURE__ */ (0, import_jsx_runtime119.jsxs)(
8321
8331
  import_material66.Paper,
@@ -8343,8 +8353,7 @@ var SearchHeader = ({
8343
8353
  onSearch,
8344
8354
  value,
8345
8355
  onChange,
8346
- onKeyDown,
8347
- initialValue
8356
+ onKeyDown
8348
8357
  }
8349
8358
  ),
8350
8359
  renderExtraAction