@micromerce/formbuilder-react 1.0.656 → 1.0.659

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 (529) hide show
  1. package/dist/{src/index.d.ts → index.d.ts} +1 -3
  2. package/package.json +6 -4
  3. package/dist/components/Checkbox/Checkbox.module.scss +0 -10
  4. package/dist/components/FormBuilder/FormBuilder.module.scss +0 -94
  5. package/dist/components/FormFooter/FormFooter.module.scss +0 -65
  6. package/dist/components/FormGroup/FormGroup.module.scss +0 -69
  7. package/dist/components/FormList/FormList.module.scss +0 -173
  8. package/dist/components/Group/Group.module.scss +0 -28
  9. package/dist/components/Input/Input.module.scss +0 -3
  10. package/dist/components/InputFreeSolo/InputFreeSolo.module.scss +0 -29
  11. package/dist/components/MrnInput/MrnInput.module.scss +0 -31
  12. package/dist/components/MultiSelect/MultiSelect.module.scss +0 -13
  13. package/dist/components/PasswordInput/PasswordInput.module.scss +0 -26
  14. package/dist/components/Select/Select.module.scss +0 -15
  15. package/dist/components/Textarea/Textarea.module.scss +0 -14
  16. package/dist/components/addressGroup/AddressGroup.module.scss +0 -72
  17. package/dist/src/assets/icons/error/Error.js +0 -6
  18. package/dist/src/assets/icons/error/Error.js.map +0 -1
  19. package/dist/src/components/Checkbox/Checkbox.js +0 -37
  20. package/dist/src/components/Checkbox/Checkbox.js.map +0 -1
  21. package/dist/src/components/Checkbox/index.js +0 -2
  22. package/dist/src/components/Checkbox/index.js.map +0 -1
  23. package/dist/src/components/ControlWrapper/ControlWrapper.js +0 -37
  24. package/dist/src/components/ControlWrapper/ControlWrapper.js.map +0 -1
  25. package/dist/src/components/ControlWrapper/index.js +0 -2
  26. package/dist/src/components/ControlWrapper/index.js.map +0 -1
  27. package/dist/src/components/DateRangeGroup/DateRangeGroup.js +0 -69
  28. package/dist/src/components/DateRangeGroup/DateRangeGroup.js.map +0 -1
  29. package/dist/src/components/DateRangeGroup/DateRangeGroup.styles.js +0 -59
  30. package/dist/src/components/DateRangeGroup/DateRangeGroup.styles.js.map +0 -1
  31. package/dist/src/components/DateRangeGroup/components/CalendarModal.js +0 -90
  32. package/dist/src/components/DateRangeGroup/components/CalendarModal.js.map +0 -1
  33. package/dist/src/components/DateRangeGroup/index.js +0 -2
  34. package/dist/src/components/DateRangeGroup/index.js.map +0 -1
  35. package/dist/src/components/ErrorBoundary/ErrorBoundary.js +0 -22
  36. package/dist/src/components/ErrorBoundary/ErrorBoundary.js.map +0 -1
  37. package/dist/src/components/FileUploader/FileUploader.js +0 -30
  38. package/dist/src/components/FileUploader/FileUploader.js.map +0 -1
  39. package/dist/src/components/FileUploader/index.js +0 -2
  40. package/dist/src/components/FileUploader/index.js.map +0 -1
  41. package/dist/src/components/FormBuilder/FormBuilder.js +0 -74
  42. package/dist/src/components/FormBuilder/FormBuilder.js.map +0 -1
  43. package/dist/src/components/FormBuilder/index.js +0 -2
  44. package/dist/src/components/FormBuilder/index.js.map +0 -1
  45. package/dist/src/components/FormBuilder/utils/extractFormControlValues/extractFormControlValues.js +0 -50
  46. package/dist/src/components/FormBuilder/utils/extractFormControlValues/extractFormControlValues.js.map +0 -1
  47. package/dist/src/components/FormBuilder/utils/extractFormControlValues/index.js +0 -2
  48. package/dist/src/components/FormBuilder/utils/extractFormControlValues/index.js.map +0 -1
  49. package/dist/src/components/FormBuilder/utils/jsonToUrlEncoded/index.js +0 -2
  50. package/dist/src/components/FormBuilder/utils/jsonToUrlEncoded/index.js.map +0 -1
  51. package/dist/src/components/FormBuilder/utils/jsonToUrlEncoded/jsonToUrlEncoded.js +0 -15
  52. package/dist/src/components/FormBuilder/utils/jsonToUrlEncoded/jsonToUrlEncoded.js.map +0 -1
  53. package/dist/src/components/FormFooter/FormFooter.js +0 -46
  54. package/dist/src/components/FormFooter/FormFooter.js.map +0 -1
  55. package/dist/src/components/FormFooter/components/Switch.js +0 -15
  56. package/dist/src/components/FormFooter/components/Switch.js.map +0 -1
  57. package/dist/src/components/FormFooter/index.js +0 -2
  58. package/dist/src/components/FormFooter/index.js.map +0 -1
  59. package/dist/src/components/FormGroup/FormGroup.js +0 -18
  60. package/dist/src/components/FormGroup/FormGroup.js.map +0 -1
  61. package/dist/src/components/FormGroup/index.js +0 -2
  62. package/dist/src/components/FormGroup/index.js.map +0 -1
  63. package/dist/src/components/FormList/FormList.js +0 -66
  64. package/dist/src/components/FormList/FormList.js.map +0 -1
  65. package/dist/src/components/FormList/index.js +0 -2
  66. package/dist/src/components/FormList/index.js.map +0 -1
  67. package/dist/src/components/GeneralFormGroup/GeneralFormGroup.js +0 -4
  68. package/dist/src/components/GeneralFormGroup/GeneralFormGroup.js.map +0 -1
  69. package/dist/src/components/GeneralFormGroup/index.js +0 -2
  70. package/dist/src/components/GeneralFormGroup/index.js.map +0 -1
  71. package/dist/src/components/Group/Group.js +0 -32
  72. package/dist/src/components/Group/Group.js.map +0 -1
  73. package/dist/src/components/Group/index.js +0 -2
  74. package/dist/src/components/Group/index.js.map +0 -1
  75. package/dist/src/components/Input/Input.js +0 -57
  76. package/dist/src/components/Input/Input.js.map +0 -1
  77. package/dist/src/components/Input/index.js +0 -2
  78. package/dist/src/components/Input/index.js.map +0 -1
  79. package/dist/src/components/Input/input.styles.js +0 -24
  80. package/dist/src/components/Input/input.styles.js.map +0 -1
  81. package/dist/src/components/InputFreeSolo/InputFreeSolo.js +0 -67
  82. package/dist/src/components/InputFreeSolo/InputFreeSolo.js.map +0 -1
  83. package/dist/src/components/InputFreeSolo/index.js +0 -2
  84. package/dist/src/components/InputFreeSolo/index.js.map +0 -1
  85. package/dist/src/components/MrnInput/MrnInput.js +0 -64
  86. package/dist/src/components/MrnInput/MrnInput.js.map +0 -1
  87. package/dist/src/components/MrnInput/hooks/useMrn.js +0 -92
  88. package/dist/src/components/MrnInput/hooks/useMrn.js.map +0 -1
  89. package/dist/src/components/MrnInput/index.js +0 -2
  90. package/dist/src/components/MrnInput/index.js.map +0 -1
  91. package/dist/src/components/MrnInput/services/fetchMrn.js +0 -30
  92. package/dist/src/components/MrnInput/services/fetchMrn.js.map +0 -1
  93. package/dist/src/components/MrnInput/ui-helper/Link/Link.js +0 -15
  94. package/dist/src/components/MrnInput/ui-helper/Link/Link.js.map +0 -1
  95. package/dist/src/components/MrnInput/utils/mrnUtils/mrnUtils.js +0 -35
  96. package/dist/src/components/MrnInput/utils/mrnUtils/mrnUtils.js.map +0 -1
  97. package/dist/src/components/MrnInput/utils/resolveMrnLinks/resolveMrnLink.js +0 -11
  98. package/dist/src/components/MrnInput/utils/resolveMrnLinks/resolveMrnLink.js.map +0 -1
  99. package/dist/src/components/MrnInput/utils/resolveNestedQueryLink/resolveNestedQueryLink.js +0 -19
  100. package/dist/src/components/MrnInput/utils/resolveNestedQueryLink/resolveNestedQueryLink.js.map +0 -1
  101. package/dist/src/components/MrnInput/utils/urlSearchParam/urlSearchParam.js +0 -8
  102. package/dist/src/components/MrnInput/utils/urlSearchParam/urlSearchParam.js.map +0 -1
  103. package/dist/src/components/MultiSelect/MultiSelect.js +0 -61
  104. package/dist/src/components/MultiSelect/MultiSelect.js.map +0 -1
  105. package/dist/src/components/MultiSelect/index.js +0 -2
  106. package/dist/src/components/MultiSelect/index.js.map +0 -1
  107. package/dist/src/components/MultiSelect/utils/extractSelectedOptionValues/extractSelectedOptionValues.js +0 -21
  108. package/dist/src/components/MultiSelect/utils/extractSelectedOptionValues/extractSelectedOptionValues.js.map +0 -1
  109. package/dist/src/components/MultiSelect/utils/extractSelectedOptionValues/index.js +0 -2
  110. package/dist/src/components/MultiSelect/utils/extractSelectedOptionValues/index.js.map +0 -1
  111. package/dist/src/components/PasswordInput/PasswordInput.js +0 -21
  112. package/dist/src/components/PasswordInput/PasswordInput.js.map +0 -1
  113. package/dist/src/components/PasswordInput/index.js +0 -2
  114. package/dist/src/components/PasswordInput/index.js.map +0 -1
  115. package/dist/src/components/QueryControl/QueryControl.js +0 -95
  116. package/dist/src/components/QueryControl/QueryControl.js.map +0 -1
  117. package/dist/src/components/QueryControl/data/defaultControls.js +0 -95
  118. package/dist/src/components/QueryControl/data/defaultControls.js.map +0 -1
  119. package/dist/src/components/QueryControl/index.js +0 -2
  120. package/dist/src/components/QueryControl/index.js.map +0 -1
  121. package/dist/src/components/QueryControl/ui-helper/Wrapper/QueryControlWrapper.js +0 -8
  122. package/dist/src/components/QueryControl/ui-helper/Wrapper/QueryControlWrapper.js.map +0 -1
  123. package/dist/src/components/QueryControl/ui-helper/Wrapper/QueryControlWrapper.styles.js +0 -14
  124. package/dist/src/components/QueryControl/ui-helper/Wrapper/QueryControlWrapper.styles.js.map +0 -1
  125. package/dist/src/components/QueryControl/ui-helper/Wrapper/index.js +0 -2
  126. package/dist/src/components/QueryControl/ui-helper/Wrapper/index.js.map +0 -1
  127. package/dist/src/components/QueryControl/utils/allControlsHidden/allControlsHidden.js +0 -39
  128. package/dist/src/components/QueryControl/utils/allControlsHidden/allControlsHidden.js.map +0 -1
  129. package/dist/src/components/QueryControl/utils/allControlsHidden/index.js +0 -2
  130. package/dist/src/components/QueryControl/utils/allControlsHidden/index.js.map +0 -1
  131. package/dist/src/components/QueryControl/utils/getMatchingControls.js +0 -19
  132. package/dist/src/components/QueryControl/utils/getMatchingControls.js.map +0 -1
  133. package/dist/src/components/QueryControl/utils/hasExpertControl/hasExpertControl.js +0 -38
  134. package/dist/src/components/QueryControl/utils/hasExpertControl/hasExpertControl.js.map +0 -1
  135. package/dist/src/components/QueryControl/utils/hasExpertControl/index.js +0 -2
  136. package/dist/src/components/QueryControl/utils/hasExpertControl/index.js.map +0 -1
  137. package/dist/src/components/QueryControl/utils/hideGroup/hideGroup.js +0 -9
  138. package/dist/src/components/QueryControl/utils/hideGroup/hideGroup.js.map +0 -1
  139. package/dist/src/components/QueryControl/utils/hideGroup/index.js +0 -2
  140. package/dist/src/components/QueryControl/utils/hideGroup/index.js.map +0 -1
  141. package/dist/src/components/Select/Select.js +0 -67
  142. package/dist/src/components/Select/Select.js.map +0 -1
  143. package/dist/src/components/Select/index.js +0 -2
  144. package/dist/src/components/Select/index.js.map +0 -1
  145. package/dist/src/components/Select/utils/getSelectedOption.js +0 -8
  146. package/dist/src/components/Select/utils/getSelectedOption.js.map +0 -1
  147. package/dist/src/components/Textarea/Textarea.js +0 -55
  148. package/dist/src/components/Textarea/Textarea.js.map +0 -1
  149. package/dist/src/components/Textarea/Textarea.types.js +0 -2
  150. package/dist/src/components/Textarea/Textarea.types.js.map +0 -1
  151. package/dist/src/components/Textarea/aiWrapper/aiAction.js +0 -21
  152. package/dist/src/components/Textarea/aiWrapper/aiAction.js.map +0 -1
  153. package/dist/src/components/Textarea/aiWrapper/aiLayout.js +0 -21
  154. package/dist/src/components/Textarea/aiWrapper/aiLayout.js.map +0 -1
  155. package/dist/src/components/Textarea/aiWrapper/index.js +0 -29
  156. package/dist/src/components/Textarea/aiWrapper/index.js.map +0 -1
  157. package/dist/src/components/Textarea/aiWrapper/useAi.js +0 -74
  158. package/dist/src/components/Textarea/aiWrapper/useAi.js.map +0 -1
  159. package/dist/src/components/Textarea/editors/Default.js +0 -26
  160. package/dist/src/components/Textarea/editors/Default.js.map +0 -1
  161. package/dist/src/components/Textarea/editors/Html.js +0 -9
  162. package/dist/src/components/Textarea/editors/Html.js.map +0 -1
  163. package/dist/src/components/Textarea/editors/Json.js +0 -9
  164. package/dist/src/components/Textarea/editors/Json.js.map +0 -1
  165. package/dist/src/components/Textarea/editors/Markdown.js +0 -20
  166. package/dist/src/components/Textarea/editors/Markdown.js.map +0 -1
  167. package/dist/src/components/Textarea/editors/Richtext.js +0 -13
  168. package/dist/src/components/Textarea/editors/Richtext.js.map +0 -1
  169. package/dist/src/components/Textarea/index.js +0 -2
  170. package/dist/src/components/Textarea/index.js.map +0 -1
  171. package/dist/src/components/addressGroup/AddressGroup.js +0 -39
  172. package/dist/src/components/addressGroup/AddressGroup.js.map +0 -1
  173. package/dist/src/components/addressGroup/index.js +0 -2
  174. package/dist/src/components/addressGroup/index.js.map +0 -1
  175. package/dist/src/components/addressGroup/utils/Countries.js +0 -1249
  176. package/dist/src/components/addressGroup/utils/Countries.js.map +0 -1
  177. package/dist/src/components/plate/PlateEditor.d.ts +0 -10
  178. package/dist/src/components/plate/PlateEditor.js +0 -38
  179. package/dist/src/components/plate/PlateEditor.js.map +0 -1
  180. package/dist/src/components/plate/PlateEditorContent.d.ts +0 -24
  181. package/dist/src/components/plate/PlateEditorContent.js +0 -45
  182. package/dist/src/components/plate/PlateEditorContent.js.map +0 -1
  183. package/dist/src/components/plate/components/align-dropdown-menu.d.ts +0 -2
  184. package/dist/src/components/plate/components/align-dropdown-menu.js +0 -33
  185. package/dist/src/components/plate/components/align-dropdown-menu.js.map +0 -1
  186. package/dist/src/components/plate/components/blockquote-element.d.ts +0 -21
  187. package/dist/src/components/plate/components/blockquote-element.js +0 -8
  188. package/dist/src/components/plate/components/blockquote-element.js.map +0 -1
  189. package/dist/src/components/plate/components/button.d.ts +0 -14
  190. package/dist/src/components/plate/components/button.js +0 -38
  191. package/dist/src/components/plate/components/button.js.map +0 -1
  192. package/dist/src/components/plate/components/caption.d.ts +0 -43
  193. package/dist/src/components/plate/components/caption.js +0 -25
  194. package/dist/src/components/plate/components/caption.js.map +0 -1
  195. package/dist/src/components/plate/components/checkbox.d.ts +0 -3
  196. package/dist/src/components/plate/components/checkbox.js +0 -7
  197. package/dist/src/components/plate/components/checkbox.js.map +0 -1
  198. package/dist/src/components/plate/components/code-block-combobox.d.ts +0 -48
  199. package/dist/src/components/plate/components/code-block-combobox.js +0 -131
  200. package/dist/src/components/plate/components/code-block-combobox.js.map +0 -1
  201. package/dist/src/components/plate/components/code-block-element.d.ts +0 -22
  202. package/dist/src/components/plate/components/code-block-element.js +0 -13
  203. package/dist/src/components/plate/components/code-block-element.js.map +0 -1
  204. package/dist/src/components/plate/components/code-leaf.d.ts +0 -19
  205. package/dist/src/components/plate/components/code-leaf.js +0 -8
  206. package/dist/src/components/plate/components/code-leaf.js.map +0 -1
  207. package/dist/src/components/plate/components/code-line-element.d.ts +0 -21
  208. package/dist/src/components/plate/components/code-line-element.js +0 -6
  209. package/dist/src/components/plate/components/code-line-element.js.map +0 -1
  210. package/dist/src/components/plate/components/code-syntax-leaf.d.ts +0 -19
  211. package/dist/src/components/plate/components/code-syntax-leaf.js +0 -11
  212. package/dist/src/components/plate/components/code-syntax-leaf.js.map +0 -1
  213. package/dist/src/components/plate/components/color-constants.d.ts +0 -10
  214. package/dist/src/components/plate/components/color-constants.js +0 -430
  215. package/dist/src/components/plate/components/color-constants.js.map +0 -1
  216. package/dist/src/components/plate/components/color-dropdown-menu-items.d.ts +0 -18
  217. package/dist/src/components/plate/components/color-dropdown-menu-items.js +0 -21
  218. package/dist/src/components/plate/components/color-dropdown-menu-items.js.map +0 -1
  219. package/dist/src/components/plate/components/color-dropdown-menu.d.ts +0 -12
  220. package/dist/src/components/plate/components/color-dropdown-menu.js +0 -18
  221. package/dist/src/components/plate/components/color-dropdown-menu.js.map +0 -1
  222. package/dist/src/components/plate/components/color-input.d.ts +0 -2
  223. package/dist/src/components/plate/components/color-input.js +0 -15
  224. package/dist/src/components/plate/components/color-input.js.map +0 -1
  225. package/dist/src/components/plate/components/color-picker.d.ts +0 -18
  226. package/dist/src/components/plate/components/color-picker.js +0 -19
  227. package/dist/src/components/plate/components/color-picker.js.map +0 -1
  228. package/dist/src/components/plate/components/colors-custom.d.ts +0 -10
  229. package/dist/src/components/plate/components/colors-custom.js +0 -21
  230. package/dist/src/components/plate/components/colors-custom.js.map +0 -1
  231. package/dist/src/components/plate/components/command.d.ts +0 -76
  232. package/dist/src/components/plate/components/command.js +0 -18
  233. package/dist/src/components/plate/components/command.js.map +0 -1
  234. package/dist/src/components/plate/components/comment-leaf.d.ts +0 -3
  235. package/dist/src/components/plate/components/comment-leaf.js +0 -23
  236. package/dist/src/components/plate/components/comment-leaf.js.map +0 -1
  237. package/dist/src/components/plate/components/dialog.d.ts +0 -12
  238. package/dist/src/components/plate/components/dialog.js +0 -16
  239. package/dist/src/components/plate/components/dialog.js.map +0 -1
  240. package/dist/src/components/plate/components/dropdown-menu.d.ts +0 -29
  241. package/dist/src/components/plate/components/dropdown-menu.js +0 -51
  242. package/dist/src/components/plate/components/dropdown-menu.js.map +0 -1
  243. package/dist/src/components/plate/components/excalidraw-element.d.ts +0 -21
  244. package/dist/src/components/plate/components/excalidraw-element.js +0 -12
  245. package/dist/src/components/plate/components/excalidraw-element.js.map +0 -1
  246. package/dist/src/components/plate/components/fixed-toolbar-buttons.d.ts +0 -1
  247. package/dist/src/components/plate/components/fixed-toolbar-buttons.js +0 -25
  248. package/dist/src/components/plate/components/fixed-toolbar-buttons.js.map +0 -1
  249. package/dist/src/components/plate/components/fixed-toolbar.d.ts +0 -1
  250. package/dist/src/components/plate/components/fixed-toolbar.js +0 -4
  251. package/dist/src/components/plate/components/fixed-toolbar.js.map +0 -1
  252. package/dist/src/components/plate/components/heading-element.d.ts +0 -24
  253. package/dist/src/components/plate/components/heading-element.js +0 -30
  254. package/dist/src/components/plate/components/heading-element.js.map +0 -1
  255. package/dist/src/components/plate/components/highlight-leaf.d.ts +0 -19
  256. package/dist/src/components/plate/components/highlight-leaf.js +0 -5
  257. package/dist/src/components/plate/components/highlight-leaf.js.map +0 -1
  258. package/dist/src/components/plate/components/hr-element.d.ts +0 -21
  259. package/dist/src/components/plate/components/hr-element.js +0 -11
  260. package/dist/src/components/plate/components/hr-element.js.map +0 -1
  261. package/dist/src/components/plate/components/image-element.d.ts +0 -21
  262. package/dist/src/components/plate/components/image-element.js +0 -19
  263. package/dist/src/components/plate/components/image-element.js.map +0 -1
  264. package/dist/src/components/plate/components/indent-list-toolbar-button.d.ts +0 -18
  265. package/dist/src/components/plate/components/indent-list-toolbar-button.js +0 -12
  266. package/dist/src/components/plate/components/indent-list-toolbar-button.js.map +0 -1
  267. package/dist/src/components/plate/components/indent-todo-marker-component.d.ts +0 -3
  268. package/dist/src/components/plate/components/indent-todo-marker-component.js +0 -14
  269. package/dist/src/components/plate/components/indent-todo-marker-component.js.map +0 -1
  270. package/dist/src/components/plate/components/indent-todo-toolbar-button.d.ts +0 -15
  271. package/dist/src/components/plate/components/indent-todo-toolbar-button.js +0 -11
  272. package/dist/src/components/plate/components/indent-todo-toolbar-button.js.map +0 -1
  273. package/dist/src/components/plate/components/indent-toolbar-button.d.ts +0 -15
  274. package/dist/src/components/plate/components/indent-toolbar-button.js +0 -10
  275. package/dist/src/components/plate/components/indent-toolbar-button.js.map +0 -1
  276. package/dist/src/components/plate/components/inline-combobox.d.ts +0 -29
  277. package/dist/src/components/plate/components/inline-combobox.js +0 -156
  278. package/dist/src/components/plate/components/inline-combobox.js.map +0 -1
  279. package/dist/src/components/plate/components/input.d.ts +0 -8
  280. package/dist/src/components/plate/components/input.js +0 -20
  281. package/dist/src/components/plate/components/input.js.map +0 -1
  282. package/dist/src/components/plate/components/insert-dropdown-menu.d.ts +0 -12
  283. package/dist/src/components/plate/components/insert-dropdown-menu.js +0 -179
  284. package/dist/src/components/plate/components/insert-dropdown-menu.js.map +0 -1
  285. package/dist/src/components/plate/components/kbd-leaf.d.ts +0 -19
  286. package/dist/src/components/plate/components/kbd-leaf.js +0 -5
  287. package/dist/src/components/plate/components/kbd-leaf.js.map +0 -1
  288. package/dist/src/components/plate/components/line-height-dropdown-menu.d.ts +0 -2
  289. package/dist/src/components/plate/components/line-height-dropdown-menu.js +0 -12
  290. package/dist/src/components/plate/components/line-height-dropdown-menu.js.map +0 -1
  291. package/dist/src/components/plate/components/link-element.d.ts +0 -21
  292. package/dist/src/components/plate/components/link-element.js +0 -10
  293. package/dist/src/components/plate/components/link-element.js.map +0 -1
  294. package/dist/src/components/plate/components/link-floating-toolbar.d.ts +0 -5
  295. package/dist/src/components/plate/components/link-floating-toolbar.js +0 -54
  296. package/dist/src/components/plate/components/link-floating-toolbar.js.map +0 -1
  297. package/dist/src/components/plate/components/link-toolbar-button.d.ts +0 -15
  298. package/dist/src/components/plate/components/link-toolbar-button.js +0 -11
  299. package/dist/src/components/plate/components/link-toolbar-button.js.map +0 -1
  300. package/dist/src/components/plate/components/mark-toolbar-button.d.ts +0 -18
  301. package/dist/src/components/plate/components/mark-toolbar-button.js +0 -11
  302. package/dist/src/components/plate/components/mark-toolbar-button.js.map +0 -1
  303. package/dist/src/components/plate/components/media-embed-element.d.ts +0 -21
  304. package/dist/src/components/plate/components/media-embed-element.js +0 -23
  305. package/dist/src/components/plate/components/media-embed-element.js.map +0 -1
  306. package/dist/src/components/plate/components/media-popover.d.ts +0 -7
  307. package/dist/src/components/plate/components/media-popover.js +0 -30
  308. package/dist/src/components/plate/components/media-popover.js.map +0 -1
  309. package/dist/src/components/plate/components/mention-element.d.ts +0 -26
  310. package/dist/src/components/plate/components/mention-element.js +0 -12
  311. package/dist/src/components/plate/components/mention-element.js.map +0 -1
  312. package/dist/src/components/plate/components/mention-input-element.d.ts +0 -25
  313. package/dist/src/components/plate/components/mention-input-element.js +0 -89
  314. package/dist/src/components/plate/components/mention-input-element.js.map +0 -1
  315. package/dist/src/components/plate/components/outdent-toolbar-button.d.ts +0 -15
  316. package/dist/src/components/plate/components/outdent-toolbar-button.js +0 -10
  317. package/dist/src/components/plate/components/outdent-toolbar-button.js.map +0 -1
  318. package/dist/src/components/plate/components/paragraph-element.d.ts +0 -20
  319. package/dist/src/components/plate/components/paragraph-element.js +0 -4
  320. package/dist/src/components/plate/components/paragraph-element.js.map +0 -1
  321. package/dist/src/components/plate/components/placeholder.d.ts +0 -6
  322. package/dist/src/components/plate/components/placeholder.js +0 -37
  323. package/dist/src/components/plate/components/placeholder.js.map +0 -1
  324. package/dist/src/components/plate/components/popover.d.ts +0 -7
  325. package/dist/src/components/plate/components/popover.js +0 -11
  326. package/dist/src/components/plate/components/popover.js.map +0 -1
  327. package/dist/src/components/plate/components/resizable.d.ts +0 -40
  328. package/dist/src/components/plate/components/resizable.js +0 -38
  329. package/dist/src/components/plate/components/resizable.js.map +0 -1
  330. package/dist/src/components/plate/components/separator.d.ts +0 -4
  331. package/dist/src/components/plate/components/separator.js +0 -20
  332. package/dist/src/components/plate/components/separator.js.map +0 -1
  333. package/dist/src/components/plate/components/slash-input-element.d.ts +0 -22
  334. package/dist/src/components/plate/components/slash-input-element.js +0 -64
  335. package/dist/src/components/plate/components/slash-input-element.js.map +0 -1
  336. package/dist/src/components/plate/components/table-cell-element.d.ts +0 -47
  337. package/dist/src/components/plate/components/table-cell-element.js +0 -35
  338. package/dist/src/components/plate/components/table-cell-element.js.map +0 -1
  339. package/dist/src/components/plate/components/table-element.d.ts +0 -24
  340. package/dist/src/components/plate/components/table-element.js +0 -46
  341. package/dist/src/components/plate/components/table-element.js.map +0 -1
  342. package/dist/src/components/plate/components/table-row-element.d.ts +0 -23
  343. package/dist/src/components/plate/components/table-row-element.js +0 -7
  344. package/dist/src/components/plate/components/table-row-element.js.map +0 -1
  345. package/dist/src/components/plate/components/todo-list-element.d.ts +0 -21
  346. package/dist/src/components/plate/components/todo-list-element.js +0 -12
  347. package/dist/src/components/plate/components/todo-list-element.js.map +0 -1
  348. package/dist/src/components/plate/components/toolbar.d.ts +0 -29
  349. package/dist/src/components/plate/components/toolbar.js +0 -51
  350. package/dist/src/components/plate/components/toolbar.js.map +0 -1
  351. package/dist/src/components/plate/components/tooltip.d.ts +0 -12
  352. package/dist/src/components/plate/components/tooltip.js +0 -26
  353. package/dist/src/components/plate/components/tooltip.js.map +0 -1
  354. package/dist/src/components/plate/components/turn-into-dropdown-menu.d.ts +0 -2
  355. package/dist/src/components/plate/components/turn-into-dropdown-menu.js +0 -93
  356. package/dist/src/components/plate/components/turn-into-dropdown-menu.js.map +0 -1
  357. package/dist/src/components/plate/icons.d.ts +0 -85
  358. package/dist/src/components/plate/icons.js +0 -101
  359. package/dist/src/components/plate/icons.js.map +0 -1
  360. package/dist/src/components/plate/lib/autoformat-rules.d.ts +0 -10
  361. package/dist/src/components/plate/lib/autoformat-rules.js +0 -271
  362. package/dist/src/components/plate/lib/autoformat-rules.js.map +0 -1
  363. package/dist/src/components/plate/usePlateEditor.d.ts +0 -4
  364. package/dist/src/components/plate/usePlateEditor.js +0 -384
  365. package/dist/src/components/plate/usePlateEditor.js.map +0 -1
  366. package/dist/src/components/states/error/index.js +0 -15
  367. package/dist/src/components/states/error/index.js.map +0 -1
  368. package/dist/src/context/FormData.js +0 -109
  369. package/dist/src/context/FormData.js.map +0 -1
  370. package/dist/src/hooks/useDependent/enhanced/useInputDependent/useInputDependent.js +0 -36
  371. package/dist/src/hooks/useDependent/enhanced/useInputDependent/useInputDependent.js.map +0 -1
  372. package/dist/src/hooks/useDependent/enhanced/useOptionsGenerator/useOptionsGenerator.js +0 -16
  373. package/dist/src/hooks/useDependent/enhanced/useOptionsGenerator/useOptionsGenerator.js.map +0 -1
  374. package/dist/src/hooks/useDependent/useDependent.js +0 -86
  375. package/dist/src/hooks/useDependent/useDependent.js.map +0 -1
  376. package/dist/src/hooks/useValueGenerator/useValueGenerator.js +0 -99
  377. package/dist/src/hooks/useValueGenerator/useValueGenerator.js.map +0 -1
  378. package/dist/src/index.js +0 -19
  379. package/dist/src/index.js.map +0 -1
  380. package/dist/src/styles/Hidden.styles.js +0 -16
  381. package/dist/src/styles/Hidden.styles.js.map +0 -1
  382. package/dist/src/styles/Skeleton.js +0 -40
  383. package/dist/src/styles/Skeleton.js.map +0 -1
  384. package/dist/src/styles/Textfield.styles.js +0 -34
  385. package/dist/src/styles/Textfield.styles.js.map +0 -1
  386. package/dist/src/testutils.js +0 -22
  387. package/dist/src/testutils.js.map +0 -1
  388. package/dist/src/types/controlProps.js +0 -2
  389. package/dist/src/types/controlProps.js.map +0 -1
  390. package/dist/src/types/index.js +0 -2
  391. package/dist/src/types/index.js.map +0 -1
  392. package/dist/src/ui/menu/hooks/useMenu.js +0 -41
  393. package/dist/src/ui/menu/hooks/useMenu.js.map +0 -1
  394. package/dist/src/ui/menu/index.js +0 -13
  395. package/dist/src/ui/menu/index.js.map +0 -1
  396. package/dist/src/ui/menu/test/createControl.js +0 -30
  397. package/dist/src/ui/menu/test/createControl.js.map +0 -1
  398. package/dist/src/ui/menu/utils/detemineSubmenuTabs/index.js +0 -82
  399. package/dist/src/ui/menu/utils/detemineSubmenuTabs/index.js.map +0 -1
  400. package/dist/src/ui-helper/HeaderCollapseButton/index.js +0 -9
  401. package/dist/src/ui-helper/HeaderCollapseButton/index.js.map +0 -1
  402. package/dist/src/ui-helper/notifications/Error.js +0 -77
  403. package/dist/src/ui-helper/notifications/Error.js.map +0 -1
  404. package/dist/src/ui-helper/notifications/images/background.js +0 -7
  405. package/dist/src/ui-helper/notifications/images/background.js.map +0 -1
  406. package/dist/src/ui-helper/notifications/images/spinner.js +0 -6
  407. package/dist/src/ui-helper/notifications/images/spinner.js.map +0 -1
  408. package/dist/src/ui-helper/notifications/images/under-improvement.js +0 -6
  409. package/dist/src/ui-helper/notifications/images/under-improvement.js.map +0 -1
  410. package/dist/src/utils/findFormControlError/index.js +0 -24
  411. package/dist/src/utils/findFormControlError/index.js.map +0 -1
  412. package/dist/src/utils/hasGroupRequiredFieldsWithValues/index.js +0 -22
  413. package/dist/src/utils/hasGroupRequiredFieldsWithValues/index.js.map +0 -1
  414. package/dist/styles/formControl.module.scss +0 -59
  415. package/dist/tailwind.config.d.ts +0 -1
  416. package/dist/tailwind.config.js +0 -17
  417. package/dist/tailwind.config.js.map +0 -1
  418. package/dist/webpack.common.d.ts +0 -63
  419. package/dist/webpack.common.js +0 -76
  420. package/dist/webpack.common.js.map +0 -1
  421. package/dist/webpack.dev.d.ts +0 -65
  422. package/dist/webpack.dev.js +0 -11
  423. package/dist/webpack.dev.js.map +0 -1
  424. package/dist/webpack.prod.d.ts +0 -65
  425. package/dist/webpack.prod.js +0 -10
  426. package/dist/webpack.prod.js.map +0 -1
  427. /package/dist/{src/assets → assets}/icons/error/Error.d.ts +0 -0
  428. /package/dist/{src/components → components}/Checkbox/Checkbox.d.ts +0 -0
  429. /package/dist/{src/components → components}/Checkbox/index.d.ts +0 -0
  430. /package/dist/{src/components → components}/ControlWrapper/ControlWrapper.d.ts +0 -0
  431. /package/dist/{src/components → components}/ControlWrapper/index.d.ts +0 -0
  432. /package/dist/{src/components → components}/DateRangeGroup/DateRangeGroup.d.ts +0 -0
  433. /package/dist/{src/components → components}/DateRangeGroup/DateRangeGroup.styles.d.ts +0 -0
  434. /package/dist/{src/components → components}/DateRangeGroup/components/CalendarModal.d.ts +0 -0
  435. /package/dist/{src/components → components}/DateRangeGroup/index.d.ts +0 -0
  436. /package/dist/{src/components → components}/ErrorBoundary/ErrorBoundary.d.ts +0 -0
  437. /package/dist/{src/components → components}/FileUploader/FileUploader.d.ts +0 -0
  438. /package/dist/{src/components → components}/FileUploader/index.d.ts +0 -0
  439. /package/dist/{src/components → components}/FormBuilder/FormBuilder.d.ts +0 -0
  440. /package/dist/{src/components → components}/FormBuilder/index.d.ts +0 -0
  441. /package/dist/{src/components → components}/FormBuilder/utils/extractFormControlValues/extractFormControlValues.d.ts +0 -0
  442. /package/dist/{src/components → components}/FormBuilder/utils/extractFormControlValues/index.d.ts +0 -0
  443. /package/dist/{src/components → components}/FormBuilder/utils/jsonToUrlEncoded/index.d.ts +0 -0
  444. /package/dist/{src/components → components}/FormBuilder/utils/jsonToUrlEncoded/jsonToUrlEncoded.d.ts +0 -0
  445. /package/dist/{src/components → components}/FormFooter/FormFooter.d.ts +0 -0
  446. /package/dist/{src/components → components}/FormFooter/components/Switch.d.ts +0 -0
  447. /package/dist/{src/components → components}/FormFooter/index.d.ts +0 -0
  448. /package/dist/{src/components → components}/FormGroup/FormGroup.d.ts +0 -0
  449. /package/dist/{src/components → components}/FormGroup/index.d.ts +0 -0
  450. /package/dist/{src/components → components}/FormList/FormList.d.ts +0 -0
  451. /package/dist/{src/components → components}/FormList/index.d.ts +0 -0
  452. /package/dist/{src/components → components}/GeneralFormGroup/GeneralFormGroup.d.ts +0 -0
  453. /package/dist/{src/components → components}/GeneralFormGroup/index.d.ts +0 -0
  454. /package/dist/{src/components → components}/Group/Group.d.ts +0 -0
  455. /package/dist/{src/components → components}/Group/index.d.ts +0 -0
  456. /package/dist/{src/components → components}/Input/Input.d.ts +0 -0
  457. /package/dist/{src/components → components}/Input/index.d.ts +0 -0
  458. /package/dist/{src/components → components}/Input/input.styles.d.ts +0 -0
  459. /package/dist/{src/components → components}/InputFreeSolo/InputFreeSolo.d.ts +0 -0
  460. /package/dist/{src/components → components}/InputFreeSolo/index.d.ts +0 -0
  461. /package/dist/{src/components → components}/MrnInput/MrnInput.d.ts +0 -0
  462. /package/dist/{src/components → components}/MrnInput/hooks/useMrn.d.ts +0 -0
  463. /package/dist/{src/components → components}/MrnInput/index.d.ts +0 -0
  464. /package/dist/{src/components → components}/MrnInput/services/fetchMrn.d.ts +0 -0
  465. /package/dist/{src/components → components}/MrnInput/ui-helper/Link/Link.d.ts +0 -0
  466. /package/dist/{src/components → components}/MrnInput/utils/mrnUtils/mrnUtils.d.ts +0 -0
  467. /package/dist/{src/components → components}/MrnInput/utils/resolveMrnLinks/resolveMrnLink.d.ts +0 -0
  468. /package/dist/{src/components → components}/MrnInput/utils/resolveNestedQueryLink/resolveNestedQueryLink.d.ts +0 -0
  469. /package/dist/{src/components → components}/MrnInput/utils/urlSearchParam/urlSearchParam.d.ts +0 -0
  470. /package/dist/{src/components → components}/MultiSelect/MultiSelect.d.ts +0 -0
  471. /package/dist/{src/components → components}/MultiSelect/index.d.ts +0 -0
  472. /package/dist/{src/components → components}/MultiSelect/utils/extractSelectedOptionValues/extractSelectedOptionValues.d.ts +0 -0
  473. /package/dist/{src/components → components}/MultiSelect/utils/extractSelectedOptionValues/index.d.ts +0 -0
  474. /package/dist/{src/components → components}/PasswordInput/PasswordInput.d.ts +0 -0
  475. /package/dist/{src/components → components}/PasswordInput/index.d.ts +0 -0
  476. /package/dist/{src/components → components}/QueryControl/QueryControl.d.ts +0 -0
  477. /package/dist/{src/components → components}/QueryControl/data/defaultControls.d.ts +0 -0
  478. /package/dist/{src/components → components}/QueryControl/index.d.ts +0 -0
  479. /package/dist/{src/components → components}/QueryControl/ui-helper/Wrapper/QueryControlWrapper.d.ts +0 -0
  480. /package/dist/{src/components → components}/QueryControl/ui-helper/Wrapper/QueryControlWrapper.styles.d.ts +0 -0
  481. /package/dist/{src/components → components}/QueryControl/ui-helper/Wrapper/index.d.ts +0 -0
  482. /package/dist/{src/components → components}/QueryControl/utils/allControlsHidden/allControlsHidden.d.ts +0 -0
  483. /package/dist/{src/components → components}/QueryControl/utils/allControlsHidden/index.d.ts +0 -0
  484. /package/dist/{src/components → components}/QueryControl/utils/getMatchingControls.d.ts +0 -0
  485. /package/dist/{src/components → components}/QueryControl/utils/hasExpertControl/hasExpertControl.d.ts +0 -0
  486. /package/dist/{src/components → components}/QueryControl/utils/hasExpertControl/index.d.ts +0 -0
  487. /package/dist/{src/components → components}/QueryControl/utils/hideGroup/hideGroup.d.ts +0 -0
  488. /package/dist/{src/components → components}/QueryControl/utils/hideGroup/index.d.ts +0 -0
  489. /package/dist/{src/components → components}/Select/Select.d.ts +0 -0
  490. /package/dist/{src/components → components}/Select/index.d.ts +0 -0
  491. /package/dist/{src/components → components}/Select/utils/getSelectedOption.d.ts +0 -0
  492. /package/dist/{src/components → components}/Textarea/Textarea.d.ts +0 -0
  493. /package/dist/{src/components → components}/Textarea/Textarea.types.d.ts +0 -0
  494. /package/dist/{src/components → components}/Textarea/aiWrapper/aiAction.d.ts +0 -0
  495. /package/dist/{src/components → components}/Textarea/aiWrapper/aiLayout.d.ts +0 -0
  496. /package/dist/{src/components → components}/Textarea/aiWrapper/index.d.ts +0 -0
  497. /package/dist/{src/components → components}/Textarea/aiWrapper/useAi.d.ts +0 -0
  498. /package/dist/{src/components → components}/Textarea/editors/Default.d.ts +0 -0
  499. /package/dist/{src/components → components}/Textarea/editors/Html.d.ts +0 -0
  500. /package/dist/{src/components → components}/Textarea/editors/Json.d.ts +0 -0
  501. /package/dist/{src/components → components}/Textarea/editors/Markdown.d.ts +0 -0
  502. /package/dist/{src/components → components}/Textarea/editors/Richtext.d.ts +0 -0
  503. /package/dist/{src/components → components}/Textarea/index.d.ts +0 -0
  504. /package/dist/{src/components → components}/addressGroup/AddressGroup.d.ts +0 -0
  505. /package/dist/{src/components → components}/addressGroup/index.d.ts +0 -0
  506. /package/dist/{src/components → components}/addressGroup/utils/Countries.d.ts +0 -0
  507. /package/dist/{src/components → components}/states/error/index.d.ts +0 -0
  508. /package/dist/{src/context → context}/FormData.d.ts +0 -0
  509. /package/dist/{src/hooks → hooks}/useDependent/enhanced/useInputDependent/useInputDependent.d.ts +0 -0
  510. /package/dist/{src/hooks → hooks}/useDependent/enhanced/useOptionsGenerator/useOptionsGenerator.d.ts +0 -0
  511. /package/dist/{src/hooks → hooks}/useDependent/useDependent.d.ts +0 -0
  512. /package/dist/{src/hooks → hooks}/useValueGenerator/useValueGenerator.d.ts +0 -0
  513. /package/dist/{src/styles → styles}/Hidden.styles.d.ts +0 -0
  514. /package/dist/{src/styles → styles}/Skeleton.d.ts +0 -0
  515. /package/dist/{src/styles → styles}/Textfield.styles.d.ts +0 -0
  516. /package/dist/{src/testutils.d.ts → testutils.d.ts} +0 -0
  517. /package/dist/{src/types → types}/controlProps.d.ts +0 -0
  518. /package/dist/{src/types → types}/index.d.ts +0 -0
  519. /package/dist/{src/ui → ui}/menu/hooks/useMenu.d.ts +0 -0
  520. /package/dist/{src/ui → ui}/menu/index.d.ts +0 -0
  521. /package/dist/{src/ui → ui}/menu/test/createControl.d.ts +0 -0
  522. /package/dist/{src/ui → ui}/menu/utils/detemineSubmenuTabs/index.d.ts +0 -0
  523. /package/dist/{src/ui-helper → ui-helper}/HeaderCollapseButton/index.d.ts +0 -0
  524. /package/dist/{src/ui-helper → ui-helper}/notifications/Error.d.ts +0 -0
  525. /package/dist/{src/ui-helper → ui-helper}/notifications/images/background.d.ts +0 -0
  526. /package/dist/{src/ui-helper → ui-helper}/notifications/images/spinner.d.ts +0 -0
  527. /package/dist/{src/ui-helper → ui-helper}/notifications/images/under-improvement.d.ts +0 -0
  528. /package/dist/{src/utils → utils}/findFormControlError/index.d.ts +0 -0
  529. /package/dist/{src/utils → utils}/hasGroupRequiredFieldsWithValues/index.d.ts +0 -0
@@ -1,25 +0,0 @@
1
- import React from "react";
2
- export declare const MentionInputElement: React.ForwardRefExoticComponent<Omit<{
3
- elementToAttributes?: (element: import("@udecode/plate-common").TElement) => any;
4
- } & Omit<{
5
- as?: React.ElementType;
6
- asChild?: boolean;
7
- } & Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<any>, "ref"> & {
8
- ref?: React.Ref<any>;
9
- } & import("@udecode/plate-common").BasePluginContext<import("@udecode/plate-common/react").AnyPlatePlugin> & {
10
- useOption: {
11
- <K extends string | number | symbol, F extends any, Args extends Parameters<F & ((...args: any[]) => any)>>(optionKey: K, ...args: Args): F extends (...args: any[]) => any ? ReturnType<F> : F;
12
- <K extends string | number | symbol, F extends any>(optionKey: K): F extends (...args: any[]) => any ? never : F;
13
- };
14
- editor: import("@udecode/plate-common/react").PlateEditor;
15
- plugin: import("@udecode/plate-common/react").EditorPlatePlugin<import("@udecode/plate-common/react").AnyPlatePlugin>;
16
- } & {
17
- className?: string;
18
- nodeProps?: import("@udecode/plate-common").AnyObject;
19
- } & import("@udecode/slate-react").TRenderElementProps<import("@udecode/plate-common").TElement> & {
20
- path: import("slate").Path;
21
- } & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<never>>;
22
- export declare const MENTIONABLES: {
23
- key: string;
24
- text: string;
25
- }[];
@@ -1,89 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { useState } from "react";
3
- import { cn, withRef } from "@udecode/cn";
4
- import { PlateElement } from "@udecode/plate-common/react";
5
- import { getMentionOnSelectItem } from "@udecode/plate-mention";
6
- import { InlineCombobox, InlineComboboxContent, InlineComboboxEmpty, InlineComboboxInput, InlineComboboxItem, } from "./inline-combobox";
7
- const onSelectItem = getMentionOnSelectItem();
8
- export const MentionInputElement = withRef(({ className, ...props }, ref) => {
9
- const { children, editor, element } = props;
10
- const [search, setSearch] = useState("");
11
- return (_jsxs(PlateElement, { as: "span", "data-slate-value": element.value, ref: ref, ...props, children: [_jsxs(InlineCombobox, { element: element, setValue: setSearch, showTrigger: false, trigger: "@", value: search, children: [_jsx("span", { className: cn("inline-block rounded-md bg-muted px-1.5 py-0.5 align-baseline text-sm ring-ring focus-within:ring-2", className), children: _jsx(InlineComboboxInput, {}) }), _jsxs(InlineComboboxContent, { className: "my-1.5", children: [_jsx(InlineComboboxEmpty, { children: "No results found" }), MENTIONABLES.map((item) => (_jsx(InlineComboboxItem, { onClick: () => onSelectItem(editor, item, search), value: item.text, children: item.text }, item.key)))] })] }), children] }));
12
- });
13
- export const MENTIONABLES = [
14
- { key: "0", text: "Aayla Secura" },
15
- { key: "1", text: "Adi Gallia" },
16
- {
17
- key: "2",
18
- text: "Admiral Dodd Rancit",
19
- },
20
- {
21
- key: "3",
22
- text: "Admiral Firmus Piett",
23
- },
24
- {
25
- key: "4",
26
- text: "Admiral Gial Ackbar",
27
- },
28
- { key: "5", text: "Admiral Ozzel" },
29
- { key: "6", text: "Admiral Raddus" },
30
- {
31
- key: "7",
32
- text: "Admiral Terrinald Screed",
33
- },
34
- { key: "8", text: "Admiral Trench" },
35
- {
36
- key: "9",
37
- text: "Admiral U.O. Statura",
38
- },
39
- { key: "10", text: "Agen Kolar" },
40
- { key: "11", text: "Agent Kallus" },
41
- {
42
- key: "12",
43
- text: "Aiolin and Morit Astarte",
44
- },
45
- { key: "13", text: "Aks Moe" },
46
- { key: "14", text: "Almec" },
47
- { key: "15", text: "Alton Kastle" },
48
- { key: "16", text: "Amee" },
49
- { key: "17", text: "AP-5" },
50
- { key: "18", text: "Armitage Hux" },
51
- { key: "19", text: "Artoo" },
52
- { key: "20", text: "Arvel Crynyd" },
53
- { key: "21", text: "Asajj Ventress" },
54
- { key: "22", text: "Aurra Sing" },
55
- { key: "23", text: "AZI-3" },
56
- { key: "24", text: "Bala-Tik" },
57
- { key: "25", text: "Barada" },
58
- { key: "26", text: "Bargwill Tomder" },
59
- { key: "27", text: "Baron Papanoida" },
60
- { key: "28", text: "Barriss Offee" },
61
- { key: "29", text: "Baze Malbus" },
62
- { key: "30", text: "Bazine Netal" },
63
- { key: "31", text: "BB-8" },
64
- { key: "32", text: "BB-9E" },
65
- { key: "33", text: "Ben Quadinaros" },
66
- { key: "34", text: "Berch Teller" },
67
- { key: "35", text: "Beru Lars" },
68
- { key: "36", text: "Bib Fortuna" },
69
- {
70
- key: "37",
71
- text: "Biggs Darklighter",
72
- },
73
- { key: "38", text: "Black Krrsantan" },
74
- { key: "39", text: "Bo-Katan Kryze" },
75
- { key: "40", text: "Boba Fett" },
76
- { key: "41", text: "Bobbajo" },
77
- { key: "42", text: "Bodhi Rook" },
78
- { key: "43", text: "Borvo the Hutt" },
79
- { key: "44", text: "Boss Nass" },
80
- { key: "45", text: "Bossk" },
81
- {
82
- key: "46",
83
- text: "Breha Antilles-Organa",
84
- },
85
- { key: "47", text: "Bren Derlin" },
86
- { key: "48", text: "Brendol Hux" },
87
- { key: "49", text: "BT-1" },
88
- ];
89
- //# sourceMappingURL=mention-input-element.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"mention-input-element.js","sourceRoot":"","sources":["../../../../../src/components/plate/components/mention-input-element.tsx"],"names":[],"mappings":";AAAA,OAAc,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,EAAE,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAC3D,OAAO,EAAE,sBAAsB,EAAE,MAAM,wBAAwB,CAAC;AAEhE,OAAO,EACL,cAAc,EACd,qBAAqB,EACrB,mBAAmB,EACnB,mBAAmB,EACnB,kBAAkB,GACnB,MAAM,mBAAmB,CAAC;AAE3B,MAAM,YAAY,GAAG,sBAAsB,EAAE,CAAC;AAE9C,MAAM,CAAC,MAAM,mBAAmB,GAA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B,EAAE;IACrC,EAAE,GAAG,EAAE,IAAI,EAAE,IAAI,EAAE,WAAW,EAAE;IAChC,EAAE,GAAG,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE;IAC5B;QACE,GAAG,EAAE,IAAI;QACT,IAAI,EAAE,uBAAuB;KAC9B;IACD,EAAE,GAAG,EAAE,IAAI,EAAE,IAAI,EAAE,aAAa,EAAE;IAClC,EAAE,GAAG,EAAE,IAAI,EAAE,IAAI,EAAE,aAAa,EAAE;IAClC,EAAE,GAAG,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE;CAC5B,CAAC"}
@@ -1,15 +0,0 @@
1
- import React from "react";
2
- export declare const OutdentToolbarButton: React.ForwardRefExoticComponent<Omit<{
3
- tooltip?: React.ReactNode;
4
- tooltipContentProps?: Omit<React.ComponentPropsWithoutRef<React.ForwardRefExoticComponent<import("@radix-ui/react-tooltip").TooltipContentProps & React.RefAttributes<HTMLDivElement>>>, "children">;
5
- tooltipProps?: Omit<React.ComponentPropsWithoutRef<React.FC<import("@radix-ui/react-tooltip").TooltipProps>>, "children">;
6
- } & Omit<{
7
- isDropdown?: boolean;
8
- pressed?: boolean;
9
- } & Omit<Omit<Omit<import("@radix-ui/react-toolbar").ToolbarToggleItemProps & React.RefAttributes<HTMLButtonElement>, "ref"> & import("class-variance-authority").VariantProps<(props?: {
10
- size?: "default" | "sm" | "lg";
11
- variant?: "outline" | "default";
12
- } & import("class-variance-authority/types").ClassProp) => string> & React.RefAttributes<HTMLButtonElement>, "ref">, "value" | "asChild"> & import("class-variance-authority").VariantProps<(props?: {
13
- size?: "default" | "sm" | "lg";
14
- variant?: "outline" | "default";
15
- } & import("class-variance-authority/types").ClassProp) => string> & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
@@ -1,10 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import { withRef } from "@udecode/cn";
3
- import { useOutdentButton } from "@udecode/plate-indent/react";
4
- import { Icons } from "../icons";
5
- import { ToolbarButton } from "./toolbar";
6
- export const OutdentToolbarButton = withRef((rest, ref) => {
7
- const { props } = useOutdentButton();
8
- return (_jsx(ToolbarButton, { ref: ref, tooltip: "Outdent", ...props, ...rest, children: _jsx(Icons.outdent, {}) }));
9
- });
10
- //# sourceMappingURL=outdent-toolbar-button.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"outdent-toolbar-button.js","sourceRoot":"","sources":["../../../../../src/components/plate/components/outdent-toolbar-button.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AACtC,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAG/D,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAEjC,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAE1C,MAAM,CAAC,MAAM,oBAAoB,GAAG,OAAO,CACzC,CAAC,IAAI,EAAE,GAAG,EAAE,EAAE;IACZ,MAAM,EAAE,KAAK,EAAE,GAAG,gBAAgB,EAAE,CAAC;IAErC,OAAO,CACL,KAAC,aAAa,IAAC,GAAG,EAAE,GAAG,EAAE,OAAO,EAAC,SAAS,KAAK,KAAK,KAAM,IAAI,YAC5D,KAAC,KAAK,CAAC,OAAO,KAAG,GACH,CACjB,CAAC;AACJ,CAAC,CACF,CAAC"}
@@ -1,20 +0,0 @@
1
- export declare const ParagraphElement: import("react").ForwardRefExoticComponent<Omit<{
2
- elementToAttributes?: (element: import("@udecode/plate-common").TElement) => any;
3
- } & Omit<{
4
- as?: React.ElementType;
5
- asChild?: boolean;
6
- } & Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import("react").RefAttributes<any>, "ref"> & {
7
- ref?: import("react").Ref<any>;
8
- } & import("@udecode/plate-common").BasePluginContext<import("@udecode/plate-common/react").AnyPlatePlugin> & {
9
- useOption: {
10
- <K extends string | number | symbol, F extends any, Args extends Parameters<F & ((...args: any[]) => any)>>(optionKey: K, ...args: Args): F extends (...args: any[]) => any ? ReturnType<F> : F;
11
- <K extends string | number | symbol, F extends any>(optionKey: K): F extends (...args: any[]) => any ? never : F;
12
- };
13
- editor: import("@udecode/plate-common/react").PlateEditor;
14
- plugin: import("@udecode/plate-common/react").EditorPlatePlugin<import("@udecode/plate-common/react").AnyPlatePlugin>;
15
- } & {
16
- className?: string;
17
- nodeProps?: import("@udecode/plate-common").AnyObject;
18
- } & import("@udecode/slate-react").TRenderElementProps<import("@udecode/plate-common").TElement> & {
19
- path: import("slate").Path;
20
- } & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<any>>;
@@ -1,4 +0,0 @@
1
- import { withCn } from "@udecode/cn";
2
- import { PlateElement } from "@udecode/plate-common/react";
3
- export const ParagraphElement = withCn(PlateElement, "m-0 px-0 py-1");
4
- //# sourceMappingURL=paragraph-element.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"paragraph-element.js","sourceRoot":"","sources":["../../../../../src/components/plate/components/paragraph-element.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAE3D,MAAM,CAAC,MAAM,gBAAgB,GAAG,MAAM,CAAC,YAAY,EAAE,eAAe,CAAC,CAAC"}
@@ -1,6 +0,0 @@
1
- import React from "react";
2
- import type { PlaceholderProps } from "@udecode/plate-common/react";
3
- export declare const Placeholder: (props: PlaceholderProps) => any;
4
- export declare const withPlaceholder: (Component: any, props: Omit<PlaceholderProps, "editor" | "className" | "path" | "useOption" | "plugin" | "nodeProps" | keyof import("@udecode/slate-react").TRenderElementProps<import("@udecode/plate-common").TElement> | keyof import("@udecode/plate-common").BasePluginContext<import("@udecode/plate-common").PluginConfig>>) => (childrenProps: import("@udecode/plate-common/react").PlateRenderElementProps) => React.JSX.Element;
5
- export declare const withPlaceholdersPrimitive: (components: any, options: import("@udecode/plate-common/react").CreateHOCOptions<PlaceholderProps> | import("@udecode/plate-common/react").CreateHOCOptions<PlaceholderProps>[]) => any;
6
- export declare const withPlaceholders: (components: any) => any;
@@ -1,37 +0,0 @@
1
- import React from "react";
2
- import { cn } from "@udecode/cn";
3
- import { createNodeHOC, createNodesHOC, ParagraphPlugin, usePlaceholderState, } from "@udecode/plate-common/react";
4
- import { HEADING_KEYS } from "@udecode/plate-heading";
5
- export const Placeholder = (props) => {
6
- const { children, nodeProps, placeholder } = props;
7
- const { enabled } = usePlaceholderState(props);
8
- return React.Children.map(children, (child) => {
9
- return React.cloneElement(child, {
10
- className: child.props.className,
11
- nodeProps: {
12
- ...nodeProps,
13
- className: cn(enabled &&
14
- "before:absolute before:cursor-text before:opacity-30 before:content-[attr(placeholder)]"),
15
- placeholder,
16
- },
17
- });
18
- });
19
- };
20
- export const withPlaceholder = createNodeHOC(Placeholder);
21
- export const withPlaceholdersPrimitive = createNodesHOC(Placeholder);
22
- export const withPlaceholders = (components) => withPlaceholdersPrimitive(components, [
23
- {
24
- hideOnBlur: true,
25
- key: ParagraphPlugin.key,
26
- placeholder: "Type a paragraph",
27
- query: {
28
- maxLevel: 1,
29
- },
30
- },
31
- {
32
- hideOnBlur: false,
33
- key: HEADING_KEYS.h1,
34
- placeholder: "Untitled",
35
- },
36
- ]);
37
- //# sourceMappingURL=placeholder.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"placeholder.js","sourceRoot":"","sources":["../../../../../src/components/plate/components/placeholder.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;AACjC,OAAO,EACL,aAAa,EACb,cAAc,EACd,eAAe,EACf,mBAAmB,GACpB,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAItD,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,KAAuB,EAAE,EAAE;IACrD,MAAM,EAAE,QAAQ,EAAE,SAAS,EAAE,WAAW,EAAE,GAAG,KAAK,CAAC;IAEnD,MAAM,EAAE,OAAO,EAAE,GAAG,mBAAmB,CAAC,KAAK,CAAC,CAAC;IAE/C,OAAO,KAAK,CAAC,QAAQ,CAAC,GAAG,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE,EAAE;QAC5C,OAAO,KAAK,CAAC,YAAY,CAAC,KAAK,EAAE;YAC/B,SAAS,EAAE,KAAK,CAAC,KAAK,CAAC,SAAS;YAChC,SAAS,EAAE;gBACT,GAAG,SAAS;gBACZ,SAAS,EAAE,EAAE,CACX,OAAO;oBACL,yFAAyF,CAC5F;gBACD,WAAW;aACZ;SACF,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,eAAe,GAAG,aAAa,CAAC,WAAW,CAAC,CAAC;AAE1D,MAAM,CAAC,MAAM,yBAAyB,GAAG,cAAc,CAAC,WAAW,CAAC,CAAC;AAErE,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,UAAe,EAAE,EAAE,CAClD,yBAAyB,CAAC,UAAU,EAAE;IACpC;QACE,UAAU,EAAE,IAAI;QAChB,GAAG,EAAE,eAAe,CAAC,GAAG;QACxB,WAAW,EAAE,kBAAkB;QAC/B,KAAK,EAAE;YACL,QAAQ,EAAE,CAAC;SACZ;KACF;IACD;QACE,UAAU,EAAE,KAAK;QACjB,GAAG,EAAE,YAAY,CAAC,EAAE;QACpB,WAAW,EAAE,UAAU;KACxB;CACF,CAAC,CAAC"}
@@ -1,7 +0,0 @@
1
- import * as PopoverPrimitive from "@radix-ui/react-popover";
2
- import * as React from "react";
3
- export declare const Popover: React.FC<PopoverPrimitive.PopoverProps>;
4
- export declare const PopoverTrigger: React.ForwardRefExoticComponent<PopoverPrimitive.PopoverTriggerProps & React.RefAttributes<HTMLButtonElement>>;
5
- export declare const PopoverAnchor: React.ForwardRefExoticComponent<PopoverPrimitive.PopoverAnchorProps & React.RefAttributes<HTMLDivElement>>;
6
- export declare const popoverVariants: (props?: import("class-variance-authority/types").ClassProp) => string;
7
- export declare const PopoverContent: React.ForwardRefExoticComponent<Omit<PopoverPrimitive.PopoverContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
@@ -1,11 +0,0 @@
1
- "use client";
2
- import { jsx as _jsx } from "react/jsx-runtime";
3
- import * as PopoverPrimitive from "@radix-ui/react-popover";
4
- import { cn, withRef } from "@udecode/cn";
5
- import { cva } from "class-variance-authority";
6
- export const Popover = PopoverPrimitive.Root;
7
- export const PopoverTrigger = PopoverPrimitive.Trigger;
8
- export const PopoverAnchor = PopoverPrimitive.Anchor;
9
- export const popoverVariants = cva("w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 print:hidden bg-white");
10
- export const PopoverContent = withRef(({ className, style, align = "center", sideOffset = 4, ...props }, ref) => (_jsx(PopoverPrimitive.Portal, { children: _jsx(PopoverPrimitive.Content, { ref: ref, align: align, sideOffset: sideOffset, className: cn(popoverVariants(), className), style: { zIndex: 1000, ...style }, ...props }) })));
11
- //# sourceMappingURL=popover.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"popover.js","sourceRoot":"","sources":["../../../../../src/components/plate/components/popover.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,KAAK,gBAAgB,MAAM,yBAAyB,CAAC;AAC5D,OAAO,EAAE,EAAE,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,EAAE,GAAG,EAAE,MAAM,0BAA0B,CAAC;AAG/C,MAAM,CAAC,MAAM,OAAO,GAAG,gBAAgB,CAAC,IAAI,CAAC;AAC7C,MAAM,CAAC,MAAM,cAAc,GAAG,gBAAgB,CAAC,OAAO,CAAC;AACvD,MAAM,CAAC,MAAM,aAAa,GAAG,gBAAgB,CAAC,MAAM,CAAC;AAErD,MAAM,CAAC,MAAM,eAAe,GAAG,GAAG,CAChC,6bAA6b,CAC9b,CAAC;AAEF,MAAM,CAAC,MAAM,cAAc,GAAG,OAAO,CACnC,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,KAAK,GAAG,QAAQ,EAAE,UAAU,GAAG,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE,CAAC,CACzE,KAAC,gBAAgB,CAAC,MAAM,cACtB,KAAC,gBAAgB,CAAC,OAAO,IACvB,GAAG,EAAE,GAAG,EACR,KAAK,EAAE,KAAK,EACZ,UAAU,EAAE,UAAU,EACtB,SAAS,EAAE,EAAE,CAAC,eAAe,EAAE,EAAE,SAAS,CAAC,EAC3C,KAAK,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,KAAK,EAAE,KAC7B,KAAK,GACT,GACsB,CAC3B,CACF,CAAC"}
@@ -1,40 +0,0 @@
1
- import React from "react";
2
- export declare const mediaResizeHandleVariants: (props?: {
3
- direction?: "left" | "right";
4
- } & import("class-variance-authority/types").ClassProp) => string;
5
- export declare const ResizeHandle: React.ForwardRefExoticComponent<Omit<{
6
- as?: React.ElementType;
7
- asChild?: boolean;
8
- className?: string;
9
- options?: import("@udecode/plate-resizable").ResizeHandleOptions | undefined;
10
- setProps?: ((hookProps: {
11
- onMouseDown: React.MouseEventHandler<Element>;
12
- onMouseOut: () => void;
13
- onMouseOver: () => void;
14
- onTouchEnd: () => void;
15
- onTouchMove: () => void;
16
- onTouchStart: React.TouchEventHandler<Element>;
17
- }) => Omit<React.HTMLAttributes<HTMLDivElement>, "onResize">) | undefined;
18
- state?: {
19
- direction: import("@udecode/plate-resizable").ResizeDirection;
20
- initialPosition: number;
21
- initialSize: number;
22
- isHorizontal: boolean;
23
- isResizing: boolean;
24
- readOnly: boolean;
25
- setInitialPosition: React.Dispatch<React.SetStateAction<number>>;
26
- setInitialSize: React.Dispatch<React.SetStateAction<number>>;
27
- setIsResizing: React.Dispatch<React.SetStateAction<boolean>>;
28
- onHover: (() => void) | undefined;
29
- onHoverEnd: (() => void) | undefined;
30
- onMouseDown: React.MouseEventHandler<Element> | undefined;
31
- onResize: (event: import("@udecode/plate-resizable").ResizeEvent) => void;
32
- onTouchStart: React.TouchEventHandler<Element> | undefined;
33
- } | undefined;
34
- style?: React.CSSProperties;
35
- } & Omit<React.HTMLAttributes<HTMLDivElement>, "onResize"> & React.RefAttributes<any>, "ref"> & React.RefAttributes<any>>;
36
- export declare const Resizable: React.ForwardRefExoticComponent<Omit<{
37
- options: import("@udecode/plate-resizable").ResizableOptions;
38
- } & React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>, "ref"> & import("class-variance-authority").VariantProps<(props?: {
39
- align?: "left" | "right" | "center";
40
- } & import("class-variance-authority/types").ClassProp) => string> & React.RefAttributes<HTMLDivElement>>;
@@ -1,38 +0,0 @@
1
- "use client";
2
- import { jsx as _jsx } from "react/jsx-runtime";
3
- import { cn, withRef, withVariants } from "@udecode/cn";
4
- import { Resizable as ResizablePrimitive, ResizeHandle as ResizeHandlePrimitive, } from "@udecode/plate-resizable";
5
- import { cva } from "class-variance-authority";
6
- export const mediaResizeHandleVariants = cva(cn("top-0 flex w-6 select-none flex-col justify-center", "after:flex after:h-16 after:w-[3px] after:rounded-[6px] after:bg-ring after:opacity-0 after:content-['_'] group-hover:after:opacity-100"), {
7
- variants: {
8
- direction: {
9
- left: "-left-3 -ml-3 pl-3",
10
- right: "-right-3 -mr-3 items-end pr-3",
11
- },
12
- },
13
- });
14
- const resizeHandleVariants = cva(cn("absolute z-40"), {
15
- variants: {
16
- direction: {
17
- bottom: "w-full cursor-row-resize",
18
- left: "h-full cursor-col-resize",
19
- right: "h-full cursor-col-resize",
20
- top: "w-full cursor-row-resize",
21
- },
22
- },
23
- });
24
- const ResizeHandleVariants = withVariants(ResizeHandlePrimitive, resizeHandleVariants, ["direction"]);
25
- export const ResizeHandle = withRef((props, ref) => (_jsx(ResizeHandleVariants, { direction: props.options?.direction, ref: ref, ...props })));
26
- const resizableVariants = cva("", {
27
- variants: {
28
- align: {
29
- center: "mx-auto",
30
- left: "mr-auto",
31
- right: "ml-auto",
32
- },
33
- },
34
- });
35
- export const Resizable = withVariants(ResizablePrimitive, resizableVariants, [
36
- "align",
37
- ]);
38
- //# sourceMappingURL=resizable.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"resizable.js","sourceRoot":"","sources":["../../../../../src/components/plate/components/resizable.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAGb,OAAO,EAAE,EAAE,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AACxD,OAAO,EACL,SAAS,IAAI,kBAAkB,EAC/B,YAAY,IAAI,qBAAqB,GACtC,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,GAAG,EAAE,MAAM,0BAA0B,CAAC;AAE/C,MAAM,CAAC,MAAM,yBAAyB,GAAG,GAAG,CAC1C,EAAE,CACA,oDAAoD,EACpD,yIAAyI,CAC1I,EACD;IACE,QAAQ,EAAE;QACR,SAAS,EAAE;YACT,IAAI,EAAE,oBAAoB;YAC1B,KAAK,EAAE,+BAA+B;SACvC;KACF;CACF,CACF,CAAC;AAEF,MAAM,oBAAoB,GAAG,GAAG,CAAC,EAAE,CAAC,eAAe,CAAC,EAAE;IACpD,QAAQ,EAAE;QACR,SAAS,EAAE;YACT,MAAM,EAAE,0BAA0B;YAClC,IAAI,EAAE,0BAA0B;YAChC,KAAK,EAAE,0BAA0B;YACjC,GAAG,EAAE,0BAA0B;SAChC;KACF;CACF,CAAC,CAAC;AAEH,MAAM,oBAAoB,GAAG,YAAY,CACvC,qBAAqB,EACrB,oBAAoB,EACpB,CAAC,WAAW,CAAC,CACd,CAAC;AAEF,MAAM,CAAC,MAAM,YAAY,GAAG,OAAO,CACjC,CAAC,KAAK,EAAE,GAAG,EAAE,EAAE,CAAC,CACd,KAAC,oBAAoB,IACnB,SAAS,EAAE,KAAK,CAAC,OAAO,EAAE,SAAS,EACnC,GAAG,EAAE,GAAG,KACJ,KAAK,GACT,CACH,CACF,CAAC;AAEF,MAAM,iBAAiB,GAAG,GAAG,CAAC,EAAE,EAAE;IAChC,QAAQ,EAAE;QACR,KAAK,EAAE;YACL,MAAM,EAAE,SAAS;YACjB,IAAI,EAAE,SAAS;YACf,KAAK,EAAE,SAAS;SACjB;KACF;CACF,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,SAAS,GAAG,YAAY,CAAC,kBAAkB,EAAE,iBAAiB,EAAE;IAC3E,OAAO;CACR,CAAC,CAAC"}
@@ -1,4 +0,0 @@
1
- import * as SeparatorPrimitive from "@radix-ui/react-separator";
2
- export declare const Separator: import("react").ForwardRefExoticComponent<Omit<Omit<SeparatorPrimitive.SeparatorProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("class-variance-authority").VariantProps<(props?: {
3
- orientation?: "horizontal" | "vertical";
4
- } & import("class-variance-authority/types").ClassProp) => string> & import("react").RefAttributes<HTMLDivElement>>;
@@ -1,20 +0,0 @@
1
- "use client";
2
- import * as SeparatorPrimitive from "@radix-ui/react-separator";
3
- import { withProps, withVariants } from "@udecode/cn";
4
- import { cva } from "class-variance-authority";
5
- const separatorVariants = cva("shrink-0 bg-border", {
6
- defaultVariants: {
7
- orientation: "horizontal",
8
- },
9
- variants: {
10
- orientation: {
11
- horizontal: "h-px w-full",
12
- vertical: "h-full w-px",
13
- },
14
- },
15
- });
16
- export const Separator = withVariants(withProps(SeparatorPrimitive.Root, {
17
- decorative: true,
18
- orientation: "horizontal",
19
- }), separatorVariants);
20
- //# sourceMappingURL=separator.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"separator.js","sourceRoot":"","sources":["../../../../../src/components/plate/components/separator.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;AAEb,OAAO,KAAK,kBAAkB,MAAM,2BAA2B,CAAC;AAChE,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AACtD,OAAO,EAAE,GAAG,EAAE,MAAM,0BAA0B,CAAC;AAE/C,MAAM,iBAAiB,GAAG,GAAG,CAAC,oBAAoB,EAAE;IAClD,eAAe,EAAE;QACf,WAAW,EAAE,YAAY;KAC1B;IACD,QAAQ,EAAE;QACR,WAAW,EAAE;YACX,UAAU,EAAE,aAAa;YACzB,QAAQ,EAAE,aAAa;SACxB;KACF;CACF,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,SAAS,GAAG,YAAY,CACnC,SAAS,CAAC,kBAAkB,CAAC,IAAI,EAAE;IACjC,UAAU,EAAE,IAAI;IAChB,WAAW,EAAE,YAAY;CAC1B,CAAC,EACF,iBAAiB,CAClB,CAAC"}
@@ -1,22 +0,0 @@
1
- import React from "react";
2
- import type { PlateEditor } from "@udecode/plate-common/react";
3
- export declare const SlashInputElement: React.ForwardRefExoticComponent<Omit<{
4
- elementToAttributes?: (element: import("@udecode/plate-common").TElement) => any;
5
- } & Omit<{
6
- as?: React.ElementType;
7
- asChild?: boolean;
8
- } & Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<any>, "ref"> & {
9
- ref?: React.Ref<any>;
10
- } & import("@udecode/plate-common").BasePluginContext<import("@udecode/plate-common/react").AnyPlatePlugin> & {
11
- useOption: {
12
- <K extends string | number | symbol, F extends any, Args extends Parameters<F & ((...args: any[]) => any)>>(optionKey: K, ...args: Args): F extends (...args: any[]) => any ? ReturnType<F> : F;
13
- <K extends string | number | symbol, F extends any>(optionKey: K): F extends (...args: any[]) => any ? never : F;
14
- };
15
- editor: PlateEditor;
16
- plugin: import("@udecode/plate-common/react").EditorPlatePlugin<import("@udecode/plate-common/react").AnyPlatePlugin>;
17
- } & {
18
- className?: string;
19
- nodeProps?: import("@udecode/plate-common").AnyObject;
20
- } & import("@udecode/slate-react").TRenderElementProps<import("@udecode/plate-common").TElement> & {
21
- path: import("slate").Path;
22
- } & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<never>>;
@@ -1,64 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { withRef } from "@udecode/cn";
3
- import { PlateElement } from "@udecode/plate-common/react";
4
- import { DatePlugin } from "@udecode/plate-date/react";
5
- import { HEADING_KEYS } from "@udecode/plate-heading";
6
- import { ListStyleType, toggleIndentList } from "@udecode/plate-indent-list";
7
- import { Icons } from "../icons";
8
- import { InlineCombobox, InlineComboboxContent, InlineComboboxEmpty, InlineComboboxInput, InlineComboboxItem, } from "./inline-combobox";
9
- const rules = [
10
- {
11
- icon: Icons.h1,
12
- onSelect: (editor) => {
13
- editor.tf.toggle.block({ type: HEADING_KEYS.h1 });
14
- },
15
- value: "Heading 1",
16
- },
17
- {
18
- icon: Icons.h2,
19
- onSelect: (editor) => {
20
- editor.tf.toggle.block({ type: HEADING_KEYS.h2 });
21
- },
22
- value: "Heading 2",
23
- },
24
- {
25
- icon: Icons.h3,
26
- onSelect: (editor) => {
27
- editor.tf.toggle.block({ type: HEADING_KEYS.h3 });
28
- },
29
- value: "Heading 3",
30
- },
31
- {
32
- icon: Icons.ul,
33
- keywords: ["ul", "unordered list"],
34
- onSelect: (editor) => {
35
- toggleIndentList(editor, {
36
- listStyleType: ListStyleType.Disc,
37
- });
38
- },
39
- value: "Bulleted list",
40
- },
41
- {
42
- icon: Icons.ol,
43
- keywords: ["ol", "ordered list"],
44
- onSelect: (editor) => {
45
- toggleIndentList(editor, {
46
- listStyleType: ListStyleType.Decimal,
47
- });
48
- },
49
- value: "Numbered list",
50
- },
51
- {
52
- icon: Icons.add,
53
- keywords: ["inline", "date"],
54
- onSelect: (editor) => {
55
- editor.getTransforms(DatePlugin).insert.date();
56
- },
57
- value: "Date",
58
- },
59
- ];
60
- export const SlashInputElement = withRef(({ className, ...props }, ref) => {
61
- const { children, editor, element } = props;
62
- return (_jsxs(PlateElement, { as: "span", "data-slate-value": element.value, ref: ref, ...props, children: [_jsxs(InlineCombobox, { element: element, trigger: "/", children: [_jsx(InlineComboboxInput, {}), _jsxs(InlineComboboxContent, { children: [_jsx(InlineComboboxEmpty, { children: "No matching commands found" }), rules.map(({ icon: Icon, keywords, onSelect, value }) => (_jsxs(InlineComboboxItem, { keywords: keywords, onClick: () => onSelect(editor), value: value, children: [_jsx(Icon, { "aria-hidden": true, className: "mr-2 size-4" }), value] }, value)))] })] }), children] }));
63
- });
64
- //# sourceMappingURL=slash-input-element.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"slash-input-element.js","sourceRoot":"","sources":["../../../../../src/components/plate/components/slash-input-element.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AACtC,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAC3D,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AACtD,OAAO,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAG7E,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAEjC,OAAO,EACL,cAAc,EACd,qBAAqB,EACrB,mBAAmB,EACnB,mBAAmB,EACnB,kBAAkB,GACnB,MAAM,mBAAmB,CAAC;AAY3B,MAAM,KAAK,GAAuB;IAChC;QACE,IAAI,EAAE,KAAK,CAAC,EAAE;QACd,QAAQ,EAAE,CAAC,MAAM,EAAE,EAAE;YACnB,MAAM,CAAC,EAAE,CAAC,MAAM,CAAC,KAA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,CAAC,aAAa,CAAC,UAAU,CAAC,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC;QACjD,CAAC;QACD,KAAK,EAAE,MAAM;KACd;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,iBAAiB,GAAG,OAAO,CACtC,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE;IAC/B,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,GAAG,KAAK,CAAC;IAE5C,OAAO,CACL,MAAC,YAAY,IACX,EAAE,EAAC,MAAM,sBACS,OAAO,CAAC,KAAK,EAC/B,GAAG,EAAE,GAAG,KACJ,KAAK,aAET,MAAC,cAAc,IAAC,OAAO,EAAE,OAAO,EAAE,OAAO,EAAC,GAAG,aAC3C,KAAC,mBAAmB,KAAG,EAEvB,MAAC,qBAAqB,eACpB,KAAC,mBAAmB,6CAEE,EAErB,KAAK,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CACxD,MAAC,kBAAkB,IAEjB,QAAQ,EAAE,QAAQ,EAClB,OAAO,EAAE,GAAG,EAAE,CAAC,QAAQ,CAAC,MAAM,CAAC,EAC/B,KAAK,EAAE,KAAK,aAEZ,KAAC,IAAI,yBAAa,SAAS,EAAC,aAAa,GAAG,EAC3C,KAAK,KAND,KAAK,CAOS,CACtB,CAAC,IACoB,IACT,EAEhB,QAAQ,IACI,CAChB,CAAC;AACJ,CAAC,CACF,CAAC"}
@@ -1,47 +0,0 @@
1
- import React from "react";
2
- export declare const TableCellElement: React.ForwardRefExoticComponent<Omit<{
3
- elementToAttributes?: (element: import("@udecode/plate-common").TElement) => any;
4
- } & Omit<{
5
- as?: React.ElementType;
6
- asChild?: boolean;
7
- } & Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<any>, "ref"> & {
8
- ref?: React.Ref<any>;
9
- } & import("@udecode/plate-common").BasePluginContext<import("@udecode/plate-common/react").AnyPlatePlugin> & {
10
- useOption: {
11
- <K extends string | number | symbol, F extends any, Args extends Parameters<F & ((...args: any[]) => any)>>(optionKey: K, ...args: Args): F extends (...args: any[]) => any ? ReturnType<F> : F;
12
- <K extends string | number | symbol, F extends any>(optionKey: K): F extends (...args: any[]) => any ? never : F;
13
- };
14
- editor: import("@udecode/plate-common/react").PlateEditor;
15
- plugin: import("@udecode/plate-common/react").EditorPlatePlugin<import("@udecode/plate-common/react").AnyPlatePlugin>;
16
- } & {
17
- className?: string;
18
- nodeProps?: import("@udecode/plate-common").AnyObject;
19
- } & import("@udecode/slate-react").TRenderElementProps<import("@udecode/plate-common").TElement> & {
20
- path: import("slate").Path;
21
- } & React.RefAttributes<HTMLDivElement>, "ref"> & {
22
- hideBorder?: boolean;
23
- isHeader?: boolean;
24
- } & React.RefAttributes<never>>;
25
- export declare const TableCellHeaderElement: React.ForwardRefExoticComponent<Omit<Omit<{
26
- elementToAttributes?: (element: import("@udecode/plate-common").TElement) => any;
27
- } & Omit<{
28
- as?: React.ElementType;
29
- asChild?: boolean;
30
- } & Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<any>, "ref"> & {
31
- ref?: React.Ref<any>;
32
- } & import("@udecode/plate-common").BasePluginContext<import("@udecode/plate-common/react").AnyPlatePlugin> & {
33
- useOption: {
34
- <K extends string | number | symbol, F extends any, Args extends Parameters<F & ((...args: any[]) => any)>>(optionKey: K, ...args: Args): F extends (...args: any[]) => any ? ReturnType<F> : F;
35
- <K extends string | number | symbol, F extends any>(optionKey: K): F extends (...args: any[]) => any ? never : F;
36
- };
37
- editor: import("@udecode/plate-common/react").PlateEditor;
38
- plugin: import("@udecode/plate-common/react").EditorPlatePlugin<import("@udecode/plate-common/react").AnyPlatePlugin>;
39
- } & {
40
- className?: string;
41
- nodeProps?: import("@udecode/plate-common").AnyObject;
42
- } & import("@udecode/slate-react").TRenderElementProps<import("@udecode/plate-common").TElement> & {
43
- path: import("slate").Path;
44
- } & React.RefAttributes<HTMLDivElement>, "ref"> & {
45
- hideBorder?: boolean;
46
- isHeader?: boolean;
47
- } & React.RefAttributes<never>, "ref"> & React.RefAttributes<never>>;
@@ -1,35 +0,0 @@
1
- import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { cn, withProps, withRef } from "@udecode/cn";
3
- import { PlateElement } from "@udecode/plate-common/react";
4
- import { useTableCellElement, useTableCellElementResizable,
5
- // @ts-ignore
6
- useTableCellElementResizableState,
7
- // @ts-ignore
8
- useTableCellElementState, } from "@udecode/plate-table/react";
9
- import { ResizeHandle } from "./resizable";
10
- export const TableCellElement = withRef(({ children, className, hideBorder, isHeader, style, ...props }, ref) => {
11
- const { element } = props;
12
- const { borders, colIndex, colSpan, hovered, hoveredLeft, isSelectingCell, readOnly, rowIndex, rowSize, selected, } = useTableCellElementState();
13
- const { props: cellProps } = useTableCellElement({ element: props.element });
14
- const resizableState = useTableCellElementResizableState({
15
- colIndex,
16
- colSpan,
17
- rowIndex,
18
- });
19
- const { bottomProps, hiddenLeft, leftProps, rightProps } = useTableCellElementResizable(resizableState);
20
- const Cell = isHeader ? "th" : "td";
21
- return (_jsx(PlateElement, { asChild: true, className: cn("relative h-full overflow-visible border-none bg-background p-0", hideBorder && "before:border-none", element.background ? "bg-[--cellBackground]" : "bg-background", !hideBorder &&
22
- cn(isHeader && "text-left [&_>_*]:m-0", "before:size-full", selected && "before:z-10 before:bg-muted", "before:absolute before:box-border before:select-none before:content-['']", borders &&
23
- cn(borders.bottom?.size &&
24
- "before:border-b before:border-b-border", borders.right?.size && "before:border-r before:border-r-border", borders.left?.size && "before:border-l before:border-l-border", borders.top?.size && "before:border-t before:border-t-border")), className), ref: ref, ...cellProps, ...props, style: {
25
- "--cellBackground": element.background,
26
- ...style,
27
- }, children: _jsxs(Cell, { children: [_jsx("div", { className: "box-border relative z-20 h-full px-3 py-2", style: {
28
- minHeight: rowSize,
29
- }, children: children }), !isSelectingCell && (_jsx("div", { className: "absolute top-0 select-none group size-full", contentEditable: false, suppressContentEditableWarning: true, children: !readOnly && (_jsxs(_Fragment, { children: [_jsx(ResizeHandle, { ...rightProps, className: "-top-3 right-[-5px] w-[10px]" }), _jsx(ResizeHandle, { ...bottomProps, className: "bottom-[-5px] h-[10px]" }), !hiddenLeft && (_jsx(ResizeHandle, { ...leftProps, className: "-top-3 left-[-5px] w-[10px]" })), hovered && (_jsx("div", { className: cn("absolute -top-3 z-30 h-[calc(100%_+_12px)] w-1 bg-ring", "right-[-1.5px]") })), hoveredLeft && (_jsx("div", { className: cn("absolute -top-3 z-30 h-[calc(100%_+_12px)] w-1 bg-ring", "left-[-1.5px]") }))] })) }))] }) }));
30
- });
31
- TableCellElement.displayName = "TableCellElement";
32
- export const TableCellHeaderElement = withProps(TableCellElement, {
33
- isHeader: true,
34
- });
35
- //# sourceMappingURL=table-cell-element.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"table-cell-element.js","sourceRoot":"","sources":["../../../../../src/components/plate/components/table-cell-element.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,EAAE,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AACrD,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAC3D,OAAO,EACL,mBAAmB,EACnB,4BAA4B;AAC5B,aAAa;AACb,iCAAiC;AACjC,aAAa;AACb,wBAAwB,GACzB,MAAM,4BAA4B,CAAC;AAGpC,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAE3C,MAAM,CAAC,MAAM,gBAAgB,GAAG,OAAO,CAMrC,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,UAAU,EAAE,QAAQ,EAAE,KAAK,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE;IACxE,MAAM,EA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CAAC,UAAU;YACtC,GAAG,KAAK;SACc,YAG1B,MAAC,IAAI,eACH,cACE,SAAS,EAAC,2CAA2C,EACrD,KAAK,EAAE;wBACL,SAAS,EAAE,OAAO;qBACnB,YAEA,QAAQ,GACL,EAEL,CAAC,eAAe,IAAI,CACnB,cACE,SAAS,EAAC,4CAA4C,EACtD,eAAe,EAAE,KAAK,EACtB,8BAA8B,EAAE,IAAI,YAEnC,CAAC,QAAQ,IAAI,CACZ,8BACE,KAAC,YAAY,OACP,UAAU,EACd,SAAS,EAAC,8BAA8B,GACxC,EACF,KAAC,YAAY,OACP,WAAW,EACf,SAAS,EAAC,wBAAwB,GAClC,EACD,CAAC,UAAU,IAAI,CACd,KAAC,YAAY,OACP,SAAS,EACb,SAAS,EAAC,6BAA6B,GACvC,CACH,EAEA,OAAO,IAAI,CACV,cACE,SAAS,EAAE,EAAE,CACX,wDAAwD,EACxD,gBAAgB,CACjB,GACD,CACH,EACA,WAAW,IAAI,CACd,cACE,SAAS,EAAE,EAAE,CACX,wDAAwD,EACxD,eAAe,CAChB,GACD,CACH,IACA,CACJ,GACG,CACP,IACI,GACM,CAChB,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,gBAAgB,CAAC,WAAW,GAAG,kBAAkB,CAAC;AAElD,MAAM,CAAC,MAAM,sBAAsB,GAAG,SAAS,CAAC,gBAAgB,EAAE;IAChE,QAAQ,EAAE,IAAI;CACf,CAAC,CAAC"}
@@ -1,24 +0,0 @@
1
- import React from "react";
2
- import type * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu";
3
- export declare const TableBordersDropdownMenuContent: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
4
- export declare const TableFloatingToolbar: React.ForwardRefExoticComponent<Omit<Omit<import("@radix-ui/react-popover").PopoverContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
5
- export declare const TableElement: React.ForwardRefExoticComponent<Omit<Omit<{
6
- elementToAttributes?: (element: import("@udecode/plate-common").TElement) => any;
7
- } & Omit<{
8
- as?: React.ElementType;
9
- asChild?: boolean;
10
- } & Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<any>, "ref"> & {
11
- ref?: React.Ref<any>;
12
- } & import("@udecode/plate-common").BasePluginContext<import("@udecode/plate-common/react").AnyPlatePlugin> & {
13
- useOption: {
14
- <K extends string | number | symbol, F extends any, Args extends Parameters<F & ((...args: any[]) => any)>>(optionKey: K, ...args: Args): F extends (...args: any[]) => any ? ReturnType<F> : F;
15
- <K extends string | number | symbol, F extends any>(optionKey: K): F extends (...args: any[]) => any ? never : F;
16
- };
17
- editor: import("@udecode/plate-common/react").PlateEditor;
18
- plugin: import("@udecode/plate-common/react").EditorPlatePlugin<import("@udecode/plate-common/react").AnyPlatePlugin>;
19
- } & {
20
- className?: string;
21
- nodeProps?: import("@udecode/plate-common").AnyObject;
22
- } & import("@udecode/slate-react").TRenderElementProps<import("@udecode/plate-common").TElement> & {
23
- path: import("slate").Path;
24
- } & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<never>, "ref"> & React.RefAttributes<unknown>>;