tycho-components 0.1.0-SNAPSHOT-7 → 0.1.0

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 (285) hide show
  1. package/README.md +2 -93
  2. package/dist/AppCard/AppCard.d.ts +13 -0
  3. package/dist/AppCard/AppCard.js +7 -0
  4. package/dist/AppCard/index.d.ts +2 -0
  5. package/dist/AppCard/index.js +2 -0
  6. package/dist/AppCard/style.scss +33 -0
  7. package/dist/AppClipboard/AppClipboard.d.ts +7 -0
  8. package/dist/AppClipboard/AppClipboard.js +23 -0
  9. package/dist/AppClipboard/index.d.ts +2 -0
  10. package/dist/AppClipboard/index.js +2 -0
  11. package/dist/AppCopyText/AppCopyText.d.ts +11 -0
  12. package/dist/AppCopyText/AppCopyText.js +35 -0
  13. package/dist/AppCopyText/index.d.ts +2 -0
  14. package/dist/AppCopyText/index.js +2 -0
  15. package/dist/AppCopyText/styles.scss +54 -0
  16. package/dist/AppDropzone/AppDropzone.d.ts +4 -7
  17. package/dist/AppDropzone/AppDropzone.js +8 -45
  18. package/dist/AppDropzone/AppDropzoneBody.d.ts +15 -0
  19. package/dist/AppDropzone/AppDropzoneBody.js +53 -0
  20. package/dist/AppDropzone/UploadedFile.d.ts +2 -11
  21. package/dist/AppDropzone/index.d.ts +3 -0
  22. package/dist/AppDropzone/index.js +2 -0
  23. package/dist/AppDropzone/style.scss +37 -0
  24. package/dist/AppKeyboard/AppKeyboard.d.ts +7 -0
  25. package/dist/AppKeyboard/AppKeyboard.js +10 -0
  26. package/dist/AppKeyboard/index.d.ts +2 -0
  27. package/dist/AppKeyboard/index.js +2 -0
  28. package/dist/AppLoading/AppLoading.d.ts +6 -1
  29. package/dist/AppLoading/AppLoading.js +4 -2
  30. package/dist/AppLoading/style.scss +4 -3
  31. package/dist/AppModal/AppModal.d.ts +5 -1
  32. package/dist/AppModal/AppModal.js +22 -2
  33. package/dist/AppModal/AppModalConfirm.d.ts +6 -3
  34. package/dist/AppModal/AppModalConfirm.js +30 -15
  35. package/dist/AppModal/AppModalRemove.d.ts +3 -1
  36. package/dist/AppModal/AppModalRemove.js +17 -2
  37. package/dist/AppModal/AppModalUtils.d.ts +2 -0
  38. package/dist/AppModal/AppModalUtils.js +17 -0
  39. package/dist/AppModal/style.scss +4 -0
  40. package/dist/AppPagination/AppPagination.d.ts +3 -1
  41. package/dist/AppPagination/AppPagination.js +6 -3
  42. package/dist/AppPagination/styles.scss +30 -10
  43. package/dist/AppPlaceholder/AppPlaceholder.d.ts +5 -2
  44. package/dist/AppPlaceholder/AppPlaceholder.js +4 -3
  45. package/dist/AppPlaceholder/style.scss +19 -11
  46. package/dist/AppTable/AppTable.d.ts +5 -4
  47. package/dist/AppTable/AppTable.js +23 -20
  48. package/dist/AppTable/{AppListTable.d.ts → AppTableList.d.ts} +1 -1
  49. package/dist/AppTable/{AppListTable.js → AppTableList.js} +13 -4
  50. package/dist/AppTable/styles.scss +28 -17
  51. package/dist/AppTable/types/AppPage.d.ts +5 -0
  52. package/dist/AppTable/types/AppPage.js +2 -1
  53. package/dist/AppToast/AppToast.js +7 -4
  54. package/dist/Base/ErrorBoundary.d.ts +7 -0
  55. package/dist/Base/ErrorBoundary.js +51 -0
  56. package/dist/Base/NotFound.d.ts +2 -0
  57. package/dist/Base/NotFound.js +13 -0
  58. package/dist/Base/style.scss +77 -0
  59. package/dist/CytoscapeMenu/CytoscapeMenuCanvas.d.ts +18 -0
  60. package/dist/CytoscapeMenu/CytoscapeMenuCanvas.js +95 -0
  61. package/dist/CytoscapeMenu/constants.d.ts +38 -0
  62. package/dist/CytoscapeMenu/constants.js +15 -0
  63. package/dist/CytoscapeMenu/context-menu.d.ts +78 -0
  64. package/dist/CytoscapeMenu/context-menu.js +408 -0
  65. package/dist/CytoscapeMenu/cytoscape-context-menus.d.ts +22 -0
  66. package/dist/CytoscapeMenu/cytoscape-context-menus.js +328 -0
  67. package/dist/CytoscapeMenu/index.d.ts +6 -0
  68. package/dist/CytoscapeMenu/index.js +13 -0
  69. package/dist/CytoscapeMenu/style.scss +47 -0
  70. package/dist/CytoscapeMenu/utils.d.ts +17 -0
  71. package/dist/CytoscapeMenu/utils.js +72 -0
  72. package/dist/Header/Header.d.ts +5 -12
  73. package/dist/Header/Header.js +5 -23
  74. package/dist/Header/HeaderApps/HeaderApps.d.ts +1 -5
  75. package/dist/Header/HeaderApps/HeaderApps.js +9 -31
  76. package/dist/Header/HeaderApps/style.scss +46 -1
  77. package/dist/Header/HelpButton/HelpButton.d.ts +10 -0
  78. package/dist/Header/HelpButton/HelpButton.js +10 -0
  79. package/dist/Header/HelpButton/HelpModal.d.ts +8 -0
  80. package/dist/Header/HelpButton/HelpModal.js +34 -0
  81. package/dist/Header/HelpButton/index.d.ts +1 -0
  82. package/dist/Header/HelpButton/index.js +1 -0
  83. package/dist/Header/HelpButton/style.scss +55 -0
  84. package/dist/Header/styles.scss +29 -15
  85. package/dist/LanguageSelector/LanguageSelector.d.ts +8 -1
  86. package/dist/LanguageSelector/LanguageSelector.js +6 -12
  87. package/dist/LanguageSelector/index.d.ts +2 -0
  88. package/dist/LanguageSelector/index.js +1 -0
  89. package/dist/LanguageSelector/styles.scss +1 -22
  90. package/dist/TreeView/TreeView.d.ts +18 -0
  91. package/dist/TreeView/TreeView.js +163 -0
  92. package/dist/TreeView/TreeViewSearch/TreeViewSearch.d.ts +18 -0
  93. package/dist/TreeView/TreeViewSearch/TreeViewSearch.js +102 -0
  94. package/dist/TreeView/TreeViewSearch/TreeViewSearchField.d.ts +11 -0
  95. package/dist/TreeView/TreeViewSearch/TreeViewSearchField.js +19 -0
  96. package/dist/TreeView/TreeViewSearch/style.scss +49 -0
  97. package/dist/TreeView/cytoscape/Configuration.d.ts +18 -0
  98. package/dist/TreeView/cytoscape/Configuration.js +22 -0
  99. package/dist/TreeView/cytoscape/CytoscapePositionCalculator.d.ts +10 -0
  100. package/dist/TreeView/cytoscape/CytoscapePositionCalculator.js +63 -0
  101. package/dist/TreeView/cytoscape/CytoscapeStylesheet.d.ts +3 -0
  102. package/dist/TreeView/cytoscape/CytoscapeStylesheet.js +113 -0
  103. package/dist/TreeView/cytoscape/CytoscapeTreeConverter.d.ts +29 -0
  104. package/dist/TreeView/cytoscape/CytoscapeTreeConverter.js +352 -0
  105. package/dist/TreeView/cytoscape/NodeBounds.d.ts +7 -0
  106. package/dist/TreeView/cytoscape/NodeCalculation.d.ts +15 -0
  107. package/dist/TreeView/cytoscape/NodeCalculation.js +1 -0
  108. package/dist/TreeView/cytoscape/NormalizedPosition.d.ts +8 -0
  109. package/dist/TreeView/cytoscape/NormalizedPosition.js +13 -0
  110. package/dist/TreeView/cytoscape/SyntreesCytoscape.d.ts +15 -0
  111. package/dist/TreeView/cytoscape/SyntreesCytoscape.js +71 -0
  112. package/dist/TreeView/cytoscape/TreeLayout.d.ts +64 -0
  113. package/dist/TreeView/cytoscape/TreeLayout.js +353 -0
  114. package/dist/TreeView/functions/SentenceUtils.d.ts +12 -0
  115. package/dist/TreeView/functions/SentenceUtils.js +75 -0
  116. package/dist/TreeView/index.d.ts +2 -0
  117. package/dist/TreeView/index.js +2 -0
  118. package/dist/TreeView/style.scss +68 -0
  119. package/dist/VirtualKeyboard/KeyboardCustomLayout.d.ts +4 -0
  120. package/dist/VirtualKeyboard/KeyboardCustomLayout.js +33 -0
  121. package/dist/VirtualKeyboard/VirtualKeyboard.js +76 -5
  122. package/dist/configs/CookieStorage.d.ts +5 -0
  123. package/dist/configs/CookieStorage.js +17 -0
  124. package/dist/configs/Localization.d.ts +198 -227
  125. package/dist/configs/Localization.js +14 -6
  126. package/dist/configs/Storage.d.ts +6 -0
  127. package/dist/configs/Storage.js +13 -0
  128. package/dist/configs/localization/BaseTexts.d.ts +26 -0
  129. package/dist/configs/localization/BaseTexts.js +26 -0
  130. package/dist/configs/localization/CommonTexts.d.ts +58 -16
  131. package/dist/configs/localization/CommonTexts.js +58 -16
  132. package/dist/configs/localization/HeaderTexts.d.ts +18 -104
  133. package/dist/configs/localization/HeaderTexts.js +32 -118
  134. package/dist/configs/localization/HelpTexts.d.ts +32 -0
  135. package/dist/configs/localization/HelpTexts.js +32 -0
  136. package/dist/configs/localization/TreeTexts.d.ts +43 -0
  137. package/dist/configs/localization/TreeTexts.js +43 -0
  138. package/dist/configs/mock/MockStructs.d.ts +5 -0
  139. package/dist/configs/mock/MockStructs.js +1299 -0
  140. package/dist/configs/store/actions.d.ts +4 -5
  141. package/dist/configs/store/actions.js +0 -10
  142. package/dist/configs/store/reducer.js +9 -11
  143. package/dist/configs/store/store.js +0 -2
  144. package/dist/configs/store/types.d.ts +5 -7
  145. package/dist/configs/store/types.js +0 -2
  146. package/dist/configs/types/App.d.ts +10 -0
  147. package/dist/configs/types/App.js +25 -0
  148. package/dist/configs/types/SentenceStatus.d.ts +11 -0
  149. package/dist/configs/types/SentenceStatus.js +9 -0
  150. package/dist/configs/types/Struct.d.ts +86 -0
  151. package/dist/configs/types/Struct.js +1 -0
  152. package/dist/configs/types/Tree.d.ts +17 -0
  153. package/dist/configs/types/Tree.js +1 -0
  154. package/dist/configs/types/logo.png +0 -0
  155. package/dist/configs/useMessageUtils.d.ts +4 -3
  156. package/dist/configs/useMessageUtils.js +28 -14
  157. package/dist/cytoscape-context-menus.d.ts +5 -0
  158. package/dist/cytoscape-context-menus.js +5 -0
  159. package/dist/index.d.ts +21 -31
  160. package/dist/index.js +16 -23
  161. package/dist/styles/main.scss +11 -39
  162. package/package.json +30 -30
  163. package/dist/AppColorpicker/AppColorpicker.d.ts +0 -10
  164. package/dist/AppColorpicker/AppColorpicker.js +0 -21
  165. package/dist/AppColorpicker/index.d.ts +0 -2
  166. package/dist/AppColorpicker/index.js +0 -2
  167. package/dist/AppColorpicker/style.scss +0 -38
  168. package/dist/AppDropzone/UploadService.d.ts +0 -6
  169. package/dist/AppDropzone/UploadService.js +0 -18
  170. package/dist/AppEditable/AppEditable.d.ts +0 -18
  171. package/dist/AppEditable/AppEditable.js +0 -105
  172. package/dist/AppEditable/AppEditableField.d.ts +0 -7
  173. package/dist/AppEditable/FormField.d.ts +0 -16
  174. package/dist/AppEditable/FormField.js +0 -8
  175. package/dist/AppEditable/FormFieldOption.d.ts +0 -7
  176. package/dist/AppEditable/FormFieldOption.js +0 -23
  177. package/dist/AppEditable/index.d.ts +0 -2
  178. package/dist/AppEditable/index.js +0 -2
  179. package/dist/AppEditable/style.scss +0 -94
  180. package/dist/AppPicture/AppPicture.d.ts +0 -9
  181. package/dist/AppPicture/AppPicture.js +0 -16
  182. package/dist/AppPicture/index.d.ts +0 -2
  183. package/dist/AppPicture/index.js +0 -2
  184. package/dist/AppPicture/style.scss +0 -0
  185. package/dist/AppSelect/AppSelect.d.ts +0 -9
  186. package/dist/AppSelect/AppSelect.js +0 -20
  187. package/dist/AppSelect/index.d.ts +0 -2
  188. package/dist/AppSelect/index.js +0 -2
  189. package/dist/AppSelect/style.scss +0 -0
  190. package/dist/Comments/CommentAdd.d.ts +0 -16
  191. package/dist/Comments/CommentAdd.js +0 -73
  192. package/dist/Comments/CommentInfo.d.ts +0 -11
  193. package/dist/Comments/CommentInfo.js +0 -31
  194. package/dist/Comments/Comments.d.ts +0 -12
  195. package/dist/Comments/Comments.js +0 -89
  196. package/dist/Comments/HeaderNotifications/HeaderNotifications.d.ts +0 -7
  197. package/dist/Comments/HeaderNotifications/HeaderNotifications.js +0 -39
  198. package/dist/Comments/HeaderNotifications/index.d.ts +0 -2
  199. package/dist/Comments/HeaderNotifications/index.js +0 -2
  200. package/dist/Comments/HeaderNotifications/style.scss +0 -102
  201. package/dist/Comments/index.d.ts +0 -2
  202. package/dist/Comments/index.js +0 -2
  203. package/dist/Comments/style.scss +0 -162
  204. package/dist/Comments/types/Comment.d.ts +0 -35
  205. package/dist/Comments/types/Comment.js +0 -11
  206. package/dist/Comments/types/CommentService.d.ts +0 -21
  207. package/dist/Comments/types/CommentService.js +0 -40
  208. package/dist/Dummy/Dummy.d.ts +0 -9
  209. package/dist/Dummy/Dummy.js +0 -8
  210. package/dist/Dummy/index.d.ts +0 -2
  211. package/dist/Dummy/index.js +0 -2
  212. package/dist/Dummy/styles.scss +0 -4
  213. package/dist/Header/HeaderCorpora/HeaderCorpora.d.ts +0 -9
  214. package/dist/Header/HeaderCorpora/HeaderCorpora.js +0 -60
  215. package/dist/Header/HeaderCorpora/index.d.ts +0 -2
  216. package/dist/Header/HeaderCorpora/index.js +0 -2
  217. package/dist/Header/HeaderCorpora/style.scss +0 -59
  218. package/dist/Header/HeaderReplaceAll/HeaderReplaceAll.d.ts +0 -2
  219. package/dist/Header/HeaderReplaceAll/HeaderReplaceAll.js +0 -31
  220. package/dist/Header/HeaderReplaceAll/index.d.ts +0 -2
  221. package/dist/Header/HeaderReplaceAll/index.js +0 -2
  222. package/dist/Header/HeaderReplaceAll/style.scss +0 -24
  223. package/dist/Header/HeaderUser/HeaderUser.d.ts +0 -6
  224. package/dist/Header/HeaderUser/HeaderUser.js +0 -19
  225. package/dist/Header/HeaderUser/index.d.ts +0 -2
  226. package/dist/Header/HeaderUser/index.js +0 -2
  227. package/dist/Header/HeaderUser/style.scss +0 -26
  228. package/dist/Header/types/App.d.ts +0 -13
  229. package/dist/Header/types/App.js +0 -65
  230. package/dist/Header/types/CorpusService.d.ts +0 -6
  231. package/dist/Header/types/CorpusService.js +0 -8
  232. package/dist/LanguageSelector/flags/br.svg +0 -45
  233. package/dist/LanguageSelector/flags/it.svg +0 -7
  234. package/dist/LanguageSelector/flags/us.svg +0 -9
  235. package/dist/Participants/ParticipantCreate/ParticipantCreate.d.ts +0 -9
  236. package/dist/Participants/ParticipantCreate/ParticipantCreate.js +0 -45
  237. package/dist/Participants/ParticipantCreate/index.d.ts +0 -2
  238. package/dist/Participants/ParticipantCreate/index.js +0 -2
  239. package/dist/Participants/ParticipantCreate/style.scss +0 -32
  240. package/dist/Participants/ParticipantRemove/ParticipantRemove.d.ts +0 -11
  241. package/dist/Participants/ParticipantRemove/ParticipantRemove.js +0 -39
  242. package/dist/Participants/ParticipantRemove/index.d.ts +0 -2
  243. package/dist/Participants/ParticipantRemove/index.js +0 -2
  244. package/dist/Participants/ParticipantRemove/style.scss +0 -15
  245. package/dist/Participants/Participants.d.ts +0 -10
  246. package/dist/Participants/Participants.js +0 -58
  247. package/dist/Participants/index.d.ts +0 -2
  248. package/dist/Participants/index.js +0 -2
  249. package/dist/Participants/style.scss +0 -44
  250. package/dist/Participants/types/Participant.d.ts +0 -28
  251. package/dist/Participants/types/Participant.js +0 -27
  252. package/dist/Participants/types/ParticipantService.d.ts +0 -11
  253. package/dist/Participants/types/ParticipantService.js +0 -16
  254. package/dist/configs/Corpus.d.ts +0 -47
  255. package/dist/configs/Corpus.js +0 -10
  256. package/dist/configs/CorpusImage.d.ts +0 -10
  257. package/dist/configs/CorpusImage.js +0 -5
  258. package/dist/configs/User.d.ts +0 -21
  259. package/dist/configs/User.js +0 -13
  260. package/dist/configs/api.d.ts +0 -2
  261. package/dist/configs/api.js +0 -38
  262. package/dist/configs/localization/CommentsTexts.d.ts +0 -64
  263. package/dist/configs/localization/CommentsTexts.js +0 -64
  264. package/dist/configs/localization/ParticipantsTexts.d.ts +0 -53
  265. package/dist/configs/localization/ParticipantsTexts.js +0 -53
  266. package/dist/configs/useCorpusUtils.d.ts +0 -7
  267. package/dist/configs/useCorpusUtils.js +0 -25
  268. package/dist/configs/useLoggedUtils.d.ts +0 -10
  269. package/dist/configs/useLoggedUtils.js +0 -52
  270. package/dist/functions/DateUtils.d.ts +0 -9
  271. package/dist/functions/DateUtils.js +0 -43
  272. package/dist/functions/FilterUtils.d.ts +0 -13
  273. package/dist/functions/FilterUtils.js +0 -56
  274. package/dist/functions/FormUtils.d.ts +0 -11
  275. package/dist/functions/FormUtils.js +0 -56
  276. package/dist/functions/ImageUtils.d.ts +0 -5
  277. package/dist/functions/ImageUtils.js +0 -12
  278. package/dist/functions/SecurityUtils.d.ts +0 -6
  279. package/dist/functions/SecurityUtils.js +0 -28
  280. package/dist/functions/UsabilityUtils.d.ts +0 -9
  281. package/dist/functions/UsabilityUtils.js +0 -41
  282. package/dist/functions/placeholder-image.png +0 -0
  283. package/dist/styles/_variables.scss +0 -67
  284. package/dist/styles/bootstrap.min.css +0 -9871
  285. /package/dist/{AppEditable/AppEditableField.js → TreeView/cytoscape/NodeBounds.js} +0 -0
package/README.md CHANGED
@@ -1,93 +1,2 @@
1
- # Storybook
2
-
3
-
4
-
5
- ## Getting started
6
-
7
- To make it easy for you to get started with GitLab, here's a list of recommended next steps.
8
-
9
- Already a pro? Just edit this README.md and make it your own. Want to make it easy? [Use the template at the bottom](#editing-this-readme)!
10
-
11
- ## Add your files
12
-
13
- - [ ] [Create](https://docs.gitlab.com/ee/user/project/repository/web_editor.html#create-a-file) or [upload](https://docs.gitlab.com/ee/user/project/repository/web_editor.html#upload-a-file) files
14
- - [ ] [Add files using the command line](https://docs.gitlab.com/ee/gitlab-basics/add-file.html#add-a-file-using-the-command-line) or push an existing Git repository with the following command:
15
-
16
- ```
17
- cd existing_repo
18
- git remote add origin https://gitlab.com/tycho-brahe/storybook.git
19
- git branch -M main
20
- git push -uf origin main
21
- ```
22
-
23
- ## Integrate with your tools
24
-
25
- - [ ] [Set up project integrations](https://gitlab.com/tycho-brahe/storybook/-/settings/integrations)
26
-
27
- ## Collaborate with your team
28
-
29
- - [ ] [Invite team members and collaborators](https://docs.gitlab.com/ee/user/project/members/)
30
- - [ ] [Create a new merge request](https://docs.gitlab.com/ee/user/project/merge_requests/creating_merge_requests.html)
31
- - [ ] [Automatically close issues from merge requests](https://docs.gitlab.com/ee/user/project/issues/managing_issues.html#closing-issues-automatically)
32
- - [ ] [Enable merge request approvals](https://docs.gitlab.com/ee/user/project/merge_requests/approvals/)
33
- - [ ] [Set auto-merge](https://docs.gitlab.com/ee/user/project/merge_requests/merge_when_pipeline_succeeds.html)
34
-
35
- ## Test and Deploy
36
-
37
- Use the built-in continuous integration in GitLab.
38
-
39
- - [ ] [Get started with GitLab CI/CD](https://docs.gitlab.com/ee/ci/quick_start/index.html)
40
- - [ ] [Analyze your code for known vulnerabilities with Static Application Security Testing (SAST)](https://docs.gitlab.com/ee/user/application_security/sast/)
41
- - [ ] [Deploy to Kubernetes, Amazon EC2, or Amazon ECS using Auto Deploy](https://docs.gitlab.com/ee/topics/autodevops/requirements.html)
42
- - [ ] [Use pull-based deployments for improved Kubernetes management](https://docs.gitlab.com/ee/user/clusters/agent/)
43
- - [ ] [Set up protected environments](https://docs.gitlab.com/ee/ci/environments/protected_environments.html)
44
-
45
- ***
46
-
47
- # Editing this README
48
-
49
- When you're ready to make this README your own, just edit this file and use the handy template below (or feel free to structure it however you want - this is just a starting point!). Thanks to [makeareadme.com](https://www.makeareadme.com/) for this template.
50
-
51
- ## Suggestions for a good README
52
-
53
- Every project is different, so consider which of these sections apply to yours. The sections used in the template are suggestions for most open source projects. Also keep in mind that while a README can be too long and detailed, too long is better than too short. If you think your README is too long, consider utilizing another form of documentation rather than cutting out information.
54
-
55
- ## Name
56
- Choose a self-explaining name for your project.
57
-
58
- ## Description
59
- Let people know what your project can do specifically. Provide context and add a link to any reference visitors might be unfamiliar with. A list of Features or a Background subsection can also be added here. If there are alternatives to your project, this is a good place to list differentiating factors.
60
-
61
- ## Badges
62
- On some READMEs, you may see small images that convey metadata, such as whether or not all the tests are passing for the project. You can use Shields to add some to your README. Many services also have instructions for adding a badge.
63
-
64
- ## Visuals
65
- Depending on what you are making, it can be a good idea to include screenshots or even a video (you'll frequently see GIFs rather than actual videos). Tools like ttygif can help, but check out Asciinema for a more sophisticated method.
66
-
67
- ## Installation
68
- Within a particular ecosystem, there may be a common way of installing things, such as using Yarn, NuGet, or Homebrew. However, consider the possibility that whoever is reading your README is a novice and would like more guidance. Listing specific steps helps remove ambiguity and gets people to using your project as quickly as possible. If it only runs in a specific context like a particular programming language version or operating system or has dependencies that have to be installed manually, also add a Requirements subsection.
69
-
70
- ## Usage
71
- Use examples liberally, and show the expected output if you can. It's helpful to have inline the smallest example of usage that you can demonstrate, while providing links to more sophisticated examples if they are too long to reasonably include in the README.
72
-
73
- ## Support
74
- Tell people where they can go to for help. It can be any combination of an issue tracker, a chat room, an email address, etc.
75
-
76
- ## Roadmap
77
- If you have ideas for releases in the future, it is a good idea to list them in the README.
78
-
79
- ## Contributing
80
- State if you are open to contributions and what your requirements are for accepting them.
81
-
82
- For people who want to make changes to your project, it's helpful to have some documentation on how to get started. Perhaps there is a script that they should run or some environment variables that they need to set. Make these steps explicit. These instructions could also be useful to your future self.
83
-
84
- You can also document commands to lint the code or run tests. These steps help to ensure high code quality and reduce the likelihood that the changes inadvertently break something. Having instructions for running tests is especially helpful if it requires external setup, such as starting a Selenium server for testing in a browser.
85
-
86
- ## Authors and acknowledgment
87
- Show your appreciation to those who have contributed to the project.
88
-
89
- ## License
90
- For open source projects, say how it is licensed.
91
-
92
- ## Project status
93
- If you have run out of energy or time for your project, put a note at the top of the README saying that development has slowed down or stopped completely. Someone may choose to fork your project or volunteer to step in as a maintainer or owner, allowing your project to keep going. You can also make an explicit request for maintainers.
1
+ # storybook
2
+ Repository for NPM package
@@ -0,0 +1,13 @@
1
+ import { DropdownMenuItem } from 'tycho-storybook/dist/DropdownMenu/DropdownMenu';
2
+ import './style.scss';
3
+ type Props = {
4
+ title?: string | React.ReactNode;
5
+ children: React.ReactNode;
6
+ extraHeaderActions?: React.ReactNode;
7
+ footer?: React.ReactNode;
8
+ options?: DropdownMenuItem[];
9
+ className?: string;
10
+ onClick?: () => void;
11
+ };
12
+ export default function AppCard({ title, children, extraHeaderActions, footer, options, className, onClick, }: Props): import("react/jsx-runtime").JSX.Element;
13
+ export {};
@@ -0,0 +1,7 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import cx from 'classnames';
3
+ import { DropdownMenu } from 'tycho-storybook';
4
+ import './style.scss';
5
+ export default function AppCard({ title, children, extraHeaderActions, footer, options, className, onClick, }) {
6
+ return (_jsxs("div", { className: cx('ds-app-card', className), onClick: onClick, children: [title && (_jsxs("div", { className: "header", children: [_jsx("div", { className: "title", children: title }), extraHeaderActions && (_jsx("div", { className: "extra-header-actions", children: extraHeaderActions })), options && _jsx(DropdownMenu, { list: options })] })), _jsx("div", { className: "body", children: children }), footer && _jsx("div", { className: "footer", children: footer })] }));
7
+ }
@@ -0,0 +1,2 @@
1
+ import AppCard from './AppCard';
2
+ export default AppCard;
@@ -0,0 +1,2 @@
1
+ import AppCard from './AppCard';
2
+ export default AppCard;
@@ -0,0 +1,33 @@
1
+ .ds-app-card {
2
+ border: 1px solid var(--border-subtle-1);
3
+ border-radius: var(--radius-100);
4
+
5
+ > .header {
6
+ display: flex;
7
+ align-items: center;
8
+ justify-content: space-between;
9
+ padding: 8px 16px;
10
+ background-color: var(--layer-layer-2);
11
+ border-bottom: 1px solid var(--border-subtle-1);
12
+ gap: 12px;
13
+
14
+ > .title {
15
+ @include label-large-2;
16
+ flex: 1;
17
+ }
18
+
19
+ > .extra-header-actions {
20
+ display: flex;
21
+ }
22
+ }
23
+
24
+ > .body {
25
+ padding: 16px;
26
+ }
27
+
28
+ > .footer {
29
+ display: flex;
30
+ padding: 8px 16px;
31
+ border-top: 1px solid var(--border-subtle-1);
32
+ }
33
+ }
@@ -0,0 +1,7 @@
1
+ import { ButtonDSSizes } from 'tycho-storybook/dist/Button/Button';
2
+ type Props = {
3
+ text: string;
4
+ size?: ButtonDSSizes;
5
+ };
6
+ export default function AppClipboard({ text, size }: Props): import("react/jsx-runtime").JSX.Element;
7
+ export {};
@@ -0,0 +1,23 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { useState } from 'react';
3
+ import { useTranslation } from 'react-i18next';
4
+ import { IconButton } from 'tycho-storybook';
5
+ export default function AppClipboard({ text, size = 'x-small' }) {
6
+ const { t } = useTranslation('common');
7
+ const [copied, setCopied] = useState(false);
8
+ const handleCopy = () => {
9
+ navigator.clipboard
10
+ .writeText(text)
11
+ .then(() => {
12
+ setCopied(true);
13
+ setTimeout(() => {
14
+ setCopied(false);
15
+ }, 2000);
16
+ })
17
+ .catch((err) => {
18
+ console.error('Failed to copy text:', err);
19
+ });
20
+ };
21
+ const tooltipTitle = copied ? t('tooltip.copied') : t('tooltip.copy');
22
+ return (_jsx(IconButton, { name: "content_copy", title: tooltipTitle, onClick: handleCopy, size: size }));
23
+ }
@@ -0,0 +1,2 @@
1
+ import AppClipboard from './AppClipboard';
2
+ export default AppClipboard;
@@ -0,0 +1,2 @@
1
+ import AppClipboard from './AppClipboard';
2
+ export default AppClipboard;
@@ -0,0 +1,11 @@
1
+ import "./styles.scss";
2
+ export declare const TitlePositions: readonly ["top", "right"];
3
+ type TitlePosition = (typeof TitlePositions)[number];
4
+ export type Props = {
5
+ className?: string;
6
+ title?: string;
7
+ content: string;
8
+ titlePosition?: TitlePosition;
9
+ };
10
+ export default function AppCopyText({ className, title, content, titlePosition, }: Props): import("react/jsx-runtime").JSX.Element;
11
+ export {};
@@ -0,0 +1,35 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { useState } from "react";
3
+ import cx from "classnames";
4
+ import "./styles.scss";
5
+ import { Icon, Tooltip } from "tycho-storybook";
6
+ import { useTranslation } from "react-i18next";
7
+ export const TitlePositions = ["top", "right"];
8
+ export default function AppCopyText({ className, title, content, titlePosition = "right", }) {
9
+ const [copied, setCopied] = useState(false);
10
+ const [isHovered, setIsHovered] = useState(false);
11
+ const { t } = useTranslation("common");
12
+ const getClassNames = cx("ds-copy-text", className, {
13
+ "title-top": titlePosition === "top" && title,
14
+ "title-right": titlePosition === "right" && title,
15
+ "no-title": !title,
16
+ });
17
+ const handleClipboard = () => {
18
+ navigator.clipboard
19
+ .writeText(content)
20
+ .then(() => {
21
+ setCopied(true);
22
+ setTimeout(() => {
23
+ setCopied(false);
24
+ }, 2000);
25
+ })
26
+ .catch((err) => {
27
+ console.error("Failed to copy text:", err);
28
+ });
29
+ };
30
+ const tooltipTitle = copied ? t("tooltip.copied") : t("tooltip.copy");
31
+ const iconName = copied ? "check" : "content_copy";
32
+ const iconFilled = isHovered && !copied;
33
+ const contentElement = (_jsxs("div", { className: getClassNames, onClick: handleClipboard, onMouseEnter: () => setIsHovered(true), onMouseLeave: () => setIsHovered(false), children: [title && _jsx("span", { className: "ds-copy-text__title", children: title }), title && titlePosition === "right" && (_jsx("span", { className: "ds-copy-text__separator", children: "|" })), _jsxs("div", { className: "group-content", children: [_jsx("span", { className: "ds-copy-text__content", children: content }), _jsx(Icon, { name: iconName, size: "small", className: "ds-copy-text__icon", filled: iconFilled })] })] }));
34
+ return (_jsx(Tooltip, { title: tooltipTitle, placement: "top", mode: "simple", triggerOpen: copied ? true : undefined, children: contentElement }));
35
+ }
@@ -0,0 +1,2 @@
1
+ import AppCopyText from './AppCopyText';
2
+ export default AppCopyText;
@@ -0,0 +1,2 @@
1
+ import AppCopyText from './AppCopyText';
2
+ export default AppCopyText;
@@ -0,0 +1,54 @@
1
+ .ds-copy-text {
2
+ display: flex;
3
+ align-items: center;
4
+ gap: 4px;
5
+ cursor: pointer;
6
+
7
+ &__title {
8
+ @include helper-small-1;
9
+ color: var(--text-secondary);
10
+ }
11
+
12
+ &__separator {
13
+ color: var(--text-secondary);
14
+ }
15
+
16
+ &__content {
17
+ color: var(--text-primary);
18
+ @include body-small-1;
19
+ }
20
+
21
+ &__icon {
22
+ color: var(--icon-accent);
23
+ transition: all 0.2s ease;
24
+ }
25
+
26
+ &:hover {
27
+ .ds-copy-text__icon {
28
+ color: var(--text-primary);
29
+ background-color: var(--button-secondary-default);
30
+ }
31
+ }
32
+
33
+ .group-content {
34
+ display: flex;
35
+ align-items: center;
36
+ gap: 4px;
37
+ }
38
+
39
+ &.title-top {
40
+ flex-direction: column;
41
+ align-items: flex-start;
42
+ gap: var(--spacing-50, 4px);
43
+ }
44
+
45
+ &.title-right {
46
+ flex-direction: row;
47
+ }
48
+
49
+ &.no-title {
50
+ .ds-copy-text__separator {
51
+ display: none;
52
+ }
53
+ }
54
+ }
@@ -1,18 +1,15 @@
1
- import './style.scss';
2
- import { UploadedFile } from './UploadedFile';
1
+ import type { UploadedFile } from './UploadedFile';
3
2
  type Props = {
4
- folder: string;
5
3
  onClose: () => void;
6
- onSuccess: (response: UploadedFile) => void;
7
- onError?: (err: any) => void;
4
+ onSuccess: (files: UploadedFile[]) => void;
5
+ onError?: (err: unknown) => void;
8
6
  accept: Record<string, string[]>;
9
7
  onDrop?: () => void;
10
- keepName?: boolean;
11
8
  title?: string;
12
9
  alternativeButton?: {
13
10
  title: string;
14
11
  action: () => void;
15
12
  };
16
13
  };
17
- export default function AppDropzone({ folder, onClose, onSuccess, onError, accept, onDrop, keepName, title, alternativeButton, }: Props): import("react/jsx-runtime").JSX.Element;
14
+ export default function AppDropzone({ onClose, onSuccess, onError, accept, onDrop, title, alternativeButton, }: Props): import("react/jsx-runtime").JSX.Element;
18
15
  export {};
@@ -1,50 +1,13 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { useContext, useState } from 'react';
3
- import Dropzone from 'react-dropzone';
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { useRef } from 'react';
4
3
  import { useTranslation } from 'react-i18next';
4
+ import AppDropzoneBody from './AppDropzoneBody';
5
5
  import AppModal from '../AppModal';
6
- import { useMessageUtils } from '../configs/useMessageUtils';
7
- import './style.scss';
8
- import UploadService from './UploadService';
9
- import CommonContext from '../configs/CommonContext';
10
- import { toastLoading } from '../configs/store/actions';
11
- export default function AppDropzone({ folder, onClose, onSuccess, onError, accept, onDrop, keepName, title, alternativeButton, }) {
6
+ export default function AppDropzone({ onClose, onSuccess, onError, accept, onDrop, title, alternativeButton, }) {
12
7
  const { t } = useTranslation('upload');
13
- const { state, dispatch } = useContext(CommonContext);
14
- const { dispatchError } = useMessageUtils();
15
- const [file, setFile] = useState();
16
- const [preview, setPreview] = useState();
17
- const isImageFile = (file) => {
18
- return file.type.startsWith('image/');
8
+ const bodyRef = useRef(null);
9
+ const handleConfirm = () => {
10
+ void bodyRef.current?.upload();
19
11
  };
20
- const handleDrop = async (files) => {
21
- const file = files[0];
22
- setFile(file);
23
- if (isImageFile(file))
24
- setPreview(URL.createObjectURL(file));
25
- onDrop && onDrop();
26
- };
27
- const upload = async () => {
28
- if (!file || state.toastLoading)
29
- return;
30
- dispatch(toastLoading(true));
31
- const data = new FormData();
32
- data.append('file', file);
33
- data.append('folder', folder);
34
- keepName && data.append('keepOriginalName', 'true');
35
- UploadService.execute(data)
36
- .then((r) => {
37
- onSuccess(r.data);
38
- })
39
- .catch((err) => {
40
- dispatchError({ err: 'error.uploading.image', t });
41
- onError && onError(err);
42
- })
43
- .finally(() => {
44
- dispatch(toastLoading(false));
45
- });
46
- };
47
- return (_jsx(AppModal, { title: title || t('modal.title'), className: "modal-upload", close: onClose, confirm: upload, alternativeButton: alternativeButton, children: _jsxs("div", { className: "dropzone-container", children: [!file && (_jsx(Dropzone, { onDrop: (acceptedFiles) => handleDrop(acceptedFiles), accept: accept, maxFiles: 1, children: ({ getRootProps, getInputProps }) => (_jsxs("div", { ...getRootProps(), className: "dropzone", children: [_jsx("input", { ...getInputProps() }), _jsx("span", { children: t('label.dropzone') })] })) })), file && preview && (_jsx("img", { className: "preview", src: preview, onLoad: () => {
48
- URL.revokeObjectURL(preview);
49
- } })), file && !preview && (_jsxs("div", { className: "uploaded-message", children: [_jsx("b", { children: t('label.uploaded.file') }), _jsx("span", { children: file.name }), _jsx("b", { children: t('label.confirm') })] }))] }) }));
12
+ return (_jsx(AppModal, { title: title || t('modal.title'), className: "modal-upload", close: onClose, confirm: handleConfirm, alternativeButton: alternativeButton, children: _jsx(AppDropzoneBody, { ref: bodyRef, onSuccess: onSuccess, onError: onError, accept: accept, onDrop: onDrop, showConfirmButton: false }) }));
50
13
  }
@@ -0,0 +1,15 @@
1
+ import './style.scss';
2
+ import type { UploadedFile } from './UploadedFile';
3
+ export type AppDropzoneBodyProps = {
4
+ onSuccess: (files: UploadedFile[]) => void;
5
+ onError?: (err: unknown) => void;
6
+ accept: Record<string, string[]>;
7
+ onDrop?: () => void;
8
+ /** When false, the confirm button is hidden (e.g. when used inside modal with its own confirm) */
9
+ showConfirmButton?: boolean;
10
+ };
11
+ export type AppDropzoneBodyRef = {
12
+ upload: () => Promise<void>;
13
+ };
14
+ declare const AppDropzoneBody: import("react").ForwardRefExoticComponent<AppDropzoneBodyProps & import("react").RefAttributes<AppDropzoneBodyRef>>;
15
+ export default AppDropzoneBody;
@@ -0,0 +1,53 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { forwardRef, useImperativeHandle, useRef, useState } from 'react';
3
+ import Dropzone from 'react-dropzone';
4
+ import { useTranslation } from 'react-i18next';
5
+ import { Button } from 'tycho-storybook';
6
+ import './style.scss';
7
+ function AppDropzoneBodyInner({ onSuccess, onError, accept, onDrop, showConfirmButton = true, }, ref) {
8
+ const { t } = useTranslation('upload');
9
+ const [files, setFiles] = useState([]);
10
+ const [isUploading, setIsUploading] = useState(false);
11
+ const filesRef = useRef([]);
12
+ filesRef.current = files;
13
+ const upload = async () => {
14
+ const currentFiles = filesRef.current;
15
+ if (currentFiles.length === 0 || isUploading)
16
+ return;
17
+ setIsUploading(true);
18
+ try {
19
+ const results = await Promise.all(currentFiles.map(async (file) => ({
20
+ name: file.name,
21
+ content: await file.text(),
22
+ })));
23
+ onSuccess(results);
24
+ }
25
+ catch (err) {
26
+ onError?.(err);
27
+ }
28
+ finally {
29
+ setIsUploading(false);
30
+ }
31
+ };
32
+ useImperativeHandle(ref, () => ({
33
+ upload,
34
+ }));
35
+ const handleDrop = (acceptedFiles) => {
36
+ if (acceptedFiles.length === 0)
37
+ return;
38
+ setFiles((prev) => [...prev, ...acceptedFiles]);
39
+ onDrop?.();
40
+ };
41
+ const clearFiles = () => setFiles([]);
42
+ const removeAt = (index) => {
43
+ setFiles((prev) => prev.filter((_, i) => i !== index));
44
+ };
45
+ return (_jsxs("div", { className: "dropzone-container", children: [files.length === 0 && (_jsx(Dropzone, { onDrop: handleDrop, accept: accept, multiple: true, children: ({ getRootProps, getInputProps }) => (_jsxs("div", { ...getRootProps(), className: "dropzone", children: [_jsx("input", { ...getInputProps() }), _jsx("span", { children: t('label.dropzone') })] })) })), files.length > 0 && (_jsxs("div", { className: "uploaded-message", children: [_jsx("b", { children: t('label.uploaded.file') }), _jsx("ul", { className: "uploaded-file-list", children: files.map((file, index) => (_jsxs("li", { children: [_jsx("span", { children: file.name }), _jsx("button", { type: "button", className: "uploaded-file-remove", onClick: (e) => {
46
+ e.stopPropagation();
47
+ removeAt(index);
48
+ }, "aria-label": t('common:button.remove', { defaultValue: 'Remove' }), children: "\u00D7" })] }, `${file.name}-${file.size}-${index}`))) }), _jsx("button", { type: "button", className: "uploaded-clear-all", onClick: clearFiles, children: t('label.clear.all', { defaultValue: 'Clear all' }) }), _jsx("b", { children: t('label.confirm') })] })), files.length > 0 && showConfirmButton && (_jsx(Button, { onClick: () => {
49
+ void upload();
50
+ }, text: t('common:button.confirm') }))] }));
51
+ }
52
+ const AppDropzoneBody = forwardRef(AppDropzoneBodyInner);
53
+ export default AppDropzoneBody;
@@ -1,14 +1,5 @@
1
+ /** One text file selected in the dropzone, with UTF-8 content read client-side. */
1
2
  export interface UploadedFile {
2
- url: string;
3
- path: string;
4
- filetype: string;
5
3
  name: string;
6
- original: string;
7
- width?: number;
8
- height?: number;
9
- type?: string;
10
- }
11
- export interface UploadedPreview {
12
- file: File;
13
- preview: any;
4
+ content: string;
14
5
  }
@@ -1,2 +1,5 @@
1
1
  import AppDropzone from './AppDropzone';
2
+ import AppDropzoneBody, { type AppDropzoneBodyProps, type AppDropzoneBodyRef } from './AppDropzoneBody';
3
+ import type { UploadedFile } from './UploadedFile';
2
4
  export default AppDropzone;
5
+ export { AppDropzoneBody, type AppDropzoneBodyProps, type AppDropzoneBodyRef, type UploadedFile, };
@@ -1,2 +1,4 @@
1
1
  import AppDropzone from './AppDropzone';
2
+ import AppDropzoneBody from './AppDropzoneBody';
2
3
  export default AppDropzone;
4
+ export { AppDropzoneBody, };
@@ -31,5 +31,42 @@
31
31
  border: 1px solid var(--border-subtle-3);
32
32
  border-radius: var(--radius-100);
33
33
  padding: 16px;
34
+ margin-top: var(--spacing-400);
35
+ }
36
+
37
+ .uploaded-file-list {
38
+ list-style: none;
39
+ margin: 0;
40
+ padding: 0;
41
+ text-align: left;
42
+
43
+ li {
44
+ display: flex;
45
+ align-items: center;
46
+ justify-content: space-between;
47
+ gap: 8px;
48
+ padding: 4px 0;
49
+ }
50
+ }
51
+
52
+ .uploaded-file-remove {
53
+ flex-shrink: 0;
54
+ border: none;
55
+ background: transparent;
56
+ cursor: pointer;
57
+ font-size: 1.25rem;
58
+ line-height: 1;
59
+ padding: 0 4px;
60
+ color: var(--text-secondary, inherit);
61
+ }
62
+
63
+ .uploaded-clear-all {
64
+ align-self: center;
65
+ border: none;
66
+ background: transparent;
67
+ cursor: pointer;
68
+ text-decoration: underline;
69
+ font: inherit;
70
+ color: var(--text-link, inherit);
34
71
  }
35
72
  }
@@ -0,0 +1,7 @@
1
+ import { ButtonDSModes } from 'tycho-storybook/dist/Button/Button';
2
+ type Props = {
3
+ buttonMode?: ButtonDSModes;
4
+ keyboardLayout?: string;
5
+ };
6
+ export default function AppKeyboard({ buttonMode, keyboardLayout, }: Props): import("react/jsx-runtime").JSX.Element;
7
+ export {};
@@ -0,0 +1,10 @@
1
+ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { useState } from 'react';
3
+ import { useTranslation } from 'react-i18next';
4
+ import { IconButton } from 'tycho-storybook';
5
+ import VirtualKeyboard from '../VirtualKeyboard';
6
+ export default function AppKeyboard({ buttonMode = 'filled', keyboardLayout, }) {
7
+ const { t } = useTranslation('header');
8
+ const [openKeyboard, setOpenKeyboard] = useState(false);
9
+ return (_jsxs(_Fragment, { children: [_jsx(IconButton, { onClick: () => setOpenKeyboard(!openKeyboard), name: "keyboard", size: "medium", title: t('tooltip.keyboard'), mode: buttonMode }), openKeyboard && (_jsx(VirtualKeyboard, { onClose: () => setOpenKeyboard(false), closeLabel: t('button.close'), defaultLayout: keyboardLayout || 'english' }))] }));
10
+ }
@@ -0,0 +1,2 @@
1
+ import AppKeyboard from './AppKeyboard';
2
+ export default AppKeyboard;
@@ -0,0 +1,2 @@
1
+ import AppKeyboard from './AppKeyboard';
2
+ export default AppKeyboard;
@@ -1,2 +1,7 @@
1
1
  import './style.scss';
2
- export default function AppLoading(): import("react/jsx-runtime").JSX.Element;
2
+ type Props = {
3
+ className?: string;
4
+ pageLoading?: boolean;
5
+ };
6
+ export default function AppLoading({ className, pageLoading, }: Props): import("react/jsx-runtime").JSX.Element;
7
+ export {};
@@ -1,6 +1,8 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
+ import cx from 'classnames';
2
3
  import ReactLoading from 'react-loading';
3
4
  import './style.scss';
4
- export default function AppLoading() {
5
- return (_jsx("div", { className: "loading-container", children: _jsx(ReactLoading, { type: "spinningBubbles", color: "blue", height: 50, width: 50 }) }));
5
+ export default function AppLoading({ className = '', pageLoading = false, }) {
6
+ const containerClassName = cx('loading-container', { 'page-loading': pageLoading }, className);
7
+ return (_jsx("div", { className: containerClassName, children: _jsx(ReactLoading, { type: "spinningBubbles", color: "blue", height: 50, width: 50 }) }));
6
8
  }
@@ -1,8 +1,9 @@
1
1
  .loading-container {
2
- height: 50vh;
3
- margin-top: calc(var(--spacing-xxlarge) + var(--spacing-large));
4
-
5
2
  display: flex;
6
3
  justify-content: center;
7
4
  align-items: center;
5
+
6
+ &.page-loading {
7
+ margin-top: 10%;
8
+ }
8
9
  }
@@ -11,6 +11,7 @@ type Props = {
11
11
  hideFooter?: boolean;
12
12
  disableCancel?: boolean;
13
13
  disableClose?: boolean;
14
+ disableEscapeClose?: boolean;
14
15
  confirmLabel?: string;
15
16
  closeLabel?: string;
16
17
  onEntered?: () => void;
@@ -18,6 +19,9 @@ type Props = {
18
19
  title: string;
19
20
  action: () => void;
20
21
  };
22
+ alternativeOptions?: React.ReactNode;
23
+ hideBackdrop?: boolean;
24
+ disableBackdropClose?: boolean;
21
25
  };
22
- export default function AppModal({ children, title, subtitle, className, close, confirm, disableConfirm, hideFooter, disableClose, disableCancel, confirmLabel, closeLabel, cancel, onEntered, alternativeButton, }: Props): import("react/jsx-runtime").JSX.Element;
26
+ export default function AppModal({ children, title, subtitle, className, close, confirm, disableConfirm, hideFooter, disableClose, disableEscapeClose, disableCancel, confirmLabel, closeLabel, cancel, onEntered, alternativeButton, hideBackdrop, alternativeOptions, disableBackdropClose, }: Props): import("react/jsx-runtime").JSX.Element;
23
27
  export {};