@blimu/react 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (516) hide show
  1. package/README.md +552 -0
  2. package/dist/_virtual/index.cjs +2 -0
  3. package/dist/_virtual/index.cjs.map +1 -0
  4. package/dist/_virtual/index.js +6 -0
  5. package/dist/_virtual/index.js.map +1 -0
  6. package/dist/_virtual/index2.cjs +2 -0
  7. package/dist/_virtual/index2.cjs.map +1 -0
  8. package/dist/_virtual/index2.js +5 -0
  9. package/dist/_virtual/index2.js.map +1 -0
  10. package/dist/_virtual/use-sync-external-store-shim.development.cjs +2 -0
  11. package/dist/_virtual/use-sync-external-store-shim.development.cjs.map +1 -0
  12. package/dist/_virtual/use-sync-external-store-shim.development.js +5 -0
  13. package/dist/_virtual/use-sync-external-store-shim.development.js.map +1 -0
  14. package/dist/_virtual/use-sync-external-store-shim.production.cjs +2 -0
  15. package/dist/_virtual/use-sync-external-store-shim.production.cjs.map +1 -0
  16. package/dist/_virtual/use-sync-external-store-shim.production.js +5 -0
  17. package/dist/_virtual/use-sync-external-store-shim.production.js.map +1 -0
  18. package/dist/client/auth.service.cjs +2 -0
  19. package/dist/client/auth.service.cjs.map +1 -0
  20. package/dist/client/auth.service.d.ts +50 -0
  21. package/dist/client/auth.service.d.ts.map +1 -0
  22. package/dist/client/auth.service.js +153 -0
  23. package/dist/client/auth.service.js.map +1 -0
  24. package/dist/client/auth.service.test-service.d.ts +39 -0
  25. package/dist/client/auth.service.test-service.d.ts.map +1 -0
  26. package/dist/client/external-store.cjs +2 -0
  27. package/dist/client/external-store.cjs.map +1 -0
  28. package/dist/client/external-store.d.ts +20 -0
  29. package/dist/client/external-store.d.ts.map +1 -0
  30. package/dist/client/external-store.js +13 -0
  31. package/dist/client/external-store.js.map +1 -0
  32. package/dist/client/runtime-client.cjs +2 -0
  33. package/dist/client/runtime-client.cjs.map +1 -0
  34. package/dist/client/runtime-client.d.ts +49 -0
  35. package/dist/client/runtime-client.d.ts.map +1 -0
  36. package/dist/client/runtime-client.js +103 -0
  37. package/dist/client/runtime-client.js.map +1 -0
  38. package/dist/components/index.d.ts +11 -0
  39. package/dist/components/index.d.ts.map +1 -0
  40. package/dist/components/members-list.cjs +2 -0
  41. package/dist/components/members-list.cjs.map +1 -0
  42. package/dist/components/members-list.d.ts +70 -0
  43. package/dist/components/members-list.d.ts.map +1 -0
  44. package/dist/components/members-list.js +111 -0
  45. package/dist/components/members-list.js.map +1 -0
  46. package/dist/components/redirect-to-sign-in.cjs +2 -0
  47. package/dist/components/redirect-to-sign-in.cjs.map +1 -0
  48. package/dist/components/redirect-to-sign-in.d.ts +39 -0
  49. package/dist/components/redirect-to-sign-in.d.ts.map +1 -0
  50. package/dist/components/redirect-to-sign-in.js +27 -0
  51. package/dist/components/redirect-to-sign-in.js.map +1 -0
  52. package/dist/components/sign-in-button/styles.d.ts +7 -0
  53. package/dist/components/sign-in-button/styles.d.ts.map +1 -0
  54. package/dist/components/sign-in-button.cjs +2 -0
  55. package/dist/components/sign-in-button.cjs.map +1 -0
  56. package/dist/components/sign-in-button.d.ts +47 -0
  57. package/dist/components/sign-in-button.d.ts.map +1 -0
  58. package/dist/components/sign-in-button.js +33 -0
  59. package/dist/components/sign-in-button.js.map +1 -0
  60. package/dist/components/ui/avatar.cjs +2 -0
  61. package/dist/components/ui/avatar.cjs.map +1 -0
  62. package/dist/components/ui/avatar.d.ts +7 -0
  63. package/dist/components/ui/avatar.d.ts.map +1 -0
  64. package/dist/components/ui/avatar.js +43 -0
  65. package/dist/components/ui/avatar.js.map +1 -0
  66. package/dist/components/ui/badge.d.ts +10 -0
  67. package/dist/components/ui/badge.d.ts.map +1 -0
  68. package/dist/components/ui/dropdown-menu.cjs +2 -0
  69. package/dist/components/ui/dropdown-menu.cjs.map +1 -0
  70. package/dist/components/ui/dropdown-menu.d.ts +28 -0
  71. package/dist/components/ui/dropdown-menu.d.ts.map +1 -0
  72. package/dist/components/ui/dropdown-menu.js +130 -0
  73. package/dist/components/ui/dropdown-menu.js.map +1 -0
  74. package/dist/components/ui/popover.d.ts +8 -0
  75. package/dist/components/ui/popover.d.ts.map +1 -0
  76. package/dist/components/ui/separator.d.ts +5 -0
  77. package/dist/components/ui/separator.d.ts.map +1 -0
  78. package/dist/components/user-avatar/styles.d.ts +7 -0
  79. package/dist/components/user-avatar/styles.d.ts.map +1 -0
  80. package/dist/components/user-avatar.cjs +2 -0
  81. package/dist/components/user-avatar.cjs.map +1 -0
  82. package/dist/components/user-avatar.d.ts +41 -0
  83. package/dist/components/user-avatar.d.ts.map +1 -0
  84. package/dist/components/user-avatar.js +23 -0
  85. package/dist/components/user-avatar.js.map +1 -0
  86. package/dist/components/user-button/styles.cjs +2 -0
  87. package/dist/components/user-button/styles.cjs.map +1 -0
  88. package/dist/components/user-button/styles.d.ts +17 -0
  89. package/dist/components/user-button/styles.d.ts.map +1 -0
  90. package/dist/components/user-button/styles.js +39 -0
  91. package/dist/components/user-button/styles.js.map +1 -0
  92. package/dist/components/user-button/user-button.cjs +2 -0
  93. package/dist/components/user-button/user-button.cjs.map +1 -0
  94. package/dist/components/user-button/user-button.d.ts +15 -0
  95. package/dist/components/user-button/user-button.d.ts.map +1 -0
  96. package/dist/components/user-button/user-button.js +93 -0
  97. package/dist/components/user-button/user-button.js.map +1 -0
  98. package/dist/components.cjs +2 -0
  99. package/dist/components.cjs.map +1 -0
  100. package/dist/components.js +13 -0
  101. package/dist/components.js.map +1 -0
  102. package/dist/hooks/index.d.ts +7 -0
  103. package/dist/hooks/index.d.ts.map +1 -0
  104. package/dist/hooks/use-auth.cjs +2 -0
  105. package/dist/hooks/use-auth.cjs.map +1 -0
  106. package/dist/hooks/use-auth.d.ts +92 -0
  107. package/dist/hooks/use-auth.d.ts.map +1 -0
  108. package/dist/hooks/use-auth.js +41 -0
  109. package/dist/hooks/use-auth.js.map +1 -0
  110. package/dist/hooks/use-client.cjs +2 -0
  111. package/dist/hooks/use-client.cjs.map +1 -0
  112. package/dist/hooks/use-client.d.ts +27 -0
  113. package/dist/hooks/use-client.d.ts.map +1 -0
  114. package/dist/hooks/use-client.js +9 -0
  115. package/dist/hooks/use-client.js.map +1 -0
  116. package/dist/hooks/use-members.cjs +2 -0
  117. package/dist/hooks/use-members.cjs.map +1 -0
  118. package/dist/hooks/use-members.d.ts +50 -0
  119. package/dist/hooks/use-members.d.ts.map +1 -0
  120. package/dist/hooks/use-members.js +49 -0
  121. package/dist/hooks/use-members.js.map +1 -0
  122. package/dist/hooks/use-store.cjs +2 -0
  123. package/dist/hooks/use-store.cjs.map +1 -0
  124. package/dist/hooks/use-store.d.ts +24 -0
  125. package/dist/hooks/use-store.d.ts.map +1 -0
  126. package/dist/hooks/use-store.js +18 -0
  127. package/dist/hooks/use-store.js.map +1 -0
  128. package/dist/hooks.cjs +2 -0
  129. package/dist/hooks.cjs.map +1 -0
  130. package/dist/hooks.js +14 -0
  131. package/dist/hooks.js.map +1 -0
  132. package/dist/index.cjs +2 -0
  133. package/dist/index.cjs.map +1 -0
  134. package/dist/index.d.ts +13 -0
  135. package/dist/index.d.ts.map +1 -0
  136. package/dist/index.js +38 -0
  137. package/dist/index.js.map +1 -0
  138. package/dist/lib/utils.cjs +2 -0
  139. package/dist/lib/utils.cjs.map +1 -0
  140. package/dist/lib/utils.d.ts +7 -0
  141. package/dist/lib/utils.d.ts.map +1 -0
  142. package/dist/lib/utils.js +9 -0
  143. package/dist/lib/utils.js.map +1 -0
  144. package/dist/lib/variants.cjs +2 -0
  145. package/dist/lib/variants.cjs.map +1 -0
  146. package/dist/lib/variants.d.ts +37 -0
  147. package/dist/lib/variants.d.ts.map +1 -0
  148. package/dist/lib/variants.js +46 -0
  149. package/dist/lib/variants.js.map +1 -0
  150. package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.cjs +2 -0
  151. package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.cjs.map +1 -0
  152. package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.js +528 -0
  153. package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.js.map +1 -0
  154. package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.cjs +2 -0
  155. package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.cjs.map +1 -0
  156. package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +403 -0
  157. package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js.map +1 -0
  158. package/dist/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.cjs +2 -0
  159. package/dist/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.cjs.map +1 -0
  160. package/dist/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js +209 -0
  161. package/dist/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js.map +1 -0
  162. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.cjs +2 -0
  163. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.cjs.map +1 -0
  164. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.cjs +2 -0
  165. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.cjs.map +1 -0
  166. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +137 -0
  167. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js.map +1 -0
  168. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +131 -0
  169. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.js.map +1 -0
  170. package/dist/node_modules/@radix-ui/primitive/dist/index.cjs +2 -0
  171. package/dist/node_modules/@radix-ui/primitive/dist/index.cjs.map +1 -0
  172. package/dist/node_modules/@radix-ui/primitive/dist/index.js +10 -0
  173. package/dist/node_modules/@radix-ui/primitive/dist/index.js.map +1 -0
  174. package/dist/node_modules/@radix-ui/react-arrow/dist/index.cjs +2 -0
  175. package/dist/node_modules/@radix-ui/react-arrow/dist/index.cjs.map +1 -0
  176. package/dist/node_modules/@radix-ui/react-arrow/dist/index.js +25 -0
  177. package/dist/node_modules/@radix-ui/react-arrow/dist/index.js.map +1 -0
  178. package/dist/node_modules/@radix-ui/react-avatar/dist/index.cjs +2 -0
  179. package/dist/node_modules/@radix-ui/react-avatar/dist/index.cjs.map +1 -0
  180. package/dist/node_modules/@radix-ui/react-avatar/dist/index.js +76 -0
  181. package/dist/node_modules/@radix-ui/react-avatar/dist/index.js.map +1 -0
  182. package/dist/node_modules/@radix-ui/react-avatar/node_modules/@radix-ui/react-context/dist/index.cjs +2 -0
  183. package/dist/node_modules/@radix-ui/react-avatar/node_modules/@radix-ui/react-context/dist/index.cjs.map +1 -0
  184. package/dist/node_modules/@radix-ui/react-avatar/node_modules/@radix-ui/react-context/dist/index.js +56 -0
  185. package/dist/node_modules/@radix-ui/react-avatar/node_modules/@radix-ui/react-context/dist/index.js.map +1 -0
  186. package/dist/node_modules/@radix-ui/react-avatar/node_modules/@radix-ui/react-primitive/dist/index.cjs +2 -0
  187. package/dist/node_modules/@radix-ui/react-avatar/node_modules/@radix-ui/react-primitive/dist/index.cjs.map +1 -0
  188. package/dist/node_modules/@radix-ui/react-avatar/node_modules/@radix-ui/react-primitive/dist/index.js +33 -0
  189. package/dist/node_modules/@radix-ui/react-avatar/node_modules/@radix-ui/react-primitive/dist/index.js.map +1 -0
  190. package/dist/node_modules/@radix-ui/react-avatar/node_modules/@radix-ui/react-slot/dist/index.cjs +2 -0
  191. package/dist/node_modules/@radix-ui/react-avatar/node_modules/@radix-ui/react-slot/dist/index.cjs.map +1 -0
  192. package/dist/node_modules/@radix-ui/react-avatar/node_modules/@radix-ui/react-slot/dist/index.js +59 -0
  193. package/dist/node_modules/@radix-ui/react-avatar/node_modules/@radix-ui/react-slot/dist/index.js.map +1 -0
  194. package/dist/node_modules/@radix-ui/react-collection/dist/index.cjs +2 -0
  195. package/dist/node_modules/@radix-ui/react-collection/dist/index.cjs.map +1 -0
  196. package/dist/node_modules/@radix-ui/react-collection/dist/index.js +51 -0
  197. package/dist/node_modules/@radix-ui/react-collection/dist/index.js.map +1 -0
  198. package/dist/node_modules/@radix-ui/react-compose-refs/dist/index.cjs +2 -0
  199. package/dist/node_modules/@radix-ui/react-compose-refs/dist/index.cjs.map +1 -0
  200. package/dist/node_modules/@radix-ui/react-compose-refs/dist/index.js +30 -0
  201. package/dist/node_modules/@radix-ui/react-compose-refs/dist/index.js.map +1 -0
  202. package/dist/node_modules/@radix-ui/react-context/dist/index.cjs +2 -0
  203. package/dist/node_modules/@radix-ui/react-context/dist/index.cjs.map +1 -0
  204. package/dist/node_modules/@radix-ui/react-context/dist/index.js +54 -0
  205. package/dist/node_modules/@radix-ui/react-context/dist/index.js.map +1 -0
  206. package/dist/node_modules/@radix-ui/react-direction/dist/index.cjs +2 -0
  207. package/dist/node_modules/@radix-ui/react-direction/dist/index.cjs.map +1 -0
  208. package/dist/node_modules/@radix-ui/react-direction/dist/index.js +11 -0
  209. package/dist/node_modules/@radix-ui/react-direction/dist/index.js.map +1 -0
  210. package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.cjs +2 -0
  211. package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.cjs.map +1 -0
  212. package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.js +128 -0
  213. package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.js.map +1 -0
  214. package/dist/node_modules/@radix-ui/react-dropdown-menu/dist/index.cjs +2 -0
  215. package/dist/node_modules/@radix-ui/react-dropdown-menu/dist/index.cjs.map +1 -0
  216. package/dist/node_modules/@radix-ui/react-dropdown-menu/dist/index.js +215 -0
  217. package/dist/node_modules/@radix-ui/react-dropdown-menu/dist/index.js.map +1 -0
  218. package/dist/node_modules/@radix-ui/react-focus-guards/dist/index.cjs +2 -0
  219. package/dist/node_modules/@radix-ui/react-focus-guards/dist/index.cjs.map +1 -0
  220. package/dist/node_modules/@radix-ui/react-focus-guards/dist/index.js +18 -0
  221. package/dist/node_modules/@radix-ui/react-focus-guards/dist/index.js.map +1 -0
  222. package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.cjs +2 -0
  223. package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.cjs.map +1 -0
  224. package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.js +137 -0
  225. package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.js.map +1 -0
  226. package/dist/node_modules/@radix-ui/react-id/dist/index.cjs +2 -0
  227. package/dist/node_modules/@radix-ui/react-id/dist/index.cjs.map +1 -0
  228. package/dist/node_modules/@radix-ui/react-id/dist/index.js +14 -0
  229. package/dist/node_modules/@radix-ui/react-id/dist/index.js.map +1 -0
  230. package/dist/node_modules/@radix-ui/react-menu/dist/index.cjs +2 -0
  231. package/dist/node_modules/@radix-ui/react-menu/dist/index.cjs.map +1 -0
  232. package/dist/node_modules/@radix-ui/react-menu/dist/index.js +609 -0
  233. package/dist/node_modules/@radix-ui/react-menu/dist/index.js.map +1 -0
  234. package/dist/node_modules/@radix-ui/react-popper/dist/index.cjs +2 -0
  235. package/dist/node_modules/@radix-ui/react-popper/dist/index.cjs.map +1 -0
  236. package/dist/node_modules/@radix-ui/react-popper/dist/index.js +220 -0
  237. package/dist/node_modules/@radix-ui/react-popper/dist/index.js.map +1 -0
  238. package/dist/node_modules/@radix-ui/react-portal/dist/index.cjs +2 -0
  239. package/dist/node_modules/@radix-ui/react-portal/dist/index.cjs.map +1 -0
  240. package/dist/node_modules/@radix-ui/react-portal/dist/index.js +16 -0
  241. package/dist/node_modules/@radix-ui/react-portal/dist/index.js.map +1 -0
  242. package/dist/node_modules/@radix-ui/react-presence/dist/index.cjs +2 -0
  243. package/dist/node_modules/@radix-ui/react-presence/dist/index.cjs.map +1 -0
  244. package/dist/node_modules/@radix-ui/react-presence/dist/index.js +71 -0
  245. package/dist/node_modules/@radix-ui/react-presence/dist/index.js.map +1 -0
  246. package/dist/node_modules/@radix-ui/react-primitive/dist/index.cjs +2 -0
  247. package/dist/node_modules/@radix-ui/react-primitive/dist/index.cjs.map +1 -0
  248. package/dist/node_modules/@radix-ui/react-primitive/dist/index.js +37 -0
  249. package/dist/node_modules/@radix-ui/react-primitive/dist/index.js.map +1 -0
  250. package/dist/node_modules/@radix-ui/react-roving-focus/dist/index.cjs +2 -0
  251. package/dist/node_modules/@radix-ui/react-roving-focus/dist/index.cjs.map +1 -0
  252. package/dist/node_modules/@radix-ui/react-roving-focus/dist/index.js +184 -0
  253. package/dist/node_modules/@radix-ui/react-roving-focus/dist/index.js.map +1 -0
  254. package/dist/node_modules/@radix-ui/react-slot/dist/index.cjs +2 -0
  255. package/dist/node_modules/@radix-ui/react-slot/dist/index.cjs.map +1 -0
  256. package/dist/node_modules/@radix-ui/react-slot/dist/index.js +50 -0
  257. package/dist/node_modules/@radix-ui/react-slot/dist/index.js.map +1 -0
  258. package/dist/node_modules/@radix-ui/react-use-callback-ref/dist/index.cjs +2 -0
  259. package/dist/node_modules/@radix-ui/react-use-callback-ref/dist/index.cjs.map +1 -0
  260. package/dist/node_modules/@radix-ui/react-use-callback-ref/dist/index.js +11 -0
  261. package/dist/node_modules/@radix-ui/react-use-callback-ref/dist/index.js.map +1 -0
  262. package/dist/node_modules/@radix-ui/react-use-controllable-state/dist/index.cjs +2 -0
  263. package/dist/node_modules/@radix-ui/react-use-controllable-state/dist/index.cjs.map +1 -0
  264. package/dist/node_modules/@radix-ui/react-use-controllable-state/dist/index.js +53 -0
  265. package/dist/node_modules/@radix-ui/react-use-controllable-state/dist/index.js.map +1 -0
  266. package/dist/node_modules/@radix-ui/react-use-escape-keydown/dist/index.cjs +2 -0
  267. package/dist/node_modules/@radix-ui/react-use-escape-keydown/dist/index.cjs.map +1 -0
  268. package/dist/node_modules/@radix-ui/react-use-escape-keydown/dist/index.js +15 -0
  269. package/dist/node_modules/@radix-ui/react-use-escape-keydown/dist/index.js.map +1 -0
  270. package/dist/node_modules/@radix-ui/react-use-is-hydrated/dist/index.cjs +2 -0
  271. package/dist/node_modules/@radix-ui/react-use-is-hydrated/dist/index.cjs.map +1 -0
  272. package/dist/node_modules/@radix-ui/react-use-is-hydrated/dist/index.js +16 -0
  273. package/dist/node_modules/@radix-ui/react-use-is-hydrated/dist/index.js.map +1 -0
  274. package/dist/node_modules/@radix-ui/react-use-layout-effect/dist/index.cjs +2 -0
  275. package/dist/node_modules/@radix-ui/react-use-layout-effect/dist/index.cjs.map +1 -0
  276. package/dist/node_modules/@radix-ui/react-use-layout-effect/dist/index.js +7 -0
  277. package/dist/node_modules/@radix-ui/react-use-layout-effect/dist/index.js.map +1 -0
  278. package/dist/node_modules/@radix-ui/react-use-size/dist/index.cjs +2 -0
  279. package/dist/node_modules/@radix-ui/react-use-size/dist/index.cjs.map +1 -0
  280. package/dist/node_modules/@radix-ui/react-use-size/dist/index.js +28 -0
  281. package/dist/node_modules/@radix-ui/react-use-size/dist/index.js.map +1 -0
  282. package/dist/node_modules/aria-hidden/dist/es2015/index.cjs +2 -0
  283. package/dist/node_modules/aria-hidden/dist/es2015/index.cjs.map +1 -0
  284. package/dist/node_modules/aria-hidden/dist/es2015/index.js +53 -0
  285. package/dist/node_modules/aria-hidden/dist/es2015/index.js.map +1 -0
  286. package/dist/node_modules/class-variance-authority/dist/index.cjs +2 -0
  287. package/dist/node_modules/class-variance-authority/dist/index.cjs.map +1 -0
  288. package/dist/node_modules/class-variance-authority/dist/index.js +36 -0
  289. package/dist/node_modules/class-variance-authority/dist/index.js.map +1 -0
  290. package/dist/node_modules/clsx/dist/clsx.cjs +2 -0
  291. package/dist/node_modules/clsx/dist/clsx.cjs.map +1 -0
  292. package/dist/node_modules/clsx/dist/clsx.js +18 -0
  293. package/dist/node_modules/clsx/dist/clsx.js.map +1 -0
  294. package/dist/node_modules/get-nonce/dist/es2015/index.cjs +2 -0
  295. package/dist/node_modules/get-nonce/dist/es2015/index.cjs.map +1 -0
  296. package/dist/node_modules/get-nonce/dist/es2015/index.js +8 -0
  297. package/dist/node_modules/get-nonce/dist/es2015/index.js.map +1 -0
  298. package/dist/node_modules/js-cookie/dist/js.cookie.cjs +2 -0
  299. package/dist/node_modules/js-cookie/dist/js.cookie.cjs.map +1 -0
  300. package/dist/node_modules/js-cookie/dist/js.cookie.js +74 -0
  301. package/dist/node_modules/js-cookie/dist/js.cookie.js.map +1 -0
  302. package/dist/node_modules/jwt-decode/build/esm/index.cjs +2 -0
  303. package/dist/node_modules/jwt-decode/build/esm/index.cjs.map +1 -0
  304. package/dist/node_modules/jwt-decode/build/esm/index.js +53 -0
  305. package/dist/node_modules/jwt-decode/build/esm/index.js.map +1 -0
  306. package/dist/node_modules/lucide-react/dist/esm/Icon.cjs +2 -0
  307. package/dist/node_modules/lucide-react/dist/esm/Icon.cjs.map +1 -0
  308. package/dist/node_modules/lucide-react/dist/esm/Icon.js +36 -0
  309. package/dist/node_modules/lucide-react/dist/esm/Icon.js.map +1 -0
  310. package/dist/node_modules/lucide-react/dist/esm/createLucideIcon.cjs +2 -0
  311. package/dist/node_modules/lucide-react/dist/esm/createLucideIcon.cjs.map +1 -0
  312. package/dist/node_modules/lucide-react/dist/esm/createLucideIcon.js +22 -0
  313. package/dist/node_modules/lucide-react/dist/esm/createLucideIcon.js.map +1 -0
  314. package/dist/node_modules/lucide-react/dist/esm/defaultAttributes.cjs +2 -0
  315. package/dist/node_modules/lucide-react/dist/esm/defaultAttributes.cjs.map +1 -0
  316. package/dist/node_modules/lucide-react/dist/esm/defaultAttributes.js +15 -0
  317. package/dist/node_modules/lucide-react/dist/esm/defaultAttributes.js.map +1 -0
  318. package/dist/node_modules/lucide-react/dist/esm/icons/check.cjs +2 -0
  319. package/dist/node_modules/lucide-react/dist/esm/icons/check.cjs.map +1 -0
  320. package/dist/node_modules/lucide-react/dist/esm/icons/check.js +7 -0
  321. package/dist/node_modules/lucide-react/dist/esm/icons/check.js.map +1 -0
  322. package/dist/node_modules/lucide-react/dist/esm/icons/chevron-right.cjs +2 -0
  323. package/dist/node_modules/lucide-react/dist/esm/icons/chevron-right.cjs.map +1 -0
  324. package/dist/node_modules/lucide-react/dist/esm/icons/chevron-right.js +7 -0
  325. package/dist/node_modules/lucide-react/dist/esm/icons/chevron-right.js.map +1 -0
  326. package/dist/node_modules/lucide-react/dist/esm/icons/circle.cjs +2 -0
  327. package/dist/node_modules/lucide-react/dist/esm/icons/circle.cjs.map +1 -0
  328. package/dist/node_modules/lucide-react/dist/esm/icons/circle.js +7 -0
  329. package/dist/node_modules/lucide-react/dist/esm/icons/circle.js.map +1 -0
  330. package/dist/node_modules/lucide-react/dist/esm/icons/log-out.cjs +2 -0
  331. package/dist/node_modules/lucide-react/dist/esm/icons/log-out.cjs.map +1 -0
  332. package/dist/node_modules/lucide-react/dist/esm/icons/log-out.js +11 -0
  333. package/dist/node_modules/lucide-react/dist/esm/icons/log-out.js.map +1 -0
  334. package/dist/node_modules/lucide-react/dist/esm/shared/src/utils.cjs +2 -0
  335. package/dist/node_modules/lucide-react/dist/esm/shared/src/utils.cjs.map +1 -0
  336. package/dist/node_modules/lucide-react/dist/esm/shared/src/utils.js +19 -0
  337. package/dist/node_modules/lucide-react/dist/esm/shared/src/utils.js.map +1 -0
  338. package/dist/node_modules/react-remove-scroll/dist/es2015/Combination.cjs +2 -0
  339. package/dist/node_modules/react-remove-scroll/dist/es2015/Combination.cjs.map +1 -0
  340. package/dist/node_modules/react-remove-scroll/dist/es2015/Combination.js +12 -0
  341. package/dist/node_modules/react-remove-scroll/dist/es2015/Combination.js.map +1 -0
  342. package/dist/node_modules/react-remove-scroll/dist/es2015/SideEffect.cjs +5 -0
  343. package/dist/node_modules/react-remove-scroll/dist/es2015/SideEffect.cjs.map +1 -0
  344. package/dist/node_modules/react-remove-scroll/dist/es2015/SideEffect.js +116 -0
  345. package/dist/node_modules/react-remove-scroll/dist/es2015/SideEffect.js.map +1 -0
  346. package/dist/node_modules/react-remove-scroll/dist/es2015/UI.cjs +2 -0
  347. package/dist/node_modules/react-remove-scroll/dist/es2015/UI.cjs.map +1 -0
  348. package/dist/node_modules/react-remove-scroll/dist/es2015/UI.js +32 -0
  349. package/dist/node_modules/react-remove-scroll/dist/es2015/UI.js.map +1 -0
  350. package/dist/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.cjs +2 -0
  351. package/dist/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.cjs.map +1 -0
  352. package/dist/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js +17 -0
  353. package/dist/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js.map +1 -0
  354. package/dist/node_modules/react-remove-scroll/dist/es2015/handleScroll.cjs +2 -0
  355. package/dist/node_modules/react-remove-scroll/dist/es2015/handleScroll.cjs.map +1 -0
  356. package/dist/node_modules/react-remove-scroll/dist/es2015/handleScroll.js +69 -0
  357. package/dist/node_modules/react-remove-scroll/dist/es2015/handleScroll.js.map +1 -0
  358. package/dist/node_modules/react-remove-scroll/dist/es2015/medium.cjs +2 -0
  359. package/dist/node_modules/react-remove-scroll/dist/es2015/medium.cjs.map +1 -0
  360. package/dist/node_modules/react-remove-scroll/dist/es2015/medium.js +6 -0
  361. package/dist/node_modules/react-remove-scroll/dist/es2015/medium.js.map +1 -0
  362. package/dist/node_modules/react-remove-scroll/dist/es2015/sidecar.cjs +2 -0
  363. package/dist/node_modules/react-remove-scroll/dist/es2015/sidecar.cjs.map +1 -0
  364. package/dist/node_modules/react-remove-scroll/dist/es2015/sidecar.js +8 -0
  365. package/dist/node_modules/react-remove-scroll/dist/es2015/sidecar.js.map +1 -0
  366. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/component.cjs +39 -0
  367. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/component.cjs.map +1 -0
  368. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/component.js +72 -0
  369. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/component.js.map +1 -0
  370. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/constants.cjs +2 -0
  371. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/constants.cjs.map +1 -0
  372. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/constants.js +8 -0
  373. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/constants.js.map +1 -0
  374. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/utils.cjs +2 -0
  375. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/utils.cjs.map +1 -0
  376. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/utils.js +26 -0
  377. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/utils.js.map +1 -0
  378. package/dist/node_modules/react-style-singleton/dist/es2015/component.cjs +2 -0
  379. package/dist/node_modules/react-style-singleton/dist/es2015/component.cjs.map +1 -0
  380. package/dist/node_modules/react-style-singleton/dist/es2015/component.js +12 -0
  381. package/dist/node_modules/react-style-singleton/dist/es2015/component.js.map +1 -0
  382. package/dist/node_modules/react-style-singleton/dist/es2015/hook.cjs +2 -0
  383. package/dist/node_modules/react-style-singleton/dist/es2015/hook.cjs.map +1 -0
  384. package/dist/node_modules/react-style-singleton/dist/es2015/hook.js +16 -0
  385. package/dist/node_modules/react-style-singleton/dist/es2015/hook.js.map +1 -0
  386. package/dist/node_modules/react-style-singleton/dist/es2015/singleton.cjs +2 -0
  387. package/dist/node_modules/react-style-singleton/dist/es2015/singleton.cjs.map +1 -0
  388. package/dist/node_modules/react-style-singleton/dist/es2015/singleton.js +31 -0
  389. package/dist/node_modules/react-style-singleton/dist/es2015/singleton.js.map +1 -0
  390. package/dist/node_modules/tailwind-merge/dist/bundle-mjs.cjs +2 -0
  391. package/dist/node_modules/tailwind-merge/dist/bundle-mjs.cjs.map +1 -0
  392. package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js +2766 -0
  393. package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js.map +1 -0
  394. package/dist/node_modules/tailwindcss/dist/plugin.cjs +2 -0
  395. package/dist/node_modules/tailwindcss/dist/plugin.cjs.map +1 -0
  396. package/dist/node_modules/tailwindcss/dist/plugin.js +14 -0
  397. package/dist/node_modules/tailwindcss/dist/plugin.js.map +1 -0
  398. package/dist/node_modules/tslib/tslib.es6.cjs +2 -0
  399. package/dist/node_modules/tslib/tslib.es6.cjs.map +1 -0
  400. package/dist/node_modules/tslib/tslib.es6.js +28 -0
  401. package/dist/node_modules/tslib/tslib.es6.js.map +1 -0
  402. package/dist/node_modules/use-callback-ref/dist/es2015/assignRef.cjs +2 -0
  403. package/dist/node_modules/use-callback-ref/dist/es2015/assignRef.cjs.map +1 -0
  404. package/dist/node_modules/use-callback-ref/dist/es2015/assignRef.js +7 -0
  405. package/dist/node_modules/use-callback-ref/dist/es2015/assignRef.js.map +1 -0
  406. package/dist/node_modules/use-callback-ref/dist/es2015/useMergeRef.cjs +2 -0
  407. package/dist/node_modules/use-callback-ref/dist/es2015/useMergeRef.cjs.map +1 -0
  408. package/dist/node_modules/use-callback-ref/dist/es2015/useMergeRef.js +27 -0
  409. package/dist/node_modules/use-callback-ref/dist/es2015/useMergeRef.js.map +1 -0
  410. package/dist/node_modules/use-callback-ref/dist/es2015/useRef.cjs +2 -0
  411. package/dist/node_modules/use-callback-ref/dist/es2015/useRef.cjs.map +1 -0
  412. package/dist/node_modules/use-callback-ref/dist/es2015/useRef.js +26 -0
  413. package/dist/node_modules/use-callback-ref/dist/es2015/useRef.js.map +1 -0
  414. package/dist/node_modules/use-sidecar/dist/es2015/exports.cjs +2 -0
  415. package/dist/node_modules/use-sidecar/dist/es2015/exports.cjs.map +1 -0
  416. package/dist/node_modules/use-sidecar/dist/es2015/exports.js +19 -0
  417. package/dist/node_modules/use-sidecar/dist/es2015/exports.js.map +1 -0
  418. package/dist/node_modules/use-sidecar/dist/es2015/medium.cjs +2 -0
  419. package/dist/node_modules/use-sidecar/dist/es2015/medium.cjs.map +1 -0
  420. package/dist/node_modules/use-sidecar/dist/es2015/medium.js +68 -0
  421. package/dist/node_modules/use-sidecar/dist/es2015/medium.js.map +1 -0
  422. package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.cjs +2 -0
  423. package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.cjs.map +1 -0
  424. package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js +59 -0
  425. package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js.map +1 -0
  426. package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.cjs +2 -0
  427. package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.cjs.map +1 -0
  428. package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js +47 -0
  429. package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js.map +1 -0
  430. package/dist/node_modules/use-sync-external-store/shim/index.cjs +2 -0
  431. package/dist/node_modules/use-sync-external-store/shim/index.cjs.map +1 -0
  432. package/dist/node_modules/use-sync-external-store/shim/index.js +11 -0
  433. package/dist/node_modules/use-sync-external-store/shim/index.js.map +1 -0
  434. package/dist/providers/auth/auth.context.cjs +2 -0
  435. package/dist/providers/auth/auth.context.cjs.map +1 -0
  436. package/dist/providers/auth/auth.context.d.ts +3 -0
  437. package/dist/providers/auth/auth.context.d.ts.map +1 -0
  438. package/dist/providers/auth/auth.context.js +6 -0
  439. package/dist/providers/auth/auth.context.js.map +1 -0
  440. package/dist/providers/auth/auth.hook.cjs +2 -0
  441. package/dist/providers/auth/auth.hook.cjs.map +1 -0
  442. package/dist/providers/auth/auth.hook.d.ts +7 -0
  443. package/dist/providers/auth/auth.hook.d.ts.map +1 -0
  444. package/dist/providers/auth/auth.hook.js +12 -0
  445. package/dist/providers/auth/auth.hook.js.map +1 -0
  446. package/dist/providers/auth/auth.provider.cjs +2 -0
  447. package/dist/providers/auth/auth.provider.cjs.map +1 -0
  448. package/dist/providers/auth/auth.provider.d.ts +7 -0
  449. package/dist/providers/auth/auth.provider.d.ts.map +1 -0
  450. package/dist/providers/auth/auth.provider.js +29 -0
  451. package/dist/providers/auth/auth.provider.js.map +1 -0
  452. package/dist/providers/blimu/blimu.context.cjs +2 -0
  453. package/dist/providers/blimu/blimu.context.cjs.map +1 -0
  454. package/dist/providers/blimu/blimu.context.d.ts +27 -0
  455. package/dist/providers/blimu/blimu.context.d.ts.map +1 -0
  456. package/dist/providers/blimu/blimu.context.js +6 -0
  457. package/dist/providers/blimu/blimu.context.js.map +1 -0
  458. package/dist/providers/blimu/blimu.hook.cjs +2 -0
  459. package/dist/providers/blimu/blimu.hook.cjs.map +1 -0
  460. package/dist/providers/blimu/blimu.hook.d.ts +19 -0
  461. package/dist/providers/blimu/blimu.hook.d.ts.map +1 -0
  462. package/dist/providers/blimu/blimu.hook.js +12 -0
  463. package/dist/providers/blimu/blimu.hook.js.map +1 -0
  464. package/dist/providers/blimu/blimu.provider.cjs +2 -0
  465. package/dist/providers/blimu/blimu.provider.cjs.map +1 -0
  466. package/dist/providers/blimu/blimu.provider.d.ts +47 -0
  467. package/dist/providers/blimu/blimu.provider.d.ts.map +1 -0
  468. package/dist/providers/blimu/blimu.provider.js +67 -0
  469. package/dist/providers/blimu/blimu.provider.js.map +1 -0
  470. package/dist/providers/index.d.ts +7 -0
  471. package/dist/providers/index.d.ts.map +1 -0
  472. package/dist/providers/theme/index.d.ts +4 -0
  473. package/dist/providers/theme/index.d.ts.map +1 -0
  474. package/dist/providers/theme/theme.context.cjs +2 -0
  475. package/dist/providers/theme/theme.context.cjs.map +1 -0
  476. package/dist/providers/theme/theme.context.d.ts +8 -0
  477. package/dist/providers/theme/theme.context.d.ts.map +1 -0
  478. package/dist/providers/theme/theme.context.js +6 -0
  479. package/dist/providers/theme/theme.context.js.map +1 -0
  480. package/dist/providers/theme/theme.hook.cjs +2 -0
  481. package/dist/providers/theme/theme.hook.cjs.map +1 -0
  482. package/dist/providers/theme/theme.hook.d.ts +18 -0
  483. package/dist/providers/theme/theme.hook.d.ts.map +1 -0
  484. package/dist/providers/theme/theme.hook.js +12 -0
  485. package/dist/providers/theme/theme.hook.js.map +1 -0
  486. package/dist/providers/theme/theme.provider.cjs +2 -0
  487. package/dist/providers/theme/theme.provider.cjs.map +1 -0
  488. package/dist/providers/theme/theme.provider.d.ts +28 -0
  489. package/dist/providers/theme/theme.provider.d.ts.map +1 -0
  490. package/dist/providers/theme/theme.provider.js +68 -0
  491. package/dist/providers/theme/theme.provider.js.map +1 -0
  492. package/dist/providers.cjs +2 -0
  493. package/dist/providers.cjs.map +1 -0
  494. package/dist/providers.js +13 -0
  495. package/dist/providers.js.map +1 -0
  496. package/dist/styles/styles.css +1351 -0
  497. package/dist/styles/tw-styles.css +120 -0
  498. package/dist/tailwind.plugin.cjs +2 -0
  499. package/dist/tailwind.plugin.cjs.map +1 -0
  500. package/dist/tailwind.plugin.d.ts +19 -0
  501. package/dist/tailwind.plugin.d.ts.map +1 -0
  502. package/dist/tailwind.plugin.js +200 -0
  503. package/dist/tailwind.plugin.js.map +1 -0
  504. package/dist/types/index.cjs +2 -0
  505. package/dist/types/index.cjs.map +1 -0
  506. package/dist/types/index.d.ts +128 -0
  507. package/dist/types/index.d.ts.map +1 -0
  508. package/dist/types/index.js +12 -0
  509. package/dist/types/index.js.map +1 -0
  510. package/dist/utils/publishable-key.cjs +2 -0
  511. package/dist/utils/publishable-key.cjs.map +1 -0
  512. package/dist/utils/publishable-key.d.ts +38 -0
  513. package/dist/utils/publishable-key.d.ts.map +1 -0
  514. package/dist/utils/publishable-key.js +38 -0
  515. package/dist/utils/publishable-key.js.map +1 -0
  516. package/package.json +128 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../../../../../../../../node_modules/@radix-ui/react-avatar/node_modules/@radix-ui/react-slot/dist/index.mjs"],"sourcesContent":["// src/slot.tsx\nimport * as React from \"react\";\nimport { composeRefs } from \"@radix-ui/react-compose-refs\";\nimport { Fragment as Fragment2, jsx } from \"react/jsx-runtime\";\nvar REACT_LAZY_TYPE = Symbol.for(\"react.lazy\");\nvar use = React[\" use \".trim().toString()];\nfunction isPromiseLike(value) {\n return typeof value === \"object\" && value !== null && \"then\" in value;\n}\nfunction isLazyComponent(element) {\n return element != null && typeof element === \"object\" && \"$$typeof\" in element && element.$$typeof === REACT_LAZY_TYPE && \"_payload\" in element && isPromiseLike(element._payload);\n}\n// @__NO_SIDE_EFFECTS__\nfunction createSlot(ownerName) {\n const SlotClone = /* @__PURE__ */ createSlotClone(ownerName);\n const Slot2 = React.forwardRef((props, forwardedRef) => {\n let { children, ...slotProps } = props;\n if (isLazyComponent(children) && typeof use === \"function\") {\n children = use(children._payload);\n }\n const childrenArray = React.Children.toArray(children);\n const slottable = childrenArray.find(isSlottable);\n if (slottable) {\n const newElement = slottable.props.children;\n const newChildren = childrenArray.map((child) => {\n if (child === slottable) {\n if (React.Children.count(newElement) > 1) return React.Children.only(null);\n return React.isValidElement(newElement) ? newElement.props.children : null;\n } else {\n return child;\n }\n });\n return /* @__PURE__ */ jsx(SlotClone, { ...slotProps, ref: forwardedRef, children: React.isValidElement(newElement) ? React.cloneElement(newElement, void 0, newChildren) : null });\n }\n return /* @__PURE__ */ jsx(SlotClone, { ...slotProps, ref: forwardedRef, children });\n });\n Slot2.displayName = `${ownerName}.Slot`;\n return Slot2;\n}\nvar Slot = /* @__PURE__ */ createSlot(\"Slot\");\n// @__NO_SIDE_EFFECTS__\nfunction createSlotClone(ownerName) {\n const SlotClone = React.forwardRef((props, forwardedRef) => {\n let { children, ...slotProps } = props;\n if (isLazyComponent(children) && typeof use === \"function\") {\n children = use(children._payload);\n }\n if (React.isValidElement(children)) {\n const childrenRef = getElementRef(children);\n const props2 = mergeProps(slotProps, children.props);\n if (children.type !== React.Fragment) {\n props2.ref = forwardedRef ? composeRefs(forwardedRef, childrenRef) : childrenRef;\n }\n return React.cloneElement(children, props2);\n }\n return React.Children.count(children) > 1 ? React.Children.only(null) : null;\n });\n SlotClone.displayName = `${ownerName}.SlotClone`;\n return SlotClone;\n}\nvar SLOTTABLE_IDENTIFIER = Symbol(\"radix.slottable\");\n// @__NO_SIDE_EFFECTS__\nfunction createSlottable(ownerName) {\n const Slottable2 = ({ children }) => {\n return /* @__PURE__ */ jsx(Fragment2, { children });\n };\n Slottable2.displayName = `${ownerName}.Slottable`;\n Slottable2.__radixId = SLOTTABLE_IDENTIFIER;\n return Slottable2;\n}\nvar Slottable = /* @__PURE__ */ createSlottable(\"Slottable\");\nfunction isSlottable(child) {\n return React.isValidElement(child) && typeof child.type === \"function\" && \"__radixId\" in child.type && child.type.__radixId === SLOTTABLE_IDENTIFIER;\n}\nfunction mergeProps(slotProps, childProps) {\n const overrideProps = { ...childProps };\n for (const propName in childProps) {\n const slotPropValue = slotProps[propName];\n const childPropValue = childProps[propName];\n const isHandler = /^on[A-Z]/.test(propName);\n if (isHandler) {\n if (slotPropValue && childPropValue) {\n overrideProps[propName] = (...args) => {\n const result = childPropValue(...args);\n slotPropValue(...args);\n return result;\n };\n } else if (slotPropValue) {\n overrideProps[propName] = slotPropValue;\n }\n } else if (propName === \"style\") {\n overrideProps[propName] = { ...slotPropValue, ...childPropValue };\n } else if (propName === \"className\") {\n overrideProps[propName] = [slotPropValue, childPropValue].filter(Boolean).join(\" \");\n }\n }\n return { ...slotProps, ...overrideProps };\n}\nfunction getElementRef(element) {\n let getter = Object.getOwnPropertyDescriptor(element.props, \"ref\")?.get;\n let mayWarn = getter && \"isReactWarning\" in getter && getter.isReactWarning;\n if (mayWarn) {\n return element.ref;\n }\n getter = Object.getOwnPropertyDescriptor(element, \"ref\")?.get;\n mayWarn = getter && \"isReactWarning\" in getter && getter.isReactWarning;\n if (mayWarn) {\n return element.props.ref;\n }\n return element.props.ref || element.ref;\n}\nexport {\n Slot as Root,\n Slot,\n Slottable,\n createSlot,\n createSlottable\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["REACT_LAZY_TYPE","use","React","isPromiseLike","value","isLazyComponent","element","createSlot","ownerName","SlotClone","createSlotClone","Slot2","props","forwardedRef","children","slotProps","childrenArray","slottable","isSlottable","newElement","newChildren","child","jsx","childrenRef","getElementRef","props2","mergeProps","composeRefs","SLOTTABLE_IDENT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nBD,MAAa,UACtBD,EAAcC,CAAQ,IAAI,EAAE,GAAGC,GAAe,GAAGC,EAAc,IACtDF,MAAa,gBACtBD,EAAcC,CAAQ,IAAI,CAACC,GAAeC,CAAc,EAAE,OAAO,OAAO,EAAE,KAAK,GAAG;AAAA,EAEtF;AACA,SAAO,EAAE,GAAGlB,GAAW,GAAGe,EAAa;AACzC;AACA,SAASN,EAAclB,GAAS;AAC9B,MAAI8B,IAAS,OAAO,yBAAyB9B,EAAQ,OAAO,KAAK,GAAG,KAChE+B,IAAUD,KAAU,oBAAoBA,KAAUA,EAAO;AAC7D,SAAIC,IACK/B,EAAQ,OAEjB8B,IAAS,OAAO,yBAAyB9B,GAAS,KAAK,GAAG,KAC1D+B,IAAUD,KAAU,oBAAoBA,KAAUA,EAAO,gBACrDC,IACK/B,EAAQ,MAAM,MAEhBA,EAAQ,MAAM,OAAOA,EAAQ;AACtC;","x_google_ignoreList":[0]}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react"),_=require("../../react-context/dist/index.cjs"),I=require("../../react-compose-refs/dist/index.cjs"),M=require("../../react-slot/dist/index.cjs"),m=require("react/jsx-runtime");function q(s){const u=s+"CollectionProvider",[A,N]=_.createContextScope(u),[T,d]=A(u,{collectionRef:{current:null},itemMap:new Map}),C=c=>{const{scope:e,children:l}=c,t=r.useRef(null),o=r.useRef(new Map).current;return m.jsx(T,{scope:e,itemMap:o,collectionRef:t,children:l})};C.displayName=u;const a=s+"CollectionSlot",y=M.createSlot(a),p=r.forwardRef((c,e)=>{const{scope:l,children:t}=c,o=d(a,l),n=I.useComposedRefs(e,o.collectionRef);return m.jsx(y,{ref:n,children:t})});p.displayName=a;const f=s+"CollectionItemSlot",R="data-radix-collection-item",E=M.createSlot(f),S=r.forwardRef((c,e)=>{const{scope:l,children:t,...o}=c,n=r.useRef(null),x=I.useComposedRefs(e,n),i=d(f,l);return r.useEffect(()=>(i.itemMap.set(n,{ref:n,...o}),()=>{i.itemMap.delete(n)})),m.jsx(E,{[R]:"",ref:x,children:t})});S.displayName=f;function O(c){const e=d(s+"CollectionConsumer",c);return r.useCallback(()=>{const t=e.collectionRef.current;if(!t)return[];const o=Array.from(t.querySelectorAll(`[${R}]`));return Array.from(e.itemMap.values()).sort((i,v)=>o.indexOf(i.ref.current)-o.indexOf(v.ref.current))},[e.collectionRef,e.itemMap])}return[{Provider:C,Slot:p,ItemSlot:S},O,N]}exports.createCollection=q;
2
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs","sources":["../../../../../../../node_modules/@radix-ui/react-collection/dist/index.mjs"],"sourcesContent":["\"use client\";\n\n// src/collection-legacy.tsx\nimport React from \"react\";\nimport { createContextScope } from \"@radix-ui/react-context\";\nimport { useComposedRefs } from \"@radix-ui/react-compose-refs\";\nimport { createSlot } from \"@radix-ui/react-slot\";\nimport { jsx } from \"react/jsx-runtime\";\nfunction createCollection(name) {\n const PROVIDER_NAME = name + \"CollectionProvider\";\n const [createCollectionContext, createCollectionScope] = createContextScope(PROVIDER_NAME);\n const [CollectionProviderImpl, useCollectionContext] = createCollectionContext(\n PROVIDER_NAME,\n { collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }\n );\n const CollectionProvider = (props) => {\n const { scope, children } = props;\n const ref = React.useRef(null);\n const itemMap = React.useRef(/* @__PURE__ */ new Map()).current;\n return /* @__PURE__ */ jsx(CollectionProviderImpl, { scope, itemMap, collectionRef: ref, children });\n };\n CollectionProvider.displayName = PROVIDER_NAME;\n const COLLECTION_SLOT_NAME = name + \"CollectionSlot\";\n const CollectionSlotImpl = createSlot(COLLECTION_SLOT_NAME);\n const CollectionSlot = React.forwardRef(\n (props, forwardedRef) => {\n const { scope, children } = props;\n const context = useCollectionContext(COLLECTION_SLOT_NAME, scope);\n const composedRefs = useComposedRefs(forwardedRef, context.collectionRef);\n return /* @__PURE__ */ jsx(CollectionSlotImpl, { ref: composedRefs, children });\n }\n );\n CollectionSlot.displayName = COLLECTION_SLOT_NAME;\n const ITEM_SLOT_NAME = name + \"CollectionItemSlot\";\n const ITEM_DATA_ATTR = \"data-radix-collection-item\";\n const CollectionItemSlotImpl = createSlot(ITEM_SLOT_NAME);\n const CollectionItemSlot = React.forwardRef(\n (props, forwardedRef) => {\n const { scope, children, ...itemData } = props;\n const ref = React.useRef(null);\n const composedRefs = useComposedRefs(forwardedRef, ref);\n const context = useCollectionContext(ITEM_SLOT_NAME, scope);\n React.useEffect(() => {\n context.itemMap.set(ref, { ref, ...itemData });\n return () => void context.itemMap.delete(ref);\n });\n return /* @__PURE__ */ jsx(CollectionItemSlotImpl, { ...{ [ITEM_DATA_ATTR]: \"\" }, ref: composedRefs, children });\n }\n );\n CollectionItemSlot.displayName = ITEM_SLOT_NAME;\n function useCollection(scope) {\n const context = useCollectionContext(name + \"CollectionConsumer\", scope);\n const getItems = React.useCallback(() => {\n const collectionNode = context.collectionRef.current;\n if (!collectionNode) return [];\n const orderedNodes = Array.from(collectionNode.querySelectorAll(`[${ITEM_DATA_ATTR}]`));\n const items = Array.from(context.itemMap.values());\n const orderedItems = items.sort(\n (a, b) => orderedNodes.indexOf(a.ref.current) - orderedNodes.indexOf(b.ref.current)\n );\n return orderedItems;\n }, [context.collectionRef, context.itemMap]);\n return getItems;\n }\n return [\n { Provider: CollectionProvider, Slot: CollectionSlot, ItemSlot: CollectionItemSlot },\n useCollection,\n createCollectionScope\n ];\n}\n\n// src/collection.tsx\nimport React2 from \"react\";\nimport { createContextScope as createContextScope2 } from \"@radix-ui/react-context\";\nimport { useComposedRefs as useComposedRefs2 } from \"@radix-ui/react-compose-refs\";\nimport { createSlot as createSlot2 } from \"@radix-ui/react-slot\";\n\n// src/ordered-dictionary.ts\nvar __instanciated = /* @__PURE__ */ new WeakMap();\nvar OrderedDict = class _OrderedDict extends Map {\n #keys;\n constructor(entries) {\n super(entries);\n this.#keys = [...super.keys()];\n __instanciated.set(this, true);\n }\n set(key, value) {\n if (__instanciated.get(this)) {\n if (this.has(key)) {\n this.#keys[this.#keys.indexOf(key)] = key;\n } else {\n this.#keys.push(key);\n }\n }\n super.set(key, value);\n return this;\n }\n insert(index, key, value) {\n const has = this.has(key);\n const length = this.#keys.length;\n const relativeIndex = toSafeInteger(index);\n let actualIndex = relativeIndex >= 0 ? relativeIndex : length + relativeIndex;\n const safeIndex = actualIndex < 0 || actualIndex >= length ? -1 : actualIndex;\n if (safeIndex === this.size || has && safeIndex === this.size - 1 || safeIndex === -1) {\n this.set(key, value);\n return this;\n }\n const size = this.size + (has ? 0 : 1);\n if (relativeIndex < 0) {\n actualIndex++;\n }\n const keys = [...this.#keys];\n let nextValue;\n let shouldSkip = false;\n for (let i = actualIndex; i < size; i++) {\n if (actualIndex === i) {\n let nextKey = keys[i];\n if (keys[i] === key) {\n nextKey = keys[i + 1];\n }\n if (has) {\n this.delete(key);\n }\n nextValue = this.get(nextKey);\n this.set(key, value);\n } else {\n if (!shouldSkip && keys[i - 1] === key) {\n shouldSkip = true;\n }\n const currentKey = keys[shouldSkip ? i : i - 1];\n const currentValue = nextValue;\n nextValue = this.get(currentKey);\n this.delete(currentKey);\n this.set(currentKey, currentValue);\n }\n }\n return this;\n }\n with(index, key, value) {\n const copy = new _OrderedDict(this);\n copy.insert(index, key, value);\n return copy;\n }\n before(key) {\n const index = this.#keys.indexOf(key) - 1;\n if (index < 0) {\n return void 0;\n }\n return this.entryAt(index);\n }\n /**\n * Sets a new key-value pair at the position before the given key.\n */\n setBefore(key, newKey, value) {\n const index = this.#keys.indexOf(key);\n if (index === -1) {\n return this;\n }\n return this.insert(index, newKey, value);\n }\n after(key) {\n let index = this.#keys.indexOf(key);\n index = index === -1 || index === this.size - 1 ? -1 : index + 1;\n if (index === -1) {\n return void 0;\n }\n return this.entryAt(index);\n }\n /**\n * Sets a new key-value pair at the position after the given key.\n */\n setAfter(key, newKey, value) {\n const index = this.#keys.indexOf(key);\n if (index === -1) {\n return this;\n }\n return this.insert(index + 1, newKey, value);\n }\n first() {\n return this.entryAt(0);\n }\n last() {\n return this.entryAt(-1);\n }\n clear() {\n this.#keys = [];\n return super.clear();\n }\n delete(key) {\n const deleted = super.delete(key);\n if (deleted) {\n this.#keys.splice(this.#keys.indexOf(key), 1);\n }\n return deleted;\n }\n deleteAt(index) {\n const key = this.keyAt(index);\n if (key !== void 0) {\n return this.delete(key);\n }\n return false;\n }\n at(index) {\n const key = at(this.#keys, index);\n if (key !== void 0) {\n return this.get(key);\n }\n }\n entryAt(index) {\n const key = at(this.#keys, index);\n if (key !== void 0) {\n return [key, this.get(key)];\n }\n }\n indexOf(key) {\n return this.#keys.indexOf(key);\n }\n keyAt(index) {\n return at(this.#keys, index);\n }\n from(key, offset) {\n const index = this.indexOf(key);\n if (index === -1) {\n return void 0;\n }\n let dest = index + offset;\n if (dest < 0) dest = 0;\n if (dest >= this.size) dest = this.size - 1;\n return this.at(dest);\n }\n keyFrom(key, offset) {\n const index = this.indexOf(key);\n if (index === -1) {\n return void 0;\n }\n let dest = index + offset;\n if (dest < 0) dest = 0;\n if (dest >= this.size) dest = this.size - 1;\n return this.keyAt(dest);\n }\n find(predicate, thisArg) {\n let index = 0;\n for (const entry of this) {\n if (Reflect.apply(predicate, thisArg, [entry, index, this])) {\n return entry;\n }\n index++;\n }\n return void 0;\n }\n findIndex(predicate, thisArg) {\n let index = 0;\n for (const entry of this) {\n if (Reflect.apply(predicate, thisArg, [entry, index, this])) {\n return index;\n }\n index++;\n }\n return -1;\n }\n filter(predicate, thisArg) {\n const entries = [];\n let index = 0;\n for (const entry of this) {\n if (Reflect.apply(predicate, thisArg, [entry, index, this])) {\n entries.push(entry);\n }\n index++;\n }\n return new _OrderedDict(entries);\n }\n map(callbackfn, thisArg) {\n const entries = [];\n let index = 0;\n for (const entry of this) {\n entries.push([entry[0], Reflect.apply(callbackfn, thisArg, [entry, index, this])]);\n index++;\n }\n return new _OrderedDict(entries);\n }\n reduce(...args) {\n const [callbackfn, initialValue] = args;\n let index = 0;\n let accumulator = initialValue ?? this.at(0);\n for (const entry of this) {\n if (index === 0 && args.length === 1) {\n accumulator = entry;\n } else {\n accumulator = Reflect.apply(callbackfn, this, [accumulator, entry, index, this]);\n }\n index++;\n }\n return accumulator;\n }\n reduceRight(...args) {\n const [callbackfn, initialValue] = args;\n let accumulator = initialValue ?? this.at(-1);\n for (let index = this.size - 1; index >= 0; index--) {\n const entry = this.at(index);\n if (index === this.size - 1 && args.length === 1) {\n accumulator = entry;\n } else {\n accumulator = Reflect.apply(callbackfn, this, [accumulator, entry, index, this]);\n }\n }\n return accumulator;\n }\n toSorted(compareFn) {\n const entries = [...this.entries()].sort(compareFn);\n return new _OrderedDict(entries);\n }\n toReversed() {\n const reversed = new _OrderedDict();\n for (let index = this.size - 1; index >= 0; index--) {\n const key = this.keyAt(index);\n const element = this.get(key);\n reversed.set(key, element);\n }\n return reversed;\n }\n toSpliced(...args) {\n const entries = [...this.entries()];\n entries.splice(...args);\n return new _OrderedDict(entries);\n }\n slice(start, end) {\n const result = new _OrderedDict();\n let stop = this.size - 1;\n if (start === void 0) {\n return result;\n }\n if (start < 0) {\n start = start + this.size;\n }\n if (end !== void 0 && end > 0) {\n stop = end - 1;\n }\n for (let index = start; index <= stop; index++) {\n const key = this.keyAt(index);\n const element = this.get(key);\n result.set(key, element);\n }\n return result;\n }\n every(predicate, thisArg) {\n let index = 0;\n for (const entry of this) {\n if (!Reflect.apply(predicate, thisArg, [entry, index, this])) {\n return false;\n }\n index++;\n }\n return true;\n }\n some(predicate, thisArg) {\n let index = 0;\n for (const entry of this) {\n if (Reflect.apply(predicate, thisArg, [entry, index, this])) {\n return true;\n }\n index++;\n }\n return false;\n }\n};\nfunction at(array, index) {\n if (\"at\" in Array.prototype) {\n return Array.prototype.at.call(array, index);\n }\n const actualIndex = toSafeIndex(array, index);\n return actualIndex === -1 ? void 0 : array[actualIndex];\n}\nfunction toSafeIndex(array, index) {\n const length = array.length;\n const relativeIndex = toSafeInteger(index);\n const actualIndex = relativeIndex >= 0 ? relativeIndex : length + relativeIndex;\n return actualIndex < 0 || actualIndex >= length ? -1 : actualIndex;\n}\nfunction toSafeInteger(number) {\n return number !== number || number === 0 ? 0 : Math.trunc(number);\n}\n\n// src/collection.tsx\nimport { jsx as jsx2 } from \"react/jsx-runtime\";\nfunction createCollection2(name) {\n const PROVIDER_NAME = name + \"CollectionProvider\";\n const [createCollectionContext, createCollectionScope] = createContextScope2(PROVIDER_NAME);\n const [CollectionContextProvider, useCollectionContext] = createCollectionContext(\n PROVIDER_NAME,\n {\n collectionElement: null,\n collectionRef: { current: null },\n collectionRefObject: { current: null },\n itemMap: new OrderedDict(),\n setItemMap: () => void 0\n }\n );\n const CollectionProvider = ({ state, ...props }) => {\n return state ? /* @__PURE__ */ jsx2(CollectionProviderImpl, { ...props, state }) : /* @__PURE__ */ jsx2(CollectionInit, { ...props });\n };\n CollectionProvider.displayName = PROVIDER_NAME;\n const CollectionInit = (props) => {\n const state = useInitCollection();\n return /* @__PURE__ */ jsx2(CollectionProviderImpl, { ...props, state });\n };\n CollectionInit.displayName = PROVIDER_NAME + \"Init\";\n const CollectionProviderImpl = (props) => {\n const { scope, children, state } = props;\n const ref = React2.useRef(null);\n const [collectionElement, setCollectionElement] = React2.useState(\n null\n );\n const composeRefs = useComposedRefs2(ref, setCollectionElement);\n const [itemMap, setItemMap] = state;\n React2.useEffect(() => {\n if (!collectionElement) return;\n const observer = getChildListObserver(() => {\n });\n observer.observe(collectionElement, {\n childList: true,\n subtree: true\n });\n return () => {\n observer.disconnect();\n };\n }, [collectionElement]);\n return /* @__PURE__ */ jsx2(\n CollectionContextProvider,\n {\n scope,\n itemMap,\n setItemMap,\n collectionRef: composeRefs,\n collectionRefObject: ref,\n collectionElement,\n children\n }\n );\n };\n CollectionProviderImpl.displayName = PROVIDER_NAME + \"Impl\";\n const COLLECTION_SLOT_NAME = name + \"CollectionSlot\";\n const CollectionSlotImpl = createSlot2(COLLECTION_SLOT_NAME);\n const CollectionSlot = React2.forwardRef(\n (props, forwardedRef) => {\n const { scope, children } = props;\n const context = useCollectionContext(COLLECTION_SLOT_NAME, scope);\n const composedRefs = useComposedRefs2(forwardedRef, context.collectionRef);\n return /* @__PURE__ */ jsx2(CollectionSlotImpl, { ref: composedRefs, children });\n }\n );\n CollectionSlot.displayName = COLLECTION_SLOT_NAME;\n const ITEM_SLOT_NAME = name + \"CollectionItemSlot\";\n const ITEM_DATA_ATTR = \"data-radix-collection-item\";\n const CollectionItemSlotImpl = createSlot2(ITEM_SLOT_NAME);\n const CollectionItemSlot = React2.forwardRef(\n (props, forwardedRef) => {\n const { scope, children, ...itemData } = props;\n const ref = React2.useRef(null);\n const [element, setElement] = React2.useState(null);\n const composedRefs = useComposedRefs2(forwardedRef, ref, setElement);\n const context = useCollectionContext(ITEM_SLOT_NAME, scope);\n const { setItemMap } = context;\n const itemDataRef = React2.useRef(itemData);\n if (!shallowEqual(itemDataRef.current, itemData)) {\n itemDataRef.current = itemData;\n }\n const memoizedItemData = itemDataRef.current;\n React2.useEffect(() => {\n const itemData2 = memoizedItemData;\n setItemMap((map) => {\n if (!element) {\n return map;\n }\n if (!map.has(element)) {\n map.set(element, { ...itemData2, element });\n return map.toSorted(sortByDocumentPosition);\n }\n return map.set(element, { ...itemData2, element }).toSorted(sortByDocumentPosition);\n });\n return () => {\n setItemMap((map) => {\n if (!element || !map.has(element)) {\n return map;\n }\n map.delete(element);\n return new OrderedDict(map);\n });\n };\n }, [element, memoizedItemData, setItemMap]);\n return /* @__PURE__ */ jsx2(CollectionItemSlotImpl, { ...{ [ITEM_DATA_ATTR]: \"\" }, ref: composedRefs, children });\n }\n );\n CollectionItemSlot.displayName = ITEM_SLOT_NAME;\n function useInitCollection() {\n return React2.useState(new OrderedDict());\n }\n function useCollection(scope) {\n const { itemMap } = useCollectionContext(name + \"CollectionConsumer\", scope);\n return itemMap;\n }\n const functions = {\n createCollectionScope,\n useCollection,\n useInitCollection\n };\n return [\n { Provider: CollectionProvider, Slot: CollectionSlot, ItemSlot: CollectionItemSlot },\n functions\n ];\n}\nfunction shallowEqual(a, b) {\n if (a === b) return true;\n if (typeof a !== \"object\" || typeof b !== \"object\") return false;\n if (a == null || b == null) return false;\n const keysA = Object.keys(a);\n const keysB = Object.keys(b);\n if (keysA.length !== keysB.length) return false;\n for (const key of keysA) {\n if (!Object.prototype.hasOwnProperty.call(b, key)) return false;\n if (a[key] !== b[key]) return false;\n }\n return true;\n}\nfunction isElementPreceding(a, b) {\n return !!(b.compareDocumentPosition(a) & Node.DOCUMENT_POSITION_PRECEDING);\n}\nfunction sortByDocumentPosition(a, b) {\n return !a[1].element || !b[1].element ? 0 : isElementPreceding(a[1].element, b[1].element) ? -1 : 1;\n}\nfunction getChildListObserver(callback) {\n const observer = new MutationObserver((mutationsList) => {\n for (const mutation of mutationsList) {\n if (mutation.type === \"childList\") {\n callback();\n return;\n }\n }\n });\n return observer;\n}\nexport {\n createCollection,\n createCollection2 as unstable_createCollection\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["createCollection","name","PROVIDER_NAME","createCollectionContext","createCollectionScope","createContextScope","CollectionProviderImpl","useCollectionContext","CollectionProvider","props","scope","children","ref","React","itemMap","jsx","COLLECTION_SLOT_NAME","CollectionSlotImpl","createSlot","CollectionSlot","forwardedRef","context","composedRefs","useComposedRefs","ITEM_SLOT_NAME","ITEM_DATA_ATTR","CollectionItemSlotImpl","CollectionItemSlot","itemData","useCollection","collectionNode","orderedNodes","a","b"],"mappings":"0RAQA,SAASA,EAAiBC,EAAM,CAC9B,MAAMC,EAAgBD,EAAO,qBACvB,CAACE,EAAyBC,CAAqB,EAAIC,EAAAA,mBAAmBH,CAAa,EACnF,CAACI,EAAwBC,CAAoB,EAAIJ,EACrDD,EACA,CAAE,cAAe,CAAE,QAAS,IAAI,EAAI,QAAyB,IAAI,GAAK,CAC1E,EACQM,EAAsBC,GAAU,CACpC,KAAM,CAAE,MAAAC,EAAO,SAAAC,CAAQ,EAAKF,EACtBG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AViBG,EAAM,YAAY,IAAM,CACvC,MAAMiB,EAAiBT,EAAQ,cAAc,QAC7C,GAAI,CAACS,EAAgB,MAAO,CAAA,EAC5B,MAAMC,EAAe,MAAM,KAAKD,EAAe,iBAAiB,IAAIL,CAAc,GAAG,CAAC,EAKtF,OAJc,MAAM,KAAKJ,EAAQ,QAAQ,QAAQ,EACtB,KACzB,CAACW,EAAGC,IAAMF,EAAa,QAAQC,EAAE,IAAI,OAAO,EAAID,EAAa,QAAQE,EAAE,IAAI,OAAO,CAC1F,CAEI,EAAG,CAACZ,EAAQ,cAAeA,EAAQ,OAAO,CAAC,CAE7C,CACA,MAAO,CACL,CAAE,SAAUb,EAAoB,KAAMW,EAAgB,SAAUQ,CAAkB,EAClFE,EACAzB,CACJ,CACA","x_google_ignoreList":[0]}
@@ -0,0 +1,51 @@
1
+ import r from "react";
2
+ import { createContextScope as y } from "../../react-context/dist/index.js";
3
+ import { useComposedRefs as M } from "../../react-compose-refs/dist/index.js";
4
+ import { createSlot as x } from "../../react-slot/dist/index.js";
5
+ import { jsx as u } from "react/jsx-runtime";
6
+ function g(s) {
7
+ const m = s + "CollectionProvider", [A, N] = y(m), [_, f] = A(
8
+ m,
9
+ { collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }
10
+ ), p = (c) => {
11
+ const { scope: e, children: l } = c, o = r.useRef(null), t = r.useRef(/* @__PURE__ */ new Map()).current;
12
+ return /* @__PURE__ */ u(_, { scope: e, itemMap: t, collectionRef: o, children: l });
13
+ };
14
+ p.displayName = m;
15
+ const a = s + "CollectionSlot", E = x(a), C = r.forwardRef(
16
+ (c, e) => {
17
+ const { scope: l, children: o } = c, t = f(a, l), n = M(e, t.collectionRef);
18
+ return /* @__PURE__ */ u(E, { ref: n, children: o });
19
+ }
20
+ );
21
+ C.displayName = a;
22
+ const d = s + "CollectionItemSlot", R = "data-radix-collection-item", T = x(d), I = r.forwardRef(
23
+ (c, e) => {
24
+ const { scope: l, children: o, ...t } = c, n = r.useRef(null), S = M(e, n), i = f(d, l);
25
+ return r.useEffect(() => (i.itemMap.set(n, { ref: n, ...t }), () => {
26
+ i.itemMap.delete(n);
27
+ })), /* @__PURE__ */ u(T, { [R]: "", ref: S, children: o });
28
+ }
29
+ );
30
+ I.displayName = d;
31
+ function O(c) {
32
+ const e = f(s + "CollectionConsumer", c);
33
+ return r.useCallback(() => {
34
+ const o = e.collectionRef.current;
35
+ if (!o) return [];
36
+ const t = Array.from(o.querySelectorAll(`[${R}]`));
37
+ return Array.from(e.itemMap.values()).sort(
38
+ (i, v) => t.indexOf(i.ref.current) - t.indexOf(v.ref.current)
39
+ );
40
+ }, [e.collectionRef, e.itemMap]);
41
+ }
42
+ return [
43
+ { Provider: p, Slot: C, ItemSlot: I },
44
+ O,
45
+ N
46
+ ];
47
+ }
48
+ export {
49
+ g as createCollection
50
+ };
51
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../../../../../node_modules/@radix-ui/react-collection/dist/index.mjs"],"sourcesContent":["\"use client\";\n\n// src/collection-legacy.tsx\nimport React from \"react\";\nimport { createContextScope } from \"@radix-ui/react-context\";\nimport { useComposedRefs } from \"@radix-ui/react-compose-refs\";\nimport { createSlot } from \"@radix-ui/react-slot\";\nimport { jsx } from \"react/jsx-runtime\";\nfunction createCollection(name) {\n const PROVIDER_NAME = name + \"CollectionProvider\";\n const [createCollectionContext, createCollectionScope] = createContextScope(PROVIDER_NAME);\n const [CollectionProviderImpl, useCollectionContext] = createCollectionContext(\n PROVIDER_NAME,\n { collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }\n );\n const CollectionProvider = (props) => {\n const { scope, children } = props;\n const ref = React.useRef(null);\n const itemMap = React.useRef(/* @__PURE__ */ new Map()).current;\n return /* @__PURE__ */ jsx(CollectionProviderImpl, { scope, itemMap, collectionRef: ref, children });\n };\n CollectionProvider.displayName = PROVIDER_NAME;\n const COLLECTION_SLOT_NAME = name + \"CollectionSlot\";\n const CollectionSlotImpl = createSlot(COLLECTION_SLOT_NAME);\n const CollectionSlot = React.forwardRef(\n (props, forwardedRef) => {\n const { scope, children } = props;\n const context = useCollectionContext(COLLECTION_SLOT_NAME, scope);\n const composedRefs = useComposedRefs(forwardedRef, context.collectionRef);\n return /* @__PURE__ */ jsx(CollectionSlotImpl, { ref: composedRefs, children });\n }\n );\n CollectionSlot.displayName = COLLECTION_SLOT_NAME;\n const ITEM_SLOT_NAME = name + \"CollectionItemSlot\";\n const ITEM_DATA_ATTR = \"data-radix-collection-item\";\n const CollectionItemSlotImpl = createSlot(ITEM_SLOT_NAME);\n const CollectionItemSlot = React.forwardRef(\n (props, forwardedRef) => {\n const { scope, children, ...itemData } = props;\n const ref = React.useRef(null);\n const composedRefs = useComposedRefs(forwardedRef, ref);\n const context = useCollectionContext(ITEM_SLOT_NAME, scope);\n React.useEffect(() => {\n context.itemMap.set(ref, { ref, ...itemData });\n return () => void context.itemMap.delete(ref);\n });\n return /* @__PURE__ */ jsx(CollectionItemSlotImpl, { ...{ [ITEM_DATA_ATTR]: \"\" }, ref: composedRefs, children });\n }\n );\n CollectionItemSlot.displayName = ITEM_SLOT_NAME;\n function useCollection(scope) {\n const context = useCollectionContext(name + \"CollectionConsumer\", scope);\n const getItems = React.useCallback(() => {\n const collectionNode = context.collectionRef.current;\n if (!collectionNode) return [];\n const orderedNodes = Array.from(collectionNode.querySelectorAll(`[${ITEM_DATA_ATTR}]`));\n const items = Array.from(context.itemMap.values());\n const orderedItems = items.sort(\n (a, b) => orderedNodes.indexOf(a.ref.current) - orderedNodes.indexOf(b.ref.current)\n );\n return orderedItems;\n }, [context.collectionRef, context.itemMap]);\n return getItems;\n }\n return [\n { Provider: CollectionProvider, Slot: CollectionSlot, ItemSlot: CollectionItemSlot },\n useCollection,\n createCollectionScope\n ];\n}\n\n// src/collection.tsx\nimport React2 from \"react\";\nimport { createContextScope as createContextScope2 } from \"@radix-ui/react-context\";\nimport { useComposedRefs as useComposedRefs2 } from \"@radix-ui/react-compose-refs\";\nimport { createSlot as createSlot2 } from \"@radix-ui/react-slot\";\n\n// src/ordered-dictionary.ts\nvar __instanciated = /* @__PURE__ */ new WeakMap();\nvar OrderedDict = class _OrderedDict extends Map {\n #keys;\n constructor(entries) {\n super(entries);\n this.#keys = [...super.keys()];\n __instanciated.set(this, true);\n }\n set(key, value) {\n if (__instanciated.get(this)) {\n if (this.has(key)) {\n this.#keys[this.#keys.indexOf(key)] = key;\n } else {\n this.#keys.push(key);\n }\n }\n super.set(key, value);\n return this;\n }\n insert(index, key, value) {\n const has = this.has(key);\n const length = this.#keys.length;\n const relativeIndex = toSafeInteger(index);\n let actualIndex = relativeIndex >= 0 ? relativeIndex : length + relativeIndex;\n const safeIndex = actualIndex < 0 || actualIndex >= length ? -1 : actualIndex;\n if (safeIndex === this.size || has && safeIndex === this.size - 1 || safeIndex === -1) {\n this.set(key, value);\n return this;\n }\n const size = this.size + (has ? 0 : 1);\n if (relativeIndex < 0) {\n actualIndex++;\n }\n const keys = [...this.#keys];\n let nextValue;\n let shouldSkip = false;\n for (let i = actualIndex; i < size; i++) {\n if (actualIndex === i) {\n let nextKey = keys[i];\n if (keys[i] === key) {\n nextKey = keys[i + 1];\n }\n if (has) {\n this.delete(key);\n }\n nextValue = this.get(nextKey);\n this.set(key, value);\n } else {\n if (!shouldSkip && keys[i - 1] === key) {\n shouldSkip = true;\n }\n const currentKey = keys[shouldSkip ? i : i - 1];\n const currentValue = nextValue;\n nextValue = this.get(currentKey);\n this.delete(currentKey);\n this.set(currentKey, currentValue);\n }\n }\n return this;\n }\n with(index, key, value) {\n const copy = new _OrderedDict(this);\n copy.insert(index, key, value);\n return copy;\n }\n before(key) {\n const index = this.#keys.indexOf(key) - 1;\n if (index < 0) {\n return void 0;\n }\n return this.entryAt(index);\n }\n /**\n * Sets a new key-value pair at the position before the given key.\n */\n setBefore(key, newKey, value) {\n const index = this.#keys.indexOf(key);\n if (index === -1) {\n return this;\n }\n return this.insert(index, newKey, value);\n }\n after(key) {\n let index = this.#keys.indexOf(key);\n index = index === -1 || index === this.size - 1 ? -1 : index + 1;\n if (index === -1) {\n return void 0;\n }\n return this.entryAt(index);\n }\n /**\n * Sets a new key-value pair at the position after the given key.\n */\n setAfter(key, newKey, value) {\n const index = this.#keys.indexOf(key);\n if (index === -1) {\n return this;\n }\n return this.insert(index + 1, newKey, value);\n }\n first() {\n return this.entryAt(0);\n }\n last() {\n return this.entryAt(-1);\n }\n clear() {\n this.#keys = [];\n return super.clear();\n }\n delete(key) {\n const deleted = super.delete(key);\n if (deleted) {\n this.#keys.splice(this.#keys.indexOf(key), 1);\n }\n return deleted;\n }\n deleteAt(index) {\n const key = this.keyAt(index);\n if (key !== void 0) {\n return this.delete(key);\n }\n return false;\n }\n at(index) {\n const key = at(this.#keys, index);\n if (key !== void 0) {\n return this.get(key);\n }\n }\n entryAt(index) {\n const key = at(this.#keys, index);\n if (key !== void 0) {\n return [key, this.get(key)];\n }\n }\n indexOf(key) {\n return this.#keys.indexOf(key);\n }\n keyAt(index) {\n return at(this.#keys, index);\n }\n from(key, offset) {\n const index = this.indexOf(key);\n if (index === -1) {\n return void 0;\n }\n let dest = index + offset;\n if (dest < 0) dest = 0;\n if (dest >= this.size) dest = this.size - 1;\n return this.at(dest);\n }\n keyFrom(key, offset) {\n const index = this.indexOf(key);\n if (index === -1) {\n return void 0;\n }\n let dest = index + offset;\n if (dest < 0) dest = 0;\n if (dest >= this.size) dest = this.size - 1;\n return this.keyAt(dest);\n }\n find(predicate, thisArg) {\n let index = 0;\n for (const entry of this) {\n if (Reflect.apply(predicate, thisArg, [entry, index, this])) {\n return entry;\n }\n index++;\n }\n return void 0;\n }\n findIndex(predicate, thisArg) {\n let index = 0;\n for (const entry of this) {\n if (Reflect.apply(predicate, thisArg, [entry, index, this])) {\n return index;\n }\n index++;\n }\n return -1;\n }\n filter(predicate, thisArg) {\n const entries = [];\n let index = 0;\n for (const entry of this) {\n if (Reflect.apply(predicate, thisArg, [entry, index, this])) {\n entries.push(entry);\n }\n index++;\n }\n return new _OrderedDict(entries);\n }\n map(callbackfn, thisArg) {\n const entries = [];\n let index = 0;\n for (const entry of this) {\n entries.push([entry[0], Reflect.apply(callbackfn, thisArg, [entry, index, this])]);\n index++;\n }\n return new _OrderedDict(entries);\n }\n reduce(...args) {\n const [callbackfn, initialValue] = args;\n let index = 0;\n let accumulator = initialValue ?? this.at(0);\n for (const entry of this) {\n if (index === 0 && args.length === 1) {\n accumulator = entry;\n } else {\n accumulator = Reflect.apply(callbackfn, this, [accumulator, entry, index, this]);\n }\n index++;\n }\n return accumulator;\n }\n reduceRight(...args) {\n const [callbackfn, initialValue] = args;\n let accumulator = initialValue ?? this.at(-1);\n for (let index = this.size - 1; index >= 0; index--) {\n const entry = this.at(index);\n if (index === this.size - 1 && args.length === 1) {\n accumulator = entry;\n } else {\n accumulator = Reflect.apply(callbackfn, this, [accumulator, entry, index, this]);\n }\n }\n return accumulator;\n }\n toSorted(compareFn) {\n const entries = [...this.entries()].sort(compareFn);\n return new _OrderedDict(entries);\n }\n toReversed() {\n const reversed = new _OrderedDict();\n for (let index = this.size - 1; index >= 0; index--) {\n const key = this.keyAt(index);\n const element = this.get(key);\n reversed.set(key, element);\n }\n return reversed;\n }\n toSpliced(...args) {\n const entries = [...this.entries()];\n entries.splice(...args);\n return new _OrderedDict(entries);\n }\n slice(start, end) {\n const result = new _OrderedDict();\n let stop = this.size - 1;\n if (start === void 0) {\n return result;\n }\n if (start < 0) {\n start = start + this.size;\n }\n if (end !== void 0 && end > 0) {\n stop = end - 1;\n }\n for (let index = start; index <= stop; index++) {\n const key = this.keyAt(index);\n const element = this.get(key);\n result.set(key, element);\n }\n return result;\n }\n every(predicate, thisArg) {\n let index = 0;\n for (const entry of this) {\n if (!Reflect.apply(predicate, thisArg, [entry, index, this])) {\n return false;\n }\n index++;\n }\n return true;\n }\n some(predicate, thisArg) {\n let index = 0;\n for (const entry of this) {\n if (Reflect.apply(predicate, thisArg, [entry, index, this])) {\n return true;\n }\n index++;\n }\n return false;\n }\n};\nfunction at(array, index) {\n if (\"at\" in Array.prototype) {\n return Array.prototype.at.call(array, index);\n }\n const actualIndex = toSafeIndex(array, index);\n return actualIndex === -1 ? void 0 : array[actualIndex];\n}\nfunction toSafeIndex(array, index) {\n const length = array.length;\n const relativeIndex = toSafeInteger(index);\n const actualIndex = relativeIndex >= 0 ? relativeIndex : length + relativeIndex;\n return actualIndex < 0 || actualIndex >= length ? -1 : actualIndex;\n}\nfunction toSafeInteger(number) {\n return number !== number || number === 0 ? 0 : Math.trunc(number);\n}\n\n// src/collection.tsx\nimport { jsx as jsx2 } from \"react/jsx-runtime\";\nfunction createCollection2(name) {\n const PROVIDER_NAME = name + \"CollectionProvider\";\n const [createCollectionContext, createCollectionScope] = createContextScope2(PROVIDER_NAME);\n const [CollectionContextProvider, useCollectionContext] = createCollectionContext(\n PROVIDER_NAME,\n {\n collectionElement: null,\n collectionRef: { current: null },\n collectionRefObject: { current: null },\n itemMap: new OrderedDict(),\n setItemMap: () => void 0\n }\n );\n const CollectionProvider = ({ state, ...props }) => {\n return state ? /* @__PURE__ */ jsx2(CollectionProviderImpl, { ...props, state }) : /* @__PURE__ */ jsx2(CollectionInit, { ...props });\n };\n CollectionProvider.displayName = PROVIDER_NAME;\n const CollectionInit = (props) => {\n const state = useInitCollection();\n return /* @__PURE__ */ jsx2(CollectionProviderImpl, { ...props, state });\n };\n CollectionInit.displayName = PROVIDER_NAME + \"Init\";\n const CollectionProviderImpl = (props) => {\n const { scope, children, state } = props;\n const ref = React2.useRef(null);\n const [collectionElement, setCollectionElement] = React2.useState(\n null\n );\n const composeRefs = useComposedRefs2(ref, setCollectionElement);\n const [itemMap, setItemMap] = state;\n React2.useEffect(() => {\n if (!collectionElement) return;\n const observer = getChildListObserver(() => {\n });\n observer.observe(collectionElement, {\n childList: true,\n subtree: true\n });\n return () => {\n observer.disconnect();\n };\n }, [collectionElement]);\n return /* @__PURE__ */ jsx2(\n CollectionContextProvider,\n {\n scope,\n itemMap,\n setItemMap,\n collectionRef: composeRefs,\n collectionRefObject: ref,\n collectionElement,\n children\n }\n );\n };\n CollectionProviderImpl.displayName = PROVIDER_NAME + \"Impl\";\n const COLLECTION_SLOT_NAME = name + \"CollectionSlot\";\n const CollectionSlotImpl = createSlot2(COLLECTION_SLOT_NAME);\n const CollectionSlot = React2.forwardRef(\n (props, forwardedRef) => {\n const { scope, children } = props;\n const context = useCollectionContext(COLLECTION_SLOT_NAME, scope);\n const composedRefs = useComposedRefs2(forwardedRef, context.collectionRef);\n return /* @__PURE__ */ jsx2(CollectionSlotImpl, { ref: composedRefs, children });\n }\n );\n CollectionSlot.displayName = COLLECTION_SLOT_NAME;\n const ITEM_SLOT_NAME = name + \"CollectionItemSlot\";\n const ITEM_DATA_ATTR = \"data-radix-collection-item\";\n const CollectionItemSlotImpl = createSlot2(ITEM_SLOT_NAME);\n const CollectionItemSlot = React2.forwardRef(\n (props, forwardedRef) => {\n const { scope, children, ...itemData } = props;\n const ref = React2.useRef(null);\n const [element, setElement] = React2.useState(null);\n const composedRefs = useComposedRefs2(forwardedRef, ref, setElement);\n const context = useCollectionContext(ITEM_SLOT_NAME, scope);\n const { setItemMap } = context;\n const itemDataRef = React2.useRef(itemData);\n if (!shallowEqual(itemDataRef.current, itemData)) {\n itemDataRef.current = itemData;\n }\n const memoizedItemData = itemDataRef.current;\n React2.useEffect(() => {\n const itemData2 = memoizedItemData;\n setItemMap((map) => {\n if (!element) {\n return map;\n }\n if (!map.has(element)) {\n map.set(element, { ...itemData2, element });\n return map.toSorted(sortByDocumentPosition);\n }\n return map.set(element, { ...itemData2, element }).toSorted(sortByDocumentPosition);\n });\n return () => {\n setItemMap((map) => {\n if (!element || !map.has(element)) {\n return map;\n }\n map.delete(element);\n return new OrderedDict(map);\n });\n };\n }, [element, memoizedItemData, setItemMap]);\n return /* @__PURE__ */ jsx2(CollectionItemSlotImpl, { ...{ [ITEM_DATA_ATTR]: \"\" }, ref: composedRefs, children });\n }\n );\n CollectionItemSlot.displayName = ITEM_SLOT_NAME;\n function useInitCollection() {\n return React2.useState(new OrderedDict());\n }\n function useCollection(scope) {\n const { itemMap } = useCollectionContext(name + \"CollectionConsumer\", scope);\n return itemMap;\n }\n const functions = {\n createCollectionScope,\n useCollection,\n useInitCollection\n };\n return [\n { Provider: CollectionProvider, Slot: CollectionSlot, ItemSlot: CollectionItemSlot },\n functions\n ];\n}\nfunction shallowEqual(a, b) {\n if (a === b) return true;\n if (typeof a !== \"object\" || typeof b !== \"object\") return false;\n if (a == null || b == null) return false;\n const keysA = Object.keys(a);\n const keysB = Object.keys(b);\n if (keysA.length !== keysB.length) return false;\n for (const key of keysA) {\n if (!Object.prototype.hasOwnProperty.call(b, key)) return false;\n if (a[key] !== b[key]) return false;\n }\n return true;\n}\nfunction isElementPreceding(a, b) {\n return !!(b.compareDocumentPosition(a) & Node.DOCUMENT_POSITION_PRECEDING);\n}\nfunction sortByDocumentPosition(a, b) {\n return !a[1].element || !b[1].element ? 0 : isElementPreceding(a[1].element, b[1].element) ? -1 : 1;\n}\nfunction getChildListObserver(callback) {\n const observer = new MutationObserver((mutationsList) => {\n for (const mutation of mutationsList) {\n if (mutation.type === \"childList\") {\n callback();\n return;\n }\n }\n });\n return observer;\n}\nexport {\n createCollection,\n createCollection2 as unstable_createCollection\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["createCollection","name","PROVIDER_NAME","createCollectionContext","createCollectionScope","createContextScope","CollectionProviderImpl","useCollectionContext","CollectionProvider","props","scope","children","ref","React","itemMap","jsx","COLLECTION_SLOT_NAME","CollectionSlotImpl","createSlot","CollectionSlot","forwardedRef","context","composedRefs","useComposedRefs","ITEM_SLOT_NAME","ITEM_DATA_ATTR","CollectionItemSlotImpl","CollectionItemSlot","itemData","useCollection","collectionNode","orderedNodes","a","b"],"mappings":";;;;;AAQA,SAASA,EAAiBC,GAAM;AAC9B,QAAMC,IAAgBD,IAAO,sBACvB,CAACE,GAAyBC,CAAqB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gB,GAAU,GACtC,MAAA;AAAM,QAAKP,EAAQ,QAAQ,OAAOT,CAAG;AAAA,QAC7C,GACsB,gBAAAG,EAAIW,GAAwB,EAAO,CAACD,CAAc,GAAG,IAAM,KAAKH,GAAc,UAAAX,GAAU;AAAA,IACjH;AAAA,EACJ;AACE,EAAAgB,EAAmB,cAAcH;AACjC,WAASK,EAAcnB,GAAO;AAC5B,UAAMW,IAAUd,EAAqBN,IAAO,sBAAsBS,CAAK;AAWvE,WAViBG,EAAM,YAAY,MAAM;AACvC,YAAMiB,IAAiBT,EAAQ,cAAc;AAC7C,UAAI,CAACS,EAAgB,QAAO,CAAA;AAC5B,YAAMC,IAAe,MAAM,KAAKD,EAAe,iBAAiB,IAAIL,CAAc,GAAG,CAAC;AAKtF,aAJc,MAAM,KAAKJ,EAAQ,QAAQ,QAAQ,EACtB;AAAA,QACzB,CAACW,GAAGC,MAAMF,EAAa,QAAQC,EAAE,IAAI,OAAO,IAAID,EAAa,QAAQE,EAAE,IAAI,OAAO;AAAA,MAC1F;AAAA,IAEI,GAAG,CAACZ,EAAQ,eAAeA,EAAQ,OAAO,CAAC;AAAA,EAE7C;AACA,SAAO;AAAA,IACL,EAAE,UAAUb,GAAoB,MAAMW,GAAgB,UAAUQ,EAAkB;AAAA,IAClFE;AAAA,IACAzB;AAAA,EACJ;AACA;","x_google_ignoreList":[0]}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react");function f(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const u=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,u.get?u:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const i=f(l);function r(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function s(...e){return t=>{let n=!1;const u=e.map(o=>{const c=r(o,t);return!n&&typeof c=="function"&&(n=!0),c});if(n)return()=>{for(let o=0;o<u.length;o++){const c=u[o];typeof c=="function"?c():r(e[o],null)}}}}function a(...e){return i.useCallback(s(...e),e)}exports.composeRefs=s;exports.useComposedRefs=a;
2
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs","sources":["../../../../../../../node_modules/@radix-ui/react-compose-refs/dist/index.mjs"],"sourcesContent":["// packages/react/compose-refs/src/compose-refs.tsx\nimport * as React from \"react\";\nfunction setRef(ref, value) {\n if (typeof ref === \"function\") {\n return ref(value);\n } else if (ref !== null && ref !== void 0) {\n ref.current = value;\n }\n}\nfunction composeRefs(...refs) {\n return (node) => {\n let hasCleanup = false;\n const cleanups = refs.map((ref) => {\n const cleanup = setRef(ref, node);\n if (!hasCleanup && typeof cleanup == \"function\") {\n hasCleanup = true;\n }\n return cleanup;\n });\n if (hasCleanup) {\n return () => {\n for (let i = 0; i < cleanups.length; i++) {\n const cleanup = cleanups[i];\n if (typeof cleanup == \"function\") {\n cleanup();\n } else {\n setRef(refs[i], null);\n }\n }\n };\n }\n };\n}\nfunction useComposedRefs(...refs) {\n return React.useCallback(composeRefs(...refs), refs);\n}\nexport {\n composeRefs,\n useComposedRefs\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["setRef","ref","value","composeRefs","refs","node","hasCleanup","cleanups","cleanup","i","useComposedRefs","React"],"mappings":"mYAEA,SAASA,EAAOC,EAAKC,EAAO,CAC1B,GAAI,OAAOD,GAAQ,WACjB,OAAOA,EAAIC,CAAK,EACPD,GAAQ,OACjBA,EAAI,QAAUC,EAElB,CACA,SAASC,KAAeC,EAAM,CAC5B,OAAQC,GAAS,CACf,IAAIC,EAAa,GACjB,MAAMC,EAAWH,EAAK,IAAKH,GAAQ,CACjC,MAAMO,EAAUR,EAAOC,EAAKI,CAAI,EAChC,MAAI,CAACC,GAAc,OAAOE,GAAW,aACnCF,EAAa,IAERE,CACT,CAAC,EACD,GAAIF,EACF,MAAO,IAAM,CACX,QAASG,EAAI,EAAGA,EAAIF,EAAS,OAAQE,IAAK,CACxC,MAAMD,EAAUD,EAASE,CAAC,EACtB,OAAOD,GAAW,WACpBA,EAAO,EAEPR,EAAOI,EAAKK,CAAC,EAAG,IAAI,CAExB,CACF,CAEJ,CACF,CACA,SAASC,KAAmBN,EAAM,CAChC,OAAOO,EAAM,YAAYR,EAAY,GAAGC,CAAI,EAAGA,CAAI,CACrD","x_google_ignoreList":[0]}
@@ -0,0 +1,30 @@
1
+ import * as f from "react";
2
+ function l(n, o) {
3
+ if (typeof n == "function")
4
+ return n(o);
5
+ n != null && (n.current = o);
6
+ }
7
+ function i(...n) {
8
+ return (o) => {
9
+ let u = !1;
10
+ const c = n.map((t) => {
11
+ const e = l(t, o);
12
+ return !u && typeof e == "function" && (u = !0), e;
13
+ });
14
+ if (u)
15
+ return () => {
16
+ for (let t = 0; t < c.length; t++) {
17
+ const e = c[t];
18
+ typeof e == "function" ? e() : l(n[t], null);
19
+ }
20
+ };
21
+ };
22
+ }
23
+ function s(...n) {
24
+ return f.useCallback(i(...n), n);
25
+ }
26
+ export {
27
+ i as composeRefs,
28
+ s as useComposedRefs
29
+ };
30
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../../../../../node_modules/@radix-ui/react-compose-refs/dist/index.mjs"],"sourcesContent":["// packages/react/compose-refs/src/compose-refs.tsx\nimport * as React from \"react\";\nfunction setRef(ref, value) {\n if (typeof ref === \"function\") {\n return ref(value);\n } else if (ref !== null && ref !== void 0) {\n ref.current = value;\n }\n}\nfunction composeRefs(...refs) {\n return (node) => {\n let hasCleanup = false;\n const cleanups = refs.map((ref) => {\n const cleanup = setRef(ref, node);\n if (!hasCleanup && typeof cleanup == \"function\") {\n hasCleanup = true;\n }\n return cleanup;\n });\n if (hasCleanup) {\n return () => {\n for (let i = 0; i < cleanups.length; i++) {\n const cleanup = cleanups[i];\n if (typeof cleanup == \"function\") {\n cleanup();\n } else {\n setRef(refs[i], null);\n }\n }\n };\n }\n };\n}\nfunction useComposedRefs(...refs) {\n return React.useCallback(composeRefs(...refs), refs);\n}\nexport {\n composeRefs,\n useComposedRefs\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["setRef","ref","value","composeRefs","refs","node","hasCleanup","cleanups","cleanup","i","useComposedRefs","React"],"mappings":";AAEA,SAASA,EAAOC,GAAKC,GAAO;AAC1B,MAAI,OAAOD,KAAQ;AACjB,WAAOA,EAAIC,CAAK;AACX,EAAID,KAAQ,SACjBA,EAAI,UAAUC;AAElB;AACA,SAASC,KAAeC,GAAM;AAC5B,SAAO,CAACC,MAAS;AACf,QAAIC,IAAa;AACjB,UAAMC,IAAWH,EAAK,IAAI,CAACH,MAAQ;AACjC,YAAMO,IAAUR,EAAOC,GAAKI,CAAI;AAChC,aAAI,CAACC,KAAc,OAAOE,KAAW,eACnCF,IAAa,KAERE;AAAA,IACT,CAAC;AACD,QAAIF;AACF,aAAO,MAAM;AACX,iBAASG,IAAI,GAAGA,IAAIF,EAAS,QAAQE,KAAK;AACxC,gBAAMD,IAAUD,EAASE,CAAC;AAC1B,UAAI,OAAOD,KAAW,aACpBA,EAAO,IAEPR,EAAOI,EAAKK,CAAC,GAAG,IAAI;AAAA,QAExB;AAAA,MACF;AAAA,EAEJ;AACF;AACA,SAASC,KAAmBN,GAAM;AAChC,SAAOO,EAAM,YAAYR,EAAY,GAAGC,CAAI,GAAGA,CAAI;AACrD;","x_google_ignoreList":[0]}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const C=require("react"),g=require("react/jsx-runtime");function _(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const s=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,s.get?s:{enumerable:!0,get:()=>e[t]})}}return n.default=e,Object.freeze(n)}const p=_(C);function j(e,n=[]){let t=[];function s(i,o){const c=p.createContext(o),r=t.length;t=[...t,o];const l=a=>{const{scope:x,children:d,...f}=a,S=x?.[e]?.[r]||c,b=p.useMemo(()=>f,Object.values(f));return g.jsx(S.Provider,{value:b,children:d})};l.displayName=i+"Provider";function m(a,x){const d=x?.[e]?.[r]||c,f=p.useContext(d);if(f)return f;if(o!==void 0)return o;throw new Error(`\`${a}\` must be used within \`${i}\``)}return[l,m]}const u=()=>{const i=t.map(o=>p.createContext(o));return function(c){const r=c?.[e]||i;return p.useMemo(()=>({[`__scope${e}`]:{...c,[e]:r}}),[c,r])}};return u.scopeName=e,[s,v(u,...n)]}function v(...e){const n=e[0];if(e.length===1)return n;const t=()=>{const s=e.map(u=>({useScope:u(),scopeName:u.scopeName}));return function(i){const o=s.reduce((c,{useScope:r,scopeName:l})=>{const a=r(i)[`__scope${l}`];return{...c,...a}},{});return p.useMemo(()=>({[`__scope${n.scopeName}`]:o}),[o])}};return t.scopeName=n.scopeName,t}exports.createContextScope=j;
2
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs","sources":["../../../../../../../node_modules/@radix-ui/react-context/dist/index.mjs"],"sourcesContent":["// packages/react/context/src/create-context.tsx\nimport * as React from \"react\";\nimport { jsx } from \"react/jsx-runtime\";\nfunction createContext2(rootComponentName, defaultContext) {\n const Context = React.createContext(defaultContext);\n const Provider = (props) => {\n const { children, ...context } = props;\n const value = React.useMemo(() => context, Object.values(context));\n return /* @__PURE__ */ jsx(Context.Provider, { value, children });\n };\n Provider.displayName = rootComponentName + \"Provider\";\n function useContext2(consumerName) {\n const context = React.useContext(Context);\n if (context) return context;\n if (defaultContext !== void 0) return defaultContext;\n throw new Error(`\\`${consumerName}\\` must be used within \\`${rootComponentName}\\``);\n }\n return [Provider, useContext2];\n}\nfunction createContextScope(scopeName, createContextScopeDeps = []) {\n let defaultContexts = [];\n function createContext3(rootComponentName, defaultContext) {\n const BaseContext = React.createContext(defaultContext);\n const index = defaultContexts.length;\n defaultContexts = [...defaultContexts, defaultContext];\n const Provider = (props) => {\n const { scope, children, ...context } = props;\n const Context = scope?.[scopeName]?.[index] || BaseContext;\n const value = React.useMemo(() => context, Object.values(context));\n return /* @__PURE__ */ jsx(Context.Provider, { value, children });\n };\n Provider.displayName = rootComponentName + \"Provider\";\n function useContext2(consumerName, scope) {\n const Context = scope?.[scopeName]?.[index] || BaseContext;\n const context = React.useContext(Context);\n if (context) return context;\n if (defaultContext !== void 0) return defaultContext;\n throw new Error(`\\`${consumerName}\\` must be used within \\`${rootComponentName}\\``);\n }\n return [Provider, useContext2];\n }\n const createScope = () => {\n const scopeContexts = defaultContexts.map((defaultContext) => {\n return React.createContext(defaultContext);\n });\n return function useScope(scope) {\n const contexts = scope?.[scopeName] || scopeContexts;\n return React.useMemo(\n () => ({ [`__scope${scopeName}`]: { ...scope, [scopeName]: contexts } }),\n [scope, contexts]\n );\n };\n };\n createScope.scopeName = scopeName;\n return [createContext3, composeContextScopes(createScope, ...createContextScopeDeps)];\n}\nfunction composeContextScopes(...scopes) {\n const baseScope = scopes[0];\n if (scopes.length === 1) return baseScope;\n const createScope = () => {\n const scopeHooks = scopes.map((createScope2) => ({\n useScope: createScope2(),\n scopeName: createScope2.scopeName\n }));\n return function useComposedScopes(overrideScopes) {\n const nextScopes = scopeHooks.reduce((nextScopes2, { useScope, scopeName }) => {\n const scopeProps = useScope(overrideScopes);\n const currentScope = scopeProps[`__scope${scopeName}`];\n return { ...nextScopes2, ...currentScope };\n }, {});\n return React.useMemo(() => ({ [`__scope${baseScope.scopeName}`]: nextScopes }), [nextScopes]);\n };\n };\n createScope.scopeName = baseScope.scopeName;\n return createScope;\n}\nexport {\n createContext2 as createContext,\n createContextScope\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["createContextScope","scopeName","createContextScopeDeps","defaultContexts","createContext3","rootComponentName","defaultContext","BaseContext","React","index","Provider","props","scope","children","context","Context","value","jsx","useContext2","consumerName","createScope","scopeContexts","contexts","composeContextScopes","scopes","baseScope","scopeHooks","createScope2","overrideScopes","n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Aa,GAAGlB,CAAsB,CAAC,CACtF,CACA,SAASqB,KAAwBC,EAAQ,CACvC,MAAMC,EAAYD,EAAO,CAAC,EAC1B,GAAIA,EAAO,SAAW,EAAG,OAAOC,EAChC,MAAML,EAAc,IAAM,CACxB,MAAMM,EAAaF,EAAO,IAAKG,IAAkB,CAC/C,SAAUA,EAAY,EACtB,UAAWA,EAAa,SAC9B,EAAM,EACF,OAAO,SAA2BC,EAAgB,CAChD,MAAMC,EAAaH,EAAW,OAAO,CAACI,EAAa,CAAE,SAAAC,EAAU,UAAA9B,KAAgB,CAE7E,MAAM+B,EADaD,EAASH,CAAc,EACV,UAAU3B,CAAS,EAAE,EACrD,MAAO,CAAE,GAAG6B,EAAa,GAAGE,CAAY,CAC1C,EAAG,CAAA,CAAE,EACL,OAAOxB,EAAM,QAAQ,KAAO,CAAE,CAAC,UAAUiB,EAAU,SAAS,EAAE,EAAGI,CAAU,GAAK,CAACA,CAAU,CAAC,CAC9F,CACF,EACA,OAAAT,EAAY,UAAYK,EAAU,UAC3BL,CACT","x_google_ignoreList":[0]}
@@ -0,0 +1,54 @@
1
+ import * as u from "react";
2
+ import { jsx as _ } from "react/jsx-runtime";
3
+ function P(e, p = []) {
4
+ let n = [];
5
+ function m(s, t) {
6
+ const o = u.createContext(t), c = n.length;
7
+ n = [...n, t];
8
+ const a = (i) => {
9
+ const { scope: f, children: C, ...x } = i, d = f?.[e]?.[c] || o, v = u.useMemo(() => x, Object.values(x));
10
+ return /* @__PURE__ */ _(d.Provider, { value: v, children: C });
11
+ };
12
+ a.displayName = s + "Provider";
13
+ function S(i, f) {
14
+ const C = f?.[e]?.[c] || o, x = u.useContext(C);
15
+ if (x) return x;
16
+ if (t !== void 0) return t;
17
+ throw new Error(`\`${i}\` must be used within \`${s}\``);
18
+ }
19
+ return [a, S];
20
+ }
21
+ const r = () => {
22
+ const s = n.map((t) => u.createContext(t));
23
+ return function(o) {
24
+ const c = o?.[e] || s;
25
+ return u.useMemo(
26
+ () => ({ [`__scope${e}`]: { ...o, [e]: c } }),
27
+ [o, c]
28
+ );
29
+ };
30
+ };
31
+ return r.scopeName = e, [m, h(r, ...p)];
32
+ }
33
+ function h(...e) {
34
+ const p = e[0];
35
+ if (e.length === 1) return p;
36
+ const n = () => {
37
+ const m = e.map((r) => ({
38
+ useScope: r(),
39
+ scopeName: r.scopeName
40
+ }));
41
+ return function(s) {
42
+ const t = m.reduce((o, { useScope: c, scopeName: a }) => {
43
+ const i = c(s)[`__scope${a}`];
44
+ return { ...o, ...i };
45
+ }, {});
46
+ return u.useMemo(() => ({ [`__scope${p.scopeName}`]: t }), [t]);
47
+ };
48
+ };
49
+ return n.scopeName = p.scopeName, n;
50
+ }
51
+ export {
52
+ P as createContextScope
53
+ };
54
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../../../../../node_modules/@radix-ui/react-context/dist/index.mjs"],"sourcesContent":["// packages/react/context/src/create-context.tsx\nimport * as React from \"react\";\nimport { jsx } from \"react/jsx-runtime\";\nfunction createContext2(rootComponentName, defaultContext) {\n const Context = React.createContext(defaultContext);\n const Provider = (props) => {\n const { children, ...context } = props;\n const value = React.useMemo(() => context, Object.values(context));\n return /* @__PURE__ */ jsx(Context.Provider, { value, children });\n };\n Provider.displayName = rootComponentName + \"Provider\";\n function useContext2(consumerName) {\n const context = React.useContext(Context);\n if (context) return context;\n if (defaultContext !== void 0) return defaultContext;\n throw new Error(`\\`${consumerName}\\` must be used within \\`${rootComponentName}\\``);\n }\n return [Provider, useContext2];\n}\nfunction createContextScope(scopeName, createContextScopeDeps = []) {\n let defaultContexts = [];\n function createContext3(rootComponentName, defaultContext) {\n const BaseContext = React.createContext(defaultContext);\n const index = defaultContexts.length;\n defaultContexts = [...defaultContexts, defaultContext];\n const Provider = (props) => {\n const { scope, children, ...context } = props;\n const Context = scope?.[scopeName]?.[index] || BaseContext;\n const value = React.useMemo(() => context, Object.values(context));\n return /* @__PURE__ */ jsx(Context.Provider, { value, children });\n };\n Provider.displayName = rootComponentName + \"Provider\";\n function useContext2(consumerName, scope) {\n const Context = scope?.[scopeName]?.[index] || BaseContext;\n const context = React.useContext(Context);\n if (context) return context;\n if (defaultContext !== void 0) return defaultContext;\n throw new Error(`\\`${consumerName}\\` must be used within \\`${rootComponentName}\\``);\n }\n return [Provider, useContext2];\n }\n const createScope = () => {\n const scopeContexts = defaultContexts.map((defaultContext) => {\n return React.createContext(defaultContext);\n });\n return function useScope(scope) {\n const contexts = scope?.[scopeName] || scopeContexts;\n return React.useMemo(\n () => ({ [`__scope${scopeName}`]: { ...scope, [scopeName]: contexts } }),\n [scope, contexts]\n );\n };\n };\n createScope.scopeName = scopeName;\n return [createContext3, composeContextScopes(createScope, ...createContextScopeDeps)];\n}\nfunction composeContextScopes(...scopes) {\n const baseScope = scopes[0];\n if (scopes.length === 1) return baseScope;\n const createScope = () => {\n const scopeHooks = scopes.map((createScope2) => ({\n useScope: createScope2(),\n scopeName: createScope2.scopeName\n }));\n return function useComposedScopes(overrideScopes) {\n const nextScopes = scopeHooks.reduce((nextScopes2, { useScope, scopeName }) => {\n const scopeProps = useScope(overrideScopes);\n const currentScope = scopeProps[`__scope${scopeName}`];\n return { ...nextScopes2, ...currentScope };\n }, {});\n return React.useMemo(() => ({ [`__scope${baseScope.scopeName}`]: nextScopes }), [nextScopes]);\n };\n };\n createScope.scopeName = baseScope.scopeName;\n return createScope;\n}\nexport {\n createContext2 as createContext,\n createContextScope\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["createContextScope","scopeName","createContextScopeDeps","defaultContexts","createContext3","rootComponentName","defaultContext","BaseContext","React","index","Provider","props","scope","children","context","Context","value","jsx","useContext2","consumerName","createScope","scopeContexts","contexts","composeContextScopes","scopes","baseScope","scopeHooks","createScope2","overrideScopes","nextScopes","nextScopes2","useScope","currentScope"],"mappings":";;AAmBA,SAASA,EAAmBC,GAAWC,IAAyB,IAAI;AAClE,MAAIC,IAAkB,CAAA;AACtB,W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wBC,GAAQ;AACvC,QAAMC,IAAYD,EAAO,CAAC;AAC1B,MAAIA,EAAO,WAAW,EAAG,QAAOC;AAChC,QAAML,IAAc,MAAM;AACxB,UAAMM,IAAaF,EAAO,IAAI,CAACG,OAAkB;AAAA,MAC/C,UAAUA,EAAY;AAAA,MACtB,WAAWA,EAAa;AAAA,IAC9B,EAAM;AACF,WAAO,SAA2BC,GAAgB;AAChD,YAAMC,IAAaH,EAAW,OAAO,CAACI,GAAa,EAAE,UAAAC,GAAU,WAAA9B,QAAgB;AAE7E,cAAM+B,IADaD,EAASH,CAAc,EACV,UAAU3B,CAAS,EAAE;AACrD,eAAO,EAAE,GAAG6B,GAAa,GAAGE,EAAY;AAAA,MAC1C,GAAG,CAAA,CAAE;AACL,aAAOxB,EAAM,QAAQ,OAAO,EAAE,CAAC,UAAUiB,EAAU,SAAS,EAAE,GAAGI,EAAU,IAAK,CAACA,CAAU,CAAC;AAAA,IAC9F;AAAA,EACF;AACA,SAAAT,EAAY,YAAYK,EAAU,WAC3BL;AACT;","x_google_ignoreList":[0]}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("react");require("react/jsx-runtime");function i(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const o=i(c);var u=o.createContext(void 0);function a(e){const t=o.useContext(u);return e||t||"ltr"}exports.useDirection=a;
2
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs","sources":["../../../../../../../node_modules/@radix-ui/react-direction/dist/index.mjs"],"sourcesContent":["// packages/react/direction/src/direction.tsx\nimport * as React from \"react\";\nimport { jsx } from \"react/jsx-runtime\";\nvar DirectionContext = React.createContext(void 0);\nvar DirectionProvider = (props) => {\n const { dir, children } = props;\n return /* @__PURE__ */ jsx(DirectionContext.Provider, { value: dir, children });\n};\nfunction useDirection(localDir) {\n const globalDir = React.useContext(DirectionContext);\n return localDir || globalDir || \"ltr\";\n}\nvar Provider = DirectionProvider;\nexport {\n DirectionProvider,\n Provider,\n useDirection\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["DirectionContext","React","useDirection","localDir","globalDir"],"mappings":"gaAGA,IAAIA,EAAmBC,EAAM,cAAc,MAAM,EAKjD,SAASC,EAAaC,EAAU,CAC9B,MAAMC,EAAYH,EAAM,WAAWD,CAAgB,EACnD,OAAOG,GAAYC,GAAa,KAClC","x_google_ignoreList":[0]}
@@ -0,0 +1,11 @@
1
+ import * as t from "react";
2
+ import "react/jsx-runtime";
3
+ var r = t.createContext(void 0);
4
+ function n(o) {
5
+ const e = t.useContext(r);
6
+ return o || e || "ltr";
7
+ }
8
+ export {
9
+ n as useDirection
10
+ };
11
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../../../../../node_modules/@radix-ui/react-direction/dist/index.mjs"],"sourcesContent":["// packages/react/direction/src/direction.tsx\nimport * as React from \"react\";\nimport { jsx } from \"react/jsx-runtime\";\nvar DirectionContext = React.createContext(void 0);\nvar DirectionProvider = (props) => {\n const { dir, children } = props;\n return /* @__PURE__ */ jsx(DirectionContext.Provider, { value: dir, children });\n};\nfunction useDirection(localDir) {\n const globalDir = React.useContext(DirectionContext);\n return localDir || globalDir || \"ltr\";\n}\nvar Provider = DirectionProvider;\nexport {\n DirectionProvider,\n Provider,\n useDirection\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["DirectionContext","React","useDirection","localDir","globalDir"],"mappings":";;AAGA,IAAIA,IAAmBC,EAAM,cAAc,MAAM;AAKjD,SAASC,EAAaC,GAAU;AAC9B,QAAMC,IAAYH,EAAM,WAAWD,CAAgB;AACnD,SAAOG,KAAYC,KAAa;AAClC;","x_google_ignoreList":[0]}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const q=require("react"),b=require("../../primitive/dist/index.cjs"),m=require("../../react-primitive/dist/index.cjs"),R=require("../../react-compose-refs/dist/index.cjs"),w=require("../../react-use-callback-ref/dist/index.cjs"),H=require("../../react-use-escape-keydown/dist/index.cjs"),x=require("react/jsx-runtime");function U(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const i=U(q);var z="DismissableLayer",h="dismissableLayer.update",M="dismissableLayer.pointerDownOutside",$="dismissableLayer.focusOutside",L,T=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),S=i.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:c,onInteractOutside:f,onDismiss:d,...v}=e,a=i.useContext(T),[u,I]=i.useState(null),l=u?.ownerDocument??globalThis?.document,[,N]=i.useState({}),W=R.useComposedRefs(t,s=>I(s)),p=Array.from(a.layers),[_]=[...a.layersWithOutsidePointerEventsDisabled].slice(-1),A=p.indexOf(_),D=u?p.indexOf(u):-1,j=a.layersWithOutsidePointerEventsDisabled.size>0,O=D>=A,k=X(s=>{const E=s.target,C=[...a.branches].some(y=>y.contains(E));!O||C||(o?.(s),f?.(s),s.defaultPrevented||d?.())},l),P=Y(s=>{const E=s.target;[...a.branches].some(y=>y.contains(E))||(c?.(s),f?.(s),s.defaultPrevented||d?.())},l);return H.useEscapeKeydown(s=>{D===a.layers.size-1&&(r?.(s),!s.defaultPrevented&&d&&(s.preventDefault(),d()))},l),i.useEffect(()=>{if(u)return n&&(a.layersWithOutsidePointerEventsDisabled.size===0&&(L=l.body.style.pointerEvents,l.body.style.pointerEvents="none"),a.layersWithOutsidePointerEventsDisabled.add(u)),a.layers.add(u),g(),()=>{n&&a.layersWithOutsidePointerEventsDisabled.size===1&&(l.body.style.pointerEvents=L)}},[u,l,n,a]),i.useEffect(()=>()=>{u&&(a.layers.delete(u),a.layersWithOutsidePointerEventsDisabled.delete(u),g())},[u,a]),i.useEffect(()=>{const s=()=>N({});return document.addEventListener(h,s),()=>document.removeEventListener(h,s)},[]),x.jsx(m.Primitive.div,{...v,ref:W,style:{pointerEvents:j?O?"auto":"none":void 0,...e.style},onFocusCapture:b.composeEventHandlers(e.onFocusCapture,P.onFocusCapture),onBlurCapture:b.composeEventHandlers(e.onBlurCapture,P.onBlurCapture),onPointerDownCapture:b.composeEventHandlers(e.onPointerDownCapture,k.onPointerDownCapture)})});S.displayName=z;var K="DismissableLayerBranch",B=i.forwardRef((e,t)=>{const n=i.useContext(T),r=i.useRef(null),o=R.useComposedRefs(t,r);return i.useEffect(()=>{const c=r.current;if(c)return n.branches.add(c),()=>{n.branches.delete(c)}},[n.branches]),x.jsx(m.Primitive.div,{...e,ref:o})});B.displayName=K;function X(e,t=globalThis?.document){const n=w.useCallbackRef(e),r=i.useRef(!1),o=i.useRef(()=>{});return i.useEffect(()=>{const c=d=>{if(d.target&&!r.current){let v=function(){F(M,n,a,{discrete:!0})};const a={originalEvent:d};d.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=v,t.addEventListener("click",o.current,{once:!0})):v()}else t.removeEventListener("click",o.current);r.current=!1},f=window.setTimeout(()=>{t.addEventListener("pointerdown",c)},0);return()=>{window.clearTimeout(f),t.removeEventListener("pointerdown",c),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function Y(e,t=globalThis?.document){const n=w.useCallbackRef(e),r=i.useRef(!1);return i.useEffect(()=>{const o=c=>{c.target&&!r.current&&F($,n,{originalEvent:c},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function g(){const e=new CustomEvent(h);document.dispatchEvent(e)}function F(e,t,n,{discrete:r}){const o=n.originalEvent.target,c=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?m.dispatchDiscreteCustomEvent(o,c):o.dispatchEvent(c)}exports.DismissableLayer=S;exports.DismissableLayerBranch=B;
2
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs","sources":["../../../../../../../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 { useEscapeKeydown } from \"@radix-ui/react-use-escape-keydown\";\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});\nvar DismissableLayer = React.forwardRef(\n (props, forwardedRef) => {\n const {\n disableOutsidePointerEvents = 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, (node2) => setNode(node2));\n const layers = Array.from(context.layers);\n const [highestLayerWithOutsidePointerEventsDisabled] = [...context.layersWithOutsidePointerEventsDisabled].slice(-1);\n const highestLayerWithOutsidePointerEventsDisabledIndex = layers.indexOf(highestLayerWithOutsidePointerEventsDisabled);\n const index = node ? layers.indexOf(node) : -1;\n const isBodyPointerEventsDisabled = context.layersWithOutsidePointerEventsDisabled.size > 0;\n const isPointerEventsEnabled = index >= highestLayerWithOutsidePointerEventsDisabledIndex;\n const pointerDownOutside = usePointerDownOutside((event) => {\n const target = event.target;\n const isPointerDownOnBranch = [...context.branches].some((branch) => branch.contains(target));\n if (!isPointerEventsEnabled || isPointerDownOnBranch) return;\n onPointerDownOutside?.(event);\n onInteractOutside?.(event);\n if (!event.defaultPrevented) onDismiss?.();\n }, ownerDocument);\n const focusOutside = useFocusOutside((event) => {\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 useEscapeKeydown((event) => {\n const isHighestLayer = index === context.layers.size - 1;\n if (!isHighestLayer) return;\n onEscapeKeyDown?.(event);\n if (!event.defaultPrevented && onDismiss) {\n event.preventDefault();\n onDismiss();\n }\n }, ownerDocument);\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 && context.layersWithOutsidePointerEventsDisabled.size === 1) {\n ownerDocument.body.style.pointerEvents = originalBodyPointerEvents;\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 usePointerDownOutside(onPointerDownOutside, ownerDocument = globalThis?.document) {\n const handlePointerDownOutside = useCallbackRef(onPointerDownOutside);\n const isPointerInsideReactTreeRef = React.useRef(false);\n const handleClickRef = React.useRef(() => {\n });\n React.useEffect(() => {\n const handlePointerDown = (event) => {\n if (event.target && !isPointerInsideReactTreeRef.current) {\n let handleAndDispatchPointerDownOutsideEvent2 = function() {\n handleAndDispatchCustomEvent(\n POINTER_DOWN_OUTSIDE,\n handlePointerDownOutside,\n eventDetail,\n { discrete: true }\n );\n };\n var handleAndDispatchPointerDownOutsideEvent = handleAndDispatchPointerDownOutsideEvent2;\n const eventDetail = { originalEvent: event };\n if (event.pointerType === \"touch\") {\n ownerDocument.removeEventListener(\"click\", handleClickRef.current);\n handleClickRef.current = handleAndDispatchPointerDownOutsideEvent2;\n ownerDocument.addEventListener(\"click\", handleClickRef.current, { once: true });\n } else {\n handleAndDispatchPointerDownOutsideEvent2();\n }\n } else {\n ownerDocument.removeEventListener(\"click\", handleClickRef.current);\n }\n isPointerInsideReactTreeRef.current = false;\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 };\n }, [ownerDocument, handlePointerDownOutside]);\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};\n//# sourceMappingURL=index.mjs.map\n"],"names":["DISMISSABLE_LAYER_NAME","CONTEXT_UPDATE","POINTER_DOWN_OUTSIDE","FOCUS_OUTSIDE","originalBodyPointerEvents","DismissableLayerContext","React","DismissableLayer","props","forwardedRef","disableOutsidePointerEvents","onEscapeKeyDown","onPointerDownOutside","onFocusOutside","onInteractOutside","onDismiss","layerProps","context","node","setNode","ownerDocument","force","composedRefs","useComposedRefs","node2","layers","highestLayerWithOutsidePointerEventsDisabled","highestLayerWithOutsidePointerEventsDisabledIndex","index","isBodyPointerEventsDisabled","isPointerEventsEnabled","pointerDownOutside","usePointerDownOutside","event","target","isPointerDownOnBranch","branch","focusOutside","useFocusOutside","useEscapeKeydown","dispatchUpdate","handleUpdate","jsx","Primitive","composeEventHandlers","BRANCH_NAME","DismissableLayerBranch","ref","handlePointerDownOutside","useCallbackRef","isPointerInsideReactTreeRef","handleClickRef","handlePointerDown","handleAndDispatchPointerDownOutsideEvent2","handleAndDispatchCustomEvent","eventDetail","timerId","handleFocusOutside","isFocusInsideReactTreeRef","handleFocus","name","handler","detail","discrete","dispatchDiscreteCustomEvent"],"mappings":"yqBAUA,IAAIA,EAAyB,mBACzBC,EAAiB,0BACjBC,EAAuB,sCACvBC,EAAgB,gCAChBC,EACAC,EAA0BC,EAAM,cAAc,CAChD,OAAwB,IAAI,IAC5B,uCAAwD,IAAI,IAC5D,SAA0B,IAAI,GAChC,CAAC,EACGC,EAAmBD,EAAM,WAC3B,CAACE,EAAOC,IAAiB,CACvB,KAAM,CACJ,4BAAAC,EAA8B,GAC9B,gBAAAC,EACA,qBAAAC,EACA,eAAAC,EACA,kBAAAC,EACA,UAAAC,EACA,GAAGC,CACT,EAAQR,EACES,EAAUX,EAAM,WAAWD,CAAuB,E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,EAAgBzB,EAAgBO,EAAgB,YAAY,SAAU,CAC7E,MAAMqC,EAAqBR,EAAAA,eAAepC,CAAc,EAClD6C,EAA4BpD,EAAM,OAAO,EAAK,EACpDA,OAAAA,EAAM,UAAU,IAAM,CACpB,MAAMqD,EAAe1B,GAAU,CACzBA,EAAM,QAAU,CAACyB,EAA0B,SAE7CJ,EAA6BnD,EAAesD,EADxB,CAAE,cAAexB,CAAK,EACmC,CAC3E,SAAU,EACpB,CAAS,CAEL,EACA,OAAAb,EAAc,iBAAiB,UAAWuC,CAAW,EAC9C,IAAMvC,EAAc,oBAAoB,UAAWuC,CAAW,CACvE,EAAG,CAACvC,EAAeqC,CAAkB,CAAC,EAC/B,CACL,eAAgB,IAAMC,EAA0B,QAAU,GAC1D,cAAe,IAAMA,EAA0B,QAAU,EAC7D,CACA,CACA,SAASlB,GAAiB,CACxB,MAAMP,EAAQ,IAAI,YAAYhC,CAAc,EAC5C,SAAS,cAAcgC,CAAK,CAC9B,CACA,SAASqB,EAA6BM,EAAMC,EAASC,EAAQ,CAAE,SAAAC,CAAQ,EAAI,CACzE,MAAM7B,EAAS4B,EAAO,cAAc,OAC9B7B,EAAQ,IAAI,YAAY2B,EAAM,CAAE,QAAS,GAAO,WAAY,GAAM,OAAAE,EAAQ,EAC5ED,GAAS3B,EAAO,iBAAiB0B,EAAMC,EAAS,CAAE,KAAM,GAAM,EAC9DE,EACFC,EAAAA,4BAA4B9B,EAAQD,CAAK,EAEzCC,EAAO,cAAcD,CAAK,CAE9B","x_google_ignoreList":[0]}
@@ -0,0 +1,128 @@
1
+ import * as n from "react";
2
+ import { composeEventHandlers as h } from "../../primitive/dist/index.js";
3
+ import { Primitive as w, dispatchDiscreteCustomEvent as k } from "../../react-primitive/dist/index.js";
4
+ import { useComposedRefs as g } from "../../react-compose-refs/dist/index.js";
5
+ import { useCallbackRef as R } from "../../react-use-callback-ref/dist/index.js";
6
+ import { useEscapeKeydown as U } from "../../react-use-escape-keydown/dist/index.js";
7
+ import { jsx as T } from "react/jsx-runtime";
8
+ var z = "DismissableLayer", y = "dismissableLayer.update", H = "dismissableLayer.pointerDownOutside", M = "dismissableLayer.focusOutside", C, B = n.createContext({
9
+ layers: /* @__PURE__ */ new Set(),
10
+ layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
11
+ branches: /* @__PURE__ */ new Set()
12
+ }), K = n.forwardRef(
13
+ (s, e) => {
14
+ const {
15
+ disableOutsidePointerEvents: r = !1,
16
+ onEscapeKeyDown: a,
17
+ onPointerDownOutside: i,
18
+ onFocusOutside: c,
19
+ onInteractOutside: f,
20
+ onDismiss: d,
21
+ ...E
22
+ } = s, o = n.useContext(B), [u, F] = n.useState(null), l = u?.ownerDocument ?? globalThis?.document, [, I] = n.useState({}), S = g(e, (t) => F(t)), p = Array.from(o.layers), [W] = [...o.layersWithOutsidePointerEventsDisabled].slice(-1), A = p.indexOf(W), b = u ? p.indexOf(u) : -1, N = o.layersWithOutsidePointerEventsDisabled.size > 0, D = b >= A, _ = Y((t) => {
23
+ const v = t.target, P = [...o.branches].some((m) => m.contains(v));
24
+ !D || P || (i?.(t), f?.(t), t.defaultPrevented || d?.());
25
+ }, l), O = q((t) => {
26
+ const v = t.target;
27
+ [...o.branches].some((m) => m.contains(v)) || (c?.(t), f?.(t), t.defaultPrevented || d?.());
28
+ }, l);
29
+ return U((t) => {
30
+ b === o.layers.size - 1 && (a?.(t), !t.defaultPrevented && d && (t.preventDefault(), d()));
31
+ }, l), n.useEffect(() => {
32
+ if (u)
33
+ return r && (o.layersWithOutsidePointerEventsDisabled.size === 0 && (C = l.body.style.pointerEvents, l.body.style.pointerEvents = "none"), o.layersWithOutsidePointerEventsDisabled.add(u)), o.layers.add(u), L(), () => {
34
+ r && o.layersWithOutsidePointerEventsDisabled.size === 1 && (l.body.style.pointerEvents = C);
35
+ };
36
+ }, [u, l, r, o]), n.useEffect(() => () => {
37
+ u && (o.layers.delete(u), o.layersWithOutsidePointerEventsDisabled.delete(u), L());
38
+ }, [u, o]), n.useEffect(() => {
39
+ const t = () => I({});
40
+ return document.addEventListener(y, t), () => document.removeEventListener(y, t);
41
+ }, []), /* @__PURE__ */ T(
42
+ w.div,
43
+ {
44
+ ...E,
45
+ ref: S,
46
+ style: {
47
+ pointerEvents: N ? D ? "auto" : "none" : void 0,
48
+ ...s.style
49
+ },
50
+ onFocusCapture: h(s.onFocusCapture, O.onFocusCapture),
51
+ onBlurCapture: h(s.onBlurCapture, O.onBlurCapture),
52
+ onPointerDownCapture: h(
53
+ s.onPointerDownCapture,
54
+ _.onPointerDownCapture
55
+ )
56
+ }
57
+ );
58
+ }
59
+ );
60
+ K.displayName = z;
61
+ var j = "DismissableLayerBranch", X = n.forwardRef((s, e) => {
62
+ const r = n.useContext(B), a = n.useRef(null), i = g(e, a);
63
+ return n.useEffect(() => {
64
+ const c = a.current;
65
+ if (c)
66
+ return r.branches.add(c), () => {
67
+ r.branches.delete(c);
68
+ };
69
+ }, [r.branches]), /* @__PURE__ */ T(w.div, { ...s, ref: i });
70
+ });
71
+ X.displayName = j;
72
+ function Y(s, e = globalThis?.document) {
73
+ const r = R(s), a = n.useRef(!1), i = n.useRef(() => {
74
+ });
75
+ return n.useEffect(() => {
76
+ const c = (d) => {
77
+ if (d.target && !a.current) {
78
+ let E = function() {
79
+ x(
80
+ H,
81
+ r,
82
+ o,
83
+ { discrete: !0 }
84
+ );
85
+ };
86
+ const o = { originalEvent: d };
87
+ d.pointerType === "touch" ? (e.removeEventListener("click", i.current), i.current = E, e.addEventListener("click", i.current, { once: !0 })) : E();
88
+ } else
89
+ e.removeEventListener("click", i.current);
90
+ a.current = !1;
91
+ }, f = window.setTimeout(() => {
92
+ e.addEventListener("pointerdown", c);
93
+ }, 0);
94
+ return () => {
95
+ window.clearTimeout(f), e.removeEventListener("pointerdown", c), e.removeEventListener("click", i.current);
96
+ };
97
+ }, [e, r]), {
98
+ // ensures we check React component tree (not just DOM tree)
99
+ onPointerDownCapture: () => a.current = !0
100
+ };
101
+ }
102
+ function q(s, e = globalThis?.document) {
103
+ const r = R(s), a = n.useRef(!1);
104
+ return n.useEffect(() => {
105
+ const i = (c) => {
106
+ c.target && !a.current && x(M, r, { originalEvent: c }, {
107
+ discrete: !1
108
+ });
109
+ };
110
+ return e.addEventListener("focusin", i), () => e.removeEventListener("focusin", i);
111
+ }, [e, r]), {
112
+ onFocusCapture: () => a.current = !0,
113
+ onBlurCapture: () => a.current = !1
114
+ };
115
+ }
116
+ function L() {
117
+ const s = new CustomEvent(y);
118
+ document.dispatchEvent(s);
119
+ }
120
+ function x(s, e, r, { discrete: a }) {
121
+ const i = r.originalEvent.target, c = new CustomEvent(s, { bubbles: !1, cancelable: !0, detail: r });
122
+ e && i.addEventListener(s, e, { once: !0 }), a ? k(i, c) : i.dispatchEvent(c);
123
+ }
124
+ export {
125
+ K as DismissableLayer,
126
+ X as DismissableLayerBranch
127
+ };
128
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../../../../../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 { useEscapeKeydown } from \"@radix-ui/react-use-escape-keydown\";\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});\nvar DismissableLayer = React.forwardRef(\n (props, forwardedRef) => {\n const {\n disableOutsidePointerEvents = 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, (node2) => setNode(node2));\n const layers = Array.from(context.layers);\n const [highestLayerWithOutsidePointerEventsDisabled] = [...context.layersWithOutsidePointerEventsDisabled].slice(-1);\n const highestLayerWithOutsidePointerEventsDisabledIndex = layers.indexOf(highestLayerWithOutsidePointerEventsDisabled);\n const index = node ? layers.indexOf(node) : -1;\n const isBodyPointerEventsDisabled = context.layersWithOutsidePointerEventsDisabled.size > 0;\n const isPointerEventsEnabled = index >= highestLayerWithOutsidePointerEventsDisabledIndex;\n const pointerDownOutside = usePointerDownOutside((event) => {\n const target = event.target;\n const isPointerDownOnBranch = [...context.branches].some((branch) => branch.contains(target));\n if (!isPointerEventsEnabled || isPointerDownOnBranch) return;\n onPointerDownOutside?.(event);\n onInteractOutside?.(event);\n if (!event.defaultPrevented) onDismiss?.();\n }, ownerDocument);\n const focusOutside = useFocusOutside((event) => {\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 useEscapeKeydown((event) => {\n const isHighestLayer = index === context.layers.size - 1;\n if (!isHighestLayer) return;\n onEscapeKeyDown?.(event);\n if (!event.defaultPrevented && onDismiss) {\n event.preventDefault();\n onDismiss();\n }\n }, ownerDocument);\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 && context.layersWithOutsidePointerEventsDisabled.size === 1) {\n ownerDocument.body.style.pointerEvents = originalBodyPointerEvents;\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 usePointerDownOutside(onPointerDownOutside, ownerDocument = globalThis?.document) {\n const handlePointerDownOutside = useCallbackRef(onPointerDownOutside);\n const isPointerInsideReactTreeRef = React.useRef(false);\n const handleClickRef = React.useRef(() => {\n });\n React.useEffect(() => {\n const handlePointerDown = (event) => {\n if (event.target && !isPointerInsideReactTreeRef.current) {\n let handleAndDispatchPointerDownOutsideEvent2 = function() {\n handleAndDispatchCustomEvent(\n POINTER_DOWN_OUTSIDE,\n handlePointerDownOutside,\n eventDetail,\n { discrete: true }\n );\n };\n var handleAndDispatchPointerDownOutsideEvent = handleAndDispatchPointerDownOutsideEvent2;\n const eventDetail = { originalEvent: event };\n if (event.pointerType === \"touch\") {\n ownerDocument.removeEventListener(\"click\", handleClickRef.current);\n handleClickRef.current = handleAndDispatchPointerDownOutsideEvent2;\n ownerDocument.addEventListener(\"click\", handleClickRef.current, { once: true });\n } else {\n handleAndDispatchPointerDownOutsideEvent2();\n }\n } else {\n ownerDocument.removeEventListener(\"click\", handleClickRef.current);\n }\n isPointerInsideReactTreeRef.current = false;\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 };\n }, [ownerDocument, handlePointerDownOutside]);\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};\n//# sourceMappingURL=index.mjs.map\n"],"names":["DISMISSABLE_LAYER_NAME","CONTEXT_UPDATE","POINTER_DOWN_OUTSIDE","FOCUS_OUTSIDE","originalBodyPointerEvents","DismissableLayerContext","React","DismissableLayer","props","forwardedRef","disableOutsidePointerEvents","onEscapeKeyDown","onPointerDownOutside","onFocusOutside","onInteractOutside","onDismiss","layerProps","context","node","setNode","ownerDocument","force","composedRefs","useComposedRefs","node2","layers","highestLayerWithOutsidePointerEventsDisabled","highestLayerWithOutsidePointerEventsDisabledIndex","index","isBodyPointerEventsDisabled","isPointerEventsEnabled","pointerDownOutside","usePointerDownOutside","event","target","isPointerDownOnBranch","branch","focusOutside","useFocusOutside","useEscapeKeydown","dispatchUpdate","handleUpdate","jsx","Primitive","composeEventHandlers","BRANCH_NAME","DismissableLayerBranch","ref","handlePointerDownOutside","useCallbackRef","isPointerInsideReactTreeRef","handleClickRef","handlePointerDown","handleAndDispatchPointerDownOutsideEvent2","handleAndDispatchCustomEvent","eventDetail","timerId","handleFocusOutside","isFocusInsideReactTreeRef","handleFocus","name","handler","detail","discrete","dispatchDiscreteCustomEvent"],"mappings":";;;;;;;AAUA,IAAIA,IAAyB,oBACzBC,IAAiB,2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A,IAC1D,eAAe,MAAMA,EAA0B,UAAU;AAAA,EAC7D;AACA;AACA,SAASlB,IAAiB;AACxB,QAAMP,IAAQ,IAAI,YAAYhC,CAAc;AAC5C,WAAS,cAAcgC,CAAK;AAC9B;AACA,SAASqB,EAA6BM,GAAMC,GAASC,GAAQ,EAAE,UAAAC,EAAQ,GAAI;AACzE,QAAM7B,IAAS4B,EAAO,cAAc,QAC9B7B,IAAQ,IAAI,YAAY2B,GAAM,EAAE,SAAS,IAAO,YAAY,IAAM,QAAAE,GAAQ;AAChF,EAAID,KAAS3B,EAAO,iBAAiB0B,GAAMC,GAAS,EAAE,MAAM,IAAM,GAC9DE,IACFC,EAA4B9B,GAAQD,CAAK,IAEzCC,EAAO,cAAcD,CAAK;AAE9B;","x_google_ignoreList":[0]}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const L=require("react"),M=require("../../primitive/dist/index.cjs"),q=require("../../react-compose-refs/dist/index.cjs"),$=require("../../react-context/dist/index.cjs"),H=require("../../react-use-controllable-state/dist/index.cjs"),K=require("../../react-primitive/dist/index.cjs"),d=require("../../react-menu/dist/index.cjs"),P=require("../../react-id/dist/index.cjs"),a=require("react/jsx-runtime");function U(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const o in e)if(o!=="default"){const r=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(n,o,r.get?r:{enumerable:!0,get:()=>e[o]})}}return n.default=e,Object.freeze(n)}const p=U(L);var f="DropdownMenu",[B]=$.createContextScope(f,[d.createMenuScope]),i=d.createMenuScope(),[F,y]=B(f),D=e=>{const{__scopeDropdownMenu:n,children:o,dir:r,open:t,defaultOpen:s,onOpenChange:c,modal:u=!0}=e,l=i(n),g=p.useRef(null),[w,m]=H.useControllableState({prop:t,defaultProp:s??!1,onChange:c,caller:f});return a.jsx(F,{scope:n,triggerId:P.useId(),triggerRef:g,contentId:P.useId(),open:w,onOpenChange:m,onOpenToggle:p.useCallback(()=>m(k=>!k),[m]),modal:u,children:a.jsx(d.Root,{...l,open:w,onOpenChange:m,dir:r,modal:u,children:o})})};D.displayName=f;var A="DropdownMenuTrigger",v=p.forwardRef((e,n)=>{const{__scopeDropdownMenu:o,disabled:r=!1,...t}=e,s=y(A,o),c=i(o);return a.jsx(d.Anchor,{asChild:!0,...c,children:a.jsx(K.Primitive.button,{type:"button",id:s.triggerId,"aria-haspopup":"menu","aria-expanded":s.open,"aria-controls":s.open?s.contentId:void 0,"data-state":s.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...t,ref:q.composeRefs(n,s.triggerRef),onPointerDown:M.composeEventHandlers(e.onPointerDown,u=>{!r&&u.button===0&&u.ctrlKey===!1&&(s.onOpenToggle(),s.open||u.preventDefault())}),onKeyDown:M.composeEventHandlers(e.onKeyDown,u=>{r||(["Enter"," "].includes(u.key)&&s.onOpenToggle(),u.key==="ArrowDown"&&s.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(u.key)&&u.preventDefault())})})})});v.displayName=A;var W="DropdownMenuPortal",x=e=>{const{__scopeDropdownMenu:n,...o}=e,r=i(n);return a.jsx(d.Portal,{...r,...o})};x.displayName=W;var O="DropdownMenuContent",b=p.forwardRef((e,n)=>{const{__scopeDropdownMenu:o,...r}=e,t=y(O,o),s=i(o),c=p.useRef(!1);return a.jsx(d.Content,{id:t.contentId,"aria-labelledby":t.triggerId,...s,...r,ref:n,onCloseAutoFocus:M.composeEventHandlers(e.onCloseAutoFocus,u=>{c.current||t.triggerRef.current?.focus(),c.current=!1,u.preventDefault()}),onInteractOutside:M.composeEventHandlers(e.onInteractOutside,u=>{const l=u.detail.originalEvent,g=l.button===0&&l.ctrlKey===!0,w=l.button===2||g;(!t.modal||w)&&(c.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});b.displayName=O;var z="DropdownMenuGroup",T=p.forwardRef((e,n)=>{const{__scopeDropdownMenu:o,...r}=e,t=i(o);return a.jsx(d.Group,{...t,...r,ref:n})});T.displayName=z;var X="DropdownMenuLabel",_=p.forwardRef((e,n)=>{const{__scopeDropdownMenu:o,...r}=e,t=i(o);return a.jsx(d.Label,{...t,...r,ref:n})});_.displayName=X;var J="DropdownMenuItem",I=p.forwardRef((e,n)=>{const{__scopeDropdownMenu:o,...r}=e,t=i(o);return a.jsx(d.Item,{...t,...r,ref:n})});I.displayName=J;var Q="DropdownMenuCheckboxItem",R=p.forwardRef((e,n)=>{const{__scopeDropdownMenu:o,...r}=e,t=i(o);return a.jsx(d.CheckboxItem,{...t,...r,ref:n})});R.displayName=Q;var V="DropdownMenuRadioGroup",j=p.forwardRef((e,n)=>{const{__scopeDropdownMenu:o,...r}=e,t=i(o);return a.jsx(d.RadioGroup,{...t,...r,ref:n})});j.displayName=V;var Y="DropdownMenuRadioItem",h=p.forwardRef((e,n)=>{const{__scopeDropdownMenu:o,...r}=e,t=i(o);return a.jsx(d.RadioItem,{...t,...r,ref:n})});h.displayName=Y;var Z="DropdownMenuItemIndicator",S=p.forwardRef((e,n)=>{const{__scopeDropdownMenu:o,...r}=e,t=i(o);return a.jsx(d.ItemIndicator,{...t,...r,ref:n})});S.displayName=Z;var ee="DropdownMenuSeparator",C=p.forwardRef((e,n)=>{const{__scopeDropdownMenu:o,...r}=e,t=i(o);return a.jsx(d.Separator,{...t,...r,ref:n})});C.displayName=ee;var oe="DropdownMenuArrow",G=p.forwardRef((e,n)=>{const{__scopeDropdownMenu:o,...r}=e,t=i(o);return a.jsx(d.Arrow,{...t,...r,ref:n})});G.displayName=oe;var re="DropdownMenuSubTrigger",N=p.forwardRef((e,n)=>{const{__scopeDropdownMenu:o,...r}=e,t=i(o);return a.jsx(d.SubTrigger,{...t,...r,ref:n})});N.displayName=re;var ne="DropdownMenuSubContent",E=p.forwardRef((e,n)=>{const{__scopeDropdownMenu:o,...r}=e,t=i(o);return a.jsx(d.SubContent,{...t,...r,ref:n,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});E.displayName=ne;var te=D,ae=v,de=x,pe=b,ue=_,ie=I,se=R,ce=h,le=S,we=C,me=N,Me=E;exports.CheckboxItem=se;exports.Content=pe;exports.DropdownMenu=D;exports.DropdownMenuArrow=G;exports.DropdownMenuCheckboxItem=R;exports.DropdownMenuContent=b;exports.DropdownMenuGroup=T;exports.DropdownMenuItem=I;exports.DropdownMenuItemIndicator=S;exports.DropdownMenuLabel=_;exports.DropdownMenuPortal=x;exports.DropdownMenuRadioGroup=j;exports.DropdownMenuRadioItem=h;exports.DropdownMenuSeparator=C;exports.DropdownMenuSubContent=E;exports.DropdownMenuSubTrigger=N;exports.DropdownMenuTrigger=v;exports.Item=ie;exports.ItemIndicator=le;exports.Label=ue;exports.Portal=de;exports.RadioItem=ce;exports.Root=te;exports.Separator=we;exports.SubContent=Me;exports.SubTrigger=me;exports.Trigger=ae;
2
+ //# sourceMappingURL=index.cjs.map