@vlrc-fe/components 2.7.0 → 2.8.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 (476) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/dist/ConfirmModal.d.ts +2 -3
  3. package/dist/ConfirmModal.d.ts.map +1 -1
  4. package/dist/DataTable/components/DataTableFacetedFilter.d.ts.map +1 -1
  5. package/dist/DataTable/components/DataTablePagination.d.ts.map +1 -1
  6. package/dist/Dropdown/Dropdown.d.ts.map +1 -1
  7. package/dist/Dropdown/types.d.ts +1 -1
  8. package/dist/Dropdown/types.d.ts.map +1 -1
  9. package/dist/Form/FormDatePicker/FormDatePicker.d.ts.map +1 -1
  10. package/dist/Form/FormDatePicker/MonthPickerPanel.d.ts +2 -1
  11. package/dist/Form/FormDatePicker/MonthPickerPanel.d.ts.map +1 -1
  12. package/dist/Form/FormDatePicker/RangeDatePicker.d.ts +7 -1
  13. package/dist/Form/FormDatePicker/RangeDatePicker.d.ts.map +1 -1
  14. package/dist/Form/FormDatePicker/SingleDatePicker.d.ts +5 -1
  15. package/dist/Form/FormDatePicker/SingleDatePicker.d.ts.map +1 -1
  16. package/dist/Form/FormDatePicker/TimeInput.d.ts.map +1 -1
  17. package/dist/Form/FormDatePicker/TimePicker.d.ts.map +1 -1
  18. package/dist/Form/FormDatePicker/types.d.ts +5 -0
  19. package/dist/Form/FormDatePicker/types.d.ts.map +1 -1
  20. package/dist/Form/FormFileUpload/index.d.ts.map +1 -1
  21. package/dist/Form/FormNumberInput/useFormNumberInput.d.ts +2 -2
  22. package/dist/Form/FormNumberInput/useFormNumberInput.d.ts.map +1 -1
  23. package/dist/Form/FormSelect/FormSelect.d.ts.map +1 -1
  24. package/dist/Form/FormSelect/types.d.ts +1 -1
  25. package/dist/Form/FormSelect/types.d.ts.map +1 -1
  26. package/dist/Form/FormSelect/useFormSelect.d.ts +1 -1
  27. package/dist/Form/FormSelect/useFormSelect.d.ts.map +1 -1
  28. package/dist/MultiSelect/MultiSelect.d.ts +3 -31
  29. package/dist/MultiSelect/MultiSelect.d.ts.map +1 -1
  30. package/dist/MultiSelect/renderers.d.ts.map +1 -1
  31. package/dist/MultiSelect/type.d.ts +1 -0
  32. package/dist/MultiSelect/type.d.ts.map +1 -1
  33. package/dist/MultiSelect/useMultiSelect.d.ts.map +1 -1
  34. package/dist/Select/BaseSelect.d.ts.map +1 -1
  35. package/dist/Select/MultiSelectTags.d.ts.map +1 -1
  36. package/dist/Select/type.d.ts +1 -1
  37. package/dist/Select/type.d.ts.map +1 -1
  38. package/dist/Typography/Code.d.ts.map +1 -1
  39. package/dist/Typography/Link.d.ts.map +1 -1
  40. package/dist/Typography/Paragraph.d.ts.map +1 -1
  41. package/dist/Typography/Text.d.ts.map +1 -1
  42. package/dist/Typography/Title.d.ts.map +1 -1
  43. package/dist/Typography/types.d.ts +37 -1
  44. package/dist/Typography/types.d.ts.map +1 -1
  45. package/dist/Typography/utils.d.ts +3 -2
  46. package/dist/Typography/utils.d.ts.map +1 -1
  47. package/dist/assets/stylex.css +36 -24
  48. package/dist/index.cjs +1 -1
  49. package/dist/index.js +108 -108
  50. package/dist/index10.cjs +1 -1
  51. package/dist/index10.js +18 -55
  52. package/dist/index101.cjs +1 -1
  53. package/dist/index101.js +89 -89
  54. package/dist/index102.cjs +1 -1
  55. package/dist/index102.js +29 -29
  56. package/dist/index103.cjs +1 -1
  57. package/dist/index103.js +128 -124
  58. package/dist/index104.cjs +1 -1
  59. package/dist/index104.js +16 -16
  60. package/dist/index106.cjs +1 -1
  61. package/dist/index106.js +2 -2
  62. package/dist/index107.cjs +1 -1
  63. package/dist/index107.js +114 -117
  64. package/dist/index108.cjs +1 -1
  65. package/dist/index108.js +95 -92
  66. package/dist/index109.cjs +1 -1
  67. package/dist/index109.js +41 -41
  68. package/dist/index11.cjs +1 -1
  69. package/dist/index11.js +36 -164
  70. package/dist/index110.cjs +1 -1
  71. package/dist/index110.js +1 -1
  72. package/dist/index111.cjs +1 -1
  73. package/dist/index111.js +1 -1
  74. package/dist/index112.cjs +1 -1
  75. package/dist/index112.js +128 -120
  76. package/dist/index114.cjs +1 -1
  77. package/dist/index114.js +151 -151
  78. package/dist/index116.cjs +1 -1
  79. package/dist/index116.js +96 -91
  80. package/dist/index117.cjs +1 -1
  81. package/dist/index117.js +18 -18
  82. package/dist/index118.cjs +1 -1
  83. package/dist/index118.js +2 -2
  84. package/dist/index119.cjs +1 -1
  85. package/dist/index119.js +15 -15
  86. package/dist/index12.cjs +1 -1
  87. package/dist/index12.js +147 -103
  88. package/dist/index120.cjs +1 -1
  89. package/dist/index120.js +10 -10
  90. package/dist/index121.cjs +1 -1
  91. package/dist/index121.js +31 -31
  92. package/dist/index122.cjs +1 -1
  93. package/dist/index122.js +3 -3
  94. package/dist/index123.cjs +1 -1
  95. package/dist/index123.js +2 -2
  96. package/dist/index124.cjs +1 -1
  97. package/dist/index124.js +53 -49
  98. package/dist/index126.cjs +1 -1
  99. package/dist/index126.js +35 -38
  100. package/dist/index127.cjs +1 -1
  101. package/dist/index127.js +114 -107
  102. package/dist/index128.cjs +1 -1
  103. package/dist/index128.js +8 -8
  104. package/dist/index129.cjs +1 -1
  105. package/dist/index129.js +53 -53
  106. package/dist/index13.cjs +1 -1
  107. package/dist/index13.js +130 -102
  108. package/dist/index130.cjs +1 -1
  109. package/dist/index130.js +134 -130
  110. package/dist/index132.cjs +1 -1
  111. package/dist/index132.js +7 -7
  112. package/dist/index133.cjs +1 -1
  113. package/dist/index133.js +95 -95
  114. package/dist/index134.cjs +1 -1
  115. package/dist/index134.js +2 -2
  116. package/dist/index135.cjs +1 -1
  117. package/dist/index135.js +113 -99
  118. package/dist/index136.cjs +1 -1
  119. package/dist/index136.js +8 -8
  120. package/dist/index137.cjs +1 -1
  121. package/dist/index137.js +16 -16
  122. package/dist/index138.cjs +1 -1
  123. package/dist/index138.js +20 -20
  124. package/dist/index14.cjs +1 -1
  125. package/dist/index14.js +154 -80
  126. package/dist/index140.cjs +1 -1
  127. package/dist/index140.js +2 -2
  128. package/dist/index141.cjs +1 -1
  129. package/dist/index141.js +24 -24
  130. package/dist/index142.cjs +1 -1
  131. package/dist/index142.js +2 -2
  132. package/dist/index143.cjs +1 -1
  133. package/dist/index143.js +15 -15
  134. package/dist/index144.cjs +1 -1
  135. package/dist/index144.js +3 -3
  136. package/dist/index145.cjs +1 -1
  137. package/dist/index145.js +2 -2
  138. package/dist/index146.cjs +1 -1
  139. package/dist/index146.js +1 -1
  140. package/dist/index147.cjs +1 -1
  141. package/dist/index147.js +88 -88
  142. package/dist/index149.cjs +1 -1
  143. package/dist/index149.js +64 -64
  144. package/dist/index15.cjs +1 -1
  145. package/dist/index15.js +116 -63
  146. package/dist/index150.cjs +1 -1
  147. package/dist/index150.js +9 -9
  148. package/dist/index152.cjs +1 -1
  149. package/dist/index152.js +1 -1
  150. package/dist/index153.cjs +1 -1
  151. package/dist/index153.js +41 -41
  152. package/dist/index154.cjs +1 -1
  153. package/dist/index154.js +73 -73
  154. package/dist/index155.cjs +1 -1
  155. package/dist/index155.js +34 -34
  156. package/dist/index156.cjs +1 -1
  157. package/dist/index156.js +8 -8
  158. package/dist/index157.cjs +1 -1
  159. package/dist/index157.js +1 -1
  160. package/dist/index158.cjs +1 -1
  161. package/dist/index158.js +30 -30
  162. package/dist/index159.cjs +1 -1
  163. package/dist/index159.js +21 -21
  164. package/dist/index16.cjs +1 -1
  165. package/dist/index16.js +60 -91
  166. package/dist/index160.cjs +1 -1
  167. package/dist/index160.js +59 -59
  168. package/dist/index161.cjs +1 -1
  169. package/dist/index161.js +2 -2
  170. package/dist/index162.cjs +1 -1
  171. package/dist/index162.js +50 -50
  172. package/dist/index163.cjs +1 -1
  173. package/dist/index163.js +11 -11
  174. package/dist/index164.cjs +1 -1
  175. package/dist/index164.js +1 -1
  176. package/dist/index165.cjs +1 -1
  177. package/dist/index165.js +33 -33
  178. package/dist/index166.cjs +1 -1
  179. package/dist/index166.js +11 -11
  180. package/dist/index167.cjs +1 -1
  181. package/dist/index167.js +2 -2
  182. package/dist/index168.cjs +1 -1
  183. package/dist/index168.js +7 -7
  184. package/dist/index169.cjs +1 -1
  185. package/dist/index169.js +74 -65
  186. package/dist/index17.cjs +1 -1
  187. package/dist/index17.js +122 -15
  188. package/dist/index170.cjs +1 -1
  189. package/dist/index170.js +9 -9
  190. package/dist/index171.cjs +1 -1
  191. package/dist/index171.js +7 -7
  192. package/dist/index172.cjs +1 -1
  193. package/dist/index172.js +12 -12
  194. package/dist/index174.cjs +1 -1
  195. package/dist/index174.js +15 -15
  196. package/dist/index175.cjs +1 -1
  197. package/dist/index175.js +13 -13
  198. package/dist/index176.cjs +1 -1
  199. package/dist/index176.js +2 -2
  200. package/dist/index177.cjs +1 -1
  201. package/dist/index177.js +140 -115
  202. package/dist/index178.cjs +1 -1
  203. package/dist/index178.js +4 -4
  204. package/dist/index179.cjs +1 -1
  205. package/dist/index179.js +47 -47
  206. package/dist/index18.cjs +1 -1
  207. package/dist/index18.js +15 -268
  208. package/dist/index181.cjs +1 -1
  209. package/dist/index181.js +36 -25
  210. package/dist/index183.cjs +1 -1
  211. package/dist/index183.js +4 -4
  212. package/dist/index185.cjs +1 -1
  213. package/dist/index185.js +5 -8
  214. package/dist/index186.cjs +1 -1
  215. package/dist/index186.js +5 -15
  216. package/dist/index187.cjs +1 -1
  217. package/dist/index187.js +5 -20
  218. package/dist/index188.cjs +1 -1
  219. package/dist/index188.js +5 -16
  220. package/dist/index189.cjs +1 -1
  221. package/dist/index189.js +8 -5
  222. package/dist/index19.cjs +1 -1
  223. package/dist/index19.js +11 -281
  224. package/dist/index190.cjs +1 -1
  225. package/dist/index190.js +7 -4
  226. package/dist/index191.cjs +1 -1
  227. package/dist/index191.js +12 -6
  228. package/dist/index192.cjs +1 -1
  229. package/dist/index192.js +6 -5
  230. package/dist/index193.cjs +1 -1
  231. package/dist/index193.js +6 -5
  232. package/dist/index194.cjs +1 -1
  233. package/dist/index194.js +6 -7
  234. package/dist/index195.cjs +1 -1
  235. package/dist/index195.js +10 -68
  236. package/dist/index196.cjs +1 -1
  237. package/dist/index196.js +9 -10
  238. package/dist/index197.cjs +1 -1
  239. package/dist/index197.js +5 -201
  240. package/dist/index198.cjs +1 -1
  241. package/dist/index198.js +7 -123
  242. package/dist/index199.cjs +1 -1
  243. package/dist/index199.js +7 -31
  244. package/dist/index20.cjs +1 -1
  245. package/dist/index20.js +26 -11
  246. package/dist/index200.cjs +1 -1
  247. package/dist/index200.js +66 -17
  248. package/dist/index201.cjs +1 -1
  249. package/dist/index201.js +8 -68
  250. package/dist/index202.cjs +1 -1
  251. package/dist/index202.js +13 -13
  252. package/dist/index203.cjs +1 -1
  253. package/dist/index203.js +6 -6
  254. package/dist/index204.cjs +1 -1
  255. package/dist/index204.js +15 -278
  256. package/dist/index205.cjs +1 -1
  257. package/dist/index205.js +171 -126
  258. package/dist/index206.cjs +1 -1
  259. package/dist/index206.js +21 -19
  260. package/dist/index207.cjs +1 -1
  261. package/dist/index207.js +16 -8
  262. package/dist/index208.cjs +1 -1
  263. package/dist/index208.js +123 -13
  264. package/dist/index209.cjs +1 -1
  265. package/dist/index209.js +19 -7
  266. package/dist/index21.cjs +1 -1
  267. package/dist/index21.js +29 -26
  268. package/dist/index210.cjs +1 -1
  269. package/dist/index210.js +8 -6
  270. package/dist/index211.cjs +1 -1
  271. package/dist/index211.js +9 -9
  272. package/dist/index212.cjs +1 -1
  273. package/dist/index212.js +13 -8
  274. package/dist/index213.cjs +1 -1
  275. package/dist/index213.js +9 -4
  276. package/dist/index214.cjs +1 -1
  277. package/dist/index214.js +9 -6
  278. package/dist/index215.cjs +1 -1
  279. package/dist/index215.js +4 -6
  280. package/dist/index216.cjs +1 -1
  281. package/dist/index216.js +42 -9
  282. package/dist/index217.cjs +1 -1
  283. package/dist/index217.js +386 -8
  284. package/dist/index218.cjs +1 -1
  285. package/dist/index218.js +37 -14
  286. package/dist/index219.cjs +1 -1
  287. package/dist/index219.js +22 -10
  288. package/dist/index22.cjs +1 -1
  289. package/dist/index22.js +367 -59
  290. package/dist/index220.cjs +1 -1
  291. package/dist/index220.js +57 -9
  292. package/dist/index221.cjs +1 -1
  293. package/dist/index221.js +39 -4
  294. package/dist/index222.cjs +1 -1
  295. package/dist/index222.js +116 -35
  296. package/dist/index223.cjs +1 -1
  297. package/dist/index223.js +85 -387
  298. package/dist/index224.cjs +1 -1
  299. package/dist/index224.js +87 -35
  300. package/dist/index225.cjs +1 -1
  301. package/dist/index225.js +116 -18
  302. package/dist/index226.cjs +1 -1
  303. package/dist/index226.js +97 -55
  304. package/dist/index227.cjs +1 -1
  305. package/dist/index227.js +154 -37
  306. package/dist/index228.cjs +1 -1
  307. package/dist/index228.js +76 -121
  308. package/dist/index229.cjs +9 -1
  309. package/dist/index229.js +588 -77
  310. package/dist/index23.cjs +1 -1
  311. package/dist/index23.js +212 -29
  312. package/dist/index230.cjs +1 -1
  313. package/dist/index230.js +64 -68
  314. package/dist/index231.cjs +1 -1
  315. package/dist/index231.js +42 -115
  316. package/dist/index232.cjs +1 -1
  317. package/dist/index232.js +65 -98
  318. package/dist/index233.cjs +1 -1
  319. package/dist/index233.js +48 -149
  320. package/dist/index234.cjs +1 -1
  321. package/dist/index234.js +98 -68
  322. package/dist/index235.cjs +1 -9
  323. package/dist/index235.js +214 -580
  324. package/dist/index236.cjs +1 -1
  325. package/dist/index236.js +29 -66
  326. package/dist/index237.cjs +1 -1
  327. package/dist/index237.js +23 -40
  328. package/dist/index238.cjs +1 -1
  329. package/dist/index238.js +55 -59
  330. package/dist/index239.cjs +1 -1
  331. package/dist/index239.js +419 -46
  332. package/dist/index24.cjs +1 -1
  333. package/dist/index24.js +200 -312
  334. package/dist/index240.cjs +1 -1
  335. package/dist/index240.js +30 -97
  336. package/dist/index241.cjs +1 -1
  337. package/dist/index241.js +205 -196
  338. package/dist/index25.cjs +1 -1
  339. package/dist/index25.js +228 -124
  340. package/dist/index26.cjs +1 -1
  341. package/dist/index26.js +161 -86
  342. package/dist/index27.cjs +1 -1
  343. package/dist/index27.js +89 -143
  344. package/dist/index28.cjs +1 -1
  345. package/dist/index28.js +140 -76
  346. package/dist/index29.cjs +1 -1
  347. package/dist/index29.js +92 -84
  348. package/dist/index30.cjs +1 -1
  349. package/dist/index30.js +84 -26
  350. package/dist/index31.cjs +1 -1
  351. package/dist/index31.js +26 -35
  352. package/dist/index32.cjs +1 -1
  353. package/dist/index32.js +39 -86
  354. package/dist/index33.cjs +1 -1
  355. package/dist/index33.js +84 -231
  356. package/dist/index34.cjs +1 -1
  357. package/dist/index34.js +234 -44
  358. package/dist/index35.cjs +1 -1
  359. package/dist/index35.js +39 -26
  360. package/dist/index36.cjs +1 -1
  361. package/dist/index36.js +30 -14
  362. package/dist/index37.cjs +1 -1
  363. package/dist/index37.js +14 -13
  364. package/dist/index38.cjs +1 -1
  365. package/dist/index38.js +13 -3
  366. package/dist/index39.cjs +1 -1
  367. package/dist/index39.js +4 -87
  368. package/dist/index40.cjs +1 -1
  369. package/dist/index40.js +83 -174
  370. package/dist/index41.cjs +1 -1
  371. package/dist/index41.js +66 -142
  372. package/dist/index42.cjs +1 -1
  373. package/dist/index42.js +217 -62
  374. package/dist/index43.cjs +1 -1
  375. package/dist/index43.js +135 -47
  376. package/dist/index44.cjs +1 -1
  377. package/dist/index44.js +47 -260
  378. package/dist/index45.cjs +1 -1
  379. package/dist/index45.js +273 -8
  380. package/dist/index46.cjs +1 -1
  381. package/dist/index46.js +7 -4
  382. package/dist/index47.cjs +1 -1
  383. package/dist/index47.js +4 -503
  384. package/dist/index48.cjs +1 -1
  385. package/dist/index48.js +472 -177
  386. package/dist/index49.cjs +1 -1
  387. package/dist/index49.js +205 -23
  388. package/dist/index50.cjs +1 -1
  389. package/dist/index50.js +21 -1008
  390. package/dist/index51.cjs +1 -1
  391. package/dist/index51.js +1014 -21
  392. package/dist/index52.cjs +1 -1
  393. package/dist/index52.js +22 -207
  394. package/dist/index53.cjs +1 -1
  395. package/dist/index53.js +181 -130
  396. package/dist/index54.cjs +1 -1
  397. package/dist/index54.js +132 -99
  398. package/dist/index55.cjs +1 -1
  399. package/dist/index55.js +123 -19
  400. package/dist/index56.cjs +1 -1
  401. package/dist/index56.js +17 -79
  402. package/dist/index57.cjs +1 -1
  403. package/dist/index57.js +75 -90
  404. package/dist/index58.cjs +1 -1
  405. package/dist/index58.js +91 -9
  406. package/dist/index59.cjs +1 -1
  407. package/dist/index59.js +12 -91
  408. package/dist/index6.cjs +1 -1
  409. package/dist/index6.js +62 -5
  410. package/dist/index60.cjs +1 -1
  411. package/dist/index60.js +92 -31
  412. package/dist/index61.cjs +1 -1
  413. package/dist/index61.js +29 -208
  414. package/dist/index62.cjs +1 -1
  415. package/dist/index62.js +123 -99
  416. package/dist/index63.cjs +1 -1
  417. package/dist/index63.js +17 -17
  418. package/dist/index64.cjs +1 -1
  419. package/dist/index64.js +28 -28
  420. package/dist/index65.cjs +1 -1
  421. package/dist/index65.js +30 -30
  422. package/dist/index67.cjs +1 -1
  423. package/dist/index67.js +11 -11
  424. package/dist/index7.cjs +1 -1
  425. package/dist/index7.js +22 -28
  426. package/dist/index73.cjs +1 -1
  427. package/dist/index73.js +1 -1
  428. package/dist/index74.cjs +1 -1
  429. package/dist/index74.js +20 -20
  430. package/dist/index75.cjs +1 -1
  431. package/dist/index75.js +7 -7
  432. package/dist/index77.cjs +1 -1
  433. package/dist/index77.js +28 -28
  434. package/dist/index8.cjs +1 -1
  435. package/dist/index8.js +28 -61
  436. package/dist/index9.cjs +1 -1
  437. package/dist/index9.js +60 -15
  438. package/dist/ui/accordion.d.ts.map +1 -1
  439. package/dist/ui/avatar.d.ts.map +1 -1
  440. package/dist/ui/breadcrumb.d.ts.map +1 -1
  441. package/dist/ui/button.d.ts.map +1 -1
  442. package/dist/ui/calendar.d.ts +1 -1
  443. package/dist/ui/calendar.d.ts.map +1 -1
  444. package/dist/ui/command.d.ts +1 -1
  445. package/dist/ui/command.d.ts.map +1 -1
  446. package/dist/ui/context-menu.d.ts.map +1 -1
  447. package/dist/ui/dropdown-menu.d.ts.map +1 -1
  448. package/dist/ui/editable.d.ts.map +1 -1
  449. package/dist/ui/field.d.ts.map +1 -1
  450. package/dist/ui/form.d.ts.map +1 -1
  451. package/dist/ui/input-group.d.ts.map +1 -1
  452. package/dist/ui/input-otp.d.ts +1 -1
  453. package/dist/ui/input-otp.d.ts.map +1 -1
  454. package/dist/ui/item.d.ts.map +1 -1
  455. package/dist/ui/menubar.d.ts.map +1 -1
  456. package/dist/ui/pagination.d.ts +3 -1
  457. package/dist/ui/pagination.d.ts.map +1 -1
  458. package/dist/ui/toggle-group.d.ts +1 -1
  459. package/dist/ui/toggle-group.d.ts.map +1 -1
  460. package/dist/ui/toggle.d.ts +1 -1
  461. package/dist/ui/toggle.d.ts.map +1 -1
  462. package/dist/ui/useBreakpoint.d.ts +0 -4
  463. package/dist/ui/useBreakpoint.d.ts.map +1 -1
  464. package/package.json +1 -1
  465. package/dist/index242.cjs +0 -1
  466. package/dist/index242.js +0 -25
  467. package/dist/index243.cjs +0 -1
  468. package/dist/index243.js +0 -26
  469. package/dist/index244.cjs +0 -1
  470. package/dist/index244.js +0 -63
  471. package/dist/index245.cjs +0 -1
  472. package/dist/index245.js +0 -422
  473. package/dist/index246.cjs +0 -1
  474. package/dist/index246.js +0 -25
  475. package/dist/index247.cjs +0 -1
  476. package/dist/index247.js +0 -209
package/dist/index14.js CHANGED
@@ -1,131 +1,205 @@
1
1
  import { Icons as e } from "./index4.js";
2
- import { resolveCustomTypographyStyle as t } from "./index6.js";
3
- import { renderWithTooltip as n, resolveTooltipContent as r } from "./index9.js";
4
- import { typographyWeightStyles as i } from "./index10.js";
5
- import * as a from "react";
6
- import * as o from "@stylexjs/stylex";
7
- import { jsx as s, jsxs as c } from "react/jsx-runtime";
8
- // src/Typography/Link.tsx
9
- var l = {
2
+ import { resolveCustomTypographyStyle as t } from "./index7.js";
3
+ import { renderWithTooltip as ee, resolveTooltipContent as n } from "./index10.js";
4
+ import { typographyWeightStyles as r } from "./index11.js";
5
+ import * as te from "@stylexjs/stylex";
6
+ import { jsx as i, jsxs as a } from "react/jsx-runtime";
7
+ import * as o from "react";
8
+ // src/Typography/Text.tsx
9
+ var s = {
10
10
  base: {
11
- kMwMTN: "x6gpbkk",
12
- kkrTdU: "x1ypdohk",
13
- k1xSpc: "x3nfvp2",
14
- kGNEyG: "x6s0dn4",
15
- kOIVth: "xvh977a",
16
- k63SB2: "xk50ysn",
17
- kI3sdo: "x1a2a7pz",
18
- k1ekBW: "xz1df8t",
19
- kIyJzY: "xx6bhzk",
20
- k3Woio: "xybh4k3",
21
- kiEn40: "x7s97pk",
11
+ kMwMTN: "x84br7x",
12
+ kLWn49: "x1evy7pa",
22
13
  $$css: !0
23
14
  },
24
15
  sizeXxs: {
25
16
  kGuDYH: "x6phcfz",
17
+ kLWn49: "x1xfvgam",
26
18
  $$css: !0
27
19
  },
28
20
  sizeXs: {
29
21
  kGuDYH: "x2ohwh0",
22
+ kLWn49: "x37zpob",
30
23
  $$css: !0
31
24
  },
32
25
  sizeSm: {
33
26
  kGuDYH: "xboafo0",
27
+ kLWn49: "xfrs9s4",
34
28
  $$css: !0
35
29
  },
36
30
  sizeMd: {
37
31
  kGuDYH: "xkpwil5",
32
+ kLWn49: "x1evy7pa",
38
33
  $$css: !0
39
34
  },
40
35
  sizeLg: {
41
36
  kGuDYH: "x1jchvi3",
37
+ kLWn49: "x1evy7pa",
42
38
  $$css: !0
43
39
  },
44
40
  sizeXl: {
45
41
  kGuDYH: "x1603h9y",
42
+ kLWn49: "xfrs9s4",
46
43
  $$css: !0
47
44
  },
48
45
  sizeXxl: {
49
46
  kGuDYH: "xngnso2",
47
+ kLWn49: "x37zpob",
50
48
  $$css: !0
51
49
  },
52
- always: {
53
- kybGjl: "x1bvjpef",
50
+ typeDefault: {
51
+ kMwMTN: "x84br7x",
54
52
  $$css: !0
55
53
  },
56
- hover: {
57
- kybGjl: "x1hl2dhg",
58
- k67Jb4: "xt0b8zv",
54
+ typeSecondary: {
55
+ kMwMTN: "xw3nh4a",
59
56
  $$css: !0
60
57
  },
61
- none: {
62
- kybGjl: "x1hl2dhg",
58
+ typeMuted: {
59
+ kMwMTN: "xw3nh4a",
63
60
  $$css: !0
64
61
  },
65
- disabled: {
66
- kfzvcC: "x47corl",
67
- kSiTet: "xbyyjgo",
68
- kkrTdU: "x1h6gzvc",
69
- kMwMTN: "xw3nh4a",
62
+ typeSuccess: {
63
+ kMwMTN: "x1vh2qog",
64
+ $$css: !0
65
+ },
66
+ typeWarning: {
67
+ kMwMTN: "x8hp1xd",
68
+ $$css: !0
69
+ },
70
+ typeDanger: {
71
+ kMwMTN: "xuuroe4",
72
+ $$css: !0
73
+ },
74
+ typeInfo: {
75
+ kMwMTN: "x19te5d5",
76
+ $$css: !0
77
+ },
78
+ typeInherit: {
79
+ kMwMTN: "x1heor9g",
80
+ $$css: !0
81
+ },
82
+ strong: {
83
+ k63SB2: "x1xlr1w8",
84
+ $$css: !0
85
+ },
86
+ italic: {
87
+ kKX8nH: "x1k4tb9n",
88
+ $$css: !0
89
+ },
90
+ underline: {
91
+ kybGjl: "x1bvjpef",
92
+ $$css: !0
93
+ },
94
+ delete: {
95
+ kybGjl: "xmqliwb",
96
+ $$css: !0
97
+ },
98
+ keyboard: {
99
+ kMv6JI: "x17yh6e0",
100
+ kGuDYH: "x1dcheo9",
101
+ kaIpWk: "x1q0v2j7",
102
+ kMzoRj: "xmkeg23",
103
+ ksu8eU: "x1y0btm7",
104
+ kVAM5u: "xb30jbz",
105
+ kWkggS: "x1qry0bl",
106
+ kg3NbH: "x18a9hih",
107
+ k8WAf4: "x1dus959",
108
+ kGVxlE: "xe4bbob",
70
109
  $$css: !0
71
110
  },
72
111
  ellipsisSingle: {
112
+ k1xSpc: "x1rg5ohu",
113
+ ks0D6T: "x193iq5w",
114
+ k7Eaqz: "xeuugli",
73
115
  kVQacm: "xb3r6kr",
74
116
  kg5iWk: "xlyipyv",
75
117
  khDVqt: "xuxw1ft",
76
- k1xSpc: "x1rg5ohu",
77
118
  kXLuUW: "x3ajldb",
78
- ks0D6T: "x193iq5w",
79
- k7Eaqz: "xeuugli",
80
119
  $$css: !0
81
120
  }
82
- }, u = {
83
- xxs: l.sizeXxs,
84
- xs: l.sizeXs,
85
- sm: l.sizeSm,
86
- md: l.sizeMd,
87
- lg: l.sizeLg,
88
- xl: l.sizeXl,
89
- xxl: l.sizeXxl
90
- }, d = {
91
- always: l.always,
92
- hover: l.hover,
93
- none: l.none
94
- }, f = a.forwardRef(function({ href: a, size: f = "md", external: p, underline: m = "hover", disabled: h, weight: g, target: _, rel: v, customSize: y, lines: b, rows: x, lineHeight: S, ellipsis: C, tooltip: w, textDecoration: T, textDecorationLine: E, textDecorationStyle: D, textDecorationColor: O, textDecorationThickness: k, textUnderlineOffset: A, as: j = "a", className: M, children: N, sx: P, ...F }, I) {
95
- let L = p ? _ ?? "_blank" : _, R = p ? v ?? "noopener noreferrer" : v, z = b ?? x ?? (typeof C == "object" ? C?.rows : void 0), B = (C === !0 || typeof C == "object" && !!C && !C.rows) && !z, V = u[f] ?? l.sizeMd, H = t({
96
- customSize: y,
97
- lines: b,
98
- rows: x,
99
- lineHeight: S,
100
- ellipsis: C,
101
- textDecoration: T,
102
- textDecorationLine: E,
103
- textDecorationStyle: D,
104
- textDecorationColor: O,
105
- textDecorationThickness: k,
106
- textUnderlineOffset: A
107
- }), U = o.props(l.base, V, d[m], g && i[g], h && l.disabled, B && l.ellipsisSingle, P), W = r(w, C, N), G = /* @__PURE__ */ c(j, {
108
- ref: I,
109
- "data-slot": "typography-link",
110
- "data-size": f,
111
- "data-weight": g,
112
- href: h ? void 0 : a,
113
- target: L,
114
- rel: R,
115
- "aria-disabled": h,
116
- ...U,
121
+ }, c = {
122
+ xxs: s.sizeXxs,
123
+ xs: s.sizeXs,
124
+ sm: s.sizeSm,
125
+ md: s.sizeMd,
126
+ lg: s.sizeLg,
127
+ xl: s.sizeXl,
128
+ xxl: s.sizeXxl
129
+ }, ne = {
130
+ default: s.typeDefault,
131
+ secondary: s.typeSecondary,
132
+ muted: s.typeMuted,
133
+ success: s.typeSuccess,
134
+ warning: s.typeWarning,
135
+ danger: s.typeDanger,
136
+ info: s.typeInfo,
137
+ inherit: s.typeInherit
138
+ }, l = o.forwardRef(function({ type: l = "default", size: u = "md", weight: d = "regular", required: f, strong: p, italic: m, underline: h, delete: g, keyboard: _, customSize: re, lines: v, rows: y, lineHeight: b, ellipsis: x, tooltip: S, textDecoration: C, textDecorationLine: w, textDecorationStyle: T, textDecorationColor: E, textDecorationThickness: D, textUnderlineOffset: O, color: k, margin: A, m: j, marginTop: M, mt: N, marginBottom: P, mb: F, marginLeft: I, ml: L, marginRight: R, mr: ie, marginInline: z, mx: B, marginBlock: V, my: H, letterSpacing: U, copyable: W, as: G, className: K, children: q, sx: J, ...Y }, ae) {
139
+ let [X, Z] = o.useState(!1), Q = "span";
140
+ _ ? Q = "kbd" : p ? Q = "strong" : m ? Q = "em" : g && (Q = "del");
141
+ let oe = G || Q, se = v ?? y ?? (typeof x == "object" ? x?.rows : void 0), ce = (x === !0 || typeof x == "object" && !!x && !x.rows) && !se, le = c[u] ?? s.sizeMd, ue = t({
142
+ customSize: re,
143
+ color: k,
144
+ lines: v,
145
+ rows: y,
146
+ lineHeight: b,
147
+ ellipsis: x,
148
+ textDecoration: C,
149
+ textDecorationLine: w,
150
+ textDecorationStyle: T,
151
+ textDecorationColor: E,
152
+ textDecorationThickness: D,
153
+ textUnderlineOffset: O,
154
+ margin: A,
155
+ m: j,
156
+ marginTop: M,
157
+ mt: N,
158
+ marginBottom: P,
159
+ mb: F,
160
+ marginLeft: I,
161
+ ml: L,
162
+ marginRight: R,
163
+ mr: ie,
164
+ marginInline: z,
165
+ mx: B,
166
+ marginBlock: V,
167
+ my: H,
168
+ letterSpacing: U
169
+ }), de = async () => {
170
+ if (typeof q == "string") try {
171
+ await navigator.clipboard.writeText(q), Z(!0), setTimeout(() => Z(!1), 2e3);
172
+ } catch {}
173
+ }, $ = te.props(s.base, le, ne[l], d && r[d], p && s.strong, m && s.italic, h && !C && !w && s.underline, g && !C && !w && s.delete, _ && s.keyboard, ce && s.ellipsisSingle, J), fe = n(S, x, q), pe = /* @__PURE__ */ a(oe, {
174
+ ref: ae,
175
+ "data-slot": "typography-text",
176
+ "data-type": l,
177
+ "data-size": u,
178
+ "data-weight": d,
179
+ ...$,
117
180
  style: {
118
- ...U.style,
119
- ...H
181
+ ...$.style,
182
+ ...ue
120
183
  },
121
- className: M ? `${U.className || ""} ${M}`.trim() : U.className,
122
- ...F,
123
- children: [/* @__PURE__ */ s("span", { children: N }), p && /* @__PURE__ */ s(e.ArrowRight, {
124
- className: "x1jw3ynk xvle69y x1us6l5c",
125
- style: { transform: "rotate(-45deg)" }
126
- })]
184
+ className: K ? `${$.className || ""} ${K}`.trim() : $.className,
185
+ ...Y,
186
+ children: [
187
+ q,
188
+ f && /* @__PURE__ */ i("span", {
189
+ "aria-hidden": "true",
190
+ className: "xuuroe4 x4aigyd x1rg5ohu xo5v014 x1s688f x87ps6o",
191
+ children: "*"
192
+ }),
193
+ W && /* @__PURE__ */ i("button", {
194
+ type: "button",
195
+ onClick: de,
196
+ className: "xjyslct xc342km xjbqb8w xw3nh4a x1ypdohk xo8u9x4 x4aigyd x1q0v2j7 x3nfvp2 x6s0dn4 xl56j7k xxymvpz x1a2a7pz x1gbuem2 xx6bhzk x8aud5w x9p52ec",
197
+ "aria-label": X ? "Copied" : "Copy text",
198
+ children: i(X ? e.Check : e.Copy, { className: "x1xvt488 xf08kfj" })
199
+ })
200
+ ]
127
201
  });
128
- return n(G, W);
202
+ return ee(pe, fe);
129
203
  });
130
- f.displayName = "Typography.Link";
131
- export { f as Link };
204
+ l.displayName = "Typography.Text";
205
+ export { l as Text };
package/dist/index140.cjs CHANGED
@@ -1 +1 @@
1
- "use client";const e=require("./index2.cjs"),t=require("./index45.cjs"),n=require("./index139.cjs");let r=require("react");r=e.__toESM(r,1);let i=require("@stylexjs/stylex");i=e.__toESM(i,1);let a=require("lucide-react"),o=require("react/jsx-runtime"),s=require("react/compiler-runtime");var c={panelGroup:{k1xSpc:`x78zum5`,kZKoxP:`x5yr21d`,kzqmXN:`xh8yej3`,$$css:!0},handle:{kVAEAm:`x1n2onr6`,k1xSpc:`x78zum5`,kzqmXN:`x1i1rx1s`,kGNEyG:`x6s0dn4`,kjj79g:`xl56j7k`,kWkggS:`xwefxjc`,kI3sdo:`x1a2a7pz`,$$css:!0}};function l(e){let r=(0,s.c)(16),a,l,u;r[0]===e?(a=r[1],l=r[2],u=r[3]):({className:a,sx:u,...l}=e,r[0]=e,r[1]=a,r[2]=l,r[3]=u);let d,f,p,m;if(r[4]!==a||r[5]!==u){let e=i.props(c.panelGroup,u);d=n.PanelGroup,f=`resizable-panel-group`,p=e,m=t.cn(e.className,a),r[4]=a,r[5]=u,r[6]=d,r[7]=f,r[8]=p,r[9]=m}else d=r[6],f=r[7],p=r[8],m=r[9];let h;return r[10]!==d||r[11]!==l||r[12]!==f||r[13]!==p||r[14]!==m?(h=(0,o.jsx)(d,{"data-slot":f,...p,className:m,...l}),r[10]=d,r[11]=l,r[12]=f,r[13]=p,r[14]=m,r[15]=h):h=r[15],h}function u(e){let t=(0,s.c)(4),r;t[0]===e?r=t[1]:({...r}=e,t[0]=e,t[1]=r);let i;return t[2]===r?i=t[3]:(i=(0,o.jsx)(n.Panel,{"data-slot":`resizable-panel`,...r}),t[2]=r,t[3]=i),i}function d(e){let r=(0,s.c)(20),l,u,d,f;r[0]===e?(l=r[1],u=r[2],d=r[3],f=r[4]):({withHandle:f,className:l,sx:d,...u}=e,r[0]=e,r[1]=l,r[2]=u,r[3]=d,r[4]=f);let p,m,h,g;if(r[5]!==l||r[6]!==d){let e=i.props(c.handle,d);p=n.PanelResizeHandle,m=`resizable-handle`,h=e,g=t.cn(e.className,l),r[5]=l,r[6]=d,r[7]=p,r[8]=m,r[9]=h,r[10]=g}else p=r[7],m=r[8],h=r[9],g=r[10];let _;r[11]===f?_=r[12]:(_=f&&(0,o.jsx)(`div`,{className:`x1n327nk x78zum5 x1l36t39 x1jw3ynk x6s0dn4 xl56j7k x1q0v2j7 xmkeg23 x1y0btm7 xb30jbz x1mlyrtw`,children:(0,o.jsx)(a.GripVerticalIcon,{className:`x1e7hgle x1qa65zt`})}),r[11]=f,r[12]=_);let v;return r[13]!==p||r[14]!==u||r[15]!==m||r[16]!==h||r[17]!==g||r[18]!==_?(v=(0,o.jsx)(p,{"data-slot":m,...h,className:g,...u,children:_}),r[13]=p,r[14]=u,r[15]=m,r[16]=h,r[17]=g,r[18]=_,r[19]=v):v=r[19],v}exports.ResizableHandle=d,exports.ResizablePanel=u,exports.ResizablePanelGroup=l;
1
+ "use client";const e=require("./index2.cjs"),t=require("./index46.cjs"),n=require("./index139.cjs");let r=require("@stylexjs/stylex");r=e.__toESM(r,1);let i=require("lucide-react"),a=require("react/jsx-runtime"),o=require("react");o=e.__toESM(o,1);let s=require("react/compiler-runtime");var c={panelGroup:{k1xSpc:`x78zum5`,kZKoxP:`x5yr21d`,kzqmXN:`xh8yej3`,$$css:!0},handle:{kVAEAm:`x1n2onr6`,k1xSpc:`x78zum5`,kzqmXN:`x1i1rx1s`,kGNEyG:`x6s0dn4`,kjj79g:`xl56j7k`,kWkggS:`xwefxjc`,kI3sdo:`x1a2a7pz`,$$css:!0}};function l(e){let i=(0,s.c)(16),o,l,u;i[0]===e?(o=i[1],l=i[2],u=i[3]):({className:o,sx:u,...l}=e,i[0]=e,i[1]=o,i[2]=l,i[3]=u);let d,f,p,m;if(i[4]!==o||i[5]!==u){let e=r.props(c.panelGroup,u);d=n.PanelGroup,f=`resizable-panel-group`,p=e,m=t.cn(e.className,o),i[4]=o,i[5]=u,i[6]=d,i[7]=f,i[8]=p,i[9]=m}else d=i[6],f=i[7],p=i[8],m=i[9];let h;return i[10]!==d||i[11]!==l||i[12]!==f||i[13]!==p||i[14]!==m?(h=(0,a.jsx)(d,{"data-slot":f,...p,className:m,...l}),i[10]=d,i[11]=l,i[12]=f,i[13]=p,i[14]=m,i[15]=h):h=i[15],h}function u(e){let t=(0,s.c)(4),r;t[0]===e?r=t[1]:({...r}=e,t[0]=e,t[1]=r);let i;return t[2]===r?i=t[3]:(i=(0,a.jsx)(n.Panel,{"data-slot":`resizable-panel`,...r}),t[2]=r,t[3]=i),i}function d(e){let o=(0,s.c)(20),l,u,d,f;o[0]===e?(l=o[1],u=o[2],d=o[3],f=o[4]):({withHandle:f,className:l,sx:d,...u}=e,o[0]=e,o[1]=l,o[2]=u,o[3]=d,o[4]=f);let p,m,h,g;if(o[5]!==l||o[6]!==d){let e=r.props(c.handle,d);p=n.PanelResizeHandle,m=`resizable-handle`,h=e,g=t.cn(e.className,l),o[5]=l,o[6]=d,o[7]=p,o[8]=m,o[9]=h,o[10]=g}else p=o[7],m=o[8],h=o[9],g=o[10];let _;o[11]===f?_=o[12]:(_=f&&(0,a.jsx)(`div`,{className:`x1n327nk x78zum5 x1l36t39 x1jw3ynk x6s0dn4 xl56j7k x1q0v2j7 xmkeg23 x1y0btm7 xb30jbz x1mlyrtw`,children:(0,a.jsx)(i.GripVerticalIcon,{className:`x1e7hgle x1qa65zt`})}),o[11]=f,o[12]=_);let v;return o[13]!==p||o[14]!==u||o[15]!==m||o[16]!==h||o[17]!==g||o[18]!==_?(v=(0,a.jsx)(p,{"data-slot":m,...h,className:g,...u,children:_}),o[13]=p,o[14]=u,o[15]=m,o[16]=h,o[17]=g,o[18]=_,o[19]=v):v=o[19],v}exports.ResizableHandle=d,exports.ResizablePanel=u,exports.ResizablePanelGroup=l;
package/dist/index140.js CHANGED
@@ -1,10 +1,10 @@
1
1
  "use client";
2
- import { cn as e } from "./index45.js";
2
+ import { cn as e } from "./index46.js";
3
3
  import { Panel as t, PanelGroup as n, PanelResizeHandle as r } from "./index139.js";
4
- import "react";
5
4
  import * as i from "@stylexjs/stylex";
6
5
  import { GripVerticalIcon as a } from "lucide-react";
7
6
  import { jsx as o } from "react/jsx-runtime";
7
+ import "react";
8
8
  import { c as s } from "react/compiler-runtime";
9
9
  // src/ui/resizable.tsx
10
10
  var c = {
package/dist/index141.cjs CHANGED
@@ -1 +1 @@
1
- const e=require("./index2.cjs"),t=require("./index61.cjs"),n=require("./index106.cjs"),r=require("./index118.cjs");let i=require("react"),a=e.__toESM(i,1);i=e.__toESM(i);let o=require("react/jsx-runtime"),s=require("react/compiler-runtime");var c=a.createContext({isDesktop:!0});function l(){return a.useContext(c)}function u({children:e,open:i,defaultOpen:s,onOpenChange:l,breakpoint:u=`md`,forceMode:d}){let f=r.useBreakpoint(),p=d===`desktop`||d!==`mobile`&&!!f[u],m=a.useMemo(()=>({isDesktop:p}),[p]);return p?(0,o.jsx)(c.Provider,{value:m,children:(0,o.jsx)(t.Dialog,{open:i,defaultOpen:s,onOpenChange:l,children:e})}):(0,o.jsx)(c.Provider,{value:m,children:(0,o.jsx)(n.Drawer,{open:i,defaultOpen:s,onOpenChange:l,children:e})})}function d(e){let r=(0,s.c)(12),i,a,c;r[0]===e?(i=r[1],a=r[2],c=r[3]):({children:a,asChild:i,...c}=e,r[0]=e,r[1]=i,r[2]=a,r[3]=c);let{isDesktop:u}=l();if(u){let e;return r[4]!==i||r[5]!==a||r[6]!==c?(e=(0,o.jsx)(t.DialogTrigger,{asChild:i,...c,children:a}),r[4]=i,r[5]=a,r[6]=c,r[7]=e):e=r[7],e}let d;return r[8]!==i||r[9]!==a||r[10]!==c?(d=(0,o.jsx)(n.DrawerTrigger,{asChild:i,...c,children:a}),r[8]=i,r[9]=a,r[10]=c,r[11]=d):d=r[11],d}function f(e){let r=(0,s.c)(12),i,a,c;r[0]===e?(i=r[1],a=r[2],c=r[3]):({children:a,asChild:i,...c}=e,r[0]=e,r[1]=i,r[2]=a,r[3]=c);let{isDesktop:u}=l();if(u){let e;return r[4]!==i||r[5]!==a||r[6]!==c?(e=(0,o.jsx)(t.DialogClose,{asChild:i,...c,children:a}),r[4]=i,r[5]=a,r[6]=c,r[7]=e):e=r[7],e}let d;return r[8]!==i||r[9]!==a||r[10]!==c?(d=(0,o.jsx)(n.DrawerClose,{asChild:i,...c,children:a}),r[8]=i,r[9]=a,r[10]=c,r[11]=d):d=r[11],d}function p(e){let r=(0,s.c)(15),i,a,c,u;r[0]===e?(i=r[1],a=r[2],c=r[3],u=r[4]):({children:i,sx:u,className:a,...c}=e,r[0]=e,r[1]=i,r[2]=a,r[3]=c,r[4]=u);let{isDesktop:d}=l();if(d){let e;return r[5]!==i||r[6]!==a||r[7]!==c||r[8]!==u?(e=(0,o.jsx)(t.DialogContent,{sx:u,className:a,...c,children:i}),r[5]=i,r[6]=a,r[7]=c,r[8]=u,r[9]=e):e=r[9],e}let f;return r[10]!==i||r[11]!==a||r[12]!==c||r[13]!==u?(f=(0,o.jsx)(n.DrawerContent,{sx:u,className:a,...c,children:i}),r[10]=i,r[11]=a,r[12]=c,r[13]=u,r[14]=f):f=r[14],f}function m(e){let r=(0,s.c)(15),i,a,c,u;r[0]===e?(i=r[1],a=r[2],c=r[3],u=r[4]):({children:i,sx:u,className:a,...c}=e,r[0]=e,r[1]=i,r[2]=a,r[3]=c,r[4]=u);let{isDesktop:d}=l();if(d){let e;return r[5]!==i||r[6]!==a||r[7]!==c||r[8]!==u?(e=(0,o.jsx)(t.DialogHeader,{sx:u,className:a,...c,children:i}),r[5]=i,r[6]=a,r[7]=c,r[8]=u,r[9]=e):e=r[9],e}let f;return r[10]!==i||r[11]!==a||r[12]!==c||r[13]!==u?(f=(0,o.jsx)(n.DrawerHeader,{sx:u,className:a,...c,children:i}),r[10]=i,r[11]=a,r[12]=c,r[13]=u,r[14]=f):f=r[14],f}function h(e){let r=(0,s.c)(15),i,a,c,u;r[0]===e?(i=r[1],a=r[2],c=r[3],u=r[4]):({children:i,sx:u,className:a,...c}=e,r[0]=e,r[1]=i,r[2]=a,r[3]=c,r[4]=u);let{isDesktop:d}=l();if(d){let e;return r[5]!==i||r[6]!==a||r[7]!==c||r[8]!==u?(e=(0,o.jsx)(t.DialogFooter,{sx:u,className:a,...c,children:i}),r[5]=i,r[6]=a,r[7]=c,r[8]=u,r[9]=e):e=r[9],e}let f;return r[10]!==i||r[11]!==a||r[12]!==c||r[13]!==u?(f=(0,o.jsx)(n.DrawerFooter,{sx:u,className:a,...c,children:i}),r[10]=i,r[11]=a,r[12]=c,r[13]=u,r[14]=f):f=r[14],f}function g(e){let r=(0,s.c)(15),i,a,c,u;r[0]===e?(i=r[1],a=r[2],c=r[3],u=r[4]):({children:i,sx:u,className:a,...c}=e,r[0]=e,r[1]=i,r[2]=a,r[3]=c,r[4]=u);let{isDesktop:d}=l();if(d){let e;return r[5]!==i||r[6]!==a||r[7]!==c||r[8]!==u?(e=(0,o.jsx)(t.DialogTitle,{sx:u,className:a,...c,children:i}),r[5]=i,r[6]=a,r[7]=c,r[8]=u,r[9]=e):e=r[9],e}let f;return r[10]!==i||r[11]!==a||r[12]!==c||r[13]!==u?(f=(0,o.jsx)(n.DrawerTitle,{sx:u,className:a,...c,children:i}),r[10]=i,r[11]=a,r[12]=c,r[13]=u,r[14]=f):f=r[14],f}function _(e){let r=(0,s.c)(15),i,a,c,u;r[0]===e?(i=r[1],a=r[2],c=r[3],u=r[4]):({children:i,sx:u,className:a,...c}=e,r[0]=e,r[1]=i,r[2]=a,r[3]=c,r[4]=u);let{isDesktop:d}=l();if(d){let e;return r[5]!==i||r[6]!==a||r[7]!==c||r[8]!==u?(e=(0,o.jsx)(t.DialogDescription,{sx:u,className:a,...c,children:i}),r[5]=i,r[6]=a,r[7]=c,r[8]=u,r[9]=e):e=r[9],e}let f;return r[10]!==i||r[11]!==a||r[12]!==c||r[13]!==u?(f=(0,o.jsx)(n.DrawerDescription,{sx:u,className:a,...c,children:i}),r[10]=i,r[11]=a,r[12]=c,r[13]=u,r[14]=f):f=r[14],f}exports.ResponsiveDialog=u,exports.ResponsiveDialogClose=f,exports.ResponsiveDialogContent=p,exports.ResponsiveDialogDescription=_,exports.ResponsiveDialogFooter=h,exports.ResponsiveDialogHeader=m,exports.ResponsiveDialogTitle=g,exports.ResponsiveDialogTrigger=d,exports.useResponsiveDialogContext=l;
1
+ const e=require("./index2.cjs"),t=require("./index23.cjs"),n=require("./index106.cjs"),r=require("./index118.cjs");let i=require("react/jsx-runtime"),a=require("react"),o=e.__toESM(a,1);a=e.__toESM(a);let s=require("react/compiler-runtime");var c=o.createContext({isDesktop:!0});function l(){return o.useContext(c)}function u({children:e,open:a,defaultOpen:s,onOpenChange:l,breakpoint:u=`md`,forceMode:d}){let f=r.useBreakpoint(),p=d===`desktop`||d!==`mobile`&&!!f[u],m=o.useMemo(()=>({isDesktop:p}),[p]);return p?(0,i.jsx)(c.Provider,{value:m,children:(0,i.jsx)(t.Dialog,{open:a,defaultOpen:s,onOpenChange:l,children:e})}):(0,i.jsx)(c.Provider,{value:m,children:(0,i.jsx)(n.Drawer,{open:a,defaultOpen:s,onOpenChange:l,children:e})})}function d(e){let r=(0,s.c)(12),a,o,c;r[0]===e?(a=r[1],o=r[2],c=r[3]):({children:o,asChild:a,...c}=e,r[0]=e,r[1]=a,r[2]=o,r[3]=c);let{isDesktop:u}=l();if(u){let e;return r[4]!==a||r[5]!==o||r[6]!==c?(e=(0,i.jsx)(t.DialogTrigger,{asChild:a,...c,children:o}),r[4]=a,r[5]=o,r[6]=c,r[7]=e):e=r[7],e}let d;return r[8]!==a||r[9]!==o||r[10]!==c?(d=(0,i.jsx)(n.DrawerTrigger,{asChild:a,...c,children:o}),r[8]=a,r[9]=o,r[10]=c,r[11]=d):d=r[11],d}function f(e){let r=(0,s.c)(12),a,o,c;r[0]===e?(a=r[1],o=r[2],c=r[3]):({children:o,asChild:a,...c}=e,r[0]=e,r[1]=a,r[2]=o,r[3]=c);let{isDesktop:u}=l();if(u){let e;return r[4]!==a||r[5]!==o||r[6]!==c?(e=(0,i.jsx)(t.DialogClose,{asChild:a,...c,children:o}),r[4]=a,r[5]=o,r[6]=c,r[7]=e):e=r[7],e}let d;return r[8]!==a||r[9]!==o||r[10]!==c?(d=(0,i.jsx)(n.DrawerClose,{asChild:a,...c,children:o}),r[8]=a,r[9]=o,r[10]=c,r[11]=d):d=r[11],d}function p(e){let r=(0,s.c)(15),a,o,c,u;r[0]===e?(a=r[1],o=r[2],c=r[3],u=r[4]):({children:a,sx:u,className:o,...c}=e,r[0]=e,r[1]=a,r[2]=o,r[3]=c,r[4]=u);let{isDesktop:d}=l();if(d){let e;return r[5]!==a||r[6]!==o||r[7]!==c||r[8]!==u?(e=(0,i.jsx)(t.DialogContent,{sx:u,className:o,...c,children:a}),r[5]=a,r[6]=o,r[7]=c,r[8]=u,r[9]=e):e=r[9],e}let f;return r[10]!==a||r[11]!==o||r[12]!==c||r[13]!==u?(f=(0,i.jsx)(n.DrawerContent,{sx:u,className:o,...c,children:a}),r[10]=a,r[11]=o,r[12]=c,r[13]=u,r[14]=f):f=r[14],f}function m(e){let r=(0,s.c)(15),a,o,c,u;r[0]===e?(a=r[1],o=r[2],c=r[3],u=r[4]):({children:a,sx:u,className:o,...c}=e,r[0]=e,r[1]=a,r[2]=o,r[3]=c,r[4]=u);let{isDesktop:d}=l();if(d){let e;return r[5]!==a||r[6]!==o||r[7]!==c||r[8]!==u?(e=(0,i.jsx)(t.DialogHeader,{sx:u,className:o,...c,children:a}),r[5]=a,r[6]=o,r[7]=c,r[8]=u,r[9]=e):e=r[9],e}let f;return r[10]!==a||r[11]!==o||r[12]!==c||r[13]!==u?(f=(0,i.jsx)(n.DrawerHeader,{sx:u,className:o,...c,children:a}),r[10]=a,r[11]=o,r[12]=c,r[13]=u,r[14]=f):f=r[14],f}function h(e){let r=(0,s.c)(15),a,o,c,u;r[0]===e?(a=r[1],o=r[2],c=r[3],u=r[4]):({children:a,sx:u,className:o,...c}=e,r[0]=e,r[1]=a,r[2]=o,r[3]=c,r[4]=u);let{isDesktop:d}=l();if(d){let e;return r[5]!==a||r[6]!==o||r[7]!==c||r[8]!==u?(e=(0,i.jsx)(t.DialogFooter,{sx:u,className:o,...c,children:a}),r[5]=a,r[6]=o,r[7]=c,r[8]=u,r[9]=e):e=r[9],e}let f;return r[10]!==a||r[11]!==o||r[12]!==c||r[13]!==u?(f=(0,i.jsx)(n.DrawerFooter,{sx:u,className:o,...c,children:a}),r[10]=a,r[11]=o,r[12]=c,r[13]=u,r[14]=f):f=r[14],f}function g(e){let r=(0,s.c)(15),a,o,c,u;r[0]===e?(a=r[1],o=r[2],c=r[3],u=r[4]):({children:a,sx:u,className:o,...c}=e,r[0]=e,r[1]=a,r[2]=o,r[3]=c,r[4]=u);let{isDesktop:d}=l();if(d){let e;return r[5]!==a||r[6]!==o||r[7]!==c||r[8]!==u?(e=(0,i.jsx)(t.DialogTitle,{sx:u,className:o,...c,children:a}),r[5]=a,r[6]=o,r[7]=c,r[8]=u,r[9]=e):e=r[9],e}let f;return r[10]!==a||r[11]!==o||r[12]!==c||r[13]!==u?(f=(0,i.jsx)(n.DrawerTitle,{sx:u,className:o,...c,children:a}),r[10]=a,r[11]=o,r[12]=c,r[13]=u,r[14]=f):f=r[14],f}function _(e){let r=(0,s.c)(15),a,o,c,u;r[0]===e?(a=r[1],o=r[2],c=r[3],u=r[4]):({children:a,sx:u,className:o,...c}=e,r[0]=e,r[1]=a,r[2]=o,r[3]=c,r[4]=u);let{isDesktop:d}=l();if(d){let e;return r[5]!==a||r[6]!==o||r[7]!==c||r[8]!==u?(e=(0,i.jsx)(t.DialogDescription,{sx:u,className:o,...c,children:a}),r[5]=a,r[6]=o,r[7]=c,r[8]=u,r[9]=e):e=r[9],e}let f;return r[10]!==a||r[11]!==o||r[12]!==c||r[13]!==u?(f=(0,i.jsx)(n.DrawerDescription,{sx:u,className:o,...c,children:a}),r[10]=a,r[11]=o,r[12]=c,r[13]=u,r[14]=f):f=r[14],f}exports.ResponsiveDialog=u,exports.ResponsiveDialogClose=f,exports.ResponsiveDialogContent=p,exports.ResponsiveDialogDescription=_,exports.ResponsiveDialogFooter=h,exports.ResponsiveDialogHeader=m,exports.ResponsiveDialogTitle=g,exports.ResponsiveDialogTrigger=d,exports.useResponsiveDialogContext=l;
package/dist/index141.js CHANGED
@@ -1,27 +1,27 @@
1
- import { Dialog as e, DialogClose as t, DialogContent as n, DialogDescription as r, DialogFooter as i, DialogHeader as a, DialogTitle as o, DialogTrigger as s } from "./index61.js";
1
+ import { Dialog as e, DialogClose as t, DialogContent as n, DialogDescription as r, DialogFooter as i, DialogHeader as a, DialogTitle as o, DialogTrigger as s } from "./index23.js";
2
2
  import { Drawer as c, DrawerClose as l, DrawerContent as u, DrawerDescription as d, DrawerFooter as f, DrawerHeader as p, DrawerTitle as m, DrawerTrigger as h } from "./index106.js";
3
3
  import { useBreakpoint as g } from "./index118.js";
4
- import * as _ from "react";
5
- import { jsx as v } from "react/jsx-runtime";
4
+ import { jsx as _ } from "react/jsx-runtime";
5
+ import * as v from "react";
6
6
  import { c as y } from "react/compiler-runtime";
7
7
  // src/ui/responsive-dialog.tsx
8
- var b = _.createContext({ isDesktop: !0 });
8
+ var b = v.createContext({ isDesktop: !0 });
9
9
  function x() {
10
- return _.useContext(b);
10
+ return v.useContext(b);
11
11
  }
12
12
  function S({ children: t, open: n, defaultOpen: r, onOpenChange: i, breakpoint: a = "md", forceMode: o }) {
13
- let s = g(), l = o === "desktop" || o !== "mobile" && !!s[a], u = _.useMemo(() => ({ isDesktop: l }), [l]);
14
- return l ? /* @__PURE__ */ v(b.Provider, {
13
+ let s = g(), l = o === "desktop" || o !== "mobile" && !!s[a], u = v.useMemo(() => ({ isDesktop: l }), [l]);
14
+ return l ? /* @__PURE__ */ _(b.Provider, {
15
15
  value: u,
16
- children: /* @__PURE__ */ v(e, {
16
+ children: /* @__PURE__ */ _(e, {
17
17
  open: n,
18
18
  defaultOpen: r,
19
19
  onOpenChange: i,
20
20
  children: t
21
21
  })
22
- }) : /* @__PURE__ */ v(b.Provider, {
22
+ }) : /* @__PURE__ */ _(b.Provider, {
23
23
  value: u,
24
- children: /* @__PURE__ */ v(c, {
24
+ children: /* @__PURE__ */ _(c, {
25
25
  open: n,
26
26
  defaultOpen: r,
27
27
  onOpenChange: i,
@@ -35,14 +35,14 @@ function C(e) {
35
35
  let { isDesktop: a } = x();
36
36
  if (a) {
37
37
  let e;
38
- return t[4] !== n || t[5] !== r || t[6] !== i ? (e = /* @__PURE__ */ v(s, {
38
+ return t[4] !== n || t[5] !== r || t[6] !== i ? (e = /* @__PURE__ */ _(s, {
39
39
  asChild: n,
40
40
  ...i,
41
41
  children: r
42
42
  }), t[4] = n, t[5] = r, t[6] = i, t[7] = e) : e = t[7], e;
43
43
  }
44
44
  let o;
45
- return t[8] !== n || t[9] !== r || t[10] !== i ? (o = /* @__PURE__ */ v(h, {
45
+ return t[8] !== n || t[9] !== r || t[10] !== i ? (o = /* @__PURE__ */ _(h, {
46
46
  asChild: n,
47
47
  ...i,
48
48
  children: r
@@ -54,14 +54,14 @@ function w(e) {
54
54
  let { isDesktop: o } = x();
55
55
  if (o) {
56
56
  let e;
57
- return n[4] !== r || n[5] !== i || n[6] !== a ? (e = /* @__PURE__ */ v(t, {
57
+ return n[4] !== r || n[5] !== i || n[6] !== a ? (e = /* @__PURE__ */ _(t, {
58
58
  asChild: r,
59
59
  ...a,
60
60
  children: i
61
61
  }), n[4] = r, n[5] = i, n[6] = a, n[7] = e) : e = n[7], e;
62
62
  }
63
63
  let s;
64
- return n[8] !== r || n[9] !== i || n[10] !== a ? (s = /* @__PURE__ */ v(l, {
64
+ return n[8] !== r || n[9] !== i || n[10] !== a ? (s = /* @__PURE__ */ _(l, {
65
65
  asChild: r,
66
66
  ...a,
67
67
  children: i
@@ -73,7 +73,7 @@ function T(e) {
73
73
  let { isDesktop: s } = x();
74
74
  if (s) {
75
75
  let e;
76
- return t[5] !== r || t[6] !== i || t[7] !== a || t[8] !== o ? (e = /* @__PURE__ */ v(n, {
76
+ return t[5] !== r || t[6] !== i || t[7] !== a || t[8] !== o ? (e = /* @__PURE__ */ _(n, {
77
77
  sx: o,
78
78
  className: i,
79
79
  ...a,
@@ -81,7 +81,7 @@ function T(e) {
81
81
  }), t[5] = r, t[6] = i, t[7] = a, t[8] = o, t[9] = e) : e = t[9], e;
82
82
  }
83
83
  let c;
84
- return t[10] !== r || t[11] !== i || t[12] !== a || t[13] !== o ? (c = /* @__PURE__ */ v(u, {
84
+ return t[10] !== r || t[11] !== i || t[12] !== a || t[13] !== o ? (c = /* @__PURE__ */ _(u, {
85
85
  sx: o,
86
86
  className: i,
87
87
  ...a,
@@ -94,7 +94,7 @@ function E(e) {
94
94
  let { isDesktop: s } = x();
95
95
  if (s) {
96
96
  let e;
97
- return t[5] !== n || t[6] !== r || t[7] !== i || t[8] !== o ? (e = /* @__PURE__ */ v(a, {
97
+ return t[5] !== n || t[6] !== r || t[7] !== i || t[8] !== o ? (e = /* @__PURE__ */ _(a, {
98
98
  sx: o,
99
99
  className: r,
100
100
  ...i,
@@ -102,7 +102,7 @@ function E(e) {
102
102
  }), t[5] = n, t[6] = r, t[7] = i, t[8] = o, t[9] = e) : e = t[9], e;
103
103
  }
104
104
  let c;
105
- return t[10] !== n || t[11] !== r || t[12] !== i || t[13] !== o ? (c = /* @__PURE__ */ v(p, {
105
+ return t[10] !== n || t[11] !== r || t[12] !== i || t[13] !== o ? (c = /* @__PURE__ */ _(p, {
106
106
  sx: o,
107
107
  className: r,
108
108
  ...i,
@@ -115,7 +115,7 @@ function D(e) {
115
115
  let { isDesktop: s } = x();
116
116
  if (s) {
117
117
  let e;
118
- return t[5] !== n || t[6] !== r || t[7] !== a || t[8] !== o ? (e = /* @__PURE__ */ v(i, {
118
+ return t[5] !== n || t[6] !== r || t[7] !== a || t[8] !== o ? (e = /* @__PURE__ */ _(i, {
119
119
  sx: o,
120
120
  className: r,
121
121
  ...a,
@@ -123,7 +123,7 @@ function D(e) {
123
123
  }), t[5] = n, t[6] = r, t[7] = a, t[8] = o, t[9] = e) : e = t[9], e;
124
124
  }
125
125
  let c;
126
- return t[10] !== n || t[11] !== r || t[12] !== a || t[13] !== o ? (c = /* @__PURE__ */ v(f, {
126
+ return t[10] !== n || t[11] !== r || t[12] !== a || t[13] !== o ? (c = /* @__PURE__ */ _(f, {
127
127
  sx: o,
128
128
  className: r,
129
129
  ...a,
@@ -136,7 +136,7 @@ function O(e) {
136
136
  let { isDesktop: s } = x();
137
137
  if (s) {
138
138
  let e;
139
- return t[5] !== n || t[6] !== r || t[7] !== i || t[8] !== a ? (e = /* @__PURE__ */ v(o, {
139
+ return t[5] !== n || t[6] !== r || t[7] !== i || t[8] !== a ? (e = /* @__PURE__ */ _(o, {
140
140
  sx: a,
141
141
  className: r,
142
142
  ...i,
@@ -144,7 +144,7 @@ function O(e) {
144
144
  }), t[5] = n, t[6] = r, t[7] = i, t[8] = a, t[9] = e) : e = t[9], e;
145
145
  }
146
146
  let c;
147
- return t[10] !== n || t[11] !== r || t[12] !== i || t[13] !== a ? (c = /* @__PURE__ */ v(m, {
147
+ return t[10] !== n || t[11] !== r || t[12] !== i || t[13] !== a ? (c = /* @__PURE__ */ _(m, {
148
148
  sx: a,
149
149
  className: r,
150
150
  ...i,
@@ -157,7 +157,7 @@ function k(e) {
157
157
  let { isDesktop: s } = x();
158
158
  if (s) {
159
159
  let e;
160
- return t[5] !== n || t[6] !== i || t[7] !== a || t[8] !== o ? (e = /* @__PURE__ */ v(r, {
160
+ return t[5] !== n || t[6] !== i || t[7] !== a || t[8] !== o ? (e = /* @__PURE__ */ _(r, {
161
161
  sx: o,
162
162
  className: i,
163
163
  ...a,
@@ -165,7 +165,7 @@ function k(e) {
165
165
  }), t[5] = n, t[6] = i, t[7] = a, t[8] = o, t[9] = e) : e = t[9], e;
166
166
  }
167
167
  let c;
168
- return t[10] !== n || t[11] !== i || t[12] !== a || t[13] !== o ? (c = /* @__PURE__ */ v(d, {
168
+ return t[10] !== n || t[11] !== i || t[12] !== a || t[13] !== o ? (c = /* @__PURE__ */ _(d, {
169
169
  sx: o,
170
170
  className: i,
171
171
  ...a,
package/dist/index142.cjs CHANGED
@@ -1 +1 @@
1
- "use client";const e=require("./index2.cjs"),t=require("./index45.cjs");let n=require("react");n=e.__toESM(n,1);let r=require("@stylexjs/stylex");r=e.__toESM(r,1);let i=require("react/jsx-runtime"),a=require("react/compiler-runtime"),o=require("@radix-ui/react-scroll-area");o=e.__toESM(o,1);var s={root:{kVAEAm:`x1n2onr6`,$$css:!0},scrollbar:{k1xSpc:`x78zum5`,kFalU9:`x5ve5x3`,kmVPX3:`xyf9f8g`,kfSwDN:`x87ps6o`,k1ekBW:`xts7igz`,kIyJzY:`xx6bhzk`,$$css:!0},scrollbarVertical:{kZKoxP:`x5yr21d`,kzqmXN:`x1e7hgle`,kZ1KPB:`xe0pwq`,k4WBpm:`x19ypqd9`,kaZRDh:`x1g4hjc`,$$css:!0},scrollbarHorizontal:{kZKoxP:`x1qa65zt`,kXwgrk:`xdt5ytf`,kEafiO:`x178xt8z`,kPef9Z:`x13fuv20`,kLZC3w:`x1v8p93f`,$$css:!0}};function c(e){let n=(0,a.c)(22),c,u,d,f;n[0]===e?(c=n[1],u=n[2],d=n[3],f=n[4]):({className:u,children:c,sx:f,...d}=e,n[0]=e,n[1]=c,n[2]=u,n[3]=d,n[4]=f);let p,m,h,g;if(n[5]!==u||n[6]!==f){let e=r.props(s.root,f);p=o.Root,m=`scroll-area`,h=e,g=t.cn(e.className,u),n[5]=u,n[6]=f,n[7]=p,n[8]=m,n[9]=h,n[10]=g}else p=n[7],m=n[8],h=n[9],g=n[10];let _;n[11]===c?_=n[12]:(_=(0,i.jsx)(o.Viewport,{"data-slot":`scroll-area-viewport`,className:`xh8yej3 x5yr21d x1pjcqnp x1a2a7pz`,children:c}),n[11]=c,n[12]=_);let v,y;n[13]===Symbol.for(`react.memo_cache_sentinel`)?(v=(0,i.jsx)(l,{}),y=(0,i.jsx)(o.Corner,{}),n[13]=v,n[14]=y):(v=n[13],y=n[14]);let b;return n[15]!==p||n[16]!==d||n[17]!==m||n[18]!==h||n[19]!==g||n[20]!==_?(b=(0,i.jsxs)(p,{"data-slot":m,...h,className:g,...d,children:[_,v,y]}),n[15]=p,n[16]=d,n[17]=m,n[18]=h,n[19]=g,n[20]=_,n[21]=b):b=n[21],b}function l({className:e,orientation:n=`vertical`,sx:a,...c}){let l=r.props(s.scrollbar,n===`vertical`?s.scrollbarVertical:s.scrollbarHorizontal,a);return(0,i.jsx)(o.ScrollAreaScrollbar,{"data-slot":`scroll-area-scrollbar`,orientation:n,...l,className:t.cn(l.className,e),...c,children:(0,i.jsx)(o.ScrollAreaThumb,{"data-slot":`scroll-area-thumb`,className:`x1n2onr6 x98rzlu x7xypw4 xwefxjc`})})}exports.ScrollArea=c,exports.ScrollBar=l;
1
+ "use client";const e=require("./index2.cjs"),t=require("./index46.cjs");let n=require("@stylexjs/stylex");n=e.__toESM(n,1);let r=require("react/jsx-runtime"),i=require("react");i=e.__toESM(i,1);let a=require("react/compiler-runtime"),o=require("@radix-ui/react-scroll-area");o=e.__toESM(o,1);var s={root:{kVAEAm:`x1n2onr6`,$$css:!0},scrollbar:{k1xSpc:`x78zum5`,kFalU9:`x5ve5x3`,kmVPX3:`xyf9f8g`,kfSwDN:`x87ps6o`,k1ekBW:`xts7igz`,kIyJzY:`xx6bhzk`,$$css:!0},scrollbarVertical:{kZKoxP:`x5yr21d`,kzqmXN:`x1e7hgle`,kZ1KPB:`xe0pwq`,k4WBpm:`x19ypqd9`,kaZRDh:`x1g4hjc`,$$css:!0},scrollbarHorizontal:{kZKoxP:`x1qa65zt`,kXwgrk:`xdt5ytf`,kEafiO:`x178xt8z`,kPef9Z:`x13fuv20`,kLZC3w:`x1v8p93f`,$$css:!0}};function c(e){let i=(0,a.c)(22),c,u,d,f;i[0]===e?(c=i[1],u=i[2],d=i[3],f=i[4]):({className:u,children:c,sx:f,...d}=e,i[0]=e,i[1]=c,i[2]=u,i[3]=d,i[4]=f);let p,m,h,g;if(i[5]!==u||i[6]!==f){let e=n.props(s.root,f);p=o.Root,m=`scroll-area`,h=e,g=t.cn(e.className,u),i[5]=u,i[6]=f,i[7]=p,i[8]=m,i[9]=h,i[10]=g}else p=i[7],m=i[8],h=i[9],g=i[10];let _;i[11]===c?_=i[12]:(_=(0,r.jsx)(o.Viewport,{"data-slot":`scroll-area-viewport`,className:`xh8yej3 x5yr21d x1pjcqnp x1a2a7pz`,children:c}),i[11]=c,i[12]=_);let v,y;i[13]===Symbol.for(`react.memo_cache_sentinel`)?(v=(0,r.jsx)(l,{}),y=(0,r.jsx)(o.Corner,{}),i[13]=v,i[14]=y):(v=i[13],y=i[14]);let b;return i[15]!==p||i[16]!==d||i[17]!==m||i[18]!==h||i[19]!==g||i[20]!==_?(b=(0,r.jsxs)(p,{"data-slot":m,...h,className:g,...d,children:[_,v,y]}),i[15]=p,i[16]=d,i[17]=m,i[18]=h,i[19]=g,i[20]=_,i[21]=b):b=i[21],b}function l({className:e,orientation:i=`vertical`,sx:a,...c}){let l=n.props(s.scrollbar,i===`vertical`?s.scrollbarVertical:s.scrollbarHorizontal,a);return(0,r.jsx)(o.ScrollAreaScrollbar,{"data-slot":`scroll-area-scrollbar`,orientation:i,...l,className:t.cn(l.className,e),...c,children:(0,r.jsx)(o.ScrollAreaThumb,{"data-slot":`scroll-area-thumb`,className:`x1n2onr6 x98rzlu x7xypw4 xwefxjc`})})}exports.ScrollArea=c,exports.ScrollBar=l;
package/dist/index142.js CHANGED
@@ -1,8 +1,8 @@
1
1
  "use client";
2
- import { cn as e } from "./index45.js";
3
- import "react";
2
+ import { cn as e } from "./index46.js";
4
3
  import * as t from "@stylexjs/stylex";
5
4
  import { jsx as n, jsxs as r } from "react/jsx-runtime";
5
+ import "react";
6
6
  import { c as i } from "react/compiler-runtime";
7
7
  import * as a from "@radix-ui/react-scroll-area";
8
8
  // src/ui/scroll-area.tsx
package/dist/index143.cjs CHANGED
@@ -1 +1 @@
1
- const e=require("./index2.cjs"),t=require("./index13.cjs"),n=require("./index25.cjs");let r=require("react"),i=e.__toESM(r,1);r=e.__toESM(r);let a=require("@stylexjs/stylex");a=e.__toESM(a,1);let o=require("react/jsx-runtime");var s={root:{k1xSpc:`x3nfvp2`,kGNEyG:`x6s0dn4`,kmVPX3:`x78pyy4`,kaIpWk:`x1mr5ieh`,kWkggS:`x1qry0bl`,kMwMTN:`xw3nh4a`,kfSwDN:`x87ps6o`,kB7OPa:`x9f619`,kOIVth:`x1enigpx`,$$css:!0},block:{k1xSpc:`x78zum5`,kzqmXN:`xh8yej3`,$$css:!0},disabled:{kSiTet:`xbyyjgo`,kkrTdU:`x1h6gzvc`,kfzvcC:`x47corl`,$$css:!0},item:{kVAEAm:`x1n2onr6`,k1xSpc:`x3nfvp2`,kGNEyG:`x6s0dn4`,kjj79g:`xl56j7k`,kOIVth:`x1m5ztt4`,kaIpWk:`xsda711`,kMzoRj:`xc342km`,kWkggS:`xjbqb8w`,kMwMTN:`xw3nh4a`,k63SB2:`xk50ysn`,kkrTdU:`x1ypdohk`,k1ekBW:`x1hhurwi`,kIyJzY:`xx6bhzk`,kAMwcw:`xwwtwea`,kI3sdo:`x1a2a7pz`,kDPRdz:`x8aud5w`,kEtg5x:`xw5q27k`,$$css:!0},itemBlock:{kUk6DE:`x98rzlu`,$$css:!0},itemActive:{kWkggS:`x1mlyrtw`,kMwMTN:`x84br7x`,k63SB2:`x1s688f`,kGVxlE:`x19sfsg6`,$$css:!0},itemDisabled:{kkrTdU:`x1h6gzvc`,kSiTet:`xbyyjgo`,kDPRdz:`x5ufdz3`,$$css:!0},sizeSm:{kZKoxP:`xb8l8e1`,kg3NbH:`x97vtpp`,kGuDYH:`xboafo0`,kLWn49:`xl2ypbo`,$$css:!0},sizeMd:{kZKoxP:`xk8t5le`,kg3NbH:`x1ryrjj2`,kGuDYH:`xkpwil5`,kLWn49:`x8r4c90`,$$css:!0},sizeLg:{kZKoxP:`x12hms15`,kg3NbH:`xnxx81d`,kGuDYH:`x1jchvi3`,kLWn49:`x17mssa0`,$$css:!0}};function c(e){return typeof e==`string`||typeof e==`number`?{label:String(e),value:e}:e}var l=i.forwardRef(({options:e,value:r,defaultValue:l,onValueChange:u,size:d=`md`,block:f=!1,disabled:p=!1,sx:m,className:h,"aria-label":g=`Segmented options`,..._},v)=>{let y=i.useMemo(()=>e.map(c),[e]),b=l??y[0]?.value??``,[x,S]=i.useState(b),C=r!==void 0,w=C?r:x,T=e=>{p||(C||S(e),u?.(e))},E=e=>{if(p)return;let t=y.filter(e=>!e.disabled),n=t.findIndex(e=>e.value===w);if(e.key===`ArrowRight`||e.key===`ArrowDown`){e.preventDefault();let r=t[(n+1)%t.length];r&&T(r.value)}else if(e.key===`ArrowLeft`||e.key===`ArrowUp`){e.preventDefault();let r=t[(n-1+t.length)%t.length];r&&T(r.value)}},D=d===`sm`?s.sizeSm:d===`lg`?s.sizeLg:s.sizeMd;return(0,o.jsx)(n.Flex,{ref:v,inline:!f,align:`center`,role:`radiogroup`,"aria-label":g,tabIndex:p?-1:0,onKeyDown:E,"data-slot":`segmented`,sx:[s.root,f&&s.block,p&&s.disabled,m],className:h,..._,children:y.map(e=>{let n=w===e.value,r=p||!!e.disabled,i=a.props(s.item,D,f&&s.itemBlock,n&&s.itemActive,r&&s.itemDisabled);return(0,o.jsxs)(`button`,{type:`button`,role:`radio`,"aria-checked":n,disabled:r,"data-slot":`segmented-item`,"data-value":String(e.value),"data-state":n?`active`:`inactive`,onClick:()=>T(e.value),...i,children:[e.icon&&(0,o.jsx)(`span`,{className:`x3nfvp2 x6s0dn4 xl56j7k x2lah0s`,children:e.icon}),(0,o.jsx)(t.Text,{as:`span`,size:d===`sm`?`xs`:d===`lg`?`md`:`sm`,weight:n?`semibold`:`medium`,children:e.label})]},String(e.value))})})});l.displayName=`Segmented`,exports.Segmented=l;
1
+ const e=require("./index2.cjs"),t=require("./index14.cjs"),n=require("./index26.cjs");let r=require("@stylexjs/stylex");r=e.__toESM(r,1);let i=require("react/jsx-runtime"),a=require("react"),o=e.__toESM(a,1);a=e.__toESM(a);var s={root:{k1xSpc:`x3nfvp2`,kGNEyG:`x6s0dn4`,kmVPX3:`x78pyy4`,kaIpWk:`x1mr5ieh`,kWkggS:`x1qry0bl`,kMwMTN:`xw3nh4a`,kfSwDN:`x87ps6o`,kB7OPa:`x9f619`,kOIVth:`x1enigpx`,$$css:!0},block:{k1xSpc:`x78zum5`,kzqmXN:`xh8yej3`,$$css:!0},disabled:{kSiTet:`xbyyjgo`,kkrTdU:`x1h6gzvc`,kfzvcC:`x47corl`,$$css:!0},item:{kVAEAm:`x1n2onr6`,k1xSpc:`x3nfvp2`,kGNEyG:`x6s0dn4`,kjj79g:`xl56j7k`,kOIVth:`x1m5ztt4`,kaIpWk:`xsda711`,kMzoRj:`xc342km`,kWkggS:`xjbqb8w`,kMwMTN:`xw3nh4a`,k63SB2:`xk50ysn`,kkrTdU:`x1ypdohk`,k1ekBW:`x1hhurwi`,kIyJzY:`xx6bhzk`,kAMwcw:`xwwtwea`,kI3sdo:`x1a2a7pz`,kDPRdz:`x8aud5w`,kEtg5x:`xw5q27k`,$$css:!0},itemBlock:{kUk6DE:`x98rzlu`,$$css:!0},itemActive:{kWkggS:`x1mlyrtw`,kMwMTN:`x84br7x`,k63SB2:`x1s688f`,kGVxlE:`x19sfsg6`,$$css:!0},itemDisabled:{kkrTdU:`x1h6gzvc`,kSiTet:`xbyyjgo`,kDPRdz:`x5ufdz3`,$$css:!0},sizeSm:{kZKoxP:`xb8l8e1`,kg3NbH:`x97vtpp`,kGuDYH:`xboafo0`,kLWn49:`xl2ypbo`,$$css:!0},sizeMd:{kZKoxP:`xk8t5le`,kg3NbH:`x1ryrjj2`,kGuDYH:`xkpwil5`,kLWn49:`x8r4c90`,$$css:!0},sizeLg:{kZKoxP:`x12hms15`,kg3NbH:`xnxx81d`,kGuDYH:`x1jchvi3`,kLWn49:`x17mssa0`,$$css:!0}};function c(e){return typeof e==`string`||typeof e==`number`?{label:String(e),value:e}:e}var l=o.forwardRef(({options:e,value:a,defaultValue:l,onValueChange:u,size:d=`md`,block:f=!1,disabled:p=!1,sx:m,className:h,"aria-label":g=`Segmented options`,..._},v)=>{let y=o.useMemo(()=>e.map(c),[e]),b=l??y[0]?.value??``,[x,S]=o.useState(b),C=a!==void 0,w=C?a:x,T=e=>{p||(C||S(e),u?.(e))},E=e=>{if(p)return;let t=y.filter(e=>!e.disabled),n=t.findIndex(e=>e.value===w);if(e.key===`ArrowRight`||e.key===`ArrowDown`){e.preventDefault();let r=t[(n+1)%t.length];r&&T(r.value)}else if(e.key===`ArrowLeft`||e.key===`ArrowUp`){e.preventDefault();let r=t[(n-1+t.length)%t.length];r&&T(r.value)}},D=d===`sm`?s.sizeSm:d===`lg`?s.sizeLg:s.sizeMd;return(0,i.jsx)(n.Flex,{ref:v,inline:!f,align:`center`,role:`radiogroup`,"aria-label":g,tabIndex:p?-1:0,onKeyDown:E,"data-slot":`segmented`,sx:[s.root,f&&s.block,p&&s.disabled,m],className:h,..._,children:y.map(e=>{let n=w===e.value,a=p||!!e.disabled,o=r.props(s.item,D,f&&s.itemBlock,n&&s.itemActive,a&&s.itemDisabled);return(0,i.jsxs)(`button`,{type:`button`,role:`radio`,"aria-checked":n,disabled:a,"data-slot":`segmented-item`,"data-value":String(e.value),"data-state":n?`active`:`inactive`,onClick:()=>T(e.value),...o,children:[e.icon&&(0,i.jsx)(`span`,{className:`x3nfvp2 x6s0dn4 xl56j7k x2lah0s`,children:e.icon}),(0,i.jsx)(t.Text,{as:`span`,size:d===`sm`?`xs`:d===`lg`?`md`:`sm`,weight:n?`semibold`:`medium`,children:e.label})]},String(e.value))})})});l.displayName=`Segmented`,exports.Segmented=l;
package/dist/index143.js CHANGED
@@ -1,8 +1,8 @@
1
- import { Text as e } from "./index13.js";
2
- import { Flex as t } from "./index25.js";
3
- import * as n from "react";
4
- import * as r from "@stylexjs/stylex";
5
- import { jsx as i, jsxs as a } from "react/jsx-runtime";
1
+ import { Text as e } from "./index14.js";
2
+ import { Flex as t } from "./index26.js";
3
+ import * as n from "@stylexjs/stylex";
4
+ import { jsx as r, jsxs as i } from "react/jsx-runtime";
5
+ import * as a from "react";
6
6
  // src/ui/segmented.tsx
7
7
  var o = {
8
8
  root: {
@@ -93,8 +93,8 @@ function s(e) {
93
93
  value: e
94
94
  } : e;
95
95
  }
96
- var c = n.forwardRef(({ options: c, value: l, defaultValue: u, onValueChange: d, size: f = "md", block: p = !1, disabled: m = !1, sx: h, className: g, "aria-label": _ = "Segmented options", ...v }, y) => {
97
- let b = n.useMemo(() => c.map(s), [c]), x = u ?? b[0]?.value ?? "", [S, C] = n.useState(x), w = l !== void 0, T = w ? l : S, E = (e) => {
96
+ var c = a.forwardRef(({ options: c, value: l, defaultValue: u, onValueChange: d, size: f = "md", block: p = !1, disabled: m = !1, sx: h, className: g, "aria-label": _ = "Segmented options", ...v }, y) => {
97
+ let b = a.useMemo(() => c.map(s), [c]), x = u ?? b[0]?.value ?? "", [S, C] = a.useState(x), w = l !== void 0, T = w ? l : S, E = (e) => {
98
98
  m || (w || C(e), d?.(e));
99
99
  }, D = (e) => {
100
100
  if (m) return;
@@ -109,7 +109,7 @@ var c = n.forwardRef(({ options: c, value: l, defaultValue: u, onValueChange: d,
109
109
  r && E(r.value);
110
110
  }
111
111
  }, O = f === "sm" ? o.sizeSm : f === "lg" ? o.sizeLg : o.sizeMd;
112
- return /* @__PURE__ */ i(t, {
112
+ return /* @__PURE__ */ r(t, {
113
113
  ref: y,
114
114
  inline: !p,
115
115
  align: "center",
@@ -127,24 +127,24 @@ var c = n.forwardRef(({ options: c, value: l, defaultValue: u, onValueChange: d,
127
127
  className: g,
128
128
  ...v,
129
129
  children: b.map((t) => {
130
- let n = T === t.value, s = m || !!t.disabled, c = r.props(o.item, O, p && o.itemBlock, n && o.itemActive, s && o.itemDisabled);
131
- return /* @__PURE__ */ a("button", {
130
+ let a = T === t.value, s = m || !!t.disabled, c = n.props(o.item, O, p && o.itemBlock, a && o.itemActive, s && o.itemDisabled);
131
+ return /* @__PURE__ */ i("button", {
132
132
  type: "button",
133
133
  role: "radio",
134
- "aria-checked": n,
134
+ "aria-checked": a,
135
135
  disabled: s,
136
136
  "data-slot": "segmented-item",
137
137
  "data-value": String(t.value),
138
- "data-state": n ? "active" : "inactive",
138
+ "data-state": a ? "active" : "inactive",
139
139
  onClick: () => E(t.value),
140
140
  ...c,
141
- children: [t.icon && /* @__PURE__ */ i("span", {
141
+ children: [t.icon && /* @__PURE__ */ r("span", {
142
142
  className: "x3nfvp2 x6s0dn4 xl56j7k x2lah0s",
143
143
  children: t.icon
144
- }), /* @__PURE__ */ i(e, {
144
+ }), /* @__PURE__ */ r(e, {
145
145
  as: "span",
146
146
  size: f === "sm" ? "xs" : f === "lg" ? "md" : "sm",
147
- weight: n ? "semibold" : "medium",
147
+ weight: a ? "semibold" : "medium",
148
148
  children: t.label
149
149
  })]
150
150
  }, String(t.value));