@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,86 @@
|
|
|
1
|
+
import { jsx as i, jsxs as m } from "react/jsx-runtime";
|
|
2
|
+
import { useCallback as l } from "react";
|
|
3
|
+
import { Image02Icon as g } from "@hugeicons/core-free-icons";
|
|
4
|
+
import { HugeiconsIcon as x } from "@hugeicons/react";
|
|
5
|
+
import { Stack as c, Text as a } from "@mantine/core";
|
|
6
|
+
import { Dropzone as u, IMAGE_MIME_TYPE as F } from "@mantine/dropzone";
|
|
7
|
+
import { showNotification as f } from "@mantine/notifications";
|
|
8
|
+
import { showErrorNotification as y } from "../../helpers/showNotifications.js";
|
|
9
|
+
import "@mantine/dropzone/styles.css";
|
|
10
|
+
const C = ({
|
|
11
|
+
locales: e,
|
|
12
|
+
uploading: d,
|
|
13
|
+
dropZoneProps: n,
|
|
14
|
+
onUpload: s
|
|
15
|
+
}) => {
|
|
16
|
+
const p = l(
|
|
17
|
+
(t) => {
|
|
18
|
+
if (t.filter(
|
|
19
|
+
(r) => r.errors.some((o) => o.code === "file-invalid-type")
|
|
20
|
+
).length > 0) {
|
|
21
|
+
f({
|
|
22
|
+
color: "blue",
|
|
23
|
+
message: e.errors.typeIsNotAllowed
|
|
24
|
+
});
|
|
25
|
+
return;
|
|
26
|
+
}
|
|
27
|
+
if (t.some((r) => r.errors.some((o) => o.code === "file-too-large"))) {
|
|
28
|
+
y({
|
|
29
|
+
title: e.error,
|
|
30
|
+
message: e.errors.shouldNotExceed
|
|
31
|
+
});
|
|
32
|
+
return;
|
|
33
|
+
}
|
|
34
|
+
if (t.filter(
|
|
35
|
+
(r) => r.errors.some((o) => o.code === "too-many-files")
|
|
36
|
+
).length > 0) {
|
|
37
|
+
f({
|
|
38
|
+
color: "blue",
|
|
39
|
+
message: e.errors.doNotUploadMoreThanSingleFile
|
|
40
|
+
});
|
|
41
|
+
return;
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
[e]
|
|
45
|
+
), h = l(s, [s]);
|
|
46
|
+
return /* @__PURE__ */ i(
|
|
47
|
+
u,
|
|
48
|
+
{
|
|
49
|
+
loading: d,
|
|
50
|
+
onDrop: h,
|
|
51
|
+
onReject: p,
|
|
52
|
+
maxFiles: n?.maxFiles || 1,
|
|
53
|
+
accept: F,
|
|
54
|
+
px: 60,
|
|
55
|
+
py: "xl",
|
|
56
|
+
...n || {},
|
|
57
|
+
children: /* @__PURE__ */ m(
|
|
58
|
+
c,
|
|
59
|
+
{
|
|
60
|
+
justify: "center",
|
|
61
|
+
gap: "var(--mantine-font-size-xs",
|
|
62
|
+
align: "center",
|
|
63
|
+
mih: 89,
|
|
64
|
+
style: { pointerEvents: "none" },
|
|
65
|
+
children: [
|
|
66
|
+
/* @__PURE__ */ i(
|
|
67
|
+
x,
|
|
68
|
+
{
|
|
69
|
+
size: 32,
|
|
70
|
+
color: "var(--mantine-color-bright)",
|
|
71
|
+
icon: g
|
|
72
|
+
}
|
|
73
|
+
),
|
|
74
|
+
/* @__PURE__ */ m(c, { gap: 8, align: "center", children: [
|
|
75
|
+
/* @__PURE__ */ i(a, { fw: 500, fz: "sm", c: "bright", lh: "sm", ta: "center", children: e.dragOrClickToChoose }),
|
|
76
|
+
/* @__PURE__ */ i(a, { fz: "xs", fw: 400, lh: "140%", c: "dimmed", ta: "center", children: e.maxFileSize })
|
|
77
|
+
] })
|
|
78
|
+
]
|
|
79
|
+
}
|
|
80
|
+
)
|
|
81
|
+
}
|
|
82
|
+
);
|
|
83
|
+
};
|
|
84
|
+
export {
|
|
85
|
+
C as FilePickerUpload
|
|
86
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { useQuery as h } from "@tanstack/react-query";
|
|
2
|
+
import p from "query-string";
|
|
3
|
+
const y = "TBp2lqNzl0orFQtaXgwymH4UDM0kbAVe", g = async (o, n = 1, i) => {
|
|
4
|
+
const s = o.q ? "/gifs/search" : "/gifs/trending", a = await fetch(
|
|
5
|
+
`https://api.giphy.com/v1${s}?${p.stringify({
|
|
6
|
+
...o,
|
|
7
|
+
api_key: i || y
|
|
8
|
+
})}`
|
|
9
|
+
);
|
|
10
|
+
if (!a.ok)
|
|
11
|
+
throw new Error("Failed to fetch Giphy photos");
|
|
12
|
+
const t = await a.json(), e = t.data, r = Math.ceil(t.pagination.total_count / 12), c = t.pagination.total_count % 12 === 0 || t.pagination.total_count > t.pagination.count + t.pagination.offset;
|
|
13
|
+
return {
|
|
14
|
+
items: e,
|
|
15
|
+
page: n,
|
|
16
|
+
totalPages: r,
|
|
17
|
+
hasMore: c
|
|
18
|
+
};
|
|
19
|
+
}, d = (o, n, i) => h({
|
|
20
|
+
queryKey: ["giphyPhotos", o, n],
|
|
21
|
+
queryFn: () => g(o, n, i)
|
|
22
|
+
});
|
|
23
|
+
export {
|
|
24
|
+
g as fetchGiphyPhotos,
|
|
25
|
+
d as useGiphyPhotos
|
|
26
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { useQuery as i } from "@tanstack/react-query";
|
|
2
|
+
import p from "query-string";
|
|
3
|
+
const u = "a2SNktIFgNCvXITBZgpup1T8mtSdJIM6TIZlndbRuRg", c = async (t, e, o) => {
|
|
4
|
+
const h = t.query ? "/search/photos" : "/photos", n = await fetch(
|
|
5
|
+
`https://api.unsplash.com${h}?${p.stringify(t)}`,
|
|
6
|
+
{
|
|
7
|
+
headers: {
|
|
8
|
+
Authorization: `Client-ID ${e || u}`
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
);
|
|
12
|
+
if (!n.ok)
|
|
13
|
+
throw new Error("Failed to fetch Unsplash photos");
|
|
14
|
+
const s = await n.json(), r = s && "results" in s ? s.results : s, a = s && "total_pages" in s ? s.total_pages : 999;
|
|
15
|
+
return {
|
|
16
|
+
items: o ? [...o.items, ...r] : r,
|
|
17
|
+
page: t.page || 1,
|
|
18
|
+
totalPages: a,
|
|
19
|
+
hasMore: a > (t.page || 1)
|
|
20
|
+
};
|
|
21
|
+
}, f = (t, e, o) => i({
|
|
22
|
+
queryKey: ["unsplashPhotos", t],
|
|
23
|
+
queryFn: () => c(t, e),
|
|
24
|
+
...o
|
|
25
|
+
});
|
|
26
|
+
export {
|
|
27
|
+
c as fetchUnsplashPhotos,
|
|
28
|
+
f as useUnsplashPhotos
|
|
29
|
+
};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { jsxs as d, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { useState as u, useRef as f } from "react";
|
|
3
|
+
import { useMantineColorScheme as h, MantineProvider as p } from "@mantine/core";
|
|
4
|
+
import { AllSlidesLayout as S } from "./components/AllSlidesLayout.js";
|
|
5
|
+
import { OneSlideLayout as y } from "./components/OneSlideLayput.js";
|
|
6
|
+
import { getRandomId as v } from "./helpers/steps.js";
|
|
7
|
+
import { useFormGlobalTheme as w } from "./hooks/useFormGlobalTheme.js";
|
|
8
|
+
import { useFormViewerStore as x } from "./store/formStore.js";
|
|
9
|
+
import C from "./FormViewer.module.css.js";
|
|
10
|
+
const V = ({
|
|
11
|
+
NoStepSlot: r = () => null,
|
|
12
|
+
copyright: m
|
|
13
|
+
}) => {
|
|
14
|
+
const [o] = u(() => v()), { colorScheme: t } = h(), { useStore: i } = x(), s = i((c) => c.layout), { mantineTheme: n, customStyles: a } = w({ innerId: o }), l = f(null);
|
|
15
|
+
return /* @__PURE__ */ d(
|
|
16
|
+
p,
|
|
17
|
+
{
|
|
18
|
+
theme: n,
|
|
19
|
+
getRootElement: () => l.current ?? void 0,
|
|
20
|
+
forceColorScheme: t === "auto" ? void 0 : t,
|
|
21
|
+
classNamesPrefix: "layers",
|
|
22
|
+
withGlobalClasses: !1,
|
|
23
|
+
withStaticClasses: !0,
|
|
24
|
+
cssVariablesSelector: `#forms-provider-${o}`,
|
|
25
|
+
children: [
|
|
26
|
+
/* @__PURE__ */ e("style", { dangerouslySetInnerHTML: { __html: a } }),
|
|
27
|
+
/* @__PURE__ */ e(
|
|
28
|
+
"div",
|
|
29
|
+
{
|
|
30
|
+
ref: l,
|
|
31
|
+
id: `forms-provider-${o}`,
|
|
32
|
+
className: C.themeProvider,
|
|
33
|
+
children: s === "one-slide" ? /* @__PURE__ */ e(y, { NoStepSlot: r, copyright: m }) : s === "all-slides" ? /* @__PURE__ */ e(S, { NoStepSlot: r }) : null
|
|
34
|
+
}
|
|
35
|
+
)
|
|
36
|
+
]
|
|
37
|
+
}
|
|
38
|
+
);
|
|
39
|
+
};
|
|
40
|
+
export {
|
|
41
|
+
V as FormViewer
|
|
42
|
+
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
const t = "_themeProvider_13pry_1", o = "_root_13pry_7", e = "_container_13pry_36", n = "_media_13pry_42", _ = "_background_13pry_46", r = "_stepRoot_13pry_59", s = "_content_13pry_104", c = "_mediaInner_13pry_169", p = "_stepTitle_13pry_332", i = "_stepDescription_13pry_355", a = "_stepIndicator_13pry_369", d = "_stepIndicatorIcon_13pry_386", l = "_focusBox_13pry_405", y = "_dropzone_13pry_414", u = "_allSlidesLayout_13pry_432", I = "_allSlidesLayoutStep_13pry_438", m = {
|
|
2
|
+
themeProvider: t,
|
|
3
|
+
root: o,
|
|
4
|
+
container: e,
|
|
5
|
+
media: n,
|
|
6
|
+
background: _,
|
|
7
|
+
stepRoot: r,
|
|
8
|
+
content: s,
|
|
9
|
+
mediaInner: c,
|
|
10
|
+
stepTitle: p,
|
|
11
|
+
stepDescription: i,
|
|
12
|
+
stepIndicator: a,
|
|
13
|
+
stepIndicatorIcon: d,
|
|
14
|
+
focusBox: l,
|
|
15
|
+
dropzone: y,
|
|
16
|
+
allSlidesLayout: u,
|
|
17
|
+
allSlidesLayoutStep: I
|
|
18
|
+
};
|
|
19
|
+
export {
|
|
20
|
+
u as allSlidesLayout,
|
|
21
|
+
I as allSlidesLayoutStep,
|
|
22
|
+
_ as background,
|
|
23
|
+
e as container,
|
|
24
|
+
s as content,
|
|
25
|
+
m as default,
|
|
26
|
+
y as dropzone,
|
|
27
|
+
l as focusBox,
|
|
28
|
+
n as media,
|
|
29
|
+
c as mediaInner,
|
|
30
|
+
o as root,
|
|
31
|
+
i as stepDescription,
|
|
32
|
+
a as stepIndicator,
|
|
33
|
+
d as stepIndicatorIcon,
|
|
34
|
+
r as stepRoot,
|
|
35
|
+
p as stepTitle,
|
|
36
|
+
t as themeProvider
|
|
37
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { Stack as l } from "@mantine/core";
|
|
3
|
+
import { useFormViewerStore as m } from "../store/formStore.js";
|
|
4
|
+
import { stepsReselect as p, startStepReselect as c } from "../store/selectors.js";
|
|
5
|
+
import { Step as n } from "./Step.js";
|
|
6
|
+
import i from "../FormViewer.module.css.js";
|
|
7
|
+
const L = ({ NoStepSlot: o }) => {
|
|
8
|
+
const { useStore: e } = m(), { currentSteps: s } = e(p);
|
|
9
|
+
return e(c) ? /* @__PURE__ */ t("div", { className: i.allSlidesLayout, children: s.map((r) => /* @__PURE__ */ t("div", { className: i.allSlidesLayoutStep, children: /* @__PURE__ */ t(n, { step: r }, r.id) })) }) : /* @__PURE__ */ t(
|
|
10
|
+
l,
|
|
11
|
+
{
|
|
12
|
+
align: "center",
|
|
13
|
+
justify: "center",
|
|
14
|
+
gap: 4,
|
|
15
|
+
w: "100%",
|
|
16
|
+
h: "100%",
|
|
17
|
+
p: 16,
|
|
18
|
+
children: /* @__PURE__ */ t(o, {})
|
|
19
|
+
}
|
|
20
|
+
);
|
|
21
|
+
};
|
|
22
|
+
export {
|
|
23
|
+
L as AllSlidesLayout
|
|
24
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import { memo as t } from "react";
|
|
3
|
+
import { useFormViewerStore as e } from "../store/formStore.js";
|
|
4
|
+
import c from "../FormViewer.module.css.js";
|
|
5
|
+
const u = t(
|
|
6
|
+
({ children: r, theme: o }) => {
|
|
7
|
+
const { useStore: i } = e(), a = i((s) => s.isMobile);
|
|
8
|
+
return /* @__PURE__ */ n(
|
|
9
|
+
"div",
|
|
10
|
+
{
|
|
11
|
+
className: c.container,
|
|
12
|
+
"data-size": o?.size,
|
|
13
|
+
"data-mobile": a,
|
|
14
|
+
style: {
|
|
15
|
+
"--border-radius": `var(--mantine-radius-${o?.borderRadius})`,
|
|
16
|
+
"--blur": `${o?.container?.blur ?? 0}px`,
|
|
17
|
+
"--color": o?.container?.color,
|
|
18
|
+
"--shadow": `0 0 ${o?.container?.shadowSize || 0}px ${o?.container?.shadowColor || "transparent"}`
|
|
19
|
+
},
|
|
20
|
+
children: r
|
|
21
|
+
}
|
|
22
|
+
);
|
|
23
|
+
}
|
|
24
|
+
);
|
|
25
|
+
export {
|
|
26
|
+
u as Container
|
|
27
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { jsx as o, Fragment as i } from "react/jsx-runtime";
|
|
2
|
+
import { useActiveControl as u } from "../hooks/useActiveControl.js";
|
|
3
|
+
import { useActiveStep as a } from "../hooks/useActiveStep.js";
|
|
4
|
+
import { useFormViewerStore as f } from "../store/formStore.js";
|
|
5
|
+
import p from "../FormViewer.module.css.js";
|
|
6
|
+
const l = ({
|
|
7
|
+
controlId: r,
|
|
8
|
+
children: t
|
|
9
|
+
}) => {
|
|
10
|
+
const { useStore: s } = f(), m = s((n) => n.editing), e = a(), c = u();
|
|
11
|
+
return !m || e?.id !== "list" ? /* @__PURE__ */ o(i, { children: t }) : c?.id === r ? /* @__PURE__ */ o(
|
|
12
|
+
"div",
|
|
13
|
+
{
|
|
14
|
+
className: p.focusBox,
|
|
15
|
+
"data-radius": e?.theme?.borderRadius,
|
|
16
|
+
children: t
|
|
17
|
+
}
|
|
18
|
+
) : /* @__PURE__ */ o(i, { children: t });
|
|
19
|
+
};
|
|
20
|
+
export {
|
|
21
|
+
l as ListFocusBox
|
|
22
|
+
};
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { useCallback as a } from "react";
|
|
3
|
+
import { useTranslation as d } from "react-i18next";
|
|
4
|
+
import { Flex as S, Button as h } from "@mantine/core";
|
|
5
|
+
import { useMediaQuery as C, useWindowEvent as g } from "@mantine/hooks";
|
|
6
|
+
import { IconCornerDownLeft as w } from "@tabler/icons-react";
|
|
7
|
+
import { STATIC_CLASSES as b } from "../helpers/staticClasses.js";
|
|
8
|
+
import { useSteps as E } from "../hooks/useCreateFormContext.js";
|
|
9
|
+
import { useInterpolateText as x } from "../hooks/useInterpolateText.js";
|
|
10
|
+
import { useFormViewerStore as c } from "../store/formStore.js";
|
|
11
|
+
import { EditableContent as T } from "./fields/EditableContent/EditableContent.js";
|
|
12
|
+
const F = ({ data: e }) => {
|
|
13
|
+
const { t: n } = d("forms"), { handleNext: i } = E(), { api: l } = c(), s = C("(max-width: 992px)"), { useStore: m } = c(), r = m((o) => o.editing), p = m((o) => o.config.settings), f = a(
|
|
14
|
+
(o) => {
|
|
15
|
+
r || e.isEnd || s || o.code !== "Enter" || i();
|
|
16
|
+
},
|
|
17
|
+
[e.isEnd, r, i, s]
|
|
18
|
+
);
|
|
19
|
+
g("keydown", f);
|
|
20
|
+
const u = x(
|
|
21
|
+
e.confirmLabel,
|
|
22
|
+
r
|
|
23
|
+
);
|
|
24
|
+
return e.isStart || e.isEnd ? null : /* @__PURE__ */ t(
|
|
25
|
+
S,
|
|
26
|
+
{
|
|
27
|
+
justify: "var(--align)",
|
|
28
|
+
gap: 8,
|
|
29
|
+
wrap: "wrap",
|
|
30
|
+
direction: e.theme?.align === "start" ? "row" : "row-reverse",
|
|
31
|
+
children: /* @__PURE__ */ t(
|
|
32
|
+
h,
|
|
33
|
+
{
|
|
34
|
+
color: e.theme?.primaryColor,
|
|
35
|
+
size: e.theme?.size,
|
|
36
|
+
radius: e.theme?.borderRadius,
|
|
37
|
+
className: b.SUBMIT_BUTTON,
|
|
38
|
+
onClick: r ? void 0 : i,
|
|
39
|
+
leftSection: p.enterIndicator && /* @__PURE__ */ t(w, { size: "1em" }),
|
|
40
|
+
children: r ? /* @__PURE__ */ t(
|
|
41
|
+
T,
|
|
42
|
+
{
|
|
43
|
+
value: e.confirmLabel?.trim() || n("continue"),
|
|
44
|
+
onChange: (o) => {
|
|
45
|
+
l.updateStep(e.id, {
|
|
46
|
+
confirmLabel: o
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
) : u || n("continue")
|
|
51
|
+
}
|
|
52
|
+
)
|
|
53
|
+
}
|
|
54
|
+
);
|
|
55
|
+
};
|
|
56
|
+
export {
|
|
57
|
+
F as NavControls
|
|
58
|
+
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { jsxs as h, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { useTranslation as f } from "react-i18next";
|
|
3
|
+
import { ActionIcon as n, Tooltip as c } from "@mantine/core";
|
|
4
|
+
import { useMediaQuery as v } from "@mantine/hooks";
|
|
5
|
+
import { IconChevronUp as u, IconChevronLeft as g, IconChevronDown as S, IconChevronRight as C } from "@tabler/icons-react";
|
|
6
|
+
import { useActiveStep as x } from "../../hooks/useActiveStep.js";
|
|
7
|
+
import { useSteps as z } from "../../hooks/useCreateFormContext.js";
|
|
8
|
+
import { useFormViewerStore as b } from "../../store/formStore.js";
|
|
9
|
+
import { stepsReselect as I } from "../../store/selectors.js";
|
|
10
|
+
const T = () => {
|
|
11
|
+
const { useStore: i } = b(), { handleNext: m, handlePrev: p } = z(), o = x(), a = i(I), t = i((r) => r.config.settings), { t: s } = f("forms"), d = v("(max-width: 768px)"), l = i((r) => r.editing);
|
|
12
|
+
return a.currentSteps.length < 2 || o?.isEnd || d ? null : /* @__PURE__ */ h(n.Group, { children: [
|
|
13
|
+
t.freeNav && /* @__PURE__ */ e(c, { label: s("prevStep"), children: /* @__PURE__ */ e(
|
|
14
|
+
n,
|
|
15
|
+
{
|
|
16
|
+
disabled: o?.isStart,
|
|
17
|
+
size: "lg",
|
|
18
|
+
color: o?.theme?.primaryColor,
|
|
19
|
+
onClick: l ? void 0 : p,
|
|
20
|
+
children: t.slideAnimation === "vertical" ? /* @__PURE__ */ e(u, { size: 18 }) : /* @__PURE__ */ e(g, { size: 18 })
|
|
21
|
+
}
|
|
22
|
+
) }),
|
|
23
|
+
/* @__PURE__ */ e(c, { label: s("nextStep"), children: /* @__PURE__ */ e(
|
|
24
|
+
n,
|
|
25
|
+
{
|
|
26
|
+
disabled: o?.isEnd,
|
|
27
|
+
size: "lg",
|
|
28
|
+
color: o?.theme?.primaryColor,
|
|
29
|
+
onClick: l ? void 0 : m,
|
|
30
|
+
children: t.slideAnimation === "vertical" ? /* @__PURE__ */ e(S, { size: 18 }) : /* @__PURE__ */ e(C, { size: 18 })
|
|
31
|
+
}
|
|
32
|
+
) })
|
|
33
|
+
] });
|
|
34
|
+
};
|
|
35
|
+
export {
|
|
36
|
+
T as Navigation
|
|
37
|
+
};
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
import { jsx as e, jsxs as s, Fragment as c } from "react/jsx-runtime";
|
|
2
|
+
import { memo as d } from "react";
|
|
3
|
+
import { createPortal as h } from "react-dom";
|
|
4
|
+
import { Stack as u, Flex as b } from "@mantine/core";
|
|
5
|
+
import { AnimatePresence as y, motion as k } from "framer-motion";
|
|
6
|
+
import { Copyright as S } from "../../Copyright/index.js";
|
|
7
|
+
import { animations as w } from "../helpers/slides.js";
|
|
8
|
+
import { useFormViewerStore as p } from "../store/formStore.js";
|
|
9
|
+
import { startStepReselect as v, themeReselect as F } from "../store/selectors.js";
|
|
10
|
+
import { Navigation as x } from "./Navigation/Navigation.js";
|
|
11
|
+
import { getImageFilter as $, Step as R } from "./Step.js";
|
|
12
|
+
import { ProgressLine as A } from "./fields/ProgressLine.js";
|
|
13
|
+
import g from "../FormViewer.module.css.js";
|
|
14
|
+
import { useSteps as C } from "../hooks/useCreateFormContext.js";
|
|
15
|
+
import { useFormMobile as j } from "../hooks/useFormMobile.js";
|
|
16
|
+
import { useActiveStep as N } from "../hooks/useActiveStep.js";
|
|
17
|
+
const T = ({
|
|
18
|
+
NoStepSlot: m,
|
|
19
|
+
copyright: l
|
|
20
|
+
}) => {
|
|
21
|
+
const { useStore: a } = p();
|
|
22
|
+
return a(v) ? /* @__PURE__ */ e(P, { copyright: l }) : /* @__PURE__ */ e(
|
|
23
|
+
u,
|
|
24
|
+
{
|
|
25
|
+
align: "center",
|
|
26
|
+
justify: "center",
|
|
27
|
+
gap: 4,
|
|
28
|
+
w: "100%",
|
|
29
|
+
h: "100%",
|
|
30
|
+
p: 16,
|
|
31
|
+
children: /* @__PURE__ */ e(m, {})
|
|
32
|
+
}
|
|
33
|
+
);
|
|
34
|
+
}, P = d(({ copyright: m }) => {
|
|
35
|
+
const { anim: l } = C(), { ref: a } = j(), { useStore: n } = p(), i = n((r) => r.config.settings), f = n((r) => r.editing), t = n(F), o = N();
|
|
36
|
+
return /* @__PURE__ */ s(c, { children: [
|
|
37
|
+
h(
|
|
38
|
+
/* @__PURE__ */ s(c, { children: [
|
|
39
|
+
/* @__PURE__ */ e(
|
|
40
|
+
"link",
|
|
41
|
+
{
|
|
42
|
+
rel: "stylesheet",
|
|
43
|
+
href: `https://fonts.googleapis.com/css2?family=${t.title?.fontFamily || "Roboto"}:wght@${t.title?.fontWeight || 400}&display=swap`
|
|
44
|
+
}
|
|
45
|
+
),
|
|
46
|
+
/* @__PURE__ */ e(
|
|
47
|
+
"link",
|
|
48
|
+
{
|
|
49
|
+
rel: "stylesheet",
|
|
50
|
+
href: `https://fonts.googleapis.com/css2?family=${t.description?.fontFamily || "Roboto"}:wght@${t.description?.fontWeight || 400}&display=swap`
|
|
51
|
+
}
|
|
52
|
+
),
|
|
53
|
+
/* @__PURE__ */ e(
|
|
54
|
+
"link",
|
|
55
|
+
{
|
|
56
|
+
rel: "stylesheet",
|
|
57
|
+
href: `https://fonts.googleapis.com/css2?family=${t.font?.fontFamily || "Roboto"}:wght@${t.font?.fontWeight || 400}&display=swap`
|
|
58
|
+
}
|
|
59
|
+
)
|
|
60
|
+
] }),
|
|
61
|
+
document.head
|
|
62
|
+
),
|
|
63
|
+
/* @__PURE__ */ s("div", { ref: a, className: g.root, children: [
|
|
64
|
+
/* @__PURE__ */ e(
|
|
65
|
+
"div",
|
|
66
|
+
{
|
|
67
|
+
className: g.background,
|
|
68
|
+
style: {
|
|
69
|
+
"--bg-blend": t.background?.blendMode,
|
|
70
|
+
"--bg-fit": t.background?.fit || "cover",
|
|
71
|
+
"--bg-image": t.background?.image ? `url(${t.background.image})` : "none",
|
|
72
|
+
"--bg-color": t.background?.color || "none",
|
|
73
|
+
"--bg-image-filter": $({
|
|
74
|
+
brightness: t.background?.brightness || 100,
|
|
75
|
+
blur: t.background?.blur,
|
|
76
|
+
layout: "background"
|
|
77
|
+
})
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
),
|
|
81
|
+
/* @__PURE__ */ e(y, { mode: "wait", children: o && /* @__PURE__ */ e(
|
|
82
|
+
k.div,
|
|
83
|
+
{
|
|
84
|
+
style: {
|
|
85
|
+
height: "100%",
|
|
86
|
+
width: "100%",
|
|
87
|
+
display: "flex",
|
|
88
|
+
flexDirection: "column",
|
|
89
|
+
minHeight: 0
|
|
90
|
+
},
|
|
91
|
+
transition: {
|
|
92
|
+
duration: 0.25
|
|
93
|
+
},
|
|
94
|
+
...w[i.slideAnimation][l],
|
|
95
|
+
animate: { opacity: 1, y: 0, x: 0 },
|
|
96
|
+
children: /* @__PURE__ */ e(
|
|
97
|
+
R,
|
|
98
|
+
{
|
|
99
|
+
step: o,
|
|
100
|
+
theme: o.theme
|
|
101
|
+
},
|
|
102
|
+
o.id
|
|
103
|
+
)
|
|
104
|
+
},
|
|
105
|
+
o.id
|
|
106
|
+
) })
|
|
107
|
+
] }),
|
|
108
|
+
/* @__PURE__ */ s(
|
|
109
|
+
b,
|
|
110
|
+
{
|
|
111
|
+
pos: "absolute",
|
|
112
|
+
bottom: 24,
|
|
113
|
+
right: 24,
|
|
114
|
+
onClick: f ? (r) => r.preventDefault() : void 0,
|
|
115
|
+
children: [
|
|
116
|
+
i.copyright && /* @__PURE__ */ e(
|
|
117
|
+
S,
|
|
118
|
+
{
|
|
119
|
+
size: "sm",
|
|
120
|
+
color: o?.theme?.primaryColor,
|
|
121
|
+
title: m
|
|
122
|
+
}
|
|
123
|
+
),
|
|
124
|
+
i.navArrows && i.layout === "slides" && /* @__PURE__ */ e(x, {})
|
|
125
|
+
]
|
|
126
|
+
}
|
|
127
|
+
),
|
|
128
|
+
i.progressBar && /* @__PURE__ */ e(A, {})
|
|
129
|
+
] });
|
|
130
|
+
});
|
|
131
|
+
export {
|
|
132
|
+
T as OneSlideLayout
|
|
133
|
+
};
|