@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,314 @@
|
|
|
1
|
+
import * as o from "zod";
|
|
2
|
+
import { mediaLayoutList as a, layoutList as l, slideAnimationList as r, sizeList as n, alignList as e } from "./form.js";
|
|
3
|
+
var i;
|
|
4
|
+
((t) => {
|
|
5
|
+
t.mediaSchema = o.object({
|
|
6
|
+
layout: o.enum(a).optional(),
|
|
7
|
+
brightness: o.number().optional(),
|
|
8
|
+
image: o.string().optional(),
|
|
9
|
+
video: o.string().optional(),
|
|
10
|
+
videoThumb: o.string().optional(),
|
|
11
|
+
color: o.string().optional(),
|
|
12
|
+
size: o.number().optional(),
|
|
13
|
+
blur: o.number().optional()
|
|
14
|
+
}), t.conditionSchema = o.object({
|
|
15
|
+
controlId: o.string(),
|
|
16
|
+
operator: o.string(),
|
|
17
|
+
compareValue: o.string().optional(),
|
|
18
|
+
trigger: o.string()
|
|
19
|
+
}), t.textControlSchema = o.object({
|
|
20
|
+
title: o.string().optional(),
|
|
21
|
+
description: o.string().optional(),
|
|
22
|
+
icon: o.string().optional(),
|
|
23
|
+
required: o.boolean().optional(),
|
|
24
|
+
id: o.string(),
|
|
25
|
+
controlType: o.literal("text"),
|
|
26
|
+
placeholder: o.string().optional(),
|
|
27
|
+
minLength: o.number().optional(),
|
|
28
|
+
maxLength: o.number().optional(),
|
|
29
|
+
variableName: o.string().optional()
|
|
30
|
+
}), t.longTextControlSchema = o.object({
|
|
31
|
+
title: o.string().optional(),
|
|
32
|
+
description: o.string().optional(),
|
|
33
|
+
icon: o.string().optional(),
|
|
34
|
+
required: o.boolean().optional(),
|
|
35
|
+
id: o.string(),
|
|
36
|
+
controlType: o.literal("longText"),
|
|
37
|
+
placeholder: o.string().optional(),
|
|
38
|
+
minLength: o.number().optional(),
|
|
39
|
+
maxLength: o.number().optional(),
|
|
40
|
+
variableName: o.string().optional()
|
|
41
|
+
}), t.buttonControlSchema = o.object({
|
|
42
|
+
title: o.string().optional(),
|
|
43
|
+
description: o.string().optional(),
|
|
44
|
+
id: o.string(),
|
|
45
|
+
controlType: o.literal("button"),
|
|
46
|
+
label: o.string().optional(),
|
|
47
|
+
link: o.string().optional(),
|
|
48
|
+
showIconButton: o.boolean().optional(),
|
|
49
|
+
buttonIcon: o.string().optional(),
|
|
50
|
+
alignButton: o.enum(["start", "center", "end"]).optional(),
|
|
51
|
+
buttons: o.array(o.any()).optional(),
|
|
52
|
+
orientation: o.enum(["row", "column", "row-reverse", "column-reverse"]).optional(),
|
|
53
|
+
width: o.number().optional(),
|
|
54
|
+
enableTooltip: o.boolean().optional(),
|
|
55
|
+
required: o.boolean().optional(),
|
|
56
|
+
fullWidthMobile: o.boolean().optional()
|
|
57
|
+
}), t.dateControlSchema = o.object({
|
|
58
|
+
title: o.string().optional(),
|
|
59
|
+
description: o.string().optional(),
|
|
60
|
+
icon: o.string().optional(),
|
|
61
|
+
required: o.boolean().optional(),
|
|
62
|
+
id: o.string(),
|
|
63
|
+
controlType: o.literal("date"),
|
|
64
|
+
placeholder: o.string().optional(),
|
|
65
|
+
variableName: o.string().optional(),
|
|
66
|
+
minDate: o.string().optional(),
|
|
67
|
+
maxDate: o.string().optional()
|
|
68
|
+
}), t.startControlSchema = o.object({
|
|
69
|
+
title: o.string().optional(),
|
|
70
|
+
description: o.string().optional(),
|
|
71
|
+
icon: o.string().optional(),
|
|
72
|
+
required: o.boolean().optional(),
|
|
73
|
+
id: o.string(),
|
|
74
|
+
controlType: o.literal("start"),
|
|
75
|
+
showButton: o.boolean().optional(),
|
|
76
|
+
buttonIcon: o.string().optional(),
|
|
77
|
+
label: o.string().optional(),
|
|
78
|
+
showIconButton: o.boolean().optional()
|
|
79
|
+
}), t.confirmControlSchema = o.object({
|
|
80
|
+
title: o.string().optional(),
|
|
81
|
+
description: o.string().optional(),
|
|
82
|
+
required: o.boolean().optional(),
|
|
83
|
+
id: o.string(),
|
|
84
|
+
controlType: o.literal("confirm"),
|
|
85
|
+
showButton: o.boolean().optional(),
|
|
86
|
+
buttonIcon: o.string().optional(),
|
|
87
|
+
link: o.string().optional(),
|
|
88
|
+
label: o.string().optional()
|
|
89
|
+
}), t.numberControlSchema = o.object({
|
|
90
|
+
title: o.string().optional(),
|
|
91
|
+
description: o.string().optional(),
|
|
92
|
+
icon: o.string().optional(),
|
|
93
|
+
required: o.boolean().optional(),
|
|
94
|
+
id: o.string(),
|
|
95
|
+
controlType: o.literal("number"),
|
|
96
|
+
placeholder: o.string().optional(),
|
|
97
|
+
variableName: o.string().optional(),
|
|
98
|
+
min: o.number().optional(),
|
|
99
|
+
max: o.number().optional()
|
|
100
|
+
}), t.choiceControlItemSchema = o.object({
|
|
101
|
+
label: o.string(),
|
|
102
|
+
id: o.string()
|
|
103
|
+
}), t.choiceControlSchema = o.object({
|
|
104
|
+
title: o.string().optional(),
|
|
105
|
+
description: o.string().optional(),
|
|
106
|
+
id: o.string(),
|
|
107
|
+
controlType: o.literal("choice"),
|
|
108
|
+
options: o.array(t.choiceControlItemSchema),
|
|
109
|
+
required: o.boolean().optional(),
|
|
110
|
+
showInput: o.boolean().optional(),
|
|
111
|
+
variableName: o.string().optional(),
|
|
112
|
+
otherOption: o.boolean().optional()
|
|
113
|
+
}), t.multipleChoiceControlItemSchema = o.object({
|
|
114
|
+
label: o.string(),
|
|
115
|
+
id: o.string()
|
|
116
|
+
}), t.multipleChoiceControlSchema = o.object({
|
|
117
|
+
title: o.string().optional(),
|
|
118
|
+
description: o.string().optional(),
|
|
119
|
+
icon: o.string().optional(),
|
|
120
|
+
required: o.boolean().optional(),
|
|
121
|
+
id: o.string(),
|
|
122
|
+
controlType: o.literal("multipleChoice"),
|
|
123
|
+
options: o.array(t.multipleChoiceControlItemSchema),
|
|
124
|
+
variableName: o.string().optional(),
|
|
125
|
+
minOptions: o.number().optional(),
|
|
126
|
+
maxOptions: o.number().optional(),
|
|
127
|
+
showInput: o.boolean().optional(),
|
|
128
|
+
otherOption: o.boolean().optional()
|
|
129
|
+
}), t.pictureChoiceControlItemSchema = o.object({
|
|
130
|
+
label: o.string(),
|
|
131
|
+
id: o.string(),
|
|
132
|
+
image: o.string().optional()
|
|
133
|
+
}), t.pictureChoiceControlSchema = o.object({
|
|
134
|
+
title: o.string().optional(),
|
|
135
|
+
description: o.string().optional(),
|
|
136
|
+
icon: o.string().optional(),
|
|
137
|
+
required: o.boolean().optional(),
|
|
138
|
+
id: o.string(),
|
|
139
|
+
controlType: o.literal("pictureChoice"),
|
|
140
|
+
options: o.array(t.pictureChoiceControlItemSchema),
|
|
141
|
+
variableName: o.string().optional(),
|
|
142
|
+
showInput: o.boolean().optional()
|
|
143
|
+
}), t.dropdownControlItemSchema = o.object({
|
|
144
|
+
label: o.string(),
|
|
145
|
+
id: o.string()
|
|
146
|
+
}), t.dropdownControlSchema = o.object({
|
|
147
|
+
title: o.string().optional(),
|
|
148
|
+
description: o.string().optional(),
|
|
149
|
+
icon: o.string().optional(),
|
|
150
|
+
required: o.boolean().optional(),
|
|
151
|
+
id: o.string(),
|
|
152
|
+
controlType: o.literal("dropdown"),
|
|
153
|
+
options: o.array(t.dropdownControlItemSchema),
|
|
154
|
+
placeholder: o.string().optional(),
|
|
155
|
+
variableName: o.string().optional()
|
|
156
|
+
}), t.emailControlSchema = o.object({
|
|
157
|
+
title: o.string().optional(),
|
|
158
|
+
description: o.string().optional(),
|
|
159
|
+
icon: o.string().optional(),
|
|
160
|
+
required: o.boolean().optional(),
|
|
161
|
+
id: o.string(),
|
|
162
|
+
controlType: o.literal("email"),
|
|
163
|
+
placeholder: o.string().optional(),
|
|
164
|
+
variableName: o.string().optional()
|
|
165
|
+
}), t.locationControlSchema = o.object({
|
|
166
|
+
title: o.string().optional(),
|
|
167
|
+
description: o.string().optional(),
|
|
168
|
+
icon: o.string().optional(),
|
|
169
|
+
required: o.boolean().optional(),
|
|
170
|
+
id: o.string(),
|
|
171
|
+
controlType: o.literal("location"),
|
|
172
|
+
placeholder: o.string().optional(),
|
|
173
|
+
variableName: o.string().optional()
|
|
174
|
+
}), t.phoneControlSchema = o.object({
|
|
175
|
+
title: o.string().optional(),
|
|
176
|
+
description: o.string().optional(),
|
|
177
|
+
icon: o.string().optional(),
|
|
178
|
+
required: o.boolean().optional(),
|
|
179
|
+
id: o.string(),
|
|
180
|
+
controlType: o.literal("phone"),
|
|
181
|
+
placeholder: o.string().optional(),
|
|
182
|
+
variableName: o.string().optional()
|
|
183
|
+
}), t.sliderControlSchema = o.object({
|
|
184
|
+
title: o.string().optional(),
|
|
185
|
+
description: o.string().optional(),
|
|
186
|
+
icon: o.string().optional(),
|
|
187
|
+
required: o.boolean().optional(),
|
|
188
|
+
id: o.string(),
|
|
189
|
+
controlType: o.literal("slider"),
|
|
190
|
+
min: o.number().optional(),
|
|
191
|
+
max: o.number().optional(),
|
|
192
|
+
variableName: o.string().optional()
|
|
193
|
+
}), t.uploadControlSchema = o.object({
|
|
194
|
+
title: o.string().optional(),
|
|
195
|
+
description: o.string().optional(),
|
|
196
|
+
icon: o.string().optional(),
|
|
197
|
+
id: o.string(),
|
|
198
|
+
controlType: o.literal("upload"),
|
|
199
|
+
multiple: o.boolean().optional(),
|
|
200
|
+
maxFiles: o.number().optional(),
|
|
201
|
+
minFiles: o.number().optional(),
|
|
202
|
+
accept: o.array(o.string()).optional(),
|
|
203
|
+
maxSize: o.number().optional(),
|
|
204
|
+
required: o.boolean().optional(),
|
|
205
|
+
variableName: o.string().optional()
|
|
206
|
+
}), t.yesNoControlSchema = o.object({
|
|
207
|
+
title: o.string().optional(),
|
|
208
|
+
description: o.string().optional(),
|
|
209
|
+
icon: o.string().optional(),
|
|
210
|
+
id: o.string(),
|
|
211
|
+
controlType: o.literal("yesNo"),
|
|
212
|
+
yesLabel: o.string().optional(),
|
|
213
|
+
noLabel: o.string().optional(),
|
|
214
|
+
required: o.boolean().optional(),
|
|
215
|
+
variableName: o.string().optional()
|
|
216
|
+
}), t.ratingControlSchema = o.object({
|
|
217
|
+
title: o.string().optional(),
|
|
218
|
+
description: o.string().optional(),
|
|
219
|
+
id: o.string(),
|
|
220
|
+
controlType: o.literal("rating"),
|
|
221
|
+
required: o.boolean().optional(),
|
|
222
|
+
variableName: o.string().optional(),
|
|
223
|
+
count: o.number().optional()
|
|
224
|
+
}), t.settingsSchema = o.object({
|
|
225
|
+
enterIndicator: o.any().optional(),
|
|
226
|
+
progressBar: o.boolean().optional(),
|
|
227
|
+
copyright: o.boolean().optional(),
|
|
228
|
+
navArrows: o.boolean().optional(),
|
|
229
|
+
slideAnimation: o.enum(r),
|
|
230
|
+
freeNav: o.boolean(),
|
|
231
|
+
layout: o.enum(l),
|
|
232
|
+
questionNumber: o.boolean().optional(),
|
|
233
|
+
mainLanguage: o.string().optional(),
|
|
234
|
+
recaptcha: o.boolean().optional()
|
|
235
|
+
}), t.controlSchema = o.discriminatedUnion("controlType", [
|
|
236
|
+
t.textControlSchema,
|
|
237
|
+
t.dateControlSchema,
|
|
238
|
+
t.numberControlSchema,
|
|
239
|
+
t.multipleChoiceControlSchema,
|
|
240
|
+
t.sliderControlSchema,
|
|
241
|
+
t.dropdownControlSchema,
|
|
242
|
+
t.choiceControlSchema,
|
|
243
|
+
t.pictureChoiceControlSchema,
|
|
244
|
+
t.uploadControlSchema,
|
|
245
|
+
t.locationControlSchema,
|
|
246
|
+
t.phoneControlSchema,
|
|
247
|
+
t.emailControlSchema,
|
|
248
|
+
t.yesNoControlSchema,
|
|
249
|
+
t.longTextControlSchema,
|
|
250
|
+
t.startControlSchema,
|
|
251
|
+
t.confirmControlSchema,
|
|
252
|
+
t.buttonControlSchema,
|
|
253
|
+
t.ratingControlSchema
|
|
254
|
+
]), t.textSchema = o.object({
|
|
255
|
+
fontSize: o.number().optional(),
|
|
256
|
+
fontWeight: o.number().optional(),
|
|
257
|
+
fontFamily: o.string().optional(),
|
|
258
|
+
color: o.string().optional()
|
|
259
|
+
}), t.containerSchema = o.object({
|
|
260
|
+
color: o.string().optional(),
|
|
261
|
+
opacity: o.number().optional(),
|
|
262
|
+
blur: o.number().optional(),
|
|
263
|
+
backgroundImage: o.string().optional(),
|
|
264
|
+
shadowSize: o.number().optional(),
|
|
265
|
+
shadowColor: o.string().optional()
|
|
266
|
+
}), t.backgroundSchema = o.object({
|
|
267
|
+
color: o.string().optional(),
|
|
268
|
+
image: o.string().optional(),
|
|
269
|
+
blur: o.number().optional(),
|
|
270
|
+
brightness: o.number().optional(),
|
|
271
|
+
opacity: o.number().optional(),
|
|
272
|
+
fit: o.string().optional(),
|
|
273
|
+
blendMode: o.string().optional()
|
|
274
|
+
}), t.inputSchema = o.object({
|
|
275
|
+
backgroundColor: o.string().optional(),
|
|
276
|
+
borderColor: o.string().optional()
|
|
277
|
+
}), t.themeSchema = o.object({
|
|
278
|
+
size: o.enum(n).optional(),
|
|
279
|
+
align: o.enum(e).optional(),
|
|
280
|
+
listStyle: o.string().optional(),
|
|
281
|
+
borderRadius: o.enum(n).optional(),
|
|
282
|
+
primaryColor: o.string().optional(),
|
|
283
|
+
title: t.textSchema.optional(),
|
|
284
|
+
description: t.textSchema.optional(),
|
|
285
|
+
font: t.textSchema.optional(),
|
|
286
|
+
container: t.containerSchema.optional(),
|
|
287
|
+
background: t.backgroundSchema.optional(),
|
|
288
|
+
input: t.inputSchema.optional(),
|
|
289
|
+
customCSS: o.string().optional()
|
|
290
|
+
}), t.stepSchema = o.object({
|
|
291
|
+
id: o.string(),
|
|
292
|
+
isStart: o.boolean().optional(),
|
|
293
|
+
isEnd: o.boolean().optional(),
|
|
294
|
+
controls: o.array(t.controlSchema),
|
|
295
|
+
autoSubmit: o.boolean().optional(),
|
|
296
|
+
confirmLabel: o.string().optional(),
|
|
297
|
+
media: t.mediaSchema.optional(),
|
|
298
|
+
trigger: o.string(),
|
|
299
|
+
conditions: o.array(t.conditionSchema).optional(),
|
|
300
|
+
theme: t.themeSchema.optional(),
|
|
301
|
+
position: o.object({
|
|
302
|
+
x: o.number(),
|
|
303
|
+
y: o.number()
|
|
304
|
+
}).optional()
|
|
305
|
+
}), t.formSchema = o.object({
|
|
306
|
+
steps: o.array(t.stepSchema).optional(),
|
|
307
|
+
listStep: t.stepSchema.optional(),
|
|
308
|
+
theme: t.themeSchema.optional(),
|
|
309
|
+
settings: t.settingsSchema.optional()
|
|
310
|
+
});
|
|
311
|
+
})(i || (i = {}));
|
|
312
|
+
export {
|
|
313
|
+
i as Schemes
|
|
314
|
+
};
|
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
import { jsx as e, jsxs as t, Fragment as h } from "react/jsx-runtime";
|
|
2
|
+
import { memo as g, useCallback as m } from "react";
|
|
3
|
+
import { useTranslation as u } from "react-i18next";
|
|
4
|
+
import { Modal as f, Flex as n, Stack as w, Text as b, Tooltip as l, ActionIcon as i, Image as y } from "@mantine/core";
|
|
5
|
+
import { IconPhoto as x, IconDownload as k, IconX as I } from "@tabler/icons-react";
|
|
6
|
+
import { create as C } from "zustand";
|
|
7
|
+
const r = C(() => ({
|
|
8
|
+
opened: !1,
|
|
9
|
+
src: ""
|
|
10
|
+
})), P = (o) => {
|
|
11
|
+
r.setState({ opened: !0, src: o });
|
|
12
|
+
}, c = () => {
|
|
13
|
+
r.setState({ opened: !1 });
|
|
14
|
+
}, T = g(() => {
|
|
15
|
+
const { src: o, opened: s } = r(), { t: a } = u(), d = m(
|
|
16
|
+
(p) => {
|
|
17
|
+
p.stopPropagation(), window.open(o, "_blank")?.focus();
|
|
18
|
+
},
|
|
19
|
+
[o]
|
|
20
|
+
);
|
|
21
|
+
return /* @__PURE__ */ e(
|
|
22
|
+
f,
|
|
23
|
+
{
|
|
24
|
+
transitionProps: {
|
|
25
|
+
duration: 0
|
|
26
|
+
},
|
|
27
|
+
styles: {
|
|
28
|
+
content: {
|
|
29
|
+
backgroundColor: "var(--mantine-color-dark-8)"
|
|
30
|
+
},
|
|
31
|
+
body: {
|
|
32
|
+
height: "100%"
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
withCloseButton: !1,
|
|
36
|
+
opened: s,
|
|
37
|
+
onClose: c,
|
|
38
|
+
fullScreen: !0,
|
|
39
|
+
children: /* @__PURE__ */ e(
|
|
40
|
+
n,
|
|
41
|
+
{
|
|
42
|
+
align: "center",
|
|
43
|
+
styles: {
|
|
44
|
+
root: {
|
|
45
|
+
height: "100%",
|
|
46
|
+
display: "flex",
|
|
47
|
+
alignItems: "center",
|
|
48
|
+
justifyContent: "center"
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
children: /* @__PURE__ */ t(h, { children: [
|
|
52
|
+
/* @__PURE__ */ t(
|
|
53
|
+
n,
|
|
54
|
+
{
|
|
55
|
+
justify: "space-between",
|
|
56
|
+
align: "center",
|
|
57
|
+
pos: "absolute",
|
|
58
|
+
top: 0,
|
|
59
|
+
left: 0,
|
|
60
|
+
right: 0,
|
|
61
|
+
gap: 8,
|
|
62
|
+
py: 16,
|
|
63
|
+
px: 24,
|
|
64
|
+
style: {
|
|
65
|
+
background: "linear-gradient(rgb(16, 18, 20), rgba(14, 22, 36, 0)) 0px center no-repeat",
|
|
66
|
+
zIndex: 99
|
|
67
|
+
},
|
|
68
|
+
children: [
|
|
69
|
+
/* @__PURE__ */ t(n, { align: "center", gap: 12, miw: 0, children: [
|
|
70
|
+
/* @__PURE__ */ e(
|
|
71
|
+
n,
|
|
72
|
+
{
|
|
73
|
+
justify: "center",
|
|
74
|
+
align: "center",
|
|
75
|
+
gap: 8,
|
|
76
|
+
style: {
|
|
77
|
+
flexShrink: 0,
|
|
78
|
+
width: "32px",
|
|
79
|
+
height: "32px",
|
|
80
|
+
borderRadius: "4px",
|
|
81
|
+
backgroundColor: "var(--mantine-color-blue-5)",
|
|
82
|
+
color: "var(--mantine-color-white)"
|
|
83
|
+
},
|
|
84
|
+
children: /* @__PURE__ */ e(x, { size: 18 })
|
|
85
|
+
}
|
|
86
|
+
),
|
|
87
|
+
/* @__PURE__ */ e(w, { gap: 0, miw: 0, children: /* @__PURE__ */ e(b, { size: "md", c: "white", truncate: "end", maw: 300, children: o }) })
|
|
88
|
+
] }),
|
|
89
|
+
/* @__PURE__ */ t(n, { gap: 4, children: [
|
|
90
|
+
/* @__PURE__ */ e(
|
|
91
|
+
l,
|
|
92
|
+
{
|
|
93
|
+
label: a("common.action.download"),
|
|
94
|
+
openDelay: 200,
|
|
95
|
+
keepMounted: !1,
|
|
96
|
+
children: /* @__PURE__ */ e(
|
|
97
|
+
i,
|
|
98
|
+
{
|
|
99
|
+
size: "lg",
|
|
100
|
+
variant: "subtle",
|
|
101
|
+
color: "gray.0",
|
|
102
|
+
onClick: d,
|
|
103
|
+
children: /* @__PURE__ */ e(k, {})
|
|
104
|
+
}
|
|
105
|
+
)
|
|
106
|
+
}
|
|
107
|
+
),
|
|
108
|
+
/* @__PURE__ */ e(
|
|
109
|
+
l,
|
|
110
|
+
{
|
|
111
|
+
label: a("common.action.close"),
|
|
112
|
+
openDelay: 200,
|
|
113
|
+
keepMounted: !1,
|
|
114
|
+
children: /* @__PURE__ */ e(
|
|
115
|
+
i,
|
|
116
|
+
{
|
|
117
|
+
size: "lg",
|
|
118
|
+
variant: "subtle",
|
|
119
|
+
color: "gray.0",
|
|
120
|
+
onClick: c,
|
|
121
|
+
children: /* @__PURE__ */ e(I, {})
|
|
122
|
+
}
|
|
123
|
+
)
|
|
124
|
+
}
|
|
125
|
+
)
|
|
126
|
+
] })
|
|
127
|
+
]
|
|
128
|
+
}
|
|
129
|
+
),
|
|
130
|
+
/* @__PURE__ */ e(
|
|
131
|
+
n,
|
|
132
|
+
{
|
|
133
|
+
justify: "center",
|
|
134
|
+
align: "center",
|
|
135
|
+
styles: {
|
|
136
|
+
root: {
|
|
137
|
+
width: "100%",
|
|
138
|
+
height: "100%",
|
|
139
|
+
minHeight: 320
|
|
140
|
+
}
|
|
141
|
+
},
|
|
142
|
+
children: /* @__PURE__ */ e(
|
|
143
|
+
y,
|
|
144
|
+
{
|
|
145
|
+
mah: "100dvh",
|
|
146
|
+
fit: "contain",
|
|
147
|
+
maw: "100%",
|
|
148
|
+
w: "initial",
|
|
149
|
+
src: o
|
|
150
|
+
}
|
|
151
|
+
)
|
|
152
|
+
}
|
|
153
|
+
)
|
|
154
|
+
] })
|
|
155
|
+
}
|
|
156
|
+
)
|
|
157
|
+
}
|
|
158
|
+
);
|
|
159
|
+
});
|
|
160
|
+
export {
|
|
161
|
+
T as ImageModal,
|
|
162
|
+
c as closeImageModal,
|
|
163
|
+
P as openImageModal,
|
|
164
|
+
r as useChangePasswordModalStore
|
|
165
|
+
};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { jsx as a, jsxs as g } from "react/jsx-runtime";
|
|
2
|
+
import { useMemo as u } from "react";
|
|
3
|
+
import { useMenu as f } from "../../hooks/useMenu.js";
|
|
4
|
+
import { Select as b, Image as o, Group as d } from "@mantine/core";
|
|
5
|
+
import { IconCheck as x } from "@tabler/icons-react";
|
|
6
|
+
import S from "../../assets/images/flags/es.svg.js";
|
|
7
|
+
import h from "../../assets/images/flags/ru.svg.js";
|
|
8
|
+
import y from "../../assets/images/flags/us.svg.js";
|
|
9
|
+
import s from "./LanguagePicker.module.css.js";
|
|
10
|
+
const l = {
|
|
11
|
+
ru: h,
|
|
12
|
+
en: y,
|
|
13
|
+
es: S
|
|
14
|
+
}, t = [
|
|
15
|
+
{ value: "ru", label: "Русский (Россия)" },
|
|
16
|
+
{ value: "en", label: "English (US)" },
|
|
17
|
+
{ value: "es", label: "Español (España)" }
|
|
18
|
+
], O = ({ value: r, onChange: n }) => {
|
|
19
|
+
const { isMobile: m } = f(), i = ({
|
|
20
|
+
option: e,
|
|
21
|
+
checked: c
|
|
22
|
+
}) => /* @__PURE__ */ g(d, { flex: "1", gap: "xs", children: [
|
|
23
|
+
/* @__PURE__ */ a(o, { src: l[e.value], className: s.image }),
|
|
24
|
+
e.label,
|
|
25
|
+
c && /* @__PURE__ */ a(x, { style: { marginInlineStart: "auto" }, stroke: 1.2 })
|
|
26
|
+
] }), p = u(() => t.find((e) => e.value === r) ? r : "en", [r]);
|
|
27
|
+
return /* @__PURE__ */ a(
|
|
28
|
+
b,
|
|
29
|
+
{
|
|
30
|
+
w: m ? "100%" : 320,
|
|
31
|
+
onChange: (e) => e && n(e),
|
|
32
|
+
leftSection: /* @__PURE__ */ a(o, { src: l[r], className: s.image }),
|
|
33
|
+
value: p,
|
|
34
|
+
data: t,
|
|
35
|
+
renderOption: i
|
|
36
|
+
}
|
|
37
|
+
);
|
|
38
|
+
};
|
|
39
|
+
export {
|
|
40
|
+
O as LanguagePicker
|
|
41
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { memo as s } from "react";
|
|
3
|
+
import o from "clsx";
|
|
4
|
+
import m from "./styles.module.css.js";
|
|
5
|
+
const l = s(({ className: e }) => /* @__PURE__ */ r("div", { className: o(m.wrapper, e), children: /* @__PURE__ */ r("div", { className: o(m.loader) }) }));
|
|
6
|
+
export {
|
|
7
|
+
l as BaseLoader
|
|
8
|
+
};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { Link as s } from "react-router-dom";
|
|
3
|
+
import { Flex as g } from "@mantine/core";
|
|
4
|
+
import f from "../assets/layers-logo-full.svg.js";
|
|
5
|
+
import u from "../assets/layers-logo-icon.svg.js";
|
|
6
|
+
import L from "../assets/logo-copyright.svg.js";
|
|
7
|
+
import { useIsDarkTheme as a } from "../helpers/themeUtils.js";
|
|
8
|
+
const I = ({
|
|
9
|
+
minified: o,
|
|
10
|
+
isLink: m = !0,
|
|
11
|
+
to: p = "/",
|
|
12
|
+
variant: t = "default",
|
|
13
|
+
...e
|
|
14
|
+
}) => {
|
|
15
|
+
const n = a(), i = () => o ? /* @__PURE__ */ r(u, {}) : t === "copyright" ? /* @__PURE__ */ r(L, {}) : /* @__PURE__ */ r(f, {}), c = () => o ? 40 : t === "copyright" ? 18 : 70;
|
|
16
|
+
return m ? /* @__PURE__ */ r(s, { to: p, children: /* @__PURE__ */ r(
|
|
17
|
+
g,
|
|
18
|
+
{
|
|
19
|
+
component: "span",
|
|
20
|
+
w: c(),
|
|
21
|
+
c: n ? "white" : "black",
|
|
22
|
+
...e,
|
|
23
|
+
children: i()
|
|
24
|
+
}
|
|
25
|
+
) }) : /* @__PURE__ */ r(
|
|
26
|
+
g,
|
|
27
|
+
{
|
|
28
|
+
component: "span",
|
|
29
|
+
w: c(),
|
|
30
|
+
c: n ? "white" : "black",
|
|
31
|
+
...e,
|
|
32
|
+
children: i()
|
|
33
|
+
}
|
|
34
|
+
);
|
|
35
|
+
};
|
|
36
|
+
export {
|
|
37
|
+
L as LayersLogoCopyright,
|
|
38
|
+
u as LayersLogoIcon,
|
|
39
|
+
I as Logotype
|
|
40
|
+
};
|
|
@@ -1,16 +1,18 @@
|
|
|
1
1
|
import { PropsWithChildren, ReactNode } from 'react';
|
|
2
2
|
import { BoxProps } from '@mantine/core';
|
|
3
3
|
import { NavMenuStore, createNavMenuStore } from './store';
|
|
4
|
-
import { ExpandNavMenuItemDef, NavMenuItemDef, NavMenuOrderChange } from './types';
|
|
4
|
+
import { ExpandNavMenuItemDef, NavMenuItemDef, NavMenuOnLoadMore, NavMenuOrderChange } from './types';
|
|
5
5
|
export type NavMenuProps = {
|
|
6
6
|
items: NavMenuItemDef[];
|
|
7
7
|
loading?: boolean;
|
|
8
|
+
onLoadMore?: NavMenuOnLoadMore;
|
|
8
9
|
onOrderChange?: NavMenuOrderChange;
|
|
9
10
|
noItemsPlaceholder?: ReactNode;
|
|
11
|
+
totalCount?: number;
|
|
10
12
|
} & Partial<NavMenuStore['props']> & {
|
|
11
13
|
store?: ReturnType<typeof createNavMenuStore>;
|
|
12
14
|
};
|
|
13
|
-
export declare const NavMenu: (({ items, loading, noItemsPlaceholder, onOrderChange, onEdit, store: _store, }: NavMenuProps) => import("react/jsx-runtime").JSX.Element) & {
|
|
15
|
+
export declare const NavMenu: (({ items, loading, onLoadMore, noItemsPlaceholder, onOrderChange, onEdit, onToggle, store: _store, totalCount, }: NavMenuProps) => import("react/jsx-runtime").JSX.Element) & {
|
|
14
16
|
Item: import('react').MemoExoticComponent<({ item, ignoreDepth }: {
|
|
15
17
|
item: ExpandNavMenuItemDef;
|
|
16
18
|
ignoreDepth?: boolean;
|