@sparrowengg/twigs-editor-react 0.0.1 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (630) hide show
  1. package/dist/cjs/_virtual/isURL.js +1 -1
  2. package/dist/cjs/components/base-dropdown/index.js +13 -15
  3. package/dist/cjs/components/base-dropdown/index.js.map +1 -1
  4. package/dist/cjs/components/dialog-link-editor/index.js +16 -16
  5. package/dist/cjs/components/dialog-link-editor/link-editor-dialog.js +21 -28
  6. package/dist/cjs/components/dialog-link-editor/link-editor-dialog.js.map +1 -1
  7. package/dist/cjs/components/dialog-link-editor/link-tooltip.js +13 -17
  8. package/dist/cjs/components/dialog-link-editor/link-tooltip.js.map +1 -1
  9. package/dist/cjs/components/floating-toolbar/floating-toolbar.js +18 -18
  10. package/dist/cjs/components/floating-toolbar/floating-toolbar.js.map +1 -1
  11. package/dist/cjs/components/rich-editor/index.js +7 -7
  12. package/dist/cjs/components/rich-editor/index.js.map +1 -1
  13. package/dist/cjs/components/toolbar/toolbar.js +5 -5
  14. package/dist/cjs/components/toolbar/toolbar.js.map +1 -1
  15. package/dist/cjs/components/toolbar/tools/bold.js +5 -5
  16. package/dist/cjs/components/toolbar/tools/bold.js.map +1 -1
  17. package/dist/cjs/components/toolbar/tools/code-block.js +5 -5
  18. package/dist/cjs/components/toolbar/tools/code-block.js.map +1 -1
  19. package/dist/cjs/components/toolbar/tools/code.js +5 -5
  20. package/dist/cjs/components/toolbar/tools/code.js.map +1 -1
  21. package/dist/cjs/components/toolbar/tools/format.js +9 -10
  22. package/dist/cjs/components/toolbar/tools/format.js.map +1 -1
  23. package/dist/cjs/components/toolbar/tools/italic.js +5 -5
  24. package/dist/cjs/components/toolbar/tools/italic.js.map +1 -1
  25. package/dist/cjs/components/toolbar/tools/link.js +5 -5
  26. package/dist/cjs/components/toolbar/tools/link.js.map +1 -1
  27. package/dist/cjs/components/toolbar/tools/ordered-list.js +5 -5
  28. package/dist/cjs/components/toolbar/tools/ordered-list.js.map +1 -1
  29. package/dist/cjs/components/toolbar/tools/text-align.js +8 -11
  30. package/dist/cjs/components/toolbar/tools/text-align.js.map +1 -1
  31. package/dist/cjs/components/toolbar/tools/underline.js +5 -5
  32. package/dist/cjs/components/toolbar/tools/underline.js.map +1 -1
  33. package/dist/cjs/components/toolbar/tools/unordered-list.js +5 -5
  34. package/dist/cjs/components/toolbar/tools/unordered-list.js.map +1 -1
  35. package/dist/cjs/components/toolbar-context/context.js +3 -3
  36. package/dist/cjs/components/toolbar-context/store.js +9 -9
  37. package/dist/cjs/editor.js +5 -3
  38. package/dist/cjs/editor.js.map +1 -1
  39. package/dist/cjs/node_modules/clsx/dist/clsx.js.map +1 -0
  40. package/dist/cjs/node_modules/validator/es/lib/isFQDN.js.map +1 -0
  41. package/dist/cjs/node_modules/validator/es/lib/isIP.js.map +1 -0
  42. package/dist/cjs/node_modules/validator/es/lib/isURL.js.map +1 -0
  43. package/dist/cjs/node_modules/validator/es/lib/util/assertString.js.map +1 -0
  44. package/dist/cjs/node_modules/validator/es/lib/util/merge.js.map +1 -0
  45. package/dist/cjs/{react-editor/node_modules → node_modules}/validator/lib/isFQDN.js +1 -1
  46. package/dist/cjs/node_modules/validator/lib/isFQDN.js.map +1 -0
  47. package/dist/cjs/{react-editor/node_modules → node_modules}/validator/lib/isIP.js +1 -1
  48. package/dist/cjs/node_modules/validator/lib/isIP.js.map +1 -0
  49. package/dist/cjs/{react-editor/node_modules → node_modules}/validator/lib/isURL.js +1 -1
  50. package/dist/cjs/node_modules/validator/lib/isURL.js.map +1 -0
  51. package/dist/cjs/{react-editor/node_modules → node_modules}/validator/lib/util/assertString.js +1 -1
  52. package/dist/cjs/node_modules/validator/lib/util/assertString.js.map +1 -0
  53. package/dist/cjs/{react-editor/node_modules → node_modules}/validator/lib/util/merge.js +1 -1
  54. package/dist/cjs/node_modules/validator/lib/util/merge.js.map +1 -0
  55. package/dist/cjs/nodes/image.js +4 -4
  56. package/dist/cjs/nodes/image.js.map +1 -1
  57. package/dist/cjs/plugins/data-management-plugin/index.js +3 -3
  58. package/dist/cjs/plugins/emoji/index.js +5 -3
  59. package/dist/cjs/plugins/emoji/index.js.map +1 -1
  60. package/dist/cjs/plugins/hashtag/index.js +2 -0
  61. package/dist/cjs/plugins/hashtag/index.js.map +1 -1
  62. package/dist/cjs/plugins/images/index.js +2 -2
  63. package/dist/cjs/plugins/link/convert-selection-on-paste.js +2 -2
  64. package/dist/cjs/plugins/link/link.js +2 -2
  65. package/dist/cjs/plugins/mentions/index.js +2 -0
  66. package/dist/cjs/plugins/mentions/index.js.map +1 -1
  67. package/dist/cjs/plugins/tab-focus/index.js +3 -3
  68. package/dist/cjs/utils/prefix-class-name.js +2 -2
  69. package/dist/cjs/utils/prefix-class-name.js.map +1 -1
  70. package/dist/cjs/utils/use-node-focus.js +2 -2
  71. package/dist/es/_virtual/isURL.js +1 -1
  72. package/dist/es/components/base-dropdown/index.js +1 -3
  73. package/dist/es/components/base-dropdown/index.js.map +1 -1
  74. package/dist/es/components/dialog-link-editor/index.js +1 -1
  75. package/dist/es/components/dialog-link-editor/link-editor-dialog.js +2 -9
  76. package/dist/es/components/dialog-link-editor/link-editor-dialog.js.map +1 -1
  77. package/dist/es/components/dialog-link-editor/link-tooltip.js +2 -6
  78. package/dist/es/components/dialog-link-editor/link-tooltip.js.map +1 -1
  79. package/dist/es/components/floating-toolbar/floating-toolbar.js +2 -2
  80. package/dist/es/components/rich-editor/index.js +1 -1
  81. package/dist/es/components/toolbar/toolbar.js +1 -1
  82. package/dist/es/components/toolbar/tools/bold.js +3 -3
  83. package/dist/es/components/toolbar/tools/code-block.js +3 -3
  84. package/dist/es/components/toolbar/tools/code.js +3 -3
  85. package/dist/es/components/toolbar/tools/format.js +2 -3
  86. package/dist/es/components/toolbar/tools/format.js.map +1 -1
  87. package/dist/es/components/toolbar/tools/italic.js +3 -3
  88. package/dist/es/components/toolbar/tools/link.js +3 -3
  89. package/dist/es/components/toolbar/tools/ordered-list.js +3 -3
  90. package/dist/es/components/toolbar/tools/text-align.js +3 -6
  91. package/dist/es/components/toolbar/tools/text-align.js.map +1 -1
  92. package/dist/es/components/toolbar/tools/underline.js +3 -3
  93. package/dist/es/components/toolbar/tools/unordered-list.js +3 -3
  94. package/dist/es/editor.js +2 -0
  95. package/dist/es/editor.js.map +1 -1
  96. package/dist/es/node_modules/clsx/dist/clsx.js.map +1 -0
  97. package/dist/es/node_modules/validator/es/lib/isFQDN.js.map +1 -0
  98. package/dist/es/node_modules/validator/es/lib/isIP.js.map +1 -0
  99. package/dist/es/node_modules/validator/es/lib/isURL.js.map +1 -0
  100. package/dist/es/node_modules/validator/es/lib/util/assertString.js.map +1 -0
  101. package/dist/es/node_modules/validator/es/lib/util/merge.js.map +1 -0
  102. package/dist/es/{react-editor/node_modules → node_modules}/validator/lib/isFQDN.js +1 -1
  103. package/dist/es/node_modules/validator/lib/isFQDN.js.map +1 -0
  104. package/dist/es/{react-editor/node_modules → node_modules}/validator/lib/isIP.js +1 -1
  105. package/dist/es/node_modules/validator/lib/isIP.js.map +1 -0
  106. package/dist/es/{react-editor/node_modules → node_modules}/validator/lib/isURL.js +1 -1
  107. package/dist/es/node_modules/validator/lib/isURL.js.map +1 -0
  108. package/dist/es/{react-editor/node_modules → node_modules}/validator/lib/util/assertString.js +1 -1
  109. package/dist/es/node_modules/validator/lib/util/assertString.js.map +1 -0
  110. package/dist/es/{react-editor/node_modules → node_modules}/validator/lib/util/merge.js +1 -1
  111. package/dist/es/node_modules/validator/lib/util/merge.js.map +1 -0
  112. package/dist/es/nodes/image.js +1 -1
  113. package/dist/es/plugins/emoji/index.js +2 -0
  114. package/dist/es/plugins/emoji/index.js.map +1 -1
  115. package/dist/es/plugins/hashtag/index.js +2 -0
  116. package/dist/es/plugins/hashtag/index.js.map +1 -1
  117. package/dist/es/plugins/mentions/index.js +2 -0
  118. package/dist/es/plugins/mentions/index.js.map +1 -1
  119. package/dist/es/utils/prefix-class-name.js +1 -1
  120. package/package.json +3 -1
  121. package/dist/cjs/react-components/dist/es/_virtual/_commonjsHelpers.js +0 -8
  122. package/dist/cjs/react-components/dist/es/_virtual/_commonjsHelpers.js.map +0 -1
  123. package/dist/cjs/react-components/dist/es/_virtual/index.js +0 -6
  124. package/dist/cjs/react-components/dist/es/_virtual/index.js.map +0 -1
  125. package/dist/cjs/react-components/dist/es/_virtual/index2.js +0 -6
  126. package/dist/cjs/react-components/dist/es/_virtual/index2.js.map +0 -1
  127. package/dist/cjs/react-components/dist/es/_virtual/react-is.development.js +0 -6
  128. package/dist/cjs/react-components/dist/es/_virtual/react-is.development.js.map +0 -1
  129. package/dist/cjs/react-components/dist/es/_virtual/react-is.production.min.js +0 -6
  130. package/dist/cjs/react-components/dist/es/_virtual/react-is.production.min.js.map +0 -1
  131. package/dist/cjs/react-components/dist/es/box/box.js +0 -47
  132. package/dist/cjs/react-components/dist/es/box/box.js.map +0 -1
  133. package/dist/cjs/react-components/dist/es/button/button.js +0 -774
  134. package/dist/cjs/react-components/dist/es/button/button.js.map +0 -1
  135. package/dist/cjs/react-components/dist/es/button/icon-button.js +0 -77
  136. package/dist/cjs/react-components/dist/es/button/icon-button.js.map +0 -1
  137. package/dist/cjs/react-components/dist/es/button/side-element.js +0 -199
  138. package/dist/cjs/react-components/dist/es/button/side-element.js.map +0 -1
  139. package/dist/cjs/react-components/dist/es/button/utils.js +0 -105
  140. package/dist/cjs/react-components/dist/es/button/utils.js.map +0 -1
  141. package/dist/cjs/react-components/dist/es/dialog/dialog.js +0 -197
  142. package/dist/cjs/react-components/dist/es/dialog/dialog.js.map +0 -1
  143. package/dist/cjs/react-components/dist/es/dropdown/dropdown.js +0 -195
  144. package/dist/cjs/react-components/dist/es/dropdown/dropdown.js.map +0 -1
  145. package/dist/cjs/react-components/dist/es/flex/flex.js +0 -98
  146. package/dist/cjs/react-components/dist/es/flex/flex.js.map +0 -1
  147. package/dist/cjs/react-components/dist/es/form-helper-text/form-helper-text.js +0 -76
  148. package/dist/cjs/react-components/dist/es/form-helper-text/form-helper-text.js.map +0 -1
  149. package/dist/cjs/react-components/dist/es/form-label/form-label.js +0 -176
  150. package/dist/cjs/react-components/dist/es/form-label/form-label.js.map +0 -1
  151. package/dist/cjs/react-components/dist/es/input/form-input.js +0 -159
  152. package/dist/cjs/react-components/dist/es/input/form-input.js.map +0 -1
  153. package/dist/cjs/react-components/dist/es/input/input.js +0 -377
  154. package/dist/cjs/react-components/dist/es/input/input.js.map +0 -1
  155. package/dist/cjs/react-components/dist/es/link/link.js +0 -58
  156. package/dist/cjs/react-components/dist/es/link/link.js.map +0 -1
  157. package/dist/cjs/react-components/dist/es/loader/circle.js +0 -204
  158. package/dist/cjs/react-components/dist/es/loader/circle.js.map +0 -1
  159. package/dist/cjs/react-components/dist/es/loader/line.js +0 -130
  160. package/dist/cjs/react-components/dist/es/loader/line.js.map +0 -1
  161. package/dist/cjs/react-components/dist/es/node_modules/@babel/runtime/helpers/esm/extends.js +0 -21
  162. package/dist/cjs/react-components/dist/es/node_modules/@babel/runtime/helpers/esm/extends.js.map +0 -1
  163. package/dist/cjs/react-components/dist/es/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js +0 -14
  164. package/dist/cjs/react-components/dist/es/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js.map +0 -1
  165. package/dist/cjs/react-components/dist/es/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +0 -19
  166. package/dist/cjs/react-components/dist/es/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js.map +0 -1
  167. package/dist/cjs/react-components/dist/es/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js +0 -14
  168. package/dist/cjs/react-components/dist/es/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js.map +0 -1
  169. package/dist/cjs/react-components/dist/es/node_modules/@floating-ui/core/dist/floating-ui.core.js +0 -788
  170. package/dist/cjs/react-components/dist/es/node_modules/@floating-ui/core/dist/floating-ui.core.js.map +0 -1
  171. package/dist/cjs/react-components/dist/es/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +0 -612
  172. package/dist/cjs/react-components/dist/es/node_modules/@floating-ui/dom/dist/floating-ui.dom.js.map +0 -1
  173. package/dist/cjs/react-components/dist/es/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js +0 -299
  174. package/dist/cjs/react-components/dist/es/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js.map +0 -1
  175. package/dist/cjs/react-components/dist/es/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +0 -146
  176. package/dist/cjs/react-components/dist/es/node_modules/@floating-ui/utils/dist/floating-ui.utils.js.map +0 -1
  177. package/dist/cjs/react-components/dist/es/node_modules/@floating-ui/utils/dom/dist/floating-ui.utils.dom.js +0 -148
  178. package/dist/cjs/react-components/dist/es/node_modules/@floating-ui/utils/dom/dist/floating-ui.utils.dom.js.map +0 -1
  179. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/primitive/dist/index.js +0 -14
  180. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/primitive/dist/index.js.map +0 -1
  181. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-arrow/dist/index.js +0 -48
  182. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-arrow/dist/index.js.map +0 -1
  183. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-collection/dist/index.js +0 -71
  184. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-collection/dist/index.js.map +0 -1
  185. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-compose-refs/dist/index.js +0 -41
  186. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-compose-refs/dist/index.js.map +0 -1
  187. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-context/dist/index.js +0 -102
  188. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-context/dist/index.js.map +0 -1
  189. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-dialog/dist/index.js +0 -354
  190. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-dialog/dist/index.js.map +0 -1
  191. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-direction/dist/index.js +0 -33
  192. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-direction/dist/index.js.map +0 -1
  193. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-dismissable-layer/dist/index.js +0 -234
  194. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-dismissable-layer/dist/index.js.map +0 -1
  195. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-dropdown-menu/dist/index.js +0 -303
  196. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-dropdown-menu/dist/index.js.map +0 -1
  197. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-focus-guards/dist/index.js +0 -48
  198. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-focus-guards/dist/index.js.map +0 -1
  199. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-focus-scope/dist/index.js +0 -229
  200. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-focus-scope/dist/index.js.map +0 -1
  201. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-id/dist/index.js +0 -37
  202. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-id/dist/index.js.map +0 -1
  203. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-label/dist/index.js +0 -47
  204. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-label/dist/index.js.map +0 -1
  205. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-menu/dist/index.js +0 -847
  206. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-menu/dist/index.js.map +0 -1
  207. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-popper/dist/index.js +0 -309
  208. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-popper/dist/index.js.map +0 -1
  209. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-portal/dist/index.js +0 -39
  210. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-portal/dist/index.js.map +0 -1
  211. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-presence/dist/index.js +0 -142
  212. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-presence/dist/index.js.map +0 -1
  213. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-primitive/dist/index.js +0 -65
  214. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-primitive/dist/index.js.map +0 -1
  215. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-roving-focus/dist/index.js +0 -246
  216. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-roving-focus/dist/index.js.map +0 -1
  217. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-slot/dist/index.js +0 -104
  218. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-slot/dist/index.js.map +0 -1
  219. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-tooltip/dist/index.js +0 -509
  220. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-tooltip/dist/index.js.map +0 -1
  221. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-use-callback-ref/dist/index.js +0 -34
  222. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-use-callback-ref/dist/index.js.map +0 -1
  223. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-use-controllable-state/dist/index.js +0 -68
  224. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-use-controllable-state/dist/index.js.map +0 -1
  225. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-use-escape-keydown/dist/index.js +0 -40
  226. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-use-escape-keydown/dist/index.js.map +0 -1
  227. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-use-layout-effect/dist/index.js +0 -29
  228. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-use-layout-effect/dist/index.js.map +0 -1
  229. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-use-size/dist/index.js +0 -62
  230. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-use-size/dist/index.js.map +0 -1
  231. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-visually-hidden/dist/index.js +0 -58
  232. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-visually-hidden/dist/index.js.map +0 -1
  233. package/dist/cjs/react-components/dist/es/node_modules/@stitches/react/dist/index.js +0 -9
  234. package/dist/cjs/react-components/dist/es/node_modules/@stitches/react/dist/index.js.map +0 -1
  235. package/dist/cjs/react-components/dist/es/node_modules/aria-hidden/dist/es2015/index.js +0 -134
  236. package/dist/cjs/react-components/dist/es/node_modules/aria-hidden/dist/es2015/index.js.map +0 -1
  237. package/dist/cjs/react-components/dist/es/node_modules/dom-helpers/esm/addClass.js +0 -19
  238. package/dist/cjs/react-components/dist/es/node_modules/dom-helpers/esm/addClass.js.map +0 -1
  239. package/dist/cjs/react-components/dist/es/node_modules/dom-helpers/esm/hasClass.js +0 -17
  240. package/dist/cjs/react-components/dist/es/node_modules/dom-helpers/esm/hasClass.js.map +0 -1
  241. package/dist/cjs/react-components/dist/es/node_modules/dom-helpers/esm/removeClass.js +0 -27
  242. package/dist/cjs/react-components/dist/es/node_modules/dom-helpers/esm/removeClass.js.map +0 -1
  243. package/dist/cjs/react-components/dist/es/node_modules/get-nonce/dist/es2015/index.js +0 -11
  244. package/dist/cjs/react-components/dist/es/node_modules/get-nonce/dist/es2015/index.js.map +0 -1
  245. package/dist/cjs/react-components/dist/es/node_modules/object-assign/index.js +0 -102
  246. package/dist/cjs/react-components/dist/es/node_modules/object-assign/index.js.map +0 -1
  247. package/dist/cjs/react-components/dist/es/node_modules/prop-types/checkPropTypes.js +0 -118
  248. package/dist/cjs/react-components/dist/es/node_modules/prop-types/checkPropTypes.js.map +0 -1
  249. package/dist/cjs/react-components/dist/es/node_modules/prop-types/factoryWithThrowingShims.js +0 -77
  250. package/dist/cjs/react-components/dist/es/node_modules/prop-types/factoryWithThrowingShims.js.map +0 -1
  251. package/dist/cjs/react-components/dist/es/node_modules/prop-types/factoryWithTypeCheckers.js +0 -628
  252. package/dist/cjs/react-components/dist/es/node_modules/prop-types/factoryWithTypeCheckers.js.map +0 -1
  253. package/dist/cjs/react-components/dist/es/node_modules/prop-types/index.js +0 -35
  254. package/dist/cjs/react-components/dist/es/node_modules/prop-types/index.js.map +0 -1
  255. package/dist/cjs/react-components/dist/es/node_modules/prop-types/lib/ReactPropTypesSecret.js +0 -24
  256. package/dist/cjs/react-components/dist/es/node_modules/prop-types/lib/ReactPropTypesSecret.js.map +0 -1
  257. package/dist/cjs/react-components/dist/es/node_modules/prop-types/lib/has.js +0 -14
  258. package/dist/cjs/react-components/dist/es/node_modules/prop-types/lib/has.js.map +0 -1
  259. package/dist/cjs/react-components/dist/es/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js +0 -193
  260. package/dist/cjs/react-components/dist/es/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js.map +0 -1
  261. package/dist/cjs/react-components/dist/es/node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js +0 -29
  262. package/dist/cjs/react-components/dist/es/node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js.map +0 -1
  263. package/dist/cjs/react-components/dist/es/node_modules/prop-types/node_modules/react-is/index.js +0 -22
  264. package/dist/cjs/react-components/dist/es/node_modules/prop-types/node_modules/react-is/index.js.map +0 -1
  265. package/dist/cjs/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/Combination.js +0 -34
  266. package/dist/cjs/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/Combination.js.map +0 -1
  267. package/dist/cjs/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/SideEffect.js +0 -184
  268. package/dist/cjs/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/SideEffect.js.map +0 -1
  269. package/dist/cjs/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/UI.js +0 -60
  270. package/dist/cjs/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/UI.js.map +0 -1
  271. package/dist/cjs/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js +0 -24
  272. package/dist/cjs/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js.map +0 -1
  273. package/dist/cjs/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/handleScroll.js +0 -110
  274. package/dist/cjs/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/handleScroll.js.map +0 -1
  275. package/dist/cjs/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/medium.js +0 -8
  276. package/dist/cjs/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/medium.js.map +0 -1
  277. package/dist/cjs/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/sidecar.js +0 -12
  278. package/dist/cjs/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/sidecar.js.map +0 -1
  279. package/dist/cjs/react-components/dist/es/node_modules/react-remove-scroll-bar/dist/es2015/component.js +0 -80
  280. package/dist/cjs/react-components/dist/es/node_modules/react-remove-scroll-bar/dist/es2015/component.js.map +0 -1
  281. package/dist/cjs/react-components/dist/es/node_modules/react-remove-scroll-bar/dist/es2015/constants.js +0 -16
  282. package/dist/cjs/react-components/dist/es/node_modules/react-remove-scroll-bar/dist/es2015/constants.js.map +0 -1
  283. package/dist/cjs/react-components/dist/es/node_modules/react-remove-scroll-bar/dist/es2015/utils.js +0 -35
  284. package/dist/cjs/react-components/dist/es/node_modules/react-remove-scroll-bar/dist/es2015/utils.js.map +0 -1
  285. package/dist/cjs/react-components/dist/es/node_modules/react-style-singleton/dist/es2015/component.js +0 -22
  286. package/dist/cjs/react-components/dist/es/node_modules/react-style-singleton/dist/es2015/component.js.map +0 -1
  287. package/dist/cjs/react-components/dist/es/node_modules/react-style-singleton/dist/es2015/hook.js +0 -47
  288. package/dist/cjs/react-components/dist/es/node_modules/react-style-singleton/dist/es2015/hook.js.map +0 -1
  289. package/dist/cjs/react-components/dist/es/node_modules/react-style-singleton/dist/es2015/singleton.js +0 -54
  290. package/dist/cjs/react-components/dist/es/node_modules/react-style-singleton/dist/es2015/singleton.js.map +0 -1
  291. package/dist/cjs/react-components/dist/es/node_modules/react-transition-group/esm/CSSTransition.js +0 -419
  292. package/dist/cjs/react-components/dist/es/node_modules/react-transition-group/esm/CSSTransition.js.map +0 -1
  293. package/dist/cjs/react-components/dist/es/node_modules/react-transition-group/esm/Transition.js +0 -637
  294. package/dist/cjs/react-components/dist/es/node_modules/react-transition-group/esm/Transition.js.map +0 -1
  295. package/dist/cjs/react-components/dist/es/node_modules/react-transition-group/esm/TransitionGroupContext.js +0 -10
  296. package/dist/cjs/react-components/dist/es/node_modules/react-transition-group/esm/TransitionGroupContext.js.map +0 -1
  297. package/dist/cjs/react-components/dist/es/node_modules/react-transition-group/esm/config.js +0 -10
  298. package/dist/cjs/react-components/dist/es/node_modules/react-transition-group/esm/config.js.map +0 -1
  299. package/dist/cjs/react-components/dist/es/node_modules/react-transition-group/esm/utils/PropTypes.js +0 -25
  300. package/dist/cjs/react-components/dist/es/node_modules/react-transition-group/esm/utils/PropTypes.js.map +0 -1
  301. package/dist/cjs/react-components/dist/es/node_modules/react-transition-group/esm/utils/reflow.js +0 -8
  302. package/dist/cjs/react-components/dist/es/node_modules/react-transition-group/esm/utils/reflow.js.map +0 -1
  303. package/dist/cjs/react-components/dist/es/node_modules/tslib/tslib.es6.js +0 -55
  304. package/dist/cjs/react-components/dist/es/node_modules/tslib/tslib.es6.js.map +0 -1
  305. package/dist/cjs/react-components/dist/es/node_modules/use-callback-ref/dist/es2015/assignRef.js +0 -27
  306. package/dist/cjs/react-components/dist/es/node_modules/use-callback-ref/dist/es2015/assignRef.js.map +0 -1
  307. package/dist/cjs/react-components/dist/es/node_modules/use-callback-ref/dist/es2015/useMergeRef.js +0 -25
  308. package/dist/cjs/react-components/dist/es/node_modules/use-callback-ref/dist/es2015/useMergeRef.js.map +0 -1
  309. package/dist/cjs/react-components/dist/es/node_modules/use-callback-ref/dist/es2015/useRef.js +0 -45
  310. package/dist/cjs/react-components/dist/es/node_modules/use-callback-ref/dist/es2015/useRef.js.map +0 -1
  311. package/dist/cjs/react-components/dist/es/node_modules/use-sidecar/dist/es2015/exports.js +0 -43
  312. package/dist/cjs/react-components/dist/es/node_modules/use-sidecar/dist/es2015/exports.js.map +0 -1
  313. package/dist/cjs/react-components/dist/es/node_modules/use-sidecar/dist/es2015/medium.js +0 -80
  314. package/dist/cjs/react-components/dist/es/node_modules/use-sidecar/dist/es2015/medium.js.map +0 -1
  315. package/dist/cjs/react-components/dist/es/packages/react-components/node_modules/clsx/dist/clsx.js.map +0 -1
  316. package/dist/cjs/react-components/dist/es/packages/react-icons/dist/es/icons/info.js +0 -97
  317. package/dist/cjs/react-components/dist/es/packages/react-icons/dist/es/icons/info.js.map +0 -1
  318. package/dist/cjs/react-components/dist/es/stitches.config.js +0 -392
  319. package/dist/cjs/react-components/dist/es/stitches.config.js.map +0 -1
  320. package/dist/cjs/react-components/dist/es/text/text.js +0 -117
  321. package/dist/cjs/react-components/dist/es/text/text.js.map +0 -1
  322. package/dist/cjs/react-components/dist/es/tooltip/tooltip.js +0 -156
  323. package/dist/cjs/react-components/dist/es/tooltip/tooltip.js.map +0 -1
  324. package/dist/cjs/react-components/dist/es/utils/prefix-class-name.js +0 -10
  325. package/dist/cjs/react-components/dist/es/utils/prefix-class-name.js.map +0 -1
  326. package/dist/cjs/react-editor/node_modules/clsx/dist/clsx.js +0 -9
  327. package/dist/cjs/react-editor/node_modules/clsx/dist/clsx.js.map +0 -1
  328. package/dist/cjs/react-editor/node_modules/validator/es/lib/isFQDN.js.map +0 -1
  329. package/dist/cjs/react-editor/node_modules/validator/es/lib/isIP.js.map +0 -1
  330. package/dist/cjs/react-editor/node_modules/validator/es/lib/isURL.js.map +0 -1
  331. package/dist/cjs/react-editor/node_modules/validator/es/lib/util/assertString.js.map +0 -1
  332. package/dist/cjs/react-editor/node_modules/validator/es/lib/util/merge.js.map +0 -1
  333. package/dist/cjs/react-editor/node_modules/validator/lib/isFQDN.js.map +0 -1
  334. package/dist/cjs/react-editor/node_modules/validator/lib/isIP.js.map +0 -1
  335. package/dist/cjs/react-editor/node_modules/validator/lib/isURL.js.map +0 -1
  336. package/dist/cjs/react-editor/node_modules/validator/lib/util/assertString.js.map +0 -1
  337. package/dist/cjs/react-editor/node_modules/validator/lib/util/merge.js.map +0 -1
  338. package/dist/cjs/react-icons/dist/es/icons/bold.js +0 -86
  339. package/dist/cjs/react-icons/dist/es/icons/bold.js.map +0 -1
  340. package/dist/cjs/react-icons/dist/es/icons/close.js +0 -86
  341. package/dist/cjs/react-icons/dist/es/icons/close.js.map +0 -1
  342. package/dist/cjs/react-icons/dist/es/icons/code-block.js +0 -78
  343. package/dist/cjs/react-icons/dist/es/icons/code-block.js.map +0 -1
  344. package/dist/cjs/react-icons/dist/es/icons/code.js +0 -96
  345. package/dist/cjs/react-icons/dist/es/icons/code.js.map +0 -1
  346. package/dist/cjs/react-icons/dist/es/icons/delete.js +0 -116
  347. package/dist/cjs/react-icons/dist/es/icons/delete.js.map +0 -1
  348. package/dist/cjs/react-icons/dist/es/icons/italics.js +0 -96
  349. package/dist/cjs/react-icons/dist/es/icons/italics.js.map +0 -1
  350. package/dist/cjs/react-icons/dist/es/icons/link.js +0 -86
  351. package/dist/cjs/react-icons/dist/es/icons/link.js.map +0 -1
  352. package/dist/cjs/react-icons/dist/es/icons/ordered-list.js +0 -86
  353. package/dist/cjs/react-icons/dist/es/icons/ordered-list.js.map +0 -1
  354. package/dist/cjs/react-icons/dist/es/icons/pencil.js +0 -86
  355. package/dist/cjs/react-icons/dist/es/icons/pencil.js.map +0 -1
  356. package/dist/cjs/react-icons/dist/es/icons/text-align-center.js +0 -74
  357. package/dist/cjs/react-icons/dist/es/icons/text-align-center.js.map +0 -1
  358. package/dist/cjs/react-icons/dist/es/icons/text-align-justify.js +0 -74
  359. package/dist/cjs/react-icons/dist/es/icons/text-align-justify.js.map +0 -1
  360. package/dist/cjs/react-icons/dist/es/icons/text-align-left.js +0 -74
  361. package/dist/cjs/react-icons/dist/es/icons/text-align-left.js.map +0 -1
  362. package/dist/cjs/react-icons/dist/es/icons/text-align-right.js +0 -74
  363. package/dist/cjs/react-icons/dist/es/icons/text-align-right.js.map +0 -1
  364. package/dist/cjs/react-icons/dist/es/icons/text-format.js +0 -78
  365. package/dist/cjs/react-icons/dist/es/icons/text-format.js.map +0 -1
  366. package/dist/cjs/react-icons/dist/es/icons/underline.js +0 -77
  367. package/dist/cjs/react-icons/dist/es/icons/underline.js.map +0 -1
  368. package/dist/cjs/react-icons/dist/es/icons/unordered-list.js +0 -126
  369. package/dist/cjs/react-icons/dist/es/icons/unordered-list.js.map +0 -1
  370. package/dist/es/react-components/dist/es/_virtual/_commonjsHelpers.js +0 -6
  371. package/dist/es/react-components/dist/es/_virtual/_commonjsHelpers.js.map +0 -1
  372. package/dist/es/react-components/dist/es/_virtual/index.js +0 -4
  373. package/dist/es/react-components/dist/es/_virtual/index.js.map +0 -1
  374. package/dist/es/react-components/dist/es/_virtual/index2.js +0 -4
  375. package/dist/es/react-components/dist/es/_virtual/index2.js.map +0 -1
  376. package/dist/es/react-components/dist/es/_virtual/react-is.development.js +0 -4
  377. package/dist/es/react-components/dist/es/_virtual/react-is.development.js.map +0 -1
  378. package/dist/es/react-components/dist/es/_virtual/react-is.production.min.js +0 -4
  379. package/dist/es/react-components/dist/es/_virtual/react-is.production.min.js.map +0 -1
  380. package/dist/es/react-components/dist/es/box/box.js +0 -45
  381. package/dist/es/react-components/dist/es/box/box.js.map +0 -1
  382. package/dist/es/react-components/dist/es/button/button.js +0 -772
  383. package/dist/es/react-components/dist/es/button/button.js.map +0 -1
  384. package/dist/es/react-components/dist/es/button/icon-button.js +0 -75
  385. package/dist/es/react-components/dist/es/button/icon-button.js.map +0 -1
  386. package/dist/es/react-components/dist/es/button/side-element.js +0 -197
  387. package/dist/es/react-components/dist/es/button/side-element.js.map +0 -1
  388. package/dist/es/react-components/dist/es/button/utils.js +0 -100
  389. package/dist/es/react-components/dist/es/button/utils.js.map +0 -1
  390. package/dist/es/react-components/dist/es/dialog/dialog.js +0 -193
  391. package/dist/es/react-components/dist/es/dialog/dialog.js.map +0 -1
  392. package/dist/es/react-components/dist/es/dropdown/dropdown.js +0 -190
  393. package/dist/es/react-components/dist/es/dropdown/dropdown.js.map +0 -1
  394. package/dist/es/react-components/dist/es/flex/flex.js +0 -96
  395. package/dist/es/react-components/dist/es/flex/flex.js.map +0 -1
  396. package/dist/es/react-components/dist/es/form-helper-text/form-helper-text.js +0 -74
  397. package/dist/es/react-components/dist/es/form-helper-text/form-helper-text.js.map +0 -1
  398. package/dist/es/react-components/dist/es/form-label/form-label.js +0 -174
  399. package/dist/es/react-components/dist/es/form-label/form-label.js.map +0 -1
  400. package/dist/es/react-components/dist/es/input/form-input.js +0 -157
  401. package/dist/es/react-components/dist/es/input/form-input.js.map +0 -1
  402. package/dist/es/react-components/dist/es/input/input.js +0 -374
  403. package/dist/es/react-components/dist/es/input/input.js.map +0 -1
  404. package/dist/es/react-components/dist/es/link/link.js +0 -56
  405. package/dist/es/react-components/dist/es/link/link.js.map +0 -1
  406. package/dist/es/react-components/dist/es/loader/circle.js +0 -202
  407. package/dist/es/react-components/dist/es/loader/circle.js.map +0 -1
  408. package/dist/es/react-components/dist/es/loader/line.js +0 -128
  409. package/dist/es/react-components/dist/es/loader/line.js.map +0 -1
  410. package/dist/es/react-components/dist/es/node_modules/@babel/runtime/helpers/esm/extends.js +0 -17
  411. package/dist/es/react-components/dist/es/node_modules/@babel/runtime/helpers/esm/extends.js.map +0 -1
  412. package/dist/es/react-components/dist/es/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js +0 -10
  413. package/dist/es/react-components/dist/es/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js.map +0 -1
  414. package/dist/es/react-components/dist/es/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +0 -15
  415. package/dist/es/react-components/dist/es/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js.map +0 -1
  416. package/dist/es/react-components/dist/es/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js +0 -10
  417. package/dist/es/react-components/dist/es/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js.map +0 -1
  418. package/dist/es/react-components/dist/es/node_modules/@floating-ui/core/dist/floating-ui.core.js +0 -777
  419. package/dist/es/react-components/dist/es/node_modules/@floating-ui/core/dist/floating-ui.core.js.map +0 -1
  420. package/dist/es/react-components/dist/es/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +0 -600
  421. package/dist/es/react-components/dist/es/node_modules/@floating-ui/dom/dist/floating-ui.dom.js.map +0 -1
  422. package/dist/es/react-components/dist/es/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js +0 -269
  423. package/dist/es/react-components/dist/es/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js.map +0 -1
  424. package/dist/es/react-components/dist/es/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +0 -123
  425. package/dist/es/react-components/dist/es/node_modules/@floating-ui/utils/dist/floating-ui.utils.js.map +0 -1
  426. package/dist/es/react-components/dist/es/node_modules/@floating-ui/utils/dom/dist/floating-ui.utils.dom.js +0 -129
  427. package/dist/es/react-components/dist/es/node_modules/@floating-ui/utils/dom/dist/floating-ui.utils.dom.js.map +0 -1
  428. package/dist/es/react-components/dist/es/node_modules/@radix-ui/primitive/dist/index.js +0 -12
  429. package/dist/es/react-components/dist/es/node_modules/@radix-ui/primitive/dist/index.js.map +0 -1
  430. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-arrow/dist/index.js +0 -26
  431. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-arrow/dist/index.js.map +0 -1
  432. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-collection/dist/index.js +0 -69
  433. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-collection/dist/index.js.map +0 -1
  434. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-compose-refs/dist/index.js +0 -19
  435. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-compose-refs/dist/index.js.map +0 -1
  436. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-context/dist/index.js +0 -80
  437. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-context/dist/index.js.map +0 -1
  438. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-dialog/dist/index.js +0 -318
  439. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-dialog/dist/index.js.map +0 -1
  440. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-direction/dist/index.js +0 -12
  441. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-direction/dist/index.js.map +0 -1
  442. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-dismissable-layer/dist/index.js +0 -212
  443. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-dismissable-layer/dist/index.js.map +0 -1
  444. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-dropdown-menu/dist/index.js +0 -254
  445. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-dropdown-menu/dist/index.js.map +0 -1
  446. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-focus-guards/dist/index.js +0 -27
  447. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-focus-guards/dist/index.js.map +0 -1
  448. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-focus-scope/dist/index.js +0 -208
  449. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-focus-scope/dist/index.js.map +0 -1
  450. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-id/dist/index.js +0 -16
  451. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-id/dist/index.js.map +0 -1
  452. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-label/dist/index.js +0 -25
  453. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-label/dist/index.js.map +0 -1
  454. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-menu/dist/index.js +0 -796
  455. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-menu/dist/index.js.map +0 -1
  456. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-popper/dist/index.js +0 -280
  457. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-popper/dist/index.js.map +0 -1
  458. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-portal/dist/index.js +0 -18
  459. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-portal/dist/index.js.map +0 -1
  460. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-presence/dist/index.js +0 -120
  461. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-presence/dist/index.js.map +0 -1
  462. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-primitive/dist/index.js +0 -42
  463. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-primitive/dist/index.js.map +0 -1
  464. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-roving-focus/dist/index.js +0 -221
  465. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-roving-focus/dist/index.js.map +0 -1
  466. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-slot/dist/index.js +0 -82
  467. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-slot/dist/index.js.map +0 -1
  468. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-tooltip/dist/index.js +0 -476
  469. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-tooltip/dist/index.js.map +0 -1
  470. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-use-callback-ref/dist/index.js +0 -13
  471. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-use-callback-ref/dist/index.js.map +0 -1
  472. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-use-controllable-state/dist/index.js +0 -47
  473. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-use-controllable-state/dist/index.js.map +0 -1
  474. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-use-escape-keydown/dist/index.js +0 -19
  475. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-use-escape-keydown/dist/index.js.map +0 -1
  476. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-use-layout-effect/dist/index.js +0 -8
  477. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-use-layout-effect/dist/index.js.map +0 -1
  478. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-use-size/dist/index.js +0 -41
  479. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-use-size/dist/index.js.map +0 -1
  480. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-visually-hidden/dist/index.js +0 -36
  481. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-visually-hidden/dist/index.js.map +0 -1
  482. package/dist/es/react-components/dist/es/node_modules/@stitches/react/dist/index.js +0 -6
  483. package/dist/es/react-components/dist/es/node_modules/@stitches/react/dist/index.js.map +0 -1
  484. package/dist/es/react-components/dist/es/node_modules/aria-hidden/dist/es2015/index.js +0 -132
  485. package/dist/es/react-components/dist/es/node_modules/aria-hidden/dist/es2015/index.js.map +0 -1
  486. package/dist/es/react-components/dist/es/node_modules/dom-helpers/esm/addClass.js +0 -15
  487. package/dist/es/react-components/dist/es/node_modules/dom-helpers/esm/addClass.js.map +0 -1
  488. package/dist/es/react-components/dist/es/node_modules/dom-helpers/esm/hasClass.js +0 -13
  489. package/dist/es/react-components/dist/es/node_modules/dom-helpers/esm/hasClass.js.map +0 -1
  490. package/dist/es/react-components/dist/es/node_modules/dom-helpers/esm/removeClass.js +0 -23
  491. package/dist/es/react-components/dist/es/node_modules/dom-helpers/esm/removeClass.js.map +0 -1
  492. package/dist/es/react-components/dist/es/node_modules/get-nonce/dist/es2015/index.js +0 -9
  493. package/dist/es/react-components/dist/es/node_modules/get-nonce/dist/es2015/index.js.map +0 -1
  494. package/dist/es/react-components/dist/es/node_modules/object-assign/index.js +0 -100
  495. package/dist/es/react-components/dist/es/node_modules/object-assign/index.js.map +0 -1
  496. package/dist/es/react-components/dist/es/node_modules/prop-types/checkPropTypes.js +0 -116
  497. package/dist/es/react-components/dist/es/node_modules/prop-types/checkPropTypes.js.map +0 -1
  498. package/dist/es/react-components/dist/es/node_modules/prop-types/factoryWithThrowingShims.js +0 -75
  499. package/dist/es/react-components/dist/es/node_modules/prop-types/factoryWithThrowingShims.js.map +0 -1
  500. package/dist/es/react-components/dist/es/node_modules/prop-types/factoryWithTypeCheckers.js +0 -626
  501. package/dist/es/react-components/dist/es/node_modules/prop-types/factoryWithTypeCheckers.js.map +0 -1
  502. package/dist/es/react-components/dist/es/node_modules/prop-types/index.js +0 -31
  503. package/dist/es/react-components/dist/es/node_modules/prop-types/index.js.map +0 -1
  504. package/dist/es/react-components/dist/es/node_modules/prop-types/lib/ReactPropTypesSecret.js +0 -22
  505. package/dist/es/react-components/dist/es/node_modules/prop-types/lib/ReactPropTypesSecret.js.map +0 -1
  506. package/dist/es/react-components/dist/es/node_modules/prop-types/lib/has.js +0 -12
  507. package/dist/es/react-components/dist/es/node_modules/prop-types/lib/has.js.map +0 -1
  508. package/dist/es/react-components/dist/es/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js +0 -191
  509. package/dist/es/react-components/dist/es/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js.map +0 -1
  510. package/dist/es/react-components/dist/es/node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js +0 -27
  511. package/dist/es/react-components/dist/es/node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js.map +0 -1
  512. package/dist/es/react-components/dist/es/node_modules/prop-types/node_modules/react-is/index.js +0 -20
  513. package/dist/es/react-components/dist/es/node_modules/prop-types/node_modules/react-is/index.js.map +0 -1
  514. package/dist/es/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/Combination.js +0 -11
  515. package/dist/es/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/Combination.js.map +0 -1
  516. package/dist/es/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/SideEffect.js +0 -161
  517. package/dist/es/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/SideEffect.js.map +0 -1
  518. package/dist/es/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/UI.js +0 -39
  519. package/dist/es/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/UI.js.map +0 -1
  520. package/dist/es/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js +0 -22
  521. package/dist/es/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js.map +0 -1
  522. package/dist/es/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/handleScroll.js +0 -107
  523. package/dist/es/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/handleScroll.js.map +0 -1
  524. package/dist/es/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/medium.js +0 -6
  525. package/dist/es/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/medium.js.map +0 -1
  526. package/dist/es/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/sidecar.js +0 -8
  527. package/dist/es/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/sidecar.js.map +0 -1
  528. package/dist/es/react-components/dist/es/node_modules/react-remove-scroll-bar/dist/es2015/component.js +0 -57
  529. package/dist/es/react-components/dist/es/node_modules/react-remove-scroll-bar/dist/es2015/component.js.map +0 -1
  530. package/dist/es/react-components/dist/es/node_modules/react-remove-scroll-bar/dist/es2015/constants.js +0 -11
  531. package/dist/es/react-components/dist/es/node_modules/react-remove-scroll-bar/dist/es2015/constants.js.map +0 -1
  532. package/dist/es/react-components/dist/es/node_modules/react-remove-scroll-bar/dist/es2015/utils.js +0 -32
  533. package/dist/es/react-components/dist/es/node_modules/react-remove-scroll-bar/dist/es2015/utils.js.map +0 -1
  534. package/dist/es/react-components/dist/es/node_modules/react-style-singleton/dist/es2015/component.js +0 -20
  535. package/dist/es/react-components/dist/es/node_modules/react-style-singleton/dist/es2015/component.js.map +0 -1
  536. package/dist/es/react-components/dist/es/node_modules/react-style-singleton/dist/es2015/hook.js +0 -26
  537. package/dist/es/react-components/dist/es/node_modules/react-style-singleton/dist/es2015/hook.js.map +0 -1
  538. package/dist/es/react-components/dist/es/node_modules/react-style-singleton/dist/es2015/singleton.js +0 -52
  539. package/dist/es/react-components/dist/es/node_modules/react-style-singleton/dist/es2015/singleton.js.map +0 -1
  540. package/dist/es/react-components/dist/es/node_modules/react-transition-group/esm/CSSTransition.js +0 -415
  541. package/dist/es/react-components/dist/es/node_modules/react-transition-group/esm/CSSTransition.js.map +0 -1
  542. package/dist/es/react-components/dist/es/node_modules/react-transition-group/esm/Transition.js +0 -628
  543. package/dist/es/react-components/dist/es/node_modules/react-transition-group/esm/Transition.js.map +0 -1
  544. package/dist/es/react-components/dist/es/node_modules/react-transition-group/esm/TransitionGroupContext.js +0 -6
  545. package/dist/es/react-components/dist/es/node_modules/react-transition-group/esm/TransitionGroupContext.js.map +0 -1
  546. package/dist/es/react-components/dist/es/node_modules/react-transition-group/esm/config.js +0 -6
  547. package/dist/es/react-components/dist/es/node_modules/react-transition-group/esm/config.js.map +0 -1
  548. package/dist/es/react-components/dist/es/node_modules/react-transition-group/esm/utils/PropTypes.js +0 -22
  549. package/dist/es/react-components/dist/es/node_modules/react-transition-group/esm/utils/PropTypes.js.map +0 -1
  550. package/dist/es/react-components/dist/es/node_modules/react-transition-group/esm/utils/reflow.js +0 -6
  551. package/dist/es/react-components/dist/es/node_modules/react-transition-group/esm/utils/reflow.js.map +0 -1
  552. package/dist/es/react-components/dist/es/node_modules/tslib/tslib.es6.js +0 -52
  553. package/dist/es/react-components/dist/es/node_modules/tslib/tslib.es6.js.map +0 -1
  554. package/dist/es/react-components/dist/es/node_modules/use-callback-ref/dist/es2015/assignRef.js +0 -25
  555. package/dist/es/react-components/dist/es/node_modules/use-callback-ref/dist/es2015/assignRef.js.map +0 -1
  556. package/dist/es/react-components/dist/es/node_modules/use-callback-ref/dist/es2015/useMergeRef.js +0 -23
  557. package/dist/es/react-components/dist/es/node_modules/use-callback-ref/dist/es2015/useMergeRef.js.map +0 -1
  558. package/dist/es/react-components/dist/es/node_modules/use-callback-ref/dist/es2015/useRef.js +0 -43
  559. package/dist/es/react-components/dist/es/node_modules/use-callback-ref/dist/es2015/useRef.js.map +0 -1
  560. package/dist/es/react-components/dist/es/node_modules/use-sidecar/dist/es2015/exports.js +0 -22
  561. package/dist/es/react-components/dist/es/node_modules/use-sidecar/dist/es2015/exports.js.map +0 -1
  562. package/dist/es/react-components/dist/es/node_modules/use-sidecar/dist/es2015/medium.js +0 -78
  563. package/dist/es/react-components/dist/es/node_modules/use-sidecar/dist/es2015/medium.js.map +0 -1
  564. package/dist/es/react-components/dist/es/packages/react-components/node_modules/clsx/dist/clsx.js.map +0 -1
  565. package/dist/es/react-components/dist/es/packages/react-icons/dist/es/icons/info.js +0 -95
  566. package/dist/es/react-components/dist/es/packages/react-icons/dist/es/icons/info.js.map +0 -1
  567. package/dist/es/react-components/dist/es/stitches.config.js +0 -379
  568. package/dist/es/react-components/dist/es/stitches.config.js.map +0 -1
  569. package/dist/es/react-components/dist/es/text/text.js +0 -115
  570. package/dist/es/react-components/dist/es/text/text.js.map +0 -1
  571. package/dist/es/react-components/dist/es/tooltip/tooltip.js +0 -153
  572. package/dist/es/react-components/dist/es/tooltip/tooltip.js.map +0 -1
  573. package/dist/es/react-components/dist/es/utils/prefix-class-name.js +0 -8
  574. package/dist/es/react-components/dist/es/utils/prefix-class-name.js.map +0 -1
  575. package/dist/es/react-editor/node_modules/clsx/dist/clsx.js +0 -4
  576. package/dist/es/react-editor/node_modules/clsx/dist/clsx.js.map +0 -1
  577. package/dist/es/react-editor/node_modules/validator/es/lib/isFQDN.js.map +0 -1
  578. package/dist/es/react-editor/node_modules/validator/es/lib/isIP.js.map +0 -1
  579. package/dist/es/react-editor/node_modules/validator/es/lib/isURL.js.map +0 -1
  580. package/dist/es/react-editor/node_modules/validator/es/lib/util/assertString.js.map +0 -1
  581. package/dist/es/react-editor/node_modules/validator/es/lib/util/merge.js.map +0 -1
  582. package/dist/es/react-editor/node_modules/validator/lib/isFQDN.js.map +0 -1
  583. package/dist/es/react-editor/node_modules/validator/lib/isIP.js.map +0 -1
  584. package/dist/es/react-editor/node_modules/validator/lib/isURL.js.map +0 -1
  585. package/dist/es/react-editor/node_modules/validator/lib/util/assertString.js.map +0 -1
  586. package/dist/es/react-editor/node_modules/validator/lib/util/merge.js.map +0 -1
  587. package/dist/es/react-icons/dist/es/icons/bold.js +0 -84
  588. package/dist/es/react-icons/dist/es/icons/bold.js.map +0 -1
  589. package/dist/es/react-icons/dist/es/icons/close.js +0 -84
  590. package/dist/es/react-icons/dist/es/icons/close.js.map +0 -1
  591. package/dist/es/react-icons/dist/es/icons/code-block.js +0 -76
  592. package/dist/es/react-icons/dist/es/icons/code-block.js.map +0 -1
  593. package/dist/es/react-icons/dist/es/icons/code.js +0 -94
  594. package/dist/es/react-icons/dist/es/icons/code.js.map +0 -1
  595. package/dist/es/react-icons/dist/es/icons/delete.js +0 -114
  596. package/dist/es/react-icons/dist/es/icons/delete.js.map +0 -1
  597. package/dist/es/react-icons/dist/es/icons/italics.js +0 -94
  598. package/dist/es/react-icons/dist/es/icons/italics.js.map +0 -1
  599. package/dist/es/react-icons/dist/es/icons/link.js +0 -84
  600. package/dist/es/react-icons/dist/es/icons/link.js.map +0 -1
  601. package/dist/es/react-icons/dist/es/icons/ordered-list.js +0 -84
  602. package/dist/es/react-icons/dist/es/icons/ordered-list.js.map +0 -1
  603. package/dist/es/react-icons/dist/es/icons/pencil.js +0 -84
  604. package/dist/es/react-icons/dist/es/icons/pencil.js.map +0 -1
  605. package/dist/es/react-icons/dist/es/icons/text-align-center.js +0 -72
  606. package/dist/es/react-icons/dist/es/icons/text-align-center.js.map +0 -1
  607. package/dist/es/react-icons/dist/es/icons/text-align-justify.js +0 -72
  608. package/dist/es/react-icons/dist/es/icons/text-align-justify.js.map +0 -1
  609. package/dist/es/react-icons/dist/es/icons/text-align-left.js +0 -72
  610. package/dist/es/react-icons/dist/es/icons/text-align-left.js.map +0 -1
  611. package/dist/es/react-icons/dist/es/icons/text-align-right.js +0 -72
  612. package/dist/es/react-icons/dist/es/icons/text-align-right.js.map +0 -1
  613. package/dist/es/react-icons/dist/es/icons/text-format.js +0 -76
  614. package/dist/es/react-icons/dist/es/icons/text-format.js.map +0 -1
  615. package/dist/es/react-icons/dist/es/icons/underline.js +0 -75
  616. package/dist/es/react-icons/dist/es/icons/underline.js.map +0 -1
  617. package/dist/es/react-icons/dist/es/icons/unordered-list.js +0 -124
  618. package/dist/es/react-icons/dist/es/icons/unordered-list.js.map +0 -1
  619. /package/dist/cjs/{react-components/dist/es/packages/react-components/node_modules → node_modules}/clsx/dist/clsx.js +0 -0
  620. /package/dist/cjs/{react-editor/node_modules → node_modules}/validator/es/lib/isFQDN.js +0 -0
  621. /package/dist/cjs/{react-editor/node_modules → node_modules}/validator/es/lib/isIP.js +0 -0
  622. /package/dist/cjs/{react-editor/node_modules → node_modules}/validator/es/lib/isURL.js +0 -0
  623. /package/dist/cjs/{react-editor/node_modules → node_modules}/validator/es/lib/util/assertString.js +0 -0
  624. /package/dist/cjs/{react-editor/node_modules → node_modules}/validator/es/lib/util/merge.js +0 -0
  625. /package/dist/es/{react-components/dist/es/packages/react-components/node_modules → node_modules}/clsx/dist/clsx.js +0 -0
  626. /package/dist/es/{react-editor/node_modules → node_modules}/validator/es/lib/isFQDN.js +0 -0
  627. /package/dist/es/{react-editor/node_modules → node_modules}/validator/es/lib/isIP.js +0 -0
  628. /package/dist/es/{react-editor/node_modules → node_modules}/validator/es/lib/isURL.js +0 -0
  629. /package/dist/es/{react-editor/node_modules → node_modules}/validator/es/lib/util/assertString.js +0 -0
  630. /package/dist/es/{react-editor/node_modules → node_modules}/validator/es/lib/util/merge.js +0 -0
@@ -1,161 +0,0 @@
1
- import { __spreadArray } from '../../../tslib/tslib.es6.js';
2
- import * as React from 'react';
3
- import { RemoveScrollBar } from '../../../react-remove-scroll-bar/dist/es2015/component.js';
4
- import { styleSingleton } from '../../../react-style-singleton/dist/es2015/component.js';
5
- import { nonPassive } from './aggresiveCapture.js';
6
- import { locationCouldBeScrolled, handleScroll } from './handleScroll.js';
7
-
8
- var getTouchXY = function (event) {
9
- return 'changedTouches' in event ? [event.changedTouches[0].clientX, event.changedTouches[0].clientY] : [0, 0];
10
- };
11
- var getDeltaXY = function (event) { return [event.deltaX, event.deltaY]; };
12
- var extractRef = function (ref) {
13
- return ref && 'current' in ref ? ref.current : ref;
14
- };
15
- var deltaCompare = function (x, y) { return x[0] === y[0] && x[1] === y[1]; };
16
- var generateStyle = function (id) { return "\n .block-interactivity-".concat(id, " {pointer-events: none;}\n .allow-interactivity-").concat(id, " {pointer-events: all;}\n"); };
17
- var idCounter = 0;
18
- var lockStack = [];
19
- function RemoveScrollSideCar(props) {
20
- var shouldPreventQueue = React.useRef([]);
21
- var touchStartRef = React.useRef([0, 0]);
22
- var activeAxis = React.useRef();
23
- var id = React.useState(idCounter++)[0];
24
- var Style = React.useState(styleSingleton)[0];
25
- var lastProps = React.useRef(props);
26
- React.useEffect(function () {
27
- lastProps.current = props;
28
- }, [props]);
29
- React.useEffect(function () {
30
- if (props.inert) {
31
- document.body.classList.add("block-interactivity-".concat(id));
32
- var allow_1 = __spreadArray([props.lockRef.current], (props.shards || []).map(extractRef)).filter(Boolean);
33
- allow_1.forEach(function (el) { return el.classList.add("allow-interactivity-".concat(id)); });
34
- return function () {
35
- document.body.classList.remove("block-interactivity-".concat(id));
36
- allow_1.forEach(function (el) { return el.classList.remove("allow-interactivity-".concat(id)); });
37
- };
38
- }
39
- return;
40
- }, [props.inert, props.lockRef.current, props.shards]);
41
- var shouldCancelEvent = React.useCallback(function (event, parent) {
42
- if ('touches' in event && event.touches.length === 2) {
43
- return !lastProps.current.allowPinchZoom;
44
- }
45
- var touch = getTouchXY(event);
46
- var touchStart = touchStartRef.current;
47
- var deltaX = 'deltaX' in event ? event.deltaX : touchStart[0] - touch[0];
48
- var deltaY = 'deltaY' in event ? event.deltaY : touchStart[1] - touch[1];
49
- var currentAxis;
50
- var target = event.target;
51
- var moveDirection = Math.abs(deltaX) > Math.abs(deltaY) ? 'h' : 'v';
52
- // allow horizontal touch move on Range inputs. They will not cause any scroll
53
- if ('touches' in event && moveDirection === 'h' && target.type === 'range') {
54
- return false;
55
- }
56
- var canBeScrolledInMainDirection = locationCouldBeScrolled(moveDirection, target);
57
- if (!canBeScrolledInMainDirection) {
58
- return true;
59
- }
60
- if (canBeScrolledInMainDirection) {
61
- currentAxis = moveDirection;
62
- }
63
- else {
64
- currentAxis = moveDirection === 'v' ? 'h' : 'v';
65
- canBeScrolledInMainDirection = locationCouldBeScrolled(moveDirection, target);
66
- // other axis might be not scrollable
67
- }
68
- if (!canBeScrolledInMainDirection) {
69
- return false;
70
- }
71
- if (!activeAxis.current && 'changedTouches' in event && (deltaX || deltaY)) {
72
- activeAxis.current = currentAxis;
73
- }
74
- if (!currentAxis) {
75
- return true;
76
- }
77
- var cancelingAxis = activeAxis.current || currentAxis;
78
- return handleScroll(cancelingAxis, parent, event, cancelingAxis === 'h' ? deltaX : deltaY);
79
- }, []);
80
- var shouldPrevent = React.useCallback(function (_event) {
81
- var event = _event;
82
- if (!lockStack.length || lockStack[lockStack.length - 1] !== Style) {
83
- // not the last active
84
- return;
85
- }
86
- var delta = 'deltaY' in event ? getDeltaXY(event) : getTouchXY(event);
87
- var sourceEvent = shouldPreventQueue.current.filter(function (e) { return e.name === event.type && (e.target === event.target || event.target === e.shadowParent) && deltaCompare(e.delta, delta); })[0];
88
- // self event, and should be canceled
89
- if (sourceEvent && sourceEvent.should) {
90
- if (event.cancelable) {
91
- event.preventDefault();
92
- }
93
- return;
94
- }
95
- // outside or shard event
96
- if (!sourceEvent) {
97
- var shardNodes = (lastProps.current.shards || [])
98
- .map(extractRef)
99
- .filter(Boolean)
100
- .filter(function (node) { return node.contains(event.target); });
101
- var shouldStop = shardNodes.length > 0 ? shouldCancelEvent(event, shardNodes[0]) : !lastProps.current.noIsolation;
102
- if (shouldStop) {
103
- if (event.cancelable) {
104
- event.preventDefault();
105
- }
106
- }
107
- }
108
- }, []);
109
- var shouldCancel = React.useCallback(function (name, delta, target, should) {
110
- var event = { name: name, delta: delta, target: target, should: should, shadowParent: getOutermostShadowParent(target) };
111
- shouldPreventQueue.current.push(event);
112
- setTimeout(function () {
113
- shouldPreventQueue.current = shouldPreventQueue.current.filter(function (e) { return e !== event; });
114
- }, 1);
115
- }, []);
116
- var scrollTouchStart = React.useCallback(function (event) {
117
- touchStartRef.current = getTouchXY(event);
118
- activeAxis.current = undefined;
119
- }, []);
120
- var scrollWheel = React.useCallback(function (event) {
121
- shouldCancel(event.type, getDeltaXY(event), event.target, shouldCancelEvent(event, props.lockRef.current));
122
- }, []);
123
- var scrollTouchMove = React.useCallback(function (event) {
124
- shouldCancel(event.type, getTouchXY(event), event.target, shouldCancelEvent(event, props.lockRef.current));
125
- }, []);
126
- React.useEffect(function () {
127
- lockStack.push(Style);
128
- props.setCallbacks({
129
- onScrollCapture: scrollWheel,
130
- onWheelCapture: scrollWheel,
131
- onTouchMoveCapture: scrollTouchMove,
132
- });
133
- document.addEventListener('wheel', shouldPrevent, nonPassive);
134
- document.addEventListener('touchmove', shouldPrevent, nonPassive);
135
- document.addEventListener('touchstart', scrollTouchStart, nonPassive);
136
- return function () {
137
- lockStack = lockStack.filter(function (inst) { return inst !== Style; });
138
- document.removeEventListener('wheel', shouldPrevent, nonPassive);
139
- document.removeEventListener('touchmove', shouldPrevent, nonPassive);
140
- document.removeEventListener('touchstart', scrollTouchStart, nonPassive);
141
- };
142
- }, []);
143
- var removeScrollBar = props.removeScrollBar, inert = props.inert;
144
- return (React.createElement(React.Fragment, null,
145
- inert ? React.createElement(Style, { styles: generateStyle(id) }) : null,
146
- removeScrollBar ? React.createElement(RemoveScrollBar, { gapMode: props.gapMode }) : null));
147
- }
148
- function getOutermostShadowParent(node) {
149
- var shadowParent = null;
150
- while (node !== null) {
151
- if (node instanceof ShadowRoot) {
152
- shadowParent = node.host;
153
- node = node.host;
154
- }
155
- node = node.parentNode;
156
- }
157
- return shadowParent;
158
- }
159
-
160
- export { RemoveScrollSideCar, getDeltaXY, getTouchXY };
161
- //# sourceMappingURL=SideEffect.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SideEffect.js","sources":["../../../../../../../../../../react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/SideEffect.js"],"sourcesContent":["import { __spreadArray } from '../../../tslib/tslib.es6.js';\nimport * as React from 'react';\nimport { RemoveScrollBar } from '../../../react-remove-scroll-bar/dist/es2015/component.js';\nimport { styleSingleton } from '../../../react-style-singleton/dist/es2015/component.js';\nimport { nonPassive } from './aggresiveCapture.js';\nimport { locationCouldBeScrolled, handleScroll } from './handleScroll.js';\n\nvar getTouchXY = function (event) {\n return 'changedTouches' in event ? [event.changedTouches[0].clientX, event.changedTouches[0].clientY] : [0, 0];\n};\nvar getDeltaXY = function (event) { return [event.deltaX, event.deltaY]; };\nvar extractRef = function (ref) {\n return ref && 'current' in ref ? ref.current : ref;\n};\nvar deltaCompare = function (x, y) { return x[0] === y[0] && x[1] === y[1]; };\nvar generateStyle = function (id) { return \"\\n .block-interactivity-\".concat(id, \" {pointer-events: none;}\\n .allow-interactivity-\").concat(id, \" {pointer-events: all;}\\n\"); };\nvar idCounter = 0;\nvar lockStack = [];\nfunction RemoveScrollSideCar(props) {\n var shouldPreventQueue = React.useRef([]);\n var touchStartRef = React.useRef([0, 0]);\n var activeAxis = React.useRef();\n var id = React.useState(idCounter++)[0];\n var Style = React.useState(styleSingleton)[0];\n var lastProps = React.useRef(props);\n React.useEffect(function () {\n lastProps.current = props;\n }, [props]);\n React.useEffect(function () {\n if (props.inert) {\n document.body.classList.add(\"block-interactivity-\".concat(id));\n var allow_1 = __spreadArray([props.lockRef.current], (props.shards || []).map(extractRef), true).filter(Boolean);\n allow_1.forEach(function (el) { return el.classList.add(\"allow-interactivity-\".concat(id)); });\n return function () {\n document.body.classList.remove(\"block-interactivity-\".concat(id));\n allow_1.forEach(function (el) { return el.classList.remove(\"allow-interactivity-\".concat(id)); });\n };\n }\n return;\n }, [props.inert, props.lockRef.current, props.shards]);\n var shouldCancelEvent = React.useCallback(function (event, parent) {\n if ('touches' in event && event.touches.length === 2) {\n return !lastProps.current.allowPinchZoom;\n }\n var touch = getTouchXY(event);\n var touchStart = touchStartRef.current;\n var deltaX = 'deltaX' in event ? event.deltaX : touchStart[0] - touch[0];\n var deltaY = 'deltaY' in event ? event.deltaY : touchStart[1] - touch[1];\n var currentAxis;\n var target = event.target;\n var moveDirection = Math.abs(deltaX) > Math.abs(deltaY) ? 'h' : 'v';\n // allow horizontal touch move on Range inputs. They will not cause any scroll\n if ('touches' in event && moveDirection === 'h' && target.type === 'range') {\n return false;\n }\n var canBeScrolledInMainDirection = locationCouldBeScrolled(moveDirection, target);\n if (!canBeScrolledInMainDirection) {\n return true;\n }\n if (canBeScrolledInMainDirection) {\n currentAxis = moveDirection;\n }\n else {\n currentAxis = moveDirection === 'v' ? 'h' : 'v';\n canBeScrolledInMainDirection = locationCouldBeScrolled(moveDirection, target);\n // other axis might be not scrollable\n }\n if (!canBeScrolledInMainDirection) {\n return false;\n }\n if (!activeAxis.current && 'changedTouches' in event && (deltaX || deltaY)) {\n activeAxis.current = currentAxis;\n }\n if (!currentAxis) {\n return true;\n }\n var cancelingAxis = activeAxis.current || currentAxis;\n return handleScroll(cancelingAxis, parent, event, cancelingAxis === 'h' ? deltaX : deltaY, true);\n }, []);\n var shouldPrevent = React.useCallback(function (_event) {\n var event = _event;\n if (!lockStack.length || lockStack[lockStack.length - 1] !== Style) {\n // not the last active\n return;\n }\n var delta = 'deltaY' in event ? getDeltaXY(event) : getTouchXY(event);\n var sourceEvent = shouldPreventQueue.current.filter(function (e) { return e.name === event.type && (e.target === event.target || event.target === e.shadowParent) && deltaCompare(e.delta, delta); })[0];\n // self event, and should be canceled\n if (sourceEvent && sourceEvent.should) {\n if (event.cancelable) {\n event.preventDefault();\n }\n return;\n }\n // outside or shard event\n if (!sourceEvent) {\n var shardNodes = (lastProps.current.shards || [])\n .map(extractRef)\n .filter(Boolean)\n .filter(function (node) { return node.contains(event.target); });\n var shouldStop = shardNodes.length > 0 ? shouldCancelEvent(event, shardNodes[0]) : !lastProps.current.noIsolation;\n if (shouldStop) {\n if (event.cancelable) {\n event.preventDefault();\n }\n }\n }\n }, []);\n var shouldCancel = React.useCallback(function (name, delta, target, should) {\n var event = { name: name, delta: delta, target: target, should: should, shadowParent: getOutermostShadowParent(target) };\n shouldPreventQueue.current.push(event);\n setTimeout(function () {\n shouldPreventQueue.current = shouldPreventQueue.current.filter(function (e) { return e !== event; });\n }, 1);\n }, []);\n var scrollTouchStart = React.useCallback(function (event) {\n touchStartRef.current = getTouchXY(event);\n activeAxis.current = undefined;\n }, []);\n var scrollWheel = React.useCallback(function (event) {\n shouldCancel(event.type, getDeltaXY(event), event.target, shouldCancelEvent(event, props.lockRef.current));\n }, []);\n var scrollTouchMove = React.useCallback(function (event) {\n shouldCancel(event.type, getTouchXY(event), event.target, shouldCancelEvent(event, props.lockRef.current));\n }, []);\n React.useEffect(function () {\n lockStack.push(Style);\n props.setCallbacks({\n onScrollCapture: scrollWheel,\n onWheelCapture: scrollWheel,\n onTouchMoveCapture: scrollTouchMove,\n });\n document.addEventListener('wheel', shouldPrevent, nonPassive);\n document.addEventListener('touchmove', shouldPrevent, nonPassive);\n document.addEventListener('touchstart', scrollTouchStart, nonPassive);\n return function () {\n lockStack = lockStack.filter(function (inst) { return inst !== Style; });\n document.removeEventListener('wheel', shouldPrevent, nonPassive);\n document.removeEventListener('touchmove', shouldPrevent, nonPassive);\n document.removeEventListener('touchstart', scrollTouchStart, nonPassive);\n };\n }, []);\n var removeScrollBar = props.removeScrollBar, inert = props.inert;\n return (React.createElement(React.Fragment, null,\n inert ? React.createElement(Style, { styles: generateStyle(id) }) : null,\n removeScrollBar ? React.createElement(RemoveScrollBar, { gapMode: props.gapMode }) : null));\n}\nfunction getOutermostShadowParent(node) {\n var shadowParent = null;\n while (node !== null) {\n if (node instanceof ShadowRoot) {\n shadowParent = node.host;\n node = node.host;\n }\n node = node.parentNode;\n }\n return shadowParent;\n}\n\nexport { RemoveScrollSideCar, getDeltaXY, getTouchXY };\n//# sourceMappingURL=SideEffect.js.map\n"],"names":[],"mappings":";;;;;;;AAOG,IAAC,UAAU,GAAG,UAAU,KAAK,EAAE;AAClC,IAAI,OAAO,gBAAgB,IAAI,KAAK,GAAG,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,OAAO,EAAE,KAAK,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;AAClH;AACG,IAAC,UAAU,GAAG,UAAU,KAAK,EAAE,EAAE,OAAO,CAAC,KAAK,CAAC,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;AACxE,IAAI,UAAU,GAAG,UAAU,GAAG,EAAE;AAChC,IAAI,OAAO,GAAG,IAAI,SAAS,IAAI,GAAG,GAAG,GAAG,CAAC,OAAO,GAAG,GAAG;AACtD,CAAC;AACD,IAAI,YAAY,GAAG,UAAU,CAAC,EAAE,CAAC,EAAE,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE;AAC7E,IAAI,aAAa,GAAG,UAAU,EAAE,EAAE,EAAE,OAAO,2BAA2B,CAAC,MAAM,CAAC,EAAE,EAAE,mDAAmD,CAAC,CAAC,MAAM,CAAC,EAAE,EAAE,2BAA2B,CAAC,CAAC,EAAE;AACjL,IAAI,SAAS,GAAG,CAAC;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CAAC,aAAa,CAAC,KAAK,EAAE,EAAE,MAAM,EAAE,aAAa,CAAC,EAAE,CAAC,EAAE,CAAC,GAAG,IAAI;AAChF,QAAQ,eAAe,GAAG,KAAK,CAAC,aAAa,CAAC,eAAe,EAAE,EAAE,OAAO,EAAE,KAAK,CAAC,OAAO,EAAE,CAAC,GAAG,IAAI,CAAC;AAClG;AACA,SAAS,wBAAwB,CAAC,IAAI,EAAE;AACxC,IAAI,IAAI,YAAY,GAAG,IAAI;AAC3B,IAAI,OAAO,IAAI,KAAK,IAAI,EAAE;AAC1B,QAAQ,IAAI,IAAI,YAAY,UAAU,EAAE;AACxC,YAAY,YAAY,GAAG,IAAI,CAAC,IAAI;AACpC,YAAY,IAAI,GAAG,IAAI,CAAC,IAAI;AAC5B;AACA,QAAQ,IAAI,GAAG,IAAI,CAAC,UAAU;AAC9B;AACA,IAAI,OAAO,YAAY;AACvB;;;;","x_google_ignoreList":[0]}
@@ -1,39 +0,0 @@
1
- import { __rest, __assign } from '../../../tslib/tslib.es6.js';
2
- import * as React from 'react';
3
- import { zeroRightClassName, fullWidthClassName } from '../../../react-remove-scroll-bar/dist/es2015/constants.js';
4
- import { effectCar } from './medium.js';
5
- import { useMergeRefs } from '../../../use-callback-ref/dist/es2015/useMergeRef.js';
6
-
7
- var nothing = function () {
8
- return;
9
- };
10
- /**
11
- * Removes scrollbar from the page and contain the scroll within the Lock
12
- */
13
- var RemoveScroll = React.forwardRef(function (props, parentRef) {
14
- var ref = React.useRef(null);
15
- var _a = React.useState({
16
- onScrollCapture: nothing,
17
- onWheelCapture: nothing,
18
- onTouchMoveCapture: nothing,
19
- }), callbacks = _a[0], setCallbacks = _a[1];
20
- var forwardProps = props.forwardProps, children = props.children, className = props.className, removeScrollBar = props.removeScrollBar, enabled = props.enabled, shards = props.shards, sideCar = props.sideCar, noIsolation = props.noIsolation, inert = props.inert, allowPinchZoom = props.allowPinchZoom, _b = props.as, Container = _b === void 0 ? 'div' : _b, gapMode = props.gapMode, rest = __rest(props, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]);
21
- var SideCar = sideCar;
22
- var containerRef = useMergeRefs([ref, parentRef]);
23
- var containerProps = __assign(__assign({}, rest), callbacks);
24
- return (React.createElement(React.Fragment, null,
25
- enabled && (React.createElement(SideCar, { sideCar: effectCar, removeScrollBar: removeScrollBar, shards: shards, noIsolation: noIsolation, inert: inert, setCallbacks: setCallbacks, allowPinchZoom: !!allowPinchZoom, lockRef: ref, gapMode: gapMode })),
26
- forwardProps ? (React.cloneElement(React.Children.only(children), __assign(__assign({}, containerProps), { ref: containerRef }))) : (React.createElement(Container, __assign({}, containerProps, { className: className, ref: containerRef }), children))));
27
- });
28
- RemoveScroll.defaultProps = {
29
- enabled: true,
30
- removeScrollBar: true,
31
- inert: false,
32
- };
33
- RemoveScroll.classNames = {
34
- fullWidth: fullWidthClassName,
35
- zeroRight: zeroRightClassName,
36
- };
37
-
38
- export { RemoveScroll };
39
- //# sourceMappingURL=UI.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"UI.js","sources":["../../../../../../../../../../react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/UI.js"],"sourcesContent":["import { __rest, __assign } from '../../../tslib/tslib.es6.js';\nimport * as React from 'react';\nimport { fullWidthClassName, zeroRightClassName } from '../../../react-remove-scroll-bar/dist/es2015/constants.js';\nimport { effectCar } from './medium.js';\nimport { useMergeRefs } from '../../../use-callback-ref/dist/es2015/useMergeRef.js';\n\nvar nothing = function () {\n return;\n};\n/**\n * Removes scrollbar from the page and contain the scroll within the Lock\n */\nvar RemoveScroll = React.forwardRef(function (props, parentRef) {\n var ref = React.useRef(null);\n var _a = React.useState({\n onScrollCapture: nothing,\n onWheelCapture: nothing,\n onTouchMoveCapture: nothing,\n }), callbacks = _a[0], setCallbacks = _a[1];\n var forwardProps = props.forwardProps, children = props.children, className = props.className, removeScrollBar = props.removeScrollBar, enabled = props.enabled, shards = props.shards, sideCar = props.sideCar, noIsolation = props.noIsolation, inert = props.inert, allowPinchZoom = props.allowPinchZoom, _b = props.as, Container = _b === void 0 ? 'div' : _b, gapMode = props.gapMode, rest = __rest(props, [\"forwardProps\", \"children\", \"className\", \"removeScrollBar\", \"enabled\", \"shards\", \"sideCar\", \"noIsolation\", \"inert\", \"allowPinchZoom\", \"as\", \"gapMode\"]);\n var SideCar = sideCar;\n var containerRef = useMergeRefs([ref, parentRef]);\n var containerProps = __assign(__assign({}, rest), callbacks);\n return (React.createElement(React.Fragment, null,\n enabled && (React.createElement(SideCar, { sideCar: effectCar, removeScrollBar: removeScrollBar, shards: shards, noIsolation: noIsolation, inert: inert, setCallbacks: setCallbacks, allowPinchZoom: !!allowPinchZoom, lockRef: ref, gapMode: gapMode })),\n forwardProps ? (React.cloneElement(React.Children.only(children), __assign(__assign({}, containerProps), { ref: containerRef }))) : (React.createElement(Container, __assign({}, containerProps, { className: className, ref: containerRef }), children))));\n});\nRemoveScroll.defaultProps = {\n enabled: true,\n removeScrollBar: true,\n inert: false,\n};\nRemoveScroll.classNames = {\n fullWidth: fullWidthClassName,\n zeroRight: zeroRightClassName,\n};\n\nexport { RemoveScroll };\n//# sourceMappingURL=UI.js.map\n"],"names":[],"mappings":";;;;;;AAMA,IAAI,OAAO,GAAG,YAAY;AAC1B,IAAI;AACJ,CAAC;AACD;AACA;AACA;AACG,IAAC,YAAY,GAAG,KAAK,CAAC,UAAU,CAAC,UAAU,KAAK,EAAE,SAAS,EAAE;AAChE,IAAI,IAAI,GAAG,GAAG,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC;AAChC,IAAI,IAAI,EAAE,GAAG,KAAK,CAAC,QAAQ,CAAC;AAC5B,QAAQ,eAAe,EAAE,OAAO;AAChC,QAAQ,cAAc,EAAE,OAAO;AAC/B,QAAQ,kBAAkB,EAAE,OAAO;AACnC,KAAK,CAAC,EAAE,SAAS,GAAG,EAAE,CAAC,CAAC,CAAC,EAAE,YAA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AE,YAAY,EAAE,cAAc,EAAE,CAAC,CAAC,cAAc,EAAE,OAAO,EAAE,GAAG,EAAE,OAAO,EAAE,OAAO,EAAE,CAAC,CAAC;AACjQ,QAAQ,YAAY,IAAI,KAAK,CAAC,YAAY,CAAC,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAE,QAAQ,CAAC,QAAQ,CAAC,EAAE,EAAE,cAAc,CAAC,EAAE,EAAE,GAAG,EAAE,YAAY,EAAE,CAAC,CAAC,KAAK,KAAK,CAAC,aAAa,CAAC,SAAS,EAAE,QAAQ,CAAC,EAAE,EAAE,cAAc,EAAE,EAAE,SAAS,EAAE,SAAS,EAAE,GAAG,EAAE,YAAY,EAAE,CAAC,EAAE,QAAQ,CAAC,CAAC,CAAC;AAClQ,CAAC;AACD,YAAY,CAAC,YAAY,GAAG;AAC5B,IAAI,OAAO,EAAE,IAAI;AACjB,IAAI,eAAe,EAAE,IAAI;AACzB,IAAI,KAAK,EAAE,KAAK;AAChB,CAAC;AACD,YAAY,CAAC,UAAU,GAAG;AAC1B,IAAI,SAAS,EAAE,kBAAkB;AACjC,IAAI,SAAS,EAAE,kBAAkB;AACjC,CAAC;;;;","x_google_ignoreList":[0]}
@@ -1,22 +0,0 @@
1
- var passiveSupported = false;
2
- if (typeof window !== 'undefined') {
3
- try {
4
- var options = Object.defineProperty({}, 'passive', {
5
- get: function () {
6
- passiveSupported = true;
7
- return true;
8
- },
9
- });
10
- // @ts-ignore
11
- window.addEventListener('test', options, options);
12
- // @ts-ignore
13
- window.removeEventListener('test', options, options);
14
- }
15
- catch (err) {
16
- passiveSupported = false;
17
- }
18
- }
19
- var nonPassive = passiveSupported ? { passive: false } : false;
20
-
21
- export { nonPassive };
22
- //# sourceMappingURL=aggresiveCapture.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"aggresiveCapture.js","sources":["../../../../../../../../../../react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js"],"sourcesContent":["var passiveSupported = false;\nif (typeof window !== 'undefined') {\n try {\n var options = Object.defineProperty({}, 'passive', {\n get: function () {\n passiveSupported = true;\n return true;\n },\n });\n // @ts-ignore\n window.addEventListener('test', options, options);\n // @ts-ignore\n window.removeEventListener('test', options, options);\n }\n catch (err) {\n passiveSupported = false;\n }\n}\nvar nonPassive = passiveSupported ? { passive: false } : false;\n\nexport { nonPassive };\n//# sourceMappingURL=aggresiveCapture.js.map\n"],"names":[],"mappings":"AAAA,IAAI,gBAAgB,GAAG,KAAK;AAC5B,IAAI,OAAO,MAAM,KAAK,WAAW,EAAE;AACnC,IAAI,IAAI;AACR,QAAQ,IAAI,OAAO,GAAG,MAAM,CAAC,cAAc,CAAC,EAAE,EAAE,SAAS,EAAE;AAC3D,YAAY,GAAG,EAAE,YAAY;AAC7B,gBAAgB,gBAAgB,GAAG,IAAI;AACvC,gBAAgB,OAAO,IAAI;AAC3B,aAAa;AACb,SAAS,CAAC;AACV;AACA,QAAQ,MAAM,CAAC,gBAAgB,CAAC,MAAM,EAAE,OAAO,EAAE,OAAO,CAAC;AACzD;AACA,QAAQ,MAAM,CAAC,mBAAmB,CAAC,MAAM,EAAE,OAAO,EAAE,OAAO,CAAC;AAC5D;AACA,IAAI,OAAO,GAAG,EAAE;AAChB,QAAQ,gBAAgB,GAAG,KAAK;AAChC;AACA;AACG,IAAC,UAAU,GAAG,gBAAgB,GAAG,EAAE,OAAO,EAAE,KAAK,EAAE,GAAG;;;;","x_google_ignoreList":[0]}
@@ -1,107 +0,0 @@
1
- var alwaysContainsScroll = function (node) {
2
- // textarea will always _contain_ scroll inside self. It only can be hidden
3
- return node.tagName === 'TEXTAREA';
4
- };
5
- var elementCanBeScrolled = function (node, overflow) {
6
- var styles = window.getComputedStyle(node);
7
- return (
8
- // not-not-scrollable
9
- styles[overflow] !== 'hidden' &&
10
- // contains scroll inside self
11
- !(styles.overflowY === styles.overflowX && !alwaysContainsScroll(node) && styles[overflow] === 'visible'));
12
- };
13
- var elementCouldBeVScrolled = function (node) { return elementCanBeScrolled(node, 'overflowY'); };
14
- var elementCouldBeHScrolled = function (node) { return elementCanBeScrolled(node, 'overflowX'); };
15
- var locationCouldBeScrolled = function (axis, node) {
16
- var ownerDocument = node.ownerDocument;
17
- var current = node;
18
- do {
19
- // Skip over shadow root
20
- if (typeof ShadowRoot !== 'undefined' && current instanceof ShadowRoot) {
21
- current = current.host;
22
- }
23
- var isScrollable = elementCouldBeScrolled(axis, current);
24
- if (isScrollable) {
25
- var _a = getScrollVariables(axis, current), s = _a[1], d = _a[2];
26
- if (s > d) {
27
- return true;
28
- }
29
- }
30
- current = current.parentNode;
31
- } while (current && current !== ownerDocument.body);
32
- return false;
33
- };
34
- var getVScrollVariables = function (_a) {
35
- var scrollTop = _a.scrollTop, scrollHeight = _a.scrollHeight, clientHeight = _a.clientHeight;
36
- return [
37
- scrollTop,
38
- scrollHeight,
39
- clientHeight,
40
- ];
41
- };
42
- var getHScrollVariables = function (_a) {
43
- var scrollLeft = _a.scrollLeft, scrollWidth = _a.scrollWidth, clientWidth = _a.clientWidth;
44
- return [
45
- scrollLeft,
46
- scrollWidth,
47
- clientWidth,
48
- ];
49
- };
50
- var elementCouldBeScrolled = function (axis, node) {
51
- return axis === 'v' ? elementCouldBeVScrolled(node) : elementCouldBeHScrolled(node);
52
- };
53
- var getScrollVariables = function (axis, node) {
54
- return axis === 'v' ? getVScrollVariables(node) : getHScrollVariables(node);
55
- };
56
- var getDirectionFactor = function (axis, direction) {
57
- /**
58
- * If the element's direction is rtl (right-to-left), then scrollLeft is 0 when the scrollbar is at its rightmost position,
59
- * and then increasingly negative as you scroll towards the end of the content.
60
- * @see https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollLeft
61
- */
62
- return axis === 'h' && direction === 'rtl' ? -1 : 1;
63
- };
64
- var handleScroll = function (axis, endTarget, event, sourceDelta, noOverscroll) {
65
- var directionFactor = getDirectionFactor(axis, window.getComputedStyle(endTarget).direction);
66
- var delta = directionFactor * sourceDelta;
67
- // find scrollable target
68
- var target = event.target;
69
- var targetInLock = endTarget.contains(target);
70
- var shouldCancelScroll = false;
71
- var isDeltaPositive = delta > 0;
72
- var availableScroll = 0;
73
- var availableScrollTop = 0;
74
- do {
75
- var _a = getScrollVariables(axis, target), position = _a[0], scroll_1 = _a[1], capacity = _a[2];
76
- var elementScroll = scroll_1 - capacity - directionFactor * position;
77
- if (position || elementScroll) {
78
- if (elementCouldBeScrolled(axis, target)) {
79
- availableScroll += elementScroll;
80
- availableScrollTop += position;
81
- }
82
- }
83
- if (target instanceof ShadowRoot) {
84
- target = target.host;
85
- }
86
- else {
87
- target = target.parentNode;
88
- }
89
- } while (
90
- // portaled content
91
- (!targetInLock && target !== document.body) ||
92
- // self content
93
- (targetInLock && (endTarget.contains(target) || endTarget === target)));
94
- // handle epsilon around 0 (non standard zoom levels)
95
- if (isDeltaPositive &&
96
- ((Math.abs(availableScroll) < 1) || (false))) {
97
- shouldCancelScroll = true;
98
- }
99
- else if (!isDeltaPositive &&
100
- ((Math.abs(availableScrollTop) < 1) || (false))) {
101
- shouldCancelScroll = true;
102
- }
103
- return shouldCancelScroll;
104
- };
105
-
106
- export { handleScroll, locationCouldBeScrolled };
107
- //# sourceMappingURL=handleScroll.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"handleScroll.js","sources":["../../../../../../../../../../react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/handleScroll.js"],"sourcesContent":["var alwaysContainsScroll = function (node) {\n // textarea will always _contain_ scroll inside self. It only can be hidden\n return node.tagName === 'TEXTAREA';\n};\nvar elementCanBeScrolled = function (node, overflow) {\n var styles = window.getComputedStyle(node);\n return (\n // not-not-scrollable\n styles[overflow] !== 'hidden' &&\n // contains scroll inside self\n !(styles.overflowY === styles.overflowX && !alwaysContainsScroll(node) && styles[overflow] === 'visible'));\n};\nvar elementCouldBeVScrolled = function (node) { return elementCanBeScrolled(node, 'overflowY'); };\nvar elementCouldBeHScrolled = function (node) { return elementCanBeScrolled(node, 'overflowX'); };\nvar locationCouldBeScrolled = function (axis, node) {\n var ownerDocument = node.ownerDocument;\n var current = node;\n do {\n // Skip over shadow root\n if (typeof ShadowRoot !== 'undefined' && current instanceof ShadowRoot) {\n current = current.host;\n }\n var isScrollable = elementCouldBeScrolled(axis, current);\n if (isScrollable) {\n var _a = getScrollVariables(axis, current), s = _a[1], d = _a[2];\n if (s > d) {\n return true;\n }\n }\n current = current.parentNode;\n } while (current && current !== ownerDocument.body);\n return false;\n};\nvar getVScrollVariables = function (_a) {\n var scrollTop = _a.scrollTop, scrollHeight = _a.scrollHeight, clientHeight = _a.clientHeight;\n return [\n scrollTop,\n scrollHeight,\n clientHeight,\n ];\n};\nvar getHScrollVariables = function (_a) {\n var scrollLeft = _a.scrollLeft, scrollWidth = _a.scrollWidth, clientWidth = _a.clientWidth;\n return [\n scrollLeft,\n scrollWidth,\n clientWidth,\n ];\n};\nvar elementCouldBeScrolled = function (axis, node) {\n return axis === 'v' ? elementCouldBeVScrolled(node) : elementCouldBeHScrolled(node);\n};\nvar getScrollVariables = function (axis, node) {\n return axis === 'v' ? getVScrollVariables(node) : getHScrollVariables(node);\n};\nvar getDirectionFactor = function (axis, direction) {\n /**\n * If the element's direction is rtl (right-to-left), then scrollLeft is 0 when the scrollbar is at its rightmost position,\n * and then increasingly negative as you scroll towards the end of the content.\n * @see https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollLeft\n */\n return axis === 'h' && direction === 'rtl' ? -1 : 1;\n};\nvar handleScroll = function (axis, endTarget, event, sourceDelta, noOverscroll) {\n var directionFactor = getDirectionFactor(axis, window.getComputedStyle(endTarget).direction);\n var delta = directionFactor * sourceDelta;\n // find scrollable target\n var target = event.target;\n var targetInLock = endTarget.contains(target);\n var shouldCancelScroll = false;\n var isDeltaPositive = delta > 0;\n var availableScroll = 0;\n var availableScrollTop = 0;\n do {\n var _a = getScrollVariables(axis, target), position = _a[0], scroll_1 = _a[1], capacity = _a[2];\n var elementScroll = scroll_1 - capacity - directionFactor * position;\n if (position || elementScroll) {\n if (elementCouldBeScrolled(axis, target)) {\n availableScroll += elementScroll;\n availableScrollTop += position;\n }\n }\n if (target instanceof ShadowRoot) {\n target = target.host;\n }\n else {\n target = target.parentNode;\n }\n } while (\n // portaled content\n (!targetInLock && target !== document.body) ||\n // self content\n (targetInLock && (endTarget.contains(target) || endTarget === target)));\n // handle epsilon around 0 (non standard zoom levels)\n if (isDeltaPositive &&\n ((noOverscroll && Math.abs(availableScroll) < 1) || (!noOverscroll && delta > availableScroll))) {\n shouldCancelScroll = true;\n }\n else if (!isDeltaPositive &&\n ((noOverscroll && Math.abs(availableScrollTop) < 1) || (!noOverscroll && -delta > availableScrollTop))) {\n shouldCancelScroll = true;\n }\n return shouldCancelScroll;\n};\n\nexport { handleScroll, locationCouldBeScrolled };\n//# sourceMappingURL=handleScroll.js.map\n"],"names":[],"mappings":"AAAA,IAAI,oBAAoB,GAAG,UAAU,IAAI,EAAE;AAC3C;AACA,IAAI,OAAO,IAAI,CAAC,OAAO,KAAK,UAAU;AACtC,CAAC;AACD,IAAI,oBAAoB,GAAG,UAAU,IAAI,EAAE,QAAQ,EAAE;AACrD,IAAI,IAAI,MAAM,GAAG,MAAM,CAAC,gBAAgB,CAAC,IAAI,CAAC;AAC9C,IAAI;AACJ;AACA,IAAI,MAAM,CAAC,QAAQ,CAAC,KAAK,QAAQ;AACjC;AACA,QAAQ,EAAE,MAAM,CAAC,SAAS,KAAK,MAAM,CAAC,SAAS,IAAI,CAAC,oBAAoB,CAAC,IAAI,CAAC,IAAI,MAAM,CAAC,QAAQ,CAAC,KAAK,SAAS,CAAC;AACjH,CAAC;AACD,IAAI,uBAAuB,GAAG,UAAU,IAAI,EAAE,EAAE,OAAO,oBAAoB,CAAC,IAAI,EAAE,WAAW,CAAC,CAAC,EAAE;AACjG,IAAI,uBAAuB,GAAG,UAAU,IAAI,EAAE,EAAE,OAAO,oBAAoB,CAAC,IAAI,EAAE,WAAW,CAAC,CAAC,EAAE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AE,QAAQ,GAAG,EAAE,CAAC,CAAC,CAAC,EAAE,QAAQ,GAAG,EAAE,CAAC,CAAC,CAAC;AACvG,QAAQ,IAAI,aAAa,GAAG,QAAQ,GAAG,QAAQ,GAAG,eAAe,GAAG,QAAQ;AAC5E,QAAQ,IAAI,QAAQ,IAAI,aAAa,EAAE;AACvC,YAAY,IAAI,sBAAsB,CAAC,IAAI,EAAE,MAAM,CAAC,EAAE;AACtD,gBAAgB,eAAe,IAAI,aAAa;AAChD,gBAAgB,kBAAkB,IAAI,QAAQ;AAC9C;AACA;AACA,QAAQ,IAAI,MAAM,YAAY,UAAU,EAAE;AAC1C,YAAY,MAAM,GAAG,MAAM,CAAC,IAAI;AAChC;AACA,aAAa;AACb,YAAY,MAAM,GAAG,MAAM,CAAC,UAAU;AACtC;AACA,KAAK;AACL;AACA,IAAI,CAAC,CAAC,YAAY,IAAI,MAAM,KAAK,QAAQ,CAAC,IAAI;AAC9C;AACA,SAAS,YAAY,KAAK,SAAS,CAAC,QAAQ,CAAC,MAAM,CAAC,IAAI,SAAS,KAAK,MAAM,CAAC,CAAC;AAC9E;AACA,IAAI,IAAI,eAAe;AACvB,SAAS,CAAiB,IAAI,CAAC,GAAG,CAAC,eAAe,CAAC,GAAG,CAAC,MAAM,KAAwC,CAAC,CAAC,EAAE;AACzG,QAAQ,kBAAkB,GAAG,IAAI;AACjC;AACA,SAAS,IAAI,CAAC,eAAe;AAC7B,SAAS,CAAiB,IAAI,CAAC,GAAG,CAAC,kBAAkB,CAAC,GAAG,CAAC,MAAM,KAA4C,CAAC,CAAC,EAAE;AAChH,QAAQ,kBAAkB,GAAG,IAAI;AACjC;AACA,IAAI,OAAO,kBAAkB;AAC7B;;;;","x_google_ignoreList":[0]}
@@ -1,6 +0,0 @@
1
- import { createSidecarMedium } from '../../../use-sidecar/dist/es2015/medium.js';
2
-
3
- var effectCar = createSidecarMedium();
4
-
5
- export { effectCar };
6
- //# sourceMappingURL=medium.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"medium.js","sources":["../../../../../../../../../../react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/medium.js"],"sourcesContent":["import { createSidecarMedium } from '../../../use-sidecar/dist/es2015/medium.js';\n\nvar effectCar = createSidecarMedium();\n\nexport { effectCar };\n//# sourceMappingURL=medium.js.map\n"],"names":[],"mappings":";;AAEG,IAAC,SAAS,GAAG,mBAAmB;;;;","x_google_ignoreList":[0]}
@@ -1,8 +0,0 @@
1
- import { RemoveScrollSideCar } from './SideEffect.js';
2
- import { effectCar } from './medium.js';
3
- import { exportSidecar } from '../../../use-sidecar/dist/es2015/exports.js';
4
-
5
- var SideCar = exportSidecar(effectCar, RemoveScrollSideCar);
6
-
7
- export { SideCar as default };
8
- //# sourceMappingURL=sidecar.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"sidecar.js","sources":["../../../../../../../../../../react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/sidecar.js"],"sourcesContent":["import { RemoveScrollSideCar } from './SideEffect.js';\nimport { effectCar } from './medium.js';\nimport { exportSidecar } from '../../../use-sidecar/dist/es2015/exports.js';\n\nvar SideCar = exportSidecar(effectCar, RemoveScrollSideCar);\n\nexport { SideCar as default };\n//# sourceMappingURL=sidecar.js.map\n"],"names":[],"mappings":";;;;AAIG,IAAC,OAAO,GAAG,aAAa,CAAC,SAAS,EAAE,mBAAmB;;;;","x_google_ignoreList":[0]}
@@ -1,57 +0,0 @@
1
- import * as React from 'react';
2
- import { styleSingleton } from '../../../react-style-singleton/dist/es2015/component.js';
3
- import { noScrollbarsClassName, zeroRightClassName, fullWidthClassName, removedBarSizeVariable } from './constants.js';
4
- import { getGapWidth } from './utils.js';
5
-
6
- var Style = styleSingleton();
7
- var lockAttribute = 'data-scroll-locked';
8
- // important tip - once we measure scrollBar width and remove them
9
- // we could not repeat this operation
10
- // thus we are using style-singleton - only the first "yet correct" style will be applied.
11
- var getStyles = function (_a, allowRelative, gapMode, important) {
12
- var left = _a.left, top = _a.top, right = _a.right, gap = _a.gap;
13
- if (gapMode === void 0) { gapMode = 'margin'; }
14
- return "\n .".concat(noScrollbarsClassName, " {\n overflow: hidden ").concat(important, ";\n padding-right: ").concat(gap, "px ").concat(important, ";\n }\n body[").concat(lockAttribute, "] {\n overflow: hidden ").concat(important, ";\n overscroll-behavior: contain;\n ").concat([
15
- allowRelative && "position: relative ".concat(important, ";"),
16
- gapMode === 'margin' &&
17
- "\n padding-left: ".concat(left, "px;\n padding-top: ").concat(top, "px;\n padding-right: ").concat(right, "px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(gap, "px ").concat(important, ";\n "),
18
- gapMode === 'padding' && "padding-right: ".concat(gap, "px ").concat(important, ";"),
19
- ]
20
- .filter(Boolean)
21
- .join(''), "\n }\n \n .").concat(zeroRightClassName, " {\n right: ").concat(gap, "px ").concat(important, ";\n }\n \n .").concat(fullWidthClassName, " {\n margin-right: ").concat(gap, "px ").concat(important, ";\n }\n \n .").concat(zeroRightClassName, " .").concat(zeroRightClassName, " {\n right: 0 ").concat(important, ";\n }\n \n .").concat(fullWidthClassName, " .").concat(fullWidthClassName, " {\n margin-right: 0 ").concat(important, ";\n }\n \n body[").concat(lockAttribute, "] {\n ").concat(removedBarSizeVariable, ": ").concat(gap, "px;\n }\n");
22
- };
23
- var getCurrentUseCounter = function () {
24
- var counter = parseInt(document.body.getAttribute(lockAttribute) || '0', 10);
25
- return isFinite(counter) ? counter : 0;
26
- };
27
- var useLockAttribute = function () {
28
- React.useEffect(function () {
29
- document.body.setAttribute(lockAttribute, (getCurrentUseCounter() + 1).toString());
30
- return function () {
31
- var newCounter = getCurrentUseCounter() - 1;
32
- if (newCounter <= 0) {
33
- document.body.removeAttribute(lockAttribute);
34
- }
35
- else {
36
- document.body.setAttribute(lockAttribute, newCounter.toString());
37
- }
38
- };
39
- }, []);
40
- };
41
- /**
42
- * Removes page scrollbar and blocks page scroll when mounted
43
- */
44
- var RemoveScrollBar = function (_a) {
45
- var noRelative = _a.noRelative, noImportant = _a.noImportant, _b = _a.gapMode, gapMode = _b === void 0 ? 'margin' : _b;
46
- useLockAttribute();
47
- /*
48
- gap will be measured on every component mount
49
- however it will be used only by the "first" invocation
50
- due to singleton nature of <Style
51
- */
52
- var gap = React.useMemo(function () { return getGapWidth(gapMode); }, [gapMode]);
53
- return React.createElement(Style, { styles: getStyles(gap, !noRelative, gapMode, !noImportant ? '!important' : '') });
54
- };
55
-
56
- export { RemoveScrollBar, lockAttribute, useLockAttribute };
57
- //# sourceMappingURL=component.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"component.js","sources":["../../../../../../../../../../react-components/dist/es/node_modules/react-remove-scroll-bar/dist/es2015/component.js"],"sourcesContent":["import * as React from 'react';\nimport { styleSingleton } from '../../../react-style-singleton/dist/es2015/component.js';\nimport { noScrollbarsClassName, zeroRightClassName, fullWidthClassName, removedBarSizeVariable } from './constants.js';\nimport { getGapWidth } from './utils.js';\n\nvar Style = styleSingleton();\nvar lockAttribute = 'data-scroll-locked';\n// important tip - once we measure scrollBar width and remove them\n// we could not repeat this operation\n// thus we are using style-singleton - only the first \"yet correct\" style will be applied.\nvar getStyles = function (_a, allowRelative, gapMode, important) {\n var left = _a.left, top = _a.top, right = _a.right, gap = _a.gap;\n if (gapMode === void 0) { gapMode = 'margin'; }\n return \"\\n .\".concat(noScrollbarsClassName, \" {\\n overflow: hidden \").concat(important, \";\\n padding-right: \").concat(gap, \"px \").concat(important, \";\\n }\\n body[\").concat(lockAttribute, \"] {\\n overflow: hidden \").concat(important, \";\\n overscroll-behavior: contain;\\n \").concat([\n allowRelative && \"position: relative \".concat(important, \";\"),\n gapMode === 'margin' &&\n \"\\n padding-left: \".concat(left, \"px;\\n padding-top: \").concat(top, \"px;\\n padding-right: \").concat(right, \"px;\\n margin-left:0;\\n margin-top:0;\\n margin-right: \").concat(gap, \"px \").concat(important, \";\\n \"),\n gapMode === 'padding' && \"padding-right: \".concat(gap, \"px \").concat(important, \";\"),\n ]\n .filter(Boolean)\n .join(''), \"\\n }\\n \\n .\").concat(zeroRightClassName, \" {\\n right: \").concat(gap, \"px \").concat(important, \";\\n }\\n \\n .\").concat(fullWidthClassName, \" {\\n margin-right: \").concat(gap, \"px \").concat(important, \";\\n }\\n \\n .\").concat(zeroRightClassName, \" .\").concat(zeroRightClassName, \" {\\n right: 0 \").concat(important, \";\\n }\\n \\n .\").concat(fullWidthClassName, \" .\").concat(fullWidthClassName, \" {\\n margin-right: 0 \").concat(important, \";\\n }\\n \\n body[\").concat(lockAttribute, \"] {\\n \").concat(removedBarSizeVariable, \": \").concat(gap, \"px;\\n }\\n\");\n};\nvar getCurrentUseCounter = function () {\n var counter = parseInt(document.body.getAttribute(lockAttribute) || '0', 10);\n return isFinite(counter) ? counter : 0;\n};\nvar useLockAttribute = function () {\n React.useEffect(function () {\n document.body.setAttribute(lockAttribute, (getCurrentUseCounter() + 1).toString());\n return function () {\n var newCounter = getCurrentUseCounter() - 1;\n if (newCounter <= 0) {\n document.body.removeAttribute(lockAttribute);\n }\n else {\n document.body.setAttribute(lockAttribute, newCounter.toString());\n }\n };\n }, []);\n};\n/**\n * Removes page scrollbar and blocks page scroll when mounted\n */\nvar RemoveScrollBar = function (_a) {\n var noRelative = _a.noRelative, noImportant = _a.noImportant, _b = _a.gapMode, gapMode = _b === void 0 ? 'margin' : _b;\n useLockAttribute();\n /*\n gap will be measured on every component mount\n however it will be used only by the \"first\" invocation\n due to singleton nature of <Style\n */\n var gap = React.useMemo(function () { return getGapWidth(gapMode); }, [gapMode]);\n return React.createElement(Style, { styles: getStyles(gap, !noRelative, gapMode, !noImportant ? '!important' : '') });\n};\n\nexport { RemoveScrollBar, lockAttribute, useLockAttribute };\n//# sourceMappingURL=component.js.map\n"],"names":[],"mappings":";;;;;AAKA,IAAI,KAAK,GAAG,cAAc,EAAE;AACzB,IAAC,aAAa,GAAG;AACpB;AACA;AACA;AACA,IAAI,SAAS,GAAG,UAAU,EAAE,EAAE,aAAa,EAAE,OAAO,EAAE,SA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AC,IAAI,CAAC,YAAY,CAAC,aAAa,EAAE,UAAU,CAAC,QAAQ,EAAE,CAAC;AAChF;AACA,SAAS;AACT,KAAK,EAAE,EAAE,CAAC;AACV;AACA;AACA;AACA;AACG,IAAC,eAAe,GAAG,UAAU,EAAE,EAAE;AACpC,IAAI,IAAI,UAAU,GAAG,EAAE,CAAC,UAAU,EAAE,WAAW,GAAG,EAAE,CAAC,WAAW,EAAE,EAAE,GAAG,EAAE,CAAC,OAAO,EAAE,OAAO,GAAG,EAAE,KAAK,MAAM,GAAG,QAAQ,GAAG,EAAE;AAC1H,IAAI,gBAAgB,EAAE;AACtB;AACA;AACA;AACA;AACA;AACA,IAAI,IAAI,GAAG,GAAG,KAAK,CAAC,OAAO,CAAC,YAAY,EAAE,OAAO,WAAW,CAAC,OAAO,CAAC,CAAC,EAAE,EAAE,CAAC,OAAO,CAAC,CAAC;AACpF,IAAI,OAAO,KAAK,CAAC,aAAa,CAAC,KAAK,EAAE,EAAE,MAAM,EAAE,SAAS,CAAC,GAAG,EAAE,CAAC,UAAU,EAAE,OAAO,EAAE,CAAC,WAAW,GAAG,YAAY,GAAG,EAAE,CAAC,EAAE,CAAC;AACzH;;;;","x_google_ignoreList":[0]}
@@ -1,11 +0,0 @@
1
- var zeroRightClassName = 'right-scroll-bar-position';
2
- var fullWidthClassName = 'width-before-scroll-bar';
3
- var noScrollbarsClassName = 'with-scroll-bars-hidden';
4
- /**
5
- * Name of a CSS variable containing the amount of "hidden" scrollbar
6
- * ! might be undefined ! use will fallback!
7
- */
8
- var removedBarSizeVariable = '--removed-body-scroll-bar-size';
9
-
10
- export { fullWidthClassName, noScrollbarsClassName, removedBarSizeVariable, zeroRightClassName };
11
- //# sourceMappingURL=constants.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"constants.js","sources":["../../../../../../../../../../react-components/dist/es/node_modules/react-remove-scroll-bar/dist/es2015/constants.js"],"sourcesContent":["var zeroRightClassName = 'right-scroll-bar-position';\nvar fullWidthClassName = 'width-before-scroll-bar';\nvar noScrollbarsClassName = 'with-scroll-bars-hidden';\n/**\n * Name of a CSS variable containing the amount of \"hidden\" scrollbar\n * ! might be undefined ! use will fallback!\n */\nvar removedBarSizeVariable = '--removed-body-scroll-bar-size';\n\nexport { fullWidthClassName, noScrollbarsClassName, removedBarSizeVariable, zeroRightClassName };\n//# sourceMappingURL=constants.js.map\n"],"names":[],"mappings":"AAAG,IAAC,kBAAkB,GAAG;AACtB,IAAC,kBAAkB,GAAG;AACtB,IAAC,qBAAqB,GAAG;AAC5B;AACA;AACA;AACA;AACG,IAAC,sBAAsB,GAAG;;;;","x_google_ignoreList":[0]}
@@ -1,32 +0,0 @@
1
- var zeroGap = {
2
- left: 0,
3
- top: 0,
4
- right: 0,
5
- gap: 0,
6
- };
7
- var parse = function (x) { return parseInt(x || '', 10) || 0; };
8
- var getOffset = function (gapMode) {
9
- var cs = window.getComputedStyle(document.body);
10
- var left = cs[gapMode === 'padding' ? 'paddingLeft' : 'marginLeft'];
11
- var top = cs[gapMode === 'padding' ? 'paddingTop' : 'marginTop'];
12
- var right = cs[gapMode === 'padding' ? 'paddingRight' : 'marginRight'];
13
- return [parse(left), parse(top), parse(right)];
14
- };
15
- var getGapWidth = function (gapMode) {
16
- if (gapMode === void 0) { gapMode = 'margin'; }
17
- if (typeof window === 'undefined') {
18
- return zeroGap;
19
- }
20
- var offsets = getOffset(gapMode);
21
- var documentWidth = document.documentElement.clientWidth;
22
- var windowWidth = window.innerWidth;
23
- return {
24
- left: offsets[0],
25
- top: offsets[1],
26
- right: offsets[2],
27
- gap: Math.max(0, windowWidth - documentWidth + offsets[2] - offsets[0]),
28
- };
29
- };
30
-
31
- export { getGapWidth, zeroGap };
32
- //# sourceMappingURL=utils.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"utils.js","sources":["../../../../../../../../../../react-components/dist/es/node_modules/react-remove-scroll-bar/dist/es2015/utils.js"],"sourcesContent":["var zeroGap = {\n left: 0,\n top: 0,\n right: 0,\n gap: 0,\n};\nvar parse = function (x) { return parseInt(x || '', 10) || 0; };\nvar getOffset = function (gapMode) {\n var cs = window.getComputedStyle(document.body);\n var left = cs[gapMode === 'padding' ? 'paddingLeft' : 'marginLeft'];\n var top = cs[gapMode === 'padding' ? 'paddingTop' : 'marginTop'];\n var right = cs[gapMode === 'padding' ? 'paddingRight' : 'marginRight'];\n return [parse(left), parse(top), parse(right)];\n};\nvar getGapWidth = function (gapMode) {\n if (gapMode === void 0) { gapMode = 'margin'; }\n if (typeof window === 'undefined') {\n return zeroGap;\n }\n var offsets = getOffset(gapMode);\n var documentWidth = document.documentElement.clientWidth;\n var windowWidth = window.innerWidth;\n return {\n left: offsets[0],\n top: offsets[1],\n right: offsets[2],\n gap: Math.max(0, windowWidth - documentWidth + offsets[2] - offsets[0]),\n };\n};\n\nexport { getGapWidth, zeroGap };\n//# sourceMappingURL=utils.js.map\n"],"names":[],"mappings":"AAAG,IAAC,OAAO,GAAG;AACd,IAAI,IAAI,EAAE,CAAC;AACX,IAAI,GAAG,EAAE,CAAC;AACV,IAAI,KAAK,EAAE,CAAC;AACZ,IAAI,GAAG,EAAE,CAAC;AACV;AACA,IAAI,KAAK,GAAG,UAAU,CAAC,EAAE,EAAE,OAAO,QAAQ,CAAC,CAAC,IAAI,EAAE,EAAE,EAAE,CAAC,IAAI,CAAC,CAAC,EAAE;AAC/D,IAAI,SAAS,GAAG,UAAU,OAAO,EAAE;AACnC,IAAI,IAAI,EAAE,GAAG,MAAM,CAAC,gBAAgB,CAAC,QAAQ,CAAC,IAAI,CAAC;AACnD,IAAI,IAAI,IAAI,GAAG,EAAE,CAAC,OAAO,KAAK,SAAS,GAAG,aAAa,GAAG,YAAY,CAAC;AACvE,IAAI,IAAI,GAAG,GAAG,EAAE,CAAC,OAAO,KAAK,SAAS,GAAG,YAAY,GAAG,WAAW,CAAC;AACpE,IAAI,IAAI,KAAK,GAAG,EAAE,CAAC,OAAO,KAAK,SAAS,GAAG,cAAc,GAAG,aAAa,CAAC;AAC1E,IAAI,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC;AAClD,CAAC;AACE,IAAC,WAAW,GAAG,UAAU,OAAO,EAAE;AACrC,IAAI,IAAI,OAAO,KAAK,MAAM,EAAE,EAAE,OAAO,GAAG,QAAQ,CAAC;AACjD,IAAI,IAAI,OAAO,MAAM,KAAK,WAAW,EAAE;AACvC,QAAQ,OAAO,OAAO;AACtB;AACA,IAAI,IAAI,OAAO,GAAG,SAAS,CAAC,OAAO,CAAC;AACpC,IAAI,IAAI,aAAa,GAAG,QAAQ,CAAC,eAAe,CAAC,WAAW;AAC5D,IAAI,IAAI,WAAW,GAAG,MAAM,CAAC,UAAU;AACvC,IAAI,OAAO;AACX,QAAQ,IAAI,EAAE,OAAO,CAAC,CAAC,CAAC;AACxB,QAAQ,GAAG,EAAE,OAAO,CAAC,CAAC,CAAC;AACvB,QAAQ,KAAK,EAAE,OAAO,CAAC,CAAC,CAAC;AACzB,QAAQ,GAAG,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,WAAW,GAAG,aAAa,GAAG,OAAO,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC;AAC/E,KAAK;AACL;;;;","x_google_ignoreList":[0]}
@@ -1,20 +0,0 @@
1
- import { styleHookSingleton } from './hook.js';
2
-
3
- /**
4
- * create a Component to add styles on demand
5
- * - styles are added when first instance is mounted
6
- * - styles are removed when the last instance is unmounted
7
- * - changing styles in runtime does nothing unless dynamic is set. But with multiple components that can lead to the undefined behavior
8
- */
9
- var styleSingleton = function () {
10
- var useStyle = styleHookSingleton();
11
- var Sheet = function (_a) {
12
- var styles = _a.styles, dynamic = _a.dynamic;
13
- useStyle(styles, dynamic);
14
- return null;
15
- };
16
- return Sheet;
17
- };
18
-
19
- export { styleSingleton };
20
- //# sourceMappingURL=component.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"component.js","sources":["../../../../../../../../../../react-components/dist/es/node_modules/react-style-singleton/dist/es2015/component.js"],"sourcesContent":["import { styleHookSingleton } from './hook.js';\n\n/**\n * create a Component to add styles on demand\n * - styles are added when first instance is mounted\n * - styles are removed when the last instance is unmounted\n * - changing styles in runtime does nothing unless dynamic is set. But with multiple components that can lead to the undefined behavior\n */\nvar styleSingleton = function () {\n var useStyle = styleHookSingleton();\n var Sheet = function (_a) {\n var styles = _a.styles, dynamic = _a.dynamic;\n useStyle(styles, dynamic);\n return null;\n };\n return Sheet;\n};\n\nexport { styleSingleton };\n//# sourceMappingURL=component.js.map\n"],"names":[],"mappings":";;AAEA;AACA;AACA;AACA;AACA;AACA;AACG,IAAC,cAAc,GAAG,YAAY;AACjC,IAAI,IAAI,QAAQ,GAAG,kBAAkB,EAAE;AACvC,IAAI,IAAI,KAAK,GAAG,UAAU,EAAE,EAAE;AAC9B,QAAQ,IAAI,MAAM,GAAG,EAAE,CAAC,MAAM,EAAE,OAAO,GAAG,EAAE,CAAC,OAAO;AACpD,QAAQ,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC;AACjC,QAAQ,OAAO,IAAI;AACnB,KAAK;AACL,IAAI,OAAO,KAAK;AAChB;;;;","x_google_ignoreList":[0]}
@@ -1,26 +0,0 @@
1
- import * as React from 'react';
2
- import { stylesheetSingleton } from './singleton.js';
3
-
4
- /**
5
- * creates a hook to control style singleton
6
- * @see {@link styleSingleton} for a safer component version
7
- * @example
8
- * ```tsx
9
- * const useStyle = styleHookSingleton();
10
- * ///
11
- * useStyle('body { overflow: hidden}');
12
- */
13
- var styleHookSingleton = function () {
14
- var sheet = stylesheetSingleton();
15
- return function (styles, isDynamic) {
16
- React.useEffect(function () {
17
- sheet.add(styles);
18
- return function () {
19
- sheet.remove();
20
- };
21
- }, [styles && isDynamic]);
22
- };
23
- };
24
-
25
- export { styleHookSingleton };
26
- //# sourceMappingURL=hook.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"hook.js","sources":["../../../../../../../../../../react-components/dist/es/node_modules/react-style-singleton/dist/es2015/hook.js"],"sourcesContent":["import * as React from 'react';\nimport { stylesheetSingleton } from './singleton.js';\n\n/**\n * creates a hook to control style singleton\n * @see {@link styleSingleton} for a safer component version\n * @example\n * ```tsx\n * const useStyle = styleHookSingleton();\n * ///\n * useStyle('body { overflow: hidden}');\n */\nvar styleHookSingleton = function () {\n var sheet = stylesheetSingleton();\n return function (styles, isDynamic) {\n React.useEffect(function () {\n sheet.add(styles);\n return function () {\n sheet.remove();\n };\n }, [styles && isDynamic]);\n };\n};\n\nexport { styleHookSingleton };\n//# sourceMappingURL=hook.js.map\n"],"names":[],"mappings":";;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACG,IAAC,kBAAkB,GAAG,YAAY;AACrC,IAAI,IAAI,KAAK,GAAG,mBAAmB,EAAE;AACrC,IAAI,OAAO,UAAU,MAAM,EAAE,SAAS,EAAE;AACxC,QAAQ,KAAK,CAAC,SAAS,CAAC,YAAY;AACpC,YAAY,KAAK,CAAC,GAAG,CAAC,MAAM,CAAC;AAC7B,YAAY,OAAO,YAAY;AAC/B,gBAAgB,KAAK,CAAC,MAAM,EAAE;AAC9B,aAAa;AACb,SAAS,EAAE,CAAC,MAAM,IAAI,SAAS,CAAC,CAAC;AACjC,KAAK;AACL;;;;","x_google_ignoreList":[0]}