jenosize-ui 0.2.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 (180) hide show
  1. package/README.md +2 -2
  2. package/dist/{PaymentInput-CKPIPNWH.d.ts → PaymentInput-Dn5WVQVy.d.ts} +4 -0
  3. package/dist/{Select-CVbEQ2Ep.d.ts → Select-Dt5ARIH8.d.ts} +4 -0
  4. package/dist/{TagInput-CTJYOB4J.d.ts → TagInput-BaBeve6L.d.ts} +4 -0
  5. package/dist/area-chart.d.ts +3 -2
  6. package/dist/area-chart.js +6 -5
  7. package/dist/avatar.d.ts +5 -0
  8. package/dist/avatar.js +9 -8
  9. package/dist/badge.d.ts +4 -0
  10. package/dist/badge.js +5 -4
  11. package/dist/bar-chart.d.ts +3 -2
  12. package/dist/bar-chart.js +6 -5
  13. package/dist/breadcrumb.d.ts +4 -0
  14. package/dist/breadcrumb.js +4 -2
  15. package/dist/button.d.ts +6 -1
  16. package/dist/button.js +9 -8
  17. package/dist/calendar.d.ts +5 -0
  18. package/dist/calendar.js +15 -13
  19. package/dist/callout.d.ts +6 -6
  20. package/dist/callout.js +11 -9
  21. package/dist/card-D56VxyAe.d.ts +123 -0
  22. package/dist/card.d.ts +3 -51
  23. package/dist/card.js +5 -5
  24. package/dist/checkbox.js +8 -7
  25. package/dist/{chunk-75M43ELV.js → chunk-22M75A3N.js} +75 -45
  26. package/dist/{chunk-A46ED5JQ.js → chunk-33TOK7ES.js} +7 -5
  27. package/dist/{chunk-RNXRZGXN.js → chunk-3H444OJA.js} +5 -3
  28. package/dist/{chunk-DJYWPJZ3.js → chunk-3QXLIZIX.js} +3 -12
  29. package/dist/chunk-3ZEEGXYF.js +8 -0
  30. package/dist/chunk-45Y2ZGNK.js +34 -0
  31. package/dist/{chunk-ILICYNK7.js → chunk-4RBIWI2Q.js} +3 -3
  32. package/dist/{chunk-FIGBJGH2.js → chunk-4VGEJG4M.js} +115 -79
  33. package/dist/{chunk-EX374YWB.js → chunk-54SIZR63.js} +15 -7
  34. package/dist/chunk-5AZKP4KZ.js +49 -0
  35. package/dist/{chunk-NA35YZRD.js → chunk-5DP7W5HX.js} +13 -11
  36. package/dist/{chunk-QKDEQFOQ.js → chunk-5KSD4WKN.js} +13 -4
  37. package/dist/{chunk-RIXEUAPY.js → chunk-5XPMY2LF.js} +5 -5
  38. package/dist/{chunk-6UBYHSBX.js → chunk-5ZEUTSCV.js} +5 -5
  39. package/dist/{chunk-DCGTB7P7.js → chunk-667ZHY3T.js} +111 -39
  40. package/dist/{chunk-MYQ3FD4Y.js → chunk-6B6BWTXC.js} +8 -5
  41. package/dist/{chunk-6HJA7NPL.js → chunk-6H4LNWQ7.js} +3 -3
  42. package/dist/{chunk-JAVNGTOE.js → chunk-6MMBQVRO.js} +58 -43
  43. package/dist/{chunk-JMWYCT63.js → chunk-7GUPNTAH.js} +14 -6
  44. package/dist/{chunk-TBN644IN.js → chunk-7ZM7SNCZ.js} +3 -3
  45. package/dist/{chunk-BD5YKFRA.js → chunk-A323V6AI.js} +5 -3
  46. package/dist/{chunk-AC6ZWKRN.js → chunk-AFYXSZGW.js} +2 -2
  47. package/dist/chunk-AIARANKE.js +33 -0
  48. package/dist/{chunk-54S5CUY6.js → chunk-AIGYMTCU.js} +5 -4
  49. package/dist/{chunk-C6OTOTKI.js → chunk-AZ7DKRBY.js} +5 -5
  50. package/dist/{chunk-QBHQOX23.js → chunk-BBKE4W3B.js} +18 -10
  51. package/dist/{chunk-4BRMM3I5.js → chunk-BFVJHH7S.js} +7 -6
  52. package/dist/{chunk-FFTRB2UU.js → chunk-CFFWYXDW.js} +18 -6
  53. package/dist/{chunk-42FCPC77.js → chunk-CGHYXWTT.js} +10 -4
  54. package/dist/{chunk-VEOYCAJP.js → chunk-CKMWBVRR.js} +27 -7
  55. package/dist/{chunk-GTHJWR3Q.js → chunk-D7EE5GWU.js} +21 -22
  56. package/dist/{chunk-NMERLWT7.js → chunk-E2YZ7IMT.js} +23 -7
  57. package/dist/{chunk-GAFGIT4Q.js → chunk-FFMTYQXE.js} +30 -10
  58. package/dist/{chunk-L53Y7KUV.js → chunk-FH7Z7SGQ.js} +61 -28
  59. package/dist/{chunk-5JRM3OES.js → chunk-FNQJJO63.js} +3 -3
  60. package/dist/{chunk-MD4AR43X.js → chunk-FWRHBMWT.js} +3 -3
  61. package/dist/{chunk-4K6V6NNK.js → chunk-GLKFFA7N.js} +10 -8
  62. package/dist/{chunk-EDOUI2BG.js → chunk-GQRSABRN.js} +4 -4
  63. package/dist/{chunk-BNIWT6CW.js → chunk-GZMDZF2V.js} +7 -6
  64. package/dist/{chunk-HSVBTIP2.js → chunk-HHYEAFCL.js} +70 -27
  65. package/dist/{chunk-P7DH62UY.js → chunk-I6WMNXC7.js} +5 -5
  66. package/dist/{chunk-34J5AANZ.js → chunk-IQNVSQRK.js} +3 -3
  67. package/dist/{chunk-MCUASLZH.js → chunk-KHGW72BM.js} +3 -3
  68. package/dist/{chunk-4R7WDDCW.js → chunk-KZP6B6B3.js} +4 -4
  69. package/dist/{chunk-7HV6EIGZ.js → chunk-LLPWQDF7.js} +3 -3
  70. package/dist/{chunk-FZBZGA3P.js → chunk-LO22VQL5.js} +4 -4
  71. package/dist/{chunk-JXHZHUB3.js → chunk-LQURV7HQ.js} +9 -7
  72. package/dist/{chunk-EDT5J5WK.js → chunk-LYXPJERB.js} +14 -4
  73. package/dist/{chunk-6IUTVDNI.js → chunk-MCQG4H6T.js} +35 -3
  74. package/dist/{chunk-JYBGO6GY.js → chunk-MVG5MABV.js} +11 -8
  75. package/dist/{chunk-PXEJ5RKO.js → chunk-N3RVMBPX.js} +6 -9
  76. package/dist/{chunk-VWGAMOSE.js → chunk-NKG4N6HA.js} +3 -3
  77. package/dist/{chunk-A5WQLN4B.js → chunk-OACWA4TC.js} +14 -52
  78. package/dist/{chunk-LBYCCLVI.js → chunk-OLLD2BZN.js} +9 -9
  79. package/dist/{chunk-T2WAD4QP.js → chunk-POQTE7JI.js} +55 -16
  80. package/dist/{chunk-74HPBSVY.js → chunk-QDKETK7D.js} +4 -4
  81. package/dist/{chunk-VH35QHD4.js → chunk-QHH6AUR3.js} +16 -8
  82. package/dist/chunk-RJTVCA62.js +42 -0
  83. package/dist/{chunk-DTMYD63D.js → chunk-S5TEWPWW.js} +46 -26
  84. package/dist/{chunk-3GT43XPK.js → chunk-SB3DG572.js} +15 -8
  85. package/dist/{chunk-NKDW6C7K.js → chunk-SKRR3ZMP.js} +3 -3
  86. package/dist/{chunk-CTENRS34.js → chunk-T4ZFZTY6.js} +8 -6
  87. package/dist/{chunk-YLEHYDXC.js → chunk-T5574MXM.js} +33 -45
  88. package/dist/{chunk-USL3TDZM.js → chunk-U4WSJAYK.js} +321 -105
  89. package/dist/{chunk-4W6AYGLR.js → chunk-UGKELBNC.js} +55 -39
  90. package/dist/{chunk-M5TVCASC.js → chunk-ULGCGKOE.js} +8 -6
  91. package/dist/{chunk-JUWDRRD6.js → chunk-X2VMIBK5.js} +4 -4
  92. package/dist/{chunk-763VS2FY.js → chunk-YHBI52P2.js} +3 -3
  93. package/dist/chunk-YIHKQ63K.js +13 -0
  94. package/dist/{chunk-3Z3SDKIA.js → chunk-YQYVGWIC.js} +5 -5
  95. package/dist/{chunk-4HKDD3PR.js → chunk-ZHAT2XZ4.js} +91 -57
  96. package/dist/{chunk-CWMFEF6R.js → chunk-ZMFY7WAY.js} +60 -24
  97. package/dist/{chunk-WKWAUU64.js → chunk-ZZSNTCCL.js} +6 -5
  98. package/dist/combobox.d.ts +5 -0
  99. package/dist/combobox.js +12 -11
  100. package/dist/date-input.d.ts +4 -0
  101. package/dist/date-input.js +11 -9
  102. package/dist/date-picker.d.ts +6 -0
  103. package/dist/date-picker.js +23 -21
  104. package/dist/dialog.d.ts +21 -1
  105. package/dist/dialog.js +10 -8
  106. package/dist/drawer.d.ts +11 -1
  107. package/dist/drawer.js +9 -7
  108. package/dist/dropdown-menu.d.ts +12 -0
  109. package/dist/dropdown-menu.js +6 -5
  110. package/dist/dropzone.d.ts +3 -2
  111. package/dist/dropzone.js +13 -12
  112. package/dist/form.d.ts +5 -4
  113. package/dist/form.js +60 -44
  114. package/dist/header-navigation.d.ts +5 -1
  115. package/dist/header-navigation.js +21 -19
  116. package/dist/helper.d.ts +36 -0
  117. package/dist/helper.js +3 -0
  118. package/dist/index.d.ts +13 -11
  119. package/dist/index.js +81 -76
  120. package/dist/indicator.js +4 -4
  121. package/dist/input.d.ts +4 -0
  122. package/dist/input.js +9 -8
  123. package/dist/kanban-board.d.ts +21 -81
  124. package/dist/kanban-board.js +14 -12
  125. package/dist/labels-DPrh0se9.d.ts +627 -0
  126. package/dist/line-chart.d.ts +3 -2
  127. package/dist/line-chart.js +6 -5
  128. package/dist/{nav-DcCyt00p.d.ts → nav-CKKqjBs6.d.ts} +10 -0
  129. package/dist/number-input.d.ts +4 -0
  130. package/dist/number-input.js +9 -8
  131. package/dist/pagination.d.ts +7 -1
  132. package/dist/pagination.js +11 -10
  133. package/dist/payment-input.d.ts +3 -2
  134. package/dist/payment-input.js +9 -8
  135. package/dist/pie-chart.d.ts +7 -3
  136. package/dist/pie-chart.js +6 -5
  137. package/dist/popover.js +9 -7
  138. package/dist/progress-steps.js +2 -2
  139. package/dist/progress.d.ts +21 -1
  140. package/dist/progress.js +3 -2
  141. package/dist/provider.d.ts +212 -0
  142. package/dist/provider.js +7 -0
  143. package/dist/radar-chart.d.ts +7 -3
  144. package/dist/radar-chart.js +6 -5
  145. package/dist/radial-chart.d.ts +7 -3
  146. package/dist/radial-chart.js +6 -5
  147. package/dist/radio.js +8 -7
  148. package/dist/select.d.ts +2 -1
  149. package/dist/select.js +14 -13
  150. package/dist/shared-CxAedkiy.d.ts +68 -0
  151. package/dist/sidebar-navigation.d.ts +28 -7
  152. package/dist/sidebar-navigation.js +15 -13
  153. package/dist/skeleton.js +2 -2
  154. package/dist/styles.css +1 -1
  155. package/dist/switch.js +4 -4
  156. package/dist/table.d.ts +56 -6
  157. package/dist/table.js +36 -34
  158. package/dist/tabs.d.ts +22 -0
  159. package/dist/tabs.js +3 -3
  160. package/dist/tag-input.d.ts +3 -2
  161. package/dist/tag-input.js +12 -11
  162. package/dist/tag.d.ts +4 -0
  163. package/dist/tag.js +3 -2
  164. package/dist/textarea.js +6 -5
  165. package/dist/theme.css +69 -6
  166. package/dist/theme.js +10 -9
  167. package/dist/toast.d.ts +11 -2
  168. package/dist/toast.js +11 -9
  169. package/dist/{tooltip-surface-Dmvb8v5K.d.ts → tooltip-surface-C2I9o2QM.d.ts} +1 -1
  170. package/dist/tooltip.d.ts +2 -2
  171. package/dist/tooltip.js +3 -3
  172. package/dist/tree.d.ts +5 -0
  173. package/dist/tree.js +5 -4
  174. package/dist/{types-6kvYwtRH.d.ts → types-DR9rAEy1.d.ts} +45 -13
  175. package/dist/{use-uploads-ButS4dGe.d.ts → use-uploads-KaPqDklo.d.ts} +9 -0
  176. package/dist/verification-code-input.js +8 -7
  177. package/package.json +12 -1
  178. package/dist/chunk-MFJP5FA7.js +0 -20
  179. package/dist/shared-BNXAdgh2.d.ts +0 -9
  180. package/dist/surface-DFyDnrTJ.d.ts +0 -34
@@ -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-DJYWPJZ3.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-JUWDRRD6.js';
4
- import { useFieldValidity, FieldFrame } from './chunk-QKDEQFOQ.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 = {
@@ -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-NMERLWT7.js.map
297
- //# sourceMappingURL=chunk-NMERLWT7.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 { Tag } from './chunk-EDT5J5WK.js';
3
- import { NO_RETURN_FOCUS } from './chunk-S7NNXWIN.js';
4
2
  import { PopupScrollViewport } from './chunk-PO2TYK3C.js';
5
- import { ListboxFooter, MultiValueCount } from './chunk-ILICYNK7.js';
6
- import { useTagRow } from './chunk-6HJA7NPL.js';
3
+ import { Tag } from './chunk-LYXPJERB.js';
4
+ import { NO_RETURN_FOCUS } from './chunk-S7NNXWIN.js';
5
+ import { ListboxFooter, MultiValueCount } from './chunk-4RBIWI2Q.js';
6
+ import { useTagRow } from './chunk-6H4LNWQ7.js';
7
7
  import { buildOptionMap, mapOptions } from './chunk-7JBNLEJ7.js';
8
- import { FieldShell } from './chunk-JUWDRRD6.js';
9
- import { warnSeamlessFieldChrome, useSeamlessSlot, SEAMLESS_CONTROL } from './chunk-TBN644IN.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-QKDEQFOQ.js';
12
12
  import { POPUP_MOTION } from './chunk-O4GRKO3I.js';
13
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-GAFGIT4Q.js.map
435
- //# sourceMappingURL=chunk-GAFGIT4Q.js.map
454
+ //# sourceMappingURL=chunk-FFMTYQXE.js.map
455
+ //# sourceMappingURL=chunk-FFMTYQXE.js.map
@@ -1,14 +1,16 @@
1
- import { Card } from './chunk-BNIWT6CW.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';
2
3
  import { useAutoScroll, useDrag, snapToStep } from './chunk-P6CON2R2.js';
3
- import { DEFAULT_WEEK_START, resolveTimeZone, useControllable, startOfDayIn, dayKey, formatIn, displayYear, monthOf, differenceInDaysIn, startOfMonthIn, startOfLastDayOfMonthIn, toWireDate, toWireInstant, addDaysIn, startOfWeekIn, addMonthsIn, minutesFromMidnight, earlierOf, laterOf } from './chunk-MD4AR43X.js';
4
- import { Popover } from './chunk-3Z3SDKIA.js';
5
- import { ACCENT, SUBTLE } from './chunk-6IUTVDNI.js';
4
+ import { Popover } from './chunk-YQYVGWIC.js';
6
5
  import { ScrollView } from './chunk-FKVPAEJ6.js';
7
- import { Slot } from './chunk-52IFGFTL.js';
6
+ import { useLocaleConfig } from './chunk-YIHKQ63K.js';
7
+ import { ACCENT, SUBTLE } from './chunk-MCQG4H6T.js';
8
8
  import { useIsomorphicLayoutEffect } from './chunk-EDSK6FEH.js';
9
+ import { Slot } from './chunk-52IFGFTL.js';
9
10
  import { ChevronLeftIcon, ChevronRightIcon } from './chunk-BLIZ3CL3.js';
10
- import { devWarn, warnStickyNoScrollport } from './chunk-QDYE5LVT.js';
11
11
  import { cn } from './chunk-ZSNJ6UA3.js';
12
+ import { useLabels, usePublishedLabels, LabelsContext } from './chunk-RJTVCA62.js';
13
+ import { devWarn, warnStickyNoScrollport } from './chunk-QDYE5LVT.js';
12
14
  import { enUS } from 'date-fns/locale';
13
15
  import * as React from 'react';
14
16
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
@@ -176,6 +178,26 @@ function dayDelta(from, to, cfg) {
176
178
  return differenceInDaysIn(to, from, cfg.timeZone);
177
179
  }
178
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
+
179
201
  // src/components/calendar/layout.ts
180
202
  function byStartThenEndThenId(a, b) {
181
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);
@@ -304,9 +326,9 @@ function useCalendar(options) {
304
326
  defaultFocusedDate,
305
327
  onFocusedDateChange,
306
328
  timeZone: timeZoneProp,
307
- locale = enUS,
308
- weekStartsOn = DEFAULT_WEEK_START,
309
- era = "ce",
329
+ locale: localeProp,
330
+ weekStartsOn: weekStartsOnProp,
331
+ era: eraProp,
310
332
  now: nowProp,
311
333
  hours = [0, 24],
312
334
  slotDuration = 30,
@@ -323,7 +345,12 @@ function useCalendar(options) {
323
345
  return () => clearInterval(id);
324
346
  }, [pinned]);
325
347
  const now = nowProp ?? autoNow;
326
- 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);
327
354
  const bothView = viewProp !== void 0 && options.defaultView !== void 0;
328
355
  const bothFocused = focusedProp !== void 0 && defaultFocusedDate !== void 0;
329
356
  const warnedBoth = React.useRef(false);
@@ -385,7 +412,7 @@ function useCalendar(options) {
385
412
  const periodLabel = React.useMemo(() => buildPeriodLabel(view, focusedDate, config), [view, focusedKey, config]);
386
413
  const rangeLabel = React.useMemo(() => buildRangeLabel(view, focusedDate, config), [view, focusedKey, config]);
387
414
  const monthLabel = React.useMemo(() => buildMonthLabel(focusedDate, config), [focusedKey, config]);
388
- const weekLabel = React.useMemo(() => buildWeekLabel(focusedDate, config), [focusedKey, config]);
415
+ const weekLabel = React.useMemo(() => buildWeekLabel(focusedDate, config, labels), [focusedKey, config, labels]);
389
416
  const todayLabel = React.useMemo(() => buildTodayLabel(config), [config]);
390
417
  const [draft, setDraft] = React.useState(null);
391
418
  const [grabbed, setGrabbed] = React.useState(null);
@@ -442,9 +469,9 @@ function buildPeriodLabel(view, focused, cfg) {
442
469
  function buildMonthLabel(focused, cfg) {
443
470
  return `${formatIn(focused, cfg.timeZone, "LLLL", cfg.locale)} ${displayYear(focused, cfg.timeZone, cfg.era)}`;
444
471
  }
445
- function buildWeekLabel(focused, cfg) {
472
+ function buildWeekLabel(focused, cfg, t) {
446
473
  const offset = differenceInDaysIn(focused, startOfMonthIn(focused, cfg.timeZone), cfg.timeZone);
447
- return `Week ${Math.floor(offset / 7) + 1}`;
474
+ return t.weekNumber({ week: Math.floor(offset / 7) + 1 });
448
475
  }
449
476
  function buildTodayLabel(cfg) {
450
477
  return {
@@ -636,9 +663,10 @@ EventChip.displayName = "EventChip";
636
663
  function AgendaView({ instance, size, focusRef }) {
637
664
  const { config, layout, onEventClick } = instance;
638
665
  const { groups } = layout;
666
+ const t = useLabels("calendar", CALENDAR_LABELS, void 0);
639
667
  const total = groups.reduce((sum, g) => sum + g.events.length, 0);
640
668
  if (total === 0) {
641
- 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 }) }) });
642
670
  }
643
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: [
644
672
  /* @__PURE__ */ jsxs("dt", { className: "flex shrink-0 items-baseline gap-2 sm:w-32 sm:flex-col sm:gap-0.5", children: [
@@ -849,17 +877,18 @@ TimeGhost.displayName = "TimeGhost";
849
877
  LaneGhost.displayName = "LaneGhost";
850
878
  var ANNOUNCE_MS = 300;
851
879
  var ARROWS = /* @__PURE__ */ new Set(["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"]);
852
- function describe(event, range, kind, instance) {
880
+ function describe(event, range, kind, instance, t) {
853
881
  const { timeZone: tz, locale } = instance.config;
854
882
  if (kind === "resize") {
855
- 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) });
856
884
  }
857
885
  const when = formatIn(range.start, tz, event.allDay === true ? "EEEE d MMMM" : "EEEE HH:mm", locale);
858
- return `${event.title} moved to ${when}`;
886
+ return t.movedTo({ title: event.title, when });
859
887
  }
860
888
  function useGrabMode(instance) {
861
889
  const { config, canPlace, setDraft, commit, grabbed, setGrabbed } = instance;
862
890
  const [announcement, setAnnouncement] = React.useState("");
891
+ const t = useLabels("calendar", CALENDAR_LABELS, void 0);
863
892
  const range = React.useRef(null);
864
893
  const timer = React.useRef(null);
865
894
  const latest = React.useRef({ config, canPlace, setDraft, commit, grabbed, setGrabbed, instance });
@@ -892,7 +921,7 @@ function useGrabMode(instance) {
892
921
  range.current = { start: event.start, end: event.end };
893
922
  latest.current.setGrabbed(event);
894
923
  latest.current.setDraft({ kind: "move", event, start: event.start, end: event.end, allDay: event.allDay === true, valid: true });
895
- setAnnouncement(`Grabbed ${event.title}. Use arrow keys to move, Enter to confirm, Escape to cancel.`);
924
+ setAnnouncement(t.grabbed({ title: event.title }));
896
925
  return;
897
926
  }
898
927
  if (e.key === "Escape") {
@@ -938,7 +967,7 @@ function useGrabMode(instance) {
938
967
  if (!latest.current.canPlace({ event, start: next.start, end: next.end, allDay })) return;
939
968
  range.current = next;
940
969
  latest.current.setDraft({ kind, event, start: next.start, end: next.end, allDay, valid: true });
941
- announce(describe(event, next, kind, latest.current.instance));
970
+ announce(describe(event, next, kind, latest.current.instance, t));
942
971
  },
943
972
  [announce, release]
944
973
  );
@@ -953,6 +982,7 @@ function useGrabMode(instance) {
953
982
  }
954
983
  var MONTH_CELL_BUDGET = 4;
955
984
  function MonthView({ instance, size, focusRef }) {
985
+ const t = useLabels("calendar", CALENDAR_LABELS, void 0);
956
986
  const { config, layout, visibleEvents, onEventClick, onSlotClick, canPlace, draft } = instance;
957
987
  const { monthRows, lanes } = layout;
958
988
  const gridRef = React.useRef(null);
@@ -988,7 +1018,7 @@ function MonthView({ instance, size, focusRef }) {
988
1018
  "button",
989
1019
  {
990
1020
  type: "button",
991
- "aria-label": placeable ? dayName : `${dayName} (unavailable)`,
1021
+ "aria-label": placeable ? dayName : t.unavailable({ name: dayName }),
992
1022
  disabled: !placeable,
993
1023
  onClick: placeable ? () => onSlotClick(wholeDay) : void 0,
994
1024
  ...placeable ? drag.createHandlers(day2, null) : {},
@@ -1082,6 +1112,7 @@ function MonthView({ instance, size, focusRef }) {
1082
1112
  }
1083
1113
  MonthView.displayName = "MonthView";
1084
1114
  function TimeGridView({ instance, size, showNowLine, focusRef }) {
1115
+ const t = useLabels("calendar", CALENDAR_LABELS, void 0);
1085
1116
  const { config, layout, onEventClick, onSlotClick, canPlace } = instance;
1086
1117
  const { days, timed, lanes } = layout;
1087
1118
  const slotHeight = SLOT_PX[size];
@@ -1167,7 +1198,7 @@ function TimeGridView({ instance, size, showNowLine, focusRef }) {
1167
1198
  className: cn("grid", ALL_DAY_ROW, "grid-cols-[var(--cal-gutter)_1fr]"),
1168
1199
  style: { "--cal-gutter": gutterWidth(size) },
1169
1200
  children: [
1170
- /* @__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 }),
1171
1202
  /* @__PURE__ */ jsxs("div", { className: cn("relative grid px-1 py-1", columnsClass), style: { minHeight: laneRows * (barHeight + BAR_GAP_PX) }, children: [
1172
1203
  lanes.segments.map((segment) => /* @__PURE__ */ jsx(
1173
1204
  "div",
@@ -1228,7 +1259,7 @@ function TimeGridView({ instance, size, showNowLine, focusRef }) {
1228
1259
  disabled: !placeable,
1229
1260
  onClick: placeable ? () => onSlotClick({ start, end, allDay: false }) : void 0,
1230
1261
  ...placeable ? drag.createHandlers(day2, i * config.slotDuration) : {},
1231
- "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 }),
1232
1263
  className: cn(
1233
1264
  "absolute inset-x-0 border-b",
1234
1265
  // TWO weights, not one. The hour keeps the full rule; the half hour gets a
@@ -1293,7 +1324,9 @@ function gutterWidth(size) {
1293
1324
  }
1294
1325
  TimeGridView.displayName = "TimeGridView";
1295
1326
  function Calendar(props) {
1296
- 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);
1297
1330
  const ariaLabel = props["aria-label"];
1298
1331
  const rootRef = React.useRef(null);
1299
1332
  const view = instance.view;
@@ -1301,17 +1334,17 @@ function Calendar(props) {
1301
1334
  // Week and day are ONE implementation — day is a `dayCount` of 1, not a second grid.
1302
1335
  /* @__PURE__ */ jsx(TimeGridView, { instance, size, showNowLine, focusRef: rootRef })
1303
1336
  );
1304
- 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(
1305
1338
  "section",
1306
1339
  {
1307
- "aria-label": ariaLabel ?? `Calendar, ${instance.periodLabel}`,
1340
+ "aria-label": ariaLabel ?? t.nav({ period: instance.periodLabel }),
1308
1341
  className: cn(ROOT, "h-full"),
1309
1342
  children: body
1310
1343
  }
1311
- ) });
1344
+ ) }) });
1312
1345
  }
1313
1346
  Calendar.displayName = "Calendar";
1314
1347
 
1315
1348
  export { Calendar, isWireDate, parseEvent, serializeEvent, useCalendar };
1316
- //# sourceMappingURL=chunk-L53Y7KUV.js.map
1317
- //# sourceMappingURL=chunk-L53Y7KUV.js.map
1349
+ //# sourceMappingURL=chunk-FH7Z7SGQ.js.map
1350
+ //# sourceMappingURL=chunk-FH7Z7SGQ.js.map
@@ -1,4 +1,4 @@
1
- import { Button } from './chunk-A5WQLN4B.js';
1
+ import { Button } from './chunk-OACWA4TC.js';
2
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';
@@ -132,5 +132,5 @@ function ThemeToggle({ size = "sm", className }) {
132
132
  }
133
133
 
134
134
  export { ThemeProvider, ThemeScript, ThemeToggle, buildThemeScript, useTheme };
135
- //# sourceMappingURL=chunk-5JRM3OES.js.map
136
- //# sourceMappingURL=chunk-5JRM3OES.js.map
135
+ //# sourceMappingURL=chunk-FNQJJO63.js.map
136
+ //# sourceMappingURL=chunk-FNQJJO63.js.map
@@ -1,4 +1,4 @@
1
- import { BE_OFFSET } from './chunk-DJYWPJZ3.js';
1
+ import { BE_OFFSET } from './chunk-3QXLIZIX.js';
2
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';
@@ -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-MD4AR43X.js.map
106
- //# sourceMappingURL=chunk-MD4AR43X.js.map
105
+ //# sourceMappingURL=chunk-FWRHBMWT.js.map
106
+ //# sourceMappingURL=chunk-FWRHBMWT.js.map
@@ -1,5 +1,5 @@
1
- import { resolveMax } from './chunk-LBYCCLVI.js';
2
- import { useCartesianColors, POLAR_RADIUS_RINGS_DEFAULT, ChartDataTable, formatNumber, ChartFrame, RadarChart, POLAR_ROOT, MARGIN, PolarGrid, GRID, PolarAngleAxis, PolarRadiusAxis, Tooltip, TOOLTIP_CURSOR, NO_ANIMATION, ChartTooltipContent, Radar, ACTIVE_DOT, ChartLegendContent, POLAR_ANGLE_TICK_LIFT, Text, POLAR_ANGLE_TICK, POLAR_RADIUS_PILL_HEIGHT, POLAR_RADIUS_PILL_PAD_X, POLAR_RADIUS_PILL, POLAR_RADIUS_PILL_BASELINE } from './chunk-75M43ELV.js';
1
+ import { resolveMax } from './chunk-OLLD2BZN.js';
2
+ import { useCartesianColors, DEFAULT_PALETTE, POLAR_RADIUS_RINGS_DEFAULT, ChartDataTable, formatNumber, ChartFrame, RadarChart, POLAR_ROOT, MARGIN, PolarGrid, GRID, PolarAngleAxis, PolarRadiusAxis, Tooltip, TOOLTIP_CURSOR, NO_ANIMATION, ChartTooltipContent, Radar, ACTIVE_DOT, ChartLegendContent, POLAR_ANGLE_TICK_LIFT, Text, POLAR_ANGLE_TICK, POLAR_RADIUS_PILL_HEIGHT, POLAR_RADIUS_PILL_PAD_X, POLAR_RADIUS_PILL, POLAR_RADIUS_PILL_BASELINE } from './chunk-22M75A3N.js';
3
3
  import { devWarn } from './chunk-QDYE5LVT.js';
4
4
  import * as React from 'react';
5
5
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
@@ -42,7 +42,7 @@ function RadarChart2({
42
42
  data,
43
43
  angle,
44
44
  series,
45
- palette = "brand",
45
+ palette = DEFAULT_PALETTE,
46
46
  max = "auto",
47
47
  gridRings = POLAR_RADIUS_RINGS_DEFAULT,
48
48
  height = 320,
@@ -50,7 +50,8 @@ function RadarChart2({
50
50
  formatValue = formatNumber,
51
51
  tooltip = true,
52
52
  tooltipTone = "surface",
53
- emptyMessage = "No data to display",
53
+ emptyMessage,
54
+ labels,
54
55
  className,
55
56
  "aria-label": ariaLabel
56
57
  }) {
@@ -67,7 +68,7 @@ function RadarChart2({
67
68
  }
68
69
  return { colorMap: colorMap2, labelMap: labelMap2 };
69
70
  }, [series, colors]);
70
- const legendItems = React.useMemo(() => series.map((s, i) => ({ label: s.label, colorClass: colors[i] ?? "" })), [series, colors]);
71
+ const legendItems = React.useMemo(() => series.map((s, i) => ({ label: s.label, color: colors[i] ?? "" })), [series, colors]);
71
72
  const domainMax = React.useMemo(() => {
72
73
  const values = [];
73
74
  for (const row of data) {
@@ -102,6 +103,7 @@ function RadarChart2({
102
103
  height,
103
104
  isEmpty: data.length === 0,
104
105
  emptyMessage,
106
+ labels,
105
107
  className,
106
108
  table,
107
109
  legendPlacement: legend === "none" ? void 0 : legend,
@@ -144,7 +146,7 @@ function RadarChart2({
144
146
  Radar,
145
147
  {
146
148
  ...NO_ANIMATION,
147
- className: color,
149
+ style: { color },
148
150
  dataKey: key,
149
151
  name: s.label,
150
152
  stroke: "currentColor",
@@ -165,5 +167,5 @@ function RadarChart2({
165
167
  }
166
168
 
167
169
  export { RadarChart2 as RadarChart };
168
- //# sourceMappingURL=chunk-4K6V6NNK.js.map
169
- //# sourceMappingURL=chunk-4K6V6NNK.js.map
170
+ //# sourceMappingURL=chunk-GLKFFA7N.js.map
171
+ //# sourceMappingURL=chunk-GLKFFA7N.js.map
@@ -1,8 +1,8 @@
1
1
  import { useControlScrollFade } from './chunk-7EUAMHMU.js';
2
2
  import { useIsomorphicLayoutEffect } from './chunk-EDSK6FEH.js';
3
- import { CONTROL_TEXT, CONTROL_RADIUS, useFieldValidity, FieldFrame } from './chunk-QKDEQFOQ.js';
4
- import { warnNeedsName, warnPositiveInt, devWarn } from './chunk-QDYE5LVT.js';
3
+ import { CONTROL_TEXT, CONTROL_RADIUS, useFieldValidity, FieldFrame } from './chunk-5KSD4WKN.js';
5
4
  import { cn } from './chunk-ZSNJ6UA3.js';
5
+ import { warnNeedsName, warnPositiveInt, devWarn } from './chunk-QDYE5LVT.js';
6
6
  import { Field } from '@base-ui/react/field';
7
7
  import * as React from 'react';
8
8
  import { jsx } from 'react/jsx-runtime';
@@ -169,5 +169,5 @@ function Textarea(props) {
169
169
  }
170
170
 
171
171
  export { Textarea };
172
- //# sourceMappingURL=chunk-EDOUI2BG.js.map
173
- //# sourceMappingURL=chunk-EDOUI2BG.js.map
172
+ //# sourceMappingURL=chunk-GQRSABRN.js.map
173
+ //# sourceMappingURL=chunk-GQRSABRN.js.map
@@ -1,11 +1,12 @@
1
- import { PanelChrome } from './chunk-FZBZGA3P.js';
2
- import { SURFACE_BASE, SURFACE_VARIANT, SURFACE_EDGE_OVERLAY, SURFACE_PADDING } from './chunk-MFJP5FA7.js';
1
+ import { PanelChrome } from './chunk-LO22VQL5.js';
2
+ import { SURFACE_BASE, surfaceBox, SURFACE_EDGE_OVERLAY, SURFACE_PADDING } from './chunk-45Y2ZGNK.js';
3
3
  import { cn } from './chunk-ZSNJ6UA3.js';
4
4
  import 'react';
5
5
  import { jsx } from 'react/jsx-runtime';
6
6
 
7
7
  function Card({
8
- variant = "elevated",
8
+ variant = "outlined",
9
+ shadow = "none",
9
10
  padding = "md",
10
11
  dividers = "none",
11
12
  title,
@@ -19,7 +20,7 @@ function Card({
19
20
  }) {
20
21
  const hasHeader = title != null || description != null || leading != null || trailing != null;
21
22
  const hasChrome = hasHeader || footer != null;
22
- const surface = cn(SURFACE_BASE, SURFACE_VARIANT[variant], padding === "none" && SURFACE_EDGE_OVERLAY, className);
23
+ const surface = cn(SURFACE_BASE, surfaceBox(variant, shadow), padding === "none" && SURFACE_EDGE_OVERLAY, className);
23
24
  if (!hasChrome) {
24
25
  return /* @__PURE__ */ jsx("div", { ...rest, className: cn(surface, SURFACE_PADDING[padding]), children });
25
26
  }
@@ -42,5 +43,5 @@ function Card({
42
43
  Card.displayName = "Card";
43
44
 
44
45
  export { Card };
45
- //# sourceMappingURL=chunk-BNIWT6CW.js.map
46
- //# sourceMappingURL=chunk-BNIWT6CW.js.map
46
+ //# sourceMappingURL=chunk-GZMDZF2V.js.map
47
+ //# sourceMappingURL=chunk-GZMDZF2V.js.map