@dss-kit/ui-kit 0.3.5 → 0.3.7

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,55 +1,55 @@
1
- import { jsx as t, jsxs as M } from "react/jsx-runtime";
2
- import { cx as i } from "@emotion/css";
3
- import { forwardRef as B, useEffect as c, useCallback as f, useRef as D } from "react";
4
- import N from "../../../assets/svg/modal/close.svg.js";
5
- import { ModalContext as z } from "./context.js";
6
- import { styles as n } from "./styles.js";
7
- import { Portal as E } from "../Portal/Portal.js";
8
- import { Box as s } from "../Box/Box.js";
1
+ import { jsx as t, jsxs as z } from "react/jsx-runtime";
2
+ import { cx as s } from "@emotion/css";
3
+ import { forwardRef as D, useEffect as p, useCallback as d, useRef as N } from "react";
4
+ import B from "../../../assets/svg/modal/close.svg.js";
5
+ import { ModalContext as E } from "./context.js";
6
+ import { styles as i } from "./styles.js";
7
+ import { Portal as I } from "../Portal/Portal.js";
8
+ import { Box as l } from "../Box/Box.js";
9
9
  import { IconButton as P } from "../../controls/IconButton/IconButton.js";
10
- import { theme as j } from "../../../utils/theme/index.js";
11
- const C = B(
10
+ import { theme as f } from "../../../utils/theme/index.js";
11
+ const j = D(
12
12
  ({
13
13
  isOpen: o,
14
14
  onClose: r,
15
15
  overlayClassName: y,
16
- modalClassName: p,
17
- absoluteCloseButtonClassName: w,
16
+ modalClassName: w,
17
+ absoluteCloseButtonClassName: g,
18
18
  size: h = "md",
19
19
  closeOnBackdropClick: m = !0,
20
20
  closeOnEsc: u = !0,
21
- disableBodyScroll: l = !0,
22
- showAbsoluteCloseButton: g,
21
+ disableBodyScroll: a = !0,
22
+ showAbsoluteCloseButton: x,
23
23
  children: v
24
- }, x) => {
25
- c(() => {
26
- if (l && o && typeof window < "u" && typeof document < "u") {
24
+ }, k) => {
25
+ p(() => {
26
+ if (a && o && typeof window < "u" && typeof document < "u") {
27
27
  const e = window.getComputedStyle(document.body).overflow;
28
28
  return document.body.style.overflow = "hidden", () => {
29
29
  document.body.style.overflow = e;
30
30
  };
31
31
  }
32
- }, [o, l]);
33
- const d = f(
32
+ }, [o, a]);
33
+ const n = d(
34
34
  (e) => {
35
35
  e.key === "Escape" && r();
36
36
  },
37
37
  [r]
38
38
  );
39
- c(() => {
39
+ p(() => {
40
40
  if (typeof window < "u" && typeof document < "u" && u && o)
41
- return document.addEventListener("keydown", d), () => document.removeEventListener("keydown", d);
42
- }, [o, u, d]);
43
- const a = D(!1), k = f((e) => {
44
- a.current = e.target === e.currentTarget;
45
- }, []), b = f(
41
+ return document.addEventListener("keydown", n), () => document.removeEventListener("keydown", n);
42
+ }, [o, u, n]);
43
+ const c = N(!1), b = d((e) => {
44
+ c.current = e.target === e.currentTarget;
45
+ }, []), M = d(
46
46
  (e) => {
47
- m && e.target === e.currentTarget && a.current && r();
47
+ m && e.target === e.currentTarget && c.current && r();
48
48
  },
49
49
  [m, r]
50
50
  );
51
- return o ? /* @__PURE__ */ t(E, { children: /* @__PURE__ */ t(z.Provider, { value: { isOpen: o, onClose: r }, children: /* @__PURE__ */ t(
52
- s,
51
+ return o ? /* @__PURE__ */ t(I, { children: /* @__PURE__ */ t(E.Provider, { value: { isOpen: o, onClose: r }, children: /* @__PURE__ */ t(
52
+ l,
53
53
  {
54
54
  position: "fixed",
55
55
  top: 0,
@@ -59,33 +59,39 @@ const C = B(
59
59
  row: !0,
60
60
  center: !0,
61
61
  flex: 1,
62
- onMouseDown: k,
63
- onClick: b,
64
- backgroundColor: j.color.fill.bgOverlayPrimary,
65
- className: i(n.overlay, y),
62
+ onMouseDown: b,
63
+ onClick: M,
64
+ backgroundColor: f.color.fill.bgOverlayPrimary,
65
+ className: s(i.overlay, y),
66
66
  zIndex: 1,
67
- children: /* @__PURE__ */ M(
68
- s,
67
+ children: /* @__PURE__ */ z(
68
+ l,
69
69
  {
70
- ref: x,
71
- className: i(
72
- n.modal,
73
- n[`size_${h}`],
74
- p
70
+ ref: k,
71
+ className: s(
72
+ i.modal,
73
+ i[`size_${h}`],
74
+ w
75
75
  ),
76
76
  relative: !0,
77
77
  children: [
78
- g && /* @__PURE__ */ t(
79
- P,
78
+ x && /* @__PURE__ */ t(
79
+ l,
80
80
  {
81
- className: i(
82
- n.closeButton,
83
- w
84
- ),
85
- onClick: r,
86
- color: "neutral",
87
- size: "xs",
88
- children: /* @__PURE__ */ t(N, {})
81
+ position: "absolute",
82
+ top: f.spacing.lg,
83
+ right: f.spacing.lg,
84
+ zIndex: 1,
85
+ children: /* @__PURE__ */ t(
86
+ P,
87
+ {
88
+ className: g,
89
+ onClick: r,
90
+ color: "neutral",
91
+ size: "xs",
92
+ children: /* @__PURE__ */ t(B, {})
93
+ }
94
+ )
89
95
  }
90
96
  ),
91
97
  v
@@ -96,7 +102,7 @@ const C = B(
96
102
  ) }) }) : null;
97
103
  }
98
104
  );
99
- C.displayName = "Modal";
105
+ j.displayName = "Modal";
100
106
  export {
101
- C as Modal
107
+ j as Modal
102
108
  };
@@ -1,21 +1,21 @@
1
- import { jsxs as e, jsx as r } from "react/jsx-runtime";
2
- import { forwardRef as B } from "react";
3
- import W from "../../../../assets/svg/modal/close.svg.js";
4
- import { useModalContext as v } from "../context.js";
1
+ import { jsxs as e, jsx as o } from "react/jsx-runtime";
2
+ import { forwardRef as v } from "react";
3
+ import B from "../../../../assets/svg/modal/close.svg.js";
4
+ import { useModalContext as W } from "../context.js";
5
5
  import { Box as t } from "../../Box/Box.js";
6
- import { theme as o } from "../../../../utils/theme/index.js";
7
- import { Text as a } from "../../Text/Text.js";
6
+ import { theme as r } from "../../../../utils/theme/index.js";
7
+ import { Text as i } from "../../Text/Text.js";
8
8
  import { IconButton as M } from "../../../controls/IconButton/IconButton.js";
9
- const j = B(
9
+ const j = v(
10
10
  ({
11
- title: i,
12
- subtitle: l,
11
+ title: l,
12
+ subtitle: a,
13
13
  w: m = "full",
14
14
  p: s,
15
- py: n,
16
- px: d = o.spacing["2xl"],
17
- pt: c = o.spacing["2xl"],
18
- pb: p = o.spacing.lg,
15
+ py: d,
16
+ px: n = r.spacing["2xl"],
17
+ pt: c = r.spacing["2xl"],
18
+ pb: p = r.spacing.lg,
19
19
  row: f = !0,
20
20
  justifyContent: h = "space-between",
21
21
  showCloseButton: g = !1,
@@ -24,57 +24,57 @@ const j = B(
24
24
  subtitleClassName: u,
25
25
  closeButtonClassName: N
26
26
  }, y) => {
27
- const { onClose: C } = v();
27
+ const { onClose: C } = W();
28
28
  return /* @__PURE__ */ e(
29
29
  t,
30
30
  {
31
31
  w: m,
32
32
  p: s,
33
- py: n,
34
- px: d,
33
+ py: d,
34
+ px: n,
35
35
  pt: c,
36
36
  pb: p,
37
37
  row: f,
38
38
  justifyContent: h,
39
39
  ref: y,
40
- borderColor: o.color.border.neutralAlphaBasic,
40
+ borderColor: r.color.border.neutralAlphaBasic,
41
41
  borderWidth: 0,
42
42
  borderBottomWidth: 1,
43
43
  borderStyle: "solid",
44
44
  className: x,
45
45
  children: [
46
- /* @__PURE__ */ e(t, { gap: o.spacing.sm, children: [
47
- /* @__PURE__ */ r(
48
- a,
46
+ /* @__PURE__ */ e(t, { gap: r.spacing.sm, children: [
47
+ /* @__PURE__ */ o(
48
+ i,
49
49
  {
50
50
  variant: "title-3",
51
51
  colorName: "primary",
52
52
  fontWeight: "semibold",
53
53
  className: b,
54
- children: i
54
+ children: l
55
55
  }
56
56
  ),
57
- /* @__PURE__ */ r(
58
- a,
57
+ /* @__PURE__ */ o(
58
+ i,
59
59
  {
60
60
  variant: "body-1",
61
61
  colorName: "tertiary",
62
62
  fontWeight: "medium",
63
63
  className: u,
64
- children: l
64
+ children: a
65
65
  }
66
66
  )
67
67
  ] }),
68
- g && /* @__PURE__ */ r(
68
+ g && /* @__PURE__ */ o("div", { children: /* @__PURE__ */ o(
69
69
  M,
70
70
  {
71
71
  onClick: C,
72
72
  color: "neutral",
73
73
  className: N,
74
74
  size: "xs",
75
- children: /* @__PURE__ */ r(W, {})
75
+ children: /* @__PURE__ */ o(B, {})
76
76
  }
77
- )
77
+ ) })
78
78
  ]
79
79
  }
80
80
  );
@@ -1,7 +1,6 @@
1
1
  export declare const styles: {
2
2
  overlay: string;
3
3
  modal: string;
4
- closeButton: string;
5
4
  size_lg: string;
6
5
  size_md: string;
7
6
  size_sm: string;
@@ -1,7 +1,7 @@
1
1
  import { css as i, keyframes as a } from "@emotion/css";
2
- import { bp as t } from "../../../styles/utils/breakpoints.js";
2
+ import { bp as r } from "../../../styles/utils/breakpoints.js";
3
3
  import { theme as o } from "../../../utils/theme/index.js";
4
- const n = a`
4
+ const t = a`
5
5
  0% {
6
6
  opacity: 0;
7
7
  transform: scale(0.95);
@@ -10,29 +10,23 @@ const n = a`
10
10
  opacity: 1;
11
11
  transform: none;
12
12
  }
13
- `, l = {
13
+ `, e = {
14
14
  overlay: i({
15
15
  backdropFilter: "blur(5px)"
16
16
  }),
17
17
  modal: i({
18
18
  animationDuration: "0.2s",
19
19
  animationTimingFunction: "ease-in-out",
20
- animationName: n,
20
+ animationName: t,
21
21
  maxWidth: `calc(100vw - ${o.spacing["3xl"]})`,
22
22
  maxHeight: `calc(100vh - ${o.spacing["7xl"]} - ${o.spacing["7xl"]})`,
23
23
  borderRadius: o.cornerRadius["2xl"],
24
24
  backgroundColor: o.color.fill.bgPrimary,
25
25
  boxShadow: `0 4px 20px 0 ${o.color.effect.shadowS}`,
26
- [t.sm()]: {
26
+ [r.sm()]: {
27
27
  flex: 1
28
28
  }
29
29
  }),
30
- closeButton: i({
31
- position: "absolute",
32
- zIndex: 1,
33
- top: o.spacing.lg,
34
- right: o.spacing.lg
35
- }),
36
30
  size_lg: i({
37
31
  width: 874
38
32
  }),
@@ -44,5 +38,5 @@ const n = a`
44
38
  })
45
39
  };
46
40
  export {
47
- l as styles
41
+ e as styles
48
42
  };
@@ -1,41 +1,41 @@
1
- import { jsx as o, jsxs as P } from "react/jsx-runtime";
1
+ import { jsx as o, jsxs as v } from "react/jsx-runtime";
2
2
  import { cx as p, css as b } from "@emotion/css";
3
- import { useReactTable as He, getPaginationRowModel as ve, getSortedRowModel as Ne, getCoreRowModel as Me, flexRender as H, createColumnHelper as ke } from "@tanstack/react-table";
4
- import { useImperativeHandle as Ie } from "react";
5
- import ze from "../../../assets/svg/table/search.svg.js";
6
- import { styles as Ve } from "./styles.js";
7
- import { useControllableState as m } from "./Table.hooks.js";
3
+ import { useReactTable as He, getPaginationRowModel as Me, getSortedRowModel as Ne, getCoreRowModel as ke, flexRender as H, createColumnHelper as Ie } from "@tanstack/react-table";
4
+ import { useMemo as ze, useImperativeHandle as Ve } from "react";
5
+ import Le from "../../../assets/svg/table/search.svg.js";
6
+ import { styles as Ee } from "./styles.js";
7
+ import { useControllableState as s } from "./Table.hooks.js";
8
8
  import { getColumnPinningStyles as f } from "./Table.utils.js";
9
- import { TablePlaceholder as Le } from "./TablePlaceholder/TablePlaceholder.js";
10
- import { TableWrapper as Ee } from "./TableWrapper/TableWrapper.js";
11
- import { TableHeadRow as Fe } from "./TableHeadRow/TableHeadRow.js";
12
- import { TablePagination as We } from "./TablePagination/TablePagination.js";
13
- import { TableHeadCell as je } from "./TableHeadCell/TableHeadCell.js";
14
- import { TableBodyCell as Be } from "./TableBodyCell/TableBodyCell.js";
15
- import { TableBodyRow as De } from "./TableBodyRow/TableBodyRow.js";
16
- import { TableBodyCellContent as M } from "./TableBodyCellContent/TableBodyCellContent.js";
17
- import { Skeleton as _e } from "../../shared/Skeleton/Skeleton.js";
18
- import { TableHeadCellContent as Ae } from "./TableHeadCellContent/TableHeadCellContent.js";
19
- import { TableHeadCellContentSortable as Ke } from "./TableHeadCellContentSortable/TableHeadCellContentSortable.js";
20
- import { theme as Oe } from "../../../utils/theme/index.js";
21
- import { Box as $e } from "../Box/Box.js";
22
- const { spacing: v, color: n } = Oe, qe = b({
9
+ import { TablePlaceholder as Fe } from "./TablePlaceholder/TablePlaceholder.js";
10
+ import { TableWrapper as We } from "./TableWrapper/TableWrapper.js";
11
+ import { TableHeadRow as je } from "./TableHeadRow/TableHeadRow.js";
12
+ import { TablePagination as Be } from "./TablePagination/TablePagination.js";
13
+ import { TableHeadCell as De } from "./TableHeadCell/TableHeadCell.js";
14
+ import { TableBodyCell as _e } from "./TableBodyCell/TableBodyCell.js";
15
+ import { TableBodyRow as Ae } from "./TableBodyRow/TableBodyRow.js";
16
+ import { TableBodyCellContent as k } from "./TableBodyCellContent/TableBodyCellContent.js";
17
+ import { Skeleton as Ke } from "../../shared/Skeleton/Skeleton.js";
18
+ import { TableHeadCellContent as Oe } from "./TableHeadCellContent/TableHeadCellContent.js";
19
+ import { TableHeadCellContentSortable as $e } from "./TableHeadCellContentSortable/TableHeadCellContentSortable.js";
20
+ import { theme as qe } from "../../../utils/theme/index.js";
21
+ import { Box as Ge } from "../Box/Box.js";
22
+ const { spacing: M, color: t } = qe, Je = b({
23
23
  width: "100%",
24
24
  maxWidth: "100%",
25
25
  minWidth: "max-content",
26
26
  borderCollapse: "collapse",
27
27
  borderSpacing: 0,
28
- backgroundColor: n.fill.bgPrimary
29
- }), Ge = b({
30
- backgroundColor: n.fill.bgSecondary,
31
- color: n.text.tertiary
32
- }), Je = b({
28
+ backgroundColor: t.fill.bgPrimary
29
+ }), Qe = b({
30
+ backgroundColor: t.fill.bgSecondary,
31
+ color: t.text.tertiary
32
+ }), Ue = b({
33
33
  pointerEvents: "none",
34
34
  userSelect: "none"
35
35
  }), N = ["70%", "55%", "80%", "60%"], c = ({
36
- ref: k,
36
+ ref: I,
37
37
  data: h,
38
- columns: I,
38
+ columns: u,
39
39
  showBorders: g = !0,
40
40
  enableSorting: z = !1,
41
41
  enablePagination: S = !1,
@@ -55,7 +55,7 @@ const { spacing: v, color: n } = Oe, qe = b({
55
55
  onPaginationChange: $,
56
56
  rowSelection: q,
57
57
  onRowSelectionChange: G,
58
- totalCount: s,
58
+ totalCount: m,
59
59
  loading: i = !1,
60
60
  loadingRowCount: J = 10,
61
61
  emptyLabels: Q = {
@@ -64,115 +64,121 @@ const { spacing: v, color: n } = Oe, qe = b({
64
64
  action: "Reset"
65
65
  },
66
66
  className: U,
67
- containerClassName: u,
67
+ containerClassName: y,
68
68
  theadClassName: X,
69
69
  tbodyClassName: Y,
70
70
  emptyStateClassName: Z,
71
71
  emptyStateTitleClassName: ee,
72
72
  emptyStateDescriptionClassName: oe,
73
- paginationClassName: te,
74
- tableOptions: le = {},
75
- onRowClick: y,
76
- getRowId: ne,
77
- headCellComponent: ie = je,
78
- bodyCellComponent: w = Be,
79
- headRowComponent: ae = Fe,
80
- bodyRowComponent: x = De,
73
+ paginationClassName: le,
74
+ tableOptions: ne = {},
75
+ onRowClick: w,
76
+ getRowId: te,
77
+ headCellComponent: ie = De,
78
+ bodyCellComponent: x = _e,
79
+ headRowComponent: ae = je,
80
+ bodyRowComponent: R = Ae,
81
81
  onReset: re,
82
- paginationVariant: me,
83
- paginationLabels: se,
82
+ paginationVariant: se,
83
+ paginationLabels: me,
84
84
  renderPageSizeSelectorDropdownItem: ce,
85
85
  renderPageSizeSelectorInputItem: ge
86
86
  }) => {
87
- const [de, pe] = m(
87
+ const [de, pe] = s(
88
88
  W,
89
89
  j,
90
90
  []
91
- ), [he, Ce] = m(
91
+ ), [he, Ce] = s(
92
92
  D,
93
93
  _,
94
94
  []
95
- ), [fe, be] = m(
95
+ ), [fe, be] = s(
96
96
  A,
97
97
  K,
98
98
  {}
99
- ), [a, C] = m(
99
+ ), [a, C] = s(
100
100
  O,
101
101
  $,
102
102
  { pageIndex: 0, pageSize: 10 }
103
- ), [Se, ue] = m(q, G, {}), [ye, we] = m(
103
+ ), [ue, Se] = s(q, G, {}), [ye, we] = s(
104
104
  E,
105
105
  F,
106
106
  { left: [], right: [] }
107
- ), R = B ?? !!s, l = He({
107
+ ), T = B ?? !!m, xe = ze(
108
+ () => u.map((e) => ({
109
+ enableSorting: !1,
110
+ ...e
111
+ })),
112
+ [u]
113
+ ), n = He({
108
114
  data: h,
109
- columns: I,
115
+ columns: xe,
110
116
  state: {
111
117
  sorting: de,
112
118
  columnFilters: he,
113
119
  columnVisibility: fe,
114
120
  pagination: a,
115
- rowSelection: Se,
121
+ rowSelection: ue,
116
122
  columnPinning: ye
117
123
  },
118
124
  onSortingChange: pe,
119
125
  onColumnFiltersChange: Ce,
120
126
  onColumnVisibilityChange: be,
121
127
  onPaginationChange: C,
122
- onRowSelectionChange: ue,
128
+ onRowSelectionChange: Se,
123
129
  onColumnPinningChange: we,
124
- getCoreRowModel: Me(),
125
- getSortedRowModel: z && !R ? Ne() : void 0,
126
- getPaginationRowModel: S ? ve() : void 0,
130
+ getCoreRowModel: ke(),
131
+ getSortedRowModel: z && !T ? Ne() : void 0,
132
+ getPaginationRowModel: S ? Me() : void 0,
127
133
  enableRowSelection: V,
128
134
  enableMultiRowSelection: L,
129
135
  enableColumnPinning: d,
130
- getRowId: ne,
131
- manualSorting: R,
132
- manualPagination: !!s,
133
- pageCount: s ? Math.ceil(s / a.pageSize) : void 0,
134
- ...le
136
+ getRowId: te,
137
+ manualSorting: T,
138
+ manualPagination: !!m,
139
+ pageCount: m ? Math.ceil(m / a.pageSize) : void 0,
140
+ ...ne
135
141
  });
136
- Ie(k, () => l);
137
- const { rows: T } = l.getRowModel(), xe = (e, t) => {
138
- y && y(e.original, t);
139
- }, Re = (e) => /* @__PURE__ */ o(
142
+ Ve(I, () => n);
143
+ const { rows: P } = n.getRowModel(), Re = (e, l) => {
144
+ w && w(e.original, l);
145
+ }, Te = (e) => /* @__PURE__ */ o(
140
146
  ie,
141
147
  {
142
148
  style: {
143
149
  width: e.getSize(),
144
- ...d && f(l, e.column, n.fill.bgSecondary)
150
+ ...d && f(n, e.column, t.fill.bgSecondary)
145
151
  },
146
152
  onClick: i ? void 0 : e.column.getToggleSortingHandler(),
147
153
  children: e.isPlaceholder ? null : H(e.column.columnDef.header, e.getContext())
148
154
  },
149
155
  e.id
150
- ), Te = (e, t) => /* @__PURE__ */ o(
151
- x,
156
+ ), Pe = (e, l) => /* @__PURE__ */ o(
157
+ R,
152
158
  {
153
159
  showBorders: g,
154
160
  isSelected: e.getIsSelected(),
155
- onClick: () => xe(e, t),
161
+ onClick: () => Re(e, l),
156
162
  children: e.getVisibleCells().map((r) => /* @__PURE__ */ o(
157
- w,
163
+ x,
158
164
  {
159
- style: d ? f(l, r.column, n.fill.bgPrimary) : void 0,
165
+ style: d ? f(n, r.column, t.fill.bgPrimary) : void 0,
160
166
  children: H(r.column.columnDef.cell, r.getContext())
161
167
  },
162
168
  r.id
163
169
  ))
164
170
  },
165
171
  e.id
166
- ), Pe = (e) => /* @__PURE__ */ o(
167
- x,
172
+ ), ve = (e) => /* @__PURE__ */ o(
173
+ R,
168
174
  {
169
175
  showBorders: g,
170
- children: l.getVisibleLeafColumns().map((t, r) => /* @__PURE__ */ o(
171
- w,
176
+ children: n.getVisibleLeafColumns().map((l, r) => /* @__PURE__ */ o(
177
+ x,
172
178
  {
173
- style: d ? f(l, t, n.fill.bgPrimary) : void 0,
174
- children: /* @__PURE__ */ o(M, { children: /* @__PURE__ */ o(
175
- _e,
179
+ style: d ? f(n, l, t.fill.bgPrimary) : void 0,
180
+ children: /* @__PURE__ */ o(k, { children: /* @__PURE__ */ o(
181
+ Ke,
176
182
  {
177
183
  variant: "text",
178
184
  height: 16,
@@ -180,69 +186,69 @@ const { spacing: v, color: n } = Oe, qe = b({
180
186
  }
181
187
  ) })
182
188
  },
183
- t.id
189
+ l.id
184
190
  ))
185
191
  },
186
192
  `skeleton-row-${e}`
187
193
  );
188
- return !i && !T.length ? /* @__PURE__ */ o(
189
- Le,
194
+ return !i && !P.length ? /* @__PURE__ */ o(
195
+ Fe,
190
196
  {
191
197
  icon: /* @__PURE__ */ o(
192
- ze,
198
+ Le,
193
199
  {
194
200
  width: 24,
195
201
  height: 24,
196
- style: { color: n.icon.tertiary, marginBottom: v.sm }
202
+ style: { color: t.icon.tertiary, marginBottom: M.sm }
197
203
  }
198
204
  ),
199
205
  labels: Q,
200
206
  onReset: re,
201
- className: p(u, Z),
207
+ className: p(y, Z),
202
208
  titleClassName: ee,
203
209
  descriptionClassName: oe
204
210
  }
205
- ) : /* @__PURE__ */ P($e, { w: "full", gap: v.xl, className: p(u), children: [
206
- /* @__PURE__ */ o(Ee, { data: h, showBorders: g, children: /* @__PURE__ */ P("table", { className: p(qe, Ve.table, U), children: [
211
+ ) : /* @__PURE__ */ v(Ge, { w: "full", gap: M.xl, className: p(y), children: [
212
+ /* @__PURE__ */ o(We, { data: h, showBorders: g, children: /* @__PURE__ */ v("table", { className: p(Je, Ee.table, U), children: [
207
213
  /* @__PURE__ */ o(
208
214
  "thead",
209
215
  {
210
216
  className: p(
211
- Ge,
212
- { [Je]: i },
217
+ Qe,
218
+ { [Ue]: i },
213
219
  X
214
220
  ),
215
221
  "aria-busy": i,
216
- children: l.getHeaderGroups().map((e) => /* @__PURE__ */ o(ae, { showBorders: g, children: e.headers.map(Re) }, e.id))
222
+ children: n.getHeaderGroups().map((e) => /* @__PURE__ */ o(ae, { showBorders: g, children: e.headers.map(Te) }, e.id))
217
223
  }
218
224
  ),
219
225
  /* @__PURE__ */ o("tbody", { className: Y, children: i ? Array.from(
220
226
  { length: J },
221
- (e, t) => Pe(t)
222
- ) : T.map((e, t) => Te(e, t)) })
227
+ (e, l) => ve(l)
228
+ ) : P.map((e, l) => Pe(e, l)) })
223
229
  ] }) }),
224
230
  S && !i && /* @__PURE__ */ o(
225
- We,
231
+ Be,
226
232
  {
227
233
  pageIndex: a.pageIndex,
228
234
  pageSize: a.pageSize,
229
- totalCount: s || h.length,
230
- variant: me,
231
- labels: se,
235
+ totalCount: m || h.length,
236
+ variant: se,
237
+ labels: me,
232
238
  renderPageSizeSelectorDropdownItem: ce,
233
239
  renderPageSizeSelectorInputItem: ge,
234
240
  onPageChange: (e) => C({ ...a, pageIndex: e }),
235
241
  onPageSizeChange: (e) => C({ ...a, pageSize: e, pageIndex: 0 }),
236
- className: te
242
+ className: le
237
243
  }
238
244
  )
239
245
  ] });
240
246
  };
241
247
  c.displayName = "Table";
242
- c.HeadCellContent = Ae;
243
- c.BodyCellContent = M;
244
- c.HeadCellContentSortable = Ke;
245
- c.createColumnHelper = ke;
248
+ c.HeadCellContent = Oe;
249
+ c.BodyCellContent = k;
250
+ c.HeadCellContentSortable = $e;
251
+ c.createColumnHelper = Ie;
246
252
  export {
247
253
  c as Table
248
254
  };