@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
@@ -18,11 +18,11 @@ var textVariants = cva("", {
18
18
  label: "text-sm leading-none font-medium"
19
19
  },
20
20
  tone: {
21
- default: "text-[var(--color-text-primary)]",
22
- secondary: "text-[var(--color-text-secondary)]",
23
- muted: "text-[var(--color-text-muted)]",
24
- subtle: "text-[var(--color-text-subtle)]",
25
- inverse: "text-[var(--color-text-inverse)]"
21
+ default: "text-[var(--color-on-surface)]",
22
+ secondary: "text-[var(--color-on-surface-variant)]",
23
+ muted: "text-[var(--color-on-surface-muted)]",
24
+ subtle: "text-[var(--color-outline)]",
25
+ inverse: "text-[var(--color-inverse-on-surface)]"
26
26
  },
27
27
  weight: {
28
28
  regular: "font-normal",
@@ -36,6 +36,14 @@ var textVariants = cva("", {
36
36
  tone: "default"
37
37
  }
38
38
  });
39
+ var LINE_CLAMP = {
40
+ 1: "line-clamp-1",
41
+ 2: "line-clamp-2",
42
+ 3: "line-clamp-3",
43
+ 4: "line-clamp-4",
44
+ 5: "line-clamp-5",
45
+ 6: "line-clamp-6"
46
+ };
39
47
  var Text = React.forwardRef(
40
48
  ({
41
49
  size,
@@ -50,12 +58,13 @@ var Text = React.forwardRef(
50
58
  ...rest
51
59
  }, ref) => {
52
60
  const Comp = asChild ? Slot : "p";
53
- const clampStyle = lineClamp !== void 0 ? {
61
+ const clampClass = lineClamp !== void 0 ? LINE_CLAMP[lineClamp] : void 0;
62
+ const clampStyle = lineClamp !== void 0 && !clampClass ? {
54
63
  display: "-webkit-box",
55
64
  WebkitLineClamp: lineClamp,
56
65
  WebkitBoxOrient: "vertical",
57
66
  overflow: "hidden"
58
- } : {};
67
+ } : void 0;
59
68
  return /* @__PURE__ */ jsx(
60
69
  Comp,
61
70
  {
@@ -63,9 +72,10 @@ var Text = React.forwardRef(
63
72
  className: cn(
64
73
  textVariants({ size, tone, weight }),
65
74
  truncate && "truncate",
75
+ clampClass,
66
76
  className
67
77
  ),
68
- style: { ...clampStyle, ...style },
78
+ style: clampStyle ? { ...clampStyle, ...style } : style,
69
79
  ...rest,
70
80
  children
71
81
  }
@@ -1,12 +1,11 @@
1
1
  'use client';
2
2
  import {
3
- enterExit,
4
3
  floatingSurface,
5
4
  menuContent,
6
5
  menuItem,
7
6
  menuLabel,
8
7
  menuSeparator
9
- } from "./chunk-KQPLFVFR.js";
8
+ } from "./chunk-FLZD7HQY.js";
10
9
  import {
11
10
  cn
12
11
  } from "./chunk-Q7G5WGYV.js";
@@ -33,12 +32,7 @@ var Content2 = React.forwardRef(
33
32
  "z-[var(--z-popover)] min-w-48 outline-none",
34
33
  floatingSurface,
35
34
  menuContent,
36
- enterExit,
37
- "data-[state=open]:animate-in data-[state=closed]:animate-out",
38
- "data-[state=open]:fade-in-0 data-[state=closed]:fade-out-0",
39
- "data-[state=open]:zoom-in-95 data-[state=closed]:zoom-out-95",
40
- "data-[side=bottom]:slide-in-from-top-2 data-[side=top]:slide-in-from-bottom-2",
41
- "data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2",
35
+ "nx-motion nx-pop origin-[var(--radix-dropdown-menu-content-transform-origin)]",
42
36
  className
43
37
  ),
44
38
  ...props
@@ -97,11 +91,11 @@ var CheckboxItem2 = React.forwardRef(function DropdownMenuCheckboxItem({ classNa
97
91
  RadixDropdownMenu.CheckboxItem,
98
92
  {
99
93
  ref,
100
- className: cn(itemBaseClasses, "pl-8", className),
94
+ className: cn(itemBaseClasses, "ps-8", className),
101
95
  checked,
102
96
  ...props,
103
97
  children: [
104
- /* @__PURE__ */ jsx("span", { className: "absolute left-2 flex h-4 w-4 items-center justify-center", children: /* @__PURE__ */ jsx(RadixDropdownMenu.ItemIndicator, { children: /* @__PURE__ */ jsx(Check, { className: "h-4 w-4" }) }) }),
98
+ /* @__PURE__ */ jsx("span", { className: "absolute start-2 flex h-4 w-4 items-center justify-center", children: /* @__PURE__ */ jsx(RadixDropdownMenu.ItemIndicator, { children: /* @__PURE__ */ jsx(Check, { className: "h-4 w-4" }) }) }),
105
99
  children
106
100
  ]
107
101
  }
@@ -113,10 +107,10 @@ var RadioItem2 = React.forwardRef(function DropdownMenuRadioItem({ className, ch
113
107
  RadixDropdownMenu.RadioItem,
114
108
  {
115
109
  ref,
116
- className: cn(itemBaseClasses, "pl-8", className),
110
+ className: cn(itemBaseClasses, "ps-8", className),
117
111
  ...props,
118
112
  children: [
119
- /* @__PURE__ */ jsx("span", { className: "absolute left-2 flex h-4 w-4 items-center justify-center", children: /* @__PURE__ */ jsx(RadixDropdownMenu.ItemIndicator, { children: /* @__PURE__ */ jsx("svg", { className: "h-2 w-2 fill-current", viewBox: "0 0 8 8", "aria-hidden": "true", children: /* @__PURE__ */ jsx("circle", { cx: "4", cy: "4", r: "4" }) }) }) }),
113
+ /* @__PURE__ */ jsx("span", { className: "absolute start-2 flex h-4 w-4 items-center justify-center", children: /* @__PURE__ */ jsx(RadixDropdownMenu.ItemIndicator, { children: /* @__PURE__ */ jsx("svg", { className: "h-2 w-2 fill-current", viewBox: "0 0 8 8", "aria-hidden": "true", children: /* @__PURE__ */ jsx("circle", { cx: "4", cy: "4", r: "4" }) }) }) }),
120
114
  children
121
115
  ]
122
116
  }
@@ -136,7 +130,7 @@ var SubTrigger2 = React.forwardRef(function DropdownMenuSubTrigger({ className,
136
130
  ...props,
137
131
  children: [
138
132
  children,
139
- /* @__PURE__ */ jsx(ChevronRight, { className: "ml-auto h-4 w-4" })
133
+ /* @__PURE__ */ jsx(ChevronRight, { className: "ms-auto h-4 w-4 rtl:-scale-x-100" })
140
134
  ]
141
135
  }
142
136
  );
@@ -151,12 +145,7 @@ var SubContent2 = React.forwardRef(function DropdownMenuSubContent({ className,
151
145
  "z-[var(--z-popover)] min-w-48 outline-none",
152
146
  floatingSurface,
153
147
  menuContent,
154
- enterExit,
155
- "data-[state=open]:animate-in data-[state=closed]:animate-out",
156
- "data-[state=open]:fade-in-0 data-[state=closed]:fade-out-0",
157
- "data-[state=open]:zoom-in-95 data-[state=closed]:zoom-out-95",
158
- "data-[side=bottom]:slide-in-from-top-2 data-[side=top]:slide-in-from-bottom-2",
159
- "data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2",
148
+ "nx-motion nx-pop origin-[var(--radix-dropdown-menu-content-transform-origin)]",
160
149
  className
161
150
  ),
162
151
  ...props
@@ -1,4 +1,7 @@
1
1
  'use client';
2
+ import {
3
+ useNexubMessages
4
+ } from "./chunk-24ZFAXB2.js";
2
5
  import {
3
6
  cn
4
7
  } from "./chunk-Q7G5WGYV.js";
@@ -8,19 +11,22 @@ import * as React from "react";
8
11
  import { Slot } from "@radix-ui/react-slot";
9
12
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
10
13
  var Root = React.forwardRef(
11
- ({ className, header, children, "aria-label": ariaLabel = "Main", ...props }, ref) => /* @__PURE__ */ jsxs(
12
- "nav",
13
- {
14
- ref,
15
- "aria-label": ariaLabel,
16
- className: cn("flex h-full w-20 shrink-0 flex-col items-center gap-3 py-4", className),
17
- ...props,
18
- children: [
19
- header && /* @__PURE__ */ jsx("div", { className: "mb-3 flex flex-col items-center", children: header }),
20
- /* @__PURE__ */ jsx("ul", { className: "flex w-full flex-col items-center gap-1", role: "list", children })
21
- ]
22
- }
23
- )
14
+ ({ className, header, children, "aria-label": ariaLabel, ...props }, ref) => {
15
+ const messages = useNexubMessages();
16
+ return /* @__PURE__ */ jsxs(
17
+ "nav",
18
+ {
19
+ ref,
20
+ "aria-label": ariaLabel ?? messages.mainNavigation,
21
+ className: cn("flex h-full w-20 shrink-0 flex-col items-center gap-3 py-4", className),
22
+ ...props,
23
+ children: [
24
+ header && /* @__PURE__ */ jsx("div", { className: "mb-3 flex flex-col items-center", children: header }),
25
+ /* @__PURE__ */ jsx("ul", { className: "flex w-full flex-col items-center gap-1", role: "list", children })
26
+ ]
27
+ }
28
+ );
29
+ }
24
30
  );
25
31
  Root.displayName = "NavigationRail.Root";
26
32
  var Item = React.forwardRef(
@@ -0,0 +1,143 @@
1
+ 'use client';
2
+ import {
3
+ useCalendarLocale
4
+ } from "./chunk-MYP5ZTC3.js";
5
+ import {
6
+ floatingSurface
7
+ } from "./chunk-FLZD7HQY.js";
8
+ import {
9
+ field,
10
+ fieldFocusVisible
11
+ } from "./chunk-7SXR4PGO.js";
12
+ import {
13
+ useNexubMessages
14
+ } from "./chunk-24ZFAXB2.js";
15
+ import {
16
+ cn
17
+ } from "./chunk-Q7G5WGYV.js";
18
+
19
+ // src/components/DateRangePicker/DateRangePicker.tsx
20
+ import * as React from "react";
21
+ import * as RadixPopover from "@radix-ui/react-popover";
22
+ import { DayPicker } from "react-day-picker";
23
+ import { CalendarDays } from "@nexub/icons";
24
+ import { jsx, jsxs } from "react/jsx-runtime";
25
+ function formatRange(range, placeholder, formatDate) {
26
+ if (!range) return placeholder;
27
+ if (range.from && range.to) {
28
+ return `${formatDate(range.from)} \u2013 ${formatDate(range.to)}`;
29
+ }
30
+ if (range.from) return `${formatDate(range.from)} \u2013 \u2026`;
31
+ return placeholder;
32
+ }
33
+ var calendarClassNames = {
34
+ months: "flex flex-col sm:flex-row gap-4",
35
+ month: "flex flex-col gap-4",
36
+ month_caption: "flex h-8 items-center justify-center",
37
+ caption_label: "text-label-lg text-[var(--color-on-surface)]",
38
+ // v9 renders nav beside the months, not in the caption: pin it to the caption row.
39
+ nav: "pointer-events-none absolute inset-x-3 top-3 flex h-8 items-center justify-between",
40
+ button_previous: "nx-state-layer pointer-events-auto inline-flex h-7 w-7 items-center justify-center rounded-full text-[var(--color-on-surface)] disabled:pointer-events-none disabled:text-[var(--color-text-disabled)]",
41
+ button_next: "nx-state-layer pointer-events-auto inline-flex h-7 w-7 items-center justify-center rounded-full text-[var(--color-on-surface)] disabled:pointer-events-none disabled:text-[var(--color-text-disabled)]",
42
+ month_grid: "w-full border-collapse",
43
+ weekdays: "flex",
44
+ weekday: "text-[var(--color-on-surface-muted)] w-8 text-label-sm flex-1 text-center",
45
+ week: "flex w-full mt-2",
46
+ day: "relative flex flex-1 justify-center p-0 text-center focus-within:z-20",
47
+ day_button: cn(
48
+ // Capsule day with a state layer; focus = the global ring. The transparent
49
+ // border carries today's primary outline.
50
+ "nx-state-layer inline-flex h-8 w-8 items-center justify-center rounded-full border border-transparent text-body-sm text-[var(--color-on-surface)]",
51
+ "disabled:pointer-events-none disabled:text-[var(--color-text-disabled)]"
52
+ ),
53
+ // Ends (and a lone start) are filled primary capsules; the middle is a
54
+ // primary-container band. `nx-range-middle` is a marker so `selected`
55
+ // skips middle days without depending on CSS order.
56
+ selected: "[&:not(.nx-range-middle)>button]:bg-[var(--color-primary)] [&:not(.nx-range-middle)>button]:text-[var(--color-on-primary)]",
57
+ // Half bands join the end capsules to the middle band (not on a one-day range).
58
+ // RTL (DayPicker's dir): the bands run the other way.
59
+ range_start: "nx-range-start [&:not(.nx-range-end)]:bg-[linear-gradient(to_right,transparent_50%,var(--color-primary-container)_50%)] rtl:[&:not(.nx-range-end)]:bg-[linear-gradient(to_left,transparent_50%,var(--color-primary-container)_50%)]",
60
+ range_end: "nx-range-end [&:not(.nx-range-start)]:bg-[linear-gradient(to_left,transparent_50%,var(--color-primary-container)_50%)] rtl:[&:not(.nx-range-start)]:bg-[linear-gradient(to_right,transparent_50%,var(--color-primary-container)_50%)]",
61
+ range_middle: "nx-range-middle bg-[var(--color-primary-container)] [&>button]:text-[var(--color-on-primary-container)]",
62
+ today: "[&>button]:border-[var(--color-primary)]",
63
+ outside: "[&:not([data-selected]):not([data-disabled])>button]:text-[var(--color-on-surface-muted)]",
64
+ disabled: "",
65
+ hidden: "invisible"
66
+ };
67
+ var DateRangePicker = React.forwardRef(function DateRangePicker2({
68
+ value,
69
+ onChange,
70
+ placeholder: placeholderProp,
71
+ disabled = false,
72
+ minDate,
73
+ maxDate,
74
+ className,
75
+ id,
76
+ "aria-label": ariaLabel,
77
+ locale: localeProp
78
+ }, ref) {
79
+ const [open, setOpen] = React.useState(false);
80
+ const messages = useNexubMessages();
81
+ const calendar = useCalendarLocale(localeProp);
82
+ const placeholder = placeholderProp ?? messages.pickDateRange;
83
+ const display = formatRange(value, placeholder, calendar.format);
84
+ const label = ariaLabel ? `${ariaLabel}: ${display}` : display;
85
+ return /* @__PURE__ */ jsxs(RadixPopover.Root, { open, onOpenChange: setOpen, children: [
86
+ /* @__PURE__ */ jsx(RadixPopover.Trigger, { asChild: true, children: /* @__PURE__ */ jsxs(
87
+ "button",
88
+ {
89
+ ref,
90
+ id,
91
+ disabled,
92
+ "aria-label": label,
93
+ className: cn(
94
+ "inline-flex h-control-md w-full items-center justify-start gap-2 px-3.5 text-body-md",
95
+ field,
96
+ fieldFocusVisible,
97
+ // Open reads like focus: the 2px primary border (as Select).
98
+ "data-[state=open]:border-[var(--color-primary)] data-[state=open]:shadow-[inset_0_0_0_1px_var(--color-primary)]",
99
+ "disabled:cursor-not-allowed disabled:border-[var(--color-outline-variant)] disabled:bg-[var(--color-surface-container-low)] disabled:text-[var(--color-text-disabled)]",
100
+ !value && "text-[var(--color-on-surface-muted)]",
101
+ className
102
+ ),
103
+ children: [
104
+ /* @__PURE__ */ jsx(CalendarDays, { size: "sm", "aria-hidden": "true" }),
105
+ display
106
+ ]
107
+ }
108
+ ) }),
109
+ /* @__PURE__ */ jsx(RadixPopover.Portal, { children: /* @__PURE__ */ jsx(
110
+ RadixPopover.Content,
111
+ {
112
+ align: "start",
113
+ className: cn(
114
+ "z-[var(--z-popover)] outline-none",
115
+ floatingSurface,
116
+ "nx-motion nx-pop origin-[var(--radix-popover-content-transform-origin)]"
117
+ ),
118
+ children: /* @__PURE__ */ jsx(
119
+ DayPicker,
120
+ {
121
+ mode: "range",
122
+ selected: value,
123
+ defaultMonth: value?.from,
124
+ onSelect: onChange,
125
+ numberOfMonths: 2,
126
+ startMonth: minDate,
127
+ endMonth: maxDate,
128
+ initialFocus: true,
129
+ showOutsideDays: false,
130
+ className: "relative p-3",
131
+ classNames: calendarClassNames,
132
+ ...calendar.dayPickerProps
133
+ }
134
+ )
135
+ }
136
+ ) })
137
+ ] });
138
+ });
139
+ DateRangePicker.displayName = "DateRangePicker";
140
+
141
+ export {
142
+ DateRangePicker
143
+ };
@@ -1,4 +1,8 @@
1
1
  'use client';
2
+ import {
3
+ disabledContainer,
4
+ pressable
5
+ } from "./chunk-7SXR4PGO.js";
2
6
  import {
3
7
  cn
4
8
  } from "./chunk-Q7G5WGYV.js";
@@ -15,6 +19,11 @@ import {
15
19
  } from "@tanstack/react-table";
16
20
  import { ArrowUp, ArrowDown, ChevronsUpDown } from "@nexub/icons";
17
21
  import { jsx, jsxs } from "react/jsx-runtime";
22
+ var pagerButton = cn(
23
+ pressable,
24
+ "border border-[var(--color-outline-variant)] bg-transparent px-4 py-2 min-h-[44px] text-label-lg text-[var(--color-on-surface)]",
25
+ disabledContainer
26
+ );
18
27
  var TableRoot = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", { className: "w-full overflow-auto", children: /* @__PURE__ */ jsx(
19
28
  "table",
20
29
  {
@@ -28,7 +37,7 @@ var TableHeader = React.forwardRef(({ className, ...props }, ref) => /* @__PURE_
28
37
  "thead",
29
38
  {
30
39
  ref,
31
- className: cn("[&_tr]:border-b border-[var(--color-border-default)]", className),
40
+ className: cn("[&_tr]:border-b border-[var(--color-outline-variant)]", className),
32
41
  ...props
33
42
  }
34
43
  ));
@@ -47,7 +56,7 @@ var TableRow = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ *
47
56
  {
48
57
  ref,
49
58
  className: cn(
50
- "border-b border-[var(--color-border-default)] transition-colors hover:bg-[var(--color-bg-subtle)] data-[state=selected]:bg-[var(--color-bg-subtle)]",
59
+ "border-b border-[var(--color-outline-variant)] transition-colors hover:bg-[color-mix(in_srgb,var(--color-on-surface)_8%,transparent)] data-[state=selected]:bg-[var(--color-surface-container-low)]",
51
60
  className
52
61
  ),
53
62
  ...props
@@ -59,7 +68,7 @@ var TableHead = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__
59
68
  {
60
69
  ref,
61
70
  className: cn(
62
- "h-10 px-4 text-left align-middle text-xs font-medium text-[var(--color-text-muted)] [&:has([role=checkbox])]:pr-0",
71
+ "h-10 px-4 text-start align-middle text-xs font-medium text-[var(--color-on-surface-muted)] [&:has([role=checkbox])]:pe-0",
63
72
  className
64
73
  ),
65
74
  ...props
@@ -71,7 +80,7 @@ var TableCell = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__
71
80
  {
72
81
  ref,
73
82
  className: cn(
74
- "px-4 py-3 align-middle text-[var(--color-text-primary)] [&:has([role=checkbox])]:pr-0",
83
+ "px-4 py-3 align-middle text-[var(--color-on-surface)] [&:has([role=checkbox])]:pe-0",
75
84
  className
76
85
  ),
77
86
  ...props
@@ -125,7 +134,7 @@ function DataTable({
125
134
  "button",
126
135
  {
127
136
  onClick: header.column.getToggleSortingHandler(),
128
- className: "inline-flex items-center gap-1 hover:text-[var(--color-text-primary)]",
137
+ className: "inline-flex items-center gap-1 hover:text-[var(--color-on-surface)]",
129
138
  children: [
130
139
  flexRender(header.column.columnDef.header, header.getContext()),
131
140
  header.column.getIsSorted() === "asc" ? /* @__PURE__ */ jsx(ArrowUp, { size: "xs", "aria-hidden": "true" }) : header.column.getIsSorted() === "desc" ? /* @__PURE__ */ jsx(ArrowDown, { size: "xs", "aria-hidden": "true" }) : /* @__PURE__ */ jsx(ChevronsUpDown, { size: "xs", className: "opacity-40", "aria-hidden": "true" })
@@ -146,12 +155,12 @@ function DataTable({
146
155
  TableCell,
147
156
  {
148
157
  colSpan: columns.length,
149
- className: "h-24 text-center text-[var(--color-text-muted)]",
158
+ className: "h-24 text-center text-[var(--color-on-surface-muted)]",
150
159
  children: "No results."
151
160
  }
152
161
  ) }) })
153
162
  ] }),
154
- pagination && /* @__PURE__ */ jsxs("div", { className: "flex flex-wrap items-center justify-between gap-2 text-sm text-[var(--color-text-muted)]", children: [
163
+ pagination && /* @__PURE__ */ jsxs("div", { className: "flex flex-wrap items-center justify-between gap-2 text-sm text-[var(--color-on-surface-muted)]", children: [
155
164
  /* @__PURE__ */ jsxs("span", { children: [
156
165
  "Page ",
157
166
  table.getState().pagination.pageIndex + 1,
@@ -164,7 +173,7 @@ function DataTable({
164
173
  {
165
174
  onClick: () => table.previousPage(),
166
175
  disabled: !table.getCanPreviousPage(),
167
- className: "rounded border border-[var(--color-border-default)] px-3 py-2 min-h-[44px] disabled:opacity-50",
176
+ className: pagerButton,
168
177
  children: "Previous"
169
178
  }
170
179
  ),
@@ -173,7 +182,7 @@ function DataTable({
173
182
  {
174
183
  onClick: () => table.nextPage(),
175
184
  disabled: !table.getCanNextPage(),
176
- className: "rounded border border-[var(--color-border-default)] px-3 py-2 min-h-[44px] disabled:opacity-50",
185
+ className: pagerButton,
177
186
  children: "Next"
178
187
  }
179
188
  )
@@ -7,7 +7,7 @@ import {
7
7
  import * as React from "react";
8
8
  import { jsx } from "react/jsx-runtime";
9
9
  var Root = React.forwardRef(
10
- ({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", { className: "relative w-full overflow-auto", children: /* @__PURE__ */ jsx("table", { ref, className: cn("w-full caption-bottom text-sm", className), ...props }) })
10
+ ({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", { className: "relative w-full overflow-auto", children: /* @__PURE__ */ jsx("table", { ref, className: cn("w-full caption-bottom text-sm tabular-nums", className), ...props }) })
11
11
  );
12
12
  Root.displayName = "Table.Root";
13
13
  var Header = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("thead", { ref, className: cn("[&_tr]:border-b", className), ...props }));
@@ -19,7 +19,7 @@ var TableFooter = React.forwardRef(({ className, ...props }, ref) => /* @__PURE_
19
19
  {
20
20
  ref,
21
21
  className: cn(
22
- "border-t bg-[var(--color-bg-subtle)] font-medium [&>tr]:last:border-b-0",
22
+ "border-t bg-[var(--color-surface-container-low)] font-medium [&>tr]:last:border-b-0",
23
23
  className
24
24
  ),
25
25
  ...props
@@ -32,7 +32,7 @@ var Row = React.forwardRef(
32
32
  {
33
33
  ref,
34
34
  className: cn(
35
- "border-b border-[var(--color-border-default)] transition-colors hover:bg-[var(--color-bg-subtle)]/50 data-[state=selected]:bg-[var(--color-bg-subtle)]",
35
+ "border-b border-[var(--color-outline-variant)] transition-colors hover:bg-[color-mix(in_srgb,var(--color-surface-container-low)_50%,transparent)] data-[state=selected]:bg-[var(--color-surface-container-low)]",
36
36
  className
37
37
  ),
38
38
  ...props
@@ -45,7 +45,7 @@ var Head = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ js
45
45
  {
46
46
  ref,
47
47
  className: cn(
48
- "h-10 px-4 text-left align-middle font-medium text-[var(--color-text-muted)] [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",
48
+ "h-10 px-4 text-start align-middle font-medium text-[var(--color-on-surface-muted)] [&:has([role=checkbox])]:pe-0 [&>[role=checkbox]]:translate-y-[2px]",
49
49
  className
50
50
  ),
51
51
  ...props
@@ -57,7 +57,7 @@ var Cell = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ js
57
57
  {
58
58
  ref,
59
59
  className: cn(
60
- "p-4 align-middle [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",
60
+ "p-4 align-middle [&:has([role=checkbox])]:pe-0 [&>[role=checkbox]]:translate-y-[2px]",
61
61
  className
62
62
  ),
63
63
  ...props
@@ -68,7 +68,7 @@ var Caption = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
68
68
  "caption",
69
69
  {
70
70
  ref,
71
- className: cn("mt-4 text-sm text-[var(--color-text-muted)]", className),
71
+ className: cn("mt-4 text-sm text-[var(--color-on-surface-muted)]", className),
72
72
  ...props
73
73
  }
74
74
  ));
@@ -1,4 +1,7 @@
1
1
  'use client';
2
+ import {
3
+ useIsomorphicLayoutEffect
4
+ } from "./chunk-NHUQLIHL.js";
2
5
  import {
3
6
  cn
4
7
  } from "./chunk-Q7G5WGYV.js";
@@ -8,7 +11,7 @@ import * as React from "react";
8
11
  import { cva } from "class-variance-authority";
9
12
  import { jsx } from "react/jsx-runtime";
10
13
  var progressTrackVariants = cva(
11
- "relative w-full overflow-hidden rounded-full bg-[var(--color-bg-muted)]",
14
+ "relative w-full overflow-hidden rounded-full bg-[var(--color-surface-container-high)]",
12
15
  {
13
16
  variants: {
14
17
  size: {
@@ -27,15 +30,15 @@ var progressFillVariants = cva(
27
30
  {
28
31
  variants: {
29
32
  tone: {
30
- neutral: "bg-[var(--color-neutral-500)]",
31
- info: "bg-[var(--color-semantic-info-default)]",
32
- success: "bg-[var(--color-semantic-success-default)]",
33
- warning: "bg-[var(--color-semantic-warning-default)]",
34
- danger: "bg-[var(--color-semantic-error-default)]",
35
- leap: "bg-[var(--color-leap-500)]",
36
- bookub: "bg-[var(--color-bookub-500)]",
37
- payub: "bg-[var(--color-payub-500)]",
38
- founderub: "bg-[var(--color-founderub-500)]"
33
+ neutral: "bg-[var(--color-outline)]",
34
+ info: "bg-[var(--color-info)]",
35
+ success: "bg-[var(--color-success)]",
36
+ warning: "bg-[var(--color-warning)]",
37
+ danger: "bg-[var(--color-error)]",
38
+ leap: "bg-[var(--color-leap)]",
39
+ bookub: "bg-[var(--color-bookub)]",
40
+ payub: "bg-[var(--color-payub)]",
41
+ founderub: "bg-[var(--color-founderub)]"
39
42
  },
40
43
  animated: {
41
44
  true: "bg-[length:200%_100%] animate-[progress-stripes_1s_linear_infinite]"
@@ -58,6 +61,10 @@ var Progress = React.forwardRef(
58
61
  }, ref) => {
59
62
  const clampedValue = Math.min(Math.max(value, 0), max);
60
63
  const percentage = clampedValue / max * 100;
64
+ const fillRef = React.useRef(null);
65
+ useIsomorphicLayoutEffect(() => {
66
+ fillRef.current?.style.setProperty("width", `${percentage}%`);
67
+ }, [percentage]);
61
68
  const isIndeterminate = value === void 0 || value === null;
62
69
  return /* @__PURE__ */ jsx(
63
70
  "div",
@@ -76,7 +83,8 @@ var Progress = React.forwardRef(
76
83
  progressFillVariants({ tone }),
77
84
  animated && "animate-pulse"
78
85
  ),
79
- style: { width: `${percentage}%` }
86
+ ref: fillRef,
87
+ "data-part": "fill"
80
88
  }
81
89
  )
82
90
  }
@@ -1,7 +1,7 @@
1
1
  'use client';
2
2
  import {
3
3
  floatingSurface
4
- } from "./chunk-KQPLFVFR.js";
4
+ } from "./chunk-FLZD7HQY.js";
5
5
  import {
6
6
  cn
7
7
  } from "./chunk-Q7G5WGYV.js";
@@ -56,7 +56,7 @@ var Trigger2 = React.forwardRef(
56
56
  ChevronDown,
57
57
  {
58
58
  size: "xs",
59
- className: "relative ml-1 transition duration-300 group-data-[state=open]:rotate-180",
59
+ className: "relative ms-1 transition duration-300 group-data-[state=open]:rotate-180",
60
60
  "aria-hidden": "true"
61
61
  }
62
62
  )
@@ -71,7 +71,7 @@ var Content2 = React.forwardRef(
71
71
  {
72
72
  ref,
73
73
  className: cn(
74
- "left-0 top-0 w-full data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 md:absolute md:w-auto",
74
+ "nx-motion start-0 top-0 w-full md:absolute md:w-auto",
75
75
  className
76
76
  ),
77
77
  ...props
@@ -94,14 +94,14 @@ var Link2 = React.forwardRef(
94
94
  );
95
95
  Link2.displayName = "NavigationMenu.Link";
96
96
  var Viewport2 = React.forwardRef(
97
- ({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", { className: "absolute left-0 top-full flex justify-center", children: /* @__PURE__ */ jsx(
97
+ ({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", { className: "absolute start-0 top-full flex justify-center", children: /* @__PURE__ */ jsx(
98
98
  RadixNav.Viewport,
99
99
  {
100
100
  ref,
101
101
  className: cn(
102
- "origin-top-center relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden",
102
+ "nx-motion nx-pop origin-top relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden",
103
103
  floatingSurface,
104
- "data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 md:w-[var(--radix-navigation-menu-viewport-width)]",
104
+ "md:w-[var(--radix-navigation-menu-viewport-width)]",
105
105
  className
106
106
  ),
107
107
  ...props
@@ -115,11 +115,11 @@ var Indicator2 = React.forwardRef(
115
115
  {
116
116
  ref,
117
117
  className: cn(
118
- "top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden data-[state=hidden]:animate-out data-[state=visible]:animate-in data-[state=hidden]:fade-out data-[state=visible]:fade-in",
118
+ "top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden transition-opacity duration-effects-fast ease-effects-fast data-[state=hidden]:opacity-0",
119
119
  className
120
120
  ),
121
121
  ...props,
122
- children: /* @__PURE__ */ jsx("div", { className: "relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-[var(--color-border-default)] shadow-md" })
122
+ children: /* @__PURE__ */ jsx("div", { className: "relative top-[60%] h-2 w-2 rotate-45 rounded-ss-[2px] bg-[var(--color-outline-variant)] shadow-elevation-1" })
123
123
  }
124
124
  )
125
125
  );
@@ -1,4 +1,7 @@
1
1
  'use client';
2
+ import {
3
+ toneTextClasses
4
+ } from "./chunk-C6JRJ6JW.js";
2
5
  import {
3
6
  cn
4
7
  } from "./chunk-Q7G5WGYV.js";
@@ -27,16 +30,16 @@ var labelVariants = cva(
27
30
  );
28
31
  var Label = React.forwardRef(
29
32
  ({ className, size, required, disabled, tone, style, children, ...props }, ref) => {
30
- const toneStyle = tone ? { color: `var(--color-text-${tone})` } : {};
31
33
  return /* @__PURE__ */ jsxs(
32
34
  "label",
33
35
  {
34
36
  ref,
35
37
  "data-tone": tone,
36
- style: { ...toneStyle, ...style },
38
+ style,
37
39
  className: cn(
38
40
  labelVariants({ size, disabled }),
39
- "text-[var(--color-text-primary)]",
41
+ "text-[var(--color-on-surface)]",
42
+ tone && toneTextClasses[tone],
40
43
  className
41
44
  ),
42
45
  ...props,
@@ -46,7 +49,7 @@ var Label = React.forwardRef(
46
49
  "span",
47
50
  {
48
51
  "aria-hidden": "true",
49
- className: "text-[var(--color-danger-500)] leading-none",
52
+ className: "text-[var(--color-error)] leading-none",
50
53
  children: "*"
51
54
  }
52
55
  )