@sparrowengg/twigs-editor-react 0.0.1 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (630) hide show
  1. package/dist/cjs/_virtual/isURL.js +1 -1
  2. package/dist/cjs/components/base-dropdown/index.js +13 -15
  3. package/dist/cjs/components/base-dropdown/index.js.map +1 -1
  4. package/dist/cjs/components/dialog-link-editor/index.js +16 -16
  5. package/dist/cjs/components/dialog-link-editor/link-editor-dialog.js +21 -28
  6. package/dist/cjs/components/dialog-link-editor/link-editor-dialog.js.map +1 -1
  7. package/dist/cjs/components/dialog-link-editor/link-tooltip.js +13 -17
  8. package/dist/cjs/components/dialog-link-editor/link-tooltip.js.map +1 -1
  9. package/dist/cjs/components/floating-toolbar/floating-toolbar.js +18 -18
  10. package/dist/cjs/components/floating-toolbar/floating-toolbar.js.map +1 -1
  11. package/dist/cjs/components/rich-editor/index.js +7 -7
  12. package/dist/cjs/components/rich-editor/index.js.map +1 -1
  13. package/dist/cjs/components/toolbar/toolbar.js +5 -5
  14. package/dist/cjs/components/toolbar/toolbar.js.map +1 -1
  15. package/dist/cjs/components/toolbar/tools/bold.js +5 -5
  16. package/dist/cjs/components/toolbar/tools/bold.js.map +1 -1
  17. package/dist/cjs/components/toolbar/tools/code-block.js +5 -5
  18. package/dist/cjs/components/toolbar/tools/code-block.js.map +1 -1
  19. package/dist/cjs/components/toolbar/tools/code.js +5 -5
  20. package/dist/cjs/components/toolbar/tools/code.js.map +1 -1
  21. package/dist/cjs/components/toolbar/tools/format.js +9 -10
  22. package/dist/cjs/components/toolbar/tools/format.js.map +1 -1
  23. package/dist/cjs/components/toolbar/tools/italic.js +5 -5
  24. package/dist/cjs/components/toolbar/tools/italic.js.map +1 -1
  25. package/dist/cjs/components/toolbar/tools/link.js +5 -5
  26. package/dist/cjs/components/toolbar/tools/link.js.map +1 -1
  27. package/dist/cjs/components/toolbar/tools/ordered-list.js +5 -5
  28. package/dist/cjs/components/toolbar/tools/ordered-list.js.map +1 -1
  29. package/dist/cjs/components/toolbar/tools/text-align.js +8 -11
  30. package/dist/cjs/components/toolbar/tools/text-align.js.map +1 -1
  31. package/dist/cjs/components/toolbar/tools/underline.js +5 -5
  32. package/dist/cjs/components/toolbar/tools/underline.js.map +1 -1
  33. package/dist/cjs/components/toolbar/tools/unordered-list.js +5 -5
  34. package/dist/cjs/components/toolbar/tools/unordered-list.js.map +1 -1
  35. package/dist/cjs/components/toolbar-context/context.js +3 -3
  36. package/dist/cjs/components/toolbar-context/store.js +9 -9
  37. package/dist/cjs/editor.js +5 -3
  38. package/dist/cjs/editor.js.map +1 -1
  39. package/dist/cjs/node_modules/clsx/dist/clsx.js.map +1 -0
  40. package/dist/cjs/node_modules/validator/es/lib/isFQDN.js.map +1 -0
  41. package/dist/cjs/node_modules/validator/es/lib/isIP.js.map +1 -0
  42. package/dist/cjs/node_modules/validator/es/lib/isURL.js.map +1 -0
  43. package/dist/cjs/node_modules/validator/es/lib/util/assertString.js.map +1 -0
  44. package/dist/cjs/node_modules/validator/es/lib/util/merge.js.map +1 -0
  45. package/dist/cjs/{react-editor/node_modules → node_modules}/validator/lib/isFQDN.js +1 -1
  46. package/dist/cjs/node_modules/validator/lib/isFQDN.js.map +1 -0
  47. package/dist/cjs/{react-editor/node_modules → node_modules}/validator/lib/isIP.js +1 -1
  48. package/dist/cjs/node_modules/validator/lib/isIP.js.map +1 -0
  49. package/dist/cjs/{react-editor/node_modules → node_modules}/validator/lib/isURL.js +1 -1
  50. package/dist/cjs/node_modules/validator/lib/isURL.js.map +1 -0
  51. package/dist/cjs/{react-editor/node_modules → node_modules}/validator/lib/util/assertString.js +1 -1
  52. package/dist/cjs/node_modules/validator/lib/util/assertString.js.map +1 -0
  53. package/dist/cjs/{react-editor/node_modules → node_modules}/validator/lib/util/merge.js +1 -1
  54. package/dist/cjs/node_modules/validator/lib/util/merge.js.map +1 -0
  55. package/dist/cjs/nodes/image.js +4 -4
  56. package/dist/cjs/nodes/image.js.map +1 -1
  57. package/dist/cjs/plugins/data-management-plugin/index.js +3 -3
  58. package/dist/cjs/plugins/emoji/index.js +5 -3
  59. package/dist/cjs/plugins/emoji/index.js.map +1 -1
  60. package/dist/cjs/plugins/hashtag/index.js +2 -0
  61. package/dist/cjs/plugins/hashtag/index.js.map +1 -1
  62. package/dist/cjs/plugins/images/index.js +2 -2
  63. package/dist/cjs/plugins/link/convert-selection-on-paste.js +2 -2
  64. package/dist/cjs/plugins/link/link.js +2 -2
  65. package/dist/cjs/plugins/mentions/index.js +2 -0
  66. package/dist/cjs/plugins/mentions/index.js.map +1 -1
  67. package/dist/cjs/plugins/tab-focus/index.js +3 -3
  68. package/dist/cjs/utils/prefix-class-name.js +2 -2
  69. package/dist/cjs/utils/prefix-class-name.js.map +1 -1
  70. package/dist/cjs/utils/use-node-focus.js +2 -2
  71. package/dist/es/_virtual/isURL.js +1 -1
  72. package/dist/es/components/base-dropdown/index.js +1 -3
  73. package/dist/es/components/base-dropdown/index.js.map +1 -1
  74. package/dist/es/components/dialog-link-editor/index.js +1 -1
  75. package/dist/es/components/dialog-link-editor/link-editor-dialog.js +2 -9
  76. package/dist/es/components/dialog-link-editor/link-editor-dialog.js.map +1 -1
  77. package/dist/es/components/dialog-link-editor/link-tooltip.js +2 -6
  78. package/dist/es/components/dialog-link-editor/link-tooltip.js.map +1 -1
  79. package/dist/es/components/floating-toolbar/floating-toolbar.js +2 -2
  80. package/dist/es/components/rich-editor/index.js +1 -1
  81. package/dist/es/components/toolbar/toolbar.js +1 -1
  82. package/dist/es/components/toolbar/tools/bold.js +3 -3
  83. package/dist/es/components/toolbar/tools/code-block.js +3 -3
  84. package/dist/es/components/toolbar/tools/code.js +3 -3
  85. package/dist/es/components/toolbar/tools/format.js +2 -3
  86. package/dist/es/components/toolbar/tools/format.js.map +1 -1
  87. package/dist/es/components/toolbar/tools/italic.js +3 -3
  88. package/dist/es/components/toolbar/tools/link.js +3 -3
  89. package/dist/es/components/toolbar/tools/ordered-list.js +3 -3
  90. package/dist/es/components/toolbar/tools/text-align.js +3 -6
  91. package/dist/es/components/toolbar/tools/text-align.js.map +1 -1
  92. package/dist/es/components/toolbar/tools/underline.js +3 -3
  93. package/dist/es/components/toolbar/tools/unordered-list.js +3 -3
  94. package/dist/es/editor.js +2 -0
  95. package/dist/es/editor.js.map +1 -1
  96. package/dist/es/node_modules/clsx/dist/clsx.js.map +1 -0
  97. package/dist/es/node_modules/validator/es/lib/isFQDN.js.map +1 -0
  98. package/dist/es/node_modules/validator/es/lib/isIP.js.map +1 -0
  99. package/dist/es/node_modules/validator/es/lib/isURL.js.map +1 -0
  100. package/dist/es/node_modules/validator/es/lib/util/assertString.js.map +1 -0
  101. package/dist/es/node_modules/validator/es/lib/util/merge.js.map +1 -0
  102. package/dist/es/{react-editor/node_modules → node_modules}/validator/lib/isFQDN.js +1 -1
  103. package/dist/es/node_modules/validator/lib/isFQDN.js.map +1 -0
  104. package/dist/es/{react-editor/node_modules → node_modules}/validator/lib/isIP.js +1 -1
  105. package/dist/es/node_modules/validator/lib/isIP.js.map +1 -0
  106. package/dist/es/{react-editor/node_modules → node_modules}/validator/lib/isURL.js +1 -1
  107. package/dist/es/node_modules/validator/lib/isURL.js.map +1 -0
  108. package/dist/es/{react-editor/node_modules → node_modules}/validator/lib/util/assertString.js +1 -1
  109. package/dist/es/node_modules/validator/lib/util/assertString.js.map +1 -0
  110. package/dist/es/{react-editor/node_modules → node_modules}/validator/lib/util/merge.js +1 -1
  111. package/dist/es/node_modules/validator/lib/util/merge.js.map +1 -0
  112. package/dist/es/nodes/image.js +1 -1
  113. package/dist/es/plugins/emoji/index.js +2 -0
  114. package/dist/es/plugins/emoji/index.js.map +1 -1
  115. package/dist/es/plugins/hashtag/index.js +2 -0
  116. package/dist/es/plugins/hashtag/index.js.map +1 -1
  117. package/dist/es/plugins/mentions/index.js +2 -0
  118. package/dist/es/plugins/mentions/index.js.map +1 -1
  119. package/dist/es/utils/prefix-class-name.js +1 -1
  120. package/package.json +3 -1
  121. package/dist/cjs/react-components/dist/es/_virtual/_commonjsHelpers.js +0 -8
  122. package/dist/cjs/react-components/dist/es/_virtual/_commonjsHelpers.js.map +0 -1
  123. package/dist/cjs/react-components/dist/es/_virtual/index.js +0 -6
  124. package/dist/cjs/react-components/dist/es/_virtual/index.js.map +0 -1
  125. package/dist/cjs/react-components/dist/es/_virtual/index2.js +0 -6
  126. package/dist/cjs/react-components/dist/es/_virtual/index2.js.map +0 -1
  127. package/dist/cjs/react-components/dist/es/_virtual/react-is.development.js +0 -6
  128. package/dist/cjs/react-components/dist/es/_virtual/react-is.development.js.map +0 -1
  129. package/dist/cjs/react-components/dist/es/_virtual/react-is.production.min.js +0 -6
  130. package/dist/cjs/react-components/dist/es/_virtual/react-is.production.min.js.map +0 -1
  131. package/dist/cjs/react-components/dist/es/box/box.js +0 -47
  132. package/dist/cjs/react-components/dist/es/box/box.js.map +0 -1
  133. package/dist/cjs/react-components/dist/es/button/button.js +0 -774
  134. package/dist/cjs/react-components/dist/es/button/button.js.map +0 -1
  135. package/dist/cjs/react-components/dist/es/button/icon-button.js +0 -77
  136. package/dist/cjs/react-components/dist/es/button/icon-button.js.map +0 -1
  137. package/dist/cjs/react-components/dist/es/button/side-element.js +0 -199
  138. package/dist/cjs/react-components/dist/es/button/side-element.js.map +0 -1
  139. package/dist/cjs/react-components/dist/es/button/utils.js +0 -105
  140. package/dist/cjs/react-components/dist/es/button/utils.js.map +0 -1
  141. package/dist/cjs/react-components/dist/es/dialog/dialog.js +0 -197
  142. package/dist/cjs/react-components/dist/es/dialog/dialog.js.map +0 -1
  143. package/dist/cjs/react-components/dist/es/dropdown/dropdown.js +0 -195
  144. package/dist/cjs/react-components/dist/es/dropdown/dropdown.js.map +0 -1
  145. package/dist/cjs/react-components/dist/es/flex/flex.js +0 -98
  146. package/dist/cjs/react-components/dist/es/flex/flex.js.map +0 -1
  147. package/dist/cjs/react-components/dist/es/form-helper-text/form-helper-text.js +0 -76
  148. package/dist/cjs/react-components/dist/es/form-helper-text/form-helper-text.js.map +0 -1
  149. package/dist/cjs/react-components/dist/es/form-label/form-label.js +0 -176
  150. package/dist/cjs/react-components/dist/es/form-label/form-label.js.map +0 -1
  151. package/dist/cjs/react-components/dist/es/input/form-input.js +0 -159
  152. package/dist/cjs/react-components/dist/es/input/form-input.js.map +0 -1
  153. package/dist/cjs/react-components/dist/es/input/input.js +0 -377
  154. package/dist/cjs/react-components/dist/es/input/input.js.map +0 -1
  155. package/dist/cjs/react-components/dist/es/link/link.js +0 -58
  156. package/dist/cjs/react-components/dist/es/link/link.js.map +0 -1
  157. package/dist/cjs/react-components/dist/es/loader/circle.js +0 -204
  158. package/dist/cjs/react-components/dist/es/loader/circle.js.map +0 -1
  159. package/dist/cjs/react-components/dist/es/loader/line.js +0 -130
  160. package/dist/cjs/react-components/dist/es/loader/line.js.map +0 -1
  161. package/dist/cjs/react-components/dist/es/node_modules/@babel/runtime/helpers/esm/extends.js +0 -21
  162. package/dist/cjs/react-components/dist/es/node_modules/@babel/runtime/helpers/esm/extends.js.map +0 -1
  163. package/dist/cjs/react-components/dist/es/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js +0 -14
  164. package/dist/cjs/react-components/dist/es/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js.map +0 -1
  165. package/dist/cjs/react-components/dist/es/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +0 -19
  166. package/dist/cjs/react-components/dist/es/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js.map +0 -1
  167. package/dist/cjs/react-components/dist/es/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js +0 -14
  168. package/dist/cjs/react-components/dist/es/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js.map +0 -1
  169. package/dist/cjs/react-components/dist/es/node_modules/@floating-ui/core/dist/floating-ui.core.js +0 -788
  170. package/dist/cjs/react-components/dist/es/node_modules/@floating-ui/core/dist/floating-ui.core.js.map +0 -1
  171. package/dist/cjs/react-components/dist/es/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +0 -612
  172. package/dist/cjs/react-components/dist/es/node_modules/@floating-ui/dom/dist/floating-ui.dom.js.map +0 -1
  173. package/dist/cjs/react-components/dist/es/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js +0 -299
  174. package/dist/cjs/react-components/dist/es/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js.map +0 -1
  175. package/dist/cjs/react-components/dist/es/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +0 -146
  176. package/dist/cjs/react-components/dist/es/node_modules/@floating-ui/utils/dist/floating-ui.utils.js.map +0 -1
  177. package/dist/cjs/react-components/dist/es/node_modules/@floating-ui/utils/dom/dist/floating-ui.utils.dom.js +0 -148
  178. package/dist/cjs/react-components/dist/es/node_modules/@floating-ui/utils/dom/dist/floating-ui.utils.dom.js.map +0 -1
  179. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/primitive/dist/index.js +0 -14
  180. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/primitive/dist/index.js.map +0 -1
  181. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-arrow/dist/index.js +0 -48
  182. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-arrow/dist/index.js.map +0 -1
  183. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-collection/dist/index.js +0 -71
  184. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-collection/dist/index.js.map +0 -1
  185. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-compose-refs/dist/index.js +0 -41
  186. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-compose-refs/dist/index.js.map +0 -1
  187. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-context/dist/index.js +0 -102
  188. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-context/dist/index.js.map +0 -1
  189. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-dialog/dist/index.js +0 -354
  190. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-dialog/dist/index.js.map +0 -1
  191. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-direction/dist/index.js +0 -33
  192. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-direction/dist/index.js.map +0 -1
  193. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-dismissable-layer/dist/index.js +0 -234
  194. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-dismissable-layer/dist/index.js.map +0 -1
  195. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-dropdown-menu/dist/index.js +0 -303
  196. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-dropdown-menu/dist/index.js.map +0 -1
  197. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-focus-guards/dist/index.js +0 -48
  198. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-focus-guards/dist/index.js.map +0 -1
  199. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-focus-scope/dist/index.js +0 -229
  200. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-focus-scope/dist/index.js.map +0 -1
  201. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-id/dist/index.js +0 -37
  202. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-id/dist/index.js.map +0 -1
  203. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-label/dist/index.js +0 -47
  204. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-label/dist/index.js.map +0 -1
  205. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-menu/dist/index.js +0 -847
  206. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-menu/dist/index.js.map +0 -1
  207. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-popper/dist/index.js +0 -309
  208. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-popper/dist/index.js.map +0 -1
  209. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-portal/dist/index.js +0 -39
  210. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-portal/dist/index.js.map +0 -1
  211. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-presence/dist/index.js +0 -142
  212. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-presence/dist/index.js.map +0 -1
  213. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-primitive/dist/index.js +0 -65
  214. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-primitive/dist/index.js.map +0 -1
  215. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-roving-focus/dist/index.js +0 -246
  216. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-roving-focus/dist/index.js.map +0 -1
  217. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-slot/dist/index.js +0 -104
  218. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-slot/dist/index.js.map +0 -1
  219. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-tooltip/dist/index.js +0 -509
  220. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-tooltip/dist/index.js.map +0 -1
  221. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-use-callback-ref/dist/index.js +0 -34
  222. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-use-callback-ref/dist/index.js.map +0 -1
  223. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-use-controllable-state/dist/index.js +0 -68
  224. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-use-controllable-state/dist/index.js.map +0 -1
  225. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-use-escape-keydown/dist/index.js +0 -40
  226. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-use-escape-keydown/dist/index.js.map +0 -1
  227. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-use-layout-effect/dist/index.js +0 -29
  228. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-use-layout-effect/dist/index.js.map +0 -1
  229. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-use-size/dist/index.js +0 -62
  230. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-use-size/dist/index.js.map +0 -1
  231. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-visually-hidden/dist/index.js +0 -58
  232. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-visually-hidden/dist/index.js.map +0 -1
  233. package/dist/cjs/react-components/dist/es/node_modules/@stitches/react/dist/index.js +0 -9
  234. package/dist/cjs/react-components/dist/es/node_modules/@stitches/react/dist/index.js.map +0 -1
  235. package/dist/cjs/react-components/dist/es/node_modules/aria-hidden/dist/es2015/index.js +0 -134
  236. package/dist/cjs/react-components/dist/es/node_modules/aria-hidden/dist/es2015/index.js.map +0 -1
  237. package/dist/cjs/react-components/dist/es/node_modules/dom-helpers/esm/addClass.js +0 -19
  238. package/dist/cjs/react-components/dist/es/node_modules/dom-helpers/esm/addClass.js.map +0 -1
  239. package/dist/cjs/react-components/dist/es/node_modules/dom-helpers/esm/hasClass.js +0 -17
  240. package/dist/cjs/react-components/dist/es/node_modules/dom-helpers/esm/hasClass.js.map +0 -1
  241. package/dist/cjs/react-components/dist/es/node_modules/dom-helpers/esm/removeClass.js +0 -27
  242. package/dist/cjs/react-components/dist/es/node_modules/dom-helpers/esm/removeClass.js.map +0 -1
  243. package/dist/cjs/react-components/dist/es/node_modules/get-nonce/dist/es2015/index.js +0 -11
  244. package/dist/cjs/react-components/dist/es/node_modules/get-nonce/dist/es2015/index.js.map +0 -1
  245. package/dist/cjs/react-components/dist/es/node_modules/object-assign/index.js +0 -102
  246. package/dist/cjs/react-components/dist/es/node_modules/object-assign/index.js.map +0 -1
  247. package/dist/cjs/react-components/dist/es/node_modules/prop-types/checkPropTypes.js +0 -118
  248. package/dist/cjs/react-components/dist/es/node_modules/prop-types/checkPropTypes.js.map +0 -1
  249. package/dist/cjs/react-components/dist/es/node_modules/prop-types/factoryWithThrowingShims.js +0 -77
  250. package/dist/cjs/react-components/dist/es/node_modules/prop-types/factoryWithThrowingShims.js.map +0 -1
  251. package/dist/cjs/react-components/dist/es/node_modules/prop-types/factoryWithTypeCheckers.js +0 -628
  252. package/dist/cjs/react-components/dist/es/node_modules/prop-types/factoryWithTypeCheckers.js.map +0 -1
  253. package/dist/cjs/react-components/dist/es/node_modules/prop-types/index.js +0 -35
  254. package/dist/cjs/react-components/dist/es/node_modules/prop-types/index.js.map +0 -1
  255. package/dist/cjs/react-components/dist/es/node_modules/prop-types/lib/ReactPropTypesSecret.js +0 -24
  256. package/dist/cjs/react-components/dist/es/node_modules/prop-types/lib/ReactPropTypesSecret.js.map +0 -1
  257. package/dist/cjs/react-components/dist/es/node_modules/prop-types/lib/has.js +0 -14
  258. package/dist/cjs/react-components/dist/es/node_modules/prop-types/lib/has.js.map +0 -1
  259. package/dist/cjs/react-components/dist/es/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js +0 -193
  260. package/dist/cjs/react-components/dist/es/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js.map +0 -1
  261. package/dist/cjs/react-components/dist/es/node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js +0 -29
  262. package/dist/cjs/react-components/dist/es/node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js.map +0 -1
  263. package/dist/cjs/react-components/dist/es/node_modules/prop-types/node_modules/react-is/index.js +0 -22
  264. package/dist/cjs/react-components/dist/es/node_modules/prop-types/node_modules/react-is/index.js.map +0 -1
  265. package/dist/cjs/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/Combination.js +0 -34
  266. package/dist/cjs/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/Combination.js.map +0 -1
  267. package/dist/cjs/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/SideEffect.js +0 -184
  268. package/dist/cjs/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/SideEffect.js.map +0 -1
  269. package/dist/cjs/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/UI.js +0 -60
  270. package/dist/cjs/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/UI.js.map +0 -1
  271. package/dist/cjs/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js +0 -24
  272. package/dist/cjs/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js.map +0 -1
  273. package/dist/cjs/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/handleScroll.js +0 -110
  274. package/dist/cjs/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/handleScroll.js.map +0 -1
  275. package/dist/cjs/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/medium.js +0 -8
  276. package/dist/cjs/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/medium.js.map +0 -1
  277. package/dist/cjs/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/sidecar.js +0 -12
  278. package/dist/cjs/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/sidecar.js.map +0 -1
  279. package/dist/cjs/react-components/dist/es/node_modules/react-remove-scroll-bar/dist/es2015/component.js +0 -80
  280. package/dist/cjs/react-components/dist/es/node_modules/react-remove-scroll-bar/dist/es2015/component.js.map +0 -1
  281. package/dist/cjs/react-components/dist/es/node_modules/react-remove-scroll-bar/dist/es2015/constants.js +0 -16
  282. package/dist/cjs/react-components/dist/es/node_modules/react-remove-scroll-bar/dist/es2015/constants.js.map +0 -1
  283. package/dist/cjs/react-components/dist/es/node_modules/react-remove-scroll-bar/dist/es2015/utils.js +0 -35
  284. package/dist/cjs/react-components/dist/es/node_modules/react-remove-scroll-bar/dist/es2015/utils.js.map +0 -1
  285. package/dist/cjs/react-components/dist/es/node_modules/react-style-singleton/dist/es2015/component.js +0 -22
  286. package/dist/cjs/react-components/dist/es/node_modules/react-style-singleton/dist/es2015/component.js.map +0 -1
  287. package/dist/cjs/react-components/dist/es/node_modules/react-style-singleton/dist/es2015/hook.js +0 -47
  288. package/dist/cjs/react-components/dist/es/node_modules/react-style-singleton/dist/es2015/hook.js.map +0 -1
  289. package/dist/cjs/react-components/dist/es/node_modules/react-style-singleton/dist/es2015/singleton.js +0 -54
  290. package/dist/cjs/react-components/dist/es/node_modules/react-style-singleton/dist/es2015/singleton.js.map +0 -1
  291. package/dist/cjs/react-components/dist/es/node_modules/react-transition-group/esm/CSSTransition.js +0 -419
  292. package/dist/cjs/react-components/dist/es/node_modules/react-transition-group/esm/CSSTransition.js.map +0 -1
  293. package/dist/cjs/react-components/dist/es/node_modules/react-transition-group/esm/Transition.js +0 -637
  294. package/dist/cjs/react-components/dist/es/node_modules/react-transition-group/esm/Transition.js.map +0 -1
  295. package/dist/cjs/react-components/dist/es/node_modules/react-transition-group/esm/TransitionGroupContext.js +0 -10
  296. package/dist/cjs/react-components/dist/es/node_modules/react-transition-group/esm/TransitionGroupContext.js.map +0 -1
  297. package/dist/cjs/react-components/dist/es/node_modules/react-transition-group/esm/config.js +0 -10
  298. package/dist/cjs/react-components/dist/es/node_modules/react-transition-group/esm/config.js.map +0 -1
  299. package/dist/cjs/react-components/dist/es/node_modules/react-transition-group/esm/utils/PropTypes.js +0 -25
  300. package/dist/cjs/react-components/dist/es/node_modules/react-transition-group/esm/utils/PropTypes.js.map +0 -1
  301. package/dist/cjs/react-components/dist/es/node_modules/react-transition-group/esm/utils/reflow.js +0 -8
  302. package/dist/cjs/react-components/dist/es/node_modules/react-transition-group/esm/utils/reflow.js.map +0 -1
  303. package/dist/cjs/react-components/dist/es/node_modules/tslib/tslib.es6.js +0 -55
  304. package/dist/cjs/react-components/dist/es/node_modules/tslib/tslib.es6.js.map +0 -1
  305. package/dist/cjs/react-components/dist/es/node_modules/use-callback-ref/dist/es2015/assignRef.js +0 -27
  306. package/dist/cjs/react-components/dist/es/node_modules/use-callback-ref/dist/es2015/assignRef.js.map +0 -1
  307. package/dist/cjs/react-components/dist/es/node_modules/use-callback-ref/dist/es2015/useMergeRef.js +0 -25
  308. package/dist/cjs/react-components/dist/es/node_modules/use-callback-ref/dist/es2015/useMergeRef.js.map +0 -1
  309. package/dist/cjs/react-components/dist/es/node_modules/use-callback-ref/dist/es2015/useRef.js +0 -45
  310. package/dist/cjs/react-components/dist/es/node_modules/use-callback-ref/dist/es2015/useRef.js.map +0 -1
  311. package/dist/cjs/react-components/dist/es/node_modules/use-sidecar/dist/es2015/exports.js +0 -43
  312. package/dist/cjs/react-components/dist/es/node_modules/use-sidecar/dist/es2015/exports.js.map +0 -1
  313. package/dist/cjs/react-components/dist/es/node_modules/use-sidecar/dist/es2015/medium.js +0 -80
  314. package/dist/cjs/react-components/dist/es/node_modules/use-sidecar/dist/es2015/medium.js.map +0 -1
  315. package/dist/cjs/react-components/dist/es/packages/react-components/node_modules/clsx/dist/clsx.js.map +0 -1
  316. package/dist/cjs/react-components/dist/es/packages/react-icons/dist/es/icons/info.js +0 -97
  317. package/dist/cjs/react-components/dist/es/packages/react-icons/dist/es/icons/info.js.map +0 -1
  318. package/dist/cjs/react-components/dist/es/stitches.config.js +0 -392
  319. package/dist/cjs/react-components/dist/es/stitches.config.js.map +0 -1
  320. package/dist/cjs/react-components/dist/es/text/text.js +0 -117
  321. package/dist/cjs/react-components/dist/es/text/text.js.map +0 -1
  322. package/dist/cjs/react-components/dist/es/tooltip/tooltip.js +0 -156
  323. package/dist/cjs/react-components/dist/es/tooltip/tooltip.js.map +0 -1
  324. package/dist/cjs/react-components/dist/es/utils/prefix-class-name.js +0 -10
  325. package/dist/cjs/react-components/dist/es/utils/prefix-class-name.js.map +0 -1
  326. package/dist/cjs/react-editor/node_modules/clsx/dist/clsx.js +0 -9
  327. package/dist/cjs/react-editor/node_modules/clsx/dist/clsx.js.map +0 -1
  328. package/dist/cjs/react-editor/node_modules/validator/es/lib/isFQDN.js.map +0 -1
  329. package/dist/cjs/react-editor/node_modules/validator/es/lib/isIP.js.map +0 -1
  330. package/dist/cjs/react-editor/node_modules/validator/es/lib/isURL.js.map +0 -1
  331. package/dist/cjs/react-editor/node_modules/validator/es/lib/util/assertString.js.map +0 -1
  332. package/dist/cjs/react-editor/node_modules/validator/es/lib/util/merge.js.map +0 -1
  333. package/dist/cjs/react-editor/node_modules/validator/lib/isFQDN.js.map +0 -1
  334. package/dist/cjs/react-editor/node_modules/validator/lib/isIP.js.map +0 -1
  335. package/dist/cjs/react-editor/node_modules/validator/lib/isURL.js.map +0 -1
  336. package/dist/cjs/react-editor/node_modules/validator/lib/util/assertString.js.map +0 -1
  337. package/dist/cjs/react-editor/node_modules/validator/lib/util/merge.js.map +0 -1
  338. package/dist/cjs/react-icons/dist/es/icons/bold.js +0 -86
  339. package/dist/cjs/react-icons/dist/es/icons/bold.js.map +0 -1
  340. package/dist/cjs/react-icons/dist/es/icons/close.js +0 -86
  341. package/dist/cjs/react-icons/dist/es/icons/close.js.map +0 -1
  342. package/dist/cjs/react-icons/dist/es/icons/code-block.js +0 -78
  343. package/dist/cjs/react-icons/dist/es/icons/code-block.js.map +0 -1
  344. package/dist/cjs/react-icons/dist/es/icons/code.js +0 -96
  345. package/dist/cjs/react-icons/dist/es/icons/code.js.map +0 -1
  346. package/dist/cjs/react-icons/dist/es/icons/delete.js +0 -116
  347. package/dist/cjs/react-icons/dist/es/icons/delete.js.map +0 -1
  348. package/dist/cjs/react-icons/dist/es/icons/italics.js +0 -96
  349. package/dist/cjs/react-icons/dist/es/icons/italics.js.map +0 -1
  350. package/dist/cjs/react-icons/dist/es/icons/link.js +0 -86
  351. package/dist/cjs/react-icons/dist/es/icons/link.js.map +0 -1
  352. package/dist/cjs/react-icons/dist/es/icons/ordered-list.js +0 -86
  353. package/dist/cjs/react-icons/dist/es/icons/ordered-list.js.map +0 -1
  354. package/dist/cjs/react-icons/dist/es/icons/pencil.js +0 -86
  355. package/dist/cjs/react-icons/dist/es/icons/pencil.js.map +0 -1
  356. package/dist/cjs/react-icons/dist/es/icons/text-align-center.js +0 -74
  357. package/dist/cjs/react-icons/dist/es/icons/text-align-center.js.map +0 -1
  358. package/dist/cjs/react-icons/dist/es/icons/text-align-justify.js +0 -74
  359. package/dist/cjs/react-icons/dist/es/icons/text-align-justify.js.map +0 -1
  360. package/dist/cjs/react-icons/dist/es/icons/text-align-left.js +0 -74
  361. package/dist/cjs/react-icons/dist/es/icons/text-align-left.js.map +0 -1
  362. package/dist/cjs/react-icons/dist/es/icons/text-align-right.js +0 -74
  363. package/dist/cjs/react-icons/dist/es/icons/text-align-right.js.map +0 -1
  364. package/dist/cjs/react-icons/dist/es/icons/text-format.js +0 -78
  365. package/dist/cjs/react-icons/dist/es/icons/text-format.js.map +0 -1
  366. package/dist/cjs/react-icons/dist/es/icons/underline.js +0 -77
  367. package/dist/cjs/react-icons/dist/es/icons/underline.js.map +0 -1
  368. package/dist/cjs/react-icons/dist/es/icons/unordered-list.js +0 -126
  369. package/dist/cjs/react-icons/dist/es/icons/unordered-list.js.map +0 -1
  370. package/dist/es/react-components/dist/es/_virtual/_commonjsHelpers.js +0 -6
  371. package/dist/es/react-components/dist/es/_virtual/_commonjsHelpers.js.map +0 -1
  372. package/dist/es/react-components/dist/es/_virtual/index.js +0 -4
  373. package/dist/es/react-components/dist/es/_virtual/index.js.map +0 -1
  374. package/dist/es/react-components/dist/es/_virtual/index2.js +0 -4
  375. package/dist/es/react-components/dist/es/_virtual/index2.js.map +0 -1
  376. package/dist/es/react-components/dist/es/_virtual/react-is.development.js +0 -4
  377. package/dist/es/react-components/dist/es/_virtual/react-is.development.js.map +0 -1
  378. package/dist/es/react-components/dist/es/_virtual/react-is.production.min.js +0 -4
  379. package/dist/es/react-components/dist/es/_virtual/react-is.production.min.js.map +0 -1
  380. package/dist/es/react-components/dist/es/box/box.js +0 -45
  381. package/dist/es/react-components/dist/es/box/box.js.map +0 -1
  382. package/dist/es/react-components/dist/es/button/button.js +0 -772
  383. package/dist/es/react-components/dist/es/button/button.js.map +0 -1
  384. package/dist/es/react-components/dist/es/button/icon-button.js +0 -75
  385. package/dist/es/react-components/dist/es/button/icon-button.js.map +0 -1
  386. package/dist/es/react-components/dist/es/button/side-element.js +0 -197
  387. package/dist/es/react-components/dist/es/button/side-element.js.map +0 -1
  388. package/dist/es/react-components/dist/es/button/utils.js +0 -100
  389. package/dist/es/react-components/dist/es/button/utils.js.map +0 -1
  390. package/dist/es/react-components/dist/es/dialog/dialog.js +0 -193
  391. package/dist/es/react-components/dist/es/dialog/dialog.js.map +0 -1
  392. package/dist/es/react-components/dist/es/dropdown/dropdown.js +0 -190
  393. package/dist/es/react-components/dist/es/dropdown/dropdown.js.map +0 -1
  394. package/dist/es/react-components/dist/es/flex/flex.js +0 -96
  395. package/dist/es/react-components/dist/es/flex/flex.js.map +0 -1
  396. package/dist/es/react-components/dist/es/form-helper-text/form-helper-text.js +0 -74
  397. package/dist/es/react-components/dist/es/form-helper-text/form-helper-text.js.map +0 -1
  398. package/dist/es/react-components/dist/es/form-label/form-label.js +0 -174
  399. package/dist/es/react-components/dist/es/form-label/form-label.js.map +0 -1
  400. package/dist/es/react-components/dist/es/input/form-input.js +0 -157
  401. package/dist/es/react-components/dist/es/input/form-input.js.map +0 -1
  402. package/dist/es/react-components/dist/es/input/input.js +0 -374
  403. package/dist/es/react-components/dist/es/input/input.js.map +0 -1
  404. package/dist/es/react-components/dist/es/link/link.js +0 -56
  405. package/dist/es/react-components/dist/es/link/link.js.map +0 -1
  406. package/dist/es/react-components/dist/es/loader/circle.js +0 -202
  407. package/dist/es/react-components/dist/es/loader/circle.js.map +0 -1
  408. package/dist/es/react-components/dist/es/loader/line.js +0 -128
  409. package/dist/es/react-components/dist/es/loader/line.js.map +0 -1
  410. package/dist/es/react-components/dist/es/node_modules/@babel/runtime/helpers/esm/extends.js +0 -17
  411. package/dist/es/react-components/dist/es/node_modules/@babel/runtime/helpers/esm/extends.js.map +0 -1
  412. package/dist/es/react-components/dist/es/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js +0 -10
  413. package/dist/es/react-components/dist/es/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js.map +0 -1
  414. package/dist/es/react-components/dist/es/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +0 -15
  415. package/dist/es/react-components/dist/es/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js.map +0 -1
  416. package/dist/es/react-components/dist/es/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js +0 -10
  417. package/dist/es/react-components/dist/es/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js.map +0 -1
  418. package/dist/es/react-components/dist/es/node_modules/@floating-ui/core/dist/floating-ui.core.js +0 -777
  419. package/dist/es/react-components/dist/es/node_modules/@floating-ui/core/dist/floating-ui.core.js.map +0 -1
  420. package/dist/es/react-components/dist/es/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +0 -600
  421. package/dist/es/react-components/dist/es/node_modules/@floating-ui/dom/dist/floating-ui.dom.js.map +0 -1
  422. package/dist/es/react-components/dist/es/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js +0 -269
  423. package/dist/es/react-components/dist/es/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js.map +0 -1
  424. package/dist/es/react-components/dist/es/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +0 -123
  425. package/dist/es/react-components/dist/es/node_modules/@floating-ui/utils/dist/floating-ui.utils.js.map +0 -1
  426. package/dist/es/react-components/dist/es/node_modules/@floating-ui/utils/dom/dist/floating-ui.utils.dom.js +0 -129
  427. package/dist/es/react-components/dist/es/node_modules/@floating-ui/utils/dom/dist/floating-ui.utils.dom.js.map +0 -1
  428. package/dist/es/react-components/dist/es/node_modules/@radix-ui/primitive/dist/index.js +0 -12
  429. package/dist/es/react-components/dist/es/node_modules/@radix-ui/primitive/dist/index.js.map +0 -1
  430. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-arrow/dist/index.js +0 -26
  431. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-arrow/dist/index.js.map +0 -1
  432. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-collection/dist/index.js +0 -69
  433. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-collection/dist/index.js.map +0 -1
  434. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-compose-refs/dist/index.js +0 -19
  435. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-compose-refs/dist/index.js.map +0 -1
  436. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-context/dist/index.js +0 -80
  437. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-context/dist/index.js.map +0 -1
  438. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-dialog/dist/index.js +0 -318
  439. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-dialog/dist/index.js.map +0 -1
  440. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-direction/dist/index.js +0 -12
  441. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-direction/dist/index.js.map +0 -1
  442. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-dismissable-layer/dist/index.js +0 -212
  443. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-dismissable-layer/dist/index.js.map +0 -1
  444. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-dropdown-menu/dist/index.js +0 -254
  445. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-dropdown-menu/dist/index.js.map +0 -1
  446. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-focus-guards/dist/index.js +0 -27
  447. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-focus-guards/dist/index.js.map +0 -1
  448. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-focus-scope/dist/index.js +0 -208
  449. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-focus-scope/dist/index.js.map +0 -1
  450. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-id/dist/index.js +0 -16
  451. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-id/dist/index.js.map +0 -1
  452. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-label/dist/index.js +0 -25
  453. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-label/dist/index.js.map +0 -1
  454. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-menu/dist/index.js +0 -796
  455. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-menu/dist/index.js.map +0 -1
  456. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-popper/dist/index.js +0 -280
  457. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-popper/dist/index.js.map +0 -1
  458. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-portal/dist/index.js +0 -18
  459. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-portal/dist/index.js.map +0 -1
  460. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-presence/dist/index.js +0 -120
  461. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-presence/dist/index.js.map +0 -1
  462. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-primitive/dist/index.js +0 -42
  463. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-primitive/dist/index.js.map +0 -1
  464. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-roving-focus/dist/index.js +0 -221
  465. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-roving-focus/dist/index.js.map +0 -1
  466. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-slot/dist/index.js +0 -82
  467. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-slot/dist/index.js.map +0 -1
  468. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-tooltip/dist/index.js +0 -476
  469. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-tooltip/dist/index.js.map +0 -1
  470. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-use-callback-ref/dist/index.js +0 -13
  471. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-use-callback-ref/dist/index.js.map +0 -1
  472. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-use-controllable-state/dist/index.js +0 -47
  473. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-use-controllable-state/dist/index.js.map +0 -1
  474. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-use-escape-keydown/dist/index.js +0 -19
  475. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-use-escape-keydown/dist/index.js.map +0 -1
  476. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-use-layout-effect/dist/index.js +0 -8
  477. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-use-layout-effect/dist/index.js.map +0 -1
  478. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-use-size/dist/index.js +0 -41
  479. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-use-size/dist/index.js.map +0 -1
  480. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-visually-hidden/dist/index.js +0 -36
  481. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-visually-hidden/dist/index.js.map +0 -1
  482. package/dist/es/react-components/dist/es/node_modules/@stitches/react/dist/index.js +0 -6
  483. package/dist/es/react-components/dist/es/node_modules/@stitches/react/dist/index.js.map +0 -1
  484. package/dist/es/react-components/dist/es/node_modules/aria-hidden/dist/es2015/index.js +0 -132
  485. package/dist/es/react-components/dist/es/node_modules/aria-hidden/dist/es2015/index.js.map +0 -1
  486. package/dist/es/react-components/dist/es/node_modules/dom-helpers/esm/addClass.js +0 -15
  487. package/dist/es/react-components/dist/es/node_modules/dom-helpers/esm/addClass.js.map +0 -1
  488. package/dist/es/react-components/dist/es/node_modules/dom-helpers/esm/hasClass.js +0 -13
  489. package/dist/es/react-components/dist/es/node_modules/dom-helpers/esm/hasClass.js.map +0 -1
  490. package/dist/es/react-components/dist/es/node_modules/dom-helpers/esm/removeClass.js +0 -23
  491. package/dist/es/react-components/dist/es/node_modules/dom-helpers/esm/removeClass.js.map +0 -1
  492. package/dist/es/react-components/dist/es/node_modules/get-nonce/dist/es2015/index.js +0 -9
  493. package/dist/es/react-components/dist/es/node_modules/get-nonce/dist/es2015/index.js.map +0 -1
  494. package/dist/es/react-components/dist/es/node_modules/object-assign/index.js +0 -100
  495. package/dist/es/react-components/dist/es/node_modules/object-assign/index.js.map +0 -1
  496. package/dist/es/react-components/dist/es/node_modules/prop-types/checkPropTypes.js +0 -116
  497. package/dist/es/react-components/dist/es/node_modules/prop-types/checkPropTypes.js.map +0 -1
  498. package/dist/es/react-components/dist/es/node_modules/prop-types/factoryWithThrowingShims.js +0 -75
  499. package/dist/es/react-components/dist/es/node_modules/prop-types/factoryWithThrowingShims.js.map +0 -1
  500. package/dist/es/react-components/dist/es/node_modules/prop-types/factoryWithTypeCheckers.js +0 -626
  501. package/dist/es/react-components/dist/es/node_modules/prop-types/factoryWithTypeCheckers.js.map +0 -1
  502. package/dist/es/react-components/dist/es/node_modules/prop-types/index.js +0 -31
  503. package/dist/es/react-components/dist/es/node_modules/prop-types/index.js.map +0 -1
  504. package/dist/es/react-components/dist/es/node_modules/prop-types/lib/ReactPropTypesSecret.js +0 -22
  505. package/dist/es/react-components/dist/es/node_modules/prop-types/lib/ReactPropTypesSecret.js.map +0 -1
  506. package/dist/es/react-components/dist/es/node_modules/prop-types/lib/has.js +0 -12
  507. package/dist/es/react-components/dist/es/node_modules/prop-types/lib/has.js.map +0 -1
  508. package/dist/es/react-components/dist/es/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js +0 -191
  509. package/dist/es/react-components/dist/es/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js.map +0 -1
  510. package/dist/es/react-components/dist/es/node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js +0 -27
  511. package/dist/es/react-components/dist/es/node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js.map +0 -1
  512. package/dist/es/react-components/dist/es/node_modules/prop-types/node_modules/react-is/index.js +0 -20
  513. package/dist/es/react-components/dist/es/node_modules/prop-types/node_modules/react-is/index.js.map +0 -1
  514. package/dist/es/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/Combination.js +0 -11
  515. package/dist/es/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/Combination.js.map +0 -1
  516. package/dist/es/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/SideEffect.js +0 -161
  517. package/dist/es/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/SideEffect.js.map +0 -1
  518. package/dist/es/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/UI.js +0 -39
  519. package/dist/es/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/UI.js.map +0 -1
  520. package/dist/es/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js +0 -22
  521. package/dist/es/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js.map +0 -1
  522. package/dist/es/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/handleScroll.js +0 -107
  523. package/dist/es/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/handleScroll.js.map +0 -1
  524. package/dist/es/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/medium.js +0 -6
  525. package/dist/es/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/medium.js.map +0 -1
  526. package/dist/es/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/sidecar.js +0 -8
  527. package/dist/es/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/sidecar.js.map +0 -1
  528. package/dist/es/react-components/dist/es/node_modules/react-remove-scroll-bar/dist/es2015/component.js +0 -57
  529. package/dist/es/react-components/dist/es/node_modules/react-remove-scroll-bar/dist/es2015/component.js.map +0 -1
  530. package/dist/es/react-components/dist/es/node_modules/react-remove-scroll-bar/dist/es2015/constants.js +0 -11
  531. package/dist/es/react-components/dist/es/node_modules/react-remove-scroll-bar/dist/es2015/constants.js.map +0 -1
  532. package/dist/es/react-components/dist/es/node_modules/react-remove-scroll-bar/dist/es2015/utils.js +0 -32
  533. package/dist/es/react-components/dist/es/node_modules/react-remove-scroll-bar/dist/es2015/utils.js.map +0 -1
  534. package/dist/es/react-components/dist/es/node_modules/react-style-singleton/dist/es2015/component.js +0 -20
  535. package/dist/es/react-components/dist/es/node_modules/react-style-singleton/dist/es2015/component.js.map +0 -1
  536. package/dist/es/react-components/dist/es/node_modules/react-style-singleton/dist/es2015/hook.js +0 -26
  537. package/dist/es/react-components/dist/es/node_modules/react-style-singleton/dist/es2015/hook.js.map +0 -1
  538. package/dist/es/react-components/dist/es/node_modules/react-style-singleton/dist/es2015/singleton.js +0 -52
  539. package/dist/es/react-components/dist/es/node_modules/react-style-singleton/dist/es2015/singleton.js.map +0 -1
  540. package/dist/es/react-components/dist/es/node_modules/react-transition-group/esm/CSSTransition.js +0 -415
  541. package/dist/es/react-components/dist/es/node_modules/react-transition-group/esm/CSSTransition.js.map +0 -1
  542. package/dist/es/react-components/dist/es/node_modules/react-transition-group/esm/Transition.js +0 -628
  543. package/dist/es/react-components/dist/es/node_modules/react-transition-group/esm/Transition.js.map +0 -1
  544. package/dist/es/react-components/dist/es/node_modules/react-transition-group/esm/TransitionGroupContext.js +0 -6
  545. package/dist/es/react-components/dist/es/node_modules/react-transition-group/esm/TransitionGroupContext.js.map +0 -1
  546. package/dist/es/react-components/dist/es/node_modules/react-transition-group/esm/config.js +0 -6
  547. package/dist/es/react-components/dist/es/node_modules/react-transition-group/esm/config.js.map +0 -1
  548. package/dist/es/react-components/dist/es/node_modules/react-transition-group/esm/utils/PropTypes.js +0 -22
  549. package/dist/es/react-components/dist/es/node_modules/react-transition-group/esm/utils/PropTypes.js.map +0 -1
  550. package/dist/es/react-components/dist/es/node_modules/react-transition-group/esm/utils/reflow.js +0 -6
  551. package/dist/es/react-components/dist/es/node_modules/react-transition-group/esm/utils/reflow.js.map +0 -1
  552. package/dist/es/react-components/dist/es/node_modules/tslib/tslib.es6.js +0 -52
  553. package/dist/es/react-components/dist/es/node_modules/tslib/tslib.es6.js.map +0 -1
  554. package/dist/es/react-components/dist/es/node_modules/use-callback-ref/dist/es2015/assignRef.js +0 -25
  555. package/dist/es/react-components/dist/es/node_modules/use-callback-ref/dist/es2015/assignRef.js.map +0 -1
  556. package/dist/es/react-components/dist/es/node_modules/use-callback-ref/dist/es2015/useMergeRef.js +0 -23
  557. package/dist/es/react-components/dist/es/node_modules/use-callback-ref/dist/es2015/useMergeRef.js.map +0 -1
  558. package/dist/es/react-components/dist/es/node_modules/use-callback-ref/dist/es2015/useRef.js +0 -43
  559. package/dist/es/react-components/dist/es/node_modules/use-callback-ref/dist/es2015/useRef.js.map +0 -1
  560. package/dist/es/react-components/dist/es/node_modules/use-sidecar/dist/es2015/exports.js +0 -22
  561. package/dist/es/react-components/dist/es/node_modules/use-sidecar/dist/es2015/exports.js.map +0 -1
  562. package/dist/es/react-components/dist/es/node_modules/use-sidecar/dist/es2015/medium.js +0 -78
  563. package/dist/es/react-components/dist/es/node_modules/use-sidecar/dist/es2015/medium.js.map +0 -1
  564. package/dist/es/react-components/dist/es/packages/react-components/node_modules/clsx/dist/clsx.js.map +0 -1
  565. package/dist/es/react-components/dist/es/packages/react-icons/dist/es/icons/info.js +0 -95
  566. package/dist/es/react-components/dist/es/packages/react-icons/dist/es/icons/info.js.map +0 -1
  567. package/dist/es/react-components/dist/es/stitches.config.js +0 -379
  568. package/dist/es/react-components/dist/es/stitches.config.js.map +0 -1
  569. package/dist/es/react-components/dist/es/text/text.js +0 -115
  570. package/dist/es/react-components/dist/es/text/text.js.map +0 -1
  571. package/dist/es/react-components/dist/es/tooltip/tooltip.js +0 -153
  572. package/dist/es/react-components/dist/es/tooltip/tooltip.js.map +0 -1
  573. package/dist/es/react-components/dist/es/utils/prefix-class-name.js +0 -8
  574. package/dist/es/react-components/dist/es/utils/prefix-class-name.js.map +0 -1
  575. package/dist/es/react-editor/node_modules/clsx/dist/clsx.js +0 -4
  576. package/dist/es/react-editor/node_modules/clsx/dist/clsx.js.map +0 -1
  577. package/dist/es/react-editor/node_modules/validator/es/lib/isFQDN.js.map +0 -1
  578. package/dist/es/react-editor/node_modules/validator/es/lib/isIP.js.map +0 -1
  579. package/dist/es/react-editor/node_modules/validator/es/lib/isURL.js.map +0 -1
  580. package/dist/es/react-editor/node_modules/validator/es/lib/util/assertString.js.map +0 -1
  581. package/dist/es/react-editor/node_modules/validator/es/lib/util/merge.js.map +0 -1
  582. package/dist/es/react-editor/node_modules/validator/lib/isFQDN.js.map +0 -1
  583. package/dist/es/react-editor/node_modules/validator/lib/isIP.js.map +0 -1
  584. package/dist/es/react-editor/node_modules/validator/lib/isURL.js.map +0 -1
  585. package/dist/es/react-editor/node_modules/validator/lib/util/assertString.js.map +0 -1
  586. package/dist/es/react-editor/node_modules/validator/lib/util/merge.js.map +0 -1
  587. package/dist/es/react-icons/dist/es/icons/bold.js +0 -84
  588. package/dist/es/react-icons/dist/es/icons/bold.js.map +0 -1
  589. package/dist/es/react-icons/dist/es/icons/close.js +0 -84
  590. package/dist/es/react-icons/dist/es/icons/close.js.map +0 -1
  591. package/dist/es/react-icons/dist/es/icons/code-block.js +0 -76
  592. package/dist/es/react-icons/dist/es/icons/code-block.js.map +0 -1
  593. package/dist/es/react-icons/dist/es/icons/code.js +0 -94
  594. package/dist/es/react-icons/dist/es/icons/code.js.map +0 -1
  595. package/dist/es/react-icons/dist/es/icons/delete.js +0 -114
  596. package/dist/es/react-icons/dist/es/icons/delete.js.map +0 -1
  597. package/dist/es/react-icons/dist/es/icons/italics.js +0 -94
  598. package/dist/es/react-icons/dist/es/icons/italics.js.map +0 -1
  599. package/dist/es/react-icons/dist/es/icons/link.js +0 -84
  600. package/dist/es/react-icons/dist/es/icons/link.js.map +0 -1
  601. package/dist/es/react-icons/dist/es/icons/ordered-list.js +0 -84
  602. package/dist/es/react-icons/dist/es/icons/ordered-list.js.map +0 -1
  603. package/dist/es/react-icons/dist/es/icons/pencil.js +0 -84
  604. package/dist/es/react-icons/dist/es/icons/pencil.js.map +0 -1
  605. package/dist/es/react-icons/dist/es/icons/text-align-center.js +0 -72
  606. package/dist/es/react-icons/dist/es/icons/text-align-center.js.map +0 -1
  607. package/dist/es/react-icons/dist/es/icons/text-align-justify.js +0 -72
  608. package/dist/es/react-icons/dist/es/icons/text-align-justify.js.map +0 -1
  609. package/dist/es/react-icons/dist/es/icons/text-align-left.js +0 -72
  610. package/dist/es/react-icons/dist/es/icons/text-align-left.js.map +0 -1
  611. package/dist/es/react-icons/dist/es/icons/text-align-right.js +0 -72
  612. package/dist/es/react-icons/dist/es/icons/text-align-right.js.map +0 -1
  613. package/dist/es/react-icons/dist/es/icons/text-format.js +0 -76
  614. package/dist/es/react-icons/dist/es/icons/text-format.js.map +0 -1
  615. package/dist/es/react-icons/dist/es/icons/underline.js +0 -75
  616. package/dist/es/react-icons/dist/es/icons/underline.js.map +0 -1
  617. package/dist/es/react-icons/dist/es/icons/unordered-list.js +0 -124
  618. package/dist/es/react-icons/dist/es/icons/unordered-list.js.map +0 -1
  619. /package/dist/cjs/{react-components/dist/es/packages/react-components/node_modules → node_modules}/clsx/dist/clsx.js +0 -0
  620. /package/dist/cjs/{react-editor/node_modules → node_modules}/validator/es/lib/isFQDN.js +0 -0
  621. /package/dist/cjs/{react-editor/node_modules → node_modules}/validator/es/lib/isIP.js +0 -0
  622. /package/dist/cjs/{react-editor/node_modules → node_modules}/validator/es/lib/isURL.js +0 -0
  623. /package/dist/cjs/{react-editor/node_modules → node_modules}/validator/es/lib/util/assertString.js +0 -0
  624. /package/dist/cjs/{react-editor/node_modules → node_modules}/validator/es/lib/util/merge.js +0 -0
  625. /package/dist/es/{react-components/dist/es/packages/react-components/node_modules → node_modules}/clsx/dist/clsx.js +0 -0
  626. /package/dist/es/{react-editor/node_modules → node_modules}/validator/es/lib/isFQDN.js +0 -0
  627. /package/dist/es/{react-editor/node_modules → node_modules}/validator/es/lib/isIP.js +0 -0
  628. /package/dist/es/{react-editor/node_modules → node_modules}/validator/es/lib/isURL.js +0 -0
  629. /package/dist/es/{react-editor/node_modules → node_modules}/validator/es/lib/util/assertString.js +0 -0
  630. /package/dist/es/{react-editor/node_modules → node_modules}/validator/es/lib/util/merge.js +0 -0
@@ -1,142 +0,0 @@
1
- 'use strict';
2
-
3
- var React = require('react');
4
- var ReactDOM__default = require('react-dom');
5
- var index = require('../../react-compose-refs/dist/index.js');
6
- var index$1 = require('../../react-use-layout-effect/dist/index.js');
7
-
8
- function _interopNamespaceDefault(e) {
9
- var n = Object.create(null);
10
- if (e) {
11
- Object.keys(e).forEach(function (k) {
12
- if (k !== 'default') {
13
- var d = Object.getOwnPropertyDescriptor(e, k);
14
- Object.defineProperty(n, k, d.get ? d : {
15
- enumerable: true,
16
- get: function () { return e[k]; }
17
- });
18
- }
19
- });
20
- }
21
- n.default = e;
22
- return Object.freeze(n);
23
- }
24
-
25
- var React__namespace = /*#__PURE__*/_interopNamespaceDefault(React);
26
- var ReactDOM__default__namespace = /*#__PURE__*/_interopNamespaceDefault(ReactDOM__default);
27
-
28
- function useStateMachine(initialState, machine) {
29
- return React__namespace.useReducer((state, event) => {
30
- const nextState = machine[state][event];
31
- return nextState ?? state;
32
- }, initialState);
33
- }
34
-
35
- // packages/react/presence/src/Presence.tsx
36
- var Presence = (props) => {
37
- const { present, children } = props;
38
- const presence = usePresence(present);
39
- const child = typeof children === "function" ? children({ present: presence.isPresent }) : React__namespace.Children.only(children);
40
- const ref = index.useComposedRefs(presence.ref, getElementRef(child));
41
- const forceMount = typeof children === "function";
42
- return forceMount || presence.isPresent ? React__namespace.cloneElement(child, { ref }) : null;
43
- };
44
- Presence.displayName = "Presence";
45
- function usePresence(present) {
46
- const [node, setNode] = React__namespace.useState();
47
- const stylesRef = React__namespace.useRef({});
48
- const prevPresentRef = React__namespace.useRef(present);
49
- const prevAnimationNameRef = React__namespace.useRef("none");
50
- const initialState = present ? "mounted" : "unmounted";
51
- const [state, send] = useStateMachine(initialState, {
52
- mounted: {
53
- UNMOUNT: "unmounted",
54
- ANIMATION_OUT: "unmountSuspended"
55
- },
56
- unmountSuspended: {
57
- MOUNT: "mounted",
58
- ANIMATION_END: "unmounted"
59
- },
60
- unmounted: {
61
- MOUNT: "mounted"
62
- }
63
- });
64
- React__namespace.useEffect(() => {
65
- const currentAnimationName = getAnimationName(stylesRef.current);
66
- prevAnimationNameRef.current = state === "mounted" ? currentAnimationName : "none";
67
- }, [state]);
68
- index$1.useLayoutEffect(() => {
69
- const styles = stylesRef.current;
70
- const wasPresent = prevPresentRef.current;
71
- const hasPresentChanged = wasPresent !== present;
72
- if (hasPresentChanged) {
73
- const prevAnimationName = prevAnimationNameRef.current;
74
- const currentAnimationName = getAnimationName(styles);
75
- if (present) {
76
- send("MOUNT");
77
- } else if (currentAnimationName === "none" || styles?.display === "none") {
78
- send("UNMOUNT");
79
- } else {
80
- const isAnimating = prevAnimationName !== currentAnimationName;
81
- if (wasPresent && isAnimating) {
82
- send("ANIMATION_OUT");
83
- } else {
84
- send("UNMOUNT");
85
- }
86
- }
87
- prevPresentRef.current = present;
88
- }
89
- }, [present, send]);
90
- index$1.useLayoutEffect(() => {
91
- if (node) {
92
- const handleAnimationEnd = (event) => {
93
- const currentAnimationName = getAnimationName(stylesRef.current);
94
- const isCurrentAnimation = currentAnimationName.includes(event.animationName);
95
- if (event.target === node && isCurrentAnimation) {
96
- ReactDOM__default__namespace.flushSync(() => send("ANIMATION_END"));
97
- }
98
- };
99
- const handleAnimationStart = (event) => {
100
- if (event.target === node) {
101
- prevAnimationNameRef.current = getAnimationName(stylesRef.current);
102
- }
103
- };
104
- node.addEventListener("animationstart", handleAnimationStart);
105
- node.addEventListener("animationcancel", handleAnimationEnd);
106
- node.addEventListener("animationend", handleAnimationEnd);
107
- return () => {
108
- node.removeEventListener("animationstart", handleAnimationStart);
109
- node.removeEventListener("animationcancel", handleAnimationEnd);
110
- node.removeEventListener("animationend", handleAnimationEnd);
111
- };
112
- } else {
113
- send("ANIMATION_END");
114
- }
115
- }, [node, send]);
116
- return {
117
- isPresent: ["mounted", "unmountSuspended"].includes(state),
118
- ref: React__namespace.useCallback((node2) => {
119
- if (node2) stylesRef.current = getComputedStyle(node2);
120
- setNode(node2);
121
- }, [])
122
- };
123
- }
124
- function getAnimationName(styles) {
125
- return styles?.animationName || "none";
126
- }
127
- function getElementRef(element) {
128
- let getter = Object.getOwnPropertyDescriptor(element.props, "ref")?.get;
129
- let mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
130
- if (mayWarn) {
131
- return element.ref;
132
- }
133
- getter = Object.getOwnPropertyDescriptor(element, "ref")?.get;
134
- mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
135
- if (mayWarn) {
136
- return element.props.ref;
137
- }
138
- return element.props.ref || element.ref;
139
- }
140
-
141
- exports.Presence = Presence;
142
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sources":["../../../../../../../../../../react-components/dist/es/node_modules/@radix-ui/react-presence/dist/index.js"],"sourcesContent":["import * as React from 'react';\nimport * as ReactDOM from 'react-dom';\nimport { useComposedRefs } from '../../react-compose-refs/dist/index.js';\nimport { useLayoutEffect as useLayoutEffect2 } from '../../react-use-layout-effect/dist/index.js';\n\nfunction useStateMachine(initialState, machine) {\n return React.useReducer((state, event) => {\n const nextState = machine[state][event];\n return nextState ?? state;\n }, initialState);\n}\n\n// packages/react/presence/src/Presence.tsx\nvar Presence = (props) => {\n const { present, children } = props;\n const presence = usePresence(present);\n const child = typeof children === \"function\" ? children({ present: presence.isPresent }) : React.Children.only(children);\n const ref = useComposedRefs(presence.ref, getElementRef(child));\n const forceMount = typeof children === \"function\";\n return forceMount || presence.isPresent ? React.cloneElement(child, { ref }) : null;\n};\nPresence.displayName = \"Presence\";\nfunction usePresence(present) {\n const [node, setNode] = React.useState();\n const stylesRef = React.useRef({});\n const prevPresentRef = React.useRef(present);\n const prevAnimationNameRef = React.useRef(\"none\");\n const initialState = present ? \"mounted\" : \"unmounted\";\n const [state, send] = useStateMachine(initialState, {\n mounted: {\n UNMOUNT: \"unmounted\",\n ANIMATION_OUT: \"unmountSuspended\"\n },\n unmountSuspended: {\n MOUNT: \"mounted\",\n ANIMATION_END: \"unmounted\"\n },\n unmounted: {\n MOUNT: \"mounted\"\n }\n });\n React.useEffect(() => {\n const currentAnimationName = getAnimationName(stylesRef.current);\n prevAnimationNameRef.current = state === \"mounted\" ? currentAnimationName : \"none\";\n }, [state]);\n useLayoutEffect2(() => {\n const styles = stylesRef.current;\n const wasPresent = prevPresentRef.current;\n const hasPresentChanged = wasPresent !== present;\n if (hasPresentChanged) {\n const prevAnimationName = prevAnimationNameRef.current;\n const currentAnimationName = getAnimationName(styles);\n if (present) {\n send(\"MOUNT\");\n } else if (currentAnimationName === \"none\" || styles?.display === \"none\") {\n send(\"UNMOUNT\");\n } else {\n const isAnimating = prevAnimationName !== currentAnimationName;\n if (wasPresent && isAnimating) {\n send(\"ANIMATION_OUT\");\n } else {\n send(\"UNMOUNT\");\n }\n }\n prevPresentRef.current = present;\n }\n }, [present, send]);\n useLayoutEffect2(() => {\n if (node) {\n const handleAnimationEnd = (event) => {\n const currentAnimationName = getAnimationName(stylesRef.current);\n const isCurrentAnimation = currentAnimationName.includes(event.animationName);\n if (event.target === node && isCurrentAnimation) {\n ReactDOM.flushSync(() => send(\"ANIMATION_END\"));\n }\n };\n const handleAnimationStart = (event) => {\n if (event.target === node) {\n prevAnimationNameRef.current = getAnimationName(stylesRef.current);\n }\n };\n node.addEventListener(\"animationstart\", handleAnimationStart);\n node.addEventListener(\"animationcancel\", handleAnimationEnd);\n node.addEventListener(\"animationend\", handleAnimationEnd);\n return () => {\n node.removeEventListener(\"animationstart\", handleAnimationStart);\n node.removeEventListener(\"animationcancel\", handleAnimationEnd);\n node.removeEventListener(\"animationend\", handleAnimationEnd);\n };\n } else {\n send(\"ANIMATION_END\");\n }\n }, [node, send]);\n return {\n isPresent: [\"mounted\", \"unmountSuspended\"].includes(state),\n ref: React.useCallback((node2) => {\n if (node2) stylesRef.current = getComputedStyle(node2);\n setNode(node2);\n }, [])\n };\n}\nfunction getAnimationName(styles) {\n return styles?.animationName || \"none\";\n}\nfunction getElementRef(element) {\n let getter = Object.getOwnPropertyDescriptor(element.props, \"ref\")?.get;\n let mayWarn = getter && \"isReactWarning\" in getter && getter.isReactWarning;\n if (mayWarn) {\n return element.ref;\n }\n getter = Object.getOwnPropertyDescriptor(element, \"ref\")?.get;\n mayWarn = getter && \"isReactWarning\" in getter && getter.isReactWarning;\n if (mayWarn) {\n return element.props.ref;\n }\n return element.props.ref || element.ref;\n}\n\nexport { Presence };\n//# sourceMappingURL=index.js.map\n"],"names":["React","useComposedRefs","useLayoutEffect2","ReactDOM"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAKA,SAAS,eAAe,CAAC,YAAY,EAAE,OAAO,EAAE;AAChD,EAAE,OAAOA,gBAAK,CAAC,UAAU,CAAC,CAAC,KAAK,EAAE,KAAK,KAAK;AAC5C,IAAI,MAAM,SAAS,GAAG,OAAO,CAAC,KAAK,CAAC,CAAC,KAAK,CAAC;AAC3C,IAAI,OAAO,SAAS,IAAI,KAAK;AAC7B,GAAG,EAAE,YAAY,CAAC;AAClB;;AAEA;AACG,IAAC,QAAQ,GAAG,CAAC,KAAK,KAAK;AAC1B,EAAE,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,GAAG,KAAK;AACrC,EAAE,MAAM,QAAQ,GAAG,WAAW,CAAC,OAAO,CAAC;AACvC,EAAE,MAAM,KAAK,GAAG,OAAO,QAAQ,KAAK,UAAU,GAAG,QAAQ,CAAC,EAAE,OAAO,EAAE,QAAQ,CAAC,SAAS,EAAE,CAAC,GAAGA,gBAAK,CAAC,QAAQ,CAAC,IAAI,CAAC,QAAQ,CAAC;AAC1H,EAAE,MAAM,GAAG,GAAGC,qBAAe,CAAC,QAAQ,CAAC,GAAG,EAAE,aAAa,CAAC,KAAK,CAAC,CAAC;AACjE,EAAE,MAAM,UAAU,GAAG,OAAO,QAAQ,KAAK,UAAU;AACnD,EAAE,OAAO,UAAU,IAAI,QAAQ,CAAC,SAAS,GAAGD,gBAAK,CAAC,YAAY,CAAC,KAAK,EAAE,EAAE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cAAc;AAC7E,EAAE,IAAI,OAAO,EAAE;AACf,IAAI,OAAO,OAAO,CAAC,GAAG;AACtB;AACA,EAAE,MAAM,GAAG,MAAM,CAAC,wBAAwB,CAAC,OAAO,EAAE,KAAK,CAAC,EAAE,GAAG;AAC/D,EAAE,OAAO,GAAG,MAAM,IAAI,gBAAgB,IAAI,MAAM,IAAI,MAAM,CAAC,cAAc;AACzE,EAAE,IAAI,OAAO,EAAE;AACf,IAAI,OAAO,OAAO,CAAC,KAAK,CAAC,GAAG;AAC5B;AACA,EAAE,OAAO,OAAO,CAAC,KAAK,CAAC,GAAG,IAAI,OAAO,CAAC,GAAG;AACzC;;;;","x_google_ignoreList":[0]}
@@ -1,65 +0,0 @@
1
- 'use strict';
2
-
3
- var React = require('react');
4
- var ReactDOM__default = require('react-dom');
5
- var index = require('../../react-slot/dist/index.js');
6
- var jsxRuntime = require('react/jsx-runtime');
7
-
8
- function _interopNamespaceDefault(e) {
9
- var n = Object.create(null);
10
- if (e) {
11
- Object.keys(e).forEach(function (k) {
12
- if (k !== 'default') {
13
- var d = Object.getOwnPropertyDescriptor(e, k);
14
- Object.defineProperty(n, k, d.get ? d : {
15
- enumerable: true,
16
- get: function () { return e[k]; }
17
- });
18
- }
19
- });
20
- }
21
- n.default = e;
22
- return Object.freeze(n);
23
- }
24
-
25
- var React__namespace = /*#__PURE__*/_interopNamespaceDefault(React);
26
- var ReactDOM__default__namespace = /*#__PURE__*/_interopNamespaceDefault(ReactDOM__default);
27
-
28
- // packages/react/primitive/src/Primitive.tsx
29
- var NODES = [
30
- "a",
31
- "button",
32
- "div",
33
- "form",
34
- "h2",
35
- "h3",
36
- "img",
37
- "input",
38
- "label",
39
- "li",
40
- "nav",
41
- "ol",
42
- "p",
43
- "span",
44
- "svg",
45
- "ul"
46
- ];
47
- var Primitive = NODES.reduce((primitive, node) => {
48
- const Node = React__namespace.forwardRef((props, forwardedRef) => {
49
- const { asChild, ...primitiveProps } = props;
50
- const Comp = asChild ? index.Slot : node;
51
- if (typeof window !== "undefined") {
52
- window[Symbol.for("radix-ui")] = true;
53
- }
54
- return /* @__PURE__ */ jsxRuntime.jsx(Comp, { ...primitiveProps, ref: forwardedRef });
55
- });
56
- Node.displayName = `Primitive.${node}`;
57
- return { ...primitive, [node]: Node };
58
- }, {});
59
- function dispatchDiscreteCustomEvent(target, event) {
60
- if (target) ReactDOM__default__namespace.flushSync(() => target.dispatchEvent(event));
61
- }
62
-
63
- exports.Primitive = Primitive;
64
- exports.dispatchDiscreteCustomEvent = dispatchDiscreteCustomEvent;
65
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sources":["../../../../../../../../../../react-components/dist/es/node_modules/@radix-ui/react-primitive/dist/index.js"],"sourcesContent":["import * as React from 'react';\nimport * as ReactDOM from 'react-dom';\nimport { Slot } from '../../react-slot/dist/index.js';\nimport { jsx } from 'react/jsx-runtime';\n\n// packages/react/primitive/src/Primitive.tsx\nvar NODES = [\n \"a\",\n \"button\",\n \"div\",\n \"form\",\n \"h2\",\n \"h3\",\n \"img\",\n \"input\",\n \"label\",\n \"li\",\n \"nav\",\n \"ol\",\n \"p\",\n \"span\",\n \"svg\",\n \"ul\"\n];\nvar Primitive = NODES.reduce((primitive, node) => {\n const Node = React.forwardRef((props, forwardedRef) => {\n const { asChild, ...primitiveProps } = props;\n const Comp = asChild ? Slot : node;\n if (typeof window !== \"undefined\") {\n window[Symbol.for(\"radix-ui\")] = true;\n }\n return /* @__PURE__ */ jsx(Comp, { ...primitiveProps, ref: forwardedRef });\n });\n Node.displayName = `Primitive.${node}`;\n return { ...primitive, [node]: Node };\n}, {});\nfunction dispatchDiscreteCustomEvent(target, event) {\n if (target) ReactDOM.flushSync(() => target.dispatchEvent(event));\n}\n\nexport { Primitive, dispatchDiscreteCustomEvent };\n//# sourceMappingURL=index.js.map\n"],"names":["React","Slot","jsx","ReactDOM"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAKA;AACA,IA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require('react');
4
- var index$4 = require('../../primitive/dist/index.js');
5
- var index$1 = require('../../react-collection/dist/index.js');
6
- var index$5 = require('../../react-compose-refs/dist/index.js');
7
- var index = require('../../react-context/dist/index.js');
8
- var index$2 = require('../../react-id/dist/index.js');
9
- var index$3 = require('../../react-primitive/dist/index.js');
10
- var index$8 = require('../../react-use-callback-ref/dist/index.js');
11
- var index$7 = require('../../react-use-controllable-state/dist/index.js');
12
- var index$6 = require('../../react-direction/dist/index.js');
13
- var jsxRuntime = require('react/jsx-runtime');
14
-
15
- function _interopNamespaceDefault(e) {
16
- var n = Object.create(null);
17
- if (e) {
18
- Object.keys(e).forEach(function (k) {
19
- if (k !== 'default') {
20
- var d = Object.getOwnPropertyDescriptor(e, k);
21
- Object.defineProperty(n, k, d.get ? d : {
22
- enumerable: true,
23
- get: function () { return e[k]; }
24
- });
25
- }
26
- });
27
- }
28
- n.default = e;
29
- return Object.freeze(n);
30
- }
31
-
32
- var React__namespace = /*#__PURE__*/_interopNamespaceDefault(React);
33
-
34
- var ENTRY_FOCUS = "rovingFocusGroup.onEntryFocus";
35
- var EVENT_OPTIONS = { bubbles: false, cancelable: true };
36
- var GROUP_NAME = "RovingFocusGroup";
37
- var [Collection, useCollection, createCollectionScope] = index$1.createCollection(GROUP_NAME);
38
- var [createRovingFocusGroupContext, createRovingFocusGroupScope] = index.createContextScope(
39
- GROUP_NAME,
40
- [createCollectionScope]
41
- );
42
- var [RovingFocusProvider, useRovingFocusContext] = createRovingFocusGroupContext(GROUP_NAME);
43
- var RovingFocusGroup = React__namespace.forwardRef(
44
- (props, forwardedRef) => {
45
- return /* @__PURE__ */ jsxRuntime.jsx(Collection.Provider, { scope: props.__scopeRovingFocusGroup, children: /* @__PURE__ */ jsxRuntime.jsx(Collection.Slot, { scope: props.__scopeRovingFocusGroup, children: /* @__PURE__ */ jsxRuntime.jsx(RovingFocusGroupImpl, { ...props, ref: forwardedRef }) }) });
46
- }
47
- );
48
- RovingFocusGroup.displayName = GROUP_NAME;
49
- var RovingFocusGroupImpl = React__namespace.forwardRef((props, forwardedRef) => {
50
- const {
51
- __scopeRovingFocusGroup,
52
- orientation,
53
- loop = false,
54
- dir,
55
- currentTabStopId: currentTabStopIdProp,
56
- defaultCurrentTabStopId,
57
- onCurrentTabStopIdChange,
58
- onEntryFocus,
59
- preventScrollOnEntryFocus = false,
60
- ...groupProps
61
- } = props;
62
- const ref = React__namespace.useRef(null);
63
- const composedRefs = index$5.useComposedRefs(forwardedRef, ref);
64
- const direction = index$6.useDirection(dir);
65
- const [currentTabStopId = null, setCurrentTabStopId] = index$7.useControllableState({
66
- prop: currentTabStopIdProp,
67
- defaultProp: defaultCurrentTabStopId,
68
- onChange: onCurrentTabStopIdChange
69
- });
70
- const [isTabbingBackOut, setIsTabbingBackOut] = React__namespace.useState(false);
71
- const handleEntryFocus = index$8.useCallbackRef(onEntryFocus);
72
- const getItems = useCollection(__scopeRovingFocusGroup);
73
- const isClickFocusRef = React__namespace.useRef(false);
74
- const [focusableItemsCount, setFocusableItemsCount] = React__namespace.useState(0);
75
- React__namespace.useEffect(() => {
76
- const node = ref.current;
77
- if (node) {
78
- node.addEventListener(ENTRY_FOCUS, handleEntryFocus);
79
- return () => node.removeEventListener(ENTRY_FOCUS, handleEntryFocus);
80
- }
81
- }, [handleEntryFocus]);
82
- return /* @__PURE__ */ jsxRuntime.jsx(
83
- RovingFocusProvider,
84
- {
85
- scope: __scopeRovingFocusGroup,
86
- orientation,
87
- dir: direction,
88
- loop,
89
- currentTabStopId,
90
- onItemFocus: React__namespace.useCallback(
91
- (tabStopId) => setCurrentTabStopId(tabStopId),
92
- [setCurrentTabStopId]
93
- ),
94
- onItemShiftTab: React__namespace.useCallback(() => setIsTabbingBackOut(true), []),
95
- onFocusableItemAdd: React__namespace.useCallback(
96
- () => setFocusableItemsCount((prevCount) => prevCount + 1),
97
- []
98
- ),
99
- onFocusableItemRemove: React__namespace.useCallback(
100
- () => setFocusableItemsCount((prevCount) => prevCount - 1),
101
- []
102
- ),
103
- children: /* @__PURE__ */ jsxRuntime.jsx(
104
- index$3.Primitive.div,
105
- {
106
- tabIndex: isTabbingBackOut || focusableItemsCount === 0 ? -1 : 0,
107
- "data-orientation": orientation,
108
- ...groupProps,
109
- ref: composedRefs,
110
- style: { outline: "none", ...props.style },
111
- onMouseDown: index$4.composeEventHandlers(props.onMouseDown, () => {
112
- isClickFocusRef.current = true;
113
- }),
114
- onFocus: index$4.composeEventHandlers(props.onFocus, (event) => {
115
- const isKeyboardFocus = !isClickFocusRef.current;
116
- if (event.target === event.currentTarget && isKeyboardFocus && !isTabbingBackOut) {
117
- const entryFocusEvent = new CustomEvent(ENTRY_FOCUS, EVENT_OPTIONS);
118
- event.currentTarget.dispatchEvent(entryFocusEvent);
119
- if (!entryFocusEvent.defaultPrevented) {
120
- const items = getItems().filter((item) => item.focusable);
121
- const activeItem = items.find((item) => item.active);
122
- const currentItem = items.find((item) => item.id === currentTabStopId);
123
- const candidateItems = [activeItem, currentItem, ...items].filter(
124
- Boolean
125
- );
126
- const candidateNodes = candidateItems.map((item) => item.ref.current);
127
- focusFirst(candidateNodes, preventScrollOnEntryFocus);
128
- }
129
- }
130
- isClickFocusRef.current = false;
131
- }),
132
- onBlur: index$4.composeEventHandlers(props.onBlur, () => setIsTabbingBackOut(false))
133
- }
134
- )
135
- }
136
- );
137
- });
138
- var ITEM_NAME = "RovingFocusGroupItem";
139
- var RovingFocusGroupItem = React__namespace.forwardRef(
140
- (props, forwardedRef) => {
141
- const {
142
- __scopeRovingFocusGroup,
143
- focusable = true,
144
- active = false,
145
- tabStopId,
146
- ...itemProps
147
- } = props;
148
- const autoId = index$2.useId();
149
- const id = tabStopId || autoId;
150
- const context = useRovingFocusContext(ITEM_NAME, __scopeRovingFocusGroup);
151
- const isCurrentTabStop = context.currentTabStopId === id;
152
- const getItems = useCollection(__scopeRovingFocusGroup);
153
- const { onFocusableItemAdd, onFocusableItemRemove } = context;
154
- React__namespace.useEffect(() => {
155
- if (focusable) {
156
- onFocusableItemAdd();
157
- return () => onFocusableItemRemove();
158
- }
159
- }, [focusable, onFocusableItemAdd, onFocusableItemRemove]);
160
- return /* @__PURE__ */ jsxRuntime.jsx(
161
- Collection.ItemSlot,
162
- {
163
- scope: __scopeRovingFocusGroup,
164
- id,
165
- focusable,
166
- active,
167
- children: /* @__PURE__ */ jsxRuntime.jsx(
168
- index$3.Primitive.span,
169
- {
170
- tabIndex: isCurrentTabStop ? 0 : -1,
171
- "data-orientation": context.orientation,
172
- ...itemProps,
173
- ref: forwardedRef,
174
- onMouseDown: index$4.composeEventHandlers(props.onMouseDown, (event) => {
175
- if (!focusable) event.preventDefault();
176
- else context.onItemFocus(id);
177
- }),
178
- onFocus: index$4.composeEventHandlers(props.onFocus, () => context.onItemFocus(id)),
179
- onKeyDown: index$4.composeEventHandlers(props.onKeyDown, (event) => {
180
- if (event.key === "Tab" && event.shiftKey) {
181
- context.onItemShiftTab();
182
- return;
183
- }
184
- if (event.target !== event.currentTarget) return;
185
- const focusIntent = getFocusIntent(event, context.orientation, context.dir);
186
- if (focusIntent !== void 0) {
187
- if (event.metaKey || event.ctrlKey || event.altKey || event.shiftKey) return;
188
- event.preventDefault();
189
- const items = getItems().filter((item) => item.focusable);
190
- let candidateNodes = items.map((item) => item.ref.current);
191
- if (focusIntent === "last") candidateNodes.reverse();
192
- else if (focusIntent === "prev" || focusIntent === "next") {
193
- if (focusIntent === "prev") candidateNodes.reverse();
194
- const currentIndex = candidateNodes.indexOf(event.currentTarget);
195
- candidateNodes = context.loop ? wrapArray(candidateNodes, currentIndex + 1) : candidateNodes.slice(currentIndex + 1);
196
- }
197
- setTimeout(() => focusFirst(candidateNodes));
198
- }
199
- })
200
- }
201
- )
202
- }
203
- );
204
- }
205
- );
206
- RovingFocusGroupItem.displayName = ITEM_NAME;
207
- var MAP_KEY_TO_FOCUS_INTENT = {
208
- ArrowLeft: "prev",
209
- ArrowUp: "prev",
210
- ArrowRight: "next",
211
- ArrowDown: "next",
212
- PageUp: "first",
213
- Home: "first",
214
- PageDown: "last",
215
- End: "last"
216
- };
217
- function getDirectionAwareKey(key, dir) {
218
- if (dir !== "rtl") return key;
219
- return key === "ArrowLeft" ? "ArrowRight" : key === "ArrowRight" ? "ArrowLeft" : key;
220
- }
221
- function getFocusIntent(event, orientation, dir) {
222
- const key = getDirectionAwareKey(event.key, dir);
223
- if (orientation === "vertical" && ["ArrowLeft", "ArrowRight"].includes(key)) return void 0;
224
- if (orientation === "horizontal" && ["ArrowUp", "ArrowDown"].includes(key)) return void 0;
225
- return MAP_KEY_TO_FOCUS_INTENT[key];
226
- }
227
- function focusFirst(candidates, preventScroll = false) {
228
- const PREVIOUSLY_FOCUSED_ELEMENT = document.activeElement;
229
- for (const candidate of candidates) {
230
- if (candidate === PREVIOUSLY_FOCUSED_ELEMENT) return;
231
- candidate.focus({ preventScroll });
232
- if (document.activeElement !== PREVIOUSLY_FOCUSED_ELEMENT) return;
233
- }
234
- }
235
- function wrapArray(array, startIndex) {
236
- return array.map((_, index) => array[(startIndex + index) % array.length]);
237
- }
238
- var Root = RovingFocusGroup;
239
- var Item = RovingFocusGroupItem;
240
-
241
- exports.Item = Item;
242
- exports.Root = Root;
243
- exports.RovingFocusGroup = RovingFocusGroup;
244
- exports.RovingFocusGroupItem = RovingFocusGroupItem;
245
- exports.createRovingFocusGroupScope = createRovingFocusGroupScope;
246
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sources":["../../../../../../../../../../react-components/dist/es/node_modules/@radix-ui/react-roving-focus/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 } from '../../react-compose-refs/dist/index.js';\nimport { createContextScope } from '../../react-context/dist/index.js';\nimport { useId } from '../../react-id/dist/index.js';\nimport { Primitive } from '../../react-primitive/dist/index.js';\nimport { useCallbackRef } from '../../react-use-callback-ref/dist/index.js';\nimport { useControllableState } from '../../react-use-controllable-state/dist/index.js';\nimport { useDirection } from '../../react-direction/dist/index.js';\nimport { jsx } from 'react/jsx-runtime';\n\nvar ENTRY_FOCUS = \"rovingFocusGroup.onEntryFocus\";\nvar EVENT_OPTIONS = { bubbles: false, cancelable: true };\nvar GROUP_NAME = \"RovingFocusGroup\";\nvar [Collection, useCollection, createCollectionScope] = createCollection(GROUP_NAME);\nvar [createRovingFocusGroupContext, createRovingFocusGroupScope] = createContextScope(\n GROUP_NAME,\n [createCollectionScope]\n);\nvar [RovingFocusProvider, useRovingFocusContext] = createRovingFocusGroupContext(GROUP_NAME);\nvar RovingFocusGroup = React.forwardRef(\n (props, forwardedRef) => {\n return /* @__PURE__ */ jsx(Collection.Provider, { scope: props.__scopeRovingFocusGroup, children: /* @__PURE__ */ jsx(Collection.Slot, { scope: props.__scopeRovingFocusGroup, children: /* @__PURE__ */ jsx(RovingFocusGroupImpl, { ...props, ref: forwardedRef }) }) });\n }\n);\nRovingFocusGroup.displayName = GROUP_NAME;\nvar RovingFocusGroupImpl = React.forwardRef((props, forwardedRef) => {\n const {\n __scopeRovingFocusGroup,\n orientation,\n loop = false,\n dir,\n currentTabStopId: currentTabStopIdProp,\n defaultCurrentTabStopId,\n onCurrentTabStopIdChange,\n onEntryFocus,\n preventScrollOnEntryFocus = false,\n ...groupProps\n } = props;\n const ref = React.useRef(null);\n const composedRefs = useComposedRefs(forwardedRef, ref);\n const direction = useDirection(dir);\n const [currentTabStopId = null, setCurrentTabStopId] = useControllableState({\n prop: currentTabStopIdProp,\n defaultProp: defaultCurrentTabStopId,\n onChange: onCurrentTabStopIdChange\n });\n const [isTabbingBackOut, setIsTabbingBackOut] = React.useState(false);\n const handleEntryFocus = useCallbackRef(onEntryFocus);\n const getItems = useCollection(__scopeRovingFocusGroup);\n const isClickFocusRef = React.useRef(false);\n const [focusableItemsCount, setFocusableItemsCount] = React.useState(0);\n React.useEffect(() => {\n const node = ref.current;\n if (node) {\n node.addEventListener(ENTRY_FOCUS, handleEntryFocus);\n return () => node.removeEventListener(ENTRY_FOCUS, handleEntryFocus);\n }\n }, [handleEntryFocus]);\n return /* @__PURE__ */ jsx(\n RovingFocusProvider,\n {\n scope: __scopeRovingFocusGroup,\n orientation,\n dir: direction,\n loop,\n currentTabStopId,\n onItemFocus: React.useCallback(\n (tabStopId) => setCurrentTabStopId(tabStopId),\n [setCurrentTabStopId]\n ),\n onItemShiftTab: React.useCallback(() => setIsTabbingBackOut(true), []),\n onFocusableItemAdd: React.useCallback(\n () => setFocusableItemsCount((prevCount) => prevCount + 1),\n []\n ),\n onFocusableItemRemove: React.useCallback(\n () => setFocusableItemsCount((prevCount) => prevCount - 1),\n []\n ),\n children: /* @__PURE__ */ jsx(\n Primitive.div,\n {\n tabIndex: isTabbingBackOut || focusableItemsCount === 0 ? -1 : 0,\n \"data-orientation\": orientation,\n ...groupProps,\n ref: composedRefs,\n style: { outline: \"none\", ...props.style },\n onMouseDown: composeEventHandlers(props.onMouseDown, () => {\n isClickFocusRef.current = true;\n }),\n onFocus: composeEventHandlers(props.onFocus, (event) => {\n const isKeyboardFocus = !isClickFocusRef.current;\n if (event.target === event.currentTarget && isKeyboardFocus && !isTabbingBackOut) {\n const entryFocusEvent = new CustomEvent(ENTRY_FOCUS, EVENT_OPTIONS);\n event.currentTarget.dispatchEvent(entryFocusEvent);\n if (!entryFocusEvent.defaultPrevented) {\n const items = getItems().filter((item) => item.focusable);\n const activeItem = items.find((item) => item.active);\n const currentItem = items.find((item) => item.id === currentTabStopId);\n const candidateItems = [activeItem, currentItem, ...items].filter(\n Boolean\n );\n const candidateNodes = candidateItems.map((item) => item.ref.current);\n focusFirst(candidateNodes, preventScrollOnEntryFocus);\n }\n }\n isClickFocusRef.current = false;\n }),\n onBlur: composeEventHandlers(props.onBlur, () => setIsTabbingBackOut(false))\n }\n )\n }\n );\n});\nvar ITEM_NAME = \"RovingFocusGroupItem\";\nvar RovingFocusGroupItem = React.forwardRef(\n (props, forwardedRef) => {\n const {\n __scopeRovingFocusGroup,\n focusable = true,\n active = false,\n tabStopId,\n ...itemProps\n } = props;\n const autoId = useId();\n const id = tabStopId || autoId;\n const context = useRovingFocusContext(ITEM_NAME, __scopeRovingFocusGroup);\n const isCurrentTabStop = context.currentTabStopId === id;\n const getItems = useCollection(__scopeRovingFocusGroup);\n const { onFocusableItemAdd, onFocusableItemRemove } = context;\n React.useEffect(() => {\n if (focusable) {\n onFocusableItemAdd();\n return () => onFocusableItemRemove();\n }\n }, [focusable, onFocusableItemAdd, onFocusableItemRemove]);\n return /* @__PURE__ */ jsx(\n Collection.ItemSlot,\n {\n scope: __scopeRovingFocusGroup,\n id,\n focusable,\n active,\n children: /* @__PURE__ */ jsx(\n Primitive.span,\n {\n tabIndex: isCurrentTabStop ? 0 : -1,\n \"data-orientation\": context.orientation,\n ...itemProps,\n ref: forwardedRef,\n onMouseDown: composeEventHandlers(props.onMouseDown, (event) => {\n if (!focusable) event.preventDefault();\n else context.onItemFocus(id);\n }),\n onFocus: composeEventHandlers(props.onFocus, () => context.onItemFocus(id)),\n onKeyDown: composeEventHandlers(props.onKeyDown, (event) => {\n if (event.key === \"Tab\" && event.shiftKey) {\n context.onItemShiftTab();\n return;\n }\n if (event.target !== event.currentTarget) return;\n const focusIntent = getFocusIntent(event, context.orientation, context.dir);\n if (focusIntent !== void 0) {\n if (event.metaKey || event.ctrlKey || event.altKey || event.shiftKey) return;\n event.preventDefault();\n const items = getItems().filter((item) => item.focusable);\n let candidateNodes = items.map((item) => item.ref.current);\n if (focusIntent === \"last\") candidateNodes.reverse();\n else if (focusIntent === \"prev\" || focusIntent === \"next\") {\n if (focusIntent === \"prev\") candidateNodes.reverse();\n const currentIndex = candidateNodes.indexOf(event.currentTarget);\n candidateNodes = context.loop ? wrapArray(candidateNodes, currentIndex + 1) : candidateNodes.slice(currentIndex + 1);\n }\n setTimeout(() => focusFirst(candidateNodes));\n }\n })\n }\n )\n }\n );\n }\n);\nRovingFocusGroupItem.displayName = ITEM_NAME;\nvar MAP_KEY_TO_FOCUS_INTENT = {\n ArrowLeft: \"prev\",\n ArrowUp: \"prev\",\n ArrowRight: \"next\",\n ArrowDown: \"next\",\n PageUp: \"first\",\n Home: \"first\",\n PageDown: \"last\",\n End: \"last\"\n};\nfunction getDirectionAwareKey(key, dir) {\n if (dir !== \"rtl\") return key;\n return key === \"ArrowLeft\" ? \"ArrowRight\" : key === \"ArrowRight\" ? \"ArrowLeft\" : key;\n}\nfunction getFocusIntent(event, orientation, dir) {\n const key = getDirectionAwareKey(event.key, dir);\n if (orientation === \"vertical\" && [\"ArrowLeft\", \"ArrowRight\"].includes(key)) return void 0;\n if (orientation === \"horizontal\" && [\"ArrowUp\", \"ArrowDown\"].includes(key)) return void 0;\n return MAP_KEY_TO_FOCUS_INTENT[key];\n}\nfunction focusFirst(candidates, preventScroll = false) {\n const PREVIOUSLY_FOCUSED_ELEMENT = document.activeElement;\n for (const candidate of candidates) {\n if (candidate === PREVIOUSLY_FOCUSED_ELEMENT) return;\n candidate.focus({ preventScroll });\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}\nvar Root = RovingFocusGroup;\nvar Item = RovingFocusGroupItem;\n\nexport { Item, Root, RovingFocusGroup, RovingFocusGroupItem, createRovingFocusGroupScope };\n//# sourceMappingURL=index.js.map\n"],"names":["createCollection","createContextScope","React","jsx","useComposedRefs","useDirection","useControllableState","useCallbackRef","Primitive","composeEventHandlers","useId"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAYA,IAAI,WAAW,GAAG,+BAA+B;AACjD,IAAI,aAAa,GAAG,EAAE,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,IAAI,EAAE;AACxD,IAAI,UAAU,GAAG,kBAAkB;AACnC,IAAI,CAAC,UAAU,EAAE,aAAa,EAAE,qBAAqB,CAAC,GAAGA,wBAAgB,CAAC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0B,EAAE;AAClD,IAAI,SAAS,CAAC,KAAK,CAAC,EAAE,aAAa,EAAE,CAAC;AACtC,IAAI,IAAI,QAAQ,CAAC,aAAa,KAAK,0BAA0B,EAAE;AAC/D;AACA;AACA,SAAS,SAAS,CAAC,KAAK,EAAE,UAAU,EAAE;AACtC,EAAE,OAAO,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,KAAK,KAAK,KAAK,CAAC,CAAC,UAAU,GAAG,KAAK,IAAI,KAAK,CAAC,MAAM,CAAC,CAAC;AAC5E;AACG,IAAC,IAAI,GAAG;AACR,IAAC,IAAI,GAAG;;;;;;;;","x_google_ignoreList":[0]}
@@ -1,104 +0,0 @@
1
- 'use strict';
2
-
3
- var React = require('react');
4
- var index = require('../../react-compose-refs/dist/index.js');
5
- var jsxRuntime = require('react/jsx-runtime');
6
-
7
- function _interopNamespaceDefault(e) {
8
- var n = Object.create(null);
9
- if (e) {
10
- Object.keys(e).forEach(function (k) {
11
- if (k !== 'default') {
12
- var d = Object.getOwnPropertyDescriptor(e, k);
13
- Object.defineProperty(n, k, d.get ? d : {
14
- enumerable: true,
15
- get: function () { return e[k]; }
16
- });
17
- }
18
- });
19
- }
20
- n.default = e;
21
- return Object.freeze(n);
22
- }
23
-
24
- var React__namespace = /*#__PURE__*/_interopNamespaceDefault(React);
25
-
26
- // packages/react/slot/src/Slot.tsx
27
- var Slot = React__namespace.forwardRef((props, forwardedRef) => {
28
- const { children, ...slotProps } = props;
29
- const childrenArray = React__namespace.Children.toArray(children);
30
- const slottable = childrenArray.find(isSlottable);
31
- if (slottable) {
32
- const newElement = slottable.props.children;
33
- const newChildren = childrenArray.map((child) => {
34
- if (child === slottable) {
35
- if (React__namespace.Children.count(newElement) > 1) return React__namespace.Children.only(null);
36
- return React__namespace.isValidElement(newElement) ? newElement.props.children : null;
37
- } else {
38
- return child;
39
- }
40
- });
41
- return /* @__PURE__ */ jsxRuntime.jsx(SlotClone, { ...slotProps, ref: forwardedRef, children: React__namespace.isValidElement(newElement) ? React__namespace.cloneElement(newElement, void 0, newChildren) : null });
42
- }
43
- return /* @__PURE__ */ jsxRuntime.jsx(SlotClone, { ...slotProps, ref: forwardedRef, children });
44
- });
45
- Slot.displayName = "Slot";
46
- var SlotClone = React__namespace.forwardRef((props, forwardedRef) => {
47
- const { children, ...slotProps } = props;
48
- if (React__namespace.isValidElement(children)) {
49
- const childrenRef = getElementRef(children);
50
- return React__namespace.cloneElement(children, {
51
- ...mergeProps(slotProps, children.props),
52
- // @ts-ignore
53
- ref: forwardedRef ? index.composeRefs(forwardedRef, childrenRef) : childrenRef
54
- });
55
- }
56
- return React__namespace.Children.count(children) > 1 ? React__namespace.Children.only(null) : null;
57
- });
58
- SlotClone.displayName = "SlotClone";
59
- var Slottable = ({ children }) => {
60
- return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children });
61
- };
62
- function isSlottable(child) {
63
- return React__namespace.isValidElement(child) && child.type === Slottable;
64
- }
65
- function mergeProps(slotProps, childProps) {
66
- const overrideProps = { ...childProps };
67
- for (const propName in childProps) {
68
- const slotPropValue = slotProps[propName];
69
- const childPropValue = childProps[propName];
70
- const isHandler = /^on[A-Z]/.test(propName);
71
- if (isHandler) {
72
- if (slotPropValue && childPropValue) {
73
- overrideProps[propName] = (...args) => {
74
- childPropValue(...args);
75
- slotPropValue(...args);
76
- };
77
- } else if (slotPropValue) {
78
- overrideProps[propName] = slotPropValue;
79
- }
80
- } else if (propName === "style") {
81
- overrideProps[propName] = { ...slotPropValue, ...childPropValue };
82
- } else if (propName === "className") {
83
- overrideProps[propName] = [slotPropValue, childPropValue].filter(Boolean).join(" ");
84
- }
85
- }
86
- return { ...slotProps, ...overrideProps };
87
- }
88
- function getElementRef(element) {
89
- let getter = Object.getOwnPropertyDescriptor(element.props, "ref")?.get;
90
- let mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
91
- if (mayWarn) {
92
- return element.ref;
93
- }
94
- getter = Object.getOwnPropertyDescriptor(element, "ref")?.get;
95
- mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
96
- if (mayWarn) {
97
- return element.props.ref;
98
- }
99
- return element.props.ref || element.ref;
100
- }
101
-
102
- exports.Slot = Slot;
103
- exports.Slottable = Slottable;
104
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sources":["../../../../../../../../../../react-components/dist/es/node_modules/@radix-ui/react-slot/dist/index.js"],"sourcesContent":["import * as React from 'react';\nimport { composeRefs } from '../../react-compose-refs/dist/index.js';\nimport { jsx, Fragment } from 'react/jsx-runtime';\n\n// packages/react/slot/src/Slot.tsx\nvar Slot = React.forwardRef((props, forwardedRef) => {\n const { children, ...slotProps } = props;\n const childrenArray = React.Children.toArray(children);\n const slottable = childrenArray.find(isSlottable);\n if (slottable) {\n const newElement = slottable.props.children;\n const newChildren = childrenArray.map((child) => {\n if (child === slottable) {\n if (React.Children.count(newElement) > 1) return React.Children.only(null);\n return React.isValidElement(newElement) ? newElement.props.children : null;\n } else {\n return child;\n }\n });\n return /* @__PURE__ */ jsx(SlotClone, { ...slotProps, ref: forwardedRef, children: React.isValidElement(newElement) ? React.cloneElement(newElement, void 0, newChildren) : null });\n }\n return /* @__PURE__ */ jsx(SlotClone, { ...slotProps, ref: forwardedRef, children });\n});\nSlot.displayName = \"Slot\";\nvar SlotClone = React.forwardRef((props, forwardedRef) => {\n const { children, ...slotProps } = props;\n if (React.isValidElement(children)) {\n const childrenRef = getElementRef(children);\n return React.cloneElement(children, {\n ...mergeProps(slotProps, children.props),\n // @ts-ignore\n ref: forwardedRef ? composeRefs(forwardedRef, childrenRef) : childrenRef\n });\n }\n return React.Children.count(children) > 1 ? React.Children.only(null) : null;\n});\nSlotClone.displayName = \"SlotClone\";\nvar Slottable = ({ children }) => {\n return /* @__PURE__ */ jsx(Fragment, { children });\n};\nfunction isSlottable(child) {\n return React.isValidElement(child) && child.type === Slottable;\n}\nfunction mergeProps(slotProps, childProps) {\n const overrideProps = { ...childProps };\n for (const propName in childProps) {\n const slotPropValue = slotProps[propName];\n const childPropValue = childProps[propName];\n const isHandler = /^on[A-Z]/.test(propName);\n if (isHandler) {\n if (slotPropValue && childPropValue) {\n overrideProps[propName] = (...args) => {\n childPropValue(...args);\n slotPropValue(...args);\n };\n } else if (slotPropValue) {\n overrideProps[propName] = slotPropValue;\n }\n } else if (propName === \"style\") {\n overrideProps[propName] = { ...slotPropValue, ...childPropValue };\n } else if (propName === \"className\") {\n overrideProps[propName] = [slotPropValue, childPropValue].filter(Boolean).join(\" \");\n }\n }\n return { ...slotProps, ...overrideProps };\n}\nfunction getElementRef(element) {\n let getter = Object.getOwnPropertyDescriptor(element.props, \"ref\")?.get;\n let mayWarn = getter && \"isReactWarning\" in getter && getter.isReactWarning;\n if (mayWarn) {\n return element.ref;\n }\n getter = Object.getOwnPropertyDescriptor(element, \"ref\")?.get;\n mayWarn = getter && \"isReactWarning\" in getter && getter.isReactWarning;\n if (mayWarn) {\n return element.props.ref;\n }\n return element.props.ref || element.ref;\n}\n\nexport { Slot, Slottable };\n//# sourceMappingURL=index.js.map\n"],"names":["React","jsx","composeRefs","Fragment"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAIA;AACG,IAAC,IAAI,GAAGA,gBAAK,CAAC,UAAU,CAAC,CAAC,KAAK,EAAE,YAAY,KAAK;AACrD,EAAE,MAAM,EAAE,QAAQ,EAAE,GAAG,SAAS,EAAE,GAAG,KAAK;AAC1C,EAAE,MAAM,aAAa,GAAGA,gBAAK,CAAC,QAAQ,CAAC,OAAO,CAAC,QAAQ,CAAC;AACxD,EAAE,MAAM,SAAS,GAAG,aAAa,CAAC,IAAI,CAAC,WAAW,CAAC;AACnD,EAAE,IAAI,SAAS,EAAE;AACjB,IAAI,MAAM,UAAU,GAAG,SAAS,CAAC,KAAK,CAAC,QAAQ;AAC/C,IAAI,MAAM,WAAW,GAAG,aAAa,CAAC,GAAG,CAAC,CAAC,KAAK,KAAK;AACrD,MAAM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