@sparrowengg/twigs-editor-react 0.0.1 → 0.0.3

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 (631) 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 +8 -5
  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 +5 -2
  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/dist/index.d.ts +9 -4
  121. package/package.json +3 -1
  122. package/dist/cjs/react-components/dist/es/_virtual/_commonjsHelpers.js +0 -8
  123. package/dist/cjs/react-components/dist/es/_virtual/_commonjsHelpers.js.map +0 -1
  124. package/dist/cjs/react-components/dist/es/_virtual/index.js +0 -6
  125. package/dist/cjs/react-components/dist/es/_virtual/index.js.map +0 -1
  126. package/dist/cjs/react-components/dist/es/_virtual/index2.js +0 -6
  127. package/dist/cjs/react-components/dist/es/_virtual/index2.js.map +0 -1
  128. package/dist/cjs/react-components/dist/es/_virtual/react-is.development.js +0 -6
  129. package/dist/cjs/react-components/dist/es/_virtual/react-is.development.js.map +0 -1
  130. package/dist/cjs/react-components/dist/es/_virtual/react-is.production.min.js +0 -6
  131. package/dist/cjs/react-components/dist/es/_virtual/react-is.production.min.js.map +0 -1
  132. package/dist/cjs/react-components/dist/es/box/box.js +0 -47
  133. package/dist/cjs/react-components/dist/es/box/box.js.map +0 -1
  134. package/dist/cjs/react-components/dist/es/button/button.js +0 -774
  135. package/dist/cjs/react-components/dist/es/button/button.js.map +0 -1
  136. package/dist/cjs/react-components/dist/es/button/icon-button.js +0 -77
  137. package/dist/cjs/react-components/dist/es/button/icon-button.js.map +0 -1
  138. package/dist/cjs/react-components/dist/es/button/side-element.js +0 -199
  139. package/dist/cjs/react-components/dist/es/button/side-element.js.map +0 -1
  140. package/dist/cjs/react-components/dist/es/button/utils.js +0 -105
  141. package/dist/cjs/react-components/dist/es/button/utils.js.map +0 -1
  142. package/dist/cjs/react-components/dist/es/dialog/dialog.js +0 -197
  143. package/dist/cjs/react-components/dist/es/dialog/dialog.js.map +0 -1
  144. package/dist/cjs/react-components/dist/es/dropdown/dropdown.js +0 -195
  145. package/dist/cjs/react-components/dist/es/dropdown/dropdown.js.map +0 -1
  146. package/dist/cjs/react-components/dist/es/flex/flex.js +0 -98
  147. package/dist/cjs/react-components/dist/es/flex/flex.js.map +0 -1
  148. package/dist/cjs/react-components/dist/es/form-helper-text/form-helper-text.js +0 -76
  149. package/dist/cjs/react-components/dist/es/form-helper-text/form-helper-text.js.map +0 -1
  150. package/dist/cjs/react-components/dist/es/form-label/form-label.js +0 -176
  151. package/dist/cjs/react-components/dist/es/form-label/form-label.js.map +0 -1
  152. package/dist/cjs/react-components/dist/es/input/form-input.js +0 -159
  153. package/dist/cjs/react-components/dist/es/input/form-input.js.map +0 -1
  154. package/dist/cjs/react-components/dist/es/input/input.js +0 -377
  155. package/dist/cjs/react-components/dist/es/input/input.js.map +0 -1
  156. package/dist/cjs/react-components/dist/es/link/link.js +0 -58
  157. package/dist/cjs/react-components/dist/es/link/link.js.map +0 -1
  158. package/dist/cjs/react-components/dist/es/loader/circle.js +0 -204
  159. package/dist/cjs/react-components/dist/es/loader/circle.js.map +0 -1
  160. package/dist/cjs/react-components/dist/es/loader/line.js +0 -130
  161. package/dist/cjs/react-components/dist/es/loader/line.js.map +0 -1
  162. package/dist/cjs/react-components/dist/es/node_modules/@babel/runtime/helpers/esm/extends.js +0 -21
  163. package/dist/cjs/react-components/dist/es/node_modules/@babel/runtime/helpers/esm/extends.js.map +0 -1
  164. package/dist/cjs/react-components/dist/es/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js +0 -14
  165. package/dist/cjs/react-components/dist/es/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js.map +0 -1
  166. package/dist/cjs/react-components/dist/es/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +0 -19
  167. package/dist/cjs/react-components/dist/es/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js.map +0 -1
  168. package/dist/cjs/react-components/dist/es/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js +0 -14
  169. package/dist/cjs/react-components/dist/es/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js.map +0 -1
  170. package/dist/cjs/react-components/dist/es/node_modules/@floating-ui/core/dist/floating-ui.core.js +0 -788
  171. package/dist/cjs/react-components/dist/es/node_modules/@floating-ui/core/dist/floating-ui.core.js.map +0 -1
  172. package/dist/cjs/react-components/dist/es/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +0 -612
  173. package/dist/cjs/react-components/dist/es/node_modules/@floating-ui/dom/dist/floating-ui.dom.js.map +0 -1
  174. package/dist/cjs/react-components/dist/es/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js +0 -299
  175. package/dist/cjs/react-components/dist/es/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js.map +0 -1
  176. package/dist/cjs/react-components/dist/es/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +0 -146
  177. package/dist/cjs/react-components/dist/es/node_modules/@floating-ui/utils/dist/floating-ui.utils.js.map +0 -1
  178. package/dist/cjs/react-components/dist/es/node_modules/@floating-ui/utils/dom/dist/floating-ui.utils.dom.js +0 -148
  179. package/dist/cjs/react-components/dist/es/node_modules/@floating-ui/utils/dom/dist/floating-ui.utils.dom.js.map +0 -1
  180. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/primitive/dist/index.js +0 -14
  181. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/primitive/dist/index.js.map +0 -1
  182. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-arrow/dist/index.js +0 -48
  183. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-arrow/dist/index.js.map +0 -1
  184. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-collection/dist/index.js +0 -71
  185. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-collection/dist/index.js.map +0 -1
  186. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-compose-refs/dist/index.js +0 -41
  187. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-compose-refs/dist/index.js.map +0 -1
  188. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-context/dist/index.js +0 -102
  189. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-context/dist/index.js.map +0 -1
  190. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-dialog/dist/index.js +0 -354
  191. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-dialog/dist/index.js.map +0 -1
  192. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-direction/dist/index.js +0 -33
  193. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-direction/dist/index.js.map +0 -1
  194. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-dismissable-layer/dist/index.js +0 -234
  195. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-dismissable-layer/dist/index.js.map +0 -1
  196. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-dropdown-menu/dist/index.js +0 -303
  197. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-dropdown-menu/dist/index.js.map +0 -1
  198. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-focus-guards/dist/index.js +0 -48
  199. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-focus-guards/dist/index.js.map +0 -1
  200. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-focus-scope/dist/index.js +0 -229
  201. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-focus-scope/dist/index.js.map +0 -1
  202. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-id/dist/index.js +0 -37
  203. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-id/dist/index.js.map +0 -1
  204. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-label/dist/index.js +0 -47
  205. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-label/dist/index.js.map +0 -1
  206. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-menu/dist/index.js +0 -847
  207. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-menu/dist/index.js.map +0 -1
  208. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-popper/dist/index.js +0 -309
  209. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-popper/dist/index.js.map +0 -1
  210. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-portal/dist/index.js +0 -39
  211. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-portal/dist/index.js.map +0 -1
  212. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-presence/dist/index.js +0 -142
  213. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-presence/dist/index.js.map +0 -1
  214. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-primitive/dist/index.js +0 -65
  215. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-primitive/dist/index.js.map +0 -1
  216. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-roving-focus/dist/index.js +0 -246
  217. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-roving-focus/dist/index.js.map +0 -1
  218. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-slot/dist/index.js +0 -104
  219. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-slot/dist/index.js.map +0 -1
  220. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-tooltip/dist/index.js +0 -509
  221. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-tooltip/dist/index.js.map +0 -1
  222. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-use-callback-ref/dist/index.js +0 -34
  223. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-use-callback-ref/dist/index.js.map +0 -1
  224. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-use-controllable-state/dist/index.js +0 -68
  225. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-use-controllable-state/dist/index.js.map +0 -1
  226. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-use-escape-keydown/dist/index.js +0 -40
  227. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-use-escape-keydown/dist/index.js.map +0 -1
  228. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-use-layout-effect/dist/index.js +0 -29
  229. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-use-layout-effect/dist/index.js.map +0 -1
  230. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-use-size/dist/index.js +0 -62
  231. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-use-size/dist/index.js.map +0 -1
  232. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-visually-hidden/dist/index.js +0 -58
  233. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-visually-hidden/dist/index.js.map +0 -1
  234. package/dist/cjs/react-components/dist/es/node_modules/@stitches/react/dist/index.js +0 -9
  235. package/dist/cjs/react-components/dist/es/node_modules/@stitches/react/dist/index.js.map +0 -1
  236. package/dist/cjs/react-components/dist/es/node_modules/aria-hidden/dist/es2015/index.js +0 -134
  237. package/dist/cjs/react-components/dist/es/node_modules/aria-hidden/dist/es2015/index.js.map +0 -1
  238. package/dist/cjs/react-components/dist/es/node_modules/dom-helpers/esm/addClass.js +0 -19
  239. package/dist/cjs/react-components/dist/es/node_modules/dom-helpers/esm/addClass.js.map +0 -1
  240. package/dist/cjs/react-components/dist/es/node_modules/dom-helpers/esm/hasClass.js +0 -17
  241. package/dist/cjs/react-components/dist/es/node_modules/dom-helpers/esm/hasClass.js.map +0 -1
  242. package/dist/cjs/react-components/dist/es/node_modules/dom-helpers/esm/removeClass.js +0 -27
  243. package/dist/cjs/react-components/dist/es/node_modules/dom-helpers/esm/removeClass.js.map +0 -1
  244. package/dist/cjs/react-components/dist/es/node_modules/get-nonce/dist/es2015/index.js +0 -11
  245. package/dist/cjs/react-components/dist/es/node_modules/get-nonce/dist/es2015/index.js.map +0 -1
  246. package/dist/cjs/react-components/dist/es/node_modules/object-assign/index.js +0 -102
  247. package/dist/cjs/react-components/dist/es/node_modules/object-assign/index.js.map +0 -1
  248. package/dist/cjs/react-components/dist/es/node_modules/prop-types/checkPropTypes.js +0 -118
  249. package/dist/cjs/react-components/dist/es/node_modules/prop-types/checkPropTypes.js.map +0 -1
  250. package/dist/cjs/react-components/dist/es/node_modules/prop-types/factoryWithThrowingShims.js +0 -77
  251. package/dist/cjs/react-components/dist/es/node_modules/prop-types/factoryWithThrowingShims.js.map +0 -1
  252. package/dist/cjs/react-components/dist/es/node_modules/prop-types/factoryWithTypeCheckers.js +0 -628
  253. package/dist/cjs/react-components/dist/es/node_modules/prop-types/factoryWithTypeCheckers.js.map +0 -1
  254. package/dist/cjs/react-components/dist/es/node_modules/prop-types/index.js +0 -35
  255. package/dist/cjs/react-components/dist/es/node_modules/prop-types/index.js.map +0 -1
  256. package/dist/cjs/react-components/dist/es/node_modules/prop-types/lib/ReactPropTypesSecret.js +0 -24
  257. package/dist/cjs/react-components/dist/es/node_modules/prop-types/lib/ReactPropTypesSecret.js.map +0 -1
  258. package/dist/cjs/react-components/dist/es/node_modules/prop-types/lib/has.js +0 -14
  259. package/dist/cjs/react-components/dist/es/node_modules/prop-types/lib/has.js.map +0 -1
  260. package/dist/cjs/react-components/dist/es/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js +0 -193
  261. package/dist/cjs/react-components/dist/es/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js.map +0 -1
  262. package/dist/cjs/react-components/dist/es/node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js +0 -29
  263. package/dist/cjs/react-components/dist/es/node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js.map +0 -1
  264. package/dist/cjs/react-components/dist/es/node_modules/prop-types/node_modules/react-is/index.js +0 -22
  265. package/dist/cjs/react-components/dist/es/node_modules/prop-types/node_modules/react-is/index.js.map +0 -1
  266. package/dist/cjs/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/Combination.js +0 -34
  267. package/dist/cjs/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/Combination.js.map +0 -1
  268. package/dist/cjs/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/SideEffect.js +0 -184
  269. package/dist/cjs/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/SideEffect.js.map +0 -1
  270. package/dist/cjs/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/UI.js +0 -60
  271. package/dist/cjs/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/UI.js.map +0 -1
  272. package/dist/cjs/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js +0 -24
  273. package/dist/cjs/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js.map +0 -1
  274. package/dist/cjs/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/handleScroll.js +0 -110
  275. package/dist/cjs/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/handleScroll.js.map +0 -1
  276. package/dist/cjs/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/medium.js +0 -8
  277. package/dist/cjs/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/medium.js.map +0 -1
  278. package/dist/cjs/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/sidecar.js +0 -12
  279. package/dist/cjs/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/sidecar.js.map +0 -1
  280. package/dist/cjs/react-components/dist/es/node_modules/react-remove-scroll-bar/dist/es2015/component.js +0 -80
  281. package/dist/cjs/react-components/dist/es/node_modules/react-remove-scroll-bar/dist/es2015/component.js.map +0 -1
  282. package/dist/cjs/react-components/dist/es/node_modules/react-remove-scroll-bar/dist/es2015/constants.js +0 -16
  283. package/dist/cjs/react-components/dist/es/node_modules/react-remove-scroll-bar/dist/es2015/constants.js.map +0 -1
  284. package/dist/cjs/react-components/dist/es/node_modules/react-remove-scroll-bar/dist/es2015/utils.js +0 -35
  285. package/dist/cjs/react-components/dist/es/node_modules/react-remove-scroll-bar/dist/es2015/utils.js.map +0 -1
  286. package/dist/cjs/react-components/dist/es/node_modules/react-style-singleton/dist/es2015/component.js +0 -22
  287. package/dist/cjs/react-components/dist/es/node_modules/react-style-singleton/dist/es2015/component.js.map +0 -1
  288. package/dist/cjs/react-components/dist/es/node_modules/react-style-singleton/dist/es2015/hook.js +0 -47
  289. package/dist/cjs/react-components/dist/es/node_modules/react-style-singleton/dist/es2015/hook.js.map +0 -1
  290. package/dist/cjs/react-components/dist/es/node_modules/react-style-singleton/dist/es2015/singleton.js +0 -54
  291. package/dist/cjs/react-components/dist/es/node_modules/react-style-singleton/dist/es2015/singleton.js.map +0 -1
  292. package/dist/cjs/react-components/dist/es/node_modules/react-transition-group/esm/CSSTransition.js +0 -419
  293. package/dist/cjs/react-components/dist/es/node_modules/react-transition-group/esm/CSSTransition.js.map +0 -1
  294. package/dist/cjs/react-components/dist/es/node_modules/react-transition-group/esm/Transition.js +0 -637
  295. package/dist/cjs/react-components/dist/es/node_modules/react-transition-group/esm/Transition.js.map +0 -1
  296. package/dist/cjs/react-components/dist/es/node_modules/react-transition-group/esm/TransitionGroupContext.js +0 -10
  297. package/dist/cjs/react-components/dist/es/node_modules/react-transition-group/esm/TransitionGroupContext.js.map +0 -1
  298. package/dist/cjs/react-components/dist/es/node_modules/react-transition-group/esm/config.js +0 -10
  299. package/dist/cjs/react-components/dist/es/node_modules/react-transition-group/esm/config.js.map +0 -1
  300. package/dist/cjs/react-components/dist/es/node_modules/react-transition-group/esm/utils/PropTypes.js +0 -25
  301. package/dist/cjs/react-components/dist/es/node_modules/react-transition-group/esm/utils/PropTypes.js.map +0 -1
  302. package/dist/cjs/react-components/dist/es/node_modules/react-transition-group/esm/utils/reflow.js +0 -8
  303. package/dist/cjs/react-components/dist/es/node_modules/react-transition-group/esm/utils/reflow.js.map +0 -1
  304. package/dist/cjs/react-components/dist/es/node_modules/tslib/tslib.es6.js +0 -55
  305. package/dist/cjs/react-components/dist/es/node_modules/tslib/tslib.es6.js.map +0 -1
  306. package/dist/cjs/react-components/dist/es/node_modules/use-callback-ref/dist/es2015/assignRef.js +0 -27
  307. package/dist/cjs/react-components/dist/es/node_modules/use-callback-ref/dist/es2015/assignRef.js.map +0 -1
  308. package/dist/cjs/react-components/dist/es/node_modules/use-callback-ref/dist/es2015/useMergeRef.js +0 -25
  309. package/dist/cjs/react-components/dist/es/node_modules/use-callback-ref/dist/es2015/useMergeRef.js.map +0 -1
  310. package/dist/cjs/react-components/dist/es/node_modules/use-callback-ref/dist/es2015/useRef.js +0 -45
  311. package/dist/cjs/react-components/dist/es/node_modules/use-callback-ref/dist/es2015/useRef.js.map +0 -1
  312. package/dist/cjs/react-components/dist/es/node_modules/use-sidecar/dist/es2015/exports.js +0 -43
  313. package/dist/cjs/react-components/dist/es/node_modules/use-sidecar/dist/es2015/exports.js.map +0 -1
  314. package/dist/cjs/react-components/dist/es/node_modules/use-sidecar/dist/es2015/medium.js +0 -80
  315. package/dist/cjs/react-components/dist/es/node_modules/use-sidecar/dist/es2015/medium.js.map +0 -1
  316. package/dist/cjs/react-components/dist/es/packages/react-components/node_modules/clsx/dist/clsx.js.map +0 -1
  317. package/dist/cjs/react-components/dist/es/packages/react-icons/dist/es/icons/info.js +0 -97
  318. package/dist/cjs/react-components/dist/es/packages/react-icons/dist/es/icons/info.js.map +0 -1
  319. package/dist/cjs/react-components/dist/es/stitches.config.js +0 -392
  320. package/dist/cjs/react-components/dist/es/stitches.config.js.map +0 -1
  321. package/dist/cjs/react-components/dist/es/text/text.js +0 -117
  322. package/dist/cjs/react-components/dist/es/text/text.js.map +0 -1
  323. package/dist/cjs/react-components/dist/es/tooltip/tooltip.js +0 -156
  324. package/dist/cjs/react-components/dist/es/tooltip/tooltip.js.map +0 -1
  325. package/dist/cjs/react-components/dist/es/utils/prefix-class-name.js +0 -10
  326. package/dist/cjs/react-components/dist/es/utils/prefix-class-name.js.map +0 -1
  327. package/dist/cjs/react-editor/node_modules/clsx/dist/clsx.js +0 -9
  328. package/dist/cjs/react-editor/node_modules/clsx/dist/clsx.js.map +0 -1
  329. package/dist/cjs/react-editor/node_modules/validator/es/lib/isFQDN.js.map +0 -1
  330. package/dist/cjs/react-editor/node_modules/validator/es/lib/isIP.js.map +0 -1
  331. package/dist/cjs/react-editor/node_modules/validator/es/lib/isURL.js.map +0 -1
  332. package/dist/cjs/react-editor/node_modules/validator/es/lib/util/assertString.js.map +0 -1
  333. package/dist/cjs/react-editor/node_modules/validator/es/lib/util/merge.js.map +0 -1
  334. package/dist/cjs/react-editor/node_modules/validator/lib/isFQDN.js.map +0 -1
  335. package/dist/cjs/react-editor/node_modules/validator/lib/isIP.js.map +0 -1
  336. package/dist/cjs/react-editor/node_modules/validator/lib/isURL.js.map +0 -1
  337. package/dist/cjs/react-editor/node_modules/validator/lib/util/assertString.js.map +0 -1
  338. package/dist/cjs/react-editor/node_modules/validator/lib/util/merge.js.map +0 -1
  339. package/dist/cjs/react-icons/dist/es/icons/bold.js +0 -86
  340. package/dist/cjs/react-icons/dist/es/icons/bold.js.map +0 -1
  341. package/dist/cjs/react-icons/dist/es/icons/close.js +0 -86
  342. package/dist/cjs/react-icons/dist/es/icons/close.js.map +0 -1
  343. package/dist/cjs/react-icons/dist/es/icons/code-block.js +0 -78
  344. package/dist/cjs/react-icons/dist/es/icons/code-block.js.map +0 -1
  345. package/dist/cjs/react-icons/dist/es/icons/code.js +0 -96
  346. package/dist/cjs/react-icons/dist/es/icons/code.js.map +0 -1
  347. package/dist/cjs/react-icons/dist/es/icons/delete.js +0 -116
  348. package/dist/cjs/react-icons/dist/es/icons/delete.js.map +0 -1
  349. package/dist/cjs/react-icons/dist/es/icons/italics.js +0 -96
  350. package/dist/cjs/react-icons/dist/es/icons/italics.js.map +0 -1
  351. package/dist/cjs/react-icons/dist/es/icons/link.js +0 -86
  352. package/dist/cjs/react-icons/dist/es/icons/link.js.map +0 -1
  353. package/dist/cjs/react-icons/dist/es/icons/ordered-list.js +0 -86
  354. package/dist/cjs/react-icons/dist/es/icons/ordered-list.js.map +0 -1
  355. package/dist/cjs/react-icons/dist/es/icons/pencil.js +0 -86
  356. package/dist/cjs/react-icons/dist/es/icons/pencil.js.map +0 -1
  357. package/dist/cjs/react-icons/dist/es/icons/text-align-center.js +0 -74
  358. package/dist/cjs/react-icons/dist/es/icons/text-align-center.js.map +0 -1
  359. package/dist/cjs/react-icons/dist/es/icons/text-align-justify.js +0 -74
  360. package/dist/cjs/react-icons/dist/es/icons/text-align-justify.js.map +0 -1
  361. package/dist/cjs/react-icons/dist/es/icons/text-align-left.js +0 -74
  362. package/dist/cjs/react-icons/dist/es/icons/text-align-left.js.map +0 -1
  363. package/dist/cjs/react-icons/dist/es/icons/text-align-right.js +0 -74
  364. package/dist/cjs/react-icons/dist/es/icons/text-align-right.js.map +0 -1
  365. package/dist/cjs/react-icons/dist/es/icons/text-format.js +0 -78
  366. package/dist/cjs/react-icons/dist/es/icons/text-format.js.map +0 -1
  367. package/dist/cjs/react-icons/dist/es/icons/underline.js +0 -77
  368. package/dist/cjs/react-icons/dist/es/icons/underline.js.map +0 -1
  369. package/dist/cjs/react-icons/dist/es/icons/unordered-list.js +0 -126
  370. package/dist/cjs/react-icons/dist/es/icons/unordered-list.js.map +0 -1
  371. package/dist/es/react-components/dist/es/_virtual/_commonjsHelpers.js +0 -6
  372. package/dist/es/react-components/dist/es/_virtual/_commonjsHelpers.js.map +0 -1
  373. package/dist/es/react-components/dist/es/_virtual/index.js +0 -4
  374. package/dist/es/react-components/dist/es/_virtual/index.js.map +0 -1
  375. package/dist/es/react-components/dist/es/_virtual/index2.js +0 -4
  376. package/dist/es/react-components/dist/es/_virtual/index2.js.map +0 -1
  377. package/dist/es/react-components/dist/es/_virtual/react-is.development.js +0 -4
  378. package/dist/es/react-components/dist/es/_virtual/react-is.development.js.map +0 -1
  379. package/dist/es/react-components/dist/es/_virtual/react-is.production.min.js +0 -4
  380. package/dist/es/react-components/dist/es/_virtual/react-is.production.min.js.map +0 -1
  381. package/dist/es/react-components/dist/es/box/box.js +0 -45
  382. package/dist/es/react-components/dist/es/box/box.js.map +0 -1
  383. package/dist/es/react-components/dist/es/button/button.js +0 -772
  384. package/dist/es/react-components/dist/es/button/button.js.map +0 -1
  385. package/dist/es/react-components/dist/es/button/icon-button.js +0 -75
  386. package/dist/es/react-components/dist/es/button/icon-button.js.map +0 -1
  387. package/dist/es/react-components/dist/es/button/side-element.js +0 -197
  388. package/dist/es/react-components/dist/es/button/side-element.js.map +0 -1
  389. package/dist/es/react-components/dist/es/button/utils.js +0 -100
  390. package/dist/es/react-components/dist/es/button/utils.js.map +0 -1
  391. package/dist/es/react-components/dist/es/dialog/dialog.js +0 -193
  392. package/dist/es/react-components/dist/es/dialog/dialog.js.map +0 -1
  393. package/dist/es/react-components/dist/es/dropdown/dropdown.js +0 -190
  394. package/dist/es/react-components/dist/es/dropdown/dropdown.js.map +0 -1
  395. package/dist/es/react-components/dist/es/flex/flex.js +0 -96
  396. package/dist/es/react-components/dist/es/flex/flex.js.map +0 -1
  397. package/dist/es/react-components/dist/es/form-helper-text/form-helper-text.js +0 -74
  398. package/dist/es/react-components/dist/es/form-helper-text/form-helper-text.js.map +0 -1
  399. package/dist/es/react-components/dist/es/form-label/form-label.js +0 -174
  400. package/dist/es/react-components/dist/es/form-label/form-label.js.map +0 -1
  401. package/dist/es/react-components/dist/es/input/form-input.js +0 -157
  402. package/dist/es/react-components/dist/es/input/form-input.js.map +0 -1
  403. package/dist/es/react-components/dist/es/input/input.js +0 -374
  404. package/dist/es/react-components/dist/es/input/input.js.map +0 -1
  405. package/dist/es/react-components/dist/es/link/link.js +0 -56
  406. package/dist/es/react-components/dist/es/link/link.js.map +0 -1
  407. package/dist/es/react-components/dist/es/loader/circle.js +0 -202
  408. package/dist/es/react-components/dist/es/loader/circle.js.map +0 -1
  409. package/dist/es/react-components/dist/es/loader/line.js +0 -128
  410. package/dist/es/react-components/dist/es/loader/line.js.map +0 -1
  411. package/dist/es/react-components/dist/es/node_modules/@babel/runtime/helpers/esm/extends.js +0 -17
  412. package/dist/es/react-components/dist/es/node_modules/@babel/runtime/helpers/esm/extends.js.map +0 -1
  413. package/dist/es/react-components/dist/es/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js +0 -10
  414. package/dist/es/react-components/dist/es/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js.map +0 -1
  415. package/dist/es/react-components/dist/es/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +0 -15
  416. package/dist/es/react-components/dist/es/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js.map +0 -1
  417. package/dist/es/react-components/dist/es/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js +0 -10
  418. package/dist/es/react-components/dist/es/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js.map +0 -1
  419. package/dist/es/react-components/dist/es/node_modules/@floating-ui/core/dist/floating-ui.core.js +0 -777
  420. package/dist/es/react-components/dist/es/node_modules/@floating-ui/core/dist/floating-ui.core.js.map +0 -1
  421. package/dist/es/react-components/dist/es/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +0 -600
  422. package/dist/es/react-components/dist/es/node_modules/@floating-ui/dom/dist/floating-ui.dom.js.map +0 -1
  423. package/dist/es/react-components/dist/es/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js +0 -269
  424. package/dist/es/react-components/dist/es/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js.map +0 -1
  425. package/dist/es/react-components/dist/es/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +0 -123
  426. package/dist/es/react-components/dist/es/node_modules/@floating-ui/utils/dist/floating-ui.utils.js.map +0 -1
  427. package/dist/es/react-components/dist/es/node_modules/@floating-ui/utils/dom/dist/floating-ui.utils.dom.js +0 -129
  428. package/dist/es/react-components/dist/es/node_modules/@floating-ui/utils/dom/dist/floating-ui.utils.dom.js.map +0 -1
  429. package/dist/es/react-components/dist/es/node_modules/@radix-ui/primitive/dist/index.js +0 -12
  430. package/dist/es/react-components/dist/es/node_modules/@radix-ui/primitive/dist/index.js.map +0 -1
  431. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-arrow/dist/index.js +0 -26
  432. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-arrow/dist/index.js.map +0 -1
  433. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-collection/dist/index.js +0 -69
  434. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-collection/dist/index.js.map +0 -1
  435. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-compose-refs/dist/index.js +0 -19
  436. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-compose-refs/dist/index.js.map +0 -1
  437. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-context/dist/index.js +0 -80
  438. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-context/dist/index.js.map +0 -1
  439. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-dialog/dist/index.js +0 -318
  440. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-dialog/dist/index.js.map +0 -1
  441. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-direction/dist/index.js +0 -12
  442. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-direction/dist/index.js.map +0 -1
  443. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-dismissable-layer/dist/index.js +0 -212
  444. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-dismissable-layer/dist/index.js.map +0 -1
  445. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-dropdown-menu/dist/index.js +0 -254
  446. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-dropdown-menu/dist/index.js.map +0 -1
  447. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-focus-guards/dist/index.js +0 -27
  448. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-focus-guards/dist/index.js.map +0 -1
  449. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-focus-scope/dist/index.js +0 -208
  450. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-focus-scope/dist/index.js.map +0 -1
  451. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-id/dist/index.js +0 -16
  452. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-id/dist/index.js.map +0 -1
  453. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-label/dist/index.js +0 -25
  454. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-label/dist/index.js.map +0 -1
  455. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-menu/dist/index.js +0 -796
  456. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-menu/dist/index.js.map +0 -1
  457. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-popper/dist/index.js +0 -280
  458. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-popper/dist/index.js.map +0 -1
  459. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-portal/dist/index.js +0 -18
  460. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-portal/dist/index.js.map +0 -1
  461. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-presence/dist/index.js +0 -120
  462. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-presence/dist/index.js.map +0 -1
  463. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-primitive/dist/index.js +0 -42
  464. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-primitive/dist/index.js.map +0 -1
  465. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-roving-focus/dist/index.js +0 -221
  466. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-roving-focus/dist/index.js.map +0 -1
  467. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-slot/dist/index.js +0 -82
  468. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-slot/dist/index.js.map +0 -1
  469. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-tooltip/dist/index.js +0 -476
  470. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-tooltip/dist/index.js.map +0 -1
  471. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-use-callback-ref/dist/index.js +0 -13
  472. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-use-callback-ref/dist/index.js.map +0 -1
  473. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-use-controllable-state/dist/index.js +0 -47
  474. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-use-controllable-state/dist/index.js.map +0 -1
  475. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-use-escape-keydown/dist/index.js +0 -19
  476. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-use-escape-keydown/dist/index.js.map +0 -1
  477. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-use-layout-effect/dist/index.js +0 -8
  478. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-use-layout-effect/dist/index.js.map +0 -1
  479. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-use-size/dist/index.js +0 -41
  480. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-use-size/dist/index.js.map +0 -1
  481. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-visually-hidden/dist/index.js +0 -36
  482. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-visually-hidden/dist/index.js.map +0 -1
  483. package/dist/es/react-components/dist/es/node_modules/@stitches/react/dist/index.js +0 -6
  484. package/dist/es/react-components/dist/es/node_modules/@stitches/react/dist/index.js.map +0 -1
  485. package/dist/es/react-components/dist/es/node_modules/aria-hidden/dist/es2015/index.js +0 -132
  486. package/dist/es/react-components/dist/es/node_modules/aria-hidden/dist/es2015/index.js.map +0 -1
  487. package/dist/es/react-components/dist/es/node_modules/dom-helpers/esm/addClass.js +0 -15
  488. package/dist/es/react-components/dist/es/node_modules/dom-helpers/esm/addClass.js.map +0 -1
  489. package/dist/es/react-components/dist/es/node_modules/dom-helpers/esm/hasClass.js +0 -13
  490. package/dist/es/react-components/dist/es/node_modules/dom-helpers/esm/hasClass.js.map +0 -1
  491. package/dist/es/react-components/dist/es/node_modules/dom-helpers/esm/removeClass.js +0 -23
  492. package/dist/es/react-components/dist/es/node_modules/dom-helpers/esm/removeClass.js.map +0 -1
  493. package/dist/es/react-components/dist/es/node_modules/get-nonce/dist/es2015/index.js +0 -9
  494. package/dist/es/react-components/dist/es/node_modules/get-nonce/dist/es2015/index.js.map +0 -1
  495. package/dist/es/react-components/dist/es/node_modules/object-assign/index.js +0 -100
  496. package/dist/es/react-components/dist/es/node_modules/object-assign/index.js.map +0 -1
  497. package/dist/es/react-components/dist/es/node_modules/prop-types/checkPropTypes.js +0 -116
  498. package/dist/es/react-components/dist/es/node_modules/prop-types/checkPropTypes.js.map +0 -1
  499. package/dist/es/react-components/dist/es/node_modules/prop-types/factoryWithThrowingShims.js +0 -75
  500. package/dist/es/react-components/dist/es/node_modules/prop-types/factoryWithThrowingShims.js.map +0 -1
  501. package/dist/es/react-components/dist/es/node_modules/prop-types/factoryWithTypeCheckers.js +0 -626
  502. package/dist/es/react-components/dist/es/node_modules/prop-types/factoryWithTypeCheckers.js.map +0 -1
  503. package/dist/es/react-components/dist/es/node_modules/prop-types/index.js +0 -31
  504. package/dist/es/react-components/dist/es/node_modules/prop-types/index.js.map +0 -1
  505. package/dist/es/react-components/dist/es/node_modules/prop-types/lib/ReactPropTypesSecret.js +0 -22
  506. package/dist/es/react-components/dist/es/node_modules/prop-types/lib/ReactPropTypesSecret.js.map +0 -1
  507. package/dist/es/react-components/dist/es/node_modules/prop-types/lib/has.js +0 -12
  508. package/dist/es/react-components/dist/es/node_modules/prop-types/lib/has.js.map +0 -1
  509. package/dist/es/react-components/dist/es/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js +0 -191
  510. package/dist/es/react-components/dist/es/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js.map +0 -1
  511. package/dist/es/react-components/dist/es/node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js +0 -27
  512. package/dist/es/react-components/dist/es/node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js.map +0 -1
  513. package/dist/es/react-components/dist/es/node_modules/prop-types/node_modules/react-is/index.js +0 -20
  514. package/dist/es/react-components/dist/es/node_modules/prop-types/node_modules/react-is/index.js.map +0 -1
  515. package/dist/es/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/Combination.js +0 -11
  516. package/dist/es/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/Combination.js.map +0 -1
  517. package/dist/es/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/SideEffect.js +0 -161
  518. package/dist/es/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/SideEffect.js.map +0 -1
  519. package/dist/es/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/UI.js +0 -39
  520. package/dist/es/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/UI.js.map +0 -1
  521. package/dist/es/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js +0 -22
  522. package/dist/es/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js.map +0 -1
  523. package/dist/es/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/handleScroll.js +0 -107
  524. package/dist/es/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/handleScroll.js.map +0 -1
  525. package/dist/es/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/medium.js +0 -6
  526. package/dist/es/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/medium.js.map +0 -1
  527. package/dist/es/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/sidecar.js +0 -8
  528. package/dist/es/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/sidecar.js.map +0 -1
  529. package/dist/es/react-components/dist/es/node_modules/react-remove-scroll-bar/dist/es2015/component.js +0 -57
  530. package/dist/es/react-components/dist/es/node_modules/react-remove-scroll-bar/dist/es2015/component.js.map +0 -1
  531. package/dist/es/react-components/dist/es/node_modules/react-remove-scroll-bar/dist/es2015/constants.js +0 -11
  532. package/dist/es/react-components/dist/es/node_modules/react-remove-scroll-bar/dist/es2015/constants.js.map +0 -1
  533. package/dist/es/react-components/dist/es/node_modules/react-remove-scroll-bar/dist/es2015/utils.js +0 -32
  534. package/dist/es/react-components/dist/es/node_modules/react-remove-scroll-bar/dist/es2015/utils.js.map +0 -1
  535. package/dist/es/react-components/dist/es/node_modules/react-style-singleton/dist/es2015/component.js +0 -20
  536. package/dist/es/react-components/dist/es/node_modules/react-style-singleton/dist/es2015/component.js.map +0 -1
  537. package/dist/es/react-components/dist/es/node_modules/react-style-singleton/dist/es2015/hook.js +0 -26
  538. package/dist/es/react-components/dist/es/node_modules/react-style-singleton/dist/es2015/hook.js.map +0 -1
  539. package/dist/es/react-components/dist/es/node_modules/react-style-singleton/dist/es2015/singleton.js +0 -52
  540. package/dist/es/react-components/dist/es/node_modules/react-style-singleton/dist/es2015/singleton.js.map +0 -1
  541. package/dist/es/react-components/dist/es/node_modules/react-transition-group/esm/CSSTransition.js +0 -415
  542. package/dist/es/react-components/dist/es/node_modules/react-transition-group/esm/CSSTransition.js.map +0 -1
  543. package/dist/es/react-components/dist/es/node_modules/react-transition-group/esm/Transition.js +0 -628
  544. package/dist/es/react-components/dist/es/node_modules/react-transition-group/esm/Transition.js.map +0 -1
  545. package/dist/es/react-components/dist/es/node_modules/react-transition-group/esm/TransitionGroupContext.js +0 -6
  546. package/dist/es/react-components/dist/es/node_modules/react-transition-group/esm/TransitionGroupContext.js.map +0 -1
  547. package/dist/es/react-components/dist/es/node_modules/react-transition-group/esm/config.js +0 -6
  548. package/dist/es/react-components/dist/es/node_modules/react-transition-group/esm/config.js.map +0 -1
  549. package/dist/es/react-components/dist/es/node_modules/react-transition-group/esm/utils/PropTypes.js +0 -22
  550. package/dist/es/react-components/dist/es/node_modules/react-transition-group/esm/utils/PropTypes.js.map +0 -1
  551. package/dist/es/react-components/dist/es/node_modules/react-transition-group/esm/utils/reflow.js +0 -6
  552. package/dist/es/react-components/dist/es/node_modules/react-transition-group/esm/utils/reflow.js.map +0 -1
  553. package/dist/es/react-components/dist/es/node_modules/tslib/tslib.es6.js +0 -52
  554. package/dist/es/react-components/dist/es/node_modules/tslib/tslib.es6.js.map +0 -1
  555. package/dist/es/react-components/dist/es/node_modules/use-callback-ref/dist/es2015/assignRef.js +0 -25
  556. package/dist/es/react-components/dist/es/node_modules/use-callback-ref/dist/es2015/assignRef.js.map +0 -1
  557. package/dist/es/react-components/dist/es/node_modules/use-callback-ref/dist/es2015/useMergeRef.js +0 -23
  558. package/dist/es/react-components/dist/es/node_modules/use-callback-ref/dist/es2015/useMergeRef.js.map +0 -1
  559. package/dist/es/react-components/dist/es/node_modules/use-callback-ref/dist/es2015/useRef.js +0 -43
  560. package/dist/es/react-components/dist/es/node_modules/use-callback-ref/dist/es2015/useRef.js.map +0 -1
  561. package/dist/es/react-components/dist/es/node_modules/use-sidecar/dist/es2015/exports.js +0 -22
  562. package/dist/es/react-components/dist/es/node_modules/use-sidecar/dist/es2015/exports.js.map +0 -1
  563. package/dist/es/react-components/dist/es/node_modules/use-sidecar/dist/es2015/medium.js +0 -78
  564. package/dist/es/react-components/dist/es/node_modules/use-sidecar/dist/es2015/medium.js.map +0 -1
  565. package/dist/es/react-components/dist/es/packages/react-components/node_modules/clsx/dist/clsx.js.map +0 -1
  566. package/dist/es/react-components/dist/es/packages/react-icons/dist/es/icons/info.js +0 -95
  567. package/dist/es/react-components/dist/es/packages/react-icons/dist/es/icons/info.js.map +0 -1
  568. package/dist/es/react-components/dist/es/stitches.config.js +0 -379
  569. package/dist/es/react-components/dist/es/stitches.config.js.map +0 -1
  570. package/dist/es/react-components/dist/es/text/text.js +0 -115
  571. package/dist/es/react-components/dist/es/text/text.js.map +0 -1
  572. package/dist/es/react-components/dist/es/tooltip/tooltip.js +0 -153
  573. package/dist/es/react-components/dist/es/tooltip/tooltip.js.map +0 -1
  574. package/dist/es/react-components/dist/es/utils/prefix-class-name.js +0 -8
  575. package/dist/es/react-components/dist/es/utils/prefix-class-name.js.map +0 -1
  576. package/dist/es/react-editor/node_modules/clsx/dist/clsx.js +0 -4
  577. package/dist/es/react-editor/node_modules/clsx/dist/clsx.js.map +0 -1
  578. package/dist/es/react-editor/node_modules/validator/es/lib/isFQDN.js.map +0 -1
  579. package/dist/es/react-editor/node_modules/validator/es/lib/isIP.js.map +0 -1
  580. package/dist/es/react-editor/node_modules/validator/es/lib/isURL.js.map +0 -1
  581. package/dist/es/react-editor/node_modules/validator/es/lib/util/assertString.js.map +0 -1
  582. package/dist/es/react-editor/node_modules/validator/es/lib/util/merge.js.map +0 -1
  583. package/dist/es/react-editor/node_modules/validator/lib/isFQDN.js.map +0 -1
  584. package/dist/es/react-editor/node_modules/validator/lib/isIP.js.map +0 -1
  585. package/dist/es/react-editor/node_modules/validator/lib/isURL.js.map +0 -1
  586. package/dist/es/react-editor/node_modules/validator/lib/util/assertString.js.map +0 -1
  587. package/dist/es/react-editor/node_modules/validator/lib/util/merge.js.map +0 -1
  588. package/dist/es/react-icons/dist/es/icons/bold.js +0 -84
  589. package/dist/es/react-icons/dist/es/icons/bold.js.map +0 -1
  590. package/dist/es/react-icons/dist/es/icons/close.js +0 -84
  591. package/dist/es/react-icons/dist/es/icons/close.js.map +0 -1
  592. package/dist/es/react-icons/dist/es/icons/code-block.js +0 -76
  593. package/dist/es/react-icons/dist/es/icons/code-block.js.map +0 -1
  594. package/dist/es/react-icons/dist/es/icons/code.js +0 -94
  595. package/dist/es/react-icons/dist/es/icons/code.js.map +0 -1
  596. package/dist/es/react-icons/dist/es/icons/delete.js +0 -114
  597. package/dist/es/react-icons/dist/es/icons/delete.js.map +0 -1
  598. package/dist/es/react-icons/dist/es/icons/italics.js +0 -94
  599. package/dist/es/react-icons/dist/es/icons/italics.js.map +0 -1
  600. package/dist/es/react-icons/dist/es/icons/link.js +0 -84
  601. package/dist/es/react-icons/dist/es/icons/link.js.map +0 -1
  602. package/dist/es/react-icons/dist/es/icons/ordered-list.js +0 -84
  603. package/dist/es/react-icons/dist/es/icons/ordered-list.js.map +0 -1
  604. package/dist/es/react-icons/dist/es/icons/pencil.js +0 -84
  605. package/dist/es/react-icons/dist/es/icons/pencil.js.map +0 -1
  606. package/dist/es/react-icons/dist/es/icons/text-align-center.js +0 -72
  607. package/dist/es/react-icons/dist/es/icons/text-align-center.js.map +0 -1
  608. package/dist/es/react-icons/dist/es/icons/text-align-justify.js +0 -72
  609. package/dist/es/react-icons/dist/es/icons/text-align-justify.js.map +0 -1
  610. package/dist/es/react-icons/dist/es/icons/text-align-left.js +0 -72
  611. package/dist/es/react-icons/dist/es/icons/text-align-left.js.map +0 -1
  612. package/dist/es/react-icons/dist/es/icons/text-align-right.js +0 -72
  613. package/dist/es/react-icons/dist/es/icons/text-align-right.js.map +0 -1
  614. package/dist/es/react-icons/dist/es/icons/text-format.js +0 -76
  615. package/dist/es/react-icons/dist/es/icons/text-format.js.map +0 -1
  616. package/dist/es/react-icons/dist/es/icons/underline.js +0 -75
  617. package/dist/es/react-icons/dist/es/icons/underline.js.map +0 -1
  618. package/dist/es/react-icons/dist/es/icons/unordered-list.js +0 -124
  619. package/dist/es/react-icons/dist/es/icons/unordered-list.js.map +0 -1
  620. /package/dist/cjs/{react-components/dist/es/packages/react-components/node_modules → node_modules}/clsx/dist/clsx.js +0 -0
  621. /package/dist/cjs/{react-editor/node_modules → node_modules}/validator/es/lib/isFQDN.js +0 -0
  622. /package/dist/cjs/{react-editor/node_modules → node_modules}/validator/es/lib/isIP.js +0 -0
  623. /package/dist/cjs/{react-editor/node_modules → node_modules}/validator/es/lib/isURL.js +0 -0
  624. /package/dist/cjs/{react-editor/node_modules → node_modules}/validator/es/lib/util/assertString.js +0 -0
  625. /package/dist/cjs/{react-editor/node_modules → node_modules}/validator/es/lib/util/merge.js +0 -0
  626. /package/dist/es/{react-components/dist/es/packages/react-components/node_modules → node_modules}/clsx/dist/clsx.js +0 -0
  627. /package/dist/es/{react-editor/node_modules → node_modules}/validator/es/lib/isFQDN.js +0 -0
  628. /package/dist/es/{react-editor/node_modules → node_modules}/validator/es/lib/isIP.js +0 -0
  629. /package/dist/es/{react-editor/node_modules → node_modules}/validator/es/lib/isURL.js +0 -0
  630. /package/dist/es/{react-editor/node_modules → node_modules}/validator/es/lib/util/assertString.js +0 -0
  631. /package/dist/es/{react-editor/node_modules → node_modules}/validator/es/lib/util/merge.js +0 -0
@@ -1,69 +0,0 @@
1
- import React__default from 'react';
2
- import { createContextScope } from '../../react-context/dist/index.js';
3
- import { useComposedRefs } from '../../react-compose-refs/dist/index.js';
4
- import { Slot } from '../../react-slot/dist/index.js';
5
- import { jsx } from 'react/jsx-runtime';
6
-
7
- function createCollection(name) {
8
- const PROVIDER_NAME = name + "CollectionProvider";
9
- const [createCollectionContext, createCollectionScope] = createContextScope(PROVIDER_NAME);
10
- const [CollectionProviderImpl, useCollectionContext] = createCollectionContext(
11
- PROVIDER_NAME,
12
- { collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }
13
- );
14
- const CollectionProvider = (props) => {
15
- const { scope, children } = props;
16
- const ref = React__default.useRef(null);
17
- const itemMap = React__default.useRef(/* @__PURE__ */ new Map()).current;
18
- return /* @__PURE__ */ jsx(CollectionProviderImpl, { scope, itemMap, collectionRef: ref, children });
19
- };
20
- CollectionProvider.displayName = PROVIDER_NAME;
21
- const COLLECTION_SLOT_NAME = name + "CollectionSlot";
22
- const CollectionSlot = React__default.forwardRef(
23
- (props, forwardedRef) => {
24
- const { scope, children } = props;
25
- const context = useCollectionContext(COLLECTION_SLOT_NAME, scope);
26
- const composedRefs = useComposedRefs(forwardedRef, context.collectionRef);
27
- return /* @__PURE__ */ jsx(Slot, { ref: composedRefs, children });
28
- }
29
- );
30
- CollectionSlot.displayName = COLLECTION_SLOT_NAME;
31
- const ITEM_SLOT_NAME = name + "CollectionItemSlot";
32
- const ITEM_DATA_ATTR = "data-radix-collection-item";
33
- const CollectionItemSlot = React__default.forwardRef(
34
- (props, forwardedRef) => {
35
- const { scope, children, ...itemData } = props;
36
- const ref = React__default.useRef(null);
37
- const composedRefs = useComposedRefs(forwardedRef, ref);
38
- const context = useCollectionContext(ITEM_SLOT_NAME, scope);
39
- React__default.useEffect(() => {
40
- context.itemMap.set(ref, { ref, ...itemData });
41
- return () => void context.itemMap.delete(ref);
42
- });
43
- return /* @__PURE__ */ jsx(Slot, { ...{ [ITEM_DATA_ATTR]: "" }, ref: composedRefs, children });
44
- }
45
- );
46
- CollectionItemSlot.displayName = ITEM_SLOT_NAME;
47
- function useCollection(scope) {
48
- const context = useCollectionContext(name + "CollectionConsumer", scope);
49
- const getItems = React__default.useCallback(() => {
50
- const collectionNode = context.collectionRef.current;
51
- if (!collectionNode) return [];
52
- const orderedNodes = Array.from(collectionNode.querySelectorAll(`[${ITEM_DATA_ATTR}]`));
53
- const items = Array.from(context.itemMap.values());
54
- const orderedItems = items.sort(
55
- (a, b) => orderedNodes.indexOf(a.ref.current) - orderedNodes.indexOf(b.ref.current)
56
- );
57
- return orderedItems;
58
- }, [context.collectionRef, context.itemMap]);
59
- return getItems;
60
- }
61
- return [
62
- { Provider: CollectionProvider, Slot: CollectionSlot, ItemSlot: CollectionItemSlot },
63
- useCollection,
64
- createCollectionScope
65
- ];
66
- }
67
-
68
- export { createCollection };
69
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sources":["../../../../../../../../../../react-components/dist/es/node_modules/@radix-ui/react-collection/dist/index.js"],"sourcesContent":["import React__default from 'react';\nimport { createContextScope } from '../../react-context/dist/index.js';\nimport { useComposedRefs } from '../../react-compose-refs/dist/index.js';\nimport { Slot } from '../../react-slot/dist/index.js';\nimport { jsx } from 'react/jsx-runtime';\n\nfunction createCollection(name) {\n const PROVIDER_NAME = name + \"CollectionProvider\";\n const [createCollectionContext, createCollectionScope] = createContextScope(PROVIDER_NAME);\n const [CollectionProviderImpl, useCollectionContext] = createCollectionContext(\n PROVIDER_NAME,\n { collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }\n );\n const CollectionProvider = (props) => {\n const { scope, children } = props;\n const ref = React__default.useRef(null);\n const itemMap = React__default.useRef(/* @__PURE__ */ new Map()).current;\n return /* @__PURE__ */ jsx(CollectionProviderImpl, { scope, itemMap, collectionRef: ref, children });\n };\n CollectionProvider.displayName = PROVIDER_NAME;\n const COLLECTION_SLOT_NAME = name + \"CollectionSlot\";\n const CollectionSlot = React__default.forwardRef(\n (props, forwardedRef) => {\n const { scope, children } = props;\n const context = useCollectionContext(COLLECTION_SLOT_NAME, scope);\n const composedRefs = useComposedRefs(forwardedRef, context.collectionRef);\n return /* @__PURE__ */ jsx(Slot, { ref: composedRefs, children });\n }\n );\n CollectionSlot.displayName = COLLECTION_SLOT_NAME;\n const ITEM_SLOT_NAME = name + \"CollectionItemSlot\";\n const ITEM_DATA_ATTR = \"data-radix-collection-item\";\n const CollectionItemSlot = React__default.forwardRef(\n (props, forwardedRef) => {\n const { scope, children, ...itemData } = props;\n const ref = React__default.useRef(null);\n const composedRefs = useComposedRefs(forwardedRef, ref);\n const context = useCollectionContext(ITEM_SLOT_NAME, scope);\n React__default.useEffect(() => {\n context.itemMap.set(ref, { ref, ...itemData });\n return () => void context.itemMap.delete(ref);\n });\n return /* @__PURE__ */ jsx(Slot, { ...{ [ITEM_DATA_ATTR]: \"\" }, ref: composedRefs, children });\n }\n );\n CollectionItemSlot.displayName = ITEM_SLOT_NAME;\n function useCollection(scope) {\n const context = useCollectionContext(name + \"CollectionConsumer\", scope);\n const getItems = React__default.useCallback(() => {\n const collectionNode = context.collectionRef.current;\n if (!collectionNode) return [];\n const orderedNodes = Array.from(collectionNode.querySelectorAll(`[${ITEM_DATA_ATTR}]`));\n const items = Array.from(context.itemMap.values());\n const orderedItems = items.sort(\n (a, b) => orderedNodes.indexOf(a.ref.current) - orderedNodes.indexOf(b.ref.current)\n );\n return orderedItems;\n }, [context.collectionRef, context.itemMap]);\n return getItems;\n }\n return [\n { Provider: CollectionProvider, Slot: CollectionSlot, ItemSlot: CollectionItemSlot },\n useCollection,\n createCollectionScope\n ];\n}\n\nexport { createCollection };\n//# sourceMappingURL=index.js.map\n"],"names":[],"mappings":";;;;;;AAMA,SAAS,gBAAgB,CAAC,IAAI,EAAE;AAChC,EAAE,MAAM,aAAa,GAAG,IAAI,GAAG,oBAAoB;AACnD,E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AY,GAAG,KAAK,CAAC,IAAI,CAAC,cAAc,CAAC,gBAAgB,CAAC,CAAC,CAAC,EAAE,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC;AAC7F,MAAM,MAAM,KAAK,GAAG,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,MAAM,EAAE,CAAC;AACxD,MAAM,MAAM,YAAY,GAAG,KAAK,CAAC,IAAI;AACrC,QAAQ,CAAC,CAAC,EAAE,CAAC,KAAK,YAAY,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,GAAG,YAAY,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,CAAC,OAAO;AAC1F,OAAO;AACP,MAAM,OAAO,YAAY;AACzB,KAAK,EAAE,CAAC,OAAO,CAAC,aAAa,EAAE,OAAO,CAAC,OAAO,CAAC,CAAC;AAChD,IAAI,OAAO,QAAQ;AACnB;AACA,EAAE,OAAO;AACT,IAAI,EAAE,QAAQ,EAAE,kBAAkB,EAAE,IAAI,EAAE,cAAc,EAAE,QAAQ,EAAE,kBAAkB,EAAE;AACxF,IAAI,aAAa;AACjB,IAAI;AACJ,GAAG;AACH;;;;","x_google_ignoreList":[0]}
@@ -1,19 +0,0 @@
1
- import * as React from 'react';
2
-
3
- // packages/react/compose-refs/src/composeRefs.tsx
4
- function setRef(ref, value) {
5
- if (typeof ref === "function") {
6
- ref(value);
7
- } else if (ref !== null && ref !== void 0) {
8
- ref.current = value;
9
- }
10
- }
11
- function composeRefs(...refs) {
12
- return (node) => refs.forEach((ref) => setRef(ref, node));
13
- }
14
- function useComposedRefs(...refs) {
15
- return React.useCallback(composeRefs(...refs), refs);
16
- }
17
-
18
- export { composeRefs, useComposedRefs };
19
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sources":["../../../../../../../../../../react-components/dist/es/node_modules/@radix-ui/react-compose-refs/dist/index.js"],"sourcesContent":["import * as React from 'react';\n\n// packages/react/compose-refs/src/composeRefs.tsx\nfunction setRef(ref, value) {\n if (typeof ref === \"function\") {\n ref(value);\n } else if (ref !== null && ref !== void 0) {\n ref.current = value;\n }\n}\nfunction composeRefs(...refs) {\n return (node) => refs.forEach((ref) => setRef(ref, node));\n}\nfunction useComposedRefs(...refs) {\n return React.useCallback(composeRefs(...refs), refs);\n}\n\nexport { composeRefs, useComposedRefs };\n//# sourceMappingURL=index.js.map\n"],"names":[],"mappings":";;AAEA;AACA,SAAS,MAAM,CAAC,GAAG,EAAE,KAAK,EAAE;AAC5B,EAAE,IAAI,OAAO,GAAG,KAAK,UAAU,EAAE;AACjC,IAAI,GAAG,CAAC,KAAK,CAAC;AACd,GAAG,MAAM,IAAI,GAAG,KAAK,IAAI,IAAI,GAAG,KAAK,MAAM,EAAE;AAC7C,IAAI,GAAG,CAAC,OAAO,GAAG,KAAK;AACvB;AACA;AACA,SAAS,WAAW,CAAC,GAAG,IAAI,EAAE;AAC9B,EAAE,OAAO,CAAC,IAAI,KAAK,IAAI,CAAC,OAAO,CAAC,CAAC,GAAG,KAAK,MAAM,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC;AAC3D;AACA,SAAS,eAAe,CAAC,GAAG,IAAI,EAAE;AAClC,EAAE,OAAO,KAAK,CAAC,WAAW,CAAC,WAAW,CAAC,GAAG,IAAI,CAAC,EAAE,IAAI,CAAC;AACtD;;;;","x_google_ignoreList":[0]}
@@ -1,80 +0,0 @@
1
- import * as React from 'react';
2
- import { jsx } from 'react/jsx-runtime';
3
-
4
- // packages/react/context/src/createContext.tsx
5
- function createContext2(rootComponentName, defaultContext) {
6
- const Context = React.createContext(defaultContext);
7
- function Provider(props) {
8
- const { children, ...context } = props;
9
- const value = React.useMemo(() => context, Object.values(context));
10
- return /* @__PURE__ */ jsx(Context.Provider, { value, children });
11
- }
12
- function useContext2(consumerName) {
13
- const context = React.useContext(Context);
14
- if (context) return context;
15
- if (defaultContext !== void 0) return defaultContext;
16
- throw new Error(`\`${consumerName}\` must be used within \`${rootComponentName}\``);
17
- }
18
- Provider.displayName = rootComponentName + "Provider";
19
- return [Provider, useContext2];
20
- }
21
- function createContextScope(scopeName, createContextScopeDeps = []) {
22
- let defaultContexts = [];
23
- function createContext3(rootComponentName, defaultContext) {
24
- const BaseContext = React.createContext(defaultContext);
25
- const index = defaultContexts.length;
26
- defaultContexts = [...defaultContexts, defaultContext];
27
- function Provider(props) {
28
- const { scope, children, ...context } = props;
29
- const Context = scope?.[scopeName][index] || BaseContext;
30
- const value = React.useMemo(() => context, Object.values(context));
31
- return /* @__PURE__ */ jsx(Context.Provider, { value, children });
32
- }
33
- function useContext2(consumerName, scope) {
34
- const Context = scope?.[scopeName][index] || BaseContext;
35
- const context = React.useContext(Context);
36
- if (context) return context;
37
- if (defaultContext !== void 0) return defaultContext;
38
- throw new Error(`\`${consumerName}\` must be used within \`${rootComponentName}\``);
39
- }
40
- Provider.displayName = rootComponentName + "Provider";
41
- return [Provider, useContext2];
42
- }
43
- const createScope = () => {
44
- const scopeContexts = defaultContexts.map((defaultContext) => {
45
- return React.createContext(defaultContext);
46
- });
47
- return function useScope(scope) {
48
- const contexts = scope?.[scopeName] || scopeContexts;
49
- return React.useMemo(
50
- () => ({ [`__scope${scopeName}`]: { ...scope, [scopeName]: contexts } }),
51
- [scope, contexts]
52
- );
53
- };
54
- };
55
- createScope.scopeName = scopeName;
56
- return [createContext3, composeContextScopes(createScope, ...createContextScopeDeps)];
57
- }
58
- function composeContextScopes(...scopes) {
59
- const baseScope = scopes[0];
60
- if (scopes.length === 1) return baseScope;
61
- const createScope = () => {
62
- const scopeHooks = scopes.map((createScope2) => ({
63
- useScope: createScope2(),
64
- scopeName: createScope2.scopeName
65
- }));
66
- return function useComposedScopes(overrideScopes) {
67
- const nextScopes = scopeHooks.reduce((nextScopes2, { useScope, scopeName }) => {
68
- const scopeProps = useScope(overrideScopes);
69
- const currentScope = scopeProps[`__scope${scopeName}`];
70
- return { ...nextScopes2, ...currentScope };
71
- }, {});
72
- return React.useMemo(() => ({ [`__scope${baseScope.scopeName}`]: nextScopes }), [nextScopes]);
73
- };
74
- };
75
- createScope.scopeName = baseScope.scopeName;
76
- return createScope;
77
- }
78
-
79
- export { createContext2 as createContext, createContextScope };
80
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sources":["../../../../../../../../../../react-components/dist/es/node_modules/@radix-ui/react-context/dist/index.js"],"sourcesContent":["import * as React from 'react';\nimport { jsx } from 'react/jsx-runtime';\n\n// packages/react/context/src/createContext.tsx\nfunction createContext2(rootComponentName, defaultContext) {\n const Context = React.createContext(defaultContext);\n function Provider(props) {\n const { children, ...context } = props;\n const value = React.useMemo(() => context, Object.values(context));\n return /* @__PURE__ */ jsx(Context.Provider, { value, children });\n }\n function useContext2(consumerName) {\n const context = React.useContext(Context);\n if (context) return context;\n if (defaultContext !== void 0) return defaultContext;\n throw new Error(`\\`${consumerName}\\` must be used within \\`${rootComponentName}\\``);\n }\n Provider.displayName = rootComponentName + \"Provider\";\n return [Provider, useContext2];\n}\nfunction createContextScope(scopeName, createContextScopeDeps = []) {\n let defaultContexts = [];\n function createContext3(rootComponentName, defaultContext) {\n const BaseContext = React.createContext(defaultContext);\n const index = defaultContexts.length;\n defaultContexts = [...defaultContexts, defaultContext];\n function Provider(props) {\n const { scope, children, ...context } = props;\n const Context = scope?.[scopeName][index] || BaseContext;\n const value = React.useMemo(() => context, Object.values(context));\n return /* @__PURE__ */ jsx(Context.Provider, { value, children });\n }\n function useContext2(consumerName, scope) {\n const Context = scope?.[scopeName][index] || BaseContext;\n const context = React.useContext(Context);\n if (context) return context;\n if (defaultContext !== void 0) return defaultContext;\n throw new Error(`\\`${consumerName}\\` must be used within \\`${rootComponentName}\\``);\n }\n Provider.displayName = rootComponentName + \"Provider\";\n return [Provider, useContext2];\n }\n const createScope = () => {\n const scopeContexts = defaultContexts.map((defaultContext) => {\n return React.createContext(defaultContext);\n });\n return function useScope(scope) {\n const contexts = scope?.[scopeName] || scopeContexts;\n return React.useMemo(\n () => ({ [`__scope${scopeName}`]: { ...scope, [scopeName]: contexts } }),\n [scope, contexts]\n );\n };\n };\n createScope.scopeName = scopeName;\n return [createContext3, composeContextScopes(createScope, ...createContextScopeDeps)];\n}\nfunction composeContextScopes(...scopes) {\n const baseScope = scopes[0];\n if (scopes.length === 1) return baseScope;\n const createScope = () => {\n const scopeHooks = scopes.map((createScope2) => ({\n useScope: createScope2(),\n scopeName: createScope2.scopeName\n }));\n return function useComposedScopes(overrideScopes) {\n const nextScopes = scopeHooks.reduce((nextScopes2, { useScope, scopeName }) => {\n const scopeProps = useScope(overrideScopes);\n const currentScope = scopeProps[`__scope${scopeName}`];\n return { ...nextScopes2, ...currentScope };\n }, {});\n return React.useMemo(() => ({ [`__scope${baseScope.scopeName}`]: nextScopes }), [nextScopes]);\n };\n };\n createScope.scopeName = baseScope.scopeName;\n return createScope;\n}\n\nexport { createContext2 as createContext, createContextScope };\n//# sourceMappingURL=index.js.map\n"],"names":[],"mappings":";;;AAGA;AACA,SAAS,cAAc,CAAC,iBAAiB,EAAE,cAAc,EAAE;AAC3D,EAAE,MAAM,OAAO,GAAG,KAAK,CAAC,aAAa,CAAC,cAAc,CAAC;AACrD,EAAE,SAAS,QAAQ,CAAC,KAAK,EAAE;AAC3B,IAAI,MAAM,EAAE,QAAQ,EAAE,GAAG,OAAO,EAAE,GAAG,KAAK;AAC1C,IAAI,MAAM,KAAK,GAAG,KAAK,CAAC,OAAO,CAAC,MAAM,OAAO,EAAE,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;AACtE,IAAI,uBAAuB,GAAG,CAAC,OAAO,CAAC,QAAQ,EAAE,EAAE,KAAK,EAAE,QAAQ,EAAE,CAAC;AACrE;AACA,EAAE,SAAS,WAAW,CAAC,YAAY,EAAE;AACrC,IAAI,MAAM,OAAO,GAAG,KAAK,CAAC,UAAU,CAAC,OAAO,CAAC;AAC7C,IAAI,IAAI,OAAO,EAAE,OAAO,OAA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MAAM;AAC5B,IAAI,MAAM,UAAU,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,YAAY,MAAM;AACrD,MAAM,QAAQ,EAAE,YAAY,EAAE;AAC9B,MAAM,SAAS,EAAE,YAAY,CAAC;AAC9B,KAAK,CAAC,CAAC;AACP,IAAI,OAAO,SAAS,iBAAiB,CAAC,cAAc,EAAE;AACtD,MAAM,MAAM,UAAU,GAAG,UAAU,CAAC,MAAM,CAAC,CAAC,WAAW,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,KAAK;AACrF,QAAQ,MAAM,UAAU,GAAG,QAAQ,CAAC,cAAc,CAAC;AACnD,QAAQ,MAAM,YAAY,GAAG,UAAU,CAAC,CAAC,OAAO,EAAE,SAAS,CAAC,CAAC,CAAC;AAC9D,QAAQ,OAAO,EAAE,GAAG,WAAW,EAAE,GAAG,YAAY,EAAE;AAClD,OAAO,EAAE,EAAE,CAAC;AACZ,MAAM,OAAO,KAAK,CAAC,OAAO,CAAC,OAAO,EAAE,CAAC,CAAC,OAAO,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC,GAAG,UAAU,EAAE,CAAC,EAAE,CAAC,UAAU,CAAC,CAAC;AACnG,KAAK;AACL,GAAG;AACH,EAAE,WAAW,CAAC,SAAS,GAAG,SAAS,CAAC,SAAS;AAC7C,EAAE,OAAO,WAAW;AACpB;;;;","x_google_ignoreList":[0]}
@@ -1,318 +0,0 @@
1
- import * as React from 'react';
2
- import { composeEventHandlers } from '../../primitive/dist/index.js';
3
- import { useComposedRefs } from '../../react-compose-refs/dist/index.js';
4
- import { createContextScope, createContext as createContext2 } from '../../react-context/dist/index.js';
5
- import { useId } from '../../react-id/dist/index.js';
6
- import { useControllableState } from '../../react-use-controllable-state/dist/index.js';
7
- import { DismissableLayer } from '../../react-dismissable-layer/dist/index.js';
8
- import { FocusScope } from '../../react-focus-scope/dist/index.js';
9
- import { Portal as Portal$1 } from '../../react-portal/dist/index.js';
10
- import { Presence } from '../../react-presence/dist/index.js';
11
- import { Primitive } from '../../react-primitive/dist/index.js';
12
- import { useFocusGuards } from '../../react-focus-guards/dist/index.js';
13
- import RemoveScroll from '../../../react-remove-scroll/dist/es2015/Combination.js';
14
- import { hideOthers } from '../../../aria-hidden/dist/es2015/index.js';
15
- import { Slot } from '../../react-slot/dist/index.js';
16
- import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
17
-
18
- var DIALOG_NAME = "Dialog";
19
- var [createDialogContext, createDialogScope] = createContextScope(DIALOG_NAME);
20
- var [DialogProvider, useDialogContext] = createDialogContext(DIALOG_NAME);
21
- var Dialog = (props) => {
22
- const {
23
- __scopeDialog,
24
- children,
25
- open: openProp,
26
- defaultOpen,
27
- onOpenChange,
28
- modal = true
29
- } = props;
30
- const triggerRef = React.useRef(null);
31
- const contentRef = React.useRef(null);
32
- const [open = false, setOpen] = useControllableState({
33
- prop: openProp,
34
- defaultProp: defaultOpen,
35
- onChange: onOpenChange
36
- });
37
- return /* @__PURE__ */ jsx(
38
- DialogProvider,
39
- {
40
- scope: __scopeDialog,
41
- triggerRef,
42
- contentRef,
43
- contentId: useId(),
44
- titleId: useId(),
45
- descriptionId: useId(),
46
- open,
47
- onOpenChange: setOpen,
48
- onOpenToggle: React.useCallback(() => setOpen((prevOpen) => !prevOpen), [setOpen]),
49
- modal,
50
- children
51
- }
52
- );
53
- };
54
- Dialog.displayName = DIALOG_NAME;
55
- var TRIGGER_NAME = "DialogTrigger";
56
- var DialogTrigger = React.forwardRef(
57
- (props, forwardedRef) => {
58
- const { __scopeDialog, ...triggerProps } = props;
59
- const context = useDialogContext(TRIGGER_NAME, __scopeDialog);
60
- const composedTriggerRef = useComposedRefs(forwardedRef, context.triggerRef);
61
- return /* @__PURE__ */ jsx(
62
- Primitive.button,
63
- {
64
- type: "button",
65
- "aria-haspopup": "dialog",
66
- "aria-expanded": context.open,
67
- "aria-controls": context.contentId,
68
- "data-state": getState(context.open),
69
- ...triggerProps,
70
- ref: composedTriggerRef,
71
- onClick: composeEventHandlers(props.onClick, context.onOpenToggle)
72
- }
73
- );
74
- }
75
- );
76
- DialogTrigger.displayName = TRIGGER_NAME;
77
- var PORTAL_NAME = "DialogPortal";
78
- var [PortalProvider, usePortalContext] = createDialogContext(PORTAL_NAME, {
79
- forceMount: void 0
80
- });
81
- var DialogPortal = (props) => {
82
- const { __scopeDialog, forceMount, children, container } = props;
83
- const context = useDialogContext(PORTAL_NAME, __scopeDialog);
84
- return /* @__PURE__ */ jsx(PortalProvider, { scope: __scopeDialog, forceMount, children: React.Children.map(children, (child) => /* @__PURE__ */ jsx(Presence, { present: forceMount || context.open, children: /* @__PURE__ */ jsx(Portal$1, { asChild: true, container, children: child }) })) });
85
- };
86
- DialogPortal.displayName = PORTAL_NAME;
87
- var OVERLAY_NAME = "DialogOverlay";
88
- var DialogOverlay = React.forwardRef(
89
- (props, forwardedRef) => {
90
- const portalContext = usePortalContext(OVERLAY_NAME, props.__scopeDialog);
91
- const { forceMount = portalContext.forceMount, ...overlayProps } = props;
92
- const context = useDialogContext(OVERLAY_NAME, props.__scopeDialog);
93
- return context.modal ? /* @__PURE__ */ jsx(Presence, { present: forceMount || context.open, children: /* @__PURE__ */ jsx(DialogOverlayImpl, { ...overlayProps, ref: forwardedRef }) }) : null;
94
- }
95
- );
96
- DialogOverlay.displayName = OVERLAY_NAME;
97
- var DialogOverlayImpl = React.forwardRef(
98
- (props, forwardedRef) => {
99
- const { __scopeDialog, ...overlayProps } = props;
100
- const context = useDialogContext(OVERLAY_NAME, __scopeDialog);
101
- return (
102
- // Make sure `Content` is scrollable even when it doesn't live inside `RemoveScroll`
103
- // ie. when `Overlay` and `Content` are siblings
104
- /* @__PURE__ */ jsx(RemoveScroll, { as: Slot, allowPinchZoom: true, shards: [context.contentRef], children: /* @__PURE__ */ jsx(
105
- Primitive.div,
106
- {
107
- "data-state": getState(context.open),
108
- ...overlayProps,
109
- ref: forwardedRef,
110
- style: { pointerEvents: "auto", ...overlayProps.style }
111
- }
112
- ) })
113
- );
114
- }
115
- );
116
- var CONTENT_NAME = "DialogContent";
117
- var DialogContent = React.forwardRef(
118
- (props, forwardedRef) => {
119
- const portalContext = usePortalContext(CONTENT_NAME, props.__scopeDialog);
120
- const { forceMount = portalContext.forceMount, ...contentProps } = props;
121
- const context = useDialogContext(CONTENT_NAME, props.__scopeDialog);
122
- return /* @__PURE__ */ jsx(Presence, { present: forceMount || context.open, children: context.modal ? /* @__PURE__ */ jsx(DialogContentModal, { ...contentProps, ref: forwardedRef }) : /* @__PURE__ */ jsx(DialogContentNonModal, { ...contentProps, ref: forwardedRef }) });
123
- }
124
- );
125
- DialogContent.displayName = CONTENT_NAME;
126
- var DialogContentModal = React.forwardRef(
127
- (props, forwardedRef) => {
128
- const context = useDialogContext(CONTENT_NAME, props.__scopeDialog);
129
- const contentRef = React.useRef(null);
130
- const composedRefs = useComposedRefs(forwardedRef, context.contentRef, contentRef);
131
- React.useEffect(() => {
132
- const content = contentRef.current;
133
- if (content) return hideOthers(content);
134
- }, []);
135
- return /* @__PURE__ */ jsx(
136
- DialogContentImpl,
137
- {
138
- ...props,
139
- ref: composedRefs,
140
- trapFocus: context.open,
141
- disableOutsidePointerEvents: true,
142
- onCloseAutoFocus: composeEventHandlers(props.onCloseAutoFocus, (event) => {
143
- event.preventDefault();
144
- context.triggerRef.current?.focus();
145
- }),
146
- onPointerDownOutside: composeEventHandlers(props.onPointerDownOutside, (event) => {
147
- const originalEvent = event.detail.originalEvent;
148
- const ctrlLeftClick = originalEvent.button === 0 && originalEvent.ctrlKey === true;
149
- const isRightClick = originalEvent.button === 2 || ctrlLeftClick;
150
- if (isRightClick) event.preventDefault();
151
- }),
152
- onFocusOutside: composeEventHandlers(
153
- props.onFocusOutside,
154
- (event) => event.preventDefault()
155
- )
156
- }
157
- );
158
- }
159
- );
160
- var DialogContentNonModal = React.forwardRef(
161
- (props, forwardedRef) => {
162
- const context = useDialogContext(CONTENT_NAME, props.__scopeDialog);
163
- const hasInteractedOutsideRef = React.useRef(false);
164
- const hasPointerDownOutsideRef = React.useRef(false);
165
- return /* @__PURE__ */ jsx(
166
- DialogContentImpl,
167
- {
168
- ...props,
169
- ref: forwardedRef,
170
- trapFocus: false,
171
- disableOutsidePointerEvents: false,
172
- onCloseAutoFocus: (event) => {
173
- props.onCloseAutoFocus?.(event);
174
- if (!event.defaultPrevented) {
175
- if (!hasInteractedOutsideRef.current) context.triggerRef.current?.focus();
176
- event.preventDefault();
177
- }
178
- hasInteractedOutsideRef.current = false;
179
- hasPointerDownOutsideRef.current = false;
180
- },
181
- onInteractOutside: (event) => {
182
- props.onInteractOutside?.(event);
183
- if (!event.defaultPrevented) {
184
- hasInteractedOutsideRef.current = true;
185
- if (event.detail.originalEvent.type === "pointerdown") {
186
- hasPointerDownOutsideRef.current = true;
187
- }
188
- }
189
- const target = event.target;
190
- const targetIsTrigger = context.triggerRef.current?.contains(target);
191
- if (targetIsTrigger) event.preventDefault();
192
- if (event.detail.originalEvent.type === "focusin" && hasPointerDownOutsideRef.current) {
193
- event.preventDefault();
194
- }
195
- }
196
- }
197
- );
198
- }
199
- );
200
- var DialogContentImpl = React.forwardRef(
201
- (props, forwardedRef) => {
202
- const { __scopeDialog, trapFocus, onOpenAutoFocus, onCloseAutoFocus, ...contentProps } = props;
203
- const context = useDialogContext(CONTENT_NAME, __scopeDialog);
204
- const contentRef = React.useRef(null);
205
- const composedRefs = useComposedRefs(forwardedRef, contentRef);
206
- useFocusGuards();
207
- return /* @__PURE__ */ jsxs(Fragment, { children: [
208
- /* @__PURE__ */ jsx(
209
- FocusScope,
210
- {
211
- asChild: true,
212
- loop: true,
213
- trapped: trapFocus,
214
- onMountAutoFocus: onOpenAutoFocus,
215
- onUnmountAutoFocus: onCloseAutoFocus,
216
- children: /* @__PURE__ */ jsx(
217
- DismissableLayer,
218
- {
219
- role: "dialog",
220
- id: context.contentId,
221
- "aria-describedby": context.descriptionId,
222
- "aria-labelledby": context.titleId,
223
- "data-state": getState(context.open),
224
- ...contentProps,
225
- ref: composedRefs,
226
- onDismiss: () => context.onOpenChange(false)
227
- }
228
- )
229
- }
230
- ),
231
- /* @__PURE__ */ jsxs(Fragment, { children: [
232
- /* @__PURE__ */ jsx(TitleWarning, { titleId: context.titleId }),
233
- /* @__PURE__ */ jsx(DescriptionWarning, { contentRef, descriptionId: context.descriptionId })
234
- ] })
235
- ] });
236
- }
237
- );
238
- var TITLE_NAME = "DialogTitle";
239
- var DialogTitle = React.forwardRef(
240
- (props, forwardedRef) => {
241
- const { __scopeDialog, ...titleProps } = props;
242
- const context = useDialogContext(TITLE_NAME, __scopeDialog);
243
- return /* @__PURE__ */ jsx(Primitive.h2, { id: context.titleId, ...titleProps, ref: forwardedRef });
244
- }
245
- );
246
- DialogTitle.displayName = TITLE_NAME;
247
- var DESCRIPTION_NAME = "DialogDescription";
248
- var DialogDescription = React.forwardRef(
249
- (props, forwardedRef) => {
250
- const { __scopeDialog, ...descriptionProps } = props;
251
- const context = useDialogContext(DESCRIPTION_NAME, __scopeDialog);
252
- return /* @__PURE__ */ jsx(Primitive.p, { id: context.descriptionId, ...descriptionProps, ref: forwardedRef });
253
- }
254
- );
255
- DialogDescription.displayName = DESCRIPTION_NAME;
256
- var CLOSE_NAME = "DialogClose";
257
- var DialogClose = React.forwardRef(
258
- (props, forwardedRef) => {
259
- const { __scopeDialog, ...closeProps } = props;
260
- const context = useDialogContext(CLOSE_NAME, __scopeDialog);
261
- return /* @__PURE__ */ jsx(
262
- Primitive.button,
263
- {
264
- type: "button",
265
- ...closeProps,
266
- ref: forwardedRef,
267
- onClick: composeEventHandlers(props.onClick, () => context.onOpenChange(false))
268
- }
269
- );
270
- }
271
- );
272
- DialogClose.displayName = CLOSE_NAME;
273
- function getState(open) {
274
- return open ? "open" : "closed";
275
- }
276
- var TITLE_WARNING_NAME = "DialogTitleWarning";
277
- var [WarningProvider, useWarningContext] = createContext2(TITLE_WARNING_NAME, {
278
- contentName: CONTENT_NAME,
279
- titleName: TITLE_NAME,
280
- docsSlug: "dialog"
281
- });
282
- var TitleWarning = ({ titleId }) => {
283
- const titleWarningContext = useWarningContext(TITLE_WARNING_NAME);
284
- const MESSAGE = `\`${titleWarningContext.contentName}\` requires a \`${titleWarningContext.titleName}\` for the component to be accessible for screen reader users.
285
-
286
- If you want to hide the \`${titleWarningContext.titleName}\`, you can wrap it with our VisuallyHidden component.
287
-
288
- For more information, see https://radix-ui.com/primitives/docs/components/${titleWarningContext.docsSlug}`;
289
- React.useEffect(() => {
290
- if (titleId) {
291
- const hasTitle = document.getElementById(titleId);
292
- if (!hasTitle) console.error(MESSAGE);
293
- }
294
- }, [MESSAGE, titleId]);
295
- return null;
296
- };
297
- var DESCRIPTION_WARNING_NAME = "DialogDescriptionWarning";
298
- var DescriptionWarning = ({ contentRef, descriptionId }) => {
299
- const descriptionWarningContext = useWarningContext(DESCRIPTION_WARNING_NAME);
300
- const MESSAGE = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${descriptionWarningContext.contentName}}.`;
301
- React.useEffect(() => {
302
- const describedById = contentRef.current?.getAttribute("aria-describedby");
303
- if (descriptionId && describedById) {
304
- const hasDescription = document.getElementById(descriptionId);
305
- if (!hasDescription) console.warn(MESSAGE);
306
- }
307
- }, [MESSAGE, contentRef, descriptionId]);
308
- return null;
309
- };
310
- var Root = Dialog;
311
- var Portal = DialogPortal;
312
- var Overlay = DialogOverlay;
313
- var Content = DialogContent;
314
- var Title = DialogTitle;
315
- var Description = DialogDescription;
316
-
317
- export { Content, Description, Dialog, DialogClose, DialogContent, DialogDescription, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Overlay, Portal, Root, Title, WarningProvider, createDialogScope };
318
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sources":["../../../../../../../../../../react-components/dist/es/node_modules/@radix-ui/react-dialog/dist/index.js"],"sourcesContent":["import * as React from 'react';\nimport { composeEventHandlers } from '../../primitive/dist/index.js';\nimport { useComposedRefs } from '../../react-compose-refs/dist/index.js';\nimport { createContextScope, createContext as createContext2 } from '../../react-context/dist/index.js';\nimport { useId } from '../../react-id/dist/index.js';\nimport { useControllableState } from '../../react-use-controllable-state/dist/index.js';\nimport { DismissableLayer } from '../../react-dismissable-layer/dist/index.js';\nimport { FocusScope } from '../../react-focus-scope/dist/index.js';\nimport { Portal as Portal$1 } from '../../react-portal/dist/index.js';\nimport { Presence } from '../../react-presence/dist/index.js';\nimport { Primitive } from '../../react-primitive/dist/index.js';\nimport { useFocusGuards } from '../../react-focus-guards/dist/index.js';\nimport RemoveScroll from '../../../react-remove-scroll/dist/es2015/Combination.js';\nimport { hideOthers } from '../../../aria-hidden/dist/es2015/index.js';\nimport { Slot } from '../../react-slot/dist/index.js';\nimport { jsx, jsxs, Fragment } from 'react/jsx-runtime';\n\nvar DIALOG_NAME = \"Dialog\";\nvar [createDialogContext, createDialogScope] = createContextScope(DIALOG_NAME);\nvar [DialogProvider, useDialogContext] = createDialogContext(DIALOG_NAME);\nvar Dialog = (props) => {\n const {\n __scopeDialog,\n children,\n open: openProp,\n defaultOpen,\n onOpenChange,\n modal = true\n } = props;\n const triggerRef = React.useRef(null);\n const contentRef = React.useRef(null);\n const [open = false, setOpen] = useControllableState({\n prop: openProp,\n defaultProp: defaultOpen,\n onChange: onOpenChange\n });\n return /* @__PURE__ */ jsx(\n DialogProvider,\n {\n scope: __scopeDialog,\n triggerRef,\n contentRef,\n contentId: useId(),\n titleId: useId(),\n descriptionId: useId(),\n open,\n onOpenChange: setOpen,\n onOpenToggle: React.useCallback(() => setOpen((prevOpen) => !prevOpen), [setOpen]),\n modal,\n children\n }\n );\n};\nDialog.displayName = DIALOG_NAME;\nvar TRIGGER_NAME = \"DialogTrigger\";\nvar DialogTrigger = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeDialog, ...triggerProps } = props;\n const context = useDialogContext(TRIGGER_NAME, __scopeDialog);\n const composedTriggerRef = useComposedRefs(forwardedRef, context.triggerRef);\n return /* @__PURE__ */ jsx(\n Primitive.button,\n {\n type: \"button\",\n \"aria-haspopup\": \"dialog\",\n \"aria-expanded\": context.open,\n \"aria-controls\": context.contentId,\n \"data-state\": getState(context.open),\n ...triggerProps,\n ref: composedTriggerRef,\n onClick: composeEventHandlers(props.onClick, context.onOpenToggle)\n }\n );\n }\n);\nDialogTrigger.displayName = TRIGGER_NAME;\nvar PORTAL_NAME = \"DialogPortal\";\nvar [PortalProvider, usePortalContext] = createDialogContext(PORTAL_NAME, {\n forceMount: void 0\n});\nvar DialogPortal = (props) => {\n const { __scopeDialog, forceMount, children, container } = props;\n const context = useDialogContext(PORTAL_NAME, __scopeDialog);\n return /* @__PURE__ */ jsx(PortalProvider, { scope: __scopeDialog, forceMount, children: React.Children.map(children, (child) => /* @__PURE__ */ jsx(Presence, { present: forceMount || context.open, children: /* @__PURE__ */ jsx(Portal$1, { asChild: true, container, children: child }) })) });\n};\nDialogPortal.displayName = PORTAL_NAME;\nvar OVERLAY_NAME = \"DialogOverlay\";\nvar DialogOverlay = React.forwardRef(\n (props, forwardedRef) => {\n const portalContext = usePortalContext(OVERLAY_NAME, props.__scopeDialog);\n const { forceMount = portalContext.forceMount, ...overlayProps } = props;\n const context = useDialogContext(OVERLAY_NAME, props.__scopeDialog);\n return context.modal ? /* @__PURE__ */ jsx(Presence, { present: forceMount || context.open, children: /* @__PURE__ */ jsx(DialogOverlayImpl, { ...overlayProps, ref: forwardedRef }) }) : null;\n }\n);\nDialogOverlay.displayName = OVERLAY_NAME;\nvar DialogOverlayImpl = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeDialog, ...overlayProps } = props;\n const context = useDialogContext(OVERLAY_NAME, __scopeDialog);\n return (\n // Make sure `Content` is scrollable even when it doesn't live inside `RemoveScroll`\n // ie. when `Overlay` and `Content` are siblings\n /* @__PURE__ */ jsx(RemoveScroll, { as: Slot, allowPinchZoom: true, shards: [context.contentRef], children: /* @__PURE__ */ jsx(\n Primitive.div,\n {\n \"data-state\": getState(context.open),\n ...overlayProps,\n ref: forwardedRef,\n style: { pointerEvents: \"auto\", ...overlayProps.style }\n }\n ) })\n );\n }\n);\nvar CONTENT_NAME = \"DialogContent\";\nvar DialogContent = React.forwardRef(\n (props, forwardedRef) => {\n const portalContext = usePortalContext(CONTENT_NAME, props.__scopeDialog);\n const { forceMount = portalContext.forceMount, ...contentProps } = props;\n const context = useDialogContext(CONTENT_NAME, props.__scopeDialog);\n return /* @__PURE__ */ jsx(Presence, { present: forceMount || context.open, children: context.modal ? /* @__PURE__ */ jsx(DialogContentModal, { ...contentProps, ref: forwardedRef }) : /* @__PURE__ */ jsx(DialogContentNonModal, { ...contentProps, ref: forwardedRef }) });\n }\n);\nDialogContent.displayName = CONTENT_NAME;\nvar DialogContentModal = React.forwardRef(\n (props, forwardedRef) => {\n const context = useDialogContext(CONTENT_NAME, props.__scopeDialog);\n const contentRef = React.useRef(null);\n const composedRefs = useComposedRefs(forwardedRef, context.contentRef, contentRef);\n React.useEffect(() => {\n const content = contentRef.current;\n if (content) return hideOthers(content);\n }, []);\n return /* @__PURE__ */ jsx(\n DialogContentImpl,\n {\n ...props,\n ref: composedRefs,\n trapFocus: context.open,\n disableOutsidePointerEvents: true,\n onCloseAutoFocus: composeEventHandlers(props.onCloseAutoFocus, (event) => {\n event.preventDefault();\n context.triggerRef.current?.focus();\n }),\n onPointerDownOutside: composeEventHandlers(props.onPointerDownOutside, (event) => {\n const originalEvent = event.detail.originalEvent;\n const ctrlLeftClick = originalEvent.button === 0 && originalEvent.ctrlKey === true;\n const isRightClick = originalEvent.button === 2 || ctrlLeftClick;\n if (isRightClick) event.preventDefault();\n }),\n onFocusOutside: composeEventHandlers(\n props.onFocusOutside,\n (event) => event.preventDefault()\n )\n }\n );\n }\n);\nvar DialogContentNonModal = React.forwardRef(\n (props, forwardedRef) => {\n const context = useDialogContext(CONTENT_NAME, props.__scopeDialog);\n const hasInteractedOutsideRef = React.useRef(false);\n const hasPointerDownOutsideRef = React.useRef(false);\n return /* @__PURE__ */ jsx(\n DialogContentImpl,\n {\n ...props,\n ref: forwardedRef,\n trapFocus: false,\n disableOutsidePointerEvents: false,\n onCloseAutoFocus: (event) => {\n props.onCloseAutoFocus?.(event);\n if (!event.defaultPrevented) {\n if (!hasInteractedOutsideRef.current) context.triggerRef.current?.focus();\n event.preventDefault();\n }\n hasInteractedOutsideRef.current = false;\n hasPointerDownOutsideRef.current = false;\n },\n onInteractOutside: (event) => {\n props.onInteractOutside?.(event);\n if (!event.defaultPrevented) {\n hasInteractedOutsideRef.current = true;\n if (event.detail.originalEvent.type === \"pointerdown\") {\n hasPointerDownOutsideRef.current = true;\n }\n }\n const target = event.target;\n const targetIsTrigger = context.triggerRef.current?.contains(target);\n if (targetIsTrigger) event.preventDefault();\n if (event.detail.originalEvent.type === \"focusin\" && hasPointerDownOutsideRef.current) {\n event.preventDefault();\n }\n }\n }\n );\n }\n);\nvar DialogContentImpl = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeDialog, trapFocus, onOpenAutoFocus, onCloseAutoFocus, ...contentProps } = props;\n const context = useDialogContext(CONTENT_NAME, __scopeDialog);\n const contentRef = React.useRef(null);\n const composedRefs = useComposedRefs(forwardedRef, contentRef);\n useFocusGuards();\n return /* @__PURE__ */ jsxs(Fragment, { children: [\n /* @__PURE__ */ jsx(\n FocusScope,\n {\n asChild: true,\n loop: true,\n trapped: trapFocus,\n onMountAutoFocus: onOpenAutoFocus,\n onUnmountAutoFocus: onCloseAutoFocus,\n children: /* @__PURE__ */ jsx(\n DismissableLayer,\n {\n role: \"dialog\",\n id: context.contentId,\n \"aria-describedby\": context.descriptionId,\n \"aria-labelledby\": context.titleId,\n \"data-state\": getState(context.open),\n ...contentProps,\n ref: composedRefs,\n onDismiss: () => context.onOpenChange(false)\n }\n )\n }\n ),\n /* @__PURE__ */ jsxs(Fragment, { children: [\n /* @__PURE__ */ jsx(TitleWarning, { titleId: context.titleId }),\n /* @__PURE__ */ jsx(DescriptionWarning, { contentRef, descriptionId: context.descriptionId })\n ] })\n ] });\n }\n);\nvar TITLE_NAME = \"DialogTitle\";\nvar DialogTitle = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeDialog, ...titleProps } = props;\n const context = useDialogContext(TITLE_NAME, __scopeDialog);\n return /* @__PURE__ */ jsx(Primitive.h2, { id: context.titleId, ...titleProps, ref: forwardedRef });\n }\n);\nDialogTitle.displayName = TITLE_NAME;\nvar DESCRIPTION_NAME = \"DialogDescription\";\nvar DialogDescription = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeDialog, ...descriptionProps } = props;\n const context = useDialogContext(DESCRIPTION_NAME, __scopeDialog);\n return /* @__PURE__ */ jsx(Primitive.p, { id: context.descriptionId, ...descriptionProps, ref: forwardedRef });\n }\n);\nDialogDescription.displayName = DESCRIPTION_NAME;\nvar CLOSE_NAME = \"DialogClose\";\nvar DialogClose = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeDialog, ...closeProps } = props;\n const context = useDialogContext(CLOSE_NAME, __scopeDialog);\n return /* @__PURE__ */ jsx(\n Primitive.button,\n {\n type: \"button\",\n ...closeProps,\n ref: forwardedRef,\n onClick: composeEventHandlers(props.onClick, () => context.onOpenChange(false))\n }\n );\n }\n);\nDialogClose.displayName = CLOSE_NAME;\nfunction getState(open) {\n return open ? \"open\" : \"closed\";\n}\nvar TITLE_WARNING_NAME = \"DialogTitleWarning\";\nvar [WarningProvider, useWarningContext] = createContext2(TITLE_WARNING_NAME, {\n contentName: CONTENT_NAME,\n titleName: TITLE_NAME,\n docsSlug: \"dialog\"\n});\nvar TitleWarning = ({ titleId }) => {\n const titleWarningContext = useWarningContext(TITLE_WARNING_NAME);\n const MESSAGE = `\\`${titleWarningContext.contentName}\\` requires a \\`${titleWarningContext.titleName}\\` for the component to be accessible for screen reader users.\n\nIf you want to hide the \\`${titleWarningContext.titleName}\\`, you can wrap it with our VisuallyHidden component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/${titleWarningContext.docsSlug}`;\n React.useEffect(() => {\n if (titleId) {\n const hasTitle = document.getElementById(titleId);\n if (!hasTitle) console.error(MESSAGE);\n }\n }, [MESSAGE, titleId]);\n return null;\n};\nvar DESCRIPTION_WARNING_NAME = \"DialogDescriptionWarning\";\nvar DescriptionWarning = ({ contentRef, descriptionId }) => {\n const descriptionWarningContext = useWarningContext(DESCRIPTION_WARNING_NAME);\n const MESSAGE = `Warning: Missing \\`Description\\` or \\`aria-describedby={undefined}\\` for {${descriptionWarningContext.contentName}}.`;\n React.useEffect(() => {\n const describedById = contentRef.current?.getAttribute(\"aria-describedby\");\n if (descriptionId && describedById) {\n const hasDescription = document.getElementById(descriptionId);\n if (!hasDescription) console.warn(MESSAGE);\n }\n }, [MESSAGE, contentRef, descriptionId]);\n return null;\n};\nvar Root = Dialog;\nvar Trigger = DialogTrigger;\nvar Portal = DialogPortal;\nvar Overlay = DialogOverlay;\nvar Content = DialogContent;\nvar Title = DialogTitle;\nvar Description = DialogDescription;\nvar Close = DialogClose;\n\nexport { Close, Content, Description, Dialog, DialogClose, DialogContent, DialogDescription, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Overlay, Portal, Root, Title, Trigger, WarningProvider, createDialogScope };\n//# sourceMappingURL=index.js.map\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAiBA,IAAI,WAAW,GAAG,QAAQ;AACvB,IAAC,CAAC,mBAAmB,EAAE,iBAAiB,CAAC,GAAG,kBAAkB,CAAC,WAAW;AAC7E,IAAI,CAAC,cAAc,EAAE,gBAAgB,CAAC,GAAG,mBAAmB,CAAC,WAAW,CAAC;AACtE,IAAC,MAAM,GAAG,CAAC,KAAK,KAAK;AACxB,EAAE,MAAM;AACR,IAAI,aAAa;AACjB,IAAI,QAAQ;AACZ,IAAI,IAAI,EAAE,QAAQ;AAClB,IAAI,WAAW;AACf,IAAI,YAAY;AAChB,IAAI,KAAK,GAAG;AACZ,GAAG,GAAG,KAAK;AACX,EAAE,MAAM,UAAU,GAAG,KAAK,CAAC,MAAM,CAAC,IAAI,CA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;AACjB,MAAM,MAAM,QAAQ,GAAG,QAAQ,CAAC,cAAc,CAAC,OAAO,CAAC;AACvD,MAAM,IAAI,CAAC,QAAQ,EAAE,OAAO,CAAC,KAAK,CAAC,OAAO,CAAC;AAC3C;AACA,GAAG,EAAE,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;AACxB,EAAE,OAAO,IAAI;AACb,CAAC;AACD,IAAI,wBAAwB,GAAG,0BAA0B;AACzD,IAAI,kBAAkB,GAAG,CAAC,EAAE,UAAU,EAAE,aAAa,EAAE,KAAK;AAC5D,EAAE,MAAM,yBAAyB,GAAG,iBAAiB,CAAC,wBAAwB,CAAC;AAC/E,EAAE,MAAM,OAAO,GAAG,CAAC,0EAA0E,EAAE,yBAAyB,CAAC,WAAW,CAAC,EAAE,CAAC;AACxI,EAAE,KAAK,CAAC,SAAS,CAAC,MAAM;AACxB,IAAI,MAAM,aAAa,GAAG,UAAU,CAAC,OAAO,EAAE,YAAY,CAAC,kBAAkB,CAAC;AAC9E,IAAI,IAAI,aAAa,IAAI,aAAa,EAAE;AACxC,MAAM,MAAM,cAAc,GAAG,QAAQ,CAAC,cAAc,CAAC,aAAa,CAAC;AACnE,MAAM,IAAI,CAAC,cAAc,EAAE,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC;AAChD;AACA,GAAG,EAAE,CAAC,OAAO,EAAE,UAAU,EAAE,aAAa,CAAC,CAAC;AAC1C,EAAE,OAAO,IAAI;AACb,CAAC;AACE,IAAC,IAAI,GAAG;AAER,IAAC,MAAM,GAAG;AACV,IAAC,OAAO,GAAG;AACX,IAAC,OAAO,GAAG;AACX,IAAC,KAAK,GAAG;AACT,IAAC,WAAW,GAAG;;;;","x_google_ignoreList":[0]}
@@ -1,12 +0,0 @@
1
- import * as React from 'react';
2
- import 'react/jsx-runtime';
3
-
4
- // packages/react/direction/src/Direction.tsx
5
- var DirectionContext = React.createContext(void 0);
6
- function useDirection(localDir) {
7
- const globalDir = React.useContext(DirectionContext);
8
- return localDir || globalDir || "ltr";
9
- }
10
-
11
- export { useDirection };
12
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sources":["../../../../../../../../../../react-components/dist/es/node_modules/@radix-ui/react-direction/dist/index.js"],"sourcesContent":["import * as React from 'react';\nimport 'react/jsx-runtime';\n\n// packages/react/direction/src/Direction.tsx\nvar DirectionContext = React.createContext(void 0);\nfunction useDirection(localDir) {\n const globalDir = React.useContext(DirectionContext);\n return localDir || globalDir || \"ltr\";\n}\n\nexport { useDirection };\n//# sourceMappingURL=index.js.map\n"],"names":[],"mappings":";;;AAGA;AACA,IAAI,gBAAgB,GAAG,KAAK,CAAC,aAAa,CAAC,MAAM,CAAC;AAClD,SAAS,YAAY,CAAC,QAAQ,EAAE;AAChC,EAAE,MAAM,SAAS,GAAG,KAAK,CAAC,UAAU,CAAC,gBAAgB,CAAC;AACtD,EAAE,OAAO,QAAQ,IAAI,SAAS,IAAI,KAAK;AACvC;;;;","x_google_ignoreList":[0]}