@nexub/react 1.5.1 → 1.7.0

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 (207) hide show
  1. package/dist/chunk-24ZFAXB2.js +101 -0
  2. package/dist/{chunk-XR4NBY54.js → chunk-2DYKENBM.js} +10 -10
  3. package/dist/{chunk-SVQCINRE.js → chunk-2I7FIU6R.js} +5 -2
  4. package/dist/{chunk-S46W2QER.js → chunk-37L5ERUJ.js} +17 -11
  5. package/dist/{chunk-CWS37T3K.js → chunk-3E7X3YK3.js} +4 -2
  6. package/dist/{chunk-EZ23IA3H.js → chunk-3LTB6TGN.js} +4 -4
  7. package/dist/chunk-3QD76BKT.js +80 -0
  8. package/dist/{chunk-PQ6GU7SG.js → chunk-4HQFOIZW.js} +20 -14
  9. package/dist/{chunk-RLE5RN3T.js → chunk-4NFUBFYK.js} +15 -11
  10. package/dist/{chunk-B54WADL4.js → chunk-4P2JJ2FH.js} +12 -12
  11. package/dist/{chunk-I4BHRVRL.js → chunk-4UBVU53C.js} +9 -5
  12. package/dist/chunk-52ZVJPF7.js +1 -0
  13. package/dist/chunk-5QEARXY3.js +55 -0
  14. package/dist/chunk-643EYCLL.js +54 -0
  15. package/dist/{chunk-CNNJFWFA.js → chunk-6BGUZQAX.js} +4 -4
  16. package/dist/{chunk-LDYD7WL3.js → chunk-6ECOCGZG.js} +4 -3
  17. package/dist/{chunk-3AXIMXDU.js → chunk-6JBQAJJD.js} +6 -12
  18. package/dist/{chunk-YRDCY6BI.js → chunk-6UKNUI46.js} +0 -19
  19. package/dist/chunk-77LYWSJW.js +85 -0
  20. package/dist/{chunk-NCRFKPA4.js → chunk-7MSIOYJZ.js} +6 -8
  21. package/dist/{chunk-GIGOTRXX.js → chunk-7VJABRKB.js} +3 -10
  22. package/dist/{chunk-6QLLH6ID.js → chunk-7XWJCFWI.js} +8 -17
  23. package/dist/chunk-A3O23F2B.js +1 -0
  24. package/dist/chunk-AGYGWU6C.js +88 -0
  25. package/dist/chunk-AT2DSFP3.js +47 -0
  26. package/dist/{chunk-IIPYF6ZQ.js → chunk-B254JXS7.js} +16 -13
  27. package/dist/{chunk-GRB6T2TT.js → chunk-BSL62LBX.js} +19 -13
  28. package/dist/{chunk-GHCV6UXG.js → chunk-BTYDDKRQ.js} +5 -5
  29. package/dist/chunk-C6JRJ6JW.js +167 -0
  30. package/dist/chunk-CAOLGXA5.js +1 -0
  31. package/dist/{chunk-OJ2TLWYD.js → chunk-CKFRMCZ7.js} +5 -3
  32. package/dist/{chunk-LZB3KTSH.js → chunk-CQWYZPPJ.js} +1 -1
  33. package/dist/{chunk-6RBNM5RO.js → chunk-CUOASXI7.js} +10 -10
  34. package/dist/{chunk-HG6HTUWU.js → chunk-CV5ZKED7.js} +2 -2
  35. package/dist/{chunk-HJERFB7J.js → chunk-DDRYT3SY.js} +2 -2
  36. package/dist/chunk-DGCAM2UJ.js +60 -0
  37. package/dist/{chunk-FD7YU53N.js → chunk-DT3QGFXB.js} +4 -4
  38. package/dist/chunk-F73DTG2V.js +123 -0
  39. package/dist/{chunk-Z3IG5WRA.js → chunk-FJUVYRNT.js} +3 -3
  40. package/dist/{chunk-KQPLFVFR.js → chunk-FLZD7HQY.js} +0 -2
  41. package/dist/chunk-GG54WBLA.js +134 -0
  42. package/dist/{chunk-64JDZWCV.js → chunk-GRKCUQG4.js} +6 -5
  43. package/dist/{chunk-YPHNHQYQ.js → chunk-GWDEKW7P.js} +6 -2
  44. package/dist/{chunk-4I5ULCYG.js → chunk-HFTS5AN7.js} +3 -3
  45. package/dist/{chunk-GUB7YKG2.js → chunk-I4U36P54.js} +6 -3
  46. package/dist/{chunk-BTRTORKU.js → chunk-I6CAF7C5.js} +6 -7
  47. package/dist/{chunk-TJCHA3OI.js → chunk-J65MK3N4.js} +7 -4
  48. package/dist/{chunk-IK23Q2OF.js → chunk-JHVYI5GK.js} +3 -3
  49. package/dist/{chunk-J6TU45KP.js → chunk-JSBNYRO4.js} +26 -12
  50. package/dist/chunk-K5FKEAAK.js +94 -0
  51. package/dist/{chunk-5URGARPH.js → chunk-KE4YVG5Q.js} +6 -10
  52. package/dist/{chunk-QCNLE27O.js → chunk-KRCLK5O4.js} +11 -7
  53. package/dist/{chunk-A4IMFAZX.js → chunk-LESI7J7B.js} +3 -3
  54. package/dist/chunk-MLT7SA3T.js +171 -0
  55. package/dist/chunk-MNEXMMLM.js +23 -0
  56. package/dist/{chunk-PVTACENM.js → chunk-MTK3GHDQ.js} +2 -2
  57. package/dist/chunk-MYP5ZTC3.js +169 -0
  58. package/dist/chunk-NA5UMOE5.js +55 -0
  59. package/dist/chunk-NAJKIBU2.js +163 -0
  60. package/dist/{chunk-WESZPFBZ.js → chunk-NERAWEIQ.js} +7 -4
  61. package/dist/{chunk-YJ3JQYAN.js → chunk-NGQKBDHA.js} +5 -13
  62. package/dist/{chunk-7Q7ZF6BY.js → chunk-NNIFOMIH.js} +18 -8
  63. package/dist/{chunk-7L3CGIRA.js → chunk-NQPGELMP.js} +8 -19
  64. package/dist/{chunk-5O34ZNC3.js → chunk-NYWD5SI4.js} +19 -13
  65. package/dist/chunk-NZR4UGUZ.js +143 -0
  66. package/dist/{chunk-6J3QTWKC.js → chunk-NZT4TTNV.js} +18 -9
  67. package/dist/{chunk-JSD3H7WV.js → chunk-OYCK6BRG.js} +6 -6
  68. package/dist/{chunk-2555JXCP.js → chunk-PBPUSRTJ.js} +19 -11
  69. package/dist/{chunk-QD7H3WV3.js → chunk-PGDXFBKT.js} +8 -8
  70. package/dist/{chunk-NIX4SEKM.js → chunk-PREMZMLU.js} +7 -4
  71. package/dist/{chunk-4SSUM4CL.js → chunk-QUNH4BFR.js} +9 -6
  72. package/dist/{chunk-FHFVBOF3.js → chunk-QUYOV2ZJ.js} +6 -4
  73. package/dist/{chunk-KM6Z3VTI.js → chunk-QVTVDL6Y.js} +1 -1
  74. package/dist/{chunk-XI63BK3S.js → chunk-RATKKN3F.js} +3 -3
  75. package/dist/chunk-RM7MTOT5.js +339 -0
  76. package/dist/{chunk-DJZZ3FIP.js → chunk-RUR57JZQ.js} +5 -14
  77. package/dist/{chunk-ZV3AF5CL.js → chunk-S2CTBFLN.js} +13 -2
  78. package/dist/{chunk-72I7EVOL.js → chunk-SYZADSLI.js} +10 -6
  79. package/dist/{chunk-W2NEXOTG.js → chunk-T7RLPFGX.js} +2 -2
  80. package/dist/chunk-TAVVXXGO.js +131 -0
  81. package/dist/{chunk-BFRX6X4O.js → chunk-TZ6KJIR4.js} +23 -17
  82. package/dist/{chunk-V3TETH4J.js → chunk-U2ZYPPRG.js} +17 -16
  83. package/dist/{chunk-AHT35UWY.js → chunk-UTLKZPKJ.js} +10 -6
  84. package/dist/{chunk-OJRSPDNJ.js → chunk-VD4RFTNV.js} +8 -14
  85. package/dist/chunk-VLQGQFW7.js +110 -0
  86. package/dist/{chunk-RTDUTWJ4.js → chunk-VMT7Y3AT.js} +5 -8
  87. package/dist/{chunk-AXOKFS4K.js → chunk-W3KO3JNZ.js} +20 -4
  88. package/dist/{chunk-LGQ737BP.js → chunk-WHTLXQB6.js} +1 -1
  89. package/dist/chunk-WLRRMT6W.js +1 -0
  90. package/dist/{chunk-2FCSWBSM.js → chunk-WMWX6DPB.js} +3 -3
  91. package/dist/{chunk-UMC64NCT.js → chunk-WVBGQCYC.js} +6 -3
  92. package/dist/{chunk-TEOLG3N2.js → chunk-X4BQHXLB.js} +10 -6
  93. package/dist/{chunk-SY6V3HAK.js → chunk-XDU27NRX.js} +3 -3
  94. package/dist/{chunk-KA2J5OBA.js → chunk-XQDD76EF.js} +4 -7
  95. package/dist/chunk-XTATJMY6.js +64 -0
  96. package/dist/chunk-XYXMPHND.js +1 -0
  97. package/dist/{chunk-7ZWBHHRK.js → chunk-YNU6VRD5.js} +23 -32
  98. package/dist/{chunk-6SJPVQQW.js → chunk-Z3HF6XJ3.js} +1 -1
  99. package/dist/{chunk-I4URNMI7.js → chunk-ZC4MZAEX.js} +9 -7
  100. package/dist/{chunk-PWBPHGM3.js → chunk-ZCEUVK2R.js} +2 -2
  101. package/dist/{chunk-NQVRF4RB.js → chunk-ZMJ54TG6.js} +16 -13
  102. package/dist/chunk-ZT3NWE5U.js +1 -0
  103. package/dist/{chunk-RHOYF7MO.js → chunk-ZTLALVWA.js} +6 -15
  104. package/dist/components/Accordion/index.js +1 -1
  105. package/dist/components/Alert/index.js +2 -1
  106. package/dist/components/AlertDialog/index.js +3 -3
  107. package/dist/components/Amount/index.js +3 -1
  108. package/dist/components/AspectRatio/index.js +1 -1
  109. package/dist/components/Autocomplete/index.js +3 -2
  110. package/dist/components/Avatar/index.js +1 -1
  111. package/dist/components/AvatarGroup/index.js +3 -2
  112. package/dist/components/Badge/index.js +1 -1
  113. package/dist/components/Banner/index.js +2 -1
  114. package/dist/components/Breadcrumb/index.js +2 -1
  115. package/dist/components/Button/index.js +1 -1
  116. package/dist/components/ButtonGroup/index.js +1 -1
  117. package/dist/components/Callout/index.js +1 -1
  118. package/dist/components/Card/index.js +3 -1
  119. package/dist/components/CheckList/index.js +1 -1
  120. package/dist/components/Checkbox/index.js +1 -1
  121. package/dist/components/CheckboxCard/index.js +9 -0
  122. package/dist/components/Chip/index.js +2 -1
  123. package/dist/components/Citation/index.js +17 -0
  124. package/dist/components/Code/index.js +1 -1
  125. package/dist/components/Combobox/index.js +1 -1
  126. package/dist/components/CommandPalette/index.js +3 -2
  127. package/dist/components/ContextMenu/index.js +2 -2
  128. package/dist/components/CountryBadge/index.js +1 -1
  129. package/dist/components/DataTable/index.js +2 -1
  130. package/dist/components/DatePicker/index.js +5 -1
  131. package/dist/components/DateRangePicker/index.js +5 -1
  132. package/dist/components/Dialog/index.js +2 -2
  133. package/dist/components/Drawer/index.js +2 -2
  134. package/dist/components/DropdownMenu/index.js +2 -2
  135. package/dist/components/EmptyState/index.js +1 -1
  136. package/dist/components/ErrorState/index.js +2 -1
  137. package/dist/components/EyebrowChip/index.js +4 -1
  138. package/dist/components/FileUpload/index.js +2 -1
  139. package/dist/components/FilterChip/index.js +3 -1
  140. package/dist/components/Flex/index.js +2 -1
  141. package/dist/components/FormError/index.js +1 -1
  142. package/dist/components/FormField/index.js +7 -4
  143. package/dist/components/GradientDivider/index.js +1 -1
  144. package/dist/components/Grid/index.js +2 -1
  145. package/dist/components/Heading/index.js +4 -1
  146. package/dist/components/HelperText/index.js +4 -1
  147. package/dist/components/HoverCard/index.js +3 -2
  148. package/dist/components/IconButton/index.js +2 -1
  149. package/dist/components/Input/index.js +1 -1
  150. package/dist/components/Kbd/index.js +1 -1
  151. package/dist/components/KeyboardShortcut/index.js +2 -2
  152. package/dist/components/Label/index.js +4 -1
  153. package/dist/components/Link/index.js +1 -1
  154. package/dist/components/Logo/index.js +1 -1
  155. package/dist/components/MediaCard/index.js +9 -0
  156. package/dist/components/Menubar/index.js +2 -2
  157. package/dist/components/MessageBubble/index.js +18 -0
  158. package/dist/components/MoneyInput/index.js +3 -2
  159. package/dist/components/NavigationMenu/index.js +2 -2
  160. package/dist/components/NavigationRail/index.js +2 -1
  161. package/dist/components/NexubProvider/index.js +14 -0
  162. package/dist/components/NumberInput/index.js +3 -2
  163. package/dist/components/NumberTicker/index.js +10 -0
  164. package/dist/components/PageHeader/index.js +1 -1
  165. package/dist/components/Pagination/index.js +3 -1
  166. package/dist/components/PasswordInput/index.js +3 -2
  167. package/dist/components/Popover/index.js +2 -2
  168. package/dist/components/Progress/index.js +2 -1
  169. package/dist/components/PromptInput/index.js +15 -0
  170. package/dist/components/RadioCard/index.js +11 -0
  171. package/dist/components/RadioGroup/index.js +1 -1
  172. package/dist/components/Rating/index.js +2 -1
  173. package/dist/components/ScrollArea/index.js +1 -1
  174. package/dist/components/SearchInput/index.js +3 -2
  175. package/dist/components/Section/index.js +1 -1
  176. package/dist/components/SegmentedControl/index.js +3 -2
  177. package/dist/components/Select/index.js +2 -2
  178. package/dist/components/Separator/index.js +1 -1
  179. package/dist/components/Sidebar/index.js +2 -1
  180. package/dist/components/Skeleton/index.js +1 -1
  181. package/dist/components/Spinner/index.js +2 -1
  182. package/dist/components/SplitButton/index.js +5 -5
  183. package/dist/components/Stack/index.js +2 -1
  184. package/dist/components/StatusPill/index.js +1 -1
  185. package/dist/components/StreamingText/index.js +8 -0
  186. package/dist/components/Switch/index.js +1 -1
  187. package/dist/components/Table/index.js +1 -1
  188. package/dist/components/Tabs/index.js +3 -2
  189. package/dist/components/Tag/index.js +1 -1
  190. package/dist/components/Text/index.js +1 -1
  191. package/dist/components/Textarea/index.js +1 -1
  192. package/dist/components/ThinkingIndicator/index.js +9 -0
  193. package/dist/components/Toast/index.js +3 -1
  194. package/dist/components/Tooltip/index.js +2 -1
  195. package/dist/components/TopNav/index.js +2 -1
  196. package/dist/index.d.ts +440 -24
  197. package/dist/index.js +225 -146
  198. package/package.json +52 -50
  199. package/dist/chunk-63DPMUMR.js +0 -67
  200. package/dist/chunk-CHGPGRML.js +0 -115
  201. package/dist/chunk-H2W7IYVY.js +0 -155
  202. package/dist/chunk-J2T4GFFS.js +0 -85
  203. package/dist/chunk-LH3BSAIS.js +0 -119
  204. package/dist/chunk-LMPGHWUA.js +0 -114
  205. package/dist/chunk-NMH5WSZG.js +0 -72
  206. package/dist/chunk-P44EROBX.js +0 -55
  207. package/dist/chunk-TYTW4F3B.js +0 -178
@@ -0,0 +1,134 @@
1
+ 'use client';
2
+ import {
3
+ Provider,
4
+ Tooltip
5
+ } from "./chunk-XQDD76EF.js";
6
+ import {
7
+ useControllableState
8
+ } from "./chunk-JLUCMNVS.js";
9
+ import {
10
+ IconButton
11
+ } from "./chunk-CQWYZPPJ.js";
12
+ import {
13
+ useNexubMessages
14
+ } from "./chunk-24ZFAXB2.js";
15
+ import {
16
+ cn
17
+ } from "./chunk-Q7G5WGYV.js";
18
+
19
+ // src/components/MessageBubble/MessageBubble.tsx
20
+ import * as React from "react";
21
+ import { Copy, RefreshCw, ThumbsDown, ThumbsUp } from "@nexub/icons";
22
+ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
23
+ var defaultMessageStrings = {
24
+ youSaid: "You said",
25
+ assistantSaid: "Assistant said",
26
+ failedToSend: "Failed to send",
27
+ retry: "Retry",
28
+ copy: "Copy",
29
+ copied: "Copied",
30
+ goodResponse: "Good response",
31
+ badResponse: "Bad response",
32
+ regenerate: "Regenerate"
33
+ };
34
+ var MessageBubble = React.forwardRef(
35
+ ({ from, avatar, name, status, onRetry, messages, className, children, ...props }, ref) => {
36
+ const m = { ...useNexubMessages(), ...messages };
37
+ const label = name ?? (from === "user" ? m.youSaid : from === "assistant" ? m.assistantSaid : void 0);
38
+ const error = status === "error" && /* @__PURE__ */ jsxs("p", { role: "alert", className: "mt-1 flex items-center gap-2 text-label-sm text-[var(--color-error)]", children: [
39
+ m.failedToSend,
40
+ onRetry && /* @__PURE__ */ jsx(
41
+ "button",
42
+ {
43
+ type: "button",
44
+ onClick: onRetry,
45
+ className: "nx-state-layer rounded-shape-min px-1 font-medium text-[var(--color-primary)] underline-offset-2 hover:underline",
46
+ children: m.retry
47
+ }
48
+ )
49
+ ] });
50
+ return /* @__PURE__ */ jsx(
51
+ "article",
52
+ {
53
+ ref,
54
+ "aria-label": label,
55
+ "aria-busy": status === "sending" || void 0,
56
+ "data-from": from,
57
+ className: cn(
58
+ "group flex w-full",
59
+ from === "user" && "flex-col items-end",
60
+ from === "assistant" && "items-start gap-3",
61
+ from === "system" && "justify-center text-center text-label-sm text-[var(--color-on-surface-muted)]",
62
+ className
63
+ ),
64
+ ...props,
65
+ children: from === "user" ? /* @__PURE__ */ jsxs(Fragment, { children: [
66
+ /* @__PURE__ */ jsx("div", { className: "max-w-[85%] whitespace-pre-wrap break-words rounded-shape-container rounded-ee-[6px] bg-[var(--color-primary-container)] px-4 py-2.5 text-body-md text-[var(--color-on-primary-container)]", children }),
67
+ error
68
+ ] }) : from === "assistant" ? /* @__PURE__ */ jsxs(Fragment, { children: [
69
+ avatar && /* @__PURE__ */ jsx("div", { className: "shrink-0", children: avatar }),
70
+ /* @__PURE__ */ jsxs("div", { className: "min-w-0 flex-1 text-body-md text-[var(--color-on-surface)]", children: [
71
+ children,
72
+ error
73
+ ] })
74
+ ] }) : /* @__PURE__ */ jsxs("div", { children: [
75
+ children,
76
+ error
77
+ ] })
78
+ }
79
+ );
80
+ }
81
+ );
82
+ MessageBubble.displayName = "MessageBubble";
83
+ var MessageActions = React.forwardRef(
84
+ ({ text = "", copy = true, feedback: feedbackProp, defaultFeedback = null, onFeedback, onRegenerate, messages, className, ...props }, ref) => {
85
+ const m = { ...useNexubMessages(), ...messages };
86
+ const [feedback, setFeedback] = useControllableState({
87
+ value: feedbackProp,
88
+ defaultValue: defaultFeedback,
89
+ onChange: onFeedback
90
+ });
91
+ const [copied, setCopied] = React.useState(false);
92
+ const timer = React.useRef(void 0);
93
+ React.useEffect(() => () => clearTimeout(timer.current), []);
94
+ const onCopy = async () => {
95
+ try {
96
+ await navigator.clipboard.writeText(text);
97
+ } catch {
98
+ return;
99
+ }
100
+ setCopied(true);
101
+ clearTimeout(timer.current);
102
+ timer.current = setTimeout(() => setCopied(false), 1500);
103
+ };
104
+ const toggle = (value) => setFeedback(feedback === value ? null : value);
105
+ return /* @__PURE__ */ jsx(Provider, { children: /* @__PURE__ */ jsxs(
106
+ "div",
107
+ {
108
+ ref,
109
+ className: cn(
110
+ "mt-1 flex items-center gap-0.5 transition-opacity duration-effects-fast ease-effects-fast",
111
+ "[@media(hover:hover)]:opacity-0 group-hover:opacity-100 group-focus-within:opacity-100",
112
+ className
113
+ ),
114
+ ...props,
115
+ children: [
116
+ copy && /* @__PURE__ */ jsx(Tooltip, { label: copied ? m.copied : m.copy, children: /* @__PURE__ */ jsx(IconButton, { size: "sm", label: m.copy, onClick: onCopy, children: copied ? /* @__PURE__ */ jsx("svg", { className: "h-4 w-4", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: /* @__PURE__ */ jsx("path", { className: "nx-check-draw", pathLength: 1, d: "M20 6 9 17l-5-5" }) }) : /* @__PURE__ */ jsx(Copy, { size: "sm", "aria-hidden": "true" }) }) }),
117
+ onFeedback && /* @__PURE__ */ jsxs(Fragment, { children: [
118
+ /* @__PURE__ */ jsx(Tooltip, { label: m.goodResponse, children: /* @__PURE__ */ jsx(IconButton, { size: "sm", label: m.goodResponse, "aria-pressed": feedback === "up", onClick: () => toggle("up"), children: /* @__PURE__ */ jsx(ThumbsUp, { size: "sm", "aria-hidden": "true", className: cn(feedback === "up" && "text-[var(--color-primary)]") }) }) }),
119
+ /* @__PURE__ */ jsx(Tooltip, { label: m.badResponse, children: /* @__PURE__ */ jsx(IconButton, { size: "sm", label: m.badResponse, "aria-pressed": feedback === "down", onClick: () => toggle("down"), children: /* @__PURE__ */ jsx(ThumbsDown, { size: "sm", "aria-hidden": "true", className: cn(feedback === "down" && "text-[var(--color-primary)]") }) }) })
120
+ ] }),
121
+ onRegenerate && /* @__PURE__ */ jsx(Tooltip, { label: m.regenerate, children: /* @__PURE__ */ jsx(IconButton, { size: "sm", label: m.regenerate, onClick: onRegenerate, children: /* @__PURE__ */ jsx(RefreshCw, { size: "sm", "aria-hidden": "true" }) }) }),
122
+ /* @__PURE__ */ jsx("span", { role: "status", className: "sr-only", children: copied ? m.copied : "" })
123
+ ]
124
+ }
125
+ ) });
126
+ }
127
+ );
128
+ MessageActions.displayName = "MessageActions";
129
+
130
+ export {
131
+ defaultMessageStrings,
132
+ MessageBubble,
133
+ MessageActions
134
+ };
@@ -1,13 +1,13 @@
1
1
  'use client';
2
2
  import {
3
3
  DropdownMenu
4
- } from "./chunk-7L3CGIRA.js";
4
+ } from "./chunk-NQPGELMP.js";
5
5
  import {
6
6
  ButtonGroup
7
- } from "./chunk-LGQ737BP.js";
7
+ } from "./chunk-WHTLXQB6.js";
8
8
  import {
9
9
  Button
10
- } from "./chunk-LMPGHWUA.js";
10
+ } from "./chunk-C6JRJ6JW.js";
11
11
  import {
12
12
  cn
13
13
  } from "./chunk-Q7G5WGYV.js";
@@ -18,14 +18,15 @@ import { ChevronDown } from "@nexub/icons";
18
18
  import { jsx, jsxs } from "react/jsx-runtime";
19
19
  var SplitButton = React.forwardRef(
20
20
  ({ menuLabel, menu, align = "end", variant, size, tone, disabled, loading, className, ...props }, ref) => {
21
- const shared = { variant, size, tone, disabled: disabled || loading };
21
+ const shared = { variant, size, tone };
22
22
  return /* @__PURE__ */ jsxs(ButtonGroup, { attached: true, className, children: [
23
- /* @__PURE__ */ jsx(Button, { ref, ...shared, loading, ...props }),
23
+ /* @__PURE__ */ jsx(Button, { ref, ...shared, disabled, ...loading ? { loading: true } : {}, ...props }),
24
24
  /* @__PURE__ */ jsxs(DropdownMenu.Root, { modal: false, children: [
25
25
  /* @__PURE__ */ jsx(DropdownMenu.Trigger, { asChild: true, children: /* @__PURE__ */ jsx(
26
26
  Button,
27
27
  {
28
28
  ...shared,
29
+ disabled: disabled || loading,
29
30
  "aria-label": menuLabel,
30
31
  className: cn(
31
32
  "px-3",
@@ -4,13 +4,16 @@ import {
4
4
  } from "./chunk-JLUCMNVS.js";
5
5
  import {
6
6
  Input
7
- } from "./chunk-IK23Q2OF.js";
7
+ } from "./chunk-JHVYI5GK.js";
8
8
  import {
9
9
  currencySymbol,
10
10
  formatForDisplay,
11
11
  formatForEditing,
12
12
  parseMoney
13
13
  } from "./chunk-CIQHFMF6.js";
14
+ import {
15
+ useIntlLocale
16
+ } from "./chunk-24ZFAXB2.js";
14
17
  import {
15
18
  cn
16
19
  } from "./chunk-Q7G5WGYV.js";
@@ -19,7 +22,8 @@ import {
19
22
  import * as React from "react";
20
23
  import { jsx } from "react/jsx-runtime";
21
24
  var MoneyInput = React.forwardRef(
22
- ({ value: valueProp, defaultValue = null, onValueChange, currency, locale, onFocus, onBlur, className, ...props }, ref) => {
25
+ ({ value: valueProp, defaultValue = null, onValueChange, currency, locale: localeProp, onFocus, onBlur, className, ...props }, ref) => {
26
+ const locale = useIntlLocale(localeProp);
23
27
  const [value, setValue] = useControllableState({
24
28
  value: valueProp,
25
29
  defaultValue,
@@ -30,13 +30,13 @@ var CheckListItem = React.forwardRef(
30
30
  "li",
31
31
  {
32
32
  ref,
33
- className: cn("flex items-start gap-2 text-[var(--color-text-primary)]", className),
33
+ className: cn("flex items-start gap-2 text-[var(--color-on-surface)]", className),
34
34
  ...props,
35
35
  children: [
36
- /* @__PURE__ */ jsx("span", { className: "shrink-0 inline-flex items-center justify-center mt-0.5 h-4 w-4 rounded-full bg-[var(--color-semantic-success-default)]/10", children: /* @__PURE__ */ jsx(
36
+ /* @__PURE__ */ jsx("span", { className: "shrink-0 inline-flex items-center justify-center mt-0.5 h-4 w-4 rounded-full bg-[color-mix(in_srgb,var(--color-success)_10%,transparent)]", children: /* @__PURE__ */ jsx(
37
37
  Check,
38
38
  {
39
- className: "h-3 w-3 text-[var(--color-semantic-success-default)]",
39
+ className: "h-3 w-3 text-[var(--color-success)]",
40
40
  "aria-hidden": "true"
41
41
  }
42
42
  ) }),
@@ -6,7 +6,7 @@ import {
6
6
  // src/components/Checkbox/Checkbox.tsx
7
7
  import * as React from "react";
8
8
  import * as RadixCheckbox from "@radix-ui/react-checkbox";
9
- import { Check, Minus } from "@nexub/icons";
9
+ import { Minus } from "@nexub/icons";
10
10
  import { jsx } from "react/jsx-runtime";
11
11
  var Checkbox = React.forwardRef(
12
12
  ({ className, ...props }, ref) => /* @__PURE__ */ jsx(
@@ -15,7 +15,7 @@ var Checkbox = React.forwardRef(
15
15
  ref,
16
16
  className: cn(
17
17
  // 18px, 2px outline border (>= 3:1), primary when on. Focus = the global ring.
18
- "peer h-[18px] w-[18px] shrink-0 rounded-[5px] border-2 border-[var(--color-outline)]",
18
+ "nx-hit peer h-[18px] w-[18px] shrink-0 rounded-[5px] border-2 border-[var(--color-outline)]",
19
19
  "transition-[background-color,border-color] duration-effects-fast ease-effects-fast",
20
20
  "hover:border-[var(--color-on-surface)]",
21
21
  "data-[state=checked]:bg-[var(--color-primary)] data-[state=checked]:border-[var(--color-primary)] data-[state=checked]:text-[var(--color-on-primary)]",
@@ -24,7 +24,10 @@ var Checkbox = React.forwardRef(
24
24
  className
25
25
  ),
26
26
  ...props,
27
- children: /* @__PURE__ */ jsx(RadixCheckbox.Indicator, { className: "flex items-center justify-center", children: props.checked === "indeterminate" ? /* @__PURE__ */ jsx(Minus, { size: "xs" }) : /* @__PURE__ */ jsx(Check, { size: "xs" }) })
27
+ children: /* @__PURE__ */ jsx(RadixCheckbox.Indicator, { className: "flex items-center justify-center", children: props.checked === "indeterminate" ? /* @__PURE__ */ jsx(Minus, { size: "xs" }) : (
28
+ // Drawn inline so the stroke can draw itself in (nx-check-draw).
29
+ /* @__PURE__ */ jsx("svg", { width: "12", height: "12", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "3", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: /* @__PURE__ */ jsx("path", { className: "nx-check-draw", pathLength: 1, d: "M20 6 9 17l-5-5" }) })
30
+ ) })
28
31
  }
29
32
  )
30
33
  );
@@ -1,4 +1,7 @@
1
1
  'use client';
2
+ import {
3
+ layoutProps
4
+ } from "./chunk-VLQGQFW7.js";
2
5
  import {
3
6
  cn
4
7
  } from "./chunk-Q7G5WGYV.js";
@@ -34,12 +37,7 @@ var Stack = React.forwardRef(
34
37
  ...rest
35
38
  }, ref) => {
36
39
  const Comp = asChild ? Slot : "div";
37
- const inlineStyle = {
38
- ...gap !== void 0 ? { gap: typeof gap === "number" ? `${gap * 0.25}rem` : gap } : {},
39
- ...align ? { alignItems: align } : {},
40
- ...justify ? { justifyContent: justify } : {},
41
- ...style
42
- };
40
+ const layout = layoutProps({ gap, align, justify, style });
43
41
  const content = divider ? injectDividers(children, divider) : children;
44
42
  return /* @__PURE__ */ jsx(
45
43
  Comp,
@@ -47,11 +45,12 @@ var Stack = React.forwardRef(
47
45
  ref,
48
46
  className: cn(
49
47
  "flex",
48
+ layout.className,
50
49
  direction === "row" ? "flex-row" : "flex-col",
51
50
  wrap && "flex-wrap",
52
51
  className
53
52
  ),
54
- style: inlineStyle,
53
+ style: layout.style,
55
54
  ...rest,
56
55
  children: content
57
56
  }
@@ -1,7 +1,10 @@
1
1
  'use client';
2
2
  import {
3
3
  Input
4
- } from "./chunk-IK23Q2OF.js";
4
+ } from "./chunk-JHVYI5GK.js";
5
+ import {
6
+ useNexubMessages
7
+ } from "./chunk-24ZFAXB2.js";
5
8
  import {
6
9
  cn
7
10
  } from "./chunk-Q7G5WGYV.js";
@@ -22,6 +25,7 @@ var SearchInput = React.forwardRef(
22
25
  if (!controlled) setInternalValue(e.target.value);
23
26
  onChange?.(e);
24
27
  };
28
+ const messages = useNexubMessages();
25
29
  const handleClear = () => {
26
30
  if (!controlled) setInternalValue("");
27
31
  onClear?.();
@@ -31,10 +35,9 @@ var SearchInput = React.forwardRef(
31
35
  {
32
36
  type: "button",
33
37
  onClick: handleClear,
34
- "aria-label": "Clear search",
38
+ "aria-label": messages.clearSearch,
35
39
  className: cn(
36
- "shrink-0 text-[var(--color-text-muted)] hover:text-[var(--color-text-primary)] transition-colors",
37
- "focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-[var(--color-ring-default)] rounded"
40
+ "shrink-0 rounded-full text-[var(--color-on-surface-muted)] hover:text-[var(--color-on-surface)] transition-colors"
38
41
  ),
39
42
  children: /* @__PURE__ */ jsx(X, { className: "h-4 w-4", "aria-hidden": "true" })
40
43
  }
@@ -21,7 +21,7 @@ var inputVariants = cva(
21
21
  "border-0 shadow-none",
22
22
  "outline-none focus:outline-none focus-visible:outline-none",
23
23
  "ring-0 focus:ring-0 focus-visible:ring-0",
24
- "placeholder:text-[var(--color-text-placeholder)]",
24
+ "placeholder:text-[var(--color-on-surface-muted)]",
25
25
  "text-[var(--color-on-surface)]",
26
26
  "disabled:cursor-not-allowed disabled:text-[var(--color-text-disabled)]"
27
27
  ],
@@ -71,8 +71,8 @@ var addonVariants = cva(
71
71
  {
72
72
  variants: {
73
73
  side: {
74
- leading: "border-r",
75
- trailing: "border-l"
74
+ leading: "border-e",
75
+ trailing: "border-s"
76
76
  }
77
77
  }
78
78
  }
@@ -1,4 +1,11 @@
1
1
  'use client';
2
+ import {
3
+ disabledText,
4
+ pressable
5
+ } from "./chunk-7SXR4PGO.js";
6
+ import {
7
+ useNexubMessages
8
+ } from "./chunk-24ZFAXB2.js";
2
9
  import {
3
10
  cn
4
11
  } from "./chunk-Q7G5WGYV.js";
@@ -7,6 +14,11 @@ import {
7
14
  import * as React from "react";
8
15
  import { ChevronLeft, ChevronRight, MoreHorizontal } from "@nexub/icons";
9
16
  import { jsx, jsxs } from "react/jsx-runtime";
17
+ var navButton = cn(
18
+ pressable,
19
+ "inline-flex h-11 w-11 items-center justify-center bg-transparent text-[var(--color-on-surface)]",
20
+ disabledText
21
+ );
10
22
  function generatePages(current, total, siblings) {
11
23
  if (total <= 7) return Array.from({ length: total }, (_, i) => i + 1);
12
24
  const leftSibling = Math.max(current - siblings, 1);
@@ -32,6 +44,7 @@ var Pagination = React.forwardRef(
32
44
  onPageChange,
33
45
  ...props
34
46
  }, ref) => {
47
+ const messages = useNexubMessages();
35
48
  const totalPages = Math.ceil(totalItems / pageSize);
36
49
  if (totalPages <= 1) return null;
37
50
  const pages = generatePages(page, totalPages, siblingCount);
@@ -40,8 +53,8 @@ var Pagination = React.forwardRef(
40
53
  {
41
54
  ref,
42
55
  role: "navigation",
43
- "aria-label": "Pagination",
44
- className: cn("flex items-center gap-1", className),
56
+ "aria-label": messages.pagination,
57
+ className: cn("flex items-center gap-1 tabular-nums", className),
45
58
  ...props,
46
59
  children: [
47
60
  /* @__PURE__ */ jsx(
@@ -49,16 +62,16 @@ var Pagination = React.forwardRef(
49
62
  {
50
63
  onClick: () => onPageChange(page - 1),
51
64
  disabled: page <= 1,
52
- "aria-label": "Go to previous page",
53
- className: "inline-flex h-11 w-11 items-center justify-center rounded-md border border-[var(--color-border-default)] text-[var(--color-text-primary)] transition-colors hover:bg-[var(--color-bg-subtle)] disabled:pointer-events-none disabled:opacity-50",
54
- children: /* @__PURE__ */ jsx(ChevronLeft, { size: "sm", "aria-hidden": "true" })
65
+ "aria-label": messages.previousPage,
66
+ className: navButton,
67
+ children: /* @__PURE__ */ jsx(ChevronLeft, { size: "sm", "aria-hidden": "true", className: "rtl:-scale-x-100" })
55
68
  }
56
69
  ),
57
70
  pages.map(
58
71
  (p, i) => p === "..." ? /* @__PURE__ */ jsx(
59
72
  "span",
60
73
  {
61
- className: "flex h-11 w-11 items-center justify-center text-[var(--color-text-muted)]",
74
+ className: "flex h-11 w-11 items-center justify-center text-[var(--color-on-surface-muted)]",
62
75
  children: /* @__PURE__ */ jsx(MoreHorizontal, { size: "sm", "aria-hidden": "true" })
63
76
  },
64
77
  `ellipsis-${i}`
@@ -66,11 +79,12 @@ var Pagination = React.forwardRef(
66
79
  "button",
67
80
  {
68
81
  onClick: () => onPageChange(p),
69
- "aria-label": `Go to page ${p}`,
82
+ "aria-label": messages.goToPage(p),
70
83
  "aria-current": p === page ? "page" : void 0,
71
84
  className: cn(
72
- "inline-flex h-11 w-11 items-center justify-center rounded-md text-sm font-medium transition-colors",
73
- p === page ? "bg-[var(--color-fill-primary)] text-white" : "border border-[var(--color-border-default)] text-[var(--color-text-primary)] hover:bg-[var(--color-bg-subtle)]"
85
+ pressable,
86
+ "inline-flex h-11 min-w-11 px-2 items-center justify-center text-label-lg",
87
+ p === page ? "bg-[var(--color-primary)] text-[var(--color-on-primary)]" : "bg-transparent text-[var(--color-on-surface)]"
74
88
  ),
75
89
  children: p
76
90
  },
@@ -82,9 +96,9 @@ var Pagination = React.forwardRef(
82
96
  {
83
97
  onClick: () => onPageChange(page + 1),
84
98
  disabled: page >= totalPages,
85
- "aria-label": "Go to next page",
86
- className: "inline-flex h-11 w-11 items-center justify-center rounded-md border border-[var(--color-border-default)] text-[var(--color-text-primary)] transition-colors hover:bg-[var(--color-bg-subtle)] disabled:pointer-events-none disabled:opacity-50",
87
- children: /* @__PURE__ */ jsx(ChevronRight, { size: "sm", "aria-hidden": "true" })
99
+ "aria-label": messages.nextPage,
100
+ className: navButton,
101
+ children: /* @__PURE__ */ jsx(ChevronRight, { size: "sm", "aria-hidden": "true", className: "rtl:-scale-x-100" })
88
102
  }
89
103
  )
90
104
  ]
@@ -0,0 +1,94 @@
1
+ 'use client';
2
+ import {
3
+ cn
4
+ } from "./chunk-Q7G5WGYV.js";
5
+
6
+ // src/components/RadioCard/selectableCard.tsx
7
+ import * as React from "react";
8
+ import { Check } from "@nexub/icons";
9
+ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
10
+ var selectableCardClass = [
11
+ "group nx-state-layer flex w-full items-start gap-3 p-4 text-start",
12
+ "rounded-shape-container bg-[var(--color-surface-elevated)] text-[var(--color-on-surface)]",
13
+ "border border-[color-mix(in_srgb,var(--color-outline-variant)_60%,transparent)]",
14
+ "cursor-pointer transition-[border-color,box-shadow] duration-effects-fast ease-effects-fast",
15
+ "data-[state=checked]:border-[var(--color-primary)] data-[state=checked]:shadow-[inset_0_0_0_1px_var(--color-primary)]",
16
+ "data-[disabled]:cursor-not-allowed data-[disabled]:text-[var(--color-text-disabled)]",
17
+ "data-[disabled]:data-[state=checked]:border-[var(--color-text-disabled)] data-[disabled]:data-[state=checked]:shadow-[inset_0_0_0_1px_var(--color-text-disabled)]"
18
+ ].join(" ");
19
+ var slotShape = {
20
+ circle: "rounded-full",
21
+ square: "rounded-shape-min"
22
+ };
23
+ function SelectableCardContent({
24
+ icon,
25
+ title,
26
+ description,
27
+ children,
28
+ titleId,
29
+ descriptionId,
30
+ shape
31
+ }) {
32
+ return /* @__PURE__ */ jsxs(Fragment, { children: [
33
+ icon != null && /* @__PURE__ */ jsx(
34
+ "span",
35
+ {
36
+ "aria-hidden": true,
37
+ className: "flex shrink-0 text-[var(--color-on-surface-variant)] group-data-[state=checked]:text-[var(--color-primary)] group-data-[disabled]:text-[var(--color-text-disabled)]",
38
+ children: icon
39
+ }
40
+ ),
41
+ /* @__PURE__ */ jsxs("span", { className: "flex min-w-0 flex-1 flex-col gap-1", children: [
42
+ /* @__PURE__ */ jsx("span", { id: titleId, className: "text-sm font-medium", children: title }),
43
+ description != null && /* @__PURE__ */ jsx(
44
+ "span",
45
+ {
46
+ id: descriptionId,
47
+ className: "text-sm text-[var(--color-on-surface-variant)] group-data-[disabled]:text-[var(--color-text-disabled)]",
48
+ children: description
49
+ }
50
+ ),
51
+ children
52
+ ] }),
53
+ /* @__PURE__ */ jsx(
54
+ "span",
55
+ {
56
+ "aria-hidden": true,
57
+ className: cn(
58
+ "relative h-5 w-5 shrink-0 border border-[var(--color-outline-variant)]",
59
+ slotShape[shape]
60
+ ),
61
+ children: /* @__PURE__ */ jsx(
62
+ "span",
63
+ {
64
+ className: cn(
65
+ "absolute -inset-px flex items-center justify-center rounded-[inherit]",
66
+ "bg-[var(--color-primary)] text-[var(--color-on-primary)] group-data-[disabled]:bg-[var(--color-text-disabled)] group-data-[disabled]:text-[var(--color-surface)]",
67
+ // Exit: fade on effects-fast; scale resets only after the fade.
68
+ "scale-0 opacity-0 [transition:opacity_var(--motion-spring-effects-fast-duration)_var(--motion-spring-effects-fast-easing),transform_0s_linear_var(--motion-spring-effects-fast-duration)]",
69
+ // Enter: scale 0 -> 1 on the expressive spring, opacity on effects.
70
+ "group-data-[state=checked]:scale-100 group-data-[state=checked]:opacity-100 group-data-[state=checked]:[transition:transform_var(--motion-spring-expressive-fast-duration)_var(--motion-spring-expressive-fast-easing),opacity_var(--motion-spring-effects-fast-duration)_var(--motion-spring-effects-fast-easing)]",
71
+ // Reduced motion: crossfade only.
72
+ "motion-reduce:scale-100"
73
+ ),
74
+ children: /* @__PURE__ */ jsx(Check, { size: "xs" })
75
+ }
76
+ )
77
+ }
78
+ )
79
+ ] });
80
+ }
81
+ function useCardIds(hasDescription) {
82
+ const id = React.useId();
83
+ return {
84
+ titleId: `${id}-title`,
85
+ descriptionId: `${id}-desc`,
86
+ describedBy: hasDescription ? `${id}-desc` : void 0
87
+ };
88
+ }
89
+
90
+ export {
91
+ selectableCardClass,
92
+ SelectableCardContent,
93
+ useCardIds
94
+ };
@@ -1,8 +1,7 @@
1
1
  'use client';
2
2
  import {
3
- enterExit,
4
3
  floatingSurface
5
- } from "./chunk-KQPLFVFR.js";
4
+ } from "./chunk-FLZD7HQY.js";
6
5
  import {
7
6
  cn
8
7
  } from "./chunk-Q7G5WGYV.js";
@@ -11,7 +10,9 @@ import {
11
10
  import * as React from "react";
12
11
  import * as RadixHoverCard from "@radix-ui/react-hover-card";
13
12
  import { jsx } from "react/jsx-runtime";
14
- var Root2 = RadixHoverCard.Root;
13
+ function Root2({ openDelay = 500, closeDelay = 200, ...props }) {
14
+ return /* @__PURE__ */ jsx(RadixHoverCard.Root, { openDelay, closeDelay, ...props });
15
+ }
15
16
  var Trigger2 = RadixHoverCard.Trigger;
16
17
  var Content2 = React.forwardRef(
17
18
  function HoverCardContent({ className, sideOffset = 4, ...props }, ref) {
@@ -23,12 +24,7 @@ var Content2 = React.forwardRef(
23
24
  className: cn(
24
25
  "z-[var(--z-popover)] w-64 p-4 outline-none",
25
26
  floatingSurface,
26
- enterExit,
27
- "data-[state=open]:animate-in data-[state=closed]:animate-out",
28
- "data-[state=open]:fade-in-0 data-[state=closed]:fade-out-0",
29
- "data-[state=open]:zoom-in-95 data-[state=closed]:zoom-out-95",
30
- "data-[side=bottom]:slide-in-from-top-2 data-[side=top]:slide-in-from-bottom-2",
31
- "data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2",
27
+ "nx-motion nx-pop origin-[var(--radix-hover-card-content-transform-origin)]",
32
28
  className
33
29
  ),
34
30
  ...props
@@ -43,7 +39,7 @@ var Arrow2 = React.forwardRef(
43
39
  RadixHoverCard.Arrow,
44
40
  {
45
41
  ref,
46
- className: cn("fill-[var(--color-border-default)]", className),
42
+ className: cn("fill-[var(--color-outline-variant)]", className),
47
43
  ...props
48
44
  }
49
45
  );
@@ -1,7 +1,10 @@
1
1
  'use client';
2
2
  import {
3
3
  avatarVariants
4
- } from "./chunk-FHFVBOF3.js";
4
+ } from "./chunk-QUYOV2ZJ.js";
5
+ import {
6
+ useNexubMessages
7
+ } from "./chunk-24ZFAXB2.js";
5
8
  import {
6
9
  cn
7
10
  } from "./chunk-Q7G5WGYV.js";
@@ -13,9 +16,9 @@ import { jsx, jsxs } from "react/jsx-runtime";
13
16
  var avatarGroupVariants = cva("flex items-center", {
14
17
  variants: {
15
18
  spacing: {
16
- sm: "[&>*:not(:first-child)]:-ml-3",
17
- md: "[&>*:not(:first-child)]:-ml-2",
18
- lg: "[&>*:not(:first-child)]:-ml-1"
19
+ sm: "[&>*:not(:first-child)]:-ms-3",
20
+ md: "[&>*:not(:first-child)]:-ms-2",
21
+ lg: "[&>*:not(:first-child)]:-ms-1"
19
22
  }
20
23
  },
21
24
  defaultVariants: {
@@ -24,6 +27,7 @@ var avatarGroupVariants = cva("flex items-center", {
24
27
  });
25
28
  var AvatarGroup = React.forwardRef(
26
29
  ({ className, max, size = "md", spacing, children, ...props }, ref) => {
30
+ const messages = useNexubMessages();
27
31
  const items = React.Children.toArray(children);
28
32
  const visibleItems = max !== void 0 ? items.slice(0, max) : items;
29
33
  const overflowCount = max !== void 0 && items.length > max ? items.length - max : 0;
@@ -44,18 +48,18 @@ var AvatarGroup = React.forwardRef(
44
48
  return /* @__PURE__ */ jsx(
45
49
  "span",
46
50
  {
47
- className: "ring-2 ring-[var(--color-bg-default)] rounded-full inline-flex",
51
+ className: "ring-2 ring-[var(--color-surface)] rounded-full inline-flex",
48
52
  children: childWithSize
49
53
  },
50
54
  child.key ?? index
51
55
  );
52
56
  }),
53
- overflowCount > 0 && /* @__PURE__ */ jsx("span", { className: "ring-2 ring-[var(--color-bg-default)] rounded-full inline-flex", children: /* @__PURE__ */ jsx(
57
+ overflowCount > 0 && /* @__PURE__ */ jsx("span", { className: "ring-2 ring-[var(--color-surface)] rounded-full inline-flex", children: /* @__PURE__ */ jsx(
54
58
  "span",
55
59
  {
56
60
  className: cn(avatarVariants({ size }), "font-medium"),
57
61
  role: "img",
58
- "aria-label": `${overflowCount} more`,
62
+ "aria-label": messages.moreCount(overflowCount),
59
63
  children: /* @__PURE__ */ jsxs("span", { "aria-hidden": "true", children: [
60
64
  "+",
61
65
  overflowCount
@@ -15,9 +15,9 @@ var Kbd = React.forwardRef(
15
15
  className: cn(
16
16
  "inline-flex items-center justify-center font-mono text-xs",
17
17
  "px-1.5 py-0.5 min-w-[1.5rem]",
18
- "rounded border border-[var(--color-border-default)]",
19
- "bg-[var(--color-bg-subtle)] text-[var(--color-text-secondary)]",
20
- "shadow-[0_1px_0_var(--color-border-default)]",
18
+ "rounded-shape-min border border-[var(--color-outline-variant)]",
19
+ "bg-[var(--color-surface-container-low)] text-[var(--color-on-surface-variant)]",
20
+ "shadow-[0_1px_0_var(--color-outline-variant)]",
21
21
  className
22
22
  ),
23
23
  ...rest,