@nexus-cross/design-system 1.0.4-beta.1 → 1.0.4

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 (327) hide show
  1. package/cursor-rules/nexus-project-setup.mdc +167 -145
  2. package/cursor-rules/nexus-ui-api.mdc +894 -311
  3. package/cursor-rules/nexus-ui-components.mdc +179 -91
  4. package/dist/accordion.js +7 -7
  5. package/dist/accordion.mjs +2 -2
  6. package/dist/alert.d.mts +17 -0
  7. package/dist/alert.d.ts +17 -0
  8. package/dist/alert.js +16 -0
  9. package/dist/alert.mjs +3 -0
  10. package/dist/avatar.js +4 -4
  11. package/dist/avatar.mjs +2 -2
  12. package/dist/badge.d.mts +18 -0
  13. package/dist/badge.d.ts +18 -0
  14. package/dist/badge.js +16 -0
  15. package/dist/badge.mjs +3 -0
  16. package/dist/breadcrumb.d.mts +15 -0
  17. package/dist/breadcrumb.d.ts +15 -0
  18. package/dist/breadcrumb.js +12 -0
  19. package/dist/breadcrumb.mjs +3 -0
  20. package/dist/button.js +4 -4
  21. package/dist/button.mjs +2 -2
  22. package/dist/carousel.js +8 -8
  23. package/dist/carousel.mjs +2 -2
  24. package/dist/checkbox.js +5 -5
  25. package/dist/checkbox.mjs +2 -2
  26. package/dist/chip.d.mts +1 -1
  27. package/dist/chip.d.ts +1 -1
  28. package/dist/chip.js +4 -4
  29. package/dist/chip.mjs +2 -2
  30. package/dist/chunks/{chunk-5TBXVD56.js → chunk-2MC7XJSE.js} +16 -6
  31. package/dist/chunks/chunk-2N2EPBO4.js +120 -0
  32. package/dist/chunks/{chunk-BEA727LO.mjs → chunk-2RPRCWKV.mjs} +57 -26
  33. package/dist/chunks/chunk-2UPGFY6E.mjs +76 -0
  34. package/dist/chunks/{chunk-5I2VRWWU.js → chunk-2ZXDXO4I.js} +32 -38
  35. package/dist/chunks/{chunk-RLP3U52D.mjs → chunk-33UFQJIO.mjs} +22 -40
  36. package/dist/chunks/{chunk-AOVU67NI.mjs → chunk-3HHJORN7.mjs} +23 -25
  37. package/dist/chunks/{chunk-TWHDXCKR.js → chunk-3PCNRCTB.js} +8 -8
  38. package/dist/chunks/chunk-3ZWN66YH.js +53 -0
  39. package/dist/chunks/chunk-4ENXP7WH.js +224 -0
  40. package/dist/chunks/{chunk-YEGPB7A7.js → chunk-5JHJNN2K.js} +4 -4
  41. package/dist/chunks/chunk-5PQ3UCKF.js +99 -0
  42. package/dist/chunks/chunk-6BWOKTVQ.mjs +87 -0
  43. package/dist/chunks/chunk-6DBRL6NA.mjs +81 -0
  44. package/dist/chunks/{chunk-C3E7CSKG.mjs → chunk-6FMDO6TT.mjs} +7 -8
  45. package/dist/chunks/{chunk-76CY4STF.js → chunk-7G65JBTN.js} +34 -66
  46. package/dist/chunks/{chunk-GMIGQ5VP.mjs → chunk-ADO7PDLY.mjs} +15 -35
  47. package/dist/chunks/{chunk-ZINDMFOI.js → chunk-AFSEYJZT.js} +24 -32
  48. package/dist/chunks/chunk-B5O6W3Z4.mjs +73 -0
  49. package/dist/chunks/{chunk-6FHK6CBR.js → chunk-B6G5TJRO.js} +7 -8
  50. package/dist/chunks/chunk-BBLBTOP4.js +205 -0
  51. package/dist/chunks/{chunk-5XVEYVYA.js → chunk-BLGQHR3M.js} +5 -8
  52. package/dist/chunks/{chunk-LVTD2UQN.mjs → chunk-BPUQ2CO2.mjs} +2 -2
  53. package/dist/chunks/{chunk-AWBGWBFS.js → chunk-BSZ2LN6E.js} +21 -27
  54. package/dist/chunks/chunk-C2DSAJTL.js +109 -0
  55. package/dist/chunks/{chunk-KWPIEHD2.mjs → chunk-CA3SOLI3.mjs} +1 -1
  56. package/dist/chunks/{chunk-MPKRXMCJ.js → chunk-CSJDDREF.js} +7 -10
  57. package/dist/chunks/chunk-CUTMLBC3.mjs +86 -0
  58. package/dist/chunks/chunk-CV4GMFWP.js +174 -0
  59. package/dist/chunks/{chunk-SXLMI7CZ.mjs → chunk-CWMLTXOH.mjs} +162 -234
  60. package/dist/chunks/chunk-CZC76ZD5.js +10 -0
  61. package/dist/chunks/chunk-DICN6GKE.js +99 -0
  62. package/dist/chunks/{chunk-TLTEUIBY.js → chunk-DLFV7ZZV.js} +4 -4
  63. package/dist/chunks/chunk-DO6VK2QQ.mjs +108 -0
  64. package/dist/chunks/chunk-DYPPVXQF.js +143 -0
  65. package/dist/chunks/{chunk-GQP7IXH2.mjs → chunk-ECVAVQUY.mjs} +23 -31
  66. package/dist/chunks/{chunk-3CHRUKSJ.mjs → chunk-EHAUUUWB.mjs} +3 -3
  67. package/dist/chunks/chunk-EJY7IVSK.mjs +31 -0
  68. package/dist/chunks/{chunk-G4XJG7XI.js → chunk-EVOOTSY5.js} +3 -10
  69. package/dist/chunks/chunk-FUIBYZZ4.mjs +98 -0
  70. package/dist/chunks/{chunk-VH5FF6DZ.mjs → chunk-GX6GSWX3.mjs} +7 -7
  71. package/dist/chunks/chunk-H2G5FMRN.mjs +75 -0
  72. package/dist/chunks/chunk-H2V7RHYV.mjs +120 -0
  73. package/dist/chunks/{chunk-DDMZSNTG.js → chunk-HFBTS42N.js} +168 -240
  74. package/dist/chunks/{chunk-OGUTGD4J.mjs → chunk-HNLI646G.mjs} +71 -39
  75. package/dist/chunks/{chunk-C6H2UNOX.js → chunk-IE4DGLMH.js} +13 -21
  76. package/dist/chunks/{chunk-U76LT5GE.js → chunk-IOSIQLZL.js} +2 -2
  77. package/dist/chunks/{chunk-ZCMKIB5U.js → chunk-J5ZKGPBY.js} +33 -41
  78. package/dist/chunks/{chunk-JUZHWKGS.mjs → chunk-K2TBLM3F.mjs} +6 -12
  79. package/dist/chunks/chunk-KZ7S5VN2.js +7 -0
  80. package/dist/chunks/{chunk-FHPHDK3O.mjs → chunk-LI7SFBUQ.mjs} +4 -4
  81. package/dist/chunks/{chunk-7OEK2KX3.mjs → chunk-LMMON5AU.mjs} +4 -4
  82. package/dist/chunks/{chunk-6DZVNFVY.js → chunk-LOQXCHKL.js} +4 -12
  83. package/dist/chunks/{chunk-377KBJQG.js → chunk-MA2VCCIY.js} +19 -22
  84. package/dist/chunks/chunk-MCKOWMLS.mjs +8 -0
  85. package/dist/chunks/chunk-MMCA33FW.mjs +85 -0
  86. package/dist/chunks/{chunk-TR5JBBEA.mjs → chunk-MRRKW5QN.mjs} +31 -39
  87. package/dist/chunks/{chunk-76K6KXCT.js → chunk-NFIPQZ4O.js} +1 -1
  88. package/dist/chunks/chunk-NZHK76R3.js +109 -0
  89. package/dist/chunks/{chunk-I7YJB2F5.js → chunk-OMN5YQCE.js} +3 -3
  90. package/dist/chunks/{chunk-B7UU3FSS.mjs → chunk-P2T72N62.mjs} +4 -7
  91. package/dist/chunks/chunk-P3DZKXG4.js +116 -0
  92. package/dist/chunks/chunk-P73MEU7N.mjs +150 -0
  93. package/dist/chunks/chunk-PDJTSQOC.js +59 -0
  94. package/dist/chunks/{chunk-RXVYL4AU.js → chunk-PEIEVKD5.js} +7 -13
  95. package/dist/chunks/chunk-PI464222.mjs +5 -0
  96. package/dist/chunks/{chunk-IJG7J2VU.mjs → chunk-QZ4QR3XV.mjs} +30 -36
  97. package/dist/chunks/{chunk-6NTASYZO.js → chunk-RS3SBY3I.js} +61 -30
  98. package/dist/chunks/{chunk-AKIBUO5A.mjs → chunk-RX5UKRYK.mjs} +19 -26
  99. package/dist/chunks/chunk-S2GMEC43.js +109 -0
  100. package/dist/chunks/{chunk-WJ2OVQD3.mjs → chunk-SGNRVYYQ.mjs} +19 -25
  101. package/dist/chunks/{chunk-IB5UCYQY.mjs → chunk-SJMCPSVH.mjs} +15 -5
  102. package/dist/chunks/chunk-UKRU46PH.mjs +182 -0
  103. package/dist/chunks/{chunk-WNFJ4NJN.mjs → chunk-ULGYTBCT.mjs} +3 -11
  104. package/dist/chunks/{chunk-TXYYBJBQ.js → chunk-VGO4Z2WH.js} +73 -41
  105. package/dist/chunks/{chunk-LBKBCI2K.mjs → chunk-VIGRCJAE.mjs} +3 -10
  106. package/dist/chunks/chunk-VVXQZ4XH.mjs +93 -0
  107. package/dist/chunks/{chunk-Z7OKV6NW.mjs → chunk-W4GG5A7K.mjs} +12 -20
  108. package/dist/chunks/chunk-WGGBE4ZD.mjs +201 -0
  109. package/dist/chunks/{chunk-WSWD5ZUJ.js → chunk-WKCXACMZ.js} +20 -27
  110. package/dist/chunks/{chunk-GSLIY6WW.js → chunk-X2SHTVZQ.js} +17 -37
  111. package/dist/chunks/chunk-X3CTJ7TD.js +108 -0
  112. package/dist/chunks/{chunk-U6KOUYWX.mjs → chunk-XG6QG65W.mjs} +7 -10
  113. package/dist/chunks/chunk-XGIJZ3NZ.js +160 -0
  114. package/dist/chunks/chunk-YB5ZKHVB.js +64 -0
  115. package/dist/chunks/{chunk-Q7H6LCNN.js → chunk-YCG4FZC3.js} +23 -25
  116. package/dist/chunks/{chunk-JZ3PWHKS.mjs → chunk-YLO4UKSC.mjs} +18 -21
  117. package/dist/chunks/chunk-YO5MSDPX.mjs +36 -0
  118. package/dist/chunks/{chunk-Q2TMXHPK.js → chunk-YZV6FWE7.js} +25 -43
  119. package/dist/chunks/chunk-ZI4LN2B2.js +96 -0
  120. package/dist/chunks/chunk-ZU4AWAFT.mjs +137 -0
  121. package/dist/chunks/chunk-ZWSIIGA3.mjs +58 -0
  122. package/dist/countdown.js +4 -4
  123. package/dist/countdown.mjs +2 -2
  124. package/dist/counter.js +2 -2
  125. package/dist/counter.mjs +1 -1
  126. package/dist/data-list.js +5 -5
  127. package/dist/data-list.mjs +4 -4
  128. package/dist/date-picker.d.mts +17 -0
  129. package/dist/date-picker.d.ts +17 -0
  130. package/dist/date-picker.js +12 -0
  131. package/dist/date-picker.mjs +3 -0
  132. package/dist/divider.js +4 -4
  133. package/dist/divider.mjs +2 -2
  134. package/dist/drawer.d.mts +1 -1
  135. package/dist/drawer.d.ts +1 -1
  136. package/dist/drawer.js +11 -11
  137. package/dist/drawer.mjs +2 -2
  138. package/dist/dropdown-menu.d.mts +30 -0
  139. package/dist/dropdown-menu.d.ts +30 -0
  140. package/dist/dropdown-menu.js +32 -0
  141. package/dist/dropdown-menu.mjs +3 -0
  142. package/dist/ellipsis.js +3 -3
  143. package/dist/ellipsis.mjs +2 -2
  144. package/dist/empty-state.d.mts +16 -0
  145. package/dist/empty-state.d.ts +16 -0
  146. package/dist/empty-state.js +16 -0
  147. package/dist/empty-state.mjs +3 -0
  148. package/dist/error-boundary.d.mts +1 -1
  149. package/dist/error-boundary.d.ts +1 -1
  150. package/dist/error-boundary.js +2 -2
  151. package/dist/error-boundary.mjs +1 -1
  152. package/dist/index.d.mts +15 -0
  153. package/dist/index.d.ts +15 -0
  154. package/dist/index.js +322 -200
  155. package/dist/index.mjs +49 -35
  156. package/dist/infinite-scroll.js +3 -3
  157. package/dist/infinite-scroll.mjs +2 -2
  158. package/dist/marquee.js +3 -3
  159. package/dist/marquee.mjs +2 -2
  160. package/dist/modal/index.js +13 -13
  161. package/dist/modal/index.mjs +4 -4
  162. package/dist/number-input.d.mts +1 -1
  163. package/dist/number-input.d.ts +1 -1
  164. package/dist/number-input.js +5 -5
  165. package/dist/number-input.mjs +2 -2
  166. package/dist/nx-image.d.mts +13 -0
  167. package/dist/nx-image.d.ts +13 -0
  168. package/dist/nx-image.js +12 -0
  169. package/dist/nx-image.mjs +3 -0
  170. package/dist/pagination.d.mts +1 -0
  171. package/dist/pagination.d.ts +1 -0
  172. package/dist/pagination.js +5 -5
  173. package/dist/pagination.mjs +2 -2
  174. package/dist/popover.d.mts +1 -1
  175. package/dist/popover.d.ts +1 -1
  176. package/dist/popover.js +8 -8
  177. package/dist/popover.mjs +2 -2
  178. package/dist/price-input.d.mts +36 -0
  179. package/dist/price-input.d.ts +36 -0
  180. package/dist/price-input.js +16 -0
  181. package/dist/price-input.mjs +3 -0
  182. package/dist/progress.d.mts +18 -0
  183. package/dist/progress.d.ts +18 -0
  184. package/dist/progress.js +16 -0
  185. package/dist/progress.mjs +3 -0
  186. package/dist/radio-group.js +6 -6
  187. package/dist/radio-group.mjs +2 -2
  188. package/dist/schemas/_all.json +2356 -404
  189. package/dist/schemas/accordion.json +14 -11
  190. package/dist/schemas/alert.json +49 -0
  191. package/dist/schemas/avatar.json +13 -7
  192. package/dist/schemas/badge.json +76 -0
  193. package/dist/schemas/breadcrumb.json +47 -0
  194. package/dist/schemas/button.json +27 -9
  195. package/dist/schemas/carousel.json +10 -4
  196. package/dist/schemas/carouselButton.json +20 -0
  197. package/dist/schemas/carouselDots.json +17 -0
  198. package/dist/schemas/carouselSlide.json +20 -0
  199. package/dist/schemas/checkBox.json +33 -8
  200. package/dist/schemas/chip.json +15 -6
  201. package/dist/schemas/clientOnly.json +19 -0
  202. package/dist/schemas/countdown.json +10 -7
  203. package/dist/schemas/counter.json +15 -9
  204. package/dist/schemas/dataList.json +10 -10
  205. package/dist/schemas/datePicker.json +56 -0
  206. package/dist/schemas/divider.json +8 -5
  207. package/dist/schemas/drawer.json +24 -2
  208. package/dist/schemas/drawerClose.json +24 -0
  209. package/dist/schemas/drawerContent.json +9 -6
  210. package/dist/schemas/drawerDescription.json +20 -0
  211. package/dist/schemas/drawerTitle.json +20 -0
  212. package/dist/schemas/drawerTrigger.json +24 -0
  213. package/dist/schemas/dropdownMenu.json +83 -0
  214. package/dist/schemas/ellipsis.json +17 -7
  215. package/dist/schemas/emptyState.json +44 -0
  216. package/dist/schemas/errorBoundary.json +22 -0
  217. package/dist/schemas/infiniteScroll.json +18 -9
  218. package/dist/schemas/marquee.json +12 -6
  219. package/dist/schemas/modalCall.json +81 -3
  220. package/dist/schemas/modalTemplate.json +67 -14
  221. package/dist/schemas/numberInput.json +42 -12
  222. package/dist/schemas/nxImage.json +56 -0
  223. package/dist/schemas/pagination.json +13 -6
  224. package/dist/schemas/popover.json +18 -9
  225. package/dist/schemas/priceInput.json +104 -0
  226. package/dist/schemas/progress.json +63 -0
  227. package/dist/schemas/radioGroup.json +19 -9
  228. package/dist/schemas/radioItem.json +12 -5
  229. package/dist/schemas/select.json +15 -9
  230. package/dist/schemas/selectItem.json +7 -4
  231. package/dist/schemas/skeleton.json +12 -6
  232. package/dist/schemas/slider.json +78 -0
  233. package/dist/schemas/spinner.json +11 -4
  234. package/dist/schemas/stepper.json +73 -0
  235. package/dist/schemas/switch.json +23 -5
  236. package/dist/schemas/tab.json +17 -14
  237. package/dist/schemas/table.json +75 -0
  238. package/dist/schemas/tableRow.json +32 -0
  239. package/dist/schemas/tagInput.json +70 -0
  240. package/dist/schemas/tdColumn.json +107 -0
  241. package/dist/schemas/textArea.json +72 -7
  242. package/dist/schemas/textInput.json +72 -10
  243. package/dist/schemas/themeProvider.json +65 -0
  244. package/dist/schemas/toastOptions.json +81 -0
  245. package/dist/schemas/toaster.json +76 -0
  246. package/dist/schemas/toggleGroup.json +88 -0
  247. package/dist/schemas/tooltip.json +12 -9
  248. package/dist/schemas/virtualGrid.json +22 -11
  249. package/dist/schemas/virtualList.json +14 -8
  250. package/dist/schemas.d.mts +1360 -81
  251. package/dist/schemas.d.ts +1360 -81
  252. package/dist/schemas.js +725 -273
  253. package/dist/schemas.mjs +698 -273
  254. package/dist/select.js +6 -6
  255. package/dist/select.mjs +2 -2
  256. package/dist/skeleton.js +3 -3
  257. package/dist/skeleton.mjs +2 -2
  258. package/dist/slider.d.mts +20 -0
  259. package/dist/slider.d.ts +20 -0
  260. package/dist/slider.js +16 -0
  261. package/dist/slider.mjs +3 -0
  262. package/dist/spinner.js +3 -3
  263. package/dist/spinner.mjs +2 -2
  264. package/dist/stepper.d.mts +20 -0
  265. package/dist/stepper.d.ts +20 -0
  266. package/dist/stepper.js +16 -0
  267. package/dist/stepper.mjs +3 -0
  268. package/dist/styles/layer.d.mts +3 -0
  269. package/dist/styles/layer.d.ts +3 -0
  270. package/dist/styles/layer.js +18 -0
  271. package/dist/styles/layer.mjs +16 -0
  272. package/dist/styles.css +3872 -2
  273. package/dist/styles.js +2 -5
  274. package/dist/styles.layered.css +3875 -0
  275. package/dist/styles.mjs +1 -4
  276. package/dist/switch.js +4 -4
  277. package/dist/switch.mjs +2 -2
  278. package/dist/tab.js +5 -5
  279. package/dist/tab.mjs +2 -2
  280. package/dist/table.d.mts +2 -2
  281. package/dist/table.d.ts +2 -2
  282. package/dist/table.js +9 -9
  283. package/dist/table.mjs +3 -3
  284. package/dist/tag-input.d.mts +21 -0
  285. package/dist/tag-input.d.ts +21 -0
  286. package/dist/tag-input.js +16 -0
  287. package/dist/tag-input.mjs +3 -0
  288. package/dist/text-area.d.mts +5 -1
  289. package/dist/text-area.d.ts +5 -1
  290. package/dist/text-area.js +4 -4
  291. package/dist/text-area.mjs +2 -2
  292. package/dist/text-input.d.mts +5 -1
  293. package/dist/text-input.d.ts +5 -1
  294. package/dist/text-input.js +4 -4
  295. package/dist/text-input.mjs +2 -2
  296. package/dist/toast.js +5 -5
  297. package/dist/toast.mjs +2 -2
  298. package/dist/toggle-group.d.mts +36 -0
  299. package/dist/toggle-group.d.ts +36 -0
  300. package/dist/toggle-group.js +16 -0
  301. package/dist/toggle-group.mjs +3 -0
  302. package/dist/tooltip.js +5 -5
  303. package/dist/tooltip.mjs +2 -2
  304. package/dist/utils/cn.d.mts +0 -10
  305. package/dist/utils/cn.d.ts +0 -10
  306. package/dist/utils/cn.js +2 -2
  307. package/dist/utils/cn.mjs +1 -1
  308. package/dist/virtual-scroll.js +4 -4
  309. package/dist/virtual-scroll.mjs +2 -2
  310. package/package.json +90 -17
  311. package/scripts/setup-cursor-rules.cjs +6 -6
  312. package/dist/chunks/chunk-7MT3QYE6.js +0 -92
  313. package/dist/chunks/chunk-FA2OPP3U.mjs +0 -140
  314. package/dist/chunks/chunk-FKZI2HTI.js +0 -104
  315. package/dist/chunks/chunk-NCQDOPBR.mjs +0 -86
  316. package/dist/chunks/chunk-NTN55ZIX.mjs +0 -113
  317. package/dist/chunks/chunk-Q7GQVAYY.js +0 -88
  318. package/dist/chunks/chunk-QJNQCLMV.js +0 -25
  319. package/dist/chunks/chunk-UDQXLI5Y.mjs +0 -81
  320. package/dist/chunks/chunk-UR6JOKVB.mjs +0 -65
  321. package/dist/chunks/chunk-WVIEIRK2.js +0 -136
  322. package/dist/chunks/chunk-XALPBGSC.mjs +0 -23
  323. package/dist/schemas/typography.json +0 -70
  324. package/dist/typography.d.mts +0 -19
  325. package/dist/typography.d.ts +0 -19
  326. package/dist/typography.js +0 -102
  327. package/dist/typography.mjs +0 -79
@@ -1,24 +1,21 @@
1
- import { cn } from './chunk-XALPBGSC.mjs';
1
+ import { cn } from './chunk-MCKOWMLS.mjs';
2
2
  import * as AccordionPrimitive from '@radix-ui/react-accordion';
3
3
  import * as React from 'react';
4
4
  import { jsx, jsxs } from 'react/jsx-runtime';
5
5
 
6
6
  var ChevronDown = ({ className }) => /* @__PURE__ */ jsx("svg", { className, viewBox: "0 0 16 16", fill: "currentColor", children: /* @__PURE__ */ jsx("path", { d: "M4 6l4 4 4-4", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round" }) });
7
7
  var AccordionRoot = AccordionPrimitive.Root;
8
- var AccordionItem = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(AccordionPrimitive.Item, { ref, className: cn("nx:border-b nx:border-border-default", className), ...props }));
8
+ var AccordionItem = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(AccordionPrimitive.Item, { ref, className: cn("nexus-accordion-item", className), ...props }));
9
9
  AccordionItem.displayName = "AccordionItem";
10
- var AccordionTrigger = React.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsx(AccordionPrimitive.Header, { className: "nx:flex", children: /* @__PURE__ */ jsxs(
10
+ var AccordionTrigger = React.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsx(AccordionPrimitive.Header, { className: "nexus-accordion-header", children: /* @__PURE__ */ jsxs(
11
11
  AccordionPrimitive.Trigger,
12
12
  {
13
13
  ref,
14
- className: cn(
15
- "nx:flex nx:flex-1 nx:items-center nx:justify-between nx:py-4 nx:transition-all nx:[&[data-state=open]>svg]:rotate-180",
16
- className
17
- ),
14
+ className: cn("nexus-accordion-trigger", className),
18
15
  ...props,
19
16
  children: [
20
17
  children,
21
- /* @__PURE__ */ jsx(ChevronDown, { className: "nx:h-3 nx:w-3 nx:shrink-0 nx:transition-transform nx:duration-200" })
18
+ /* @__PURE__ */ jsx(ChevronDown, { className: "nexus-accordion-chevron" })
22
19
  ]
23
20
  }
24
21
  ) }));
@@ -27,9 +24,9 @@ var AccordionContent = React.forwardRef(({ className, children, ...props }, ref)
27
24
  AccordionPrimitive.Content,
28
25
  {
29
26
  ref,
30
- className: "nx:overflow-hidden nx:transition-all nx:data-[state=closed]:animate-accordion-up nx:data-[state=open]:animate-accordion-down",
27
+ className: "nexus-accordion-content",
31
28
  ...props,
32
- children: /* @__PURE__ */ jsx("div", { className: cn("nx:pt-0 nx:pb-4", className), children })
29
+ children: /* @__PURE__ */ jsx("div", { className: cn("nexus-accordion-content__inner", className), children })
33
30
  }
34
31
  ));
35
32
  AccordionContent.displayName = AccordionPrimitive.Content.displayName;
@@ -0,0 +1,160 @@
1
+ 'use strict';
2
+
3
+ var chunkCZC76ZD5_js = require('./chunk-CZC76ZD5.js');
4
+ var React = require('react');
5
+ var classVarianceAuthority = require('class-variance-authority');
6
+ var jsxRuntime = require('react/jsx-runtime');
7
+
8
+ function _interopNamespace(e) {
9
+ if (e && e.__esModule) return e;
10
+ var n = Object.create(null);
11
+ if (e) {
12
+ Object.keys(e).forEach(function (k) {
13
+ if (k !== 'default') {
14
+ var d = Object.getOwnPropertyDescriptor(e, k);
15
+ Object.defineProperty(n, k, d.get ? d : {
16
+ enumerable: true,
17
+ get: function () { return e[k]; }
18
+ });
19
+ }
20
+ });
21
+ }
22
+ n.default = e;
23
+ return Object.freeze(n);
24
+ }
25
+
26
+ var React__namespace = /*#__PURE__*/_interopNamespace(React);
27
+
28
+ var textAreaVariants = classVarianceAuthority.cva("nexus-textarea", {
29
+ variants: {
30
+ size: {
31
+ lg: "nexus-textarea--lg",
32
+ md: "nexus-textarea--md"
33
+ },
34
+ state: {
35
+ default: "nexus-textarea--default",
36
+ error: "nexus-textarea--error"
37
+ }
38
+ },
39
+ defaultVariants: { size: "lg", state: "default" }
40
+ });
41
+ var TextArea = React__namespace.forwardRef(
42
+ ({
43
+ className,
44
+ size,
45
+ error,
46
+ label,
47
+ description,
48
+ showCount,
49
+ resize = "default",
50
+ maxLength,
51
+ onValueChange,
52
+ onChange,
53
+ value: controlledValue,
54
+ defaultValue,
55
+ disabled,
56
+ id,
57
+ ...props
58
+ }, ref) => {
59
+ const fallbackId = React__namespace.useRef(
60
+ `nexus-ta-${Math.random().toString(36).slice(2, 9)}`
61
+ );
62
+ const inputId = id || fallbackId.current;
63
+ const textareaRef = React__namespace.useRef(null);
64
+ const setRef = React__namespace.useCallback(
65
+ (node) => {
66
+ textareaRef.current = node;
67
+ if (typeof ref === "function") ref(node);
68
+ else if (ref)
69
+ ref.current = node;
70
+ },
71
+ [ref]
72
+ );
73
+ const isControlled = controlledValue !== void 0;
74
+ const [internalValue, setInternalValue] = React__namespace.useState(
75
+ () => defaultValue != null ? String(defaultValue) : ""
76
+ );
77
+ const currentValue = isControlled ? String(controlledValue) : internalValue;
78
+ const charCount = currentValue.length;
79
+ const isOverLimit = !!(maxLength && charCount > maxLength);
80
+ const state = error || isOverLimit ? "error" : "default";
81
+ const hasField = !!(label || description || showCount);
82
+ const autoResize = React__namespace.useCallback(() => {
83
+ const el = textareaRef.current;
84
+ if (!el || resize !== "auto") return;
85
+ el.style.height = "auto";
86
+ el.style.height = `${el.scrollHeight}px`;
87
+ }, [resize]);
88
+ React__namespace.useEffect(() => {
89
+ autoResize();
90
+ }, [currentValue, autoResize]);
91
+ const handleChange = React__namespace.useCallback(
92
+ (e) => {
93
+ if (!isControlled) setInternalValue(e.target.value);
94
+ onValueChange?.(e.target.value);
95
+ onChange?.(e);
96
+ },
97
+ [isControlled, onValueChange, onChange]
98
+ );
99
+ const resizeClass = resize === "default" ? "nexus-textarea--resize-default" : resize === "auto" ? "nexus-textarea--resize-auto" : "";
100
+ const textarea = /* @__PURE__ */ jsxRuntime.jsx(
101
+ "textarea",
102
+ {
103
+ ref: setRef,
104
+ id: label ? inputId : id,
105
+ className: chunkCZC76ZD5_js.cn(
106
+ textAreaVariants({ size, state }),
107
+ disabled && "nexus-textarea--disabled",
108
+ resizeClass,
109
+ !hasField && className
110
+ ),
111
+ maxLength: showCount ? void 0 : maxLength,
112
+ disabled,
113
+ "aria-invalid": error || isOverLimit || void 0,
114
+ "aria-describedby": description ? `${inputId}-desc` : void 0,
115
+ value: isControlled ? controlledValue : void 0,
116
+ defaultValue: !isControlled ? defaultValue : void 0,
117
+ onChange: handleChange,
118
+ ...props
119
+ }
120
+ );
121
+ if (!hasField) return textarea;
122
+ return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: chunkCZC76ZD5_js.cn("nexus-textarea-field", className), children: [
123
+ label && /* @__PURE__ */ jsxRuntime.jsx("label", { className: "nexus-textarea-field__label", htmlFor: inputId, children: label }),
124
+ textarea,
125
+ (description || showCount && maxLength) && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "nexus-textarea-field__footer", children: [
126
+ description && /* @__PURE__ */ jsxRuntime.jsx(
127
+ "p",
128
+ {
129
+ id: `${inputId}-desc`,
130
+ className: chunkCZC76ZD5_js.cn(
131
+ "nexus-textarea-field__description",
132
+ (error || isOverLimit) && "nexus-textarea-field__description--error"
133
+ ),
134
+ children: description
135
+ }
136
+ ),
137
+ showCount && maxLength && /* @__PURE__ */ jsxRuntime.jsxs(
138
+ "span",
139
+ {
140
+ className: chunkCZC76ZD5_js.cn(
141
+ "nexus-textarea-field__count",
142
+ isOverLimit && "nexus-textarea-field__count--error"
143
+ ),
144
+ "aria-live": "polite",
145
+ "aria-atomic": "true",
146
+ children: [
147
+ charCount,
148
+ "/",
149
+ maxLength
150
+ ]
151
+ }
152
+ )
153
+ ] })
154
+ ] });
155
+ }
156
+ );
157
+ TextArea.displayName = "TextArea";
158
+
159
+ exports.TextArea = TextArea;
160
+ exports.textAreaVariants = textAreaVariants;
@@ -0,0 +1,64 @@
1
+ 'use strict';
2
+
3
+ var chunkCZC76ZD5_js = require('./chunk-CZC76ZD5.js');
4
+ var sonner = require('sonner');
5
+ var jsxRuntime = require('react/jsx-runtime');
6
+
7
+ function Toaster({
8
+ position = "top-center",
9
+ unstyled = false,
10
+ toastOptions,
11
+ ...props
12
+ }) {
13
+ return /* @__PURE__ */ jsxRuntime.jsx(
14
+ sonner.Toaster,
15
+ {
16
+ position,
17
+ toastOptions: {
18
+ unstyled,
19
+ ...toastOptions,
20
+ classNames: {
21
+ toast: chunkCZC76ZD5_js.cn(!unstyled && "nexus-toast", toastOptions?.classNames?.toast),
22
+ title: chunkCZC76ZD5_js.cn(!unstyled && "nexus-toast__title", toastOptions?.classNames?.title),
23
+ description: chunkCZC76ZD5_js.cn(!unstyled && "nexus-toast__desc", toastOptions?.classNames?.description),
24
+ success: chunkCZC76ZD5_js.cn(!unstyled && "nexus-toast--success", toastOptions?.classNames?.success),
25
+ error: chunkCZC76ZD5_js.cn(!unstyled && "nexus-toast--error", toastOptions?.classNames?.error),
26
+ warning: chunkCZC76ZD5_js.cn(!unstyled && "nexus-toast--warning", toastOptions?.classNames?.warning),
27
+ info: chunkCZC76ZD5_js.cn(!unstyled && "nexus-toast--info", toastOptions?.classNames?.info),
28
+ actionButton: chunkCZC76ZD5_js.cn(!unstyled && "nexus-toast__action-btn", toastOptions?.classNames?.actionButton),
29
+ cancelButton: chunkCZC76ZD5_js.cn(!unstyled && "nexus-toast__cancel-btn", toastOptions?.classNames?.cancelButton),
30
+ closeButton: chunkCZC76ZD5_js.cn(!unstyled && "nexus-toast__close-btn", toastOptions?.classNames?.closeButton),
31
+ ...toastOptions?.classNames
32
+ }
33
+ },
34
+ ...props
35
+ }
36
+ );
37
+ }
38
+ function useToast() {
39
+ const showToast = (message, options) => sonner.toast(message, options);
40
+ const successToast = (message, options) => sonner.toast.success(message, options);
41
+ const errorToast = (message, options) => sonner.toast.error(message, options);
42
+ const warningToast = (message, options) => sonner.toast.warning(message, options);
43
+ const infoToast = (message, options) => sonner.toast.info(message, options);
44
+ const promiseToast = (promise, msgs, options) => sonner.toast.promise(promise, { ...msgs, ...options });
45
+ const customToast = (jsx2, options) => sonner.toast.custom(jsx2, options);
46
+ const dismissToast = (id) => sonner.toast.dismiss(id);
47
+ return {
48
+ toast: showToast,
49
+ successToast,
50
+ errorToast,
51
+ warningToast,
52
+ infoToast,
53
+ promiseToast,
54
+ customToast,
55
+ dismissToast
56
+ };
57
+ }
58
+
59
+ Object.defineProperty(exports, "toast", {
60
+ enumerable: true,
61
+ get: function () { return sonner.toast; }
62
+ });
63
+ exports.Toaster = Toaster;
64
+ exports.useToast = useToast;
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkQJNQCLMV_js = require('./chunk-QJNQCLMV.js');
3
+ var chunkCZC76ZD5_js = require('./chunk-CZC76ZD5.js');
4
4
  var React = require('react');
5
5
  var useEmblaCarousel = require('embla-carousel-react');
6
6
  var jsxRuntime = require('react/jsx-runtime');
@@ -64,11 +64,23 @@ var Carousel = React__namespace.forwardRef(
64
64
  }, [api, onSelect, onApiChange]);
65
65
  const scrollPrev = React__namespace.useCallback(() => api?.scrollPrev(), [api]);
66
66
  const scrollNext = React__namespace.useCallback(() => api?.scrollNext(), [api]);
67
+ const slides = [];
68
+ const extras = [];
69
+ React__namespace.Children.forEach(children, (child) => {
70
+ if (React__namespace.isValidElement(child) && typeof child.type !== "string" && child.type.displayName === "CarouselSlide") {
71
+ slides.push(child);
72
+ } else {
73
+ extras.push(child);
74
+ }
75
+ });
67
76
  return /* @__PURE__ */ jsxRuntime.jsx(
68
77
  CarouselContext.Provider,
69
78
  {
70
79
  value: { api, canScrollPrev, canScrollNext, scrollPrev, scrollNext, selectedIndex, scrollSnapCount },
71
- children: /* @__PURE__ */ jsxRuntime.jsx("div", { ref, className: chunkQJNQCLMV_js.cn("nx:relative", className), role: "region", "aria-roledescription": "carousel", "aria-label": props["aria-label"] ?? "Carousel", ...props, children: /* @__PURE__ */ jsxRuntime.jsx("div", { ref: emblaRef, className: "nx:overflow-hidden", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "nx:flex", children }) }) })
80
+ children: /* @__PURE__ */ jsxRuntime.jsxs("div", { ref, className: chunkCZC76ZD5_js.cn("nexus-carousel", className), role: "region", "aria-roledescription": "carousel", "aria-label": props["aria-label"] ?? "Carousel", ...props, children: [
81
+ /* @__PURE__ */ jsxRuntime.jsx("div", { ref: emblaRef, className: "nexus-carousel__viewport", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "nexus-carousel__container", children: slides }) }),
82
+ extras
83
+ ] })
72
84
  }
73
85
  );
74
86
  }
@@ -81,14 +93,14 @@ var CarouselSlide = React__namespace.forwardRef(
81
93
  ref,
82
94
  role: "group",
83
95
  "aria-roledescription": "slide",
84
- className: chunkQJNQCLMV_js.cn("nx:min-w-0 nx:shrink-0 nx:grow-0 nx:basis-full", className),
96
+ className: chunkCZC76ZD5_js.cn("nexus-carousel-slide", className),
85
97
  ...props
86
98
  }
87
99
  )
88
100
  );
89
101
  CarouselSlide.displayName = "CarouselSlide";
90
- var ChevronLeftIcon = () => /* @__PURE__ */ jsxRuntime.jsx("svg", { className: "nx:size-4", viewBox: "0 0 16 16", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M10 4L6 8l4 4" }) });
91
- var ChevronRightIcon = () => /* @__PURE__ */ jsxRuntime.jsx("svg", { className: "nx:size-4", viewBox: "0 0 16 16", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M6 4l4 4-4 4" }) });
102
+ var ChevronLeftIcon = () => /* @__PURE__ */ jsxRuntime.jsx("svg", { className: "nexus-carousel-btn__icon", viewBox: "0 0 16 16", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M10 4L6 8l4 4" }) });
103
+ var ChevronRightIcon = () => /* @__PURE__ */ jsxRuntime.jsx("svg", { className: "nexus-carousel-btn__icon", viewBox: "0 0 16 16", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M6 4l4 4-4 4" }) });
92
104
  var CarouselPrev = React__namespace.forwardRef(
93
105
  ({ className, children, ...props }, ref) => {
94
106
  const { canScrollPrev, scrollPrev } = useCarousel();
@@ -97,14 +109,7 @@ var CarouselPrev = React__namespace.forwardRef(
97
109
  {
98
110
  ref,
99
111
  type: "button",
100
- className: chunkQJNQCLMV_js.cn(
101
- "nx:absolute nx:left-2 nx:top-1/2 nx:-translate-y-1/2 nx:z-10",
102
- "nx:size-8 nx:inline-flex nx:items-center nx:justify-center nx:rounded-full",
103
- "nx:bg-surface-default nx:border nx:border-border-default nx:shadow-sm",
104
- "nx:text-text-primary nx:hover:bg-surface-hover nx:transition-colors",
105
- "nx:disabled:opacity-40 nx:disabled:pointer-events-none",
106
- className
107
- ),
112
+ className: chunkCZC76ZD5_js.cn("nexus-carousel-btn nexus-carousel-btn--prev", className),
108
113
  disabled: !canScrollPrev,
109
114
  onClick: scrollPrev,
110
115
  "aria-label": "Previous slide",
@@ -123,14 +128,7 @@ var CarouselNext = React__namespace.forwardRef(
123
128
  {
124
129
  ref,
125
130
  type: "button",
126
- className: chunkQJNQCLMV_js.cn(
127
- "nx:absolute nx:right-2 nx:top-1/2 nx:-translate-y-1/2 nx:z-10",
128
- "nx:size-8 nx:inline-flex nx:items-center nx:justify-center nx:rounded-full",
129
- "nx:bg-surface-default nx:border nx:border-border-default nx:shadow-sm",
130
- "nx:text-text-primary nx:hover:bg-surface-hover nx:transition-colors",
131
- "nx:disabled:opacity-40 nx:disabled:pointer-events-none",
132
- className
133
- ),
131
+ className: chunkCZC76ZD5_js.cn("nexus-carousel-btn nexus-carousel-btn--next", className),
134
132
  disabled: !canScrollNext,
135
133
  onClick: scrollNext,
136
134
  "aria-label": "Next slide",
@@ -143,15 +141,15 @@ var CarouselNext = React__namespace.forwardRef(
143
141
  CarouselNext.displayName = "CarouselNext";
144
142
  function CarouselDots({ className }) {
145
143
  const { selectedIndex, scrollSnapCount, api } = useCarousel();
146
- return /* @__PURE__ */ jsxRuntime.jsx("div", { role: "tablist", "aria-label": "Slide navigation", className: chunkQJNQCLMV_js.cn("nx:flex nx:justify-center nx:gap-1.5 nx:mt-3", className), children: Array.from({ length: scrollSnapCount }, (_, i) => /* @__PURE__ */ jsxRuntime.jsx(
144
+ return /* @__PURE__ */ jsxRuntime.jsx("div", { role: "tablist", "aria-label": "Slide navigation", className: chunkCZC76ZD5_js.cn("nexus-carousel-dots", className), children: Array.from({ length: scrollSnapCount }, (_, i) => /* @__PURE__ */ jsxRuntime.jsx(
147
145
  "button",
148
146
  {
149
147
  type: "button",
150
148
  role: "tab",
151
149
  "aria-selected": i === selectedIndex,
152
- className: chunkQJNQCLMV_js.cn(
153
- "nx:size-2 nx:rounded-full nx:transition-colors",
154
- i === selectedIndex ? "nx:bg-accent-primary" : "nx:bg-border-default nx:hover:bg-text-tertiary"
150
+ className: chunkCZC76ZD5_js.cn(
151
+ "nexus-carousel-dot",
152
+ i === selectedIndex ? "nexus-carousel-dot--active" : "nexus-carousel-dot--inactive"
155
153
  ),
156
154
  onClick: () => api?.scrollTo(i),
157
155
  "aria-label": `Go to slide ${i + 1}`
@@ -1,27 +1,24 @@
1
- import { cn } from './chunk-XALPBGSC.mjs';
1
+ import { cn } from './chunk-MCKOWMLS.mjs';
2
2
  import * as React from 'react';
3
3
  import { cva } from 'class-variance-authority';
4
4
  import { jsx } from 'react/jsx-runtime';
5
5
 
6
- var avatarVariants = cva(
7
- "nx:relative nx:inline-flex nx:shrink-0 nx:items-center nx:justify-center nx:overflow-hidden nx:bg-surface-hover nx:text-text-tertiary",
8
- {
9
- variants: {
10
- size: {
11
- xs: "nx:size-6 nx:text-[10px]",
12
- sm: "nx:size-8 nx:text-xs",
13
- md: "nx:size-10 nx:text-sm",
14
- lg: "nx:size-12 nx:text-base",
15
- xl: "nx:size-16 nx:text-lg"
16
- },
17
- shape: {
18
- circle: "nx:rounded-full",
19
- square: "nx:rounded-md"
20
- }
6
+ var avatarVariants = cva("nexus-avatar", {
7
+ variants: {
8
+ size: {
9
+ xs: "nexus-avatar--xs",
10
+ sm: "nexus-avatar--sm",
11
+ md: "nexus-avatar--md",
12
+ lg: "nexus-avatar--lg",
13
+ xl: "nexus-avatar--xl"
21
14
  },
22
- defaultVariants: { size: "md", shape: "circle" }
23
- }
24
- );
15
+ shape: {
16
+ circle: "nexus-avatar--circle",
17
+ square: "nexus-avatar--square"
18
+ }
19
+ },
20
+ defaultVariants: { size: "md", shape: "circle" }
21
+ });
25
22
  var DefaultIcon = ({ className }) => /* @__PURE__ */ jsx("svg", { className, viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ jsx("path", { d: "M12 12c2.7 0 4.8-2.1 4.8-4.8S14.7 2.4 12 2.4 7.2 4.5 7.2 7.2 9.3 12 12 12zm0 2.4c-3.2 0-9.6 1.6-9.6 4.8v2.4h19.2v-2.4c0-3.2-6.4-4.8-9.6-4.8z" }) });
26
23
  var Avatar = React.forwardRef(
27
24
  ({ className, size, shape, src, alt, fallback, children, onImageError, ...props }, ref) => {
@@ -34,13 +31,13 @@ var Avatar = React.forwardRef(
34
31
  onImageError?.();
35
32
  }, [onImageError]);
36
33
  const showFallback = !src || imgError;
37
- const iconSize = size === "xs" ? "nx:size-4" : size === "sm" ? "nx:size-5" : size === "lg" ? "nx:size-8" : size === "xl" ? "nx:size-10" : "nx:size-6";
34
+ const iconSize = size === "xs" ? "nexus-avatar__icon--xs" : size === "sm" ? "nexus-avatar__icon--sm" : size === "lg" ? "nexus-avatar__icon--lg" : size === "xl" ? "nexus-avatar__icon--xl" : "nexus-avatar__icon--md";
38
35
  return /* @__PURE__ */ jsx("div", { ref, role: "img", "aria-label": alt ?? void 0, className: cn(avatarVariants({ size, shape }), className), ...props, children: children ? children : showFallback ? fallback ?? /* @__PURE__ */ jsx(DefaultIcon, { className: iconSize }) : /* @__PURE__ */ jsx(
39
36
  "img",
40
37
  {
41
38
  src,
42
39
  alt: alt ?? "",
43
- className: "nx:size-full nx:object-cover",
40
+ className: "nexus-avatar__img",
44
41
  onError: handleError
45
42
  }
46
43
  ) });
@@ -0,0 +1,36 @@
1
+ import { cn } from './chunk-MCKOWMLS.mjs';
2
+ import * as React from 'react';
3
+ import { cva } from 'class-variance-authority';
4
+ import { jsxs, jsx } from 'react/jsx-runtime';
5
+
6
+ var emptyStateVariants = cva("nexus-empty-state", {
7
+ variants: {
8
+ size: {
9
+ sm: "nexus-empty-state--sm",
10
+ md: "nexus-empty-state--md",
11
+ lg: "nexus-empty-state--lg"
12
+ }
13
+ },
14
+ defaultVariants: { size: "md" }
15
+ });
16
+ var DefaultIcon = ({ className }) => /* @__PURE__ */ jsx("svg", { className, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", children: /* @__PURE__ */ jsx("path", { d: "M20 13V6a2 2 0 00-2-2H6a2 2 0 00-2 2v7m16 0v5a2 2 0 01-2 2H6a2 2 0 01-2-2v-5m16 0h-2.586a1 1 0 00-.707.293l-2.414 2.414a1 1 0 01-.707.293h-3.172a1 1 0 01-.707-.293l-2.414-2.414A1 1 0 006.586 13H4", strokeLinecap: "round", strokeLinejoin: "round" }) });
17
+ var EmptyState = React.forwardRef(
18
+ ({ className, size, icon, title, description, action, children, ...props }, ref) => /* @__PURE__ */ jsxs(
19
+ "div",
20
+ {
21
+ ref,
22
+ className: cn(emptyStateVariants({ size }), className),
23
+ ...props,
24
+ children: [
25
+ /* @__PURE__ */ jsx("div", { className: "nexus-empty-state__icon", children: icon ?? /* @__PURE__ */ jsx(DefaultIcon, { className: "nexus-empty-state__default-icon" }) }),
26
+ title && /* @__PURE__ */ jsx("h3", { className: "nexus-empty-state__title", children: title }),
27
+ description && /* @__PURE__ */ jsx("p", { className: "nexus-empty-state__description", children: description }),
28
+ children,
29
+ action && /* @__PURE__ */ jsx("div", { className: "nexus-empty-state__action", children: action })
30
+ ]
31
+ }
32
+ )
33
+ );
34
+ EmptyState.displayName = "EmptyState";
35
+
36
+ export { EmptyState, emptyStateVariants };
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkQJNQCLMV_js = require('./chunk-QJNQCLMV.js');
3
+ var chunkCZC76ZD5_js = require('./chunk-CZC76ZD5.js');
4
4
  var React = require('react');
5
5
  var classVarianceAuthority = require('class-variance-authority');
6
6
  var jsxRuntime = require('react/jsx-runtime');
@@ -25,47 +25,20 @@ function _interopNamespace(e) {
25
25
 
26
26
  var React__namespace = /*#__PURE__*/_interopNamespace(React);
27
27
 
28
- var radioGroupVariants = classVarianceAuthority.cva("nx:flex", {
28
+ var radioGroupVariants = classVarianceAuthority.cva("nexus-radio-group", {
29
29
  variants: {
30
30
  orientation: {
31
- horizontal: "nx:flex-row nx:gap-4",
32
- vertical: "nx:flex-col nx:gap-2"
31
+ horizontal: "nexus-radio-group--horizontal",
32
+ vertical: "nexus-radio-group--vertical"
33
33
  }
34
34
  },
35
35
  defaultVariants: { orientation: "vertical" }
36
36
  });
37
- var radioItemVariants = classVarianceAuthority.cva(
38
- "nx:inline-flex nx:items-center nx:gap-2 nx:select-none",
39
- {
40
- variants: {
41
- size: {
42
- sm: "nx:text-xs",
43
- md: "nx:text-sm"
44
- }
45
- },
46
- defaultVariants: { size: "md" }
47
- }
48
- );
49
- var circleVariants = classVarianceAuthority.cva(
50
- [
51
- "nx:inline-flex nx:shrink-0 nx:items-center nx:justify-center nx:rounded-full nx:border nx:transition-colors nx:duration-150",
52
- "nx:peer-disabled:opacity-50 nx:peer-disabled:cursor-not-allowed"
53
- ],
54
- {
55
- variants: {
56
- size: {
57
- sm: "nx:size-4",
58
- md: "nx:size-5"
59
- }
60
- },
61
- defaultVariants: { size: "md" }
62
- }
63
- );
64
- var dotVariants = classVarianceAuthority.cva("nx:rounded-full nx:bg-current", {
37
+ var radioItemVariants = classVarianceAuthority.cva("nexus-radio-item", {
65
38
  variants: {
66
39
  size: {
67
- sm: "nx:size-1.5",
68
- md: "nx:size-2"
40
+ sm: "nexus-radio-item--sm",
41
+ md: "nexus-radio-item--md"
69
42
  }
70
43
  },
71
44
  defaultVariants: { size: "md" }
@@ -105,7 +78,7 @@ var RadioGroup = React__namespace.forwardRef(
105
78
  {
106
79
  ref,
107
80
  role: "radiogroup",
108
- className: chunkQJNQCLMV_js.cn(radioGroupVariants({ orientation }), className),
81
+ className: chunkCZC76ZD5_js.cn(radioGroupVariants({ orientation }), className),
109
82
  ...props,
110
83
  children
111
84
  }
@@ -134,9 +107,9 @@ var RadioItem = React__namespace.forwardRef(
134
107
  return /* @__PURE__ */ jsxRuntime.jsxs(
135
108
  "label",
136
109
  {
137
- className: chunkQJNQCLMV_js.cn(
110
+ className: chunkCZC76ZD5_js.cn(
138
111
  radioItemVariants({ size }),
139
- disabled ? "nx:cursor-not-allowed nx:opacity-50" : "nx:cursor-pointer",
112
+ disabled ? "nexus-radio-item--disabled" : "nexus-radio-item--pointer",
140
113
  className
141
114
  ),
142
115
  children: [
@@ -145,7 +118,7 @@ var RadioItem = React__namespace.forwardRef(
145
118
  {
146
119
  ref,
147
120
  type: "radio",
148
- className: "nx:peer nx:sr-only",
121
+ className: "nexus-sr-only",
149
122
  name: ctx.name,
150
123
  value,
151
124
  checked,
@@ -157,14 +130,23 @@ var RadioItem = React__namespace.forwardRef(
157
130
  /* @__PURE__ */ jsxRuntime.jsx(
158
131
  "span",
159
132
  {
160
- className: chunkQJNQCLMV_js.cn(
161
- circleVariants({ size }),
162
- checked ? "nx:border-accent-primary nx:text-accent-primary" : "nx:border-border-default nx:bg-surface-default"
133
+ className: chunkCZC76ZD5_js.cn(
134
+ size === "sm" ? "nexus-radio__circle--sm" : "nexus-radio__circle--md",
135
+ "nexus-radio__circle",
136
+ checked ? "nexus-radio__circle--checked" : "nexus-radio__circle--unchecked"
163
137
  ),
164
- children: checked && /* @__PURE__ */ jsxRuntime.jsx("span", { className: dotVariants({ size }) })
138
+ children: checked && /* @__PURE__ */ jsxRuntime.jsx(
139
+ "span",
140
+ {
141
+ className: chunkCZC76ZD5_js.cn(
142
+ "nexus-radio__dot",
143
+ size === "sm" ? "nexus-radio__dot--sm" : "nexus-radio__dot--md"
144
+ )
145
+ }
146
+ )
165
147
  }
166
148
  ),
167
- content && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "nx:text-text-primary", children: content })
149
+ content && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "nexus-radio__label", children: content })
168
150
  ]
169
151
  }
170
152
  );