@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/index57.js CHANGED
@@ -1,97 +1,82 @@
1
- "use client";
2
- import { useLayoutEffect as e } from "./index38.js";
3
- import * as t from "react";
4
- // ../../node_modules/.pnpm/@radix-ui+react-presence@1.1.10_@types+react-dom@19.3.0_@types+react@19.3.0__@types+rea_d7b4951725c0f0b9fd732151cb937913/node_modules/@radix-ui/react-presence/dist/index.mjs
5
- var n = Object.defineProperty, r = (e, t) => n(e, "name", {
1
+ import { useLayoutEffect as e } from "./index39.js";
2
+ import { useEffectEvent as t } from "./index56.js";
3
+ import * as n from "react";
4
+ // ../../node_modules/.pnpm/@radix-ui+react-use-controllable-state@1.2.6_@types+react@19.3.0_react@19.3.1/node_modules/@radix-ui/react-use-controllable-state/dist/index.mjs
5
+ var r = Object.defineProperty, i = (e, t) => r(e, "name", {
6
6
  value: t,
7
7
  configurable: !0
8
- });
9
- function i(e, n) {
10
- return t.useReducer((e, t) => n[e][t] ?? e, e);
8
+ }), a = n.useInsertionEffect || e;
9
+ function o({ prop: e, defaultProp: t, onChange: r = /* @__PURE__ */ i(() => {}, "onChange"), caller: a }) {
10
+ let [o, l, u] = s({
11
+ defaultProp: t,
12
+ onChange: r
13
+ }), d = e !== void 0;
14
+ return [d ? e : o, n.useCallback((t) => {
15
+ if (d) {
16
+ let n = c(t) ? t(e) : t;
17
+ n !== e && u.current?.(n);
18
+ } else l(t);
19
+ }, [
20
+ d,
21
+ e,
22
+ l,
23
+ u
24
+ ])];
11
25
  }
12
- r(i, "useStateMachine");
13
- var a = /* @__PURE__ */ r((e) => {
14
- let { present: n, children: r } = e, i = o(n), a = typeof r == "function" ? r({ present: i.isPresent }) : t.Children.only(r), s = c(i.ref, u(a));
15
- return typeof r == "function" || i.isPresent ? t.cloneElement(a, { ref: s }) : null;
16
- }, "Presence");
17
- function o(n) {
18
- let [a, o] = t.useState(), s = t.useRef(null), c = t.useRef(n), u = t.useRef("none"), d = t.useRef(void 0), [f, p] = i(n ? "mounted" : "unmounted", {
19
- mounted: {
20
- UNMOUNT: "unmounted",
21
- ANIMATION_OUT: "unmountSuspended"
22
- },
23
- unmountSuspended: {
24
- MOUNT: "mounted",
25
- ANIMATION_END: "unmounted"
26
- },
27
- unmounted: { MOUNT: "mounted" }
28
- });
29
- return t.useEffect(() => {
30
- f === "mounted" ? (u.current = d.current ?? l(s.current), d.current = void 0) : u.current = "none";
31
- }, [f]), e(() => {
32
- let e = s.current, t = c.current;
33
- if (t !== n) {
34
- let r = u.current, i = l(e);
35
- n ? (d.current = i, p("MOUNT")) : i === "none" || e?.display === "none" ? p("UNMOUNT") : p(t && r !== i ? "ANIMATION_OUT" : "UNMOUNT"), c.current = n;
36
- }
37
- }, [n, p]), e(() => {
38
- if (a) {
39
- let e, t = a.ownerDocument.defaultView ?? window, n = /* @__PURE__ */ r((n) => {
40
- let r = l(s.current).includes(CSS.escape(n.animationName));
41
- if (n.target === a && r && (p("ANIMATION_END"), !c.current)) {
42
- let n = a.style.animationFillMode;
43
- a.style.animationFillMode = "forwards", e = t.setTimeout(() => {
44
- a.style.animationFillMode === "forwards" && (a.style.animationFillMode = n);
45
- });
46
- }
47
- }, "handleAnimationEnd"), i = /* @__PURE__ */ r((e) => {
48
- e.target === a && (u.current = l(s.current));
49
- }, "handleAnimationStart");
50
- return a.addEventListener("animationstart", i), a.addEventListener("animationcancel", n), a.addEventListener("animationend", n), () => {
51
- t.clearTimeout(e), a.removeEventListener("animationstart", i), a.removeEventListener("animationcancel", n), a.removeEventListener("animationend", n);
52
- };
53
- }
54
- p("ANIMATION_END");
55
- }, [a, p]), {
56
- isPresent: ["mounted", "unmountSuspended"].includes(f),
57
- ref: t.useCallback((e) => {
58
- if (e) {
59
- let t = getComputedStyle(e);
60
- s.current = t, d.current = l(t);
61
- } else s.current = null;
62
- o(e);
63
- }, [])
64
- };
26
+ i(o, "useControllableState");
27
+ function s({ defaultProp: e, onChange: t }) {
28
+ let [r, i] = n.useState(e), o = n.useRef(r), s = n.useRef(t);
29
+ return a(() => {
30
+ s.current = t;
31
+ }, [t]), n.useEffect(() => {
32
+ o.current !== r && (s.current?.(r), o.current = r);
33
+ }, [r, o]), [
34
+ r,
35
+ i,
36
+ s
37
+ ];
65
38
  }
66
- r(o, "usePresence");
67
- function s(e, t) {
68
- if (typeof e == "function") return e(t);
69
- e != null && (e.current = t);
39
+ i(s, "useUncontrolledState");
40
+ function c(e) {
41
+ return typeof e == "function";
70
42
  }
71
- r(s, "setRef");
72
- function c(...e) {
73
- let n = t.useRef(e);
74
- return n.current = e, t.useCallback((e) => {
75
- let t = n.current, r = !1, i = t.map((t) => {
76
- let n = s(t, e);
77
- return !r && typeof n == "function" && (r = !0), n;
78
- });
79
- if (r) return () => {
80
- for (let e = 0; e < i.length; e++) {
81
- let n = i[e];
82
- typeof n == "function" ? n() : s(t[e], null);
83
- }
43
+ i(c, "isFunction");
44
+ var l = Symbol("RADIX:SYNC_STATE");
45
+ function u(e, r, i, a) {
46
+ let { prop: o, defaultProp: s, onChange: c, caller: u } = r, d = o !== void 0, f = t(c), p = [{
47
+ ...i,
48
+ state: s
49
+ }];
50
+ a && p.push(a);
51
+ let [m, h] = n.useReducer((t, n) => {
52
+ if (n.type === l) return {
53
+ ...t,
54
+ state: n.state
84
55
  };
85
- }, []);
86
- }
87
- r(c, "useStableComposedRefs");
88
- function l(e) {
89
- return e?.animationName || "none";
90
- }
91
- r(l, "getAnimationName");
92
- function u(e) {
93
- let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning;
94
- return n ? e.ref : (t = Object.getOwnPropertyDescriptor(e, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
56
+ let r = e(t, n);
57
+ return d && !Object.is(r.state, t.state) && f(r.state), r;
58
+ }, ...p), g = m.state, _ = n.useRef(g);
59
+ n.useEffect(() => {
60
+ _.current !== g && (_.current = g, d || f(g));
61
+ }, [
62
+ g,
63
+ _,
64
+ d
65
+ ]);
66
+ let v = n.useMemo(() => o === void 0 ? m : {
67
+ ...m,
68
+ state: o
69
+ }, [m, o]);
70
+ return n.useEffect(() => {
71
+ d && !Object.is(o, m.state) && h({
72
+ type: l,
73
+ state: o
74
+ });
75
+ }, [
76
+ o,
77
+ m.state,
78
+ d
79
+ ]), [v, h];
95
80
  }
96
- r(u, "getElementRef");
97
- export { a as Presence };
81
+ i(u, "useControllableStateReducer");
82
+ export { o as useControllableState, u as useControllableStateReducer };
package/dist/index58.cjs CHANGED
@@ -1 +1 @@
1
- const e=require("./index2.cjs"),t=require("./index38.cjs");let n=require("react"),r=e.__toESM(n,1);n=e.__toESM(n);var i=Object.defineProperty,a=(e,t)=>i(e,`name`,{value:t,configurable:!0}),o=r.useId||(()=>void 0),s=0;function c(e){let[n,i]=r.useState(o());return t.useLayoutEffect(()=>{e||i(e=>e??String(s++))},[e]),e||(n?`radix-${n}`:``)}a(c,`useId`),exports.useId=c;
1
+ "use client";const e=require("./index2.cjs"),t=require("./index39.cjs");let n=require("react"),r=e.__toESM(n,1);n=e.__toESM(n);var i=Object.defineProperty,a=(e,t)=>i(e,`name`,{value:t,configurable:!0});function o(e,t){return r.useReducer((e,n)=>t[e][n]??e,e)}a(o,`useStateMachine`);var s=a(e=>{let{present:t,children:n}=e,i=c(t),a=typeof n==`function`?n({present:i.isPresent}):r.Children.only(n),o=u(i.ref,f(a));return typeof n==`function`||i.isPresent?r.cloneElement(a,{ref:o}):null},`Presence`);function c(e){let[n,i]=r.useState(),s=r.useRef(null),c=r.useRef(e),l=r.useRef(`none`),u=r.useRef(void 0),[f,p]=o(e?`mounted`:`unmounted`,{mounted:{UNMOUNT:`unmounted`,ANIMATION_OUT:`unmountSuspended`},unmountSuspended:{MOUNT:`mounted`,ANIMATION_END:`unmounted`},unmounted:{MOUNT:`mounted`}});return r.useEffect(()=>{f===`mounted`?(l.current=u.current??d(s.current),u.current=void 0):l.current=`none`},[f]),t.useLayoutEffect(()=>{let t=s.current,n=c.current;if(n!==e){let r=l.current,i=d(t);e?(u.current=i,p(`MOUNT`)):i===`none`||t?.display===`none`?p(`UNMOUNT`):p(n&&r!==i?`ANIMATION_OUT`:`UNMOUNT`),c.current=e}},[e,p]),t.useLayoutEffect(()=>{if(n){let e,t=n.ownerDocument.defaultView??window,r=a(r=>{let i=d(s.current).includes(CSS.escape(r.animationName));if(r.target===n&&i&&(p(`ANIMATION_END`),!c.current)){let r=n.style.animationFillMode;n.style.animationFillMode=`forwards`,e=t.setTimeout(()=>{n.style.animationFillMode===`forwards`&&(n.style.animationFillMode=r)})}},`handleAnimationEnd`),i=a(e=>{e.target===n&&(l.current=d(s.current))},`handleAnimationStart`);return n.addEventListener(`animationstart`,i),n.addEventListener(`animationcancel`,r),n.addEventListener(`animationend`,r),()=>{t.clearTimeout(e),n.removeEventListener(`animationstart`,i),n.removeEventListener(`animationcancel`,r),n.removeEventListener(`animationend`,r)}}p(`ANIMATION_END`)},[n,p]),{isPresent:[`mounted`,`unmountSuspended`].includes(f),ref:r.useCallback(e=>{if(e){let t=getComputedStyle(e);s.current=t,u.current=d(t)}else s.current=null;i(e)},[])}}a(c,`usePresence`);function l(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}a(l,`setRef`);function u(...e){let t=r.useRef(e);return t.current=e,r.useCallback(e=>{let n=t.current,r=!1,i=n.map(t=>{let n=l(t,e);return!r&&typeof n==`function`&&(r=!0),n});if(r)return()=>{for(let e=0;e<i.length;e++){let t=i[e];typeof t==`function`?t():l(n[e],null)}}},[])}a(u,`useStableComposedRefs`);function d(e){return e?.animationName||`none`}a(d,`getAnimationName`);function f(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}a(f,`getElementRef`),exports.Presence=s;
package/dist/index58.js CHANGED
@@ -1,15 +1,97 @@
1
- import { useLayoutEffect as e } from "./index38.js";
1
+ "use client";
2
+ import { useLayoutEffect as e } from "./index39.js";
2
3
  import * as t from "react";
3
- // ../../node_modules/.pnpm/@radix-ui+react-id@1.1.4_@types+react@19.3.0_react@19.3.1/node_modules/@radix-ui/react-id/dist/index.mjs
4
+ // ../../node_modules/.pnpm/@radix-ui+react-presence@1.1.10_@types+react-dom@19.3.0_@types+react@19.3.0__@types+rea_d7b4951725c0f0b9fd732151cb937913/node_modules/@radix-ui/react-presence/dist/index.mjs
4
5
  var n = Object.defineProperty, r = (e, t) => n(e, "name", {
5
6
  value: t,
6
7
  configurable: !0
7
- }), i = t.useId || (() => void 0), a = 0;
8
+ });
9
+ function i(e, n) {
10
+ return t.useReducer((e, t) => n[e][t] ?? e, e);
11
+ }
12
+ r(i, "useStateMachine");
13
+ var a = /* @__PURE__ */ r((e) => {
14
+ let { present: n, children: r } = e, i = o(n), a = typeof r == "function" ? r({ present: i.isPresent }) : t.Children.only(r), s = c(i.ref, u(a));
15
+ return typeof r == "function" || i.isPresent ? t.cloneElement(a, { ref: s }) : null;
16
+ }, "Presence");
8
17
  function o(n) {
9
- let [r, o] = t.useState(i());
10
- return e(() => {
11
- n || o((e) => e ?? String(a++));
12
- }, [n]), n || (r ? `radix-${r}` : "");
18
+ let [a, o] = t.useState(), s = t.useRef(null), c = t.useRef(n), u = t.useRef("none"), d = t.useRef(void 0), [f, p] = i(n ? "mounted" : "unmounted", {
19
+ mounted: {
20
+ UNMOUNT: "unmounted",
21
+ ANIMATION_OUT: "unmountSuspended"
22
+ },
23
+ unmountSuspended: {
24
+ MOUNT: "mounted",
25
+ ANIMATION_END: "unmounted"
26
+ },
27
+ unmounted: { MOUNT: "mounted" }
28
+ });
29
+ return t.useEffect(() => {
30
+ f === "mounted" ? (u.current = d.current ?? l(s.current), d.current = void 0) : u.current = "none";
31
+ }, [f]), e(() => {
32
+ let e = s.current, t = c.current;
33
+ if (t !== n) {
34
+ let r = u.current, i = l(e);
35
+ n ? (d.current = i, p("MOUNT")) : i === "none" || e?.display === "none" ? p("UNMOUNT") : p(t && r !== i ? "ANIMATION_OUT" : "UNMOUNT"), c.current = n;
36
+ }
37
+ }, [n, p]), e(() => {
38
+ if (a) {
39
+ let e, t = a.ownerDocument.defaultView ?? window, n = /* @__PURE__ */ r((n) => {
40
+ let r = l(s.current).includes(CSS.escape(n.animationName));
41
+ if (n.target === a && r && (p("ANIMATION_END"), !c.current)) {
42
+ let n = a.style.animationFillMode;
43
+ a.style.animationFillMode = "forwards", e = t.setTimeout(() => {
44
+ a.style.animationFillMode === "forwards" && (a.style.animationFillMode = n);
45
+ });
46
+ }
47
+ }, "handleAnimationEnd"), i = /* @__PURE__ */ r((e) => {
48
+ e.target === a && (u.current = l(s.current));
49
+ }, "handleAnimationStart");
50
+ return a.addEventListener("animationstart", i), a.addEventListener("animationcancel", n), a.addEventListener("animationend", n), () => {
51
+ t.clearTimeout(e), a.removeEventListener("animationstart", i), a.removeEventListener("animationcancel", n), a.removeEventListener("animationend", n);
52
+ };
53
+ }
54
+ p("ANIMATION_END");
55
+ }, [a, p]), {
56
+ isPresent: ["mounted", "unmountSuspended"].includes(f),
57
+ ref: t.useCallback((e) => {
58
+ if (e) {
59
+ let t = getComputedStyle(e);
60
+ s.current = t, d.current = l(t);
61
+ } else s.current = null;
62
+ o(e);
63
+ }, [])
64
+ };
65
+ }
66
+ r(o, "usePresence");
67
+ function s(e, t) {
68
+ if (typeof e == "function") return e(t);
69
+ e != null && (e.current = t);
70
+ }
71
+ r(s, "setRef");
72
+ function c(...e) {
73
+ let n = t.useRef(e);
74
+ return n.current = e, t.useCallback((e) => {
75
+ let t = n.current, r = !1, i = t.map((t) => {
76
+ let n = s(t, e);
77
+ return !r && typeof n == "function" && (r = !0), n;
78
+ });
79
+ if (r) return () => {
80
+ for (let e = 0; e < i.length; e++) {
81
+ let n = i[e];
82
+ typeof n == "function" ? n() : s(t[e], null);
83
+ }
84
+ };
85
+ }, []);
86
+ }
87
+ r(c, "useStableComposedRefs");
88
+ function l(e) {
89
+ return e?.animationName || "none";
90
+ }
91
+ r(l, "getAnimationName");
92
+ function u(e) {
93
+ let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning;
94
+ return n ? e.ref : (t = Object.getOwnPropertyDescriptor(e, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
13
95
  }
14
- r(o, "useId");
15
- export { o as useId };
96
+ r(u, "getElementRef");
97
+ export { a as Presence };
package/dist/index59.cjs CHANGED
@@ -1 +1 @@
1
- "use client";const e=require("./index2.cjs"),t=require("./index29.cjs"),n=require("./index30.cjs"),r=require("./index31.cjs"),i=require("./index34.cjs"),a=require("./index38.cjs"),o=require("./index56.cjs"),s=require("./index57.cjs"),c=require("./index58.cjs");let l=require("react"),u=e.__toESM(l,1);l=e.__toESM(l);let d=require("react/jsx-runtime");var f=Object.defineProperty,p=(e,t)=>f(e,`name`,{value:t,configurable:!0}),m=`Collapsible`,[h,g]=t.createContextScope(m),[_,v]=h(m),y=u.forwardRef(p(function(e,t){let{__scopeCollapsible:n,open:r,defaultOpen:a,disabled:s,onOpenChange:l,...f}=e,[p,h]=o.useControllableState({prop:r,defaultProp:a??!1,onChange:l,caller:m});return(0,d.jsx)(_,{scope:n,disabled:s,contentId:c.useId(),open:p,onOpenToggle:u.useCallback(()=>h(e=>!e),[h]),children:(0,d.jsx)(i.Primitive.div,{"data-state":T(p),"data-disabled":s?``:void 0,...f,ref:t})})},`Collapsible`)),b=`CollapsibleTrigger`,x=u.forwardRef(p(function(e,t){let{__scopeCollapsible:n,...a}=e,o=v(b,n);return(0,d.jsx)(i.Primitive.button,{type:`button`,"aria-controls":o.open?o.contentId:void 0,"aria-expanded":o.open||!1,"data-state":T(o.open),"data-disabled":o.disabled?``:void 0,disabled:o.disabled,...a,ref:t,onClick:r.composeEventHandlers(e.onClick,o.onOpenToggle)})},`CollapsibleTrigger`)),S=`CollapsibleContent`,C=u.forwardRef(p(function(e,t){let{forceMount:n,...r}=e,i=v(S,e.__scopeCollapsible);return(0,d.jsx)(s.Presence,{present:n||i.open,children:({present:e})=>(0,d.jsx)(w,{...r,ref:t,present:e})})},`CollapsibleContent`)),w=u.forwardRef(p(function(e,t){let{__scopeCollapsible:r,present:o,children:s,...c}=e,l=v(S,r),[f,p]=u.useState(o),m=u.useRef(null),h=n.useComposedRefs(t,m),g=u.useRef(0),_=g.current,y=u.useRef(0),b=y.current,x=l.open||f,C=u.useRef(x),w=u.useRef(void 0);return u.useEffect(()=>{let e=requestAnimationFrame(()=>C.current=!1);return()=>cancelAnimationFrame(e)},[]),a.useLayoutEffect(()=>{let e=m.current;if(e){w.current=w.current||{transitionDuration:e.style.transitionDuration,animationName:e.style.animationName},e.style.transitionDuration=`0s`,e.style.animationName=`none`;let t=e.getBoundingClientRect();g.current=t.height,y.current=t.width,C.current||(e.style.transitionDuration=w.current.transitionDuration,e.style.animationName=w.current.animationName),p(o)}},[l.open,o]),(0,d.jsx)(i.Primitive.div,{"data-state":T(l.open),"data-disabled":l.disabled?``:void 0,id:l.contentId,hidden:!x,...c,ref:h,style:{"--radix-collapsible-content-height":_?`${_}px`:void 0,"--radix-collapsible-content-width":b?`${b}px`:void 0,...e.style},children:x&&s})},`CollapsibleContentImpl`));function T(e){return e?`open`:`closed`}p(T,`getState`);var E=y;exports.Collapsible=y,exports.CollapsibleContent=C,exports.CollapsibleTrigger=x,exports.Root=E;
1
+ const e=require("./index2.cjs"),t=require("./index39.cjs");let n=require("react"),r=e.__toESM(n,1);n=e.__toESM(n);var i=Object.defineProperty,a=(e,t)=>i(e,`name`,{value:t,configurable:!0}),o=r.useId||(()=>void 0),s=0;function c(e){let[n,i]=r.useState(o());return t.useLayoutEffect(()=>{e||i(e=>e??String(s++))},[e]),e||(n?`radix-${n}`:``)}a(c,`useId`),exports.useId=c;
package/dist/index59.js CHANGED
@@ -1,94 +1,15 @@
1
- "use client";
2
- import { createContextScope as e } from "./index29.js";
3
- import { useComposedRefs as t } from "./index30.js";
4
- import { composeEventHandlers as n } from "./index31.js";
5
- import { Primitive as r } from "./index34.js";
6
- import { useLayoutEffect as i } from "./index38.js";
7
- import { useControllableState as a } from "./index56.js";
8
- import { Presence as o } from "./index57.js";
9
- import { useId as s } from "./index58.js";
10
- import * as c from "react";
11
- import { jsx as l } from "react/jsx-runtime";
12
- // ../../node_modules/.pnpm/@radix-ui+react-collapsible@1.1.20_@types+react-dom@19.3.0_@types+react@19.3.0__@types+_75f9b408b6aa016f78c6c390e6f84227/node_modules/@radix-ui/react-collapsible/dist/index.mjs
13
- var u = Object.defineProperty, d = (e, t) => u(e, "name", {
1
+ import { useLayoutEffect as e } from "./index39.js";
2
+ import * as t from "react";
3
+ // ../../node_modules/.pnpm/@radix-ui+react-id@1.1.4_@types+react@19.3.0_react@19.3.1/node_modules/@radix-ui/react-id/dist/index.mjs
4
+ var n = Object.defineProperty, r = (e, t) => n(e, "name", {
14
5
  value: t,
15
6
  configurable: !0
16
- }), f = "Collapsible", [p, m] = e(f), [h, g] = p(f), _ = /* @__PURE__ */ c.forwardRef(/* @__PURE__ */ d(function(e, t) {
17
- let { __scopeCollapsible: n, open: i, defaultOpen: o, disabled: u, onOpenChange: d, ...p } = e, [m, g] = a({
18
- prop: i,
19
- defaultProp: o ?? !1,
20
- onChange: d,
21
- caller: f
22
- });
23
- return /* @__PURE__ */ l(h, {
24
- scope: n,
25
- disabled: u,
26
- contentId: s(),
27
- open: m,
28
- onOpenToggle: c.useCallback(() => g((e) => !e), [g]),
29
- children: /* @__PURE__ */ l(r.div, {
30
- "data-state": C(m),
31
- "data-disabled": u ? "" : void 0,
32
- ...p,
33
- ref: t
34
- })
35
- });
36
- }, "Collapsible")), v = "CollapsibleTrigger", y = /* @__PURE__ */ c.forwardRef(/* @__PURE__ */ d(function(e, t) {
37
- let { __scopeCollapsible: i, ...a } = e, o = g(v, i);
38
- return /* @__PURE__ */ l(r.button, {
39
- type: "button",
40
- "aria-controls": o.open ? o.contentId : void 0,
41
- "aria-expanded": o.open || !1,
42
- "data-state": C(o.open),
43
- "data-disabled": o.disabled ? "" : void 0,
44
- disabled: o.disabled,
45
- ...a,
46
- ref: t,
47
- onClick: n(e.onClick, o.onOpenToggle)
48
- });
49
- }, "CollapsibleTrigger")), b = "CollapsibleContent", x = /* @__PURE__ */ c.forwardRef(/* @__PURE__ */ d(function(e, t) {
50
- let { forceMount: n, ...r } = e, i = g(b, e.__scopeCollapsible);
51
- return /* @__PURE__ */ l(o, {
52
- present: n || i.open,
53
- children: ({ present: e }) => /* @__PURE__ */ l(S, {
54
- ...r,
55
- ref: t,
56
- present: e
57
- })
58
- });
59
- }, "CollapsibleContent")), S = /* @__PURE__ */ c.forwardRef(/* @__PURE__ */ d(function(e, n) {
60
- let { __scopeCollapsible: a, present: o, children: s, ...u } = e, d = g(b, a), [f, p] = c.useState(o), m = c.useRef(null), h = t(n, m), _ = c.useRef(0), v = _.current, y = c.useRef(0), x = y.current, S = d.open || f, w = c.useRef(S), T = c.useRef(void 0);
61
- return c.useEffect(() => {
62
- let e = requestAnimationFrame(() => w.current = !1);
63
- return () => cancelAnimationFrame(e);
64
- }, []), i(() => {
65
- let e = m.current;
66
- if (e) {
67
- T.current = T.current || {
68
- transitionDuration: e.style.transitionDuration,
69
- animationName: e.style.animationName
70
- }, e.style.transitionDuration = "0s", e.style.animationName = "none";
71
- let t = e.getBoundingClientRect();
72
- _.current = t.height, y.current = t.width, w.current || (e.style.transitionDuration = T.current.transitionDuration, e.style.animationName = T.current.animationName), p(o);
73
- }
74
- }, [d.open, o]), /* @__PURE__ */ l(r.div, {
75
- "data-state": C(d.open),
76
- "data-disabled": d.disabled ? "" : void 0,
77
- id: d.contentId,
78
- hidden: !S,
79
- ...u,
80
- ref: h,
81
- style: {
82
- "--radix-collapsible-content-height": v ? `${v}px` : void 0,
83
- "--radix-collapsible-content-width": x ? `${x}px` : void 0,
84
- ...e.style
85
- },
86
- children: S && s
87
- });
88
- }, "CollapsibleContentImpl"));
89
- function C(e) {
90
- return e ? "open" : "closed";
7
+ }), i = t.useId || (() => void 0), a = 0;
8
+ function o(n) {
9
+ let [r, o] = t.useState(i());
10
+ return e(() => {
11
+ n || o((e) => e ?? String(a++));
12
+ }, [n]), n || (r ? `radix-${r}` : "");
91
13
  }
92
- d(C, "getState");
93
- var w = _;
94
- export { _ as Collapsible, x as CollapsibleContent, y as CollapsibleTrigger, w as Root };
14
+ r(o, "useId");
15
+ export { o as useId };
package/dist/index6.cjs CHANGED
@@ -1 +1 @@
1
- function e(e){let{customSize:t,lineHeight:n,lines:r,rows:i,ellipsis:a,textDecoration:o,textDecorationLine:s,textDecorationStyle:c,textDecorationColor:l,textDecorationThickness:u,textUnderlineOffset:d}=e,f=r??i??(typeof a==`object`?a.rows:void 0),p={};return t!==void 0&&(p.fontSize=typeof t==`number`?`${t}px`:t),n!==void 0&&(p.lineHeight=n),f&&(p.display=`-webkit-box`,p.WebkitLineClamp=f,p.WebkitBoxOrient=`vertical`,p.overflow=`hidden`),o!==void 0&&(p.textDecoration=o),s!==void 0&&(p.textDecorationLine=s),c!==void 0&&(p.textDecorationStyle=c),l!==void 0&&(p.textDecorationColor=l),u!==void 0&&(p.textDecorationThickness=typeof u==`number`?`${u}px`:u),d!==void 0&&(p.textUnderlineOffset=typeof d==`number`?`${d}px`:d),p}exports.resolveCustomTypographyStyle=e;
1
+ var e={xxs:{rem:`0.25rem`,px:4},xs:{rem:`0.5rem`,px:8},sm:{rem:`0.75rem`,px:12},md:{rem:`1rem`,px:16},lg:{rem:`1.5rem`,px:24},xl:{rem:`2rem`,px:32},xxl:{rem:`3rem`,px:48}};function t(t){return typeof t==`string`&&t in e}function n(n){if(n!=null)return typeof n==`number`?`${n}px`:t(n)?`var(--spacing-${n}, ${e[n].rem})`:n}function r(n){if(n!=null){if(typeof n==`number`)return n;if(t(n))return e[n].px;if(typeof n==`string`){if(n.endsWith(`px`)){let e=parseFloat(n);return Number.isNaN(e)?void 0:e}if(n.endsWith(`rem`)){let e=parseFloat(n);return Number.isNaN(e)?void 0:e*16}}}}function i(e){if(e!=null){if(Array.isArray(e)){let t=n(e[0]),r=n(e[1]);return t&&r?`${t} ${r}`:t||r||void 0}return n(e)}}exports.ComponentSpacingPresetMap=e,exports.isComponentSize=t,exports.resolveGap=i,exports.resolveSpacing=n,exports.resolveSpacingPixel=r;
package/dist/index6.js CHANGED
@@ -1,6 +1,63 @@
1
- // src/Typography/utils.ts
2
- function e(e) {
3
- let { customSize: t, lineHeight: n, lines: r, rows: i, ellipsis: a, textDecoration: o, textDecorationLine: s, textDecorationStyle: c, textDecorationColor: l, textDecorationThickness: u, textUnderlineOffset: d } = e, f = r ?? i ?? (typeof a == "object" ? a.rows : void 0), p = {};
4
- return t !== void 0 && (p.fontSize = typeof t == "number" ? `${t}px` : t), n !== void 0 && (p.lineHeight = n), f && (p.display = "-webkit-box", p.WebkitLineClamp = f, p.WebkitBoxOrient = "vertical", p.overflow = "hidden"), o !== void 0 && (p.textDecoration = o), s !== void 0 && (p.textDecorationLine = s), c !== void 0 && (p.textDecorationStyle = c), l !== void 0 && (p.textDecorationColor = l), u !== void 0 && (p.textDecorationThickness = typeof u == "number" ? `${u}px` : u), d !== void 0 && (p.textUnderlineOffset = typeof d == "number" ? `${d}px` : d), p;
1
+ // src/theme/spacing.ts
2
+ var e = {
3
+ xxs: {
4
+ rem: "0.25rem",
5
+ px: 4
6
+ },
7
+ xs: {
8
+ rem: "0.5rem",
9
+ px: 8
10
+ },
11
+ sm: {
12
+ rem: "0.75rem",
13
+ px: 12
14
+ },
15
+ md: {
16
+ rem: "1rem",
17
+ px: 16
18
+ },
19
+ lg: {
20
+ rem: "1.5rem",
21
+ px: 24
22
+ },
23
+ xl: {
24
+ rem: "2rem",
25
+ px: 32
26
+ },
27
+ xxl: {
28
+ rem: "3rem",
29
+ px: 48
30
+ }
31
+ };
32
+ function t(t) {
33
+ return typeof t == "string" && t in e;
5
34
  }
6
- export { e as resolveCustomTypographyStyle };
35
+ function n(n) {
36
+ if (n != null) return typeof n == "number" ? `${n}px` : t(n) ? `var(--spacing-${n}, ${e[n].rem})` : n;
37
+ }
38
+ function r(n) {
39
+ if (n != null) {
40
+ if (typeof n == "number") return n;
41
+ if (t(n)) return e[n].px;
42
+ if (typeof n == "string") {
43
+ if (n.endsWith("px")) {
44
+ let e = parseFloat(n);
45
+ return Number.isNaN(e) ? void 0 : e;
46
+ }
47
+ if (n.endsWith("rem")) {
48
+ let e = parseFloat(n);
49
+ return Number.isNaN(e) ? void 0 : e * 16;
50
+ }
51
+ }
52
+ }
53
+ }
54
+ function i(e) {
55
+ if (e != null) {
56
+ if (Array.isArray(e)) {
57
+ let t = n(e[0]), r = n(e[1]);
58
+ return t && r ? `${t} ${r}` : t || r || void 0;
59
+ }
60
+ return n(e);
61
+ }
62
+ }
63
+ export { e as ComponentSpacingPresetMap, t as isComponentSize, i as resolveGap, n as resolveSpacing, r as resolveSpacingPixel };
package/dist/index60.cjs CHANGED
@@ -1 +1 @@
1
- "use client";const e=require("./index59.cjs");let t=require("react/jsx-runtime"),n=require("react/compiler-runtime");function r(r){let i=(0,n.c)(4),a;i[0]===r?a=i[1]:({...a}=r,i[0]=r,i[1]=a);let o;return i[2]===a?o=i[3]:(o=(0,t.jsx)(e.Root,{"data-slot":`collapsible`,...a}),i[2]=a,i[3]=o),o}function i(r){let i=(0,n.c)(4),a;i[0]===r?a=i[1]:({...a}=r,i[0]=r,i[1]=a);let o;return i[2]===a?o=i[3]:(o=(0,t.jsx)(e.CollapsibleTrigger,{"data-slot":`collapsible-trigger`,...a}),i[2]=a,i[3]=o),o}function a(r){let i=(0,n.c)(4),a;i[0]===r?a=i[1]:({...a}=r,i[0]=r,i[1]=a);let o;return i[2]===a?o=i[3]:(o=(0,t.jsx)(e.CollapsibleContent,{"data-slot":`collapsible-content`,...a}),i[2]=a,i[3]=o),o}exports.Collapsible=r,exports.CollapsibleContent=a,exports.CollapsibleTrigger=i;
1
+ "use client";const e=require("./index2.cjs"),t=require("./index30.cjs"),n=require("./index31.cjs"),r=require("./index32.cjs"),i=require("./index35.cjs"),a=require("./index39.cjs"),o=require("./index57.cjs"),s=require("./index58.cjs"),c=require("./index59.cjs");let l=require("react/jsx-runtime"),u=require("react"),d=e.__toESM(u,1);u=e.__toESM(u);var f=Object.defineProperty,p=(e,t)=>f(e,`name`,{value:t,configurable:!0}),m=`Collapsible`,[h,g]=t.createContextScope(m),[_,v]=h(m),y=d.forwardRef(p(function(e,t){let{__scopeCollapsible:n,open:r,defaultOpen:a,disabled:s,onOpenChange:u,...f}=e,[p,h]=o.useControllableState({prop:r,defaultProp:a??!1,onChange:u,caller:m});return(0,l.jsx)(_,{scope:n,disabled:s,contentId:c.useId(),open:p,onOpenToggle:d.useCallback(()=>h(e=>!e),[h]),children:(0,l.jsx)(i.Primitive.div,{"data-state":T(p),"data-disabled":s?``:void 0,...f,ref:t})})},`Collapsible`)),b=`CollapsibleTrigger`,x=d.forwardRef(p(function(e,t){let{__scopeCollapsible:n,...a}=e,o=v(b,n);return(0,l.jsx)(i.Primitive.button,{type:`button`,"aria-controls":o.open?o.contentId:void 0,"aria-expanded":o.open||!1,"data-state":T(o.open),"data-disabled":o.disabled?``:void 0,disabled:o.disabled,...a,ref:t,onClick:r.composeEventHandlers(e.onClick,o.onOpenToggle)})},`CollapsibleTrigger`)),S=`CollapsibleContent`,C=d.forwardRef(p(function(e,t){let{forceMount:n,...r}=e,i=v(S,e.__scopeCollapsible);return(0,l.jsx)(s.Presence,{present:n||i.open,children:({present:e})=>(0,l.jsx)(w,{...r,ref:t,present:e})})},`CollapsibleContent`)),w=d.forwardRef(p(function(e,t){let{__scopeCollapsible:r,present:o,children:s,...c}=e,u=v(S,r),[f,p]=d.useState(o),m=d.useRef(null),h=n.useComposedRefs(t,m),g=d.useRef(0),_=g.current,y=d.useRef(0),b=y.current,x=u.open||f,C=d.useRef(x),w=d.useRef(void 0);return d.useEffect(()=>{let e=requestAnimationFrame(()=>C.current=!1);return()=>cancelAnimationFrame(e)},[]),a.useLayoutEffect(()=>{let e=m.current;if(e){w.current=w.current||{transitionDuration:e.style.transitionDuration,animationName:e.style.animationName},e.style.transitionDuration=`0s`,e.style.animationName=`none`;let t=e.getBoundingClientRect();g.current=t.height,y.current=t.width,C.current||(e.style.transitionDuration=w.current.transitionDuration,e.style.animationName=w.current.animationName),p(o)}},[u.open,o]),(0,l.jsx)(i.Primitive.div,{"data-state":T(u.open),"data-disabled":u.disabled?``:void 0,id:u.contentId,hidden:!x,...c,ref:h,style:{"--radix-collapsible-content-height":_?`${_}px`:void 0,"--radix-collapsible-content-width":b?`${b}px`:void 0,...e.style},children:x&&s})},`CollapsibleContentImpl`));function T(e){return e?`open`:`closed`}p(T,`getState`);var E=y;exports.Collapsible=y,exports.CollapsibleContent=C,exports.CollapsibleTrigger=x,exports.Root=E;
package/dist/index60.js CHANGED
@@ -1,33 +1,94 @@
1
1
  "use client";
2
- import { CollapsibleContent as e, CollapsibleTrigger as t, Root as n } from "./index59.js";
3
- import { jsx as r } from "react/jsx-runtime";
4
- import { c as i } from "react/compiler-runtime";
5
- // src/ui/collapsible.tsx
6
- function a(e) {
7
- let t = i(4), a;
8
- t[0] === e ? a = t[1] : ({...a} = e, t[0] = e, t[1] = a);
9
- let o;
10
- return t[2] === a ? o = t[3] : (o = /* @__PURE__ */ r(n, {
11
- "data-slot": "collapsible",
12
- ...a
13
- }), t[2] = a, t[3] = o), o;
2
+ import { createContextScope as e } from "./index30.js";
3
+ import { useComposedRefs as t } from "./index31.js";
4
+ import { composeEventHandlers as n } from "./index32.js";
5
+ import { Primitive as r } from "./index35.js";
6
+ import { useLayoutEffect as i } from "./index39.js";
7
+ import { useControllableState as a } from "./index57.js";
8
+ import { Presence as o } from "./index58.js";
9
+ import { useId as s } from "./index59.js";
10
+ import { jsx as c } from "react/jsx-runtime";
11
+ import * as l from "react";
12
+ // ../../node_modules/.pnpm/@radix-ui+react-collapsible@1.1.20_@types+react-dom@19.3.0_@types+react@19.3.0__@types+_75f9b408b6aa016f78c6c390e6f84227/node_modules/@radix-ui/react-collapsible/dist/index.mjs
13
+ var u = Object.defineProperty, d = (e, t) => u(e, "name", {
14
+ value: t,
15
+ configurable: !0
16
+ }), f = "Collapsible", [p, m] = e(f), [h, g] = p(f), _ = /* @__PURE__ */ l.forwardRef(/* @__PURE__ */ d(function(e, t) {
17
+ let { __scopeCollapsible: n, open: i, defaultOpen: o, disabled: u, onOpenChange: d, ...p } = e, [m, g] = a({
18
+ prop: i,
19
+ defaultProp: o ?? !1,
20
+ onChange: d,
21
+ caller: f
22
+ });
23
+ return /* @__PURE__ */ c(h, {
24
+ scope: n,
25
+ disabled: u,
26
+ contentId: s(),
27
+ open: m,
28
+ onOpenToggle: l.useCallback(() => g((e) => !e), [g]),
29
+ children: /* @__PURE__ */ c(r.div, {
30
+ "data-state": C(m),
31
+ "data-disabled": u ? "" : void 0,
32
+ ...p,
33
+ ref: t
34
+ })
35
+ });
36
+ }, "Collapsible")), v = "CollapsibleTrigger", y = /* @__PURE__ */ l.forwardRef(/* @__PURE__ */ d(function(e, t) {
37
+ let { __scopeCollapsible: i, ...a } = e, o = g(v, i);
38
+ return /* @__PURE__ */ c(r.button, {
39
+ type: "button",
40
+ "aria-controls": o.open ? o.contentId : void 0,
41
+ "aria-expanded": o.open || !1,
42
+ "data-state": C(o.open),
43
+ "data-disabled": o.disabled ? "" : void 0,
44
+ disabled: o.disabled,
45
+ ...a,
46
+ ref: t,
47
+ onClick: n(e.onClick, o.onOpenToggle)
48
+ });
49
+ }, "CollapsibleTrigger")), b = "CollapsibleContent", x = /* @__PURE__ */ l.forwardRef(/* @__PURE__ */ d(function(e, t) {
50
+ let { forceMount: n, ...r } = e, i = g(b, e.__scopeCollapsible);
51
+ return /* @__PURE__ */ c(o, {
52
+ present: n || i.open,
53
+ children: ({ present: e }) => /* @__PURE__ */ c(S, {
54
+ ...r,
55
+ ref: t,
56
+ present: e
57
+ })
58
+ });
59
+ }, "CollapsibleContent")), S = /* @__PURE__ */ l.forwardRef(/* @__PURE__ */ d(function(e, n) {
60
+ let { __scopeCollapsible: a, present: o, children: s, ...u } = e, d = g(b, a), [f, p] = l.useState(o), m = l.useRef(null), h = t(n, m), _ = l.useRef(0), v = _.current, y = l.useRef(0), x = y.current, S = d.open || f, w = l.useRef(S), T = l.useRef(void 0);
61
+ return l.useEffect(() => {
62
+ let e = requestAnimationFrame(() => w.current = !1);
63
+ return () => cancelAnimationFrame(e);
64
+ }, []), i(() => {
65
+ let e = m.current;
66
+ if (e) {
67
+ T.current = T.current || {
68
+ transitionDuration: e.style.transitionDuration,
69
+ animationName: e.style.animationName
70
+ }, e.style.transitionDuration = "0s", e.style.animationName = "none";
71
+ let t = e.getBoundingClientRect();
72
+ _.current = t.height, y.current = t.width, w.current || (e.style.transitionDuration = T.current.transitionDuration, e.style.animationName = T.current.animationName), p(o);
73
+ }
74
+ }, [d.open, o]), /* @__PURE__ */ c(r.div, {
75
+ "data-state": C(d.open),
76
+ "data-disabled": d.disabled ? "" : void 0,
77
+ id: d.contentId,
78
+ hidden: !S,
79
+ ...u,
80
+ ref: h,
81
+ style: {
82
+ "--radix-collapsible-content-height": v ? `${v}px` : void 0,
83
+ "--radix-collapsible-content-width": x ? `${x}px` : void 0,
84
+ ...e.style
85
+ },
86
+ children: S && s
87
+ });
88
+ }, "CollapsibleContentImpl"));
89
+ function C(e) {
90
+ return e ? "open" : "closed";
14
91
  }
15
- function o(e) {
16
- let n = i(4), a;
17
- n[0] === e ? a = n[1] : ({...a} = e, n[0] = e, n[1] = a);
18
- let o;
19
- return n[2] === a ? o = n[3] : (o = /* @__PURE__ */ r(t, {
20
- "data-slot": "collapsible-trigger",
21
- ...a
22
- }), n[2] = a, n[3] = o), o;
23
- }
24
- function s(t) {
25
- let n = i(4), a;
26
- n[0] === t ? a = n[1] : ({...a} = t, n[0] = t, n[1] = a);
27
- let o;
28
- return n[2] === a ? o = n[3] : (o = /* @__PURE__ */ r(e, {
29
- "data-slot": "collapsible-content",
30
- ...a
31
- }), n[2] = a, n[3] = o), o;
32
- }
33
- export { a as Collapsible, s as CollapsibleContent, o as CollapsibleTrigger };
92
+ d(C, "getState");
93
+ var w = _;
94
+ export { _ as Collapsible, x as CollapsibleContent, y as CollapsibleTrigger, w as Root };