@layers-app/shared 0.3.9 → 0.4.0
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 +10 -10
- package/dist/components/AnimatedFigurePage/useParallax.d.ts +2 -2
- package/dist/components/AppContainer/AppContainer.module.css.js +1 -1
- package/dist/components/AppContainer/components/AppSidebarButton.d.ts +1 -4
- package/dist/components/AppContainer/components/AppSidebarButton.d.ts.map +1 -1
- package/dist/components/AppContainer/components/AppSidebarButton.js +15 -22
- package/dist/components/AppContainer/components/AppsSidebar/AppsSection.d.ts.map +1 -1
- package/dist/components/AppContainer/components/AppsSidebar/AppsSection.js +21 -22
- package/dist/components/AppContainer/components/AppsSidebar/UserSection.d.ts.map +1 -1
- package/dist/components/AppContainer/components/AppsSidebar/UserSection.js +91 -48
- package/dist/components/AppContainer/components/menus/HelpMenu/HelpMenu.module.css.js +1 -1
- package/dist/components/AppShell/AppShell.module.css.js +5 -5
- package/dist/components/AttachmentsGalleryModal/components/GallerySlide.d.ts +1 -3
- package/dist/components/AttachmentsGalleryModal/components/GallerySlide.d.ts.map +1 -1
- package/dist/components/AttachmentsGalleryModal/components/GallerySlide.js +63 -89
- package/dist/components/AttachmentsGalleryModal/components/ShakePlayer/ShakaPlayer.d.ts +1 -1
- package/dist/components/AttachmentsGalleryModal/components/ShakePlayer/ShakaPlayer.d.ts.map +1 -1
- package/dist/components/AttachmentsGalleryModal/components/ShakePlayer/ShakaPlayer.js +26 -35
- package/dist/components/AttachmentsGalleryModal/components/ShakePlayer/ShakaPlayer.module.css.js +4 -4
- package/dist/components/AttachmentsGalleryModal/components/ShakePlayer/useShakePlayer.d.ts +1 -1
- package/dist/components/AttachmentsGalleryModal/components/ShakePlayer/useShakePlayer.d.ts.map +1 -1
- package/dist/components/AttachmentsGalleryModal/components/ShakePlayer/useShakePlayer.js +36 -43
- package/dist/components/AttachmentsGalleryModal/hooks/useGetPreviewUrl.d.ts +0 -4
- package/dist/components/AttachmentsGalleryModal/hooks/useGetPreviewUrl.d.ts.map +1 -1
- package/dist/components/AttachmentsGalleryModal/hooks/useGetPreviewUrl.js +20 -59
- package/dist/components/AttachmentsGalleryModal/styles.module.css.js +18 -28
- package/dist/components/AttachmentsPreview/AttachmentsPreview.d.ts.map +1 -1
- package/dist/components/AttachmentsPreview/AttachmentsPreview.js +18 -22
- package/dist/components/AttachmentsPreview/AttachmentsPreview.module.css.js +1 -1
- package/dist/components/BouncingLogo/BouncingLogo.module.css.js +8 -8
- package/dist/components/CollapsibleContainer/CollapsibleContainer.module.css.js +1 -1
- package/dist/components/ColorPicker/ColorPicker.d.ts +18 -23
- package/dist/components/ColorPicker/ColorPicker.d.ts.map +1 -1
- package/dist/components/ColorPicker/ColorPicker.js +139 -145
- package/dist/components/ColorPicker/ColorPicker.module.css.js +8 -8
- package/dist/components/ColorPicker/ColorPickerToolbar.d.ts.map +1 -1
- package/dist/components/ColorPicker/ColorPickerToolbar.js +88 -71
- package/dist/components/ColorPicker/icons.js +4 -4
- package/dist/components/CommentComposer/CommentComposer.module.css.js +4 -4
- package/dist/components/CommentComposer/CommentEditorHotkeys.d.ts.map +1 -1
- package/dist/components/CommentComposer/CommentEditorHotkeys.js +4 -3
- package/dist/components/CommentComposer/index.js +1 -1
- package/dist/components/CommentComposer/useVirtualAnchor.d.ts +1 -1
- package/dist/components/CommentComposer/useVirtualAnchor.d.ts.map +1 -1
- 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.map +1 -1
- package/dist/components/EmojiPicker/EmojiPanel.js +22 -22
- package/dist/components/EmojiPicker/EmojiPicker.d.ts +1 -1
- package/dist/components/EmojiPicker/EmojiPicker.d.ts.map +1 -1
- package/dist/components/EmojiPicker/EmojiPicker.js +1 -0
- package/dist/components/EmojiPicker/EmojiPicker.module.css.js +8 -8
- package/dist/components/EmojiPicker/IconsPanel.js +13 -13
- package/dist/components/EntityIcon.d.ts.map +1 -1
- package/dist/components/EntityIcon.js +33 -43
- package/dist/components/EntityTitle/EntityTitle.module.css.js +1 -1
- package/dist/components/ErrorPage/components/Error404.d.ts.map +1 -1
- package/dist/components/FeatureProgress/FeatureProgress.module.css.js +49 -49
- package/dist/components/FilePicker/FilePicker.d.ts +4 -2
- package/dist/components/FilePicker/FilePicker.d.ts.map +1 -1
- package/dist/components/FilePicker/FilePicker.js +241 -226
- package/dist/components/FilePicker/FilePicker.module.css.js +14 -12
- package/dist/components/FilePicker/FilePickerGallery.d.ts.map +1 -1
- package/dist/components/FilePicker/FilePickerGallery.js +60 -34
- package/dist/components/FilePicker/FilePickerGiphy.d.ts.map +1 -1
- package/dist/components/FilePicker/FilePickerGiphy.js +38 -39
- package/dist/components/FilePicker/FilePickerLink.d.ts.map +1 -1
- package/dist/components/FilePicker/FilePickerLink.js +29 -26
- package/dist/components/FilePicker/FilePickerUnsplash.d.ts.map +1 -1
- package/dist/components/FilePicker/FilePickerUnsplash.js +42 -43
- package/dist/components/FilePicker/FilePickerUpload.d.ts.map +1 -1
- package/dist/components/FilePicker/FilePickerUpload.js +51 -35
- package/dist/components/FilePicker/coverCollections.d.ts +4 -0
- package/dist/components/FilePicker/coverCollections.d.ts.map +1 -0
- package/dist/components/FilePicker/coverCollections.js +164 -0
- package/dist/components/FilePicker/index.d.ts +1 -0
- package/dist/components/FilePicker/index.d.ts.map +1 -1
- 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/helpers/conditions.d.ts +38 -38
- package/dist/components/FormViewer/helpers/helpers.d.ts +38 -38
- package/dist/components/FormViewer/helpers/steps.d.ts +38 -38
- package/dist/components/FormViewer/hooks/useActiveControl.d.ts +19 -19
- package/dist/components/FormViewer/hooks/useActiveStep.d.ts +38 -38
- package/dist/components/FormViewer/hooks/useFormGlobalTheme.d.ts +0 -6
- package/dist/components/FormViewer/hooks/useFormGlobalTheme.d.ts.map +1 -1
- package/dist/components/FormViewer/hooks/useFormGlobalTheme.js +3 -4
- package/dist/components/FormViewer/hooks/useFormMobile.d.ts +1 -1
- package/dist/components/FormViewer/hooks/useFormMobile.d.ts.map +1 -1
- package/dist/components/FormViewer/store/formStore.d.ts +248 -248
- package/dist/components/FormViewer/store/formStore.d.ts.map +1 -1
- package/dist/components/FormViewer/store/formStoreApi.d.ts +124 -124
- package/dist/components/FormViewer/store/selectors.d.ts +11655 -11655
- package/dist/components/FormViewer/types/form.d.ts +1 -1
- package/dist/components/FormViewer/types/form.d.ts.map +1 -1
- package/dist/components/FormViewer/types/schemes.d.ts +6358 -381
- package/dist/components/FormViewer/types/schemes.d.ts.map +1 -1
- package/dist/components/FormViewer/types/schemes.js +1 -1
- package/dist/components/GroupAvatar/index.d.ts +1 -3
- package/dist/components/GroupAvatar/index.d.ts.map +1 -1
- package/dist/components/GroupAvatar/index.js +21 -24
- 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/MediaLibrary/MediaLibraryRow.js +7 -7
- package/dist/components/NavMenu/NavMenu.d.ts +1 -3
- package/dist/components/NavMenu/NavMenu.d.ts.map +1 -1
- package/dist/components/NavMenu/NavMenu.module.css.js +12 -12
- package/dist/components/NavMenu/components/DnDProvider.d.ts +1 -1
- package/dist/components/NavMenu/components/DnDProvider.d.ts.map +1 -1
- package/dist/components/NavMenu/components/NavMenuActionIcon.d.ts +1 -7
- package/dist/components/NavMenu/components/NavMenuActionIcon.d.ts.map +1 -1
- package/dist/components/NavMenu/components/NavMenuActionIcon.js +23 -21
- package/dist/components/NavbarResizer/NavbarResizer.module.css.js +2 -2
- package/dist/components/NewColorPicker/components/Target.d.ts +1 -3
- package/dist/components/NewColorPicker/components/Target.d.ts.map +1 -1
- package/dist/components/NewColorPicker/components/Target.js +43 -48
- package/dist/components/NotPublicPanel/NotPublicPanel.module.css.js +11 -11
- package/dist/components/Notification/Notification.js +1 -3
- package/dist/components/Notification/Notification.module.css.js +1 -1
- package/dist/components/Notification/NotificationCard.d.ts +1 -3
- package/dist/components/Notification/NotificationCard.d.ts.map +1 -1
- package/dist/components/Notification/NotificationCard.js +86 -87
- package/dist/components/OnBoarding/steps/DifferentLayouts/styles.module.css.js +3 -3
- package/dist/components/OnBoarding/steps/styles.module.css.js +9 -9
- package/dist/components/OnBoarding/styles.module.css.js +7 -7
- package/dist/components/OnboardingTour/OnboardingTourWrapper.d.ts +1 -1
- package/dist/components/OnboardingTour/OnboardingTourWrapper.d.ts.map +1 -1
- package/dist/components/OnboardingTour/OnboardingTourWrapper.js +74 -70
- package/dist/components/ProjectIcon/ProjectIcon.d.ts +12 -7
- package/dist/components/ProjectIcon/ProjectIcon.d.ts.map +1 -1
- package/dist/components/ProjectIcon/ProjectIcon.js +60 -58
- 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/UserAvatar/index.d.ts +1 -2
- package/dist/components/UserAvatar/index.d.ts.map +1 -1
- package/dist/components/UserAvatar/index.js +35 -38
- package/dist/components/WorkspaceAvatar/WorkspaceAvatar.d.ts +3 -3
- package/dist/components/WorkspaceAvatar/WorkspaceAvatar.d.ts.map +1 -1
- package/dist/components/WorkspaceAvatar/WorkspaceAvatar.js +18 -19
- package/dist/components/WorkspaceMenu/WorkspaceItem.js +17 -17
- package/dist/components/WorkspaceMenu/WorkspaceMenu.js +7 -7
- 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 +0 -8
- package/dist/config/envConfig.d.ts.map +1 -1
- package/dist/config/envConfig.js +13 -21
- package/dist/helpers/getFileIcons.d.ts.map +1 -1
- package/dist/helpers/getFileIcons.js +45 -63
- package/dist/helpers/getFileType.d.ts +1 -1
- package/dist/helpers/getFileType.d.ts.map +1 -1
- package/dist/helpers/getFileType.js +8 -29
- package/dist/helpers/getPartOfTheDay.d.ts +1 -1
- package/dist/helpers/platform.d.ts +1 -1
- package/dist/helpers/platform.d.ts.map +1 -1
- package/dist/helpers/platform.js +4 -5
- package/dist/helpers/showFeatureFeedback.module.css.js +4 -4
- package/dist/helpers/showNotifications.d.ts.map +1 -1
- package/dist/helpers/showNotifications.js +29 -30
- package/dist/helpers/showNotifications.module.css.js +1 -1
- package/dist/hooks/useOutsideClick.d.ts +1 -1
- package/dist/hooks/useOutsideClick.d.ts.map +1 -1
- package/dist/index.css +1 -1
- package/dist/index.d.ts +1 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +465 -467
- package/dist/lang/locales/ui_en.json.js +20 -18
- package/dist/lang/locales/ui_es.json.js +14 -12
- package/dist/lang/locales/ui_ru.json.js +15 -13
- package/dist/node_modules/countries-and-timezones/esm/index.js +4011 -281
- package/docs/README.md +499 -499
- package/package.json +75 -75
- package/dist/components/AttachmentsGalleryModal/components/UnsupportedSection.d.ts +0 -6
- package/dist/components/AttachmentsGalleryModal/components/UnsupportedSection.d.ts.map +0 -1
- package/dist/components/AttachmentsGalleryModal/components/UnsupportedSection.js +0 -16
- package/dist/components/TextColorIcon.d.ts +0 -8
- package/dist/components/TextColorIcon.d.ts.map +0 -1
- package/dist/components/TextColorIcon.js +0 -60
- package/dist/helpers/offlineSuppression.d.ts +0 -3
- package/dist/helpers/offlineSuppression.d.ts.map +0 -1
- package/dist/helpers/offlineSuppression.js +0 -8
|
@@ -1,121 +1,138 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { useMantineColorScheme as
|
|
4
|
-
import { TextColorIcon as
|
|
5
|
-
import {
|
|
6
|
-
import { useRecentColors as
|
|
7
|
-
import
|
|
1
|
+
import { jsxs as S, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as z, useState as H, useCallback as w, useMemo as I } from "react";
|
|
3
|
+
import { useMantineColorScheme as j, Box as h, Flex as B, Tooltip as P, UnstyledButton as U } from "@mantine/core";
|
|
4
|
+
import { TextColorIcon as K, HighlightSwatch as D } from "./icons.js";
|
|
5
|
+
import { normalizeColorItem as $, isDefaultColor as q } from "./types.js";
|
|
6
|
+
import { useRecentColors as E } from "./useRecentColors.js";
|
|
7
|
+
import c from "./ColorPicker.module.css.js";
|
|
8
8
|
function k({
|
|
9
|
-
isActive:
|
|
9
|
+
isActive: s,
|
|
10
10
|
round: m,
|
|
11
|
-
disabled:
|
|
12
|
-
onClick:
|
|
13
|
-
children:
|
|
11
|
+
disabled: u,
|
|
12
|
+
onClick: d,
|
|
13
|
+
children: i,
|
|
14
|
+
tooltipLabel: f
|
|
14
15
|
}) {
|
|
15
|
-
|
|
16
|
-
|
|
16
|
+
const v = /* @__PURE__ */ r(
|
|
17
|
+
U,
|
|
17
18
|
{
|
|
18
19
|
type: "button",
|
|
19
|
-
className: `${
|
|
20
|
-
onMouseDown: (
|
|
21
|
-
onClick:
|
|
22
|
-
disabled:
|
|
23
|
-
children:
|
|
20
|
+
className: `${c.inlineSwatch}${m ? ` ${c.inlineSwatchRound}` : ""}${s ? ` ${c.inlineSwatchActive}` : ""}`,
|
|
21
|
+
onMouseDown: (C) => C.preventDefault(),
|
|
22
|
+
onClick: d,
|
|
23
|
+
disabled: u,
|
|
24
|
+
children: i
|
|
24
25
|
}
|
|
25
26
|
);
|
|
27
|
+
return f ? /* @__PURE__ */ r(P, { label: f, withArrow: !0, children: v }) : v;
|
|
26
28
|
}
|
|
27
|
-
const
|
|
28
|
-
const { colorScheme:
|
|
29
|
-
(e,
|
|
30
|
-
|
|
31
|
-
const
|
|
32
|
-
(
|
|
29
|
+
const Y = z(({ sections: s, onChange: m, withRecentColors: u, maxRecentColors: d = 9, disabled: i, recentColorsLabel: f = "Recently used" }, v) => {
|
|
30
|
+
const { colorScheme: C } = j(), x = C === "dark", { recentColors: M, addRecent: F } = E({ maxItems: d }), [L, T] = H(M), p = w(
|
|
31
|
+
(e, o, t) => {
|
|
32
|
+
u && (F(e, o, t), T((l) => {
|
|
33
|
+
const n = l.filter(
|
|
34
|
+
(a) => !(a.value === e && a.sectionKey === o)
|
|
33
35
|
);
|
|
34
|
-
return [{ value: e, sectionKey:
|
|
35
|
-
})), m(e,
|
|
36
|
+
return [{ value: e, sectionKey: o, border: t }, ...n].slice(0, d);
|
|
37
|
+
})), m(e, o);
|
|
36
38
|
},
|
|
37
|
-
[m,
|
|
38
|
-
),
|
|
39
|
+
[m, u, F]
|
|
40
|
+
), g = I(() => {
|
|
39
41
|
const e = {};
|
|
40
|
-
for (const
|
|
42
|
+
for (const o of s) e[o.key] = o;
|
|
41
43
|
return e;
|
|
42
|
-
}, [
|
|
43
|
-
(e) =>
|
|
44
|
-
|
|
44
|
+
}, [s]), y = w(
|
|
45
|
+
(e, o) => {
|
|
46
|
+
if (!o) return;
|
|
47
|
+
const t = g[o];
|
|
48
|
+
if (!t) return;
|
|
49
|
+
const l = t.colors.find((b) => $(b).value === e);
|
|
50
|
+
if (!l) return;
|
|
51
|
+
const { label: n, value: a } = $(l);
|
|
52
|
+
return n || a;
|
|
53
|
+
},
|
|
54
|
+
[g]
|
|
55
|
+
), N = w(
|
|
56
|
+
(e) => q(e) ? x ? "#FFFFFF" : "#000000" : e,
|
|
57
|
+
[x]
|
|
45
58
|
);
|
|
46
|
-
return /* @__PURE__ */
|
|
47
|
-
|
|
48
|
-
/* @__PURE__ */
|
|
49
|
-
/* @__PURE__ */
|
|
50
|
-
const
|
|
51
|
-
return
|
|
59
|
+
return /* @__PURE__ */ S(h, { ref: v, children: [
|
|
60
|
+
u && L.length > 0 && /* @__PURE__ */ S(h, { className: c.inlineSection, children: [
|
|
61
|
+
/* @__PURE__ */ r(h, { className: c.inlineSectionLabel, children: f }),
|
|
62
|
+
/* @__PURE__ */ r(B, { className: c.inlineRow, gap: 2, children: L.map((e, o) => {
|
|
63
|
+
const t = e.sectionKey ? g[e.sectionKey] : void 0, l = t?.key === "textColor" || t?.key === "color" || e.sectionKey === "color", n = y(e.value, e.sectionKey);
|
|
64
|
+
return l ? /* @__PURE__ */ r(
|
|
52
65
|
k,
|
|
53
66
|
{
|
|
54
67
|
isActive: !1,
|
|
55
|
-
disabled:
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
68
|
+
disabled: i,
|
|
69
|
+
tooltipLabel: n,
|
|
70
|
+
onClick: () => p(e.value, e.sectionKey ?? ""),
|
|
71
|
+
children: /* @__PURE__ */ r(
|
|
72
|
+
K,
|
|
59
73
|
{
|
|
60
74
|
size: 20,
|
|
61
|
-
color:
|
|
75
|
+
color: N(e.value),
|
|
62
76
|
showBorder: !0
|
|
63
77
|
}
|
|
64
78
|
)
|
|
65
79
|
},
|
|
66
|
-
`${e.sectionKey}-${e.value}-${
|
|
67
|
-
) : /* @__PURE__ */
|
|
80
|
+
`${e.sectionKey}-${e.value}-${o}`
|
|
81
|
+
) : /* @__PURE__ */ r(
|
|
68
82
|
k,
|
|
69
83
|
{
|
|
70
84
|
isActive: !1,
|
|
71
85
|
round: !0,
|
|
72
|
-
disabled:
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
86
|
+
disabled: i,
|
|
87
|
+
tooltipLabel: n,
|
|
88
|
+
onClick: () => p(e.value, e.sectionKey ?? ""),
|
|
89
|
+
children: /* @__PURE__ */ r(
|
|
90
|
+
D,
|
|
76
91
|
{
|
|
77
92
|
bgColor: e.value,
|
|
78
93
|
borderColor: e.border || "var(--mantine-color-default-border)"
|
|
79
94
|
}
|
|
80
95
|
)
|
|
81
96
|
},
|
|
82
|
-
`${e.sectionKey}-${e.value}-${
|
|
97
|
+
`${e.sectionKey}-${e.value}-${o}`
|
|
83
98
|
);
|
|
84
99
|
}) })
|
|
85
100
|
] }),
|
|
86
|
-
|
|
87
|
-
const
|
|
88
|
-
return /* @__PURE__ */
|
|
89
|
-
e.label && /* @__PURE__ */
|
|
90
|
-
/* @__PURE__ */
|
|
91
|
-
const { value: l, border:
|
|
92
|
-
return
|
|
101
|
+
s.map((e) => {
|
|
102
|
+
const o = e.key === "highlight" || e.key === "background" || e.key === "textHighlight";
|
|
103
|
+
return /* @__PURE__ */ S(h, { className: c.inlineSection, children: [
|
|
104
|
+
e.label && /* @__PURE__ */ r(h, { className: c.inlineSectionLabel, children: e.label }),
|
|
105
|
+
/* @__PURE__ */ r(B, { className: c.inlineRow, gap: 2, children: e.colors.map((t) => {
|
|
106
|
+
const { value: l, border: n, label: a } = $(t), b = l === e.value, R = N(l), A = a || l;
|
|
107
|
+
return o ? /* @__PURE__ */ r(
|
|
93
108
|
k,
|
|
94
109
|
{
|
|
95
|
-
isActive:
|
|
110
|
+
isActive: b,
|
|
96
111
|
round: !0,
|
|
97
|
-
disabled:
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
112
|
+
disabled: i,
|
|
113
|
+
tooltipLabel: A,
|
|
114
|
+
onClick: () => p(l, e.key, n),
|
|
115
|
+
children: /* @__PURE__ */ r(
|
|
116
|
+
D,
|
|
101
117
|
{
|
|
102
118
|
bgColor: l,
|
|
103
|
-
borderColor:
|
|
119
|
+
borderColor: n || R
|
|
104
120
|
}
|
|
105
121
|
)
|
|
106
122
|
},
|
|
107
123
|
l
|
|
108
|
-
) : /* @__PURE__ */
|
|
124
|
+
) : /* @__PURE__ */ r(
|
|
109
125
|
k,
|
|
110
126
|
{
|
|
111
|
-
isActive:
|
|
112
|
-
disabled:
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
127
|
+
isActive: b,
|
|
128
|
+
disabled: i,
|
|
129
|
+
tooltipLabel: A,
|
|
130
|
+
onClick: () => p(l, e.key),
|
|
131
|
+
children: /* @__PURE__ */ r(
|
|
132
|
+
K,
|
|
116
133
|
{
|
|
117
134
|
size: 20,
|
|
118
|
-
color:
|
|
135
|
+
color: R,
|
|
119
136
|
showBorder: !0
|
|
120
137
|
}
|
|
121
138
|
)
|
|
@@ -128,5 +145,5 @@ const Q = D(({ sections: i, onChange: m, withRecentColors: a, maxRecentColors: h
|
|
|
128
145
|
] });
|
|
129
146
|
});
|
|
130
147
|
export {
|
|
131
|
-
|
|
148
|
+
Y as ColorPickerToolbar
|
|
132
149
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { jsx as n, jsxs as c } from "react/jsx-runtime";
|
|
2
2
|
function s({
|
|
3
3
|
size: t = 20,
|
|
4
4
|
color: r = "var(--mantine-color-white)",
|
|
@@ -26,7 +26,7 @@ function s({
|
|
|
26
26
|
fill: "none"
|
|
27
27
|
}
|
|
28
28
|
),
|
|
29
|
-
/* @__PURE__ */ n("g", { transform: "translate(4.
|
|
29
|
+
/* @__PURE__ */ n("g", { transform: "translate(4.54, 4.2) scale(0.95)", children: /* @__PURE__ */ n(
|
|
30
30
|
"path",
|
|
31
31
|
{
|
|
32
32
|
d: "M5.74945 0C6.57421 0 7.09678 0.678265 7.50336 1.43555C7.93323 2.23628 8.38332 3.42022 8.95843 4.92676L11.4623 11.4873C11.5716 11.7742 11.4279 12.0955 11.1411 12.2051C10.8541 12.3144 10.5329 12.1706 10.4233 11.8838L8.5766 7.04883H2.9223L1.07562 11.8838C0.965974 12.1707 0.644849 12.3146 0.357848 12.2051C0.0710441 12.0955 -0.0726477 11.7742 0.0365593 11.4873L2.54047 4.92676C3.11563 3.42012 3.56662 2.23629 3.99652 1.43555C4.40306 0.678393 4.92485 8.51363e-05 5.74945 0ZM5.74945 1.11328C5.62925 1.11335 5.38778 1.19685 4.97699 1.96191C4.5893 2.68404 4.16803 3.7852 3.5805 5.32422L3.34711 5.93555H8.15179L7.9184 5.32422C7.33089 3.78522 6.9096 2.68403 6.52191 1.96191C6.11099 1.19664 5.86959 1.11328 5.74945 1.11328Z",
|
|
@@ -42,7 +42,7 @@ function d({
|
|
|
42
42
|
bgColor: r,
|
|
43
43
|
borderColor: e
|
|
44
44
|
}) {
|
|
45
|
-
const o = r === "inherit" || r === "" || r === "default", i = t
|
|
45
|
+
const o = r === "inherit" || r === "" || r === "default", i = t / 2 - 2, l = o ? "var(--mantine-color-body)" : r, h = o ? "var(--mantine-color-default-border)" : e;
|
|
46
46
|
return /* @__PURE__ */ n(
|
|
47
47
|
"svg",
|
|
48
48
|
{
|
|
@@ -59,7 +59,7 @@ function d({
|
|
|
59
59
|
r: i,
|
|
60
60
|
fill: l,
|
|
61
61
|
stroke: h,
|
|
62
|
-
strokeWidth: "1
|
|
62
|
+
strokeWidth: "1"
|
|
63
63
|
}
|
|
64
64
|
)
|
|
65
65
|
}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
const o = "
|
|
1
|
+
const o = "_commentComposerWrapper_f5dl7_1", e = "_commentComposerFloat_f5dl7_135", r = "_composerContainer_f5dl7_193", t = "_editorWrapper_f5dl7_225", p = "_editMode_f5dl7_361", m = {
|
|
2
2
|
commentComposerWrapper: o,
|
|
3
3
|
commentComposerFloat: e,
|
|
4
4
|
composerContainer: r,
|
|
5
5
|
editorWrapper: t,
|
|
6
|
-
editMode:
|
|
6
|
+
editMode: p
|
|
7
7
|
};
|
|
8
8
|
export {
|
|
9
9
|
e as commentComposerFloat,
|
|
10
10
|
o as commentComposerWrapper,
|
|
11
11
|
r as composerContainer,
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
m as default,
|
|
13
|
+
p as editMode,
|
|
14
14
|
t as editorWrapper
|
|
15
15
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CommentEditorHotkeys.d.ts","sourceRoot":"","sources":["../../../src/components/CommentComposer/CommentEditorHotkeys.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4B,MAAM,OAAO,CAAC;AAIjD,OAAO,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAI/C,eAAO,MAAM,oBAAoB,GAAI,8GAWlC;IACD,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,SAAS,EAAE,KAAK,CAAC,gBAAgB,CAAC,GAAG,CAAC,CAAC;IACvC,iBAAiB,EAAE,KAAK,CAAC,gBAAgB,CAAC,GAAG,CAAC,CAAC;IAC/C,YAAY,EAAE;QACZ,IAAI,EAAE,MAAM,CAAC;QACb,KAAK,EAAE,oBAAoB,CAAC,iBAAiB,EAAE,CAAC;KACjD,CAAC;IACF,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,OAAO,EAAE,OAAO,CAAC;IACjB,MAAM,EAAE,OAAO,CAAC;IAChB,UAAU,EAAE,OAAO,CAAC;IACpB,EAAE,EAAE,MAAM,CAAC;CACZ,
|
|
1
|
+
{"version":3,"file":"CommentEditorHotkeys.d.ts","sourceRoot":"","sources":["../../../src/components/CommentComposer/CommentEditorHotkeys.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4B,MAAM,OAAO,CAAC;AAIjD,OAAO,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAI/C,eAAO,MAAM,oBAAoB,GAAI,8GAWlC;IACD,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,SAAS,EAAE,KAAK,CAAC,gBAAgB,CAAC,GAAG,CAAC,CAAC;IACvC,iBAAiB,EAAE,KAAK,CAAC,gBAAgB,CAAC,GAAG,CAAC,CAAC;IAC/C,YAAY,EAAE;QACZ,IAAI,EAAE,MAAM,CAAC;QACb,KAAK,EAAE,oBAAoB,CAAC,iBAAiB,EAAE,CAAC;KACjD,CAAC;IACF,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,OAAO,EAAE,OAAO,CAAC;IACjB,MAAM,EAAE,OAAO,CAAC;IAChB,UAAU,EAAE,OAAO,CAAC;IACpB,EAAE,EAAE,MAAM,CAAC;CACZ,4CAwJA,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as S } from "react/jsx-runtime";
|
|
2
|
-
import { useRef as
|
|
3
|
-
import { useTranslation as
|
|
2
|
+
import { useRef as x, useEffect as m } from "react";
|
|
3
|
+
import { useTranslation as D } from "react-i18next";
|
|
4
4
|
import { openRemoveConfirmModal as g } from "../modals/RemoveConfirmModal.js";
|
|
5
5
|
import w from "./CommentComposer.module.css.js";
|
|
6
6
|
const W = ({
|
|
@@ -15,7 +15,7 @@ const W = ({
|
|
|
15
15
|
hasChanges: s,
|
|
16
16
|
ns: P
|
|
17
17
|
}) => {
|
|
18
|
-
const p =
|
|
18
|
+
const p = x(null), L = i || f, { t: r } = D(P);
|
|
19
19
|
return m(() => {
|
|
20
20
|
const o = (e) => {
|
|
21
21
|
if (e.code === "Enter" && !e.shiftKey) {
|
|
@@ -85,6 +85,7 @@ const W = ({
|
|
|
85
85
|
cancel: r("editor.composer.cancel")
|
|
86
86
|
},
|
|
87
87
|
icon: null,
|
|
88
|
+
zIndex: 301,
|
|
88
89
|
onConfirm: () => c?.()
|
|
89
90
|
});
|
|
90
91
|
return;
|
|
@@ -10,6 +10,6 @@ interface UseVirtualAnchorProps {
|
|
|
10
10
|
elements: HTMLSpanElement[];
|
|
11
11
|
};
|
|
12
12
|
}
|
|
13
|
-
export declare function useVirtualAnchor({ isFloat, updateLocation, selectionRef, selectionState, }: UseVirtualAnchorProps): import("react").
|
|
13
|
+
export declare function useVirtualAnchor({ isFloat, updateLocation, selectionRef, selectionState, }: UseVirtualAnchorProps): import("react").MutableRefObject<HTMLDivElement | null>;
|
|
14
14
|
export {};
|
|
15
15
|
//# sourceMappingURL=useVirtualAnchor.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useVirtualAnchor.d.ts","sourceRoot":"","sources":["../../../src/components/CommentComposer/useVirtualAnchor.ts"],"names":[],"mappings":"AAEA,UAAU,qBAAqB;IAC7B,OAAO,EAAE,OAAO,CAAC;IACjB,cAAc,CAAC,EAAE,CACf,OAAO,EAAE,cAAc,EACvB,YAAY,EAAE,KAAK,CAAC,gBAAgB,CAAC,GAAG,CAAC,EACzC,cAAc,EAAE;QACd,SAAS,EAAE,cAAc,CAAC;QAC1B,QAAQ,EAAE,eAAe,EAAE,CAAC;KAC7B,KACE,IAAI,CAAC;IACV,YAAY,EAAE,KAAK,CAAC,gBAAgB,CAAC,GAAG,CAAC,CAAC;IAC1C,cAAc,EAAE;QACd,SAAS,EAAE,cAAc,CAAC;QAC1B,QAAQ,EAAE,eAAe,EAAE,CAAC;KAC7B,CAAC;CACH;AAED,wBAAgB,gBAAgB,CAAC,EAC/B,OAAO,EACP,cAAc,EACd,YAAY,EACZ,cAAc,GACf,EAAE,qBAAqB,
|
|
1
|
+
{"version":3,"file":"useVirtualAnchor.d.ts","sourceRoot":"","sources":["../../../src/components/CommentComposer/useVirtualAnchor.ts"],"names":[],"mappings":"AAEA,UAAU,qBAAqB;IAC7B,OAAO,EAAE,OAAO,CAAC;IACjB,cAAc,CAAC,EAAE,CACf,OAAO,EAAE,cAAc,EACvB,YAAY,EAAE,KAAK,CAAC,gBAAgB,CAAC,GAAG,CAAC,EACzC,cAAc,EAAE;QACd,SAAS,EAAE,cAAc,CAAC;QAC1B,QAAQ,EAAE,eAAe,EAAE,CAAC;KAC7B,KACE,IAAI,CAAC;IACV,YAAY,EAAE,KAAK,CAAC,gBAAgB,CAAC,GAAG,CAAC,CAAC;IAC1C,cAAc,EAAE;QACd,SAAS,EAAE,cAAc,CAAC;QAC1B,QAAQ,EAAE,eAAe,EAAE,CAAC;KAC7B,CAAC;CACH;AAED,wBAAgB,gBAAgB,CAAC,EAC/B,OAAO,EACP,cAAc,EACd,YAAY,EACZ,cAAc,GACf,EAAE,qBAAqB,2DAsHvB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EmojiPanel.d.ts","sourceRoot":"","sources":["../../../src/components/EmojiPicker/EmojiPanel.tsx"],"names":[],"mappings":"AAyCA,OAAO,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAsBjD,eAAO,MAAM,UAAU,GAAI,6DAMxB,IAAI,CAAC,gBAAgB,EAAE,SAAS,GAAG,OAAO,GAAG,UAAU,GAAG,aAAa,CAAC,GAAG;IAC5E,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,aAAa,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;CACvC,
|
|
1
|
+
{"version":3,"file":"EmojiPanel.d.ts","sourceRoot":"","sources":["../../../src/components/EmojiPicker/EmojiPanel.tsx"],"names":[],"mappings":"AAyCA,OAAO,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAsBjD,eAAO,MAAM,UAAU,GAAI,6DAMxB,IAAI,CAAC,gBAAgB,EAAE,SAAS,GAAG,OAAO,GAAG,UAAU,GAAG,aAAa,CAAC,GAAG;IAC5E,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,aAAa,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;CACvC,4CAiTA,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs as y, jsx as t } from "react/jsx-runtime";
|
|
2
|
-
import { useState as
|
|
2
|
+
import { useState as d, useRef as p, useEffect as R, useCallback as K } from "react";
|
|
3
3
|
import { useTranslation as L } from "react-i18next";
|
|
4
4
|
import { Search01Icon as U, ShuffleIcon as V, Clock01Icon as W, SmileIcon as X, Pizza01Icon as Z, FootballIcon as _, Airplane01Icon as ee, BulbIcon as te, Asterisk02Icon as oe, Flag02Icon as re } from "@hugeicons/core-free-icons";
|
|
5
5
|
import { HugeiconsIcon as c } from "@hugeicons/react";
|
|
@@ -10,8 +10,8 @@ import le from "../../assets/svg/dog.svg.js";
|
|
|
10
10
|
import { pickRandomEmoji as fe } from "../../helpers/pickRandomEmoji.js";
|
|
11
11
|
import { NoData as ue } from "../NoData/NoData.js";
|
|
12
12
|
import { IconEntity as de } from "../ProjectIcon/ProjectIcon.js";
|
|
13
|
-
import { frequentEmoji as
|
|
14
|
-
import { getEmojis as
|
|
13
|
+
import { frequentEmoji as pe } from "./constants.js";
|
|
14
|
+
import { getEmojis as me } from "./utils.js";
|
|
15
15
|
import T from "./EmojiPicker.module.css.js";
|
|
16
16
|
const he = [
|
|
17
17
|
{ i: "frequent", icon: /* @__PURE__ */ t(c, { size: 20, icon: W }) },
|
|
@@ -27,31 +27,31 @@ const he = [
|
|
|
27
27
|
{ i: "symbols", icon: /* @__PURE__ */ t(c, { size: 20, icon: oe }) },
|
|
28
28
|
{ i: "flags", icon: /* @__PURE__ */ t(c, { size: 20, icon: re }) }
|
|
29
29
|
], Re = ({
|
|
30
|
-
locales:
|
|
30
|
+
locales: u,
|
|
31
31
|
onChange: C,
|
|
32
32
|
onClose: M,
|
|
33
33
|
setRandomIcon: P,
|
|
34
|
-
querySearch:
|
|
34
|
+
querySearch: m
|
|
35
35
|
}) => {
|
|
36
|
-
const [b, k] =
|
|
36
|
+
const [b, k] = d("frequent"), x = p("frequent"), h = p({}), I = p(null), [S, w] = d(""), [Q, O] = d([]), [a, B] = d(null), [E, j] = d([]), { t: G } = L(), g = p(!1), l = p(null);
|
|
37
37
|
R(() => {
|
|
38
|
-
if (typeof
|
|
39
|
-
const e =
|
|
40
|
-
if (
|
|
38
|
+
if (typeof m == "string") {
|
|
39
|
+
const e = m.slice(1);
|
|
40
|
+
if (w(e), a) {
|
|
41
41
|
const o = a.search(e);
|
|
42
42
|
j(o.map((r) => r.item.e));
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
|
-
}, [
|
|
45
|
+
}, [m, a]), R(() => {
|
|
46
46
|
(async () => {
|
|
47
|
-
const o = await
|
|
47
|
+
const o = await me(), r = o.flatMap(
|
|
48
48
|
(i) => i.e.map((n) => ({
|
|
49
49
|
e: n.e,
|
|
50
50
|
n: n.n,
|
|
51
51
|
k: n.k
|
|
52
52
|
// категория
|
|
53
53
|
}))
|
|
54
|
-
), s =
|
|
54
|
+
), s = pe.map(
|
|
55
55
|
(i) => r.find((n) => n.e === i)
|
|
56
56
|
);
|
|
57
57
|
O([{ i: "frequent", e: s }, ...o]);
|
|
@@ -74,7 +74,7 @@ const he = [
|
|
|
74
74
|
const H = K(
|
|
75
75
|
(e) => {
|
|
76
76
|
const o = e.currentTarget.value;
|
|
77
|
-
if (
|
|
77
|
+
if (w(o), a) {
|
|
78
78
|
const r = a.search(o);
|
|
79
79
|
j(r.map((s) => s.item.e));
|
|
80
80
|
}
|
|
@@ -112,7 +112,7 @@ const he = [
|
|
|
112
112
|
n < s && (s = n, r = f);
|
|
113
113
|
}
|
|
114
114
|
}), r !== x.current && (x.current = r, k(r));
|
|
115
|
-
}, J = typeof
|
|
115
|
+
}, J = typeof m == "string";
|
|
116
116
|
return /* @__PURE__ */ y(v, { gap: 0, h: "100%", children: [
|
|
117
117
|
/* @__PURE__ */ t(ne, { active: !0, children: /* @__PURE__ */ y(
|
|
118
118
|
z,
|
|
@@ -128,8 +128,8 @@ const he = [
|
|
|
128
128
|
ie,
|
|
129
129
|
{
|
|
130
130
|
leftSection: /* @__PURE__ */ t(c, { size: 16, icon: U }),
|
|
131
|
-
value:
|
|
132
|
-
placeholder: `${
|
|
131
|
+
value: S,
|
|
132
|
+
placeholder: `${u?.search}...`,
|
|
133
133
|
"data-autofocus": !0,
|
|
134
134
|
styles: {
|
|
135
135
|
input: {
|
|
@@ -142,7 +142,7 @@ const he = [
|
|
|
142
142
|
radius: "var(--mantine-radius-default)"
|
|
143
143
|
}
|
|
144
144
|
),
|
|
145
|
-
/* @__PURE__ */ t(ce, { withArrow: !0, label: G("random"), children: /* @__PURE__ */ t(
|
|
145
|
+
/* @__PURE__ */ t(ce, { withArrow: !0, label: u?.random || G("random"), children: /* @__PURE__ */ t(
|
|
146
146
|
A,
|
|
147
147
|
{
|
|
148
148
|
h: 36,
|
|
@@ -175,7 +175,7 @@ const he = [
|
|
|
175
175
|
},
|
|
176
176
|
ref: I,
|
|
177
177
|
onScroll: $,
|
|
178
|
-
children:
|
|
178
|
+
children: S ? /* @__PURE__ */ y(v, { flex: 1, align: "stretch", children: [
|
|
179
179
|
!J && /* @__PURE__ */ t(
|
|
180
180
|
F,
|
|
181
181
|
{
|
|
@@ -185,7 +185,7 @@ const he = [
|
|
|
185
185
|
top: -1,
|
|
186
186
|
style: { zIndex: 1 },
|
|
187
187
|
bg: "light-dark(var(--mantine-color-white), var(--mantine-color-dark-6))",
|
|
188
|
-
children: /* @__PURE__ */ t(q, { fz: "sm", c: "dimmed", children:
|
|
188
|
+
children: /* @__PURE__ */ t(q, { fz: "sm", c: "dimmed", children: u?.searchResults })
|
|
189
189
|
}
|
|
190
190
|
),
|
|
191
191
|
E.length ? /* @__PURE__ */ t(N, { cols: 10, spacing: 0, children: E.map((e) => /* @__PURE__ */ t(
|
|
@@ -201,7 +201,7 @@ const he = [
|
|
|
201
201
|
ue,
|
|
202
202
|
{
|
|
203
203
|
size: 100,
|
|
204
|
-
description:
|
|
204
|
+
description: u?.searchNoResults,
|
|
205
205
|
descriptionProps: {
|
|
206
206
|
fz: "sm"
|
|
207
207
|
}
|
|
@@ -217,14 +217,14 @@ const he = [
|
|
|
217
217
|
/* @__PURE__ */ t(
|
|
218
218
|
F,
|
|
219
219
|
{
|
|
220
|
-
bg: "
|
|
220
|
+
bg: "transparent",
|
|
221
221
|
py: 2,
|
|
222
222
|
px: 6,
|
|
223
223
|
pos: "sticky",
|
|
224
224
|
top: -1,
|
|
225
225
|
h: 23,
|
|
226
226
|
style: { zIndex: 1 },
|
|
227
|
-
children: /* @__PURE__ */ t(q, { fz: "xs", c: "dimmed", children:
|
|
227
|
+
children: /* @__PURE__ */ t(q, { fz: "xs", c: "dimmed", children: u?.emojiCategory?.[e.i] })
|
|
228
228
|
}
|
|
229
229
|
),
|
|
230
230
|
/* @__PURE__ */ t(N, { cols: 10, spacing: 0, children: e.e.map((o) => /* @__PURE__ */ t(
|
|
@@ -30,8 +30,8 @@ export type EmojiPickerLocales = {
|
|
|
30
30
|
chooseColor?: string;
|
|
31
31
|
searchNoResults?: string;
|
|
32
32
|
remove?: string;
|
|
33
|
-
random?: string;
|
|
34
33
|
icons?: string;
|
|
34
|
+
random?: string;
|
|
35
35
|
emojiCategory?: Record<string, string>;
|
|
36
36
|
};
|
|
37
37
|
export declare const EmojiPicker: ({ project, value, querySearch, children, onChange, position, popoverProps, showIcons, showColors, defaultActiveTab, showEmojis, withinPortal, locales: _locales, openWhen, triggerRegex, typingSeq, showRemoveButton, keepOpenOnRandom, }: PropsWithChildren<EmojiPickerProps>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EmojiPicker.d.ts","sourceRoot":"","sources":["../../../src/components/EmojiPicker/EmojiPicker.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAgC,MAAM,OAAO,CAAC;AAGxE,OAAO,EAIL,gBAAgB,EAEhB,YAAY,EAEb,MAAM,eAAe,CAAC;AAQvB,MAAM,MAAM,gBAAgB,GAAG;IAC7B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,QAAQ,CAAC,EAAE,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IAC/B,QAAQ,CAAC,EAAE,gBAAgB,CAAC;IAC5B,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,OAAO,CAAC,EAAE,kBAAkB,CAAC;IAC7B,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,gBAAgB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACjC,kIAAkI;IAClI,QAAQ,CAAC,EAAE,OAAO,GAAG,UAAU,CAAC;IAChC,2GAA2G;IAC3G,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,gHAAgH;IAChH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,0FAA0F;IAC1F,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG;IAC/B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,
|
|
1
|
+
{"version":3,"file":"EmojiPicker.d.ts","sourceRoot":"","sources":["../../../src/components/EmojiPicker/EmojiPicker.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAgC,MAAM,OAAO,CAAC;AAGxE,OAAO,EAIL,gBAAgB,EAEhB,YAAY,EAEb,MAAM,eAAe,CAAC;AAQvB,MAAM,MAAM,gBAAgB,GAAG;IAC7B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,QAAQ,CAAC,EAAE,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IAC/B,QAAQ,CAAC,EAAE,gBAAgB,CAAC;IAC5B,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,OAAO,CAAC,EAAE,kBAAkB,CAAC;IAC7B,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,gBAAgB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACjC,kIAAkI;IAClI,QAAQ,CAAC,EAAE,OAAO,GAAG,UAAU,CAAC;IAChC,2GAA2G;IAC3G,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,gHAAgH;IAChH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,0FAA0F;IAC1F,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG;IAC/B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,aAAa,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACxC,CAAC;AAEF,eAAO,MAAM,WAAW,GAAI,2OAmBzB,iBAAiB,CAAC,gBAAgB,CAAC,4CAiNrC,CAAC"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
const o = "
|
|
1
|
+
const o = "_item_s1gb0_1", s = "_randomIcon_s1gb0_51", a = "_originalTab_s1gb0_59", n = "_customTab_s1gb0_71", t = {
|
|
2
2
|
item: o,
|
|
3
|
-
randomIcon:
|
|
4
|
-
originalTab:
|
|
5
|
-
customTab:
|
|
3
|
+
randomIcon: s,
|
|
4
|
+
originalTab: a,
|
|
5
|
+
customTab: n
|
|
6
6
|
};
|
|
7
7
|
export {
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
n as customTab,
|
|
9
|
+
t as default,
|
|
10
10
|
o as item,
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
a as originalTab,
|
|
12
|
+
s as randomIcon
|
|
13
13
|
};
|
|
@@ -13,18 +13,18 @@ import { IconEntity as I, IconType as A } from "../ProjectIcon/ProjectIcon.js";
|
|
|
13
13
|
import { customIcons as D } from "./custom-icons/customIcons.js";
|
|
14
14
|
import { getIconsList as F, getRandomIcon as ae } from "./utils.js";
|
|
15
15
|
import h from "./EmojiPicker.module.css.js";
|
|
16
|
-
async function le(
|
|
17
|
-
const u = [], p =
|
|
16
|
+
async function le(a, c, l = 500) {
|
|
17
|
+
const u = [], p = a.length;
|
|
18
18
|
for (let r = 0; r < p; r += l) {
|
|
19
|
-
const w =
|
|
19
|
+
const w = a.slice(r, r + l).filter(c);
|
|
20
20
|
u.push(...w), await new Promise((f) => setTimeout(f, 0));
|
|
21
21
|
}
|
|
22
22
|
return u;
|
|
23
23
|
}
|
|
24
24
|
const Ce = M(
|
|
25
25
|
({
|
|
26
|
-
showColors:
|
|
27
|
-
locales:
|
|
26
|
+
showColors: a,
|
|
27
|
+
locales: c,
|
|
28
28
|
onChange: l,
|
|
29
29
|
value: u,
|
|
30
30
|
onClose: p,
|
|
@@ -65,7 +65,7 @@ const Ce = M(
|
|
|
65
65
|
color: i?.color,
|
|
66
66
|
type: i?.type || A.FILLED
|
|
67
67
|
})
|
|
68
|
-
),
|
|
68
|
+
), a || p());
|
|
69
69
|
}), n = J({
|
|
70
70
|
color: i?.color || ie.COLORS[0],
|
|
71
71
|
theme: w
|
|
@@ -77,11 +77,11 @@ const Ce = M(
|
|
|
77
77
|
"--icon-color-hover": K(n.value, 0.2)
|
|
78
78
|
}, [n]), q = async () => {
|
|
79
79
|
const o = await ae(r);
|
|
80
|
-
S([]), l?.(I.stringify({ icon: o, color: i?.color })), !
|
|
80
|
+
S([]), l?.(I.stringify({ icon: o, color: i?.color })), !a && !C && p();
|
|
81
81
|
};
|
|
82
82
|
return /* @__PURE__ */ m(y, { w: "100%", gap: "sm", pt: 12, pb: 8, h: "100%", children: [
|
|
83
|
-
|
|
84
|
-
/* @__PURE__ */ e(b, { lh: "140%", fw: 500, c: "dimmed", fz: "xs", children:
|
|
83
|
+
a && /* @__PURE__ */ m(y, { gap: 4, px: 8, w: "100%", children: [
|
|
84
|
+
/* @__PURE__ */ e(b, { lh: "140%", fw: 500, c: "dimmed", fz: "xs", children: c?.chooseColor || k("chooseColor") }),
|
|
85
85
|
/* @__PURE__ */ e(
|
|
86
86
|
ne,
|
|
87
87
|
{
|
|
@@ -117,7 +117,7 @@ const Ce = M(
|
|
|
117
117
|
{
|
|
118
118
|
leftSection: /* @__PURE__ */ e(L, { size: 16, icon: Q }),
|
|
119
119
|
value: f,
|
|
120
|
-
placeholder: `${
|
|
120
|
+
placeholder: `${c?.search}...`,
|
|
121
121
|
"data-autofocus": !0,
|
|
122
122
|
styles: {
|
|
123
123
|
input: {
|
|
@@ -130,7 +130,7 @@ const Ce = M(
|
|
|
130
130
|
radius: "var(--mantine-radius-default)"
|
|
131
131
|
}
|
|
132
132
|
) }),
|
|
133
|
-
/* @__PURE__ */ e(Z, { withArrow: !0, label: k("random"), children: /* @__PURE__ */ e(
|
|
133
|
+
/* @__PURE__ */ e(Z, { withArrow: !0, label: c?.random || k("random"), children: /* @__PURE__ */ e(
|
|
134
134
|
ee,
|
|
135
135
|
{
|
|
136
136
|
h: 36,
|
|
@@ -168,7 +168,7 @@ const Ce = M(
|
|
|
168
168
|
top: -1,
|
|
169
169
|
style: { zIndex: 1 },
|
|
170
170
|
bg: "light-dark(var(--mantine-color-white), var(--mantine-color-dark-6))",
|
|
171
|
-
children: /* @__PURE__ */ e(b, { fz: "xs", fw: 500, lh: "140%", c: "dimmed", children:
|
|
171
|
+
children: /* @__PURE__ */ e(b, { fz: "xs", fw: 500, lh: "140%", c: "dimmed", children: c?.searchResults })
|
|
172
172
|
}
|
|
173
173
|
),
|
|
174
174
|
T.length ? /* @__PURE__ */ e(N, { cols: 8, spacing: 0, children: T.map((o) => {
|
|
@@ -203,7 +203,7 @@ const Ce = M(
|
|
|
203
203
|
ce,
|
|
204
204
|
{
|
|
205
205
|
size: 100,
|
|
206
|
-
description:
|
|
206
|
+
description: c?.searchNoResults,
|
|
207
207
|
descriptionProps: {
|
|
208
208
|
fz: "sm"
|
|
209
209
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EntityIcon.d.ts","sourceRoot":"","sources":["../../src/components/EntityIcon.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"EntityIcon.d.ts","sourceRoot":"","sources":["../../src/components/EntityIcon.tsx"],"names":[],"mappings":"AA0BA,MAAM,WAAW,cAAc;IAC7B,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,EAAE,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACnB,EAAE,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IACpB,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAQD,eAAO,MAAM,UAAU,GAAI,CAAC,SAAS,cAAc,EAAE,WAElD;IACD,IAAI,CAAC,EAAE,CAAC,CAAC;CACV,mDA6HA,CAAC"}
|