@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,46 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
- import { PopoverAnchor } from "@radix-ui/react-popover";
3
- import { cn, withRef } from "@udecode/cn";
4
- import { isSelectionExpanded } from "@udecode/plate-common";
5
- import { PlateElement, useEditorRef, useEditorSelector, useElement, useRemoveNodeButton, withHOC, } from "@udecode/plate-common/react";
6
- import {
7
- // @ts-ignore
8
- mergeTableCells, TableProvider,
9
- // @ts-ignore
10
- unmergeTableCells, useTableBordersDropdownMenuContentState, useTableElement,
11
- // @ts-ignore
12
- useTableElementState, useTableMergeState, } from "@udecode/plate-table/react";
13
- import { useReadOnly, useSelected } from "slate-react";
14
- import { Icons, iconVariants } from "../icons";
15
- import { Button } from "./button";
16
- import { DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuPortal, DropdownMenuTrigger, } from "./dropdown-menu";
17
- import { Popover, PopoverContent, popoverVariants } from "./popover";
18
- import { Separator } from "./separator";
19
- export const TableBordersDropdownMenuContent = withRef((props, ref) => {
20
- const { getOnSelectTableBorder, hasBottomBorder, hasLeftBorder, hasNoBorders, hasOuterBorders, hasRightBorder, hasTopBorder, } = useTableBordersDropdownMenuContentState();
21
- return (_jsxs(DropdownMenuContent, { align: "start", className: cn("min-w-[220px]"), ref: ref, side: "right", sideOffset: 0, ...props, children: [_jsxs(DropdownMenuCheckboxItem, { checked: hasBottomBorder, onCheckedChange: getOnSelectTableBorder("bottom"), children: [_jsx(Icons.borderBottom, { className: iconVariants({ size: "sm" }) }), _jsx("div", { children: "Bottom Border" })] }), _jsxs(DropdownMenuCheckboxItem, { checked: hasTopBorder, onCheckedChange: getOnSelectTableBorder("top"), children: [_jsx(Icons.borderTop, { className: iconVariants({ size: "sm" }) }), _jsx("div", { children: "Top Border" })] }), _jsxs(DropdownMenuCheckboxItem, { checked: hasLeftBorder, onCheckedChange: getOnSelectTableBorder("left"), children: [_jsx(Icons.borderLeft, { className: iconVariants({ size: "sm" }) }), _jsx("div", { children: "Left Border" })] }), _jsxs(DropdownMenuCheckboxItem, { checked: hasRightBorder, onCheckedChange: getOnSelectTableBorder("right"), children: [_jsx(Icons.borderRight, { className: iconVariants({ size: "sm" }) }), _jsx("div", { children: "Right Border" })] }), _jsx(Separator, {}), _jsxs(DropdownMenuCheckboxItem, { checked: hasNoBorders, onCheckedChange: getOnSelectTableBorder("none"), children: [_jsx(Icons.borderNone, { className: iconVariants({ size: "sm" }) }), _jsx("div", { children: "No Border" })] }), _jsxs(DropdownMenuCheckboxItem, { checked: hasOuterBorders, onCheckedChange: getOnSelectTableBorder("outer"), children: [_jsx(Icons.borderAll, { className: iconVariants({ size: "sm" }) }), _jsx("div", { children: "Outside Borders" })] })] }));
22
- });
23
- export const TableFloatingToolbar = withRef(({ children, ...props }, ref) => {
24
- const element = useElement();
25
- const { props: buttonProps } = useRemoveNodeButton({ element });
26
- const selectionCollapsed = useEditorSelector((editor) => !isSelectionExpanded(editor), []);
27
- const readOnly = useReadOnly();
28
- const selected = useSelected();
29
- const editor = useEditorRef();
30
- const collapsed = !readOnly && selected && selectionCollapsed;
31
- const open = !readOnly && selected;
32
- const { canMerge, canUnmerge } = useTableMergeState();
33
- const mergeContent = canMerge && (_jsxs(Button, { contentEditable: false, isMenu: true, onClick: () => mergeTableCells(editor), variant: "ghost", children: [_jsx(Icons.combine, { className: "mr-2 size-4" }), "Merge"] }));
34
- const unmergeButton = canUnmerge && (_jsxs(Button, { contentEditable: false, isMenu: true, onClick: () => unmergeTableCells(editor), variant: "ghost", children: [_jsx(Icons.ungroup, { className: "mr-2 size-4" }), "Unmerge"] }));
35
- const bordersContent = collapsed && (_jsxs(_Fragment, { children: [_jsxs(DropdownMenu, { modal: false, children: [_jsx(DropdownMenuTrigger, { asChild: true, children: _jsxs(Button, { isMenu: true, variant: "ghost", children: [_jsx(Icons.borderAll, { className: "mr-2 size-4" }), "Borders"] }) }), _jsx(DropdownMenuPortal, { children: _jsx(TableBordersDropdownMenuContent, {}) })] }), _jsxs(Button, { contentEditable: false, isMenu: true, variant: "ghost", ...buttonProps, children: [_jsx(Icons.delete, { className: "mr-2 size-4" }), "Delete"] })] }));
36
- return (_jsxs(Popover, { modal: false, open: open, children: [_jsx(PopoverAnchor, { asChild: true, children: children }), (canMerge || canUnmerge || collapsed) && (_jsxs(PopoverContent, { className: cn(popoverVariants(), "flex w-[220px] flex-col gap-1 p-1"), onOpenAutoFocus: (e) => e.preventDefault(), ref: ref, ...props, children: [unmergeButton, mergeContent, bordersContent] }))] }));
37
- });
38
- export const TableElement = withHOC(TableProvider, withRef(({ children, className, ...props }, ref) => {
39
- const { colSizes, isSelectingCell, marginLeft, minColumnWidth } = useTableElementState();
40
- const { colGroupProps, props: tableProps } = useTableElement();
41
- return (_jsx(TableFloatingToolbar, { children: _jsx("div", { style: { paddingLeft: marginLeft }, children: _jsx(PlateElement, { asChild: true, className: cn("my-4 ml-px mr-0 table h-px w-full table-fixed border-collapse", isSelectingCell && "[&_*::selection]:bg-none", className), ref: ref, ...tableProps, ...props, children: _jsxs("table", { children: [_jsx("colgroup", { ...colGroupProps, children: colSizes.map((width, index) => (_jsx("col", { style: {
42
- minWidth: minColumnWidth,
43
- width: width || undefined,
44
- } }, index))) }), _jsx("tbody", { className: "min-w-full", children: children })] }) }) }) }));
45
- }));
46
- //# sourceMappingURL=table-element.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"table-element.js","sourceRoot":"","sources":["../../../../../src/components/plate/components/table-element.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AACxD,OAAO,EAAE,EAAE,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EACL,YAAY,EACZ,YAAY,EACZ,iBAAiB,EACjB,UAAU,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AC,YAAY,IACX,OAAO,QACP,SAAS,EAAE,EAAE,CACX,+DAA+D,EAC/D,eAAe,IAAI,0BAA0B,EAC7C,SAAS,CACV,EACD,GAAG,EAAE,GAAG,KACJ,UAAU,KACV,KAAK,YAET,4BACE,sBAAc,aAAa,YACxB,QAAQ,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,KAAK,EAAE,EAAE,CAAC,CAC9B,cAEE,KAAK,EAAE;oCACL,QAAQ,EAAE,cAAc;oCACxB,KAAK,EAAE,KAAK,IAAI,SAAS;iCAC1B,IAJI,KAAK,CAKV,CACH,CAAC,GACO,EAEX,gBAAO,SAAS,EAAC,YAAY,YAAE,QAAQ,GAAS,IAC1C,GACK,GACX,GACe,CACxB,CAAC;AACJ,CAAC,CAAC,CACH,CAAC"}
@@ -1,23 +0,0 @@
1
- import React from "react";
2
- export declare const TableRowElement: 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
- } & React.RefAttributes<never>>;
@@ -1,7 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import { cn, withRef } from "@udecode/cn";
3
- import { PlateElement } from "@udecode/plate-common/react";
4
- export const TableRowElement = withRef(({ children, hideBorder, ...props }, ref) => {
5
- return (_jsx(PlateElement, { asChild: true, className: cn("h-full", hideBorder && "border-none"), ref: ref, ...props, children: _jsx("tr", { children: children }) }));
6
- });
7
- //# sourceMappingURL=table-row-element.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"table-row-element.js","sourceRoot":"","sources":["../../../../../src/components/plate/components/table-row-element.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,EAAE,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAE3D,MAAM,CAAC,MAAM,eAAe,GAAG,OAAO,CAKpC,CAAC,EAAE,QAAQ,EAAE,UAAU,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE;IAC5C,OAAO,CACL,KAAC,YAAY,IACX,OAAO,QACP,SAAS,EAAE,EAAE,CAAC,QAAQ,EAAE,UAAU,IAAI,aAAa,CAAC,EACpD,GAAG,EAAE,GAAG,KACJ,KAAK,YAET,uBAAK,QAAQ,GAAM,GACN,CAChB,CAAC;AACJ,CAAC,CAAC,CAAC"}
@@ -1,21 +0,0 @@
1
- import React from "react";
2
- export declare const TodoListElement: 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>>;
@@ -1,12 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { cn, withRef } from "@udecode/cn";
3
- import { PlateElement } from "@udecode/plate-common/react";
4
- import { useTodoListElement, useTodoListElementState, } from "@udecode/plate-list/react";
5
- import { Checkbox } from "./checkbox";
6
- export const TodoListElement = withRef(({ children, className, ...props }, ref) => {
7
- const { element } = props;
8
- const state = useTodoListElementState({ element });
9
- const { checkboxProps } = useTodoListElement(state);
10
- return (_jsxs(PlateElement, { className: cn("flex flex-row py-1", className), ref: ref, ...props, children: [_jsx("div", { className: "mr-1.5 flex select-none items-center justify-center", contentEditable: false, children: _jsx(Checkbox, { ...checkboxProps }) }), _jsx("span", { className: cn("flex-1 focus:outline-none", state.checked && "text-muted-foreground line-through"), contentEditable: !state.readOnly, suppressContentEditableWarning: true, children: children })] }));
11
- });
12
- //# sourceMappingURL=todo-list-element.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"todo-list-element.js","sourceRoot":"","sources":["../../../../../src/components/plate/components/todo-list-element.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,EAAE,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAC3D,OAAO,EACL,kBAAkB,EAClB,uBAAuB,GACxB,MAAM,2BAA2B,CAAC;AAEnC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC,MAAM,CAAC,MAAM,eAAe,GAAG,OAAO,CACpC,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE;IACzC,MAAM,EAAE,OAAO,EAAE,GAAG,KAAK,CAAC;IAC1B,MAAM,KAAK,GAAG,uBAAuB,CAAC,EAAE,OAAO,EAAE,CAAC,CAAC;IACnD,MAAM,EAAE,aAAa,EAAE,GAAG,kBAAkB,CAAC,KAAK,CAAC,CAAC;IAEpD,OAAO,CACL,MAAC,YAAY,IACX,SAAS,EAAE,EAAE,CAAC,oBAAoB,EAAE,SAAS,CAAC,EAC9C,GAAG,EAAE,GAAG,KACJ,KAAK,aAET,cACE,SAAS,EAAC,qDAAqD,EAC/D,eAAe,EAAE,KAAK,YAEtB,KAAC,QAAQ,OAAK,aAAa,GAAI,GAC3B,EACN,eACE,SAAS,EAAE,EAAE,CACX,2BAA2B,EAC3B,KAAK,CAAC,OAAO,IAAI,oCAAoC,CACtD,EACD,eAAe,EAAE,CAAC,KAAK,CAAC,QAAQ,EAChC,8BAA8B,kBAE7B,QAAQ,GACJ,IACM,CAChB,CAAC;AACJ,CAAC,CACF,CAAC"}
@@ -1,29 +0,0 @@
1
- import * as ToolbarPrimitive from "@radix-ui/react-toolbar";
2
- import * as React from "react";
3
- import type { VariantProps } from "class-variance-authority";
4
- export declare const Toolbar: React.ForwardRefExoticComponent<Omit<ToolbarPrimitive.ToolbarProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
5
- export declare const ToolbarToggleGroup: React.ForwardRefExoticComponent<(Omit<ToolbarPrimitive.ToolbarToggleGroupSingleProps & React.RefAttributes<HTMLDivElement>, "ref"> | Omit<ToolbarPrimitive.ToolbarToggleGroupMultipleProps & React.RefAttributes<HTMLDivElement>, "ref">) & React.RefAttributes<HTMLDivElement>>;
6
- export declare const ToolbarLink: React.ForwardRefExoticComponent<Omit<ToolbarPrimitive.ToolbarLinkProps & React.RefAttributes<HTMLAnchorElement>, "ref"> & React.RefAttributes<HTMLAnchorElement>>;
7
- export declare const ToolbarSeparator: React.ForwardRefExoticComponent<Omit<ToolbarPrimitive.ToolbarSeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
8
- declare const ToolbarButton: React.ForwardRefExoticComponent<{
9
- tooltip?: React.ReactNode;
10
- tooltipContentProps?: Omit<React.ComponentPropsWithoutRef<React.ForwardRefExoticComponent<import("@radix-ui/react-tooltip").TooltipContentProps & React.RefAttributes<HTMLDivElement>>>, "children">;
11
- tooltipProps?: Omit<React.ComponentPropsWithoutRef<React.FC<import("@radix-ui/react-tooltip").TooltipProps>>, "children">;
12
- } & Omit<{
13
- isDropdown?: boolean;
14
- pressed?: boolean;
15
- } & Omit<Omit<Omit<ToolbarPrimitive.ToolbarToggleItemProps & React.RefAttributes<HTMLButtonElement>, "ref"> & VariantProps<(props?: {
16
- size?: "default" | "sm" | "lg";
17
- variant?: "outline" | "default";
18
- } & import("class-variance-authority/types").ClassProp) => string> & React.RefAttributes<HTMLButtonElement>, "ref">, "value" | "asChild"> & VariantProps<(props?: {
19
- size?: "default" | "sm" | "lg";
20
- variant?: "outline" | "default";
21
- } & import("class-variance-authority/types").ClassProp) => string> & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
22
- export { ToolbarButton };
23
- export declare const ToolbarToggleItem: React.ForwardRefExoticComponent<Omit<ToolbarPrimitive.ToolbarToggleItemProps & React.RefAttributes<HTMLButtonElement>, "ref"> & VariantProps<(props?: {
24
- size?: "default" | "sm" | "lg";
25
- variant?: "outline" | "default";
26
- } & import("class-variance-authority/types").ClassProp) => string> & React.RefAttributes<HTMLButtonElement>>;
27
- export declare const ToolbarGroup: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
28
- noSeparator?: boolean;
29
- } & React.RefAttributes<HTMLDivElement>>;
@@ -1,51 +0,0 @@
1
- "use client";
2
- import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
3
- import * as ToolbarPrimitive from "@radix-ui/react-toolbar";
4
- import { cn, withCn, withRef, withVariants } from "@udecode/cn";
5
- import { cva } from "class-variance-authority";
6
- import * as React from "react";
7
- import { Icons } from "../icons";
8
- import { Separator } from "./separator";
9
- import { withTooltip } from "./tooltip";
10
- export const Toolbar = withCn(ToolbarPrimitive.Root, "relative flex select-none items-center gap-1 bg-background");
11
- export const ToolbarToggleGroup = withCn(ToolbarPrimitive.ToolbarToggleGroup, "flex items-center");
12
- export const ToolbarLink = withCn(ToolbarPrimitive.Link, "font-medium underline underline-offset-4");
13
- export const ToolbarSeparator = withCn(ToolbarPrimitive.Separator, "my-1 w-px shrink-0 bg-border");
14
- const toolbarButtonVariants = cva(cn("inline-flex items-center justify-center rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50", "[&_svg:not([data-icon])]:size-5"), {
15
- defaultVariants: {
16
- size: "sm",
17
- variant: "default",
18
- },
19
- variants: {
20
- size: {
21
- default: "h-10 px-3",
22
- lg: "h-11 px-5",
23
- sm: "h-9 px-2",
24
- },
25
- variant: {
26
- default: "bg-transparent hover:bg-muted hover:text-muted-foreground aria-checked:bg-accent aria-checked:text-accent-foreground",
27
- outline: "border border-input bg-transparent hover:bg-accent hover:text-accent-foreground",
28
- },
29
- },
30
- });
31
- const ToolbarButton = withTooltip(
32
- // eslint-disable-next-line react/display-name
33
- React.forwardRef(({ children, className, isDropdown, pressed, size, variant, ...props }, ref) => {
34
- return typeof pressed === "boolean" ? (_jsx(ToolbarToggleGroup, { disabled: props.disabled, type: "single", value: "single", children: _jsx(ToolbarToggleItem, { className: cn(toolbarButtonVariants({
35
- size,
36
- variant,
37
- }), isDropdown && "my-1 justify-between pr-1", className), ref: ref, value: pressed ? "single" : "", ...props, children: isDropdown ? (_jsxs(_Fragment, { children: [_jsx("div", { className: "flex flex-1", children: children }), _jsx("div", { className: "flex items-center", children: _jsx(Icons.arrowDown, { className: "ml-0.5 size-4", "data-icon": true }) })] })) : (children) }) })) : (_jsx(ToolbarPrimitive.Button, { className: cn(toolbarButtonVariants({
38
- size,
39
- variant,
40
- }), isDropdown && "pr-1", className), ref: ref, ...props, children: children }));
41
- }));
42
- ToolbarButton.displayName = "ToolbarButton";
43
- export { ToolbarButton };
44
- export const ToolbarToggleItem = withVariants(ToolbarPrimitive.ToggleItem, toolbarButtonVariants, ["variant", "size"]);
45
- export const ToolbarGroup = withRef(({ children, className, noSeparator }, ref) => {
46
- const childArr = React.Children.map(children, (c) => c);
47
- if (!childArr || childArr.length === 0)
48
- return null;
49
- return (_jsxs("div", { className: cn("flex", className), ref: ref, children: [!noSeparator && (_jsx("div", { className: "h-full py-1", children: _jsx(Separator, { orientation: "vertical" }) })), _jsx("div", { className: "flex items-center gap-1 mx-1", children: children })] }));
50
- });
51
- //# sourceMappingURL=toolbar.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"toolbar.js","sourceRoot":"","sources":["../../../../../src/components/plate/components/toolbar.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,KAAK,gBAAgB,MAAM,yBAAyB,CAAC;AAC5D,OAAO,EAAE,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAChE,OAAO,EAAE,GAAG,EAAE,MAAM,0BAA0B,CAAC;AAC/C,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU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AAQ,IAAI,QAAQ,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,IAAI,CAAC;IAEpD,OAAO,CACL,eAAK,SAAS,EAAE,EAAE,CAAC,MAAM,EAAE,SAAS,CAAC,EAAE,GAAG,EAAE,GAAG,aAC5C,CAAC,WAAW,IAAI,CACf,cAAK,SAAS,EAAC,aAAa,YAC1B,KAAC,SAAS,IAAC,WAAW,EAAC,UAAU,GAAG,GAChC,CACP,EAED,cAAK,SAAS,EAAC,8BAA8B,YAAE,QAAQ,GAAO,IAC1D,CACP,CAAC;AACJ,CAAC,CAAC,CAAC"}
@@ -1,12 +0,0 @@
1
- import * as TooltipPrimitive from "@radix-ui/react-tooltip";
2
- import React from "react";
3
- export declare const TooltipProvider: React.FC<TooltipPrimitive.TooltipProviderProps>;
4
- export declare const Tooltip: React.FC<TooltipPrimitive.TooltipProps>;
5
- export declare const TooltipTrigger: React.ForwardRefExoticComponent<TooltipPrimitive.TooltipTriggerProps & React.RefAttributes<HTMLButtonElement>>;
6
- export declare const TooltipPortal: React.FC<TooltipPrimitive.TooltipPortalProps>;
7
- export declare const TooltipContent: React.ForwardRefExoticComponent<Omit<Omit<TooltipPrimitive.TooltipContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
8
- export declare function withTooltip<T extends React.ComponentType<any> | keyof HTMLElementTagNameMap>(Component: T): React.ForwardRefExoticComponent<React.PropsWithoutRef<{
9
- tooltip?: React.ReactNode;
10
- tooltipContentProps?: Omit<React.ComponentPropsWithoutRef<typeof TooltipPrimitive.Content>, "children">;
11
- tooltipProps?: Omit<React.ComponentPropsWithoutRef<typeof TooltipPrimitive.Root>, "children">;
12
- } & React.PropsWithoutRef<React.ComponentProps<T>>> & React.RefAttributes<React.ElementRef<T>>>;
@@ -1,26 +0,0 @@
1
- "use client";
2
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
- import * as TooltipPrimitive from "@radix-ui/react-tooltip";
4
- import { withCn, withProps } from "@udecode/cn";
5
- import React from "react";
6
- export const TooltipProvider = TooltipPrimitive.Provider;
7
- export const Tooltip = TooltipPrimitive.Root;
8
- export const TooltipTrigger = TooltipPrimitive.Trigger;
9
- export const TooltipPortal = TooltipPrimitive.Portal;
10
- export const TooltipContent = withCn(withProps(TooltipPrimitive.Content, {
11
- sideOffset: 4,
12
- }), "z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md bg-white");
13
- export function withTooltip(Component) {
14
- return React.forwardRef(function ExtendComponent({ tooltip, tooltipContentProps, tooltipProps, ...props }, ref) {
15
- const [mounted, setMounted] = React.useState(false);
16
- React.useEffect(() => {
17
- setMounted(true);
18
- }, []);
19
- const component = _jsx(Component, { ref: ref, ...props });
20
- if (tooltip && mounted) {
21
- return (_jsxs(Tooltip, { ...tooltipProps, children: [_jsx(TooltipTrigger, { asChild: true, children: component }), _jsx(TooltipPortal, { children: _jsx(TooltipContent, { ...tooltipContentProps, children: tooltip }) })] }));
22
- }
23
- return component;
24
- });
25
- }
26
- //# sourceMappingURL=tooltip.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"tooltip.js","sourceRoot":"","sources":["../../../../../src/components/plate/components/tooltip.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,KAAK,gBAAgB,MAAM,yBAAyB,CAAC;AAC5D,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,MAAM,CAAC,MAAM,eAAe,GAAG,gBAAgB,CAAC,QAAQ,CAAC;AAEzD,MAAM,CAAC,MAAM,OAAO,GAAG,gBAAgB,CAAC,IAAI,CAAC;AAE7C,MAAM,CAAC,MAAM,cAAc,GAAG,gBAAgB,CAAC,OAAO,CAAC;AAEvD,MAAM,CAAC,MAAM,aAAa,GAAG,gBAAgB,CAAC,MAAM,CAAC;AAErD,MAAM,CAAC,MAAM,cAAc,GAAG,MAAM,CAClC,SAAS,CAAC,gBAAgB,CAAC,OAAO,EAAE;IAClC,UAAU,EAAE,CAAC;CACd,CAAC,EACF,kHAAkH,CACnH,CAAC;AAEF,MAAM,UAAU,WAAW,CAGzB,SAAY;IACZ,OAAO,KAAK,CAAC,UAAU,CAarB,SAAS,eAAe,CACxB,EAAE,OAAO,EAAE,mBAAmB,EAAE,YAAY,EAAE,GAAG,KAAK,EAAE,EACxD,GAAG;QAEH,MAAM,CAAC,OAAO,EAAE,UAAU,CAAC,GAAG,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;QAEpD,KAAK,CAAC,SAAS,CAAC,GAAG,EAAE;YACnB,UAAU,CAAC,IAAI,CAAC,CAAC;QACnB,CAAC,EAAE,EAAE,CAAC,CAAC;QAEP,MAAM,SAAS,GAAG,KAAC,SAAS,IAAC,GAAG,EAAE,GAAG,KAAO,KAAa,GAAI,CAAC;QAE9D,IAAI,OAAO,IAAI,OAAO,EAAE,CAAC;YACvB,OAAO,CACL,MAAC,OAAO,OAAK,YAAY,aACvB,KAAC,cAAc,IAAC,OAAO,kBAAE,SAAS,GAAkB,EAEpD,KAAC,aAAa,cACZ,KAAC,cAAc,OAAK,mBAAmB,YAAG,OAAO,GAAkB,GACrD,IACR,CACX,CAAC;QACJ,CAAC;QAED,OAAO,SAAS,CAAC;IACnB,CAAC,CAAC,CAAC;AACL,CAAC"}
@@ -1,2 +0,0 @@
1
- import type { DropdownMenuProps } from "@radix-ui/react-dropdown-menu";
2
- export declare function TurnIntoDropdownMenu(props: DropdownMenuProps): import("react/jsx-runtime").JSX.Element;
@@ -1,93 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { BlockquotePlugin } from "@udecode/plate-block-quote/react";
3
- import { collapseSelection, getNodeEntries, isBlock, } from "@udecode/plate-common";
4
- import { focusEditor, ParagraphPlugin, useEditorRef, useEditorSelector, } from "@udecode/plate-common/react";
5
- import { HEADING_KEYS } from "@udecode/plate-heading";
6
- import { Icons } from "../icons";
7
- import { DropdownMenu, DropdownMenuContent, DropdownMenuLabel, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuTrigger, useOpenState, } from "./dropdown-menu";
8
- import { ToolbarButton } from "./toolbar";
9
- const items = [
10
- {
11
- description: "Paragraph",
12
- icon: Icons.paragraph,
13
- label: "Paragraph",
14
- value: ParagraphPlugin.key,
15
- },
16
- {
17
- description: "Heading 1",
18
- icon: Icons.h1,
19
- label: "Heading 1",
20
- value: HEADING_KEYS.h1,
21
- },
22
- {
23
- description: "Heading 2",
24
- icon: Icons.h2,
25
- label: "Heading 2",
26
- value: HEADING_KEYS.h2,
27
- },
28
- {
29
- description: "Heading 3",
30
- icon: Icons.h3,
31
- label: "Heading 3",
32
- value: HEADING_KEYS.h3,
33
- },
34
- {
35
- description: "Quote (⌘+⇧+.)",
36
- icon: Icons.blockquote,
37
- label: "Quote",
38
- value: BlockquotePlugin.key,
39
- },
40
- // {
41
- // value: 'ul',
42
- // label: 'Bulleted list',
43
- // description: 'Bulleted list',
44
- // icon: Icons.ul,
45
- // },
46
- // {
47
- // value: 'ol',
48
- // label: 'Numbered list',
49
- // description: 'Numbered list',
50
- // icon: Icons.ol,
51
- // },
52
- ];
53
- const defaultItem = items.find((item) => item.value === ParagraphPlugin.key);
54
- export function TurnIntoDropdownMenu(props) {
55
- const value = useEditorSelector((editor) => {
56
- let initialNodeType = ParagraphPlugin.key;
57
- let allNodesMatchInitialNodeType = false;
58
- const codeBlockEntries = getNodeEntries(editor, {
59
- match: (n) => isBlock(editor, n),
60
- mode: "highest",
61
- });
62
- const nodes = Array.from(codeBlockEntries);
63
- if (nodes.length > 0) {
64
- initialNodeType = nodes[0][0].type;
65
- allNodesMatchInitialNodeType = nodes.every(([node]) => {
66
- const type = node?.type || ParagraphPlugin.key;
67
- return type === initialNodeType;
68
- });
69
- }
70
- return allNodesMatchInitialNodeType ? initialNodeType : ParagraphPlugin.key;
71
- }, []);
72
- const editor = useEditorRef();
73
- const openState = useOpenState();
74
- const selectedItem = items.find((item) => item.value === value) ?? defaultItem;
75
- const { icon: SelectedItemIcon, label: selectedItemLabel } = selectedItem;
76
- return (_jsxs(DropdownMenu, { modal: false, ...openState, ...props, children: [_jsx(DropdownMenuTrigger, { asChild: true, children: _jsxs(ToolbarButton, { className: "lg:min-w-[130px]", isDropdown: true, pressed: openState.open, tooltip: "Turn into", children: [_jsx(SelectedItemIcon, { className: "size-5 lg:hidden" }), _jsx("span", { className: "max-lg:hidden", children: selectedItemLabel })] }) }), _jsxs(DropdownMenuContent, { align: "start", className: "min-w-0 bg-white", children: [_jsx(DropdownMenuLabel, { children: "Turn into" }), _jsx(DropdownMenuRadioGroup, { className: "flex flex-col gap-0.5", onValueChange: (type) => {
77
- // if (type === 'ul' || type === 'ol') {
78
- // if (settingsStore.get.checkedId(IndentListPlugin.key)) {
79
- // toggleIndentList(editor, {
80
- // listStyleType: type === 'ul' ? 'disc' : 'decimal',
81
- // });
82
- // } else if (settingsStore.get.checkedId('list')) {
83
- // toggleList(editor, { type });
84
- // }
85
- // } else {
86
- // unwrapList(editor);
87
- editor.tf.toggle.block({ type });
88
- // }
89
- collapseSelection(editor);
90
- focusEditor(editor);
91
- }, value: value, children: items.map(({ icon: Icon, label, value: itemValue }) => (_jsxs(DropdownMenuRadioItem, { className: "min-w-[180px]", value: itemValue, children: [_jsx(Icon, { className: "mr-2 size-5" }), label] }, itemValue))) })] })] }));
92
- }
93
- //# sourceMappingURL=turn-into-dropdown-menu.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"turn-into-dropdown-menu.js","sourceRoot":"","sources":["../../../../../src/components/plate/components/turn-into-dropdown-menu.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AACpE,OAAO,EACL,iBAAiB,EACjB,cAAc,EACd,OAAO,GACR,MAAM,uBAAuB,CAAC;AAC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,SAAS,EAAC,aAAa,GAAG,EAC/B,KAAK,KAJD,SAAS,CAKQ,CACzB,CAAC,GACqB,IACL,IACT,CAChB,CAAC;AACJ,CAAC"}
@@ -1,85 +0,0 @@
1
- import type { LucideIcon } from "lucide-react";
2
- import { LucideProps } from "lucide-react";
3
- import React from "react";
4
- export type Icon = LucideIcon;
5
- export declare const Icons: {
6
- add: React.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
7
- todo: React.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
8
- chevronDown: React.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
9
- alignCenter: React.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
10
- alignJustify: React.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
11
- alignLeft: React.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
12
- alignRight: React.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
13
- download: React.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
14
- arrowLeft: React.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
15
- arrowRight: React.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
16
- arrowDown: React.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
17
- bg: React.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
18
- blockquote: React.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
19
- bold: React.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
20
- borderAll: (props: LucideProps) => import("react/jsx-runtime").JSX.Element;
21
- borderBottom: (props: LucideProps) => import("react/jsx-runtime").JSX.Element;
22
- borderLeft: (props: LucideProps) => import("react/jsx-runtime").JSX.Element;
23
- borderNone: (props: LucideProps) => import("react/jsx-runtime").JSX.Element;
24
- borderRight: (props: LucideProps) => import("react/jsx-runtime").JSX.Element;
25
- borderTop: (props: LucideProps) => import("react/jsx-runtime").JSX.Element;
26
- check: React.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
27
- chevronRight: React.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
28
- chevronsUpDown: React.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
29
- clear: React.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
30
- close: React.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
31
- code: React.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
32
- codeblock: React.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
33
- color: React.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
34
- column: React.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
35
- combine: React.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
36
- ungroup: React.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
37
- comment: React.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
38
- commentAdd: React.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
39
- delete: React.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
40
- dragHandle: React.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
41
- editing: React.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
42
- emoji: React.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
43
- externalLink: React.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
44
- h1: React.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
45
- h2: React.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
46
- h3: React.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
47
- h4: React.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
48
- h5: React.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
49
- h6: React.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
50
- image: React.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
51
- indent: React.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
52
- italic: React.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
53
- kbd: React.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
54
- lineHeight: React.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
55
- link: React.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
56
- minus: React.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
57
- more: React.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
58
- ol: React.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
59
- outdent: React.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
60
- paragraph: React.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
61
- refresh: React.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
62
- row: React.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
63
- search: React.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
64
- settings: React.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
65
- strikethrough: React.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
66
- subscript: React.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
67
- superscript: React.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
68
- table: React.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
69
- text: React.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
70
- trash: React.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
71
- ul: React.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
72
- underline: React.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
73
- unlink: React.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
74
- viewing: React.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
75
- hr: React.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
76
- gitHub: (props: LucideProps) => import("react/jsx-runtime").JSX.Element;
77
- logo: (props: LucideProps) => import("react/jsx-runtime").JSX.Element;
78
- moon: React.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
79
- sun: React.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
80
- twitter: React.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
81
- };
82
- export declare const iconVariants: (props?: {
83
- variant?: "toolbar" | "menuItem";
84
- size?: "sm" | "md";
85
- } & import("class-variance-authority/types").ClassProp) => string;
@@ -1,101 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import { cva } from "class-variance-authority";
3
- import { AlignCenter, AlignJustify, AlignLeft, AlignRight, ArrowLeft, ArrowRight, Baseline, Bold, Check, ChevronDown, ChevronRight, ChevronsUpDown, Code2, Combine, Download, Edit2, ExternalLink, Eye, FileCode, GripVertical, Heading1, Heading2, Heading3, Heading4, Heading5, Heading6, Image, Indent, Italic, Keyboard, Link2, Link2Off, List, ListOrdered, MessageSquare, MessageSquarePlus, Minus, MinusIcon, Moon, MoreHorizontal, Outdent, PaintBucket, Pilcrow, Plus, Quote, RectangleHorizontal, RectangleVertical, RotateCcw, Search, Settings, Smile, Square, Strikethrough, Subscript, SunMedium, Superscript, Table, Text, Trash, Twitter, Underline, Ungroup, WrapText, X, } from "lucide-react";
4
- const borderAll = (props) => (_jsx("svg", { viewBox: "0 0 24 24", height: "48", width: "48", focusable: "false", role: "img", fill: "currentColor", xmlns: "http://www.w3.org/2000/svg", ...props, children: _jsx("path", { d: "M3 6a3 3 0 0 1 3-3h12a3 3 0 0 1 3 3v12a3 3 0 0 1-3 3H6a3 3 0 0 1-3-3V6zm10 13h5a1 1 0 0 0 1-1v-5h-6v6zm-2-6H5v5a1 1 0 0 0 1 1h5v-6zm2-2h6V6a1 1 0 0 0-1-1h-5v6zm-2-6H6a1 1 0 0 0-1 1v5h6V5z" }) }));
5
- const borderBottom = (props) => (_jsx("svg", { viewBox: "0 0 24 24", height: "48", width: "48", focusable: "false", role: "img", fill: "currentColor", xmlns: "http://www.w3.org/2000/svg", ...props, children: _jsx("path", { d: "M13 5a1 1 0 1 0 0-2h-2a1 1 0 1 0 0 2h2zm-8 6a1 1 0 1 0-2 0v2a1 1 0 1 0 2 0v-2zm-2 7a1 1 0 1 1 2 0 1 1 0 0 0 1 1h12a1 1 0 0 0 1-1 1 1 0 1 1 2 0 3 3 0 0 1-3 3H6a3 3 0 0 1-3-3zm17-8a1 1 0 0 0-1 1v2a1 1 0 1 0 2 0v-2a1 1 0 0 0-1-1zM7 4a1 1 0 0 0-1-1 3 3 0 0 0-3 3 1 1 0 0 0 2 0 1 1 0 0 1 1-1 1 1 0 0 0 1-1zm11-1a1 1 0 1 0 0 2 1 1 0 0 1 1 1 1 1 0 1 0 2 0 3 3 0 0 0-3-3z" }) }));
6
- const borderLeft = (props) => (_jsx("svg", { viewBox: "0 0 24 24", height: "48", width: "48", focusable: "false", role: "img", fill: "currentColor", xmlns: "http://www.w3.org/2000/svg", ...props, children: _jsx("path", { d: "M6 21a1 1 0 1 0 0-2 1 1 0 0 1-1-1V6a1 1 0 0 1 1-1 1 1 0 0 0 0-2 3 3 0 0 0-3 3v12a3 3 0 0 0 3 3zm7-16a1 1 0 1 0 0-2h-2a1 1 0 1 0 0 2h2zm6 6a1 1 0 1 1 2 0v2a1 1 0 1 1-2 0v-2zm-5 9a1 1 0 0 1-1 1h-2a1 1 0 1 1 0-2h2a1 1 0 0 1 1 1zm4-17a1 1 0 1 0 0 2 1 1 0 0 1 1 1 1 1 0 1 0 2 0 3 3 0 0 0-3-3zm-1 17a1 1 0 0 0 1 1 3 3 0 0 0 3-3 1 1 0 1 0-2 0 1 1 0 0 1-1 1 1 1 0 0 0-1 1z" }) }));
7
- const borderNone = (props) => (_jsx("svg", { viewBox: "0 0 24 24", height: "48", width: "48", focusable: "false", role: "img", fill: "currentColor", xmlns: "http://www.w3.org/2000/svg", ...props, children: _jsx("path", { d: "M14 4a1 1 0 0 1-1 1h-2a1 1 0 1 1 0-2h2a1 1 0 0 1 1 1zm-9 7a1 1 0 1 0-2 0v2a1 1 0 1 0 2 0v-2zm14 0a1 1 0 1 1 2 0v2a1 1 0 1 1-2 0v-2zm-6 10a1 1 0 1 0 0-2h-2a1 1 0 1 0 0 2h2zM7 4a1 1 0 0 0-1-1 3 3 0 0 0-3 3 1 1 0 0 0 2 0 1 1 0 0 1 1-1 1 1 0 0 0 1-1zm11-1a1 1 0 1 0 0 2 1 1 0 0 1 1 1 1 1 0 1 0 2 0 3 3 0 0 0-3-3zM7 20a1 1 0 0 1-1 1 3 3 0 0 1-3-3 1 1 0 1 1 2 0 1 1 0 0 0 1 1 1 1 0 0 1 1 1zm11 1a1 1 0 1 1 0-2 1 1 0 0 0 1-1 1 1 0 1 1 2 0 3 3 0 0 1-3 3z" }) }));
8
- const borderRight = (props) => (_jsx("svg", { viewBox: "0 0 24 24", height: "48", width: "48", focusable: "false", role: "img", fill: "currentColor", xmlns: "http://www.w3.org/2000/svg", ...props, children: _jsx("path", { d: "M13 5a1 1 0 1 0 0-2h-2a1 1 0 1 0 0 2h2zm-8 6a1 1 0 1 0-2 0v2a1 1 0 1 0 2 0v-2zm9 9a1 1 0 0 1-1 1h-2a1 1 0 1 1 0-2h2a1 1 0 0 1 1 1zM6 3a1 1 0 0 1 0 2 1 1 0 0 0-1 1 1 1 0 0 1-2 0 3 3 0 0 1 3-3zm1 17a1 1 0 0 1-1 1 3 3 0 0 1-3-3 1 1 0 1 1 2 0 1 1 0 0 0 1 1 1 1 0 0 1 1 1zm11 1a1 1 0 1 1 0-2 1 1 0 0 0 1-1V6a1 1 0 0 0-1-1 1 1 0 1 1 0-2 3 3 0 0 1 3 3v12a3 3 0 0 1-3 3z" }) }));
9
- const borderTop = (props) => (_jsx("svg", { viewBox: "0 0 24 24", height: "48", width: "48", focusable: "false", role: "img", fill: "currentColor", xmlns: "http://www.w3.org/2000/svg", ...props, children: _jsx("path", { d: "M3 6a1 1 0 0 0 2 0 1 1 0 0 1 1-1h12a1 1 0 0 1 1 1 1 1 0 1 0 2 0 3 3 0 0 0-3-3H6a3 3 0 0 0-3 3zm2 5a1 1 0 1 0-2 0v2a1 1 0 1 0 2 0v-2zm14 0a1 1 0 1 1 2 0v2a1 1 0 1 1-2 0v-2zm-5 9a1 1 0 0 1-1 1h-2a1 1 0 1 1 0-2h2a1 1 0 0 1 1 1zm-8 1a1 1 0 1 0 0-2 1 1 0 0 1-1-1 1 1 0 1 0-2 0 3 3 0 0 0 3 3zm11-1a1 1 0 0 0 1 1 3 3 0 0 0 3-3 1 1 0 1 0-2 0 1 1 0 0 1-1 1 1 1 0 0 0-1 1z" }) }));
10
- export const Icons = {
11
- add: Plus,
12
- todo: Square,
13
- chevronDown: ChevronDown,
14
- alignCenter: AlignCenter,
15
- alignJustify: AlignJustify,
16
- alignLeft: AlignLeft,
17
- alignRight: AlignRight,
18
- download: Download,
19
- arrowLeft: ArrowLeft,
20
- arrowRight: ArrowRight,
21
- arrowDown: ChevronDown,
22
- bg: PaintBucket,
23
- blockquote: Quote,
24
- bold: Bold,
25
- borderAll,
26
- borderBottom,
27
- borderLeft,
28
- borderNone,
29
- borderRight,
30
- borderTop,
31
- check: Check,
32
- chevronRight: ChevronRight,
33
- chevronsUpDown: ChevronsUpDown,
34
- clear: X,
35
- close: X,
36
- code: Code2,
37
- codeblock: FileCode,
38
- color: Baseline,
39
- column: RectangleVertical,
40
- combine: Combine,
41
- ungroup: Ungroup,
42
- comment: MessageSquare,
43
- commentAdd: MessageSquarePlus,
44
- delete: Trash,
45
- dragHandle: GripVertical,
46
- editing: Edit2,
47
- emoji: Smile,
48
- externalLink: ExternalLink,
49
- h1: Heading1,
50
- h2: Heading2,
51
- h3: Heading3,
52
- h4: Heading4,
53
- h5: Heading5,
54
- h6: Heading6,
55
- image: Image,
56
- indent: Indent,
57
- italic: Italic,
58
- kbd: Keyboard,
59
- lineHeight: WrapText,
60
- link: Link2,
61
- minus: Minus,
62
- more: MoreHorizontal,
63
- ol: ListOrdered,
64
- outdent: Outdent,
65
- paragraph: Pilcrow,
66
- refresh: RotateCcw,
67
- row: RectangleHorizontal,
68
- search: Search,
69
- settings: Settings,
70
- strikethrough: Strikethrough,
71
- subscript: Subscript,
72
- superscript: Superscript,
73
- table: Table,
74
- text: Text,
75
- trash: Trash,
76
- ul: List,
77
- underline: Underline,
78
- unlink: Link2Off,
79
- viewing: Eye,
80
- hr: MinusIcon,
81
- // www
82
- gitHub: (props) => (_jsx("svg", { viewBox: "0 0 438.549 438.549", ...props, children: _jsx("path", { fill: "currentColor", d: "M409.132 114.573c-19.608-33.596-46.205-60.194-79.798-79.8-33.598-19.607-70.277-29.408-110.063-29.408-39.781 0-76.472 9.804-110.063 29.408-33.596 19.605-60.192 46.204-79.8 79.8C9.803 148.168 0 184.854 0 224.63c0 47.78 13.94 90.745 41.827 128.906 27.884 38.164 63.906 64.572 108.063 79.227 5.14.954 8.945.283 11.419-1.996 2.475-2.282 3.711-5.14 3.711-8.562 0-.571-.049-5.708-.144-15.417a2549.81 2549.81 0 01-.144-25.406l-6.567 1.136c-4.187.767-9.469 1.092-15.846 1-6.374-.089-12.991-.757-19.842-1.999-6.854-1.231-13.229-4.086-19.13-8.559-5.898-4.473-10.085-10.328-12.56-17.556l-2.855-6.57c-1.903-4.374-4.899-9.233-8.992-14.559-4.093-5.331-8.232-8.945-12.419-10.848l-1.999-1.431c-1.332-.951-2.568-2.098-3.711-3.429-1.142-1.331-1.997-2.663-2.568-3.997-.572-1.335-.098-2.43 1.427-3.289 1.525-.859 4.281-1.276 8.28-1.276l5.708.853c3.807.763 8.516 3.042 14.133 6.851 5.614 3.806 10.229 8.754 13.846 14.842 4.38 7.806 9.657 13.754 15.846 17.847 6.184 4.093 12.419 6.136 18.699 6.136 6.28 0 11.704-.476 16.274-1.423 4.565-.952 8.848-2.383 12.847-4.285 1.713-12.758 6.377-22.559 13.988-29.41-10.848-1.14-20.601-2.857-29.264-5.14-8.658-2.286-17.605-5.996-26.835-11.14-9.235-5.137-16.896-11.516-22.985-19.126-6.09-7.614-11.088-17.61-14.987-29.979-3.901-12.374-5.852-26.648-5.852-42.826 0-23.035 7.52-42.637 22.557-58.817-7.044-17.318-6.379-36.732 1.997-58.24 5.52-1.715 13.706-.428 24.554 3.853 10.85 4.283 18.794 7.952 23.84 10.994 5.046 3.041 9.089 5.618 12.135 7.708 17.705-4.947 35.976-7.421 54.818-7.421s37.117 2.474 54.823 7.421l10.849-6.849c7.419-4.57 16.18-8.758 26.262-12.565 10.088-3.805 17.802-4.853 23.134-3.138 8.562 21.509 9.325 40.922 2.279 58.24 15.036 16.18 22.559 35.787 22.559 58.817 0 16.178-1.958 30.497-5.853 42.966-3.9 12.471-8.941 22.457-15.125 29.979-6.191 7.521-13.901 13.85-23.131 18.986-9.232 5.14-18.182 8.85-26.84 11.136-8.662 2.286-18.415 4.004-29.263 5.146 9.894 8.562 14.842 22.077 14.842 40.539v60.237c0 3.422 1.19 6.279 3.572 8.562 2.379 2.279 6.136 2.95 11.276 1.995 44.163-14.653 80.185-41.062 108.068-79.226 27.88-38.161 41.825-81.126 41.825-128.906-.01-39.771-9.818-76.454-29.414-110.049z" }) })),
83
- logo: (props) => (_jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", ...props, children: _jsx("path", { fill: "currentColor", d: "M11.572 0c-.176 0-.31.001-.358.007a19.76 19.76 0 0 1-.364.033C7.443.346 4.25 2.185 2.228 5.012a11.875 11.875 0 0 0-2.119 5.243c-.096.659-.108.854-.108 1.747s.012 1.089.108 1.748c.652 4.506 3.86 8.292 8.209 9.695.779.25 1.6.422 2.534.525.363.04 1.935.04 2.299 0 1.611-.178 2.977-.577 4.323-1.264.207-.106.247-.134.219-.158-.02-.013-.9-1.193-1.955-2.62l-1.919-2.592-2.404-3.558a338.739 338.739 0 0 0-2.422-3.556c-.009-.002-.018 1.579-.023 3.51-.007 3.38-.01 3.515-.052 3.595a.426.426 0 0 1-.206.214c-.075.037-.14.044-.495.044H7.81l-.108-.068a.438.438 0 0 1-.157-.171l-.05-.106.006-4.703.007-4.705.072-.092a.645.645 0 0 1 .174-.143c.096-.047.134-.051.54-.051.478 0 .558.018.682.154.035.038 1.337 1.999 2.895 4.361a10760.433 10760.433 0 0 0 4.735 7.17l1.9 2.879.096-.063a12.317 12.317 0 0 0 2.466-2.163 11.944 11.944 0 0 0 2.824-6.134c.096-.66.108-.854.108-1.748 0-.893-.012-1.088-.108-1.747-.652-4.506-3.859-8.292-8.208-9.695a12.597 12.597 0 0 0-2.499-.523A33.119 33.119 0 0 0 11.573 0zm4.069 7.217c.347 0 .408.005.486.047a.473.473 0 0 1 .237.277c.018.06.023 1.365.018 4.304l-.006 4.218-.744-1.14-.746-1.14v-3.066c0-1.982.01-3.097.023-3.15a.478.478 0 0 1 .233-.296c.096-.05.13-.054.5-.054z" }) })),
84
- moon: Moon,
85
- sun: SunMedium,
86
- twitter: Twitter,
87
- };
88
- export const iconVariants = cva("", {
89
- variants: {
90
- variant: {
91
- toolbar: "size-5",
92
- menuItem: "mr-2 size-5",
93
- },
94
- size: {
95
- sm: "mr-2 size-4",
96
- md: "mr-2 size-6",
97
- },
98
- },
99
- defaultVariants: {},
100
- });
101
- //# sourceMappingURL=icons.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"icons.js","sourceRoot":"","sources":["../../../../src/components/plate/icons.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,0BAA0B,CAAC;AAE/C,OAAO,EACL,WAAW,EACX,YAAY,EACZ,SAAS,EACT,UAAU,EACV,SAAS,EACT,UAAU,EACV,QAAQ,EACR,IAAI,EACJ,KAAK,EACL,WA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