@humain/ui 2.2.3 → 2.2.5

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.
Files changed (116) hide show
  1. package/dist/components/templates/AppShell/AppShell.d.ts +1 -1
  2. package/dist/components/templates/AppSidebar/AppSidebar.constants.d.ts +1 -1
  3. package/dist/index11.js +4 -4
  4. package/dist/index11.js.map +1 -1
  5. package/dist/index110.js +4 -4
  6. package/dist/index110.js.map +1 -1
  7. package/dist/index134.js +4 -4
  8. package/dist/index134.js.map +1 -1
  9. package/dist/index135.js +2 -2
  10. package/dist/index135.js.map +1 -1
  11. package/dist/index151.js +3 -3
  12. package/dist/index151.js.map +1 -1
  13. package/dist/index152.js +2 -2
  14. package/dist/index152.js.map +1 -1
  15. package/dist/index155.js +1 -1
  16. package/dist/index155.js.map +1 -1
  17. package/dist/index173.js +1 -1
  18. package/dist/index173.js.map +1 -1
  19. package/dist/index184.js +1 -1
  20. package/dist/index184.js.map +1 -1
  21. package/dist/index188.js +4 -4
  22. package/dist/index188.js.map +1 -1
  23. package/dist/index201.js +1 -1
  24. package/dist/index201.js.map +1 -1
  25. package/dist/index217.js +1 -1
  26. package/dist/index217.js.map +1 -1
  27. package/dist/index223.js.map +1 -1
  28. package/dist/index225.js +3 -3
  29. package/dist/index225.js.map +1 -1
  30. package/dist/index228.js +1 -1
  31. package/dist/index228.js.map +1 -1
  32. package/dist/index24.js +1 -1
  33. package/dist/index24.js.map +1 -1
  34. package/dist/index25.js +4 -4
  35. package/dist/index25.js.map +1 -1
  36. package/dist/index39.js +2 -2
  37. package/dist/index39.js.map +1 -1
  38. package/dist/index5.js +8 -8
  39. package/dist/index5.js.map +1 -1
  40. package/dist/styles.css +1 -1
  41. package/dist/wc/AIScrollButton.js +8 -8
  42. package/dist/wc/AIScrollButton.js.map +1 -1
  43. package/dist/wc/AISource.js +46 -46
  44. package/dist/wc/AISource.js.map +1 -1
  45. package/dist/wc/AIToolCall.js +9 -9
  46. package/dist/wc/AIToolCall.js.map +1 -1
  47. package/dist/wc/AppSidebar.constants.js +1 -1
  48. package/dist/wc/AppSidebar.constants.js.map +1 -1
  49. package/dist/wc/Badge.js +9 -9
  50. package/dist/wc/Badge.js.map +1 -1
  51. package/dist/wc/Checkbox.js +22 -22
  52. package/dist/wc/Checkbox.js.map +1 -1
  53. package/dist/wc/Pagination.js +4 -4
  54. package/dist/wc/Pagination.js.map +1 -1
  55. package/dist/wc/Switch.js +23 -23
  56. package/dist/wc/Switch.js.map +1 -1
  57. package/dist/wc/Tabs.js +110 -110
  58. package/dist/wc/Tabs.js.map +1 -1
  59. package/dist/wc/Tooltip.js +28 -28
  60. package/dist/wc/Tooltip.js.map +1 -1
  61. package/dist/wc/button.js +33 -33
  62. package/dist/wc/button.js.map +1 -1
  63. package/dist/wc/hf-alert.js +10 -10
  64. package/dist/wc/hf-alert.js.map +1 -1
  65. package/dist/wc/hf-app-shell.js.map +1 -1
  66. package/dist/wc/hf-app-sidebar.js +3 -3
  67. package/dist/wc/hf-app-sidebar.js.map +1 -1
  68. package/dist/wc/hf-nav-account-menu.js +8 -8
  69. package/dist/wc/hf-nav-account-menu.js.map +1 -1
  70. package/dist/wc/hf-steps.js +8 -8
  71. package/dist/wc/hf-steps.js.map +1 -1
  72. package/dist/wc/markdown-renderer.js +5 -5
  73. package/dist/wc/markdown-renderer.js.map +1 -1
  74. package/dist/wc/selection-group.js +6 -6
  75. package/dist/wc/selection-group.js.map +1 -1
  76. package/dist/wc-react/AIScrollButton.js +18 -18
  77. package/dist/wc-react/AIScrollButton.js.map +1 -1
  78. package/dist/wc-react/AISource.js +8 -8
  79. package/dist/wc-react/AISource.js.map +1 -1
  80. package/dist/wc-react/AIToolCall.js +42 -42
  81. package/dist/wc-react/AIToolCall.js.map +1 -1
  82. package/dist/wc-react/AppSidebar.constants.js +1 -1
  83. package/dist/wc-react/AppSidebar.constants.js.map +1 -1
  84. package/dist/wc-react/Badge.js +16 -16
  85. package/dist/wc-react/Badge.js.map +1 -1
  86. package/dist/wc-react/Checkbox.js +14 -14
  87. package/dist/wc-react/Checkbox.js.map +1 -1
  88. package/dist/wc-react/Pagination.js +130 -130
  89. package/dist/wc-react/Pagination.js.map +1 -1
  90. package/dist/wc-react/Switch.js +2 -2
  91. package/dist/wc-react/Switch.js.map +1 -1
  92. package/dist/wc-react/Tabs.js +38 -38
  93. package/dist/wc-react/Tabs.js.map +1 -1
  94. package/dist/wc-react/Tooltip.js +22 -22
  95. package/dist/wc-react/Tooltip.js.map +1 -1
  96. package/dist/wc-react/button.js +8 -8
  97. package/dist/wc-react/button.js.map +1 -1
  98. package/dist/wc-react/hf-alert.js +28 -28
  99. package/dist/wc-react/hf-alert.js.map +1 -1
  100. package/dist/wc-react/hf-app-shell.js.map +1 -1
  101. package/dist/wc-react/hf-app-sidebar.js +3 -3
  102. package/dist/wc-react/hf-app-sidebar.js.map +1 -1
  103. package/dist/wc-react/hf-nav-account-menu.js +7 -7
  104. package/dist/wc-react/hf-nav-account-menu.js.map +1 -1
  105. package/dist/wc-react/hf-steps.js +16 -16
  106. package/dist/wc-react/hf-steps.js.map +1 -1
  107. package/dist/wc-react/markdown-renderer.js +5 -5
  108. package/dist/wc-react/markdown-renderer.js.map +1 -1
  109. package/dist/wc-react/selection-group.js +1 -1
  110. package/dist/wc-react/selection-group.js.map +1 -1
  111. package/package.json +1 -1
  112. package/skills/humain-ui/SKILL.md +1 -1
  113. package/skills/humain-ui-wc/SKILL.md +1 -1
  114. package/skills/humain-ui-wc.skill +0 -0
  115. package/skills/humain-ui.skill +0 -0
  116. package/src/tokens.css +10 -2
@@ -5,7 +5,7 @@ import { t as C } from "./chevron-left.js";
5
5
  import { t as w } from "./chevron-right.js";
6
6
  import { t as D } from "./ellipsis.js";
7
7
  import { t as j } from "./dist.js";
8
- import { Fragment as de, jsx as r, jsxs as m } from "react/jsx-runtime";
8
+ import { Fragment as de, jsx as i, jsxs as m } from "react/jsx-runtime";
9
9
  var ce = [["path", {
10
10
  d: "m11 17-5-5 5-5",
11
11
  key: "13zhaf"
@@ -57,10 +57,10 @@ var ce = [["path", {
57
57
  }
58
58
  }, me = {
59
59
  primary: "bg-primary text-primary-foreground",
60
- info: "bg-info text-primary-foreground",
61
- warning: "bg-warning text-primary-foreground",
62
- success: "bg-success text-primary-foreground",
63
- destructive: "bg-destructive text-primary-foreground"
60
+ info: "bg-info text-info-foreground",
61
+ warning: "bg-warning text-warning-foreground",
62
+ success: "bg-success text-success-foreground",
63
+ destructive: "bg-destructive text-destructive-foreground"
64
64
  };
65
65
  function fe(e) {
66
66
  switch (e) {
@@ -94,8 +94,8 @@ function W(e, t) {
94
94
  function A(e, t) {
95
95
  return typeof e == "number" && Number.isFinite(e) && e >= 0 ? Math.floor(e) : t;
96
96
  }
97
- function H(e, t, i) {
98
- return Math.min(i, Math.max(t, Math.floor(e)));
97
+ function H(e, t, r) {
98
+ return Math.min(r, Math.max(t, Math.floor(e)));
99
99
  }
100
100
  function K(e, t) {
101
101
  return typeof e != "number" || !Number.isFinite(e) ? z : H(e, 1, t);
@@ -105,7 +105,7 @@ function he(e, t) {
105
105
  }
106
106
  function Ne(e) {
107
107
  if (!e) return _;
108
- const t = Array.from(new Set(e.filter((i) => Number.isFinite(i) && i > 0).map((i) => Math.floor(i))));
108
+ const t = Array.from(new Set(e.filter((r) => Number.isFinite(r) && r > 0).map((r) => Math.floor(r))));
109
109
  return t.length > 0 ? t : _;
110
110
  }
111
111
  function ye(e, t) {
@@ -224,9 +224,9 @@ var ge = j("flex items-center justify-center", {
224
224
  current: !1
225
225
  }
226
226
  });
227
- function Ce({ className: e, total: t = 3, current: i = 0, variant: n = "dot", size: s = "md", framed: a = !1, onDotClick: o, ...d }) {
228
- const l = A(t, xe), u = he(i, l);
229
- return /* @__PURE__ */ r("div", {
227
+ function Ce({ className: e, total: t = 3, current: r = 0, variant: n = "dot", size: s = "md", framed: a = !1, onDotClick: o, ...d }) {
228
+ const l = A(t, xe), u = he(r, l);
229
+ return /* @__PURE__ */ i("div", {
230
230
  className: c(ge({
231
231
  size: s,
232
232
  style: n,
@@ -237,7 +237,7 @@ function Ce({ className: e, total: t = 3, current: i = 0, variant: n = "dot", si
237
237
  ...d,
238
238
  children: Array.from({ length: l }, (f, p) => p + 1).map((f) => {
239
239
  const p = f - 1;
240
- return /* @__PURE__ */ r("button", {
240
+ return /* @__PURE__ */ i("button", {
241
241
  type: "button",
242
242
  role: "tab",
243
243
  "aria-selected": p === u,
@@ -253,8 +253,8 @@ function Ce({ className: e, total: t = 3, current: i = 0, variant: n = "dot", si
253
253
  });
254
254
  }
255
255
  Ce.displayName = "PaginationDots";
256
- function L(e, t, i) {
257
- const n = W(t, z), s = K(e, n), a = A(i, $);
256
+ function L(e, t, r) {
257
+ const n = W(t, z), s = K(e, n), a = A(r, $);
258
258
  if (n <= a * 2 + 5) return Array.from({ length: n }, (f, p) => p + 1);
259
259
  const o = Math.max(s - a, 1), d = Math.min(s + a, n), l = o > 2, u = d < n - 1;
260
260
  if (!l && u) {
@@ -281,13 +281,13 @@ function L(e, t, i) {
281
281
  n
282
282
  ];
283
283
  }
284
- function G(e, t, i) {
285
- return e !== "ellipsis" ? e : `ellipsis:${t[i - 1] ?? "start"}:${t[i + 1] ?? "end"}`;
284
+ function G(e, t, r) {
285
+ return e !== "ellipsis" ? e : `ellipsis:${t[r - 1] ?? "start"}:${t[r + 1] ?? "end"}`;
286
286
  }
287
287
  var h = "relative inline-flex items-center justify-center font-medium shrink-0 select-none outline-none transition-[color,background-color,border-color,box-shadow] duration-150 ease-out focus-visible:ring-2 focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50", g = 'before:absolute before:left-1/2 before:top-1/2 before:h-full before:min-h-11 before:w-full before:min-w-11 before:-translate-x-1/2 before:-translate-y-1/2 before:rounded-[inherit] before:content-[""]';
288
- function J({ page: e, isActive: t, size: i, variant: n, shape: s, activeColor: a, onClick: o }) {
289
- const d = x[i];
290
- return /* @__PURE__ */ r("button", {
288
+ function J({ page: e, isActive: t, size: r, variant: n, shape: s, activeColor: a, onClick: o }) {
289
+ const d = x[r];
290
+ return /* @__PURE__ */ i("button", {
291
291
  type: "button",
292
292
  onClick: o,
293
293
  "aria-current": t ? "page" : void 0,
@@ -297,16 +297,16 @@ function J({ page: e, isActive: t, size: i, variant: n, shape: s, activeColor: a
297
297
  }
298
298
  J.displayName = "PageButton";
299
299
  function E({ size: e, shape: t }) {
300
- const i = x[e];
301
- return /* @__PURE__ */ r("span", {
300
+ const r = x[e];
301
+ return /* @__PURE__ */ i("span", {
302
302
  "aria-hidden": !0,
303
- className: c("inline-flex items-center justify-center text-muted-foreground shrink-0", i.sq, U(t)),
304
- children: /* @__PURE__ */ r(D, { className: i.icon })
303
+ className: c("inline-flex items-center justify-center text-muted-foreground shrink-0", r.sq, U(t)),
304
+ children: /* @__PURE__ */ i(D, { className: r.icon })
305
305
  });
306
306
  }
307
307
  E.displayName = "EllipsisIndicator";
308
- function b({ direction: e, disabled: t, size: i, variant: n, prevNextStyle: s, text: a, onClick: o }) {
309
- const d = x[i], l = s === "icon-only", u = e === "previous" ? C : w;
308
+ function b({ direction: e, disabled: t, size: r, variant: n, prevNextStyle: s, text: a, onClick: o }) {
309
+ const d = x[r], l = s === "icon-only", u = e === "previous" ? C : w;
310
310
  return /* @__PURE__ */ m("button", {
311
311
  type: "button",
312
312
  onClick: o,
@@ -318,38 +318,38 @@ function b({ direction: e, disabled: t, size: i, variant: n, prevNextStyle: s, t
318
318
  d.gap
319
319
  ], d.text, R(n)),
320
320
  children: [
321
- e === "previous" && /* @__PURE__ */ r(u, { className: c(d.icon, "rtl:rotate-180") }),
322
- !l && /* @__PURE__ */ r("span", { children: a }),
323
- e === "next" && /* @__PURE__ */ r(u, { className: c(d.icon, "rtl:rotate-180") })
321
+ e === "previous" && /* @__PURE__ */ i(u, { className: c(d.icon, "rtl:rotate-180") }),
322
+ !l && /* @__PURE__ */ i("span", { children: a }),
323
+ e === "next" && /* @__PURE__ */ i(u, { className: c(d.icon, "rtl:rotate-180") })
324
324
  ]
325
325
  });
326
326
  }
327
327
  b.displayName = "NavButton";
328
- function N({ direction: e, disabled: t, size: i, onClick: n, className: s }) {
329
- const a = x[i], o = pe[e];
330
- return /* @__PURE__ */ r("button", {
328
+ function N({ direction: e, disabled: t, size: r, onClick: n, className: s }) {
329
+ const a = x[r], o = pe[e];
330
+ return /* @__PURE__ */ i("button", {
331
331
  type: "button",
332
332
  onClick: n,
333
333
  disabled: t,
334
334
  "aria-label": be[e],
335
335
  className: c(h, g, "rounded-xl text-secondary-foreground hover:bg-muted", a.sq, s),
336
- children: /* @__PURE__ */ r(o, { className: c(a.icon, "rtl:rotate-180") })
336
+ children: /* @__PURE__ */ i(o, { className: c(a.icon, "rtl:rotate-180") })
337
337
  });
338
338
  }
339
339
  N.displayName = "IconNavButton";
340
- function I({ currentPage: e, totalPages: t, size: i }) {
341
- const n = x[i];
340
+ function I({ currentPage: e, totalPages: t, size: r }) {
341
+ const n = x[r];
342
342
  return /* @__PURE__ */ m("span", {
343
343
  className: c("text-muted-foreground whitespace-nowrap", n.text),
344
344
  children: [
345
345
  "Page ",
346
- /* @__PURE__ */ r("span", {
346
+ /* @__PURE__ */ i("span", {
347
347
  className: "text-foreground",
348
348
  children: e
349
349
  }),
350
350
  " of",
351
351
  " ",
352
- /* @__PURE__ */ r("span", {
352
+ /* @__PURE__ */ i("span", {
353
353
  className: "text-foreground",
354
354
  children: t
355
355
  })
@@ -357,12 +357,12 @@ function I({ currentPage: e, totalPages: t, size: i }) {
357
357
  });
358
358
  }
359
359
  I.displayName = "PageInfo";
360
- function k({ currentPage: e, totalPages: t, siblingCount: i, size: n, variant: s, shape: a, activeColor: o, onPageChange: d }) {
361
- const l = L(e, t, i);
362
- return /* @__PURE__ */ r(de, { children: l.map((u, f) => u === "ellipsis" ? /* @__PURE__ */ r(E, {
360
+ function k({ currentPage: e, totalPages: t, siblingCount: r, size: n, variant: s, shape: a, activeColor: o, onPageChange: d }) {
361
+ const l = L(e, t, r);
362
+ return /* @__PURE__ */ i(de, { children: l.map((u, f) => u === "ellipsis" ? /* @__PURE__ */ i(E, {
363
363
  size: n,
364
364
  shape: a
365
- }, G(u, l, f)) : /* @__PURE__ */ r(J, {
365
+ }, G(u, l, f)) : /* @__PURE__ */ i(J, {
366
366
  page: u,
367
367
  isActive: u === e,
368
368
  size: n,
@@ -372,11 +372,11 @@ function k({ currentPage: e, totalPages: t, siblingCount: i, size: n, variant: s
372
372
  onClick: () => d(u)
373
373
  }, u)) });
374
374
  }
375
- function Q({ currentPage: e, totalPages: t, siblingCount: i, size: n, variant: s, shape: a, prevNextStyle: o, activeColor: d, previousText: l, nextText: u, onPageChange: f, showPageNumbers: p }) {
375
+ function Q({ currentPage: e, totalPages: t, siblingCount: r, size: n, variant: s, shape: a, prevNextStyle: o, activeColor: d, previousText: l, nextText: u, onPageChange: f, showPageNumbers: p }) {
376
376
  return /* @__PURE__ */ m("div", {
377
377
  className: "flex items-center gap-1",
378
378
  children: [
379
- /* @__PURE__ */ r(b, {
379
+ /* @__PURE__ */ i(b, {
380
380
  direction: "previous",
381
381
  disabled: e <= 1,
382
382
  size: n,
@@ -385,17 +385,17 @@ function Q({ currentPage: e, totalPages: t, siblingCount: i, size: n, variant: s
385
385
  text: l,
386
386
  onClick: () => f(e - 1)
387
387
  }),
388
- p && /* @__PURE__ */ r(k, {
388
+ p && /* @__PURE__ */ i(k, {
389
389
  currentPage: e,
390
390
  totalPages: t,
391
- siblingCount: i,
391
+ siblingCount: r,
392
392
  size: n,
393
393
  variant: s,
394
394
  shape: a,
395
395
  activeColor: d,
396
396
  onPageChange: f
397
397
  }),
398
- /* @__PURE__ */ r(b, {
398
+ /* @__PURE__ */ i(b, {
399
399
  direction: "next",
400
400
  disabled: e >= t,
401
401
  size: n,
@@ -407,21 +407,21 @@ function Q({ currentPage: e, totalPages: t, siblingCount: i, size: n, variant: s
407
407
  ]
408
408
  });
409
409
  }
410
- function we({ currentPage: e, totalPages: t, size: i, variant: n, previousText: s, nextText: a, onPageChange: o }) {
410
+ function we({ currentPage: e, totalPages: t, size: r, variant: n, previousText: s, nextText: a, onPageChange: o }) {
411
411
  return /* @__PURE__ */ m("div", {
412
412
  className: "flex w-full items-center justify-between",
413
- children: [/* @__PURE__ */ r(b, {
413
+ children: [/* @__PURE__ */ i(b, {
414
414
  direction: "previous",
415
415
  disabled: e <= 1,
416
- size: i,
416
+ size: r,
417
417
  variant: n,
418
418
  prevNextStyle: "icon-text",
419
419
  text: s,
420
420
  onClick: () => o(e - 1)
421
- }), /* @__PURE__ */ r(b, {
421
+ }), /* @__PURE__ */ i(b, {
422
422
  direction: "next",
423
423
  disabled: e >= t,
424
- size: i,
424
+ size: r,
425
425
  variant: n,
426
426
  prevNextStyle: "icon-text",
427
427
  text: a,
@@ -429,11 +429,11 @@ function we({ currentPage: e, totalPages: t, size: i, variant: n, previousText:
429
429
  })]
430
430
  });
431
431
  }
432
- function Ie({ currentPage: e, totalPages: t, siblingCount: i, size: n, shape: s, activeColor: a, previousText: o, nextText: d, onPageChange: l, showPageNumbers: u }) {
432
+ function Ie({ currentPage: e, totalPages: t, siblingCount: r, size: n, shape: s, activeColor: a, previousText: o, nextText: d, onPageChange: l, showPageNumbers: u }) {
433
433
  return /* @__PURE__ */ m("div", {
434
434
  className: "flex items-start gap-1.5",
435
435
  children: [
436
- /* @__PURE__ */ r(b, {
436
+ /* @__PURE__ */ i(b, {
437
437
  direction: "previous",
438
438
  disabled: e <= 1,
439
439
  size: n,
@@ -442,17 +442,17 @@ function Ie({ currentPage: e, totalPages: t, siblingCount: i, size: n, shape: s,
442
442
  text: o,
443
443
  onClick: () => l(e - 1)
444
444
  }),
445
- u && /* @__PURE__ */ r(k, {
445
+ u && /* @__PURE__ */ i(k, {
446
446
  currentPage: e,
447
447
  totalPages: t,
448
- siblingCount: i,
448
+ siblingCount: r,
449
449
  size: n,
450
450
  variant: "outlined",
451
451
  shape: s,
452
452
  activeColor: a,
453
453
  onPageChange: l
454
454
  }),
455
- /* @__PURE__ */ r(b, {
455
+ /* @__PURE__ */ i(b, {
456
456
  direction: "next",
457
457
  disabled: e >= t,
458
458
  size: n,
@@ -464,91 +464,91 @@ function Ie({ currentPage: e, totalPages: t, siblingCount: i, size: n, shape: s,
464
464
  ]
465
465
  });
466
466
  }
467
- function Se({ currentPage: e, totalPages: t, siblingCount: i, size: n, onPageChange: s }) {
468
- const a = L(e, t, i), o = x[n], d = c(h, "border-y border-s border-input", o.sq, o.text);
467
+ function Se({ currentPage: e, totalPages: t, siblingCount: r, size: n, onPageChange: s }) {
468
+ const a = L(e, t, r), o = x[n], d = c(h, "border-y border-s border-input", o.sq, o.text);
469
469
  return /* @__PURE__ */ m("div", {
470
470
  className: "inline-flex items-start",
471
471
  children: [
472
- /* @__PURE__ */ r("button", {
472
+ /* @__PURE__ */ i("button", {
473
473
  type: "button",
474
474
  onClick: () => s(e - 1),
475
475
  disabled: e <= 1,
476
476
  "aria-label": "Go to previous page",
477
477
  className: c(d, "rounded-s-lg text-secondary-foreground hover:bg-muted"),
478
- children: /* @__PURE__ */ r(C, { className: c(o.icon, "rtl:rotate-180") })
478
+ children: /* @__PURE__ */ i(C, { className: c(o.icon, "rtl:rotate-180") })
479
479
  }),
480
- a.map((l, u) => /* @__PURE__ */ r("button", {
480
+ a.map((l, u) => /* @__PURE__ */ i("button", {
481
481
  type: "button",
482
482
  onClick: () => l !== "ellipsis" && s(l),
483
483
  disabled: l === "ellipsis",
484
484
  "aria-current": l === e ? "page" : void 0,
485
485
  "aria-label": l === "ellipsis" ? "More pages" : `Go to page ${l}`,
486
486
  className: c(d, l === e ? "bg-accent text-accent-foreground" : "text-foreground hover:bg-muted", l === "ellipsis" && "pointer-events-none"),
487
- children: l === "ellipsis" ? /* @__PURE__ */ r(D, { className: o.icon }) : l
487
+ children: l === "ellipsis" ? /* @__PURE__ */ i(D, { className: o.icon }) : l
488
488
  }, G(l, a, u))),
489
- /* @__PURE__ */ r("button", {
489
+ /* @__PURE__ */ i("button", {
490
490
  type: "button",
491
491
  onClick: () => s(e + 1),
492
492
  disabled: e >= t,
493
493
  "aria-label": "Go to next page",
494
494
  className: c(d, "rounded-e-lg border-e text-secondary-foreground hover:bg-muted"),
495
- children: /* @__PURE__ */ r(w, { className: c(o.icon, "rtl:rotate-180") })
495
+ children: /* @__PURE__ */ i(w, { className: c(o.icon, "rtl:rotate-180") })
496
496
  })
497
497
  ]
498
498
  });
499
499
  }
500
- function Te({ currentPage: e, totalPages: t, size: i, onPageChange: n }) {
501
- const s = x[i], a = c(h, "border-y border-s border-border", s.sq);
500
+ function Te({ currentPage: e, totalPages: t, size: r, onPageChange: n }) {
501
+ const s = x[r], a = c(h, "border-y border-s border-border", s.sq);
502
502
  return /* @__PURE__ */ m("div", {
503
503
  className: "inline-flex items-start",
504
504
  children: [
505
- /* @__PURE__ */ r("button", {
505
+ /* @__PURE__ */ i("button", {
506
506
  type: "button",
507
507
  onClick: () => n(e - 1),
508
508
  disabled: e <= 1,
509
509
  "aria-label": "Go to previous page",
510
510
  className: c(a, "rounded-s-md text-secondary-foreground hover:bg-muted"),
511
- children: /* @__PURE__ */ r(C, { className: c(s.icon, "rtl:rotate-180") })
511
+ children: /* @__PURE__ */ i(C, { className: c(s.icon, "rtl:rotate-180") })
512
512
  }),
513
513
  /* @__PURE__ */ m("div", {
514
514
  className: c("inline-flex items-center justify-center border-y border-s border-input", s.h, "px-4", s.text, "font-medium text-foreground"),
515
- children: [/* @__PURE__ */ r("span", { children: e }), /* @__PURE__ */ m("span", {
515
+ children: [/* @__PURE__ */ i("span", { children: e }), /* @__PURE__ */ m("span", {
516
516
  className: "text-muted-foreground",
517
517
  children: ["/", t]
518
518
  })]
519
519
  }),
520
- /* @__PURE__ */ r("button", {
520
+ /* @__PURE__ */ i("button", {
521
521
  type: "button",
522
522
  onClick: () => n(e + 1),
523
523
  disabled: e >= t,
524
524
  "aria-label": "Go to next page",
525
525
  className: c(a, "rounded-e-md border-e text-secondary-foreground hover:bg-muted"),
526
- children: /* @__PURE__ */ r(w, { className: c(s.icon, "rtl:rotate-180") })
526
+ children: /* @__PURE__ */ i(w, { className: c(s.icon, "rtl:rotate-180") })
527
527
  })
528
528
  ]
529
529
  });
530
530
  }
531
- function _e({ currentPage: e, totalPages: t, siblingCount: i, size: n, shape: s, activeColor: a, onPageChange: o, showPageNumbers: d }) {
531
+ function _e({ currentPage: e, totalPages: t, siblingCount: r, size: n, shape: s, activeColor: a, onPageChange: o, showPageNumbers: d }) {
532
532
  return /* @__PURE__ */ m("div", {
533
533
  className: "flex items-center gap-1.5",
534
534
  children: [
535
- /* @__PURE__ */ r(N, {
535
+ /* @__PURE__ */ i(N, {
536
536
  direction: "previous",
537
537
  disabled: e <= 1,
538
538
  size: n,
539
539
  onClick: () => o(e - 1)
540
540
  }),
541
- d && /* @__PURE__ */ r(k, {
541
+ d && /* @__PURE__ */ i(k, {
542
542
  currentPage: e,
543
543
  totalPages: t,
544
- siblingCount: i,
544
+ siblingCount: r,
545
545
  size: n,
546
546
  variant: "default",
547
547
  shape: s,
548
548
  activeColor: a,
549
549
  onPageChange: o
550
550
  }),
551
- /* @__PURE__ */ r(N, {
551
+ /* @__PURE__ */ i(N, {
552
552
  direction: "next",
553
553
  disabled: e >= t,
554
554
  size: n,
@@ -557,7 +557,7 @@ function _e({ currentPage: e, totalPages: t, siblingCount: i, size: n, shape: s,
557
557
  ]
558
558
  });
559
559
  }
560
- function Ae({ currentPage: e, totalPages: t, siblingCount: i, size: n, shape: s, activeColor: a, onPageChange: o, showPageNumbers: d }) {
560
+ function Ae({ currentPage: e, totalPages: t, siblingCount: r, size: n, shape: s, activeColor: a, onPageChange: o, showPageNumbers: d }) {
561
561
  const l = x[n];
562
562
  return /* @__PURE__ */ m("div", {
563
563
  className: "flex items-center gap-1.5",
@@ -567,25 +567,25 @@ function Ae({ currentPage: e, totalPages: t, siblingCount: i, size: n, shape: s,
567
567
  onClick: () => o(1),
568
568
  disabled: e <= 1,
569
569
  className: c(h, g, "rounded-md text-secondary-foreground hover:bg-muted", l.h, l.pxNav, l.gap, l.text),
570
- children: [/* @__PURE__ */ r(O, { className: c(l.icon, "rtl:rotate-180") }), /* @__PURE__ */ r("span", { children: "First" })]
570
+ children: [/* @__PURE__ */ i(O, { className: c(l.icon, "rtl:rotate-180") }), /* @__PURE__ */ i("span", { children: "First" })]
571
571
  }),
572
- /* @__PURE__ */ r(N, {
572
+ /* @__PURE__ */ i(N, {
573
573
  direction: "previous",
574
574
  disabled: e <= 1,
575
575
  size: n,
576
576
  onClick: () => o(e - 1)
577
577
  }),
578
- d && /* @__PURE__ */ r(k, {
578
+ d && /* @__PURE__ */ i(k, {
579
579
  currentPage: e,
580
580
  totalPages: t,
581
- siblingCount: i,
581
+ siblingCount: r,
582
582
  size: n,
583
583
  variant: "default",
584
584
  shape: s,
585
585
  activeColor: a,
586
586
  onPageChange: o
587
587
  }),
588
- /* @__PURE__ */ r(N, {
588
+ /* @__PURE__ */ i(N, {
589
589
  direction: "next",
590
590
  disabled: e >= t,
591
591
  size: n,
@@ -596,22 +596,22 @@ function Ae({ currentPage: e, totalPages: t, siblingCount: i, size: n, shape: s,
596
596
  onClick: () => o(t),
597
597
  disabled: e >= t,
598
598
  className: c(h, g, "rounded-md text-secondary-foreground hover:bg-muted", l.h, l.pxNav, l.gap, l.text),
599
- children: [/* @__PURE__ */ r("span", { children: "Last" }), /* @__PURE__ */ r(V, { className: c(l.icon, "rtl:rotate-180") })]
599
+ children: [/* @__PURE__ */ i("span", { children: "Last" }), /* @__PURE__ */ i(V, { className: c(l.icon, "rtl:rotate-180") })]
600
600
  })
601
601
  ]
602
602
  });
603
603
  }
604
- function Le({ currentPage: e, totalPages: t, siblingCount: i, size: n, shape: s, activeColor: a, previousText: o, nextText: d, onPageChange: l, showPageNumbers: u }) {
604
+ function Le({ currentPage: e, totalPages: t, siblingCount: r, size: n, shape: s, activeColor: a, previousText: o, nextText: d, onPageChange: l, showPageNumbers: u }) {
605
605
  return /* @__PURE__ */ m("div", {
606
606
  className: "flex w-full items-center justify-between",
607
- children: [/* @__PURE__ */ r(I, {
607
+ children: [/* @__PURE__ */ i(I, {
608
608
  currentPage: e,
609
609
  totalPages: t,
610
610
  size: n
611
611
  }), /* @__PURE__ */ m("div", {
612
612
  className: "flex items-center gap-1",
613
613
  children: [
614
- /* @__PURE__ */ r(b, {
614
+ /* @__PURE__ */ i(b, {
615
615
  direction: "previous",
616
616
  disabled: e <= 1,
617
617
  size: n,
@@ -620,17 +620,17 @@ function Le({ currentPage: e, totalPages: t, siblingCount: i, size: n, shape: s,
620
620
  text: o,
621
621
  onClick: () => l(e - 1)
622
622
  }),
623
- u && /* @__PURE__ */ r(k, {
623
+ u && /* @__PURE__ */ i(k, {
624
624
  currentPage: e,
625
625
  totalPages: t,
626
- siblingCount: i,
626
+ siblingCount: r,
627
627
  size: n,
628
628
  variant: "default",
629
629
  shape: s,
630
630
  activeColor: a,
631
631
  onPageChange: l
632
632
  }),
633
- /* @__PURE__ */ r(b, {
633
+ /* @__PURE__ */ i(b, {
634
634
  direction: "next",
635
635
  disabled: e >= t,
636
636
  size: n,
@@ -643,41 +643,41 @@ function Le({ currentPage: e, totalPages: t, siblingCount: i, size: n, shape: s,
643
643
  })]
644
644
  });
645
645
  }
646
- function Ge({ currentPage: e, totalPages: t, size: i, onPageChange: n }) {
646
+ function Ge({ currentPage: e, totalPages: t, size: r, onPageChange: n }) {
647
647
  return /* @__PURE__ */ m("div", {
648
648
  className: "flex w-full items-center justify-between gap-1",
649
649
  children: [
650
- /* @__PURE__ */ r(N, {
650
+ /* @__PURE__ */ i(N, {
651
651
  direction: "previous",
652
652
  disabled: e <= 1,
653
- size: i,
653
+ size: r,
654
654
  onClick: () => n(e - 1)
655
655
  }),
656
- /* @__PURE__ */ r(I, {
656
+ /* @__PURE__ */ i(I, {
657
657
  currentPage: e,
658
658
  totalPages: t,
659
- size: i
659
+ size: r
660
660
  }),
661
- /* @__PURE__ */ r(N, {
661
+ /* @__PURE__ */ i(N, {
662
662
  direction: "next",
663
663
  disabled: e >= t,
664
- size: i,
664
+ size: r,
665
665
  onClick: () => n(e + 1)
666
666
  })
667
667
  ]
668
668
  });
669
669
  }
670
- function Ee({ currentPage: e, totalPages: t, siblingCount: i, size: n, shape: s, activeColor: a, previousText: o, onPageChange: d, showPageNumbers: l, itemsPerPage: u, perPageOptions: f, onPerPageChange: p }) {
670
+ function Ee({ currentPage: e, totalPages: t, siblingCount: r, size: n, shape: s, activeColor: a, previousText: o, onPageChange: d, showPageNumbers: l, itemsPerPage: u, perPageOptions: f, onPerPageChange: p }) {
671
671
  const v = x[n];
672
672
  return /* @__PURE__ */ m("div", {
673
673
  className: "flex items-center gap-1.5",
674
674
  children: [
675
- /* @__PURE__ */ r(I, {
675
+ /* @__PURE__ */ i(I, {
676
676
  currentPage: e,
677
677
  totalPages: t,
678
678
  size: n
679
679
  }),
680
- /* @__PURE__ */ r(b, {
680
+ /* @__PURE__ */ i(b, {
681
681
  direction: "previous",
682
682
  disabled: e <= 1,
683
683
  size: n,
@@ -686,10 +686,10 @@ function Ee({ currentPage: e, totalPages: t, siblingCount: i, size: n, shape: s,
686
686
  text: o,
687
687
  onClick: () => d(e - 1)
688
688
  }),
689
- l && /* @__PURE__ */ r(k, {
689
+ l && /* @__PURE__ */ i(k, {
690
690
  currentPage: e,
691
691
  totalPages: t,
692
- siblingCount: i,
692
+ siblingCount: r,
693
693
  size: n,
694
694
  variant: "default",
695
695
  shape: s,
@@ -699,7 +699,7 @@ function Ee({ currentPage: e, totalPages: t, siblingCount: i, size: n, shape: s,
699
699
  p && /* @__PURE__ */ m("div", {
700
700
  className: c("relative inline-flex items-center justify-center rounded-md border border-border font-medium", v.h, "px-4", v.gap, v.text, "text-foreground"),
701
701
  children: [
702
- /* @__PURE__ */ r("select", {
702
+ /* @__PURE__ */ i("select", {
703
703
  value: u,
704
704
  onChange: (y) => p(Number(y.target.value)),
705
705
  className: "absolute inset-0 cursor-pointer opacity-0",
@@ -714,27 +714,27 @@ function Ee({ currentPage: e, totalPages: t, siblingCount: i, size: n, shape: s,
714
714
  }, y))
715
715
  }),
716
716
  /* @__PURE__ */ m("span", { children: [u ?? 10, "/page"] }),
717
- /* @__PURE__ */ r(B, { className: v.icon })
717
+ /* @__PURE__ */ i(B, { className: v.icon })
718
718
  ]
719
719
  })
720
720
  ]
721
721
  });
722
722
  }
723
- function Fe({ currentPage: e, totalPages: t, size: i, onPageChange: n }) {
724
- const s = x[i];
723
+ function Fe({ currentPage: e, totalPages: t, size: r, onPageChange: n }) {
724
+ const s = x[r];
725
725
  return /* @__PURE__ */ m("div", {
726
726
  className: "flex items-center gap-1",
727
727
  children: [
728
- /* @__PURE__ */ r(N, {
728
+ /* @__PURE__ */ i(N, {
729
729
  direction: "previous",
730
730
  disabled: e <= 1,
731
- size: i,
731
+ size: r,
732
732
  onClick: () => n(e - 1)
733
733
  }),
734
734
  /* @__PURE__ */ m("div", {
735
735
  className: c("relative inline-flex items-center justify-center rounded-xl border border-border font-medium", s.h, "px-4", s.gap, s.text, "text-foreground"),
736
736
  children: [
737
- /* @__PURE__ */ r("select", {
737
+ /* @__PURE__ */ i("select", {
738
738
  value: e,
739
739
  onChange: (a) => n(Number(a.target.value)),
740
740
  className: "absolute inset-0 cursor-pointer opacity-0",
@@ -745,26 +745,26 @@ function Fe({ currentPage: e, totalPages: t, size: i, onPageChange: n }) {
745
745
  }, o + 1))
746
746
  }),
747
747
  /* @__PURE__ */ m("span", { children: ["Page ", e] }),
748
- /* @__PURE__ */ r(B, { className: s.icon })
748
+ /* @__PURE__ */ i(B, { className: s.icon })
749
749
  ]
750
750
  }),
751
- /* @__PURE__ */ r(N, {
751
+ /* @__PURE__ */ i(N, {
752
752
  direction: "next",
753
753
  disabled: e >= t,
754
- size: i,
754
+ size: r,
755
755
  onClick: () => n(e + 1)
756
756
  })
757
757
  ]
758
758
  });
759
759
  }
760
- function qe({ currentPage: e, totalPages: t, siblingCount: i, size: n, onPageChange: s }) {
761
- const a = L(e, t, i), o = x[n];
762
- return /* @__PURE__ */ r("div", {
760
+ function qe({ currentPage: e, totalPages: t, siblingCount: r, size: n, onPageChange: s }) {
761
+ const a = L(e, t, r), o = x[n];
762
+ return /* @__PURE__ */ i("div", {
763
763
  className: "flex items-start gap-1",
764
- children: a.map((d, l) => d === "ellipsis" ? /* @__PURE__ */ r(E, {
764
+ children: a.map((d, l) => d === "ellipsis" ? /* @__PURE__ */ i(E, {
765
765
  size: n,
766
766
  shape: "square"
767
- }, G(d, a, l)) : /* @__PURE__ */ r("button", {
767
+ }, G(d, a, l)) : /* @__PURE__ */ i("button", {
768
768
  type: "button",
769
769
  onClick: () => s(d),
770
770
  "aria-current": d === e ? "page" : void 0,
@@ -773,21 +773,21 @@ function qe({ currentPage: e, totalPages: t, siblingCount: i, size: n, onPageCha
773
773
  }, d))
774
774
  });
775
775
  }
776
- function Me({ currentPage: e, totalPages: t, size: i, previousText: n, nextText: s, onPageChange: a }) {
776
+ function Me({ currentPage: e, totalPages: t, size: r, previousText: n, nextText: s, onPageChange: a }) {
777
777
  return /* @__PURE__ */ m("div", {
778
778
  className: "flex items-center gap-1",
779
- children: [/* @__PURE__ */ r(b, {
779
+ children: [/* @__PURE__ */ i(b, {
780
780
  direction: "previous",
781
781
  disabled: e <= 1,
782
- size: i,
782
+ size: r,
783
783
  variant: "outlined",
784
784
  prevNextStyle: "icon-text",
785
785
  text: n,
786
786
  onClick: () => a(e - 1)
787
- }), /* @__PURE__ */ r(b, {
787
+ }), /* @__PURE__ */ i(b, {
788
788
  direction: "next",
789
789
  disabled: e >= t,
790
- size: i,
790
+ size: r,
791
791
  variant: "outlined",
792
792
  prevNextStyle: "icon-text",
793
793
  text: s,
@@ -795,17 +795,17 @@ function Me({ currentPage: e, totalPages: t, size: i, previousText: n, nextText:
795
795
  })]
796
796
  });
797
797
  }
798
- function Be({ currentPage: e, totalPages: t, size: i, previousText: n, nextText: s, onPageChange: a }) {
799
- const o = x[i];
798
+ function Be({ currentPage: e, totalPages: t, size: r, previousText: n, nextText: s, onPageChange: a }) {
799
+ const o = x[r];
800
800
  return /* @__PURE__ */ m("div", {
801
801
  className: "inline-flex items-center",
802
- children: [/* @__PURE__ */ r("button", {
802
+ children: [/* @__PURE__ */ i("button", {
803
803
  type: "button",
804
804
  onClick: () => a(e - 1),
805
805
  disabled: e <= 1,
806
806
  className: c(h, "rounded-s-md border border-border bg-background text-foreground hover:bg-muted", o.h, o.pxNav, o.gap, o.text),
807
807
  children: n
808
- }), /* @__PURE__ */ r("button", {
808
+ }), /* @__PURE__ */ i("button", {
809
809
  type: "button",
810
810
  onClick: () => a(e + 1),
811
811
  disabled: e >= t,
@@ -866,8 +866,8 @@ var je = {
866
866
  outline: Me,
867
867
  "box-style": Be
868
868
  };
869
- function Oe({ className: e, type: t = "default", size: i = "md", variant: n = "default", shape: s = "square", prevNextStyle: a = "icon-text", currentPage: o = 1, totalPages: d = 10, siblingCount: l = 1, onPageChange: u, showPageNumbers: f = !0, previousText: p = "Previous", nextText: v = "Next", itemsPerPage: y, perPageOptions: X, onPerPageChange: Y, activeColor: Z = "primary", ...P }) {
870
- const ee = fe(i), S = W(d, ve), te = K(o, S), ne = A(l, $), F = Ne(X), re = ye(y, F), { resolvedType: ie, card: oe, overrideVariant: se } = De(t), ae = {
869
+ function Oe({ className: e, type: t = "default", size: r = "md", variant: n = "default", shape: s = "square", prevNextStyle: a = "icon-text", currentPage: o = 1, totalPages: d = 10, siblingCount: l = 1, onPageChange: u, showPageNumbers: f = !0, previousText: p = "Previous", nextText: v = "Next", itemsPerPage: y, perPageOptions: X, onPerPageChange: Y, activeColor: Z = "primary", ...P }) {
870
+ const ee = fe(r), S = W(d, ve), te = K(o, S), ne = A(l, $), F = Ne(X), ie = ye(y, F), { resolvedType: re, card: oe, overrideVariant: se } = De(t), ae = {
871
871
  currentPage: te,
872
872
  totalPages: S,
873
873
  siblingCount: ne,
@@ -884,16 +884,16 @@ function Oe({ className: e, type: t = "default", size: i = "md", variant: n = "d
884
884
  T >= 1 && T <= S && u(T);
885
885
  },
886
886
  showPageNumbers: f,
887
- itemsPerPage: re,
887
+ itemsPerPage: ie,
888
888
  perPageOptions: F,
889
889
  onPerPageChange: Y
890
- }, le = je[ie] ?? Q;
891
- return /* @__PURE__ */ r("nav", {
890
+ }, le = je[re] ?? Q;
891
+ return /* @__PURE__ */ i("nav", {
892
892
  "aria-label": "pagination",
893
893
  "data-slot": "pagination",
894
894
  className: c("flex w-full", oe && "rounded-xl border border-border bg-background p-4 dark:border-border dark:bg-muted", e),
895
895
  ...P,
896
- children: /* @__PURE__ */ r(le, { ...ae })
896
+ children: /* @__PURE__ */ i(le, { ...ae })
897
897
  });
898
898
  }
899
899
  Oe.displayName = "Pagination";