@hirely/ui 0.1.6 → 0.1.7

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 (496) hide show
  1. package/README.md +228 -123
  2. package/dist/_virtual/_rolldown/runtime.cjs.js +1 -0
  3. package/dist/components/ui/accordion.cjs.js +2 -0
  4. package/dist/components/ui/accordion.cjs.js.map +1 -0
  5. package/dist/components/ui/accordion.d.ts +1 -1
  6. package/dist/components/ui/accordion.es.js +55 -0
  7. package/dist/components/ui/accordion.es.js.map +1 -0
  8. package/dist/components/ui/alert-dialog.cjs.js +2 -0
  9. package/dist/components/ui/alert-dialog.cjs.js.map +1 -0
  10. package/dist/components/ui/alert-dialog.d.ts +2 -2
  11. package/dist/components/ui/alert-dialog.es.js +97 -0
  12. package/dist/components/ui/alert-dialog.es.js.map +1 -0
  13. package/dist/components/ui/alert-wrapper.cjs.js +2 -0
  14. package/dist/components/ui/alert-wrapper.cjs.js.map +1 -0
  15. package/dist/components/ui/{AlertWrapper.d.ts → alert-wrapper.d.ts} +2 -2
  16. package/dist/components/ui/alert-wrapper.es.js +20 -0
  17. package/dist/components/ui/alert-wrapper.es.js.map +1 -0
  18. package/dist/components/ui/alert.cjs.js +2 -0
  19. package/dist/components/ui/alert.cjs.js.map +1 -0
  20. package/dist/components/ui/alert.d.ts +2 -2
  21. package/dist/components/ui/alert.es.js +45 -0
  22. package/dist/components/ui/alert.es.js.map +1 -0
  23. package/dist/components/ui/aspect-ratio.cjs.js +2 -0
  24. package/dist/components/ui/aspect-ratio.cjs.js.map +1 -0
  25. package/dist/components/ui/aspect-ratio.es.js +15 -0
  26. package/dist/components/ui/aspect-ratio.es.js.map +1 -0
  27. package/dist/components/ui/attachment.cjs.js +2 -0
  28. package/dist/components/ui/attachment.cjs.js.map +1 -0
  29. package/dist/components/ui/attachment.d.ts +6 -6
  30. package/dist/components/ui/attachment.es.js +106 -0
  31. package/dist/components/ui/attachment.es.js.map +1 -0
  32. package/dist/components/ui/avatar.cjs.js +2 -0
  33. package/dist/components/ui/avatar.cjs.js.map +1 -0
  34. package/dist/components/ui/avatar.d.ts +1 -1
  35. package/dist/components/ui/avatar.es.js +52 -0
  36. package/dist/components/ui/avatar.es.js.map +1 -0
  37. package/dist/components/ui/badge.cjs.js +2 -0
  38. package/dist/components/ui/badge.cjs.js.map +1 -0
  39. package/dist/components/ui/badge.d.ts +5 -5
  40. package/dist/components/ui/badge.es.js +31 -0
  41. package/dist/components/ui/badge.es.js.map +1 -0
  42. package/dist/components/ui/breadcrumb.cjs.js +2 -0
  43. package/dist/components/ui/breadcrumb.cjs.js.map +1 -0
  44. package/dist/components/ui/breadcrumb.d.ts +1 -1
  45. package/dist/components/ui/breadcrumb.es.js +74 -0
  46. package/dist/components/ui/breadcrumb.es.js.map +1 -0
  47. package/dist/components/ui/bubble.cjs.js +2 -0
  48. package/dist/components/ui/bubble.cjs.js.map +1 -0
  49. package/dist/components/ui/bubble.d.ts +4 -4
  50. package/dist/components/ui/bubble.es.js +75 -0
  51. package/dist/components/ui/bubble.es.js.map +1 -0
  52. package/dist/components/ui/button-group.cjs.js +2 -0
  53. package/dist/components/ui/button-group.cjs.js.map +1 -0
  54. package/dist/components/ui/button-group.d.ts +5 -5
  55. package/dist/components/ui/button-group.es.js +43 -0
  56. package/dist/components/ui/button-group.es.js.map +1 -0
  57. package/dist/components/ui/button.cjs.js +2 -0
  58. package/dist/components/ui/button.cjs.js.map +1 -0
  59. package/dist/components/ui/button.d.ts +5 -5
  60. package/dist/components/ui/button.es.js +46 -0
  61. package/dist/components/ui/button.es.js.map +1 -0
  62. package/dist/components/ui/calendar.cjs.js +2 -0
  63. package/dist/components/ui/calendar.cjs.js.map +1 -0
  64. package/dist/components/ui/calendar.d.ts +2 -2
  65. package/dist/components/ui/calendar.es.js +93 -0
  66. package/dist/components/ui/calendar.es.js.map +1 -0
  67. package/dist/components/ui/card.cjs.js +2 -0
  68. package/dist/components/ui/card.cjs.js.map +1 -0
  69. package/dist/components/ui/card.es.js +58 -0
  70. package/dist/components/ui/card.es.js.map +1 -0
  71. package/dist/components/ui/carousel.cjs.js +2 -0
  72. package/dist/components/ui/carousel.cjs.js.map +1 -0
  73. package/dist/components/ui/carousel.d.ts +2 -2
  74. package/dist/components/ui/carousel.es.js +113 -0
  75. package/dist/components/ui/carousel.es.js.map +1 -0
  76. package/dist/components/ui/chart.cjs.js +8 -0
  77. package/dist/components/ui/chart.cjs.js.map +1 -0
  78. package/dist/components/ui/chart.d.ts +1 -1
  79. package/dist/components/ui/chart.es.js +133 -0
  80. package/dist/components/ui/chart.es.js.map +1 -0
  81. package/dist/components/ui/checkbox.cjs.js +2 -0
  82. package/dist/components/ui/checkbox.cjs.js.map +1 -0
  83. package/dist/components/ui/checkbox.d.ts +1 -1
  84. package/dist/components/ui/checkbox.es.js +22 -0
  85. package/dist/components/ui/checkbox.es.js.map +1 -0
  86. package/dist/components/ui/collapsible.cjs.js +2 -0
  87. package/dist/components/ui/collapsible.cjs.js.map +1 -0
  88. package/dist/components/ui/collapsible.d.ts +1 -1
  89. package/dist/components/ui/collapsible.es.js +25 -0
  90. package/dist/components/ui/collapsible.es.js.map +1 -0
  91. package/dist/components/ui/combobox.cjs.js +2 -0
  92. package/dist/components/ui/combobox.cjs.js.map +1 -0
  93. package/dist/components/ui/combobox.d.ts +2 -2
  94. package/dist/components/ui/combobox.es.js +164 -0
  95. package/dist/components/ui/combobox.es.js.map +1 -0
  96. package/dist/components/ui/command.cjs.js +2 -0
  97. package/dist/components/ui/command.cjs.js.map +1 -0
  98. package/dist/components/ui/command.d.ts +2 -2
  99. package/dist/components/ui/command.es.js +89 -0
  100. package/dist/components/ui/command.es.js.map +1 -0
  101. package/dist/components/ui/context-menu.cjs.js +2 -0
  102. package/dist/components/ui/context-menu.cjs.js.map +1 -0
  103. package/dist/components/ui/context-menu.d.ts +1 -1
  104. package/dist/components/ui/context-menu.es.js +135 -0
  105. package/dist/components/ui/context-menu.es.js.map +1 -0
  106. package/dist/components/ui/dialog.cjs.js +2 -0
  107. package/dist/components/ui/dialog.cjs.js.map +1 -0
  108. package/dist/components/ui/dialog.d.ts +1 -1
  109. package/dist/components/ui/dialog.es.js +93 -0
  110. package/dist/components/ui/dialog.es.js.map +1 -0
  111. package/dist/components/ui/direction.d.ts +1 -1
  112. package/dist/components/ui/direction.es.js +2 -0
  113. package/dist/components/ui/drawer.cjs.js +2 -0
  114. package/dist/components/ui/drawer.cjs.js.map +1 -0
  115. package/dist/components/ui/drawer.d.ts +1 -1
  116. package/dist/components/ui/drawer.es.js +123 -0
  117. package/dist/components/ui/drawer.es.js.map +1 -0
  118. package/dist/components/ui/dropdown-menu.cjs.js +2 -0
  119. package/dist/components/ui/dropdown-menu.cjs.js.map +1 -0
  120. package/dist/components/ui/dropdown-menu.d.ts +1 -1
  121. package/dist/components/ui/dropdown-menu.es.js +138 -0
  122. package/dist/components/ui/dropdown-menu.es.js.map +1 -0
  123. package/dist/components/ui/empty.cjs.js +2 -0
  124. package/dist/components/ui/empty.cjs.js.map +1 -0
  125. package/dist/components/ui/empty.d.ts +9 -8
  126. package/dist/components/ui/empty.es.js +62 -0
  127. package/dist/components/ui/empty.es.js.map +1 -0
  128. package/dist/components/ui/field.cjs.js +2 -0
  129. package/dist/components/ui/field.cjs.js.map +1 -0
  130. package/dist/components/ui/field.d.ts +3 -3
  131. package/dist/components/ui/field.es.js +110 -0
  132. package/dist/components/ui/field.es.js.map +1 -0
  133. package/dist/components/ui/hover-card.cjs.js +2 -0
  134. package/dist/components/ui/hover-card.cjs.js.map +1 -0
  135. package/dist/components/ui/hover-card.d.ts +1 -1
  136. package/dist/components/ui/hover-card.es.js +38 -0
  137. package/dist/components/ui/hover-card.es.js.map +1 -0
  138. package/dist/components/ui/input-group.cjs.js +2 -0
  139. package/dist/components/ui/input-group.cjs.js.map +1 -0
  140. package/dist/components/ui/input-group.d.ts +6 -6
  141. package/dist/components/ui/input-group.es.js +79 -0
  142. package/dist/components/ui/input-group.es.js.map +1 -0
  143. package/dist/components/ui/input-otp.cjs.js +2 -0
  144. package/dist/components/ui/input-otp.cjs.js.map +1 -0
  145. package/dist/components/ui/input-otp.d.ts +1 -1
  146. package/dist/components/ui/input-otp.es.js +48 -0
  147. package/dist/components/ui/input-otp.es.js.map +1 -0
  148. package/dist/components/ui/input.cjs.js +2 -0
  149. package/dist/components/ui/input.cjs.js.map +1 -0
  150. package/dist/components/ui/input.es.js +17 -0
  151. package/dist/components/ui/input.es.js.map +1 -0
  152. package/dist/components/ui/item.cjs.js +2 -0
  153. package/dist/components/ui/item.cjs.js.map +1 -0
  154. package/dist/components/ui/item.d.ts +6 -6
  155. package/dist/components/ui/item.es.js +123 -0
  156. package/dist/components/ui/item.es.js.map +1 -0
  157. package/dist/components/ui/kbd.cjs.js +2 -0
  158. package/dist/components/ui/kbd.cjs.js.map +1 -0
  159. package/dist/components/ui/kbd.d.ts +3 -2
  160. package/dist/components/ui/kbd.es.js +22 -0
  161. package/dist/components/ui/kbd.es.js.map +1 -0
  162. package/dist/components/ui/label.cjs.js +2 -0
  163. package/dist/components/ui/label.cjs.js.map +1 -0
  164. package/dist/components/ui/label.es.js +16 -0
  165. package/dist/components/ui/label.es.js.map +1 -0
  166. package/dist/components/ui/marker.cjs.js +2 -0
  167. package/dist/components/ui/marker.cjs.js.map +1 -0
  168. package/dist/components/ui/marker.d.ts +3 -3
  169. package/dist/components/ui/marker.es.js +45 -0
  170. package/dist/components/ui/marker.es.js.map +1 -0
  171. package/dist/components/ui/menubar.cjs.js +2 -0
  172. package/dist/components/ui/menubar.cjs.js.map +1 -0
  173. package/dist/components/ui/menubar.d.ts +3 -3
  174. package/dist/components/ui/menubar.es.js +137 -0
  175. package/dist/components/ui/menubar.es.js.map +1 -0
  176. package/dist/components/ui/message-scroller.cjs.js +2 -0
  177. package/dist/components/ui/message-scroller.cjs.js.map +1 -0
  178. package/dist/components/ui/message-scroller.d.ts +2 -2
  179. package/dist/components/ui/message-scroller.es.js +63 -0
  180. package/dist/components/ui/message-scroller.es.js.map +1 -0
  181. package/dist/components/ui/message.cjs.js +2 -0
  182. package/dist/components/ui/message.cjs.js.map +1 -0
  183. package/dist/components/ui/message.es.js +51 -0
  184. package/dist/components/ui/message.es.js.map +1 -0
  185. package/dist/components/ui/native-select.cjs.js +2 -0
  186. package/dist/components/ui/native-select.cjs.js.map +1 -0
  187. package/dist/components/ui/native-select.es.js +40 -0
  188. package/dist/components/ui/native-select.es.js.map +1 -0
  189. package/dist/components/ui/navigation-menu.cjs.js +2 -0
  190. package/dist/components/ui/navigation-menu.cjs.js.map +1 -0
  191. package/dist/components/ui/navigation-menu.d.ts +2 -2
  192. package/dist/components/ui/navigation-menu.es.js +84 -0
  193. package/dist/components/ui/navigation-menu.es.js.map +1 -0
  194. package/dist/components/ui/pagination.cjs.js +2 -0
  195. package/dist/components/ui/pagination.cjs.js.map +1 -0
  196. package/dist/components/ui/pagination.d.ts +1 -1
  197. package/dist/components/ui/pagination.es.js +82 -0
  198. package/dist/components/ui/pagination.es.js.map +1 -0
  199. package/dist/components/ui/popover.cjs.js +2 -0
  200. package/dist/components/ui/popover.cjs.js.map +1 -0
  201. package/dist/components/ui/popover.d.ts +1 -1
  202. package/dist/components/ui/popover.es.js +56 -0
  203. package/dist/components/ui/popover.es.js.map +1 -0
  204. package/dist/components/ui/progress.cjs.js +2 -0
  205. package/dist/components/ui/progress.cjs.js.map +1 -0
  206. package/dist/components/ui/progress.d.ts +1 -1
  207. package/dist/components/ui/progress.es.js +46 -0
  208. package/dist/components/ui/progress.es.js.map +1 -0
  209. package/dist/components/ui/radio-group.cjs.js +2 -0
  210. package/dist/components/ui/radio-group.cjs.js.map +1 -0
  211. package/dist/components/ui/radio-group.d.ts +2 -2
  212. package/dist/components/ui/radio-group.es.js +28 -0
  213. package/dist/components/ui/radio-group.es.js.map +1 -0
  214. package/dist/components/ui/resizable.cjs.js +2 -0
  215. package/dist/components/ui/resizable.cjs.js.map +1 -0
  216. package/dist/components/ui/resizable.es.js +30 -0
  217. package/dist/components/ui/resizable.es.js.map +1 -0
  218. package/dist/components/ui/scroll-area.cjs.js +2 -0
  219. package/dist/components/ui/scroll-area.cjs.js.map +1 -0
  220. package/dist/components/ui/scroll-area.d.ts +1 -1
  221. package/dist/components/ui/scroll-area.es.js +37 -0
  222. package/dist/components/ui/scroll-area.es.js.map +1 -0
  223. package/dist/components/ui/select.cjs.js +2 -0
  224. package/dist/components/ui/select.cjs.js.map +1 -0
  225. package/dist/components/ui/select.d.ts +1 -1
  226. package/dist/components/ui/select.es.js +100 -0
  227. package/dist/components/ui/select.es.js.map +1 -0
  228. package/dist/components/ui/separator.cjs.js +2 -0
  229. package/dist/components/ui/separator.cjs.js.map +1 -0
  230. package/dist/components/ui/separator.d.ts +1 -1
  231. package/dist/components/ui/separator.es.js +16 -0
  232. package/dist/components/ui/separator.es.js.map +1 -0
  233. package/dist/components/ui/sheet.cjs.js +2 -0
  234. package/dist/components/ui/sheet.cjs.js.map +1 -0
  235. package/dist/components/ui/sheet.d.ts +1 -1
  236. package/dist/components/ui/sheet.es.js +90 -0
  237. package/dist/components/ui/sheet.es.js.map +1 -0
  238. package/dist/components/ui/sidebar.cjs.js +2 -0
  239. package/dist/components/ui/sidebar.cjs.js.map +1 -0
  240. package/dist/components/ui/sidebar.d.ts +19 -8
  241. package/dist/components/ui/sidebar.es.js +363 -0
  242. package/dist/components/ui/sidebar.es.js.map +1 -0
  243. package/dist/components/ui/skeleton.cjs.js +2 -0
  244. package/dist/components/ui/skeleton.cjs.js.map +1 -0
  245. package/dist/components/ui/skeleton.d.ts +2 -1
  246. package/dist/components/ui/skeleton.es.js +15 -0
  247. package/dist/components/ui/skeleton.es.js.map +1 -0
  248. package/dist/components/ui/slider.cjs.js +2 -0
  249. package/dist/components/ui/slider.cjs.js.map +1 -0
  250. package/dist/components/ui/slider.d.ts +1 -1
  251. package/dist/components/ui/slider.es.js +35 -0
  252. package/dist/components/ui/slider.es.js.map +1 -0
  253. package/dist/components/ui/sonner.cjs.js +2 -0
  254. package/dist/components/ui/sonner.cjs.js.map +1 -0
  255. package/dist/components/ui/sonner.d.ts +22 -2
  256. package/dist/components/ui/sonner.es.js +29 -0
  257. package/dist/components/ui/sonner.es.js.map +1 -0
  258. package/dist/components/ui/spinner.cjs.js +2 -0
  259. package/dist/components/ui/spinner.cjs.js.map +1 -0
  260. package/dist/components/ui/spinner.d.ts +2 -1
  261. package/dist/components/ui/spinner.es.js +18 -0
  262. package/dist/components/ui/spinner.es.js.map +1 -0
  263. package/dist/components/ui/switch.cjs.js +2 -0
  264. package/dist/components/ui/switch.cjs.js.map +1 -0
  265. package/dist/components/ui/switch.d.ts +1 -1
  266. package/dist/components/ui/switch.es.js +20 -0
  267. package/dist/components/ui/switch.es.js.map +1 -0
  268. package/dist/components/ui/table.cjs.js +2 -0
  269. package/dist/components/ui/table.cjs.js.map +1 -0
  270. package/dist/components/ui/table.es.js +69 -0
  271. package/dist/components/ui/table.es.js.map +1 -0
  272. package/dist/components/ui/tabs.cjs.js +2 -0
  273. package/dist/components/ui/tabs.cjs.js.map +1 -0
  274. package/dist/components/ui/tabs.d.ts +3 -3
  275. package/dist/components/ui/tabs.es.js +46 -0
  276. package/dist/components/ui/tabs.es.js.map +1 -0
  277. package/dist/components/ui/textarea.cjs.js +2 -0
  278. package/dist/components/ui/textarea.cjs.js.map +1 -0
  279. package/dist/components/ui/textarea.es.js +15 -0
  280. package/dist/components/ui/textarea.es.js.map +1 -0
  281. package/dist/components/ui/toggle-group.cjs.js +2 -0
  282. package/dist/components/ui/toggle-group.cjs.js.map +1 -0
  283. package/dist/components/ui/toggle-group.d.ts +4 -4
  284. package/dist/components/ui/toggle-group.es.js +54 -0
  285. package/dist/components/ui/toggle-group.es.js.map +1 -0
  286. package/dist/components/ui/toggle.cjs.js +2 -0
  287. package/dist/components/ui/toggle.cjs.js.map +1 -0
  288. package/dist/components/ui/toggle.d.ts +3 -3
  289. package/dist/components/ui/toggle.es.js +38 -0
  290. package/dist/components/ui/toggle.es.js.map +1 -0
  291. package/dist/components/ui/tooltip.cjs.js +2 -0
  292. package/dist/components/ui/tooltip.cjs.js.map +1 -0
  293. package/dist/components/ui/tooltip.d.ts +1 -1
  294. package/dist/components/ui/tooltip.es.js +42 -0
  295. package/dist/components/ui/tooltip.es.js.map +1 -0
  296. package/dist/hooks/index.cjs.js +1 -0
  297. package/dist/hooks/index.d.ts +10 -0
  298. package/dist/hooks/index.es.js +2 -0
  299. package/dist/hooks/use-mobile.cjs.js +2 -0
  300. package/dist/hooks/use-mobile.cjs.js.map +1 -0
  301. package/dist/hooks/use-mobile.es.js +16 -0
  302. package/dist/hooks/use-mobile.es.js.map +1 -0
  303. package/dist/index.cjs.js +1 -7
  304. package/dist/index.d.ts +62 -61
  305. package/dist/index.es.js +63 -5447
  306. package/dist/lib/utils.d.ts +1 -1
  307. package/dist/node_modules/.bun/@radix-ui_primitive@1.1.5/node_modules/@radix-ui/primitive/dist/index.cjs.js +2 -0
  308. package/dist/node_modules/.bun/@radix-ui_primitive@1.1.5/node_modules/@radix-ui/primitive/dist/index.cjs.js.map +1 -0
  309. package/dist/node_modules/.bun/@radix-ui_primitive@1.1.5/node_modules/@radix-ui/primitive/dist/index.es.js +10 -0
  310. package/dist/node_modules/.bun/@radix-ui_primitive@1.1.5/node_modules/@radix-ui/primitive/dist/index.es.js.map +1 -0
  311. package/dist/node_modules/.bun/@radix-ui_react-compose-refs@1.1.3_93dbe784b8baa420/node_modules/@radix-ui/react-compose-refs/dist/index.cjs.js +2 -0
  312. package/dist/node_modules/.bun/@radix-ui_react-compose-refs@1.1.3_93dbe784b8baa420/node_modules/@radix-ui/react-compose-refs/dist/index.cjs.js.map +1 -0
  313. package/dist/node_modules/.bun/@radix-ui_react-compose-refs@1.1.3_93dbe784b8baa420/node_modules/@radix-ui/react-compose-refs/dist/index.es.js +27 -0
  314. package/dist/node_modules/.bun/@radix-ui_react-compose-refs@1.1.3_93dbe784b8baa420/node_modules/@radix-ui/react-compose-refs/dist/index.es.js.map +1 -0
  315. package/dist/node_modules/.bun/@radix-ui_react-context@1.2.0_93dbe784b8baa420/node_modules/@radix-ui/react-context/dist/index.cjs.js +2 -0
  316. package/dist/node_modules/.bun/@radix-ui_react-context@1.2.0_93dbe784b8baa420/node_modules/@radix-ui/react-context/dist/index.cjs.js.map +1 -0
  317. package/dist/node_modules/.bun/@radix-ui_react-context@1.2.0_93dbe784b8baa420/node_modules/@radix-ui/react-context/dist/index.es.js +63 -0
  318. package/dist/node_modules/.bun/@radix-ui_react-context@1.2.0_93dbe784b8baa420/node_modules/@radix-ui/react-context/dist/index.es.js.map +1 -0
  319. package/dist/node_modules/.bun/@radix-ui_react-dialog@1.1.19_ae2b4604ef263bc9/node_modules/@radix-ui/react-dialog/dist/index.cjs.js +2 -0
  320. package/dist/node_modules/.bun/@radix-ui_react-dialog@1.1.19_ae2b4604ef263bc9/node_modules/@radix-ui/react-dialog/dist/index.cjs.js.map +1 -0
  321. package/dist/node_modules/.bun/@radix-ui_react-dialog@1.1.19_ae2b4604ef263bc9/node_modules/@radix-ui/react-dialog/dist/index.es.js +201 -0
  322. package/dist/node_modules/.bun/@radix-ui_react-dialog@1.1.19_ae2b4604ef263bc9/node_modules/@radix-ui/react-dialog/dist/index.es.js.map +1 -0
  323. package/dist/node_modules/.bun/@radix-ui_react-dismissable-layer@1.1.15_ae2b4604ef263bc9/node_modules/@radix-ui/react-dismissable-layer/dist/index.cjs.js +2 -0
  324. package/dist/node_modules/.bun/@radix-ui_react-dismissable-layer@1.1.15_ae2b4604ef263bc9/node_modules/@radix-ui/react-dismissable-layer/dist/index.cjs.js.map +1 -0
  325. package/dist/node_modules/.bun/@radix-ui_react-dismissable-layer@1.1.15_ae2b4604ef263bc9/node_modules/@radix-ui/react-dismissable-layer/dist/index.es.js +175 -0
  326. package/dist/node_modules/.bun/@radix-ui_react-dismissable-layer@1.1.15_ae2b4604ef263bc9/node_modules/@radix-ui/react-dismissable-layer/dist/index.es.js.map +1 -0
  327. package/dist/node_modules/.bun/@radix-ui_react-focus-guards@1.1.4_93dbe784b8baa420/node_modules/@radix-ui/react-focus-guards/dist/index.cjs.js +2 -0
  328. package/dist/node_modules/.bun/@radix-ui_react-focus-guards@1.1.4_93dbe784b8baa420/node_modules/@radix-ui/react-focus-guards/dist/index.cjs.js.map +1 -0
  329. package/dist/node_modules/.bun/@radix-ui_react-focus-guards@1.1.4_93dbe784b8baa420/node_modules/@radix-ui/react-focus-guards/dist/index.es.js +24 -0
  330. package/dist/node_modules/.bun/@radix-ui_react-focus-guards@1.1.4_93dbe784b8baa420/node_modules/@radix-ui/react-focus-guards/dist/index.es.js.map +1 -0
  331. package/dist/node_modules/.bun/@radix-ui_react-focus-scope@1.1.12_ae2b4604ef263bc9/node_modules/@radix-ui/react-focus-scope/dist/index.cjs.js +2 -0
  332. package/dist/node_modules/.bun/@radix-ui_react-focus-scope@1.1.12_ae2b4604ef263bc9/node_modules/@radix-ui/react-focus-scope/dist/index.cjs.js.map +1 -0
  333. package/dist/node_modules/.bun/@radix-ui_react-focus-scope@1.1.12_ae2b4604ef263bc9/node_modules/@radix-ui/react-focus-scope/dist/index.es.js +149 -0
  334. package/dist/node_modules/.bun/@radix-ui_react-focus-scope@1.1.12_ae2b4604ef263bc9/node_modules/@radix-ui/react-focus-scope/dist/index.es.js.map +1 -0
  335. package/dist/node_modules/.bun/@radix-ui_react-id@1.1.2_93dbe784b8baa420/node_modules/@radix-ui/react-id/dist/index.cjs.js +2 -0
  336. package/dist/node_modules/.bun/@radix-ui_react-id@1.1.2_93dbe784b8baa420/node_modules/@radix-ui/react-id/dist/index.cjs.js.map +1 -0
  337. package/dist/node_modules/.bun/@radix-ui_react-id@1.1.2_93dbe784b8baa420/node_modules/@radix-ui/react-id/dist/index.es.js +14 -0
  338. package/dist/node_modules/.bun/@radix-ui_react-id@1.1.2_93dbe784b8baa420/node_modules/@radix-ui/react-id/dist/index.es.js.map +1 -0
  339. package/dist/node_modules/.bun/@radix-ui_react-portal@1.1.13_ae2b4604ef263bc9/node_modules/@radix-ui/react-portal/dist/index.cjs.js +2 -0
  340. package/dist/node_modules/.bun/@radix-ui_react-portal@1.1.13_ae2b4604ef263bc9/node_modules/@radix-ui/react-portal/dist/index.cjs.js.map +1 -0
  341. package/dist/node_modules/.bun/@radix-ui_react-portal@1.1.13_ae2b4604ef263bc9/node_modules/@radix-ui/react-portal/dist/index.es.js +21 -0
  342. package/dist/node_modules/.bun/@radix-ui_react-portal@1.1.13_ae2b4604ef263bc9/node_modules/@radix-ui/react-portal/dist/index.es.js.map +1 -0
  343. package/dist/node_modules/.bun/@radix-ui_react-presence@1.1.7_ae2b4604ef263bc9/node_modules/@radix-ui/react-presence/dist/index.cjs.js +2 -0
  344. package/dist/node_modules/.bun/@radix-ui_react-presence@1.1.7_ae2b4604ef263bc9/node_modules/@radix-ui/react-presence/dist/index.cjs.js.map +1 -0
  345. package/dist/node_modules/.bun/@radix-ui_react-presence@1.1.7_ae2b4604ef263bc9/node_modules/@radix-ui/react-presence/dist/index.es.js +90 -0
  346. package/dist/node_modules/.bun/@radix-ui_react-presence@1.1.7_ae2b4604ef263bc9/node_modules/@radix-ui/react-presence/dist/index.es.js.map +1 -0
  347. package/dist/node_modules/.bun/@radix-ui_react-primitive@2.1.7_ae2b4604ef263bc9/node_modules/@radix-ui/react-primitive/dist/index.cjs.js +2 -0
  348. package/dist/node_modules/.bun/@radix-ui_react-primitive@2.1.7_ae2b4604ef263bc9/node_modules/@radix-ui/react-primitive/dist/index.cjs.js.map +1 -0
  349. package/dist/node_modules/.bun/@radix-ui_react-primitive@2.1.7_ae2b4604ef263bc9/node_modules/@radix-ui/react-primitive/dist/index.es.js +43 -0
  350. package/dist/node_modules/.bun/@radix-ui_react-primitive@2.1.7_ae2b4604ef263bc9/node_modules/@radix-ui/react-primitive/dist/index.es.js.map +1 -0
  351. package/dist/node_modules/.bun/@radix-ui_react-slot@1.3.0_93dbe784b8baa420/node_modules/@radix-ui/react-slot/dist/index.cjs.js +2 -0
  352. package/dist/node_modules/.bun/@radix-ui_react-slot@1.3.0_93dbe784b8baa420/node_modules/@radix-ui/react-slot/dist/index.cjs.js.map +1 -0
  353. package/dist/node_modules/.bun/@radix-ui_react-slot@1.3.0_93dbe784b8baa420/node_modules/@radix-ui/react-slot/dist/index.es.js +67 -0
  354. package/dist/node_modules/.bun/@radix-ui_react-slot@1.3.0_93dbe784b8baa420/node_modules/@radix-ui/react-slot/dist/index.es.js.map +1 -0
  355. package/dist/node_modules/.bun/@radix-ui_react-use-callback-ref@1.1.2_93dbe784b8baa420/node_modules/@radix-ui/react-use-callback-ref/dist/index.cjs.js +2 -0
  356. package/dist/node_modules/.bun/@radix-ui_react-use-callback-ref@1.1.2_93dbe784b8baa420/node_modules/@radix-ui/react-use-callback-ref/dist/index.cjs.js.map +1 -0
  357. package/dist/node_modules/.bun/@radix-ui_react-use-callback-ref@1.1.2_93dbe784b8baa420/node_modules/@radix-ui/react-use-callback-ref/dist/index.es.js +12 -0
  358. package/dist/node_modules/.bun/@radix-ui_react-use-callback-ref@1.1.2_93dbe784b8baa420/node_modules/@radix-ui/react-use-callback-ref/dist/index.es.js.map +1 -0
  359. package/dist/node_modules/.bun/@radix-ui_react-use-controllable-state@1.2.3_93dbe784b8baa420/node_modules/@radix-ui/react-use-controllable-state/dist/index.cjs.js +2 -0
  360. package/dist/node_modules/.bun/@radix-ui_react-use-controllable-state@1.2.3_93dbe784b8baa420/node_modules/@radix-ui/react-use-controllable-state/dist/index.cjs.js.map +1 -0
  361. package/dist/node_modules/.bun/@radix-ui_react-use-controllable-state@1.2.3_93dbe784b8baa420/node_modules/@radix-ui/react-use-controllable-state/dist/index.es.js +47 -0
  362. package/dist/node_modules/.bun/@radix-ui_react-use-controllable-state@1.2.3_93dbe784b8baa420/node_modules/@radix-ui/react-use-controllable-state/dist/index.es.js.map +1 -0
  363. package/dist/node_modules/.bun/@radix-ui_react-use-layout-effect@1.1.2_93dbe784b8baa420/node_modules/@radix-ui/react-use-layout-effect/dist/index.cjs.js +2 -0
  364. package/dist/node_modules/.bun/@radix-ui_react-use-layout-effect@1.1.2_93dbe784b8baa420/node_modules/@radix-ui/react-use-layout-effect/dist/index.cjs.js.map +1 -0
  365. package/dist/node_modules/.bun/@radix-ui_react-use-layout-effect@1.1.2_93dbe784b8baa420/node_modules/@radix-ui/react-use-layout-effect/dist/index.es.js +7 -0
  366. package/dist/node_modules/.bun/@radix-ui_react-use-layout-effect@1.1.2_93dbe784b8baa420/node_modules/@radix-ui/react-use-layout-effect/dist/index.es.js.map +1 -0
  367. package/dist/node_modules/.bun/aria-hidden@1.2.6/node_modules/aria-hidden/dist/es2015/index.cjs.js +2 -0
  368. package/dist/node_modules/.bun/aria-hidden@1.2.6/node_modules/aria-hidden/dist/es2015/index.cjs.js.map +1 -0
  369. package/dist/node_modules/.bun/aria-hidden@1.2.6/node_modules/aria-hidden/dist/es2015/index.es.js +48 -0
  370. package/dist/node_modules/.bun/aria-hidden@1.2.6/node_modules/aria-hidden/dist/es2015/index.es.js.map +1 -0
  371. package/dist/node_modules/.bun/class-variance-authority@0.7.1/node_modules/class-variance-authority/dist/index.cjs.js +2 -0
  372. package/dist/node_modules/.bun/class-variance-authority@0.7.1/node_modules/class-variance-authority/dist/index.cjs.js.map +1 -0
  373. package/dist/node_modules/.bun/class-variance-authority@0.7.1/node_modules/class-variance-authority/dist/index.es.js +35 -0
  374. package/dist/node_modules/.bun/class-variance-authority@0.7.1/node_modules/class-variance-authority/dist/index.es.js.map +1 -0
  375. package/dist/node_modules/.bun/clsx@2.1.1/node_modules/clsx/dist/clsx.cjs.js +2 -0
  376. package/dist/node_modules/.bun/clsx@2.1.1/node_modules/clsx/dist/clsx.cjs.js.map +1 -0
  377. package/dist/node_modules/.bun/clsx@2.1.1/node_modules/clsx/dist/clsx.es.js +18 -0
  378. package/dist/node_modules/.bun/clsx@2.1.1/node_modules/clsx/dist/clsx.es.js.map +1 -0
  379. package/dist/node_modules/.bun/cmdk@1.1.1_ae2b4604ef263bc9/node_modules/cmdk/dist/chunk-NZJY6EH4.cjs.js +2 -0
  380. package/dist/node_modules/.bun/cmdk@1.1.1_ae2b4604ef263bc9/node_modules/cmdk/dist/chunk-NZJY6EH4.cjs.js.map +1 -0
  381. package/dist/node_modules/.bun/cmdk@1.1.1_ae2b4604ef263bc9/node_modules/cmdk/dist/chunk-NZJY6EH4.es.js +19 -0
  382. package/dist/node_modules/.bun/cmdk@1.1.1_ae2b4604ef263bc9/node_modules/cmdk/dist/chunk-NZJY6EH4.es.js.map +1 -0
  383. package/dist/node_modules/.bun/cmdk@1.1.1_ae2b4604ef263bc9/node_modules/cmdk/dist/index.cjs.js +2 -0
  384. package/dist/node_modules/.bun/cmdk@1.1.1_ae2b4604ef263bc9/node_modules/cmdk/dist/index.cjs.js.map +1 -0
  385. package/dist/node_modules/.bun/cmdk@1.1.1_ae2b4604ef263bc9/node_modules/cmdk/dist/index.es.js +446 -0
  386. package/dist/node_modules/.bun/cmdk@1.1.1_ae2b4604ef263bc9/node_modules/cmdk/dist/index.es.js.map +1 -0
  387. package/dist/node_modules/.bun/cnfast@0.0.8/node_modules/cnfast/dist/index.cjs.js +2 -0
  388. package/dist/node_modules/.bun/cnfast@0.0.8/node_modules/cnfast/dist/index.cjs.js.map +1 -0
  389. package/dist/node_modules/.bun/cnfast@0.0.8/node_modules/cnfast/dist/index.es.js +1860 -0
  390. package/dist/node_modules/.bun/cnfast@0.0.8/node_modules/cnfast/dist/index.es.js.map +1 -0
  391. package/dist/node_modules/.bun/embla-carousel-react@8.6.0_e14d3f224186685e/node_modules/embla-carousel-react/esm/embla-carousel-react.esm.cjs.js +2 -0
  392. package/dist/node_modules/.bun/embla-carousel-react@8.6.0_e14d3f224186685e/node_modules/embla-carousel-react/esm/embla-carousel-react.esm.cjs.js.map +1 -0
  393. package/dist/node_modules/.bun/embla-carousel-react@8.6.0_e14d3f224186685e/node_modules/embla-carousel-react/esm/embla-carousel-react.esm.es.js +25 -0
  394. package/dist/node_modules/.bun/embla-carousel-react@8.6.0_e14d3f224186685e/node_modules/embla-carousel-react/esm/embla-carousel-react.esm.es.js.map +1 -0
  395. package/dist/node_modules/.bun/embla-carousel-reactive-utils@8.6.0_3dde5556684c958d/node_modules/embla-carousel-reactive-utils/esm/embla-carousel-reactive-utils.esm.cjs.js +2 -0
  396. package/dist/node_modules/.bun/embla-carousel-reactive-utils@8.6.0_3dde5556684c958d/node_modules/embla-carousel-reactive-utils/esm/embla-carousel-reactive-utils.esm.cjs.js.map +1 -0
  397. package/dist/node_modules/.bun/embla-carousel-reactive-utils@8.6.0_3dde5556684c958d/node_modules/embla-carousel-reactive-utils/esm/embla-carousel-reactive-utils.esm.es.js +32 -0
  398. package/dist/node_modules/.bun/embla-carousel-reactive-utils@8.6.0_3dde5556684c958d/node_modules/embla-carousel-reactive-utils/esm/embla-carousel-reactive-utils.esm.es.js.map +1 -0
  399. package/dist/node_modules/.bun/embla-carousel@8.6.0/node_modules/embla-carousel/esm/embla-carousel.esm.cjs.js +2 -0
  400. package/dist/node_modules/.bun/embla-carousel@8.6.0/node_modules/embla-carousel/esm/embla-carousel.esm.cjs.js.map +1 -0
  401. package/dist/node_modules/.bun/embla-carousel@8.6.0/node_modules/embla-carousel/esm/embla-carousel.esm.es.js +1019 -0
  402. package/dist/node_modules/.bun/embla-carousel@8.6.0/node_modules/embla-carousel/esm/embla-carousel.esm.es.js.map +1 -0
  403. package/dist/node_modules/.bun/get-nonce@1.0.1/node_modules/get-nonce/dist/es2015/index.cjs.js +2 -0
  404. package/dist/node_modules/.bun/get-nonce@1.0.1/node_modules/get-nonce/dist/es2015/index.cjs.js.map +1 -0
  405. package/dist/node_modules/.bun/get-nonce@1.0.1/node_modules/get-nonce/dist/es2015/index.es.js +9 -0
  406. package/dist/node_modules/.bun/get-nonce@1.0.1/node_modules/get-nonce/dist/es2015/index.es.js.map +1 -0
  407. package/dist/node_modules/.bun/input-otp@1.4.2_7492c01c6988791b/node_modules/input-otp/dist/index.cjs.js +21 -0
  408. package/dist/node_modules/.bun/input-otp@1.4.2_7492c01c6988791b/node_modules/input-otp/dist/index.cjs.js.map +1 -0
  409. package/dist/node_modules/.bun/input-otp@1.4.2_7492c01c6988791b/node_modules/input-otp/dist/index.es.js +351 -0
  410. package/dist/node_modules/.bun/input-otp@1.4.2_7492c01c6988791b/node_modules/input-otp/dist/index.es.js.map +1 -0
  411. package/dist/node_modules/.bun/react-remove-scroll-bar@2.3.8_93dbe784b8baa420/node_modules/react-remove-scroll-bar/dist/es2015/component.cjs.js +39 -0
  412. package/dist/node_modules/.bun/react-remove-scroll-bar@2.3.8_93dbe784b8baa420/node_modules/react-remove-scroll-bar/dist/es2015/component.cjs.js.map +1 -0
  413. package/dist/node_modules/.bun/react-remove-scroll-bar@2.3.8_93dbe784b8baa420/node_modules/react-remove-scroll-bar/dist/es2015/component.es.js +72 -0
  414. package/dist/node_modules/.bun/react-remove-scroll-bar@2.3.8_93dbe784b8baa420/node_modules/react-remove-scroll-bar/dist/es2015/component.es.js.map +1 -0
  415. package/dist/node_modules/.bun/react-remove-scroll-bar@2.3.8_93dbe784b8baa420/node_modules/react-remove-scroll-bar/dist/es2015/constants.cjs.js +2 -0
  416. package/dist/node_modules/.bun/react-remove-scroll-bar@2.3.8_93dbe784b8baa420/node_modules/react-remove-scroll-bar/dist/es2015/constants.cjs.js.map +1 -0
  417. package/dist/node_modules/.bun/react-remove-scroll-bar@2.3.8_93dbe784b8baa420/node_modules/react-remove-scroll-bar/dist/es2015/constants.es.js +6 -0
  418. package/dist/node_modules/.bun/react-remove-scroll-bar@2.3.8_93dbe784b8baa420/node_modules/react-remove-scroll-bar/dist/es2015/constants.es.js.map +1 -0
  419. package/dist/node_modules/.bun/react-remove-scroll-bar@2.3.8_93dbe784b8baa420/node_modules/react-remove-scroll-bar/dist/es2015/index.cjs.js +1 -0
  420. package/dist/node_modules/.bun/react-remove-scroll-bar@2.3.8_93dbe784b8baa420/node_modules/react-remove-scroll-bar/dist/es2015/index.es.js +4 -0
  421. package/dist/node_modules/.bun/react-remove-scroll-bar@2.3.8_93dbe784b8baa420/node_modules/react-remove-scroll-bar/dist/es2015/utils.cjs.js +2 -0
  422. package/dist/node_modules/.bun/react-remove-scroll-bar@2.3.8_93dbe784b8baa420/node_modules/react-remove-scroll-bar/dist/es2015/utils.cjs.js.map +1 -0
  423. package/dist/node_modules/.bun/react-remove-scroll-bar@2.3.8_93dbe784b8baa420/node_modules/react-remove-scroll-bar/dist/es2015/utils.es.js +29 -0
  424. package/dist/node_modules/.bun/react-remove-scroll-bar@2.3.8_93dbe784b8baa420/node_modules/react-remove-scroll-bar/dist/es2015/utils.es.js.map +1 -0
  425. package/dist/node_modules/.bun/react-remove-scroll@2.7.2_93dbe784b8baa420/node_modules/react-remove-scroll/dist/es2015/Combination.cjs.js +2 -0
  426. package/dist/node_modules/.bun/react-remove-scroll@2.7.2_93dbe784b8baa420/node_modules/react-remove-scroll/dist/es2015/Combination.cjs.js.map +1 -0
  427. package/dist/node_modules/.bun/react-remove-scroll@2.7.2_93dbe784b8baa420/node_modules/react-remove-scroll/dist/es2015/Combination.es.js +16 -0
  428. package/dist/node_modules/.bun/react-remove-scroll@2.7.2_93dbe784b8baa420/node_modules/react-remove-scroll/dist/es2015/Combination.es.js.map +1 -0
  429. package/dist/node_modules/.bun/react-remove-scroll@2.7.2_93dbe784b8baa420/node_modules/react-remove-scroll/dist/es2015/SideEffect.cjs.js +5 -0
  430. package/dist/node_modules/.bun/react-remove-scroll@2.7.2_93dbe784b8baa420/node_modules/react-remove-scroll/dist/es2015/SideEffect.cjs.js.map +1 -0
  431. package/dist/node_modules/.bun/react-remove-scroll@2.7.2_93dbe784b8baa420/node_modules/react-remove-scroll/dist/es2015/SideEffect.es.js +118 -0
  432. package/dist/node_modules/.bun/react-remove-scroll@2.7.2_93dbe784b8baa420/node_modules/react-remove-scroll/dist/es2015/SideEffect.es.js.map +1 -0
  433. package/dist/node_modules/.bun/react-remove-scroll@2.7.2_93dbe784b8baa420/node_modules/react-remove-scroll/dist/es2015/UI.cjs.js +2 -0
  434. package/dist/node_modules/.bun/react-remove-scroll@2.7.2_93dbe784b8baa420/node_modules/react-remove-scroll/dist/es2015/UI.cjs.js.map +1 -0
  435. package/dist/node_modules/.bun/react-remove-scroll@2.7.2_93dbe784b8baa420/node_modules/react-remove-scroll/dist/es2015/UI.es.js +54 -0
  436. package/dist/node_modules/.bun/react-remove-scroll@2.7.2_93dbe784b8baa420/node_modules/react-remove-scroll/dist/es2015/UI.es.js.map +1 -0
  437. package/dist/node_modules/.bun/react-remove-scroll@2.7.2_93dbe784b8baa420/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.cjs.js +2 -0
  438. package/dist/node_modules/.bun/react-remove-scroll@2.7.2_93dbe784b8baa420/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.cjs.js.map +1 -0
  439. package/dist/node_modules/.bun/react-remove-scroll@2.7.2_93dbe784b8baa420/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.es.js +15 -0
  440. package/dist/node_modules/.bun/react-remove-scroll@2.7.2_93dbe784b8baa420/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.es.js.map +1 -0
  441. package/dist/node_modules/.bun/react-remove-scroll@2.7.2_93dbe784b8baa420/node_modules/react-remove-scroll/dist/es2015/handleScroll.cjs.js +2 -0
  442. package/dist/node_modules/.bun/react-remove-scroll@2.7.2_93dbe784b8baa420/node_modules/react-remove-scroll/dist/es2015/handleScroll.cjs.js.map +1 -0
  443. package/dist/node_modules/.bun/react-remove-scroll@2.7.2_93dbe784b8baa420/node_modules/react-remove-scroll/dist/es2015/handleScroll.es.js +54 -0
  444. package/dist/node_modules/.bun/react-remove-scroll@2.7.2_93dbe784b8baa420/node_modules/react-remove-scroll/dist/es2015/handleScroll.es.js.map +1 -0
  445. package/dist/node_modules/.bun/react-remove-scroll@2.7.2_93dbe784b8baa420/node_modules/react-remove-scroll/dist/es2015/medium.cjs.js +2 -0
  446. package/dist/node_modules/.bun/react-remove-scroll@2.7.2_93dbe784b8baa420/node_modules/react-remove-scroll/dist/es2015/medium.cjs.js.map +1 -0
  447. package/dist/node_modules/.bun/react-remove-scroll@2.7.2_93dbe784b8baa420/node_modules/react-remove-scroll/dist/es2015/medium.es.js +7 -0
  448. package/dist/node_modules/.bun/react-remove-scroll@2.7.2_93dbe784b8baa420/node_modules/react-remove-scroll/dist/es2015/medium.es.js.map +1 -0
  449. package/dist/node_modules/.bun/react-remove-scroll@2.7.2_93dbe784b8baa420/node_modules/react-remove-scroll/dist/es2015/sidecar.cjs.js +2 -0
  450. package/dist/node_modules/.bun/react-remove-scroll@2.7.2_93dbe784b8baa420/node_modules/react-remove-scroll/dist/es2015/sidecar.cjs.js.map +1 -0
  451. package/dist/node_modules/.bun/react-remove-scroll@2.7.2_93dbe784b8baa420/node_modules/react-remove-scroll/dist/es2015/sidecar.es.js +9 -0
  452. package/dist/node_modules/.bun/react-remove-scroll@2.7.2_93dbe784b8baa420/node_modules/react-remove-scroll/dist/es2015/sidecar.es.js.map +1 -0
  453. package/dist/node_modules/.bun/react-resizable-panels@4.12.1_7492c01c6988791b/node_modules/react-resizable-panels/dist/react-resizable-panels.cjs.js +2 -0
  454. package/dist/node_modules/.bun/react-resizable-panels@4.12.1_7492c01c6988791b/node_modules/react-resizable-panels/dist/react-resizable-panels.cjs.js.map +1 -0
  455. package/dist/node_modules/.bun/react-resizable-panels@4.12.1_7492c01c6988791b/node_modules/react-resizable-panels/dist/react-resizable-panels.es.js +1550 -0
  456. package/dist/node_modules/.bun/react-resizable-panels@4.12.1_7492c01c6988791b/node_modules/react-resizable-panels/dist/react-resizable-panels.es.js.map +1 -0
  457. package/dist/node_modules/.bun/react-style-singleton@2.2.3_93dbe784b8baa420/node_modules/react-style-singleton/dist/es2015/component.cjs.js +2 -0
  458. package/dist/node_modules/.bun/react-style-singleton@2.2.3_93dbe784b8baa420/node_modules/react-style-singleton/dist/es2015/component.cjs.js.map +1 -0
  459. package/dist/node_modules/.bun/react-style-singleton@2.2.3_93dbe784b8baa420/node_modules/react-style-singleton/dist/es2015/component.es.js +13 -0
  460. package/dist/node_modules/.bun/react-style-singleton@2.2.3_93dbe784b8baa420/node_modules/react-style-singleton/dist/es2015/component.es.js.map +1 -0
  461. package/dist/node_modules/.bun/react-style-singleton@2.2.3_93dbe784b8baa420/node_modules/react-style-singleton/dist/es2015/hook.cjs.js +2 -0
  462. package/dist/node_modules/.bun/react-style-singleton@2.2.3_93dbe784b8baa420/node_modules/react-style-singleton/dist/es2015/hook.cjs.js.map +1 -0
  463. package/dist/node_modules/.bun/react-style-singleton@2.2.3_93dbe784b8baa420/node_modules/react-style-singleton/dist/es2015/hook.es.js +17 -0
  464. package/dist/node_modules/.bun/react-style-singleton@2.2.3_93dbe784b8baa420/node_modules/react-style-singleton/dist/es2015/hook.es.js.map +1 -0
  465. package/dist/node_modules/.bun/react-style-singleton@2.2.3_93dbe784b8baa420/node_modules/react-style-singleton/dist/es2015/index.cjs.js +1 -0
  466. package/dist/node_modules/.bun/react-style-singleton@2.2.3_93dbe784b8baa420/node_modules/react-style-singleton/dist/es2015/index.es.js +4 -0
  467. package/dist/node_modules/.bun/react-style-singleton@2.2.3_93dbe784b8baa420/node_modules/react-style-singleton/dist/es2015/singleton.cjs.js +2 -0
  468. package/dist/node_modules/.bun/react-style-singleton@2.2.3_93dbe784b8baa420/node_modules/react-style-singleton/dist/es2015/singleton.cjs.js.map +1 -0
  469. package/dist/node_modules/.bun/react-style-singleton@2.2.3_93dbe784b8baa420/node_modules/react-style-singleton/dist/es2015/singleton.es.js +30 -0
  470. package/dist/node_modules/.bun/react-style-singleton@2.2.3_93dbe784b8baa420/node_modules/react-style-singleton/dist/es2015/singleton.es.js.map +1 -0
  471. package/dist/node_modules/.bun/tslib@2.8.1/node_modules/tslib/tslib.es6.cjs.js +2 -0
  472. package/dist/node_modules/.bun/tslib@2.8.1/node_modules/tslib/tslib.es6.cjs.js.map +1 -0
  473. package/dist/node_modules/.bun/tslib@2.8.1/node_modules/tslib/tslib.es6.es.js +21 -0
  474. package/dist/node_modules/.bun/tslib@2.8.1/node_modules/tslib/tslib.es6.es.js.map +1 -0
  475. package/dist/node_modules/.bun/use-callback-ref@1.3.3_93dbe784b8baa420/node_modules/use-callback-ref/dist/es2015/assignRef.cjs.js +2 -0
  476. package/dist/node_modules/.bun/use-callback-ref@1.3.3_93dbe784b8baa420/node_modules/use-callback-ref/dist/es2015/assignRef.cjs.js.map +1 -0
  477. package/dist/node_modules/.bun/use-callback-ref@1.3.3_93dbe784b8baa420/node_modules/use-callback-ref/dist/es2015/assignRef.es.js +8 -0
  478. package/dist/node_modules/.bun/use-callback-ref@1.3.3_93dbe784b8baa420/node_modules/use-callback-ref/dist/es2015/assignRef.es.js.map +1 -0
  479. package/dist/node_modules/.bun/use-callback-ref@1.3.3_93dbe784b8baa420/node_modules/use-callback-ref/dist/es2015/useMergeRef.cjs.js +2 -0
  480. package/dist/node_modules/.bun/use-callback-ref@1.3.3_93dbe784b8baa420/node_modules/use-callback-ref/dist/es2015/useMergeRef.cjs.js.map +1 -0
  481. package/dist/node_modules/.bun/use-callback-ref@1.3.3_93dbe784b8baa420/node_modules/use-callback-ref/dist/es2015/useMergeRef.es.js +28 -0
  482. package/dist/node_modules/.bun/use-callback-ref@1.3.3_93dbe784b8baa420/node_modules/use-callback-ref/dist/es2015/useMergeRef.es.js.map +1 -0
  483. package/dist/node_modules/.bun/use-callback-ref@1.3.3_93dbe784b8baa420/node_modules/use-callback-ref/dist/es2015/useRef.cjs.js +2 -0
  484. package/dist/node_modules/.bun/use-callback-ref@1.3.3_93dbe784b8baa420/node_modules/use-callback-ref/dist/es2015/useRef.cjs.js.map +1 -0
  485. package/dist/node_modules/.bun/use-callback-ref@1.3.3_93dbe784b8baa420/node_modules/use-callback-ref/dist/es2015/useRef.es.js +24 -0
  486. package/dist/node_modules/.bun/use-callback-ref@1.3.3_93dbe784b8baa420/node_modules/use-callback-ref/dist/es2015/useRef.es.js.map +1 -0
  487. package/dist/node_modules/.bun/use-sidecar@1.1.3_93dbe784b8baa420/node_modules/use-sidecar/dist/es2015/exports.cjs.js +2 -0
  488. package/dist/node_modules/.bun/use-sidecar@1.1.3_93dbe784b8baa420/node_modules/use-sidecar/dist/es2015/exports.cjs.js.map +1 -0
  489. package/dist/node_modules/.bun/use-sidecar@1.1.3_93dbe784b8baa420/node_modules/use-sidecar/dist/es2015/exports.es.js +18 -0
  490. package/dist/node_modules/.bun/use-sidecar@1.1.3_93dbe784b8baa420/node_modules/use-sidecar/dist/es2015/exports.es.js.map +1 -0
  491. package/dist/node_modules/.bun/use-sidecar@1.1.3_93dbe784b8baa420/node_modules/use-sidecar/dist/es2015/medium.cjs.js +2 -0
  492. package/dist/node_modules/.bun/use-sidecar@1.1.3_93dbe784b8baa420/node_modules/use-sidecar/dist/es2015/medium.cjs.js.map +1 -0
  493. package/dist/node_modules/.bun/use-sidecar@1.1.3_93dbe784b8baa420/node_modules/use-sidecar/dist/es2015/medium.es.js +71 -0
  494. package/dist/node_modules/.bun/use-sidecar@1.1.3_93dbe784b8baa420/node_modules/use-sidecar/dist/es2015/medium.es.js.map +1 -0
  495. package/package.json +87 -25
  496. package/src/index.css +0 -1
@@ -1 +1 @@
1
- export { cn, type ClassValue } from "cnfast";
1
+ export { cn, type ClassValue } from 'cnfast';
@@ -0,0 +1,2 @@
1
+ typeof window<`u`&&window.document&&window.document.createElement;function e(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),n===!1||!r||!r.defaultPrevented)return t?.(r)}}exports.composeEventHandlers=e;
2
+ //# sourceMappingURL=index.cjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs.js","names":[],"sources":["../../../../../../../../../../node_modules/.bun/@radix-ui+primitive@1.1.5/node_modules/@radix-ui/primitive/dist/index.mjs"],"sourcesContent":["// src/primitive.tsx\nvar canUseDOM = !!(typeof window !== \"undefined\" && window.document && window.document.createElement);\nfunction composeEventHandlers(originalEventHandler, ourEventHandler, { checkForDefaultPrevented = true } = {}) {\n return function handleEvent(event) {\n originalEventHandler?.(event);\n if (checkForDefaultPrevented === false || !event || !event.defaultPrevented) {\n return ourEventHandler?.(event);\n }\n };\n}\nfunction getOwnerWindow(element) {\n if (!canUseDOM) {\n throw new Error(\"Cannot access window outside of the DOM\");\n }\n return element?.ownerDocument?.defaultView ?? window;\n}\nfunction getOwnerDocument(element) {\n if (!canUseDOM) {\n throw new Error(\"Cannot access document outside of the DOM\");\n }\n return element?.ownerDocument ?? document;\n}\nfunction getActiveElement(node, activeDescendant = false) {\n const { activeElement } = getOwnerDocument(node);\n if (!activeElement?.nodeName) {\n return null;\n }\n if (isFrame(activeElement) && activeElement.contentDocument) {\n return getActiveElement(activeElement.contentDocument.body, activeDescendant);\n }\n if (activeDescendant) {\n const id = activeElement.getAttribute(\"aria-activedescendant\");\n if (id) {\n const element = getOwnerDocument(activeElement).getElementById(id);\n if (element) {\n return element;\n }\n }\n }\n return activeElement;\n}\nfunction isFrame(element) {\n return element.tagName === \"IFRAME\";\n}\nexport {\n canUseDOM,\n composeEventHandlers,\n getActiveElement,\n getOwnerDocument,\n getOwnerWindow,\n isFrame\n};\n//# sourceMappingURL=index.mjs.map\n"],"x_google_ignoreList":[0],"mappings":"AACmB,OAAO,OAAW,KAAe,OAAO,UAAY,OAAO,SAAS,cACvF,SAAS,EAAqB,EAAsB,EAAiB,CAAE,2BAA2B,IAAS,CAAC,EAAG,CAC7G,OAAO,SAAqB,EAAO,CAEjC,GADA,IAAuB,CAAK,EACxB,IAA6B,IAAS,CAAC,GAAS,CAAC,EAAM,iBACzD,OAAO,IAAkB,CAAK,CAElC,CACF"}
@@ -0,0 +1,10 @@
1
+ typeof window < "u" && window.document && window.document.createElement;
2
+ function e(e, t, { checkForDefaultPrevented: n = !0 } = {}) {
3
+ return function(r) {
4
+ if (e?.(r), n === !1 || !r || !r.defaultPrevented) return t?.(r);
5
+ };
6
+ }
7
+ //#endregion
8
+ export { e as composeEventHandlers };
9
+
10
+ //# sourceMappingURL=index.es.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.es.js","names":[],"sources":["../../../../../../../../../../node_modules/.bun/@radix-ui+primitive@1.1.5/node_modules/@radix-ui/primitive/dist/index.mjs"],"sourcesContent":["// src/primitive.tsx\nvar canUseDOM = !!(typeof window !== \"undefined\" && window.document && window.document.createElement);\nfunction composeEventHandlers(originalEventHandler, ourEventHandler, { checkForDefaultPrevented = true } = {}) {\n return function handleEvent(event) {\n originalEventHandler?.(event);\n if (checkForDefaultPrevented === false || !event || !event.defaultPrevented) {\n return ourEventHandler?.(event);\n }\n };\n}\nfunction getOwnerWindow(element) {\n if (!canUseDOM) {\n throw new Error(\"Cannot access window outside of the DOM\");\n }\n return element?.ownerDocument?.defaultView ?? window;\n}\nfunction getOwnerDocument(element) {\n if (!canUseDOM) {\n throw new Error(\"Cannot access document outside of the DOM\");\n }\n return element?.ownerDocument ?? document;\n}\nfunction getActiveElement(node, activeDescendant = false) {\n const { activeElement } = getOwnerDocument(node);\n if (!activeElement?.nodeName) {\n return null;\n }\n if (isFrame(activeElement) && activeElement.contentDocument) {\n return getActiveElement(activeElement.contentDocument.body, activeDescendant);\n }\n if (activeDescendant) {\n const id = activeElement.getAttribute(\"aria-activedescendant\");\n if (id) {\n const element = getOwnerDocument(activeElement).getElementById(id);\n if (element) {\n return element;\n }\n }\n }\n return activeElement;\n}\nfunction isFrame(element) {\n return element.tagName === \"IFRAME\";\n}\nexport {\n canUseDOM,\n composeEventHandlers,\n getActiveElement,\n getOwnerDocument,\n getOwnerWindow,\n isFrame\n};\n//# sourceMappingURL=index.mjs.map\n"],"x_google_ignoreList":[0],"mappings":"AACmB,OAAO,SAAW,OAAe,OAAO,YAAY,OAAO,SAAS;AACvF,SAAS,EAAqB,GAAsB,GAAiB,EAAE,8BAA2B,OAAS,CAAC,GAAG;CAC7G,OAAO,SAAqB,GAAO;EAEjC,IADA,IAAuB,CAAK,GACxB,MAA6B,MAAS,CAAC,KAAS,CAAC,EAAM,kBACzD,OAAO,IAAkB,CAAK;CAElC;AACF"}
@@ -0,0 +1,2 @@
1
+ const e=require("../../../../../../../_virtual/_rolldown/runtime.cjs.js");let t=require("react");t=e.__toESM(t,1);function n(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}function r(...e){return t=>{let r=!1,i=e.map(e=>{let i=n(e,t);return!r&&typeof i==`function`&&(r=!0),i});if(r)return()=>{for(let t=0;t<i.length;t++){let r=i[t];typeof r==`function`?r():n(e[t],null)}}}}function i(...e){return t.useCallback(r(...e),e)}exports.composeRefs=r,exports.useComposedRefs=i;
2
+ //# sourceMappingURL=index.cjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs.js","names":["React"],"sources":["../../../../../../../../../../node_modules/.bun/@radix-ui+react-compose-refs@1.1.3+93dbe784b8baa420/node_modules/@radix-ui/react-compose-refs/dist/index.mjs"],"sourcesContent":["// 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"],"x_google_ignoreList":[0],"mappings":"kHAEA,SAAS,EAAO,EAAK,EAAO,CAC1B,GAAI,OAAO,GAAQ,WACjB,OAAO,EAAI,CAAK,EACP,GAAQ,OACjB,EAAI,QAAU,EAElB,CACA,SAAS,EAAY,GAAG,EAAM,CAC5B,MAAQ,IAAS,CACf,IAAI,EAAa,GACX,EAAW,EAAK,IAAK,GAAQ,CACjC,IAAM,EAAU,EAAO,EAAK,CAAI,EAIhC,MAHI,CAAC,GAAc,OAAO,GAAW,aACnC,EAAa,IAER,CACT,CAAC,EACD,GAAI,EACF,UAAa,CACX,IAAK,IAAI,EAAI,EAAG,EAAI,EAAS,OAAQ,IAAK,CACxC,IAAM,EAAU,EAAS,GACrB,OAAO,GAAW,WACpB,EAAQ,EAER,EAAO,EAAK,GAAI,IAAI,CAExB,CACF,CAEJ,CACF,CACA,SAAS,EAAgB,GAAG,EAAM,CAChC,OAAOA,EAAM,YAAY,EAAY,GAAG,CAAI,EAAG,CAAI,CACrD"}
@@ -0,0 +1,27 @@
1
+ import * as e from "react";
2
+ //#region ../../node_modules/.bun/@radix-ui+react-compose-refs@1.1.3+93dbe784b8baa420/node_modules/@radix-ui/react-compose-refs/dist/index.mjs
3
+ function t(e, t) {
4
+ if (typeof e == "function") return e(t);
5
+ e != null && (e.current = t);
6
+ }
7
+ function n(...e) {
8
+ return (n) => {
9
+ let r = !1, i = e.map((e) => {
10
+ let i = t(e, n);
11
+ return !r && typeof i == "function" && (r = !0), i;
12
+ });
13
+ if (r) return () => {
14
+ for (let n = 0; n < i.length; n++) {
15
+ let r = i[n];
16
+ typeof r == "function" ? r() : t(e[n], null);
17
+ }
18
+ };
19
+ };
20
+ }
21
+ function r(...t) {
22
+ return e.useCallback(n(...t), t);
23
+ }
24
+ //#endregion
25
+ export { n as composeRefs, r as useComposedRefs };
26
+
27
+ //# sourceMappingURL=index.es.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.es.js","names":[],"sources":["../../../../../../../../../../node_modules/.bun/@radix-ui+react-compose-refs@1.1.3+93dbe784b8baa420/node_modules/@radix-ui/react-compose-refs/dist/index.mjs"],"sourcesContent":["// 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"],"x_google_ignoreList":[0],"mappings":";;AAEA,SAAS,EAAO,GAAK,GAAO;CAC1B,IAAI,OAAO,KAAQ,YACjB,OAAO,EAAI,CAAK;CACX,AAAI,KAAQ,SACjB,EAAI,UAAU;AAElB;AACA,SAAS,EAAY,GAAG,GAAM;CAC5B,QAAQ,MAAS;EACf,IAAI,IAAa,IACX,IAAW,EAAK,KAAK,MAAQ;GACjC,IAAM,IAAU,EAAO,GAAK,CAAI;GAIhC,OAHI,CAAC,KAAc,OAAO,KAAW,eACnC,IAAa,KAER;EACT,CAAC;EACD,IAAI,GACF,aAAa;GACX,KAAK,IAAI,IAAI,GAAG,IAAI,EAAS,QAAQ,KAAK;IACxC,IAAM,IAAU,EAAS;IACzB,AAAI,OAAO,KAAW,aACpB,EAAQ,IAER,EAAO,EAAK,IAAI,IAAI;GAExB;EACF;CAEJ;AACF;AACA,SAAS,EAAgB,GAAG,GAAM;CAChC,OAAO,EAAM,YAAY,EAAY,GAAG,CAAI,GAAG,CAAI;AACrD"}
@@ -0,0 +1,2 @@
1
+ const e=require("../../../../../../../_virtual/_rolldown/runtime.cjs.js");let t=require("react/jsx-runtime"),n=require("react");n=e.__toESM(n,1);function r(e,r=[]){let a=[];function o(r,i){let o=n.createContext(i);o.displayName=r+`Context`;let s=a.length;a=[...a,i];let c=r=>{let{scope:i,children:a,...c}=r,l=i?.[e]?.[s]||o,u=n.useMemo(()=>c,Object.values(c));return(0,t.jsx)(l.Provider,{value:u,children:a})};c.displayName=r+`Provider`;function l(t,a,c={}){let{optional:l=!1}=c,u=a?.[e]?.[s]||o,d=n.useContext(u);if(d)return d;if(i!==void 0)return i;if(!l)throw Error(`\`${t}\` must be used within \`${r}\``)}return[c,l]}let s=()=>{let t=a.map(e=>n.createContext(e));return function(r){let i=r?.[e]||t;return n.useMemo(()=>({[`__scope${e}`]:{...r,[e]:i}}),[r,i])}};return s.scopeName=e,[o,i(s,...r)]}function i(...e){let t=e[0];if(e.length===1)return t;let r=()=>{let r=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return 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])}};return r.scopeName=t.scopeName,r}exports.createContextScope=r;
2
+ //# sourceMappingURL=index.cjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs.js","names":["React"],"sources":["../../../../../../../../../../node_modules/.bun/@radix-ui+react-context@1.2.0+93dbe784b8baa420/node_modules/@radix-ui/react-context/dist/index.mjs"],"sourcesContent":["// 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 Context.displayName = rootComponentName + \"Context\";\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, options = {}) {\n const { optional = false } = options;\n const context = React.useContext(Context);\n if (context) return context;\n if (defaultContext !== void 0) return defaultContext;\n if (optional) return void 0;\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 BaseContext.displayName = rootComponentName + \"Context\";\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, options = {}) {\n const { optional = false } = options;\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 if (optional) return void 0;\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"],"x_google_ignoreList":[0],"mappings":"iJAsBA,SAAS,EAAmB,EAAW,EAAyB,CAAC,EAAG,CAClE,IAAI,EAAkB,CAAC,EACvB,SAAS,EAAe,EAAmB,EAAgB,CACzD,IAAM,EAAcA,EAAM,cAAc,CAAc,EACtD,EAAY,YAAc,EAAoB,UAC9C,IAAM,EAAQ,EAAgB,OAC9B,EAAkB,CAAC,GAAG,EAAiB,CAAc,EACrD,IAAM,EAAY,GAAU,CAC1B,GAAM,CAAE,QAAO,WAAU,GAAG,GAAY,EAClC,EAAU,IAAQ,EAAU,GAAG,IAAU,EACzC,EAAQA,EAAM,YAAc,EAAS,OAAO,OAAO,CAAO,CAAC,EACjE,OAAuB,EAAA,EAAA,IAAA,CAAI,EAAQ,SAAU,CAAE,QAAO,UAAS,CAAC,CAClE,EACA,EAAS,YAAc,EAAoB,WAC3C,SAAS,EAAY,EAAc,EAAO,EAAU,CAAC,EAAG,CACtD,GAAM,CAAE,WAAW,IAAU,EACvB,EAAU,IAAQ,EAAU,GAAG,IAAU,EACzC,EAAUA,EAAM,WAAW,CAAO,EACxC,GAAI,EAAS,OAAO,EACpB,GAAI,IAAmB,IAAK,GAAG,OAAO,EAClC,MACJ,MAAU,MAAM,KAAK,EAAa,2BAA2B,EAAkB,GAAG,CACpF,CACA,MAAO,CAAC,EAAU,CAAW,CAC/B,CACA,IAAM,MAAoB,CACxB,IAAM,EAAgB,EAAgB,IAAK,GAClCA,EAAM,cAAc,CAAc,CAC1C,EACD,OAAO,SAAkB,EAAO,CAC9B,IAAM,EAAW,IAAQ,IAAc,EACvC,OAAOA,EAAM,aACJ,EAAG,UAAU,KAAc,CAAE,GAAG,GAAQ,GAAY,CAAS,CAAE,GACtE,CAAC,EAAO,CAAQ,CAClB,CACF,CACF,EAEA,MADA,GAAY,UAAY,EACjB,CAAC,EAAgB,EAAqB,EAAa,GAAG,CAAsB,CAAC,CACtF,CACA,SAAS,EAAqB,GAAG,EAAQ,CACvC,IAAM,EAAY,EAAO,GACzB,GAAI,EAAO,SAAW,EAAG,OAAO,EAChC,IAAM,MAAoB,CACxB,IAAM,EAAa,EAAO,IAAK,IAAkB,CAC/C,SAAU,EAAa,EACvB,UAAW,EAAa,SAC1B,EAAE,EACF,OAAO,SAA2B,EAAgB,CAChD,IAAM,EAAa,EAAW,QAAQ,EAAa,CAAE,WAAU,eAAgB,CAE7E,IAAM,EADa,EAAS,CACE,CAAC,CAAC,UAAU,KAC1C,MAAO,CAAE,GAAG,EAAa,GAAG,CAAa,CAC3C,EAAG,CAAC,CAAC,EACL,OAAOA,EAAM,aAAe,EAAG,UAAU,EAAU,aAAc,CAAW,GAAI,CAAC,CAAU,CAAC,CAC9F,CACF,EAEA,MADA,GAAY,UAAY,EAAU,UAC3B,CACT"}
@@ -0,0 +1,63 @@
1
+ import { jsx as e } from "react/jsx-runtime";
2
+ import * as t from "react";
3
+ //#region ../../node_modules/.bun/@radix-ui+react-context@1.2.0+93dbe784b8baa420/node_modules/@radix-ui/react-context/dist/index.mjs
4
+ function n(n, i = []) {
5
+ let a = [];
6
+ function o(r, i) {
7
+ let o = t.createContext(i);
8
+ o.displayName = r + "Context";
9
+ let s = a.length;
10
+ a = [...a, i];
11
+ let c = (r) => {
12
+ let { scope: i, children: a, ...c } = r, l = i?.[n]?.[s] || o, u = t.useMemo(() => c, Object.values(c));
13
+ return /* @__PURE__ */ e(l.Provider, {
14
+ value: u,
15
+ children: a
16
+ });
17
+ };
18
+ c.displayName = r + "Provider";
19
+ function l(e, a, c = {}) {
20
+ let { optional: l = !1 } = c, u = a?.[n]?.[s] || o, d = t.useContext(u);
21
+ if (d) return d;
22
+ if (i !== void 0) return i;
23
+ if (!l) throw Error(`\`${e}\` must be used within \`${r}\``);
24
+ }
25
+ return [c, l];
26
+ }
27
+ let s = () => {
28
+ let e = a.map((e) => t.createContext(e));
29
+ return function(r) {
30
+ let i = r?.[n] || e;
31
+ return t.useMemo(() => ({ [`__scope${n}`]: {
32
+ ...r,
33
+ [n]: i
34
+ } }), [r, i]);
35
+ };
36
+ };
37
+ return s.scopeName = n, [o, r(s, ...i)];
38
+ }
39
+ function r(...e) {
40
+ let n = e[0];
41
+ if (e.length === 1) return n;
42
+ let r = () => {
43
+ let r = e.map((e) => ({
44
+ useScope: e(),
45
+ scopeName: e.scopeName
46
+ }));
47
+ return function(e) {
48
+ let i = r.reduce((t, { useScope: n, scopeName: r }) => {
49
+ let i = n(e)[`__scope${r}`];
50
+ return {
51
+ ...t,
52
+ ...i
53
+ };
54
+ }, {});
55
+ return t.useMemo(() => ({ [`__scope${n.scopeName}`]: i }), [i]);
56
+ };
57
+ };
58
+ return r.scopeName = n.scopeName, r;
59
+ }
60
+ //#endregion
61
+ export { n as createContextScope };
62
+
63
+ //# sourceMappingURL=index.es.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.es.js","names":[],"sources":["../../../../../../../../../../node_modules/.bun/@radix-ui+react-context@1.2.0+93dbe784b8baa420/node_modules/@radix-ui/react-context/dist/index.mjs"],"sourcesContent":["// 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 Context.displayName = rootComponentName + \"Context\";\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, options = {}) {\n const { optional = false } = options;\n const context = React.useContext(Context);\n if (context) return context;\n if (defaultContext !== void 0) return defaultContext;\n if (optional) return void 0;\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 BaseContext.displayName = rootComponentName + \"Context\";\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, options = {}) {\n const { optional = false } = options;\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 if (optional) return void 0;\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"],"x_google_ignoreList":[0],"mappings":";;;AAsBA,SAAS,EAAmB,GAA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EAAO,KAAK,OAAkB;GAC/C,UAAU,EAAa;GACvB,WAAW,EAAa;EAC1B,EAAE;EACF,OAAO,SAA2B,GAAgB;GAChD,IAAM,IAAa,EAAW,QAAQ,GAAa,EAAE,aAAU,mBAAgB;IAE7E,IAAM,IADa,EAAS,CACE,CAAC,CAAC,UAAU;IAC1C,OAAO;KAAE,GAAG;KAAa,GAAG;IAAa;GAC3C,GAAG,CAAC,CAAC;GACL,OAAO,EAAM,eAAe,GAAG,UAAU,EAAU,cAAc,EAAW,IAAI,CAAC,CAAU,CAAC;EAC9F;CACF;CAEA,OADA,EAAY,YAAY,EAAU,WAC3B;AACT"}
@@ -0,0 +1,2 @@
1
+ "use client";const e=require("../../../../../../../_virtual/_rolldown/runtime.cjs.js"),t=require("../../../../../@radix-ui_primitive@1.1.5/node_modules/@radix-ui/primitive/dist/index.cjs.js"),n=require("../../../../../@radix-ui_react-compose-refs@1.1.3_93dbe784b8baa420/node_modules/@radix-ui/react-compose-refs/dist/index.cjs.js"),r=require("../../../../../@radix-ui_react-context@1.2.0_93dbe784b8baa420/node_modules/@radix-ui/react-context/dist/index.cjs.js"),i=require("../../../../../@radix-ui_react-id@1.1.2_93dbe784b8baa420/node_modules/@radix-ui/react-id/dist/index.cjs.js"),a=require("../../../../../@radix-ui_react-use-controllable-state@1.2.3_93dbe784b8baa420/node_modules/@radix-ui/react-use-controllable-state/dist/index.cjs.js"),o=require("../../../../../@radix-ui_react-slot@1.3.0_93dbe784b8baa420/node_modules/@radix-ui/react-slot/dist/index.cjs.js"),s=require("../../../../../@radix-ui_react-primitive@2.1.7_ae2b4604ef263bc9/node_modules/@radix-ui/react-primitive/dist/index.cjs.js"),c=require("../../../../../@radix-ui_react-dismissable-layer@1.1.15_ae2b4604ef263bc9/node_modules/@radix-ui/react-dismissable-layer/dist/index.cjs.js"),l=require("../../../../../@radix-ui_react-focus-scope@1.1.12_ae2b4604ef263bc9/node_modules/@radix-ui/react-focus-scope/dist/index.cjs.js"),u=require("../../../../../@radix-ui_react-portal@1.1.13_ae2b4604ef263bc9/node_modules/@radix-ui/react-portal/dist/index.cjs.js"),d=require("../../../../../@radix-ui_react-presence@1.1.7_ae2b4604ef263bc9/node_modules/@radix-ui/react-presence/dist/index.cjs.js"),f=require("../../../../../@radix-ui_react-focus-guards@1.1.4_93dbe784b8baa420/node_modules/@radix-ui/react-focus-guards/dist/index.cjs.js"),p=require("../../../../../react-remove-scroll@2.7.2_93dbe784b8baa420/node_modules/react-remove-scroll/dist/es2015/Combination.cjs.js"),m=require("../../../../../aria-hidden@1.2.6/node_modules/aria-hidden/dist/es2015/index.cjs.js");let h=require("react/jsx-runtime"),g=require("react");g=e.__toESM(g,1);var _=`Dialog`,[v,y]=r.createContextScope(_),[b,x]=v(_),S=e=>{let{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:s,modal:c=!0}=e,l=g.useRef(null),u=g.useRef(null),[d,f]=a.useControllableState({prop:r,defaultProp:o??!1,onChange:s,caller:_});return(0,h.jsx)(b,{scope:t,triggerRef:l,contentRef:u,contentId:i.useId(),titleId:i.useId(),descriptionId:i.useId(),open:d,onOpenChange:f,onOpenToggle:g.useCallback(()=>f(e=>!e),[f]),modal:c,children:n})};S.displayName=_;var C=`DialogTrigger`,w=g.forwardRef((e,r)=>{let{__scopeDialog:i,...a}=e,o=x(C,i),c=n.useComposedRefs(r,o.triggerRef);return(0,h.jsx)(s.Primitive.button,{type:`button`,"aria-haspopup":`dialog`,"aria-expanded":o.open,"aria-controls":o.open?o.contentId:void 0,"data-state":W(o.open),...a,ref:c,onClick:t.composeEventHandlers(e.onClick,o.onOpenToggle)})});w.displayName=C;var T=`DialogPortal`,[E,D]=v(T,{forceMount:void 0}),O=e=>{let{__scopeDialog:t,forceMount:n,children:r,container:i}=e,a=x(T,t);return(0,h.jsx)(E,{scope:t,forceMount:n,children:g.Children.map(r,e=>(0,h.jsx)(d.Presence,{present:n||a.open,children:(0,h.jsx)(u.Portal,{asChild:!0,container:i,children:e})}))})};O.displayName=T;var k=`DialogOverlay`,A=g.forwardRef((e,t)=>{let n=D(k,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=x(k,e.__scopeDialog);return a.modal?(0,h.jsx)(d.Presence,{present:r||a.open,children:(0,h.jsx)(M,{...i,ref:t})}):null});A.displayName=k;var j=o.createSlot(`DialogOverlay.RemoveScroll`),M=g.forwardRef((e,t)=>{let{__scopeDialog:r,...i}=e,a=x(k,r),o=n.useComposedRefs(t,c.useDismissableLayerSurface());return(0,h.jsx)(p.default,{as:j,allowPinchZoom:!0,shards:[a.contentRef],children:(0,h.jsx)(s.Primitive.div,{"data-state":W(a.open),...i,ref:o,style:{pointerEvents:`auto`,...i.style}})})}),N=`DialogContent`,P=g.forwardRef((e,t)=>{let n=D(N,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=x(N,e.__scopeDialog);return(0,h.jsx)(d.Presence,{present:r||a.open,children:a.modal?(0,h.jsx)(F,{...i,ref:t}):(0,h.jsx)(I,{...i,ref:t})})});P.displayName=N;var F=g.forwardRef((e,r)=>{let i=x(N,e.__scopeDialog),a=g.useRef(null),o=n.useComposedRefs(r,i.contentRef,a);return g.useEffect(()=>{let e=a.current;if(e)return m.hideOthers(e)},[]),(0,h.jsx)(L,{...e,ref:o,trapFocus:i.open,disableOutsidePointerEvents:i.open,onCloseAutoFocus:t.composeEventHandlers(e.onCloseAutoFocus,e=>{e.preventDefault(),i.triggerRef.current?.focus()}),onPointerDownOutside:t.composeEventHandlers(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0;(t.button===2||n)&&e.preventDefault()}),onFocusOutside:t.composeEventHandlers(e.onFocusOutside,e=>e.preventDefault())})}),I=g.forwardRef((e,t)=>{let n=x(N,e.__scopeDialog),r=g.useRef(!1),i=g.useRef(!1);return(0,h.jsx)(L,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(r.current||n.triggerRef.current?.focus(),t.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(r.current=!0,t.detail.originalEvent.type===`pointerdown`&&(i.current=!0));let a=t.target;n.triggerRef.current?.contains(a)&&t.preventDefault(),t.detail.originalEvent.type===`focusin`&&i.current&&t.preventDefault()}})}),L=g.forwardRef((e,t)=>{let{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:a,...o}=e,s=x(N,n);return f.useFocusGuards(),(0,h.jsx)(h.Fragment,{children:(0,h.jsx)(l.FocusScope,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:a,children:(0,h.jsx)(c.DismissableLayer,{role:`dialog`,id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":W(s.open),...o,ref:t,deferPointerDownOutside:!0,onDismiss:()=>s.onOpenChange(!1)})})})}),R=`DialogTitle`,z=g.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=x(R,n);return(0,h.jsx)(s.Primitive.h2,{id:i.titleId,...r,ref:t})});z.displayName=R;var B=`DialogDescription`,V=g.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=x(B,n);return(0,h.jsx)(s.Primitive.p,{id:i.descriptionId,...r,ref:t})});V.displayName=B;var H=`DialogClose`,U=g.forwardRef((e,n)=>{let{__scopeDialog:r,...i}=e,a=x(H,r);return(0,h.jsx)(s.Primitive.button,{type:`button`,...i,ref:n,onClick:t.composeEventHandlers(e.onClick,()=>a.onOpenChange(!1))})});U.displayName=H;function W(e){return e?`open`:`closed`}exports.Close=U,exports.DialogClose=U,exports.Content=P,exports.DialogContent=P,exports.Description=V,exports.DialogDescription=V,exports.Dialog=S,exports.Root=S,exports.DialogOverlay=A,exports.Overlay=A,exports.DialogPortal=O,exports.Portal=O,exports.DialogTitle=z,exports.Title=z,exports.DialogTrigger=w,exports.Trigger=w;
2
+ //# sourceMappingURL=index.cjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs.js","names":["createContextScope","React","useControllableState","useId","useComposedRefs","Primitive","composeEventHandlers","Presence","PortalPrimitive","createSlot","useDismissableLayerSurface","RemoveScroll","hideOthers","Fragment","FocusScope","DismissableLayer"],"sources":["../../../../../../../../../../node_modules/.bun/@radix-ui+react-dialog@1.1.19+ae2b4604ef263bc9/node_modules/@radix-ui/react-dialog/dist/index.mjs"],"sourcesContent":["\"use client\";\n\n// src/dialog.tsx\nimport * as React from \"react\";\nimport { composeEventHandlers } from \"@radix-ui/primitive\";\nimport { useComposedRefs } from \"@radix-ui/react-compose-refs\";\nimport { createContextScope } from \"@radix-ui/react-context\";\nimport { useId } from \"@radix-ui/react-id\";\nimport { useControllableState } from \"@radix-ui/react-use-controllable-state\";\nimport { DismissableLayer, useDismissableLayerSurface } from \"@radix-ui/react-dismissable-layer\";\nimport { FocusScope } from \"@radix-ui/react-focus-scope\";\nimport { Portal as PortalPrimitive } from \"@radix-ui/react-portal\";\nimport { Presence } from \"@radix-ui/react-presence\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport { useFocusGuards } from \"@radix-ui/react-focus-guards\";\nimport { RemoveScroll } from \"react-remove-scroll\";\nimport { hideOthers } from \"aria-hidden\";\nimport { createSlot } from \"@radix-ui/react-slot\";\nimport { Fragment, jsx } from \"react/jsx-runtime\";\nvar DIALOG_NAME = \"Dialog\";\nvar [createDialogContext, createDialogScope] = createContextScope(DIALOG_NAME);\nvar [DialogProvider, useDialogContext] = createDialogContext(DIALOG_NAME);\nvar Dialog = (props) => {\n const {\n __scopeDialog,\n children,\n open: openProp,\n defaultOpen,\n onOpenChange,\n modal = true\n } = props;\n const triggerRef = React.useRef(null);\n const contentRef = React.useRef(null);\n const [open, setOpen] = useControllableState({\n prop: openProp,\n defaultProp: defaultOpen ?? false,\n onChange: onOpenChange,\n caller: DIALOG_NAME\n });\n return /* @__PURE__ */ jsx(\n DialogProvider,\n {\n scope: __scopeDialog,\n triggerRef,\n contentRef,\n contentId: useId(),\n titleId: useId(),\n descriptionId: useId(),\n open,\n onOpenChange: setOpen,\n onOpenToggle: React.useCallback(() => setOpen((prevOpen) => !prevOpen), [setOpen]),\n modal,\n children\n }\n );\n};\nDialog.displayName = DIALOG_NAME;\nvar TRIGGER_NAME = \"DialogTrigger\";\nvar DialogTrigger = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeDialog, ...triggerProps } = props;\n const context = useDialogContext(TRIGGER_NAME, __scopeDialog);\n const composedTriggerRef = useComposedRefs(forwardedRef, context.triggerRef);\n return /* @__PURE__ */ jsx(\n Primitive.button,\n {\n type: \"button\",\n \"aria-haspopup\": \"dialog\",\n \"aria-expanded\": context.open,\n \"aria-controls\": context.open ? context.contentId : void 0,\n \"data-state\": getState(context.open),\n ...triggerProps,\n ref: composedTriggerRef,\n onClick: composeEventHandlers(props.onClick, context.onOpenToggle)\n }\n );\n }\n);\nDialogTrigger.displayName = TRIGGER_NAME;\nvar PORTAL_NAME = \"DialogPortal\";\nvar [PortalProvider, usePortalContext] = createDialogContext(PORTAL_NAME, {\n forceMount: void 0\n});\nvar DialogPortal = (props) => {\n const { __scopeDialog, forceMount, children, container } = props;\n const context = useDialogContext(PORTAL_NAME, __scopeDialog);\n return /* @__PURE__ */ jsx(PortalProvider, { scope: __scopeDialog, forceMount, children: React.Children.map(children, (child) => /* @__PURE__ */ jsx(Presence, { present: forceMount || context.open, children: /* @__PURE__ */ jsx(PortalPrimitive, { asChild: true, container, children: child }) })) });\n};\nDialogPortal.displayName = PORTAL_NAME;\nvar OVERLAY_NAME = \"DialogOverlay\";\nvar DialogOverlay = React.forwardRef(\n (props, forwardedRef) => {\n const portalContext = usePortalContext(OVERLAY_NAME, props.__scopeDialog);\n const { forceMount = portalContext.forceMount, ...overlayProps } = props;\n const context = useDialogContext(OVERLAY_NAME, props.__scopeDialog);\n return context.modal ? /* @__PURE__ */ jsx(Presence, { present: forceMount || context.open, children: /* @__PURE__ */ jsx(DialogOverlayImpl, { ...overlayProps, ref: forwardedRef }) }) : null;\n }\n);\nDialogOverlay.displayName = OVERLAY_NAME;\nvar Slot = createSlot(\"DialogOverlay.RemoveScroll\");\nvar DialogOverlayImpl = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeDialog, ...overlayProps } = props;\n const context = useDialogContext(OVERLAY_NAME, __scopeDialog);\n const registerDismissableSurface = useDismissableLayerSurface();\n const composedRefs = useComposedRefs(forwardedRef, registerDismissableSurface);\n return (\n // Make sure `Content` is scrollable even when it doesn't live inside `RemoveScroll`\n // ie. when `Overlay` and `Content` are siblings\n /* @__PURE__ */ jsx(RemoveScroll, { as: Slot, allowPinchZoom: true, shards: [context.contentRef], children: /* @__PURE__ */ jsx(\n Primitive.div,\n {\n \"data-state\": getState(context.open),\n ...overlayProps,\n ref: composedRefs,\n style: { pointerEvents: \"auto\", ...overlayProps.style }\n }\n ) })\n );\n }\n);\nvar CONTENT_NAME = \"DialogContent\";\nvar DialogContent = React.forwardRef(\n (props, forwardedRef) => {\n const portalContext = usePortalContext(CONTENT_NAME, props.__scopeDialog);\n const { forceMount = portalContext.forceMount, ...contentProps } = props;\n const context = useDialogContext(CONTENT_NAME, props.__scopeDialog);\n return /* @__PURE__ */ jsx(Presence, { present: forceMount || context.open, children: context.modal ? /* @__PURE__ */ jsx(DialogContentModal, { ...contentProps, ref: forwardedRef }) : /* @__PURE__ */ jsx(DialogContentNonModal, { ...contentProps, ref: forwardedRef }) });\n }\n);\nDialogContent.displayName = CONTENT_NAME;\nvar DialogContentModal = React.forwardRef(\n (props, forwardedRef) => {\n const context = useDialogContext(CONTENT_NAME, props.__scopeDialog);\n const contentRef = React.useRef(null);\n const composedRefs = useComposedRefs(forwardedRef, context.contentRef, contentRef);\n React.useEffect(() => {\n const content = contentRef.current;\n if (content) return hideOthers(content);\n }, []);\n return /* @__PURE__ */ jsx(\n DialogContentImpl,\n {\n ...props,\n ref: composedRefs,\n trapFocus: context.open,\n disableOutsidePointerEvents: context.open,\n onCloseAutoFocus: composeEventHandlers(props.onCloseAutoFocus, (event) => {\n event.preventDefault();\n context.triggerRef.current?.focus();\n }),\n onPointerDownOutside: composeEventHandlers(props.onPointerDownOutside, (event) => {\n const originalEvent = event.detail.originalEvent;\n const ctrlLeftClick = originalEvent.button === 0 && originalEvent.ctrlKey === true;\n const isRightClick = originalEvent.button === 2 || ctrlLeftClick;\n if (isRightClick) event.preventDefault();\n }),\n onFocusOutside: composeEventHandlers(\n props.onFocusOutside,\n (event) => event.preventDefault()\n )\n }\n );\n }\n);\nvar DialogContentNonModal = React.forwardRef(\n (props, forwardedRef) => {\n const context = useDialogContext(CONTENT_NAME, props.__scopeDialog);\n const hasInteractedOutsideRef = React.useRef(false);\n const hasPointerDownOutsideRef = React.useRef(false);\n return /* @__PURE__ */ jsx(\n DialogContentImpl,\n {\n ...props,\n ref: forwardedRef,\n trapFocus: false,\n disableOutsidePointerEvents: false,\n onCloseAutoFocus: (event) => {\n props.onCloseAutoFocus?.(event);\n if (!event.defaultPrevented) {\n if (!hasInteractedOutsideRef.current) context.triggerRef.current?.focus();\n event.preventDefault();\n }\n hasInteractedOutsideRef.current = false;\n hasPointerDownOutsideRef.current = false;\n },\n onInteractOutside: (event) => {\n props.onInteractOutside?.(event);\n if (!event.defaultPrevented) {\n hasInteractedOutsideRef.current = true;\n if (event.detail.originalEvent.type === \"pointerdown\") {\n hasPointerDownOutsideRef.current = true;\n }\n }\n const target = event.target;\n const targetIsTrigger = context.triggerRef.current?.contains(target);\n if (targetIsTrigger) event.preventDefault();\n if (event.detail.originalEvent.type === \"focusin\" && hasPointerDownOutsideRef.current) {\n event.preventDefault();\n }\n }\n }\n );\n }\n);\nvar DialogContentImpl = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeDialog, trapFocus, onOpenAutoFocus, onCloseAutoFocus, ...contentProps } = props;\n const context = useDialogContext(CONTENT_NAME, __scopeDialog);\n useFocusGuards();\n return /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx(\n FocusScope,\n {\n asChild: true,\n loop: true,\n trapped: trapFocus,\n onMountAutoFocus: onOpenAutoFocus,\n onUnmountAutoFocus: onCloseAutoFocus,\n children: /* @__PURE__ */ jsx(\n DismissableLayer,\n {\n role: \"dialog\",\n id: context.contentId,\n \"aria-describedby\": context.descriptionId,\n \"aria-labelledby\": context.titleId,\n \"data-state\": getState(context.open),\n ...contentProps,\n ref: forwardedRef,\n deferPointerDownOutside: true,\n onDismiss: () => context.onOpenChange(false)\n }\n )\n }\n ) });\n }\n);\nvar TITLE_NAME = \"DialogTitle\";\nvar DialogTitle = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeDialog, ...titleProps } = props;\n const context = useDialogContext(TITLE_NAME, __scopeDialog);\n return /* @__PURE__ */ jsx(Primitive.h2, { id: context.titleId, ...titleProps, ref: forwardedRef });\n }\n);\nDialogTitle.displayName = TITLE_NAME;\nvar DESCRIPTION_NAME = \"DialogDescription\";\nvar DialogDescription = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeDialog, ...descriptionProps } = props;\n const context = useDialogContext(DESCRIPTION_NAME, __scopeDialog);\n return /* @__PURE__ */ jsx(Primitive.p, { id: context.descriptionId, ...descriptionProps, ref: forwardedRef });\n }\n);\nDialogDescription.displayName = DESCRIPTION_NAME;\nvar CLOSE_NAME = \"DialogClose\";\nvar DialogClose = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeDialog, ...closeProps } = props;\n const context = useDialogContext(CLOSE_NAME, __scopeDialog);\n return /* @__PURE__ */ jsx(\n Primitive.button,\n {\n type: \"button\",\n ...closeProps,\n ref: forwardedRef,\n onClick: composeEventHandlers(props.onClick, () => context.onOpenChange(false))\n }\n );\n }\n);\nDialogClose.displayName = CLOSE_NAME;\nvar WarningProvider = (props) => {\n return props.children;\n};\nfunction getState(open) {\n return open ? \"open\" : \"closed\";\n}\nexport {\n DialogClose as Close,\n DialogContent as Content,\n DialogDescription as Description,\n Dialog,\n DialogClose,\n DialogContent,\n DialogDescription,\n DialogOverlay,\n DialogPortal,\n DialogTitle,\n DialogTrigger,\n DialogOverlay as Overlay,\n DialogPortal as Portal,\n Dialog as Root,\n DialogTitle as Title,\n DialogTrigger as Trigger,\n WarningProvider,\n createDialogScope\n};\n//# sourceMappingURL=index.mjs.map\n"],"x_google_ignoreList":[0],"mappings":"y8DAmBA,IAAI,EAAc,SACd,CAAC,EAAqB,GAAqBA,EAAAA,mBAAmB,CAAW,EACzE,CAAC,EAAgB,GAAoB,EAAoB,CAAW,EACpE,EAAU,GAAU,CACtB,GAAM,CACJ,gBACA,WACA,KAAM,EACN,cACA,eACA,QAAQ,IACN,EACE,EAAaC,EAAM,OAAO,IAAI,EAC9B,EAAaA,EAAM,OAAO,IAAI,EAC9B,CAAC,EAAM,GAAWC,EAAAA,qBAAqB,CAC3C,KAAM,EACN,YAAa,GAAe,GAC5B,SAAU,EACV,OAAQ,CACV,CAAC,EACD,OAAuB,EAAA,EAAA,IAAA,CACrB,EACA,CACE,MAAO,EACP,aACA,aACA,UAAWC,EAAAA,MAAM,EACjB,QAASA,EAAAA,MAAM,EACf,cAAeA,EAAAA,MAAM,EACrB,OACA,aAAc,EACd,aAAcF,EAAM,gBAAkB,EAAS,GAAa,CAAC,CAAQ,EAAG,CAAC,CAAO,CAAC,EACjF,QACA,UACF,CACF,CACF,EACA,EAAO,YAAc,EACrB,IAAI,EAAe,gBACf,EAAgBA,EAAM,YACvB,EAAO,IAAiB,CACvB,GAAM,CAAE,gBAAe,GAAG,GAAiB,EACrC,EAAU,EAAiB,EAAc,CAAa,EACtD,EAAqBG,EAAAA,gBAAgB,EAAc,EAAQ,UAAU,EAC3E,OAAuB,EAAA,EAAA,IAAA,CACrBC,EAAAA,UAAU,OACV,CACE,KAAM,SACN,gBAAiB,SACjB,gBAAiB,EAAQ,KACzB,gBAAiB,EAAQ,KAAO,EAAQ,UAAY,IAAK,GACzD,aAAc,EAAS,EAAQ,IAAI,EACnC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AAM,CACtB,OAAO,EAAO,OAAS,QACzB"}
@@ -0,0 +1,201 @@
1
+ "use client";
2
+ import { composeEventHandlers as e } from "../../../../../@radix-ui_primitive@1.1.5/node_modules/@radix-ui/primitive/dist/index.es.js";
3
+ import { useComposedRefs as t } from "../../../../../@radix-ui_react-compose-refs@1.1.3_93dbe784b8baa420/node_modules/@radix-ui/react-compose-refs/dist/index.es.js";
4
+ import { createContextScope as n } from "../../../../../@radix-ui_react-context@1.2.0_93dbe784b8baa420/node_modules/@radix-ui/react-context/dist/index.es.js";
5
+ import { useId as r } from "../../../../../@radix-ui_react-id@1.1.2_93dbe784b8baa420/node_modules/@radix-ui/react-id/dist/index.es.js";
6
+ import { useControllableState as i } from "../../../../../@radix-ui_react-use-controllable-state@1.2.3_93dbe784b8baa420/node_modules/@radix-ui/react-use-controllable-state/dist/index.es.js";
7
+ import { createSlot as a } from "../../../../../@radix-ui_react-slot@1.3.0_93dbe784b8baa420/node_modules/@radix-ui/react-slot/dist/index.es.js";
8
+ import { Primitive as o } from "../../../../../@radix-ui_react-primitive@2.1.7_ae2b4604ef263bc9/node_modules/@radix-ui/react-primitive/dist/index.es.js";
9
+ import { DismissableLayer as s, useDismissableLayerSurface as c } from "../../../../../@radix-ui_react-dismissable-layer@1.1.15_ae2b4604ef263bc9/node_modules/@radix-ui/react-dismissable-layer/dist/index.es.js";
10
+ import { FocusScope as l } from "../../../../../@radix-ui_react-focus-scope@1.1.12_ae2b4604ef263bc9/node_modules/@radix-ui/react-focus-scope/dist/index.es.js";
11
+ import { Portal as u } from "../../../../../@radix-ui_react-portal@1.1.13_ae2b4604ef263bc9/node_modules/@radix-ui/react-portal/dist/index.es.js";
12
+ import { Presence as d } from "../../../../../@radix-ui_react-presence@1.1.7_ae2b4604ef263bc9/node_modules/@radix-ui/react-presence/dist/index.es.js";
13
+ import { useFocusGuards as f } from "../../../../../@radix-ui_react-focus-guards@1.1.4_93dbe784b8baa420/node_modules/@radix-ui/react-focus-guards/dist/index.es.js";
14
+ import p from "../../../../../react-remove-scroll@2.7.2_93dbe784b8baa420/node_modules/react-remove-scroll/dist/es2015/Combination.es.js";
15
+ import { hideOthers as m } from "../../../../../aria-hidden@1.2.6/node_modules/aria-hidden/dist/es2015/index.es.js";
16
+ import { Fragment as h, jsx as g } from "react/jsx-runtime";
17
+ import * as _ from "react";
18
+ //#region ../../node_modules/.bun/@radix-ui+react-dialog@1.1.19+ae2b4604ef263bc9/node_modules/@radix-ui/react-dialog/dist/index.mjs
19
+ var v = "Dialog", [y, b] = n(v), [x, S] = y(v), C = (e) => {
20
+ let { __scopeDialog: t, children: n, open: a, defaultOpen: o, onOpenChange: s, modal: c = !0 } = e, l = _.useRef(null), u = _.useRef(null), [d, f] = i({
21
+ prop: a,
22
+ defaultProp: o ?? !1,
23
+ onChange: s,
24
+ caller: v
25
+ });
26
+ return /* @__PURE__ */ g(x, {
27
+ scope: t,
28
+ triggerRef: l,
29
+ contentRef: u,
30
+ contentId: r(),
31
+ titleId: r(),
32
+ descriptionId: r(),
33
+ open: d,
34
+ onOpenChange: f,
35
+ onOpenToggle: _.useCallback(() => f((e) => !e), [f]),
36
+ modal: c,
37
+ children: n
38
+ });
39
+ };
40
+ C.displayName = v;
41
+ var w = "DialogTrigger", T = _.forwardRef((n, r) => {
42
+ let { __scopeDialog: i, ...a } = n, s = S(w, i), c = t(r, s.triggerRef);
43
+ return /* @__PURE__ */ g(o.button, {
44
+ type: "button",
45
+ "aria-haspopup": "dialog",
46
+ "aria-expanded": s.open,
47
+ "aria-controls": s.open ? s.contentId : void 0,
48
+ "data-state": G(s.open),
49
+ ...a,
50
+ ref: c,
51
+ onClick: e(n.onClick, s.onOpenToggle)
52
+ });
53
+ });
54
+ T.displayName = w;
55
+ var E = "DialogPortal", [D, O] = y(E, { forceMount: void 0 }), k = (e) => {
56
+ let { __scopeDialog: t, forceMount: n, children: r, container: i } = e, a = S(E, t);
57
+ return /* @__PURE__ */ g(D, {
58
+ scope: t,
59
+ forceMount: n,
60
+ children: _.Children.map(r, (e) => /* @__PURE__ */ g(d, {
61
+ present: n || a.open,
62
+ children: /* @__PURE__ */ g(u, {
63
+ asChild: !0,
64
+ container: i,
65
+ children: e
66
+ })
67
+ }))
68
+ });
69
+ };
70
+ k.displayName = E;
71
+ var A = "DialogOverlay", j = _.forwardRef((e, t) => {
72
+ let n = O(A, e.__scopeDialog), { forceMount: r = n.forceMount, ...i } = e, a = S(A, e.__scopeDialog);
73
+ return a.modal ? /* @__PURE__ */ g(d, {
74
+ present: r || a.open,
75
+ children: /* @__PURE__ */ g(N, {
76
+ ...i,
77
+ ref: t
78
+ })
79
+ }) : null;
80
+ });
81
+ j.displayName = A;
82
+ var M = a("DialogOverlay.RemoveScroll"), N = _.forwardRef((e, n) => {
83
+ let { __scopeDialog: r, ...i } = e, a = S(A, r), s = t(n, c());
84
+ return /* @__PURE__ */ g(p, {
85
+ as: M,
86
+ allowPinchZoom: !0,
87
+ shards: [a.contentRef],
88
+ children: /* @__PURE__ */ g(o.div, {
89
+ "data-state": G(a.open),
90
+ ...i,
91
+ ref: s,
92
+ style: {
93
+ pointerEvents: "auto",
94
+ ...i.style
95
+ }
96
+ })
97
+ });
98
+ }), P = "DialogContent", F = _.forwardRef((e, t) => {
99
+ let n = O(P, e.__scopeDialog), { forceMount: r = n.forceMount, ...i } = e, a = S(P, e.__scopeDialog);
100
+ return /* @__PURE__ */ g(d, {
101
+ present: r || a.open,
102
+ children: a.modal ? /* @__PURE__ */ g(I, {
103
+ ...i,
104
+ ref: t
105
+ }) : /* @__PURE__ */ g(L, {
106
+ ...i,
107
+ ref: t
108
+ })
109
+ });
110
+ });
111
+ F.displayName = P;
112
+ var I = _.forwardRef((n, r) => {
113
+ let i = S(P, n.__scopeDialog), a = _.useRef(null), o = t(r, i.contentRef, a);
114
+ return _.useEffect(() => {
115
+ let e = a.current;
116
+ if (e) return m(e);
117
+ }, []), /* @__PURE__ */ g(R, {
118
+ ...n,
119
+ ref: o,
120
+ trapFocus: i.open,
121
+ disableOutsidePointerEvents: i.open,
122
+ onCloseAutoFocus: e(n.onCloseAutoFocus, (e) => {
123
+ e.preventDefault(), i.triggerRef.current?.focus();
124
+ }),
125
+ onPointerDownOutside: e(n.onPointerDownOutside, (e) => {
126
+ let t = e.detail.originalEvent, n = t.button === 0 && t.ctrlKey === !0;
127
+ (t.button === 2 || n) && e.preventDefault();
128
+ }),
129
+ onFocusOutside: e(n.onFocusOutside, (e) => e.preventDefault())
130
+ });
131
+ }), L = _.forwardRef((e, t) => {
132
+ let n = S(P, e.__scopeDialog), r = _.useRef(!1), i = _.useRef(!1);
133
+ return /* @__PURE__ */ g(R, {
134
+ ...e,
135
+ ref: t,
136
+ trapFocus: !1,
137
+ disableOutsidePointerEvents: !1,
138
+ onCloseAutoFocus: (t) => {
139
+ e.onCloseAutoFocus?.(t), t.defaultPrevented || (r.current || n.triggerRef.current?.focus(), t.preventDefault()), r.current = !1, i.current = !1;
140
+ },
141
+ onInteractOutside: (t) => {
142
+ e.onInteractOutside?.(t), t.defaultPrevented || (r.current = !0, t.detail.originalEvent.type === "pointerdown" && (i.current = !0));
143
+ let a = t.target;
144
+ n.triggerRef.current?.contains(a) && t.preventDefault(), t.detail.originalEvent.type === "focusin" && i.current && t.preventDefault();
145
+ }
146
+ });
147
+ }), R = _.forwardRef((e, t) => {
148
+ let { __scopeDialog: n, trapFocus: r, onOpenAutoFocus: i, onCloseAutoFocus: a, ...o } = e, c = S(P, n);
149
+ return f(), /* @__PURE__ */ g(h, { children: /* @__PURE__ */ g(l, {
150
+ asChild: !0,
151
+ loop: !0,
152
+ trapped: r,
153
+ onMountAutoFocus: i,
154
+ onUnmountAutoFocus: a,
155
+ children: /* @__PURE__ */ g(s, {
156
+ role: "dialog",
157
+ id: c.contentId,
158
+ "aria-describedby": c.descriptionId,
159
+ "aria-labelledby": c.titleId,
160
+ "data-state": G(c.open),
161
+ ...o,
162
+ ref: t,
163
+ deferPointerDownOutside: !0,
164
+ onDismiss: () => c.onOpenChange(!1)
165
+ })
166
+ }) });
167
+ }), z = "DialogTitle", B = _.forwardRef((e, t) => {
168
+ let { __scopeDialog: n, ...r } = e, i = S(z, n);
169
+ return /* @__PURE__ */ g(o.h2, {
170
+ id: i.titleId,
171
+ ...r,
172
+ ref: t
173
+ });
174
+ });
175
+ B.displayName = z;
176
+ var V = "DialogDescription", H = _.forwardRef((e, t) => {
177
+ let { __scopeDialog: n, ...r } = e, i = S(V, n);
178
+ return /* @__PURE__ */ g(o.p, {
179
+ id: i.descriptionId,
180
+ ...r,
181
+ ref: t
182
+ });
183
+ });
184
+ H.displayName = V;
185
+ var U = "DialogClose", W = _.forwardRef((t, n) => {
186
+ let { __scopeDialog: r, ...i } = t, a = S(U, r);
187
+ return /* @__PURE__ */ g(o.button, {
188
+ type: "button",
189
+ ...i,
190
+ ref: n,
191
+ onClick: e(t.onClick, () => a.onOpenChange(!1))
192
+ });
193
+ });
194
+ W.displayName = U;
195
+ function G(e) {
196
+ return e ? "open" : "closed";
197
+ }
198
+ //#endregion
199
+ export { W as Close, W as DialogClose, F as Content, F as DialogContent, H as Description, H as DialogDescription, C as Dialog, C as Root, j as DialogOverlay, j as Overlay, k as DialogPortal, k as Portal, B as DialogTitle, B as Title, T as DialogTrigger, T as Trigger };
200
+
201
+ //# sourceMappingURL=index.es.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.es.js","names":["useId","PortalPrimitive","RemoveScroll"],"sources":["../../../../../../../../../../node_modules/.bun/@radix-ui+react-dialog@1.1.19+ae2b4604ef263bc9/node_modules/@radix-ui/react-dialog/dist/index.mjs"],"sourcesContent":["\"use client\";\n\n// src/dialog.tsx\nimport * as React from \"react\";\nimport { composeEventHandlers } from \"@radix-ui/primitive\";\nimport { useComposedRefs } from \"@radix-ui/react-compose-refs\";\nimport { createContextScope } from \"@radix-ui/react-context\";\nimport { useId } from \"@radix-ui/react-id\";\nimport { useControllableState } from \"@radix-ui/react-use-controllable-state\";\nimport { DismissableLayer, useDismissableLayerSurface } from \"@radix-ui/react-dismissable-layer\";\nimport { FocusScope } from \"@radix-ui/react-focus-scope\";\nimport { Portal as PortalPrimitive } from \"@radix-ui/react-portal\";\nimport { Presence } from \"@radix-ui/react-presence\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport { useFocusGuards } from \"@radix-ui/react-focus-guards\";\nimport { RemoveScroll } from \"react-remove-scroll\";\nimport { hideOthers } from \"aria-hidden\";\nimport { createSlot } from \"@radix-ui/react-slot\";\nimport { Fragment, jsx } from \"react/jsx-runtime\";\nvar DIALOG_NAME = \"Dialog\";\nvar [createDialogContext, createDialogScope] = createContextScope(DIALOG_NAME);\nvar [DialogProvider, useDialogContext] = createDialogContext(DIALOG_NAME);\nvar Dialog = (props) => {\n const {\n __scopeDialog,\n children,\n open: openProp,\n defaultOpen,\n onOpenChange,\n modal = true\n } = props;\n const triggerRef = React.useRef(null);\n const contentRef = React.useRef(null);\n const [open, setOpen] = useControllableState({\n prop: openProp,\n defaultProp: defaultOpen ?? false,\n onChange: onOpenChange,\n caller: DIALOG_NAME\n });\n return /* @__PURE__ */ jsx(\n DialogProvider,\n {\n scope: __scopeDialog,\n triggerRef,\n contentRef,\n contentId: useId(),\n titleId: useId(),\n descriptionId: useId(),\n open,\n onOpenChange: setOpen,\n onOpenToggle: React.useCallback(() => setOpen((prevOpen) => !prevOpen), [setOpen]),\n modal,\n children\n }\n );\n};\nDialog.displayName = DIALOG_NAME;\nvar TRIGGER_NAME = \"DialogTrigger\";\nvar DialogTrigger = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeDialog, ...triggerProps } = props;\n const context = useDialogContext(TRIGGER_NAME, __scopeDialog);\n const composedTriggerRef = useComposedRefs(forwardedRef, context.triggerRef);\n return /* @__PURE__ */ jsx(\n Primitive.button,\n {\n type: \"button\",\n \"aria-haspopup\": \"dialog\",\n \"aria-expanded\": context.open,\n \"aria-controls\": context.open ? context.contentId : void 0,\n \"data-state\": getState(context.open),\n ...triggerProps,\n ref: composedTriggerRef,\n onClick: composeEventHandlers(props.onClick, context.onOpenToggle)\n }\n );\n }\n);\nDialogTrigger.displayName = TRIGGER_NAME;\nvar PORTAL_NAME = \"DialogPortal\";\nvar [PortalProvider, usePortalContext] = createDialogContext(PORTAL_NAME, {\n forceMount: void 0\n});\nvar DialogPortal = (props) => {\n const { __scopeDialog, forceMount, children, container } = props;\n const context = useDialogContext(PORTAL_NAME, __scopeDialog);\n return /* @__PURE__ */ jsx(PortalProvider, { scope: __scopeDialog, forceMount, children: React.Children.map(children, (child) => /* @__PURE__ */ jsx(Presence, { present: forceMount || context.open, children: /* @__PURE__ */ jsx(PortalPrimitive, { asChild: true, container, children: child }) })) });\n};\nDialogPortal.displayName = PORTAL_NAME;\nvar OVERLAY_NAME = \"DialogOverlay\";\nvar DialogOverlay = React.forwardRef(\n (props, forwardedRef) => {\n const portalContext = usePortalContext(OVERLAY_NAME, props.__scopeDialog);\n const { forceMount = portalContext.forceMount, ...overlayProps } = props;\n const context = useDialogContext(OVERLAY_NAME, props.__scopeDialog);\n return context.modal ? /* @__PURE__ */ jsx(Presence, { present: forceMount || context.open, children: /* @__PURE__ */ jsx(DialogOverlayImpl, { ...overlayProps, ref: forwardedRef }) }) : null;\n }\n);\nDialogOverlay.displayName = OVERLAY_NAME;\nvar Slot = createSlot(\"DialogOverlay.RemoveScroll\");\nvar DialogOverlayImpl = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeDialog, ...overlayProps } = props;\n const context = useDialogContext(OVERLAY_NAME, __scopeDialog);\n const registerDismissableSurface = useDismissableLayerSurface();\n const composedRefs = useComposedRefs(forwardedRef, registerDismissableSurface);\n return (\n // Make sure `Content` is scrollable even when it doesn't live inside `RemoveScroll`\n // ie. when `Overlay` and `Content` are siblings\n /* @__PURE__ */ jsx(RemoveScroll, { as: Slot, allowPinchZoom: true, shards: [context.contentRef], children: /* @__PURE__ */ jsx(\n Primitive.div,\n {\n \"data-state\": getState(context.open),\n ...overlayProps,\n ref: composedRefs,\n style: { pointerEvents: \"auto\", ...overlayProps.style }\n }\n ) })\n );\n }\n);\nvar CONTENT_NAME = \"DialogContent\";\nvar DialogContent = React.forwardRef(\n (props, forwardedRef) => {\n const portalContext = usePortalContext(CONTENT_NAME, props.__scopeDialog);\n const { forceMount = portalContext.forceMount, ...contentProps } = props;\n const context = useDialogContext(CONTENT_NAME, props.__scopeDialog);\n return /* @__PURE__ */ jsx(Presence, { present: forceMount || context.open, children: context.modal ? /* @__PURE__ */ jsx(DialogContentModal, { ...contentProps, ref: forwardedRef }) : /* @__PURE__ */ jsx(DialogContentNonModal, { ...contentProps, ref: forwardedRef }) });\n }\n);\nDialogContent.displayName = CONTENT_NAME;\nvar DialogContentModal = React.forwardRef(\n (props, forwardedRef) => {\n const context = useDialogContext(CONTENT_NAME, props.__scopeDialog);\n const contentRef = React.useRef(null);\n const composedRefs = useComposedRefs(forwardedRef, context.contentRef, contentRef);\n React.useEffect(() => {\n const content = contentRef.current;\n if (content) return hideOthers(content);\n }, []);\n return /* @__PURE__ */ jsx(\n DialogContentImpl,\n {\n ...props,\n ref: composedRefs,\n trapFocus: context.open,\n disableOutsidePointerEvents: context.open,\n onCloseAutoFocus: composeEventHandlers(props.onCloseAutoFocus, (event) => {\n event.preventDefault();\n context.triggerRef.current?.focus();\n }),\n onPointerDownOutside: composeEventHandlers(props.onPointerDownOutside, (event) => {\n const originalEvent = event.detail.originalEvent;\n const ctrlLeftClick = originalEvent.button === 0 && originalEvent.ctrlKey === true;\n const isRightClick = originalEvent.button === 2 || ctrlLeftClick;\n if (isRightClick) event.preventDefault();\n }),\n onFocusOutside: composeEventHandlers(\n props.onFocusOutside,\n (event) => event.preventDefault()\n )\n }\n );\n }\n);\nvar DialogContentNonModal = React.forwardRef(\n (props, forwardedRef) => {\n const context = useDialogContext(CONTENT_NAME, props.__scopeDialog);\n const hasInteractedOutsideRef = React.useRef(false);\n const hasPointerDownOutsideRef = React.useRef(false);\n return /* @__PURE__ */ jsx(\n DialogContentImpl,\n {\n ...props,\n ref: forwardedRef,\n trapFocus: false,\n disableOutsidePointerEvents: false,\n onCloseAutoFocus: (event) => {\n props.onCloseAutoFocus?.(event);\n if (!event.defaultPrevented) {\n if (!hasInteractedOutsideRef.current) context.triggerRef.current?.focus();\n event.preventDefault();\n }\n hasInteractedOutsideRef.current = false;\n hasPointerDownOutsideRef.current = false;\n },\n onInteractOutside: (event) => {\n props.onInteractOutside?.(event);\n if (!event.defaultPrevented) {\n hasInteractedOutsideRef.current = true;\n if (event.detail.originalEvent.type === \"pointerdown\") {\n hasPointerDownOutsideRef.current = true;\n }\n }\n const target = event.target;\n const targetIsTrigger = context.triggerRef.current?.contains(target);\n if (targetIsTrigger) event.preventDefault();\n if (event.detail.originalEvent.type === \"focusin\" && hasPointerDownOutsideRef.current) {\n event.preventDefault();\n }\n }\n }\n );\n }\n);\nvar DialogContentImpl = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeDialog, trapFocus, onOpenAutoFocus, onCloseAutoFocus, ...contentProps } = props;\n const context = useDialogContext(CONTENT_NAME, __scopeDialog);\n useFocusGuards();\n return /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx(\n FocusScope,\n {\n asChild: true,\n loop: true,\n trapped: trapFocus,\n onMountAutoFocus: onOpenAutoFocus,\n onUnmountAutoFocus: onCloseAutoFocus,\n children: /* @__PURE__ */ jsx(\n DismissableLayer,\n {\n role: \"dialog\",\n id: context.contentId,\n \"aria-describedby\": context.descriptionId,\n \"aria-labelledby\": context.titleId,\n \"data-state\": getState(context.open),\n ...contentProps,\n ref: forwardedRef,\n deferPointerDownOutside: true,\n onDismiss: () => context.onOpenChange(false)\n }\n )\n }\n ) });\n }\n);\nvar TITLE_NAME = \"DialogTitle\";\nvar DialogTitle = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeDialog, ...titleProps } = props;\n const context = useDialogContext(TITLE_NAME, __scopeDialog);\n return /* @__PURE__ */ jsx(Primitive.h2, { id: context.titleId, ...titleProps, ref: forwardedRef });\n }\n);\nDialogTitle.displayName = TITLE_NAME;\nvar DESCRIPTION_NAME = \"DialogDescription\";\nvar DialogDescription = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeDialog, ...descriptionProps } = props;\n const context = useDialogContext(DESCRIPTION_NAME, __scopeDialog);\n return /* @__PURE__ */ jsx(Primitive.p, { id: context.descriptionId, ...descriptionProps, ref: forwardedRef });\n }\n);\nDialogDescription.displayName = DESCRIPTION_NAME;\nvar CLOSE_NAME = \"DialogClose\";\nvar DialogClose = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeDialog, ...closeProps } = props;\n const context = useDialogContext(CLOSE_NAME, __scopeDialog);\n return /* @__PURE__ */ jsx(\n Primitive.button,\n {\n type: \"button\",\n ...closeProps,\n ref: forwardedRef,\n onClick: composeEventHandlers(props.onClick, () => context.onOpenChange(false))\n }\n );\n }\n);\nDialogClose.displayName = CLOSE_NAME;\nvar WarningProvider = (props) => {\n return props.children;\n};\nfunction getState(open) {\n return open ? \"open\" : \"closed\";\n}\nexport {\n DialogClose as Close,\n DialogContent as Content,\n DialogDescription as Description,\n Dialog,\n DialogClose,\n DialogContent,\n DialogDescription,\n DialogOverlay,\n DialogPortal,\n DialogTitle,\n DialogTrigger,\n DialogOverlay as Overlay,\n DialogPortal as Portal,\n Dialog as Root,\n DialogTitle as Title,\n DialogTrigger as Trigger,\n WarningProvider,\n createDialogScope\n};\n//# sourceMappingURL=index.mjs.map\n"],"x_google_ignoreList":[0],"mappings":";;;;;;;;;;;;;;;;;;AAmBA,IAAI,IAAc,UACd,CAAC,GAAqB,KAAqB,EAAmB,CAAW,GACzE,CAAC,GAAgB,KAAoB,EAAoB,CAAW,GACpE,KAAU,MAAU;CACtB,IAAM,EACJ,kBACA,aACA,MAAM,GACN,gBACA,iBACA,WAAQ,OACN,GACE,IAAa,EAAM,OAAO,IAAI,GAC9B,IAAa,EAAM,OAAO,IAAI,GAC9B,CAAC,GAAM,KAAW,EAAqB;EAC3C,MAAM;EAC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ACN,GAAG;EACH,KAAK;EACL,SAAS,EAAqB,EAAM,eAAe,EAAQ,aAAa,EAAK,CAAC;CAChF,CACF;AACF,CACF;AACA,EAAY,cAAc;AAI1B,SAAS,EAAS,GAAM;CACtB,OAAO,IAAO,SAAS;AACzB"}
@@ -0,0 +1,2 @@
1
+ "use client";const e=require("../../../../../../../_virtual/_rolldown/runtime.cjs.js"),t=require("../../../../../@radix-ui_primitive@1.1.5/node_modules/@radix-ui/primitive/dist/index.cjs.js"),n=require("../../../../../@radix-ui_react-compose-refs@1.1.3_93dbe784b8baa420/node_modules/@radix-ui/react-compose-refs/dist/index.cjs.js"),r=require("../../../../../@radix-ui_react-primitive@2.1.7_ae2b4604ef263bc9/node_modules/@radix-ui/react-primitive/dist/index.cjs.js"),i=require("../../../../../@radix-ui_react-use-callback-ref@1.1.2_93dbe784b8baa420/node_modules/@radix-ui/react-use-callback-ref/dist/index.cjs.js");let a=require("react/jsx-runtime"),o=require("react");o=e.__toESM(o,1);var s=`DismissableLayer`,c=`dismissableLayer.update`,l=`dismissableLayer.pointerDownOutside`,u=`dismissableLayer.focusOutside`,d,f=o.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),p=o.forwardRef((e,s)=>{let{disableOutsidePointerEvents:l=!1,deferPointerDownOutside:u=!1,onEscapeKeyDown:p,onPointerDownOutside:m,onFocusOutside:h,onInteractOutside:g,onDismiss:_,...x}=e,S=o.useContext(f),[C,w]=o.useState(null),T=C?.ownerDocument??globalThis?.document,[,E]=o.useState({}),D=n.useComposedRefs(s,w),O=Array.from(S.layers),[k]=[...S.layersWithOutsidePointerEventsDisabled].slice(-1),A=k?O.indexOf(k):-1,j=C?O.indexOf(C):-1,M=S.layersWithOutsidePointerEventsDisabled.size>0,N=j>=A,P=o.useRef(!1),F=v(e=>{m?.(e),g?.(e),e.defaultPrevented||_?.()},{ownerDocument:T,deferPointerDownOutside:u,isDeferredPointerDownOutsideRef:P,dismissableSurfaces:S.dismissableSurfaces,shouldHandlePointerDownOutside:o.useCallback(e=>{if(!(e instanceof Node))return!1;let t=[...S.branches].some(t=>t.contains(e));return N&&!t},[S.branches,N])}),I=y(e=>{if(u&&P.current)return;let t=e.target;[...S.branches].some(e=>e.contains(t))||(h?.(e),g?.(e),e.defaultPrevented||_?.())},T),L=C?j===O.length-1:!1,R=i.useCallbackRef(e=>{e.key===`Escape`&&(p?.(e),!e.defaultPrevented&&_&&(e.preventDefault(),_()))});return o.useEffect(()=>{if(L)return T.addEventListener(`keydown`,R,{capture:!0}),()=>T.removeEventListener(`keydown`,R,{capture:!0})},[T,L,R]),o.useEffect(()=>{if(C)return l&&(S.layersWithOutsidePointerEventsDisabled.size===0&&(d=T.body.style.pointerEvents,T.body.style.pointerEvents=`none`),S.layersWithOutsidePointerEventsDisabled.add(C)),S.layers.add(C),b(),()=>{l&&(S.layersWithOutsidePointerEventsDisabled.delete(C),S.layersWithOutsidePointerEventsDisabled.size===0&&(T.body.style.pointerEvents=d))}},[C,T,l,S]),o.useEffect(()=>()=>{C&&(S.layers.delete(C),S.layersWithOutsidePointerEventsDisabled.delete(C),b())},[C,S]),o.useEffect(()=>{let e=()=>E({});return document.addEventListener(c,e),()=>document.removeEventListener(c,e)},[]),(0,a.jsx)(r.Primitive.div,{...x,ref:D,style:{pointerEvents:M?N?`auto`:`none`:void 0,...e.style},onFocusCapture:t.composeEventHandlers(e.onFocusCapture,I.onFocusCapture),onBlurCapture:t.composeEventHandlers(e.onBlurCapture,I.onBlurCapture),onPointerDownCapture:t.composeEventHandlers(e.onPointerDownCapture,F.onPointerDownCapture)})});p.displayName=s;var m=`DismissableLayerBranch`,h=o.forwardRef((e,t)=>{let i=o.useContext(f),s=o.useRef(null),c=n.useComposedRefs(t,s);return o.useEffect(()=>{let e=s.current;if(e)return i.branches.add(e),()=>{i.branches.delete(e)}},[i.branches]),(0,a.jsx)(r.Primitive.div,{...e,ref:c})});h.displayName=m;function g(){let e=o.useContext(f),[t,n]=o.useState(null);return o.useEffect(()=>{if(t)return e.dismissableSurfaces.add(t),()=>{e.dismissableSurfaces.delete(t)}},[t,e.dismissableSurfaces]),n}var _=()=>!0;function v(e,t){let{ownerDocument:n=globalThis?.document,deferPointerDownOutside:r=!1,isDeferredPointerDownOutsideRef:a,dismissableSurfaces:s,shouldHandlePointerDownOutside:c=_}=t,u=i.useCallbackRef(e),d=o.useRef(!1),f=o.useRef(!1),p=o.useRef(new Map),m=o.useRef(()=>{});return o.useEffect(()=>{function e(){f.current=!1,a.current=!1,p.current.clear()}function t(){return Array.from(p.current.values()).some(Boolean)}function i(e){if(!f.current)return;let t=e.target;t instanceof Node&&[...s].some(e=>e.contains(t))||p.current.set(e.type,!0),e.type===`click`&&window.setTimeout(()=>{f.current&&m.current()},0)}function o(e){f.current&&p.current.set(e.type,!1)}let h=i=>{if(i.target&&!d.current){let o=function(){n.removeEventListener(`click`,m.current);let r=t();e(),r||x(l,u,s,{discrete:!0})};if(!c(i.target)){n.removeEventListener(`click`,m.current),e(),d.current=!1;return}let s={originalEvent:i};f.current=!0,a.current=r&&i.button===0,p.current.clear(),!r||i.button!==0?o():(n.removeEventListener(`click`,m.current),m.current=o,n.addEventListener(`click`,m.current,{once:!0}))}else n.removeEventListener(`click`,m.current),e();d.current=!1},g=[`pointerup`,`mousedown`,`mouseup`,`touchstart`,`touchend`,`click`];for(let e of g)n.addEventListener(e,i,!0),n.addEventListener(e,o);let _=window.setTimeout(()=>{n.addEventListener(`pointerdown`,h)},0);return()=>{window.clearTimeout(_),n.removeEventListener(`pointerdown`,h),n.removeEventListener(`click`,m.current);for(let e of g)n.removeEventListener(e,i,!0),n.removeEventListener(e,o)}},[n,u,r,a,s,c]),{onPointerDownCapture:()=>d.current=!0}}function y(e,t=globalThis?.document){let n=i.useCallbackRef(e),r=o.useRef(!1);return o.useEffect(()=>{let e=e=>{e.target&&!r.current&&x(u,n,{originalEvent:e},{discrete:!1})};return t.addEventListener(`focusin`,e),()=>t.removeEventListener(`focusin`,e)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function b(){let e=new CustomEvent(c);document.dispatchEvent(e)}function x(e,t,n,{discrete:i}){let a=n.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&a.addEventListener(e,t,{once:!0}),i?r.dispatchDiscreteCustomEvent(a,o):a.dispatchEvent(o)}exports.DismissableLayer=p,exports.DismissableLayerBranch=h,exports.useDismissableLayerSurface=g;
2
+ //# sourceMappingURL=index.cjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs.js","names":["React","useComposedRefs","useCallbackRef","Primitive","composeEventHandlers"],"sources":["../../../../../../../../../../node_modules/.bun/@radix-ui+react-dismissable-layer@1.1.15+ae2b4604ef263bc9/node_modules/@radix-ui/react-dismissable-layer/dist/index.mjs"],"sourcesContent":["\"use client\";\n\n// src/dismissable-layer.tsx\nimport * as React from \"react\";\nimport { composeEventHandlers } from \"@radix-ui/primitive\";\nimport { Primitive, dispatchDiscreteCustomEvent } from \"@radix-ui/react-primitive\";\nimport { useComposedRefs } from \"@radix-ui/react-compose-refs\";\nimport { useCallbackRef } from \"@radix-ui/react-use-callback-ref\";\nimport { jsx } from \"react/jsx-runtime\";\nvar DISMISSABLE_LAYER_NAME = \"DismissableLayer\";\nvar CONTEXT_UPDATE = \"dismissableLayer.update\";\nvar POINTER_DOWN_OUTSIDE = \"dismissableLayer.pointerDownOutside\";\nvar FOCUS_OUTSIDE = \"dismissableLayer.focusOutside\";\nvar originalBodyPointerEvents;\nvar DismissableLayerContext = React.createContext({\n layers: /* @__PURE__ */ new Set(),\n layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),\n branches: /* @__PURE__ */ new Set(),\n // Outside elements that belong to a layer's own dismiss affordance (eg, a\n // dialog overlay). Pressing them should dismiss the layer regardless of\n // whether or not they stop propagation.\n //\n // See https://github.com/radix-ui/primitives/issues/3346\n dismissableSurfaces: /* @__PURE__ */ new Set()\n});\nvar DismissableLayer = React.forwardRef(\n (props, forwardedRef) => {\n const {\n disableOutsidePointerEvents = false,\n deferPointerDownOutside = false,\n onEscapeKeyDown,\n onPointerDownOutside,\n onFocusOutside,\n onInteractOutside,\n onDismiss,\n ...layerProps\n } = props;\n const context = React.useContext(DismissableLayerContext);\n const [node, setNode] = React.useState(null);\n const ownerDocument = node?.ownerDocument ?? globalThis?.document;\n const [, force] = React.useState({});\n const composedRefs = useComposedRefs(forwardedRef, setNode);\n const layers = Array.from(context.layers);\n const [highestLayerWithOutsidePointerEventsDisabled] = [\n ...context.layersWithOutsidePointerEventsDisabled\n ].slice(-1);\n const highestLayerWithOutsidePointerEventsDisabledIndex = highestLayerWithOutsidePointerEventsDisabled ? layers.indexOf(highestLayerWithOutsidePointerEventsDisabled) : -1;\n const index = node ? layers.indexOf(node) : -1;\n const isBodyPointerEventsDisabled = context.layersWithOutsidePointerEventsDisabled.size > 0;\n const isPointerEventsEnabled = index >= highestLayerWithOutsidePointerEventsDisabledIndex;\n const isDeferredPointerDownOutsideRef = React.useRef(false);\n const pointerDownOutside = usePointerDownOutside(\n (event) => {\n onPointerDownOutside?.(event);\n onInteractOutside?.(event);\n if (!event.defaultPrevented) onDismiss?.();\n },\n {\n ownerDocument,\n deferPointerDownOutside,\n isDeferredPointerDownOutsideRef,\n dismissableSurfaces: context.dismissableSurfaces,\n shouldHandlePointerDownOutside: React.useCallback(\n (target) => {\n if (!(target instanceof Node)) {\n return false;\n }\n const isPointerDownOnBranch = [...context.branches].some(\n (branch) => branch.contains(target)\n );\n return isPointerEventsEnabled && !isPointerDownOnBranch;\n },\n [context.branches, isPointerEventsEnabled]\n )\n }\n );\n const focusOutside = useFocusOutside((event) => {\n if (deferPointerDownOutside && isDeferredPointerDownOutsideRef.current) {\n return;\n }\n const target = event.target;\n const isFocusInBranch = [...context.branches].some((branch) => branch.contains(target));\n if (isFocusInBranch) return;\n onFocusOutside?.(event);\n onInteractOutside?.(event);\n if (!event.defaultPrevented) onDismiss?.();\n }, ownerDocument);\n const isHighestLayer = node ? index === layers.length - 1 : false;\n const handleKeyDown = useCallbackRef((event) => {\n if (event.key !== \"Escape\") {\n return;\n }\n onEscapeKeyDown?.(event);\n if (!event.defaultPrevented && onDismiss) {\n event.preventDefault();\n onDismiss();\n }\n });\n React.useEffect(() => {\n if (!isHighestLayer) {\n return;\n }\n ownerDocument.addEventListener(\"keydown\", handleKeyDown, { capture: true });\n return () => ownerDocument.removeEventListener(\"keydown\", handleKeyDown, { capture: true });\n }, [ownerDocument, isHighestLayer, handleKeyDown]);\n React.useEffect(() => {\n if (!node) return;\n if (disableOutsidePointerEvents) {\n if (context.layersWithOutsidePointerEventsDisabled.size === 0) {\n originalBodyPointerEvents = ownerDocument.body.style.pointerEvents;\n ownerDocument.body.style.pointerEvents = \"none\";\n }\n context.layersWithOutsidePointerEventsDisabled.add(node);\n }\n context.layers.add(node);\n dispatchUpdate();\n return () => {\n if (disableOutsidePointerEvents) {\n context.layersWithOutsidePointerEventsDisabled.delete(node);\n if (context.layersWithOutsidePointerEventsDisabled.size === 0) {\n ownerDocument.body.style.pointerEvents = originalBodyPointerEvents;\n }\n }\n };\n }, [node, ownerDocument, disableOutsidePointerEvents, context]);\n React.useEffect(() => {\n return () => {\n if (!node) return;\n context.layers.delete(node);\n context.layersWithOutsidePointerEventsDisabled.delete(node);\n dispatchUpdate();\n };\n }, [node, context]);\n React.useEffect(() => {\n const handleUpdate = () => force({});\n document.addEventListener(CONTEXT_UPDATE, handleUpdate);\n return () => document.removeEventListener(CONTEXT_UPDATE, handleUpdate);\n }, []);\n return /* @__PURE__ */ jsx(\n Primitive.div,\n {\n ...layerProps,\n ref: composedRefs,\n style: {\n pointerEvents: isBodyPointerEventsDisabled ? isPointerEventsEnabled ? \"auto\" : \"none\" : void 0,\n ...props.style\n },\n onFocusCapture: composeEventHandlers(props.onFocusCapture, focusOutside.onFocusCapture),\n onBlurCapture: composeEventHandlers(props.onBlurCapture, focusOutside.onBlurCapture),\n onPointerDownCapture: composeEventHandlers(\n props.onPointerDownCapture,\n pointerDownOutside.onPointerDownCapture\n )\n }\n );\n }\n);\nDismissableLayer.displayName = DISMISSABLE_LAYER_NAME;\nvar BRANCH_NAME = \"DismissableLayerBranch\";\nvar DismissableLayerBranch = React.forwardRef((props, forwardedRef) => {\n const context = React.useContext(DismissableLayerContext);\n const ref = React.useRef(null);\n const composedRefs = useComposedRefs(forwardedRef, ref);\n React.useEffect(() => {\n const node = ref.current;\n if (node) {\n context.branches.add(node);\n return () => {\n context.branches.delete(node);\n };\n }\n }, [context.branches]);\n return /* @__PURE__ */ jsx(Primitive.div, { ...props, ref: composedRefs });\n});\nDismissableLayerBranch.displayName = BRANCH_NAME;\nfunction useDismissableLayerSurface() {\n const context = React.useContext(DismissableLayerContext);\n const [node, setNode] = React.useState(null);\n React.useEffect(() => {\n if (!node) {\n return;\n }\n context.dismissableSurfaces.add(node);\n return () => {\n context.dismissableSurfaces.delete(node);\n };\n }, [node, context.dismissableSurfaces]);\n return setNode;\n}\nvar IS_TRUE = () => true;\nfunction usePointerDownOutside(onPointerDownOutside, args) {\n const {\n ownerDocument = globalThis?.document,\n deferPointerDownOutside = false,\n isDeferredPointerDownOutsideRef,\n dismissableSurfaces,\n shouldHandlePointerDownOutside = IS_TRUE\n } = args;\n const handlePointerDownOutside = useCallbackRef(onPointerDownOutside);\n const isPointerInsideReactTreeRef = React.useRef(false);\n const isPointerDownOutsideRef = React.useRef(false);\n const interceptedOutsideInteractionEventsRef = React.useRef(/* @__PURE__ */ new Map());\n const handleClickRef = React.useRef(() => {\n });\n React.useEffect(() => {\n function resetOutsideInteraction() {\n isPointerDownOutsideRef.current = false;\n isDeferredPointerDownOutsideRef.current = false;\n interceptedOutsideInteractionEventsRef.current.clear();\n }\n function isOutsideInteractionIntercepted() {\n return Array.from(interceptedOutsideInteractionEventsRef.current.values()).some(Boolean);\n }\n function handleInteractionCapture(event) {\n if (!isPointerDownOutsideRef.current) {\n return;\n }\n const target = event.target;\n const isDismissableSurface = target instanceof Node && [...dismissableSurfaces].some((surface) => surface.contains(target));\n if (!isDismissableSurface) {\n interceptedOutsideInteractionEventsRef.current.set(event.type, true);\n }\n if (event.type === \"click\") {\n window.setTimeout(() => {\n if (isPointerDownOutsideRef.current) {\n handleClickRef.current();\n }\n }, 0);\n }\n }\n function handleInteractionBubble(event) {\n if (isPointerDownOutsideRef.current) {\n interceptedOutsideInteractionEventsRef.current.set(event.type, false);\n }\n }\n const handlePointerDown = (event) => {\n if (event.target && !isPointerInsideReactTreeRef.current) {\n let handleAndDispatchPointerDownOutsideEvent2 = function() {\n ownerDocument.removeEventListener(\"click\", handleClickRef.current);\n const wasOutsideInteractionIntercepted = isOutsideInteractionIntercepted();\n resetOutsideInteraction();\n if (!wasOutsideInteractionIntercepted) {\n handleAndDispatchCustomEvent(\n POINTER_DOWN_OUTSIDE,\n handlePointerDownOutside,\n eventDetail,\n { discrete: true }\n );\n }\n };\n var handleAndDispatchPointerDownOutsideEvent = handleAndDispatchPointerDownOutsideEvent2;\n if (!shouldHandlePointerDownOutside(event.target)) {\n ownerDocument.removeEventListener(\"click\", handleClickRef.current);\n resetOutsideInteraction();\n isPointerInsideReactTreeRef.current = false;\n return;\n }\n const eventDetail = { originalEvent: event };\n isPointerDownOutsideRef.current = true;\n isDeferredPointerDownOutsideRef.current = deferPointerDownOutside && event.button === 0;\n interceptedOutsideInteractionEventsRef.current.clear();\n if (!deferPointerDownOutside || event.button !== 0) {\n handleAndDispatchPointerDownOutsideEvent2();\n } else {\n ownerDocument.removeEventListener(\"click\", handleClickRef.current);\n handleClickRef.current = handleAndDispatchPointerDownOutsideEvent2;\n ownerDocument.addEventListener(\"click\", handleClickRef.current, { once: true });\n }\n } else {\n ownerDocument.removeEventListener(\"click\", handleClickRef.current);\n resetOutsideInteraction();\n }\n isPointerInsideReactTreeRef.current = false;\n };\n const outsideInteractionEvents = [\n \"pointerup\",\n \"mousedown\",\n \"mouseup\",\n \"touchstart\",\n \"touchend\",\n \"click\"\n ];\n for (const eventName of outsideInteractionEvents) {\n ownerDocument.addEventListener(eventName, handleInteractionCapture, true);\n ownerDocument.addEventListener(eventName, handleInteractionBubble);\n }\n const timerId = window.setTimeout(() => {\n ownerDocument.addEventListener(\"pointerdown\", handlePointerDown);\n }, 0);\n return () => {\n window.clearTimeout(timerId);\n ownerDocument.removeEventListener(\"pointerdown\", handlePointerDown);\n ownerDocument.removeEventListener(\"click\", handleClickRef.current);\n for (const eventName of outsideInteractionEvents) {\n ownerDocument.removeEventListener(eventName, handleInteractionCapture, true);\n ownerDocument.removeEventListener(eventName, handleInteractionBubble);\n }\n };\n }, [\n ownerDocument,\n handlePointerDownOutside,\n deferPointerDownOutside,\n isDeferredPointerDownOutsideRef,\n dismissableSurfaces,\n shouldHandlePointerDownOutside\n ]);\n return {\n // ensures we check React component tree (not just DOM tree)\n onPointerDownCapture: () => isPointerInsideReactTreeRef.current = true\n };\n}\nfunction useFocusOutside(onFocusOutside, ownerDocument = globalThis?.document) {\n const handleFocusOutside = useCallbackRef(onFocusOutside);\n const isFocusInsideReactTreeRef = React.useRef(false);\n React.useEffect(() => {\n const handleFocus = (event) => {\n if (event.target && !isFocusInsideReactTreeRef.current) {\n const eventDetail = { originalEvent: event };\n handleAndDispatchCustomEvent(FOCUS_OUTSIDE, handleFocusOutside, eventDetail, {\n discrete: false\n });\n }\n };\n ownerDocument.addEventListener(\"focusin\", handleFocus);\n return () => ownerDocument.removeEventListener(\"focusin\", handleFocus);\n }, [ownerDocument, handleFocusOutside]);\n return {\n onFocusCapture: () => isFocusInsideReactTreeRef.current = true,\n onBlurCapture: () => isFocusInsideReactTreeRef.current = false\n };\n}\nfunction dispatchUpdate() {\n const event = new CustomEvent(CONTEXT_UPDATE);\n document.dispatchEvent(event);\n}\nfunction handleAndDispatchCustomEvent(name, handler, detail, { discrete }) {\n const target = detail.originalEvent.target;\n const event = new CustomEvent(name, { bubbles: false, cancelable: true, detail });\n if (handler) target.addEventListener(name, handler, { once: true });\n if (discrete) {\n dispatchDiscreteCustomEvent(target, event);\n } else {\n target.dispatchEvent(event);\n }\n}\nvar Root = DismissableLayer;\nvar Branch = DismissableLayerBranch;\nexport {\n Branch,\n DismissableLayer,\n DismissableLayerBranch,\n Root,\n useDismissableLayerSurface\n};\n//# sourceMappingURL=index.mjs.map\n"],"x_google_ignoreList":[0],"mappings":"6qBASA,IAAI,EAAyB,mBACzB,EAAiB,0BACjB,EAAuB,sCACvB,EAAgB,gCAChB,EACA,EAA0BA,EAAM,cAAc,CAChD,OAAwB,IAAI,IAC5B,uCAAwD,IAAI,IAC5D,SAA0B,IAAI,IAM9B,oBAAqC,IAAI,GAC3C,CAAC,EACG,EAAmBA,EAAM,YAC1B,EAAO,IAAiB,CACvB,GAAM,CACJ,8BAA8B,GAC9B,0BAA0B,GAC1B,kBACA,uBACA,iBACA,oBACA,YACA,GAAG,GACD,EACE,EAAUA,EAAM,WAAW,CAAuB,EAClD,CAAC,EAAM,GAAWA,EAAM,SAAS,IAAI,EACrC,EAAgB,GAAM,eAAiB,YAAY,SACnD,EAAG,GAASA,EAAM,SAAS,CAAC,CAAC,EAC7B,EAAeC,EAAAA,gBAAgB,EAAc,CAAO,EACpD,EAAS,MAAM,KAAK,EAAQ,MAAM,EAClC,CAAC,GAAgD,CACrD,GAAG,EAAQ,sCACb,CAAC,CAAC,MAAM,EAAE,EACJ,EAAoD,EAA+C,EAAO,QAAQ,CAA4C,EAAI,GAClK,EAAQ,EAAO,EAAO,QAAQ,CAAI,EAAI,GACtC,EAA8B,EAAQ,uCAAuC,KAAO,EACpF,EAAyB,GAAS,EAClC,EAAkCD,EAAM,OAAO,EAAK,EACpD,EAAqB,EACxB,GAAU,CACT,IAAuB,CAAK,EAC5B,IAAoB,CAAK,EACpB,EAAM,kBAAkB,IAAY,CAC3C,EACA,CACE,gBACA,0BACA,kCACA,oBAAqB,EAAQ,oBAC7B,+BAAgCA,EAAM,YACnC,GAAW,CACV,GAAI,EAAE,aA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