@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.
Files changed (256) hide show
  1. package/dist/components/AnimatedFigurePage/AnimatedFigurePage.module.css.js +13 -13
  2. package/dist/components/AppContainer/AppContainer.d.ts.map +1 -1
  3. package/dist/components/AppContainer/AppContainer.js +72 -79
  4. package/dist/components/AppContainer/AppContainer.module.css.js +6 -6
  5. package/dist/components/AppContainer/components/AppsSidebar/TopSection.d.ts.map +1 -1
  6. package/dist/components/AppContainer/components/AppsSidebar/TopSection.js +24 -22
  7. package/dist/components/AppContainer/components/AppsSidebar/UserSection.d.ts.map +1 -1
  8. package/dist/components/AppContainer/components/AppsSidebar/UserSection.js +46 -37
  9. package/dist/components/AppContainer/components/Header.d.ts.map +1 -1
  10. package/dist/components/AppContainer/components/Header.js +6 -5
  11. package/dist/components/AppContainer/components/Main.js +4 -4
  12. package/dist/components/AppContainer/components/SidebarToggleButton.d.ts.map +1 -1
  13. package/dist/components/AppContainer/components/SidebarToggleButton.js +25 -16
  14. package/dist/components/AppContainer/components/SlideAnimation.js +4 -4
  15. package/dist/components/AppContainer/components/ToolSidebar.d.ts.map +1 -1
  16. package/dist/components/AppContainer/components/ToolSidebar.js +161 -128
  17. package/dist/components/AppContainer/components/menus/HelpMenu/HelpMenu.d.ts.map +1 -1
  18. package/dist/components/AppContainer/components/menus/HelpMenu/HelpMenu.js +131 -121
  19. package/dist/components/AppContainer/components/menus/HelpMenu/HelpMenu.module.css.js +1 -1
  20. package/dist/components/AppContainer/hooks/useAppContainer.d.ts +1 -1
  21. package/dist/components/AppContainer/hooks/useAppContainer.d.ts.map +1 -1
  22. package/dist/components/AppContainer/hooks/useAppContainer.js +59 -56
  23. package/dist/components/AppContainer/hooks/useAppContainerDataStore.d.ts.map +1 -1
  24. package/dist/components/AppContainer/hooks/useAppContainerDataStore.js +4 -3
  25. package/dist/components/AppContainer/types.d.ts +1 -0
  26. package/dist/components/AppContainer/types.d.ts.map +1 -1
  27. package/dist/components/AppShell/AppShell.module.css.js +5 -5
  28. package/dist/components/AttachmentsGalleryModal/components/GallerySlide.d.ts.map +1 -1
  29. package/dist/components/AttachmentsGalleryModal/components/GallerySlide.js +33 -33
  30. package/dist/components/AttachmentsGalleryModal/components/ModalHeader.d.ts.map +1 -1
  31. package/dist/components/AttachmentsGalleryModal/components/ModalHeader.js +37 -37
  32. package/dist/components/AttachmentsGalleryModal/components/ShakePlayer/ShakaPlayer.d.ts.map +1 -1
  33. package/dist/components/AttachmentsGalleryModal/components/ShakePlayer/ShakaPlayer.js +54 -36
  34. package/dist/components/AttachmentsGalleryModal/components/ShakePlayer/ShakaPlayer.module.css.js +4 -4
  35. package/dist/components/AttachmentsGalleryModal/components/ShakePlayer/useShakePlayer.d.ts +2 -0
  36. package/dist/components/AttachmentsGalleryModal/components/ShakePlayer/useShakePlayer.d.ts.map +1 -1
  37. package/dist/components/AttachmentsGalleryModal/components/ShakePlayer/useShakePlayer.js +84 -37
  38. package/dist/components/AttachmentsGalleryModal/helpers.d.ts +8 -0
  39. package/dist/components/AttachmentsGalleryModal/helpers.d.ts.map +1 -1
  40. package/dist/components/AttachmentsGalleryModal/helpers.js +22 -17
  41. package/dist/components/AttachmentsGalleryModal/hooks/useDownloadFile.d.ts.map +1 -1
  42. package/dist/components/AttachmentsGalleryModal/hooks/useDownloadFile.js +28 -25
  43. package/dist/components/AttachmentsGalleryModal/hooks/useGetPreviewUrl.d.ts.map +1 -1
  44. package/dist/components/AttachmentsGalleryModal/hooks/useGetPreviewUrl.js +36 -41
  45. package/dist/components/AttachmentsGalleryModal/styles.module.css.js +7 -7
  46. package/dist/components/AttachmentsPreview/AttachmentsPreview.d.ts.map +1 -1
  47. package/dist/components/AttachmentsPreview/AttachmentsPreview.js +138 -84
  48. package/dist/components/AttachmentsPreview/AttachmentsPreview.module.css.js +24 -14
  49. package/dist/components/BouncingLogo/BouncingLogo.d.ts +1 -3
  50. package/dist/components/BouncingLogo/BouncingLogo.d.ts.map +1 -1
  51. package/dist/components/BouncingLogo/BouncingLogo.js +14 -20
  52. package/dist/components/BouncingLogo/BouncingLogo.module.css.js +4 -8
  53. package/dist/components/Chat/CallMessage/CallMessage.module.css.js +15 -0
  54. package/dist/components/Chat/CallMessage/index.d.ts +21 -0
  55. package/dist/components/Chat/CallMessage/index.d.ts.map +1 -0
  56. package/dist/components/Chat/CallMessage/index.js +49 -0
  57. package/dist/components/Chat/ChatBubble/ChatBubble.module.css.js +9 -0
  58. package/dist/components/Chat/ChatBubble/index.d.ts +14 -0
  59. package/dist/components/Chat/ChatBubble/index.d.ts.map +1 -0
  60. package/dist/components/Chat/ChatBubble/index.js +32 -0
  61. package/dist/components/Chat/ChatHeader/ChatHeader.module.css.js +17 -0
  62. package/dist/components/Chat/ChatHeader/index.d.ts +42 -0
  63. package/dist/components/Chat/ChatHeader/index.d.ts.map +1 -0
  64. package/dist/components/Chat/ChatHeader/index.js +78 -0
  65. package/dist/components/Chat/ChatInput/ChatInput.module.css.js +49 -0
  66. package/dist/components/Chat/ChatInput/index.d.ts +74 -0
  67. package/dist/components/Chat/ChatInput/index.d.ts.map +1 -0
  68. package/dist/components/Chat/ChatInput/index.js +288 -0
  69. package/dist/components/Chat/ChatInput/smilePlusIcon.d.ts +3 -0
  70. package/dist/components/Chat/ChatInput/smilePlusIcon.d.ts.map +1 -0
  71. package/dist/components/Chat/ChatInput/smilePlusIcon.js +49 -0
  72. package/dist/components/Chat/ChatLayout/ChatLayout.module.css.js +15 -0
  73. package/dist/components/Chat/ChatLayout/index.d.ts +17 -0
  74. package/dist/components/Chat/ChatLayout/index.d.ts.map +1 -0
  75. package/dist/components/Chat/ChatLayout/index.js +43 -0
  76. package/dist/components/Chat/ChatMessage/ChatMessage.module.css.js +21 -0
  77. package/dist/components/Chat/ChatMessage/index.d.ts +47 -0
  78. package/dist/components/Chat/ChatMessage/index.d.ts.map +1 -0
  79. package/dist/components/Chat/ChatMessage/index.js +206 -0
  80. package/dist/components/Chat/ChatPill/ChatPill.module.css.js +11 -0
  81. package/dist/components/Chat/ChatPill/index.d.ts +12 -0
  82. package/dist/components/Chat/ChatPill/index.d.ts.map +1 -0
  83. package/dist/components/Chat/ChatPill/index.js +21 -0
  84. package/dist/components/Chat/DayMeta/index.d.ts +11 -0
  85. package/dist/components/Chat/DayMeta/index.d.ts.map +1 -0
  86. package/dist/components/Chat/DayMeta/index.js +9 -0
  87. package/dist/components/Chat/DialogItem/DialogItem.module.css.js +17 -0
  88. package/dist/components/Chat/DialogItem/index.d.ts +41 -0
  89. package/dist/components/Chat/DialogItem/index.d.ts.map +1 -0
  90. package/dist/components/Chat/DialogItem/index.js +107 -0
  91. package/dist/components/Chat/DialogList/DialogList.module.css.js +7 -0
  92. package/dist/components/Chat/DialogList/index.d.ts +11 -0
  93. package/dist/components/Chat/DialogList/index.d.ts.map +1 -0
  94. package/dist/components/Chat/DialogList/index.js +19 -0
  95. package/dist/components/Chat/MediaDocument/MediaDocument.module.css.js +13 -0
  96. package/dist/components/Chat/MediaDocument/index.d.ts +15 -0
  97. package/dist/components/Chat/MediaDocument/index.d.ts.map +1 -0
  98. package/dist/components/Chat/MediaDocument/index.js +73 -0
  99. package/dist/components/Chat/MessageActions/MessageActions.module.css.js +7 -0
  100. package/dist/components/Chat/MessageActions/index.d.ts +23 -0
  101. package/dist/components/Chat/MessageActions/index.d.ts.map +1 -0
  102. package/dist/components/Chat/MessageActions/index.js +68 -0
  103. package/dist/components/Chat/MessageAuthor/index.d.ts +20 -0
  104. package/dist/components/Chat/MessageAuthor/index.d.ts.map +1 -0
  105. package/dist/components/Chat/MessageAuthor/index.js +36 -0
  106. package/dist/components/Chat/MessageForward/MessageForward.module.css.js +7 -0
  107. package/dist/components/Chat/MessageForward/index.d.ts +13 -0
  108. package/dist/components/Chat/MessageForward/index.d.ts.map +1 -0
  109. package/dist/components/Chat/MessageForward/index.js +30 -0
  110. package/dist/components/Chat/MessageList/MessageList.module.css.js +21 -0
  111. package/dist/components/Chat/MessageList/index.d.ts +39 -0
  112. package/dist/components/Chat/MessageList/index.d.ts.map +1 -0
  113. package/dist/components/Chat/MessageList/index.js +159 -0
  114. package/dist/components/Chat/MessageMeta/MessageMeta.module.css.js +13 -0
  115. package/dist/components/Chat/MessageMeta/index.d.ts +16 -0
  116. package/dist/components/Chat/MessageMeta/index.d.ts.map +1 -0
  117. package/dist/components/Chat/MessageMeta/index.js +33 -0
  118. package/dist/components/Chat/MessageReactions/MessageReactions.module.css.js +15 -0
  119. package/dist/components/Chat/MessageReactions/index.d.ts +32 -0
  120. package/dist/components/Chat/MessageReactions/index.d.ts.map +1 -0
  121. package/dist/components/Chat/MessageReactions/index.js +72 -0
  122. package/dist/components/Chat/MessageReply/MessageReply.module.css.js +15 -0
  123. package/dist/components/Chat/MessageReply/index.d.ts +15 -0
  124. package/dist/components/Chat/MessageReply/index.d.ts.map +1 -0
  125. package/dist/components/Chat/MessageReply/index.js +40 -0
  126. package/dist/components/Chat/MessageStatus/MessageStatus.module.css.js +11 -0
  127. package/dist/components/Chat/MessageStatus/index.d.ts +14 -0
  128. package/dist/components/Chat/MessageStatus/index.d.ts.map +1 -0
  129. package/dist/components/Chat/MessageStatus/index.js +68 -0
  130. package/dist/components/Chat/ServiceMessage/ServiceMessage.module.css.js +11 -0
  131. package/dist/components/Chat/ServiceMessage/index.d.ts +13 -0
  132. package/dist/components/Chat/ServiceMessage/index.d.ts.map +1 -0
  133. package/dist/components/Chat/ServiceMessage/index.js +21 -0
  134. package/dist/components/Chat/UnreadSeparator/index.d.ts +11 -0
  135. package/dist/components/Chat/UnreadSeparator/index.d.ts.map +1 -0
  136. package/dist/components/Chat/UnreadSeparator/index.js +13 -0
  137. package/dist/components/Chat/colors.d.ts +7 -0
  138. package/dist/components/Chat/colors.d.ts.map +1 -0
  139. package/dist/components/Chat/colors.js +30 -0
  140. package/dist/components/Chat/icons.d.ts +9 -0
  141. package/dist/components/Chat/icons.d.ts.map +1 -0
  142. package/dist/components/Chat/icons.js +49 -0
  143. package/dist/components/Chat/index.d.ts +24 -0
  144. package/dist/components/Chat/index.d.ts.map +1 -0
  145. package/dist/components/Chat/mock-data.d.ts +32 -0
  146. package/dist/components/Chat/mock-data.d.ts.map +1 -0
  147. package/dist/components/Chat/types.d.ts +159 -0
  148. package/dist/components/Chat/types.d.ts.map +1 -0
  149. package/dist/components/CircleColorPicker/CircleColorPicker.d.ts.map +1 -1
  150. package/dist/components/CircleColorPicker/CircleColorPicker.js +17 -15
  151. package/dist/components/CollapsibleContainer/CollapsibleContainer.module.css.js +1 -1
  152. package/dist/components/ColorPicker/ColorPicker.module.css.js +32 -26
  153. package/dist/components/ColorPicker/ColorPickerList.d.ts.map +1 -1
  154. package/dist/components/ColorPicker/ColorPickerList.js +81 -68
  155. package/dist/components/ColorPicker/ColorPickerToolbar.d.ts.map +1 -1
  156. package/dist/components/ColorPicker/ColorPickerToolbar.js +75 -70
  157. package/dist/components/ColorPicker/icons.js +5 -5
  158. package/dist/components/ColorPicker/types.d.ts +6 -0
  159. package/dist/components/ColorPicker/types.d.ts.map +1 -1
  160. package/dist/components/ColorPicker/types.js +53 -11
  161. package/dist/components/ColorPicker/useRecentColors.d.ts +3 -1
  162. package/dist/components/ColorPicker/useRecentColors.d.ts.map +1 -1
  163. package/dist/components/ColorPicker/useRecentColors.js +43 -20
  164. package/dist/components/CommentComposer/CommentComposer.module.css.js +4 -4
  165. package/dist/components/CommentComposer/types.js +9 -0
  166. package/dist/components/CommunitiesDialog/styles.module.css.js +1 -1
  167. package/dist/components/Copyright/Copyright.module.css.js +1 -1
  168. package/dist/components/CustomKBD/CustomKBD.module.css.js +1 -1
  169. package/dist/components/EmojiPicker/EmojiPanel.d.ts +2 -1
  170. package/dist/components/EmojiPicker/EmojiPanel.d.ts.map +1 -1
  171. package/dist/components/EmojiPicker/EmojiPanel.js +73 -72
  172. package/dist/components/EmojiPicker/EmojiPicker.d.ts +23 -1
  173. package/dist/components/EmojiPicker/EmojiPicker.d.ts.map +1 -1
  174. package/dist/components/EmojiPicker/EmojiPicker.js +126 -88
  175. package/dist/components/EmojiPicker/EmojiPicker.module.css.js +8 -8
  176. package/dist/components/EmojiPicker/IconsPanel.d.ts.map +1 -1
  177. package/dist/components/EmojiPicker/IconsPanel.js +28 -25
  178. package/dist/components/EntityIcon.d.ts +1 -0
  179. package/dist/components/EntityIcon.d.ts.map +1 -1
  180. package/dist/components/EntityIcon.js +90 -33
  181. package/dist/components/EntityTitle/EntityTitle.module.css.js +1 -1
  182. package/dist/components/ErrorPage/components/Error403.d.ts +5 -1
  183. package/dist/components/ErrorPage/components/Error403.d.ts.map +1 -1
  184. package/dist/components/ErrorPage/components/Error403.js +25 -21
  185. package/dist/components/ErrorPage/components/Error404.d.ts.map +1 -1
  186. package/dist/components/ErrorPage/index.d.ts +5 -1
  187. package/dist/components/ErrorPage/index.d.ts.map +1 -1
  188. package/dist/components/ErrorPage/index.js +17 -10
  189. package/dist/components/FeatureProgress/FeatureProgress.module.css.js +49 -49
  190. package/dist/components/FilePicker/FilePicker.d.ts.map +1 -1
  191. package/dist/components/FilePicker/FilePicker.js +135 -161
  192. package/dist/components/FilePicker/FilePicker.module.css.js +8 -12
  193. package/dist/components/FilePicker/FilePickerGallery.js +13 -13
  194. package/dist/components/FilePicker/FilePickerGiphy.js +4 -4
  195. package/dist/components/FilePicker/FilePickerGoogleDrive.js +3 -3
  196. package/dist/components/FilePicker/FilePickerUnsplash.js +18 -18
  197. package/dist/components/FilePicker/FilePickerUpload.d.ts.map +1 -1
  198. package/dist/components/FilePicker/FilePickerUpload.js +55 -47
  199. package/dist/components/FormViewer/FormViewer.module.css.js +20 -20
  200. package/dist/components/FormViewer/components/fields/DragOptions/DragOptions.module.css.js +1 -1
  201. package/dist/components/FormViewer/components/fields/DropdownField/DropdownField.module.css.js +1 -1
  202. package/dist/components/FormViewer/components/fields/EditableContent/EditableContent.module.css.js +1 -1
  203. package/dist/components/FormViewer/components/fields/SelectableCard/SelectableCard.module.css.js +8 -8
  204. package/dist/components/FormViewer/components/fields/UploadField/UploadFile/UploadFile.module.css.js +4 -4
  205. package/dist/components/FormViewer/store/formStore.d.ts.map +1 -1
  206. package/dist/components/ImageCropper/ImageCropper.module.css.js +38 -38
  207. package/dist/components/IntegrationFlowAnimation/IntegrationFlowAnimation.module.css.js +11 -11
  208. package/dist/components/LanguagePicker/LanguagePicker.module.css.js +1 -1
  209. package/dist/components/Loaders/styles.module.css.js +6 -6
  210. package/dist/components/MediaLibrary/MediaLibrary.module.css.js +2 -2
  211. package/dist/components/MusicPlayerBar/MusicPlayerBar.module.css.js +23 -23
  212. package/dist/components/MusicPlayerBar/components/HoverActions.js +28 -28
  213. package/dist/components/NavMenu/NavMenu.d.ts +7 -1
  214. package/dist/components/NavMenu/NavMenu.d.ts.map +1 -1
  215. package/dist/components/NavMenu/NavMenu.js +54 -44
  216. package/dist/components/NavMenu/NavMenu.module.css.js +12 -12
  217. package/dist/components/NavMenu/components/NavMenuItem.d.ts.map +1 -1
  218. package/dist/components/NavMenu/components/NavMenuItem.js +84 -84
  219. package/dist/components/NavMenu/types.d.ts +4 -0
  220. package/dist/components/NavMenu/types.d.ts.map +1 -1
  221. package/dist/components/NavbarResizer/NavbarResizer.module.css.js +2 -2
  222. package/dist/components/NotPublicPanel/NotPublicPanel.module.css.js +11 -11
  223. package/dist/components/Notification/Notification.module.css.js +1 -1
  224. package/dist/components/PillTabs/PillTabs.d.ts +19 -0
  225. package/dist/components/PillTabs/PillTabs.d.ts.map +1 -0
  226. package/dist/components/PillTabs/PillTabs.js +50 -0
  227. package/dist/components/PillTabs/PillTabs.module.css.js +11 -0
  228. package/dist/components/SearchFilters/SearchFilters.module.css.js +1 -1
  229. package/dist/components/SettingsSection/styles.module.css.js +1 -1
  230. package/dist/components/StorageUsageProgress/StorageUsageProgress.module.css.js +1 -1
  231. package/dist/components/TreeIndent/TreeIndent.module.css.js +4 -4
  232. package/dist/components/WorkspaceMenu/WorkspaceItem.d.ts.map +1 -1
  233. package/dist/components/WorkspaceMenu/WorkspaceItem.js +16 -14
  234. package/dist/components/modals/RemoveConfirmModal.js +1 -1
  235. package/dist/components/table/FrontTable.d.ts.map +1 -1
  236. package/dist/components/table/hooks/useColumnsResizing.d.ts.map +1 -1
  237. package/dist/config/envConfig.d.ts +2 -0
  238. package/dist/config/envConfig.d.ts.map +1 -1
  239. package/dist/config/envConfig.js +41 -37
  240. package/dist/helpers/showFeatureFeedback.module.css.js +4 -4
  241. package/dist/helpers/showNotifications.d.ts +15 -0
  242. package/dist/helpers/showNotifications.d.ts.map +1 -1
  243. package/dist/helpers/showNotifications.js +114 -72
  244. package/dist/helpers/showNotifications.module.css.js +16 -4
  245. package/dist/hooks/useUiPref.d.ts +2 -0
  246. package/dist/hooks/useUiPref.d.ts.map +1 -0
  247. package/dist/hooks/useUiPref.js +80 -0
  248. package/dist/index.css +1 -1
  249. package/dist/index.d.ts +4 -0
  250. package/dist/index.d.ts.map +1 -1
  251. package/dist/index.js +588 -527
  252. package/dist/lang/locales/ui_en.json.js +5 -5
  253. package/dist/lang/locales/ui_es.json.js +1 -1
  254. package/dist/lang/locales/ui_ru.json.js +1 -1
  255. package/docs/README.md +499 -499
  256. package/package.json +78 -75
@@ -1,4 +1,4 @@
1
- const o = "_accordionRoot_3pkfo_1", c = "_accordionControl_3pkfo_5", n = "_accordionItem_3pkfo_9", t = {
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 = "_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 = {
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: t,
4
- listItem: n,
5
- listItemActive: e,
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
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
- 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
- n as listItem,
26
- e as listItemActive,
27
- l as listItemLabel,
28
- o as listItemSwatch,
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
- t as sectionLabel
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;AAqHlE;;oEAEoE;AACpE,wBAAgB,eAAe,CAAC,EAC9B,QAAQ,EACR,MAAM,EACN,KAAK,EACL,QAAQ,EACR,OAAW,EACX,gBAAgB,GACjB,EAAE,oBAAoB,2CA4CtB"}
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 y, jsx as t } from "react/jsx-runtime";
2
- import { useTranslation as g } from "react-i18next";
3
- import { Tick02Icon as k } from "@hugeicons/core-free-icons";
4
- import { HugeiconsIcon as x } from "@hugeicons/react";
5
- import { useMantineColorScheme as L, Box as F, useMantineTheme as N, getThemeColor as S, ColorSwatch as T } from "@mantine/core";
6
- import { TextColorIcon as z } from "./icons.js";
7
- import { resolveColorLabel as D, isDefaultColor as b, normalizeColorItem as $ } from "./types.js";
8
- import { useRecentColors as w } from "./useRecentColors.js";
9
- import a from "./ColorPicker.module.css.js";
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: l,
13
- resolvedColor: n,
14
- border: i,
15
- bg: c
12
+ colorValue: n,
13
+ resolvedColor: i,
14
+ border: c,
15
+ bg: m
16
16
  }) {
17
17
  if (e === "text")
18
- return /* @__PURE__ */ t(z, { size: 16, color: n, showBorder: !0 });
19
- const s = b(l);
20
- return /* @__PURE__ */ t(
21
- T,
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: s ? "var(--mantine-color-body)" : c || i || l,
23
+ color: a ? "var(--mantine-color-body)" : m || c || n,
24
24
  size: 16,
25
25
  radius: "xl",
26
- className: a.listItemSwatch,
26
+ className: s.listItemSwatch,
27
27
  styles: {
28
28
  root: {
29
- border: `1.5px solid ${s ? "var(--mantine-color-default-border)" : i || n}`
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 v({
37
+ function g({
38
38
  section: e,
39
- columns: l,
40
- onChange: n,
41
- isDark: i
39
+ columns: n,
40
+ onChange: i,
41
+ isDark: c,
42
+ itemCaption: m
42
43
  }) {
43
- const c = N(), { t: s } = g("ui"), d = l > 1;
44
- return /* @__PURE__ */ y("div", { className: a.section, children: [
45
- e.label && /* @__PURE__ */ t("div", { className: a.sectionLabel, children: e.label }),
46
- /* @__PURE__ */ t(
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: d ? a.grid : void 0,
50
- style: d ? { gridTemplateColumns: `repeat(${l}, minmax(0, 1fr))` } : void 0,
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: o,
54
- label: f,
54
+ value: l,
55
+ label: b,
55
56
  border: p,
56
- bg: h
57
- } = $(u), r = b(o), m = o === e.value, C = r ? i ? "#FFFFFF" : "#000000" : S(o, c), I = D(s, o, f);
58
- return /* @__PURE__ */ y(
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: `${a.listItem} ${m ? a.listItemActive : ""}`,
63
- onClick: () => n(o, e.key),
63
+ className: `${s.listItem} ${d ? s.listItemActive : ""}`,
64
+ onClick: () => i(l, e.key),
64
65
  children: [
65
- /* @__PURE__ */ t(
66
+ /* @__PURE__ */ r(
66
67
  j,
67
68
  {
68
69
  type: e.type,
69
- colorValue: o,
70
- resolvedColor: C,
70
+ colorValue: l,
71
+ resolvedColor: h,
71
72
  border: p,
72
- bg: h
73
+ bg: f
73
74
  }
74
75
  ),
75
- /* @__PURE__ */ t("span", { className: a.listItemLabel, children: I }),
76
- m && /* @__PURE__ */ t(
77
- x,
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: k,
82
+ icon: L,
81
83
  color: "var(--mantine-primary-color-filled)"
82
84
  }
83
85
  )
84
86
  ]
85
87
  },
86
- o
88
+ l
87
89
  );
88
90
  })
89
91
  }
90
92
  )
91
93
  ] });
92
94
  }
93
- function q({
95
+ function J({
94
96
  sections: e,
95
- colors: l,
96
- value: n,
97
- onChange: i,
98
- columns: c = 1,
99
- withRecentColors: s
97
+ colors: n,
98
+ value: i,
99
+ onChange: c,
100
+ columns: m = 1,
101
+ withRecentColors: a
100
102
  }) {
101
- const { colorScheme: d } = L(), u = d === "dark", { recentColors: o, addRecent: f } = w(), p = (r, m) => {
102
- s && f(r, m), i?.(r, m);
103
- }, h = e || (l ? [{ key: "default", label: "", colors: l, value: n }] : []);
104
- return /* @__PURE__ */ y(F, { children: [
105
- s && o.length > 0 && /* @__PURE__ */ t(
106
- v,
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: "__recent",
110
- label: "Recently used",
111
- colors: o.map((r) => r.value),
112
- value: n
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
- h.map((r) => /* @__PURE__ */ t(
120
- v,
132
+ f.map((o) => /* @__PURE__ */ r(
133
+ g,
121
134
  {
122
- section: r,
123
- columns: c,
135
+ section: o,
136
+ columns: m,
124
137
  onChange: p,
125
138
  isDark: u
126
139
  },
127
- r.key
140
+ o.key
128
141
  ))
129
142
  ] });
130
143
  }
131
144
  export {
132
- q as ColorPickerList
145
+ J as ColorPickerList
133
146
  };
@@ -1 +1 @@
1
- {"version":3,"file":"ColorPickerToolbar.d.ts","sourceRoot":"","sources":["../../../src/components/ColorPicker/ColorPickerToolbar.tsx"],"names":[],"mappings":"AAOA,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,oHA+L9B,CAAC"}
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 g, jsx as r } from "react/jsx-runtime";
2
- import { forwardRef as H, useState as j, useCallback as S, useMemo as P } from "react";
3
- import { useTranslation as U } from "react-i18next";
4
- import { useMantineColorScheme as q, Box as h, Flex as B, Tooltip as E, UnstyledButton as G } from "@mantine/core";
5
- import { TextColorIcon as K, HighlightSwatch as T } from "./icons.js";
6
- import { normalizeColorItem as w, resolveColorLabel as z, isDefaultColor as J } from "./types.js";
7
- import { useRecentColors as O } from "./useRecentColors.js";
8
- import n from "./ColorPicker.module.css.js";
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: a,
10
+ isActive: m,
11
11
  round: d,
12
- disabled: u,
12
+ disabled: h,
13
13
  onClick: f,
14
14
  children: i,
15
15
  tooltipLabel: p
16
16
  }) {
17
- const b = /* @__PURE__ */ r(
18
- G,
17
+ const b = /* @__PURE__ */ t(
18
+ _,
19
19
  {
20
20
  type: "button",
21
- className: `${n.inlineSwatch}${d ? ` ${n.inlineSwatchRound}` : ""}${a ? ` ${n.inlineSwatchActive}` : ""}`,
22
- onMouseDown: (m) => m.preventDefault(),
21
+ className: `${r.inlineSwatch}${d ? ` ${r.inlineSwatchRound}` : ""}${m ? ` ${r.inlineSwatchActive}` : ""}`,
22
+ onMouseDown: (a) => a.preventDefault(),
23
23
  onClick: f,
24
- disabled: u,
24
+ disabled: h,
25
25
  children: i
26
26
  }
27
27
  );
28
- return p ? /* @__PURE__ */ r(E, { label: p, withArrow: !0, zIndex: 300, children: b }) : b;
28
+ return p ? /* @__PURE__ */ t(U, { label: p, withArrow: !0, zIndex: 400, children: b }) : b;
29
29
  }
30
- const oe = H(
30
+ const re = y(
31
31
  ({
32
- sections: a,
32
+ sections: m,
33
33
  onChange: d,
34
- withRecentColors: u,
35
- maxRecentColors: f = 9,
34
+ withRecentColors: h,
35
+ maxRecentColors: f = 10,
36
36
  disabled: i,
37
- recentColorsLabel: p = "Recently used"
37
+ recentColorsLabel: p
38
38
  }, b) => {
39
- const { t: m } = U("ui"), { colorScheme: D } = q(), x = D === "dark", { recentColors: I, addRecent: $ } = O({
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
- }), [L, M] = j(I), k = S(
43
+ }), [$, D] = M(z), C = g(
42
44
  (e, o, c) => {
43
- u && ($(e, o, c), M((l) => {
44
- const t = l.filter(
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 }, ...t].slice(
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, u, $]
54
- ), C = P(() => {
55
+ [d, h, x]
56
+ ), S = O(() => {
55
57
  const e = {};
56
- for (const o of a) e[o.key] = o;
58
+ for (const o of m) e[o.key] = o;
57
59
  return e;
58
- }, [a]), y = S(
60
+ }, [m]), H = g(
59
61
  (e, o) => {
60
- const l = (o ? C[o] : void 0)?.colors.find(
62
+ const l = (o ? S[o] : void 0)?.colors.find(
61
63
  (s) => w(s).value === e
62
- ), t = l ? w(l).label : void 0;
63
- return z(m, e, t);
64
+ ), n = l ? w(l).label : void 0;
65
+ return B(a, e, n);
64
66
  },
65
- [C, m]
66
- ), F = S(
67
- (e) => J(e) ? x ? "#FFFFFF" : "#000000" : e,
68
- [x]
67
+ [S, a]
68
+ ), N = g(
69
+ (e) => q(e) ? L ? "#FFFFFF" : "#000000" : e,
70
+ [L]
69
71
  );
70
- return /* @__PURE__ */ g(h, { ref: b, children: [
71
- u && L.length > 0 && /* @__PURE__ */ g(h, { className: n.inlineSection, children: [
72
- /* @__PURE__ */ r(h, { className: n.inlineSectionLabel, children: p }),
73
- /* @__PURE__ */ r(B, { className: n.inlineRow, gap: 2, children: L.map((e, o) => {
74
- const c = e.sectionKey ? C[e.sectionKey] : void 0, l = c?.key === "textColor" || c?.key === "color" || e.sectionKey === "color", t = y(
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__ */ r(
83
+ return l ? /* @__PURE__ */ t(
79
84
  v,
80
85
  {
81
86
  isActive: !1,
82
87
  disabled: i,
83
- tooltipLabel: t,
84
- onClick: () => k(e.value, e.sectionKey ?? ""),
85
- children: /* @__PURE__ */ r(
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: F(e.value),
94
+ color: N(e.value),
90
95
  showBorder: !0
91
96
  }
92
97
  )
93
98
  },
94
99
  `${e.sectionKey}-${e.value}-${o}`
95
- ) : /* @__PURE__ */ r(
100
+ ) : /* @__PURE__ */ t(
96
101
  v,
97
102
  {
98
103
  isActive: !1,
99
104
  round: !0,
100
105
  disabled: i,
101
- tooltipLabel: t,
102
- onClick: () => k(e.value, e.sectionKey ?? ""),
103
- children: /* @__PURE__ */ r(
104
- T,
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
- a.map((e) => {
120
+ m.map((e) => {
116
121
  const o = e.key === "highlight" || e.key === "background" || e.key === "textHighlight";
117
- return /* @__PURE__ */ g(h, { className: n.inlineSection, children: [
118
- e.label && /* @__PURE__ */ r(h, { className: n.inlineSectionLabel, children: e.label }),
119
- /* @__PURE__ */ r(B, { className: n.inlineRow, gap: 2, children: e.colors.map((c) => {
120
- const { value: l, border: t, label: s } = w(c), N = l === e.value, R = F(l), A = z(m, l, s);
121
- return o ? /* @__PURE__ */ r(
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: N,
129
+ isActive: R,
125
130
  round: !0,
126
131
  disabled: i,
127
- tooltipLabel: A,
128
- onClick: () => k(l, e.key, t),
129
- children: /* @__PURE__ */ r(
130
- T,
132
+ tooltipLabel: T,
133
+ onClick: () => C(l, e.key, n),
134
+ children: /* @__PURE__ */ t(
135
+ A,
131
136
  {
132
137
  bgColor: l,
133
- borderColor: t || R
138
+ borderColor: n || F
134
139
  }
135
140
  )
136
141
  },
137
142
  l
138
- ) : /* @__PURE__ */ r(
143
+ ) : /* @__PURE__ */ t(
139
144
  v,
140
145
  {
141
- isActive: N,
146
+ isActive: R,
142
147
  disabled: i,
143
- tooltipLabel: A,
144
- onClick: () => k(l, e.key),
145
- children: /* @__PURE__ */ r(K, { size: 20, color: R, showBorder: !0 })
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
- oe as ColorPickerToolbar
161
+ re as ColorPickerToolbar
157
162
  };
@@ -1,10 +1,10 @@
1
- import { jsx as n, jsxs as c } from "react/jsx-runtime";
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__ */ c(
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 w({
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
- w as HighlightSwatch,
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,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,GAAG,WAAW,CAAC;CAC7B;AAED,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC;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