@fluidattacks/design 9.9.1 → 9.9.2
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.
- package/dist/components/card/card-with-input/index.js +3 -2
- package/dist/components/filters/filters-menu/index.js +24 -23
- package/dist/components/filters/options-menu/options/index.js +38 -37
- package/dist/components/slider/index.js +3 -2
- package/dist/components/table/pagination/pagination-dropdown/index.js +4 -4
- package/package.json +1 -1
|
@@ -12,6 +12,7 @@ import "react-dom";
|
|
|
12
12
|
import "../../typography/heading/index.js";
|
|
13
13
|
import "../../typography/span/index.js";
|
|
14
14
|
import "../../typography/text/index.js";
|
|
15
|
+
import "../../inputs/styles.js";
|
|
15
16
|
import "../../container/index.js";
|
|
16
17
|
import "../../icon-button/index.js";
|
|
17
18
|
import "../../../_virtual/dayjs.min.js";
|
|
@@ -20,7 +21,7 @@ import "../../layout/categories/buttons/index.js";
|
|
|
20
21
|
import { InputNumber as S } from "../../inputs/fields/number/index.js";
|
|
21
22
|
import "../../inputs/utils/action-button/index.js";
|
|
22
23
|
import "../../../node_modules/react-international-phone/dist/index.js";
|
|
23
|
-
const
|
|
24
|
+
const pt = ({
|
|
24
25
|
control: u,
|
|
25
26
|
description: B,
|
|
26
27
|
disabled: t,
|
|
@@ -141,5 +142,5 @@ const it = ({
|
|
|
141
142
|
);
|
|
142
143
|
};
|
|
143
144
|
export {
|
|
144
|
-
|
|
145
|
+
pt as CardWithInput
|
|
145
146
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as a, jsx as o } from "react/jsx-runtime";
|
|
2
2
|
import I from "../../../_virtual/snakeCase.js";
|
|
3
|
-
import { forwardRef as O, useContext as $, useMemo as B, useCallback as
|
|
3
|
+
import { forwardRef as O, useContext as $, useMemo as B, useCallback as p, Fragment as L } from "react";
|
|
4
4
|
import { useTheme as R } from "styled-components";
|
|
5
5
|
import { FiltersContext as A } from "../context/index.js";
|
|
6
6
|
import { NoMatches as P } from "../search/no-matches/index.js";
|
|
@@ -15,6 +15,7 @@ import "react-dom";
|
|
|
15
15
|
import "../../typography/heading/index.js";
|
|
16
16
|
import "../../typography/span/index.js";
|
|
17
17
|
import { Text as M } from "../../typography/text/index.js";
|
|
18
|
+
import "../../inputs/styles.js";
|
|
18
19
|
import { Tag as K } from "../../tag/index.js";
|
|
19
20
|
import "../../../_virtual/dayjs.min.js";
|
|
20
21
|
import "../../icon-button/index.js";
|
|
@@ -26,8 +27,8 @@ import { parseTextFilterValue as U, parseCheckboxesFilterValue as X, parseInclud
|
|
|
26
27
|
const Z = (c, d) => {
|
|
27
28
|
if (d?.some((t) => t.type === "text") ?? !1)
|
|
28
29
|
return U(c ?? "").text ? "1" : "0";
|
|
29
|
-
const
|
|
30
|
-
if (
|
|
30
|
+
const i = new Set(d?.map((t) => t.type) ?? []);
|
|
31
|
+
if (i.size === 1 && i.has("checkboxes"))
|
|
31
32
|
return X(
|
|
32
33
|
c ?? ""
|
|
33
34
|
).values.length.toString();
|
|
@@ -38,11 +39,11 @@ const Z = (c, d) => {
|
|
|
38
39
|
return (t.length + f.length).toString();
|
|
39
40
|
}
|
|
40
41
|
return (c ?? "").split(",").filter((t) => t && t !== "-").length.toString();
|
|
41
|
-
},
|
|
42
|
+
}, Te = O(function({
|
|
42
43
|
includeSearch: d = !1,
|
|
43
44
|
groupedFilters: g,
|
|
44
|
-
handleChangeId:
|
|
45
|
-
pinnedFilters:
|
|
45
|
+
handleChangeId: i,
|
|
46
|
+
pinnedFilters: h
|
|
46
47
|
}, b) {
|
|
47
48
|
const t = R(), {
|
|
48
49
|
id: f,
|
|
@@ -51,16 +52,16 @@ const Z = (c, d) => {
|
|
|
51
52
|
values: s,
|
|
52
53
|
updateSearch: v,
|
|
53
54
|
setValues: u
|
|
54
|
-
} = $(A), C = q(g, y), w = B(() => Object.values(s).filter(Boolean).length > 0, [s]), S =
|
|
55
|
+
} = $(A), C = q(g, y), w = B(() => Object.values(s).filter(Boolean).length > 0, [s]), S = h.length > 0, V = p(
|
|
55
56
|
(e) => () => {
|
|
56
|
-
|
|
57
|
+
i(e), v({ previousValue: s[e] ?? "" }), m({ searchFilter: "", searchGlobal: "" });
|
|
57
58
|
},
|
|
58
|
-
[
|
|
59
|
-
), j =
|
|
59
|
+
[i, v, m, s]
|
|
60
|
+
), j = p(() => {
|
|
60
61
|
u(
|
|
61
62
|
(e) => Object.keys(e).reduce((n, r) => ({ ...n, [r]: "" }), {})
|
|
62
|
-
),
|
|
63
|
-
}, [u,
|
|
63
|
+
), i("");
|
|
64
|
+
}, [u, i]), z = p(
|
|
64
65
|
(e) => {
|
|
65
66
|
m((n) => ({
|
|
66
67
|
...n,
|
|
@@ -68,7 +69,7 @@ const Z = (c, d) => {
|
|
|
68
69
|
}));
|
|
69
70
|
},
|
|
70
71
|
[m]
|
|
71
|
-
), E =
|
|
72
|
+
), E = p(
|
|
72
73
|
(e) => (n) => {
|
|
73
74
|
u((r) => ({ ...r, [e]: n }));
|
|
74
75
|
},
|
|
@@ -107,7 +108,7 @@ const Z = (c, d) => {
|
|
|
107
108
|
scroll: "y",
|
|
108
109
|
width: "100%",
|
|
109
110
|
children: [
|
|
110
|
-
S ? /* @__PURE__ */ o(k, { "data-testid": "menu-pinned", children:
|
|
111
|
+
S ? /* @__PURE__ */ o(k, { "data-testid": "menu-pinned", children: h.map((e) => {
|
|
111
112
|
const n = e.options?.[0]?.items?.map((r) => ({
|
|
112
113
|
name: r.label ?? r.value,
|
|
113
114
|
value: r.value
|
|
@@ -140,17 +141,17 @@ const Z = (c, d) => {
|
|
|
140
141
|
children: e
|
|
141
142
|
}
|
|
142
143
|
) : void 0,
|
|
143
|
-
n.map((
|
|
144
|
-
const G = s[
|
|
144
|
+
n.map((l) => {
|
|
145
|
+
const G = s[l.id], F = Z(
|
|
145
146
|
G,
|
|
146
|
-
|
|
147
|
+
l.options
|
|
147
148
|
);
|
|
148
149
|
return /* @__PURE__ */ o(L, { children: /* @__PURE__ */ a(
|
|
149
150
|
N,
|
|
150
151
|
{
|
|
151
152
|
as: "button",
|
|
152
|
-
"data-testid":
|
|
153
|
-
onClick: V(
|
|
153
|
+
"data-testid": l.id,
|
|
154
|
+
onClick: V(l.id),
|
|
154
155
|
children: [
|
|
155
156
|
/* @__PURE__ */ o(
|
|
156
157
|
T,
|
|
@@ -161,7 +162,7 @@ const Z = (c, d) => {
|
|
|
161
162
|
iconType: "fa-light"
|
|
162
163
|
}
|
|
163
164
|
),
|
|
164
|
-
|
|
165
|
+
l.label,
|
|
165
166
|
/* @__PURE__ */ a(
|
|
166
167
|
x,
|
|
167
168
|
{
|
|
@@ -170,7 +171,7 @@ const Z = (c, d) => {
|
|
|
170
171
|
gap: 0.5,
|
|
171
172
|
style: { marginLeft: "auto" },
|
|
172
173
|
children: [
|
|
173
|
-
f ===
|
|
174
|
+
f === l.id ? /* @__PURE__ */ o(
|
|
174
175
|
T,
|
|
175
176
|
{
|
|
176
177
|
icon: "chevron-right",
|
|
@@ -185,7 +186,7 @@ const Z = (c, d) => {
|
|
|
185
186
|
)
|
|
186
187
|
]
|
|
187
188
|
}
|
|
188
|
-
) },
|
|
189
|
+
) }, l.id);
|
|
189
190
|
})
|
|
190
191
|
]
|
|
191
192
|
},
|
|
@@ -197,5 +198,5 @@ const Z = (c, d) => {
|
|
|
197
198
|
] });
|
|
198
199
|
});
|
|
199
200
|
export {
|
|
200
|
-
|
|
201
|
+
Te as FiltersMenu
|
|
201
202
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as n, Fragment as q, jsxs as w } from "react/jsx-runtime";
|
|
2
2
|
import { useVirtualizer as H } from "../../../../node_modules/@tanstack/react-virtual/dist/esm/index.js";
|
|
3
3
|
import J from "../../../../_virtual/dayjs.min.js";
|
|
4
4
|
import E from "../../../../_virtual/isNaN.js";
|
|
@@ -16,15 +16,16 @@ import "react-dom";
|
|
|
16
16
|
import "../../../typography/heading/index.js";
|
|
17
17
|
import { Span as ee } from "../../../typography/span/index.js";
|
|
18
18
|
import "../../../typography/text/index.js";
|
|
19
|
+
import "../../../inputs/styles.js";
|
|
19
20
|
import "../../../container/index.js";
|
|
20
21
|
import { Tag as te } from "../../../tag/index.js";
|
|
21
22
|
import "../../../icon-button/index.js";
|
|
22
23
|
import "../../../button/index.js";
|
|
23
24
|
import { InputDateRange as oe } from "../../../inputs/fields/date-range/index.js";
|
|
24
|
-
import { TextInput as
|
|
25
|
+
import { TextInput as re } from "../../../inputs/fields/text-input/index.js";
|
|
25
26
|
import "../../../layout/categories/buttons/index.js";
|
|
26
27
|
import "../../../inputs/utils/action-button/index.js";
|
|
27
|
-
import { InputNumberRange as
|
|
28
|
+
import { InputNumberRange as ne } from "../../../inputs/fields/number-range/index.js";
|
|
28
29
|
import "../../../../node_modules/react-international-phone/dist/index.js";
|
|
29
30
|
import { useDebouncedCallback as le } from "../../../../hooks/use-debounced-callback.js";
|
|
30
31
|
import { useMountEffect as ae } from "../../../../hooks/use-mount-effect.js";
|
|
@@ -36,11 +37,11 @@ const ce = ({
|
|
|
36
37
|
onTextValue: t,
|
|
37
38
|
checkboxLabel: s,
|
|
38
39
|
onCheckboxChange: e,
|
|
39
|
-
debounceMs:
|
|
40
|
+
debounceMs: r
|
|
40
41
|
}) => {
|
|
41
42
|
const { text: c, checked: f } = se(
|
|
42
43
|
l ?? ""
|
|
43
|
-
), [u, d] = T(c), [g, R] = T(c), h = Number.isFinite(
|
|
44
|
+
), [u, d] = T(c), [g, R] = T(c), h = Number.isFinite(r) && (r ?? 0) >= 0 ? Math.min(r ?? 0, 5e3) : 0, b = le(t, h);
|
|
44
45
|
c !== g && (R(c), d(c), b.cancel());
|
|
45
46
|
const k = p(
|
|
46
47
|
(x) => {
|
|
@@ -60,7 +61,7 @@ const ce = ({
|
|
|
60
61
|
width: "100%"
|
|
61
62
|
},
|
|
62
63
|
children: [
|
|
63
|
-
s ? /* @__PURE__ */
|
|
64
|
+
s ? /* @__PURE__ */ n(
|
|
64
65
|
O,
|
|
65
66
|
{
|
|
66
67
|
checked: f,
|
|
@@ -70,8 +71,8 @@ const ce = ({
|
|
|
70
71
|
value: "textCheck"
|
|
71
72
|
}
|
|
72
73
|
) : void 0,
|
|
73
|
-
/* @__PURE__ */
|
|
74
|
-
|
|
74
|
+
/* @__PURE__ */ n(
|
|
75
|
+
re,
|
|
75
76
|
{
|
|
76
77
|
name: i,
|
|
77
78
|
onChange: k,
|
|
@@ -90,12 +91,12 @@ const ce = ({
|
|
|
90
91
|
onTextValue: t,
|
|
91
92
|
checkboxLabel: s,
|
|
92
93
|
onCheckboxChange: e,
|
|
93
|
-
debounceMs:
|
|
94
|
-
}) => t === void 0 ? null : /* @__PURE__ */
|
|
94
|
+
debounceMs: r
|
|
95
|
+
}) => t === void 0 ? null : /* @__PURE__ */ n(
|
|
95
96
|
ce,
|
|
96
97
|
{
|
|
97
98
|
checkboxLabel: s,
|
|
98
|
-
debounceMs:
|
|
99
|
+
debounceMs: r,
|
|
99
100
|
filterValue: l,
|
|
100
101
|
id: i,
|
|
101
102
|
label: a,
|
|
@@ -110,7 +111,7 @@ const ce = ({
|
|
|
110
111
|
listRef: t,
|
|
111
112
|
ref: s,
|
|
112
113
|
scrollMargin: e,
|
|
113
|
-
totalSize:
|
|
114
|
+
totalSize: r,
|
|
114
115
|
onChange: c
|
|
115
116
|
}) => {
|
|
116
117
|
const f = new Set(
|
|
@@ -118,19 +119,19 @@ const ce = ({
|
|
|
118
119
|
);
|
|
119
120
|
return l.length > 0 ? (
|
|
120
121
|
// Positioning context for the absolute rows, and it reserves their height
|
|
121
|
-
/* @__PURE__ */
|
|
122
|
+
/* @__PURE__ */ n(
|
|
122
123
|
"div",
|
|
123
124
|
{
|
|
124
125
|
"data-testid": "options-virtual-list",
|
|
125
126
|
ref: t,
|
|
126
127
|
style: {
|
|
127
|
-
height: `${
|
|
128
|
+
height: `${r}px`,
|
|
128
129
|
position: "relative",
|
|
129
130
|
width: "100%"
|
|
130
131
|
},
|
|
131
132
|
children: l.map((u) => {
|
|
132
133
|
const d = i[u.index], g = f.has(d?.value);
|
|
133
|
-
return /* @__PURE__ */
|
|
134
|
+
return /* @__PURE__ */ n(
|
|
134
135
|
"div",
|
|
135
136
|
{
|
|
136
137
|
"data-index": u.index,
|
|
@@ -141,7 +142,7 @@ const ce = ({
|
|
|
141
142
|
left: 0,
|
|
142
143
|
width: "100%"
|
|
143
144
|
},
|
|
144
|
-
children: /* @__PURE__ */
|
|
145
|
+
children: /* @__PURE__ */ n(y, { "aria-selected": g, children: /* @__PURE__ */ n(
|
|
145
146
|
O,
|
|
146
147
|
{
|
|
147
148
|
checked: g,
|
|
@@ -157,7 +158,7 @@ const ce = ({
|
|
|
157
158
|
})
|
|
158
159
|
}
|
|
159
160
|
)
|
|
160
|
-
) : /* @__PURE__ */
|
|
161
|
+
) : /* @__PURE__ */ n(X, {});
|
|
161
162
|
},
|
|
162
163
|
combobox: ({
|
|
163
164
|
id: i,
|
|
@@ -165,14 +166,14 @@ const ce = ({
|
|
|
165
166
|
filterValue: a,
|
|
166
167
|
label: t,
|
|
167
168
|
onSelectChange: s
|
|
168
|
-
}) => /* @__PURE__ */
|
|
169
|
+
}) => /* @__PURE__ */ n(
|
|
169
170
|
Z,
|
|
170
171
|
{
|
|
171
172
|
items: l,
|
|
172
173
|
name: i,
|
|
173
174
|
onSelect: s,
|
|
174
175
|
placeholder: `Search ${t}`,
|
|
175
|
-
selected: a?.split(",").map((e) => e.trim()).find((e) => l.some((
|
|
176
|
+
selected: a?.split(",").map((e) => e.trim()).find((e) => l.some((r) => r.value === e)) ?? null
|
|
176
177
|
}
|
|
177
178
|
),
|
|
178
179
|
list: ({ items: i, filterValue: l, onListChange: a }) => i.map((t) => /* @__PURE__ */ w(
|
|
@@ -182,7 +183,7 @@ const ce = ({
|
|
|
182
183
|
as: "button",
|
|
183
184
|
onClick: a?.(t.value),
|
|
184
185
|
children: [
|
|
185
|
-
t.icon ? /* @__PURE__ */
|
|
186
|
+
t.icon ? /* @__PURE__ */ n(
|
|
186
187
|
z,
|
|
187
188
|
{
|
|
188
189
|
icon: t.icon,
|
|
@@ -191,7 +192,7 @@ const ce = ({
|
|
|
191
192
|
iconType: t.iconType ?? "fa-light"
|
|
192
193
|
}
|
|
193
194
|
) : void 0,
|
|
194
|
-
/* @__PURE__ */
|
|
195
|
+
/* @__PURE__ */ n(
|
|
195
196
|
ee,
|
|
196
197
|
{
|
|
197
198
|
color: L.palette.gray[800],
|
|
@@ -204,15 +205,15 @@ const ce = ({
|
|
|
204
205
|
children: t.label
|
|
205
206
|
}
|
|
206
207
|
),
|
|
207
|
-
/* @__PURE__ */
|
|
208
|
-
t.count === void 0 ? void 0 : /* @__PURE__ */
|
|
208
|
+
/* @__PURE__ */ n("span", { className: "filter-item" }),
|
|
209
|
+
t.count === void 0 ? void 0 : /* @__PURE__ */ n(Y, { children: /* @__PURE__ */ n(
|
|
209
210
|
te,
|
|
210
211
|
{
|
|
211
212
|
tagLabel: t.count.toLocaleString("en-US"),
|
|
212
213
|
variant: "default"
|
|
213
214
|
}
|
|
214
215
|
) }),
|
|
215
|
-
l?.split(",").includes(t?.value) ? /* @__PURE__ */
|
|
216
|
+
l?.split(",").includes(t?.value) ? /* @__PURE__ */ n("div", { style: { marginLeft: "auto" }, children: /* @__PURE__ */ n(
|
|
216
217
|
z,
|
|
217
218
|
{
|
|
218
219
|
icon: "check",
|
|
@@ -231,8 +232,8 @@ const ce = ({
|
|
|
231
232
|
onRangeChange: a,
|
|
232
233
|
updateCalendarState: t
|
|
233
234
|
}) => {
|
|
234
|
-
const [s, e] = l?.split(",").filter((
|
|
235
|
-
return /* @__PURE__ */
|
|
235
|
+
const [s, e] = l?.split(",").filter((r) => J(r).isValid() || r === "-") ?? [];
|
|
236
|
+
return /* @__PURE__ */ n(y, { children: /* @__PURE__ */ n(
|
|
236
237
|
oe,
|
|
237
238
|
{
|
|
238
239
|
name: i,
|
|
@@ -258,9 +259,9 @@ const ce = ({
|
|
|
258
259
|
maxValue: t,
|
|
259
260
|
onRangeNumberChange: s
|
|
260
261
|
}) => {
|
|
261
|
-
const e = l?.split(",") ?? [],
|
|
262
|
-
return /* @__PURE__ */
|
|
263
|
-
|
|
262
|
+
const e = l?.split(",") ?? [], r = e[0]?.trim(), c = e[1]?.trim(), f = r && r !== "" && r !== "-" && !E(Number(r)) ? Number(r) : void 0, u = c && c !== "" && c !== "-" && !E(Number(c)) ? Number(c) : void 0;
|
|
263
|
+
return /* @__PURE__ */ n(y, { children: /* @__PURE__ */ n(
|
|
264
|
+
ne,
|
|
264
265
|
{
|
|
265
266
|
name: i,
|
|
266
267
|
propsMax: {
|
|
@@ -283,7 +284,7 @@ const ce = ({
|
|
|
283
284
|
}
|
|
284
285
|
) });
|
|
285
286
|
}
|
|
286
|
-
},
|
|
287
|
+
}, Ue = ({
|
|
287
288
|
id: i,
|
|
288
289
|
filteredItems: l,
|
|
289
290
|
filterValue: a,
|
|
@@ -291,7 +292,7 @@ const ce = ({
|
|
|
291
292
|
option: s,
|
|
292
293
|
onChange: e
|
|
293
294
|
}) => {
|
|
294
|
-
const { type:
|
|
295
|
+
const { type: r, minValue: c, maxValue: f, checkboxLabel: u, debounceMs: d } = s ?? {}, g = r && me[r], {
|
|
295
296
|
calendarState: { updateCalendarState: R },
|
|
296
297
|
scrollState: h
|
|
297
298
|
} = K(W), b = p(() => 36, []), k = p(
|
|
@@ -332,9 +333,9 @@ const ce = ({
|
|
|
332
333
|
useFlushSync: !1
|
|
333
334
|
}), D = N.getVirtualItems(), F = p(
|
|
334
335
|
(o) => {
|
|
335
|
-
o.stopPropagation(), o.preventDefault(), e(o.target.value,
|
|
336
|
+
o.stopPropagation(), o.preventDefault(), e(o.target.value, r ?? "");
|
|
336
337
|
},
|
|
337
|
-
[e,
|
|
338
|
+
[e, r]
|
|
338
339
|
), P = p(
|
|
339
340
|
(o) => (m) => {
|
|
340
341
|
e(m, "dateRange", o);
|
|
@@ -362,11 +363,11 @@ const ce = ({
|
|
|
362
363
|
[e]
|
|
363
364
|
), G = p(
|
|
364
365
|
(o) => {
|
|
365
|
-
e(o,
|
|
366
|
+
e(o, r ?? "text");
|
|
366
367
|
},
|
|
367
|
-
[e,
|
|
368
|
+
[e, r]
|
|
368
369
|
), U = N.getTotalSize();
|
|
369
|
-
return /* @__PURE__ */
|
|
370
|
+
return /* @__PURE__ */ n(q, { children: g?.({
|
|
370
371
|
items: l,
|
|
371
372
|
label: t,
|
|
372
373
|
virtualItems: D,
|
|
@@ -391,6 +392,6 @@ const ce = ({
|
|
|
391
392
|
}) ?? null });
|
|
392
393
|
};
|
|
393
394
|
export {
|
|
394
|
-
|
|
395
|
+
Ue as Options,
|
|
395
396
|
ce as TextFilterRenderer
|
|
396
397
|
};
|
|
@@ -9,6 +9,7 @@ import { Thumb as k } from "./thumb/index.js";
|
|
|
9
9
|
import { normalizeValue as v } from "./utils.js";
|
|
10
10
|
import { Container as w } from "../container/index.js";
|
|
11
11
|
import { OutlineContainer as y } from "../inputs/outline-container/index.js";
|
|
12
|
+
import "../inputs/styles.js";
|
|
12
13
|
import "../checkbox/index.js";
|
|
13
14
|
import "../icon/index.js";
|
|
14
15
|
import "../../_virtual/lodash.js";
|
|
@@ -22,7 +23,7 @@ import "react-dom";
|
|
|
22
23
|
import "../layout/categories/buttons/index.js";
|
|
23
24
|
import "../inputs/utils/action-button/index.js";
|
|
24
25
|
import "../../node_modules/react-international-phone/dist/index.js";
|
|
25
|
-
const
|
|
26
|
+
const re = (o) => {
|
|
26
27
|
const p = S(), m = $(null), { label: s, minValue: i = 0, maxValue: n = 100, name: r, setValue: d, watch: c } = o, a = x(), t = V({
|
|
27
28
|
...o,
|
|
28
29
|
numberFormatter: a,
|
|
@@ -75,6 +76,6 @@ const ee = (o) => {
|
|
|
75
76
|
) });
|
|
76
77
|
};
|
|
77
78
|
export {
|
|
78
|
-
|
|
79
|
+
re as Slider,
|
|
79
80
|
x as useNumberFormatter
|
|
80
81
|
};
|
|
@@ -14,12 +14,12 @@ import { autoUpdate as j } from "../../../../node_modules/@floating-ui/dom/dist/
|
|
|
14
14
|
const G = 10, H = 20, U = 50, C = 100, ne = () => {
|
|
15
15
|
const t = T(), { table: o } = F(_), S = o?.options.meta?.hasNextPage ?? !1, f = o?.options.meta?.dataSize ?? 0, b = Number.isFinite(f) ? f : 0, g = o?.getRowCount() ?? 0, y = Number.isFinite(g) ? Math.max(0, g) : 0, l = S ? Math.max(b, C) : y, [n, i] = x(!1), [a, u] = x(
|
|
16
16
|
o?.getState().pagination.pageSize ?? 10
|
|
17
|
-
), { refs: p, floatingStyles:
|
|
17
|
+
), { refs: p, floatingStyles: z } = L({
|
|
18
18
|
middleware: [k({ mainAxis: 4 })],
|
|
19
19
|
open: n,
|
|
20
20
|
placement: "top-end",
|
|
21
21
|
whileElementsMounted: j
|
|
22
|
-
}), { setFloating:
|
|
22
|
+
}), { setFloating: E, setReference: I } = p, R = D(
|
|
23
23
|
() => A(
|
|
24
24
|
[G, H, U, C],
|
|
25
25
|
// eslint-disable-next-line functional/prefer-immutable-types
|
|
@@ -87,9 +87,9 @@ const G = 10, H = 20, U = 50, C = 100, ne = () => {
|
|
|
87
87
|
flexDirection: "column",
|
|
88
88
|
px: 0.25,
|
|
89
89
|
py: 0.25,
|
|
90
|
-
ref:
|
|
90
|
+
ref: E,
|
|
91
91
|
shadow: "md",
|
|
92
|
-
style:
|
|
92
|
+
style: { ...z, zIndex: 10 },
|
|
93
93
|
children: R.map((e) => {
|
|
94
94
|
const r = M(e);
|
|
95
95
|
return /* @__PURE__ */ s(
|
package/package.json
CHANGED