@nexub/react 1.3.0 → 1.5.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 (213) 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-OZPPL76D.js → chunk-2ZBJOUJ7.js} +17 -20
  4. package/dist/{chunk-YJD66LTV.js → chunk-3AXIMXDU.js} +1 -1
  5. package/dist/{chunk-H4MXRAXP.js → chunk-3LP2CR7F.js} +1 -1
  6. package/dist/chunk-3TMIZQPR.js +49 -0
  7. package/dist/chunk-47UGX37F.js +21 -0
  8. package/dist/{chunk-PANDAMD2.js → chunk-4I5ULCYG.js} +1 -1
  9. package/dist/{chunk-3U54QLYB.js → chunk-4SSUM4CL.js} +1 -1
  10. package/dist/{chunk-KZW37FQZ.js → chunk-56FERRWW.js} +1 -1
  11. package/dist/chunk-5O34ZNC3.js +70 -0
  12. package/dist/{chunk-YUNWZAAD.js → chunk-5URGARPH.js} +8 -3
  13. package/dist/{chunk-QF7GUDOE.js → chunk-63DPMUMR.js} +1 -1
  14. package/dist/chunk-64JDZWCV.js +47 -0
  15. package/dist/{chunk-BMVAZIAJ.js → chunk-6J3QTWKC.js} +1 -1
  16. package/dist/{chunk-2RLSIOGB.js → chunk-6QLLH6ID.js} +21 -11
  17. package/dist/{chunk-KWWV3CM3.js → chunk-6RBNM5RO.js} +1 -1
  18. package/dist/{chunk-WPPNDU2E.js → chunk-6SJPVQQW.js} +7 -6
  19. package/dist/{chunk-NAIZ7R2L.js → chunk-72I7EVOL.js} +1 -1
  20. package/dist/{chunk-SZKUSLHI.js → chunk-7L3CGIRA.js} +21 -11
  21. package/dist/{chunk-UWWL5FPC.js → chunk-7Q7ZF6BY.js} +1 -1
  22. package/dist/chunk-7SXR4PGO.js +31 -0
  23. package/dist/{chunk-W4IEXUD4.js → chunk-7ZWBHHRK.js} +14 -11
  24. package/dist/{chunk-PER3O4FD.js → chunk-A4IMFAZX.js} +1 -1
  25. package/dist/{chunk-E3QPDCEV.js → chunk-AEBYQKLS.js} +34 -7
  26. package/dist/chunk-AHT35UWY.js +92 -0
  27. package/dist/chunk-AXOKFS4K.js +48 -0
  28. package/dist/chunk-B54WADL4.js +103 -0
  29. package/dist/{chunk-CMYEVLQT.js → chunk-BFRX6X4O.js} +9 -7
  30. package/dist/{chunk-KBB7M6WO.js → chunk-BTRTORKU.js} +1 -1
  31. package/dist/{chunk-TCTFQYLH.js → chunk-CHGPGRML.js} +1 -1
  32. package/dist/chunk-CIQHFMF6.js +44 -0
  33. package/dist/{chunk-U3AEA4BZ.js → chunk-CNNJFWFA.js} +1 -1
  34. package/dist/chunk-CWS37T3K.js +80 -0
  35. package/dist/chunk-DEIBF3P7.js +8 -0
  36. package/dist/{chunk-RIDDJUPA.js → chunk-DJZZ3FIP.js} +13 -4
  37. package/dist/{chunk-K7CUCLLI.js → chunk-DYWJ7BIK.js} +2 -2
  38. package/dist/{chunk-6Y734SXN.js → chunk-E4JM3HUM.js} +1 -1
  39. package/dist/{chunk-POFKKYHY.js → chunk-EQNETGTV.js} +1 -1
  40. package/dist/{chunk-BBVOB4EC.js → chunk-EZ23IA3H.js} +1 -1
  41. package/dist/{chunk-LOP63AVE.js → chunk-FD7YU53N.js} +1 -1
  42. package/dist/{chunk-CPV367VS.js → chunk-FHFVBOF3.js} +1 -1
  43. package/dist/chunk-GHCV6UXG.js +57 -0
  44. package/dist/{chunk-UALYS4XI.js → chunk-GIGOTRXX.js} +9 -4
  45. package/dist/{chunk-BTZW34TX.js → chunk-GRB6T2TT.js} +7 -6
  46. package/dist/chunk-GUB7YKG2.js +35 -0
  47. package/dist/{chunk-POBSY7EZ.js → chunk-H2W7IYVY.js} +1 -1
  48. package/dist/{chunk-I5Z3A7N3.js → chunk-HG6HTUWU.js} +2 -2
  49. package/dist/chunk-HI7GBSW2.js +1 -0
  50. package/dist/{chunk-DEH2Z27F.js → chunk-HJERFB7J.js} +1 -1
  51. package/dist/{chunk-UTBUIBEP.js → chunk-I4BHRVRL.js} +3 -30
  52. package/dist/{chunk-FUJOSPNQ.js → chunk-I4URNMI7.js} +1 -1
  53. package/dist/{chunk-24CZFBTG.js → chunk-IIPYF6ZQ.js} +1 -1
  54. package/dist/{chunk-CVBAWKNG.js → chunk-IK23Q2OF.js} +32 -27
  55. package/dist/{chunk-4OCXGNP3.js → chunk-J2T4GFFS.js} +1 -1
  56. package/dist/{chunk-BJKW3G2L.js → chunk-J6TU45KP.js} +1 -1
  57. package/dist/chunk-JLUCMNVS.js +32 -0
  58. package/dist/{chunk-ELC2NBGH.js → chunk-JSD3H7WV.js} +1 -1
  59. package/dist/{chunk-46CFSBEO.js → chunk-KA2J5OBA.js} +3 -2
  60. package/dist/{chunk-OUBBOOZE.js → chunk-KM6Z3VTI.js} +1 -1
  61. package/dist/chunk-KQPLFVFR.js +27 -0
  62. package/dist/{chunk-MV7WMQI4.js → chunk-LDYD7WL3.js} +1 -1
  63. package/dist/{chunk-QURKXXNS.js → chunk-LGQ737BP.js} +6 -12
  64. package/dist/{chunk-DOHXBNOP.js → chunk-LH3BSAIS.js} +1 -1
  65. package/dist/chunk-LMPGHWUA.js +114 -0
  66. package/dist/chunk-LVPU7455.js +1 -0
  67. package/dist/chunk-LZB3KTSH.js +61 -0
  68. package/dist/{chunk-BUBYXAJK.js → chunk-M7YB3MSW.js} +1 -1
  69. package/dist/{chunk-V3FZHIEB.js → chunk-NCRFKPA4.js} +1 -1
  70. package/dist/{chunk-JKTZMWWC.js → chunk-NIX4SEKM.js} +1 -1
  71. package/dist/{chunk-PBLEGOLM.js → chunk-NMH5WSZG.js} +6 -5
  72. package/dist/{chunk-ZFVBFCYV.js → chunk-NQVRF4RB.js} +1 -1
  73. package/dist/{chunk-IU76LV3W.js → chunk-OASFXI27.js} +6 -6
  74. package/dist/chunk-OJ2TLWYD.js +89 -0
  75. package/dist/{chunk-MY6XUJ5P.js → chunk-OJRSPDNJ.js} +21 -14
  76. package/dist/chunk-P26VJEIW.js +1 -0
  77. package/dist/{chunk-IBCYG6HR.js → chunk-P44EROBX.js} +1 -1
  78. package/dist/{chunk-52KTX5A7.js → chunk-PQ6GU7SG.js} +2 -2
  79. package/dist/{chunk-CZUNTABW.js → chunk-PVTACENM.js} +1 -1
  80. package/dist/{chunk-Y45JAJKW.js → chunk-PWBPHGM3.js} +2 -2
  81. package/dist/chunk-Q7G5WGYV.js +33 -0
  82. package/dist/{chunk-BYCTJHXY.js → chunk-QCNLE27O.js} +2 -2
  83. package/dist/{chunk-7W2YDJ5W.js → chunk-QD7H3WV3.js} +10 -7
  84. package/dist/{chunk-HW3I7I3R.js → chunk-RB4CVS22.js} +1 -1
  85. package/dist/{chunk-ZLSUVZM2.js → chunk-RHOYF7MO.js} +17 -11
  86. package/dist/{chunk-QHJ43Q2T.js → chunk-RLE5RN3T.js} +1 -1
  87. package/dist/{chunk-7B4FS7VQ.js → chunk-RTDUTWJ4.js} +31 -14
  88. package/dist/{chunk-DR2Y3PIT.js → chunk-S46W2QER.js} +1 -1
  89. package/dist/{chunk-LAWZQ6R6.js → chunk-SVQCINRE.js} +1 -1
  90. package/dist/{chunk-6MYVXJPJ.js → chunk-SY6V3HAK.js} +17 -23
  91. package/dist/{chunk-VT7RKY46.js → chunk-TEOLG3N2.js} +1 -1
  92. package/dist/{chunk-A7L75YXY.js → chunk-TJCHA3OI.js} +2 -2
  93. package/dist/chunk-TNBBQ7IP.js +43 -0
  94. package/dist/{chunk-IHW2L532.js → chunk-TYTW4F3B.js} +12 -9
  95. package/dist/{chunk-T4IVMVMQ.js → chunk-UMC64NCT.js} +1 -1
  96. package/dist/chunk-V3TETH4J.js +146 -0
  97. package/dist/{chunk-JQDLCN5D.js → chunk-W2NEXOTG.js} +1 -1
  98. package/dist/{chunk-XNDCVVNE.js → chunk-WESZPFBZ.js} +2 -2
  99. package/dist/{chunk-DD6XCW6R.js → chunk-XR4NBY54.js} +1 -1
  100. package/dist/{chunk-YGOR3KT7.js → chunk-YJ3JQYAN.js} +1 -1
  101. package/dist/chunk-YPHNHQYQ.js +61 -0
  102. package/dist/chunk-YRDCY6BI.js +55 -0
  103. package/dist/{chunk-2VDP2ML4.js → chunk-Z3IG5WRA.js} +10 -9
  104. package/dist/{chunk-YUFCNHZF.js → chunk-ZV3AF5CL.js} +1 -1
  105. package/dist/components/Accordion/index.js +2 -2
  106. package/dist/components/Alert/index.js +2 -2
  107. package/dist/components/AlertDialog/index.js +6 -2
  108. package/dist/components/Amount/index.js +9 -0
  109. package/dist/components/AppShell/index.js +2 -2
  110. package/dist/components/AspectRatio/index.js +2 -2
  111. package/dist/components/Autocomplete/index.js +3 -3
  112. package/dist/components/Avatar/index.js +2 -2
  113. package/dist/components/AvatarGroup/index.js +3 -3
  114. package/dist/components/Badge/index.js +2 -2
  115. package/dist/components/Banner/index.js +2 -2
  116. package/dist/components/Box/index.js +2 -2
  117. package/dist/components/Breadcrumb/index.js +2 -2
  118. package/dist/components/Button/index.js +5 -2
  119. package/dist/components/ButtonGroup/index.js +3 -2
  120. package/dist/components/Callout/index.js +2 -2
  121. package/dist/components/Card/index.js +3 -3
  122. package/dist/components/CheckList/index.js +2 -2
  123. package/dist/components/Checkbox/index.js +2 -2
  124. package/dist/components/Chip/index.js +2 -2
  125. package/dist/components/Code/index.js +2 -2
  126. package/dist/components/Collapsible/index.js +2 -2
  127. package/dist/components/Combobox/index.js +2 -2
  128. package/dist/components/CommandPalette/index.js +4 -2
  129. package/dist/components/Container/index.js +2 -2
  130. package/dist/components/ContextMenu/index.js +3 -2
  131. package/dist/components/CountryBadge/index.js +3 -3
  132. package/dist/components/DataTable/index.js +2 -2
  133. package/dist/components/DatePicker/index.js +2 -2
  134. package/dist/components/DateRangePicker/index.js +2 -2
  135. package/dist/components/Dialog/index.js +4 -3
  136. package/dist/components/Drawer/index.js +5 -3
  137. package/dist/components/DropdownMenu/index.js +4 -2
  138. package/dist/components/EmptyState/index.js +2 -2
  139. package/dist/components/ErrorState/index.js +2 -2
  140. package/dist/components/EyebrowChip/index.js +2 -2
  141. package/dist/components/FileUpload/index.js +2 -2
  142. package/dist/components/FilterChip/index.js +2 -2
  143. package/dist/components/Flag/index.js +2 -2
  144. package/dist/components/Flex/index.js +2 -2
  145. package/dist/components/FormError/index.js +2 -2
  146. package/dist/components/FormField/index.js +5 -5
  147. package/dist/components/GradientDivider/index.js +2 -2
  148. package/dist/components/Grid/index.js +2 -2
  149. package/dist/components/Heading/index.js +2 -2
  150. package/dist/components/HelperText/index.js +2 -2
  151. package/dist/components/HoverCard/index.js +3 -2
  152. package/dist/components/IconButton/index.js +3 -2
  153. package/dist/components/Input/index.js +3 -2
  154. package/dist/components/Kbd/index.js +2 -2
  155. package/dist/components/KeyboardShortcut/index.js +3 -3
  156. package/dist/components/Label/index.js +2 -2
  157. package/dist/components/Link/index.js +2 -2
  158. package/dist/components/Logo/index.js +2 -2
  159. package/dist/components/Menubar/index.js +3 -2
  160. package/dist/components/MoneyInput/index.js +13 -0
  161. package/dist/components/NavigationMenu/index.js +3 -2
  162. package/dist/components/NavigationRail/index.js +8 -0
  163. package/dist/components/NumberInput/index.js +4 -3
  164. package/dist/components/PageHeader/index.js +2 -2
  165. package/dist/components/Pagination/index.js +2 -2
  166. package/dist/components/PasswordInput/index.js +4 -3
  167. package/dist/components/Popover/index.js +4 -3
  168. package/dist/components/Progress/index.js +2 -2
  169. package/dist/components/RadioGroup/index.js +2 -2
  170. package/dist/components/Rating/index.js +3 -2
  171. package/dist/components/ScrollArea/index.js +2 -2
  172. package/dist/components/SearchInput/index.js +4 -3
  173. package/dist/components/Section/index.js +2 -2
  174. package/dist/components/SegmentedControl/index.js +4 -2
  175. package/dist/components/Select/index.js +4 -2
  176. package/dist/components/Separator/index.js +2 -2
  177. package/dist/components/Sidebar/index.js +2 -2
  178. package/dist/components/Skeleton/index.js +2 -2
  179. package/dist/components/Slider/index.js +2 -2
  180. package/dist/components/Spinner/index.js +2 -2
  181. package/dist/components/SplitButton/index.js +14 -0
  182. package/dist/components/Stack/index.js +2 -2
  183. package/dist/components/StatusPill/index.js +2 -2
  184. package/dist/components/Switch/index.js +2 -2
  185. package/dist/components/Table/index.js +2 -2
  186. package/dist/components/Tabs/index.js +4 -2
  187. package/dist/components/Tag/index.js +2 -2
  188. package/dist/components/Text/index.js +2 -2
  189. package/dist/components/TextGradient/index.js +2 -2
  190. package/dist/components/Textarea/index.js +3 -2
  191. package/dist/components/ThemeProvider/index.js +1 -1
  192. package/dist/components/Toast/index.js +2 -2
  193. package/dist/components/Toggle/index.js +2 -2
  194. package/dist/components/ToggleGroup/index.js +3 -3
  195. package/dist/components/Toolbar/index.js +3 -2
  196. package/dist/components/Tooltip/index.js +2 -2
  197. package/dist/components/TopNav/index.js +3 -3
  198. package/dist/index.d.ts +128 -21
  199. package/dist/index.js +162 -152
  200. package/package.json +8 -5
  201. package/dist/chunk-3CSKW56L.js +0 -44
  202. package/dist/chunk-AT6RPKU3.js +0 -12
  203. package/dist/chunk-BGY23Y5O.js +0 -104
  204. package/dist/chunk-DAXDAFNG.js +0 -92
  205. package/dist/chunk-EVCTOIRS.js +0 -66
  206. package/dist/chunk-GTQIA62H.js +0 -60
  207. package/dist/chunk-JCUVWDUC.js +0 -57
  208. package/dist/chunk-N2GIMMTF.js +0 -98
  209. package/dist/chunk-P6BZNFVU.js +0 -38
  210. package/dist/chunk-QRZV2FLW.js +0 -106
  211. package/dist/chunk-ROZVVWPV.js +0 -8
  212. package/dist/chunk-U3EGB3JL.js +0 -43
  213. package/dist/chunk-VPZCQFVY.js +0 -33
@@ -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
+ };
@@ -0,0 +1,48 @@
1
+ 'use client';
2
+ import {
3
+ moneyFormatter
4
+ } from "./chunk-CIQHFMF6.js";
5
+ import {
6
+ cn
7
+ } from "./chunk-Q7G5WGYV.js";
8
+
9
+ // src/components/Amount/Amount.tsx
10
+ import * as React from "react";
11
+ import { jsx } from "react/jsx-runtime";
12
+ var sizes = {
13
+ sm: "text-body-sm",
14
+ md: "text-body-md",
15
+ lg: "text-title-lg",
16
+ display: "font-display text-display-sm"
17
+ };
18
+ var Amount = React.forwardRef(
19
+ ({ value, currency, locale, size = "md", tone = "neutral", signDisplay, className, ...props }, ref) => {
20
+ const parts = moneyFormatter(currency, locale, { signDisplay }).formatToParts(value);
21
+ const quiet = size === "display";
22
+ return /* @__PURE__ */ jsx(
23
+ "span",
24
+ {
25
+ ref,
26
+ "data-value": value,
27
+ className: cn(
28
+ "whitespace-nowrap tabular-nums",
29
+ sizes[size],
30
+ tone === "auto" && value > 0 && "text-[var(--color-success)]",
31
+ tone === "auto" && value < 0 && "text-[var(--color-error)]",
32
+ className
33
+ ),
34
+ ...props,
35
+ children: parts.map((p, i) => {
36
+ const text = p.type === "minusSign" ? "\u2212" : p.value;
37
+ const muted = quiet && (p.type === "currency" || p.type === "decimal" || p.type === "fraction");
38
+ return muted ? /* @__PURE__ */ jsx("span", { className: "text-[0.55em] font-semibold text-[var(--color-on-surface-variant)]", children: text }, i) : /* @__PURE__ */ jsx(React.Fragment, { children: text }, i);
39
+ })
40
+ }
41
+ );
42
+ }
43
+ );
44
+ Amount.displayName = "Amount";
45
+
46
+ export {
47
+ Amount
48
+ };
@@ -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";
@@ -0,0 +1,44 @@
1
+ 'use client';
2
+
3
+ // src/utils/money.ts
4
+ function moneyFormatter(currency, locale, options = {}) {
5
+ return new Intl.NumberFormat(locale, { style: "currency", currency, currencyDisplay: "narrowSymbol", ...options });
6
+ }
7
+ function fractionDigits(currency, locale) {
8
+ return moneyFormatter(currency, locale).resolvedOptions().maximumFractionDigits ?? 2;
9
+ }
10
+ function currencySymbol(currency, locale) {
11
+ return moneyFormatter(currency, locale).formatToParts(0).find((p) => p.type === "currency")?.value ?? currency;
12
+ }
13
+ function formatForEditing(value, currency, locale) {
14
+ return new Intl.NumberFormat(locale, {
15
+ useGrouping: false,
16
+ maximumFractionDigits: fractionDigits(currency, locale)
17
+ }).format(value);
18
+ }
19
+ function formatForDisplay(value, currency, locale) {
20
+ const digits = fractionDigits(currency, locale);
21
+ return new Intl.NumberFormat(locale, { minimumFractionDigits: digits, maximumFractionDigits: digits }).format(value);
22
+ }
23
+ function parseMoney(text, currency, locale) {
24
+ const decimal = new Intl.NumberFormat(locale).formatToParts(1.1).find((p) => p.type === "decimal")?.value ?? ".";
25
+ const group = new Intl.NumberFormat(locale).formatToParts(1e4).find((p) => p.type === "group")?.value;
26
+ let s = text.trim().replace(/[\s\u00a0\u202f]/g, "");
27
+ if (group && group !== decimal) s = s.split(group).join("");
28
+ s = s.replace(decimal, ".").replace(/[−–]/g, "-").replace(/[^0-9.-]/g, "");
29
+ const negative = s.startsWith("-");
30
+ s = s.replace(/-/g, "");
31
+ if (!/\d/.test(s) || (s.match(/\./g) ?? []).length > 1) return null;
32
+ const n = Number(s);
33
+ if (!Number.isFinite(n)) return null;
34
+ const f = 10 ** fractionDigits(currency, locale);
35
+ return (negative ? -1 : 1) * (Math.round(n * f) / f);
36
+ }
37
+
38
+ export {
39
+ moneyFormatter,
40
+ currencySymbol,
41
+ formatForEditing,
42
+ formatForDisplay,
43
+ parseMoney
44
+ };
@@ -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
  }