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,13 +1,14 @@
1
- import { Progress } from './chunk-A46ED5JQ.js';
1
+ import { Progress } from './chunk-33TOK7ES.js';
2
2
  import { Separator } from './chunk-7VLYQR4D.js';
3
3
  import { FileTrigger } from './chunk-DJSXIAFH.js';
4
- import { Button } from './chunk-A5WQLN4B.js';
5
- import { ButtonUtility } from './chunk-C6OTOTKI.js';
6
- import { SOLID } from './chunk-6IUTVDNI.js';
7
- import { useFieldValidity, FieldFrame } from './chunk-QKDEQFOQ.js';
4
+ import { Button } from './chunk-OACWA4TC.js';
5
+ import { ButtonUtility } from './chunk-AZ7DKRBY.js';
6
+ import { SOLID } from './chunk-MCQG4H6T.js';
7
+ import { useFieldValidity, FieldFrame } from './chunk-5KSD4WKN.js';
8
8
  import { UploadCloudIcon, FileIcon, CircleXIcon, CircleCheckIcon, Trash2Icon, XIcon } from './chunk-BLIZ3CL3.js';
9
- import { warnNonNegativeInt, devWarn, warnRange } from './chunk-QDYE5LVT.js';
10
9
  import { cn } from './chunk-ZSNJ6UA3.js';
10
+ import { useLabels } from './chunk-RJTVCA62.js';
11
+ import { warnNonNegativeInt, devWarn, warnRange } from './chunk-QDYE5LVT.js';
11
12
  import { mergeProps } from '@base-ui/react/merge-props';
12
13
  import { useRender } from '@base-ui/react/use-render';
13
14
  import * as React from 'react';
@@ -213,6 +214,42 @@ async function readDropContents(dt, recursive, readEntry = readEntryFromItem) {
213
214
  }
214
215
  return { files, directories };
215
216
  }
217
+
218
+ // src/components/dropzone/labels.ts
219
+ var DROPZONE_LABELS = {
220
+ /** The bright half of the prompt — a real `<button>`, which is why it is its own key. */
221
+ clickToUpload: "Click to upload",
222
+ /**
223
+ * The muted remainder of the same sentence.
224
+ *
225
+ * The two halves are ONE sentence split across an element boundary for styling, and the styled
226
+ * action always comes first. A language that cannot keep that order sets `clickToUpload` to the
227
+ * whole phrase and `dragAndDrop` to `""` (or the reverse) — deliberately a documented workaround
228
+ * rather than a third "whole sentence" key, because interpolating a styled NODE would mean a ctx
229
+ * carrying markup, which this layer does not do.
230
+ */
231
+ dragAndDrop: "or drag and drop",
232
+ /** Appended to the zone's accessible name when the field is required. */
233
+ required: ", required"
234
+ };
235
+ var FILE_LIST_LABELS = {
236
+ /** The three status words, visible beside each row's glyph. */
237
+ statusUploading: "Uploading\u2026",
238
+ statusComplete: "Complete",
239
+ statusFailed: "Failed",
240
+ /** The row affordance's verb, which also composes into its accessible name. */
241
+ cancel: "Cancel",
242
+ remove: "Remove",
243
+ /** The retry link under a failed row. */
244
+ retry: "Try again",
245
+ /** The fallback failure line, when the upload reported no error of its own. */
246
+ uploadFailed: "Upload failed",
247
+ /** A bare "Remove" makes a five-row list announce five identical buttons, so the file's name is
248
+ * part of the name. */
249
+ actionForFile: (ctx) => `${ctx.verb} ${ctx.name}`,
250
+ /** The progress bar's name while a row uploads. */
251
+ uploading: (ctx) => `Uploading ${ctx.name}`
252
+ };
216
253
  var SURFACE = "group flex w-full cursor-pointer flex-col items-center gap-3 rounded-xl bg-primary px-6 py-4 text-center ring-1 ring-secondary ring-inset transition duration-100 ease-linear outline-focus-ring focus-visible:outline-2 focus-visible:outline-offset-2";
217
254
  var SURFACE_IDLE = "hover:bg-secondary";
218
255
  var SURFACE_DRAGGING = "bg-brand-primary ring-2 ring-brand";
@@ -239,11 +276,13 @@ function Dropzone(props) {
239
276
  error,
240
277
  disabled = false,
241
278
  fullWidth = true,
279
+ labels,
242
280
  className,
243
281
  render,
244
282
  _readEntry,
245
283
  ...rest
246
284
  } = props;
285
+ const t = useLabels("dropzone", DROPZONE_LABELS, labels);
247
286
  const { isInvalid, showError } = useFieldValidity(invalid, error);
248
287
  const [dragging, setDragging] = React.useState(false);
249
288
  const labelId = React.useId();
@@ -349,10 +388,11 @@ function Dropzone(props) {
349
388
  /* @__PURE__ */ jsx("span", { "aria-hidden": "true", className: cn(GLYPH_BOX, HERO_TILE, disabled && "opacity-50"), children: /* @__PURE__ */ jsx(UploadCloudIcon, { className: "size-5 text-fg-secondary" }) }),
350
389
  /* @__PURE__ */ jsxs("span", { id: textId, className: cn("flex flex-col gap-1", disabled && "opacity-50"), children: [
351
390
  /* @__PURE__ */ jsxs("span", { className: "text-sm text-tertiary", children: [
352
- /* @__PURE__ */ jsx("span", { className: "font-semibold text-brand-secondary group-hover:underline", children: "Click to upload" }),
353
- " or drag and drop"
391
+ /* @__PURE__ */ jsx("span", { className: "font-semibold text-brand-secondary group-hover:underline", children: t.clickToUpload }),
392
+ " ",
393
+ t.dragAndDrop
354
394
  ] }),
355
- required ? /* @__PURE__ */ jsx("span", { className: "sr-only", children: ", required" }) : null
395
+ required ? /* @__PURE__ */ jsx("span", { className: "sr-only", children: t.required }) : null
356
396
  ] })
357
397
  ] })
358
398
  },
@@ -388,17 +428,19 @@ var META_TEXT = "text-sm text-tertiary";
388
428
  var SIZE_TEXT = `${META_TEXT} truncate whitespace-nowrap`;
389
429
  var ERROR_TEXT = `${META_TEXT} break-words`;
390
430
  var STATUS = {
391
- uploading: { word: "Uploading\u2026", glyph: UploadCloudIcon, glyphClass: "text-fg-quaternary", wordClass: "text-quaternary", action: "cancel" },
392
- complete: { word: "Complete", glyph: CircleCheckIcon, glyphClass: "text-fg-success-primary", wordClass: "text-success-primary", action: "remove" },
393
- failed: { word: "Failed", glyph: CircleXIcon, glyphClass: "text-fg-error-primary", wordClass: "text-error-primary", action: "remove" }
431
+ uploading: { key: "statusUploading", glyph: UploadCloudIcon, glyphClass: "text-fg-quaternary", wordClass: "text-quaternary", action: "cancel" },
432
+ complete: { key: "statusComplete", glyph: CircleCheckIcon, glyphClass: "text-fg-success-primary", wordClass: "text-success-primary", action: "remove" },
433
+ failed: { key: "statusFailed", glyph: CircleXIcon, glyphClass: "text-fg-error-primary", wordClass: "text-error-primary", action: "remove" }
394
434
  };
395
435
  var ACTION = {
396
- cancel: { verb: "Cancel", glyph: XIcon },
397
- remove: { verb: "Remove", glyph: Trash2Icon }
436
+ cancel: { key: "cancel", glyph: XIcon },
437
+ remove: { key: "remove", glyph: Trash2Icon }
398
438
  };
399
- function Row({ file, treatment, onRemove, onCancel, onRetry, fileIcon }) {
439
+ function Row({ file, treatment, onRemove, onCancel, onRetry, fileIcon, t }) {
400
440
  const status = STATUS[file.status];
401
441
  const action = ACTION[status.action];
442
+ const statusWord = t[status.key];
443
+ const actionVerb = t[action.key];
402
444
  const StatusGlyph = status.glyph;
403
445
  const ActionGlyph = action.glyph;
404
446
  const handler = status.action === "cancel" ? onCancel : onRemove;
@@ -412,24 +454,24 @@ function Row({ file, treatment, onRemove, onCancel, onRetry, fileIcon }) {
412
454
  variant: "tertiary",
413
455
  size: "xs",
414
456
  icon: /* @__PURE__ */ jsx(ActionGlyph, {}),
415
- tooltip: action.verb,
416
- "aria-label": `${action.verb} ${file.name}`,
457
+ tooltip: actionVerb,
458
+ "aria-label": t.actionForFile({ verb: actionVerb, name: file.name }),
417
459
  className: "-mt-2 -mr-2 self-start",
418
460
  onClick: () => handler(file)
419
461
  }
420
462
  ) : null;
421
- const retry = failed && onRetry ? /* @__PURE__ */ jsx(Button, { variant: "link", color: "error", size: "sm", className: "mt-1.5", onClick: () => onRetry(file), children: "Try again" }) : null;
463
+ const retry = failed && onRetry ? /* @__PURE__ */ jsx(Button, { variant: "link", color: "error", size: "sm", className: "mt-1.5", onClick: () => onRetry(file), children: t.retry }) : null;
422
464
  const glyph = fileIcon ? fileIcon(file) : /* @__PURE__ */ jsx(FileTypeGlyph, { extension: fileExtension(fileGlyphSource(file)) });
423
465
  const meta = /* @__PURE__ */ jsxs("div", { className: META_ROW, children: [
424
- /* @__PURE__ */ jsx("p", { className: failed ? ERROR_TEXT : SIZE_TEXT, children: failed ? file.error ?? "Upload failed" : formatFileSize(file.size) }),
466
+ /* @__PURE__ */ jsx("p", { className: failed ? ERROR_TEXT : SIZE_TEXT, children: failed ? file.error ?? t.uploadFailed : formatFileSize(file.size) }),
425
467
  fill && failed ? null : /* @__PURE__ */ jsxs(Fragment, { children: [
426
468
  /* @__PURE__ */ jsx(Separator, { orientation: "vertical", length: "sm", tone: "strong", decorative: true }),
427
469
  /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-1", children: [
428
470
  /* @__PURE__ */ jsx(StatusGlyph, { "aria-hidden": "true", className: cn("size-4", status.glyphClass) }),
429
471
  fill ? (
430
472
  // No `<Progress>` in this treatment, so the readout is the wash's only number.
431
- /* @__PURE__ */ jsx("p", { className: cn("text-sm tabular-nums", failed ? status.wordClass : "text-tertiary"), children: failed ? status.word : `${progress}%` })
432
- ) : /* @__PURE__ */ jsx("p", { className: cn("text-sm font-medium", status.wordClass), children: status.word })
473
+ /* @__PURE__ */ jsx("p", { className: cn("text-sm tabular-nums", failed ? status.wordClass : "text-tertiary"), children: failed ? statusWord : `${progress}%` })
474
+ ) : /* @__PURE__ */ jsx("p", { className: cn("text-sm font-medium", status.wordClass), children: statusWord })
433
475
  ] })
434
476
  ] })
435
477
  ] });
@@ -441,7 +483,7 @@ function Row({ file, treatment, onRemove, onCancel, onRetry, fileIcon }) {
441
483
  ] }),
442
484
  affordance
443
485
  ] }),
444
- !fill && file.status === "uploading" ? /* @__PURE__ */ jsx("div", { className: "mt-1 w-full", children: /* @__PURE__ */ jsx(Progress, { value: progress, valuePosition: "right", "aria-label": `Uploading ${file.name}` }) }) : null,
486
+ !fill && file.status === "uploading" ? /* @__PURE__ */ jsx("div", { className: "mt-1 w-full", children: /* @__PURE__ */ jsx(Progress, { value: progress, valuePosition: "right", "aria-label": t.uploading({ name: file.name }) }) }) : null,
445
487
  retry
446
488
  ] });
447
489
  if (!fill) {
@@ -458,7 +500,7 @@ function Row({ file, treatment, onRemove, onCancel, onRetry, fileIcon }) {
458
500
  "aria-valuenow": progress,
459
501
  "aria-valuemin": 0,
460
502
  "aria-valuemax": 100,
461
- "aria-label": `Uploading ${file.name}`,
503
+ "aria-label": t.uploading({ name: file.name }),
462
504
  style: { transform: `translateX(-${100 - progress}%)` },
463
505
  className: cn(FILL_WASH, file.status === "complete" && "opacity-0")
464
506
  }
@@ -469,14 +511,15 @@ function Row({ file, treatment, onRemove, onCancel, onRetry, fileIcon }) {
469
511
  ] });
470
512
  }
471
513
  function FileList(props) {
472
- const { files, treatment = "bar", onRemove, onCancel, onRetry, fileIcon, className, ...rest } = props;
514
+ const { files, treatment = "bar", onRemove, onCancel, onRetry, fileIcon, labels, className, ...rest } = props;
515
+ const t = useLabels("fileList", FILE_LIST_LABELS, labels);
473
516
  if (files.length === 0) return null;
474
517
  return /* @__PURE__ */ jsx("ul", { ...rest, className: cn(LIST, className), children: files.map((file) => (
475
518
  // Keyed on `id`, never the index — reordering must move a row, not remount it.
476
- /* @__PURE__ */ jsx(Row, { file, treatment, onRemove, onCancel, onRetry, fileIcon }, file.id)
519
+ /* @__PURE__ */ jsx(Row, { file, treatment, onRemove, onCancel, onRetry, fileIcon, t }, file.id)
477
520
  )) });
478
521
  }
479
522
 
480
523
  export { Dropzone, FILE_TONE, FILE_TONE_BUCKETS, FileList, FileTypeGlyph, GLYPH_BOX, bucketFiles, extensionTone, fileExtension, fileGlyphSource, fileTone, formatFileSize, invalidAcceptEntries, isFileTypeAccepted, toUploadFile };
481
- //# sourceMappingURL=chunk-HSVBTIP2.js.map
482
- //# sourceMappingURL=chunk-HSVBTIP2.js.map
524
+ //# sourceMappingURL=chunk-HHYEAFCL.js.map
525
+ //# sourceMappingURL=chunk-HHYEAFCL.js.map
@@ -1,6 +1,6 @@
1
- import { FieldShell } from './chunk-JUWDRRD6.js';
2
- import { useSeamlessSlot, warnSeamlessFieldChrome, SEAMLESS_BOX } from './chunk-TBN644IN.js';
3
- import { useFieldValidity, FieldFrame } from './chunk-QKDEQFOQ.js';
1
+ import { FieldShell } from './chunk-X2VMIBK5.js';
2
+ import { useFieldValidity, FieldFrame } from './chunk-5KSD4WKN.js';
3
+ import { useSeamlessSlot, warnSeamlessFieldChrome, SEAMLESS_BOX } from './chunk-7ZM7SNCZ.js';
4
4
  import { ChevronDownIcon } from './chunk-BLIZ3CL3.js';
5
5
  import { cn } from './chunk-ZSNJ6UA3.js';
6
6
  import { Field } from '@base-ui/react/field';
@@ -134,5 +134,5 @@ function NativeSelect(props) {
134
134
  }
135
135
 
136
136
  export { NativeSelect };
137
- //# sourceMappingURL=chunk-P7DH62UY.js.map
138
- //# sourceMappingURL=chunk-P7DH62UY.js.map
137
+ //# sourceMappingURL=chunk-I6WMNXC7.js.map
138
+ //# sourceMappingURL=chunk-I6WMNXC7.js.map
@@ -1,5 +1,5 @@
1
1
  import { RULE_TONE, RULE_PAINT, RULE_TEXTURE } from './chunk-LCG34A5T.js';
2
- import { SOLID, SOLID_BOX, SOLID_GLOSS, BOXED_BOX, BOX_RING } from './chunk-6IUTVDNI.js';
2
+ import { SOLID, SOLID_BOX, SOLID_GLOSS, BOXED_BOX, BOX_RING } from './chunk-MCQG4H6T.js';
3
3
  import { overflowClasses } from './chunk-DWKILXHE.js';
4
4
  import { CheckIcon, XIcon, MinusIcon } from './chunk-BLIZ3CL3.js';
5
5
  import { cn } from './chunk-ZSNJ6UA3.js';
@@ -601,5 +601,5 @@ function useSteps(options) {
601
601
  }
602
602
 
603
603
  export { ProgressSteps, StepPanel, buildStepMap, firstEnabledStep, resolveStepStatus, useSteps };
604
- //# sourceMappingURL=chunk-34J5AANZ.js.map
605
- //# sourceMappingURL=chunk-34J5AANZ.js.map
604
+ //# sourceMappingURL=chunk-IQNVSQRK.js.map
605
+ //# sourceMappingURL=chunk-IQNVSQRK.js.map
@@ -1,4 +1,4 @@
1
- import { Cartesian } from './chunk-NA35YZRD.js';
1
+ import { Cartesian } from './chunk-5DP7W5HX.js';
2
2
  import { jsx } from 'react/jsx-runtime';
3
3
 
4
4
  function AreaChart({ fill = "gradient", band = "detached", stacked = false, curve = "monotone", ...rest }) {
@@ -6,5 +6,5 @@ function AreaChart({ fill = "gradient", band = "detached", stacked = false, curv
6
6
  }
7
7
 
8
8
  export { AreaChart };
9
- //# sourceMappingURL=chunk-MCUASLZH.js.map
10
- //# sourceMappingURL=chunk-MCUASLZH.js.map
9
+ //# sourceMappingURL=chunk-KHGW72BM.js.map
10
+ //# sourceMappingURL=chunk-KHGW72BM.js.map
@@ -1,7 +1,7 @@
1
- import { TOOLTIP_TONE } from './chunk-AC6ZWKRN.js';
1
+ import { TOOLTIP_TONE } from './chunk-AFYXSZGW.js';
2
2
  import { TOOLTIP_MOTION } from './chunk-O4GRKO3I.js';
3
- import { devWarn } from './chunk-QDYE5LVT.js';
4
3
  import { cn } from './chunk-ZSNJ6UA3.js';
4
+ import { devWarn } from './chunk-QDYE5LVT.js';
5
5
  import { Tooltip as Tooltip$1 } from '@base-ui/react/tooltip';
6
6
  import * as React from 'react';
7
7
  import { jsx, jsxs } from 'react/jsx-runtime';
@@ -151,5 +151,5 @@ Tooltip.displayName = "Tooltip";
151
151
  var TooltipExport = Object.assign(Tooltip, { Provider: TooltipProvider });
152
152
 
153
153
  export { TooltipExport };
154
- //# sourceMappingURL=chunk-4R7WDDCW.js.map
155
- //# sourceMappingURL=chunk-4R7WDDCW.js.map
154
+ //# sourceMappingURL=chunk-KZP6B6B3.js.map
155
+ //# sourceMappingURL=chunk-KZP6B6B3.js.map
@@ -1,5 +1,5 @@
1
- import { warnPositiveInt } from './chunk-QDYE5LVT.js';
2
1
  import { cn } from './chunk-ZSNJ6UA3.js';
2
+ import { warnPositiveInt } from './chunk-QDYE5LVT.js';
3
3
  import 'react';
4
4
  import { jsx } from 'react/jsx-runtime';
5
5
 
@@ -22,5 +22,5 @@ function SkeletonText({ lines = 3, size = "md", className }) {
22
22
  SkeletonText.displayName = "SkeletonText";
23
23
 
24
24
  export { SKELETON_WIDTHS, Skeleton, SkeletonText, skeletonWidth };
25
- //# sourceMappingURL=chunk-7HV6EIGZ.js.map
26
- //# sourceMappingURL=chunk-7HV6EIGZ.js.map
25
+ //# sourceMappingURL=chunk-LLPWQDF7.js.map
26
+ //# sourceMappingURL=chunk-LLPWQDF7.js.map
@@ -1,6 +1,6 @@
1
- import { SURFACE_PADDING } from './chunk-MFJP5FA7.js';
2
- import { ruleEdge } from './chunk-LCG34A5T.js';
3
1
  import { ScrollView } from './chunk-FKVPAEJ6.js';
2
+ import { SURFACE_PADDING } from './chunk-45Y2ZGNK.js';
3
+ import { ruleEdge } from './chunk-LCG34A5T.js';
4
4
  import { Slot } from './chunk-52IFGFTL.js';
5
5
  import { cn } from './chunk-ZSNJ6UA3.js';
6
6
  import { mergeProps } from '@base-ui/react/merge-props';
@@ -109,5 +109,5 @@ function PanelChrome(props) {
109
109
  }
110
110
 
111
111
  export { PanelChrome };
112
- //# sourceMappingURL=chunk-FZBZGA3P.js.map
113
- //# sourceMappingURL=chunk-FZBZGA3P.js.map
112
+ //# sourceMappingURL=chunk-LO22VQL5.js.map
113
+ //# sourceMappingURL=chunk-LO22VQL5.js.map
@@ -1,6 +1,7 @@
1
1
  import { Illustration } from './chunk-OHUFNYGN.js';
2
- import { Button } from './chunk-A5WQLN4B.js';
3
- import { FG } from './chunk-6IUTVDNI.js';
2
+ import { useLinkResolver } from './chunk-5AZKP4KZ.js';
3
+ import { Button } from './chunk-OACWA4TC.js';
4
+ import { FG } from './chunk-MCQG4H6T.js';
4
5
  import { cn } from './chunk-ZSNJ6UA3.js';
5
6
  import 'react';
6
7
  import { jsxs, jsx } from 'react/jsx-runtime';
@@ -33,13 +34,14 @@ var DESC_SIZE = {
33
34
  md: "text-sm",
34
35
  lg: "text-md"
35
36
  };
36
- function Callout({ title, description, icon, illustration, tone = "neutral", size = "md", actions, className }) {
37
+ function Callout({ title, description, icon, illustration, color = "neutral", size = "md", actions, className }) {
38
+ const resolveLink = useLinkResolver();
37
39
  return /* @__PURE__ */ jsxs("div", { className: cn("mx-auto flex w-full max-w-md flex-col items-center justify-center text-center", ROOT_SIZE[size], className), children: [
38
40
  illustration ? /* @__PURE__ */ jsx(Illustration, { type: illustration, size }) : null,
39
41
  icon ? (
40
42
  // The glyph is the component's own chrome, not a caller slot, so it is aria-hidden and
41
43
  // does NOT go through <Slot>: the title already carries the accessible message.
42
- /* @__PURE__ */ jsx("span", { "aria-hidden": "true", className: cn("flex shrink-0 items-center justify-center", ICON_BOX[size], RAISED_BOX, RADIUS[size], GLYPH[tone]), children: icon })
44
+ /* @__PURE__ */ jsx("span", { "aria-hidden": "true", className: cn("flex shrink-0 items-center justify-center", ICON_BOX[size], RAISED_BOX, RADIUS[size], GLYPH[color]), children: icon })
43
45
  ) : null,
44
46
  /* @__PURE__ */ jsxs("div", { className: "flex max-w-88 flex-col gap-1", children: [
45
47
  /* @__PURE__ */ jsx("p", { className: cn("font-semibold text-primary", TITLE_SIZE[size]), children: title }),
@@ -52,7 +54,7 @@ function Callout({ title, description, icon, illustration, tone = "neutral", siz
52
54
  variant: action.variant === "primary" ? "primary" : "secondary",
53
55
  leading: action.leading,
54
56
  onClick: action.onClick,
55
- ...action.href ? { render: /* @__PURE__ */ jsx("a", { href: action.href }) } : null,
57
+ ...action.href ? { render: resolveLink(action.href) } : null,
56
58
  children: action.label
57
59
  },
58
60
  action.label
@@ -62,5 +64,5 @@ function Callout({ title, description, icon, illustration, tone = "neutral", siz
62
64
  Callout.displayName = "Callout";
63
65
 
64
66
  export { Callout };
65
- //# sourceMappingURL=chunk-JXHZHUB3.js.map
66
- //# sourceMappingURL=chunk-JXHZHUB3.js.map
67
+ //# sourceMappingURL=chunk-LQURV7HQ.js.map
68
+ //# sourceMappingURL=chunk-LQURV7HQ.js.map
@@ -2,13 +2,21 @@ import { tagSlotClass, tagLabelClass, tagContentClass, tagCloseClass, tagRootCla
2
2
  import { overflowBounded } from './chunk-DWKILXHE.js';
3
3
  import { Slot } from './chunk-52IFGFTL.js';
4
4
  import { XIcon, CheckIcon } from './chunk-BLIZ3CL3.js';
5
- import { warnNeedsName } from './chunk-QDYE5LVT.js';
6
5
  import { cn } from './chunk-ZSNJ6UA3.js';
6
+ import { useLabels } from './chunk-RJTVCA62.js';
7
+ import { warnNeedsName } from './chunk-QDYE5LVT.js';
7
8
  import { Toggle } from '@base-ui/react/toggle';
8
9
  import { ToggleGroup } from '@base-ui/react/toggle-group';
9
10
  import * as React from 'react';
10
11
  import { jsxs, jsx } from 'react/jsx-runtime';
11
12
 
13
+ // src/components/tag/labels.ts
14
+ var TAG_LABELS = {
15
+ /** Names the remove button after the tag it removes, so a row of five is five distinct names. */
16
+ remove: (ctx) => `Remove ${ctx.label}`,
17
+ /** The fallback when the tag's children are a node, which has no text to name it with. */
18
+ removeGeneric: "Remove tag"
19
+ };
12
20
  function TagCheckbox({ size }) {
13
21
  return /* @__PURE__ */ jsx("span", { "aria-hidden": "true", "data-tag-checkbox": true, className: tagCheckboxBoxClass(size), children: /* @__PURE__ */ jsx(CheckIcon, { className: tagCheckboxGlyphClass(size) }) });
14
22
  }
@@ -20,13 +28,15 @@ function Tag(props) {
20
28
  trailing,
21
29
  onRemove,
22
30
  removeLabel,
31
+ labels,
23
32
  removeExcludeFromTabOrder = false,
24
33
  disabled = false,
25
34
  overflow = "visible",
26
35
  className,
27
36
  ...rest
28
37
  } = props;
29
- const label = removeLabel ?? (typeof children === "string" ? `Remove ${children}` : "Remove tag");
38
+ const t = useLabels("tag", TAG_LABELS, labels);
39
+ const label = removeLabel ?? (typeof children === "string" ? t.remove({ label: children }) : t.removeGeneric);
30
40
  const bounded = overflowBounded(overflow);
31
41
  return /* @__PURE__ */ jsxs(
32
42
  "span",
@@ -166,5 +176,5 @@ TagGroupItem.displayName = "TagGroupItem";
166
176
  var TagGroup = TagGroupRoot;
167
177
 
168
178
  export { Tag, TagGroup };
169
- //# sourceMappingURL=chunk-EDT5J5WK.js.map
170
- //# sourceMappingURL=chunk-EDT5J5WK.js.map
179
+ //# sourceMappingURL=chunk-LYXPJERB.js.map
180
+ //# sourceMappingURL=chunk-LYXPJERB.js.map
@@ -38,6 +38,22 @@ var SUBTLE = {
38
38
  error: "bg-utility-red-50 text-utility-red-700 ring-1 ring-inset ring-utility-red-200",
39
39
  info: "bg-utility-blue-50 text-utility-blue-700 ring-1 ring-inset ring-utility-blue-200"
40
40
  };
41
+ var FILL = {
42
+ neutral: "bg-secondary-solid",
43
+ brand: "bg-brand-solid",
44
+ success: "bg-success-solid",
45
+ warning: "bg-warning-solid",
46
+ error: "bg-error-solid",
47
+ info: "bg-utility-blue-500"
48
+ };
49
+ var WASH = {
50
+ neutral: "bg-secondary text-tertiary ring-1 ring-secondary ring-inset",
51
+ brand: "bg-brand-primary text-brand-secondary",
52
+ success: "bg-success-primary text-success-primary",
53
+ warning: "bg-warning-primary text-warning-primary",
54
+ error: "bg-error-primary text-utility-red-700",
55
+ info: "bg-utility-blue-50 text-utility-blue-600"
56
+ };
41
57
  var OUTLINE = {
42
58
  neutral: "bg-primary text-secondary ring-1 ring-inset ring-primary",
43
59
  brand: "bg-primary text-utility-brand-700 ring-1 ring-inset ring-utility-brand-200",
@@ -54,6 +70,22 @@ var FG = {
54
70
  error: "text-error-primary",
55
71
  info: "text-utility-blue-600"
56
72
  };
73
+ var FG_HOVER = {
74
+ neutral: "text-tertiary hover:text-secondary",
75
+ brand: "text-brand-secondary hover:text-brand-secondary_hover",
76
+ success: "text-success-primary hover:text-utility-green-700",
77
+ warning: "text-warning-primary hover:text-utility-amber-700",
78
+ error: "text-error-primary hover:text-utility-red-700",
79
+ info: "text-utility-blue-600 hover:text-utility-blue-700"
80
+ };
81
+ var WASH_HOVER = {
82
+ neutral: "hover:bg-secondary data-[loading]:bg-secondary",
83
+ brand: "hover:bg-brand-primary data-[loading]:bg-brand-primary",
84
+ success: "hover:bg-success-primary data-[loading]:bg-success-primary",
85
+ warning: "hover:bg-warning-primary data-[loading]:bg-warning-primary",
86
+ error: "hover:bg-error-primary data-[loading]:bg-error-primary",
87
+ info: "hover:bg-utility-blue-50 data-[loading]:bg-utility-blue-50"
88
+ };
57
89
  var ACCENT = {
58
90
  neutral: "text-utility-neutral-500",
59
91
  brand: "text-utility-brand-500",
@@ -79,6 +111,6 @@ var DISMISS = {
79
111
  info: "text-utility-blue-600 hover:text-utility-blue-700 hover:bg-utility-blue-100"
80
112
  };
81
113
 
82
- export { ACCENT, BOXED_BOX, BOX_RING, DISMISS, FG, GLYPH, OUTLINE, SEMANTIC_COLORS, SOLID, SOLID_BOX, SOLID_GLOSS, SOLID_HOVER, SUBTLE, isSemanticColor };
83
- //# sourceMappingURL=chunk-6IUTVDNI.js.map
84
- //# sourceMappingURL=chunk-6IUTVDNI.js.map
114
+ export { ACCENT, BOXED_BOX, BOX_RING, DISMISS, FG, FG_HOVER, FILL, GLYPH, OUTLINE, SEMANTIC_COLORS, SOLID, SOLID_BOX, SOLID_GLOSS, SOLID_HOVER, SUBTLE, WASH, WASH_HOVER, isSemanticColor };
115
+ //# sourceMappingURL=chunk-MCQG4H6T.js.map
116
+ //# sourceMappingURL=chunk-MCQG4H6T.js.map
@@ -1,18 +1,21 @@
1
- import { useTagInput, TAG_PILL_FOCUS_RING } from './chunk-VH35QHD4.js';
2
- import { Tag } from './chunk-EDT5J5WK.js';
3
- import { useTagRow } from './chunk-6HJA7NPL.js';
4
- import { FieldShell } from './chunk-JUWDRRD6.js';
5
- import { useFieldValidity, FieldFrame } from './chunk-QKDEQFOQ.js';
1
+ import { TAG_INPUT_LABELS, useTagInput, TAG_PILL_FOCUS_RING } from './chunk-QHH6AUR3.js';
2
+ import { Tag } from './chunk-LYXPJERB.js';
3
+ import { useTagRow } from './chunk-6H4LNWQ7.js';
4
+ import { FieldShell } from './chunk-X2VMIBK5.js';
5
+ import { useFieldValidity, FieldFrame } from './chunk-5KSD4WKN.js';
6
6
  import { cn } from './chunk-ZSNJ6UA3.js';
7
+ import { useLabels } from './chunk-RJTVCA62.js';
7
8
  import { Field } from '@base-ui/react/field';
8
9
  import 'react';
9
10
  import { jsxs, jsx } from 'react/jsx-runtime';
10
11
 
11
12
  var PILL_SIZE = { sm: "sm", md: "md", lg: "md" };
12
13
  function TagInputOuter(props) {
14
+ const t = useLabels("tagInput", TAG_INPUT_LABELS, props.labels);
13
15
  const {
14
16
  size = "md",
15
- placeholder = "Add tag\u2026",
17
+ placeholder = t.placeholder,
18
+ labels: _labels,
16
19
  label,
17
20
  tooltip,
18
21
  tooltipDescription,
@@ -111,5 +114,5 @@ function TagInputOuter(props) {
111
114
  }
112
115
 
113
116
  export { TagInputOuter };
114
- //# sourceMappingURL=chunk-JYBGO6GY.js.map
115
- //# sourceMappingURL=chunk-JYBGO6GY.js.map
117
+ //# sourceMappingURL=chunk-MVG5MABV.js.map
118
+ //# sourceMappingURL=chunk-MVG5MABV.js.map
@@ -1,16 +1,13 @@
1
- import { SOLID } from './chunk-6IUTVDNI.js';
2
- import { SEAMLESS_DOT } from './chunk-TBN644IN.js';
1
+ import { FILL, SOLID } from './chunk-MCQG4H6T.js';
2
+ import { SEAMLESS_DOT } from './chunk-7ZM7SNCZ.js';
3
3
  import { cn } from './chunk-ZSNJ6UA3.js';
4
4
  import * as React from 'react';
5
5
  import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
6
6
 
7
7
  var DOT_FILL = {
8
+ ...FILL,
8
9
  neutral: "bg-border-primary",
9
- brand: "bg-brand-solid",
10
- success: "bg-fg-success-secondary",
11
- warning: "bg-warning-solid",
12
- error: "bg-error-solid",
13
- info: "bg-utility-blue-500"
10
+ success: "bg-fg-success-secondary"
14
11
  };
15
12
  var DOT_SIZE = { sm: "size-2", md: "size-2.5", lg: "size-3" };
16
13
  var BOX_SIZE = { sm: "size-3.5", md: "size-4", lg: "size-5" };
@@ -111,5 +108,5 @@ function Indicator(props) {
111
108
  Indicator.displayName = "Indicator";
112
109
 
113
110
  export { Indicator };
114
- //# sourceMappingURL=chunk-PXEJ5RKO.js.map
115
- //# sourceMappingURL=chunk-PXEJ5RKO.js.map
111
+ //# sourceMappingURL=chunk-N3RVMBPX.js.map
112
+ //# sourceMappingURL=chunk-N3RVMBPX.js.map
@@ -1,4 +1,4 @@
1
- import { toUploadFile } from './chunk-HSVBTIP2.js';
1
+ import { toUploadFile } from './chunk-HHYEAFCL.js';
2
2
  import { warnPositiveInt, devWarn } from './chunk-QDYE5LVT.js';
3
3
  import * as React from 'react';
4
4
 
@@ -184,5 +184,5 @@ function useUploads({ transport, batchSize = 1, concurrency = 3 }) {
184
184
  }
185
185
 
186
186
  export { reduceUpload, splitBatchProgress, useUploads };
187
- //# sourceMappingURL=chunk-VWGAMOSE.js.map
188
- //# sourceMappingURL=chunk-VWGAMOSE.js.map
187
+ //# sourceMappingURL=chunk-NKG4N6HA.js.map
188
+ //# sourceMappingURL=chunk-NKG4N6HA.js.map
@@ -1,10 +1,10 @@
1
- import { BOXED_BOX, BOX_RING, SOLID, SOLID_HOVER, SOLID_BOX, SOLID_GLOSS } from './chunk-6IUTVDNI.js';
1
+ import { FG_HOVER, WASH_HOVER, BOXED_BOX, BOX_RING, SOLID, SOLID_HOVER, SOLID_BOX, SOLID_GLOSS } from './chunk-MCQG4H6T.js';
2
2
  import { overflowClasses } from './chunk-DWKILXHE.js';
3
- import { useSeamlessSlot, SEAMLESS_CONTROL, SEAMLESS_INHERIT_FG, SEAMLESS_FILL_COUPLED_FG } from './chunk-TBN644IN.js';
3
+ import { useSeamlessSlot, SEAMLESS_CONTROL, SEAMLESS_INHERIT_FG, SEAMLESS_FILL_COUPLED_FG } from './chunk-7ZM7SNCZ.js';
4
4
  import { Slot } from './chunk-52IFGFTL.js';
5
5
  import { LoaderCircleIcon } from './chunk-BLIZ3CL3.js';
6
- import { warnNeedsName } from './chunk-QDYE5LVT.js';
7
6
  import { cn } from './chunk-ZSNJ6UA3.js';
7
+ import { warnNeedsName } from './chunk-QDYE5LVT.js';
8
8
  import { mergeProps } from '@base-ui/react/merge-props';
9
9
  import { useRender } from '@base-ui/react/use-render';
10
10
  import 'react';
@@ -13,40 +13,10 @@ import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
13
13
  var BASE_CORE = "relative inline-flex items-center justify-center font-semibold cursor-pointer transition duration-100 ease-linear [&_svg]:shrink-0 [&_svg]:transition-colors [&_svg]:duration-100 [&_svg]:ease-linear";
14
14
  var FOCUS_OUTSET = "outline-focus-ring focus-visible:outline-2 focus-visible:outline-offset-2";
15
15
  var FOCUS_INSET = "outline-focus-ring focus-visible:outline-2 focus-visible:-outline-offset-2";
16
- var ICON_SOLID = "[&_svg]:text-fg-white/60 hover:[&_svg]:text-fg-white/70";
17
- var BOX_ICON = {
18
- neutral: "[&_svg]:text-fg-quaternary hover:[&_svg]:text-fg-quaternary_hover",
19
- brand: "[&_svg]:text-fg-brand-secondary hover:[&_svg]:text-fg-brand-secondary_hover",
20
- success: "[&_svg]:text-utility-green-500 hover:[&_svg]:text-utility-green-700",
21
- warning: "[&_svg]:text-utility-amber-500 hover:[&_svg]:text-utility-amber-700",
22
- error: "[&_svg]:text-fg-error-secondary hover:[&_svg]:text-error-primary",
23
- info: "[&_svg]:text-utility-blue-500 hover:[&_svg]:text-utility-blue-700"
24
- };
25
16
  var FOCUS_TONE = { error: "outline-focus-ring-error" };
26
- var SECONDARY_TEXT = {
27
- neutral: "text-secondary hover:text-secondary_hover",
28
- brand: "text-brand-secondary hover:text-brand-secondary_hover",
29
- success: "text-success-primary hover:text-utility-green-700",
30
- warning: "text-warning-primary hover:text-utility-amber-700",
31
- error: "text-error-primary hover:text-utility-red-700",
32
- info: "text-utility-blue-600 hover:text-utility-blue-700"
33
- };
34
- var GHOST_TEXT = {
35
- neutral: "text-tertiary hover:text-secondary",
36
- brand: "text-brand-secondary hover:text-brand-secondary_hover",
37
- success: "text-success-primary hover:text-utility-green-700",
38
- warning: "text-warning-primary hover:text-utility-amber-700",
39
- error: "text-error-primary hover:text-utility-red-700",
40
- info: "text-utility-blue-600 hover:text-utility-blue-700"
41
- };
42
- var SOFT_WASH = {
43
- neutral: "hover:bg-secondary data-[loading]:bg-secondary",
44
- brand: "hover:bg-brand-primary data-[loading]:bg-brand-primary",
45
- success: "hover:bg-success-primary data-[loading]:bg-success-primary",
46
- warning: "hover:bg-warning-primary data-[loading]:bg-warning-primary",
47
- error: "hover:bg-error-primary data-[loading]:bg-error-primary",
48
- info: "hover:bg-utility-blue-50 data-[loading]:bg-utility-blue-50"
49
- };
17
+ var SECONDARY_TEXT = { ...FG_HOVER, neutral: "text-secondary hover:text-secondary_hover" };
18
+ var GHOST_TEXT = FG_HOVER;
19
+ var SOFT_WASH = WASH_HOVER;
50
20
  var LINK_BASE = "group justify-normal rounded-sm";
51
21
  var DEFAULT_COLOR = {
52
22
  primary: "brand",
@@ -57,28 +27,20 @@ var DEFAULT_COLOR = {
57
27
  function variantClasses(variant, color) {
58
28
  switch (variant) {
59
29
  case "primary": {
60
- return cn(SOLID[color], SOLID_HOVER[color], SOLID_BOX, FOCUS_TONE[color], ICON_SOLID, SOLID_GLOSS);
30
+ return cn(SOLID[color], SOLID_HOVER[color], SOLID_BOX, FOCUS_TONE[color], SOLID_GLOSS);
61
31
  }
62
32
  case "secondary": {
63
- return cn(BOXED_BOX, BOX_RING[color], SECONDARY_TEXT[color], SOFT_WASH[color], FOCUS_TONE[color], BOX_ICON[color]);
33
+ return cn(BOXED_BOX, BOX_RING[color], SECONDARY_TEXT[color], SOFT_WASH[color], FOCUS_TONE[color]);
64
34
  }
65
35
  case "tertiary": {
66
- return cn(GHOST_TEXT[color], SOFT_WASH[color], FOCUS_TONE[color], BOX_ICON[color]);
36
+ return cn(GHOST_TEXT[color], SOFT_WASH[color], FOCUS_TONE[color]);
67
37
  }
68
38
  case "link": {
69
- return cn(LINK_BASE, GHOST_TEXT[color], FOCUS_TONE[color], BOX_ICON[color]);
39
+ return cn(LINK_BASE, GHOST_TEXT[color], FOCUS_TONE[color]);
70
40
  }
71
41
  }
72
42
  }
73
- var LINK_LABEL_BASE = "underline decoration-transparent transition-colors duration-100 ease-linear";
74
- var LINK_LABEL = {
75
- neutral: cn(LINK_LABEL_BASE, "group-hover:decoration-fg-quaternary"),
76
- brand: cn(LINK_LABEL_BASE, "group-hover:decoration-fg-brand-secondary"),
77
- success: cn(LINK_LABEL_BASE, "underline-offset-2 group-hover:decoration-current"),
78
- warning: cn(LINK_LABEL_BASE, "underline-offset-2 group-hover:decoration-current"),
79
- error: cn(LINK_LABEL_BASE, "underline-offset-2 group-hover:decoration-current"),
80
- info: cn(LINK_LABEL_BASE, "underline-offset-2 group-hover:decoration-current")
81
- };
43
+ var LINK_LABEL = cn("underline decoration-transparent transition-colors duration-100 ease-linear", "underline-offset-2 group-hover:decoration-current");
82
44
  var XS_ICON = "[&>svg]:size-4 [&>svg]:[stroke-width:2.25px]";
83
45
  var SLOT_ICON = {
84
46
  xs: "[&>svg]:size-4 [&>svg]:[stroke-width:2.25px]",
@@ -169,7 +131,7 @@ function Button(props) {
169
131
  fullWidth && "w-full",
170
132
  className
171
133
  );
172
- const label = iconOnly ? /* @__PURE__ */ jsx("span", { className: "sr-only", children }) : isLinkType ? /* @__PURE__ */ jsx("span", { className: cn(LINK_LABEL[effColor], ovf.label, hideContent && "invisible"), children }) : /* @__PURE__ */ jsx("span", { className: cn(!noTextPadding && "px-0.5", ovf.label, hideContent && "invisible"), children });
134
+ const label = iconOnly ? /* @__PURE__ */ jsx("span", { className: "sr-only", children }) : isLinkType ? /* @__PURE__ */ jsx("span", { className: cn(LINK_LABEL, ovf.label, hideContent && "invisible"), children }) : /* @__PURE__ */ jsx("span", { className: cn(!noTextPadding && "px-0.5", ovf.label, hideContent && "invisible"), children });
173
135
  const content = /* @__PURE__ */ jsxs(Fragment, { children: [
174
136
  inlineSpinner ? /* @__PURE__ */ jsx(Glyph, { children: /* @__PURE__ */ jsx(LoaderCircleIcon, { className: cn(SPINNER_SIZE[effSize], "animate-spin") }) }) : leading ? /* @__PURE__ */ jsx(Slot, { className: cn(SLOT_ICON[effSize], hideContent && "invisible"), children: leading }) : null,
175
137
  hideContent ? /* @__PURE__ */ jsx(LoaderCircleIcon, { className: cn(SPINNER_SIZE[effSize], "absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 animate-spin") }) : null,
@@ -196,5 +158,5 @@ function Button(props) {
196
158
  }
197
159
 
198
160
  export { Button };
199
- //# sourceMappingURL=chunk-A5WQLN4B.js.map
200
- //# sourceMappingURL=chunk-A5WQLN4B.js.map
161
+ //# sourceMappingURL=chunk-OACWA4TC.js.map
162
+ //# sourceMappingURL=chunk-OACWA4TC.js.map