@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,58 @@
|
|
|
1
|
+
import { jsxs as e, Fragment as n, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { Helmet as l } from "react-helmet";
|
|
3
|
+
import { useTranslation as s } from "react-i18next";
|
|
4
|
+
import { Stack as m, CloseButton as c } from "@mantine/core";
|
|
5
|
+
import { IconReload as p } from "@tabler/icons-react";
|
|
6
|
+
import { useMenu as a } from "../../../hooks/useMenu.js";
|
|
7
|
+
import { NoData as d } from "../../NoData/NoData.js";
|
|
8
|
+
const k = ({ closeAction: r }) => {
|
|
9
|
+
const { t: o } = s(), { isMobile: i } = a();
|
|
10
|
+
return /* @__PURE__ */ e(n, { children: [
|
|
11
|
+
/* @__PURE__ */ t(l, { children: /* @__PURE__ */ t("title", { children: "500" }) }),
|
|
12
|
+
/* @__PURE__ */ e(
|
|
13
|
+
m,
|
|
14
|
+
{
|
|
15
|
+
h: "100dvh",
|
|
16
|
+
p: 80,
|
|
17
|
+
gap: "sm",
|
|
18
|
+
justify: "center",
|
|
19
|
+
flex: 1,
|
|
20
|
+
align: "center",
|
|
21
|
+
children: [
|
|
22
|
+
/* @__PURE__ */ t(
|
|
23
|
+
d,
|
|
24
|
+
{
|
|
25
|
+
title: o("500.title"),
|
|
26
|
+
description: o("500.description"),
|
|
27
|
+
illustration: "500",
|
|
28
|
+
size: 150,
|
|
29
|
+
flex: "0,0,0",
|
|
30
|
+
h: "50dvh",
|
|
31
|
+
w: i ? 500 : "60%",
|
|
32
|
+
titleProps: { mt: 20 },
|
|
33
|
+
buttons: [
|
|
34
|
+
{
|
|
35
|
+
leftSection: /* @__PURE__ */ t(p, { size: 18 }),
|
|
36
|
+
children: o("500.reload"),
|
|
37
|
+
onClick: () => window.location.reload()
|
|
38
|
+
}
|
|
39
|
+
]
|
|
40
|
+
}
|
|
41
|
+
),
|
|
42
|
+
r && /* @__PURE__ */ t(
|
|
43
|
+
c,
|
|
44
|
+
{
|
|
45
|
+
pos: "absolute",
|
|
46
|
+
top: 16,
|
|
47
|
+
right: 16,
|
|
48
|
+
onClick: r
|
|
49
|
+
}
|
|
50
|
+
)
|
|
51
|
+
]
|
|
52
|
+
}
|
|
53
|
+
)
|
|
54
|
+
] });
|
|
55
|
+
};
|
|
56
|
+
export {
|
|
57
|
+
k as Error500
|
|
58
|
+
};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { jsx as r, Fragment as i, jsxs as a } from "react/jsx-runtime";
|
|
2
|
+
import { useTranslation as l } from "react-i18next";
|
|
3
|
+
import { useNavigate as s } from "react-router-dom";
|
|
4
|
+
import { Stack as d, CloseButton as c } from "@mantine/core";
|
|
5
|
+
import { NoData as m } from "../../NoData/NoData.js";
|
|
6
|
+
const k = ({
|
|
7
|
+
closeAction: e
|
|
8
|
+
}) => {
|
|
9
|
+
const { t: o } = l(), n = s(), t = () => {
|
|
10
|
+
n("/");
|
|
11
|
+
};
|
|
12
|
+
return /* @__PURE__ */ r(i, { children: /* @__PURE__ */ a(d, { p: 80, gap: "sm", justify: "center", flex: 1, align: "center", children: [
|
|
13
|
+
/* @__PURE__ */ r(
|
|
14
|
+
m,
|
|
15
|
+
{
|
|
16
|
+
title: o("undefinedError.title"),
|
|
17
|
+
illustration: "500",
|
|
18
|
+
h: "100dvh",
|
|
19
|
+
buttons: [
|
|
20
|
+
{
|
|
21
|
+
children: o("undefinedError.reload"),
|
|
22
|
+
onClick: () => window.location.reload()
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
children: o("undefinedError.goHome"),
|
|
26
|
+
onClick: t
|
|
27
|
+
}
|
|
28
|
+
]
|
|
29
|
+
}
|
|
30
|
+
),
|
|
31
|
+
e && /* @__PURE__ */ r(
|
|
32
|
+
c,
|
|
33
|
+
{
|
|
34
|
+
pos: "absolute",
|
|
35
|
+
top: 16,
|
|
36
|
+
right: 16,
|
|
37
|
+
onClick: t
|
|
38
|
+
}
|
|
39
|
+
)
|
|
40
|
+
] }) });
|
|
41
|
+
};
|
|
42
|
+
export {
|
|
43
|
+
k as ErrorUndefined
|
|
44
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { Error403 as f } from "./components/Error403.js";
|
|
3
|
+
import { ErrorUndefined as u } from "./components/ErrorUndefined.js";
|
|
4
|
+
import { Error500 as e } from "./components/Error500.js";
|
|
5
|
+
import { Error406 as a } from "./components/Error406.js";
|
|
6
|
+
import { Error404 as o } from "./components/Error404.js";
|
|
7
|
+
const x = ({ error: m, closeAction: r }) => {
|
|
8
|
+
if (m && "status" in m)
|
|
9
|
+
switch (m.status) {
|
|
10
|
+
case 404:
|
|
11
|
+
return /* @__PURE__ */ t(o, { size: 280, closeAction: r });
|
|
12
|
+
case 406:
|
|
13
|
+
return /* @__PURE__ */ t(a, { closeAction: r });
|
|
14
|
+
case 500:
|
|
15
|
+
return /* @__PURE__ */ t(e, { closeAction: r });
|
|
16
|
+
case 403:
|
|
17
|
+
return /* @__PURE__ */ t(f, { closeAction: r });
|
|
18
|
+
default:
|
|
19
|
+
return /* @__PURE__ */ t(u, { closeAction: r });
|
|
20
|
+
}
|
|
21
|
+
return /* @__PURE__ */ t(e, { closeAction: r });
|
|
22
|
+
};
|
|
23
|
+
export {
|
|
24
|
+
x as ErrorPage
|
|
25
|
+
};
|
|
@@ -0,0 +1,242 @@
|
|
|
1
|
+
import { jsx as e, jsxs as s } from "react/jsx-runtime";
|
|
2
|
+
import { useState as b, useMemo as y } from "react";
|
|
3
|
+
import { ImageAdd02Icon as x } from "@hugeicons/core-free-icons";
|
|
4
|
+
import { HugeiconsIcon as F } from "@hugeicons/react";
|
|
5
|
+
import { useMenu as W } from "../../hooks/useMenu.js";
|
|
6
|
+
import { Flex as r, ActionIcon as H, Button as z, Text as q, Popover as g, Tabs as f, Stack as J } from "@mantine/core";
|
|
7
|
+
import { FilePickerGallery as K } from "./FilePickerGallery.js";
|
|
8
|
+
import { FilePickerGiphy as Q } from "./FilePickerGiphy.js";
|
|
9
|
+
import { FilePickerLink as X } from "./FilePickerLink.js";
|
|
10
|
+
import { FilePickerUnsplash as Y } from "./FilePickerUnsplash.js";
|
|
11
|
+
import { FilePickerUpload as Z } from "./FilePickerUpload.js";
|
|
12
|
+
import I from "./FilePicker.module.css.js";
|
|
13
|
+
const _ = [
|
|
14
|
+
"gallery",
|
|
15
|
+
"upload",
|
|
16
|
+
"link",
|
|
17
|
+
"unsplash",
|
|
18
|
+
"giphy"
|
|
19
|
+
], me = ({
|
|
20
|
+
onChange: P,
|
|
21
|
+
onRemove: L,
|
|
22
|
+
onUpload: h,
|
|
23
|
+
uploading: S = !1,
|
|
24
|
+
showTabs: a = _,
|
|
25
|
+
children: C,
|
|
26
|
+
width: M = 610,
|
|
27
|
+
position: N = "bottom-end",
|
|
28
|
+
readOnly: w = !1,
|
|
29
|
+
hasImage: A,
|
|
30
|
+
giphyToken: o,
|
|
31
|
+
unsplashClientId: d,
|
|
32
|
+
type: U = "image",
|
|
33
|
+
galleryCollection: c = [],
|
|
34
|
+
isValidMediaUrl: B,
|
|
35
|
+
popoverProps: G,
|
|
36
|
+
dropZoneProps: j,
|
|
37
|
+
targetProps: T,
|
|
38
|
+
onOpenedChange: D,
|
|
39
|
+
locales: l = {
|
|
40
|
+
gallery: "Gallery",
|
|
41
|
+
link: "Link",
|
|
42
|
+
search: "Search",
|
|
43
|
+
upload: "Upload",
|
|
44
|
+
uploadFile: "Upload file",
|
|
45
|
+
change: "Change",
|
|
46
|
+
save: "Save",
|
|
47
|
+
remove: "Remove",
|
|
48
|
+
error: "Error",
|
|
49
|
+
dragOrClickToChoose: "Drag images here or click to select files",
|
|
50
|
+
maxFileSize: "Images wider than 1600px are recommended. Maximum file size: 5MB.",
|
|
51
|
+
pasteLink: "Paste the image link...",
|
|
52
|
+
submitLink: "Apply",
|
|
53
|
+
worksWithAnyImage: "Works with any images from the Internet",
|
|
54
|
+
noImages: "No images",
|
|
55
|
+
errors: {
|
|
56
|
+
typeIsNotAllowed: "This file type is not supported",
|
|
57
|
+
shouldNotExceed: "File size should not exceed 5 MB.",
|
|
58
|
+
doNotUploadMoreThanSingleFile: "Please upload no more than one file.",
|
|
59
|
+
invalidLink: "Invalid link"
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}) => {
|
|
63
|
+
const [v, u] = b(!1), { isMobile: n } = W(), m = y(
|
|
64
|
+
() => [
|
|
65
|
+
{
|
|
66
|
+
value: "gallery",
|
|
67
|
+
label: /* @__PURE__ */ e(r, { children: !n && /* @__PURE__ */ e("span", { children: l.gallery }) }),
|
|
68
|
+
visible: a.includes("gallery") && !!c.length
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
value: "upload",
|
|
72
|
+
label: /* @__PURE__ */ e(r, { children: !n && /* @__PURE__ */ e("span", { children: l.upload }) }),
|
|
73
|
+
visible: a.includes("upload") && !!h
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
value: "link",
|
|
77
|
+
label: /* @__PURE__ */ e(r, { children: !n && /* @__PURE__ */ e("span", { children: l.link }) }),
|
|
78
|
+
visible: a.includes("link")
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
value: "unsplash",
|
|
82
|
+
label: /* @__PURE__ */ e(r, { children: !n && /* @__PURE__ */ e("span", { children: "Search image" }) }),
|
|
83
|
+
visible: a.includes("unsplash") && d
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
value: "giphy",
|
|
87
|
+
label: /* @__PURE__ */ e(r, { children: !n && /* @__PURE__ */ e("span", { children: "GIFs" }) }),
|
|
88
|
+
visible: a.includes("giphy") && o
|
|
89
|
+
}
|
|
90
|
+
].filter((i) => i.visible),
|
|
91
|
+
[
|
|
92
|
+
n,
|
|
93
|
+
a,
|
|
94
|
+
d,
|
|
95
|
+
o,
|
|
96
|
+
l.gallery,
|
|
97
|
+
l.link,
|
|
98
|
+
l.upload,
|
|
99
|
+
c.length,
|
|
100
|
+
h
|
|
101
|
+
]
|
|
102
|
+
), [t, E] = b(() => {
|
|
103
|
+
if (m[0]) return m[0].value;
|
|
104
|
+
const i = m.find((V) => V.visible);
|
|
105
|
+
return i ? i.value : "";
|
|
106
|
+
}), O = (i) => {
|
|
107
|
+
h?.(i, u);
|
|
108
|
+
}, p = (i) => {
|
|
109
|
+
P?.(i), u(!1);
|
|
110
|
+
}, R = y(() => n ? /* @__PURE__ */ s(H, { size: "lg", children: [
|
|
111
|
+
/* @__PURE__ */ e(F, { icon: x, size: 22 }),
|
|
112
|
+
" "
|
|
113
|
+
] }) : /* @__PURE__ */ e(
|
|
114
|
+
z,
|
|
115
|
+
{
|
|
116
|
+
variant: "default",
|
|
117
|
+
size: "xs",
|
|
118
|
+
leftSection: /* @__PURE__ */ e(F, { icon: x, size: 16 }),
|
|
119
|
+
children: /* @__PURE__ */ e(q, { fw: 600, size: "sm", children: l?.change })
|
|
120
|
+
}
|
|
121
|
+
), [l, n]), k = (i) => {
|
|
122
|
+
u(i), D?.(i);
|
|
123
|
+
};
|
|
124
|
+
return /* @__PURE__ */ s(
|
|
125
|
+
g,
|
|
126
|
+
{
|
|
127
|
+
width: M,
|
|
128
|
+
radius: "var(--mantine-spacing-sm)",
|
|
129
|
+
position: N,
|
|
130
|
+
shadow: "md",
|
|
131
|
+
opened: v,
|
|
132
|
+
onChange: k,
|
|
133
|
+
withinPortal: !0,
|
|
134
|
+
...G || {},
|
|
135
|
+
children: [
|
|
136
|
+
/* @__PURE__ */ e(g.Target, { children: /* @__PURE__ */ e(r, { onClick: () => k(!v), ...T, children: C ?? R }) }),
|
|
137
|
+
/* @__PURE__ */ s(g.Dropdown, { p: 0, children: [
|
|
138
|
+
/* @__PURE__ */ e(r, { justify: "space-between", align: "center", children: /* @__PURE__ */ e(
|
|
139
|
+
f,
|
|
140
|
+
{
|
|
141
|
+
defaultValue: "gallery",
|
|
142
|
+
value: t,
|
|
143
|
+
styles: {
|
|
144
|
+
list: {
|
|
145
|
+
alignItems: "center",
|
|
146
|
+
paddingRight: "var(--mantine-spacing-xs)"
|
|
147
|
+
}
|
|
148
|
+
},
|
|
149
|
+
w: "100%",
|
|
150
|
+
children: /* @__PURE__ */ s(
|
|
151
|
+
f.List,
|
|
152
|
+
{
|
|
153
|
+
style: {
|
|
154
|
+
gap: "4px"
|
|
155
|
+
},
|
|
156
|
+
px: 8,
|
|
157
|
+
h: 54,
|
|
158
|
+
children: [
|
|
159
|
+
m.map((i) => /* @__PURE__ */ e(
|
|
160
|
+
f.Tab,
|
|
161
|
+
{
|
|
162
|
+
className: I.originalTab,
|
|
163
|
+
disabled: w,
|
|
164
|
+
h: "100%",
|
|
165
|
+
p: 0,
|
|
166
|
+
value: i.value,
|
|
167
|
+
onClick: () => E(i.value),
|
|
168
|
+
children: /* @__PURE__ */ e(r, { className: I.customTab, px: "sm", h: 36, children: i.label })
|
|
169
|
+
},
|
|
170
|
+
i.value
|
|
171
|
+
)),
|
|
172
|
+
A && /* @__PURE__ */ e(
|
|
173
|
+
z,
|
|
174
|
+
{
|
|
175
|
+
variant: "subtle",
|
|
176
|
+
fz: "sm",
|
|
177
|
+
lh: "sm",
|
|
178
|
+
fw: 500,
|
|
179
|
+
px: "sm",
|
|
180
|
+
size: "30px",
|
|
181
|
+
onClick: L,
|
|
182
|
+
color: "var(--mantine-color-gray-light-color)",
|
|
183
|
+
style: { marginLeft: "auto" },
|
|
184
|
+
children: l.remove
|
|
185
|
+
}
|
|
186
|
+
)
|
|
187
|
+
]
|
|
188
|
+
}
|
|
189
|
+
)
|
|
190
|
+
}
|
|
191
|
+
) }),
|
|
192
|
+
/* @__PURE__ */ s(J, { gap: 0, px: 8, pb: 8, pt: "sm", children: [
|
|
193
|
+
t === "gallery" && !!c.length && /* @__PURE__ */ e(
|
|
194
|
+
K,
|
|
195
|
+
{
|
|
196
|
+
galleryCollection: c,
|
|
197
|
+
onChange: p
|
|
198
|
+
}
|
|
199
|
+
),
|
|
200
|
+
t === "upload" && /* @__PURE__ */ e(
|
|
201
|
+
Z,
|
|
202
|
+
{
|
|
203
|
+
locales: l,
|
|
204
|
+
uploading: S,
|
|
205
|
+
dropZoneProps: j,
|
|
206
|
+
onUpload: O
|
|
207
|
+
}
|
|
208
|
+
),
|
|
209
|
+
t === "link" && /* @__PURE__ */ e(
|
|
210
|
+
X,
|
|
211
|
+
{
|
|
212
|
+
locales: l,
|
|
213
|
+
type: U || "image",
|
|
214
|
+
onChange: p,
|
|
215
|
+
isValidMediaUrl: B
|
|
216
|
+
}
|
|
217
|
+
),
|
|
218
|
+
t === "unsplash" && d && /* @__PURE__ */ e(
|
|
219
|
+
Y,
|
|
220
|
+
{
|
|
221
|
+
locales: l,
|
|
222
|
+
clientId: d,
|
|
223
|
+
onChange: p
|
|
224
|
+
}
|
|
225
|
+
),
|
|
226
|
+
t === "giphy" && o && /* @__PURE__ */ e(
|
|
227
|
+
Q,
|
|
228
|
+
{
|
|
229
|
+
locales: l,
|
|
230
|
+
token: o,
|
|
231
|
+
onChange: p
|
|
232
|
+
}
|
|
233
|
+
)
|
|
234
|
+
] })
|
|
235
|
+
] })
|
|
236
|
+
]
|
|
237
|
+
}
|
|
238
|
+
);
|
|
239
|
+
};
|
|
240
|
+
export {
|
|
241
|
+
me as FilePicker
|
|
242
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
const t = "_itemImage_3fqzc_1", o = "_originalTab_3fqzc_14", a = "_customTab_3fqzc_20", c = "_button_3fqzc_28", _ = {
|
|
2
|
+
itemImage: t,
|
|
3
|
+
originalTab: o,
|
|
4
|
+
customTab: a,
|
|
5
|
+
button: c
|
|
6
|
+
};
|
|
7
|
+
export {
|
|
8
|
+
c as button,
|
|
9
|
+
a as customTab,
|
|
10
|
+
_ as default,
|
|
11
|
+
t as itemImage,
|
|
12
|
+
o as originalTab
|
|
13
|
+
};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { jsx as r, jsxs as n } from "react/jsx-runtime";
|
|
2
|
+
import { Stack as l, Text as o, SimpleGrid as p, AspectRatio as c } from "@mantine/core";
|
|
3
|
+
import d from "./FilePicker.module.css.js";
|
|
4
|
+
const x = ({
|
|
5
|
+
galleryCollection: s,
|
|
6
|
+
onChange: t
|
|
7
|
+
}) => /* @__PURE__ */ r(l, { gap: "xs", mah: 400, w: "100%", style: { overflow: "auto" }, children: s.map((e) => /* @__PURE__ */ n(l, { gap: 4, pb: "sm", children: [
|
|
8
|
+
/* @__PURE__ */ r("a", { target: "_blank", href: e?.url || "#", children: /* @__PURE__ */ r(
|
|
9
|
+
o,
|
|
10
|
+
{
|
|
11
|
+
fz: "xs",
|
|
12
|
+
fw: 500,
|
|
13
|
+
lh: "xs",
|
|
14
|
+
c: "dimmed",
|
|
15
|
+
component: "span",
|
|
16
|
+
td: "none",
|
|
17
|
+
children: e.title
|
|
18
|
+
}
|
|
19
|
+
) }),
|
|
20
|
+
/* @__PURE__ */ r(p, { spacing: 10, cols: 4, children: e.items.map((m, a) => {
|
|
21
|
+
const i = "/images/covers/" + e.path + m;
|
|
22
|
+
return /* @__PURE__ */ r(
|
|
23
|
+
c,
|
|
24
|
+
{
|
|
25
|
+
onClick: () => t?.(i),
|
|
26
|
+
ratio: 120 / 65,
|
|
27
|
+
className: d.itemImage,
|
|
28
|
+
style: {
|
|
29
|
+
backgroundImage: `url(${i})`
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
a
|
|
33
|
+
);
|
|
34
|
+
}) })
|
|
35
|
+
] }, e.id)) });
|
|
36
|
+
export {
|
|
37
|
+
x as FilePickerGallery
|
|
38
|
+
};
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { jsxs as c, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { useState as m, useMemo as v, useEffect as b, useCallback as P } from "react";
|
|
3
|
+
import { useTranslation as w } from "react-i18next";
|
|
4
|
+
import { Search01Icon as z } from "@hugeicons/core-free-icons";
|
|
5
|
+
import { HugeiconsIcon as L } from "@hugeicons/react";
|
|
6
|
+
import { Stack as k, TextInput as T, Loader as j, Box as y, SimpleGrid as D, AspectRatio as G, Button as M } from "@mantine/core";
|
|
7
|
+
import { useDebouncedValue as q, useDebouncedCallback as B } from "@mantine/hooks";
|
|
8
|
+
import { NoData as F } from "../NoData/NoData.js";
|
|
9
|
+
import { FilePickerSkeletonLoader as N } from "./FilePickerSkeletonLoader.js";
|
|
10
|
+
import { useGiphyPhotos as Q } from "./api/giphyApi.js";
|
|
11
|
+
import A from "./FilePicker.module.css.js";
|
|
12
|
+
const C = (i) => (i || []).reduce((r, s) => (r[s.id] = s, r), {}), W = ({
|
|
13
|
+
locales: i,
|
|
14
|
+
token: r,
|
|
15
|
+
onChange: s
|
|
16
|
+
}) => {
|
|
17
|
+
const { t: I } = w(), [l, x] = m(""), [u] = q(l, 800), [d, p] = m(1), [h, g] = m({}), { data: o, isLoading: a } = Q(
|
|
18
|
+
{ q: u, limit: 24, offset: (d - 1) * 24 + 1 },
|
|
19
|
+
d,
|
|
20
|
+
r
|
|
21
|
+
), n = v(
|
|
22
|
+
() => Object.values({ ...h, ...C(o?.items) }),
|
|
23
|
+
[h, o?.items]
|
|
24
|
+
), f = B(() => {
|
|
25
|
+
setTimeout(() => {
|
|
26
|
+
g((e) => ({ ...e, ...C(o?.items) }));
|
|
27
|
+
}, 0);
|
|
28
|
+
}, 100);
|
|
29
|
+
b(() => {
|
|
30
|
+
f();
|
|
31
|
+
}, [o?.items, f]), b(() => {
|
|
32
|
+
g({});
|
|
33
|
+
}, [u]);
|
|
34
|
+
const S = P(
|
|
35
|
+
(e) => {
|
|
36
|
+
x(e.currentTarget.value), p(1);
|
|
37
|
+
},
|
|
38
|
+
[]
|
|
39
|
+
);
|
|
40
|
+
return /* @__PURE__ */ c(k, { gap: "sm", children: [
|
|
41
|
+
/* @__PURE__ */ t(
|
|
42
|
+
T,
|
|
43
|
+
{
|
|
44
|
+
leftSection: a ? /* @__PURE__ */ t(j, { size: 16 }) : /* @__PURE__ */ t(L, { size: 16, icon: z }),
|
|
45
|
+
maxLength: 50,
|
|
46
|
+
placeholder: i.search,
|
|
47
|
+
"data-autofocus": !0,
|
|
48
|
+
value: l,
|
|
49
|
+
onChange: S
|
|
50
|
+
}
|
|
51
|
+
),
|
|
52
|
+
/* @__PURE__ */ c(y, { mah: 300, w: "100%", style: { overflowY: "auto" }, children: [
|
|
53
|
+
!!n.length && /* @__PURE__ */ c(k, { gap: 8, children: [
|
|
54
|
+
/* @__PURE__ */ t(D, { cols: 4, spacing: 10, children: n.map((e) => /* @__PURE__ */ t(
|
|
55
|
+
G,
|
|
56
|
+
{
|
|
57
|
+
onClick: () => s?.(e.images.original.url),
|
|
58
|
+
ratio: 120 / 65,
|
|
59
|
+
className: A.itemImage,
|
|
60
|
+
style: {
|
|
61
|
+
backgroundImage: `url(${e.images.preview_webp.url})`
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
e.id
|
|
65
|
+
)) }),
|
|
66
|
+
o?.hasMore && /* @__PURE__ */ t(
|
|
67
|
+
M,
|
|
68
|
+
{
|
|
69
|
+
variant: "subtle",
|
|
70
|
+
loading: a,
|
|
71
|
+
onClick: () => p((e) => e + 1),
|
|
72
|
+
children: I("loadMode")
|
|
73
|
+
}
|
|
74
|
+
)
|
|
75
|
+
] }),
|
|
76
|
+
!n.length && !a && /* @__PURE__ */ t(y, { pb: 16, children: /* @__PURE__ */ t(
|
|
77
|
+
F,
|
|
78
|
+
{
|
|
79
|
+
size: 120,
|
|
80
|
+
illustration: "noImage",
|
|
81
|
+
description: i.noImages,
|
|
82
|
+
titleProps: { size: "xs", c: "dimmed" }
|
|
83
|
+
}
|
|
84
|
+
) }),
|
|
85
|
+
!n.length && a && /* @__PURE__ */ t(N, {})
|
|
86
|
+
] })
|
|
87
|
+
] });
|
|
88
|
+
};
|
|
89
|
+
export {
|
|
90
|
+
W as FilePickerGiphy
|
|
91
|
+
};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { jsxs as o, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { Stack as m, FocusTrap as d, TextInput as c, Flex as f, Button as p } from "@mantine/core";
|
|
3
|
+
import { useForm as h } from "@mantine/form";
|
|
4
|
+
import { isValidUrl as g, isImageUrl as k, isVideoUrl as v, isAudioUrl as x } from "../../helpers/validation.js";
|
|
5
|
+
import F from "./FilePicker.module.css.js";
|
|
6
|
+
const U = ({
|
|
7
|
+
locales: i,
|
|
8
|
+
onChange: u,
|
|
9
|
+
type: s,
|
|
10
|
+
isValidMediaUrl: a
|
|
11
|
+
}) => {
|
|
12
|
+
const l = h({
|
|
13
|
+
initialValues: {
|
|
14
|
+
url: ""
|
|
15
|
+
},
|
|
16
|
+
validate: {
|
|
17
|
+
url: (r) => (r || "").trim().length > 0 && g(r) ? null : i.errors.invalidLink
|
|
18
|
+
}
|
|
19
|
+
}), n = async () => {
|
|
20
|
+
const { values: r } = l;
|
|
21
|
+
let e;
|
|
22
|
+
s === "image" ? e = await k(r.url) : s === "video" ? a && a(r.url) ? e = !0 : e = await v(r.url) : s === "audio" ? e = await x(r.url) : e = !0, e ? u?.(r.url) : l.setFieldError("url", i.errors.invalidLink);
|
|
23
|
+
};
|
|
24
|
+
return /* @__PURE__ */ o(m, { gap: "sm", children: [
|
|
25
|
+
/* @__PURE__ */ t(d, { active: !0, children: /* @__PURE__ */ t(
|
|
26
|
+
c,
|
|
27
|
+
{
|
|
28
|
+
maxLength: 500,
|
|
29
|
+
size: "sm",
|
|
30
|
+
placeholder: i.pasteLink,
|
|
31
|
+
"data-autofocus": !0,
|
|
32
|
+
...l.getInputProps("url")
|
|
33
|
+
}
|
|
34
|
+
) }),
|
|
35
|
+
/* @__PURE__ */ t(f, { justify: "flex-end", align: "center", children: /* @__PURE__ */ t(
|
|
36
|
+
p,
|
|
37
|
+
{
|
|
38
|
+
onClick: n,
|
|
39
|
+
className: F.button,
|
|
40
|
+
disabled: !l.values.url,
|
|
41
|
+
children: i.save
|
|
42
|
+
}
|
|
43
|
+
) })
|
|
44
|
+
] });
|
|
45
|
+
};
|
|
46
|
+
export {
|
|
47
|
+
U as FilePickerLink
|
|
48
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { jsxs as t, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { Stack as o, SimpleGrid as c, AspectRatio as n, Skeleton as r } from "@mantine/core";
|
|
3
|
+
const h = () => /* @__PURE__ */ t(o, { gap: 8, children: [
|
|
4
|
+
/* @__PURE__ */ e(c, { cols: 4, spacing: 8, children: [...new Array(12)].map((a, i) => /* @__PURE__ */ e(n, { ratio: 120 / 65, children: /* @__PURE__ */ e(r, { height: 80 }) }, i)) }),
|
|
5
|
+
/* @__PURE__ */ e(r, { height: 36 })
|
|
6
|
+
] });
|
|
7
|
+
export {
|
|
8
|
+
h as FilePickerSkeletonLoader
|
|
9
|
+
};
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { jsxs as c, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { useState as l, useMemo as v, useEffect as f, useCallback as P } from "react";
|
|
3
|
+
import { useTranslation as z } from "react-i18next";
|
|
4
|
+
import { Search01Icon as L } from "@hugeicons/core-free-icons";
|
|
5
|
+
import { HugeiconsIcon as T } from "@hugeicons/react";
|
|
6
|
+
import { Stack as b, TextInput as j, Loader as D, Box as k, SimpleGrid as M, AspectRatio as q, Button as w } from "@mantine/core";
|
|
7
|
+
import { useDebouncedValue as B, useDebouncedCallback as F } from "@mantine/hooks";
|
|
8
|
+
import { NoData as N } from "../NoData/NoData.js";
|
|
9
|
+
import { FilePickerSkeletonLoader as Q } from "./FilePickerSkeletonLoader.js";
|
|
10
|
+
import { useUnsplashPhotos as U } from "./api/unsplashApi.js";
|
|
11
|
+
import _ from "./FilePicker.module.css.js";
|
|
12
|
+
const y = (r) => (r || []).reduce((s, a) => (s[a.id] = a, s), {}), W = ({
|
|
13
|
+
locales: r,
|
|
14
|
+
onChange: s,
|
|
15
|
+
clientId: a
|
|
16
|
+
}) => {
|
|
17
|
+
const { t: C } = z(), [m, I] = l(""), [u] = B(m, 800), [x, p] = l(1), [d, h] = l({}), { data: o, isLoading: i } = U(
|
|
18
|
+
{
|
|
19
|
+
query: u,
|
|
20
|
+
page: x,
|
|
21
|
+
per_page: 24,
|
|
22
|
+
order_by: "popular"
|
|
23
|
+
},
|
|
24
|
+
a
|
|
25
|
+
), n = v(
|
|
26
|
+
() => Object.values({ ...d, ...y(o?.items) }),
|
|
27
|
+
[d, o?.items]
|
|
28
|
+
), g = F(() => {
|
|
29
|
+
setTimeout(() => {
|
|
30
|
+
h((e) => ({ ...e, ...y(o?.items) }));
|
|
31
|
+
}, 0);
|
|
32
|
+
}, 100);
|
|
33
|
+
f(() => {
|
|
34
|
+
g();
|
|
35
|
+
}, [o?.items, g]), f(() => {
|
|
36
|
+
h({});
|
|
37
|
+
}, [u]);
|
|
38
|
+
const S = P(
|
|
39
|
+
(e) => {
|
|
40
|
+
I(e.currentTarget.value), p(1);
|
|
41
|
+
},
|
|
42
|
+
[]
|
|
43
|
+
);
|
|
44
|
+
return /* @__PURE__ */ c(b, { gap: "sm", children: [
|
|
45
|
+
/* @__PURE__ */ t(
|
|
46
|
+
j,
|
|
47
|
+
{
|
|
48
|
+
leftSection: i ? /* @__PURE__ */ t(D, { size: 16 }) : /* @__PURE__ */ t(T, { size: 16, icon: L }),
|
|
49
|
+
maxLength: 50,
|
|
50
|
+
placeholder: r.search,
|
|
51
|
+
"data-autofocus": !0,
|
|
52
|
+
value: m,
|
|
53
|
+
onChange: S
|
|
54
|
+
}
|
|
55
|
+
),
|
|
56
|
+
/* @__PURE__ */ c(k, { mah: 300, w: "100%", style: { overflowY: "auto" }, children: [
|
|
57
|
+
!!n.length && /* @__PURE__ */ c(b, { gap: 8, children: [
|
|
58
|
+
/* @__PURE__ */ t(M, { cols: 4, spacing: 10, children: n.map((e) => /* @__PURE__ */ t(
|
|
59
|
+
q,
|
|
60
|
+
{
|
|
61
|
+
onClick: () => s?.(e.urls.regular),
|
|
62
|
+
ratio: 120 / 65,
|
|
63
|
+
className: _.itemImage,
|
|
64
|
+
style: {
|
|
65
|
+
backgroundImage: `url(${e.urls.small})`
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
e.id
|
|
69
|
+
)) }),
|
|
70
|
+
o?.hasMore && /* @__PURE__ */ t(
|
|
71
|
+
w,
|
|
72
|
+
{
|
|
73
|
+
variant: "subtle",
|
|
74
|
+
loading: i,
|
|
75
|
+
onClick: () => p((e) => e + 1),
|
|
76
|
+
children: C("loadMore")
|
|
77
|
+
}
|
|
78
|
+
)
|
|
79
|
+
] }),
|
|
80
|
+
!n.length && !i && /* @__PURE__ */ t(k, { pb: 16, children: /* @__PURE__ */ t(
|
|
81
|
+
N,
|
|
82
|
+
{
|
|
83
|
+
size: 120,
|
|
84
|
+
illustration: "noImage",
|
|
85
|
+
description: r.noImages,
|
|
86
|
+
titleProps: { size: "xs", c: "dimmed" }
|
|
87
|
+
}
|
|
88
|
+
) }),
|
|
89
|
+
!n.length && i && /* @__PURE__ */ t(Q, {})
|
|
90
|
+
] })
|
|
91
|
+
] });
|
|
92
|
+
};
|
|
93
|
+
export {
|
|
94
|
+
W as FilePickerUnsplash
|
|
95
|
+
};
|