@abcagency/hc-ui-components 1.3.82 → 1.3.84

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 (248) hide show
  1. package/dist/components/HireControlMap.js +1 -1
  2. package/dist/components/containers/filter/commute-container.js +1 -1
  3. package/dist/components/containers/maps/map-container.js +1 -1
  4. package/dist/components/containers/maps/map-marker-container.js +1 -1
  5. package/dist/components/modules/accordions/default.js +2 -2
  6. package/dist/components/modules/buttons/button-group-apply.js +1 -1
  7. package/dist/components/modules/buttons/default.js +2 -2
  8. package/dist/components/modules/cards/default.js +2 -2
  9. package/dist/components/modules/dialogs/apply-dialog.js +1 -1
  10. package/dist/components/modules/filter/commute.js +2 -2
  11. package/dist/components/modules/filter/index.js +8 -7
  12. package/dist/components/modules/filter/index.js.map +1 -1
  13. package/dist/components/modules/filter/sort.js +2 -2
  14. package/dist/components/modules/grid.js +1 -1
  15. package/dist/components/modules/icon.js +1 -1
  16. package/dist/components/modules/list/header.js +1 -1
  17. package/dist/components/modules/list/item-expand-card/index.js +1 -1
  18. package/dist/components/modules/list/item-list.js +3 -1
  19. package/dist/components/modules/list/item-list.js.map +1 -1
  20. package/dist/components/modules/maps/map-marker.js +1 -1
  21. package/dist/components/modules/maps/map.js +1 -1
  22. package/dist/components/modules/maps/place-marker.js +1 -1
  23. package/dist/components/modules/maps/tabs.js +16 -56
  24. package/dist/components/modules/maps/tabs.js.map +1 -1
  25. package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.js +802 -0
  26. package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.js.map +1 -0
  27. package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +679 -0
  28. package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js.map +1 -0
  29. package/dist/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js +343 -0
  30. package/dist/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js.map +1 -0
  31. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +140 -0
  32. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js.map +1 -0
  33. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +137 -0
  34. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.js.map +1 -0
  35. package/dist/node_modules/@headlessui/react/dist/components/combobox/combobox.js +33 -0
  36. package/dist/node_modules/@headlessui/react/dist/components/combobox/combobox.js.map +1 -0
  37. package/dist/node_modules/@headlessui/react/dist/components/keyboard.js +4 -0
  38. package/dist/node_modules/@headlessui/react/dist/components/keyboard.js.map +1 -0
  39. package/dist/node_modules/@headlessui/react/dist/components/transitions/transition.js +19 -0
  40. package/dist/node_modules/@headlessui/react/dist/components/transitions/transition.js.map +1 -0
  41. package/dist/node_modules/@headlessui/react/dist/components/transitions/utils/transition.js +8 -0
  42. package/dist/node_modules/@headlessui/react/dist/components/transitions/utils/transition.js.map +1 -0
  43. package/dist/node_modules/@headlessui/react/dist/hooks/use-computed.js +8 -0
  44. package/dist/node_modules/@headlessui/react/dist/hooks/use-computed.js.map +1 -0
  45. package/dist/node_modules/@headlessui/react/dist/hooks/use-controllable.js +7 -0
  46. package/dist/node_modules/@headlessui/react/dist/hooks/use-controllable.js.map +1 -0
  47. package/dist/node_modules/@headlessui/react/dist/hooks/use-disposables.js +7 -0
  48. package/dist/node_modules/@headlessui/react/dist/hooks/use-disposables.js.map +1 -0
  49. package/dist/node_modules/@headlessui/react/dist/hooks/use-document-event.js +7 -0
  50. package/dist/node_modules/@headlessui/react/dist/hooks/use-document-event.js.map +1 -0
  51. package/dist/node_modules/@headlessui/react/dist/hooks/use-event.js +7 -0
  52. package/dist/node_modules/@headlessui/react/dist/hooks/use-event.js.map +1 -0
  53. package/dist/node_modules/@headlessui/react/dist/hooks/use-flags.js +7 -0
  54. package/dist/node_modules/@headlessui/react/dist/hooks/use-flags.js.map +1 -0
  55. package/dist/node_modules/@headlessui/react/dist/hooks/use-id.js +9 -0
  56. package/dist/node_modules/@headlessui/react/dist/hooks/use-id.js.map +1 -0
  57. package/dist/node_modules/@headlessui/react/dist/hooks/use-is-mounted.js +7 -0
  58. package/dist/node_modules/@headlessui/react/dist/hooks/use-is-mounted.js.map +1 -0
  59. package/dist/node_modules/@headlessui/react/dist/hooks/use-iso-morphic-effect.js +7 -0
  60. package/dist/node_modules/@headlessui/react/dist/hooks/use-iso-morphic-effect.js.map +1 -0
  61. package/dist/node_modules/@headlessui/react/dist/hooks/use-latest-value.js +7 -0
  62. package/dist/node_modules/@headlessui/react/dist/hooks/use-latest-value.js.map +1 -0
  63. package/dist/node_modules/@headlessui/react/dist/hooks/use-outside-click.js +10 -0
  64. package/dist/node_modules/@headlessui/react/dist/hooks/use-outside-click.js.map +1 -0
  65. package/dist/node_modules/@headlessui/react/dist/hooks/use-owner.js +7 -0
  66. package/dist/node_modules/@headlessui/react/dist/hooks/use-owner.js.map +1 -0
  67. package/dist/node_modules/@headlessui/react/dist/hooks/use-resolve-button-type.js +7 -0
  68. package/dist/node_modules/@headlessui/react/dist/hooks/use-resolve-button-type.js.map +1 -0
  69. package/dist/node_modules/@headlessui/react/dist/hooks/use-server-handoff-complete.js +7 -0
  70. package/dist/node_modules/@headlessui/react/dist/hooks/use-server-handoff-complete.js.map +1 -0
  71. package/dist/node_modules/@headlessui/react/dist/hooks/use-sync-refs.js +7 -0
  72. package/dist/node_modules/@headlessui/react/dist/hooks/use-sync-refs.js.map +1 -0
  73. package/dist/node_modules/@headlessui/react/dist/hooks/use-tracked-pointer.js +6 -0
  74. package/dist/node_modules/@headlessui/react/dist/hooks/use-tracked-pointer.js.map +1 -0
  75. package/dist/node_modules/@headlessui/react/dist/hooks/use-transition.js +11 -0
  76. package/dist/node_modules/@headlessui/react/dist/hooks/use-transition.js.map +1 -0
  77. package/dist/node_modules/@headlessui/react/dist/hooks/use-tree-walker.js +8 -0
  78. package/dist/node_modules/@headlessui/react/dist/hooks/use-tree-walker.js.map +1 -0
  79. package/dist/node_modules/@headlessui/react/dist/hooks/use-watch.js +7 -0
  80. package/dist/node_modules/@headlessui/react/dist/hooks/use-watch.js.map +1 -0
  81. package/dist/node_modules/@headlessui/react/dist/hooks/use-window-event.js +7 -0
  82. package/dist/node_modules/@headlessui/react/dist/hooks/use-window-event.js.map +1 -0
  83. package/dist/node_modules/@headlessui/react/dist/internal/hidden.js +6 -0
  84. package/dist/node_modules/@headlessui/react/dist/internal/hidden.js.map +1 -0
  85. package/dist/node_modules/@headlessui/react/dist/internal/open-closed.js +6 -0
  86. package/dist/node_modules/@headlessui/react/dist/internal/open-closed.js.map +1 -0
  87. package/dist/node_modules/@headlessui/react/dist/utils/active-element-history.js +6 -0
  88. package/dist/node_modules/@headlessui/react/dist/utils/active-element-history.js.map +1 -0
  89. package/dist/node_modules/@headlessui/react/dist/utils/bugs.js +4 -0
  90. package/dist/node_modules/@headlessui/react/dist/utils/bugs.js.map +1 -0
  91. package/dist/node_modules/@headlessui/react/dist/utils/calculate-active-index.js +4 -0
  92. package/dist/node_modules/@headlessui/react/dist/utils/calculate-active-index.js.map +1 -0
  93. package/dist/node_modules/@headlessui/react/dist/utils/class-names.js +4 -0
  94. package/dist/node_modules/@headlessui/react/dist/utils/class-names.js.map +1 -0
  95. package/dist/node_modules/@headlessui/react/dist/utils/disposables.js +6 -0
  96. package/dist/node_modules/@headlessui/react/dist/utils/disposables.js.map +1 -0
  97. package/dist/node_modules/@headlessui/react/dist/utils/document-ready.js +4 -0
  98. package/dist/node_modules/@headlessui/react/dist/utils/document-ready.js.map +1 -0
  99. package/dist/node_modules/@headlessui/react/dist/utils/env.js +4 -0
  100. package/dist/node_modules/@headlessui/react/dist/utils/env.js.map +1 -0
  101. package/dist/node_modules/@headlessui/react/dist/utils/focus-management.js +7 -0
  102. package/dist/node_modules/@headlessui/react/dist/utils/focus-management.js.map +1 -0
  103. package/dist/node_modules/@headlessui/react/dist/utils/form.js +4 -0
  104. package/dist/node_modules/@headlessui/react/dist/utils/form.js.map +1 -0
  105. package/dist/node_modules/@headlessui/react/dist/utils/match.js +4 -0
  106. package/dist/node_modules/@headlessui/react/dist/utils/match.js.map +1 -0
  107. package/dist/node_modules/@headlessui/react/dist/utils/micro-task.js +4 -0
  108. package/dist/node_modules/@headlessui/react/dist/utils/micro-task.js.map +1 -0
  109. package/dist/node_modules/@headlessui/react/dist/utils/once.js +4 -0
  110. package/dist/node_modules/@headlessui/react/dist/utils/once.js.map +1 -0
  111. package/dist/node_modules/@headlessui/react/dist/utils/owner.js +6 -0
  112. package/dist/node_modules/@headlessui/react/dist/utils/owner.js.map +1 -0
  113. package/dist/node_modules/@headlessui/react/dist/utils/platform.js +4 -0
  114. package/dist/node_modules/@headlessui/react/dist/utils/platform.js.map +1 -0
  115. package/dist/node_modules/@headlessui/react/dist/utils/render.js +11 -0
  116. package/dist/node_modules/@headlessui/react/dist/utils/render.js.map +1 -0
  117. package/dist/node_modules/@iconify/react/dist/iconify.js +1928 -0
  118. package/dist/node_modules/@iconify/react/dist/iconify.js.map +1 -0
  119. package/dist/node_modules/@radix-ui/number/dist/index.js +7 -0
  120. package/dist/node_modules/@radix-ui/number/dist/index.js.map +1 -0
  121. package/dist/node_modules/@radix-ui/primitive/dist/index.js +12 -0
  122. package/dist/node_modules/@radix-ui/primitive/dist/index.js.map +1 -0
  123. package/dist/node_modules/@radix-ui/react-accordion/dist/index.js +304 -0
  124. package/dist/node_modules/@radix-ui/react-accordion/dist/index.js.map +1 -0
  125. package/dist/node_modules/@radix-ui/react-arrow/dist/index.js +26 -0
  126. package/dist/node_modules/@radix-ui/react-arrow/dist/index.js.map +1 -0
  127. package/dist/node_modules/@radix-ui/react-collapsible/dist/index.js +145 -0
  128. package/dist/node_modules/@radix-ui/react-collapsible/dist/index.js.map +1 -0
  129. package/dist/node_modules/@radix-ui/react-collection/dist/index.js +69 -0
  130. package/dist/node_modules/@radix-ui/react-collection/dist/index.js.map +1 -0
  131. package/dist/node_modules/@radix-ui/react-compose-refs/dist/index.js +19 -0
  132. package/dist/node_modules/@radix-ui/react-compose-refs/dist/index.js.map +1 -0
  133. package/dist/node_modules/@radix-ui/react-context/dist/index.js +80 -0
  134. package/dist/node_modules/@radix-ui/react-context/dist/index.js.map +1 -0
  135. package/dist/node_modules/@radix-ui/react-dialog/dist/index.js +320 -0
  136. package/dist/node_modules/@radix-ui/react-dialog/dist/index.js.map +1 -0
  137. package/dist/node_modules/@radix-ui/react-direction/dist/index.js +12 -0
  138. package/dist/node_modules/@radix-ui/react-direction/dist/index.js.map +1 -0
  139. package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.js +212 -0
  140. package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.js.map +1 -0
  141. package/dist/node_modules/@radix-ui/react-focus-guards/dist/index.js +27 -0
  142. package/dist/node_modules/@radix-ui/react-focus-guards/dist/index.js.map +1 -0
  143. package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.js +208 -0
  144. package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.js.map +1 -0
  145. package/dist/node_modules/@radix-ui/react-id/dist/index.js +16 -0
  146. package/dist/node_modules/@radix-ui/react-id/dist/index.js.map +1 -0
  147. package/dist/node_modules/@radix-ui/react-popper/dist/index.js +279 -0
  148. package/dist/node_modules/@radix-ui/react-popper/dist/index.js.map +1 -0
  149. package/dist/node_modules/@radix-ui/react-portal/dist/index.js +18 -0
  150. package/dist/node_modules/@radix-ui/react-portal/dist/index.js.map +1 -0
  151. package/dist/node_modules/@radix-ui/react-presence/dist/index.js +120 -0
  152. package/dist/node_modules/@radix-ui/react-presence/dist/index.js.map +1 -0
  153. package/dist/node_modules/@radix-ui/react-primitive/dist/index.js +42 -0
  154. package/dist/node_modules/@radix-ui/react-primitive/dist/index.js.map +1 -0
  155. package/dist/node_modules/@radix-ui/react-roving-focus/dist/index.js +221 -0
  156. package/dist/node_modules/@radix-ui/react-roving-focus/dist/index.js.map +1 -0
  157. package/dist/node_modules/@radix-ui/react-select/dist/index.js +1109 -0
  158. package/dist/node_modules/@radix-ui/react-select/dist/index.js.map +1 -0
  159. package/dist/node_modules/@radix-ui/react-slot/dist/index.js +82 -0
  160. package/dist/node_modules/@radix-ui/react-slot/dist/index.js.map +1 -0
  161. package/dist/node_modules/@radix-ui/react-tabs/dist/index.js +187 -0
  162. package/dist/node_modules/@radix-ui/react-tabs/dist/index.js.map +1 -0
  163. package/dist/node_modules/@radix-ui/react-use-callback-ref/dist/index.js +13 -0
  164. package/dist/node_modules/@radix-ui/react-use-callback-ref/dist/index.js.map +1 -0
  165. package/dist/node_modules/@radix-ui/react-use-controllable-state/dist/index.js +47 -0
  166. package/dist/node_modules/@radix-ui/react-use-controllable-state/dist/index.js.map +1 -0
  167. package/dist/node_modules/@radix-ui/react-use-escape-keydown/dist/index.js +19 -0
  168. package/dist/node_modules/@radix-ui/react-use-escape-keydown/dist/index.js.map +1 -0
  169. package/dist/node_modules/@radix-ui/react-use-layout-effect/dist/index.js +8 -0
  170. package/dist/node_modules/@radix-ui/react-use-layout-effect/dist/index.js.map +1 -0
  171. package/dist/node_modules/@radix-ui/react-use-previous/dist/index.js +16 -0
  172. package/dist/node_modules/@radix-ui/react-use-previous/dist/index.js.map +1 -0
  173. package/dist/node_modules/@radix-ui/react-use-size/dist/index.js +41 -0
  174. package/dist/node_modules/@radix-ui/react-use-size/dist/index.js.map +1 -0
  175. package/dist/node_modules/@radix-ui/react-visually-hidden/dist/index.js +35 -0
  176. package/dist/node_modules/@radix-ui/react-visually-hidden/dist/index.js.map +1 -0
  177. package/dist/node_modules/@react-google-maps/api/dist/esm.js +8515 -0
  178. package/dist/node_modules/@react-google-maps/api/dist/esm.js.map +1 -0
  179. package/dist/node_modules/@remix-run/router/dist/router.js +271 -0
  180. package/dist/node_modules/@remix-run/router/dist/router.js.map +1 -0
  181. package/dist/node_modules/@tanstack/react-virtual/dist/esm/index.js +43 -0
  182. package/dist/node_modules/@tanstack/react-virtual/dist/esm/index.js.map +1 -0
  183. package/dist/node_modules/@tanstack/virtual-core/dist/esm/index.js +669 -0
  184. package/dist/node_modules/@tanstack/virtual-core/dist/esm/index.js.map +1 -0
  185. package/dist/node_modules/@tanstack/virtual-core/dist/esm/utils.js +61 -0
  186. package/dist/node_modules/@tanstack/virtual-core/dist/esm/utils.js.map +1 -0
  187. package/dist/node_modules/aria-hidden/dist/es2015/index.js +137 -0
  188. package/dist/node_modules/aria-hidden/dist/es2015/index.js.map +1 -0
  189. package/dist/node_modules/fuse.js/dist/fuse.js +1779 -0
  190. package/dist/node_modules/fuse.js/dist/fuse.js.map +1 -0
  191. package/dist/node_modules/get-nonce/dist/es2015/index.js +9 -0
  192. package/dist/node_modules/get-nonce/dist/es2015/index.js.map +1 -0
  193. package/dist/node_modules/react/cjs/react-jsx-runtime.production.min.js +17 -0
  194. package/dist/node_modules/react/cjs/react-jsx-runtime.production.min.js.map +1 -0
  195. package/dist/node_modules/react/jsx-runtime.js +12 -0
  196. package/dist/node_modules/react/jsx-runtime.js.map +1 -0
  197. package/dist/node_modules/react-remove-scroll/dist/es2015/Combination.js +10 -0
  198. package/dist/node_modules/react-remove-scroll/dist/es2015/Combination.js.map +1 -0
  199. package/dist/node_modules/react-remove-scroll/dist/es2015/SideEffect.js +161 -0
  200. package/dist/node_modules/react-remove-scroll/dist/es2015/SideEffect.js.map +1 -0
  201. package/dist/node_modules/react-remove-scroll/dist/es2015/UI.js +39 -0
  202. package/dist/node_modules/react-remove-scroll/dist/es2015/UI.js.map +1 -0
  203. package/dist/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js +22 -0
  204. package/dist/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js.map +1 -0
  205. package/dist/node_modules/react-remove-scroll/dist/es2015/handleScroll.js +107 -0
  206. package/dist/node_modules/react-remove-scroll/dist/es2015/handleScroll.js.map +1 -0
  207. package/dist/node_modules/react-remove-scroll/dist/es2015/medium.js +6 -0
  208. package/dist/node_modules/react-remove-scroll/dist/es2015/medium.js.map +1 -0
  209. package/dist/node_modules/react-remove-scroll/dist/es2015/sidecar.js +8 -0
  210. package/dist/node_modules/react-remove-scroll/dist/es2015/sidecar.js.map +1 -0
  211. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/component.js +57 -0
  212. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/component.js.map +1 -0
  213. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/constants.js +11 -0
  214. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/constants.js.map +1 -0
  215. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/utils.js +32 -0
  216. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/utils.js.map +1 -0
  217. package/dist/node_modules/react-router/dist/index.js +280 -0
  218. package/dist/node_modules/react-router/dist/index.js.map +1 -0
  219. package/dist/node_modules/react-router-dom/dist/index.js +201 -0
  220. package/dist/node_modules/react-router-dom/dist/index.js.map +1 -0
  221. package/dist/node_modules/react-style-singleton/dist/es2015/component.js +20 -0
  222. package/dist/node_modules/react-style-singleton/dist/es2015/component.js.map +1 -0
  223. package/dist/node_modules/react-style-singleton/dist/es2015/hook.js +26 -0
  224. package/dist/node_modules/react-style-singleton/dist/es2015/hook.js.map +1 -0
  225. package/dist/node_modules/react-style-singleton/dist/es2015/singleton.js +52 -0
  226. package/dist/node_modules/react-style-singleton/dist/es2015/singleton.js.map +1 -0
  227. package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js +2530 -0
  228. package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js.map +1 -0
  229. package/dist/node_modules/tslib/tslib.es6.js +57 -0
  230. package/dist/node_modules/tslib/tslib.es6.js.map +1 -0
  231. package/dist/node_modules/use-callback-ref/dist/es2015/assignRef.js +25 -0
  232. package/dist/node_modules/use-callback-ref/dist/es2015/assignRef.js.map +1 -0
  233. package/dist/node_modules/use-callback-ref/dist/es2015/useMergeRef.js +49 -0
  234. package/dist/node_modules/use-callback-ref/dist/es2015/useMergeRef.js.map +1 -0
  235. package/dist/node_modules/use-callback-ref/dist/es2015/useRef.js +43 -0
  236. package/dist/node_modules/use-callback-ref/dist/es2015/useRef.js.map +1 -0
  237. package/dist/node_modules/use-places-autocomplete/dist/index.esm.js +243 -0
  238. package/dist/node_modules/use-places-autocomplete/dist/index.esm.js.map +1 -0
  239. package/dist/node_modules/use-sidecar/dist/es2015/exports.js +22 -0
  240. package/dist/node_modules/use-sidecar/dist/es2015/exports.js.map +1 -0
  241. package/dist/node_modules/use-sidecar/dist/es2015/medium.js +78 -0
  242. package/dist/node_modules/use-sidecar/dist/es2015/medium.js.map +1 -0
  243. package/dist/styles/index.css +1 -1
  244. package/dist/util/filterUtil.js +1 -1
  245. package/package.json +1 -1
  246. package/src/components/modules/filter/index.js +10 -6
  247. package/src/components/modules/list/item-list.tsx +1 -3
  248. package/src/components/modules/maps/tabs.js +36 -49
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../../../node_modules/@radix-ui/react-accordion/dist/index.mjs"],"sourcesContent":["\"use client\";\n\n// packages/react/accordion/src/Accordion.tsx\nimport React from \"react\";\nimport { createContextScope } from \"@radix-ui/react-context\";\nimport { createCollection } from \"@radix-ui/react-collection\";\nimport { useComposedRefs } from \"@radix-ui/react-compose-refs\";\nimport { composeEventHandlers } from \"@radix-ui/primitive\";\nimport { useControllableState } from \"@radix-ui/react-use-controllable-state\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport * as CollapsiblePrimitive from \"@radix-ui/react-collapsible\";\nimport { createCollapsibleScope } from \"@radix-ui/react-collapsible\";\nimport { useId } from \"@radix-ui/react-id\";\nimport { useDirection } from \"@radix-ui/react-direction\";\nimport { jsx } from \"react/jsx-runtime\";\nvar ACCORDION_NAME = \"Accordion\";\nvar ACCORDION_KEYS = [\"Home\", \"End\", \"ArrowDown\", \"ArrowUp\", \"ArrowLeft\", \"ArrowRight\"];\nvar [Collection, useCollection, createCollectionScope] = createCollection(ACCORDION_NAME);\nvar [createAccordionContext, createAccordionScope] = createContextScope(ACCORDION_NAME, [\n createCollectionScope,\n createCollapsibleScope\n]);\nvar useCollapsibleScope = createCollapsibleScope();\nvar Accordion = React.forwardRef(\n (props, forwardedRef) => {\n const { type, ...accordionProps } = props;\n const singleProps = accordionProps;\n const multipleProps = accordionProps;\n return /* @__PURE__ */ jsx(Collection.Provider, { scope: props.__scopeAccordion, children: type === \"multiple\" ? /* @__PURE__ */ jsx(AccordionImplMultiple, { ...multipleProps, ref: forwardedRef }) : /* @__PURE__ */ jsx(AccordionImplSingle, { ...singleProps, ref: forwardedRef }) });\n }\n);\nAccordion.displayName = ACCORDION_NAME;\nvar [AccordionValueProvider, useAccordionValueContext] = createAccordionContext(ACCORDION_NAME);\nvar [AccordionCollapsibleProvider, useAccordionCollapsibleContext] = createAccordionContext(\n ACCORDION_NAME,\n { collapsible: false }\n);\nvar AccordionImplSingle = React.forwardRef(\n (props, forwardedRef) => {\n const {\n value: valueProp,\n defaultValue,\n onValueChange = () => {\n },\n collapsible = false,\n ...accordionSingleProps\n } = props;\n const [value, setValue] = useControllableState({\n prop: valueProp,\n defaultProp: defaultValue,\n onChange: onValueChange\n });\n return /* @__PURE__ */ jsx(\n AccordionValueProvider,\n {\n scope: props.__scopeAccordion,\n value: value ? [value] : [],\n onItemOpen: setValue,\n onItemClose: React.useCallback(() => collapsible && setValue(\"\"), [collapsible, setValue]),\n children: /* @__PURE__ */ jsx(AccordionCollapsibleProvider, { scope: props.__scopeAccordion, collapsible, children: /* @__PURE__ */ jsx(AccordionImpl, { ...accordionSingleProps, ref: forwardedRef }) })\n }\n );\n }\n);\nvar AccordionImplMultiple = React.forwardRef((props, forwardedRef) => {\n const {\n value: valueProp,\n defaultValue,\n onValueChange = () => {\n },\n ...accordionMultipleProps\n } = props;\n const [value = [], setValue] = useControllableState({\n prop: valueProp,\n defaultProp: defaultValue,\n onChange: onValueChange\n });\n const handleItemOpen = React.useCallback(\n (itemValue) => setValue((prevValue = []) => [...prevValue, itemValue]),\n [setValue]\n );\n const handleItemClose = React.useCallback(\n (itemValue) => setValue((prevValue = []) => prevValue.filter((value2) => value2 !== itemValue)),\n [setValue]\n );\n return /* @__PURE__ */ jsx(\n AccordionValueProvider,\n {\n scope: props.__scopeAccordion,\n value,\n onItemOpen: handleItemOpen,\n onItemClose: handleItemClose,\n children: /* @__PURE__ */ jsx(AccordionCollapsibleProvider, { scope: props.__scopeAccordion, collapsible: true, children: /* @__PURE__ */ jsx(AccordionImpl, { ...accordionMultipleProps, ref: forwardedRef }) })\n }\n );\n});\nvar [AccordionImplProvider, useAccordionContext] = createAccordionContext(ACCORDION_NAME);\nvar AccordionImpl = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeAccordion, disabled, dir, orientation = \"vertical\", ...accordionProps } = props;\n const accordionRef = React.useRef(null);\n const composedRefs = useComposedRefs(accordionRef, forwardedRef);\n const getItems = useCollection(__scopeAccordion);\n const direction = useDirection(dir);\n const isDirectionLTR = direction === \"ltr\";\n const handleKeyDown = composeEventHandlers(props.onKeyDown, (event) => {\n if (!ACCORDION_KEYS.includes(event.key)) return;\n const target = event.target;\n const triggerCollection = getItems().filter((item) => !item.ref.current?.disabled);\n const triggerIndex = triggerCollection.findIndex((item) => item.ref.current === target);\n const triggerCount = triggerCollection.length;\n if (triggerIndex === -1) return;\n event.preventDefault();\n let nextIndex = triggerIndex;\n const homeIndex = 0;\n const endIndex = triggerCount - 1;\n const moveNext = () => {\n nextIndex = triggerIndex + 1;\n if (nextIndex > endIndex) {\n nextIndex = homeIndex;\n }\n };\n const movePrev = () => {\n nextIndex = triggerIndex - 1;\n if (nextIndex < homeIndex) {\n nextIndex = endIndex;\n }\n };\n switch (event.key) {\n case \"Home\":\n nextIndex = homeIndex;\n break;\n case \"End\":\n nextIndex = endIndex;\n break;\n case \"ArrowRight\":\n if (orientation === \"horizontal\") {\n if (isDirectionLTR) {\n moveNext();\n } else {\n movePrev();\n }\n }\n break;\n case \"ArrowDown\":\n if (orientation === \"vertical\") {\n moveNext();\n }\n break;\n case \"ArrowLeft\":\n if (orientation === \"horizontal\") {\n if (isDirectionLTR) {\n movePrev();\n } else {\n moveNext();\n }\n }\n break;\n case \"ArrowUp\":\n if (orientation === \"vertical\") {\n movePrev();\n }\n break;\n }\n const clampedIndex = nextIndex % triggerCount;\n triggerCollection[clampedIndex].ref.current?.focus();\n });\n return /* @__PURE__ */ jsx(\n AccordionImplProvider,\n {\n scope: __scopeAccordion,\n disabled,\n direction: dir,\n orientation,\n children: /* @__PURE__ */ jsx(Collection.Slot, { scope: __scopeAccordion, children: /* @__PURE__ */ jsx(\n Primitive.div,\n {\n ...accordionProps,\n \"data-orientation\": orientation,\n ref: composedRefs,\n onKeyDown: disabled ? void 0 : handleKeyDown\n }\n ) })\n }\n );\n }\n);\nvar ITEM_NAME = \"AccordionItem\";\nvar [AccordionItemProvider, useAccordionItemContext] = createAccordionContext(ITEM_NAME);\nvar AccordionItem = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeAccordion, value, ...accordionItemProps } = props;\n const accordionContext = useAccordionContext(ITEM_NAME, __scopeAccordion);\n const valueContext = useAccordionValueContext(ITEM_NAME, __scopeAccordion);\n const collapsibleScope = useCollapsibleScope(__scopeAccordion);\n const triggerId = useId();\n const open = value && valueContext.value.includes(value) || false;\n const disabled = accordionContext.disabled || props.disabled;\n return /* @__PURE__ */ jsx(\n AccordionItemProvider,\n {\n scope: __scopeAccordion,\n open,\n disabled,\n triggerId,\n children: /* @__PURE__ */ jsx(\n CollapsiblePrimitive.Root,\n {\n \"data-orientation\": accordionContext.orientation,\n \"data-state\": getState(open),\n ...collapsibleScope,\n ...accordionItemProps,\n ref: forwardedRef,\n disabled,\n open,\n onOpenChange: (open2) => {\n if (open2) {\n valueContext.onItemOpen(value);\n } else {\n valueContext.onItemClose(value);\n }\n }\n }\n )\n }\n );\n }\n);\nAccordionItem.displayName = ITEM_NAME;\nvar HEADER_NAME = \"AccordionHeader\";\nvar AccordionHeader = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeAccordion, ...headerProps } = props;\n const accordionContext = useAccordionContext(ACCORDION_NAME, __scopeAccordion);\n const itemContext = useAccordionItemContext(HEADER_NAME, __scopeAccordion);\n return /* @__PURE__ */ jsx(\n Primitive.h3,\n {\n \"data-orientation\": accordionContext.orientation,\n \"data-state\": getState(itemContext.open),\n \"data-disabled\": itemContext.disabled ? \"\" : void 0,\n ...headerProps,\n ref: forwardedRef\n }\n );\n }\n);\nAccordionHeader.displayName = HEADER_NAME;\nvar TRIGGER_NAME = \"AccordionTrigger\";\nvar AccordionTrigger = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeAccordion, ...triggerProps } = props;\n const accordionContext = useAccordionContext(ACCORDION_NAME, __scopeAccordion);\n const itemContext = useAccordionItemContext(TRIGGER_NAME, __scopeAccordion);\n const collapsibleContext = useAccordionCollapsibleContext(TRIGGER_NAME, __scopeAccordion);\n const collapsibleScope = useCollapsibleScope(__scopeAccordion);\n return /* @__PURE__ */ jsx(Collection.ItemSlot, { scope: __scopeAccordion, children: /* @__PURE__ */ jsx(\n CollapsiblePrimitive.Trigger,\n {\n \"aria-disabled\": itemContext.open && !collapsibleContext.collapsible || void 0,\n \"data-orientation\": accordionContext.orientation,\n id: itemContext.triggerId,\n ...collapsibleScope,\n ...triggerProps,\n ref: forwardedRef\n }\n ) });\n }\n);\nAccordionTrigger.displayName = TRIGGER_NAME;\nvar CONTENT_NAME = \"AccordionContent\";\nvar AccordionContent = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeAccordion, ...contentProps } = props;\n const accordionContext = useAccordionContext(ACCORDION_NAME, __scopeAccordion);\n const itemContext = useAccordionItemContext(CONTENT_NAME, __scopeAccordion);\n const collapsibleScope = useCollapsibleScope(__scopeAccordion);\n return /* @__PURE__ */ jsx(\n CollapsiblePrimitive.Content,\n {\n role: \"region\",\n \"aria-labelledby\": itemContext.triggerId,\n \"data-orientation\": accordionContext.orientation,\n ...collapsibleScope,\n ...contentProps,\n ref: forwardedRef,\n style: {\n [\"--radix-accordion-content-height\"]: \"var(--radix-collapsible-content-height)\",\n [\"--radix-accordion-content-width\"]: \"var(--radix-collapsible-content-width)\",\n ...props.style\n }\n }\n );\n }\n);\nAccordionContent.displayName = CONTENT_NAME;\nfunction getState(open) {\n return open ? \"open\" : \"closed\";\n}\nvar Root2 = Accordion;\nvar Item = AccordionItem;\nvar Header = AccordionHeader;\nvar Trigger2 = AccordionTrigger;\nvar Content2 = AccordionContent;\nexport {\n Accordion,\n AccordionContent,\n AccordionHeader,\n AccordionItem,\n AccordionTrigger,\n Content2 as Content,\n Header,\n Item,\n Root2 as Root,\n Trigger2 as Trigger,\n createAccordionScope\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["React","jsx","CollapsiblePrimitive.Root","CollapsiblePrimitive.Trigger","CollapsiblePrimitive.Content"],"mappings":";;;;;;;;;;;;AAeA,IAAI,cAAc,GAAG,WAAW,CAAC;AACjC,IAAI,cAAc,GAAG,CAAC,MAAM,EAAE,KAAK,EAAE,WAAW,EAAE,SAAS,EAAE,WAAW,EAAE,YAAY,CAAC,CAAC;AACxF,IAAI,CAAC,UAAU,EAAE,aAAa,EAAE,qBAAqB,CAAC,GAAG,gBAAgB,CAAC,cAAc,CAAC,CAAC;AACvF,IAAC,CAAC,sBAAsB,EAAE,oBAAoB,CAAC,GAAG,kBAAkB,CAAC,cAAc,EAAE;AACxF,EAAE,qBAAqB;AACvB,EAAE,sBAAsB;AACxB,CAAC,EAAE;AACH,IAAI,mBAAmB,GAAG,sBAAsB,EAAE,CAAC;AAChD,IAAC,SAAS,GAAGA,cAAK,CAAC,UAAU;AAChC,EAAE,CAAC,KAAK,EAAE,YAAY,KAAK;AAC3B,IAAI,MAAM,EAAE,IAAI,EAAE,GAAG,cAAc,EAAE,GAAG,KAAK,CAAC;AAC9C,IAAI,MAAM,WAAW,GAAG,cAAc,CAAC;AACvC,IAAI,MAAM,aAAa,GAAG,cAAc,CAAC;AACzC,IAAI,uBAAuBC,qBAAG,CAAC,UAAU,CAAC,QAAQ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0 +1,26 @@
1
+ import * as React from 'react';
2
+ import { Primitive } from '../../react-primitive/dist/index.js';
3
+ import { j as jsxRuntimeExports } from '../../../react/jsx-runtime.js';
4
+
5
+ // packages/react/arrow/src/Arrow.tsx
6
+ var NAME = "Arrow";
7
+ var Arrow = React.forwardRef((props, forwardedRef) => {
8
+ const { children, width = 10, height = 5, ...arrowProps } = props;
9
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(
10
+ Primitive.svg,
11
+ {
12
+ ...arrowProps,
13
+ ref: forwardedRef,
14
+ width,
15
+ height,
16
+ viewBox: "0 0 30 10",
17
+ preserveAspectRatio: "none",
18
+ children: props.asChild ? children : /* @__PURE__ */ jsxRuntimeExports.jsx("polygon", { points: "0,0 30,0 15,10" })
19
+ }
20
+ );
21
+ });
22
+ Arrow.displayName = NAME;
23
+ var Root = Arrow;
24
+
25
+ export { Arrow, Root };
26
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../../../node_modules/@radix-ui/react-arrow/dist/index.mjs"],"sourcesContent":["// packages/react/arrow/src/Arrow.tsx\nimport * as React from \"react\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport { jsx } from \"react/jsx-runtime\";\nvar NAME = \"Arrow\";\nvar Arrow = React.forwardRef((props, forwardedRef) => {\n const { children, width = 10, height = 5, ...arrowProps } = props;\n return /* @__PURE__ */ jsx(\n Primitive.svg,\n {\n ...arrowProps,\n ref: forwardedRef,\n width,\n height,\n viewBox: \"0 0 30 10\",\n preserveAspectRatio: \"none\",\n children: props.asChild ? children : /* @__PURE__ */ jsx(\"polygon\", { points: \"0,0 30,0 15,10\" })\n }\n );\n});\nArrow.displayName = NAME;\nvar Root = Arrow;\nexport {\n Arrow,\n Root\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["jsx"],"mappings":";;;;AAAA;AAIA,IAAI,IAAI,GAAG,OAAO,CAAC;AAChB,IAAC,KAAK,GAAG,KAAK,CAAC,UAAU,CAAC,CAAC,KAAK,EAAE,YAAY,KAAK;AACtD,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,GAAG,EAAE,EAAE,MAAM,GAAG,CAAC,EAAE,GAAG,UAAU,EAAE,GAAG,KAAK,CAAC;AACpE,EAAE,uBAAuBA,qBAAG;AAC5B,IAAI,SAAS,CAAC,GAAG;AACjB,IAAI;AACJ,MAAM,GAAG,UAAU;AACnB,MAAM,GAAG,EAAE,YAAY;AACvB,MAAM,KAAK;AACX,MAAM,MAAM;AACZ,MAAM,OAAO,EAAE,WAAW;AAC1B,MAAM,mBAAmB,EAAE,MAAM;AACjC,MAAM,QAAQ,EAAE,KAAK,CAAC,OAAO,GAAG,QAAQ,mBAAmBA,qBAAG,CAAC,SAAS,EAAE,EAAE,MAAM,EAAE,gBAAgB,EAAE,CAAC;AACvG,KAAK;AACL,GAAG,CAAC;AACJ,CAAC,EAAE;AACH,KAAK,CAAC,WAAW,GAAG,IAAI,CAAC;AACtB,IAAC,IAAI,GAAG;;;;","x_google_ignoreList":[0]}
@@ -0,0 +1,145 @@
1
+ import * as React from 'react';
2
+ import { composeEventHandlers } from '../../primitive/dist/index.js';
3
+ import { createContextScope } from '../../react-context/dist/index.js';
4
+ import { useControllableState } from '../../react-use-controllable-state/dist/index.js';
5
+ import { useLayoutEffect as useLayoutEffect2 } from '../../react-use-layout-effect/dist/index.js';
6
+ import { useComposedRefs } from '../../react-compose-refs/dist/index.js';
7
+ import { Primitive } from '../../react-primitive/dist/index.js';
8
+ import { Presence } from '../../react-presence/dist/index.js';
9
+ import { useId } from '../../react-id/dist/index.js';
10
+ import { j as jsxRuntimeExports } from '../../../react/jsx-runtime.js';
11
+
12
+ var COLLAPSIBLE_NAME = "Collapsible";
13
+ var [createCollapsibleContext, createCollapsibleScope] = createContextScope(COLLAPSIBLE_NAME);
14
+ var [CollapsibleProvider, useCollapsibleContext] = createCollapsibleContext(COLLAPSIBLE_NAME);
15
+ var Collapsible = React.forwardRef(
16
+ (props, forwardedRef) => {
17
+ const {
18
+ __scopeCollapsible,
19
+ open: openProp,
20
+ defaultOpen,
21
+ disabled,
22
+ onOpenChange,
23
+ ...collapsibleProps
24
+ } = props;
25
+ const [open = false, setOpen] = useControllableState({
26
+ prop: openProp,
27
+ defaultProp: defaultOpen,
28
+ onChange: onOpenChange
29
+ });
30
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(
31
+ CollapsibleProvider,
32
+ {
33
+ scope: __scopeCollapsible,
34
+ disabled,
35
+ contentId: useId(),
36
+ open,
37
+ onOpenToggle: React.useCallback(() => setOpen((prevOpen) => !prevOpen), [setOpen]),
38
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx(
39
+ Primitive.div,
40
+ {
41
+ "data-state": getState(open),
42
+ "data-disabled": disabled ? "" : void 0,
43
+ ...collapsibleProps,
44
+ ref: forwardedRef
45
+ }
46
+ )
47
+ }
48
+ );
49
+ }
50
+ );
51
+ Collapsible.displayName = COLLAPSIBLE_NAME;
52
+ var TRIGGER_NAME = "CollapsibleTrigger";
53
+ var CollapsibleTrigger = React.forwardRef(
54
+ (props, forwardedRef) => {
55
+ const { __scopeCollapsible, ...triggerProps } = props;
56
+ const context = useCollapsibleContext(TRIGGER_NAME, __scopeCollapsible);
57
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(
58
+ Primitive.button,
59
+ {
60
+ type: "button",
61
+ "aria-controls": context.contentId,
62
+ "aria-expanded": context.open || false,
63
+ "data-state": getState(context.open),
64
+ "data-disabled": context.disabled ? "" : void 0,
65
+ disabled: context.disabled,
66
+ ...triggerProps,
67
+ ref: forwardedRef,
68
+ onClick: composeEventHandlers(props.onClick, context.onOpenToggle)
69
+ }
70
+ );
71
+ }
72
+ );
73
+ CollapsibleTrigger.displayName = TRIGGER_NAME;
74
+ var CONTENT_NAME = "CollapsibleContent";
75
+ var CollapsibleContent = React.forwardRef(
76
+ (props, forwardedRef) => {
77
+ const { forceMount, ...contentProps } = props;
78
+ const context = useCollapsibleContext(CONTENT_NAME, props.__scopeCollapsible);
79
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(Presence, { present: forceMount || context.open, children: ({ present }) => /* @__PURE__ */ jsxRuntimeExports.jsx(CollapsibleContentImpl, { ...contentProps, ref: forwardedRef, present }) });
80
+ }
81
+ );
82
+ CollapsibleContent.displayName = CONTENT_NAME;
83
+ var CollapsibleContentImpl = React.forwardRef((props, forwardedRef) => {
84
+ const { __scopeCollapsible, present, children, ...contentProps } = props;
85
+ const context = useCollapsibleContext(CONTENT_NAME, __scopeCollapsible);
86
+ const [isPresent, setIsPresent] = React.useState(present);
87
+ const ref = React.useRef(null);
88
+ const composedRefs = useComposedRefs(forwardedRef, ref);
89
+ const heightRef = React.useRef(0);
90
+ const height = heightRef.current;
91
+ const widthRef = React.useRef(0);
92
+ const width = widthRef.current;
93
+ const isOpen = context.open || isPresent;
94
+ const isMountAnimationPreventedRef = React.useRef(isOpen);
95
+ const originalStylesRef = React.useRef();
96
+ React.useEffect(() => {
97
+ const rAF = requestAnimationFrame(() => isMountAnimationPreventedRef.current = false);
98
+ return () => cancelAnimationFrame(rAF);
99
+ }, []);
100
+ useLayoutEffect2(() => {
101
+ const node = ref.current;
102
+ if (node) {
103
+ originalStylesRef.current = originalStylesRef.current || {
104
+ transitionDuration: node.style.transitionDuration,
105
+ animationName: node.style.animationName
106
+ };
107
+ node.style.transitionDuration = "0s";
108
+ node.style.animationName = "none";
109
+ const rect = node.getBoundingClientRect();
110
+ heightRef.current = rect.height;
111
+ widthRef.current = rect.width;
112
+ if (!isMountAnimationPreventedRef.current) {
113
+ node.style.transitionDuration = originalStylesRef.current.transitionDuration;
114
+ node.style.animationName = originalStylesRef.current.animationName;
115
+ }
116
+ setIsPresent(present);
117
+ }
118
+ }, [context.open, present]);
119
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(
120
+ Primitive.div,
121
+ {
122
+ "data-state": getState(context.open),
123
+ "data-disabled": context.disabled ? "" : void 0,
124
+ id: context.contentId,
125
+ hidden: !isOpen,
126
+ ...contentProps,
127
+ ref: composedRefs,
128
+ style: {
129
+ [`--radix-collapsible-content-height`]: height ? `${height}px` : void 0,
130
+ [`--radix-collapsible-content-width`]: width ? `${width}px` : void 0,
131
+ ...props.style
132
+ },
133
+ children: isOpen && children
134
+ }
135
+ );
136
+ });
137
+ function getState(open) {
138
+ return open ? "open" : "closed";
139
+ }
140
+ var Root = Collapsible;
141
+ var Trigger = CollapsibleTrigger;
142
+ var Content = CollapsibleContent;
143
+
144
+ export { Collapsible, CollapsibleContent, CollapsibleTrigger, Content, Root, Trigger, createCollapsibleScope };
145
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../../../node_modules/@radix-ui/react-collapsible/dist/index.mjs"],"sourcesContent":["\"use client\";\n\n// packages/react/collapsible/src/Collapsible.tsx\nimport * as React from \"react\";\nimport { composeEventHandlers } from \"@radix-ui/primitive\";\nimport { createContextScope } from \"@radix-ui/react-context\";\nimport { useControllableState } from \"@radix-ui/react-use-controllable-state\";\nimport { useLayoutEffect } from \"@radix-ui/react-use-layout-effect\";\nimport { useComposedRefs } from \"@radix-ui/react-compose-refs\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport { Presence } from \"@radix-ui/react-presence\";\nimport { useId } from \"@radix-ui/react-id\";\nimport { jsx } from \"react/jsx-runtime\";\nvar COLLAPSIBLE_NAME = \"Collapsible\";\nvar [createCollapsibleContext, createCollapsibleScope] = createContextScope(COLLAPSIBLE_NAME);\nvar [CollapsibleProvider, useCollapsibleContext] = createCollapsibleContext(COLLAPSIBLE_NAME);\nvar Collapsible = React.forwardRef(\n (props, forwardedRef) => {\n const {\n __scopeCollapsible,\n open: openProp,\n defaultOpen,\n disabled,\n onOpenChange,\n ...collapsibleProps\n } = props;\n const [open = false, setOpen] = useControllableState({\n prop: openProp,\n defaultProp: defaultOpen,\n onChange: onOpenChange\n });\n return /* @__PURE__ */ jsx(\n CollapsibleProvider,\n {\n scope: __scopeCollapsible,\n disabled,\n contentId: useId(),\n open,\n onOpenToggle: React.useCallback(() => setOpen((prevOpen) => !prevOpen), [setOpen]),\n children: /* @__PURE__ */ jsx(\n Primitive.div,\n {\n \"data-state\": getState(open),\n \"data-disabled\": disabled ? \"\" : void 0,\n ...collapsibleProps,\n ref: forwardedRef\n }\n )\n }\n );\n }\n);\nCollapsible.displayName = COLLAPSIBLE_NAME;\nvar TRIGGER_NAME = \"CollapsibleTrigger\";\nvar CollapsibleTrigger = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeCollapsible, ...triggerProps } = props;\n const context = useCollapsibleContext(TRIGGER_NAME, __scopeCollapsible);\n return /* @__PURE__ */ jsx(\n Primitive.button,\n {\n type: \"button\",\n \"aria-controls\": context.contentId,\n \"aria-expanded\": context.open || false,\n \"data-state\": getState(context.open),\n \"data-disabled\": context.disabled ? \"\" : void 0,\n disabled: context.disabled,\n ...triggerProps,\n ref: forwardedRef,\n onClick: composeEventHandlers(props.onClick, context.onOpenToggle)\n }\n );\n }\n);\nCollapsibleTrigger.displayName = TRIGGER_NAME;\nvar CONTENT_NAME = \"CollapsibleContent\";\nvar CollapsibleContent = React.forwardRef(\n (props, forwardedRef) => {\n const { forceMount, ...contentProps } = props;\n const context = useCollapsibleContext(CONTENT_NAME, props.__scopeCollapsible);\n return /* @__PURE__ */ jsx(Presence, { present: forceMount || context.open, children: ({ present }) => /* @__PURE__ */ jsx(CollapsibleContentImpl, { ...contentProps, ref: forwardedRef, present }) });\n }\n);\nCollapsibleContent.displayName = CONTENT_NAME;\nvar CollapsibleContentImpl = React.forwardRef((props, forwardedRef) => {\n const { __scopeCollapsible, present, children, ...contentProps } = props;\n const context = useCollapsibleContext(CONTENT_NAME, __scopeCollapsible);\n const [isPresent, setIsPresent] = React.useState(present);\n const ref = React.useRef(null);\n const composedRefs = useComposedRefs(forwardedRef, ref);\n const heightRef = React.useRef(0);\n const height = heightRef.current;\n const widthRef = React.useRef(0);\n const width = widthRef.current;\n const isOpen = context.open || isPresent;\n const isMountAnimationPreventedRef = React.useRef(isOpen);\n const originalStylesRef = React.useRef();\n React.useEffect(() => {\n const rAF = requestAnimationFrame(() => isMountAnimationPreventedRef.current = false);\n return () => cancelAnimationFrame(rAF);\n }, []);\n useLayoutEffect(() => {\n const node = ref.current;\n if (node) {\n originalStylesRef.current = originalStylesRef.current || {\n transitionDuration: node.style.transitionDuration,\n animationName: node.style.animationName\n };\n node.style.transitionDuration = \"0s\";\n node.style.animationName = \"none\";\n const rect = node.getBoundingClientRect();\n heightRef.current = rect.height;\n widthRef.current = rect.width;\n if (!isMountAnimationPreventedRef.current) {\n node.style.transitionDuration = originalStylesRef.current.transitionDuration;\n node.style.animationName = originalStylesRef.current.animationName;\n }\n setIsPresent(present);\n }\n }, [context.open, present]);\n return /* @__PURE__ */ jsx(\n Primitive.div,\n {\n \"data-state\": getState(context.open),\n \"data-disabled\": context.disabled ? \"\" : void 0,\n id: context.contentId,\n hidden: !isOpen,\n ...contentProps,\n ref: composedRefs,\n style: {\n [`--radix-collapsible-content-height`]: height ? `${height}px` : void 0,\n [`--radix-collapsible-content-width`]: width ? `${width}px` : void 0,\n ...props.style\n },\n children: isOpen && children\n }\n );\n});\nfunction getState(open) {\n return open ? \"open\" : \"closed\";\n}\nvar Root = Collapsible;\nvar Trigger = CollapsibleTrigger;\nvar Content = CollapsibleContent;\nexport {\n Collapsible,\n CollapsibleContent,\n CollapsibleTrigger,\n Content,\n Root,\n Trigger,\n createCollapsibleScope\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["jsx","useLayoutEffect"],"mappings":";;;;;;;;;;;AAaA,IAAI,gBAAgB,GAAG,aAAa,CAAC;AAClC,IAAC,CAAC,wBAAwB,EAAE,sBAAsB,CAAC,GAAG,kBAAkB,CAAC,gBAAgB,EAAE;AAC9F,IAAI,CAAC,mBAAmB,EAAE,qBAAqB,CAAC,GAAG,wBAAwB,CAAC,gBAAgB,CAAC,CAAC;AAC3F,IAAC,WAAW,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EAAE,QAAQ,CAAC,OAAO,CAAC,IAAI,CAAC;AAC1C,MAAM,eAAe,EAAE,OAAO,CAAC,QAAQ,GAAG,EAAE,GAAG,KAAK,CAAC;AACrD,MAAM,EAAE,EAAE,OAAO,CAAC,SAAS;AAC3B,MAAM,MAAM,EAAE,CAAC,MAAM;AACrB,MAAM,GAAG,YAAY;AACrB,MAAM,GAAG,EAAE,YAAY;AACvB,MAAM,KAAK,EAAE;AACb,QAAQ,CAAC,CAAC,kCAAkC,CAAC,GAAG,MAAM,GAAG,CAAC,EAAE,MAAM,CAAC,EAAE,CAAC,GAAG,KAAK,CAAC;AAC/E,QAAQ,CAAC,CAAC,iCAAiC,CAAC,GAAG,KAAK,GAAG,CAAC,EAAE,KAAK,CAAC,EAAE,CAAC,GAAG,KAAK,CAAC;AAC5E,QAAQ,GAAG,KAAK,CAAC,KAAK;AACtB,OAAO;AACP,MAAM,QAAQ,EAAE,MAAM,IAAI,QAAQ;AAClC,KAAK;AACL,GAAG,CAAC;AACJ,CAAC,CAAC,CAAC;AACH,SAAS,QAAQ,CAAC,IAAI,EAAE;AACxB,EAAE,OAAO,IAAI,GAAG,MAAM,GAAG,QAAQ,CAAC;AAClC,CAAC;AACE,IAAC,IAAI,GAAG,YAAY;AACpB,IAAC,OAAO,GAAG,mBAAmB;AAC9B,IAAC,OAAO,GAAG;;;;","x_google_ignoreList":[0]}
@@ -0,0 +1,69 @@
1
+ import React__default from 'react';
2
+ import { createContextScope } from '../../react-context/dist/index.js';
3
+ import { useComposedRefs } from '../../react-compose-refs/dist/index.js';
4
+ import { Slot } from '../../react-slot/dist/index.js';
5
+ import { j as jsxRuntimeExports } from '../../../react/jsx-runtime.js';
6
+
7
+ function createCollection(name) {
8
+ const PROVIDER_NAME = name + "CollectionProvider";
9
+ const [createCollectionContext, createCollectionScope] = createContextScope(PROVIDER_NAME);
10
+ const [CollectionProviderImpl, useCollectionContext] = createCollectionContext(
11
+ PROVIDER_NAME,
12
+ { collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }
13
+ );
14
+ const CollectionProvider = (props) => {
15
+ const { scope, children } = props;
16
+ const ref = React__default.useRef(null);
17
+ const itemMap = React__default.useRef(/* @__PURE__ */ new Map()).current;
18
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(CollectionProviderImpl, { scope, itemMap, collectionRef: ref, children });
19
+ };
20
+ CollectionProvider.displayName = PROVIDER_NAME;
21
+ const COLLECTION_SLOT_NAME = name + "CollectionSlot";
22
+ const CollectionSlot = React__default.forwardRef(
23
+ (props, forwardedRef) => {
24
+ const { scope, children } = props;
25
+ const context = useCollectionContext(COLLECTION_SLOT_NAME, scope);
26
+ const composedRefs = useComposedRefs(forwardedRef, context.collectionRef);
27
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(Slot, { ref: composedRefs, children });
28
+ }
29
+ );
30
+ CollectionSlot.displayName = COLLECTION_SLOT_NAME;
31
+ const ITEM_SLOT_NAME = name + "CollectionItemSlot";
32
+ const ITEM_DATA_ATTR = "data-radix-collection-item";
33
+ const CollectionItemSlot = React__default.forwardRef(
34
+ (props, forwardedRef) => {
35
+ const { scope, children, ...itemData } = props;
36
+ const ref = React__default.useRef(null);
37
+ const composedRefs = useComposedRefs(forwardedRef, ref);
38
+ const context = useCollectionContext(ITEM_SLOT_NAME, scope);
39
+ React__default.useEffect(() => {
40
+ context.itemMap.set(ref, { ref, ...itemData });
41
+ return () => void context.itemMap.delete(ref);
42
+ });
43
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(Slot, { ...{ [ITEM_DATA_ATTR]: "" }, ref: composedRefs, children });
44
+ }
45
+ );
46
+ CollectionItemSlot.displayName = ITEM_SLOT_NAME;
47
+ function useCollection(scope) {
48
+ const context = useCollectionContext(name + "CollectionConsumer", scope);
49
+ const getItems = React__default.useCallback(() => {
50
+ const collectionNode = context.collectionRef.current;
51
+ if (!collectionNode) return [];
52
+ const orderedNodes = Array.from(collectionNode.querySelectorAll(`[${ITEM_DATA_ATTR}]`));
53
+ const items = Array.from(context.itemMap.values());
54
+ const orderedItems = items.sort(
55
+ (a, b) => orderedNodes.indexOf(a.ref.current) - orderedNodes.indexOf(b.ref.current)
56
+ );
57
+ return orderedItems;
58
+ }, [context.collectionRef, context.itemMap]);
59
+ return getItems;
60
+ }
61
+ return [
62
+ { Provider: CollectionProvider, Slot: CollectionSlot, ItemSlot: CollectionItemSlot },
63
+ useCollection,
64
+ createCollectionScope
65
+ ];
66
+ }
67
+
68
+ export { createCollection };
69
+ //# 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// packages/react/collection/src/Collection.tsx\nimport React from \"react\";\nimport { createContextScope } from \"@radix-ui/react-context\";\nimport { useComposedRefs } from \"@radix-ui/react-compose-refs\";\nimport { Slot } 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 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(Slot, { 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 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(Slot, { ...{ [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}\nexport {\n createCollection\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["React","jsx"],"mappings":";;;;;;AAQA,SAAS,gBAAgB,CAAC,IAAI,EAAE;AAChC,EAAE,MAAM,aAAa,GAAG,IAAI,GAAG,oBAAoB,CAAC;AACpD,EAAE,MAAM,CAAC,uBAAuB,EAAE,qBAAqB,CAAC,GAAG,kBAAkB,CAAC,aAAa,CAAC,CAAC;AAC7F,EAAE,MAAM,CAAC,sBAAsB,EAAE,oBAAoB,CAAC,GAAG,uBAAuB;AAChF,IAAI,aAAa;AACjB,IAAI,EAAE,aAAa,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE,OAAO,kBAAk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C,cAAc,CAAC,gBAAgB,CAAC,CAAC,CAAC,EAAE,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AAC9F,MAAM,MAAM,KAAK,GAAG,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC;AACzD,MAAM,MAAM,YAAY,GAAG,KAAK,CAAC,IAAI;AACrC,QAAQ,CAAC,CAAC,EAAE,CAAC,KAAK,YAAY,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,GAAG,YAAY,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC;AAC3F,OAAO,CAAC;AACR,MAAM,OAAO,YAAY,CAAC;AAC1B,KAAK,EAAE,CAAC,OAAO,CAAC,aAAa,EAAE,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC;AACjD,IAAI,OAAO,QAAQ,CAAC;AACpB,GAAG;AACH,EAAE,OAAO;AACT,IAAI,EAAE,QAAQ,EAAE,kBAAkB,EAAE,IAAI,EAAE,cAAc,EAAE,QAAQ,EAAE,kBAAkB,EAAE;AACxF,IAAI,aAAa;AACjB,IAAI,qBAAqB;AACzB,GAAG,CAAC;AACJ;;;;","x_google_ignoreList":[0]}
@@ -0,0 +1,19 @@
1
+ import * as React from 'react';
2
+
3
+ // packages/react/compose-refs/src/composeRefs.tsx
4
+ function setRef(ref, value) {
5
+ if (typeof ref === "function") {
6
+ ref(value);
7
+ } else if (ref !== null && ref !== void 0) {
8
+ ref.current = value;
9
+ }
10
+ }
11
+ function composeRefs(...refs) {
12
+ return (node) => refs.forEach((ref) => setRef(ref, node));
13
+ }
14
+ function useComposedRefs(...refs) {
15
+ return React.useCallback(composeRefs(...refs), refs);
16
+ }
17
+
18
+ export { composeRefs, useComposedRefs };
19
+ //# 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/composeRefs.tsx\nimport * as React from \"react\";\nfunction setRef(ref, value) {\n if (typeof ref === \"function\") {\n ref(value);\n } else if (ref !== null && ref !== void 0) {\n ref.current = value;\n }\n}\nfunction composeRefs(...refs) {\n return (node) => refs.forEach((ref) => setRef(ref, node));\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":[],"mappings":";;AAAA;AAEA,SAAS,MAAM,CAAC,GAAG,EAAE,KAAK,EAAE;AAC5B,EAAE,IAAI,OAAO,GAAG,KAAK,UAAU,EAAE;AACjC,IAAI,GAAG,CAAC,KAAK,CAAC,CAAC;AACf,GAAG,MAAM,IAAI,GAAG,KAAK,IAAI,IAAI,GAAG,KAAK,KAAK,CAAC,EAAE;AAC7C,IAAI,GAAG,CAAC,OAAO,GAAG,KAAK,CAAC;AACxB,GAAG;AACH,CAAC;AACD,SAAS,WAAW,CAAC,GAAG,IAAI,EAAE;AAC9B,EAAE,OAAO,CAAC,IAAI,KAAK,IAAI,CAAC,OAAO,CAAC,CAAC,GAAG,KAAK,MAAM,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC,CAAC;AAC5D,CAAC;AACD,SAAS,eAAe,CAAC,GAAG,IAAI,EAAE;AAClC,EAAE,OAAO,KAAK,CAAC,WAAW,CAAC,WAAW,CAAC,GAAG,IAAI,CAAC,EAAE,IAAI,CAAC,CAAC;AACvD;;;;","x_google_ignoreList":[0]}
@@ -0,0 +1,80 @@
1
+ import * as React from 'react';
2
+ import { j as jsxRuntimeExports } from '../../../react/jsx-runtime.js';
3
+
4
+ // packages/react/context/src/createContext.tsx
5
+ function createContext2(rootComponentName, defaultContext) {
6
+ const Context = React.createContext(defaultContext);
7
+ function Provider(props) {
8
+ const { children, ...context } = props;
9
+ const value = React.useMemo(() => context, Object.values(context));
10
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(Context.Provider, { value, children });
11
+ }
12
+ function useContext2(consumerName) {
13
+ const context = React.useContext(Context);
14
+ if (context) return context;
15
+ if (defaultContext !== void 0) return defaultContext;
16
+ throw new Error(`\`${consumerName}\` must be used within \`${rootComponentName}\``);
17
+ }
18
+ Provider.displayName = rootComponentName + "Provider";
19
+ return [Provider, useContext2];
20
+ }
21
+ function createContextScope(scopeName, createContextScopeDeps = []) {
22
+ let defaultContexts = [];
23
+ function createContext3(rootComponentName, defaultContext) {
24
+ const BaseContext = React.createContext(defaultContext);
25
+ const index = defaultContexts.length;
26
+ defaultContexts = [...defaultContexts, defaultContext];
27
+ function Provider(props) {
28
+ const { scope, children, ...context } = props;
29
+ const Context = scope?.[scopeName][index] || BaseContext;
30
+ const value = React.useMemo(() => context, Object.values(context));
31
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(Context.Provider, { value, children });
32
+ }
33
+ function useContext2(consumerName, scope) {
34
+ const Context = scope?.[scopeName][index] || BaseContext;
35
+ const context = React.useContext(Context);
36
+ if (context) return context;
37
+ if (defaultContext !== void 0) return defaultContext;
38
+ throw new Error(`\`${consumerName}\` must be used within \`${rootComponentName}\``);
39
+ }
40
+ Provider.displayName = rootComponentName + "Provider";
41
+ return [Provider, useContext2];
42
+ }
43
+ const createScope = () => {
44
+ const scopeContexts = defaultContexts.map((defaultContext) => {
45
+ return React.createContext(defaultContext);
46
+ });
47
+ return function useScope(scope) {
48
+ const contexts = scope?.[scopeName] || scopeContexts;
49
+ return React.useMemo(
50
+ () => ({ [`__scope${scopeName}`]: { ...scope, [scopeName]: contexts } }),
51
+ [scope, contexts]
52
+ );
53
+ };
54
+ };
55
+ createScope.scopeName = scopeName;
56
+ return [createContext3, composeContextScopes(createScope, ...createContextScopeDeps)];
57
+ }
58
+ function composeContextScopes(...scopes) {
59
+ const baseScope = scopes[0];
60
+ if (scopes.length === 1) return baseScope;
61
+ const createScope = () => {
62
+ const scopeHooks = scopes.map((createScope2) => ({
63
+ useScope: createScope2(),
64
+ scopeName: createScope2.scopeName
65
+ }));
66
+ return function useComposedScopes(overrideScopes) {
67
+ const nextScopes = scopeHooks.reduce((nextScopes2, { useScope, scopeName }) => {
68
+ const scopeProps = useScope(overrideScopes);
69
+ const currentScope = scopeProps[`__scope${scopeName}`];
70
+ return { ...nextScopes2, ...currentScope };
71
+ }, {});
72
+ return React.useMemo(() => ({ [`__scope${baseScope.scopeName}`]: nextScopes }), [nextScopes]);
73
+ };
74
+ };
75
+ createScope.scopeName = baseScope.scopeName;
76
+ return createScope;
77
+ }
78
+
79
+ export { createContext2 as createContext, createContextScope };
80
+ //# 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/createContext.tsx\nimport * as React from \"react\";\nimport { jsx } from \"react/jsx-runtime\";\nfunction createContext2(rootComponentName, defaultContext) {\n const Context = React.createContext(defaultContext);\n function 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 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 Provider.displayName = rootComponentName + \"Provider\";\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 function 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 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 Provider.displayName = rootComponentName + \"Provider\";\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":["jsx"],"mappings":";;;AAAA;AAGA,SAAS,cAAc,CAAC,iBAAiB,EAAE,cAAc,EAAE;AAC3D,EAAE,MAAM,OAAO,GAAG,KAAK,CAAC,aAAa,CAAC,cAAc,CAAC,CAAC;AACtD,EAAE,SAAS,QAAQ,CAAC,KAAK,EAAE;AAC3B,IAAI,MAAM,EAAE,QAAQ,EAAE,GAAG,OAAO,EAAE,GAAG,KAAK,CAAC;AAC3C,IAAI,MAAM,KAAK,GAAG,KAAK,CAAC,OAAO,CAAC,MAAM,OAAO,EAAE,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CA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