@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,7 +1,7 @@
|
|
|
1
1
|
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import a from "
|
|
2
|
+
import { Button as n } from "@mantine/core";
|
|
3
|
+
import p from "clsx";
|
|
4
|
+
import { DEFAULT_FONT_FAMILY as a } from "../../constants.js";
|
|
5
5
|
import { Logotype as l } from "../Logotype.js";
|
|
6
6
|
import f from "./Copyright.module.css.js";
|
|
7
7
|
const F = ({
|
|
@@ -11,7 +11,7 @@ const F = ({
|
|
|
11
11
|
size: i = "md",
|
|
12
12
|
...m
|
|
13
13
|
}) => /* @__PURE__ */ r(
|
|
14
|
-
|
|
14
|
+
n,
|
|
15
15
|
{
|
|
16
16
|
component: "a",
|
|
17
17
|
href: "https://layers.md",
|
|
@@ -21,8 +21,8 @@ const F = ({
|
|
|
21
21
|
variant: "filled",
|
|
22
22
|
size: i,
|
|
23
23
|
color: o,
|
|
24
|
-
className:
|
|
25
|
-
style: { fontFamily:
|
|
24
|
+
className: p(f.brandingWrapper, e),
|
|
25
|
+
style: { fontFamily: a },
|
|
26
26
|
...m,
|
|
27
27
|
children: t
|
|
28
28
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EmojiPanel.d.ts","sourceRoot":"","sources":["../../../src/components/EmojiPicker/EmojiPanel.tsx"],"names":[],"mappings":"AAyCA,OAAO,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"EmojiPanel.d.ts","sourceRoot":"","sources":["../../../src/components/EmojiPicker/EmojiPanel.tsx"],"names":[],"mappings":"AAyCA,OAAO,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAsBjD,eAAO,MAAM,UAAU,GAAI,6DAMxB,IAAI,CAAC,gBAAgB,EAAE,SAAS,GAAG,OAAO,GAAG,UAAU,GAAG,aAAa,CAAC,GAAG;IAC5E,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,aAAa,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;CACvC,4CAiTA,CAAC"}
|
|
@@ -11,8 +11,9 @@ import { pickRandomEmoji as fe } from "../../helpers/pickRandomEmoji.js";
|
|
|
11
11
|
import { NoData as ue } from "../NoData/NoData.js";
|
|
12
12
|
import { IconEntity as de } from "../ProjectIcon/ProjectIcon.js";
|
|
13
13
|
import { frequentEmoji as me } from "./constants.js";
|
|
14
|
+
import { getEmojis as pe } from "./utils.js";
|
|
14
15
|
import T from "./EmojiPicker.module.css.js";
|
|
15
|
-
const
|
|
16
|
+
const he = [
|
|
16
17
|
{ i: "frequent", icon: /* @__PURE__ */ t(c, { size: 20, icon: W }) },
|
|
17
18
|
{ i: "people", icon: /* @__PURE__ */ t(c, { size: 20, icon: X }) },
|
|
18
19
|
{
|
|
@@ -25,25 +26,25 @@ const pe = [
|
|
|
25
26
|
{ i: "objects", icon: /* @__PURE__ */ t(c, { size: 20, icon: te }) },
|
|
26
27
|
{ i: "symbols", icon: /* @__PURE__ */ t(c, { size: 20, icon: oe }) },
|
|
27
28
|
{ i: "flags", icon: /* @__PURE__ */ t(c, { size: 20, icon: re }) }
|
|
28
|
-
],
|
|
29
|
+
], Re = ({
|
|
29
30
|
locales: m,
|
|
30
31
|
onChange: C,
|
|
31
32
|
onClose: M,
|
|
32
33
|
setRandomIcon: P,
|
|
33
34
|
querySearch: p
|
|
34
35
|
}) => {
|
|
35
|
-
const [b, k] = u("frequent"), I = d("frequent"), h = d({}), z = d(null), [w, S] = u(""), [Q, O] = u([]), [a, B] = u(null), [
|
|
36
|
+
const [b, k] = u("frequent"), I = d("frequent"), h = d({}), z = d(null), [w, S] = u(""), [Q, O] = u([]), [a, B] = u(null), [E, j] = u([]), { t: G } = L(), g = d(!1), l = d(null);
|
|
36
37
|
R(() => {
|
|
37
38
|
if (typeof p == "string") {
|
|
38
39
|
const e = p.slice(1);
|
|
39
40
|
if (S(e), a) {
|
|
40
41
|
const o = a.search(e);
|
|
41
|
-
|
|
42
|
+
j(o.map((r) => r.item.e));
|
|
42
43
|
}
|
|
43
44
|
}
|
|
44
45
|
}, [p, a]), R(() => {
|
|
45
46
|
(async () => {
|
|
46
|
-
const o =
|
|
47
|
+
const o = await pe(), r = o.flatMap(
|
|
47
48
|
(i) => i.e.map((n) => ({
|
|
48
49
|
e: n.e,
|
|
49
50
|
n: n.n,
|
|
@@ -75,11 +76,11 @@ const pe = [
|
|
|
75
76
|
const o = e.currentTarget.value;
|
|
76
77
|
if (S(o), a) {
|
|
77
78
|
const r = a.search(o);
|
|
78
|
-
|
|
79
|
+
j(r.map((s) => s.item.e));
|
|
79
80
|
}
|
|
80
81
|
},
|
|
81
82
|
[a]
|
|
82
|
-
),
|
|
83
|
+
), D = se((e) => {
|
|
83
84
|
const o = e.currentTarget.getAttribute("data-icon");
|
|
84
85
|
o && (C?.(
|
|
85
86
|
de.stringify({
|
|
@@ -174,7 +175,7 @@ const pe = [
|
|
|
174
175
|
},
|
|
175
176
|
ref: z,
|
|
176
177
|
onScroll: $,
|
|
177
|
-
children: w ? /* @__PURE__ */ y(v, { flex: 1,
|
|
178
|
+
children: w ? /* @__PURE__ */ y(v, { flex: 1, align: "stretch", children: [
|
|
178
179
|
!J && /* @__PURE__ */ t(
|
|
179
180
|
F,
|
|
180
181
|
{
|
|
@@ -186,19 +187,18 @@ const pe = [
|
|
|
186
187
|
children: /* @__PURE__ */ t(q, { fz: "sm", c: "dimmed", children: m?.searchResults })
|
|
187
188
|
}
|
|
188
189
|
),
|
|
189
|
-
|
|
190
|
+
E.length ? /* @__PURE__ */ t(N, { cols: 10, spacing: 0, children: E.map((e) => /* @__PURE__ */ t(
|
|
190
191
|
"div",
|
|
191
192
|
{
|
|
192
193
|
className: T.item,
|
|
193
194
|
"data-icon": e,
|
|
194
|
-
onClick:
|
|
195
|
+
onClick: D,
|
|
195
196
|
children: e
|
|
196
197
|
},
|
|
197
198
|
e
|
|
198
199
|
)) }) : /* @__PURE__ */ t(x, { flex: 1, justify: "center", align: "stretch", children: /* @__PURE__ */ t(
|
|
199
200
|
ue,
|
|
200
201
|
{
|
|
201
|
-
showDots: !1,
|
|
202
202
|
size: 100,
|
|
203
203
|
description: m?.searchNoResults,
|
|
204
204
|
descriptionProps: {
|
|
@@ -230,7 +230,7 @@ const pe = [
|
|
|
230
230
|
{
|
|
231
231
|
className: T.item,
|
|
232
232
|
"data-icon": o.e,
|
|
233
|
-
onClick:
|
|
233
|
+
onClick: D,
|
|
234
234
|
children: o.e
|
|
235
235
|
},
|
|
236
236
|
o.e
|
|
@@ -250,7 +250,7 @@ const pe = [
|
|
|
250
250
|
justify: "space-between",
|
|
251
251
|
h: "56px",
|
|
252
252
|
px: 8,
|
|
253
|
-
children:
|
|
253
|
+
children: he.map((e) => /* @__PURE__ */ t(
|
|
254
254
|
A,
|
|
255
255
|
{
|
|
256
256
|
variant: b === e.i ? "light" : "subtle",
|
|
@@ -268,5 +268,5 @@ const pe = [
|
|
|
268
268
|
] });
|
|
269
269
|
};
|
|
270
270
|
export {
|
|
271
|
-
|
|
271
|
+
Re as EmojiPanel
|
|
272
272
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EmojiPicker.d.ts","sourceRoot":"","sources":["../../../src/components/EmojiPicker/EmojiPicker.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAgC,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"EmojiPicker.d.ts","sourceRoot":"","sources":["../../../src/components/EmojiPicker/EmojiPicker.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAgC,MAAM,OAAO,CAAC;AAGxE,OAAO,EAIL,gBAAgB,EAEhB,YAAY,EAEb,MAAM,eAAe,CAAC;AAQvB,MAAM,MAAM,gBAAgB,GAAG;IAC7B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,QAAQ,CAAC,EAAE,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IAC/B,QAAQ,CAAC,EAAE,gBAAgB,CAAC;IAC5B,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,OAAO,CAAC,EAAE,kBAAkB,CAAC;IAC7B,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,gBAAgB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACjC,kIAAkI;IAClI,QAAQ,CAAC,EAAE,OAAO,GAAG,UAAU,CAAC;IAChC,2GAA2G;IAC3G,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,gHAAgH;IAChH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG;IAC/B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,aAAa,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACxC,CAAC;AAEF,eAAO,MAAM,WAAW,GAAI,yNAkBzB,iBAAiB,CAAC,gBAAgB,CAAC,4CA+MrC,CAAC"}
|
|
@@ -1,32 +1,31 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { useState as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
popoverProps: y,
|
|
1
|
+
import { jsxs as j, jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { useState as d, useMemo as Q, useEffect as v } from "react";
|
|
3
|
+
import { useTranslation as $ } from "react-i18next";
|
|
4
|
+
import { Popover as k, Center as A, Tabs as t, Flex as T, Button as E } from "@mantine/core";
|
|
5
|
+
import { IconEntity as G } from "../ProjectIcon/ProjectIcon.js";
|
|
6
|
+
import { EmojiPanel as J } from "./EmojiPanel.js";
|
|
7
|
+
import { IconsPanel as K } from "./IconsPanel.js";
|
|
8
|
+
import p from "./EmojiPicker.module.css.js";
|
|
9
|
+
const _ = ({
|
|
10
|
+
project: C,
|
|
11
|
+
value: i,
|
|
12
|
+
querySearch: a,
|
|
13
|
+
children: N,
|
|
14
|
+
onChange: f,
|
|
15
|
+
position: R = "bottom-start",
|
|
16
|
+
popoverProps: b,
|
|
18
17
|
showIcons: u,
|
|
19
|
-
showColors:
|
|
20
|
-
defaultActiveTab:
|
|
21
|
-
showEmojis:
|
|
22
|
-
withinPortal:
|
|
18
|
+
showColors: D,
|
|
19
|
+
defaultActiveTab: I = null,
|
|
20
|
+
showEmojis: s = !0,
|
|
21
|
+
withinPortal: w = !1,
|
|
23
22
|
locales: h,
|
|
24
23
|
openWhen: g = "click",
|
|
25
24
|
triggerRegex: P = /(^|\s):([^\s:]{1,})$/,
|
|
26
|
-
typingSeq:
|
|
27
|
-
showRemoveButton:
|
|
25
|
+
typingSeq: c,
|
|
26
|
+
showRemoveButton: L = !0
|
|
28
27
|
}) => {
|
|
29
|
-
const { t: e } =
|
|
28
|
+
const { t: e } = $("ui"), [n, r] = d(!1), [M, x] = d(I), [O, z] = d(i || null), [y, B] = d(null), l = Q(() => ({
|
|
30
29
|
emojis: e("emojis"),
|
|
31
30
|
remove: e("remove"),
|
|
32
31
|
search: e("search"),
|
|
@@ -48,30 +47,30 @@ const re = ({
|
|
|
48
47
|
},
|
|
49
48
|
...h
|
|
50
49
|
}), [e, h]);
|
|
51
|
-
|
|
52
|
-
const
|
|
53
|
-
!
|
|
54
|
-
}, [
|
|
55
|
-
if (g !== "realtime" || typeof
|
|
56
|
-
|
|
57
|
-
const
|
|
58
|
-
|
|
50
|
+
v(() => {
|
|
51
|
+
const m = u && G.parse(i)?.icon ? "icons" : s ? "emojis" : null;
|
|
52
|
+
!n && m && x(m);
|
|
53
|
+
}, [n, s, u, i]), v(() => {
|
|
54
|
+
if (g !== "realtime" || typeof c != "number" || y === c) return;
|
|
55
|
+
B(c);
|
|
56
|
+
const m = a ?? "", H = !!s && P.test(m);
|
|
57
|
+
r(H);
|
|
59
58
|
}, [
|
|
60
59
|
g,
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
60
|
+
c,
|
|
61
|
+
y,
|
|
62
|
+
a,
|
|
64
63
|
P,
|
|
65
|
-
|
|
64
|
+
s
|
|
66
65
|
]);
|
|
67
|
-
const
|
|
68
|
-
return /* @__PURE__ */
|
|
66
|
+
const F = typeof a == "string";
|
|
67
|
+
return /* @__PURE__ */ j(
|
|
69
68
|
k,
|
|
70
69
|
{
|
|
71
|
-
withinPortal:
|
|
72
|
-
opened:
|
|
73
|
-
onChange:
|
|
74
|
-
position:
|
|
70
|
+
withinPortal: w,
|
|
71
|
+
opened: n,
|
|
72
|
+
onChange: r,
|
|
73
|
+
position: R,
|
|
75
74
|
radius: "var(--mantine-spacing-sm)",
|
|
76
75
|
styles: {
|
|
77
76
|
dropdown: {
|
|
@@ -84,31 +83,31 @@ const re = ({
|
|
|
84
83
|
}
|
|
85
84
|
},
|
|
86
85
|
middlewares: {
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
86
|
+
flip: {
|
|
87
|
+
fallbackPlacements: [
|
|
88
|
+
"right-start",
|
|
89
|
+
"right-end",
|
|
90
|
+
"left-start",
|
|
91
|
+
"left-end",
|
|
92
|
+
"top-start",
|
|
93
|
+
"top-end"
|
|
94
|
+
]
|
|
96
95
|
}
|
|
97
96
|
},
|
|
98
|
-
...
|
|
97
|
+
...b || {},
|
|
99
98
|
children: [
|
|
100
99
|
/* @__PURE__ */ o(k.Target, { children: /* @__PURE__ */ o(
|
|
101
|
-
|
|
100
|
+
A,
|
|
102
101
|
{
|
|
103
|
-
onClick: g === "click" && !
|
|
104
|
-
children:
|
|
102
|
+
onClick: g === "click" && !b?.disabled ? () => r(!n) : void 0,
|
|
103
|
+
children: N ?? O
|
|
105
104
|
}
|
|
106
105
|
) }),
|
|
107
|
-
/* @__PURE__ */ o(k.Dropdown, { w: "380px", h: "404px", children: /* @__PURE__ */
|
|
106
|
+
/* @__PURE__ */ o(k.Dropdown, { w: "380px", h: "404px", children: /* @__PURE__ */ j(
|
|
108
107
|
t,
|
|
109
108
|
{
|
|
110
|
-
value:
|
|
111
|
-
onChange:
|
|
109
|
+
value: M,
|
|
110
|
+
onChange: x,
|
|
112
111
|
keepMounted: !1,
|
|
113
112
|
h: "100%",
|
|
114
113
|
styles: {
|
|
@@ -125,7 +124,7 @@ const re = ({
|
|
|
125
124
|
}
|
|
126
125
|
},
|
|
127
126
|
children: [
|
|
128
|
-
!
|
|
127
|
+
!F && /* @__PURE__ */ j(
|
|
129
128
|
t.List,
|
|
130
129
|
{
|
|
131
130
|
style: {
|
|
@@ -134,78 +133,71 @@ const re = ({
|
|
|
134
133
|
h: 54,
|
|
135
134
|
px: 8,
|
|
136
135
|
children: [
|
|
137
|
-
|
|
136
|
+
s && /* @__PURE__ */ o(
|
|
138
137
|
t.Tab,
|
|
139
138
|
{
|
|
140
|
-
className:
|
|
139
|
+
className: p.originalTab,
|
|
141
140
|
h: "100%",
|
|
142
141
|
p: 0,
|
|
143
142
|
value: "emojis",
|
|
144
|
-
children: /* @__PURE__ */ o(
|
|
143
|
+
children: /* @__PURE__ */ o(T, { className: p.customTab, px: "sm", h: 36, children: l.emojis })
|
|
145
144
|
}
|
|
146
145
|
),
|
|
147
146
|
u && /* @__PURE__ */ o(
|
|
148
147
|
t.Tab,
|
|
149
148
|
{
|
|
150
|
-
className:
|
|
149
|
+
className: p.originalTab,
|
|
151
150
|
h: "100%",
|
|
152
151
|
p: 0,
|
|
153
152
|
value: "icons",
|
|
154
|
-
children: /* @__PURE__ */ o(
|
|
153
|
+
children: /* @__PURE__ */ o(T, { className: p.customTab, px: "sm", h: 36, children: l.icons })
|
|
155
154
|
}
|
|
156
155
|
),
|
|
157
|
-
!!String(
|
|
158
|
-
|
|
156
|
+
!!String(i) && L && /* @__PURE__ */ o(
|
|
157
|
+
E,
|
|
159
158
|
{
|
|
160
159
|
variant: "subtle",
|
|
161
160
|
fz: "sm",
|
|
162
161
|
lh: "sm",
|
|
163
162
|
fw: 500,
|
|
164
163
|
px: 7,
|
|
165
|
-
h:
|
|
164
|
+
h: 36,
|
|
166
165
|
color: "var(--mantine-color-gray-light-color)",
|
|
167
|
-
onClick: () =>
|
|
166
|
+
onClick: () => f?.(""),
|
|
168
167
|
style: { marginLeft: "auto" },
|
|
169
|
-
children:
|
|
168
|
+
children: l.remove
|
|
170
169
|
}
|
|
171
170
|
)
|
|
172
171
|
]
|
|
173
172
|
}
|
|
174
173
|
),
|
|
175
|
-
/* @__PURE__ */ o(
|
|
176
|
-
|
|
174
|
+
/* @__PURE__ */ o(t.Panel, { mah: 470, style: { overflow: "auto" }, value: "emojis", children: /* @__PURE__ */ o(
|
|
175
|
+
J,
|
|
177
176
|
{
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
onChange: d,
|
|
185
|
-
value: s,
|
|
186
|
-
querySearch: l,
|
|
187
|
-
locales: c,
|
|
188
|
-
setRandomIcon: B,
|
|
189
|
-
onClose: () => n(!1)
|
|
190
|
-
}
|
|
191
|
-
)
|
|
177
|
+
onChange: f,
|
|
178
|
+
value: i,
|
|
179
|
+
querySearch: a,
|
|
180
|
+
locales: l,
|
|
181
|
+
setRandomIcon: z,
|
|
182
|
+
onClose: () => r(!1)
|
|
192
183
|
}
|
|
193
|
-
),
|
|
184
|
+
) }),
|
|
194
185
|
/* @__PURE__ */ o(
|
|
195
186
|
t.Panel,
|
|
196
187
|
{
|
|
197
|
-
mah:
|
|
188
|
+
mah: 470,
|
|
189
|
+
h: "100%",
|
|
198
190
|
style: { overflow: "auto" },
|
|
199
191
|
value: "icons",
|
|
200
192
|
children: /* @__PURE__ */ o(
|
|
201
|
-
|
|
193
|
+
K,
|
|
202
194
|
{
|
|
203
|
-
project:
|
|
204
|
-
onChange:
|
|
205
|
-
value:
|
|
206
|
-
locales:
|
|
207
|
-
showColors:
|
|
208
|
-
onClose: () =>
|
|
195
|
+
project: C,
|
|
196
|
+
onChange: f,
|
|
197
|
+
value: i,
|
|
198
|
+
locales: l,
|
|
199
|
+
showColors: D,
|
|
200
|
+
onClose: () => r(!1)
|
|
209
201
|
}
|
|
210
202
|
)
|
|
211
203
|
}
|
|
@@ -218,5 +210,5 @@ const re = ({
|
|
|
218
210
|
);
|
|
219
211
|
};
|
|
220
212
|
export {
|
|
221
|
-
|
|
213
|
+
_ as EmojiPicker
|
|
222
214
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IconsPanel.d.ts","sourceRoot":"","sources":["../../../src/components/EmojiPicker/IconsPanel.tsx"],"names":[],"mappings":"AAoCA,OAAO,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"IconsPanel.d.ts","sourceRoot":"","sources":["../../../src/components/EmojiPicker/IconsPanel.tsx"],"names":[],"mappings":"AAoCA,OAAO,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AA0BjD,eAAO,MAAM,UAAU,oGAQlB,IAAI,CACL,gBAAgB,EAChB,SAAS,GAAG,YAAY,GAAG,OAAO,GAAG,UAAU,GAAG,SAAS,CAC5D,GAAG;IACF,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB,6CAuSF,CAAC"}
|
|
@@ -1,40 +1,39 @@
|
|
|
1
1
|
import { jsxs as m, jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { memo as
|
|
3
|
-
import { useTranslation as
|
|
2
|
+
import { memo as B, useState as x, useEffect as M, useCallback as U, useMemo as V } from "react";
|
|
3
|
+
import { useTranslation as j } from "react-i18next";
|
|
4
4
|
import { Search01Icon as G, ShuffleIcon as Q } from "@hugeicons/core-free-icons";
|
|
5
5
|
import { HugeiconsIcon as L } from "@hugeicons/react";
|
|
6
|
-
import { useMantineTheme as Y, parseThemeColor as _, darken as J, Stack as y, Text as b, Flex as z, FocusTrap as K, TextInput as W, Tooltip as X, ActionIcon as Z, Box as ee, Paper as
|
|
6
|
+
import { useMantineTheme as Y, parseThemeColor as _, darken as J, Stack as y, Text as b, Flex as z, FocusTrap as K, TextInput as W, Tooltip as X, ActionIcon as Z, Box as ee, Paper as E, SimpleGrid as N } from "@mantine/core";
|
|
7
7
|
import { useEvent as oe } from "draggable-ui";
|
|
8
8
|
import { groupBy as te } from "lodash-es";
|
|
9
9
|
import { DEFAULT_VALUES as re } from "../../constants.js";
|
|
10
10
|
import { ColorPicker as ie } from "../ColorPicker/ColorPicker.js";
|
|
11
11
|
import { NoData as ne } from "../NoData/NoData.js";
|
|
12
|
-
import { IconEntity as
|
|
13
|
-
import { customIcons as
|
|
14
|
-
import { getIconsList as F } from "./
|
|
15
|
-
import { getRandomIcon as ce } from "./getRandomIcon.js";
|
|
12
|
+
import { IconEntity as I, IconType as A } from "../ProjectIcon/ProjectIcon.js";
|
|
13
|
+
import { customIcons as D } from "./custom-icons/customIcons.js";
|
|
14
|
+
import { getIconsList as F, getRandomIcon as ce } from "./utils.js";
|
|
16
15
|
import h from "./EmojiPicker.module.css.js";
|
|
17
16
|
async function ae(c, a, l = 500) {
|
|
18
|
-
const u = [],
|
|
19
|
-
for (let r = 0; r <
|
|
20
|
-
const
|
|
21
|
-
u.push(...
|
|
17
|
+
const u = [], p = c.length;
|
|
18
|
+
for (let r = 0; r < p; r += l) {
|
|
19
|
+
const f = c.slice(r, r + l).filter(a);
|
|
20
|
+
u.push(...f), await new Promise((w) => setTimeout(w, 0));
|
|
22
21
|
}
|
|
23
22
|
return u;
|
|
24
23
|
}
|
|
25
|
-
const
|
|
24
|
+
const be = B(
|
|
26
25
|
({
|
|
27
26
|
showColors: c,
|
|
28
27
|
locales: a,
|
|
29
28
|
onChange: l,
|
|
30
29
|
value: u,
|
|
31
|
-
onClose:
|
|
30
|
+
onClose: p,
|
|
32
31
|
project: r
|
|
33
32
|
}) => {
|
|
34
|
-
const C = Y(), [
|
|
33
|
+
const C = Y(), [f, w] = x(""), { t: k } = j("ui"), [R, P] = x(
|
|
35
34
|
[]
|
|
36
35
|
);
|
|
37
|
-
|
|
36
|
+
M(() => {
|
|
38
37
|
(async () => {
|
|
39
38
|
const t = await F(r), s = te(t, "c");
|
|
40
39
|
P(
|
|
@@ -45,31 +44,31 @@ const Ce = q(
|
|
|
45
44
|
);
|
|
46
45
|
})();
|
|
47
46
|
}, [r]);
|
|
48
|
-
const [T, S] = x([]), $ =
|
|
47
|
+
const [T, S] = x([]), $ = U(
|
|
49
48
|
async (o) => {
|
|
50
49
|
const t = o.currentTarget.value;
|
|
51
|
-
|
|
50
|
+
w(t);
|
|
52
51
|
const s = await F(r), v = await ae(
|
|
53
52
|
s,
|
|
54
|
-
(d) => d.t.split(",").some((
|
|
53
|
+
(d) => d.t.split(",").some((q) => t.includes(String(q))) || d.n.includes(t),
|
|
55
54
|
500
|
|
56
55
|
);
|
|
57
56
|
S(v.map((d) => d.n));
|
|
58
57
|
},
|
|
59
58
|
[r]
|
|
60
|
-
), i =
|
|
59
|
+
), i = I.parse(u), g = oe((o) => {
|
|
61
60
|
const t = o.currentTarget.getAttribute("data-icon");
|
|
62
61
|
t && (l?.(
|
|
63
|
-
|
|
62
|
+
I.stringify({
|
|
64
63
|
icon: t.replace("i:", ""),
|
|
65
64
|
color: i?.color,
|
|
66
|
-
type:
|
|
65
|
+
type: i?.type || A.FILLED
|
|
67
66
|
})
|
|
68
|
-
), c ||
|
|
67
|
+
), c || p());
|
|
69
68
|
}), n = _({
|
|
70
69
|
color: i?.color || re.COLORS[0],
|
|
71
70
|
theme: C
|
|
72
|
-
}), H =
|
|
71
|
+
}), H = V(() => n.isThemeColor ? {
|
|
73
72
|
"--icon-color": `var(--mantine-color-${n.color}-filled)`,
|
|
74
73
|
"--icon-color-hover": `var(--mantine-color-${n.color}-filled-hover)`
|
|
75
74
|
} : {
|
|
@@ -77,7 +76,7 @@ const Ce = q(
|
|
|
77
76
|
"--icon-color-hover": J(n.value, 0.2)
|
|
78
77
|
}, [n]), O = async () => {
|
|
79
78
|
const o = await ce(r);
|
|
80
|
-
S([]), l?.(
|
|
79
|
+
S([]), l?.(I.stringify({ icon: o, color: i?.color })), c || p();
|
|
81
80
|
};
|
|
82
81
|
return /* @__PURE__ */ m(y, { w: "100%", gap: "sm", pt: 12, pb: 8, h: "100%", children: [
|
|
83
82
|
c && /* @__PURE__ */ m(y, { gap: 4, px: 8, w: "100%", children: [
|
|
@@ -89,10 +88,10 @@ const Ce = q(
|
|
|
89
88
|
gap: 4,
|
|
90
89
|
value: n.color,
|
|
91
90
|
onChange: (o) => l?.(
|
|
92
|
-
|
|
91
|
+
I.stringify({
|
|
93
92
|
color: o,
|
|
94
93
|
icon: i?.icon,
|
|
95
|
-
type:
|
|
94
|
+
type: i?.type || A.FILLED
|
|
96
95
|
})
|
|
97
96
|
),
|
|
98
97
|
colors: [
|
|
@@ -116,7 +115,7 @@ const Ce = q(
|
|
|
116
115
|
W,
|
|
117
116
|
{
|
|
118
117
|
leftSection: /* @__PURE__ */ e(L, { size: 16, icon: G }),
|
|
119
|
-
value:
|
|
118
|
+
value: f,
|
|
120
119
|
placeholder: `${a?.search}...`,
|
|
121
120
|
"data-autofocus": !0,
|
|
122
121
|
styles: {
|
|
@@ -150,17 +149,18 @@ const Ce = q(
|
|
|
150
149
|
}
|
|
151
150
|
) })
|
|
152
151
|
] }),
|
|
153
|
-
/* @__PURE__ */ e(ee, { pl: 8, style: H, children: /* @__PURE__ */ e(
|
|
152
|
+
/* @__PURE__ */ e(ee, { h: "100%", pl: 8, style: H, children: /* @__PURE__ */ e(
|
|
154
153
|
y,
|
|
155
154
|
{
|
|
156
|
-
|
|
155
|
+
mah: "210px",
|
|
156
|
+
h: "100%",
|
|
157
157
|
style: {
|
|
158
158
|
overflowY: "auto"
|
|
159
159
|
},
|
|
160
160
|
gap: 16,
|
|
161
|
-
children:
|
|
161
|
+
children: f ? /* @__PURE__ */ m(y, { flex: 1, align: "stretch", children: [
|
|
162
162
|
/* @__PURE__ */ e(
|
|
163
|
-
|
|
163
|
+
E,
|
|
164
164
|
{
|
|
165
165
|
py: 6,
|
|
166
166
|
pos: "sticky",
|
|
@@ -170,8 +170,8 @@ const Ce = q(
|
|
|
170
170
|
children: /* @__PURE__ */ e(b, { fz: "xs", fw: 500, lh: "140%", c: "dimmed", children: a?.searchResults })
|
|
171
171
|
}
|
|
172
172
|
),
|
|
173
|
-
T.length ? /* @__PURE__ */ e(
|
|
174
|
-
const t =
|
|
173
|
+
T.length ? /* @__PURE__ */ e(N, { cols: 8, spacing: 0, children: T.map((o) => {
|
|
174
|
+
const t = D[o];
|
|
175
175
|
return t ? /* @__PURE__ */ e(
|
|
176
176
|
"div",
|
|
177
177
|
{
|
|
@@ -201,7 +201,6 @@ const Ce = q(
|
|
|
201
201
|
}) }) : /* @__PURE__ */ e(z, { flex: 1, justify: "center", align: "stretch", children: /* @__PURE__ */ e(
|
|
202
202
|
ne,
|
|
203
203
|
{
|
|
204
|
-
showDots: !1,
|
|
205
204
|
size: 100,
|
|
206
205
|
description: a?.searchNoResults,
|
|
207
206
|
descriptionProps: {
|
|
@@ -211,7 +210,7 @@ const Ce = q(
|
|
|
211
210
|
) })
|
|
212
211
|
] }) : R.map((o) => /* @__PURE__ */ m("div", { children: [
|
|
213
212
|
/* @__PURE__ */ e(
|
|
214
|
-
|
|
213
|
+
E,
|
|
215
214
|
{
|
|
216
215
|
bg: "light-dark(var(--mantine-color-white), var(--mantine-color-dark-6))",
|
|
217
216
|
py: 6,
|
|
@@ -221,8 +220,8 @@ const Ce = q(
|
|
|
221
220
|
children: /* @__PURE__ */ e(b, { fz: "xs", fw: 500, lh: "140%", c: "dimmed", children: o.id || k("noCat") })
|
|
222
221
|
}
|
|
223
222
|
),
|
|
224
|
-
/* @__PURE__ */ e(
|
|
225
|
-
const s =
|
|
223
|
+
/* @__PURE__ */ e(N, { cols: 10, spacing: 0, children: o.icons.map((t) => {
|
|
224
|
+
const s = D[t];
|
|
226
225
|
return s ? /* @__PURE__ */ e(
|
|
227
226
|
"div",
|
|
228
227
|
{
|
|
@@ -264,5 +263,5 @@ const Ce = q(
|
|
|
264
263
|
}
|
|
265
264
|
);
|
|
266
265
|
export {
|
|
267
|
-
|
|
266
|
+
be as IconsPanel
|
|
268
267
|
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { IEmojiItem } from './types';
|
|
2
|
+
export type IconMinified = {
|
|
3
|
+
n: string;
|
|
4
|
+
c: string;
|
|
5
|
+
t: string;
|
|
6
|
+
s: 'outline' | 'filled' | 'unknown';
|
|
7
|
+
}[];
|
|
8
|
+
export declare const getIconsList: (project?: string) => Promise<IconMinified>;
|
|
9
|
+
export declare function getRandomIcon(project?: string): Promise<string | undefined>;
|
|
10
|
+
export declare const getEmojis: () => Promise<IEmojiItem[]>;
|
|
11
|
+
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/components/EmojiPicker/utils.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAGrC,MAAM,MAAM,YAAY,GAAG;IACzB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,SAAS,GAAG,QAAQ,GAAG,SAAS,CAAC;CACrC,EAAE,CAAC;AAIJ,eAAO,MAAM,YAAY,GAAU,UAAU,MAAM,0BAqElD,CAAC;AAEF,wBAAsB,aAAa,CAAC,OAAO,CAAC,EAAE,MAAM,+BAKnD;AAED,eAAO,MAAM,SAAS,6BAqBrB,CAAC"}
|