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 l, jsxs as C } from "react/jsx-runtime";
3
- import { useReactTable as K, flexRender as k } from "../../node_modules/@tanstack/react-table/build/lib/index.js";
4
- import q, { useState as b, useEffect as J } from "react";
5
- import { Checkbox as D } from "./checkbox.js";
6
- import { cn as Q } from "../../lib/utils.js";
7
- import { Input as U } from "./input.js";
8
- import { ScrollArea as A, ScrollBar as w } from "./scroll-area.js";
9
- import { AppMultipleSelectDropdown as X } from "./app-multiple-select-dropdown.js";
10
- import { Table as Y, TableHeader as Z, TableRow as p, TableHead as B, TableBody as ee, TableCell as x } from "./table.js";
11
- import { Skeleton as te } from "./skeleton.js";
12
- import { getFilteredRowModel as le, getSortedRowModel as oe, getPaginationRowModel as ne, getCoreRowModel as ae } from "../../node_modules/@tanstack/table-core/build/lib/index.js";
13
- function ce(s, r, n, d) {
14
- const i = s.getValue(r), u = d == null ? void 0 : d.find((o) => o.column === r), m = (u == null ? void 0 : u.innerFiltersMode) ?? "OR";
15
- if (Array.isArray(i))
16
- return m === "AND" ? n.every((o) => i.includes(o)) : n.some((o) => i.includes(o));
17
- switch (m) {
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 n.every((o) => String(i) === o);
20
+ return i.every((o) => String(r) === o);
20
21
  case "OR":
21
22
  default:
22
- return n.some((o) => String(i) === o);
23
+ return i.some((o) => String(r) === o);
23
24
  }
24
25
  }
25
- function ie(s) {
26
- return s.reduce(
27
- (r, n) => (n.filterFn && (r[n.column] = (d, i, u) => {
28
- const m = d.getValue(i);
29
- switch (n.innerFiltersMode ?? "OR") {
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 u.every(
32
- (g) => n.filterFn(m, [g])
32
+ return d.every(
33
+ (b) => i.filterFn(f, [b])
33
34
  );
34
35
  case "OR":
35
36
  default:
36
- return u.some(
37
- (g) => n.filterFn(m, [g])
37
+ return d.some(
38
+ (b) => i.filterFn(f, [b])
38
39
  );
39
40
  }
40
- }), r),
41
+ }), g),
41
42
  {}
42
43
  ) || {};
43
44
  }
44
- function pe({
45
- columns: s,
46
- data: r,
47
- loading: n = !1,
48
- emptyComponent: d,
49
- className: i,
50
- rowSelection: u = {},
51
- onRowSelectionChange: m,
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: g,
54
+ onCheckedRowsChange: b,
54
55
  notFoundMessage: V = "Nessun risultato trovato.",
55
- searchBar: f = void 0,
56
- dropdownFilters: a = void 0
56
+ searchBar: x = void 0,
57
+ dropdownFilters: c = void 0
57
58
  // outerFiltersMode = EFiltersMode.AND,
58
59
  }) {
59
- var v;
60
- const [T, z] = b([]), [$, j] = b([]), [H, P] = b({}), [y, F] = b(""), [L, O] = b({}), N = m ? u : L, _ = m || O, G = q.useMemo(() => o ? [
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__ */ l("div", { className: "text-center", children: /* @__PURE__ */ l(
64
- D,
64
+ header: ({ table: e }) => /* @__PURE__ */ t("div", { className: "text-center", children: /* @__PURE__ */ t(
65
+ A,
65
66
  {
66
67
  checked: e.getIsAllPageRowsSelected(),
67
- onCheckedChange: (t) => e.toggleAllPageRowsSelected(!!t),
68
+ onCheckedChange: (l) => e.toggleAllPageRowsSelected(!!l),
68
69
  "aria-label": "Seleziona tutti"
69
70
  }
70
71
  ) }),
71
- cell: ({ row: e }) => /* @__PURE__ */ l("div", { className: "text-center", children: /* @__PURE__ */ l(
72
- D,
72
+ cell: ({ row: e }) => /* @__PURE__ */ t("div", { className: "text-center", children: /* @__PURE__ */ t(
73
+ A,
73
74
  {
74
75
  checked: e.getIsSelected(),
75
- onCheckedChange: (t) => e.toggleSelected(!!t),
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
- ...s
83
- ] : s, [s, o]).map((e) => {
84
- const t = a == null ? void 0 : a.find(
85
- (c) => c.column === (e == null ? void 0 : e.accessorKey)
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: t != null && t.filterFn ? t.column : "multiValue"
90
+ filterFn: l != null && l.filterFn ? l.column : "multiValue"
90
91
  };
91
- }), I = {
92
- data: r,
93
- columns: G,
94
- getCoreRowModel: ae(),
95
- getPaginationRowModel: ne(),
96
- onSortingChange: z,
97
- getSortedRowModel: oe(),
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
- getFilteredRowModel: le(),
101
- globalFilterFn: (e, t, c) => c ? (f == null ? void 0 : f.columns.some((S) => {
102
- const R = e.getValue(S);
103
- return String(R).toLowerCase().includes(c.toLowerCase());
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, t, c) => ce(e, t, c, a),
107
- ...ie(a ?? [])
107
+ multiValue: (e, l, a) => fe(e, l, a, c),
108
+ ...he(c ?? [])
108
109
  },
109
110
  state: {
110
- sorting: T,
111
- columnFilters: $,
112
- columnVisibility: H,
113
- rowSelection: N,
114
- globalFilter: y
111
+ sorting: I,
112
+ columnFilters: L,
113
+ columnVisibility: j,
114
+ rowSelection: v,
115
+ globalFilter: k
115
116
  }
116
- }, h = K(I);
117
- return J(() => {
118
- if (g && o) {
119
- const e = h.getFilteredSelectedRowModel().rows.map((t) => t.original);
120
- g(e);
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
- }, [h, g, o, N]), /* @__PURE__ */ C("div", { className: Q("flex h-full w-full flex-col gap-2", i), children: [
123
- (f || (a == null ? void 0 : a.length)) && /* @__PURE__ */ C("div", { className: "flex flex-col items-start justify-between gap-2 sm:flex-row sm:items-end", children: [
124
- f && /* @__PURE__ */ l(
125
- U,
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: f.placeholder ?? "Cerca...",
129
- value: y,
129
+ placeholder: x.placeholder ?? "Cerca...",
130
+ value: k,
130
131
  onChange: (e) => {
131
- F(e.target.value || "");
132
+ G(e.target.value || "");
132
133
  },
133
134
  className: "w-60"
134
135
  }
135
136
  ),
136
- /* @__PURE__ */ l("div", { className: "flex h-full min-w-0 flex-1 items-center", children: a && a.length > 0 && /* @__PURE__ */ C(A, { className: "h-full w-full", children: [
137
- /* @__PURE__ */ l(w, { orientation: "horizontal" }),
138
- /* @__PURE__ */ l("div", { className: "flex w-full max-w-full min-w-0 items-center justify-start gap-2 sm:justify-end", children: a.map((e, t) => {
139
- const [c, S] = b([]);
140
- return /* @__PURE__ */ l(
141
- X,
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: c,
146
+ value: a,
146
147
  placeholder: e.placeholder,
147
148
  label: e.label,
148
- onChange: (R) => {
149
- S(R), j((W) => {
150
- const M = W.filter(
151
- (E) => E.id !== e.column
149
+ onChange: (s) => {
150
+ m(s), $((P) => {
151
+ const R = P.filter(
152
+ (K) => K.id !== e.column
152
153
  );
153
- return R.length === 0 ? M : [
154
- ...M,
155
- { id: e.column, value: R }
154
+ return s.length === 0 ? R : [
155
+ ...R,
156
+ { id: e.column, value: s }
156
157
  ];
157
158
  });
158
159
  }
159
160
  },
160
- t
161
+ l
161
162
  );
162
163
  }) })
163
164
  ] }) })
164
165
  ] }),
165
- /* @__PURE__ */ C(A, { className: "border-d-border h-full min-h-0 w-full rounded-md border", children: [
166
- /* @__PURE__ */ l(w, { orientation: "horizontal" }),
167
- /* @__PURE__ */ l(w, { orientation: "vertical" }),
168
- /* @__PURE__ */ C(Y, { children: [
169
- /* @__PURE__ */ l(Z, { children: h.getHeaderGroups().map((e) => /* @__PURE__ */ l(p, { children: e.headers.map((t) => /* @__PURE__ */ l(
170
- B,
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 ${t.column.columnDef.sticky ? "left-0" : ""}`,
173
- children: t.isPlaceholder ? null : k(
174
- t.column.columnDef.header,
175
- t.getContext()
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
- t.id
179
+ l.id
179
180
  )) }, e.id)) }),
180
- /* @__PURE__ */ l(ee, { children: n ? Array.from({ length: r.length || 8 }).map((e, t) => /* @__PURE__ */ l(p, { children: h.getHeaderGroups()[0].headers.map((c, S) => /* @__PURE__ */ l(
181
- x,
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 ${c.column.columnDef.sticky ? "bg-d-background sticky left-0 z-10" : ""}`,
184
- children: /* @__PURE__ */ l(te, { className: "h-6 w-full" })
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-${t}-${S}`
187
- )) }, `skeleton-row-${t}`)) : (v = h.getRowModel().rows) != null && v.length ? h.getRowModel().rows.map((e) => /* @__PURE__ */ l(
188
- p,
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((t) => /* @__PURE__ */ l(
192
- x,
192
+ children: e.getVisibleCells().map((l) => /* @__PURE__ */ t(
193
+ N,
193
194
  {
194
- className: `${t.column.columnDef.sticky ? "bg-d-background sticky left-0 z-10" : ""}`,
195
- children: k(
196
- t.column.columnDef.cell,
197
- t.getContext()
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
- t.id
201
+ l.id
201
202
  ))
202
203
  },
203
204
  e.id
204
- )) : /* @__PURE__ */ l(p, { children: /* @__PURE__ */ l(
205
- x,
205
+ )) : /* @__PURE__ */ t(w, { children: /* @__PURE__ */ t(
206
+ N,
206
207
  {
207
- colSpan: s.length,
208
+ colSpan: u.length,
208
209
  className: "pt-4 text-center",
209
- children: d || V
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
- pe as DataTable
272
+ ze as DataTable
218
273
  };
@@ -1,23 +1,25 @@
1
1
  "use client";
2
- import { jsx as i, jsxs as e } from "react/jsx-runtime";
3
- import { cn as t } from "../../lib/utils.js";
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
- function N({ className: a, ...n }) {
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: t("mx-auto flex w-full justify-center", a),
17
+ className: e("mx-auto flex w-full justify-center", a),
16
18
  ...n
17
19
  }
18
20
  );
19
21
  }
20
- function P({
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: t("flex flex-row items-center gap-1", a),
30
+ className: e("flex flex-row items-center gap-1", a),
29
31
  ...n
30
32
  }
31
33
  );
32
34
  }
33
- function v({ ...a }) {
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: r = "icon",
40
- ...s
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: t(
50
+ className: e(
49
51
  l({
50
52
  variant: n ? "outline" : "ghost",
51
- size: r
53
+ size: s
52
54
  }),
53
55
  a
54
56
  ),
55
- ...s
57
+ ...r
56
58
  }
57
59
  );
58
60
  }
59
- function b({
61
+ function L({
60
62
  className: a,
61
63
  ...n
62
64
  }) {
63
- return /* @__PURE__ */ e(
65
+ return /* @__PURE__ */ t(
64
66
  o,
65
67
  {
66
68
  "aria-label": "Go to previous page",
67
69
  size: "default",
68
- className: t("gap-1 px-2.5 sm:pl-2.5", a),
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 j({
97
+ function G({
78
98
  className: a,
79
99
  ...n
80
100
  }) {
81
- return /* @__PURE__ */ e(
101
+ return /* @__PURE__ */ t(
82
102
  o,
83
103
  {
84
104
  "aria-label": "Go to next page",
85
105
  size: "default",
86
- className: t("gap-1 px-2.5 sm:pr-2.5", a),
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 k({
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__ */ e(
137
+ return /* @__PURE__ */ t(
100
138
  "span",
101
139
  {
102
140
  "aria-hidden": !0,
103
141
  "data-slot": "pagination-ellipsis",
104
- className: t("flex size-9 items-center justify-center", a),
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
- N as Pagination,
115
- P as PaginationContent,
116
- k as PaginationEllipsis,
117
- v as PaginationItem,
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
- j as PaginationNext,
120
- b as PaginationPrevious
159
+ G as PaginationNext,
160
+ j as PaginationPrevious
121
161
  };