@blimu/react 0.7.0 → 1.1.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 (452) hide show
  1. package/dist/_virtual/index.cjs +5 -1
  2. package/dist/_virtual/index.cjs.map +1 -1
  3. package/dist/_virtual/index.js +3 -3
  4. package/dist/_virtual/index2.cjs +4 -1
  5. package/dist/_virtual/index2.cjs.map +1 -1
  6. package/dist/_virtual/index2.js +2 -2
  7. package/dist/_virtual/use-sync-external-store-shim.development.cjs +4 -1
  8. package/dist/_virtual/use-sync-external-store-shim.development.cjs.map +1 -1
  9. package/dist/_virtual/use-sync-external-store-shim.development.js +2 -2
  10. package/dist/_virtual/use-sync-external-store-shim.production.cjs +4 -1
  11. package/dist/_virtual/use-sync-external-store-shim.production.cjs.map +1 -1
  12. package/dist/_virtual/use-sync-external-store-shim.production.js +2 -2
  13. package/dist/client/auth.service.cjs +249 -1
  14. package/dist/client/auth.service.cjs.map +1 -1
  15. package/dist/client/auth.service.d.ts.map +1 -1
  16. package/dist/client/auth.service.js +195 -95
  17. package/dist/client/auth.service.js.map +1 -1
  18. package/dist/client/external-store.cjs +26 -1
  19. package/dist/client/external-store.cjs.map +1 -1
  20. package/dist/client/external-store.js +22 -8
  21. package/dist/client/external-store.js.map +1 -1
  22. package/dist/client/runtime-client.cjs +136 -1
  23. package/dist/client/runtime-client.cjs.map +1 -1
  24. package/dist/client/runtime-client.js +86 -52
  25. package/dist/client/runtime-client.js.map +1 -1
  26. package/dist/components/index.cjs +13 -0
  27. package/dist/components/index.cjs.map +1 -0
  28. package/dist/components/index.js +13 -0
  29. package/dist/components/index.js.map +1 -0
  30. package/dist/components/members-list.cjs +132 -1
  31. package/dist/components/members-list.cjs.map +1 -1
  32. package/dist/components/members-list.js +69 -64
  33. package/dist/components/members-list.js.map +1 -1
  34. package/dist/components/redirect-to-sign-in.cjs +34 -1
  35. package/dist/components/redirect-to-sign-in.cjs.map +1 -1
  36. package/dist/components/redirect-to-sign-in.js +28 -20
  37. package/dist/components/redirect-to-sign-in.js.map +1 -1
  38. package/dist/components/sign-in-button.cjs +36 -1
  39. package/dist/components/sign-in-button.cjs.map +1 -1
  40. package/dist/components/sign-in-button.js +25 -21
  41. package/dist/components/sign-in-button.js.map +1 -1
  42. package/dist/components/ui/avatar.cjs +42 -1
  43. package/dist/components/ui/avatar.cjs.map +1 -1
  44. package/dist/components/ui/avatar.js +23 -23
  45. package/dist/components/ui/avatar.js.map +1 -1
  46. package/dist/components/ui/dropdown-menu.cjs +148 -1
  47. package/dist/components/ui/dropdown-menu.cjs.map +1 -1
  48. package/dist/components/ui/dropdown-menu.js +83 -81
  49. package/dist/components/ui/dropdown-menu.js.map +1 -1
  50. package/dist/components/user-avatar.cjs +22 -1
  51. package/dist/components/user-avatar.cjs.map +1 -1
  52. package/dist/components/user-avatar.js +16 -16
  53. package/dist/components/user-avatar.js.map +1 -1
  54. package/dist/components/user-button/styles.cjs +39 -1
  55. package/dist/components/user-button/styles.cjs.map +1 -1
  56. package/dist/components/user-button/styles.js +6 -5
  57. package/dist/components/user-button/styles.js.map +1 -1
  58. package/dist/components/user-button/user-button.cjs +98 -1
  59. package/dist/components/user-button/user-button.cjs.map +1 -1
  60. package/dist/components/user-button/user-button.js +64 -58
  61. package/dist/components/user-button/user-button.js.map +1 -1
  62. package/dist/hooks/index.cjs +14 -0
  63. package/dist/hooks/index.cjs.map +1 -0
  64. package/dist/hooks/index.d.ts +1 -0
  65. package/dist/hooks/index.d.ts.map +1 -1
  66. package/dist/hooks/index.js +14 -0
  67. package/dist/hooks/index.js.map +1 -0
  68. package/dist/hooks/use-auth.cjs +44 -1
  69. package/dist/hooks/use-auth.cjs.map +1 -1
  70. package/dist/hooks/use-auth.d.ts +13 -15
  71. package/dist/hooks/use-auth.d.ts.map +1 -1
  72. package/dist/hooks/use-auth.js +30 -26
  73. package/dist/hooks/use-auth.js.map +1 -1
  74. package/dist/hooks/use-client.cjs +9 -1
  75. package/dist/hooks/use-client.cjs.map +1 -1
  76. package/dist/hooks/use-client.d.ts +1 -1
  77. package/dist/hooks/use-client.d.ts.map +1 -1
  78. package/dist/hooks/use-client.js +6 -5
  79. package/dist/hooks/use-client.js.map +1 -1
  80. package/dist/hooks/use-members.cjs +60 -1
  81. package/dist/hooks/use-members.cjs.map +1 -1
  82. package/dist/hooks/use-members.js +53 -41
  83. package/dist/hooks/use-members.js.map +1 -1
  84. package/dist/hooks/use-store.cjs +17 -1
  85. package/dist/hooks/use-store.cjs.map +1 -1
  86. package/dist/hooks/use-store.js +7 -7
  87. package/dist/hooks/use-store.js.map +1 -1
  88. package/dist/index.cjs +37 -1
  89. package/dist/index.cjs.map +1 -1
  90. package/dist/index.d.ts +1 -1
  91. package/dist/index.d.ts.map +1 -1
  92. package/dist/index.js +35 -35
  93. package/dist/lib/utils.cjs +8 -1
  94. package/dist/lib/utils.cjs.map +1 -1
  95. package/dist/lib/utils.js +5 -5
  96. package/dist/lib/utils.js.map +1 -1
  97. package/dist/lib/variants.cjs +46 -1
  98. package/dist/lib/variants.cjs.map +1 -1
  99. package/dist/lib/variants.js +6 -5
  100. package/dist/lib/variants.js.map +1 -1
  101. package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.cjs +721 -1
  102. package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.cjs.map +1 -1
  103. package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.js +571 -377
  104. package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.js.map +1 -1
  105. package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.cjs +625 -1
  106. package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.cjs.map +1 -1
  107. package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +539 -316
  108. package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js.map +1 -1
  109. package/dist/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.cjs +313 -1
  110. package/dist/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.cjs.map +1 -1
  111. package/dist/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js +261 -172
  112. package/dist/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js.map +1 -1
  113. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.cjs +154 -1
  114. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.cjs.map +1 -1
  115. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.cjs +173 -1
  116. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.cjs.map +1 -1
  117. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +144 -107
  118. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js.map +1 -1
  119. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +111 -87
  120. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.js.map +1 -1
  121. package/dist/node_modules/@radix-ui/primitive/dist/index.cjs +11 -1
  122. package/dist/node_modules/@radix-ui/primitive/dist/index.cjs.map +1 -1
  123. package/dist/node_modules/@radix-ui/primitive/dist/index.js +7 -5
  124. package/dist/node_modules/@radix-ui/primitive/dist/index.js.map +1 -1
  125. package/dist/node_modules/@radix-ui/react-arrow/dist/index.cjs +42 -1
  126. package/dist/node_modules/@radix-ui/react-arrow/dist/index.cjs.map +1 -1
  127. package/dist/node_modules/@radix-ui/react-arrow/dist/index.js +17 -16
  128. package/dist/node_modules/@radix-ui/react-arrow/dist/index.js.map +1 -1
  129. package/dist/node_modules/@radix-ui/react-avatar/dist/index.cjs +140 -1
  130. package/dist/node_modules/@radix-ui/react-avatar/dist/index.cjs.map +1 -1
  131. package/dist/node_modules/@radix-ui/react-avatar/dist/index.js +105 -57
  132. package/dist/node_modules/@radix-ui/react-avatar/dist/index.js.map +1 -1
  133. package/dist/node_modules/@radix-ui/react-avatar/node_modules/@radix-ui/react-context/dist/index.cjs +80 -1
  134. package/dist/node_modules/@radix-ui/react-avatar/node_modules/@radix-ui/react-context/dist/index.cjs.map +1 -1
  135. package/dist/node_modules/@radix-ui/react-avatar/node_modules/@radix-ui/react-context/dist/index.js +49 -41
  136. package/dist/node_modules/@radix-ui/react-avatar/node_modules/@radix-ui/react-context/dist/index.js.map +1 -1
  137. package/dist/node_modules/@radix-ui/react-avatar/node_modules/@radix-ui/react-primitive/dist/index.cjs +56 -1
  138. package/dist/node_modules/@radix-ui/react-avatar/node_modules/@radix-ui/react-primitive/dist/index.cjs.map +1 -1
  139. package/dist/node_modules/@radix-ui/react-avatar/node_modules/@radix-ui/react-primitive/dist/index.js +17 -10
  140. package/dist/node_modules/@radix-ui/react-avatar/node_modules/@radix-ui/react-primitive/dist/index.js.map +1 -1
  141. package/dist/node_modules/@radix-ui/react-avatar/node_modules/@radix-ui/react-slot/dist/index.cjs +119 -1
  142. package/dist/node_modules/@radix-ui/react-avatar/node_modules/@radix-ui/react-slot/dist/index.cjs.map +1 -1
  143. package/dist/node_modules/@radix-ui/react-avatar/node_modules/@radix-ui/react-slot/dist/index.js +86 -42
  144. package/dist/node_modules/@radix-ui/react-avatar/node_modules/@radix-ui/react-slot/dist/index.js.map +1 -1
  145. package/dist/node_modules/@radix-ui/react-collection/dist/index.cjs +70 -1
  146. package/dist/node_modules/@radix-ui/react-collection/dist/index.cjs.map +1 -1
  147. package/dist/node_modules/@radix-ui/react-collection/dist/index.js +57 -37
  148. package/dist/node_modules/@radix-ui/react-collection/dist/index.js.map +1 -1
  149. package/dist/node_modules/@radix-ui/react-compose-refs/dist/index.cjs +56 -1
  150. package/dist/node_modules/@radix-ui/react-compose-refs/dist/index.cjs.map +1 -1
  151. package/dist/node_modules/@radix-ui/react-compose-refs/dist/index.js +29 -19
  152. package/dist/node_modules/@radix-ui/react-compose-refs/dist/index.js.map +1 -1
  153. package/dist/node_modules/@radix-ui/react-context/dist/index.cjs +79 -1
  154. package/dist/node_modules/@radix-ui/react-context/dist/index.cjs.map +1 -1
  155. package/dist/node_modules/@radix-ui/react-context/dist/index.js +48 -39
  156. package/dist/node_modules/@radix-ui/react-context/dist/index.js.map +1 -1
  157. package/dist/node_modules/@radix-ui/react-direction/dist/index.cjs +27 -1
  158. package/dist/node_modules/@radix-ui/react-direction/dist/index.cjs.map +1 -1
  159. package/dist/node_modules/@radix-ui/react-direction/dist/index.js +6 -6
  160. package/dist/node_modules/@radix-ui/react-direction/dist/index.js.map +1 -1
  161. package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.cjs +229 -1
  162. package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.cjs.map +1 -1
  163. package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.js +182 -97
  164. package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.js.map +1 -1
  165. package/dist/node_modules/@radix-ui/react-dropdown-menu/dist/index.cjs +296 -1
  166. package/dist/node_modules/@radix-ui/react-dropdown-menu/dist/index.cjs.map +1 -1
  167. package/dist/node_modules/@radix-ui/react-dropdown-menu/dist/index.js +232 -167
  168. package/dist/node_modules/@radix-ui/react-dropdown-menu/dist/index.js.map +1 -1
  169. package/dist/node_modules/@radix-ui/react-focus-guards/dist/index.cjs +46 -1
  170. package/dist/node_modules/@radix-ui/react-focus-guards/dist/index.cjs.map +1 -1
  171. package/dist/node_modules/@radix-ui/react-focus-guards/dist/index.js +23 -11
  172. package/dist/node_modules/@radix-ui/react-focus-guards/dist/index.js.map +1 -1
  173. package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.cjs +224 -1
  174. package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.cjs.map +1 -1
  175. package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.js +169 -98
  176. package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.js.map +1 -1
  177. package/dist/node_modules/@radix-ui/react-id/dist/index.cjs +31 -1
  178. package/dist/node_modules/@radix-ui/react-id/dist/index.cjs.map +1 -1
  179. package/dist/node_modules/@radix-ui/react-id/dist/index.js +11 -10
  180. package/dist/node_modules/@radix-ui/react-id/dist/index.js.map +1 -1
  181. package/dist/node_modules/@radix-ui/react-menu/dist/index.cjs +845 -1
  182. package/dist/node_modules/@radix-ui/react-menu/dist/index.cjs.map +1 -1
  183. package/dist/node_modules/@radix-ui/react-menu/dist/index.js +662 -442
  184. package/dist/node_modules/@radix-ui/react-menu/dist/index.js.map +1 -1
  185. package/dist/node_modules/@radix-ui/react-popper/dist/index.cjs +308 -1
  186. package/dist/node_modules/@radix-ui/react-popper/dist/index.cjs.map +1 -1
  187. package/dist/node_modules/@radix-ui/react-popper/dist/index.js +209 -137
  188. package/dist/node_modules/@radix-ui/react-popper/dist/index.js.map +1 -1
  189. package/dist/node_modules/@radix-ui/react-portal/dist/index.cjs +34 -1
  190. package/dist/node_modules/@radix-ui/react-portal/dist/index.cjs.map +1 -1
  191. package/dist/node_modules/@radix-ui/react-portal/dist/index.js +14 -12
  192. package/dist/node_modules/@radix-ui/react-portal/dist/index.js.map +1 -1
  193. package/dist/node_modules/@radix-ui/react-presence/dist/index.cjs +145 -1
  194. package/dist/node_modules/@radix-ui/react-presence/dist/index.cjs.map +1 -1
  195. package/dist/node_modules/@radix-ui/react-presence/dist/index.js +103 -45
  196. package/dist/node_modules/@radix-ui/react-presence/dist/index.js.map +1 -1
  197. package/dist/node_modules/@radix-ui/react-primitive/dist/index.cjs +61 -1
  198. package/dist/node_modules/@radix-ui/react-primitive/dist/index.cjs.map +1 -1
  199. package/dist/node_modules/@radix-ui/react-primitive/dist/index.js +21 -14
  200. package/dist/node_modules/@radix-ui/react-primitive/dist/index.js.map +1 -1
  201. package/dist/node_modules/@radix-ui/react-roving-focus/dist/index.cjs +244 -1
  202. package/dist/node_modules/@radix-ui/react-roving-focus/dist/index.cjs.map +1 -1
  203. package/dist/node_modules/@radix-ui/react-roving-focus/dist/index.js +179 -135
  204. package/dist/node_modules/@radix-ui/react-roving-focus/dist/index.js.map +1 -1
  205. package/dist/node_modules/@radix-ui/react-slot/dist/index.cjs +105 -1
  206. package/dist/node_modules/@radix-ui/react-slot/dist/index.cjs.map +1 -1
  207. package/dist/node_modules/@radix-ui/react-slot/dist/index.js +74 -35
  208. package/dist/node_modules/@radix-ui/react-slot/dist/index.js.map +1 -1
  209. package/dist/node_modules/@radix-ui/react-use-callback-ref/dist/index.cjs +28 -1
  210. package/dist/node_modules/@radix-ui/react-use-callback-ref/dist/index.cjs.map +1 -1
  211. package/dist/node_modules/@radix-ui/react-use-callback-ref/dist/index.js +8 -7
  212. package/dist/node_modules/@radix-ui/react-use-callback-ref/dist/index.js.map +1 -1
  213. package/dist/node_modules/@radix-ui/react-use-controllable-state/dist/index.cjs +86 -1
  214. package/dist/node_modules/@radix-ui/react-use-controllable-state/dist/index.cjs.map +1 -1
  215. package/dist/node_modules/@radix-ui/react-use-controllable-state/dist/index.js +57 -40
  216. package/dist/node_modules/@radix-ui/react-use-controllable-state/dist/index.js.map +1 -1
  217. package/dist/node_modules/@radix-ui/react-use-escape-keydown/dist/index.cjs +34 -1
  218. package/dist/node_modules/@radix-ui/react-use-escape-keydown/dist/index.cjs.map +1 -1
  219. package/dist/node_modules/@radix-ui/react-use-escape-keydown/dist/index.js +13 -10
  220. package/dist/node_modules/@radix-ui/react-use-escape-keydown/dist/index.js.map +1 -1
  221. package/dist/node_modules/@radix-ui/react-use-is-hydrated/dist/index.cjs +15 -1
  222. package/dist/node_modules/@radix-ui/react-use-is-hydrated/dist/index.cjs.map +1 -1
  223. package/dist/node_modules/@radix-ui/react-use-is-hydrated/dist/index.js +8 -8
  224. package/dist/node_modules/@radix-ui/react-use-is-hydrated/dist/index.js.map +1 -1
  225. package/dist/node_modules/@radix-ui/react-use-layout-effect/dist/index.cjs +23 -1
  226. package/dist/node_modules/@radix-ui/react-use-layout-effect/dist/index.cjs.map +1 -1
  227. package/dist/node_modules/@radix-ui/react-use-layout-effect/dist/index.js +3 -3
  228. package/dist/node_modules/@radix-ui/react-use-layout-effect/dist/index.js.map +1 -1
  229. package/dist/node_modules/@radix-ui/react-use-size/dist/index.cjs +56 -1
  230. package/dist/node_modules/@radix-ui/react-use-size/dist/index.cjs.map +1 -1
  231. package/dist/node_modules/@radix-ui/react-use-size/dist/index.js +34 -22
  232. package/dist/node_modules/@radix-ui/react-use-size/dist/index.js.map +1 -1
  233. package/dist/node_modules/aria-hidden/dist/es2015/index.cjs +122 -1
  234. package/dist/node_modules/aria-hidden/dist/es2015/index.cjs.map +1 -1
  235. package/dist/node_modules/aria-hidden/dist/es2015/index.js +111 -41
  236. package/dist/node_modules/aria-hidden/dist/es2015/index.js.map +1 -1
  237. package/dist/node_modules/class-variance-authority/dist/index.cjs +45 -1
  238. package/dist/node_modules/class-variance-authority/dist/index.cjs.map +1 -1
  239. package/dist/node_modules/class-variance-authority/dist/index.js +40 -30
  240. package/dist/node_modules/class-variance-authority/dist/index.js.map +1 -1
  241. package/dist/node_modules/clsx/dist/clsx.cjs +17 -1
  242. package/dist/node_modules/clsx/dist/clsx.cjs.map +1 -1
  243. package/dist/node_modules/clsx/dist/clsx.js +13 -13
  244. package/dist/node_modules/clsx/dist/clsx.js.map +1 -1
  245. package/dist/node_modules/get-nonce/dist/es2015/index.cjs +9 -1
  246. package/dist/node_modules/get-nonce/dist/es2015/index.cjs.map +1 -1
  247. package/dist/node_modules/get-nonce/dist/es2015/index.js +5 -3
  248. package/dist/node_modules/get-nonce/dist/es2015/index.js.map +1 -1
  249. package/dist/node_modules/js-cookie/dist/js.cookie.cjs +98 -1
  250. package/dist/node_modules/js-cookie/dist/js.cookie.cjs.map +1 -1
  251. package/dist/node_modules/js-cookie/dist/js.cookie.js +69 -43
  252. package/dist/node_modules/js-cookie/dist/js.cookie.js.map +1 -1
  253. package/dist/node_modules/jwt-decode/build/esm/index.cjs +58 -1
  254. package/dist/node_modules/jwt-decode/build/esm/index.cjs.map +1 -1
  255. package/dist/node_modules/jwt-decode/build/esm/index.js +36 -30
  256. package/dist/node_modules/jwt-decode/build/esm/index.js.map +1 -1
  257. package/dist/node_modules/lucide-react/dist/esm/Icon.cjs +34 -1
  258. package/dist/node_modules/lucide-react/dist/esm/Icon.cjs.map +1 -1
  259. package/dist/node_modules/lucide-react/dist/esm/Icon.js +25 -25
  260. package/dist/node_modules/lucide-react/dist/esm/Icon.js.map +1 -1
  261. package/dist/node_modules/lucide-react/dist/esm/createLucideIcon.cjs +21 -1
  262. package/dist/node_modules/lucide-react/dist/esm/createLucideIcon.cjs.map +1 -1
  263. package/dist/node_modules/lucide-react/dist/esm/createLucideIcon.js +16 -15
  264. package/dist/node_modules/lucide-react/dist/esm/createLucideIcon.js.map +1 -1
  265. package/dist/node_modules/lucide-react/dist/esm/defaultAttributes.cjs +13 -1
  266. package/dist/node_modules/lucide-react/dist/esm/defaultAttributes.cjs.map +1 -1
  267. package/dist/node_modules/lucide-react/dist/esm/defaultAttributes.js +2 -2
  268. package/dist/node_modules/lucide-react/dist/esm/defaultAttributes.js.map +1 -1
  269. package/dist/node_modules/lucide-react/dist/esm/icons/check.cjs +7 -1
  270. package/dist/node_modules/lucide-react/dist/esm/icons/check.cjs.map +1 -1
  271. package/dist/node_modules/lucide-react/dist/esm/icons/check.js +5 -4
  272. package/dist/node_modules/lucide-react/dist/esm/icons/check.js.map +1 -1
  273. package/dist/node_modules/lucide-react/dist/esm/icons/chevron-right.cjs +7 -1
  274. package/dist/node_modules/lucide-react/dist/esm/icons/chevron-right.cjs.map +1 -1
  275. package/dist/node_modules/lucide-react/dist/esm/icons/chevron-right.js +5 -4
  276. package/dist/node_modules/lucide-react/dist/esm/icons/chevron-right.js.map +1 -1
  277. package/dist/node_modules/lucide-react/dist/esm/icons/circle.cjs +7 -1
  278. package/dist/node_modules/lucide-react/dist/esm/icons/circle.cjs.map +1 -1
  279. package/dist/node_modules/lucide-react/dist/esm/icons/circle.js +5 -4
  280. package/dist/node_modules/lucide-react/dist/esm/icons/circle.js.map +1 -1
  281. package/dist/node_modules/lucide-react/dist/esm/icons/log-out.cjs +11 -1
  282. package/dist/node_modules/lucide-react/dist/esm/icons/log-out.cjs.map +1 -1
  283. package/dist/node_modules/lucide-react/dist/esm/icons/log-out.js +6 -5
  284. package/dist/node_modules/lucide-react/dist/esm/icons/log-out.js.map +1 -1
  285. package/dist/node_modules/lucide-react/dist/esm/shared/src/utils.cjs +26 -1
  286. package/dist/node_modules/lucide-react/dist/esm/shared/src/utils.cjs.map +1 -1
  287. package/dist/node_modules/lucide-react/dist/esm/shared/src/utils.js +22 -14
  288. package/dist/node_modules/lucide-react/dist/esm/shared/src/utils.js.map +1 -1
  289. package/dist/node_modules/react-remove-scroll/dist/es2015/Combination.cjs +27 -1
  290. package/dist/node_modules/react-remove-scroll/dist/es2015/Combination.cjs.map +1 -1
  291. package/dist/node_modules/react-remove-scroll/dist/es2015/Combination.js +8 -8
  292. package/dist/node_modules/react-remove-scroll/dist/es2015/Combination.js.map +1 -1
  293. package/dist/node_modules/react-remove-scroll/dist/es2015/SideEffect.cjs +197 -4
  294. package/dist/node_modules/react-remove-scroll/dist/es2015/SideEffect.cjs.map +1 -1
  295. package/dist/node_modules/react-remove-scroll/dist/es2015/SideEffect.js +163 -98
  296. package/dist/node_modules/react-remove-scroll/dist/es2015/SideEffect.js.map +1 -1
  297. package/dist/node_modules/react-remove-scroll/dist/es2015/UI.cjs +55 -1
  298. package/dist/node_modules/react-remove-scroll/dist/es2015/UI.cjs.map +1 -1
  299. package/dist/node_modules/react-remove-scroll/dist/es2015/UI.js +31 -24
  300. package/dist/node_modules/react-remove-scroll/dist/es2015/UI.js.map +1 -1
  301. package/dist/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.cjs +19 -1
  302. package/dist/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.cjs.map +1 -1
  303. package/dist/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js +12 -9
  304. package/dist/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js.map +1 -1
  305. package/dist/node_modules/react-remove-scroll/dist/es2015/handleScroll.cjs +102 -1
  306. package/dist/node_modules/react-remove-scroll/dist/es2015/handleScroll.cjs.map +1 -1
  307. package/dist/node_modules/react-remove-scroll/dist/es2015/handleScroll.js +85 -51
  308. package/dist/node_modules/react-remove-scroll/dist/es2015/handleScroll.js.map +1 -1
  309. package/dist/node_modules/react-remove-scroll/dist/es2015/medium.cjs +5 -1
  310. package/dist/node_modules/react-remove-scroll/dist/es2015/medium.cjs.map +1 -1
  311. package/dist/node_modules/react-remove-scroll/dist/es2015/medium.js +3 -3
  312. package/dist/node_modules/react-remove-scroll/dist/es2015/medium.js.map +1 -1
  313. package/dist/node_modules/react-remove-scroll/dist/es2015/sidecar.cjs +6 -1
  314. package/dist/node_modules/react-remove-scroll/dist/es2015/sidecar.cjs.map +1 -1
  315. package/dist/node_modules/react-remove-scroll/dist/es2015/sidecar.js +5 -5
  316. package/dist/node_modules/react-remove-scroll/dist/es2015/sidecar.js.map +1 -1
  317. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/component.cjs +62 -36
  318. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/component.cjs.map +1 -1
  319. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/component.js +41 -65
  320. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/component.js.map +1 -1
  321. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/constants.cjs +10 -1
  322. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/constants.cjs.map +1 -1
  323. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/constants.js +8 -5
  324. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/constants.js.map +1 -1
  325. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/utils.cjs +37 -1
  326. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/utils.cjs.map +1 -1
  327. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/utils.js +28 -16
  328. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/utils.js.map +1 -1
  329. package/dist/node_modules/react-style-singleton/dist/es2015/component.cjs +13 -1
  330. package/dist/node_modules/react-style-singleton/dist/es2015/component.cjs.map +1 -1
  331. package/dist/node_modules/react-style-singleton/dist/es2015/component.js +9 -7
  332. package/dist/node_modules/react-style-singleton/dist/es2015/component.js.map +1 -1
  333. package/dist/node_modules/react-style-singleton/dist/es2015/hook.cjs +33 -1
  334. package/dist/node_modules/react-style-singleton/dist/es2015/hook.cjs.map +1 -1
  335. package/dist/node_modules/react-style-singleton/dist/es2015/hook.js +11 -10
  336. package/dist/node_modules/react-style-singleton/dist/es2015/hook.js.map +1 -1
  337. package/dist/node_modules/react-style-singleton/dist/es2015/singleton.cjs +48 -1
  338. package/dist/node_modules/react-style-singleton/dist/es2015/singleton.cjs.map +1 -1
  339. package/dist/node_modules/react-style-singleton/dist/es2015/singleton.js +35 -17
  340. package/dist/node_modules/react-style-singleton/dist/es2015/singleton.js.map +1 -1
  341. package/dist/node_modules/tailwind-merge/dist/bundle-mjs.cjs +3014 -1
  342. package/dist/node_modules/tailwind-merge/dist/bundle-mjs.cjs.map +1 -1
  343. package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js +804 -555
  344. package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js.map +1 -1
  345. package/dist/node_modules/tailwindcss/dist/plugin.cjs +12 -1
  346. package/dist/node_modules/tailwindcss/dist/plugin.cjs.map +1 -1
  347. package/dist/node_modules/tailwindcss/dist/plugin.js +8 -8
  348. package/dist/node_modules/tailwindcss/dist/plugin.js.map +1 -1
  349. package/dist/node_modules/tslib/tslib.es6.cjs +38 -1
  350. package/dist/node_modules/tslib/tslib.es6.cjs.map +1 -1
  351. package/dist/node_modules/tslib/tslib.es6.js +33 -21
  352. package/dist/node_modules/tslib/tslib.es6.js.map +1 -1
  353. package/dist/node_modules/use-callback-ref/dist/es2015/assignRef.cjs +11 -1
  354. package/dist/node_modules/use-callback-ref/dist/es2015/assignRef.cjs.map +1 -1
  355. package/dist/node_modules/use-callback-ref/dist/es2015/assignRef.js +8 -3
  356. package/dist/node_modules/use-callback-ref/dist/es2015/assignRef.js.map +1 -1
  357. package/dist/node_modules/use-callback-ref/dist/es2015/useMergeRef.cjs +52 -1
  358. package/dist/node_modules/use-callback-ref/dist/es2015/useMergeRef.cjs.map +1 -1
  359. package/dist/node_modules/use-callback-ref/dist/es2015/useMergeRef.js +28 -19
  360. package/dist/node_modules/use-callback-ref/dist/es2015/useMergeRef.js.map +1 -1
  361. package/dist/node_modules/use-callback-ref/dist/es2015/useRef.cjs +29 -1
  362. package/dist/node_modules/use-callback-ref/dist/es2015/useRef.cjs.map +1 -1
  363. package/dist/node_modules/use-callback-ref/dist/es2015/useRef.js +15 -11
  364. package/dist/node_modules/use-callback-ref/dist/es2015/useRef.js.map +1 -1
  365. package/dist/node_modules/use-sidecar/dist/es2015/exports.cjs +38 -1
  366. package/dist/node_modules/use-sidecar/dist/es2015/exports.cjs.map +1 -1
  367. package/dist/node_modules/use-sidecar/dist/es2015/exports.js +15 -12
  368. package/dist/node_modules/use-sidecar/dist/es2015/exports.js.map +1 -1
  369. package/dist/node_modules/use-sidecar/dist/es2015/medium.cjs +88 -1
  370. package/dist/node_modules/use-sidecar/dist/es2015/medium.cjs.map +1 -1
  371. package/dist/node_modules/use-sidecar/dist/es2015/medium.js +64 -43
  372. package/dist/node_modules/use-sidecar/dist/es2015/medium.js.map +1 -1
  373. package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.cjs +68 -1
  374. package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.cjs.map +1 -1
  375. package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js +49 -39
  376. package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js.map +1 -1
  377. package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.cjs +53 -1
  378. package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.cjs.map +1 -1
  379. package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js +39 -32
  380. package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js.map +1 -1
  381. package/dist/node_modules/use-sync-external-store/shim/index.cjs +17 -1
  382. package/dist/node_modules/use-sync-external-store/shim/index.cjs.map +1 -1
  383. package/dist/node_modules/use-sync-external-store/shim/index.js +14 -7
  384. package/dist/node_modules/use-sync-external-store/shim/index.js.map +1 -1
  385. package/dist/providers/auth/auth.context.cjs +5 -1
  386. package/dist/providers/auth/auth.context.cjs.map +1 -1
  387. package/dist/providers/auth/auth.context.js +3 -3
  388. package/dist/providers/auth/auth.context.js.map +1 -1
  389. package/dist/providers/auth/auth.hook.cjs +12 -1
  390. package/dist/providers/auth/auth.hook.cjs.map +1 -1
  391. package/dist/providers/auth/auth.hook.js +8 -7
  392. package/dist/providers/auth/auth.hook.js.map +1 -1
  393. package/dist/providers/auth/auth.provider.cjs +37 -1
  394. package/dist/providers/auth/auth.provider.cjs.map +1 -1
  395. package/dist/providers/auth/auth.provider.js +31 -22
  396. package/dist/providers/auth/auth.provider.js.map +1 -1
  397. package/dist/providers/blimu/blimu.context.cjs +5 -1
  398. package/dist/providers/blimu/blimu.context.cjs.map +1 -1
  399. package/dist/providers/blimu/blimu.context.js +3 -3
  400. package/dist/providers/blimu/blimu.context.js.map +1 -1
  401. package/dist/providers/blimu/blimu.hook.cjs +12 -1
  402. package/dist/providers/blimu/blimu.hook.cjs.map +1 -1
  403. package/dist/providers/blimu/blimu.hook.js +8 -7
  404. package/dist/providers/blimu/blimu.hook.js.map +1 -1
  405. package/dist/providers/blimu/blimu.provider.cjs +71 -1
  406. package/dist/providers/blimu/blimu.provider.cjs.map +1 -1
  407. package/dist/providers/blimu/blimu.provider.js +32 -27
  408. package/dist/providers/blimu/blimu.provider.js.map +1 -1
  409. package/dist/providers/index.cjs +13 -0
  410. package/dist/providers/index.cjs.map +1 -0
  411. package/dist/providers/index.js +13 -0
  412. package/dist/providers/index.js.map +1 -0
  413. package/dist/providers/theme/theme.context.cjs +5 -1
  414. package/dist/providers/theme/theme.context.cjs.map +1 -1
  415. package/dist/providers/theme/theme.context.js +3 -3
  416. package/dist/providers/theme/theme.context.js.map +1 -1
  417. package/dist/providers/theme/theme.hook.cjs +12 -1
  418. package/dist/providers/theme/theme.hook.cjs.map +1 -1
  419. package/dist/providers/theme/theme.hook.js +8 -7
  420. package/dist/providers/theme/theme.hook.js.map +1 -1
  421. package/dist/providers/theme/theme.provider.cjs +104 -1
  422. package/dist/providers/theme/theme.provider.cjs.map +1 -1
  423. package/dist/providers/theme/theme.provider.js +85 -48
  424. package/dist/providers/theme/theme.provider.js.map +1 -1
  425. package/dist/tailwind.cjs +200 -0
  426. package/dist/tailwind.cjs.map +1 -0
  427. package/dist/{tailwind.plugin.js → tailwind.js} +6 -6
  428. package/dist/tailwind.js.map +1 -0
  429. package/dist/types/index.cjs +11 -1
  430. package/dist/types/index.cjs.map +1 -1
  431. package/dist/types/index.js +8 -8
  432. package/dist/types/index.js.map +1 -1
  433. package/dist/utils/publishable-key.cjs +62 -1
  434. package/dist/utils/publishable-key.cjs.map +1 -1
  435. package/dist/utils/publishable-key.js +52 -27
  436. package/dist/utils/publishable-key.js.map +1 -1
  437. package/package.json +41 -42
  438. package/dist/components.cjs +0 -2
  439. package/dist/components.cjs.map +0 -1
  440. package/dist/components.js +0 -13
  441. package/dist/components.js.map +0 -1
  442. package/dist/hooks.cjs +0 -2
  443. package/dist/hooks.cjs.map +0 -1
  444. package/dist/hooks.js +0 -14
  445. package/dist/hooks.js.map +0 -1
  446. package/dist/providers.cjs +0 -2
  447. package/dist/providers.cjs.map +0 -1
  448. package/dist/providers.js +0 -13
  449. package/dist/providers.js.map +0 -1
  450. package/dist/tailwind.plugin.cjs +0 -2
  451. package/dist/tailwind.plugin.cjs.map +0 -1
  452. package/dist/tailwind.plugin.js.map +0 -1
@@ -1,2 +1,81 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const C=require("react"),g=require("react/jsx-runtime");function _(e){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const u=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(o,t,u.get?u:{enumerable:!0,get:()=>e[t]})}}return o.default=e,Object.freeze(o)}const a=_(C);function j(e,o=[]){let t=[];function u(r,n){const c=a.createContext(n);c.displayName=r+"Context";const s=t.length;t=[...t,n];const x=p=>{const{scope:f,children:d,...l}=p,m=f?.[e]?.[s]||c,b=a.useMemo(()=>l,Object.values(l));return g.jsx(m.Provider,{value:b,children:d})};x.displayName=r+"Provider";function S(p,f){const d=f?.[e]?.[s]||c,l=a.useContext(d);if(l)return l;if(n!==void 0)return n;throw new Error(`\`${p}\` must be used within \`${r}\``)}return[x,S]}const i=()=>{const r=t.map(n=>a.createContext(n));return function(c){const s=c?.[e]||r;return a.useMemo(()=>({[`__scope${e}`]:{...c,[e]:s}}),[c,s])}};return i.scopeName=e,[u,v(i,...o)]}function v(...e){const o=e[0];if(e.length===1)return o;const t=()=>{const u=e.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(r){const n=u.reduce((c,{useScope:s,scopeName:x})=>{const p=s(r)[`__scope${x}`];return{...c,...p}},{});return a.useMemo(()=>({[`__scope${o.scopeName}`]:n}),[n])}};return t.scopeName=o.scopeName,t}exports.createContextScope=j;
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const React = require("react");
4
+ const jsxRuntime = require("react/jsx-runtime");
5
+ function _interopNamespaceDefault(e) {
6
+ const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
7
+ if (e) {
8
+ for (const k in e) {
9
+ if (k !== "default") {
10
+ const d = Object.getOwnPropertyDescriptor(e, k);
11
+ Object.defineProperty(n, k, d.get ? d : {
12
+ enumerable: true,
13
+ get: () => e[k]
14
+ });
15
+ }
16
+ }
17
+ }
18
+ n.default = e;
19
+ return Object.freeze(n);
20
+ }
21
+ const React__namespace = /* @__PURE__ */ _interopNamespaceDefault(React);
22
+ function createContextScope(scopeName, createContextScopeDeps = []) {
23
+ let defaultContexts = [];
24
+ function createContext3(rootComponentName, defaultContext) {
25
+ const BaseContext = React__namespace.createContext(defaultContext);
26
+ BaseContext.displayName = rootComponentName + "Context";
27
+ const index = defaultContexts.length;
28
+ defaultContexts = [...defaultContexts, defaultContext];
29
+ const Provider = (props) => {
30
+ const { scope, children, ...context } = props;
31
+ const Context = scope?.[scopeName]?.[index] || BaseContext;
32
+ const value = React__namespace.useMemo(() => context, Object.values(context));
33
+ return /* @__PURE__ */ jsxRuntime.jsx(Context.Provider, { value, children });
34
+ };
35
+ Provider.displayName = rootComponentName + "Provider";
36
+ function useContext2(consumerName, scope) {
37
+ const Context = scope?.[scopeName]?.[index] || BaseContext;
38
+ const context = React__namespace.useContext(Context);
39
+ if (context) return context;
40
+ if (defaultContext !== void 0) return defaultContext;
41
+ throw new Error(`\`${consumerName}\` must be used within \`${rootComponentName}\``);
42
+ }
43
+ return [Provider, useContext2];
44
+ }
45
+ const createScope = () => {
46
+ const scopeContexts = defaultContexts.map((defaultContext) => {
47
+ return React__namespace.createContext(defaultContext);
48
+ });
49
+ return function useScope(scope) {
50
+ const contexts = scope?.[scopeName] || scopeContexts;
51
+ return React__namespace.useMemo(
52
+ () => ({ [`__scope${scopeName}`]: { ...scope, [scopeName]: contexts } }),
53
+ [scope, contexts]
54
+ );
55
+ };
56
+ };
57
+ createScope.scopeName = scopeName;
58
+ return [createContext3, composeContextScopes(createScope, ...createContextScopeDeps)];
59
+ }
60
+ function composeContextScopes(...scopes) {
61
+ const baseScope = scopes[0];
62
+ if (scopes.length === 1) return baseScope;
63
+ const createScope = () => {
64
+ const scopeHooks = scopes.map((createScope2) => ({
65
+ useScope: createScope2(),
66
+ scopeName: createScope2.scopeName
67
+ }));
68
+ return function useComposedScopes(overrideScopes) {
69
+ const nextScopes = scopeHooks.reduce((nextScopes2, { useScope, scopeName }) => {
70
+ const scopeProps = useScope(overrideScopes);
71
+ const currentScope = scopeProps[`__scope${scopeName}`];
72
+ return { ...nextScopes2, ...currentScope };
73
+ }, {});
74
+ return React__namespace.useMemo(() => ({ [`__scope${baseScope.scopeName}`]: nextScopes }), [nextScopes]);
75
+ };
76
+ };
77
+ createScope.scopeName = baseScope.scopeName;
78
+ return createScope;
79
+ }
80
+ exports.createContextScope = createContextScope;
2
81
  //# sourceMappingURL=index.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs","sources":["../../../../../../../../../../node_modules/@radix-ui/react-avatar/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","createContext3","rootComponentName","defaultContext","BaseContext","React","index","Provider","props","scope","children","context","Context","value","jsx","useContext2","consumerName","createScope","scopeContexts","contexts","composeContextScopes","scopes","baseScope","scopeHooks","createScope2","overrideScopes","nextScopes","nextScopes2","useScope","currentScope"],"mappings":"kaAoBA,SAASA,EAAmBC,EAAWC,EAAyB,GAAI,CAClE,IAAIC,EAAkB,CAAA,EACtB,SAASC,EAAeC,EAAmBC,EAAgB,CACzD,MAAMC,EAAcC,EAAM,cAAcF,CAAc,EACtDC,EAAY,YAAcF,EAAoB,UAC9C,MAAMI,EAAQN,EAAgB,OAC9BA,EAAkB,CAAC,GAAGA,EAAiBG,CAAc,EACrD,MAAMI,EAAYC,GAAU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EAAgB,CAChD,MAAMC,EAAaH,EAAW,OAAO,CAACI,EAAa,CAAE,SAAAC,EAAU,UAAA9B,KAAgB,CAE7E,MAAM+B,EADaD,EAASH,CAAc,EACV,UAAU3B,CAAS,EAAE,EACrD,MAAO,CAAE,GAAG6B,EAAa,GAAGE,CAAY,CAC1C,EAAG,CAAA,CAAE,EACL,OAAOxB,EAAM,QAAQ,KAAO,CAAE,CAAC,UAAUiB,EAAU,SAAS,EAAE,EAAGI,CAAU,GAAK,CAACA,CAAU,CAAC,CAC9F,CACF,EACA,OAAAT,EAAY,UAAYK,EAAU,UAC3BL,CACT","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.cjs","sources":["../../../../../../../../../../node_modules/@radix-ui/react-avatar/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":["React","jsx"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAoBA,SAAS,mBAAmB,WAAW,yBAAyB,IAAI;AAClE,MAAI,kBAAkB,CAAA;AACtB,WAAS,eAAe,mBAAmB,gBAAgB;AACzD,UAAM,cAAcA,iBAAM,cAAc,cAAc;AACtD,gBAAY,cAAc,oBAAoB;AAC9C,UAAM,QAAQ,gBAAgB;AAC9B,sBAAkB,CAAC,GAAG,iBAAiB,cAAc;AACrD,UAAM,WAAW,CAAC,UAAU;A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A,IAC9B,EAAM;AACF,WAAO,SAAS,kBAAkB,gBAAgB;AAChD,YAAM,aAAa,WAAW,OAAO,CAAC,aAAa,EAAE,UAAU,gBAAgB;AAC7E,cAAM,aAAa,SAAS,cAAc;AAC1C,cAAM,eAAe,WAAW,UAAU,SAAS,EAAE;AACrD,eAAO,EAAE,GAAG,aAAa,GAAG,aAAY;AAAA,MAC1C,GAAG,CAAA,CAAE;AACL,aAAOA,iBAAM,QAAQ,OAAO,EAAE,CAAC,UAAU,UAAU,SAAS,EAAE,GAAG,WAAU,IAAK,CAAC,UAAU,CAAC;AAAA,IAC9F;AAAA,EACF;AACA,cAAY,YAAY,UAAU;AAClC,SAAO;AACT;;","x_google_ignoreList":[0]}
@@ -1,56 +1,64 @@
1
- import * as u from "react";
2
- import { jsx as v } from "react/jsx-runtime";
3
- function P(e, p = []) {
4
- let n = [];
5
- function m(c, t) {
6
- const o = u.createContext(t);
7
- o.displayName = c + "Context";
8
- const r = n.length;
9
- n = [...n, t];
10
- const a = (i) => {
11
- const { scope: d, children: f, ...x } = i, S = d?.[e]?.[r] || o, l = u.useMemo(() => x, Object.values(x));
12
- return /* @__PURE__ */ v(S.Provider, { value: l, children: f });
1
+ import * as React from "react";
2
+ import { jsx } from "react/jsx-runtime";
3
+ function createContextScope(scopeName, createContextScopeDeps = []) {
4
+ let defaultContexts = [];
5
+ function createContext3(rootComponentName, defaultContext) {
6
+ const BaseContext = React.createContext(defaultContext);
7
+ BaseContext.displayName = rootComponentName + "Context";
8
+ const index = defaultContexts.length;
9
+ defaultContexts = [...defaultContexts, defaultContext];
10
+ const Provider = (props) => {
11
+ const { scope, children, ...context } = props;
12
+ const Context = scope?.[scopeName]?.[index] || BaseContext;
13
+ const value = React.useMemo(() => context, Object.values(context));
14
+ return /* @__PURE__ */ jsx(Context.Provider, { value, children });
13
15
  };
14
- a.displayName = c + "Provider";
15
- function C(i, d) {
16
- const f = d?.[e]?.[r] || o, x = u.useContext(f);
17
- if (x) return x;
18
- if (t !== void 0) return t;
19
- throw new Error(`\`${i}\` must be used within \`${c}\``);
16
+ Provider.displayName = rootComponentName + "Provider";
17
+ function useContext2(consumerName, scope) {
18
+ const Context = scope?.[scopeName]?.[index] || BaseContext;
19
+ const context = React.useContext(Context);
20
+ if (context) return context;
21
+ if (defaultContext !== void 0) return defaultContext;
22
+ throw new Error(`\`${consumerName}\` must be used within \`${rootComponentName}\``);
20
23
  }
21
- return [a, C];
24
+ return [Provider, useContext2];
22
25
  }
23
- const s = () => {
24
- const c = n.map((t) => u.createContext(t));
25
- return function(o) {
26
- const r = o?.[e] || c;
27
- return u.useMemo(
28
- () => ({ [`__scope${e}`]: { ...o, [e]: r } }),
29
- [o, r]
26
+ const createScope = () => {
27
+ const scopeContexts = defaultContexts.map((defaultContext) => {
28
+ return React.createContext(defaultContext);
29
+ });
30
+ return function useScope(scope) {
31
+ const contexts = scope?.[scopeName] || scopeContexts;
32
+ return React.useMemo(
33
+ () => ({ [`__scope${scopeName}`]: { ...scope, [scopeName]: contexts } }),
34
+ [scope, contexts]
30
35
  );
31
36
  };
32
37
  };
33
- return s.scopeName = e, [m, _(s, ...p)];
38
+ createScope.scopeName = scopeName;
39
+ return [createContext3, composeContextScopes(createScope, ...createContextScopeDeps)];
34
40
  }
35
- function _(...e) {
36
- const p = e[0];
37
- if (e.length === 1) return p;
38
- const n = () => {
39
- const m = e.map((s) => ({
40
- useScope: s(),
41
- scopeName: s.scopeName
41
+ function composeContextScopes(...scopes) {
42
+ const baseScope = scopes[0];
43
+ if (scopes.length === 1) return baseScope;
44
+ const createScope = () => {
45
+ const scopeHooks = scopes.map((createScope2) => ({
46
+ useScope: createScope2(),
47
+ scopeName: createScope2.scopeName
42
48
  }));
43
- return function(c) {
44
- const t = m.reduce((o, { useScope: r, scopeName: a }) => {
45
- const i = r(c)[`__scope${a}`];
46
- return { ...o, ...i };
49
+ return function useComposedScopes(overrideScopes) {
50
+ const nextScopes = scopeHooks.reduce((nextScopes2, { useScope, scopeName }) => {
51
+ const scopeProps = useScope(overrideScopes);
52
+ const currentScope = scopeProps[`__scope${scopeName}`];
53
+ return { ...nextScopes2, ...currentScope };
47
54
  }, {});
48
- return u.useMemo(() => ({ [`__scope${p.scopeName}`]: t }), [t]);
55
+ return React.useMemo(() => ({ [`__scope${baseScope.scopeName}`]: nextScopes }), [nextScopes]);
49
56
  };
50
57
  };
51
- return n.scopeName = p.scopeName, n;
58
+ createScope.scopeName = baseScope.scopeName;
59
+ return createScope;
52
60
  }
53
61
  export {
54
- P as createContextScope
62
+ createContextScope
55
63
  };
56
64
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../../../../../../../../node_modules/@radix-ui/react-avatar/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","createContext3","rootComponentName","defaultContext","BaseContext","React","index","Provider","props","scope","children","context","Context","value","jsx","useContext2","consumerName","createScope","scopeContexts","contexts","composeContextScopes","scopes","baseScope","scopeHooks","createScope2","overrideScopes","nextScopes","nextScopes2","useScope","currentScope"],"mappings":";;AAoBA,SAASA,EAAmBC,GAAWC,IAAyB,IAAI;AAClE,MAAIC,IAAkB,CAAA;AACtB,WAASC,EAAeC,GAAmBC,GAAgB;AACzD,UAAMC,IAAc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GAAQ;AACvC,QAAMC,IAAYD,EAAO,CAAC;AAC1B,MAAIA,EAAO,WAAW,EAAG,QAAOC;AAChC,QAAML,IAAc,MAAM;AACxB,UAAMM,IAAaF,EAAO,IAAI,CAACG,OAAkB;AAAA,MAC/C,UAAUA,EAAY;AAAA,MACtB,WAAWA,EAAa;AAAA,IAC9B,EAAM;AACF,WAAO,SAA2BC,GAAgB;AAChD,YAAMC,IAAaH,EAAW,OAAO,CAACI,GAAa,EAAE,UAAAC,GAAU,WAAA9B,QAAgB;AAE7E,cAAM+B,IADaD,EAASH,CAAc,EACV,UAAU3B,CAAS,EAAE;AACrD,eAAO,EAAE,GAAG6B,GAAa,GAAGE,EAAY;AAAA,MAC1C,GAAG,CAAA,CAAE;AACL,aAAOxB,EAAM,QAAQ,OAAO,EAAE,CAAC,UAAUiB,EAAU,SAAS,EAAE,GAAGI,EAAU,IAAK,CAACA,CAAU,CAAC;AAAA,IAC9F;AAAA,EACF;AACA,SAAAT,EAAY,YAAYK,EAAU,WAC3BL;AACT;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.js","sources":["../../../../../../../../../../node_modules/@radix-ui/react-avatar/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":[],"mappings":";;AAoBA,SAAS,mBAAmB,WAAW,yBAAyB,IAAI;AACl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S,wBAAwB,QAAQ;AACvC,QAAM,YAAY,OAAO,CAAC;AAC1B,MAAI,OAAO,WAAW,EAAG,QAAO;AAChC,QAAM,cAAc,MAAM;AACxB,UAAM,aAAa,OAAO,IAAI,CAAC,kBAAkB;AAAA,MAC/C,UAAU,aAAY;AAAA,MACtB,WAAW,aAAa;AAAA,IAC9B,EAAM;AACF,WAAO,SAAS,kBAAkB,gBAAgB;AAChD,YAAM,aAAa,WAAW,OAAO,CAAC,aAAa,EAAE,UAAU,gBAAgB;AAC7E,cAAM,aAAa,SAAS,cAAc;AAC1C,cAAM,eAAe,WAAW,UAAU,SAAS,EAAE;AACrD,eAAO,EAAE,GAAG,aAAa,GAAG,aAAY;AAAA,MAC1C,GAAG,CAAA,CAAE;AACL,aAAO,MAAM,QAAQ,OAAO,EAAE,CAAC,UAAU,UAAU,SAAS,EAAE,GAAG,WAAU,IAAK,CAAC,UAAU,CAAC;AAAA,IAC9F;AAAA,EACF;AACA,cAAY,YAAY,UAAU;AAClC,SAAO;AACT;","x_google_ignoreList":[0]}
@@ -1,2 +1,57 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react");require("react-dom");const l=require("../../react-slot/dist/index.cjs"),f=require("react/jsx-runtime");function d(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const r in t)if(r!=="default"){const i=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(e,r,i.get?i:{enumerable:!0,get:()=>t[r]})}}return e.default=t,Object.freeze(e)}const m=d(s);var p=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],v=p.reduce((t,e)=>{const r=l.createSlot(`Primitive.${e}`),i=m.forwardRef((o,n)=>{const{asChild:a,...c}=o,u=a?r:e;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),f.jsx(u,{...c,ref:n})});return i.displayName=`Primitive.${e}`,{...t,[e]:i}},{});exports.Primitive=v;
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const React = require("react");
4
+ require("react-dom");
5
+ const index = require("../../react-slot/dist/index.cjs");
6
+ const jsxRuntime = require("react/jsx-runtime");
7
+ function _interopNamespaceDefault(e) {
8
+ const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
9
+ if (e) {
10
+ for (const k in e) {
11
+ if (k !== "default") {
12
+ const d = Object.getOwnPropertyDescriptor(e, k);
13
+ Object.defineProperty(n, k, d.get ? d : {
14
+ enumerable: true,
15
+ get: () => e[k]
16
+ });
17
+ }
18
+ }
19
+ }
20
+ n.default = e;
21
+ return Object.freeze(n);
22
+ }
23
+ const React__namespace = /* @__PURE__ */ _interopNamespaceDefault(React);
24
+ var NODES = [
25
+ "a",
26
+ "button",
27
+ "div",
28
+ "form",
29
+ "h2",
30
+ "h3",
31
+ "img",
32
+ "input",
33
+ "label",
34
+ "li",
35
+ "nav",
36
+ "ol",
37
+ "p",
38
+ "select",
39
+ "span",
40
+ "svg",
41
+ "ul"
42
+ ];
43
+ var Primitive = NODES.reduce((primitive, node) => {
44
+ const Slot = index.createSlot(`Primitive.${node}`);
45
+ const Node = React__namespace.forwardRef((props, forwardedRef) => {
46
+ const { asChild, ...primitiveProps } = props;
47
+ const Comp = asChild ? Slot : node;
48
+ if (typeof window !== "undefined") {
49
+ window[/* @__PURE__ */ Symbol.for("radix-ui")] = true;
50
+ }
51
+ return /* @__PURE__ */ jsxRuntime.jsx(Comp, { ...primitiveProps, ref: forwardedRef });
52
+ });
53
+ Node.displayName = `Primitive.${node}`;
54
+ return { ...primitive, [node]: Node };
55
+ }, {});
56
+ exports.Primitive = Primitive;
2
57
  //# sourceMappingURL=index.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs","sources":["../../../../../../../../../../node_modules/@radix-ui/react-avatar/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":["NODES","Primitive","primitive","node","Slot","createSlot","Node","React","props","forwardedRef","asChild","primitiveProps","Comp","jsx"],"mappings":"0eAKA,IAAIA,EAAQ,CACV,IACA,SACA,MACA,OACA,KACA,KACA,MACA,QACA,QACA,KACA,MACA,KACA,IACA,SACA,OACA,MACA,IACF,EACIC,EAAYD,EAAM,OAAO,CAACE,EAAWC,IAAS,CAChD,MAAMC,EAAOC,EAAAA,WAAW,aAAaF,CAAI,EAAE,EACrCG,EAAOC,EAAM,WAAW,CAACC,EAAOC,IAAiB,CACrD,KAAM,CAAE,QAAAC,EAAS,GAAGC,CAAc,EAAKH,EACjCI,EAAOF,EAAUN,EAAOD,EAC9B,OAAI,OAAO,OAAW,MACpB,OAAO,OAAO,IAAI,UAAU,CAAC,EAAI,IAEZU,EAAAA,IAAID,EAAM,CAAE,GAAGD,EAAgB,IAAKF,EAAc,CAC3E,CAAC,EACD,OAAAH,EAAK,YAAc,aAAaH,CAAI,GAC7B,CAAE,GAAGD,EAAW,CAACC,CAAI,EAAGG,CAAI,CACrC,EAAG,CAAA,CAAE","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.cjs","sources":["../../../../../../../../../../node_modules/@radix-ui/react-avatar/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":["createSlot","React","jsx"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAKA,IAAI,QAAQ;AAAA,EACV;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF;AACG,IAAC,YAAY,MAAM,OAAO,CAAC,WAAW,SAAS;AAChD,QAAM,OAAOA,MAAAA,WAAW,aAAa,IAAI,EAAE;AAC3C,QAAM,OAAOC,iBAAM,WAAW,CAAC,OAAO,iBAAiB;AACrD,UAAM,EAAE,SAAS,GAAG,eAAc,IAAK;AACvC,UAAM,OAAO,UAAU,OAAO;AAC9B,QAAI,OAAO,WAAW,aAAa;AACjC,aAAO,uBAAO,IAAI,UAAU,CAAC,IAAI;AAAA,IACnC;AACA,WAAuBC,2BAAAA,IAAI,MAAM,EAAE,GAAG,gBAAgB,KAAK,cAAc;AAAA,EAC3E,CAAC;AACD,OAAK,cAAc,aAAa,IAAI;AACpC,SAAO,EAAE,GAAG,WAAW,CAAC,IAAI,GAAG,KAAI;AACrC,GAAG,CAAA,CAAE;;","x_google_ignoreList":[0]}
@@ -1,8 +1,8 @@
1
- import * as f from "react";
1
+ import * as React from "react";
2
2
  import "react-dom";
3
- import { createSlot as l } from "../../react-slot/dist/index.js";
4
- import { jsx as n } from "react/jsx-runtime";
5
- var u = [
3
+ import { createSlot } from "../../react-slot/dist/index.js";
4
+ import { jsx } from "react/jsx-runtime";
5
+ var NODES = [
6
6
  "a",
7
7
  "button",
8
8
  "div",
@@ -20,14 +20,21 @@ var u = [
20
20
  "span",
21
21
  "svg",
22
22
  "ul"
23
- ], w = u.reduce((t, i) => {
24
- const o = l(`Primitive.${i}`), r = f.forwardRef((e, m) => {
25
- const { asChild: a, ...p } = e, s = a ? o : i;
26
- return typeof window < "u" && (window[/* @__PURE__ */ Symbol.for("radix-ui")] = !0), /* @__PURE__ */ n(s, { ...p, ref: m });
23
+ ];
24
+ var Primitive = NODES.reduce((primitive, node) => {
25
+ const Slot = createSlot(`Primitive.${node}`);
26
+ const Node = React.forwardRef((props, forwardedRef) => {
27
+ const { asChild, ...primitiveProps } = props;
28
+ const Comp = asChild ? Slot : node;
29
+ if (typeof window !== "undefined") {
30
+ window[/* @__PURE__ */ Symbol.for("radix-ui")] = true;
31
+ }
32
+ return /* @__PURE__ */ jsx(Comp, { ...primitiveProps, ref: forwardedRef });
27
33
  });
28
- return r.displayName = `Primitive.${i}`, { ...t, [i]: r };
34
+ Node.displayName = `Primitive.${node}`;
35
+ return { ...primitive, [node]: Node };
29
36
  }, {});
30
37
  export {
31
- w as Primitive
38
+ Primitive
32
39
  };
33
40
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../../../../../../../../node_modules/@radix-ui/react-avatar/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":["NODES","Primitive","primitive","node","Slot","createSlot","Node","React","props","forwardedRef","asChild","primitiveProps","Comp","jsx"],"mappings":";;;;AAKA,IAAIA,IAAQ;AAAA,EACV;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,GACIC,IAAYD,EAAM,OAAO,CAACE,GAAWC,MAAS;AAChD,QAAMC,IAAOC,EAAW,aAAaF,CAAI,EAAE,GACrCG,IAAOC,EAAM,WAAW,CAACC,GAAOC,MAAiB;AACrD,UAAM,EAAE,SAAAC,GAAS,GAAGC,EAAc,IAAKH,GACjCI,IAAOF,IAAUN,IAAOD;AAC9B,WAAI,OAAO,SAAW,QACpB,OAAO,uBAAO,IAAI,UAAU,CAAC,IAAI,KAEZ,gBAAAU,EAAID,GAAM,EAAE,GAAGD,GAAgB,KAAKF,GAAc;AAAA,EAC3E,CAAC;AACD,SAAAH,EAAK,cAAc,aAAaH,CAAI,IAC7B,EAAE,GAAGD,GAAW,CAACC,CAAI,GAAGG,EAAI;AACrC,GAAG,CAAA,CAAE;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.js","sources":["../../../../../../../../../../node_modules/@radix-ui/react-avatar/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":[],"mappings":";;;;AAKA,IAAI,QAAQ;AAAA,EACV;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF;AACG,IAAC,YAAY,MAAM,OAAO,CAAC,WAAW,SAAS;AAChD,QAAM,OAAO,WAAW,aAAa,IAAI,EAAE;AAC3C,QAAM,OAAO,MAAM,WAAW,CAAC,OAAO,iBAAiB;AACrD,UAAM,EAAE,SAAS,GAAG,eAAc,IAAK;AACvC,UAAM,OAAO,UAAU,OAAO;AAC9B,QAAI,OAAO,WAAW,aAAa;AACjC,aAAO,uBAAO,IAAI,UAAU,CAAC,IAAI;AAAA,IACnC;AACA,WAAuB,oBAAI,MAAM,EAAE,GAAG,gBAAgB,KAAK,cAAc;AAAA,EAC3E,CAAC;AACD,OAAK,cAAc,aAAa,IAAI;AACpC,SAAO,EAAE,GAAG,WAAW,CAAC,IAAI,GAAG,KAAI;AACrC,GAAG,CAAA,CAAE;","x_google_ignoreList":[0]}
@@ -1,2 +1,120 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("react"),m=require("../../../../../react-compose-refs/dist/index.cjs"),d=require("react/jsx-runtime");function S(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const i=S(b);var _=Symbol.for("react.lazy"),u=i[" use ".trim().toString()];function j(e){return typeof e=="object"&&e!==null&&"then"in e}function y(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===_&&"_payload"in e&&j(e._payload)}function E(e){const t=C(e),n=i.forwardRef((o,r)=>{let{children:l,...c}=o;y(l)&&typeof u=="function"&&(l=u(l._payload));const s=i.Children.toArray(l),a=s.find(O);if(a){const f=a.props.children,g=s.map(p=>p===a?i.Children.count(f)>1?i.Children.only(null):i.isValidElement(f)?f.props.children:null:p);return d.jsx(t,{...c,ref:r,children:i.isValidElement(f)?i.cloneElement(f,void 0,g):null})}return d.jsx(t,{...c,ref:r,children:l})});return n.displayName=`${e}.Slot`,n}function C(e){const t=i.forwardRef((n,o)=>{let{children:r,...l}=n;if(y(r)&&typeof u=="function"&&(r=u(r._payload)),i.isValidElement(r)){const c=h(r),s=P(l,r.props);return r.type!==i.Fragment&&(s.ref=o?m.composeRefs(o,c):c),i.cloneElement(r,s)}return i.Children.count(r)>1?i.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var R=Symbol("radix.slottable");function O(e){return i.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===R}function P(e,t){const n={...t};for(const o in t){const r=e[o],l=t[o];/^on[A-Z]/.test(o)?r&&l?n[o]=(...s)=>{const a=l(...s);return r(...s),a}:r&&(n[o]=r):o==="style"?n[o]={...r,...l}:o==="className"&&(n[o]=[r,l].filter(Boolean).join(" "))}return{...e,...n}}function h(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}exports.createSlot=E;
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const React = require("react");
4
+ const index = require("../../../../../react-compose-refs/dist/index.cjs");
5
+ const jsxRuntime = require("react/jsx-runtime");
6
+ function _interopNamespaceDefault(e) {
7
+ const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
8
+ if (e) {
9
+ for (const k in e) {
10
+ if (k !== "default") {
11
+ const d = Object.getOwnPropertyDescriptor(e, k);
12
+ Object.defineProperty(n, k, d.get ? d : {
13
+ enumerable: true,
14
+ get: () => e[k]
15
+ });
16
+ }
17
+ }
18
+ }
19
+ n.default = e;
20
+ return Object.freeze(n);
21
+ }
22
+ const React__namespace = /* @__PURE__ */ _interopNamespaceDefault(React);
23
+ var REACT_LAZY_TYPE = /* @__PURE__ */ Symbol.for("react.lazy");
24
+ var use = React__namespace[" use ".trim().toString()];
25
+ function isPromiseLike(value) {
26
+ return typeof value === "object" && value !== null && "then" in value;
27
+ }
28
+ function isLazyComponent(element) {
29
+ return element != null && typeof element === "object" && "$$typeof" in element && element.$$typeof === REACT_LAZY_TYPE && "_payload" in element && isPromiseLike(element._payload);
30
+ }
31
+ // @__NO_SIDE_EFFECTS__
32
+ function createSlot(ownerName) {
33
+ const SlotClone = /* @__PURE__ */ createSlotClone(ownerName);
34
+ const Slot2 = React__namespace.forwardRef((props, forwardedRef) => {
35
+ let { children, ...slotProps } = props;
36
+ if (isLazyComponent(children) && typeof use === "function") {
37
+ children = use(children._payload);
38
+ }
39
+ const childrenArray = React__namespace.Children.toArray(children);
40
+ const slottable = childrenArray.find(isSlottable);
41
+ if (slottable) {
42
+ const newElement = slottable.props.children;
43
+ const newChildren = childrenArray.map((child) => {
44
+ if (child === slottable) {
45
+ if (React__namespace.Children.count(newElement) > 1) return React__namespace.Children.only(null);
46
+ return React__namespace.isValidElement(newElement) ? newElement.props.children : null;
47
+ } else {
48
+ return child;
49
+ }
50
+ });
51
+ return /* @__PURE__ */ jsxRuntime.jsx(SlotClone, { ...slotProps, ref: forwardedRef, children: React__namespace.isValidElement(newElement) ? React__namespace.cloneElement(newElement, void 0, newChildren) : null });
52
+ }
53
+ return /* @__PURE__ */ jsxRuntime.jsx(SlotClone, { ...slotProps, ref: forwardedRef, children });
54
+ });
55
+ Slot2.displayName = `${ownerName}.Slot`;
56
+ return Slot2;
57
+ }
58
+ // @__NO_SIDE_EFFECTS__
59
+ function createSlotClone(ownerName) {
60
+ const SlotClone = React__namespace.forwardRef((props, forwardedRef) => {
61
+ let { children, ...slotProps } = props;
62
+ if (isLazyComponent(children) && typeof use === "function") {
63
+ children = use(children._payload);
64
+ }
65
+ if (React__namespace.isValidElement(children)) {
66
+ const childrenRef = getElementRef(children);
67
+ const props2 = mergeProps(slotProps, children.props);
68
+ if (children.type !== React__namespace.Fragment) {
69
+ props2.ref = forwardedRef ? index.composeRefs(forwardedRef, childrenRef) : childrenRef;
70
+ }
71
+ return React__namespace.cloneElement(children, props2);
72
+ }
73
+ return React__namespace.Children.count(children) > 1 ? React__namespace.Children.only(null) : null;
74
+ });
75
+ SlotClone.displayName = `${ownerName}.SlotClone`;
76
+ return SlotClone;
77
+ }
78
+ var SLOTTABLE_IDENTIFIER = /* @__PURE__ */ Symbol("radix.slottable");
79
+ function isSlottable(child) {
80
+ return React__namespace.isValidElement(child) && typeof child.type === "function" && "__radixId" in child.type && child.type.__radixId === SLOTTABLE_IDENTIFIER;
81
+ }
82
+ function mergeProps(slotProps, childProps) {
83
+ const overrideProps = { ...childProps };
84
+ for (const propName in childProps) {
85
+ const slotPropValue = slotProps[propName];
86
+ const childPropValue = childProps[propName];
87
+ const isHandler = /^on[A-Z]/.test(propName);
88
+ if (isHandler) {
89
+ if (slotPropValue && childPropValue) {
90
+ overrideProps[propName] = (...args) => {
91
+ const result = childPropValue(...args);
92
+ slotPropValue(...args);
93
+ return result;
94
+ };
95
+ } else if (slotPropValue) {
96
+ overrideProps[propName] = slotPropValue;
97
+ }
98
+ } else if (propName === "style") {
99
+ overrideProps[propName] = { ...slotPropValue, ...childPropValue };
100
+ } else if (propName === "className") {
101
+ overrideProps[propName] = [slotPropValue, childPropValue].filter(Boolean).join(" ");
102
+ }
103
+ }
104
+ return { ...slotProps, ...overrideProps };
105
+ }
106
+ function getElementRef(element) {
107
+ let getter = Object.getOwnPropertyDescriptor(element.props, "ref")?.get;
108
+ let mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
109
+ if (mayWarn) {
110
+ return element.ref;
111
+ }
112
+ getter = Object.getOwnPropertyDescriptor(element, "ref")?.get;
113
+ mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
114
+ if (mayWarn) {
115
+ return element.props.ref;
116
+ }
117
+ return element.props.ref || element.ref;
118
+ }
119
+ exports.createSlot = createSlot;
2
120
  //# sourceMappingURL=index.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs","sources":["../../../../../../../../../../node_modules/@radix-ui/react-avatar/node_modules/@radix-ui/react-slot/dist/index.mjs"],"sourcesContent":["// src/slot.tsx\nimport * as React from \"react\";\nimport { composeRefs } from \"@radix-ui/react-compose-refs\";\nimport { Fragment as Fragment2, jsx } from \"react/jsx-runtime\";\nvar REACT_LAZY_TYPE = Symbol.for(\"react.lazy\");\nvar use = React[\" use \".trim().toString()];\nfunction isPromiseLike(value) {\n return typeof value === \"object\" && value !== null && \"then\" in value;\n}\nfunction isLazyComponent(element) {\n return element != null && typeof element === \"object\" && \"$$typeof\" in element && element.$$typeof === REACT_LAZY_TYPE && \"_payload\" in element && isPromiseLike(element._payload);\n}\n// @__NO_SIDE_EFFECTS__\nfunction createSlot(ownerName) {\n const SlotClone = /* @__PURE__ */ createSlotClone(ownerName);\n const Slot2 = React.forwardRef((props, forwardedRef) => {\n let { children, ...slotProps } = props;\n if (isLazyComponent(children) && typeof use === \"function\") {\n children = use(children._payload);\n }\n const childrenArray = React.Children.toArray(children);\n const slottable = childrenArray.find(isSlottable);\n if (slottable) {\n const newElement = slottable.props.children;\n const newChildren = childrenArray.map((child) => {\n if (child === slottable) {\n if (React.Children.count(newElement) > 1) return React.Children.only(null);\n return React.isValidElement(newElement) ? newElement.props.children : null;\n } else {\n return child;\n }\n });\n return /* @__PURE__ */ jsx(SlotClone, { ...slotProps, ref: forwardedRef, children: React.isValidElement(newElement) ? React.cloneElement(newElement, void 0, newChildren) : null });\n }\n return /* @__PURE__ */ jsx(SlotClone, { ...slotProps, ref: forwardedRef, children });\n });\n Slot2.displayName = `${ownerName}.Slot`;\n return Slot2;\n}\nvar Slot = /* @__PURE__ */ createSlot(\"Slot\");\n// @__NO_SIDE_EFFECTS__\nfunction createSlotClone(ownerName) {\n const SlotClone = React.forwardRef((props, forwardedRef) => {\n let { children, ...slotProps } = props;\n if (isLazyComponent(children) && typeof use === \"function\") {\n children = use(children._payload);\n }\n if (React.isValidElement(children)) {\n const childrenRef = getElementRef(children);\n const props2 = mergeProps(slotProps, children.props);\n if (children.type !== React.Fragment) {\n props2.ref = forwardedRef ? composeRefs(forwardedRef, childrenRef) : childrenRef;\n }\n return React.cloneElement(children, props2);\n }\n return React.Children.count(children) > 1 ? React.Children.only(null) : null;\n });\n SlotClone.displayName = `${ownerName}.SlotClone`;\n return SlotClone;\n}\nvar SLOTTABLE_IDENTIFIER = Symbol(\"radix.slottable\");\n// @__NO_SIDE_EFFECTS__\nfunction createSlottable(ownerName) {\n const Slottable2 = ({ children }) => {\n return /* @__PURE__ */ jsx(Fragment2, { children });\n };\n Slottable2.displayName = `${ownerName}.Slottable`;\n Slottable2.__radixId = SLOTTABLE_IDENTIFIER;\n return Slottable2;\n}\nvar Slottable = /* @__PURE__ */ createSlottable(\"Slottable\");\nfunction isSlottable(child) {\n return React.isValidElement(child) && typeof child.type === \"function\" && \"__radixId\" in child.type && child.type.__radixId === SLOTTABLE_IDENTIFIER;\n}\nfunction mergeProps(slotProps, childProps) {\n const overrideProps = { ...childProps };\n for (const propName in childProps) {\n const slotPropValue = slotProps[propName];\n const childPropValue = childProps[propName];\n const isHandler = /^on[A-Z]/.test(propName);\n if (isHandler) {\n if (slotPropValue && childPropValue) {\n overrideProps[propName] = (...args) => {\n const result = childPropValue(...args);\n slotPropValue(...args);\n return result;\n };\n } else if (slotPropValue) {\n overrideProps[propName] = slotPropValue;\n }\n } else if (propName === \"style\") {\n overrideProps[propName] = { ...slotPropValue, ...childPropValue };\n } else if (propName === \"className\") {\n overrideProps[propName] = [slotPropValue, childPropValue].filter(Boolean).join(\" \");\n }\n }\n return { ...slotProps, ...overrideProps };\n}\nfunction getElementRef(element) {\n let getter = Object.getOwnPropertyDescriptor(element.props, \"ref\")?.get;\n let mayWarn = getter && \"isReactWarning\" in getter && getter.isReactWarning;\n if (mayWarn) {\n return element.ref;\n }\n getter = Object.getOwnPropertyDescriptor(element, \"ref\")?.get;\n mayWarn = getter && \"isReactWarning\" in getter && getter.isReactWarning;\n if (mayWarn) {\n return element.props.ref;\n }\n return element.props.ref || element.ref;\n}\nexport {\n Slot as Root,\n Slot,\n Slottable,\n createSlot,\n createSlottable\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["REACT_LAZY_TYPE","use","React","isPromiseLike","value","isLazyComponent","element","createSlot","ownerName","SlotClone","createSlotClone","Slot2","props","forwardedRef","children","slotProps","childrenArray","slottable","isSlottable","newElement","newChildren","child","jsx","childrenRef","getElementRef","props2","mergeProps","composeRefs","SLOTTABLE_IDENTIFIER","childProps","overrideProps","propName","slotPropValue","childPropValue","args","result","getter","mayWarn"],"mappings":"geAIA,IAAIA,EAAkB,OAAO,IAAI,YAAY,EACzCC,EAAMC,EAAM,QAAQ,KAAI,EAAG,SAAQ,CAAE,EACzC,SAASC,EAAcC,EAAO,CAC5B,OAAO,OAAOA,GAAU,UAAYA,IAAU,MAAQ,SAAUA,CAClE,CACA,SAASC,EAAgBC,EAAS,CAChC,OAAOA,GAAW,MAAQ,OAAOA,GAAY,UAAY,aAAcA,GAAWA,EAAQ,WAAaN,GAAmB,aAAcM,GAAWH,EAAcG,EAAQ,QAAQ,CACnL,CAEA,SAASC,EAAWC,EAAW,CAC7B,MAAMC,EAA4BC,E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Q,MAAM,IAEhBA,EAAQ,MAAM,KAAOA,EAAQ,IACtC","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.cjs","sources":["../../../../../../../../../../node_modules/@radix-ui/react-avatar/node_modules/@radix-ui/react-slot/dist/index.mjs"],"sourcesContent":["// src/slot.tsx\nimport * as React from \"react\";\nimport { composeRefs } from \"@radix-ui/react-compose-refs\";\nimport { Fragment as Fragment2, jsx } from \"react/jsx-runtime\";\nvar REACT_LAZY_TYPE = Symbol.for(\"react.lazy\");\nvar use = React[\" use \".trim().toString()];\nfunction isPromiseLike(value) {\n return typeof value === \"object\" && value !== null && \"then\" in value;\n}\nfunction isLazyComponent(element) {\n return element != null && typeof element === \"object\" && \"$$typeof\" in element && element.$$typeof === REACT_LAZY_TYPE && \"_payload\" in element && isPromiseLike(element._payload);\n}\n// @__NO_SIDE_EFFECTS__\nfunction createSlot(ownerName) {\n const SlotClone = /* @__PURE__ */ createSlotClone(ownerName);\n const Slot2 = React.forwardRef((props, forwardedRef) => {\n let { children, ...slotProps } = props;\n if (isLazyComponent(children) && typeof use === \"function\") {\n children = use(children._payload);\n }\n const childrenArray = React.Children.toArray(children);\n const slottable = childrenArray.find(isSlottable);\n if (slottable) {\n const newElement = slottable.props.children;\n const newChildren = childrenArray.map((child) => {\n if (child === slottable) {\n if (React.Children.count(newElement) > 1) return React.Children.only(null);\n return React.isValidElement(newElement) ? newElement.props.children : null;\n } else {\n return child;\n }\n });\n return /* @__PURE__ */ jsx(SlotClone, { ...slotProps, ref: forwardedRef, children: React.isValidElement(newElement) ? React.cloneElement(newElement, void 0, newChildren) : null });\n }\n return /* @__PURE__ */ jsx(SlotClone, { ...slotProps, ref: forwardedRef, children });\n });\n Slot2.displayName = `${ownerName}.Slot`;\n return Slot2;\n}\nvar Slot = /* @__PURE__ */ createSlot(\"Slot\");\n// @__NO_SIDE_EFFECTS__\nfunction createSlotClone(ownerName) {\n const SlotClone = React.forwardRef((props, forwardedRef) => {\n let { children, ...slotProps } = props;\n if (isLazyComponent(children) && typeof use === \"function\") {\n children = use(children._payload);\n }\n if (React.isValidElement(children)) {\n const childrenRef = getElementRef(children);\n const props2 = mergeProps(slotProps, children.props);\n if (children.type !== React.Fragment) {\n props2.ref = forwardedRef ? composeRefs(forwardedRef, childrenRef) : childrenRef;\n }\n return React.cloneElement(children, props2);\n }\n return React.Children.count(children) > 1 ? React.Children.only(null) : null;\n });\n SlotClone.displayName = `${ownerName}.SlotClone`;\n return SlotClone;\n}\nvar SLOTTABLE_IDENTIFIER = Symbol(\"radix.slottable\");\n// @__NO_SIDE_EFFECTS__\nfunction createSlottable(ownerName) {\n const Slottable2 = ({ children }) => {\n return /* @__PURE__ */ jsx(Fragment2, { children });\n };\n Slottable2.displayName = `${ownerName}.Slottable`;\n Slottable2.__radixId = SLOTTABLE_IDENTIFIER;\n return Slottable2;\n}\nvar Slottable = /* @__PURE__ */ createSlottable(\"Slottable\");\nfunction isSlottable(child) {\n return React.isValidElement(child) && typeof child.type === \"function\" && \"__radixId\" in child.type && child.type.__radixId === SLOTTABLE_IDENTIFIER;\n}\nfunction mergeProps(slotProps, childProps) {\n const overrideProps = { ...childProps };\n for (const propName in childProps) {\n const slotPropValue = slotProps[propName];\n const childPropValue = childProps[propName];\n const isHandler = /^on[A-Z]/.test(propName);\n if (isHandler) {\n if (slotPropValue && childPropValue) {\n overrideProps[propName] = (...args) => {\n const result = childPropValue(...args);\n slotPropValue(...args);\n return result;\n };\n } else if (slotPropValue) {\n overrideProps[propName] = slotPropValue;\n }\n } else if (propName === \"style\") {\n overrideProps[propName] = { ...slotPropValue, ...childPropValue };\n } else if (propName === \"className\") {\n overrideProps[propName] = [slotPropValue, childPropValue].filter(Boolean).join(\" \");\n }\n }\n return { ...slotProps, ...overrideProps };\n}\nfunction getElementRef(element) {\n let getter = Object.getOwnPropertyDescriptor(element.props, \"ref\")?.get;\n let mayWarn = getter && \"isReactWarning\" in getter && getter.isReactWarning;\n if (mayWarn) {\n return element.ref;\n }\n getter = Object.getOwnPropertyDescriptor(element, \"ref\")?.get;\n mayWarn = getter && \"isReactWarning\" in getter && getter.isReactWarning;\n if (mayWarn) {\n return element.props.ref;\n }\n return element.props.ref || element.ref;\n}\nexport {\n Slot as Root,\n Slot,\n Slottable,\n createSlot,\n createSlottable\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["React","jsx","composeRefs"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAIA,IAAI,kBAAkB,uBAAO,IAAI,YAAY;AAC7C,IAAI,MAAMA,iBAAM,QAAQ,KAAI,EAAG,SAAQ,CAAE;AACzC,SAAS,cAAc,OAAO;AAC5B,SAAO,OAAO,UAAU,YAAY,UAAU,QAAQ,UAAU;AAClE;AACA,SAAS,gBAAgB,SAAS;AAChC,SAAO,WAAW,QAAQ,OAAO,YAAY,YAAY,cAAc,WAAW,QAAQ,aAAa,mBAAmB,cAAc,WAAW,cAAc,QAAQ,QAAQ;AACnL;AAAA;AAEA,SAAS,WAAW,WAAW;AAC7B,QAAM,YAA4B,gCAAgB,SAAS;AAC3D,QAAM,QAAQA,iBAAM,WAAW,CAAC,OAAO,iBAAiB;AACtD,QAAI,EAAE,UAAU,GAAG,UAAS,IAAK;AACjC,QAAI,gBAAgB,QAAQ,KAAK,OAAO,QAAQ,YAAY;AAC1D,iBAAW,IAAI,SAAS,QAAQ;AAAA,IAClC;AACA,UAAM,gBAAgBA,iBAAM,SAAS,QAAQ,QAAQ;AACrD,UAAM,YAAY,cAAc,KAAK,WAAW;AAChD,QAAI,WAAW;AACb,YAAM,aAAa,UAAU,MAAM;AACnC,YAAM,cAAc,cAAc,IAAI,CAAC,UAAU;AAC/C,YAAI,UAAU,WAAW;AACvB,cAAIA,iBAAM,SAAS,MAAM,UAAU,IAAI,EAAG,QAAOA,iBAAM,SAAS,KAAK,IAAI;AACzE,iBAAOA,iBAAM,eAAe,UAAU,IAAI,WAAW,MAAM,WAAW;AAAA,QACxE,OAAO;AACL,iBAAO;AAAA,QACT;AAAA,M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