@nexub/react 2.9.0 → 3.1.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 (497) hide show
  1. package/dist/components/Accordion/Accordion.d.ts +10 -0
  2. package/dist/{chunk-DOVZNUSH.js → components/Accordion/Accordion.js} +12 -17
  3. package/dist/components/Accordion/index.d.ts +1 -0
  4. package/dist/components/Accordion/index.js +1 -5
  5. package/dist/components/Alert/Alert.d.ts +14 -0
  6. package/dist/{chunk-U422B6UE.js → components/Alert/Alert.js} +8 -15
  7. package/dist/components/Alert/index.d.ts +2 -0
  8. package/dist/components/Alert/index.js +1 -7
  9. package/dist/components/AlertDialog/AlertDialog.d.ts +15 -0
  10. package/dist/{chunk-PDQTKE2C.js → components/AlertDialog/AlertDialog.js} +32 -42
  11. package/dist/components/AlertDialog/index.d.ts +1 -0
  12. package/dist/components/AlertDialog/index.js +1 -9
  13. package/dist/components/Amount/Amount.d.ts +22 -0
  14. package/dist/{chunk-IBBICKEZ.js → components/Amount/Amount.js} +10 -21
  15. package/dist/components/Amount/index.d.ts +2 -0
  16. package/dist/components/Amount/index.js +1 -8
  17. package/dist/components/AppShell/AppShell.d.ts +8 -0
  18. package/dist/{chunk-EPJ4CMZP.js → components/AppShell/AppShell.js} +8 -14
  19. package/dist/components/AppShell/index.d.ts +1 -0
  20. package/dist/components/AppShell/index.js +1 -5
  21. package/dist/components/AspectRatio/AspectRatio.d.ts +5 -0
  22. package/dist/{chunk-52CXVN3U.js → components/AspectRatio/AspectRatio.js} +4 -10
  23. package/dist/components/AspectRatio/index.d.ts +2 -0
  24. package/dist/components/AspectRatio/index.js +1 -5
  25. package/dist/components/Autocomplete/Autocomplete.d.ts +18 -0
  26. package/dist/{chunk-E7RLUHG3.js → components/Autocomplete/Autocomplete.js} +4 -11
  27. package/dist/components/Autocomplete/index.d.ts +2 -0
  28. package/dist/components/Autocomplete/index.js +1 -7
  29. package/dist/components/Avatar/Avatar.d.ts +13 -0
  30. package/dist/{chunk-AYG7HBDZ.js → components/Avatar/Avatar.js} +8 -13
  31. package/dist/components/Avatar/index.d.ts +2 -0
  32. package/dist/components/Avatar/index.js +1 -7
  33. package/dist/components/AvatarGroup/AvatarGroup.d.ts +12 -0
  34. package/dist/{chunk-BMUAR6H2.js → components/AvatarGroup/AvatarGroup.js} +9 -18
  35. package/dist/components/AvatarGroup/index.d.ts +2 -0
  36. package/dist/components/AvatarGroup/index.js +1 -8
  37. package/dist/components/Badge/Badge.d.ts +12 -0
  38. package/dist/{chunk-FBUKWIWR.js → components/Badge/Badge.js} +7 -13
  39. package/dist/components/Badge/index.d.ts +2 -0
  40. package/dist/components/Badge/index.js +1 -6
  41. package/dist/components/Box/Box.d.ts +5 -0
  42. package/dist/{chunk-ZCHZNGWU.js → components/Box/Box.js} +3 -9
  43. package/dist/components/Box/index.d.ts +2 -0
  44. package/dist/components/Box/index.js +1 -5
  45. package/dist/components/Breadcrumb/Breadcrumb.d.ts +21 -0
  46. package/dist/{chunk-SQGRT72E.js → components/Breadcrumb/Breadcrumb.js} +12 -19
  47. package/dist/components/Breadcrumb/index.d.ts +1 -0
  48. package/dist/components/Breadcrumb/index.js +1 -6
  49. package/dist/components/Button/Button.d.ts +30 -0
  50. package/dist/{chunk-GHLMHKMV.js → components/Button/Button.js} +19 -37
  51. package/dist/components/Button/index.d.ts +2 -0
  52. package/dist/components/Button/index.js +1 -9
  53. package/dist/components/ButtonGroup/ButtonGroup.d.ts +6 -0
  54. package/dist/{chunk-7EQ2LIYD.js → components/ButtonGroup/ButtonGroup.js} +3 -9
  55. package/dist/components/ButtonGroup/index.d.ts +2 -0
  56. package/dist/components/ButtonGroup/index.js +1 -6
  57. package/dist/components/Card/Card.d.ts +27 -0
  58. package/dist/{chunk-T466ZB34.js → components/Card/Card.js} +18 -46
  59. package/dist/components/Card/index.d.ts +2 -0
  60. package/dist/components/Card/index.js +1 -8
  61. package/dist/components/CheckList/CheckList.d.ts +10 -0
  62. package/dist/{chunk-T3RBFJML.js → components/CheckList/CheckList.js} +4 -10
  63. package/dist/components/CheckList/index.d.ts +2 -0
  64. package/dist/components/CheckList/index.js +1 -6
  65. package/dist/components/Checkbox/Checkbox.d.ts +5 -0
  66. package/dist/{chunk-JOOKMCAF.js → components/Checkbox/Checkbox.js} +4 -9
  67. package/dist/components/Checkbox/index.d.ts +2 -0
  68. package/dist/components/Checkbox/index.js +1 -5
  69. package/dist/components/CheckboxCard/CheckboxCard.d.ts +9 -0
  70. package/dist/{chunk-EYGT5IX4.js → components/CheckboxCard/CheckboxCard.js} +7 -12
  71. package/dist/components/CheckboxCard/index.d.ts +2 -0
  72. package/dist/components/CheckboxCard/index.js +1 -6
  73. package/dist/components/Chip/Chip.d.ts +12 -0
  74. package/dist/{chunk-PFDUHXT5.js → components/Chip/Chip.js} +8 -15
  75. package/dist/components/Chip/index.d.ts +2 -0
  76. package/dist/components/Chip/index.js +1 -7
  77. package/dist/components/Citation/Citation.d.ts +44 -0
  78. package/dist/{chunk-IA2362SO.js → components/Citation/Citation.js} +12 -21
  79. package/dist/components/Citation/index.d.ts +2 -0
  80. package/dist/components/Citation/index.js +1 -11
  81. package/dist/components/Code/Code.d.ts +6 -0
  82. package/dist/{chunk-NX44VGON.js → components/Code/Code.js} +3 -9
  83. package/dist/components/Code/index.d.ts +2 -0
  84. package/dist/components/Code/index.js +1 -5
  85. package/dist/components/Collapsible/Collapsible.d.ts +7 -0
  86. package/dist/{chunk-4WIUGX5Z.js → components/Collapsible/Collapsible.js} +10 -15
  87. package/dist/components/Collapsible/index.d.ts +1 -0
  88. package/dist/components/Collapsible/index.js +1 -5
  89. package/dist/components/Combobox/Combobox.d.ts +75 -0
  90. package/dist/{chunk-XWELMPYD.js → components/Combobox/Combobox.js} +11 -16
  91. package/dist/components/Combobox/index.d.ts +1 -0
  92. package/dist/components/Combobox/index.js +1 -6
  93. package/dist/components/CommandPalette/CommandPalette.d.ts +73 -0
  94. package/dist/{chunk-LASPHHH6.js → components/CommandPalette/CommandPalette.js} +16 -28
  95. package/dist/components/CommandPalette/index.d.ts +2 -0
  96. package/dist/components/CommandPalette/index.js +1 -8
  97. package/dist/components/Container/Container.d.ts +10 -0
  98. package/dist/{chunk-EQ5ASTJM.js → components/Container/Container.js} +7 -12
  99. package/dist/components/Container/index.d.ts +2 -0
  100. package/dist/components/Container/index.js +1 -6
  101. package/dist/components/ContextMenu/ContextMenu.d.ts +18 -0
  102. package/dist/{chunk-CUCTSWR2.js → components/ContextMenu/ContextMenu.js} +42 -53
  103. package/dist/components/ContextMenu/index.d.ts +1 -0
  104. package/dist/components/ContextMenu/index.js +1 -6
  105. package/dist/components/CountryBadge/CountryBadge.d.ts +8 -0
  106. package/dist/{chunk-JZCZ2SDT.js → components/CountryBadge/CountryBadge.js} +5 -13
  107. package/dist/components/CountryBadge/index.d.ts +2 -0
  108. package/dist/components/CountryBadge/index.js +1 -6
  109. package/dist/components/DataTable/DataTable.d.ts +24 -0
  110. package/dist/{chunk-A7PS3EZO.js → components/DataTable/DataTable.js} +15 -27
  111. package/dist/components/DataTable/index.d.ts +2 -0
  112. package/dist/components/DataTable/index.js +1 -8
  113. package/dist/components/DatePicker/DatePicker.d.ts +39 -0
  114. package/dist/{chunk-OY5CWWIM.js → components/DatePicker/DatePicker.js} +11 -24
  115. package/dist/components/DatePicker/index.d.ts +2 -0
  116. package/dist/components/DatePicker/index.js +1 -9
  117. package/dist/components/DateRangePicker/DateRangePicker.d.ts +20 -0
  118. package/dist/{chunk-YYAXXJH3.js → components/DateRangePicker/DateRangePicker.js} +9 -23
  119. package/dist/components/DateRangePicker/index.d.ts +2 -0
  120. package/dist/components/DateRangePicker/index.js +1 -9
  121. package/dist/components/Dialog/Dialog.d.ts +21 -0
  122. package/dist/{chunk-CEFGILJY.js → components/Dialog/Dialog.js} +28 -38
  123. package/dist/components/Dialog/index.d.ts +1 -0
  124. package/dist/components/Dialog/index.js +1 -7
  125. package/dist/components/Drawer/Drawer.d.ts +94 -0
  126. package/dist/components/Drawer/Drawer.js +131 -0
  127. package/dist/components/Drawer/index.d.ts +2 -0
  128. package/dist/components/Drawer/index.js +1 -9
  129. package/dist/components/DropdownMenu/DropdownMenu.d.ts +18 -0
  130. package/dist/{chunk-GWFIMQBC.js → components/DropdownMenu/DropdownMenu.js} +42 -53
  131. package/dist/components/DropdownMenu/index.d.ts +1 -0
  132. package/dist/components/DropdownMenu/index.js +1 -7
  133. package/dist/components/EmptyState/EmptyState.d.ts +8 -0
  134. package/dist/{chunk-AWTSLASB.js → components/EmptyState/EmptyState.js} +8 -14
  135. package/dist/components/EmptyState/index.d.ts +1 -0
  136. package/dist/components/EmptyState/index.js +1 -5
  137. package/dist/components/ErrorState/ErrorState.d.ts +10 -0
  138. package/dist/{chunk-NX5ZJSRU.js → components/ErrorState/ErrorState.js} +6 -13
  139. package/dist/components/ErrorState/index.d.ts +2 -0
  140. package/dist/components/ErrorState/index.js +1 -6
  141. package/dist/components/EyebrowChip/EyebrowChip.d.ts +11 -0
  142. package/dist/{chunk-MXXJOAWQ.js → components/EyebrowChip/EyebrowChip.js} +7 -13
  143. package/dist/components/EyebrowChip/index.d.ts +2 -0
  144. package/dist/components/EyebrowChip/index.js +1 -8
  145. package/dist/components/FileUpload/FileUpload.d.ts +16 -0
  146. package/dist/{chunk-LR6KNEKL.js → components/FileUpload/FileUpload.js} +12 -19
  147. package/dist/components/FileUpload/index.d.ts +2 -0
  148. package/dist/components/FileUpload/index.js +1 -6
  149. package/dist/components/FilterChip/FilterChip.d.ts +8 -0
  150. package/dist/{chunk-36QSSD7I.js → components/FilterChip/FilterChip.js} +6 -15
  151. package/dist/components/FilterChip/index.d.ts +2 -0
  152. package/dist/components/FilterChip/index.js +1 -7
  153. package/dist/components/Flag/Flag.d.ts +7 -0
  154. package/dist/{chunk-HOQPHAGW.js → components/Flag/Flag.js} +4 -10
  155. package/dist/components/Flag/index.d.ts +2 -0
  156. package/dist/components/Flag/index.js +1 -6
  157. package/dist/components/Flex/Flex.d.ts +10 -0
  158. package/dist/{chunk-BOO4VH3M.js → components/Flex/Flex.js} +5 -13
  159. package/dist/components/Flex/index.d.ts +2 -0
  160. package/dist/components/Flex/index.js +1 -6
  161. package/dist/components/FormError/FormError.d.ts +3 -0
  162. package/dist/{chunk-H2X6MSNY.js → components/FormError/FormError.js} +3 -9
  163. package/dist/components/FormError/index.d.ts +2 -0
  164. package/dist/components/FormError/index.js +1 -6
  165. package/dist/components/FormField/FormField.d.ts +46 -0
  166. package/dist/{chunk-FRGFO4DS.js → components/FormField/FormField.js} +9 -20
  167. package/dist/components/FormField/index.d.ts +2 -0
  168. package/dist/components/FormField/index.js +1 -11
  169. package/dist/components/GradientDivider/GradientDivider.d.ts +6 -0
  170. package/dist/{chunk-FDRAGYDV.js → components/GradientDivider/GradientDivider.js} +7 -13
  171. package/dist/components/GradientDivider/index.d.ts +2 -0
  172. package/dist/components/GradientDivider/index.js +1 -5
  173. package/dist/components/Grid/Grid.d.ts +9 -0
  174. package/dist/{chunk-F5S2KP3Z.js → components/Grid/Grid.js} +5 -13
  175. package/dist/components/Grid/index.d.ts +2 -0
  176. package/dist/components/Grid/index.js +1 -6
  177. package/dist/components/Heading/Heading.d.ts +17 -0
  178. package/dist/{chunk-Z7OR2LYG.js → components/Heading/Heading.js} +8 -16
  179. package/dist/components/Heading/index.d.ts +2 -0
  180. package/dist/components/Heading/index.js +1 -9
  181. package/dist/components/HelperText/HelperText.d.ts +6 -0
  182. package/dist/{chunk-QKGQBJ4U.js → components/HelperText/HelperText.js} +4 -12
  183. package/dist/components/HelperText/index.d.ts +2 -0
  184. package/dist/components/HelperText/index.js +1 -9
  185. package/dist/components/HoverCard/HoverCard.d.ts +10 -0
  186. package/dist/{chunk-KL55E5PE.js → components/HoverCard/HoverCard.js} +15 -22
  187. package/dist/components/HoverCard/index.d.ts +1 -0
  188. package/dist/components/HoverCard/index.js +1 -7
  189. package/dist/components/IconButton/IconButton.d.ts +11 -0
  190. package/dist/{chunk-RH2HEPC7.js → components/IconButton/IconButton.js} +7 -17
  191. package/dist/components/IconButton/index.d.ts +2 -0
  192. package/dist/components/IconButton/index.js +1 -8
  193. package/dist/components/Input/Input.d.ts +21 -0
  194. package/dist/{chunk-G7VMAWAX.js → components/Input/Input.js} +10 -21
  195. package/dist/components/Input/index.d.ts +2 -0
  196. package/dist/components/Input/index.js +1 -10
  197. package/dist/components/Kbd/Kbd.d.ts +4 -0
  198. package/dist/{chunk-OM62PQSE.js → components/Kbd/Kbd.js} +3 -9
  199. package/dist/components/Kbd/index.d.ts +2 -0
  200. package/dist/components/Kbd/index.js +1 -6
  201. package/dist/components/KeyboardShortcut/KeyboardShortcut.d.ts +5 -0
  202. package/dist/{chunk-PR3CEPFG.js → components/KeyboardShortcut/KeyboardShortcut.js} +4 -12
  203. package/dist/components/KeyboardShortcut/index.d.ts +2 -0
  204. package/dist/components/KeyboardShortcut/index.js +1 -6
  205. package/dist/components/Label/Label.d.ts +15 -0
  206. package/dist/{chunk-BM5PGGK2.js → components/Label/Label.js} +7 -15
  207. package/dist/components/Label/index.d.ts +2 -0
  208. package/dist/components/Label/index.js +1 -10
  209. package/dist/components/Link/Link.d.ts +11 -0
  210. package/dist/{chunk-QCLE5VQW.js → components/Link/Link.js} +6 -12
  211. package/dist/components/Link/index.d.ts +2 -0
  212. package/dist/components/Link/index.js +1 -6
  213. package/dist/components/Logo/Logo.d.ts +15 -0
  214. package/dist/{chunk-ZGJF4HAT.js → components/Logo/Logo.js} +8 -14
  215. package/dist/components/Logo/index.d.ts +2 -0
  216. package/dist/components/Logo/index.js +1 -6
  217. package/dist/components/MediaCard/MediaCard.d.ts +24 -0
  218. package/dist/{chunk-5DHLFPC4.js → components/MediaCard/MediaCard.js} +5 -13
  219. package/dist/components/MediaCard/index.d.ts +2 -0
  220. package/dist/components/MediaCard/index.js +1 -6
  221. package/dist/components/Menubar/Menubar.d.ts +1 -0
  222. package/dist/{chunk-PPECMYKJ.js → components/Menubar/Menubar.js} +50 -61
  223. package/dist/components/Menubar/index.d.ts +1 -0
  224. package/dist/components/Menubar/index.js +1 -6
  225. package/dist/components/MessageBubble/MessageBubble.d.ts +43 -0
  226. package/dist/{chunk-RNS35DNZ.js → components/MessageBubble/MessageBubble.js} +13 -27
  227. package/dist/components/MessageBubble/index.d.ts +2 -0
  228. package/dist/components/MessageBubble/index.js +1 -13
  229. package/dist/components/MoneyInput/MoneyInput.d.ts +19 -0
  230. package/dist/{chunk-FOFNTKCK.js → components/MoneyInput/MoneyInput.js} +8 -24
  231. package/dist/components/MoneyInput/index.d.ts +2 -0
  232. package/dist/components/MoneyInput/index.js +1 -11
  233. package/dist/components/Motion/Collapse.d.ts +29 -0
  234. package/dist/components/Motion/Collapse.js +103 -0
  235. package/dist/components/Motion/Fade.d.ts +16 -0
  236. package/dist/components/Motion/Fade.js +42 -0
  237. package/dist/components/Motion/Float.d.ts +8 -0
  238. package/dist/components/Motion/Float.js +14 -0
  239. package/dist/components/Motion/ListTransition.d.ts +46 -0
  240. package/dist/components/Motion/ListTransition.js +110 -0
  241. package/dist/components/Motion/Marquee.d.ts +13 -0
  242. package/dist/components/Motion/Marquee.js +13 -0
  243. package/dist/components/Motion/Reveal.d.ts +12 -0
  244. package/dist/components/Motion/Reveal.js +32 -0
  245. package/dist/components/Motion/Scale.d.ts +22 -0
  246. package/dist/components/Motion/Scale.js +45 -0
  247. package/dist/components/Motion/Slide.d.ts +22 -0
  248. package/dist/components/Motion/Slide.js +59 -0
  249. package/dist/components/Motion/index.d.ts +18 -0
  250. package/dist/components/Motion/index.js +12 -10
  251. package/dist/components/Motion/motion.types.d.ts +25 -0
  252. package/dist/components/Motion/motion.types.js +1 -0
  253. package/dist/components/Motion/useMotion.d.ts +41 -0
  254. package/dist/components/Motion/useMotion.js +102 -0
  255. package/dist/components/NavigationMenu/NavigationMenu.d.ts +12 -0
  256. package/dist/{chunk-FXVI4RCJ.js → components/NavigationMenu/NavigationMenu.js} +21 -28
  257. package/dist/components/NavigationMenu/index.d.ts +1 -0
  258. package/dist/components/NavigationMenu/index.js +1 -6
  259. package/dist/components/NavigationRail/NavigationRail.d.ts +19 -0
  260. package/dist/{chunk-5MGCYR4G.js → components/NavigationRail/NavigationRail.js} +7 -14
  261. package/dist/components/NavigationRail/index.d.ts +2 -0
  262. package/dist/components/NavigationRail/index.js +1 -6
  263. package/dist/components/NexubProvider/NexubProvider.d.ts +34 -0
  264. package/dist/{chunk-VMSWIC3O.js → components/NexubProvider/NexubProvider.js} +7 -9
  265. package/dist/components/NexubProvider/index.d.ts +2 -0
  266. package/dist/components/NexubProvider/index.js +1 -8
  267. package/dist/components/NumberInput/NumberInput.d.ts +15 -0
  268. package/dist/{chunk-V3EWVSVI.js → components/NumberInput/NumberInput.js} +9 -20
  269. package/dist/components/NumberInput/index.d.ts +2 -0
  270. package/dist/components/NumberInput/index.js +1 -8
  271. package/dist/components/NumberTicker/NumberTicker.d.ts +25 -0
  272. package/dist/{chunk-2G3XUIQZ.js → components/NumberTicker/NumberTicker.js} +30 -19
  273. package/dist/components/NumberTicker/index.d.ts +2 -0
  274. package/dist/components/NumberTicker/index.js +1 -7
  275. package/dist/components/PageHeader/PageHeader.d.ts +10 -0
  276. package/dist/{chunk-SEW66BU7.js → components/PageHeader/PageHeader.js} +3 -9
  277. package/dist/components/PageHeader/index.d.ts +2 -0
  278. package/dist/components/PageHeader/index.js +1 -5
  279. package/dist/components/Pagination/Pagination.d.ts +9 -0
  280. package/dist/{chunk-NLVP74RX.js → components/Pagination/Pagination.js} +7 -17
  281. package/dist/components/Pagination/index.d.ts +2 -0
  282. package/dist/components/Pagination/index.js +1 -7
  283. package/dist/components/PasswordInput/PasswordInput.d.ts +9 -0
  284. package/dist/{chunk-OGHOT6XN.js → components/PasswordInput/PasswordInput.js} +7 -18
  285. package/dist/components/PasswordInput/index.d.ts +2 -0
  286. package/dist/components/PasswordInput/index.js +1 -10
  287. package/dist/components/Popover/Popover.d.ts +13 -0
  288. package/dist/{chunk-MPJG4WFP.js → components/Popover/Popover.js} +20 -29
  289. package/dist/components/Popover/index.d.ts +1 -0
  290. package/dist/components/Popover/index.js +1 -7
  291. package/dist/components/Progress/Progress.d.ts +17 -0
  292. package/dist/{chunk-HXNUIIXB.js → components/Progress/Progress.js} +9 -16
  293. package/dist/components/Progress/index.d.ts +2 -0
  294. package/dist/components/Progress/index.js +1 -8
  295. package/dist/components/PromptInput/PromptInput.d.ts +33 -0
  296. package/dist/{chunk-ZUMC7SX5.js → components/PromptInput/PromptInput.js} +12 -30
  297. package/dist/components/PromptInput/index.d.ts +2 -0
  298. package/dist/components/PromptInput/index.js +1 -12
  299. package/dist/components/RadioCard/RadioCard.d.ts +11 -0
  300. package/dist/{chunk-YNLXG574.js → components/RadioCard/RadioCard.js} +11 -16
  301. package/dist/components/RadioCard/index.d.ts +2 -0
  302. package/dist/components/RadioCard/index.js +1 -7
  303. package/dist/components/RadioCard/selectableCard.d.ts +29 -0
  304. package/dist/{chunk-6SPCGCDG.js → components/RadioCard/selectableCard.js} +6 -11
  305. package/dist/components/RadioGroup/RadioGroup.d.ts +6 -0
  306. package/dist/{chunk-QQR4PPF3.js → components/RadioGroup/RadioGroup.js} +8 -13
  307. package/dist/components/RadioGroup/index.d.ts +1 -0
  308. package/dist/components/RadioGroup/index.js +1 -5
  309. package/dist/components/Rating/Rating.d.ts +12 -0
  310. package/dist/{chunk-VCCQ64G7.js → components/Rating/Rating.js} +9 -18
  311. package/dist/components/Rating/index.d.ts +2 -0
  312. package/dist/components/Rating/index.js +1 -9
  313. package/dist/components/ScrollArea/ScrollArea.d.ts +6 -0
  314. package/dist/{chunk-2DZWTBDL.js → components/ScrollArea/ScrollArea.js} +4 -9
  315. package/dist/components/ScrollArea/index.d.ts +2 -0
  316. package/dist/components/ScrollArea/index.js +1 -5
  317. package/dist/components/SearchInput/SearchInput.d.ts +6 -0
  318. package/dist/{chunk-YVS6AVPD.js → components/SearchInput/SearchInput.js} +7 -18
  319. package/dist/components/SearchInput/index.d.ts +2 -0
  320. package/dist/components/SearchInput/index.js +1 -10
  321. package/dist/components/Section/Section.d.ts +10 -0
  322. package/dist/{chunk-EIV37DAQ.js → components/Section/Section.js} +6 -12
  323. package/dist/components/Section/index.d.ts +2 -0
  324. package/dist/components/Section/index.js +1 -6
  325. package/dist/components/SegmentedControl/SegmentedControl.d.ts +12 -0
  326. package/dist/{chunk-KRIRCSUB.js → components/SegmentedControl/SegmentedControl.js} +12 -21
  327. package/dist/components/SegmentedControl/index.d.ts +2 -0
  328. package/dist/components/SegmentedControl/index.js +1 -8
  329. package/dist/components/Select/Select.d.ts +16 -0
  330. package/dist/{chunk-M5PDVHFN.js → components/Select/Select.js} +35 -48
  331. package/dist/components/Select/index.d.ts +1 -0
  332. package/dist/components/Select/index.js +1 -7
  333. package/dist/components/Separator/Separator.d.ts +12 -0
  334. package/dist/{chunk-YVCUKIAC.js → components/Separator/Separator.js} +6 -12
  335. package/dist/components/Separator/index.d.ts +2 -0
  336. package/dist/components/Separator/index.js +1 -6
  337. package/dist/components/Sidebar/Sidebar.d.ts +25 -0
  338. package/dist/{chunk-NAESV7K3.js → components/Sidebar/Sidebar.js} +11 -18
  339. package/dist/components/Sidebar/index.d.ts +2 -0
  340. package/dist/components/Sidebar/index.js +1 -6
  341. package/dist/components/Skeleton/Skeleton.d.ts +14 -0
  342. package/dist/{chunk-3C4WVTAN.js → components/Skeleton/Skeleton.js} +7 -13
  343. package/dist/components/Skeleton/index.d.ts +2 -0
  344. package/dist/components/Skeleton/index.js +1 -6
  345. package/dist/components/Slider/Slider.d.ts +7 -0
  346. package/dist/{chunk-5QWRBJSZ.js → components/Slider/Slider.js} +4 -9
  347. package/dist/components/Slider/index.d.ts +2 -0
  348. package/dist/components/Slider/index.js +1 -5
  349. package/dist/components/Spinner/Spinner.d.ts +12 -0
  350. package/dist/{chunk-P3SAE4T2.js → components/Spinner/Spinner.js} +8 -15
  351. package/dist/components/Spinner/index.d.ts +2 -0
  352. package/dist/components/Spinner/index.js +1 -7
  353. package/dist/components/SplitButton/SplitButton.d.ts +15 -0
  354. package/dist/{chunk-ILIM4BLN.js → components/SplitButton/SplitButton.js} +7 -18
  355. package/dist/components/SplitButton/index.d.ts +2 -0
  356. package/dist/components/SplitButton/index.js +1 -11
  357. package/dist/components/Stack/Stack.d.ts +11 -0
  358. package/dist/{chunk-ST4O3EQ3.js → components/Stack/Stack.js} +4 -12
  359. package/dist/components/Stack/index.d.ts +2 -0
  360. package/dist/components/Stack/index.js +1 -6
  361. package/dist/components/StreamingText/StreamingText.d.ts +19 -0
  362. package/dist/{chunk-4ESZQDPB.js → components/StreamingText/StreamingText.js} +5 -10
  363. package/dist/components/StreamingText/index.d.ts +2 -0
  364. package/dist/components/StreamingText/index.js +1 -5
  365. package/dist/components/Switch/Switch.d.ts +12 -0
  366. package/dist/{chunk-EWW6PWTK.js → components/Switch/Switch.js} +9 -12
  367. package/dist/components/Switch/index.d.ts +2 -0
  368. package/dist/components/Switch/index.js +1 -5
  369. package/dist/components/Table/Table.d.ts +18 -0
  370. package/dist/{chunk-KA6RZ7VN.js → components/Table/Table.js} +13 -18
  371. package/dist/components/Table/index.d.ts +2 -0
  372. package/dist/components/Table/index.js +1 -6
  373. package/dist/components/Tabs/Tabs.d.ts +8 -0
  374. package/dist/{chunk-BIWSXGTZ.js → components/Tabs/Tabs.js} +14 -23
  375. package/dist/components/Tabs/index.d.ts +1 -0
  376. package/dist/components/Tabs/index.js +1 -8
  377. package/dist/components/Text/Text.d.ts +13 -0
  378. package/dist/{chunk-UYINKNCI.js → components/Text/Text.js} +7 -13
  379. package/dist/components/Text/index.d.ts +2 -0
  380. package/dist/components/Text/index.js +1 -6
  381. package/dist/components/TextGradient/TextGradient.d.ts +4 -0
  382. package/dist/{chunk-IDPRAXCG.js → components/TextGradient/TextGradient.js} +3 -9
  383. package/dist/components/TextGradient/index.d.ts +2 -0
  384. package/dist/components/TextGradient/index.js +1 -5
  385. package/dist/components/Textarea/Textarea.d.ts +13 -0
  386. package/dist/{chunk-HL64PWVQ.js → components/Textarea/Textarea.js} +8 -17
  387. package/dist/components/Textarea/index.d.ts +2 -0
  388. package/dist/components/Textarea/index.js +1 -7
  389. package/dist/components/ThemeProvider/ThemeProvider.d.ts +69 -0
  390. package/dist/{chunk-ZBRRQHZG.js → components/ThemeProvider/ThemeProvider.js} +11 -15
  391. package/dist/components/ThemeProvider/index.d.ts +2 -0
  392. package/dist/components/ThemeProvider/index.js +1 -7
  393. package/dist/components/ThinkingIndicator/ThinkingIndicator.d.ts +18 -0
  394. package/dist/{chunk-VX56VQMF.js → components/ThinkingIndicator/ThinkingIndicator.js} +6 -13
  395. package/dist/components/ThinkingIndicator/index.d.ts +2 -0
  396. package/dist/components/ThinkingIndicator/index.js +1 -6
  397. package/dist/components/Toast/Toast.d.ts +17 -0
  398. package/dist/components/Toast/Toast.js +82 -0
  399. package/dist/components/Toast/Toaster.d.ts +21 -0
  400. package/dist/{chunk-MQGBAWSJ.js → components/Toast/Toaster.js} +27 -189
  401. package/dist/components/Toast/index.d.ts +5 -0
  402. package/dist/components/Toast/index.js +3 -10
  403. package/dist/components/Toast/useToast.d.ts +45 -0
  404. package/dist/components/Toast/useToast.js +74 -0
  405. package/dist/components/Toggle/Toggle.d.ts +10 -0
  406. package/dist/{chunk-NMSQDI4A.js → components/Toggle/Toggle.js} +7 -12
  407. package/dist/components/Toggle/index.d.ts +2 -0
  408. package/dist/components/Toggle/index.js +1 -7
  409. package/dist/components/ToggleGroup/ToggleGroup.d.ts +16 -0
  410. package/dist/{chunk-UOBWHPXG.js → components/ToggleGroup/ToggleGroup.js} +10 -17
  411. package/dist/components/ToggleGroup/index.d.ts +1 -0
  412. package/dist/components/ToggleGroup/index.js +1 -6
  413. package/dist/components/Toolbar/Toolbar.d.ts +18 -0
  414. package/dist/{chunk-WGW7TZOV.js → components/Toolbar/Toolbar.js} +15 -22
  415. package/dist/components/Toolbar/index.d.ts +2 -0
  416. package/dist/components/Toolbar/index.js +1 -6
  417. package/dist/components/Tooltip/Tooltip.d.ts +14 -0
  418. package/dist/{chunk-6SWOLUMF.js → components/Tooltip/Tooltip.js} +16 -21
  419. package/dist/components/Tooltip/index.d.ts +1 -0
  420. package/dist/components/Tooltip/index.js +1 -10
  421. package/dist/components/TopNav/TopNav.d.ts +20 -0
  422. package/dist/{chunk-BNG3Y5I7.js → components/TopNav/TopNav.js} +11 -20
  423. package/dist/components/TopNav/index.d.ts +2 -0
  424. package/dist/components/TopNav/index.js +1 -7
  425. package/dist/components/VisuallyHidden/VisuallyHidden.d.ts +2 -0
  426. package/dist/components/VisuallyHidden/VisuallyHidden.js +5 -0
  427. package/dist/components/VisuallyHidden/index.d.ts +2 -0
  428. package/dist/components/VisuallyHidden/index.js +2 -5
  429. package/dist/hooks/useClassScrollLock.d.ts +6 -0
  430. package/dist/{chunk-47UGX37F.js → hooks/useClassScrollLock.js} +2 -5
  431. package/dist/hooks/useControllableState.d.ts +7 -0
  432. package/dist/{chunk-JLUCMNVS.js → hooks/useControllableState.js} +2 -7
  433. package/dist/hooks/useDisclosure.d.ts +6 -0
  434. package/dist/hooks/useDisclosure.js +12 -0
  435. package/dist/hooks/useIsomorphicLayoutEffect.d.ts +2 -0
  436. package/dist/hooks/useIsomorphicLayoutEffect.js +5 -0
  437. package/dist/hooks/useMediaQuery.d.ts +1 -0
  438. package/dist/hooks/useMediaQuery.js +17 -0
  439. package/dist/hooks/useMergedRefs.d.ts +2 -0
  440. package/dist/{chunk-MNEXMMLM.js → hooks/useMergedRefs.js} +1 -4
  441. package/dist/hooks/usePointerSheen.d.ts +8 -0
  442. package/dist/hooks/usePointerSheen.js +25 -0
  443. package/dist/hooks/useSlidingIndicator.d.ts +8 -0
  444. package/dist/{chunk-6UKNUI46.js → hooks/useSlidingIndicator.js} +2 -7
  445. package/dist/index.d.ts +196 -1900
  446. package/dist/index.js +116 -438
  447. package/dist/styles.css +1 -1
  448. package/dist/utils/cn.d.ts +2 -0
  449. package/dist/{chunk-WRVFNYO3.js → utils/cn.js} +8 -11
  450. package/dist/utils/control.d.ts +20 -0
  451. package/dist/utils/control.js +41 -0
  452. package/dist/utils/deprecated.d.ts +6 -0
  453. package/dist/{chunk-VLME3JFF.js → utils/deprecated.js} +1 -5
  454. package/dist/utils/glass.d.ts +9 -0
  455. package/dist/utils/glass.js +4 -0
  456. package/dist/utils/layout.d.ts +14 -0
  457. package/dist/{chunk-VLQGQFW7.js → utils/layout.js} +5 -9
  458. package/dist/utils/money.d.ts +1 -0
  459. package/dist/{chunk-R3SUPKKI.js → utils/money.js} +3 -6
  460. package/dist/utils/surface.d.ts +11 -0
  461. package/dist/{chunk-5FWJXSXT.js → utils/surface.js} +9 -13
  462. package/dist/utils/viewTransition.d.ts +5 -0
  463. package/dist/utils/viewTransition.js +8 -0
  464. package/dist/{chunk-PZL6AJH5.js → vendor/vaul.js} +2 -140
  465. package/package.json +15 -7
  466. package/dist/chunk-4B4XWDAH.js +0 -1
  467. package/dist/chunk-4GVGS5N4.js +0 -468
  468. package/dist/chunk-52ZVJPF7.js +0 -1
  469. package/dist/chunk-A3O23F2B.js +0 -1
  470. package/dist/chunk-ADO2DB6Q.js +0 -1
  471. package/dist/chunk-BV3U3ATL.js +0 -1
  472. package/dist/chunk-CAOLGXA5.js +0 -1
  473. package/dist/chunk-CQQ5UAO3.js +0 -91
  474. package/dist/chunk-DEIBF3P7.js +0 -8
  475. package/dist/chunk-EV43I5J6.js +0 -1
  476. package/dist/chunk-HI7GBSW2.js +0 -1
  477. package/dist/chunk-HY3JWSG4.js +0 -1
  478. package/dist/chunk-IZ6ZPEZ2.js +0 -1
  479. package/dist/chunk-KLTQJZOX.js +0 -1
  480. package/dist/chunk-LVPU7455.js +0 -1
  481. package/dist/chunk-NHUQLIHL.js +0 -9
  482. package/dist/chunk-NZ7UK3G6.js +0 -1
  483. package/dist/chunk-P26VJEIW.js +0 -1
  484. package/dist/chunk-PICMOOAZ.js +0 -1
  485. package/dist/chunk-PXISQY4H.js +0 -59
  486. package/dist/chunk-VALIDQXU.js +0 -31
  487. package/dist/chunk-WLRRMT6W.js +0 -1
  488. package/dist/chunk-XIKO5XFW.js +0 -89
  489. package/dist/chunk-XYXMPHND.js +0 -1
  490. package/dist/chunk-YJU4ZRQZ.js +0 -1
  491. package/dist/chunk-Z46ISXJ6.js +0 -57
  492. package/dist/chunk-ZT3NWE5U.js +0 -1
  493. package/dist/chunk-ZXLACKEB.js +0 -8
  494. package/dist/components/Banner/index.js +0 -12
  495. package/dist/components/Callout/index.js +0 -11
  496. package/dist/components/StatusPill/index.js +0 -11
  497. package/dist/components/Tag/index.js +0 -11
@@ -0,0 +1,2 @@
1
+ import { type ClassValue } from 'clsx';
2
+ export declare function cn(...inputs: ClassValue[]): string;
@@ -1,19 +1,17 @@
1
- 'use client';
2
-
3
- // src/utils/cn.ts
4
1
  import { clsx } from "clsx";
5
2
  import { extendTailwindMerge, getDefaultConfig } from "tailwind-merge";
6
- var sizes = ["xs", "sm", "md", "lg", "xl"];
7
- var typeRoles = ["display", "headline", "title", "body", "label"].flatMap(
8
- (r) => ["lg", "md", "sm"].map((s) => `${r}-${s}`)
9
- );
10
- var springs = ["spatial", "effects", "expressive"].flatMap(
3
+ const sizes = ["xs", "sm", "md", "lg", "xl"];
4
+ const typeRoles = [
5
+ "display-xl",
6
+ ...["display", "headline", "title", "body", "label"].flatMap((r) => ["lg", "md", "sm"].map((s) => `${r}-${s}`))
7
+ ];
8
+ const springs = ["spatial", "effects", "expressive"].flatMap(
11
9
  (k) => ["fast", "default", "slow"].map((s) => `${k}-${s}`)
12
10
  );
13
- var outlineWidths = getDefaultConfig().classGroups["outline-w"][0].outline.filter(
11
+ const outlineWidths = getDefaultConfig().classGroups["outline-w"][0].outline.filter(
14
12
  (v) => v !== ""
15
13
  );
16
- var twMerge = extendTailwindMerge({
14
+ const twMerge = extendTailwindMerge({
17
15
  override: {
18
16
  classGroups: { "outline-w": [{ outline: outlineWidths }] }
19
17
  },
@@ -34,7 +32,6 @@ var twMerge = extendTailwindMerge({
34
32
  function cn(...inputs) {
35
33
  return twMerge(clsx(inputs));
36
34
  }
37
-
38
35
  export {
39
36
  cn
40
37
  };
@@ -0,0 +1,20 @@
1
+ import type { ToneValue } from '@nexub/core';
2
+ /** The shared size scale. Components with extra steps extend it (`Size | 'display'`). */
3
+ export type Size = 'sm' | 'md' | 'lg';
4
+ export declare const toneTextClasses: Record<ToneValue, string>;
5
+ /** Text field chrome: Input wrapper, Textarea, Select trigger. */
6
+ export declare const field: string;
7
+ /** Focus = a 2px primary border (1px border + 1px inset), no offset ring. */
8
+ export declare const 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)]";
9
+ export declare const fieldFocusVisible = "focus-visible:outline-none focus-visible:border-[var(--color-primary)] focus-visible:shadow-[inset_0_0_0_1px_var(--color-primary)]";
10
+ export declare const fieldInvalid: string;
11
+ /** Explicit disabled field (no opacity tricks). */
12
+ export declare const fieldDisabled = "cursor-not-allowed border-[var(--color-outline-variant)] hover:border-[var(--color-outline-variant)] bg-[var(--color-surface-container-low)] text-[var(--color-text-disabled)]";
13
+ /** The same, applied by a wrapper when its inner control is :disabled. */
14
+ export declare const 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)]";
15
+ /** Pressable control: capsule, state layer (hover/focus/press overlay), press spring. */
16
+ export declare const pressable = "nx-state-layer nx-press rounded-shape-control select-none";
17
+ /** Disabled for controls with a container (filled, tonal, outlined). */
18
+ export declare const 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";
19
+ /** Disabled for text-only controls (ghost, link). */
20
+ export declare const disabledText = "disabled:pointer-events-none disabled:text-[var(--color-text-disabled)] aria-disabled:pointer-events-none";
@@ -0,0 +1,41 @@
1
+ const toneTextClasses = {
2
+ neutral: "text-[var(--color-on-surface-variant)]",
3
+ info: "text-[var(--color-info)]",
4
+ success: "text-[var(--color-success)]",
5
+ warning: "text-[var(--color-warning)]",
6
+ danger: "text-[var(--color-error)]",
7
+ leap: "text-[var(--color-leap)]",
8
+ bookub: "text-[var(--color-bookub)]",
9
+ payub: "text-[var(--color-payub)]",
10
+ founderub: "text-[var(--color-founderub)]"
11
+ };
12
+ const field = [
13
+ "rounded-[var(--field-radius,var(--shape-field))] border border-[var(--field-border,var(--color-outline))]",
14
+ "bg-[var(--field-bg,var(--color-surface-container-lowest))] text-[var(--field-fg,var(--color-on-surface))]",
15
+ "transition-[border-color,box-shadow] duration-effects-fast ease-effects-fast",
16
+ "hover:border-[var(--color-on-surface-variant)]"
17
+ ].join(" ");
18
+ const 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)]";
19
+ const fieldFocusVisible = "focus-visible:outline-none focus-visible:border-[var(--color-primary)] focus-visible:shadow-[inset_0_0_0_1px_var(--color-primary)]";
20
+ const fieldInvalid = [
21
+ "border-[var(--color-error)] hover:border-[var(--color-error)]",
22
+ "focus-within:border-[var(--color-error)] focus-within:shadow-[inset_0_0_0_1px_var(--color-error)] focus-within:hover:border-[var(--color-error)]",
23
+ "focus-visible:border-[var(--color-error)] focus-visible:shadow-[inset_0_0_0_1px_var(--color-error)]"
24
+ ].join(" ");
25
+ const fieldDisabled = "cursor-not-allowed border-[var(--color-outline-variant)] hover:border-[var(--color-outline-variant)] bg-[var(--color-surface-container-low)] text-[var(--color-text-disabled)]";
26
+ const 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)]";
27
+ const pressable = "nx-state-layer nx-press rounded-shape-control select-none";
28
+ const 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";
29
+ const disabledText = "disabled:pointer-events-none disabled:text-[var(--color-text-disabled)] aria-disabled:pointer-events-none";
30
+ export {
31
+ disabledContainer,
32
+ disabledText,
33
+ field,
34
+ fieldDisabled,
35
+ fieldDisabledWithin,
36
+ fieldFocusVisible,
37
+ fieldFocusWithin,
38
+ fieldInvalid,
39
+ pressable,
40
+ toneTextClasses
41
+ };
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Warns once per component, outside production, that it is deprecated and removed in 3.0
3
+ * (GOVERNANCE.md: a removal needs a development warning in a 2.x minor first).
4
+ * Bundlers replace `process.env.NODE_ENV`, so production builds drop the call's body.
5
+ */
6
+ export declare function warnDeprecated(name: string, replacement: string): void;
@@ -1,7 +1,4 @@
1
- 'use client';
2
-
3
- // src/utils/deprecated.ts
4
- var warned = /* @__PURE__ */ new Set();
1
+ const warned = /* @__PURE__ */ new Set();
5
2
  function warnDeprecated(name, replacement) {
6
3
  try {
7
4
  if (process.env.NODE_ENV === "production") return;
@@ -14,7 +11,6 @@ function warnDeprecated(name, replacement) {
14
11
  `[@nexub/react] ${name} is deprecated and will be removed in 3.0. Use ${replacement} instead.`
15
12
  );
16
13
  }
17
-
18
14
  export {
19
15
  warnDeprecated
20
16
  };
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Glass 2.0 material (values in `@nexub/themes/glass`). Apply `glassSurfaceClass`
3
+ * AND set `data-material="glass"` on the same element so the `--glass-*` vars
4
+ * resolve. It overrides bg/border, so place it after a surface's solid classes.
5
+ * Optional `data-glass-thickness` (thin | thick) scales blur and shadow with size.
6
+ */
7
+ export declare const 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)]";
8
+ export type SurfaceValue = 'solid' | 'glass';
9
+ export type GlassThickness = 'thin' | 'regular' | 'thick';
@@ -0,0 +1,4 @@
1
+ const 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)]";
2
+ export {
3
+ glassSurfaceClass
4
+ };
@@ -0,0 +1,14 @@
1
+ import type * as React from 'react';
2
+ export interface LayoutInput {
3
+ gap?: number | string;
4
+ align?: string;
5
+ justify?: string;
6
+ cols?: number | string;
7
+ rows?: number | string;
8
+ style?: React.CSSProperties;
9
+ }
10
+ /** Classes for on-scale values; a style object only for the rest (else undefined). */
11
+ export declare function layoutProps({ gap, align, justify, cols, rows, style }: LayoutInput): {
12
+ className: string[];
13
+ style: React.CSSProperties | undefined;
14
+ };
@@ -1,7 +1,4 @@
1
- 'use client';
2
-
3
- // src/utils/layout.ts
4
- var GAP = {
1
+ const GAP = {
5
2
  "0": "gap-0",
6
3
  "0.5": "gap-0.5",
7
4
  "1": "gap-1",
@@ -24,7 +21,7 @@ var GAP = {
24
21
  "20": "gap-20",
25
22
  "24": "gap-24"
26
23
  };
27
- var ALIGN = {
24
+ const ALIGN = {
28
25
  start: "items-start",
29
26
  "flex-start": "items-start",
30
27
  end: "items-end",
@@ -33,7 +30,7 @@ var ALIGN = {
33
30
  baseline: "items-baseline",
34
31
  stretch: "items-stretch"
35
32
  };
36
- var JUSTIFY = {
33
+ const JUSTIFY = {
37
34
  start: "justify-start",
38
35
  "flex-start": "justify-start",
39
36
  end: "justify-end",
@@ -47,7 +44,7 @@ var JUSTIFY = {
47
44
  "space-evenly": "justify-evenly",
48
45
  stretch: "justify-stretch"
49
46
  };
50
- var COLS = {
47
+ const COLS = {
51
48
  "1": "grid-cols-1",
52
49
  "2": "grid-cols-2",
53
50
  "3": "grid-cols-3",
@@ -61,7 +58,7 @@ var COLS = {
61
58
  "11": "grid-cols-11",
62
59
  "12": "grid-cols-12"
63
60
  };
64
- var ROWS = {
61
+ const ROWS = {
65
62
  "1": "grid-rows-1",
66
63
  "2": "grid-rows-2",
67
64
  "3": "grid-rows-3",
@@ -104,7 +101,6 @@ function layoutProps({ gap, align, justify, cols, rows, style }) {
104
101
  const merged = { ...s, ...style };
105
102
  return { className, style: Object.keys(merged).length ? merged : void 0 };
106
103
  }
107
-
108
104
  export {
109
105
  layoutProps
110
106
  };
@@ -0,0 +1 @@
1
+ export { moneyFormatter, fractionDigits, currencySymbol, formatForEditing, formatForDisplay, parseMoney } from '@nexub/core';
@@ -1,12 +1,9 @@
1
- 'use client';
2
-
3
- // src/utils/money.ts
4
1
  import { moneyFormatter, fractionDigits, currencySymbol, formatForEditing, formatForDisplay, parseMoney } from "@nexub/core";
5
-
6
2
  export {
7
- moneyFormatter,
8
3
  currencySymbol,
9
- formatForEditing,
10
4
  formatForDisplay,
5
+ formatForEditing,
6
+ fractionDigits,
7
+ moneyFormatter,
11
8
  parseMoney
12
9
  };
@@ -0,0 +1,11 @@
1
+ /** Modal overlays: Dialog, AlertDialog, CommandPalette, Sheet. */
2
+ export declare const overlaySurface = "rounded-shape-overlay bg-[var(--color-surface-elevated)] text-[var(--color-on-surface)] shadow-elevation-3";
3
+ /** Floating containers: Popover, HoverCard, menus, Select content, Toast. */
4
+ export declare const floatingSurface = "rounded-shape-container bg-[var(--color-surface-elevated)] text-[var(--color-on-surface)] shadow-elevation-2";
5
+ /** Menu content padding; items use the concentric inner radius (16px − 6px). */
6
+ export declare const menuContent = "p-1.5";
7
+ export declare const menuItem: string;
8
+ export declare const menuSeparator = "-mx-1.5 my-1.5 h-px bg-[var(--color-outline-variant)]";
9
+ export declare const menuLabel = "px-2.5 py-1.5 text-label-sm text-[var(--color-on-surface-muted)]";
10
+ /** Scrim behind modal overlays. */
11
+ export declare const scrim = "bg-[color-mix(in_srgb,var(--color-scrim)_40%,transparent)]";
@@ -1,25 +1,21 @@
1
- 'use client';
2
-
3
- // src/utils/surface.ts
4
- var overlaySurface = "rounded-shape-overlay bg-[var(--color-surface-elevated)] text-[var(--color-on-surface)] shadow-elevation-3";
5
- var floatingSurface = "rounded-shape-container bg-[var(--color-surface-elevated)] text-[var(--color-on-surface)] shadow-elevation-2";
6
- var menuContent = "p-1.5";
7
- var menuItem = [
1
+ const overlaySurface = "rounded-shape-overlay bg-[var(--color-surface-elevated)] text-[var(--color-on-surface)] shadow-elevation-3";
2
+ const floatingSurface = "rounded-shape-container bg-[var(--color-surface-elevated)] text-[var(--color-on-surface)] shadow-elevation-2";
3
+ const menuContent = "p-1.5";
4
+ const menuItem = [
8
5
  "relative flex cursor-default select-none items-center gap-2 rounded-[10px] px-2.5 py-2 text-body-sm text-[var(--color-on-surface)] outline-none",
9
6
  // Highlight = the on-surface state layer at hover opacity.
10
7
  "focus:bg-[color-mix(in_srgb,var(--color-on-surface)_8%,transparent)] data-[highlighted]:bg-[color-mix(in_srgb,var(--color-on-surface)_8%,transparent)]",
11
8
  "data-[disabled]:pointer-events-none data-[disabled]:text-[var(--color-text-disabled)]"
12
9
  ].join(" ");
13
- var menuSeparator = "-mx-1.5 my-1.5 h-px bg-[var(--color-outline-variant)]";
14
- var menuLabel = "px-2.5 py-1.5 text-label-sm text-[var(--color-on-surface-muted)]";
15
- var scrim = "bg-[color-mix(in_srgb,var(--color-scrim)_40%,transparent)]";
16
-
10
+ const menuSeparator = "-mx-1.5 my-1.5 h-px bg-[var(--color-outline-variant)]";
11
+ const menuLabel = "px-2.5 py-1.5 text-label-sm text-[var(--color-on-surface-muted)]";
12
+ const scrim = "bg-[color-mix(in_srgb,var(--color-scrim)_40%,transparent)]";
17
13
  export {
18
- overlaySurface,
19
14
  floatingSurface,
20
15
  menuContent,
21
16
  menuItem,
22
- menuSeparator,
23
17
  menuLabel,
18
+ menuSeparator,
19
+ overlaySurface,
24
20
  scrim
25
21
  };
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Run a DOM update as a view transition (styles: @nexub/themes/view-transitions).
3
+ * Where the API is missing, or on the server, the update just runs.
4
+ */
5
+ export declare function startViewTransition(update: () => void | Promise<void>): void;
@@ -0,0 +1,8 @@
1
+ function startViewTransition(update) {
2
+ const doc = typeof document === "undefined" ? void 0 : document;
3
+ if (doc?.startViewTransition) doc.startViewTransition(update);
4
+ else void update();
5
+ }
6
+ export {
7
+ startViewTransition
8
+ };
@@ -1,20 +1,5 @@
1
1
  'use client';
2
- import {
3
- useClassScrollLock
4
- } from "./chunk-47UGX37F.js";
5
- import {
6
- scrim
7
- } from "./chunk-5FWJXSXT.js";
8
- import {
9
- glassSurfaceClass
10
- } from "./chunk-DEIBF3P7.js";
11
- import {
12
- cn
13
- } from "./chunk-WRVFNYO3.js";
14
-
15
- // src/components/Drawer/Drawer.tsx
16
- import * as React2 from "react";
17
- import { Slot } from "@radix-ui/react-slot";
2
+ "use client";
18
3
 
19
4
  // ../../node_modules/.pnpm/vaul@1.1.2_@types+react-dom@19.3.0_@types+react@19.3.0__@types+react@19.3.0_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/vaul/dist/index.mjs
20
5
  import * as DialogPrimitive from "@radix-ui/react-dialog";
@@ -1505,129 +1490,6 @@ var Drawer = {
1505
1490
  Title: DialogPrimitive.Title,
1506
1491
  Description: DialogPrimitive.Description
1507
1492
  };
1508
-
1509
- // src/components/Drawer/Drawer.tsx
1510
- import { jsx, jsxs } from "react/jsx-runtime";
1511
- var DrawerContext2 = React2.createContext({ scrollLock: "style", open: false, modal: true });
1512
- function Root3({ scrollLock = "style", onOpenChange, ...props }) {
1513
- const [uncontrolledOpen, setUncontrolledOpen] = React2.useState(props.defaultOpen ?? false);
1514
- const open = props.open ?? uncontrolledOpen;
1515
- return /* @__PURE__ */ jsx(DrawerContext2.Provider, { value: { scrollLock, open, modal: props.modal ?? true }, children: /* @__PURE__ */ jsx(
1516
- Drawer.Root,
1517
- {
1518
- ...props,
1519
- onOpenChange: (next) => {
1520
- setUncontrolledOpen(next);
1521
- onOpenChange?.(next);
1522
- }
1523
- }
1524
- ) });
1525
- }
1526
- Root3.displayName = "Drawer.Root";
1527
- var Trigger2 = Drawer.Trigger;
1528
- var Close2 = Drawer.Close;
1529
- var Portal3 = Drawer.Portal;
1530
- var ClassLockOverlay = React2.forwardRef(
1531
- ({ asChild, forceMount: _forceMount, open, ...props }, ref) => {
1532
- useClassScrollLock();
1533
- const Comp = asChild ? Slot : "div";
1534
- return /* @__PURE__ */ jsx(
1535
- Comp,
1536
- {
1537
- ref,
1538
- "data-vaul-overlay": "",
1539
- "data-vaul-snap-points": "false",
1540
- "data-state": open ? "open" : "closed",
1541
- ...props
1542
- }
1543
- );
1544
- }
1545
- );
1546
- var Overlay3 = React2.forwardRef(
1547
- ({ className, ...props }, ref) => {
1548
- const { scrollLock, open, modal } = React2.useContext(DrawerContext2);
1549
- const classes = cn("nx-drawer-overlay fixed inset-0 z-[var(--z-modal)]", scrim, className);
1550
- if (scrollLock === "class") {
1551
- if (!modal) return null;
1552
- return /* @__PURE__ */ jsx(ClassLockOverlay, { ref, open, className: cn("pointer-events-auto", classes), ...props });
1553
- }
1554
- return /* @__PURE__ */ jsx(Drawer.Overlay, { ref, className: classes, ...props });
1555
- }
1556
- );
1557
- Overlay3.displayName = "Drawer.Overlay";
1558
- var Content3 = React2.forwardRef(({ className, children, side = "right", surface = "solid", ...props }, ref) => {
1559
- const sideMap = {
1560
- right: "inset-y-0 right-0 h-full w-3/4 max-w-sm overflow-x-hidden",
1561
- left: "inset-y-0 left-0 h-full w-3/4 max-w-sm overflow-x-hidden",
1562
- top: "inset-x-0 top-0 w-full rounded-b-[var(--shape-overlay)]",
1563
- bottom: "inset-x-0 bottom-0 w-full rounded-t-[var(--shape-overlay)]"
1564
- };
1565
- return /* @__PURE__ */ jsxs(
1566
- Drawer.Content,
1567
- {
1568
- ref,
1569
- className: cn(
1570
- "nx-drawer fixed z-[var(--z-modal)] flex flex-col bg-[var(--color-surface-elevated)] text-[var(--color-on-surface)] shadow-elevation-3 focus:outline-none",
1571
- sideMap[side],
1572
- surface === "glass" && glassSurfaceClass,
1573
- className
1574
- ),
1575
- "data-material": surface === "glass" ? "glass" : void 0,
1576
- "data-glass-thickness": surface === "glass" ? "thick" : void 0,
1577
- ...props,
1578
- children: [
1579
- side === "bottom" && /* @__PURE__ */ jsx("div", { className: "mx-auto mt-4 h-2 w-20 rounded-full bg-[var(--color-outline-variant)]" }),
1580
- children
1581
- ]
1582
- }
1583
- );
1584
- });
1585
- Content3.displayName = "Drawer.Content";
1586
- var Title2 = React2.forwardRef(
1587
- ({ className, ...props }, ref) => /* @__PURE__ */ jsx(
1588
- Drawer.Title,
1589
- {
1590
- ref,
1591
- className: cn("text-title-lg text-[var(--color-on-surface)]", className),
1592
- ...props
1593
- }
1594
- )
1595
- );
1596
- Title2.displayName = "Drawer.Title";
1597
- var Description2 = React2.forwardRef(
1598
- ({ className, ...props }, ref) => /* @__PURE__ */ jsx(
1599
- Drawer.Description,
1600
- {
1601
- ref,
1602
- className: cn("text-body-sm text-[var(--color-on-surface-muted)]", className),
1603
- ...props
1604
- }
1605
- )
1606
- );
1607
- Description2.displayName = "Drawer.Description";
1608
- var Header = React2.forwardRef(
1609
- ({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", { ref, className: cn("flex flex-col gap-1.5 p-6", className), ...props })
1610
- );
1611
- Header.displayName = "Drawer.Header";
1612
- var Footer = React2.forwardRef(
1613
- ({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", { ref, className: cn("mt-auto flex flex-col gap-2 p-6", className), ...props })
1614
- );
1615
- Footer.displayName = "Drawer.Footer";
1616
- var Drawer2 = {
1617
- Root: Root3,
1618
- Trigger: Trigger2,
1619
- Portal: Portal3,
1620
- Overlay: Overlay3,
1621
- Content: Content3,
1622
- Close: Close2,
1623
- Title: Title2,
1624
- Description: Description2,
1625
- Header,
1626
- Footer
1627
- };
1628
- var Sheet = Drawer2;
1629
-
1630
1493
  export {
1631
- Drawer2 as Drawer,
1632
- Sheet
1494
+ Drawer
1633
1495
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nexub/react",
3
- "version": "2.9.0",
3
+ "version": "3.1.0",
4
4
  "description": "React component library for Nexub Design System — 90+ accessible, themeable UI components built on Radix UI primitives.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -34,6 +34,14 @@
34
34
  "default": "./dist/index.js"
35
35
  },
36
36
  "./styles.css": "./dist/styles.css",
37
+ "./cn": {
38
+ "types": "./dist/utils/cn.d.ts",
39
+ "default": "./dist/utils/cn.js"
40
+ },
41
+ "./*": {
42
+ "types": "./dist/components/*/index.d.ts",
43
+ "default": "./dist/components/*/index.js"
44
+ },
37
45
  "./package.json": "./package.json"
38
46
  },
39
47
  "main": "./dist/index.js",
@@ -71,13 +79,13 @@
71
79
  "date-fns": "^4.4.0",
72
80
  "react-day-picker": "^10.0.2",
73
81
  "tailwind-merge": "^3.7.0",
74
- "@nexub/core": "2.9.0",
75
- "@nexub/icons": "2.9.0"
82
+ "@nexub/core": "3.1.0",
83
+ "@nexub/icons": "3.1.0"
76
84
  },
77
85
  "peerDependencies": {
78
86
  "react": ">=18 <20",
79
87
  "react-dom": ">=18 <20",
80
- "@nexub/tokens": "^2.9.0"
88
+ "@nexub/tokens": "^3.1.0"
81
89
  },
82
90
  "devDependencies": {
83
91
  "@playwright/test": "1.64.0",
@@ -103,11 +111,11 @@
103
111
  "vaul": "1.1.2",
104
112
  "vite": "^8.3.5",
105
113
  "vitest": "^5.0.5",
106
- "@nexub/themes": "2.9.0",
107
- "@nexub/tokens": "2.9.0"
114
+ "@nexub/themes": "3.1.0",
115
+ "@nexub/tokens": "3.1.0"
108
116
  },
109
117
  "scripts": {
110
- "build": "tsup && node scripts/check-dts.mjs && tailwindcss -i src/styles.css -o dist/styles.css --minify && cp -R ../themes/src/fonts dist/fonts",
118
+ "build": "rm -rf dist && tsup && tsc -p tsconfig.build.json && rm -f dist/vendor/*.d.ts && node scripts/check-dts.mjs && tailwindcss -i src/styles.css -o dist/styles.css --minify && cp -R ../themes/src/fonts dist/fonts",
111
119
  "dev": "tsup --watch",
112
120
  "clean": "rm -rf dist",
113
121
  "typecheck": "tsc --noEmit",
@@ -1 +0,0 @@
1
- 'use client';