@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/index28.js CHANGED
@@ -1,97 +1,161 @@
1
- import "react";
2
- import * as e from "@stylexjs/stylex";
3
- import { jsx as t } from "react/jsx-runtime";
4
- import { c as n } from "react/compiler-runtime";
5
- // src/ui/alert.tsx
6
- var r = {
1
+ import { Button as e } from "./index22.js";
2
+ import { Kbd as t } from "./index27.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
+ import { c as o } from "react/compiler-runtime";
7
+ // src/ui/action-bar.tsx
8
+ var s = a.createContext({ open: !1 });
9
+ function c(e) {
10
+ let t = a.useContext(s);
11
+ if (!t) throw Error(`${e} must be used within an ActionBar`);
12
+ return t;
13
+ }
14
+ var l = {
7
15
  root: {
8
- kVAEAm: "x1n2onr6",
9
- kzqmXN: "xh8yej3",
10
- kaIpWk: "x1mr5ieh",
16
+ kVAEAm: "xixxii4",
17
+ krVfgx: "x1vuu14i",
18
+ kbCHJM: "x1nrll8i",
19
+ k3aq6I: "xuuh30",
20
+ kY2c9j: "xa9119d",
21
+ k1xSpc: "x78zum5",
22
+ kGNEyG: "x6s0dn4",
23
+ kOIVth: "xdkmor2",
24
+ kWkggS: "x1mlyrtw",
25
+ kMwMTN: "x84br7x",
26
+ kaIpWk: "x7xypw4",
11
27
  kMzoRj: "xmkeg23",
12
28
  ksu8eU: "x1y0btm7",
13
- kg3NbH: "xnxx81d",
14
- k8WAf4: "xo0yzjp",
15
- kGuDYH: "xkpwil5",
16
- k1xSpc: "xrvj5dj",
17
- kumcoG: "x1pmbctz",
18
- kOIVth: "x8233eu",
19
- kGNEyG: "x7a106z",
20
- $$css: !0
21
- },
22
- variantDefault: {
23
- kWkggS: "x1rexohn",
24
29
  kVAM5u: "xb30jbz",
25
- kMwMTN: "xk0jn7w",
30
+ kg3NbH: "xco5wwd",
31
+ k8WAf4: "x1yroua3",
32
+ kGVxlE: "x18jdcd",
33
+ k1ekBW: "xwcsmn1",
34
+ kIyJzY: "x13dflua",
26
35
  $$css: !0
27
36
  },
28
- variantDestructive: {
29
- kWkggS: "x1rexohn",
30
- kVAM5u: "x1uwefn5",
31
- kMwMTN: "xuuroe4",
37
+ selection: {
38
+ k1xSpc: "x78zum5",
39
+ kGNEyG: "x6s0dn4",
40
+ kOIVth: "x1m5ztt4",
41
+ kpe85a: "xawhkjc",
32
42
  $$css: !0
33
43
  },
34
- title: {
35
- kEXP64: "x1xdureb",
36
- kLWn49: "x132q4wb",
37
- k63SB2: "xk50ysn",
38
- kb6lSQ: "x1w69ole",
44
+ group: {
45
+ k1xSpc: "x78zum5",
46
+ kGNEyG: "x6s0dn4",
47
+ kOIVth: "xvh977a",
39
48
  $$css: !0
40
49
  },
41
- description: {
42
- kEXP64: "x1xdureb",
43
- k1xSpc: "xrvj5dj",
44
- kOIVth: "xvh977a",
45
- kGuDYH: "xkpwil5",
46
- kMwMTN: "xw3nh4a",
50
+ separator: {
51
+ kzqmXN: "x1i1rx1s",
52
+ kZKoxP: "xmll18r",
53
+ kWkggS: "xwefxjc",
54
+ kUOVxO: "xiiczor",
47
55
  $$css: !0
48
56
  }
49
- }, i = {
50
- default: r.variantDefault,
51
- destructive: r.variantDestructive
52
57
  };
53
- function a({ className: n, variant: a = "default", sx: o, ...s }) {
54
- let c = e.props(r.root, i[a], o);
55
- return /* @__PURE__ */ t("div", {
56
- "data-slot": "alert",
57
- role: "alert",
58
- ...c,
59
- className: n ? `${c.className || ""} ${n}`.trim() : c.className,
60
- ...s
58
+ function u({ className: e, open: t = !0, onOpenChange: i, onEscapeKeyDown: o, sx: c, children: u, ...d }) {
59
+ if (a.useEffect(() => {
60
+ if (!t) return;
61
+ let e = (e) => {
62
+ e.key === "Escape" && (o?.(e), e.defaultPrevented || i?.(!1));
63
+ };
64
+ return window.addEventListener("keydown", e), () => window.removeEventListener("keydown", e);
65
+ }, [
66
+ t,
67
+ i,
68
+ o
69
+ ]), !t) return null;
70
+ let f = n.props(l.root, c);
71
+ return /* @__PURE__ */ r(s.Provider, {
72
+ value: {
73
+ open: t,
74
+ onOpenChange: i
75
+ },
76
+ children: /* @__PURE__ */ r("div", {
77
+ role: "toolbar",
78
+ "aria-label": "Bulk actions toolbar",
79
+ "data-slot": "action-bar",
80
+ ...f,
81
+ className: e ? `${f.className || ""} ${e}`.trim() : f.className,
82
+ ...d,
83
+ children: u
84
+ })
61
85
  });
62
86
  }
63
- function o(i) {
64
- let a = n(13), o, s, c;
65
- a[0] === i ? (o = a[1], s = a[2], c = a[3]) : ({className: o, sx: c, ...s} = i, a[0] = i, a[1] = o, a[2] = s, a[3] = c);
66
- let l;
67
- a[4] === c ? l = a[5] : (l = e.props(r.title, c), a[4] = c, a[5] = l);
68
- let u = l, d;
69
- a[6] !== o || a[7] !== u.className ? (d = o ? `${u.className || ""} ${o}`.trim() : u.className, a[6] = o, a[7] = u.className, a[8] = d) : d = a[8];
70
- let f;
71
- return a[9] !== s || a[10] !== u || a[11] !== d ? (f = /* @__PURE__ */ t("div", {
72
- "data-slot": "alert-title",
73
- ...u,
74
- className: d,
75
- ...s
76
- }), a[9] = s, a[10] = u, a[11] = d, a[12] = f) : f = a[12], f;
87
+ function d(e) {
88
+ let t = o(15), i, a, s, c;
89
+ t[0] === e ? (i = t[1], a = t[2], s = t[3], c = t[4]) : ({className: a, sx: c, children: i, ...s} = e, t[0] = e, t[1] = i, t[2] = a, t[3] = s, t[4] = c);
90
+ let u;
91
+ t[5] === c ? u = t[6] : (u = n.props(l.selection, c), t[5] = c, t[6] = u);
92
+ let d = u, f;
93
+ t[7] !== a || t[8] !== d.className ? (f = a ? `${d.className || ""} ${a}`.trim() : d.className, t[7] = a, t[8] = d.className, t[9] = f) : f = t[9];
94
+ let p;
95
+ return t[10] !== i || t[11] !== s || t[12] !== d || t[13] !== f ? (p = /* @__PURE__ */ r("div", {
96
+ "data-slot": "action-bar-selection",
97
+ ...d,
98
+ className: f,
99
+ ...s,
100
+ children: i
101
+ }), t[10] = i, t[11] = s, t[12] = d, t[13] = f, t[14] = p) : p = t[14], p;
102
+ }
103
+ function f(e) {
104
+ let t = o(15), i, a, s, c;
105
+ t[0] === e ? (i = t[1], a = t[2], s = t[3], c = t[4]) : ({className: a, sx: c, children: i, ...s} = e, t[0] = e, t[1] = i, t[2] = a, t[3] = s, t[4] = c);
106
+ let u;
107
+ t[5] === c ? u = t[6] : (u = n.props(l.group, c), t[5] = c, t[6] = u);
108
+ let d = u, f;
109
+ t[7] !== a || t[8] !== d.className ? (f = a ? `${d.className || ""} ${a}`.trim() : d.className, t[7] = a, t[8] = d.className, t[9] = f) : f = t[9];
110
+ let p;
111
+ return t[10] !== i || t[11] !== s || t[12] !== d || t[13] !== f ? (p = /* @__PURE__ */ r("div", {
112
+ "data-slot": "action-bar-group",
113
+ ...d,
114
+ className: f,
115
+ ...s,
116
+ children: i
117
+ }), t[10] = i, t[11] = s, t[12] = d, t[13] = f, t[14] = p) : p = t[14], p;
118
+ }
119
+ function p({ variant: t = "ghost", size: n = "sm", className: i, ...a }) {
120
+ return /* @__PURE__ */ r(e, {
121
+ variant: t,
122
+ size: n,
123
+ "data-slot": "action-bar-item",
124
+ className: i,
125
+ ...a
126
+ });
77
127
  }
78
- function s(i) {
79
- let a = n(13), o, s, c;
80
- a[0] === i ? (o = a[1], s = a[2], c = a[3]) : ({className: o, sx: c, ...s} = i, a[0] = i, a[1] = o, a[2] = s, a[3] = c);
81
- let l;
82
- a[4] === c ? l = a[5] : (l = e.props(r.description, c), a[4] = c, a[5] = l);
83
- let u = l, d;
84
- a[6] !== o || a[7] !== u.className ? (d = o ? `${u.className || ""} ${o}`.trim() : u.className, a[6] = o, a[7] = u.className, a[8] = d) : d = a[8];
128
+ function m(e) {
129
+ let t = o(13), i, a, s;
130
+ t[0] === e ? (i = t[1], a = t[2], s = t[3]) : ({className: i, sx: s, ...a} = e, t[0] = e, t[1] = i, t[2] = a, t[3] = s);
131
+ let c;
132
+ t[4] === s ? c = t[5] : (c = n.props(l.separator, s), t[4] = s, t[5] = c);
133
+ let u = c, d;
134
+ t[6] !== i || t[7] !== u.className ? (d = i ? `${u.className || ""} ${i}`.trim() : u.className, t[6] = i, t[7] = u.className, t[8] = d) : d = t[8];
85
135
  let f;
86
- return a[9] !== s || a[10] !== u || a[11] !== d ? (f = /* @__PURE__ */ t("div", {
87
- "data-slot": "alert-description",
136
+ return t[9] !== a || t[10] !== u || t[11] !== d ? (f = /* @__PURE__ */ r("div", {
137
+ role: "separator",
138
+ "aria-orientation": "vertical",
139
+ "data-slot": "action-bar-separator",
88
140
  ...u,
89
141
  className: d,
90
- ...s
91
- }), a[9] = s, a[10] = u, a[11] = d, a[12] = f) : f = a[12], f;
142
+ ...a
143
+ }), t[9] = a, t[10] = u, t[11] = d, t[12] = f) : f = t[12], f;
92
144
  }
93
- function c(t) {
94
- let n = t?.variant || "default";
95
- return e.props(r.root, i[n]).className || "";
145
+ function h({ variant: n = "ghost", size: a = "sm", showShortcut: o = !0, onClick: s, children: l = "Clear", ...u }) {
146
+ let { onOpenChange: d } = c("ActionBarClose");
147
+ return /* @__PURE__ */ i(e, {
148
+ variant: n,
149
+ size: a,
150
+ "data-slot": "action-bar-close",
151
+ onClick: (e) => {
152
+ s?.(e), !e.defaultPrevented && d?.(!1);
153
+ },
154
+ ...u,
155
+ children: [l, o && /* @__PURE__ */ r(t, {
156
+ size: "xs",
157
+ children: "ESC"
158
+ })]
159
+ });
96
160
  }
97
- export { a as Alert, s as AlertDescription, o as AlertTitle, c as alertVariants };
161
+ export { u as ActionBar, h as ActionBarClose, f as ActionBarGroup, p as ActionBarItem, d as ActionBarSelection, m as ActionBarSeparator };
package/dist/index29.cjs CHANGED
@@ -1 +1 @@
1
- const e=require("./index2.cjs");let t=require("react"),n=e.__toESM(t,1);t=e.__toESM(t);let r=require("react/jsx-runtime");var i=Object.defineProperty,a=(e,t)=>i(e,`name`,{value:t,configurable:!0});function o(e,t){let i=n.createContext(t);i.displayName=e+`Context`;let o=a(e=>{let{children:t,...a}=e,o=n.useMemo(()=>a,Object.values(a));return(0,r.jsx)(i.Provider,{value:o,children:t})},`Provider`);o.displayName=e+`Provider`;function s(r,a={}){let{optional:o=!1}=a,s=n.useContext(i);if(s)return s;if(t!==void 0)return t;if(!o)throw Error(`\`${r}\` must be used within \`${e}\``)}return a(s,`useContext`),[o,s]}a(o,`createContext`);function s(e,t=[]){let i=[];function o(t,o){let s=n.createContext(o);s.displayName=t+`Context`;let c=i.length;i=[...i,o];let l=a(t=>{let{scope:i,children:a,...o}=t,l=i?.[e]?.[c]||s,u=n.useMemo(()=>o,Object.values(o));return(0,r.jsx)(l.Provider,{value:u,children:a})},`Provider`);l.displayName=t+`Provider`;function u(r,i,a={}){let{optional:l=!1}=a,u=i?.[e]?.[c]||s,d=n.useContext(u);if(d)return d;if(o!==void 0)return o;if(!l)throw Error(`\`${r}\` must be used within \`${t}\``)}return a(u,`useContext`),[l,u]}a(o,`createContext`);let s=a(()=>{let t=i.map(e=>n.createContext(e));return a(function(r){let i=r?.[e]||t;return n.useMemo(()=>({[`__scope${e}`]:{...r,[e]:i}}),[r,i])},`useScope`)},`createScope`);return s.scopeName=e,[o,c(s,...t)]}a(s,`createContextScope`);function c(...e){let t=e[0];if(e.length===1)return t;let r=a(()=>{let r=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return a(function(e){let i=r.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return n.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])},`useComposedScopes`)},`createScope`);return r.scopeName=t.scopeName,r}a(c,`composeContextScopes`),exports.createContext=o,exports.createContextScope=s;
1
+ const e=require("./index2.cjs");let t=require("@stylexjs/stylex");t=e.__toESM(t,1);let n=require("react/jsx-runtime"),r=require("react");r=e.__toESM(r,1);let i=require("react/compiler-runtime");var a={root:{kVAEAm:`x1n2onr6`,kzqmXN:`xh8yej3`,kaIpWk:`x1mr5ieh`,kMzoRj:`xmkeg23`,ksu8eU:`x1y0btm7`,kg3NbH:`xnxx81d`,k8WAf4:`xo0yzjp`,kGuDYH:`xkpwil5`,k1xSpc:`xrvj5dj`,kumcoG:`x1pmbctz`,kOIVth:`x8233eu`,kGNEyG:`x7a106z`,$$css:!0},variantDefault:{kWkggS:`x1rexohn`,kVAM5u:`xb30jbz`,kMwMTN:`xk0jn7w`,$$css:!0},variantDestructive:{kWkggS:`x1rexohn`,kVAM5u:`x1uwefn5`,kMwMTN:`xuuroe4`,$$css:!0},title:{kEXP64:`x1xdureb`,kLWn49:`x132q4wb`,k63SB2:`xk50ysn`,kb6lSQ:`x1w69ole`,$$css:!0},description:{kEXP64:`x1xdureb`,k1xSpc:`xrvj5dj`,kOIVth:`xvh977a`,kGuDYH:`xkpwil5`,kMwMTN:`xw3nh4a`,$$css:!0}},o={default:a.variantDefault,destructive:a.variantDestructive};function s({className:e,variant:r=`default`,sx:i,...s}){let c=t.props(a.root,o[r],i);return(0,n.jsx)(`div`,{"data-slot":`alert`,role:`alert`,...c,className:e?`${c.className||``} ${e}`.trim():c.className,...s})}function c(e){let r=(0,i.c)(13),o,s,c;r[0]===e?(o=r[1],s=r[2],c=r[3]):({className:o,sx:c,...s}=e,r[0]=e,r[1]=o,r[2]=s,r[3]=c);let l;r[4]===c?l=r[5]:(l=t.props(a.title,c),r[4]=c,r[5]=l);let u=l,d;r[6]!==o||r[7]!==u.className?(d=o?`${u.className||``} ${o}`.trim():u.className,r[6]=o,r[7]=u.className,r[8]=d):d=r[8];let f;return r[9]!==s||r[10]!==u||r[11]!==d?(f=(0,n.jsx)(`div`,{"data-slot":`alert-title`,...u,className:d,...s}),r[9]=s,r[10]=u,r[11]=d,r[12]=f):f=r[12],f}function l(e){let r=(0,i.c)(13),o,s,c;r[0]===e?(o=r[1],s=r[2],c=r[3]):({className:o,sx:c,...s}=e,r[0]=e,r[1]=o,r[2]=s,r[3]=c);let l;r[4]===c?l=r[5]:(l=t.props(a.description,c),r[4]=c,r[5]=l);let u=l,d;r[6]!==o||r[7]!==u.className?(d=o?`${u.className||``} ${o}`.trim():u.className,r[6]=o,r[7]=u.className,r[8]=d):d=r[8];let f;return r[9]!==s||r[10]!==u||r[11]!==d?(f=(0,n.jsx)(`div`,{"data-slot":`alert-description`,...u,className:d,...s}),r[9]=s,r[10]=u,r[11]=d,r[12]=f):f=r[12],f}function u(e){let n=e?.variant||`default`;return t.props(a.root,o[n]).className||``}exports.Alert=s,exports.AlertDescription=l,exports.AlertTitle=c,exports.alertVariants=u;
package/dist/index29.js CHANGED
@@ -1,89 +1,97 @@
1
- import * as e from "react";
1
+ import * as e from "@stylexjs/stylex";
2
2
  import { jsx as t } from "react/jsx-runtime";
3
- // ../../node_modules/.pnpm/@radix-ui+react-context@1.2.2_@types+react@19.3.0_react@19.3.1/node_modules/@radix-ui/react-context/dist/index.mjs
4
- var n = Object.defineProperty, r = (e, t) => n(e, "name", {
5
- value: t,
6
- configurable: !0
7
- });
8
- // @__NO_SIDE_EFFECTS__
9
- function i(n, i) {
10
- let a = e.createContext(i);
11
- a.displayName = n + "Context";
12
- let o = /* @__PURE__ */ r((n) => {
13
- let { children: r, ...i } = n, o = e.useMemo(() => i, Object.values(i));
14
- return /* @__PURE__ */ t(a.Provider, {
15
- value: o,
16
- children: r
17
- });
18
- }, "Provider");
19
- o.displayName = n + "Provider";
20
- function s(t, r = {}) {
21
- let { optional: o = !1 } = r, s = e.useContext(a);
22
- if (s) return s;
23
- if (i !== void 0) return i;
24
- if (!o) throw Error(`\`${t}\` must be used within \`${n}\``);
3
+ import "react";
4
+ import { c as n } from "react/compiler-runtime";
5
+ // src/ui/alert.tsx
6
+ var r = {
7
+ root: {
8
+ kVAEAm: "x1n2onr6",
9
+ kzqmXN: "xh8yej3",
10
+ kaIpWk: "x1mr5ieh",
11
+ kMzoRj: "xmkeg23",
12
+ ksu8eU: "x1y0btm7",
13
+ kg3NbH: "xnxx81d",
14
+ k8WAf4: "xo0yzjp",
15
+ kGuDYH: "xkpwil5",
16
+ k1xSpc: "xrvj5dj",
17
+ kumcoG: "x1pmbctz",
18
+ kOIVth: "x8233eu",
19
+ kGNEyG: "x7a106z",
20
+ $$css: !0
21
+ },
22
+ variantDefault: {
23
+ kWkggS: "x1rexohn",
24
+ kVAM5u: "xb30jbz",
25
+ kMwMTN: "xk0jn7w",
26
+ $$css: !0
27
+ },
28
+ variantDestructive: {
29
+ kWkggS: "x1rexohn",
30
+ kVAM5u: "x1uwefn5",
31
+ kMwMTN: "xuuroe4",
32
+ $$css: !0
33
+ },
34
+ title: {
35
+ kEXP64: "x1xdureb",
36
+ kLWn49: "x132q4wb",
37
+ k63SB2: "xk50ysn",
38
+ kb6lSQ: "x1w69ole",
39
+ $$css: !0
40
+ },
41
+ description: {
42
+ kEXP64: "x1xdureb",
43
+ k1xSpc: "xrvj5dj",
44
+ kOIVth: "xvh977a",
45
+ kGuDYH: "xkpwil5",
46
+ kMwMTN: "xw3nh4a",
47
+ $$css: !0
25
48
  }
26
- return r(s, "useContext"), [o, s];
49
+ }, i = {
50
+ default: r.variantDefault,
51
+ destructive: r.variantDestructive
52
+ };
53
+ function a({ className: n, variant: a = "default", sx: o, ...s }) {
54
+ let c = e.props(r.root, i[a], o);
55
+ return /* @__PURE__ */ t("div", {
56
+ "data-slot": "alert",
57
+ role: "alert",
58
+ ...c,
59
+ className: n ? `${c.className || ""} ${n}`.trim() : c.className,
60
+ ...s
61
+ });
27
62
  }
28
- r(i, "createContext");
29
- // @__NO_SIDE_EFFECTS__
30
- function a(n, i = []) {
31
- let a = [];
32
- function s(i, o) {
33
- let s = e.createContext(o);
34
- s.displayName = i + "Context";
35
- let c = a.length;
36
- a = [...a, o];
37
- let l = /* @__PURE__ */ r((r) => {
38
- let { scope: i, children: a, ...o } = r, l = i?.[n]?.[c] || s, u = e.useMemo(() => o, Object.values(o));
39
- return /* @__PURE__ */ t(l.Provider, {
40
- value: u,
41
- children: a
42
- });
43
- }, "Provider");
44
- l.displayName = i + "Provider";
45
- function u(t, r, a = {}) {
46
- let { optional: l = !1 } = a, u = r?.[n]?.[c] || s, d = e.useContext(u);
47
- if (d) return d;
48
- if (o !== void 0) return o;
49
- if (!l) throw Error(`\`${t}\` must be used within \`${i}\``);
50
- }
51
- return r(u, "useContext"), [l, u];
52
- }
53
- r(s, "createContext");
54
- let c = /* @__PURE__ */ r(() => {
55
- let t = a.map((t) => e.createContext(t));
56
- return /* @__PURE__ */ r(function(r) {
57
- let i = r?.[n] || t;
58
- return e.useMemo(() => ({ [`__scope${n}`]: {
59
- ...r,
60
- [n]: i
61
- } }), [r, i]);
62
- }, "useScope");
63
- }, "createScope");
64
- return c.scopeName = n, [s, o(c, ...i)];
63
+ function o(i) {
64
+ let a = n(13), o, s, c;
65
+ a[0] === i ? (o = a[1], s = a[2], c = a[3]) : ({className: o, sx: c, ...s} = i, a[0] = i, a[1] = o, a[2] = s, a[3] = c);
66
+ let l;
67
+ a[4] === c ? l = a[5] : (l = e.props(r.title, c), a[4] = c, a[5] = l);
68
+ let u = l, d;
69
+ a[6] !== o || a[7] !== u.className ? (d = o ? `${u.className || ""} ${o}`.trim() : u.className, a[6] = o, a[7] = u.className, a[8] = d) : d = a[8];
70
+ let f;
71
+ return a[9] !== s || a[10] !== u || a[11] !== d ? (f = /* @__PURE__ */ t("div", {
72
+ "data-slot": "alert-title",
73
+ ...u,
74
+ className: d,
75
+ ...s
76
+ }), a[9] = s, a[10] = u, a[11] = d, a[12] = f) : f = a[12], f;
77
+ }
78
+ function s(i) {
79
+ let a = n(13), o, s, c;
80
+ a[0] === i ? (o = a[1], s = a[2], c = a[3]) : ({className: o, sx: c, ...s} = i, a[0] = i, a[1] = o, a[2] = s, a[3] = c);
81
+ let l;
82
+ a[4] === c ? l = a[5] : (l = e.props(r.description, c), a[4] = c, a[5] = l);
83
+ let u = l, d;
84
+ a[6] !== o || a[7] !== u.className ? (d = o ? `${u.className || ""} ${o}`.trim() : u.className, a[6] = o, a[7] = u.className, a[8] = d) : d = a[8];
85
+ let f;
86
+ return a[9] !== s || a[10] !== u || a[11] !== d ? (f = /* @__PURE__ */ t("div", {
87
+ "data-slot": "alert-description",
88
+ ...u,
89
+ className: d,
90
+ ...s
91
+ }), a[9] = s, a[10] = u, a[11] = d, a[12] = f) : f = a[12], f;
65
92
  }
66
- r(a, "createContextScope");
67
- function o(...t) {
68
- let n = t[0];
69
- if (t.length === 1) return n;
70
- let i = /* @__PURE__ */ r(() => {
71
- let i = t.map((e) => ({
72
- useScope: e(),
73
- scopeName: e.scopeName
74
- }));
75
- return /* @__PURE__ */ r(function(t) {
76
- let r = i.reduce((e, { useScope: n, scopeName: r }) => {
77
- let i = n(t)[`__scope${r}`];
78
- return {
79
- ...e,
80
- ...i
81
- };
82
- }, {});
83
- return e.useMemo(() => ({ [`__scope${n.scopeName}`]: r }), [r]);
84
- }, "useComposedScopes");
85
- }, "createScope");
86
- return i.scopeName = n.scopeName, i;
93
+ function c(t) {
94
+ let n = t?.variant || "default";
95
+ return e.props(r.root, i[n]).className || "";
87
96
  }
88
- r(o, "composeContextScopes");
89
- export { i as createContext, a as createContextScope };
97
+ export { a as Alert, s as AlertDescription, o as AlertTitle, c as alertVariants };
package/dist/index30.cjs CHANGED
@@ -1 +1 @@
1
- const e=require("./index2.cjs");let t=require("react"),n=e.__toESM(t,1);t=e.__toESM(t);var r=Object.defineProperty,i=(e,t)=>r(e,`name`,{value:t,configurable:!0});function a(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}i(a,`setRef`);function o(...e){return t=>{let n=!1,r=e.map(e=>{let r=a(e,t);return!n&&typeof r==`function`&&(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];typeof n==`function`?n():a(e[t],null)}}}}i(o,`composeRefs`);function s(...e){return n.useCallback(o(...e),e)}i(s,`useComposedRefs`),exports.composeRefs=o,exports.useComposedRefs=s;
1
+ const e=require("./index2.cjs");let t=require("react/jsx-runtime"),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,n){let i=r.createContext(n);i.displayName=e+`Context`;let o=a(e=>{let{children:n,...a}=e,o=r.useMemo(()=>a,Object.values(a));return(0,t.jsx)(i.Provider,{value:o,children:n})},`Provider`);o.displayName=e+`Provider`;function s(t,a={}){let{optional:o=!1}=a,s=r.useContext(i);if(s)return s;if(n!==void 0)return n;if(!o)throw Error(`\`${t}\` must be used within \`${e}\``)}return a(s,`useContext`),[o,s]}a(o,`createContext`);function s(e,n=[]){let i=[];function o(n,o){let s=r.createContext(o);s.displayName=n+`Context`;let c=i.length;i=[...i,o];let l=a(n=>{let{scope:i,children:a,...o}=n,l=i?.[e]?.[c]||s,u=r.useMemo(()=>o,Object.values(o));return(0,t.jsx)(l.Provider,{value:u,children:a})},`Provider`);l.displayName=n+`Provider`;function u(t,i,a={}){let{optional:l=!1}=a,u=i?.[e]?.[c]||s,d=r.useContext(u);if(d)return d;if(o!==void 0)return o;if(!l)throw Error(`\`${t}\` must be used within \`${n}\``)}return a(u,`useContext`),[l,u]}a(o,`createContext`);let s=a(()=>{let t=i.map(e=>r.createContext(e));return a(function(n){let i=n?.[e]||t;return r.useMemo(()=>({[`__scope${e}`]:{...n,[e]:i}}),[n,i])},`useScope`)},`createScope`);return s.scopeName=e,[o,c(s,...n)]}a(s,`createContextScope`);function c(...e){let t=e[0];if(e.length===1)return t;let n=a(()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return a(function(e){let i=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return r.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])},`useComposedScopes`)},`createScope`);return n.scopeName=t.scopeName,n}a(c,`composeContextScopes`),exports.createContext=o,exports.createContextScope=s;
package/dist/index30.js CHANGED
@@ -1,31 +1,89 @@
1
- import * as e from "react";
2
- // ../../node_modules/.pnpm/@radix-ui+react-compose-refs@1.1.5_@types+react@19.3.0_react@19.3.1/node_modules/@radix-ui/react-compose-refs/dist/index.mjs
3
- var t = Object.defineProperty, n = (e, n) => t(e, "name", {
4
- value: n,
1
+ import { jsx as e } from "react/jsx-runtime";
2
+ import * as t from "react";
3
+ // ../../node_modules/.pnpm/@radix-ui+react-context@1.2.2_@types+react@19.3.0_react@19.3.1/node_modules/@radix-ui/react-context/dist/index.mjs
4
+ var n = Object.defineProperty, r = (e, t) => n(e, "name", {
5
+ value: t,
5
6
  configurable: !0
6
7
  });
7
- function r(e, t) {
8
- if (typeof e == "function") return e(t);
9
- e != null && (e.current = t);
10
- }
11
- n(r, "setRef");
12
- function i(...e) {
13
- return (t) => {
14
- let n = !1, i = e.map((e) => {
15
- let i = r(e, t);
16
- return !n && typeof i == "function" && (n = !0), i;
8
+ // @__NO_SIDE_EFFECTS__
9
+ function i(n, i) {
10
+ let a = t.createContext(i);
11
+ a.displayName = n + "Context";
12
+ let o = /* @__PURE__ */ r((n) => {
13
+ let { children: r, ...i } = n, o = t.useMemo(() => i, Object.values(i));
14
+ return /* @__PURE__ */ e(a.Provider, {
15
+ value: o,
16
+ children: r
17
17
  });
18
- if (n) return () => {
19
- for (let t = 0; t < i.length; t++) {
20
- let n = i[t];
21
- typeof n == "function" ? n() : r(e[t], null);
22
- }
23
- };
24
- };
18
+ }, "Provider");
19
+ o.displayName = n + "Provider";
20
+ function s(e, r = {}) {
21
+ let { optional: o = !1 } = r, s = t.useContext(a);
22
+ if (s) return s;
23
+ if (i !== void 0) return i;
24
+ if (!o) throw Error(`\`${e}\` must be used within \`${n}\``);
25
+ }
26
+ return r(s, "useContext"), [o, s];
27
+ }
28
+ r(i, "createContext");
29
+ // @__NO_SIDE_EFFECTS__
30
+ function a(n, i = []) {
31
+ let a = [];
32
+ function s(i, o) {
33
+ let s = t.createContext(o);
34
+ s.displayName = i + "Context";
35
+ let c = a.length;
36
+ a = [...a, o];
37
+ let l = /* @__PURE__ */ r((r) => {
38
+ let { scope: i, children: a, ...o } = r, l = i?.[n]?.[c] || s, u = t.useMemo(() => o, Object.values(o));
39
+ return /* @__PURE__ */ e(l.Provider, {
40
+ value: u,
41
+ children: a
42
+ });
43
+ }, "Provider");
44
+ l.displayName = i + "Provider";
45
+ function u(e, r, a = {}) {
46
+ let { optional: l = !1 } = a, u = r?.[n]?.[c] || s, d = t.useContext(u);
47
+ if (d) return d;
48
+ if (o !== void 0) return o;
49
+ if (!l) throw Error(`\`${e}\` must be used within \`${i}\``);
50
+ }
51
+ return r(u, "useContext"), [l, u];
52
+ }
53
+ r(s, "createContext");
54
+ let c = /* @__PURE__ */ r(() => {
55
+ let e = a.map((e) => t.createContext(e));
56
+ return /* @__PURE__ */ r(function(r) {
57
+ let i = r?.[n] || e;
58
+ return t.useMemo(() => ({ [`__scope${n}`]: {
59
+ ...r,
60
+ [n]: i
61
+ } }), [r, i]);
62
+ }, "useScope");
63
+ }, "createScope");
64
+ return c.scopeName = n, [s, o(c, ...i)];
25
65
  }
26
- n(i, "composeRefs");
27
- function a(...t) {
28
- return e.useCallback(i(...t), t);
66
+ r(a, "createContextScope");
67
+ function o(...e) {
68
+ let n = e[0];
69
+ if (e.length === 1) return n;
70
+ let i = /* @__PURE__ */ r(() => {
71
+ let i = e.map((e) => ({
72
+ useScope: e(),
73
+ scopeName: e.scopeName
74
+ }));
75
+ return /* @__PURE__ */ r(function(e) {
76
+ let r = i.reduce((t, { useScope: n, scopeName: r }) => {
77
+ let i = n(e)[`__scope${r}`];
78
+ return {
79
+ ...t,
80
+ ...i
81
+ };
82
+ }, {});
83
+ return t.useMemo(() => ({ [`__scope${n.scopeName}`]: r }), [r]);
84
+ }, "useComposedScopes");
85
+ }, "createScope");
86
+ return i.scopeName = n.scopeName, i;
29
87
  }
30
- n(a, "useComposedRefs");
31
- export { i as composeRefs, a as useComposedRefs };
88
+ r(o, "composeContextScopes");
89
+ export { i as createContext, a as createContextScope };
package/dist/index31.cjs CHANGED
@@ -1 +1 @@
1
- var e=Object.defineProperty,t=(t,n)=>e(t,`name`,{value:n,configurable:!0}),n=!!(typeof window<`u`&&window.document&&window.document.createElement);function r(e,n,{checkForDefaultPrevented:r=!0}={}){return t(function(t){if(e?.(t),r===!1||!t||!t.defaultPrevented)return n?.(t)},`handleEvent`)}t(r,`composeEventHandlers`);function i(e){if(!n)throw Error(`Cannot access window outside of the DOM`);return e?.ownerDocument?.defaultView??window}t(i,`getOwnerWindow`);function a(e){if(!n)throw Error(`Cannot access document outside of the DOM`);return e?.ownerDocument??document}t(a,`getOwnerDocument`);function o(e,t=!1){let{activeElement:n}=a(e);if(!n?.nodeName)return null;if(s(n)&&n.contentDocument)return o(n.contentDocument.body,t);if(t){let e=n.getAttribute(`aria-activedescendant`);if(e){let t=a(n).getElementById(e);if(t)return t}}return n}t(o,`getActiveElement`);function s(e){return e.tagName===`IFRAME`}t(s,`isFrame`),exports.canUseDOM=n,exports.composeEventHandlers=r,exports.getActiveElement=o,exports.getOwnerDocument=a,exports.getOwnerWindow=i,exports.isFrame=s;
1
+ const e=require("./index2.cjs");let t=require("react"),n=e.__toESM(t,1);t=e.__toESM(t);var r=Object.defineProperty,i=(e,t)=>r(e,`name`,{value:t,configurable:!0});function a(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}i(a,`setRef`);function o(...e){return t=>{let n=!1,r=e.map(e=>{let r=a(e,t);return!n&&typeof r==`function`&&(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];typeof n==`function`?n():a(e[t],null)}}}}i(o,`composeRefs`);function s(...e){return n.useCallback(o(...e),e)}i(s,`useComposedRefs`),exports.composeRefs=o,exports.useComposedRefs=s;
package/dist/index31.js CHANGED
@@ -1,40 +1,31 @@
1
- // ../../node_modules/.pnpm/@radix-ui+primitive@1.1.7/node_modules/@radix-ui/primitive/dist/index.mjs
2
- var e = Object.defineProperty, t = (t, n) => e(t, "name", {
1
+ import * as e from "react";
2
+ // ../../node_modules/.pnpm/@radix-ui+react-compose-refs@1.1.5_@types+react@19.3.0_react@19.3.1/node_modules/@radix-ui/react-compose-refs/dist/index.mjs
3
+ var t = Object.defineProperty, n = (e, n) => t(e, "name", {
3
4
  value: n,
4
5
  configurable: !0
5
- }), n = !!(typeof window < "u" && window.document && window.document.createElement);
6
- function r(e, n, { checkForDefaultPrevented: r = !0 } = {}) {
7
- return /* @__PURE__ */ t(function(t) {
8
- if (e?.(t), r === !1 || !t || !t.defaultPrevented) return n?.(t);
9
- }, "handleEvent");
6
+ });
7
+ function r(e, t) {
8
+ if (typeof e == "function") return e(t);
9
+ e != null && (e.current = t);
10
10
  }
11
- t(r, "composeEventHandlers");
12
- function i(e) {
13
- if (!n) throw Error("Cannot access window outside of the DOM");
14
- return e?.ownerDocument?.defaultView ?? window;
11
+ n(r, "setRef");
12
+ function i(...e) {
13
+ return (t) => {
14
+ let n = !1, i = e.map((e) => {
15
+ let i = r(e, t);
16
+ return !n && typeof i == "function" && (n = !0), i;
17
+ });
18
+ if (n) return () => {
19
+ for (let t = 0; t < i.length; t++) {
20
+ let n = i[t];
21
+ typeof n == "function" ? n() : r(e[t], null);
22
+ }
23
+ };
24
+ };
15
25
  }
16
- t(i, "getOwnerWindow");
17
- function a(e) {
18
- if (!n) throw Error("Cannot access document outside of the DOM");
19
- return e?.ownerDocument ?? document;
26
+ n(i, "composeRefs");
27
+ function a(...t) {
28
+ return e.useCallback(i(...t), t);
20
29
  }
21
- t(a, "getOwnerDocument");
22
- function o(e, t = !1) {
23
- let { activeElement: n } = a(e);
24
- if (!n?.nodeName) return null;
25
- if (s(n) && n.contentDocument) return o(n.contentDocument.body, t);
26
- if (t) {
27
- let e = n.getAttribute("aria-activedescendant");
28
- if (e) {
29
- let t = a(n).getElementById(e);
30
- if (t) return t;
31
- }
32
- }
33
- return n;
34
- }
35
- t(o, "getActiveElement");
36
- function s(e) {
37
- return e.tagName === "IFRAME";
38
- }
39
- t(s, "isFrame");
40
- export { n as canUseDOM, r as composeEventHandlers, o as getActiveElement, a as getOwnerDocument, i as getOwnerWindow, s as isFrame };
30
+ n(a, "useComposedRefs");
31
+ export { i as composeRefs, a as useComposedRefs };