@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
@@ -0,0 +1,87 @@
1
+ import { cn } from './chunk-MCKOWMLS.mjs';
2
+ import * as React from 'react';
3
+ import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
4
+
5
+ var ImageIcon = ({ className }) => /* @__PURE__ */ jsxs("svg", { className, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", children: [
6
+ /* @__PURE__ */ jsx("rect", { x: "3", y: "3", width: "18", height: "18", rx: "2" }),
7
+ /* @__PURE__ */ jsx("circle", { cx: "8.5", cy: "8.5", r: "1.5" }),
8
+ /* @__PURE__ */ jsx("path", { d: "M21 15l-5-5L5 21" })
9
+ ] });
10
+ var NxImage = React.forwardRef(
11
+ ({
12
+ className,
13
+ src,
14
+ alt,
15
+ fallback,
16
+ fallbackSrc,
17
+ aspectRatio,
18
+ objectFit = "cover",
19
+ lazy = true,
20
+ wrapperClassName,
21
+ style,
22
+ onError,
23
+ onLoad,
24
+ ...props
25
+ }, ref) => {
26
+ const [status, setStatus] = React.useState(
27
+ "loading"
28
+ );
29
+ React.useEffect(() => {
30
+ setStatus("loading");
31
+ }, [src]);
32
+ const handleLoad = React.useCallback(
33
+ (e) => {
34
+ setStatus("loaded");
35
+ onLoad?.(e);
36
+ },
37
+ [onLoad]
38
+ );
39
+ const handleError = React.useCallback(
40
+ (e) => {
41
+ if (fallbackSrc && e.currentTarget.src !== fallbackSrc) {
42
+ e.currentTarget.src = fallbackSrc;
43
+ return;
44
+ }
45
+ setStatus("error");
46
+ onError?.(e);
47
+ },
48
+ [fallbackSrc, onError]
49
+ );
50
+ const wrapperStyle = {
51
+ ...style,
52
+ ...aspectRatio ? { aspectRatio } : {}
53
+ };
54
+ const showFallback = status === "error" || !src;
55
+ return /* @__PURE__ */ jsx(
56
+ "div",
57
+ {
58
+ className: cn("nexus-image", wrapperClassName),
59
+ style: wrapperStyle,
60
+ children: showFallback ? /* @__PURE__ */ jsx("div", { className: "nexus-image__fallback", children: fallback ?? /* @__PURE__ */ jsx(ImageIcon, { className: "nexus-image__fallback-icon" }) }) : /* @__PURE__ */ jsxs(Fragment, { children: [
61
+ status === "loading" && /* @__PURE__ */ jsx("div", { className: "nexus-image__skeleton" }),
62
+ /* @__PURE__ */ jsx(
63
+ "img",
64
+ {
65
+ ref,
66
+ src,
67
+ alt: alt ?? "",
68
+ loading: lazy ? "lazy" : "eager",
69
+ className: cn(
70
+ "nexus-image__img",
71
+ `nexus-image__img--${objectFit}`,
72
+ status === "loaded" && "nexus-image__img--loaded",
73
+ className
74
+ ),
75
+ onLoad: handleLoad,
76
+ onError: handleError,
77
+ ...props
78
+ }
79
+ )
80
+ ] })
81
+ }
82
+ );
83
+ }
84
+ );
85
+ NxImage.displayName = "NxImage";
86
+
87
+ export { NxImage };
@@ -0,0 +1,81 @@
1
+ import { cn } from './chunk-MCKOWMLS.mjs';
2
+ import * as React from 'react';
3
+ import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
4
+ import { jsx, jsxs } from 'react/jsx-runtime';
5
+
6
+ var DropdownMenu = ({
7
+ children,
8
+ items,
9
+ align = "start",
10
+ side = "bottom",
11
+ className,
12
+ contentClassName
13
+ }) => /* @__PURE__ */ jsxs(DropdownMenuPrimitive.Root, { children: [
14
+ /* @__PURE__ */ jsx(DropdownMenuPrimitive.Trigger, { asChild: true, className, children }),
15
+ /* @__PURE__ */ jsx(DropdownMenuPrimitive.Portal, { children: /* @__PURE__ */ jsx(
16
+ DropdownMenuPrimitive.Content,
17
+ {
18
+ align,
19
+ side,
20
+ sideOffset: 4,
21
+ className: cn("nexus-dropdown-content", contentClassName),
22
+ children: items.map(
23
+ (item, i) => item.separator ? /* @__PURE__ */ jsx(
24
+ DropdownMenuPrimitive.Separator,
25
+ {
26
+ className: "nexus-dropdown-separator"
27
+ },
28
+ i
29
+ ) : /* @__PURE__ */ jsxs(
30
+ DropdownMenuPrimitive.Item,
31
+ {
32
+ className: cn(
33
+ "nexus-dropdown-item",
34
+ item.danger && "nexus-dropdown-item--danger"
35
+ ),
36
+ disabled: item.disabled,
37
+ onSelect: item.onClick,
38
+ children: [
39
+ item.icon && /* @__PURE__ */ jsx("span", { className: "nexus-dropdown-item__icon", children: item.icon }),
40
+ /* @__PURE__ */ jsx("span", { children: item.label })
41
+ ]
42
+ },
43
+ item.value ?? i
44
+ )
45
+ )
46
+ }
47
+ ) })
48
+ ] });
49
+ DropdownMenu.displayName = "DropdownMenu";
50
+ var DropdownMenuRoot = DropdownMenuPrimitive.Root;
51
+ var DropdownMenuTrigger = DropdownMenuPrimitive.Trigger;
52
+ var DropdownMenuContent = React.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsx(DropdownMenuPrimitive.Portal, { children: /* @__PURE__ */ jsx(
53
+ DropdownMenuPrimitive.Content,
54
+ {
55
+ ref,
56
+ sideOffset,
57
+ className: cn("nexus-dropdown-content", className),
58
+ ...props
59
+ }
60
+ ) }));
61
+ DropdownMenuContent.displayName = "DropdownMenuContent";
62
+ var DropdownMenuItem = React.forwardRef(({ className, danger, ...props }, ref) => /* @__PURE__ */ jsx(
63
+ DropdownMenuPrimitive.Item,
64
+ {
65
+ ref,
66
+ className: cn("nexus-dropdown-item", danger && "nexus-dropdown-item--danger", className),
67
+ ...props
68
+ }
69
+ ));
70
+ DropdownMenuItem.displayName = "DropdownMenuItem";
71
+ var DropdownMenuSeparator = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
72
+ DropdownMenuPrimitive.Separator,
73
+ {
74
+ ref,
75
+ className: cn("nexus-dropdown-separator", className),
76
+ ...props
77
+ }
78
+ ));
79
+ DropdownMenuSeparator.displayName = "DropdownMenuSeparator";
80
+
81
+ export { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuRoot, DropdownMenuSeparator, DropdownMenuTrigger };
@@ -1,4 +1,4 @@
1
- import { cn } from './chunk-XALPBGSC.mjs';
1
+ import { cn } from './chunk-MCKOWMLS.mjs';
2
2
  import { useRef, useState, useCallback, useMemo, useLayoutEffect } from 'react';
3
3
  import { jsxs, jsx } from 'react/jsx-runtime';
4
4
 
@@ -85,12 +85,12 @@ var Ellipsis = ({
85
85
  });
86
86
  }
87
87
  }, [shortened, content, observingEnvs, resetContentElementAfterMeasuring]);
88
- return /* @__PURE__ */ jsxs("div", { className: cn("nx:relative", className), children: [
88
+ return /* @__PURE__ */ jsxs("div", { className: cn("nexus-ellipsis", className), children: [
89
89
  /* @__PURE__ */ jsx(
90
90
  "div",
91
91
  {
92
92
  ref: contentRef,
93
- className: "nx:overflow-hidden nx:transition-[height] nx:duration-300",
93
+ className: "nexus-ellipsis__content",
94
94
  style: contentStyle,
95
95
  children: typeof content === "string" ? /* @__PURE__ */ jsx("span", { dangerouslySetInnerHTML: { __html: content } }) : content
96
96
  }
@@ -98,14 +98,13 @@ var Ellipsis = ({
98
98
  triggerVisible && /* @__PURE__ */ jsxs(
99
99
  "button",
100
100
  {
101
+ type: "button",
101
102
  onClick: onShowMoreLessClick ?? handleToggle,
102
- className: cn(
103
- "nx:mt-1 nx:flex nx:items-center nx:gap-1 nx:text-sm nx:text-text-secondary nx:transition-colors nx:hover:text-text-primary",
104
- !shortened && "nx:[&>svg]:rotate-180"
105
- ),
103
+ className: cn("nexus-ellipsis__trigger", !shortened && "nexus-ellipsis__trigger--expanded"),
104
+ "aria-expanded": !shortened,
106
105
  children: [
107
106
  shortened ? triggerMore : triggerLess,
108
- /* @__PURE__ */ jsx(ChevronDown, { className: "nx:h-3.5 nx:w-3.5 nx:transition-transform nx:duration-200" })
107
+ /* @__PURE__ */ jsx(ChevronDown, { className: "nexus-ellipsis__chevron" })
109
108
  ]
110
109
  }
111
110
  )
@@ -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 SelectPrimitive = require('@radix-ui/react-select');
5
5
  var classVarianceAuthority = require('class-variance-authority');
6
6
  var react = require('react');
@@ -26,51 +26,32 @@ function _interopNamespace(e) {
26
26
 
27
27
  var SelectPrimitive__namespace = /*#__PURE__*/_interopNamespace(SelectPrimitive);
28
28
 
29
- var selectTriggerVariants = classVarianceAuthority.cva(
30
- [
31
- "nx:relative",
32
- "nx:flex nx:h-10 nx:items-center nx:justify-between nx:rounded nx:border nx:bg-surface-default nx:border-border-default",
33
- "nx:placeholder:text-text-tertiary",
34
- "nx:disabled:cursor-not-allowed nx:disabled:opacity-50",
35
- "nx:hover:border-border-strong nx:transition-all nx:duration-200"
36
- ],
37
- {
38
- variants: {
39
- variant: {
40
- default: "nx:bg-surface-hover",
41
- outline: "nx:bg-surface-default"
42
- },
43
- size: {
44
- sm: "nx:w-16",
45
- md: "nx:w-32",
46
- lg: "nx:w-48",
47
- full: "nx:w-full"
48
- }
29
+ var selectTriggerVariants = classVarianceAuthority.cva("nexus-select-trigger", {
30
+ variants: {
31
+ variant: {
32
+ default: "nexus-select-trigger--default",
33
+ outline: "nexus-select-trigger--outline"
49
34
  },
50
- defaultVariants: { variant: "default", size: "full" }
51
- }
52
- );
53
- var selectContentVariants = classVarianceAuthority.cva(
54
- [
55
- "nx:relative nx:z-50 nx:max-h-96 nx:overflow-hidden nx:rounded nx:border nx:bg-surface-default nx:border-border-default nx:shadow-lg",
56
- "nx:data-[state=open]:animate-in nx:data-[state=closed]:animate-out",
57
- "nx:data-[state=closed]:fade-out-0 nx:data-[state=open]:fade-in-0",
58
- "nx:data-[state=closed]:zoom-out-95 nx:data-[state=open]:zoom-in-95",
59
- "nx:data-[side=bottom]:slide-in-from-top-2 nx:data-[side=left]:slide-in-from-right-2",
60
- "nx:data-[side=right]:slide-in-from-left-2 nx:data-[side=top]:slide-in-from-bottom-2"
61
- ],
62
- {
63
- variants: {
64
- size: {
65
- sm: "nx:w-16",
66
- md: "nx:w-32",
67
- lg: "nx:w-48",
68
- full: "nx:w-[var(--radix-popper-anchor-width)]"
69
- }
70
- },
71
- defaultVariants: { size: "full" }
72
- }
73
- );
35
+ size: {
36
+ sm: "nexus-select-trigger--sm",
37
+ md: "nexus-select-trigger--md",
38
+ lg: "nexus-select-trigger--lg",
39
+ full: "nexus-select-trigger--full"
40
+ }
41
+ },
42
+ defaultVariants: { variant: "default", size: "full" }
43
+ });
44
+ var selectContentVariants = classVarianceAuthority.cva("nexus-select-content", {
45
+ variants: {
46
+ size: {
47
+ sm: "nexus-select-content--sm",
48
+ md: "nexus-select-content--md",
49
+ lg: "nexus-select-content--lg",
50
+ full: "nexus-select-content--full"
51
+ }
52
+ },
53
+ defaultVariants: { size: "full" }
54
+ });
74
55
  var ChevronDown = ({ className }) => /* @__PURE__ */ jsxRuntime.jsx("svg", { className, viewBox: "0 0 16 16", fill: "currentColor", children: /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M4 6l4 4 4-4", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round" }) });
75
56
  var Select = ({
76
57
  children,
@@ -95,28 +76,22 @@ var Select = ({
95
76
  children: /* @__PURE__ */ jsxRuntime.jsxs(
96
77
  "div",
97
78
  {
98
- className: chunkQJNQCLMV_js.cn(
79
+ className: chunkCZC76ZD5_js.cn(
99
80
  selectTriggerVariants({ size, variant }),
100
- displayComponent && "nx:justify-end",
81
+ displayComponent && "nexus-select-trigger--justify-end",
101
82
  className
102
83
  ),
103
84
  children: [
104
- displayComponent && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "nx:absolute nx:top-0 nx:left-0 nx:flex nx:h-full nx:w-[calc(100%-30px)] nx:items-center", children: displayComponent }),
85
+ displayComponent && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "nexus-select-trigger__display", children: displayComponent }),
105
86
  /* @__PURE__ */ jsxRuntime.jsxs(
106
87
  SelectPrimitive__namespace.Trigger,
107
88
  {
108
- className: chunkQJNQCLMV_js.cn(
109
- "nx:flex nx:h-full nx:w-full nx:flex-row-reverse nx:items-center nx:justify-between nx:rounded nx:px-3 nx:py-2 nx:focus:outline-none",
110
- triggerClassName
111
- ),
89
+ className: chunkCZC76ZD5_js.cn("nexus-select-trigger__inner", triggerClassName),
112
90
  children: [
113
91
  /* @__PURE__ */ jsxRuntime.jsx(SelectPrimitive__namespace.Icon, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(
114
92
  ChevronDown,
115
93
  {
116
- className: chunkQJNQCLMV_js.cn(
117
- "nx:size-3 nx:opacity-50 nx:transition-transform nx:duration-200",
118
- isOpen && "nx:rotate-180"
119
- )
94
+ className: chunkCZC76ZD5_js.cn("nexus-select-chevron", isOpen && "nexus-select-chevron--open")
120
95
  }
121
96
  ) }),
122
97
  !displayComponent && /* @__PURE__ */ jsxRuntime.jsx(SelectPrimitive__namespace.Value, { placeholder })
@@ -126,9 +101,9 @@ var Select = ({
126
101
  /* @__PURE__ */ jsxRuntime.jsx(SelectPrimitive__namespace.Portal, { children: /* @__PURE__ */ jsxRuntime.jsx(
127
102
  SelectPrimitive__namespace.Content,
128
103
  {
129
- className: chunkQJNQCLMV_js.cn(selectContentVariants({ size })),
104
+ className: chunkCZC76ZD5_js.cn(selectContentVariants({ size })),
130
105
  position: "popper",
131
- children: /* @__PURE__ */ jsxRuntime.jsx(SelectPrimitive__namespace.Viewport, { className: "nx:p-1", children })
106
+ children: /* @__PURE__ */ jsxRuntime.jsx(SelectPrimitive__namespace.Viewport, { className: "nexus-select-viewport", children })
132
107
  }
133
108
  ) })
134
109
  ]
@@ -147,14 +122,7 @@ var SelectItem = ({
147
122
  {
148
123
  value,
149
124
  disabled,
150
- className: chunkQJNQCLMV_js.cn(
151
- "nx:relative nx:flex nx:w-full nx:cursor-pointer nx:items-center nx:rounded nx:px-3 nx:py-2 nx:transition-colors nx:outline-none nx:select-none",
152
- "nx:hover:bg-surface-hover",
153
- "nx:focus:bg-surface-hover",
154
- "nx:data-[disabled]:pointer-events-none nx:data-[disabled]:opacity-50",
155
- "nx:data-[highlighted]:bg-surface-hover",
156
- className
157
- ),
125
+ className: chunkCZC76ZD5_js.cn("nexus-select-item", className),
158
126
  children: /* @__PURE__ */ jsxRuntime.jsx(SelectPrimitive__namespace.ItemText, { children })
159
127
  }
160
128
  );
@@ -1,36 +1,17 @@
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 { jsxs, jsx } from 'react/jsx-runtime';
5
5
 
6
- var switchVariants = cva(
7
- [
8
- "nx:relative nx:inline-flex nx:shrink-0 nx:cursor-pointer nx:rounded-full nx:transition-colors nx:duration-200",
9
- "nx:border-2 nx:border-transparent",
10
- "nx:disabled:cursor-not-allowed nx:disabled:opacity-50"
11
- ],
12
- {
13
- variants: {
14
- size: {
15
- sm: "nx:h-5 nx:w-9",
16
- md: "nx:h-6 nx:w-11"
17
- }
18
- },
19
- defaultVariants: { size: "md" }
20
- }
21
- );
22
- var thumbVariants = cva(
23
- "nx:pointer-events-none nx:block nx:rounded-full nx:bg-white nx:shadow-sm nx:transition-transform nx:duration-200",
24
- {
25
- variants: {
26
- size: {
27
- sm: "nx:size-4",
28
- md: "nx:size-5"
29
- }
30
- },
31
- defaultVariants: { size: "md" }
32
- }
33
- );
6
+ var switchVariants = cva("nexus-switch", {
7
+ variants: {
8
+ size: {
9
+ sm: "nexus-switch--sm",
10
+ md: "nexus-switch--md"
11
+ }
12
+ },
13
+ defaultVariants: { size: "md" }
14
+ });
34
15
  var Switch = React.forwardRef(
35
16
  ({ className, size, checked, disabled, readOnly, onCheckedChange, onChange, ...props }, ref) => {
36
17
  const handleChange = React.useCallback(
@@ -40,14 +21,12 @@ var Switch = React.forwardRef(
40
21
  },
41
22
  [onCheckedChange, onChange]
42
23
  );
43
- const translateClass = size === "sm" ? "nx:translate-x-4" : "nx:translate-x-5";
44
24
  return /* @__PURE__ */ jsxs(
45
25
  "label",
46
26
  {
47
27
  className: cn(
48
28
  switchVariants({ size }),
49
- checked ? "nx:bg-accent-primary" : "nx:bg-border-default",
50
- disabled && "nx:cursor-not-allowed nx:opacity-50",
29
+ checked ? "nexus-switch--checked" : "nexus-switch--unchecked",
51
30
  className
52
31
  ),
53
32
  children: [
@@ -57,7 +36,7 @@ var Switch = React.forwardRef(
57
36
  ref,
58
37
  type: "checkbox",
59
38
  role: "switch",
60
- className: "nx:sr-only",
39
+ className: "nexus-sr-only",
61
40
  checked,
62
41
  disabled,
63
42
  readOnly,
@@ -71,8 +50,9 @@ var Switch = React.forwardRef(
71
50
  {
72
51
  "aria-hidden": "true",
73
52
  className: cn(
74
- thumbVariants({ size }),
75
- checked ? translateClass : "nx:translate-x-0"
53
+ "nexus-switch__thumb",
54
+ size === "sm" ? "nexus-switch__thumb--sm" : "nexus-switch__thumb--md",
55
+ checked ? size === "sm" ? "nexus-switch__thumb--sm-on" : "nexus-switch__thumb--md-on" : "nexus-switch__thumb--off"
76
56
  )
77
57
  }
78
58
  )
@@ -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,28 +25,23 @@ function _interopNamespace(e) {
25
25
 
26
26
  var React__namespace = /*#__PURE__*/_interopNamespace(React);
27
27
 
28
- var numberInputVariants = classVarianceAuthority.cva(
29
- [
30
- "nx:flex nx:w-full nx:items-center nx:rounded-md nx:border nx:bg-surface-default nx:text-text-primary",
31
- "nx:transition-colors nx:duration-200"
32
- ],
33
- {
34
- variants: {
35
- size: {
36
- sm: "nx:h-8 nx:text-xs",
37
- md: "nx:h-10 nx:text-sm",
38
- lg: "nx:h-12 nx:text-base"
39
- },
40
- state: {
41
- default: "nx:border-border-default nx:focus-within:border-text-primary",
42
- error: "nx:border-status-negative nx:focus-within:border-status-negative"
43
- }
28
+ var numberInputVariants = classVarianceAuthority.cva("nexus-number-input", {
29
+ variants: {
30
+ size: {
31
+ sm: "nexus-number-input--sm",
32
+ md: "nexus-number-input--md",
33
+ lg: "nexus-number-input--lg",
34
+ xl: "nexus-number-input--xl"
44
35
  },
45
- defaultVariants: { size: "md", state: "default" }
46
- }
47
- );
48
- var ChevronUp = () => /* @__PURE__ */ jsxRuntime.jsx("svg", { className: "nx:size-3", viewBox: "0 0 12 12", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", children: /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M3 7.5L6 4.5l3 3" }) });
49
- var ChevronDown = () => /* @__PURE__ */ jsxRuntime.jsx("svg", { className: "nx:size-3", viewBox: "0 0 12 12", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", children: /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M3 4.5L6 7.5l3-3" }) });
36
+ state: {
37
+ default: "nexus-number-input--default",
38
+ error: "nexus-number-input--error"
39
+ }
40
+ },
41
+ defaultVariants: { size: "md", state: "default" }
42
+ });
43
+ var ChevronUp = () => /* @__PURE__ */ jsxRuntime.jsx("svg", { className: "nexus-number-input__step-icon", viewBox: "0 0 12 12", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", children: /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M3 7.5L6 4.5l3 3" }) });
44
+ var ChevronDown = () => /* @__PURE__ */ jsxRuntime.jsx("svg", { className: "nexus-number-input__step-icon", viewBox: "0 0 12 12", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", children: /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M3 4.5L6 7.5l3-3" }) });
50
45
  function clampValue(val, min, max) {
51
46
  let result = val;
52
47
  if (min !== void 0) result = Math.max(min, result);
@@ -194,7 +189,7 @@ var NumberInput = React__namespace.forwardRef(
194
189
  }),
195
190
  [step]
196
191
  );
197
- const padSize = size === "sm" ? "nx:px-2" : size === "lg" ? "nx:px-3.5" : "nx:px-3";
192
+ const padSize = size === "sm" ? "nexus-number-input__field--sm" : size === "xl" ? "nexus-number-input__field--xl" : size === "lg" ? "nexus-number-input__field--lg" : "nexus-number-input__field--md";
198
193
  const showButtons = !hideButtons && !readOnly && !disabled;
199
194
  const numValue = parseFloat(internalValue) || 0;
200
195
  const isMinDisabled = min !== void 0 && numValue <= min;
@@ -202,9 +197,9 @@ var NumberInput = React__namespace.forwardRef(
202
197
  return /* @__PURE__ */ jsxRuntime.jsxs(
203
198
  "div",
204
199
  {
205
- className: chunkQJNQCLMV_js.cn(
200
+ className: chunkCZC76ZD5_js.cn(
206
201
  numberInputVariants({ size, state }),
207
- disabled && "nx:opacity-50 nx:cursor-not-allowed",
202
+ disabled && "nexus-number-input--disabled",
208
203
  className
209
204
  ),
210
205
  children: [
@@ -215,10 +210,7 @@ var NumberInput = React__namespace.forwardRef(
215
210
  type: "text",
216
211
  inputMode: "decimal",
217
212
  role: "spinbutton",
218
- className: chunkQJNQCLMV_js.cn(
219
- "nx:h-full nx:w-full nx:min-w-0 nx:flex-1 nx:bg-transparent nx:outline-none nx:placeholder:text-text-tertiary",
220
- padSize
221
- ),
213
+ className: chunkCZC76ZD5_js.cn("nexus-number-input__field", padSize),
222
214
  value: internalValue,
223
215
  disabled,
224
216
  readOnly,
@@ -233,14 +225,14 @@ var NumberInput = React__namespace.forwardRef(
233
225
  ...props
234
226
  }
235
227
  ),
236
- showButtons && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "nx:flex nx:flex-col nx:border-l nx:border-border-default nx:h-full nx:shrink-0", children: [
228
+ showButtons && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "nexus-number-input__buttons", children: [
237
229
  /* @__PURE__ */ jsxRuntime.jsx(
238
230
  "button",
239
231
  {
240
232
  type: "button",
241
233
  tabIndex: -1,
242
234
  disabled: isMaxDisabled,
243
- className: "nx:flex nx:flex-1 nx:items-center nx:justify-center nx:px-1.5 nx:text-text-tertiary nx:hover:text-text-primary nx:hover:bg-surface-hover nx:disabled:opacity-40 nx:disabled:pointer-events-none nx:transition-colors nx:rounded-tr-md nx:border-b nx:border-border-default",
235
+ className: "nexus-number-input__step nexus-number-input__step--up",
244
236
  onPointerDown: (e) => startRepeat(step, e),
245
237
  onPointerUp: stopRepeat,
246
238
  onPointerLeave: stopRepeat,
@@ -254,7 +246,7 @@ var NumberInput = React__namespace.forwardRef(
254
246
  type: "button",
255
247
  tabIndex: -1,
256
248
  disabled: isMinDisabled,
257
- className: "nx:flex nx:flex-1 nx:items-center nx:justify-center nx:px-1.5 nx:text-text-tertiary nx:hover:text-text-primary nx:hover:bg-surface-hover nx:disabled:opacity-40 nx:disabled:pointer-events-none nx:transition-colors nx:rounded-br-md",
249
+ className: "nexus-number-input__step nexus-number-input__step--down",
258
250
  onPointerDown: (e) => startRepeat(-step, e),
259
251
  onPointerUp: stopRepeat,
260
252
  onPointerLeave: stopRepeat,
@@ -0,0 +1,73 @@
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 progressVariants = cva("nexus-progress", {
7
+ variants: {
8
+ variant: {
9
+ primary: "nexus-progress--primary",
10
+ success: "nexus-progress--success",
11
+ warning: "nexus-progress--warning",
12
+ danger: "nexus-progress--danger",
13
+ info: "nexus-progress--info"
14
+ },
15
+ size: {
16
+ sm: "nexus-progress--sm",
17
+ md: "nexus-progress--md",
18
+ lg: "nexus-progress--lg"
19
+ }
20
+ },
21
+ defaultVariants: {
22
+ variant: "primary",
23
+ size: "md"
24
+ }
25
+ });
26
+ var Progress = React.forwardRef(
27
+ ({
28
+ className,
29
+ variant,
30
+ size,
31
+ value = 0,
32
+ max = 100,
33
+ showValue = false,
34
+ indeterminate = false,
35
+ label,
36
+ ...props
37
+ }, ref) => {
38
+ const percentage = Math.min(100, Math.max(0, value / max * 100));
39
+ return /* @__PURE__ */ jsxs("div", { className: cn("nexus-progress-wrapper", className), ref, ...props, children: [
40
+ (label || showValue) && /* @__PURE__ */ jsxs("div", { className: "nexus-progress__header", children: [
41
+ label && /* @__PURE__ */ jsx("span", { className: "nexus-progress__label", children: label }),
42
+ showValue && !indeterminate && /* @__PURE__ */ jsxs("span", { className: "nexus-progress__value", children: [
43
+ Math.round(percentage),
44
+ "%"
45
+ ] })
46
+ ] }),
47
+ /* @__PURE__ */ jsx(
48
+ "div",
49
+ {
50
+ className: cn(progressVariants({ variant, size })),
51
+ role: "progressbar",
52
+ "aria-valuenow": indeterminate ? void 0 : value,
53
+ "aria-valuemin": 0,
54
+ "aria-valuemax": max,
55
+ "aria-label": label,
56
+ children: /* @__PURE__ */ jsx(
57
+ "div",
58
+ {
59
+ className: cn(
60
+ "nexus-progress__bar",
61
+ indeterminate && "nexus-progress__bar--indeterminate"
62
+ ),
63
+ style: indeterminate ? void 0 : { width: `${percentage}%` }
64
+ }
65
+ )
66
+ }
67
+ )
68
+ ] });
69
+ }
70
+ );
71
+ Progress.displayName = "Progress";
72
+
73
+ export { Progress, progressVariants };
@@ -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 jsxRuntime = require('react/jsx-runtime');
6
6
 
@@ -87,12 +87,12 @@ var Ellipsis = ({
87
87
  });
88
88
  }
89
89
  }, [shortened, content, observingEnvs, resetContentElementAfterMeasuring]);
90
- return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: chunkQJNQCLMV_js.cn("nx:relative", className), children: [
90
+ return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: chunkCZC76ZD5_js.cn("nexus-ellipsis", className), children: [
91
91
  /* @__PURE__ */ jsxRuntime.jsx(
92
92
  "div",
93
93
  {
94
94
  ref: contentRef,
95
- className: "nx:overflow-hidden nx:transition-[height] nx:duration-300",
95
+ className: "nexus-ellipsis__content",
96
96
  style: contentStyle,
97
97
  children: typeof content === "string" ? /* @__PURE__ */ jsxRuntime.jsx("span", { dangerouslySetInnerHTML: { __html: content } }) : content
98
98
  }
@@ -100,14 +100,13 @@ var Ellipsis = ({
100
100
  triggerVisible && /* @__PURE__ */ jsxRuntime.jsxs(
101
101
  "button",
102
102
  {
103
+ type: "button",
103
104
  onClick: onShowMoreLessClick ?? handleToggle,
104
- className: chunkQJNQCLMV_js.cn(
105
- "nx:mt-1 nx:flex nx:items-center nx:gap-1 nx:text-sm nx:text-text-secondary nx:transition-colors nx:hover:text-text-primary",
106
- !shortened && "nx:[&>svg]:rotate-180"
107
- ),
105
+ className: chunkCZC76ZD5_js.cn("nexus-ellipsis__trigger", !shortened && "nexus-ellipsis__trigger--expanded"),
106
+ "aria-expanded": !shortened,
108
107
  children: [
109
108
  shortened ? triggerMore : triggerLess,
110
- /* @__PURE__ */ jsxRuntime.jsx(ChevronDown, { className: "nx:h-3.5 nx:w-3.5 nx:transition-transform nx:duration-200" })
109
+ /* @__PURE__ */ jsxRuntime.jsx(ChevronDown, { className: "nexus-ellipsis__chevron" })
111
110
  ]
112
111
  }
113
112
  )