asma-ui-core 3.45.1 → 3.46.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.
@@ -1,10 +1,10 @@
1
- import { EXPAND_COLUMN_ID as r } from "../../types.js";
1
+ import { EXPAND_COLUMN_ID as i } from "../../types.js";
2
2
  import { ChevronDownIcon as a } from "../../shared-components/ChevronDownIcon.js";
3
3
  import { jsx as t } from "react/jsx-runtime";
4
4
  import "@tanstack/react-table";
5
- function p(o, i) {
5
+ function f(r, o) {
6
6
  return {
7
- id: r,
7
+ id: i,
8
8
  minSize: 50,
9
9
  maxSize: 50,
10
10
  size: 50,
@@ -17,23 +17,27 @@ function p(o, i) {
17
17
  type: "button",
18
18
  "aria-label": n ? "Collapse row" : "Expand row",
19
19
  "aria-expanded": n,
20
- className: "flex w-full items-center justify-center border-0 bg-transparent outline-none focus:outline-none",
20
+ className: "flex w-full items-center justify-center border-0 bg-transparent p-0 outline-none focus:outline-none",
21
21
  onClick: () => e.row.getToggleExpandedHandler()(),
22
- style: { height: i ?? "auto" },
22
+ style: { height: o ?? "auto" },
23
23
  children: /* @__PURE__ */ t(a, {
24
+ className: "block size-6 shrink-0",
24
25
  width: 24,
25
26
  height: 24,
26
27
  style: {
27
- rotate: n ? "180deg" : "0deg",
28
- transitionTimingFunction: "cubic-bezier(0.4, 0, 0.2, 1)",
29
- transitionDuration: "500ms"
28
+ transform: n ? "rotate(180deg)" : "rotate(0deg)",
29
+ transformBox: "fill-box",
30
+ transformOrigin: "center",
31
+ transitionProperty: "transform",
32
+ transitionDuration: "500ms",
33
+ transitionTimingFunction: "cubic-bezier(0.4, 0, 0.2, 1)"
30
34
  }
31
35
  })
32
36
  }) : null;
33
37
  },
34
- fixedLeft: o
38
+ fixedLeft: r
35
39
  };
36
40
  }
37
41
  export {
38
- p as generateExpandColumn
42
+ f as generateExpandColumn
39
43
  };
@@ -1,8 +1,8 @@
1
1
  import { SHOW_FULL_TEXT_ID as i } from "../../types.js";
2
- import { ChevronDownIcon as a } from "../../shared-components/ChevronDownIcon.js";
2
+ import { ChevronDownIcon as s } from "../../shared-components/ChevronDownIcon.js";
3
3
  import { StyledButton as l } from "../../shared-components/button/StyledButton.js";
4
- import { jsx as n } from "react/jsx-runtime";
5
- function g(e, o) {
4
+ import { jsx as o } from "react/jsx-runtime";
5
+ function f(e, n) {
6
6
  return {
7
7
  id: i,
8
8
  minSize: 38,
@@ -11,24 +11,24 @@ function g(e, o) {
11
11
  enableHiding: !1,
12
12
  enableSorting: !1,
13
13
  header: () => null,
14
- cell: (r) => /* @__PURE__ */ n(s, {
14
+ cell: (r) => /* @__PURE__ */ o(u, {
15
15
  info: r,
16
- rowHeight: o
16
+ rowHeight: n
17
17
  }),
18
18
  fixedLeft: e
19
19
  };
20
20
  }
21
- function s({ info: e, rowHeight: o }) {
22
- const r = e.row.getCanExpand();
23
- return /* @__PURE__ */ n("div", {
21
+ function u({ info: e, rowHeight: n }) {
22
+ const r = e.row.getCanExpand(), a = e.row.isExpanded();
23
+ return /* @__PURE__ */ o("div", {
24
24
  className: "flex w-full items-center justify-center",
25
- style: { height: o ?? "auto" },
26
- children: /* @__PURE__ */ n(l, {
25
+ style: { height: n ?? "auto" },
26
+ children: /* @__PURE__ */ o(l, {
27
27
  dataTest: "expand-text-button",
28
28
  size: "small",
29
29
  variant: "textGray",
30
- onClick: () => {
31
- r && e.row.getToggleExpandedHandler()(), e.row.toggleExpand();
30
+ onClick: (t) => {
31
+ t.stopPropagation(), r && e.row.getToggleExpandedHandler()(), e.row.toggleExpand();
32
32
  },
33
33
  onMouseDown: (t) => {
34
34
  t.preventDefault(), t.stopPropagation();
@@ -36,13 +36,17 @@ function s({ info: e, rowHeight: o }) {
36
36
  onMouseUp: (t) => {
37
37
  t.preventDefault(), t.stopPropagation();
38
38
  },
39
- startIcon: /* @__PURE__ */ n(a, {
39
+ startIcon: /* @__PURE__ */ o(s, {
40
+ className: "block size-5 shrink-0",
40
41
  width: 20,
41
42
  height: 20,
42
43
  style: {
43
- rotate: e.row.isExpanded() ? "180deg" : "0deg",
44
- transitionTimingFunction: "cubic-bezier(0.4, 0, 0.2, 1)",
44
+ transform: a ? "rotate(180deg)" : "rotate(0deg)",
45
+ transformBox: "fill-box",
46
+ transformOrigin: "center",
47
+ transitionProperty: "transform",
45
48
  transitionDuration: "500ms",
49
+ transitionTimingFunction: "cubic-bezier(0.4, 0, 0.2, 1)",
46
50
  cursor: "pointer"
47
51
  }
48
52
  })
@@ -50,5 +54,5 @@ function s({ info: e, rowHeight: o }) {
50
54
  });
51
55
  }
52
56
  export {
53
- g as generateShowFullTextColumn
57
+ f as generateShowFullTextColumn
54
58
  };
@@ -1,61 +1,55 @@
1
- import { ACTIONS_COLUMN_ID as b, INTERNAL_COLUMN_IDS as A } from "../../types.js";
1
+ import { ACTIONS_COLUMN_ID as S, INTERNAL_COLUMN_IDS as y } from "../../types.js";
2
2
  import { useRootContext as G } from "../../context/RootContext.js";
3
3
  import n from "../StyledTable.module.js";
4
- import { DropUpIcon as O } from "../../shared-components/DropUpIcon.js";
5
- import { DropDownIcon as j } from "../../shared-components/DropDownIcon.js";
6
- import { getTableHeaderStyle as F } from "../../helpers/getTableHeaderStyle.js";
7
- import y from "clsx";
8
- import { useMemo as g } from "react";
9
- import { jsx as u, jsxs as L } from "react/jsx-runtime";
10
- import { flexRender as k } from "@tanstack/react-table";
11
- function V({ styledTableProps: t, header: o, tableCanResize: r = !1, left: a, right: i, tableWidth: s }) {
12
- const { hideHeader: m = !1, enableResizing: f = !1, actions: I, customActionsNode: w } = t, { isResizing: p, enableResizingFlag: S, disableResizingFlag: x } = G(), D = o.column.columnDef.fixedLeft, R = !!o.column.columnDef.fixedRight, d = o.column.id === b, _ = !!I || !!w, C = g(() => o.headerGroup.headers.some((e) => e.id === b), [o.headerGroup.headers]), v = g(() => o.headerGroup.headers.some((e) => !!e.column.columnDef.fixedRight), [o.headerGroup.headers]), H = g(() => o.headerGroup.headers[o.headerGroup.headers.length - (C ? 2 : 1)], [o.headerGroup.headers, C]), l = o.column.getCanSort(), N = o.column.getIsSorted(), h = l ? N === "asc" ? "ascending" : N === "desc" ? "descending" : "none" : void 0;
13
- return /* @__PURE__ */ u("th", {
4
+ import { DropUpIcon as A } from "../../shared-components/DropUpIcon.js";
5
+ import { DropDownIcon as k } from "../../shared-components/DropDownIcon.js";
6
+ import { getTableHeaderStyle as w } from "../../helpers/getTableHeaderStyle.js";
7
+ import _ from "clsx";
8
+ import { useMemo as c } from "react";
9
+ import { jsx as i, jsxs as F } from "react/jsx-runtime";
10
+ import { flexRender as B } from "@tanstack/react-table";
11
+ function J({ styledTableProps: C, header: o, tableCanResize: D = !1, left: b, right: N, tableWidth: z }) {
12
+ const { hideHeader: r = !1, enableResizing: a = !1, actions: I, customActionsNode: h } = C, { isResizing: m, enableResizingFlag: u, disableResizingFlag: d } = G(), g = o.column.columnDef.fixedLeft, f = !!o.column.columnDef.fixedRight, l = o.column.id === S, p = !!I || !!h, x = c(() => o.headerGroup.headers.some((e) => e.id === S), [o.headerGroup.headers]), H = c(() => o.headerGroup.headers.some((e) => !!e.column.columnDef.fixedRight), [o.headerGroup.headers]), T = c(() => o.headerGroup.headers[o.headerGroup.headers.length - (x ? 2 : 1)], [o.headerGroup.headers, x]), t = o.column.getCanSort(), R = o.column.getIsSorted(), v = t ? R === "asc" ? "ascending" : R === "desc" ? "descending" : "none" : void 0;
13
+ return /* @__PURE__ */ i("th", {
14
14
  colSpan: o.colSpan,
15
- "aria-sort": h,
16
- className: y(n["t-cell"], m && n["hide-header"], d && n["t-cell__actions"], d && !_ && n["t-cell__actions--not-fixed"], d && _ && v && n["t-cell__actions--no-shadow"], D && n["t-cell__fixed"], R && n["t-cell__fixed-right"]),
15
+ "aria-sort": v,
16
+ className: _(n["t-cell"], r && n["hide-header"], l && n["t-cell__actions"], l && !p && n["t-cell__actions--not-fixed"], l && p && H && n["t-cell__actions--no-shadow"], g && n["t-cell__fixed"], f && n["t-cell__fixed-right"]),
17
17
  style: {
18
- ...F({
19
- enableResizing: f,
18
+ ...w({
19
+ enableResizing: a,
20
20
  header: o,
21
- tableWidth: s
21
+ tableWidth: z
22
22
  }),
23
- ...D && { left: a },
24
- ...R && { right: i }
23
+ ...g && { left: b },
24
+ ...f && { right: N }
25
25
  },
26
- children: /* @__PURE__ */ L("div", {
27
- className: y("flex items-center justify-start", m ? n["hide-table-header"] : n["show-table-header"], l && n["sortable-column"], o.column.columnDef.className),
28
- role: l ? "button" : void 0,
29
- tabIndex: l ? 0 : void 0,
26
+ children: /* @__PURE__ */ F("div", {
27
+ className: _("flex items-center justify-start", r ? n["hide-table-header"] : n["show-table-header"], t && n["sortable-column"], o.column.columnDef.className),
28
+ role: t ? "button" : void 0,
29
+ tabIndex: t ? 0 : void 0,
30
30
  onClick: (e) => {
31
- const c = o.column.getToggleSortingHandler();
32
- !p && c && c(e), x();
31
+ const s = o.column.getToggleSortingHandler();
32
+ !m && s && s(e), d();
33
33
  },
34
- onKeyDown: l ? (e) => {
34
+ onKeyDown: t ? (e) => {
35
35
  if (e.key !== "Enter" && e.key !== " ") return;
36
36
  e.preventDefault();
37
- const c = o.column.getToggleSortingHandler();
38
- !p && c && c(e), x();
37
+ const s = o.column.getToggleSortingHandler();
38
+ !m && s && s(e), d();
39
39
  } : void 0,
40
40
  children: [
41
- k(o.column.columnDef.header, o.getContext()),
41
+ B(o.column.columnDef.header, o.getContext()),
42
42
  {
43
- asc: /* @__PURE__ */ u(O, { className: n["sort-icon"] }),
44
- desc: /* @__PURE__ */ u(j, { className: n["sort-icon"] })
43
+ asc: /* @__PURE__ */ i(A, { className: n["sort-icon"] }),
44
+ desc: /* @__PURE__ */ i(k, { className: n["sort-icon"] })
45
45
  }[o.column.getIsSorted()] ?? null,
46
- r && (f ? !0 : o.id !== H?.id) && o.column.getCanResize() && !A.includes(o.column.id) && /* @__PURE__ */ u("div", {
46
+ D && (a ? !0 : o.id !== T?.id) && o.column.getCanResize() && !y.includes(o.column.id) && /* @__PURE__ */ i("div", {
47
47
  onDoubleClick: () => o.column.resetSize(),
48
48
  onMouseDown: (e) => {
49
- e.stopPropagation(), S(), o.getResizeHandler()(e), window.addEventListener("mouseup", () => z({
50
- styledTableProps: t,
51
- header: o
52
- }));
49
+ e.stopPropagation(), u(), o.getResizeHandler()(e);
53
50
  },
54
51
  onTouchStart: (e) => {
55
- e.stopPropagation(), S(), o.getResizeHandler()(e), window.addEventListener("mouseup", () => z({
56
- styledTableProps: t,
57
- header: o
58
- }));
52
+ e.stopPropagation(), u(), o.getResizeHandler()(e);
59
53
  },
60
54
  className: `${n.resizer} ${o.column.getIsResizing() ? n.isResizing : ""}`
61
55
  })
@@ -63,19 +57,6 @@ function V({ styledTableProps: t, header: o, tableCanResize: r = !1, left: a, ri
63
57
  })
64
58
  }, o.id);
65
59
  }
66
- function z({ styledTableProps: t, header: o }) {
67
- if (t.uniqueKey) {
68
- const r = t.uniqueKey, a = localStorage.getItem(r);
69
- let i = {};
70
- if (a) try {
71
- const s = JSON.parse(a);
72
- s && typeof s == "object" && !Array.isArray(s) && (i = Object.fromEntries(Object.entries(s).filter((m) => typeof m[1] == "number")));
73
- } catch {
74
- console.warn("Failed to parse stored dimensions. Resetting."), i = {};
75
- }
76
- i[o.column.id] = o.column.getSize(), localStorage.setItem(r, JSON.stringify(i));
77
- }
78
- }
79
60
  export {
80
- V as TableHeaderCell
61
+ J as TableHeaderCell
81
62
  };
@@ -4,17 +4,17 @@ import { generateExpandColumn as h } from "../components/columns/expandColumn.js
4
4
  import { generateActionsColumn as x } from "../components/columns/action-column/actionColumn.js";
5
5
  import { generateDndHandleColumn as _ } from "../components/columns/dndHandleColumn.js";
6
6
  import { generateShowFullTextColumn as A } from "../components/columns/showTextColumn.js";
7
- var T = (f) => {
8
- const { columns: o, actions: i, customActionsNode: r, headerPin: d = !0, enableRowSelection: l, expandArrow: u, enableDnd: a, customDndColumnProps: c, rowHeight: e, textExpandArrow: m, customActionsColumnProps: p, rowActionsState: C, locale: s } = f, t = o.some((n) => n.fixedLeft === !0);
9
- !o.find((n) => n.id === "actions") && (i || r || d) && o.push(x({
7
+ var T = (i) => {
8
+ const { actions: r, customActionsNode: m, headerPin: d = !0, enableRowSelection: u, expandArrow: f, enableDnd: c, customDndColumnProps: a, rowHeight: e, textExpandArrow: s, customActionsColumnProps: p, rowActionsState: C, locale: l } = i, n = [...i.columns], t = n.some((o) => o.fixedLeft === !0);
9
+ return !n.find((o) => o.id === "actions") && (r || m || d) && n.push(x({
10
10
  headerPin: d,
11
- actions: i,
12
- customActionsNode: r,
11
+ actions: r,
12
+ customActionsNode: m,
13
13
  rowHeight: e,
14
14
  customActionsColumnProps: p,
15
15
  rowActionsState: C,
16
- locale: s
17
- })), m && !o.find((n) => n.id === "show-full-text") && o.unshift(A(t, e)), u && !m && !o.find((n) => n.id === "expand-column-id") && o.unshift(h(t, e)), a && !o.find((n) => n.id === "dnd-handle") && o.unshift(_(c, e)), l && !o.find((n) => n.id === "select") && o.unshift(D(t, e, s));
16
+ locale: l
17
+ })), s && !n.find((o) => o.id === "show-full-text") && n.unshift(A(t, e)), f && !s && !n.find((o) => o.id === "expand-column-id") && n.unshift(h(t, e)), c && !n.find((o) => o.id === "dnd-handle") && n.unshift(_(a, e)), u && !n.find((o) => o.id === "select") && n.unshift(D(t, e, l)), n;
18
18
  };
19
19
  export {
20
20
  T as injectColumns
@@ -0,0 +1,36 @@
1
+ import { useEffect as a, useMemo as c } from "react";
2
+ var g = ":column-sizing", n = (t) => {
3
+ if (t)
4
+ try {
5
+ const r = JSON.parse(t);
6
+ return !r || typeof r != "object" || Array.isArray(r) ? void 0 : Object.fromEntries(Object.entries(r).filter((e) => typeof e[1] == "number" && Number.isFinite(e[1]) && e[1] > 0));
7
+ } catch {
8
+ return;
9
+ }
10
+ }, s = (t) => t ? `${t}${g}` : void 0, l = (t) => c(() => {
11
+ const r = s(t);
12
+ if (!(!r || !t))
13
+ try {
14
+ return n(localStorage.getItem(r)) ?? n(localStorage.getItem(t));
15
+ } catch {
16
+ return;
17
+ }
18
+ }, [t]), u = (t, r) => {
19
+ const e = s(r), i = t.getState().columnSizing, o = !!t.getState().columnSizingInfo.isResizingColumn;
20
+ a(() => {
21
+ if (!(!e || o))
22
+ try {
23
+ localStorage.setItem(e, JSON.stringify(i));
24
+ } catch {
25
+ return;
26
+ }
27
+ }, [
28
+ i,
29
+ o,
30
+ e
31
+ ]);
32
+ };
33
+ export {
34
+ u as usePersistColumnSizing,
35
+ l as usePersistedColumnSizing
36
+ };
@@ -1,6 +1,7 @@
1
1
  import "../types.js";
2
2
  import { useVirtualizer as d } from "@tanstack/react-virtual";
3
- function c({ table: o, scrollRef: r, isMobileView: l }) {
3
+ var m = 20;
4
+ function f({ table: o, scrollRef: r, isMobileView: l }) {
4
5
  const i = o.getVisibleLeafColumns().filter((e) => !e.columnDef.fixedLeft && !e.columnDef.fixedRight && e.id !== "actions"), n = d({
5
6
  count: i.length,
6
7
  getScrollElement: () => r?.current ?? null,
@@ -8,7 +9,7 @@ function c({ table: o, scrollRef: r, isMobileView: l }) {
8
9
  horizontal: !0,
9
10
  overscan: 2
10
11
  });
11
- if (l) return { columnWindow: {
12
+ if (l || i.length <= m) return { columnWindow: {
12
13
  indexes: i.map((e, u) => u),
13
14
  paddingLeft: 0,
14
15
  paddingRight: 0
@@ -21,5 +22,5 @@ function c({ table: o, scrollRef: r, isMobileView: l }) {
21
22
  } };
22
23
  }
23
24
  export {
24
- c as useColumnVirtualizer
25
+ f as useColumnVirtualizer
25
26
  };
@@ -1,59 +1,67 @@
1
- import { SELECT_COLUMN_ID as z } from "../types.js";
2
- import { ExpandedRowsFeature as M } from "../custom-features/expand-rows/ExpandRowsFeature.js";
3
- import { FocusedRowsFeature as P } from "../custom-features/focus-rows/FocusRowsFeature.js";
4
- import { OrderColumnsFeature as C } from "../custom-features/order-columns/OrderColumnsFeature.js";
5
- import { usePersistColumnOrder as b } from "../custom-features/order-columns/usePersistColumnOrder.js";
6
- import { usePersistedColumnOrder as x } from "../custom-features/order-columns/usePersistedColumnOrder.js";
7
- import { getPersistedPageSizeKey as F, usePersistedPageSize as I } from "./usePersistedPageSize.js";
8
- import { RowSelectionTooltipFeature as O } from "../custom-features/row-selection-tooltip/RowSelectionTooltipFeature.js";
9
- import { useEffect as c, useRef as v } from "react";
10
- import { getCoreRowModel as E, getExpandedRowModel as K, getFilteredRowModel as T, getPaginationRowModel as _, getSortedRowModel as h, useReactTable as L } from "@tanstack/react-table";
11
- var H = (n) => {
12
- const { columns: f, data: S, initialState: d, pageSize: p, enableRowSelection: R, tableInstanceRef: l, locale: w, persistColumnOrderKey: s, uniqueKey: g, ...u } = n, y = x(s), t = I(g) ?? p ?? 50, e = L({
1
+ import { SELECT_COLUMN_ID as y } from "../types.js";
2
+ import { ExpandedRowsFeature as E } from "../custom-features/expand-rows/ExpandRowsFeature.js";
3
+ import { FocusedRowsFeature as I } from "../custom-features/focus-rows/FocusRowsFeature.js";
4
+ import { OrderColumnsFeature as b } from "../custom-features/order-columns/OrderColumnsFeature.js";
5
+ import { usePersistColumnOrder as F } from "../custom-features/order-columns/usePersistColumnOrder.js";
6
+ import { usePersistedColumnOrder as O } from "../custom-features/order-columns/usePersistedColumnOrder.js";
7
+ import { getPersistedPageSizeKey as _, usePersistedPageSize as x } from "./usePersistedPageSize.js";
8
+ import { usePersistColumnSizing as v, usePersistedColumnSizing as K } from "./useColumnSizingPersistence.js";
9
+ import { RowSelectionTooltipFeature as L } from "../custom-features/row-selection-tooltip/RowSelectionTooltipFeature.js";
10
+ import { useEffect as R, useRef as T } from "react";
11
+ import { getCoreRowModel as N, getExpandedRowModel as U, getFilteredRowModel as h, getPaginationRowModel as A, getSortedRowModel as D, useReactTable as V } from "@tanstack/react-table";
12
+ var Z = 100, ee = (n) => {
13
+ const { columns: p, data: z, initialState: a, pageSize: C, enableRowSelection: w, tableInstanceRef: d, locale: M, persistColumnOrderKey: u, uniqueKey: l, defaultColumn: g, ...m } = n, P = O(u), S = n.enableColumnResizing ? l : void 0, c = K(S), t = x(l) ?? C ?? 50, e = V({
13
14
  _features: [
14
- M,
15
- P,
16
- C,
17
- O
15
+ E,
16
+ I,
17
+ b,
18
+ L
18
19
  ],
19
- columns: f,
20
- data: S,
21
- meta: { locale: w ?? "en" },
20
+ columns: p,
21
+ data: z,
22
+ meta: { locale: M ?? "en" },
22
23
  initialState: {
23
24
  pagination: {
24
25
  pageIndex: 0,
25
26
  pageSize: t
26
27
  },
27
28
  columnVisibility: {
28
- ...d?.columnVisibility,
29
- [z]: !1
29
+ ...a?.columnVisibility,
30
+ [y]: !1
30
31
  },
31
- columnOrder: y,
32
- ...d
32
+ columnOrder: P,
33
+ ...a,
34
+ ...c && { columnSizing: {
35
+ ...a?.columnSizing,
36
+ ...c
37
+ } }
33
38
  },
34
- enableRowSelection: R,
35
- getCoreRowModel: E(),
36
- getExpandedRowModel: K(),
37
- getFilteredRowModel: T(),
38
- getSortedRowModel: h(),
39
- getPaginationRowModel: _(),
40
- getRowId: u.getRowId ?? ((r, N, m) => m ? [m.id, r.id].join(".") : r.id.toString()),
41
- defaultColumn: n.enableResizing ? { size: void 0 } : void 0,
42
- ...u
39
+ enableRowSelection: w,
40
+ getCoreRowModel: N(),
41
+ getExpandedRowModel: U(),
42
+ getFilteredRowModel: h(),
43
+ getSortedRowModel: D(),
44
+ getPaginationRowModel: A(),
45
+ getRowId: m.getRowId ?? ((r, j, f) => f ? [f.id, r.id].join(".") : r.id.toString()),
46
+ defaultColumn: n.enableColumnResizing ? {
47
+ minSize: Z,
48
+ ...g
49
+ } : g,
50
+ ...m
43
51
  });
44
- l && (l.current = e), b(e, s);
45
- const o = F(g), i = e.getState().pagination?.pageSize, a = v(void 0);
46
- return c(() => {
47
- a.current = void 0, e.getState().pagination?.pageSize !== t && (e.setPageIndex(0), e.setPageSize(t));
52
+ d && (d.current = e), F(e, u), v(e, S);
53
+ const o = _(l), i = e.getState().pagination?.pageSize, s = T(void 0);
54
+ return R(() => {
55
+ s.current = void 0, e.getState().pagination?.pageSize !== t && (e.setPageIndex(0), e.setPageSize(t));
48
56
  }, [
49
57
  t,
50
58
  o,
51
59
  e
52
- ]), c(() => {
60
+ ]), R(() => {
53
61
  if (!(!o || i == null)) {
54
- if (a.current !== o) {
62
+ if (s.current !== o) {
55
63
  if (i !== t) return;
56
- a.current = o;
64
+ s.current = o;
57
65
  }
58
66
  try {
59
67
  localStorage.setItem(o, JSON.stringify(i));
@@ -68,5 +76,5 @@ var H = (n) => {
68
76
  ]), { table: e };
69
77
  };
70
78
  export {
71
- H as useStyledTable
79
+ ee as useStyledTable
72
80
  };
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "3.45.1",
6
+ "version": "3.46.0",
7
7
  "type": "module",
8
8
  "sideEffects": [
9
9
  "**/*.css",