@nexub/react 1.3.0 → 1.4.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 (201) hide show
  1. package/dist/{chunk-BYF223HT.js → chunk-2555JXCP.js} +1 -1
  2. package/dist/{chunk-6AZP6VBM.js → chunk-2FCSWBSM.js} +1 -1
  3. package/dist/{chunk-YJD66LTV.js → chunk-3AXIMXDU.js} +1 -1
  4. package/dist/{chunk-H4MXRAXP.js → chunk-3LP2CR7F.js} +1 -1
  5. package/dist/chunk-3TMIZQPR.js +49 -0
  6. package/dist/chunk-47UGX37F.js +21 -0
  7. package/dist/{chunk-PANDAMD2.js → chunk-4I5ULCYG.js} +1 -1
  8. package/dist/{chunk-3U54QLYB.js → chunk-4SSUM4CL.js} +1 -1
  9. package/dist/{chunk-KZW37FQZ.js → chunk-56FERRWW.js} +1 -1
  10. package/dist/{chunk-YUNWZAAD.js → chunk-5URGARPH.js} +8 -3
  11. package/dist/{chunk-QF7GUDOE.js → chunk-63DPMUMR.js} +1 -1
  12. package/dist/{chunk-BMVAZIAJ.js → chunk-6J3QTWKC.js} +1 -1
  13. package/dist/{chunk-2RLSIOGB.js → chunk-6QLLH6ID.js} +21 -11
  14. package/dist/{chunk-KWWV3CM3.js → chunk-6RBNM5RO.js} +1 -1
  15. package/dist/{chunk-WPPNDU2E.js → chunk-6SJPVQQW.js} +7 -6
  16. package/dist/{chunk-NAIZ7R2L.js → chunk-72I7EVOL.js} +1 -1
  17. package/dist/{chunk-UWWL5FPC.js → chunk-7Q7ZF6BY.js} +1 -1
  18. package/dist/chunk-7SXR4PGO.js +31 -0
  19. package/dist/{chunk-W4IEXUD4.js → chunk-7ZWBHHRK.js} +14 -11
  20. package/dist/{chunk-PER3O4FD.js → chunk-A4IMFAZX.js} +1 -1
  21. package/dist/{chunk-E3QPDCEV.js → chunk-AEBYQKLS.js} +34 -7
  22. package/dist/chunk-AHT35UWY.js +92 -0
  23. package/dist/chunk-B54WADL4.js +103 -0
  24. package/dist/{chunk-CMYEVLQT.js → chunk-BFRX6X4O.js} +9 -7
  25. package/dist/{chunk-KBB7M6WO.js → chunk-BTRTORKU.js} +1 -1
  26. package/dist/{chunk-TCTFQYLH.js → chunk-CHGPGRML.js} +1 -1
  27. package/dist/{chunk-U3AEA4BZ.js → chunk-CNNJFWFA.js} +1 -1
  28. package/dist/chunk-CWS37T3K.js +80 -0
  29. package/dist/chunk-DEIBF3P7.js +8 -0
  30. package/dist/{chunk-RIDDJUPA.js → chunk-DJZZ3FIP.js} +13 -4
  31. package/dist/{chunk-K7CUCLLI.js → chunk-DYWJ7BIK.js} +2 -2
  32. package/dist/{chunk-6Y734SXN.js → chunk-E4JM3HUM.js} +1 -1
  33. package/dist/{chunk-POFKKYHY.js → chunk-EQNETGTV.js} +1 -1
  34. package/dist/{chunk-BBVOB4EC.js → chunk-EZ23IA3H.js} +1 -1
  35. package/dist/{chunk-LOP63AVE.js → chunk-FD7YU53N.js} +1 -1
  36. package/dist/{chunk-CPV367VS.js → chunk-FHFVBOF3.js} +1 -1
  37. package/dist/chunk-GHCV6UXG.js +57 -0
  38. package/dist/{chunk-UALYS4XI.js → chunk-GIGOTRXX.js} +9 -4
  39. package/dist/{chunk-BTZW34TX.js → chunk-GRB6T2TT.js} +7 -6
  40. package/dist/chunk-GUB7YKG2.js +35 -0
  41. package/dist/{chunk-POBSY7EZ.js → chunk-H2W7IYVY.js} +1 -1
  42. package/dist/{chunk-I5Z3A7N3.js → chunk-HG6HTUWU.js} +2 -2
  43. package/dist/{chunk-DEH2Z27F.js → chunk-HJERFB7J.js} +1 -1
  44. package/dist/{chunk-FUJOSPNQ.js → chunk-I4URNMI7.js} +1 -1
  45. package/dist/{chunk-24CZFBTG.js → chunk-IIPYF6ZQ.js} +1 -1
  46. package/dist/{chunk-CVBAWKNG.js → chunk-IK23Q2OF.js} +32 -27
  47. package/dist/{chunk-4OCXGNP3.js → chunk-J2T4GFFS.js} +1 -1
  48. package/dist/{chunk-BJKW3G2L.js → chunk-J6TU45KP.js} +1 -1
  49. package/dist/{chunk-ELC2NBGH.js → chunk-JSD3H7WV.js} +1 -1
  50. package/dist/{chunk-46CFSBEO.js → chunk-KA2J5OBA.js} +3 -2
  51. package/dist/{chunk-OUBBOOZE.js → chunk-KM6Z3VTI.js} +1 -1
  52. package/dist/chunk-KQPLFVFR.js +27 -0
  53. package/dist/{chunk-MV7WMQI4.js → chunk-LDYD7WL3.js} +1 -1
  54. package/dist/{chunk-DOHXBNOP.js → chunk-LH3BSAIS.js} +1 -1
  55. package/dist/chunk-LMPGHWUA.js +114 -0
  56. package/dist/chunk-LZB3KTSH.js +61 -0
  57. package/dist/{chunk-BUBYXAJK.js → chunk-M7YB3MSW.js} +1 -1
  58. package/dist/{chunk-V3FZHIEB.js → chunk-NCRFKPA4.js} +1 -1
  59. package/dist/{chunk-QURKXXNS.js → chunk-NDCNVQ47.js} +1 -1
  60. package/dist/{chunk-JKTZMWWC.js → chunk-NIX4SEKM.js} +1 -1
  61. package/dist/{chunk-PBLEGOLM.js → chunk-NMH5WSZG.js} +6 -5
  62. package/dist/{chunk-ZFVBFCYV.js → chunk-NQVRF4RB.js} +1 -1
  63. package/dist/{chunk-IU76LV3W.js → chunk-OASFXI27.js} +6 -6
  64. package/dist/chunk-OJ2TLWYD.js +89 -0
  65. package/dist/{chunk-MY6XUJ5P.js → chunk-OJRSPDNJ.js} +21 -14
  66. package/dist/chunk-P26VJEIW.js +1 -0
  67. package/dist/{chunk-IBCYG6HR.js → chunk-P44EROBX.js} +1 -1
  68. package/dist/{chunk-52KTX5A7.js → chunk-PQ6GU7SG.js} +2 -2
  69. package/dist/{chunk-CZUNTABW.js → chunk-PVTACENM.js} +1 -1
  70. package/dist/{chunk-Y45JAJKW.js → chunk-PWBPHGM3.js} +2 -2
  71. package/dist/chunk-Q7G5WGYV.js +33 -0
  72. package/dist/{chunk-BYCTJHXY.js → chunk-QCNLE27O.js} +2 -2
  73. package/dist/{chunk-7W2YDJ5W.js → chunk-QD7H3WV3.js} +10 -7
  74. package/dist/{chunk-HW3I7I3R.js → chunk-RB4CVS22.js} +1 -1
  75. package/dist/{chunk-ZLSUVZM2.js → chunk-RHOYF7MO.js} +17 -11
  76. package/dist/{chunk-QHJ43Q2T.js → chunk-RLE5RN3T.js} +1 -1
  77. package/dist/{chunk-7B4FS7VQ.js → chunk-RTDUTWJ4.js} +31 -14
  78. package/dist/{chunk-DR2Y3PIT.js → chunk-S46W2QER.js} +1 -1
  79. package/dist/{chunk-LAWZQ6R6.js → chunk-SVQCINRE.js} +1 -1
  80. package/dist/{chunk-6MYVXJPJ.js → chunk-SY6V3HAK.js} +17 -23
  81. package/dist/{chunk-OZPPL76D.js → chunk-T5BS4OIV.js} +1 -1
  82. package/dist/{chunk-VT7RKY46.js → chunk-TEOLG3N2.js} +1 -1
  83. package/dist/{chunk-A7L75YXY.js → chunk-TJCHA3OI.js} +2 -2
  84. package/dist/chunk-TNBBQ7IP.js +43 -0
  85. package/dist/{chunk-IHW2L532.js → chunk-TYTW4F3B.js} +12 -9
  86. package/dist/{chunk-T4IVMVMQ.js → chunk-UMC64NCT.js} +1 -1
  87. package/dist/{chunk-UTBUIBEP.js → chunk-UVWCZHLD.js} +1 -1
  88. package/dist/chunk-V3TETH4J.js +146 -0
  89. package/dist/{chunk-SZKUSLHI.js → chunk-VTL3GJJG.js} +21 -11
  90. package/dist/{chunk-JQDLCN5D.js → chunk-W2NEXOTG.js} +1 -1
  91. package/dist/{chunk-XNDCVVNE.js → chunk-WESZPFBZ.js} +2 -2
  92. package/dist/{chunk-DD6XCW6R.js → chunk-XR4NBY54.js} +1 -1
  93. package/dist/{chunk-YGOR3KT7.js → chunk-YJ3JQYAN.js} +1 -1
  94. package/dist/chunk-YRDCY6BI.js +55 -0
  95. package/dist/{chunk-2VDP2ML4.js → chunk-Z3IG5WRA.js} +10 -9
  96. package/dist/{chunk-YUFCNHZF.js → chunk-ZV3AF5CL.js} +1 -1
  97. package/dist/components/Accordion/index.js +2 -2
  98. package/dist/components/Alert/index.js +2 -2
  99. package/dist/components/AlertDialog/index.js +6 -2
  100. package/dist/components/AppShell/index.js +2 -2
  101. package/dist/components/AspectRatio/index.js +2 -2
  102. package/dist/components/Autocomplete/index.js +3 -3
  103. package/dist/components/Avatar/index.js +2 -2
  104. package/dist/components/AvatarGroup/index.js +3 -3
  105. package/dist/components/Badge/index.js +2 -2
  106. package/dist/components/Banner/index.js +2 -2
  107. package/dist/components/Box/index.js +2 -2
  108. package/dist/components/Breadcrumb/index.js +2 -2
  109. package/dist/components/Button/index.js +5 -2
  110. package/dist/components/ButtonGroup/index.js +2 -2
  111. package/dist/components/Callout/index.js +2 -2
  112. package/dist/components/Card/index.js +3 -3
  113. package/dist/components/CheckList/index.js +2 -2
  114. package/dist/components/Checkbox/index.js +2 -2
  115. package/dist/components/Chip/index.js +2 -2
  116. package/dist/components/Code/index.js +2 -2
  117. package/dist/components/Collapsible/index.js +2 -2
  118. package/dist/components/Combobox/index.js +2 -2
  119. package/dist/components/CommandPalette/index.js +4 -2
  120. package/dist/components/Container/index.js +2 -2
  121. package/dist/components/ContextMenu/index.js +3 -2
  122. package/dist/components/CountryBadge/index.js +3 -3
  123. package/dist/components/DataTable/index.js +2 -2
  124. package/dist/components/DatePicker/index.js +2 -2
  125. package/dist/components/DateRangePicker/index.js +2 -2
  126. package/dist/components/Dialog/index.js +4 -3
  127. package/dist/components/Drawer/index.js +5 -3
  128. package/dist/components/DropdownMenu/index.js +3 -2
  129. package/dist/components/EmptyState/index.js +2 -2
  130. package/dist/components/ErrorState/index.js +2 -2
  131. package/dist/components/EyebrowChip/index.js +2 -2
  132. package/dist/components/FileUpload/index.js +2 -2
  133. package/dist/components/FilterChip/index.js +2 -2
  134. package/dist/components/Flag/index.js +2 -2
  135. package/dist/components/Flex/index.js +2 -2
  136. package/dist/components/FormError/index.js +2 -2
  137. package/dist/components/FormField/index.js +5 -5
  138. package/dist/components/GradientDivider/index.js +2 -2
  139. package/dist/components/Grid/index.js +2 -2
  140. package/dist/components/Heading/index.js +2 -2
  141. package/dist/components/HelperText/index.js +2 -2
  142. package/dist/components/HoverCard/index.js +3 -2
  143. package/dist/components/IconButton/index.js +3 -2
  144. package/dist/components/Input/index.js +3 -2
  145. package/dist/components/Kbd/index.js +2 -2
  146. package/dist/components/KeyboardShortcut/index.js +3 -3
  147. package/dist/components/Label/index.js +2 -2
  148. package/dist/components/Link/index.js +2 -2
  149. package/dist/components/Logo/index.js +2 -2
  150. package/dist/components/Menubar/index.js +3 -2
  151. package/dist/components/NavigationMenu/index.js +3 -2
  152. package/dist/components/NumberInput/index.js +4 -3
  153. package/dist/components/PageHeader/index.js +2 -2
  154. package/dist/components/Pagination/index.js +2 -2
  155. package/dist/components/PasswordInput/index.js +4 -3
  156. package/dist/components/Popover/index.js +4 -3
  157. package/dist/components/Progress/index.js +2 -2
  158. package/dist/components/RadioGroup/index.js +2 -2
  159. package/dist/components/Rating/index.js +2 -2
  160. package/dist/components/ScrollArea/index.js +2 -2
  161. package/dist/components/SearchInput/index.js +4 -3
  162. package/dist/components/Section/index.js +2 -2
  163. package/dist/components/SegmentedControl/index.js +4 -2
  164. package/dist/components/Select/index.js +4 -2
  165. package/dist/components/Separator/index.js +2 -2
  166. package/dist/components/Sidebar/index.js +2 -2
  167. package/dist/components/Skeleton/index.js +2 -2
  168. package/dist/components/Slider/index.js +2 -2
  169. package/dist/components/Spinner/index.js +2 -2
  170. package/dist/components/Stack/index.js +2 -2
  171. package/dist/components/StatusPill/index.js +2 -2
  172. package/dist/components/Switch/index.js +2 -2
  173. package/dist/components/Table/index.js +2 -2
  174. package/dist/components/Tabs/index.js +4 -2
  175. package/dist/components/Tag/index.js +2 -2
  176. package/dist/components/Text/index.js +2 -2
  177. package/dist/components/TextGradient/index.js +2 -2
  178. package/dist/components/Textarea/index.js +3 -2
  179. package/dist/components/ThemeProvider/index.js +1 -1
  180. package/dist/components/Toast/index.js +2 -2
  181. package/dist/components/Toggle/index.js +2 -2
  182. package/dist/components/ToggleGroup/index.js +3 -3
  183. package/dist/components/Toolbar/index.js +2 -2
  184. package/dist/components/Tooltip/index.js +2 -2
  185. package/dist/components/TopNav/index.js +3 -3
  186. package/dist/index.d.ts +47 -19
  187. package/dist/index.js +130 -141
  188. package/package.json +8 -5
  189. package/dist/chunk-3CSKW56L.js +0 -44
  190. package/dist/chunk-AT6RPKU3.js +0 -12
  191. package/dist/chunk-BGY23Y5O.js +0 -104
  192. package/dist/chunk-DAXDAFNG.js +0 -92
  193. package/dist/chunk-EVCTOIRS.js +0 -66
  194. package/dist/chunk-GTQIA62H.js +0 -60
  195. package/dist/chunk-JCUVWDUC.js +0 -57
  196. package/dist/chunk-N2GIMMTF.js +0 -98
  197. package/dist/chunk-P6BZNFVU.js +0 -38
  198. package/dist/chunk-QRZV2FLW.js +0 -106
  199. package/dist/chunk-ROZVVWPV.js +0 -8
  200. package/dist/chunk-U3EGB3JL.js +0 -43
  201. package/dist/chunk-VPZCQFVY.js +0 -33
@@ -0,0 +1,103 @@
1
+ 'use client';
2
+ import {
3
+ cn
4
+ } from "./chunk-Q7G5WGYV.js";
5
+
6
+ // src/components/Badge/Badge.tsx
7
+ import * as React from "react";
8
+ import { cva } from "class-variance-authority";
9
+ import { jsx, jsxs } from "react/jsx-runtime";
10
+ var badgeVariants = cva(
11
+ [
12
+ "inline-flex items-center gap-1 rounded-shape-control whitespace-nowrap select-none"
13
+ ],
14
+ {
15
+ variants: {
16
+ size: {
17
+ sm: "h-5 px-2 text-label-sm",
18
+ md: "h-6 px-2.5 text-label-md",
19
+ lg: "h-7 px-3 text-label-lg"
20
+ },
21
+ variant: {
22
+ solid: "",
23
+ soft: "",
24
+ outline: "bg-transparent border"
25
+ }
26
+ },
27
+ defaultVariants: {
28
+ size: "md",
29
+ variant: "solid"
30
+ }
31
+ }
32
+ );
33
+ var toneClasses = {
34
+ neutral: {
35
+ solid: "bg-[var(--color-inverse-surface)] text-[var(--color-inverse-on-surface)]",
36
+ soft: "bg-[var(--color-surface-container-high)] text-[var(--color-on-surface-variant)]",
37
+ outline: "border-[var(--color-outline-variant)] text-[var(--color-on-surface-variant)]"
38
+ },
39
+ info: {
40
+ solid: "bg-[var(--color-info)] text-[var(--color-on-info)]",
41
+ soft: "bg-[var(--color-info-container)] text-[var(--color-on-info-container)]",
42
+ outline: "border-[color-mix(in_srgb,var(--color-info)_50%,transparent)] text-[var(--color-info)]"
43
+ },
44
+ success: {
45
+ solid: "bg-[var(--color-success)] text-[var(--color-on-success)]",
46
+ soft: "bg-[var(--color-success-container)] text-[var(--color-on-success-container)]",
47
+ outline: "border-[color-mix(in_srgb,var(--color-success)_50%,transparent)] text-[var(--color-success)]"
48
+ },
49
+ warning: {
50
+ solid: "bg-[var(--color-warning)] text-[var(--color-on-warning)]",
51
+ soft: "bg-[var(--color-warning-container)] text-[var(--color-on-warning-container)]",
52
+ outline: "border-[color-mix(in_srgb,var(--color-warning)_50%,transparent)] text-[var(--color-warning)]"
53
+ },
54
+ danger: {
55
+ solid: "bg-[var(--color-error)] text-[var(--color-on-error)]",
56
+ soft: "bg-[var(--color-error-container)] text-[var(--color-on-error-container)]",
57
+ outline: "border-[color-mix(in_srgb,var(--color-error)_50%,transparent)] text-[var(--color-error)]"
58
+ },
59
+ leap: {
60
+ solid: "bg-[color:light-dark(var(--color-palette-leap-40),var(--color-palette-leap-80))] text-[color:light-dark(var(--color-palette-leap-100),var(--color-palette-leap-20))]",
61
+ soft: "bg-[color:light-dark(var(--color-palette-leap-90),var(--color-palette-leap-30))] text-[color:light-dark(var(--color-palette-leap-10),var(--color-palette-leap-90))]",
62
+ outline: "border-[color:light-dark(var(--color-palette-leap-80),var(--color-palette-leap-40))] text-[color:light-dark(var(--color-palette-leap-40),var(--color-palette-leap-80))]"
63
+ },
64
+ bookub: {
65
+ solid: "bg-[color:light-dark(var(--color-palette-bookub-40),var(--color-palette-bookub-80))] text-[color:light-dark(var(--color-palette-bookub-100),var(--color-palette-bookub-20))]",
66
+ soft: "bg-[color:light-dark(var(--color-palette-bookub-90),var(--color-palette-bookub-30))] text-[color:light-dark(var(--color-palette-bookub-10),var(--color-palette-bookub-90))]",
67
+ outline: "border-[color:light-dark(var(--color-palette-bookub-80),var(--color-palette-bookub-40))] text-[color:light-dark(var(--color-palette-bookub-40),var(--color-palette-bookub-80))]"
68
+ },
69
+ payub: {
70
+ solid: "bg-[color:light-dark(var(--color-palette-payub-40),var(--color-palette-payub-80))] text-[color:light-dark(var(--color-palette-payub-100),var(--color-palette-payub-20))]",
71
+ soft: "bg-[color:light-dark(var(--color-palette-payub-90),var(--color-palette-payub-30))] text-[color:light-dark(var(--color-palette-payub-10),var(--color-palette-payub-90))]",
72
+ outline: "border-[color:light-dark(var(--color-palette-payub-80),var(--color-palette-payub-40))] text-[color:light-dark(var(--color-palette-payub-40),var(--color-palette-payub-80))]"
73
+ },
74
+ founderub: {
75
+ solid: "bg-[color:light-dark(var(--color-palette-founderub-40),var(--color-palette-founderub-80))] text-[color:light-dark(var(--color-palette-founderub-100),var(--color-palette-founderub-20))]",
76
+ soft: "bg-[color:light-dark(var(--color-palette-founderub-90),var(--color-palette-founderub-30))] text-[color:light-dark(var(--color-palette-founderub-10),var(--color-palette-founderub-90))]",
77
+ outline: "border-[color:light-dark(var(--color-palette-founderub-80),var(--color-palette-founderub-40))] text-[color:light-dark(var(--color-palette-founderub-40),var(--color-palette-founderub-80))]"
78
+ }
79
+ };
80
+ var Badge = React.forwardRef(
81
+ ({ className, size, variant = "solid", tone = "neutral", leadingIcon, children, ...props }, ref) => {
82
+ const resolvedVariant = variant ?? "solid";
83
+ const toneStyle = toneClasses[tone][resolvedVariant];
84
+ return /* @__PURE__ */ jsxs(
85
+ "span",
86
+ {
87
+ ref,
88
+ className: cn(badgeVariants({ size, variant: resolvedVariant }), toneStyle, className),
89
+ ...props,
90
+ children: [
91
+ leadingIcon && /* @__PURE__ */ jsx("span", { className: "shrink-0 inline-flex items-center", children: leadingIcon }),
92
+ children
93
+ ]
94
+ }
95
+ );
96
+ }
97
+ );
98
+ Badge.displayName = "Badge";
99
+
100
+ export {
101
+ badgeVariants,
102
+ Badge
103
+ };
@@ -1,7 +1,7 @@
1
1
  'use client';
2
2
  import {
3
3
  cn
4
- } from "./chunk-AT6RPKU3.js";
4
+ } from "./chunk-Q7G5WGYV.js";
5
5
 
6
6
  // src/components/Sidebar/Sidebar.tsx
7
7
  import * as React from "react";
@@ -15,7 +15,8 @@ var Root = React.forwardRef(
15
15
  "aria-label": "Sidebar",
16
16
  "data-collapsed": collapsed,
17
17
  className: cn(
18
- "group/sidebar flex flex-col gap-1 bg-[var(--color-bg-default)] border-r border-[var(--color-border-default)] transition-all duration-200",
18
+ // Chrome recedes: a tonal panel, no divider.
19
+ "group/sidebar flex flex-col gap-1 bg-[var(--color-surface-container-low)] transition-[width] duration-spatial-default ease-spatial-default",
19
20
  collapsed ? "w-[var(--size-nav-sidebar-collapsed,56px)]" : "w-[var(--size-nav-sidebar,240px)]",
20
21
  "h-full overflow-y-auto overflow-x-hidden",
21
22
  className
@@ -33,7 +34,7 @@ var Header = React.forwardRef(
33
34
  className: cn(
34
35
  // Wraps instead of overlapping: the status drops to its own line when
35
36
  // the logo needs the width, and a logo wider than the sidebar truncates.
36
- "flex shrink-0 flex-wrap items-center justify-between gap-x-3 gap-y-2 border-b border-[var(--color-border-default)] px-3 py-3 group-data-[collapsed=true]/sidebar:justify-center group-data-[collapsed=true]/sidebar:px-2",
37
+ "flex shrink-0 flex-wrap items-center justify-between gap-x-3 gap-y-2 border-b border-[var(--color-outline-variant)] px-3 py-3 group-data-[collapsed=true]/sidebar:justify-center group-data-[collapsed=true]/sidebar:px-2",
37
38
  className
38
39
  ),
39
40
  ...props,
@@ -66,8 +67,9 @@ var Item = React.forwardRef(
66
67
  // Native tooltip for the icon-only collapsed state.
67
68
  title: typeof label === "string" ? label : void 0,
68
69
  className: cn(
69
- "flex items-center gap-3 rounded-md px-3 py-2 text-sm font-medium transition-colors",
70
- active ? "bg-[var(--color-fill-primary)] text-white" : "text-[var(--color-text-primary)] hover:bg-[var(--color-bg-subtle)]",
70
+ // Active = the secondary-container pill (M3 nav indicator), not a solid brand fill.
71
+ "nx-state-layer relative flex h-control-md items-center gap-3 rounded-shape-control px-3 text-label-lg",
72
+ active ? "bg-[var(--color-secondary-container)] text-[var(--color-on-secondary-container)]" : "text-[var(--color-on-surface-variant)]",
71
73
  className
72
74
  ),
73
75
  ...props
@@ -81,7 +83,7 @@ var Separator = React.forwardRef(
81
83
  "hr",
82
84
  {
83
85
  ref,
84
- className: cn("my-2 border-[var(--color-border-default)]", className),
86
+ className: cn("my-2 border-[var(--color-outline-variant)]", className),
85
87
  ...props
86
88
  }
87
89
  )
@@ -93,7 +95,7 @@ var Footer = React.forwardRef(
93
95
  {
94
96
  ref,
95
97
  className: cn(
96
- "mt-auto border-t border-[var(--color-border-default)] p-4",
98
+ "mt-auto border-t border-[var(--color-outline-variant)] p-4",
97
99
  className
98
100
  ),
99
101
  ...props
@@ -1,7 +1,7 @@
1
1
  'use client';
2
2
  import {
3
3
  cn
4
- } from "./chunk-AT6RPKU3.js";
4
+ } from "./chunk-Q7G5WGYV.js";
5
5
 
6
6
  // src/components/Stack/Stack.tsx
7
7
  import * as React from "react";
@@ -1,7 +1,7 @@
1
1
  'use client';
2
2
  import {
3
3
  cn
4
- } from "./chunk-AT6RPKU3.js";
4
+ } from "./chunk-Q7G5WGYV.js";
5
5
 
6
6
  // src/components/DateRangePicker/DateRangePicker.tsx
7
7
  import * as React from "react";
@@ -1,7 +1,7 @@
1
1
  'use client';
2
2
  import {
3
3
  cn
4
- } from "./chunk-AT6RPKU3.js";
4
+ } from "./chunk-Q7G5WGYV.js";
5
5
 
6
6
  // src/components/Link/Link.tsx
7
7
  import * as React from "react";
@@ -0,0 +1,80 @@
1
+ 'use client';
2
+ import {
3
+ useMergedRefs,
4
+ useSlidingIndicator
5
+ } from "./chunk-YRDCY6BI.js";
6
+ import {
7
+ cn
8
+ } from "./chunk-Q7G5WGYV.js";
9
+
10
+ // src/components/SegmentedControl/SegmentedControl.tsx
11
+ import * as React from "react";
12
+ import * as RadixToggleGroup from "@radix-ui/react-toggle-group";
13
+ import { jsx, jsxs } from "react/jsx-runtime";
14
+ var sizeMap = {
15
+ sm: "h-control-sm text-label-md",
16
+ md: "h-control-md text-label-lg",
17
+ lg: "h-control-lg text-label-lg"
18
+ };
19
+ var SegmentedControlContext = React.createContext({ size: "md" });
20
+ var Root2 = React.forwardRef(
21
+ ({ className, size = "md", children, ...props }, forwardedRef) => {
22
+ const ref = React.useRef(null);
23
+ useSlidingIndicator(ref, '[data-state="on"]');
24
+ return /* @__PURE__ */ jsx(SegmentedControlContext.Provider, { value: { size }, children: /* @__PURE__ */ jsxs(
25
+ RadixToggleGroup.Root,
26
+ {
27
+ ref: useMergedRefs(ref, forwardedRef),
28
+ type: "single",
29
+ className: cn(
30
+ "relative inline-flex items-stretch rounded-shape-control bg-[var(--color-surface-container-high)] p-0.5",
31
+ sizeMap[size],
32
+ className
33
+ ),
34
+ ...props,
35
+ children: [
36
+ /* @__PURE__ */ jsx(
37
+ "span",
38
+ {
39
+ "aria-hidden": "true",
40
+ className: cn(
41
+ "pointer-events-none absolute inset-y-0.5 left-0 rounded-shape-control",
42
+ "bg-[var(--color-surface-container-lowest)] shadow-elevation-1",
43
+ "w-[var(--nx-ind-w,0px)] translate-x-[var(--nx-ind-x,0px)] opacity-[var(--nx-ind-o,0)]",
44
+ "[[data-nx-indicator=ready]>&]:transition-[transform,width] [[data-nx-indicator=ready]>&]:duration-spatial-default [[data-nx-indicator=ready]>&]:ease-spatial-default"
45
+ )
46
+ }
47
+ ),
48
+ children
49
+ ]
50
+ }
51
+ ) });
52
+ }
53
+ );
54
+ Root2.displayName = "SegmentedControl.Root";
55
+ var Item2 = React.forwardRef(
56
+ ({ className, ...props }, ref) => {
57
+ const { size } = React.useContext(SegmentedControlContext);
58
+ return /* @__PURE__ */ jsx(
59
+ RadixToggleGroup.Item,
60
+ {
61
+ ref,
62
+ className: cn(
63
+ "relative z-10 inline-flex items-center justify-center rounded-shape-control select-none",
64
+ size === "sm" ? "px-3" : size === "lg" ? "px-5" : "px-4",
65
+ "text-[var(--color-on-surface-variant)] transition-colors duration-effects-fast ease-effects-fast",
66
+ "hover:text-[var(--color-on-surface)] data-[state=on]:text-[var(--color-on-surface)]",
67
+ "disabled:pointer-events-none disabled:text-[var(--color-text-disabled)]",
68
+ className
69
+ ),
70
+ ...props
71
+ }
72
+ );
73
+ }
74
+ );
75
+ Item2.displayName = "SegmentedControl.Item";
76
+ var SegmentedControl = { Root: Root2, Item: Item2 };
77
+
78
+ export {
79
+ SegmentedControl
80
+ };
@@ -0,0 +1,8 @@
1
+ 'use client';
2
+
3
+ // src/utils/glass.ts
4
+ var glassSurfaceClass = "border bg-[var(--glass-bg)] border-[var(--glass-border)] [-webkit-backdrop-filter:var(--glass-filter)] [backdrop-filter:var(--glass-filter)] [box-shadow:var(--glass-shadow)]";
5
+
6
+ export {
7
+ glassSurfaceClass
8
+ };
@@ -1,10 +1,15 @@
1
1
  'use client';
2
+ import {
3
+ enterExit,
4
+ overlaySurface,
5
+ scrim
6
+ } from "./chunk-KQPLFVFR.js";
2
7
  import {
3
8
  glassSurfaceClass
4
- } from "./chunk-ROZVVWPV.js";
9
+ } from "./chunk-DEIBF3P7.js";
5
10
  import {
6
11
  cn
7
- } from "./chunk-AT6RPKU3.js";
12
+ } from "./chunk-Q7G5WGYV.js";
8
13
 
9
14
  // src/components/Dialog/Dialog.tsx
10
15
  import * as React from "react";
@@ -21,7 +26,9 @@ var Overlay2 = React.forwardRef(
21
26
  {
22
27
  ref,
23
28
  className: cn(
24
- "fixed inset-0 z-[var(--z-modal)] bg-[var(--color-overlay)] backdrop-blur-sm",
29
+ "fixed inset-0 z-[var(--z-modal)]",
30
+ scrim,
31
+ enterExit,
25
32
  "data-[state=open]:animate-in data-[state=closed]:animate-out",
26
33
  "data-[state=open]:fade-in-0 data-[state=closed]:fade-out-0",
27
34
  className
@@ -47,7 +54,8 @@ var Content2 = React.forwardRef(
47
54
  ref,
48
55
  className: cn(
49
56
  "fixed left-1/2 top-1/2 z-[var(--z-modal)] w-[calc(100%-2rem)] -translate-x-1/2 -translate-y-1/2",
50
- "rounded-xl border border-[var(--color-border-default)] bg-[var(--color-bg-default)] shadow-xl",
57
+ overlaySurface,
58
+ enterExit,
51
59
  "max-h-[90vh] overflow-y-auto p-6 focus:outline-none",
52
60
  "data-[state=open]:animate-in data-[state=closed]:animate-out",
53
61
  "data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95",
@@ -59,6 +67,7 @@ var Content2 = React.forwardRef(
59
67
  className
60
68
  ),
61
69
  "data-material": surface === "glass" ? "glass" : void 0,
70
+ "data-glass-thickness": surface === "glass" ? "thick" : void 0,
62
71
  ...props,
63
72
  children
64
73
  }
@@ -1,10 +1,10 @@
1
1
  'use client';
2
2
  import {
3
3
  toggleVariants
4
- } from "./chunk-U3EGB3JL.js";
4
+ } from "./chunk-3TMIZQPR.js";
5
5
  import {
6
6
  cn
7
- } from "./chunk-AT6RPKU3.js";
7
+ } from "./chunk-Q7G5WGYV.js";
8
8
 
9
9
  // src/components/ToggleGroup/ToggleGroup.tsx
10
10
  import * as React from "react";
@@ -1,7 +1,7 @@
1
1
  'use client';
2
2
  import {
3
3
  cn
4
- } from "./chunk-AT6RPKU3.js";
4
+ } from "./chunk-Q7G5WGYV.js";
5
5
 
6
6
  // src/components/Container/Container.tsx
7
7
  import * as React from "react";
@@ -1,7 +1,7 @@
1
1
  'use client';
2
2
  import {
3
3
  cn
4
- } from "./chunk-AT6RPKU3.js";
4
+ } from "./chunk-Q7G5WGYV.js";
5
5
 
6
6
  // src/components/Flag/Flag.tsx
7
7
  import * as React from "react";
@@ -1,7 +1,7 @@
1
1
  'use client';
2
2
  import {
3
3
  cn
4
- } from "./chunk-AT6RPKU3.js";
4
+ } from "./chunk-Q7G5WGYV.js";
5
5
 
6
6
  // src/components/ScrollArea/ScrollArea.tsx
7
7
  import * as React from "react";
@@ -1,7 +1,7 @@
1
1
  'use client';
2
2
  import {
3
3
  cn
4
- } from "./chunk-AT6RPKU3.js";
4
+ } from "./chunk-Q7G5WGYV.js";
5
5
 
6
6
  // src/components/Section/Section.tsx
7
7
  import * as React from "react";
@@ -1,7 +1,7 @@
1
1
  'use client';
2
2
  import {
3
3
  cn
4
- } from "./chunk-AT6RPKU3.js";
4
+ } from "./chunk-Q7G5WGYV.js";
5
5
 
6
6
  // src/components/Avatar/Avatar.tsx
7
7
  import * as React from "react";
@@ -0,0 +1,57 @@
1
+ 'use client';
2
+ import {
3
+ cn
4
+ } from "./chunk-Q7G5WGYV.js";
5
+
6
+ // src/components/Switch/Switch.tsx
7
+ import * as React from "react";
8
+ import * as RadixSwitch from "@radix-ui/react-switch";
9
+ import { cva } from "class-variance-authority";
10
+ import { jsx } from "react/jsx-runtime";
11
+ var switchVariants = cva(
12
+ // Off: tonal track with a 2px outline (>= 3:1, WCAG 1.4.11). On: primary.
13
+ // Focus = the global ring (it follows the capsule).
14
+ [
15
+ "peer inline-flex shrink-0 cursor-pointer items-center rounded-full border-2",
16
+ "transition-[background-color,border-color] duration-effects-fast ease-effects-fast",
17
+ "data-[state=unchecked]:bg-[var(--color-surface-container-highest)] data-[state=unchecked]:border-[var(--color-outline)]",
18
+ "data-[state=checked]:bg-[var(--color-primary)] data-[state=checked]:border-[var(--color-primary)]",
19
+ "disabled:cursor-not-allowed disabled:border-[var(--color-text-disabled)] disabled:bg-[color-mix(in_srgb,var(--color-on-surface)_12%,transparent)] disabled:data-[state=checked]:bg-[var(--color-text-disabled)] disabled:data-[state=checked]:border-transparent disabled:data-[state=unchecked]:border-[var(--color-outline-variant)]"
20
+ ],
21
+ {
22
+ variants: {
23
+ size: {
24
+ sm: "h-5 w-9",
25
+ md: "h-7 w-12",
26
+ lg: "h-8 w-14"
27
+ }
28
+ },
29
+ defaultVariants: { size: "md" }
30
+ }
31
+ );
32
+ var thumbVariants = cva(
33
+ // The thumb slides on the expressive spring (a toggle is a key moment).
34
+ [
35
+ "pointer-events-none block rounded-full shadow-elevation-1",
36
+ "transition-[transform,background-color] duration-expressive-fast ease-expressive-fast",
37
+ "translate-x-0.5 data-[state=unchecked]:bg-[var(--color-outline)] data-[state=checked]:bg-[var(--color-on-primary)] data-[disabled]:data-[state=unchecked]:bg-[var(--color-outline-variant)]"
38
+ ],
39
+ {
40
+ variants: {
41
+ size: {
42
+ sm: "h-3 w-3 data-[state=checked]:translate-x-[18px]",
43
+ md: "h-5 w-5 data-[state=checked]:translate-x-[22px]",
44
+ lg: "h-6 w-6 data-[state=checked]:translate-x-[26px]"
45
+ }
46
+ },
47
+ defaultVariants: { size: "md" }
48
+ }
49
+ );
50
+ var Switch = React.forwardRef(
51
+ ({ className, size, ...props }, ref) => /* @__PURE__ */ jsx(RadixSwitch.Root, { ref, className: cn(switchVariants({ size }), className), ...props, children: /* @__PURE__ */ jsx(RadixSwitch.Thumb, { className: cn(thumbVariants({ size })) }) })
52
+ );
53
+ Switch.displayName = "Switch";
54
+
55
+ export {
56
+ Switch
57
+ };
@@ -1,10 +1,14 @@
1
1
  'use client';
2
+ import {
3
+ enterExit,
4
+ floatingSurface
5
+ } from "./chunk-KQPLFVFR.js";
2
6
  import {
3
7
  glassSurfaceClass
4
- } from "./chunk-ROZVVWPV.js";
8
+ } from "./chunk-DEIBF3P7.js";
5
9
  import {
6
10
  cn
7
- } from "./chunk-AT6RPKU3.js";
11
+ } from "./chunk-Q7G5WGYV.js";
8
12
 
9
13
  // src/components/Popover/Popover.tsx
10
14
  import * as React from "react";
@@ -22,8 +26,9 @@ var Content2 = React.forwardRef(
22
26
  ref,
23
27
  sideOffset,
24
28
  className: cn(
25
- "z-[var(--z-popover)] rounded-lg border border-[var(--color-border-default)]",
26
- "bg-[var(--color-bg-default)] p-4 shadow-md",
29
+ "z-[var(--z-popover)] p-4 outline-none",
30
+ floatingSurface,
31
+ enterExit,
27
32
  "outline-none",
28
33
  "data-[state=open]:animate-in data-[state=closed]:animate-out",
29
34
  "data-[state=open]:fade-in-0 data-[state=closed]:fade-out-0",
@@ -1,26 +1,27 @@
1
1
  'use client';
2
2
  import {
3
3
  glassSurfaceClass
4
- } from "./chunk-ROZVVWPV.js";
4
+ } from "./chunk-DEIBF3P7.js";
5
5
  import {
6
6
  cn
7
- } from "./chunk-AT6RPKU3.js";
7
+ } from "./chunk-Q7G5WGYV.js";
8
8
 
9
9
  // src/components/TopNav/TopNav.tsx
10
10
  import * as React from "react";
11
11
  import { Slot } from "@radix-ui/react-slot";
12
12
  import { jsx } from "react/jsx-runtime";
13
13
  var Root = React.forwardRef(
14
- ({ className, children, surface = "solid", ...props }, ref) => /* @__PURE__ */ jsx(
14
+ ({ className, children, surface = "solid", scrollEdge, ...props }, ref) => /* @__PURE__ */ jsx(
15
15
  "header",
16
16
  {
17
17
  ref,
18
18
  className: cn(
19
- "sticky top-0 z-[var(--z-sticky,100)] flex h-[var(--size-nav-header,64px)] items-center border-b border-[var(--color-border-default)] bg-[var(--color-bg-default)] px-4",
19
+ "sticky top-0 z-[var(--z-sticky,100)] flex h-[var(--size-nav-header,64px)] items-center border-b border-[var(--color-outline-variant)] bg-[var(--color-surface)] px-4",
20
20
  surface === "glass" && glassSurfaceClass,
21
21
  className
22
22
  ),
23
23
  "data-material": surface === "glass" ? "glass" : void 0,
24
+ "data-scroll-edge": scrollEdge,
24
25
  ...props,
25
26
  children: /* @__PURE__ */ jsx("div", { className: "flex w-full items-center gap-4", children })
26
27
  }
@@ -55,8 +56,8 @@ var Item = React.forwardRef(
55
56
  ref,
56
57
  "aria-current": active ? "page" : void 0,
57
58
  className: cn(
58
- "inline-flex h-9 shrink-0 items-center rounded-md px-4 text-sm font-medium transition-colors",
59
- active ? "bg-[var(--color-bg-subtle)] text-[var(--color-text-primary)]" : "text-[var(--color-text-muted)] hover:bg-[var(--color-bg-subtle)] hover:text-[var(--color-text-primary)]",
59
+ "nx-state-layer relative inline-flex h-control-sm shrink-0 items-center rounded-shape-control px-3.5 text-label-lg",
60
+ active ? "bg-[var(--color-secondary-container)] text-[var(--color-on-secondary-container)]" : "text-[var(--color-on-surface-variant)]",
60
61
  className
61
62
  ),
62
63
  ...props
@@ -0,0 +1,35 @@
1
+ 'use client';
2
+ import {
3
+ cn
4
+ } from "./chunk-Q7G5WGYV.js";
5
+
6
+ // src/components/Checkbox/Checkbox.tsx
7
+ import * as React from "react";
8
+ import * as RadixCheckbox from "@radix-ui/react-checkbox";
9
+ import { Check, Minus } from "@nexub/icons";
10
+ import { jsx } from "react/jsx-runtime";
11
+ var Checkbox = React.forwardRef(
12
+ ({ className, ...props }, ref) => /* @__PURE__ */ jsx(
13
+ RadixCheckbox.Root,
14
+ {
15
+ ref,
16
+ className: cn(
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)]",
19
+ "transition-[background-color,border-color] duration-effects-fast ease-effects-fast",
20
+ "hover:border-[var(--color-on-surface)]",
21
+ "data-[state=checked]:bg-[var(--color-primary)] data-[state=checked]:border-[var(--color-primary)] data-[state=checked]:text-[var(--color-on-primary)]",
22
+ "data-[state=indeterminate]:bg-[var(--color-primary)] data-[state=indeterminate]:border-[var(--color-primary)] data-[state=indeterminate]:text-[var(--color-on-primary)]",
23
+ "disabled:cursor-not-allowed disabled:border-[var(--color-text-disabled)] disabled:data-[state=checked]:bg-[var(--color-text-disabled)] disabled:data-[state=indeterminate]:bg-[var(--color-text-disabled)] disabled:text-[var(--color-surface)]",
24
+ className
25
+ ),
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" }) })
28
+ }
29
+ )
30
+ );
31
+ Checkbox.displayName = "Checkbox";
32
+
33
+ export {
34
+ Checkbox
35
+ };
@@ -1,7 +1,7 @@
1
1
  'use client';
2
2
  import {
3
3
  cn
4
- } from "./chunk-AT6RPKU3.js";
4
+ } from "./chunk-Q7G5WGYV.js";
5
5
 
6
6
  // src/components/FileUpload/FileUpload.tsx
7
7
  import * as React from "react";
@@ -1,10 +1,10 @@
1
1
  'use client';
2
2
  import {
3
3
  Kbd
4
- } from "./chunk-PER3O4FD.js";
4
+ } from "./chunk-A4IMFAZX.js";
5
5
  import {
6
6
  cn
7
- } from "./chunk-AT6RPKU3.js";
7
+ } from "./chunk-Q7G5WGYV.js";
8
8
 
9
9
  // src/components/KeyboardShortcut/KeyboardShortcut.tsx
10
10
  import * as React from "react";
@@ -1,7 +1,7 @@
1
1
  'use client';
2
2
  import {
3
3
  cn
4
- } from "./chunk-AT6RPKU3.js";
4
+ } from "./chunk-Q7G5WGYV.js";
5
5
 
6
6
  // src/components/Code/Code.tsx
7
7
  import * as React from "react";
@@ -1,7 +1,7 @@
1
1
  'use client';
2
2
  import {
3
3
  cn
4
- } from "./chunk-AT6RPKU3.js";
4
+ } from "./chunk-Q7G5WGYV.js";
5
5
 
6
6
  // src/components/GradientDivider/GradientDivider.tsx
7
7
  import * as React from "react";
@@ -1,7 +1,7 @@
1
1
  'use client';
2
2
  import {
3
3
  cn
4
- } from "./chunk-AT6RPKU3.js";
4
+ } from "./chunk-Q7G5WGYV.js";
5
5
 
6
6
  // src/components/Alert/Alert.tsx
7
7
  import * as React from "react";