@alfadocs/ui-kit 0.16.0 → 0.17.0
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/_chunks/benefit-card-DXmrAyfn.js +219 -0
- package/dist/_chunks/copy-field-BCHAZ8QV.js +298 -0
- package/dist/_chunks/{navigation-menu-Bav1d_wA.js → navigation-menu-DdufF-_4.js} +18 -18
- package/dist/_chunks/{pagination-OQBlnb1H.js → pagination-F1ei4khE.js} +180 -158
- package/dist/_chunks/public-header.agent-sDi9N9su.js +562 -0
- package/dist/agent-catalog.json +37 -1
- package/dist/components/benefit-card/index.js +1 -1
- package/dist/components/copy-field/copy-field.agent.d.ts +16 -0
- package/dist/components/copy-field/copy-field.d.ts +50 -0
- package/dist/components/copy-field/index.d.ts +5 -0
- package/dist/components/copy-field/index.js +6 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/components/navigation-menu/index.js +1 -1
- package/dist/components/pagination/index.js +1 -1
- package/dist/components/public-header/index.d.ts +1 -1
- package/dist/components/public-header/index.js +1 -1
- package/dist/components/public-header/public-header.d.ts +36 -1
- package/dist/hooks/use-controllable-state.d.ts +10 -0
- package/dist/hooks/use-copy-to-clipboard.d.ts +45 -0
- package/dist/i18n/config.js +21 -0
- package/dist/i18n/resources.d.ts +21 -0
- package/dist/index.js +458 -455
- package/dist/locales/de.json +7 -0
- package/dist/locales/en.json +7 -0
- package/dist/locales/it.json +7 -0
- package/dist/tokens.css +1 -1
- package/package.json +5 -1
- package/dist/_chunks/benefit-card-Czs0oXdi.js +0 -161
- package/dist/_chunks/public-header.agent-ZLBAQ30j.js +0 -242
|
@@ -1,14 +1,32 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import {
|
|
1
|
+
import { jsxs as h, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { useState as Z, useRef as z, useEffect as y, useCallback as k, forwardRef as u, useMemo as _, useId as D } from "react";
|
|
3
3
|
import * as m from "@radix-ui/react-select";
|
|
4
|
-
import { c as
|
|
4
|
+
import { c as ee } from "./index-D2ZczOXr.js";
|
|
5
5
|
import { useTranslation as x } from "react-i18next";
|
|
6
|
-
import { u as
|
|
7
|
-
import { E as
|
|
6
|
+
import { u as se } from "./registry-C9nwlNyL.js";
|
|
7
|
+
import { E as ae } from "./ellipsis-rgGdiK_9.js";
|
|
8
8
|
import { C as F } from "./chevron-right-BrpYejk0.js";
|
|
9
|
-
import { C as
|
|
10
|
-
import { C as
|
|
11
|
-
import { C as
|
|
9
|
+
import { C as ie } from "./chevron-left-CX1jqD2M.js";
|
|
10
|
+
import { C as te, a as ne } from "./chevrons-right-d9MwesPG.js";
|
|
11
|
+
import { C as re } from "./check-DPdL_Sm7.js";
|
|
12
|
+
function de({
|
|
13
|
+
value: e,
|
|
14
|
+
defaultValue: a,
|
|
15
|
+
onChange: i
|
|
16
|
+
}) {
|
|
17
|
+
const s = e !== void 0, [d, r] = Z(a), n = z(i);
|
|
18
|
+
y(() => {
|
|
19
|
+
n.current = i;
|
|
20
|
+
}, [i]);
|
|
21
|
+
const p = s ? e : d, v = k(
|
|
22
|
+
(o) => {
|
|
23
|
+
var b;
|
|
24
|
+
s || r(o), (b = n.current) == null || b.call(n, o);
|
|
25
|
+
},
|
|
26
|
+
[s]
|
|
27
|
+
);
|
|
28
|
+
return [p, v];
|
|
29
|
+
}
|
|
12
30
|
const oe = {
|
|
13
31
|
id: "pagination",
|
|
14
32
|
capabilities: ["paginate", "range_navigate"],
|
|
@@ -69,7 +87,7 @@ const oe = {
|
|
|
69
87
|
"ds:focus-visible:outline-[var(--ring)] ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
|
|
70
88
|
"ds:disabled:cursor-not-allowed ds:disabled:opacity-50",
|
|
71
89
|
"ds:aria-disabled:cursor-not-allowed ds:aria-disabled:opacity-50"
|
|
72
|
-
].join(" "),
|
|
90
|
+
].join(" "), P = ee(le, {
|
|
73
91
|
variants: {
|
|
74
92
|
size: {
|
|
75
93
|
sm: "ds:min-w-[var(--min-target-size)] ds:min-h-[var(--min-target-size)] ds:text-[length:var(--font-size-sm)] ds:ps-[var(--spacing-xs)] ds:pe-[var(--spacing-xs)]",
|
|
@@ -83,160 +101,164 @@ const oe = {
|
|
|
83
101
|
},
|
|
84
102
|
defaultVariants: { size: "md", active: !1 }
|
|
85
103
|
});
|
|
86
|
-
function
|
|
87
|
-
const
|
|
88
|
-
for (let s = e; s <= a; s++)
|
|
89
|
-
return
|
|
104
|
+
function w(e, a) {
|
|
105
|
+
const i = [];
|
|
106
|
+
for (let s = e; s <= a; s++) i.push(s);
|
|
107
|
+
return i;
|
|
90
108
|
}
|
|
91
|
-
function ce(e, a,
|
|
109
|
+
function ce(e, a, i = 1, s = 1) {
|
|
92
110
|
if (a <= 0) return [];
|
|
93
|
-
if (
|
|
94
|
-
const r =
|
|
111
|
+
if (i = Math.max(0, i), s = Math.max(1, s), s * 2 + i * 2 + 3 >= a) return w(1, a);
|
|
112
|
+
const r = w(1, s), n = w(a - s + 1, a), p = Math.max(
|
|
95
113
|
Math.min(
|
|
96
|
-
e -
|
|
97
|
-
a - s -
|
|
114
|
+
e - i,
|
|
115
|
+
a - s - i * 2 - 1
|
|
98
116
|
),
|
|
99
117
|
s + 2
|
|
100
|
-
),
|
|
101
|
-
Math.max(e +
|
|
118
|
+
), v = Math.min(
|
|
119
|
+
Math.max(e + i, s + i * 2 + 2),
|
|
102
120
|
n[0] - 2
|
|
103
|
-
),
|
|
104
|
-
return
|
|
121
|
+
), o = [...r];
|
|
122
|
+
return p > s + 2 ? o.push("ellipsis-start") : s + 1 < a - s && o.push(s + 1), o.push(...w(p, v)), v < a - s - 1 ? o.push("ellipsis-end") : a - s > s && o.push(a - s), o.push(...n), o;
|
|
105
123
|
}
|
|
106
|
-
const me =
|
|
124
|
+
const me = u(
|
|
107
125
|
({
|
|
108
126
|
totalPages: e,
|
|
109
127
|
page: a,
|
|
110
|
-
defaultPage:
|
|
128
|
+
defaultPage: i = 1,
|
|
111
129
|
onPageChange: s,
|
|
112
|
-
siblingCount:
|
|
130
|
+
siblingCount: d = 1,
|
|
113
131
|
boundaryCount: r = 1,
|
|
114
132
|
size: n = "md",
|
|
115
|
-
showEndpoints:
|
|
116
|
-
align:
|
|
117
|
-
pageSize:
|
|
118
|
-
useLocaleDigits:
|
|
119
|
-
locale:
|
|
120
|
-
className:
|
|
121
|
-
id:
|
|
122
|
-
...
|
|
123
|
-
},
|
|
124
|
-
const { t:
|
|
125
|
-
|
|
126
|
-
|
|
133
|
+
showEndpoints: p = !1,
|
|
134
|
+
align: v = "center",
|
|
135
|
+
pageSize: o,
|
|
136
|
+
useLocaleDigits: b = !1,
|
|
137
|
+
locale: R,
|
|
138
|
+
className: K,
|
|
139
|
+
id: j,
|
|
140
|
+
...O
|
|
141
|
+
}, Q) => {
|
|
142
|
+
const { t: S, i18n: C } = x(), [U, E] = de({
|
|
143
|
+
value: a,
|
|
144
|
+
defaultValue: i,
|
|
145
|
+
onChange: s
|
|
146
|
+
}), c = U ?? i;
|
|
147
|
+
y(() => {
|
|
148
|
+
a !== void 0 && i !== 1 && console.warn(
|
|
127
149
|
"[Pagination] Both `page` and `defaultPage` were supplied. The `page` prop wins; remove `defaultPage` for controlled usage."
|
|
128
150
|
);
|
|
129
|
-
}, [
|
|
130
|
-
const
|
|
131
|
-
(
|
|
132
|
-
const
|
|
133
|
-
|
|
151
|
+
}, [a, i]);
|
|
152
|
+
const g = k(
|
|
153
|
+
(l) => {
|
|
154
|
+
const I = Math.min(Math.max(l, 1), Math.max(1, e));
|
|
155
|
+
E(I);
|
|
134
156
|
},
|
|
135
|
-
[
|
|
136
|
-
),
|
|
137
|
-
(
|
|
138
|
-
if (!
|
|
157
|
+
[E, e]
|
|
158
|
+
), V = k(
|
|
159
|
+
(l) => {
|
|
160
|
+
if (!b) return String(l);
|
|
139
161
|
try {
|
|
140
|
-
return new Intl.NumberFormat(
|
|
162
|
+
return new Intl.NumberFormat(R ?? C.language).format(l);
|
|
141
163
|
} catch {
|
|
142
|
-
return String(
|
|
164
|
+
return String(l);
|
|
143
165
|
}
|
|
144
166
|
},
|
|
145
|
-
[
|
|
146
|
-
),
|
|
147
|
-
() => ce(c, e,
|
|
148
|
-
[c, e,
|
|
149
|
-
), B = c <= 1, L = c >= e, N =
|
|
150
|
-
|
|
167
|
+
[C.language, R, b]
|
|
168
|
+
), W = _(
|
|
169
|
+
() => ce(c, e, d, r),
|
|
170
|
+
[c, e, d, r]
|
|
171
|
+
), B = c <= 1, L = c >= e, N = z(c);
|
|
172
|
+
y(() => {
|
|
151
173
|
N.current = c;
|
|
152
174
|
}, [c]);
|
|
153
|
-
const
|
|
154
|
-
|
|
155
|
-
|
|
175
|
+
const A = z(e);
|
|
176
|
+
y(() => {
|
|
177
|
+
A.current = e;
|
|
156
178
|
}, [e]);
|
|
157
|
-
const
|
|
179
|
+
const X = _(
|
|
158
180
|
() => ({
|
|
159
181
|
getCurrentPage: () => N.current,
|
|
160
|
-
getTotalPages: () =>
|
|
161
|
-
goToPage: (
|
|
162
|
-
next: () =>
|
|
163
|
-
previous: () =>
|
|
182
|
+
getTotalPages: () => A.current,
|
|
183
|
+
goToPage: (l) => g(l),
|
|
184
|
+
next: () => g(N.current + 1),
|
|
185
|
+
previous: () => g(N.current - 1)
|
|
164
186
|
}),
|
|
165
|
-
[
|
|
187
|
+
[g]
|
|
166
188
|
);
|
|
167
|
-
|
|
168
|
-
const
|
|
169
|
-
return /* @__PURE__ */
|
|
189
|
+
se(oe, X, j);
|
|
190
|
+
const Y = v === "start" ? "ds:justify-start" : v === "end" ? "ds:justify-end" : "ds:justify-center";
|
|
191
|
+
return /* @__PURE__ */ h(
|
|
170
192
|
"nav",
|
|
171
193
|
{
|
|
172
|
-
ref:
|
|
173
|
-
"aria-label":
|
|
174
|
-
id:
|
|
194
|
+
ref: Q,
|
|
195
|
+
"aria-label": S("navigation.pagination.label"),
|
|
196
|
+
id: j,
|
|
175
197
|
"data-component": "pagination",
|
|
176
|
-
"data-component-id":
|
|
198
|
+
"data-component-id": j,
|
|
177
199
|
className: [
|
|
178
200
|
"ds:flex ds:items-center",
|
|
179
|
-
|
|
201
|
+
Y,
|
|
180
202
|
"ds:gap-[var(--spacing-sm)]",
|
|
181
203
|
"ds:flex-wrap",
|
|
182
|
-
|
|
204
|
+
K ?? ""
|
|
183
205
|
].filter(Boolean).join(" "),
|
|
184
|
-
...
|
|
206
|
+
...O,
|
|
185
207
|
children: [
|
|
186
|
-
/* @__PURE__ */
|
|
187
|
-
|
|
188
|
-
|
|
208
|
+
/* @__PURE__ */ h(H, { size: n, children: [
|
|
209
|
+
p ? /* @__PURE__ */ t(f, { children: /* @__PURE__ */ t(
|
|
210
|
+
T,
|
|
189
211
|
{
|
|
190
212
|
type: "first",
|
|
191
213
|
size: n,
|
|
192
214
|
disabled: B,
|
|
193
|
-
onClick: () =>
|
|
215
|
+
onClick: () => g(1)
|
|
194
216
|
}
|
|
195
217
|
) }) : null,
|
|
196
|
-
/* @__PURE__ */
|
|
197
|
-
|
|
218
|
+
/* @__PURE__ */ t(f, { children: /* @__PURE__ */ t(
|
|
219
|
+
q,
|
|
198
220
|
{
|
|
199
221
|
size: n,
|
|
200
222
|
disabled: B,
|
|
201
|
-
onClick: () =>
|
|
223
|
+
onClick: () => g(c - 1)
|
|
202
224
|
}
|
|
203
225
|
) }),
|
|
204
|
-
|
|
226
|
+
W.map((l, I) => l === "ellipsis-start" || l === "ellipsis-end" ? /* @__PURE__ */ t(f, { children: /* @__PURE__ */ t(J, {}) }, `e-${I}`) : /* @__PURE__ */ t(f, { children: /* @__PURE__ */ t(
|
|
205
227
|
$,
|
|
206
228
|
{
|
|
207
229
|
size: n,
|
|
208
|
-
isActive:
|
|
209
|
-
"aria-label":
|
|
210
|
-
onClick: () =>
|
|
211
|
-
children:
|
|
230
|
+
isActive: l === c,
|
|
231
|
+
"aria-label": S("navigation.pagination.pageN", { n: l }),
|
|
232
|
+
onClick: () => g(l),
|
|
233
|
+
children: V(l)
|
|
212
234
|
}
|
|
213
|
-
) }, `p-${
|
|
214
|
-
/* @__PURE__ */
|
|
215
|
-
|
|
235
|
+
) }, `p-${l}`)),
|
|
236
|
+
/* @__PURE__ */ t(f, { children: /* @__PURE__ */ t(
|
|
237
|
+
G,
|
|
216
238
|
{
|
|
217
239
|
size: n,
|
|
218
240
|
disabled: L,
|
|
219
|
-
onClick: () =>
|
|
241
|
+
onClick: () => g(c + 1)
|
|
220
242
|
}
|
|
221
243
|
) }),
|
|
222
|
-
|
|
223
|
-
|
|
244
|
+
p ? /* @__PURE__ */ t(f, { children: /* @__PURE__ */ t(
|
|
245
|
+
T,
|
|
224
246
|
{
|
|
225
247
|
type: "last",
|
|
226
248
|
size: n,
|
|
227
249
|
disabled: L,
|
|
228
|
-
onClick: () =>
|
|
250
|
+
onClick: () => g(e)
|
|
229
251
|
}
|
|
230
252
|
) }) : null
|
|
231
253
|
] }),
|
|
232
|
-
|
|
254
|
+
o ? /* @__PURE__ */ t(
|
|
233
255
|
ve,
|
|
234
256
|
{
|
|
235
257
|
size: n,
|
|
236
|
-
value:
|
|
237
|
-
options:
|
|
238
|
-
onChange:
|
|
239
|
-
formatNumber:
|
|
258
|
+
value: o.value,
|
|
259
|
+
options: o.options ?? [10, 25, 50, 100],
|
|
260
|
+
onChange: o.onChange,
|
|
261
|
+
formatNumber: V
|
|
240
262
|
}
|
|
241
263
|
) : null
|
|
242
264
|
]
|
|
@@ -245,8 +267,8 @@ const me = g(
|
|
|
245
267
|
}
|
|
246
268
|
);
|
|
247
269
|
me.displayName = "Pagination";
|
|
248
|
-
const H =
|
|
249
|
-
({ children: e, className: a, ...
|
|
270
|
+
const H = u(
|
|
271
|
+
({ children: e, className: a, ...i }, s) => /* @__PURE__ */ t(
|
|
250
272
|
"ul",
|
|
251
273
|
{
|
|
252
274
|
ref: s,
|
|
@@ -257,38 +279,38 @@ const H = g(
|
|
|
257
279
|
"ds:list-none",
|
|
258
280
|
a ?? ""
|
|
259
281
|
].filter(Boolean).join(" "),
|
|
260
|
-
...
|
|
282
|
+
...i,
|
|
261
283
|
children: e
|
|
262
284
|
}
|
|
263
285
|
)
|
|
264
286
|
);
|
|
265
287
|
H.displayName = "PaginationList";
|
|
266
|
-
const
|
|
267
|
-
({ children: e, className: a, ...
|
|
288
|
+
const f = u(
|
|
289
|
+
({ children: e, className: a, ...i }, s) => /* @__PURE__ */ t("li", { ref: s, className: a, ...i, children: e })
|
|
268
290
|
);
|
|
269
|
-
|
|
270
|
-
const $ =
|
|
271
|
-
({ isActive: e = !1, size: a = "md", className:
|
|
291
|
+
f.displayName = "PaginationItem";
|
|
292
|
+
const $ = u(
|
|
293
|
+
({ isActive: e = !1, size: a = "md", className: i, children: s, ...d }, r) => /* @__PURE__ */ t(
|
|
272
294
|
"button",
|
|
273
295
|
{
|
|
274
296
|
ref: r,
|
|
275
297
|
type: "button",
|
|
276
298
|
"aria-current": e ? "page" : void 0,
|
|
277
|
-
className:
|
|
299
|
+
className: P({
|
|
278
300
|
size: a,
|
|
279
301
|
active: e,
|
|
280
|
-
className:
|
|
302
|
+
className: i
|
|
281
303
|
}),
|
|
282
|
-
...
|
|
304
|
+
...d,
|
|
283
305
|
children: s
|
|
284
306
|
}
|
|
285
307
|
)
|
|
286
308
|
);
|
|
287
309
|
$.displayName = "PaginationLink";
|
|
288
|
-
const
|
|
289
|
-
({ size: e = "md", disabled: a, onClick:
|
|
290
|
-
const { t:
|
|
291
|
-
return /* @__PURE__ */
|
|
310
|
+
const M = "ds:size-4 ds:rtl:-scale-x-100", q = u(
|
|
311
|
+
({ size: e = "md", disabled: a, onClick: i }, s) => {
|
|
312
|
+
const { t: d } = x(), r = d("navigation.pagination.previous");
|
|
313
|
+
return /* @__PURE__ */ t(
|
|
292
314
|
"button",
|
|
293
315
|
{
|
|
294
316
|
ref: s,
|
|
@@ -296,18 +318,18 @@ const k = "ds:size-4 ds:rtl:-scale-x-100", U = g(
|
|
|
296
318
|
"aria-label": r,
|
|
297
319
|
"aria-disabled": a || void 0,
|
|
298
320
|
disabled: a,
|
|
299
|
-
onClick:
|
|
300
|
-
className:
|
|
301
|
-
children: /* @__PURE__ */
|
|
321
|
+
onClick: i,
|
|
322
|
+
className: P({ size: e }),
|
|
323
|
+
children: /* @__PURE__ */ t(ie, { "aria-hidden": "true", className: M })
|
|
302
324
|
}
|
|
303
325
|
);
|
|
304
326
|
}
|
|
305
327
|
);
|
|
306
|
-
|
|
307
|
-
const
|
|
308
|
-
({ size: e = "md", disabled: a, onClick:
|
|
309
|
-
const { t:
|
|
310
|
-
return /* @__PURE__ */
|
|
328
|
+
q.displayName = "PaginationPrevious";
|
|
329
|
+
const G = u(
|
|
330
|
+
({ size: e = "md", disabled: a, onClick: i }, s) => {
|
|
331
|
+
const { t: d } = x(), r = d("navigation.pagination.next");
|
|
332
|
+
return /* @__PURE__ */ t(
|
|
311
333
|
"button",
|
|
312
334
|
{
|
|
313
335
|
ref: s,
|
|
@@ -315,38 +337,38 @@ const q = g(
|
|
|
315
337
|
"aria-label": r,
|
|
316
338
|
"aria-disabled": a || void 0,
|
|
317
339
|
disabled: a,
|
|
318
|
-
onClick:
|
|
319
|
-
className:
|
|
320
|
-
children: /* @__PURE__ */
|
|
340
|
+
onClick: i,
|
|
341
|
+
className: P({ size: e }),
|
|
342
|
+
children: /* @__PURE__ */ t(F, { "aria-hidden": "true", className: M })
|
|
321
343
|
}
|
|
322
344
|
);
|
|
323
345
|
}
|
|
324
346
|
);
|
|
325
|
-
|
|
326
|
-
const
|
|
327
|
-
({ type: e, size: a = "md", disabled:
|
|
328
|
-
const { t: r } = x(), n = r(e === "first" ? "navigation.pagination.first" : "navigation.pagination.last"),
|
|
329
|
-
return /* @__PURE__ */
|
|
347
|
+
G.displayName = "PaginationNext";
|
|
348
|
+
const T = u(
|
|
349
|
+
({ type: e, size: a = "md", disabled: i, onClick: s }, d) => {
|
|
350
|
+
const { t: r } = x(), n = r(e === "first" ? "navigation.pagination.first" : "navigation.pagination.last"), p = e === "first" ? te : ne;
|
|
351
|
+
return /* @__PURE__ */ t(
|
|
330
352
|
"button",
|
|
331
353
|
{
|
|
332
|
-
ref:
|
|
354
|
+
ref: d,
|
|
333
355
|
type: "button",
|
|
334
356
|
"aria-label": n,
|
|
335
|
-
"aria-disabled":
|
|
336
|
-
disabled:
|
|
357
|
+
"aria-disabled": i || void 0,
|
|
358
|
+
disabled: i,
|
|
337
359
|
onClick: s,
|
|
338
|
-
className:
|
|
339
|
-
children: /* @__PURE__ */
|
|
360
|
+
className: P({ size: a }),
|
|
361
|
+
children: /* @__PURE__ */ t(p, { "aria-hidden": "true", className: M })
|
|
340
362
|
}
|
|
341
363
|
);
|
|
342
364
|
}
|
|
343
365
|
);
|
|
344
|
-
|
|
345
|
-
const
|
|
346
|
-
({ className: e, ...a },
|
|
366
|
+
T.displayName = "PaginationEndpoint";
|
|
367
|
+
const J = u(
|
|
368
|
+
({ className: e, ...a }, i) => /* @__PURE__ */ t(
|
|
347
369
|
"span",
|
|
348
370
|
{
|
|
349
|
-
ref:
|
|
371
|
+
ref: i,
|
|
350
372
|
"aria-hidden": "true",
|
|
351
373
|
role: "presentation",
|
|
352
374
|
className: [
|
|
@@ -356,11 +378,11 @@ const G = g(
|
|
|
356
378
|
e ?? ""
|
|
357
379
|
].filter(Boolean).join(" "),
|
|
358
380
|
...a,
|
|
359
|
-
children: /* @__PURE__ */
|
|
381
|
+
children: /* @__PURE__ */ t(ae, { "aria-hidden": "true", className: "ds:size-4" })
|
|
360
382
|
}
|
|
361
383
|
)
|
|
362
384
|
);
|
|
363
|
-
|
|
385
|
+
J.displayName = "PaginationEllipsis";
|
|
364
386
|
const pe = [
|
|
365
387
|
"ds:inline-flex ds:items-center ds:justify-between ds:gap-[var(--spacing-xs)]",
|
|
366
388
|
"ds:rounded-[var(--radius-sm)] ds:border ds:border-[var(--border)] ds:bg-[var(--background)]",
|
|
@@ -388,33 +410,33 @@ const pe = [
|
|
|
388
410
|
function ve({
|
|
389
411
|
value: e,
|
|
390
412
|
options: a,
|
|
391
|
-
onChange:
|
|
413
|
+
onChange: i,
|
|
392
414
|
formatNumber: s
|
|
393
415
|
}) {
|
|
394
|
-
const { t:
|
|
395
|
-
return /* @__PURE__ */
|
|
396
|
-
/* @__PURE__ */
|
|
416
|
+
const { t: d } = x(), r = D();
|
|
417
|
+
return /* @__PURE__ */ h("div", { className: "ds:flex ds:items-center ds:gap-[var(--spacing-sm)]", children: [
|
|
418
|
+
/* @__PURE__ */ t(
|
|
397
419
|
"span",
|
|
398
420
|
{
|
|
399
421
|
id: r,
|
|
400
422
|
className: "type-label ds:text-[var(--muted-foreground)]",
|
|
401
|
-
children:
|
|
423
|
+
children: d("navigation.pagination.rowsPerPage")
|
|
402
424
|
}
|
|
403
425
|
),
|
|
404
|
-
/* @__PURE__ */
|
|
426
|
+
/* @__PURE__ */ h(
|
|
405
427
|
m.Root,
|
|
406
428
|
{
|
|
407
429
|
value: String(e),
|
|
408
|
-
onValueChange: (n) =>
|
|
430
|
+
onValueChange: (n) => i(Number(n)),
|
|
409
431
|
children: [
|
|
410
|
-
/* @__PURE__ */
|
|
432
|
+
/* @__PURE__ */ h(
|
|
411
433
|
m.Trigger,
|
|
412
434
|
{
|
|
413
435
|
"aria-labelledby": r,
|
|
414
436
|
className: pe,
|
|
415
437
|
children: [
|
|
416
|
-
/* @__PURE__ */
|
|
417
|
-
/* @__PURE__ */
|
|
438
|
+
/* @__PURE__ */ t(m.Value, {}),
|
|
439
|
+
/* @__PURE__ */ t(m.Icon, { asChild: !0, children: /* @__PURE__ */ t(
|
|
418
440
|
F,
|
|
419
441
|
{
|
|
420
442
|
"aria-hidden": "true",
|
|
@@ -424,19 +446,19 @@ function ve({
|
|
|
424
446
|
]
|
|
425
447
|
}
|
|
426
448
|
),
|
|
427
|
-
/* @__PURE__ */
|
|
449
|
+
/* @__PURE__ */ t(m.Portal, { children: /* @__PURE__ */ t(
|
|
428
450
|
m.Content,
|
|
429
451
|
{
|
|
430
452
|
className: ge,
|
|
431
453
|
position: "popper",
|
|
432
|
-
children: /* @__PURE__ */
|
|
454
|
+
children: /* @__PURE__ */ t(m.Viewport, { className: "ds:p-[var(--spacing-xs)]", children: a.map((n) => /* @__PURE__ */ h(
|
|
433
455
|
m.Item,
|
|
434
456
|
{
|
|
435
457
|
value: String(n),
|
|
436
458
|
className: ue,
|
|
437
459
|
children: [
|
|
438
|
-
/* @__PURE__ */
|
|
439
|
-
/* @__PURE__ */
|
|
460
|
+
/* @__PURE__ */ t(m.ItemIndicator, { className: "ds:absolute ds:inline-flex ds:items-center ds:justify-center ds:start-[var(--spacing-sm)]", children: /* @__PURE__ */ t(re, { "aria-hidden": "true", className: "ds:size-3.5" }) }),
|
|
461
|
+
/* @__PURE__ */ t(m.ItemText, { children: s(n) })
|
|
440
462
|
]
|
|
441
463
|
},
|
|
442
464
|
n
|
|
@@ -450,13 +472,13 @@ function ve({
|
|
|
450
472
|
}
|
|
451
473
|
export {
|
|
452
474
|
me as P,
|
|
453
|
-
|
|
454
|
-
|
|
475
|
+
J as a,
|
|
476
|
+
f as b,
|
|
455
477
|
$ as c,
|
|
456
478
|
H as d,
|
|
457
|
-
|
|
458
|
-
|
|
479
|
+
G as e,
|
|
480
|
+
q as f,
|
|
459
481
|
ce as g,
|
|
460
482
|
oe as p
|
|
461
483
|
};
|
|
462
|
-
//# sourceMappingURL=pagination-
|
|
484
|
+
//# sourceMappingURL=pagination-F1ei4khE.js.map
|