@layers-app/shared 0.3.7 → 0.3.9
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 +4 -1
- package/dist/components/AppContainer/components/AppSidebarButton.d.ts.map +1 -1
- package/dist/components/AppContainer/components/AppSidebarButton.js +22 -15
- package/dist/components/AppContainer/components/AppsSidebar/AppsSection.d.ts.map +1 -1
- package/dist/components/AppContainer/components/AppsSidebar/AppsSection.js +22 -21
- package/dist/components/AppContainer/components/AppsSidebar/UserSection.d.ts.map +1 -1
- package/dist/components/AppContainer/components/AppsSidebar/UserSection.js +48 -91
- 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 +3 -1
- package/dist/components/AttachmentsGalleryModal/components/GallerySlide.d.ts.map +1 -1
- package/dist/components/AttachmentsGalleryModal/components/GallerySlide.js +89 -63
- 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 +35 -26
- 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 +43 -36
- package/dist/components/AttachmentsGalleryModal/components/UnsupportedSection.d.ts +6 -0
- package/dist/components/AttachmentsGalleryModal/components/UnsupportedSection.d.ts.map +1 -0
- package/dist/components/AttachmentsGalleryModal/components/UnsupportedSection.js +16 -0
- package/dist/components/AttachmentsGalleryModal/hooks/useGetPreviewUrl.d.ts +4 -0
- package/dist/components/AttachmentsGalleryModal/hooks/useGetPreviewUrl.d.ts.map +1 -1
- package/dist/components/AttachmentsGalleryModal/hooks/useGetPreviewUrl.js +59 -20
- package/dist/components/AttachmentsGalleryModal/styles.module.css.js +28 -18
- package/dist/components/AttachmentsPreview/AttachmentsPreview.d.ts.map +1 -1
- package/dist/components/AttachmentsPreview/AttachmentsPreview.js +22 -18
- 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 +23 -18
- package/dist/components/ColorPicker/ColorPicker.d.ts.map +1 -1
- package/dist/components/ColorPicker/ColorPicker.js +145 -139
- package/dist/components/ColorPicker/ColorPicker.module.css.js +14 -14
- package/dist/components/ColorPicker/ColorPickerToolbar.d.ts.map +1 -1
- package/dist/components/ColorPicker/ColorPickerToolbar.js +71 -88
- package/dist/components/ColorPicker/icons.js +1 -1
- 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 +3 -4
- 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 +0 -1
- 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 +43 -33
- 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 +2 -4
- package/dist/components/FilePicker/FilePicker.d.ts.map +1 -1
- package/dist/components/FilePicker/FilePicker.js +226 -241
- package/dist/components/FilePicker/FilePicker.module.css.js +12 -14
- package/dist/components/FilePicker/FilePickerGallery.d.ts.map +1 -1
- package/dist/components/FilePicker/FilePickerGallery.js +34 -60
- package/dist/components/FilePicker/FilePickerGiphy.d.ts.map +1 -1
- package/dist/components/FilePicker/FilePickerGiphy.js +39 -38
- package/dist/components/FilePicker/FilePickerLink.d.ts.map +1 -1
- package/dist/components/FilePicker/FilePickerLink.js +26 -29
- package/dist/components/FilePicker/FilePickerUnsplash.d.ts.map +1 -1
- package/dist/components/FilePicker/FilePickerUnsplash.js +43 -42
- package/dist/components/FilePicker/FilePickerUpload.d.ts.map +1 -1
- package/dist/components/FilePicker/FilePickerUpload.js +35 -51
- package/dist/components/FilePicker/index.d.ts +0 -1
- 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 +6 -0
- package/dist/components/FormViewer/hooks/useFormGlobalTheme.d.ts.map +1 -1
- package/dist/components/FormViewer/hooks/useFormGlobalTheme.js +4 -3
- 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 +381 -6358
- 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 +3 -1
- package/dist/components/GroupAvatar/index.d.ts.map +1 -1
- package/dist/components/GroupAvatar/index.js +24 -21
- 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 +3 -1
- 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 +7 -1
- package/dist/components/NavMenu/components/NavMenuActionIcon.d.ts.map +1 -1
- package/dist/components/NavMenu/components/NavMenuActionIcon.js +21 -23
- package/dist/components/NavbarResizer/NavbarResizer.module.css.js +2 -2
- package/dist/components/NewColorPicker/components/Target.d.ts +3 -1
- package/dist/components/NewColorPicker/components/Target.d.ts.map +1 -1
- package/dist/components/NewColorPicker/components/Target.js +48 -43
- package/dist/components/NotPublicPanel/NotPublicPanel.module.css.js +11 -11
- package/dist/components/Notification/Notification.js +3 -1
- package/dist/components/Notification/Notification.module.css.js +1 -1
- package/dist/components/Notification/NotificationCard.d.ts +3 -1
- package/dist/components/Notification/NotificationCard.d.ts.map +1 -1
- package/dist/components/Notification/NotificationCard.js +87 -86
- 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 +70 -74
- package/dist/components/ProjectIcon/ProjectIcon.d.ts +7 -12
- package/dist/components/ProjectIcon/ProjectIcon.d.ts.map +1 -1
- package/dist/components/ProjectIcon/ProjectIcon.js +58 -60
- 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/TextColorIcon.d.ts +8 -0
- package/dist/components/TextColorIcon.d.ts.map +1 -0
- package/dist/components/TextColorIcon.js +60 -0
- package/dist/components/TreeIndent/TreeIndent.module.css.js +4 -4
- package/dist/components/UserAvatar/index.d.ts +2 -1
- package/dist/components/UserAvatar/index.d.ts.map +1 -1
- package/dist/components/UserAvatar/index.js +38 -35
- 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 +19 -18
- 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 +8 -0
- package/dist/config/envConfig.d.ts.map +1 -1
- package/dist/config/envConfig.js +21 -13
- package/dist/helpers/getFileIcons.d.ts.map +1 -1
- package/dist/helpers/getFileIcons.js +63 -45
- package/dist/helpers/getFileType.d.ts +1 -1
- package/dist/helpers/getFileType.d.ts.map +1 -1
- package/dist/helpers/getFileType.js +29 -8
- package/dist/helpers/getPartOfTheDay.d.ts +1 -1
- package/dist/helpers/offlineSuppression.d.ts +3 -0
- package/dist/helpers/offlineSuppression.d.ts.map +1 -0
- package/dist/helpers/offlineSuppression.js +8 -0
- package/dist/helpers/platform.d.ts +1 -1
- package/dist/helpers/platform.d.ts.map +1 -1
- package/dist/helpers/platform.js +5 -4
- package/dist/helpers/showFeatureFeedback.module.css.js +4 -4
- package/dist/helpers/showNotifications.d.ts.map +1 -1
- package/dist/helpers/showNotifications.js +30 -29
- 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 +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +467 -465
- package/dist/lang/locales/ui_en.json.js +18 -20
- package/dist/lang/locales/ui_es.json.js +12 -14
- package/dist/lang/locales/ui_ru.json.js +13 -15
- package/dist/node_modules/countries-and-timezones/esm/index.js +281 -4011
- package/docs/README.md +499 -499
- package/package.json +75 -75
- package/dist/components/FilePicker/coverCollections.d.ts +0 -4
- package/dist/components/FilePicker/coverCollections.d.ts.map +0 -1
- package/dist/components/FilePicker/coverCollections.js +0 -164
|
@@ -1,8 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { UserNotifications } from '../AppContainer/components/menus/UserMenu/MenuUserDropdown';
|
|
2
3
|
interface NotificationCardProps {
|
|
4
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
3
5
|
isFocused: boolean;
|
|
4
6
|
notification: UserNotifications;
|
|
5
7
|
}
|
|
6
|
-
declare const NotificationCard:
|
|
8
|
+
declare const NotificationCard: ({ isFocused, notification, ref, }: NotificationCardProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
9
|
export default NotificationCard;
|
|
8
10
|
//# sourceMappingURL=NotificationCard.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NotificationCard.d.ts","sourceRoot":"","sources":["../../../src/components/Notification/NotificationCard.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"NotificationCard.d.ts","sourceRoot":"","sources":["../../../src/components/Notification/NotificationCard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,OAAO,EAAE,iBAAiB,EAAE,MAAM,4DAA4D,CAAC;AAE/F,UAAU,qBAAqB;IAC7B,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC;IAChC,SAAS,EAAE,OAAO,CAAC;IACnB,YAAY,EAAE,iBAAiB,CAAC;CACjC;AAED,QAAA,MAAM,gBAAgB,GAAI,mCAIvB,qBAAqB,4CAgFvB,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|
|
@@ -1,92 +1,93 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
{
|
|
34
|
-
size: 20,
|
|
35
|
-
color: "gray",
|
|
36
|
-
style: { alignSelf: "flex-start" }
|
|
37
|
-
}
|
|
38
|
-
),
|
|
39
|
-
/* @__PURE__ */ r(l, { fz: 16, style: { alignSelf: "flex-start" }, children: e.pageIcon === "DefaultIcon" ? /* @__PURE__ */ r(u, { size: 20, color: "gray" }) : e.pageIcon }),
|
|
40
|
-
/* @__PURE__ */ t(a, { direction: "column", gap: 0, w: 200, children: [
|
|
41
|
-
/* @__PURE__ */ r(
|
|
42
|
-
x,
|
|
43
|
-
{
|
|
44
|
-
disabled: e.description.length < 40,
|
|
45
|
-
label: e.description,
|
|
46
|
-
children: /* @__PURE__ */ r(
|
|
47
|
-
l,
|
|
48
|
-
{
|
|
49
|
-
fz: "sm",
|
|
50
|
-
style: {
|
|
51
|
-
alignSelf: "flex-start",
|
|
52
|
-
lineHeight: "16px"
|
|
53
|
-
},
|
|
54
|
-
lineClamp: 2,
|
|
55
|
-
children: e.description
|
|
56
|
-
}
|
|
57
|
-
)
|
|
58
|
-
}
|
|
59
|
-
),
|
|
60
|
-
/* @__PURE__ */ t(
|
|
61
|
-
l,
|
|
62
|
-
{
|
|
63
|
-
c: "dimmed",
|
|
64
|
-
fz: "sm",
|
|
65
|
-
h: "16",
|
|
66
|
-
style: { alignSelf: "flex-start" },
|
|
67
|
-
children: [
|
|
68
|
-
" ",
|
|
69
|
-
e.pageName
|
|
70
|
-
]
|
|
71
|
-
}
|
|
72
|
-
)
|
|
73
|
-
] })
|
|
74
|
-
] }),
|
|
75
|
-
/* @__PURE__ */ r(l, { c: "dimmed", fz: "sm", w: 98, style: { alignSelf: "flex-start" }, children: f }),
|
|
1
|
+
import { jsxs as l, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { useTranslation as p } from "react-i18next";
|
|
3
|
+
import { Flex as a, Text as t, Tooltip as g } from "@mantine/core";
|
|
4
|
+
import { IconFileText as x, IconCheckbox as h, IconX as u } from "@tabler/icons-react";
|
|
5
|
+
const D = ({
|
|
6
|
+
isFocused: n,
|
|
7
|
+
notification: e,
|
|
8
|
+
ref: s
|
|
9
|
+
}) => {
|
|
10
|
+
const { i18n: o } = p("appContainer"), i = (f) => {
|
|
11
|
+
const m = o.language === "ru" ? "ru-RU" : "en-US";
|
|
12
|
+
return f.toLocaleDateString(m, {
|
|
13
|
+
day: "numeric",
|
|
14
|
+
month: "long",
|
|
15
|
+
year: "numeric"
|
|
16
|
+
});
|
|
17
|
+
}, c = new Date(e.createdAt), d = i(c);
|
|
18
|
+
return /* @__PURE__ */ l(
|
|
19
|
+
a,
|
|
20
|
+
{
|
|
21
|
+
ref: s,
|
|
22
|
+
px: 8,
|
|
23
|
+
w: "100%",
|
|
24
|
+
py: "sm",
|
|
25
|
+
justify: "flex-start",
|
|
26
|
+
style: {
|
|
27
|
+
backgroundColor: n ? "#f0f0f0" : "transparent",
|
|
28
|
+
cursor: "pointer",
|
|
29
|
+
borderRadius: "4px"
|
|
30
|
+
},
|
|
31
|
+
children: [
|
|
32
|
+
/* @__PURE__ */ l(a, { w: 274, justify: "flex-start", children: [
|
|
76
33
|
/* @__PURE__ */ r(
|
|
77
|
-
|
|
34
|
+
x,
|
|
78
35
|
{
|
|
79
|
-
|
|
80
|
-
height: 12,
|
|
36
|
+
size: 20,
|
|
81
37
|
color: "gray",
|
|
82
|
-
style: { alignSelf: "flex-start"
|
|
38
|
+
style: { alignSelf: "flex-start" }
|
|
83
39
|
}
|
|
84
|
-
)
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
40
|
+
),
|
|
41
|
+
/* @__PURE__ */ r(t, { fz: 16, style: { alignSelf: "flex-start" }, children: e.pageIcon === "DefaultIcon" ? /* @__PURE__ */ r(h, { size: 20, color: "gray" }) : e.pageIcon }),
|
|
42
|
+
/* @__PURE__ */ l(a, { direction: "column", gap: 0, w: 200, children: [
|
|
43
|
+
/* @__PURE__ */ r(
|
|
44
|
+
g,
|
|
45
|
+
{
|
|
46
|
+
disabled: e.description.length < 40,
|
|
47
|
+
label: e.description,
|
|
48
|
+
children: /* @__PURE__ */ r(
|
|
49
|
+
t,
|
|
50
|
+
{
|
|
51
|
+
fz: "sm",
|
|
52
|
+
style: {
|
|
53
|
+
alignSelf: "flex-start",
|
|
54
|
+
lineHeight: "16px"
|
|
55
|
+
},
|
|
56
|
+
lineClamp: 2,
|
|
57
|
+
children: e.description
|
|
58
|
+
}
|
|
59
|
+
)
|
|
60
|
+
}
|
|
61
|
+
),
|
|
62
|
+
/* @__PURE__ */ l(
|
|
63
|
+
t,
|
|
64
|
+
{
|
|
65
|
+
c: "dimmed",
|
|
66
|
+
fz: "sm",
|
|
67
|
+
h: "16",
|
|
68
|
+
style: { alignSelf: "flex-start" },
|
|
69
|
+
children: [
|
|
70
|
+
" ",
|
|
71
|
+
e.pageName
|
|
72
|
+
]
|
|
73
|
+
}
|
|
74
|
+
)
|
|
75
|
+
] })
|
|
76
|
+
] }),
|
|
77
|
+
/* @__PURE__ */ r(t, { c: "dimmed", fz: "sm", w: 98, style: { alignSelf: "flex-start" }, children: d }),
|
|
78
|
+
/* @__PURE__ */ r(
|
|
79
|
+
u,
|
|
80
|
+
{
|
|
81
|
+
width: 12,
|
|
82
|
+
height: 12,
|
|
83
|
+
color: "gray",
|
|
84
|
+
style: { alignSelf: "flex-start", marginTop: "5px" }
|
|
85
|
+
}
|
|
86
|
+
)
|
|
87
|
+
]
|
|
88
|
+
}
|
|
89
|
+
);
|
|
90
|
+
};
|
|
90
91
|
export {
|
|
91
|
-
|
|
92
|
+
D as default
|
|
92
93
|
};
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
const
|
|
2
|
-
stepperWrapper:
|
|
3
|
-
accordion:
|
|
4
|
-
content:
|
|
5
|
-
item:
|
|
1
|
+
const o = "_stepperWrapper_op9ph_1", p = "_accordion_op9ph_13", e = "_content_op9ph_17", t = "_item_op9ph_21", c = "_chevron_op9ph_25", n = "_label_op9ph_32", _ = {
|
|
2
|
+
stepperWrapper: o,
|
|
3
|
+
accordion: p,
|
|
4
|
+
content: e,
|
|
5
|
+
item: t,
|
|
6
6
|
chevron: c,
|
|
7
7
|
label: n
|
|
8
8
|
};
|
|
9
9
|
export {
|
|
10
|
-
|
|
10
|
+
p as accordion,
|
|
11
11
|
c as chevron,
|
|
12
|
-
|
|
12
|
+
e as content,
|
|
13
13
|
_ as default,
|
|
14
|
-
|
|
14
|
+
t as item,
|
|
15
15
|
n as label,
|
|
16
|
-
|
|
16
|
+
o as stepperWrapper
|
|
17
17
|
};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
const a = "
|
|
1
|
+
const a = "_boardContainer_zk8z5_1", e = "_appShell_zk8z5_10", n = "_navBar_zk8z5_16", t = "_appShellHeader_zk8z5_25", o = "_button_zk8z5_42", _ = {
|
|
2
2
|
boardContainer: a,
|
|
3
|
-
appShell:
|
|
4
|
-
navBar:
|
|
5
|
-
appShellHeader:
|
|
3
|
+
appShell: e,
|
|
4
|
+
navBar: n,
|
|
5
|
+
appShellHeader: t,
|
|
6
6
|
button: o
|
|
7
7
|
};
|
|
8
8
|
export {
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
e as appShell,
|
|
10
|
+
t as appShellHeader,
|
|
11
11
|
a as boardContainer,
|
|
12
12
|
o as button,
|
|
13
13
|
_ as default,
|
|
14
|
-
|
|
14
|
+
n as navBar
|
|
15
15
|
};
|
|
@@ -9,5 +9,5 @@ export interface OnboardingTourWrapperProps extends Partial<Omit<OnboardingTourP
|
|
|
9
9
|
dependsOn?: string;
|
|
10
10
|
withPopoverMoveAnimation?: boolean;
|
|
11
11
|
}
|
|
12
|
-
export declare const OnboardingTourWrapper: ({ featureKey, tour, children, onComplete, dependsOn, withPopoverMoveAnimation, classNames, focusRevealProps: externalFocusRevealProps, onOnboardingTourEnd: externalOnEnd,
|
|
12
|
+
export declare const OnboardingTourWrapper: ({ featureKey, tour, children, onComplete, dependsOn, withPopoverMoveAnimation, classNames, focusRevealProps: externalFocusRevealProps, onOnboardingTourEnd: externalOnEnd, onOnboardingTourChange: externalOnChange, onOnboardingTourStart: externalOnStart, ...rest }: OnboardingTourWrapperProps) => import("react/jsx-runtime").JSX.Element;
|
|
13
13
|
//# sourceMappingURL=OnboardingTourWrapper.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OnboardingTourWrapper.d.ts","sourceRoot":"","sources":["../../../src/components/OnboardingTour/OnboardingTourWrapper.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAA2C,MAAM,OAAO,CAAC;AAGhF,OAAO,
|
|
1
|
+
{"version":3,"file":"OnboardingTourWrapper.d.ts","sourceRoot":"","sources":["../../../src/components/OnboardingTour/OnboardingTourWrapper.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAA2C,MAAM,OAAO,CAAC;AAGhF,OAAO,EAIL,KAAK,mBAAmB,EACxB,KAAK,kBAAkB,EACxB,MAAM,mCAAmC,CAAC;AAS3C,OAAO,6BAA6B,CAAC;AAErC,MAAM,WAAW,0BACf,SAAQ,OAAO,CAAC,IAAI,CAAC,mBAAmB,EAAE,MAAM,GAAG,SAAS,GAAG,UAAU,CAAC,CAAC;IAC3E,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,kBAAkB,EAAE,CAAC;IAC3B,QAAQ,EAAE,SAAS,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,IAAI,CAAC;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,wBAAwB,CAAC,EAAE,OAAO,CAAC;CACpC;AA+BD,eAAO,MAAM,qBAAqB,GAAI,wQAanC,0BAA0B,4CA2O5B,CAAC"}
|
|
@@ -1,54 +1,51 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { useRef as
|
|
3
|
-
import { useTranslation as
|
|
4
|
-
import { OnboardingTour as
|
|
5
|
-
import { Text as
|
|
6
|
-
import { DefaultSingleFooter as
|
|
7
|
-
import { useOnboardingTour as
|
|
1
|
+
import { jsx as u, Fragment as z } from "react/jsx-runtime";
|
|
2
|
+
import { useRef as C, useCallback as I, useMemo as S, useEffect as L } from "react";
|
|
3
|
+
import { useTranslation as q } from "react-i18next";
|
|
4
|
+
import { OnboardingTour as W } from "@gfazioli/mantine-onboarding-tour";
|
|
5
|
+
import { Text as A } from "@mantine/core";
|
|
6
|
+
import { DefaultSingleFooter as M, DefaultMultiFooter as U } from "./OnboardingTourFooter.js";
|
|
7
|
+
import { useOnboardingTour as V } from "./useOnboardingTour.js";
|
|
8
8
|
/* empty css */
|
|
9
|
-
const
|
|
9
|
+
const v = "onboarding-tour-popover-dropdown", h = "data-onboarding-tour-active-dropdown", G = (n) => typeof n == "string" ? /* @__PURE__ */ u(A, { fw: 500, size: "md", c: "white", mb: 4, children: n }) : n, H = (n) => typeof n == "string" ? /* @__PURE__ */ u(A, { size: "sm", c: "gray.3", children: n }) : n, ot = ({
|
|
10
10
|
featureKey: n,
|
|
11
11
|
tour: d,
|
|
12
|
-
children:
|
|
13
|
-
onComplete:
|
|
14
|
-
dependsOn:
|
|
15
|
-
withPopoverMoveAnimation:
|
|
16
|
-
classNames:
|
|
17
|
-
focusRevealProps:
|
|
18
|
-
onOnboardingTourEnd:
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
...F
|
|
12
|
+
children: w,
|
|
13
|
+
onComplete: P,
|
|
14
|
+
dependsOn: R,
|
|
15
|
+
withPopoverMoveAnimation: T = !1,
|
|
16
|
+
classNames: D = {},
|
|
17
|
+
focusRevealProps: f,
|
|
18
|
+
onOnboardingTourEnd: O,
|
|
19
|
+
onOnboardingTourChange: k,
|
|
20
|
+
onOnboardingTourStart: N,
|
|
21
|
+
...$
|
|
23
22
|
}) => {
|
|
24
|
-
const { t: l } =
|
|
25
|
-
|
|
26
|
-
}, [
|
|
27
|
-
|
|
28
|
-
}, [f, m, S]), j = R(() => {
|
|
29
|
-
const o = d.length, e = o === 1;
|
|
23
|
+
const { t: l } = q("pages"), { started: b, complete: x } = V(n, { dependsOn: R }), c = C(null), m = C(null), E = I(() => {
|
|
24
|
+
x(), P?.(), O?.();
|
|
25
|
+
}, [x, P, O]), F = S(() => {
|
|
26
|
+
const e = d.length, o = e === 1;
|
|
30
27
|
return d.map((r, s) => {
|
|
31
28
|
const a = {
|
|
32
29
|
...r,
|
|
33
|
-
title:
|
|
34
|
-
content:
|
|
30
|
+
title: G(r.title),
|
|
31
|
+
content: H(r.content)
|
|
35
32
|
};
|
|
36
|
-
return r.footer === void 0 && (
|
|
37
|
-
|
|
33
|
+
return r.footer === void 0 && (o ? a.footer = (p) => /* @__PURE__ */ u(
|
|
34
|
+
M,
|
|
38
35
|
{
|
|
39
|
-
controller:
|
|
36
|
+
controller: p,
|
|
40
37
|
label: l("onboarding.continue")
|
|
41
38
|
}
|
|
42
|
-
) : a.footer = (
|
|
43
|
-
|
|
39
|
+
) : a.footer = (p) => /* @__PURE__ */ u(
|
|
40
|
+
U,
|
|
44
41
|
{
|
|
45
|
-
controller:
|
|
42
|
+
controller: p,
|
|
46
43
|
stepIndex: s,
|
|
47
|
-
totalSteps:
|
|
44
|
+
totalSteps: e,
|
|
48
45
|
labels: {
|
|
49
46
|
stepOf: l("onboarding.stepOf", {
|
|
50
47
|
current: s + 1,
|
|
51
|
-
total:
|
|
48
|
+
total: e
|
|
52
49
|
}),
|
|
53
50
|
back: l("onboarding.back"),
|
|
54
51
|
next: l("onboarding.next"),
|
|
@@ -57,23 +54,23 @@ const w = "onboarding-tour-popover-dropdown", T = "data-onboarding-tour-active-d
|
|
|
57
54
|
}
|
|
58
55
|
)), a;
|
|
59
56
|
});
|
|
60
|
-
}, [d, l]),
|
|
61
|
-
const
|
|
57
|
+
}, [d, l]), B = S(() => {
|
|
58
|
+
const e = typeof f == "object" ? f : void 0, o = e?.popoverProps ?? {}, r = o.classNames ?? {}, s = o.styles ?? {}, a = [v, r.dropdown].filter(Boolean).join(" ");
|
|
62
59
|
return {
|
|
63
|
-
...
|
|
64
|
-
disableTargetInteraction:
|
|
60
|
+
...e,
|
|
61
|
+
disableTargetInteraction: e?.disableTargetInteraction ?? !0,
|
|
65
62
|
overlayProps: {
|
|
66
63
|
blur: 0,
|
|
67
|
-
...
|
|
64
|
+
...e?.overlayProps
|
|
68
65
|
},
|
|
69
66
|
popoverProps: {
|
|
70
67
|
position: "bottom",
|
|
71
68
|
offset: 10,
|
|
72
69
|
transitionProps: {
|
|
73
70
|
duration: 0,
|
|
74
|
-
...
|
|
71
|
+
...o.transitionProps ?? {}
|
|
75
72
|
},
|
|
76
|
-
...
|
|
73
|
+
...o,
|
|
77
74
|
classNames: {
|
|
78
75
|
...r,
|
|
79
76
|
dropdown: a
|
|
@@ -96,22 +93,22 @@ const w = "onboarding-tour-popover-dropdown", T = "data-onboarding-tour-active-d
|
|
|
96
93
|
}
|
|
97
94
|
}
|
|
98
95
|
};
|
|
99
|
-
}, [
|
|
100
|
-
return
|
|
101
|
-
if (!
|
|
102
|
-
let
|
|
103
|
-
const
|
|
104
|
-
|
|
96
|
+
}, [f]);
|
|
97
|
+
return L(() => {
|
|
98
|
+
if (!b || !T) return;
|
|
99
|
+
let e = 0;
|
|
100
|
+
const o = document.createElement("style");
|
|
101
|
+
o.setAttribute("data-onboarding-tour-popover-animation", "true"), o.textContent = `.${v}:not([${h}]) { opacity: 0 !important; pointer-events: none !important; }`, document.head.appendChild(o);
|
|
105
102
|
const r = (t) => {
|
|
106
|
-
t.removeAttribute(
|
|
103
|
+
t.removeAttribute(h), t.style.removeProperty("position"), t.style.removeProperty("top"), t.style.removeProperty("left"), t.style.removeProperty("width"), t.style.removeProperty("transform"), t.style.removeProperty("opacity"), t.style.removeProperty("pointer-events"), t.style.removeProperty("will-change"), t.style.removeProperty("transition");
|
|
107
104
|
}, s = (t) => {
|
|
108
105
|
const i = t.getBoundingClientRect();
|
|
109
106
|
if (i.width === 0 || i.height === 0) return;
|
|
110
|
-
const
|
|
111
|
-
c.current && c.current !== t && r(c.current), c.current = t, t.setAttribute(
|
|
107
|
+
const g = i.top, y = i.left, _ = m.current?.top ?? g, j = m.current?.left ?? y;
|
|
108
|
+
c.current && c.current !== t && r(c.current), c.current = t, t.setAttribute(h, "true"), Object.assign(t.style, {
|
|
112
109
|
position: "fixed",
|
|
113
|
-
top: `${
|
|
114
|
-
left: `${
|
|
110
|
+
top: `${_}px`,
|
|
111
|
+
left: `${j}px`,
|
|
115
112
|
width: `${i.width}px`,
|
|
116
113
|
transform: "none",
|
|
117
114
|
opacity: "1",
|
|
@@ -119,46 +116,45 @@ const w = "onboarding-tour-popover-dropdown", T = "data-onboarding-tour-active-d
|
|
|
119
116
|
willChange: "top, left",
|
|
120
117
|
transition: "top 260ms cubic-bezier(0.2, 0, 0, 1), left 260ms cubic-bezier(0.2, 0, 0, 1)"
|
|
121
118
|
}), requestAnimationFrame(() => {
|
|
122
|
-
t.isConnected && (t.style.top = `${
|
|
123
|
-
}),
|
|
119
|
+
t.isConnected && (t.style.top = `${g}px`, t.style.left = `${y}px`);
|
|
120
|
+
}), m.current = { top: g, left: y };
|
|
124
121
|
}, a = () => {
|
|
125
122
|
const t = Array.from(
|
|
126
|
-
document.querySelectorAll(`.${
|
|
123
|
+
document.querySelectorAll(`.${v}`)
|
|
127
124
|
), i = t[t.length - 1];
|
|
128
125
|
i && s(i);
|
|
129
|
-
},
|
|
130
|
-
cancelAnimationFrame(
|
|
126
|
+
}, p = new MutationObserver(() => {
|
|
127
|
+
cancelAnimationFrame(e), e = requestAnimationFrame(a);
|
|
131
128
|
});
|
|
132
|
-
return a(),
|
|
133
|
-
|
|
129
|
+
return a(), p.observe(document.body, { childList: !0, subtree: !0 }), () => {
|
|
130
|
+
p.disconnect(), cancelAnimationFrame(e), o.remove(), c.current && (r(c.current), c.current = null), m.current = null;
|
|
134
131
|
};
|
|
135
|
-
}, [
|
|
136
|
-
|
|
132
|
+
}, [b, T]), d.length === 0 ? /* @__PURE__ */ u(z, { children: w }) : /* @__PURE__ */ u(
|
|
133
|
+
W,
|
|
137
134
|
{
|
|
138
|
-
tour:
|
|
139
|
-
started:
|
|
135
|
+
tour: F,
|
|
136
|
+
started: b,
|
|
140
137
|
onOnboardingTourStart: () => {
|
|
141
|
-
|
|
138
|
+
N?.();
|
|
142
139
|
},
|
|
143
|
-
onOnboardingTourChange: (
|
|
144
|
-
|
|
140
|
+
onOnboardingTourChange: (e) => {
|
|
141
|
+
k?.(e);
|
|
145
142
|
},
|
|
146
|
-
onOnboardingTourEnd:
|
|
147
|
-
onOnboardingTourClose: _,
|
|
143
|
+
onOnboardingTourEnd: E,
|
|
148
144
|
withPrevButton: !1,
|
|
149
145
|
withNextButton: !1,
|
|
150
146
|
withSkipButton: !1,
|
|
151
147
|
withStepper: !1,
|
|
152
148
|
maw: 300,
|
|
153
149
|
classNames: {
|
|
154
|
-
...
|
|
150
|
+
...D
|
|
155
151
|
},
|
|
156
|
-
focusRevealProps:
|
|
157
|
-
|
|
158
|
-
children:
|
|
152
|
+
focusRevealProps: B,
|
|
153
|
+
...$,
|
|
154
|
+
children: w
|
|
159
155
|
}
|
|
160
156
|
);
|
|
161
157
|
};
|
|
162
158
|
export {
|
|
163
|
-
|
|
159
|
+
ot as OnboardingTourWrapper
|
|
164
160
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
2
|
import { AvatarProps } from '@mantine/core';
|
|
3
3
|
export type ProjectIconProps = {
|
|
4
4
|
icon?: string | null;
|
|
@@ -22,18 +22,13 @@ export declare namespace IconEntity {
|
|
|
22
22
|
const parse: (value?: string | null) => IconData | null;
|
|
23
23
|
const stringify: (value?: Partial<IconData>) => string;
|
|
24
24
|
}
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
icon?: string | null;
|
|
28
|
-
name?: string | null;
|
|
29
|
-
fallback?: ReactNode;
|
|
30
|
-
fallbackColor?: string;
|
|
31
|
-
fallbackColorById?: string;
|
|
32
|
-
initials?: boolean;
|
|
33
|
-
} & Omit<AvatarProps, "color" | "name"> & {
|
|
25
|
+
type ProjectIconFullProps = ProjectIconProps & {
|
|
26
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
34
27
|
size?: number | string;
|
|
35
28
|
textSize?: number;
|
|
36
|
-
}
|
|
37
|
-
|
|
29
|
+
};
|
|
30
|
+
/** Используется для отображения бокса с иконкой или первой буквы имени */
|
|
31
|
+
export declare const ProjectIcon: ({ icon, name, fallback, size, textSize, fallbackColorById, initials, fallbackColor, ref, ...props }: ProjectIconFullProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
32
|
+
export declare const renderIcon: (data: IconData | null, fallback?: ProjectIconProps["fallback"], initials?: ProjectIconProps["initials"], name?: ProjectIconProps["name"]) => string | number | bigint | true | Iterable<React.ReactNode> | Promise<string | number | bigint | boolean | React.ReactPortal | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | null | undefined> | import("react/jsx-runtime").JSX.Element | null;
|
|
38
33
|
export {};
|
|
39
34
|
//# sourceMappingURL=ProjectIcon.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProjectIcon.d.ts","sourceRoot":"","sources":["../../../src/components/ProjectIcon/ProjectIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,
|
|
1
|
+
{"version":3,"file":"ProjectIcon.d.ts","sourceRoot":"","sources":["../../../src/components/ProjectIcon/ProjectIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEzC,OAAO,EAAU,WAAW,EAAQ,MAAM,eAAe,CAAC;AAO1D,MAAM,MAAM,gBAAgB,GAAG;IAC7B,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,GAAG,IAAI,CAAC,WAAW,EAAE,OAAO,GAAG,MAAM,CAAC,CAAC;AAExC,oBAAY,QAAQ;IAClB,QAAQ,MAAM;IACd,MAAM,MAAM;CACb;AAED,KAAK,QAAQ,GAAG;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,QAAQ,CAAA;CAAE,CAAC;AAE/E,yBAAiB,UAAU,CAAC;IACnB,MAAM,KAAK,GAAI,QAAQ,MAAM,GAAG,IAAI,KAAG,QAAQ,GAAG,IASxD,CAAC;IAEK,MAAM,SAAS,GAAI,QAAQ,OAAO,CAAC,QAAQ,CAAC,KAAG,MAQrD,CAAC;CACH;AAED,KAAK,oBAAoB,GAAG,gBAAgB,GAAG;IAC7C,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC;IAChC,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACvB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,0EAA0E;AAC1E,eAAO,MAAM,WAAW,GAAI,qGAWzB,oBAAoB,mDAsCtB,CAAC;AAEF,eAAO,MAAM,UAAU,GACrB,MAAM,QAAQ,GAAG,IAAI,EACrB,WAAW,gBAAgB,CAAC,UAAU,CAAC,EACvC,WAAW,gBAAgB,CAAC,UAAU,CAAC,EACvC,OAAO,gBAAgB,CAAC,MAAM,CAAC,2SAqBhC,CAAC"}
|