qaema-ui 0.0.61 → 0.0.63

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,7 +1,8 @@
1
- import { j as i } from "../_virtual/jsx-runtime.js";
1
+ import { j as o } from "../_virtual/jsx-runtime.js";
2
2
  import { useState as m, useEffect as H } from "react";
3
- import { FaTimesCircle as O, FaSearch as R } from "../node_modules/react-icons/fa/index.js";
4
- import o, { useTheme as X } from "styled-components";
3
+ import { FaTimesCircle as O } from "../node_modules/react-icons/fa/index.js";
4
+ import { FiSearch as R } from "../node_modules/react-icons/fi/index.js";
5
+ import n, { useTheme as X } from "styled-components";
5
6
  import { device as S } from "../constants/breakPoints.constant.js";
6
7
  import K from "../hooks/useZIndex.js";
7
8
  import { useQaemaCoreTranslation as M } from "../i18n/i18n.js";
@@ -12,7 +13,7 @@ import b from "./NavItem.js";
12
13
  import w from "./Typography.js";
13
14
  import Z from "../node_modules/react-bootstrap/esm/Button.js";
14
15
  import _ from "../node_modules/react-bootstrap/esm/Form.js";
15
- const v = o.div`
16
+ const v = n.div`
16
17
  direction: ${({ theme: r }) => r == null ? void 0 : r.dir};
17
18
  position: fixed;
18
19
  top: 0;
@@ -43,16 +44,16 @@ const v = o.div`
43
44
  ${({ theme: r }) => {
44
45
  if ((r == null ? void 0 : r.dir) === "rtl") return `padding-left: 0 !important;padding-right: ${r.spacing.xs};`;
45
46
  }}
46
- `, A = o.div`
47
+ `, A = n.div`
47
48
  display: flex;
48
49
  flex-direction: row;
49
50
  width: 100%;
50
51
  justify-content: space-between;
51
- `, J = o.div`
52
+ `, J = n.div`
52
53
  padding-right: ${({ theme: r }) => r.spacing.sm};
53
54
  padding-left: ${({ theme: r }) => r.spacing.sm};
54
55
  cursor: pointer;
55
- `, Q = o.div`
56
+ `, Q = n.div`
56
57
  display: none;
57
58
 
58
59
  @media ${S.tablet} {
@@ -64,15 +65,15 @@ const v = o.div`
64
65
  height: 1.5rem;
65
66
  }
66
67
  }
67
- `, q = o.div`
68
+ `, q = n.div`
68
69
  padding-right: ${({ theme: r }) => r.spacing.s};
69
70
  padding-left: ${({ theme: r }) => r.spacing.s};
70
- `, G = o.div`
71
+ `, G = n.div`
71
72
  justify-content: space-between;
72
73
  display: flex;
73
74
  flex-direction: column;
74
75
  height: 100%;
75
- `, Y = o.div`
76
+ `, Y = n.div`
76
77
  display: flex;
77
78
  flex-direction: row;
78
79
  gap: ${({ theme: r }) => r.spacing.xxs};
@@ -80,7 +81,7 @@ const v = o.div`
80
81
  background-color: ${({ theme: r }) => r.colors.grey.n150};
81
82
  border: 1px solid transparent;
82
83
  border-radius: ${({ theme: r }) => r.borderRadius.lg};
83
- `, P = o(Z)`
84
+ `, P = n(Z)`
84
85
  border: none;
85
86
  padding: 0;
86
87
  margin-top: ${({ theme: r }) => r.spacing.xxs};
@@ -90,16 +91,22 @@ const v = o.div`
90
91
  svg {
91
92
  background-color: ${({ theme: r }) => r.colors.grey.n150};
92
93
  }
93
- `, I = o(_.Control)`
94
+ `, I = n(_.Control)`
94
95
  padding: ${({ theme: r }) => r.spacing.xxs};
95
96
  border: none;
96
97
  background-color: ${({ theme: r }) => r.colors.grey.n150};
97
98
  color: ${({ theme: r }) => r.colors.grey.n350};
99
+ font-size: ${({ theme: r }) => r.typography.sizes.s4};
98
100
 
99
101
  &:focus-visible {
100
102
  outline: none;
101
103
  }
102
- `, rr = o.div`
104
+
105
+ &::placeholder {
106
+ font-size: ${({ theme: r }) => r.typography.sizes.s4} !important;
107
+ color: ${({ theme: r }) => r.colors.grey.n350} !important;
108
+ }
109
+ `, rr = n.div`
103
110
  padding-right: ${({ theme: r }) => r.spacing.s};
104
111
  button {
105
112
  width: 100%;
@@ -108,89 +115,89 @@ const v = o.div`
108
115
  ${({ theme: r }) => {
109
116
  if ((r == null ? void 0 : r.dir) === "rtl") return `padding-right: 0 !important;padding-left: ${r.spacing.s};`;
110
117
  }}
111
- `, nr = o(w)`
118
+ `, ir = n(w)`
112
119
  padding-right: ${({ theme: r }) => r.spacing.s};
113
120
  padding-left: ${({ theme: r }) => r.spacing.s};
114
121
  margin-top: 0;
115
122
  margin-bottom: ${({ theme: r }) => r.spacing.xs};
116
- `, ir = o.div`
123
+ `, or = n.div`
117
124
  padding: ${({ theme: r }) => r.spacing.m};
118
125
  text-align: center;
119
- `, or = o.div`
126
+ `, nr = n.div`
120
127
  button {
121
128
  width: 100%;
122
129
  border-radius: ${({ theme: r }) => r.spacing.xxs};
123
130
  }
124
- `, sr = o(U)`
131
+ `, sr = n(U)`
125
132
  margin-left: -${({ theme: r }) => r.spacing.xs};
126
133
  width: calc(100% + ${({ theme: r }) => r.spacing.xs});
127
134
  ${({ theme: r }) => {
128
135
  if ((r == null ? void 0 : r.dir) === "rtl") return `margin-left: 0; margin-right: -${r.spacing.xs}; width: calc(100% + ${r.spacing.xs});`;
129
136
  }}
130
137
  margin-bottom: ${({ theme: r }) => r.spacing.sm};
131
- `, mr = (r) => {
132
- const { logoSrc: C, searchPlaceHolder: k, categories: a, linkComponent: f, open: T, setOpen: E, currentPath: u, extraSideMenuItems: l, onLogoClick: D } = r, p = X(), { t: L } = M(), B = K("sidemenu"), [c, F] = m(""), [d, N] = m(a), g = (n) => {
138
+ `, jr = (r) => {
139
+ const { logoSrc: C, searchPlaceHolder: k, categories: p, linkComponent: f, open: z, setOpen: T, currentPath: u, extraSideMenuItems: l, onLogoClick: E } = r, a = X(), { t: D } = M(), L = K("sidemenu"), [c, B] = m(""), [t, F] = m(p), g = (i) => {
133
140
  const e = [];
134
- a == null || a.forEach((t) => {
141
+ p == null || p.forEach((d) => {
135
142
  var h;
136
- const s = (h = t == null ? void 0 : t.navItems) == null ? void 0 : h.filter((x) => {
143
+ const s = (h = d == null ? void 0 : d.navItems) == null ? void 0 : h.filter((x) => {
137
144
  var $, y;
138
- return (y = ($ = x == null ? void 0 : x.title) == null ? void 0 : $.toLowerCase()) == null ? void 0 : y.includes(n == null ? void 0 : n.toLowerCase());
145
+ return (y = ($ = x == null ? void 0 : x.title) == null ? void 0 : $.toLowerCase()) == null ? void 0 : y.includes(i == null ? void 0 : i.toLowerCase());
139
146
  });
140
- (s == null ? void 0 : s.length) > 0 && e.push({ ...t, navItems: s });
141
- }), N(e);
142
- }, W = (n) => {
143
- n.key === "Enter" && g(c);
147
+ (s == null ? void 0 : s.length) > 0 && e.push({ ...d, navItems: s });
148
+ }), F(e);
149
+ }, N = (i) => {
150
+ i.key === "Enter" && g(c);
144
151
  };
145
152
  H(() => {
146
153
  c === "" && g(c);
147
154
  }, [c]);
148
- const z = (n, e) => n ? e === n || (e == null ? void 0 : e.startsWith(n + "/")) : !1;
149
- return /* @__PURE__ */ i.jsxs(v, { className: T ? "active" : "", $zIndex: B, children: [
150
- /* @__PURE__ */ i.jsxs(A, { children: [
151
- /* @__PURE__ */ i.jsx(J, { onClick: D, children: /* @__PURE__ */ i.jsx(V, { src: C, width: "6.336rem", height: "2rem" }) }),
152
- /* @__PURE__ */ i.jsx(Q, { onClick: () => E(!1), children: /* @__PURE__ */ i.jsx(O, { color: p.colors.primary.purple.n450 }) })
155
+ const W = (i, e) => i ? e === i || (e == null ? void 0 : e.startsWith(i + "/")) : !1;
156
+ return /* @__PURE__ */ o.jsxs(v, { className: z ? "active" : "", $zIndex: L, children: [
157
+ /* @__PURE__ */ o.jsxs(A, { children: [
158
+ /* @__PURE__ */ o.jsx(J, { onClick: E, children: /* @__PURE__ */ o.jsx(V, { src: C, width: "6.336rem", height: "2rem" }) }),
159
+ /* @__PURE__ */ o.jsx(Q, { onClick: () => T(!1), children: /* @__PURE__ */ o.jsx(O, { color: a.colors.primary.purple.n450 }) })
153
160
  ] }),
154
- /* @__PURE__ */ i.jsx(q, { children: /* @__PURE__ */ i.jsxs(Y, { children: [
155
- /* @__PURE__ */ i.jsx(
161
+ /* @__PURE__ */ o.jsx(q, { children: /* @__PURE__ */ o.jsxs(Y, { children: [
162
+ /* @__PURE__ */ o.jsx(
156
163
  P,
157
164
  {
158
165
  onClick: () => {
159
166
  g(c);
160
167
  },
161
- children: /* @__PURE__ */ i.jsx(R, { color: p.colors.grey.n350 })
168
+ children: /* @__PURE__ */ o.jsx(R, { color: a.colors.grey.n350, size: 20 })
162
169
  }
163
170
  ),
164
- /* @__PURE__ */ i.jsx(
171
+ /* @__PURE__ */ o.jsx(
165
172
  I,
166
173
  {
167
174
  placeholder: k ?? "Search",
168
175
  value: c,
169
- onChange: (n) => {
170
- F(n.target.value);
176
+ onChange: (i) => {
177
+ B(i.target.value);
171
178
  },
172
- onKeyDown: W
179
+ onKeyDown: N
173
180
  }
174
181
  )
175
182
  ] }) }),
176
- /* @__PURE__ */ i.jsxs(G, { children: [
177
- /* @__PURE__ */ i.jsxs("div", { children: [
178
- (d == null ? void 0 : d.length) === 0 && /* @__PURE__ */ i.jsx(ir, { children: /* @__PURE__ */ i.jsx(w, { variant: "smText", children: L("NO_RESULTS_FOUND") }) }),
179
- (d == null ? void 0 : d.length) > 0 && (d == null ? void 0 : d.map((n) => {
180
- var e, t;
181
- return ((e = n == null ? void 0 : n.navItems) == null ? void 0 : e.length) === 0 ? null : /* @__PURE__ */ i.jsxs(rr, { className: n == null ? void 0 : n.code, children: [
182
- /* @__PURE__ */ i.jsx(nr, { variant: "xsText", color: p.colors.grey.n300, children: n == null ? void 0 : n.title }),
183
- (t = n == null ? void 0 : n.navItems) == null ? void 0 : t.map((s) => /* @__PURE__ */ i.jsx(j, { to: (s == null ? void 0 : s.path) ?? "/", component: f, wrapper: !0, children: /* @__PURE__ */ i.jsx(b, { item: { variant: "normal", active: z(s.path, u), ...s } }) }, s == null ? void 0 : s.path))
184
- ] }, n == null ? void 0 : n.title);
183
+ /* @__PURE__ */ o.jsxs(G, { children: [
184
+ /* @__PURE__ */ o.jsxs("div", { children: [
185
+ (t == null ? void 0 : t.length) === 0 && /* @__PURE__ */ o.jsx(or, { children: /* @__PURE__ */ o.jsx(w, { variant: "smText", children: D("NO_RESULTS_FOUND") }) }),
186
+ (t == null ? void 0 : t.length) > 0 && (t == null ? void 0 : t.map((i) => {
187
+ var e, d;
188
+ return ((e = i == null ? void 0 : i.navItems) == null ? void 0 : e.length) === 0 ? null : /* @__PURE__ */ o.jsxs(rr, { className: i == null ? void 0 : i.code, children: [
189
+ /* @__PURE__ */ o.jsx(ir, { variant: "xsText", color: a.colors.grey.n300, children: i == null ? void 0 : i.title }),
190
+ (d = i == null ? void 0 : i.navItems) == null ? void 0 : d.map((s) => /* @__PURE__ */ o.jsx(j, { to: (s == null ? void 0 : s.path) ?? "/", component: f, wrapper: !0, children: /* @__PURE__ */ o.jsx(b, { item: { variant: "normal", active: W(s.path, u), ...s } }) }, s == null ? void 0 : s.path))
191
+ ] }, i == null ? void 0 : i.title);
185
192
  }))
186
193
  ] }),
187
- /* @__PURE__ */ i.jsxs(or, { children: [
188
- (l == null ? void 0 : l.length) > 0 && /* @__PURE__ */ i.jsx(sr, { color: p.colors.grey.n150 }),
189
- l == null ? void 0 : l.map((n) => /* @__PURE__ */ i.jsx(j, { to: (n == null ? void 0 : n.path) ?? "/", component: f, wrapper: !0, children: /* @__PURE__ */ i.jsx(b, { item: { variant: "normal", active: u === n.path, ...n } }) }, n == null ? void 0 : n.path))
194
+ /* @__PURE__ */ o.jsxs(nr, { children: [
195
+ (l == null ? void 0 : l.length) > 0 && /* @__PURE__ */ o.jsx(sr, { color: a.colors.grey.n150 }),
196
+ l == null ? void 0 : l.map((i) => /* @__PURE__ */ o.jsx(j, { to: (i == null ? void 0 : i.path) ?? "/", component: f, wrapper: !0, children: /* @__PURE__ */ o.jsx(b, { item: { variant: "normal", active: u === i.path, ...i } }) }, i == null ? void 0 : i.path))
190
197
  ] })
191
198
  ] })
192
199
  ] });
193
200
  };
194
201
  export {
195
- mr as default
202
+ jr as default
196
203
  };
@@ -49,7 +49,7 @@ const w = s.div`
49
49
  justify-content: start;
50
50
  font-family: 'Noto Sans Display', sans-serif;
51
51
  font-weight: 600;
52
- font-size: ${({ theme: r }) => r.typography.sizes.s1};
52
+ font-size: ${({ theme: r }) => r.typography.sizes.s2};
53
53
  line-height: 0.8125rem;
54
54
  color: ${({ theme: r, state: e }) => e === "negative" ? r.colors.state.error.n450 : r.colors.grey.n650};
55
55
  svg {
@@ -1,167 +1,171 @@
1
1
  import { j as t } from "../../_virtual/jsx-runtime.js";
2
- import { useState as v, useEffect as E, useMemo as q } from "react";
3
- import { useTranslation as G } from "react-i18next";
4
- import J from "../Spinner.js";
5
- import Q from "../Pagination.js";
6
- import U from "../Typography.js";
7
- import L, { CheckboxCell as X } from "./components/CellComponents.js";
2
+ import { useState as p, useRef as Q, useCallback as U, useEffect as T, useMemo as X } from "react";
3
+ import { useTranslation as Y } from "react-i18next";
4
+ import Z from "../Spinner.js";
5
+ import D from "../Pagination.js";
6
+ import k from "../Typography.js";
7
+ import W, { CheckboxCell as F } from "./components/CellComponents.js";
8
8
  import O from "./components/TableHead.js";
9
- import { TableContainer as Y, LoadingOverlay as Z, TablesWrapper as H, DataScrollBox as D, StyledTable as k, TableBody as z, EmptyState as F, TableRow as W, TableCellContainer as b, ActionsTable as R, TableFooter as w } from "./Table.styles.js";
10
- function de({
11
- columns: T,
12
- data: c,
13
- keyField: r,
14
- selectable: j = !1,
15
- onRowSelect: m,
16
- rowActions: x,
17
- stickyHeader: $ = !1,
18
- loading: a = !1,
19
- emptyStateMessage: y,
20
- pagination: n,
21
- onRowClick: f,
22
- rowClassName: u,
9
+ import { TableContainer as R, LoadingOverlay as w, TablesWrapper as ee, DataScrollBox as te, StyledTable as re, TableBody as y, EmptyState as ne, TableRow as I, TableCellContainer as $, ActionsTable as se, TableFooter as le } from "./Table.styles.js";
10
+ function fe({
11
+ columns: C,
12
+ data: s,
13
+ keyField: l,
14
+ selectable: g = !1,
15
+ onRowSelect: a,
16
+ rowActions: m,
17
+ stickyHeader: B = !1,
18
+ loading: x = !1,
19
+ emptyStateMessage: N,
20
+ pagination: r,
21
+ onRowClick: u,
22
+ rowClassName: b,
23
23
  isRowDisabled: d,
24
- breakpoint: I = "md",
25
- alignHeader: C = "start"
24
+ breakpoint: _ = "md",
25
+ alignHeader: E = "start"
26
26
  }) {
27
- const [h, p] = v([]), [S, g] = v(I), [N, B] = v(null), { t: _ } = G();
28
- E(() => {
27
+ const [h, v] = p([]), [L, P] = p(_), [K, z] = p(null), [M, V] = p(!1), f = Q(null), { t: q } = Y(), j = U(() => {
28
+ f.current && V(f.current.scrollWidth > f.current.clientWidth);
29
+ }, []);
30
+ T(() => (j(), window.addEventListener("resize", j), () => window.removeEventListener("resize", j)), [j, s]), T(() => {
29
31
  const e = () => {
30
- B(null);
32
+ z(null);
31
33
  };
32
34
  return document.addEventListener("click", e), () => {
33
35
  document.removeEventListener("click", e);
34
36
  };
35
- }, []), E(() => {
37
+ }, []), T(() => {
36
38
  const e = () => {
37
- const l = window.innerWidth;
38
- l < 576 ? g("sm") : l < 992 ? g("md") : g("lg");
39
+ const i = window.innerWidth;
40
+ i < 576 ? P("sm") : i < 992 ? P("md") : P("lg");
39
41
  };
40
42
  return e(), window.addEventListener("resize", e), () => window.removeEventListener("resize", e);
41
43
  }, []);
42
- const P = q(() => T.filter((e) => typeof e.hidden == "function" ? !e.hidden(S) : !e.hidden), [T, S]), K = () => {
43
- h.length === c.length ? p([]) : p([...c]), m && m(h.length === c.length ? [] : [...c]);
44
- }, M = (e) => {
45
- const l = h.filter((s) => e[r] === s[r]);
46
- return l && l.length > 0;
47
- }, V = (e) => {
48
- const l = h.some((o) => o[r] === e[r]);
49
- let s;
50
- l ? s = h.filter((o) => o[r] !== e[r]) : s = [...h, e], p(s), m && m(s);
44
+ const S = X(() => C.filter((e) => typeof e.hidden == "function" ? !e.hidden(L) : !e.hidden), [C, L]), G = () => {
45
+ h.length === s.length ? v([]) : v([...s]), a && a(h.length === s.length ? [] : [...s]);
46
+ }, H = (e) => {
47
+ const i = h.filter((n) => e[l] === n[l]);
48
+ return i && i.length > 0;
49
+ }, J = (e) => {
50
+ const i = h.some((o) => o[l] === e[l]);
51
+ let n;
52
+ i ? n = h.filter((o) => o[l] !== e[l]) : n = [...h, e], v(n), a && a(n);
51
53
  };
52
- return /* @__PURE__ */ t.jsxs(Y, { children: [
53
- a && /* @__PURE__ */ t.jsx(Z, { children: /* @__PURE__ */ t.jsx(J, { size: "3rem" }) }),
54
- /* @__PURE__ */ t.jsxs(H, { children: [
55
- /* @__PURE__ */ t.jsx(D, { children: /* @__PURE__ */ t.jsxs(k, { children: [
54
+ return /* @__PURE__ */ t.jsxs(R, { children: [
55
+ x && /* @__PURE__ */ t.jsx(w, { children: /* @__PURE__ */ t.jsx(Z, { size: "3rem" }) }),
56
+ /* @__PURE__ */ t.jsxs(ee, { children: [
57
+ /* @__PURE__ */ t.jsx(te, { ref: f, children: /* @__PURE__ */ t.jsxs(re, { children: [
56
58
  /* @__PURE__ */ t.jsx(
57
59
  O,
58
60
  {
59
- data: c,
60
- handleSelectAll: K,
61
+ data: s,
62
+ handleSelectAll: G,
61
63
  selectedRows: h,
62
- visibleColumns: P,
63
- alignHeader: C,
64
+ visibleColumns: S,
65
+ alignHeader: E,
64
66
  rowActions: void 0,
65
- stickyHeader: $,
66
- selectable: j,
67
- loading: a
67
+ stickyHeader: B,
68
+ selectable: g,
69
+ loading: x
68
70
  }
69
71
  ),
70
- /* @__PURE__ */ t.jsx(z, { children: c.length === 0 ? /* @__PURE__ */ t.jsx("tr", { children: /* @__PURE__ */ t.jsx("td", { colSpan: (j ? 1 : 0) + P.length, children: /* @__PURE__ */ t.jsx(F, { children: /* @__PURE__ */ t.jsx(U, { variant: "mdText", children: y ?? _("NO_DATA_AVAILABLE") }) }) }) }) : c.map((e, l) => {
71
- const s = (d == null ? void 0 : d(e)) ?? !1, o = h.some((i) => i[r] === e[r]), A = e[r];
72
+ /* @__PURE__ */ t.jsx(y, { children: s.length === 0 ? /* @__PURE__ */ t.jsx("tr", { children: /* @__PURE__ */ t.jsx("td", { colSpan: (g ? 1 : 0) + S.length, children: /* @__PURE__ */ t.jsx(ne, { children: /* @__PURE__ */ t.jsx(k, { variant: "mdText", children: N ?? q("NO_DATA_AVAILABLE") }) }) }) }) : s.map((e, i) => {
73
+ const n = (d == null ? void 0 : d(e)) ?? !1, o = h.some((c) => c[l] === e[l]), A = e[l];
72
74
  return /* @__PURE__ */ t.jsxs(
73
- W,
75
+ I,
74
76
  {
75
77
  $selected: o,
76
- $disabled: s,
77
- $clickable: !!f && !s,
78
- onClick: () => !s && (f == null ? void 0 : f(e)),
79
- className: (u == null ? void 0 : u(e, l)) ?? "",
78
+ $disabled: n,
79
+ $clickable: !!u && !n,
80
+ onClick: () => {
81
+ n || u == null || u(e);
82
+ },
83
+ className: (b == null ? void 0 : b(e, i)) ?? "",
80
84
  children: [
81
- j && /* @__PURE__ */ t.jsx(b, { $align: "center", $isFirstColumn: !0, children: /* @__PURE__ */ t.jsx(
82
- X,
85
+ g && /* @__PURE__ */ t.jsx($, { $align: "center", $isFirstColumn: !0, children: /* @__PURE__ */ t.jsx(
86
+ F,
83
87
  {
84
88
  checkBoxOptions: {
85
- checked: M(e),
89
+ checked: H(e),
86
90
  $variant: "primary",
87
- $disabled: s,
91
+ $disabled: n,
88
92
  $size: "sm",
89
- onChange: () => !s && V(e)
93
+ onChange: () => !n && J(e)
90
94
  }
91
95
  }
92
96
  ) }),
93
- P.map((i) => /* @__PURE__ */ t.jsx(b, { $align: i.align, children: /* @__PURE__ */ t.jsx(
94
- L,
97
+ S.map((c) => /* @__PURE__ */ t.jsx($, { $align: c.align, children: /* @__PURE__ */ t.jsx(
98
+ W,
95
99
  {
96
- column: i,
100
+ column: c,
97
101
  row: e,
98
- type: i.cellType ?? "text",
99
- align: i.align,
100
- className: i.className,
101
- width: i.width ?? "",
102
- minWidth: i.minWidth ?? "",
103
- maxWidth: i.maxWidth ?? ""
102
+ type: c.cellType ?? "text",
103
+ align: c.align,
104
+ className: c.className,
105
+ width: c.width ?? "",
106
+ minWidth: c.minWidth ?? "",
107
+ maxWidth: c.maxWidth ?? ""
104
108
  }
105
- ) }, `${A}-${i.id}`))
109
+ ) }, `${A}-${c.id}`))
106
110
  ]
107
111
  },
108
112
  A
109
113
  );
110
114
  }) })
111
115
  ] }) }),
112
- x && x.length > 0 && /* @__PURE__ */ t.jsxs(R, { children: [
116
+ m && m.length > 0 && /* @__PURE__ */ t.jsxs(se, { $hasScrollbar: M, children: [
113
117
  /* @__PURE__ */ t.jsx(
114
118
  O,
115
119
  {
116
- data: c,
120
+ data: s,
117
121
  handleSelectAll: () => {
118
122
  },
119
123
  selectedRows: h,
120
124
  visibleColumns: [],
121
- alignHeader: C,
122
- rowActions: x,
123
- stickyHeader: $,
125
+ alignHeader: E,
126
+ rowActions: m,
127
+ stickyHeader: B,
124
128
  selectable: !1,
125
- loading: a
129
+ loading: x
126
130
  }
127
131
  ),
128
- /* @__PURE__ */ t.jsx(z, { children: c.length === 0 ? /* @__PURE__ */ t.jsx("tr", { children: /* @__PURE__ */ t.jsx("td", { children: /* @__PURE__ */ t.jsx("div", { style: { height: "3.5rem" } }) }) }) : c.map((e) => {
129
- const l = (d == null ? void 0 : d(e)) ?? !1;
130
- return /* @__PURE__ */ t.jsx(W, { $disabled: l, children: /* @__PURE__ */ t.jsx(b, { $align: "center", $isActionCell: !0, children: /* @__PURE__ */ t.jsx(
131
- L,
132
+ /* @__PURE__ */ t.jsx(y, { children: s.length === 0 ? /* @__PURE__ */ t.jsx("tr", { children: /* @__PURE__ */ t.jsx("td", { children: /* @__PURE__ */ t.jsx("div", { style: { height: "3.5rem" } }) }) }) : s.map((e) => {
133
+ const i = (d == null ? void 0 : d(e)) ?? !1;
134
+ return /* @__PURE__ */ t.jsx(I, { $disabled: i, children: /* @__PURE__ */ t.jsx($, { $align: "center", $isActionCell: !0, children: /* @__PURE__ */ t.jsx(
135
+ W,
132
136
  {
133
137
  row: e,
134
138
  type: "icon",
135
139
  iconOptions: {
136
- keyField: r,
137
- rowActions: x,
138
- activeDropdown: N,
139
- setActiveDropdown: B
140
+ keyField: l,
141
+ rowActions: m,
142
+ activeDropdown: K,
143
+ setActiveDropdown: z
140
144
  }
141
145
  }
142
- ) }) }, `action-${e[r]}`);
146
+ ) }) }, `action-${e[l]}`);
143
147
  }) })
144
148
  ] })
145
149
  ] }),
146
- n && n.enabled && /* @__PURE__ */ t.jsx(w, { children: /* @__PURE__ */ t.jsx(
147
- Q,
150
+ r && r.enabled && /* @__PURE__ */ t.jsx(le, { children: /* @__PURE__ */ t.jsx(
151
+ D,
148
152
  {
149
- currentPage: n.currentPage,
150
- totalPages: n.totalPages,
151
- onChange: n.onPageChange,
152
- disabled: a,
153
- hidePrevButton: n.hidePrevButton,
154
- hideNextButton: n.hideNextButton,
155
- siblingCount: n.siblingCount,
156
- boundaryCount: n.boundaryCount,
157
- itemsPerPage: n.pageSize,
158
- totalItems: n.totalItems,
159
- itemsPerPageOptions: n.itemsPerPageOptions,
160
- onItemsPerPageChange: n.onItemsPerPageChange
153
+ currentPage: r.currentPage,
154
+ totalPages: r.totalPages,
155
+ onChange: r.onPageChange,
156
+ disabled: x,
157
+ hidePrevButton: r.hidePrevButton,
158
+ hideNextButton: r.hideNextButton,
159
+ siblingCount: r.siblingCount,
160
+ boundaryCount: r.boundaryCount,
161
+ itemsPerPage: r.pageSize,
162
+ totalItems: r.totalItems,
163
+ itemsPerPageOptions: r.itemsPerPageOptions,
164
+ onItemsPerPageChange: r.onItemsPerPageChange
161
165
  }
162
166
  ) })
163
167
  ] });
164
168
  }
165
169
  export {
166
- de as default
170
+ fe as default
167
171
  };
@@ -53,6 +53,8 @@ export declare const TablesWrapper: import("styled-components/dist/types").IStyl
53
53
  export declare const DataScrollBox: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>, "ref"> & {
54
54
  ref?: ((instance: HTMLDivElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLDivElement> | null | undefined;
55
55
  }, never>> & string;
56
- export declare const ActionsTable: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").TableHTMLAttributes<HTMLTableElement>, HTMLTableElement>, never>, "ref"> & {
56
+ export declare const ActionsTable: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<Omit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").TableHTMLAttributes<HTMLTableElement>, HTMLTableElement>, never>, "ref"> & {
57
57
  ref?: ((instance: HTMLTableElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLTableElement> | null | undefined;
58
- }, never>> & string;
58
+ }, {
59
+ $hasScrollbar?: boolean;
60
+ }>> & string;