@anoki/fse-ui 1.0.689 → 1.0.691

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 (444) hide show
  1. package/dist/index.cjs10.js +1 -1
  2. package/dist/index.cjs128.js +1 -1
  3. package/dist/index.cjs129.js +1 -1
  4. package/dist/index.cjs130.js +1 -1
  5. package/dist/index.cjs131.js +1 -1
  6. package/dist/index.cjs132.js +1 -1
  7. package/dist/index.cjs133.js +1 -1
  8. package/dist/index.cjs134.js +1 -1
  9. package/dist/index.cjs135.js +1 -1
  10. package/dist/index.cjs136.js +1 -1
  11. package/dist/index.cjs137.js +1 -1
  12. package/dist/index.cjs138.js +1 -1
  13. package/dist/index.cjs139.js +1 -1
  14. package/dist/index.cjs140.js +1 -1
  15. package/dist/index.cjs141.js +1 -1
  16. package/dist/index.cjs142.js +1 -1
  17. package/dist/index.cjs143.js +1 -1
  18. package/dist/index.cjs144.js +1 -1
  19. package/dist/index.cjs145.js +1 -1
  20. package/dist/index.cjs146.js +1 -1
  21. package/dist/index.cjs147.js +1 -1
  22. package/dist/index.cjs148.js +1 -1
  23. package/dist/index.cjs149.js +1 -1
  24. package/dist/index.cjs153.js +1 -1
  25. package/dist/index.cjs154.js +1 -1
  26. package/dist/index.cjs155.js +1 -1
  27. package/dist/index.cjs157.js +1 -1
  28. package/dist/index.cjs158.js +1 -1
  29. package/dist/index.cjs159.js +1 -1
  30. package/dist/index.cjs160.js +1 -1
  31. package/dist/index.cjs161.js +1 -1
  32. package/dist/index.cjs162.js +1 -1
  33. package/dist/index.cjs163.js +1 -1
  34. package/dist/index.cjs164.js +1 -1
  35. package/dist/index.cjs165.js +1 -1
  36. package/dist/index.cjs167.js +1 -1
  37. package/dist/index.cjs168.js +1 -1
  38. package/dist/index.cjs169.js +1 -1
  39. package/dist/index.cjs170.js +1 -1
  40. package/dist/index.cjs171.js +1 -1
  41. package/dist/index.cjs172.js +1 -1
  42. package/dist/index.cjs173.js +1 -1
  43. package/dist/index.cjs175.js +1 -1
  44. package/dist/index.cjs176.js +1 -1
  45. package/dist/index.cjs177.js +1 -1
  46. package/dist/index.cjs178.js +1 -1
  47. package/dist/index.cjs179.js +1 -1
  48. package/dist/index.cjs180.js +1 -1
  49. package/dist/index.cjs181.js +1 -1
  50. package/dist/index.cjs188.js +1 -1
  51. package/dist/index.cjs22.js +1 -1
  52. package/dist/index.cjs224.js +1 -1
  53. package/dist/index.cjs224.js.map +1 -1
  54. package/dist/index.cjs225.js +2 -0
  55. package/dist/index.cjs225.js.map +1 -0
  56. package/dist/index.cjs234.js +1 -1
  57. package/dist/index.cjs240.js +1 -1
  58. package/dist/index.cjs243.js +1 -1
  59. package/dist/index.cjs244.js +1 -1
  60. package/dist/index.cjs25.js +1 -1
  61. package/dist/index.cjs251.js +1 -1
  62. package/dist/index.cjs261.js +1 -1
  63. package/dist/index.cjs265.js +1 -1
  64. package/dist/index.cjs267.js +1 -1
  65. package/dist/index.cjs274.js +1 -1
  66. package/dist/index.cjs279.js +1 -1
  67. package/dist/index.cjs286.js +1 -1
  68. package/dist/index.cjs292.js +1 -1
  69. package/dist/index.cjs293.js +1 -1
  70. package/dist/index.cjs294.js +1 -1
  71. package/dist/index.cjs333.js +1 -1
  72. package/dist/index.cjs346.js +1 -1
  73. package/dist/index.cjs361.js +1 -1
  74. package/dist/index.cjs362.js +1 -1
  75. package/dist/index.cjs372.js +1 -1
  76. package/dist/index.cjs373.js +1 -1
  77. package/dist/index.cjs379.js +1 -1
  78. package/dist/index.cjs379.js.map +1 -1
  79. package/dist/index.cjs380.js +1 -1
  80. package/dist/index.cjs380.js.map +1 -1
  81. package/dist/index.cjs382.js +1 -1
  82. package/dist/index.cjs382.js.map +1 -1
  83. package/dist/index.cjs385.js +1 -1
  84. package/dist/index.cjs385.js.map +1 -1
  85. package/dist/{index.cjs381.js → index.cjs386.js} +1 -1
  86. package/dist/{index.cjs381.js.map → index.cjs386.js.map} +1 -1
  87. package/dist/index.cjs387.js +1 -1
  88. package/dist/index.cjs387.js.map +1 -1
  89. package/dist/index.cjs388.js +2 -0
  90. package/dist/index.cjs388.js.map +1 -0
  91. package/dist/index.cjs389.js +2 -0
  92. package/dist/index.cjs389.js.map +1 -0
  93. package/dist/index.cjs390.js +1 -1
  94. package/dist/index.cjs390.js.map +1 -1
  95. package/dist/index.cjs391.js +1 -1
  96. package/dist/index.cjs391.js.map +1 -1
  97. package/dist/index.cjs392.js +1 -1
  98. package/dist/index.cjs392.js.map +1 -1
  99. package/dist/index.cjs393.js +1 -1
  100. package/dist/index.cjs393.js.map +1 -1
  101. package/dist/index.cjs394.js +1 -1
  102. package/dist/index.cjs394.js.map +1 -1
  103. package/dist/index.cjs395.js +1 -1
  104. package/dist/index.cjs395.js.map +1 -1
  105. package/dist/index.cjs396.js +1 -1
  106. package/dist/index.cjs396.js.map +1 -1
  107. package/dist/index.cjs397.js +1 -1
  108. package/dist/index.cjs397.js.map +1 -1
  109. package/dist/index.cjs398.js +1 -1
  110. package/dist/index.cjs398.js.map +1 -1
  111. package/dist/index.cjs399.js +1 -1
  112. package/dist/index.cjs399.js.map +1 -1
  113. package/dist/index.cjs400.js +1 -1
  114. package/dist/index.cjs400.js.map +1 -1
  115. package/dist/index.cjs401.js +1 -1
  116. package/dist/index.cjs401.js.map +1 -1
  117. package/dist/index.cjs402.js +1 -1
  118. package/dist/index.cjs402.js.map +1 -1
  119. package/dist/{index.cjs420.js → index.cjs403.js} +2 -2
  120. package/dist/{index.cjs420.js.map → index.cjs403.js.map} +1 -1
  121. package/dist/index.cjs404.js +2 -0
  122. package/dist/index.cjs404.js.map +1 -0
  123. package/dist/{index.cjs421.js → index.cjs405.js} +2 -2
  124. package/dist/{index.cjs421.js.map → index.cjs405.js.map} +1 -1
  125. package/dist/index.cjs406.js +2 -0
  126. package/dist/index.cjs406.js.map +1 -0
  127. package/dist/index.cjs407.js +2 -0
  128. package/dist/index.cjs407.js.map +1 -0
  129. package/dist/index.cjs410.js +2 -0
  130. package/dist/index.cjs410.js.map +1 -0
  131. package/dist/{index.cjs424.js → index.cjs411.js} +2 -2
  132. package/dist/{index.cjs424.js.map → index.cjs411.js.map} +1 -1
  133. package/dist/index.cjs412.js +2 -0
  134. package/dist/index.cjs412.js.map +1 -0
  135. package/dist/index.cjs413.js +2 -0
  136. package/dist/index.cjs413.js.map +1 -0
  137. package/dist/index.cjs414.js +2 -0
  138. package/dist/index.cjs414.js.map +1 -0
  139. package/dist/index.cjs425.js +1 -1
  140. package/dist/index.cjs425.js.map +1 -1
  141. package/dist/index.cjs426.js +1 -1
  142. package/dist/index.cjs426.js.map +1 -1
  143. package/dist/index.cjs427.js +1 -1
  144. package/dist/index.cjs427.js.map +1 -1
  145. package/dist/index.cjs434.js +1 -1
  146. package/dist/index.cjs435.js +1 -1
  147. package/dist/index.cjs439.js +1 -1
  148. package/dist/index.cjs440.js +1 -1
  149. package/dist/index.cjs441.js +1 -1
  150. package/dist/index.cjs446.js +1 -1
  151. package/dist/index.cjs446.js.map +1 -1
  152. package/dist/index.cjs447.js +1 -1
  153. package/dist/index.cjs447.js.map +1 -1
  154. package/dist/index.cjs448.js +1 -1
  155. package/dist/index.cjs448.js.map +1 -1
  156. package/dist/index.cjs449.js +1 -1
  157. package/dist/index.cjs449.js.map +1 -1
  158. package/dist/index.cjs452.js +1 -1
  159. package/dist/index.cjs455.js +1 -1
  160. package/dist/index.cjs455.js.map +1 -1
  161. package/dist/index.cjs456.js +1 -1
  162. package/dist/index.cjs456.js.map +1 -1
  163. package/dist/index.cjs457.js +1 -1
  164. package/dist/index.cjs457.js.map +1 -1
  165. package/dist/index.cjs458.js +1 -1
  166. package/dist/index.cjs458.js.map +1 -1
  167. package/dist/index.cjs459.js +1 -1
  168. package/dist/index.cjs459.js.map +1 -1
  169. package/dist/index.cjs460.js +1 -1
  170. package/dist/index.cjs460.js.map +1 -1
  171. package/dist/index.cjs461.js +1 -1
  172. package/dist/index.cjs461.js.map +1 -1
  173. package/dist/index.cjs462.js +1 -1
  174. package/dist/index.cjs462.js.map +1 -1
  175. package/dist/index.cjs463.js +1 -1
  176. package/dist/index.cjs463.js.map +1 -1
  177. package/dist/index.cjs464.js +1 -1
  178. package/dist/index.cjs464.js.map +1 -1
  179. package/dist/index.cjs465.js +1 -1
  180. package/dist/index.cjs465.js.map +1 -1
  181. package/dist/index.cjs466.js +1 -1
  182. package/dist/index.cjs466.js.map +1 -1
  183. package/dist/index.cjs470.js +1 -1
  184. package/dist/index.cjs470.js.map +1 -1
  185. package/dist/index.cjs471.js +1 -1
  186. package/dist/index.cjs471.js.map +1 -1
  187. package/dist/index.cjs472.js +1 -1
  188. package/dist/index.cjs472.js.map +1 -1
  189. package/dist/index.cjs473.js +1 -1
  190. package/dist/index.cjs473.js.map +1 -1
  191. package/dist/index.cjs474.js +1 -1
  192. package/dist/index.cjs474.js.map +1 -1
  193. package/dist/index.cjs475.js +1 -1
  194. package/dist/index.cjs475.js.map +1 -1
  195. package/dist/index.cjs476.js +1 -1
  196. package/dist/index.cjs476.js.map +1 -1
  197. package/dist/index.cjs57.js +1 -1
  198. package/dist/index.cjs6.js +1 -1
  199. package/dist/index.cjs7.js +1 -1
  200. package/dist/index.cjs8.js +1 -1
  201. package/dist/index.cjs9.js +1 -1
  202. package/dist/index.es10.js +2 -2
  203. package/dist/index.es128.js +1 -1
  204. package/dist/index.es129.js +1 -1
  205. package/dist/index.es130.js +1 -1
  206. package/dist/index.es131.js +1 -1
  207. package/dist/index.es132.js +1 -1
  208. package/dist/index.es133.js +1 -1
  209. package/dist/index.es134.js +1 -1
  210. package/dist/index.es135.js +1 -1
  211. package/dist/index.es136.js +1 -1
  212. package/dist/index.es137.js +1 -1
  213. package/dist/index.es138.js +1 -1
  214. package/dist/index.es139.js +1 -1
  215. package/dist/index.es140.js +1 -1
  216. package/dist/index.es141.js +1 -1
  217. package/dist/index.es142.js +1 -1
  218. package/dist/index.es143.js +1 -1
  219. package/dist/index.es144.js +1 -1
  220. package/dist/index.es145.js +1 -1
  221. package/dist/index.es146.js +1 -1
  222. package/dist/index.es147.js +1 -1
  223. package/dist/index.es148.js +1 -1
  224. package/dist/index.es149.js +1 -1
  225. package/dist/index.es153.js +1 -1
  226. package/dist/index.es154.js +1 -1
  227. package/dist/index.es155.js +1 -1
  228. package/dist/index.es157.js +1 -1
  229. package/dist/index.es158.js +1 -1
  230. package/dist/index.es159.js +1 -1
  231. package/dist/index.es160.js +1 -1
  232. package/dist/index.es161.js +1 -1
  233. package/dist/index.es162.js +1 -1
  234. package/dist/index.es163.js +1 -1
  235. package/dist/index.es164.js +1 -1
  236. package/dist/index.es165.js +1 -1
  237. package/dist/index.es167.js +1 -1
  238. package/dist/index.es168.js +1 -1
  239. package/dist/index.es169.js +1 -1
  240. package/dist/index.es170.js +1 -1
  241. package/dist/index.es171.js +1 -1
  242. package/dist/index.es172.js +1 -1
  243. package/dist/index.es173.js +1 -1
  244. package/dist/index.es175.js +1 -1
  245. package/dist/index.es176.js +1 -1
  246. package/dist/index.es177.js +1 -1
  247. package/dist/index.es178.js +1 -1
  248. package/dist/index.es179.js +1 -1
  249. package/dist/index.es180.js +1 -1
  250. package/dist/index.es181.js +1 -1
  251. package/dist/index.es188.js +1 -1
  252. package/dist/index.es22.js +1 -1
  253. package/dist/index.es224.js +2 -27
  254. package/dist/index.es224.js.map +1 -1
  255. package/dist/index.es225.js +30 -0
  256. package/dist/index.es225.js.map +1 -0
  257. package/dist/index.es234.js +1 -1
  258. package/dist/index.es240.js +7 -7
  259. package/dist/index.es243.js +1 -1
  260. package/dist/index.es244.js +1 -1
  261. package/dist/index.es25.js +1 -1
  262. package/dist/index.es251.js +8 -8
  263. package/dist/index.es261.js +1 -1
  264. package/dist/index.es265.js +1 -1
  265. package/dist/index.es267.js +14 -14
  266. package/dist/index.es274.js +1 -1
  267. package/dist/index.es279.js +1 -1
  268. package/dist/index.es286.js +1 -1
  269. package/dist/index.es292.js +1 -1
  270. package/dist/index.es293.js +1 -1
  271. package/dist/index.es294.js +7 -7
  272. package/dist/index.es333.js +4 -4
  273. package/dist/index.es346.js +8 -8
  274. package/dist/index.es361.js +2 -2
  275. package/dist/index.es362.js +3 -3
  276. package/dist/index.es372.js +1 -1
  277. package/dist/index.es373.js +1 -1
  278. package/dist/index.es379.js +2 -7
  279. package/dist/index.es379.js.map +1 -1
  280. package/dist/index.es380.js +2 -27
  281. package/dist/index.es380.js.map +1 -1
  282. package/dist/index.es382.js +15 -30
  283. package/dist/index.es382.js.map +1 -1
  284. package/dist/index.es385.js +26 -10
  285. package/dist/index.es385.js.map +1 -1
  286. package/dist/{index.es381.js → index.es386.js} +1 -1
  287. package/dist/{index.es381.js.map → index.es386.js.map} +1 -1
  288. package/dist/index.es387.js +7 -15
  289. package/dist/index.es387.js.map +1 -1
  290. package/dist/index.es388.js +33 -0
  291. package/dist/index.es388.js.map +1 -0
  292. package/dist/index.es389.js +9 -0
  293. package/dist/index.es389.js.map +1 -0
  294. package/dist/index.es390.js +24 -5
  295. package/dist/index.es390.js.map +1 -1
  296. package/dist/index.es391.js +67 -23
  297. package/dist/index.es391.js.map +1 -1
  298. package/dist/index.es392.js +31 -67
  299. package/dist/index.es392.js.map +1 -1
  300. package/dist/index.es393.js +622 -2
  301. package/dist/index.es393.js.map +1 -1
  302. package/dist/index.es394.js +11 -2
  303. package/dist/index.es394.js.map +1 -1
  304. package/dist/index.es395.js +9 -13
  305. package/dist/index.es395.js.map +1 -1
  306. package/dist/index.es396.js +4 -125
  307. package/dist/index.es396.js.map +1 -1
  308. package/dist/index.es397.js +47 -129
  309. package/dist/index.es397.js.map +1 -1
  310. package/dist/index.es398.js +46 -14
  311. package/dist/index.es398.js.map +1 -1
  312. package/dist/index.es399.js +7 -14
  313. package/dist/index.es399.js.map +1 -1
  314. package/dist/index.es400.js +124 -8
  315. package/dist/index.es400.js.map +1 -1
  316. package/dist/index.es401.js +15 -50
  317. package/dist/index.es401.js.map +1 -1
  318. package/dist/index.es402.js +129 -47
  319. package/dist/index.es402.js.map +1 -1
  320. package/dist/{index.es420.js → index.es403.js} +10 -10
  321. package/dist/{index.es420.js.map → index.es403.js.map} +1 -1
  322. package/dist/index.es404.js +17 -0
  323. package/dist/index.es404.js.map +1 -0
  324. package/dist/{index.es421.js → index.es405.js} +10 -10
  325. package/dist/{index.es421.js.map → index.es405.js.map} +1 -1
  326. package/dist/index.es406.js +53 -0
  327. package/dist/index.es406.js.map +1 -0
  328. package/dist/index.es407.js +12 -0
  329. package/dist/index.es407.js.map +1 -0
  330. package/dist/index.es410.js +18 -0
  331. package/dist/index.es410.js.map +1 -0
  332. package/dist/{index.es424.js → index.es411.js} +2 -2
  333. package/dist/{index.es424.js.map → index.es411.js.map} +1 -1
  334. package/dist/index.es412.js +208 -0
  335. package/dist/index.es412.js.map +1 -0
  336. package/dist/index.es413.js +25 -0
  337. package/dist/index.es413.js.map +1 -0
  338. package/dist/index.es414.js +396 -0
  339. package/dist/index.es414.js.map +1 -0
  340. package/dist/index.es425.js +22 -202
  341. package/dist/index.es425.js.map +1 -1
  342. package/dist/index.es426.js +27 -20
  343. package/dist/index.es426.js.map +1 -1
  344. package/dist/index.es427.js +5 -393
  345. package/dist/index.es427.js.map +1 -1
  346. package/dist/index.es434.js +1 -1
  347. package/dist/index.es435.js +1 -1
  348. package/dist/index.es439.js +1 -1
  349. package/dist/index.es440.js +1 -1
  350. package/dist/index.es441.js +1 -1
  351. package/dist/index.es446.js +11 -21
  352. package/dist/index.es446.js.map +1 -1
  353. package/dist/index.es447.js +26 -11
  354. package/dist/index.es447.js.map +1 -1
  355. package/dist/index.es448.js +4 -27
  356. package/dist/index.es448.js.map +1 -1
  357. package/dist/index.es449.js +22 -4
  358. package/dist/index.es449.js.map +1 -1
  359. package/dist/index.es452.js +2 -2
  360. package/dist/index.es455.js +5 -10
  361. package/dist/index.es455.js.map +1 -1
  362. package/dist/index.es456.js +4 -178
  363. package/dist/index.es456.js.map +1 -1
  364. package/dist/index.es457.js +4 -3
  365. package/dist/index.es457.js.map +1 -1
  366. package/dist/index.es458.js +9 -132
  367. package/dist/index.es458.js.map +1 -1
  368. package/dist/index.es459.js +56 -5
  369. package/dist/index.es459.js.map +1 -1
  370. package/dist/index.es460.js +8 -4
  371. package/dist/index.es460.js.map +1 -1
  372. package/dist/index.es461.js +5 -4
  373. package/dist/index.es461.js.map +1 -1
  374. package/dist/index.es462.js +532 -9
  375. package/dist/index.es462.js.map +1 -1
  376. package/dist/index.es463.js +8 -54
  377. package/dist/index.es463.js.map +1 -1
  378. package/dist/index.es464.js +177 -7
  379. package/dist/index.es464.js.map +1 -1
  380. package/dist/index.es465.js +3 -5
  381. package/dist/index.es465.js.map +1 -1
  382. package/dist/index.es466.js +122 -522
  383. package/dist/index.es466.js.map +1 -1
  384. package/dist/index.es470.js +2 -4
  385. package/dist/index.es470.js.map +1 -1
  386. package/dist/index.es471.js +2 -3
  387. package/dist/index.es471.js.map +1 -1
  388. package/dist/index.es472.js +3 -2
  389. package/dist/index.es472.js.map +1 -1
  390. package/dist/index.es473.js +2 -4
  391. package/dist/index.es473.js.map +1 -1
  392. package/dist/index.es474.js +3 -4
  393. package/dist/index.es474.js.map +1 -1
  394. package/dist/index.es475.js +4 -3
  395. package/dist/index.es475.js.map +1 -1
  396. package/dist/index.es476.js +6 -2
  397. package/dist/index.es476.js.map +1 -1
  398. package/dist/index.es57.js +1 -1
  399. package/dist/index.es6.js +1 -1
  400. package/dist/index.es7.js +1 -1
  401. package/dist/index.es8.js +1 -1
  402. package/dist/index.es9.js +2 -2
  403. package/package.json +1 -1
  404. package/dist/index.cjs226.js +0 -2
  405. package/dist/index.cjs226.js.map +0 -1
  406. package/dist/index.cjs383.js +0 -2
  407. package/dist/index.cjs383.js.map +0 -1
  408. package/dist/index.cjs384.js +0 -2
  409. package/dist/index.cjs384.js.map +0 -1
  410. package/dist/index.cjs417.js +0 -2
  411. package/dist/index.cjs417.js.map +0 -1
  412. package/dist/index.cjs418.js +0 -2
  413. package/dist/index.cjs418.js.map +0 -1
  414. package/dist/index.cjs419.js +0 -2
  415. package/dist/index.cjs419.js.map +0 -1
  416. package/dist/index.cjs422.js +0 -2
  417. package/dist/index.cjs422.js.map +0 -1
  418. package/dist/index.cjs428.js +0 -2
  419. package/dist/index.cjs428.js.map +0 -1
  420. package/dist/index.cjs429.js +0 -2
  421. package/dist/index.cjs429.js.map +0 -1
  422. package/dist/index.cjs430.js +0 -2
  423. package/dist/index.cjs430.js.map +0 -1
  424. package/dist/index.es226.js +0 -5
  425. package/dist/index.es226.js.map +0 -1
  426. package/dist/index.es383.js +0 -36
  427. package/dist/index.es383.js.map +0 -1
  428. package/dist/index.es384.js +0 -625
  429. package/dist/index.es384.js.map +0 -1
  430. package/dist/index.es417.js +0 -14
  431. package/dist/index.es417.js.map +0 -1
  432. package/dist/index.es418.js +0 -49
  433. package/dist/index.es418.js.map +0 -1
  434. package/dist/index.es419.js +0 -11
  435. package/dist/index.es419.js.map +0 -1
  436. package/dist/index.es422.js +0 -7
  437. package/dist/index.es422.js.map +0 -1
  438. package/dist/index.es428.js +0 -28
  439. package/dist/index.es428.js.map +0 -1
  440. package/dist/index.es429.js +0 -32
  441. package/dist/index.es429.js.map +0 -1
  442. package/dist/index.es430.js +0 -8
  443. package/dist/index.es430.js.map +0 -1
  444. /package/dist/components/ui/{ConsentModal/ConsentModalFooter/ConsentModalFooter.css → DoctorModal/DoctorModalFooter/DoctorModalFooter.css} +0 -0
@@ -0,0 +1,30 @@
1
+ const p = [
2
+ "gap",
3
+ "m",
4
+ "mx",
5
+ "my",
6
+ "mt",
7
+ "mr",
8
+ "mb",
9
+ "ml",
10
+ "p",
11
+ "px",
12
+ "py",
13
+ "pt",
14
+ "pr",
15
+ "pb",
16
+ "pl",
17
+ "br",
18
+ "br-t",
19
+ "br-r",
20
+ "br-b",
21
+ "br-l",
22
+ "min-h",
23
+ "min-w",
24
+ "max-h",
25
+ "max-w"
26
+ ], a = (m) => p.map((r) => m[r] ? `${r}-${m[r]}` : "").filter(Boolean);
27
+ export {
28
+ a as createSpacingClasses
29
+ };
30
+ //# sourceMappingURL=index.es225.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.es225.js","sources":["../src/theme/spacing.ts"],"sourcesContent":["export type SpacingKey =\n | \"x4\"\n | \"x8\"\n | \"x12\"\n | \"x16\"\n | \"x20\"\n | \"x24\"\n | \"x28\"\n | \"x32\"\n | \"x36\"\n | \"x40\"\n | \"x44\"\n | \"x48\"\n | \"x52\"\n | \"x56\"\n | \"x60\"\n | \"x64\"\n | \"x68\"\n | \"x72\"\n | \"x76\"\n | \"x80\"\n | \"x84\"\n | \"x88\"\n | \"x92\"\n | \"x96\"\n | \"x100\"\n | \"x104\";\n\nexport type SpacingProps = {\n gap?: SpacingKey;\n m?: SpacingKey; // margin\n mx?: SpacingKey; // margin x\n my?: SpacingKey; // margin y\n mt?: SpacingKey; // margin top\n mr?: SpacingKey; // margin bottom\n mb?: SpacingKey; // margin right\n ml?: SpacingKey; // margin left\n p?: SpacingKey; // padding\n px?: SpacingKey; // padding x\n py?: SpacingKey; // padding y\n pt?: SpacingKey; // padding top\n pr?: SpacingKey; // padding bottom\n pb?: SpacingKey; // padding right\n pl?: SpacingKey; // padding left\n br?: SpacingKey; // border-radius\n \"br-t\"?: SpacingKey; // border-radius top\n \"br-r\"?: SpacingKey; // border-radius right\n \"br-b\"?: SpacingKey; // border-radius bottom\n \"br-l\"?: SpacingKey; // border-radius left\n \"min-h\"?: SpacingKey; // min-height\n \"min-w\"?: SpacingKey; // min-width\n \"max-h\"?: SpacingKey; // max-height\n \"max-w\"?: SpacingKey; // max-width\n};\n\nexport type SpacingPropsKeys = keyof SpacingProps;\nconst spacingPropsKeys: SpacingPropsKeys[] = [\n \"gap\",\n \"m\",\n \"mx\",\n \"my\",\n \"mt\",\n \"mr\",\n \"mb\",\n \"ml\",\n \"p\",\n \"px\",\n \"py\",\n \"pt\",\n \"pr\",\n \"pb\",\n \"pl\",\n \"br\",\n \"br-t\",\n \"br-r\",\n \"br-b\",\n \"br-l\",\n \"min-h\",\n \"min-w\",\n \"max-h\",\n \"max-w\",\n];\n\nexport const createSpacingClasses = <TProps extends SpacingProps>(\n props: TProps,\n) => {\n return spacingPropsKeys\n .map((key) => (props[key] ? `${key}-${props[key]}` : \"\"))\n .filter(Boolean);\n};\n"],"names":["spacingPropsKeys","createSpacingClasses","props","key"],"mappings":"AAwDA,MAAMA,IAAuC;AAAA,EAC3C;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,GAEaC,IAAuB,CAClCC,MAEOF,EACJ,IAAI,CAACG,MAASD,EAAMC,CAAG,IAAI,GAAGA,CAAG,IAAID,EAAMC,CAAG,CAAC,KAAK,EAAG,EACvD,OAAO,OAAO;"}
@@ -1,6 +1,6 @@
1
1
  import { j as s } from "./index.es209.js";
2
2
  import { clsx as a } from "./index.es211.js";
3
- import { createColorClasses as e } from "./index.es226.js";
3
+ import { createColorClasses as e } from "./index.es224.js";
4
4
  import './components/ui/Divider/Divider.css';/* empty css */
5
5
  const p = ({
6
6
  direction: o = "horizontal",
@@ -1,11 +1,11 @@
1
1
  import * as p from "react";
2
- import { composeEventHandlers as m } from "./index.es379.js";
3
- import { composeRefs as E } from "./index.es380.js";
4
- import { createContextScope as S } from "./index.es381.js";
5
- import { useControllableState as P } from "./index.es382.js";
6
- import { Primitive as y } from "./index.es383.js";
7
- import { createMenuScope as D, Root as O, Anchor as T, Portal as j, Content as G, Group as k, Item as L, Label as K, CheckboxItem as U, RadioGroup as B, RadioItem as F, ItemIndicator as H, Separator as W, Arrow as $, SubTrigger as X, SubContent as q } from "./index.es384.js";
8
- import { useId as g } from "./index.es385.js";
2
+ import { composeEventHandlers as m } from "./index.es387.js";
3
+ import { composeRefs as E } from "./index.es385.js";
4
+ import { createContextScope as S } from "./index.es386.js";
5
+ import { useControllableState as P } from "./index.es388.js";
6
+ import { Primitive as y } from "./index.es392.js";
7
+ import { createMenuScope as D, Root as O, Anchor as T, Portal as j, Content as G, Group as k, Item as L, Label as K, CheckboxItem as U, RadioGroup as B, RadioItem as F, ItemIndicator as H, Separator as W, Arrow as $, SubTrigger as X, SubContent as q } from "./index.es393.js";
8
+ import { useId as g } from "./index.es394.js";
9
9
  import { j as a } from "./index.es209.js";
10
10
  var M = "DropdownMenu", [z, bo] = S(
11
11
  M,
@@ -1,6 +1,6 @@
1
1
  import { j as e } from "./index.es209.js";
2
2
  import { clsx as t } from "./index.es211.js";
3
- import { createColorClasses as a } from "./index.es226.js";
3
+ import { createColorClasses as a } from "./index.es224.js";
4
4
  const x = ({
5
5
  width: r = 56,
6
6
  height: s = 10,
@@ -3,7 +3,7 @@ import { Button as m } from "./index.es25.js";
3
3
  import { HeaderTopBanner as y } from "./index.es21.js";
4
4
  import { useState as g, useRef as w, useCallback as C, useEffect as u } from "react";
5
5
  import { clsx as r } from "./index.es211.js";
6
- import { useFocusTrap as N } from "./index.es387.js";
6
+ import { useFocusTrap as N } from "./index.es382.js";
7
7
  import { Container as k } from "./index.es6.js";
8
8
  import './components/navigations/HeaderMobile/HeaderMobile.css';/* empty css */
9
9
  import { Col as L } from "./index.es10.js";
@@ -1,5 +1,5 @@
1
1
  import { j as t } from "./index.es209.js";
2
- import { createColorClasses as I } from "./index.es226.js";
2
+ import { createColorClasses as I } from "./index.es224.js";
3
3
  import { clsx as N } from "./index.es211.js";
4
4
  import './components/ui/Button/Button.css';/* empty css */
5
5
  import { Spinner as l } from "./index.es166.js";
@@ -1,12 +1,12 @@
1
1
  import * as n from "react";
2
- import { useComposedRefs as N } from "./index.es380.js";
3
- import { createContextScope as M } from "./index.es381.js";
4
- import { composeEventHandlers as S } from "./index.es379.js";
5
- import { useControllableState as O } from "./index.es382.js";
6
- import { usePrevious as A } from "./index.es390.js";
7
- import { useSize as B } from "./index.es391.js";
8
- import { Presence as H } from "./index.es392.js";
9
- import { Primitive as j } from "./index.es383.js";
2
+ import { useComposedRefs as N } from "./index.es385.js";
3
+ import { createContextScope as M } from "./index.es386.js";
4
+ import { composeEventHandlers as S } from "./index.es387.js";
5
+ import { useControllableState as O } from "./index.es388.js";
6
+ import { usePrevious as A } from "./index.es389.js";
7
+ import { useSize as B } from "./index.es390.js";
8
+ import { Presence as H } from "./index.es391.js";
9
+ import { Primitive as j } from "./index.es392.js";
10
10
  import { j as f } from "./index.es209.js";
11
11
  var R = "Checkbox", [K, Y] = M(R), [L, q] = K(R), I = n.forwardRef(
12
12
  (e, l) => {
@@ -1,4 +1,4 @@
1
- import { useCopyToClipboard as s } from "./index.es395.js";
1
+ import { useCopyToClipboard as s } from "./index.es410.js";
2
2
  import { useState as i } from "react";
3
3
  const d = () => {
4
4
  const [e, t] = s(), [p, o] = i(!1);
@@ -1,6 +1,6 @@
1
1
  import { j as C } from "./index.es209.js";
2
2
  import { clsx as i } from "./index.es211.js";
3
- import { createColorClasses as l } from "./index.es226.js";
3
+ import { createColorClasses as l } from "./index.es224.js";
4
4
  const d = ({
5
5
  width: s = 24,
6
6
  height: t = 24,
@@ -1,18 +1,18 @@
1
1
  import * as s from "react";
2
- import { composeEventHandlers as p } from "./index.es379.js";
3
- import { useComposedRefs as C } from "./index.es380.js";
4
- import { createContextScope as B, createContext as H } from "./index.es381.js";
5
- import { useId as x } from "./index.es385.js";
6
- import { useControllableState as V } from "./index.es382.js";
7
- import { DismissableLayer as q } from "./index.es396.js";
8
- import { FocusScope as K } from "./index.es397.js";
9
- import { Portal as U } from "./index.es398.js";
10
- import { Presence as R } from "./index.es392.js";
11
- import { Primitive as m } from "./index.es383.js";
12
- import { useFocusGuards as Y } from "./index.es399.js";
13
- import Z from "./index.es400.js";
14
- import { hideOthers as z } from "./index.es401.js";
15
- import { createSlot as J } from "./index.es402.js";
2
+ import { composeEventHandlers as p } from "./index.es387.js";
3
+ import { useComposedRefs as C } from "./index.es385.js";
4
+ import { createContextScope as B, createContext as H } from "./index.es386.js";
5
+ import { useId as x } from "./index.es394.js";
6
+ import { useControllableState as V } from "./index.es388.js";
7
+ import { DismissableLayer as q } from "./index.es400.js";
8
+ import { FocusScope as K } from "./index.es402.js";
9
+ import { Portal as U } from "./index.es404.js";
10
+ import { Presence as R } from "./index.es391.js";
11
+ import { Primitive as m } from "./index.es392.js";
12
+ import { useFocusGuards as Y } from "./index.es401.js";
13
+ import Z from "./index.es407.js";
14
+ import { hideOthers as z } from "./index.es406.js";
15
+ import { createSlot as J } from "./index.es397.js";
16
16
  import { j as i } from "./index.es209.js";
17
17
  var _ = "Dialog", [N, he] = B(_), [Q, u] = N(_), P = (e) => {
18
18
  const {
@@ -1,5 +1,5 @@
1
1
  import { j as t } from "./index.es209.js";
2
- import './components/ui/ConsentModal/ConsentModalFooter/ConsentModalFooter.css';/* empty css */
2
+ import './components/ui/DoctorModal/DoctorModalFooter/DoctorModalFooter.css';/* empty css */
3
3
  const s = ({ children: o }) => /* @__PURE__ */ t.jsx("footer", { className: "ui-consent-modal-footer bg-white shadow", children: o });
4
4
  export {
5
5
  s as ConsentModalFooter
@@ -1,5 +1,5 @@
1
1
  import { j as t } from "./index.es209.js";
2
- import './components/ui/ConsentModal/ConsentModalFooter/ConsentModalFooter.css';/* empty css */
2
+ import './components/ui/DoctorModal/DoctorModalFooter/DoctorModalFooter.css';/* empty css */
3
3
  const s = ({ children: o }) => /* @__PURE__ */ t.jsx("footer", { className: "ui-consent-modal-footer bg-white shadow", children: o });
4
4
  export {
5
5
  s as DoctorModalFooter
@@ -1,5 +1,5 @@
1
1
  import { j as t } from "./index.es209.js";
2
- import './components/ui/ConsentModal/ConsentModalFooter/ConsentModalFooter.css';/* empty css */
2
+ import './components/ui/DoctorModal/DoctorModalFooter/DoctorModalFooter.css';/* empty css */
3
3
  const s = ({
4
4
  children: o
5
5
  }) => /* @__PURE__ */ t.jsx("footer", { className: "ui-consent-modal-footer bg-white shadow", children: o });
@@ -1,5 +1,5 @@
1
1
  import { j as C } from "./index.es209.js";
2
- import { createColorClasses as f } from "./index.es226.js";
2
+ import { createColorClasses as f } from "./index.es224.js";
3
3
  import { clsx as x } from "./index.es211.js";
4
4
  const j = ({
5
5
  className: t,
@@ -1,6 +1,6 @@
1
1
  import { j as a } from "./index.es209.js";
2
2
  import './components/ui/Section/Description/description.css';/* empty css */
3
- import { createColorClasses as n } from "./index.es226.js";
3
+ import { createColorClasses as n } from "./index.es224.js";
4
4
  import { clsx as m } from "./index.es211.js";
5
5
  const u = ({
6
6
  fs: t = "6",
@@ -1,11 +1,11 @@
1
1
  import * as s from "react";
2
- import { composeEventHandlers as T } from "./index.es379.js";
3
- import { useComposedRefs as _ } from "./index.es380.js";
4
- import { createContextScope as H } from "./index.es381.js";
5
- import { useControllableState as I } from "./index.es382.js";
6
- import { usePrevious as M } from "./index.es390.js";
7
- import { useSize as N } from "./index.es391.js";
8
- import { Primitive as w } from "./index.es383.js";
2
+ import { composeEventHandlers as T } from "./index.es387.js";
3
+ import { useComposedRefs as _ } from "./index.es385.js";
4
+ import { createContextScope as H } from "./index.es386.js";
5
+ import { useControllableState as I } from "./index.es388.js";
6
+ import { usePrevious as M } from "./index.es389.js";
7
+ import { useSize as N } from "./index.es390.js";
8
+ import { Primitive as w } from "./index.es392.js";
9
9
  import { j as p } from "./index.es209.js";
10
10
  var S = "Switch", [B, J] = H(S), [q, z] = B(S), C = s.forwardRef(
11
11
  (e, n) => {
@@ -1,9 +1,9 @@
1
1
  import * as l from "react";
2
- import { createContextScope as T } from "./index.es381.js";
3
- import { useComposedRefs as A } from "./index.es380.js";
2
+ import { createContextScope as T } from "./index.es386.js";
3
+ import { useComposedRefs as A } from "./index.es385.js";
4
4
  import { createDialogScope as v, Root as O, Portal as j, Overlay as b, WarningProvider as w, Content as M, Title as I, Description as L, Close as f, Trigger as $ } from "./index.es267.js";
5
- import { composeEventHandlers as F } from "./index.es379.js";
6
- import { createSlottable as G } from "./index.es402.js";
5
+ import { composeEventHandlers as F } from "./index.es387.js";
6
+ import { createSlottable as G } from "./index.es397.js";
7
7
  import { j as i } from "./index.es209.js";
8
8
  var D = "AlertDialog", [W, te] = T(D, [
9
9
  v
@@ -1,12 +1,12 @@
1
1
  import * as e from "react";
2
- import l from "./index.es459.js";
3
- import { scrollAreaPropDefs as r } from "./index.es460.js";
4
- import { extractMarginProps as E } from "./index.es461.js";
5
- import { getMarginStyles as z } from "./index.es462.js";
6
- import { getResponsiveClassNames as i } from "./index.es463.js";
7
- import { getSubtree as C } from "./index.es464.js";
8
- import { mergeStyles as R } from "./index.es465.js";
9
- import { Root as V, Viewport as $, Scrollbar as m, Thumb as n, Corner as w } from "./index.es466.js";
2
+ import l from "./index.es455.js";
3
+ import { scrollAreaPropDefs as r } from "./index.es456.js";
4
+ import { extractMarginProps as E } from "./index.es457.js";
5
+ import { getMarginStyles as z } from "./index.es458.js";
6
+ import { getResponsiveClassNames as i } from "./index.es459.js";
7
+ import { getSubtree as C } from "./index.es460.js";
8
+ import { mergeStyles as R } from "./index.es461.js";
9
+ import { Root as V, Viewport as $, Scrollbar as m, Thumb as n, Corner as w } from "./index.es462.js";
10
10
  const D = e.forwardRef((p, u) => {
11
11
  const { rest: d, ...f } = E(p), [S, N] = z(f), { asChild: t, children: A, className: b, style: h, type: s, scrollHideDelay: y = s !== "scroll" ? 0 : void 0, dir: P, size: o = r.size.default, radius: c = r.radius.default, scrollbars: a = r.scrollbars.default, ...v } = d;
12
12
  return e.createElement(V, { type: s, scrollHideDelay: y, className: l("rt-ScrollAreaRoot", S, b), style: R(N, h), asChild: t }, C({ asChild: t, children: A }, (g) => e.createElement(e.Fragment, null, e.createElement($, { ...v, ref: u, className: "rt-ScrollAreaViewport" }, g), e.createElement("div", { className: "rt-ScrollAreaViewportFocusRing" }), a !== "vertical" ? e.createElement(m, { "data-radius": c, orientation: "horizontal", className: l("rt-ScrollAreaScrollbar", i({ className: "rt-r-size", value: o, propValues: r.size.values })) }, e.createElement(n, { className: "rt-ScrollAreaThumb" })) : null, a !== "horizontal" ? e.createElement(m, { "data-radius": c, orientation: "vertical", className: l("rt-ScrollAreaScrollbar", i({ className: "rt-r-size", value: o, propValues: r.size.values })) }, e.createElement(n, { className: "rt-ScrollAreaThumb" })) : null, a === "both" ? e.createElement(w, { className: "rt-ScrollAreaCorner" }) : null)));
@@ -1,5 +1,5 @@
1
- import { c as w } from "./index.es455.js";
2
- import { m as l } from "./index.es456.js";
1
+ import { c as w } from "./index.es463.js";
2
+ import { m as l } from "./index.es464.js";
3
3
  function N(x) {
4
4
  let {
5
5
  swiper: a,
@@ -1,6 +1,6 @@
1
- import { c as $ } from "./index.es457.js";
2
- import { c as F } from "./index.es455.js";
3
- import { m, a as E, f as T, h as S } from "./index.es456.js";
1
+ import { c as $ } from "./index.es465.js";
2
+ import { c as F } from "./index.es463.js";
3
+ import { m, a as E, f as T, h as S } from "./index.es464.js";
4
4
  function N(I) {
5
5
  let {
6
6
  swiper: e,
@@ -1,4 +1,4 @@
1
- import { __exports as e } from "./index.es393.js";
1
+ import { __exports as e } from "./index.es379.js";
2
2
  /**
3
3
  * @license React
4
4
  * react-jsx-runtime.production.js
@@ -1,4 +1,4 @@
1
- import { __exports as u } from "./index.es394.js";
1
+ import { __exports as u } from "./index.es380.js";
2
2
  import B from "react";
3
3
  /**
4
4
  * @license React
@@ -1,10 +1,5 @@
1
- function h(f, c, { checkForDefaultPrevented: p = !0 } = {}) {
2
- return function(s) {
3
- if (f == null || f(s), p === !1 || !s.defaultPrevented)
4
- return c == null ? void 0 : c(s);
5
- };
6
- }
1
+ var r = {};
7
2
  export {
8
- h as composeEventHandlers
3
+ r as __exports
9
4
  };
10
5
  //# sourceMappingURL=index.es379.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.es379.js","sources":["../node_modules/@radix-ui/primitive/dist/index.mjs"],"sourcesContent":["// packages/core/primitive/src/primitive.tsx\nfunction composeEventHandlers(originalEventHandler, ourEventHandler, { checkForDefaultPrevented = true } = {}) {\n return function handleEvent(event) {\n originalEventHandler?.(event);\n if (checkForDefaultPrevented === false || !event.defaultPrevented) {\n return ourEventHandler?.(event);\n }\n };\n}\nexport {\n composeEventHandlers\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["composeEventHandlers","originalEventHandler","ourEventHandler","checkForDefaultPrevented","event"],"mappings":"AACA,SAASA,EAAqBC,GAAsBC,GAAiB,EAAE,0BAAAC,IAA2B,GAAM,IAAG,IAAI;AAC7G,SAAO,SAAqBC,GAAO;AAEjC,QADAH,KAAA,QAAAA,EAAuBG,IACnBD,MAA6B,MAAS,CAACC,EAAM;AAC/C,aAAOF,KAAA,gBAAAA,EAAkBE;AAAA,EAE5B;AACH;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.es379.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -1,30 +1,5 @@
1
- import * as f from "react";
2
- function l(n, o) {
3
- if (typeof n == "function")
4
- return n(o);
5
- n != null && (n.current = o);
6
- }
7
- function i(...n) {
8
- return (o) => {
9
- let u = !1;
10
- const c = n.map((t) => {
11
- const e = l(t, o);
12
- return !u && typeof e == "function" && (u = !0), e;
13
- });
14
- if (u)
15
- return () => {
16
- for (let t = 0; t < c.length; t++) {
17
- const e = c[t];
18
- typeof e == "function" ? e() : l(n[t], null);
19
- }
20
- };
21
- };
22
- }
23
- function s(...n) {
24
- return f.useCallback(i(...n), n);
25
- }
1
+ var e = {};
26
2
  export {
27
- i as composeRefs,
28
- s as useComposedRefs
3
+ e as __exports
29
4
  };
30
5
  //# sourceMappingURL=index.es380.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.es380.js","sources":["../node_modules/@radix-ui/react-compose-refs/dist/index.mjs"],"sourcesContent":["// packages/react/compose-refs/src/compose-refs.tsx\nimport * as React from \"react\";\nfunction setRef(ref, value) {\n if (typeof ref === \"function\") {\n return ref(value);\n } else if (ref !== null && ref !== void 0) {\n ref.current = value;\n }\n}\nfunction composeRefs(...refs) {\n return (node) => {\n let hasCleanup = false;\n const cleanups = refs.map((ref) => {\n const cleanup = setRef(ref, node);\n if (!hasCleanup && typeof cleanup == \"function\") {\n hasCleanup = true;\n }\n return cleanup;\n });\n if (hasCleanup) {\n return () => {\n for (let i = 0; i < cleanups.length; i++) {\n const cleanup = cleanups[i];\n if (typeof cleanup == \"function\") {\n cleanup();\n } else {\n setRef(refs[i], null);\n }\n }\n };\n }\n };\n}\nfunction useComposedRefs(...refs) {\n return React.useCallback(composeRefs(...refs), refs);\n}\nexport {\n composeRefs,\n useComposedRefs\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["setRef","ref","value","composeRefs","refs","node","hasCleanup","cleanups","cleanup","i","useComposedRefs","React"],"mappings":";AAEA,SAASA,EAAOC,GAAKC,GAAO;AAC1B,MAAI,OAAOD,KAAQ;AACjB,WAAOA,EAAIC,CAAK;AACX,EAAID,KAAQ,SACjBA,EAAI,UAAUC;AAElB;AACA,SAASC,KAAeC,GAAM;AAC5B,SAAO,CAACC,MAAS;AACf,QAAIC,IAAa;AACjB,UAAMC,IAAWH,EAAK,IAAI,CAACH,MAAQ;AACjC,YAAMO,IAAUR,EAAOC,GAAKI,CAAI;AAChC,aAAI,CAACC,KAAc,OAAOE,KAAW,eACnCF,IAAa,KAERE;AAAA,IACb,CAAK;AACD,QAAIF;AACF,aAAO,MAAM;AACX,iBAASG,IAAI,GAAGA,IAAIF,EAAS,QAAQE,KAAK;AACxC,gBAAMD,IAAUD,EAASE,CAAC;AAC1B,UAAI,OAAOD,KAAW,aACpBA,EAAS,IAETR,EAAOI,EAAKK,CAAC,GAAG,IAAI;AAAA,QAEhC;AAAA,MACO;AAAA,EAEJ;AACH;AACA,SAASC,KAAmBN,GAAM;AAChC,SAAOO,EAAM,YAAYR,EAAY,GAAGC,CAAI,GAAGA,CAAI;AACrD;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.es380.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -1,33 +1,18 @@
1
- import * as l from "react";
2
- import { useCallbackRef as f } from "./index.es417.js";
3
- function R({
4
- prop: t,
5
- defaultProp: r,
6
- onChange: s = () => {
7
- }
8
- }) {
9
- const [e, n] = v({ defaultProp: r, onChange: s }), o = t !== void 0, i = o ? t : e, u = f(s), d = l.useCallback(
10
- (c) => {
11
- if (o) {
12
- const a = typeof c == "function" ? c(t) : c;
13
- a !== t && u(a);
14
- } else
15
- n(c);
16
- },
17
- [o, t, n, u]
18
- );
19
- return [i, d];
20
- }
21
- function v({
22
- defaultProp: t,
23
- onChange: r
24
- }) {
25
- const s = l.useState(t), [e] = s, n = l.useRef(e), o = f(r);
26
- return l.useEffect(() => {
27
- n.current !== e && (o(e), n.current = e);
28
- }, [e, n, o]), s;
29
- }
1
+ import { useEffect as l } from "react";
2
+ const f = (t, n) => {
3
+ l(() => {
4
+ if (!n || !t.current) return;
5
+ const o = t.current.querySelectorAll(
6
+ 'button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'
7
+ ), c = o[0], r = o[o.length - 1], s = (e) => {
8
+ e.key === "Tab" && (e.shiftKey ? document.activeElement === c && (r.focus(), e.preventDefault()) : document.activeElement === r && (c.focus(), e.preventDefault()));
9
+ }, u = document.activeElement;
10
+ return c.focus(), document.addEventListener("keydown", s), () => {
11
+ document.removeEventListener("keydown", s), n && (u == null || u.focus());
12
+ };
13
+ }, [n, t]);
14
+ };
30
15
  export {
31
- R as useControllableState
16
+ f as useFocusTrap
32
17
  };
33
18
  //# sourceMappingURL=index.es382.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.es382.js","sources":["../node_modules/@radix-ui/react-use-controllable-state/dist/index.mjs"],"sourcesContent":["// packages/react/use-controllable-state/src/use-controllable-state.tsx\nimport * as React from \"react\";\nimport { useCallbackRef } from \"@radix-ui/react-use-callback-ref\";\nfunction useControllableState({\n prop,\n defaultProp,\n onChange = () => {\n }\n}) {\n const [uncontrolledProp, setUncontrolledProp] = useUncontrolledState({ defaultProp, onChange });\n const isControlled = prop !== void 0;\n const value = isControlled ? prop : uncontrolledProp;\n const handleChange = useCallbackRef(onChange);\n const setValue = React.useCallback(\n (nextValue) => {\n if (isControlled) {\n const setter = nextValue;\n const value2 = typeof nextValue === \"function\" ? setter(prop) : nextValue;\n if (value2 !== prop) handleChange(value2);\n } else {\n setUncontrolledProp(nextValue);\n }\n },\n [isControlled, prop, setUncontrolledProp, handleChange]\n );\n return [value, setValue];\n}\nfunction useUncontrolledState({\n defaultProp,\n onChange\n}) {\n const uncontrolledState = React.useState(defaultProp);\n const [value] = uncontrolledState;\n const prevValueRef = React.useRef(value);\n const handleChange = useCallbackRef(onChange);\n React.useEffect(() => {\n if (prevValueRef.current !== value) {\n handleChange(value);\n prevValueRef.current = value;\n }\n }, [value, prevValueRef, handleChange]);\n return uncontrolledState;\n}\nexport {\n useControllableState\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["useControllableState","prop","defaultProp","onChange","uncontrolledProp","setUncontrolledProp","useUncontrolledState","isControlled","value","handleChange","useCallbackRef","setValue","React","nextValue","value2","uncontrolledState","prevValueRef"],"mappings":";;AAGA,SAASA,EAAqB;AAAA,EAC5B,MAAAC;AAAA,EACA,aAAAC;AAAA,EACA,UAAAC,IAAW,MAAM;AAAA,EACnB;AACA,GAAG;AACD,QAAM,CAACC,GAAkBC,CAAmB,IAAIC,EAAqB,EAAE,aAAAJ,GAAa,UAAAC,GAAU,GACxFI,IAAeN,MAAS,QACxBO,IAAQD,IAAeN,IAAOG,GAC9BK,IAAeC,EAAeP,CAAQ,GACtCQ,IAAWC,EAAM;AAAA,IACrB,CAACC,MAAc;AACb,UAAIN,GAAc;AAEhB,cAAMO,IAAS,OAAOD,KAAc,aADrBA,EACyCZ,CAAI,IAAIY;AAChE,QAAIC,MAAWb,KAAMQ,EAAaK,CAAM;AAAA,MAChD;AACQ,QAAAT,EAAoBQ,CAAS;AAAA,IAEhC;AAAA,IACD,CAACN,GAAcN,GAAMI,GAAqBI,CAAY;AAAA,EACvD;AACD,SAAO,CAACD,GAAOG,CAAQ;AACzB;AACA,SAASL,EAAqB;AAAA,EAC5B,aAAAJ;AAAA,EACA,UAAAC;AACF,GAAG;AACD,QAAMY,IAAoBH,EAAM,SAASV,CAAW,GAC9C,CAACM,CAAK,IAAIO,GACVC,IAAeJ,EAAM,OAAOJ,CAAK,GACjCC,IAAeC,EAAeP,CAAQ;AAC5C,SAAAS,EAAM,UAAU,MAAM;AACpB,IAAII,EAAa,YAAYR,MAC3BC,EAAaD,CAAK,GAClBQ,EAAa,UAAUR;AAAA,EAE1B,GAAE,CAACA,GAAOQ,GAAcP,CAAY,CAAC,GAC/BM;AACT;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.es382.js","sources":["../src/hooks/useFocusTrap.ts"],"sourcesContent":["import { useEffect } from \"react\";\n\nexport const useFocusTrap = (\n ref: React.RefObject<HTMLElement | null>,\n isActive: boolean,\n) => {\n useEffect(() => {\n if (!isActive || !ref.current) return;\n\n const focusableElements = ref.current.querySelectorAll(\n 'button, [href], input, select, textarea, [tabindex]:not([tabindex=\"-1\"])',\n );\n const firstFocusableElement = focusableElements[0] as HTMLElement;\n const lastFocusableElement = focusableElements[\n focusableElements.length - 1\n ] as HTMLElement;\n\n const handleKeyDown = (e: KeyboardEvent) => {\n if (e.key !== \"Tab\") return;\n\n if (e.shiftKey) {\n if (document.activeElement === firstFocusableElement) {\n lastFocusableElement.focus();\n e.preventDefault();\n }\n } else {\n if (document.activeElement === lastFocusableElement) {\n firstFocusableElement.focus();\n e.preventDefault();\n }\n }\n };\n\n const previousActiveElement = document.activeElement as HTMLElement;\n\n firstFocusableElement.focus();\n\n document.addEventListener(\"keydown\", handleKeyDown);\n\n return () => {\n document.removeEventListener(\"keydown\", handleKeyDown);\n\n if (isActive) {\n previousActiveElement?.focus();\n }\n };\n }, [isActive, ref]);\n};\n"],"names":["useFocusTrap","ref","isActive","useEffect","focusableElements","firstFocusableElement","lastFocusableElement","handleKeyDown","previousActiveElement"],"mappings":";AAEa,MAAAA,IAAe,CAC1BC,GACAC,MACG;AACH,EAAAC,EAAU,MAAM;AACd,QAAI,CAACD,KAAY,CAACD,EAAI,QAAS;AAEzB,UAAAG,IAAoBH,EAAI,QAAQ;AAAA,MACpC;AAAA,IACF,GACMI,IAAwBD,EAAkB,CAAC,GAC3CE,IAAuBF,EAC3BA,EAAkB,SAAS,CAC7B,GAEMG,IAAgB,CAAC,MAAqB;AACtC,MAAA,EAAE,QAAQ,UAEV,EAAE,WACA,SAAS,kBAAkBF,MAC7BC,EAAqB,MAAM,GAC3B,EAAE,eAAe,KAGf,SAAS,kBAAkBA,MAC7BD,EAAsB,MAAM,GAC5B,EAAE,eAAe;AAAA,IAGvB,GAEMG,IAAwB,SAAS;AAEvC,WAAAH,EAAsB,MAAM,GAEnB,SAAA,iBAAiB,WAAWE,CAAa,GAE3C,MAAM;AACF,eAAA,oBAAoB,WAAWA,CAAa,GAEjDL,MACFM,KAAA,QAAAA,EAAuB;AAAA,IAE3B;AAAA,EAAA,GACC,CAACN,GAAUD,CAAG,CAAC;AACpB;"}
@@ -1,14 +1,30 @@
1
- import * as o from "react";
2
- import { useLayoutEffect as a } from "./index.es422.js";
3
- var s = o[" useId ".trim().toString()] || (() => {
4
- }), f = 0;
5
- function i(t) {
6
- const [e, r] = o.useState(s());
7
- return a(() => {
8
- r((u) => u ?? String(f++));
9
- }, [t]), t || (e ? `radix-${e}` : "");
1
+ import * as f from "react";
2
+ function l(n, o) {
3
+ if (typeof n == "function")
4
+ return n(o);
5
+ n != null && (n.current = o);
6
+ }
7
+ function i(...n) {
8
+ return (o) => {
9
+ let u = !1;
10
+ const c = n.map((t) => {
11
+ const e = l(t, o);
12
+ return !u && typeof e == "function" && (u = !0), e;
13
+ });
14
+ if (u)
15
+ return () => {
16
+ for (let t = 0; t < c.length; t++) {
17
+ const e = c[t];
18
+ typeof e == "function" ? e() : l(n[t], null);
19
+ }
20
+ };
21
+ };
22
+ }
23
+ function s(...n) {
24
+ return f.useCallback(i(...n), n);
10
25
  }
11
26
  export {
12
- i as useId
27
+ i as composeRefs,
28
+ s as useComposedRefs
13
29
  };
14
30
  //# sourceMappingURL=index.es385.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.es385.js","sources":["../node_modules/@radix-ui/react-id/dist/index.mjs"],"sourcesContent":["// packages/react/id/src/id.tsx\nimport * as React from \"react\";\nimport { useLayoutEffect } from \"@radix-ui/react-use-layout-effect\";\nvar useReactId = React[\" useId \".trim().toString()] || (() => void 0);\nvar count = 0;\nfunction useId(deterministicId) {\n const [id, setId] = React.useState(useReactId());\n useLayoutEffect(() => {\n if (!deterministicId) setId((reactId) => reactId ?? String(count++));\n }, [deterministicId]);\n return deterministicId || (id ? `radix-${id}` : \"\");\n}\nexport {\n useId\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["useReactId","React","count","useId","deterministicId","id","setId","useLayoutEffect","reactId"],"mappings":";;AAGA,IAAIA,IAAaC,EAAM,UAAU,KAAM,EAAC,SAAU,CAAA,MAAM,MAAA;AAAA,IACpDC,IAAQ;AACZ,SAASC,EAAMC,GAAiB;AAC9B,QAAM,CAACC,GAAIC,CAAK,IAAIL,EAAM,SAASD,GAAY;AAC/CO,SAAAA,EAAgB,MAAM;AACE,IAAAD,EAAM,CAACE,MAAYA,KAAW,OAAON,GAAO,CAAC;AAAA,EACvE,GAAK,CAACE,CAAe,CAAC,GACbA,MAAoBC,IAAK,SAASA,CAAE,KAAK;AAClD;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.es385.js","sources":["../node_modules/@radix-ui/react-compose-refs/dist/index.mjs"],"sourcesContent":["// packages/react/compose-refs/src/compose-refs.tsx\nimport * as React from \"react\";\nfunction setRef(ref, value) {\n if (typeof ref === \"function\") {\n return ref(value);\n } else if (ref !== null && ref !== void 0) {\n ref.current = value;\n }\n}\nfunction composeRefs(...refs) {\n return (node) => {\n let hasCleanup = false;\n const cleanups = refs.map((ref) => {\n const cleanup = setRef(ref, node);\n if (!hasCleanup && typeof cleanup == \"function\") {\n hasCleanup = true;\n }\n return cleanup;\n });\n if (hasCleanup) {\n return () => {\n for (let i = 0; i < cleanups.length; i++) {\n const cleanup = cleanups[i];\n if (typeof cleanup == \"function\") {\n cleanup();\n } else {\n setRef(refs[i], null);\n }\n }\n };\n }\n };\n}\nfunction useComposedRefs(...refs) {\n return React.useCallback(composeRefs(...refs), refs);\n}\nexport {\n composeRefs,\n useComposedRefs\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["setRef","ref","value","composeRefs","refs","node","hasCleanup","cleanups","cleanup","i","useComposedRefs","React"],"mappings":";AAEA,SAASA,EAAOC,GAAKC,GAAO;AAC1B,MAAI,OAAOD,KAAQ;AACjB,WAAOA,EAAIC,CAAK;AACX,EAAID,KAAQ,SACjBA,EAAI,UAAUC;AAElB;AACA,SAASC,KAAeC,GAAM;AAC5B,SAAO,CAACC,MAAS;AACf,QAAIC,IAAa;AACjB,UAAMC,IAAWH,EAAK,IAAI,CAACH,MAAQ;AACjC,YAAMO,IAAUR,EAAOC,GAAKI,CAAI;AAChC,aAAI,CAACC,KAAc,OAAOE,KAAW,eACnCF,IAAa,KAERE;AAAA,IACb,CAAK;AACD,QAAIF;AACF,aAAO,MAAM;AACX,iBAASG,IAAI,GAAGA,IAAIF,EAAS,QAAQE,KAAK;AACxC,gBAAMD,IAAUD,EAASE,CAAC;AAC1B,UAAI,OAAOD,KAAW,aACpBA,EAAS,IAETR,EAAOI,EAAKK,CAAC,GAAG,IAAI;AAAA,QAEhC;AAAA,MACO;AAAA,EAEJ;AACH;AACA,SAASC,KAAmBN,GAAM;AAChC,SAAOO,EAAM,YAAYR,EAAY,GAAGC,CAAI,GAAGA,CAAI;AACrD;","x_google_ignoreList":[0]}
@@ -68,4 +68,4 @@ export {
68
68
  j as createContext,
69
69
  w as createContextScope
70
70
  };
71
- //# sourceMappingURL=index.es381.js.map
71
+ //# sourceMappingURL=index.es386.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.es381.js","sources":["../node_modules/@radix-ui/react-context/dist/index.mjs"],"sourcesContent":["// packages/react/context/src/create-context.tsx\nimport * as React from \"react\";\nimport { jsx } from \"react/jsx-runtime\";\nfunction createContext2(rootComponentName, defaultContext) {\n const Context = React.createContext(defaultContext);\n const Provider = (props) => {\n const { children, ...context } = props;\n const value = React.useMemo(() => context, Object.values(context));\n return /* @__PURE__ */ jsx(Context.Provider, { value, children });\n };\n Provider.displayName = rootComponentName + \"Provider\";\n function useContext2(consumerName) {\n const context = React.useContext(Context);\n if (context) return context;\n if (defaultContext !== void 0) return defaultContext;\n throw new Error(`\\`${consumerName}\\` must be used within \\`${rootComponentName}\\``);\n }\n return [Provider, useContext2];\n}\nfunction createContextScope(scopeName, createContextScopeDeps = []) {\n let defaultContexts = [];\n function createContext3(rootComponentName, defaultContext) {\n const BaseContext = React.createContext(defaultContext);\n const index = defaultContexts.length;\n defaultContexts = [...defaultContexts, defaultContext];\n const Provider = (props) => {\n const { scope, children, ...context } = props;\n const Context = scope?.[scopeName]?.[index] || BaseContext;\n const value = React.useMemo(() => context, Object.values(context));\n return /* @__PURE__ */ jsx(Context.Provider, { value, children });\n };\n Provider.displayName = rootComponentName + \"Provider\";\n function useContext2(consumerName, scope) {\n const Context = scope?.[scopeName]?.[index] || BaseContext;\n const context = React.useContext(Context);\n if (context) return context;\n if (defaultContext !== void 0) return defaultContext;\n throw new Error(`\\`${consumerName}\\` must be used within \\`${rootComponentName}\\``);\n }\n return [Provider, useContext2];\n }\n const createScope = () => {\n const scopeContexts = defaultContexts.map((defaultContext) => {\n return React.createContext(defaultContext);\n });\n return function useScope(scope) {\n const contexts = scope?.[scopeName] || scopeContexts;\n return React.useMemo(\n () => ({ [`__scope${scopeName}`]: { ...scope, [scopeName]: contexts } }),\n [scope, contexts]\n );\n };\n };\n createScope.scopeName = scopeName;\n return [createContext3, composeContextScopes(createScope, ...createContextScopeDeps)];\n}\nfunction composeContextScopes(...scopes) {\n const baseScope = scopes[0];\n if (scopes.length === 1) return baseScope;\n const createScope = () => {\n const scopeHooks = scopes.map((createScope2) => ({\n useScope: createScope2(),\n scopeName: createScope2.scopeName\n }));\n return function useComposedScopes(overrideScopes) {\n const nextScopes = scopeHooks.reduce((nextScopes2, { useScope, scopeName }) => {\n const scopeProps = useScope(overrideScopes);\n const currentScope = scopeProps[`__scope${scopeName}`];\n return { ...nextScopes2, ...currentScope };\n }, {});\n return React.useMemo(() => ({ [`__scope${baseScope.scopeName}`]: nextScopes }), [nextScopes]);\n };\n };\n createScope.scopeName = baseScope.scopeName;\n return createScope;\n}\nexport {\n createContext2 as createContext,\n createContextScope\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["createContext2","rootComponentName","defaultContext","Context","React","Provider","props","children","context","value","jsx","useContext2","consumerName","createContextScope","scopeName","createContextScopeDeps","defaultContexts","createContext3","BaseContext","index","scope","_a","createScope","scopeContexts","contexts","composeContextScopes","scopes","baseScope","scopeHooks","createScope2","overrideScopes","nextScopes","nextScopes2","useScope","currentScope"],"mappings":"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","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.es386.js","sources":["../node_modules/@radix-ui/react-context/dist/index.mjs"],"sourcesContent":["// packages/react/context/src/create-context.tsx\nimport * as React from \"react\";\nimport { jsx } from \"react/jsx-runtime\";\nfunction createContext2(rootComponentName, defaultContext) {\n const Context = React.createContext(defaultContext);\n const Provider = (props) => {\n const { children, ...context } = props;\n const value = React.useMemo(() => context, Object.values(context));\n return /* @__PURE__ */ jsx(Context.Provider, { value, children });\n };\n Provider.displayName = rootComponentName + \"Provider\";\n function useContext2(consumerName) {\n const context = React.useContext(Context);\n if (context) return context;\n if (defaultContext !== void 0) return defaultContext;\n throw new Error(`\\`${consumerName}\\` must be used within \\`${rootComponentName}\\``);\n }\n return [Provider, useContext2];\n}\nfunction createContextScope(scopeName, createContextScopeDeps = []) {\n let defaultContexts = [];\n function createContext3(rootComponentName, defaultContext) {\n const BaseContext = React.createContext(defaultContext);\n const index = defaultContexts.length;\n defaultContexts = [...defaultContexts, defaultContext];\n const Provider = (props) => {\n const { scope, children, ...context } = props;\n const Context = scope?.[scopeName]?.[index] || BaseContext;\n const value = React.useMemo(() => context, Object.values(context));\n return /* @__PURE__ */ jsx(Context.Provider, { value, children });\n };\n Provider.displayName = rootComponentName + \"Provider\";\n function useContext2(consumerName, scope) {\n const Context = scope?.[scopeName]?.[index] || BaseContext;\n const context = React.useContext(Context);\n if (context) return context;\n if (defaultContext !== void 0) return defaultContext;\n throw new Error(`\\`${consumerName}\\` must be used within \\`${rootComponentName}\\``);\n }\n return [Provider, useContext2];\n }\n const createScope = () => {\n const scopeContexts = defaultContexts.map((defaultContext) => {\n return React.createContext(defaultContext);\n });\n return function useScope(scope) {\n const contexts = scope?.[scopeName] || scopeContexts;\n return React.useMemo(\n () => ({ [`__scope${scopeName}`]: { ...scope, [scopeName]: contexts } }),\n [scope, contexts]\n );\n };\n };\n createScope.scopeName = scopeName;\n return [createContext3, composeContextScopes(createScope, ...createContextScopeDeps)];\n}\nfunction composeContextScopes(...scopes) {\n const baseScope = scopes[0];\n if (scopes.length === 1) return baseScope;\n const createScope = () => {\n const scopeHooks = scopes.map((createScope2) => ({\n useScope: createScope2(),\n scopeName: createScope2.scopeName\n }));\n return function useComposedScopes(overrideScopes) {\n const nextScopes = scopeHooks.reduce((nextScopes2, { useScope, scopeName }) => {\n const scopeProps = useScope(overrideScopes);\n const currentScope = scopeProps[`__scope${scopeName}`];\n return { ...nextScopes2, ...currentScope };\n }, {});\n return React.useMemo(() => ({ [`__scope${baseScope.scopeName}`]: nextScopes }), [nextScopes]);\n };\n };\n createScope.scopeName = baseScope.scopeName;\n return createScope;\n}\nexport {\n createContext2 as createContext,\n createContextScope\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["createContext2","rootComponentName","defaultContext","Context","React","Provider","props","children","context","value","jsx","useContext2","consumerName","createContextScope","scopeName","createContextScopeDeps","defaultContexts","createContext3","BaseContext","index","scope","_a","createScope","scopeContexts","contexts","composeContextScopes","scopes","baseScope","scopeHooks","createScope2","overrideScopes","nextScopes","nextScopes2","useScope","currentScope"],"mappings":"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","x_google_ignoreList":[0]}
@@ -1,18 +1,10 @@
1
- import { useEffect as l } from "react";
2
- const f = (t, n) => {
3
- l(() => {
4
- if (!n || !t.current) return;
5
- const o = t.current.querySelectorAll(
6
- 'button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'
7
- ), c = o[0], r = o[o.length - 1], s = (e) => {
8
- e.key === "Tab" && (e.shiftKey ? document.activeElement === c && (r.focus(), e.preventDefault()) : document.activeElement === r && (c.focus(), e.preventDefault()));
9
- }, u = document.activeElement;
10
- return c.focus(), document.addEventListener("keydown", s), () => {
11
- document.removeEventListener("keydown", s), n && (u == null || u.focus());
12
- };
13
- }, [n, t]);
14
- };
1
+ function h(f, c, { checkForDefaultPrevented: p = !0 } = {}) {
2
+ return function(s) {
3
+ if (f == null || f(s), p === !1 || !s.defaultPrevented)
4
+ return c == null ? void 0 : c(s);
5
+ };
6
+ }
15
7
  export {
16
- f as useFocusTrap
8
+ h as composeEventHandlers
17
9
  };
18
10
  //# sourceMappingURL=index.es387.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.es387.js","sources":["../src/hooks/useFocusTrap.ts"],"sourcesContent":["import { useEffect } from \"react\";\n\nexport const useFocusTrap = (\n ref: React.RefObject<HTMLElement | null>,\n isActive: boolean,\n) => {\n useEffect(() => {\n if (!isActive || !ref.current) return;\n\n const focusableElements = ref.current.querySelectorAll(\n 'button, [href], input, select, textarea, [tabindex]:not([tabindex=\"-1\"])',\n );\n const firstFocusableElement = focusableElements[0] as HTMLElement;\n const lastFocusableElement = focusableElements[\n focusableElements.length - 1\n ] as HTMLElement;\n\n const handleKeyDown = (e: KeyboardEvent) => {\n if (e.key !== \"Tab\") return;\n\n if (e.shiftKey) {\n if (document.activeElement === firstFocusableElement) {\n lastFocusableElement.focus();\n e.preventDefault();\n }\n } else {\n if (document.activeElement === lastFocusableElement) {\n firstFocusableElement.focus();\n e.preventDefault();\n }\n }\n };\n\n const previousActiveElement = document.activeElement as HTMLElement;\n\n firstFocusableElement.focus();\n\n document.addEventListener(\"keydown\", handleKeyDown);\n\n return () => {\n document.removeEventListener(\"keydown\", handleKeyDown);\n\n if (isActive) {\n previousActiveElement?.focus();\n }\n };\n }, [isActive, ref]);\n};\n"],"names":["useFocusTrap","ref","isActive","useEffect","focusableElements","firstFocusableElement","lastFocusableElement","handleKeyDown","previousActiveElement"],"mappings":";AAEa,MAAAA,IAAe,CAC1BC,GACAC,MACG;AACH,EAAAC,EAAU,MAAM;AACd,QAAI,CAACD,KAAY,CAACD,EAAI,QAAS;AAEzB,UAAAG,IAAoBH,EAAI,QAAQ;AAAA,MACpC;AAAA,IACF,GACMI,IAAwBD,EAAkB,CAAC,GAC3CE,IAAuBF,EAC3BA,EAAkB,SAAS,CAC7B,GAEMG,IAAgB,CAAC,MAAqB;AACtC,MAAA,EAAE,QAAQ,UAEV,EAAE,WACA,SAAS,kBAAkBF,MAC7BC,EAAqB,MAAM,GAC3B,EAAE,eAAe,KAGf,SAAS,kBAAkBA,MAC7BD,EAAsB,MAAM,GAC5B,EAAE,eAAe;AAAA,IAGvB,GAEMG,IAAwB,SAAS;AAEvC,WAAAH,EAAsB,MAAM,GAEnB,SAAA,iBAAiB,WAAWE,CAAa,GAE3C,MAAM;AACF,eAAA,oBAAoB,WAAWA,CAAa,GAEjDL,MACFM,KAAA,QAAAA,EAAuB;AAAA,IAE3B;AAAA,EAAA,GACC,CAACN,GAAUD,CAAG,CAAC;AACpB;"}
1
+ {"version":3,"file":"index.es387.js","sources":["../node_modules/@radix-ui/primitive/dist/index.mjs"],"sourcesContent":["// packages/core/primitive/src/primitive.tsx\nfunction composeEventHandlers(originalEventHandler, ourEventHandler, { checkForDefaultPrevented = true } = {}) {\n return function handleEvent(event) {\n originalEventHandler?.(event);\n if (checkForDefaultPrevented === false || !event.defaultPrevented) {\n return ourEventHandler?.(event);\n }\n };\n}\nexport {\n composeEventHandlers\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["composeEventHandlers","originalEventHandler","ourEventHandler","checkForDefaultPrevented","event"],"mappings":"AACA,SAASA,EAAqBC,GAAsBC,GAAiB,EAAE,0BAAAC,IAA2B,GAAM,IAAG,IAAI;AAC7G,SAAO,SAAqBC,GAAO;AAEjC,QADAH,KAAA,QAAAA,EAAuBG,IACnBD,MAA6B,MAAS,CAACC,EAAM;AAC/C,aAAOF,KAAA,gBAAAA,EAAkBE;AAAA,EAE5B;AACH;","x_google_ignoreList":[0]}