@layers-app/shared 0.2.4 → 0.2.6
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/jsons/emoji-categorized-windows.json.js +4 -0
- package/dist/assets/jsons/emoji-categorized-windows10.json.js +4 -0
- package/dist/assets/svg/flags/es.svg.js +4 -0
- package/dist/assets/svg/flags/ru.svg.js +4 -0
- package/dist/assets/svg/flags/us.svg.js +4 -0
- package/dist/assets/svg/globeIcon.svg.js +5 -0
- package/dist/assets/svg/socials/github.svg.js +5 -0
- package/dist/assets/svg/socials/instagram.svg.js +5 -0
- package/dist/assets/svg/socials/x.svg.js +5 -0
- package/dist/assets/svg/socials/youtube.svg.js +5 -0
- package/dist/assets/svg/users.svg.js +5 -0
- package/dist/assets/svg/whatsapp-icon.svg.js +5 -0
- package/dist/components/AliasTextInput/AliasTextInput.d.ts +3 -1
- package/dist/components/AliasTextInput/AliasTextInput.d.ts.map +1 -1
- package/dist/components/AliasTextInput/AliasTextInput.js +63 -54
- package/dist/components/AppContainer/AppContainer.d.ts +1 -1
- package/dist/components/AppContainer/AppContainer.d.ts.map +1 -1
- package/dist/components/AppContainer/AppContainer.js +48 -45
- package/dist/components/AppContainer/AppContainer.module.css.js +1 -1
- package/dist/components/AppContainer/components/AppSidebarButton.js +1 -1
- package/dist/components/AppContainer/components/AppsSidebar/AppsSection.js +5 -5
- package/dist/components/AppContainer/components/AppsSidebar/UserSection.d.ts.map +1 -1
- package/dist/components/AppContainer/components/AppsSidebar/UserSection.js +57 -44
- package/dist/components/AppContainer/components/Main.d.ts +5 -1
- package/dist/components/AppContainer/components/Main.d.ts.map +1 -1
- package/dist/components/AppContainer/components/Main.js +11 -8
- package/dist/components/AppContainer/components/menus/HelpMenu/HelpMenu.d.ts.map +1 -1
- package/dist/components/AppContainer/components/menus/HelpMenu/HelpMenu.js +34 -19
- package/dist/components/AppContainer/components/menus/HelpMenu/HelpMenu.module.css.js +1 -1
- package/dist/components/AppContainer/components/menus/MoreMenu.js +8 -8
- package/dist/components/AppContainer/components/menus/UserMenu/MenuUserDropdown.d.ts +1 -0
- package/dist/components/AppContainer/components/menus/UserMenu/MenuUserDropdown.d.ts.map +1 -1
- package/dist/components/AppContainer/hooks/useAppContainer.d.ts +1 -1
- package/dist/components/AppContainer/hooks/useAppContainer.d.ts.map +1 -1
- package/dist/components/AppContainer/hooks/useAppContainer.js +45 -42
- package/dist/components/AppContainer/hooks/useAppContainerDataStore.d.ts.map +1 -1
- package/dist/components/AppContainer/hooks/useAppContainerDataStore.js +1 -0
- package/dist/components/AppContainer/types.d.ts +2 -0
- package/dist/components/AppContainer/types.d.ts.map +1 -1
- package/dist/components/AttachmentsGalleryModal/AttachmentsGalleryModal.d.ts +1 -1
- package/dist/components/AttachmentsGalleryModal/AttachmentsGalleryModal.d.ts.map +1 -1
- package/dist/components/AttachmentsGalleryModal/components/GallerySlide.d.ts +1 -1
- package/dist/components/AttachmentsGalleryModal/components/GallerySlide.d.ts.map +1 -1
- package/dist/components/AttachmentsGalleryModal/components/GallerySlide.js +5 -5
- package/dist/components/AttachmentsGalleryModal/components/ModalFooter.d.ts +1 -1
- package/dist/components/AttachmentsGalleryModal/components/ModalFooter.d.ts.map +1 -1
- package/dist/components/AttachmentsGalleryModal/components/ModalFooter.js +4 -4
- package/dist/components/AttachmentsGalleryModal/components/ModalHeader.d.ts +1 -1
- package/dist/components/AttachmentsGalleryModal/components/ModalHeader.d.ts.map +1 -1
- package/dist/components/AttachmentsGalleryModal/components/ShakePlayer/ShakaPlayer.d.ts.map +1 -1
- package/dist/components/AttachmentsGalleryModal/hooks/useDownloadFile.d.ts +1 -1
- package/dist/components/AttachmentsGalleryModal/hooks/useDownloadFile.d.ts.map +1 -1
- package/dist/components/AttachmentsGalleryModal/hooks/useGetPreviewUrl.d.ts +1 -1
- package/dist/components/AttachmentsGalleryModal/hooks/useGetPreviewUrl.d.ts.map +1 -1
- package/dist/components/AttachmentsGalleryModal/styles.module.css.js +9 -9
- package/dist/components/AttachmentsPreview/AttachmentsPreview.d.ts.map +1 -1
- package/dist/components/AttachmentsPreview/AttachmentsPreview.js +114 -88
- package/dist/components/AttachmentsPreview/AttachmentsPreview.module.css.js +9 -9
- package/dist/components/BouncingLogo/BouncingLogo.d.ts +6 -2
- package/dist/components/BouncingLogo/BouncingLogo.d.ts.map +1 -1
- package/dist/components/BouncingLogo/BouncingLogo.js +13 -14
- package/dist/components/BouncingLogo/BouncingLogo.module.css.js +12 -10
- package/dist/components/ColorPicker/ColorPicker.d.ts +2 -0
- package/dist/components/ColorPicker/ColorPicker.d.ts.map +1 -1
- package/dist/components/ColorPicker/ColorPicker.js +66 -59
- package/dist/components/CommentComposer/CommentEditorHotkeys.js +1 -1
- package/dist/components/CommunitiesDialog/styles.module.css.js +1 -1
- package/dist/components/Copyright/index.d.ts.map +1 -1
- package/dist/components/Copyright/index.js +6 -6
- package/dist/components/EmojiPicker/EmojiPanel.d.ts.map +1 -1
- package/dist/components/EmojiPicker/EmojiPanel.js +14 -14
- package/dist/components/EmojiPicker/EmojiPicker.d.ts.map +1 -1
- package/dist/components/EmojiPicker/EmojiPicker.js +87 -95
- package/dist/components/EmojiPicker/IconsPanel.d.ts.map +1 -1
- package/dist/components/EmojiPicker/IconsPanel.js +37 -38
- package/dist/components/EmojiPicker/utils.d.ts +11 -0
- package/dist/components/EmojiPicker/utils.d.ts.map +1 -0
- package/dist/components/EmojiPicker/utils.js +46 -0
- package/dist/components/EntityIcon.d.ts +5 -2
- package/dist/components/EntityIcon.d.ts.map +1 -1
- package/dist/components/EntityIcon.js +44 -46
- package/dist/components/FilePicker/FilePicker.d.ts +33 -2
- package/dist/components/FilePicker/FilePicker.d.ts.map +1 -1
- package/dist/components/FilePicker/FilePicker.js +155 -105
- package/dist/components/FilePicker/FilePicker.module.css.js +9 -7
- package/dist/components/FilePicker/FilePickerGoogleDrive.d.ts +22 -0
- package/dist/components/FilePicker/FilePickerGoogleDrive.d.ts.map +1 -0
- package/dist/components/FilePicker/FilePickerGoogleDrive.js +86 -0
- package/dist/components/FilePicker/FilePickerUnsplash.d.ts.map +1 -1
- package/dist/components/FilePicker/FilePickerUnsplash.js +69 -52
- package/dist/components/FilePicker/types.d.ts +1 -1
- package/dist/components/FilePicker/types.d.ts.map +1 -1
- package/dist/components/FormViewer/FormViewer.module.css.js +18 -18
- package/dist/components/FormViewer/components/fields/ChoiceField/PictureChoiceCard.d.ts +4 -2
- package/dist/components/FormViewer/components/fields/ChoiceField/PictureChoiceCard.d.ts.map +1 -1
- package/dist/components/FormViewer/components/fields/ChoiceField/PictureChoiceCard.js +51 -26
- package/dist/components/FormViewer/components/fields/ChoiceField/PictureChoiceField.d.ts.map +1 -1
- package/dist/components/FormViewer/components/fields/ChoiceField/PictureChoiceField.js +25 -23
- package/dist/components/FormViewer/components/fields/DragOptions/DragOptions.module.css.js +1 -1
- package/dist/components/FormViewer/components/fields/SelectableCard/PictureSelectableCard.d.ts +5 -2
- package/dist/components/FormViewer/components/fields/SelectableCard/PictureSelectableCard.d.ts.map +1 -1
- package/dist/components/FormViewer/components/fields/SelectableCard/PictureSelectableCard.js +105 -96
- package/dist/components/FormViewer/components/fields/SliderField.d.ts.map +1 -1
- package/dist/components/FormViewer/components/fields/SliderField.js +19 -18
- package/dist/components/FormViewer/components/fields/UploadField/UploadField.d.ts.map +1 -1
- package/dist/components/FormViewer/components/fields/UploadField/UploadFile/UploadFile.module.css.js +1 -1
- package/dist/components/FormViewer/helpers/cssScoping.d.ts.map +1 -1
- package/dist/components/FormViewer/helpers/staticClasses.d.ts.map +1 -1
- package/dist/components/FormViewer/hooks/useFormGlobalTheme.js +15 -15
- package/dist/components/FormViewer/hooks/useInterpolateText.js +3 -3
- package/dist/components/FormViewer/store/formStore.d.ts +10 -3
- package/dist/components/FormViewer/store/formStore.d.ts.map +1 -1
- package/dist/components/FormViewer/store/formStore.js +3 -3
- package/dist/components/FormViewer/store/selectors.js +1 -1
- package/dist/components/GroupAvatar/index.d.ts +1 -0
- package/dist/components/GroupAvatar/index.d.ts.map +1 -1
- package/dist/components/GroupAvatar/index.js +9 -8
- package/dist/components/ImageCropper/ImageCropper.d.ts +19 -0
- package/dist/components/ImageCropper/ImageCropper.d.ts.map +1 -0
- package/dist/components/ImageCropper/ImageCropper.js +356 -0
- package/dist/components/ImageCropper/ImageCropper.module.css.js +51 -0
- package/dist/components/ImageCropper/cropUtils.d.ts +22 -0
- package/dist/components/ImageCropper/cropUtils.d.ts.map +1 -0
- package/dist/components/ImageCropper/cropUtils.js +42 -0
- package/dist/components/ImageCropper/index.d.ts +4 -0
- package/dist/components/ImageCropper/index.d.ts.map +1 -0
- package/dist/components/ImageCropper/useCropInteraction.d.ts +28 -0
- package/dist/components/ImageCropper/useCropInteraction.d.ts.map +1 -0
- package/dist/components/ImageCropper/useCropInteraction.js +76 -0
- package/dist/components/IntegrationFlowAnimation/IntegrationFlowAnimation.d.ts +21 -0
- package/dist/components/IntegrationFlowAnimation/IntegrationFlowAnimation.d.ts.map +1 -0
- package/dist/components/IntegrationFlowAnimation/IntegrationFlowAnimation.js +73 -0
- package/dist/components/IntegrationFlowAnimation/IntegrationFlowAnimation.module.css.js +19 -0
- package/dist/components/IntegrationFlowAnimation/icons/GoogleDriveIcon.d.ts +6 -0
- package/dist/components/IntegrationFlowAnimation/icons/GoogleDriveIcon.d.ts.map +1 -0
- package/dist/components/IntegrationFlowAnimation/icons/GoogleDriveIcon.js +60 -0
- package/dist/components/IntegrationFlowAnimation/icons/LayersCubeIcon.d.ts +6 -0
- package/dist/components/IntegrationFlowAnimation/icons/LayersCubeIcon.d.ts.map +1 -0
- package/dist/components/IntegrationFlowAnimation/icons/LayersCubeIcon.js +21 -0
- package/dist/components/IntegrationFlowAnimation/icons/NotionIcon.d.ts +6 -0
- package/dist/components/IntegrationFlowAnimation/icons/NotionIcon.d.ts.map +1 -0
- package/dist/components/IntegrationFlowAnimation/icons/NotionIcon.js +35 -0
- package/dist/components/IntegrationFlowAnimation/icons/index.d.ts +4 -0
- package/dist/components/IntegrationFlowAnimation/icons/index.d.ts.map +1 -0
- package/dist/components/IntegrationFlowAnimation/index.d.ts +5 -0
- package/dist/components/IntegrationFlowAnimation/index.d.ts.map +1 -0
- package/dist/components/LanguagePicker/LanguagePicker.d.ts +2 -1
- package/dist/components/LanguagePicker/LanguagePicker.d.ts.map +1 -1
- package/dist/components/LanguagePicker/LanguagePicker.js +26 -22
- package/dist/components/Loaders/styles.module.css.js +1 -1
- package/dist/components/MediaLibrary/MediaLibrary.d.ts +3 -0
- package/dist/components/MediaLibrary/MediaLibrary.d.ts.map +1 -0
- package/dist/components/MediaLibrary/MediaLibrary.js +93 -0
- package/dist/components/MediaLibrary/MediaLibrary.module.css.js +17 -0
- package/dist/components/MediaLibrary/MediaLibraryBreadcrumbs.d.ts +8 -0
- package/dist/components/MediaLibrary/MediaLibraryBreadcrumbs.d.ts.map +1 -0
- package/dist/components/MediaLibrary/MediaLibraryBreadcrumbs.js +22 -0
- package/dist/components/MediaLibrary/MediaLibraryBrowser.d.ts +12 -0
- package/dist/components/MediaLibrary/MediaLibraryBrowser.d.ts.map +1 -0
- package/dist/components/MediaLibrary/MediaLibraryBrowser.js +52 -0
- package/dist/components/MediaLibrary/MediaLibraryRow.d.ts +9 -0
- package/dist/components/MediaLibrary/MediaLibraryRow.d.ts.map +1 -0
- package/dist/components/MediaLibrary/MediaLibraryRow.js +29 -0
- package/dist/components/MediaLibrary/index.d.ts +4 -0
- package/dist/components/MediaLibrary/index.d.ts.map +1 -0
- package/dist/components/MediaLibrary/types.d.ts +31 -0
- package/dist/components/MediaLibrary/types.d.ts.map +1 -0
- package/dist/components/NavMenu/NavMenu.d.ts +4 -1
- package/dist/components/NavMenu/NavMenu.d.ts.map +1 -1
- package/dist/components/NavMenu/NavMenu.js +96 -77
- package/dist/components/NavMenu/NavMenu.module.css.js +10 -10
- package/dist/components/NavMenu/components/DnDItem.d.ts +2 -1
- package/dist/components/NavMenu/components/DnDItem.d.ts.map +1 -1
- package/dist/components/NavMenu/components/DnDItem.js +32 -30
- package/dist/components/NavMenu/components/DnDProvider.d.ts.map +1 -1
- package/dist/components/NavMenu/components/DnDProvider.js +28 -26
- package/dist/components/NavMenu/components/DraggableOverlay.d.ts.map +1 -1
- package/dist/components/NavMenu/components/NavMenuItem.d.ts +1 -1
- package/dist/components/NavMenu/components/NavMenuItem.d.ts.map +1 -1
- package/dist/components/NavMenu/components/NavMenuItem.js +108 -94
- package/dist/components/NavMenu/store.d.ts +1 -0
- package/dist/components/NavMenu/store.d.ts.map +1 -1
- package/dist/components/NavMenu/types.d.ts +1 -0
- package/dist/components/NavMenu/types.d.ts.map +1 -1
- package/dist/components/NavbarResizer/NavbarResizer.module.css.js +2 -2
- package/dist/components/NoData/NoData.d.ts +38 -27
- package/dist/components/NoData/NoData.d.ts.map +1 -1
- package/dist/components/NoData/NoData.js +82 -79
- package/dist/components/OnBoarding/ProjectBoard.js +17 -17
- package/dist/components/OnBoarding/steps/AddTasks/AddTasksNav.js +7 -7
- package/dist/components/OnBoarding/steps/AddTasks/TasksListBoard.d.ts.map +1 -1
- package/dist/components/OnBoarding/steps/AddTasks/TasksListBoard.js +9 -9
- package/dist/components/OnBoarding/steps/CreateFirstProject.js +5 -5
- package/dist/components/OnBoarding/steps/DefineStatuses/DefineStatusesNav.js +7 -7
- package/dist/components/OnBoarding/steps/DefineStatuses/StatusesListBoard.js +6 -6
- package/dist/components/OnBoarding/steps/DifferentLayouts/DifferentLayoutsBoard.d.ts.map +1 -1
- package/dist/components/OnBoarding/steps/DifferentLayouts/DifferentLayoutsNav.js +10 -10
- package/dist/components/OnBoarding/steps/DifferentLayouts/KanbanLayout.js +5 -5
- package/dist/components/OnBoarding/steps/InviteUsers/BoardModal.js +10 -10
- package/dist/components/OnBoarding/steps/InviteUsers/InviteUsers.d.ts.map +1 -1
- package/dist/components/OnBoarding/steps/SelectCategory/CategorySelect.d.ts.map +1 -1
- package/dist/components/OnBoarding/steps/SelectCategory/CategorySelect.js +8 -8
- package/dist/components/OnBoarding/steps/SelectCategory/SelectCategoryNav.js +5 -5
- package/dist/components/OnBoarding/steps/StartedStep.js +5 -5
- package/dist/components/SearchFilters/components/DateFilter.js +19 -19
- package/dist/components/SearchFilters/components/SearchHelp.d.ts.map +1 -1
- package/dist/components/SearchFilters/components/SearchHelp.js +7 -7
- package/dist/components/SettingsSection/index.d.ts +12 -0
- package/dist/components/SettingsSection/index.d.ts.map +1 -0
- package/dist/components/SettingsSection/index.js +36 -0
- package/dist/components/SettingsSection/styles.module.css.js +7 -0
- package/dist/components/SocialLinkRow/index.d.ts +11 -0
- package/dist/components/SocialLinkRow/index.d.ts.map +1 -0
- package/dist/components/SocialLinkRow/index.js +109 -0
- package/dist/components/SortableList/SortableList.d.ts.map +1 -1
- package/dist/components/SortableList/components/SortableItem/SortableItem.d.ts.map +1 -1
- package/dist/components/SortableList/components/SortableItem/SortableItem.js +4 -12
- package/dist/components/SortableList/components/SortableItem/index.d.ts +1 -1
- package/dist/components/SortableList/components/SortableItem/index.d.ts.map +1 -1
- package/dist/components/StorageUsageEntityList/StorageEntityItem.d.ts +2 -6
- package/dist/components/StorageUsageEntityList/StorageEntityItem.d.ts.map +1 -1
- package/dist/components/StorageUsageEntityList/StorageEntityItem.js +19 -59
- package/dist/components/StorageUsageEntityList/StorageUsageEntityList.d.ts +1 -1
- package/dist/components/StorageUsageEntityList/StorageUsageEntityList.d.ts.map +1 -1
- package/dist/components/StorageUsageEntityList/StorageUsageEntityList.js +6 -24
- package/dist/components/StorageUsageProgress/StorageUsageProgress.module.css.js +7 -0
- package/dist/components/StorageUsageProgress/index.d.ts +2 -2
- package/dist/components/StorageUsageProgress/index.d.ts.map +1 -1
- package/dist/components/StorageUsageProgress/index.js +76 -41
- package/dist/components/ThemeIndicator/index.d.ts.map +1 -1
- package/dist/components/ThemeIndicator/index.js +4 -4
- package/dist/components/TimezonePicker/index.d.ts +9 -0
- package/dist/components/TimezonePicker/index.d.ts.map +1 -0
- package/dist/components/TimezonePicker/index.js +90 -0
- package/dist/components/UserAvatar/index.js +14 -14
- package/dist/components/WorkspaceMenu/WorkspaceItem.d.ts.map +1 -1
- package/dist/components/WorkspaceMenu/WorkspaceItem.js +18 -17
- package/dist/components/WorkspaceMenu/WorkspaceMenu.d.ts.map +1 -1
- package/dist/components/WorkspaceMenu/WorkspaceMenu.js +78 -74
- package/dist/components/modals/RemoveConfirmModal.d.ts.map +1 -1
- package/dist/components/modals/RemoveConfirmModal.js +31 -24
- package/dist/components/table/components/TableHeaders.js +3 -3
- package/dist/components/table/components/TablePanel.js +1 -1
- package/dist/components/table/export.d.ts.map +1 -1
- package/dist/components/table/helpers/columns.js +3 -3
- package/dist/components/table/hooks/TableProvider.js +3 -3
- package/dist/components/table/hooks/useSaveRowCount.d.ts.map +1 -1
- package/dist/components/table/hooks/useSaveRowCount.js +4 -4
- package/dist/components/table/hooks/useSorting.d.ts.map +1 -1
- package/dist/components/table/hooks/useSorting.js +3 -1
- package/dist/components/table/selectors.js +6 -6
- package/dist/constants.d.ts.map +1 -1
- package/dist/constants.js +8 -1
- package/dist/helpers/getFileIcons.js +12 -12
- package/dist/helpers/getFileType.d.ts +1 -2
- package/dist/helpers/getFileType.d.ts.map +1 -1
- package/dist/helpers/getFileType.js +5 -6
- package/dist/helpers/isAppMode.d.ts +1 -1
- package/dist/helpers/isAppMode.d.ts.map +1 -1
- package/dist/helpers/showNotifications.d.ts +14 -3
- package/dist/helpers/showNotifications.d.ts.map +1 -1
- package/dist/helpers/showNotifications.js +152 -61
- package/dist/helpers/showNotifications.module.css.js +29 -0
- package/dist/helpers/timezones.d.ts +12 -0
- package/dist/helpers/timezones.d.ts.map +1 -0
- package/dist/helpers/timezones.js +59 -0
- package/dist/helpers/validateAliasFormat.d.ts +2 -0
- package/dist/helpers/validateAliasFormat.d.ts.map +1 -0
- package/dist/helpers/validateAliasFormat.js +4 -0
- package/dist/hooks/useNumberQueryParam.js +3 -3
- package/dist/hooks/useOutsideClick.d.ts.map +1 -1
- package/dist/hooks/useVideoUploadGuard.d.ts +2 -0
- package/dist/hooks/useVideoUploadGuard.d.ts.map +1 -0
- package/dist/hooks/useVideoUploadGuard.js +24 -0
- package/dist/index.css +1 -1
- package/dist/index.d.ts +13 -5
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +388 -346
- package/dist/lang/locales/ui_en.json.js +24 -22
- package/dist/lang/locales/ui_es.json.js +22 -20
- package/dist/lang/locales/ui_ru.json.js +18 -16
- package/dist/lib/contentImport/index.d.ts +4 -0
- package/dist/lib/contentImport/index.d.ts.map +1 -0
- package/dist/lib/contentImport/lexicalSerializer.d.ts +19 -0
- package/dist/lib/contentImport/lexicalSerializer.d.ts.map +1 -0
- package/dist/lib/contentImport/lexicalSerializer.js +215 -0
- package/dist/lib/contentImport/types.d.ts +161 -0
- package/dist/lib/contentImport/types.d.ts.map +1 -0
- package/dist/lib/contentImport/utils.d.ts +35 -0
- package/dist/lib/contentImport/utils.d.ts.map +1 -0
- package/dist/lib/contentImport/utils.js +145 -0
- package/dist/node_modules/countries-and-timezones/esm/index.js +4031 -0
- package/dist/store/plansModal.d.ts.map +1 -1
- package/dist/store/plansModal.js +8 -7
- package/dist/store/trashModal.d.ts +8 -0
- package/dist/store/trashModal.d.ts.map +1 -0
- package/dist/store/trashModal.js +13 -0
- package/dist/types/storageCategories.d.ts +4 -0
- package/dist/types/storageCategories.d.ts.map +1 -0
- package/dist/types/storageCategories.js +21 -0
- package/dist/utils/formatStorage.d.ts +8 -2
- package/dist/utils/formatStorage.d.ts.map +1 -1
- package/dist/utils/formatStorage.js +10 -5
- package/dist/utils/getCroppedBlob.d.ts +3 -0
- package/dist/utils/getCroppedBlob.d.ts.map +1 -0
- package/dist/utils/getCroppedBlob.js +21 -0
- package/docs/README.md +17 -4
- package/package.json +1 -1
- package/dist/assets/fileTypes/archives.svg.js +0 -5
- package/dist/assets/fileTypes/audio.svg.js +0 -5
- package/dist/assets/fileTypes/code.svg.js +0 -5
- package/dist/assets/fileTypes/documentsStorage.svg.js +0 -5
- package/dist/assets/fileTypes/images.svg.js +0 -5
- package/dist/assets/fileTypes/other.svg.js +0 -5
- package/dist/assets/fileTypes/videos.svg.js +0 -5
- package/dist/assets/images/flags/es.svg.js +0 -4
- package/dist/assets/images/flags/ru.svg.js +0 -4
- package/dist/assets/images/flags/us.svg.js +0 -4
- package/dist/components/AppContainer/hooks/useSetAppContainerLayout.d.ts +0 -3
- package/dist/components/AppContainer/hooks/useSetAppContainerLayout.d.ts.map +0 -1
- package/dist/components/AppContainer/hooks/useSetAppContainerLayout.js +0 -10
- package/dist/components/EmojiPicker/getIconsList.d.ts +0 -8
- package/dist/components/EmojiPicker/getIconsList.d.ts.map +0 -1
- package/dist/components/EmojiPicker/getIconsList.js +0 -32
- package/dist/components/EmojiPicker/getRandomIcon.d.ts +0 -2
- package/dist/components/EmojiPicker/getRandomIcon.d.ts.map +0 -1
- package/dist/components/EmojiPicker/getRandomIcon.js +0 -10
- package/dist/components/NoData/NoData.module.css.js +0 -7
- package/dist/components/PaymentCancel/PaymentCancel.d.ts +0 -2
- package/dist/components/PaymentCancel/PaymentCancel.d.ts.map +0 -1
- package/dist/components/PaymentCancel/PaymentCancel.js +0 -41
- package/dist/components/PaymentError/PaymentError.d.ts +0 -2
- package/dist/components/PaymentError/PaymentError.d.ts.map +0 -1
- package/dist/components/PaymentError/PaymentError.js +0 -41
- package/dist/components/PaymentSuccess/PaymentSuccess.d.ts +0 -2
- package/dist/components/PaymentSuccess/PaymentSuccess.d.ts.map +0 -1
- package/dist/components/PaymentSuccess/PaymentSuccess.js +0 -41
- package/dist/node_modules/@layers-app/layers/src/api/common.js +0 -41
- package/dist/store/accessOptionsControl.d.ts +0 -17
- package/dist/store/accessOptionsControl.d.ts.map +0 -1
- package/dist/store/accessOptionsControl.js +0 -18
|
@@ -1,89 +1,100 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { memo as m, useRef as
|
|
1
|
+
import { jsx as n, jsxs as u } from "react/jsx-runtime";
|
|
2
|
+
import { memo as m, useRef as k, useEffect as O, useMemo as y } from "react";
|
|
3
3
|
import { useTranslation as g } from "react-i18next";
|
|
4
|
-
import { NavLink as
|
|
4
|
+
import { NavLink as E } from "react-router-dom";
|
|
5
5
|
import { MoreHorizontalIcon as I, ArrowRight01Icon as M } from "@hugeicons/core-free-icons";
|
|
6
|
-
import { HugeiconsIcon as
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
6
|
+
import { HugeiconsIcon as C } from "@hugeicons/react";
|
|
7
|
+
import { Flex as h, Loader as N, Text as w, FocusTrap as P, Tooltip as b, Center as R } from "@mantine/core";
|
|
8
|
+
import { useForm as j } from "@mantine/form";
|
|
9
|
+
import { useClickOutside as z } from "@mantine/hooks";
|
|
10
|
+
import { useAsyncStatus as A } from "../../../hooks/useAsyncStatus.js";
|
|
11
|
+
import { useMenu as D } from "../../../hooks/useMenu.js";
|
|
12
|
+
import { appContainerStore as T } from "../../AppContainer/hooks/useAppContainerStore.js";
|
|
12
13
|
import { EmojiPicker as F } from "../../EmojiPicker/EmojiPicker.js";
|
|
13
|
-
import { EntityIcon as
|
|
14
|
+
import { EntityIcon as x } from "../../EntityIcon.js";
|
|
14
15
|
import { NavMenu as L } from "../NavMenu.js";
|
|
15
|
-
import { useNavMenuStore as
|
|
16
|
-
import { NavMenuActionIcon as
|
|
17
|
-
import
|
|
18
|
-
const
|
|
19
|
-
const { useStore: r } =
|
|
20
|
-
return /* @__PURE__ */
|
|
21
|
-
}),
|
|
22
|
-
const { api: o } =
|
|
23
|
-
|
|
24
|
-
|
|
16
|
+
import { useNavMenuStore as f } from "../store.js";
|
|
17
|
+
import { NavMenuActionIcon as B } from "./NavMenuActionIcon.js";
|
|
18
|
+
import s from "../NavMenu.module.css.js";
|
|
19
|
+
const re = m(({ item: e, ignoreDepth: a }) => {
|
|
20
|
+
const { useStore: r } = f(), i = r((t) => t.editId === e.id);
|
|
21
|
+
return /* @__PURE__ */ n(S, { depth: a ? void 0 : e.depth, children: i ? /* @__PURE__ */ n(H, { item: e }) : /* @__PURE__ */ n(V, { item: e }) });
|
|
22
|
+
}), V = m(({ item: e }) => {
|
|
23
|
+
const { api: a, useStore: r } = f(), i = r((o) => o.props.onClick), { isMobile: t } = D(), { t: l } = g("appContainer"), d = () => {
|
|
24
|
+
i ? i(e) : e.hasChildren && a.toggleOpened(e);
|
|
25
|
+
}, c = e.data?.isReadOnly, p = e.href ? /* @__PURE__ */ n(
|
|
26
|
+
E,
|
|
25
27
|
{
|
|
26
28
|
to: e.href,
|
|
27
|
-
className:
|
|
29
|
+
className: s.item,
|
|
28
30
|
"data-active": e.active,
|
|
29
31
|
"data-has-children": e.hasChildren,
|
|
30
|
-
|
|
32
|
+
"data-read-only": c,
|
|
33
|
+
onClick: c ? void 0 : () => {
|
|
34
|
+
t && !e.hasChildren && T.api.closeToolbar();
|
|
35
|
+
},
|
|
36
|
+
children: /* @__PURE__ */ n(v, { item: e })
|
|
31
37
|
}
|
|
32
|
-
) : /* @__PURE__ */
|
|
38
|
+
) : /* @__PURE__ */ n(
|
|
33
39
|
"div",
|
|
34
40
|
{
|
|
35
|
-
className:
|
|
41
|
+
className: s.item,
|
|
36
42
|
"data-active": e.active,
|
|
37
43
|
"data-has-children": e.hasChildren,
|
|
38
|
-
|
|
39
|
-
|
|
44
|
+
"data-read-only": c,
|
|
45
|
+
onClick: c ? void 0 : d,
|
|
46
|
+
children: /* @__PURE__ */ n(v, { item: e })
|
|
40
47
|
}
|
|
41
48
|
);
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
49
|
+
return c ? /* @__PURE__ */ n(b, { label: l("readOnlyAccess"), position: "right", withArrow: !0, children: p }) : p;
|
|
50
|
+
}), v = m(({ item: e }) => {
|
|
51
|
+
const { t: a } = g(), { useStore: r, api: i } = f(), t = r((o) => o.opened.includes(e.id)), l = r((o) => o.loading[e.id]), d = y(
|
|
52
|
+
() => ({ ...e.data, isOpen: t }),
|
|
53
|
+
[t, e.data]
|
|
54
|
+
), c = e.data?.isReadOnly, p = c ? 0.3 : void 0;
|
|
55
|
+
return /* @__PURE__ */ u(h, { gap: 4, h: "100%", flex: 1, miw: 0, justify: "space-between", children: [
|
|
56
|
+
/* @__PURE__ */ u(h, { gap: 4, miw: 0, flex: 1, children: [
|
|
57
|
+
l ? /* @__PURE__ */ n(R, { w: 20, h: 20, children: /* @__PURE__ */ n(N, { size: 16 }) }) : e.hasChildren && !c && /* @__PURE__ */ n(
|
|
58
|
+
B,
|
|
48
59
|
{
|
|
49
|
-
className:
|
|
50
|
-
onClick: (
|
|
51
|
-
|
|
60
|
+
className: s.chevron,
|
|
61
|
+
onClick: (o) => {
|
|
62
|
+
o.preventDefault(), o.stopPropagation(), i.toggleOpened(e);
|
|
52
63
|
},
|
|
53
|
-
children: /* @__PURE__ */
|
|
54
|
-
|
|
64
|
+
children: /* @__PURE__ */ n(
|
|
65
|
+
C,
|
|
55
66
|
{
|
|
56
67
|
icon: M,
|
|
57
68
|
size: 16,
|
|
58
69
|
style: {
|
|
59
|
-
transform: `rotate(${
|
|
70
|
+
transform: `rotate(${t ? 90 : 0}deg)`,
|
|
60
71
|
transition: "transform 0.1s ease-in-out"
|
|
61
72
|
}
|
|
62
73
|
}
|
|
63
74
|
)
|
|
64
75
|
}
|
|
65
76
|
),
|
|
66
|
-
/* @__PURE__ */
|
|
67
|
-
/* @__PURE__ */
|
|
68
|
-
|
|
77
|
+
/* @__PURE__ */ n("div", { className: s.icon, style: { opacity: p }, children: /* @__PURE__ */ n(x, { item: d }) }),
|
|
78
|
+
/* @__PURE__ */ n(
|
|
79
|
+
b,
|
|
69
80
|
{
|
|
70
81
|
disabled: e.title.length < 25,
|
|
71
|
-
label: e.title ||
|
|
82
|
+
label: e.title || a("noName"),
|
|
72
83
|
openDelay: 400,
|
|
73
|
-
children: /* @__PURE__ */
|
|
74
|
-
|
|
84
|
+
children: /* @__PURE__ */ n(
|
|
85
|
+
w,
|
|
75
86
|
{
|
|
76
87
|
flex: 1,
|
|
77
88
|
truncate: !0,
|
|
78
|
-
style: { opacity: e.title ? 1 : 0.5 },
|
|
89
|
+
style: { opacity: e.title ? p ?? 1 : 0.5 },
|
|
79
90
|
size: "sm",
|
|
80
91
|
fw: 500,
|
|
81
92
|
miw: 0,
|
|
82
93
|
c: "var(--mantine-color-text)",
|
|
83
|
-
onDoubleClick: (
|
|
84
|
-
r.getState().props.onEdit && !e?.isDisabledEditByDoubleClick && (
|
|
94
|
+
onDoubleClick: (o) => {
|
|
95
|
+
r.getState().props.onEdit && !e?.isDisabledEditByDoubleClick && (o.preventDefault(), o.stopPropagation(), i.startEditing(e.id));
|
|
85
96
|
},
|
|
86
|
-
children: e.title ||
|
|
97
|
+
children: e.title || a("noName")
|
|
87
98
|
}
|
|
88
99
|
)
|
|
89
100
|
}
|
|
@@ -91,39 +102,37 @@ const ne = m(({ item: e, ignoreDepth: o }) => {
|
|
|
91
102
|
] }),
|
|
92
103
|
e.rightSection
|
|
93
104
|
] });
|
|
94
|
-
}),
|
|
95
|
-
const { api:
|
|
105
|
+
}), H = m(({ item: e }) => {
|
|
106
|
+
const { api: a, useStore: r } = f(), i = k(null), t = j({
|
|
96
107
|
initialValues: {
|
|
97
108
|
name: e.title,
|
|
98
109
|
icon: e.data?.icon || ""
|
|
99
110
|
}
|
|
100
|
-
}),
|
|
101
|
-
|
|
111
|
+
}), l = (o) => {
|
|
112
|
+
a.handleEdit({
|
|
102
113
|
id: e.id,
|
|
103
|
-
name:
|
|
104
|
-
icon:
|
|
105
|
-
}),
|
|
106
|
-
},
|
|
107
|
-
|
|
114
|
+
name: o.name ?? "",
|
|
115
|
+
icon: o.icon ?? ""
|
|
116
|
+
}), a.stopEditing();
|
|
117
|
+
}, d = z(() => {
|
|
118
|
+
l(t.getValues());
|
|
108
119
|
});
|
|
109
|
-
|
|
110
|
-
|
|
120
|
+
O(() => {
|
|
121
|
+
i.current && i.current.select();
|
|
111
122
|
}, []);
|
|
112
|
-
const
|
|
113
|
-
() => [
|
|
114
|
-
e.data?.type || ""
|
|
115
|
-
),
|
|
123
|
+
const c = y(
|
|
124
|
+
() => ["SPRINT", "PROJECT"].includes(e.data?.type || ""),
|
|
116
125
|
[e.data?.type]
|
|
117
|
-
);
|
|
118
|
-
return /* @__PURE__ */
|
|
126
|
+
), p = r((o) => o.opened.includes(e.id));
|
|
127
|
+
return /* @__PURE__ */ n(
|
|
119
128
|
"form",
|
|
120
129
|
{
|
|
121
|
-
onSubmit:
|
|
122
|
-
className:
|
|
123
|
-
ref:
|
|
130
|
+
onSubmit: t.onSubmit(l),
|
|
131
|
+
className: s.item,
|
|
132
|
+
ref: d,
|
|
124
133
|
"data-editing": !0,
|
|
125
|
-
children: /* @__PURE__ */
|
|
126
|
-
/* @__PURE__ */
|
|
134
|
+
children: /* @__PURE__ */ u(h, { gap: 4, h: "100%", flex: 1, miw: 0, justify: "space-between", children: [
|
|
135
|
+
/* @__PURE__ */ n("div", { className: s.icon, children: /* @__PURE__ */ n(
|
|
127
136
|
F,
|
|
128
137
|
{
|
|
129
138
|
showIcons: !0,
|
|
@@ -132,57 +141,62 @@ const ne = m(({ item: e, ignoreDepth: o }) => {
|
|
|
132
141
|
popoverProps: {
|
|
133
142
|
floatingStrategy: "fixed"
|
|
134
143
|
},
|
|
135
|
-
value:
|
|
136
|
-
onChange: (
|
|
137
|
-
children: /* @__PURE__ */
|
|
144
|
+
value: t.values.icon,
|
|
145
|
+
onChange: (o) => t.setFieldValue("icon", o),
|
|
146
|
+
children: /* @__PURE__ */ n(L.ActionIcon, { disabled: c, children: /* @__PURE__ */ n(
|
|
147
|
+
x,
|
|
148
|
+
{
|
|
149
|
+
item: { ...e.data, isOpen: p, icon: t.values.icon }
|
|
150
|
+
}
|
|
151
|
+
) })
|
|
138
152
|
}
|
|
139
153
|
) }),
|
|
140
|
-
/* @__PURE__ */
|
|
154
|
+
/* @__PURE__ */ n(P, { children: /* @__PURE__ */ n(
|
|
141
155
|
"input",
|
|
142
156
|
{
|
|
143
|
-
ref:
|
|
144
|
-
className:
|
|
145
|
-
...
|
|
157
|
+
ref: i,
|
|
158
|
+
className: s.editInput,
|
|
159
|
+
...t.getInputProps("name"),
|
|
146
160
|
maxLength: 255,
|
|
147
|
-
onFocus: (
|
|
161
|
+
onFocus: (o) => o.target.select()
|
|
148
162
|
}
|
|
149
163
|
) })
|
|
150
164
|
] })
|
|
151
165
|
}
|
|
152
166
|
);
|
|
153
|
-
}),
|
|
154
|
-
({ depth: e = 0, children:
|
|
167
|
+
}), S = m(
|
|
168
|
+
({ depth: e = 0, children: a }) => /* @__PURE__ */ u(
|
|
155
169
|
"div",
|
|
156
170
|
{
|
|
157
|
-
className:
|
|
171
|
+
className: s.itemContainer,
|
|
158
172
|
style: {
|
|
159
173
|
"--depth": e
|
|
160
174
|
},
|
|
161
175
|
children: [
|
|
162
|
-
Array.from({ length: e }).map((r,
|
|
163
|
-
|
|
176
|
+
Array.from({ length: e }).map((r, i) => /* @__PURE__ */ n("div", { className: s.depthBox }, i)),
|
|
177
|
+
a
|
|
164
178
|
]
|
|
165
179
|
}
|
|
166
180
|
)
|
|
167
|
-
),
|
|
181
|
+
), se = ({
|
|
168
182
|
depth: e,
|
|
169
|
-
itemId:
|
|
183
|
+
itemId: a,
|
|
170
184
|
currentChildrenCount: r
|
|
171
185
|
}) => {
|
|
172
|
-
const { t:
|
|
173
|
-
return /* @__PURE__ */
|
|
186
|
+
const { t: i } = g("appContainer"), { api: t } = f(), { isLoading: l, onSubmit: d } = A();
|
|
187
|
+
return /* @__PURE__ */ n(S, { depth: e, children: /* @__PURE__ */ n(
|
|
174
188
|
"div",
|
|
175
189
|
{
|
|
176
|
-
className:
|
|
177
|
-
onClick: () =>
|
|
178
|
-
children: /* @__PURE__ */
|
|
179
|
-
/* @__PURE__ */
|
|
180
|
-
/* @__PURE__ */
|
|
190
|
+
className: s.item,
|
|
191
|
+
onClick: () => d(() => t.loadMore({ itemId: a, currentChildrenCount: r })),
|
|
192
|
+
children: /* @__PURE__ */ n(h, { gap: 4, h: "100%", flex: 1, miw: 0, justify: "space-between", children: /* @__PURE__ */ u(h, { gap: 4, miw: 0, flex: 1, c: "gray", children: [
|
|
193
|
+
/* @__PURE__ */ n("div", { className: s.icon, children: l ? /* @__PURE__ */ n(N, { size: 16 }) : /* @__PURE__ */ n(C, { icon: I, size: 16 }) }),
|
|
194
|
+
/* @__PURE__ */ n(w, { flex: 1, truncate: !0, size: "sm", fw: 500, miw: 0, children: i("loadMore") })
|
|
181
195
|
] }) })
|
|
182
196
|
}
|
|
183
197
|
) });
|
|
184
198
|
};
|
|
185
199
|
export {
|
|
186
|
-
|
|
187
|
-
|
|
200
|
+
re as NavMenuItem,
|
|
201
|
+
se as NavMenuLoadMore
|
|
188
202
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"store.d.ts","sourceRoot":"","sources":["../../../src/components/NavMenu/store.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAA6B,MAAM,OAAO,CAAC;AAGrE,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAU,MAAM,SAAS,CAAC;AAE1D,OAAO,EAAE,oBAAoB,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAElE,MAAM,MAAM,eAAe,GAAG;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG;IACzB,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,GAAG,SAAS,CAAC,CAAC;IAC7C,KAAK,EAAE;QACL,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,eAAe,KAAK,IAAI,CAAC;QAC1C,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,oBAAoB,KAAK,IAAI,CAAC;QAChD,UAAU,CAAC,EAAE,iBAAiB,CAAC;KAChC,CAAC;CACH,CAAC;AA0DF,eAAO,MAAM,kBAAkB;;;;2BAvDH,MAAM;;4BAQL,eAAe;6BAQd,oBAAoB;yBAaxB,MAAM,EAAE;yBAIR,MAAM,WAAW,OAAO,GAAG,SAAS;6BAVhC,MAAM;;CA2CnC,CAAC;AAMF,eAAO,MAAM,eAAe,GAAI,sBAG7B,iBAAiB,CAAC;IAAE,KAAK,EAAE,UAAU,CAAC,OAAO,kBAAkB,CAAC,CAAA;CAAE,CAAC,4CAErE,CAAC;AAEF,eAAO,MAAM,eAAe;;;;2BA/EA,MAAM;;4BAQL,eAAe;6BAQd,oBAAoB;yBAaxB,MAAM,EAAE;yBAIR,MAAM,WAAW,OAAO,GAAG,SAAS;6BAVhC,MAAM;;CAwDoB,CAAC"}
|
|
1
|
+
{"version":3,"file":"store.d.ts","sourceRoot":"","sources":["../../../src/components/NavMenu/store.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAA6B,MAAM,OAAO,CAAC;AAGrE,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAU,MAAM,SAAS,CAAC;AAE1D,OAAO,EAAE,oBAAoB,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAElE,MAAM,MAAM,eAAe,GAAG;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG;IACzB,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,GAAG,SAAS,CAAC,CAAC;IAC7C,KAAK,EAAE;QACL,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,eAAe,KAAK,IAAI,CAAC;QAC1C,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,oBAAoB,KAAK,IAAI,CAAC;QAChD,OAAO,CAAC,EAAE,CAAC,IAAI,EAAE,oBAAoB,KAAK,IAAI,CAAC;QAC/C,UAAU,CAAC,EAAE,iBAAiB,CAAC;KAChC,CAAC;CACH,CAAC;AA0DF,eAAO,MAAM,kBAAkB;;;;2BAvDH,MAAM;;4BAQL,eAAe;6BAQd,oBAAoB;yBAaxB,MAAM,EAAE;yBAIR,MAAM,WAAW,OAAO,GAAG,SAAS;6BAVhC,MAAM;;CA2CnC,CAAC;AAMF,eAAO,MAAM,eAAe,GAAI,sBAG7B,iBAAiB,CAAC;IAAE,KAAK,EAAE,UAAU,CAAC,OAAO,kBAAkB,CAAC,CAAA;CAAE,CAAC,4CAErE,CAAC;AAEF,eAAO,MAAM,eAAe;;;;2BA/EA,MAAM;;4BAQL,eAAe;6BAQd,oBAAoB;yBAaxB,MAAM,EAAE;yBAIR,MAAM,WAAW,OAAO,GAAG,SAAS;6BAVhC,MAAM;;CAwDoB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/NavMenu/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElC,MAAM,MAAM,eAAe,GAAG;IAC5B,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/NavMenu/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElC,MAAM,MAAM,eAAe,GAAG;IAC5B,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,UAAU,CAAC,EAAE,OAAO,CAAC;CAEtB,CAAC;AAEF,MAAM,MAAM,cAAc,CAAC,IAAI,GAAG,eAAe,IAAI;IACnD,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,YAAY,CAAC,EAAE,SAAS,CAAC;IACzB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,EAAE,cAAc,CAAC,IAAI,CAAC,EAAE,CAAC;IACjC,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,IAAI,CAAC;IACZ,2BAA2B,CAAC,EAAE,OAAO,CAAC;CACvC,CAAC;AAEF,MAAM,MAAM,oBAAoB,CAAC,IAAI,GAAG,eAAe,IACrD,cAAc,CAAC,IAAI,CAAC,GAAG;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,OAAO,CAAC;IAChB,mBAAmB,EAAE,MAAM,CAAC;IAC5B,mBAAmB,EAAE,MAAM,CAAC;CAC7B,CAAC;AAEJ,MAAM,MAAM,kBAAkB,CAAC,IAAI,GAAG,eAAe,IAAI,CAAC,CAAC,EAAE;IAC3D,IAAI,EAAE,oBAAoB,CAAC,IAAI,CAAC,CAAC;IACjC,IAAI,EAAE,oBAAoB,CAAC,IAAI,CAAC,CAAC;IACjC,QAAQ,EAAE,0BAA0B,CAAC;CACtC,KAAK,IAAI,CAAC;AAEX,MAAM,MAAM,iBAAiB,GAAG,CAAC,OAAO,EAAE;IACxC,MAAM,EAAE,MAAM,CAAC;IACf,oBAAoB,EAAE,MAAM,CAAC;CAC9B,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;AAEpB,MAAM,MAAM,0BAA0B,GAAG,QAAQ,GAAG,OAAO,GAAG,QAAQ,CAAC"}
|
|
@@ -1,163 +1,174 @@
|
|
|
1
1
|
import { FC, ReactNode } from 'react';
|
|
2
|
+
import React from 'react';
|
|
2
3
|
import { ButtonProps, PolymorphicComponentProps, StackProps, TextProps, TitleProps } from '@mantine/core';
|
|
3
4
|
export declare const illustrationMap: {
|
|
4
|
-
empty:
|
|
5
|
+
empty: React.FunctionComponent<React.SVGProps<SVGSVGElement> & {
|
|
5
6
|
title?: string;
|
|
6
7
|
titleId?: string;
|
|
7
8
|
desc?: string;
|
|
8
9
|
descId?: string;
|
|
9
10
|
}>;
|
|
10
|
-
noAccess:
|
|
11
|
+
noAccess: React.FunctionComponent<React.SVGProps<SVGSVGElement> & {
|
|
11
12
|
title?: string;
|
|
12
13
|
titleId?: string;
|
|
13
14
|
desc?: string;
|
|
14
15
|
descId?: string;
|
|
15
16
|
}>;
|
|
16
|
-
trash:
|
|
17
|
+
trash: React.FunctionComponent<React.SVGProps<SVGSVGElement> & {
|
|
17
18
|
title?: string;
|
|
18
19
|
titleId?: string;
|
|
19
20
|
desc?: string;
|
|
20
21
|
descId?: string;
|
|
21
22
|
}>;
|
|
22
|
-
noImage:
|
|
23
|
+
noImage: React.FunctionComponent<React.SVGProps<SVGSVGElement> & {
|
|
23
24
|
title?: string;
|
|
24
25
|
titleId?: string;
|
|
25
26
|
desc?: string;
|
|
26
27
|
descId?: string;
|
|
27
28
|
}>;
|
|
28
|
-
noResults:
|
|
29
|
+
noResults: React.FunctionComponent<React.SVGProps<SVGSVGElement> & {
|
|
29
30
|
title?: string;
|
|
30
31
|
titleId?: string;
|
|
31
32
|
desc?: string;
|
|
32
33
|
descId?: string;
|
|
33
34
|
}>;
|
|
34
|
-
noComments:
|
|
35
|
+
noComments: React.FunctionComponent<React.SVGProps<SVGSVGElement> & {
|
|
35
36
|
title?: string;
|
|
36
37
|
titleId?: string;
|
|
37
38
|
desc?: string;
|
|
38
39
|
descId?: string;
|
|
39
40
|
}>;
|
|
40
|
-
noData:
|
|
41
|
+
noData: React.FunctionComponent<React.SVGProps<SVGSVGElement> & {
|
|
41
42
|
title?: string;
|
|
42
43
|
titleId?: string;
|
|
43
44
|
desc?: string;
|
|
44
45
|
descId?: string;
|
|
45
46
|
}>;
|
|
46
|
-
emptyFolder:
|
|
47
|
+
emptyFolder: React.FunctionComponent<React.SVGProps<SVGSVGElement> & {
|
|
47
48
|
title?: string;
|
|
48
49
|
titleId?: string;
|
|
49
50
|
desc?: string;
|
|
50
51
|
descId?: string;
|
|
51
52
|
}>;
|
|
52
|
-
noTaskResults:
|
|
53
|
+
noTaskResults: React.FunctionComponent<React.SVGProps<SVGSVGElement> & {
|
|
53
54
|
title?: string;
|
|
54
55
|
titleId?: string;
|
|
55
56
|
desc?: string;
|
|
56
57
|
descId?: string;
|
|
57
58
|
}>;
|
|
58
|
-
noSearchResults:
|
|
59
|
+
noSearchResults: React.FunctionComponent<React.SVGProps<SVGSVGElement> & {
|
|
59
60
|
title?: string;
|
|
60
61
|
titleId?: string;
|
|
61
62
|
desc?: string;
|
|
62
63
|
descId?: string;
|
|
63
64
|
}>;
|
|
64
|
-
noMembers:
|
|
65
|
+
noMembers: React.FunctionComponent<React.SVGProps<SVGSVGElement> & {
|
|
65
66
|
title?: string;
|
|
66
67
|
titleId?: string;
|
|
67
68
|
desc?: string;
|
|
68
69
|
descId?: string;
|
|
69
70
|
}>;
|
|
70
|
-
noGroups:
|
|
71
|
+
noGroups: React.FunctionComponent<React.SVGProps<SVGSVGElement> & {
|
|
71
72
|
title?: string;
|
|
72
73
|
titleId?: string;
|
|
73
74
|
desc?: string;
|
|
74
75
|
descId?: string;
|
|
75
76
|
}>;
|
|
76
|
-
noNotifications:
|
|
77
|
+
noNotifications: React.FunctionComponent<React.SVGProps<SVGSVGElement> & {
|
|
77
78
|
title?: string;
|
|
78
79
|
titleId?: string;
|
|
79
80
|
desc?: string;
|
|
80
81
|
descId?: string;
|
|
81
82
|
}>;
|
|
82
|
-
noWorkspaces:
|
|
83
|
+
noWorkspaces: React.FunctionComponent<React.SVGProps<SVGSVGElement> & {
|
|
83
84
|
title?: string;
|
|
84
85
|
titleId?: string;
|
|
85
86
|
desc?: string;
|
|
86
87
|
descId?: string;
|
|
87
88
|
}>;
|
|
88
|
-
paymentSuccess:
|
|
89
|
+
paymentSuccess: React.FunctionComponent<React.SVGProps<SVGSVGElement> & {
|
|
89
90
|
title?: string;
|
|
90
91
|
titleId?: string;
|
|
91
92
|
desc?: string;
|
|
92
93
|
descId?: string;
|
|
93
94
|
}>;
|
|
94
|
-
notSuccessMan:
|
|
95
|
+
notSuccessMan: React.FunctionComponent<React.SVGProps<SVGSVGElement> & {
|
|
95
96
|
title?: string;
|
|
96
97
|
titleId?: string;
|
|
97
98
|
desc?: string;
|
|
98
99
|
descId?: string;
|
|
99
100
|
}>;
|
|
100
|
-
noAnswers:
|
|
101
|
+
noAnswers: React.FunctionComponent<React.SVGProps<SVGSVGElement> & {
|
|
101
102
|
title?: string;
|
|
102
103
|
titleId?: string;
|
|
103
104
|
desc?: string;
|
|
104
105
|
descId?: string;
|
|
105
106
|
}>;
|
|
106
|
-
alertMan:
|
|
107
|
+
alertMan: React.FunctionComponent<React.SVGProps<SVGSVGElement> & {
|
|
107
108
|
title?: string;
|
|
108
109
|
titleId?: string;
|
|
109
110
|
desc?: string;
|
|
110
111
|
descId?: string;
|
|
111
112
|
}>;
|
|
112
|
-
noFlows:
|
|
113
|
+
noFlows: React.FunctionComponent<React.SVGProps<SVGSVGElement> & {
|
|
113
114
|
title?: string;
|
|
114
115
|
titleId?: string;
|
|
115
116
|
desc?: string;
|
|
116
117
|
descId?: string;
|
|
117
118
|
}>;
|
|
118
|
-
noTasks:
|
|
119
|
+
noTasks: React.FunctionComponent<React.SVGProps<SVGSVGElement> & {
|
|
119
120
|
title?: string;
|
|
120
121
|
titleId?: string;
|
|
121
122
|
desc?: string;
|
|
122
123
|
descId?: string;
|
|
123
124
|
}>;
|
|
124
|
-
noCloud:
|
|
125
|
+
noCloud: React.FunctionComponent<React.SVGProps<SVGSVGElement> & {
|
|
125
126
|
title?: string;
|
|
126
127
|
titleId?: string;
|
|
127
128
|
desc?: string;
|
|
128
129
|
descId?: string;
|
|
129
130
|
}>;
|
|
130
|
-
noForms:
|
|
131
|
+
noForms: React.FunctionComponent<React.SVGProps<SVGSVGElement> & {
|
|
131
132
|
title?: string;
|
|
132
133
|
titleId?: string;
|
|
133
134
|
desc?: string;
|
|
134
135
|
descId?: string;
|
|
135
136
|
}>;
|
|
136
|
-
|
|
137
|
+
users: React.FunctionComponent<React.SVGProps<SVGSVGElement> & {
|
|
137
138
|
title?: string;
|
|
138
139
|
titleId?: string;
|
|
139
140
|
desc?: string;
|
|
140
141
|
descId?: string;
|
|
141
142
|
}>;
|
|
142
|
-
'
|
|
143
|
+
'404': React.FunctionComponent<React.SVGProps<SVGSVGElement> & {
|
|
144
|
+
title?: string;
|
|
145
|
+
titleId?: string;
|
|
146
|
+
desc?: string;
|
|
147
|
+
descId?: string;
|
|
148
|
+
}>;
|
|
149
|
+
'500': React.FunctionComponent<React.SVGProps<SVGSVGElement> & {
|
|
143
150
|
title?: string;
|
|
144
151
|
titleId?: string;
|
|
145
152
|
desc?: string;
|
|
146
153
|
descId?: string;
|
|
147
154
|
}>;
|
|
148
155
|
};
|
|
149
|
-
export type IllustrationType = keyof typeof illustrationMap | string;
|
|
156
|
+
export type IllustrationType = keyof typeof illustrationMap | string | ReactNode;
|
|
157
|
+
interface NoDataButtonProps extends PolymorphicComponentProps<'button', ButtonProps> {
|
|
158
|
+
hidden?: boolean;
|
|
159
|
+
}
|
|
150
160
|
export type NoDataProps = {
|
|
151
161
|
title?: ReactNode;
|
|
152
162
|
titleProps?: TitleProps;
|
|
153
163
|
description?: ReactNode;
|
|
154
164
|
descriptionProps?: TextProps;
|
|
155
|
-
buttons?:
|
|
165
|
+
buttons?: NoDataButtonProps[];
|
|
156
166
|
illustration?: IllustrationType;
|
|
157
167
|
size?: number;
|
|
158
168
|
width?: number | string;
|
|
159
169
|
height?: number | string;
|
|
160
|
-
|
|
170
|
+
subStackProps?: StackProps;
|
|
161
171
|
} & StackProps;
|
|
162
172
|
export declare const NoData: FC<NoDataProps>;
|
|
173
|
+
export {};
|
|
163
174
|
//# sourceMappingURL=NoData.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NoData.d.ts","sourceRoot":"","sources":["../../../src/components/NoData/NoData.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"NoData.d.ts","sourceRoot":"","sources":["../../../src/components/NoData/NoData.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACtC,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAEL,WAAW,EAGX,yBAAyB,EAEzB,UAAU,EAEV,SAAS,EAET,UAAU,EACX,MAAM,eAAe,CAAC;AAiCvB,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0B3B,CAAC;AAEF,MAAM,MAAM,gBAAgB,GACxB,MAAM,OAAO,eAAe,GAC5B,MAAM,GACN,SAAS,CAAC;AAEd,UAAU,iBACR,SAAQ,yBAAyB,CAAC,QAAQ,EAAE,WAAW,CAAC;IACxD,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAED,MAAM,MAAM,WAAW,GAAG;IACxB,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,gBAAgB,CAAC,EAAE,SAAS,CAAC;IAC7B,OAAO,CAAC,EAAE,iBAAiB,EAAE,CAAC;IAC9B,YAAY,CAAC,EAAE,gBAAgB,CAAC;IAChC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACzB,aAAa,CAAC,EAAE,UAAU,CAAC;CAC5B,GAAG,UAAU,CAAC;AAEf,eAAO,MAAM,MAAM,EAAE,EAAE,CAAC,WAAW,CA0ElC,CAAC"}
|