@layers-app/shared 0.4.5 → 0.4.7
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/components/AnimatedFigurePage/AnimatedFigurePage.module.css.js +13 -13
- package/dist/components/AppContainer/AppContainer.module.css.js +22 -12
- package/dist/components/AppContainer/components/AppsSidebar/DesktopUpdateButton.d.ts +6 -0
- package/dist/components/AppContainer/components/AppsSidebar/DesktopUpdateButton.d.ts.map +1 -0
- package/dist/components/AppContainer/components/AppsSidebar/DesktopUpdateButton.js +161 -0
- package/dist/components/AppContainer/components/AppsSidebar/TopSection.d.ts.map +1 -1
- package/dist/components/AppContainer/components/AppsSidebar/TopSection.js +24 -22
- package/dist/components/AppContainer/components/AppsSidebar/UserSection.d.ts.map +1 -1
- package/dist/components/AppContainer/components/AppsSidebar/UserSection.js +237 -95
- package/dist/components/AppContainer/components/Header.d.ts.map +1 -1
- package/dist/components/AppContainer/components/Header.js +6 -5
- package/dist/components/AppContainer/components/ToolSidebar.d.ts.map +1 -1
- package/dist/components/AppContainer/components/ToolSidebar.js +161 -128
- package/dist/components/AppContainer/components/menus/HelpMenu/HelpMenu.d.ts +62 -1
- package/dist/components/AppContainer/components/menus/HelpMenu/HelpMenu.d.ts.map +1 -1
- package/dist/components/AppContainer/components/menus/HelpMenu/HelpMenu.js +1111 -131
- package/dist/components/AppContainer/components/menus/HelpMenu/HelpMenu.module.css.js +158 -6
- 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 +59 -56
- package/dist/components/AppContainer/hooks/useAppContainerDataStore.d.ts.map +1 -1
- package/dist/components/AppContainer/hooks/useAppContainerDataStore.js +4 -3
- package/dist/components/AppContainer/types.d.ts +1 -0
- package/dist/components/AppContainer/types.d.ts.map +1 -1
- package/dist/components/AppShell/AppShell.module.css.js +5 -5
- package/dist/components/AttachmentsGalleryModal/AttachmentsGalleryContext.d.ts +2 -0
- package/dist/components/AttachmentsGalleryModal/AttachmentsGalleryContext.d.ts.map +1 -1
- package/dist/components/AttachmentsGalleryModal/AttachmentsGalleryContext.js +22 -17
- package/dist/components/AttachmentsGalleryModal/components/AttachmentVideoPlayer.d.ts +15 -0
- package/dist/components/AttachmentsGalleryModal/components/AttachmentVideoPlayer.d.ts.map +1 -0
- package/dist/components/AttachmentsGalleryModal/components/AttachmentVideoPlayer.js +36 -0
- package/dist/components/AttachmentsGalleryModal/components/GallerySlide.js +22 -22
- package/dist/components/AttachmentsGalleryModal/components/LegacyAttachmentVideoPlayer.d.ts +14 -0
- package/dist/components/AttachmentsGalleryModal/components/LegacyAttachmentVideoPlayer.d.ts.map +1 -0
- package/dist/components/AttachmentsGalleryModal/components/LegacyAttachmentVideoPlayer.js +31 -0
- package/dist/components/AttachmentsGalleryModal/components/ModalHeader.d.ts.map +1 -1
- package/dist/components/AttachmentsGalleryModal/components/ModalHeader.js +172 -120
- package/dist/components/AttachmentsGalleryModal/components/ShakePlayer/ShakaPlayer.module.css.js +4 -4
- package/dist/components/AttachmentsGalleryModal/components/ShakePlayer/useShakePlayer.d.ts.map +1 -1
- package/dist/components/AttachmentsGalleryModal/components/ShakePlayer/useShakePlayer.js +68 -62
- package/dist/components/AttachmentsGalleryModal/components/StatusVideoPlayer.d.ts +18 -0
- package/dist/components/AttachmentsGalleryModal/components/StatusVideoPlayer.d.ts.map +1 -0
- package/dist/components/AttachmentsGalleryModal/components/StatusVideoPlayer.js +35 -0
- package/dist/components/AttachmentsGalleryModal/components/useAttachmentVideoStatus.d.ts +33 -0
- package/dist/components/AttachmentsGalleryModal/components/useAttachmentVideoStatus.d.ts.map +1 -0
- package/dist/components/AttachmentsGalleryModal/components/useAttachmentVideoStatus.js +70 -0
- package/dist/components/AttachmentsGalleryModal/helpers.d.ts +8 -0
- package/dist/components/AttachmentsGalleryModal/helpers.d.ts.map +1 -1
- package/dist/components/AttachmentsGalleryModal/helpers.js +22 -17
- package/dist/components/AttachmentsGalleryModal/hooks/useDownloadFile.d.ts.map +1 -1
- package/dist/components/AttachmentsGalleryModal/hooks/useDownloadFile.js +28 -25
- package/dist/components/AttachmentsGalleryModal/hooks/useGetPreviewUrl.d.ts.map +1 -1
- package/dist/components/AttachmentsGalleryModal/hooks/useGetPreviewUrl.js +36 -41
- package/dist/components/AttachmentsGalleryModal/styles.module.css.js +32 -28
- package/dist/components/AttachmentsPreview/AttachmentsPreview.d.ts.map +1 -1
- package/dist/components/AttachmentsPreview/AttachmentsPreview.js +135 -80
- package/dist/components/AttachmentsPreview/AttachmentsPreview.module.css.js +24 -14
- package/dist/components/BouncingLogo/BouncingLogo.d.ts +1 -3
- package/dist/components/BouncingLogo/BouncingLogo.d.ts.map +1 -1
- package/dist/components/BouncingLogo/BouncingLogo.js +14 -20
- package/dist/components/BouncingLogo/BouncingLogo.module.css.js +4 -8
- package/dist/components/Chat/CallMessage/CallMessage.module.css.js +8 -8
- package/dist/components/Chat/ChatBubble/ChatBubble.module.css.js +5 -5
- package/dist/components/Chat/ChatHeader/ChatHeader.module.css.js +1 -1
- package/dist/components/Chat/ChatInput/ChatInput.module.css.js +44 -32
- package/dist/components/Chat/ChatInput/index.d.ts +29 -1
- package/dist/components/Chat/ChatInput/index.d.ts.map +1 -1
- package/dist/components/Chat/ChatInput/index.js +178 -118
- package/dist/components/Chat/ChatInput/smilePlusIcon.d.ts +3 -0
- package/dist/components/Chat/ChatInput/smilePlusIcon.d.ts.map +1 -0
- package/dist/components/Chat/ChatInput/smilePlusIcon.js +49 -0
- package/dist/components/Chat/ChatLayout/ChatLayout.module.css.js +4 -4
- package/dist/components/Chat/ChatMessage/ChatMessage.module.css.js +2 -2
- package/dist/components/Chat/ChatMessage/index.d.ts +2 -0
- package/dist/components/Chat/ChatMessage/index.d.ts.map +1 -1
- package/dist/components/Chat/ChatMessage/index.js +136 -118
- package/dist/components/Chat/ChatPill/ChatPill.module.css.js +1 -1
- package/dist/components/Chat/DialogItem/DialogItem.module.css.js +4 -4
- package/dist/components/Chat/DialogList/DialogList.module.css.js +1 -1
- package/dist/components/Chat/MediaDocument/MediaDocument.module.css.js +3 -3
- package/dist/components/Chat/MessageActions/MessageActions.module.css.js +1 -1
- package/dist/components/Chat/MessageActions/index.d.ts +7 -0
- package/dist/components/Chat/MessageActions/index.d.ts.map +1 -1
- package/dist/components/Chat/MessageActions/index.js +40 -36
- package/dist/components/Chat/MessageForward/MessageForward.module.css.js +1 -1
- package/dist/components/Chat/MessageList/MessageList.module.css.js +10 -6
- package/dist/components/Chat/MessageList/index.d.ts +30 -3
- package/dist/components/Chat/MessageList/index.d.ts.map +1 -1
- package/dist/components/Chat/MessageList/index.js +154 -66
- package/dist/components/Chat/MessageMeta/MessageMeta.module.css.js +3 -3
- package/dist/components/Chat/MessageMeta/index.d.ts.map +1 -1
- package/dist/components/Chat/MessageMeta/index.js +21 -19
- package/dist/components/Chat/MessageReactions/MessageReactions.module.css.js +8 -8
- package/dist/components/Chat/MessageReactions/index.d.ts +17 -0
- package/dist/components/Chat/MessageReactions/index.d.ts.map +1 -1
- package/dist/components/Chat/MessageReactions/index.js +60 -28
- package/dist/components/Chat/MessageReply/MessageReply.module.css.js +7 -7
- package/dist/components/Chat/MessageStatus/MessageStatus.module.css.js +8 -6
- package/dist/components/Chat/MessageStatus/index.d.ts +1 -1
- package/dist/components/Chat/MessageStatus/index.d.ts.map +1 -1
- package/dist/components/Chat/MessageStatus/index.js +49 -34
- package/dist/components/Chat/ServiceMessage/ServiceMessage.module.css.js +1 -1
- package/dist/components/CircleColorPicker/CircleColorPicker.d.ts.map +1 -1
- package/dist/components/CircleColorPicker/CircleColorPicker.js +17 -15
- package/dist/components/CollapsibleContainer/CollapsibleContainer.module.css.js +1 -1
- package/dist/components/ColorPicker/ColorPicker.d.ts +3 -0
- package/dist/components/ColorPicker/ColorPicker.d.ts.map +1 -1
- package/dist/components/ColorPicker/ColorPicker.js +81 -76
- package/dist/components/ColorPicker/ColorPicker.module.css.js +24 -24
- package/dist/components/ColorPicker/ColorPickerList.d.ts.map +1 -1
- package/dist/components/ColorPicker/ColorPickerList.js +43 -41
- package/dist/components/ColorPicker/ColorPickerToolbar.d.ts.map +1 -1
- package/dist/components/ColorPicker/ColorPickerToolbar.js +52 -50
- package/dist/components/CommentComposer/CommentComposer.module.css.js +4 -4
- package/dist/components/CommunitiesDialog/styles.module.css.js +1 -1
- package/dist/components/Copyright/Copyright.module.css.js +1 -1
- package/dist/components/CustomKBD/CustomKBD.module.css.js +1 -1
- package/dist/components/EmojiPicker/EmojiPanel.d.ts +2 -1
- package/dist/components/EmojiPicker/EmojiPanel.d.ts.map +1 -1
- package/dist/components/EmojiPicker/EmojiPanel.js +73 -72
- package/dist/components/EmojiPicker/EmojiPicker.d.ts +16 -1
- package/dist/components/EmojiPicker/EmojiPicker.d.ts.map +1 -1
- package/dist/components/EmojiPicker/EmojiPicker.js +121 -86
- package/dist/components/EmojiPicker/EmojiPicker.module.css.js +8 -8
- package/dist/components/EmojiPicker/IconsPanel.d.ts.map +1 -1
- package/dist/components/EmojiPicker/IconsPanel.js +28 -25
- package/dist/components/EntityIcon.d.ts +1 -0
- package/dist/components/EntityIcon.d.ts.map +1 -1
- package/dist/components/EntityIcon.js +80 -32
- package/dist/components/EntityTitle/EntityTitle.module.css.js +1 -1
- package/dist/components/ErrorPage/components/Error403.d.ts +5 -1
- package/dist/components/ErrorPage/components/Error403.d.ts.map +1 -1
- package/dist/components/ErrorPage/components/Error403.js +25 -21
- package/dist/components/ErrorPage/components/Error404.d.ts.map +1 -1
- package/dist/components/ErrorPage/index.d.ts +5 -1
- package/dist/components/ErrorPage/index.d.ts.map +1 -1
- package/dist/components/ErrorPage/index.js +17 -10
- package/dist/components/FeatureProgress/FeatureProgress.module.css.js +49 -49
- package/dist/components/FilePicker/FilePicker.module.css.js +7 -7
- package/dist/components/FormViewer/FormViewer.module.css.js +20 -20
- package/dist/components/FormViewer/components/fields/DragOptions/DragOptions.module.css.js +1 -1
- package/dist/components/FormViewer/components/fields/DropdownField/DropdownField.module.css.js +1 -1
- package/dist/components/FormViewer/components/fields/EditableContent/EditableContent.module.css.js +1 -1
- package/dist/components/FormViewer/components/fields/SelectableCard/SelectableCard.module.css.js +8 -8
- package/dist/components/FormViewer/components/fields/UploadField/UploadFile/UploadFile.module.css.js +4 -4
- package/dist/components/FormViewer/store/formStore.d.ts.map +1 -1
- package/dist/components/ImageCropper/ImageCropper.module.css.js +38 -38
- package/dist/components/IntegrationFlowAnimation/IntegrationFlowAnimation.d.ts +3 -1
- package/dist/components/IntegrationFlowAnimation/IntegrationFlowAnimation.d.ts.map +1 -1
- package/dist/components/IntegrationFlowAnimation/IntegrationFlowAnimation.js +26 -25
- package/dist/components/IntegrationFlowAnimation/IntegrationFlowAnimation.module.css.js +11 -11
- package/dist/components/LanguagePicker/LanguagePicker.module.css.js +1 -1
- package/dist/components/Loaders/styles.module.css.js +6 -6
- package/dist/components/MediaLibrary/MediaLibrary.module.css.js +2 -2
- package/dist/components/MusicPlayerBar/MusicPlayerBar.module.css.js +23 -23
- package/dist/components/MusicPlayerBar/components/HoverActions.js +28 -28
- package/dist/components/NavMenu/NavMenu.d.ts +7 -1
- package/dist/components/NavMenu/NavMenu.d.ts.map +1 -1
- package/dist/components/NavMenu/NavMenu.js +54 -44
- package/dist/components/NavMenu/NavMenu.module.css.js +12 -12
- package/dist/components/NavMenu/components/NavMenuItem.d.ts.map +1 -1
- package/dist/components/NavMenu/components/NavMenuItem.js +84 -84
- package/dist/components/NavMenu/types.d.ts +4 -0
- package/dist/components/NavMenu/types.d.ts.map +1 -1
- package/dist/components/NavbarResizer/NavbarResizer.module.css.js +2 -2
- package/dist/components/NewToolbar/utils.d.ts +12 -0
- package/dist/components/NewToolbar/utils.d.ts.map +1 -0
- package/dist/components/NotPublicPanel/NotPublicPanel.module.css.js +11 -11
- package/dist/components/Notification/Notification.module.css.js +1 -1
- package/dist/components/OnboardingTour/index.d.ts +1 -1
- package/dist/components/OnboardingTour/index.d.ts.map +1 -1
- package/dist/components/OnboardingTour/useOnboardingTour.d.ts +2 -0
- package/dist/components/OnboardingTour/useOnboardingTour.d.ts.map +1 -1
- package/dist/components/OnboardingTour/useOnboardingTour.js +63 -51
- package/dist/components/PillTabs/PillTabs.module.css.js +1 -1
- package/dist/components/SearchFilters/SearchFilters.module.css.js +1 -1
- package/dist/components/SettingsSection/styles.module.css.js +1 -1
- package/dist/components/StorageUsageProgress/StorageUsageProgress.module.css.js +1 -1
- package/dist/components/TreeIndent/TreeIndent.module.css.js +4 -4
- package/dist/components/VideoPlayer/VideoPlayer.d.ts +24 -0
- package/dist/components/VideoPlayer/VideoPlayer.d.ts.map +1 -0
- package/dist/components/VideoPlayer/VideoPlayer.js +727 -0
- package/dist/components/VideoPlayer/components/MobileDrawer/index.d.ts +8 -0
- package/dist/components/VideoPlayer/components/MobileDrawer/index.d.ts.map +1 -0
- package/dist/components/VideoPlayer/components/MobileDrawer/index.js +67 -0
- package/dist/components/VideoPlayer/components/SelectListOptionButton.d.ts +7 -0
- package/dist/components/VideoPlayer/components/SelectListOptionButton.d.ts.map +1 -0
- package/dist/components/VideoPlayer/components/SelectListOptionButton.js +44 -0
- package/dist/components/VideoPlayer/components/StoryboardPreview.d.ts +9 -0
- package/dist/components/VideoPlayer/components/StoryboardPreview.d.ts.map +1 -0
- package/dist/components/VideoPlayer/components/StoryboardPreview.js +38 -0
- package/dist/components/VideoPlayer/components/VideoCustomControls.d.ts +33 -0
- package/dist/components/VideoPlayer/components/VideoCustomControls.d.ts.map +1 -0
- package/dist/components/VideoPlayer/components/VideoCustomControls.js +601 -0
- package/dist/components/VideoPlayer/components/VideoIcons.d.ts +25 -0
- package/dist/components/VideoPlayer/components/VideoIcons.d.ts.map +1 -0
- package/dist/components/VideoPlayer/components/VideoIcons.js +145 -0
- package/dist/components/VideoPlayer/components/VideoMenu.d.ts +27 -0
- package/dist/components/VideoPlayer/components/VideoMenu.d.ts.map +1 -0
- package/dist/components/VideoPlayer/components/VideoMenu.js +77 -0
- package/dist/components/VideoPlayer/components/VideoMobileSettingsDrawer.d.ts +17 -0
- package/dist/components/VideoPlayer/components/VideoMobileSettingsDrawer.d.ts.map +1 -0
- package/dist/components/VideoPlayer/components/VideoMobileSettingsDrawer.js +289 -0
- package/dist/components/VideoPlayer/components/VideoQualityMenu/index.d.ts +10 -0
- package/dist/components/VideoPlayer/components/VideoQualityMenu/index.d.ts.map +1 -0
- package/dist/components/VideoPlayer/components/VideoQualityMenu/index.js +55 -0
- package/dist/components/VideoPlayer/components/VideoSelect.d.ts +10 -0
- package/dist/components/VideoPlayer/components/VideoSelect.d.ts.map +1 -0
- package/dist/components/VideoPlayer/components/VideoSelect.js +168 -0
- package/dist/components/VideoPlayer/components/VideoSettingsMenu/index.d.ts +12 -0
- package/dist/components/VideoPlayer/components/VideoSettingsMenu/index.d.ts.map +1 -0
- package/dist/components/VideoPlayer/components/VideoSettingsMenu/index.js +48 -0
- package/dist/components/VideoPlayer/components/VideoSettingsModal/ChaptersSection.d.ts +25 -0
- package/dist/components/VideoPlayer/components/VideoSettingsModal/ChaptersSection.d.ts.map +1 -0
- package/dist/components/VideoPlayer/components/VideoSettingsModal/ChaptersSection.js +384 -0
- package/dist/components/VideoPlayer/components/VideoSettingsModal/CoverSection.d.ts +21 -0
- package/dist/components/VideoPlayer/components/VideoSettingsModal/CoverSection.d.ts.map +1 -0
- package/dist/components/VideoPlayer/components/VideoSettingsModal/CoverSection.js +264 -0
- package/dist/components/VideoPlayer/components/VideoSettingsModal/FooterActions.d.ts +10 -0
- package/dist/components/VideoPlayer/components/VideoSettingsModal/FooterActions.d.ts.map +1 -0
- package/dist/components/VideoPlayer/components/VideoSettingsModal/FooterActions.js +39 -0
- package/dist/components/VideoPlayer/components/VideoSettingsModal/ManualSubtitlesPanel.d.ts +14 -0
- package/dist/components/VideoPlayer/components/VideoSettingsModal/ManualSubtitlesPanel.d.ts.map +1 -0
- package/dist/components/VideoPlayer/components/VideoSettingsModal/ManualSubtitlesPanel.js +360 -0
- package/dist/components/VideoPlayer/components/VideoSettingsModal/SubtitleTrackRow.d.ts +16 -0
- package/dist/components/VideoPlayer/components/VideoSettingsModal/SubtitleTrackRow.d.ts.map +1 -0
- package/dist/components/VideoPlayer/components/VideoSettingsModal/SubtitlesSection.d.ts +14 -0
- package/dist/components/VideoPlayer/components/VideoSettingsModal/SubtitlesSection.d.ts.map +1 -0
- package/dist/components/VideoPlayer/components/VideoSettingsModal/context.d.ts +4 -0
- package/dist/components/VideoPlayer/components/VideoSettingsModal/context.d.ts.map +1 -0
- package/dist/components/VideoPlayer/components/VideoSettingsModal/context.js +14 -0
- package/dist/components/VideoPlayer/components/VideoSettingsModal/index.d.ts +22 -0
- package/dist/components/VideoPlayer/components/VideoSettingsModal/index.d.ts.map +1 -0
- package/dist/components/VideoPlayer/components/VideoSettingsModal/index.js +211 -0
- package/dist/components/VideoPlayer/components/VideoSpeedMenu/index.d.ts +11 -0
- package/dist/components/VideoPlayer/components/VideoSpeedMenu/index.d.ts.map +1 -0
- package/dist/components/VideoPlayer/components/VideoSpeedMenu/index.js +41 -0
- package/dist/components/VideoPlayer/components/VideoSubtitlesMenu/index.d.ts +10 -0
- package/dist/components/VideoPlayer/components/VideoSubtitlesMenu/index.d.ts.map +1 -0
- package/dist/components/VideoPlayer/components/VideoSubtitlesMenu/index.js +69 -0
- package/dist/components/VideoPlayer/hooks/useStoryboard.d.ts +21 -0
- package/dist/components/VideoPlayer/hooks/useStoryboard.d.ts.map +1 -0
- package/dist/components/VideoPlayer/hooks/useStoryboard.js +91 -0
- package/dist/components/VideoPlayer/index.d.ts +11 -0
- package/dist/components/VideoPlayer/index.d.ts.map +1 -0
- package/dist/components/VideoPlayer/types.d.ts +101 -0
- package/dist/components/VideoPlayer/types.d.ts.map +1 -0
- package/dist/components/VideoPlayer/utils/chapters.d.ts +8 -0
- package/dist/components/VideoPlayer/utils/chapters.d.ts.map +1 -0
- package/dist/components/VideoPlayer/utils/chapters.js +38 -0
- package/dist/components/VideoPlayer/utils/storyboard.d.ts +5 -0
- package/dist/components/VideoPlayer/utils/storyboard.d.ts.map +1 -0
- package/dist/components/VideoPlayer/utils/storyboard.js +47 -0
- package/dist/components/VideoPlayer/utils/subtitles.d.ts +18 -0
- package/dist/components/VideoPlayer/utils/subtitles.d.ts.map +1 -0
- package/dist/components/VideoPlayer/utils/subtitles.js +23 -0
- package/dist/components/VideoPlayer/utils/touch.d.ts +3 -0
- package/dist/components/VideoPlayer/utils/touch.d.ts.map +1 -0
- package/dist/components/VideoPlayer/utils/touch.js +5 -0
- package/dist/components/VideoPlayer/utils/videoPlayerUtils.d.ts +10 -0
- package/dist/components/VideoPlayer/utils/videoPlayerUtils.d.ts.map +1 -0
- package/dist/components/VideoPlayer/utils/videoPlayerUtils.js +22 -0
- package/dist/components/VideoPlayer/utils/videoSettings.d.ts +69 -0
- package/dist/components/VideoPlayer/utils/videoSettings.d.ts.map +1 -0
- package/dist/components/VideoPlayer/utils/videoSettings.js +90 -0
- package/dist/components/WorkspaceMenu/WorkspaceItem.d.ts.map +1 -1
- package/dist/components/WorkspaceMenu/WorkspaceItem.js +16 -14
- package/dist/components/table/FrontTable.d.ts.map +1 -1
- package/dist/components/table/hooks/useColumnsResizing.d.ts.map +1 -1
- package/dist/config/brand.d.ts.map +1 -1
- package/dist/config/brand.js +29 -29
- package/dist/config/envConfig.d.ts +4 -0
- package/dist/config/envConfig.d.ts.map +1 -1
- package/dist/config/envConfig.js +41 -37
- package/dist/helpers/showFeatureFeedback.module.css.js +4 -4
- package/dist/helpers/showNotifications.d.ts +9 -0
- package/dist/helpers/showNotifications.d.ts.map +1 -1
- package/dist/helpers/showNotifications.js +96 -58
- package/dist/helpers/showNotifications.module.css.js +1 -1
- package/dist/hooks/useDateUtils.d.ts.map +1 -1
- package/dist/hooks/useDateUtils.js +19 -23
- package/dist/hooks/useUiPref.d.ts +2 -0
- package/dist/hooks/useUiPref.d.ts.map +1 -0
- package/dist/hooks/useUiPref.js +80 -0
- package/dist/index.css +1 -1
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +582 -558
- package/dist/lang/locales/ui_en.json.js +1 -1
- package/dist/lang/locales/ui_es.json.js +1 -1
- package/dist/lang/locales/ui_ru.json.js +1 -1
- package/dist/videoSettings/createVideoSettingsDataSource.d.ts +19 -0
- package/dist/videoSettings/createVideoSettingsDataSource.d.ts.map +1 -0
- package/dist/videoSettings/createVideoSettingsDataSource.js +127 -0
- package/docs/README.md +499 -499
- package/package.json +79 -78
|
@@ -1,20 +1,22 @@
|
|
|
1
1
|
import { jsxs as h, jsx as o } from "react/jsx-runtime";
|
|
2
2
|
import { useMemo as E, useState as u, useEffect as H } from "react";
|
|
3
3
|
import { useTranslation as S } from "react-i18next";
|
|
4
|
-
import { useMantineTheme as k,
|
|
4
|
+
import { useMantineTheme as k, useComputedColorScheme as V, parseThemeColor as b, Menu as m, ActionIcon as I, ColorSwatch as M, Stack as j, ColorPicker as w, DEFAULT_THEME as y, TextInput as D, isColorValid as z, Button as A } from "@mantine/core";
|
|
5
5
|
const d = (e, t) => !e || typeof e != "string" ? null : e === "var(--mantine-color-bright)" ? t === "dark" ? "#ffffff" : "#000000" : e, L = ({
|
|
6
6
|
value: e,
|
|
7
7
|
onChange: t,
|
|
8
8
|
menuProps: p,
|
|
9
9
|
colorPickerProps: x
|
|
10
10
|
}) => {
|
|
11
|
-
const { t: s } = S("common"), f = k(),
|
|
12
|
-
|
|
11
|
+
const { t: s } = S("common"), f = k(), l = V("light", {
|
|
12
|
+
getInitialValueInEffect: !0
|
|
13
|
+
}), a = E(() => {
|
|
14
|
+
const r = d(e, l);
|
|
13
15
|
return r ? b({ color: r, theme: f }) : { value: "", color: "", isThemeColor: !1, shade: void 0 };
|
|
14
|
-
}, [e, f,
|
|
16
|
+
}, [e, f, l]), [C, i] = u(a.value), [g, n] = u(null);
|
|
15
17
|
H(() => {
|
|
16
|
-
i(d(e,
|
|
17
|
-
}, [
|
|
18
|
+
i(d(e, l) || "");
|
|
19
|
+
}, [l, e]);
|
|
18
20
|
const [T, v] = u(!1);
|
|
19
21
|
return /* @__PURE__ */ h(
|
|
20
22
|
m,
|
|
@@ -24,39 +26,39 @@ const d = (e, t) => !e || typeof e != "string" ? null : e === "var(--mantine-col
|
|
|
24
26
|
onChange: v,
|
|
25
27
|
...p,
|
|
26
28
|
children: [
|
|
27
|
-
/* @__PURE__ */ o(m.Target, { children: /* @__PURE__ */ o(
|
|
28
|
-
/* @__PURE__ */ o(m.Dropdown, { style: { padding: 8, minWidth: 220 }, children: /* @__PURE__ */ h(
|
|
29
|
+
/* @__PURE__ */ o(m.Target, { children: /* @__PURE__ */ o(I, { size: "md", variant: "subtle", radius: "xl", children: /* @__PURE__ */ o(M, { color: a.value || "transparent" }) }) }),
|
|
30
|
+
/* @__PURE__ */ o(m.Dropdown, { style: { padding: 8, minWidth: 220 }, children: /* @__PURE__ */ h(j, { gap: "sm", children: [
|
|
29
31
|
/* @__PURE__ */ o(
|
|
30
|
-
|
|
32
|
+
w,
|
|
31
33
|
{
|
|
32
34
|
value: a.value,
|
|
33
35
|
onChange: (r) => {
|
|
34
|
-
t(r), i(r),
|
|
36
|
+
t(r), i(r), n(null);
|
|
35
37
|
},
|
|
36
38
|
format: "hex",
|
|
37
|
-
swatches: Object.values(
|
|
39
|
+
swatches: Object.values(y.colors).map((r) => r[5]),
|
|
38
40
|
...x
|
|
39
41
|
}
|
|
40
42
|
),
|
|
41
43
|
/* @__PURE__ */ o(
|
|
42
|
-
|
|
44
|
+
D,
|
|
43
45
|
{
|
|
44
46
|
label: s("HEXValue"),
|
|
45
47
|
onChange: (r) => {
|
|
46
48
|
const c = r.currentTarget.value;
|
|
47
|
-
i(c),
|
|
49
|
+
i(c), z(c) ? (t(c), n(null)) : n(s("invalidColorFormat"));
|
|
48
50
|
},
|
|
49
51
|
error: g,
|
|
50
52
|
value: C
|
|
51
53
|
}
|
|
52
54
|
),
|
|
53
55
|
/* @__PURE__ */ o(
|
|
54
|
-
|
|
56
|
+
A,
|
|
55
57
|
{
|
|
56
58
|
variant: "light",
|
|
57
59
|
size: "xs",
|
|
58
60
|
onClick: () => {
|
|
59
|
-
t(null),
|
|
61
|
+
t(null), n(null);
|
|
60
62
|
},
|
|
61
63
|
mt: "xs",
|
|
62
64
|
children: s("resetColor")
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const o = "
|
|
1
|
+
const o = "_accordionRoot_3pkfo_1", c = "_accordionControl_3pkfo_5", n = "_accordionItem_3pkfo_9", t = {
|
|
2
2
|
accordionRoot: o,
|
|
3
3
|
accordionControl: c,
|
|
4
4
|
accordionItem: n
|
|
@@ -11,6 +11,8 @@ type ColorPickerProps = {
|
|
|
11
11
|
withTick?: boolean;
|
|
12
12
|
fullWidth?: boolean;
|
|
13
13
|
swatchSize?: number;
|
|
14
|
+
wrapperHeight?: number;
|
|
15
|
+
customSizes?: boolean;
|
|
14
16
|
} & Omit<FlexProps, 'onChange'>;
|
|
15
17
|
interface ColorCircleProps extends Omit<ColorSwatchProps, 'color'>, Omit<React.ComponentPropsWithoutRef<'div'>, keyof Omit<ColorSwatchProps, 'color'>> {
|
|
16
18
|
value?: string | null;
|
|
@@ -21,6 +23,7 @@ interface ColorCircleProps extends Omit<ColorSwatchProps, 'color'>, Omit<React.C
|
|
|
21
23
|
withTick?: boolean;
|
|
22
24
|
borderColor?: string;
|
|
23
25
|
bgColor?: string;
|
|
26
|
+
swatchSize?: number;
|
|
24
27
|
}
|
|
25
28
|
export declare const ColorCircle: import("react").ForwardRefExoticComponent<ColorCircleProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
26
29
|
export declare const ColorPicker: import("react").ForwardRefExoticComponent<Omit<ColorPickerProps, "ref"> & import("react").RefAttributes<HTMLDivElement>> & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ColorPicker.d.ts","sourceRoot":"","sources":["../../../src/components/ColorPicker/ColorPicker.tsx"],"names":[],"mappings":"AAKA,OAAO,EAIL,gBAAgB,EAEhB,SAAS,EAKV,MAAM,eAAe,CAAC;AAKvB,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEpD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAGzC,KAAK,gBAAgB,GAAG;IACtB,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,QAAQ,CAAC,EAAE,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IAC/B,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,MAAM,CAAC,EAAE,SAAS,EAAE,CAAC;IACrB,WAAW,CAAC,EAAE,QAAQ,GAAG,QAAQ,CAAC;IAClC,aAAa,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAC;IACrC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"ColorPicker.d.ts","sourceRoot":"","sources":["../../../src/components/ColorPicker/ColorPicker.tsx"],"names":[],"mappings":"AAKA,OAAO,EAIL,gBAAgB,EAEhB,SAAS,EAKV,MAAM,eAAe,CAAC;AAKvB,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEpD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAGzC,KAAK,gBAAgB,GAAG;IACtB,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,QAAQ,CAAC,EAAE,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IAC/B,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,MAAM,CAAC,EAAE,SAAS,EAAE,CAAC;IACrB,WAAW,CAAC,EAAE,QAAQ,GAAG,QAAQ,CAAC;IAClC,aAAa,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAC;IACrC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB,GAAG,IAAI,CAAC,SAAS,EAAE,UAAU,CAAC,CAAC;AA6GhC,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,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,WAAW,CAAC,EAAE,QAAQ,GAAG,QAAQ,CAAC;IAClC,aAAa,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAC;IACrC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,eAAO,MAAM,WAAW,6GAkFvB,CAAC;AASF,eAAO,MAAM,WAAW;;;;CAItB,CAAC"}
|
|
@@ -1,35 +1,37 @@
|
|
|
1
|
-
import { jsx as e, jsxs as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { useTranslation as
|
|
4
|
-
import { Tick02Icon as
|
|
5
|
-
import { HugeiconsIcon as
|
|
6
|
-
import { useMantineTheme as
|
|
7
|
-
import { IconPalette as
|
|
8
|
-
import
|
|
9
|
-
import { DEFAULT_VALUES as
|
|
10
|
-
import { ColorPickerList as
|
|
11
|
-
import { ColorPickerToolbar as
|
|
12
|
-
import { resolveColorLabel as
|
|
13
|
-
const
|
|
1
|
+
import { jsx as e, jsxs as v } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as z, useState as y } from "react";
|
|
3
|
+
import { useTranslation as E } from "react-i18next";
|
|
4
|
+
import { Tick02Icon as R } from "@hugeicons/core-free-icons";
|
|
5
|
+
import { HugeiconsIcon as D } from "@hugeicons/react";
|
|
6
|
+
import { useMantineTheme as I, getThemeColor as F, Flex as x, Tooltip as H, ColorSwatch as M, parseThemeColor as U, ColorInput as V, ActionIcon as w } from "@mantine/core";
|
|
7
|
+
import { IconPalette as q, IconPencil as _ } from "@tabler/icons-react";
|
|
8
|
+
import B from "styled-components";
|
|
9
|
+
import { DEFAULT_VALUES as k } from "../../constants.js";
|
|
10
|
+
import { ColorPickerList as G } from "./ColorPickerList.js";
|
|
11
|
+
import { ColorPickerToolbar as J } from "./ColorPickerToolbar.js";
|
|
12
|
+
import { resolveColorLabel as K, normalizeColorItem as N } from "./types.js";
|
|
13
|
+
const Q = z(
|
|
14
14
|
({
|
|
15
15
|
value: o,
|
|
16
16
|
onChange: l,
|
|
17
17
|
allowCustomColor: n,
|
|
18
18
|
colors: s,
|
|
19
|
-
swatchShape:
|
|
20
|
-
swatchVariant:
|
|
21
|
-
withTick:
|
|
22
|
-
fullWidth:
|
|
23
|
-
swatchSize:
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
19
|
+
swatchShape: m = "circle",
|
|
20
|
+
swatchVariant: d = "filled",
|
|
21
|
+
withTick: p = !1,
|
|
22
|
+
fullWidth: u = !1,
|
|
23
|
+
swatchSize: f = 30,
|
|
24
|
+
wrapperHeight: i,
|
|
25
|
+
customSizes: a,
|
|
26
|
+
...h
|
|
27
|
+
}, C) => {
|
|
28
|
+
const r = I(), t = U({
|
|
29
|
+
color: o || k.COLORS[0],
|
|
30
|
+
theme: r
|
|
31
|
+
}), [b, O] = y(t.value), [T, g] = y(!1);
|
|
32
|
+
return T ? /* @__PURE__ */ v(x, { align: "center", mih: 30, children: [
|
|
31
33
|
/* @__PURE__ */ e(
|
|
32
|
-
|
|
34
|
+
V,
|
|
33
35
|
{
|
|
34
36
|
w: "100%",
|
|
35
37
|
popoverProps: {
|
|
@@ -39,62 +41,64 @@ const K = k(
|
|
|
39
41
|
maxLength: 7,
|
|
40
42
|
withEyeDropper: !1,
|
|
41
43
|
size: "xs",
|
|
42
|
-
value:
|
|
43
|
-
onChange:
|
|
44
|
+
value: b,
|
|
45
|
+
onChange: O,
|
|
44
46
|
onChangeEnd: l,
|
|
45
47
|
placeholder: "Select custom color"
|
|
46
48
|
}
|
|
47
49
|
),
|
|
48
50
|
/* @__PURE__ */ e(
|
|
49
|
-
|
|
51
|
+
w,
|
|
50
52
|
{
|
|
51
53
|
radius: "xl",
|
|
52
54
|
variant: "default",
|
|
53
55
|
color: "gray",
|
|
54
|
-
onClick: () =>
|
|
55
|
-
children: /* @__PURE__ */ e(
|
|
56
|
+
onClick: () => g(!1),
|
|
57
|
+
children: /* @__PURE__ */ e(q, { size: 16 })
|
|
56
58
|
}
|
|
57
59
|
)
|
|
58
|
-
] }, 1) : /* @__PURE__ */
|
|
60
|
+
] }, 1) : /* @__PURE__ */ v(
|
|
59
61
|
x,
|
|
60
62
|
{
|
|
61
|
-
ref:
|
|
62
|
-
...
|
|
63
|
-
justify:
|
|
63
|
+
ref: C,
|
|
64
|
+
...h,
|
|
65
|
+
justify: u ? "space-between" : "flex-start",
|
|
64
66
|
align: "center",
|
|
67
|
+
mih: a && i || 32,
|
|
65
68
|
children: [
|
|
66
|
-
(s ||
|
|
69
|
+
(s || k.COLORS).map((P, S) => {
|
|
67
70
|
const {
|
|
68
|
-
value:
|
|
69
|
-
border:
|
|
70
|
-
bg:
|
|
71
|
-
label:
|
|
72
|
-
} =
|
|
71
|
+
value: c,
|
|
72
|
+
border: $,
|
|
73
|
+
bg: j,
|
|
74
|
+
label: A
|
|
75
|
+
} = N(P);
|
|
73
76
|
return /* @__PURE__ */ e(
|
|
74
|
-
|
|
77
|
+
W,
|
|
75
78
|
{
|
|
76
|
-
value:
|
|
77
|
-
label:
|
|
78
|
-
isActive:
|
|
79
|
-
size:
|
|
80
|
-
swatchShape:
|
|
81
|
-
swatchVariant:
|
|
82
|
-
withTick:
|
|
83
|
-
borderColor:
|
|
84
|
-
bgColor:
|
|
85
|
-
onClick: () => l?.(
|
|
79
|
+
value: c,
|
|
80
|
+
label: A,
|
|
81
|
+
isActive: c === o,
|
|
82
|
+
size: f - 4,
|
|
83
|
+
swatchShape: m,
|
|
84
|
+
swatchVariant: d,
|
|
85
|
+
withTick: p,
|
|
86
|
+
borderColor: $,
|
|
87
|
+
bgColor: j,
|
|
88
|
+
onClick: () => l?.(c),
|
|
89
|
+
swatchSize: a ? f : void 0
|
|
86
90
|
},
|
|
87
|
-
|
|
91
|
+
c || S
|
|
88
92
|
);
|
|
89
93
|
}),
|
|
90
94
|
n && /* @__PURE__ */ e(
|
|
91
|
-
|
|
95
|
+
w,
|
|
92
96
|
{
|
|
93
97
|
radius: "xl",
|
|
94
98
|
variant: "default",
|
|
95
99
|
color: "gray",
|
|
96
|
-
onClick: () =>
|
|
97
|
-
children: /* @__PURE__ */ e(
|
|
100
|
+
onClick: () => g(!0),
|
|
101
|
+
children: /* @__PURE__ */ e(_, { size: 16 })
|
|
98
102
|
}
|
|
99
103
|
)
|
|
100
104
|
]
|
|
@@ -102,19 +106,20 @@ const K = k(
|
|
|
102
106
|
2
|
|
103
107
|
);
|
|
104
108
|
}
|
|
105
|
-
),
|
|
109
|
+
), L = z(
|
|
106
110
|
({
|
|
107
111
|
value: o,
|
|
108
112
|
label: l,
|
|
109
113
|
isActive: n,
|
|
110
114
|
swatchShape: s,
|
|
111
|
-
swatchVariant:
|
|
112
|
-
withTick:
|
|
113
|
-
borderColor:
|
|
114
|
-
bgColor:
|
|
115
|
+
swatchVariant: m = "filled",
|
|
116
|
+
withTick: d,
|
|
117
|
+
borderColor: p,
|
|
118
|
+
bgColor: u,
|
|
119
|
+
swatchSize: f,
|
|
115
120
|
...i
|
|
116
|
-
},
|
|
117
|
-
const
|
|
121
|
+
}, a) => {
|
|
122
|
+
const h = I(), { t: C } = E("ui"), r = o ? F(o, h) : "", t = m === "outline", b = K(C, o, l);
|
|
118
123
|
return /* @__PURE__ */ e(
|
|
119
124
|
x,
|
|
120
125
|
{
|
|
@@ -123,10 +128,10 @@ const K = k(
|
|
|
123
128
|
justify: "center",
|
|
124
129
|
align: "center",
|
|
125
130
|
style: { position: "relative" },
|
|
126
|
-
children: /* @__PURE__ */ e(
|
|
127
|
-
|
|
131
|
+
children: /* @__PURE__ */ e(H, { label: b, withArrow: !0, children: /* @__PURE__ */ v(
|
|
132
|
+
M,
|
|
128
133
|
{
|
|
129
|
-
ref:
|
|
134
|
+
ref: a,
|
|
130
135
|
color: t ? "transparent" : r,
|
|
131
136
|
radius: s === "circle" ? "xl" : "sm",
|
|
132
137
|
styles: t ? {
|
|
@@ -136,8 +141,8 @@ const K = k(
|
|
|
136
141
|
style: {
|
|
137
142
|
cursor: "pointer",
|
|
138
143
|
color: "var(--mantine-color-white)",
|
|
139
|
-
background: t ?
|
|
140
|
-
border: t ? `2px solid ${
|
|
144
|
+
background: t ? u || `var(--mantine-color-${o}-light, ${r}20)` : void 0,
|
|
145
|
+
border: t ? `2px solid ${p || `var(--mantine-color-${o}-outline, ${r})`}` : void 0
|
|
141
146
|
},
|
|
142
147
|
...i,
|
|
143
148
|
children: [
|
|
@@ -157,23 +162,23 @@ const K = k(
|
|
|
157
162
|
}
|
|
158
163
|
}
|
|
159
164
|
),
|
|
160
|
-
|
|
165
|
+
d && n && /* @__PURE__ */ e(D, { size: 20, icon: R })
|
|
161
166
|
]
|
|
162
167
|
}
|
|
163
168
|
) })
|
|
164
169
|
}
|
|
165
170
|
);
|
|
166
171
|
}
|
|
167
|
-
),
|
|
172
|
+
), W = B(L)`
|
|
168
173
|
.mantine-ColorSwatch-colorOverlay {
|
|
169
174
|
border-radius: ${({ swatchShape: o }) => o === "square" ? "3px" : "50%"};
|
|
170
175
|
}
|
|
171
|
-
`,
|
|
172
|
-
ColorCircle:
|
|
173
|
-
List:
|
|
174
|
-
Toolbar:
|
|
176
|
+
`, mo = Object.assign(Q, {
|
|
177
|
+
ColorCircle: L,
|
|
178
|
+
List: G,
|
|
179
|
+
Toolbar: J
|
|
175
180
|
});
|
|
176
181
|
export {
|
|
177
|
-
|
|
178
|
-
|
|
182
|
+
L as ColorCircle,
|
|
183
|
+
mo as ColorPicker
|
|
179
184
|
};
|
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
const
|
|
2
|
-
section:
|
|
3
|
-
sectionLabel:
|
|
1
|
+
const i = "_section_lidow_2", t = "_sectionLabel_lidow_15", n = "_listItem_lidow_46", e = "_listItemActive_lidow_72", l = "_listItemLabel_lidow_76", o = "_listItemSwatch_lidow_84", c = "_grid_lidow_92", _ = "_inlineSection_lidow_162", s = "_inlineSectionLabel_lidow_172", w = "_inlineRow_lidow_180", a = "_inlineSwatch_lidow_189", d = "_inlineSwatchActive_lidow_215", S = "_inlineSwatchRound_lidow_225", h = {
|
|
2
|
+
section: i,
|
|
3
|
+
sectionLabel: t,
|
|
4
4
|
listItem: n,
|
|
5
5
|
listItemActive: e,
|
|
6
|
-
listItemLabel:
|
|
7
|
-
listItemSwatch:
|
|
8
|
-
grid:
|
|
9
|
-
inlineSection:
|
|
10
|
-
inlineSectionLabel:
|
|
11
|
-
inlineRow:
|
|
12
|
-
inlineSwatch:
|
|
13
|
-
inlineSwatchActive:
|
|
14
|
-
inlineSwatchRound:
|
|
6
|
+
listItemLabel: l,
|
|
7
|
+
listItemSwatch: o,
|
|
8
|
+
grid: c,
|
|
9
|
+
inlineSection: _,
|
|
10
|
+
inlineSectionLabel: s,
|
|
11
|
+
inlineRow: w,
|
|
12
|
+
inlineSwatch: a,
|
|
13
|
+
inlineSwatchActive: d,
|
|
14
|
+
inlineSwatchRound: S
|
|
15
15
|
};
|
|
16
16
|
export {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
17
|
+
h as default,
|
|
18
|
+
c as grid,
|
|
19
|
+
w as inlineRow,
|
|
20
|
+
_ as inlineSection,
|
|
21
|
+
s as inlineSectionLabel,
|
|
22
|
+
a as inlineSwatch,
|
|
23
|
+
d as inlineSwatchActive,
|
|
24
|
+
S as inlineSwatchRound,
|
|
25
25
|
n as listItem,
|
|
26
26
|
e as listItemActive,
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
27
|
+
l as listItemLabel,
|
|
28
|
+
o as listItemSwatch,
|
|
29
|
+
i as section,
|
|
30
|
+
t as sectionLabel
|
|
31
31
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ColorPickerList.d.ts","sourceRoot":"","sources":["../../../src/components/ColorPicker/ColorPickerList.tsx"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,oBAAoB,EAAgB,MAAM,SAAS,CAAC;AAqHlE;;oEAEoE;AACpE,wBAAgB,eAAe,CAAC,EAC9B,QAAQ,EACR,MAAM,EACN,KAAK,EACL,QAAQ,EACR,OAAW,EACX,gBAAgB,GACjB,EAAE,oBAAoB,
|
|
1
|
+
{"version":3,"file":"ColorPickerList.d.ts","sourceRoot":"","sources":["../../../src/components/ColorPicker/ColorPickerList.tsx"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,oBAAoB,EAAgB,MAAM,SAAS,CAAC;AAqHlE;;oEAEoE;AACpE,wBAAgB,eAAe,CAAC,EAC9B,QAAQ,EACR,MAAM,EACN,KAAK,EACL,QAAQ,EACR,OAAW,EACX,gBAAgB,GACjB,EAAE,oBAAoB,2CA8CtB"}
|
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
import { jsxs as y, jsx as
|
|
1
|
+
import { jsxs as y, jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import { useTranslation as g } from "react-i18next";
|
|
3
3
|
import { Tick02Icon as k } from "@hugeicons/core-free-icons";
|
|
4
4
|
import { HugeiconsIcon as x } from "@hugeicons/react";
|
|
5
|
-
import {
|
|
5
|
+
import { useComputedColorScheme as L, Box as S, useMantineTheme as F, getThemeColor as N, ColorSwatch as T } from "@mantine/core";
|
|
6
6
|
import { TextColorIcon as z } from "./icons.js";
|
|
7
7
|
import { resolveColorLabel as D, isDefaultColor as b, normalizeColorItem as $ } from "./types.js";
|
|
8
8
|
import { useRecentColors as w } from "./useRecentColors.js";
|
|
9
|
-
import
|
|
9
|
+
import i from "./ColorPicker.module.css.js";
|
|
10
10
|
function j({
|
|
11
11
|
type: e,
|
|
12
12
|
colorValue: l,
|
|
13
13
|
resolvedColor: n,
|
|
14
|
-
border:
|
|
14
|
+
border: s,
|
|
15
15
|
bg: c
|
|
16
16
|
}) {
|
|
17
17
|
if (e === "text")
|
|
18
|
-
return /* @__PURE__ */
|
|
19
|
-
const
|
|
20
|
-
return /* @__PURE__ */
|
|
18
|
+
return /* @__PURE__ */ r(z, { size: 16, color: n, showBorder: !0 });
|
|
19
|
+
const a = b(l);
|
|
20
|
+
return /* @__PURE__ */ r(
|
|
21
21
|
T,
|
|
22
22
|
{
|
|
23
|
-
color:
|
|
23
|
+
color: a ? "var(--mantine-color-body)" : c || s || l,
|
|
24
24
|
size: 16,
|
|
25
25
|
radius: "xl",
|
|
26
|
-
className:
|
|
26
|
+
className: i.listItemSwatch,
|
|
27
27
|
styles: {
|
|
28
28
|
root: {
|
|
29
|
-
border: `1.5px solid ${
|
|
29
|
+
border: `1.5px solid ${a ? "var(--mantine-color-default-border)" : s || n}`
|
|
30
30
|
},
|
|
31
31
|
alphaOverlay: { display: "none" },
|
|
32
32
|
shadowOverlay: { display: "none" }
|
|
@@ -38,42 +38,42 @@ function v({
|
|
|
38
38
|
section: e,
|
|
39
39
|
columns: l,
|
|
40
40
|
onChange: n,
|
|
41
|
-
isDark:
|
|
41
|
+
isDark: s
|
|
42
42
|
}) {
|
|
43
|
-
const c =
|
|
44
|
-
return /* @__PURE__ */ y("div", { className:
|
|
45
|
-
e.label && /* @__PURE__ */
|
|
46
|
-
/* @__PURE__ */
|
|
43
|
+
const c = F(), { t: a } = g("ui"), p = l > 1;
|
|
44
|
+
return /* @__PURE__ */ y("div", { className: i.section, children: [
|
|
45
|
+
e.label && /* @__PURE__ */ r("div", { className: i.sectionLabel, children: e.label }),
|
|
46
|
+
/* @__PURE__ */ r(
|
|
47
47
|
"div",
|
|
48
48
|
{
|
|
49
|
-
className:
|
|
50
|
-
style:
|
|
51
|
-
children: e.colors.map((
|
|
49
|
+
className: p ? i.grid : void 0,
|
|
50
|
+
style: p ? { gridTemplateColumns: `repeat(${l}, minmax(0, 1fr))` } : void 0,
|
|
51
|
+
children: e.colors.map((d) => {
|
|
52
52
|
const {
|
|
53
53
|
value: o,
|
|
54
54
|
label: f,
|
|
55
|
-
border:
|
|
55
|
+
border: u,
|
|
56
56
|
bg: h
|
|
57
|
-
} = $(
|
|
57
|
+
} = $(d), t = b(o), m = o === e.value, C = t ? s ? "#FFFFFF" : "#000000" : N(o, c), I = D(a, o, f);
|
|
58
58
|
return /* @__PURE__ */ y(
|
|
59
59
|
"button",
|
|
60
60
|
{
|
|
61
61
|
type: "button",
|
|
62
|
-
className: `${
|
|
62
|
+
className: `${i.listItem} ${m ? i.listItemActive : ""}`,
|
|
63
63
|
onClick: () => n(o, e.key),
|
|
64
64
|
children: [
|
|
65
|
-
/* @__PURE__ */
|
|
65
|
+
/* @__PURE__ */ r(
|
|
66
66
|
j,
|
|
67
67
|
{
|
|
68
68
|
type: e.type,
|
|
69
69
|
colorValue: o,
|
|
70
70
|
resolvedColor: C,
|
|
71
|
-
border:
|
|
71
|
+
border: u,
|
|
72
72
|
bg: h
|
|
73
73
|
}
|
|
74
74
|
),
|
|
75
|
-
/* @__PURE__ */
|
|
76
|
-
m && /* @__PURE__ */
|
|
75
|
+
/* @__PURE__ */ r("span", { className: i.listItemLabel, children: I }),
|
|
76
|
+
m && /* @__PURE__ */ r(
|
|
77
77
|
x,
|
|
78
78
|
{
|
|
79
79
|
size: 16,
|
|
@@ -90,44 +90,46 @@ function v({
|
|
|
90
90
|
)
|
|
91
91
|
] });
|
|
92
92
|
}
|
|
93
|
-
function
|
|
93
|
+
function P({
|
|
94
94
|
sections: e,
|
|
95
95
|
colors: l,
|
|
96
96
|
value: n,
|
|
97
|
-
onChange:
|
|
97
|
+
onChange: s,
|
|
98
98
|
columns: c = 1,
|
|
99
|
-
withRecentColors:
|
|
99
|
+
withRecentColors: a
|
|
100
100
|
}) {
|
|
101
|
-
const
|
|
102
|
-
|
|
101
|
+
const d = L("light", {
|
|
102
|
+
getInitialValueInEffect: !0
|
|
103
|
+
}) === "dark", { recentColors: o, addRecent: f } = w(), u = (t, m) => {
|
|
104
|
+
a && f(t, m), s?.(t, m);
|
|
103
105
|
}, h = e || (l ? [{ key: "default", label: "", colors: l, value: n }] : []);
|
|
104
|
-
return /* @__PURE__ */ y(
|
|
105
|
-
|
|
106
|
+
return /* @__PURE__ */ y(S, { children: [
|
|
107
|
+
a && o.length > 0 && /* @__PURE__ */ r(
|
|
106
108
|
v,
|
|
107
109
|
{
|
|
108
110
|
section: {
|
|
109
111
|
key: "__recent",
|
|
110
112
|
label: "Recently used",
|
|
111
|
-
colors: o.map((
|
|
113
|
+
colors: o.map((t) => t.value),
|
|
112
114
|
value: n
|
|
113
115
|
},
|
|
114
116
|
columns: 1,
|
|
115
|
-
onChange:
|
|
116
|
-
isDark:
|
|
117
|
+
onChange: u,
|
|
118
|
+
isDark: d
|
|
117
119
|
}
|
|
118
120
|
),
|
|
119
|
-
h.map((
|
|
121
|
+
h.map((t) => /* @__PURE__ */ r(
|
|
120
122
|
v,
|
|
121
123
|
{
|
|
122
|
-
section:
|
|
124
|
+
section: t,
|
|
123
125
|
columns: c,
|
|
124
|
-
onChange:
|
|
125
|
-
isDark:
|
|
126
|
+
onChange: u,
|
|
127
|
+
isDark: d
|
|
126
128
|
},
|
|
127
|
-
|
|
129
|
+
t.key
|
|
128
130
|
))
|
|
129
131
|
] });
|
|
130
132
|
}
|
|
131
133
|
export {
|
|
132
|
-
|
|
134
|
+
P as ColorPickerList
|
|
133
135
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ColorPickerToolbar.d.ts","sourceRoot":"","sources":["../../../src/components/ColorPicker/ColorPickerToolbar.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ColorPickerToolbar.d.ts","sourceRoot":"","sources":["../../../src/components/ColorPicker/ColorPickerToolbar.tsx"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,mBAAmB,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAMjE;6DAC6D;AAC7D,MAAM,WAAW,uBAAuB;IACtC,QAAQ,EAAE,YAAY,EAAE,CAAC;IACzB,QAAQ,EAAE,mBAAmB,CAAC;IAC9B,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAsCD,eAAO,MAAM,kBAAkB,oHAiM9B,CAAC"}
|