@layers-app/shared 0.1.5 → 0.2.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 (468) hide show
  1. package/dist/assets/enitityIcons/flow.svg.js +5 -0
  2. package/dist/assets/enitityIcons/form.svg.js +5 -0
  3. package/dist/assets/enitityIcons/index.d.ts +5 -0
  4. package/dist/assets/enitityIcons/page.svg.js +5 -0
  5. package/dist/assets/enitityIcons/sprint.svg.js +5 -0
  6. package/dist/assets/fileTypes/archieve.svg.js +4 -0
  7. package/dist/assets/fileTypes/archives.svg.js +5 -0
  8. package/dist/assets/fileTypes/audio.svg.js +5 -0
  9. package/dist/assets/fileTypes/code.svg.js +5 -0
  10. package/dist/assets/fileTypes/diagram.svg.js +4 -0
  11. package/dist/assets/fileTypes/documents.svg.js +4 -0
  12. package/dist/assets/fileTypes/documentsStorage.svg.js +5 -0
  13. package/dist/assets/fileTypes/docx.svg.js +4 -0
  14. package/dist/assets/fileTypes/folder.svg.js +4 -0
  15. package/dist/assets/fileTypes/images.svg.js +5 -0
  16. package/dist/assets/fileTypes/media.svg.js +4 -0
  17. package/dist/assets/fileTypes/other.svg.js +4 -0
  18. package/dist/assets/fileTypes/other.svg2.js +5 -0
  19. package/dist/assets/fileTypes/pptx.svg.js +4 -0
  20. package/dist/assets/fileTypes/presentation.svg.js +4 -0
  21. package/dist/assets/fileTypes/sheet.svg.js +4 -0
  22. package/dist/assets/fileTypes/videos.svg.js +5 -0
  23. package/dist/assets/fileTypes/xlsx.svg.js +4 -0
  24. package/dist/assets/images/flags/es.svg.js +4 -0
  25. package/dist/assets/images/flags/ru.svg.js +4 -0
  26. package/dist/assets/images/flags/us.svg.js +4 -0
  27. package/dist/assets/images/person.png.js +4 -0
  28. package/dist/assets/images/person2.png.js +4 -0
  29. package/dist/assets/images/person3.png.js +4 -0
  30. package/dist/assets/images/person4.png.js +4 -0
  31. package/dist/assets/jsons/emoji-categorized.json.js +4 -0
  32. package/dist/assets/jsons/icons.min.json.d.ts +1 -1
  33. package/dist/assets/jsons/icons.min.json.js +4 -0
  34. package/dist/assets/layers-logo-full.svg.js +5 -0
  35. package/dist/assets/layers-logo-icon.svg.js +5 -0
  36. package/dist/assets/logo-copyright.svg.js +5 -0
  37. package/dist/assets/svg/alertMan.svg.js +7 -0
  38. package/dist/assets/svg/default_icon.svg.js +4 -0
  39. package/dist/assets/svg/discord-icon.svg.js +5 -0
  40. package/dist/assets/svg/discord.svg.js +5 -0
  41. package/dist/assets/svg/dog.svg.js +5 -0
  42. package/dist/assets/svg/layers-logo-full.svg.js +4 -0
  43. package/dist/assets/svg/noData/404.svg.js +9 -0
  44. package/dist/assets/svg/noData/500.svg.js +5 -0
  45. package/dist/assets/svg/noData/empty.svg.js +5 -0
  46. package/dist/assets/svg/noData/folder.svg.js +5 -0
  47. package/dist/assets/svg/noData/noAccess.svg.js +7 -0
  48. package/dist/assets/svg/noData/noAnswers.svg.js +5 -0
  49. package/dist/assets/svg/noData/noCloud.svg.js +5 -0
  50. package/dist/assets/svg/noData/noComments.svg.js +5 -0
  51. package/dist/assets/svg/noData/noData.svg.js +5 -0
  52. package/dist/assets/svg/noData/noFlows.svg.js +5 -0
  53. package/dist/assets/svg/noData/noForms.svg.js +5 -0
  54. package/dist/assets/svg/noData/noGroups.svg.js +17 -0
  55. package/dist/assets/svg/noData/noImage.svg.js +5 -0
  56. package/dist/assets/svg/noData/noMembers.svg.js +7 -0
  57. package/dist/assets/svg/noData/noNotifications.svg.js +5 -0
  58. package/dist/assets/svg/noData/noResults.svg.js +5 -0
  59. package/dist/assets/svg/noData/noSearchResults.svg.js +5 -0
  60. package/dist/assets/svg/noData/noTaskResults.svg.js +5 -0
  61. package/dist/assets/svg/noData/noTasks.svg.js +5 -0
  62. package/dist/assets/svg/noData/noWorkspaces.svg.js +7 -0
  63. package/dist/assets/svg/noData/trash.svg.js +7 -0
  64. package/dist/assets/svg/notSuccessMan.svg.js +7 -0
  65. package/dist/assets/svg/successMan.svg.js +5 -0
  66. package/dist/assets/svg/telegram-icon.svg.js +5 -0
  67. package/dist/assets/svg/telegram.svg.js +5 -0
  68. package/dist/components/AlertsBlock/index.js +53 -0
  69. package/dist/components/AnimationWrapper/index.js +15 -0
  70. package/dist/components/AppContainer/AppContainer.d.ts +1 -1
  71. package/dist/components/AppContainer/AppContainer.js +56 -0
  72. package/dist/components/AppContainer/AppContainer.module.css.js +15 -0
  73. package/dist/components/AppContainer/components/AppSidebarButton.d.ts +1 -1
  74. package/dist/components/AppContainer/components/AppSidebarButton.js +44 -0
  75. package/dist/components/AppContainer/components/AppsSidebar/AppsSection.js +52 -0
  76. package/dist/components/AppContainer/components/AppsSidebar/AppsSidebar.d.ts +1 -1
  77. package/dist/components/AppContainer/components/AppsSidebar/AppsSidebar.js +16 -0
  78. package/dist/components/AppContainer/components/AppsSidebar/TopSection.js +67 -0
  79. package/dist/components/AppContainer/components/AppsSidebar/UserSection.js +80 -0
  80. package/dist/components/AppContainer/{Header.d.ts → components/Header.d.ts} +1 -1
  81. package/dist/components/AppContainer/components/Header.js +9 -0
  82. package/dist/components/AppContainer/components/Main.js +18 -0
  83. package/dist/components/AppContainer/components/NavbarContent.js +6 -0
  84. package/dist/components/AppContainer/components/RightSidebar.js +30 -0
  85. package/dist/components/AppContainer/components/SidebarToggleButton.js +27 -0
  86. package/dist/components/AppContainer/components/SlideAnimation.js +43 -0
  87. package/dist/components/AppContainer/components/ToolSidebar.d.ts +6 -2
  88. package/dist/components/AppContainer/components/ToolSidebar.js +84 -0
  89. package/dist/components/AppContainer/components/ToolbarNewButton.js +28 -0
  90. package/dist/components/AppContainer/components/menus/HelpMenu/HelpMenu.js +122 -0
  91. package/dist/components/AppContainer/components/menus/HelpMenu/HelpMenu.module.css.js +9 -0
  92. package/dist/components/AppContainer/components/menus/HelpMenu/WhatsNew.js +58 -0
  93. package/dist/components/AppContainer/components/menus/MoreMenu.js +42 -0
  94. package/dist/components/AppContainer/components/menus/UserMenu/MenuUserDropdown.d.ts +1 -1
  95. package/dist/components/AppContainer/components/menus/UserMenu/MenuUserDropdown.js +44 -0
  96. package/dist/components/AppContainer/hooks/useAppContainer.d.ts +1 -1
  97. package/dist/components/AppContainer/hooks/useAppContainer.js +60 -0
  98. package/dist/components/AppContainer/hooks/useAppContainerActionsStore.js +10 -0
  99. package/dist/components/AppContainer/hooks/useAppContainerDataStore.js +37 -0
  100. package/dist/components/AppContainer/hooks/useAppContainerStore.d.ts +2 -3
  101. package/dist/components/AppContainer/hooks/useAppContainerStore.js +62 -0
  102. package/dist/components/AppContainer/hooks/useSetAppContainerLayout.d.ts +2 -0
  103. package/dist/components/AppContainer/hooks/useSetAppContainerLayout.js +10 -0
  104. package/dist/components/AppContainer/types.d.ts +8 -4
  105. package/dist/components/AppShell/AppShell.js +18 -0
  106. package/dist/components/AppShell/AppShell.module.css.js +19 -0
  107. package/dist/components/AttachmentsGalleryModal/AttachmentsGalleryContext.d.ts +4 -2
  108. package/dist/components/AttachmentsGalleryModal/AttachmentsGalleryContext.js +39 -0
  109. package/dist/components/AttachmentsGalleryModal/AttachmentsGalleryModal.js +127 -0
  110. package/dist/components/AttachmentsGalleryModal/components/ErrorSection.js +14 -0
  111. package/dist/components/AttachmentsGalleryModal/components/GallerySlide.js +69 -0
  112. package/dist/components/AttachmentsGalleryModal/components/ModalFooter.js +13 -0
  113. package/dist/components/AttachmentsGalleryModal/components/ModalHeader.js +123 -0
  114. package/dist/components/AttachmentsGalleryModal/components/ShakePlayer/ShakaPlayer.d.ts +4 -1
  115. package/dist/components/AttachmentsGalleryModal/components/ShakePlayer/ShakaPlayer.js +41 -0
  116. package/dist/components/AttachmentsGalleryModal/components/ShakePlayer/ShakaPlayer.module.css.js +7 -0
  117. package/dist/components/AttachmentsGalleryModal/components/ShakePlayer/useShakePlayer.js +54 -0
  118. package/dist/components/AttachmentsGalleryModal/constants.d.ts +2 -1
  119. package/dist/components/AttachmentsGalleryModal/constants.js +21 -0
  120. package/dist/components/AttachmentsGalleryModal/helpers.d.ts +22 -0
  121. package/dist/components/AttachmentsGalleryModal/helpers.js +40 -0
  122. package/dist/components/AttachmentsGalleryModal/hooks/useDownloadFile.js +35 -0
  123. package/dist/components/AttachmentsGalleryModal/hooks/useEmblaCarousel.js +49 -0
  124. package/dist/components/AttachmentsGalleryModal/hooks/useGetPreviewUrl.js +28 -0
  125. package/dist/components/AttachmentsGalleryModal/hooks/usePanning.d.ts +10 -0
  126. package/dist/components/AttachmentsGalleryModal/hooks/usePanning.js +61 -0
  127. package/dist/components/AttachmentsGalleryModal/hooks/useZoomReset.js +16 -0
  128. package/dist/components/AttachmentsGalleryModal/styles.module.css.js +29 -0
  129. package/dist/components/BottomDrawerWithoutHeader/index.js +75 -0
  130. package/dist/components/BouncingLogo/BouncingLogo.js +22 -0
  131. package/dist/components/BouncingLogo/BouncingLogo.module.css.js +9 -0
  132. package/dist/components/CircleColorPicker/CircleColorPicker.js +72 -0
  133. package/dist/components/ColorPicker/ColorPicker.d.ts +1 -0
  134. package/dist/components/ColorPicker/ColorPicker.js +131 -0
  135. package/dist/components/ColorPicker/ColorPickerPopover.js +42 -0
  136. package/dist/components/CommentComposer/CommentEditorHotkeys.d.ts +1 -1
  137. package/dist/components/CommentComposer/CommentEditorHotkeys.js +61 -0
  138. package/dist/components/CommentComposer/index.d.ts +2 -1
  139. package/dist/components/CommentComposer/index.js +288 -0
  140. package/dist/components/CommentFilterMenu/index.js +92 -0
  141. package/dist/components/CommentsPanel/CommentsPanel.module.css.js +109 -0
  142. package/dist/components/CommentsPanel/components/CommentActionMenu.js +49 -0
  143. package/dist/components/CommentsPanel/components/CommentActions.js +151 -0
  144. package/dist/components/CommentsPanel/components/CommentPanelListItem.d.ts +2 -1
  145. package/dist/components/CommentsPanel/components/CommentPanelListItem.js +366 -0
  146. package/dist/components/CommentsPanel/components/CommentTabFilter.js +53 -0
  147. package/dist/components/CommentsPanel/components/CommentsEmptyPlaceholder.js +17 -0
  148. package/dist/components/CommentsPanel/components/CommentsFilterHeader.js +83 -0
  149. package/dist/components/CommentsPanel/components/CommentsListItemMenu.js +63 -0
  150. package/dist/components/CommentsPanel/components/CommentsPanelList.d.ts +2 -1
  151. package/dist/components/CommentsPanel/components/CommentsPanelList.js +74 -0
  152. package/dist/components/CommentsPanel/components/CommentsThreadReplyControls.js +108 -0
  153. package/dist/components/CommentsPanel/components/CommentsUploadFilesPreview.js +142 -0
  154. package/dist/components/CommentsPanel/components/Icon.js +29 -0
  155. package/dist/components/CommentsPanel/index.d.ts +2 -1
  156. package/dist/components/CommentsPanel/index.js +137 -0
  157. package/dist/components/CommentsPanel/store.js +32 -0
  158. package/dist/components/CommentsPanel/types.d.ts +5 -5
  159. package/dist/components/CommentsPanel/utils.js +189 -0
  160. package/dist/components/CommunitiesDialog/index.js +149 -0
  161. package/dist/components/CommunitiesDialog/styles.module.css.js +7 -0
  162. package/dist/components/Copyright/Copyright.module.css.js +7 -0
  163. package/dist/components/Copyright/index.d.ts +1 -2
  164. package/dist/components/Copyright/index.js +32 -0
  165. package/dist/components/CustomKBD/CustomKBD.module.css.js +7 -0
  166. package/dist/components/CustomKBD/index.js +40 -0
  167. package/dist/components/EmojiPicker/EmojiPanel.d.ts +1 -1
  168. package/dist/components/EmojiPicker/EmojiPanel.js +273 -0
  169. package/dist/components/EmojiPicker/EmojiPicker.d.ts +1 -0
  170. package/dist/components/EmojiPicker/EmojiPicker.js +222 -0
  171. package/dist/components/EmojiPicker/EmojiPicker.module.css.js +13 -0
  172. package/dist/components/EmojiPicker/IconsPanel.js +267 -0
  173. package/dist/components/EmojiPicker/constants.js +36 -0
  174. package/dist/components/EmojiPicker/custom-icons/StatusCancel.js +37 -0
  175. package/dist/components/EmojiPicker/custom-icons/StatusDone.js +29 -0
  176. package/dist/components/EmojiPicker/custom-icons/StatusProgress00.js +17 -0
  177. package/dist/components/EmojiPicker/custom-icons/StatusProgress10.js +20 -0
  178. package/dist/components/EmojiPicker/custom-icons/StatusProgress100.js +20 -0
  179. package/dist/components/EmojiPicker/custom-icons/StatusProgress20.js +26 -0
  180. package/dist/components/EmojiPicker/custom-icons/StatusProgress30.js +26 -0
  181. package/dist/components/EmojiPicker/custom-icons/StatusProgress40.js +26 -0
  182. package/dist/components/EmojiPicker/custom-icons/StatusProgress50.js +26 -0
  183. package/dist/components/EmojiPicker/custom-icons/StatusProgress60.js +26 -0
  184. package/dist/components/EmojiPicker/custom-icons/StatusProgress70.js +26 -0
  185. package/dist/components/EmojiPicker/custom-icons/StatusProgress80.js +26 -0
  186. package/dist/components/EmojiPicker/custom-icons/StatusProgress90.js +26 -0
  187. package/dist/components/EmojiPicker/custom-icons/customIcons.js +99 -0
  188. package/dist/components/EmojiPicker/getIconsList.d.ts +11 -0
  189. package/dist/components/EmojiPicker/getIconsList.js +32 -0
  190. package/dist/components/EmojiPicker/getRandomIcon.d.ts +1 -0
  191. package/dist/components/EmojiPicker/getRandomIcon.js +10 -0
  192. package/dist/components/EntityIcon.d.ts +2 -0
  193. package/dist/components/EntityIcon.js +95 -0
  194. package/dist/components/EntityTitle/EntityTitle.js +86 -0
  195. package/dist/components/EntityTitle/EntityTitle.module.css.js +9 -0
  196. package/dist/components/ErrorAlert/index.js +20 -0
  197. package/dist/components/ErrorPage/components/Error403.js +51 -0
  198. package/dist/components/ErrorPage/components/Error404.js +5 -0
  199. package/dist/components/ErrorPage/components/Error406.js +47 -0
  200. package/dist/components/ErrorPage/components/Error500.js +58 -0
  201. package/dist/components/ErrorPage/components/ErrorUndefined.js +44 -0
  202. package/dist/components/ErrorPage/index.js +25 -0
  203. package/dist/components/FilePicker/FilePicker.js +242 -0
  204. package/dist/components/FilePicker/FilePicker.module.css.js +13 -0
  205. package/dist/components/FilePicker/FilePickerGallery.js +38 -0
  206. package/dist/components/FilePicker/FilePickerGiphy.js +91 -0
  207. package/dist/components/FilePicker/FilePickerLink.js +48 -0
  208. package/dist/components/FilePicker/FilePickerSkeletonLoader.js +9 -0
  209. package/dist/components/FilePicker/FilePickerUnsplash.js +95 -0
  210. package/dist/components/FilePicker/FilePickerUpload.js +86 -0
  211. package/dist/components/FilePicker/api/giphyApi.js +26 -0
  212. package/dist/components/FilePicker/api/unsplashApi.js +29 -0
  213. package/dist/components/FilePicker/types.d.ts +1 -0
  214. package/dist/components/FormViewer/FormViewer.js +42 -0
  215. package/dist/components/FormViewer/FormViewer.module.css.js +37 -0
  216. package/dist/components/FormViewer/components/AllSlidesLayout.js +24 -0
  217. package/dist/components/FormViewer/components/Container.js +27 -0
  218. package/dist/components/FormViewer/components/ListFocusBox.js +22 -0
  219. package/dist/components/FormViewer/components/NavControls.js +58 -0
  220. package/dist/components/FormViewer/components/Navigation/Navigation.js +37 -0
  221. package/dist/components/FormViewer/components/OneSlideLayput.js +133 -0
  222. package/dist/components/FormViewer/components/Step.js +225 -0
  223. package/dist/components/FormViewer/components/StepDescription.js +73 -0
  224. package/dist/components/FormViewer/components/StepTitle.js +118 -0
  225. package/dist/components/FormViewer/components/fields/AddOptionButton.js +24 -0
  226. package/dist/components/FormViewer/components/fields/ButtonField/ButtonField.js +63 -0
  227. package/dist/components/FormViewer/components/fields/ButtonField/InnerButton.js +70 -0
  228. package/dist/components/FormViewer/components/fields/ChoiceField/ChoiceCard.js +35 -0
  229. package/dist/components/FormViewer/components/fields/ChoiceField/ChoiceField.js +135 -0
  230. package/dist/components/FormViewer/components/fields/ChoiceField/PictureChoiceCard.js +37 -0
  231. package/dist/components/FormViewer/components/fields/ChoiceField/PictureChoiceField.js +93 -0
  232. package/dist/components/FormViewer/components/fields/ConfirmButton.js +49 -0
  233. package/dist/components/FormViewer/components/fields/ConfirmField.js +21 -0
  234. package/dist/components/FormViewer/components/fields/DateField.js +31 -0
  235. package/dist/components/FormViewer/components/fields/DragOptions/DragOptions.js +81 -0
  236. package/dist/components/FormViewer/components/fields/DragOptions/DragOptions.module.css.js +7 -0
  237. package/dist/components/FormViewer/components/fields/DropdownField/DropdownField.js +117 -0
  238. package/dist/components/FormViewer/components/fields/DropdownField/DropdownField.module.css.js +7 -0
  239. package/dist/components/FormViewer/components/fields/EditableContent/EditableContent.js +70 -0
  240. package/dist/components/FormViewer/components/fields/EditableContent/EditableContent.module.css.js +7 -0
  241. package/dist/components/FormViewer/components/fields/EmailField.js +26 -0
  242. package/dist/components/FormViewer/components/fields/LocationField.js +27 -0
  243. package/dist/components/FormViewer/components/fields/LongTextField.js +48 -0
  244. package/dist/components/FormViewer/components/fields/MultipleChoice/MultipleChoiceCard.js +38 -0
  245. package/dist/components/FormViewer/components/fields/MultipleChoice/MultipleChoiceField.js +152 -0
  246. package/dist/components/FormViewer/components/fields/NumberField.js +28 -0
  247. package/dist/components/FormViewer/components/fields/PhoneField.js +24 -0
  248. package/dist/components/FormViewer/components/fields/ProgressLine.js +30 -0
  249. package/dist/components/FormViewer/components/fields/RatingField.js +33 -0
  250. package/dist/components/FormViewer/components/fields/SelectableCard/PictureSelectableCard.js +154 -0
  251. package/dist/components/FormViewer/components/fields/SelectableCard/SelectableCard.js +110 -0
  252. package/dist/components/FormViewer/components/fields/SelectableCard/SelectableCard.module.css.js +15 -0
  253. package/dist/components/FormViewer/components/fields/SliderField.js +31 -0
  254. package/dist/components/FormViewer/components/fields/StartButton.js +34 -0
  255. package/dist/components/FormViewer/components/fields/StartField.js +21 -0
  256. package/dist/components/FormViewer/components/fields/TextField.js +31 -0
  257. package/dist/components/FormViewer/components/fields/UploadField/UploadField.js +155 -0
  258. package/dist/components/FormViewer/components/fields/UploadField/UploadFile/UploadFile.js +62 -0
  259. package/dist/components/FormViewer/components/fields/UploadField/UploadFile/UploadFile.module.css.js +7 -0
  260. package/dist/components/FormViewer/components/fields/YesNoField.js +37 -0
  261. package/dist/components/FormViewer/constants/defaultTheme.js +41 -0
  262. package/dist/components/FormViewer/helpers/conditions.d.ts +1 -1
  263. package/dist/components/FormViewer/helpers/conditions.js +43 -0
  264. package/dist/components/FormViewer/helpers/controls.js +79 -0
  265. package/dist/components/FormViewer/helpers/cssScoping.js +10 -0
  266. package/dist/components/FormViewer/helpers/helpers.d.ts +1 -1
  267. package/dist/components/FormViewer/helpers/helpers.js +9 -0
  268. package/dist/components/FormViewer/helpers/slides.js +35 -0
  269. package/dist/components/FormViewer/helpers/staticClasses.js +48 -0
  270. package/dist/components/FormViewer/helpers/steps.d.ts +1 -1
  271. package/dist/components/FormViewer/helpers/steps.js +55 -0
  272. package/dist/components/FormViewer/helpers/themeUtils.js +8 -0
  273. package/dist/components/FormViewer/helpers/validation.js +87 -0
  274. package/dist/components/FormViewer/hooks/useActiveControl.js +9 -0
  275. package/dist/components/FormViewer/hooks/useActiveStep.d.ts +1 -1
  276. package/dist/components/FormViewer/hooks/useActiveStep.js +9 -0
  277. package/dist/components/FormViewer/hooks/useCreateFormContext.js +78 -0
  278. package/dist/components/FormViewer/hooks/useFormGlobalTheme.js +132 -0
  279. package/dist/components/FormViewer/hooks/useFormMobile.js +15 -0
  280. package/dist/components/FormViewer/hooks/useInterpolateText.js +57 -0
  281. package/dist/components/FormViewer/store/formStore.d.ts +6 -6
  282. package/dist/components/FormViewer/store/formStore.js +84 -0
  283. package/dist/components/FormViewer/store/formStoreApi.d.ts +3 -3
  284. package/dist/components/FormViewer/store/formStoreApi.js +383 -0
  285. package/dist/components/FormViewer/store/selectors.d.ts +342 -342
  286. package/dist/components/FormViewer/store/selectors.js +98 -0
  287. package/dist/components/FormViewer/types/form.js +40 -0
  288. package/dist/components/FormViewer/types/schemes.d.ts +22 -22
  289. package/dist/components/FormViewer/types/schemes.js +314 -0
  290. package/dist/components/ImageModal/ImageModal.js +165 -0
  291. package/dist/components/LanguagePicker/LanguagePicker.js +41 -0
  292. package/dist/components/LanguagePicker/LanguagePicker.module.css.js +7 -0
  293. package/dist/components/Loaders/BaseLoader.js +8 -0
  294. package/dist/components/Loaders/styles.module.css.js +9 -0
  295. package/dist/components/Logotype.js +40 -0
  296. package/dist/components/NavMenu/NavMenu.d.ts +4 -2
  297. package/dist/components/NavMenu/NavMenu.js +98 -0
  298. package/dist/components/NavMenu/NavMenu.module.css.js +23 -0
  299. package/dist/components/NavMenu/components/DnDItem.js +44 -0
  300. package/dist/components/NavMenu/components/DnDProvider.js +64 -0
  301. package/dist/components/NavMenu/components/DraggableOverlay.js +18 -0
  302. package/dist/components/NavMenu/components/NavMenuActionIcon.js +27 -0
  303. package/dist/components/NavMenu/components/NavMenuItem.d.ts +5 -0
  304. package/dist/components/NavMenu/components/NavMenuItem.js +179 -0
  305. package/dist/components/NavMenu/components/NavMenuLabel.js +18 -0
  306. package/dist/components/NavMenu/store.d.ts +12 -2
  307. package/dist/components/NavMenu/store.js +61 -0
  308. package/dist/components/NavMenu/types.d.ts +10 -3
  309. package/dist/components/NavbarResizer/NavbarResizer.js +42 -0
  310. package/dist/components/NavbarResizer/NavbarResizer.module.css.js +7 -0
  311. package/dist/components/NewColorPicker/components/Pallete.js +46 -0
  312. package/dist/components/NewColorPicker/components/Target.js +47 -0
  313. package/dist/components/NewColorPicker/index.js +92 -0
  314. package/dist/components/NoData/NoData.js +103 -0
  315. package/dist/components/NoData/NoData.module.css.js +7 -0
  316. package/dist/components/NotFound/NoFound.js +65 -0
  317. package/dist/components/NotPublicPanel/NotPublicPanel.js +53 -0
  318. package/dist/components/NotPublicPanel/NotPublicPanel.module.css.js +19 -0
  319. package/dist/components/Notification/Notification.js +117 -0
  320. package/dist/components/Notification/Notification.module.css.js +7 -0
  321. package/dist/components/Notification/NotificationCard.js +92 -0
  322. package/dist/components/OnBoarding/OnBoardingPage.js +80 -0
  323. package/dist/components/OnBoarding/ProjectBoard.js +141 -0
  324. package/dist/components/OnBoarding/StepsNavBar.js +21 -0
  325. package/dist/components/OnBoarding/steps/AddTasks/AddTasksNav.js +42 -0
  326. package/dist/components/OnBoarding/steps/AddTasks/TasksListBoard.js +51 -0
  327. package/dist/components/OnBoarding/steps/CreateFirstProject.js +45 -0
  328. package/dist/components/OnBoarding/steps/DefineStatuses/DefineStatusesNav.js +42 -0
  329. package/dist/components/OnBoarding/steps/DefineStatuses/StatusBadge.js +22 -0
  330. package/dist/components/OnBoarding/steps/DefineStatuses/StatusesListBoard.js +217 -0
  331. package/dist/components/OnBoarding/steps/DifferentLayouts/DifferentLayoutsBoard.js +16 -0
  332. package/dist/components/OnBoarding/steps/DifferentLayouts/DifferentLayoutsNav.js +56 -0
  333. package/dist/components/OnBoarding/steps/DifferentLayouts/KanbanLayout.js +272 -0
  334. package/dist/components/OnBoarding/steps/DifferentLayouts/styles.module.css.js +9 -0
  335. package/dist/components/OnBoarding/steps/InviteUsers/BoardModal.js +86 -0
  336. package/dist/components/OnBoarding/steps/InviteUsers/InviteUsers.js +26 -0
  337. package/dist/components/OnBoarding/steps/SelectCategory/CategorySelect.js +61 -0
  338. package/dist/components/OnBoarding/steps/SelectCategory/SelectCategoryNav.js +42 -0
  339. package/dist/components/OnBoarding/steps/StartedStep.js +71 -0
  340. package/dist/components/OnBoarding/steps/Wrapper.js +49 -0
  341. package/dist/components/OnBoarding/steps/styles.module.css.js +17 -0
  342. package/dist/components/OnBoarding/styles.module.css.js +15 -0
  343. package/dist/components/PaymentCancel/PaymentCancel.js +41 -0
  344. package/dist/components/PaymentError/PaymentError.js +41 -0
  345. package/dist/components/PaymentSuccess/PaymentSuccess.js +41 -0
  346. package/dist/components/PinModal/PinModal.js +90 -0
  347. package/dist/components/PinModal/slice.js +28 -0
  348. package/dist/components/ProjectIcon/ProjectIcon.d.ts +1 -0
  349. package/dist/components/ProjectIcon/ProjectIcon.js +88 -0
  350. package/dist/components/SearchFilters/SearchFilters.js +37 -0
  351. package/dist/components/SearchFilters/SearchFilters.module.css.js +9 -0
  352. package/dist/components/SearchFilters/components/DateFilter.js +199 -0
  353. package/dist/components/SearchFilters/components/SearchHelp.js +121 -0
  354. package/dist/components/SearchFilters/components/Sort.js +99 -0
  355. package/dist/components/SearchFilters/components/Type.js +124 -0
  356. package/dist/components/SortableList/SortableList.js +44 -0
  357. package/dist/components/SortableList/components/SortableItem/SortableItem.js +82 -0
  358. package/dist/components/StorageUsageEntityList/StorageEntityItem.js +62 -0
  359. package/dist/components/StorageUsageEntityList/StorageUsageEntityList.js +27 -0
  360. package/dist/components/StorageUsageProgress/index.js +52 -0
  361. package/dist/components/SubmitModal/index.js +12 -0
  362. package/dist/components/ThemeIndicator/index.js +21 -0
  363. package/dist/components/UserAvatar/index.d.ts +3 -2
  364. package/dist/components/UserAvatar/index.js +22 -0
  365. package/dist/components/WorkspaceAvatar/WorkspaceAvatar.js +22 -0
  366. package/dist/components/WorkspaceMenu/WorkspaceItem.js +41 -0
  367. package/dist/components/WorkspaceMenu/WorkspaceMenu.js +211 -0
  368. package/dist/components/modals/RemoveConfirmModal.d.ts +8 -1
  369. package/dist/components/modals/RemoveConfirmModal.js +68 -0
  370. package/dist/components/table/FrontTable.js +21 -0
  371. package/dist/components/table/api.js +248 -0
  372. package/dist/components/table/components/Table.js +139 -0
  373. package/dist/components/table/components/TableAggregation.js +31 -0
  374. package/dist/components/table/components/TableCell.js +55 -0
  375. package/dist/components/table/components/TableHeaderCell.js +159 -0
  376. package/dist/components/table/components/TableHeaders.js +99 -0
  377. package/dist/components/table/components/TableMenu.js +59 -0
  378. package/dist/components/table/components/TablePagination.js +52 -0
  379. package/dist/components/table/components/TablePanel.js +26 -0
  380. package/dist/components/table/components/TableRow.js +85 -0
  381. package/dist/components/table/components/TableRows.js +66 -0
  382. package/dist/components/table/components/TableSearch.js +32 -0
  383. package/dist/components/table/components/TableSkeleton.js +60 -0
  384. package/dist/components/table/components/TableTitle.js +26 -0
  385. package/dist/components/table/constants.js +28 -0
  386. package/dist/components/table/export.js +58 -0
  387. package/dist/components/table/helpers/columns.js +198 -0
  388. package/dist/components/table/helpers/formatters.js +65 -0
  389. package/dist/components/table/hooks/TableProvider.js +62 -0
  390. package/dist/components/table/hooks/useColumnsResizing.js +51 -0
  391. package/dist/components/table/hooks/useCreateTable.js +9 -0
  392. package/dist/components/table/hooks/useSaveRowCount.js +9 -0
  393. package/dist/components/table/hooks/useSorting.js +36 -0
  394. package/dist/components/table/hooks/useTableStore.js +6 -0
  395. package/dist/components/table/selectors.js +203 -0
  396. package/dist/components/table/store.js +65 -0
  397. package/dist/components/table/types.js +17 -0
  398. package/dist/constants.js +19 -0
  399. package/dist/helpers/combineStatuses.js +5 -0
  400. package/dist/helpers/dates.js +15 -0
  401. package/dist/helpers/download.js +17 -0
  402. package/dist/helpers/feature.js +7 -0
  403. package/dist/helpers/fileUtils.js +33 -0
  404. package/dist/helpers/filterHierarchyByTypes.js +13 -0
  405. package/dist/helpers/formatBytes.js +8 -0
  406. package/dist/helpers/generateLink.js +9 -0
  407. package/dist/helpers/getFileIcons.js +42 -0
  408. package/dist/helpers/getFileType.d.ts +1 -1
  409. package/dist/helpers/getFileType.js +40 -0
  410. package/dist/helpers/getPartOfTheDay.js +12 -0
  411. package/dist/helpers/getRandomIconColor.js +17 -0
  412. package/dist/helpers/hotjar.d.ts +9 -0
  413. package/dist/helpers/hotjar.js +19 -0
  414. package/dist/helpers/isAppMode.js +4 -0
  415. package/dist/helpers/pickRandomEmoji.d.ts +1 -0
  416. package/dist/helpers/pickRandomEmoji.js +12 -0
  417. package/dist/helpers/showNotifications.js +72 -0
  418. package/dist/helpers/themeUtils.js +5 -0
  419. package/dist/helpers/validation.js +38 -0
  420. package/dist/hooks/useAsyncStatus.d.ts +8 -0
  421. package/dist/hooks/useAsyncStatus.js +26 -0
  422. package/dist/hooks/useDateFnsLocale.js +13 -0
  423. package/dist/hooks/useDateUtils.js +33 -0
  424. package/dist/hooks/useDisableWindowScroll.js +24 -0
  425. package/dist/hooks/useEvent.js +12 -0
  426. package/dist/hooks/useFormatDistance.js +17 -0
  427. package/dist/hooks/useMenu.js +9 -0
  428. package/dist/hooks/useNumberQueryParam.js +14 -0
  429. package/dist/hooks/useOAuthErrorParams.js +16 -0
  430. package/dist/hooks/useOutsideClick.js +21 -0
  431. package/dist/hooks/useSwipeDetect.js +21 -0
  432. package/dist/index.css +1 -0
  433. package/dist/index.d.ts +70 -76
  434. package/dist/index.js +397 -259
  435. package/dist/lang/locales/ui_en.json.d.ts +6 -5
  436. package/dist/lang/locales/ui_en.json.js +19 -0
  437. package/dist/lang/locales/ui_es.json.d.ts +2 -1
  438. package/dist/lang/locales/ui_es.json.js +19 -0
  439. package/dist/lang/locales/ui_ru.json.d.ts +2 -1
  440. package/dist/lang/locales/ui_ru.json.js +19 -0
  441. package/dist/store/accessOptionsControl.js +10 -0
  442. package/dist/store/discordDialogStore.js +14 -0
  443. package/dist/store/onboarding.js +53 -0
  444. package/dist/store/plansModal.js +13 -0
  445. package/dist/store/searchModal.js +13 -0
  446. package/dist/store/timezoneStore.js +19 -0
  447. package/dist/store/workspacesOrder.js +17 -0
  448. package/dist/utils/formatStorage.js +8 -0
  449. package/dist/utils/getPlanBadgeColor.js +17 -0
  450. package/dist/utils/queryParams.js +15 -0
  451. package/docs/README.md +486 -0
  452. package/package.json +32 -11
  453. package/dist/KanbanLayout-BnHAvyHl.js +0 -297
  454. package/dist/components/AppContainer/hooks/useHideHeader.d.ts +0 -1
  455. package/dist/components/AppContainer/hooks/useHideSidebar.d.ts +0 -1
  456. package/dist/components/AppTour/AppTour.d.ts +0 -7
  457. package/dist/components/AppTour/FinishModal.d.ts +0 -1
  458. package/dist/components/AppTour/HelloModal.d.ts +0 -1
  459. package/dist/components/AppTour/hooks/useAppTour.d.ts +0 -2
  460. package/dist/components/AppTour/index.d.ts +0 -4
  461. package/dist/components/AppTour/types.d.ts +0 -17
  462. package/dist/emoji-categorized-CRsMUQyD.js +0 -4
  463. package/dist/helpers/pickRandomIcon.d.ts +0 -1
  464. package/dist/helpers/token.d.ts +0 -3
  465. package/dist/icons.min-wo13YUY4.js +0 -4
  466. package/dist/index-BawytWAK.js +0 -96715
  467. package/dist/index.umd.cjs +0 -356
  468. /package/dist/components/AppContainer/{Main.d.ts → components/Main.d.ts} +0 -0
@@ -0,0 +1,31 @@
1
+ import { jsxs as p, jsx as t } from "react/jsx-runtime";
2
+ import { useMemo as a } from "react";
3
+ import { Box as u, Slider as c, InputError as d } from "@mantine/core";
4
+ import { isNumber as m } from "lodash-es";
5
+ import { useSteps as f } from "../../hooks/useCreateFormContext.js";
6
+ const j = ({
7
+ control: l,
8
+ theme: i
9
+ }) => {
10
+ const { form: s } = f(), { id: e, min: r, max: o } = l, n = a(() => !m(r) || !m(o) || isNaN(r) || isNaN(o) ? [] : [
11
+ { value: r, label: r },
12
+ { value: o, label: o }
13
+ ], [r, o]);
14
+ return /* @__PURE__ */ p(u, { flex: 1, w: "100%", pb: 12, "data-control-id": e, children: [
15
+ /* @__PURE__ */ t(
16
+ c,
17
+ {
18
+ color: i?.primaryColor,
19
+ size: i?.size,
20
+ min: r,
21
+ max: o,
22
+ marks: n,
23
+ ...s.getInputProps(e)
24
+ }
25
+ ),
26
+ s.errors[e] && /* @__PURE__ */ t(d, { size: i?.size, mt: 4, children: s.errors[e] })
27
+ ] });
28
+ };
29
+ export {
30
+ j as SliderField
31
+ };
@@ -0,0 +1,34 @@
1
+ import { jsx as r } from "react/jsx-runtime";
2
+ import { useTranslation as p } from "react-i18next";
3
+ import { Button as u } from "@mantine/core";
4
+ import { ProjectIcon as c } from "../../../ProjectIcon/ProjectIcon.js";
5
+ import { STATIC_CLASSES as f } from "../../helpers/staticClasses.js";
6
+ import { useSteps as l } from "../../hooks/useCreateFormContext.js";
7
+ import { useFormViewerStore as S } from "../../store/formStore.js";
8
+ import { EditableContent as d } from "./EditableContent/EditableContent.js";
9
+ const x = ({
10
+ control: t,
11
+ stepId: i
12
+ }) => {
13
+ const { t: e } = p("forms"), { handleNext: m } = l(), { useStore: a, api: s } = S(), n = a((o) => o.editing);
14
+ return /* @__PURE__ */ r(
15
+ u,
16
+ {
17
+ className: f.SUBMIT_BUTTON,
18
+ leftSection: t.buttonIcon && t.showIconButton ? /* @__PURE__ */ r(c, { variant: "transparent", icon: t.buttonIcon }) : void 0,
19
+ onClick: n ? void 0 : m,
20
+ children: n ? /* @__PURE__ */ r(
21
+ d,
22
+ {
23
+ value: t.label?.trim() || e("start"),
24
+ onChange: (o) => {
25
+ s.updateControl(i, t.id, { label: o });
26
+ }
27
+ }
28
+ ) : t.label?.trim() || e("start")
29
+ }
30
+ );
31
+ };
32
+ export {
33
+ x as StartButton
34
+ };
@@ -0,0 +1,21 @@
1
+ import { jsx as i } from "react/jsx-runtime";
2
+ import { Flex as a } from "@mantine/core";
3
+ import { alignRelation as n } from "../../helpers/themeUtils.js";
4
+ import { StartButton as e } from "./StartButton.js";
5
+ const f = ({
6
+ control: r,
7
+ step: t,
8
+ theme: o
9
+ }) => t.isStart ? /* @__PURE__ */ i(
10
+ a,
11
+ {
12
+ justify: n[o?.align || "center"],
13
+ gap: 8,
14
+ wrap: "wrap",
15
+ "data-control-id": r.id,
16
+ children: /* @__PURE__ */ i(e, { control: r, stepId: t.id })
17
+ }
18
+ ) : null;
19
+ export {
20
+ f as StartField
21
+ };
@@ -0,0 +1,31 @@
1
+ import { jsx as r } from "react/jsx-runtime";
2
+ import { TextInput as d } from "@mantine/core";
3
+ import { ProjectIcon as f } from "../../../ProjectIcon/ProjectIcon.js";
4
+ import { controlsDataMap as l } from "../../helpers/controls.js";
5
+ import { STATIC_CLASSES as u } from "../../helpers/staticClasses.js";
6
+ import { DEFAULT_MAX as T, DEFAULT_MIN as L } from "../../helpers/steps.js";
7
+ import { useSteps as S } from "../../hooks/useCreateFormContext.js";
8
+ import { useInterpolateText as g } from "../../hooks/useInterpolateText.js";
9
+ import { useFormViewerStore as h } from "../../store/formStore.js";
10
+ const M = ({ control: t }) => {
11
+ const { form: n } = S(), { useStore: i } = h(), o = i((s) => s.editing), { id: e, minLength: m, maxLength: a, placeholder: p } = t, c = g(p, o);
12
+ return /* @__PURE__ */ r(
13
+ d,
14
+ {
15
+ "data-control-id": e,
16
+ w: "100%",
17
+ variant: "default",
18
+ className: u.BLOCK_INPUT_TEXT,
19
+ leftSection: t.icon ? /* @__PURE__ */ r(f, { icon: t.icon }) : l[t.controlType].icon,
20
+ minLength: m || L,
21
+ maxLength: a || T,
22
+ "data-autofocus": !0,
23
+ readOnly: o,
24
+ placeholder: c,
25
+ ...n.getInputProps(e)
26
+ }
27
+ );
28
+ };
29
+ export {
30
+ M as TextField
31
+ };
@@ -0,0 +1,155 @@
1
+ import { jsxs as v, jsx as i } from "react/jsx-runtime";
2
+ import { useCallback as S, useMemo as D } from "react";
3
+ import { useTranslation as V } from "react-i18next";
4
+ import { useMantineTheme as W, parseThemeColor as A, alpha as _, Stack as M, Group as $, Box as G, Text as L, InputError as X } from "@mantine/core";
5
+ import { Dropzone as h } from "@mantine/dropzone";
6
+ import { showNotification as f } from "@mantine/notifications";
7
+ import { IconUpload as q, IconX as H, IconCloudUpload as J } from "@tabler/icons-react";
8
+ import { formatBytes as C } from "../../../../../helpers/formatBytes.js";
9
+ import { useEvent as K } from "../../../../../hooks/useEvent.js";
10
+ import { getRandomId as P } from "../../../helpers/steps.js";
11
+ import { useSteps as Q } from "../../../hooks/useCreateFormContext.js";
12
+ import { useFormViewerStore as Y } from "../../../store/formStore.js";
13
+ import { UploadFile as Z } from "./UploadFile/UploadFile.js";
14
+ import ee from "../../../FormViewer.module.css.js";
15
+ const oe = 25 * 1024 * 1024, ye = ({
16
+ control: r,
17
+ theme: d
18
+ }) => {
19
+ const { t: o } = V("forms"), { form: a } = Q(), { id: s } = r, T = a.values[s], I = a.errors[s], m = r.maxSize || oe, t = r.maxFiles ?? 1, y = r.minFiles ?? 0, E = !!r.multiple || t > 1, l = r.accept && r.accept.length ? r.accept : void 0, { useStore: g } = Y(), R = g((e) => e.editing), U = g((e) => e.preview), b = W(), O = A({
20
+ color: d?.primaryColor || "",
21
+ theme: b
22
+ }), j = g((e) => e.uploadFileFn), F = K((e) => {
23
+ const c = a.values[s]?.findIndex(
24
+ (u) => u.id === e.id
25
+ );
26
+ c !== -1 && a.setFieldValue(`${s}.${c}`, e);
27
+ }), k = S(
28
+ (e) => {
29
+ if (e.some(
30
+ (p) => p.errors.some((n) => n.code === "file-invalid-type")
31
+ )) {
32
+ f({
33
+ color: "blue",
34
+ message: l ? o("uploadOption.typeNotSupportedWithList", {
35
+ types: l.join(", ")
36
+ }) : o("uploadOption.typeNotSupported")
37
+ });
38
+ return;
39
+ }
40
+ if (e.some(
41
+ (p) => p.errors.some((n) => n.code === "file-too-large")
42
+ )) {
43
+ f({
44
+ message: o("uploadOption.fileTooLarge", {
45
+ size: C(m)
46
+ })
47
+ });
48
+ return;
49
+ }
50
+ if (e.some(
51
+ (p) => p.errors.some((n) => n.code === "too-many-files")
52
+ )) {
53
+ f({
54
+ message: o("uploadOption.tooManyFiles", { count: t })
55
+ });
56
+ return;
57
+ }
58
+ },
59
+ [l, m, t, o]
60
+ ), x = S(
61
+ (e) => {
62
+ j?.(e).then((c) => {
63
+ F({
64
+ ...e,
65
+ url: c,
66
+ isError: !1,
67
+ isLoading: !1,
68
+ isSuccess: !0
69
+ });
70
+ }).catch(() => {
71
+ F({
72
+ ...e,
73
+ isError: !0,
74
+ isLoading: !1,
75
+ isSuccess: !1
76
+ });
77
+ });
78
+ },
79
+ [F, j]
80
+ ), w = S(
81
+ (e) => {
82
+ const c = a.values[s]?.length || 0, u = typeof t == "number" ? Math.max(0, t - c) : 1 / 0;
83
+ if (u === 0) {
84
+ f({
85
+ message: o("uploadOption.tooManyFiles", { count: t })
86
+ });
87
+ return;
88
+ }
89
+ const z = e.slice(0, u);
90
+ z.forEach((p) => {
91
+ const n = {
92
+ id: P(),
93
+ file: p,
94
+ isError: !1,
95
+ isLoading: !0,
96
+ isSuccess: !1
97
+ };
98
+ a.insertListItem(s, n), x(n);
99
+ }), z.length < e.length && f({
100
+ message: o("uploadOption.tooManyFiles", { count: t })
101
+ });
102
+ },
103
+ [a, x, s, t, o]
104
+ ), N = D(() => [
105
+ o("uploadOption.maxSize", { size: C(m) }),
106
+ y ? o("uploadOption.minFilesWithCount", { count: y }) : "",
107
+ t ? o("uploadOption.maxFilesWithCount", { count: t }) : "",
108
+ l ? o("uploadOption.accept", { types: l.join(", ") }) : ""
109
+ ].filter(Boolean).join(" · "), [y, t, l, o, m]), B = {
110
+ "--primary-color": O.value,
111
+ "--primary-color-hover": _(O.value, 0.05)
112
+ };
113
+ return /* @__PURE__ */ v(M, { gap: 8, "data-control-id": s, w: "100%", children: [
114
+ (T?.length ?? 0) < t && /* @__PURE__ */ i(
115
+ h,
116
+ {
117
+ radius: d?.borderRadius,
118
+ __size: d?.size,
119
+ disabled: R || U,
120
+ onDrop: w,
121
+ onReject: k,
122
+ maxFiles: t,
123
+ maxSize: m,
124
+ accept: l,
125
+ multiple: E,
126
+ unstyled: !0,
127
+ className: ee.dropzone,
128
+ style: B,
129
+ children: /* @__PURE__ */ i($, { justify: "center", py: 24, children: /* @__PURE__ */ v(M, { justify: "center", align: "center", gap: 8, children: [
130
+ /* @__PURE__ */ v(G, { c: "var(--primary-color)", children: [
131
+ /* @__PURE__ */ i(h.Accept, { children: /* @__PURE__ */ i(q, { size: 70, stroke: 1.2 }) }),
132
+ /* @__PURE__ */ i(h.Reject, { children: /* @__PURE__ */ i(H, { size: 70, stroke: 1.2 }) }),
133
+ /* @__PURE__ */ i(h.Idle, { children: /* @__PURE__ */ i(J, { size: 70, stroke: 1.2 }) })
134
+ ] }),
135
+ /* @__PURE__ */ i(L, { size: "xl", inline: !0, ta: "center", c: d?.title?.color, children: o("uploadOption.title") }),
136
+ /* @__PURE__ */ i(L, { size: "sm", c: d?.description?.color, mt: 4, children: N })
137
+ ] }) })
138
+ }
139
+ ),
140
+ T?.map((e) => /* @__PURE__ */ i(
141
+ Z,
142
+ {
143
+ file: e,
144
+ id: s,
145
+ onReload: x,
146
+ theme: d
147
+ },
148
+ e.id
149
+ )),
150
+ I && /* @__PURE__ */ i(X, { children: I })
151
+ ] });
152
+ };
153
+ export {
154
+ ye as UploadField
155
+ };
@@ -0,0 +1,62 @@
1
+ import { jsxs as c, jsx as e } from "react/jsx-runtime";
2
+ import { useTranslation as g } from "react-i18next";
3
+ import { Card as v, ThemeIcon as a, Box as w, Text as d, Loader as y, Tooltip as m, ActionIcon as u, Divider as T } from "@mantine/core";
4
+ import { IMAGE_MIME_TYPE as b } from "@mantine/dropzone";
5
+ import { IconFileText as C, IconCheck as k, IconReload as A, IconTrash as E } from "@tabler/icons-react";
6
+ import { formatBytes as B } from "../../../../../../helpers/formatBytes.js";
7
+ import { useSteps as L } from "../../../../hooks/useCreateFormContext.js";
8
+ import M from "./UploadFile.module.css.js";
9
+ const N = ({
10
+ file: r,
11
+ id: o,
12
+ onReload: h,
13
+ theme: i
14
+ }) => {
15
+ const { t } = g("forms"), { form: l } = L(), { isError: p, isLoading: f, isSuccess: n, url: s } = r, x = l.values[o].findIndex((z) => z.id === r.id), I = () => {
16
+ l.removeListItem(o, x);
17
+ };
18
+ return /* @__PURE__ */ c(
19
+ v,
20
+ {
21
+ withBorder: !0,
22
+ style: {
23
+ display: "flex",
24
+ flexDirection: "row",
25
+ alignItems: "center",
26
+ gap: 12
27
+ },
28
+ children: [
29
+ n && s && b.includes(r.file.type) ? /* @__PURE__ */ e(
30
+ "div",
31
+ {
32
+ className: M.image,
33
+ style: {
34
+ backgroundImage: `url(${window.location.origin}/v1/attachments/${s.id})`
35
+ },
36
+ "data-radius": i?.borderRadius
37
+ }
38
+ ) : /* @__PURE__ */ e(a, { size: 40, variant: "light", children: /* @__PURE__ */ e(C, { size: "50%" }) }),
39
+ /* @__PURE__ */ c(w, { miw: 0, flex: 1, children: [
40
+ /* @__PURE__ */ e(d, { truncate: !0, size: i?.size, children: r.file.name }),
41
+ /* @__PURE__ */ e(d, { c: "dimmed", size: "xs", children: B(r.file.size) })
42
+ ] }),
43
+ f && /* @__PURE__ */ e(y, { color: i?.primaryColor, size: 28 }),
44
+ n && /* @__PURE__ */ e(a, { color: "green", radius: "xl", children: /* @__PURE__ */ e(k, { size: 16 }) }),
45
+ p && /* @__PURE__ */ e(m, { label: t("retry"), withArrow: !0, children: /* @__PURE__ */ e(
46
+ u,
47
+ {
48
+ color: "red",
49
+ radius: "xl",
50
+ onClick: () => h?.(r),
51
+ children: /* @__PURE__ */ e(A, { size: 16 })
52
+ }
53
+ ) }),
54
+ /* @__PURE__ */ e(T, { orientation: "vertical" }),
55
+ /* @__PURE__ */ e(m, { label: t("delete"), withArrow: !0, children: /* @__PURE__ */ e(u, { color: "red", variant: "subtle", onClick: I, children: /* @__PURE__ */ e(E, { size: 18 }) }) })
56
+ ]
57
+ }
58
+ );
59
+ };
60
+ export {
61
+ N as UploadFile
62
+ };
@@ -0,0 +1,7 @@
1
+ const a = "_image_ta8bx_1", e = {
2
+ image: a
3
+ };
4
+ export {
5
+ e as default,
6
+ a as image
7
+ };
@@ -0,0 +1,37 @@
1
+ import { jsxs as c, jsx as t } from "react/jsx-runtime";
2
+ import { useTranslation as u } from "react-i18next";
3
+ import { Stack as h, Flex as p, Button as a, InputError as g } from "@mantine/core";
4
+ import { IconCheck as k, IconX as v } from "@tabler/icons-react";
5
+ import { isNil as f } from "lodash-es";
6
+ import { useSteps as x } from "../../hooks/useCreateFormContext.js";
7
+ const z = ({ control: o }) => {
8
+ const { t: i } = u("forms"), { setValue: l, form: n } = x(), r = n.values[o.id], { id: e, yesLabel: d, noLabel: m } = o, s = n.errors[e];
9
+ return /* @__PURE__ */ c(h, { gap: 8, "data-control-id": e, children: [
10
+ /* @__PURE__ */ c(p, { gap: 8, children: [
11
+ /* @__PURE__ */ t(
12
+ a,
13
+ {
14
+ leftSection: /* @__PURE__ */ t(k, { size: 16 }),
15
+ variant: f(r) ? "light" : r ? "filled" : "light",
16
+ onClick: () => l(e, !0),
17
+ fullWidth: !0,
18
+ children: d || i("yes")
19
+ }
20
+ ),
21
+ /* @__PURE__ */ t(
22
+ a,
23
+ {
24
+ leftSection: /* @__PURE__ */ t(v, { size: 16 }),
25
+ variant: f(r) || r ? "light" : "filled",
26
+ onClick: () => l(e, !1),
27
+ fullWidth: !0,
28
+ children: m || i("no")
29
+ }
30
+ )
31
+ ] }),
32
+ s && /* @__PURE__ */ t(g, { children: s })
33
+ ] });
34
+ };
35
+ export {
36
+ z as YesNoField
37
+ };
@@ -0,0 +1,41 @@
1
+ const o = {
2
+ align: "start",
3
+ listStyle: "disc",
4
+ input: {},
5
+ customCSS: "",
6
+ primaryColor: "#228BE6",
7
+ size: "md",
8
+ borderRadius: "md",
9
+ font: { fontFamily: "Roboto", fontWeight: 400 },
10
+ title: {
11
+ fontFamily: "Roboto",
12
+ fontWeight: 400,
13
+ fontSize: 20,
14
+ color: "var(--mantine-color-bright)"
15
+ },
16
+ description: {
17
+ fontFamily: "Roboto",
18
+ fontWeight: 400,
19
+ fontSize: 14,
20
+ color: "var(--mantine-color-bright)"
21
+ },
22
+ container: {
23
+ opacity: 1,
24
+ blur: 0,
25
+ color: "transparent",
26
+ shadowSize: 0,
27
+ shadowColor: "transparent"
28
+ },
29
+ background: {
30
+ color: "transparent",
31
+ image: void 0,
32
+ blur: 0,
33
+ brightness: 100,
34
+ opacity: 1,
35
+ fit: "cover",
36
+ blendMode: "normal"
37
+ }
38
+ };
39
+ export {
40
+ o as DEFAULT_THEME
41
+ };
@@ -253,6 +253,7 @@ export declare const getNextStep: (step: StepData, steps: StepData[], form: UseF
253
253
  fit?: string | undefined;
254
254
  blendMode?: string | undefined;
255
255
  } | undefined;
256
+ borderRadius?: "sm" | "md" | "lg" | undefined;
256
257
  container?: {
257
258
  color?: string | undefined;
258
259
  opacity?: number | undefined;
@@ -261,7 +262,6 @@ export declare const getNextStep: (step: StepData, steps: StepData[], form: UseF
261
262
  shadowSize?: number | undefined;
262
263
  shadowColor?: string | undefined;
263
264
  } | undefined;
264
- borderRadius?: "sm" | "md" | "lg" | undefined;
265
265
  font?: {
266
266
  color?: string | undefined;
267
267
  fontSize?: number | undefined;
@@ -0,0 +1,43 @@
1
+ import { isNil as s } from "lodash-es";
2
+ const p = (n, o, l) => {
3
+ const e = d(n, l.getValues()), i = o.find((t) => t.id === e), r = o.findIndex((t) => t.id === n.id);
4
+ return i ?? o[r + 1];
5
+ }, d = (n, o) => {
6
+ if (n.conditions?.length) {
7
+ const l = n.conditions.find((e) => {
8
+ const i = o[e.controlId];
9
+ if (e.operator === "empty" && s(i) || e.operator === "filledIn" && (i || i === 0))
10
+ return !0;
11
+ if (s(i) || s(e.compareValue))
12
+ return !1;
13
+ const r = i.toString().toLowerCase(), t = e.compareValue.toLowerCase();
14
+ if (e.operator === "is" && r === t || e.operator === "isNot" && r !== t || e.operator === "startsWidth" && r.startsWith(t) || e.operator === "endsWidth" && r.endsWith(t))
15
+ return !0;
16
+ });
17
+ if (l) return l.trigger;
18
+ }
19
+ return n.trigger;
20
+ }, f = {
21
+ choice: ["filledIn", "empty", "selected", "notSelected"],
22
+ pictureChoice: ["filledIn", "empty", "selected", "notSelected"],
23
+ dropdown: ["filledIn", "empty", "selected", "notSelected"],
24
+ multipleChoice: ["filledIn", "empty", "selected", "notSelected"],
25
+ location: ["filledIn", "empty", "is", "isNot", "startsWidth", "endsWidth"],
26
+ longText: ["filledIn", "empty", "is", "isNot", "startsWidth", "endsWidth"],
27
+ phone: ["filledIn", "empty", "is", "isNot", "startsWidth", "endsWidth"],
28
+ text: ["filledIn", "empty", "is", "isNot", "startsWidth", "endsWidth"],
29
+ email: ["filledIn", "empty", "is", "isNot", "startsWidth", "endsWidth"],
30
+ number: ["filledIn", "empty", "is", "isNot", "smallerWhen", "biggerWhen"],
31
+ slider: ["filledIn", "empty", "is", "isNot", "smallerWhen", "biggerWhen"],
32
+ date: ["filledIn", "empty", "is", "isNot"],
33
+ yesNo: ["filledIn", "empty", "is", "isNot"],
34
+ upload: ["filledIn", "empty"],
35
+ start: [],
36
+ confirm: [],
37
+ button: [],
38
+ rating: ["filledIn", "empty", "is", "isNot", "smallerWhen", "biggerWhen"]
39
+ };
40
+ export {
41
+ p as getNextStep,
42
+ f as operatorsRelation
43
+ };
@@ -0,0 +1,79 @@
1
+ import { jsx as o } from "react/jsx-runtime";
2
+ import { IconStar as e, IconClick as c, IconSquareCheck as i, IconCornerDownLeft as n, IconUpload as r, IconKeyframeAlignHorizontal as l, IconNumber as a, IconSelector as s, IconCards as m, IconLayoutGrid as t, IconVersions as z, IconCircleDashedCheck as d, IconMapPin as I, IconCalendarMonth as p, IconMail as g, IconPhone as u, IconTextPlus as h, IconFileText as C } from "@tabler/icons-react";
3
+ const f = {
4
+ text: {
5
+ icon: /* @__PURE__ */ o(C, { size: "1em" }),
6
+ color: "indigo"
7
+ },
8
+ longText: {
9
+ icon: /* @__PURE__ */ o(h, { size: "1em" }),
10
+ color: "indigo"
11
+ },
12
+ phone: {
13
+ icon: /* @__PURE__ */ o(u, { size: "1em" }),
14
+ color: "blue"
15
+ },
16
+ email: {
17
+ icon: /* @__PURE__ */ o(g, { size: "1em" }),
18
+ color: "blue"
19
+ },
20
+ date: {
21
+ icon: /* @__PURE__ */ o(p, { size: "1em" }),
22
+ color: "cyan"
23
+ },
24
+ location: {
25
+ icon: /* @__PURE__ */ o(I, { size: "1em" }),
26
+ color: "red"
27
+ },
28
+ yesNo: {
29
+ icon: /* @__PURE__ */ o(d, { size: "1em" }),
30
+ color: "grape"
31
+ },
32
+ choice: {
33
+ icon: /* @__PURE__ */ o(z, { size: "1em" }),
34
+ color: "grape"
35
+ },
36
+ pictureChoice: {
37
+ icon: /* @__PURE__ */ o(t, { size: "1em" }),
38
+ color: "grape"
39
+ },
40
+ multipleChoice: {
41
+ icon: /* @__PURE__ */ o(m, { size: "1em" }),
42
+ color: "grape"
43
+ },
44
+ dropdown: {
45
+ icon: /* @__PURE__ */ o(s, { size: "1em" }),
46
+ color: "grape"
47
+ },
48
+ number: {
49
+ icon: /* @__PURE__ */ o(a, { size: "1em" }),
50
+ color: "orange"
51
+ },
52
+ slider: {
53
+ icon: /* @__PURE__ */ o(l, { size: "1em" }),
54
+ color: "orange"
55
+ },
56
+ upload: {
57
+ icon: /* @__PURE__ */ o(r, { size: "1em" }),
58
+ color: "red"
59
+ },
60
+ start: {
61
+ icon: /* @__PURE__ */ o(n, { size: "1em" }),
62
+ color: "red"
63
+ },
64
+ confirm: {
65
+ icon: /* @__PURE__ */ o(i, { size: "1em" }),
66
+ color: "red"
67
+ },
68
+ button: {
69
+ icon: /* @__PURE__ */ o(c, { size: "1em" }),
70
+ color: "red"
71
+ },
72
+ rating: {
73
+ icon: /* @__PURE__ */ o(e, { size: "1em" }),
74
+ color: "red"
75
+ }
76
+ };
77
+ export {
78
+ f as controlsDataMap
79
+ };
@@ -0,0 +1,10 @@
1
+ const a = (t) => t.replace(/@import\s+[^;]+;/gi, "").replace(/url\(\s*(['"]?)(javascript|data):/gi, "url($1about:blank").replace(/position\s*:\s*fixed/gi, "position: absolute").replace(/z-index\s*:\s*(\d{4,})/gi, "z-index: 999"), p = (t, s) => t?.trim() ? a(t).split("}").map((o) => {
2
+ const [r, i] = o.split("{");
3
+ if (!r?.trim() || !i?.trim()) return "";
4
+ const e = r.trim();
5
+ return e.startsWith("@") ? `${e} { ${i.trim()} }` : `${e.split(",").map((n) => `${s} ${n.trim()}`).join(", ")} { ${i.trim()} }`;
6
+ }).filter(Boolean).join(`
7
+ `) : "";
8
+ export {
9
+ p as scopeCustomCss
10
+ };
@@ -252,6 +252,7 @@ export declare const sortSteps: (steps: StepData[]) => {
252
252
  fit?: string | undefined;
253
253
  blendMode?: string | undefined;
254
254
  } | undefined;
255
+ borderRadius?: "sm" | "md" | "lg" | undefined;
255
256
  container?: {
256
257
  color?: string | undefined;
257
258
  opacity?: number | undefined;
@@ -260,7 +261,6 @@ export declare const sortSteps: (steps: StepData[]) => {
260
261
  shadowSize?: number | undefined;
261
262
  shadowColor?: string | undefined;
262
263
  } | undefined;
263
- borderRadius?: "sm" | "md" | "lg" | undefined;
264
264
  font?: {
265
265
  color?: string | undefined;
266
266
  fontSize?: number | undefined;
@@ -0,0 +1,9 @@
1
+ import { mergeWith as n } from "lodash-es";
2
+ const o = (e, i) => n({}, e, i, (r, t) => {
3
+ if (t === void 0)
4
+ return r;
5
+ }), u = (e) => [...e].sort((r, t) => r.isStart && !t.isStart ? -1 : !r.isStart && t.isStart || r.isEnd && !t.isEnd ? 1 : !r.isEnd && t.isEnd ? -1 : 0);
6
+ export {
7
+ o as mergeTheme,
8
+ u as sortSteps
9
+ };
@@ -0,0 +1,35 @@
1
+ const i = {
2
+ vertical: {
3
+ next: {
4
+ initial: { opacity: 0, y: 400 },
5
+ exit: { opacity: 0, y: -400 }
6
+ },
7
+ prev: {
8
+ initial: { opacity: 0, y: -400 },
9
+ exit: { opacity: 0, y: 400 }
10
+ }
11
+ },
12
+ horizontal: {
13
+ next: {
14
+ initial: { opacity: 0, x: 400 },
15
+ exit: { opacity: 0, x: -400 }
16
+ },
17
+ prev: {
18
+ initial: { opacity: 0, x: -400 },
19
+ exit: { opacity: 0, x: 400 }
20
+ }
21
+ },
22
+ none: {
23
+ next: {
24
+ initial: {},
25
+ exit: {}
26
+ },
27
+ prev: {
28
+ initial: {},
29
+ exit: {}
30
+ }
31
+ }
32
+ };
33
+ export {
34
+ i as animations
35
+ };