@dss-kit/ui-kit 0.3.4 → 0.3.6

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.
@@ -2,12 +2,12 @@ import { jsx as t, jsxs as M } from "react/jsx-runtime";
2
2
  import { cx as i } from "@emotion/css";
3
3
  import { forwardRef as B, useEffect as c, useCallback as f, useRef as D } from "react";
4
4
  import N from "../../../assets/svg/modal/close.svg.js";
5
- import { ModalContext as E } from "./context.js";
5
+ import { ModalContext as z } from "./context.js";
6
6
  import { styles as n } from "./styles.js";
7
- import { Portal as P } from "../Portal/Portal.js";
7
+ import { Portal as E } from "../Portal/Portal.js";
8
8
  import { Box as s } from "../Box/Box.js";
9
- import { IconButton as j } from "../../controls/IconButton/IconButton.js";
10
- import { theme as z } from "../../../utils/theme/index.js";
9
+ import { IconButton as P } from "../../controls/IconButton/IconButton.js";
10
+ import { theme as j } from "../../../utils/theme/index.js";
11
11
  const C = B(
12
12
  ({
13
13
  isOpen: o,
@@ -21,7 +21,7 @@ const C = B(
21
21
  disableBodyScroll: l = !0,
22
22
  showAbsoluteCloseButton: g,
23
23
  children: v
24
- }, k) => {
24
+ }, x) => {
25
25
  c(() => {
26
26
  if (l && o && typeof window < "u" && typeof document < "u") {
27
27
  const e = window.getComputedStyle(document.body).overflow;
@@ -40,7 +40,7 @@ const C = B(
40
40
  if (typeof window < "u" && typeof document < "u" && u && o)
41
41
  return document.addEventListener("keydown", d), () => document.removeEventListener("keydown", d);
42
42
  }, [o, u, d]);
43
- const a = D(!1), x = f((e) => {
43
+ const a = D(!1), k = f((e) => {
44
44
  a.current = e.target === e.currentTarget;
45
45
  }, []), b = f(
46
46
  (e) => {
@@ -48,7 +48,7 @@ const C = B(
48
48
  },
49
49
  [m, r]
50
50
  );
51
- return o ? /* @__PURE__ */ t(P, { children: /* @__PURE__ */ t(E.Provider, { value: { isOpen: o, onClose: r }, children: /* @__PURE__ */ t(
51
+ return o ? /* @__PURE__ */ t(E, { children: /* @__PURE__ */ t(z.Provider, { value: { isOpen: o, onClose: r }, children: /* @__PURE__ */ t(
52
52
  s,
53
53
  {
54
54
  position: "fixed",
@@ -59,15 +59,15 @@ const C = B(
59
59
  row: !0,
60
60
  center: !0,
61
61
  flex: 1,
62
- onMouseDown: x,
62
+ onMouseDown: k,
63
63
  onClick: b,
64
- backgroundColor: z.color.fill.bgOverlayPrimary,
64
+ backgroundColor: j.color.fill.bgOverlayPrimary,
65
65
  className: i(n.overlay, y),
66
66
  zIndex: 1,
67
67
  children: /* @__PURE__ */ M(
68
68
  s,
69
69
  {
70
- ref: k,
70
+ ref: x,
71
71
  className: i(
72
72
  n.modal,
73
73
  n[`size_${h}`],
@@ -76,7 +76,7 @@ const C = B(
76
76
  relative: !0,
77
77
  children: [
78
78
  g && /* @__PURE__ */ t(
79
- j,
79
+ P,
80
80
  {
81
81
  className: i(
82
82
  n.closeButton,
@@ -84,6 +84,7 @@ const C = B(
84
84
  ),
85
85
  onClick: r,
86
86
  color: "neutral",
87
+ size: "xs",
87
88
  children: /* @__PURE__ */ t(N, {})
88
89
  }
89
90
  ),
@@ -1,4 +1,36 @@
1
1
  import { BoxProps } from '../../Box';
2
+ /**
3
+ * Пропсы компонента `ModalFooter`.
4
+ *
5
+ * Наследует все пропсы `Box` (см. {@link BoxProps}); ниже переопределены
6
+ * футер-специфичные пропсы с их значениями по умолчанию.
7
+ */
8
+ export interface ModalFooterProps extends BoxProps {
9
+ /**
10
+ * Дочерние элементы футера (обычно кнопки действий).
11
+ * @default undefined */
12
+ children?: React.ReactNode;
13
+ /**
14
+ * Горизонтальное расположение элементов (flex-direction: row).
15
+ * @default true */
16
+ row?: BoxProps["row"];
17
+ /**
18
+ * Включение flexbox layout.
19
+ * @default true */
20
+ flex?: BoxProps["flex"];
21
+ /**
22
+ * Расстояние между дочерними элементами.
23
+ * @default theme.spacing.lg */
24
+ gap?: BoxProps["gap"];
25
+ /**
26
+ * Внутренние отступы футера.
27
+ * @default theme.spacing["2xl"] */
28
+ p?: BoxProps["p"];
29
+ /**
30
+ * Дополнительный CSS-класс для корневого `Box` футера.
31
+ * @default undefined */
32
+ className?: string;
33
+ }
2
34
  /**
3
35
  * Компонент футера модального окна.
4
36
  *
@@ -27,7 +59,7 @@ import { BoxProps } from '../../Box';
27
59
  * </ModalFooter>
28
60
  * ```
29
61
  */
30
- declare const ModalFooter: import('react').ForwardRefExoticComponent<Omit<BoxProps, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
62
+ declare const ModalFooter: import('react').ForwardRefExoticComponent<Omit<ModalFooterProps, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
31
63
  /**
32
64
  * Экспорт компонента ModalFooter.
33
65
  *
@@ -7,19 +7,13 @@ const x = f({
7
7
  borderTop: `1px solid ${o.color.border.neutralAlphaBasic}`
8
8
  }), u = d(
9
9
  ({
10
- /** Дочерние элементы футера (обычно кнопки) */
11
10
  children: r,
12
- /** Горизонтальное расположение элементов. @default true */
13
11
  row: t = !0,
14
- /** Включение flexbox layout. @default true */
15
12
  flex: e = !0,
16
- /** Расстояние между дочерними элементами. @default spacing.lg */
17
13
  gap: m = o.spacing.lg,
18
- /** Внутренние отступы футера. @default spacing['2xl'] */
19
14
  p: s = o.spacing["2xl"],
20
- /** Дополнительные CSS классы */
21
15
  className: a,
22
- /** Остальные пропсы передаются в компонент Box */
16
+ // Остальные пропсы передаются в компонент Box
23
17
  ...p
24
18
  }, l) => /* @__PURE__ */ i(
25
19
  n,
@@ -1 +1,2 @@
1
+ export type { ModalFooterProps } from './ModalFooter';
1
2
  export { ModalFooter } from './ModalFooter';
@@ -1,5 +1,5 @@
1
1
  import { BoxProps } from '../../Box';
2
- interface ModalHeaderProps extends Pick<BoxProps, "p" | "px" | "py" | "pt" | "pb" | "row" | "justifyContent" | "w"> {
2
+ export interface ModalHeaderProps extends Pick<BoxProps, "p" | "px" | "py" | "pt" | "pb" | "row" | "justifyContent" | "w"> {
3
3
  /**
4
4
  * Основной заголовок, отображаемый в шапке модального окна.
5
5
  * Стилизуется как title-3 с полужирным начертанием.
@@ -1,79 +1,80 @@
1
- import { jsxs as t, jsx as o } from "react/jsx-runtime";
1
+ import { jsxs as e, jsx as r } from "react/jsx-runtime";
2
2
  import { forwardRef as B } from "react";
3
3
  import W from "../../../../assets/svg/modal/close.svg.js";
4
4
  import { useModalContext as v } from "../context.js";
5
- import { Box as e } from "../../Box/Box.js";
6
- import { theme as r } from "../../../../utils/theme/index.js";
7
- import { Text as l } from "../../Text/Text.js";
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";
8
8
  import { IconButton as M } from "../../../controls/IconButton/IconButton.js";
9
9
  const j = B(
10
10
  ({
11
- title: a,
12
- subtitle: i,
11
+ title: i,
12
+ subtitle: l,
13
13
  w: m = "full",
14
- p: n,
15
- py: s,
16
- px: d = r.spacing["2xl"],
17
- pt: c = r.spacing["2xl"],
18
- pb: p = r.spacing.lg,
14
+ p: s,
15
+ py: n,
16
+ px: d = o.spacing["2xl"],
17
+ pt: c = o.spacing["2xl"],
18
+ pb: p = o.spacing.lg,
19
19
  row: f = !0,
20
20
  justifyContent: h = "space-between",
21
21
  showCloseButton: g = !1,
22
- className: b,
23
- titleClassName: u,
24
- subtitleClassName: x,
22
+ className: x,
23
+ titleClassName: b,
24
+ subtitleClassName: u,
25
25
  closeButtonClassName: N
26
26
  }, y) => {
27
27
  const { onClose: C } = v();
28
- return /* @__PURE__ */ t(
29
- e,
28
+ return /* @__PURE__ */ e(
29
+ t,
30
30
  {
31
31
  w: m,
32
- p: n,
33
- py: s,
32
+ p: s,
33
+ py: n,
34
34
  px: d,
35
35
  pt: c,
36
36
  pb: p,
37
37
  row: f,
38
38
  justifyContent: h,
39
39
  ref: y,
40
- borderColor: r.color.border.neutralAlphaBasic,
40
+ borderColor: o.color.border.neutralAlphaBasic,
41
41
  borderWidth: 0,
42
42
  borderBottomWidth: 1,
43
43
  borderStyle: "solid",
44
- className: b,
44
+ className: x,
45
45
  children: [
46
- /* @__PURE__ */ t(e, { gap: r.spacing.sm, children: [
47
- /* @__PURE__ */ o(
48
- l,
46
+ /* @__PURE__ */ e(t, { gap: o.spacing.sm, children: [
47
+ /* @__PURE__ */ r(
48
+ a,
49
49
  {
50
50
  variant: "title-3",
51
51
  colorName: "primary",
52
52
  fontWeight: "semibold",
53
- className: u,
54
- children: a
53
+ className: b,
54
+ children: i
55
55
  }
56
56
  ),
57
- /* @__PURE__ */ o(
58
- l,
57
+ /* @__PURE__ */ r(
58
+ a,
59
59
  {
60
60
  variant: "body-1",
61
61
  colorName: "tertiary",
62
62
  fontWeight: "medium",
63
- className: x,
64
- children: i
63
+ className: u,
64
+ children: l
65
65
  }
66
66
  )
67
67
  ] }),
68
- g && /* @__PURE__ */ o(e, { children: /* @__PURE__ */ o(
68
+ g && /* @__PURE__ */ r(
69
69
  M,
70
70
  {
71
71
  onClick: C,
72
72
  color: "neutral",
73
73
  className: N,
74
- children: /* @__PURE__ */ o(W, {})
74
+ size: "xs",
75
+ children: /* @__PURE__ */ r(W, {})
75
76
  }
76
- ) })
77
+ )
77
78
  ]
78
79
  }
79
80
  );
@@ -1 +1,2 @@
1
+ export type { ModalHeaderProps } from './ModalHeader';
1
2
  export { ModalHeader } from './ModalHeader';
@@ -24,7 +24,7 @@ interface ModalMainRef {
24
24
  * @interface ModalMainProps
25
25
  * @extends {PropsWithChildren}
26
26
  */
27
- interface ModalMainProps extends PropsWithChildren {
27
+ export interface ModalMainProps extends PropsWithChildren {
28
28
  /**
29
29
  * Направление расположения элементов
30
30
  * Если true, flex-direction будет row, иначе column
@@ -1,2 +1,2 @@
1
- export type { ModalMainRef } from './ModalMain';
1
+ export type { ModalMainProps, ModalMainRef } from './ModalMain';
2
2
  export { ModalMain } from './ModalMain';
@@ -1,12 +1,28 @@
1
+ import { ReactNode, RefAttributes } from 'react';
1
2
  import { ModalProps } from './Modal';
2
3
  import { ModalFooter } from './ModalFooter';
3
4
  import { ModalHeader } from './ModalHeader';
4
5
  import { ModalMain } from './ModalMain';
5
- interface ModalWithSubComponentsProps extends React.ForwardRefExoticComponent<ModalProps & React.RefAttributes<HTMLDivElement>> {
6
+ /**
7
+ * Тип составного компонента `Modal`.
8
+ *
9
+ * Намеренно НЕ наследует `ForwardRefExoticComponent`: это убирает из
10
+ * автодополнения `<Modal.` служебные React-поля ($$typeof, displayName,
11
+ * propTypes, defaultProps), оставляя `Header` / `Main` / `Footer`.
12
+ * Компонент по-прежнему вызывается как `<Modal>` и принимает `ref`.
13
+ *
14
+ * NB: члены `Function` (apply/bind/call/…) TypeScript всё равно подмешивает
15
+ * к любому вызываемому значению — полностью убрать их без отказа от `<Modal>`
16
+ * нельзя.
17
+ */
18
+ type ModalComponent = ((props: ModalProps & RefAttributes<HTMLDivElement>) => ReactNode) & {
6
19
  Header: typeof ModalHeader;
7
20
  Main: typeof ModalMain;
8
21
  Footer: typeof ModalFooter;
9
- }
10
- declare const ModalWithSubComponents: ModalWithSubComponentsProps;
22
+ };
23
+ declare const ModalWithSubComponents: ModalComponent;
11
24
  export { ModalWithSubComponents as Modal };
12
25
  export type { ModalProps };
26
+ export type { ModalFooterProps } from './ModalFooter';
27
+ export type { ModalHeaderProps } from './ModalHeader';
28
+ export type { ModalMainProps } from './ModalMain';
@@ -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
  };