@layers-app/shared 0.4.4 → 0.4.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/components/AnimatedFigurePage/AnimatedFigurePage.module.css.js +13 -13
- package/dist/components/AppContainer/AppContainer.d.ts.map +1 -1
- package/dist/components/AppContainer/AppContainer.js +72 -79
- package/dist/components/AppContainer/AppContainer.module.css.js +6 -6
- 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 +46 -37
- 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/Main.js +4 -4
- package/dist/components/AppContainer/components/SidebarToggleButton.d.ts.map +1 -1
- package/dist/components/AppContainer/components/SidebarToggleButton.js +25 -16
- package/dist/components/AppContainer/components/SlideAnimation.js +4 -4
- 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.map +1 -1
- package/dist/components/AppContainer/components/menus/HelpMenu/HelpMenu.js +131 -121
- package/dist/components/AppContainer/components/menus/HelpMenu/HelpMenu.module.css.js +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 +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/components/GallerySlide.d.ts.map +1 -1
- package/dist/components/AttachmentsGalleryModal/components/GallerySlide.js +33 -33
- package/dist/components/AttachmentsGalleryModal/components/ModalHeader.d.ts.map +1 -1
- package/dist/components/AttachmentsGalleryModal/components/ModalHeader.js +37 -37
- package/dist/components/AttachmentsGalleryModal/components/ShakePlayer/ShakaPlayer.d.ts.map +1 -1
- package/dist/components/AttachmentsGalleryModal/components/ShakePlayer/ShakaPlayer.js +54 -36
- package/dist/components/AttachmentsGalleryModal/components/ShakePlayer/ShakaPlayer.module.css.js +4 -4
- package/dist/components/AttachmentsGalleryModal/components/ShakePlayer/useShakePlayer.d.ts +2 -0
- package/dist/components/AttachmentsGalleryModal/components/ShakePlayer/useShakePlayer.d.ts.map +1 -1
- package/dist/components/AttachmentsGalleryModal/components/ShakePlayer/useShakePlayer.js +84 -37
- 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 +7 -7
- package/dist/components/AttachmentsPreview/AttachmentsPreview.d.ts.map +1 -1
- package/dist/components/AttachmentsPreview/AttachmentsPreview.js +138 -84
- 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 +15 -0
- package/dist/components/Chat/CallMessage/index.d.ts +21 -0
- package/dist/components/Chat/CallMessage/index.d.ts.map +1 -0
- package/dist/components/Chat/CallMessage/index.js +49 -0
- package/dist/components/Chat/ChatBubble/ChatBubble.module.css.js +9 -0
- package/dist/components/Chat/ChatBubble/index.d.ts +14 -0
- package/dist/components/Chat/ChatBubble/index.d.ts.map +1 -0
- package/dist/components/Chat/ChatBubble/index.js +32 -0
- package/dist/components/Chat/ChatHeader/ChatHeader.module.css.js +17 -0
- package/dist/components/Chat/ChatHeader/index.d.ts +42 -0
- package/dist/components/Chat/ChatHeader/index.d.ts.map +1 -0
- package/dist/components/Chat/ChatHeader/index.js +78 -0
- package/dist/components/Chat/ChatInput/ChatInput.module.css.js +49 -0
- package/dist/components/Chat/ChatInput/index.d.ts +74 -0
- package/dist/components/Chat/ChatInput/index.d.ts.map +1 -0
- package/dist/components/Chat/ChatInput/index.js +288 -0
- 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 +15 -0
- package/dist/components/Chat/ChatLayout/index.d.ts +17 -0
- package/dist/components/Chat/ChatLayout/index.d.ts.map +1 -0
- package/dist/components/Chat/ChatLayout/index.js +43 -0
- package/dist/components/Chat/ChatMessage/ChatMessage.module.css.js +21 -0
- package/dist/components/Chat/ChatMessage/index.d.ts +47 -0
- package/dist/components/Chat/ChatMessage/index.d.ts.map +1 -0
- package/dist/components/Chat/ChatMessage/index.js +206 -0
- package/dist/components/Chat/ChatPill/ChatPill.module.css.js +11 -0
- package/dist/components/Chat/ChatPill/index.d.ts +12 -0
- package/dist/components/Chat/ChatPill/index.d.ts.map +1 -0
- package/dist/components/Chat/ChatPill/index.js +21 -0
- package/dist/components/Chat/DayMeta/index.d.ts +11 -0
- package/dist/components/Chat/DayMeta/index.d.ts.map +1 -0
- package/dist/components/Chat/DayMeta/index.js +9 -0
- package/dist/components/Chat/DialogItem/DialogItem.module.css.js +17 -0
- package/dist/components/Chat/DialogItem/index.d.ts +41 -0
- package/dist/components/Chat/DialogItem/index.d.ts.map +1 -0
- package/dist/components/Chat/DialogItem/index.js +107 -0
- package/dist/components/Chat/DialogList/DialogList.module.css.js +7 -0
- package/dist/components/Chat/DialogList/index.d.ts +11 -0
- package/dist/components/Chat/DialogList/index.d.ts.map +1 -0
- package/dist/components/Chat/DialogList/index.js +19 -0
- package/dist/components/Chat/MediaDocument/MediaDocument.module.css.js +13 -0
- package/dist/components/Chat/MediaDocument/index.d.ts +15 -0
- package/dist/components/Chat/MediaDocument/index.d.ts.map +1 -0
- package/dist/components/Chat/MediaDocument/index.js +73 -0
- package/dist/components/Chat/MessageActions/MessageActions.module.css.js +7 -0
- package/dist/components/Chat/MessageActions/index.d.ts +23 -0
- package/dist/components/Chat/MessageActions/index.d.ts.map +1 -0
- package/dist/components/Chat/MessageActions/index.js +68 -0
- package/dist/components/Chat/MessageAuthor/index.d.ts +20 -0
- package/dist/components/Chat/MessageAuthor/index.d.ts.map +1 -0
- package/dist/components/Chat/MessageAuthor/index.js +36 -0
- package/dist/components/Chat/MessageForward/MessageForward.module.css.js +7 -0
- package/dist/components/Chat/MessageForward/index.d.ts +13 -0
- package/dist/components/Chat/MessageForward/index.d.ts.map +1 -0
- package/dist/components/Chat/MessageForward/index.js +30 -0
- package/dist/components/Chat/MessageList/MessageList.module.css.js +21 -0
- package/dist/components/Chat/MessageList/index.d.ts +39 -0
- package/dist/components/Chat/MessageList/index.d.ts.map +1 -0
- package/dist/components/Chat/MessageList/index.js +159 -0
- package/dist/components/Chat/MessageMeta/MessageMeta.module.css.js +13 -0
- package/dist/components/Chat/MessageMeta/index.d.ts +16 -0
- package/dist/components/Chat/MessageMeta/index.d.ts.map +1 -0
- package/dist/components/Chat/MessageMeta/index.js +33 -0
- package/dist/components/Chat/MessageReactions/MessageReactions.module.css.js +15 -0
- package/dist/components/Chat/MessageReactions/index.d.ts +32 -0
- package/dist/components/Chat/MessageReactions/index.d.ts.map +1 -0
- package/dist/components/Chat/MessageReactions/index.js +72 -0
- package/dist/components/Chat/MessageReply/MessageReply.module.css.js +15 -0
- package/dist/components/Chat/MessageReply/index.d.ts +15 -0
- package/dist/components/Chat/MessageReply/index.d.ts.map +1 -0
- package/dist/components/Chat/MessageReply/index.js +40 -0
- package/dist/components/Chat/MessageStatus/MessageStatus.module.css.js +11 -0
- package/dist/components/Chat/MessageStatus/index.d.ts +14 -0
- package/dist/components/Chat/MessageStatus/index.d.ts.map +1 -0
- package/dist/components/Chat/MessageStatus/index.js +68 -0
- package/dist/components/Chat/ServiceMessage/ServiceMessage.module.css.js +11 -0
- package/dist/components/Chat/ServiceMessage/index.d.ts +13 -0
- package/dist/components/Chat/ServiceMessage/index.d.ts.map +1 -0
- package/dist/components/Chat/ServiceMessage/index.js +21 -0
- package/dist/components/Chat/UnreadSeparator/index.d.ts +11 -0
- package/dist/components/Chat/UnreadSeparator/index.d.ts.map +1 -0
- package/dist/components/Chat/UnreadSeparator/index.js +13 -0
- package/dist/components/Chat/colors.d.ts +7 -0
- package/dist/components/Chat/colors.d.ts.map +1 -0
- package/dist/components/Chat/colors.js +30 -0
- package/dist/components/Chat/icons.d.ts +9 -0
- package/dist/components/Chat/icons.d.ts.map +1 -0
- package/dist/components/Chat/icons.js +49 -0
- package/dist/components/Chat/index.d.ts +24 -0
- package/dist/components/Chat/index.d.ts.map +1 -0
- package/dist/components/Chat/mock-data.d.ts +32 -0
- package/dist/components/Chat/mock-data.d.ts.map +1 -0
- package/dist/components/Chat/types.d.ts +159 -0
- package/dist/components/Chat/types.d.ts.map +1 -0
- 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.module.css.js +32 -26
- package/dist/components/ColorPicker/ColorPickerList.d.ts.map +1 -1
- package/dist/components/ColorPicker/ColorPickerList.js +81 -68
- package/dist/components/ColorPicker/ColorPickerToolbar.d.ts.map +1 -1
- package/dist/components/ColorPicker/ColorPickerToolbar.js +75 -70
- package/dist/components/ColorPicker/icons.js +5 -5
- package/dist/components/ColorPicker/types.d.ts +6 -0
- package/dist/components/ColorPicker/types.d.ts.map +1 -1
- package/dist/components/ColorPicker/types.js +53 -11
- package/dist/components/ColorPicker/useRecentColors.d.ts +3 -1
- package/dist/components/ColorPicker/useRecentColors.d.ts.map +1 -1
- package/dist/components/ColorPicker/useRecentColors.js +43 -20
- package/dist/components/CommentComposer/CommentComposer.module.css.js +4 -4
- package/dist/components/CommentComposer/types.js +9 -0
- 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 +23 -1
- package/dist/components/EmojiPicker/EmojiPicker.d.ts.map +1 -1
- package/dist/components/EmojiPicker/EmojiPicker.js +126 -88
- 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 +90 -33
- 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.d.ts.map +1 -1
- package/dist/components/FilePicker/FilePicker.js +135 -161
- package/dist/components/FilePicker/FilePicker.module.css.js +8 -12
- package/dist/components/FilePicker/FilePickerGallery.js +13 -13
- package/dist/components/FilePicker/FilePickerGiphy.js +4 -4
- package/dist/components/FilePicker/FilePickerGoogleDrive.js +3 -3
- package/dist/components/FilePicker/FilePickerUnsplash.js +18 -18
- package/dist/components/FilePicker/FilePickerUpload.d.ts.map +1 -1
- package/dist/components/FilePicker/FilePickerUpload.js +55 -47
- 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.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/NotPublicPanel/NotPublicPanel.module.css.js +11 -11
- package/dist/components/Notification/Notification.module.css.js +1 -1
- package/dist/components/PillTabs/PillTabs.d.ts +19 -0
- package/dist/components/PillTabs/PillTabs.d.ts.map +1 -0
- package/dist/components/PillTabs/PillTabs.js +50 -0
- package/dist/components/PillTabs/PillTabs.module.css.js +11 -0
- 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/WorkspaceMenu/WorkspaceItem.d.ts.map +1 -1
- package/dist/components/WorkspaceMenu/WorkspaceItem.js +16 -14
- package/dist/components/modals/RemoveConfirmModal.js +1 -1
- package/dist/components/table/FrontTable.d.ts.map +1 -1
- package/dist/components/table/hooks/useColumnsResizing.d.ts.map +1 -1
- package/dist/config/envConfig.d.ts +2 -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 +15 -0
- package/dist/helpers/showNotifications.d.ts.map +1 -1
- package/dist/helpers/showNotifications.js +114 -72
- package/dist/helpers/showNotifications.module.css.js +16 -4
- 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 +4 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +588 -527
- package/dist/lang/locales/ui_en.json.js +5 -5
- package/dist/lang/locales/ui_es.json.js +1 -1
- package/dist/lang/locales/ui_ru.json.js +1 -1
- package/docs/README.md +499 -499
- package/package.json +78 -75
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const o = "
|
|
1
|
+
const o = "_accordionRoot_1of7x_1", c = "_accordionControl_1of7x_9", n = "_accordionItem_1of7x_17", t = {
|
|
2
2
|
accordionRoot: o,
|
|
3
3
|
accordionControl: c,
|
|
4
4
|
accordionItem: n
|
|
@@ -1,31 +1,37 @@
|
|
|
1
|
-
const i = "
|
|
1
|
+
const i = "_section_1go5u_3", n = "_sectionLabel_1go5u_29", t = "_listItemCaption_1go5u_45", e = "_listItem_1go5u_45", o = "_listItemActive_1go5u_155", c = "_listItemLabel_1go5u_163", l = "_listItemSwatch_1go5u_179", _ = "_grid_1go5u_195", s = "_inlineSection_1go5u_335", a = "_inlineSectionLabel_1go5u_355", S = "_inlineSectionLabelRow_1go5u_371", u = "_inlineSectionCaption_1go5u_383", g = "_inlineRow_1go5u_395", w = "_inlineSwatch_1go5u_413", m = "_inlineSwatchActive_1go5u_465", I = "_inlineSwatchRound_1go5u_485", b = {
|
|
2
2
|
section: i,
|
|
3
|
-
sectionLabel:
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
3
|
+
sectionLabel: n,
|
|
4
|
+
listItemCaption: t,
|
|
5
|
+
listItem: e,
|
|
6
|
+
listItemActive: o,
|
|
7
|
+
listItemLabel: c,
|
|
8
|
+
listItemSwatch: l,
|
|
9
|
+
grid: _,
|
|
10
|
+
inlineSection: s,
|
|
11
|
+
inlineSectionLabel: a,
|
|
12
|
+
inlineSectionLabelRow: S,
|
|
13
|
+
inlineSectionCaption: u,
|
|
14
|
+
inlineRow: g,
|
|
15
|
+
inlineSwatch: w,
|
|
16
|
+
inlineSwatchActive: m,
|
|
17
|
+
inlineSwatchRound: I
|
|
15
18
|
};
|
|
16
19
|
export {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
a as
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
o as
|
|
20
|
+
b as default,
|
|
21
|
+
_ as grid,
|
|
22
|
+
g as inlineRow,
|
|
23
|
+
s as inlineSection,
|
|
24
|
+
u as inlineSectionCaption,
|
|
25
|
+
a as inlineSectionLabel,
|
|
26
|
+
S as inlineSectionLabelRow,
|
|
27
|
+
w as inlineSwatch,
|
|
28
|
+
m as inlineSwatchActive,
|
|
29
|
+
I as inlineSwatchRound,
|
|
30
|
+
e as listItem,
|
|
31
|
+
o as listItemActive,
|
|
32
|
+
t as listItemCaption,
|
|
33
|
+
c as listItemLabel,
|
|
34
|
+
l as listItemSwatch,
|
|
29
35
|
i as section,
|
|
30
|
-
|
|
36
|
+
n as sectionLabel
|
|
31
37
|
};
|
|
@@ -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;
|
|
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;AAiIlE;;oEAEoE;AACpE,wBAAgB,eAAe,CAAC,EAC9B,QAAQ,EACR,MAAM,EACN,KAAK,EACL,QAAQ,EACR,OAAW,EACX,gBAAgB,GACjB,EAAE,oBAAoB,2CAkEtB"}
|
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { useTranslation as
|
|
3
|
-
import { Tick02Icon as
|
|
4
|
-
import { HugeiconsIcon as
|
|
5
|
-
import {
|
|
6
|
-
import { TextColorIcon as
|
|
7
|
-
import {
|
|
8
|
-
import { useRecentColors as
|
|
9
|
-
import
|
|
1
|
+
import { jsxs as C, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { useTranslation as x } from "react-i18next";
|
|
3
|
+
import { Tick02Icon as L } from "@hugeicons/core-free-icons";
|
|
4
|
+
import { HugeiconsIcon as T } from "@hugeicons/react";
|
|
5
|
+
import { useComputedColorScheme as S, Box as F, useMantineTheme as E, getThemeColor as O, ColorSwatch as R } from "@mantine/core";
|
|
6
|
+
import { TextColorIcon as w } from "./icons.js";
|
|
7
|
+
import { normalizeColorItem as I, RECENT_COLOR_HOTKEY as z, resolveRecentKind as D, colorsEqual as K, resolveColorLabel as $, isDefaultColor as N } from "./types.js";
|
|
8
|
+
import { useRecentColors as M } from "./useRecentColors.js";
|
|
9
|
+
import s from "./ColorPicker.module.css.js";
|
|
10
10
|
function j({
|
|
11
11
|
type: e,
|
|
12
|
-
colorValue:
|
|
13
|
-
resolvedColor:
|
|
14
|
-
border:
|
|
15
|
-
bg:
|
|
12
|
+
colorValue: n,
|
|
13
|
+
resolvedColor: i,
|
|
14
|
+
border: c,
|
|
15
|
+
bg: m
|
|
16
16
|
}) {
|
|
17
17
|
if (e === "text")
|
|
18
|
-
return /* @__PURE__ */
|
|
19
|
-
const
|
|
20
|
-
return /* @__PURE__ */
|
|
21
|
-
|
|
18
|
+
return /* @__PURE__ */ r(w, { size: 16, color: i, showBorder: !0 });
|
|
19
|
+
const a = N(n);
|
|
20
|
+
return /* @__PURE__ */ r(
|
|
21
|
+
R,
|
|
22
22
|
{
|
|
23
|
-
color:
|
|
23
|
+
color: a ? "var(--mantine-color-body)" : m || c || n,
|
|
24
24
|
size: 16,
|
|
25
25
|
radius: "xl",
|
|
26
|
-
className:
|
|
26
|
+
className: s.listItemSwatch,
|
|
27
27
|
styles: {
|
|
28
28
|
root: {
|
|
29
|
-
border: `1.5px solid ${
|
|
29
|
+
border: `1.5px solid ${a ? "var(--mantine-color-default-border)" : c || i}`
|
|
30
30
|
},
|
|
31
31
|
alphaOverlay: { display: "none" },
|
|
32
32
|
shadowOverlay: { display: "none" }
|
|
@@ -34,100 +34,113 @@ function j({
|
|
|
34
34
|
}
|
|
35
35
|
);
|
|
36
36
|
}
|
|
37
|
-
function
|
|
37
|
+
function g({
|
|
38
38
|
section: e,
|
|
39
|
-
columns:
|
|
40
|
-
onChange:
|
|
41
|
-
isDark:
|
|
39
|
+
columns: n,
|
|
40
|
+
onChange: i,
|
|
41
|
+
isDark: c,
|
|
42
|
+
itemCaption: m
|
|
42
43
|
}) {
|
|
43
|
-
const
|
|
44
|
-
return /* @__PURE__ */
|
|
45
|
-
e.label && /* @__PURE__ */
|
|
46
|
-
/* @__PURE__ */
|
|
44
|
+
const a = E(), { t: v } = x("ui"), y = n > 1;
|
|
45
|
+
return /* @__PURE__ */ C("div", { className: s.section, children: [
|
|
46
|
+
e.label && /* @__PURE__ */ r("div", { className: s.sectionLabel, children: e.label }),
|
|
47
|
+
/* @__PURE__ */ r(
|
|
47
48
|
"div",
|
|
48
49
|
{
|
|
49
|
-
className:
|
|
50
|
-
style:
|
|
50
|
+
className: y ? s.grid : void 0,
|
|
51
|
+
style: y ? { gridTemplateColumns: `repeat(${n}, minmax(0, 1fr))` } : void 0,
|
|
51
52
|
children: e.colors.map((u) => {
|
|
52
53
|
const {
|
|
53
|
-
value:
|
|
54
|
-
label:
|
|
54
|
+
value: l,
|
|
55
|
+
label: b,
|
|
55
56
|
border: p,
|
|
56
|
-
bg:
|
|
57
|
-
} =
|
|
58
|
-
return /* @__PURE__ */
|
|
57
|
+
bg: f
|
|
58
|
+
} = I(u), t = N(l), d = K(l, e.value), h = t ? c ? "#FFFFFF" : "#000000" : O(l, a), o = $(v, l, b);
|
|
59
|
+
return /* @__PURE__ */ C(
|
|
59
60
|
"button",
|
|
60
61
|
{
|
|
61
62
|
type: "button",
|
|
62
|
-
className: `${
|
|
63
|
-
onClick: () =>
|
|
63
|
+
className: `${s.listItem} ${d ? s.listItemActive : ""}`,
|
|
64
|
+
onClick: () => i(l, e.key),
|
|
64
65
|
children: [
|
|
65
|
-
/* @__PURE__ */
|
|
66
|
+
/* @__PURE__ */ r(
|
|
66
67
|
j,
|
|
67
68
|
{
|
|
68
69
|
type: e.type,
|
|
69
|
-
colorValue:
|
|
70
|
-
resolvedColor:
|
|
70
|
+
colorValue: l,
|
|
71
|
+
resolvedColor: h,
|
|
71
72
|
border: p,
|
|
72
|
-
bg:
|
|
73
|
+
bg: f
|
|
73
74
|
}
|
|
74
75
|
),
|
|
75
|
-
/* @__PURE__ */
|
|
76
|
-
m && /* @__PURE__ */
|
|
77
|
-
|
|
76
|
+
/* @__PURE__ */ r("span", { className: s.listItemLabel, children: o }),
|
|
77
|
+
m && /* @__PURE__ */ r("span", { className: s.listItemCaption, children: m }),
|
|
78
|
+
d && /* @__PURE__ */ r(
|
|
79
|
+
T,
|
|
78
80
|
{
|
|
79
81
|
size: 16,
|
|
80
|
-
icon:
|
|
82
|
+
icon: L,
|
|
81
83
|
color: "var(--mantine-primary-color-filled)"
|
|
82
84
|
}
|
|
83
85
|
)
|
|
84
86
|
]
|
|
85
87
|
},
|
|
86
|
-
|
|
88
|
+
l
|
|
87
89
|
);
|
|
88
90
|
})
|
|
89
91
|
}
|
|
90
92
|
)
|
|
91
93
|
] });
|
|
92
94
|
}
|
|
93
|
-
function
|
|
95
|
+
function J({
|
|
94
96
|
sections: e,
|
|
95
|
-
colors:
|
|
96
|
-
value:
|
|
97
|
-
onChange:
|
|
98
|
-
columns:
|
|
99
|
-
withRecentColors:
|
|
97
|
+
colors: n,
|
|
98
|
+
value: i,
|
|
99
|
+
onChange: c,
|
|
100
|
+
columns: m = 1,
|
|
101
|
+
withRecentColors: a
|
|
100
102
|
}) {
|
|
101
|
-
const {
|
|
102
|
-
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
103
|
+
const { t: v } = x("ui"), u = S("light", {
|
|
104
|
+
getInitialValueInEffect: !0
|
|
105
|
+
}) === "dark", { recentColors: l, addRecent: b } = M(), p = (o, k) => {
|
|
106
|
+
a && b(o, k), c?.(o, k);
|
|
107
|
+
}, f = e || (n ? [{ key: "default", label: "", colors: n, value: i }] : []), t = l[0], d = t ? f.find((o) => o.key === t.sectionKey)?.colors.find(
|
|
108
|
+
(o) => I(o).value === t.value
|
|
109
|
+
) : void 0, h = d ? I(d) : void 0;
|
|
110
|
+
return /* @__PURE__ */ C(F, { w: "100%", children: [
|
|
111
|
+
a && t && /* @__PURE__ */ r(
|
|
112
|
+
g,
|
|
107
113
|
{
|
|
108
114
|
section: {
|
|
109
|
-
key: "
|
|
110
|
-
label: "
|
|
111
|
-
|
|
112
|
-
|
|
115
|
+
key: t.sectionKey ?? "",
|
|
116
|
+
label: v("colorPicker.recentlyUsed"),
|
|
117
|
+
type: D(t.sectionKey),
|
|
118
|
+
colors: [
|
|
119
|
+
{
|
|
120
|
+
value: t.value,
|
|
121
|
+
label: h?.label,
|
|
122
|
+
border: t.border ?? h?.border
|
|
123
|
+
}
|
|
124
|
+
]
|
|
113
125
|
},
|
|
114
126
|
columns: 1,
|
|
127
|
+
itemCaption: z,
|
|
115
128
|
onChange: p,
|
|
116
129
|
isDark: u
|
|
117
130
|
}
|
|
118
131
|
),
|
|
119
|
-
|
|
120
|
-
|
|
132
|
+
f.map((o) => /* @__PURE__ */ r(
|
|
133
|
+
g,
|
|
121
134
|
{
|
|
122
|
-
section:
|
|
123
|
-
columns:
|
|
135
|
+
section: o,
|
|
136
|
+
columns: m,
|
|
124
137
|
onChange: p,
|
|
125
138
|
isDark: u
|
|
126
139
|
},
|
|
127
|
-
|
|
140
|
+
o.key
|
|
128
141
|
))
|
|
129
142
|
] });
|
|
130
143
|
}
|
|
131
144
|
export {
|
|
132
|
-
|
|
145
|
+
J as ColorPickerList
|
|
133
146
|
};
|
|
@@ -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;AAYjE;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,oHA0M9B,CAAC"}
|
|
@@ -1,107 +1,112 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { useTranslation as
|
|
4
|
-
import {
|
|
5
|
-
import { TextColorIcon as K, HighlightSwatch as
|
|
6
|
-
import { normalizeColorItem as w, resolveColorLabel as
|
|
7
|
-
import { useRecentColors as
|
|
8
|
-
import
|
|
1
|
+
import { jsxs as k, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as y, useState as M, useCallback as g, useMemo as O } from "react";
|
|
3
|
+
import { useTranslation as j } from "react-i18next";
|
|
4
|
+
import { useComputedColorScheme as P, Box as u, Flex as I, Tooltip as U, UnstyledButton as _ } from "@mantine/core";
|
|
5
|
+
import { TextColorIcon as K, HighlightSwatch as A } from "./icons.js";
|
|
6
|
+
import { normalizeColorItem as w, resolveColorLabel as B, isDefaultColor as q, RECENT_COLOR_HOTKEY as V, colorsEqual as Y } from "./types.js";
|
|
7
|
+
import { useRecentColors as G } from "./useRecentColors.js";
|
|
8
|
+
import r from "./ColorPicker.module.css.js";
|
|
9
9
|
function v({
|
|
10
|
-
isActive:
|
|
10
|
+
isActive: m,
|
|
11
11
|
round: d,
|
|
12
|
-
disabled:
|
|
12
|
+
disabled: h,
|
|
13
13
|
onClick: f,
|
|
14
14
|
children: i,
|
|
15
15
|
tooltipLabel: p
|
|
16
16
|
}) {
|
|
17
|
-
const b = /* @__PURE__ */
|
|
18
|
-
|
|
17
|
+
const b = /* @__PURE__ */ t(
|
|
18
|
+
_,
|
|
19
19
|
{
|
|
20
20
|
type: "button",
|
|
21
|
-
className: `${
|
|
22
|
-
onMouseDown: (
|
|
21
|
+
className: `${r.inlineSwatch}${d ? ` ${r.inlineSwatchRound}` : ""}${m ? ` ${r.inlineSwatchActive}` : ""}`,
|
|
22
|
+
onMouseDown: (a) => a.preventDefault(),
|
|
23
23
|
onClick: f,
|
|
24
|
-
disabled:
|
|
24
|
+
disabled: h,
|
|
25
25
|
children: i
|
|
26
26
|
}
|
|
27
27
|
);
|
|
28
|
-
return p ? /* @__PURE__ */
|
|
28
|
+
return p ? /* @__PURE__ */ t(U, { label: p, withArrow: !0, zIndex: 400, children: b }) : b;
|
|
29
29
|
}
|
|
30
|
-
const
|
|
30
|
+
const re = y(
|
|
31
31
|
({
|
|
32
|
-
sections:
|
|
32
|
+
sections: m,
|
|
33
33
|
onChange: d,
|
|
34
|
-
withRecentColors:
|
|
35
|
-
maxRecentColors: f =
|
|
34
|
+
withRecentColors: h,
|
|
35
|
+
maxRecentColors: f = 10,
|
|
36
36
|
disabled: i,
|
|
37
|
-
recentColorsLabel: p
|
|
37
|
+
recentColorsLabel: p
|
|
38
38
|
}, b) => {
|
|
39
|
-
const { t:
|
|
39
|
+
const { t: a } = j("ui"), E = p ?? a("colorPicker.recentlyUsed"), L = P("light", {
|
|
40
|
+
getInitialValueInEffect: !0
|
|
41
|
+
}) === "dark", { recentColors: z, addRecent: x } = G({
|
|
40
42
|
maxItems: f
|
|
41
|
-
}), [
|
|
43
|
+
}), [$, D] = M(z), C = g(
|
|
42
44
|
(e, o, c) => {
|
|
43
|
-
|
|
44
|
-
const
|
|
45
|
+
h && (x(e, o, c), D((l) => {
|
|
46
|
+
const n = l.filter(
|
|
45
47
|
(s) => !(s.value === e && s.sectionKey === o)
|
|
46
48
|
);
|
|
47
|
-
return [{ value: e, sectionKey: o, border: c }, ...
|
|
49
|
+
return [{ value: e, sectionKey: o, border: c }, ...n].slice(
|
|
48
50
|
0,
|
|
49
51
|
f
|
|
50
52
|
);
|
|
51
53
|
})), d(e, o);
|
|
52
54
|
},
|
|
53
|
-
[d,
|
|
54
|
-
),
|
|
55
|
+
[d, h, x]
|
|
56
|
+
), S = O(() => {
|
|
55
57
|
const e = {};
|
|
56
|
-
for (const o of
|
|
58
|
+
for (const o of m) e[o.key] = o;
|
|
57
59
|
return e;
|
|
58
|
-
}, [
|
|
60
|
+
}, [m]), H = g(
|
|
59
61
|
(e, o) => {
|
|
60
|
-
const l = (o ?
|
|
62
|
+
const l = (o ? S[o] : void 0)?.colors.find(
|
|
61
63
|
(s) => w(s).value === e
|
|
62
|
-
),
|
|
63
|
-
return
|
|
64
|
+
), n = l ? w(l).label : void 0;
|
|
65
|
+
return B(a, e, n);
|
|
64
66
|
},
|
|
65
|
-
[
|
|
66
|
-
),
|
|
67
|
-
(e) =>
|
|
68
|
-
[
|
|
67
|
+
[S, a]
|
|
68
|
+
), N = g(
|
|
69
|
+
(e) => q(e) ? L ? "#FFFFFF" : "#000000" : e,
|
|
70
|
+
[L]
|
|
69
71
|
);
|
|
70
|
-
return /* @__PURE__ */
|
|
71
|
-
|
|
72
|
-
/* @__PURE__ */
|
|
73
|
-
|
|
74
|
-
|
|
72
|
+
return /* @__PURE__ */ k(u, { ref: b, children: [
|
|
73
|
+
h && $.length > 0 && /* @__PURE__ */ k(u, { className: r.inlineSection, children: [
|
|
74
|
+
/* @__PURE__ */ k(u, { className: r.inlineSectionLabelRow, children: [
|
|
75
|
+
/* @__PURE__ */ t(u, { className: r.inlineSectionLabel, children: E }),
|
|
76
|
+
/* @__PURE__ */ t("span", { className: r.inlineSectionCaption, children: V })
|
|
77
|
+
] }),
|
|
78
|
+
/* @__PURE__ */ t(I, { className: r.inlineRow, gap: 2, children: $.map((e, o) => {
|
|
79
|
+
const c = e.sectionKey ? S[e.sectionKey] : void 0, l = c?.key === "textColor" || c?.key === "color" || e.sectionKey === "color", n = H(
|
|
75
80
|
e.value,
|
|
76
81
|
e.sectionKey
|
|
77
82
|
);
|
|
78
|
-
return l ? /* @__PURE__ */
|
|
83
|
+
return l ? /* @__PURE__ */ t(
|
|
79
84
|
v,
|
|
80
85
|
{
|
|
81
86
|
isActive: !1,
|
|
82
87
|
disabled: i,
|
|
83
|
-
tooltipLabel:
|
|
84
|
-
onClick: () =>
|
|
85
|
-
children: /* @__PURE__ */
|
|
88
|
+
tooltipLabel: n,
|
|
89
|
+
onClick: () => C(e.value, e.sectionKey ?? ""),
|
|
90
|
+
children: /* @__PURE__ */ t(
|
|
86
91
|
K,
|
|
87
92
|
{
|
|
88
93
|
size: 20,
|
|
89
|
-
color:
|
|
94
|
+
color: N(e.value),
|
|
90
95
|
showBorder: !0
|
|
91
96
|
}
|
|
92
97
|
)
|
|
93
98
|
},
|
|
94
99
|
`${e.sectionKey}-${e.value}-${o}`
|
|
95
|
-
) : /* @__PURE__ */
|
|
100
|
+
) : /* @__PURE__ */ t(
|
|
96
101
|
v,
|
|
97
102
|
{
|
|
98
103
|
isActive: !1,
|
|
99
104
|
round: !0,
|
|
100
105
|
disabled: i,
|
|
101
|
-
tooltipLabel:
|
|
102
|
-
onClick: () =>
|
|
103
|
-
children: /* @__PURE__ */
|
|
104
|
-
|
|
106
|
+
tooltipLabel: n,
|
|
107
|
+
onClick: () => C(e.value, e.sectionKey ?? ""),
|
|
108
|
+
children: /* @__PURE__ */ t(
|
|
109
|
+
A,
|
|
105
110
|
{
|
|
106
111
|
bgColor: e.value,
|
|
107
112
|
borderColor: e.border || "var(--mantine-color-default-border)"
|
|
@@ -112,37 +117,37 @@ const oe = H(
|
|
|
112
117
|
);
|
|
113
118
|
}) })
|
|
114
119
|
] }),
|
|
115
|
-
|
|
120
|
+
m.map((e) => {
|
|
116
121
|
const o = e.key === "highlight" || e.key === "background" || e.key === "textHighlight";
|
|
117
|
-
return /* @__PURE__ */
|
|
118
|
-
e.label && /* @__PURE__ */
|
|
119
|
-
/* @__PURE__ */
|
|
120
|
-
const { value: l, border:
|
|
121
|
-
return o ? /* @__PURE__ */
|
|
122
|
+
return /* @__PURE__ */ k(u, { className: r.inlineSection, children: [
|
|
123
|
+
e.label && /* @__PURE__ */ t(u, { className: r.inlineSectionLabel, children: e.label }),
|
|
124
|
+
/* @__PURE__ */ t(I, { className: r.inlineRow, gap: 2, children: e.colors.map((c) => {
|
|
125
|
+
const { value: l, border: n, label: s } = w(c), R = Y(l, e.value), F = N(l), T = B(a, l, s);
|
|
126
|
+
return o ? /* @__PURE__ */ t(
|
|
122
127
|
v,
|
|
123
128
|
{
|
|
124
|
-
isActive:
|
|
129
|
+
isActive: R,
|
|
125
130
|
round: !0,
|
|
126
131
|
disabled: i,
|
|
127
|
-
tooltipLabel:
|
|
128
|
-
onClick: () =>
|
|
129
|
-
children: /* @__PURE__ */
|
|
130
|
-
|
|
132
|
+
tooltipLabel: T,
|
|
133
|
+
onClick: () => C(l, e.key, n),
|
|
134
|
+
children: /* @__PURE__ */ t(
|
|
135
|
+
A,
|
|
131
136
|
{
|
|
132
137
|
bgColor: l,
|
|
133
|
-
borderColor:
|
|
138
|
+
borderColor: n || F
|
|
134
139
|
}
|
|
135
140
|
)
|
|
136
141
|
},
|
|
137
142
|
l
|
|
138
|
-
) : /* @__PURE__ */
|
|
143
|
+
) : /* @__PURE__ */ t(
|
|
139
144
|
v,
|
|
140
145
|
{
|
|
141
|
-
isActive:
|
|
146
|
+
isActive: R,
|
|
142
147
|
disabled: i,
|
|
143
|
-
tooltipLabel:
|
|
144
|
-
onClick: () =>
|
|
145
|
-
children: /* @__PURE__ */
|
|
148
|
+
tooltipLabel: T,
|
|
149
|
+
onClick: () => C(l, e.key),
|
|
150
|
+
children: /* @__PURE__ */ t(K, { size: 20, color: F, showBorder: !0 })
|
|
146
151
|
},
|
|
147
152
|
l
|
|
148
153
|
);
|
|
@@ -153,5 +158,5 @@ const oe = H(
|
|
|
153
158
|
}
|
|
154
159
|
);
|
|
155
160
|
export {
|
|
156
|
-
|
|
161
|
+
re as ColorPickerToolbar
|
|
157
162
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { jsx as n, jsxs as
|
|
1
|
+
import { jsx as n, jsxs as a } from "react/jsx-runtime";
|
|
2
2
|
function s({
|
|
3
3
|
size: t = 20,
|
|
4
4
|
color: r = "var(--mantine-color-white)",
|
|
5
5
|
showBorder: e
|
|
6
6
|
}) {
|
|
7
|
-
return /* @__PURE__ */
|
|
7
|
+
return /* @__PURE__ */ a(
|
|
8
8
|
"svg",
|
|
9
9
|
{
|
|
10
10
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -21,7 +21,7 @@ function s({
|
|
|
21
21
|
width: "19",
|
|
22
22
|
height: "19",
|
|
23
23
|
rx: "5.5",
|
|
24
|
-
stroke: "var(--mantine-color-gray-4)",
|
|
24
|
+
stroke: "light-dark(var(--mantine-color-gray-4), var(--mantine-color-dark-4))",
|
|
25
25
|
strokeWidth: "1",
|
|
26
26
|
fill: "none"
|
|
27
27
|
}
|
|
@@ -37,7 +37,7 @@ function s({
|
|
|
37
37
|
}
|
|
38
38
|
);
|
|
39
39
|
}
|
|
40
|
-
function
|
|
40
|
+
function d({
|
|
41
41
|
size: t = 24,
|
|
42
42
|
bgColor: r,
|
|
43
43
|
borderColor: e
|
|
@@ -66,6 +66,6 @@ function w({
|
|
|
66
66
|
);
|
|
67
67
|
}
|
|
68
68
|
export {
|
|
69
|
-
|
|
69
|
+
d as HighlightSwatch,
|
|
70
70
|
s as TextColorIcon
|
|
71
71
|
};
|
|
@@ -18,6 +18,11 @@ export interface RecentColorEntry {
|
|
|
18
18
|
sectionKey?: string;
|
|
19
19
|
border?: string;
|
|
20
20
|
}
|
|
21
|
+
export type RecentColorKind = 'text' | 'highlight';
|
|
22
|
+
export declare function isTextSectionKey(sectionKey?: string): boolean;
|
|
23
|
+
export declare function resolveRecentKind(sectionKey?: string): RecentColorKind;
|
|
24
|
+
export declare const IS_APPLE: boolean;
|
|
25
|
+
export declare const RECENT_COLOR_HOTKEY: string;
|
|
21
26
|
export type ColorPickerOnChange = (value: string, sectionKey?: string) => void;
|
|
22
27
|
export interface ColorPickerBaseProps {
|
|
23
28
|
colors?: ColorItem[];
|
|
@@ -47,5 +52,6 @@ export declare function normalizeColorItem(item: ColorItem): {
|
|
|
47
52
|
bg?: string;
|
|
48
53
|
};
|
|
49
54
|
export declare function isDefaultColor(value: string): boolean;
|
|
55
|
+
export declare function colorsEqual(a?: string | null, b?: string | null): boolean;
|
|
50
56
|
export declare const resolveColorLabel: (t: TFunction, value: string | null | undefined, explicitLabel?: string) => string;
|
|
51
57
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/ColorPicker/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC/C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEzC,MAAM,MAAM,SAAS,GACjB,MAAM,GACN;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IAAC,MAAM,CAAC,EAAE,MAAM,CAAC;IAAC,EAAE,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AAEpE,MAAM,WAAW,YAAY;IAC3B,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,SAAS,EAAE,CA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