jenosize-ui 0.2.0 → 0.2.2

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 (184) 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 +10 -9
  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 +16 -14
  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-X2X7Q7NW.js → chunk-2R3QWWOT.js} +3 -3
  27. package/dist/{chunk-A46ED5JQ.js → chunk-33TOK7ES.js} +7 -5
  28. package/dist/{chunk-BNIWT6CW.js → chunk-3HOHLQVP.js} +7 -6
  29. package/dist/{chunk-DJYWPJZ3.js → chunk-3QXLIZIX.js} +3 -12
  30. package/dist/chunk-3ZEEGXYF.js +8 -0
  31. package/dist/chunk-45Y2ZGNK.js +34 -0
  32. package/dist/{chunk-ILICYNK7.js → chunk-4RBIWI2Q.js} +3 -3
  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-L53Y7KUV.js → chunk-5YWH2ANQ.js} +62 -29
  39. package/dist/{chunk-6UBYHSBX.js → chunk-5ZEUTSCV.js} +5 -5
  40. package/dist/{chunk-JAVNGTOE.js → chunk-6MMBQVRO.js} +58 -43
  41. package/dist/{chunk-RNXRZGXN.js → chunk-74AIU53R.js} +5 -3
  42. package/dist/{chunk-JMWYCT63.js → chunk-7GUPNTAH.js} +14 -6
  43. package/dist/{chunk-DCGTB7P7.js → chunk-7QXOGAN6.js} +111 -39
  44. package/dist/{chunk-TBN644IN.js → chunk-7ZM7SNCZ.js} +3 -3
  45. package/dist/{chunk-AC6ZWKRN.js → chunk-AFYXSZGW.js} +2 -2
  46. package/dist/chunk-AIARANKE.js +33 -0
  47. package/dist/{chunk-54S5CUY6.js → chunk-AIGYMTCU.js} +5 -4
  48. package/dist/{chunk-C6OTOTKI.js → chunk-AZ7DKRBY.js} +5 -5
  49. package/dist/{chunk-QBHQOX23.js → chunk-BBKE4W3B.js} +18 -10
  50. package/dist/{chunk-FFTRB2UU.js → chunk-CFFWYXDW.js} +18 -6
  51. package/dist/{chunk-42FCPC77.js → chunk-CGHYXWTT.js} +10 -4
  52. package/dist/{chunk-FZBZGA3P.js → chunk-CGZXQ7PA.js} +4 -4
  53. package/dist/{chunk-GAFGIT4Q.js → chunk-D6XO4JVM.js} +30 -10
  54. package/dist/{chunk-GTHJWR3Q.js → chunk-D7EE5GWU.js} +21 -22
  55. package/dist/{chunk-USL3TDZM.js → chunk-DD5KJVFV.js} +321 -105
  56. package/dist/{chunk-NMERLWT7.js → chunk-E2YZ7IMT.js} +23 -7
  57. package/dist/{chunk-5JRM3OES.js → chunk-FNQJJO63.js} +3 -3
  58. package/dist/{chunk-MD4AR43X.js → chunk-FWRHBMWT.js} +3 -3
  59. package/dist/{chunk-4K6V6NNK.js → chunk-GLKFFA7N.js} +10 -8
  60. package/dist/{chunk-EDOUI2BG.js → chunk-GQRSABRN.js} +4 -4
  61. package/dist/{chunk-PO2TYK3C.js → chunk-GWYDOZGQ.js} +3 -3
  62. package/dist/{chunk-HSVBTIP2.js → chunk-HHYEAFCL.js} +70 -27
  63. package/dist/{chunk-DTMYD63D.js → chunk-HV2W6HUR.js} +47 -27
  64. package/dist/{chunk-P7DH62UY.js → chunk-I6WMNXC7.js} +5 -5
  65. package/dist/{chunk-6HJA7NPL.js → chunk-IEAWNA3V.js} +9 -4
  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-FIGBJGH2.js → chunk-KJ5JUS53.js} +115 -79
  69. package/dist/{chunk-4R7WDDCW.js → chunk-KZP6B6B3.js} +4 -4
  70. package/dist/{chunk-4W6AYGLR.js → chunk-LE44X5GS.js} +55 -39
  71. package/dist/{chunk-7HV6EIGZ.js → chunk-LLPWQDF7.js} +3 -3
  72. package/dist/{chunk-JXHZHUB3.js → chunk-LQURV7HQ.js} +9 -7
  73. package/dist/{chunk-EDT5J5WK.js → chunk-LYXPJERB.js} +14 -4
  74. package/dist/{chunk-6IUTVDNI.js → chunk-MCQG4H6T.js} +35 -3
  75. package/dist/{chunk-4BRMM3I5.js → chunk-MFFA5MXY.js} +7 -6
  76. package/dist/{chunk-PXEJ5RKO.js → chunk-N3RVMBPX.js} +6 -9
  77. package/dist/{chunk-VH35QHD4.js → chunk-NC63TYNW.js} +16 -8
  78. package/dist/{chunk-VWGAMOSE.js → chunk-NKG4N6HA.js} +3 -3
  79. package/dist/{chunk-A5WQLN4B.js → chunk-OACWA4TC.js} +14 -52
  80. package/dist/{chunk-LBYCCLVI.js → chunk-OLLD2BZN.js} +9 -9
  81. package/dist/{chunk-T2WAD4QP.js → chunk-POQTE7JI.js} +55 -16
  82. package/dist/{chunk-74HPBSVY.js → chunk-QDKETK7D.js} +4 -4
  83. package/dist/{chunk-VEOYCAJP.js → chunk-QNIKRB62.js} +27 -7
  84. package/dist/{chunk-JYBGO6GY.js → chunk-R4Z7BINC.js} +11 -8
  85. package/dist/chunk-RJTVCA62.js +42 -0
  86. package/dist/{chunk-3GT43XPK.js → chunk-SB3DG572.js} +15 -8
  87. package/dist/{chunk-FKVPAEJ6.js → chunk-SKJC2KYD.js} +4 -3
  88. package/dist/{chunk-NKDW6C7K.js → chunk-SKRR3ZMP.js} +3 -3
  89. package/dist/{chunk-CTENRS34.js → chunk-T4ZFZTY6.js} +8 -6
  90. package/dist/{chunk-YLEHYDXC.js → chunk-T5574MXM.js} +33 -45
  91. package/dist/{chunk-4HKDD3PR.js → chunk-TX57TNJS.js} +92 -58
  92. package/dist/{chunk-CWMFEF6R.js → chunk-UGBNYSBN.js} +81 -29
  93. package/dist/{chunk-M5TVCASC.js → chunk-ULGCGKOE.js} +8 -6
  94. package/dist/{chunk-JUWDRRD6.js → chunk-X2VMIBK5.js} +4 -4
  95. package/dist/{chunk-763VS2FY.js → chunk-YHBI52P2.js} +3 -3
  96. package/dist/chunk-YIHKQ63K.js +13 -0
  97. package/dist/{chunk-3Z3SDKIA.js → chunk-YPNL2NBD.js} +5 -5
  98. package/dist/{chunk-MYQ3FD4Y.js → chunk-ZD3MOLIB.js} +8 -5
  99. package/dist/{chunk-BD5YKFRA.js → chunk-ZR6HNKSN.js} +5 -3
  100. package/dist/{chunk-WKWAUU64.js → chunk-ZZSNTCCL.js} +6 -5
  101. package/dist/combobox.d.ts +5 -0
  102. package/dist/combobox.js +13 -12
  103. package/dist/date-input.d.ts +4 -0
  104. package/dist/date-input.js +11 -9
  105. package/dist/date-picker.d.ts +6 -0
  106. package/dist/date-picker.js +24 -22
  107. package/dist/dialog.d.ts +21 -1
  108. package/dist/dialog.js +11 -9
  109. package/dist/drawer.d.ts +11 -1
  110. package/dist/drawer.js +10 -8
  111. package/dist/dropdown-menu.d.ts +12 -0
  112. package/dist/dropdown-menu.js +7 -6
  113. package/dist/dropzone.d.ts +3 -2
  114. package/dist/dropzone.js +13 -12
  115. package/dist/form.d.ts +5 -4
  116. package/dist/form.js +61 -45
  117. package/dist/header-navigation.d.ts +5 -1
  118. package/dist/header-navigation.js +21 -19
  119. package/dist/helper.d.ts +36 -0
  120. package/dist/helper.js +3 -0
  121. package/dist/index.d.ts +13 -11
  122. package/dist/index.js +83 -78
  123. package/dist/indicator.js +4 -4
  124. package/dist/input.d.ts +4 -0
  125. package/dist/input.js +9 -8
  126. package/dist/kanban-board.d.ts +21 -81
  127. package/dist/kanban-board.js +15 -13
  128. package/dist/labels-DPrh0se9.d.ts +627 -0
  129. package/dist/line-chart.d.ts +3 -2
  130. package/dist/line-chart.js +6 -5
  131. package/dist/{nav-DcCyt00p.d.ts → nav-CKKqjBs6.d.ts} +10 -0
  132. package/dist/number-input.d.ts +4 -0
  133. package/dist/number-input.js +9 -8
  134. package/dist/pagination.d.ts +7 -1
  135. package/dist/pagination.js +11 -10
  136. package/dist/payment-input.d.ts +3 -2
  137. package/dist/payment-input.js +9 -8
  138. package/dist/pie-chart.d.ts +7 -3
  139. package/dist/pie-chart.js +6 -5
  140. package/dist/popover.js +10 -8
  141. package/dist/progress-steps.js +2 -2
  142. package/dist/progress.d.ts +21 -1
  143. package/dist/progress.js +3 -2
  144. package/dist/provider.d.ts +212 -0
  145. package/dist/provider.js +7 -0
  146. package/dist/radar-chart.d.ts +7 -3
  147. package/dist/radar-chart.js +6 -5
  148. package/dist/radial-chart.d.ts +7 -3
  149. package/dist/radial-chart.js +6 -5
  150. package/dist/radio.js +8 -7
  151. package/dist/scroll-area.js +2 -2
  152. package/dist/select.d.ts +2 -1
  153. package/dist/select.js +15 -14
  154. package/dist/shared-CxAedkiy.d.ts +68 -0
  155. package/dist/sidebar-navigation.d.ts +36 -7
  156. package/dist/sidebar-navigation.js +15 -13
  157. package/dist/skeleton.js +2 -2
  158. package/dist/styles.css +1 -1
  159. package/dist/switch.js +4 -4
  160. package/dist/table.d.ts +56 -6
  161. package/dist/table.js +37 -35
  162. package/dist/tabs.d.ts +22 -0
  163. package/dist/tabs.js +3 -3
  164. package/dist/tag-input.d.ts +3 -2
  165. package/dist/tag-input.js +12 -11
  166. package/dist/tag.d.ts +4 -0
  167. package/dist/tag.js +3 -2
  168. package/dist/textarea.js +6 -5
  169. package/dist/theme.css +69 -6
  170. package/dist/theme.js +10 -9
  171. package/dist/toast.d.ts +11 -2
  172. package/dist/toast.js +11 -9
  173. package/dist/{tooltip-surface-Dmvb8v5K.d.ts → tooltip-surface-C2I9o2QM.d.ts} +1 -1
  174. package/dist/tooltip.d.ts +2 -2
  175. package/dist/tooltip.js +3 -3
  176. package/dist/tree.d.ts +5 -0
  177. package/dist/tree.js +5 -4
  178. package/dist/{types-6kvYwtRH.d.ts → types-DR9rAEy1.d.ts} +45 -13
  179. package/dist/{use-uploads-ButS4dGe.d.ts → use-uploads-KaPqDklo.d.ts} +9 -0
  180. package/dist/verification-code-input.js +8 -7
  181. package/package.json +12 -1
  182. package/dist/chunk-MFJP5FA7.js +0 -20
  183. package/dist/shared-BNXAdgh2.d.ts +0 -9
  184. package/dist/surface-DFyDnrTJ.d.ts +0 -34
@@ -1,6 +1,7 @@
1
- import { TOOLTIP_TONE, TOOLTIP_SWATCH } from './chunk-AC6ZWKRN.js';
2
- import { warnPositiveInt, devWarn } from './chunk-QDYE5LVT.js';
1
+ import { TOOLTIP_TONE, TOOLTIP_SWATCH } from './chunk-AFYXSZGW.js';
3
2
  import { cn } from './chunk-ZSNJ6UA3.js';
3
+ import { useLabels } from './chunk-RJTVCA62.js';
4
+ import { warnPositiveInt, devWarn } from './chunk-QDYE5LVT.js';
4
5
  import { ResponsiveContainer } from 'recharts';
5
6
  export { Area, AreaChart, Bar, BarChart, CartesianGrid, Label, Line, LineChart, Pie, PieChart, PolarAngleAxis, PolarGrid, PolarRadiusAxis, Radar, RadarChart, RadialBar, RadialBarChart, ReferenceLine, Text, Tooltip, XAxis, YAxis } from 'recharts';
6
7
  import * as React2 from 'react';
@@ -67,7 +68,8 @@ var AREA_GRADIENT_STOPS = { from: 0.7, to: 0, fromOffset: "5%", toOffset: "95%"
67
68
  var LINE_DASH = { strokeDasharray: "6 4", strokeLinecap: "butt" };
68
69
  var DOT_SIZE = { r: 3, activeR: 4, strokeWidth: 2 };
69
70
  var dot = (color, r) => ({
70
- className: cn("fill-bg-primary", color),
71
+ className: "fill-bg-primary",
72
+ style: { color },
71
73
  stroke: "currentColor",
72
74
  strokeDasharray: "none",
73
75
  strokeWidth: DOT_SIZE.strokeWidth,
@@ -159,11 +161,17 @@ var TOOLTIP = {
159
161
  };
160
162
  var EMPTY = "flex items-center justify-center text-sm text-tertiary";
161
163
  var formatNumber = (value) => value.toLocaleString();
164
+
165
+ // src/components/chart/labels.ts
166
+ var CHART_LABELS = {
167
+ empty: "No data to display"
168
+ };
162
169
  function ChartFrame({
163
170
  ariaLabel,
164
171
  height,
165
172
  isEmpty,
166
173
  emptyMessage,
174
+ labels,
167
175
  component,
168
176
  className,
169
177
  table,
@@ -173,11 +181,12 @@ function ChartFrame({
173
181
  children
174
182
  }) {
175
183
  warnPositiveInt(component, "height", height);
184
+ const t = useLabels("chart", CHART_LABELS, labels);
176
185
  const gradientId = `jz-chart-${React2.useId().replaceAll(/[^a-zA-Z0-9]/g, "")}`;
177
186
  const legendNode = !isEmpty && legend ? legend : null;
178
187
  const isBeside = legendPlacement === "left" || legendPlacement === "right";
179
188
  const isFirst = legendPlacement === "top" || legendPlacement === "left";
180
- const plot = isEmpty ? /* @__PURE__ */ jsx("div", { className: EMPTY, style: { height }, children: emptyMessage }) : (
189
+ const plot = isEmpty ? /* @__PURE__ */ jsx("div", { className: EMPTY, style: { height }, children: emptyMessage ?? t.empty }) : (
181
190
  /*
182
191
  * The plot is hidden from assistive tech, and the table below is the WHOLE accessible story.
183
192
  *
@@ -230,7 +239,7 @@ function ChartFrame({
230
239
  }
231
240
  function ChartLegendContent({ items, placement }) {
232
241
  const isVertical = placement === "left" || placement === "right";
233
- return /* @__PURE__ */ jsx("ul", { className: cn(LEGEND.list, isVertical ? LEGEND.vertical : LEGEND.horizontal), children: items.map((item, index) => /* @__PURE__ */ jsxs("li", { className: cn(LEGEND.item, item.colorClass), children: [
242
+ return /* @__PURE__ */ jsx("ul", { className: cn(LEGEND.list, isVertical ? LEGEND.vertical : LEGEND.horizontal), children: items.map((item, index) => /* @__PURE__ */ jsxs("li", { className: LEGEND.item, style: { color: item.color }, children: [
234
243
  /* @__PURE__ */ jsx("span", { className: LEGEND.swatch }),
235
244
  /* @__PURE__ */ jsx("span", { className: "text-tertiary", children: item.label })
236
245
  ] }, `${item.label}-${index}`)) });
@@ -288,10 +297,10 @@ function ChartTooltipContent({ colors, labels, formatValue, formatLabel, tone =
288
297
  payload.map((entry, index) => {
289
298
  const key = keyOf(entry, labels);
290
299
  return (
291
- /* `colors[key]` comes LAST so tailwind-merge lets the series colour beat the tone's text
292
- role: on this row the `text-*` is not type, it is what the `bg-current` swatch reads. The
293
- tone's own colour is re-applied to the inner span, which IS type. */
294
- /* @__PURE__ */ jsxs("p", { className: cn(TOOLTIP.row, t.supporting, colors[key]), children: [
300
+ /* The series colour rides as an inline `style` — on this row it is not type, it is what the
301
+ `bg-current` swatch reads, and a style always beats the tone's `text-*` class. The tone's
302
+ own colour is re-applied to the inner span, which IS type. */
303
+ /* @__PURE__ */ jsxs("p", { className: cn(TOOLTIP.row, t.supporting), style: { color: colors[key] }, children: [
295
304
  /* @__PURE__ */ jsx("span", { className: TOOLTIP_SWATCH }),
296
305
  /* @__PURE__ */ jsxs("span", { className: t.supporting, children: [
297
306
  labels[key] ?? key,
@@ -317,50 +326,71 @@ function ChartDataTable({ caption, rowHeader, columns, rows }) {
317
326
  ] }) });
318
327
  }
319
328
  var BRAND = [
320
- "text-utility-brand-700",
321
- "text-utility-brand-600",
322
- "text-utility-brand-500",
323
- "text-utility-brand-400",
324
- "text-utility-brand-300",
325
- "text-utility-brand-200"
329
+ "var(--color-utility-brand-700)",
330
+ "var(--color-utility-brand-600)",
331
+ "var(--color-utility-brand-500)",
332
+ "var(--color-utility-brand-400)",
333
+ "var(--color-utility-brand-300)",
334
+ "var(--color-utility-brand-200)"
326
335
  ];
327
- var CATEGORICAL = [
328
- "text-utility-brand-600",
329
- "text-utility-blue-600",
330
- "text-utility-green-600",
331
- "text-utility-amber-600",
332
- "text-utility-red-600",
333
- "text-utility-neutral-600"
334
- ];
335
- var EXPLICIT = {
336
- brand: "text-utility-brand-600",
337
- blue: "text-utility-blue-600",
338
- green: "text-utility-green-600",
339
- amber: "text-utility-amber-600",
340
- red: "text-utility-red-600",
341
- neutral: "text-utility-neutral-600"
342
- };
343
- var PALETTE_LENGTH = 6;
344
- function seriesColorClass(color, index, palette) {
345
- if (color) return EXPLICIT[color];
346
- const ramp = palette === "categorical" ? CATEGORICAL : BRAND;
336
+ BRAND.length;
337
+ var DEFAULT_PALETTE = [];
338
+ function paletteRamp(palette) {
339
+ return palette.length > 0 ? palette : BRAND;
340
+ }
341
+ function paletteLength(palette) {
342
+ return paletteRamp(palette).length;
343
+ }
344
+ function seriesColor(color, index, palette) {
345
+ if (color) return color;
346
+ const ramp = paletteRamp(palette);
347
347
  return ramp[index % ramp.length];
348
348
  }
349
- function useSeriesColors(component, total, resolve) {
349
+ var FORMER_HUES = {
350
+ brand: "utility-brand-600",
351
+ blue: "utility-blue-600",
352
+ green: "utility-green-600",
353
+ amber: "utility-amber-600",
354
+ red: "utility-red-600",
355
+ neutral: "utility-neutral-600"
356
+ };
357
+ function warnChartColor(component, where, value) {
358
+ const replacement = FORMER_HUES[value];
359
+ if (replacement) {
360
+ devWarn(
361
+ `<${component}> ${where} is "${value}", which is now the CSS colour of that name, not the house token it used to mean. Use token("${replacement}").`
362
+ );
363
+ return;
364
+ }
365
+ if (typeof CSS !== "undefined" && typeof CSS.supports === "function" && !CSS.supports("color", value)) {
366
+ devWarn(
367
+ `<${component}> ${where} is "${value}", which is not a CSS colour. Pass a colour VALUE ("#e11d48", "oklch(62% .21 25)") or token("utility-blue-600") \u2014 not a class name.`
368
+ );
369
+ }
370
+ }
371
+ function useSeriesColors(component, total, resolve, steps) {
372
+ const colors = React2.useMemo(() => Array.from({ length: total }, (_, i) => resolve(i)), [total, resolve]);
373
+ const joined = colors.join("|");
350
374
  React2.useEffect(() => {
351
- if (total > PALETTE_LENGTH) {
375
+ if (total > steps) {
352
376
  devWarn(
353
- `<${component}> has ${total} series but the palette has ${PALETTE_LENGTH} steps \u2014 colours repeat from series ${PALETTE_LENGTH + 1}. Give the extra series an explicit \`color\`, or plot fewer.`
377
+ `<${component}> has ${total} series but the palette has ${steps} steps \u2014 colours repeat from series ${steps + 1}. Give the extra series an explicit \`color\`, or pass a longer \`palette\`.`
354
378
  );
355
379
  }
356
- }, [component, total]);
357
- return React2.useMemo(() => Array.from({ length: total }, (_, i) => resolve(i)), [total, resolve]);
380
+ const seen = /* @__PURE__ */ new Set();
381
+ for (const [i, value] of joined.split("|").entries()) {
382
+ if (!value || seen.has(value)) continue;
383
+ seen.add(value);
384
+ warnChartColor(component, `series ${i + 1}'s colour`, value);
385
+ }
386
+ }, [component, total, steps, joined]);
387
+ return colors;
358
388
  }
359
389
  function useCartesianColors(component, series, palette) {
360
- const resolve = React2.useCallback((i) => seriesColorClass(series[i]?.color, i, palette), [series, palette]);
361
- return useSeriesColors(component, series.length, resolve);
390
+ const resolve = React2.useCallback((i) => seriesColor(series[i]?.color, i, palette), [series, palette]);
391
+ return useSeriesColors(component, series.length, resolve, paletteLength(palette));
362
392
  }
363
393
 
364
- export { ACTIVE_DOT, AREA_BAND, AREA_FILL_OPACITY, AREA_GRADIENT_STOPS, AREA_SOLID_OPACITY, AXIS, AXIS_LABEL, AXIS_TICK, BAND_SEPARATOR, BAR_LAYOUT, BAR_RADIUS, BAR_RADIUS_HORIZONTAL, CHART_ROOT, ChartDataTable, ChartFrame, ChartLegendContent, ChartTooltipContent, DOT, GRID, LINE_DASH, MARGIN, MAX_BAR_SIZE, NO_ANIMATION, PIE_DONUT, PIE_SIZE, POLAR_ANGLE_TICK, POLAR_ANGLE_TICK_LIFT, POLAR_HOVER, POLAR_RADIUS_PILL, POLAR_RADIUS_PILL_BASELINE, POLAR_RADIUS_PILL_HEIGHT, POLAR_RADIUS_PILL_PAD_X, POLAR_RADIUS_RINGS_DEFAULT, POLAR_ROOT, RADIAL_SIZE, RADIAL_TRACK, TOOLTIP_CURSOR, X_AXIS_PADDING, ZERO_LINE, formatNumber, seriesColorClass, useCartesianColors, useSeriesColors };
365
- //# sourceMappingURL=chunk-75M43ELV.js.map
366
- //# sourceMappingURL=chunk-75M43ELV.js.map
394
+ export { ACTIVE_DOT, AREA_BAND, AREA_FILL_OPACITY, AREA_GRADIENT_STOPS, AREA_SOLID_OPACITY, AXIS, AXIS_LABEL, AXIS_TICK, BAND_SEPARATOR, BAR_LAYOUT, BAR_RADIUS, BAR_RADIUS_HORIZONTAL, CHART_ROOT, ChartDataTable, ChartFrame, ChartLegendContent, ChartTooltipContent, DEFAULT_PALETTE, DOT, GRID, LINE_DASH, MARGIN, MAX_BAR_SIZE, NO_ANIMATION, PIE_DONUT, PIE_SIZE, POLAR_ANGLE_TICK, POLAR_ANGLE_TICK_LIFT, POLAR_HOVER, POLAR_RADIUS_PILL, POLAR_RADIUS_PILL_BASELINE, POLAR_RADIUS_PILL_HEIGHT, POLAR_RADIUS_PILL_PAD_X, POLAR_RADIUS_RINGS_DEFAULT, POLAR_ROOT, RADIAL_SIZE, RADIAL_TRACK, TOOLTIP_CURSOR, X_AXIS_PADDING, ZERO_LINE, formatNumber, paletteLength, seriesColor, useCartesianColors, useSeriesColors };
395
+ //# sourceMappingURL=chunk-22M75A3N.js.map
396
+ //# sourceMappingURL=chunk-22M75A3N.js.map
@@ -1,4 +1,4 @@
1
- import { ScrollView } from './chunk-FKVPAEJ6.js';
1
+ import { ScrollView } from './chunk-SKJC2KYD.js';
2
2
  import 'react';
3
3
  import { jsx } from 'react/jsx-runtime';
4
4
 
@@ -13,5 +13,5 @@ function ScrollArea({ axis = "vertical", fade, composite = false, className, sty
13
13
  }
14
14
 
15
15
  export { ScrollArea };
16
- //# sourceMappingURL=chunk-X2X7Q7NW.js.map
17
- //# sourceMappingURL=chunk-X2X7Q7NW.js.map
16
+ //# sourceMappingURL=chunk-2R3QWWOT.js.map
17
+ //# sourceMappingURL=chunk-2R3QWWOT.js.map
@@ -1,11 +1,12 @@
1
- import { warnNeedsName, warnRange, devWarn } from './chunk-QDYE5LVT.js';
1
+ import { FILL } from './chunk-MCQG4H6T.js';
2
2
  import { cn } from './chunk-ZSNJ6UA3.js';
3
+ import { warnNeedsName, warnRange, devWarn } from './chunk-QDYE5LVT.js';
3
4
  import 'react';
4
5
  import { jsxs, jsx } from 'react/jsx-runtime';
5
6
 
6
7
  var TRACK = "relative w-full overflow-hidden rounded-full bg-tertiary";
7
8
  var TRACK_SIZE = { sm: "h-1.5", md: "h-2" };
8
- var FILL = "size-full rounded-full bg-brand-solid transition-transform duration-75 ease-linear";
9
+ var FILL_BASE = "size-full rounded-full transition-transform duration-75 ease-linear";
9
10
  var NOTCH = "absolute inset-y-0 w-1 -translate-x-1/2 bg-primary transition-[left] duration-75 ease-linear";
10
11
  var VALUE_TEXT = "shrink-0 text-sm font-medium text-tertiary tabular-nums";
11
12
  var BUBBLE = "absolute rounded-[10px] bg-primary_alt px-3 py-2 shadow-lg ring-1 ring-secondary_alt ring-inset";
@@ -26,6 +27,7 @@ function Progress(props) {
26
27
  valuePosition = "none",
27
28
  formatValue,
28
29
  size = "md",
30
+ color = "brand",
29
31
  "aria-label": ariaLabel,
30
32
  "aria-labelledby": ariaLabelledBy,
31
33
  className
@@ -52,7 +54,7 @@ function Progress(props) {
52
54
  "aria-labelledby": ariaLabelledBy,
53
55
  className: cn(TRACK, TRACK_SIZE[size], valuePosition === "none" && className),
54
56
  children: [
55
- /* @__PURE__ */ jsx("div", { className: FILL, style: { transform: `translateX(-${100 - paintPercent}%)` } }),
57
+ /* @__PURE__ */ jsx("div", { className: cn(FILL_BASE, FILL[color]), style: { transform: `translateX(-${100 - paintPercent}%)` } }),
56
58
  notchPercent !== null && /* @__PURE__ */ jsx("div", { "aria-hidden": true, className: NOTCH, style: { left: `${notchPercent}%` } })
57
59
  ]
58
60
  }
@@ -67,5 +69,5 @@ function Progress(props) {
67
69
  }
68
70
 
69
71
  export { Progress };
70
- //# sourceMappingURL=chunk-A46ED5JQ.js.map
71
- //# sourceMappingURL=chunk-A46ED5JQ.js.map
72
+ //# sourceMappingURL=chunk-33TOK7ES.js.map
73
+ //# sourceMappingURL=chunk-33TOK7ES.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-CGZXQ7PA.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-3HOHLQVP.js.map
47
+ //# sourceMappingURL=chunk-3HOHLQVP.js.map
@@ -309,15 +309,6 @@ var SEG_PLACEHOLDER = {
309
309
  second: "--",
310
310
  dayPeriod: "AM"
311
311
  };
312
- var SEG_LABEL = {
313
- month: "Month",
314
- day: "Day",
315
- year: "Year",
316
- hour: "Hour",
317
- minute: "Minute",
318
- second: "Second",
319
- dayPeriod: "AM/PM"
320
- };
321
312
  function displaySeg(seg, p, cfg) {
322
313
  if (seg === "dayPeriod") {
323
314
  const v2 = getDisp("dayPeriod", p, cfg);
@@ -331,6 +322,6 @@ function segValueText(seg, p, cfg) {
331
322
  return displaySeg(seg, p, cfg);
332
323
  }
333
324
 
334
- export { BE_OFFSET, DEFAULT_FORMAT, SEG_LABEL, applyPastedDate, clamp, dispBounds, displaySeg, fromISO, getDisp, pad, parseFormat, parsePastedDate, segValueText, setDisp, toISO, wrap };
335
- //# sourceMappingURL=chunk-DJYWPJZ3.js.map
336
- //# sourceMappingURL=chunk-DJYWPJZ3.js.map
325
+ export { BE_OFFSET, DEFAULT_FORMAT, applyPastedDate, clamp, dispBounds, displaySeg, fromISO, getDisp, pad, parseFormat, parsePastedDate, segValueText, setDisp, toISO, wrap };
326
+ //# sourceMappingURL=chunk-3QXLIZIX.js.map
327
+ //# sourceMappingURL=chunk-3QXLIZIX.js.map
@@ -0,0 +1,8 @@
1
+ // src/lib/token.ts
2
+ function token(name) {
3
+ return `var(--color-${name})`;
4
+ }
5
+
6
+ export { token };
7
+ //# sourceMappingURL=chunk-3ZEEGXYF.js.map
8
+ //# sourceMappingURL=chunk-3ZEEGXYF.js.map
@@ -0,0 +1,34 @@
1
+ // src/lib/surface.ts
2
+ var SURFACE_PADDINGS = ["none", "sm", "md", "lg"];
3
+ var SURFACE_BASE = "rounded-xl";
4
+ var SURFACE_EDGE = "ring-1 ring-secondary ring-inset";
5
+ var CARD_SURFACE_VARIANTS = ["outlined", "subtle"];
6
+ var SURFACE_SHADOWS = ["none", "xs", "sm", "md", "lg", "xl", "2xl"];
7
+ var SURFACE_SHADOW = {
8
+ none: "",
9
+ xs: "shadow-xs",
10
+ sm: "shadow-sm",
11
+ md: "shadow-md",
12
+ lg: "shadow-lg",
13
+ xl: "shadow-xl",
14
+ "2xl": "shadow-2xl"
15
+ };
16
+ var SURFACE_FILL = {
17
+ outlined: { flat: "bg-primary", lifted: "bg-primary_alt" },
18
+ subtle: { flat: "bg-sunken", lifted: "bg-sunken" }
19
+ };
20
+ function surfaceBox(variant, shadow) {
21
+ const fill = SURFACE_FILL[variant][shadow === "none" ? "flat" : "lifted"];
22
+ return shadow === "none" ? `${fill} ${SURFACE_EDGE}` : `${fill} ${SURFACE_EDGE} ${SURFACE_SHADOW[shadow]}`;
23
+ }
24
+ var SURFACE_EDGE_OVERLAY = "relative isolate after:pointer-events-none after:absolute after:inset-0 after:z-4 after:rounded-[inherit] after:ring-1 after:ring-secondary after:ring-inset";
25
+ var SURFACE_PADDING = {
26
+ none: "",
27
+ sm: "p-3",
28
+ md: "p-4",
29
+ lg: "p-6"
30
+ };
31
+
32
+ export { CARD_SURFACE_VARIANTS, SURFACE_BASE, SURFACE_EDGE_OVERLAY, SURFACE_PADDING, SURFACE_PADDINGS, SURFACE_SHADOWS, surfaceBox };
33
+ //# sourceMappingURL=chunk-45Y2ZGNK.js.map
34
+ //# sourceMappingURL=chunk-45Y2ZGNK.js.map
@@ -1,5 +1,5 @@
1
+ import { CONTROL_ICON } from './chunk-5KSD4WKN.js';
1
2
  import { Slot } from './chunk-52IFGFTL.js';
2
- import { CONTROL_ICON } from './chunk-QKDEQFOQ.js';
3
3
  import { cn } from './chunk-ZSNJ6UA3.js';
4
4
  import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
5
5
  import 'react';
@@ -28,5 +28,5 @@ function MultiValueCount({ count, supportingText }) {
28
28
  }
29
29
 
30
30
  export { ListboxFooter, MultiValueCount };
31
- //# sourceMappingURL=chunk-ILICYNK7.js.map
32
- //# sourceMappingURL=chunk-ILICYNK7.js.map
31
+ //# sourceMappingURL=chunk-4RBIWI2Q.js.map
32
+ //# sourceMappingURL=chunk-4RBIWI2Q.js.map
@@ -1,10 +1,11 @@
1
- import { ACCENT, DISMISS, SOLID, OUTLINE, SUBTLE } from './chunk-6IUTVDNI.js';
1
+ import { ACCENT, DISMISS, SOLID, OUTLINE, SUBTLE } from './chunk-MCQG4H6T.js';
2
2
  import { overflowClasses, overflowBounded } from './chunk-DWKILXHE.js';
3
- import { SEAMLESS_COLOR, SEAMLESS_CHIP_PX, SEAMLESS_CHIP_NUM, SEAMLESS_CHIP } from './chunk-TBN644IN.js';
3
+ import { SEAMLESS_COLOR, SEAMLESS_CHIP_PX, SEAMLESS_CHIP_NUM, SEAMLESS_CHIP } from './chunk-7ZM7SNCZ.js';
4
4
  import { Slot } from './chunk-52IFGFTL.js';
5
5
  import { ArrowRightIcon, XIcon } from './chunk-BLIZ3CL3.js';
6
- import { devWarn } from './chunk-QDYE5LVT.js';
7
6
  import { cn } from './chunk-ZSNJ6UA3.js';
7
+ import { useLabels } from './chunk-RJTVCA62.js';
8
+ import { devWarn } from './chunk-QDYE5LVT.js';
8
9
  import 'react';
9
10
  import { jsx, jsxs } from 'react/jsx-runtime';
10
11
 
@@ -101,6 +102,11 @@ function BadgeGroup(props) {
101
102
  iconNode
102
103
  ] });
103
104
  }
105
+
106
+ // src/components/badge/labels.ts
107
+ var BADGE_LABELS = {
108
+ dismiss: "Dismiss"
109
+ };
104
110
  var BASE = "inline-flex items-center justify-center align-middle select-none font-medium";
105
111
  function shapeClasses(shape, size) {
106
112
  if (shape === "pill") return "rounded-full";
@@ -178,11 +184,13 @@ function Badge(props) {
178
184
  overflow = "visible",
179
185
  seamless = false,
180
186
  onDismiss,
181
- dismissLabel = "Dismiss",
187
+ dismissLabel,
188
+ labels,
182
189
  className,
183
190
  children,
184
191
  ...rest
185
192
  } = props;
193
+ const t = useLabels("badge", BADGE_LABELS, labels);
186
194
  if (seamless && (props.color !== void 0 || props.variant !== void 0)) {
187
195
  devWarn("<Badge seamless> takes its color from the host \u2014 `color`/`variant` are ignored.");
188
196
  }
@@ -219,7 +227,7 @@ function Badge(props) {
219
227
  "button",
220
228
  {
221
229
  type: "button",
222
- "aria-label": dismissLabel,
230
+ "aria-label": dismissLabel ?? t.dismiss,
223
231
  onClick: onDismiss,
224
232
  className: cn(
225
233
  "inline-flex shrink-0 cursor-pointer items-center justify-center p-0.5",
@@ -239,5 +247,5 @@ function Badge(props) {
239
247
  }
240
248
 
241
249
  export { Badge, BadgeGroup };
242
- //# sourceMappingURL=chunk-EX374YWB.js.map
243
- //# sourceMappingURL=chunk-EX374YWB.js.map
250
+ //# sourceMappingURL=chunk-54SIZR63.js.map
251
+ //# sourceMappingURL=chunk-54SIZR63.js.map
@@ -0,0 +1,49 @@
1
+ import { useRender } from '@base-ui/react/use-render';
2
+ import * as React from 'react';
3
+ import { jsx } from 'react/jsx-runtime';
4
+
5
+ // src/lib/link.tsx
6
+ var LinkContext = React.createContext(void 0);
7
+ if (process.env.NODE_ENV !== "production") LinkContext.displayName = "JenosizeUILinkContext";
8
+ var plainAnchor = (href) => /* @__PURE__ */ jsx("a", { href });
9
+ var NOT_A_ROUTE = /^([a-z][a-z\d+.-]*:|\/\/|\\\\|#)/i;
10
+ function routerOwns(href, options) {
11
+ if (options?.target != null && options.target !== "_self") return false;
12
+ return !NOT_A_ROUTE.test(href.trim());
13
+ }
14
+ function useLinkResolver() {
15
+ const Link = React.useContext(LinkContext);
16
+ return React.useMemo(
17
+ /* `!href`, not `href == null` — an EMPTY string is not a destination either. It was the one
18
+ * question this layer exists to centralise that four call sites still answered for themselves,
19
+ * and they disagreed: `href: ""` was a `<button>` in a Callout, a non-interactive lockup in a
20
+ * header, and an `<a href="">` — a link that silently reloads the current page — in a sidebar
21
+ * brand, every nav row and every crumb. Answering it here means a caller can pass `href`
22
+ * straight through and get one behaviour. */
23
+ () => (href, options) => href ? Link && routerOwns(href, options) ? React.createElement(Link, { href }) : plainAnchor(href) : void 0,
24
+ [Link]
25
+ );
26
+ }
27
+ function useLinkElement(href, options) {
28
+ return useLinkResolver()(href, options);
29
+ }
30
+ function LinkOrButton({ render, className, ariaCurrent, ariaLabel, onClick, children }) {
31
+ return useRender({
32
+ defaultTagName: "button",
33
+ render,
34
+ props: {
35
+ className,
36
+ "aria-current": ariaCurrent ? "page" : void 0,
37
+ "aria-label": ariaLabel,
38
+ onClick,
39
+ children,
40
+ // `type` belongs only on the default <button> form — putting it in the shared object would
41
+ // leak a bogus attribute onto an <a> or a router <Link>. (Breadcrumb's Crumb, verbatim.)
42
+ ...render == null && { type: "button" }
43
+ }
44
+ });
45
+ }
46
+
47
+ export { LinkContext, LinkOrButton, useLinkElement, useLinkResolver };
48
+ //# sourceMappingURL=chunk-5AZKP4KZ.js.map
49
+ //# sourceMappingURL=chunk-5AZKP4KZ.js.map
@@ -1,5 +1,4 @@
1
- import { useCartesianColors, BarChart, LineChart, AreaChart, MARGIN, ChartDataTable, formatNumber, ChartFrame, BAR_LAYOUT, CHART_ROOT, AREA_GRADIENT_STOPS, CartesianGrid, GRID, XAxis, X_AXIS_PADDING, AXIS_TICK, AXIS, Label, AXIS_LABEL, YAxis, ReferenceLine, ZERO_LINE, Tooltip, TOOLTIP_CURSOR, NO_ANIMATION, ChartTooltipContent, Area, AREA_FILL_OPACITY, AREA_SOLID_OPACITY, ACTIVE_DOT, AREA_BAND, Line, LINE_DASH, DOT, Bar, BAR_RADIUS_HORIZONTAL, BAR_RADIUS, MAX_BAR_SIZE, ChartLegendContent, BAND_SEPARATOR } from './chunk-75M43ELV.js';
2
- import { cn } from './chunk-ZSNJ6UA3.js';
1
+ import { useCartesianColors, DEFAULT_PALETTE, BarChart, LineChart, AreaChart, MARGIN, ChartDataTable, formatNumber, ChartFrame, BAR_LAYOUT, CHART_ROOT, AREA_GRADIENT_STOPS, CartesianGrid, GRID, XAxis, X_AXIS_PADDING, AXIS_TICK, AXIS, Label, AXIS_LABEL, YAxis, ReferenceLine, ZERO_LINE, Tooltip, TOOLTIP_CURSOR, NO_ANIMATION, ChartTooltipContent, Area, AREA_FILL_OPACITY, AREA_SOLID_OPACITY, AREA_BAND, ACTIVE_DOT, Line, LINE_DASH, DOT, Bar, BAR_RADIUS_HORIZONTAL, BAR_RADIUS, MAX_BAR_SIZE, ChartLegendContent, BAND_SEPARATOR } from './chunk-22M75A3N.js';
3
2
  import * as React from 'react';
4
3
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
5
4
 
@@ -45,7 +44,7 @@ function Cartesian({
45
44
  series,
46
45
  mark,
47
46
  component,
48
- palette = "brand",
47
+ palette = DEFAULT_PALETTE,
49
48
  height = 240,
50
49
  legend = "right",
51
50
  grid = true,
@@ -55,7 +54,8 @@ function Cartesian({
55
54
  formatValue = formatNumber,
56
55
  tooltip = true,
57
56
  tooltipTone = "surface",
58
- emptyMessage = "No data to display",
57
+ emptyMessage,
58
+ labels,
59
59
  className,
60
60
  "aria-label": ariaLabel
61
61
  }) {
@@ -69,7 +69,7 @@ function Cartesian({
69
69
  }
70
70
  return { colorMap: colorMap2, labelMap: labelMap2 };
71
71
  }, [series, colors]);
72
- const legendItems = React.useMemo(() => series.map((s, i) => ({ label: s.label, colorClass: colors[i] ?? "" })), [series, colors]);
72
+ const legendItems = React.useMemo(() => series.map((s, i) => ({ label: s.label, color: colors[i] ?? "" })), [series, colors]);
73
73
  const formatCategory = React.useCallback((value) => formatX ? formatX(value) : String(value ?? ""), [formatX]);
74
74
  const crossesZero = React.useMemo(() => {
75
75
  let min = Infinity;
@@ -114,13 +114,14 @@ function Cartesian({
114
114
  height,
115
115
  isEmpty: data.length === 0,
116
116
  emptyMessage,
117
+ labels,
117
118
  className,
118
119
  table,
119
120
  legendAlign: "start",
120
121
  legendPlacement: legend === "none" ? void 0 : legend,
121
122
  legend: legend === "none" ? void 0 : /* @__PURE__ */ jsx(ChartLegendContent, { items: legendItems, placement: legend }),
122
123
  children: (gid) => /* @__PURE__ */ jsxs(Root, { data, className: CHART_ROOT, margin, layout: mark.kind === "bar" ? BAR_LAYOUT[mark.layout] : void 0, children: [
123
- mark.kind === "area" && mark.fill === "gradient" ? /* @__PURE__ */ jsx("defs", { children: series.map((s, i) => /* @__PURE__ */ jsxs("linearGradient", { id: `${gid}-${i}`, x1: "0", y1: "0", x2: "0", y2: "1", className: colors[i], children: [
124
+ mark.kind === "area" && mark.fill === "gradient" ? /* @__PURE__ */ jsx("defs", { children: series.map((s, i) => /* @__PURE__ */ jsxs("linearGradient", { id: `${gid}-${i}`, x1: "0", y1: "0", x2: "0", y2: "1", style: { color: colors[i] }, children: [
124
125
  /* @__PURE__ */ jsx("stop", { offset: AREA_GRADIENT_STOPS.fromOffset, stopColor: "currentColor", stopOpacity: AREA_GRADIENT_STOPS.from }),
125
126
  /* @__PURE__ */ jsx("stop", { offset: AREA_GRADIENT_STOPS.toOffset, stopColor: "currentColor", stopOpacity: AREA_GRADIENT_STOPS.to })
126
127
  ] }, s.key)) }) : null,
@@ -194,7 +195,8 @@ function Cartesian({
194
195
  Area,
195
196
  {
196
197
  ...NO_ANIMATION,
197
- className: cn(color, AREA_BAND[mark.band]),
198
+ className: AREA_BAND[mark.band],
199
+ style: { color },
198
200
  dataKey: key,
199
201
  name: s.label,
200
202
  type: mark.curve,
@@ -213,7 +215,7 @@ function Cartesian({
213
215
  Line,
214
216
  {
215
217
  ...NO_ANIMATION,
216
- className: color,
218
+ style: { color },
217
219
  dataKey: key,
218
220
  name: s.label,
219
221
  type: mark.curve,
@@ -231,7 +233,7 @@ function Cartesian({
231
233
  Bar,
232
234
  {
233
235
  ...NO_ANIMATION,
234
- className: color,
236
+ style: { color },
235
237
  dataKey: key,
236
238
  name: s.label,
237
239
  fill: "currentColor",
@@ -248,5 +250,5 @@ function Cartesian({
248
250
  }
249
251
 
250
252
  export { Cartesian };
251
- //# sourceMappingURL=chunk-NA35YZRD.js.map
252
- //# sourceMappingURL=chunk-NA35YZRD.js.map
253
+ //# sourceMappingURL=chunk-5DP7W5HX.js.map
254
+ //# sourceMappingURL=chunk-5DP7W5HX.js.map
@@ -1,6 +1,7 @@
1
- import { TooltipExport } from './chunk-4R7WDDCW.js';
1
+ import { TooltipExport } from './chunk-KZP6B6B3.js';
2
2
  import { CircleHelpIcon } from './chunk-BLIZ3CL3.js';
3
3
  import { cn } from './chunk-ZSNJ6UA3.js';
4
+ import { useLabels } from './chunk-RJTVCA62.js';
4
5
  import { Field } from '@base-ui/react/field';
5
6
  import 'react';
6
7
  import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
@@ -43,6 +44,13 @@ var SHELL_SIZE = {
43
44
  lg: `min-h-11 ${BAR_PX.lg} gap-2 ${CONTROL_TEXT.lg} ${CONTROL_RADIUS}`
44
45
  };
45
46
  var LISTBOX_PX_SM = "pl-3 pr-2.5";
47
+
48
+ // src/components/field/labels.ts
49
+ var FIELD_LABELS = {
50
+ /** Appended to a required control's accessible name, visually hidden. Leading comma included:
51
+ * it is a name FRAGMENT ("Email, required"), not a sentence. */
52
+ required: ", required"
53
+ };
46
54
  function useFieldValidity(invalid = false, error) {
47
55
  const showError = error != null && error !== "";
48
56
  return { isInvalid: invalid || showError, showError };
@@ -126,6 +134,7 @@ function FieldGroupFrame(props) {
126
134
  announceRequired = false,
127
135
  children
128
136
  } = props;
137
+ const t = useLabels("field", FIELD_LABELS, void 0);
129
138
  return /* @__PURE__ */ jsxs(Field.Root, { name, disabled, invalid: isInvalid, className: cn("flex flex-col gap-1.5", fullWidth ? "w-full" : "w-auto", className), children: [
130
139
  label ? /* @__PURE__ */ jsxs("span", { id: labelId, className: FIELD_LABEL_CLASS, children: [
131
140
  /* @__PURE__ */ jsx(
@@ -139,7 +148,7 @@ function FieldGroupFrame(props) {
139
148
  tooltipDescription
140
149
  }
141
150
  ),
142
- required && announceRequired ? /* @__PURE__ */ jsx("span", { className: "sr-only", children: ", required" }) : null
151
+ required && announceRequired ? /* @__PURE__ */ jsx("span", { className: "sr-only", children: t.required }) : null
143
152
  ] }) : null,
144
153
  children,
145
154
  /* @__PURE__ */ jsx(FieldMessages, { hint, error, showError, size })
@@ -147,5 +156,5 @@ function FieldGroupFrame(props) {
147
156
  }
148
157
 
149
158
  export { BAR_SIZE, CONTROL_ICON, CONTROL_RADIUS, CONTROL_TEXT, FIELD_LABEL_CLASS, FieldFrame, FieldGroupFrame, LISTBOX_PX_SM, SHELL_SIZE, SLOT_ICON, useFieldValidity };
150
- //# sourceMappingURL=chunk-QKDEQFOQ.js.map
151
- //# sourceMappingURL=chunk-QKDEQFOQ.js.map
159
+ //# sourceMappingURL=chunk-5KSD4WKN.js.map
160
+ //# sourceMappingURL=chunk-5KSD4WKN.js.map
@@ -1,8 +1,8 @@
1
- import { OptionRow } from './chunk-GTHJWR3Q.js';
2
- import { useFieldValidity, FieldGroupFrame } from './chunk-QKDEQFOQ.js';
1
+ import { OptionRow } from './chunk-D7EE5GWU.js';
2
+ import { useFieldValidity, FieldGroupFrame } from './chunk-5KSD4WKN.js';
3
3
  import { MinusIcon, CheckIcon } from './chunk-BLIZ3CL3.js';
4
- import { devWarn, warnNeedsName } from './chunk-QDYE5LVT.js';
5
4
  import { cn } from './chunk-ZSNJ6UA3.js';
5
+ import { devWarn, warnNeedsName } from './chunk-QDYE5LVT.js';
6
6
  import { CheckboxGroup as CheckboxGroup$1 } from '@base-ui/react/checkbox-group';
7
7
  import * as React3 from 'react';
8
8
  import { Checkbox as Checkbox$1 } from '@base-ui/react/checkbox';
@@ -188,5 +188,5 @@ function CheckboxGroup(props) {
188
188
  CheckboxGroup.displayName = "CheckboxGroup";
189
189
 
190
190
  export { Checkbox, CheckboxGroup };
191
- //# sourceMappingURL=chunk-RIXEUAPY.js.map
192
- //# sourceMappingURL=chunk-RIXEUAPY.js.map
191
+ //# sourceMappingURL=chunk-5XPMY2LF.js.map
192
+ //# sourceMappingURL=chunk-5XPMY2LF.js.map