@sparrowengg/twigs-editor-react 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (739) hide show
  1. package/README.md +38 -0
  2. package/dist/cjs/_virtual/_commonjsHelpers.js +8 -0
  3. package/dist/cjs/_virtual/_commonjsHelpers.js.map +1 -0
  4. package/dist/cjs/_virtual/assertString.js +6 -0
  5. package/dist/cjs/_virtual/assertString.js.map +1 -0
  6. package/dist/cjs/_virtual/isFQDN.js +6 -0
  7. package/dist/cjs/_virtual/isFQDN.js.map +1 -0
  8. package/dist/cjs/_virtual/isIP.js +6 -0
  9. package/dist/cjs/_virtual/isIP.js.map +1 -0
  10. package/dist/cjs/_virtual/isURL.js +12 -0
  11. package/dist/cjs/_virtual/isURL.js.map +1 -0
  12. package/dist/cjs/_virtual/isURL2.js +6 -0
  13. package/dist/cjs/_virtual/isURL2.js.map +1 -0
  14. package/dist/cjs/_virtual/merge.js +6 -0
  15. package/dist/cjs/_virtual/merge.js.map +1 -0
  16. package/dist/cjs/components/base-dropdown/index.js +175 -0
  17. package/dist/cjs/components/base-dropdown/index.js.map +1 -0
  18. package/dist/cjs/components/dialog-link-editor/index.js +291 -0
  19. package/dist/cjs/components/dialog-link-editor/index.js.map +1 -0
  20. package/dist/cjs/components/dialog-link-editor/link-editor-dialog.js +199 -0
  21. package/dist/cjs/components/dialog-link-editor/link-editor-dialog.js.map +1 -0
  22. package/dist/cjs/components/dialog-link-editor/link-tooltip.js +122 -0
  23. package/dist/cjs/components/dialog-link-editor/link-tooltip.js.map +1 -0
  24. package/dist/cjs/components/floating-toolbar/floating-toolbar.js +302 -0
  25. package/dist/cjs/components/floating-toolbar/floating-toolbar.js.map +1 -0
  26. package/dist/cjs/components/rich-editor/index.js +142 -0
  27. package/dist/cjs/components/rich-editor/index.js.map +1 -0
  28. package/dist/cjs/components/toolbar/toolbar.js +76 -0
  29. package/dist/cjs/components/toolbar/toolbar.js.map +1 -0
  30. package/dist/cjs/components/toolbar/tools/bold.js +52 -0
  31. package/dist/cjs/components/toolbar/tools/bold.js.map +1 -0
  32. package/dist/cjs/components/toolbar/tools/code-block.js +79 -0
  33. package/dist/cjs/components/toolbar/tools/code-block.js.map +1 -0
  34. package/dist/cjs/components/toolbar/tools/code.js +54 -0
  35. package/dist/cjs/components/toolbar/tools/code.js.map +1 -0
  36. package/dist/cjs/components/toolbar/tools/commons.js +16 -0
  37. package/dist/cjs/components/toolbar/tools/commons.js.map +1 -0
  38. package/dist/cjs/components/toolbar/tools/format.js +136 -0
  39. package/dist/cjs/components/toolbar/tools/format.js.map +1 -0
  40. package/dist/cjs/components/toolbar/tools/italic.js +57 -0
  41. package/dist/cjs/components/toolbar/tools/italic.js.map +1 -0
  42. package/dist/cjs/components/toolbar/tools/link.js +71 -0
  43. package/dist/cjs/components/toolbar/tools/link.js.map +1 -0
  44. package/dist/cjs/components/toolbar/tools/ordered-list.js +62 -0
  45. package/dist/cjs/components/toolbar/tools/ordered-list.js.map +1 -0
  46. package/dist/cjs/components/toolbar/tools/text-align.js +82 -0
  47. package/dist/cjs/components/toolbar/tools/text-align.js.map +1 -0
  48. package/dist/cjs/components/toolbar/tools/underline.js +57 -0
  49. package/dist/cjs/components/toolbar/tools/underline.js.map +1 -0
  50. package/dist/cjs/components/toolbar/tools/unordered-list.js +62 -0
  51. package/dist/cjs/components/toolbar/tools/unordered-list.js.map +1 -0
  52. package/dist/cjs/components/toolbar-context/context.js +148 -0
  53. package/dist/cjs/components/toolbar-context/context.js.map +1 -0
  54. package/dist/cjs/components/toolbar-context/store.js +75 -0
  55. package/dist/cjs/components/toolbar-context/store.js.map +1 -0
  56. package/dist/cjs/components/toolbar-context/utils.js +6 -0
  57. package/dist/cjs/components/toolbar-context/utils.js.map +1 -0
  58. package/dist/cjs/editor.js +154 -0
  59. package/dist/cjs/editor.js.map +1 -0
  60. package/dist/cjs/index.js +86 -0
  61. package/dist/cjs/index.js.map +1 -0
  62. package/dist/cjs/nodes/emoji.js +86 -0
  63. package/dist/cjs/nodes/emoji.js.map +1 -0
  64. package/dist/cjs/nodes/hashtag.js +109 -0
  65. package/dist/cjs/nodes/hashtag.js.map +1 -0
  66. package/dist/cjs/nodes/image.js +215 -0
  67. package/dist/cjs/nodes/image.js.map +1 -0
  68. package/dist/cjs/nodes/kudos.js +110 -0
  69. package/dist/cjs/nodes/kudos.js.map +1 -0
  70. package/dist/cjs/nodes/mention.js +109 -0
  71. package/dist/cjs/nodes/mention.js.map +1 -0
  72. package/dist/cjs/nodes/variables.js +109 -0
  73. package/dist/cjs/nodes/variables.js.map +1 -0
  74. package/dist/cjs/plugins/data-management-plugin/index.js +40 -0
  75. package/dist/cjs/plugins/data-management-plugin/index.js.map +1 -0
  76. package/dist/cjs/plugins/emoji/emoji-list.js +16609 -0
  77. package/dist/cjs/plugins/emoji/emoji-list.js.map +1 -0
  78. package/dist/cjs/plugins/emoji/index.js +126 -0
  79. package/dist/cjs/plugins/emoji/index.js.map +1 -0
  80. package/dist/cjs/plugins/hashtag/index.js +100 -0
  81. package/dist/cjs/plugins/hashtag/index.js.map +1 -0
  82. package/dist/cjs/plugins/images/index.js +164 -0
  83. package/dist/cjs/plugins/images/index.js.map +1 -0
  84. package/dist/cjs/plugins/images/utils.js +10 -0
  85. package/dist/cjs/plugins/images/utils.js.map +1 -0
  86. package/dist/cjs/plugins/link/auto-link.js +21 -0
  87. package/dist/cjs/plugins/link/auto-link.js.map +1 -0
  88. package/dist/cjs/plugins/link/convert-selection-on-paste.js +34 -0
  89. package/dist/cjs/plugins/link/convert-selection-on-paste.js.map +1 -0
  90. package/dist/cjs/plugins/link/link.js +68 -0
  91. package/dist/cjs/plugins/link/link.js.map +1 -0
  92. package/dist/cjs/plugins/mentions/index.js +108 -0
  93. package/dist/cjs/plugins/mentions/index.js.map +1 -0
  94. package/dist/cjs/plugins/tab-focus/index.js +54 -0
  95. package/dist/cjs/plugins/tab-focus/index.js.map +1 -0
  96. package/dist/cjs/react-components/dist/es/_virtual/_commonjsHelpers.js +8 -0
  97. package/dist/cjs/react-components/dist/es/_virtual/_commonjsHelpers.js.map +1 -0
  98. package/dist/cjs/react-components/dist/es/_virtual/index.js +6 -0
  99. package/dist/cjs/react-components/dist/es/_virtual/index.js.map +1 -0
  100. package/dist/cjs/react-components/dist/es/_virtual/index2.js +6 -0
  101. package/dist/cjs/react-components/dist/es/_virtual/index2.js.map +1 -0
  102. package/dist/cjs/react-components/dist/es/_virtual/react-is.development.js +6 -0
  103. package/dist/cjs/react-components/dist/es/_virtual/react-is.development.js.map +1 -0
  104. package/dist/cjs/react-components/dist/es/_virtual/react-is.production.min.js +6 -0
  105. package/dist/cjs/react-components/dist/es/_virtual/react-is.production.min.js.map +1 -0
  106. package/dist/cjs/react-components/dist/es/box/box.js +47 -0
  107. package/dist/cjs/react-components/dist/es/box/box.js.map +1 -0
  108. package/dist/cjs/react-components/dist/es/button/button.js +774 -0
  109. package/dist/cjs/react-components/dist/es/button/button.js.map +1 -0
  110. package/dist/cjs/react-components/dist/es/button/icon-button.js +77 -0
  111. package/dist/cjs/react-components/dist/es/button/icon-button.js.map +1 -0
  112. package/dist/cjs/react-components/dist/es/button/side-element.js +199 -0
  113. package/dist/cjs/react-components/dist/es/button/side-element.js.map +1 -0
  114. package/dist/cjs/react-components/dist/es/button/utils.js +105 -0
  115. package/dist/cjs/react-components/dist/es/button/utils.js.map +1 -0
  116. package/dist/cjs/react-components/dist/es/dialog/dialog.js +197 -0
  117. package/dist/cjs/react-components/dist/es/dialog/dialog.js.map +1 -0
  118. package/dist/cjs/react-components/dist/es/dropdown/dropdown.js +195 -0
  119. package/dist/cjs/react-components/dist/es/dropdown/dropdown.js.map +1 -0
  120. package/dist/cjs/react-components/dist/es/flex/flex.js +98 -0
  121. package/dist/cjs/react-components/dist/es/flex/flex.js.map +1 -0
  122. package/dist/cjs/react-components/dist/es/form-helper-text/form-helper-text.js +76 -0
  123. package/dist/cjs/react-components/dist/es/form-helper-text/form-helper-text.js.map +1 -0
  124. package/dist/cjs/react-components/dist/es/form-label/form-label.js +176 -0
  125. package/dist/cjs/react-components/dist/es/form-label/form-label.js.map +1 -0
  126. package/dist/cjs/react-components/dist/es/input/form-input.js +159 -0
  127. package/dist/cjs/react-components/dist/es/input/form-input.js.map +1 -0
  128. package/dist/cjs/react-components/dist/es/input/input.js +377 -0
  129. package/dist/cjs/react-components/dist/es/input/input.js.map +1 -0
  130. package/dist/cjs/react-components/dist/es/link/link.js +58 -0
  131. package/dist/cjs/react-components/dist/es/link/link.js.map +1 -0
  132. package/dist/cjs/react-components/dist/es/loader/circle.js +204 -0
  133. package/dist/cjs/react-components/dist/es/loader/circle.js.map +1 -0
  134. package/dist/cjs/react-components/dist/es/loader/line.js +130 -0
  135. package/dist/cjs/react-components/dist/es/loader/line.js.map +1 -0
  136. package/dist/cjs/react-components/dist/es/node_modules/@babel/runtime/helpers/esm/extends.js +21 -0
  137. package/dist/cjs/react-components/dist/es/node_modules/@babel/runtime/helpers/esm/extends.js.map +1 -0
  138. package/dist/cjs/react-components/dist/es/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js +14 -0
  139. package/dist/cjs/react-components/dist/es/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js.map +1 -0
  140. package/dist/cjs/react-components/dist/es/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +19 -0
  141. package/dist/cjs/react-components/dist/es/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js.map +1 -0
  142. package/dist/cjs/react-components/dist/es/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js +14 -0
  143. package/dist/cjs/react-components/dist/es/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js.map +1 -0
  144. package/dist/cjs/react-components/dist/es/node_modules/@floating-ui/core/dist/floating-ui.core.js +788 -0
  145. package/dist/cjs/react-components/dist/es/node_modules/@floating-ui/core/dist/floating-ui.core.js.map +1 -0
  146. package/dist/cjs/react-components/dist/es/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +612 -0
  147. package/dist/cjs/react-components/dist/es/node_modules/@floating-ui/dom/dist/floating-ui.dom.js.map +1 -0
  148. package/dist/cjs/react-components/dist/es/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js +299 -0
  149. package/dist/cjs/react-components/dist/es/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js.map +1 -0
  150. package/dist/cjs/react-components/dist/es/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +146 -0
  151. package/dist/cjs/react-components/dist/es/node_modules/@floating-ui/utils/dist/floating-ui.utils.js.map +1 -0
  152. package/dist/cjs/react-components/dist/es/node_modules/@floating-ui/utils/dom/dist/floating-ui.utils.dom.js +148 -0
  153. package/dist/cjs/react-components/dist/es/node_modules/@floating-ui/utils/dom/dist/floating-ui.utils.dom.js.map +1 -0
  154. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/primitive/dist/index.js +14 -0
  155. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/primitive/dist/index.js.map +1 -0
  156. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-arrow/dist/index.js +48 -0
  157. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-arrow/dist/index.js.map +1 -0
  158. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-collection/dist/index.js +71 -0
  159. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-collection/dist/index.js.map +1 -0
  160. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-compose-refs/dist/index.js +41 -0
  161. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-compose-refs/dist/index.js.map +1 -0
  162. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-context/dist/index.js +102 -0
  163. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-context/dist/index.js.map +1 -0
  164. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-dialog/dist/index.js +354 -0
  165. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-dialog/dist/index.js.map +1 -0
  166. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-direction/dist/index.js +33 -0
  167. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-direction/dist/index.js.map +1 -0
  168. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-dismissable-layer/dist/index.js +234 -0
  169. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-dismissable-layer/dist/index.js.map +1 -0
  170. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-dropdown-menu/dist/index.js +303 -0
  171. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-dropdown-menu/dist/index.js.map +1 -0
  172. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-focus-guards/dist/index.js +48 -0
  173. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-focus-guards/dist/index.js.map +1 -0
  174. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-focus-scope/dist/index.js +229 -0
  175. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-focus-scope/dist/index.js.map +1 -0
  176. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-id/dist/index.js +37 -0
  177. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-id/dist/index.js.map +1 -0
  178. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-label/dist/index.js +47 -0
  179. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-label/dist/index.js.map +1 -0
  180. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-menu/dist/index.js +847 -0
  181. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-menu/dist/index.js.map +1 -0
  182. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-popper/dist/index.js +309 -0
  183. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-popper/dist/index.js.map +1 -0
  184. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-portal/dist/index.js +39 -0
  185. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-portal/dist/index.js.map +1 -0
  186. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-presence/dist/index.js +142 -0
  187. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-presence/dist/index.js.map +1 -0
  188. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-primitive/dist/index.js +65 -0
  189. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-primitive/dist/index.js.map +1 -0
  190. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-roving-focus/dist/index.js +246 -0
  191. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-roving-focus/dist/index.js.map +1 -0
  192. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-slot/dist/index.js +104 -0
  193. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-slot/dist/index.js.map +1 -0
  194. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-tooltip/dist/index.js +509 -0
  195. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-tooltip/dist/index.js.map +1 -0
  196. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-use-callback-ref/dist/index.js +34 -0
  197. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-use-callback-ref/dist/index.js.map +1 -0
  198. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-use-controllable-state/dist/index.js +68 -0
  199. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-use-controllable-state/dist/index.js.map +1 -0
  200. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-use-escape-keydown/dist/index.js +40 -0
  201. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-use-escape-keydown/dist/index.js.map +1 -0
  202. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-use-layout-effect/dist/index.js +29 -0
  203. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-use-layout-effect/dist/index.js.map +1 -0
  204. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-use-size/dist/index.js +62 -0
  205. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-use-size/dist/index.js.map +1 -0
  206. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-visually-hidden/dist/index.js +58 -0
  207. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-visually-hidden/dist/index.js.map +1 -0
  208. package/dist/cjs/react-components/dist/es/node_modules/@stitches/react/dist/index.js +9 -0
  209. package/dist/cjs/react-components/dist/es/node_modules/@stitches/react/dist/index.js.map +1 -0
  210. package/dist/cjs/react-components/dist/es/node_modules/aria-hidden/dist/es2015/index.js +134 -0
  211. package/dist/cjs/react-components/dist/es/node_modules/aria-hidden/dist/es2015/index.js.map +1 -0
  212. package/dist/cjs/react-components/dist/es/node_modules/dom-helpers/esm/addClass.js +19 -0
  213. package/dist/cjs/react-components/dist/es/node_modules/dom-helpers/esm/addClass.js.map +1 -0
  214. package/dist/cjs/react-components/dist/es/node_modules/dom-helpers/esm/hasClass.js +17 -0
  215. package/dist/cjs/react-components/dist/es/node_modules/dom-helpers/esm/hasClass.js.map +1 -0
  216. package/dist/cjs/react-components/dist/es/node_modules/dom-helpers/esm/removeClass.js +27 -0
  217. package/dist/cjs/react-components/dist/es/node_modules/dom-helpers/esm/removeClass.js.map +1 -0
  218. package/dist/cjs/react-components/dist/es/node_modules/get-nonce/dist/es2015/index.js +11 -0
  219. package/dist/cjs/react-components/dist/es/node_modules/get-nonce/dist/es2015/index.js.map +1 -0
  220. package/dist/cjs/react-components/dist/es/node_modules/object-assign/index.js +102 -0
  221. package/dist/cjs/react-components/dist/es/node_modules/object-assign/index.js.map +1 -0
  222. package/dist/cjs/react-components/dist/es/node_modules/prop-types/checkPropTypes.js +118 -0
  223. package/dist/cjs/react-components/dist/es/node_modules/prop-types/checkPropTypes.js.map +1 -0
  224. package/dist/cjs/react-components/dist/es/node_modules/prop-types/factoryWithThrowingShims.js +77 -0
  225. package/dist/cjs/react-components/dist/es/node_modules/prop-types/factoryWithThrowingShims.js.map +1 -0
  226. package/dist/cjs/react-components/dist/es/node_modules/prop-types/factoryWithTypeCheckers.js +628 -0
  227. package/dist/cjs/react-components/dist/es/node_modules/prop-types/factoryWithTypeCheckers.js.map +1 -0
  228. package/dist/cjs/react-components/dist/es/node_modules/prop-types/index.js +35 -0
  229. package/dist/cjs/react-components/dist/es/node_modules/prop-types/index.js.map +1 -0
  230. package/dist/cjs/react-components/dist/es/node_modules/prop-types/lib/ReactPropTypesSecret.js +24 -0
  231. package/dist/cjs/react-components/dist/es/node_modules/prop-types/lib/ReactPropTypesSecret.js.map +1 -0
  232. package/dist/cjs/react-components/dist/es/node_modules/prop-types/lib/has.js +14 -0
  233. package/dist/cjs/react-components/dist/es/node_modules/prop-types/lib/has.js.map +1 -0
  234. package/dist/cjs/react-components/dist/es/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js +193 -0
  235. package/dist/cjs/react-components/dist/es/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js.map +1 -0
  236. package/dist/cjs/react-components/dist/es/node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js +29 -0
  237. package/dist/cjs/react-components/dist/es/node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js.map +1 -0
  238. package/dist/cjs/react-components/dist/es/node_modules/prop-types/node_modules/react-is/index.js +22 -0
  239. package/dist/cjs/react-components/dist/es/node_modules/prop-types/node_modules/react-is/index.js.map +1 -0
  240. package/dist/cjs/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/Combination.js +34 -0
  241. package/dist/cjs/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/Combination.js.map +1 -0
  242. package/dist/cjs/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/SideEffect.js +184 -0
  243. package/dist/cjs/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/SideEffect.js.map +1 -0
  244. package/dist/cjs/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/UI.js +60 -0
  245. package/dist/cjs/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/UI.js.map +1 -0
  246. package/dist/cjs/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js +24 -0
  247. package/dist/cjs/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js.map +1 -0
  248. package/dist/cjs/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/handleScroll.js +110 -0
  249. package/dist/cjs/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/handleScroll.js.map +1 -0
  250. package/dist/cjs/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/medium.js +8 -0
  251. package/dist/cjs/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/medium.js.map +1 -0
  252. package/dist/cjs/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/sidecar.js +12 -0
  253. package/dist/cjs/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/sidecar.js.map +1 -0
  254. package/dist/cjs/react-components/dist/es/node_modules/react-remove-scroll-bar/dist/es2015/component.js +80 -0
  255. package/dist/cjs/react-components/dist/es/node_modules/react-remove-scroll-bar/dist/es2015/component.js.map +1 -0
  256. package/dist/cjs/react-components/dist/es/node_modules/react-remove-scroll-bar/dist/es2015/constants.js +16 -0
  257. package/dist/cjs/react-components/dist/es/node_modules/react-remove-scroll-bar/dist/es2015/constants.js.map +1 -0
  258. package/dist/cjs/react-components/dist/es/node_modules/react-remove-scroll-bar/dist/es2015/utils.js +35 -0
  259. package/dist/cjs/react-components/dist/es/node_modules/react-remove-scroll-bar/dist/es2015/utils.js.map +1 -0
  260. package/dist/cjs/react-components/dist/es/node_modules/react-style-singleton/dist/es2015/component.js +22 -0
  261. package/dist/cjs/react-components/dist/es/node_modules/react-style-singleton/dist/es2015/component.js.map +1 -0
  262. package/dist/cjs/react-components/dist/es/node_modules/react-style-singleton/dist/es2015/hook.js +47 -0
  263. package/dist/cjs/react-components/dist/es/node_modules/react-style-singleton/dist/es2015/hook.js.map +1 -0
  264. package/dist/cjs/react-components/dist/es/node_modules/react-style-singleton/dist/es2015/singleton.js +54 -0
  265. package/dist/cjs/react-components/dist/es/node_modules/react-style-singleton/dist/es2015/singleton.js.map +1 -0
  266. package/dist/cjs/react-components/dist/es/node_modules/react-transition-group/esm/CSSTransition.js +419 -0
  267. package/dist/cjs/react-components/dist/es/node_modules/react-transition-group/esm/CSSTransition.js.map +1 -0
  268. package/dist/cjs/react-components/dist/es/node_modules/react-transition-group/esm/Transition.js +637 -0
  269. package/dist/cjs/react-components/dist/es/node_modules/react-transition-group/esm/Transition.js.map +1 -0
  270. package/dist/cjs/react-components/dist/es/node_modules/react-transition-group/esm/TransitionGroupContext.js +10 -0
  271. package/dist/cjs/react-components/dist/es/node_modules/react-transition-group/esm/TransitionGroupContext.js.map +1 -0
  272. package/dist/cjs/react-components/dist/es/node_modules/react-transition-group/esm/config.js +10 -0
  273. package/dist/cjs/react-components/dist/es/node_modules/react-transition-group/esm/config.js.map +1 -0
  274. package/dist/cjs/react-components/dist/es/node_modules/react-transition-group/esm/utils/PropTypes.js +25 -0
  275. package/dist/cjs/react-components/dist/es/node_modules/react-transition-group/esm/utils/PropTypes.js.map +1 -0
  276. package/dist/cjs/react-components/dist/es/node_modules/react-transition-group/esm/utils/reflow.js +8 -0
  277. package/dist/cjs/react-components/dist/es/node_modules/react-transition-group/esm/utils/reflow.js.map +1 -0
  278. package/dist/cjs/react-components/dist/es/node_modules/tslib/tslib.es6.js +55 -0
  279. package/dist/cjs/react-components/dist/es/node_modules/tslib/tslib.es6.js.map +1 -0
  280. package/dist/cjs/react-components/dist/es/node_modules/use-callback-ref/dist/es2015/assignRef.js +27 -0
  281. package/dist/cjs/react-components/dist/es/node_modules/use-callback-ref/dist/es2015/assignRef.js.map +1 -0
  282. package/dist/cjs/react-components/dist/es/node_modules/use-callback-ref/dist/es2015/useMergeRef.js +25 -0
  283. package/dist/cjs/react-components/dist/es/node_modules/use-callback-ref/dist/es2015/useMergeRef.js.map +1 -0
  284. package/dist/cjs/react-components/dist/es/node_modules/use-callback-ref/dist/es2015/useRef.js +45 -0
  285. package/dist/cjs/react-components/dist/es/node_modules/use-callback-ref/dist/es2015/useRef.js.map +1 -0
  286. package/dist/cjs/react-components/dist/es/node_modules/use-sidecar/dist/es2015/exports.js +43 -0
  287. package/dist/cjs/react-components/dist/es/node_modules/use-sidecar/dist/es2015/exports.js.map +1 -0
  288. package/dist/cjs/react-components/dist/es/node_modules/use-sidecar/dist/es2015/medium.js +80 -0
  289. package/dist/cjs/react-components/dist/es/node_modules/use-sidecar/dist/es2015/medium.js.map +1 -0
  290. package/dist/cjs/react-components/dist/es/packages/react-components/node_modules/clsx/dist/clsx.js +9 -0
  291. package/dist/cjs/react-components/dist/es/packages/react-components/node_modules/clsx/dist/clsx.js.map +1 -0
  292. package/dist/cjs/react-components/dist/es/packages/react-icons/dist/es/icons/info.js +97 -0
  293. package/dist/cjs/react-components/dist/es/packages/react-icons/dist/es/icons/info.js.map +1 -0
  294. package/dist/cjs/react-components/dist/es/stitches.config.js +392 -0
  295. package/dist/cjs/react-components/dist/es/stitches.config.js.map +1 -0
  296. package/dist/cjs/react-components/dist/es/text/text.js +117 -0
  297. package/dist/cjs/react-components/dist/es/text/text.js.map +1 -0
  298. package/dist/cjs/react-components/dist/es/tooltip/tooltip.js +156 -0
  299. package/dist/cjs/react-components/dist/es/tooltip/tooltip.js.map +1 -0
  300. package/dist/cjs/react-components/dist/es/utils/prefix-class-name.js +10 -0
  301. package/dist/cjs/react-components/dist/es/utils/prefix-class-name.js.map +1 -0
  302. package/dist/cjs/react-editor/node_modules/clsx/dist/clsx.js +9 -0
  303. package/dist/cjs/react-editor/node_modules/clsx/dist/clsx.js.map +1 -0
  304. package/dist/cjs/react-editor/node_modules/validator/es/lib/isFQDN.js +75 -0
  305. package/dist/cjs/react-editor/node_modules/validator/es/lib/isFQDN.js.map +1 -0
  306. package/dist/cjs/react-editor/node_modules/validator/es/lib/isIP.js +58 -0
  307. package/dist/cjs/react-editor/node_modules/validator/es/lib/isIP.js.map +1 -0
  308. package/dist/cjs/react-editor/node_modules/validator/es/lib/isURL.js +163 -0
  309. package/dist/cjs/react-editor/node_modules/validator/es/lib/isURL.js.map +1 -0
  310. package/dist/cjs/react-editor/node_modules/validator/es/lib/util/assertString.js +16 -0
  311. package/dist/cjs/react-editor/node_modules/validator/es/lib/util/assertString.js.map +1 -0
  312. package/dist/cjs/react-editor/node_modules/validator/es/lib/util/merge.js +17 -0
  313. package/dist/cjs/react-editor/node_modules/validator/es/lib/util/merge.js.map +1 -0
  314. package/dist/cjs/react-editor/node_modules/validator/lib/isFQDN.js +93 -0
  315. package/dist/cjs/react-editor/node_modules/validator/lib/isFQDN.js.map +1 -0
  316. package/dist/cjs/react-editor/node_modules/validator/lib/isIP.js +75 -0
  317. package/dist/cjs/react-editor/node_modules/validator/lib/isIP.js.map +1 -0
  318. package/dist/cjs/react-editor/node_modules/validator/lib/isURL.js +182 -0
  319. package/dist/cjs/react-editor/node_modules/validator/lib/isURL.js.map +1 -0
  320. package/dist/cjs/react-editor/node_modules/validator/lib/util/assertString.js +32 -0
  321. package/dist/cjs/react-editor/node_modules/validator/lib/util/assertString.js.map +1 -0
  322. package/dist/cjs/react-editor/node_modules/validator/lib/util/merge.js +33 -0
  323. package/dist/cjs/react-editor/node_modules/validator/lib/util/merge.js.map +1 -0
  324. package/dist/cjs/react-icons/dist/es/icons/bold.js +86 -0
  325. package/dist/cjs/react-icons/dist/es/icons/bold.js.map +1 -0
  326. package/dist/cjs/react-icons/dist/es/icons/close.js +86 -0
  327. package/dist/cjs/react-icons/dist/es/icons/close.js.map +1 -0
  328. package/dist/cjs/react-icons/dist/es/icons/code-block.js +78 -0
  329. package/dist/cjs/react-icons/dist/es/icons/code-block.js.map +1 -0
  330. package/dist/cjs/react-icons/dist/es/icons/code.js +96 -0
  331. package/dist/cjs/react-icons/dist/es/icons/code.js.map +1 -0
  332. package/dist/cjs/react-icons/dist/es/icons/delete.js +116 -0
  333. package/dist/cjs/react-icons/dist/es/icons/delete.js.map +1 -0
  334. package/dist/cjs/react-icons/dist/es/icons/italics.js +96 -0
  335. package/dist/cjs/react-icons/dist/es/icons/italics.js.map +1 -0
  336. package/dist/cjs/react-icons/dist/es/icons/link.js +86 -0
  337. package/dist/cjs/react-icons/dist/es/icons/link.js.map +1 -0
  338. package/dist/cjs/react-icons/dist/es/icons/ordered-list.js +86 -0
  339. package/dist/cjs/react-icons/dist/es/icons/ordered-list.js.map +1 -0
  340. package/dist/cjs/react-icons/dist/es/icons/pencil.js +86 -0
  341. package/dist/cjs/react-icons/dist/es/icons/pencil.js.map +1 -0
  342. package/dist/cjs/react-icons/dist/es/icons/text-align-center.js +74 -0
  343. package/dist/cjs/react-icons/dist/es/icons/text-align-center.js.map +1 -0
  344. package/dist/cjs/react-icons/dist/es/icons/text-align-justify.js +74 -0
  345. package/dist/cjs/react-icons/dist/es/icons/text-align-justify.js.map +1 -0
  346. package/dist/cjs/react-icons/dist/es/icons/text-align-left.js +74 -0
  347. package/dist/cjs/react-icons/dist/es/icons/text-align-left.js.map +1 -0
  348. package/dist/cjs/react-icons/dist/es/icons/text-align-right.js +74 -0
  349. package/dist/cjs/react-icons/dist/es/icons/text-align-right.js.map +1 -0
  350. package/dist/cjs/react-icons/dist/es/icons/text-format.js +78 -0
  351. package/dist/cjs/react-icons/dist/es/icons/text-format.js.map +1 -0
  352. package/dist/cjs/react-icons/dist/es/icons/underline.js +77 -0
  353. package/dist/cjs/react-icons/dist/es/icons/underline.js.map +1 -0
  354. package/dist/cjs/react-icons/dist/es/icons/unordered-list.js +126 -0
  355. package/dist/cjs/react-icons/dist/es/icons/unordered-list.js.map +1 -0
  356. package/dist/cjs/utils/commands.js +8 -0
  357. package/dist/cjs/utils/commands.js.map +1 -0
  358. package/dist/cjs/utils/get-dom-range-rect.js +19 -0
  359. package/dist/cjs/utils/get-dom-range-rect.js.map +1 -0
  360. package/dist/cjs/utils/get-selected-node.js +21 -0
  361. package/dist/cjs/utils/get-selected-node.js.map +1 -0
  362. package/dist/cjs/utils/prefix-class-name.js +10 -0
  363. package/dist/cjs/utils/prefix-class-name.js.map +1 -0
  364. package/dist/cjs/utils/set-floating-elem-position-for-link-editor.js +30 -0
  365. package/dist/cjs/utils/set-floating-elem-position-for-link-editor.js.map +1 -0
  366. package/dist/cjs/utils/set-floating-elem-position.js +33 -0
  367. package/dist/cjs/utils/set-floating-elem-position.js.map +1 -0
  368. package/dist/cjs/utils/use-node-focus.js +35 -0
  369. package/dist/cjs/utils/use-node-focus.js.map +1 -0
  370. package/dist/es/_virtual/_commonjsHelpers.js +6 -0
  371. package/dist/es/_virtual/_commonjsHelpers.js.map +1 -0
  372. package/dist/es/_virtual/assertString.js +4 -0
  373. package/dist/es/_virtual/assertString.js.map +1 -0
  374. package/dist/es/_virtual/isFQDN.js +4 -0
  375. package/dist/es/_virtual/isFQDN.js.map +1 -0
  376. package/dist/es/_virtual/isIP.js +4 -0
  377. package/dist/es/_virtual/isIP.js.map +1 -0
  378. package/dist/es/_virtual/isURL.js +8 -0
  379. package/dist/es/_virtual/isURL.js.map +1 -0
  380. package/dist/es/_virtual/isURL2.js +4 -0
  381. package/dist/es/_virtual/isURL2.js.map +1 -0
  382. package/dist/es/_virtual/merge.js +4 -0
  383. package/dist/es/_virtual/merge.js.map +1 -0
  384. package/dist/es/components/base-dropdown/index.js +173 -0
  385. package/dist/es/components/base-dropdown/index.js.map +1 -0
  386. package/dist/es/components/dialog-link-editor/index.js +289 -0
  387. package/dist/es/components/dialog-link-editor/index.js.map +1 -0
  388. package/dist/es/components/dialog-link-editor/link-editor-dialog.js +197 -0
  389. package/dist/es/components/dialog-link-editor/link-editor-dialog.js.map +1 -0
  390. package/dist/es/components/dialog-link-editor/link-tooltip.js +120 -0
  391. package/dist/es/components/dialog-link-editor/link-tooltip.js.map +1 -0
  392. package/dist/es/components/floating-toolbar/floating-toolbar.js +300 -0
  393. package/dist/es/components/floating-toolbar/floating-toolbar.js.map +1 -0
  394. package/dist/es/components/rich-editor/index.js +140 -0
  395. package/dist/es/components/rich-editor/index.js.map +1 -0
  396. package/dist/es/components/toolbar/toolbar.js +74 -0
  397. package/dist/es/components/toolbar/toolbar.js.map +1 -0
  398. package/dist/es/components/toolbar/tools/bold.js +50 -0
  399. package/dist/es/components/toolbar/tools/bold.js.map +1 -0
  400. package/dist/es/components/toolbar/tools/code-block.js +77 -0
  401. package/dist/es/components/toolbar/tools/code-block.js.map +1 -0
  402. package/dist/es/components/toolbar/tools/code.js +52 -0
  403. package/dist/es/components/toolbar/tools/code.js.map +1 -0
  404. package/dist/es/components/toolbar/tools/commons.js +14 -0
  405. package/dist/es/components/toolbar/tools/commons.js.map +1 -0
  406. package/dist/es/components/toolbar/tools/format.js +134 -0
  407. package/dist/es/components/toolbar/tools/format.js.map +1 -0
  408. package/dist/es/components/toolbar/tools/italic.js +55 -0
  409. package/dist/es/components/toolbar/tools/italic.js.map +1 -0
  410. package/dist/es/components/toolbar/tools/link.js +69 -0
  411. package/dist/es/components/toolbar/tools/link.js.map +1 -0
  412. package/dist/es/components/toolbar/tools/ordered-list.js +60 -0
  413. package/dist/es/components/toolbar/tools/ordered-list.js.map +1 -0
  414. package/dist/es/components/toolbar/tools/text-align.js +80 -0
  415. package/dist/es/components/toolbar/tools/text-align.js.map +1 -0
  416. package/dist/es/components/toolbar/tools/underline.js +55 -0
  417. package/dist/es/components/toolbar/tools/underline.js.map +1 -0
  418. package/dist/es/components/toolbar/tools/unordered-list.js +60 -0
  419. package/dist/es/components/toolbar/tools/unordered-list.js.map +1 -0
  420. package/dist/es/components/toolbar-context/context.js +145 -0
  421. package/dist/es/components/toolbar-context/context.js.map +1 -0
  422. package/dist/es/components/toolbar-context/store.js +72 -0
  423. package/dist/es/components/toolbar-context/store.js.map +1 -0
  424. package/dist/es/components/toolbar-context/utils.js +4 -0
  425. package/dist/es/components/toolbar-context/utils.js.map +1 -0
  426. package/dist/es/editor.js +152 -0
  427. package/dist/es/editor.js.map +1 -0
  428. package/dist/es/index.js +34 -0
  429. package/dist/es/index.js.map +1 -0
  430. package/dist/es/nodes/emoji.js +82 -0
  431. package/dist/es/nodes/emoji.js.map +1 -0
  432. package/dist/es/nodes/hashtag.js +105 -0
  433. package/dist/es/nodes/hashtag.js.map +1 -0
  434. package/dist/es/nodes/image.js +211 -0
  435. package/dist/es/nodes/image.js.map +1 -0
  436. package/dist/es/nodes/kudos.js +106 -0
  437. package/dist/es/nodes/kudos.js.map +1 -0
  438. package/dist/es/nodes/mention.js +105 -0
  439. package/dist/es/nodes/mention.js.map +1 -0
  440. package/dist/es/nodes/variables.js +105 -0
  441. package/dist/es/nodes/variables.js.map +1 -0
  442. package/dist/es/plugins/data-management-plugin/index.js +38 -0
  443. package/dist/es/plugins/data-management-plugin/index.js.map +1 -0
  444. package/dist/es/plugins/emoji/emoji-list.js +16605 -0
  445. package/dist/es/plugins/emoji/emoji-list.js.map +1 -0
  446. package/dist/es/plugins/emoji/index.js +124 -0
  447. package/dist/es/plugins/emoji/index.js.map +1 -0
  448. package/dist/es/plugins/hashtag/index.js +98 -0
  449. package/dist/es/plugins/hashtag/index.js.map +1 -0
  450. package/dist/es/plugins/images/index.js +162 -0
  451. package/dist/es/plugins/images/index.js.map +1 -0
  452. package/dist/es/plugins/images/utils.js +7 -0
  453. package/dist/es/plugins/images/utils.js.map +1 -0
  454. package/dist/es/plugins/link/auto-link.js +19 -0
  455. package/dist/es/plugins/link/auto-link.js.map +1 -0
  456. package/dist/es/plugins/link/convert-selection-on-paste.js +32 -0
  457. package/dist/es/plugins/link/convert-selection-on-paste.js.map +1 -0
  458. package/dist/es/plugins/link/link.js +66 -0
  459. package/dist/es/plugins/link/link.js.map +1 -0
  460. package/dist/es/plugins/mentions/index.js +106 -0
  461. package/dist/es/plugins/mentions/index.js.map +1 -0
  462. package/dist/es/plugins/tab-focus/index.js +52 -0
  463. package/dist/es/plugins/tab-focus/index.js.map +1 -0
  464. package/dist/es/react-components/dist/es/_virtual/_commonjsHelpers.js +6 -0
  465. package/dist/es/react-components/dist/es/_virtual/_commonjsHelpers.js.map +1 -0
  466. package/dist/es/react-components/dist/es/_virtual/index.js +4 -0
  467. package/dist/es/react-components/dist/es/_virtual/index.js.map +1 -0
  468. package/dist/es/react-components/dist/es/_virtual/index2.js +4 -0
  469. package/dist/es/react-components/dist/es/_virtual/index2.js.map +1 -0
  470. package/dist/es/react-components/dist/es/_virtual/react-is.development.js +4 -0
  471. package/dist/es/react-components/dist/es/_virtual/react-is.development.js.map +1 -0
  472. package/dist/es/react-components/dist/es/_virtual/react-is.production.min.js +4 -0
  473. package/dist/es/react-components/dist/es/_virtual/react-is.production.min.js.map +1 -0
  474. package/dist/es/react-components/dist/es/box/box.js +45 -0
  475. package/dist/es/react-components/dist/es/box/box.js.map +1 -0
  476. package/dist/es/react-components/dist/es/button/button.js +772 -0
  477. package/dist/es/react-components/dist/es/button/button.js.map +1 -0
  478. package/dist/es/react-components/dist/es/button/icon-button.js +75 -0
  479. package/dist/es/react-components/dist/es/button/icon-button.js.map +1 -0
  480. package/dist/es/react-components/dist/es/button/side-element.js +197 -0
  481. package/dist/es/react-components/dist/es/button/side-element.js.map +1 -0
  482. package/dist/es/react-components/dist/es/button/utils.js +100 -0
  483. package/dist/es/react-components/dist/es/button/utils.js.map +1 -0
  484. package/dist/es/react-components/dist/es/dialog/dialog.js +193 -0
  485. package/dist/es/react-components/dist/es/dialog/dialog.js.map +1 -0
  486. package/dist/es/react-components/dist/es/dropdown/dropdown.js +190 -0
  487. package/dist/es/react-components/dist/es/dropdown/dropdown.js.map +1 -0
  488. package/dist/es/react-components/dist/es/flex/flex.js +96 -0
  489. package/dist/es/react-components/dist/es/flex/flex.js.map +1 -0
  490. package/dist/es/react-components/dist/es/form-helper-text/form-helper-text.js +74 -0
  491. package/dist/es/react-components/dist/es/form-helper-text/form-helper-text.js.map +1 -0
  492. package/dist/es/react-components/dist/es/form-label/form-label.js +174 -0
  493. package/dist/es/react-components/dist/es/form-label/form-label.js.map +1 -0
  494. package/dist/es/react-components/dist/es/input/form-input.js +157 -0
  495. package/dist/es/react-components/dist/es/input/form-input.js.map +1 -0
  496. package/dist/es/react-components/dist/es/input/input.js +374 -0
  497. package/dist/es/react-components/dist/es/input/input.js.map +1 -0
  498. package/dist/es/react-components/dist/es/link/link.js +56 -0
  499. package/dist/es/react-components/dist/es/link/link.js.map +1 -0
  500. package/dist/es/react-components/dist/es/loader/circle.js +202 -0
  501. package/dist/es/react-components/dist/es/loader/circle.js.map +1 -0
  502. package/dist/es/react-components/dist/es/loader/line.js +128 -0
  503. package/dist/es/react-components/dist/es/loader/line.js.map +1 -0
  504. package/dist/es/react-components/dist/es/node_modules/@babel/runtime/helpers/esm/extends.js +17 -0
  505. package/dist/es/react-components/dist/es/node_modules/@babel/runtime/helpers/esm/extends.js.map +1 -0
  506. package/dist/es/react-components/dist/es/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js +10 -0
  507. package/dist/es/react-components/dist/es/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js.map +1 -0
  508. package/dist/es/react-components/dist/es/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +15 -0
  509. package/dist/es/react-components/dist/es/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js.map +1 -0
  510. package/dist/es/react-components/dist/es/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js +10 -0
  511. package/dist/es/react-components/dist/es/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js.map +1 -0
  512. package/dist/es/react-components/dist/es/node_modules/@floating-ui/core/dist/floating-ui.core.js +777 -0
  513. package/dist/es/react-components/dist/es/node_modules/@floating-ui/core/dist/floating-ui.core.js.map +1 -0
  514. package/dist/es/react-components/dist/es/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +600 -0
  515. package/dist/es/react-components/dist/es/node_modules/@floating-ui/dom/dist/floating-ui.dom.js.map +1 -0
  516. package/dist/es/react-components/dist/es/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js +269 -0
  517. package/dist/es/react-components/dist/es/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js.map +1 -0
  518. package/dist/es/react-components/dist/es/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +123 -0
  519. package/dist/es/react-components/dist/es/node_modules/@floating-ui/utils/dist/floating-ui.utils.js.map +1 -0
  520. package/dist/es/react-components/dist/es/node_modules/@floating-ui/utils/dom/dist/floating-ui.utils.dom.js +129 -0
  521. package/dist/es/react-components/dist/es/node_modules/@floating-ui/utils/dom/dist/floating-ui.utils.dom.js.map +1 -0
  522. package/dist/es/react-components/dist/es/node_modules/@radix-ui/primitive/dist/index.js +12 -0
  523. package/dist/es/react-components/dist/es/node_modules/@radix-ui/primitive/dist/index.js.map +1 -0
  524. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-arrow/dist/index.js +26 -0
  525. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-arrow/dist/index.js.map +1 -0
  526. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-collection/dist/index.js +69 -0
  527. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-collection/dist/index.js.map +1 -0
  528. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-compose-refs/dist/index.js +19 -0
  529. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-compose-refs/dist/index.js.map +1 -0
  530. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-context/dist/index.js +80 -0
  531. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-context/dist/index.js.map +1 -0
  532. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-dialog/dist/index.js +318 -0
  533. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-dialog/dist/index.js.map +1 -0
  534. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-direction/dist/index.js +12 -0
  535. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-direction/dist/index.js.map +1 -0
  536. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-dismissable-layer/dist/index.js +212 -0
  537. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-dismissable-layer/dist/index.js.map +1 -0
  538. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-dropdown-menu/dist/index.js +254 -0
  539. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-dropdown-menu/dist/index.js.map +1 -0
  540. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-focus-guards/dist/index.js +27 -0
  541. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-focus-guards/dist/index.js.map +1 -0
  542. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-focus-scope/dist/index.js +208 -0
  543. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-focus-scope/dist/index.js.map +1 -0
  544. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-id/dist/index.js +16 -0
  545. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-id/dist/index.js.map +1 -0
  546. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-label/dist/index.js +25 -0
  547. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-label/dist/index.js.map +1 -0
  548. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-menu/dist/index.js +796 -0
  549. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-menu/dist/index.js.map +1 -0
  550. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-popper/dist/index.js +280 -0
  551. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-popper/dist/index.js.map +1 -0
  552. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-portal/dist/index.js +18 -0
  553. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-portal/dist/index.js.map +1 -0
  554. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-presence/dist/index.js +120 -0
  555. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-presence/dist/index.js.map +1 -0
  556. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-primitive/dist/index.js +42 -0
  557. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-primitive/dist/index.js.map +1 -0
  558. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-roving-focus/dist/index.js +221 -0
  559. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-roving-focus/dist/index.js.map +1 -0
  560. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-slot/dist/index.js +82 -0
  561. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-slot/dist/index.js.map +1 -0
  562. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-tooltip/dist/index.js +476 -0
  563. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-tooltip/dist/index.js.map +1 -0
  564. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-use-callback-ref/dist/index.js +13 -0
  565. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-use-callback-ref/dist/index.js.map +1 -0
  566. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-use-controllable-state/dist/index.js +47 -0
  567. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-use-controllable-state/dist/index.js.map +1 -0
  568. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-use-escape-keydown/dist/index.js +19 -0
  569. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-use-escape-keydown/dist/index.js.map +1 -0
  570. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-use-layout-effect/dist/index.js +8 -0
  571. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-use-layout-effect/dist/index.js.map +1 -0
  572. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-use-size/dist/index.js +41 -0
  573. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-use-size/dist/index.js.map +1 -0
  574. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-visually-hidden/dist/index.js +36 -0
  575. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-visually-hidden/dist/index.js.map +1 -0
  576. package/dist/es/react-components/dist/es/node_modules/@stitches/react/dist/index.js +6 -0
  577. package/dist/es/react-components/dist/es/node_modules/@stitches/react/dist/index.js.map +1 -0
  578. package/dist/es/react-components/dist/es/node_modules/aria-hidden/dist/es2015/index.js +132 -0
  579. package/dist/es/react-components/dist/es/node_modules/aria-hidden/dist/es2015/index.js.map +1 -0
  580. package/dist/es/react-components/dist/es/node_modules/dom-helpers/esm/addClass.js +15 -0
  581. package/dist/es/react-components/dist/es/node_modules/dom-helpers/esm/addClass.js.map +1 -0
  582. package/dist/es/react-components/dist/es/node_modules/dom-helpers/esm/hasClass.js +13 -0
  583. package/dist/es/react-components/dist/es/node_modules/dom-helpers/esm/hasClass.js.map +1 -0
  584. package/dist/es/react-components/dist/es/node_modules/dom-helpers/esm/removeClass.js +23 -0
  585. package/dist/es/react-components/dist/es/node_modules/dom-helpers/esm/removeClass.js.map +1 -0
  586. package/dist/es/react-components/dist/es/node_modules/get-nonce/dist/es2015/index.js +9 -0
  587. package/dist/es/react-components/dist/es/node_modules/get-nonce/dist/es2015/index.js.map +1 -0
  588. package/dist/es/react-components/dist/es/node_modules/object-assign/index.js +100 -0
  589. package/dist/es/react-components/dist/es/node_modules/object-assign/index.js.map +1 -0
  590. package/dist/es/react-components/dist/es/node_modules/prop-types/checkPropTypes.js +116 -0
  591. package/dist/es/react-components/dist/es/node_modules/prop-types/checkPropTypes.js.map +1 -0
  592. package/dist/es/react-components/dist/es/node_modules/prop-types/factoryWithThrowingShims.js +75 -0
  593. package/dist/es/react-components/dist/es/node_modules/prop-types/factoryWithThrowingShims.js.map +1 -0
  594. package/dist/es/react-components/dist/es/node_modules/prop-types/factoryWithTypeCheckers.js +626 -0
  595. package/dist/es/react-components/dist/es/node_modules/prop-types/factoryWithTypeCheckers.js.map +1 -0
  596. package/dist/es/react-components/dist/es/node_modules/prop-types/index.js +31 -0
  597. package/dist/es/react-components/dist/es/node_modules/prop-types/index.js.map +1 -0
  598. package/dist/es/react-components/dist/es/node_modules/prop-types/lib/ReactPropTypesSecret.js +22 -0
  599. package/dist/es/react-components/dist/es/node_modules/prop-types/lib/ReactPropTypesSecret.js.map +1 -0
  600. package/dist/es/react-components/dist/es/node_modules/prop-types/lib/has.js +12 -0
  601. package/dist/es/react-components/dist/es/node_modules/prop-types/lib/has.js.map +1 -0
  602. package/dist/es/react-components/dist/es/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js +191 -0
  603. package/dist/es/react-components/dist/es/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js.map +1 -0
  604. package/dist/es/react-components/dist/es/node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js +27 -0
  605. package/dist/es/react-components/dist/es/node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js.map +1 -0
  606. package/dist/es/react-components/dist/es/node_modules/prop-types/node_modules/react-is/index.js +20 -0
  607. package/dist/es/react-components/dist/es/node_modules/prop-types/node_modules/react-is/index.js.map +1 -0
  608. package/dist/es/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/Combination.js +11 -0
  609. package/dist/es/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/Combination.js.map +1 -0
  610. package/dist/es/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/SideEffect.js +161 -0
  611. package/dist/es/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/SideEffect.js.map +1 -0
  612. package/dist/es/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/UI.js +39 -0
  613. package/dist/es/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/UI.js.map +1 -0
  614. package/dist/es/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js +22 -0
  615. package/dist/es/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js.map +1 -0
  616. package/dist/es/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/handleScroll.js +107 -0
  617. package/dist/es/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/handleScroll.js.map +1 -0
  618. package/dist/es/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/medium.js +6 -0
  619. package/dist/es/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/medium.js.map +1 -0
  620. package/dist/es/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/sidecar.js +8 -0
  621. package/dist/es/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/sidecar.js.map +1 -0
  622. package/dist/es/react-components/dist/es/node_modules/react-remove-scroll-bar/dist/es2015/component.js +57 -0
  623. package/dist/es/react-components/dist/es/node_modules/react-remove-scroll-bar/dist/es2015/component.js.map +1 -0
  624. package/dist/es/react-components/dist/es/node_modules/react-remove-scroll-bar/dist/es2015/constants.js +11 -0
  625. package/dist/es/react-components/dist/es/node_modules/react-remove-scroll-bar/dist/es2015/constants.js.map +1 -0
  626. package/dist/es/react-components/dist/es/node_modules/react-remove-scroll-bar/dist/es2015/utils.js +32 -0
  627. package/dist/es/react-components/dist/es/node_modules/react-remove-scroll-bar/dist/es2015/utils.js.map +1 -0
  628. package/dist/es/react-components/dist/es/node_modules/react-style-singleton/dist/es2015/component.js +20 -0
  629. package/dist/es/react-components/dist/es/node_modules/react-style-singleton/dist/es2015/component.js.map +1 -0
  630. package/dist/es/react-components/dist/es/node_modules/react-style-singleton/dist/es2015/hook.js +26 -0
  631. package/dist/es/react-components/dist/es/node_modules/react-style-singleton/dist/es2015/hook.js.map +1 -0
  632. package/dist/es/react-components/dist/es/node_modules/react-style-singleton/dist/es2015/singleton.js +52 -0
  633. package/dist/es/react-components/dist/es/node_modules/react-style-singleton/dist/es2015/singleton.js.map +1 -0
  634. package/dist/es/react-components/dist/es/node_modules/react-transition-group/esm/CSSTransition.js +415 -0
  635. package/dist/es/react-components/dist/es/node_modules/react-transition-group/esm/CSSTransition.js.map +1 -0
  636. package/dist/es/react-components/dist/es/node_modules/react-transition-group/esm/Transition.js +628 -0
  637. package/dist/es/react-components/dist/es/node_modules/react-transition-group/esm/Transition.js.map +1 -0
  638. package/dist/es/react-components/dist/es/node_modules/react-transition-group/esm/TransitionGroupContext.js +6 -0
  639. package/dist/es/react-components/dist/es/node_modules/react-transition-group/esm/TransitionGroupContext.js.map +1 -0
  640. package/dist/es/react-components/dist/es/node_modules/react-transition-group/esm/config.js +6 -0
  641. package/dist/es/react-components/dist/es/node_modules/react-transition-group/esm/config.js.map +1 -0
  642. package/dist/es/react-components/dist/es/node_modules/react-transition-group/esm/utils/PropTypes.js +22 -0
  643. package/dist/es/react-components/dist/es/node_modules/react-transition-group/esm/utils/PropTypes.js.map +1 -0
  644. package/dist/es/react-components/dist/es/node_modules/react-transition-group/esm/utils/reflow.js +6 -0
  645. package/dist/es/react-components/dist/es/node_modules/react-transition-group/esm/utils/reflow.js.map +1 -0
  646. package/dist/es/react-components/dist/es/node_modules/tslib/tslib.es6.js +52 -0
  647. package/dist/es/react-components/dist/es/node_modules/tslib/tslib.es6.js.map +1 -0
  648. package/dist/es/react-components/dist/es/node_modules/use-callback-ref/dist/es2015/assignRef.js +25 -0
  649. package/dist/es/react-components/dist/es/node_modules/use-callback-ref/dist/es2015/assignRef.js.map +1 -0
  650. package/dist/es/react-components/dist/es/node_modules/use-callback-ref/dist/es2015/useMergeRef.js +23 -0
  651. package/dist/es/react-components/dist/es/node_modules/use-callback-ref/dist/es2015/useMergeRef.js.map +1 -0
  652. package/dist/es/react-components/dist/es/node_modules/use-callback-ref/dist/es2015/useRef.js +43 -0
  653. package/dist/es/react-components/dist/es/node_modules/use-callback-ref/dist/es2015/useRef.js.map +1 -0
  654. package/dist/es/react-components/dist/es/node_modules/use-sidecar/dist/es2015/exports.js +22 -0
  655. package/dist/es/react-components/dist/es/node_modules/use-sidecar/dist/es2015/exports.js.map +1 -0
  656. package/dist/es/react-components/dist/es/node_modules/use-sidecar/dist/es2015/medium.js +78 -0
  657. package/dist/es/react-components/dist/es/node_modules/use-sidecar/dist/es2015/medium.js.map +1 -0
  658. package/dist/es/react-components/dist/es/packages/react-components/node_modules/clsx/dist/clsx.js +4 -0
  659. package/dist/es/react-components/dist/es/packages/react-components/node_modules/clsx/dist/clsx.js.map +1 -0
  660. package/dist/es/react-components/dist/es/packages/react-icons/dist/es/icons/info.js +95 -0
  661. package/dist/es/react-components/dist/es/packages/react-icons/dist/es/icons/info.js.map +1 -0
  662. package/dist/es/react-components/dist/es/stitches.config.js +379 -0
  663. package/dist/es/react-components/dist/es/stitches.config.js.map +1 -0
  664. package/dist/es/react-components/dist/es/text/text.js +115 -0
  665. package/dist/es/react-components/dist/es/text/text.js.map +1 -0
  666. package/dist/es/react-components/dist/es/tooltip/tooltip.js +153 -0
  667. package/dist/es/react-components/dist/es/tooltip/tooltip.js.map +1 -0
  668. package/dist/es/react-components/dist/es/utils/prefix-class-name.js +8 -0
  669. package/dist/es/react-components/dist/es/utils/prefix-class-name.js.map +1 -0
  670. package/dist/es/react-editor/node_modules/clsx/dist/clsx.js +4 -0
  671. package/dist/es/react-editor/node_modules/clsx/dist/clsx.js.map +1 -0
  672. package/dist/es/react-editor/node_modules/validator/es/lib/isFQDN.js +71 -0
  673. package/dist/es/react-editor/node_modules/validator/es/lib/isFQDN.js.map +1 -0
  674. package/dist/es/react-editor/node_modules/validator/es/lib/isIP.js +54 -0
  675. package/dist/es/react-editor/node_modules/validator/es/lib/isIP.js.map +1 -0
  676. package/dist/es/react-editor/node_modules/validator/es/lib/isURL.js +159 -0
  677. package/dist/es/react-editor/node_modules/validator/es/lib/isURL.js.map +1 -0
  678. package/dist/es/react-editor/node_modules/validator/es/lib/util/assertString.js +12 -0
  679. package/dist/es/react-editor/node_modules/validator/es/lib/util/assertString.js.map +1 -0
  680. package/dist/es/react-editor/node_modules/validator/es/lib/util/merge.js +13 -0
  681. package/dist/es/react-editor/node_modules/validator/es/lib/util/merge.js.map +1 -0
  682. package/dist/es/react-editor/node_modules/validator/lib/isFQDN.js +91 -0
  683. package/dist/es/react-editor/node_modules/validator/lib/isFQDN.js.map +1 -0
  684. package/dist/es/react-editor/node_modules/validator/lib/isIP.js +73 -0
  685. package/dist/es/react-editor/node_modules/validator/lib/isIP.js.map +1 -0
  686. package/dist/es/react-editor/node_modules/validator/lib/isURL.js +180 -0
  687. package/dist/es/react-editor/node_modules/validator/lib/isURL.js.map +1 -0
  688. package/dist/es/react-editor/node_modules/validator/lib/util/assertString.js +30 -0
  689. package/dist/es/react-editor/node_modules/validator/lib/util/assertString.js.map +1 -0
  690. package/dist/es/react-editor/node_modules/validator/lib/util/merge.js +31 -0
  691. package/dist/es/react-editor/node_modules/validator/lib/util/merge.js.map +1 -0
  692. package/dist/es/react-icons/dist/es/icons/bold.js +84 -0
  693. package/dist/es/react-icons/dist/es/icons/bold.js.map +1 -0
  694. package/dist/es/react-icons/dist/es/icons/close.js +84 -0
  695. package/dist/es/react-icons/dist/es/icons/close.js.map +1 -0
  696. package/dist/es/react-icons/dist/es/icons/code-block.js +76 -0
  697. package/dist/es/react-icons/dist/es/icons/code-block.js.map +1 -0
  698. package/dist/es/react-icons/dist/es/icons/code.js +94 -0
  699. package/dist/es/react-icons/dist/es/icons/code.js.map +1 -0
  700. package/dist/es/react-icons/dist/es/icons/delete.js +114 -0
  701. package/dist/es/react-icons/dist/es/icons/delete.js.map +1 -0
  702. package/dist/es/react-icons/dist/es/icons/italics.js +94 -0
  703. package/dist/es/react-icons/dist/es/icons/italics.js.map +1 -0
  704. package/dist/es/react-icons/dist/es/icons/link.js +84 -0
  705. package/dist/es/react-icons/dist/es/icons/link.js.map +1 -0
  706. package/dist/es/react-icons/dist/es/icons/ordered-list.js +84 -0
  707. package/dist/es/react-icons/dist/es/icons/ordered-list.js.map +1 -0
  708. package/dist/es/react-icons/dist/es/icons/pencil.js +84 -0
  709. package/dist/es/react-icons/dist/es/icons/pencil.js.map +1 -0
  710. package/dist/es/react-icons/dist/es/icons/text-align-center.js +72 -0
  711. package/dist/es/react-icons/dist/es/icons/text-align-center.js.map +1 -0
  712. package/dist/es/react-icons/dist/es/icons/text-align-justify.js +72 -0
  713. package/dist/es/react-icons/dist/es/icons/text-align-justify.js.map +1 -0
  714. package/dist/es/react-icons/dist/es/icons/text-align-left.js +72 -0
  715. package/dist/es/react-icons/dist/es/icons/text-align-left.js.map +1 -0
  716. package/dist/es/react-icons/dist/es/icons/text-align-right.js +72 -0
  717. package/dist/es/react-icons/dist/es/icons/text-align-right.js.map +1 -0
  718. package/dist/es/react-icons/dist/es/icons/text-format.js +76 -0
  719. package/dist/es/react-icons/dist/es/icons/text-format.js.map +1 -0
  720. package/dist/es/react-icons/dist/es/icons/underline.js +75 -0
  721. package/dist/es/react-icons/dist/es/icons/underline.js.map +1 -0
  722. package/dist/es/react-icons/dist/es/icons/unordered-list.js +124 -0
  723. package/dist/es/react-icons/dist/es/icons/unordered-list.js.map +1 -0
  724. package/dist/es/utils/commands.js +6 -0
  725. package/dist/es/utils/commands.js.map +1 -0
  726. package/dist/es/utils/get-dom-range-rect.js +17 -0
  727. package/dist/es/utils/get-dom-range-rect.js.map +1 -0
  728. package/dist/es/utils/get-selected-node.js +19 -0
  729. package/dist/es/utils/get-selected-node.js.map +1 -0
  730. package/dist/es/utils/prefix-class-name.js +8 -0
  731. package/dist/es/utils/prefix-class-name.js.map +1 -0
  732. package/dist/es/utils/set-floating-elem-position-for-link-editor.js +28 -0
  733. package/dist/es/utils/set-floating-elem-position-for-link-editor.js.map +1 -0
  734. package/dist/es/utils/set-floating-elem-position.js +31 -0
  735. package/dist/es/utils/set-floating-elem-position.js.map +1 -0
  736. package/dist/es/utils/use-node-focus.js +33 -0
  737. package/dist/es/utils/use-node-focus.js.map +1 -0
  738. package/dist/index.d.ts +445 -0
  739. package/package.json +151 -0
@@ -0,0 +1,176 @@
1
+ 'use strict';
2
+
3
+ var jsxRuntime = require('react/jsx-runtime');
4
+ var index = require('../node_modules/@radix-ui/react-label/dist/index.js');
5
+ var React = require('react');
6
+ var flex = require('../flex/flex.js');
7
+ var stitches_config = require('../stitches.config.js');
8
+ var text = require('../text/text.js');
9
+ var tooltip = require('../tooltip/tooltip.js');
10
+ var info = require('../packages/react-icons/dist/es/icons/info.js');
11
+
12
+ var __defProp = Object.defineProperty;
13
+ var __defProps = Object.defineProperties;
14
+ var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
15
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
16
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
17
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
18
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
19
+ var __spreadValues = (a, b) => {
20
+ for (var prop in b || (b = {}))
21
+ if (__hasOwnProp.call(b, prop))
22
+ __defNormalProp(a, prop, b[prop]);
23
+ if (__getOwnPropSymbols)
24
+ for (var prop of __getOwnPropSymbols(b)) {
25
+ if (__propIsEnum.call(b, prop))
26
+ __defNormalProp(a, prop, b[prop]);
27
+ }
28
+ return a;
29
+ };
30
+ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
31
+ var __objRest = (source, exclude) => {
32
+ var target = {};
33
+ for (var prop in source)
34
+ if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
35
+ target[prop] = source[prop];
36
+ if (source != null && __getOwnPropSymbols)
37
+ for (var prop of __getOwnPropSymbols(source)) {
38
+ if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
39
+ target[prop] = source[prop];
40
+ }
41
+ return target;
42
+ };
43
+ const StyledFormLabel = stitches_config.styled(index.Root, {
44
+ display: "block",
45
+ color: "$neutral800",
46
+ fontWeight: "$4",
47
+ userSelect: "none",
48
+ variants: {
49
+ size: {
50
+ xs: {
51
+ fontSize: "$xs",
52
+ lineHeight: "$xs"
53
+ },
54
+ sm: {
55
+ fontSize: "$sm",
56
+ lineHeight: "$sm"
57
+ }
58
+ }
59
+ },
60
+ defaultVariants: {
61
+ size: "sm"
62
+ }
63
+ });
64
+ const StyledFormLabelButton = stitches_config.styled("button", {
65
+ backgroundColor: "transparent",
66
+ border: "none",
67
+ padding: 0,
68
+ color: "$primary500",
69
+ fontWeight: "$5",
70
+ cursor: "pointer",
71
+ "&:hover": {
72
+ color: "$primary700"
73
+ },
74
+ variants: {
75
+ size: {
76
+ sm: {
77
+ fontSize: "$sm",
78
+ lineHeight: "$sm"
79
+ },
80
+ xs: {
81
+ fontSize: "$xs",
82
+ lineHeight: "$xs"
83
+ }
84
+ }
85
+ },
86
+ defaultVariants: {
87
+ size: "xs"
88
+ }
89
+ });
90
+ const StyledText = stitches_config.styled(text.Text, {
91
+ color: "$negative600",
92
+ paddingTop: "$1"
93
+ });
94
+ const IconContainer = stitches_config.styled("span", {
95
+ svg: {
96
+ color: "$neutral800",
97
+ display: "block",
98
+ "& path:first-child": {
99
+ fill: "rgba(0, 0, 0, 0.08)",
100
+ stroke: "none"
101
+ }
102
+ },
103
+ variants: {
104
+ size: {
105
+ xs: {
106
+ svg: {
107
+ width: "14px",
108
+ height: "14px"
109
+ }
110
+ },
111
+ sm: {
112
+ svg: {
113
+ width: "16px",
114
+ height: "16px"
115
+ }
116
+ }
117
+ }
118
+ }
119
+ });
120
+ React.forwardRef((props, ref) => {
121
+ return /* @__PURE__ */ jsxRuntime.jsx(StyledFormLabelButton, __spreadProps(__spreadValues({ type: "button" }, props), { ref }));
122
+ });
123
+ const FormLabel = React.forwardRef(
124
+ (_a, ref) => {
125
+ var _b = _a, {
126
+ children,
127
+ requiredIndicator = false,
128
+ info: info$1,
129
+ as,
130
+ rightAddon,
131
+ containerRef
132
+ } = _b, rest = __objRest(_b, [
133
+ "children",
134
+ "requiredIndicator",
135
+ "info",
136
+ "as",
137
+ "rightAddon",
138
+ "containerRef"
139
+ ]);
140
+ if (!React.isValidElement(requiredIndicator) && typeof requiredIndicator !== "boolean") {
141
+ throw Error("requiredIndicator is not a valid component");
142
+ }
143
+ return /* @__PURE__ */ jsxRuntime.jsxs(
144
+ flex.Flex,
145
+ {
146
+ justifyContent: "space-between",
147
+ css: {
148
+ flex: "1 1 auto"
149
+ },
150
+ ref: containerRef,
151
+ children: [
152
+ /* @__PURE__ */ jsxRuntime.jsxs(flex.Flex, { gap: "$1", alignItems: "center", children: [
153
+ /* @__PURE__ */ jsxRuntime.jsx(StyledFormLabel, __spreadProps(__spreadValues({ as }, rest), { ref, children })),
154
+ requiredIndicator === true ? /* @__PURE__ */ jsxRuntime.jsx(
155
+ StyledText,
156
+ {
157
+ "data-testid": "label-required-indicator",
158
+ size: rest.size,
159
+ css: {
160
+ lineHeight: "1"
161
+ },
162
+ children: "*"
163
+ }
164
+ ) : null,
165
+ typeof requiredIndicator !== "boolean" ? React.cloneElement(requiredIndicator) : null,
166
+ info$1 && /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: typeof info$1 === "string" ? /* @__PURE__ */ jsxRuntime.jsx(tooltip.TooltipProvider, { children: /* @__PURE__ */ jsxRuntime.jsx(tooltip.Tooltip, { content: info$1, children: /* @__PURE__ */ jsxRuntime.jsx(IconContainer, { size: rest.size, children: /* @__PURE__ */ jsxRuntime.jsx(info.InfoIcon, {}) }) }) }) : info$1 })
167
+ ] }),
168
+ rightAddon
169
+ ]
170
+ }
171
+ );
172
+ }
173
+ );
174
+
175
+ exports.FormLabel = FormLabel;
176
+ //# sourceMappingURL=form-label.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"form-label.js","sources":["../../../../../../../react-components/dist/es/form-label/form-label.js"],"sourcesContent":["import { jsx, jsxs, Fragment } from 'react/jsx-runtime';\nimport { Root } from '../node_modules/@radix-ui/react-label/dist/index.js';\nimport React__default, { forwardRef, isValidElement } from 'react';\nimport { Flex } from '../flex/flex.js';\nimport { styled } from '../stitches.config.js';\nimport { Text } from '../text/text.js';\nimport { TooltipProvider, Tooltip } from '../tooltip/tooltip.js';\nimport { InfoIcon } from '../packages/react-icons/dist/es/icons/info.js';\n\nvar __defProp = Object.defineProperty;\nvar __defProps = Object.defineProperties;\nvar __getOwnPropDescs = Object.getOwnPropertyDescriptors;\nvar __getOwnPropSymbols = Object.getOwnPropertySymbols;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __propIsEnum = Object.prototype.propertyIsEnumerable;\nvar __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;\nvar __spreadValues = (a, b) => {\n for (var prop in b || (b = {}))\n if (__hasOwnProp.call(b, prop))\n __defNormalProp(a, prop, b[prop]);\n if (__getOwnPropSymbols)\n for (var prop of __getOwnPropSymbols(b)) {\n if (__propIsEnum.call(b, prop))\n __defNormalProp(a, prop, b[prop]);\n }\n return a;\n};\nvar __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));\nvar __objRest = (source, exclude) => {\n var target = {};\n for (var prop in source)\n if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)\n target[prop] = source[prop];\n if (source != null && __getOwnPropSymbols)\n for (var prop of __getOwnPropSymbols(source)) {\n if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))\n target[prop] = source[prop];\n }\n return target;\n};\nconst StyledFormLabel = styled(Root, {\n display: \"block\",\n color: \"$neutral800\",\n fontWeight: \"$4\",\n userSelect: \"none\",\n variants: {\n size: {\n xs: {\n fontSize: \"$xs\",\n lineHeight: \"$xs\"\n },\n sm: {\n fontSize: \"$sm\",\n lineHeight: \"$sm\"\n }\n }\n },\n defaultVariants: {\n size: \"sm\"\n }\n});\nconst StyledFormLabelButton = styled(\"button\", {\n backgroundColor: \"transparent\",\n border: \"none\",\n padding: 0,\n color: \"$primary500\",\n fontWeight: \"$5\",\n cursor: \"pointer\",\n \"&:hover\": {\n color: \"$primary700\"\n },\n variants: {\n size: {\n sm: {\n fontSize: \"$sm\",\n lineHeight: \"$sm\"\n },\n xs: {\n fontSize: \"$xs\",\n lineHeight: \"$xs\"\n }\n }\n },\n defaultVariants: {\n size: \"xs\"\n }\n});\nconst StyledText = styled(Text, {\n color: \"$negative600\",\n paddingTop: \"$1\"\n});\nconst IconContainer = styled(\"span\", {\n svg: {\n color: \"$neutral800\",\n display: \"block\",\n \"& path:first-child\": {\n fill: \"rgba(0, 0, 0, 0.08)\",\n stroke: \"none\"\n }\n },\n variants: {\n size: {\n xs: {\n svg: {\n width: \"14px\",\n height: \"14px\"\n }\n },\n sm: {\n svg: {\n width: \"16px\",\n height: \"16px\"\n }\n }\n }\n }\n});\nconst FormLabelButton = forwardRef((props, ref) => {\n return /* @__PURE__ */ jsx(StyledFormLabelButton, __spreadProps(__spreadValues({ type: \"button\" }, props), { ref }));\n});\nconst FormLabel = forwardRef(\n (_a, ref) => {\n var _b = _a, {\n children,\n requiredIndicator = false,\n info,\n as,\n rightAddon,\n containerRef\n } = _b, rest = __objRest(_b, [\n \"children\",\n \"requiredIndicator\",\n \"info\",\n \"as\",\n \"rightAddon\",\n \"containerRef\"\n ]);\n if (!isValidElement(requiredIndicator) && typeof requiredIndicator !== \"boolean\") {\n throw Error(\"requiredIndicator is not a valid component\");\n }\n return /* @__PURE__ */ jsxs(\n Flex,\n {\n justifyContent: \"space-between\",\n css: {\n flex: \"1 1 auto\"\n },\n ref: containerRef,\n children: [\n /* @__PURE__ */ jsxs(Flex, { gap: \"$1\", alignItems: \"center\", children: [\n /* @__PURE__ */ jsx(StyledFormLabel, __spreadProps(__spreadValues({ as }, rest), { ref, children })),\n requiredIndicator === true ? /* @__PURE__ */ jsx(\n StyledText,\n {\n \"data-testid\": \"label-required-indicator\",\n size: rest.size,\n css: {\n lineHeight: \"1\"\n },\n children: \"*\"\n }\n ) : null,\n typeof requiredIndicator !== \"boolean\" ? React__default.cloneElement(requiredIndicator) : null,\n info && /* @__PURE__ */ jsx(Fragment, { children: typeof info === \"string\" ? /* @__PURE__ */ jsx(TooltipProvider, { children: /* @__PURE__ */ jsx(Tooltip, { content: info, children: /* @__PURE__ */ jsx(IconContainer, { size: rest.size, children: /* @__PURE__ */ jsx(InfoIcon, {}) }) }) }) : info })\n ] }),\n rightAddon\n ]\n }\n );\n }\n);\n\nexport { FormLabel, FormLabelButton };\n//# sourceMappingURL=form-label.js.map\n"],"names":["styled","Root","Text","forwardRef","jsx","info","isValidElement","jsxs","Flex","React__default","Fragment","TooltipProvider","Tooltip","InfoIcon"],"mappings":";;;;;;;;;;;AASA,IAAI,YAAY,MAAO,CAAA,cAAA;AACvB,IAAI,aAAa,MAAO,CAAA,gBAAA;AACxB,IAAI,oBAAoB,MAAO,CAAA,yBAAA;AAC/B,IAAI,sBAAsB,MAAO,CAAA,qBAAA;AACjC,IAAI,YAAA,GAAe,OAAO,SAAU,CAAA,cAAA;AACpC,IAAI,YAAA,GAAe,OAAO,SAAU,CAAA,oBAAA;AACpC,IAAI,eAAA,GAAkB,CAAC,GAAK,EAAA,GAAA,EAAK,UAAU,GAAO,IAAA,GAAA,GAAM,SAAU,CAAA,GAAA,EAAK,GAAK,EAAA,EAAE,YAAY,IAAM,EAAA,YAAA,EAAc,MAAM,QAAU,EAAA,IAAA,EAAM,OAAO,CAAA,GAAI,GAAI,CAAA,GAAG,CAAI,GAAA,KAAA;AAC1J,IAAI,cAAA,GAAiB,CAAC,CAAA,EAAG,CAAM,KAAA;AAC7B,EAAS,KAAA,IAAA,IAAA,IAAQ,CAAM,KAAA,CAAA,GAAI,EAAC,CAAA;AAC1B,IAAI,IAAA,YAAA,CAAa,IAAK,CAAA,CAAA,EAAG,IAAI,CAAA;AAC3B,MAAA,eAAA,CAAgB,CAAG,EAAA,IAAA,EAAM,CAAE,CAAA,IAAI,CAAC,CAAA;AACpC,EAAI,IAAA,mBAAA;AACF,IAAS,KAAA,IAAA,IAAA,IAAQ,mBAAoB,CAAA,CAAC,CAAG,EAAA;AACvC,MAAI,IAAA,YAAA,CAAa,IAAK,CAAA,CAAA,EAAG,IAAI,CAAA;AAC3B,QAAA,eAAA,CAAgB,CAAG,EAAA,IAAA,EAAM,CAAE,CAAA,IAAI,CAAC,CAAA;AAAA;AAEtC,EAAO,OAAA,CAAA;AACT,CAAA;AACA,IAAI,aAAA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,MAAM,IAAK,CAAA,IAAA;AAAA,gBACX,GAAK,EAAA;AAAA,kBACH,UAAY,EAAA;AAAA,iBACd;AAAA,gBACA,QAAU,EAAA;AAAA;AACZ,aACE,GAAA,IAAA;AAAA,YACJ,OAAO,iBAAsB,KAAA,SAAA,GAAYK,KAAe,CAAA,YAAA,CAAa,iBAAiB,CAAI,GAAA,IAAA;AAAA,YAC1FJ,0BAA4BD,cAAA,CAAAM,mBAAA,EAAU,EAAE,QAAA,EAAU,OAAOL,MAAS,KAAA,QAAA,mBAA+BD,cAAA,CAAAO,uBAAA,EAAiB,EAAE,QAA0B,kBAAAP,cAAA,CAAIQ,eAAS,EAAA,EAAE,SAASP,MAAM,EAAA,QAAA,kBAA8BD,cAAA,CAAA,aAAA,EAAe,EAAE,IAAM,EAAA,IAAA,CAAK,IAAM,EAAA,QAAA,iCAA8BS,aAAU,EAAA,EAAE,CAAA,EAAG,CAAE,EAAC,GAAG,CAAA,GAAIR,QAAM;AAAA,aACxS,CAAA;AAAA,UACH;AAAA;AACF;AACF,KACF;AAAA;AAEJ;;;;"}
@@ -0,0 +1,159 @@
1
+ 'use strict';
2
+
3
+ var jsxRuntime = require('react/jsx-runtime');
4
+ var React = require('react');
5
+ var box = require('../box/box.js');
6
+ var flex = require('../flex/flex.js');
7
+ var formHelperText = require('../form-helper-text/form-helper-text.js');
8
+ var formLabel = require('../form-label/form-label.js');
9
+ var stitches_config = require('../stitches.config.js');
10
+ var text = require('../text/text.js');
11
+ var input = require('./input.js');
12
+
13
+ var __defProp = Object.defineProperty;
14
+ var __defProps = Object.defineProperties;
15
+ var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
16
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
17
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
18
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
19
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
20
+ var __spreadValues = (a, b) => {
21
+ for (var prop in b || (b = {}))
22
+ if (__hasOwnProp.call(b, prop))
23
+ __defNormalProp(a, prop, b[prop]);
24
+ if (__getOwnPropSymbols)
25
+ for (var prop of __getOwnPropSymbols(b)) {
26
+ if (__propIsEnum.call(b, prop))
27
+ __defNormalProp(a, prop, b[prop]);
28
+ }
29
+ return a;
30
+ };
31
+ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
32
+ var __objRest = (source, exclude) => {
33
+ var target = {};
34
+ for (var prop in source)
35
+ if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
36
+ target[prop] = source[prop];
37
+ if (source != null && __getOwnPropSymbols)
38
+ for (var prop of __getOwnPropSymbols(source)) {
39
+ if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
40
+ target[prop] = source[prop];
41
+ }
42
+ return target;
43
+ };
44
+ stitches_config.styled(formHelperText.FormHelperText, {
45
+ color: "$negative500 !important",
46
+ marginTop: "$2"
47
+ });
48
+ const FormInput = React.forwardRef(
49
+ (_a, ref) => {
50
+ var _b = _a, {
51
+ label,
52
+ showCount,
53
+ value,
54
+ error,
55
+ info,
56
+ defaultValue,
57
+ maxLength,
58
+ requiredIndicator,
59
+ helperText,
60
+ id,
61
+ renderCounter
62
+ } = _b, rest = __objRest(_b, [
63
+ "label",
64
+ "showCount",
65
+ "value",
66
+ "error",
67
+ "info",
68
+ "defaultValue",
69
+ "maxLength",
70
+ "requiredIndicator",
71
+ "helperText",
72
+ "id",
73
+ "renderCounter"
74
+ ]);
75
+ const mergedValue = value || defaultValue;
76
+ const inputId = id || `form-input-${React.useId()}`;
77
+ const labelSize = rest.size === "xl" ? "sm" : "xs";
78
+ const counterElement = React.useMemo(() => {
79
+ if (!showCount)
80
+ return null;
81
+ if (renderCounter) {
82
+ return renderCounter({
83
+ length: (mergedValue == null ? void 0 : mergedValue.toString().length) || 0,
84
+ maxLength
85
+ });
86
+ }
87
+ return /* @__PURE__ */ jsxRuntime.jsxs(
88
+ text.Text,
89
+ {
90
+ css: __spreadValues({
91
+ color: "$neutral700"
92
+ }, !label ? { marginLeft: "auto" } : {}),
93
+ id: `${inputId}-char-count`,
94
+ "data-testid": "form-input-char-count",
95
+ size: labelSize,
96
+ children: [
97
+ (mergedValue == null ? void 0 : mergedValue.toString().length) || 0,
98
+ maxLength ? `/${maxLength}` : null
99
+ ]
100
+ }
101
+ );
102
+ }, [
103
+ showCount,
104
+ label,
105
+ mergedValue,
106
+ maxLength,
107
+ inputId,
108
+ labelSize,
109
+ renderCounter
110
+ ]);
111
+ return /* @__PURE__ */ jsxRuntime.jsxs(box.Box, { children: [
112
+ /* @__PURE__ */ jsxRuntime.jsx(
113
+ flex.Flex,
114
+ __spreadProps(__spreadValues({
115
+ alignItems: "center",
116
+ justifyContent: "space-between"
117
+ }, (showCount || label) && { css: { marginBottom: "$2" } }), {
118
+ children: (label || counterElement) && /* @__PURE__ */ jsxRuntime.jsx(
119
+ formLabel.FormLabel,
120
+ {
121
+ as: "label",
122
+ htmlFor: inputId,
123
+ requiredIndicator,
124
+ id: `${inputId}-label`,
125
+ info,
126
+ rightAddon: counterElement,
127
+ size: labelSize,
128
+ children: label
129
+ }
130
+ )
131
+ })
132
+ ),
133
+ /* @__PURE__ */ jsxRuntime.jsx(
134
+ input.Input,
135
+ __spreadValues(__spreadProps(__spreadValues({
136
+ value,
137
+ defaultValue
138
+ }, maxLength && {
139
+ maxLength
140
+ }), {
141
+ ref,
142
+ id: inputId
143
+ }), rest)
144
+ ),
145
+ error || helperText ? /* @__PURE__ */ jsxRuntime.jsx(
146
+ box.Box,
147
+ {
148
+ css: {
149
+ marginTop: ["lg", "xl"].includes(rest.size) ? "$2" : "$1"
150
+ },
151
+ children: /* @__PURE__ */ jsxRuntime.jsx(formHelperText.FormHelperText, { size: labelSize, color: error ? "error" : "info", children: error || helperText })
152
+ }
153
+ ) : null
154
+ ] });
155
+ }
156
+ );
157
+
158
+ exports.FormInput = FormInput;
159
+ //# sourceMappingURL=form-input.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"form-input.js","sources":["../../../../../../../react-components/dist/es/input/form-input.js"],"sourcesContent":["import { jsxs, jsx } from 'react/jsx-runtime';\nimport { forwardRef, useId, useMemo } from 'react';\nimport { Box } from '../box/box.js';\nimport { Flex } from '../flex/flex.js';\nimport { FormHelperText } from '../form-helper-text/form-helper-text.js';\nimport { FormLabel } from '../form-label/form-label.js';\nimport { styled } from '../stitches.config.js';\nimport { Text } from '../text/text.js';\nimport { Input } from './input.js';\n\nvar __defProp = Object.defineProperty;\nvar __defProps = Object.defineProperties;\nvar __getOwnPropDescs = Object.getOwnPropertyDescriptors;\nvar __getOwnPropSymbols = Object.getOwnPropertySymbols;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __propIsEnum = Object.prototype.propertyIsEnumerable;\nvar __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;\nvar __spreadValues = (a, b) => {\n for (var prop in b || (b = {}))\n if (__hasOwnProp.call(b, prop))\n __defNormalProp(a, prop, b[prop]);\n if (__getOwnPropSymbols)\n for (var prop of __getOwnPropSymbols(b)) {\n if (__propIsEnum.call(b, prop))\n __defNormalProp(a, prop, b[prop]);\n }\n return a;\n};\nvar __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));\nvar __objRest = (source, exclude) => {\n var target = {};\n for (var prop in source)\n if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)\n target[prop] = source[prop];\n if (source != null && __getOwnPropSymbols)\n for (var prop of __getOwnPropSymbols(source)) {\n if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))\n target[prop] = source[prop];\n }\n return target;\n};\nconst StyledError = styled(FormHelperText, {\n color: \"$negative500 !important\",\n marginTop: \"$2\"\n});\nconst FormInput = forwardRef(\n (_a, ref) => {\n var _b = _a, {\n label,\n showCount,\n value,\n error,\n info,\n defaultValue,\n maxLength,\n requiredIndicator,\n helperText,\n id,\n renderCounter\n } = _b, rest = __objRest(_b, [\n \"label\",\n \"showCount\",\n \"value\",\n \"error\",\n \"info\",\n \"defaultValue\",\n \"maxLength\",\n \"requiredIndicator\",\n \"helperText\",\n \"id\",\n \"renderCounter\"\n ]);\n const mergedValue = value || defaultValue;\n const inputId = id || `form-input-${useId()}`;\n const labelSize = rest.size === \"xl\" ? \"sm\" : \"xs\";\n const counterElement = useMemo(() => {\n if (!showCount)\n return null;\n if (renderCounter) {\n return renderCounter({\n length: (mergedValue == null ? void 0 : mergedValue.toString().length) || 0,\n maxLength\n });\n }\n return /* @__PURE__ */ jsxs(\n Text,\n {\n css: __spreadValues({\n color: \"$neutral700\"\n }, !label ? { marginLeft: \"auto\" } : {}),\n id: `${inputId}-char-count`,\n \"data-testid\": \"form-input-char-count\",\n size: labelSize,\n children: [\n (mergedValue == null ? void 0 : mergedValue.toString().length) || 0,\n maxLength ? `/${maxLength}` : null\n ]\n }\n );\n }, [\n showCount,\n label,\n mergedValue,\n maxLength,\n inputId,\n labelSize,\n renderCounter\n ]);\n return /* @__PURE__ */ jsxs(Box, { children: [\n /* @__PURE__ */ jsx(\n Flex,\n __spreadProps(__spreadValues({\n alignItems: \"center\",\n justifyContent: \"space-between\"\n }, (showCount || label) && { css: { marginBottom: \"$2\" } }), {\n children: (label || counterElement) && /* @__PURE__ */ jsx(\n FormLabel,\n {\n as: \"label\",\n htmlFor: inputId,\n requiredIndicator,\n id: `${inputId}-label`,\n info,\n rightAddon: counterElement,\n size: labelSize,\n children: label\n }\n )\n })\n ),\n /* @__PURE__ */ jsx(\n Input,\n __spreadValues(__spreadProps(__spreadValues({\n value,\n defaultValue\n }, maxLength && {\n maxLength\n }), {\n ref,\n id: inputId\n }), rest)\n ),\n error || helperText ? /* @__PURE__ */ jsx(\n Box,\n {\n css: {\n marginTop: [\"lg\", \"xl\"].includes(rest.size) ? \"$2\" : \"$1\"\n },\n children: /* @__PURE__ */ jsx(FormHelperText, { size: labelSize, color: error ? \"error\" : \"info\", children: error || helperText })\n }\n ) : null\n ] });\n }\n);\n\nexport { FormInput, StyledError };\n//# sourceMappingURL=form-input.js.map\n"],"names":["styled","FormHelperText","forwardRef","useId","useMemo","jsxs","Text","Box","jsx","Flex","FormLabel","Input"],"mappings":";;;;;;;;;;;;AAUA,IAAI,YAAY,MAAO,CAAA,cAAA;AACvB,IAAI,aAAa,MAAO,CAAA,gBAAA;AACxB,IAAI,oBAAoB,MAAO,CAAA,yBAAA;AAC/B,IAAI,sBAAsB,MAAO,CAAA,qBAAA;AACjC,IAAI,YAAA,GAAe,OAAO,SAAU,CAAA,cAAA;AACpC,IAAI,YAAA,GAAe,OAAO,SAAU,CAAA,oBAAA;AACpC,IAAI,eAAA,GAAkB,CAAC,GAAK,EAAA,GAAA,EAAK,UAAU,GAAO,IAAA,GAAA,GAAM,SAAU,CAAA,GAAA,EAAK,GAAK,EAAA,EAAE,YAAY,IAAM,EAAA,YAAA,EAAc,MAAM,QAAU,EAAA,IAAA,EAAM,OAAO,CAAA,GAAI,GAAI,CAAA,GAAG,CAAI,GAAA,KAAA;AAC1J,IAAI,cAAA,GAAiB,CAAC,CAAA,EAAG,CAAM,KAAA;AAC7B,EAAS,KAAA,IAAA,IAAA,IAAQ,CAAM,KAAA,CAAA,GAAI,EAAC,CAAA;AAC1B,IAAI,IAAA,YAAA,CAAa,IAAK,CAAA,CAAA,EAAG,IAAI,CAAA;AAC3B,MAAA,eAAA,CAAgB,CAAG,EAAA,IAAA,EAAM,CAAE,CAAA,IAAI,CAAC,CAAA;AACpC,EAAI,IAAA,mBAAA;AACF,IAAS,KAAA,IAAA,IAAA,IAAQ,mBAAoB,CAAA,CAAC,CAAG,EAAA;AACvC,MAAI,IAAA,YAAA,CAAa,IAAK,CAAA,CAAA,EAAG,IAAI,CAAA;AAC3B,QAAA,eAAA,CAAgB,CAAG,EAAA,IAAA,EAAM,CAAE,CAAA,IAAI,CAAC,CAAA;AAAA;AAEtC,EAA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