ketcher-react 2.28.0-rc.4 → 3.0.0-rc.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (507) hide show
  1. package/README.md +4 -0
  2. package/dist/Editor.d.ts +6 -28
  3. package/dist/MicromoleculesEditor.d.ts +28 -0
  4. package/dist/cjs/Editor.d.ts +6 -0
  5. package/dist/cjs/MicromoleculesEditor.d.ts +28 -0
  6. package/dist/cjs/components/Accordion/Accordion.d.ts +2 -0
  7. package/dist/cjs/components/Accordion/index.d.ts +16 -0
  8. package/dist/cjs/components/Accordion/styles.d.ts +29 -0
  9. package/dist/cjs/components/Accordion/types.d.ts +27 -0
  10. package/dist/cjs/components/Buttons/Button/Button.d.ts +1 -0
  11. package/dist/cjs/components/Buttons/Button/index.d.ts +16 -0
  12. package/dist/cjs/components/Buttons/Button/styles.d.ts +5 -0
  13. package/dist/cjs/components/Buttons/IconButton/IconButton.d.ts +17 -0
  14. package/dist/cjs/components/Buttons/IconButton/IconButtonBase.d.ts +17 -0
  15. package/dist/cjs/components/Buttons/IconButton/IconButtonCustomIcon.d.ts +17 -0
  16. package/dist/cjs/components/Buttons/IconButton/index.d.ts +17 -0
  17. package/dist/cjs/components/Buttons/IconButton/styles.d.ts +28 -0
  18. package/dist/cjs/components/Buttons/IconButton/types.d.ts +40 -0
  19. package/dist/cjs/components/Buttons/index.d.ts +17 -0
  20. package/dist/cjs/components/Dialog/Dialog.d.ts +45 -0
  21. package/dist/cjs/components/Dialog/index.d.ts +16 -0
  22. package/dist/cjs/components/Icon/Icon.d.ts +18 -0
  23. package/dist/cjs/components/Icon/index.d.ts +19 -0
  24. package/dist/cjs/components/Icon/types.d.ts +26 -0
  25. package/dist/cjs/components/Icon/utils/getIconByName.d.ts +17 -0
  26. package/dist/cjs/components/Icon/utils/getIconName.d.ts +17 -0
  27. package/dist/cjs/components/Icon/utils/iconNameToIcon.d.ts +237 -0
  28. package/dist/cjs/components/InfoModal/InfoModal.d.ts +22 -0
  29. package/dist/cjs/components/InfoModal/constants.d.ts +4 -0
  30. package/dist/cjs/components/InfoModal/index.d.ts +17 -0
  31. package/dist/cjs/components/Input/Input.d.ts +1 -0
  32. package/dist/cjs/components/Input/index.d.ts +16 -0
  33. package/dist/cjs/components/Input/styles.d.ts +20 -0
  34. package/dist/cjs/components/MonomerPreview/AmbiguousMonomerPreview/AmbiguousMonomerPreview.d.ts +9 -0
  35. package/dist/cjs/components/MonomerPreview/AmbiguousMonomerPreview/AmbiguousMonomerPreview.styles.d.ts +29 -0
  36. package/dist/cjs/components/MonomerPreview/AmbiguousMonomerPreview/index.d.ts +3 -0
  37. package/dist/cjs/components/MonomerPreview/AmbiguousMonomerPreview/types.d.ts +46 -0
  38. package/dist/cjs/components/MonomerPreview/calculatePreviewPosition.d.ts +28 -0
  39. package/dist/cjs/components/MonomerPreview/constants.d.ts +9 -0
  40. package/dist/cjs/components/MonomerPreview/index.d.ts +3 -0
  41. package/dist/cjs/components/StructRender/StructRender.d.ts +18 -0
  42. package/dist/cjs/components/StructRender/index.d.ts +16 -0
  43. package/dist/cjs/components/StructRender/styles.d.ts +22 -0
  44. package/dist/cjs/components/StructRender/types.d.ts +29 -0
  45. package/dist/cjs/components/ToggleButtonGroup/ToggleButtonGroup.d.ts +8 -0
  46. package/dist/cjs/components/ToggleButtonGroup/ToggleButtonGroup.test.d.ts +16 -0
  47. package/dist/cjs/components/index.d.ts +23 -0
  48. package/dist/cjs/components/styles/consts.d.ts +59 -0
  49. package/dist/cjs/components/styles/index.d.ts +16 -0
  50. package/dist/cjs/constants.d.ts +49 -0
  51. package/dist/cjs/contexts/appContext.d.ts +23 -0
  52. package/dist/cjs/contexts/errorsContext.d.ts +21 -0
  53. package/dist/cjs/contexts/formContext.d.ts +18 -0
  54. package/dist/cjs/contexts/index.d.ts +21 -0
  55. package/dist/cjs/contexts/settingsContext.d.ts +21 -0
  56. package/dist/cjs/hooks/index.d.ts +21 -0
  57. package/dist/cjs/hooks/useAppContext.d.ts +16 -0
  58. package/dist/cjs/hooks/useClickOutside.d.ts +2 -0
  59. package/dist/cjs/hooks/useFormContext.d.ts +16 -0
  60. package/dist/cjs/hooks/useInterval.d.ts +16 -0
  61. package/dist/cjs/hooks/useResizeObserver.d.ts +26 -0
  62. package/dist/cjs/hooks/useSettingsContext.d.ts +16 -0
  63. package/dist/cjs/hooks/useSubscribtionOnEvents.d.ts +16 -0
  64. package/dist/cjs/index.css +2 -0
  65. package/dist/cjs/index.css.map +1 -0
  66. package/dist/cjs/index.d.ts +20 -0
  67. package/dist/{index.modern.js → cjs/index.js} +4305 -4061
  68. package/dist/cjs/index.js.map +1 -0
  69. package/dist/cjs/index.modern-285b5e16.js +15323 -0
  70. package/dist/cjs/index.modern-285b5e16.js.map +1 -0
  71. package/dist/cjs/script/api.d.ts +19 -0
  72. package/dist/cjs/script/builders/index.d.ts +16 -0
  73. package/dist/cjs/script/builders/ketcher/ButtonConfig.d.ts +18 -0
  74. package/dist/cjs/script/builders/ketcher/ButtonName.d.ts +17 -0
  75. package/dist/cjs/script/builders/ketcher/ButtonsConfig.d.ts +20 -0
  76. package/dist/cjs/script/builders/ketcher/CustomButtons.d.ts +5 -0
  77. package/dist/cjs/script/builders/ketcher/KetcherBuilder.d.ts +39 -0
  78. package/dist/cjs/script/builders/ketcher/index.d.ts +17 -0
  79. package/dist/cjs/script/editor/Editor.d.ts +119 -0
  80. package/dist/cjs/script/editor/HoverIcon.d.ts +31 -0
  81. package/dist/cjs/script/editor/highlighter.d.ts +33 -0
  82. package/dist/cjs/script/editor/index.d.ts +19 -0
  83. package/dist/cjs/script/editor/shared/closest.d.ts +43 -0
  84. package/dist/cjs/script/editor/shared/closest.types.d.ts +9 -0
  85. package/dist/cjs/script/editor/tool/Tool.d.ts +21 -0
  86. package/dist/cjs/script/editor/tool/apoint.d.ts +23 -0
  87. package/dist/cjs/script/editor/tool/apoint.utils.d.ts +2 -0
  88. package/dist/cjs/script/editor/tool/arrow/arrow.types.d.ts +19 -0
  89. package/dist/cjs/script/editor/tool/arrow/arrowTool.d.ts +9 -0
  90. package/dist/cjs/script/editor/tool/arrow/commonArrow.d.ts +17 -0
  91. package/dist/cjs/script/editor/tool/arrow/multitailArrowAdd.d.ts +14 -0
  92. package/dist/cjs/script/editor/tool/arrow/multitailArrowMoveTool.d.ts +12 -0
  93. package/dist/cjs/script/editor/tool/arrow/reactionArrowAdd.d.ts +20 -0
  94. package/dist/cjs/script/editor/tool/arrow/reactionArrowMoveTool.d.ts +12 -0
  95. package/dist/cjs/script/editor/tool/atom.d.ts +29 -0
  96. package/dist/cjs/script/editor/tool/attach.d.ts +24 -0
  97. package/dist/cjs/script/editor/tool/bond.d.ts +31 -0
  98. package/dist/cjs/script/editor/tool/chain.d.ts +27 -0
  99. package/dist/cjs/script/editor/tool/charge.d.ts +24 -0
  100. package/dist/cjs/script/editor/tool/enhanced-stereo.d.ts +25 -0
  101. package/dist/cjs/script/editor/tool/eraser.d.ts +30 -0
  102. package/dist/cjs/script/editor/tool/hand.d.ts +29 -0
  103. package/dist/cjs/script/editor/tool/helper/deleteFunctionalGroups.d.ts +2 -0
  104. package/dist/cjs/script/editor/tool/helper/dropAndMerge.d.ts +3 -0
  105. package/dist/cjs/script/editor/tool/helper/filterNotInCollapsedSGroup.d.ts +20 -0
  106. package/dist/cjs/script/editor/tool/helper/getGroupIdsFromItems.d.ts +12 -0
  107. package/dist/cjs/script/editor/tool/helper/isAtomOutSideCanvas.d.ts +2 -0
  108. package/dist/cjs/script/editor/tool/helper/isMacroMolecule.d.ts +5 -0
  109. package/dist/cjs/script/editor/tool/helper/lasso.d.ts +68 -0
  110. package/dist/cjs/script/editor/tool/helper/locate.d.ts +47 -0
  111. package/dist/cjs/script/editor/tool/image.d.ts +18 -0
  112. package/dist/cjs/script/editor/tool/index.d.ts +2 -0
  113. package/dist/cjs/script/editor/tool/paste.d.ts +34 -0
  114. package/dist/cjs/script/editor/tool/reactionmap.d.ts +27 -0
  115. package/dist/cjs/script/editor/tool/reactionplus.d.ts +26 -0
  116. package/dist/cjs/script/editor/tool/reactionunmap.d.ts +23 -0
  117. package/dist/cjs/script/editor/tool/rgroupatom.d.ts +23 -0
  118. package/dist/cjs/script/editor/tool/rgroupfragment.d.ts +24 -0
  119. package/dist/cjs/script/editor/tool/rotate-controller.d.ts +56 -0
  120. package/dist/cjs/script/editor/tool/rotate-controller.test.d.ts +1 -0
  121. package/dist/cjs/script/editor/tool/rotate-controller.utils.d.ts +3 -0
  122. package/dist/cjs/script/editor/tool/rotate.d.ts +51 -0
  123. package/dist/cjs/script/editor/tool/select/index.d.ts +7 -0
  124. package/dist/cjs/script/editor/tool/select/select.d.ts +42 -0
  125. package/dist/cjs/script/editor/tool/select/select.helpers.d.ts +17 -0
  126. package/dist/cjs/script/editor/tool/select/select.types.d.ts +1 -0
  127. package/dist/cjs/script/editor/tool/select/selectViewOnly.d.ts +14 -0
  128. package/dist/cjs/script/editor/tool/sgroup.d.ts +31 -0
  129. package/dist/cjs/script/editor/tool/simpleobject.d.ts +28 -0
  130. package/dist/cjs/script/editor/tool/template.d.ts +48 -0
  131. package/dist/cjs/script/editor/tool/templatePreview.d.ts +41 -0
  132. package/dist/cjs/script/editor/tool/text.d.ts +27 -0
  133. package/dist/cjs/script/editor/utils/customOnChangeHandler.d.ts +16 -0
  134. package/dist/cjs/script/editor/utils/elementOffset.d.ts +17 -0
  135. package/dist/cjs/script/editor/utils/functionalGroupsTooltip.d.ts +7 -0
  136. package/dist/cjs/script/editor/utils/getItemCursor.d.ts +3 -0
  137. package/dist/cjs/script/editor/utils/handleMovingPosibilityCursor.d.ts +1 -0
  138. package/dist/cjs/script/editor/utils/handleMovingPosibilityCursor.test.d.ts +1 -0
  139. package/dist/cjs/script/editor/utils/index.d.ts +19 -0
  140. package/dist/cjs/script/editor/utils/normalizeAngle.d.ts +11 -0
  141. package/dist/cjs/script/editor/utils/structLayout.d.ts +3 -0
  142. package/dist/cjs/script/index.d.ts +40 -0
  143. package/dist/cjs/script/providers/index.d.ts +1 -0
  144. package/dist/cjs/script/providers/indigoProvider.d.ts +5 -0
  145. package/dist/cjs/script/ui/App/App.container.d.ts +22 -0
  146. package/dist/cjs/script/ui/App/App.d.ts +24 -0
  147. package/dist/cjs/script/ui/App/AppHidden/AppHidden.container.d.ts +18 -0
  148. package/dist/cjs/script/ui/App/AppHidden/AppHidden.d.ts +22 -0
  149. package/dist/cjs/script/ui/App/AppHidden/index.d.ts +16 -0
  150. package/dist/cjs/script/ui/App/index.d.ts +16 -0
  151. package/dist/cjs/script/ui/App/initApp.d.ts +25 -0
  152. package/dist/cjs/script/ui/Portal/Portal.d.ts +38 -0
  153. package/dist/cjs/script/ui/Portal/index.d.ts +16 -0
  154. package/dist/cjs/script/ui/action/action.types.d.ts +45 -0
  155. package/dist/cjs/script/ui/action/atoms.d.ts +40 -0
  156. package/dist/cjs/script/ui/action/copyAs.d.ts +1 -0
  157. package/dist/cjs/script/ui/action/copyImageToClipboard.d.ts +2 -0
  158. package/dist/cjs/script/ui/action/createCopyOfSelected.d.ts +14 -0
  159. package/dist/cjs/script/ui/action/debug.d.ts +13 -0
  160. package/dist/cjs/script/ui/action/flips.d.ts +1 -0
  161. package/dist/cjs/script/ui/action/fullscreen.d.ts +24 -0
  162. package/dist/cjs/script/ui/action/functionalGroups.d.ts +31 -0
  163. package/dist/cjs/script/ui/action/help.d.ts +9 -0
  164. package/dist/cjs/script/ui/action/highlightColors/HighlightColors.d.ts +6 -0
  165. package/dist/cjs/script/ui/action/highlightColors/style.d.ts +25 -0
  166. package/dist/cjs/script/ui/action/index.d.ts +19 -0
  167. package/dist/cjs/script/ui/action/isHidden.d.ts +16 -0
  168. package/dist/cjs/script/ui/action/server.d.ts +92 -0
  169. package/dist/cjs/script/ui/action/templates.d.ts +16 -0
  170. package/dist/cjs/script/ui/action/tools.d.ts +372 -0
  171. package/dist/cjs/script/ui/action/zoom.d.ts +31 -0
  172. package/dist/cjs/script/ui/component/actionmenu.d.ts +9 -0
  173. package/dist/cjs/script/ui/component/cliparea/cliparea.d.ts +22 -0
  174. package/dist/cjs/script/ui/component/form/Input/Input.d.ts +43 -0
  175. package/dist/cjs/script/ui/component/form/Input/Input.test.d.ts +1 -0
  176. package/dist/cjs/script/ui/component/form/MeasureInput/measure-input.d.ts +12 -0
  177. package/dist/cjs/script/ui/component/form/Select/Select.d.ts +32 -0
  178. package/dist/cjs/script/ui/component/form/Select/Select.test.d.ts +1 -0
  179. package/dist/cjs/script/ui/component/form/Select/index.d.ts +17 -0
  180. package/dist/cjs/script/ui/component/form/buttonlist.d.ts +9 -0
  181. package/dist/cjs/script/ui/component/form/colorPicker/ColorPicker.d.ts +27 -0
  182. package/dist/cjs/script/ui/component/form/colorPicker/ColorPicker.test.d.ts +1 -0
  183. package/dist/cjs/script/ui/component/form/combobox/combobox.d.ts +12 -0
  184. package/dist/cjs/script/ui/component/form/form/errorPopover.d.ts +5 -0
  185. package/dist/cjs/script/ui/component/form/form/form.d.ts +29 -0
  186. package/dist/cjs/script/ui/component/form/select-checkbox.d.ts +5 -0
  187. package/dist/cjs/script/ui/component/form/select-list.d.ts +26 -0
  188. package/dist/cjs/script/ui/component/form/systemfonts.d.ts +2 -0
  189. package/dist/cjs/script/ui/component/view/Atom/Atom.d.ts +7 -0
  190. package/dist/cjs/script/ui/component/view/Atom/index.d.ts +16 -0
  191. package/dist/cjs/script/ui/component/view/SaveButton.test.d.ts +16 -0
  192. package/dist/cjs/script/ui/component/view/Tabs/Tabs.d.ts +9 -0
  193. package/dist/cjs/script/ui/component/view/Tabs/index.d.ts +16 -0
  194. package/dist/cjs/script/ui/component/view/ToolActions.test.d.ts +1 -0
  195. package/dist/cjs/script/ui/component/view/openbutton.d.ts +9 -0
  196. package/dist/cjs/script/ui/component/view/saveButton.types.d.ts +2 -0
  197. package/dist/cjs/script/ui/component/view/saveButton.utils.d.ts +2 -0
  198. package/dist/cjs/script/ui/component/view/savebutton.d.ts +33 -0
  199. package/dist/cjs/script/ui/data/convert/structConverter.d.ts +17 -0
  200. package/dist/cjs/script/ui/data/convert/structconv.d.ts +52 -0
  201. package/dist/cjs/script/ui/data/schema/options-schema.d.ts +36 -0
  202. package/dist/cjs/script/ui/data/schema/schema-helper.d.ts +2 -0
  203. package/dist/cjs/script/ui/data/schema/sdata-schema.d.ts +60 -0
  204. package/dist/cjs/script/ui/data/schema/struct-schema.d.ts +436 -0
  205. package/dist/cjs/script/ui/data/templates.d.ts +2 -0
  206. package/dist/cjs/script/ui/data/utils.d.ts +11 -0
  207. package/dist/cjs/script/ui/data/utils.test.d.ts +1 -0
  208. package/dist/cjs/script/ui/dialog/AbbreviationLookup/AbbreviationLookup.constants.d.ts +4 -0
  209. package/dist/cjs/script/ui/dialog/AbbreviationLookup/AbbreviationLookup.container.d.ts +16 -0
  210. package/dist/cjs/script/ui/dialog/AbbreviationLookup/AbbreviationLookup.container.test.d.ts +1 -0
  211. package/dist/cjs/script/ui/dialog/AbbreviationLookup/AbbreviationLookup.d.ts +21 -0
  212. package/dist/cjs/script/ui/dialog/AbbreviationLookup/AbbreviationLookup.test.d.ts +1 -0
  213. package/dist/cjs/script/ui/dialog/AbbreviationLookup/AbbreviationLookup.test.utils.d.ts +7 -0
  214. package/dist/cjs/script/ui/dialog/AbbreviationLookup/AbbreviationLookup.types.d.ts +37 -0
  215. package/dist/cjs/script/ui/dialog/AbbreviationLookup/AbbreviationLookup.utils.d.ts +22 -0
  216. package/dist/cjs/script/ui/dialog/AbbreviationLookup/AbbreviationLookup.utils.test.d.ts +16 -0
  217. package/dist/cjs/script/ui/dialog/AbbreviationLookup/hooks/useOptions.d.ts +17 -0
  218. package/dist/cjs/script/ui/dialog/AbbreviationLookup/hooks/useOptions.test.d.ts +1 -0
  219. package/dist/cjs/script/ui/dialog/AbbreviationLookup/index.d.ts +17 -0
  220. package/dist/cjs/script/ui/dialog/index.d.ts +17 -0
  221. package/dist/cjs/script/ui/dialog/template/EmptySearchResult.d.ts +19 -0
  222. package/dist/cjs/script/ui/dialog/template/TemplateDialog.d.ts +42 -0
  223. package/dist/cjs/script/ui/dialog/template/TemplateTable.d.ts +39 -0
  224. package/dist/cjs/script/ui/dialog/template/template-attach.d.ts +33 -0
  225. package/dist/cjs/script/ui/dialog/template/useSaltsAndSolvets.d.ts +2 -0
  226. package/dist/cjs/script/ui/dialog/toolbox/SDataFieldset.d.ts +4 -0
  227. package/dist/cjs/script/ui/dialog/toolbox/SGroupFieldset.d.ts +4 -0
  228. package/dist/cjs/script/ui/dialog/toolbox/enhancedStereo/enhancedStereo.d.ts +42 -0
  229. package/dist/cjs/script/ui/dialog/toolbox/labeledit.d.ts +3 -0
  230. package/dist/cjs/script/ui/dialog/toolbox/rgroup/rgroup.d.ts +15 -0
  231. package/dist/cjs/script/ui/dialog/toolbox/sgroup.d.ts +9 -0
  232. package/dist/cjs/script/ui/dialog/toolbox/sgroup.test.d.ts +1 -0
  233. package/dist/cjs/script/ui/index.d.ts +16 -0
  234. package/dist/cjs/script/ui/state/abbreviationLookup/abbreviationLookup.types.d.ts +19 -0
  235. package/dist/cjs/script/ui/state/abbreviationLookup/index.d.ts +30 -0
  236. package/dist/cjs/script/ui/state/abbreviationLookup/index.test.d.ts +1 -0
  237. package/dist/cjs/script/ui/state/abbreviationLookup/selectors/index.d.ts +16 -0
  238. package/dist/cjs/script/ui/state/abbreviationLookup/selectors/selectors.d.ts +17 -0
  239. package/dist/cjs/script/ui/state/action/index.d.ts +7 -0
  240. package/dist/cjs/script/ui/state/common/common.types.d.ts +21 -0
  241. package/dist/cjs/script/ui/state/common/index.d.ts +26 -0
  242. package/dist/cjs/script/ui/state/common/index.test.d.ts +1 -0
  243. package/dist/cjs/script/ui/state/common/selectors/index.d.ts +16 -0
  244. package/dist/cjs/script/ui/state/common/selectors/selectors.d.ts +19 -0
  245. package/dist/cjs/script/ui/state/constants.d.ts +23 -0
  246. package/dist/cjs/script/ui/state/editor/index.d.ts +28 -0
  247. package/dist/cjs/script/ui/state/editor/selectors/index.d.ts +16 -0
  248. package/dist/cjs/script/ui/state/editor/utils/generateCommonProperties.d.ts +6 -0
  249. package/dist/cjs/script/ui/state/editor/utils/index.d.ts +1 -0
  250. package/dist/cjs/script/ui/state/floatingTools/index.d.ts +16 -0
  251. package/dist/cjs/script/ui/state/floatingTools/selectors/index.d.ts +5 -0
  252. package/dist/cjs/script/ui/state/functionalGroups/index.d.ts +32 -0
  253. package/dist/cjs/script/ui/state/functionalGroups/selectors/index.d.ts +18 -0
  254. package/dist/cjs/script/ui/state/handleHotkeysOverItem.d.ts +15 -0
  255. package/dist/cjs/script/ui/state/hotkeys.d.ts +27 -0
  256. package/dist/cjs/script/ui/state/hotkeys.test.d.ts +1 -0
  257. package/dist/cjs/script/ui/state/index.d.ts +11 -0
  258. package/dist/cjs/script/ui/state/modal/atoms.d.ts +7 -0
  259. package/dist/cjs/script/ui/state/modal/bonds.d.ts +6 -0
  260. package/dist/cjs/script/ui/state/modal/form.d.ts +162 -0
  261. package/dist/cjs/script/ui/state/modal/index.d.ts +3 -0
  262. package/dist/cjs/script/ui/state/modal/sdata.d.ts +16 -0
  263. package/dist/cjs/script/ui/state/modal/utils/index.d.ts +1 -0
  264. package/dist/cjs/script/ui/state/modal/utils/updateOnlyChangedProperties.d.ts +1 -0
  265. package/dist/cjs/script/ui/state/mouse.d.ts +17 -0
  266. package/dist/cjs/script/ui/state/moveSelectedItems.d.ts +5 -0
  267. package/dist/cjs/script/ui/state/options/index.d.ts +106 -0
  268. package/dist/cjs/script/ui/state/request/index.d.ts +22 -0
  269. package/dist/cjs/script/ui/state/request/reducer.test.d.ts +16 -0
  270. package/dist/cjs/script/ui/state/request/request.types.d.ts +27 -0
  271. package/dist/cjs/script/ui/state/saltsAndSolvents/index.d.ts +30 -0
  272. package/dist/cjs/script/ui/state/saltsAndSolvents/selectors/index.d.ts +16 -0
  273. package/dist/cjs/script/ui/state/server/index.d.ts +7 -0
  274. package/dist/cjs/script/ui/state/server/selectors/index.d.ts +16 -0
  275. package/dist/cjs/script/ui/state/shared.d.ts +43 -0
  276. package/dist/cjs/script/ui/state/templates/index.d.ts +92 -0
  277. package/dist/cjs/script/ui/state/templates/init-lib.d.ts +28 -0
  278. package/dist/cjs/script/ui/state/templates/selectors/index.d.ts +16 -0
  279. package/dist/cjs/script/ui/state/toolbar/index.d.ts +33 -0
  280. package/dist/cjs/script/ui/storage-ext.d.ts +9 -0
  281. package/dist/cjs/script/ui/utils/fileOpener.d.ts +1 -0
  282. package/dist/cjs/script/ui/utils/index.d.ts +14 -0
  283. package/dist/cjs/script/ui/views/AppClipArea.d.ts +18 -0
  284. package/dist/cjs/script/ui/views/Editor.d.ts +3 -0
  285. package/dist/cjs/script/ui/views/components/ContextMenu/ContextMenu.d.ts +19 -0
  286. package/dist/cjs/script/ui/views/components/ContextMenu/ContextMenuTrigger.d.ts +18 -0
  287. package/dist/cjs/script/ui/views/components/ContextMenu/ContextMenuTrigger.utils.d.ts +7 -0
  288. package/dist/cjs/script/ui/views/components/ContextMenu/contextMenu.types.d.ts +74 -0
  289. package/dist/cjs/script/ui/views/components/ContextMenu/hooks/useAddAttachmentPoint.d.ts +4 -0
  290. package/dist/cjs/script/ui/views/components/ContextMenu/hooks/useAtomEdit.d.ts +4 -0
  291. package/dist/cjs/script/ui/views/components/ContextMenu/hooks/useAtomStereo.d.ts +4 -0
  292. package/dist/cjs/script/ui/views/components/ContextMenu/hooks/useBondEdit.d.ts +4 -0
  293. package/dist/cjs/script/ui/views/components/ContextMenu/hooks/useBondSGroupAttach.d.ts +4 -0
  294. package/dist/cjs/script/ui/views/components/ContextMenu/hooks/useBondSGroupEdit.d.ts +4 -0
  295. package/dist/cjs/script/ui/views/components/ContextMenu/hooks/useBondTypeChange.d.ts +4 -0
  296. package/dist/cjs/script/ui/views/components/ContextMenu/hooks/useChangeBondDirection.d.ts +3 -0
  297. package/dist/cjs/script/ui/views/components/ContextMenu/hooks/useDelete.d.ts +4 -0
  298. package/dist/cjs/script/ui/views/components/ContextMenu/hooks/useFunctionalGroupEoc.d.ts +7 -0
  299. package/dist/cjs/script/ui/views/components/ContextMenu/hooks/useFunctionalGroupRemove.d.ts +4 -0
  300. package/dist/cjs/script/ui/views/components/ContextMenu/hooks/useMonomerExpansionHandlers.d.ts +4 -0
  301. package/dist/cjs/script/ui/views/components/ContextMenu/hooks/useMultitailArrowTails.d.ts +11 -0
  302. package/dist/cjs/script/ui/views/components/ContextMenu/hooks/useRGroupAttachmentPointEdit.d.ts +4 -0
  303. package/dist/cjs/script/ui/views/components/ContextMenu/hooks/useRGroupAttachmentPointRemove.d.ts +4 -0
  304. package/dist/cjs/script/ui/views/components/ContextMenu/hooks/useRemoveAttachmentPoint.d.ts +4 -0
  305. package/dist/cjs/script/ui/views/components/ContextMenu/index.d.ts +2 -0
  306. package/dist/cjs/script/ui/views/components/ContextMenu/menuItems/AtomMenuItems.d.ts +4 -0
  307. package/dist/cjs/script/ui/views/components/ContextMenu/menuItems/BondMenuItems.d.ts +4 -0
  308. package/dist/cjs/script/ui/views/components/ContextMenu/menuItems/FunctionalGroupMenuItems.d.ts +4 -0
  309. package/dist/cjs/script/ui/views/components/ContextMenu/menuItems/MacromoleculeMenuItems.d.ts +3 -0
  310. package/dist/cjs/script/ui/views/components/ContextMenu/menuItems/MultitailArrowMenuItems.d.ts +2 -0
  311. package/dist/cjs/script/ui/views/components/ContextMenu/menuItems/RGroupAttachmentPointMenuItems.d.ts +4 -0
  312. package/dist/cjs/script/ui/views/components/ContextMenu/menuItems/SelectionMenuItems.d.ts +4 -0
  313. package/dist/cjs/script/ui/views/components/ContextMenu/utils.d.ts +25 -0
  314. package/dist/cjs/script/ui/views/components/ContextMenu/utils.test.d.ts +1 -0
  315. package/dist/cjs/script/ui/views/components/Spinner/LoadingCircles.d.ts +16 -0
  316. package/dist/cjs/script/ui/views/components/Spinner/index.d.ts +16 -0
  317. package/dist/cjs/script/ui/views/components/StructEditor/InfoPanel.d.ts +27 -0
  318. package/dist/cjs/script/ui/views/components/StructEditor/InfoTooltip.d.ts +23 -0
  319. package/dist/cjs/script/ui/views/components/StructEditor/SGroupDataRender.d.ts +13 -0
  320. package/dist/cjs/script/ui/views/components/StructEditor/StructEditor.d.ts +33 -0
  321. package/dist/cjs/script/ui/views/components/StructEditor/helpers.d.ts +3 -0
  322. package/dist/cjs/script/ui/views/components/StructEditor/index.d.ts +16 -0
  323. package/dist/cjs/script/ui/views/components/index.d.ts +19 -0
  324. package/dist/cjs/script/ui/views/modal/Modal.container.d.ts +19 -0
  325. package/dist/cjs/script/ui/views/modal/Modal.d.ts +27 -0
  326. package/dist/cjs/script/ui/views/modal/components/Confirm/Confirm.d.ts +6 -0
  327. package/dist/cjs/script/ui/views/modal/components/Confirm/index.d.ts +1 -0
  328. package/dist/cjs/script/ui/views/modal/components/ExtendedTable/ExtendedTable.d.ts +2 -0
  329. package/dist/cjs/script/ui/views/modal/components/ExtendedTable/components/GenericGroups/BoxWithLines.d.ts +17 -0
  330. package/dist/cjs/script/ui/views/modal/components/ExtendedTable/components/GenericGroups/GenGroup.d.ts +24 -0
  331. package/dist/cjs/script/ui/views/modal/components/ExtendedTable/components/GenericGroups/GenSet.d.ts +26 -0
  332. package/dist/cjs/script/ui/views/modal/components/ExtendedTable/components/GenericGroups/GenericGroups.d.ts +22 -0
  333. package/dist/cjs/script/ui/views/modal/components/ExtendedTable/components/GenericGroups/components/ButtonGenSet/ButtonGenSet.d.ts +24 -0
  334. package/dist/cjs/script/ui/views/modal/components/ExtendedTable/components/GenericGroups/components/ButtonGenSet/index.d.ts +16 -0
  335. package/dist/cjs/script/ui/views/modal/components/ExtendedTable/components/GenericGroups/index.d.ts +27 -0
  336. package/dist/cjs/script/ui/views/modal/components/ExtendedTable/helpers.d.ts +1 -0
  337. package/dist/cjs/script/ui/views/modal/components/ExtendedTable/index.d.ts +1 -0
  338. package/dist/cjs/script/ui/views/modal/components/InfoModal/InfoModal.d.ts +18 -0
  339. package/dist/cjs/script/ui/views/modal/components/InfoModal/InfoModal.test.d.ts +1 -0
  340. package/dist/cjs/script/ui/views/modal/components/InfoModal/InfoModal.test.utils.d.ts +63 -0
  341. package/dist/cjs/script/ui/views/modal/components/InfoModal/PasteErrorModalBody/PasteErrorModalBody.d.ts +2 -0
  342. package/dist/cjs/script/ui/views/modal/components/InfoModal/PasteErrorModalBody/index.d.ts +1 -0
  343. package/dist/cjs/script/ui/views/modal/components/InfoModal/constants.d.ts +9 -0
  344. package/dist/cjs/script/ui/views/modal/components/InfoModal/index.d.ts +16 -0
  345. package/dist/cjs/script/ui/views/modal/components/PeriodTable/PeriodTable.d.ts +37 -0
  346. package/dist/cjs/script/ui/views/modal/components/PeriodTable/components/AtomInfo/AtomInfo.d.ts +5 -0
  347. package/dist/cjs/script/ui/views/modal/components/PeriodTable/components/AtomInfo/index.d.ts +16 -0
  348. package/dist/cjs/script/ui/views/modal/components/PeriodTable/components/ElementsTable/ElementsTable.d.ts +9 -0
  349. package/dist/cjs/script/ui/views/modal/components/PeriodTable/components/ElementsTable/components/Header.d.ts +2 -0
  350. package/dist/cjs/script/ui/views/modal/components/PeriodTable/components/ElementsTable/components/MainRow.d.ts +11 -0
  351. package/dist/cjs/script/ui/views/modal/components/PeriodTable/components/ElementsTable/components/OutinerRow.d.ts +10 -0
  352. package/dist/cjs/script/ui/views/modal/components/PeriodTable/components/ElementsTable/components/index.d.ts +19 -0
  353. package/dist/cjs/script/ui/views/modal/components/PeriodTable/components/ElementsTable/index.d.ts +16 -0
  354. package/dist/cjs/script/ui/views/modal/components/PeriodTable/components/TypeChoice/TypeChoice.d.ts +6 -0
  355. package/dist/cjs/script/ui/views/modal/components/PeriodTable/components/TypeChoice/index.d.ts +16 -0
  356. package/dist/cjs/script/ui/views/modal/components/PeriodTable/components/index.d.ts +20 -0
  357. package/dist/cjs/script/ui/views/modal/components/PeriodTable/index.d.ts +16 -0
  358. package/dist/cjs/script/ui/views/modal/components/Text/FontControl/FontControl.d.ts +21 -0
  359. package/dist/cjs/script/ui/views/modal/components/Text/FontControl/index.d.ts +16 -0
  360. package/dist/cjs/script/ui/views/modal/components/Text/SpecialSymbols/SpecialSymbolsButton.d.ts +21 -0
  361. package/dist/cjs/script/ui/views/modal/components/Text/SpecialSymbolsList/SpecialSymbolsList.d.ts +19 -0
  362. package/dist/cjs/script/ui/views/modal/components/Text/Text.d.ts +25 -0
  363. package/dist/cjs/script/ui/views/modal/components/Text/TextButton/TextButton.d.ts +30 -0
  364. package/dist/cjs/script/ui/views/modal/components/Text/TextButton/index.d.ts +16 -0
  365. package/dist/cjs/script/ui/views/modal/components/Text/index.d.ts +16 -0
  366. package/dist/cjs/script/ui/views/modal/components/document/Open/Open.container.d.ts +24 -0
  367. package/dist/cjs/script/ui/views/modal/components/document/Open/Open.d.ts +30 -0
  368. package/dist/cjs/script/ui/views/modal/components/document/Open/components/AnalyzingFile.d.ts +19 -0
  369. package/dist/cjs/script/ui/views/modal/components/document/Open/components/CDXStructuresViewer/CDXStructuresViewer.d.ts +23 -0
  370. package/dist/cjs/script/ui/views/modal/components/document/Open/components/CDXStructuresViewer/index.d.ts +2 -0
  371. package/dist/cjs/script/ui/views/modal/components/document/Open/components/DialogActionButton.d.ts +24 -0
  372. package/dist/cjs/script/ui/views/modal/components/document/Open/components/FileDrop.d.ts +26 -0
  373. package/dist/cjs/script/ui/views/modal/components/document/Open/components/OpenOptions.d.ts +24 -0
  374. package/dist/cjs/script/ui/views/modal/components/document/Open/components/TextEditor.d.ts +21 -0
  375. package/dist/cjs/script/ui/views/modal/components/document/Open/components/ViewSwitcher.d.ts +33 -0
  376. package/dist/cjs/script/ui/views/modal/components/document/Open/index.d.ts +16 -0
  377. package/dist/cjs/script/ui/views/modal/components/document/Save/Save.d.ts +46 -0
  378. package/dist/cjs/script/ui/views/modal/components/document/Save/Save.test.d.ts +1 -0
  379. package/dist/cjs/script/ui/views/modal/components/document/Save/Save.test.utils.d.ts +2 -0
  380. package/dist/cjs/script/ui/views/modal/components/document/Save/index.d.ts +16 -0
  381. package/dist/cjs/script/ui/views/modal/components/document/index.d.ts +18 -0
  382. package/dist/cjs/script/ui/views/modal/components/meta/About/About.d.ts +3 -0
  383. package/dist/cjs/script/ui/views/modal/components/meta/About/index.d.ts +16 -0
  384. package/dist/cjs/script/ui/views/modal/components/meta/Settings/Accordion/Accordion.d.ts +22 -0
  385. package/dist/cjs/script/ui/views/modal/components/meta/Settings/Accordion/index.d.ts +16 -0
  386. package/dist/cjs/script/ui/views/modal/components/meta/Settings/Settings.d.ts +38 -0
  387. package/dist/cjs/script/ui/views/modal/components/meta/Settings/fieldGroups.d.ts +42 -0
  388. package/dist/cjs/script/ui/views/modal/components/meta/Settings/index.d.ts +16 -0
  389. package/dist/cjs/script/ui/views/modal/components/meta/index.d.ts +18 -0
  390. package/dist/cjs/script/ui/views/modal/components/process/Analyse/Analyse.d.ts +10 -0
  391. package/dist/cjs/script/ui/views/modal/components/process/Analyse/components/FormulaInput/FormulaInput.d.ts +5 -0
  392. package/dist/cjs/script/ui/views/modal/components/process/Analyse/components/FormulaInput/index.d.ts +16 -0
  393. package/dist/cjs/script/ui/views/modal/components/process/Analyse/components/FrozenInput/FrozenInput.d.ts +19 -0
  394. package/dist/cjs/script/ui/views/modal/components/process/Analyse/components/FrozenInput/index.d.ts +16 -0
  395. package/dist/cjs/script/ui/views/modal/components/process/Analyse/components/index.d.ts +18 -0
  396. package/dist/cjs/script/ui/views/modal/components/process/Analyse/index.d.ts +16 -0
  397. package/dist/cjs/script/ui/views/modal/components/process/Check/Check.d.ts +3 -0
  398. package/dist/cjs/script/ui/views/modal/components/process/Check/components/ErrorsCheck.d.ts +17 -0
  399. package/dist/cjs/script/ui/views/modal/components/process/Check/components/index.d.ts +16 -0
  400. package/dist/cjs/script/ui/views/modal/components/process/Check/index.d.ts +16 -0
  401. package/dist/cjs/script/ui/views/modal/components/process/Miew/Miew.d.ts +30 -0
  402. package/dist/cjs/script/ui/views/modal/components/process/Miew/index.d.ts +16 -0
  403. package/dist/cjs/script/ui/views/modal/components/process/Recognize/Recognize.d.ts +3 -0
  404. package/dist/cjs/script/ui/views/modal/components/process/Recognize/index.d.ts +16 -0
  405. package/dist/cjs/script/ui/views/modal/components/process/index.d.ts +20 -0
  406. package/dist/cjs/script/ui/views/modal/components/toolbox/Atom/Atom.container.d.ts +24 -0
  407. package/dist/cjs/script/ui/views/modal/components/toolbox/Atom/Atom.d.ts +40 -0
  408. package/dist/cjs/script/ui/views/modal/components/toolbox/Atom/AtomElement/AtomElement.d.ts +3 -0
  409. package/dist/cjs/script/ui/views/modal/components/toolbox/Atom/ElementNumber/ElementNumber.d.ts +21 -0
  410. package/dist/cjs/script/ui/views/modal/components/toolbox/Atom/ElementNumber/index.d.ts +16 -0
  411. package/dist/cjs/script/ui/views/modal/components/toolbox/Atom/helper.d.ts +6 -0
  412. package/dist/cjs/script/ui/views/modal/components/toolbox/Atom/index.d.ts +16 -0
  413. package/dist/cjs/script/ui/views/modal/components/toolbox/Attach/Attach.container.d.ts +17 -0
  414. package/dist/cjs/script/ui/views/modal/components/toolbox/Attach/Attach.d.ts +24 -0
  415. package/dist/cjs/script/ui/views/modal/components/toolbox/Attach/index.d.ts +16 -0
  416. package/dist/cjs/script/ui/views/modal/components/toolbox/Automap/Automap.container.d.ts +18 -0
  417. package/dist/cjs/script/ui/views/modal/components/toolbox/Automap/Automap.d.ts +32 -0
  418. package/dist/cjs/script/ui/views/modal/components/toolbox/Automap/index.d.ts +16 -0
  419. package/dist/cjs/script/ui/views/modal/components/toolbox/Bond/Bond.container.d.ts +17 -0
  420. package/dist/cjs/script/ui/views/modal/components/toolbox/Bond/Bond.d.ts +28 -0
  421. package/dist/cjs/script/ui/views/modal/components/toolbox/Bond/index.d.ts +16 -0
  422. package/dist/cjs/script/ui/views/modal/components/toolbox/FG/RemoveFG.d.ts +23 -0
  423. package/dist/cjs/script/ui/views/modal/components/toolbox/RgroupLogic/RgroupLogic.container.d.ts +17 -0
  424. package/dist/cjs/script/ui/views/modal/components/toolbox/RgroupLogic/RgroupLogic.d.ts +29 -0
  425. package/dist/cjs/script/ui/views/modal/components/toolbox/RgroupLogic/components/IfThenSelect/IfThenSelect.d.ts +19 -0
  426. package/dist/cjs/script/ui/views/modal/components/toolbox/RgroupLogic/components/IfThenSelect/index.d.ts +16 -0
  427. package/dist/cjs/script/ui/views/modal/components/toolbox/RgroupLogic/components/index.d.ts +16 -0
  428. package/dist/cjs/script/ui/views/modal/components/toolbox/RgroupLogic/index.d.ts +16 -0
  429. package/dist/cjs/script/ui/views/modal/components/toolbox/index.d.ts +21 -0
  430. package/dist/cjs/script/ui/views/modal/index.d.ts +16 -0
  431. package/dist/cjs/script/ui/views/modal/mediaSizes.d.ts +20 -0
  432. package/dist/cjs/script/ui/views/modal/modal.types.d.ts +28 -0
  433. package/dist/cjs/script/ui/views/toolbars/ArrowScroll/ArrowScroll.d.ts +23 -0
  434. package/dist/cjs/script/ui/views/toolbars/ArrowScroll/index.d.ts +2 -0
  435. package/dist/cjs/script/ui/views/toolbars/BottomToolbar/BottomToolbar.container.d.ts +20 -0
  436. package/dist/cjs/script/ui/views/toolbars/BottomToolbar/BottomToolbar.d.ts +28 -0
  437. package/dist/cjs/script/ui/views/toolbars/BottomToolbar/TemplatesList/TemplatesList.d.ts +34 -0
  438. package/dist/cjs/script/ui/views/toolbars/BottomToolbar/TemplatesList/index.d.ts +16 -0
  439. package/dist/cjs/script/ui/views/toolbars/BottomToolbar/index.d.ts +16 -0
  440. package/dist/cjs/script/ui/views/toolbars/FloatingTools/FloatingTools.container.d.ts +4 -0
  441. package/dist/cjs/script/ui/views/toolbars/FloatingTools/FloatingTools.d.ts +20 -0
  442. package/dist/cjs/script/ui/views/toolbars/FloatingTools/index.d.ts +1 -0
  443. package/dist/cjs/script/ui/views/toolbars/LeftToolbar/Bond/Bond.d.ts +24 -0
  444. package/dist/cjs/script/ui/views/toolbars/LeftToolbar/Bond/index.d.ts +16 -0
  445. package/dist/cjs/script/ui/views/toolbars/LeftToolbar/Bond/options.d.ts +24 -0
  446. package/dist/cjs/script/ui/views/toolbars/LeftToolbar/LeftToolbar.container.d.ts +18 -0
  447. package/dist/cjs/script/ui/views/toolbars/LeftToolbar/LeftToolbar.d.ts +24 -0
  448. package/dist/cjs/script/ui/views/toolbars/LeftToolbar/RGroup/RGroup.d.ts +24 -0
  449. package/dist/cjs/script/ui/views/toolbars/LeftToolbar/RGroup/index.d.ts +16 -0
  450. package/dist/cjs/script/ui/views/toolbars/LeftToolbar/Shape/Shape.d.ts +24 -0
  451. package/dist/cjs/script/ui/views/toolbars/LeftToolbar/Shape/index.d.ts +16 -0
  452. package/dist/cjs/script/ui/views/toolbars/LeftToolbar/index.d.ts +16 -0
  453. package/dist/cjs/script/ui/views/toolbars/LeftToolbar/leftToolbarOptions.d.ts +8 -0
  454. package/dist/cjs/script/ui/views/toolbars/ModeControl/ModeControl.d.ts +21 -0
  455. package/dist/cjs/script/ui/views/toolbars/ModeControl/index.d.ts +1 -0
  456. package/dist/cjs/script/ui/views/toolbars/RightToolbar/AtomsList/AtomsList.d.ts +33 -0
  457. package/dist/cjs/script/ui/views/toolbars/RightToolbar/AtomsList/index.d.ts +16 -0
  458. package/dist/cjs/script/ui/views/toolbars/RightToolbar/RightToolbar.container.d.ts +21 -0
  459. package/dist/cjs/script/ui/views/toolbars/RightToolbar/RightToolbar.d.ts +29 -0
  460. package/dist/cjs/script/ui/views/toolbars/RightToolbar/index.d.ts +16 -0
  461. package/dist/cjs/script/ui/views/toolbars/ToolbarGroupItem/ActionButton/ActionButton.d.ts +37 -0
  462. package/dist/cjs/script/ui/views/toolbars/ToolbarGroupItem/ActionButton/index.d.ts +16 -0
  463. package/dist/cjs/script/ui/views/toolbars/ToolbarGroupItem/ToolbarGroupItem.d.ts +34 -0
  464. package/dist/cjs/script/ui/views/toolbars/ToolbarGroupItem/ToolbarMultiToolItem/ToolbarMultiToolItem.d.ts +41 -0
  465. package/dist/cjs/script/ui/views/toolbars/ToolbarGroupItem/ToolbarMultiToolItem/index.d.ts +16 -0
  466. package/dist/cjs/script/ui/views/toolbars/ToolbarGroupItem/ToolbarMultiToolItem/usePortalOpening.d.ts +19 -0
  467. package/dist/cjs/script/ui/views/toolbars/ToolbarGroupItem/ToolbarMultiToolItem/usePortalStyle.d.ts +19 -0
  468. package/dist/cjs/script/ui/views/toolbars/ToolbarGroupItem/ToolbarMultiToolItem/variants/DefaultMultiTool/DefaultMultiTool.d.ts +22 -0
  469. package/dist/cjs/script/ui/views/toolbars/ToolbarGroupItem/ToolbarMultiToolItem/variants/DefaultMultiTool/index.d.ts +18 -0
  470. package/dist/cjs/script/ui/views/toolbars/ToolbarGroupItem/ToolbarMultiToolItem/variants/GroupedMultiTool/GroupedMultiTool.d.ts +22 -0
  471. package/dist/cjs/script/ui/views/toolbars/ToolbarGroupItem/ToolbarMultiToolItem/variants/GroupedMultiTool/index.d.ts +16 -0
  472. package/dist/cjs/script/ui/views/toolbars/ToolbarGroupItem/ToolbarMultiToolItem/variants/chooseMultiTool.d.ts +18 -0
  473. package/dist/cjs/script/ui/views/toolbars/ToolbarGroupItem/ToolbarMultiToolItem/variants/variants.types.d.ts +35 -0
  474. package/dist/cjs/script/ui/views/toolbars/ToolbarGroupItem/index.d.ts +16 -0
  475. package/dist/cjs/script/ui/views/toolbars/ToolbarGroupItem/utils/index.d.ts +16 -0
  476. package/dist/cjs/script/ui/views/toolbars/ToolbarGroupItem/utils/makeItems.d.ts +18 -0
  477. package/dist/cjs/script/ui/views/toolbars/TopToolbar/ClipboardControls.d.ts +30 -0
  478. package/dist/cjs/script/ui/views/toolbars/TopToolbar/CustomButtons.d.ts +8 -0
  479. package/dist/cjs/script/ui/views/toolbars/TopToolbar/Divider.d.ts +17 -0
  480. package/dist/cjs/script/ui/views/toolbars/TopToolbar/ElementWithDropdown.d.ts +23 -0
  481. package/dist/cjs/script/ui/views/toolbars/TopToolbar/ExternalFuncControls.d.ts +35 -0
  482. package/dist/cjs/script/ui/views/toolbars/TopToolbar/FileControls.d.ts +10 -0
  483. package/dist/cjs/script/ui/views/toolbars/TopToolbar/ScaleTransformer.d.ts +24 -0
  484. package/dist/cjs/script/ui/views/toolbars/TopToolbar/SystemControls.d.ts +27 -0
  485. package/dist/cjs/script/ui/views/toolbars/TopToolbar/TopToolbar.container.d.ts +17 -0
  486. package/dist/cjs/script/ui/views/toolbars/TopToolbar/TopToolbar.d.ts +59 -0
  487. package/dist/cjs/script/ui/views/toolbars/TopToolbar/TopToolbarIconButton.d.ts +21 -0
  488. package/dist/cjs/script/ui/views/toolbars/TopToolbar/UndoRedo.d.ts +26 -0
  489. package/dist/cjs/script/ui/views/toolbars/TopToolbar/ZoomControls.d.ts +28 -0
  490. package/dist/cjs/script/ui/views/toolbars/TopToolbar/ZoomInput.d.ts +26 -0
  491. package/dist/cjs/script/ui/views/toolbars/TopToolbar/ZoomList.d.ts +22 -0
  492. package/dist/cjs/script/ui/views/toolbars/TopToolbar/ZoomSlider.d.ts +21 -0
  493. package/dist/cjs/script/ui/views/toolbars/TopToolbar/index.d.ts +16 -0
  494. package/dist/cjs/script/ui/views/toolbars/index.d.ts +20 -0
  495. package/dist/cjs/script/ui/views/toolbars/mediaSizes.d.ts +23 -0
  496. package/dist/cjs/script/ui/views/toolbars/toolbar.types.d.ts +34 -0
  497. package/dist/cjs/setupTests.d.ts +1 -0
  498. package/dist/index.css +1 -1
  499. package/dist/index.css.map +1 -1
  500. package/dist/index.js +4207 -4163
  501. package/dist/index.js.map +1 -1
  502. package/dist/index.modern-b02f5e53.js +15301 -0
  503. package/dist/index.modern-b02f5e53.js.map +1 -0
  504. package/dist/script/ui/views/toolbars/ModeControl/ModeControl.d.ts +21 -0
  505. package/dist/script/ui/views/toolbars/ModeControl/index.d.ts +1 -0
  506. package/package.json +12 -4
  507. package/dist/index.modern.js.map +0 -1
package/README.md CHANGED
@@ -48,6 +48,10 @@ const MyComponent = () => {
48
48
  }
49
49
  ```
50
50
 
51
+ Starting with Ketcher v3.0, the macromolecules editor is enabled by default in the app. It is lazily loaded within the `Editor` component. The macromolecules editor is still under active development. Should you wish to opt-out of using it, you can pass the `disableMacromoleculesEditor={true}` prop to the `Editor` component.
52
+
53
+ ```js
54
+
51
55
  ### Indigo Service
52
56
 
53
57
  Ketcher uses Indigo Service for server operations.
package/dist/Editor.d.ts CHANGED
@@ -1,28 +1,6 @@
1
- /****************************************************************************
2
- * Copyright 2021 EPAM Systems
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License");
5
- * you may not use this file except in compliance with the License.
6
- * You may obtain a copy of the License at
7
- *
8
- * http://www.apache.org/licenses/LICENSE-2.0
9
- *
10
- * Unless required by applicable law or agreed to in writing, software
11
- * distributed under the License is distributed on an "AS IS" BASIS,
12
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- * See the License for the specific language governing permissions and
14
- * limitations under the License.
15
- ***************************************************************************/
16
- import 'intersection-observer';
17
- import 'element-closest-polyfill';
18
- import 'regenerator-runtime/runtime';
19
- import 'url-search-params-polyfill';
20
- import 'whatwg-fetch';
21
- import './index.less';
22
- import { Config } from './script';
23
- import { Ketcher } from 'ketcher-core';
24
- interface EditorProps extends Omit<Config, 'element' | 'appRoot'> {
25
- onInit?: (ketcher: Ketcher) => void;
26
- }
27
- declare function Editor(props: EditorProps): import("react/jsx-runtime").JSX.Element;
28
- export { Editor };
1
+ import { EditorProps } from './MicromoleculesEditor';
2
+ declare type Props = EditorProps & {
3
+ disableMacromoleculesEditor?: boolean;
4
+ };
5
+ export declare const Editor: (props: Props) => import("react/jsx-runtime").JSX.Element;
6
+ export {};
@@ -0,0 +1,28 @@
1
+ /****************************************************************************
2
+ * Copyright 2021 EPAM Systems
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ ***************************************************************************/
16
+ import 'intersection-observer';
17
+ import 'element-closest-polyfill';
18
+ import 'regenerator-runtime/runtime';
19
+ import 'url-search-params-polyfill';
20
+ import 'whatwg-fetch';
21
+ import './index.less';
22
+ import { Config } from './script';
23
+ import { Ketcher } from 'ketcher-core';
24
+ export interface EditorProps extends Omit<Config, 'element' | 'appRoot'> {
25
+ onInit?: (ketcher: Ketcher) => void;
26
+ }
27
+ declare function MicromoleculesEditor(props: EditorProps): import("react/jsx-runtime").JSX.Element;
28
+ export { MicromoleculesEditor };
@@ -0,0 +1,6 @@
1
+ import { EditorProps } from './MicromoleculesEditor';
2
+ declare type Props = EditorProps & {
3
+ disableMacromoleculesEditor?: boolean;
4
+ };
5
+ export declare const Editor: (props: Props) => import("react/jsx-runtime").JSX.Element;
6
+ export {};
@@ -0,0 +1,28 @@
1
+ /****************************************************************************
2
+ * Copyright 2021 EPAM Systems
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ ***************************************************************************/
16
+ import 'intersection-observer';
17
+ import 'element-closest-polyfill';
18
+ import 'regenerator-runtime/runtime';
19
+ import 'url-search-params-polyfill';
20
+ import 'whatwg-fetch';
21
+ import './index.less';
22
+ import { Config } from './script';
23
+ import { Ketcher } from 'ketcher-core';
24
+ export interface EditorProps extends Omit<Config, 'element' | 'appRoot'> {
25
+ onInit?: (ketcher: Ketcher) => void;
26
+ }
27
+ declare function MicromoleculesEditor(props: EditorProps): import("react/jsx-runtime").JSX.Element;
28
+ export { MicromoleculesEditor };
@@ -0,0 +1,2 @@
1
+ import { IAccordionProps } from './types';
2
+ export declare const Accordion: ({ summary, details, expanded, className, onSummaryClick, dataTestIdDetails, }: IAccordionProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,16 @@
1
+ /****************************************************************************
2
+ * Copyright 2021 EPAM Systems
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ ***************************************************************************/
16
+ export { Accordion } from './Accordion';
@@ -0,0 +1,29 @@
1
+ /****************************************************************************
2
+ * Copyright 2021 EPAM Systems
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ ***************************************************************************/
16
+ /// <reference types="react" />
17
+ import { IDetailsContainerProps } from './types';
18
+ export declare const Container: import("@emotion/styled").StyledComponent<{
19
+ theme?: import("@emotion/react").Theme | undefined;
20
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
21
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
22
+ export declare const SummaryContainer: import("@emotion/styled").StyledComponent<{
23
+ theme?: import("@emotion/react").Theme | undefined;
24
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
25
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
26
+ export declare const DetailsContainer: import("@emotion/styled").StyledComponent<{
27
+ theme?: import("@emotion/react").Theme | undefined;
28
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
29
+ } & IDetailsContainerProps, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
@@ -0,0 +1,27 @@
1
+ /****************************************************************************
2
+ * Copyright 2021 EPAM Systems
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ ***************************************************************************/
16
+ /// <reference types="react" />
17
+ export interface IAccordionProps {
18
+ summary: React.ReactNode;
19
+ details: React.ReactNode;
20
+ expanded: boolean;
21
+ onSummaryClick: React.MouseEventHandler<HTMLDivElement>;
22
+ className?: string;
23
+ dataTestIdDetails?: string;
24
+ }
25
+ export interface IDetailsContainerProps {
26
+ expanded: boolean;
27
+ }
@@ -0,0 +1 @@
1
+ export declare const Button: ({ children, ...props }: React.ButtonHTMLAttributes<HTMLButtonElement>) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,16 @@
1
+ /****************************************************************************
2
+ * Copyright 2021 EPAM Systems
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ ***************************************************************************/
16
+ export { Button } from './Button';
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ export declare const StyledButton: import("@emotion/styled").StyledComponent<{
3
+ theme?: import("@emotion/react").Theme | undefined;
4
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
5
+ }, import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {}>;
@@ -0,0 +1,17 @@
1
+ /****************************************************************************
2
+ * Copyright 2021 EPAM Systems
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ ***************************************************************************/
16
+ import { IIconButtonProps } from './types';
17
+ export declare const IconButton: ({ iconName, ...props }: IIconButtonProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,17 @@
1
+ /****************************************************************************
2
+ * Copyright 2021 EPAM Systems
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ ***************************************************************************/
16
+ import { IIconButtonBaseProps } from './types';
17
+ export declare const IconButtonBase: ({ onClick, shortcut, title, className, isActive, isHidden, disabled, testId, children, }: IIconButtonBaseProps) => import("react/jsx-runtime").JSX.Element | null;
@@ -0,0 +1,17 @@
1
+ /****************************************************************************
2
+ * Copyright 2021 EPAM Systems
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ ***************************************************************************/
16
+ import { IIconButtonCustomIconProps } from './types';
17
+ export declare const IconButtonCustomIcon: ({ link, ...props }: IIconButtonCustomIconProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,17 @@
1
+ /****************************************************************************
2
+ * Copyright 2021 EPAM Systems
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ ***************************************************************************/
16
+ export { IconButton } from './IconButton';
17
+ export { IconButtonCustomIcon } from './IconButtonCustomIcon';
@@ -0,0 +1,28 @@
1
+ /****************************************************************************
2
+ * Copyright 2021 EPAM Systems
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ ***************************************************************************/
16
+ /// <reference types="react" />
17
+ import { IStyledButtonProps } from './types';
18
+ export declare const StyledButton: import("@emotion/styled").StyledComponent<{
19
+ theme?: import("@emotion/react").Theme | undefined;
20
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
21
+ } & IStyledButtonProps, import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {}>;
22
+ export declare const StyledIcon: import("@emotion/styled").StyledComponent<import("../../Icon/types").IIconProps & {
23
+ theme?: import("@emotion/react").Theme | undefined;
24
+ }, {}, {}>;
25
+ export declare const StyledCustomIcon: import("@emotion/styled").StyledComponent<{
26
+ theme?: import("@emotion/react").Theme | undefined;
27
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
28
+ }, import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, {}>;
@@ -0,0 +1,40 @@
1
+ /****************************************************************************
2
+ * Copyright 2021 EPAM Systems
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ ***************************************************************************/
16
+ import { IconName } from '../../Icon/types';
17
+ import { ReactNode } from 'react';
18
+ export interface IIconButtonBaseProps {
19
+ onClick: (e: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
20
+ title?: string;
21
+ className?: string;
22
+ isHidden?: boolean;
23
+ disabled?: boolean;
24
+ isActive?: boolean;
25
+ shortcut?: string;
26
+ testId?: string;
27
+ children: ReactNode;
28
+ }
29
+ declare type IIconButtonBasePropsWithoutChildren = Omit<IIconButtonBaseProps, 'children'>;
30
+ export interface IIconButtonProps extends IIconButtonBasePropsWithoutChildren {
31
+ iconName: IconName;
32
+ }
33
+ export interface IIconButtonCustomIconProps extends IIconButtonBasePropsWithoutChildren {
34
+ link: string;
35
+ }
36
+ export interface IStyledButtonProps {
37
+ isActive: boolean;
38
+ testId?: string;
39
+ }
40
+ export {};
@@ -0,0 +1,17 @@
1
+ /****************************************************************************
2
+ * Copyright 2021 EPAM Systems
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ ***************************************************************************/
16
+ export * from './IconButton';
17
+ export * from './Button';
@@ -0,0 +1,45 @@
1
+ /****************************************************************************
2
+ * Copyright 2021 EPAM Systems
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ ***************************************************************************/
16
+ import { FC, PropsWithChildren, ReactElement } from 'react';
17
+ interface DialogParamsCallProps {
18
+ onCancel: () => void;
19
+ onOk: (result: unknown) => void;
20
+ }
21
+ export interface DialogParams extends DialogParamsCallProps {
22
+ className?: string;
23
+ isNestedModal?: boolean;
24
+ }
25
+ interface DialogProps {
26
+ title?: string;
27
+ params: DialogParams;
28
+ buttons?: Array<string | ReactElement>;
29
+ className?: string;
30
+ needMargin?: boolean;
31
+ withDivider?: boolean;
32
+ headerContent?: ReactElement;
33
+ footerContent?: ReactElement;
34
+ buttonsNameMap?: {
35
+ [key in string]: string;
36
+ };
37
+ focusable?: boolean;
38
+ }
39
+ interface DialogCallProps {
40
+ result?: () => unknown;
41
+ valid?: () => boolean;
42
+ }
43
+ declare type Props = DialogProps & DialogCallProps;
44
+ export declare const Dialog: FC<PropsWithChildren & Props>;
45
+ export {};
@@ -0,0 +1,16 @@
1
+ /****************************************************************************
2
+ * Copyright 2021 EPAM Systems
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ ***************************************************************************/
16
+ export { Dialog } from './Dialog';
@@ -0,0 +1,18 @@
1
+ /****************************************************************************
2
+ * Copyright 2021 EPAM Systems
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ ***************************************************************************/
16
+ import { IIconProps } from './types';
17
+ declare const Icon: ({ name, className, onClick }: IIconProps) => import("react/jsx-runtime").JSX.Element;
18
+ export default Icon;
@@ -0,0 +1,19 @@
1
+ /****************************************************************************
2
+ * Copyright 2021 EPAM Systems
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ ***************************************************************************/
16
+ import Icon from './Icon';
17
+ import { IconName } from './types';
18
+ import { getIconName } from './utils/getIconName';
19
+ export { Icon, getIconName, type IconName };
@@ -0,0 +1,26 @@
1
+ /****************************************************************************
2
+ * Copyright 2021 EPAM Systems
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ ***************************************************************************/
16
+ import { iconNameToIcon } from './utils/iconNameToIcon';
17
+ import { MouseEvent } from 'react';
18
+ export declare type SvgComponent = React.FunctionComponent<React.SVGProps<SVGSVGElement> & {
19
+ title?: string | undefined;
20
+ }>;
21
+ export declare type IconName = keyof typeof iconNameToIcon;
22
+ export interface IIconProps {
23
+ name: IconName;
24
+ className?: string;
25
+ onClick?: (e: MouseEvent) => void;
26
+ }
@@ -0,0 +1,17 @@
1
+ /****************************************************************************
2
+ * Copyright 2021 EPAM Systems
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ ***************************************************************************/
16
+ import { IconName, SvgComponent } from '../types';
17
+ export declare const getIconByName: (name: IconName) => SvgComponent;
@@ -0,0 +1,17 @@
1
+ /****************************************************************************
2
+ * Copyright 2021 EPAM Systems
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ ***************************************************************************/
16
+ import { IconName } from '../types';
17
+ export declare const getIconName: (name: string) => IconName | null;