jenosize-ui 0.1.0 → 0.2.1

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 (204) hide show
  1. package/README.md +13 -10
  2. package/dist/Cartesian-ZIKPEYWP.d.ts +26 -0
  3. package/dist/{PaymentInput-CKPIPNWH.d.ts → PaymentInput-Dn5WVQVy.d.ts} +4 -0
  4. package/dist/{Select-CVbEQ2Ep.d.ts → Select-Dt5ARIH8.d.ts} +4 -0
  5. package/dist/{TagInput-CTJYOB4J.d.ts → TagInput-BaBeve6L.d.ts} +4 -0
  6. package/dist/area-chart.d.ts +54 -0
  7. package/dist/area-chart.js +9 -0
  8. package/dist/avatar.d.ts +24 -0
  9. package/dist/avatar.js +13 -7
  10. package/dist/badge.d.ts +4 -0
  11. package/dist/badge.js +6 -5
  12. package/dist/bar-chart.d.ts +32 -0
  13. package/dist/bar-chart.js +9 -0
  14. package/dist/breadcrumb.d.ts +4 -0
  15. package/dist/breadcrumb.js +5 -3
  16. package/dist/button.d.ts +16 -1
  17. package/dist/button.js +10 -8
  18. package/dist/calendar.d.ts +5 -0
  19. package/dist/calendar.js +18 -14
  20. package/dist/callout.d.ts +6 -6
  21. package/dist/callout.js +12 -9
  22. package/dist/card-D56VxyAe.d.ts +123 -0
  23. package/dist/card.d.ts +3 -1
  24. package/dist/card.js +7 -3
  25. package/dist/checkbox.js +9 -7
  26. package/dist/chunk-22M75A3N.js +396 -0
  27. package/dist/{chunk-D5BTFSL7.js → chunk-33TOK7ES.js} +7 -5
  28. package/dist/{chunk-THC2ISYP.js → chunk-3H444OJA.js} +6 -4
  29. package/dist/{chunk-GFOAJVW5.js → chunk-3QXLIZIX.js} +4 -13
  30. package/dist/chunk-3ZEEGXYF.js +8 -0
  31. package/dist/chunk-45Y2ZGNK.js +34 -0
  32. package/dist/{chunk-FHHAPGCR.js → chunk-4RBIWI2Q.js} +3 -3
  33. package/dist/chunk-4VGEJG4M.js +1510 -0
  34. package/dist/{chunk-PWKWNDBS.js → chunk-54SIZR63.js} +16 -8
  35. package/dist/chunk-5AZKP4KZ.js +49 -0
  36. package/dist/chunk-5DP7W5HX.js +254 -0
  37. package/dist/{chunk-J2BCKBHC.js → chunk-5KSD4WKN.js} +14 -5
  38. package/dist/{chunk-ZOOX3TUB.js → chunk-5XPMY2LF.js} +6 -6
  39. package/dist/chunk-5ZEUTSCV.js +147 -0
  40. package/dist/chunk-5ZPUAGOP.js +19 -0
  41. package/dist/{chunk-JTNFJLIY.js → chunk-667ZHY3T.js} +114 -42
  42. package/dist/{chunk-JP26LPCY.js → chunk-6B6BWTXC.js} +30 -13
  43. package/dist/{chunk-W5GGOUUI.js → chunk-6H4LNWQ7.js} +3 -3
  44. package/dist/{chunk-WFY7DKQD.js → chunk-6MMBQVRO.js} +61 -51
  45. package/dist/{chunk-7HOIZ3UO.js → chunk-7GUPNTAH.js} +15 -7
  46. package/dist/chunk-7VLYQR4D.js +44 -0
  47. package/dist/{chunk-KNYKWUYX.js → chunk-7ZM7SNCZ.js} +3 -3
  48. package/dist/{chunk-E7ZSWBAK.js → chunk-A323V6AI.js} +6 -4
  49. package/dist/chunk-AFYXSZGW.js +23 -0
  50. package/dist/chunk-AIARANKE.js +33 -0
  51. package/dist/{chunk-4OLULPQG.js → chunk-AIGYMTCU.js} +10 -6
  52. package/dist/{chunk-JVJRHBTD.js → chunk-AZ7DKRBY.js} +21 -8
  53. package/dist/{chunk-JYGR44ZC.js → chunk-BBKE4W3B.js} +19 -11
  54. package/dist/{chunk-Z3ETJN5G.js → chunk-BFVJHH7S.js} +8 -12
  55. package/dist/chunk-BLIZ3CL3.js +49 -0
  56. package/dist/{chunk-F2K7VJUV.js → chunk-CFFWYXDW.js} +19 -7
  57. package/dist/{chunk-MQGD2OUF.js → chunk-CGHYXWTT.js} +11 -5
  58. package/dist/{chunk-CYPPEUX5.js → chunk-CKMWBVRR.js} +27 -12
  59. package/dist/{chunk-GTHJWR3Q.js → chunk-D7EE5GWU.js} +21 -22
  60. package/dist/{chunk-5NOBSXJN.js → chunk-E2YZ7IMT.js} +24 -8
  61. package/dist/{chunk-T7FCG7XV.js → chunk-FFMTYQXE.js} +31 -11
  62. package/dist/{chunk-J36M3KRX.js → chunk-FH7Z7SGQ.js} +67 -32
  63. package/dist/chunk-FKVPAEJ6.js +57 -0
  64. package/dist/{chunk-GRLSUQQE.js → chunk-FNQJJO63.js} +4 -4
  65. package/dist/{chunk-5RAPA22E.js → chunk-FWRHBMWT.js} +4 -4
  66. package/dist/chunk-GLKFFA7N.js +171 -0
  67. package/dist/{chunk-KDLPXXD2.js → chunk-GQRSABRN.js} +4 -4
  68. package/dist/{chunk-DRZCJCBO.js → chunk-GZMDZF2V.js} +8 -7
  69. package/dist/chunk-HHYEAFCL.js +525 -0
  70. package/dist/{chunk-LME57Z6J.js → chunk-I6WMNXC7.js} +6 -6
  71. package/dist/chunk-IQNVSQRK.js +605 -0
  72. package/dist/chunk-KHGW72BM.js +10 -0
  73. package/dist/{chunk-ZZA2LUTL.js → chunk-KZP6B6B3.js} +41 -16
  74. package/dist/chunk-LCG34A5T.js +98 -0
  75. package/dist/chunk-LLPWQDF7.js +26 -0
  76. package/dist/{chunk-J7ZQQFPT.js → chunk-LO22VQL5.js} +18 -18
  77. package/dist/{chunk-BVJWBYIG.js → chunk-LQURV7HQ.js} +9 -7
  78. package/dist/{chunk-R6RGJF4L.js → chunk-LYXPJERB.js} +15 -5
  79. package/dist/{chunk-CME4DIML.js → chunk-MCQG4H6T.js} +54 -3
  80. package/dist/{chunk-VWC72TR3.js → chunk-MVG5MABV.js} +11 -8
  81. package/dist/{chunk-5FATN5YD.js → chunk-N3RVMBPX.js} +6 -9
  82. package/dist/chunk-NKG4N6HA.js +188 -0
  83. package/dist/{chunk-W46K56XU.js → chunk-OACWA4TC.js} +15 -69
  84. package/dist/chunk-OLLD2BZN.js +33 -0
  85. package/dist/{chunk-KMSYEE23.js → chunk-P6CON2R2.js} +25 -11
  86. package/dist/chunk-PO2TYK3C.js +17 -0
  87. package/dist/{chunk-7EWQKTNQ.js → chunk-POQTE7JI.js} +66 -25
  88. package/dist/{chunk-HMUZE6EK.js → chunk-QDKETK7D.js} +4 -4
  89. package/dist/{chunk-GCVA3OIV.js → chunk-QDYE5LVT.js} +13 -3
  90. package/dist/{chunk-WEUJYDCV.js → chunk-QHH6AUR3.js} +16 -8
  91. package/dist/chunk-RJTVCA62.js +42 -0
  92. package/dist/{chunk-MUFHLP4S.js → chunk-S5TEWPWW.js} +50 -41
  93. package/dist/{chunk-D6TPWNRK.js → chunk-SB3DG572.js} +15 -8
  94. package/dist/chunk-SKRR3ZMP.js +10 -0
  95. package/dist/chunk-T4ZFZTY6.js +62 -0
  96. package/dist/{chunk-I7WU4GTY.js → chunk-T5574MXM.js} +34 -46
  97. package/dist/{chunk-MKC5HNA7.js → chunk-U4WSJAYK.js} +374 -147
  98. package/dist/{chunk-BJUZVYQC.js → chunk-UGKELBNC.js} +60 -44
  99. package/dist/chunk-ULGCGKOE.js +77 -0
  100. package/dist/{chunk-QA74ITR4.js → chunk-X2VMIBK5.js} +45 -17
  101. package/dist/chunk-X2X7Q7NW.js +17 -0
  102. package/dist/chunk-YHBI52P2.js +10 -0
  103. package/dist/chunk-YIHKQ63K.js +13 -0
  104. package/dist/{chunk-3Y5X7B5C.js → chunk-YQYVGWIC.js} +6 -11
  105. package/dist/{chunk-WZQFC7ZN.js → chunk-ZHAT2XZ4.js} +139 -66
  106. package/dist/{chunk-7IU5TMFL.js → chunk-ZMFY7WAY.js} +124 -40
  107. package/dist/{chunk-SV56BSUQ.js → chunk-ZZSNTCCL.js} +6 -5
  108. package/dist/combobox.d.ts +5 -0
  109. package/dist/combobox.js +15 -12
  110. package/dist/control-size-CaxQhkKh.d.ts +3 -0
  111. package/dist/date-input.d.ts +4 -0
  112. package/dist/date-input.js +12 -9
  113. package/dist/date-picker.d.ts +6 -0
  114. package/dist/date-picker.js +25 -20
  115. package/dist/dialog.d.ts +37 -5
  116. package/dist/dialog.js +12 -8
  117. package/dist/drawer.d.ts +20 -3
  118. package/dist/drawer.js +11 -7
  119. package/dist/dropdown-menu.d.ts +26 -2
  120. package/dist/dropdown-menu.js +9 -4
  121. package/dist/dropzone.d.ts +35 -0
  122. package/dist/dropzone.js +23 -0
  123. package/dist/form.d.ts +82 -3
  124. package/dist/form.js +205 -45
  125. package/dist/header-navigation.d.ts +19 -4
  126. package/dist/header-navigation.js +23 -16
  127. package/dist/helper.d.ts +36 -0
  128. package/dist/helper.js +3 -0
  129. package/dist/index.d.ts +32 -8
  130. package/dist/index.js +87 -62
  131. package/dist/indicator.js +4 -4
  132. package/dist/input.d.ts +4 -0
  133. package/dist/input.js +10 -8
  134. package/dist/kanban-board.d.ts +489 -0
  135. package/dist/kanban-board.js +25 -0
  136. package/dist/labels-DPrh0se9.d.ts +627 -0
  137. package/dist/line-chart.d.ts +36 -0
  138. package/dist/line-chart.js +9 -0
  139. package/dist/{nav-Bla0o_-1.d.ts → nav-CKKqjBs6.d.ts} +18 -11
  140. package/dist/number-input.d.ts +4 -0
  141. package/dist/number-input.js +10 -8
  142. package/dist/pagination.d.ts +7 -1
  143. package/dist/pagination.js +14 -10
  144. package/dist/panel-El4oI68p.d.ts +9 -0
  145. package/dist/payment-input.d.ts +3 -2
  146. package/dist/payment-input.js +10 -8
  147. package/dist/pie-chart.d.ts +64 -0
  148. package/dist/pie-chart.js +9 -0
  149. package/dist/popover.d.ts +9 -3
  150. package/dist/popover.js +11 -7
  151. package/dist/progress-steps.d.ts +275 -0
  152. package/dist/progress-steps.js +8 -0
  153. package/dist/progress.d.ts +21 -1
  154. package/dist/progress.js +3 -2
  155. package/dist/provider.d.ts +212 -0
  156. package/dist/provider.js +7 -0
  157. package/dist/radar-chart.d.ts +77 -0
  158. package/dist/radar-chart.js +9 -0
  159. package/dist/radial-chart.d.ts +73 -0
  160. package/dist/radial-chart.js +9 -0
  161. package/dist/radio.js +9 -7
  162. package/dist/rule-BqzaIwJy.d.ts +80 -0
  163. package/dist/scroll-area.d.ts +62 -0
  164. package/dist/scroll-area.js +7 -0
  165. package/dist/select.d.ts +3 -3
  166. package/dist/select.js +17 -14
  167. package/dist/separator.d.ts +114 -0
  168. package/dist/separator.js +5 -0
  169. package/dist/shared-CxAedkiy.d.ts +68 -0
  170. package/dist/sidebar-navigation.d.ts +80 -12
  171. package/dist/sidebar-navigation.js +18 -9
  172. package/dist/skeleton.d.ts +61 -0
  173. package/dist/skeleton.js +5 -0
  174. package/dist/styles.css +1 -1
  175. package/dist/switch.js +4 -4
  176. package/dist/table.d.ts +148 -42
  177. package/dist/table.js +39 -33
  178. package/dist/tabs.d.ts +22 -0
  179. package/dist/tabs.js +3 -3
  180. package/dist/tag-input.d.ts +3 -2
  181. package/dist/tag-input.js +13 -11
  182. package/dist/tag.d.ts +4 -0
  183. package/dist/tag.js +4 -3
  184. package/dist/textarea.js +7 -5
  185. package/dist/theme.css +151 -6
  186. package/dist/theme.js +11 -9
  187. package/dist/toast.d.ts +11 -2
  188. package/dist/toast.js +12 -9
  189. package/dist/tooltip-surface-C2I9o2QM.d.ts +35 -0
  190. package/dist/tooltip.d.ts +15 -1
  191. package/dist/tooltip.js +3 -2
  192. package/dist/tree.d.ts +5 -0
  193. package/dist/tree.js +8 -6
  194. package/dist/types-DR9rAEy1.d.ts +188 -0
  195. package/dist/use-uploads-KaPqDklo.d.ts +482 -0
  196. package/dist/verification-code-input.d.ts +84 -0
  197. package/dist/verification-code-input.js +14 -0
  198. package/package.json +70 -9
  199. package/dist/card-nWicloNi.d.ts +0 -80
  200. package/dist/chunk-24TO7E32.js +0 -42
  201. package/dist/chunk-FXIBGTS5.js +0 -14
  202. package/dist/chunk-MFJP5FA7.js +0 -20
  203. package/dist/chunk-ZZT2E5VT.js +0 -24
  204. package/dist/shared-BNXAdgh2.d.ts +0 -9
@@ -1,14 +1,16 @@
1
- import { DEFAULT_WEEK_START, useControllable, DEFAULT_WEEK_START_INDEX, weekStartIndex, toWireDate } from './chunk-5RAPA22E.js';
2
- import { Popover } from './chunk-3Y5X7B5C.js';
3
- import { DateInput } from './chunk-5NOBSXJN.js';
4
- import { DEFAULT_FORMAT, parseFormat, fromISO, BE_OFFSET } from './chunk-GFOAJVW5.js';
5
- import { Button } from './chunk-W46K56XU.js';
1
+ import { DEFAULT_WEEK_START, useControllable, DEFAULT_WEEK_START_INDEX, weekStartIndex, toWireDate } from './chunk-FWRHBMWT.js';
2
+ import { Popover } from './chunk-YQYVGWIC.js';
3
+ import { DateInput } from './chunk-E2YZ7IMT.js';
4
+ import { DEFAULT_FORMAT, parseFormat, fromISO, BE_OFFSET } from './chunk-3QXLIZIX.js';
6
5
  import { INTRINSIC_CELL, INTRINSIC_STACK, IntrinsicWidth } from './chunk-7S2TBALK.js';
7
- import { FieldShell } from './chunk-QA74ITR4.js';
8
- import { useFieldValidity, FieldFrame, CONTROL_ICON } from './chunk-J2BCKBHC.js';
9
- import { CalendarIcon, ChevronLeftIcon, ChevronRightIcon, ChevronDownIcon } from './chunk-24TO7E32.js';
10
- import { warnPositiveInt, devWarn } from './chunk-GCVA3OIV.js';
6
+ import { useLocaleConfig } from './chunk-YIHKQ63K.js';
7
+ import { Button } from './chunk-OACWA4TC.js';
8
+ import { FieldShell } from './chunk-X2VMIBK5.js';
9
+ import { useFieldValidity, FieldFrame, CONTROL_ICON } from './chunk-5KSD4WKN.js';
10
+ import { CalendarIcon, ChevronLeftIcon, ChevronRightIcon, ChevronDownIcon } from './chunk-BLIZ3CL3.js';
11
11
  import { cn } from './chunk-ZSNJ6UA3.js';
12
+ import { useLabels, usePublishedLabels, LabelsContext } from './chunk-RJTVCA62.js';
13
+ import { warnPositiveInt, devWarn } from './chunk-QDYE5LVT.js';
12
14
  import { enUS } from 'date-fns/locale';
13
15
  import * as React5 from 'react';
14
16
  import { startOfDay, subDays, endOfWeek, startOfWeek, endOfMonth, startOfMonth, subMonths, endOfYear, startOfYear, subYears, isValid, addYears, format } from 'date-fns';
@@ -371,6 +373,35 @@ function DayGrid(props) {
371
373
  const value = selected;
372
374
  return /* @__PURE__ */ jsx(DayPicker, { ...shared, mode: "single", selected: value ?? void 0, onSelect: (next) => onSelect(next ?? null) });
373
375
  }
376
+
377
+ // src/components/date-picker/labels.ts
378
+ var DATE_PICKER_LABELS = {
379
+ /** The trigger's accessible name when the field has no `label`. */
380
+ openCalendar: "Choose a date",
381
+ openRange: "Choose a date range",
382
+ /** The two typed segments of a range. */
383
+ startDate: "Start date",
384
+ endDate: "End date",
385
+ /** The confirm footer, shown under `commit="confirm"`. */
386
+ cancel: "Cancel",
387
+ apply: "Apply",
388
+ /** Defaults behind the `placeholder` props — each prop still wins. */
389
+ placeholder: "Select date",
390
+ rangePlaceholder: "Select dates",
391
+ /** Defaults behind the standalone calendars' `aria-label`. */
392
+ calendarName: "Calendar",
393
+ rangeCalendarName: "Date range calendar",
394
+ /**
395
+ * Appended to the trigger's accessible name when the field is required, visually hidden —
396
+ * `aria-required` is illegal on `role="button"`, so the requirement has to travel in the NAME.
397
+ *
398
+ * Deliberately the bare word, NOT the `", required"` that `FIELD_LABELS` and `DROPZONE_LABELS`
399
+ * carry: this converts an existing literal and the pass's rule is that a default is byte-identical
400
+ * to what it replaced. The three spellings SHOULD agree — the comma is a pause a screen reader
401
+ * honours — but changing what a picker announces is a decision, not a conversion.
402
+ */
403
+ required: "required"
404
+ };
374
405
  function DateCalendar(props) {
375
406
  const {
376
407
  value,
@@ -379,13 +410,19 @@ function DateCalendar(props) {
379
410
  min,
380
411
  max,
381
412
  disabledDates,
382
- locale = enUS,
383
- weekStartsOn = DEFAULT_WEEK_START,
384
- era = "ce",
413
+ locale: localeProp,
414
+ weekStartsOn: weekStartsOnProp,
415
+ era: eraProp,
416
+ labels,
385
417
  size = "md",
386
418
  defaultMonth,
387
419
  className
388
420
  } = props;
421
+ const t = useLabels("datePicker", DATE_PICKER_LABELS, labels);
422
+ const app = useLocaleConfig();
423
+ const locale = localeProp ?? app.locale ?? enUS;
424
+ const era = eraProp ?? app.era ?? "ce";
425
+ const weekStartsOn = weekStartsOnProp ?? app.weekStartsOn ?? DEFAULT_WEEK_START;
389
426
  const [selected, setSelected] = useControllable(value, defaultValue, onValueChange);
390
427
  const normalized = React5.useMemo(() => toCalendarDate(selected), [selected]);
391
428
  return /* @__PURE__ */ jsx(
@@ -402,7 +439,7 @@ function DateCalendar(props) {
402
439
  era,
403
440
  size,
404
441
  defaultMonth,
405
- ariaLabel: props["aria-label"] ?? "Calendar",
442
+ ariaLabel: props["aria-label"] ?? t.calendarName,
406
443
  className
407
444
  }
408
445
  );
@@ -420,13 +457,19 @@ function DateRangeCalendar(props) {
420
457
  min,
421
458
  max,
422
459
  disabledDates,
423
- locale = enUS,
424
- weekStartsOn = DEFAULT_WEEK_START,
425
- era = "ce",
460
+ locale: localeProp,
461
+ weekStartsOn: weekStartsOnProp,
462
+ era: eraProp,
463
+ labels,
426
464
  size = "md",
427
465
  defaultMonth,
428
466
  className
429
467
  } = props;
468
+ const t = useLabels("datePicker", DATE_PICKER_LABELS, labels);
469
+ const app = useLocaleConfig();
470
+ const locale = localeProp ?? app.locale ?? enUS;
471
+ const era = eraProp ?? app.era ?? "ce";
472
+ const weekStartsOn = weekStartsOnProp ?? app.weekStartsOn ?? DEFAULT_WEEK_START;
430
473
  const [selected, setSelected] = useControllable(value, defaultValue, (next) => onValueChange?.(next ?? EMPTY_RANGE));
431
474
  const normalized = React5.useMemo(
432
475
  () => ({ start: toCalendarDate(selected?.start), end: toCalendarDate(selected?.end) }),
@@ -449,7 +492,7 @@ function DateRangeCalendar(props) {
449
492
  era,
450
493
  size,
451
494
  defaultMonth,
452
- ariaLabel: props["aria-label"] ?? "Date range calendar",
495
+ ariaLabel: props["aria-label"] ?? t.rangeCalendarName,
453
496
  className
454
497
  }
455
498
  );
@@ -627,9 +670,10 @@ function usePickerDraft(committed, commit, setCommitted, onOpen) {
627
670
  };
628
671
  }
629
672
  function ApplyRow({ onCancel, onApply, disabled }) {
673
+ const t = useLabels("datePicker", DATE_PICKER_LABELS, void 0);
630
674
  return /* @__PURE__ */ jsxs(Fragment, { children: [
631
- /* @__PURE__ */ jsx(Button, { type: "button", variant: "secondary", color: "neutral", size: "sm", onClick: onCancel, children: "Cancel" }),
632
- /* @__PURE__ */ jsx(Button, { type: "button", variant: "primary", size: "sm", onClick: onApply, disabled, children: "Apply" })
675
+ /* @__PURE__ */ jsx(Button, { type: "button", variant: "secondary", color: "neutral", size: "sm", onClick: onCancel, children: t.cancel }),
676
+ /* @__PURE__ */ jsx(Button, { type: "button", variant: "primary", size: "sm", onClick: onApply, disabled, children: t.apply })
633
677
  ] });
634
678
  }
635
679
  var BODY = "flex flex-col gap-3";
@@ -642,7 +686,7 @@ function DatePicker(props) {
642
686
  format: formatProp,
643
687
  dateInputFormat = DEFAULT_FORMAT,
644
688
  commit = "instant",
645
- placeholder = "Select date",
689
+ placeholder: placeholderProp,
646
690
  side = "bottom",
647
691
  align = "start",
648
692
  label,
@@ -664,13 +708,21 @@ function DatePicker(props) {
664
708
  min,
665
709
  max,
666
710
  disabledDates,
667
- locale = enUS,
668
- weekStartsOn = DEFAULT_WEEK_START,
669
- era = "ce",
711
+ locale: localeProp,
712
+ weekStartsOn: weekStartsOnProp,
713
+ era: eraProp,
714
+ labels,
670
715
  size = "md",
671
716
  defaultMonth,
672
717
  className
673
718
  } = props;
719
+ const t = useLabels("datePicker", DATE_PICKER_LABELS, labels);
720
+ const publishedLabels = usePublishedLabels("datePicker", labels);
721
+ const placeholder = placeholderProp ?? t.placeholder;
722
+ const app = useLocaleConfig();
723
+ const locale = localeProp ?? app.locale ?? enUS;
724
+ const era = eraProp ?? app.era ?? "ce";
725
+ const weekStartsOn = weekStartsOnProp ?? app.weekStartsOn ?? DEFAULT_WEEK_START;
674
726
  const hasTime = hasTimeSegments(dateInputFormat);
675
727
  const displayFormat = formatProp ?? defaultDisplayFormat(dateInputFormat);
676
728
  const [rawCommitted, setCommitted] = useControllable(value, defaultValue, onValueChange);
@@ -730,12 +782,12 @@ function DatePicker(props) {
730
782
  valueNode,
731
783
  /* @__PURE__ */ jsx(IntrinsicWidth, { candidates: sizingCandidates, className: "font-medium" })
732
784
  ] }) : valueNode,
733
- required && !hideRequiredIndicator ? /* @__PURE__ */ jsx("span", { id: requiredId, className: "sr-only", children: "required" }) : null,
785
+ required && !hideRequiredIndicator ? /* @__PURE__ */ jsx("span", { id: requiredId, className: "sr-only", children: t.required }) : null,
734
786
  /* @__PURE__ */ jsx(TriggerGlyph, { size })
735
787
  ]
736
788
  }
737
789
  );
738
- return /* @__PURE__ */ jsx(
790
+ return /* @__PURE__ */ jsx(LabelsContext.Provider, { value: publishedLabels, children: /* @__PURE__ */ jsx(
739
791
  FieldFrame,
740
792
  {
741
793
  label,
@@ -786,11 +838,23 @@ function DatePicker(props) {
786
838
  align,
787
839
  size: "lg",
788
840
  className: "max-h-[var(--available-height)] max-w-none",
789
- dividers: commit === "confirm",
790
- "aria-label": label ?? "Choose a date",
841
+ dividers: commit === "confirm" ? "line" : "none",
842
+ "aria-label": label ?? t.openCalendar,
791
843
  footer: commit === "confirm" ? () => /* @__PURE__ */ jsx(ApplyRow, { onCancel: picker.close, onApply: picker.apply }) : void 0,
792
844
  children: /* @__PURE__ */ jsxs("div", { className: BODY, children: [
793
- /* @__PURE__ */ jsx(TypedRow, { value: picker.draft, onValueChange: onTypedChange, format: dateInputFormat, hasTime, era, size, min, max }),
845
+ /* @__PURE__ */ jsx(
846
+ TypedRow,
847
+ {
848
+ value: picker.draft,
849
+ onValueChange: onTypedChange,
850
+ format: dateInputFormat,
851
+ hasTime,
852
+ era,
853
+ size,
854
+ min,
855
+ max
856
+ }
857
+ ),
794
858
  /* @__PURE__ */ jsx(
795
859
  DayGrid,
796
860
  {
@@ -817,7 +881,7 @@ function DatePicker(props) {
817
881
  }
818
882
  )
819
883
  }
820
- );
884
+ ) });
821
885
  }
822
886
  DatePicker.displayName = "DatePicker";
823
887
  var EMPTY_RANGE2 = { start: null, end: null };
@@ -833,7 +897,7 @@ function DateRangePicker(props) {
833
897
  format: formatProp,
834
898
  dateInputFormat = DEFAULT_FORMAT,
835
899
  commit = "instant",
836
- placeholder = "Select dates",
900
+ placeholder: placeholderProp,
837
901
  side = "bottom",
838
902
  align = "start",
839
903
  label,
@@ -855,13 +919,21 @@ function DateRangePicker(props) {
855
919
  min,
856
920
  max,
857
921
  disabledDates,
858
- locale = enUS,
859
- weekStartsOn = DEFAULT_WEEK_START,
860
- era = "ce",
922
+ locale: localeProp,
923
+ weekStartsOn: weekStartsOnProp,
924
+ era: eraProp,
925
+ labels,
861
926
  size = "md",
862
927
  defaultMonth,
863
928
  className
864
929
  } = props;
930
+ const t = useLabels("datePicker", DATE_PICKER_LABELS, labels);
931
+ const publishedLabels = usePublishedLabels("datePicker", labels);
932
+ const placeholder = placeholderProp ?? t.rangePlaceholder;
933
+ const app = useLocaleConfig();
934
+ const locale = localeProp ?? app.locale ?? enUS;
935
+ const era = eraProp ?? app.era ?? "ce";
936
+ const weekStartsOn = weekStartsOnProp ?? app.weekStartsOn ?? DEFAULT_WEEK_START;
865
937
  const hasTime = hasTimeSegments(dateInputFormat);
866
938
  const displayFormat = formatProp ?? defaultDisplayFormat(dateInputFormat);
867
939
  const [rawCommitted, setCommitted] = useControllable(value, defaultValue, (next) => onValueChange?.(next ?? EMPTY_RANGE2));
@@ -916,12 +988,12 @@ function DateRangePicker(props) {
916
988
  className: TRIGGER_CLASS,
917
989
  children: [
918
990
  /* @__PURE__ */ jsx("span", { id: valueId, className: cn("truncate", printed == null ? "text-quaternary" : "font-medium"), children: printed ?? placeholder }),
919
- required && !hideRequiredIndicator ? /* @__PURE__ */ jsx("span", { id: requiredId, className: "sr-only", children: "required" }) : null,
991
+ required && !hideRequiredIndicator ? /* @__PURE__ */ jsx("span", { id: requiredId, className: "sr-only", children: t.required }) : null,
920
992
  /* @__PURE__ */ jsx(TriggerGlyph, { size })
921
993
  ]
922
994
  }
923
995
  );
924
- return /* @__PURE__ */ jsx(
996
+ return /* @__PURE__ */ jsx(LabelsContext.Provider, { value: publishedLabels, children: /* @__PURE__ */ jsx(
925
997
  FieldFrame,
926
998
  {
927
999
  label,
@@ -969,15 +1041,15 @@ function DateRangePicker(props) {
969
1041
  align,
970
1042
  size: "lg",
971
1043
  className: "max-h-[var(--available-height)] max-w-none",
972
- dividers: commit === "confirm",
973
- "aria-label": label ?? "Choose a date range",
1044
+ dividers: commit === "confirm" ? "line" : "none",
1045
+ "aria-label": label ?? t.openRange,
974
1046
  footer: commit === "confirm" ? () => /* @__PURE__ */ jsx(ApplyRow, { onCancel: picker.close, onApply: picker.apply }) : void 0,
975
1047
  children: /* @__PURE__ */ jsxs("div", { className: BODY, children: [
976
1048
  /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
977
1049
  /* @__PURE__ */ jsx(
978
1050
  TypedRow,
979
1051
  {
980
- label: "Start date",
1052
+ label: t.startDate,
981
1053
  value: picker.draft.start,
982
1054
  onValueChange: (next) => onTypedChange("start", next),
983
1055
  format: dateInputFormat,
@@ -992,7 +1064,7 @@ function DateRangePicker(props) {
992
1064
  /* @__PURE__ */ jsx(
993
1065
  TypedRow,
994
1066
  {
995
- label: "End date",
1067
+ label: t.endDate,
996
1068
  value: picker.draft.end,
997
1069
  onValueChange: (next) => onTypedChange("end", next),
998
1070
  format: dateInputFormat,
@@ -1037,10 +1109,10 @@ function DateRangePicker(props) {
1037
1109
  }
1038
1110
  )
1039
1111
  }
1040
- );
1112
+ ) });
1041
1113
  }
1042
1114
  DateRangePicker.displayName = "DateRangePicker";
1043
1115
 
1044
1116
  export { DATE_PRESETS, DateCalendar, DatePicker, DateRangeCalendar, DateRangePicker, resolvePreset };
1045
- //# sourceMappingURL=chunk-JTNFJLIY.js.map
1046
- //# sourceMappingURL=chunk-JTNFJLIY.js.map
1117
+ //# sourceMappingURL=chunk-667ZHY3T.js.map
1118
+ //# sourceMappingURL=chunk-667ZHY3T.js.map
@@ -1,7 +1,9 @@
1
- import { PopupScrollViewport } from './chunk-ZZT2E5VT.js';
1
+ import { PopupScrollViewport } from './chunk-PO2TYK3C.js';
2
+ import { ruleEdge, RULE_WEIGHT, rulePaint } from './chunk-LCG34A5T.js';
3
+ import { useLinkElement } from './chunk-5AZKP4KZ.js';
2
4
  import { Slot } from './chunk-52IFGFTL.js';
3
- import { ChevronRightIcon, CheckIcon } from './chunk-24TO7E32.js';
4
5
  import { POPUP_MOTION, POPUP_MOTION_HOST } from './chunk-O4GRKO3I.js';
6
+ import { ChevronRightIcon, CheckIcon } from './chunk-BLIZ3CL3.js';
5
7
  import { cn } from './chunk-ZSNJ6UA3.js';
6
8
  import { Menu } from '@base-ui/react/menu';
7
9
  import 'react';
@@ -72,8 +74,10 @@ function CheckboxBoxIndicator({ trailing = false }) {
72
74
  );
73
75
  }
74
76
  function ActionRow({ item, size }) {
75
- const { label, leading, trailing, shortcut, variant = "default", active, disabled, onClick, href, closeOnClick, className } = item;
77
+ const { label, leading, trailing, shortcut, variant = "default", active, disabled, onClick, href, render, closeOnClick, className } = item;
76
78
  const tone = variant === "destructive" ? "destructive" : active ? "active" : "default";
79
+ const link = useLinkElement(disabled ? void 0 : href);
80
+ const element = disabled ? void 0 : render ?? link;
77
81
  return /* @__PURE__ */ jsxs(
78
82
  Menu.Item,
79
83
  {
@@ -82,7 +86,7 @@ function ActionRow({ item, size }) {
82
86
  disabled,
83
87
  closeOnClick,
84
88
  onClick,
85
- render: href ? /* @__PURE__ */ jsx("a", { href }) : void 0,
89
+ render: element,
86
90
  children: [
87
91
  leading ? /* @__PURE__ */ jsx(LeadingIcon, { size, tone, children: leading }) : null,
88
92
  /* @__PURE__ */ jsx("span", { className: LABEL_SLOT, children: label }),
@@ -174,12 +178,12 @@ function SubmenuRow({ item, size }) {
174
178
  /* @__PURE__ */ jsx(MenuPopup, { items, size, side: "right", align: "start", inSub: true })
175
179
  ] });
176
180
  }
177
- var POPUP_BOX = "w-fit max-w-[min(var(--available-width),22rem)] min-w-48 rounded-lg bg-primary shadow-lg ring-1 ring-secondary_alt ring-inset";
181
+ var POPUP_BOX = "w-fit max-w-[min(var(--available-width),22rem)] min-w-36 rounded-lg bg-primary shadow-lg ring-1 ring-secondary_alt ring-inset";
178
182
  function ItemList({ items, size }) {
179
183
  return /* @__PURE__ */ jsx(Fragment, { children: items.map((item, i) => {
180
184
  const id = "separator" in item ? void 0 : item.id;
181
185
  const key = id === void 0 ? `ix:${i}` : `id:${id}`;
182
- if ("separator" in item) return /* @__PURE__ */ jsx(Menu.Separator, { className: "my-1 h-px w-full bg-border-secondary" }, key);
186
+ if ("separator" in item) return /* @__PURE__ */ jsx(Menu.Separator, { className: cn("my-1 w-full", RULE_WEIGHT.line.y, rulePaint()) }, key);
183
187
  if ("type" in item)
184
188
  return item.type === "checkbox" ? /* @__PURE__ */ jsx(CheckboxRow, { item, size }, key) : /* @__PURE__ */ jsx(RadioCluster, { item, size }, key);
185
189
  if ("group" in item) return /* @__PURE__ */ jsx(GroupCluster, { item, size }, key);
@@ -195,7 +199,8 @@ function MenuPopup({
195
199
  className,
196
200
  inSub = false,
197
201
  header,
198
- footer
202
+ footer,
203
+ dividers = "line"
199
204
  }) {
200
205
  const resolvedSide = side ?? (inSub ? "right" : "bottom");
201
206
  const sideOffset = inSub ? -6 : 8;
@@ -214,21 +219,33 @@ function MenuPopup({
214
219
  * with pinned chrome is a container that HOLDS a menu. Base UI keeps every bit of the
215
220
  * behaviour it owns; only our own box moves out. */
216
221
  /* @__PURE__ */ jsxs("div", { className: cn(POPUP_BOX, "overflow-hidden", POPUP_MOTION_HOST, className), children: [
217
- header != null ? /* @__PURE__ */ jsx("div", { className: "border-b border-secondary p-3", children: header }) : null,
222
+ header != null ? /* @__PURE__ */ jsx("div", { className: cn("p-3", ruleEdge(dividers, "bottom")), children: header }) : null,
218
223
  /* @__PURE__ */ jsx(Menu.Popup, { className: cn("text-primary outline-none", POPUP_MOTION), children: /* @__PURE__ */ jsx(PopupScrollViewport, { max: "var(--available-height)", className: "flex flex-col py-1", children: /* @__PURE__ */ jsx(ItemList, { items, size }) }) }),
219
- footer != null ? /* @__PURE__ */ jsx("div", { className: "border-t border-secondary p-3", children: footer }) : null
224
+ footer != null ? /* @__PURE__ */ jsx("div", { className: cn("p-3", ruleEdge(dividers, "top")), children: footer }) : null
220
225
  ] })
221
226
  ) : /* @__PURE__ */ jsx(Menu.Popup, { className: cn(POPUP_BOX, "text-primary outline-none", POPUP_MOTION, className), children: /* @__PURE__ */ jsx(PopupScrollViewport, { max: "var(--available-height)", className: "flex flex-col py-1", children: /* @__PURE__ */ jsx(ItemList, { items, size }) }) }) }) });
222
227
  }
223
228
  function DropdownMenu(props) {
224
- const { items, trigger, size = "md", side, align, open, defaultOpen, onOpenChange, modal = true, header, footer, className } = props;
229
+ const { items, trigger, size = "md", side, align, open, defaultOpen, onOpenChange, modal = true, header, footer, dividers, className } = props;
225
230
  return /* @__PURE__ */ jsxs(Menu.Root, { open, defaultOpen, modal, onOpenChange: onOpenChange ? (next) => onOpenChange(next) : void 0, children: [
226
231
  trigger ? /* @__PURE__ */ jsx(Menu.Trigger, { render: trigger }) : null,
227
- /* @__PURE__ */ jsx(MenuPopup, { items, size, side, align, className, header, footer })
232
+ /* @__PURE__ */ jsx(
233
+ MenuPopup,
234
+ {
235
+ items,
236
+ size,
237
+ side,
238
+ align,
239
+ className,
240
+ header,
241
+ footer,
242
+ dividers
243
+ }
244
+ )
228
245
  ] });
229
246
  }
230
247
  DropdownMenu.displayName = "DropdownMenu";
231
248
 
232
249
  export { DropdownMenu };
233
- //# sourceMappingURL=chunk-JP26LPCY.js.map
234
- //# sourceMappingURL=chunk-JP26LPCY.js.map
250
+ //# sourceMappingURL=chunk-6B6BWTXC.js.map
251
+ //# sourceMappingURL=chunk-6B6BWTXC.js.map
@@ -1,7 +1,7 @@
1
1
  import { useScrollFade } from './chunk-O2LG3PNI.js';
2
2
  import { useIsomorphicLayoutEffect } from './chunk-EDSK6FEH.js';
3
- import { warnPositiveInt } from './chunk-GCVA3OIV.js';
4
3
  import { cn } from './chunk-ZSNJ6UA3.js';
4
+ import { warnPositiveInt } from './chunk-QDYE5LVT.js';
5
5
  import * as React from 'react';
6
6
 
7
7
  function tagShellPy(size, hasPills) {
@@ -71,5 +71,5 @@ function useTagRow(opts) {
71
71
  }
72
72
 
73
73
  export { useTagRow };
74
- //# sourceMappingURL=chunk-W5GGOUUI.js.map
75
- //# sourceMappingURL=chunk-W5GGOUUI.js.map
74
+ //# sourceMappingURL=chunk-6H4LNWQ7.js.map
75
+ //# sourceMappingURL=chunk-6H4LNWQ7.js.map
@@ -1,12 +1,51 @@
1
- import { Input } from './chunk-7HOIZ3UO.js';
2
- import { NativeSelect } from './chunk-LME57Z6J.js';
3
- import { ChevronsLeftIcon, ChevronLeftIcon, ChevronRightIcon, ChevronsRightIcon } from './chunk-24TO7E32.js';
4
- import { TooltipExport } from './chunk-ZZA2LUTL.js';
5
- import { warnPositiveInt, warnNonNegativeInt } from './chunk-GCVA3OIV.js';
1
+ import { NativeSelect } from './chunk-I6WMNXC7.js';
2
+ import { Separator } from './chunk-7VLYQR4D.js';
3
+ import { Input } from './chunk-7GUPNTAH.js';
4
+ import { TooltipExport } from './chunk-KZP6B6B3.js';
5
+ import { ChevronsLeftIcon, ChevronLeftIcon, ChevronRightIcon, ChevronsRightIcon } from './chunk-BLIZ3CL3.js';
6
6
  import { cn } from './chunk-ZSNJ6UA3.js';
7
+ import { useLabels } from './chunk-RJTVCA62.js';
8
+ import { warnPositiveInt, warnNonNegativeInt } from './chunk-QDYE5LVT.js';
7
9
  import * as React from 'react';
8
10
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
9
11
 
12
+ // src/components/pagination/labels.ts
13
+ var PAGINATION_LABELS = {
14
+ /** The `<nav>` landmark. */
15
+ nav: "Pagination",
16
+ /** VISIBLE — the readout word before the page number. */
17
+ page: "Page",
18
+ /**
19
+ * VISIBLE — the words AFTER the page number, carrying the total: `Page` [3] `of 12`.
20
+ *
21
+ * Two keys bracketing the number rather than one whole-sentence key, because under `goto` the
22
+ * middle of that sentence is an `<input>`. A label returns a STRING, so it cannot wrap a node —
23
+ * the field has to sit between two labels. Thai keeps the same order (`หน้า` 3 `จาก 12`), so the
24
+ * bracket is a fit here and not a compromise; a language that puts the total first would need
25
+ * this pair rethought, and the existing `page` key already carried that constraint.
26
+ */
27
+ ofTotal: (ctx) => `of ${ctx.total}`,
28
+ /** The jump input's accessible name. */
29
+ goToPage: "Go to page",
30
+ /** Each numbered button. */
31
+ pageNumber: (ctx) => `Page ${ctx.page}`,
32
+ /** VISIBLE and also the select's accessible name — one key, both sites, because they are one
33
+ * phrase and a translation that split them would be saying two things. */
34
+ rowsPerPage: "Rows per page",
35
+ /**
36
+ * VISIBLE — the result count beside the pager.
37
+ *
38
+ * `formatted` arrives already locale-grouped (`"1,204"`), because formatting is the component's
39
+ * decision and a translator must never have to reimplement `toLocaleString`. `count` is the raw
40
+ * number, there for a plural rule: English owns its own two-form branch here, so a language with
41
+ * three forms overrides the whole function rather than fighting a hard-coded `s`.
42
+ */
43
+ results: (ctx) => `${ctx.formatted} ${ctx.count === 1 ? "result" : "results"}`,
44
+ first: "First page",
45
+ previous: "Previous page",
46
+ next: "Next page",
47
+ last: "Last page"
48
+ };
10
49
  var ELLIPSIS = "\u2026";
11
50
  function pageWindow(page, pageCount, siblingCount = 1) {
12
51
  const total = Math.max(1, pageCount);
@@ -83,8 +122,10 @@ function Pagination({
83
122
  goto = false,
84
123
  siblingCount = 1,
85
124
  disabled,
125
+ labels,
86
126
  className
87
127
  }) {
128
+ const t = useLabels("pagination", PAGINATION_LABELS, labels);
88
129
  const total = Math.max(1, pageCount);
89
130
  const current = Math.min(Math.max(1, page), total);
90
131
  React.useEffect(() => {
@@ -110,7 +151,7 @@ function Pagination({
110
151
  {
111
152
  size: "sm",
112
153
  inputMode: "numeric",
113
- "aria-label": "Go to page",
154
+ "aria-label": t.goToPage,
114
155
  value: draft ?? String(current),
115
156
  disabled,
116
157
  onChange: (event) => setDraft(event.target.value),
@@ -131,12 +172,9 @@ function Pagination({
131
172
  const showReadoutWords = variant !== "minimal";
132
173
  const gotoInMetadata = goto && variant === "numbered";
133
174
  const readoutBody = /* @__PURE__ */ jsxs(Fragment, { children: [
134
- showReadoutWords ? /* @__PURE__ */ jsx("span", { children: "Page" }) : null,
175
+ showReadoutWords ? /* @__PURE__ */ jsx("span", { children: t.page }) : null,
135
176
  goto ? pageField : /* @__PURE__ */ jsx("span", { className: "font-medium text-primary", children: current }),
136
- showReadoutWords ? /* @__PURE__ */ jsxs("span", { children: [
137
- "of ",
138
- total
139
- ] }) : null
177
+ showReadoutWords ? /* @__PURE__ */ jsx("span", { children: t.ofTotal({ total }) }) : null
140
178
  ] });
141
179
  const metadata = [];
142
180
  if (gotoInMetadata) {
@@ -151,12 +189,12 @@ function Pagination({
151
189
  id: "size",
152
190
  tier: 30,
153
191
  node: (tierClass) => /* @__PURE__ */ jsxs("div", { className: cn("items-center gap-2 text-sm text-tertiary", tierClass), children: [
154
- /* @__PURE__ */ jsx("span", { className: "whitespace-nowrap", children: "Rows per page" }),
192
+ /* @__PURE__ */ jsx("span", { className: "whitespace-nowrap", children: t.rowsPerPage }),
155
193
  /* @__PURE__ */ jsx(
156
194
  NativeSelect,
157
195
  {
158
196
  size: "sm",
159
- "aria-label": "Rows per page",
197
+ "aria-label": t.rowsPerPage,
160
198
  value: String(pageSize),
161
199
  disabled,
162
200
  onChange: (event) => onPageSizeChange(Number(event.target.value)),
@@ -170,24 +208,14 @@ function Pagination({
170
208
  metadata.push({
171
209
  id: "total",
172
210
  tier: 42,
173
- node: (tierClass) => /* @__PURE__ */ jsxs("span", { className: cn("text-sm whitespace-nowrap text-tertiary", tierClass), children: [
174
- totalItems.toLocaleString(),
175
- " ",
176
- totalItems === 1 ? "result" : "results"
177
- ] })
211
+ node: (tierClass) => /* @__PURE__ */ jsx("span", { className: cn("text-sm whitespace-nowrap text-tertiary", tierClass), children: t.results({ count: totalItems, formatted: totalItems.toLocaleString() }) })
178
212
  });
179
213
  }
180
- return /* @__PURE__ */ jsx("div", { className: cn("@container w-full", className), children: /* @__PURE__ */ jsxs("nav", { "aria-label": "Pagination", className: cn("flex w-full flex-wrap items-center gap-2 @[46rem]:gap-3", ALIGN[align]), children: [
214
+ return /* @__PURE__ */ jsx("div", { className: cn("@container w-full", className), children: /* @__PURE__ */ jsxs("nav", { "aria-label": t.nav, className: cn("flex w-full flex-wrap items-center gap-2 @[46rem]:gap-3", ALIGN[align]), children: [
181
215
  /* @__PURE__ */ jsx("div", { className: "flex items-center gap-3", children: metadata.map((member, index) => {
182
216
  const previous = metadata[index - 1];
183
217
  return /* @__PURE__ */ jsxs(React.Fragment, { children: [
184
- previous ? /* @__PURE__ */ jsx(
185
- "span",
186
- {
187
- "aria-hidden": "true",
188
- className: cn("h-5 w-px shrink-0 bg-border-secondary", TIER_SHOW[Math.max(previous.tier, member.tier)])
189
- }
190
- ) : null,
218
+ previous ? /* @__PURE__ */ jsx(Separator, { orientation: "vertical", decorative: true, className: TIER_SHOW[Math.max(previous.tier, member.tier)] }) : null,
191
219
  member.node(TIER_SHOW[member.tier])
192
220
  ] }, member.id);
193
221
  }) }),
@@ -196,7 +224,7 @@ function Pagination({
196
224
  variant === "numbered" ? /* @__PURE__ */ jsx(
197
225
  Arrow,
198
226
  {
199
- label: "First page",
227
+ label: t.first,
200
228
  icon: /* @__PURE__ */ jsx(ChevronsLeftIcon, {}),
201
229
  color,
202
230
  disabled: Boolean(disabled) || current <= 1,
@@ -204,16 +232,7 @@ function Pagination({
204
232
  className: "hidden @[46rem]:flex"
205
233
  }
206
234
  ) : null,
207
- /* @__PURE__ */ jsx(
208
- Arrow,
209
- {
210
- label: "Previous page",
211
- icon: /* @__PURE__ */ jsx(ChevronLeftIcon, {}),
212
- color,
213
- disabled: Boolean(disabled) || current <= 1,
214
- onClick: () => go(current - 1)
215
- }
216
- )
235
+ /* @__PURE__ */ jsx(Arrow, { label: t.previous, icon: /* @__PURE__ */ jsx(ChevronLeftIcon, {}), color, disabled: Boolean(disabled) || current <= 1, onClick: () => go(current - 1) })
217
236
  ] }),
218
237
  variant === "numbered" ? /* @__PURE__ */ jsx("div", { className: "hidden items-center gap-0.5 @[46rem]:flex", children: pageWindow(current, total, siblingCount).map(
219
238
  (entry, index) => entry === ELLIPSIS ? /* @__PURE__ */ jsx("span", { "aria-hidden": "true", className: "flex size-9 shrink-0 items-center justify-center text-tertiary", children: ELLIPSIS }, `gap-${index}`) : /* @__PURE__ */ jsx(
@@ -222,7 +241,7 @@ function Pagination({
222
241
  type: "button",
223
242
  disabled,
224
243
  "aria-current": entry === current ? "page" : void 0,
225
- "aria-label": `Page ${entry}`,
244
+ "aria-label": t.pageNumber({ page: entry }),
226
245
  onClick: () => go(entry),
227
246
  className: cn(PAGE_BUTTON, entry === current ? PAGE_BUTTON_ACTIVE[color] : PAGE_BUTTON_IDLE[color]),
228
247
  children: entry
@@ -247,20 +266,11 @@ function Pagination({
247
266
  )
248
267
  ) : null,
249
268
  /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-1", children: [
250
- /* @__PURE__ */ jsx(
251
- Arrow,
252
- {
253
- label: "Next page",
254
- icon: /* @__PURE__ */ jsx(ChevronRightIcon, {}),
255
- color,
256
- disabled: Boolean(disabled) || current >= total,
257
- onClick: () => go(current + 1)
258
- }
259
- ),
269
+ /* @__PURE__ */ jsx(Arrow, { label: t.next, icon: /* @__PURE__ */ jsx(ChevronRightIcon, {}), color, disabled: Boolean(disabled) || current >= total, onClick: () => go(current + 1) }),
260
270
  variant === "numbered" ? /* @__PURE__ */ jsx(
261
271
  Arrow,
262
272
  {
263
- label: "Last page",
273
+ label: t.last,
264
274
  icon: /* @__PURE__ */ jsx(ChevronsRightIcon, {}),
265
275
  color,
266
276
  disabled: Boolean(disabled) || current >= total,
@@ -275,5 +285,5 @@ function Pagination({
275
285
  Pagination.displayName = "Pagination";
276
286
 
277
287
  export { Pagination, pageWindow };
278
- //# sourceMappingURL=chunk-WFY7DKQD.js.map
279
- //# sourceMappingURL=chunk-WFY7DKQD.js.map
288
+ //# sourceMappingURL=chunk-6MMBQVRO.js.map
289
+ //# sourceMappingURL=chunk-6MMBQVRO.js.map