@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.
- package/dist/assets/enitityIcons/flow.svg.js +5 -0
- package/dist/assets/enitityIcons/form.svg.js +5 -0
- package/dist/assets/enitityIcons/index.d.ts +5 -0
- package/dist/assets/enitityIcons/page.svg.js +5 -0
- package/dist/assets/enitityIcons/sprint.svg.js +5 -0
- package/dist/assets/fileTypes/archieve.svg.js +4 -0
- package/dist/assets/fileTypes/archives.svg.js +5 -0
- package/dist/assets/fileTypes/audio.svg.js +5 -0
- package/dist/assets/fileTypes/code.svg.js +5 -0
- package/dist/assets/fileTypes/diagram.svg.js +4 -0
- package/dist/assets/fileTypes/documents.svg.js +4 -0
- package/dist/assets/fileTypes/documentsStorage.svg.js +5 -0
- package/dist/assets/fileTypes/docx.svg.js +4 -0
- package/dist/assets/fileTypes/folder.svg.js +4 -0
- package/dist/assets/fileTypes/images.svg.js +5 -0
- package/dist/assets/fileTypes/media.svg.js +4 -0
- package/dist/assets/fileTypes/other.svg.js +4 -0
- package/dist/assets/fileTypes/other.svg2.js +5 -0
- package/dist/assets/fileTypes/pptx.svg.js +4 -0
- package/dist/assets/fileTypes/presentation.svg.js +4 -0
- package/dist/assets/fileTypes/sheet.svg.js +4 -0
- package/dist/assets/fileTypes/videos.svg.js +5 -0
- package/dist/assets/fileTypes/xlsx.svg.js +4 -0
- package/dist/assets/images/flags/es.svg.js +4 -0
- package/dist/assets/images/flags/ru.svg.js +4 -0
- package/dist/assets/images/flags/us.svg.js +4 -0
- package/dist/assets/images/person.png.js +4 -0
- package/dist/assets/images/person2.png.js +4 -0
- package/dist/assets/images/person3.png.js +4 -0
- package/dist/assets/images/person4.png.js +4 -0
- package/dist/assets/jsons/emoji-categorized.json.js +4 -0
- package/dist/assets/jsons/icons.min.json.d.ts +1 -1
- package/dist/assets/jsons/icons.min.json.js +4 -0
- package/dist/assets/layers-logo-full.svg.js +5 -0
- package/dist/assets/layers-logo-icon.svg.js +5 -0
- package/dist/assets/logo-copyright.svg.js +5 -0
- package/dist/assets/svg/alertMan.svg.js +7 -0
- package/dist/assets/svg/default_icon.svg.js +4 -0
- package/dist/assets/svg/discord-icon.svg.js +5 -0
- package/dist/assets/svg/discord.svg.js +5 -0
- package/dist/assets/svg/dog.svg.js +5 -0
- package/dist/assets/svg/layers-logo-full.svg.js +4 -0
- package/dist/assets/svg/noData/404.svg.js +9 -0
- package/dist/assets/svg/noData/500.svg.js +5 -0
- package/dist/assets/svg/noData/empty.svg.js +5 -0
- package/dist/assets/svg/noData/folder.svg.js +5 -0
- package/dist/assets/svg/noData/noAccess.svg.js +7 -0
- package/dist/assets/svg/noData/noAnswers.svg.js +5 -0
- package/dist/assets/svg/noData/noCloud.svg.js +5 -0
- package/dist/assets/svg/noData/noComments.svg.js +5 -0
- package/dist/assets/svg/noData/noData.svg.js +5 -0
- package/dist/assets/svg/noData/noFlows.svg.js +5 -0
- package/dist/assets/svg/noData/noForms.svg.js +5 -0
- package/dist/assets/svg/noData/noGroups.svg.js +17 -0
- package/dist/assets/svg/noData/noImage.svg.js +5 -0
- package/dist/assets/svg/noData/noMembers.svg.js +7 -0
- package/dist/assets/svg/noData/noNotifications.svg.js +5 -0
- package/dist/assets/svg/noData/noResults.svg.js +5 -0
- package/dist/assets/svg/noData/noSearchResults.svg.js +5 -0
- package/dist/assets/svg/noData/noTaskResults.svg.js +5 -0
- package/dist/assets/svg/noData/noTasks.svg.js +5 -0
- package/dist/assets/svg/noData/noWorkspaces.svg.js +7 -0
- package/dist/assets/svg/noData/trash.svg.js +7 -0
- package/dist/assets/svg/notSuccessMan.svg.js +7 -0
- package/dist/assets/svg/successMan.svg.js +5 -0
- package/dist/assets/svg/telegram-icon.svg.js +5 -0
- package/dist/assets/svg/telegram.svg.js +5 -0
- package/dist/components/AlertsBlock/index.js +53 -0
- package/dist/components/AnimationWrapper/index.js +15 -0
- package/dist/components/AppContainer/AppContainer.d.ts +1 -1
- package/dist/components/AppContainer/AppContainer.js +56 -0
- package/dist/components/AppContainer/AppContainer.module.css.js +15 -0
- package/dist/components/AppContainer/components/AppSidebarButton.d.ts +1 -1
- package/dist/components/AppContainer/components/AppSidebarButton.js +44 -0
- package/dist/components/AppContainer/components/AppsSidebar/AppsSection.js +52 -0
- package/dist/components/AppContainer/components/AppsSidebar/AppsSidebar.d.ts +1 -1
- package/dist/components/AppContainer/components/AppsSidebar/AppsSidebar.js +16 -0
- package/dist/components/AppContainer/components/AppsSidebar/TopSection.js +67 -0
- package/dist/components/AppContainer/components/AppsSidebar/UserSection.js +80 -0
- package/dist/components/AppContainer/{Header.d.ts → components/Header.d.ts} +1 -1
- package/dist/components/AppContainer/components/Header.js +9 -0
- package/dist/components/AppContainer/components/Main.js +18 -0
- package/dist/components/AppContainer/components/NavbarContent.js +6 -0
- package/dist/components/AppContainer/components/RightSidebar.js +30 -0
- package/dist/components/AppContainer/components/SidebarToggleButton.js +27 -0
- package/dist/components/AppContainer/components/SlideAnimation.js +43 -0
- package/dist/components/AppContainer/components/ToolSidebar.d.ts +6 -2
- package/dist/components/AppContainer/components/ToolSidebar.js +84 -0
- package/dist/components/AppContainer/components/ToolbarNewButton.js +28 -0
- package/dist/components/AppContainer/components/menus/HelpMenu/HelpMenu.js +122 -0
- package/dist/components/AppContainer/components/menus/HelpMenu/HelpMenu.module.css.js +9 -0
- package/dist/components/AppContainer/components/menus/HelpMenu/WhatsNew.js +58 -0
- package/dist/components/AppContainer/components/menus/MoreMenu.js +42 -0
- package/dist/components/AppContainer/components/menus/UserMenu/MenuUserDropdown.d.ts +1 -1
- package/dist/components/AppContainer/components/menus/UserMenu/MenuUserDropdown.js +44 -0
- package/dist/components/AppContainer/hooks/useAppContainer.d.ts +1 -1
- package/dist/components/AppContainer/hooks/useAppContainer.js +60 -0
- package/dist/components/AppContainer/hooks/useAppContainerActionsStore.js +10 -0
- package/dist/components/AppContainer/hooks/useAppContainerDataStore.js +37 -0
- package/dist/components/AppContainer/hooks/useAppContainerStore.d.ts +2 -3
- package/dist/components/AppContainer/hooks/useAppContainerStore.js +62 -0
- package/dist/components/AppContainer/hooks/useSetAppContainerLayout.d.ts +2 -0
- package/dist/components/AppContainer/hooks/useSetAppContainerLayout.js +10 -0
- package/dist/components/AppContainer/types.d.ts +8 -4
- package/dist/components/AppShell/AppShell.js +18 -0
- package/dist/components/AppShell/AppShell.module.css.js +19 -0
- package/dist/components/AttachmentsGalleryModal/AttachmentsGalleryContext.d.ts +4 -2
- package/dist/components/AttachmentsGalleryModal/AttachmentsGalleryContext.js +39 -0
- package/dist/components/AttachmentsGalleryModal/AttachmentsGalleryModal.js +127 -0
- package/dist/components/AttachmentsGalleryModal/components/ErrorSection.js +14 -0
- package/dist/components/AttachmentsGalleryModal/components/GallerySlide.js +69 -0
- package/dist/components/AttachmentsGalleryModal/components/ModalFooter.js +13 -0
- package/dist/components/AttachmentsGalleryModal/components/ModalHeader.js +123 -0
- package/dist/components/AttachmentsGalleryModal/components/ShakePlayer/ShakaPlayer.d.ts +4 -1
- package/dist/components/AttachmentsGalleryModal/components/ShakePlayer/ShakaPlayer.js +41 -0
- package/dist/components/AttachmentsGalleryModal/components/ShakePlayer/ShakaPlayer.module.css.js +7 -0
- package/dist/components/AttachmentsGalleryModal/components/ShakePlayer/useShakePlayer.js +54 -0
- package/dist/components/AttachmentsGalleryModal/constants.d.ts +2 -1
- package/dist/components/AttachmentsGalleryModal/constants.js +21 -0
- package/dist/components/AttachmentsGalleryModal/helpers.d.ts +22 -0
- package/dist/components/AttachmentsGalleryModal/helpers.js +40 -0
- package/dist/components/AttachmentsGalleryModal/hooks/useDownloadFile.js +35 -0
- package/dist/components/AttachmentsGalleryModal/hooks/useEmblaCarousel.js +49 -0
- package/dist/components/AttachmentsGalleryModal/hooks/useGetPreviewUrl.js +28 -0
- package/dist/components/AttachmentsGalleryModal/hooks/usePanning.d.ts +10 -0
- package/dist/components/AttachmentsGalleryModal/hooks/usePanning.js +61 -0
- package/dist/components/AttachmentsGalleryModal/hooks/useZoomReset.js +16 -0
- package/dist/components/AttachmentsGalleryModal/styles.module.css.js +29 -0
- package/dist/components/BottomDrawerWithoutHeader/index.js +75 -0
- package/dist/components/BouncingLogo/BouncingLogo.js +22 -0
- package/dist/components/BouncingLogo/BouncingLogo.module.css.js +9 -0
- package/dist/components/CircleColorPicker/CircleColorPicker.js +72 -0
- package/dist/components/ColorPicker/ColorPicker.d.ts +1 -0
- package/dist/components/ColorPicker/ColorPicker.js +131 -0
- package/dist/components/ColorPicker/ColorPickerPopover.js +42 -0
- package/dist/components/CommentComposer/CommentEditorHotkeys.d.ts +1 -1
- package/dist/components/CommentComposer/CommentEditorHotkeys.js +61 -0
- package/dist/components/CommentComposer/index.d.ts +2 -1
- package/dist/components/CommentComposer/index.js +288 -0
- package/dist/components/CommentFilterMenu/index.js +92 -0
- package/dist/components/CommentsPanel/CommentsPanel.module.css.js +109 -0
- package/dist/components/CommentsPanel/components/CommentActionMenu.js +49 -0
- package/dist/components/CommentsPanel/components/CommentActions.js +151 -0
- package/dist/components/CommentsPanel/components/CommentPanelListItem.d.ts +2 -1
- package/dist/components/CommentsPanel/components/CommentPanelListItem.js +366 -0
- package/dist/components/CommentsPanel/components/CommentTabFilter.js +53 -0
- package/dist/components/CommentsPanel/components/CommentsEmptyPlaceholder.js +17 -0
- package/dist/components/CommentsPanel/components/CommentsFilterHeader.js +83 -0
- package/dist/components/CommentsPanel/components/CommentsListItemMenu.js +63 -0
- package/dist/components/CommentsPanel/components/CommentsPanelList.d.ts +2 -1
- package/dist/components/CommentsPanel/components/CommentsPanelList.js +74 -0
- package/dist/components/CommentsPanel/components/CommentsThreadReplyControls.js +108 -0
- package/dist/components/CommentsPanel/components/CommentsUploadFilesPreview.js +142 -0
- package/dist/components/CommentsPanel/components/Icon.js +29 -0
- package/dist/components/CommentsPanel/index.d.ts +2 -1
- package/dist/components/CommentsPanel/index.js +137 -0
- package/dist/components/CommentsPanel/store.js +32 -0
- package/dist/components/CommentsPanel/types.d.ts +5 -5
- package/dist/components/CommentsPanel/utils.js +189 -0
- package/dist/components/CommunitiesDialog/index.js +149 -0
- package/dist/components/CommunitiesDialog/styles.module.css.js +7 -0
- package/dist/components/Copyright/Copyright.module.css.js +7 -0
- package/dist/components/Copyright/index.d.ts +1 -2
- package/dist/components/Copyright/index.js +32 -0
- package/dist/components/CustomKBD/CustomKBD.module.css.js +7 -0
- package/dist/components/CustomKBD/index.js +40 -0
- package/dist/components/EmojiPicker/EmojiPanel.d.ts +1 -1
- package/dist/components/EmojiPicker/EmojiPanel.js +273 -0
- package/dist/components/EmojiPicker/EmojiPicker.d.ts +1 -0
- package/dist/components/EmojiPicker/EmojiPicker.js +222 -0
- package/dist/components/EmojiPicker/EmojiPicker.module.css.js +13 -0
- package/dist/components/EmojiPicker/IconsPanel.js +267 -0
- package/dist/components/EmojiPicker/constants.js +36 -0
- package/dist/components/EmojiPicker/custom-icons/StatusCancel.js +37 -0
- package/dist/components/EmojiPicker/custom-icons/StatusDone.js +29 -0
- package/dist/components/EmojiPicker/custom-icons/StatusProgress00.js +17 -0
- package/dist/components/EmojiPicker/custom-icons/StatusProgress10.js +20 -0
- package/dist/components/EmojiPicker/custom-icons/StatusProgress100.js +20 -0
- package/dist/components/EmojiPicker/custom-icons/StatusProgress20.js +26 -0
- package/dist/components/EmojiPicker/custom-icons/StatusProgress30.js +26 -0
- package/dist/components/EmojiPicker/custom-icons/StatusProgress40.js +26 -0
- package/dist/components/EmojiPicker/custom-icons/StatusProgress50.js +26 -0
- package/dist/components/EmojiPicker/custom-icons/StatusProgress60.js +26 -0
- package/dist/components/EmojiPicker/custom-icons/StatusProgress70.js +26 -0
- package/dist/components/EmojiPicker/custom-icons/StatusProgress80.js +26 -0
- package/dist/components/EmojiPicker/custom-icons/StatusProgress90.js +26 -0
- package/dist/components/EmojiPicker/custom-icons/customIcons.js +99 -0
- package/dist/components/EmojiPicker/getIconsList.d.ts +11 -0
- package/dist/components/EmojiPicker/getIconsList.js +32 -0
- package/dist/components/EmojiPicker/getRandomIcon.d.ts +1 -0
- package/dist/components/EmojiPicker/getRandomIcon.js +10 -0
- package/dist/components/EntityIcon.d.ts +2 -0
- package/dist/components/EntityIcon.js +95 -0
- package/dist/components/EntityTitle/EntityTitle.js +86 -0
- package/dist/components/EntityTitle/EntityTitle.module.css.js +9 -0
- package/dist/components/ErrorAlert/index.js +20 -0
- package/dist/components/ErrorPage/components/Error403.js +51 -0
- package/dist/components/ErrorPage/components/Error404.js +5 -0
- package/dist/components/ErrorPage/components/Error406.js +47 -0
- package/dist/components/ErrorPage/components/Error500.js +58 -0
- package/dist/components/ErrorPage/components/ErrorUndefined.js +44 -0
- package/dist/components/ErrorPage/index.js +25 -0
- package/dist/components/FilePicker/FilePicker.js +242 -0
- package/dist/components/FilePicker/FilePicker.module.css.js +13 -0
- package/dist/components/FilePicker/FilePickerGallery.js +38 -0
- package/dist/components/FilePicker/FilePickerGiphy.js +91 -0
- package/dist/components/FilePicker/FilePickerLink.js +48 -0
- package/dist/components/FilePicker/FilePickerSkeletonLoader.js +9 -0
- package/dist/components/FilePicker/FilePickerUnsplash.js +95 -0
- package/dist/components/FilePicker/FilePickerUpload.js +86 -0
- package/dist/components/FilePicker/api/giphyApi.js +26 -0
- package/dist/components/FilePicker/api/unsplashApi.js +29 -0
- package/dist/components/FilePicker/types.d.ts +1 -0
- package/dist/components/FormViewer/FormViewer.js +42 -0
- package/dist/components/FormViewer/FormViewer.module.css.js +37 -0
- package/dist/components/FormViewer/components/AllSlidesLayout.js +24 -0
- package/dist/components/FormViewer/components/Container.js +27 -0
- package/dist/components/FormViewer/components/ListFocusBox.js +22 -0
- package/dist/components/FormViewer/components/NavControls.js +58 -0
- package/dist/components/FormViewer/components/Navigation/Navigation.js +37 -0
- package/dist/components/FormViewer/components/OneSlideLayput.js +133 -0
- package/dist/components/FormViewer/components/Step.js +225 -0
- package/dist/components/FormViewer/components/StepDescription.js +73 -0
- package/dist/components/FormViewer/components/StepTitle.js +118 -0
- package/dist/components/FormViewer/components/fields/AddOptionButton.js +24 -0
- package/dist/components/FormViewer/components/fields/ButtonField/ButtonField.js +63 -0
- package/dist/components/FormViewer/components/fields/ButtonField/InnerButton.js +70 -0
- package/dist/components/FormViewer/components/fields/ChoiceField/ChoiceCard.js +35 -0
- package/dist/components/FormViewer/components/fields/ChoiceField/ChoiceField.js +135 -0
- package/dist/components/FormViewer/components/fields/ChoiceField/PictureChoiceCard.js +37 -0
- package/dist/components/FormViewer/components/fields/ChoiceField/PictureChoiceField.js +93 -0
- package/dist/components/FormViewer/components/fields/ConfirmButton.js +49 -0
- package/dist/components/FormViewer/components/fields/ConfirmField.js +21 -0
- package/dist/components/FormViewer/components/fields/DateField.js +31 -0
- package/dist/components/FormViewer/components/fields/DragOptions/DragOptions.js +81 -0
- package/dist/components/FormViewer/components/fields/DragOptions/DragOptions.module.css.js +7 -0
- package/dist/components/FormViewer/components/fields/DropdownField/DropdownField.js +117 -0
- package/dist/components/FormViewer/components/fields/DropdownField/DropdownField.module.css.js +7 -0
- package/dist/components/FormViewer/components/fields/EditableContent/EditableContent.js +70 -0
- package/dist/components/FormViewer/components/fields/EditableContent/EditableContent.module.css.js +7 -0
- package/dist/components/FormViewer/components/fields/EmailField.js +26 -0
- package/dist/components/FormViewer/components/fields/LocationField.js +27 -0
- package/dist/components/FormViewer/components/fields/LongTextField.js +48 -0
- package/dist/components/FormViewer/components/fields/MultipleChoice/MultipleChoiceCard.js +38 -0
- package/dist/components/FormViewer/components/fields/MultipleChoice/MultipleChoiceField.js +152 -0
- package/dist/components/FormViewer/components/fields/NumberField.js +28 -0
- package/dist/components/FormViewer/components/fields/PhoneField.js +24 -0
- package/dist/components/FormViewer/components/fields/ProgressLine.js +30 -0
- package/dist/components/FormViewer/components/fields/RatingField.js +33 -0
- package/dist/components/FormViewer/components/fields/SelectableCard/PictureSelectableCard.js +154 -0
- package/dist/components/FormViewer/components/fields/SelectableCard/SelectableCard.js +110 -0
- package/dist/components/FormViewer/components/fields/SelectableCard/SelectableCard.module.css.js +15 -0
- package/dist/components/FormViewer/components/fields/SliderField.js +31 -0
- package/dist/components/FormViewer/components/fields/StartButton.js +34 -0
- package/dist/components/FormViewer/components/fields/StartField.js +21 -0
- package/dist/components/FormViewer/components/fields/TextField.js +31 -0
- package/dist/components/FormViewer/components/fields/UploadField/UploadField.js +155 -0
- package/dist/components/FormViewer/components/fields/UploadField/UploadFile/UploadFile.js +62 -0
- package/dist/components/FormViewer/components/fields/UploadField/UploadFile/UploadFile.module.css.js +7 -0
- package/dist/components/FormViewer/components/fields/YesNoField.js +37 -0
- package/dist/components/FormViewer/constants/defaultTheme.js +41 -0
- package/dist/components/FormViewer/helpers/conditions.d.ts +1 -1
- package/dist/components/FormViewer/helpers/conditions.js +43 -0
- package/dist/components/FormViewer/helpers/controls.js +79 -0
- package/dist/components/FormViewer/helpers/cssScoping.js +10 -0
- package/dist/components/FormViewer/helpers/helpers.d.ts +1 -1
- package/dist/components/FormViewer/helpers/helpers.js +9 -0
- package/dist/components/FormViewer/helpers/slides.js +35 -0
- package/dist/components/FormViewer/helpers/staticClasses.js +48 -0
- package/dist/components/FormViewer/helpers/steps.d.ts +1 -1
- package/dist/components/FormViewer/helpers/steps.js +55 -0
- package/dist/components/FormViewer/helpers/themeUtils.js +8 -0
- package/dist/components/FormViewer/helpers/validation.js +87 -0
- package/dist/components/FormViewer/hooks/useActiveControl.js +9 -0
- package/dist/components/FormViewer/hooks/useActiveStep.d.ts +1 -1
- package/dist/components/FormViewer/hooks/useActiveStep.js +9 -0
- package/dist/components/FormViewer/hooks/useCreateFormContext.js +78 -0
- package/dist/components/FormViewer/hooks/useFormGlobalTheme.js +132 -0
- package/dist/components/FormViewer/hooks/useFormMobile.js +15 -0
- package/dist/components/FormViewer/hooks/useInterpolateText.js +57 -0
- package/dist/components/FormViewer/store/formStore.d.ts +6 -6
- package/dist/components/FormViewer/store/formStore.js +84 -0
- package/dist/components/FormViewer/store/formStoreApi.d.ts +3 -3
- package/dist/components/FormViewer/store/formStoreApi.js +383 -0
- package/dist/components/FormViewer/store/selectors.d.ts +342 -342
- package/dist/components/FormViewer/store/selectors.js +98 -0
- package/dist/components/FormViewer/types/form.js +40 -0
- package/dist/components/FormViewer/types/schemes.d.ts +22 -22
- package/dist/components/FormViewer/types/schemes.js +314 -0
- package/dist/components/ImageModal/ImageModal.js +165 -0
- package/dist/components/LanguagePicker/LanguagePicker.js +41 -0
- package/dist/components/LanguagePicker/LanguagePicker.module.css.js +7 -0
- package/dist/components/Loaders/BaseLoader.js +8 -0
- package/dist/components/Loaders/styles.module.css.js +9 -0
- package/dist/components/Logotype.js +40 -0
- package/dist/components/NavMenu/NavMenu.d.ts +4 -2
- package/dist/components/NavMenu/NavMenu.js +98 -0
- package/dist/components/NavMenu/NavMenu.module.css.js +23 -0
- package/dist/components/NavMenu/components/DnDItem.js +44 -0
- package/dist/components/NavMenu/components/DnDProvider.js +64 -0
- package/dist/components/NavMenu/components/DraggableOverlay.js +18 -0
- package/dist/components/NavMenu/components/NavMenuActionIcon.js +27 -0
- package/dist/components/NavMenu/components/NavMenuItem.d.ts +5 -0
- package/dist/components/NavMenu/components/NavMenuItem.js +179 -0
- package/dist/components/NavMenu/components/NavMenuLabel.js +18 -0
- package/dist/components/NavMenu/store.d.ts +12 -2
- package/dist/components/NavMenu/store.js +61 -0
- package/dist/components/NavMenu/types.d.ts +10 -3
- package/dist/components/NavbarResizer/NavbarResizer.js +42 -0
- package/dist/components/NavbarResizer/NavbarResizer.module.css.js +7 -0
- package/dist/components/NewColorPicker/components/Pallete.js +46 -0
- package/dist/components/NewColorPicker/components/Target.js +47 -0
- package/dist/components/NewColorPicker/index.js +92 -0
- package/dist/components/NoData/NoData.js +103 -0
- package/dist/components/NoData/NoData.module.css.js +7 -0
- package/dist/components/NotFound/NoFound.js +65 -0
- package/dist/components/NotPublicPanel/NotPublicPanel.js +53 -0
- package/dist/components/NotPublicPanel/NotPublicPanel.module.css.js +19 -0
- package/dist/components/Notification/Notification.js +117 -0
- package/dist/components/Notification/Notification.module.css.js +7 -0
- package/dist/components/Notification/NotificationCard.js +92 -0
- package/dist/components/OnBoarding/OnBoardingPage.js +80 -0
- package/dist/components/OnBoarding/ProjectBoard.js +141 -0
- package/dist/components/OnBoarding/StepsNavBar.js +21 -0
- package/dist/components/OnBoarding/steps/AddTasks/AddTasksNav.js +42 -0
- package/dist/components/OnBoarding/steps/AddTasks/TasksListBoard.js +51 -0
- package/dist/components/OnBoarding/steps/CreateFirstProject.js +45 -0
- package/dist/components/OnBoarding/steps/DefineStatuses/DefineStatusesNav.js +42 -0
- package/dist/components/OnBoarding/steps/DefineStatuses/StatusBadge.js +22 -0
- package/dist/components/OnBoarding/steps/DefineStatuses/StatusesListBoard.js +217 -0
- package/dist/components/OnBoarding/steps/DifferentLayouts/DifferentLayoutsBoard.js +16 -0
- package/dist/components/OnBoarding/steps/DifferentLayouts/DifferentLayoutsNav.js +56 -0
- package/dist/components/OnBoarding/steps/DifferentLayouts/KanbanLayout.js +272 -0
- package/dist/components/OnBoarding/steps/DifferentLayouts/styles.module.css.js +9 -0
- package/dist/components/OnBoarding/steps/InviteUsers/BoardModal.js +86 -0
- package/dist/components/OnBoarding/steps/InviteUsers/InviteUsers.js +26 -0
- package/dist/components/OnBoarding/steps/SelectCategory/CategorySelect.js +61 -0
- package/dist/components/OnBoarding/steps/SelectCategory/SelectCategoryNav.js +42 -0
- package/dist/components/OnBoarding/steps/StartedStep.js +71 -0
- package/dist/components/OnBoarding/steps/Wrapper.js +49 -0
- package/dist/components/OnBoarding/steps/styles.module.css.js +17 -0
- package/dist/components/OnBoarding/styles.module.css.js +15 -0
- package/dist/components/PaymentCancel/PaymentCancel.js +41 -0
- package/dist/components/PaymentError/PaymentError.js +41 -0
- package/dist/components/PaymentSuccess/PaymentSuccess.js +41 -0
- package/dist/components/PinModal/PinModal.js +90 -0
- package/dist/components/PinModal/slice.js +28 -0
- package/dist/components/ProjectIcon/ProjectIcon.d.ts +1 -0
- package/dist/components/ProjectIcon/ProjectIcon.js +88 -0
- package/dist/components/SearchFilters/SearchFilters.js +37 -0
- package/dist/components/SearchFilters/SearchFilters.module.css.js +9 -0
- package/dist/components/SearchFilters/components/DateFilter.js +199 -0
- package/dist/components/SearchFilters/components/SearchHelp.js +121 -0
- package/dist/components/SearchFilters/components/Sort.js +99 -0
- package/dist/components/SearchFilters/components/Type.js +124 -0
- package/dist/components/SortableList/SortableList.js +44 -0
- package/dist/components/SortableList/components/SortableItem/SortableItem.js +82 -0
- package/dist/components/StorageUsageEntityList/StorageEntityItem.js +62 -0
- package/dist/components/StorageUsageEntityList/StorageUsageEntityList.js +27 -0
- package/dist/components/StorageUsageProgress/index.js +52 -0
- package/dist/components/SubmitModal/index.js +12 -0
- package/dist/components/ThemeIndicator/index.js +21 -0
- package/dist/components/UserAvatar/index.d.ts +3 -2
- package/dist/components/UserAvatar/index.js +22 -0
- package/dist/components/WorkspaceAvatar/WorkspaceAvatar.js +22 -0
- package/dist/components/WorkspaceMenu/WorkspaceItem.js +41 -0
- package/dist/components/WorkspaceMenu/WorkspaceMenu.js +211 -0
- package/dist/components/modals/RemoveConfirmModal.d.ts +8 -1
- package/dist/components/modals/RemoveConfirmModal.js +68 -0
- package/dist/components/table/FrontTable.js +21 -0
- package/dist/components/table/api.js +248 -0
- package/dist/components/table/components/Table.js +139 -0
- package/dist/components/table/components/TableAggregation.js +31 -0
- package/dist/components/table/components/TableCell.js +55 -0
- package/dist/components/table/components/TableHeaderCell.js +159 -0
- package/dist/components/table/components/TableHeaders.js +99 -0
- package/dist/components/table/components/TableMenu.js +59 -0
- package/dist/components/table/components/TablePagination.js +52 -0
- package/dist/components/table/components/TablePanel.js +26 -0
- package/dist/components/table/components/TableRow.js +85 -0
- package/dist/components/table/components/TableRows.js +66 -0
- package/dist/components/table/components/TableSearch.js +32 -0
- package/dist/components/table/components/TableSkeleton.js +60 -0
- package/dist/components/table/components/TableTitle.js +26 -0
- package/dist/components/table/constants.js +28 -0
- package/dist/components/table/export.js +58 -0
- package/dist/components/table/helpers/columns.js +198 -0
- package/dist/components/table/helpers/formatters.js +65 -0
- package/dist/components/table/hooks/TableProvider.js +62 -0
- package/dist/components/table/hooks/useColumnsResizing.js +51 -0
- package/dist/components/table/hooks/useCreateTable.js +9 -0
- package/dist/components/table/hooks/useSaveRowCount.js +9 -0
- package/dist/components/table/hooks/useSorting.js +36 -0
- package/dist/components/table/hooks/useTableStore.js +6 -0
- package/dist/components/table/selectors.js +203 -0
- package/dist/components/table/store.js +65 -0
- package/dist/components/table/types.js +17 -0
- package/dist/constants.js +19 -0
- package/dist/helpers/combineStatuses.js +5 -0
- package/dist/helpers/dates.js +15 -0
- package/dist/helpers/download.js +17 -0
- package/dist/helpers/feature.js +7 -0
- package/dist/helpers/fileUtils.js +33 -0
- package/dist/helpers/filterHierarchyByTypes.js +13 -0
- package/dist/helpers/formatBytes.js +8 -0
- package/dist/helpers/generateLink.js +9 -0
- package/dist/helpers/getFileIcons.js +42 -0
- package/dist/helpers/getFileType.d.ts +1 -1
- package/dist/helpers/getFileType.js +40 -0
- package/dist/helpers/getPartOfTheDay.js +12 -0
- package/dist/helpers/getRandomIconColor.js +17 -0
- package/dist/helpers/hotjar.d.ts +9 -0
- package/dist/helpers/hotjar.js +19 -0
- package/dist/helpers/isAppMode.js +4 -0
- package/dist/helpers/pickRandomEmoji.d.ts +1 -0
- package/dist/helpers/pickRandomEmoji.js +12 -0
- package/dist/helpers/showNotifications.js +72 -0
- package/dist/helpers/themeUtils.js +5 -0
- package/dist/helpers/validation.js +38 -0
- package/dist/hooks/useAsyncStatus.d.ts +8 -0
- package/dist/hooks/useAsyncStatus.js +26 -0
- package/dist/hooks/useDateFnsLocale.js +13 -0
- package/dist/hooks/useDateUtils.js +33 -0
- package/dist/hooks/useDisableWindowScroll.js +24 -0
- package/dist/hooks/useEvent.js +12 -0
- package/dist/hooks/useFormatDistance.js +17 -0
- package/dist/hooks/useMenu.js +9 -0
- package/dist/hooks/useNumberQueryParam.js +14 -0
- package/dist/hooks/useOAuthErrorParams.js +16 -0
- package/dist/hooks/useOutsideClick.js +21 -0
- package/dist/hooks/useSwipeDetect.js +21 -0
- package/dist/index.css +1 -0
- package/dist/index.d.ts +70 -76
- package/dist/index.js +397 -259
- package/dist/lang/locales/ui_en.json.d.ts +6 -5
- package/dist/lang/locales/ui_en.json.js +19 -0
- package/dist/lang/locales/ui_es.json.d.ts +2 -1
- package/dist/lang/locales/ui_es.json.js +19 -0
- package/dist/lang/locales/ui_ru.json.d.ts +2 -1
- package/dist/lang/locales/ui_ru.json.js +19 -0
- package/dist/store/accessOptionsControl.js +10 -0
- package/dist/store/discordDialogStore.js +14 -0
- package/dist/store/onboarding.js +53 -0
- package/dist/store/plansModal.js +13 -0
- package/dist/store/searchModal.js +13 -0
- package/dist/store/timezoneStore.js +19 -0
- package/dist/store/workspacesOrder.js +17 -0
- package/dist/utils/formatStorage.js +8 -0
- package/dist/utils/getPlanBadgeColor.js +17 -0
- package/dist/utils/queryParams.js +15 -0
- package/docs/README.md +486 -0
- package/package.json +32 -11
- package/dist/KanbanLayout-BnHAvyHl.js +0 -297
- package/dist/components/AppContainer/hooks/useHideHeader.d.ts +0 -1
- package/dist/components/AppContainer/hooks/useHideSidebar.d.ts +0 -1
- package/dist/components/AppTour/AppTour.d.ts +0 -7
- package/dist/components/AppTour/FinishModal.d.ts +0 -1
- package/dist/components/AppTour/HelloModal.d.ts +0 -1
- package/dist/components/AppTour/hooks/useAppTour.d.ts +0 -2
- package/dist/components/AppTour/index.d.ts +0 -4
- package/dist/components/AppTour/types.d.ts +0 -17
- package/dist/emoji-categorized-CRsMUQyD.js +0 -4
- package/dist/helpers/pickRandomIcon.d.ts +0 -1
- package/dist/helpers/token.d.ts +0 -3
- package/dist/icons.min-wo13YUY4.js +0 -4
- package/dist/index-BawytWAK.js +0 -96715
- package/dist/index.umd.cjs +0 -356
- /package/dist/components/AppContainer/{Main.d.ts → components/Main.d.ts} +0 -0
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { jsxs as a, jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { useTranslation as s } from "react-i18next";
|
|
3
|
+
import { Search01Icon as m, Notification02Icon as l } from "@hugeicons/core-free-icons";
|
|
4
|
+
import { HugeiconsIcon as c } from "@hugeicons/react";
|
|
5
|
+
import { Stack as f, ActionIcon as d, Tooltip as h, Menu as t } from "@mantine/core";
|
|
6
|
+
import { isFeature as u } from "../../../../helpers/feature.js";
|
|
7
|
+
import { openSearchModal as w } from "../../../../store/searchModal.js";
|
|
8
|
+
import { Notification as k } from "../../../Notification/Notification.js";
|
|
9
|
+
import { WorkspaceAvatar as v } from "../../../WorkspaceAvatar/WorkspaceAvatar.js";
|
|
10
|
+
import { WorkspaceMenu as g } from "../../../WorkspaceMenu/WorkspaceMenu.js";
|
|
11
|
+
import { useAppContainerDataStore as b } from "../../hooks/useAppContainerDataStore.js";
|
|
12
|
+
import { AppSidebarButton as p } from "../AppSidebarButton.js";
|
|
13
|
+
const W = () => {
|
|
14
|
+
const { t: e } = s("appContainer"), { workspaceMenu: i, isAnonym: r, publicMode: n } = b();
|
|
15
|
+
return /* @__PURE__ */ a(f, { gap: 8, align: "center", pb: 8, children: [
|
|
16
|
+
/* @__PURE__ */ o(
|
|
17
|
+
g,
|
|
18
|
+
{
|
|
19
|
+
...i,
|
|
20
|
+
isAnonym: r,
|
|
21
|
+
publicMode: n,
|
|
22
|
+
children: /* @__PURE__ */ o(
|
|
23
|
+
d,
|
|
24
|
+
{
|
|
25
|
+
size: "lg",
|
|
26
|
+
variant: "transparent",
|
|
27
|
+
style: { overflow: "visible" },
|
|
28
|
+
children: /* @__PURE__ */ o(
|
|
29
|
+
h,
|
|
30
|
+
{
|
|
31
|
+
label: i.active?.workspaceName,
|
|
32
|
+
disabled: !i.active?.workspaceName,
|
|
33
|
+
openDelay: 400,
|
|
34
|
+
position: "right",
|
|
35
|
+
withArrow: !0,
|
|
36
|
+
children: /* @__PURE__ */ o(v, { workspace: i.active, size: 36 })
|
|
37
|
+
}
|
|
38
|
+
)
|
|
39
|
+
}
|
|
40
|
+
)
|
|
41
|
+
}
|
|
42
|
+
),
|
|
43
|
+
!r && !n && /* @__PURE__ */ o(
|
|
44
|
+
p,
|
|
45
|
+
{
|
|
46
|
+
title: e("search"),
|
|
47
|
+
icon: /* @__PURE__ */ o(c, { icon: m, size: 20 }),
|
|
48
|
+
onClick: () => {
|
|
49
|
+
w();
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
),
|
|
53
|
+
u() && !r && /* @__PURE__ */ a(t, { position: "right-start", children: [
|
|
54
|
+
/* @__PURE__ */ o(t.Target, { children: /* @__PURE__ */ o(
|
|
55
|
+
p,
|
|
56
|
+
{
|
|
57
|
+
title: e("activity"),
|
|
58
|
+
icon: /* @__PURE__ */ o(c, { icon: l, size: 20 })
|
|
59
|
+
}
|
|
60
|
+
) }),
|
|
61
|
+
/* @__PURE__ */ o(t.Dropdown, { px: 4, py: 0, w: 440, children: /* @__PURE__ */ o(k, {}) })
|
|
62
|
+
] })
|
|
63
|
+
] });
|
|
64
|
+
};
|
|
65
|
+
export {
|
|
66
|
+
W as TopSection
|
|
67
|
+
};
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { jsxs as e, jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { useTranslation as f } from "react-i18next";
|
|
3
|
+
import { Link as u } from "react-router-dom";
|
|
4
|
+
import { Delete03Icon as w, UserAdd02Icon as I, HelpCircleIcon as b } from "@hugeicons/core-free-icons";
|
|
5
|
+
import { HugeiconsIcon as t } from "@hugeicons/react";
|
|
6
|
+
import { Stack as p, Menu as i, Tooltip as x, ActionIcon as T } from "@mantine/core";
|
|
7
|
+
import { IconUserCircle as z } from "@tabler/icons-react";
|
|
8
|
+
import { useAppContainerDataStore as A } from "../../hooks/useAppContainerDataStore.js";
|
|
9
|
+
import { AppSidebarButton as s } from "../AppSidebarButton.js";
|
|
10
|
+
import { HelpMenu as D } from "../menus/HelpMenu/HelpMenu.js";
|
|
11
|
+
import { MenuUserDropdown as M } from "../menus/UserMenu/MenuUserDropdown.js";
|
|
12
|
+
const q = ({
|
|
13
|
+
trashMenu: h,
|
|
14
|
+
onInviteClick: c
|
|
15
|
+
}) => {
|
|
16
|
+
const { t: r } = f("appContainer"), { user: l, isAnonym: n, userMenuItems: a, publicMode: g } = A(), d = !n && !g && l.role !== "mG", m = !n && c;
|
|
17
|
+
return /* @__PURE__ */ e(
|
|
18
|
+
p,
|
|
19
|
+
{
|
|
20
|
+
style: { borderTop: "1px solid var(--app-shell-border)" },
|
|
21
|
+
flex: 1,
|
|
22
|
+
pt: 8,
|
|
23
|
+
gap: 16,
|
|
24
|
+
align: "center",
|
|
25
|
+
children: [
|
|
26
|
+
/* @__PURE__ */ e(
|
|
27
|
+
p,
|
|
28
|
+
{
|
|
29
|
+
justify: !d && !m ? "end" : "space-between",
|
|
30
|
+
gap: 8,
|
|
31
|
+
flex: 1,
|
|
32
|
+
children: [
|
|
33
|
+
d && /* @__PURE__ */ e(i, { position: "right", width: 360, children: [
|
|
34
|
+
/* @__PURE__ */ o(i.Target, { children: /* @__PURE__ */ o(
|
|
35
|
+
s,
|
|
36
|
+
{
|
|
37
|
+
title: r("trash"),
|
|
38
|
+
icon: /* @__PURE__ */ o(t, { icon: w, size: 20 })
|
|
39
|
+
}
|
|
40
|
+
) }),
|
|
41
|
+
/* @__PURE__ */ o(i.Dropdown, { children: h })
|
|
42
|
+
] }),
|
|
43
|
+
/* @__PURE__ */ e(p, { gap: 8, children: [
|
|
44
|
+
m && /* @__PURE__ */ o(
|
|
45
|
+
s,
|
|
46
|
+
{
|
|
47
|
+
title: r("invite"),
|
|
48
|
+
icon: /* @__PURE__ */ o(t, { icon: I, size: 20 }),
|
|
49
|
+
onClick: c
|
|
50
|
+
}
|
|
51
|
+
),
|
|
52
|
+
/* @__PURE__ */ e(i, { position: "right-end", width: 260, children: [
|
|
53
|
+
/* @__PURE__ */ o(i.Target, { children: /* @__PURE__ */ o(
|
|
54
|
+
s,
|
|
55
|
+
{
|
|
56
|
+
title: r("help"),
|
|
57
|
+
icon: /* @__PURE__ */ o(t, { icon: b, size: 20 })
|
|
58
|
+
}
|
|
59
|
+
) }),
|
|
60
|
+
/* @__PURE__ */ o(i.Dropdown, { children: /* @__PURE__ */ o(D, {}) })
|
|
61
|
+
] })
|
|
62
|
+
] })
|
|
63
|
+
]
|
|
64
|
+
}
|
|
65
|
+
),
|
|
66
|
+
n ? /* @__PURE__ */ o(u, { to: "/login", children: /* @__PURE__ */ o(x, { label: "Log in", position: "right", children: /* @__PURE__ */ o(T, { size: "lg", variant: "light", children: /* @__PURE__ */ o(z, { size: 20 }) }) }) }) : /* @__PURE__ */ o(
|
|
67
|
+
M,
|
|
68
|
+
{
|
|
69
|
+
user: l,
|
|
70
|
+
menuItems: a,
|
|
71
|
+
position: "right-end"
|
|
72
|
+
}
|
|
73
|
+
)
|
|
74
|
+
]
|
|
75
|
+
}
|
|
76
|
+
);
|
|
77
|
+
};
|
|
78
|
+
export {
|
|
79
|
+
q as UserSection
|
|
80
|
+
};
|
|
@@ -5,4 +5,4 @@ declare global {
|
|
|
5
5
|
preSignMode?: boolean;
|
|
6
6
|
}
|
|
7
7
|
}
|
|
8
|
-
export declare const Header: ({ children }: PropsWithChildren) => import("react/jsx-runtime").JSX.Element
|
|
8
|
+
export declare const Header: ({ children }: PropsWithChildren) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { jsxs as e, Fragment as o, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { SidebarToggleButton as n } from "./SidebarToggleButton.js";
|
|
3
|
+
const p = ({ children: r }) => /* @__PURE__ */ e(o, { children: [
|
|
4
|
+
/* @__PURE__ */ t(n, { forOpen: !0 }),
|
|
5
|
+
r
|
|
6
|
+
] });
|
|
7
|
+
export {
|
|
8
|
+
p as Header
|
|
9
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { appContainerStore as e } from "../hooks/useAppContainerStore.js";
|
|
3
|
+
import n from "../AppContainer.module.css.js";
|
|
4
|
+
const p = ({ children: o }) => {
|
|
5
|
+
const r = e.useStore((a) => a.showToolbar);
|
|
6
|
+
return /* @__PURE__ */ t(
|
|
7
|
+
"main",
|
|
8
|
+
{
|
|
9
|
+
className: n.main,
|
|
10
|
+
"data-tool-sidebar-opened": r,
|
|
11
|
+
"data-app-container": !0,
|
|
12
|
+
children: o
|
|
13
|
+
}
|
|
14
|
+
);
|
|
15
|
+
};
|
|
16
|
+
export {
|
|
17
|
+
p as Main
|
|
18
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { ScrollArea as t, Box as l } from "@mantine/core";
|
|
3
|
+
const s = ({ children: o }) => /* @__PURE__ */ r(t, { flex: 1, scrollbars: "y", mih: 0, type: "scroll", children: /* @__PURE__ */ r(l, { w: "var(--toolbar-width)", children: o }) });
|
|
4
|
+
export {
|
|
5
|
+
s as default
|
|
6
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { jsx as r, jsxs as e } from "react/jsx-runtime";
|
|
2
|
+
import { AppShell as a } from "../../AppShell/AppShell.js";
|
|
3
|
+
import { NavbarResizer as p } from "../../NavbarResizer/NavbarResizer.js";
|
|
4
|
+
import { appContainerStore as t } from "../hooks/useAppContainerStore.js";
|
|
5
|
+
import { SlideAnimation as n } from "./SlideAnimation.js";
|
|
6
|
+
const l = ({ children: o }) => {
|
|
7
|
+
const { showRightbar: i, rightbarWidth: h } = t.useStore();
|
|
8
|
+
return /* @__PURE__ */ r(
|
|
9
|
+
n,
|
|
10
|
+
{
|
|
11
|
+
show: i,
|
|
12
|
+
width: "var(--rightbar-width)",
|
|
13
|
+
position: "right",
|
|
14
|
+
children: /* @__PURE__ */ e(a.RightSidebar, { pos: "relative", children: [
|
|
15
|
+
i && /* @__PURE__ */ r(
|
|
16
|
+
p,
|
|
17
|
+
{
|
|
18
|
+
position: "right",
|
|
19
|
+
width: h,
|
|
20
|
+
onChange: t.api.setRightbarWidth
|
|
21
|
+
}
|
|
22
|
+
),
|
|
23
|
+
o
|
|
24
|
+
] })
|
|
25
|
+
}
|
|
26
|
+
);
|
|
27
|
+
};
|
|
28
|
+
export {
|
|
29
|
+
l as RightSidebar
|
|
30
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { SidebarLeft01Icon as i, SidebarRight01Icon as n } from "@hugeicons/core-free-icons";
|
|
3
|
+
import { HugeiconsIcon as c } from "@hugeicons/react";
|
|
4
|
+
import { ActionIcon as a } from "@mantine/core";
|
|
5
|
+
import { appContainerStore as t } from "../hooks/useAppContainerStore.js";
|
|
6
|
+
const g = ({ forOpen: e }) => {
|
|
7
|
+
const { showToolbar: o } = t.useStore();
|
|
8
|
+
return e && o ? null : /* @__PURE__ */ r(
|
|
9
|
+
a,
|
|
10
|
+
{
|
|
11
|
+
variant: "subtle",
|
|
12
|
+
size: "md",
|
|
13
|
+
color: "gray",
|
|
14
|
+
onClick: t.api.toggleToolbar,
|
|
15
|
+
children: /* @__PURE__ */ r(
|
|
16
|
+
c,
|
|
17
|
+
{
|
|
18
|
+
icon: o ? i : n,
|
|
19
|
+
size: 20
|
|
20
|
+
}
|
|
21
|
+
)
|
|
22
|
+
}
|
|
23
|
+
);
|
|
24
|
+
};
|
|
25
|
+
export {
|
|
26
|
+
g as SidebarToggleButton
|
|
27
|
+
};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import { useIsFirstRender as a } from "@mantine/hooks";
|
|
3
|
+
import { AnimatePresence as m, motion as d } from "framer-motion";
|
|
4
|
+
import t from "../AppContainer.module.css.js";
|
|
5
|
+
const u = ({
|
|
6
|
+
children: n,
|
|
7
|
+
show: s,
|
|
8
|
+
width: e,
|
|
9
|
+
position: r
|
|
10
|
+
}) => {
|
|
11
|
+
const o = a();
|
|
12
|
+
return /* @__PURE__ */ i(m, { children: s && /* @__PURE__ */ i(
|
|
13
|
+
d.div,
|
|
14
|
+
{
|
|
15
|
+
className: t.slideContainer,
|
|
16
|
+
initial: o ? !1 : {
|
|
17
|
+
width: 0
|
|
18
|
+
},
|
|
19
|
+
animate: {
|
|
20
|
+
width: e
|
|
21
|
+
},
|
|
22
|
+
exit: {
|
|
23
|
+
width: 0
|
|
24
|
+
},
|
|
25
|
+
transition: {
|
|
26
|
+
duration: 0.2,
|
|
27
|
+
ease: "easeInOut"
|
|
28
|
+
},
|
|
29
|
+
children: /* @__PURE__ */ i(
|
|
30
|
+
"div",
|
|
31
|
+
{
|
|
32
|
+
className: t.slideContent,
|
|
33
|
+
style: { width: e },
|
|
34
|
+
"data-position": r,
|
|
35
|
+
children: n
|
|
36
|
+
}
|
|
37
|
+
)
|
|
38
|
+
}
|
|
39
|
+
) });
|
|
40
|
+
};
|
|
41
|
+
export {
|
|
42
|
+
u as SlideAnimation
|
|
43
|
+
};
|
|
@@ -1,3 +1,7 @@
|
|
|
1
1
|
import { PropsWithChildren } from 'react';
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
interface ToolSidebarProps extends PropsWithChildren {
|
|
3
|
+
navbarTitle?: string;
|
|
4
|
+
onTitleChange?: (title: string) => void;
|
|
5
|
+
}
|
|
6
|
+
export declare const ToolSidebar: (props: ToolSidebarProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { jsx as t, jsxs as c } from "react/jsx-runtime";
|
|
2
|
+
import { useRef as C, useEffect as h, useMemo as S } from "react";
|
|
3
|
+
import { useTranslation as x } from "react-i18next";
|
|
4
|
+
import { useNavigate as I, useParams as N, useLocation as A, matchPath as L } from "react-router-dom";
|
|
5
|
+
import { ActionIcon as y, Title as z, TextInput as B } from "@mantine/core";
|
|
6
|
+
import { useField as P } from "@mantine/form";
|
|
7
|
+
import { IconArrowLeft as R } from "@tabler/icons-react";
|
|
8
|
+
import { AppShell as d } from "../../AppShell/AppShell.js";
|
|
9
|
+
import { NavbarResizer as V } from "../../NavbarResizer/NavbarResizer.js";
|
|
10
|
+
import { useAppContainerDataStore as W } from "../hooks/useAppContainerDataStore.js";
|
|
11
|
+
import { appContainerStore as u } from "../hooks/useAppContainerStore.js";
|
|
12
|
+
import { SidebarToggleButton as j } from "./SidebarToggleButton.js";
|
|
13
|
+
import { SlideAnimation as k } from "./SlideAnimation.js";
|
|
14
|
+
import i from "../AppContainer.module.css.js";
|
|
15
|
+
const Z = (f) => {
|
|
16
|
+
const { t: T } = x("appContainer"), { children: g, navbarTitle: e, onTitleChange: r } = f, b = I(), { showToolbar: a, toolbarWidth: v } = u.useStore(), { formId: w } = N(), l = C(r);
|
|
17
|
+
h(() => {
|
|
18
|
+
l.current = r;
|
|
19
|
+
}, [r]);
|
|
20
|
+
const s = P({
|
|
21
|
+
initialValue: e || "",
|
|
22
|
+
onValueChange: (o) => {
|
|
23
|
+
l.current?.(o);
|
|
24
|
+
}
|
|
25
|
+
});
|
|
26
|
+
h(() => {
|
|
27
|
+
s.setValue(e || "");
|
|
28
|
+
}, [e]);
|
|
29
|
+
const m = A(), p = W((o) => o.tools), n = S(() => p.find((o) => !!L({ path: o.path, end: !1 }, m.pathname)), [m.pathname, p]);
|
|
30
|
+
return /* @__PURE__ */ t(
|
|
31
|
+
k,
|
|
32
|
+
{
|
|
33
|
+
show: a,
|
|
34
|
+
width: "var(--toolbar-width)",
|
|
35
|
+
position: "left",
|
|
36
|
+
children: /* @__PURE__ */ c(d.LeftSidebar, { pos: "relative", children: [
|
|
37
|
+
a && /* @__PURE__ */ t(
|
|
38
|
+
V,
|
|
39
|
+
{
|
|
40
|
+
position: "left",
|
|
41
|
+
width: v,
|
|
42
|
+
onChange: u.api.setToolbarWidth
|
|
43
|
+
}
|
|
44
|
+
),
|
|
45
|
+
/* @__PURE__ */ c(d.Header, { pl: 16, pr: 14, children: [
|
|
46
|
+
n?.withBackButton && w && n.name && /* @__PURE__ */ t(
|
|
47
|
+
y,
|
|
48
|
+
{
|
|
49
|
+
onClick: () => b(n?.path),
|
|
50
|
+
variant: "subtle",
|
|
51
|
+
size: "md",
|
|
52
|
+
color: "gray",
|
|
53
|
+
children: /* @__PURE__ */ t(R, { size: 20 })
|
|
54
|
+
}
|
|
55
|
+
),
|
|
56
|
+
/* @__PURE__ */ t(z, { order: 4, component: "div", className: i.toolTitle, children: r ? /* @__PURE__ */ t(
|
|
57
|
+
B,
|
|
58
|
+
{
|
|
59
|
+
...s.getInputProps(),
|
|
60
|
+
placeholder: T("noName"),
|
|
61
|
+
maxLength: 50,
|
|
62
|
+
minLength: 1,
|
|
63
|
+
unstyled: !0,
|
|
64
|
+
classNames: {
|
|
65
|
+
input: i.toolTitleInput
|
|
66
|
+
},
|
|
67
|
+
styles: {
|
|
68
|
+
root: {
|
|
69
|
+
width: "100%",
|
|
70
|
+
flex: 1
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
) : /* @__PURE__ */ t("span", { className: i.toolTitleText, children: e }) }),
|
|
75
|
+
/* @__PURE__ */ t(j, {})
|
|
76
|
+
] }),
|
|
77
|
+
g
|
|
78
|
+
] })
|
|
79
|
+
}
|
|
80
|
+
);
|
|
81
|
+
};
|
|
82
|
+
export {
|
|
83
|
+
Z as ToolSidebar
|
|
84
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { Add01Icon as r } from "@hugeicons/core-free-icons";
|
|
3
|
+
import { HugeiconsIcon as n } from "@hugeicons/react";
|
|
4
|
+
import { Button as e } from "@mantine/core";
|
|
5
|
+
const c = ({
|
|
6
|
+
children: o,
|
|
7
|
+
...i
|
|
8
|
+
}) => /* @__PURE__ */ t(
|
|
9
|
+
e,
|
|
10
|
+
{
|
|
11
|
+
px: 8,
|
|
12
|
+
leftSection: /* @__PURE__ */ t(n, { icon: r, size: 16 }),
|
|
13
|
+
justify: "flex-start",
|
|
14
|
+
variant: "filled",
|
|
15
|
+
size: "sm",
|
|
16
|
+
fullWidth: !0,
|
|
17
|
+
styles: {
|
|
18
|
+
section: {
|
|
19
|
+
marginInlineEnd: 8
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
...i,
|
|
23
|
+
children: o
|
|
24
|
+
}
|
|
25
|
+
);
|
|
26
|
+
export {
|
|
27
|
+
c as ToolbarNewButton
|
|
28
|
+
};
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
import { jsxs as o, jsx as e, Fragment as d } from "react/jsx-runtime";
|
|
2
|
+
import { useTranslation as g } from "react-i18next";
|
|
3
|
+
import { DiscountTag02Icon as f, CustomerSupportIcon as u, Layers01Icon as S, BookOpen01Icon as I, LicenseIcon as b } from "@hugeicons/core-free-icons";
|
|
4
|
+
import { HugeiconsIcon as n } from "@hugeicons/react";
|
|
5
|
+
import { useAppContainerDataStore as v } from "../../../hooks/useAppContainerDataStore.js";
|
|
6
|
+
import { Stack as k, Button as s, Menu as i, Text as w } from "@mantine/core";
|
|
7
|
+
import y from "../../../../../assets/svg/discord-icon.svg.js";
|
|
8
|
+
import D from "../../../../../assets/svg/telegram-icon.svg.js";
|
|
9
|
+
import { WhatsNew as z } from "./WhatsNew.js";
|
|
10
|
+
const P = () => {
|
|
11
|
+
const { t } = g("helpMenu"), {
|
|
12
|
+
showMessenger: r,
|
|
13
|
+
showNewMessage: a,
|
|
14
|
+
version: m,
|
|
15
|
+
updatedAt: l,
|
|
16
|
+
privacyPolicyLink: p,
|
|
17
|
+
userAgreementLink: h,
|
|
18
|
+
whatsNewItems: c
|
|
19
|
+
} = v();
|
|
20
|
+
return /* @__PURE__ */ o(k, { gap: 6, p: 4, children: [
|
|
21
|
+
/* @__PURE__ */ e(
|
|
22
|
+
s,
|
|
23
|
+
{
|
|
24
|
+
component: "a",
|
|
25
|
+
href: "https://t.me/layers_app",
|
|
26
|
+
target: "_blank",
|
|
27
|
+
bg: "blue.5",
|
|
28
|
+
leftSection: /* @__PURE__ */ e(D, { width: 16, height: 16 }),
|
|
29
|
+
c: "white",
|
|
30
|
+
size: "sm",
|
|
31
|
+
justify: "flex-start",
|
|
32
|
+
children: t("joinTelegram")
|
|
33
|
+
}
|
|
34
|
+
),
|
|
35
|
+
/* @__PURE__ */ e(
|
|
36
|
+
s,
|
|
37
|
+
{
|
|
38
|
+
component: "a",
|
|
39
|
+
href: "https://discord.gg/mEd2PbchRD",
|
|
40
|
+
target: "_blank",
|
|
41
|
+
bg: "indigo.5",
|
|
42
|
+
leftSection: /* @__PURE__ */ e(y, { width: 16, height: 16 }),
|
|
43
|
+
c: "white",
|
|
44
|
+
size: "sm",
|
|
45
|
+
justify: "flex-start",
|
|
46
|
+
children: t("joinDiscord")
|
|
47
|
+
}
|
|
48
|
+
),
|
|
49
|
+
/* @__PURE__ */ e(i.Divider, {}),
|
|
50
|
+
/* @__PURE__ */ e(
|
|
51
|
+
i.Item,
|
|
52
|
+
{
|
|
53
|
+
onClick: () => {
|
|
54
|
+
r(), a(t("contactSalesMessage"));
|
|
55
|
+
},
|
|
56
|
+
leftSection: /* @__PURE__ */ e(n, { icon: f, size: 16 }),
|
|
57
|
+
children: t("contactSales")
|
|
58
|
+
}
|
|
59
|
+
),
|
|
60
|
+
/* @__PURE__ */ e(
|
|
61
|
+
i.Item,
|
|
62
|
+
{
|
|
63
|
+
onClick: r,
|
|
64
|
+
leftSection: /* @__PURE__ */ e(n, { icon: u, size: 16 }),
|
|
65
|
+
children: t("getSupport")
|
|
66
|
+
}
|
|
67
|
+
),
|
|
68
|
+
/* @__PURE__ */ e(i.Divider, {}),
|
|
69
|
+
/* @__PURE__ */ e(
|
|
70
|
+
i.Item,
|
|
71
|
+
{
|
|
72
|
+
leftSection: /* @__PURE__ */ e(n, { icon: S, size: 16 }),
|
|
73
|
+
component: "a",
|
|
74
|
+
href: "https://layers.md/",
|
|
75
|
+
target: "_blank",
|
|
76
|
+
children: t("aboutLayers")
|
|
77
|
+
}
|
|
78
|
+
),
|
|
79
|
+
/* @__PURE__ */ e(
|
|
80
|
+
i.Item,
|
|
81
|
+
{
|
|
82
|
+
variant: "outline",
|
|
83
|
+
component: "a",
|
|
84
|
+
target: "_blank",
|
|
85
|
+
href: h,
|
|
86
|
+
leftSection: /* @__PURE__ */ e(n, { icon: I, size: 16 }),
|
|
87
|
+
children: t("userAgreement")
|
|
88
|
+
}
|
|
89
|
+
),
|
|
90
|
+
/* @__PURE__ */ e(
|
|
91
|
+
i.Item,
|
|
92
|
+
{
|
|
93
|
+
variant: "outline",
|
|
94
|
+
component: "a",
|
|
95
|
+
target: "_blank",
|
|
96
|
+
href: p,
|
|
97
|
+
leftSection: /* @__PURE__ */ e(n, { icon: b, size: 16 }),
|
|
98
|
+
children: t("termsAndPrivacy")
|
|
99
|
+
}
|
|
100
|
+
),
|
|
101
|
+
/* @__PURE__ */ e(i.Divider, {}),
|
|
102
|
+
!!c?.length && /* @__PURE__ */ o(d, { children: [
|
|
103
|
+
/* @__PURE__ */ e(z, { items: c }),
|
|
104
|
+
/* @__PURE__ */ e(i.Divider, {})
|
|
105
|
+
] }),
|
|
106
|
+
/* @__PURE__ */ o(w, { size: "xs", c: "dimmed", children: [
|
|
107
|
+
t("updated"),
|
|
108
|
+
" ",
|
|
109
|
+
l,
|
|
110
|
+
/* @__PURE__ */ e("br", {}),
|
|
111
|
+
"Layers v",
|
|
112
|
+
m,
|
|
113
|
+
/* @__PURE__ */ e("br", {}),
|
|
114
|
+
"© ",
|
|
115
|
+
(/* @__PURE__ */ new Date()).getFullYear(),
|
|
116
|
+
" Layers Web Application"
|
|
117
|
+
] })
|
|
118
|
+
] });
|
|
119
|
+
};
|
|
120
|
+
export {
|
|
121
|
+
P as HelpMenu
|
|
122
|
+
};
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { jsxs as n, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { useTranslation as p } from "react-i18next";
|
|
3
|
+
import { LinkSquare02Icon as d } from "@hugeicons/core-free-icons";
|
|
4
|
+
import { HugeiconsIcon as u } from "@hugeicons/react";
|
|
5
|
+
import { Stack as s, Menu as a, Title as g, Flex as f, Button as y } from "@mantine/core";
|
|
6
|
+
import o from "./HelpMenu.module.css.js";
|
|
7
|
+
const L = ({ items: r }) => {
|
|
8
|
+
const { t } = p("helpMenu");
|
|
9
|
+
return /* @__PURE__ */ n(s, { gap: 12, children: [
|
|
10
|
+
/* @__PURE__ */ n(s, { gap: 0, children: [
|
|
11
|
+
/* @__PURE__ */ e(a.Label, { children: /* @__PURE__ */ e(g, { order: 6, component: "span", c: "var(--mantine-color-bright)", children: t("whatsNew") }) }),
|
|
12
|
+
r?.map((i, l, c) => {
|
|
13
|
+
const h = l === 0, m = l === c.length - 1;
|
|
14
|
+
return /* @__PURE__ */ e(
|
|
15
|
+
a.Item,
|
|
16
|
+
{
|
|
17
|
+
px: 12,
|
|
18
|
+
py: 0,
|
|
19
|
+
h: 35,
|
|
20
|
+
component: "a",
|
|
21
|
+
href: i.link,
|
|
22
|
+
target: "_blank",
|
|
23
|
+
styles: {
|
|
24
|
+
itemLabel: {
|
|
25
|
+
height: "100%"
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
children: /* @__PURE__ */ n(f, { gap: 10, h: "100%", children: [
|
|
29
|
+
/* @__PURE__ */ e(v, { isFirst: h, isLast: m }),
|
|
30
|
+
i.title
|
|
31
|
+
] })
|
|
32
|
+
},
|
|
33
|
+
i.title
|
|
34
|
+
);
|
|
35
|
+
})
|
|
36
|
+
] }),
|
|
37
|
+
/* @__PURE__ */ e(
|
|
38
|
+
y,
|
|
39
|
+
{
|
|
40
|
+
rightSection: /* @__PURE__ */ e(u, { icon: d, size: "1em" }),
|
|
41
|
+
variant: "default",
|
|
42
|
+
size: "xs",
|
|
43
|
+
fullWidth: !0,
|
|
44
|
+
children: t("showMore")
|
|
45
|
+
}
|
|
46
|
+
)
|
|
47
|
+
] });
|
|
48
|
+
}, v = ({
|
|
49
|
+
isFirst: r,
|
|
50
|
+
isLast: t
|
|
51
|
+
}) => /* @__PURE__ */ n(s, { gap: 4, h: "100%", align: "center", children: [
|
|
52
|
+
/* @__PURE__ */ e("div", { className: o.line, style: { opacity: r ? 0 : 1 } }),
|
|
53
|
+
/* @__PURE__ */ e("div", { className: o.dot }),
|
|
54
|
+
/* @__PURE__ */ e("div", { className: o.line, style: { opacity: t ? 0 : 1 } })
|
|
55
|
+
] });
|
|
56
|
+
export {
|
|
57
|
+
L as WhatsNew
|
|
58
|
+
};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import { Link as c } from "react-router-dom";
|
|
3
|
+
import { PinIcon as m } from "@hugeicons/core-free-icons";
|
|
4
|
+
import { HugeiconsIcon as p } from "@hugeicons/react";
|
|
5
|
+
import { useAppContainerDataStore as a } from "../../hooks/useAppContainerDataStore.js";
|
|
6
|
+
import { Stack as s, Menu as l, ActionIcon as d } from "@mantine/core";
|
|
7
|
+
import { IconPinFilled as f } from "@tabler/icons-react";
|
|
8
|
+
import { appContainerStore as n } from "../../hooks/useAppContainerStore.js";
|
|
9
|
+
const y = () => {
|
|
10
|
+
const e = n.useStore((o) => o.hiddenTools), t = a((o) => o.tools);
|
|
11
|
+
return /* @__PURE__ */ i(s, { gap: 2, children: t?.map((o) => /* @__PURE__ */ i(
|
|
12
|
+
l.Item,
|
|
13
|
+
{
|
|
14
|
+
component: c,
|
|
15
|
+
to: o.path,
|
|
16
|
+
leftSection: o.icon({ size: 16 }),
|
|
17
|
+
rightSection: /* @__PURE__ */ i(
|
|
18
|
+
d,
|
|
19
|
+
{
|
|
20
|
+
size: "sm",
|
|
21
|
+
color: "gray",
|
|
22
|
+
variant: "subtle",
|
|
23
|
+
onClick: (r) => {
|
|
24
|
+
r.preventDefault(), r.stopPropagation(), n.api.toggleToolVisibility(o.id);
|
|
25
|
+
},
|
|
26
|
+
children: e.includes(o.id) ? /* @__PURE__ */ i(p, { icon: m, size: 16 }) : /* @__PURE__ */ i(
|
|
27
|
+
f,
|
|
28
|
+
{
|
|
29
|
+
size: 16,
|
|
30
|
+
color: "var(--mantine-primary-color-filled)"
|
|
31
|
+
}
|
|
32
|
+
)
|
|
33
|
+
}
|
|
34
|
+
),
|
|
35
|
+
children: o.name
|
|
36
|
+
},
|
|
37
|
+
o.id
|
|
38
|
+
)) });
|
|
39
|
+
};
|
|
40
|
+
export {
|
|
41
|
+
y as MoreMenu
|
|
42
|
+
};
|