@quantinuum/quantinuum-ui 3.6.1 → 3.6.2-fix-update-radix.1

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 (338) hide show
  1. package/dist/_virtual/index.js +2 -0
  2. package/dist/_virtual/index.js.map +1 -0
  3. package/dist/_virtual/use-sync-external-store-shim.development.js +2 -0
  4. package/dist/_virtual/use-sync-external-store-shim.development.js.map +1 -0
  5. package/dist/_virtual/use-sync-external-store-shim.production.js +2 -0
  6. package/dist/_virtual/use-sync-external-store-shim.production.js.map +1 -0
  7. package/dist/node_modules/@radix-ui/number/dist/index.mjs.js +1 -1
  8. package/dist/node_modules/@radix-ui/number/dist/index.mjs.js.map +1 -1
  9. package/dist/node_modules/@radix-ui/primitive/dist/index.mjs.js +1 -1
  10. package/dist/node_modules/@radix-ui/primitive/dist/index.mjs.js.map +1 -1
  11. package/dist/node_modules/@radix-ui/react-accordion/dist/index.mjs.js +2 -1
  12. package/dist/node_modules/@radix-ui/react-accordion/dist/index.mjs.js.map +1 -1
  13. package/dist/node_modules/@radix-ui/react-accordion/node_modules/@radix-ui/react-context/dist/index.mjs.js +2 -0
  14. package/dist/node_modules/@radix-ui/react-accordion/node_modules/@radix-ui/react-context/dist/index.mjs.js.map +1 -0
  15. package/dist/node_modules/@radix-ui/react-accordion/node_modules/@radix-ui/react-primitive/dist/index.mjs.js +2 -0
  16. package/dist/node_modules/@radix-ui/react-accordion/node_modules/@radix-ui/react-primitive/dist/index.mjs.js.map +1 -0
  17. package/dist/node_modules/@radix-ui/react-accordion/node_modules/@radix-ui/react-slot/dist/index.mjs.js +2 -0
  18. package/dist/node_modules/@radix-ui/react-accordion/node_modules/@radix-ui/react-slot/dist/index.mjs.js.map +1 -0
  19. package/dist/node_modules/@radix-ui/react-arrow/dist/index.mjs.js +2 -0
  20. package/dist/node_modules/@radix-ui/react-arrow/dist/index.mjs.js.map +1 -0
  21. package/dist/node_modules/@radix-ui/react-arrow/node_modules/@radix-ui/react-primitive/dist/index.mjs.js +2 -0
  22. package/dist/node_modules/@radix-ui/react-arrow/node_modules/@radix-ui/react-primitive/dist/index.mjs.js.map +1 -0
  23. package/dist/node_modules/@radix-ui/react-arrow/node_modules/@radix-ui/react-slot/dist/index.mjs.js +2 -0
  24. package/dist/node_modules/@radix-ui/react-arrow/node_modules/@radix-ui/react-slot/dist/index.mjs.js.map +1 -0
  25. package/dist/node_modules/@radix-ui/react-avatar/dist/index.mjs.js +2 -1
  26. package/dist/node_modules/@radix-ui/react-avatar/dist/index.mjs.js.map +1 -1
  27. package/dist/node_modules/@radix-ui/react-checkbox/dist/index.mjs.js +2 -1
  28. package/dist/node_modules/@radix-ui/react-checkbox/dist/index.mjs.js.map +1 -1
  29. package/dist/node_modules/@radix-ui/react-checkbox/node_modules/@radix-ui/react-context/dist/index.mjs.js +2 -0
  30. package/dist/node_modules/@radix-ui/react-checkbox/node_modules/@radix-ui/react-context/dist/index.mjs.js.map +1 -0
  31. package/dist/node_modules/@radix-ui/react-checkbox/node_modules/@radix-ui/react-primitive/dist/index.mjs.js +2 -0
  32. package/dist/node_modules/@radix-ui/react-checkbox/node_modules/@radix-ui/react-primitive/dist/index.mjs.js.map +1 -0
  33. package/dist/node_modules/@radix-ui/react-checkbox/node_modules/@radix-ui/react-slot/dist/index.mjs.js +2 -0
  34. package/dist/node_modules/@radix-ui/react-checkbox/node_modules/@radix-ui/react-slot/dist/index.mjs.js.map +1 -0
  35. package/dist/node_modules/@radix-ui/react-collapsible/dist/index.mjs.js +2 -1
  36. package/dist/node_modules/@radix-ui/react-collapsible/dist/index.mjs.js.map +1 -1
  37. package/dist/node_modules/@radix-ui/react-collapsible/node_modules/@radix-ui/react-context/dist/index.mjs.js +2 -0
  38. package/dist/node_modules/@radix-ui/react-collapsible/node_modules/@radix-ui/react-context/dist/index.mjs.js.map +1 -0
  39. package/dist/node_modules/@radix-ui/react-collapsible/node_modules/@radix-ui/react-primitive/dist/index.mjs.js +2 -0
  40. package/dist/node_modules/@radix-ui/react-collapsible/node_modules/@radix-ui/react-primitive/dist/index.mjs.js.map +1 -0
  41. package/dist/node_modules/@radix-ui/react-collapsible/node_modules/@radix-ui/react-slot/dist/index.mjs.js +2 -0
  42. package/dist/node_modules/@radix-ui/react-collapsible/node_modules/@radix-ui/react-slot/dist/index.mjs.js.map +1 -0
  43. package/dist/node_modules/@radix-ui/react-collection/dist/index.mjs.js +2 -1
  44. package/dist/node_modules/@radix-ui/react-collection/dist/index.mjs.js.map +1 -1
  45. package/dist/node_modules/@radix-ui/react-collection/node_modules/@radix-ui/react-context/dist/index.mjs.js +2 -0
  46. package/dist/node_modules/@radix-ui/react-collection/node_modules/@radix-ui/react-context/dist/index.mjs.js.map +1 -0
  47. package/dist/node_modules/@radix-ui/react-collection/node_modules/@radix-ui/react-slot/dist/index.mjs.js +1 -1
  48. package/dist/node_modules/@radix-ui/react-collection/node_modules/@radix-ui/react-slot/dist/index.mjs.js.map +1 -1
  49. package/dist/node_modules/@radix-ui/react-compose-refs/dist/index.mjs.js +1 -1
  50. package/dist/node_modules/@radix-ui/react-compose-refs/dist/index.mjs.js.map +1 -1
  51. package/dist/node_modules/@radix-ui/react-context/dist/index.mjs.js +1 -1
  52. package/dist/node_modules/@radix-ui/react-context/dist/index.mjs.js.map +1 -1
  53. package/dist/node_modules/@radix-ui/react-dialog/dist/index.mjs.js +2 -1
  54. package/dist/node_modules/@radix-ui/react-dialog/dist/index.mjs.js.map +1 -1
  55. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-context/dist/index.mjs.js +2 -0
  56. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-context/dist/index.mjs.js.map +1 -0
  57. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-primitive/dist/index.mjs.js +2 -0
  58. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-primitive/dist/index.mjs.js.map +1 -0
  59. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-slot/dist/index.mjs.js +1 -1
  60. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-slot/dist/index.mjs.js.map +1 -1
  61. package/dist/node_modules/@radix-ui/react-direction/dist/index.mjs.js +1 -1
  62. package/dist/node_modules/@radix-ui/react-direction/dist/index.mjs.js.map +1 -1
  63. package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.mjs.js +2 -1
  64. package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.mjs.js.map +1 -1
  65. package/dist/node_modules/@radix-ui/react-dismissable-layer/node_modules/@radix-ui/react-primitive/dist/index.mjs.js +2 -0
  66. package/dist/node_modules/@radix-ui/react-dismissable-layer/node_modules/@radix-ui/react-primitive/dist/index.mjs.js.map +1 -0
  67. package/dist/node_modules/@radix-ui/react-dismissable-layer/node_modules/@radix-ui/react-slot/dist/index.mjs.js +2 -0
  68. package/dist/node_modules/@radix-ui/react-dismissable-layer/node_modules/@radix-ui/react-slot/dist/index.mjs.js.map +1 -0
  69. package/dist/node_modules/@radix-ui/react-dropdown-menu/dist/index.mjs.js +2 -1
  70. package/dist/node_modules/@radix-ui/react-dropdown-menu/dist/index.mjs.js.map +1 -1
  71. package/dist/node_modules/@radix-ui/react-dropdown-menu/node_modules/@radix-ui/react-context/dist/index.mjs.js +2 -0
  72. package/dist/node_modules/@radix-ui/react-dropdown-menu/node_modules/@radix-ui/react-context/dist/index.mjs.js.map +1 -0
  73. package/dist/node_modules/@radix-ui/react-dropdown-menu/node_modules/@radix-ui/react-primitive/dist/index.mjs.js +2 -0
  74. package/dist/node_modules/@radix-ui/react-dropdown-menu/node_modules/@radix-ui/react-primitive/dist/index.mjs.js.map +1 -0
  75. package/dist/node_modules/@radix-ui/react-dropdown-menu/node_modules/@radix-ui/react-slot/dist/index.mjs.js +2 -0
  76. package/dist/node_modules/@radix-ui/react-dropdown-menu/node_modules/@radix-ui/react-slot/dist/index.mjs.js.map +1 -0
  77. package/dist/node_modules/@radix-ui/react-focus-guards/dist/index.mjs.js +2 -1
  78. package/dist/node_modules/@radix-ui/react-focus-guards/dist/index.mjs.js.map +1 -1
  79. package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.mjs.js +2 -1
  80. package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.mjs.js.map +1 -1
  81. package/dist/node_modules/@radix-ui/react-focus-scope/node_modules/@radix-ui/react-primitive/dist/index.mjs.js +2 -0
  82. package/dist/node_modules/@radix-ui/react-focus-scope/node_modules/@radix-ui/react-primitive/dist/index.mjs.js.map +1 -0
  83. package/dist/node_modules/@radix-ui/react-focus-scope/node_modules/@radix-ui/react-slot/dist/index.mjs.js +2 -0
  84. package/dist/node_modules/@radix-ui/react-focus-scope/node_modules/@radix-ui/react-slot/dist/index.mjs.js.map +1 -0
  85. package/dist/node_modules/@radix-ui/react-hover-card/dist/index.mjs.js +2 -1
  86. package/dist/node_modules/@radix-ui/react-hover-card/dist/index.mjs.js.map +1 -1
  87. package/dist/node_modules/@radix-ui/react-hover-card/node_modules/@radix-ui/react-context/dist/index.mjs.js +2 -0
  88. package/dist/node_modules/@radix-ui/react-hover-card/node_modules/@radix-ui/react-context/dist/index.mjs.js.map +1 -0
  89. package/dist/node_modules/@radix-ui/react-hover-card/node_modules/@radix-ui/react-primitive/dist/index.mjs.js +2 -0
  90. package/dist/node_modules/@radix-ui/react-hover-card/node_modules/@radix-ui/react-primitive/dist/index.mjs.js.map +1 -0
  91. package/dist/node_modules/@radix-ui/react-hover-card/node_modules/@radix-ui/react-slot/dist/index.mjs.js +2 -0
  92. package/dist/node_modules/@radix-ui/react-hover-card/node_modules/@radix-ui/react-slot/dist/index.mjs.js.map +1 -0
  93. package/dist/node_modules/@radix-ui/react-id/dist/index.mjs.js +1 -1
  94. package/dist/node_modules/@radix-ui/react-id/dist/index.mjs.js.map +1 -1
  95. package/dist/node_modules/@radix-ui/react-label/dist/index.mjs.js +2 -1
  96. package/dist/node_modules/@radix-ui/react-label/dist/index.mjs.js.map +1 -1
  97. package/dist/node_modules/@radix-ui/react-menu/dist/index.mjs.js +2 -1
  98. package/dist/node_modules/@radix-ui/react-menu/dist/index.mjs.js.map +1 -1
  99. package/dist/node_modules/@radix-ui/react-menu/node_modules/@radix-ui/react-context/dist/index.mjs.js +2 -0
  100. package/dist/node_modules/@radix-ui/react-menu/node_modules/@radix-ui/react-context/dist/index.mjs.js.map +1 -0
  101. package/dist/node_modules/@radix-ui/react-menu/node_modules/@radix-ui/react-primitive/dist/index.mjs.js +2 -0
  102. package/dist/node_modules/@radix-ui/react-menu/node_modules/@radix-ui/react-primitive/dist/index.mjs.js.map +1 -0
  103. package/dist/node_modules/@radix-ui/react-menu/node_modules/@radix-ui/react-slot/dist/index.mjs.js +1 -1
  104. package/dist/node_modules/@radix-ui/react-menu/node_modules/@radix-ui/react-slot/dist/index.mjs.js.map +1 -1
  105. package/dist/node_modules/@radix-ui/react-navigation-menu/dist/index.mjs.js +2 -1
  106. package/dist/node_modules/@radix-ui/react-navigation-menu/dist/index.mjs.js.map +1 -1
  107. package/dist/node_modules/@radix-ui/react-navigation-menu/node_modules/@radix-ui/react-context/dist/index.mjs.js +2 -0
  108. package/dist/node_modules/@radix-ui/react-navigation-menu/node_modules/@radix-ui/react-context/dist/index.mjs.js.map +1 -0
  109. package/dist/node_modules/@radix-ui/react-navigation-menu/node_modules/@radix-ui/react-primitive/dist/index.mjs.js +2 -0
  110. package/dist/node_modules/@radix-ui/react-navigation-menu/node_modules/@radix-ui/react-primitive/dist/index.mjs.js.map +1 -0
  111. package/dist/node_modules/@radix-ui/react-navigation-menu/node_modules/@radix-ui/react-slot/dist/index.mjs.js +2 -0
  112. package/dist/node_modules/@radix-ui/react-navigation-menu/node_modules/@radix-ui/react-slot/dist/index.mjs.js.map +1 -0
  113. package/dist/node_modules/@radix-ui/react-popover/dist/index.mjs.js +2 -1
  114. package/dist/node_modules/@radix-ui/react-popover/dist/index.mjs.js.map +1 -1
  115. package/dist/node_modules/@radix-ui/react-popover/node_modules/@radix-ui/react-context/dist/index.mjs.js +2 -0
  116. package/dist/node_modules/@radix-ui/react-popover/node_modules/@radix-ui/react-context/dist/index.mjs.js.map +1 -0
  117. package/dist/node_modules/@radix-ui/react-popover/node_modules/@radix-ui/react-primitive/dist/index.mjs.js +2 -0
  118. package/dist/node_modules/@radix-ui/react-popover/node_modules/@radix-ui/react-primitive/dist/index.mjs.js.map +1 -0
  119. package/dist/node_modules/@radix-ui/react-popover/node_modules/@radix-ui/react-slot/dist/index.mjs.js +1 -1
  120. package/dist/node_modules/@radix-ui/react-popover/node_modules/@radix-ui/react-slot/dist/index.mjs.js.map +1 -1
  121. package/dist/node_modules/@radix-ui/react-popper/dist/index.mjs.js +2 -1
  122. package/dist/node_modules/@radix-ui/react-popper/dist/index.mjs.js.map +1 -1
  123. package/dist/node_modules/@radix-ui/react-popper/node_modules/@radix-ui/react-context/dist/index.mjs.js +2 -0
  124. package/dist/node_modules/@radix-ui/react-popper/node_modules/@radix-ui/react-context/dist/index.mjs.js.map +1 -0
  125. package/dist/node_modules/@radix-ui/react-popper/node_modules/@radix-ui/react-primitive/dist/index.mjs.js +2 -0
  126. package/dist/node_modules/@radix-ui/react-popper/node_modules/@radix-ui/react-primitive/dist/index.mjs.js.map +1 -0
  127. package/dist/node_modules/@radix-ui/react-popper/node_modules/@radix-ui/react-slot/dist/index.mjs.js +2 -0
  128. package/dist/node_modules/@radix-ui/react-popper/node_modules/@radix-ui/react-slot/dist/index.mjs.js.map +1 -0
  129. package/dist/node_modules/@radix-ui/react-portal/dist/index.mjs.js +2 -1
  130. package/dist/node_modules/@radix-ui/react-portal/dist/index.mjs.js.map +1 -1
  131. package/dist/node_modules/@radix-ui/react-portal/node_modules/@radix-ui/react-primitive/dist/index.mjs.js +2 -0
  132. package/dist/node_modules/@radix-ui/react-portal/node_modules/@radix-ui/react-primitive/dist/index.mjs.js.map +1 -0
  133. package/dist/node_modules/@radix-ui/react-portal/node_modules/@radix-ui/react-slot/dist/index.mjs.js +2 -0
  134. package/dist/node_modules/@radix-ui/react-portal/node_modules/@radix-ui/react-slot/dist/index.mjs.js.map +1 -0
  135. package/dist/node_modules/@radix-ui/react-presence/dist/index.mjs.js +2 -1
  136. package/dist/node_modules/@radix-ui/react-presence/dist/index.mjs.js.map +1 -1
  137. package/dist/node_modules/@radix-ui/react-primitive/dist/index.mjs.js +1 -1
  138. package/dist/node_modules/@radix-ui/react-primitive/dist/index.mjs.js.map +1 -1
  139. package/dist/node_modules/@radix-ui/react-progress/dist/index.mjs.js +2 -1
  140. package/dist/node_modules/@radix-ui/react-progress/dist/index.mjs.js.map +1 -1
  141. package/dist/node_modules/@radix-ui/react-radio-group/dist/index.mjs.js +2 -1
  142. package/dist/node_modules/@radix-ui/react-radio-group/dist/index.mjs.js.map +1 -1
  143. package/dist/node_modules/@radix-ui/react-radio-group/node_modules/@radix-ui/react-context/dist/index.mjs.js +2 -0
  144. package/dist/node_modules/@radix-ui/react-radio-group/node_modules/@radix-ui/react-context/dist/index.mjs.js.map +1 -0
  145. package/dist/node_modules/@radix-ui/react-radio-group/node_modules/@radix-ui/react-primitive/dist/index.mjs.js +2 -0
  146. package/dist/node_modules/@radix-ui/react-radio-group/node_modules/@radix-ui/react-primitive/dist/index.mjs.js.map +1 -0
  147. package/dist/node_modules/@radix-ui/react-radio-group/node_modules/@radix-ui/react-slot/dist/index.mjs.js +2 -0
  148. package/dist/node_modules/@radix-ui/react-radio-group/node_modules/@radix-ui/react-slot/dist/index.mjs.js.map +1 -0
  149. package/dist/node_modules/@radix-ui/react-roving-focus/dist/index.mjs.js +2 -1
  150. package/dist/node_modules/@radix-ui/react-roving-focus/dist/index.mjs.js.map +1 -1
  151. package/dist/node_modules/@radix-ui/react-roving-focus/node_modules/@radix-ui/react-context/dist/index.mjs.js +2 -0
  152. package/dist/node_modules/@radix-ui/react-roving-focus/node_modules/@radix-ui/react-context/dist/index.mjs.js.map +1 -0
  153. package/dist/node_modules/@radix-ui/react-roving-focus/node_modules/@radix-ui/react-primitive/dist/index.mjs.js +2 -0
  154. package/dist/node_modules/@radix-ui/react-roving-focus/node_modules/@radix-ui/react-primitive/dist/index.mjs.js.map +1 -0
  155. package/dist/node_modules/@radix-ui/react-roving-focus/node_modules/@radix-ui/react-slot/dist/index.mjs.js +2 -0
  156. package/dist/node_modules/@radix-ui/react-roving-focus/node_modules/@radix-ui/react-slot/dist/index.mjs.js.map +1 -0
  157. package/dist/node_modules/@radix-ui/react-scroll-area/dist/index.mjs.js +1 -1
  158. package/dist/node_modules/@radix-ui/react-scroll-area/node_modules/@radix-ui/react-slot/dist/index.mjs.js +1 -1
  159. package/dist/node_modules/@radix-ui/react-scroll-area/node_modules/@radix-ui/react-slot/dist/index.mjs.js.map +1 -1
  160. package/dist/node_modules/@radix-ui/react-select/dist/index.mjs.js +2 -1
  161. package/dist/node_modules/@radix-ui/react-select/dist/index.mjs.js.map +1 -1
  162. package/dist/node_modules/@radix-ui/react-select/node_modules/@radix-ui/react-context/dist/index.mjs.js +2 -0
  163. package/dist/node_modules/@radix-ui/react-select/node_modules/@radix-ui/react-context/dist/index.mjs.js.map +1 -0
  164. package/dist/node_modules/@radix-ui/react-select/node_modules/@radix-ui/react-primitive/dist/index.mjs.js +2 -0
  165. package/dist/node_modules/@radix-ui/react-select/node_modules/@radix-ui/react-primitive/dist/index.mjs.js.map +1 -0
  166. package/dist/node_modules/@radix-ui/react-select/node_modules/@radix-ui/react-slot/dist/index.mjs.js +1 -1
  167. package/dist/node_modules/@radix-ui/react-select/node_modules/@radix-ui/react-slot/dist/index.mjs.js.map +1 -1
  168. package/dist/node_modules/@radix-ui/react-separator/dist/index.mjs.js +1 -1
  169. package/dist/node_modules/@radix-ui/react-separator/dist/index.mjs.js.map +1 -1
  170. package/dist/node_modules/@radix-ui/react-slot/dist/index.mjs.js +1 -1
  171. package/dist/node_modules/@radix-ui/react-slot/dist/index.mjs.js.map +1 -1
  172. package/dist/node_modules/@radix-ui/react-switch/dist/index.mjs.js +2 -1
  173. package/dist/node_modules/@radix-ui/react-switch/dist/index.mjs.js.map +1 -1
  174. package/dist/node_modules/@radix-ui/react-switch/node_modules/@radix-ui/react-context/dist/index.mjs.js +2 -0
  175. package/dist/node_modules/@radix-ui/react-switch/node_modules/@radix-ui/react-context/dist/index.mjs.js.map +1 -0
  176. package/dist/node_modules/@radix-ui/react-switch/node_modules/@radix-ui/react-primitive/dist/index.mjs.js +2 -0
  177. package/dist/node_modules/@radix-ui/react-switch/node_modules/@radix-ui/react-primitive/dist/index.mjs.js.map +1 -0
  178. package/dist/node_modules/@radix-ui/react-switch/node_modules/@radix-ui/react-slot/dist/index.mjs.js +2 -0
  179. package/dist/node_modules/@radix-ui/react-switch/node_modules/@radix-ui/react-slot/dist/index.mjs.js.map +1 -0
  180. package/dist/node_modules/@radix-ui/react-tabs/dist/index.mjs.js +2 -1
  181. package/dist/node_modules/@radix-ui/react-tabs/dist/index.mjs.js.map +1 -1
  182. package/dist/node_modules/@radix-ui/react-tabs/node_modules/@radix-ui/react-context/dist/index.mjs.js +2 -0
  183. package/dist/node_modules/@radix-ui/react-tabs/node_modules/@radix-ui/react-context/dist/index.mjs.js.map +1 -0
  184. package/dist/node_modules/@radix-ui/react-tabs/node_modules/@radix-ui/react-primitive/dist/index.mjs.js +2 -0
  185. package/dist/node_modules/@radix-ui/react-tabs/node_modules/@radix-ui/react-primitive/dist/index.mjs.js.map +1 -0
  186. package/dist/node_modules/@radix-ui/react-tabs/node_modules/@radix-ui/react-slot/dist/index.mjs.js +2 -0
  187. package/dist/node_modules/@radix-ui/react-tabs/node_modules/@radix-ui/react-slot/dist/index.mjs.js.map +1 -0
  188. package/dist/node_modules/@radix-ui/react-toggle/dist/index.mjs.js +2 -1
  189. package/dist/node_modules/@radix-ui/react-toggle/dist/index.mjs.js.map +1 -1
  190. package/dist/node_modules/@radix-ui/react-toggle/node_modules/@radix-ui/react-primitive/dist/index.mjs.js +2 -0
  191. package/dist/node_modules/@radix-ui/react-toggle/node_modules/@radix-ui/react-primitive/dist/index.mjs.js.map +1 -0
  192. package/dist/node_modules/@radix-ui/react-toggle/node_modules/@radix-ui/react-slot/dist/index.mjs.js +2 -0
  193. package/dist/node_modules/@radix-ui/react-toggle/node_modules/@radix-ui/react-slot/dist/index.mjs.js.map +1 -0
  194. package/dist/node_modules/@radix-ui/react-toggle-group/dist/index.mjs.js +2 -1
  195. package/dist/node_modules/@radix-ui/react-toggle-group/dist/index.mjs.js.map +1 -1
  196. package/dist/node_modules/@radix-ui/react-toggle-group/node_modules/@radix-ui/react-context/dist/index.mjs.js +2 -0
  197. package/dist/node_modules/@radix-ui/react-toggle-group/node_modules/@radix-ui/react-context/dist/index.mjs.js.map +1 -0
  198. package/dist/node_modules/@radix-ui/react-toggle-group/node_modules/@radix-ui/react-primitive/dist/index.mjs.js +2 -0
  199. package/dist/node_modules/@radix-ui/react-toggle-group/node_modules/@radix-ui/react-primitive/dist/index.mjs.js.map +1 -0
  200. package/dist/node_modules/@radix-ui/react-toggle-group/node_modules/@radix-ui/react-slot/dist/index.mjs.js +2 -0
  201. package/dist/node_modules/@radix-ui/react-toggle-group/node_modules/@radix-ui/react-slot/dist/index.mjs.js.map +1 -0
  202. package/dist/node_modules/@radix-ui/react-tooltip/dist/index.mjs.js +2 -1
  203. package/dist/node_modules/@radix-ui/react-tooltip/dist/index.mjs.js.map +1 -1
  204. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-context/dist/index.mjs.js +2 -0
  205. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-context/dist/index.mjs.js.map +1 -0
  206. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-primitive/dist/index.mjs.js +2 -0
  207. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-primitive/dist/index.mjs.js.map +1 -0
  208. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-slot/dist/index.mjs.js +1 -1
  209. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-slot/dist/index.mjs.js.map +1 -1
  210. package/dist/node_modules/@radix-ui/react-use-callback-ref/dist/index.mjs.js +1 -1
  211. package/dist/node_modules/@radix-ui/react-use-callback-ref/dist/index.mjs.js.map +1 -1
  212. package/dist/node_modules/@radix-ui/react-use-controllable-state/dist/index.mjs.js +1 -1
  213. package/dist/node_modules/@radix-ui/react-use-controllable-state/dist/index.mjs.js.map +1 -1
  214. package/dist/node_modules/@radix-ui/react-use-escape-keydown/dist/index.mjs.js +1 -1
  215. package/dist/node_modules/@radix-ui/react-use-escape-keydown/dist/index.mjs.js.map +1 -1
  216. package/dist/node_modules/@radix-ui/react-use-is-hydrated/dist/index.mjs.js +2 -0
  217. package/dist/node_modules/@radix-ui/react-use-is-hydrated/dist/index.mjs.js.map +1 -0
  218. package/dist/node_modules/@radix-ui/react-use-layout-effect/dist/index.mjs.js +1 -1
  219. package/dist/node_modules/@radix-ui/react-use-layout-effect/dist/index.mjs.js.map +1 -1
  220. package/dist/node_modules/@radix-ui/react-use-previous/dist/index.mjs.js +1 -1
  221. package/dist/node_modules/@radix-ui/react-use-previous/dist/index.mjs.js.map +1 -1
  222. package/dist/node_modules/@radix-ui/react-use-size/dist/index.mjs.js +1 -1
  223. package/dist/node_modules/@radix-ui/react-use-size/dist/index.mjs.js.map +1 -1
  224. package/dist/node_modules/@radix-ui/react-visually-hidden/dist/index.mjs.js +1 -1
  225. package/dist/node_modules/@radix-ui/react-visually-hidden/dist/index.mjs.js.map +1 -1
  226. package/dist/node_modules/@radix-ui/react-visually-hidden/node_modules/@radix-ui/react-primitive/dist/index.mjs.js +2 -0
  227. package/dist/node_modules/@radix-ui/react-visually-hidden/node_modules/@radix-ui/react-primitive/dist/index.mjs.js.map +1 -0
  228. package/dist/node_modules/@radix-ui/react-visually-hidden/node_modules/@radix-ui/react-slot/dist/index.mjs.js +2 -0
  229. package/dist/node_modules/@radix-ui/react-visually-hidden/node_modules/@radix-ui/react-slot/dist/index.mjs.js.map +1 -0
  230. package/dist/node_modules/aria-hidden/dist/es2015/index.js +1 -1
  231. package/dist/node_modules/aria-hidden/dist/es2015/index.js.map +1 -1
  232. package/dist/node_modules/class-variance-authority/dist/index.mjs.js +1 -1
  233. package/dist/node_modules/class-variance-authority/dist/index.mjs.js.map +1 -1
  234. package/dist/node_modules/cmdk/dist/chunk-NZJY6EH4.mjs.js +2 -0
  235. package/dist/node_modules/cmdk/dist/chunk-NZJY6EH4.mjs.js.map +1 -0
  236. package/dist/node_modules/cmdk/dist/index.mjs.js +2 -1
  237. package/dist/node_modules/cmdk/dist/index.mjs.js.map +1 -1
  238. package/dist/node_modules/input-otp/dist/index.mjs.js +1 -1
  239. package/dist/node_modules/input-otp/dist/index.mjs.js.map +1 -1
  240. package/dist/node_modules/react-remove-scroll/dist/es2015/SideEffect.js +1 -1
  241. package/dist/node_modules/react-remove-scroll/dist/es2015/SideEffect.js.map +1 -1
  242. package/dist/node_modules/react-remove-scroll/dist/es2015/UI.js +1 -1
  243. package/dist/node_modules/react-remove-scroll/dist/es2015/UI.js.map +1 -1
  244. package/dist/node_modules/react-remove-scroll/dist/es2015/handleScroll.js +1 -1
  245. package/dist/node_modules/react-remove-scroll/dist/es2015/handleScroll.js.map +1 -1
  246. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/component.js +1 -1
  247. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/component.js.map +1 -1
  248. package/dist/node_modules/sonner/dist/index.mjs.js +1 -1
  249. package/dist/node_modules/use-callback-ref/dist/es2015/useMergeRef.js +1 -1
  250. package/dist/node_modules/use-callback-ref/dist/es2015/useMergeRef.js.map +1 -1
  251. package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js +11 -0
  252. package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js.map +1 -0
  253. package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js +11 -0
  254. package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js.map +1 -0
  255. package/dist/node_modules/use-sync-external-store/shim/index.js +2 -0
  256. package/dist/node_modules/use-sync-external-store/shim/index.js.map +1 -0
  257. package/dist/src/shadcn/ui/accordion.js +1 -1
  258. package/dist/src/shadcn/ui/avatar.js +1 -1
  259. package/dist/src/shadcn/ui/checkbox.js +1 -1
  260. package/dist/src/shadcn/ui/dialog.js +1 -1
  261. package/dist/src/shadcn/ui/dropdown-menu.js +1 -1
  262. package/dist/src/shadcn/ui/label.js +1 -1
  263. package/dist/src/shadcn/ui/navigation-menu.js +1 -1
  264. package/dist/src/shadcn/ui/progress.js +1 -1
  265. package/dist/src/shadcn/ui/select.js +1 -1
  266. package/dist/tailwind-manifest.js +18306 -16326
  267. package/dist/types/src/shadcn/ui/command.d.ts +44 -8
  268. package/package.json +30 -27
  269. package/dist/node_modules/@babel/runtime/helpers/esm/extends.js +0 -2
  270. package/dist/node_modules/@babel/runtime/helpers/esm/extends.js.map +0 -1
  271. package/dist/node_modules/@radix-ui/react-primitive/node_modules/@radix-ui/react-slot/dist/index.mjs.js +0 -2
  272. package/dist/node_modules/@radix-ui/react-primitive/node_modules/@radix-ui/react-slot/dist/index.mjs.js.map +0 -1
  273. package/dist/node_modules/@radix-ui/react-scroll-area/node_modules/@radix-ui/number/dist/index.mjs.js +0 -2
  274. package/dist/node_modules/@radix-ui/react-scroll-area/node_modules/@radix-ui/number/dist/index.mjs.js.map +0 -1
  275. package/dist/node_modules/@radix-ui/react-scroll-area/node_modules/@radix-ui/primitive/dist/index.mjs.js +0 -2
  276. package/dist/node_modules/@radix-ui/react-scroll-area/node_modules/@radix-ui/primitive/dist/index.mjs.js.map +0 -1
  277. package/dist/node_modules/@radix-ui/react-scroll-area/node_modules/@radix-ui/react-compose-refs/dist/index.mjs.js +0 -2
  278. package/dist/node_modules/@radix-ui/react-scroll-area/node_modules/@radix-ui/react-compose-refs/dist/index.mjs.js.map +0 -1
  279. package/dist/node_modules/@radix-ui/react-scroll-area/node_modules/@radix-ui/react-direction/dist/index.mjs.js +0 -2
  280. package/dist/node_modules/@radix-ui/react-scroll-area/node_modules/@radix-ui/react-direction/dist/index.mjs.js.map +0 -1
  281. package/dist/node_modules/@radix-ui/react-scroll-area/node_modules/@radix-ui/react-presence/dist/index.mjs.js +0 -3
  282. package/dist/node_modules/@radix-ui/react-scroll-area/node_modules/@radix-ui/react-presence/dist/index.mjs.js.map +0 -1
  283. package/dist/node_modules/@radix-ui/react-scroll-area/node_modules/@radix-ui/react-use-callback-ref/dist/index.mjs.js +0 -2
  284. package/dist/node_modules/@radix-ui/react-scroll-area/node_modules/@radix-ui/react-use-callback-ref/dist/index.mjs.js.map +0 -1
  285. package/dist/node_modules/@radix-ui/react-scroll-area/node_modules/@radix-ui/react-use-layout-effect/dist/index.mjs.js +0 -2
  286. package/dist/node_modules/@radix-ui/react-scroll-area/node_modules/@radix-ui/react-use-layout-effect/dist/index.mjs.js.map +0 -1
  287. package/dist/node_modules/@radix-ui/react-slot/node_modules/@radix-ui/react-compose-refs/dist/index.mjs.js +0 -2
  288. package/dist/node_modules/@radix-ui/react-slot/node_modules/@radix-ui/react-compose-refs/dist/index.mjs.js.map +0 -1
  289. package/dist/node_modules/class-variance-authority/node_modules/clsx/dist/clsx.mjs.js +0 -2
  290. package/dist/node_modules/class-variance-authority/node_modules/clsx/dist/clsx.mjs.js.map +0 -1
  291. package/dist/node_modules/cmdk/node_modules/@radix-ui/primitive/dist/index.module.js +0 -2
  292. package/dist/node_modules/cmdk/node_modules/@radix-ui/primitive/dist/index.module.js.map +0 -1
  293. package/dist/node_modules/cmdk/node_modules/@radix-ui/react-compose-refs/dist/index.module.js +0 -2
  294. package/dist/node_modules/cmdk/node_modules/@radix-ui/react-compose-refs/dist/index.module.js.map +0 -1
  295. package/dist/node_modules/cmdk/node_modules/@radix-ui/react-context/dist/index.module.js +0 -2
  296. package/dist/node_modules/cmdk/node_modules/@radix-ui/react-context/dist/index.module.js.map +0 -1
  297. package/dist/node_modules/cmdk/node_modules/@radix-ui/react-dialog/dist/index.module.js +0 -2
  298. package/dist/node_modules/cmdk/node_modules/@radix-ui/react-dialog/dist/index.module.js.map +0 -1
  299. package/dist/node_modules/cmdk/node_modules/@radix-ui/react-dismissable-layer/dist/index.module.js +0 -2
  300. package/dist/node_modules/cmdk/node_modules/@radix-ui/react-dismissable-layer/dist/index.module.js.map +0 -1
  301. package/dist/node_modules/cmdk/node_modules/@radix-ui/react-focus-guards/dist/index.module.js +0 -2
  302. package/dist/node_modules/cmdk/node_modules/@radix-ui/react-focus-guards/dist/index.module.js.map +0 -1
  303. package/dist/node_modules/cmdk/node_modules/@radix-ui/react-focus-scope/dist/index.module.js +0 -2
  304. package/dist/node_modules/cmdk/node_modules/@radix-ui/react-focus-scope/dist/index.module.js.map +0 -1
  305. package/dist/node_modules/cmdk/node_modules/@radix-ui/react-id/dist/index.module.js +0 -2
  306. package/dist/node_modules/cmdk/node_modules/@radix-ui/react-id/dist/index.module.js.map +0 -1
  307. package/dist/node_modules/cmdk/node_modules/@radix-ui/react-portal/dist/index.module.js +0 -2
  308. package/dist/node_modules/cmdk/node_modules/@radix-ui/react-portal/dist/index.module.js.map +0 -1
  309. package/dist/node_modules/cmdk/node_modules/@radix-ui/react-presence/dist/index.module.js +0 -2
  310. package/dist/node_modules/cmdk/node_modules/@radix-ui/react-presence/dist/index.module.js.map +0 -1
  311. package/dist/node_modules/cmdk/node_modules/@radix-ui/react-primitive/dist/index.module.js +0 -2
  312. package/dist/node_modules/cmdk/node_modules/@radix-ui/react-primitive/dist/index.module.js.map +0 -1
  313. package/dist/node_modules/cmdk/node_modules/@radix-ui/react-slot/dist/index.module.js +0 -2
  314. package/dist/node_modules/cmdk/node_modules/@radix-ui/react-slot/dist/index.module.js.map +0 -1
  315. package/dist/node_modules/cmdk/node_modules/@radix-ui/react-use-callback-ref/dist/index.module.js +0 -2
  316. package/dist/node_modules/cmdk/node_modules/@radix-ui/react-use-callback-ref/dist/index.module.js.map +0 -1
  317. package/dist/node_modules/cmdk/node_modules/@radix-ui/react-use-controllable-state/dist/index.module.js +0 -2
  318. package/dist/node_modules/cmdk/node_modules/@radix-ui/react-use-controllable-state/dist/index.module.js.map +0 -1
  319. package/dist/node_modules/cmdk/node_modules/@radix-ui/react-use-escape-keydown/dist/index.module.js +0 -2
  320. package/dist/node_modules/cmdk/node_modules/@radix-ui/react-use-escape-keydown/dist/index.module.js.map +0 -1
  321. package/dist/node_modules/cmdk/node_modules/@radix-ui/react-use-layout-effect/dist/index.module.js +0 -2
  322. package/dist/node_modules/cmdk/node_modules/@radix-ui/react-use-layout-effect/dist/index.module.js.map +0 -1
  323. package/dist/node_modules/cmdk/node_modules/react-remove-scroll/dist/es2015/Combination.js +0 -2
  324. package/dist/node_modules/cmdk/node_modules/react-remove-scroll/dist/es2015/Combination.js.map +0 -1
  325. package/dist/node_modules/cmdk/node_modules/react-remove-scroll/dist/es2015/SideEffect.js +0 -2
  326. package/dist/node_modules/cmdk/node_modules/react-remove-scroll/dist/es2015/SideEffect.js.map +0 -1
  327. package/dist/node_modules/cmdk/node_modules/react-remove-scroll/dist/es2015/UI.js +0 -2
  328. package/dist/node_modules/cmdk/node_modules/react-remove-scroll/dist/es2015/UI.js.map +0 -1
  329. package/dist/node_modules/cmdk/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js +0 -2
  330. package/dist/node_modules/cmdk/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js.map +0 -1
  331. package/dist/node_modules/cmdk/node_modules/react-remove-scroll/dist/es2015/handleScroll.js +0 -2
  332. package/dist/node_modules/cmdk/node_modules/react-remove-scroll/dist/es2015/handleScroll.js.map +0 -1
  333. package/dist/node_modules/cmdk/node_modules/react-remove-scroll/dist/es2015/medium.js +0 -2
  334. package/dist/node_modules/cmdk/node_modules/react-remove-scroll/dist/es2015/medium.js.map +0 -1
  335. package/dist/node_modules/cmdk/node_modules/react-remove-scroll/dist/es2015/sidecar.js +0 -2
  336. package/dist/node_modules/cmdk/node_modules/react-remove-scroll/dist/es2015/sidecar.js.map +0 -1
  337. package/dist/node_modules/command-score/index.js +0 -2
  338. package/dist/node_modules/command-score/index.js.map +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs.js","sources":["../../../../../../../../node_modules/@radix-ui/react-collapsible/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\";\n// @__NO_SIDE_EFFECTS__\nfunction createSlot(ownerName) {\n const SlotClone = /* @__PURE__ */ createSlotClone(ownerName);\n const Slot2 = React.forwardRef((props, forwardedRef) => {\n const { children, ...slotProps } = props;\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 const { children, ...slotProps } = props;\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":["createSlot","ownerName","SlotClone","createSlotClone","Slot2","React","forwardRef","props","forwardedRef","children","slotProps","childrenArray","Children","toArray","slottable","find","isSlottable","newElement","newChildren","map","child","count","only","isValidElement","jsx","ref","cloneElement","displayName","childrenRef","element","getter","Object","getOwnPropertyDescriptor","get","mayWarn","isReactWarning","getElementRef","props2","childProps","overrideProps","propName","slotPropValue","childPropValue","test","args","result","filter","Boolean","join","mergeProps","type","Fragment","composeRefs","SLOTTABLE_IDENTIFIER","Symbol","__radixId"],"mappings":"kJAKA,SAASA,EAAWC,GAClB,MAAMC,EAA4BC,EAAgBF,GAC5CG,EAAQC,EAAMC,YAAW,CAACC,EAAOC,KACrC,MAAMC,SAAEA,KAAaC,GAAcH,EAC7BI,EAAgBN,EAAMO,SAASC,QAAQJ,GACvCK,EAAYH,EAAcI,KAAKC,GACrC,GAAIF,EAAW,CACb,MAAMG,EAAaH,EAAUP,MAAME,SAC7BS,EAAcP,EAAcQ,KAAKC,GACjCA,IAAUN,EACRT,EAAMO,SAASS,MAAMJ,GAAc,EAAUZ,EAAMO,SAASU,KAAK,MAC9DjB,EAAMkB,eAAeN,GAAcA,EAAWV,MAAME,SAAW,KAE/DW,IAGX,OAAuBI,EAAItB,EAAW,IAAKQ,EAAWe,IAAKjB,EAAcC,SAAUJ,EAAMkB,eAAeN,GAAcZ,EAAMqB,aAAaT,OAAY,EAAQC,GAAe,MAC7K,CACD,OAAuBM,EAAItB,EAAW,IAAKQ,EAAWe,IAAKjB,EAAcC,YAAW,IAGtF,OADAL,EAAMuB,YAAc,GAAG1B,SAChBG,CACT,CAGA,SAASD,EAAgBF,GACvB,MAAMC,EAAYG,EAAMC,YAAW,CAACC,EAAOC,KACzC,MAAMC,SAAEA,KAAaC,GAAcH,EACnC,GAAIF,EAAMkB,eAAed,GAAW,CAClC,MAAMmB,EAkDZ,SAAuBC,GACrB,IAAIC,EAASC,OAAOC,yBAAyBH,EAAQtB,MAAO,QAAQ0B,IAChEC,EAAUJ,GAAU,mBAAoBA,GAAUA,EAAOK,eAC7D,GAAID,EACF,OAAOL,EAAQJ,IAIjB,GAFAK,EAASC,OAAOC,yBAAyBH,EAAS,QAAQI,IAC1DC,EAAUJ,GAAU,mBAAoBA,GAAUA,EAAOK,eACrDD,EACF,OAAOL,EAAQtB,MAAMkB,IAEvB,OAAOI,EAAQtB,MAAMkB,KAAOI,EAAQJ,GACtC,CA9D0BW,CAAc3B,GAC5B4B,EAyBZ,SAAoB3B,EAAW4B,GAC7B,MAAMC,EAAgB,IAAKD,GAC3B,IAAK,MAAME,KAAYF,EAAY,CACjC,MAAMG,EAAgB/B,EAAU8B,GAC1BE,EAAiBJ,EAAWE,GAChB,WAAWG,KAAKH,GAE5BC,GAAiBC,EACnBH,EAAcC,GAAY,IAAII,KAC5B,MAAMC,EAASH,KAAkBE,GAEjC,OADAH,KAAiBG,GACVC,CAAM,EAENJ,IACTF,EAAcC,GAAYC,GAEN,UAAbD,EACTD,EAAcC,GAAY,IAAKC,KAAkBC,GAC3B,cAAbF,IACTD,EAAcC,GAAY,CAACC,EAAeC,GAAgBI,OAAOC,SAASC,KAAK,KAElF,CACD,MAAO,IAAKtC,KAAc6B,EAC5B,CAhDqBU,CAAWvC,EAAWD,EAASF,OAI9C,OAHIE,EAASyC,OAAS7C,EAAM8C,WAC1Bd,EAAOZ,IAAMjB,EAAe4C,EAAY5C,EAAcoB,GAAeA,GAEhEvB,EAAMqB,aAAajB,EAAU4B,EACrC,CACD,OAAOhC,EAAMO,SAASS,MAAMZ,GAAY,EAAIJ,EAAMO,SAASU,KAAK,MAAQ,IAAI,IAG9E,OADApB,EAAUyB,YAAc,GAAG1B,cACpBC,CACT,CACA,IAAImD,EAAuBC,OAAO,mBAWlC,SAAStC,EAAYI,GACnB,OAAOf,EAAMkB,eAAeH,IAAgC,mBAAfA,EAAM8B,MAAuB,cAAe9B,EAAM8B,MAAQ9B,EAAM8B,KAAKK,YAAcF,CAClI"}
@@ -1,2 +1,3 @@
1
- import e from"react";import{createContextScope as t}from"../../react-context/dist/index.mjs.js";import{useComposedRefs as r}from"../../react-compose-refs/dist/index.mjs.js";import{Slot as o}from"../node_modules/@radix-ui/react-slot/dist/index.mjs.js";function n(n){const c=n+"CollectionProvider",[l,i]=t(c),[s,a]=l(c,{collectionRef:{current:null},itemMap:new Map}),f=n+"CollectionSlot",m=n+"CollectionItemSlot",u="data-radix-collection-item";return[{Provider:t=>{const{scope:r,children:o}=t,n=e.useRef(null),c=e.useRef(new Map).current;return e.createElement(s,{scope:r,itemMap:c,collectionRef:n},o)},Slot:e.forwardRef(((t,n)=>{const{scope:c,children:l}=t,i=a(f,c),s=r(n,i.collectionRef);return e.createElement(o,{ref:s},l)})),ItemSlot:e.forwardRef(((t,n)=>{const{scope:c,children:l,...i}=t,s=e.useRef(null),f=r(n,s),d=a(m,c);return e.useEffect((()=>(d.itemMap.set(s,{ref:s,...i}),()=>{d.itemMap.delete(s)}))),e.createElement(o,{[u]:"",ref:f},l)}))},function(t){const r=a(n+"CollectionConsumer",t);return e.useCallback((()=>{const e=r.collectionRef.current;if(!e)return[];const t=Array.from(e.querySelectorAll(`[${u}]`));return Array.from(r.itemMap.values()).sort(((e,r)=>t.indexOf(e.ref.current)-t.indexOf(r.ref.current)))}),[r.collectionRef,r.itemMap])},i]}export{n as createCollection};
1
+ 'use client';
2
+ import e from"react";import{createContextScope as r}from"../node_modules/@radix-ui/react-context/dist/index.mjs.js";import{useComposedRefs as t}from"../../react-compose-refs/dist/index.mjs.js";import{createSlot as o}from"../node_modules/@radix-ui/react-slot/dist/index.mjs.js";import{jsx as n}from"react/jsx-runtime";function c(c){const i=c+"CollectionProvider",[l,s]=r(i),[f,m]=l(i,{collectionRef:{current:null},itemMap:new Map}),a=r=>{const{scope:t,children:o}=r,c=e.useRef(null),i=e.useRef(new Map).current;return n(f,{scope:t,itemMap:i,collectionRef:c,children:o})};a.displayName=i;const d=c+"CollectionSlot",u=o(d),p=e.forwardRef(((e,r)=>{const{scope:o,children:c}=e,i=m(d,o),l=t(r,i.collectionRef);return n(u,{ref:l,children:c})}));p.displayName=d;const x=c+"CollectionItemSlot",R="data-radix-collection-item",M=o(x),j=e.forwardRef(((r,o)=>{const{scope:c,children:i,...l}=r,s=e.useRef(null),f=t(o,s),a=m(x,c);return e.useEffect((()=>(a.itemMap.set(s,{ref:s,...l}),()=>{a.itemMap.delete(s)}))),n(M,{[R]:"",ref:f,children:i})}));return j.displayName=x,[{Provider:a,Slot:p,ItemSlot:j},function(r){const t=m(c+"CollectionConsumer",r);return e.useCallback((()=>{const e=t.collectionRef.current;if(!e)return[];const r=Array.from(e.querySelectorAll(`[${R}]`));return Array.from(t.itemMap.values()).sort(((e,t)=>r.indexOf(e.ref.current)-r.indexOf(t.ref.current)))}),[t.collectionRef,t.itemMap])},s]}export{c as createCollection};
2
3
  //# sourceMappingURL=index.mjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs.js","sources":["../../../../../node_modules/@radix-ui/react-collection/dist/index.mjs"],"sourcesContent":["import $6vYhU$react from \"react\";\nimport {createContextScope as $6vYhU$createContextScope} from \"@radix-ui/react-context\";\nimport {useComposedRefs as $6vYhU$useComposedRefs} from \"@radix-ui/react-compose-refs\";\nimport {Slot as $6vYhU$Slot} from \"@radix-ui/react-slot\";\n\n\n\n\n\n// We have resorted to returning slots directly rather than exposing primitives that can then\n// be slotted like `<CollectionItem as={Slot}>…</CollectionItem>`.\n// This is because we encountered issues with generic types that cannot be statically analysed\n// due to creating them dynamically via createCollection.\nfunction $e02a7d9cb1dc128c$export$c74125a8e3af6bb2(name) {\n /* -----------------------------------------------------------------------------------------------\n * CollectionProvider\n * ---------------------------------------------------------------------------------------------*/ const PROVIDER_NAME = name + 'CollectionProvider';\n const [createCollectionContext, createCollectionScope] = $6vYhU$createContextScope(PROVIDER_NAME);\n const [CollectionProviderImpl, useCollectionContext] = createCollectionContext(PROVIDER_NAME, {\n collectionRef: {\n current: null\n },\n itemMap: new Map()\n });\n const CollectionProvider = (props)=>{\n const { scope: scope , children: children } = props;\n const ref = $6vYhU$react.useRef(null);\n const itemMap = $6vYhU$react.useRef(new Map()).current;\n return /*#__PURE__*/ $6vYhU$react.createElement(CollectionProviderImpl, {\n scope: scope,\n itemMap: itemMap,\n collectionRef: ref\n }, children);\n };\n /*#__PURE__*/ Object.assign(CollectionProvider, {\n displayName: PROVIDER_NAME\n });\n /* -----------------------------------------------------------------------------------------------\n * CollectionSlot\n * ---------------------------------------------------------------------------------------------*/ const COLLECTION_SLOT_NAME = name + 'CollectionSlot';\n const CollectionSlot = /*#__PURE__*/ $6vYhU$react.forwardRef((props, forwardedRef)=>{\n const { scope: scope , children: children } = props;\n const context = useCollectionContext(COLLECTION_SLOT_NAME, scope);\n const composedRefs = $6vYhU$useComposedRefs(forwardedRef, context.collectionRef);\n return /*#__PURE__*/ $6vYhU$react.createElement($6vYhU$Slot, {\n ref: composedRefs\n }, children);\n });\n /*#__PURE__*/ Object.assign(CollectionSlot, {\n displayName: COLLECTION_SLOT_NAME\n });\n /* -----------------------------------------------------------------------------------------------\n * CollectionItem\n * ---------------------------------------------------------------------------------------------*/ const ITEM_SLOT_NAME = name + 'CollectionItemSlot';\n const ITEM_DATA_ATTR = 'data-radix-collection-item';\n const CollectionItemSlot = /*#__PURE__*/ $6vYhU$react.forwardRef((props, forwardedRef)=>{\n const { scope: scope , children: children , ...itemData } = props;\n const ref = $6vYhU$react.useRef(null);\n const composedRefs = $6vYhU$useComposedRefs(forwardedRef, ref);\n const context = useCollectionContext(ITEM_SLOT_NAME, scope);\n $6vYhU$react.useEffect(()=>{\n context.itemMap.set(ref, {\n ref: ref,\n ...itemData\n });\n return ()=>void context.itemMap.delete(ref)\n ;\n });\n return /*#__PURE__*/ $6vYhU$react.createElement($6vYhU$Slot, {\n [ITEM_DATA_ATTR]: '',\n ref: composedRefs\n }, children);\n });\n /*#__PURE__*/ Object.assign(CollectionItemSlot, {\n displayName: ITEM_SLOT_NAME\n });\n /* -----------------------------------------------------------------------------------------------\n * useCollection\n * ---------------------------------------------------------------------------------------------*/ function useCollection(scope) {\n const context = useCollectionContext(name + 'CollectionConsumer', scope);\n const getItems = $6vYhU$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((a, b)=>orderedNodes.indexOf(a.ref.current) - orderedNodes.indexOf(b.ref.current)\n );\n return orderedItems;\n }, [\n context.collectionRef,\n context.itemMap\n ]);\n return getItems;\n }\n return [\n {\n Provider: CollectionProvider,\n Slot: CollectionSlot,\n ItemSlot: CollectionItemSlot\n },\n useCollection,\n createCollectionScope\n ];\n}\n\n\n\n\nexport {$e02a7d9cb1dc128c$export$c74125a8e3af6bb2 as createCollection};\n//# sourceMappingURL=index.mjs.map\n"],"names":["$e02a7d9cb1dc128c$export$c74125a8e3af6bb2","name","PROVIDER_NAME","createCollectionContext","createCollectionScope","$6vYhU$createContextScope","CollectionProviderImpl","useCollectionContext","collectionRef","current","itemMap","Map","COLLECTION_SLOT_NAME","ITEM_SLOT_NAME","ITEM_DATA_ATTR","Provider","props","scope","children","ref","$6vYhU$react","useRef","createElement","Slot","forwardRef","forwardedRef","context","composedRefs","$6vYhU$useComposedRefs","$6vYhU$Slot","ItemSlot","itemData","useEffect","set","delete","useCallback","collectionNode","orderedNodes","Array","from","querySelectorAll","values","sort","a","b","indexOf"],"mappings":"2PAaA,SAASA,EAA0CC,GAGkD,MAAMC,EAAgBD,EAAO,sBACvHE,EAAyBC,GAAyBC,EAA0BH,IAC5EI,EAAwBC,GAAwBJ,EAAwBD,EAAe,CAC1FM,cAAe,CACXC,QAAS,MAEbC,QAAS,IAAIC,MAiBsFC,EAAuBX,EAAO,iBAc9BY,EAAiBZ,EAAO,qBACzHa,EAAiB,6BAwCvB,MAAO,CACH,CACIC,SAxEoBC,IACxB,MAAQC,MAAOA,EAAQC,SAAUA,GAAcF,EACzCG,EAAMC,EAAaC,OAAO,MAC1BX,EAAUU,EAAaC,OAAO,IAAIV,KAAOF,QAC/C,OAAqBW,EAAaE,cAAchB,EAAwB,CACpEW,MAAOA,EACPP,QAASA,EACTF,cAAeW,GAChBD,EAAS,EAiERK,KAzD6BH,EAAaI,YAAW,CAACR,EAAOS,KACjE,MAAQR,MAAOA,EAAQC,SAAUA,GAAcF,EACzCU,EAAUnB,EAAqBK,EAAsBK,GACrDU,EAAeC,EAAuBH,EAAcC,EAAQlB,eAClE,OAAqBY,EAAaE,cAAcO,EAAa,CACzDV,IAAKQ,GACNT,EAAS,IAoDRY,SA3CiCV,EAAaI,YAAW,CAACR,EAAOS,KACrE,MAAQR,MAAOA,EAAQC,SAAUA,KAAca,GAAaf,EACtDG,EAAMC,EAAaC,OAAO,MAC1BM,EAAeC,EAAuBH,EAAcN,GACpDO,EAAUnB,EAAqBM,EAAgBI,GASrD,OARAG,EAAaY,WAAU,KACnBN,EAAQhB,QAAQuB,IAAId,EAAK,CACrBA,IAAKA,KACFY,IAEA,KAASL,EAAQhB,QAAQwB,OAAOf,EACtC,KAEgBC,EAAaE,cAAcO,EAAa,CACzDf,CAACA,GAAiB,GAClBK,IAAKQ,GACNT,EAAS,KAOiF,SAAuBD,GACpH,MAAMS,EAAUnB,EAAqBN,EAAO,qBAAsBgB,GAalE,OAZiBG,EAAae,aAAY,KACtC,MAAMC,EAAiBV,EAAQlB,cAAcC,QAC7C,IAAK2B,EAAgB,MAAO,GAC5B,MAAMC,EAAeC,MAAMC,KAAKH,EAAeI,iBAAiB,IAAI1B,OAIpE,OAHcwB,MAAMC,KAAKb,EAAQhB,QAAQ+B,UACdC,MAAK,CAACC,EAAGC,IAAIP,EAAaQ,QAAQF,EAAExB,IAAIV,SAAW4B,EAAaQ,QAAQD,EAAEzB,IAAIV,UAEtF,GACpB,CACCiB,EAAQlB,cACRkB,EAAQhB,SAGf,EAQGN,EAER"}
1
+ {"version":3,"file":"index.mjs.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -0,0 +1,2 @@
1
+ import*as e from"react";import{jsx as t}from"react/jsx-runtime";function o(o,r=[]){let c=[];const s=()=>{const t=c.map((t=>e.createContext(t)));return function(n){const r=n?.[o]||t;return e.useMemo((()=>({[`__scope${o}`]:{...n,[o]:r}})),[n,r])}};return s.scopeName=o,[function(n,r){const s=e.createContext(r),u=c.length;c=[...c,r];const i=n=>{const{scope:r,children:c,...i}=n,m=r?.[o]?.[u]||s,p=e.useMemo((()=>i),Object.values(i));return t(m.Provider,{value:p,children:c})};return i.displayName=n+"Provider",[i,function(t,c){const i=c?.[o]?.[u]||s,m=e.useContext(i);if(m)return m;if(void 0!==r)return r;throw new Error(`\`${t}\` must be used within \`${n}\``)}]},n(s,...r)]}function n(...t){const o=t[0];if(1===t.length)return o;const n=()=>{const n=t.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(t){const r=n.reduce(((e,{useScope:o,scopeName:n})=>({...e,...o(t)[`__scope${n}`]})),{});return e.useMemo((()=>({[`__scope${o.scopeName}`]:r})),[r])}};return n.scopeName=o.scopeName,n}export{o as createContextScope};
2
+ //# sourceMappingURL=index.mjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs.js","sources":["../../../../../../../../node_modules/@radix-ui/react-collection/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","createScope","scopeContexts","map","defaultContext","React","createContext","scope","contexts","useMemo","rootComponentName","BaseContext","index","length","Provider","props","children","context","Context","value","Object","values","jsx","displayName","consumerName","useContext","Error","composeContextScopes","scopes","baseScope","scopeHooks","createScope2","useScope","overrideScopes","nextScopes","reduce","nextScopes2"],"mappings":"gEAmBA,SAASA,EAAmBC,EAAWC,EAAyB,IAC9D,IAAIC,EAAkB,GAqBtB,MAAMC,EAAc,KAClB,MAAMC,EAAgBF,EAAgBG,KAAKC,GAClCC,EAAMC,cAAcF,KAE7B,OAAO,SAAkBG,GACvB,MAAMC,EAAWD,IAAQT,IAAcI,EACvC,OAAOG,EAAMI,SACX,KAAA,CAAS,CAAC,UAAUX,KAAc,IAAKS,EAAOT,CAACA,GAAYU,MAC3D,CAACD,EAAOC,GAEhB,CAAK,EAGH,OADAP,EAAYH,UAAYA,EACjB,CAjCP,SAAwBY,EAAmBN,GACzC,MAAMO,EAAcN,EAAMC,cAAcF,GAClCQ,EAAQZ,EAAgBa,OAC9Bb,EAAkB,IAAIA,EAAiBI,GACvC,MAAMU,EAAYC,IAChB,MAAMR,MAAEA,EAAKS,SAAEA,KAAaC,GAAYF,EAClCG,EAAUX,IAAQT,KAAac,IAAUD,EACzCQ,EAAQd,EAAMI,SAAQ,IAAMQ,GAASG,OAAOC,OAAOJ,IACzD,OAAuBK,EAAIJ,EAAQJ,SAAU,CAAEK,QAAOH,YAAW,EAUnE,OARAF,EAASS,YAAcb,EAAoB,WAQpC,CAACI,EAPR,SAAqBU,EAAcjB,GACjC,MAAMW,EAAUX,IAAQT,KAAac,IAAUD,EACzCM,EAAUZ,EAAMoB,WAAWP,GACjC,GAAID,EAAS,OAAOA,EACpB,QAAuB,IAAnBb,EAA2B,OAAOA,EACtC,MAAM,IAAIsB,MAAM,KAAKF,6BAAwCd,MAC9D,EAEF,EAcuBiB,EAAqB1B,KAAgBF,GAC/D,CACA,SAAS4B,KAAwBC,GAC/B,MAAMC,EAAYD,EAAO,GACzB,GAAsB,IAAlBA,EAAOf,OAAc,OAAOgB,EAChC,MAAM5B,EAAc,KAClB,MAAM6B,EAAaF,EAAOzB,KAAK4B,IAAkB,CAC/CC,SAAUD,IACVjC,UAAWiC,EAAajC,cAE1B,OAAO,SAA2BmC,GAChC,MAAMC,EAAaJ,EAAWK,QAAO,CAACC,GAAeJ,WAAUlC,gBAGtD,IAAKsC,KAFOJ,EAASC,GACI,UAAUnC,QAEzC,CAAE,GACL,OAAOO,EAAMI,SAAQ,MAAS,CAAC,UAAUoB,EAAU/B,aAAcoC,KAAe,CAACA,GACvF,CAAK,EAGH,OADAjC,EAAYH,UAAY+B,EAAU/B,UAC3BG,CACT"}
@@ -1,2 +1,2 @@
1
- import n from"../../../../../../@babel/runtime/helpers/esm/extends.js";import{forwardRef as o,Children as e,isValidElement as r,createElement as t,cloneElement as l,Fragment as s}from"react";import{composeRefs as c}from"../../../../../react-compose-refs/dist/index.mjs.js";const i=o(((o,s)=>{const{children:c,...i}=o,a=e.toArray(c),u=a.find(f);if(u){const o=u.props.children,c=a.map((n=>n===u?e.count(o)>1?e.only(null):r(o)?o.props.children:null:n));return t(p,n({},i,{ref:s}),r(o)?l(o,void 0,c):null)}return t(p,n({},i,{ref:s}),c)}));i.displayName="Slot";const p=o(((n,o)=>{const{children:t,...s}=n;return r(t)?l(t,{...u(s,t.props),ref:o?c(o,t.ref):t.ref}):e.count(t)>1?e.only(null):null}));p.displayName="SlotClone";const a=({children:n})=>t(s,null,n);function f(n){return r(n)&&n.type===a}function u(n,o){const e={...o};for(const r in o){const t=n[r],l=o[r];/^on[A-Z]/.test(r)?t&&l?e[r]=(...n)=>{l(...n),t(...n)}:t&&(e[r]=t):"style"===r?e[r]={...t,...l}:"className"===r&&(e[r]=[t,l].filter(Boolean).join(" "))}return{...n,...e}}export{i as Slot,a as Slottable};
1
+ import*as r from"react";import{composeRefs as e}from"../../../../../react-compose-refs/dist/index.mjs.js";import{jsx as n}from"react/jsx-runtime";function t(e){const t=i(e),o=r.forwardRef(((e,i)=>{const{children:o,...s}=e,c=r.Children.toArray(o),a=c.find(l);if(a){const e=a.props.children,o=c.map((n=>n===a?r.Children.count(e)>1?r.Children.only(null):r.isValidElement(e)?e.props.children:null:n));return n(t,{...s,ref:i,children:r.isValidElement(e)?r.cloneElement(e,void 0,o):null})}return n(t,{...s,ref:i,children:o})}));return o.displayName=`${e}.Slot`,o}function i(n){const t=r.forwardRef(((n,t)=>{const{children:i,...o}=n;if(r.isValidElement(i)){const n=function(r){let e=Object.getOwnPropertyDescriptor(r.props,"ref")?.get,n=e&&"isReactWarning"in e&&e.isReactWarning;if(n)return r.ref;if(e=Object.getOwnPropertyDescriptor(r,"ref")?.get,n=e&&"isReactWarning"in e&&e.isReactWarning,n)return r.props.ref;return r.props.ref||r.ref}(i),l=function(r,e){const n={...e};for(const t in e){const i=r[t],o=e[t];/^on[A-Z]/.test(t)?i&&o?n[t]=(...r)=>{const e=o(...r);return i(...r),e}:i&&(n[t]=i):"style"===t?n[t]={...i,...o}:"className"===t&&(n[t]=[i,o].filter(Boolean).join(" "))}return{...r,...n}}(o,i.props);return i.type!==r.Fragment&&(l.ref=t?e(t,n):n),r.cloneElement(i,l)}return r.Children.count(i)>1?r.Children.only(null):null}));return t.displayName=`${n}.SlotClone`,t}var o=Symbol("radix.slottable");function l(e){return r.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===o}export{t as createSlot};
2
2
  //# sourceMappingURL=index.mjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs.js","sources":["../../../../../../../../node_modules/@radix-ui/react-collection/node_modules/@radix-ui/react-slot/dist/index.mjs"],"sourcesContent":["import $9IrjX$babelruntimehelpersesmextends from \"@babel/runtime/helpers/esm/extends\";\nimport {forwardRef as $9IrjX$forwardRef, Children as $9IrjX$Children, isValidElement as $9IrjX$isValidElement, createElement as $9IrjX$createElement, cloneElement as $9IrjX$cloneElement, Fragment as $9IrjX$Fragment} from \"react\";\nimport {composeRefs as $9IrjX$composeRefs} from \"@radix-ui/react-compose-refs\";\n\n\n\n\n/* -------------------------------------------------------------------------------------------------\n * Slot\n * -----------------------------------------------------------------------------------------------*/ const $5e63c961fc1ce211$export$8c6ed5c666ac1360 = /*#__PURE__*/ $9IrjX$forwardRef((props, forwardedRef)=>{\n const { children: children , ...slotProps } = props;\n const childrenArray = $9IrjX$Children.toArray(children);\n const slottable = childrenArray.find($5e63c961fc1ce211$var$isSlottable);\n if (slottable) {\n // the new element to render is the one passed as a child of `Slottable`\n const newElement = slottable.props.children;\n const newChildren = childrenArray.map((child)=>{\n if (child === slottable) {\n // because the new element will be the one rendered, we are only interested\n // in grabbing its children (`newElement.props.children`)\n if ($9IrjX$Children.count(newElement) > 1) return $9IrjX$Children.only(null);\n return /*#__PURE__*/ $9IrjX$isValidElement(newElement) ? newElement.props.children : null;\n } else return child;\n });\n return /*#__PURE__*/ $9IrjX$createElement($5e63c961fc1ce211$var$SlotClone, $9IrjX$babelruntimehelpersesmextends({}, slotProps, {\n ref: forwardedRef\n }), /*#__PURE__*/ $9IrjX$isValidElement(newElement) ? /*#__PURE__*/ $9IrjX$cloneElement(newElement, undefined, newChildren) : null);\n }\n return /*#__PURE__*/ $9IrjX$createElement($5e63c961fc1ce211$var$SlotClone, $9IrjX$babelruntimehelpersesmextends({}, slotProps, {\n ref: forwardedRef\n }), children);\n});\n$5e63c961fc1ce211$export$8c6ed5c666ac1360.displayName = 'Slot';\n/* -------------------------------------------------------------------------------------------------\n * SlotClone\n * -----------------------------------------------------------------------------------------------*/ const $5e63c961fc1ce211$var$SlotClone = /*#__PURE__*/ $9IrjX$forwardRef((props, forwardedRef)=>{\n const { children: children , ...slotProps } = props;\n if (/*#__PURE__*/ $9IrjX$isValidElement(children)) return /*#__PURE__*/ $9IrjX$cloneElement(children, {\n ...$5e63c961fc1ce211$var$mergeProps(slotProps, children.props),\n ref: forwardedRef ? $9IrjX$composeRefs(forwardedRef, children.ref) : children.ref\n });\n return $9IrjX$Children.count(children) > 1 ? $9IrjX$Children.only(null) : null;\n});\n$5e63c961fc1ce211$var$SlotClone.displayName = 'SlotClone';\n/* -------------------------------------------------------------------------------------------------\n * Slottable\n * -----------------------------------------------------------------------------------------------*/ const $5e63c961fc1ce211$export$d9f1ccf0bdb05d45 = ({ children: children })=>{\n return /*#__PURE__*/ $9IrjX$createElement($9IrjX$Fragment, null, children);\n};\n/* ---------------------------------------------------------------------------------------------- */ function $5e63c961fc1ce211$var$isSlottable(child) {\n return /*#__PURE__*/ $9IrjX$isValidElement(child) && child.type === $5e63c961fc1ce211$export$d9f1ccf0bdb05d45;\n}\nfunction $5e63c961fc1ce211$var$mergeProps(slotProps, childProps) {\n // all child props should override\n const overrideProps = {\n ...childProps\n };\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 the handler exists on both, we compose them\n if (slotPropValue && childPropValue) overrideProps[propName] = (...args)=>{\n childPropValue(...args);\n slotPropValue(...args);\n };\n else if (slotPropValue) overrideProps[propName] = slotPropValue;\n } else if (propName === 'style') overrideProps[propName] = {\n ...slotPropValue,\n ...childPropValue\n };\n else if (propName === 'className') overrideProps[propName] = [\n slotPropValue,\n childPropValue\n ].filter(Boolean).join(' ');\n }\n return {\n ...slotProps,\n ...overrideProps\n };\n}\nconst $5e63c961fc1ce211$export$be92b6f5f03c0fe9 = $5e63c961fc1ce211$export$8c6ed5c666ac1360;\n\n\n\n\nexport {$5e63c961fc1ce211$export$8c6ed5c666ac1360 as Slot, $5e63c961fc1ce211$export$d9f1ccf0bdb05d45 as Slottable, $5e63c961fc1ce211$export$be92b6f5f03c0fe9 as Root};\n//# sourceMappingURL=index.mjs.map\n"],"names":["$5e63c961fc1ce211$export$8c6ed5c666ac1360","$9IrjX$forwardRef","props","forwardedRef","children","slotProps","childrenArray","$9IrjX$Children","toArray","slottable","find","$5e63c961fc1ce211$var$isSlottable","newElement","newChildren","map","child","count","only","$9IrjX$isValidElement","$9IrjX$createElement","$5e63c961fc1ce211$var$SlotClone","$9IrjX$babelruntimehelpersesmextends","ref","$9IrjX$cloneElement","undefined","displayName","$5e63c961fc1ce211$var$mergeProps","$9IrjX$composeRefs","$5e63c961fc1ce211$export$d9f1ccf0bdb05d45","$9IrjX$Fragment","type","childProps","overrideProps","propName","slotPropValue","childPropValue","test","args","filter","Boolean","join"],"mappings":"iRAS0G,MAACA,EAA0DC,GAAkB,CAACC,EAAOC,KAC3L,MAAQC,SAAUA,KAAcC,GAAcH,EACxCI,EAAgBC,EAAgBC,QAAQJ,GACxCK,EAAYH,EAAcI,KAAKC,GACrC,GAAIF,EAAW,CAEX,MAAMG,EAAaH,EAAUP,MAAME,SAC7BS,EAAcP,EAAcQ,KAAKC,GAC/BA,IAAUN,EAGNF,EAAgBS,MAAMJ,GAAc,EAAUL,EAAgBU,KAAK,MAClDC,EAAsBN,GAAcA,EAAWV,MAAME,SAAW,KAC3EW,IAElB,OAAqBI,EAAqBC,EAAiCC,EAAqC,CAAA,EAAIhB,EAAW,CAC3HiB,IAAKnB,IACSe,EAAsBN,GAA4BW,EAAoBX,OAAYY,EAAWX,GAAe,KACjI,CACD,OAAqBM,EAAqBC,EAAiCC,EAAqC,CAAA,EAAIhB,EAAW,CAC3HiB,IAAKnB,IACLC,EAAS,IAEjBJ,EAA0CyB,YAAc,OAG6C,MAAML,EAAgDnB,GAAkB,CAACC,EAAOC,KACjL,MAAQC,SAAUA,KAAcC,GAAcH,EAC9C,OAAkBgB,EAAsBd,GAAgCmB,EAAoBnB,EAAU,IAC/FsB,EAAiCrB,EAAWD,EAASF,OACxDoB,IAAKnB,EAAewB,EAAmBxB,EAAcC,EAASkB,KAAOlB,EAASkB,MAE3Ef,EAAgBS,MAAMZ,GAAY,EAAIG,EAAgBU,KAAK,MAAQ,IAAI,IAElFG,EAAgCK,YAAc,YAG4D,MAACG,EAA4C,EAAGxB,SAAUA,KAC3Ie,EAAqBU,EAAiB,KAAMzB,GAEgC,SAASO,EAAkCI,GAC5I,OAAqBG,EAAsBH,IAAUA,EAAMe,OAASF,CACxE,CACA,SAASF,EAAiCrB,EAAW0B,GAEjD,MAAMC,EAAgB,IACfD,GAEP,IAAI,MAAME,KAAYF,EAAW,CAC7B,MAAMG,EAAgB7B,EAAU4B,GAC1BE,EAAiBJ,EAAWE,GAChB,WAAWG,KAAKH,GAG1BC,GAAiBC,EAAgBH,EAAcC,GAAY,IAAII,KAC/DF,KAAkBE,GAClBH,KAAiBG,EAAK,EAEjBH,IAAeF,EAAcC,GAAYC,GAC9B,UAAbD,EAAsBD,EAAcC,GAAY,IACpDC,KACAC,GAEe,cAAbF,IAA0BD,EAAcC,GAAY,CACzDC,EACAC,GACFG,OAAOC,SAASC,KAAK,KAC1B,CACD,MAAO,IACAnC,KACA2B,EAEX"}
1
+ {"version":3,"file":"index.mjs.js","sources":["../../../../../../../../node_modules/@radix-ui/react-collection/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\";\n// @__NO_SIDE_EFFECTS__\nfunction createSlot(ownerName) {\n const SlotClone = /* @__PURE__ */ createSlotClone(ownerName);\n const Slot2 = React.forwardRef((props, forwardedRef) => {\n const { children, ...slotProps } = props;\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 const { children, ...slotProps } = props;\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":["createSlot","ownerName","SlotClone","createSlotClone","Slot2","React","forwardRef","props","forwardedRef","children","slotProps","childrenArray","Children","toArray","slottable","find","isSlottable","newElement","newChildren","map","child","count","only","isValidElement","jsx","ref","cloneElement","displayName","childrenRef","element","getter","Object","getOwnPropertyDescriptor","get","mayWarn","isReactWarning","getElementRef","props2","childProps","overrideProps","propName","slotPropValue","childPropValue","test","args","result","filter","Boolean","join","mergeProps","type","Fragment","composeRefs","SLOTTABLE_IDENTIFIER","Symbol","__radixId"],"mappings":"kJAKA,SAASA,EAAWC,GAClB,MAAMC,EAA4BC,EAAgBF,GAC5CG,EAAQC,EAAMC,YAAW,CAACC,EAAOC,KACrC,MAAMC,SAAEA,KAAaC,GAAcH,EAC7BI,EAAgBN,EAAMO,SAASC,QAAQJ,GACvCK,EAAYH,EAAcI,KAAKC,GACrC,GAAIF,EAAW,CACb,MAAMG,EAAaH,EAAUP,MAAME,SAC7BS,EAAcP,EAAcQ,KAAKC,GACjCA,IAAUN,EACRT,EAAMO,SAASS,MAAMJ,GAAc,EAAUZ,EAAMO,SAASU,KAAK,MAC9DjB,EAAMkB,eAAeN,GAAcA,EAAWV,MAAME,SAAW,KAE/DW,IAGX,OAAuBI,EAAItB,EAAW,IAAKQ,EAAWe,IAAKjB,EAAcC,SAAUJ,EAAMkB,eAAeN,GAAcZ,EAAMqB,aAAaT,OAAY,EAAQC,GAAe,MAC7K,CACD,OAAuBM,EAAItB,EAAW,IAAKQ,EAAWe,IAAKjB,EAAcC,YAAW,IAGtF,OADAL,EAAMuB,Y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,SAASU,KAAK,MAAQ,IAAI,IAG9E,OADApB,EAAUyB,YAAc,GAAG1B,cACpBC,CACT,CACA,IAAImD,EAAuBC,OAAO,mBAWlC,SAAStC,EAAYI,GACnB,OAAOf,EAAMkB,eAAeH,IAAgC,mBAAfA,EAAM8B,MAAuB,cAAe9B,EAAM8B,MAAQ9B,EAAM8B,KAAKK,YAAcF,CAClI"}
@@ -1,2 +1,2 @@
1
- import{useCallback as o}from"react";function n(...o){return n=>o.forEach((o=>function(o,n){"function"==typeof o?o(n):null!=o&&(o.current=n)}(o,n)))}function e(...e){return o(n(...e),e)}export{n as composeRefs,e as useComposedRefs};
1
+ import*as n from"react";function t(n,t){if("function"==typeof n)return n(t);null!=n&&(n.current=t)}function r(...n){return r=>{let o=!1;const e=n.map((n=>{const e=t(n,r);return o||"function"!=typeof e||(o=!0),e}));if(o)return()=>{for(let r=0;r<e.length;r++){const o=e[r];"function"==typeof o?o():t(n[r],null)}}}}function o(...t){return n.useCallback(r(...t),t)}export{r as composeRefs,o as useComposedRefs};
2
2
  //# sourceMappingURL=index.mjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs.js","sources":["../../../../../node_modules/@radix-ui/react-compose-refs/dist/index.mjs"],"sourcesContent":["import {useCallback as $3vqmr$useCallback} from \"react\";\n\n\n/**\n * Set a given ref to a given value\n * This utility takes care of different types of refs: callback refs and RefObject(s)\n */ function $6ed0406888f73fc4$var$setRef(ref, value) {\n if (typeof ref === 'function') ref(value);\n else if (ref !== null && ref !== undefined) ref.current = value;\n}\n/**\n * A utility to compose multiple refs together\n * Accepts callback refs and RefObject(s)\n */ function $6ed0406888f73fc4$export$43e446d32b3d21af(...refs) {\n return (node)=>refs.forEach((ref)=>$6ed0406888f73fc4$var$setRef(ref, node)\n )\n ;\n}\n/**\n * A custom hook that composes multiple refs\n * Accepts callback refs and RefObject(s)\n */ function $6ed0406888f73fc4$export$c7b2cbe3552a0d05(...refs) {\n // eslint-disable-next-line react-hooks/exhaustive-deps\n return $3vqmr$useCallback($6ed0406888f73fc4$export$43e446d32b3d21af(...refs), refs);\n}\n\n\n\n\nexport {$6ed0406888f73fc4$export$43e446d32b3d21af as composeRefs, $6ed0406888f73fc4$export$c7b2cbe3552a0d05 as useComposedRefs};\n//# sourceMappingURL=index.mjs.map\n"],"names":["$6ed0406888f73fc4$export$43e446d32b3d21af","refs","node","forEach","ref","value","current","$6ed0406888f73fc4$var$setRef","$6ed0406888f73fc4$export$c7b2cbe3552a0d05","$3vqmr$useCallback"],"mappings":"oCAaI,SAASA,KAA6CC,GACtD,OAAQC,GAAOD,EAAKE,SAASC,GAR7B,SAAsCA,EAAKC,GACxB,mBAARD,EAAoBA,EAAIC,GAC1BD,UAAmCA,EAAIE,QAAUD,EAC9D,CAKuCE,CAA6BH,EAAKF,IAGzE,CAII,SAASM,KAA6CP,GAEtD,OAAOQ,EAAmBT,KAA6CC,GAAOA,EAClF"}
1
+ {"version":3,"file":"index.mjs.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","current","composeRefs","refs","node","hasCleanup","cleanups","map","cleanup","i","length","useComposedRefs","React","useCallback"],"mappings":"wBAEA,SAASA,EAAOC,EAAKC,GACnB,GAAmB,mBAARD,EACT,OAAOA,EAAIC,GACFD,UACTA,EAAIE,QAAUD,EAElB,CACA,SAASE,KAAeC,GACtB,OAAQC,IACN,IAAIC,GAAa,EACjB,MAAMC,EAAWH,EAAKI,KAAKR,IACzB,MAAMS,EAAUV,EAAOC,EAAKK,GAI5B,OAHKC,GAAgC,mBAAXG,IACxBH,GAAa,GAERG,CAAO,IAEhB,GAAIH,EACF,MAAO,KACL,IAAK,IAAII,EAAI,EAAGA,EAAIH,EAASI,OAAQD,IAAK,CACxC,MAAMD,EAAUF,EAASG,GACH,mBAAXD,EACTA,IAEAV,EAAOK,EAAKM,GAAI,KAEnB,EAEJ,CAEL,CACA,SAASE,KAAmBR,GAC1B,OAAOS,EAAMC,YAAYX,KAAeC,GAAOA,EACjD"}
@@ -1,2 +1,2 @@
1
- import{createContext as e,useMemo as n,createElement as o,useContext as t}from"react";function r(r,s=[]){let u=[];const i=()=>{const o=u.map((n=>e(n)));return function(e){const t=(null==e?void 0:e[r])||o;return n((()=>({[`__scope${r}`]:{...e,[r]:t}})),[e,t])}};return i.scopeName=r,[function(c,s){const i=e(s),p=u.length;function a(e){const{scope:t,children:c,...s}=e,u=(null==t?void 0:t[r][p])||i,a=n((()=>s),Object.values(s));return o(u.Provider,{value:a},c)}return u=[...u,s],a.displayName=c+"Provider",[a,function(e,n){const o=(null==n?void 0:n[r][p])||i,u=t(o);if(u)return u;if(void 0!==s)return s;throw new Error(`\`${e}\` must be used within \`${c}\``)}]},c(i,...s)]}function c(...e){const o=e[0];if(1===e.length)return o;const t=()=>{const t=e.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(e){const r=t.reduce(((n,{useScope:o,scopeName:t})=>({...n,...o(e)[`__scope${t}`]})),{});return n((()=>({[`__scope${o.scopeName}`]:r})),[r])}};return t.scopeName=o.scopeName,t}export{r as createContextScope};
1
+ import*as e from"react";import{jsx as t}from"react/jsx-runtime";function o(o,r=[]){let c=[];const s=()=>{const t=c.map((t=>e.createContext(t)));return function(n){const r=n?.[o]||t;return e.useMemo((()=>({[`__scope${o}`]:{...n,[o]:r}})),[n,r])}};return s.scopeName=o,[function(n,r){const s=e.createContext(r);s.displayName=n+"Context";const u=c.length;c=[...c,r];const i=n=>{const{scope:r,children:c,...i}=n,a=r?.[o]?.[u]||s,m=e.useMemo((()=>i),Object.values(i));return t(a.Provider,{value:m,children:c})};return i.displayName=n+"Provider",[i,function(t,c){const i=c?.[o]?.[u]||s,a=e.useContext(i);if(a)return a;if(void 0!==r)return r;throw new Error(`\`${t}\` must be used within \`${n}\``)}]},n(s,...r)]}function n(...t){const o=t[0];if(1===t.length)return o;const n=()=>{const n=t.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(t){const r=n.reduce(((e,{useScope:o,scopeName:n})=>({...e,...o(t)[`__scope${n}`]})),{});return e.useMemo((()=>({[`__scope${o.scopeName}`]:r})),[r])}};return n.scopeName=o.scopeName,n}export{o as createContextScope};
2
2
  //# sourceMappingURL=index.mjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs.js","sources":["../../../../../node_modules/@radix-ui/react-context/dist/index.mjs"],"sourcesContent":["import {createContext as $3bkAK$createContext, useMemo as $3bkAK$useMemo, createElement as $3bkAK$createElement, useContext as $3bkAK$useContext} from \"react\";\n\n\nfunction $c512c27ab02ef895$export$fd42f52fd3ae1109(rootComponentName, defaultContext) {\n const Context = /*#__PURE__*/ $3bkAK$createContext(defaultContext);\n function Provider(props) {\n const { children: children , ...context } = props; // Only re-memoize when prop values change\n // eslint-disable-next-line react-hooks/exhaustive-deps\n const value = $3bkAK$useMemo(()=>context\n , Object.values(context));\n return /*#__PURE__*/ $3bkAK$createElement(Context.Provider, {\n value: value\n }, children);\n }\n function useContext(consumerName) {\n const context = $3bkAK$useContext(Context);\n if (context) return context;\n if (defaultContext !== undefined) return defaultContext; // if a defaultContext wasn't specified, it's a required context.\n throw new Error(`\\`${consumerName}\\` must be used within \\`${rootComponentName}\\``);\n }\n Provider.displayName = rootComponentName + 'Provider';\n return [\n Provider,\n useContext\n ];\n}\n/* -------------------------------------------------------------------------------------------------\n * createContextScope\n * -----------------------------------------------------------------------------------------------*/ function $c512c27ab02ef895$export$50c7b4e9d9f19c1(scopeName, createContextScopeDeps = []) {\n let defaultContexts = [];\n /* -----------------------------------------------------------------------------------------------\n * createContext\n * ---------------------------------------------------------------------------------------------*/ function $c512c27ab02ef895$export$fd42f52fd3ae1109(rootComponentName, defaultContext) {\n const BaseContext = /*#__PURE__*/ $3bkAK$createContext(defaultContext);\n const index = defaultContexts.length;\n defaultContexts = [\n ...defaultContexts,\n defaultContext\n ];\n function Provider(props) {\n const { scope: scope , children: children , ...context } = props;\n const Context = (scope === null || scope === void 0 ? void 0 : scope[scopeName][index]) || BaseContext; // Only re-memoize when prop values change\n // eslint-disable-next-line react-hooks/exhaustive-deps\n const value = $3bkAK$useMemo(()=>context\n , Object.values(context));\n return /*#__PURE__*/ $3bkAK$createElement(Context.Provider, {\n value: value\n }, children);\n }\n function useContext(consumerName, scope) {\n const Context = (scope === null || scope === void 0 ? void 0 : scope[scopeName][index]) || BaseContext;\n const context = $3bkAK$useContext(Context);\n if (context) return context;\n if (defaultContext !== undefined) return defaultContext; // if a defaultContext wasn't specified, it's a required context.\n throw new Error(`\\`${consumerName}\\` must be used within \\`${rootComponentName}\\``);\n }\n Provider.displayName = rootComponentName + 'Provider';\n return [\n Provider,\n useContext\n ];\n }\n /* -----------------------------------------------------------------------------------------------\n * createScope\n * ---------------------------------------------------------------------------------------------*/ const createScope = ()=>{\n const scopeContexts = defaultContexts.map((defaultContext)=>{\n return /*#__PURE__*/ $3bkAK$createContext(defaultContext);\n });\n return function useScope(scope) {\n const contexts = (scope === null || scope === void 0 ? void 0 : scope[scopeName]) || scopeContexts;\n return $3bkAK$useMemo(()=>({\n [`__scope${scopeName}`]: {\n ...scope,\n [scopeName]: contexts\n }\n })\n , [\n scope,\n contexts\n ]);\n };\n };\n createScope.scopeName = scopeName;\n return [\n $c512c27ab02ef895$export$fd42f52fd3ae1109,\n $c512c27ab02ef895$var$composeContextScopes(createScope, ...createContextScopeDeps)\n ];\n}\n/* -------------------------------------------------------------------------------------------------\n * composeContextScopes\n * -----------------------------------------------------------------------------------------------*/ function $c512c27ab02ef895$var$composeContextScopes(...scopes) {\n const baseScope = scopes[0];\n if (scopes.length === 1) return baseScope;\n const createScope1 = ()=>{\n const scopeHooks = scopes.map((createScope)=>({\n useScope: createScope(),\n scopeName: createScope.scopeName\n })\n );\n return function useComposedScopes(overrideScopes) {\n const nextScopes1 = scopeHooks.reduce((nextScopes, { useScope: useScope , scopeName: scopeName })=>{\n // We are calling a hook inside a callback which React warns against to avoid inconsistent\n // renders, however, scoping doesn't have render side effects so we ignore the rule.\n // eslint-disable-next-line react-hooks/rules-of-hooks\n const scopeProps = useScope(overrideScopes);\n const currentScope = scopeProps[`__scope${scopeName}`];\n return {\n ...nextScopes,\n ...currentScope\n };\n }, {});\n return $3bkAK$useMemo(()=>({\n [`__scope${baseScope.scopeName}`]: nextScopes1\n })\n , [\n nextScopes1\n ]);\n };\n };\n createScope1.scopeName = baseScope.scopeName;\n return createScope1;\n}\n\n\n\n\nexport {$c512c27ab02ef895$export$fd42f52fd3ae1109 as createContext, $c512c27ab02ef895$export$50c7b4e9d9f19c1 as createContextScope};\n//# sourceMappingURL=index.mjs.map\n"],"names":["$c512c27ab02ef895$export$50c7b4e9d9f19c1","scopeName","createContextScopeDeps","defaultContexts","createScope","scopeContexts","map","defaultContext","$3bkAK$createContext","scope","contexts","$3bkAK$useMemo","rootComponentName","BaseContext","index","length","Provider","props","children","context","Context","value","Object","values","$3bkAK$createElement","displayName","consumerName","$3bkAK$useContext","undefined","Error","$c512c27ab02ef895$var$composeContextScopes","scopes","baseScope","createScope1","scopeHooks","useScope","overrideScopes","nextScopes1","reduce","nextScopes"],"mappings":"sFA4BqG,SAASA,E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GAAcJ,SAAUA,EAAWlC,UAAWA,MAM1E,IACAsC,KAHYJ,EAASC,GACI,UAAUnC,QAK3C,CAAE,GACL,OAAOU,GAAe,KAAK,CACnB,CAAC,UAAUqB,EAAU/B,aAAcoC,KAEzC,CACEA,GAEhB,CAAS,EAGL,OADAJ,EAAahC,UAAY+B,EAAU/B,UAC5BgC,CACX"}
1
+ {"version":3,"file":"index.mjs.js","sources":["../../../../../node_modules/@radix-ui/react-context/dist/index.mjs"],"sourcesContent":["// src/create-context.tsx\nimport * as React from \"react\";\nimport { jsx } from \"react/jsx-runtime\";\nfunction createContext2(rootComponentName, defaultContext) {\n const Context = React.createContext(defaultContext);\n Context.displayName = rootComponentName + \"Context\";\n const Provider = (props) => {\n const { children, ...context } = props;\n const value = React.useMemo(() => context, Object.values(context));\n return /* @__PURE__ */ jsx(Context.Provider, { value, children });\n };\n Provider.displayName = rootComponentName + \"Provider\";\n function useContext2(consumerName) {\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 BaseContext.displayName = rootComponentName + \"Context\";\n const index = defaultContexts.length;\n defaultContexts = [...defaultContexts, defaultContext];\n const Provider = (props) => {\n const { scope, children, ...context } = props;\n const Context = scope?.[scopeName]?.[index] || BaseContext;\n const value = React.useMemo(() => context, Object.values(context));\n return /* @__PURE__ */ jsx(Context.Provider, { value, children });\n };\n Provider.displayName = rootComponentName + \"Provider\";\n function useContext2(consumerName, scope) {\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","createScope","scopeContexts","map","defaultContext","React","createContext","scope","contexts","useMemo","rootComponentName","BaseContext","displayName","index","length","Provider","props","children","context","Context","value","Object","values","jsx","consumerName","useContext","Error","composeContextScopes","scopes","baseScope","scopeHooks","createScope2","useScope","overrideScopes","nextScopes","reduce","nextScopes2"],"mappings":"gEAoBA,SAASA,EAAmBC,EAAWC,EAAyB,IAC9D,IAAIC,EAAkB,GAsBtB,MAAMC,EAAc,KAClB,MAAMC,EAAgBF,EAAgBG,KAAKC,GAClCC,EAAMC,cAAcF,KAE7B,OAAO,SAAkBG,GACvB,MAAMC,EAAWD,IAAQT,IAAcI,EACvC,OAAOG,EAAMI,SACX,KAAA,CAAS,CAAC,UAAUX,KAAc,IAAKS,EAAOT,CAACA,GAAYU,MAC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../../../@babel/runtime/helpers/esm/extends.js";import{forwardRef as o,createElement as t,useRef as n,useEffect as r,Fragment as s,useCallback as i,Children as a}from"react";import{composeEventHandlers as l}from"../../primitive/dist/index.mjs.js";import{useComposedRefs as c}from"../../react-compose-refs/dist/index.mjs.js";import{createContextScope as u}from"../../react-context/dist/index.mjs.js";import{useId as d}from"../../react-id/dist/index.mjs.js";import{useControllableState as p}from"../../react-use-controllable-state/dist/index.mjs.js";import{DismissableLayer as m}from"../../react-dismissable-layer/dist/index.mjs.js";import{FocusScope as g}from"../../react-focus-scope/dist/index.mjs.js";import{Portal as f}from"../../react-portal/dist/index.mjs.js";import{Presence as D}from"../../react-presence/dist/index.mjs.js";import{Primitive as v}from"../../react-primitive/dist/index.mjs.js";import{useFocusGuards as _}from"../../react-focus-guards/dist/index.mjs.js";import j from"../../../react-remove-scroll/dist/es2015/Combination.js";import{hideOthers as C}from"../../../aria-hidden/dist/es2015/index.js";import{Slot as b}from"../node_modules/@radix-ui/react-slot/dist/index.mjs.js";const x="Dialog",[O,h]=u(x),[F,y]=O(x),P=e=>{const{__scopeDialog:o,children:r,open:s,defaultOpen:a,onOpenChange:l,modal:c=!0}=e,u=n(null),m=n(null),[g=!1,f]=p({prop:s,defaultProp:a,onChange:l});return t(F,{scope:o,triggerRef:u,contentRef:m,contentId:d(),titleId:d(),descriptionId:d(),open:g,onOpenChange:f,onOpenToggle:i((()=>f((e=>!e))),[f]),modal:c},r)},I=o(((o,n)=>{const{__scopeDialog:r,...s}=o,i=y("DialogTrigger",r),a=c(n,i.triggerRef);return t(v.button,e({type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":z(i.open)},s,{ref:a,onClick:l(o.onClick,i.onOpenToggle)}))})),R="DialogPortal",[A,M]=O(R,{forceMount:void 0}),T=e=>{const{__scopeDialog:o,forceMount:n,children:r,container:s}=e,i=y(R,o);return t(A,{scope:o,forceMount:n},a.map(r,(e=>t(D,{present:n||i.open},t(f,{asChild:!0,container:s},e)))))},E="DialogOverlay",S=o(((o,n)=>{const r=M(E,o.__scopeDialog),{forceMount:s=r.forceMount,...i}=o,a=y(E,o.__scopeDialog);return a.modal?t(D,{present:s||a.open},t(k,e({},i,{ref:n}))):null})),k=o(((o,n)=>{const{__scopeDialog:r,...s}=o,i=y(E,r);return t(j,{as:b,allowPinchZoom:!0,shards:[i.contentRef]},t(v.div,e({"data-state":z(i.open)},s,{ref:n,style:{pointerEvents:"auto",...s.style}})))})),w="DialogContent",G=o(((o,n)=>{const r=M(w,o.__scopeDialog),{forceMount:s=r.forceMount,...i}=o,a=y(w,o.__scopeDialog);return t(D,{present:s||a.open},a.modal?t(H,e({},i,{ref:n})):t(K,e({},i,{ref:n})))})),H=o(((o,s)=>{const i=y(w,o.__scopeDialog),a=n(null),u=c(s,i.contentRef,a);return r((()=>{const e=a.current;if(e)return C(e)}),[]),t(L,e({},o,{ref:u,trapFocus:i.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:l(o.onCloseAutoFocus,(e=>{var o;e.preventDefault(),null===(o=i.triggerRef.current)||void 0===o||o.focus()})),onPointerDownOutside:l(o.onPointerDownOutside,(e=>{const o=e.detail.originalEvent,t=0===o.button&&!0===o.ctrlKey;(2===o.button||t)&&e.preventDefault()})),onFocusOutside:l(o.onFocusOutside,(e=>e.preventDefault()))}))})),K=o(((o,r)=>{const s=y(w,o.__scopeDialog),i=n(!1),a=n(!1);return t(L,e({},o,{ref:r,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:e=>{var t,n;(null===(t=o.onCloseAutoFocus)||void 0===t||t.call(o,e),e.defaultPrevented)||(i.current||null===(n=s.triggerRef.current)||void 0===n||n.focus(),e.preventDefault());i.current=!1,a.current=!1},onInteractOutside:e=>{var t,n;null===(t=o.onInteractOutside)||void 0===t||t.call(o,e),e.defaultPrevented||(i.current=!0,"pointerdown"===e.detail.originalEvent.type&&(a.current=!0));const r=e.target;(null===(n=s.triggerRef.current)||void 0===n?void 0:n.contains(r))&&e.preventDefault(),"focusin"===e.detail.originalEvent.type&&a.current&&e.preventDefault()}}))})),L=o(((o,r)=>{const{__scopeDialog:i,trapFocus:a,onOpenAutoFocus:l,onCloseAutoFocus:u,...d}=o,p=y(w,i),f=n(null),D=c(r,f);return _(),t(s,null,t(g,{asChild:!0,loop:!0,trapped:a,onMountAutoFocus:l,onUnmountAutoFocus:u},t(m,e({role:"dialog",id:p.contentId,"aria-describedby":p.descriptionId,"aria-labelledby":p.titleId,"data-state":z(p.open)},d,{ref:D,onDismiss:()=>p.onOpenChange(!1)}))),!1)})),U=o(((o,n)=>{const{__scopeDialog:r,...s}=o,i=y("DialogTitle",r);return t(v.h2,e({id:i.titleId},s,{ref:n}))})),Z=o(((o,n)=>{const{__scopeDialog:r,...s}=o,i=y("DialogDescription",r);return t(v.p,e({id:i.descriptionId},s,{ref:n}))})),q=o(((o,n)=>{const{__scopeDialog:r,...s}=o,i=y("DialogClose",r);return t(v.button,e({type:"button"},s,{ref:n,onClick:l(o.onClick,(()=>i.onOpenChange(!1)))}))}));function z(e){return e?"open":"closed"}const B=P,J=I,N=T,Q=S,V=G,W=U,X=Z,Y=q;export{Y as Close,V as Content,X as Description,P as Dialog,q as DialogClose,G as DialogContent,Z as DialogDescription,S as DialogOverlay,T as DialogPortal,U as DialogTitle,I as DialogTrigger,Q as Overlay,N as Portal,B as Root,W as Title,J as Trigger,h as createDialogScope};
1
+ 'use client';
2
+ import*as e from"react";import{composeEventHandlers as o}from"../../primitive/dist/index.mjs.js";import{useComposedRefs as t}from"../../react-compose-refs/dist/index.mjs.js";import{createContextScope as r,createContext as n}from"../node_modules/@radix-ui/react-context/dist/index.mjs.js";import{useId as i}from"../../react-id/dist/index.mjs.js";import{useControllableState as s}from"../../react-use-controllable-state/dist/index.mjs.js";import{DismissableLayer as a}from"../../react-dismissable-layer/dist/index.mjs.js";import{FocusScope as c}from"../../react-focus-scope/dist/index.mjs.js";import{Portal as d}from"../../react-portal/dist/index.mjs.js";import{Presence as l}from"../../react-presence/dist/index.mjs.js";import{Primitive as u}from"../node_modules/@radix-ui/react-primitive/dist/index.mjs.js";import{useFocusGuards as p}from"../../react-focus-guards/dist/index.mjs.js";import f from"../../../react-remove-scroll/dist/es2015/Combination.js";import{hideOthers as m}from"../../../aria-hidden/dist/es2015/index.js";import{createSlot as g}from"../node_modules/@radix-ui/react-slot/dist/index.mjs.js";import{jsx as D,jsxs as v,Fragment as _}from"react/jsx-runtime";var h="Dialog",[j,y]=r(h),[R,b]=j(h),x=o=>{const{__scopeDialog:t,children:r,open:n,defaultOpen:a,onOpenChange:c,modal:d=!0}=o,l=e.useRef(null),u=e.useRef(null),[p,f]=s({prop:n,defaultProp:a??!1,onChange:c,caller:h});return D(R,{scope:t,triggerRef:l,contentRef:u,contentId:i(),titleId:i(),descriptionId:i(),open:p,onOpenChange:f,onOpenToggle:e.useCallback((()=>f((e=>!e))),[f]),modal:d,children:r})};x.displayName=h;var C="DialogTrigger",I=e.forwardRef(((e,r)=>{const{__scopeDialog:n,...i}=e,s=b(C,n),a=t(r,s.triggerRef);return D(u.button,{type:"button","aria-haspopup":"dialog","aria-expanded":s.open,"aria-controls":s.contentId,"data-state":Z(s.open),...i,ref:a,onClick:o(e.onClick,s.onOpenToggle)})}));I.displayName=C;var w="DialogPortal",[O,F]=j(w,{forceMount:void 0}),N=o=>{const{__scopeDialog:t,forceMount:r,children:n,container:i}=o,s=b(w,t);return D(O,{scope:t,forceMount:r,children:e.Children.map(n,(e=>D(l,{present:r||s.open,children:D(d,{asChild:!0,container:i,children:e})})))})};N.displayName=w;var E="DialogOverlay",P=e.forwardRef(((e,o)=>{const t=F(E,e.__scopeDialog),{forceMount:r=t.forceMount,...n}=e,i=b(E,e.__scopeDialog);return i.modal?D(l,{present:r||i.open,children:D(M,{...n,ref:o})}):null}));P.displayName=E;var A=g("DialogOverlay.RemoveScroll"),M=e.forwardRef(((e,o)=>{const{__scopeDialog:t,...r}=e,n=b(E,t);return D(f,{as:A,allowPinchZoom:!0,shards:[n.contentRef],children:D(u.div,{"data-state":Z(n.open),...r,ref:o,style:{pointerEvents:"auto",...r.style}})})})),k="DialogContent",T=e.forwardRef(((e,o)=>{const t=F(k,e.__scopeDialog),{forceMount:r=t.forceMount,...n}=e,i=b(k,e.__scopeDialog);return D(l,{present:r||i.open,children:i.modal?D($,{...n,ref:o}):D(S,{...n,ref:o})})}));T.displayName=k;var $=e.forwardRef(((r,n)=>{const i=b(k,r.__scopeDialog),s=e.useRef(null),a=t(n,i.contentRef,s);return e.useEffect((()=>{const e=s.current;if(e)return m(e)}),[]),D(W,{...r,ref:a,trapFocus:i.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:o(r.onCloseAutoFocus,(e=>{e.preventDefault(),i.triggerRef.current?.focus()})),onPointerDownOutside:o(r.onPointerDownOutside,(e=>{const o=e.detail.originalEvent,t=0===o.button&&!0===o.ctrlKey;(2===o.button||t)&&e.preventDefault()})),onFocusOutside:o(r.onFocusOutside,(e=>e.preventDefault()))})})),S=e.forwardRef(((o,t)=>{const r=b(k,o.__scopeDialog),n=e.useRef(!1),i=e.useRef(!1);return D(W,{...o,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:e=>{o.onCloseAutoFocus?.(e),e.defaultPrevented||(n.current||r.triggerRef.current?.focus(),e.preventDefault()),n.current=!1,i.current=!1},onInteractOutside:e=>{o.onInteractOutside?.(e),e.defaultPrevented||(n.current=!0,"pointerdown"===e.detail.originalEvent.type&&(i.current=!0));const t=e.target,s=r.triggerRef.current?.contains(t);s&&e.preventDefault(),"focusin"===e.detail.originalEvent.type&&i.current&&e.preventDefault()}})})),W=e.forwardRef(((o,r)=>{const{__scopeDialog:n,trapFocus:i,onOpenAutoFocus:s,onCloseAutoFocus:d,...l}=o,u=b(k,n),f=e.useRef(null),m=t(r,f);return p(),v(_,{children:[D(c,{asChild:!0,loop:!0,trapped:i,onMountAutoFocus:s,onUnmountAutoFocus:d,children:D(a,{role:"dialog",id:u.contentId,"aria-describedby":u.descriptionId,"aria-labelledby":u.titleId,"data-state":Z(u.open),...l,ref:m,onDismiss:()=>u.onOpenChange(!1)})}),v(_,{children:[D(L,{titleId:u.titleId}),D(Q,{contentRef:f,descriptionId:u.descriptionId})]})]})})),B="DialogTitle",q=e.forwardRef(((e,o)=>{const{__scopeDialog:t,...r}=e,n=b(B,t);return D(u.h2,{id:n.titleId,...r,ref:o})}));q.displayName=B;var H="DialogDescription",K=e.forwardRef(((e,o)=>{const{__scopeDialog:t,...r}=e,n=b(H,t);return D(u.p,{id:n.descriptionId,...r,ref:o})}));K.displayName=H;var U="DialogClose",V=e.forwardRef(((e,t)=>{const{__scopeDialog:r,...n}=e,i=b(U,r);return D(u.button,{type:"button",...n,ref:t,onClick:o(e.onClick,(()=>i.onOpenChange(!1)))})}));function Z(e){return e?"open":"closed"}V.displayName=U;var z="DialogTitleWarning",[G,J]=n(z,{contentName:k,titleName:B,docsSlug:"dialog"}),L=({titleId:o})=>{const t=J(z),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.\n\nIf you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return e.useEffect((()=>{if(o){document.getElementById(o)||console.error(r)}}),[r,o]),null},Q=({contentRef:o,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${J("DialogDescriptionWarning").contentName}}.`;return e.useEffect((()=>{const e=o.current?.getAttribute("aria-describedby");if(t&&e){document.getElementById(t)||console.warn(r)}}),[r,o,t]),null},X=x,Y=I,ee=N,oe=P,te=T,re=q,ne=K,ie=V;export{ie as Close,te as Content,ne as Description,x as Dialog,V as DialogClose,T as DialogContent,K as DialogDescription,P as DialogOverlay,N as DialogPortal,q as DialogTitle,I as DialogTrigger,oe as Overlay,ee as Portal,X as Root,re as Title,Y as Trigger,G as WarningProvider,y as createDialogScope};
2
3
  //# sourceMappingURL=index.mjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs.js","sources":["../../../../../node_modules/@radix-ui/react-dialog/dist/index.mjs"],"sourcesContent":["import $67UHm$babelruntimehelpersesmextends from \"@babel/runtime/helpers/esm/extends\";\nimport {useRef as $67UHm$useRef, createElement as $67UHm$createElement, useCallback as $67UHm$useCallback, forwardRef as $67UHm$forwardRef, Children as $67UHm$Children, useEffect as $67UHm$useEffect, Fragment as $67UHm$Fragment} from \"react\";\nimport {composeEventHandlers as $67UHm$composeEventHandlers} from \"@radix-ui/primitive\";\nimport {useComposedRefs as $67UHm$useComposedRefs} from \"@radix-ui/react-compose-refs\";\nimport {createContextScope as $67UHm$createContextScope, createContext as $67UHm$createContext} from \"@radix-ui/react-context\";\nimport {useId as $67UHm$useId} from \"@radix-ui/react-id\";\nimport {useControllableState as $67UHm$useControllableState} from \"@radix-ui/react-use-controllable-state\";\nimport {DismissableLayer as $67UHm$DismissableLayer} from \"@radix-ui/react-dismissable-layer\";\nimport {FocusScope as $67UHm$FocusScope} from \"@radix-ui/react-focus-scope\";\nimport {Portal as $67UHm$Portal} from \"@radix-ui/react-portal\";\nimport {Presence as $67UHm$Presence} from \"@radix-ui/react-presence\";\nimport {Primitive as $67UHm$Primitive} from \"@radix-ui/react-primitive\";\nimport {useFocusGuards as $67UHm$useFocusGuards} from \"@radix-ui/react-focus-guards\";\nimport {RemoveScroll as $67UHm$RemoveScroll} from \"react-remove-scroll\";\nimport {hideOthers as $67UHm$hideOthers} from \"aria-hidden\";\nimport {Slot as $67UHm$Slot} from \"@radix-ui/react-slot\";\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n/* -------------------------------------------------------------------------------------------------\n * Dialog\n * -----------------------------------------------------------------------------------------------*/ const $5d3850c4d0b4e6c7$var$DIALOG_NAME = 'Dialog';\nconst [$5d3850c4d0b4e6c7$var$createDialogContext, $5d3850c4d0b4e6c7$export$cc702773b8ea3e41] = $67UHm$createContextScope($5d3850c4d0b4e6c7$var$DIALOG_NAME);\nconst [$5d3850c4d0b4e6c7$var$DialogProvider, $5d3850c4d0b4e6c7$var$useDialogContext] = $5d3850c4d0b4e6c7$var$createDialogContext($5d3850c4d0b4e6c7$var$DIALOG_NAME);\nconst $5d3850c4d0b4e6c7$export$3ddf2d174ce01153 = (props)=>{\n const { __scopeDialog: __scopeDialog , children: children , open: openProp , defaultOpen: defaultOpen , onOpenChange: onOpenChange , modal: modal = true } = props;\n const triggerRef = $67UHm$useRef(null);\n const contentRef = $67UHm$useRef(null);\n const [open = false, setOpen] = $67UHm$useControllableState({\n prop: openProp,\n defaultProp: defaultOpen,\n onChange: onOpenChange\n });\n return /*#__PURE__*/ $67UHm$createElement($5d3850c4d0b4e6c7$var$DialogProvider, {\n scope: __scopeDialog,\n triggerRef: triggerRef,\n contentRef: contentRef,\n contentId: $67UHm$useId(),\n titleId: $67UHm$useId(),\n descriptionId: $67UHm$useId(),\n open: open,\n onOpenChange: setOpen,\n onOpenToggle: $67UHm$useCallback(()=>setOpen((prevOpen)=>!prevOpen\n )\n , [\n setOpen\n ]),\n modal: modal\n }, children);\n};\n/*#__PURE__*/ Object.assign($5d3850c4d0b4e6c7$export$3ddf2d174ce01153, {\n displayName: $5d3850c4d0b4e6c7$var$DIALOG_NAME\n});\n/* -------------------------------------------------------------------------------------------------\n * DialogTrigger\n * -----------------------------------------------------------------------------------------------*/ const $5d3850c4d0b4e6c7$var$TRIGGER_NAME = 'DialogTrigger';\nconst $5d3850c4d0b4e6c7$export$2e1e1122cf0cba88 = /*#__PURE__*/ $67UHm$forwardRef((props, forwardedRef)=>{\n const { __scopeDialog: __scopeDialog , ...triggerProps } = props;\n const context = $5d3850c4d0b4e6c7$var$useDialogContext($5d3850c4d0b4e6c7$var$TRIGGER_NAME, __scopeDialog);\n const composedTriggerRef = $67UHm$useComposedRefs(forwardedRef, context.triggerRef);\n return /*#__PURE__*/ $67UHm$createElement($67UHm$Primitive.button, $67UHm$babelruntimehelpersesmextends({\n type: \"button\",\n \"aria-haspopup\": \"dialog\",\n \"aria-expanded\": context.open,\n \"aria-controls\": context.contentId,\n \"data-state\": $5d3850c4d0b4e6c7$var$getState(context.open)\n }, triggerProps, {\n ref: composedTriggerRef,\n onClick: $67UHm$composeEventHandlers(props.onClick, context.onOpenToggle)\n }));\n});\n/*#__PURE__*/ Object.assign($5d3850c4d0b4e6c7$export$2e1e1122cf0cba88, {\n displayName: $5d3850c4d0b4e6c7$var$TRIGGER_NAME\n});\n/* -------------------------------------------------------------------------------------------------\n * DialogPortal\n * -----------------------------------------------------------------------------------------------*/ const $5d3850c4d0b4e6c7$var$PORTAL_NAME = 'DialogPortal';\nconst [$5d3850c4d0b4e6c7$var$PortalProvider, $5d3850c4d0b4e6c7$var$usePortalContext] = $5d3850c4d0b4e6c7$var$createDialogContext($5d3850c4d0b4e6c7$var$PORTAL_NAME, {\n forceMount: undefined\n});\nconst $5d3850c4d0b4e6c7$export$dad7c95542bacce0 = (props)=>{\n const { __scopeDialog: __scopeDialog , forceMount: forceMount , children: children , container: container } = props;\n const context = $5d3850c4d0b4e6c7$var$useDialogContext($5d3850c4d0b4e6c7$var$PORTAL_NAME, __scopeDialog);\n return /*#__PURE__*/ $67UHm$createElement($5d3850c4d0b4e6c7$var$PortalProvider, {\n scope: __scopeDialog,\n forceMount: forceMount\n }, $67UHm$Children.map(children, (child)=>/*#__PURE__*/ $67UHm$createElement($67UHm$Presence, {\n present: forceMount || context.open\n }, /*#__PURE__*/ $67UHm$createElement($67UHm$Portal, {\n asChild: true,\n container: container\n }, child))\n ));\n};\n/*#__PURE__*/ Object.assign($5d3850c4d0b4e6c7$export$dad7c95542bacce0, {\n displayName: $5d3850c4d0b4e6c7$var$PORTAL_NAME\n});\n/* -------------------------------------------------------------------------------------------------\n * DialogOverlay\n * -----------------------------------------------------------------------------------------------*/ const $5d3850c4d0b4e6c7$var$OVERLAY_NAME = 'DialogOverlay';\nconst $5d3850c4d0b4e6c7$export$bd1d06c79be19e17 = /*#__PURE__*/ $67UHm$forwardRef((props, forwardedRef)=>{\n const portalContext = $5d3850c4d0b4e6c7$var$usePortalContext($5d3850c4d0b4e6c7$var$OVERLAY_NAME, props.__scopeDialog);\n const { forceMount: forceMount = portalContext.forceMount , ...overlayProps } = props;\n const context = $5d3850c4d0b4e6c7$var$useDialogContext($5d3850c4d0b4e6c7$var$OVERLAY_NAME, props.__scopeDialog);\n return context.modal ? /*#__PURE__*/ $67UHm$createElement($67UHm$Presence, {\n present: forceMount || context.open\n }, /*#__PURE__*/ $67UHm$createElement($5d3850c4d0b4e6c7$var$DialogOverlayImpl, $67UHm$babelruntimehelpersesmextends({}, overlayProps, {\n ref: forwardedRef\n }))) : null;\n});\n/*#__PURE__*/ Object.assign($5d3850c4d0b4e6c7$export$bd1d06c79be19e17, {\n displayName: $5d3850c4d0b4e6c7$var$OVERLAY_NAME\n});\nconst $5d3850c4d0b4e6c7$var$DialogOverlayImpl = /*#__PURE__*/ $67UHm$forwardRef((props, forwardedRef)=>{\n const { __scopeDialog: __scopeDialog , ...overlayProps } = props;\n const context = $5d3850c4d0b4e6c7$var$useDialogContext($5d3850c4d0b4e6c7$var$OVERLAY_NAME, __scopeDialog);\n return(/*#__PURE__*/ // Make sure `Content` is scrollable even when it doesn't live inside `RemoveScroll`\n // ie. when `Overlay` and `Content` are siblings\n $67UHm$createElement($67UHm$RemoveScroll, {\n as: $67UHm$Slot,\n allowPinchZoom: true,\n shards: [\n context.contentRef\n ]\n }, /*#__PURE__*/ $67UHm$createElement($67UHm$Primitive.div, $67UHm$babelruntimehelpersesmextends({\n \"data-state\": $5d3850c4d0b4e6c7$var$getState(context.open)\n }, overlayProps, {\n ref: forwardedRef // We re-enable pointer-events prevented by `Dialog.Content` to allow scrolling the overlay.\n ,\n style: {\n pointerEvents: 'auto',\n ...overlayProps.style\n }\n }))));\n});\n/* -------------------------------------------------------------------------------------------------\n * DialogContent\n * -----------------------------------------------------------------------------------------------*/ const $5d3850c4d0b4e6c7$var$CONTENT_NAME = 'DialogContent';\nconst $5d3850c4d0b4e6c7$export$b6d9565de1e068cf = /*#__PURE__*/ $67UHm$forwardRef((props, forwardedRef)=>{\n const portalContext = $5d3850c4d0b4e6c7$var$usePortalContext($5d3850c4d0b4e6c7$var$CONTENT_NAME, props.__scopeDialog);\n const { forceMount: forceMount = portalContext.forceMount , ...contentProps } = props;\n const context = $5d3850c4d0b4e6c7$var$useDialogContext($5d3850c4d0b4e6c7$var$CONTENT_NAME, props.__scopeDialog);\n return /*#__PURE__*/ $67UHm$createElement($67UHm$Presence, {\n present: forceMount || context.open\n }, context.modal ? /*#__PURE__*/ $67UHm$createElement($5d3850c4d0b4e6c7$var$DialogContentModal, $67UHm$babelruntimehelpersesmextends({}, contentProps, {\n ref: forwardedRef\n })) : /*#__PURE__*/ $67UHm$createElement($5d3850c4d0b4e6c7$var$DialogContentNonModal, $67UHm$babelruntimehelpersesmextends({}, contentProps, {\n ref: forwardedRef\n })));\n});\n/*#__PURE__*/ Object.assign($5d3850c4d0b4e6c7$export$b6d9565de1e068cf, {\n displayName: $5d3850c4d0b4e6c7$var$CONTENT_NAME\n});\n/* -----------------------------------------------------------------------------------------------*/ const $5d3850c4d0b4e6c7$var$DialogContentModal = /*#__PURE__*/ $67UHm$forwardRef((props, forwardedRef)=>{\n const context = $5d3850c4d0b4e6c7$var$useDialogContext($5d3850c4d0b4e6c7$var$CONTENT_NAME, props.__scopeDialog);\n const contentRef = $67UHm$useRef(null);\n const composedRefs = $67UHm$useComposedRefs(forwardedRef, context.contentRef, contentRef); // aria-hide everything except the content (better supported equivalent to setting aria-modal)\n $67UHm$useEffect(()=>{\n const content = contentRef.current;\n if (content) return $67UHm$hideOthers(content);\n }, []);\n return /*#__PURE__*/ $67UHm$createElement($5d3850c4d0b4e6c7$var$DialogContentImpl, $67UHm$babelruntimehelpersesmextends({}, props, {\n ref: composedRefs // we make sure focus isn't trapped once `DialogContent` has been closed\n ,\n trapFocus: context.open,\n disableOutsidePointerEvents: true,\n onCloseAutoFocus: $67UHm$composeEventHandlers(props.onCloseAutoFocus, (event)=>{\n var _context$triggerRef$c;\n event.preventDefault();\n (_context$triggerRef$c = context.triggerRef.current) === null || _context$triggerRef$c === void 0 || _context$triggerRef$c.focus();\n }),\n onPointerDownOutside: $67UHm$composeEventHandlers(props.onPointerDownOutside, (event)=>{\n const originalEvent = event.detail.originalEvent;\n const ctrlLeftClick = originalEvent.button === 0 && originalEvent.ctrlKey === true;\n const isRightClick = originalEvent.button === 2 || ctrlLeftClick; // If the event is a right-click, we shouldn't close because\n // it is effectively as if we right-clicked the `Overlay`.\n if (isRightClick) event.preventDefault();\n }) // When focus is trapped, a `focusout` event may still happen.\n ,\n onFocusOutside: $67UHm$composeEventHandlers(props.onFocusOutside, (event)=>event.preventDefault()\n )\n }));\n});\n/* -----------------------------------------------------------------------------------------------*/ const $5d3850c4d0b4e6c7$var$DialogContentNonModal = /*#__PURE__*/ $67UHm$forwardRef((props, forwardedRef)=>{\n const context = $5d3850c4d0b4e6c7$var$useDialogContext($5d3850c4d0b4e6c7$var$CONTENT_NAME, props.__scopeDialog);\n const hasInteractedOutsideRef = $67UHm$useRef(false);\n const hasPointerDownOutsideRef = $67UHm$useRef(false);\n return /*#__PURE__*/ $67UHm$createElement($5d3850c4d0b4e6c7$var$DialogContentImpl, $67UHm$babelruntimehelpersesmextends({}, props, {\n ref: forwardedRef,\n trapFocus: false,\n disableOutsidePointerEvents: false,\n onCloseAutoFocus: (event)=>{\n var _props$onCloseAutoFoc;\n (_props$onCloseAutoFoc = props.onCloseAutoFocus) === null || _props$onCloseAutoFoc === void 0 || _props$onCloseAutoFoc.call(props, event);\n if (!event.defaultPrevented) {\n var _context$triggerRef$c2;\n if (!hasInteractedOutsideRef.current) (_context$triggerRef$c2 = context.triggerRef.current) === null || _context$triggerRef$c2 === void 0 || _context$triggerRef$c2.focus(); // Always prevent auto focus because we either focus manually or want user agent focus\n event.preventDefault();\n }\n hasInteractedOutsideRef.current = false;\n hasPointerDownOutsideRef.current = false;\n },\n onInteractOutside: (event)=>{\n var _props$onInteractOuts, _context$triggerRef$c3;\n (_props$onInteractOuts = props.onInteractOutside) === null || _props$onInteractOuts === void 0 || _props$onInteractOuts.call(props, event);\n if (!event.defaultPrevented) {\n hasInteractedOutsideRef.current = true;\n if (event.detail.originalEvent.type === 'pointerdown') hasPointerDownOutsideRef.current = true;\n } // Prevent dismissing when clicking the trigger.\n // As the trigger is already setup to close, without doing so would\n // cause it to close and immediately open.\n const target = event.target;\n const targetIsTrigger = (_context$triggerRef$c3 = context.triggerRef.current) === null || _context$triggerRef$c3 === void 0 ? void 0 : _context$triggerRef$c3.contains(target);\n if (targetIsTrigger) event.preventDefault(); // On Safari if the trigger is inside a container with tabIndex={0}, when clicked\n // we will get the pointer down outside event on the trigger, but then a subsequent\n // focus outside event on the container, we ignore any focus outside event when we've\n // already had a pointer down outside event.\n if (event.detail.originalEvent.type === 'focusin' && hasPointerDownOutsideRef.current) event.preventDefault();\n }\n }));\n});\n/* -----------------------------------------------------------------------------------------------*/ const $5d3850c4d0b4e6c7$var$DialogContentImpl = /*#__PURE__*/ $67UHm$forwardRef((props, forwardedRef)=>{\n const { __scopeDialog: __scopeDialog , trapFocus: trapFocus , onOpenAutoFocus: onOpenAutoFocus , onCloseAutoFocus: onCloseAutoFocus , ...contentProps } = props;\n const context = $5d3850c4d0b4e6c7$var$useDialogContext($5d3850c4d0b4e6c7$var$CONTENT_NAME, __scopeDialog);\n const contentRef = $67UHm$useRef(null);\n const composedRefs = $67UHm$useComposedRefs(forwardedRef, contentRef); // Make sure the whole tree has focus guards as our `Dialog` will be\n // the last element in the DOM (beacuse of the `Portal`)\n $67UHm$useFocusGuards();\n return /*#__PURE__*/ $67UHm$createElement($67UHm$Fragment, null, /*#__PURE__*/ $67UHm$createElement($67UHm$FocusScope, {\n asChild: true,\n loop: true,\n trapped: trapFocus,\n onMountAutoFocus: onOpenAutoFocus,\n onUnmountAutoFocus: onCloseAutoFocus\n }, /*#__PURE__*/ $67UHm$createElement($67UHm$DismissableLayer, $67UHm$babelruntimehelpersesmextends({\n role: \"dialog\",\n id: context.contentId,\n \"aria-describedby\": context.descriptionId,\n \"aria-labelledby\": context.titleId,\n \"data-state\": $5d3850c4d0b4e6c7$var$getState(context.open)\n }, contentProps, {\n ref: composedRefs,\n onDismiss: ()=>context.onOpenChange(false)\n }))), false);\n});\n/* -------------------------------------------------------------------------------------------------\n * DialogTitle\n * -----------------------------------------------------------------------------------------------*/ const $5d3850c4d0b4e6c7$var$TITLE_NAME = 'DialogTitle';\nconst $5d3850c4d0b4e6c7$export$16f7638e4a34b909 = /*#__PURE__*/ $67UHm$forwardRef((props, forwardedRef)=>{\n const { __scopeDialog: __scopeDialog , ...titleProps } = props;\n const context = $5d3850c4d0b4e6c7$var$useDialogContext($5d3850c4d0b4e6c7$var$TITLE_NAME, __scopeDialog);\n return /*#__PURE__*/ $67UHm$createElement($67UHm$Primitive.h2, $67UHm$babelruntimehelpersesmextends({\n id: context.titleId\n }, titleProps, {\n ref: forwardedRef\n }));\n});\n/*#__PURE__*/ Object.assign($5d3850c4d0b4e6c7$export$16f7638e4a34b909, {\n displayName: $5d3850c4d0b4e6c7$var$TITLE_NAME\n});\n/* -------------------------------------------------------------------------------------------------\n * DialogDescription\n * -----------------------------------------------------------------------------------------------*/ const $5d3850c4d0b4e6c7$var$DESCRIPTION_NAME = 'DialogDescription';\nconst $5d3850c4d0b4e6c7$export$94e94c2ec2c954d5 = /*#__PURE__*/ $67UHm$forwardRef((props, forwardedRef)=>{\n const { __scopeDialog: __scopeDialog , ...descriptionProps } = props;\n const context = $5d3850c4d0b4e6c7$var$useDialogContext($5d3850c4d0b4e6c7$var$DESCRIPTION_NAME, __scopeDialog);\n return /*#__PURE__*/ $67UHm$createElement($67UHm$Primitive.p, $67UHm$babelruntimehelpersesmextends({\n id: context.descriptionId\n }, descriptionProps, {\n ref: forwardedRef\n }));\n});\n/*#__PURE__*/ Object.assign($5d3850c4d0b4e6c7$export$94e94c2ec2c954d5, {\n displayName: $5d3850c4d0b4e6c7$var$DESCRIPTION_NAME\n});\n/* -------------------------------------------------------------------------------------------------\n * DialogClose\n * -----------------------------------------------------------------------------------------------*/ const $5d3850c4d0b4e6c7$var$CLOSE_NAME = 'DialogClose';\nconst $5d3850c4d0b4e6c7$export$fba2fb7cd781b7ac = /*#__PURE__*/ $67UHm$forwardRef((props, forwardedRef)=>{\n const { __scopeDialog: __scopeDialog , ...closeProps } = props;\n const context = $5d3850c4d0b4e6c7$var$useDialogContext($5d3850c4d0b4e6c7$var$CLOSE_NAME, __scopeDialog);\n return /*#__PURE__*/ $67UHm$createElement($67UHm$Primitive.button, $67UHm$babelruntimehelpersesmextends({\n type: \"button\"\n }, closeProps, {\n ref: forwardedRef,\n onClick: $67UHm$composeEventHandlers(props.onClick, ()=>context.onOpenChange(false)\n )\n }));\n});\n/*#__PURE__*/ Object.assign($5d3850c4d0b4e6c7$export$fba2fb7cd781b7ac, {\n displayName: $5d3850c4d0b4e6c7$var$CLOSE_NAME\n});\n/* -----------------------------------------------------------------------------------------------*/ function $5d3850c4d0b4e6c7$var$getState(open) {\n return open ? 'open' : 'closed';\n}\nconst $5d3850c4d0b4e6c7$var$TITLE_WARNING_NAME = 'DialogTitleWarning';\nconst [$5d3850c4d0b4e6c7$export$69b62a49393917d6, $5d3850c4d0b4e6c7$var$useWarningContext] = $67UHm$createContext($5d3850c4d0b4e6c7$var$TITLE_WARNING_NAME, {\n contentName: $5d3850c4d0b4e6c7$var$CONTENT_NAME,\n titleName: $5d3850c4d0b4e6c7$var$TITLE_NAME,\n docsSlug: 'dialog'\n});\nconst $5d3850c4d0b4e6c7$var$TitleWarning = ({ titleId: titleId })=>{\n const titleWarningContext = $5d3850c4d0b4e6c7$var$useWarningContext($5d3850c4d0b4e6c7$var$TITLE_WARNING_NAME);\n const MESSAGE = `\\`${titleWarningContext.contentName}\\` requires a \\`${titleWarningContext.titleName}\\` for the component to be accessible for screen reader users.\n\nIf you want to hide the \\`${titleWarningContext.titleName}\\`, you can wrap it with our VisuallyHidden component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/${titleWarningContext.docsSlug}`;\n $67UHm$useEffect(()=>{\n if (titleId) {\n const hasTitle = document.getElementById(titleId);\n if (!hasTitle) throw new Error(MESSAGE);\n }\n }, [\n MESSAGE,\n titleId\n ]);\n return null;\n};\nconst $5d3850c4d0b4e6c7$var$DESCRIPTION_WARNING_NAME = 'DialogDescriptionWarning';\nconst $5d3850c4d0b4e6c7$var$DescriptionWarning = ({ contentRef: contentRef , descriptionId: descriptionId })=>{\n const descriptionWarningContext = $5d3850c4d0b4e6c7$var$useWarningContext($5d3850c4d0b4e6c7$var$DESCRIPTION_WARNING_NAME);\n const MESSAGE = `Warning: Missing \\`Description\\` or \\`aria-describedby={undefined}\\` for {${descriptionWarningContext.contentName}}.`;\n $67UHm$useEffect(()=>{\n var _contentRef$current;\n const describedById = (_contentRef$current = contentRef.current) === null || _contentRef$current === void 0 ? void 0 : _contentRef$current.getAttribute('aria-describedby'); // if we have an id and the user hasn't set aria-describedby={undefined}\n if (descriptionId && describedById) {\n const hasDescription = document.getElementById(descriptionId);\n if (!hasDescription) console.warn(MESSAGE);\n }\n }, [\n MESSAGE,\n contentRef,\n descriptionId\n ]);\n return null;\n};\nconst $5d3850c4d0b4e6c7$export$be92b6f5f03c0fe9 = $5d3850c4d0b4e6c7$export$3ddf2d174ce01153;\nconst $5d3850c4d0b4e6c7$export$41fb9f06171c75f4 = $5d3850c4d0b4e6c7$export$2e1e1122cf0cba88;\nconst $5d3850c4d0b4e6c7$export$602eac185826482c = $5d3850c4d0b4e6c7$export$dad7c95542bacce0;\nconst $5d3850c4d0b4e6c7$export$c6fdb837b070b4ff = $5d3850c4d0b4e6c7$export$bd1d06c79be19e17;\nconst $5d3850c4d0b4e6c7$export$7c6e2c02157bb7d2 = $5d3850c4d0b4e6c7$export$b6d9565de1e068cf;\nconst $5d3850c4d0b4e6c7$export$f99233281efd08a0 = $5d3850c4d0b4e6c7$export$16f7638e4a34b909;\nconst $5d3850c4d0b4e6c7$export$393edc798c47379d = $5d3850c4d0b4e6c7$export$94e94c2ec2c954d5;\nconst $5d3850c4d0b4e6c7$export$f39c2d165cd861fe = $5d3850c4d0b4e6c7$export$fba2fb7cd781b7ac;\n\n\n\n\nexport {$5d3850c4d0b4e6c7$export$cc702773b8ea3e41 as createDialogScope, $5d3850c4d0b4e6c7$export$3ddf2d174ce01153 as Dialog, $5d3850c4d0b4e6c7$export$2e1e1122cf0cba88 as DialogTrigger, $5d3850c4d0b4e6c7$export$dad7c95542bacce0 as DialogPortal, $5d3850c4d0b4e6c7$export$bd1d06c79be19e17 as DialogOverlay, $5d3850c4d0b4e6c7$export$b6d9565de1e068cf as DialogContent, $5d3850c4d0b4e6c7$export$16f7638e4a34b909 as DialogTitle, $5d3850c4d0b4e6c7$export$94e94c2ec2c954d5 as DialogDescription, $5d3850c4d0b4e6c7$export$fba2fb7cd781b7ac as DialogClose, $5d3850c4d0b4e6c7$export$be92b6f5f03c0fe9 as Root, $5d3850c4d0b4e6c7$export$41fb9f06171c75f4 as Trigger, $5d3850c4d0b4e6c7$export$602eac185826482c as Portal, $5d3850c4d0b4e6c7$export$c6fdb837b070b4ff as Overlay, $5d3850c4d0b4e6c7$export$7c6e2c02157bb7d2 as Content, $5d3850c4d0b4e6c7$export$f99233281efd08a0 as Title, $5d3850c4d0b4e6c7$export$393edc798c47379d as Description, $5d3850c4d0b4e6c7$export$f39c2d165cd861fe as Close, $5d3850c4d0b4e6c7$export$69b62a49393917d6 as WarningProvider};\n//# sourceMappingURL=index.mjs.map\n"],"names":["$5d3850c4d0b4e6c7$var$DIALOG_NAME","$5d3850c4d0b4e6c7$var$createDialogContext","$5d3850c4d0b4e6c7$export$cc702773b8ea3e41","$67UHm$createContextScope","$5d3850c4d0b4e6c7$var$DialogProvider","$5d3850c4d0b4e6c7$var$useDialogContext","$5d3850c4d0b4e6c7$export$3ddf2d174ce01153","props","__scopeDialog","children","open","openProp","defaultOpen","onOpenChange","modal","triggerRef","$67UHm$useRef","contentRef","setOpen","$67UHm$useControllableState","prop","defaultProp","onChange","$67UHm$createElement","scope","contentId","$67UHm$useId","titleId","descriptionId","onOpenToggle","$67UHm$useCallback","prevOpen","$5d3850c4d0b4e6c7$export$2e1e1122cf0cba88","$67UHm$forwardRef","forwardedRef","triggerProps","context","composedTriggerRef","$67UHm$useComposedRefs","$67UHm$Primitive","button","$67UHm$babelruntimehelpersesmextends","type","$5d3850c4d0b4e6c7$var$getState","ref","onClick","$67UHm$composeEventHandlers","$5d3850c4d0b4e6c7$var$PORTAL_NAME","$5d3850c4d0b4e6c7$var$PortalProvider","$5d3850c4d0b4e6c7$var$usePortalContext","forceMount","undefined","$5d3850c4d0b4e6c7$export$dad7c95542bacce0","container","$67UHm$Children","map","child","$67UHm$Presence","present","$67UHm$Portal","asChild","$5d3850c4d0b4e6c7$var$OVERLAY_NAME","$5d3850c4d0b4e6c7$export$bd1d06c79be19e17","portalContext","overlayProps","$5d3850c4d0b4e6c7$var$DialogOverlayImpl","$67UHm$RemoveScroll","as","$67UHm$Slot","allowPinchZoom","shards","div","style","pointerEvents","$5d3850c4d0b4e6c7$var$CONTENT_NAME","$5d3850c4d0b4e6c7$export$b6d9565de1e068cf","contentProps","$5d3850c4d0b4e6c7$var$DialogContentModal","$5d3850c4d0b4e6c7$var$DialogContentNonModal","composedRefs","$67UHm$useEffect","content","current","$67UHm$hideOthers","$5d3850c4d0b4e6c7$var$DialogContentImpl","trapFocus","disableOutsidePointerEvents","onCloseAutoFocus","event","_context$triggerRef$c","preventDefault","focus","onPointerDownOutside","originalEvent","detail","ctrlLeftClick","ctrlKey","onFocusOutside","hasInteractedOutsideRef","hasPointerDownOutsideRef","_props$onCloseAutoFoc","_context$triggerRef$c2","call","defaultPrevented","onInteractOutside","_props$onInteractOuts","_context$triggerRef$c3","target","contains","onOpenAutoFocus","$67UHm$useFocusGuards","$67UHm$Fragment","$67UHm$FocusScope","loop","trapped","onMountAutoFocus","onUnmountAutoFocus","$67UHm$DismissableLayer","role","id","onDismiss","$5d3850c4d0b4e6c7$export$16f7638e4a34b909","titleProps","h2","$5d3850c4d0b4e6c7$export$94e94c2ec2c954d5","descriptionProps","p","$5d3850c4d0b4e6c7$export$fba2fb7cd781b7ac","closeProps","$5d3850c4d0b4e6c7$export$be92b6f5f03c0fe9","$5d3850c4d0b4e6c7$export$41fb9f06171c75f4","$5d3850c4d0b4e6c7$export$602eac185826482c","$5d3850c4d0b4e6c7$export$c6fdb837b070b4ff","$5d3850c4d0b4e6c7$export$7c6e2c02157bb7d2","$5d3850c4d0b4e6c7$export$f99233281efd08a0","$5d3850c4d0b4e6c7$export$393edc798c47379d","$5d3850c4d0b4e6c7$export$f39c2d165cd861fe"],"mappings":"wrCAmCqG,MAAMA,EAAoC,UACxIC,EAA2CC,GAA6CC,EAA0BH,IAClHI,EAAsCC,GAA0CJ,EAA0CD,GAC3HM,EAA6CC,IAC/C,MAAQC,cAAeA,EAAgBC,SAAUA,EAAWC,KAAMC,EAAWC,YAAaA,EAAcC,aAAcA,EAAeC,MAAOA,GAAQ,GAAUP,EACxJQ,EAAaC,EAAc,MAC3BC,EAAaD,EAAc,OAC1BN,GAAO,EAAOQ,GAAWC,EAA4B,CACxDC,KAAMT,EACNU,YAAaT,EACbU,SAAUT,IAEd,OAAqBU,EAAqBnB,EAAsC,CAC5EoB,MAAOhB,EACPO,WAAYA,EACZE,WAAYA,EACZQ,UAAWC,IACXC,QAASD,IACTE,cAAeF,IACfhB,KAAMA,EACNG,aAAcK,EACdW,aAAcC,GAAmB,IAAIZ,GAASa,IAAYA,KAExD,CACEb,IAEJJ,MAAOA,GACRL,EAAS,EAQVuB,EAA0DC,GAAkB,CAAC1B,EAAO2B,KACtF,MAAQ1B,cAAeA,KAAmB2B,GAAiB5B,EACrD6B,EAAU/B,EAH4H,gBAGjDG,GACrF6B,EAAqBC,EAAuBJ,EAAcE,EAAQrB,YACxE,OAAqBQ,EAAqBg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CA2CK,MAACuH,EAA4C3H,EAC5C4H,EAA4ClG,EAC5CmG,EAA4C/E,EAC5CgF,EAA4CtE,EAC5CuE,EAA4C1D,EAC5C2D,EAA4Cb,EAC5Cc,EAA4CX,EAC5CY,EAA4CT"}
1
+ {"version":3,"file":"index.mjs.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -0,0 +1,2 @@
1
+ import*as e from"react";import{jsx as t}from"react/jsx-runtime";function r(r,n){const o=e.createContext(n),c=r=>{const{children:n,...c}=r,s=e.useMemo((()=>c),Object.values(c));return t(o.Provider,{value:s,children:n})};return c.displayName=r+"Provider",[c,function(t){const c=e.useContext(o);if(c)return c;if(void 0!==n)return n;throw new Error(`\`${t}\` must be used within \`${r}\``)}]}function n(r,n=[]){let c=[];const s=()=>{const t=c.map((t=>e.createContext(t)));return function(n){const o=n?.[r]||t;return e.useMemo((()=>({[`__scope${r}`]:{...n,[r]:o}})),[n,o])}};return s.scopeName=r,[function(n,o){const s=e.createContext(o),u=c.length;c=[...c,o];const i=n=>{const{scope:o,children:c,...i}=n,a=o?.[r]?.[u]||s,m=e.useMemo((()=>i),Object.values(i));return t(a.Provider,{value:m,children:c})};return i.displayName=n+"Provider",[i,function(t,c){const i=c?.[r]?.[u]||s,a=e.useContext(i);if(a)return a;if(void 0!==o)return o;throw new Error(`\`${t}\` must be used within \`${n}\``)}]},o(s,...n)]}function o(...t){const r=t[0];if(1===t.length)return r;const n=()=>{const n=t.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(t){const o=n.reduce(((e,{useScope:r,scopeName:n})=>({...e,...r(t)[`__scope${n}`]})),{});return e.useMemo((()=>({[`__scope${r.scopeName}`]:o})),[o])}};return n.scopeName=r.scopeName,n}export{r as createContext,n as createContextScope};
2
+ //# sourceMappingURL=index.mjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs.js","sources":["../../../../../../../../node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-context/dist/index.mjs"],"sourcesContent":["// packages/react/context/src/create-context.tsx\nimport * as React from \"react\";\nimport { jsx } from \"react/jsx-runtime\";\nfunction createContext2(rootComponentName, defaultContext) {\n const Context = React.createContext(defaultContext);\n const Provider = (props) => {\n const { children, ...context } = props;\n const value = React.useMemo(() => context, Object.values(context));\n return /* @__PURE__ */ jsx(Context.Provider, { value, children });\n };\n Provider.displayName = rootComponentName + \"Provider\";\n function useContext2(consumerName) {\n const context = React.useContext(Context);\n if (context) return context;\n if (defaultContext !== void 0) return defaultContext;\n throw new Error(`\\`${consumerName}\\` must be used within \\`${rootComponentName}\\``);\n }\n return [Provider, useContext2];\n}\nfunction createContextScope(scopeName, createContextScopeDeps = []) {\n let defaultContexts = [];\n function createContext3(rootComponentName, defaultContext) {\n const BaseContext = React.createContext(defaultContext);\n const index = defaultContexts.length;\n defaultContexts = [...defaultContexts, defaultContext];\n const Provider = (props) => {\n const { scope, children, ...context } = props;\n const Context = scope?.[scopeName]?.[index] || BaseContext;\n const value = React.useMemo(() => context, Object.values(context));\n return /* @__PURE__ */ jsx(Context.Provider, { value, children });\n };\n Provider.displayName = rootComponentName + \"Provider\";\n function useContext2(consumerName, scope) {\n const Context = scope?.[scopeName]?.[index] || BaseContext;\n const context = React.useContext(Context);\n if (context) return context;\n if (defaultContext !== void 0) return defaultContext;\n throw new Error(`\\`${consumerName}\\` must be used within \\`${rootComponentName}\\``);\n }\n return [Provider, useContext2];\n }\n const createScope = () => {\n const scopeContexts = defaultContexts.map((defaultContext) => {\n return React.createContext(defaultContext);\n });\n return function useScope(scope) {\n const contexts = scope?.[scopeName] || scopeContexts;\n return React.useMemo(\n () => ({ [`__scope${scopeName}`]: { ...scope, [scopeName]: contexts } }),\n [scope, contexts]\n );\n };\n };\n createScope.scopeName = scopeName;\n return [createContext3, composeContextScopes(createScope, ...createContextScopeDeps)];\n}\nfunction composeContextScopes(...scopes) {\n const baseScope = scopes[0];\n if (scopes.length === 1) return baseScope;\n const createScope = () => {\n const scopeHooks = scopes.map((createScope2) => ({\n useScope: createScope2(),\n scopeName: createScope2.scopeName\n }));\n return function useComposedScopes(overrideScopes) {\n const nextScopes = scopeHooks.reduce((nextScopes2, { useScope, scopeName }) => {\n const scopeProps = useScope(overrideScopes);\n const currentScope = scopeProps[`__scope${scopeName}`];\n return { ...nextScopes2, ...currentScope };\n }, {});\n return React.useMemo(() => ({ [`__scope${baseScope.scopeName}`]: nextScopes }), [nextScopes]);\n };\n };\n createScope.scopeName = baseScope.scopeName;\n return createScope;\n}\nexport {\n createContext2 as createContext,\n createContextScope\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["createContext2","rootComponentName","defaultContext","Context","React","createContext","Provider","props","children","context","value","useMemo","Object","values","jsx","displayName","consumerName","useContext","Error","createContextScope","scopeName","createContextScopeDeps","defaultContexts","createScope","scopeContexts","map","scope","contexts","BaseContext","index","length","composeContextScopes","scopes","baseScope","scopeHooks","createScope2","useScope","overrideScopes","nextScopes","reduce","nextScopes2"],"mappings":"gEAGA,SAASA,EAAeC,EAAmBC,GACzC,MAAMC,EAAUC,EAAMC,cAAcH,GAC9BI,EAAYC,IAChB,MAAMC,SAAEA,KAAaC,GAAYF,EAC3BG,EAAQN,EAAMO,SAAQ,IAAMF,GAASG,OAAOC,OAAOJ,IACzD,OAAuBK,EAAIX,EAAQG,SAAU,CAAEI,QAAOF,YAAW,EASnE,OAPAF,EAASS,YAAcd,EAAoB,WAOpC,CAACK,EANR,SAAqBU,GACnB,MAAMP,EAAUL,EAAMa,WAAWd,GACjC,GAAIM,EAAS,OAAOA,EACpB,QAAuB,IAAnBP,EAA2B,OAAOA,EACtC,MAAM,IAAIgB,MAAM,KAAKF,6BAAwCf,MAC9D,EAEH,CACA,SAASkB,EAAmBC,EAAWC,EAAyB,IAC9D,IAAIC,EAAkB,GAqBtB,MAAMC,EAAc,KAClB,MAAMC,EAAgBF,EAAgBG,KAAKvB,GAClCE,EAAMC,cAAcH,KAE7B,OAAO,SAAkBwB,GACvB,MAAMC,EAAWD,IAA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,UAAYa,EAAUb,UAC3BG,CACT"}
@@ -0,0 +1,2 @@
1
+ import*as r from"react";import"react-dom";import{createSlot as i}from"../../react-slot/dist/index.mjs.js";import{jsx as t}from"react/jsx-runtime";var e=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce(((e,o)=>{const m=i(`Primitive.${o}`),a=r.forwardRef(((r,i)=>{const{asChild:e,...a}=r,n=e?m:o;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),t(n,{...a,ref:i})}));return a.displayName=`Primitive.${o}`,{...e,[o]:a}}),{});export{e as Primitive};
2
+ //# sourceMappingURL=index.mjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs.js","sources":["../../../../../../../../node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-primitive/dist/index.mjs"],"sourcesContent":["// src/primitive.tsx\nimport * as React from \"react\";\nimport * as ReactDOM from \"react-dom\";\nimport { createSlot } from \"@radix-ui/react-slot\";\nimport { jsx } from \"react/jsx-runtime\";\nvar NODES = [\n \"a\",\n \"button\",\n \"div\",\n \"form\",\n \"h2\",\n \"h3\",\n \"img\",\n \"input\",\n \"label\",\n \"li\",\n \"nav\",\n \"ol\",\n \"p\",\n \"select\",\n \"span\",\n \"svg\",\n \"ul\"\n];\nvar Primitive = NODES.reduce((primitive, node) => {\n const Slot = createSlot(`Primitive.${node}`);\n const Node = React.forwardRef((props, forwardedRef) => {\n const { asChild, ...primitiveProps } = props;\n const Comp = asChild ? Slot : node;\n if (typeof window !== \"undefined\") {\n window[Symbol.for(\"radix-ui\")] = true;\n }\n return /* @__PURE__ */ jsx(Comp, { ...primitiveProps, ref: forwardedRef });\n });\n Node.displayName = `Primitive.${node}`;\n return { ...primitive, [node]: Node };\n}, {});\nfunction dispatchDiscreteCustomEvent(target, event) {\n if (target) ReactDOM.flushSync(() => target.dispatchEvent(event));\n}\nvar Root = Primitive;\nexport {\n Primitive,\n Root,\n dispatchDiscreteCustomEvent\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["Primitive","reduce","primitive","node","Slot","createSlot","Node","React","forwardRef","props","forwardedRef","asChild","primitiveProps","Comp","window","Symbol","for","jsx","ref","displayName"],"mappings":"kJAKA,IAmBIA,EAnBQ,CACV,IACA,SACA,MACA,OACA,KACA,KACA,MACA,QACA,QACA,KACA,MACA,KACA,IACA,SACA,OACA,MACA,MAEoBC,QAAO,CAACC,EAAWC,KACvC,MAAMC,EAAOC,EAAW,aAAaF,KAC/BG,EAAOC,EAAMC,YAAW,CAACC,EAAOC,KACpC,MAAMC,QAAEA,KAAYC,GAAmBH,EACjCI,EAAOF,EAAUP,EAAOD,EAI9B,MAHsB,oBAAXW,SACTA,OAAOC,OAAOC,IAAI,cAAe,GAEZC,EAAIJ,EAAM,IAAKD,EAAgBM,IAAKR,GAAe,IAG5E,OADAJ,EAAKa,YAAc,aAAahB,IACzB,IAAKD,EAAWC,CAACA,GAAOG,EAAM,GACpC,CAAE"}
@@ -1,2 +1,2 @@
1
- import n from"../../../../../../@babel/runtime/helpers/esm/extends.js";import{forwardRef as o,Children as e,isValidElement as r,createElement as t,cloneElement as l,Fragment as s}from"react";import{composeRefs as c}from"../../../../../react-compose-refs/dist/index.mjs.js";const i=o(((o,s)=>{const{children:c,...i}=o,a=e.toArray(c),u=a.find(f);if(u){const o=u.props.children,c=a.map((n=>n===u?e.count(o)>1?e.only(null):r(o)?o.props.children:null:n));return t(p,n({},i,{ref:s}),r(o)?l(o,void 0,c):null)}return t(p,n({},i,{ref:s}),c)}));i.displayName="Slot";const p=o(((n,o)=>{const{children:t,...s}=n;return r(t)?l(t,{...u(s,t.props),ref:o?c(o,t.ref):t.ref}):e.count(t)>1?e.only(null):null}));p.displayName="SlotClone";const a=({children:n})=>t(s,null,n);function f(n){return r(n)&&n.type===a}function u(n,o){const e={...o};for(const r in o){const t=n[r],l=o[r];/^on[A-Z]/.test(r)?t&&l?e[r]=(...n)=>{l(...n),t(...n)}:t&&(e[r]=t):"style"===r?e[r]={...t,...l}:"className"===r&&(e[r]=[t,l].filter(Boolean).join(" "))}return{...n,...e}}export{i as Slot,a as Slottable};
1
+ import*as r from"react";import{composeRefs as e}from"../../../../../react-compose-refs/dist/index.mjs.js";import{jsx as n}from"react/jsx-runtime";function t(e){const t=i(e),o=r.forwardRef(((e,i)=>{const{children:o,...s}=e,c=r.Children.toArray(o),a=c.find(l);if(a){const e=a.props.children,o=c.map((n=>n===a?r.Children.count(e)>1?r.Children.only(null):r.isValidElement(e)?e.props.children:null:n));return n(t,{...s,ref:i,children:r.isValidElement(e)?r.cloneElement(e,void 0,o):null})}return n(t,{...s,ref:i,children:o})}));return o.displayName=`${e}.Slot`,o}function i(n){const t=r.forwardRef(((n,t)=>{const{children:i,...o}=n;if(r.isValidElement(i)){const n=function(r){let e=Object.getOwnPropertyDescriptor(r.props,"ref")?.get,n=e&&"isReactWarning"in e&&e.isReactWarning;if(n)return r.ref;if(e=Object.getOwnPropertyDescriptor(r,"ref")?.get,n=e&&"isReactWarning"in e&&e.isReactWarning,n)return r.props.ref;return r.props.ref||r.ref}(i),l=function(r,e){const n={...e};for(const t in e){const i=r[t],o=e[t];/^on[A-Z]/.test(t)?i&&o?n[t]=(...r)=>{const e=o(...r);return i(...r),e}:i&&(n[t]=i):"style"===t?n[t]={...i,...o}:"className"===t&&(n[t]=[i,o].filter(Boolean).join(" "))}return{...r,...n}}(o,i.props);return i.type!==r.Fragment&&(l.ref=t?e(t,n):n),r.cloneElement(i,l)}return r.Children.count(i)>1?r.Children.only(null):null}));return t.displayName=`${n}.SlotClone`,t}var o=Symbol("radix.slottable");function l(e){return r.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===o}export{t as createSlot};
2
2
  //# sourceMappingURL=index.mjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs.js","sources":["../../../../../../../../node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-slot/dist/index.mjs"],"sourcesContent":["import $9IrjX$babelruntimehelpersesmextends from \"@babel/runtime/helpers/esm/extends\";\nimport {forwardRef as $9IrjX$forwardRef, Children as $9IrjX$Children, isValidElement as $9IrjX$isValidElement, createElement as $9IrjX$createElement, cloneElement as $9IrjX$cloneElement, Fragment as $9IrjX$Fragment} from \"react\";\nimport {composeRefs as $9IrjX$composeRefs} from \"@radix-ui/react-compose-refs\";\n\n\n\n\n/* -------------------------------------------------------------------------------------------------\n * Slot\n * -----------------------------------------------------------------------------------------------*/ const $5e63c961fc1ce211$export$8c6ed5c666ac1360 = /*#__PURE__*/ $9IrjX$forwardRef((props, forwardedRef)=>{\n const { children: children , ...slotProps } = props;\n const childrenArray = $9IrjX$Children.toArray(children);\n const slottable = childrenArray.find($5e63c961fc1ce211$var$isSlottable);\n if (slottable) {\n // the new element to render is the one passed as a child of `Slottable`\n const newElement = slottable.props.children;\n const newChildren = childrenArray.map((child)=>{\n if (child === slottable) {\n // because the new element will be the one rendered, we are only interested\n // in grabbing its children (`newElement.props.children`)\n if ($9IrjX$Children.count(newElement) > 1) return $9IrjX$Children.only(null);\n return /*#__PURE__*/ $9IrjX$isValidElement(newElement) ? newElement.props.children : null;\n } else return child;\n });\n return /*#__PURE__*/ $9IrjX$createElement($5e63c961fc1ce211$var$SlotClone, $9IrjX$babelruntimehelpersesmextends({}, slotProps, {\n ref: forwardedRef\n }), /*#__PURE__*/ $9IrjX$isValidElement(newElement) ? /*#__PURE__*/ $9IrjX$cloneElement(newElement, undefined, newChildren) : null);\n }\n return /*#__PURE__*/ $9IrjX$createElement($5e63c961fc1ce211$var$SlotClone, $9IrjX$babelruntimehelpersesmextends({}, slotProps, {\n ref: forwardedRef\n }), children);\n});\n$5e63c961fc1ce211$export$8c6ed5c666ac1360.displayName = 'Slot';\n/* -------------------------------------------------------------------------------------------------\n * SlotClone\n * -----------------------------------------------------------------------------------------------*/ const $5e63c961fc1ce211$var$SlotClone = /*#__PURE__*/ $9IrjX$forwardRef((props, forwardedRef)=>{\n const { children: children , ...slotProps } = props;\n if (/*#__PURE__*/ $9IrjX$isValidElement(children)) return /*#__PURE__*/ $9IrjX$cloneElement(children, {\n ...$5e63c961fc1ce211$var$mergeProps(slotProps, children.props),\n ref: forwardedRef ? $9IrjX$composeRefs(forwardedRef, children.ref) : children.ref\n });\n return $9IrjX$Children.count(children) > 1 ? $9IrjX$Children.only(null) : null;\n});\n$5e63c961fc1ce211$var$SlotClone.displayName = 'SlotClone';\n/* -------------------------------------------------------------------------------------------------\n * Slottable\n * -----------------------------------------------------------------------------------------------*/ const $5e63c961fc1ce211$export$d9f1ccf0bdb05d45 = ({ children: children })=>{\n return /*#__PURE__*/ $9IrjX$createElement($9IrjX$Fragment, null, children);\n};\n/* ---------------------------------------------------------------------------------------------- */ function $5e63c961fc1ce211$var$isSlottable(child) {\n return /*#__PURE__*/ $9IrjX$isValidElement(child) && child.type === $5e63c961fc1ce211$export$d9f1ccf0bdb05d45;\n}\nfunction $5e63c961fc1ce211$var$mergeProps(slotProps, childProps) {\n // all child props should override\n const overrideProps = {\n ...childProps\n };\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 the handler exists on both, we compose them\n if (slotPropValue && childPropValue) overrideProps[propName] = (...args)=>{\n childPropValue(...args);\n slotPropValue(...args);\n };\n else if (slotPropValue) overrideProps[propName] = slotPropValue;\n } else if (propName === 'style') overrideProps[propName] = {\n ...slotPropValue,\n ...childPropValue\n };\n else if (propName === 'className') overrideProps[propName] = [\n slotPropValue,\n childPropValue\n ].filter(Boolean).join(' ');\n }\n return {\n ...slotProps,\n ...overrideProps\n };\n}\nconst $5e63c961fc1ce211$export$be92b6f5f03c0fe9 = $5e63c961fc1ce211$export$8c6ed5c666ac1360;\n\n\n\n\nexport {$5e63c961fc1ce211$export$8c6ed5c666ac1360 as Slot, $5e63c961fc1ce211$export$d9f1ccf0bdb05d45 as Slottable, $5e63c961fc1ce211$export$be92b6f5f03c0fe9 as Root};\n//# sourceMappingURL=index.mjs.map\n"],"names":["$5e63c961fc1ce211$export$8c6ed5c666ac1360","$9IrjX$forwardRef","props","forwardedRef","children","slotProps","childrenArray","$9IrjX$Children","toArray","slottable","find","$5e63c961fc1ce211$var$isSlottable","newElement","newChildren","map","child","count","only","$9IrjX$isValidElement","$9IrjX$createElement","$5e63c961fc1ce211$var$SlotClone","$9IrjX$babelruntimehelpersesmextends","ref","$9IrjX$cloneElement","undefined","displayName","$5e63c961fc1ce211$var$mergeProps","$9IrjX$composeRefs","$5e63c961fc1ce211$export$d9f1ccf0bdb05d45","$9IrjX$Fragment","type","childProps","overrideProps","propName","slotPropValue","childPropValue","test","args","filter","Boolean","join"],"mappings":"iRAS0G,MAACA,EAA0DC,GAAkB,CAACC,EAAOC,KAC3L,MAAQC,SAAUA,KAAcC,GAAcH,EACxCI,EAAgBC,EAAgBC,QAAQJ,GACxCK,EAAYH,EAAcI,KAAKC,GACrC,GAAIF,EAAW,CAEX,MAAMG,EAAaH,EAAUP,MAAME,SAC7BS,EAAcP,EAAcQ,KAAKC,GAC/BA,IAAUN,EAGNF,EAAgBS,MAAMJ,GAAc,EAAUL,EAAgBU,KAAK,MAClDC,EAAsBN,GAAcA,EAAWV,MAAME,SAAW,KAC3EW,IAElB,OAAqBI,EAAqBC,EAAiCC,EAAqC,CAAA,EAAIhB,EAAW,CAC3HiB,IAAKnB,IACSe,EAAsBN,GAA4BW,EAAoBX,OAAYY,EAAWX,GAAe,KACjI,CACD,OAAqBM,EAAqBC,EAAiCC,EAAqC,CAAA,EAAIhB,EAAW,CAC3HiB,IAAKnB,IACLC,EAAS,IAEjBJ,EAA0CyB,YAAc,OAG6C,MAAML,EAAgDnB,GAAkB,CAACC,EAAOC,KACjL,MAAQC,SAAUA,KAAcC,GAAcH,EAC9C,OAAkBgB,EAAsBd,GAAgCmB,EAAoBnB,EAAU,IAC/FsB,EAAiCrB,EAAWD,EAASF,OACxDoB,IAAKnB,EAAewB,EAAmBxB,EAAcC,EAASkB,KAAOlB,EAASkB,MAE3Ef,EAAgBS,MAAMZ,GAAY,EAAIG,EAAgBU,KAAK,MAAQ,IAAI,IAElFG,EAAgCK,YAAc,YAG4D,MAACG,EAA4C,EAAGxB,SAAUA,KAC3Ie,EAAqBU,EAAiB,KAAMzB,GAEgC,SAASO,EAAkCI,GAC5I,OAAqBG,EAAsBH,IAAUA,EAAMe,OAASF,CACxE,CACA,SAASF,EAAiCrB,EAAW0B,GAEjD,MAAMC,EAAgB,IACfD,GAEP,IAAI,MAAME,KAAYF,EAAW,CAC7B,MAAMG,EAAgB7B,EAAU4B,GAC1BE,EAAiBJ,EAAWE,GAChB,WAAWG,KAAKH,GAG1BC,GAAiBC,EAAgBH,EAAcC,GAAY,IAAII,KAC/DF,KAAkBE,GAClBH,KAAiBG,EAAK,EAEjBH,IAAeF,EAAcC,GAAYC,GAC9B,UAAbD,EAAsBD,EAAcC,GAAY,IACpDC,KACAC,GAEe,cAAbF,IAA0BD,EAAcC,GAAY,CACzDC,EACAC,GACFG,OAAOC,SAASC,KAAK,KAC1B,CACD,MAAO,IACAnC,KACA2B,EAEX"}
1
+ {"version":3,"file":"index.mjs.js","sources":["../../../../../../../../node_modules/@radix-ui/react-dialog/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\";\n// @__NO_SIDE_EFFECTS__\nfunction createSlot(ownerName) {\n const SlotClone = /* @__PURE__ */ createSlotClone(ownerName);\n const Slot2 = React.forwardRef((props, forwardedRef) => {\n const { children, ...slotProps } = props;\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 const { children, ...slotProps } = props;\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":["createSlot","ownerName","SlotClone","createSlotClone","Slot2","React","forwardRef","props","forwardedRef","children","slotProps","childrenArray","Children","toArray","slottable","find","isSlottable","newElement","newChildren","map","child","count","only","isValidElement","jsx","ref","cloneElement","displayName","childrenRef","element","getter","Object","getOwnPropertyDescriptor","get","mayWarn","isReactWarning","getElementRef","props2","childProps","overrideProps","propName","slotPropValue","childPropValue","test","args","result","filter","Boolean","join","mergeProps","type","Fragment","composeRefs","SLOTTABLE_IDENTIFIER","Symbol","__radixId"],"mappings":"kJAKA,SAASA,EAAWC,GAClB,MAAMC,EAA4BC,EAAgBF,GAC5CG,EAAQC,EAAMC,YAAW,CAACC,EAAOC,KACrC,MAAMC,SAAEA,KAAaC,GAAcH,EAC7BI,EAAgBN,EAAMO,SAASC,QAAQJ,GACvCK,EAAYH,EAAcI,KAAKC,GACrC,GAAIF,EAAW,CACb,MAAMG,EAAaH,EAAUP,MAAME,SAC7BS,EAAcP,EAAcQ,KAAKC,GACjCA,IAAUN,EACRT,EAAMO,SAASS,MAAMJ,GAAc,EAAUZ,EAAMO,SAASU,KAAK,MAC9DjB,EAAMkB,eAAeN,GAAcA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,IAAKtC,KAAc6B,EAC5B,CAhDqBU,CAAWvC,EAAWD,EAASF,OAI9C,OAHIE,EAASyC,OAAS7C,EAAM8C,WAC1Bd,EAAOZ,IAAMjB,EAAe4C,EAAY5C,EAAcoB,GAAeA,GAEhEvB,EAAMqB,aAAajB,EAAU4B,EACrC,CACD,OAAOhC,EAAMO,SAASS,MAAMZ,GAAY,EAAIJ,EAAMO,SAASU,KAAK,MAAQ,IAAI,IAG9E,OADApB,EAAUyB,YAAc,GAAG1B,cACpBC,CACT,CACA,IAAImD,EAAuBC,OAAO,mBAWlC,SAAStC,EAAYI,GACnB,OAAOf,EAAMkB,eAAeH,IAAgC,mBAAfA,EAAM8B,MAAuB,cAAe9B,EAAM8B,MAAQ9B,EAAM8B,KAAKK,YAAcF,CAClI"}
@@ -1,2 +1,2 @@
1
- import{useContext as t,createContext as o}from"react";const r=o(void 0);function n(o){const n=t(r);return o||n||"ltr"}export{n as useDirection};
1
+ import*as t from"react";import"react/jsx-runtime";var r=t.createContext(void 0);function e(e){const o=t.useContext(r);return e||o||"ltr"}export{e as useDirection};
2
2
  //# sourceMappingURL=index.mjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs.js","sources":["../../../../../node_modules/@radix-ui/react-direction/dist/index.mjs"],"sourcesContent":["import {createContext as $7Gjcd$createContext, createElement as $7Gjcd$createElement, useContext as $7Gjcd$useContext} from \"react\";\n\n\nconst $f631663db3294ace$var$DirectionContext = /*#__PURE__*/ $7Gjcd$createContext(undefined);\n/* -------------------------------------------------------------------------------------------------\n * Direction\n * -----------------------------------------------------------------------------------------------*/ const $f631663db3294ace$export$c760c09fdd558351 = (props)=>{\n const { dir: dir , children: children } = props;\n return /*#__PURE__*/ $7Gjcd$createElement($f631663db3294ace$var$DirectionContext.Provider, {\n value: dir\n }, children);\n};\n/* -----------------------------------------------------------------------------------------------*/ function $f631663db3294ace$export$b39126d51d94e6f3(localDir) {\n const globalDir = $7Gjcd$useContext($f631663db3294ace$var$DirectionContext);\n return localDir || globalDir || 'ltr';\n}\nconst $f631663db3294ace$export$2881499e37b75b9a = $f631663db3294ace$export$c760c09fdd558351;\n\n\n\n\nexport {$f631663db3294ace$export$b39126d51d94e6f3 as useDirection, $f631663db3294ace$export$2881499e37b75b9a as Provider, $f631663db3294ace$export$c760c09fdd558351 as DirectionProvider};\n//# sourceMappingURL=index.mjs.map\n"],"names":["$f631663db3294ace$var$DirectionContext","$7Gjcd$createContext","undefined","$f631663db3294ace$export$b39126d51d94e6f3","localDir","globalDir","$7Gjcd$useContext"],"mappings":"sDAGA,MAAMA,EAAuDC,OAAqBC,GASmB,SAASC,EAA0CC,GACpJ,MAAMC,EAAYC,EAAkBN,GACpC,OAAOI,GAAYC,GAAa,KACpC"}
1
+ {"version":3,"file":"index.mjs.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","createContext","useDirection","localDir","globalDir","useContext"],"mappings":"kDAGA,IAAIA,EAAmBC,EAAMC,mBAAc,GAK3C,SAASC,EAAaC,GACpB,MAAMC,EAAYJ,EAAMK,WAAWN,GACnC,OAAOI,GAAYC,GAAa,KAClC"}
@@ -1,2 +1,3 @@
1
- import e from"../../../@babel/runtime/helpers/esm/extends.js";import{forwardRef as t,useContext as n,useState as s,useEffect as r,createElement as i,useRef as o,createContext as a}from"react";import{composeEventHandlers as l}from"../../primitive/dist/index.mjs.js";import{Primitive as u,dispatchDiscreteCustomEvent as d}from"../../react-primitive/dist/index.mjs.js";import{useComposedRefs as c}from"../../react-compose-refs/dist/index.mjs.js";import{useCallbackRef as v}from"../../react-use-callback-ref/dist/index.mjs.js";import{useEscapeKeydown as m}from"../../react-use-escape-keydown/dist/index.mjs.js";const p="dismissableLayer.update",b="dismissableLayer.pointerDownOutside",E="dismissableLayer.focusOutside";let f;const y=a({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),h=t(((t,a)=>{var d;const{disableOutsidePointerEvents:h=!1,onEscapeKeyDown:g,onPointerDownOutside:C,onFocusOutside:P,onInteractOutside:L,onDismiss:O,...T}=t,j=n(y),[x,k]=s(null),W=null!==(d=null==x?void 0:x.ownerDocument)&&void 0!==d?d:null===globalThis||void 0===globalThis?void 0:globalThis.document,[,F]=s({}),z=c(a,(e=>k(e))),B=Array.from(j.layers),[S]=[...j.layersWithOutsidePointerEventsDisabled].slice(-1),K=B.indexOf(S),R=x?B.indexOf(x):-1,A=j.layersWithOutsidePointerEventsDisabled.size>0,H=R>=K,I=function(e,t=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const n=v(e),s=o(!1),i=o((()=>{}));return r((()=>{const e=e=>{if(e.target&&!s.current){const r={originalEvent:e};function o(){D(b,n,r,{discrete:!0})}"touch"===e.pointerType?(t.removeEventListener("click",i.current),i.current=o,t.addEventListener("click",i.current,{once:!0})):o()}else t.removeEventListener("click",i.current);s.current=!1},r=window.setTimeout((()=>{t.addEventListener("pointerdown",e)}),0);return()=>{window.clearTimeout(r),t.removeEventListener("pointerdown",e),t.removeEventListener("click",i.current)}}),[t,n]),{onPointerDownCapture:()=>s.current=!0}}((e=>{const t=e.target,n=[...j.branches].some((e=>e.contains(t)));H&&!n&&(null==C||C(e),null==L||L(e),e.defaultPrevented||null==O||O())}),W),q=function(e,t=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const n=v(e),s=o(!1);return r((()=>{const e=e=>{if(e.target&&!s.current){D(E,n,{originalEvent:e},{discrete:!1})}};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)}),[t,n]),{onFocusCapture:()=>s.current=!0,onBlurCapture:()=>s.current=!1}}((e=>{const t=e.target;[...j.branches].some((e=>e.contains(t)))||(null==P||P(e),null==L||L(e),e.defaultPrevented||null==O||O())}),W);return m((e=>{R===j.layers.size-1&&(null==g||g(e),!e.defaultPrevented&&O&&(e.preventDefault(),O()))}),W),r((()=>{if(x)return h&&(0===j.layersWithOutsidePointerEventsDisabled.size&&(f=W.body.style.pointerEvents,W.body.style.pointerEvents="none"),j.layersWithOutsidePointerEventsDisabled.add(x)),j.layers.add(x),w(),()=>{h&&1===j.layersWithOutsidePointerEventsDisabled.size&&(W.body.style.pointerEvents=f)}}),[x,W,h,j]),r((()=>()=>{x&&(j.layers.delete(x),j.layersWithOutsidePointerEventsDisabled.delete(x),w())}),[x,j]),r((()=>{const e=()=>F({});return document.addEventListener(p,e),()=>document.removeEventListener(p,e)}),[]),i(u.div,e({},T,{ref:z,style:{pointerEvents:A?H?"auto":"none":void 0,...t.style},onFocusCapture:l(t.onFocusCapture,q.onFocusCapture),onBlurCapture:l(t.onBlurCapture,q.onBlurCapture),onPointerDownCapture:l(t.onPointerDownCapture,I.onPointerDownCapture)}))}));function w(){const e=new CustomEvent(p);document.dispatchEvent(e)}function D(e,t,n,{discrete:s}){const r=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&r.addEventListener(e,t,{once:!0}),s?d(r,i):r.dispatchEvent(i)}export{h as DismissableLayer};
1
+ 'use client';
2
+ import*as e from"react";import{composeEventHandlers as t}from"../../primitive/dist/index.mjs.js";import{Primitive as n,dispatchDiscreteCustomEvent as r}from"../node_modules/@radix-ui/react-primitive/dist/index.mjs.js";import{useComposedRefs as s}from"../../react-compose-refs/dist/index.mjs.js";import{useCallbackRef as i}from"../../react-use-callback-ref/dist/index.mjs.js";import{useEscapeKeydown as o}from"../../react-use-escape-keydown/dist/index.mjs.js";import{jsx as a}from"react/jsx-runtime";var u,c="dismissableLayer.update",d="dismissableLayer.pointerDownOutside",l="dismissableLayer.focusOutside",m=e.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),f=e.forwardRef(((r,f)=>{const{disableOutsidePointerEvents:v=!1,onEscapeKeyDown:y,onPointerDownOutside:b,onFocusOutside:w,onInteractOutside:h,onDismiss:D,...C}=r,L=e.useContext(m),[P,O]=e.useState(null),x=P?.ownerDocument??globalThis?.document,[,g]=e.useState({}),j=s(f,(e=>O(e))),W=Array.from(L.layers),[k]=[...L.layersWithOutsidePointerEventsDisabled].slice(-1),R=W.indexOf(k),T=P?W.indexOf(P):-1,B=L.layersWithOutsidePointerEventsDisabled.size>0,F=T>=R,S=function(t,n=globalThis?.document){const r=i(t),s=e.useRef(!1),o=e.useRef((()=>{}));return e.useEffect((()=>{const e=e=>{if(e.target&&!s.current){let t=function(){E(d,r,s,{discrete:!0})};const s={originalEvent:e};"touch"===e.pointerType?(n.removeEventListener("click",o.current),o.current=t,n.addEventListener("click",o.current,{once:!0})):t()}else n.removeEventListener("click",o.current);s.current=!1},t=window.setTimeout((()=>{n.addEventListener("pointerdown",e)}),0);return()=>{window.clearTimeout(t),n.removeEventListener("pointerdown",e),n.removeEventListener("click",o.current)}}),[n,r]),{onPointerDownCapture:()=>s.current=!0}}((e=>{const t=e.target,n=[...L.branches].some((e=>e.contains(t)));F&&!n&&(b?.(e),h?.(e),e.defaultPrevented||D?.())}),x),z=function(t,n=globalThis?.document){const r=i(t),s=e.useRef(!1);return e.useEffect((()=>{const e=e=>{if(e.target&&!s.current){E(l,r,{originalEvent:e},{discrete:!1})}};return n.addEventListener("focusin",e),()=>n.removeEventListener("focusin",e)}),[n,r]),{onFocusCapture:()=>s.current=!0,onBlurCapture:()=>s.current=!1}}((e=>{const t=e.target;[...L.branches].some((e=>e.contains(t)))||(w?.(e),h?.(e),e.defaultPrevented||D?.())}),x);return o((e=>{T===L.layers.size-1&&(y?.(e),!e.defaultPrevented&&D&&(e.preventDefault(),D()))}),x),e.useEffect((()=>{if(P)return v&&(0===L.layersWithOutsidePointerEventsDisabled.size&&(u=x.body.style.pointerEvents,x.body.style.pointerEvents="none"),L.layersWithOutsidePointerEventsDisabled.add(P)),L.layers.add(P),p(),()=>{v&&1===L.layersWithOutsidePointerEventsDisabled.size&&(x.body.style.pointerEvents=u)}}),[P,x,v,L]),e.useEffect((()=>()=>{P&&(L.layers.delete(P),L.layersWithOutsidePointerEventsDisabled.delete(P),p())}),[P,L]),e.useEffect((()=>{const e=()=>g({});return document.addEventListener(c,e),()=>document.removeEventListener(c,e)}),[]),a(n.div,{...C,ref:j,style:{pointerEvents:B?F?"auto":"none":void 0,...r.style},onFocusCapture:t(r.onFocusCapture,z.onFocusCapture),onBlurCapture:t(r.onBlurCapture,z.onBlurCapture),onPointerDownCapture:t(r.onPointerDownCapture,S.onPointerDownCapture)})}));f.displayName="DismissableLayer";var v=e.forwardRef(((t,r)=>{const i=e.useContext(m),o=e.useRef(null),u=s(r,o);return e.useEffect((()=>{const e=o.current;if(e)return i.branches.add(e),()=>{i.branches.delete(e)}}),[i.branches]),a(n.div,{...t,ref:u})}));function p(){const e=new CustomEvent(c);document.dispatchEvent(e)}function E(e,t,n,{discrete:s}){const i=n.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),s?r(i,o):i.dispatchEvent(o)}v.displayName="DismissableLayerBranch";export{f as DismissableLayer,v as DismissableLayerBranch};
2
3
  //# sourceMappingURL=index.mjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs.js","sources":["../../../../../node_modules/@radix-ui/react-dismissable-layer/dist/index.mjs"],"sourcesContent":["import $kqwpH$babelruntimehelpersesmextends from \"@babel/runtime/helpers/esm/extends\";\nimport {createContext as $kqwpH$createContext, forwardRef as $kqwpH$forwardRef, useContext as $kqwpH$useContext, useState as $kqwpH$useState, useEffect as $kqwpH$useEffect, createElement as $kqwpH$createElement, useRef as $kqwpH$useRef} from \"react\";\nimport {composeEventHandlers as $kqwpH$composeEventHandlers} from \"@radix-ui/primitive\";\nimport {Primitive as $kqwpH$Primitive, dispatchDiscreteCustomEvent as $kqwpH$dispatchDiscreteCustomEvent} from \"@radix-ui/react-primitive\";\nimport {useComposedRefs as $kqwpH$useComposedRefs} from \"@radix-ui/react-compose-refs\";\nimport {useCallbackRef as $kqwpH$useCallbackRef} from \"@radix-ui/react-use-callback-ref\";\nimport {useEscapeKeydown as $kqwpH$useEscapeKeydown} from \"@radix-ui/react-use-escape-keydown\";\n\n\n\n\n\n\n\n\n/* -------------------------------------------------------------------------------------------------\n * DismissableLayer\n * -----------------------------------------------------------------------------------------------*/ const $5cb92bef7577960e$var$DISMISSABLE_LAYER_NAME = 'DismissableLayer';\nconst $5cb92bef7577960e$var$CONTEXT_UPDATE = 'dismissableLayer.update';\nconst $5cb92bef7577960e$var$POINTER_DOWN_OUTSIDE = 'dismissableLayer.pointerDownOutside';\nconst $5cb92bef7577960e$var$FOCUS_OUTSIDE = 'dismissableLayer.focusOutside';\nlet $5cb92bef7577960e$var$originalBodyPointerEvents;\nconst $5cb92bef7577960e$var$DismissableLayerContext = /*#__PURE__*/ $kqwpH$createContext({\n layers: new Set(),\n layersWithOutsidePointerEventsDisabled: new Set(),\n branches: new Set()\n});\nconst $5cb92bef7577960e$export$177fb62ff3ec1f22 = /*#__PURE__*/ $kqwpH$forwardRef((props, forwardedRef)=>{\n var _node$ownerDocument;\n const { disableOutsidePointerEvents: disableOutsidePointerEvents = false , onEscapeKeyDown: onEscapeKeyDown , onPointerDownOutside: onPointerDownOutside , onFocusOutside: onFocusOutside , onInteractOutside: onInteractOutside , onDismiss: onDismiss , ...layerProps } = props;\n const context = $kqwpH$useContext($5cb92bef7577960e$var$DismissableLayerContext);\n const [node1, setNode] = $kqwpH$useState(null);\n const ownerDocument = (_node$ownerDocument = node1 === null || node1 === void 0 ? void 0 : node1.ownerDocument) !== null && _node$ownerDocument !== void 0 ? _node$ownerDocument : globalThis === null || globalThis === void 0 ? void 0 : globalThis.document;\n const [, force] = $kqwpH$useState({});\n const composedRefs = $kqwpH$useComposedRefs(forwardedRef, (node)=>setNode(node)\n );\n const layers = Array.from(context.layers);\n const [highestLayerWithOutsidePointerEventsDisabled] = [\n ...context.layersWithOutsidePointerEventsDisabled\n ].slice(-1); // prettier-ignore\n const highestLayerWithOutsidePointerEventsDisabledIndex = layers.indexOf(highestLayerWithOutsidePointerEventsDisabled); // prettier-ignore\n const index = node1 ? layers.indexOf(node1) : -1;\n const isBodyPointerEventsDisabled = context.layersWithOutsidePointerEventsDisabled.size > 0;\n const isPointerEventsEnabled = index >= highestLayerWithOutsidePointerEventsDisabledIndex;\n const pointerDownOutside = $5cb92bef7577960e$var$usePointerDownOutside((event)=>{\n const target = event.target;\n const isPointerDownOnBranch = [\n ...context.branches\n ].some((branch)=>branch.contains(target)\n );\n if (!isPointerEventsEnabled || isPointerDownOnBranch) return;\n onPointerDownOutside === null || onPointerDownOutside === void 0 || onPointerDownOutside(event);\n onInteractOutside === null || onInteractOutside === void 0 || onInteractOutside(event);\n if (!event.defaultPrevented) onDismiss === null || onDismiss === void 0 || onDismiss();\n }, ownerDocument);\n const focusOutside = $5cb92bef7577960e$var$useFocusOutside((event)=>{\n const target = event.target;\n const isFocusInBranch = [\n ...context.branches\n ].some((branch)=>branch.contains(target)\n );\n if (isFocusInBranch) return;\n onFocusOutside === null || onFocusOutside === void 0 || onFocusOutside(event);\n onInteractOutside === null || onInteractOutside === void 0 || onInteractOutside(event);\n if (!event.defaultPrevented) onDismiss === null || onDismiss === void 0 || onDismiss();\n }, ownerDocument);\n $kqwpH$useEscapeKeydown((event)=>{\n const isHighestLayer = index === context.layers.size - 1;\n if (!isHighestLayer) return;\n onEscapeKeyDown === null || onEscapeKeyDown === void 0 || onEscapeKeyDown(event);\n if (!event.defaultPrevented && onDismiss) {\n event.preventDefault();\n onDismiss();\n }\n }, ownerDocument);\n $kqwpH$useEffect(()=>{\n if (!node1) return;\n if (disableOutsidePointerEvents) {\n if (context.layersWithOutsidePointerEventsDisabled.size === 0) {\n $5cb92bef7577960e$var$originalBodyPointerEvents = ownerDocument.body.style.pointerEvents;\n ownerDocument.body.style.pointerEvents = 'none';\n }\n context.layersWithOutsidePointerEventsDisabled.add(node1);\n }\n context.layers.add(node1);\n $5cb92bef7577960e$var$dispatchUpdate();\n return ()=>{\n if (disableOutsidePointerEvents && context.layersWithOutsidePointerEventsDisabled.size === 1) ownerDocument.body.style.pointerEvents = $5cb92bef7577960e$var$originalBodyPointerEvents;\n };\n }, [\n node1,\n ownerDocument,\n disableOutsidePointerEvents,\n context\n ]);\n /**\n * We purposefully prevent combining this effect with the `disableOutsidePointerEvents` effect\n * because a change to `disableOutsidePointerEvents` would remove this layer from the stack\n * and add it to the end again so the layering order wouldn't be _creation order_.\n * We only want them to be removed from context stacks when unmounted.\n */ $kqwpH$useEffect(()=>{\n return ()=>{\n if (!node1) return;\n context.layers.delete(node1);\n context.layersWithOutsidePointerEventsDisabled.delete(node1);\n $5cb92bef7577960e$var$dispatchUpdate();\n };\n }, [\n node1,\n context\n ]);\n $kqwpH$useEffect(()=>{\n const handleUpdate = ()=>force({})\n ;\n document.addEventListener($5cb92bef7577960e$var$CONTEXT_UPDATE, handleUpdate);\n return ()=>document.removeEventListener($5cb92bef7577960e$var$CONTEXT_UPDATE, handleUpdate)\n ;\n }, []);\n return /*#__PURE__*/ $kqwpH$createElement($kqwpH$Primitive.div, $kqwpH$babelruntimehelpersesmextends({}, layerProps, {\n ref: composedRefs,\n style: {\n pointerEvents: isBodyPointerEventsDisabled ? isPointerEventsEnabled ? 'auto' : 'none' : undefined,\n ...props.style\n },\n onFocusCapture: $kqwpH$composeEventHandlers(props.onFocusCapture, focusOutside.onFocusCapture),\n onBlurCapture: $kqwpH$composeEventHandlers(props.onBlurCapture, focusOutside.onBlurCapture),\n onPointerDownCapture: $kqwpH$composeEventHandlers(props.onPointerDownCapture, pointerDownOutside.onPointerDownCapture)\n }));\n});\n/*#__PURE__*/ Object.assign($5cb92bef7577960e$export$177fb62ff3ec1f22, {\n displayName: $5cb92bef7577960e$var$DISMISSABLE_LAYER_NAME\n});\n/* -------------------------------------------------------------------------------------------------\n * DismissableLayerBranch\n * -----------------------------------------------------------------------------------------------*/ const $5cb92bef7577960e$var$BRANCH_NAME = 'DismissableLayerBranch';\nconst $5cb92bef7577960e$export$4d5eb2109db14228 = /*#__PURE__*/ $kqwpH$forwardRef((props, forwardedRef)=>{\n const context = $kqwpH$useContext($5cb92bef7577960e$var$DismissableLayerContext);\n const ref = $kqwpH$useRef(null);\n const composedRefs = $kqwpH$useComposedRefs(forwardedRef, ref);\n $kqwpH$useEffect(()=>{\n const node = ref.current;\n if (node) {\n context.branches.add(node);\n return ()=>{\n context.branches.delete(node);\n };\n }\n }, [\n context.branches\n ]);\n return /*#__PURE__*/ $kqwpH$createElement($kqwpH$Primitive.div, $kqwpH$babelruntimehelpersesmextends({}, props, {\n ref: composedRefs\n }));\n});\n/*#__PURE__*/ Object.assign($5cb92bef7577960e$export$4d5eb2109db14228, {\n displayName: $5cb92bef7577960e$var$BRANCH_NAME\n});\n/* -----------------------------------------------------------------------------------------------*/ /**\n * Listens for `pointerdown` outside a react subtree. We use `pointerdown` rather than `pointerup`\n * to mimic layer dismissing behaviour present in OS.\n * Returns props to pass to the node we want to check for outside events.\n */ function $5cb92bef7577960e$var$usePointerDownOutside(onPointerDownOutside, ownerDocument = globalThis === null || globalThis === void 0 ? void 0 : globalThis.document) {\n const handlePointerDownOutside = $kqwpH$useCallbackRef(onPointerDownOutside);\n const isPointerInsideReactTreeRef = $kqwpH$useRef(false);\n const handleClickRef = $kqwpH$useRef(()=>{});\n $kqwpH$useEffect(()=>{\n const handlePointerDown = (event)=>{\n if (event.target && !isPointerInsideReactTreeRef.current) {\n const eventDetail = {\n originalEvent: event\n };\n function handleAndDispatchPointerDownOutsideEvent() {\n $5cb92bef7577960e$var$handleAndDispatchCustomEvent($5cb92bef7577960e$var$POINTER_DOWN_OUTSIDE, handlePointerDownOutside, eventDetail, {\n discrete: true\n });\n }\n /**\n * On touch devices, we need to wait for a click event because browsers implement\n * a ~350ms delay between the time the user stops touching the display and when the\n * browser executres events. We need to ensure we don't reactivate pointer-events within\n * this timeframe otherwise the browser may execute events that should have been prevented.\n *\n * Additionally, this also lets us deal automatically with cancellations when a click event\n * isn't raised because the page was considered scrolled/drag-scrolled, long-pressed, etc.\n *\n * This is why we also continuously remove the previous listener, because we cannot be\n * certain that it was raised, and therefore cleaned-up.\n */ if (event.pointerType === 'touch') {\n ownerDocument.removeEventListener('click', handleClickRef.current);\n handleClickRef.current = handleAndDispatchPointerDownOutsideEvent;\n ownerDocument.addEventListener('click', handleClickRef.current, {\n once: true\n });\n } else handleAndDispatchPointerDownOutsideEvent();\n } else // We need to remove the event listener in case the outside click has been canceled.\n // See: https://github.com/radix-ui/primitives/issues/2171\n ownerDocument.removeEventListener('click', handleClickRef.current);\n isPointerInsideReactTreeRef.current = false;\n };\n /**\n * if this hook executes in a component that mounts via a `pointerdown` event, the event\n * would bubble up to the document and trigger a `pointerDownOutside` event. We avoid\n * this by delaying the event listener registration on the document.\n * This is not React specific, but rather how the DOM works, ie:\n * ```\n * button.addEventListener('pointerdown', () => {\n * console.log('I will log');\n * document.addEventListener('pointerdown', () => {\n * console.log('I will also log');\n * })\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 }, [\n ownerDocument,\n handlePointerDownOutside\n ]);\n return {\n // ensures we check React component tree (not just DOM tree)\n onPointerDownCapture: ()=>isPointerInsideReactTreeRef.current = true\n };\n}\n/**\n * Listens for when focus happens outside a react subtree.\n * Returns props to pass to the root (node) of the subtree we want to check.\n */ function $5cb92bef7577960e$var$useFocusOutside(onFocusOutside, ownerDocument = globalThis === null || globalThis === void 0 ? void 0 : globalThis.document) {\n const handleFocusOutside = $kqwpH$useCallbackRef(onFocusOutside);\n const isFocusInsideReactTreeRef = $kqwpH$useRef(false);\n $kqwpH$useEffect(()=>{\n const handleFocus = (event)=>{\n if (event.target && !isFocusInsideReactTreeRef.current) {\n const eventDetail = {\n originalEvent: event\n };\n $5cb92bef7577960e$var$handleAndDispatchCustomEvent($5cb92bef7577960e$var$FOCUS_OUTSIDE, handleFocusOutside, eventDetail, {\n discrete: false\n });\n }\n };\n ownerDocument.addEventListener('focusin', handleFocus);\n return ()=>ownerDocument.removeEventListener('focusin', handleFocus)\n ;\n }, [\n ownerDocument,\n handleFocusOutside\n ]);\n return {\n onFocusCapture: ()=>isFocusInsideReactTreeRef.current = true\n ,\n onBlurCapture: ()=>isFocusInsideReactTreeRef.current = false\n };\n}\nfunction $5cb92bef7577960e$var$dispatchUpdate() {\n const event = new CustomEvent($5cb92bef7577960e$var$CONTEXT_UPDATE);\n document.dispatchEvent(event);\n}\nfunction $5cb92bef7577960e$var$handleAndDispatchCustomEvent(name, handler, detail, { discrete: discrete }) {\n const target = detail.originalEvent.target;\n const event = new CustomEvent(name, {\n bubbles: false,\n cancelable: true,\n detail: detail\n });\n if (handler) target.addEventListener(name, handler, {\n once: true\n });\n if (discrete) $kqwpH$dispatchDiscreteCustomEvent(target, event);\n else target.dispatchEvent(event);\n}\nconst $5cb92bef7577960e$export$be92b6f5f03c0fe9 = $5cb92bef7577960e$export$177fb62ff3ec1f22;\nconst $5cb92bef7577960e$export$aecb2ddcb55c95be = $5cb92bef7577960e$export$4d5eb2109db14228;\n\n\n\n\nexport {$5cb92bef7577960e$export$177fb62ff3ec1f22 as DismissableLayer, $5cb92bef7577960e$export$4d5eb2109db14228 as DismissableLayerBranch, $5cb92bef7577960e$export$be92b6f5f03c0fe9 as Root, $5cb92bef7577960e$export$aecb2ddcb55c95be as Branch};\n//# sourceMappingURL=index.mjs.map\n"],"names":["$5cb92bef7577960e$var$CONTEXT_UPDATE","$5cb92bef7577960e$var$POINTER_DOWN_OUTSIDE","$5cb92bef7577960e$var$FOCUS_OUTSIDE","$5cb92bef7577960e$var$originalBodyPointerEvents","$5cb92bef7577960e$var$DismissableLayerContext","$kqwpH$createContext","layers","Set","layersWithOutsidePointerEventsDisabled","branches","$5cb92bef7577960e$export$177fb62ff3ec1f22","$kqwpH$forwardRef","props","forwardedRef","_node$ownerDocument","disableOutsidePointerEvents","onEscapeKeyDown","onPointerDownOutside","onFocusOutside","onInteractOutside","onDismiss","layerProps","context","$kqwpH$useContext","node1","setNode","$kqwpH$useState","ownerDocument","globalThis","document","force","composedRefs","$kqwpH$useComposedRefs","node","Array","from","highestLayerWithOutsidePointerEventsDisabled","slice","highestLayerWithOutsidePointerEventsDisabledIndex","indexOf","index","isBodyPointerEventsDisabled","size","isPointerEventsEnabled","pointerDownOutside","handlePointerDownOutside","$kqwpH$useCallbackRef","isPointerInsideReactTreeRef","$kqwpH$useRef","handleClickRef","$kqwpH$useEffect","handlePointerDown","event","target","current","eventDetail","originalEvent","handleAndDispatchPointerDownOutsideEvent","$5cb92bef7577960e$var$handleAndDispatchCustomEvent","discrete","pointerType","removeEventListener","addEventListener","once","timerId","window","setTimeout","clearTimeout","onPointerDownCapture","$5cb92bef7577960e$var$usePointerDownOutside","isPointerDownOnBranch","some","branch","contains","defaultPrevented","focusOutside","handleFocusOutside","isFocusInsideReactTreeRef","handleFocus","onFocusCapture","onBlurCapture","$5cb92bef7577960e$var$useFocusOutside","$kqwpH$useEscapeKeydown","preventDefault","body","style","pointerEvents","add","$5cb92bef7577960e$var$dispatchUpdate","delete","handleUpdate","$kqwpH$createElement","$kqwpH$Primitive","div","$kqwpH$babelruntimehelpersesmextends","ref","undefined","$kqwpH$composeEventHandlers","CustomEvent","dispatchEvent","name","handler","detail","bubbles","cancelable","$kqwpH$dispatchDiscreteCustomEvent"],"mappings":"+lBAkBA,MAAMA,EAAuC,0BACvCC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