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,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,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,4 +1,4 @@
1
- import { useControllableOpen, DialogSurface } from './chunk-VEOYCAJP.js';
1
+ import { useControllableOpen, DialogSurface } from './chunk-CKMWBVRR.js';
2
2
  import { AlertDialog as AlertDialog$1 } from '@base-ui/react/alert-dialog';
3
3
  import * as React from 'react';
4
4
  import { jsxs, jsx } from 'react/jsx-runtime';
@@ -10,6 +10,7 @@ function AlertDialog(props) {
10
10
  defaultOpen = false,
11
11
  onOpenChange,
12
12
  size = "md",
13
+ backdrop = "scrim",
13
14
  showClose = false,
14
15
  dividers = "line",
15
16
  keepMounted = false,
@@ -33,6 +34,7 @@ function AlertDialog(props) {
33
34
  DialogSurface,
34
35
  {
35
36
  size,
37
+ backdrop,
36
38
  showClose,
37
39
  dividers,
38
40
  keepMounted,
@@ -53,5 +55,5 @@ function AlertDialog(props) {
53
55
  AlertDialog.displayName = "AlertDialog";
54
56
 
55
57
  export { AlertDialog };
56
- //# sourceMappingURL=chunk-RNXRZGXN.js.map
57
- //# sourceMappingURL=chunk-RNXRZGXN.js.map
58
+ //# sourceMappingURL=chunk-3H444OJA.js.map
59
+ //# sourceMappingURL=chunk-3H444OJA.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