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,12 +1,17 @@
1
- import { PanelChrome } from './chunk-J7ZQQFPT.js';
2
- import { CloseButton } from './chunk-MQGD2OUF.js';
3
- import { useScrollFade } from './chunk-O2LG3PNI.js';
1
+ import { PanelChrome } from './chunk-LO22VQL5.js';
2
+ import { CloseButton } from './chunk-CGHYXWTT.js';
4
3
  import { BACKDROP_MOTION, DIALOG_POPUP_MOTION } from './chunk-O4GRKO3I.js';
5
4
  import { cn } from './chunk-ZSNJ6UA3.js';
6
5
  import { Dialog } from '@base-ui/react/dialog';
7
6
  import * as React from 'react';
8
7
  import { jsxs, jsx } from 'react/jsx-runtime';
9
8
 
9
+ // src/components/overlay/backdrop.ts
10
+ var OVERLAY_BACKDROPS = ["scrim", "blur"];
11
+ var BACKDROP_TREATMENT = {
12
+ scrim: "bg-overlay",
13
+ blur: "bg-overlay-soft backdrop-blur-overlay"
14
+ };
10
15
  var DIALOG_SIZE = {
11
16
  sm: "max-w-sm",
12
17
  md: "max-w-lg",
@@ -26,12 +31,24 @@ function useControllableOpen(open, defaultOpen, onOpenChange) {
26
31
  return [value, setOpen];
27
32
  }
28
33
  function DialogSurface(props) {
29
- const { size = "md", showClose, dividers, keepMounted, title, description, leading, trailing, footer, className, children, close } = props;
34
+ const {
35
+ size = "md",
36
+ backdrop = "scrim",
37
+ showClose,
38
+ dividers,
39
+ keepMounted,
40
+ title,
41
+ description,
42
+ leading,
43
+ trailing,
44
+ footer,
45
+ className,
46
+ children,
47
+ close
48
+ } = props;
30
49
  const ariaLabel = props["aria-label"];
31
- const bodyRef = React.useRef(null);
32
- const { maskImage } = useScrollFade(bodyRef, { axis: "vertical" });
33
50
  return /* @__PURE__ */ jsxs(Dialog.Portal, { keepMounted, children: [
34
- /* @__PURE__ */ jsx(Dialog.Backdrop, { className: cn("fixed inset-0 z-50 bg-overlay", BACKDROP_MOTION) }),
51
+ /* @__PURE__ */ jsx(Dialog.Backdrop, { className: cn("fixed inset-0 z-50", BACKDROP_TREATMENT[backdrop], BACKDROP_MOTION) }),
35
52
  /* @__PURE__ */ jsx("div", { className: "pointer-events-none fixed inset-0 z-50 flex items-center justify-center p-4", children: /* @__PURE__ */ jsx(
36
53
  PanelChrome,
37
54
  {
@@ -51,8 +68,6 @@ function DialogSurface(props) {
51
68
  titleScale: "lg",
52
69
  footerAlign: "end",
53
70
  scrollBody: true,
54
- bodyRef,
55
- bodyMask: maskImage,
56
71
  dividers,
57
72
  title,
58
73
  description,
@@ -68,6 +83,6 @@ function DialogSurface(props) {
68
83
  ] });
69
84
  }
70
85
 
71
- export { DialogSurface, useControllableOpen };
72
- //# sourceMappingURL=chunk-CYPPEUX5.js.map
73
- //# sourceMappingURL=chunk-CYPPEUX5.js.map
86
+ export { BACKDROP_TREATMENT, DialogSurface, OVERLAY_BACKDROPS, useControllableOpen };
87
+ //# sourceMappingURL=chunk-CKMWBVRR.js.map
88
+ //# sourceMappingURL=chunk-CKMWBVRR.js.map
@@ -1,7 +1,8 @@
1
- import { SURFACE_BASE, SURFACE_VARIANT, SURFACE_PADDING } from './chunk-MFJP5FA7.js';
1
+ import { SURFACE_BASE, surfaceBox, SURFACE_PADDING } from './chunk-45Y2ZGNK.js';
2
2
  import { cn } from './chunk-ZSNJ6UA3.js';
3
+ import { Field } from '@base-ui/react/field';
3
4
  import 'react';
4
- import { jsxs, jsx } from 'react/jsx-runtime';
5
+ import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
5
6
 
6
7
  var OPTION_ROW_GAP = {
7
8
  md: "gap-2",
@@ -24,7 +25,7 @@ function optionHintClass(size) {
24
25
  function optionCardClasses(size, opts = {}) {
25
26
  return cn(
26
27
  SURFACE_BASE,
27
- SURFACE_VARIANT.outlined,
28
+ surfaceBox("outlined", "none"),
28
29
  "w-full transition-colors duration-100 ease-linear",
29
30
  size === "md" ? SURFACE_PADDING.sm : SURFACE_PADDING.md,
30
31
  "has-[[data-checked]]:ring-2 has-[[data-checked]]:ring-brand",
@@ -51,27 +52,25 @@ function ControlText(props) {
51
52
  }
52
53
  ControlText.displayName = "ControlText";
53
54
  function OptionRow(props) {
54
- const { size, control, label, hint, labelId, hintId, bordered = false, disabled = false, className, ...labelProps } = props;
55
- return /* @__PURE__ */ jsxs(
56
- "label",
57
- {
58
- className: cn(
59
- "inline-flex items-start select-none",
60
- OPTION_ROW_GAP[size],
61
- disabled ? "cursor-not-allowed" : "cursor-pointer",
62
- bordered && optionCardClasses(size, { disabled }),
63
- className
64
- ),
65
- ...labelProps,
66
- children: [
67
- control,
68
- /* @__PURE__ */ jsx(ControlText, { size, label, hint, labelId, hintId })
69
- ]
70
- }
55
+ const { size, control, label, hint, labelId, hintId, bordered = false, disabled = false, scoped = false, className, ...labelProps } = props;
56
+ const rowClassName = cn(
57
+ "inline-flex items-start select-none",
58
+ OPTION_ROW_GAP[size],
59
+ disabled ? "cursor-not-allowed" : "cursor-pointer",
60
+ bordered && optionCardClasses(size, { disabled }),
61
+ className
71
62
  );
63
+ const children = /* @__PURE__ */ jsxs(Fragment, { children: [
64
+ control,
65
+ /* @__PURE__ */ jsx(ControlText, { size, label, hint, labelId, hintId })
66
+ ] });
67
+ if (scoped) {
68
+ return /* @__PURE__ */ jsx(Field.Item, { render: /* @__PURE__ */ jsx("label", { ...labelProps }), className: rowClassName, children });
69
+ }
70
+ return /* @__PURE__ */ jsx("label", { className: rowClassName, ...labelProps, children });
72
71
  }
73
72
  OptionRow.displayName = "OptionRow";
74
73
 
75
74
  export { OptionRow };
76
- //# sourceMappingURL=chunk-GTHJWR3Q.js.map
77
- //# sourceMappingURL=chunk-GTHJWR3Q.js.map
75
+ //# sourceMappingURL=chunk-D7EE5GWU.js.map
76
+ //# sourceMappingURL=chunk-D7EE5GWU.js.map
@@ -1,12 +1,24 @@
1
- import { DEFAULT_FORMAT, parseFormat, fromISO, toISO, dispBounds, SEG_LABEL, segValueText, getDisp, parsePastedDate, applyPastedDate, clamp, pad, displaySeg, setDisp, wrap } from './chunk-GFOAJVW5.js';
1
+ import { DEFAULT_FORMAT, parseFormat, fromISO, toISO, dispBounds, segValueText, getDisp, parsePastedDate, applyPastedDate, clamp, pad, displaySeg, setDisp, wrap } from './chunk-3QXLIZIX.js';
2
+ import { useLocaleConfig } from './chunk-YIHKQ63K.js';
2
3
  import { useControlScrollFade } from './chunk-7EUAMHMU.js';
3
- import { FieldShell } from './chunk-QA74ITR4.js';
4
- import { useFieldValidity, FieldFrame } from './chunk-J2BCKBHC.js';
4
+ import { FieldShell } from './chunk-X2VMIBK5.js';
5
+ import { useFieldValidity, FieldFrame } from './chunk-5KSD4WKN.js';
5
6
  import { cn } from './chunk-ZSNJ6UA3.js';
7
+ import { useLabels } from './chunk-RJTVCA62.js';
6
8
  import { Field } from '@base-ui/react/field';
7
9
  import * as React from 'react';
8
10
  import { jsx, jsxs } from 'react/jsx-runtime';
9
11
 
12
+ // src/components/date-input/labels.ts
13
+ var DATE_INPUT_LABELS = {
14
+ month: "Month",
15
+ day: "Day",
16
+ year: "Year",
17
+ hour: "Hour",
18
+ minute: "Minute",
19
+ second: "Second",
20
+ dayPeriod: "AM/PM"
21
+ };
10
22
  var SEG_BASE = (
11
23
  // UUI DateSegment: the focused (brand-boxed) segment bumps to `font-medium` (500).
12
24
  "rounded-sm px-0.5 tabular-nums caret-transparent outline-none cursor-default select-none focus:bg-brand-solid focus:font-medium focus:text-fg-white"
@@ -20,7 +32,8 @@ function DateInput(props) {
20
32
  min,
21
33
  max,
22
34
  format = DEFAULT_FORMAT,
23
- era = "ce",
35
+ era: eraProp,
36
+ labels,
24
37
  leading,
25
38
  trailing,
26
39
  leadingAddon,
@@ -39,6 +52,9 @@ function DateInput(props) {
39
52
  id,
40
53
  className
41
54
  } = props;
55
+ const t = useLabels("dateInput", DATE_INPUT_LABELS, labels);
56
+ const app = useLocaleConfig();
57
+ const era = eraProp ?? app.era ?? "ce";
42
58
  const { ref: fadeRef, style: fadeStyle } = useControlScrollFade(true);
43
59
  const parsed = React.useMemo(() => parseFormat(format), [format]);
44
60
  const cfg = {
@@ -257,7 +273,7 @@ function DateInput(props) {
257
273
  "aria-label": label,
258
274
  onPaste,
259
275
  onCopy,
260
- className: "flex min-w-0 flex-1 [scrollbar-width:none] items-center overflow-x-auto [&::-webkit-scrollbar]:hidden",
276
+ className: "scrollbar-none flex min-w-0 flex-1 items-center overflow-x-auto",
261
277
  children: specs.map(({ seg, sep }, index) => {
262
278
  const { lo, hi } = dispBounds(seg, parts, cfg);
263
279
  return /* @__PURE__ */ jsxs(React.Fragment, { children: [
@@ -269,7 +285,7 @@ function DateInput(props) {
269
285
  role: "spinbutton",
270
286
  "data-segment": seg,
271
287
  tabIndex: disabled ? -1 : 0,
272
- "aria-label": SEG_LABEL[seg],
288
+ "aria-label": t[seg],
273
289
  "aria-describedby": describedBy,
274
290
  "aria-valuenow": getDisp(seg, parts, cfg) ?? void 0,
275
291
  "aria-valuemin": lo,
@@ -293,5 +309,5 @@ function DateInput(props) {
293
309
  }
294
310
 
295
311
  export { DateInput };
296
- //# sourceMappingURL=chunk-5NOBSXJN.js.map
297
- //# sourceMappingURL=chunk-5NOBSXJN.js.map
312
+ //# sourceMappingURL=chunk-E2YZ7IMT.js.map
313
+ //# sourceMappingURL=chunk-E2YZ7IMT.js.map
@@ -1,21 +1,27 @@
1
1
  import { INTRINSIC_CELL, INTRINSIC_STACK, IntrinsicWidth } from './chunk-7S2TBALK.js';
2
+ import { PopupScrollViewport } from './chunk-PO2TYK3C.js';
3
+ import { Tag } from './chunk-LYXPJERB.js';
2
4
  import { NO_RETURN_FOCUS } from './chunk-S7NNXWIN.js';
3
- import { PopupScrollViewport } from './chunk-ZZT2E5VT.js';
4
- import { ListboxFooter, MultiValueCount } from './chunk-FHHAPGCR.js';
5
+ import { ListboxFooter, MultiValueCount } from './chunk-4RBIWI2Q.js';
6
+ import { useTagRow } from './chunk-6H4LNWQ7.js';
5
7
  import { buildOptionMap, mapOptions } from './chunk-7JBNLEJ7.js';
6
- import { Tag } from './chunk-R6RGJF4L.js';
7
- import { useTagRow } from './chunk-W5GGOUUI.js';
8
- import { FieldShell } from './chunk-QA74ITR4.js';
9
- import { warnSeamlessFieldChrome, useSeamlessSlot, SEAMLESS_CONTROL } from './chunk-KNYKWUYX.js';
8
+ import { FieldShell } from './chunk-X2VMIBK5.js';
9
+ import { useFieldValidity, FieldFrame, SHELL_SIZE, BAR_SIZE, LISTBOX_PX_SM, CONTROL_ICON, SLOT_ICON } from './chunk-5KSD4WKN.js';
10
+ import { warnSeamlessFieldChrome, useSeamlessSlot, SEAMLESS_CONTROL } from './chunk-7ZM7SNCZ.js';
10
11
  import { Slot } from './chunk-52IFGFTL.js';
11
- import { useFieldValidity, FieldFrame, SHELL_SIZE, BAR_SIZE, LISTBOX_PX_SM, CONTROL_ICON, SLOT_ICON } from './chunk-J2BCKBHC.js';
12
- import { ChevronDownIcon, CheckIcon } from './chunk-24TO7E32.js';
13
12
  import { POPUP_MOTION } from './chunk-O4GRKO3I.js';
13
+ import { ChevronDownIcon, CheckIcon } from './chunk-BLIZ3CL3.js';
14
14
  import { cn } from './chunk-ZSNJ6UA3.js';
15
+ import { useLabels } from './chunk-RJTVCA62.js';
15
16
  import { Select as Select$1 } from '@base-ui/react/select';
16
17
  import * as React from 'react';
17
18
  import { jsxs, jsx } from 'react/jsx-runtime';
18
19
 
20
+ // src/components/select/labels.ts
21
+ var SELECT_LABELS = {
22
+ /** Default behind the `placeholder` prop — the caller's own prop still wins. */
23
+ placeholder: "Select\u2026"
24
+ };
19
25
  var SelectContext = React.createContext({
20
26
  size: "md",
21
27
  invalid: false,
@@ -183,7 +189,19 @@ function renderTriggerValue(v, c) {
183
189
  return /* @__PURE__ */ jsx(MultiValueCount, { count: values.length, supportingText: c.supportingText });
184
190
  }
185
191
  function SelectTrigger(props) {
186
- const { placeholder = "Select\u2026", display = "tags", supportingText, maxRows, leading, trailing, leadingAddon, trailingAddon, ...rest } = props;
192
+ const t = useLabels("select", SELECT_LABELS, props.labels);
193
+ const {
194
+ placeholder = t.placeholder,
195
+ labels: _labels,
196
+ display = "tags",
197
+ supportingText,
198
+ maxRows,
199
+ leading,
200
+ trailing,
201
+ leadingAddon,
202
+ trailingAddon,
203
+ ...rest
204
+ } = props;
187
205
  const { size, invalid, labelId, multiple, optionMap, seamless, fullWidth, anchorRef } = useSelectContext();
188
206
  const slot = useSeamlessSlot();
189
207
  const useRenderFn = multiple || optionMap.size > 0;
@@ -372,6 +390,7 @@ function SelectFlat(props) {
372
390
  const {
373
391
  options,
374
392
  placeholder,
393
+ labels,
375
394
  display,
376
395
  supportingText,
377
396
  maxRows,
@@ -395,6 +414,7 @@ function SelectFlat(props) {
395
414
  SelectTrigger,
396
415
  {
397
416
  placeholder,
417
+ labels,
398
418
  display,
399
419
  supportingText,
400
420
  maxRows,
@@ -431,5 +451,5 @@ SelectGroupLabel.displayName = "SelectGroupLabel";
431
451
  var Select = SelectFlat;
432
452
 
433
453
  export { Select };
434
- //# sourceMappingURL=chunk-T7FCG7XV.js.map
435
- //# sourceMappingURL=chunk-T7FCG7XV.js.map
454
+ //# sourceMappingURL=chunk-FFMTYQXE.js.map
455
+ //# sourceMappingURL=chunk-FFMTYQXE.js.map
@@ -1,13 +1,16 @@
1
- import { useAutoScroll, useDrag, snapToStep } from './chunk-KMSYEE23.js';
2
- import { DEFAULT_WEEK_START, resolveTimeZone, useControllable, startOfDayIn, dayKey, formatIn, displayYear, monthOf, differenceInDaysIn, startOfMonthIn, startOfLastDayOfMonthIn, toWireDate, toWireInstant, addDaysIn, startOfWeekIn, addMonthsIn, minutesFromMidnight, earlierOf, laterOf } from './chunk-5RAPA22E.js';
3
- import { Card } from './chunk-DRZCJCBO.js';
4
- import { Popover } from './chunk-3Y5X7B5C.js';
5
- import { ACCENT, SUBTLE } from './chunk-CME4DIML.js';
6
- import { Slot } from './chunk-52IFGFTL.js';
1
+ import { DEFAULT_WEEK_START, resolveTimeZone, useControllable, startOfDayIn, dayKey, formatIn, displayYear, monthOf, differenceInDaysIn, startOfMonthIn, startOfLastDayOfMonthIn, toWireDate, toWireInstant, addDaysIn, startOfWeekIn, addMonthsIn, minutesFromMidnight, earlierOf, laterOf } from './chunk-FWRHBMWT.js';
2
+ import { Card } from './chunk-GZMDZF2V.js';
3
+ import { useAutoScroll, useDrag, snapToStep } from './chunk-P6CON2R2.js';
4
+ import { Popover } from './chunk-YQYVGWIC.js';
5
+ import { ScrollView } from './chunk-FKVPAEJ6.js';
6
+ import { useLocaleConfig } from './chunk-YIHKQ63K.js';
7
+ import { ACCENT, SUBTLE } from './chunk-MCQG4H6T.js';
7
8
  import { useIsomorphicLayoutEffect } from './chunk-EDSK6FEH.js';
8
- import { ChevronLeftIcon, ChevronRightIcon } from './chunk-24TO7E32.js';
9
- import { devWarn, warnStickyNoScrollport } from './chunk-GCVA3OIV.js';
9
+ import { Slot } from './chunk-52IFGFTL.js';
10
+ import { ChevronLeftIcon, ChevronRightIcon } from './chunk-BLIZ3CL3.js';
10
11
  import { cn } from './chunk-ZSNJ6UA3.js';
12
+ import { useLabels, usePublishedLabels, LabelsContext } from './chunk-RJTVCA62.js';
13
+ import { devWarn, warnStickyNoScrollport } from './chunk-QDYE5LVT.js';
11
14
  import { enUS } from 'date-fns/locale';
12
15
  import * as React from 'react';
13
16
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
@@ -175,6 +178,26 @@ function dayDelta(from, to, cfg) {
175
178
  return differenceInDaysIn(to, from, cfg.timeZone);
176
179
  }
177
180
 
181
+ // src/components/calendar/labels.ts
182
+ var CALENDAR_LABELS = {
183
+ /** The grid's landmark name, when the caller gave none. */
184
+ nav: (ctx) => `Calendar, ${ctx.period}`,
185
+ agendaEmpty: "Nothing scheduled this week.",
186
+ /** VISIBLE — the time grid's all-day row, in the hour gutter. Lowercase, matching the hour labels
187
+ * beneath it ("9 AM"), and the one string in this scope a user READS rather than hears. */
188
+ allDay: "all-day",
189
+ /** A day cell that cannot take an event. */
190
+ unavailable: (ctx) => `${ctx.name} (unavailable)`,
191
+ /** A time-grid slot button — the same "(unavailable)" suffix, on a name that includes the hour. */
192
+ slot: (ctx) => `${ctx.when}${ctx.placeable ? "" : " (unavailable)"}`,
193
+ /** The week-of-month readout. */
194
+ weekNumber: (ctx) => `Week ${ctx.week}`,
195
+ /* ── the keyboard grab's live region ───────────────────────────────── */
196
+ grabbed: (ctx) => `Grabbed ${ctx.title}. Use arrow keys to move, Enter to confirm, Escape to cancel.`,
197
+ movedTo: (ctx) => `${ctx.title} moved to ${ctx.when}`,
198
+ nowEndsAt: (ctx) => `${ctx.title} now ends at ${ctx.time}`
199
+ };
200
+
178
201
  // src/components/calendar/layout.ts
179
202
  function byStartThenEndThenId(a, b) {
180
203
  return a.start.getTime() - b.start.getTime() || a.end.getTime() - b.end.getTime() || (a.id < b.id ? -1 : a.id > b.id ? 1 : 0);
@@ -303,9 +326,9 @@ function useCalendar(options) {
303
326
  defaultFocusedDate,
304
327
  onFocusedDateChange,
305
328
  timeZone: timeZoneProp,
306
- locale = enUS,
307
- weekStartsOn = DEFAULT_WEEK_START,
308
- era = "ce",
329
+ locale: localeProp,
330
+ weekStartsOn: weekStartsOnProp,
331
+ era: eraProp,
309
332
  now: nowProp,
310
333
  hours = [0, 24],
311
334
  slotDuration = 30,
@@ -322,7 +345,12 @@ function useCalendar(options) {
322
345
  return () => clearInterval(id);
323
346
  }, [pinned]);
324
347
  const now = nowProp ?? autoNow;
325
- const timeZone = resolveTimeZone(timeZoneProp);
348
+ const labels = useLabels("calendar", CALENDAR_LABELS, void 0);
349
+ const app = useLocaleConfig();
350
+ const locale = localeProp ?? app.locale ?? enUS;
351
+ const weekStartsOn = weekStartsOnProp ?? app.weekStartsOn ?? DEFAULT_WEEK_START;
352
+ const era = eraProp ?? app.era ?? "ce";
353
+ const timeZone = resolveTimeZone(timeZoneProp ?? app.timeZone);
326
354
  const bothView = viewProp !== void 0 && options.defaultView !== void 0;
327
355
  const bothFocused = focusedProp !== void 0 && defaultFocusedDate !== void 0;
328
356
  const warnedBoth = React.useRef(false);
@@ -384,7 +412,7 @@ function useCalendar(options) {
384
412
  const periodLabel = React.useMemo(() => buildPeriodLabel(view, focusedDate, config), [view, focusedKey, config]);
385
413
  const rangeLabel = React.useMemo(() => buildRangeLabel(view, focusedDate, config), [view, focusedKey, config]);
386
414
  const monthLabel = React.useMemo(() => buildMonthLabel(focusedDate, config), [focusedKey, config]);
387
- const weekLabel = React.useMemo(() => buildWeekLabel(focusedDate, config), [focusedKey, config]);
415
+ const weekLabel = React.useMemo(() => buildWeekLabel(focusedDate, config, labels), [focusedKey, config, labels]);
388
416
  const todayLabel = React.useMemo(() => buildTodayLabel(config), [config]);
389
417
  const [draft, setDraft] = React.useState(null);
390
418
  const [grabbed, setGrabbed] = React.useState(null);
@@ -441,9 +469,9 @@ function buildPeriodLabel(view, focused, cfg) {
441
469
  function buildMonthLabel(focused, cfg) {
442
470
  return `${formatIn(focused, cfg.timeZone, "LLLL", cfg.locale)} ${displayYear(focused, cfg.timeZone, cfg.era)}`;
443
471
  }
444
- function buildWeekLabel(focused, cfg) {
472
+ function buildWeekLabel(focused, cfg, t) {
445
473
  const offset = differenceInDaysIn(focused, startOfMonthIn(focused, cfg.timeZone), cfg.timeZone);
446
- return `Week ${Math.floor(offset / 7) + 1}`;
474
+ return t.weekNumber({ week: Math.floor(offset / 7) + 1 });
447
475
  }
448
476
  function buildTodayLabel(cfg) {
449
477
  return {
@@ -513,7 +541,8 @@ var NOW_LINE = "pointer-events-none absolute inset-x-0 z-0 h-px bg-brand-solid";
513
541
  var NOW_DOT = "absolute -top-1 left-0 size-2 rounded-full bg-brand-solid";
514
542
  var ALL_DAY_ROW = "sticky top-0 z-3 border-b border-secondary bg-primary";
515
543
  var HOUR_GUTTER = "sticky left-0 z-3 shrink-0 bg-primary text-quaternary text-xs tabular-nums";
516
- var SCROLLER = "relative min-h-0 flex-1 overflow-y-auto overscroll-contain rounded-[inherit]";
544
+ var SCROLLER_ROOT = "min-h-0 flex-1 rounded-[inherit]";
545
+ var SCROLLER_VIEWPORT = "relative rounded-[inherit]";
517
546
  var CHIP_BASE = "group/chip relative flex min-w-0 cursor-pointer touch-manipulation items-center gap-1.5 rounded-md text-left font-medium transition-colors duration-100 ease-linear";
518
547
  var BLOCK_POSITION = "absolute right-0 left-(--cal-inset) z-1 px-px";
519
548
  var CHIP_VARIANT = {
@@ -634,9 +663,10 @@ EventChip.displayName = "EventChip";
634
663
  function AgendaView({ instance, size, focusRef }) {
635
664
  const { config, layout, onEventClick } = instance;
636
665
  const { groups } = layout;
666
+ const t = useLabels("calendar", CALENDAR_LABELS, void 0);
637
667
  const total = groups.reduce((sum, g) => sum + g.events.length, 0);
638
668
  if (total === 0) {
639
- return /* @__PURE__ */ jsx("div", { ref: focusRef, className: "min-w-0", children: /* @__PURE__ */ jsx(Card, { variant: "subtle", padding: "lg", className: "text-center", children: /* @__PURE__ */ jsx("p", { className: "text-sm text-tertiary", children: "Nothing scheduled this week." }) }) });
669
+ return /* @__PURE__ */ jsx("div", { ref: focusRef, className: "min-w-0", children: /* @__PURE__ */ jsx(Card, { variant: "subtle", padding: "lg", className: "text-center", children: /* @__PURE__ */ jsx("p", { className: "text-sm text-tertiary", children: t.agendaEmpty }) }) });
640
670
  }
641
671
  return /* @__PURE__ */ jsx("div", { ref: focusRef, className: "min-w-0", children: /* @__PURE__ */ jsx(Card, { variant: "outlined", padding: "none", children: /* @__PURE__ */ jsx("dl", { className: "m-0 flex flex-col", children: groups.map((group, index) => /* @__PURE__ */ jsxs("div", { className: cn("flex min-w-0 flex-col gap-2 p-4 sm:flex-row sm:gap-6", index > 0 && cn("border-t", GRID_LINE)), children: [
642
672
  /* @__PURE__ */ jsxs("dt", { className: "flex shrink-0 items-baseline gap-2 sm:w-32 sm:flex-col sm:gap-0.5", children: [
@@ -847,17 +877,18 @@ TimeGhost.displayName = "TimeGhost";
847
877
  LaneGhost.displayName = "LaneGhost";
848
878
  var ANNOUNCE_MS = 300;
849
879
  var ARROWS = /* @__PURE__ */ new Set(["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"]);
850
- function describe(event, range, kind, instance) {
880
+ function describe(event, range, kind, instance, t) {
851
881
  const { timeZone: tz, locale } = instance.config;
852
882
  if (kind === "resize") {
853
- return `${event.title} now ends at ${formatIn(range.end, tz, "HH:mm", locale)}`;
883
+ return t.nowEndsAt({ title: event.title, time: formatIn(range.end, tz, "HH:mm", locale) });
854
884
  }
855
885
  const when = formatIn(range.start, tz, event.allDay === true ? "EEEE d MMMM" : "EEEE HH:mm", locale);
856
- return `${event.title} moved to ${when}`;
886
+ return t.movedTo({ title: event.title, when });
857
887
  }
858
888
  function useGrabMode(instance) {
859
889
  const { config, canPlace, setDraft, commit, grabbed, setGrabbed } = instance;
860
890
  const [announcement, setAnnouncement] = React.useState("");
891
+ const t = useLabels("calendar", CALENDAR_LABELS, void 0);
861
892
  const range = React.useRef(null);
862
893
  const timer = React.useRef(null);
863
894
  const latest = React.useRef({ config, canPlace, setDraft, commit, grabbed, setGrabbed, instance });
@@ -890,7 +921,7 @@ function useGrabMode(instance) {
890
921
  range.current = { start: event.start, end: event.end };
891
922
  latest.current.setGrabbed(event);
892
923
  latest.current.setDraft({ kind: "move", event, start: event.start, end: event.end, allDay: event.allDay === true, valid: true });
893
- setAnnouncement(`Grabbed ${event.title}. Use arrow keys to move, Enter to confirm, Escape to cancel.`);
924
+ setAnnouncement(t.grabbed({ title: event.title }));
894
925
  return;
895
926
  }
896
927
  if (e.key === "Escape") {
@@ -936,7 +967,7 @@ function useGrabMode(instance) {
936
967
  if (!latest.current.canPlace({ event, start: next.start, end: next.end, allDay })) return;
937
968
  range.current = next;
938
969
  latest.current.setDraft({ kind, event, start: next.start, end: next.end, allDay, valid: true });
939
- announce(describe(event, next, kind, latest.current.instance));
970
+ announce(describe(event, next, kind, latest.current.instance, t));
940
971
  },
941
972
  [announce, release]
942
973
  );
@@ -951,6 +982,7 @@ function useGrabMode(instance) {
951
982
  }
952
983
  var MONTH_CELL_BUDGET = 4;
953
984
  function MonthView({ instance, size, focusRef }) {
985
+ const t = useLabels("calendar", CALENDAR_LABELS, void 0);
954
986
  const { config, layout, visibleEvents, onEventClick, onSlotClick, canPlace, draft } = instance;
955
987
  const { monthRows, lanes } = layout;
956
988
  const gridRef = React.useRef(null);
@@ -986,7 +1018,7 @@ function MonthView({ instance, size, focusRef }) {
986
1018
  "button",
987
1019
  {
988
1020
  type: "button",
989
- "aria-label": placeable ? dayName : `${dayName} (unavailable)`,
1021
+ "aria-label": placeable ? dayName : t.unavailable({ name: dayName }),
990
1022
  disabled: !placeable,
991
1023
  onClick: placeable ? () => onSlotClick(wholeDay) : void 0,
992
1024
  ...placeable ? drag.createHandlers(day2, null) : {},
@@ -1080,6 +1112,7 @@ function MonthView({ instance, size, focusRef }) {
1080
1112
  }
1081
1113
  MonthView.displayName = "MonthView";
1082
1114
  function TimeGridView({ instance, size, showNowLine, focusRef }) {
1115
+ const t = useLabels("calendar", CALENDAR_LABELS, void 0);
1083
1116
  const { config, layout, onEventClick, onSlotClick, canPlace } = instance;
1084
1117
  const { days, timed, lanes } = layout;
1085
1118
  const slotHeight = SLOT_PX[size];
@@ -1157,7 +1190,7 @@ function TimeGridView({ instance, size, showNowLine, focusRef }) {
1157
1190
  ]
1158
1191
  }
1159
1192
  ),
1160
- /* @__PURE__ */ jsxs("div", { ref: scrollerRef, className: cn(SCROLLER), children: [
1193
+ /* @__PURE__ */ jsxs(ScrollView, { className: SCROLLER_ROOT, viewportClassName: SCROLLER_VIEWPORT, viewportRef: scrollerRef, children: [
1161
1194
  /* @__PURE__ */ jsxs(
1162
1195
  "div",
1163
1196
  {
@@ -1165,7 +1198,7 @@ function TimeGridView({ instance, size, showNowLine, focusRef }) {
1165
1198
  className: cn("grid", ALL_DAY_ROW, "grid-cols-[var(--cal-gutter)_1fr]"),
1166
1199
  style: { "--cal-gutter": gutterWidth(size) },
1167
1200
  children: [
1168
- /* @__PURE__ */ jsx("div", { className: cn(GUTTER_W[size], "border-r py-1 pr-2 text-right", GRID_LINE, HOUR_GUTTER, "static"), children: "all-day" }),
1201
+ /* @__PURE__ */ jsx("div", { className: cn(GUTTER_W[size], "border-r py-1 pr-2 text-right", GRID_LINE, HOUR_GUTTER, "static"), children: t.allDay }),
1169
1202
  /* @__PURE__ */ jsxs("div", { className: cn("relative grid px-1 py-1", columnsClass), style: { minHeight: laneRows * (barHeight + BAR_GAP_PX) }, children: [
1170
1203
  lanes.segments.map((segment) => /* @__PURE__ */ jsx(
1171
1204
  "div",
@@ -1226,7 +1259,7 @@ function TimeGridView({ instance, size, showNowLine, focusRef }) {
1226
1259
  disabled: !placeable,
1227
1260
  onClick: placeable ? () => onSlotClick({ start, end, allDay: false }) : void 0,
1228
1261
  ...placeable ? drag.createHandlers(day2, i * config.slotDuration) : {},
1229
- "aria-label": `${formatIn(start, config.timeZone, "EEEE d MMMM, HH:mm", config.locale)}${placeable ? "" : " (unavailable)"}`,
1262
+ "aria-label": t.slot({ when: formatIn(start, config.timeZone, "EEEE d MMMM, HH:mm", config.locale), placeable }),
1230
1263
  className: cn(
1231
1264
  "absolute inset-x-0 border-b",
1232
1265
  // TWO weights, not one. The hour keeps the full rule; the half hour gets a
@@ -1291,7 +1324,9 @@ function gutterWidth(size) {
1291
1324
  }
1292
1325
  TimeGridView.displayName = "TimeGridView";
1293
1326
  function Calendar(props) {
1294
- const { instance, size = "md", showNowLine = true, className } = props;
1327
+ const { instance, size = "md", showNowLine = true, labels, className } = props;
1328
+ const t = useLabels("calendar", CALENDAR_LABELS, labels);
1329
+ const publishedLabels = usePublishedLabels("calendar", labels);
1295
1330
  const ariaLabel = props["aria-label"];
1296
1331
  const rootRef = React.useRef(null);
1297
1332
  const view = instance.view;
@@ -1299,17 +1334,17 @@ function Calendar(props) {
1299
1334
  // Week and day are ONE implementation — day is a `dayCount` of 1, not a second grid.
1300
1335
  /* @__PURE__ */ jsx(TimeGridView, { instance, size, showNowLine, focusRef: rootRef })
1301
1336
  );
1302
- return /* @__PURE__ */ jsx("div", { className: cn(CONTAINER, className), children: /* @__PURE__ */ jsx(
1337
+ return /* @__PURE__ */ jsx(LabelsContext.Provider, { value: publishedLabels, children: /* @__PURE__ */ jsx("div", { className: cn(CONTAINER, className), children: /* @__PURE__ */ jsx(
1303
1338
  "section",
1304
1339
  {
1305
- "aria-label": ariaLabel ?? `Calendar, ${instance.periodLabel}`,
1340
+ "aria-label": ariaLabel ?? t.nav({ period: instance.periodLabel }),
1306
1341
  className: cn(ROOT, "h-full"),
1307
1342
  children: body
1308
1343
  }
1309
- ) });
1344
+ ) }) });
1310
1345
  }
1311
1346
  Calendar.displayName = "Calendar";
1312
1347
 
1313
1348
  export { Calendar, isWireDate, parseEvent, serializeEvent, useCalendar };
1314
- //# sourceMappingURL=chunk-J36M3KRX.js.map
1315
- //# sourceMappingURL=chunk-J36M3KRX.js.map
1349
+ //# sourceMappingURL=chunk-FH7Z7SGQ.js.map
1350
+ //# sourceMappingURL=chunk-FH7Z7SGQ.js.map
@@ -0,0 +1,57 @@
1
+ import { useScrollFade } from './chunk-O2LG3PNI.js';
2
+ import { cn } from './chunk-ZSNJ6UA3.js';
3
+ import { ScrollArea } from '@base-ui/react/scroll-area';
4
+ import * as React from 'react';
5
+ import { jsxs, jsx } from 'react/jsx-runtime';
6
+
7
+ var ROOT = "flex flex-col";
8
+ var VIEWPORT = "min-h-0 flex-1 overscroll-contain outline-none";
9
+ var BAR = "z-10 flex touch-none opacity-0 transition-opacity duration-150 select-none data-[hovering]:opacity-100 data-[scrolling]:opacity-100";
10
+ var BAR_V = cn(BAR, "w-1.5 px-px py-2");
11
+ var BAR_H = cn(BAR, "h-1.5 flex-col px-2 py-px");
12
+ var THUMB = "flex-1 rounded-full bg-border-primary";
13
+ function ScrollView(props) {
14
+ const { axis = "vertical", fade, composite = false, className, style, viewportClassName, viewportRef, viewportStyle, children } = props;
15
+ const showV = axis === "vertical" || axis === "both";
16
+ const showH = axis === "horizontal" || axis === "both";
17
+ const fadeAxis = fade === void 0 ? axis === "both" ? false : axis : fade;
18
+ const innerRef = React.useRef(null);
19
+ const { maskImage } = useScrollFade(innerRef, { axis: fadeAxis === false ? "vertical" : fadeAxis, enabled: fadeAxis !== false });
20
+ const setViewport = React.useCallback(
21
+ (node) => {
22
+ innerRef.current = node;
23
+ if (typeof viewportRef === "function") viewportRef(node);
24
+ else if (viewportRef != null) viewportRef.current = node;
25
+ },
26
+ [viewportRef]
27
+ );
28
+ return (
29
+ // `role={undefined}` on both boxes, deliberately. Base UI stamps `role="presentation"` to say
30
+ // "I am a wrapper" — but a scroll region is frequently wrapped AROUND something with a required
31
+ // child list, and `presentation` is the one wrapper role that BREAKS that: axe's
32
+ // `aria-required-children` reports "Element has children which are not allowed:
33
+ // [role=presentation]" for a `role="menu"` whose rows now sit two presentational divs down. A
34
+ // div with no role is generic — transparent to that traversal and identical to AT — which is
35
+ // exactly what every scroller in this library was before it came through here.
36
+ /* @__PURE__ */ jsxs(ScrollArea.Root, { role: void 0, className: cn(ROOT, className), style, children: [
37
+ /* @__PURE__ */ jsx(
38
+ ScrollArea.Viewport,
39
+ {
40
+ role: void 0,
41
+ ...composite ? { tabIndex: void 0 } : {},
42
+ ref: setViewport,
43
+ className: cn(VIEWPORT, viewportClassName),
44
+ style: { ...viewportStyle, ...maskImage != null && { maskImage, WebkitMaskImage: maskImage } },
45
+ children
46
+ }
47
+ ),
48
+ showV ? /* @__PURE__ */ jsx(ScrollArea.Scrollbar, { orientation: "vertical", className: BAR_V, children: /* @__PURE__ */ jsx(ScrollArea.Thumb, { className: THUMB }) }) : null,
49
+ showH ? /* @__PURE__ */ jsx(ScrollArea.Scrollbar, { orientation: "horizontal", className: BAR_H, children: /* @__PURE__ */ jsx(ScrollArea.Thumb, { className: THUMB }) }) : null,
50
+ showV && showH ? /* @__PURE__ */ jsx(ScrollArea.Corner, {}) : null
51
+ ] })
52
+ );
53
+ }
54
+
55
+ export { ScrollView };
56
+ //# sourceMappingURL=chunk-FKVPAEJ6.js.map
57
+ //# sourceMappingURL=chunk-FKVPAEJ6.js.map
@@ -1,5 +1,5 @@
1
- import { Button } from './chunk-W46K56XU.js';
2
- import { MoonIcon, SunIcon } from './chunk-24TO7E32.js';
1
+ import { Button } from './chunk-OACWA4TC.js';
2
+ import { MoonIcon, SunIcon } from './chunk-BLIZ3CL3.js';
3
3
  import * as React from 'react';
4
4
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
5
5
 
@@ -132,5 +132,5 @@ function ThemeToggle({ size = "sm", className }) {
132
132
  }
133
133
 
134
134
  export { ThemeProvider, ThemeScript, ThemeToggle, buildThemeScript, useTheme };
135
- //# sourceMappingURL=chunk-GRLSUQQE.js.map
136
- //# sourceMappingURL=chunk-GRLSUQQE.js.map
135
+ //# sourceMappingURL=chunk-FNQJJO63.js.map
136
+ //# sourceMappingURL=chunk-FNQJJO63.js.map
@@ -1,5 +1,5 @@
1
- import { BE_OFFSET } from './chunk-GFOAJVW5.js';
2
- import { devWarn } from './chunk-GCVA3OIV.js';
1
+ import { BE_OFFSET } from './chunk-3QXLIZIX.js';
2
+ import { devWarn } from './chunk-QDYE5LVT.js';
3
3
  import { TZDate } from '@date-fns/tz';
4
4
  import { format, startOfDay, startOfWeek, startOfMonth, endOfMonth, addDays, addMonths, differenceInCalendarDays } from 'date-fns';
5
5
  import * as React from 'react';
@@ -102,5 +102,5 @@ function useControllable(controlled, uncontrolledInitial, onChange) {
102
102
  }
103
103
 
104
104
  export { DEFAULT_WEEK_START, DEFAULT_WEEK_START_INDEX, addDaysIn, addMonthsIn, dayKey, differenceInDaysIn, displayYear, earlierOf, formatIn, laterOf, minutesFromMidnight, monthOf, resolveTimeZone, startOfDayIn, startOfLastDayOfMonthIn, startOfMonthIn, startOfWeekIn, toWireDate, toWireInstant, useControllable, weekStartIndex };
105
- //# sourceMappingURL=chunk-5RAPA22E.js.map
106
- //# sourceMappingURL=chunk-5RAPA22E.js.map
105
+ //# sourceMappingURL=chunk-FWRHBMWT.js.map
106
+ //# sourceMappingURL=chunk-FWRHBMWT.js.map