@noodleseed/one 0.32.0 → 0.33.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (702) hide show
  1. package/dist/deploy.js +1 -1
  2. package/dist/deploy.js.map +1 -1
  3. package/dist/index.d.ts +1 -0
  4. package/dist/index.d.ts.map +1 -1
  5. package/dist/index.js.map +1 -1
  6. package/dist/project-scaffold-templates.d.ts +9 -6
  7. package/dist/project-scaffold-templates.d.ts.map +1 -1
  8. package/dist/project-scaffold-templates.js +3 -198
  9. package/dist/project-scaffold-templates.js.map +1 -1
  10. package/dist/project.d.ts.map +1 -1
  11. package/dist/project.js +2 -1
  12. package/dist/project.js.map +1 -1
  13. package/dist/react-widget-build.js +10 -0
  14. package/dist/react-widget-build.js.map +1 -1
  15. package/dist/react.d.ts +2 -2
  16. package/dist/react.d.ts.map +1 -1
  17. package/dist/react.js +2 -1
  18. package/dist/react.js.map +1 -1
  19. package/dist/widget-scaffold-template.d.ts +4 -0
  20. package/dist/widget-scaffold-template.d.ts.map +1 -0
  21. package/dist/widget-scaffold-template.js +140 -0
  22. package/dist/widget-scaffold-template.js.map +1 -0
  23. package/dist/widget-showcase-template.d.ts +5 -0
  24. package/dist/widget-showcase-template.d.ts.map +1 -0
  25. package/dist/widget-showcase-template.js +478 -0
  26. package/dist/widget-showcase-template.js.map +1 -0
  27. package/node_modules/@floating-ui/core/LICENSE +20 -0
  28. package/node_modules/@floating-ui/core/README.md +4 -0
  29. package/node_modules/@floating-ui/core/dist/floating-ui.core.browser.min.mjs +1 -0
  30. package/node_modules/@floating-ui/core/dist/floating-ui.core.browser.mjs +1184 -0
  31. package/node_modules/@floating-ui/core/dist/floating-ui.core.d.mts +531 -0
  32. package/node_modules/@floating-ui/core/dist/floating-ui.core.d.ts +531 -0
  33. package/node_modules/@floating-ui/core/dist/floating-ui.core.esm.js +1058 -0
  34. package/node_modules/@floating-ui/core/dist/floating-ui.core.mjs +1058 -0
  35. package/node_modules/@floating-ui/core/dist/floating-ui.core.umd.js +1203 -0
  36. package/node_modules/@floating-ui/core/dist/floating-ui.core.umd.min.js +1 -0
  37. package/node_modules/@floating-ui/core/package.json +63 -0
  38. package/node_modules/@floating-ui/dom/LICENSE +20 -0
  39. package/node_modules/@floating-ui/dom/README.md +4 -0
  40. package/node_modules/@floating-ui/dom/dist/floating-ui.dom.browser.min.mjs +1 -0
  41. package/node_modules/@floating-ui/dom/dist/floating-ui.dom.browser.mjs +956 -0
  42. package/node_modules/@floating-ui/dom/dist/floating-ui.dom.d.mts +358 -0
  43. package/node_modules/@floating-ui/dom/dist/floating-ui.dom.d.ts +358 -0
  44. package/node_modules/@floating-ui/dom/dist/floating-ui.dom.esm.js +781 -0
  45. package/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs +781 -0
  46. package/node_modules/@floating-ui/dom/dist/floating-ui.dom.umd.js +975 -0
  47. package/node_modules/@floating-ui/dom/dist/floating-ui.dom.umd.min.js +1 -0
  48. package/node_modules/@floating-ui/dom/package.json +70 -0
  49. package/node_modules/@floating-ui/react-dom/LICENSE +20 -0
  50. package/node_modules/@floating-ui/react-dom/README.md +3 -0
  51. package/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.d.mts +307 -0
  52. package/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.d.ts +307 -0
  53. package/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.esm.js +406 -0
  54. package/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.mjs +406 -0
  55. package/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.umd.js +457 -0
  56. package/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.umd.min.js +1 -0
  57. package/node_modules/@floating-ui/react-dom/package.json +75 -0
  58. package/node_modules/@floating-ui/utils/LICENSE +20 -0
  59. package/node_modules/@floating-ui/utils/README.md +4 -0
  60. package/node_modules/@floating-ui/utils/dist/floating-ui.utils.d.mts +103 -0
  61. package/node_modules/@floating-ui/utils/dist/floating-ui.utils.d.ts +103 -0
  62. package/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.d.mts +47 -0
  63. package/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.d.ts +47 -0
  64. package/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.esm.js +165 -0
  65. package/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs +165 -0
  66. package/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.umd.js +192 -0
  67. package/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.umd.min.js +1 -0
  68. package/node_modules/@floating-ui/utils/dist/floating-ui.utils.esm.js +136 -0
  69. package/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs +136 -0
  70. package/node_modules/@floating-ui/utils/dist/floating-ui.utils.umd.js +167 -0
  71. package/node_modules/@floating-ui/utils/dist/floating-ui.utils.umd.min.js +1 -0
  72. package/node_modules/@floating-ui/utils/dom/floating-ui.utils.dom.d.ts +47 -0
  73. package/node_modules/@floating-ui/utils/dom/floating-ui.utils.dom.esm.js +165 -0
  74. package/node_modules/@floating-ui/utils/dom/floating-ui.utils.dom.umd.js +192 -0
  75. package/node_modules/@floating-ui/utils/dom/package.json +6 -0
  76. package/node_modules/@floating-ui/utils/package.json +70 -0
  77. package/node_modules/@noodle-borg/agent-kit/dist/generated/example-files.js +1 -1
  78. package/node_modules/@noodle-borg/agent-kit/dist/generated/example-files.js.map +1 -1
  79. package/node_modules/@noodle-borg/agent-kit/dist/index.d.ts.map +1 -1
  80. package/node_modules/@noodle-borg/agent-kit/dist/index.js +4 -0
  81. package/node_modules/@noodle-borg/agent-kit/dist/index.js.map +1 -1
  82. package/node_modules/@noodle-borg/agent-kit/dist/skill-authoring-refs.d.ts.map +1 -1
  83. package/node_modules/@noodle-borg/agent-kit/dist/skill-authoring-refs.js +5 -1
  84. package/node_modules/@noodle-borg/agent-kit/dist/skill-authoring-refs.js.map +1 -1
  85. package/node_modules/@noodle-borg/agent-kit/package.json +1 -1
  86. package/node_modules/@noodle-borg/authoring/dist/index.d.ts +0 -2
  87. package/node_modules/@noodle-borg/authoring/dist/index.d.ts.map +1 -1
  88. package/node_modules/@noodle-borg/authoring/dist/index.js +0 -1
  89. package/node_modules/@noodle-borg/authoring/dist/index.js.map +1 -1
  90. package/node_modules/@noodle-borg/authoring/dist/react/bridge.d.ts +22 -2
  91. package/node_modules/@noodle-borg/authoring/dist/react/bridge.d.ts.map +1 -1
  92. package/node_modules/@noodle-borg/authoring/dist/react/bridge.js +15 -6
  93. package/node_modules/@noodle-borg/authoring/dist/react/bridge.js.map +1 -1
  94. package/node_modules/@noodle-borg/authoring/dist/react/components.d.ts +399 -665
  95. package/node_modules/@noodle-borg/authoring/dist/react/components.d.ts.map +1 -1
  96. package/node_modules/@noodle-borg/authoring/dist/react/components.js +113 -22
  97. package/node_modules/@noodle-borg/authoring/dist/react/components.js.map +1 -1
  98. package/node_modules/@noodle-borg/authoring/dist/react/display-components.d.ts +39 -0
  99. package/node_modules/@noodle-borg/authoring/dist/react/display-components.d.ts.map +1 -0
  100. package/node_modules/@noodle-borg/authoring/dist/react/display-components.js +55 -0
  101. package/node_modules/@noodle-borg/authoring/dist/react/display-components.js.map +1 -0
  102. package/node_modules/@noodle-borg/authoring/dist/react/field-context.d.ts +28 -0
  103. package/node_modules/@noodle-borg/authoring/dist/react/field-context.d.ts.map +1 -0
  104. package/node_modules/@noodle-borg/authoring/dist/react/field-context.js +20 -0
  105. package/node_modules/@noodle-borg/authoring/dist/react/field-context.js.map +1 -0
  106. package/node_modules/@noodle-borg/authoring/dist/react/form-components.d.ts +114 -0
  107. package/node_modules/@noodle-borg/authoring/dist/react/form-components.d.ts.map +1 -0
  108. package/node_modules/@noodle-borg/authoring/dist/react/form-components.js +147 -0
  109. package/node_modules/@noodle-borg/authoring/dist/react/form-components.js.map +1 -0
  110. package/node_modules/@noodle-borg/authoring/dist/react/hooks.d.ts +2 -2
  111. package/node_modules/@noodle-borg/authoring/dist/react/hooks.d.ts.map +1 -1
  112. package/node_modules/@noodle-borg/authoring/dist/react/hooks.js.map +1 -1
  113. package/node_modules/@noodle-borg/authoring/dist/react/index.d.ts +4 -1
  114. package/node_modules/@noodle-borg/authoring/dist/react/index.d.ts.map +1 -1
  115. package/node_modules/@noodle-borg/authoring/dist/react/index.js +3 -0
  116. package/node_modules/@noodle-borg/authoring/dist/react/index.js.map +1 -1
  117. package/node_modules/@noodle-borg/authoring/dist/react/native-components.d.ts +76 -76
  118. package/node_modules/@noodle-borg/authoring/dist/react/overlay-components.d.ts +67 -0
  119. package/node_modules/@noodle-borg/authoring/dist/react/overlay-components.d.ts.map +1 -0
  120. package/node_modules/@noodle-borg/authoring/dist/react/overlay-components.js +86 -0
  121. package/node_modules/@noodle-borg/authoring/dist/react/overlay-components.js.map +1 -0
  122. package/node_modules/@noodle-borg/authoring/dist/react/semantic-components.d.ts +971 -386
  123. package/node_modules/@noodle-borg/authoring/dist/react/semantic-components.d.ts.map +1 -1
  124. package/node_modules/@noodle-borg/authoring/dist/react/semantic-components.js +57 -10
  125. package/node_modules/@noodle-borg/authoring/dist/react/semantic-components.js.map +1 -1
  126. package/node_modules/@noodle-borg/authoring/dist/react.d.ts +2 -2
  127. package/node_modules/@noodle-borg/authoring/dist/react.d.ts.map +1 -1
  128. package/node_modules/@noodle-borg/authoring/dist/react.js +2 -1
  129. package/node_modules/@noodle-borg/authoring/dist/react.js.map +1 -1
  130. package/node_modules/@noodle-borg/authoring/dist/server.d.ts.map +1 -1
  131. package/node_modules/@noodle-borg/authoring/dist/server.js +20 -4
  132. package/node_modules/@noodle-borg/authoring/dist/server.js.map +1 -1
  133. package/node_modules/@noodle-borg/authoring/package.json +7 -1
  134. package/node_modules/@noodle-borg/connector-defs/dist/index.d.ts +1 -1
  135. package/node_modules/@noodle-borg/connector-defs/dist/index.d.ts.map +1 -1
  136. package/node_modules/@noodle-borg/connector-defs/dist/index.js.map +1 -1
  137. package/node_modules/@noodle-borg/protocol/dist/widget/react-bridge-bootstrap.d.ts +1 -1
  138. package/node_modules/@noodle-borg/protocol/dist/widget/react-bridge-bootstrap.d.ts.map +1 -1
  139. package/node_modules/@noodle-borg/protocol/dist/widget/react-bridge-bootstrap.js +26 -2
  140. package/node_modules/@noodle-borg/protocol/dist/widget/react-bridge-bootstrap.js.map +1 -1
  141. package/node_modules/@noodle-borg/service/dist/connector-normalize.d.ts +6 -0
  142. package/node_modules/@noodle-borg/service/dist/connector-normalize.d.ts.map +1 -0
  143. package/node_modules/@noodle-borg/service/dist/connector-normalize.js +80 -0
  144. package/node_modules/@noodle-borg/service/dist/connector-normalize.js.map +1 -0
  145. package/node_modules/@noodle-borg/service/dist/registry.d.ts.map +1 -1
  146. package/node_modules/@noodle-borg/service/dist/registry.js +10 -4
  147. package/node_modules/@noodle-borg/service/dist/registry.js.map +1 -1
  148. package/node_modules/@radix-ui/primitive/LICENSE +21 -0
  149. package/node_modules/@radix-ui/primitive/README.md +3 -0
  150. package/node_modules/@radix-ui/primitive/dist/index.d.mts +20 -0
  151. package/node_modules/@radix-ui/primitive/dist/index.d.ts +20 -0
  152. package/node_modules/@radix-ui/primitive/dist/index.js +76 -0
  153. package/node_modules/@radix-ui/primitive/dist/index.js.map +7 -0
  154. package/node_modules/@radix-ui/primitive/dist/index.mjs +53 -0
  155. package/node_modules/@radix-ui/primitive/dist/index.mjs.map +7 -0
  156. package/node_modules/@radix-ui/primitive/package.json +47 -0
  157. package/node_modules/@radix-ui/react-arrow/LICENSE +21 -0
  158. package/node_modules/@radix-ui/react-arrow/README.md +3 -0
  159. package/node_modules/@radix-ui/react-arrow/dist/index.d.mts +10 -0
  160. package/node_modules/@radix-ui/react-arrow/dist/index.d.ts +10 -0
  161. package/node_modules/@radix-ui/react-arrow/dist/index.js +60 -0
  162. package/node_modules/@radix-ui/react-arrow/dist/index.js.map +7 -0
  163. package/node_modules/@radix-ui/react-arrow/dist/index.mjs +27 -0
  164. package/node_modules/@radix-ui/react-arrow/dist/index.mjs.map +7 -0
  165. package/node_modules/@radix-ui/react-arrow/package.json +68 -0
  166. package/node_modules/@radix-ui/react-collection/LICENSE +21 -0
  167. package/node_modules/@radix-ui/react-collection/README.md +3 -0
  168. package/node_modules/@radix-ui/react-collection/dist/index.d.mts +98 -0
  169. package/node_modules/@radix-ui/react-collection/dist/index.d.ts +98 -0
  170. package/node_modules/@radix-ui/react-collection/dist/index.js +577 -0
  171. package/node_modules/@radix-ui/react-collection/dist/index.js.map +7 -0
  172. package/node_modules/@radix-ui/react-collection/dist/index.mjs +545 -0
  173. package/node_modules/@radix-ui/react-collection/dist/index.mjs.map +7 -0
  174. package/node_modules/@radix-ui/react-collection/package.json +71 -0
  175. package/node_modules/@radix-ui/react-compose-refs/LICENSE +21 -0
  176. package/node_modules/@radix-ui/react-compose-refs/README.md +3 -0
  177. package/node_modules/@radix-ui/react-compose-refs/dist/index.d.mts +15 -0
  178. package/node_modules/@radix-ui/react-compose-refs/dist/index.d.ts +15 -0
  179. package/node_modules/@radix-ui/react-compose-refs/dist/index.js +74 -0
  180. package/node_modules/@radix-ui/react-compose-refs/dist/index.js.map +7 -0
  181. package/node_modules/@radix-ui/react-compose-refs/dist/index.mjs +41 -0
  182. package/node_modules/@radix-ui/react-compose-refs/dist/index.mjs.map +7 -0
  183. package/node_modules/@radix-ui/react-compose-refs/package.json +60 -0
  184. package/node_modules/@radix-ui/react-context/LICENSE +21 -0
  185. package/node_modules/@radix-ui/react-context/README.md +3 -0
  186. package/node_modules/@radix-ui/react-context/dist/index.d.mts +21 -0
  187. package/node_modules/@radix-ui/react-context/dist/index.d.ts +21 -0
  188. package/node_modules/@radix-ui/react-context/dist/index.js +116 -0
  189. package/node_modules/@radix-ui/react-context/dist/index.js.map +7 -0
  190. package/node_modules/@radix-ui/react-context/dist/index.mjs +83 -0
  191. package/node_modules/@radix-ui/react-context/dist/index.mjs.map +7 -0
  192. package/node_modules/@radix-ui/react-context/package.json +60 -0
  193. package/node_modules/@radix-ui/react-dialog/LICENSE +21 -0
  194. package/node_modules/@radix-ui/react-dialog/README.md +3 -0
  195. package/node_modules/@radix-ui/react-dialog/dist/index.d.mts +99 -0
  196. package/node_modules/@radix-ui/react-dialog/dist/index.d.ts +99 -0
  197. package/node_modules/@radix-ui/react-dialog/dist/index.js +330 -0
  198. package/node_modules/@radix-ui/react-dialog/dist/index.js.map +7 -0
  199. package/node_modules/@radix-ui/react-dialog/dist/index.mjs +298 -0
  200. package/node_modules/@radix-ui/react-dialog/dist/index.mjs.map +7 -0
  201. package/node_modules/@radix-ui/react-dialog/package.json +81 -0
  202. package/node_modules/@radix-ui/react-direction/LICENSE +21 -0
  203. package/node_modules/@radix-ui/react-direction/README.md +3 -0
  204. package/node_modules/@radix-ui/react-direction/dist/index.d.mts +12 -0
  205. package/node_modules/@radix-ui/react-direction/dist/index.d.ts +12 -0
  206. package/node_modules/@radix-ui/react-direction/dist/index.js +53 -0
  207. package/node_modules/@radix-ui/react-direction/dist/index.js.map +7 -0
  208. package/node_modules/@radix-ui/react-direction/dist/index.mjs +21 -0
  209. package/node_modules/@radix-ui/react-direction/dist/index.mjs.map +7 -0
  210. package/node_modules/@radix-ui/react-direction/package.json +60 -0
  211. package/node_modules/@radix-ui/react-dismissable-layer/LICENSE +21 -0
  212. package/node_modules/@radix-ui/react-dismissable-layer/README.md +3 -0
  213. package/node_modules/@radix-ui/react-dismissable-layer/dist/index.d.mts +62 -0
  214. package/node_modules/@radix-ui/react-dismissable-layer/dist/index.d.ts +62 -0
  215. package/node_modules/@radix-ui/react-dismissable-layer/dist/index.js +364 -0
  216. package/node_modules/@radix-ui/react-dismissable-layer/dist/index.js.map +7 -0
  217. package/node_modules/@radix-ui/react-dismissable-layer/dist/index.mjs +332 -0
  218. package/node_modules/@radix-ui/react-dismissable-layer/dist/index.mjs.map +7 -0
  219. package/node_modules/@radix-ui/react-dismissable-layer/package.json +73 -0
  220. package/node_modules/@radix-ui/react-dropdown-menu/LICENSE +21 -0
  221. package/node_modules/@radix-ui/react-dropdown-menu/README.md +3 -0
  222. package/node_modules/@radix-ui/react-dropdown-menu/dist/index.d.mts +97 -0
  223. package/node_modules/@radix-ui/react-dropdown-menu/dist/index.d.ts +97 -0
  224. package/node_modules/@radix-ui/react-dropdown-menu/dist/index.js +338 -0
  225. package/node_modules/@radix-ui/react-dropdown-menu/dist/index.js.map +7 -0
  226. package/node_modules/@radix-ui/react-dropdown-menu/dist/index.mjs +306 -0
  227. package/node_modules/@radix-ui/react-dropdown-menu/dist/index.mjs.map +7 -0
  228. package/node_modules/@radix-ui/react-dropdown-menu/package.json +76 -0
  229. package/node_modules/@radix-ui/react-focus-guards/LICENSE +21 -0
  230. package/node_modules/@radix-ui/react-focus-guards/README.md +3 -0
  231. package/node_modules/@radix-ui/react-focus-guards/dist/index.d.mts +13 -0
  232. package/node_modules/@radix-ui/react-focus-guards/dist/index.d.ts +13 -0
  233. package/node_modules/@radix-ui/react-focus-guards/dist/index.js +81 -0
  234. package/node_modules/@radix-ui/react-focus-guards/dist/index.js.map +7 -0
  235. package/node_modules/@radix-ui/react-focus-guards/dist/index.mjs +49 -0
  236. package/node_modules/@radix-ui/react-focus-guards/dist/index.mjs.map +7 -0
  237. package/node_modules/@radix-ui/react-focus-guards/package.json +60 -0
  238. package/node_modules/@radix-ui/react-focus-scope/LICENSE +21 -0
  239. package/node_modules/@radix-ui/react-focus-scope/README.md +3 -0
  240. package/node_modules/@radix-ui/react-focus-scope/dist/index.d.mts +32 -0
  241. package/node_modules/@radix-ui/react-focus-scope/dist/index.d.ts +32 -0
  242. package/node_modules/@radix-ui/react-focus-scope/dist/index.js +246 -0
  243. package/node_modules/@radix-ui/react-focus-scope/dist/index.js.map +7 -0
  244. package/node_modules/@radix-ui/react-focus-scope/dist/index.mjs +214 -0
  245. package/node_modules/@radix-ui/react-focus-scope/dist/index.mjs.map +7 -0
  246. package/node_modules/@radix-ui/react-focus-scope/package.json +70 -0
  247. package/node_modules/@radix-ui/react-id/LICENSE +21 -0
  248. package/node_modules/@radix-ui/react-id/README.md +3 -0
  249. package/node_modules/@radix-ui/react-id/dist/index.d.mts +3 -0
  250. package/node_modules/@radix-ui/react-id/dist/index.d.ts +3 -0
  251. package/node_modules/@radix-ui/react-id/dist/index.js +49 -0
  252. package/node_modules/@radix-ui/react-id/dist/index.js.map +7 -0
  253. package/node_modules/@radix-ui/react-id/dist/index.mjs +16 -0
  254. package/node_modules/@radix-ui/react-id/dist/index.mjs.map +7 -0
  255. package/node_modules/@radix-ui/react-id/package.json +63 -0
  256. package/node_modules/@radix-ui/react-menu/LICENSE +21 -0
  257. package/node_modules/@radix-ui/react-menu/README.md +3 -0
  258. package/node_modules/@radix-ui/react-menu/dist/index.d.mts +175 -0
  259. package/node_modules/@radix-ui/react-menu/dist/index.d.ts +175 -0
  260. package/node_modules/@radix-ui/react-menu/dist/index.js +913 -0
  261. package/node_modules/@radix-ui/react-menu/dist/index.js.map +7 -0
  262. package/node_modules/@radix-ui/react-menu/dist/index.mjs +881 -0
  263. package/node_modules/@radix-ui/react-menu/dist/index.mjs.map +7 -0
  264. package/node_modules/@radix-ui/react-menu/package.json +86 -0
  265. package/node_modules/@radix-ui/react-popover/LICENSE +21 -0
  266. package/node_modules/@radix-ui/react-popover/README.md +3 -0
  267. package/node_modules/@radix-ui/react-popover/dist/index.d.mts +85 -0
  268. package/node_modules/@radix-ui/react-popover/dist/index.d.ts +85 -0
  269. package/node_modules/@radix-ui/react-popover/dist/index.js +353 -0
  270. package/node_modules/@radix-ui/react-popover/dist/index.js.map +7 -0
  271. package/node_modules/@radix-ui/react-popover/dist/index.mjs +321 -0
  272. package/node_modules/@radix-ui/react-popover/dist/index.mjs.map +7 -0
  273. package/node_modules/@radix-ui/react-popover/package.json +82 -0
  274. package/node_modules/@radix-ui/react-popper/LICENSE +21 -0
  275. package/node_modules/@radix-ui/react-popper/README.md +3 -0
  276. package/node_modules/@radix-ui/react-popper/dist/index.d.mts +46 -0
  277. package/node_modules/@radix-ui/react-popper/dist/index.d.ts +46 -0
  278. package/node_modules/@radix-ui/react-popper/dist/index.js +384 -0
  279. package/node_modules/@radix-ui/react-popper/dist/index.js.map +7 -0
  280. package/node_modules/@radix-ui/react-popper/dist/index.mjs +362 -0
  281. package/node_modules/@radix-ui/react-popper/dist/index.mjs.map +7 -0
  282. package/node_modules/@radix-ui/react-popper/package.json +78 -0
  283. package/node_modules/@radix-ui/react-portal/LICENSE +21 -0
  284. package/node_modules/@radix-ui/react-portal/README.md +3 -0
  285. package/node_modules/@radix-ui/react-portal/dist/index.d.mts +14 -0
  286. package/node_modules/@radix-ui/react-portal/dist/index.d.ts +14 -0
  287. package/node_modules/@radix-ui/react-portal/dist/index.js +55 -0
  288. package/node_modules/@radix-ui/react-portal/dist/index.js.map +7 -0
  289. package/node_modules/@radix-ui/react-portal/dist/index.mjs +23 -0
  290. package/node_modules/@radix-ui/react-portal/dist/index.mjs.map +7 -0
  291. package/node_modules/@radix-ui/react-portal/package.json +69 -0
  292. package/node_modules/@radix-ui/react-presence/LICENSE +21 -0
  293. package/node_modules/@radix-ui/react-presence/README.md +3 -0
  294. package/node_modules/@radix-ui/react-presence/dist/index.d.mts +12 -0
  295. package/node_modules/@radix-ui/react-presence/dist/index.d.ts +12 -0
  296. package/node_modules/@radix-ui/react-presence/dist/index.js +204 -0
  297. package/node_modules/@radix-ui/react-presence/dist/index.js.map +7 -0
  298. package/node_modules/@radix-ui/react-presence/dist/index.mjs +172 -0
  299. package/node_modules/@radix-ui/react-presence/dist/index.mjs.map +7 -0
  300. package/node_modules/@radix-ui/react-presence/package.json +68 -0
  301. package/node_modules/@radix-ui/react-primitive/LICENSE +21 -0
  302. package/node_modules/@radix-ui/react-primitive/README.md +3 -0
  303. package/node_modules/@radix-ui/react-primitive/dist/index.d.mts +57 -0
  304. package/node_modules/@radix-ui/react-primitive/dist/index.d.ts +57 -0
  305. package/node_modules/@radix-ui/react-primitive/dist/index.js +80 -0
  306. package/node_modules/@radix-ui/react-primitive/dist/index.js.map +7 -0
  307. package/node_modules/@radix-ui/react-primitive/dist/index.mjs +47 -0
  308. package/node_modules/@radix-ui/react-primitive/dist/index.mjs.map +7 -0
  309. package/node_modules/@radix-ui/react-primitive/package.json +68 -0
  310. package/node_modules/@radix-ui/react-roving-focus/LICENSE +21 -0
  311. package/node_modules/@radix-ui/react-roving-focus/README.md +3 -0
  312. package/node_modules/@radix-ui/react-roving-focus/dist/index.d.mts +49 -0
  313. package/node_modules/@radix-ui/react-roving-focus/dist/index.d.ts +49 -0
  314. package/node_modules/@radix-ui/react-roving-focus/dist/index.js +263 -0
  315. package/node_modules/@radix-ui/react-roving-focus/dist/index.js.map +7 -0
  316. package/node_modules/@radix-ui/react-roving-focus/dist/index.mjs +231 -0
  317. package/node_modules/@radix-ui/react-roving-focus/dist/index.mjs.map +7 -0
  318. package/node_modules/@radix-ui/react-roving-focus/package.json +76 -0
  319. package/node_modules/@radix-ui/react-slot/LICENSE +21 -0
  320. package/node_modules/@radix-ui/react-slot/README.md +3 -0
  321. package/node_modules/@radix-ui/react-slot/dist/index.d.mts +29 -0
  322. package/node_modules/@radix-ui/react-slot/dist/index.d.ts +29 -0
  323. package/node_modules/@radix-ui/react-slot/dist/index.js +170 -0
  324. package/node_modules/@radix-ui/react-slot/dist/index.js.map +7 -0
  325. package/node_modules/@radix-ui/react-slot/dist/index.mjs +137 -0
  326. package/node_modules/@radix-ui/react-slot/dist/index.mjs.map +7 -0
  327. package/node_modules/@radix-ui/react-slot/package.json +63 -0
  328. package/node_modules/@radix-ui/react-tooltip/LICENSE +21 -0
  329. package/node_modules/@radix-ui/react-tooltip/README.md +3 -0
  330. package/node_modules/@radix-ui/react-tooltip/dist/index.d.mts +101 -0
  331. package/node_modules/@radix-ui/react-tooltip/dist/index.d.ts +101 -0
  332. package/node_modules/@radix-ui/react-tooltip/dist/index.js +543 -0
  333. package/node_modules/@radix-ui/react-tooltip/dist/index.js.map +7 -0
  334. package/node_modules/@radix-ui/react-tooltip/dist/index.mjs +511 -0
  335. package/node_modules/@radix-ui/react-tooltip/dist/index.mjs.map +7 -0
  336. package/node_modules/@radix-ui/react-tooltip/package.json +79 -0
  337. package/node_modules/@radix-ui/react-use-callback-ref/LICENSE +21 -0
  338. package/node_modules/@radix-ui/react-use-callback-ref/README.md +3 -0
  339. package/node_modules/@radix-ui/react-use-callback-ref/dist/index.d.mts +7 -0
  340. package/node_modules/@radix-ui/react-use-callback-ref/dist/index.d.ts +7 -0
  341. package/node_modules/@radix-ui/react-use-callback-ref/dist/index.js +46 -0
  342. package/node_modules/@radix-ui/react-use-callback-ref/dist/index.js.map +7 -0
  343. package/node_modules/@radix-ui/react-use-callback-ref/dist/index.mjs +13 -0
  344. package/node_modules/@radix-ui/react-use-callback-ref/dist/index.mjs.map +7 -0
  345. package/node_modules/@radix-ui/react-use-callback-ref/package.json +60 -0
  346. package/node_modules/@radix-ui/react-use-controllable-state/LICENSE +21 -0
  347. package/node_modules/@radix-ui/react-use-controllable-state/README.md +3 -0
  348. package/node_modules/@radix-ui/react-use-controllable-state/dist/index.d.mts +40 -0
  349. package/node_modules/@radix-ui/react-use-controllable-state/dist/index.d.ts +40 -0
  350. package/node_modules/@radix-ui/react-use-controllable-state/dist/index.js +169 -0
  351. package/node_modules/@radix-ui/react-use-controllable-state/dist/index.js.map +7 -0
  352. package/node_modules/@radix-ui/react-use-controllable-state/dist/index.mjs +136 -0
  353. package/node_modules/@radix-ui/react-use-controllable-state/dist/index.mjs.map +7 -0
  354. package/node_modules/@radix-ui/react-use-controllable-state/package.json +64 -0
  355. package/node_modules/@radix-ui/react-use-effect-event/LICENSE +21 -0
  356. package/node_modules/@radix-ui/react-use-effect-event/README.md +5 -0
  357. package/node_modules/@radix-ui/react-use-effect-event/dist/index.d.mts +8 -0
  358. package/node_modules/@radix-ui/react-use-effect-event/dist/index.d.ts +8 -0
  359. package/node_modules/@radix-ui/react-use-effect-event/dist/index.js +60 -0
  360. package/node_modules/@radix-ui/react-use-effect-event/dist/index.js.map +7 -0
  361. package/node_modules/@radix-ui/react-use-effect-event/dist/index.mjs +27 -0
  362. package/node_modules/@radix-ui/react-use-effect-event/dist/index.mjs.map +7 -0
  363. package/node_modules/@radix-ui/react-use-effect-event/package.json +65 -0
  364. package/node_modules/@radix-ui/react-use-effect-event/src/index.ts +1 -0
  365. package/node_modules/@radix-ui/react-use-effect-event/src/use-effect-event.tsx +36 -0
  366. package/node_modules/@radix-ui/react-use-escape-keydown/LICENSE +21 -0
  367. package/node_modules/@radix-ui/react-use-escape-keydown/README.md +3 -0
  368. package/node_modules/@radix-ui/react-use-escape-keydown/dist/index.d.mts +6 -0
  369. package/node_modules/@radix-ui/react-use-escape-keydown/dist/index.d.ts +6 -0
  370. package/node_modules/@radix-ui/react-use-escape-keydown/dist/index.js +52 -0
  371. package/node_modules/@radix-ui/react-use-escape-keydown/dist/index.js.map +7 -0
  372. package/node_modules/@radix-ui/react-use-escape-keydown/dist/index.mjs +19 -0
  373. package/node_modules/@radix-ui/react-use-escape-keydown/dist/index.mjs.map +7 -0
  374. package/node_modules/@radix-ui/react-use-escape-keydown/package.json +63 -0
  375. package/node_modules/@radix-ui/react-use-layout-effect/LICENSE +21 -0
  376. package/node_modules/@radix-ui/react-use-layout-effect/README.md +3 -0
  377. package/node_modules/@radix-ui/react-use-layout-effect/dist/index.d.mts +12 -0
  378. package/node_modules/@radix-ui/react-use-layout-effect/dist/index.d.ts +12 -0
  379. package/node_modules/@radix-ui/react-use-layout-effect/dist/index.js +41 -0
  380. package/node_modules/@radix-ui/react-use-layout-effect/dist/index.js.map +7 -0
  381. package/node_modules/@radix-ui/react-use-layout-effect/dist/index.mjs +8 -0
  382. package/node_modules/@radix-ui/react-use-layout-effect/dist/index.mjs.map +7 -0
  383. package/node_modules/@radix-ui/react-use-layout-effect/package.json +60 -0
  384. package/node_modules/@radix-ui/react-use-rect/LICENSE +21 -0
  385. package/node_modules/@radix-ui/react-use-rect/README.md +3 -0
  386. package/node_modules/@radix-ui/react-use-rect/dist/index.d.mts +9 -0
  387. package/node_modules/@radix-ui/react-use-rect/dist/index.d.ts +9 -0
  388. package/node_modules/@radix-ui/react-use-rect/dist/index.js +54 -0
  389. package/node_modules/@radix-ui/react-use-rect/dist/index.js.map +7 -0
  390. package/node_modules/@radix-ui/react-use-rect/dist/index.mjs +21 -0
  391. package/node_modules/@radix-ui/react-use-rect/dist/index.mjs.map +7 -0
  392. package/node_modules/@radix-ui/react-use-rect/package.json +63 -0
  393. package/node_modules/@radix-ui/react-use-size/LICENSE +21 -0
  394. package/node_modules/@radix-ui/react-use-size/README.md +3 -0
  395. package/node_modules/@radix-ui/react-use-size/dist/index.d.mts +6 -0
  396. package/node_modules/@radix-ui/react-use-size/dist/index.d.ts +6 -0
  397. package/node_modules/@radix-ui/react-use-size/dist/index.js +74 -0
  398. package/node_modules/@radix-ui/react-use-size/dist/index.js.map +7 -0
  399. package/node_modules/@radix-ui/react-use-size/dist/index.mjs +41 -0
  400. package/node_modules/@radix-ui/react-use-size/dist/index.mjs.map +7 -0
  401. package/node_modules/@radix-ui/react-use-size/package.json +63 -0
  402. package/node_modules/@radix-ui/react-visually-hidden/LICENSE +21 -0
  403. package/node_modules/@radix-ui/react-visually-hidden/README.md +3 -0
  404. package/node_modules/@radix-ui/react-visually-hidden/dist/index.d.mts +22 -0
  405. package/node_modules/@radix-ui/react-visually-hidden/dist/index.d.ts +22 -0
  406. package/node_modules/@radix-ui/react-visually-hidden/dist/index.js +71 -0
  407. package/node_modules/@radix-ui/react-visually-hidden/dist/index.js.map +7 -0
  408. package/node_modules/@radix-ui/react-visually-hidden/dist/index.mjs +38 -0
  409. package/node_modules/@radix-ui/react-visually-hidden/dist/index.mjs.map +7 -0
  410. package/node_modules/@radix-ui/react-visually-hidden/package.json +68 -0
  411. package/node_modules/@radix-ui/rect/LICENSE +21 -0
  412. package/node_modules/@radix-ui/rect/README.md +3 -0
  413. package/node_modules/@radix-ui/rect/dist/index.d.mts +16 -0
  414. package/node_modules/@radix-ui/rect/dist/index.d.ts +16 -0
  415. package/node_modules/@radix-ui/rect/dist/index.js +73 -0
  416. package/node_modules/@radix-ui/rect/dist/index.js.map +7 -0
  417. package/node_modules/@radix-ui/rect/dist/index.mjs +50 -0
  418. package/node_modules/@radix-ui/rect/dist/index.mjs.map +7 -0
  419. package/node_modules/@radix-ui/rect/package.json +47 -0
  420. package/node_modules/aria-hidden/LICENSE +21 -0
  421. package/node_modules/aria-hidden/README.md +99 -0
  422. package/node_modules/aria-hidden/dist/es2015/index.d.ts +29 -0
  423. package/node_modules/aria-hidden/dist/es2015/index.js +167 -0
  424. package/node_modules/aria-hidden/dist/es2019/index.d.ts +29 -0
  425. package/node_modules/aria-hidden/dist/es2019/index.js +156 -0
  426. package/node_modules/aria-hidden/dist/es5/index.d.ts +29 -0
  427. package/node_modules/aria-hidden/dist/es5/index.js +174 -0
  428. package/node_modules/aria-hidden/package.json +71 -0
  429. package/node_modules/detect-node-es/LICENSE +21 -0
  430. package/node_modules/detect-node-es/Readme.md +39 -0
  431. package/node_modules/detect-node-es/es5/browser.js +2 -0
  432. package/node_modules/detect-node-es/es5/node.d.ts +4 -0
  433. package/node_modules/detect-node-es/es5/node.js +2 -0
  434. package/node_modules/detect-node-es/esm/browser.js +2 -0
  435. package/node_modules/detect-node-es/esm/node.js +2 -0
  436. package/node_modules/detect-node-es/package.json +29 -0
  437. package/node_modules/get-nonce/LICENSE +21 -0
  438. package/node_modules/get-nonce/README.md +54 -0
  439. package/node_modules/get-nonce/dist/es2015/index.d.ts +2 -0
  440. package/node_modules/get-nonce/dist/es2015/index.js +13 -0
  441. package/node_modules/get-nonce/dist/es5/index.d.ts +2 -0
  442. package/node_modules/get-nonce/dist/es5/index.js +15 -0
  443. package/node_modules/get-nonce/package.json +68 -0
  444. package/node_modules/react-remove-scroll/LICENSE +21 -0
  445. package/node_modules/react-remove-scroll/README.md +153 -0
  446. package/node_modules/react-remove-scroll/UI/UI.d.ts +1 -0
  447. package/node_modules/react-remove-scroll/UI/package.json +8 -0
  448. package/node_modules/react-remove-scroll/dist/es2015/Combination.d.ts +3 -0
  449. package/node_modules/react-remove-scroll/dist/es2015/Combination.js +7 -0
  450. package/node_modules/react-remove-scroll/dist/es2015/SideEffect.d.ts +5 -0
  451. package/node_modules/react-remove-scroll/dist/es2015/SideEffect.js +164 -0
  452. package/node_modules/react-remove-scroll/dist/es2015/UI.d.ts +7 -0
  453. package/node_modules/react-remove-scroll/dist/es2015/UI.js +36 -0
  454. package/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.d.ts +3 -0
  455. package/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js +19 -0
  456. package/node_modules/react-remove-scroll/dist/es2015/handleScroll.d.ts +3 -0
  457. package/node_modules/react-remove-scroll/dist/es2015/handleScroll.js +108 -0
  458. package/node_modules/react-remove-scroll/dist/es2015/index.d.ts +2 -0
  459. package/node_modules/react-remove-scroll/dist/es2015/index.js +2 -0
  460. package/node_modules/react-remove-scroll/dist/es2015/medium.d.ts +2 -0
  461. package/node_modules/react-remove-scroll/dist/es2015/medium.js +2 -0
  462. package/node_modules/react-remove-scroll/dist/es2015/pinchAndZoom.d.ts +8 -0
  463. package/node_modules/react-remove-scroll/dist/es2015/pinchAndZoom.js +33 -0
  464. package/node_modules/react-remove-scroll/dist/es2015/sidecar.d.ts +2 -0
  465. package/node_modules/react-remove-scroll/dist/es2015/sidecar.js +4 -0
  466. package/node_modules/react-remove-scroll/dist/es2015/types.d.ts +104 -0
  467. package/node_modules/react-remove-scroll/dist/es2015/types.js +1 -0
  468. package/node_modules/react-remove-scroll/dist/es2019/Combination.d.ts +3 -0
  469. package/node_modules/react-remove-scroll/dist/es2019/Combination.js +6 -0
  470. package/node_modules/react-remove-scroll/dist/es2019/SideEffect.d.ts +5 -0
  471. package/node_modules/react-remove-scroll/dist/es2019/SideEffect.js +162 -0
  472. package/node_modules/react-remove-scroll/dist/es2019/UI.d.ts +7 -0
  473. package/node_modules/react-remove-scroll/dist/es2019/UI.js +41 -0
  474. package/node_modules/react-remove-scroll/dist/es2019/aggresiveCapture.d.ts +3 -0
  475. package/node_modules/react-remove-scroll/dist/es2019/aggresiveCapture.js +19 -0
  476. package/node_modules/react-remove-scroll/dist/es2019/handleScroll.d.ts +3 -0
  477. package/node_modules/react-remove-scroll/dist/es2019/handleScroll.js +96 -0
  478. package/node_modules/react-remove-scroll/dist/es2019/index.d.ts +2 -0
  479. package/node_modules/react-remove-scroll/dist/es2019/index.js +2 -0
  480. package/node_modules/react-remove-scroll/dist/es2019/medium.d.ts +2 -0
  481. package/node_modules/react-remove-scroll/dist/es2019/medium.js +2 -0
  482. package/node_modules/react-remove-scroll/dist/es2019/pinchAndZoom.d.ts +8 -0
  483. package/node_modules/react-remove-scroll/dist/es2019/pinchAndZoom.js +33 -0
  484. package/node_modules/react-remove-scroll/dist/es2019/sidecar.d.ts +2 -0
  485. package/node_modules/react-remove-scroll/dist/es2019/sidecar.js +4 -0
  486. package/node_modules/react-remove-scroll/dist/es2019/types.d.ts +104 -0
  487. package/node_modules/react-remove-scroll/dist/es2019/types.js +1 -0
  488. package/node_modules/react-remove-scroll/dist/es5/Combination.d.ts +3 -0
  489. package/node_modules/react-remove-scroll/dist/es5/Combination.js +9 -0
  490. package/node_modules/react-remove-scroll/dist/es5/SideEffect.d.ts +5 -0
  491. package/node_modules/react-remove-scroll/dist/es5/SideEffect.js +170 -0
  492. package/node_modules/react-remove-scroll/dist/es5/UI.d.ts +7 -0
  493. package/node_modules/react-remove-scroll/dist/es5/UI.js +39 -0
  494. package/node_modules/react-remove-scroll/dist/es5/aggresiveCapture.d.ts +3 -0
  495. package/node_modules/react-remove-scroll/dist/es5/aggresiveCapture.js +22 -0
  496. package/node_modules/react-remove-scroll/dist/es5/handleScroll.d.ts +3 -0
  497. package/node_modules/react-remove-scroll/dist/es5/handleScroll.js +113 -0
  498. package/node_modules/react-remove-scroll/dist/es5/index.d.ts +2 -0
  499. package/node_modules/react-remove-scroll/dist/es5/index.js +6 -0
  500. package/node_modules/react-remove-scroll/dist/es5/medium.d.ts +2 -0
  501. package/node_modules/react-remove-scroll/dist/es5/medium.js +5 -0
  502. package/node_modules/react-remove-scroll/dist/es5/pinchAndZoom.d.ts +8 -0
  503. package/node_modules/react-remove-scroll/dist/es5/pinchAndZoom.js +37 -0
  504. package/node_modules/react-remove-scroll/dist/es5/sidecar.d.ts +2 -0
  505. package/node_modules/react-remove-scroll/dist/es5/sidecar.js +6 -0
  506. package/node_modules/react-remove-scroll/dist/es5/types.d.ts +104 -0
  507. package/node_modules/react-remove-scroll/dist/es5/types.js +2 -0
  508. package/node_modules/react-remove-scroll/package.json +98 -0
  509. package/node_modules/react-remove-scroll/sidecar/package.json +7 -0
  510. package/node_modules/react-remove-scroll/sidecar/sidecar.d.ts +5 -0
  511. package/node_modules/react-remove-scroll-bar/README.md +52 -0
  512. package/node_modules/react-remove-scroll-bar/constants/package.json +8 -0
  513. package/node_modules/react-remove-scroll-bar/dist/es2015/component.d.ts +13 -0
  514. package/node_modules/react-remove-scroll-bar/dist/es2015/component.js +53 -0
  515. package/node_modules/react-remove-scroll-bar/dist/es2015/constants.d.ts +8 -0
  516. package/node_modules/react-remove-scroll-bar/dist/es2015/constants.js +8 -0
  517. package/node_modules/react-remove-scroll-bar/dist/es2015/index.d.ts +4 -0
  518. package/node_modules/react-remove-scroll-bar/dist/es2015/index.js +4 -0
  519. package/node_modules/react-remove-scroll-bar/dist/es2015/utils.d.ts +14 -0
  520. package/node_modules/react-remove-scroll-bar/dist/es2015/utils.js +29 -0
  521. package/node_modules/react-remove-scroll-bar/dist/es2019/component.d.ts +13 -0
  522. package/node_modules/react-remove-scroll-bar/dist/es2019/component.js +85 -0
  523. package/node_modules/react-remove-scroll-bar/dist/es2019/constants.d.ts +8 -0
  524. package/node_modules/react-remove-scroll-bar/dist/es2019/constants.js +8 -0
  525. package/node_modules/react-remove-scroll-bar/dist/es2019/index.d.ts +4 -0
  526. package/node_modules/react-remove-scroll-bar/dist/es2019/index.js +4 -0
  527. package/node_modules/react-remove-scroll-bar/dist/es2019/utils.d.ts +14 -0
  528. package/node_modules/react-remove-scroll-bar/dist/es2019/utils.js +28 -0
  529. package/node_modules/react-remove-scroll-bar/dist/es5/component.d.ts +13 -0
  530. package/node_modules/react-remove-scroll-bar/dist/es5/component.js +59 -0
  531. package/node_modules/react-remove-scroll-bar/dist/es5/constants.d.ts +8 -0
  532. package/node_modules/react-remove-scroll-bar/dist/es5/constants.js +11 -0
  533. package/node_modules/react-remove-scroll-bar/dist/es5/index.d.ts +4 -0
  534. package/node_modules/react-remove-scroll-bar/dist/es5/index.js +12 -0
  535. package/node_modules/react-remove-scroll-bar/dist/es5/utils.d.ts +14 -0
  536. package/node_modules/react-remove-scroll-bar/dist/es5/utils.js +33 -0
  537. package/node_modules/react-remove-scroll-bar/package.json +85 -0
  538. package/node_modules/react-style-singleton/LICENSE +21 -0
  539. package/node_modules/react-style-singleton/README.md +45 -0
  540. package/node_modules/react-style-singleton/dist/es2015/component.d.ts +21 -0
  541. package/node_modules/react-style-singleton/dist/es2015/component.js +16 -0
  542. package/node_modules/react-style-singleton/dist/es2015/hook.d.ts +23 -0
  543. package/node_modules/react-style-singleton/dist/es2015/hook.js +22 -0
  544. package/node_modules/react-style-singleton/dist/es2015/index.d.ts +3 -0
  545. package/node_modules/react-style-singleton/dist/es2015/index.js +3 -0
  546. package/node_modules/react-style-singleton/dist/es2015/singleton.d.ts +4 -0
  547. package/node_modules/react-style-singleton/dist/es2015/singleton.js +48 -0
  548. package/node_modules/react-style-singleton/dist/es2019/component.d.ts +21 -0
  549. package/node_modules/react-style-singleton/dist/es2019/component.js +15 -0
  550. package/node_modules/react-style-singleton/dist/es2019/hook.d.ts +23 -0
  551. package/node_modules/react-style-singleton/dist/es2019/hook.js +22 -0
  552. package/node_modules/react-style-singleton/dist/es2019/index.d.ts +3 -0
  553. package/node_modules/react-style-singleton/dist/es2019/index.js +3 -0
  554. package/node_modules/react-style-singleton/dist/es2019/singleton.d.ts +4 -0
  555. package/node_modules/react-style-singleton/dist/es2019/singleton.js +48 -0
  556. package/node_modules/react-style-singleton/dist/es5/component.d.ts +21 -0
  557. package/node_modules/react-style-singleton/dist/es5/component.js +20 -0
  558. package/node_modules/react-style-singleton/dist/es5/hook.d.ts +23 -0
  559. package/node_modules/react-style-singleton/dist/es5/hook.js +27 -0
  560. package/node_modules/react-style-singleton/dist/es5/index.d.ts +3 -0
  561. package/node_modules/react-style-singleton/dist/es5/index.js +9 -0
  562. package/node_modules/react-style-singleton/dist/es5/singleton.d.ts +4 -0
  563. package/node_modules/react-style-singleton/dist/es5/singleton.js +52 -0
  564. package/node_modules/react-style-singleton/dist/index.js +1 -0
  565. package/node_modules/react-style-singleton/package.json +90 -0
  566. package/node_modules/tslib/CopyrightNotice.txt +15 -0
  567. package/node_modules/tslib/LICENSE.txt +12 -0
  568. package/node_modules/tslib/README.md +164 -0
  569. package/node_modules/tslib/SECURITY.md +41 -0
  570. package/node_modules/tslib/modules/index.d.ts +38 -0
  571. package/node_modules/tslib/modules/index.js +70 -0
  572. package/node_modules/tslib/modules/package.json +3 -0
  573. package/node_modules/tslib/package.json +47 -0
  574. package/node_modules/tslib/tslib.d.ts +460 -0
  575. package/node_modules/tslib/tslib.es6.html +1 -0
  576. package/node_modules/tslib/tslib.es6.js +402 -0
  577. package/node_modules/tslib/tslib.es6.mjs +401 -0
  578. package/node_modules/tslib/tslib.html +1 -0
  579. package/node_modules/tslib/tslib.js +484 -0
  580. package/node_modules/use-callback-ref/LICENSE +21 -0
  581. package/node_modules/use-callback-ref/README.md +170 -0
  582. package/node_modules/use-callback-ref/dist/es2015/assignRef.d.ts +15 -0
  583. package/node_modules/use-callback-ref/dist/es2015/assignRef.js +22 -0
  584. package/node_modules/use-callback-ref/dist/es2015/createRef.d.ts +10 -0
  585. package/node_modules/use-callback-ref/dist/es2015/createRef.js +23 -0
  586. package/node_modules/use-callback-ref/dist/es2015/index.d.ts +8 -0
  587. package/node_modules/use-callback-ref/dist/es2015/index.js +12 -0
  588. package/node_modules/use-callback-ref/dist/es2015/mergeRef.d.ts +16 -0
  589. package/node_modules/use-callback-ref/dist/es2015/mergeRef.js +18 -0
  590. package/node_modules/use-callback-ref/dist/es2015/refToCallback.d.ts +24 -0
  591. package/node_modules/use-callback-ref/dist/es2015/refToCallback.js +48 -0
  592. package/node_modules/use-callback-ref/dist/es2015/transformRef.d.ts +11 -0
  593. package/node_modules/use-callback-ref/dist/es2015/transformRef.js +14 -0
  594. package/node_modules/use-callback-ref/dist/es2015/types.d.ts +5 -0
  595. package/node_modules/use-callback-ref/dist/es2015/types.js +1 -0
  596. package/node_modules/use-callback-ref/dist/es2015/useMergeRef.d.ts +17 -0
  597. package/node_modules/use-callback-ref/dist/es2015/useMergeRef.js +45 -0
  598. package/node_modules/use-callback-ref/dist/es2015/useRef.d.ts +16 -0
  599. package/node_modules/use-callback-ref/dist/es2015/useRef.js +39 -0
  600. package/node_modules/use-callback-ref/dist/es2015/useTransformRef.d.ts +15 -0
  601. package/node_modules/use-callback-ref/dist/es2015/useTransformRef.js +18 -0
  602. package/node_modules/use-callback-ref/dist/es2019/assignRef.d.ts +15 -0
  603. package/node_modules/use-callback-ref/dist/es2019/assignRef.js +22 -0
  604. package/node_modules/use-callback-ref/dist/es2019/createRef.d.ts +10 -0
  605. package/node_modules/use-callback-ref/dist/es2019/createRef.js +23 -0
  606. package/node_modules/use-callback-ref/dist/es2019/index.d.ts +8 -0
  607. package/node_modules/use-callback-ref/dist/es2019/index.js +12 -0
  608. package/node_modules/use-callback-ref/dist/es2019/mergeRef.d.ts +16 -0
  609. package/node_modules/use-callback-ref/dist/es2019/mergeRef.js +18 -0
  610. package/node_modules/use-callback-ref/dist/es2019/refToCallback.d.ts +24 -0
  611. package/node_modules/use-callback-ref/dist/es2019/refToCallback.js +48 -0
  612. package/node_modules/use-callback-ref/dist/es2019/transformRef.d.ts +11 -0
  613. package/node_modules/use-callback-ref/dist/es2019/transformRef.js +14 -0
  614. package/node_modules/use-callback-ref/dist/es2019/types.d.ts +5 -0
  615. package/node_modules/use-callback-ref/dist/es2019/types.js +1 -0
  616. package/node_modules/use-callback-ref/dist/es2019/useMergeRef.d.ts +17 -0
  617. package/node_modules/use-callback-ref/dist/es2019/useMergeRef.js +43 -0
  618. package/node_modules/use-callback-ref/dist/es2019/useRef.d.ts +16 -0
  619. package/node_modules/use-callback-ref/dist/es2019/useRef.js +39 -0
  620. package/node_modules/use-callback-ref/dist/es2019/useTransformRef.d.ts +15 -0
  621. package/node_modules/use-callback-ref/dist/es2019/useTransformRef.js +18 -0
  622. package/node_modules/use-callback-ref/dist/es5/assignRef.d.ts +15 -0
  623. package/node_modules/use-callback-ref/dist/es5/assignRef.js +26 -0
  624. package/node_modules/use-callback-ref/dist/es5/createRef.d.ts +10 -0
  625. package/node_modules/use-callback-ref/dist/es5/createRef.js +27 -0
  626. package/node_modules/use-callback-ref/dist/es5/index.d.ts +8 -0
  627. package/node_modules/use-callback-ref/dist/es5/index.js +24 -0
  628. package/node_modules/use-callback-ref/dist/es5/mergeRef.d.ts +16 -0
  629. package/node_modules/use-callback-ref/dist/es5/mergeRef.js +22 -0
  630. package/node_modules/use-callback-ref/dist/es5/refToCallback.d.ts +24 -0
  631. package/node_modules/use-callback-ref/dist/es5/refToCallback.js +53 -0
  632. package/node_modules/use-callback-ref/dist/es5/transformRef.d.ts +11 -0
  633. package/node_modules/use-callback-ref/dist/es5/transformRef.js +18 -0
  634. package/node_modules/use-callback-ref/dist/es5/types.d.ts +5 -0
  635. package/node_modules/use-callback-ref/dist/es5/types.js +2 -0
  636. package/node_modules/use-callback-ref/dist/es5/useMergeRef.d.ts +17 -0
  637. package/node_modules/use-callback-ref/dist/es5/useMergeRef.js +50 -0
  638. package/node_modules/use-callback-ref/dist/es5/useRef.d.ts +16 -0
  639. package/node_modules/use-callback-ref/dist/es5/useRef.js +43 -0
  640. package/node_modules/use-callback-ref/dist/es5/useTransformRef.d.ts +15 -0
  641. package/node_modules/use-callback-ref/dist/es5/useTransformRef.js +22 -0
  642. package/node_modules/use-callback-ref/package.json +85 -0
  643. package/node_modules/use-sidecar/LICENSE +21 -0
  644. package/node_modules/use-sidecar/README.md +349 -0
  645. package/node_modules/use-sidecar/dist/es2015/config.d.ts +5 -0
  646. package/node_modules/use-sidecar/dist/es2015/config.js +6 -0
  647. package/node_modules/use-sidecar/dist/es2015/env.d.ts +4 -0
  648. package/node_modules/use-sidecar/dist/es2015/env.js +5 -0
  649. package/node_modules/use-sidecar/dist/es2015/exports.d.ts +3 -0
  650. package/node_modules/use-sidecar/dist/es2015/exports.js +18 -0
  651. package/node_modules/use-sidecar/dist/es2015/hoc.d.ts +3 -0
  652. package/node_modules/use-sidecar/dist/es2015/hoc.js +15 -0
  653. package/node_modules/use-sidecar/dist/es2015/hook.d.ts +2 -0
  654. package/node_modules/use-sidecar/dist/es2015/hook.js +41 -0
  655. package/node_modules/use-sidecar/dist/es2015/index.d.ts +7 -0
  656. package/node_modules/use-sidecar/dist/es2015/index.js +6 -0
  657. package/node_modules/use-sidecar/dist/es2015/medium.d.ts +3 -0
  658. package/node_modules/use-sidecar/dist/es2015/medium.js +78 -0
  659. package/node_modules/use-sidecar/dist/es2015/renderProp.d.ts +9 -0
  660. package/node_modules/use-sidecar/dist/es2015/renderProp.js +35 -0
  661. package/node_modules/use-sidecar/dist/es2015/types.d.ts +47 -0
  662. package/node_modules/use-sidecar/dist/es2015/types.js +1 -0
  663. package/node_modules/use-sidecar/dist/es2019/config.d.ts +5 -0
  664. package/node_modules/use-sidecar/dist/es2019/config.js +6 -0
  665. package/node_modules/use-sidecar/dist/es2019/env.d.ts +4 -0
  666. package/node_modules/use-sidecar/dist/es2019/env.js +5 -0
  667. package/node_modules/use-sidecar/dist/es2019/exports.d.ts +3 -0
  668. package/node_modules/use-sidecar/dist/es2019/exports.js +16 -0
  669. package/node_modules/use-sidecar/dist/es2019/hoc.d.ts +3 -0
  670. package/node_modules/use-sidecar/dist/es2019/hoc.js +14 -0
  671. package/node_modules/use-sidecar/dist/es2019/hook.d.ts +2 -0
  672. package/node_modules/use-sidecar/dist/es2019/hook.js +41 -0
  673. package/node_modules/use-sidecar/dist/es2019/index.d.ts +7 -0
  674. package/node_modules/use-sidecar/dist/es2019/index.js +6 -0
  675. package/node_modules/use-sidecar/dist/es2019/medium.d.ts +3 -0
  676. package/node_modules/use-sidecar/dist/es2019/medium.js +78 -0
  677. package/node_modules/use-sidecar/dist/es2019/renderProp.d.ts +9 -0
  678. package/node_modules/use-sidecar/dist/es2019/renderProp.js +28 -0
  679. package/node_modules/use-sidecar/dist/es2019/types.d.ts +47 -0
  680. package/node_modules/use-sidecar/dist/es2019/types.js +1 -0
  681. package/node_modules/use-sidecar/dist/es5/config.d.ts +5 -0
  682. package/node_modules/use-sidecar/dist/es5/config.js +10 -0
  683. package/node_modules/use-sidecar/dist/es5/env.d.ts +4 -0
  684. package/node_modules/use-sidecar/dist/es5/env.js +8 -0
  685. package/node_modules/use-sidecar/dist/es5/exports.d.ts +3 -0
  686. package/node_modules/use-sidecar/dist/es5/exports.js +22 -0
  687. package/node_modules/use-sidecar/dist/es5/hoc.d.ts +3 -0
  688. package/node_modules/use-sidecar/dist/es5/hoc.js +19 -0
  689. package/node_modules/use-sidecar/dist/es5/hook.d.ts +2 -0
  690. package/node_modules/use-sidecar/dist/es5/hook.js +45 -0
  691. package/node_modules/use-sidecar/dist/es5/index.d.ts +7 -0
  692. package/node_modules/use-sidecar/dist/es5/index.js +16 -0
  693. package/node_modules/use-sidecar/dist/es5/medium.d.ts +3 -0
  694. package/node_modules/use-sidecar/dist/es5/medium.js +83 -0
  695. package/node_modules/use-sidecar/dist/es5/renderProp.d.ts +9 -0
  696. package/node_modules/use-sidecar/dist/es5/renderProp.js +39 -0
  697. package/node_modules/use-sidecar/dist/es5/types.d.ts +47 -0
  698. package/node_modules/use-sidecar/dist/es5/types.js +2 -0
  699. package/node_modules/use-sidecar/package.json +93 -0
  700. package/package.json +45 -2
  701. package/react/styles.css +568 -18
  702. package/react/styles.source.css +568 -18
@@ -0,0 +1,76 @@
1
+ {
2
+ "name": "@radix-ui/react-roving-focus",
3
+ "version": "1.1.14",
4
+ "license": "MIT",
5
+ "source": "./src/index.ts",
6
+ "main": "./dist/index.js",
7
+ "module": "./dist/index.mjs",
8
+ "files": [
9
+ "dist",
10
+ "README.md"
11
+ ],
12
+ "sideEffects": false,
13
+ "dependencies": {
14
+ "@radix-ui/primitive": "1.1.4",
15
+ "@radix-ui/react-context": "1.1.4",
16
+ "@radix-ui/react-direction": "1.1.2",
17
+ "@radix-ui/react-compose-refs": "1.1.3",
18
+ "@radix-ui/react-id": "1.1.2",
19
+ "@radix-ui/react-collection": "1.1.11",
20
+ "@radix-ui/react-primitive": "2.1.7",
21
+ "@radix-ui/react-use-callback-ref": "1.1.2",
22
+ "@radix-ui/react-use-controllable-state": "1.2.3"
23
+ },
24
+ "devDependencies": {
25
+ "@types/react": "^19.2.2",
26
+ "@types/react-dom": "^19.2.2",
27
+ "react": "^19.2.0",
28
+ "react-dom": "^19.2.0",
29
+ "typescript": "^5.9.3",
30
+ "@repo/builder": "0.0.0",
31
+ "@repo/typescript-config": "0.0.0"
32
+ },
33
+ "peerDependencies": {
34
+ "@types/react": "*",
35
+ "@types/react-dom": "*",
36
+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",
37
+ "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
38
+ },
39
+ "peerDependenciesMeta": {
40
+ "@types/react": {
41
+ "optional": true
42
+ },
43
+ "@types/react-dom": {
44
+ "optional": true
45
+ }
46
+ },
47
+ "homepage": "https://radix-ui.com/primitives",
48
+ "repository": {
49
+ "type": "git",
50
+ "url": "git+https://github.com/radix-ui/primitives.git",
51
+ "directory": "packages/react/roving-focus"
52
+ },
53
+ "bugs": {
54
+ "url": "https://github.com/radix-ui/primitives/issues"
55
+ },
56
+ "scripts": {
57
+ "lint": "oxlint --max-warnings 0 src",
58
+ "clean": "rm -rf dist",
59
+ "reset": "rm -rf dist node_modules",
60
+ "typecheck": "tsc --noEmit",
61
+ "build": "radix-build"
62
+ },
63
+ "types": "./dist/index.d.ts",
64
+ "exports": {
65
+ ".": {
66
+ "import": {
67
+ "types": "./dist/index.d.mts",
68
+ "default": "./dist/index.mjs"
69
+ },
70
+ "require": {
71
+ "types": "./dist/index.d.ts",
72
+ "default": "./dist/index.js"
73
+ }
74
+ }
75
+ }
76
+ }
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2022 WorkOS
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,3 @@
1
+ # `react-slot`
2
+
3
+ View docs [here](https://radix-ui.com/primitives/docs/utilities/slot).
@@ -0,0 +1,29 @@
1
+ import * as React from 'react';
2
+
3
+ declare module 'react' {
4
+ interface ReactElement {
5
+ $$typeof?: symbol | string;
6
+ }
7
+ }
8
+ type SlotProps<Elem extends Element = HTMLElement, Props = React.HTMLAttributes<Elem>> = Props & {
9
+ children?: React.ReactNode;
10
+ };
11
+ declare function createSlot<Elem extends Element = HTMLElement, Props = React.HTMLAttributes<Elem>>(ownerName: string): React.ForwardRefExoticComponent<React.PropsWithoutRef<SlotProps<Elem, Props>> & React.RefAttributes<Elem>>;
12
+ declare const Slot: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLElement> & {
13
+ children?: React.ReactNode;
14
+ } & React.RefAttributes<HTMLElement>>;
15
+ type SlottableChildrenProps = {
16
+ children: React.ReactNode;
17
+ };
18
+ type SlottableRenderFnProps = {
19
+ child: React.ReactNode;
20
+ children: (slottable: React.ReactNode) => React.ReactNode;
21
+ };
22
+ type SlottableProps = SlottableRenderFnProps | SlottableChildrenProps;
23
+ interface SlottableComponent extends React.FC<SlottableProps> {
24
+ __radixId: symbol;
25
+ }
26
+ declare function createSlottable(ownerName: string): SlottableComponent;
27
+ declare const Slottable: SlottableComponent;
28
+
29
+ export { Slot as Root, Slot, type SlotProps, Slottable, createSlot, createSlottable };
@@ -0,0 +1,29 @@
1
+ import * as React from 'react';
2
+
3
+ declare module 'react' {
4
+ interface ReactElement {
5
+ $$typeof?: symbol | string;
6
+ }
7
+ }
8
+ type SlotProps<Elem extends Element = HTMLElement, Props = React.HTMLAttributes<Elem>> = Props & {
9
+ children?: React.ReactNode;
10
+ };
11
+ declare function createSlot<Elem extends Element = HTMLElement, Props = React.HTMLAttributes<Elem>>(ownerName: string): React.ForwardRefExoticComponent<React.PropsWithoutRef<SlotProps<Elem, Props>> & React.RefAttributes<Elem>>;
12
+ declare const Slot: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLElement> & {
13
+ children?: React.ReactNode;
14
+ } & React.RefAttributes<HTMLElement>>;
15
+ type SlottableChildrenProps = {
16
+ children: React.ReactNode;
17
+ };
18
+ type SlottableRenderFnProps = {
19
+ child: React.ReactNode;
20
+ children: (slottable: React.ReactNode) => React.ReactNode;
21
+ };
22
+ type SlottableProps = SlottableRenderFnProps | SlottableChildrenProps;
23
+ interface SlottableComponent extends React.FC<SlottableProps> {
24
+ __radixId: symbol;
25
+ }
26
+ declare function createSlottable(ownerName: string): SlottableComponent;
27
+ declare const Slottable: SlottableComponent;
28
+
29
+ export { Slot as Root, Slot, type SlotProps, Slottable, createSlot, createSlottable };
@@ -0,0 +1,170 @@
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(to, key) && key !== except)
16
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
+ }
18
+ return to;
19
+ };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ // If the importer is in node compatibility mode or this is not an ESM
22
+ // file that has been converted to a CommonJS file using a Babel-
23
+ // compatible transform (i.e. "__esModule" has not been set), then set
24
+ // "default" to the CommonJS "module.exports" for node compatibility.
25
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
+ mod
27
+ ));
28
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
+
30
+ // src/index.ts
31
+ var index_exports = {};
32
+ __export(index_exports, {
33
+ Root: () => Slot,
34
+ Slot: () => Slot,
35
+ Slottable: () => Slottable,
36
+ createSlot: () => createSlot,
37
+ createSlottable: () => createSlottable
38
+ });
39
+ module.exports = __toCommonJS(index_exports);
40
+
41
+ // src/slot.tsx
42
+ var React = __toESM(require("react"));
43
+ var import_react_compose_refs = require("@radix-ui/react-compose-refs");
44
+ // @__NO_SIDE_EFFECTS__
45
+ function createSlot(ownerName) {
46
+ const Slot2 = React.forwardRef((props, forwardedRef) => {
47
+ let { children, ...slotProps } = props;
48
+ let slottableElement = null;
49
+ let hasSlottable = false;
50
+ const newChildren = [];
51
+ if (isLazyComponent(children) && typeof use === "function") {
52
+ children = use(children._payload);
53
+ }
54
+ React.Children.forEach(children, (maybeSlottable) => {
55
+ if (isSlottable(maybeSlottable)) {
56
+ hasSlottable = true;
57
+ const slottable = maybeSlottable;
58
+ let child = "child" in slottable.props ? slottable.props.child : slottable.props.children;
59
+ if (isLazyComponent(child) && typeof use === "function") {
60
+ child = use(child._payload);
61
+ }
62
+ slottableElement = getSlottableElementFromSlottable(slottable, child);
63
+ newChildren.push(slottableElement?.props?.children);
64
+ } else {
65
+ newChildren.push(maybeSlottable);
66
+ }
67
+ });
68
+ if (slottableElement) {
69
+ slottableElement = React.cloneElement(slottableElement, void 0, newChildren);
70
+ } else if (
71
+ // A `Slottable` was found but it didn't resolve to a single element (e.g.
72
+ // it wrapped multiple elements, text, or a render-prop `child` that
73
+ // wasn't an element). Don't fall back to treating the `Slottable` wrapper
74
+ // itself as the slot target — throw a descriptive error below instead.
75
+ !hasSlottable && React.Children.count(children) === 1 && React.isValidElement(children)
76
+ ) {
77
+ slottableElement = children;
78
+ }
79
+ const slottableElementRef = slottableElement ? getElementRef(slottableElement) : void 0;
80
+ const composedRef = (0, import_react_compose_refs.useComposedRefs)(forwardedRef, slottableElementRef);
81
+ if (!slottableElement) {
82
+ if (children || children === 0) {
83
+ throw new Error(
84
+ hasSlottable ? createSlottableError(ownerName) : createSlotError(ownerName)
85
+ );
86
+ }
87
+ return children;
88
+ }
89
+ const mergedProps = mergeProps(slotProps, slottableElement.props ?? {});
90
+ if (slottableElement.type !== React.Fragment) {
91
+ mergedProps.ref = forwardedRef ? composedRef : slottableElementRef;
92
+ }
93
+ return React.cloneElement(slottableElement, mergedProps);
94
+ });
95
+ Slot2.displayName = `${ownerName}.Slot`;
96
+ return Slot2;
97
+ }
98
+ var Slot = /* @__PURE__ */ createSlot("Slot");
99
+ var SLOTTABLE_IDENTIFIER = Symbol.for("radix.slottable");
100
+ // @__NO_SIDE_EFFECTS__
101
+ function createSlottable(ownerName) {
102
+ const Slottable2 = (props) => "child" in props ? props.children(props.child) : props.children;
103
+ Slottable2.displayName = `${ownerName}.Slottable`;
104
+ Slottable2.__radixId = SLOTTABLE_IDENTIFIER;
105
+ return Slottable2;
106
+ }
107
+ var Slottable = /* @__PURE__ */ createSlottable("Slottable");
108
+ var getSlottableElementFromSlottable = (slottable, child) => {
109
+ if ("child" in slottable.props) {
110
+ const child2 = slottable.props.child;
111
+ if (!React.isValidElement(child2)) return null;
112
+ return React.cloneElement(child2, void 0, slottable.props.children(child2.props.children));
113
+ }
114
+ return React.isValidElement(child) ? child : null;
115
+ };
116
+ function mergeProps(slotProps, childProps) {
117
+ const overrideProps = { ...childProps };
118
+ for (const propName in childProps) {
119
+ const slotPropValue = slotProps[propName];
120
+ const childPropValue = childProps[propName];
121
+ const isHandler = /^on[A-Z]/.test(propName);
122
+ if (isHandler) {
123
+ if (slotPropValue && childPropValue) {
124
+ overrideProps[propName] = (...args) => {
125
+ const result = childPropValue(...args);
126
+ slotPropValue(...args);
127
+ return result;
128
+ };
129
+ } else if (slotPropValue) {
130
+ overrideProps[propName] = slotPropValue;
131
+ }
132
+ } else if (propName === "style") {
133
+ overrideProps[propName] = { ...slotPropValue, ...childPropValue };
134
+ } else if (propName === "className") {
135
+ overrideProps[propName] = [slotPropValue, childPropValue].filter(Boolean).join(" ");
136
+ }
137
+ }
138
+ return { ...slotProps, ...overrideProps };
139
+ }
140
+ function getElementRef(element) {
141
+ let getter = Object.getOwnPropertyDescriptor(element.props, "ref")?.get;
142
+ let mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
143
+ if (mayWarn) {
144
+ return element.ref;
145
+ }
146
+ getter = Object.getOwnPropertyDescriptor(element, "ref")?.get;
147
+ mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
148
+ if (mayWarn) {
149
+ return element.props.ref;
150
+ }
151
+ return element.props.ref || element.ref;
152
+ }
153
+ function isSlottable(child) {
154
+ return React.isValidElement(child) && typeof child.type === "function" && "__radixId" in child.type && child.type.__radixId === SLOTTABLE_IDENTIFIER;
155
+ }
156
+ var REACT_LAZY_TYPE = Symbol.for("react.lazy");
157
+ function isLazyComponent(element) {
158
+ return element != null && typeof element === "object" && "$$typeof" in element && element.$$typeof === REACT_LAZY_TYPE && "_payload" in element && isPromiseLike(element._payload);
159
+ }
160
+ function isPromiseLike(value) {
161
+ return typeof value === "object" && value !== null && "then" in value;
162
+ }
163
+ var createSlotError = (ownerName) => {
164
+ return `${ownerName} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`;
165
+ };
166
+ var createSlottableError = (ownerName) => {
167
+ return `${ownerName} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`;
168
+ };
169
+ var use = React[" use ".trim().toString()];
170
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../src/index.ts", "../src/slot.tsx"],
4
+ "sourcesContent": ["export {\n Slot,\n Slottable,\n //\n Root,\n createSlot,\n createSlottable,\n} from './slot';\nexport type { SlotProps } from './slot';\n", "import * as React from 'react';\nimport { useComposedRefs } from '@radix-ui/react-compose-refs';\n\ndeclare module 'react' {\n interface ReactElement {\n $$typeof?: symbol | string;\n }\n}\n\n/* -------------------------------------------------------------------------------------------------\n * Slot\n * -----------------------------------------------------------------------------------------------*/\n\nexport type Usable<T> = PromiseLike<T> | React.Context<T>;\n\ntype SlotProps<Elem extends Element = HTMLElement, Props = React.HTMLAttributes<Elem>> = Props & {\n children?: React.ReactNode;\n};\n\n/* @__NO_SIDE_EFFECTS__ */ export function createSlot<\n Elem extends Element = HTMLElement,\n Props = React.HTMLAttributes<Elem>,\n>(ownerName: string) {\n const Slot = React.forwardRef<Elem, SlotProps<Elem, Props>>((props, forwardedRef) => {\n let { children, ...slotProps } = props;\n let slottableElement: React.ReactElement | null = null;\n let hasSlottable = false;\n const newChildren: React.ReactNode[] = [];\n\n if (isLazyComponent(children) && typeof use === 'function') {\n children = use(children._payload);\n }\n\n React.Children.forEach(children, (maybeSlottable) => {\n if (isSlottable(maybeSlottable)) {\n hasSlottable = true;\n const slottable = maybeSlottable;\n let child = 'child' in slottable.props ? slottable.props.child : slottable.props.children;\n\n if (isLazyComponent(child) && typeof use === 'function') {\n child = use(child._payload);\n }\n\n slottableElement = getSlottableElementFromSlottable(slottable, child);\n newChildren.push((slottableElement?.props as any)?.children);\n } else {\n newChildren.push(maybeSlottable);\n }\n });\n\n if (slottableElement) {\n slottableElement = React.cloneElement(slottableElement, undefined, newChildren);\n } else if (\n // A `Slottable` was found but it didn't resolve to a single element (e.g.\n // it wrapped multiple elements, text, or a render-prop `child` that\n // wasn't an element). Don't fall back to treating the `Slottable` wrapper\n // itself as the slot target \u2014 throw a descriptive error below instead.\n !hasSlottable &&\n React.Children.count(children) === 1 &&\n React.isValidElement(children)\n ) {\n slottableElement = children;\n }\n\n const slottableElementRef = slottableElement ? getElementRef(slottableElement) : undefined;\n const composedRef = useComposedRefs(forwardedRef, slottableElementRef);\n\n if (!slottableElement) {\n // Empty/falsy children (`null`, `undefined`, `false`, no children, etc.) are valid and\n // render nothing. Anything else is content we couldn't slot onto a single element, which\n // is a usage error, so we fail loudly with a clear message.\n if (children || children === 0) {\n throw new Error(\n hasSlottable ? createSlottableError(ownerName) : createSlotError(ownerName),\n );\n }\n return children;\n }\n\n const mergedProps = mergeProps(slotProps, slottableElement.props ?? {});\n\n // do not pass ref to React.Fragment for React 19 compatibility\n if (slottableElement.type !== React.Fragment) {\n mergedProps.ref = forwardedRef ? composedRef : slottableElementRef;\n }\n\n return React.cloneElement(slottableElement, mergedProps);\n });\n\n Slot.displayName = `${ownerName}.Slot`;\n return Slot;\n}\n\nconst Slot = createSlot('Slot');\n\n/* -------------------------------------------------------------------------------------------------\n * Slottable\n * -----------------------------------------------------------------------------------------------*/\n\nconst SLOTTABLE_IDENTIFIER = Symbol.for('radix.slottable');\n\ntype SlottableChildrenProps = { children: React.ReactNode };\ntype SlottableRenderFnProps = {\n child: React.ReactNode;\n children: (slottable: React.ReactNode) => React.ReactNode;\n};\n\ntype SlottableProps = SlottableRenderFnProps | SlottableChildrenProps;\ninterface SlottableComponent extends React.FC<SlottableProps> {\n __radixId: symbol;\n}\n\n/* @__NO_SIDE_EFFECTS__ */ export function createSlottable(ownerName: string) {\n const Slottable: SlottableComponent = (props) =>\n 'child' in props ? props.children(props.child) : props.children;\n\n Slottable.displayName = `${ownerName}.Slottable`;\n Slottable.__radixId = SLOTTABLE_IDENTIFIER;\n return Slottable;\n}\n\nconst Slottable = createSlottable('Slottable');\n\n/* -------------------------------------------------------------------------------------------------\n * getSlottableElementFromSlottable\n * -----------------------------------------------------------------------------------------------*/\n\nconst getSlottableElementFromSlottable = (slottable: SlottableElement, child: React.ReactNode) => {\n if ('child' in slottable.props) {\n const child = slottable.props.child;\n if (!React.isValidElement<React.PropsWithChildren>(child)) return null;\n return React.cloneElement(child, undefined, slottable.props.children(child.props.children));\n }\n\n return React.isValidElement(child) ? child : null;\n};\n\n/* -------------------------------------------------------------------------------------------------\n * mergeProps\n * -----------------------------------------------------------------------------------------------*/\n\ntype AnyProps = Record<string, any>;\n\nfunction mergeProps(slotProps: AnyProps, childProps: AnyProps) {\n // all child props should override\n const overrideProps = { ...childProps };\n\n for (const propName in childProps) {\n const slotPropValue = slotProps[propName];\n const childPropValue = childProps[propName];\n\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) {\n overrideProps[propName] = (...args: unknown[]) => {\n const result = childPropValue(...args);\n slotPropValue(...args);\n return result;\n };\n }\n // but if it exists only on the slot, we use only this one\n else if (slotPropValue) {\n overrideProps[propName] = slotPropValue;\n }\n }\n // if it's `style`, we merge them\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\n return { ...slotProps, ...overrideProps };\n}\n\n/* -------------------------------------------------------------------------------------------------\n * getElementRef\n * -----------------------------------------------------------------------------------------------*/\n\n// Before React 19 accessing `element.props.ref` will throw a warning and suggest using `element.ref`\n// After React 19 accessing `element.ref` does the opposite.\n// https://github.com/facebook/react/pull/28348\n//\n// Access the ref using the method that doesn't yield a warning.\nfunction getElementRef(element: React.ReactElement) {\n // React <=18 in DEV\n let getter = Object.getOwnPropertyDescriptor(element.props, 'ref')?.get;\n let mayWarn = getter && 'isReactWarning' in getter && getter.isReactWarning;\n if (mayWarn) {\n return (element as any).ref;\n }\n\n // React 19 in DEV\n getter = Object.getOwnPropertyDescriptor(element, 'ref')?.get;\n mayWarn = getter && 'isReactWarning' in getter && getter.isReactWarning;\n if (mayWarn) {\n return (element.props as { ref?: React.Ref<unknown> }).ref;\n }\n\n // Not DEV\n return (element.props as { ref?: React.Ref<unknown> }).ref || (element as any).ref;\n}\n\n/* ---------------------------------------------------------------------------------------------- */\n\ntype SlottableElement = React.ReactElement<SlottableProps, SlottableComponent>;\n\nfunction isSlottable(\n child: React.ReactNode,\n): child is React.ReactElement<SlottableProps, typeof Slottable> {\n return (\n React.isValidElement(child) &&\n typeof child.type === 'function' &&\n '__radixId' in child.type &&\n child.type.__radixId === SLOTTABLE_IDENTIFIER\n );\n}\n\nconst REACT_LAZY_TYPE = Symbol.for('react.lazy');\n\ninterface LazyReactElement extends React.ReactElement {\n $$typeof: typeof REACT_LAZY_TYPE;\n _payload: PromiseLike<Exclude<React.ReactNode, PromiseLike<any>>>;\n}\n\nfunction isLazyComponent(element: React.ReactNode): element is LazyReactElement {\n return (\n element != null &&\n typeof element === 'object' &&\n '$$typeof' in element &&\n element.$$typeof === REACT_LAZY_TYPE &&\n '_payload' in element &&\n isPromiseLike(element._payload)\n );\n}\n\nfunction isPromiseLike(value: unknown): value is PromiseLike<unknown> {\n return typeof value === 'object' && value !== null && 'then' in value;\n}\n\nconst createSlotError = (ownerName: string) => {\n return `${ownerName} failed to slot onto its children. Expected a single React element child or \\`Slottable\\`.`;\n};\n\nconst createSlottableError = (ownerName: string) => {\n return `${ownerName} failed to slot onto its \\`Slottable\\`. Expected \\`Slottable\\` to receive a single React element child.`;\n};\n\nconst use: typeof React.use | undefined = (React as any)[' use '.trim().toString()];\n\nexport {\n Slot,\n Slottable,\n //\n Slot as Root,\n};\nexport type { SlotProps };\n"],
5
+ "mappings": "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",
6
+ "names": ["Slot", "Slottable", "child"]
7
+ }
@@ -0,0 +1,137 @@
1
+ // src/slot.tsx
2
+ import * as React from "react";
3
+ import { useComposedRefs } from "@radix-ui/react-compose-refs";
4
+ // @__NO_SIDE_EFFECTS__
5
+ function createSlot(ownerName) {
6
+ const Slot2 = React.forwardRef((props, forwardedRef) => {
7
+ let { children, ...slotProps } = props;
8
+ let slottableElement = null;
9
+ let hasSlottable = false;
10
+ const newChildren = [];
11
+ if (isLazyComponent(children) && typeof use === "function") {
12
+ children = use(children._payload);
13
+ }
14
+ React.Children.forEach(children, (maybeSlottable) => {
15
+ if (isSlottable(maybeSlottable)) {
16
+ hasSlottable = true;
17
+ const slottable = maybeSlottable;
18
+ let child = "child" in slottable.props ? slottable.props.child : slottable.props.children;
19
+ if (isLazyComponent(child) && typeof use === "function") {
20
+ child = use(child._payload);
21
+ }
22
+ slottableElement = getSlottableElementFromSlottable(slottable, child);
23
+ newChildren.push(slottableElement?.props?.children);
24
+ } else {
25
+ newChildren.push(maybeSlottable);
26
+ }
27
+ });
28
+ if (slottableElement) {
29
+ slottableElement = React.cloneElement(slottableElement, void 0, newChildren);
30
+ } else if (
31
+ // A `Slottable` was found but it didn't resolve to a single element (e.g.
32
+ // it wrapped multiple elements, text, or a render-prop `child` that
33
+ // wasn't an element). Don't fall back to treating the `Slottable` wrapper
34
+ // itself as the slot target — throw a descriptive error below instead.
35
+ !hasSlottable && React.Children.count(children) === 1 && React.isValidElement(children)
36
+ ) {
37
+ slottableElement = children;
38
+ }
39
+ const slottableElementRef = slottableElement ? getElementRef(slottableElement) : void 0;
40
+ const composedRef = useComposedRefs(forwardedRef, slottableElementRef);
41
+ if (!slottableElement) {
42
+ if (children || children === 0) {
43
+ throw new Error(
44
+ hasSlottable ? createSlottableError(ownerName) : createSlotError(ownerName)
45
+ );
46
+ }
47
+ return children;
48
+ }
49
+ const mergedProps = mergeProps(slotProps, slottableElement.props ?? {});
50
+ if (slottableElement.type !== React.Fragment) {
51
+ mergedProps.ref = forwardedRef ? composedRef : slottableElementRef;
52
+ }
53
+ return React.cloneElement(slottableElement, mergedProps);
54
+ });
55
+ Slot2.displayName = `${ownerName}.Slot`;
56
+ return Slot2;
57
+ }
58
+ var Slot = /* @__PURE__ */ createSlot("Slot");
59
+ var SLOTTABLE_IDENTIFIER = Symbol.for("radix.slottable");
60
+ // @__NO_SIDE_EFFECTS__
61
+ function createSlottable(ownerName) {
62
+ const Slottable2 = (props) => "child" in props ? props.children(props.child) : props.children;
63
+ Slottable2.displayName = `${ownerName}.Slottable`;
64
+ Slottable2.__radixId = SLOTTABLE_IDENTIFIER;
65
+ return Slottable2;
66
+ }
67
+ var Slottable = /* @__PURE__ */ createSlottable("Slottable");
68
+ var getSlottableElementFromSlottable = (slottable, child) => {
69
+ if ("child" in slottable.props) {
70
+ const child2 = slottable.props.child;
71
+ if (!React.isValidElement(child2)) return null;
72
+ return React.cloneElement(child2, void 0, slottable.props.children(child2.props.children));
73
+ }
74
+ return React.isValidElement(child) ? child : null;
75
+ };
76
+ function mergeProps(slotProps, childProps) {
77
+ const overrideProps = { ...childProps };
78
+ for (const propName in childProps) {
79
+ const slotPropValue = slotProps[propName];
80
+ const childPropValue = childProps[propName];
81
+ const isHandler = /^on[A-Z]/.test(propName);
82
+ if (isHandler) {
83
+ if (slotPropValue && childPropValue) {
84
+ overrideProps[propName] = (...args) => {
85
+ const result = childPropValue(...args);
86
+ slotPropValue(...args);
87
+ return result;
88
+ };
89
+ } else if (slotPropValue) {
90
+ overrideProps[propName] = slotPropValue;
91
+ }
92
+ } else if (propName === "style") {
93
+ overrideProps[propName] = { ...slotPropValue, ...childPropValue };
94
+ } else if (propName === "className") {
95
+ overrideProps[propName] = [slotPropValue, childPropValue].filter(Boolean).join(" ");
96
+ }
97
+ }
98
+ return { ...slotProps, ...overrideProps };
99
+ }
100
+ function getElementRef(element) {
101
+ let getter = Object.getOwnPropertyDescriptor(element.props, "ref")?.get;
102
+ let mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
103
+ if (mayWarn) {
104
+ return element.ref;
105
+ }
106
+ getter = Object.getOwnPropertyDescriptor(element, "ref")?.get;
107
+ mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
108
+ if (mayWarn) {
109
+ return element.props.ref;
110
+ }
111
+ return element.props.ref || element.ref;
112
+ }
113
+ function isSlottable(child) {
114
+ return React.isValidElement(child) && typeof child.type === "function" && "__radixId" in child.type && child.type.__radixId === SLOTTABLE_IDENTIFIER;
115
+ }
116
+ var REACT_LAZY_TYPE = Symbol.for("react.lazy");
117
+ function isLazyComponent(element) {
118
+ return element != null && typeof element === "object" && "$$typeof" in element && element.$$typeof === REACT_LAZY_TYPE && "_payload" in element && isPromiseLike(element._payload);
119
+ }
120
+ function isPromiseLike(value) {
121
+ return typeof value === "object" && value !== null && "then" in value;
122
+ }
123
+ var createSlotError = (ownerName) => {
124
+ return `${ownerName} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`;
125
+ };
126
+ var createSlottableError = (ownerName) => {
127
+ return `${ownerName} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`;
128
+ };
129
+ var use = React[" use ".trim().toString()];
130
+ export {
131
+ Slot as Root,
132
+ Slot,
133
+ Slottable,
134
+ createSlot,
135
+ createSlottable
136
+ };
137
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../src/slot.tsx"],
4
+ "sourcesContent": ["import * as React from 'react';\nimport { useComposedRefs } from '@radix-ui/react-compose-refs';\n\ndeclare module 'react' {\n interface ReactElement {\n $$typeof?: symbol | string;\n }\n}\n\n/* -------------------------------------------------------------------------------------------------\n * Slot\n * -----------------------------------------------------------------------------------------------*/\n\nexport type Usable<T> = PromiseLike<T> | React.Context<T>;\n\ntype SlotProps<Elem extends Element = HTMLElement, Props = React.HTMLAttributes<Elem>> = Props & {\n children?: React.ReactNode;\n};\n\n/* @__NO_SIDE_EFFECTS__ */ export function createSlot<\n Elem extends Element = HTMLElement,\n Props = React.HTMLAttributes<Elem>,\n>(ownerName: string) {\n const Slot = React.forwardRef<Elem, SlotProps<Elem, Props>>((props, forwardedRef) => {\n let { children, ...slotProps } = props;\n let slottableElement: React.ReactElement | null = null;\n let hasSlottable = false;\n const newChildren: React.ReactNode[] = [];\n\n if (isLazyComponent(children) && typeof use === 'function') {\n children = use(children._payload);\n }\n\n React.Children.forEach(children, (maybeSlottable) => {\n if (isSlottable(maybeSlottable)) {\n hasSlottable = true;\n const slottable = maybeSlottable;\n let child = 'child' in slottable.props ? slottable.props.child : slottable.props.children;\n\n if (isLazyComponent(child) && typeof use === 'function') {\n child = use(child._payload);\n }\n\n slottableElement = getSlottableElementFromSlottable(slottable, child);\n newChildren.push((slottableElement?.props as any)?.children);\n } else {\n newChildren.push(maybeSlottable);\n }\n });\n\n if (slottableElement) {\n slottableElement = React.cloneElement(slottableElement, undefined, newChildren);\n } else if (\n // A `Slottable` was found but it didn't resolve to a single element (e.g.\n // it wrapped multiple elements, text, or a render-prop `child` that\n // wasn't an element). Don't fall back to treating the `Slottable` wrapper\n // itself as the slot target \u2014 throw a descriptive error below instead.\n !hasSlottable &&\n React.Children.count(children) === 1 &&\n React.isValidElement(children)\n ) {\n slottableElement = children;\n }\n\n const slottableElementRef = slottableElement ? getElementRef(slottableElement) : undefined;\n const composedRef = useComposedRefs(forwardedRef, slottableElementRef);\n\n if (!slottableElement) {\n // Empty/falsy children (`null`, `undefined`, `false`, no children, etc.) are valid and\n // render nothing. Anything else is content we couldn't slot onto a single element, which\n // is a usage error, so we fail loudly with a clear message.\n if (children || children === 0) {\n throw new Error(\n hasSlottable ? createSlottableError(ownerName) : createSlotError(ownerName),\n );\n }\n return children;\n }\n\n const mergedProps = mergeProps(slotProps, slottableElement.props ?? {});\n\n // do not pass ref to React.Fragment for React 19 compatibility\n if (slottableElement.type !== React.Fragment) {\n mergedProps.ref = forwardedRef ? composedRef : slottableElementRef;\n }\n\n return React.cloneElement(slottableElement, mergedProps);\n });\n\n Slot.displayName = `${ownerName}.Slot`;\n return Slot;\n}\n\nconst Slot = createSlot('Slot');\n\n/* -------------------------------------------------------------------------------------------------\n * Slottable\n * -----------------------------------------------------------------------------------------------*/\n\nconst SLOTTABLE_IDENTIFIER = Symbol.for('radix.slottable');\n\ntype SlottableChildrenProps = { children: React.ReactNode };\ntype SlottableRenderFnProps = {\n child: React.ReactNode;\n children: (slottable: React.ReactNode) => React.ReactNode;\n};\n\ntype SlottableProps = SlottableRenderFnProps | SlottableChildrenProps;\ninterface SlottableComponent extends React.FC<SlottableProps> {\n __radixId: symbol;\n}\n\n/* @__NO_SIDE_EFFECTS__ */ export function createSlottable(ownerName: string) {\n const Slottable: SlottableComponent = (props) =>\n 'child' in props ? props.children(props.child) : props.children;\n\n Slottable.displayName = `${ownerName}.Slottable`;\n Slottable.__radixId = SLOTTABLE_IDENTIFIER;\n return Slottable;\n}\n\nconst Slottable = createSlottable('Slottable');\n\n/* -------------------------------------------------------------------------------------------------\n * getSlottableElementFromSlottable\n * -----------------------------------------------------------------------------------------------*/\n\nconst getSlottableElementFromSlottable = (slottable: SlottableElement, child: React.ReactNode) => {\n if ('child' in slottable.props) {\n const child = slottable.props.child;\n if (!React.isValidElement<React.PropsWithChildren>(child)) return null;\n return React.cloneElement(child, undefined, slottable.props.children(child.props.children));\n }\n\n return React.isValidElement(child) ? child : null;\n};\n\n/* -------------------------------------------------------------------------------------------------\n * mergeProps\n * -----------------------------------------------------------------------------------------------*/\n\ntype AnyProps = Record<string, any>;\n\nfunction mergeProps(slotProps: AnyProps, childProps: AnyProps) {\n // all child props should override\n const overrideProps = { ...childProps };\n\n for (const propName in childProps) {\n const slotPropValue = slotProps[propName];\n const childPropValue = childProps[propName];\n\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) {\n overrideProps[propName] = (...args: unknown[]) => {\n const result = childPropValue(...args);\n slotPropValue(...args);\n return result;\n };\n }\n // but if it exists only on the slot, we use only this one\n else if (slotPropValue) {\n overrideProps[propName] = slotPropValue;\n }\n }\n // if it's `style`, we merge them\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\n return { ...slotProps, ...overrideProps };\n}\n\n/* -------------------------------------------------------------------------------------------------\n * getElementRef\n * -----------------------------------------------------------------------------------------------*/\n\n// Before React 19 accessing `element.props.ref` will throw a warning and suggest using `element.ref`\n// After React 19 accessing `element.ref` does the opposite.\n// https://github.com/facebook/react/pull/28348\n//\n// Access the ref using the method that doesn't yield a warning.\nfunction getElementRef(element: React.ReactElement) {\n // React <=18 in DEV\n let getter = Object.getOwnPropertyDescriptor(element.props, 'ref')?.get;\n let mayWarn = getter && 'isReactWarning' in getter && getter.isReactWarning;\n if (mayWarn) {\n return (element as any).ref;\n }\n\n // React 19 in DEV\n getter = Object.getOwnPropertyDescriptor(element, 'ref')?.get;\n mayWarn = getter && 'isReactWarning' in getter && getter.isReactWarning;\n if (mayWarn) {\n return (element.props as { ref?: React.Ref<unknown> }).ref;\n }\n\n // Not DEV\n return (element.props as { ref?: React.Ref<unknown> }).ref || (element as any).ref;\n}\n\n/* ---------------------------------------------------------------------------------------------- */\n\ntype SlottableElement = React.ReactElement<SlottableProps, SlottableComponent>;\n\nfunction isSlottable(\n child: React.ReactNode,\n): child is React.ReactElement<SlottableProps, typeof Slottable> {\n return (\n React.isValidElement(child) &&\n typeof child.type === 'function' &&\n '__radixId' in child.type &&\n child.type.__radixId === SLOTTABLE_IDENTIFIER\n );\n}\n\nconst REACT_LAZY_TYPE = Symbol.for('react.lazy');\n\ninterface LazyReactElement extends React.ReactElement {\n $$typeof: typeof REACT_LAZY_TYPE;\n _payload: PromiseLike<Exclude<React.ReactNode, PromiseLike<any>>>;\n}\n\nfunction isLazyComponent(element: React.ReactNode): element is LazyReactElement {\n return (\n element != null &&\n typeof element === 'object' &&\n '$$typeof' in element &&\n element.$$typeof === REACT_LAZY_TYPE &&\n '_payload' in element &&\n isPromiseLike(element._payload)\n );\n}\n\nfunction isPromiseLike(value: unknown): value is PromiseLike<unknown> {\n return typeof value === 'object' && value !== null && 'then' in value;\n}\n\nconst createSlotError = (ownerName: string) => {\n return `${ownerName} failed to slot onto its children. Expected a single React element child or \\`Slottable\\`.`;\n};\n\nconst createSlottableError = (ownerName: string) => {\n return `${ownerName} failed to slot onto its \\`Slottable\\`. Expected \\`Slottable\\` to receive a single React element child.`;\n};\n\nconst use: typeof React.use | undefined = (React as any)[' use '.trim().toString()];\n\nexport {\n Slot,\n Slottable,\n //\n Slot as Root,\n};\nexport type { SlotProps };\n"],
5
+ "mappings": "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",
6
+ "names": ["Slot", "Slottable", "child"]
7
+ }
@@ -0,0 +1,63 @@
1
+ {
2
+ "name": "@radix-ui/react-slot",
3
+ "version": "1.3.0",
4
+ "license": "MIT",
5
+ "source": "./src/index.ts",
6
+ "main": "./dist/index.js",
7
+ "module": "./dist/index.mjs",
8
+ "files": [
9
+ "dist",
10
+ "README.md"
11
+ ],
12
+ "sideEffects": false,
13
+ "dependencies": {
14
+ "@radix-ui/react-compose-refs": "1.1.3"
15
+ },
16
+ "devDependencies": {
17
+ "@types/react": "^19.2.2",
18
+ "@types/react-dom": "^19.2.2",
19
+ "react": "^19.2.0",
20
+ "react-dom": "^19.2.0",
21
+ "typescript": "^5.9.3",
22
+ "@repo/typescript-config": "0.0.0",
23
+ "@repo/builder": "0.0.0"
24
+ },
25
+ "peerDependencies": {
26
+ "@types/react": "*",
27
+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
28
+ },
29
+ "peerDependenciesMeta": {
30
+ "@types/react": {
31
+ "optional": true
32
+ }
33
+ },
34
+ "homepage": "https://radix-ui.com/primitives",
35
+ "repository": {
36
+ "type": "git",
37
+ "url": "git+https://github.com/radix-ui/primitives.git",
38
+ "directory": "packages/react/slot"
39
+ },
40
+ "bugs": {
41
+ "url": "https://github.com/radix-ui/primitives/issues"
42
+ },
43
+ "scripts": {
44
+ "lint": "oxlint --max-warnings 0 src",
45
+ "clean": "rm -rf dist",
46
+ "reset": "rm -rf dist node_modules",
47
+ "typecheck": "tsc --noEmit",
48
+ "build": "radix-build"
49
+ },
50
+ "types": "./dist/index.d.ts",
51
+ "exports": {
52
+ ".": {
53
+ "import": {
54
+ "types": "./dist/index.d.mts",
55
+ "default": "./dist/index.mjs"
56
+ },
57
+ "require": {
58
+ "types": "./dist/index.d.ts",
59
+ "default": "./dist/index.js"
60
+ }
61
+ }
62
+ }
63
+ }
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2022 WorkOS
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,3 @@
1
+ # `react-tooltip`
2
+
3
+ View docs [here](https://radix-ui.com/primitives/docs/components/tooltip).