@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
@@ -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/Progress/Progress.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/EmptyState/EmptyState.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/Grid/Grid.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/Collapsible/Collapsible.tsx
7
7
  import * as React from "react";
@@ -0,0 +1,49 @@
1
+ 'use client';
2
+ import {
3
+ cn
4
+ } from "./chunk-Q7G5WGYV.js";
5
+
6
+ // src/components/Toggle/Toggle.tsx
7
+ import * as React from "react";
8
+ import * as RadixToggle from "@radix-ui/react-toggle";
9
+ import { cva } from "class-variance-authority";
10
+ import { jsx } from "react/jsx-runtime";
11
+ var toggleVariants = cva(
12
+ [
13
+ // Pressable capsule; on = the secondary container (tonal selection).
14
+ "nx-state-layer nx-press relative inline-flex items-center justify-center gap-2 rounded-shape-control select-none",
15
+ "text-[var(--color-on-surface-variant)] transition-[background-color,color] duration-effects-fast ease-effects-fast",
16
+ "data-[state=on]:bg-[var(--color-secondary-container)] data-[state=on]:text-[var(--color-on-secondary-container)]",
17
+ "disabled:pointer-events-none disabled:text-[var(--color-text-disabled)]"
18
+ ],
19
+ {
20
+ variants: {
21
+ variant: {
22
+ default: "bg-transparent",
23
+ outline: "border border-[var(--color-outline-variant)] bg-transparent data-[state=on]:border-transparent"
24
+ },
25
+ size: {
26
+ sm: "h-control-sm px-3 text-label-md",
27
+ md: "h-control-md px-4 text-label-lg",
28
+ lg: "h-control-lg px-5 text-label-lg"
29
+ }
30
+ },
31
+ defaultVariants: { variant: "default", size: "md" }
32
+ }
33
+ );
34
+ var Toggle = React.forwardRef(
35
+ ({ className, variant, size, ...props }, ref) => /* @__PURE__ */ jsx(
36
+ RadixToggle.Root,
37
+ {
38
+ ref,
39
+ className: cn(toggleVariants({ variant, size }), className),
40
+ ...props
41
+ }
42
+ )
43
+ );
44
+ Toggle.displayName = "Toggle";
45
+
46
+ export {
47
+ toggleVariants,
48
+ Toggle
49
+ };
@@ -0,0 +1,21 @@
1
+ 'use client';
2
+
3
+ // src/hooks/useClassScrollLock.ts
4
+ import * as React from "react";
5
+ var scrollLocks = 0;
6
+ function useClassScrollLock() {
7
+ React.useEffect(() => {
8
+ const html = document.documentElement;
9
+ if (scrollLocks++ === 0) {
10
+ html.classList.toggle("nexub-scroll-gutter", window.innerWidth > html.clientWidth);
11
+ html.classList.add("nexub-scroll-lock");
12
+ }
13
+ return () => {
14
+ if (--scrollLocks === 0) html.classList.remove("nexub-scroll-lock", "nexub-scroll-gutter");
15
+ };
16
+ }, []);
17
+ }
18
+
19
+ export {
20
+ useClassScrollLock
21
+ };
@@ -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/CheckList/CheckList.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/Breadcrumb/Breadcrumb.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/AppShell/AppShell.tsx
7
7
  import * as React from "react";
@@ -1,7 +1,11 @@
1
1
  'use client';
2
+ import {
3
+ enterExit,
4
+ floatingSurface
5
+ } from "./chunk-KQPLFVFR.js";
2
6
  import {
3
7
  cn
4
- } from "./chunk-AT6RPKU3.js";
8
+ } from "./chunk-Q7G5WGYV.js";
5
9
 
6
10
  // src/components/HoverCard/HoverCard.tsx
7
11
  import * as React from "react";
@@ -17,8 +21,9 @@ var Content2 = React.forwardRef(
17
21
  ref,
18
22
  sideOffset,
19
23
  className: cn(
20
- "z-[var(--z-popover)] w-64 rounded-lg border border-[var(--color-border-default)]",
21
- "bg-[var(--color-bg-default)] p-4 shadow-md outline-none",
24
+ "z-[var(--z-popover)] w-64 p-4 outline-none",
25
+ floatingSurface,
26
+ enterExit,
22
27
  "data-[state=open]:animate-in data-[state=closed]:animate-out",
23
28
  "data-[state=open]:fade-in-0 data-[state=closed]:fade-out-0",
24
29
  "data-[state=open]:zoom-in-95 data-[state=closed]:zoom-out-95",
@@ -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/Skeleton/Skeleton.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/DataTable/DataTable.tsx
7
7
  import * as React from "react";
@@ -1,7 +1,15 @@
1
1
  'use client';
2
+ import {
3
+ enterExit,
4
+ floatingSurface,
5
+ menuContent,
6
+ menuItem,
7
+ menuLabel,
8
+ menuSeparator
9
+ } from "./chunk-KQPLFVFR.js";
2
10
  import {
3
11
  cn
4
- } from "./chunk-AT6RPKU3.js";
12
+ } from "./chunk-Q7G5WGYV.js";
5
13
 
6
14
  // src/components/ContextMenu/ContextMenu.tsx
7
15
  import * as React from "react";
@@ -21,8 +29,10 @@ var Content2 = React.forwardRef(
21
29
  {
22
30
  ref,
23
31
  className: cn(
24
- "z-[var(--z-popover)] min-w-48 rounded-lg border border-[var(--color-border-default)]",
25
- "bg-[var(--color-bg-default)] p-1 shadow-md outline-none",
32
+ "z-[var(--z-popover)] min-w-48 outline-none",
33
+ floatingSurface,
34
+ menuContent,
35
+ enterExit,
26
36
  "data-[state=open]:animate-in data-[state=closed]:animate-out",
27
37
  "data-[state=open]:fade-in-0 data-[state=closed]:fade-out-0",
28
38
  "data-[state=open]:zoom-in-95 data-[state=closed]:zoom-out-95",
@@ -35,9 +45,7 @@ var Content2 = React.forwardRef(
35
45
  );
36
46
  Content2.displayName = "ContextMenu.Content";
37
47
  var itemBaseClasses = cn(
38
- "relative flex cursor-default select-none items-center rounded-md px-2 py-1.5 text-sm outline-none",
39
- "transition-colors hover:bg-[var(--color-bg-subtle)] focus:bg-[var(--color-bg-subtle)]",
40
- "data-[disabled]:pointer-events-none data-[disabled]:opacity-50"
48
+ menuItem
41
49
  );
42
50
  var Item2 = React.forwardRef(
43
51
  function ContextMenuItem({ className, ...props }, ref) {
@@ -59,7 +67,7 @@ var Label2 = React.forwardRef(
59
67
  {
60
68
  ref,
61
69
  className: cn(
62
- "px-2 py-1 text-xs font-semibold text-[var(--color-text-muted)]",
70
+ menuLabel,
63
71
  className
64
72
  ),
65
73
  ...props
@@ -74,7 +82,7 @@ var Separator2 = React.forwardRef(
74
82
  RadixContextMenu.Separator,
75
83
  {
76
84
  ref,
77
- className: cn("-mx-1 my-1 h-px bg-[var(--color-border-default)]", className),
85
+ className: cn(menuSeparator, className),
78
86
  ...props
79
87
  }
80
88
  );
@@ -119,7 +127,7 @@ var SubTrigger2 = React.forwardRef(function ContextMenuSubTrigger({ className, c
119
127
  ref,
120
128
  className: cn(
121
129
  itemBaseClasses,
122
- "data-[state=open]:bg-[var(--color-bg-subtle)]",
130
+ "data-[state=open]:bg-[color-mix(in_srgb,var(--color-on-surface)_8%,transparent)]",
123
131
  className
124
132
  ),
125
133
  ...props,
@@ -137,8 +145,10 @@ var SubContent2 = React.forwardRef(function ContextMenuSubContent({ className, .
137
145
  {
138
146
  ref,
139
147
  className: cn(
140
- "z-[var(--z-popover)] min-w-48 rounded-lg border border-[var(--color-border-default)]",
141
- "bg-[var(--color-bg-default)] p-1 shadow-md outline-none",
148
+ "z-[var(--z-popover)] min-w-48 outline-none",
149
+ floatingSurface,
150
+ menuContent,
151
+ enterExit,
142
152
  "data-[state=open]:animate-in data-[state=closed]:animate-out",
143
153
  "data-[state=open]:fade-in-0 data-[state=closed]:fade-out-0",
144
154
  "data-[state=open]:zoom-in-95 data-[state=closed]:zoom-out-95",
@@ -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/Separator/Separator.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/RadioGroup/RadioGroup.tsx
7
7
  import * as React from "react";
@@ -17,14 +17,15 @@ var Item2 = React.forwardRef(
17
17
  {
18
18
  ref,
19
19
  className: cn(
20
- "aspect-square h-4 w-4 rounded-full border border-[var(--color-border-input)]",
21
- "text-[var(--color-brand-primary-500)]",
22
- "focus:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-ring-default)] focus-visible:ring-offset-2 ring-offset-[var(--color-ring-offset)]",
23
- "disabled:cursor-not-allowed disabled:opacity-50",
20
+ // 18px, 2px outline border (>= 3:1), primary ring + dot when on. Focus = the global ring.
21
+ "aspect-square h-[18px] w-[18px] shrink-0 rounded-full border-2 border-[var(--color-outline)]",
22
+ "transition-[border-color] duration-effects-fast ease-effects-fast",
23
+ "hover:border-[var(--color-on-surface)] data-[state=checked]:border-[var(--color-primary)]",
24
+ "disabled:cursor-not-allowed disabled:border-[var(--color-text-disabled)]",
24
25
  className
25
26
  ),
26
27
  ...props,
27
- children: /* @__PURE__ */ jsx(RadixRadioGroup.Indicator, { className: "flex items-center justify-center", children: /* @__PURE__ */ jsx("span", { className: "block h-2 w-2 rounded-full bg-[var(--color-brand-primary-500)]" }) })
28
+ children: /* @__PURE__ */ jsx(RadixRadioGroup.Indicator, { className: "flex items-center justify-center", children: /* @__PURE__ */ jsx("span", { className: "block h-2 w-2 rounded-full bg-[var(--color-primary)] [[data-disabled]_&]:bg-[var(--color-text-disabled)]" }) })
28
29
  }
29
30
  )
30
31
  );
@@ -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/ErrorState/ErrorState.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/Text/Text.tsx
7
7
  import * as React from "react";
@@ -0,0 +1,31 @@
1
+ 'use client';
2
+
3
+ // src/utils/control.ts
4
+ var field = [
5
+ "rounded-shape-field border border-[var(--color-border-input)]",
6
+ "bg-[var(--color-surface-container-lowest)] text-[var(--color-on-surface)]",
7
+ "transition-[border-color,box-shadow] duration-effects-fast ease-effects-fast",
8
+ "hover:border-[var(--color-on-surface-variant)]"
9
+ ].join(" ");
10
+ var fieldFocusWithin = "focus-within:border-[var(--color-primary)] focus-within:shadow-[inset_0_0_0_1px_var(--color-primary)] focus-within:hover:border-[var(--color-primary)]";
11
+ var fieldFocusVisible = "focus-visible:outline-none focus-visible:border-[var(--color-primary)] focus-visible:shadow-[inset_0_0_0_1px_var(--color-primary)]";
12
+ var fieldInvalid = [
13
+ "border-[var(--color-error)] hover:border-[var(--color-error)]",
14
+ "focus-within:border-[var(--color-error)] focus-within:shadow-[inset_0_0_0_1px_var(--color-error)] focus-within:hover:border-[var(--color-error)]",
15
+ "focus-visible:border-[var(--color-error)] focus-visible:shadow-[inset_0_0_0_1px_var(--color-error)]"
16
+ ].join(" ");
17
+ var fieldDisabledWithin = "has-[:disabled]:cursor-not-allowed has-[:disabled]:border-[var(--color-outline-variant)] has-[:disabled]:hover:border-[var(--color-outline-variant)] has-[:disabled]:bg-[var(--color-surface-container-low)] has-[:disabled]:text-[var(--color-text-disabled)]";
18
+ var pressable = "nx-state-layer nx-press rounded-shape-control select-none";
19
+ var disabledContainer = "disabled:pointer-events-none disabled:border-transparent disabled:bg-[color-mix(in_srgb,var(--color-on-surface)_12%,transparent)] disabled:text-[var(--color-text-disabled)] aria-disabled:pointer-events-none";
20
+ var disabledText = "disabled:pointer-events-none disabled:text-[var(--color-text-disabled)] aria-disabled:pointer-events-none";
21
+
22
+ export {
23
+ field,
24
+ fieldFocusWithin,
25
+ fieldFocusVisible,
26
+ fieldInvalid,
27
+ fieldDisabledWithin,
28
+ pressable,
29
+ disabledContainer,
30
+ disabledText
31
+ };
@@ -1,7 +1,12 @@
1
1
  'use client';
2
+ import {
3
+ field,
4
+ fieldFocusVisible,
5
+ fieldInvalid
6
+ } from "./chunk-7SXR4PGO.js";
2
7
  import {
3
8
  cn
4
- } from "./chunk-AT6RPKU3.js";
9
+ } from "./chunk-Q7G5WGYV.js";
5
10
 
6
11
  // src/components/Textarea/Textarea.tsx
7
12
  import * as React from "react";
@@ -9,23 +14,21 @@ import { cva } from "class-variance-authority";
9
14
  import { jsx, jsxs } from "react/jsx-runtime";
10
15
  var textareaVariants = cva(
11
16
  [
12
- "w-full rounded-md border bg-[var(--color-bg-default)] text-[var(--color-text-primary)]",
17
+ "w-full",
18
+ field,
13
19
  "placeholder:text-[var(--color-text-placeholder)]",
14
- "border-[var(--color-border-input)] transition-colors",
15
- // Border shifts to ring color on focus; ring is a semi-transparent halo.
16
- // One hard 1 px border + one soft 2 px glow = single clean focus indicator.
17
- "focus-visible:outline-none focus-visible:border-[var(--color-ring-default)] focus-visible:ring-2 focus-visible:ring-[color-mix(in_srgb,var(--color-ring-default)_25%,transparent)]",
18
- "disabled:opacity-50 disabled:pointer-events-none disabled:cursor-not-allowed"
20
+ fieldFocusVisible,
21
+ "disabled:cursor-not-allowed disabled:border-[var(--color-outline-variant)] disabled:bg-[var(--color-surface-container-low)] disabled:text-[var(--color-text-disabled)]"
19
22
  ],
20
23
  {
21
24
  variants: {
22
25
  size: {
23
- sm: "px-3 py-1.5 text-sm min-h-[64px]",
24
- md: "px-3 py-2 text-sm min-h-[80px]",
25
- lg: "px-4 py-2.5 text-base min-h-[96px]"
26
+ sm: "px-3 py-1.5 text-body-sm min-h-[64px]",
27
+ md: "px-3.5 py-2 text-body-md min-h-[80px]",
28
+ lg: "px-4 py-2.5 text-body-md min-h-[96px]"
26
29
  },
27
30
  invalid: {
28
- true: "border-[var(--color-danger-500)] focus-visible:border-[var(--color-danger-500)] focus-visible:ring-[color-mix(in_srgb,var(--color-danger-500)_25%,transparent)]"
31
+ true: fieldInvalid
29
32
  },
30
33
  resize: {
31
34
  none: "resize-none",
@@ -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/Kbd/Kbd.tsx
7
7
  import * as React from "react";
@@ -6,6 +6,7 @@ import {
6
6
  // src/components/ThemeProvider/ThemeProvider.tsx
7
7
  import * as React from "react";
8
8
  import { jsx } from "react/jsx-runtime";
9
+ var GLASS_MODES = ["clear", "balanced", "tinted", "off"];
9
10
  var ThemeContext = React.createContext(void 0);
10
11
  ThemeContext.displayName = "ThemeContext";
11
12
  var DARK_QUERY = "(prefers-color-scheme: dark)";
@@ -26,6 +27,15 @@ function readStorage(key, fallback) {
26
27
  }
27
28
  return fallback;
28
29
  }
30
+ function readGlass(key, fallback) {
31
+ if (typeof window === "undefined") return fallback;
32
+ try {
33
+ const stored = window.localStorage.getItem(key);
34
+ if (stored && GLASS_MODES.includes(stored)) return stored;
35
+ } catch {
36
+ }
37
+ return fallback;
38
+ }
29
39
  function writeStorage(key, value) {
30
40
  if (typeof window === "undefined") return;
31
41
  try {
@@ -36,10 +46,13 @@ function writeStorage(key, value) {
36
46
  function ThemeProvider({
37
47
  children,
38
48
  defaultTheme = "system",
39
- storageKey = "nexub-theme"
49
+ storageKey = "nexub-theme",
50
+ defaultGlass = "balanced",
51
+ glassStorageKey = "nexub-glass"
40
52
  }) {
41
53
  const [theme, setThemeState] = React.useState(defaultTheme);
42
54
  const [systemTheme, setSystemTheme] = React.useState("light");
55
+ const [glass, setGlassState] = React.useState(defaultGlass);
43
56
  useIsomorphicLayoutEffect(() => {
44
57
  setThemeState(readStorage(storageKey, defaultTheme));
45
58
  }, [storageKey, defaultTheme]);
@@ -53,6 +66,12 @@ function ThemeProvider({
53
66
  useIsomorphicLayoutEffect(() => {
54
67
  applyTheme(theme);
55
68
  }, [theme]);
69
+ useIsomorphicLayoutEffect(() => {
70
+ setGlassState(readGlass(glassStorageKey, defaultGlass));
71
+ }, [glassStorageKey, defaultGlass]);
72
+ useIsomorphicLayoutEffect(() => {
73
+ document.documentElement.setAttribute("data-glass", glass);
74
+ }, [glass]);
56
75
  const resolvedTheme = theme === "system" ? systemTheme : theme;
57
76
  const setTheme = React.useCallback(
58
77
  (mode) => {
@@ -61,9 +80,16 @@ function ThemeProvider({
61
80
  },
62
81
  [storageKey]
63
82
  );
83
+ const setGlass = React.useCallback(
84
+ (mode) => {
85
+ writeStorage(glassStorageKey, mode);
86
+ setGlassState(mode);
87
+ },
88
+ [glassStorageKey]
89
+ );
64
90
  const value = React.useMemo(
65
- () => ({ theme, resolvedTheme, setTheme }),
66
- [theme, resolvedTheme, setTheme]
91
+ () => ({ theme, resolvedTheme, setTheme, glass, setGlass }),
92
+ [theme, resolvedTheme, setTheme, glass, setGlass]
67
93
  );
68
94
  return /* @__PURE__ */ jsx(ThemeContext.Provider, { value, children });
69
95
  }
@@ -75,17 +101,18 @@ function useTheme() {
75
101
  return ctx;
76
102
  }
77
103
  var jsString = (s) => JSON.stringify(s).replace(/</g, "\\u003c");
78
- function themeScriptSource(storageKey, productStorageKey) {
104
+ function themeScriptSource(storageKey, productStorageKey, glassStorageKey = "nexub-glass") {
79
105
  const product = productStorageKey ? `var b=localStorage.getItem(${jsString(productStorageKey)});if(b&&b!=='base')d.setAttribute('data-product',b);` : "";
80
- return `try{var d=document.documentElement,t=localStorage.getItem(${jsString(storageKey)});if(t==='light'||t==='dark')d.setAttribute('data-theme',t);${product}}catch(e){}`;
106
+ const glass = `var g=localStorage.getItem(${jsString(glassStorageKey)});if(${JSON.stringify(GLASS_MODES)}.indexOf(g)>-1)d.setAttribute('data-glass',g);`;
107
+ return `try{var d=document.documentElement,t=localStorage.getItem(${jsString(storageKey)});if(t==='light'||t==='dark')d.setAttribute('data-theme',t);${product}${glass}}catch(e){}`;
81
108
  }
82
- function ThemeScript({ storageKey = "nexub-theme", productStorageKey, nonce }) {
109
+ function ThemeScript({ storageKey = "nexub-theme", productStorageKey, glassStorageKey, nonce }) {
83
110
  return /* @__PURE__ */ jsx(
84
111
  "script",
85
112
  {
86
113
  nonce,
87
114
  suppressHydrationWarning: true,
88
- dangerouslySetInnerHTML: { __html: themeScriptSource(storageKey, productStorageKey) }
115
+ dangerouslySetInnerHTML: { __html: themeScriptSource(storageKey, productStorageKey, glassStorageKey) }
89
116
  }
90
117
  );
91
118
  }
@@ -0,0 +1,92 @@
1
+ 'use client';
2
+ import {
3
+ cn
4
+ } from "./chunk-Q7G5WGYV.js";
5
+
6
+ // src/components/Chip/Chip.tsx
7
+ import * as React from "react";
8
+ import { cva } from "class-variance-authority";
9
+ import { jsx, jsxs } from "react/jsx-runtime";
10
+ var chipVariants = cva(
11
+ "inline-flex items-center gap-1 rounded-shape-control select-none",
12
+ {
13
+ variants: {
14
+ size: {
15
+ sm: "h-6 px-2.5 text-label-md",
16
+ md: "h-8 px-3 text-label-lg"
17
+ },
18
+ // Containers + on-container text (WCAG AA by construction).
19
+ tone: {
20
+ neutral: "bg-[var(--color-surface-container-low)] text-[var(--color-on-surface-variant)] border border-[var(--color-outline-variant)]",
21
+ info: "bg-[var(--color-info-container)] text-[var(--color-on-info-container)]",
22
+ success: "bg-[var(--color-success-container)] text-[var(--color-on-success-container)]",
23
+ warning: "bg-[var(--color-warning-container)] text-[var(--color-on-warning-container)]",
24
+ danger: "bg-[var(--color-error-container)] text-[var(--color-on-error-container)]",
25
+ leap: "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))]",
26
+ bookub: "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))]",
27
+ payub: "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))]",
28
+ founderub: "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))]"
29
+ }
30
+ },
31
+ defaultVariants: {
32
+ size: "md",
33
+ tone: "neutral"
34
+ }
35
+ }
36
+ );
37
+ var Chip = React.forwardRef(
38
+ ({ className, size, tone = "neutral", onRemove, children, ...props }, ref) => {
39
+ return /* @__PURE__ */ jsxs(
40
+ "span",
41
+ {
42
+ ref,
43
+ className: cn(chipVariants({ size, tone }), className),
44
+ ...props,
45
+ children: [
46
+ children,
47
+ onRemove && /* @__PURE__ */ jsx(
48
+ "button",
49
+ {
50
+ type: "button",
51
+ "aria-label": "Remove",
52
+ onClick: (e) => {
53
+ e.stopPropagation();
54
+ onRemove();
55
+ },
56
+ className: cn(
57
+ // State layer for hover/press; focus = the global ring.
58
+ "nx-state-layer inline-flex items-center justify-center rounded-full text-current -mr-1",
59
+ size === "sm" ? "w-4 h-4" : "w-5 h-5"
60
+ ),
61
+ children: /* @__PURE__ */ jsx(
62
+ "svg",
63
+ {
64
+ width: "8",
65
+ height: "8",
66
+ viewBox: "0 0 8 8",
67
+ fill: "none",
68
+ "aria-hidden": "true",
69
+ children: /* @__PURE__ */ jsx(
70
+ "path",
71
+ {
72
+ d: "M7 1L1 7M1 1l6 6",
73
+ stroke: "currentColor",
74
+ strokeWidth: "1.5",
75
+ strokeLinecap: "round"
76
+ }
77
+ )
78
+ }
79
+ )
80
+ }
81
+ )
82
+ ]
83
+ }
84
+ );
85
+ }
86
+ );
87
+ Chip.displayName = "Chip";
88
+
89
+ export {
90
+ chipVariants,
91
+ Chip
92
+ };