@sparrowengg/twigs-editor-react 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (739) hide show
  1. package/README.md +38 -0
  2. package/dist/cjs/_virtual/_commonjsHelpers.js +8 -0
  3. package/dist/cjs/_virtual/_commonjsHelpers.js.map +1 -0
  4. package/dist/cjs/_virtual/assertString.js +6 -0
  5. package/dist/cjs/_virtual/assertString.js.map +1 -0
  6. package/dist/cjs/_virtual/isFQDN.js +6 -0
  7. package/dist/cjs/_virtual/isFQDN.js.map +1 -0
  8. package/dist/cjs/_virtual/isIP.js +6 -0
  9. package/dist/cjs/_virtual/isIP.js.map +1 -0
  10. package/dist/cjs/_virtual/isURL.js +12 -0
  11. package/dist/cjs/_virtual/isURL.js.map +1 -0
  12. package/dist/cjs/_virtual/isURL2.js +6 -0
  13. package/dist/cjs/_virtual/isURL2.js.map +1 -0
  14. package/dist/cjs/_virtual/merge.js +6 -0
  15. package/dist/cjs/_virtual/merge.js.map +1 -0
  16. package/dist/cjs/components/base-dropdown/index.js +175 -0
  17. package/dist/cjs/components/base-dropdown/index.js.map +1 -0
  18. package/dist/cjs/components/dialog-link-editor/index.js +291 -0
  19. package/dist/cjs/components/dialog-link-editor/index.js.map +1 -0
  20. package/dist/cjs/components/dialog-link-editor/link-editor-dialog.js +199 -0
  21. package/dist/cjs/components/dialog-link-editor/link-editor-dialog.js.map +1 -0
  22. package/dist/cjs/components/dialog-link-editor/link-tooltip.js +122 -0
  23. package/dist/cjs/components/dialog-link-editor/link-tooltip.js.map +1 -0
  24. package/dist/cjs/components/floating-toolbar/floating-toolbar.js +302 -0
  25. package/dist/cjs/components/floating-toolbar/floating-toolbar.js.map +1 -0
  26. package/dist/cjs/components/rich-editor/index.js +142 -0
  27. package/dist/cjs/components/rich-editor/index.js.map +1 -0
  28. package/dist/cjs/components/toolbar/toolbar.js +76 -0
  29. package/dist/cjs/components/toolbar/toolbar.js.map +1 -0
  30. package/dist/cjs/components/toolbar/tools/bold.js +52 -0
  31. package/dist/cjs/components/toolbar/tools/bold.js.map +1 -0
  32. package/dist/cjs/components/toolbar/tools/code-block.js +79 -0
  33. package/dist/cjs/components/toolbar/tools/code-block.js.map +1 -0
  34. package/dist/cjs/components/toolbar/tools/code.js +54 -0
  35. package/dist/cjs/components/toolbar/tools/code.js.map +1 -0
  36. package/dist/cjs/components/toolbar/tools/commons.js +16 -0
  37. package/dist/cjs/components/toolbar/tools/commons.js.map +1 -0
  38. package/dist/cjs/components/toolbar/tools/format.js +136 -0
  39. package/dist/cjs/components/toolbar/tools/format.js.map +1 -0
  40. package/dist/cjs/components/toolbar/tools/italic.js +57 -0
  41. package/dist/cjs/components/toolbar/tools/italic.js.map +1 -0
  42. package/dist/cjs/components/toolbar/tools/link.js +71 -0
  43. package/dist/cjs/components/toolbar/tools/link.js.map +1 -0
  44. package/dist/cjs/components/toolbar/tools/ordered-list.js +62 -0
  45. package/dist/cjs/components/toolbar/tools/ordered-list.js.map +1 -0
  46. package/dist/cjs/components/toolbar/tools/text-align.js +82 -0
  47. package/dist/cjs/components/toolbar/tools/text-align.js.map +1 -0
  48. package/dist/cjs/components/toolbar/tools/underline.js +57 -0
  49. package/dist/cjs/components/toolbar/tools/underline.js.map +1 -0
  50. package/dist/cjs/components/toolbar/tools/unordered-list.js +62 -0
  51. package/dist/cjs/components/toolbar/tools/unordered-list.js.map +1 -0
  52. package/dist/cjs/components/toolbar-context/context.js +148 -0
  53. package/dist/cjs/components/toolbar-context/context.js.map +1 -0
  54. package/dist/cjs/components/toolbar-context/store.js +75 -0
  55. package/dist/cjs/components/toolbar-context/store.js.map +1 -0
  56. package/dist/cjs/components/toolbar-context/utils.js +6 -0
  57. package/dist/cjs/components/toolbar-context/utils.js.map +1 -0
  58. package/dist/cjs/editor.js +154 -0
  59. package/dist/cjs/editor.js.map +1 -0
  60. package/dist/cjs/index.js +86 -0
  61. package/dist/cjs/index.js.map +1 -0
  62. package/dist/cjs/nodes/emoji.js +86 -0
  63. package/dist/cjs/nodes/emoji.js.map +1 -0
  64. package/dist/cjs/nodes/hashtag.js +109 -0
  65. package/dist/cjs/nodes/hashtag.js.map +1 -0
  66. package/dist/cjs/nodes/image.js +215 -0
  67. package/dist/cjs/nodes/image.js.map +1 -0
  68. package/dist/cjs/nodes/kudos.js +110 -0
  69. package/dist/cjs/nodes/kudos.js.map +1 -0
  70. package/dist/cjs/nodes/mention.js +109 -0
  71. package/dist/cjs/nodes/mention.js.map +1 -0
  72. package/dist/cjs/nodes/variables.js +109 -0
  73. package/dist/cjs/nodes/variables.js.map +1 -0
  74. package/dist/cjs/plugins/data-management-plugin/index.js +40 -0
  75. package/dist/cjs/plugins/data-management-plugin/index.js.map +1 -0
  76. package/dist/cjs/plugins/emoji/emoji-list.js +16609 -0
  77. package/dist/cjs/plugins/emoji/emoji-list.js.map +1 -0
  78. package/dist/cjs/plugins/emoji/index.js +126 -0
  79. package/dist/cjs/plugins/emoji/index.js.map +1 -0
  80. package/dist/cjs/plugins/hashtag/index.js +100 -0
  81. package/dist/cjs/plugins/hashtag/index.js.map +1 -0
  82. package/dist/cjs/plugins/images/index.js +164 -0
  83. package/dist/cjs/plugins/images/index.js.map +1 -0
  84. package/dist/cjs/plugins/images/utils.js +10 -0
  85. package/dist/cjs/plugins/images/utils.js.map +1 -0
  86. package/dist/cjs/plugins/link/auto-link.js +21 -0
  87. package/dist/cjs/plugins/link/auto-link.js.map +1 -0
  88. package/dist/cjs/plugins/link/convert-selection-on-paste.js +34 -0
  89. package/dist/cjs/plugins/link/convert-selection-on-paste.js.map +1 -0
  90. package/dist/cjs/plugins/link/link.js +68 -0
  91. package/dist/cjs/plugins/link/link.js.map +1 -0
  92. package/dist/cjs/plugins/mentions/index.js +108 -0
  93. package/dist/cjs/plugins/mentions/index.js.map +1 -0
  94. package/dist/cjs/plugins/tab-focus/index.js +54 -0
  95. package/dist/cjs/plugins/tab-focus/index.js.map +1 -0
  96. package/dist/cjs/react-components/dist/es/_virtual/_commonjsHelpers.js +8 -0
  97. package/dist/cjs/react-components/dist/es/_virtual/_commonjsHelpers.js.map +1 -0
  98. package/dist/cjs/react-components/dist/es/_virtual/index.js +6 -0
  99. package/dist/cjs/react-components/dist/es/_virtual/index.js.map +1 -0
  100. package/dist/cjs/react-components/dist/es/_virtual/index2.js +6 -0
  101. package/dist/cjs/react-components/dist/es/_virtual/index2.js.map +1 -0
  102. package/dist/cjs/react-components/dist/es/_virtual/react-is.development.js +6 -0
  103. package/dist/cjs/react-components/dist/es/_virtual/react-is.development.js.map +1 -0
  104. package/dist/cjs/react-components/dist/es/_virtual/react-is.production.min.js +6 -0
  105. package/dist/cjs/react-components/dist/es/_virtual/react-is.production.min.js.map +1 -0
  106. package/dist/cjs/react-components/dist/es/box/box.js +47 -0
  107. package/dist/cjs/react-components/dist/es/box/box.js.map +1 -0
  108. package/dist/cjs/react-components/dist/es/button/button.js +774 -0
  109. package/dist/cjs/react-components/dist/es/button/button.js.map +1 -0
  110. package/dist/cjs/react-components/dist/es/button/icon-button.js +77 -0
  111. package/dist/cjs/react-components/dist/es/button/icon-button.js.map +1 -0
  112. package/dist/cjs/react-components/dist/es/button/side-element.js +199 -0
  113. package/dist/cjs/react-components/dist/es/button/side-element.js.map +1 -0
  114. package/dist/cjs/react-components/dist/es/button/utils.js +105 -0
  115. package/dist/cjs/react-components/dist/es/button/utils.js.map +1 -0
  116. package/dist/cjs/react-components/dist/es/dialog/dialog.js +197 -0
  117. package/dist/cjs/react-components/dist/es/dialog/dialog.js.map +1 -0
  118. package/dist/cjs/react-components/dist/es/dropdown/dropdown.js +195 -0
  119. package/dist/cjs/react-components/dist/es/dropdown/dropdown.js.map +1 -0
  120. package/dist/cjs/react-components/dist/es/flex/flex.js +98 -0
  121. package/dist/cjs/react-components/dist/es/flex/flex.js.map +1 -0
  122. package/dist/cjs/react-components/dist/es/form-helper-text/form-helper-text.js +76 -0
  123. package/dist/cjs/react-components/dist/es/form-helper-text/form-helper-text.js.map +1 -0
  124. package/dist/cjs/react-components/dist/es/form-label/form-label.js +176 -0
  125. package/dist/cjs/react-components/dist/es/form-label/form-label.js.map +1 -0
  126. package/dist/cjs/react-components/dist/es/input/form-input.js +159 -0
  127. package/dist/cjs/react-components/dist/es/input/form-input.js.map +1 -0
  128. package/dist/cjs/react-components/dist/es/input/input.js +377 -0
  129. package/dist/cjs/react-components/dist/es/input/input.js.map +1 -0
  130. package/dist/cjs/react-components/dist/es/link/link.js +58 -0
  131. package/dist/cjs/react-components/dist/es/link/link.js.map +1 -0
  132. package/dist/cjs/react-components/dist/es/loader/circle.js +204 -0
  133. package/dist/cjs/react-components/dist/es/loader/circle.js.map +1 -0
  134. package/dist/cjs/react-components/dist/es/loader/line.js +130 -0
  135. package/dist/cjs/react-components/dist/es/loader/line.js.map +1 -0
  136. package/dist/cjs/react-components/dist/es/node_modules/@babel/runtime/helpers/esm/extends.js +21 -0
  137. package/dist/cjs/react-components/dist/es/node_modules/@babel/runtime/helpers/esm/extends.js.map +1 -0
  138. package/dist/cjs/react-components/dist/es/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js +14 -0
  139. package/dist/cjs/react-components/dist/es/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js.map +1 -0
  140. package/dist/cjs/react-components/dist/es/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +19 -0
  141. package/dist/cjs/react-components/dist/es/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js.map +1 -0
  142. package/dist/cjs/react-components/dist/es/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js +14 -0
  143. package/dist/cjs/react-components/dist/es/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js.map +1 -0
  144. package/dist/cjs/react-components/dist/es/node_modules/@floating-ui/core/dist/floating-ui.core.js +788 -0
  145. package/dist/cjs/react-components/dist/es/node_modules/@floating-ui/core/dist/floating-ui.core.js.map +1 -0
  146. package/dist/cjs/react-components/dist/es/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +612 -0
  147. package/dist/cjs/react-components/dist/es/node_modules/@floating-ui/dom/dist/floating-ui.dom.js.map +1 -0
  148. package/dist/cjs/react-components/dist/es/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js +299 -0
  149. package/dist/cjs/react-components/dist/es/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js.map +1 -0
  150. package/dist/cjs/react-components/dist/es/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +146 -0
  151. package/dist/cjs/react-components/dist/es/node_modules/@floating-ui/utils/dist/floating-ui.utils.js.map +1 -0
  152. package/dist/cjs/react-components/dist/es/node_modules/@floating-ui/utils/dom/dist/floating-ui.utils.dom.js +148 -0
  153. package/dist/cjs/react-components/dist/es/node_modules/@floating-ui/utils/dom/dist/floating-ui.utils.dom.js.map +1 -0
  154. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/primitive/dist/index.js +14 -0
  155. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/primitive/dist/index.js.map +1 -0
  156. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-arrow/dist/index.js +48 -0
  157. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-arrow/dist/index.js.map +1 -0
  158. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-collection/dist/index.js +71 -0
  159. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-collection/dist/index.js.map +1 -0
  160. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-compose-refs/dist/index.js +41 -0
  161. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-compose-refs/dist/index.js.map +1 -0
  162. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-context/dist/index.js +102 -0
  163. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-context/dist/index.js.map +1 -0
  164. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-dialog/dist/index.js +354 -0
  165. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-dialog/dist/index.js.map +1 -0
  166. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-direction/dist/index.js +33 -0
  167. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-direction/dist/index.js.map +1 -0
  168. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-dismissable-layer/dist/index.js +234 -0
  169. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-dismissable-layer/dist/index.js.map +1 -0
  170. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-dropdown-menu/dist/index.js +303 -0
  171. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-dropdown-menu/dist/index.js.map +1 -0
  172. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-focus-guards/dist/index.js +48 -0
  173. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-focus-guards/dist/index.js.map +1 -0
  174. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-focus-scope/dist/index.js +229 -0
  175. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-focus-scope/dist/index.js.map +1 -0
  176. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-id/dist/index.js +37 -0
  177. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-id/dist/index.js.map +1 -0
  178. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-label/dist/index.js +47 -0
  179. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-label/dist/index.js.map +1 -0
  180. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-menu/dist/index.js +847 -0
  181. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-menu/dist/index.js.map +1 -0
  182. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-popper/dist/index.js +309 -0
  183. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-popper/dist/index.js.map +1 -0
  184. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-portal/dist/index.js +39 -0
  185. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-portal/dist/index.js.map +1 -0
  186. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-presence/dist/index.js +142 -0
  187. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-presence/dist/index.js.map +1 -0
  188. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-primitive/dist/index.js +65 -0
  189. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-primitive/dist/index.js.map +1 -0
  190. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-roving-focus/dist/index.js +246 -0
  191. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-roving-focus/dist/index.js.map +1 -0
  192. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-slot/dist/index.js +104 -0
  193. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-slot/dist/index.js.map +1 -0
  194. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-tooltip/dist/index.js +509 -0
  195. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-tooltip/dist/index.js.map +1 -0
  196. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-use-callback-ref/dist/index.js +34 -0
  197. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-use-callback-ref/dist/index.js.map +1 -0
  198. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-use-controllable-state/dist/index.js +68 -0
  199. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-use-controllable-state/dist/index.js.map +1 -0
  200. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-use-escape-keydown/dist/index.js +40 -0
  201. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-use-escape-keydown/dist/index.js.map +1 -0
  202. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-use-layout-effect/dist/index.js +29 -0
  203. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-use-layout-effect/dist/index.js.map +1 -0
  204. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-use-size/dist/index.js +62 -0
  205. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-use-size/dist/index.js.map +1 -0
  206. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-visually-hidden/dist/index.js +58 -0
  207. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-visually-hidden/dist/index.js.map +1 -0
  208. package/dist/cjs/react-components/dist/es/node_modules/@stitches/react/dist/index.js +9 -0
  209. package/dist/cjs/react-components/dist/es/node_modules/@stitches/react/dist/index.js.map +1 -0
  210. package/dist/cjs/react-components/dist/es/node_modules/aria-hidden/dist/es2015/index.js +134 -0
  211. package/dist/cjs/react-components/dist/es/node_modules/aria-hidden/dist/es2015/index.js.map +1 -0
  212. package/dist/cjs/react-components/dist/es/node_modules/dom-helpers/esm/addClass.js +19 -0
  213. package/dist/cjs/react-components/dist/es/node_modules/dom-helpers/esm/addClass.js.map +1 -0
  214. package/dist/cjs/react-components/dist/es/node_modules/dom-helpers/esm/hasClass.js +17 -0
  215. package/dist/cjs/react-components/dist/es/node_modules/dom-helpers/esm/hasClass.js.map +1 -0
  216. package/dist/cjs/react-components/dist/es/node_modules/dom-helpers/esm/removeClass.js +27 -0
  217. package/dist/cjs/react-components/dist/es/node_modules/dom-helpers/esm/removeClass.js.map +1 -0
  218. package/dist/cjs/react-components/dist/es/node_modules/get-nonce/dist/es2015/index.js +11 -0
  219. package/dist/cjs/react-components/dist/es/node_modules/get-nonce/dist/es2015/index.js.map +1 -0
  220. package/dist/cjs/react-components/dist/es/node_modules/object-assign/index.js +102 -0
  221. package/dist/cjs/react-components/dist/es/node_modules/object-assign/index.js.map +1 -0
  222. package/dist/cjs/react-components/dist/es/node_modules/prop-types/checkPropTypes.js +118 -0
  223. package/dist/cjs/react-components/dist/es/node_modules/prop-types/checkPropTypes.js.map +1 -0
  224. package/dist/cjs/react-components/dist/es/node_modules/prop-types/factoryWithThrowingShims.js +77 -0
  225. package/dist/cjs/react-components/dist/es/node_modules/prop-types/factoryWithThrowingShims.js.map +1 -0
  226. package/dist/cjs/react-components/dist/es/node_modules/prop-types/factoryWithTypeCheckers.js +628 -0
  227. package/dist/cjs/react-components/dist/es/node_modules/prop-types/factoryWithTypeCheckers.js.map +1 -0
  228. package/dist/cjs/react-components/dist/es/node_modules/prop-types/index.js +35 -0
  229. package/dist/cjs/react-components/dist/es/node_modules/prop-types/index.js.map +1 -0
  230. package/dist/cjs/react-components/dist/es/node_modules/prop-types/lib/ReactPropTypesSecret.js +24 -0
  231. package/dist/cjs/react-components/dist/es/node_modules/prop-types/lib/ReactPropTypesSecret.js.map +1 -0
  232. package/dist/cjs/react-components/dist/es/node_modules/prop-types/lib/has.js +14 -0
  233. package/dist/cjs/react-components/dist/es/node_modules/prop-types/lib/has.js.map +1 -0
  234. package/dist/cjs/react-components/dist/es/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js +193 -0
  235. package/dist/cjs/react-components/dist/es/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js.map +1 -0
  236. package/dist/cjs/react-components/dist/es/node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js +29 -0
  237. package/dist/cjs/react-components/dist/es/node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js.map +1 -0
  238. package/dist/cjs/react-components/dist/es/node_modules/prop-types/node_modules/react-is/index.js +22 -0
  239. package/dist/cjs/react-components/dist/es/node_modules/prop-types/node_modules/react-is/index.js.map +1 -0
  240. package/dist/cjs/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/Combination.js +34 -0
  241. package/dist/cjs/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/Combination.js.map +1 -0
  242. package/dist/cjs/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/SideEffect.js +184 -0
  243. package/dist/cjs/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/SideEffect.js.map +1 -0
  244. package/dist/cjs/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/UI.js +60 -0
  245. package/dist/cjs/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/UI.js.map +1 -0
  246. package/dist/cjs/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js +24 -0
  247. package/dist/cjs/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js.map +1 -0
  248. package/dist/cjs/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/handleScroll.js +110 -0
  249. package/dist/cjs/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/handleScroll.js.map +1 -0
  250. package/dist/cjs/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/medium.js +8 -0
  251. package/dist/cjs/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/medium.js.map +1 -0
  252. package/dist/cjs/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/sidecar.js +12 -0
  253. package/dist/cjs/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/sidecar.js.map +1 -0
  254. package/dist/cjs/react-components/dist/es/node_modules/react-remove-scroll-bar/dist/es2015/component.js +80 -0
  255. package/dist/cjs/react-components/dist/es/node_modules/react-remove-scroll-bar/dist/es2015/component.js.map +1 -0
  256. package/dist/cjs/react-components/dist/es/node_modules/react-remove-scroll-bar/dist/es2015/constants.js +16 -0
  257. package/dist/cjs/react-components/dist/es/node_modules/react-remove-scroll-bar/dist/es2015/constants.js.map +1 -0
  258. package/dist/cjs/react-components/dist/es/node_modules/react-remove-scroll-bar/dist/es2015/utils.js +35 -0
  259. package/dist/cjs/react-components/dist/es/node_modules/react-remove-scroll-bar/dist/es2015/utils.js.map +1 -0
  260. package/dist/cjs/react-components/dist/es/node_modules/react-style-singleton/dist/es2015/component.js +22 -0
  261. package/dist/cjs/react-components/dist/es/node_modules/react-style-singleton/dist/es2015/component.js.map +1 -0
  262. package/dist/cjs/react-components/dist/es/node_modules/react-style-singleton/dist/es2015/hook.js +47 -0
  263. package/dist/cjs/react-components/dist/es/node_modules/react-style-singleton/dist/es2015/hook.js.map +1 -0
  264. package/dist/cjs/react-components/dist/es/node_modules/react-style-singleton/dist/es2015/singleton.js +54 -0
  265. package/dist/cjs/react-components/dist/es/node_modules/react-style-singleton/dist/es2015/singleton.js.map +1 -0
  266. package/dist/cjs/react-components/dist/es/node_modules/react-transition-group/esm/CSSTransition.js +419 -0
  267. package/dist/cjs/react-components/dist/es/node_modules/react-transition-group/esm/CSSTransition.js.map +1 -0
  268. package/dist/cjs/react-components/dist/es/node_modules/react-transition-group/esm/Transition.js +637 -0
  269. package/dist/cjs/react-components/dist/es/node_modules/react-transition-group/esm/Transition.js.map +1 -0
  270. package/dist/cjs/react-components/dist/es/node_modules/react-transition-group/esm/TransitionGroupContext.js +10 -0
  271. package/dist/cjs/react-components/dist/es/node_modules/react-transition-group/esm/TransitionGroupContext.js.map +1 -0
  272. package/dist/cjs/react-components/dist/es/node_modules/react-transition-group/esm/config.js +10 -0
  273. package/dist/cjs/react-components/dist/es/node_modules/react-transition-group/esm/config.js.map +1 -0
  274. package/dist/cjs/react-components/dist/es/node_modules/react-transition-group/esm/utils/PropTypes.js +25 -0
  275. package/dist/cjs/react-components/dist/es/node_modules/react-transition-group/esm/utils/PropTypes.js.map +1 -0
  276. package/dist/cjs/react-components/dist/es/node_modules/react-transition-group/esm/utils/reflow.js +8 -0
  277. package/dist/cjs/react-components/dist/es/node_modules/react-transition-group/esm/utils/reflow.js.map +1 -0
  278. package/dist/cjs/react-components/dist/es/node_modules/tslib/tslib.es6.js +55 -0
  279. package/dist/cjs/react-components/dist/es/node_modules/tslib/tslib.es6.js.map +1 -0
  280. package/dist/cjs/react-components/dist/es/node_modules/use-callback-ref/dist/es2015/assignRef.js +27 -0
  281. package/dist/cjs/react-components/dist/es/node_modules/use-callback-ref/dist/es2015/assignRef.js.map +1 -0
  282. package/dist/cjs/react-components/dist/es/node_modules/use-callback-ref/dist/es2015/useMergeRef.js +25 -0
  283. package/dist/cjs/react-components/dist/es/node_modules/use-callback-ref/dist/es2015/useMergeRef.js.map +1 -0
  284. package/dist/cjs/react-components/dist/es/node_modules/use-callback-ref/dist/es2015/useRef.js +45 -0
  285. package/dist/cjs/react-components/dist/es/node_modules/use-callback-ref/dist/es2015/useRef.js.map +1 -0
  286. package/dist/cjs/react-components/dist/es/node_modules/use-sidecar/dist/es2015/exports.js +43 -0
  287. package/dist/cjs/react-components/dist/es/node_modules/use-sidecar/dist/es2015/exports.js.map +1 -0
  288. package/dist/cjs/react-components/dist/es/node_modules/use-sidecar/dist/es2015/medium.js +80 -0
  289. package/dist/cjs/react-components/dist/es/node_modules/use-sidecar/dist/es2015/medium.js.map +1 -0
  290. package/dist/cjs/react-components/dist/es/packages/react-components/node_modules/clsx/dist/clsx.js +9 -0
  291. package/dist/cjs/react-components/dist/es/packages/react-components/node_modules/clsx/dist/clsx.js.map +1 -0
  292. package/dist/cjs/react-components/dist/es/packages/react-icons/dist/es/icons/info.js +97 -0
  293. package/dist/cjs/react-components/dist/es/packages/react-icons/dist/es/icons/info.js.map +1 -0
  294. package/dist/cjs/react-components/dist/es/stitches.config.js +392 -0
  295. package/dist/cjs/react-components/dist/es/stitches.config.js.map +1 -0
  296. package/dist/cjs/react-components/dist/es/text/text.js +117 -0
  297. package/dist/cjs/react-components/dist/es/text/text.js.map +1 -0
  298. package/dist/cjs/react-components/dist/es/tooltip/tooltip.js +156 -0
  299. package/dist/cjs/react-components/dist/es/tooltip/tooltip.js.map +1 -0
  300. package/dist/cjs/react-components/dist/es/utils/prefix-class-name.js +10 -0
  301. package/dist/cjs/react-components/dist/es/utils/prefix-class-name.js.map +1 -0
  302. package/dist/cjs/react-editor/node_modules/clsx/dist/clsx.js +9 -0
  303. package/dist/cjs/react-editor/node_modules/clsx/dist/clsx.js.map +1 -0
  304. package/dist/cjs/react-editor/node_modules/validator/es/lib/isFQDN.js +75 -0
  305. package/dist/cjs/react-editor/node_modules/validator/es/lib/isFQDN.js.map +1 -0
  306. package/dist/cjs/react-editor/node_modules/validator/es/lib/isIP.js +58 -0
  307. package/dist/cjs/react-editor/node_modules/validator/es/lib/isIP.js.map +1 -0
  308. package/dist/cjs/react-editor/node_modules/validator/es/lib/isURL.js +163 -0
  309. package/dist/cjs/react-editor/node_modules/validator/es/lib/isURL.js.map +1 -0
  310. package/dist/cjs/react-editor/node_modules/validator/es/lib/util/assertString.js +16 -0
  311. package/dist/cjs/react-editor/node_modules/validator/es/lib/util/assertString.js.map +1 -0
  312. package/dist/cjs/react-editor/node_modules/validator/es/lib/util/merge.js +17 -0
  313. package/dist/cjs/react-editor/node_modules/validator/es/lib/util/merge.js.map +1 -0
  314. package/dist/cjs/react-editor/node_modules/validator/lib/isFQDN.js +93 -0
  315. package/dist/cjs/react-editor/node_modules/validator/lib/isFQDN.js.map +1 -0
  316. package/dist/cjs/react-editor/node_modules/validator/lib/isIP.js +75 -0
  317. package/dist/cjs/react-editor/node_modules/validator/lib/isIP.js.map +1 -0
  318. package/dist/cjs/react-editor/node_modules/validator/lib/isURL.js +182 -0
  319. package/dist/cjs/react-editor/node_modules/validator/lib/isURL.js.map +1 -0
  320. package/dist/cjs/react-editor/node_modules/validator/lib/util/assertString.js +32 -0
  321. package/dist/cjs/react-editor/node_modules/validator/lib/util/assertString.js.map +1 -0
  322. package/dist/cjs/react-editor/node_modules/validator/lib/util/merge.js +33 -0
  323. package/dist/cjs/react-editor/node_modules/validator/lib/util/merge.js.map +1 -0
  324. package/dist/cjs/react-icons/dist/es/icons/bold.js +86 -0
  325. package/dist/cjs/react-icons/dist/es/icons/bold.js.map +1 -0
  326. package/dist/cjs/react-icons/dist/es/icons/close.js +86 -0
  327. package/dist/cjs/react-icons/dist/es/icons/close.js.map +1 -0
  328. package/dist/cjs/react-icons/dist/es/icons/code-block.js +78 -0
  329. package/dist/cjs/react-icons/dist/es/icons/code-block.js.map +1 -0
  330. package/dist/cjs/react-icons/dist/es/icons/code.js +96 -0
  331. package/dist/cjs/react-icons/dist/es/icons/code.js.map +1 -0
  332. package/dist/cjs/react-icons/dist/es/icons/delete.js +116 -0
  333. package/dist/cjs/react-icons/dist/es/icons/delete.js.map +1 -0
  334. package/dist/cjs/react-icons/dist/es/icons/italics.js +96 -0
  335. package/dist/cjs/react-icons/dist/es/icons/italics.js.map +1 -0
  336. package/dist/cjs/react-icons/dist/es/icons/link.js +86 -0
  337. package/dist/cjs/react-icons/dist/es/icons/link.js.map +1 -0
  338. package/dist/cjs/react-icons/dist/es/icons/ordered-list.js +86 -0
  339. package/dist/cjs/react-icons/dist/es/icons/ordered-list.js.map +1 -0
  340. package/dist/cjs/react-icons/dist/es/icons/pencil.js +86 -0
  341. package/dist/cjs/react-icons/dist/es/icons/pencil.js.map +1 -0
  342. package/dist/cjs/react-icons/dist/es/icons/text-align-center.js +74 -0
  343. package/dist/cjs/react-icons/dist/es/icons/text-align-center.js.map +1 -0
  344. package/dist/cjs/react-icons/dist/es/icons/text-align-justify.js +74 -0
  345. package/dist/cjs/react-icons/dist/es/icons/text-align-justify.js.map +1 -0
  346. package/dist/cjs/react-icons/dist/es/icons/text-align-left.js +74 -0
  347. package/dist/cjs/react-icons/dist/es/icons/text-align-left.js.map +1 -0
  348. package/dist/cjs/react-icons/dist/es/icons/text-align-right.js +74 -0
  349. package/dist/cjs/react-icons/dist/es/icons/text-align-right.js.map +1 -0
  350. package/dist/cjs/react-icons/dist/es/icons/text-format.js +78 -0
  351. package/dist/cjs/react-icons/dist/es/icons/text-format.js.map +1 -0
  352. package/dist/cjs/react-icons/dist/es/icons/underline.js +77 -0
  353. package/dist/cjs/react-icons/dist/es/icons/underline.js.map +1 -0
  354. package/dist/cjs/react-icons/dist/es/icons/unordered-list.js +126 -0
  355. package/dist/cjs/react-icons/dist/es/icons/unordered-list.js.map +1 -0
  356. package/dist/cjs/utils/commands.js +8 -0
  357. package/dist/cjs/utils/commands.js.map +1 -0
  358. package/dist/cjs/utils/get-dom-range-rect.js +19 -0
  359. package/dist/cjs/utils/get-dom-range-rect.js.map +1 -0
  360. package/dist/cjs/utils/get-selected-node.js +21 -0
  361. package/dist/cjs/utils/get-selected-node.js.map +1 -0
  362. package/dist/cjs/utils/prefix-class-name.js +10 -0
  363. package/dist/cjs/utils/prefix-class-name.js.map +1 -0
  364. package/dist/cjs/utils/set-floating-elem-position-for-link-editor.js +30 -0
  365. package/dist/cjs/utils/set-floating-elem-position-for-link-editor.js.map +1 -0
  366. package/dist/cjs/utils/set-floating-elem-position.js +33 -0
  367. package/dist/cjs/utils/set-floating-elem-position.js.map +1 -0
  368. package/dist/cjs/utils/use-node-focus.js +35 -0
  369. package/dist/cjs/utils/use-node-focus.js.map +1 -0
  370. package/dist/es/_virtual/_commonjsHelpers.js +6 -0
  371. package/dist/es/_virtual/_commonjsHelpers.js.map +1 -0
  372. package/dist/es/_virtual/assertString.js +4 -0
  373. package/dist/es/_virtual/assertString.js.map +1 -0
  374. package/dist/es/_virtual/isFQDN.js +4 -0
  375. package/dist/es/_virtual/isFQDN.js.map +1 -0
  376. package/dist/es/_virtual/isIP.js +4 -0
  377. package/dist/es/_virtual/isIP.js.map +1 -0
  378. package/dist/es/_virtual/isURL.js +8 -0
  379. package/dist/es/_virtual/isURL.js.map +1 -0
  380. package/dist/es/_virtual/isURL2.js +4 -0
  381. package/dist/es/_virtual/isURL2.js.map +1 -0
  382. package/dist/es/_virtual/merge.js +4 -0
  383. package/dist/es/_virtual/merge.js.map +1 -0
  384. package/dist/es/components/base-dropdown/index.js +173 -0
  385. package/dist/es/components/base-dropdown/index.js.map +1 -0
  386. package/dist/es/components/dialog-link-editor/index.js +289 -0
  387. package/dist/es/components/dialog-link-editor/index.js.map +1 -0
  388. package/dist/es/components/dialog-link-editor/link-editor-dialog.js +197 -0
  389. package/dist/es/components/dialog-link-editor/link-editor-dialog.js.map +1 -0
  390. package/dist/es/components/dialog-link-editor/link-tooltip.js +120 -0
  391. package/dist/es/components/dialog-link-editor/link-tooltip.js.map +1 -0
  392. package/dist/es/components/floating-toolbar/floating-toolbar.js +300 -0
  393. package/dist/es/components/floating-toolbar/floating-toolbar.js.map +1 -0
  394. package/dist/es/components/rich-editor/index.js +140 -0
  395. package/dist/es/components/rich-editor/index.js.map +1 -0
  396. package/dist/es/components/toolbar/toolbar.js +74 -0
  397. package/dist/es/components/toolbar/toolbar.js.map +1 -0
  398. package/dist/es/components/toolbar/tools/bold.js +50 -0
  399. package/dist/es/components/toolbar/tools/bold.js.map +1 -0
  400. package/dist/es/components/toolbar/tools/code-block.js +77 -0
  401. package/dist/es/components/toolbar/tools/code-block.js.map +1 -0
  402. package/dist/es/components/toolbar/tools/code.js +52 -0
  403. package/dist/es/components/toolbar/tools/code.js.map +1 -0
  404. package/dist/es/components/toolbar/tools/commons.js +14 -0
  405. package/dist/es/components/toolbar/tools/commons.js.map +1 -0
  406. package/dist/es/components/toolbar/tools/format.js +134 -0
  407. package/dist/es/components/toolbar/tools/format.js.map +1 -0
  408. package/dist/es/components/toolbar/tools/italic.js +55 -0
  409. package/dist/es/components/toolbar/tools/italic.js.map +1 -0
  410. package/dist/es/components/toolbar/tools/link.js +69 -0
  411. package/dist/es/components/toolbar/tools/link.js.map +1 -0
  412. package/dist/es/components/toolbar/tools/ordered-list.js +60 -0
  413. package/dist/es/components/toolbar/tools/ordered-list.js.map +1 -0
  414. package/dist/es/components/toolbar/tools/text-align.js +80 -0
  415. package/dist/es/components/toolbar/tools/text-align.js.map +1 -0
  416. package/dist/es/components/toolbar/tools/underline.js +55 -0
  417. package/dist/es/components/toolbar/tools/underline.js.map +1 -0
  418. package/dist/es/components/toolbar/tools/unordered-list.js +60 -0
  419. package/dist/es/components/toolbar/tools/unordered-list.js.map +1 -0
  420. package/dist/es/components/toolbar-context/context.js +145 -0
  421. package/dist/es/components/toolbar-context/context.js.map +1 -0
  422. package/dist/es/components/toolbar-context/store.js +72 -0
  423. package/dist/es/components/toolbar-context/store.js.map +1 -0
  424. package/dist/es/components/toolbar-context/utils.js +4 -0
  425. package/dist/es/components/toolbar-context/utils.js.map +1 -0
  426. package/dist/es/editor.js +152 -0
  427. package/dist/es/editor.js.map +1 -0
  428. package/dist/es/index.js +34 -0
  429. package/dist/es/index.js.map +1 -0
  430. package/dist/es/nodes/emoji.js +82 -0
  431. package/dist/es/nodes/emoji.js.map +1 -0
  432. package/dist/es/nodes/hashtag.js +105 -0
  433. package/dist/es/nodes/hashtag.js.map +1 -0
  434. package/dist/es/nodes/image.js +211 -0
  435. package/dist/es/nodes/image.js.map +1 -0
  436. package/dist/es/nodes/kudos.js +106 -0
  437. package/dist/es/nodes/kudos.js.map +1 -0
  438. package/dist/es/nodes/mention.js +105 -0
  439. package/dist/es/nodes/mention.js.map +1 -0
  440. package/dist/es/nodes/variables.js +105 -0
  441. package/dist/es/nodes/variables.js.map +1 -0
  442. package/dist/es/plugins/data-management-plugin/index.js +38 -0
  443. package/dist/es/plugins/data-management-plugin/index.js.map +1 -0
  444. package/dist/es/plugins/emoji/emoji-list.js +16605 -0
  445. package/dist/es/plugins/emoji/emoji-list.js.map +1 -0
  446. package/dist/es/plugins/emoji/index.js +124 -0
  447. package/dist/es/plugins/emoji/index.js.map +1 -0
  448. package/dist/es/plugins/hashtag/index.js +98 -0
  449. package/dist/es/plugins/hashtag/index.js.map +1 -0
  450. package/dist/es/plugins/images/index.js +162 -0
  451. package/dist/es/plugins/images/index.js.map +1 -0
  452. package/dist/es/plugins/images/utils.js +7 -0
  453. package/dist/es/plugins/images/utils.js.map +1 -0
  454. package/dist/es/plugins/link/auto-link.js +19 -0
  455. package/dist/es/plugins/link/auto-link.js.map +1 -0
  456. package/dist/es/plugins/link/convert-selection-on-paste.js +32 -0
  457. package/dist/es/plugins/link/convert-selection-on-paste.js.map +1 -0
  458. package/dist/es/plugins/link/link.js +66 -0
  459. package/dist/es/plugins/link/link.js.map +1 -0
  460. package/dist/es/plugins/mentions/index.js +106 -0
  461. package/dist/es/plugins/mentions/index.js.map +1 -0
  462. package/dist/es/plugins/tab-focus/index.js +52 -0
  463. package/dist/es/plugins/tab-focus/index.js.map +1 -0
  464. package/dist/es/react-components/dist/es/_virtual/_commonjsHelpers.js +6 -0
  465. package/dist/es/react-components/dist/es/_virtual/_commonjsHelpers.js.map +1 -0
  466. package/dist/es/react-components/dist/es/_virtual/index.js +4 -0
  467. package/dist/es/react-components/dist/es/_virtual/index.js.map +1 -0
  468. package/dist/es/react-components/dist/es/_virtual/index2.js +4 -0
  469. package/dist/es/react-components/dist/es/_virtual/index2.js.map +1 -0
  470. package/dist/es/react-components/dist/es/_virtual/react-is.development.js +4 -0
  471. package/dist/es/react-components/dist/es/_virtual/react-is.development.js.map +1 -0
  472. package/dist/es/react-components/dist/es/_virtual/react-is.production.min.js +4 -0
  473. package/dist/es/react-components/dist/es/_virtual/react-is.production.min.js.map +1 -0
  474. package/dist/es/react-components/dist/es/box/box.js +45 -0
  475. package/dist/es/react-components/dist/es/box/box.js.map +1 -0
  476. package/dist/es/react-components/dist/es/button/button.js +772 -0
  477. package/dist/es/react-components/dist/es/button/button.js.map +1 -0
  478. package/dist/es/react-components/dist/es/button/icon-button.js +75 -0
  479. package/dist/es/react-components/dist/es/button/icon-button.js.map +1 -0
  480. package/dist/es/react-components/dist/es/button/side-element.js +197 -0
  481. package/dist/es/react-components/dist/es/button/side-element.js.map +1 -0
  482. package/dist/es/react-components/dist/es/button/utils.js +100 -0
  483. package/dist/es/react-components/dist/es/button/utils.js.map +1 -0
  484. package/dist/es/react-components/dist/es/dialog/dialog.js +193 -0
  485. package/dist/es/react-components/dist/es/dialog/dialog.js.map +1 -0
  486. package/dist/es/react-components/dist/es/dropdown/dropdown.js +190 -0
  487. package/dist/es/react-components/dist/es/dropdown/dropdown.js.map +1 -0
  488. package/dist/es/react-components/dist/es/flex/flex.js +96 -0
  489. package/dist/es/react-components/dist/es/flex/flex.js.map +1 -0
  490. package/dist/es/react-components/dist/es/form-helper-text/form-helper-text.js +74 -0
  491. package/dist/es/react-components/dist/es/form-helper-text/form-helper-text.js.map +1 -0
  492. package/dist/es/react-components/dist/es/form-label/form-label.js +174 -0
  493. package/dist/es/react-components/dist/es/form-label/form-label.js.map +1 -0
  494. package/dist/es/react-components/dist/es/input/form-input.js +157 -0
  495. package/dist/es/react-components/dist/es/input/form-input.js.map +1 -0
  496. package/dist/es/react-components/dist/es/input/input.js +374 -0
  497. package/dist/es/react-components/dist/es/input/input.js.map +1 -0
  498. package/dist/es/react-components/dist/es/link/link.js +56 -0
  499. package/dist/es/react-components/dist/es/link/link.js.map +1 -0
  500. package/dist/es/react-components/dist/es/loader/circle.js +202 -0
  501. package/dist/es/react-components/dist/es/loader/circle.js.map +1 -0
  502. package/dist/es/react-components/dist/es/loader/line.js +128 -0
  503. package/dist/es/react-components/dist/es/loader/line.js.map +1 -0
  504. package/dist/es/react-components/dist/es/node_modules/@babel/runtime/helpers/esm/extends.js +17 -0
  505. package/dist/es/react-components/dist/es/node_modules/@babel/runtime/helpers/esm/extends.js.map +1 -0
  506. package/dist/es/react-components/dist/es/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js +10 -0
  507. package/dist/es/react-components/dist/es/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js.map +1 -0
  508. package/dist/es/react-components/dist/es/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +15 -0
  509. package/dist/es/react-components/dist/es/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js.map +1 -0
  510. package/dist/es/react-components/dist/es/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js +10 -0
  511. package/dist/es/react-components/dist/es/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js.map +1 -0
  512. package/dist/es/react-components/dist/es/node_modules/@floating-ui/core/dist/floating-ui.core.js +777 -0
  513. package/dist/es/react-components/dist/es/node_modules/@floating-ui/core/dist/floating-ui.core.js.map +1 -0
  514. package/dist/es/react-components/dist/es/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +600 -0
  515. package/dist/es/react-components/dist/es/node_modules/@floating-ui/dom/dist/floating-ui.dom.js.map +1 -0
  516. package/dist/es/react-components/dist/es/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js +269 -0
  517. package/dist/es/react-components/dist/es/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js.map +1 -0
  518. package/dist/es/react-components/dist/es/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +123 -0
  519. package/dist/es/react-components/dist/es/node_modules/@floating-ui/utils/dist/floating-ui.utils.js.map +1 -0
  520. package/dist/es/react-components/dist/es/node_modules/@floating-ui/utils/dom/dist/floating-ui.utils.dom.js +129 -0
  521. package/dist/es/react-components/dist/es/node_modules/@floating-ui/utils/dom/dist/floating-ui.utils.dom.js.map +1 -0
  522. package/dist/es/react-components/dist/es/node_modules/@radix-ui/primitive/dist/index.js +12 -0
  523. package/dist/es/react-components/dist/es/node_modules/@radix-ui/primitive/dist/index.js.map +1 -0
  524. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-arrow/dist/index.js +26 -0
  525. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-arrow/dist/index.js.map +1 -0
  526. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-collection/dist/index.js +69 -0
  527. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-collection/dist/index.js.map +1 -0
  528. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-compose-refs/dist/index.js +19 -0
  529. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-compose-refs/dist/index.js.map +1 -0
  530. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-context/dist/index.js +80 -0
  531. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-context/dist/index.js.map +1 -0
  532. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-dialog/dist/index.js +318 -0
  533. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-dialog/dist/index.js.map +1 -0
  534. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-direction/dist/index.js +12 -0
  535. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-direction/dist/index.js.map +1 -0
  536. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-dismissable-layer/dist/index.js +212 -0
  537. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-dismissable-layer/dist/index.js.map +1 -0
  538. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-dropdown-menu/dist/index.js +254 -0
  539. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-dropdown-menu/dist/index.js.map +1 -0
  540. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-focus-guards/dist/index.js +27 -0
  541. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-focus-guards/dist/index.js.map +1 -0
  542. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-focus-scope/dist/index.js +208 -0
  543. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-focus-scope/dist/index.js.map +1 -0
  544. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-id/dist/index.js +16 -0
  545. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-id/dist/index.js.map +1 -0
  546. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-label/dist/index.js +25 -0
  547. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-label/dist/index.js.map +1 -0
  548. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-menu/dist/index.js +796 -0
  549. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-menu/dist/index.js.map +1 -0
  550. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-popper/dist/index.js +280 -0
  551. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-popper/dist/index.js.map +1 -0
  552. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-portal/dist/index.js +18 -0
  553. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-portal/dist/index.js.map +1 -0
  554. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-presence/dist/index.js +120 -0
  555. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-presence/dist/index.js.map +1 -0
  556. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-primitive/dist/index.js +42 -0
  557. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-primitive/dist/index.js.map +1 -0
  558. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-roving-focus/dist/index.js +221 -0
  559. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-roving-focus/dist/index.js.map +1 -0
  560. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-slot/dist/index.js +82 -0
  561. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-slot/dist/index.js.map +1 -0
  562. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-tooltip/dist/index.js +476 -0
  563. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-tooltip/dist/index.js.map +1 -0
  564. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-use-callback-ref/dist/index.js +13 -0
  565. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-use-callback-ref/dist/index.js.map +1 -0
  566. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-use-controllable-state/dist/index.js +47 -0
  567. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-use-controllable-state/dist/index.js.map +1 -0
  568. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-use-escape-keydown/dist/index.js +19 -0
  569. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-use-escape-keydown/dist/index.js.map +1 -0
  570. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-use-layout-effect/dist/index.js +8 -0
  571. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-use-layout-effect/dist/index.js.map +1 -0
  572. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-use-size/dist/index.js +41 -0
  573. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-use-size/dist/index.js.map +1 -0
  574. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-visually-hidden/dist/index.js +36 -0
  575. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-visually-hidden/dist/index.js.map +1 -0
  576. package/dist/es/react-components/dist/es/node_modules/@stitches/react/dist/index.js +6 -0
  577. package/dist/es/react-components/dist/es/node_modules/@stitches/react/dist/index.js.map +1 -0
  578. package/dist/es/react-components/dist/es/node_modules/aria-hidden/dist/es2015/index.js +132 -0
  579. package/dist/es/react-components/dist/es/node_modules/aria-hidden/dist/es2015/index.js.map +1 -0
  580. package/dist/es/react-components/dist/es/node_modules/dom-helpers/esm/addClass.js +15 -0
  581. package/dist/es/react-components/dist/es/node_modules/dom-helpers/esm/addClass.js.map +1 -0
  582. package/dist/es/react-components/dist/es/node_modules/dom-helpers/esm/hasClass.js +13 -0
  583. package/dist/es/react-components/dist/es/node_modules/dom-helpers/esm/hasClass.js.map +1 -0
  584. package/dist/es/react-components/dist/es/node_modules/dom-helpers/esm/removeClass.js +23 -0
  585. package/dist/es/react-components/dist/es/node_modules/dom-helpers/esm/removeClass.js.map +1 -0
  586. package/dist/es/react-components/dist/es/node_modules/get-nonce/dist/es2015/index.js +9 -0
  587. package/dist/es/react-components/dist/es/node_modules/get-nonce/dist/es2015/index.js.map +1 -0
  588. package/dist/es/react-components/dist/es/node_modules/object-assign/index.js +100 -0
  589. package/dist/es/react-components/dist/es/node_modules/object-assign/index.js.map +1 -0
  590. package/dist/es/react-components/dist/es/node_modules/prop-types/checkPropTypes.js +116 -0
  591. package/dist/es/react-components/dist/es/node_modules/prop-types/checkPropTypes.js.map +1 -0
  592. package/dist/es/react-components/dist/es/node_modules/prop-types/factoryWithThrowingShims.js +75 -0
  593. package/dist/es/react-components/dist/es/node_modules/prop-types/factoryWithThrowingShims.js.map +1 -0
  594. package/dist/es/react-components/dist/es/node_modules/prop-types/factoryWithTypeCheckers.js +626 -0
  595. package/dist/es/react-components/dist/es/node_modules/prop-types/factoryWithTypeCheckers.js.map +1 -0
  596. package/dist/es/react-components/dist/es/node_modules/prop-types/index.js +31 -0
  597. package/dist/es/react-components/dist/es/node_modules/prop-types/index.js.map +1 -0
  598. package/dist/es/react-components/dist/es/node_modules/prop-types/lib/ReactPropTypesSecret.js +22 -0
  599. package/dist/es/react-components/dist/es/node_modules/prop-types/lib/ReactPropTypesSecret.js.map +1 -0
  600. package/dist/es/react-components/dist/es/node_modules/prop-types/lib/has.js +12 -0
  601. package/dist/es/react-components/dist/es/node_modules/prop-types/lib/has.js.map +1 -0
  602. package/dist/es/react-components/dist/es/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js +191 -0
  603. package/dist/es/react-components/dist/es/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js.map +1 -0
  604. package/dist/es/react-components/dist/es/node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js +27 -0
  605. package/dist/es/react-components/dist/es/node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js.map +1 -0
  606. package/dist/es/react-components/dist/es/node_modules/prop-types/node_modules/react-is/index.js +20 -0
  607. package/dist/es/react-components/dist/es/node_modules/prop-types/node_modules/react-is/index.js.map +1 -0
  608. package/dist/es/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/Combination.js +11 -0
  609. package/dist/es/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/Combination.js.map +1 -0
  610. package/dist/es/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/SideEffect.js +161 -0
  611. package/dist/es/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/SideEffect.js.map +1 -0
  612. package/dist/es/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/UI.js +39 -0
  613. package/dist/es/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/UI.js.map +1 -0
  614. package/dist/es/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js +22 -0
  615. package/dist/es/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js.map +1 -0
  616. package/dist/es/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/handleScroll.js +107 -0
  617. package/dist/es/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/handleScroll.js.map +1 -0
  618. package/dist/es/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/medium.js +6 -0
  619. package/dist/es/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/medium.js.map +1 -0
  620. package/dist/es/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/sidecar.js +8 -0
  621. package/dist/es/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/sidecar.js.map +1 -0
  622. package/dist/es/react-components/dist/es/node_modules/react-remove-scroll-bar/dist/es2015/component.js +57 -0
  623. package/dist/es/react-components/dist/es/node_modules/react-remove-scroll-bar/dist/es2015/component.js.map +1 -0
  624. package/dist/es/react-components/dist/es/node_modules/react-remove-scroll-bar/dist/es2015/constants.js +11 -0
  625. package/dist/es/react-components/dist/es/node_modules/react-remove-scroll-bar/dist/es2015/constants.js.map +1 -0
  626. package/dist/es/react-components/dist/es/node_modules/react-remove-scroll-bar/dist/es2015/utils.js +32 -0
  627. package/dist/es/react-components/dist/es/node_modules/react-remove-scroll-bar/dist/es2015/utils.js.map +1 -0
  628. package/dist/es/react-components/dist/es/node_modules/react-style-singleton/dist/es2015/component.js +20 -0
  629. package/dist/es/react-components/dist/es/node_modules/react-style-singleton/dist/es2015/component.js.map +1 -0
  630. package/dist/es/react-components/dist/es/node_modules/react-style-singleton/dist/es2015/hook.js +26 -0
  631. package/dist/es/react-components/dist/es/node_modules/react-style-singleton/dist/es2015/hook.js.map +1 -0
  632. package/dist/es/react-components/dist/es/node_modules/react-style-singleton/dist/es2015/singleton.js +52 -0
  633. package/dist/es/react-components/dist/es/node_modules/react-style-singleton/dist/es2015/singleton.js.map +1 -0
  634. package/dist/es/react-components/dist/es/node_modules/react-transition-group/esm/CSSTransition.js +415 -0
  635. package/dist/es/react-components/dist/es/node_modules/react-transition-group/esm/CSSTransition.js.map +1 -0
  636. package/dist/es/react-components/dist/es/node_modules/react-transition-group/esm/Transition.js +628 -0
  637. package/dist/es/react-components/dist/es/node_modules/react-transition-group/esm/Transition.js.map +1 -0
  638. package/dist/es/react-components/dist/es/node_modules/react-transition-group/esm/TransitionGroupContext.js +6 -0
  639. package/dist/es/react-components/dist/es/node_modules/react-transition-group/esm/TransitionGroupContext.js.map +1 -0
  640. package/dist/es/react-components/dist/es/node_modules/react-transition-group/esm/config.js +6 -0
  641. package/dist/es/react-components/dist/es/node_modules/react-transition-group/esm/config.js.map +1 -0
  642. package/dist/es/react-components/dist/es/node_modules/react-transition-group/esm/utils/PropTypes.js +22 -0
  643. package/dist/es/react-components/dist/es/node_modules/react-transition-group/esm/utils/PropTypes.js.map +1 -0
  644. package/dist/es/react-components/dist/es/node_modules/react-transition-group/esm/utils/reflow.js +6 -0
  645. package/dist/es/react-components/dist/es/node_modules/react-transition-group/esm/utils/reflow.js.map +1 -0
  646. package/dist/es/react-components/dist/es/node_modules/tslib/tslib.es6.js +52 -0
  647. package/dist/es/react-components/dist/es/node_modules/tslib/tslib.es6.js.map +1 -0
  648. package/dist/es/react-components/dist/es/node_modules/use-callback-ref/dist/es2015/assignRef.js +25 -0
  649. package/dist/es/react-components/dist/es/node_modules/use-callback-ref/dist/es2015/assignRef.js.map +1 -0
  650. package/dist/es/react-components/dist/es/node_modules/use-callback-ref/dist/es2015/useMergeRef.js +23 -0
  651. package/dist/es/react-components/dist/es/node_modules/use-callback-ref/dist/es2015/useMergeRef.js.map +1 -0
  652. package/dist/es/react-components/dist/es/node_modules/use-callback-ref/dist/es2015/useRef.js +43 -0
  653. package/dist/es/react-components/dist/es/node_modules/use-callback-ref/dist/es2015/useRef.js.map +1 -0
  654. package/dist/es/react-components/dist/es/node_modules/use-sidecar/dist/es2015/exports.js +22 -0
  655. package/dist/es/react-components/dist/es/node_modules/use-sidecar/dist/es2015/exports.js.map +1 -0
  656. package/dist/es/react-components/dist/es/node_modules/use-sidecar/dist/es2015/medium.js +78 -0
  657. package/dist/es/react-components/dist/es/node_modules/use-sidecar/dist/es2015/medium.js.map +1 -0
  658. package/dist/es/react-components/dist/es/packages/react-components/node_modules/clsx/dist/clsx.js +4 -0
  659. package/dist/es/react-components/dist/es/packages/react-components/node_modules/clsx/dist/clsx.js.map +1 -0
  660. package/dist/es/react-components/dist/es/packages/react-icons/dist/es/icons/info.js +95 -0
  661. package/dist/es/react-components/dist/es/packages/react-icons/dist/es/icons/info.js.map +1 -0
  662. package/dist/es/react-components/dist/es/stitches.config.js +379 -0
  663. package/dist/es/react-components/dist/es/stitches.config.js.map +1 -0
  664. package/dist/es/react-components/dist/es/text/text.js +115 -0
  665. package/dist/es/react-components/dist/es/text/text.js.map +1 -0
  666. package/dist/es/react-components/dist/es/tooltip/tooltip.js +153 -0
  667. package/dist/es/react-components/dist/es/tooltip/tooltip.js.map +1 -0
  668. package/dist/es/react-components/dist/es/utils/prefix-class-name.js +8 -0
  669. package/dist/es/react-components/dist/es/utils/prefix-class-name.js.map +1 -0
  670. package/dist/es/react-editor/node_modules/clsx/dist/clsx.js +4 -0
  671. package/dist/es/react-editor/node_modules/clsx/dist/clsx.js.map +1 -0
  672. package/dist/es/react-editor/node_modules/validator/es/lib/isFQDN.js +71 -0
  673. package/dist/es/react-editor/node_modules/validator/es/lib/isFQDN.js.map +1 -0
  674. package/dist/es/react-editor/node_modules/validator/es/lib/isIP.js +54 -0
  675. package/dist/es/react-editor/node_modules/validator/es/lib/isIP.js.map +1 -0
  676. package/dist/es/react-editor/node_modules/validator/es/lib/isURL.js +159 -0
  677. package/dist/es/react-editor/node_modules/validator/es/lib/isURL.js.map +1 -0
  678. package/dist/es/react-editor/node_modules/validator/es/lib/util/assertString.js +12 -0
  679. package/dist/es/react-editor/node_modules/validator/es/lib/util/assertString.js.map +1 -0
  680. package/dist/es/react-editor/node_modules/validator/es/lib/util/merge.js +13 -0
  681. package/dist/es/react-editor/node_modules/validator/es/lib/util/merge.js.map +1 -0
  682. package/dist/es/react-editor/node_modules/validator/lib/isFQDN.js +91 -0
  683. package/dist/es/react-editor/node_modules/validator/lib/isFQDN.js.map +1 -0
  684. package/dist/es/react-editor/node_modules/validator/lib/isIP.js +73 -0
  685. package/dist/es/react-editor/node_modules/validator/lib/isIP.js.map +1 -0
  686. package/dist/es/react-editor/node_modules/validator/lib/isURL.js +180 -0
  687. package/dist/es/react-editor/node_modules/validator/lib/isURL.js.map +1 -0
  688. package/dist/es/react-editor/node_modules/validator/lib/util/assertString.js +30 -0
  689. package/dist/es/react-editor/node_modules/validator/lib/util/assertString.js.map +1 -0
  690. package/dist/es/react-editor/node_modules/validator/lib/util/merge.js +31 -0
  691. package/dist/es/react-editor/node_modules/validator/lib/util/merge.js.map +1 -0
  692. package/dist/es/react-icons/dist/es/icons/bold.js +84 -0
  693. package/dist/es/react-icons/dist/es/icons/bold.js.map +1 -0
  694. package/dist/es/react-icons/dist/es/icons/close.js +84 -0
  695. package/dist/es/react-icons/dist/es/icons/close.js.map +1 -0
  696. package/dist/es/react-icons/dist/es/icons/code-block.js +76 -0
  697. package/dist/es/react-icons/dist/es/icons/code-block.js.map +1 -0
  698. package/dist/es/react-icons/dist/es/icons/code.js +94 -0
  699. package/dist/es/react-icons/dist/es/icons/code.js.map +1 -0
  700. package/dist/es/react-icons/dist/es/icons/delete.js +114 -0
  701. package/dist/es/react-icons/dist/es/icons/delete.js.map +1 -0
  702. package/dist/es/react-icons/dist/es/icons/italics.js +94 -0
  703. package/dist/es/react-icons/dist/es/icons/italics.js.map +1 -0
  704. package/dist/es/react-icons/dist/es/icons/link.js +84 -0
  705. package/dist/es/react-icons/dist/es/icons/link.js.map +1 -0
  706. package/dist/es/react-icons/dist/es/icons/ordered-list.js +84 -0
  707. package/dist/es/react-icons/dist/es/icons/ordered-list.js.map +1 -0
  708. package/dist/es/react-icons/dist/es/icons/pencil.js +84 -0
  709. package/dist/es/react-icons/dist/es/icons/pencil.js.map +1 -0
  710. package/dist/es/react-icons/dist/es/icons/text-align-center.js +72 -0
  711. package/dist/es/react-icons/dist/es/icons/text-align-center.js.map +1 -0
  712. package/dist/es/react-icons/dist/es/icons/text-align-justify.js +72 -0
  713. package/dist/es/react-icons/dist/es/icons/text-align-justify.js.map +1 -0
  714. package/dist/es/react-icons/dist/es/icons/text-align-left.js +72 -0
  715. package/dist/es/react-icons/dist/es/icons/text-align-left.js.map +1 -0
  716. package/dist/es/react-icons/dist/es/icons/text-align-right.js +72 -0
  717. package/dist/es/react-icons/dist/es/icons/text-align-right.js.map +1 -0
  718. package/dist/es/react-icons/dist/es/icons/text-format.js +76 -0
  719. package/dist/es/react-icons/dist/es/icons/text-format.js.map +1 -0
  720. package/dist/es/react-icons/dist/es/icons/underline.js +75 -0
  721. package/dist/es/react-icons/dist/es/icons/underline.js.map +1 -0
  722. package/dist/es/react-icons/dist/es/icons/unordered-list.js +124 -0
  723. package/dist/es/react-icons/dist/es/icons/unordered-list.js.map +1 -0
  724. package/dist/es/utils/commands.js +6 -0
  725. package/dist/es/utils/commands.js.map +1 -0
  726. package/dist/es/utils/get-dom-range-rect.js +17 -0
  727. package/dist/es/utils/get-dom-range-rect.js.map +1 -0
  728. package/dist/es/utils/get-selected-node.js +19 -0
  729. package/dist/es/utils/get-selected-node.js.map +1 -0
  730. package/dist/es/utils/prefix-class-name.js +8 -0
  731. package/dist/es/utils/prefix-class-name.js.map +1 -0
  732. package/dist/es/utils/set-floating-elem-position-for-link-editor.js +28 -0
  733. package/dist/es/utils/set-floating-elem-position-for-link-editor.js.map +1 -0
  734. package/dist/es/utils/set-floating-elem-position.js +31 -0
  735. package/dist/es/utils/set-floating-elem-position.js.map +1 -0
  736. package/dist/es/utils/use-node-focus.js +33 -0
  737. package/dist/es/utils/use-node-focus.js.map +1 -0
  738. package/dist/index.d.ts +445 -0
  739. package/package.json +151 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../../../../../../../../react-components/dist/es/node_modules/@radix-ui/react-menu/dist/index.js"],"sourcesContent":["import * as React from 'react';\nimport { composeEventHandlers } from '../../primitive/dist/index.js';\nimport { createCollection } from '../../react-collection/dist/index.js';\nimport { useComposedRefs, composeRefs } from '../../react-compose-refs/dist/index.js';\nimport { createContextScope } from '../../react-context/dist/index.js';\nimport { useDirection } from '../../react-direction/dist/index.js';\nimport { DismissableLayer } from '../../react-dismissable-layer/dist/index.js';\nimport { useFocusGuards } from '../../react-focus-guards/dist/index.js';\nimport { FocusScope } from '../../react-focus-scope/dist/index.js';\nimport { useId } from '../../react-id/dist/index.js';\nimport { createPopperScope, Anchor, Content, Arrow, Root as Root2 } from '../../react-popper/dist/index.js';\nimport { Portal as Portal$1 } from '../../react-portal/dist/index.js';\nimport { Presence } from '../../react-presence/dist/index.js';\nimport { Primitive, dispatchDiscreteCustomEvent } from '../../react-primitive/dist/index.js';\nimport { createRovingFocusGroupScope, Root, Item } from '../../react-roving-focus/dist/index.js';\nimport { Slot } from '../../react-slot/dist/index.js';\nimport { useCallbackRef } from '../../react-use-callback-ref/dist/index.js';\nimport { hideOthers } from '../../../aria-hidden/dist/es2015/index.js';\nimport RemoveScroll from '../../../react-remove-scroll/dist/es2015/Combination.js';\nimport { jsx } from 'react/jsx-runtime';\n\nvar SELECTION_KEYS = [\"Enter\", \" \"];\nvar FIRST_KEYS = [\"ArrowDown\", \"PageUp\", \"Home\"];\nvar LAST_KEYS = [\"ArrowUp\", \"PageDown\", \"End\"];\nvar FIRST_LAST_KEYS = [...FIRST_KEYS, ...LAST_KEYS];\nvar SUB_OPEN_KEYS = {\n ltr: [...SELECTION_KEYS, \"ArrowRight\"],\n rtl: [...SELECTION_KEYS, \"ArrowLeft\"]\n};\nvar SUB_CLOSE_KEYS = {\n ltr: [\"ArrowLeft\"],\n rtl: [\"ArrowRight\"]\n};\nvar MENU_NAME = \"Menu\";\nvar [Collection, useCollection, createCollectionScope] = createCollection(MENU_NAME);\nvar [createMenuContext, createMenuScope] = createContextScope(MENU_NAME, [\n createCollectionScope,\n createPopperScope,\n createRovingFocusGroupScope\n]);\nvar usePopperScope = createPopperScope();\nvar useRovingFocusGroupScope = createRovingFocusGroupScope();\nvar [MenuProvider, useMenuContext] = createMenuContext(MENU_NAME);\nvar [MenuRootProvider, useMenuRootContext] = createMenuContext(MENU_NAME);\nvar Menu = (props) => {\n const { __scopeMenu, open = false, children, dir, onOpenChange, modal = true } = props;\n const popperScope = usePopperScope(__scopeMenu);\n const [content, setContent] = React.useState(null);\n const isUsingKeyboardRef = React.useRef(false);\n const handleOpenChange = useCallbackRef(onOpenChange);\n const direction = useDirection(dir);\n React.useEffect(() => {\n const handleKeyDown = () => {\n isUsingKeyboardRef.current = true;\n document.addEventListener(\"pointerdown\", handlePointer, { capture: true, once: true });\n document.addEventListener(\"pointermove\", handlePointer, { capture: true, once: true });\n };\n const handlePointer = () => isUsingKeyboardRef.current = false;\n document.addEventListener(\"keydown\", handleKeyDown, { capture: true });\n return () => {\n document.removeEventListener(\"keydown\", handleKeyDown, { capture: true });\n document.removeEventListener(\"pointerdown\", handlePointer, { capture: true });\n document.removeEventListener(\"pointermove\", handlePointer, { capture: true });\n };\n }, []);\n return /* @__PURE__ */ jsx(Root2, { ...popperScope, children: /* @__PURE__ */ jsx(\n MenuProvider,\n {\n scope: __scopeMenu,\n open,\n onOpenChange: handleOpenChange,\n content,\n onContentChange: setContent,\n children: /* @__PURE__ */ jsx(\n MenuRootProvider,\n {\n scope: __scopeMenu,\n onClose: React.useCallback(() => handleOpenChange(false), [handleOpenChange]),\n isUsingKeyboardRef,\n dir: direction,\n modal,\n children\n }\n )\n }\n ) });\n};\nMenu.displayName = MENU_NAME;\nvar ANCHOR_NAME = \"MenuAnchor\";\nvar MenuAnchor = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeMenu, ...anchorProps } = props;\n const popperScope = usePopperScope(__scopeMenu);\n return /* @__PURE__ */ jsx(Anchor, { ...popperScope, ...anchorProps, ref: forwardedRef });\n }\n);\nMenuAnchor.displayName = ANCHOR_NAME;\nvar PORTAL_NAME = \"MenuPortal\";\nvar [PortalProvider, usePortalContext] = createMenuContext(PORTAL_NAME, {\n forceMount: void 0\n});\nvar MenuPortal = (props) => {\n const { __scopeMenu, forceMount, children, container } = props;\n const context = useMenuContext(PORTAL_NAME, __scopeMenu);\n return /* @__PURE__ */ jsx(PortalProvider, { scope: __scopeMenu, forceMount, children: /* @__PURE__ */ jsx(Presence, { present: forceMount || context.open, children: /* @__PURE__ */ jsx(Portal$1, { asChild: true, container, children }) }) });\n};\nMenuPortal.displayName = PORTAL_NAME;\nvar CONTENT_NAME = \"MenuContent\";\nvar [MenuContentProvider, useMenuContentContext] = createMenuContext(CONTENT_NAME);\nvar MenuContent = React.forwardRef(\n (props, forwardedRef) => {\n const portalContext = usePortalContext(CONTENT_NAME, props.__scopeMenu);\n const { forceMount = portalContext.forceMount, ...contentProps } = props;\n const context = useMenuContext(CONTENT_NAME, props.__scopeMenu);\n const rootContext = useMenuRootContext(CONTENT_NAME, props.__scopeMenu);\n return /* @__PURE__ */ jsx(Collection.Provider, { scope: props.__scopeMenu, children: /* @__PURE__ */ jsx(Presence, { present: forceMount || context.open, children: /* @__PURE__ */ jsx(Collection.Slot, { scope: props.__scopeMenu, children: rootContext.modal ? /* @__PURE__ */ jsx(MenuRootContentModal, { ...contentProps, ref: forwardedRef }) : /* @__PURE__ */ jsx(MenuRootContentNonModal, { ...contentProps, ref: forwardedRef }) }) }) });\n }\n);\nvar MenuRootContentModal = React.forwardRef(\n (props, forwardedRef) => {\n const context = useMenuContext(CONTENT_NAME, props.__scopeMenu);\n const ref = React.useRef(null);\n const composedRefs = useComposedRefs(forwardedRef, ref);\n React.useEffect(() => {\n const content = ref.current;\n if (content) return hideOthers(content);\n }, []);\n return /* @__PURE__ */ jsx(\n MenuContentImpl,\n {\n ...props,\n ref: composedRefs,\n trapFocus: context.open,\n disableOutsidePointerEvents: context.open,\n disableOutsideScroll: true,\n onFocusOutside: composeEventHandlers(\n props.onFocusOutside,\n (event) => event.preventDefault(),\n { checkForDefaultPrevented: false }\n ),\n onDismiss: () => context.onOpenChange(false)\n }\n );\n }\n);\nvar MenuRootContentNonModal = React.forwardRef((props, forwardedRef) => {\n const context = useMenuContext(CONTENT_NAME, props.__scopeMenu);\n return /* @__PURE__ */ jsx(\n MenuContentImpl,\n {\n ...props,\n ref: forwardedRef,\n trapFocus: false,\n disableOutsidePointerEvents: false,\n disableOutsideScroll: false,\n onDismiss: () => context.onOpenChange(false)\n }\n );\n});\nvar MenuContentImpl = React.forwardRef(\n (props, forwardedRef) => {\n const {\n __scopeMenu,\n loop = false,\n trapFocus,\n onOpenAutoFocus,\n onCloseAutoFocus,\n disableOutsidePointerEvents,\n onEntryFocus,\n onEscapeKeyDown,\n onPointerDownOutside,\n onFocusOutside,\n onInteractOutside,\n onDismiss,\n disableOutsideScroll,\n ...contentProps\n } = props;\n const context = useMenuContext(CONTENT_NAME, __scopeMenu);\n const rootContext = useMenuRootContext(CONTENT_NAME, __scopeMenu);\n const popperScope = usePopperScope(__scopeMenu);\n const rovingFocusGroupScope = useRovingFocusGroupScope(__scopeMenu);\n const getItems = useCollection(__scopeMenu);\n const [currentItemId, setCurrentItemId] = React.useState(null);\n const contentRef = React.useRef(null);\n const composedRefs = useComposedRefs(forwardedRef, contentRef, context.onContentChange);\n const timerRef = React.useRef(0);\n const searchRef = React.useRef(\"\");\n const pointerGraceTimerRef = React.useRef(0);\n const pointerGraceIntentRef = React.useRef(null);\n const pointerDirRef = React.useRef(\"right\");\n const lastPointerXRef = React.useRef(0);\n const ScrollLockWrapper = disableOutsideScroll ? RemoveScroll : React.Fragment;\n const scrollLockWrapperProps = disableOutsideScroll ? { as: Slot, allowPinchZoom: true } : void 0;\n const handleTypeaheadSearch = (key) => {\n const search = searchRef.current + key;\n const items = getItems().filter((item) => !item.disabled);\n const currentItem = document.activeElement;\n const currentMatch = items.find((item) => item.ref.current === currentItem)?.textValue;\n const values = items.map((item) => item.textValue);\n const nextMatch = getNextMatch(values, search, currentMatch);\n const newItem = items.find((item) => item.textValue === nextMatch)?.ref.current;\n (function updateSearch(value) {\n searchRef.current = value;\n window.clearTimeout(timerRef.current);\n if (value !== \"\") timerRef.current = window.setTimeout(() => updateSearch(\"\"), 1e3);\n })(search);\n if (newItem) {\n setTimeout(() => newItem.focus());\n }\n };\n React.useEffect(() => {\n return () => window.clearTimeout(timerRef.current);\n }, []);\n useFocusGuards();\n const isPointerMovingToSubmenu = React.useCallback((event) => {\n const isMovingTowards = pointerDirRef.current === pointerGraceIntentRef.current?.side;\n return isMovingTowards && isPointerInGraceArea(event, pointerGraceIntentRef.current?.area);\n }, []);\n return /* @__PURE__ */ jsx(\n MenuContentProvider,\n {\n scope: __scopeMenu,\n searchRef,\n onItemEnter: React.useCallback(\n (event) => {\n if (isPointerMovingToSubmenu(event)) event.preventDefault();\n },\n [isPointerMovingToSubmenu]\n ),\n onItemLeave: React.useCallback(\n (event) => {\n if (isPointerMovingToSubmenu(event)) return;\n contentRef.current?.focus();\n setCurrentItemId(null);\n },\n [isPointerMovingToSubmenu]\n ),\n onTriggerLeave: React.useCallback(\n (event) => {\n if (isPointerMovingToSubmenu(event)) event.preventDefault();\n },\n [isPointerMovingToSubmenu]\n ),\n pointerGraceTimerRef,\n onPointerGraceIntentChange: React.useCallback((intent) => {\n pointerGraceIntentRef.current = intent;\n }, []),\n children: /* @__PURE__ */ jsx(ScrollLockWrapper, { ...scrollLockWrapperProps, children: /* @__PURE__ */ jsx(\n FocusScope,\n {\n asChild: true,\n trapped: trapFocus,\n onMountAutoFocus: composeEventHandlers(onOpenAutoFocus, (event) => {\n event.preventDefault();\n contentRef.current?.focus({ preventScroll: true });\n }),\n onUnmountAutoFocus: onCloseAutoFocus,\n children: /* @__PURE__ */ jsx(\n DismissableLayer,\n {\n asChild: true,\n disableOutsidePointerEvents,\n onEscapeKeyDown,\n onPointerDownOutside,\n onFocusOutside,\n onInteractOutside,\n onDismiss,\n children: /* @__PURE__ */ jsx(\n Root,\n {\n asChild: true,\n ...rovingFocusGroupScope,\n dir: rootContext.dir,\n orientation: \"vertical\",\n loop,\n currentTabStopId: currentItemId,\n onCurrentTabStopIdChange: setCurrentItemId,\n onEntryFocus: composeEventHandlers(onEntryFocus, (event) => {\n if (!rootContext.isUsingKeyboardRef.current) event.preventDefault();\n }),\n preventScrollOnEntryFocus: true,\n children: /* @__PURE__ */ jsx(\n Content,\n {\n role: \"menu\",\n \"aria-orientation\": \"vertical\",\n \"data-state\": getOpenState(context.open),\n \"data-radix-menu-content\": \"\",\n dir: rootContext.dir,\n ...popperScope,\n ...contentProps,\n ref: composedRefs,\n style: { outline: \"none\", ...contentProps.style },\n onKeyDown: composeEventHandlers(contentProps.onKeyDown, (event) => {\n const target = event.target;\n const isKeyDownInside = target.closest(\"[data-radix-menu-content]\") === event.currentTarget;\n const isModifierKey = event.ctrlKey || event.altKey || event.metaKey;\n const isCharacterKey = event.key.length === 1;\n if (isKeyDownInside) {\n if (event.key === \"Tab\") event.preventDefault();\n if (!isModifierKey && isCharacterKey) handleTypeaheadSearch(event.key);\n }\n const content = contentRef.current;\n if (event.target !== content) return;\n if (!FIRST_LAST_KEYS.includes(event.key)) return;\n event.preventDefault();\n const items = getItems().filter((item) => !item.disabled);\n const candidateNodes = items.map((item) => item.ref.current);\n if (LAST_KEYS.includes(event.key)) candidateNodes.reverse();\n focusFirst(candidateNodes);\n }),\n onBlur: composeEventHandlers(props.onBlur, (event) => {\n if (!event.currentTarget.contains(event.target)) {\n window.clearTimeout(timerRef.current);\n searchRef.current = \"\";\n }\n }),\n onPointerMove: composeEventHandlers(\n props.onPointerMove,\n whenMouse((event) => {\n const target = event.target;\n const pointerXHasChanged = lastPointerXRef.current !== event.clientX;\n if (event.currentTarget.contains(target) && pointerXHasChanged) {\n const newDir = event.clientX > lastPointerXRef.current ? \"right\" : \"left\";\n pointerDirRef.current = newDir;\n lastPointerXRef.current = event.clientX;\n }\n })\n )\n }\n )\n }\n )\n }\n )\n }\n ) })\n }\n );\n }\n);\nMenuContent.displayName = CONTENT_NAME;\nvar GROUP_NAME = \"MenuGroup\";\nvar MenuGroup = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeMenu, ...groupProps } = props;\n return /* @__PURE__ */ jsx(Primitive.div, { role: \"group\", ...groupProps, ref: forwardedRef });\n }\n);\nMenuGroup.displayName = GROUP_NAME;\nvar LABEL_NAME = \"MenuLabel\";\nvar MenuLabel = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeMenu, ...labelProps } = props;\n return /* @__PURE__ */ jsx(Primitive.div, { ...labelProps, ref: forwardedRef });\n }\n);\nMenuLabel.displayName = LABEL_NAME;\nvar ITEM_NAME = \"MenuItem\";\nvar ITEM_SELECT = \"menu.itemSelect\";\nvar MenuItem = React.forwardRef(\n (props, forwardedRef) => {\n const { disabled = false, onSelect, ...itemProps } = props;\n const ref = React.useRef(null);\n const rootContext = useMenuRootContext(ITEM_NAME, props.__scopeMenu);\n const contentContext = useMenuContentContext(ITEM_NAME, props.__scopeMenu);\n const composedRefs = useComposedRefs(forwardedRef, ref);\n const isPointerDownRef = React.useRef(false);\n const handleSelect = () => {\n const menuItem = ref.current;\n if (!disabled && menuItem) {\n const itemSelectEvent = new CustomEvent(ITEM_SELECT, { bubbles: true, cancelable: true });\n menuItem.addEventListener(ITEM_SELECT, (event) => onSelect?.(event), { once: true });\n dispatchDiscreteCustomEvent(menuItem, itemSelectEvent);\n if (itemSelectEvent.defaultPrevented) {\n isPointerDownRef.current = false;\n } else {\n rootContext.onClose();\n }\n }\n };\n return /* @__PURE__ */ jsx(\n MenuItemImpl,\n {\n ...itemProps,\n ref: composedRefs,\n disabled,\n onClick: composeEventHandlers(props.onClick, handleSelect),\n onPointerDown: (event) => {\n props.onPointerDown?.(event);\n isPointerDownRef.current = true;\n },\n onPointerUp: composeEventHandlers(props.onPointerUp, (event) => {\n if (!isPointerDownRef.current) event.currentTarget?.click();\n }),\n onKeyDown: composeEventHandlers(props.onKeyDown, (event) => {\n const isTypingAhead = contentContext.searchRef.current !== \"\";\n if (disabled || isTypingAhead && event.key === \" \") return;\n if (SELECTION_KEYS.includes(event.key)) {\n event.currentTarget.click();\n event.preventDefault();\n }\n })\n }\n );\n }\n);\nMenuItem.displayName = ITEM_NAME;\nvar MenuItemImpl = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeMenu, disabled = false, textValue, ...itemProps } = props;\n const contentContext = useMenuContentContext(ITEM_NAME, __scopeMenu);\n const rovingFocusGroupScope = useRovingFocusGroupScope(__scopeMenu);\n const ref = React.useRef(null);\n const composedRefs = useComposedRefs(forwardedRef, ref);\n const [isFocused, setIsFocused] = React.useState(false);\n const [textContent, setTextContent] = React.useState(\"\");\n React.useEffect(() => {\n const menuItem = ref.current;\n if (menuItem) {\n setTextContent((menuItem.textContent ?? \"\").trim());\n }\n }, [itemProps.children]);\n return /* @__PURE__ */ jsx(\n Collection.ItemSlot,\n {\n scope: __scopeMenu,\n disabled,\n textValue: textValue ?? textContent,\n children: /* @__PURE__ */ jsx(Item, { asChild: true, ...rovingFocusGroupScope, focusable: !disabled, children: /* @__PURE__ */ jsx(\n Primitive.div,\n {\n role: \"menuitem\",\n \"data-highlighted\": isFocused ? \"\" : void 0,\n \"aria-disabled\": disabled || void 0,\n \"data-disabled\": disabled ? \"\" : void 0,\n ...itemProps,\n ref: composedRefs,\n onPointerMove: composeEventHandlers(\n props.onPointerMove,\n whenMouse((event) => {\n if (disabled) {\n contentContext.onItemLeave(event);\n } else {\n contentContext.onItemEnter(event);\n if (!event.defaultPrevented) {\n const item = event.currentTarget;\n item.focus({ preventScroll: true });\n }\n }\n })\n ),\n onPointerLeave: composeEventHandlers(\n props.onPointerLeave,\n whenMouse((event) => contentContext.onItemLeave(event))\n ),\n onFocus: composeEventHandlers(props.onFocus, () => setIsFocused(true)),\n onBlur: composeEventHandlers(props.onBlur, () => setIsFocused(false))\n }\n ) })\n }\n );\n }\n);\nvar CHECKBOX_ITEM_NAME = \"MenuCheckboxItem\";\nvar MenuCheckboxItem = React.forwardRef(\n (props, forwardedRef) => {\n const { checked = false, onCheckedChange, ...checkboxItemProps } = props;\n return /* @__PURE__ */ jsx(ItemIndicatorProvider, { scope: props.__scopeMenu, checked, children: /* @__PURE__ */ jsx(\n MenuItem,\n {\n role: \"menuitemcheckbox\",\n \"aria-checked\": isIndeterminate(checked) ? \"mixed\" : checked,\n ...checkboxItemProps,\n ref: forwardedRef,\n \"data-state\": getCheckedState(checked),\n onSelect: composeEventHandlers(\n checkboxItemProps.onSelect,\n () => onCheckedChange?.(isIndeterminate(checked) ? true : !checked),\n { checkForDefaultPrevented: false }\n )\n }\n ) });\n }\n);\nMenuCheckboxItem.displayName = CHECKBOX_ITEM_NAME;\nvar RADIO_GROUP_NAME = \"MenuRadioGroup\";\nvar [RadioGroupProvider, useRadioGroupContext] = createMenuContext(\n RADIO_GROUP_NAME,\n { value: void 0, onValueChange: () => {\n } }\n);\nvar MenuRadioGroup = React.forwardRef(\n (props, forwardedRef) => {\n const { value, onValueChange, ...groupProps } = props;\n const handleValueChange = useCallbackRef(onValueChange);\n return /* @__PURE__ */ jsx(RadioGroupProvider, { scope: props.__scopeMenu, value, onValueChange: handleValueChange, children: /* @__PURE__ */ jsx(MenuGroup, { ...groupProps, ref: forwardedRef }) });\n }\n);\nMenuRadioGroup.displayName = RADIO_GROUP_NAME;\nvar RADIO_ITEM_NAME = \"MenuRadioItem\";\nvar MenuRadioItem = React.forwardRef(\n (props, forwardedRef) => {\n const { value, ...radioItemProps } = props;\n const context = useRadioGroupContext(RADIO_ITEM_NAME, props.__scopeMenu);\n const checked = value === context.value;\n return /* @__PURE__ */ jsx(ItemIndicatorProvider, { scope: props.__scopeMenu, checked, children: /* @__PURE__ */ jsx(\n MenuItem,\n {\n role: \"menuitemradio\",\n \"aria-checked\": checked,\n ...radioItemProps,\n ref: forwardedRef,\n \"data-state\": getCheckedState(checked),\n onSelect: composeEventHandlers(\n radioItemProps.onSelect,\n () => context.onValueChange?.(value),\n { checkForDefaultPrevented: false }\n )\n }\n ) });\n }\n);\nMenuRadioItem.displayName = RADIO_ITEM_NAME;\nvar ITEM_INDICATOR_NAME = \"MenuItemIndicator\";\nvar [ItemIndicatorProvider, useItemIndicatorContext] = createMenuContext(\n ITEM_INDICATOR_NAME,\n { checked: false }\n);\nvar MenuItemIndicator = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeMenu, forceMount, ...itemIndicatorProps } = props;\n const indicatorContext = useItemIndicatorContext(ITEM_INDICATOR_NAME, __scopeMenu);\n return /* @__PURE__ */ jsx(\n Presence,\n {\n present: forceMount || isIndeterminate(indicatorContext.checked) || indicatorContext.checked === true,\n children: /* @__PURE__ */ jsx(\n Primitive.span,\n {\n ...itemIndicatorProps,\n ref: forwardedRef,\n \"data-state\": getCheckedState(indicatorContext.checked)\n }\n )\n }\n );\n }\n);\nMenuItemIndicator.displayName = ITEM_INDICATOR_NAME;\nvar SEPARATOR_NAME = \"MenuSeparator\";\nvar MenuSeparator = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeMenu, ...separatorProps } = props;\n return /* @__PURE__ */ jsx(\n Primitive.div,\n {\n role: \"separator\",\n \"aria-orientation\": \"horizontal\",\n ...separatorProps,\n ref: forwardedRef\n }\n );\n }\n);\nMenuSeparator.displayName = SEPARATOR_NAME;\nvar ARROW_NAME = \"MenuArrow\";\nvar MenuArrow = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeMenu, ...arrowProps } = props;\n const popperScope = usePopperScope(__scopeMenu);\n return /* @__PURE__ */ jsx(Arrow, { ...popperScope, ...arrowProps, ref: forwardedRef });\n }\n);\nMenuArrow.displayName = ARROW_NAME;\nvar SUB_NAME = \"MenuSub\";\nvar [MenuSubProvider, useMenuSubContext] = createMenuContext(SUB_NAME);\nvar MenuSub = (props) => {\n const { __scopeMenu, children, open = false, onOpenChange } = props;\n const parentMenuContext = useMenuContext(SUB_NAME, __scopeMenu);\n const popperScope = usePopperScope(__scopeMenu);\n const [trigger, setTrigger] = React.useState(null);\n const [content, setContent] = React.useState(null);\n const handleOpenChange = useCallbackRef(onOpenChange);\n React.useEffect(() => {\n if (parentMenuContext.open === false) handleOpenChange(false);\n return () => handleOpenChange(false);\n }, [parentMenuContext.open, handleOpenChange]);\n return /* @__PURE__ */ jsx(Root2, { ...popperScope, children: /* @__PURE__ */ jsx(\n MenuProvider,\n {\n scope: __scopeMenu,\n open,\n onOpenChange: handleOpenChange,\n content,\n onContentChange: setContent,\n children: /* @__PURE__ */ jsx(\n MenuSubProvider,\n {\n scope: __scopeMenu,\n contentId: useId(),\n triggerId: useId(),\n trigger,\n onTriggerChange: setTrigger,\n children\n }\n )\n }\n ) });\n};\nMenuSub.displayName = SUB_NAME;\nvar SUB_TRIGGER_NAME = \"MenuSubTrigger\";\nvar MenuSubTrigger = React.forwardRef(\n (props, forwardedRef) => {\n const context = useMenuContext(SUB_TRIGGER_NAME, props.__scopeMenu);\n const rootContext = useMenuRootContext(SUB_TRIGGER_NAME, props.__scopeMenu);\n const subContext = useMenuSubContext(SUB_TRIGGER_NAME, props.__scopeMenu);\n const contentContext = useMenuContentContext(SUB_TRIGGER_NAME, props.__scopeMenu);\n const openTimerRef = React.useRef(null);\n const { pointerGraceTimerRef, onPointerGraceIntentChange } = contentContext;\n const scope = { __scopeMenu: props.__scopeMenu };\n const clearOpenTimer = React.useCallback(() => {\n if (openTimerRef.current) window.clearTimeout(openTimerRef.current);\n openTimerRef.current = null;\n }, []);\n React.useEffect(() => clearOpenTimer, [clearOpenTimer]);\n React.useEffect(() => {\n const pointerGraceTimer = pointerGraceTimerRef.current;\n return () => {\n window.clearTimeout(pointerGraceTimer);\n onPointerGraceIntentChange(null);\n };\n }, [pointerGraceTimerRef, onPointerGraceIntentChange]);\n return /* @__PURE__ */ jsx(MenuAnchor, { asChild: true, ...scope, children: /* @__PURE__ */ jsx(\n MenuItemImpl,\n {\n id: subContext.triggerId,\n \"aria-haspopup\": \"menu\",\n \"aria-expanded\": context.open,\n \"aria-controls\": subContext.contentId,\n \"data-state\": getOpenState(context.open),\n ...props,\n ref: composeRefs(forwardedRef, subContext.onTriggerChange),\n onClick: (event) => {\n props.onClick?.(event);\n if (props.disabled || event.defaultPrevented) return;\n event.currentTarget.focus();\n if (!context.open) context.onOpenChange(true);\n },\n onPointerMove: composeEventHandlers(\n props.onPointerMove,\n whenMouse((event) => {\n contentContext.onItemEnter(event);\n if (event.defaultPrevented) return;\n if (!props.disabled && !context.open && !openTimerRef.current) {\n contentContext.onPointerGraceIntentChange(null);\n openTimerRef.current = window.setTimeout(() => {\n context.onOpenChange(true);\n clearOpenTimer();\n }, 100);\n }\n })\n ),\n onPointerLeave: composeEventHandlers(\n props.onPointerLeave,\n whenMouse((event) => {\n clearOpenTimer();\n const contentRect = context.content?.getBoundingClientRect();\n if (contentRect) {\n const side = context.content?.dataset.side;\n const rightSide = side === \"right\";\n const bleed = rightSide ? -5 : 5;\n const contentNearEdge = contentRect[rightSide ? \"left\" : \"right\"];\n const contentFarEdge = contentRect[rightSide ? \"right\" : \"left\"];\n contentContext.onPointerGraceIntentChange({\n area: [\n // Apply a bleed on clientX to ensure that our exit point is\n // consistently within polygon bounds\n { x: event.clientX + bleed, y: event.clientY },\n { x: contentNearEdge, y: contentRect.top },\n { x: contentFarEdge, y: contentRect.top },\n { x: contentFarEdge, y: contentRect.bottom },\n { x: contentNearEdge, y: contentRect.bottom }\n ],\n side\n });\n window.clearTimeout(pointerGraceTimerRef.current);\n pointerGraceTimerRef.current = window.setTimeout(\n () => contentContext.onPointerGraceIntentChange(null),\n 300\n );\n } else {\n contentContext.onTriggerLeave(event);\n if (event.defaultPrevented) return;\n contentContext.onPointerGraceIntentChange(null);\n }\n })\n ),\n onKeyDown: composeEventHandlers(props.onKeyDown, (event) => {\n const isTypingAhead = contentContext.searchRef.current !== \"\";\n if (props.disabled || isTypingAhead && event.key === \" \") return;\n if (SUB_OPEN_KEYS[rootContext.dir].includes(event.key)) {\n context.onOpenChange(true);\n context.content?.focus();\n event.preventDefault();\n }\n })\n }\n ) });\n }\n);\nMenuSubTrigger.displayName = SUB_TRIGGER_NAME;\nvar SUB_CONTENT_NAME = \"MenuSubContent\";\nvar MenuSubContent = React.forwardRef(\n (props, forwardedRef) => {\n const portalContext = usePortalContext(CONTENT_NAME, props.__scopeMenu);\n const { forceMount = portalContext.forceMount, ...subContentProps } = props;\n const context = useMenuContext(CONTENT_NAME, props.__scopeMenu);\n const rootContext = useMenuRootContext(CONTENT_NAME, props.__scopeMenu);\n const subContext = useMenuSubContext(SUB_CONTENT_NAME, props.__scopeMenu);\n const ref = React.useRef(null);\n const composedRefs = useComposedRefs(forwardedRef, ref);\n return /* @__PURE__ */ jsx(Collection.Provider, { scope: props.__scopeMenu, children: /* @__PURE__ */ jsx(Presence, { present: forceMount || context.open, children: /* @__PURE__ */ jsx(Collection.Slot, { scope: props.__scopeMenu, children: /* @__PURE__ */ jsx(\n MenuContentImpl,\n {\n id: subContext.contentId,\n \"aria-labelledby\": subContext.triggerId,\n ...subContentProps,\n ref: composedRefs,\n align: \"start\",\n side: rootContext.dir === \"rtl\" ? \"left\" : \"right\",\n disableOutsidePointerEvents: false,\n disableOutsideScroll: false,\n trapFocus: false,\n onOpenAutoFocus: (event) => {\n if (rootContext.isUsingKeyboardRef.current) ref.current?.focus();\n event.preventDefault();\n },\n onCloseAutoFocus: (event) => event.preventDefault(),\n onFocusOutside: composeEventHandlers(props.onFocusOutside, (event) => {\n if (event.target !== subContext.trigger) context.onOpenChange(false);\n }),\n onEscapeKeyDown: composeEventHandlers(props.onEscapeKeyDown, (event) => {\n rootContext.onClose();\n event.preventDefault();\n }),\n onKeyDown: composeEventHandlers(props.onKeyDown, (event) => {\n const isKeyDownInside = event.currentTarget.contains(event.target);\n const isCloseKey = SUB_CLOSE_KEYS[rootContext.dir].includes(event.key);\n if (isKeyDownInside && isCloseKey) {\n context.onOpenChange(false);\n subContext.trigger?.focus();\n event.preventDefault();\n }\n })\n }\n ) }) }) });\n }\n);\nMenuSubContent.displayName = SUB_CONTENT_NAME;\nfunction getOpenState(open) {\n return open ? \"open\" : \"closed\";\n}\nfunction isIndeterminate(checked) {\n return checked === \"indeterminate\";\n}\nfunction getCheckedState(checked) {\n return isIndeterminate(checked) ? \"indeterminate\" : checked ? \"checked\" : \"unchecked\";\n}\nfunction focusFirst(candidates) {\n const PREVIOUSLY_FOCUSED_ELEMENT = document.activeElement;\n for (const candidate of candidates) {\n if (candidate === PREVIOUSLY_FOCUSED_ELEMENT) return;\n candidate.focus();\n if (document.activeElement !== PREVIOUSLY_FOCUSED_ELEMENT) return;\n }\n}\nfunction wrapArray(array, startIndex) {\n return array.map((_, index) => array[(startIndex + index) % array.length]);\n}\nfunction getNextMatch(values, search, currentMatch) {\n const isRepeated = search.length > 1 && Array.from(search).every((char) => char === search[0]);\n const normalizedSearch = isRepeated ? search[0] : search;\n const currentMatchIndex = currentMatch ? values.indexOf(currentMatch) : -1;\n let wrappedValues = wrapArray(values, Math.max(currentMatchIndex, 0));\n const excludeCurrentMatch = normalizedSearch.length === 1;\n if (excludeCurrentMatch) wrappedValues = wrappedValues.filter((v) => v !== currentMatch);\n const nextMatch = wrappedValues.find(\n (value) => value.toLowerCase().startsWith(normalizedSearch.toLowerCase())\n );\n return nextMatch !== currentMatch ? nextMatch : void 0;\n}\nfunction isPointInPolygon(point, polygon) {\n const { x, y } = point;\n let inside = false;\n for (let i = 0, j = polygon.length - 1; i < polygon.length; j = i++) {\n const xi = polygon[i].x;\n const yi = polygon[i].y;\n const xj = polygon[j].x;\n const yj = polygon[j].y;\n const intersect = yi > y !== yj > y && x < (xj - xi) * (y - yi) / (yj - yi) + xi;\n if (intersect) inside = !inside;\n }\n return inside;\n}\nfunction isPointerInGraceArea(event, area) {\n if (!area) return false;\n const cursorPos = { x: event.clientX, y: event.clientY };\n return isPointInPolygon(cursorPos, area);\n}\nfunction whenMouse(handler) {\n return (event) => event.pointerType === \"mouse\" ? handler(event) : void 0;\n}\nvar Root3 = Menu;\nvar Anchor2 = MenuAnchor;\nvar Portal = MenuPortal;\nvar Content2 = MenuContent;\nvar Group = MenuGroup;\nvar Label = MenuLabel;\nvar Item2 = MenuItem;\nvar CheckboxItem = MenuCheckboxItem;\nvar RadioGroup = MenuRadioGroup;\nvar RadioItem = MenuRadioItem;\nvar ItemIndicator = MenuItemIndicator;\nvar Separator = MenuSeparator;\nvar Arrow2 = MenuArrow;\nvar Sub = MenuSub;\nvar SubTrigger = MenuSubTrigger;\nvar SubContent = MenuSubContent;\n\nexport { Anchor2 as Anchor, Arrow2 as Arrow, CheckboxItem, Content2 as Content, Group, Item2 as Item, ItemIndicator, Label, Menu, MenuAnchor, MenuArrow, MenuCheckboxItem, MenuContent, MenuGroup, MenuItem, MenuItemIndicator, MenuLabel, MenuPortal, MenuRadioGroup, MenuRadioItem, MenuSeparator, MenuSub, MenuSubContent, MenuSubTrigger, Portal, RadioGroup, RadioItem, Root3 as Root, Separator, Sub, SubContent, SubTrigger, createMenuScope };\n//# sourceMappingURL=index.js.map\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAqBA,IAAI,cAAc,GAAG,CAAC,OAAO,EAAE,GAAG,CAAC;AACnC,IAAI,UAAU,GAAG,CAAC,WAAW,EAAE,QAAQ,EAAE,MAAM,CAAC;AAChD,IAAI,SAAS,GAAG,CAAC,SAAS,EAAE,UAAU,EAAE,KAAK,CAAC;AAC9C,IAAI,eAAe,GAAG,CAAC,GAAG,UAAU,EAAE,GAAG,SAAS,CAAC;AACnD,IAAI,aAAa,GAAG;AACpB,EAAE,GAAG,EAAE,CAAC,GAAG,cAAc,EAAE,YAAY,CAAC;AACxC,EAAE,GAAG,EAAE,CAAC,GAAG,cAAc,EAAE,WAAW;AACtC,CAAC;AACD,IAAI,cAAc,GAAG;AACrB,EAAE,GAAG,EAAE,CAAC,WAAW,CAAC;AACpB,EAAE,GAAG,EAAE,CAAC,YAAY;AACpB,CAAC;AACD,IAAI,SAAS,GAAG,MAAM;AACtB,IAAI,CAAC,UAAU,EAAE,aAAa,EAAE,qBAAqB,CAAC,GAAG,gBAAgB,CAAC,SAAS,CAAC;AACjF,IAAC,CAAC,iBAAiB,EAAE,eAAe,CAAC,GAAG,kBAAkB,CAAC,SAA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;AACnC;AACA,EAAE,OAAO,MAAM;AACf;AACA,SAAS,oBAAoB,CAAC,KAAK,EAAE,IAAI,EAAE;AAC3C,EAAE,IAAI,CAAC,IAAI,EAAE,OAAO,KAAK;AACzB,EAAE,MAAM,SAAS,GAAG,EAAE,CAAC,EAAE,KAAK,CAAC,OAAO,EAAE,CAAC,EAAE,KAAK,CAAC,OAAO,EAAE;AAC1D,EAAE,OAAO,gBAAgB,CAAC,SAAS,EAAE,IAAI,CAAC;AAC1C;AACA,SAAS,SAAS,CAAC,OAAO,EAAE;AAC5B,EAAE,OAAO,CAAC,KAAK,KAAK,KAAK,CAAC,WAAW,KAAK,OAAO,GAAG,OAAO,CAAC,KAAK,CAAC,GAAG,MAAM;AAC3E;AACG,IAAC,KAAK,GAAG;AACT,IAAC,OAAO,GAAG;AACX,IAAC,MAAM,GAAG;AACV,IAAC,QAAQ,GAAG;AACZ,IAAC,KAAK,GAAG;AACT,IAAC,KAAK,GAAG;AACT,IAAC,KAAK,GAAG;AACT,IAAC,YAAY,GAAG;AAChB,IAAC,UAAU,GAAG;AACd,IAAC,SAAS,GAAG;AACb,IAAC,aAAa,GAAG;AACjB,IAAC,SAAS,GAAG;AACb,IAAC,MAAM,GAAG;AAEV,IAAC,UAAU,GAAG;AACd,IAAC,UAAU,GAAG;;;;","x_google_ignoreList":[0]}
@@ -0,0 +1,280 @@
1
+ import * as React from 'react';
2
+ import { useFloating, arrow } from '../../../@floating-ui/react-dom/dist/floating-ui.react-dom.js';
3
+ import { Root } from '../../react-arrow/dist/index.js';
4
+ import { useComposedRefs } from '../../react-compose-refs/dist/index.js';
5
+ import { createContextScope } from '../../react-context/dist/index.js';
6
+ import { Primitive } from '../../react-primitive/dist/index.js';
7
+ import { useCallbackRef } from '../../react-use-callback-ref/dist/index.js';
8
+ import { useLayoutEffect as useLayoutEffect2 } from '../../react-use-layout-effect/dist/index.js';
9
+ import { useSize } from '../../react-use-size/dist/index.js';
10
+ import { jsx } from 'react/jsx-runtime';
11
+ import { autoUpdate } from '../../../@floating-ui/dom/dist/floating-ui.dom.js';
12
+ import { offset, shift, flip, size, hide, limitShift } from '../../../@floating-ui/core/dist/floating-ui.core.js';
13
+
14
+ var POPPER_NAME = "Popper";
15
+ var [createPopperContext, createPopperScope] = createContextScope(POPPER_NAME);
16
+ var [PopperProvider, usePopperContext] = createPopperContext(POPPER_NAME);
17
+ var Popper = (props) => {
18
+ const { __scopePopper, children } = props;
19
+ const [anchor, setAnchor] = React.useState(null);
20
+ return /* @__PURE__ */ jsx(PopperProvider, { scope: __scopePopper, anchor, onAnchorChange: setAnchor, children });
21
+ };
22
+ Popper.displayName = POPPER_NAME;
23
+ var ANCHOR_NAME = "PopperAnchor";
24
+ var PopperAnchor = React.forwardRef(
25
+ (props, forwardedRef) => {
26
+ const { __scopePopper, virtualRef, ...anchorProps } = props;
27
+ const context = usePopperContext(ANCHOR_NAME, __scopePopper);
28
+ const ref = React.useRef(null);
29
+ const composedRefs = useComposedRefs(forwardedRef, ref);
30
+ React.useEffect(() => {
31
+ context.onAnchorChange(virtualRef?.current || ref.current);
32
+ });
33
+ return virtualRef ? null : /* @__PURE__ */ jsx(Primitive.div, { ...anchorProps, ref: composedRefs });
34
+ }
35
+ );
36
+ PopperAnchor.displayName = ANCHOR_NAME;
37
+ var CONTENT_NAME = "PopperContent";
38
+ var [PopperContentProvider, useContentContext] = createPopperContext(CONTENT_NAME);
39
+ var PopperContent = React.forwardRef(
40
+ (props, forwardedRef) => {
41
+ const {
42
+ __scopePopper,
43
+ side = "bottom",
44
+ sideOffset = 0,
45
+ align = "center",
46
+ alignOffset = 0,
47
+ arrowPadding = 0,
48
+ avoidCollisions = true,
49
+ collisionBoundary = [],
50
+ collisionPadding: collisionPaddingProp = 0,
51
+ sticky = "partial",
52
+ hideWhenDetached = false,
53
+ updatePositionStrategy = "optimized",
54
+ onPlaced,
55
+ ...contentProps
56
+ } = props;
57
+ const context = usePopperContext(CONTENT_NAME, __scopePopper);
58
+ const [content, setContent] = React.useState(null);
59
+ const composedRefs = useComposedRefs(forwardedRef, (node) => setContent(node));
60
+ const [arrow$1, setArrow] = React.useState(null);
61
+ const arrowSize = useSize(arrow$1);
62
+ const arrowWidth = arrowSize?.width ?? 0;
63
+ const arrowHeight = arrowSize?.height ?? 0;
64
+ const desiredPlacement = side + (align !== "center" ? "-" + align : "");
65
+ const collisionPadding = typeof collisionPaddingProp === "number" ? collisionPaddingProp : { top: 0, right: 0, bottom: 0, left: 0, ...collisionPaddingProp };
66
+ const boundary = Array.isArray(collisionBoundary) ? collisionBoundary : [collisionBoundary];
67
+ const hasExplicitBoundaries = boundary.length > 0;
68
+ const detectOverflowOptions = {
69
+ padding: collisionPadding,
70
+ boundary: boundary.filter(isNotNull),
71
+ // with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
72
+ altBoundary: hasExplicitBoundaries
73
+ };
74
+ const { refs, floatingStyles, placement, isPositioned, middlewareData } = useFloating({
75
+ // default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
76
+ strategy: "fixed",
77
+ placement: desiredPlacement,
78
+ whileElementsMounted: (...args) => {
79
+ const cleanup = autoUpdate(...args, {
80
+ animationFrame: updatePositionStrategy === "always"
81
+ });
82
+ return cleanup;
83
+ },
84
+ elements: {
85
+ reference: context.anchor
86
+ },
87
+ middleware: [
88
+ offset({ mainAxis: sideOffset + arrowHeight, alignmentAxis: alignOffset }),
89
+ avoidCollisions && shift({
90
+ mainAxis: true,
91
+ crossAxis: false,
92
+ limiter: sticky === "partial" ? limitShift() : void 0,
93
+ ...detectOverflowOptions
94
+ }),
95
+ avoidCollisions && flip({ ...detectOverflowOptions }),
96
+ size({
97
+ ...detectOverflowOptions,
98
+ apply: ({ elements, rects, availableWidth, availableHeight }) => {
99
+ const { width: anchorWidth, height: anchorHeight } = rects.reference;
100
+ const contentStyle = elements.floating.style;
101
+ contentStyle.setProperty("--radix-popper-available-width", `${availableWidth}px`);
102
+ contentStyle.setProperty("--radix-popper-available-height", `${availableHeight}px`);
103
+ contentStyle.setProperty("--radix-popper-anchor-width", `${anchorWidth}px`);
104
+ contentStyle.setProperty("--radix-popper-anchor-height", `${anchorHeight}px`);
105
+ }
106
+ }),
107
+ arrow$1 && arrow({ element: arrow$1, padding: arrowPadding }),
108
+ transformOrigin({ arrowWidth, arrowHeight }),
109
+ hideWhenDetached && hide({ strategy: "referenceHidden", ...detectOverflowOptions })
110
+ ]
111
+ });
112
+ const [placedSide, placedAlign] = getSideAndAlignFromPlacement(placement);
113
+ const handlePlaced = useCallbackRef(onPlaced);
114
+ useLayoutEffect2(() => {
115
+ if (isPositioned) {
116
+ handlePlaced?.();
117
+ }
118
+ }, [isPositioned, handlePlaced]);
119
+ const arrowX = middlewareData.arrow?.x;
120
+ const arrowY = middlewareData.arrow?.y;
121
+ const cannotCenterArrow = middlewareData.arrow?.centerOffset !== 0;
122
+ const [contentZIndex, setContentZIndex] = React.useState();
123
+ useLayoutEffect2(() => {
124
+ if (content) setContentZIndex(window.getComputedStyle(content).zIndex);
125
+ }, [content]);
126
+ return /* @__PURE__ */ jsx(
127
+ "div",
128
+ {
129
+ ref: refs.setFloating,
130
+ "data-radix-popper-content-wrapper": "",
131
+ style: {
132
+ ...floatingStyles,
133
+ transform: isPositioned ? floatingStyles.transform : "translate(0, -200%)",
134
+ // keep off the page when measuring
135
+ minWidth: "max-content",
136
+ zIndex: contentZIndex,
137
+ ["--radix-popper-transform-origin"]: [
138
+ middlewareData.transformOrigin?.x,
139
+ middlewareData.transformOrigin?.y
140
+ ].join(" "),
141
+ // hide the content if using the hide middleware and should be hidden
142
+ // set visibility to hidden and disable pointer events so the UI behaves
143
+ // as if the PopperContent isn't there at all
144
+ ...middlewareData.hide?.referenceHidden && {
145
+ visibility: "hidden",
146
+ pointerEvents: "none"
147
+ }
148
+ },
149
+ dir: props.dir,
150
+ children: /* @__PURE__ */ jsx(
151
+ PopperContentProvider,
152
+ {
153
+ scope: __scopePopper,
154
+ placedSide,
155
+ onArrowChange: setArrow,
156
+ arrowX,
157
+ arrowY,
158
+ shouldHideArrow: cannotCenterArrow,
159
+ children: /* @__PURE__ */ jsx(
160
+ Primitive.div,
161
+ {
162
+ "data-side": placedSide,
163
+ "data-align": placedAlign,
164
+ ...contentProps,
165
+ ref: composedRefs,
166
+ style: {
167
+ ...contentProps.style,
168
+ // if the PopperContent hasn't been placed yet (not all measurements done)
169
+ // we prevent animations so that users's animation don't kick in too early referring wrong sides
170
+ animation: !isPositioned ? "none" : void 0
171
+ }
172
+ }
173
+ )
174
+ }
175
+ )
176
+ }
177
+ );
178
+ }
179
+ );
180
+ PopperContent.displayName = CONTENT_NAME;
181
+ var ARROW_NAME = "PopperArrow";
182
+ var OPPOSITE_SIDE = {
183
+ top: "bottom",
184
+ right: "left",
185
+ bottom: "top",
186
+ left: "right"
187
+ };
188
+ var PopperArrow = React.forwardRef(function PopperArrow2(props, forwardedRef) {
189
+ const { __scopePopper, ...arrowProps } = props;
190
+ const contentContext = useContentContext(ARROW_NAME, __scopePopper);
191
+ const baseSide = OPPOSITE_SIDE[contentContext.placedSide];
192
+ return (
193
+ // we have to use an extra wrapper because `ResizeObserver` (used by `useSize`)
194
+ // doesn't report size as we'd expect on SVG elements.
195
+ // it reports their bounding box which is effectively the largest path inside the SVG.
196
+ /* @__PURE__ */ jsx(
197
+ "span",
198
+ {
199
+ ref: contentContext.onArrowChange,
200
+ style: {
201
+ position: "absolute",
202
+ left: contentContext.arrowX,
203
+ top: contentContext.arrowY,
204
+ [baseSide]: 0,
205
+ transformOrigin: {
206
+ top: "",
207
+ right: "0 0",
208
+ bottom: "center 0",
209
+ left: "100% 0"
210
+ }[contentContext.placedSide],
211
+ transform: {
212
+ top: "translateY(100%)",
213
+ right: "translateY(50%) rotate(90deg) translateX(-50%)",
214
+ bottom: `rotate(180deg)`,
215
+ left: "translateY(50%) rotate(-90deg) translateX(50%)"
216
+ }[contentContext.placedSide],
217
+ visibility: contentContext.shouldHideArrow ? "hidden" : void 0
218
+ },
219
+ children: /* @__PURE__ */ jsx(
220
+ Root,
221
+ {
222
+ ...arrowProps,
223
+ ref: forwardedRef,
224
+ style: {
225
+ ...arrowProps.style,
226
+ // ensures the element can be measured correctly (mostly for if SVG)
227
+ display: "block"
228
+ }
229
+ }
230
+ )
231
+ }
232
+ )
233
+ );
234
+ });
235
+ PopperArrow.displayName = ARROW_NAME;
236
+ function isNotNull(value) {
237
+ return value !== null;
238
+ }
239
+ var transformOrigin = (options) => ({
240
+ name: "transformOrigin",
241
+ options,
242
+ fn(data) {
243
+ const { placement, rects, middlewareData } = data;
244
+ const cannotCenterArrow = middlewareData.arrow?.centerOffset !== 0;
245
+ const isArrowHidden = cannotCenterArrow;
246
+ const arrowWidth = isArrowHidden ? 0 : options.arrowWidth;
247
+ const arrowHeight = isArrowHidden ? 0 : options.arrowHeight;
248
+ const [placedSide, placedAlign] = getSideAndAlignFromPlacement(placement);
249
+ const noArrowAlign = { start: "0%", center: "50%", end: "100%" }[placedAlign];
250
+ const arrowXCenter = (middlewareData.arrow?.x ?? 0) + arrowWidth / 2;
251
+ const arrowYCenter = (middlewareData.arrow?.y ?? 0) + arrowHeight / 2;
252
+ let x = "";
253
+ let y = "";
254
+ if (placedSide === "bottom") {
255
+ x = isArrowHidden ? noArrowAlign : `${arrowXCenter}px`;
256
+ y = `${-arrowHeight}px`;
257
+ } else if (placedSide === "top") {
258
+ x = isArrowHidden ? noArrowAlign : `${arrowXCenter}px`;
259
+ y = `${rects.floating.height + arrowHeight}px`;
260
+ } else if (placedSide === "right") {
261
+ x = `${-arrowHeight}px`;
262
+ y = isArrowHidden ? noArrowAlign : `${arrowYCenter}px`;
263
+ } else if (placedSide === "left") {
264
+ x = `${rects.floating.width + arrowHeight}px`;
265
+ y = isArrowHidden ? noArrowAlign : `${arrowYCenter}px`;
266
+ }
267
+ return { data: { x, y } };
268
+ }
269
+ });
270
+ function getSideAndAlignFromPlacement(placement) {
271
+ const [side, align = "center"] = placement.split("-");
272
+ return [side, align];
273
+ }
274
+ var Root2 = Popper;
275
+ var Anchor = PopperAnchor;
276
+ var Content = PopperContent;
277
+ var Arrow = PopperArrow;
278
+
279
+ export { Anchor, Arrow, Content, Popper, PopperAnchor, PopperArrow, PopperContent, Root2 as Root, createPopperScope };
280
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../../../../../../../../react-components/dist/es/node_modules/@radix-ui/react-popper/dist/index.js"],"sourcesContent":["import * as React from 'react';\nimport { useFloating, arrow } from '../../../@floating-ui/react-dom/dist/floating-ui.react-dom.js';\nimport { Root } from '../../react-arrow/dist/index.js';\nimport { useComposedRefs } from '../../react-compose-refs/dist/index.js';\nimport { createContextScope } from '../../react-context/dist/index.js';\nimport { Primitive } from '../../react-primitive/dist/index.js';\nimport { useCallbackRef } from '../../react-use-callback-ref/dist/index.js';\nimport { useLayoutEffect as useLayoutEffect2 } from '../../react-use-layout-effect/dist/index.js';\nimport { useSize } from '../../react-use-size/dist/index.js';\nimport { jsx } from 'react/jsx-runtime';\nimport { autoUpdate } from '../../../@floating-ui/dom/dist/floating-ui.dom.js';\nimport { offset, shift, flip, size, hide, limitShift } from '../../../@floating-ui/core/dist/floating-ui.core.js';\n\nvar POPPER_NAME = \"Popper\";\nvar [createPopperContext, createPopperScope] = createContextScope(POPPER_NAME);\nvar [PopperProvider, usePopperContext] = createPopperContext(POPPER_NAME);\nvar Popper = (props) => {\n const { __scopePopper, children } = props;\n const [anchor, setAnchor] = React.useState(null);\n return /* @__PURE__ */ jsx(PopperProvider, { scope: __scopePopper, anchor, onAnchorChange: setAnchor, children });\n};\nPopper.displayName = POPPER_NAME;\nvar ANCHOR_NAME = \"PopperAnchor\";\nvar PopperAnchor = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopePopper, virtualRef, ...anchorProps } = props;\n const context = usePopperContext(ANCHOR_NAME, __scopePopper);\n const ref = React.useRef(null);\n const composedRefs = useComposedRefs(forwardedRef, ref);\n React.useEffect(() => {\n context.onAnchorChange(virtualRef?.current || ref.current);\n });\n return virtualRef ? null : /* @__PURE__ */ jsx(Primitive.div, { ...anchorProps, ref: composedRefs });\n }\n);\nPopperAnchor.displayName = ANCHOR_NAME;\nvar CONTENT_NAME = \"PopperContent\";\nvar [PopperContentProvider, useContentContext] = createPopperContext(CONTENT_NAME);\nvar PopperContent = React.forwardRef(\n (props, forwardedRef) => {\n const {\n __scopePopper,\n side = \"bottom\",\n sideOffset = 0,\n align = \"center\",\n alignOffset = 0,\n arrowPadding = 0,\n avoidCollisions = true,\n collisionBoundary = [],\n collisionPadding: collisionPaddingProp = 0,\n sticky = \"partial\",\n hideWhenDetached = false,\n updatePositionStrategy = \"optimized\",\n onPlaced,\n ...contentProps\n } = props;\n const context = usePopperContext(CONTENT_NAME, __scopePopper);\n const [content, setContent] = React.useState(null);\n const composedRefs = useComposedRefs(forwardedRef, (node) => setContent(node));\n const [arrow$1, setArrow] = React.useState(null);\n const arrowSize = useSize(arrow$1);\n const arrowWidth = arrowSize?.width ?? 0;\n const arrowHeight = arrowSize?.height ?? 0;\n const desiredPlacement = side + (align !== \"center\" ? \"-\" + align : \"\");\n const collisionPadding = typeof collisionPaddingProp === \"number\" ? collisionPaddingProp : { top: 0, right: 0, bottom: 0, left: 0, ...collisionPaddingProp };\n const boundary = Array.isArray(collisionBoundary) ? collisionBoundary : [collisionBoundary];\n const hasExplicitBoundaries = boundary.length > 0;\n const detectOverflowOptions = {\n padding: collisionPadding,\n boundary: boundary.filter(isNotNull),\n // with `strategy: 'fixed'`, this is the only way to get it to respect boundaries\n altBoundary: hasExplicitBoundaries\n };\n const { refs, floatingStyles, placement, isPositioned, middlewareData } = useFloating({\n // default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues\n strategy: \"fixed\",\n placement: desiredPlacement,\n whileElementsMounted: (...args) => {\n const cleanup = autoUpdate(...args, {\n animationFrame: updatePositionStrategy === \"always\"\n });\n return cleanup;\n },\n elements: {\n reference: context.anchor\n },\n middleware: [\n offset({ mainAxis: sideOffset + arrowHeight, alignmentAxis: alignOffset }),\n avoidCollisions && shift({\n mainAxis: true,\n crossAxis: false,\n limiter: sticky === \"partial\" ? limitShift() : void 0,\n ...detectOverflowOptions\n }),\n avoidCollisions && flip({ ...detectOverflowOptions }),\n size({\n ...detectOverflowOptions,\n apply: ({ elements, rects, availableWidth, availableHeight }) => {\n const { width: anchorWidth, height: anchorHeight } = rects.reference;\n const contentStyle = elements.floating.style;\n contentStyle.setProperty(\"--radix-popper-available-width\", `${availableWidth}px`);\n contentStyle.setProperty(\"--radix-popper-available-height\", `${availableHeight}px`);\n contentStyle.setProperty(\"--radix-popper-anchor-width\", `${anchorWidth}px`);\n contentStyle.setProperty(\"--radix-popper-anchor-height\", `${anchorHeight}px`);\n }\n }),\n arrow$1 && arrow({ element: arrow$1, padding: arrowPadding }),\n transformOrigin({ arrowWidth, arrowHeight }),\n hideWhenDetached && hide({ strategy: \"referenceHidden\", ...detectOverflowOptions })\n ]\n });\n const [placedSide, placedAlign] = getSideAndAlignFromPlacement(placement);\n const handlePlaced = useCallbackRef(onPlaced);\n useLayoutEffect2(() => {\n if (isPositioned) {\n handlePlaced?.();\n }\n }, [isPositioned, handlePlaced]);\n const arrowX = middlewareData.arrow?.x;\n const arrowY = middlewareData.arrow?.y;\n const cannotCenterArrow = middlewareData.arrow?.centerOffset !== 0;\n const [contentZIndex, setContentZIndex] = React.useState();\n useLayoutEffect2(() => {\n if (content) setContentZIndex(window.getComputedStyle(content).zIndex);\n }, [content]);\n return /* @__PURE__ */ jsx(\n \"div\",\n {\n ref: refs.setFloating,\n \"data-radix-popper-content-wrapper\": \"\",\n style: {\n ...floatingStyles,\n transform: isPositioned ? floatingStyles.transform : \"translate(0, -200%)\",\n // keep off the page when measuring\n minWidth: \"max-content\",\n zIndex: contentZIndex,\n [\"--radix-popper-transform-origin\"]: [\n middlewareData.transformOrigin?.x,\n middlewareData.transformOrigin?.y\n ].join(\" \"),\n // hide the content if using the hide middleware and should be hidden\n // set visibility to hidden and disable pointer events so the UI behaves\n // as if the PopperContent isn't there at all\n ...middlewareData.hide?.referenceHidden && {\n visibility: \"hidden\",\n pointerEvents: \"none\"\n }\n },\n dir: props.dir,\n children: /* @__PURE__ */ jsx(\n PopperContentProvider,\n {\n scope: __scopePopper,\n placedSide,\n onArrowChange: setArrow,\n arrowX,\n arrowY,\n shouldHideArrow: cannotCenterArrow,\n children: /* @__PURE__ */ jsx(\n Primitive.div,\n {\n \"data-side\": placedSide,\n \"data-align\": placedAlign,\n ...contentProps,\n ref: composedRefs,\n style: {\n ...contentProps.style,\n // if the PopperContent hasn't been placed yet (not all measurements done)\n // we prevent animations so that users's animation don't kick in too early referring wrong sides\n animation: !isPositioned ? \"none\" : void 0\n }\n }\n )\n }\n )\n }\n );\n }\n);\nPopperContent.displayName = CONTENT_NAME;\nvar ARROW_NAME = \"PopperArrow\";\nvar OPPOSITE_SIDE = {\n top: \"bottom\",\n right: \"left\",\n bottom: \"top\",\n left: \"right\"\n};\nvar PopperArrow = React.forwardRef(function PopperArrow2(props, forwardedRef) {\n const { __scopePopper, ...arrowProps } = props;\n const contentContext = useContentContext(ARROW_NAME, __scopePopper);\n const baseSide = OPPOSITE_SIDE[contentContext.placedSide];\n return (\n // we have to use an extra wrapper because `ResizeObserver` (used by `useSize`)\n // doesn't report size as we'd expect on SVG elements.\n // it reports their bounding box which is effectively the largest path inside the SVG.\n /* @__PURE__ */ jsx(\n \"span\",\n {\n ref: contentContext.onArrowChange,\n style: {\n position: \"absolute\",\n left: contentContext.arrowX,\n top: contentContext.arrowY,\n [baseSide]: 0,\n transformOrigin: {\n top: \"\",\n right: \"0 0\",\n bottom: \"center 0\",\n left: \"100% 0\"\n }[contentContext.placedSide],\n transform: {\n top: \"translateY(100%)\",\n right: \"translateY(50%) rotate(90deg) translateX(-50%)\",\n bottom: `rotate(180deg)`,\n left: \"translateY(50%) rotate(-90deg) translateX(50%)\"\n }[contentContext.placedSide],\n visibility: contentContext.shouldHideArrow ? \"hidden\" : void 0\n },\n children: /* @__PURE__ */ jsx(\n Root,\n {\n ...arrowProps,\n ref: forwardedRef,\n style: {\n ...arrowProps.style,\n // ensures the element can be measured correctly (mostly for if SVG)\n display: \"block\"\n }\n }\n )\n }\n )\n );\n});\nPopperArrow.displayName = ARROW_NAME;\nfunction isNotNull(value) {\n return value !== null;\n}\nvar transformOrigin = (options) => ({\n name: \"transformOrigin\",\n options,\n fn(data) {\n const { placement, rects, middlewareData } = data;\n const cannotCenterArrow = middlewareData.arrow?.centerOffset !== 0;\n const isArrowHidden = cannotCenterArrow;\n const arrowWidth = isArrowHidden ? 0 : options.arrowWidth;\n const arrowHeight = isArrowHidden ? 0 : options.arrowHeight;\n const [placedSide, placedAlign] = getSideAndAlignFromPlacement(placement);\n const noArrowAlign = { start: \"0%\", center: \"50%\", end: \"100%\" }[placedAlign];\n const arrowXCenter = (middlewareData.arrow?.x ?? 0) + arrowWidth / 2;\n const arrowYCenter = (middlewareData.arrow?.y ?? 0) + arrowHeight / 2;\n let x = \"\";\n let y = \"\";\n if (placedSide === \"bottom\") {\n x = isArrowHidden ? noArrowAlign : `${arrowXCenter}px`;\n y = `${-arrowHeight}px`;\n } else if (placedSide === \"top\") {\n x = isArrowHidden ? noArrowAlign : `${arrowXCenter}px`;\n y = `${rects.floating.height + arrowHeight}px`;\n } else if (placedSide === \"right\") {\n x = `${-arrowHeight}px`;\n y = isArrowHidden ? noArrowAlign : `${arrowYCenter}px`;\n } else if (placedSide === \"left\") {\n x = `${rects.floating.width + arrowHeight}px`;\n y = isArrowHidden ? noArrowAlign : `${arrowYCenter}px`;\n }\n return { data: { x, y } };\n }\n});\nfunction getSideAndAlignFromPlacement(placement) {\n const [side, align = \"center\"] = placement.split(\"-\");\n return [side, align];\n}\nvar Root2 = Popper;\nvar Anchor = PopperAnchor;\nvar Content = PopperContent;\nvar Arrow = PopperArrow;\n\nexport { Anchor, Arrow, Content, Popper, PopperAnchor, PopperArrow, PopperContent, Root2 as Root, createPopperScope };\n//# s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AAC,EAAE,CAAC;AAC5D,MAAM,CAAC,GAAG,CAAC,EAAE,KAAK,CAAC,QAAQ,CAAC,MAAM,GAAG,WAAW,CAAC,EAAE,CAAC;AACpD,KAAK,MAAM,IAAI,UAAU,KAAK,OAAO,EAAE;AACvC,MAAM,CAAC,GAAG,CAAC,EAAE,CAAC,WAAW,CAAC,EAAE,CAAC;AAC7B,MAAM,CAAC,GAAG,aAAa,GAAG,YAAY,GAAG,CAAC,EAAE,YAAY,CAAC,EAAE,CAAC;AAC5D,KAAK,MAAM,IAAI,UAAU,KAAK,MAAM,EAAE;AACtC,MAAM,CAAC,GAAG,CAAC,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,GAAG,WAAW,CAAC,EAAE,CAAC;AACnD,MAAM,CAAC,GAAG,aAAa,GAAG,YAAY,GAAG,CAAC,EAAE,YAAY,CAAC,EAAE,CAAC;AAC5D;AACA,IAAI,OAAO,EAAE,IAAI,EAAE,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE;AAC7B;AACA,CAAC,CAAC;AACF,SAAS,4BAA4B,CAAC,SAAS,EAAE;AACjD,EAAE,MAAM,CAAC,IAAI,EAAE,KAAK,GAAG,QAAQ,CAAC,GAAG,SAAS,CAAC,KAAK,CAAC,GAAG,CAAC;AACvD,EAAE,OAAO,CAAC,IAAI,EAAE,KAAK,CAAC;AACtB;AACG,IAAC,KAAK,GAAG;AACT,IAAC,MAAM,GAAG;AACV,IAAC,OAAO,GAAG;AACX,IAAC,KAAK,GAAG;;;;","x_google_ignoreList":[0]}
@@ -0,0 +1,18 @@
1
+ import * as React from 'react';
2
+ import ReactDOM__default__default from 'react-dom';
3
+ import { Primitive } from '../../react-primitive/dist/index.js';
4
+ import { useLayoutEffect as useLayoutEffect2 } from '../../react-use-layout-effect/dist/index.js';
5
+ import { jsx } from 'react/jsx-runtime';
6
+
7
+ var PORTAL_NAME = "Portal";
8
+ var Portal = React.forwardRef((props, forwardedRef) => {
9
+ const { container: containerProp, ...portalProps } = props;
10
+ const [mounted, setMounted] = React.useState(false);
11
+ useLayoutEffect2(() => setMounted(true), []);
12
+ const container = containerProp || mounted && globalThis?.document?.body;
13
+ return container ? ReactDOM__default__default.createPortal(/* @__PURE__ */ jsx(Primitive.div, { ...portalProps, ref: forwardedRef }), container) : null;
14
+ });
15
+ Portal.displayName = PORTAL_NAME;
16
+
17
+ export { Portal };
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../../../../../../../../react-components/dist/es/node_modules/@radix-ui/react-portal/dist/index.js"],"sourcesContent":["import * as React from 'react';\nimport ReactDOM__default from 'react-dom';\nimport { Primitive } from '../../react-primitive/dist/index.js';\nimport { useLayoutEffect as useLayoutEffect2 } from '../../react-use-layout-effect/dist/index.js';\nimport { jsx } from 'react/jsx-runtime';\n\nvar PORTAL_NAME = \"Portal\";\nvar Portal = React.forwardRef((props, forwardedRef) => {\n const { container: containerProp, ...portalProps } = props;\n const [mounted, setMounted] = React.useState(false);\n useLayoutEffect2(() => setMounted(true), []);\n const container = containerProp || mounted && globalThis?.document?.body;\n return container ? ReactDOM__default.createPortal(/* @__PURE__ */ jsx(Primitive.div, { ...portalProps, ref: forwardedRef }), container) : null;\n});\nPortal.displayName = PORTAL_NAME;\nvar Root = Portal;\n\nexport { Portal, Root };\n//# sourceMappingURL=index.js.map\n"],"names":["ReactDOM__default"],"mappings":";;;;;;AAMA,IAAI,WAAW,GAAG,QAAQ;AACvB,IAAC,MAAM,GAAG,KAAK,CAAC,UAAU,CAAC,CAAC,KAAK,EAAE,YAAY,KAAK;AACvD,EAAE,MAAM,EAAE,SAAS,EAAE,aAAa,EAAE,GAAG,WAAW,EAAE,GAAG,KAAK;AAC5D,EAAE,MAAM,CAAC,OAAO,EAAE,UAAU,CAAC,GAAG,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC;AACrD,EAAE,gBAAgB,CAAC,MAAM,UAAU,CAAC,IAAI,CAAC,EAAE,EAAE,CAAC;AAC9C,EAAE,MAAM,SAAS,GAAG,aAAa,IAAI,OAAO,IAAI,UAAU,EAAE,QAAQ,EAAE,IAAI;AAC1E,EAAE,OAAO,SAAS,GAAGA,0BAAiB,CAAC,YAAY,iBAAiB,GAAG,CAAC,SAAS,CAAC,GAAG,EAAE,EAAE,GAAG,WAAW,EAAE,GAAG,EAAE,YAAY,EAAE,CAAC,EAAE,SAAS,CAAC,GAAG,IAAI;AAChJ,CAAC;AACD,MAAM,CAAC,WAAW,GAAG,WAAW;;;;","x_google_ignoreList":[0]}
@@ -0,0 +1,120 @@
1
+ import * as React from 'react';
2
+ import * as ReactDOM__default from 'react-dom';
3
+ import { useComposedRefs } from '../../react-compose-refs/dist/index.js';
4
+ import { useLayoutEffect as useLayoutEffect2 } from '../../react-use-layout-effect/dist/index.js';
5
+
6
+ function useStateMachine(initialState, machine) {
7
+ return React.useReducer((state, event) => {
8
+ const nextState = machine[state][event];
9
+ return nextState ?? state;
10
+ }, initialState);
11
+ }
12
+
13
+ // packages/react/presence/src/Presence.tsx
14
+ var Presence = (props) => {
15
+ const { present, children } = props;
16
+ const presence = usePresence(present);
17
+ const child = typeof children === "function" ? children({ present: presence.isPresent }) : React.Children.only(children);
18
+ const ref = useComposedRefs(presence.ref, getElementRef(child));
19
+ const forceMount = typeof children === "function";
20
+ return forceMount || presence.isPresent ? React.cloneElement(child, { ref }) : null;
21
+ };
22
+ Presence.displayName = "Presence";
23
+ function usePresence(present) {
24
+ const [node, setNode] = React.useState();
25
+ const stylesRef = React.useRef({});
26
+ const prevPresentRef = React.useRef(present);
27
+ const prevAnimationNameRef = React.useRef("none");
28
+ const initialState = present ? "mounted" : "unmounted";
29
+ const [state, send] = useStateMachine(initialState, {
30
+ mounted: {
31
+ UNMOUNT: "unmounted",
32
+ ANIMATION_OUT: "unmountSuspended"
33
+ },
34
+ unmountSuspended: {
35
+ MOUNT: "mounted",
36
+ ANIMATION_END: "unmounted"
37
+ },
38
+ unmounted: {
39
+ MOUNT: "mounted"
40
+ }
41
+ });
42
+ React.useEffect(() => {
43
+ const currentAnimationName = getAnimationName(stylesRef.current);
44
+ prevAnimationNameRef.current = state === "mounted" ? currentAnimationName : "none";
45
+ }, [state]);
46
+ useLayoutEffect2(() => {
47
+ const styles = stylesRef.current;
48
+ const wasPresent = prevPresentRef.current;
49
+ const hasPresentChanged = wasPresent !== present;
50
+ if (hasPresentChanged) {
51
+ const prevAnimationName = prevAnimationNameRef.current;
52
+ const currentAnimationName = getAnimationName(styles);
53
+ if (present) {
54
+ send("MOUNT");
55
+ } else if (currentAnimationName === "none" || styles?.display === "none") {
56
+ send("UNMOUNT");
57
+ } else {
58
+ const isAnimating = prevAnimationName !== currentAnimationName;
59
+ if (wasPresent && isAnimating) {
60
+ send("ANIMATION_OUT");
61
+ } else {
62
+ send("UNMOUNT");
63
+ }
64
+ }
65
+ prevPresentRef.current = present;
66
+ }
67
+ }, [present, send]);
68
+ useLayoutEffect2(() => {
69
+ if (node) {
70
+ const handleAnimationEnd = (event) => {
71
+ const currentAnimationName = getAnimationName(stylesRef.current);
72
+ const isCurrentAnimation = currentAnimationName.includes(event.animationName);
73
+ if (event.target === node && isCurrentAnimation) {
74
+ ReactDOM__default.flushSync(() => send("ANIMATION_END"));
75
+ }
76
+ };
77
+ const handleAnimationStart = (event) => {
78
+ if (event.target === node) {
79
+ prevAnimationNameRef.current = getAnimationName(stylesRef.current);
80
+ }
81
+ };
82
+ node.addEventListener("animationstart", handleAnimationStart);
83
+ node.addEventListener("animationcancel", handleAnimationEnd);
84
+ node.addEventListener("animationend", handleAnimationEnd);
85
+ return () => {
86
+ node.removeEventListener("animationstart", handleAnimationStart);
87
+ node.removeEventListener("animationcancel", handleAnimationEnd);
88
+ node.removeEventListener("animationend", handleAnimationEnd);
89
+ };
90
+ } else {
91
+ send("ANIMATION_END");
92
+ }
93
+ }, [node, send]);
94
+ return {
95
+ isPresent: ["mounted", "unmountSuspended"].includes(state),
96
+ ref: React.useCallback((node2) => {
97
+ if (node2) stylesRef.current = getComputedStyle(node2);
98
+ setNode(node2);
99
+ }, [])
100
+ };
101
+ }
102
+ function getAnimationName(styles) {
103
+ return styles?.animationName || "none";
104
+ }
105
+ function getElementRef(element) {
106
+ let getter = Object.getOwnPropertyDescriptor(element.props, "ref")?.get;
107
+ let mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
108
+ if (mayWarn) {
109
+ return element.ref;
110
+ }
111
+ getter = Object.getOwnPropertyDescriptor(element, "ref")?.get;
112
+ mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
113
+ if (mayWarn) {
114
+ return element.props.ref;
115
+ }
116
+ return element.props.ref || element.ref;
117
+ }
118
+
119
+ export { Presence };
120
+ //# sourceMappingURL=index.js.map