laif-ds 0.1.47 → 0.1.49
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,218 +1,273 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as
|
|
3
|
-
import { useReactTable as
|
|
4
|
-
import
|
|
5
|
-
import { Checkbox as
|
|
6
|
-
import { cn as
|
|
7
|
-
import { Input as
|
|
8
|
-
import { ScrollArea as
|
|
9
|
-
import { AppMultipleSelectDropdown as
|
|
10
|
-
import { Table as
|
|
11
|
-
import { Skeleton as
|
|
12
|
-
import {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
2
|
+
import { jsx as t, jsxs as C } from "react/jsx-runtime";
|
|
3
|
+
import { useReactTable as q, flexRender as z } from "../../node_modules/@tanstack/react-table/build/lib/index.js";
|
|
4
|
+
import J, { useState as S, useEffect as Q } from "react";
|
|
5
|
+
import { Checkbox as A } from "./checkbox.js";
|
|
6
|
+
import { cn as U } from "../../lib/utils.js";
|
|
7
|
+
import { Input as X } from "./input.js";
|
|
8
|
+
import { ScrollArea as D, ScrollBar as y } from "./scroll-area.js";
|
|
9
|
+
import { AppMultipleSelectDropdown as Y } from "./app-multiple-select-dropdown.js";
|
|
10
|
+
import { Table as Z, TableHeader as B, TableRow as w, TableHead as ee, TableBody as te, TableCell as N } from "./table.js";
|
|
11
|
+
import { Skeleton as le } from "./skeleton.js";
|
|
12
|
+
import { Pagination as ne, PaginationContent as oe, PaginationItem as p, PaginationFirst as ae, PaginationPrevious as ie, PaginationLink as ce, PaginationNext as se, PaginationLast as re } from "./pagination.js";
|
|
13
|
+
import { getFilteredRowModel as me, getPaginationRowModel as ue, getSortedRowModel as ge, getCoreRowModel as de } from "../../node_modules/@tanstack/table-core/build/lib/index.js";
|
|
14
|
+
function fe(u, g, i, h) {
|
|
15
|
+
const r = u.getValue(g), d = h == null ? void 0 : h.find((o) => o.column === g), f = (d == null ? void 0 : d.innerFiltersMode) ?? "OR";
|
|
16
|
+
if (Array.isArray(r))
|
|
17
|
+
return f === "AND" ? i.every((o) => r.includes(o)) : i.some((o) => r.includes(o));
|
|
18
|
+
switch (f) {
|
|
18
19
|
case "AND":
|
|
19
|
-
return
|
|
20
|
+
return i.every((o) => String(r) === o);
|
|
20
21
|
case "OR":
|
|
21
22
|
default:
|
|
22
|
-
return
|
|
23
|
+
return i.some((o) => String(r) === o);
|
|
23
24
|
}
|
|
24
25
|
}
|
|
25
|
-
function
|
|
26
|
-
return
|
|
27
|
-
(
|
|
28
|
-
const
|
|
29
|
-
switch (
|
|
26
|
+
function he(u) {
|
|
27
|
+
return u.reduce(
|
|
28
|
+
(g, i) => (i.filterFn && (g[i.column] = (h, r, d) => {
|
|
29
|
+
const f = h.getValue(r);
|
|
30
|
+
switch (i.innerFiltersMode ?? "OR") {
|
|
30
31
|
case "AND":
|
|
31
|
-
return
|
|
32
|
-
(
|
|
32
|
+
return d.every(
|
|
33
|
+
(b) => i.filterFn(f, [b])
|
|
33
34
|
);
|
|
34
35
|
case "OR":
|
|
35
36
|
default:
|
|
36
|
-
return
|
|
37
|
-
(
|
|
37
|
+
return d.some(
|
|
38
|
+
(b) => i.filterFn(f, [b])
|
|
38
39
|
);
|
|
39
40
|
}
|
|
40
|
-
}),
|
|
41
|
+
}), g),
|
|
41
42
|
{}
|
|
42
43
|
) || {};
|
|
43
44
|
}
|
|
44
|
-
function
|
|
45
|
-
columns:
|
|
46
|
-
data:
|
|
47
|
-
loading:
|
|
48
|
-
emptyComponent:
|
|
49
|
-
className:
|
|
50
|
-
rowSelection:
|
|
51
|
-
onRowSelectionChange:
|
|
45
|
+
function ze({
|
|
46
|
+
columns: u,
|
|
47
|
+
data: g,
|
|
48
|
+
loading: i = !1,
|
|
49
|
+
emptyComponent: h,
|
|
50
|
+
className: r,
|
|
51
|
+
rowSelection: d = {},
|
|
52
|
+
onRowSelectionChange: f,
|
|
52
53
|
checkable: o = !1,
|
|
53
|
-
onCheckedRowsChange:
|
|
54
|
+
onCheckedRowsChange: b,
|
|
54
55
|
notFoundMessage: V = "Nessun risultato trovato.",
|
|
55
|
-
searchBar:
|
|
56
|
-
dropdownFilters:
|
|
56
|
+
searchBar: x = void 0,
|
|
57
|
+
dropdownFilters: c = void 0
|
|
57
58
|
// outerFiltersMode = EFiltersMode.AND,
|
|
58
59
|
}) {
|
|
59
|
-
var
|
|
60
|
-
const [
|
|
60
|
+
var M;
|
|
61
|
+
const [I, T] = S([]), [L, $] = S([]), [j, F] = S({}), [k, G] = S(""), [H, O] = S({}), v = f ? d : H, _ = f || O, W = J.useMemo(() => o ? [
|
|
61
62
|
{
|
|
62
63
|
id: "select",
|
|
63
|
-
header: ({ table: e }) => /* @__PURE__ */
|
|
64
|
-
|
|
64
|
+
header: ({ table: e }) => /* @__PURE__ */ t("div", { className: "text-center", children: /* @__PURE__ */ t(
|
|
65
|
+
A,
|
|
65
66
|
{
|
|
66
67
|
checked: e.getIsAllPageRowsSelected(),
|
|
67
|
-
onCheckedChange: (
|
|
68
|
+
onCheckedChange: (l) => e.toggleAllPageRowsSelected(!!l),
|
|
68
69
|
"aria-label": "Seleziona tutti"
|
|
69
70
|
}
|
|
70
71
|
) }),
|
|
71
|
-
cell: ({ row: e }) => /* @__PURE__ */
|
|
72
|
-
|
|
72
|
+
cell: ({ row: e }) => /* @__PURE__ */ t("div", { className: "text-center", children: /* @__PURE__ */ t(
|
|
73
|
+
A,
|
|
73
74
|
{
|
|
74
75
|
checked: e.getIsSelected(),
|
|
75
|
-
onCheckedChange: (
|
|
76
|
+
onCheckedChange: (l) => e.toggleSelected(!!l),
|
|
76
77
|
"aria-label": "Seleziona riga"
|
|
77
78
|
}
|
|
78
79
|
) }),
|
|
79
80
|
enableSorting: !1,
|
|
80
81
|
enableHiding: !1
|
|
81
82
|
},
|
|
82
|
-
...
|
|
83
|
-
] :
|
|
84
|
-
const
|
|
85
|
-
(
|
|
83
|
+
...u
|
|
84
|
+
] : u, [u, o]).map((e) => {
|
|
85
|
+
const l = c == null ? void 0 : c.find(
|
|
86
|
+
(a) => a.column === (e == null ? void 0 : e.accessorKey)
|
|
86
87
|
);
|
|
87
88
|
return {
|
|
88
89
|
...e,
|
|
89
|
-
filterFn:
|
|
90
|
+
filterFn: l != null && l.filterFn ? l.column : "multiValue"
|
|
90
91
|
};
|
|
91
|
-
}),
|
|
92
|
-
data:
|
|
93
|
-
columns:
|
|
94
|
-
getCoreRowModel:
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
onColumnVisibilityChange: P,
|
|
92
|
+
}), E = {
|
|
93
|
+
data: g,
|
|
94
|
+
columns: W,
|
|
95
|
+
getCoreRowModel: de(),
|
|
96
|
+
onSortingChange: T,
|
|
97
|
+
getSortedRowModel: ge(),
|
|
98
|
+
onColumnVisibilityChange: F,
|
|
99
99
|
onRowSelectionChange: _,
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
100
|
+
getPaginationRowModel: ue(),
|
|
101
|
+
getFilteredRowModel: me(),
|
|
102
|
+
globalFilterFn: (e, l, a) => a ? (x == null ? void 0 : x.columns.some((m) => {
|
|
103
|
+
const s = e.getValue(m);
|
|
104
|
+
return String(s).toLowerCase().includes(a.toLowerCase());
|
|
104
105
|
})) ?? !1 : !0,
|
|
105
106
|
filterFns: {
|
|
106
|
-
multiValue: (e,
|
|
107
|
-
...
|
|
107
|
+
multiValue: (e, l, a) => fe(e, l, a, c),
|
|
108
|
+
...he(c ?? [])
|
|
108
109
|
},
|
|
109
110
|
state: {
|
|
110
|
-
sorting:
|
|
111
|
-
columnFilters:
|
|
112
|
-
columnVisibility:
|
|
113
|
-
rowSelection:
|
|
114
|
-
globalFilter:
|
|
111
|
+
sorting: I,
|
|
112
|
+
columnFilters: L,
|
|
113
|
+
columnVisibility: j,
|
|
114
|
+
rowSelection: v,
|
|
115
|
+
globalFilter: k
|
|
115
116
|
}
|
|
116
|
-
},
|
|
117
|
-
return
|
|
118
|
-
if (
|
|
119
|
-
const e =
|
|
120
|
-
|
|
117
|
+
}, n = q(E);
|
|
118
|
+
return Q(() => {
|
|
119
|
+
if (b && o) {
|
|
120
|
+
const e = n.getFilteredSelectedRowModel().rows.map((l) => l.original);
|
|
121
|
+
b(e);
|
|
121
122
|
}
|
|
122
|
-
}, [
|
|
123
|
-
(
|
|
124
|
-
|
|
125
|
-
|
|
123
|
+
}, [n, b, o, v]), /* @__PURE__ */ C("div", { className: U("flex h-full w-full flex-col gap-2", r), children: [
|
|
124
|
+
(x || (c == null ? void 0 : c.length)) && /* @__PURE__ */ C("div", { className: "flex flex-col items-start justify-between gap-2 sm:flex-row sm:items-end", children: [
|
|
125
|
+
x && /* @__PURE__ */ t(
|
|
126
|
+
X,
|
|
126
127
|
{
|
|
127
128
|
iconLeft: "Search",
|
|
128
|
-
placeholder:
|
|
129
|
-
value:
|
|
129
|
+
placeholder: x.placeholder ?? "Cerca...",
|
|
130
|
+
value: k,
|
|
130
131
|
onChange: (e) => {
|
|
131
|
-
|
|
132
|
+
G(e.target.value || "");
|
|
132
133
|
},
|
|
133
134
|
className: "w-60"
|
|
134
135
|
}
|
|
135
136
|
),
|
|
136
|
-
/* @__PURE__ */
|
|
137
|
-
/* @__PURE__ */
|
|
138
|
-
/* @__PURE__ */
|
|
139
|
-
const [
|
|
140
|
-
return /* @__PURE__ */
|
|
141
|
-
|
|
137
|
+
/* @__PURE__ */ t("div", { className: "flex h-full max-w-full min-w-0 flex-1 items-center", children: c && c.length > 0 && /* @__PURE__ */ C(D, { className: "h-full w-full", children: [
|
|
138
|
+
/* @__PURE__ */ t(y, { orientation: "horizontal" }),
|
|
139
|
+
/* @__PURE__ */ t("div", { className: "flex w-full max-w-full min-w-0 items-center justify-start gap-2 sm:justify-end", children: c.map((e, l) => {
|
|
140
|
+
const [a, m] = S([]);
|
|
141
|
+
return /* @__PURE__ */ t(
|
|
142
|
+
Y,
|
|
142
143
|
{
|
|
143
144
|
className: "w-60",
|
|
144
145
|
options: e.items,
|
|
145
|
-
value:
|
|
146
|
+
value: a,
|
|
146
147
|
placeholder: e.placeholder,
|
|
147
148
|
label: e.label,
|
|
148
|
-
onChange: (
|
|
149
|
-
|
|
150
|
-
const
|
|
151
|
-
(
|
|
149
|
+
onChange: (s) => {
|
|
150
|
+
m(s), $((P) => {
|
|
151
|
+
const R = P.filter(
|
|
152
|
+
(K) => K.id !== e.column
|
|
152
153
|
);
|
|
153
|
-
return
|
|
154
|
-
...
|
|
155
|
-
{ id: e.column, value:
|
|
154
|
+
return s.length === 0 ? R : [
|
|
155
|
+
...R,
|
|
156
|
+
{ id: e.column, value: s }
|
|
156
157
|
];
|
|
157
158
|
});
|
|
158
159
|
}
|
|
159
160
|
},
|
|
160
|
-
|
|
161
|
+
l
|
|
161
162
|
);
|
|
162
163
|
}) })
|
|
163
164
|
] }) })
|
|
164
165
|
] }),
|
|
165
|
-
/* @__PURE__ */ C(
|
|
166
|
-
/* @__PURE__ */
|
|
167
|
-
/* @__PURE__ */
|
|
168
|
-
/* @__PURE__ */ C(
|
|
169
|
-
/* @__PURE__ */
|
|
170
|
-
|
|
166
|
+
/* @__PURE__ */ C(D, { className: "border-d-border h-full min-h-0 w-full rounded-md border", children: [
|
|
167
|
+
/* @__PURE__ */ t(y, { orientation: "horizontal" }),
|
|
168
|
+
/* @__PURE__ */ t(y, { orientation: "vertical" }),
|
|
169
|
+
/* @__PURE__ */ C(Z, { children: [
|
|
170
|
+
/* @__PURE__ */ t(B, { children: n.getHeaderGroups().map((e) => /* @__PURE__ */ t(w, { children: e.headers.map((l) => /* @__PURE__ */ t(
|
|
171
|
+
ee,
|
|
171
172
|
{
|
|
172
|
-
className: `bg-d-secondary sticky top-0 z-10 ${
|
|
173
|
-
children:
|
|
174
|
-
|
|
175
|
-
|
|
173
|
+
className: `bg-d-secondary sticky top-0 z-10 ${l.column.columnDef.sticky ? "left-0" : ""}`,
|
|
174
|
+
children: l.isPlaceholder ? null : z(
|
|
175
|
+
l.column.columnDef.header,
|
|
176
|
+
l.getContext()
|
|
176
177
|
)
|
|
177
178
|
},
|
|
178
|
-
|
|
179
|
+
l.id
|
|
179
180
|
)) }, e.id)) }),
|
|
180
|
-
/* @__PURE__ */
|
|
181
|
-
|
|
181
|
+
/* @__PURE__ */ t(te, { children: i ? Array.from({ length: g.length || 8 }).map((e, l) => /* @__PURE__ */ t(w, { children: n.getHeaderGroups()[0].headers.map((a, m) => /* @__PURE__ */ t(
|
|
182
|
+
N,
|
|
182
183
|
{
|
|
183
|
-
className: `w-full ${
|
|
184
|
-
children: /* @__PURE__ */
|
|
184
|
+
className: `w-full ${a.column.columnDef.sticky ? "bg-d-background sticky left-0 z-10" : ""}`,
|
|
185
|
+
children: /* @__PURE__ */ t(le, { className: "h-6 w-full" })
|
|
185
186
|
},
|
|
186
|
-
`skeleton-cell-${
|
|
187
|
-
)) }, `skeleton-row-${
|
|
188
|
-
|
|
187
|
+
`skeleton-cell-${l}-${m}`
|
|
188
|
+
)) }, `skeleton-row-${l}`)) : (M = n.getRowModel().rows) != null && M.length ? n.getRowModel().rows.map((e) => /* @__PURE__ */ t(
|
|
189
|
+
w,
|
|
189
190
|
{
|
|
190
191
|
"data-state": e.getIsSelected() && "selected",
|
|
191
|
-
children: e.getVisibleCells().map((
|
|
192
|
-
|
|
192
|
+
children: e.getVisibleCells().map((l) => /* @__PURE__ */ t(
|
|
193
|
+
N,
|
|
193
194
|
{
|
|
194
|
-
className: `${
|
|
195
|
-
children:
|
|
196
|
-
|
|
197
|
-
|
|
195
|
+
className: `${l.column.columnDef.sticky ? "bg-d-background sticky left-0 z-10" : ""}`,
|
|
196
|
+
children: z(
|
|
197
|
+
l.column.columnDef.cell,
|
|
198
|
+
l.getContext()
|
|
198
199
|
)
|
|
199
200
|
},
|
|
200
|
-
|
|
201
|
+
l.id
|
|
201
202
|
))
|
|
202
203
|
},
|
|
203
204
|
e.id
|
|
204
|
-
)) : /* @__PURE__ */
|
|
205
|
-
|
|
205
|
+
)) : /* @__PURE__ */ t(w, { children: /* @__PURE__ */ t(
|
|
206
|
+
N,
|
|
206
207
|
{
|
|
207
|
-
colSpan:
|
|
208
|
+
colSpan: u.length,
|
|
208
209
|
className: "pt-4 text-center",
|
|
209
|
-
children:
|
|
210
|
+
children: h || V
|
|
210
211
|
}
|
|
211
212
|
) }) })
|
|
212
213
|
] })
|
|
213
|
-
] })
|
|
214
|
+
] }),
|
|
215
|
+
/* @__PURE__ */ t(ne, { children: /* @__PURE__ */ C(oe, { children: [
|
|
216
|
+
/* @__PURE__ */ t(p, { children: /* @__PURE__ */ t(
|
|
217
|
+
ae,
|
|
218
|
+
{
|
|
219
|
+
size: "sm",
|
|
220
|
+
onClick: () => n.setPageIndex(0),
|
|
221
|
+
"aria-label": "Go to first page",
|
|
222
|
+
children: "«"
|
|
223
|
+
}
|
|
224
|
+
) }),
|
|
225
|
+
/* @__PURE__ */ t(p, { children: /* @__PURE__ */ t(
|
|
226
|
+
ie,
|
|
227
|
+
{
|
|
228
|
+
size: "sm",
|
|
229
|
+
onClick: () => {
|
|
230
|
+
n.getCanPreviousPage() && n.previousPage();
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
) }),
|
|
234
|
+
(() => {
|
|
235
|
+
const e = n.getState().pagination.pageIndex, l = n.getPageCount(), a = 5;
|
|
236
|
+
let m = Math.max(
|
|
237
|
+
0,
|
|
238
|
+
e - Math.floor(a / 2)
|
|
239
|
+
), s = m + a;
|
|
240
|
+
return s > l && (s = l, m = Math.max(0, s - a)), n.getPageOptions().slice(m, s).map((P, R) => /* @__PURE__ */ t(p, { children: /* @__PURE__ */ t(
|
|
241
|
+
ce,
|
|
242
|
+
{
|
|
243
|
+
size: "icon",
|
|
244
|
+
isActive: e === P,
|
|
245
|
+
onClick: () => n.setPageIndex(P),
|
|
246
|
+
children: P + 1
|
|
247
|
+
}
|
|
248
|
+
) }, R));
|
|
249
|
+
})(),
|
|
250
|
+
/* @__PURE__ */ t(p, { children: /* @__PURE__ */ t(
|
|
251
|
+
se,
|
|
252
|
+
{
|
|
253
|
+
size: "sm",
|
|
254
|
+
onClick: () => {
|
|
255
|
+
n.getCanNextPage() && n.nextPage();
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
) }),
|
|
259
|
+
/* @__PURE__ */ t(p, { children: /* @__PURE__ */ t(
|
|
260
|
+
re,
|
|
261
|
+
{
|
|
262
|
+
size: "sm",
|
|
263
|
+
onClick: () => n.setPageIndex(n.getPageCount() - 1),
|
|
264
|
+
"aria-label": "Go to last page",
|
|
265
|
+
children: "»"
|
|
266
|
+
}
|
|
267
|
+
) })
|
|
268
|
+
] }) })
|
|
214
269
|
] });
|
|
215
270
|
}
|
|
216
271
|
export {
|
|
217
|
-
|
|
272
|
+
ze as DataTable
|
|
218
273
|
};
|
|
@@ -1,23 +1,25 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as i, jsxs as
|
|
3
|
-
import { cn as
|
|
2
|
+
import { jsx as i, jsxs as t } from "react/jsx-runtime";
|
|
3
|
+
import { cn as e } from "../../lib/utils.js";
|
|
4
4
|
import { buttonVariants as l } from "./button.js";
|
|
5
5
|
import c from "../../node_modules/lucide-react/dist/esm/icons/ellipsis.js";
|
|
6
6
|
import p from "../../node_modules/lucide-react/dist/esm/icons/chevron-right.js";
|
|
7
7
|
import m from "../../node_modules/lucide-react/dist/esm/icons/chevron-left.js";
|
|
8
|
-
|
|
8
|
+
import u from "../../node_modules/lucide-react/dist/esm/icons/chevron-first.js";
|
|
9
|
+
import d from "../../node_modules/lucide-react/dist/esm/icons/chevron-last.js";
|
|
10
|
+
function k({ className: a, ...n }) {
|
|
9
11
|
return /* @__PURE__ */ i(
|
|
10
12
|
"nav",
|
|
11
13
|
{
|
|
12
14
|
role: "navigation",
|
|
13
15
|
"aria-label": "pagination",
|
|
14
16
|
"data-slot": "pagination",
|
|
15
|
-
className:
|
|
17
|
+
className: e("mx-auto flex w-full justify-center", a),
|
|
16
18
|
...n
|
|
17
19
|
}
|
|
18
20
|
);
|
|
19
21
|
}
|
|
20
|
-
function
|
|
22
|
+
function z({
|
|
21
23
|
className: a,
|
|
22
24
|
...n
|
|
23
25
|
}) {
|
|
@@ -25,19 +27,19 @@ function P({
|
|
|
25
27
|
"ul",
|
|
26
28
|
{
|
|
27
29
|
"data-slot": "pagination-content",
|
|
28
|
-
className:
|
|
30
|
+
className: e("flex flex-row items-center gap-1", a),
|
|
29
31
|
...n
|
|
30
32
|
}
|
|
31
33
|
);
|
|
32
34
|
}
|
|
33
|
-
function
|
|
35
|
+
function C({ ...a }) {
|
|
34
36
|
return /* @__PURE__ */ i("li", { "data-slot": "pagination-item", ...a });
|
|
35
37
|
}
|
|
36
38
|
function o({
|
|
37
39
|
className: a,
|
|
38
40
|
isActive: n,
|
|
39
|
-
size:
|
|
40
|
-
...
|
|
41
|
+
size: s = "icon",
|
|
42
|
+
...r
|
|
41
43
|
}) {
|
|
42
44
|
return /* @__PURE__ */ i(
|
|
43
45
|
"a",
|
|
@@ -45,27 +47,45 @@ function o({
|
|
|
45
47
|
"aria-current": n ? "page" : void 0,
|
|
46
48
|
"data-slot": "pagination-link",
|
|
47
49
|
"data-active": n,
|
|
48
|
-
className:
|
|
50
|
+
className: e(
|
|
49
51
|
l({
|
|
50
52
|
variant: n ? "outline" : "ghost",
|
|
51
|
-
size:
|
|
53
|
+
size: s
|
|
52
54
|
}),
|
|
53
55
|
a
|
|
54
56
|
),
|
|
55
|
-
...
|
|
57
|
+
...r
|
|
56
58
|
}
|
|
57
59
|
);
|
|
58
60
|
}
|
|
59
|
-
function
|
|
61
|
+
function L({
|
|
60
62
|
className: a,
|
|
61
63
|
...n
|
|
62
64
|
}) {
|
|
63
|
-
return /* @__PURE__ */
|
|
65
|
+
return /* @__PURE__ */ t(
|
|
64
66
|
o,
|
|
65
67
|
{
|
|
66
68
|
"aria-label": "Go to previous page",
|
|
67
69
|
size: "default",
|
|
68
|
-
className:
|
|
70
|
+
className: e("gap-1 px-2.5 sm:pl-2.5", a),
|
|
71
|
+
...n,
|
|
72
|
+
children: [
|
|
73
|
+
/* @__PURE__ */ i(u, {}),
|
|
74
|
+
/* @__PURE__ */ i("span", { className: "hidden sm:block", children: "First" })
|
|
75
|
+
]
|
|
76
|
+
}
|
|
77
|
+
);
|
|
78
|
+
}
|
|
79
|
+
function j({
|
|
80
|
+
className: a,
|
|
81
|
+
...n
|
|
82
|
+
}) {
|
|
83
|
+
return /* @__PURE__ */ t(
|
|
84
|
+
o,
|
|
85
|
+
{
|
|
86
|
+
"aria-label": "Go to previous page",
|
|
87
|
+
size: "default",
|
|
88
|
+
className: e("gap-1 px-2.5 sm:pl-2.5", a),
|
|
69
89
|
...n,
|
|
70
90
|
children: [
|
|
71
91
|
/* @__PURE__ */ i(m, {}),
|
|
@@ -74,16 +94,16 @@ function b({
|
|
|
74
94
|
}
|
|
75
95
|
);
|
|
76
96
|
}
|
|
77
|
-
function
|
|
97
|
+
function G({
|
|
78
98
|
className: a,
|
|
79
99
|
...n
|
|
80
100
|
}) {
|
|
81
|
-
return /* @__PURE__ */
|
|
101
|
+
return /* @__PURE__ */ t(
|
|
82
102
|
o,
|
|
83
103
|
{
|
|
84
104
|
"aria-label": "Go to next page",
|
|
85
105
|
size: "default",
|
|
86
|
-
className:
|
|
106
|
+
className: e("gap-1 px-2.5 sm:pr-2.5", a),
|
|
87
107
|
...n,
|
|
88
108
|
children: [
|
|
89
109
|
/* @__PURE__ */ i("span", { className: "hidden sm:block", children: "Next" }),
|
|
@@ -92,16 +112,34 @@ function j({
|
|
|
92
112
|
}
|
|
93
113
|
);
|
|
94
114
|
}
|
|
95
|
-
function
|
|
115
|
+
function y({
|
|
116
|
+
className: a,
|
|
117
|
+
...n
|
|
118
|
+
}) {
|
|
119
|
+
return /* @__PURE__ */ t(
|
|
120
|
+
o,
|
|
121
|
+
{
|
|
122
|
+
"aria-label": "Go to next page",
|
|
123
|
+
size: "default",
|
|
124
|
+
className: e("gap-1 px-2.5 sm:pr-2.5", a),
|
|
125
|
+
...n,
|
|
126
|
+
children: [
|
|
127
|
+
/* @__PURE__ */ i("span", { className: "hidden sm:block", children: "Last" }),
|
|
128
|
+
/* @__PURE__ */ i(d, {})
|
|
129
|
+
]
|
|
130
|
+
}
|
|
131
|
+
);
|
|
132
|
+
}
|
|
133
|
+
function F({
|
|
96
134
|
className: a,
|
|
97
135
|
...n
|
|
98
136
|
}) {
|
|
99
|
-
return /* @__PURE__ */
|
|
137
|
+
return /* @__PURE__ */ t(
|
|
100
138
|
"span",
|
|
101
139
|
{
|
|
102
140
|
"aria-hidden": !0,
|
|
103
141
|
"data-slot": "pagination-ellipsis",
|
|
104
|
-
className:
|
|
142
|
+
className: e("flex size-9 items-center justify-center", a),
|
|
105
143
|
...n,
|
|
106
144
|
children: [
|
|
107
145
|
/* @__PURE__ */ i(c, { className: "size-4" }),
|
|
@@ -111,11 +149,13 @@ function k({
|
|
|
111
149
|
);
|
|
112
150
|
}
|
|
113
151
|
export {
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
152
|
+
k as Pagination,
|
|
153
|
+
z as PaginationContent,
|
|
154
|
+
F as PaginationEllipsis,
|
|
155
|
+
L as PaginationFirst,
|
|
156
|
+
C as PaginationItem,
|
|
157
|
+
y as PaginationLast,
|
|
118
158
|
o as PaginationLink,
|
|
119
|
-
|
|
120
|
-
|
|
159
|
+
G as PaginationNext,
|
|
160
|
+
j as PaginationPrevious
|
|
121
161
|
};
|