@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,19 +1,19 @@
|
|
|
1
|
-
import { jsxs as n, Fragment as
|
|
2
|
-
import { Download01Icon as
|
|
3
|
-
import { HugeiconsIcon as
|
|
4
|
-
import { Stack as
|
|
1
|
+
import { jsxs as n, Fragment as C, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { Download01Icon as g } from "@hugeicons/core-free-icons";
|
|
3
|
+
import { HugeiconsIcon as x } from "@hugeicons/react";
|
|
4
|
+
import { Stack as v, Grid as z, Box as h, Image as F, LoadingOverlay as f, ActionIcon as c, CloseIcon as I, Flex as y, Text as N } from "@mantine/core";
|
|
5
5
|
import { useDisclosure as M } from "@mantine/hooks";
|
|
6
6
|
import { getFileIcons as P } from "../../helpers/getFileIcons.js";
|
|
7
7
|
import { getFileType as A } from "../../helpers/getFileType.js";
|
|
8
8
|
import { AttachmentsGalleryModal as B } from "../AttachmentsGalleryModal/AttachmentsGalleryModal.js";
|
|
9
9
|
import t from "./AttachmentsPreview.module.css.js";
|
|
10
10
|
const U = ({
|
|
11
|
-
files:
|
|
11
|
+
files: o,
|
|
12
12
|
onRemove: i,
|
|
13
|
-
mode:
|
|
13
|
+
mode: a,
|
|
14
14
|
parentIsExisting: u
|
|
15
15
|
}) => {
|
|
16
|
-
const [
|
|
16
|
+
const [T, { open: w, close: b }] = M(!1), s = o.filter((e) => e.isImage), d = o.filter((e) => !e.isImage), D = s.map((e) => ({
|
|
17
17
|
id: e.id,
|
|
18
18
|
Url: e.url,
|
|
19
19
|
contentType: "image",
|
|
@@ -30,15 +30,15 @@ const U = ({
|
|
|
30
30
|
version: 1,
|
|
31
31
|
deleted: !1,
|
|
32
32
|
deletedAt: /* @__PURE__ */ new Date()
|
|
33
|
-
})),
|
|
34
|
-
|
|
33
|
+
})), m = s.every((e) => !e.isTemp), k = () => {
|
|
34
|
+
m && w();
|
|
35
35
|
};
|
|
36
|
-
return
|
|
37
|
-
/* @__PURE__ */ n(
|
|
38
|
-
s.length > 0 && /* @__PURE__ */ r(
|
|
39
|
-
const l =
|
|
40
|
-
return /* @__PURE__ */ r(
|
|
41
|
-
|
|
36
|
+
return o.length === 0 ? null : /* @__PURE__ */ n(C, { children: [
|
|
37
|
+
/* @__PURE__ */ n(v, { gap: "10px", w: "100%", tabIndex: 0, children: [
|
|
38
|
+
s.length > 0 && /* @__PURE__ */ r(z, { gutter: "xs", children: s.map((e) => {
|
|
39
|
+
const l = o.indexOf(e);
|
|
40
|
+
return /* @__PURE__ */ r(z.Col, { span: "content", children: /* @__PURE__ */ n(
|
|
41
|
+
h,
|
|
42
42
|
{
|
|
43
43
|
w: 56,
|
|
44
44
|
h: 56,
|
|
@@ -54,113 +54,139 @@ const U = ({
|
|
|
54
54
|
fit: "cover",
|
|
55
55
|
radius: "sm",
|
|
56
56
|
style: {
|
|
57
|
-
cursor:
|
|
57
|
+
cursor: m ? "zoom-in" : "default"
|
|
58
58
|
},
|
|
59
|
-
onClick: () =>
|
|
59
|
+
onClick: () => k()
|
|
60
60
|
}
|
|
61
61
|
),
|
|
62
62
|
/* @__PURE__ */ r(
|
|
63
|
-
|
|
63
|
+
f,
|
|
64
64
|
{
|
|
65
|
-
visible: e.isTemp &&
|
|
65
|
+
visible: e.isTemp && a === "view" && u,
|
|
66
66
|
loaderProps: { size: 20 }
|
|
67
67
|
}
|
|
68
68
|
),
|
|
69
|
-
|
|
70
|
-
|
|
69
|
+
a === "view" && !e.isTemp && /* @__PURE__ */ r(
|
|
70
|
+
c,
|
|
71
|
+
{
|
|
72
|
+
component: "a",
|
|
73
|
+
size: "20px",
|
|
74
|
+
href: e.url,
|
|
75
|
+
download: e.name,
|
|
76
|
+
rel: "noopener noreferrer",
|
|
77
|
+
variant: "subtle",
|
|
78
|
+
color: "white",
|
|
79
|
+
top: 2,
|
|
80
|
+
right: 2,
|
|
81
|
+
bg: "var(--mantine-color-dark-filled, #2E2E2E)",
|
|
82
|
+
className: t.downloadButton,
|
|
83
|
+
children: /* @__PURE__ */ r(x, { size: 16, icon: g })
|
|
84
|
+
}
|
|
85
|
+
),
|
|
86
|
+
a === "draft" && i && /* @__PURE__ */ r(
|
|
87
|
+
c,
|
|
71
88
|
{
|
|
72
89
|
size: "20px",
|
|
73
90
|
radius: "xl",
|
|
74
91
|
variant: "filled",
|
|
75
|
-
onMouseDown: (
|
|
92
|
+
onMouseDown: (p) => p.preventDefault(),
|
|
76
93
|
pos: "absolute",
|
|
77
94
|
color: "dark",
|
|
78
95
|
onClick: () => i(l),
|
|
79
96
|
className: t.deleteButton,
|
|
80
|
-
children: /* @__PURE__ */ r(
|
|
97
|
+
children: /* @__PURE__ */ r(I, { size: "12px" })
|
|
81
98
|
}
|
|
82
99
|
)
|
|
83
100
|
]
|
|
84
101
|
}
|
|
85
102
|
) }, e.id);
|
|
86
103
|
}) }),
|
|
87
|
-
|
|
88
|
-
|
|
104
|
+
d.length > 0 && /* @__PURE__ */ r(
|
|
105
|
+
h,
|
|
89
106
|
{
|
|
90
107
|
w: "100%",
|
|
91
108
|
className: t.filePreviewList,
|
|
92
|
-
"data-many":
|
|
93
|
-
children:
|
|
94
|
-
const l =
|
|
95
|
-
return /* @__PURE__ */ n(
|
|
109
|
+
"data-many": d.length >= 4,
|
|
110
|
+
children: d.map((e) => {
|
|
111
|
+
const l = o.indexOf(e);
|
|
112
|
+
return /* @__PURE__ */ n(h, { className: t.filePreviewWrapper, children: [
|
|
96
113
|
/* @__PURE__ */ r(
|
|
97
|
-
|
|
114
|
+
f,
|
|
98
115
|
{
|
|
99
|
-
visible: e.isTemp &&
|
|
116
|
+
visible: e.isTemp && a === "view" && u,
|
|
100
117
|
loaderProps: { size: 20 }
|
|
101
118
|
}
|
|
102
119
|
),
|
|
103
|
-
/* @__PURE__ */ n(
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
120
|
+
/* @__PURE__ */ n(
|
|
121
|
+
y,
|
|
122
|
+
{
|
|
123
|
+
align: "center",
|
|
124
|
+
justify: "space-between",
|
|
125
|
+
wrap: "nowrap",
|
|
126
|
+
gap: 2,
|
|
127
|
+
children: [
|
|
128
|
+
/* @__PURE__ */ n(
|
|
129
|
+
y,
|
|
130
|
+
{
|
|
131
|
+
align: "center",
|
|
132
|
+
gap: "xs",
|
|
133
|
+
wrap: "nowrap",
|
|
134
|
+
flex: 1,
|
|
135
|
+
miw: 0,
|
|
136
|
+
children: [
|
|
137
|
+
P(A(e.type), !1, 36),
|
|
138
|
+
/* @__PURE__ */ n(v, { gap: 0, flex: 1, miw: 0, children: [
|
|
139
|
+
/* @__PURE__ */ r(
|
|
140
|
+
N,
|
|
141
|
+
{
|
|
142
|
+
size: "sm",
|
|
143
|
+
truncate: !0,
|
|
144
|
+
title: e.name,
|
|
145
|
+
className: t.fileDownloadName,
|
|
146
|
+
component: "a",
|
|
147
|
+
href: e.url,
|
|
148
|
+
download: e.name,
|
|
149
|
+
rel: "noopener noreferrer",
|
|
150
|
+
w: "fit-content",
|
|
151
|
+
children: e.name
|
|
152
|
+
}
|
|
153
|
+
),
|
|
154
|
+
/* @__PURE__ */ n(N, { size: "xs", c: "dimmed", children: [
|
|
155
|
+
Math.round(e.size / 1024),
|
|
156
|
+
" KB"
|
|
157
|
+
] })
|
|
158
|
+
] })
|
|
159
|
+
]
|
|
160
|
+
}
|
|
161
|
+
),
|
|
162
|
+
a === "view" && !e.isTemp && /* @__PURE__ */ r(
|
|
163
|
+
c,
|
|
164
|
+
{
|
|
165
|
+
component: "a",
|
|
166
|
+
href: e.url,
|
|
167
|
+
download: e.name,
|
|
168
|
+
rel: "noopener noreferrer",
|
|
169
|
+
variant: "subtle",
|
|
170
|
+
color: "gray",
|
|
171
|
+
size: "sm",
|
|
172
|
+
className: t.downloadButton,
|
|
173
|
+
children: /* @__PURE__ */ r(x, { size: 16, icon: g })
|
|
174
|
+
}
|
|
175
|
+
)
|
|
176
|
+
]
|
|
177
|
+
}
|
|
178
|
+
),
|
|
179
|
+
a === "draft" && i && /* @__PURE__ */ r(
|
|
180
|
+
c,
|
|
155
181
|
{
|
|
156
182
|
size: "xs",
|
|
157
183
|
radius: "xl",
|
|
158
|
-
onMouseDown: (
|
|
184
|
+
onMouseDown: (p) => p.preventDefault(),
|
|
159
185
|
variant: "filled",
|
|
160
186
|
color: "dark",
|
|
161
187
|
onClick: () => i(l),
|
|
162
188
|
className: t.deleteButton,
|
|
163
|
-
children: /* @__PURE__ */ r(
|
|
189
|
+
children: /* @__PURE__ */ r(I, { size: "12px" })
|
|
164
190
|
}
|
|
165
191
|
)
|
|
166
192
|
] }, e.id);
|
|
@@ -168,11 +194,11 @@ const U = ({
|
|
|
168
194
|
}
|
|
169
195
|
)
|
|
170
196
|
] }),
|
|
171
|
-
|
|
197
|
+
m && /* @__PURE__ */ r(
|
|
172
198
|
B,
|
|
173
199
|
{
|
|
174
|
-
opened:
|
|
175
|
-
onOpenChange: (e) => e ? w() :
|
|
200
|
+
opened: T,
|
|
201
|
+
onOpenChange: (e) => e ? w() : b(),
|
|
176
202
|
attachments: D
|
|
177
203
|
}
|
|
178
204
|
)
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
const e = "
|
|
1
|
+
const e = "_imagePreviewWrapper_qqm20_1", t = "_deleteButton_qqm20_6", o = "_downloadButton_qqm20_13", i = "_filePreviewList_qqm20_32", r = "_fileDownloadName_qqm20_45", a = "_filePreviewWrapper_qqm20_51", l = {
|
|
2
2
|
imagePreviewWrapper: e,
|
|
3
|
-
deleteButton:
|
|
4
|
-
downloadButton:
|
|
5
|
-
filePreviewList:
|
|
6
|
-
fileDownloadName:
|
|
3
|
+
deleteButton: t,
|
|
4
|
+
downloadButton: o,
|
|
5
|
+
filePreviewList: i,
|
|
6
|
+
fileDownloadName: r,
|
|
7
7
|
filePreviewWrapper: a
|
|
8
8
|
};
|
|
9
9
|
export {
|
|
10
10
|
l as default,
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
11
|
+
t as deleteButton,
|
|
12
|
+
o as downloadButton,
|
|
13
|
+
r as fileDownloadName,
|
|
14
|
+
i as filePreviewList,
|
|
15
15
|
a as filePreviewWrapper,
|
|
16
16
|
e as imagePreviewWrapper
|
|
17
17
|
};
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
import { appMode } from '../../helpers/isAppMode';
|
|
2
|
+
type BouncingLogoProps = {
|
|
2
3
|
c?: string;
|
|
3
|
-
|
|
4
|
+
appMode?: appMode | null;
|
|
5
|
+
};
|
|
6
|
+
export declare const BouncingLogo: ({ c, appMode }: BouncingLogoProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export {};
|
|
4
8
|
//# sourceMappingURL=BouncingLogo.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BouncingLogo.d.ts","sourceRoot":"","sources":["../../../src/components/BouncingLogo/BouncingLogo.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"BouncingLogo.d.ts","sourceRoot":"","sources":["../../../src/components/BouncingLogo/BouncingLogo.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAa,MAAM,yBAAyB,CAAC;AAM7D,KAAK,iBAAiB,GAAG;IACvB,CAAC,CAAC,EAAE,MAAM,CAAC;IACX,OAAO,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;CAC1B,CAAC;AAEF,eAAO,MAAM,YAAY,GAAI,gBAAgB,iBAAiB,4CAmB7D,CAAC"}
|
|
@@ -1,23 +1,22 @@
|
|
|
1
|
-
import { jsxs as p, jsx as
|
|
2
|
-
import { Box as
|
|
3
|
-
import { isAppMode as
|
|
4
|
-
import { useIsDarkTheme as
|
|
5
|
-
import {
|
|
6
|
-
import { Logotype as f } from "../Logotype.js";
|
|
1
|
+
import { jsxs as p, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { Box as t } from "@mantine/core";
|
|
3
|
+
import { isAppMode as a } from "../../helpers/isAppMode.js";
|
|
4
|
+
import { useIsDarkTheme as c } from "../../helpers/themeUtils.js";
|
|
5
|
+
import { Logotype as d } from "../Logotype.js";
|
|
7
6
|
import o from "./BouncingLogo.module.css.js";
|
|
8
|
-
const
|
|
9
|
-
const
|
|
10
|
-
return /* @__PURE__ */ p(
|
|
11
|
-
/* @__PURE__ */
|
|
12
|
-
|
|
7
|
+
const u = ({ c: r, appMode: i }) => {
|
|
8
|
+
const m = c(), s = a(i || "SAAS", "DESKTOP");
|
|
9
|
+
return /* @__PURE__ */ p(t, { className: o.wrapper, children: [
|
|
10
|
+
/* @__PURE__ */ e("div", { className: `${o.logo} ${s ? o.desktop : ""}`, children: /* @__PURE__ */ e(
|
|
11
|
+
d,
|
|
13
12
|
{
|
|
14
13
|
isLink: !1,
|
|
15
|
-
c:
|
|
14
|
+
c: r || (m ? "white" : "black"),
|
|
16
15
|
minified: !0,
|
|
17
16
|
isDesktop: s
|
|
18
17
|
}
|
|
19
18
|
) }),
|
|
20
|
-
/* @__PURE__ */
|
|
19
|
+
/* @__PURE__ */ e(
|
|
21
20
|
"div",
|
|
22
21
|
{
|
|
23
22
|
className: `${o.shadow} ${s ? o.desktopShadow : ""}`
|
|
@@ -26,5 +25,5 @@ const x = ({ c: e }) => {
|
|
|
26
25
|
] });
|
|
27
26
|
};
|
|
28
27
|
export {
|
|
29
|
-
|
|
28
|
+
u as BouncingLogo
|
|
30
29
|
};
|
|
@@ -1,13 +1,15 @@
|
|
|
1
|
-
const o = "
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
const o = "_wrapper_1y9p0_1", s = "_logo_1y9p0_8", p = "_desktop_1y9p0_23", _ = "_shadow_1y9p0_37", t = "_desktopShadow_1y9p0_50", d = {
|
|
2
|
+
wrapper: o,
|
|
3
|
+
logo: s,
|
|
4
|
+
desktop: p,
|
|
5
|
+
shadow: _,
|
|
6
|
+
desktopShadow: t
|
|
6
7
|
};
|
|
7
8
|
export {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
9
|
+
d as default,
|
|
10
|
+
p as desktop,
|
|
11
|
+
t as desktopShadow,
|
|
12
|
+
s as logo,
|
|
13
|
+
_ as shadow,
|
|
14
|
+
o as wrapper
|
|
13
15
|
};
|
|
@@ -3,6 +3,7 @@ interface ColorCircleProps extends Omit<ColorSwatchProps, 'color'>, Omit<React.C
|
|
|
3
3
|
value?: string | null;
|
|
4
4
|
isActive?: boolean;
|
|
5
5
|
swatchShape?: 'circle' | 'square';
|
|
6
|
+
withTick?: boolean;
|
|
6
7
|
}
|
|
7
8
|
export declare const ColorCircle: import("react").ForwardRefExoticComponent<ColorCircleProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
8
9
|
export declare const ColorPicker: import("react").ForwardRefExoticComponent<{
|
|
@@ -11,6 +12,7 @@ export declare const ColorPicker: import("react").ForwardRefExoticComponent<{
|
|
|
11
12
|
allowCustomColor?: boolean;
|
|
12
13
|
colors?: string[];
|
|
13
14
|
swatchShape?: "circle" | "square";
|
|
15
|
+
withTick?: boolean;
|
|
14
16
|
fullWidth?: boolean;
|
|
15
17
|
swatchSize?: number;
|
|
16
18
|
} & Omit<FlexProps, "onChange"> & import("react").RefAttributes<HTMLDivElement>> & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ColorPicker.d.ts","sourceRoot":"","sources":["../../../src/components/ColorPicker/ColorPicker.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ColorPicker.d.ts","sourceRoot":"","sources":["../../../src/components/ColorPicker/ColorPicker.tsx"],"names":[],"mappings":"AAIA,OAAO,EAIL,gBAAgB,EAEhB,SAAS,EAKV,MAAM,eAAe,CAAC;AA+GvB,UAAU,gBACR,SAAQ,IAAI,CAAC,gBAAgB,EAAE,OAAO,CAAC,EACrC,IAAI,CACF,KAAK,CAAC,wBAAwB,CAAC,KAAK,CAAC,EACrC,MAAM,IAAI,CAAC,gBAAgB,EAAE,OAAO,CAAC,CACtC;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,WAAW,CAAC,EAAE,QAAQ,GAAG,QAAQ,CAAC;IAClC,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,eAAO,MAAM,WAAW,6GA2CvB,CAAC;AASF,eAAO,MAAM,WAAW;YAxKd,MAAM,GAAG,IAAI;eACV,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI;uBACX,OAAO;aACjB,MAAM,EAAE;kBACH,QAAQ,GAAG,QAAQ;eACtB,OAAO;gBACN,OAAO;iBACN,MAAM;;;CAmKnB,CAAC"}
|
|
@@ -1,27 +1,30 @@
|
|
|
1
|
-
import { jsx as r, jsxs as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import R from "
|
|
6
|
-
import {
|
|
7
|
-
|
|
1
|
+
import { jsx as r, jsxs as m } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as C, useState as u } from "react";
|
|
3
|
+
import { Tick02Icon as P } from "@hugeicons/core-free-icons";
|
|
4
|
+
import { HugeiconsIcon as T } from "@hugeicons/react";
|
|
5
|
+
import { useMantineTheme as x, Flex as p, Tooltip as j, ColorSwatch as v, getThemeColor as f, parseThemeColor as E, ColorInput as R, ActionIcon as h } from "@mantine/core";
|
|
6
|
+
import { IconPalette as A, IconPencil as D } from "@tabler/icons-react";
|
|
7
|
+
import F from "styled-components";
|
|
8
|
+
import { DEFAULT_VALUES as a } from "../../constants.js";
|
|
9
|
+
const H = C(
|
|
8
10
|
({
|
|
9
11
|
value: e,
|
|
10
|
-
onChange:
|
|
12
|
+
onChange: o,
|
|
11
13
|
allowCustomColor: i,
|
|
12
14
|
colors: l,
|
|
13
15
|
swatchShape: s = "circle",
|
|
16
|
+
withTick: c = !1,
|
|
14
17
|
fullWidth: n = !1,
|
|
15
18
|
swatchSize: b = 30,
|
|
16
|
-
...
|
|
17
|
-
},
|
|
18
|
-
const
|
|
19
|
-
color: e ||
|
|
20
|
-
theme:
|
|
21
|
-
}), [O, k] =
|
|
22
|
-
return
|
|
19
|
+
...w
|
|
20
|
+
}, y) => {
|
|
21
|
+
const S = x(), I = E({
|
|
22
|
+
color: e || a.COLORS[0],
|
|
23
|
+
theme: S
|
|
24
|
+
}), [O, k] = u(I.value), [z, d] = u(!1);
|
|
25
|
+
return z ? /* @__PURE__ */ m(p, { align: "center", mih: 30, children: [
|
|
23
26
|
/* @__PURE__ */ r(
|
|
24
|
-
|
|
27
|
+
R,
|
|
25
28
|
{
|
|
26
29
|
w: "100%",
|
|
27
30
|
popoverProps: {
|
|
@@ -33,7 +36,7 @@ const T = f(
|
|
|
33
36
|
size: "xs",
|
|
34
37
|
value: O,
|
|
35
38
|
onChange: k,
|
|
36
|
-
onChangeEnd:
|
|
39
|
+
onChangeEnd: o,
|
|
37
40
|
placeholder: "Select custom color"
|
|
38
41
|
}
|
|
39
42
|
),
|
|
@@ -43,31 +46,32 @@ const T = f(
|
|
|
43
46
|
radius: "xl",
|
|
44
47
|
variant: "default",
|
|
45
48
|
color: "gray",
|
|
46
|
-
onClick: () =>
|
|
49
|
+
onClick: () => d(!1),
|
|
47
50
|
children: /* @__PURE__ */ r(A, { size: 16 })
|
|
48
51
|
}
|
|
49
52
|
)
|
|
50
|
-
] }, 1) : /* @__PURE__ */
|
|
51
|
-
|
|
53
|
+
] }, 1) : /* @__PURE__ */ m(
|
|
54
|
+
p,
|
|
52
55
|
{
|
|
53
|
-
ref:
|
|
54
|
-
...
|
|
56
|
+
ref: y,
|
|
57
|
+
...w,
|
|
55
58
|
justify: n ? "space-between" : "flex-start",
|
|
56
59
|
align: "center",
|
|
57
60
|
mih: 32,
|
|
58
61
|
children: [
|
|
59
|
-
(l ||
|
|
60
|
-
const
|
|
62
|
+
(l || a.COLORS).map((t) => {
|
|
63
|
+
const L = t === e || !e && t === a.COLORS[0];
|
|
61
64
|
return /* @__PURE__ */ r(
|
|
62
|
-
|
|
65
|
+
M,
|
|
63
66
|
{
|
|
64
|
-
value:
|
|
65
|
-
isActive:
|
|
67
|
+
value: t,
|
|
68
|
+
isActive: L,
|
|
66
69
|
size: b - 4,
|
|
67
70
|
swatchShape: s,
|
|
68
|
-
|
|
71
|
+
withTick: c,
|
|
72
|
+
onClick: () => o?.(t)
|
|
69
73
|
},
|
|
70
|
-
|
|
74
|
+
t
|
|
71
75
|
);
|
|
72
76
|
}),
|
|
73
77
|
i && /* @__PURE__ */ r(
|
|
@@ -76,8 +80,8 @@ const T = f(
|
|
|
76
80
|
radius: "xl",
|
|
77
81
|
variant: "default",
|
|
78
82
|
color: "gray",
|
|
79
|
-
onClick: () =>
|
|
80
|
-
children: /* @__PURE__ */ r(
|
|
83
|
+
onClick: () => d(!0),
|
|
84
|
+
children: /* @__PURE__ */ r(D, { size: 16 })
|
|
81
85
|
}
|
|
82
86
|
)
|
|
83
87
|
]
|
|
@@ -85,47 +89,50 @@ const T = f(
|
|
|
85
89
|
2
|
|
86
90
|
);
|
|
87
91
|
}
|
|
88
|
-
),
|
|
89
|
-
({ value: e, isActive:
|
|
90
|
-
const n =
|
|
91
|
-
return /* @__PURE__ */ r(
|
|
92
|
-
|
|
92
|
+
), g = C(
|
|
93
|
+
({ value: e, isActive: o, swatchShape: i, withTick: l, ...s }, c) => {
|
|
94
|
+
const n = x();
|
|
95
|
+
return /* @__PURE__ */ r(p, { miw: 32, justify: "center", align: "center", children: /* @__PURE__ */ r(j, { label: e || "", withArrow: !0, children: /* @__PURE__ */ m(
|
|
96
|
+
v,
|
|
93
97
|
{
|
|
94
|
-
ref:
|
|
95
|
-
color: e ?
|
|
98
|
+
ref: c,
|
|
99
|
+
color: e ? f(e, n) : "",
|
|
96
100
|
radius: i === "circle" ? "xl" : "sm",
|
|
97
101
|
style: {
|
|
98
102
|
cursor: "pointer",
|
|
99
103
|
color: "var(--mantine-color-white)"
|
|
100
104
|
},
|
|
101
|
-
...
|
|
102
|
-
children:
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
105
|
+
...s,
|
|
106
|
+
children: [
|
|
107
|
+
o && /* @__PURE__ */ r(
|
|
108
|
+
"span",
|
|
109
|
+
{
|
|
110
|
+
style: {
|
|
111
|
+
position: "absolute",
|
|
112
|
+
top: -4,
|
|
113
|
+
left: -4,
|
|
114
|
+
right: -4,
|
|
115
|
+
bottom: -4,
|
|
116
|
+
border: `2px solid ${e ? f(e, n) : ""}`,
|
|
117
|
+
borderRadius: i === "circle" ? "var(--mantine-radius-xl)" : "var(--mantine-radius-sm)",
|
|
118
|
+
pointerEvents: "none",
|
|
119
|
+
boxSizing: "border-box"
|
|
120
|
+
}
|
|
115
121
|
}
|
|
116
|
-
|
|
117
|
-
|
|
122
|
+
),
|
|
123
|
+
l && o && /* @__PURE__ */ r(T, { size: 20, icon: P })
|
|
124
|
+
]
|
|
118
125
|
}
|
|
119
126
|
) }) });
|
|
120
127
|
}
|
|
121
|
-
),
|
|
128
|
+
), M = F(g)`
|
|
122
129
|
.mantine-ColorSwatch-colorOverlay {
|
|
123
130
|
border-radius: ${({ swatchShape: e }) => e === "square" ? "3px" : "50%"};
|
|
124
131
|
}
|
|
125
|
-
`,
|
|
126
|
-
ColorCircle:
|
|
132
|
+
`, K = Object.assign(H, {
|
|
133
|
+
ColorCircle: g
|
|
127
134
|
});
|
|
128
135
|
export {
|
|
129
|
-
|
|
130
|
-
|
|
136
|
+
g as ColorCircle,
|
|
137
|
+
K as ColorPicker
|
|
131
138
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Copyright/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Copyright/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAU,WAAW,EAAE,MAAM,eAAe,CAAC;AAQpD,UAAU,cAAc;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,GAAG,WAAW,CAwB5D,CAAC"}
|