@quantinuum/quantinuum-ui 4.0.1-fix-update-radix.1 → 4.0.2

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 (247) hide show
  1. package/dist/node_modules/@babel/runtime/helpers/esm/extends.js +12 -0
  2. package/dist/node_modules/@babel/runtime/helpers/esm/extends.js.map +1 -0
  3. package/dist/node_modules/@radix-ui/number/dist/index.mjs.js +3 -4
  4. package/dist/node_modules/@radix-ui/number/dist/index.mjs.js.map +1 -1
  5. package/dist/node_modules/@radix-ui/primitive/dist/index.mjs.js +6 -9
  6. package/dist/node_modules/@radix-ui/primitive/dist/index.mjs.js.map +1 -1
  7. package/dist/node_modules/@radix-ui/react-accordion/dist/index.mjs.js +267 -279
  8. package/dist/node_modules/@radix-ui/react-accordion/dist/index.mjs.js.map +1 -1
  9. package/dist/node_modules/@radix-ui/react-avatar/dist/index.mjs.js +92 -114
  10. package/dist/node_modules/@radix-ui/react-avatar/dist/index.mjs.js.map +1 -1
  11. package/dist/node_modules/@radix-ui/react-checkbox/dist/index.mjs.js +138 -255
  12. package/dist/node_modules/@radix-ui/react-checkbox/dist/index.mjs.js.map +1 -1
  13. package/dist/node_modules/@radix-ui/react-collapsible/dist/index.mjs.js +130 -135
  14. package/dist/node_modules/@radix-ui/react-collapsible/dist/index.mjs.js.map +1 -1
  15. package/dist/node_modules/@radix-ui/react-collection/dist/index.mjs.js +88 -66
  16. package/dist/node_modules/@radix-ui/react-collection/dist/index.mjs.js.map +1 -1
  17. package/dist/node_modules/@radix-ui/react-collection/node_modules/@radix-ui/react-slot/dist/index.mjs.js +73 -81
  18. package/dist/node_modules/@radix-ui/react-collection/node_modules/@radix-ui/react-slot/dist/index.mjs.js.map +1 -1
  19. package/dist/node_modules/@radix-ui/react-compose-refs/dist/index.mjs.js +21 -34
  20. package/dist/node_modules/@radix-ui/react-compose-refs/dist/index.mjs.js.map +1 -1
  21. package/dist/node_modules/@radix-ui/react-context/dist/index.mjs.js +93 -72
  22. package/dist/node_modules/@radix-ui/react-context/dist/index.mjs.js.map +1 -1
  23. package/dist/node_modules/@radix-ui/react-dialog/dist/index.mjs.js +254 -297
  24. package/dist/node_modules/@radix-ui/react-dialog/dist/index.mjs.js.map +1 -1
  25. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-slot/dist/index.mjs.js +73 -81
  26. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-slot/dist/index.mjs.js.map +1 -1
  27. package/dist/node_modules/@radix-ui/react-direction/dist/index.mjs.js +6 -8
  28. package/dist/node_modules/@radix-ui/react-direction/dist/index.mjs.js.map +1 -1
  29. package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.mjs.js +217 -190
  30. package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.mjs.js.map +1 -1
  31. package/dist/node_modules/@radix-ui/react-dropdown-menu/dist/index.mjs.js +217 -243
  32. package/dist/node_modules/@radix-ui/react-dropdown-menu/dist/index.mjs.js.map +1 -1
  33. package/dist/node_modules/@radix-ui/react-focus-guards/dist/index.mjs.js +25 -26
  34. package/dist/node_modules/@radix-ui/react-focus-guards/dist/index.mjs.js.map +1 -1
  35. package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.mjs.js +259 -191
  36. package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.mjs.js.map +1 -1
  37. package/dist/node_modules/@radix-ui/react-hover-card/dist/index.mjs.js +205 -224
  38. package/dist/node_modules/@radix-ui/react-hover-card/dist/index.mjs.js.map +1 -1
  39. package/dist/node_modules/@radix-ui/react-id/dist/index.mjs.js +14 -11
  40. package/dist/node_modules/@radix-ui/react-id/dist/index.mjs.js.map +1 -1
  41. package/dist/node_modules/@radix-ui/react-label/dist/index.mjs.js +14 -22
  42. package/dist/node_modules/@radix-ui/react-label/dist/index.mjs.js.map +1 -1
  43. package/dist/node_modules/@radix-ui/react-menu/dist/index.mjs.js +820 -765
  44. package/dist/node_modules/@radix-ui/react-menu/dist/index.mjs.js.map +1 -1
  45. package/dist/node_modules/@radix-ui/react-menu/node_modules/@radix-ui/react-slot/dist/index.mjs.js +73 -81
  46. package/dist/node_modules/@radix-ui/react-menu/node_modules/@radix-ui/react-slot/dist/index.mjs.js.map +1 -1
  47. package/dist/node_modules/@radix-ui/react-navigation-menu/dist/index.mjs.js +730 -717
  48. package/dist/node_modules/@radix-ui/react-navigation-menu/dist/index.mjs.js.map +1 -1
  49. package/dist/node_modules/@radix-ui/react-popover/dist/index.mjs.js +199 -268
  50. package/dist/node_modules/@radix-ui/react-popover/dist/index.mjs.js.map +1 -1
  51. package/dist/node_modules/@radix-ui/react-popover/node_modules/@radix-ui/react-slot/dist/index.mjs.js +73 -81
  52. package/dist/node_modules/@radix-ui/react-popover/node_modules/@radix-ui/react-slot/dist/index.mjs.js.map +1 -1
  53. package/dist/node_modules/@radix-ui/react-popper/dist/index.mjs.js +223 -267
  54. package/dist/node_modules/@radix-ui/react-popper/dist/index.mjs.js.map +1 -1
  55. package/dist/node_modules/@radix-ui/react-portal/dist/index.mjs.js +10 -14
  56. package/dist/node_modules/@radix-ui/react-portal/dist/index.mjs.js.map +1 -1
  57. package/dist/node_modules/@radix-ui/react-presence/dist/index.mjs.js +121 -122
  58. package/dist/node_modules/@radix-ui/react-presence/dist/index.mjs.js.map +1 -1
  59. package/dist/node_modules/@radix-ui/react-primitive/dist/index.mjs.js +83 -39
  60. package/dist/node_modules/@radix-ui/react-primitive/dist/index.mjs.js.map +1 -1
  61. package/dist/node_modules/@radix-ui/react-primitive/node_modules/@radix-ui/react-slot/dist/index.mjs.js +73 -81
  62. package/dist/node_modules/@radix-ui/react-primitive/node_modules/@radix-ui/react-slot/dist/index.mjs.js.map +1 -1
  63. package/dist/node_modules/@radix-ui/react-progress/dist/index.mjs.js +78 -77
  64. package/dist/node_modules/@radix-ui/react-progress/dist/index.mjs.js.map +1 -1
  65. package/dist/node_modules/@radix-ui/react-radio-group/dist/index.mjs.js +217 -264
  66. package/dist/node_modules/@radix-ui/react-radio-group/dist/index.mjs.js.map +1 -1
  67. package/dist/node_modules/@radix-ui/react-roving-focus/dist/index.mjs.js +216 -204
  68. package/dist/node_modules/@radix-ui/react-roving-focus/dist/index.mjs.js.map +1 -1
  69. package/dist/node_modules/@radix-ui/react-scroll-area/dist/index.mjs.js +9 -9
  70. package/dist/node_modules/@radix-ui/react-scroll-area/node_modules/@radix-ui/number/dist/index.mjs.js +7 -0
  71. package/dist/node_modules/@radix-ui/react-scroll-area/node_modules/@radix-ui/number/dist/index.mjs.js.map +1 -0
  72. package/dist/node_modules/@radix-ui/react-scroll-area/node_modules/@radix-ui/primitive/dist/index.mjs.js +12 -0
  73. package/dist/node_modules/@radix-ui/react-scroll-area/node_modules/@radix-ui/primitive/dist/index.mjs.js.map +1 -0
  74. package/dist/node_modules/@radix-ui/react-scroll-area/node_modules/@radix-ui/react-compose-refs/dist/index.mjs.js +40 -0
  75. package/dist/node_modules/@radix-ui/react-scroll-area/node_modules/@radix-ui/react-compose-refs/dist/index.mjs.js.map +1 -0
  76. package/dist/node_modules/@radix-ui/react-scroll-area/node_modules/@radix-ui/react-context/dist/index.mjs.js +64 -0
  77. package/dist/node_modules/@radix-ui/react-scroll-area/node_modules/@radix-ui/react-context/dist/index.mjs.js.map +1 -0
  78. package/dist/node_modules/@radix-ui/react-scroll-area/node_modules/@radix-ui/react-direction/dist/index.mjs.js +12 -0
  79. package/dist/node_modules/@radix-ui/react-scroll-area/node_modules/@radix-ui/react-direction/dist/index.mjs.js.map +1 -0
  80. package/dist/node_modules/@radix-ui/react-scroll-area/node_modules/@radix-ui/react-presence/dist/index.mjs.js +132 -0
  81. package/dist/node_modules/@radix-ui/react-scroll-area/node_modules/@radix-ui/react-presence/dist/index.mjs.js.map +1 -0
  82. package/dist/node_modules/{cmdk → @radix-ui/react-scroll-area}/node_modules/@radix-ui/react-primitive/dist/index.mjs.js +1 -1
  83. package/dist/node_modules/@radix-ui/react-scroll-area/node_modules/@radix-ui/react-primitive/dist/index.mjs.js.map +1 -0
  84. package/dist/node_modules/@radix-ui/react-scroll-area/node_modules/@radix-ui/react-slot/dist/index.mjs.js +90 -0
  85. package/dist/node_modules/@radix-ui/react-scroll-area/node_modules/@radix-ui/react-slot/dist/index.mjs.js.map +1 -0
  86. package/dist/node_modules/@radix-ui/react-scroll-area/node_modules/@radix-ui/react-use-callback-ref/dist/index.mjs.js +13 -0
  87. package/dist/node_modules/@radix-ui/react-scroll-area/node_modules/@radix-ui/react-use-callback-ref/dist/index.mjs.js.map +1 -0
  88. package/dist/node_modules/@radix-ui/react-scroll-area/node_modules/@radix-ui/react-use-layout-effect/dist/index.mjs.js +8 -0
  89. package/dist/node_modules/@radix-ui/react-scroll-area/node_modules/@radix-ui/react-use-layout-effect/dist/index.mjs.js.map +1 -0
  90. package/dist/node_modules/@radix-ui/react-select/dist/index.mjs.js +1079 -1080
  91. package/dist/node_modules/@radix-ui/react-select/dist/index.mjs.js.map +1 -1
  92. package/dist/node_modules/@radix-ui/react-select/node_modules/@radix-ui/react-slot/dist/index.mjs.js +73 -81
  93. package/dist/node_modules/@radix-ui/react-select/node_modules/@radix-ui/react-slot/dist/index.mjs.js.map +1 -1
  94. package/dist/node_modules/@radix-ui/react-separator/dist/index.mjs.js +43 -26
  95. package/dist/node_modules/@radix-ui/react-separator/dist/index.mjs.js.map +1 -1
  96. package/dist/node_modules/@radix-ui/react-slot/dist/index.mjs.js +1 -1
  97. package/dist/node_modules/@radix-ui/react-slot/node_modules/@radix-ui/react-compose-refs/dist/index.mjs.js +37 -0
  98. package/dist/node_modules/@radix-ui/react-slot/node_modules/@radix-ui/react-compose-refs/dist/index.mjs.js.map +1 -0
  99. package/dist/node_modules/@radix-ui/react-switch/dist/index.mjs.js +112 -140
  100. package/dist/node_modules/@radix-ui/react-switch/dist/index.mjs.js.map +1 -1
  101. package/dist/node_modules/@radix-ui/react-tabs/dist/index.mjs.js +141 -173
  102. package/dist/node_modules/@radix-ui/react-tabs/dist/index.mjs.js.map +1 -1
  103. package/dist/node_modules/@radix-ui/react-toggle/dist/index.mjs.js +25 -34
  104. package/dist/node_modules/@radix-ui/react-toggle/dist/index.mjs.js.map +1 -1
  105. package/dist/node_modules/@radix-ui/react-toggle-group/dist/index.mjs.js +145 -154
  106. package/dist/node_modules/@radix-ui/react-toggle-group/dist/index.mjs.js.map +1 -1
  107. package/dist/node_modules/@radix-ui/react-tooltip/dist/index.mjs.js +491 -462
  108. package/dist/node_modules/@radix-ui/react-tooltip/dist/index.mjs.js.map +1 -1
  109. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-slot/dist/index.mjs.js +78 -13
  110. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-slot/dist/index.mjs.js.map +1 -1
  111. package/dist/node_modules/@radix-ui/react-use-callback-ref/dist/index.mjs.js +15 -9
  112. package/dist/node_modules/@radix-ui/react-use-callback-ref/dist/index.mjs.js.map +1 -1
  113. package/dist/node_modules/@radix-ui/react-use-controllable-state/dist/index.mjs.js +43 -66
  114. package/dist/node_modules/@radix-ui/react-use-controllable-state/dist/index.mjs.js.map +1 -1
  115. package/dist/node_modules/@radix-ui/react-use-escape-keydown/dist/index.mjs.js +18 -15
  116. package/dist/node_modules/@radix-ui/react-use-escape-keydown/dist/index.mjs.js.map +1 -1
  117. package/dist/node_modules/@radix-ui/react-use-layout-effect/dist/index.mjs.js +9 -5
  118. package/dist/node_modules/@radix-ui/react-use-layout-effect/dist/index.mjs.js.map +1 -1
  119. package/dist/node_modules/@radix-ui/react-use-previous/dist/index.mjs.js +18 -12
  120. package/dist/node_modules/@radix-ui/react-use-previous/dist/index.mjs.js.map +1 -1
  121. package/dist/node_modules/@radix-ui/react-use-size/dist/index.mjs.js +48 -37
  122. package/dist/node_modules/@radix-ui/react-use-size/dist/index.mjs.js.map +1 -1
  123. package/dist/node_modules/@radix-ui/react-visually-hidden/dist/index.mjs.js +23 -32
  124. package/dist/node_modules/@radix-ui/react-visually-hidden/dist/index.mjs.js.map +1 -1
  125. package/dist/node_modules/aria-hidden/dist/es2015/index.js +16 -22
  126. package/dist/node_modules/aria-hidden/dist/es2015/index.js.map +1 -1
  127. package/dist/node_modules/class-variance-authority/dist/index.mjs.js +9 -7
  128. package/dist/node_modules/class-variance-authority/dist/index.mjs.js.map +1 -1
  129. package/dist/node_modules/class-variance-authority/node_modules/clsx/dist/clsx.mjs.js +4 -0
  130. package/dist/node_modules/class-variance-authority/node_modules/clsx/dist/clsx.mjs.js.map +1 -0
  131. package/dist/node_modules/cmdk/dist/index.mjs.js +4 -8
  132. package/dist/node_modules/cmdk/dist/index.mjs.js.map +1 -1
  133. package/dist/node_modules/cmdk/node_modules/@radix-ui/primitive/dist/index.module.js +9 -0
  134. package/dist/node_modules/cmdk/node_modules/@radix-ui/primitive/dist/index.module.js.map +1 -0
  135. package/dist/node_modules/cmdk/node_modules/@radix-ui/react-compose-refs/dist/index.module.js +27 -0
  136. package/dist/node_modules/cmdk/node_modules/@radix-ui/react-compose-refs/dist/index.module.js.map +1 -0
  137. package/dist/node_modules/cmdk/node_modules/@radix-ui/react-context/dist/index.module.js +101 -0
  138. package/dist/node_modules/cmdk/node_modules/@radix-ui/react-context/dist/index.module.js.map +1 -0
  139. package/dist/node_modules/cmdk/node_modules/@radix-ui/react-dialog/dist/index.module.js +214 -0
  140. package/dist/node_modules/cmdk/node_modules/@radix-ui/react-dialog/dist/index.module.js.map +1 -0
  141. package/dist/node_modules/cmdk/node_modules/@radix-ui/react-dismissable-layer/dist/index.module.js +233 -0
  142. package/dist/node_modules/cmdk/node_modules/@radix-ui/react-dismissable-layer/dist/index.module.js.map +1 -0
  143. package/dist/node_modules/cmdk/node_modules/@radix-ui/react-focus-guards/dist/index.module.js +30 -0
  144. package/dist/node_modules/cmdk/node_modules/@radix-ui/react-focus-guards/dist/index.module.js.map +1 -0
  145. package/dist/node_modules/cmdk/node_modules/@radix-ui/react-focus-scope/dist/index.module.js +252 -0
  146. package/dist/node_modules/cmdk/node_modules/@radix-ui/react-focus-scope/dist/index.module.js.map +1 -0
  147. package/dist/node_modules/cmdk/node_modules/@radix-ui/react-id/dist/index.module.js +19 -0
  148. package/dist/node_modules/cmdk/node_modules/@radix-ui/react-id/dist/index.module.js.map +1 -0
  149. package/dist/node_modules/cmdk/node_modules/@radix-ui/react-portal/dist/index.module.js +15 -0
  150. package/dist/node_modules/cmdk/node_modules/@radix-ui/react-portal/dist/index.module.js.map +1 -0
  151. package/dist/node_modules/cmdk/node_modules/@radix-ui/react-presence/dist/index.module.js +131 -0
  152. package/dist/node_modules/cmdk/node_modules/@radix-ui/react-presence/dist/index.module.js.map +1 -0
  153. package/dist/node_modules/cmdk/node_modules/@radix-ui/react-primitive/dist/index.module.js +85 -0
  154. package/dist/node_modules/cmdk/node_modules/@radix-ui/react-primitive/dist/index.module.js.map +1 -0
  155. package/dist/node_modules/cmdk/node_modules/@radix-ui/react-slot/dist/index.module.js +79 -0
  156. package/dist/node_modules/cmdk/node_modules/@radix-ui/react-slot/dist/index.module.js.map +1 -0
  157. package/dist/node_modules/cmdk/node_modules/@radix-ui/react-use-callback-ref/dist/index.module.js +19 -0
  158. package/dist/node_modules/cmdk/node_modules/@radix-ui/react-use-callback-ref/dist/index.module.js.map +1 -0
  159. package/dist/node_modules/cmdk/node_modules/@radix-ui/react-use-controllable-state/dist/index.module.js +48 -0
  160. package/dist/node_modules/cmdk/node_modules/@radix-ui/react-use-controllable-state/dist/index.module.js.map +1 -0
  161. package/dist/node_modules/cmdk/node_modules/@radix-ui/react-use-escape-keydown/dist/index.module.js +21 -0
  162. package/dist/node_modules/cmdk/node_modules/@radix-ui/react-use-escape-keydown/dist/index.module.js.map +1 -0
  163. package/dist/node_modules/cmdk/node_modules/@radix-ui/react-use-layout-effect/dist/index.module.js +12 -0
  164. package/dist/node_modules/cmdk/node_modules/@radix-ui/react-use-layout-effect/dist/index.module.js.map +1 -0
  165. package/dist/node_modules/cmdk/node_modules/react-remove-scroll/dist/es2015/Combination.js +10 -0
  166. package/dist/node_modules/cmdk/node_modules/react-remove-scroll/dist/es2015/Combination.js.map +1 -0
  167. package/dist/node_modules/cmdk/node_modules/react-remove-scroll/dist/es2015/SideEffect.js +146 -0
  168. package/dist/node_modules/cmdk/node_modules/react-remove-scroll/dist/es2015/SideEffect.js.map +1 -0
  169. package/dist/node_modules/cmdk/node_modules/react-remove-scroll/dist/es2015/UI.js +39 -0
  170. package/dist/node_modules/cmdk/node_modules/react-remove-scroll/dist/es2015/UI.js.map +1 -0
  171. package/dist/node_modules/cmdk/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js +22 -0
  172. package/dist/node_modules/cmdk/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js.map +1 -0
  173. package/dist/node_modules/cmdk/node_modules/react-remove-scroll/dist/es2015/handleScroll.js +97 -0
  174. package/dist/node_modules/cmdk/node_modules/react-remove-scroll/dist/es2015/handleScroll.js.map +1 -0
  175. package/dist/node_modules/cmdk/node_modules/react-remove-scroll/dist/es2015/medium.js +9 -0
  176. package/dist/node_modules/cmdk/node_modules/react-remove-scroll/dist/es2015/medium.js.map +1 -0
  177. package/dist/node_modules/cmdk/node_modules/react-remove-scroll/dist/es2015/sidecar.js +10 -0
  178. package/dist/node_modules/cmdk/node_modules/react-remove-scroll/dist/es2015/sidecar.js.map +1 -0
  179. package/dist/node_modules/command-score/index.js +138 -0
  180. package/dist/node_modules/command-score/index.js.map +1 -0
  181. package/dist/node_modules/input-otp/dist/index.mjs.js +1 -1
  182. package/dist/node_modules/input-otp/dist/index.mjs.js.map +1 -1
  183. package/dist/node_modules/react-remove-scroll/dist/es2015/SideEffect.js +5 -23
  184. package/dist/node_modules/react-remove-scroll/dist/es2015/SideEffect.js.map +1 -1
  185. package/dist/node_modules/react-remove-scroll/dist/es2015/UI.js +2 -2
  186. package/dist/node_modules/react-remove-scroll/dist/es2015/UI.js.map +1 -1
  187. package/dist/node_modules/react-remove-scroll/dist/es2015/handleScroll.js +6 -18
  188. package/dist/node_modules/react-remove-scroll/dist/es2015/handleScroll.js.map +1 -1
  189. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/component.js +5 -25
  190. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/component.js.map +1 -1
  191. package/dist/node_modules/sonner/dist/index.mjs.js +26 -46
  192. package/dist/node_modules/sonner/dist/index.mjs.js.map +1 -1
  193. package/dist/node_modules/tailwind-merge/dist/bundle-mjs.mjs.js +1 -1
  194. package/dist/node_modules/tailwind-merge/dist/bundle-mjs.mjs.js.map +1 -1
  195. package/dist/node_modules/use-callback-ref/dist/es2015/useMergeRef.js +1 -27
  196. package/dist/node_modules/use-callback-ref/dist/es2015/useMergeRef.js.map +1 -1
  197. package/dist/src/index.js +1 -1
  198. package/dist/src/shadcn/ui/accordion.js +7 -7
  199. package/dist/src/shadcn/ui/avatar.js +7 -7
  200. package/dist/src/shadcn/ui/checkbox.js +3 -3
  201. package/dist/src/shadcn/ui/command.js +15 -15
  202. package/dist/src/shadcn/ui/dialog.js +14 -14
  203. package/dist/src/shadcn/ui/dropdown-menu.js +23 -23
  204. package/dist/src/shadcn/ui/hover-card.js +5 -5
  205. package/dist/src/shadcn/ui/label.js +3 -3
  206. package/dist/src/shadcn/ui/navigation-menu.js +15 -15
  207. package/dist/src/shadcn/ui/navigation-menu.js.map +1 -1
  208. package/dist/src/shadcn/ui/popover.js +6 -32
  209. package/dist/src/shadcn/ui/popover.js.map +1 -1
  210. package/dist/src/shadcn/ui/progress.js +3 -3
  211. package/dist/src/shadcn/ui/radio-group.js +5 -5
  212. package/dist/src/shadcn/ui/select.js +19 -19
  213. package/dist/src/shadcn/ui/separator.js +3 -3
  214. package/dist/src/shadcn/ui/sheet.js +14 -14
  215. package/dist/src/shadcn/ui/switch.js +3 -3
  216. package/dist/src/shadcn/ui/tabs.js +8 -8
  217. package/dist/src/shadcn/ui/toggle-group.js +5 -5
  218. package/dist/src/shadcn/ui/toggle.js +3 -3
  219. package/dist/src/shadcn/ui/tooltip.js +7 -7
  220. package/dist/src/tailwindTheme.js +12 -12
  221. package/dist/src/tailwindTheme.js.map +1 -1
  222. package/dist/tailwind-manifest.js +10979 -9483
  223. package/dist/types/src/shadcn/ui/command.d.ts +8 -44
  224. package/dist/types/src/shadcn/ui/popover.d.ts +4 -8
  225. package/dist/types/src/shadcn/ui/sheet.d.ts +1 -1
  226. package/dist/types/src/tailwindTheme.d.ts +4 -6
  227. package/dist/types/tailwind.config.d.ts +4 -6
  228. package/package.json +32 -12
  229. package/dist/_virtual/index.js +0 -4
  230. package/dist/_virtual/index.js.map +0 -1
  231. package/dist/_virtual/use-sync-external-store-shim.development.js +0 -4
  232. package/dist/_virtual/use-sync-external-store-shim.development.js.map +0 -1
  233. package/dist/_virtual/use-sync-external-store-shim.production.js +0 -4
  234. package/dist/_virtual/use-sync-external-store-shim.production.js.map +0 -1
  235. package/dist/node_modules/@radix-ui/react-arrow/dist/index.mjs.js +0 -26
  236. package/dist/node_modules/@radix-ui/react-arrow/dist/index.mjs.js.map +0 -1
  237. package/dist/node_modules/@radix-ui/react-use-is-hydrated/dist/index.mjs.js +0 -18
  238. package/dist/node_modules/@radix-ui/react-use-is-hydrated/dist/index.mjs.js.map +0 -1
  239. package/dist/node_modules/cmdk/dist/chunk-NZJY6EH4.mjs.js +0 -4
  240. package/dist/node_modules/cmdk/dist/chunk-NZJY6EH4.mjs.js.map +0 -1
  241. package/dist/node_modules/cmdk/node_modules/@radix-ui/react-primitive/dist/index.mjs.js.map +0 -1
  242. package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js +0 -107
  243. package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js.map +0 -1
  244. package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js +0 -78
  245. package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js.map +0 -1
  246. package/dist/node_modules/use-sync-external-store/shim/index.js +0 -13
  247. package/dist/node_modules/use-sync-external-store/shim/index.js.map +0 -1
@@ -1,90 +1,82 @@
1
- import * as React from 'react';
2
- import { composeRefs } from '../../../../../react-compose-refs/dist/index.mjs.js';
3
- import { jsx } from 'react/jsx-runtime';
1
+ import _extends from '../../../../../../@babel/runtime/helpers/esm/extends.js';
2
+ import { forwardRef, Children, isValidElement, createElement, cloneElement, Fragment } from 'react';
3
+ import { composeRefs as $6ed0406888f73fc4$export$43e446d32b3d21af } from '../../../../../react-compose-refs/dist/index.mjs.js';
4
4
 
5
- // src/slot.tsx
6
- // @__NO_SIDE_EFFECTS__
7
- function createSlot(ownerName) {
8
- const SlotClone = /* @__PURE__ */ createSlotClone(ownerName);
9
- const Slot2 = React.forwardRef((props, forwardedRef) => {
10
- const { children, ...slotProps } = props;
11
- const childrenArray = React.Children.toArray(children);
12
- const slottable = childrenArray.find(isSlottable);
5
+ /* -------------------------------------------------------------------------------------------------
6
+ * Slot
7
+ * -----------------------------------------------------------------------------------------------*/ const $5e63c961fc1ce211$export$8c6ed5c666ac1360 = /*#__PURE__*/ forwardRef((props, forwardedRef)=>{
8
+ const { children: children , ...slotProps } = props;
9
+ const childrenArray = Children.toArray(children);
10
+ const slottable = childrenArray.find($5e63c961fc1ce211$var$isSlottable);
13
11
  if (slottable) {
14
- const newElement = slottable.props.children;
15
- const newChildren = childrenArray.map((child) => {
16
- if (child === slottable) {
17
- if (React.Children.count(newElement) > 1) return React.Children.only(null);
18
- return React.isValidElement(newElement) ? newElement.props.children : null;
19
- } else {
20
- return child;
21
- }
22
- });
23
- return /* @__PURE__ */ jsx(SlotClone, { ...slotProps, ref: forwardedRef, children: React.isValidElement(newElement) ? React.cloneElement(newElement, void 0, newChildren) : null });
12
+ // the new element to render is the one passed as a child of `Slottable`
13
+ const newElement = slottable.props.children;
14
+ const newChildren = childrenArray.map((child)=>{
15
+ if (child === slottable) {
16
+ // because the new element will be the one rendered, we are only interested
17
+ // in grabbing its children (`newElement.props.children`)
18
+ if (Children.count(newElement) > 1) return Children.only(null);
19
+ return /*#__PURE__*/ isValidElement(newElement) ? newElement.props.children : null;
20
+ } else return child;
21
+ });
22
+ return /*#__PURE__*/ createElement($5e63c961fc1ce211$var$SlotClone, _extends({}, slotProps, {
23
+ ref: forwardedRef
24
+ }), /*#__PURE__*/ isValidElement(newElement) ? /*#__PURE__*/ cloneElement(newElement, undefined, newChildren) : null);
24
25
  }
25
- return /* @__PURE__ */ jsx(SlotClone, { ...slotProps, ref: forwardedRef, children });
26
- });
27
- Slot2.displayName = `${ownerName}.Slot`;
28
- return Slot2;
26
+ return /*#__PURE__*/ createElement($5e63c961fc1ce211$var$SlotClone, _extends({}, slotProps, {
27
+ ref: forwardedRef
28
+ }), children);
29
+ });
30
+ $5e63c961fc1ce211$export$8c6ed5c666ac1360.displayName = 'Slot';
31
+ /* -------------------------------------------------------------------------------------------------
32
+ * SlotClone
33
+ * -----------------------------------------------------------------------------------------------*/ const $5e63c961fc1ce211$var$SlotClone = /*#__PURE__*/ forwardRef((props, forwardedRef)=>{
34
+ const { children: children , ...slotProps } = props;
35
+ if (/*#__PURE__*/ isValidElement(children)) return /*#__PURE__*/ cloneElement(children, {
36
+ ...$5e63c961fc1ce211$var$mergeProps(slotProps, children.props),
37
+ ref: forwardedRef ? $6ed0406888f73fc4$export$43e446d32b3d21af(forwardedRef, children.ref) : children.ref
38
+ });
39
+ return Children.count(children) > 1 ? Children.only(null) : null;
40
+ });
41
+ $5e63c961fc1ce211$var$SlotClone.displayName = 'SlotClone';
42
+ /* -------------------------------------------------------------------------------------------------
43
+ * Slottable
44
+ * -----------------------------------------------------------------------------------------------*/ const $5e63c961fc1ce211$export$d9f1ccf0bdb05d45 = ({ children: children })=>{
45
+ return /*#__PURE__*/ createElement(Fragment, null, children);
46
+ };
47
+ /* ---------------------------------------------------------------------------------------------- */ function $5e63c961fc1ce211$var$isSlottable(child) {
48
+ return /*#__PURE__*/ isValidElement(child) && child.type === $5e63c961fc1ce211$export$d9f1ccf0bdb05d45;
29
49
  }
30
- // @__NO_SIDE_EFFECTS__
31
- function createSlotClone(ownerName) {
32
- const SlotClone = React.forwardRef((props, forwardedRef) => {
33
- const { children, ...slotProps } = props;
34
- if (React.isValidElement(children)) {
35
- const childrenRef = getElementRef(children);
36
- const props2 = mergeProps(slotProps, children.props);
37
- if (children.type !== React.Fragment) {
38
- props2.ref = forwardedRef ? composeRefs(forwardedRef, childrenRef) : childrenRef;
39
- }
40
- return React.cloneElement(children, props2);
41
- }
42
- return React.Children.count(children) > 1 ? React.Children.only(null) : null;
43
- });
44
- SlotClone.displayName = `${ownerName}.SlotClone`;
45
- return SlotClone;
46
- }
47
- var SLOTTABLE_IDENTIFIER = Symbol("radix.slottable");
48
- function isSlottable(child) {
49
- return React.isValidElement(child) && typeof child.type === "function" && "__radixId" in child.type && child.type.__radixId === SLOTTABLE_IDENTIFIER;
50
- }
51
- function mergeProps(slotProps, childProps) {
52
- const overrideProps = { ...childProps };
53
- for (const propName in childProps) {
54
- const slotPropValue = slotProps[propName];
55
- const childPropValue = childProps[propName];
56
- const isHandler = /^on[A-Z]/.test(propName);
57
- if (isHandler) {
58
- if (slotPropValue && childPropValue) {
59
- overrideProps[propName] = (...args) => {
60
- const result = childPropValue(...args);
61
- slotPropValue(...args);
62
- return result;
50
+ function $5e63c961fc1ce211$var$mergeProps(slotProps, childProps) {
51
+ // all child props should override
52
+ const overrideProps = {
53
+ ...childProps
54
+ };
55
+ for(const propName in childProps){
56
+ const slotPropValue = slotProps[propName];
57
+ const childPropValue = childProps[propName];
58
+ const isHandler = /^on[A-Z]/.test(propName);
59
+ if (isHandler) {
60
+ // if the handler exists on both, we compose them
61
+ if (slotPropValue && childPropValue) overrideProps[propName] = (...args)=>{
62
+ childPropValue(...args);
63
+ slotPropValue(...args);
64
+ };
65
+ else if (slotPropValue) overrideProps[propName] = slotPropValue;
66
+ } else if (propName === 'style') overrideProps[propName] = {
67
+ ...slotPropValue,
68
+ ...childPropValue
63
69
  };
64
- } else if (slotPropValue) {
65
- overrideProps[propName] = slotPropValue;
66
- }
67
- } else if (propName === "style") {
68
- overrideProps[propName] = { ...slotPropValue, ...childPropValue };
69
- } else if (propName === "className") {
70
- overrideProps[propName] = [slotPropValue, childPropValue].filter(Boolean).join(" ");
70
+ else if (propName === 'className') overrideProps[propName] = [
71
+ slotPropValue,
72
+ childPropValue
73
+ ].filter(Boolean).join(' ');
71
74
  }
72
- }
73
- return { ...slotProps, ...overrideProps };
74
- }
75
- function getElementRef(element) {
76
- let getter = Object.getOwnPropertyDescriptor(element.props, "ref")?.get;
77
- let mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
78
- if (mayWarn) {
79
- return element.ref;
80
- }
81
- getter = Object.getOwnPropertyDescriptor(element, "ref")?.get;
82
- mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
83
- if (mayWarn) {
84
- return element.props.ref;
85
- }
86
- return element.props.ref || element.ref;
75
+ return {
76
+ ...slotProps,
77
+ ...overrideProps
78
+ };
87
79
  }
88
80
 
89
- export { createSlot };
81
+ export { $5e63c961fc1ce211$export$8c6ed5c666ac1360 as Slot, $5e63c961fc1ce211$export$d9f1ccf0bdb05d45 as Slottable };
90
82
  //# 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":["// 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":[],"mappings":";;;;AAAA;AAIA;AACA,SAAS,UAAU,CAAC,SAAS,EAAE;AAC/B,EAAE,MAAM,SAAS,mBAAmB,eAAe,CAAC,SAAS,CAAC,CAAC;AAC/D,EAAE,MAAM,KAAK,GAAG,KAAK,CAAC,UAAU,CAAC,CAAC,KAAK,EAAE,YAAY,KAAK;AAC1D,IAAI,MAAM,EAAE,QAAQ,EAAE,GAAG,SAAS,EAAE,GAAG,KAAK,CAAC;AAC7C,IAAI,MAAM,aAAa,GAAG,KAAK,CAAC,QAAQ,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;AAC3D,IAAI,MAAM,SAAS,GAAG,aAAa,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;AACtD,IAAI,IAAI,SAAS,EAAE;AACnB,MAAM,MAAM,UAAU,GAAG,SAAS,CAAC,KAAK,CAAC,QAAQ,CAAC;AAClD,MAAM,MAAM,WAAW,GAAG,aAAa,CAAC,GAAG,CAAC,CAAC,KAAK,KAAK;AACvD,QAAQ,IAAI,KAAK,KAAK,SAAS,EAAE;AACjC,UAAU,IAAI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,CAAC,EAAE,GAAG,CAAC;AAChE,EAAE,OAAO,GAAG,MAAM,IAAI,gBAAgB,IAAI,MAAM,IAAI,MAAM,CAAC,cAAc,CAAC;AAC1E,EAAE,IAAI,OAAO,EAAE;AACf,IAAI,OAAO,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC;AAC7B,GAAG;AACH,EAAE,OAAO,OAAO,CAAC,KAAK,CAAC,GAAG,IAAI,OAAO,CAAC,GAAG,CAAC;AAC1C;;;;"}
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":["$9IrjX$forwardRef","$9IrjX$Children","$9IrjX$isValidElement","$9IrjX$createElement","$9IrjX$babelruntimehelpersesmextends","$9IrjX$cloneElement","$9IrjX$composeRefs","$9IrjX$Fragment"],"mappings":";;;;AAOA;AACA;AACA,qGAA0G,MAAC,yCAAyC,iBAAiBA,UAAiB,CAAC,CAAC,KAAK,EAAE,YAAY,GAAG;AAC9M,IAAI,MAAM,EAAE,QAAQ,EAAE,QAAQ,GAAG,GAAG,SAAS,EAAE,GAAG,KAAK,CAAC;AACxD,IAAI,MAAM,aAAa,GAAGC,QAAe,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;AAC5D,IAAI,MAAM,SAAS,GAAG,aAAa,CAAC,IAAI,CAAC,iCAAiC,CAAC,CAAC;AAC5E,IAAI,IAAI,SAAS,EAAE;AACnB;AACA,QAAQ,MAAM,UAAU,GAAG,SAAS,CAAC,KAAK,CAAC,QAAQ,CAAC;AACpD,QAAQ,MAAM,WAAW,GAAG,aAAa,CAAC,GAAG,CAAC,CAAC,KAAK,GAAG;AACvD,YAAY,IAAI,KAAK,KAAK,SAAS,EAAE;AACrC;AACA;AACA,gBAAgB,IAAIA,QAAe,CAAC,KAAK,CAAC,UAAU,CAAC,GAAG,CAAC,EA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OAAO,EAAE,aAAa,CAAC,QAAQ,CAAC,GAAG;AACnE,YAAY,GAAG,aAAa;AAC5B,YAAY,GAAG,cAAc;AAC7B,SAAS,CAAC;AACV,aAAa,IAAI,QAAQ,KAAK,WAAW,EAAE,aAAa,CAAC,QAAQ,CAAC,GAAG;AACrE,YAAY,aAAa;AACzB,YAAY,cAAc;AAC1B,SAAS,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AACpC,KAAK;AACL,IAAI,OAAO;AACX,QAAQ,GAAG,SAAS;AACpB,QAAQ,GAAG,aAAa;AACxB,KAAK,CAAC;AACN;;;;"}
@@ -1,40 +1,27 @@
1
- import * as React from 'react';
1
+ import { useCallback } from 'react';
2
2
 
3
- // packages/react/compose-refs/src/compose-refs.tsx
4
- function setRef(ref, value) {
5
- if (typeof ref === "function") {
6
- return ref(value);
7
- } else if (ref !== null && ref !== void 0) {
8
- ref.current = value;
9
- }
3
+ /**
4
+ * Set a given ref to a given value
5
+ * This utility takes care of different types of refs: callback refs and RefObject(s)
6
+ */ function $6ed0406888f73fc4$var$setRef(ref, value) {
7
+ if (typeof ref === 'function') ref(value);
8
+ else if (ref !== null && ref !== undefined) ref.current = value;
10
9
  }
11
- function composeRefs(...refs) {
12
- return (node) => {
13
- let hasCleanup = false;
14
- const cleanups = refs.map((ref) => {
15
- const cleanup = setRef(ref, node);
16
- if (!hasCleanup && typeof cleanup == "function") {
17
- hasCleanup = true;
18
- }
19
- return cleanup;
20
- });
21
- if (hasCleanup) {
22
- return () => {
23
- for (let i = 0; i < cleanups.length; i++) {
24
- const cleanup = cleanups[i];
25
- if (typeof cleanup == "function") {
26
- cleanup();
27
- } else {
28
- setRef(refs[i], null);
29
- }
30
- }
31
- };
32
- }
33
- };
10
+ /**
11
+ * A utility to compose multiple refs together
12
+ * Accepts callback refs and RefObject(s)
13
+ */ function $6ed0406888f73fc4$export$43e446d32b3d21af(...refs) {
14
+ return (node)=>refs.forEach((ref)=>$6ed0406888f73fc4$var$setRef(ref, node)
15
+ )
16
+ ;
34
17
  }
35
- function useComposedRefs(...refs) {
36
- return React.useCallback(composeRefs(...refs), refs);
18
+ /**
19
+ * A custom hook that composes multiple refs
20
+ * Accepts callback refs and RefObject(s)
21
+ */ function $6ed0406888f73fc4$export$c7b2cbe3552a0d05(...refs) {
22
+ // eslint-disable-next-line react-hooks/exhaustive-deps
23
+ return useCallback($6ed0406888f73fc4$export$43e446d32b3d21af(...refs), refs);
37
24
  }
38
25
 
39
- export { composeRefs, useComposedRefs };
26
+ export { $6ed0406888f73fc4$export$43e446d32b3d21af as composeRefs, $6ed0406888f73fc4$export$c7b2cbe3552a0d05 as useComposedRefs };
40
27
  //# 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":["// 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":[],"mappings":";;AAAA;AAEA,SAAS,MAAM,CAAC,GAAG,EAAE,KAAK,EAAE;AAC5B,EAAE,IAAI,OAAO,GAAG,KAAK,UAAU,EAAE;AACjC,IAAI,O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;;;;"}
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":["$3vqmr$useCallback"],"mappings":";;AAGA;AACA;AACA;AACA,IAAI,SAAS,4BAA4B,CAAC,GAAG,EAAE,KAAK,EAAE;AACtD,IAAI,IAAI,OAAO,GAAG,KAAK,UAAU,EAAE,GAAG,CAAC,KAAK,CAAC,CAAC;AAC9C,SAAS,IAAI,GAAG,KAAK,IAAI,IAAI,GAAG,KAAK,SAAS,EAAE,GAAG,CAAC,OAAO,GAAG,KAAK,CAAC;AACpE,CAAC;AACD;AACA;AACA;AACA,IAAI,SAAS,yCAAyC,CAAC,GAAG,IAAI,EAAE;AAChE,IAAI,OAAO,CAAC,IAAI,GAAG,IAAI,CAAC,OAAO,CAAC,CAAC,GAAG,GAAG,4BAA4B,CAAC,GAAG,EAAE,IAAI,CAAC;AAC9E,SAAS;AACT,KAAK;AACL,CAAC;AACD;AACA;AACA;AACA,IAAI,SAAS,yCAAyC,CAAC,GAAG,IAAI,EAAE;AAChE;AACA,IAAI,OAAOA,WAAkB,CAAC,yCAAyC,CAAC,GAAG,IAAI,CAAC,EAAE,IAAI,CAAC,CAAC;AACxF;;;;"}
@@ -1,80 +1,101 @@
1
- import * as React from 'react';
2
- import { jsx } from 'react/jsx-runtime';
1
+ import { createContext, useMemo, createElement, useContext } from 'react';
3
2
 
4
- // packages/react/context/src/create-context.tsx
5
- function createContext2(rootComponentName, defaultContext) {
6
- const Context = React.createContext(defaultContext);
7
- const Provider = (props) => {
8
- const { children, ...context } = props;
9
- const value = React.useMemo(() => context, Object.values(context));
10
- return /* @__PURE__ */ jsx(Context.Provider, { value, children });
11
- };
12
- Provider.displayName = rootComponentName + "Provider";
13
- function useContext2(consumerName) {
14
- const context = React.useContext(Context);
15
- if (context) return context;
16
- if (defaultContext !== void 0) return defaultContext;
17
- throw new Error(`\`${consumerName}\` must be used within \`${rootComponentName}\``);
18
- }
19
- return [Provider, useContext2];
20
- }
21
- function createContextScope(scopeName, createContextScopeDeps = []) {
22
- let defaultContexts = [];
23
- function createContext3(rootComponentName, defaultContext) {
24
- const BaseContext = React.createContext(defaultContext);
25
- const index = defaultContexts.length;
26
- defaultContexts = [...defaultContexts, defaultContext];
27
- const Provider = (props) => {
28
- const { scope, children, ...context } = props;
29
- const Context = scope?.[scopeName]?.[index] || BaseContext;
30
- const value = React.useMemo(() => context, Object.values(context));
31
- return /* @__PURE__ */ jsx(Context.Provider, { value, children });
32
- };
33
- Provider.displayName = rootComponentName + "Provider";
34
- function useContext2(consumerName, scope) {
35
- const Context = scope?.[scopeName]?.[index] || BaseContext;
36
- const context = React.useContext(Context);
37
- if (context) return context;
38
- if (defaultContext !== void 0) return defaultContext;
39
- throw new Error(`\`${consumerName}\` must be used within \`${rootComponentName}\``);
3
+ /* -------------------------------------------------------------------------------------------------
4
+ * createContextScope
5
+ * -----------------------------------------------------------------------------------------------*/ function $c512c27ab02ef895$export$50c7b4e9d9f19c1(scopeName, createContextScopeDeps = []) {
6
+ let defaultContexts = [];
7
+ /* -----------------------------------------------------------------------------------------------
8
+ * createContext
9
+ * ---------------------------------------------------------------------------------------------*/ function $c512c27ab02ef895$export$fd42f52fd3ae1109(rootComponentName, defaultContext) {
10
+ const BaseContext = /*#__PURE__*/ createContext(defaultContext);
11
+ const index = defaultContexts.length;
12
+ defaultContexts = [
13
+ ...defaultContexts,
14
+ defaultContext
15
+ ];
16
+ function Provider(props) {
17
+ const { scope: scope , children: children , ...context } = props;
18
+ const Context = (scope === null || scope === void 0 ? void 0 : scope[scopeName][index]) || BaseContext; // Only re-memoize when prop values change
19
+ // eslint-disable-next-line react-hooks/exhaustive-deps
20
+ const value = useMemo(()=>context
21
+ , Object.values(context));
22
+ return /*#__PURE__*/ createElement(Context.Provider, {
23
+ value: value
24
+ }, children);
25
+ }
26
+ function useContext$1(consumerName, scope) {
27
+ const Context = (scope === null || scope === void 0 ? void 0 : scope[scopeName][index]) || BaseContext;
28
+ const context = useContext(Context);
29
+ if (context) return context;
30
+ if (defaultContext !== undefined) return defaultContext; // if a defaultContext wasn't specified, it's a required context.
31
+ throw new Error(`\`${consumerName}\` must be used within \`${rootComponentName}\``);
32
+ }
33
+ Provider.displayName = rootComponentName + 'Provider';
34
+ return [
35
+ Provider,
36
+ useContext$1
37
+ ];
40
38
  }
41
- return [Provider, useContext2];
42
- }
43
- const createScope = () => {
44
- const scopeContexts = defaultContexts.map((defaultContext) => {
45
- return React.createContext(defaultContext);
46
- });
47
- return function useScope(scope) {
48
- const contexts = scope?.[scopeName] || scopeContexts;
49
- return React.useMemo(
50
- () => ({ [`__scope${scopeName}`]: { ...scope, [scopeName]: contexts } }),
51
- [scope, contexts]
52
- );
39
+ /* -----------------------------------------------------------------------------------------------
40
+ * createScope
41
+ * ---------------------------------------------------------------------------------------------*/ const createScope = ()=>{
42
+ const scopeContexts = defaultContexts.map((defaultContext)=>{
43
+ return /*#__PURE__*/ createContext(defaultContext);
44
+ });
45
+ return function useScope(scope) {
46
+ const contexts = (scope === null || scope === void 0 ? void 0 : scope[scopeName]) || scopeContexts;
47
+ return useMemo(()=>({
48
+ [`__scope${scopeName}`]: {
49
+ ...scope,
50
+ [scopeName]: contexts
51
+ }
52
+ })
53
+ , [
54
+ scope,
55
+ contexts
56
+ ]);
57
+ };
53
58
  };
54
- };
55
- createScope.scopeName = scopeName;
56
- return [createContext3, composeContextScopes(createScope, ...createContextScopeDeps)];
59
+ createScope.scopeName = scopeName;
60
+ return [
61
+ $c512c27ab02ef895$export$fd42f52fd3ae1109,
62
+ $c512c27ab02ef895$var$composeContextScopes(createScope, ...createContextScopeDeps)
63
+ ];
57
64
  }
58
- function composeContextScopes(...scopes) {
59
- const baseScope = scopes[0];
60
- if (scopes.length === 1) return baseScope;
61
- const createScope = () => {
62
- const scopeHooks = scopes.map((createScope2) => ({
63
- useScope: createScope2(),
64
- scopeName: createScope2.scopeName
65
- }));
66
- return function useComposedScopes(overrideScopes) {
67
- const nextScopes = scopeHooks.reduce((nextScopes2, { useScope, scopeName }) => {
68
- const scopeProps = useScope(overrideScopes);
69
- const currentScope = scopeProps[`__scope${scopeName}`];
70
- return { ...nextScopes2, ...currentScope };
71
- }, {});
72
- return React.useMemo(() => ({ [`__scope${baseScope.scopeName}`]: nextScopes }), [nextScopes]);
65
+ /* -------------------------------------------------------------------------------------------------
66
+ * composeContextScopes
67
+ * -----------------------------------------------------------------------------------------------*/ function $c512c27ab02ef895$var$composeContextScopes(...scopes) {
68
+ const baseScope = scopes[0];
69
+ if (scopes.length === 1) return baseScope;
70
+ const createScope1 = ()=>{
71
+ const scopeHooks = scopes.map((createScope)=>({
72
+ useScope: createScope(),
73
+ scopeName: createScope.scopeName
74
+ })
75
+ );
76
+ return function useComposedScopes(overrideScopes) {
77
+ const nextScopes1 = scopeHooks.reduce((nextScopes, { useScope: useScope , scopeName: scopeName })=>{
78
+ // We are calling a hook inside a callback which React warns against to avoid inconsistent
79
+ // renders, however, scoping doesn't have render side effects so we ignore the rule.
80
+ // eslint-disable-next-line react-hooks/rules-of-hooks
81
+ const scopeProps = useScope(overrideScopes);
82
+ const currentScope = scopeProps[`__scope${scopeName}`];
83
+ return {
84
+ ...nextScopes,
85
+ ...currentScope
86
+ };
87
+ }, {});
88
+ return useMemo(()=>({
89
+ [`__scope${baseScope.scopeName}`]: nextScopes1
90
+ })
91
+ , [
92
+ nextScopes1
93
+ ]);
94
+ };
73
95
  };
74
- };
75
- createScope.scopeName = baseScope.scopeName;
76
- return createScope;
96
+ createScope1.scopeName = baseScope.scopeName;
97
+ return createScope1;
77
98
  }
78
99
 
79
- export { createContext2 as createContext, createContextScope };
100
+ export { $c512c27ab02ef895$export$50c7b4e9d9f19c1 as createContextScope };
80
101
  //# 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":["// 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":[],"mappings":";;;AAAA;AAGA,SAAS,cAAc,CAAC,iBAAiB,EAAE,cAAc,EAAE;AAC3D,EAAE,MAAM,OAAO,GAAG,KAAK,CAAC,aAAa,CAAC,cAAc,CAAC,CAAC;AACtD,EAAE,MAAM,QAAQ,GAAG,CAAC,KAAK,KAAK;AAC9B,IAAI,MAAM,EAAE,QAAQ,EAAE,GAAG,OAAO,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AC;AACnD,OAAO,EAAE,EAAE,CAAC,CAAC;AACb,MAAM,OAAO,KAAK,CAAC,OAAO,CAAC,OAAO,EAAE,CAAC,CAAC,OAAO,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC,GAAG,UAAU,EAAE,CAAC,EAAE,CAAC,UAAU,CAAC,CAAC,CAAC;AACpG,KAAK,CAAC;AACN,GAAG,CAAC;AACJ,EAAE,WAAW,CAAC,SAAS,GAAG,SAAS,CAAC,SAAS,CAAC;AAC9C,EAAE,OAAO,WAAW,CAAC;AACrB;;;;"}
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":["$3bkAK$createContext","$3bkAK$useMemo","$3bkAK$createElement","useContext","$3bkAK$useContext"],"mappings":";;AA0BA;AACA;AACA,qGAAqG,SAAS,wCAAwC,CAAC,SAAS,EAAE,sBAAsB,GAAG,EAAE,EAAE;AAC/L,IAAI,IAAI,eAAe,GAAG,EAAE,CAAC;AAC7B;AACA;AACA,qGAAqG,SAAS,yCAAyC,CAAC,iBAAiB,EAAE,cAAc,EAAE;AAC3L,QAAQ,MAAM,WAAW,iBAAiBA,aAAoB,CAAC,cAAc,CAAC,CAAC;AAC/E,QAAQ,MAAM,KAAK,GAAG,eAAe,CAAC,MAAM,CAAC;AAC7C,QAAQ,eAAe,GAAG;AAC1B,YAAY,GAAG,eAAe;AAC9B,YAAY,cAAc;AAC1B,SAAS,CAAC;AACV,QAAQ,SAAS,QAAQ,CAAC,KAAK,EAAE;AACjC,YAAY,MAAM,EAAE,KAAK,EAAE,KAAK,GAAG,QAAQ,EAAE,QAAQ,GAAG,GAAG,OAAO,EAAE,GAAG,KAAK,CAAC;AAC7E,YAAY,MAAM,OAAO,GAAG,CAAC,K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