@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,121 @@
|
|
|
1
|
+
import { jsx as r, jsxs as t } from "react/jsx-runtime";
|
|
2
|
+
import { memo as i } from "react";
|
|
3
|
+
import { useTranslation as c } from "react-i18next";
|
|
4
|
+
import { CustomKBD as n } from "../../CustomKBD/index.js";
|
|
5
|
+
import { Modal as h, Stack as l, Text as s, Group as m } from "@mantine/core";
|
|
6
|
+
import { create as x } from "zustand";
|
|
7
|
+
const p = x(() => ({
|
|
8
|
+
opened: !1
|
|
9
|
+
})), g = () => {
|
|
10
|
+
p.setState({ opened: !0 });
|
|
11
|
+
}, M = () => {
|
|
12
|
+
p.setState({ opened: !1 });
|
|
13
|
+
}, b = () => {
|
|
14
|
+
const { t: e } = c("searchPage"), a = [
|
|
15
|
+
{
|
|
16
|
+
symbol: '" "',
|
|
17
|
+
description: e("searchModal.help.exactPhrase"),
|
|
18
|
+
example: '"exact phrase"'
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
symbol: "*",
|
|
22
|
+
description: e("searchModal.help.wildcard"),
|
|
23
|
+
example: "report*",
|
|
24
|
+
w: 20
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
symbol: "?",
|
|
28
|
+
description: e("searchModal.help.singleCharacter"),
|
|
29
|
+
example: "file_?",
|
|
30
|
+
w: 20
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
symbol: "AND",
|
|
34
|
+
description: e("searchModal.help.andOperator"),
|
|
35
|
+
example: "task AND report"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
symbol: "+",
|
|
39
|
+
description: e("searchModal.help.plusOperator"),
|
|
40
|
+
example: "task +report",
|
|
41
|
+
w: 20
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
symbol: "OR",
|
|
45
|
+
description: e("searchModal.help.orOperator"),
|
|
46
|
+
example: "task OR report",
|
|
47
|
+
w: 27
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
symbol: "/",
|
|
51
|
+
description: e("searchModal.help.slashOperator"),
|
|
52
|
+
example: "task /report",
|
|
53
|
+
w: 20
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
symbol: "NOT",
|
|
57
|
+
description: e("searchModal.help.notOperator"),
|
|
58
|
+
example: "task NOT report"
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
symbol: "-",
|
|
62
|
+
description: e("searchModal.help.minusOperator"),
|
|
63
|
+
example: "draft -report",
|
|
64
|
+
w: 20
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
symbol: "( )",
|
|
68
|
+
description: e("searchModal.help.parentheses"),
|
|
69
|
+
example: "(task OR project) AND report"
|
|
70
|
+
}
|
|
71
|
+
];
|
|
72
|
+
return /* @__PURE__ */ t(l, { gap: "sm", children: [
|
|
73
|
+
/* @__PURE__ */ r(s, { size: "xs", c: "dimmed", children: e("searchModal.help.description") }),
|
|
74
|
+
/* @__PURE__ */ r(l, { gap: 0, pb: 12, px: 8, children: a.map((o, d) => /* @__PURE__ */ t(m, { h: 48, children: [
|
|
75
|
+
/* @__PURE__ */ r(
|
|
76
|
+
n,
|
|
77
|
+
{
|
|
78
|
+
bbw: 3,
|
|
79
|
+
br: 6,
|
|
80
|
+
miw: o.w,
|
|
81
|
+
fz: 12,
|
|
82
|
+
value: o.symbol,
|
|
83
|
+
c: "system"
|
|
84
|
+
}
|
|
85
|
+
),
|
|
86
|
+
/* @__PURE__ */ r(s, { size: "sm", style: { flex: 1 }, children: o.description }),
|
|
87
|
+
/* @__PURE__ */ r(s, { size: "xs", children: o.example })
|
|
88
|
+
] }, d)) })
|
|
89
|
+
] });
|
|
90
|
+
}, k = i(() => {
|
|
91
|
+
const { t: e } = c("searchPage"), a = p((o) => o.opened);
|
|
92
|
+
return /* @__PURE__ */ r(
|
|
93
|
+
h,
|
|
94
|
+
{
|
|
95
|
+
opened: a,
|
|
96
|
+
title: e("searchModal.help.title"),
|
|
97
|
+
onClose: M,
|
|
98
|
+
size: 531,
|
|
99
|
+
radius: "md",
|
|
100
|
+
centered: !0,
|
|
101
|
+
styles: {
|
|
102
|
+
title: {
|
|
103
|
+
fontSize: 14
|
|
104
|
+
},
|
|
105
|
+
header: {
|
|
106
|
+
fontSize: 14,
|
|
107
|
+
padding: "0px 12px 0px 12px"
|
|
108
|
+
},
|
|
109
|
+
body: {
|
|
110
|
+
padding: "0px 12px 0px 12px"
|
|
111
|
+
}
|
|
112
|
+
},
|
|
113
|
+
children: /* @__PURE__ */ r(b, {})
|
|
114
|
+
}
|
|
115
|
+
);
|
|
116
|
+
});
|
|
117
|
+
export {
|
|
118
|
+
k as SearchHelpModal,
|
|
119
|
+
M as closeSearchHelpModal,
|
|
120
|
+
g as openSearchHelpModal
|
|
121
|
+
};
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import { jsx as e, jsxs as h } from "react/jsx-runtime";
|
|
2
|
+
import { useRef as O } from "react";
|
|
3
|
+
import { useTranslation as j } from "react-i18next";
|
|
4
|
+
import { Popover as d, Pill as k, Flex as A, Button as M } from "@mantine/core";
|
|
5
|
+
import { useDisclosure as P } from "@mantine/hooks";
|
|
6
|
+
import { IconArrowsSort as g, IconChevronDown as C } from "@tabler/icons-react";
|
|
7
|
+
import m from "../SearchFilters.module.css.js";
|
|
8
|
+
const K = ({ setSelectedFilter: p, selectedFilter: v }) => {
|
|
9
|
+
const { t: r } = j("searchPage"), [i, { close: o, open: x }] = P(!1), y = O(null), S = (t) => {
|
|
10
|
+
o(), p((a) => {
|
|
11
|
+
const n = a.sort?.[0], c = n ? Object.keys(n)[0] : null, b = c ? n[c].order : null;
|
|
12
|
+
return c === t.value && b === t.order ? { ...a, sort: [] } : { ...a, sort: [{ [t.value]: { order: t.order } }] };
|
|
13
|
+
});
|
|
14
|
+
}, u = [
|
|
15
|
+
{
|
|
16
|
+
value: "name",
|
|
17
|
+
text: r("searchModal.filters.sort.matches"),
|
|
18
|
+
order: "desc"
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
value: "createdAt",
|
|
22
|
+
text: r("searchModal.filters.sort.createdNew"),
|
|
23
|
+
order: "desc"
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
value: "createdAt",
|
|
27
|
+
text: r("searchModal.filters.sort.createdOld"),
|
|
28
|
+
order: "asc"
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
value: "updatedAt",
|
|
32
|
+
text: r("searchModal.filters.sort.editedNew"),
|
|
33
|
+
order: "desc"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
value: "updatedAt",
|
|
37
|
+
text: r("searchModal.filters.sort.editedOld"),
|
|
38
|
+
order: "asc"
|
|
39
|
+
}
|
|
40
|
+
], s = v?.sort?.[0], f = s ? Object.keys(s)[0] : null, w = s?.[f || ""] ?? null, l = u.find(
|
|
41
|
+
(t) => t.value === f && t.order === w?.order
|
|
42
|
+
);
|
|
43
|
+
return /* @__PURE__ */ e("div", { ref: y, style: { height: 22 }, children: /* @__PURE__ */ h(
|
|
44
|
+
d,
|
|
45
|
+
{
|
|
46
|
+
clickOutsideEvents: ["mouseup", "touchend"],
|
|
47
|
+
withArrow: !0,
|
|
48
|
+
position: "bottom-start",
|
|
49
|
+
radius: "md",
|
|
50
|
+
opened: i,
|
|
51
|
+
onClose: o,
|
|
52
|
+
transitionProps: { duration: 150, transition: "fade-down" },
|
|
53
|
+
children: [
|
|
54
|
+
/* @__PURE__ */ e(d.Target, { children: /* @__PURE__ */ h(
|
|
55
|
+
k,
|
|
56
|
+
{
|
|
57
|
+
onClick: i ? o : x,
|
|
58
|
+
classNames: {
|
|
59
|
+
root: m.filterPill,
|
|
60
|
+
label: m.filterPillLabel
|
|
61
|
+
},
|
|
62
|
+
styles: {
|
|
63
|
+
root: {
|
|
64
|
+
background: l ? "#228BE61F" : "transparent"
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
radius: "lg",
|
|
68
|
+
children: [
|
|
69
|
+
/* @__PURE__ */ e(g, { size: 14 }),
|
|
70
|
+
l ? l.text : r("searchModal.filters.sort.title"),
|
|
71
|
+
/* @__PURE__ */ e(C, { size: 16 })
|
|
72
|
+
]
|
|
73
|
+
}
|
|
74
|
+
) }),
|
|
75
|
+
/* @__PURE__ */ e(d.Dropdown, { p: 4, children: /* @__PURE__ */ e(A, { direction: "column", justify: "start", children: u.map((t) => /* @__PURE__ */ e(
|
|
76
|
+
M,
|
|
77
|
+
{
|
|
78
|
+
onClick: () => S(t),
|
|
79
|
+
h: 32,
|
|
80
|
+
fullWidth: !0,
|
|
81
|
+
fz: "sm",
|
|
82
|
+
variant: "subtle",
|
|
83
|
+
color: "system",
|
|
84
|
+
styles: {
|
|
85
|
+
inner: {
|
|
86
|
+
justifyContent: "flex-start"
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
children: t.text
|
|
90
|
+
},
|
|
91
|
+
t.text
|
|
92
|
+
)) }) })
|
|
93
|
+
]
|
|
94
|
+
}
|
|
95
|
+
) });
|
|
96
|
+
};
|
|
97
|
+
export {
|
|
98
|
+
K as Sort
|
|
99
|
+
};
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
import { jsx as o, jsxs as c } from "react/jsx-runtime";
|
|
2
|
+
import { useRef as x, useEffect as w } from "react";
|
|
3
|
+
import { useTranslation as g } from "react-i18next";
|
|
4
|
+
import { File01Icon as C, CheckmarkSquare03Icon as P, FlowIcon as k, Task02Icon as I, FolderCloudIcon as z } from "@hugeicons/core-free-icons";
|
|
5
|
+
import { HugeiconsIcon as s } from "@hugeicons/react";
|
|
6
|
+
import { Popover as u, Pill as E, Flex as M, FocusTrap as d, Button as O } from "@mantine/core";
|
|
7
|
+
import { useDisclosure as T } from "@mantine/hooks";
|
|
8
|
+
import { IconFileUnknown as b, IconChevronDown as j } from "@tabler/icons-react";
|
|
9
|
+
import m from "../SearchFilters.module.css.js";
|
|
10
|
+
const H = ({
|
|
11
|
+
setSelectedFilter: p,
|
|
12
|
+
selectedFilter: n,
|
|
13
|
+
allowedTypes: h
|
|
14
|
+
}) => {
|
|
15
|
+
const { t: r } = g("searchPage"), l = x(null), [f, { close: i, open: y }] = T(!1), v = (e) => {
|
|
16
|
+
if (i(), n?.type === e) {
|
|
17
|
+
p((t) => ({
|
|
18
|
+
...t,
|
|
19
|
+
type: n.type
|
|
20
|
+
}));
|
|
21
|
+
return;
|
|
22
|
+
}
|
|
23
|
+
p((t) => ({
|
|
24
|
+
...t,
|
|
25
|
+
type: e
|
|
26
|
+
}));
|
|
27
|
+
};
|
|
28
|
+
w(() => {
|
|
29
|
+
const e = (t) => {
|
|
30
|
+
l.current && !l.current.contains(t.target) && i();
|
|
31
|
+
};
|
|
32
|
+
return document.addEventListener("mousedown", e), () => {
|
|
33
|
+
document.removeEventListener("mousedown", e);
|
|
34
|
+
};
|
|
35
|
+
}, [i]);
|
|
36
|
+
const a = [
|
|
37
|
+
{
|
|
38
|
+
value: "PAGE",
|
|
39
|
+
text: r("searchModal.filters.type.page"),
|
|
40
|
+
icon: /* @__PURE__ */ o(s, { icon: C, size: 16 })
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
value: "PROJECT",
|
|
44
|
+
text: r("searchModal.filters.type.project"),
|
|
45
|
+
icon: /* @__PURE__ */ o(s, { icon: P, size: 16 })
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
value: "FLOW",
|
|
49
|
+
text: r("searchModal.filters.type.flow"),
|
|
50
|
+
icon: /* @__PURE__ */ o(s, { icon: k, size: 16 })
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
value: "FORM",
|
|
54
|
+
text: r("searchModal.filters.type.forms"),
|
|
55
|
+
icon: /* @__PURE__ */ o(s, { icon: I, size: 16 })
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
value: "FOLDER",
|
|
59
|
+
text: r("searchModal.filters.type.cloud"),
|
|
60
|
+
icon: /* @__PURE__ */ o(s, { icon: z, size: 16 })
|
|
61
|
+
}
|
|
62
|
+
];
|
|
63
|
+
return /* @__PURE__ */ o("div", { ref: l, style: { height: 22 }, children: /* @__PURE__ */ c(
|
|
64
|
+
u,
|
|
65
|
+
{
|
|
66
|
+
withArrow: !0,
|
|
67
|
+
position: "bottom-start",
|
|
68
|
+
radius: "md",
|
|
69
|
+
transitionProps: { duration: 150, transition: "fade-down" },
|
|
70
|
+
opened: f,
|
|
71
|
+
withinPortal: !1,
|
|
72
|
+
onClose: i,
|
|
73
|
+
closeOnClickOutside: !0,
|
|
74
|
+
children: [
|
|
75
|
+
/* @__PURE__ */ o(u.Target, { children: /* @__PURE__ */ c(
|
|
76
|
+
E,
|
|
77
|
+
{
|
|
78
|
+
onClick: f ? i : y,
|
|
79
|
+
classNames: {
|
|
80
|
+
root: m.filterPill,
|
|
81
|
+
label: m.filterPillLabel
|
|
82
|
+
},
|
|
83
|
+
styles: {
|
|
84
|
+
root: {
|
|
85
|
+
background: n?.type ? "#228BE61F" : "transparent"
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
children: [
|
|
89
|
+
n?.type ? a.find((e) => e.value === n.type)?.icon : /* @__PURE__ */ o(b, { size: 16 }),
|
|
90
|
+
n?.type ? a.find((e) => e.value === n.type)?.text : r("searchModal.filters.type.title"),
|
|
91
|
+
/* @__PURE__ */ o(j, { size: 16 })
|
|
92
|
+
]
|
|
93
|
+
}
|
|
94
|
+
) }),
|
|
95
|
+
/* @__PURE__ */ o(u.Dropdown, { p: 4, children: /* @__PURE__ */ c(M, { direction: "column", justify: "start", gap: 0, children: [
|
|
96
|
+
/* @__PURE__ */ o(d.InitialFocus, {}),
|
|
97
|
+
a.filter((e) => h?.includes(e.value)).map((e) => /* @__PURE__ */ o(d, { active: !0, children: /* @__PURE__ */ o(
|
|
98
|
+
O,
|
|
99
|
+
{
|
|
100
|
+
onClick: (t) => {
|
|
101
|
+
t.stopPropagation(), t.preventDefault(), console.log("called?"), v(e.value);
|
|
102
|
+
},
|
|
103
|
+
h: 32,
|
|
104
|
+
fullWidth: !0,
|
|
105
|
+
fz: "sm",
|
|
106
|
+
variant: "subtle",
|
|
107
|
+
color: "system",
|
|
108
|
+
leftSection: e.icon,
|
|
109
|
+
styles: {
|
|
110
|
+
inner: {
|
|
111
|
+
justifyContent: "flex-start"
|
|
112
|
+
}
|
|
113
|
+
},
|
|
114
|
+
children: e.text
|
|
115
|
+
}
|
|
116
|
+
) }, e.value))
|
|
117
|
+
] }) })
|
|
118
|
+
]
|
|
119
|
+
}
|
|
120
|
+
) });
|
|
121
|
+
};
|
|
122
|
+
export {
|
|
123
|
+
H as Type
|
|
124
|
+
};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import b, { useState as h } from "react";
|
|
3
|
+
import { useSensors as x, useSensor as i, PointerSensor as y, KeyboardSensor as I, DndContext as v } from "@dnd-kit/core";
|
|
4
|
+
import { sortableKeyboardCoordinates as C, SortableContext as E, rectSortingStrategy as H, arrayMove as K } from "@dnd-kit/sortable";
|
|
5
|
+
import { useDisableWindowScrollDuringDrag as L } from "../../hooks/useDisableWindowScroll.js";
|
|
6
|
+
/* empty css */
|
|
7
|
+
import { SortableItem as _, DragHandle as j } from "./components/SortableItem/SortableItem.js";
|
|
8
|
+
function s({
|
|
9
|
+
items: e,
|
|
10
|
+
onChange: l,
|
|
11
|
+
renderItem: c,
|
|
12
|
+
onDragStart: g,
|
|
13
|
+
onDragEnd: S,
|
|
14
|
+
gap: f = 8
|
|
15
|
+
}) {
|
|
16
|
+
const m = x(
|
|
17
|
+
i(y),
|
|
18
|
+
i(I, {
|
|
19
|
+
coordinateGetter: C
|
|
20
|
+
})
|
|
21
|
+
), [D, d] = h(!1);
|
|
22
|
+
return L(D), /* @__PURE__ */ o(
|
|
23
|
+
v,
|
|
24
|
+
{
|
|
25
|
+
sensors: m,
|
|
26
|
+
onDragStart: (r) => {
|
|
27
|
+
d(!0), g?.(r);
|
|
28
|
+
},
|
|
29
|
+
onDragEnd: (r) => {
|
|
30
|
+
const { active: t, over: n } = r;
|
|
31
|
+
if (d(!1), n && t.id !== n?.id) {
|
|
32
|
+
const p = e.findIndex(({ id: a }) => a === t.id), u = e.findIndex(({ id: a }) => a === n.id);
|
|
33
|
+
l(K(e, p, u)), S?.(r);
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
children: /* @__PURE__ */ o(E, { items: e, strategy: H, children: /* @__PURE__ */ o("ul", { className: "SortableList", role: "application", style: { gap: f }, children: e.map((r, t) => /* @__PURE__ */ o(b.Fragment, { children: c(r, t) }, r.id)) }) })
|
|
37
|
+
}
|
|
38
|
+
);
|
|
39
|
+
}
|
|
40
|
+
s.Item = _;
|
|
41
|
+
s.DragHandle = j;
|
|
42
|
+
export {
|
|
43
|
+
s as SortableList
|
|
44
|
+
};
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { useMemo as d, createContext as p, useContext as b } from "react";
|
|
3
|
+
import { useSortable as S } from "@dnd-kit/sortable";
|
|
4
|
+
import { CSS as v } from "@dnd-kit/utilities";
|
|
5
|
+
import { ActionIcon as x } from "@mantine/core";
|
|
6
|
+
import { IconGripVertical as g } from "@tabler/icons-react";
|
|
7
|
+
/* empty css */
|
|
8
|
+
const a = p({
|
|
9
|
+
attributes: {},
|
|
10
|
+
listeners: void 0,
|
|
11
|
+
ref() {
|
|
12
|
+
}
|
|
13
|
+
});
|
|
14
|
+
function z({ children: o, id: n }) {
|
|
15
|
+
const {
|
|
16
|
+
attributes: t,
|
|
17
|
+
listeners: e,
|
|
18
|
+
setNodeRef: i,
|
|
19
|
+
setActivatorNodeRef: s,
|
|
20
|
+
transform: c,
|
|
21
|
+
transition: l,
|
|
22
|
+
isDragging: m
|
|
23
|
+
} = S({ id: n }), f = d(
|
|
24
|
+
() => ({
|
|
25
|
+
attributes: t,
|
|
26
|
+
listeners: e,
|
|
27
|
+
ref: s
|
|
28
|
+
}),
|
|
29
|
+
[t, e, s]
|
|
30
|
+
), u = {
|
|
31
|
+
transform: v.Translate.toString(c),
|
|
32
|
+
transition: l,
|
|
33
|
+
maxWidth: "100%",
|
|
34
|
+
overflow: "hidden",
|
|
35
|
+
whiteSpace: "nowrap",
|
|
36
|
+
zIndex: m ? 9999 : void 0
|
|
37
|
+
};
|
|
38
|
+
return /* @__PURE__ */ r(a.Provider, { value: f, children: /* @__PURE__ */ r(
|
|
39
|
+
"li",
|
|
40
|
+
{
|
|
41
|
+
className: "SortableItem",
|
|
42
|
+
ref: i,
|
|
43
|
+
style: u,
|
|
44
|
+
children: o
|
|
45
|
+
}
|
|
46
|
+
) });
|
|
47
|
+
}
|
|
48
|
+
function D({
|
|
49
|
+
iconProps: o,
|
|
50
|
+
actionIconProps: n
|
|
51
|
+
}) {
|
|
52
|
+
const { attributes: t, listeners: e, ref: i } = b(a);
|
|
53
|
+
return /* @__PURE__ */ r(
|
|
54
|
+
x,
|
|
55
|
+
{
|
|
56
|
+
variant: "subtle",
|
|
57
|
+
...t,
|
|
58
|
+
...e,
|
|
59
|
+
styles: {
|
|
60
|
+
root: {
|
|
61
|
+
cursor: "grab",
|
|
62
|
+
userSelect: "none",
|
|
63
|
+
touchAction: "none"
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
...n,
|
|
67
|
+
ref: i,
|
|
68
|
+
children: /* @__PURE__ */ r(
|
|
69
|
+
g,
|
|
70
|
+
{
|
|
71
|
+
size: 14,
|
|
72
|
+
...o,
|
|
73
|
+
color: "var(--mantine-color-gray-5)"
|
|
74
|
+
}
|
|
75
|
+
)
|
|
76
|
+
}
|
|
77
|
+
);
|
|
78
|
+
}
|
|
79
|
+
export {
|
|
80
|
+
D as DragHandle,
|
|
81
|
+
z as SortableItem
|
|
82
|
+
};
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { jsxs as e, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { useTranslation as n } from "react-i18next";
|
|
3
|
+
import { Flex as o, Text as i } from "@mantine/core";
|
|
4
|
+
import { formatStorage as a } from "../../utils/formatStorage.js";
|
|
5
|
+
import c from "../../assets/fileTypes/archives.svg.js";
|
|
6
|
+
import d from "../../assets/fileTypes/audio.svg.js";
|
|
7
|
+
import g from "../../assets/fileTypes/code.svg.js";
|
|
8
|
+
import p from "../../assets/fileTypes/documentsStorage.svg.js";
|
|
9
|
+
import u from "../../assets/fileTypes/images.svg.js";
|
|
10
|
+
import f from "../../assets/fileTypes/other.svg2.js";
|
|
11
|
+
import l from "../../assets/fileTypes/videos.svg.js";
|
|
12
|
+
const h = (r) => {
|
|
13
|
+
switch (r) {
|
|
14
|
+
case "archives":
|
|
15
|
+
return c;
|
|
16
|
+
case "audio":
|
|
17
|
+
return d;
|
|
18
|
+
case "code":
|
|
19
|
+
return g;
|
|
20
|
+
case "documents":
|
|
21
|
+
return p;
|
|
22
|
+
case "images":
|
|
23
|
+
return u;
|
|
24
|
+
case "videos":
|
|
25
|
+
return l;
|
|
26
|
+
default:
|
|
27
|
+
return f;
|
|
28
|
+
}
|
|
29
|
+
}, L = ({
|
|
30
|
+
category: r
|
|
31
|
+
}) => {
|
|
32
|
+
const { t: m } = n("settingsPage"), s = h(r.type);
|
|
33
|
+
return /* @__PURE__ */ e(
|
|
34
|
+
o,
|
|
35
|
+
{
|
|
36
|
+
h: 48,
|
|
37
|
+
w: "100%",
|
|
38
|
+
justify: "space-between",
|
|
39
|
+
align: "center",
|
|
40
|
+
px: 16,
|
|
41
|
+
style: {
|
|
42
|
+
border: "1px solid light-dark(var(--mantine-color-gray-2), var(--mantine-color-dark-4))",
|
|
43
|
+
borderRadius: "var(--mantine-radius-md)"
|
|
44
|
+
},
|
|
45
|
+
children: [
|
|
46
|
+
/* @__PURE__ */ e(o, { align: "center", gap: 8, children: [
|
|
47
|
+
/* @__PURE__ */ t(s, { width: 24, height: 24 }),
|
|
48
|
+
/* @__PURE__ */ t(i, { fz: 14, children: m(`workspace.categories.${r.type}`) })
|
|
49
|
+
] }),
|
|
50
|
+
/* @__PURE__ */ e(i, { c: "dimmed", fz: 14, children: [
|
|
51
|
+
r.percentage,
|
|
52
|
+
"% (",
|
|
53
|
+
a(r.usedKb),
|
|
54
|
+
")"
|
|
55
|
+
] })
|
|
56
|
+
]
|
|
57
|
+
}
|
|
58
|
+
);
|
|
59
|
+
};
|
|
60
|
+
export {
|
|
61
|
+
L as StorageEntityItem
|
|
62
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { Stack as a } from "@mantine/core";
|
|
3
|
+
import { StorageEntityItem as p } from "./StorageEntityItem.js";
|
|
4
|
+
const r = {
|
|
5
|
+
documents: 0,
|
|
6
|
+
images: 1,
|
|
7
|
+
videos: 2,
|
|
8
|
+
audio: 3,
|
|
9
|
+
code: 4,
|
|
10
|
+
archives: 5,
|
|
11
|
+
other: 6
|
|
12
|
+
}, y = ({
|
|
13
|
+
storageByCategory: s,
|
|
14
|
+
totalStorageKb: c
|
|
15
|
+
}) => {
|
|
16
|
+
const n = s.map((t) => {
|
|
17
|
+
const e = t.usedKb / c * 100;
|
|
18
|
+
return {
|
|
19
|
+
...t,
|
|
20
|
+
percentage: parseFloat(e.toFixed(1))
|
|
21
|
+
};
|
|
22
|
+
}).sort((t, e) => r[t.type] - r[e.type]);
|
|
23
|
+
return /* @__PURE__ */ o(a, { gap: 12, children: n.map((t) => /* @__PURE__ */ o(p, { category: t }, t.type)) });
|
|
24
|
+
};
|
|
25
|
+
export {
|
|
26
|
+
y as StorageEntityList
|
|
27
|
+
};
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { useTranslation as h } from "react-i18next";
|
|
3
|
+
import { Box as i, Progress as t, Tooltip as l } from "@mantine/core";
|
|
4
|
+
import { formatStorage as d } from "../../utils/formatStorage.js";
|
|
5
|
+
const F = {
|
|
6
|
+
documents: "#F03E3E",
|
|
7
|
+
images: "#FF6F00",
|
|
8
|
+
other: "#868E96",
|
|
9
|
+
archives: "#9B14EA",
|
|
10
|
+
audio: "#0CA678",
|
|
11
|
+
code: "#1C7ED6",
|
|
12
|
+
videos: "#FAB005"
|
|
13
|
+
}, $ = ({
|
|
14
|
+
storageByCategory: c,
|
|
15
|
+
totalStorageKb: n,
|
|
16
|
+
size: a = 30,
|
|
17
|
+
simple: m = !1,
|
|
18
|
+
color: p = "#1C7ED6"
|
|
19
|
+
}) => {
|
|
20
|
+
const { t: g } = h();
|
|
21
|
+
if (m) {
|
|
22
|
+
const e = c.reduce(
|
|
23
|
+
(s, { usedKb: f }) => s + f,
|
|
24
|
+
0
|
|
25
|
+
), r = e / n * 100;
|
|
26
|
+
return /* @__PURE__ */ o(i, { w: "100%", children: /* @__PURE__ */ o(t.Root, { size: a, children: /* @__PURE__ */ o(l, { label: `${d(e)}`, children: /* @__PURE__ */ o(t.Section, { value: r, color: p }) }) }) });
|
|
27
|
+
}
|
|
28
|
+
const u = c.filter(({ usedKb: e }) => e > 0).map((e) => {
|
|
29
|
+
const r = e.usedKb / n * 100;
|
|
30
|
+
return {
|
|
31
|
+
...e,
|
|
32
|
+
percentage: parseFloat(r.toFixed(4))
|
|
33
|
+
};
|
|
34
|
+
});
|
|
35
|
+
return /* @__PURE__ */ o(i, { w: "100%", children: /* @__PURE__ */ o(t.Root, { size: a, children: u.map(({ type: e, usedKb: r, percentage: s }) => /* @__PURE__ */ o(
|
|
36
|
+
l,
|
|
37
|
+
{
|
|
38
|
+
label: `${g(`settingsPage:workspace.categories.${e}`)} – ${d(r)}`,
|
|
39
|
+
children: /* @__PURE__ */ o(
|
|
40
|
+
t.Section,
|
|
41
|
+
{
|
|
42
|
+
value: s,
|
|
43
|
+
color: F[e]
|
|
44
|
+
}
|
|
45
|
+
)
|
|
46
|
+
},
|
|
47
|
+
e
|
|
48
|
+
)) }) });
|
|
49
|
+
};
|
|
50
|
+
export {
|
|
51
|
+
$ as StorageUsageProgress
|
|
52
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { modals as n } from "@mantine/modals";
|
|
2
|
+
import o from "i18next";
|
|
3
|
+
const l = (e) => n.openConfirmModal({
|
|
4
|
+
keepMounted: !1,
|
|
5
|
+
centered: !0,
|
|
6
|
+
children: e.children,
|
|
7
|
+
labels: { confirm: o.t("remove"), cancel: o.t("cancel") },
|
|
8
|
+
...e
|
|
9
|
+
});
|
|
10
|
+
export {
|
|
11
|
+
l as openSubmitModal
|
|
12
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { useIsDarkTheme as m } from "../../helpers/themeUtils.js";
|
|
3
|
+
import { Indicator as a } from "@mantine/core";
|
|
4
|
+
const c = ({
|
|
5
|
+
children: r,
|
|
6
|
+
...o
|
|
7
|
+
}) => {
|
|
8
|
+
const t = m();
|
|
9
|
+
return /* @__PURE__ */ e(
|
|
10
|
+
a,
|
|
11
|
+
{
|
|
12
|
+
color: t ? "var(--mantine-color-gray-0)" : "dark",
|
|
13
|
+
size: 6,
|
|
14
|
+
...o,
|
|
15
|
+
children: r
|
|
16
|
+
}
|
|
17
|
+
);
|
|
18
|
+
};
|
|
19
|
+
export {
|
|
20
|
+
c as ThemeIndicator
|
|
21
|
+
};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
1
|
+
import { default as React, ReactNode } from 'react';
|
|
2
2
|
import { AvatarProps } from '@mantine/core';
|
|
3
3
|
import { MenuUser } from '../AppContainer/components/menus/UserMenu/MenuUserDropdown';
|
|
4
4
|
export interface UserAvatarProps extends AvatarProps, Omit<React.ComponentPropsWithoutRef<'div'>, keyof AvatarProps> {
|
|
5
|
-
user?: MenuUser | null;
|
|
5
|
+
user?: Partial<MenuUser> | null;
|
|
6
|
+
emptyIcon?: ReactNode;
|
|
6
7
|
}
|
|
7
8
|
export declare const UserAvatar: React.ForwardRefExoticComponent<UserAvatarProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { jsx as t, Fragment as a } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as n } from "react";
|
|
3
|
+
import { Avatar as c } from "@mantine/core";
|
|
4
|
+
import { IconUser as p } from "@tabler/icons-react";
|
|
5
|
+
const h = n(
|
|
6
|
+
({ user: r, size: o = 24, emptyIcon: i, ...e }, m) => /* @__PURE__ */ t(
|
|
7
|
+
c,
|
|
8
|
+
{
|
|
9
|
+
src: r?.avatar,
|
|
10
|
+
color: "initials",
|
|
11
|
+
tt: "uppercase",
|
|
12
|
+
size: o,
|
|
13
|
+
name: r?.id ?? "",
|
|
14
|
+
...e,
|
|
15
|
+
ref: m,
|
|
16
|
+
children: r ? /* @__PURE__ */ t(a, { children: r.name?.charAt(0) }) : /* @__PURE__ */ t(a, { children: i ?? /* @__PURE__ */ t(p, { size: "70%" }) })
|
|
17
|
+
}
|
|
18
|
+
)
|
|
19
|
+
);
|
|
20
|
+
export {
|
|
21
|
+
h as UserAvatar
|
|
22
|
+
};
|