@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,10 +1,8 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import { UserNotifications } from '../AppContainer/components/menus/UserMenu/MenuUserDropdown';
|
|
3
2
|
interface NotificationCardProps {
|
|
4
|
-
ref?: React.Ref<HTMLDivElement>;
|
|
5
3
|
isFocused: boolean;
|
|
6
4
|
notification: UserNotifications;
|
|
7
5
|
}
|
|
8
|
-
declare const NotificationCard: (
|
|
6
|
+
declare const NotificationCard: import("react").ForwardRefExoticComponent<NotificationCardProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
9
7
|
export default NotificationCard;
|
|
10
8
|
//# 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":"AAMA,OAAO,EAAE,iBAAiB,EAAE,MAAM,4DAA4D,CAAC;AAE/F,UAAU,qBAAqB;IAC7B,SAAS,EAAE,OAAO,CAAC;IACnB,YAAY,EAAE,iBAAiB,CAAC;CACjC;AAED,QAAA,MAAM,gBAAgB,kHAkFrB,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|
|
@@ -1,93 +1,92 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
notification: e,
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
children: [
|
|
32
|
-
/* @__PURE__ */ l(a, { w: 274, justify: "flex-start", children: [
|
|
33
|
-
/* @__PURE__ */ r(
|
|
34
|
-
x,
|
|
35
|
-
{
|
|
36
|
-
size: 20,
|
|
37
|
-
color: "gray",
|
|
38
|
-
style: { alignSelf: "flex-start" }
|
|
39
|
-
}
|
|
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: [
|
|
1
|
+
import { jsxs as t, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as p } from "react";
|
|
3
|
+
import { useTranslation as g } from "react-i18next";
|
|
4
|
+
import { Flex as a, Text as l, Tooltip as x } from "@mantine/core";
|
|
5
|
+
import { IconFileText as h, IconCheckbox as u, IconX as y } from "@tabler/icons-react";
|
|
6
|
+
const b = p(
|
|
7
|
+
({ isFocused: o, notification: e }, n) => {
|
|
8
|
+
const { i18n: s } = g("appContainer"), i = (d) => {
|
|
9
|
+
const m = s.language === "ru" ? "ru-RU" : "en-US";
|
|
10
|
+
return d.toLocaleDateString(m, {
|
|
11
|
+
day: "numeric",
|
|
12
|
+
month: "long",
|
|
13
|
+
year: "numeric"
|
|
14
|
+
});
|
|
15
|
+
}, c = new Date(e.createdAt), f = i(c);
|
|
16
|
+
return /* @__PURE__ */ t(
|
|
17
|
+
a,
|
|
18
|
+
{
|
|
19
|
+
ref: n,
|
|
20
|
+
px: 8,
|
|
21
|
+
w: "100%",
|
|
22
|
+
py: "sm",
|
|
23
|
+
justify: "flex-start",
|
|
24
|
+
style: {
|
|
25
|
+
backgroundColor: o ? "#f0f0f0" : "transparent",
|
|
26
|
+
cursor: "pointer",
|
|
27
|
+
borderRadius: "4px"
|
|
28
|
+
},
|
|
29
|
+
children: [
|
|
30
|
+
/* @__PURE__ */ t(a, { w: 274, justify: "flex-start", children: [
|
|
43
31
|
/* @__PURE__ */ r(
|
|
44
|
-
|
|
32
|
+
h,
|
|
45
33
|
{
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
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
|
-
)
|
|
34
|
+
size: 20,
|
|
35
|
+
color: "gray",
|
|
36
|
+
style: { alignSelf: "flex-start" }
|
|
60
37
|
}
|
|
61
38
|
),
|
|
62
|
-
/* @__PURE__ */ l(
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
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 }),
|
|
76
|
+
/* @__PURE__ */ r(
|
|
77
|
+
y,
|
|
78
|
+
{
|
|
79
|
+
width: 12,
|
|
80
|
+
height: 12,
|
|
81
|
+
color: "gray",
|
|
82
|
+
style: { alignSelf: "flex-start", marginTop: "5px" }
|
|
83
|
+
}
|
|
84
|
+
)
|
|
85
|
+
]
|
|
86
|
+
}
|
|
87
|
+
);
|
|
88
|
+
}
|
|
89
|
+
);
|
|
91
90
|
export {
|
|
92
|
-
|
|
91
|
+
b as default
|
|
93
92
|
};
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
const
|
|
2
|
-
stepperWrapper:
|
|
3
|
-
accordion:
|
|
4
|
-
content:
|
|
5
|
-
item:
|
|
1
|
+
const e = "_stepperWrapper_18rxv_1", r = "_accordion_18rxv_25", t = "_content_18rxv_33", o = "_item_18rxv_41", c = "_chevron_18rxv_49", n = "_label_18rxv_63", _ = {
|
|
2
|
+
stepperWrapper: e,
|
|
3
|
+
accordion: r,
|
|
4
|
+
content: t,
|
|
5
|
+
item: o,
|
|
6
6
|
chevron: c,
|
|
7
7
|
label: n
|
|
8
8
|
};
|
|
9
9
|
export {
|
|
10
|
-
|
|
10
|
+
r as accordion,
|
|
11
11
|
c as chevron,
|
|
12
|
-
|
|
12
|
+
t as content,
|
|
13
13
|
_ as default,
|
|
14
|
-
|
|
14
|
+
o as item,
|
|
15
15
|
n as label,
|
|
16
|
-
|
|
16
|
+
e as stepperWrapper
|
|
17
17
|
};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
const a = "
|
|
1
|
+
const a = "_boardContainer_3kft5_1", t = "_appShell_3kft5_19", e = "_navBar_3kft5_31", n = "_appShellHeader_3kft5_49", o = "_button_3kft5_83", _ = {
|
|
2
2
|
boardContainer: a,
|
|
3
|
-
appShell:
|
|
4
|
-
navBar:
|
|
5
|
-
appShellHeader:
|
|
3
|
+
appShell: t,
|
|
4
|
+
navBar: e,
|
|
5
|
+
appShellHeader: n,
|
|
6
6
|
button: o
|
|
7
7
|
};
|
|
8
8
|
export {
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
t as appShell,
|
|
10
|
+
n as appShellHeader,
|
|
11
11
|
a as boardContainer,
|
|
12
12
|
o as button,
|
|
13
13
|
_ as default,
|
|
14
|
-
|
|
14
|
+
e 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, onOnboardingTourChange: externalOnChange, onOnboardingTourStart: externalOnStart, ...rest }: OnboardingTourWrapperProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export declare const OnboardingTourWrapper: ({ featureKey, tour, children, onComplete, dependsOn, withPopoverMoveAnimation, classNames, focusRevealProps: externalFocusRevealProps, onOnboardingTourEnd: externalOnEnd, onOnboardingTourClose: externalOnClose, 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,EAGL,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,gTAcnC,0BAA0B,4CAiP5B,CAAC"}
|
|
@@ -1,51 +1,54 @@
|
|
|
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 p, Fragment as q } from "react/jsx-runtime";
|
|
2
|
+
import { useRef as x, useCallback as A, useMemo as R, useEffect as W } from "react";
|
|
3
|
+
import { useTranslation as M } from "react-i18next";
|
|
4
|
+
import { OnboardingTour as U } from "@gfazioli/mantine-onboarding-tour";
|
|
5
|
+
import { Text as D } from "@mantine/core";
|
|
6
|
+
import { DefaultSingleFooter as V, DefaultMultiFooter as G } from "./OnboardingTourFooter.js";
|
|
7
|
+
import { useOnboardingTour as H } from "./useOnboardingTour.js";
|
|
8
8
|
/* empty css */
|
|
9
|
-
const
|
|
9
|
+
const w = "onboarding-tour-popover-dropdown", T = "data-onboarding-tour-active-dropdown", J = (n) => typeof n == "string" ? /* @__PURE__ */ p(D, { fw: 500, size: "md", c: "white", mb: 4, children: n }) : n, K = (n) => typeof n == "string" ? /* @__PURE__ */ p(D, { size: "sm", c: "gray.3", children: n }) : n, nt = ({
|
|
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
|
-
|
|
12
|
+
children: P,
|
|
13
|
+
onComplete: m,
|
|
14
|
+
dependsOn: k,
|
|
15
|
+
withPopoverMoveAnimation: O = !1,
|
|
16
|
+
classNames: N = {},
|
|
17
|
+
focusRevealProps: g,
|
|
18
|
+
onOnboardingTourEnd: C,
|
|
19
|
+
onOnboardingTourClose: S,
|
|
20
|
+
onOnboardingTourChange: $,
|
|
21
|
+
onOnboardingTourStart: E,
|
|
22
|
+
...F
|
|
22
23
|
}) => {
|
|
23
|
-
const { t: l } =
|
|
24
|
-
|
|
25
|
-
}, [
|
|
26
|
-
|
|
24
|
+
const { t: l } = M("pages"), { started: y, complete: f } = H(n, { dependsOn: k }), c = x(null), b = x(null), B = A(() => {
|
|
25
|
+
f(), m?.(), C?.();
|
|
26
|
+
}, [f, m, C]), _ = A(() => {
|
|
27
|
+
f(), m?.(), S?.();
|
|
28
|
+
}, [f, m, S]), j = R(() => {
|
|
29
|
+
const o = d.length, e = o === 1;
|
|
27
30
|
return d.map((r, s) => {
|
|
28
31
|
const a = {
|
|
29
32
|
...r,
|
|
30
|
-
title:
|
|
31
|
-
content:
|
|
33
|
+
title: J(r.title),
|
|
34
|
+
content: K(r.content)
|
|
32
35
|
};
|
|
33
|
-
return r.footer === void 0 && (
|
|
34
|
-
|
|
36
|
+
return r.footer === void 0 && (e ? a.footer = (u) => /* @__PURE__ */ p(
|
|
37
|
+
V,
|
|
35
38
|
{
|
|
36
|
-
controller:
|
|
39
|
+
controller: u,
|
|
37
40
|
label: l("onboarding.continue")
|
|
38
41
|
}
|
|
39
|
-
) : a.footer = (
|
|
40
|
-
|
|
42
|
+
) : a.footer = (u) => /* @__PURE__ */ p(
|
|
43
|
+
G,
|
|
41
44
|
{
|
|
42
|
-
controller:
|
|
45
|
+
controller: u,
|
|
43
46
|
stepIndex: s,
|
|
44
|
-
totalSteps:
|
|
47
|
+
totalSteps: o,
|
|
45
48
|
labels: {
|
|
46
49
|
stepOf: l("onboarding.stepOf", {
|
|
47
50
|
current: s + 1,
|
|
48
|
-
total:
|
|
51
|
+
total: o
|
|
49
52
|
}),
|
|
50
53
|
back: l("onboarding.back"),
|
|
51
54
|
next: l("onboarding.next"),
|
|
@@ -54,23 +57,23 @@ const v = "onboarding-tour-popover-dropdown", h = "data-onboarding-tour-active-d
|
|
|
54
57
|
}
|
|
55
58
|
)), a;
|
|
56
59
|
});
|
|
57
|
-
}, [d, l]),
|
|
58
|
-
const
|
|
60
|
+
}, [d, l]), z = R(() => {
|
|
61
|
+
const o = typeof g == "object" ? g : void 0, e = o?.popoverProps ?? {}, r = e.classNames ?? {}, s = e.styles ?? {}, a = [w, r.dropdown].filter(Boolean).join(" ");
|
|
59
62
|
return {
|
|
60
|
-
...
|
|
61
|
-
disableTargetInteraction:
|
|
63
|
+
...o,
|
|
64
|
+
disableTargetInteraction: o?.disableTargetInteraction ?? !0,
|
|
62
65
|
overlayProps: {
|
|
63
66
|
blur: 0,
|
|
64
|
-
...
|
|
67
|
+
...o?.overlayProps
|
|
65
68
|
},
|
|
66
69
|
popoverProps: {
|
|
67
70
|
position: "bottom",
|
|
68
71
|
offset: 10,
|
|
69
72
|
transitionProps: {
|
|
70
73
|
duration: 0,
|
|
71
|
-
...
|
|
74
|
+
...e.transitionProps ?? {}
|
|
72
75
|
},
|
|
73
|
-
...
|
|
76
|
+
...e,
|
|
74
77
|
classNames: {
|
|
75
78
|
...r,
|
|
76
79
|
dropdown: a
|
|
@@ -93,22 +96,22 @@ const v = "onboarding-tour-popover-dropdown", h = "data-onboarding-tour-active-d
|
|
|
93
96
|
}
|
|
94
97
|
}
|
|
95
98
|
};
|
|
96
|
-
}, [
|
|
97
|
-
return
|
|
98
|
-
if (!
|
|
99
|
-
let
|
|
100
|
-
const
|
|
101
|
-
|
|
99
|
+
}, [g]);
|
|
100
|
+
return W(() => {
|
|
101
|
+
if (!y || !O) return;
|
|
102
|
+
let o = 0;
|
|
103
|
+
const e = document.createElement("style");
|
|
104
|
+
e.setAttribute("data-onboarding-tour-popover-animation", "true"), e.textContent = `.${w}:not([${T}]) { opacity: 0 !important; pointer-events: none !important; }`, document.head.appendChild(e);
|
|
102
105
|
const r = (t) => {
|
|
103
|
-
t.removeAttribute(
|
|
106
|
+
t.removeAttribute(T), 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");
|
|
104
107
|
}, s = (t) => {
|
|
105
108
|
const i = t.getBoundingClientRect();
|
|
106
109
|
if (i.width === 0 || i.height === 0) return;
|
|
107
|
-
const
|
|
108
|
-
c.current && c.current !== t && r(c.current), c.current = t, t.setAttribute(
|
|
110
|
+
const v = i.top, h = i.left, I = b.current?.top ?? v, L = b.current?.left ?? h;
|
|
111
|
+
c.current && c.current !== t && r(c.current), c.current = t, t.setAttribute(T, "true"), Object.assign(t.style, {
|
|
109
112
|
position: "fixed",
|
|
110
|
-
top: `${
|
|
111
|
-
left: `${
|
|
113
|
+
top: `${I}px`,
|
|
114
|
+
left: `${L}px`,
|
|
112
115
|
width: `${i.width}px`,
|
|
113
116
|
transform: "none",
|
|
114
117
|
opacity: "1",
|
|
@@ -116,45 +119,46 @@ const v = "onboarding-tour-popover-dropdown", h = "data-onboarding-tour-active-d
|
|
|
116
119
|
willChange: "top, left",
|
|
117
120
|
transition: "top 260ms cubic-bezier(0.2, 0, 0, 1), left 260ms cubic-bezier(0.2, 0, 0, 1)"
|
|
118
121
|
}), requestAnimationFrame(() => {
|
|
119
|
-
t.isConnected && (t.style.top = `${
|
|
120
|
-
}),
|
|
122
|
+
t.isConnected && (t.style.top = `${v}px`, t.style.left = `${h}px`);
|
|
123
|
+
}), b.current = { top: v, left: h };
|
|
121
124
|
}, a = () => {
|
|
122
125
|
const t = Array.from(
|
|
123
|
-
document.querySelectorAll(`.${
|
|
126
|
+
document.querySelectorAll(`.${w}`)
|
|
124
127
|
), i = t[t.length - 1];
|
|
125
128
|
i && s(i);
|
|
126
|
-
},
|
|
127
|
-
cancelAnimationFrame(
|
|
129
|
+
}, u = new MutationObserver(() => {
|
|
130
|
+
cancelAnimationFrame(o), o = requestAnimationFrame(a);
|
|
128
131
|
});
|
|
129
|
-
return a(),
|
|
130
|
-
|
|
132
|
+
return a(), u.observe(document.body, { childList: !0, subtree: !0 }), () => {
|
|
133
|
+
u.disconnect(), cancelAnimationFrame(o), e.remove(), c.current && (r(c.current), c.current = null), b.current = null;
|
|
131
134
|
};
|
|
132
|
-
}, [
|
|
133
|
-
|
|
135
|
+
}, [y, O]), d.length === 0 ? /* @__PURE__ */ p(q, { children: P }) : /* @__PURE__ */ p(
|
|
136
|
+
U,
|
|
134
137
|
{
|
|
135
|
-
tour:
|
|
136
|
-
started:
|
|
138
|
+
tour: j,
|
|
139
|
+
started: y,
|
|
137
140
|
onOnboardingTourStart: () => {
|
|
138
|
-
|
|
141
|
+
E?.();
|
|
139
142
|
},
|
|
140
|
-
onOnboardingTourChange: (
|
|
141
|
-
|
|
143
|
+
onOnboardingTourChange: (o) => {
|
|
144
|
+
$?.(o);
|
|
142
145
|
},
|
|
143
|
-
onOnboardingTourEnd:
|
|
146
|
+
onOnboardingTourEnd: B,
|
|
147
|
+
onOnboardingTourClose: _,
|
|
144
148
|
withPrevButton: !1,
|
|
145
149
|
withNextButton: !1,
|
|
146
150
|
withSkipButton: !1,
|
|
147
151
|
withStepper: !1,
|
|
148
152
|
maw: 300,
|
|
149
153
|
classNames: {
|
|
150
|
-
...
|
|
154
|
+
...N
|
|
151
155
|
},
|
|
152
|
-
focusRevealProps:
|
|
153
|
-
|
|
154
|
-
children:
|
|
156
|
+
focusRevealProps: z,
|
|
157
|
+
...F,
|
|
158
|
+
children: P
|
|
155
159
|
}
|
|
156
160
|
);
|
|
157
161
|
};
|
|
158
162
|
export {
|
|
159
|
-
|
|
163
|
+
nt as OnboardingTourWrapper
|
|
160
164
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
2
|
import { AvatarProps } from '@mantine/core';
|
|
3
3
|
export type ProjectIconProps = {
|
|
4
4
|
icon?: string | null;
|
|
@@ -22,13 +22,18 @@ 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
|
-
|
|
25
|
+
/** Используется для отображения бокса с иконкой или первой буквы имени */
|
|
26
|
+
export declare const ProjectIcon: import("react").ForwardRefExoticComponent<{
|
|
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"> & {
|
|
27
34
|
size?: number | string;
|
|
28
35
|
textSize?: number;
|
|
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;
|
|
36
|
+
} & import("react").RefAttributes<HTMLDivElement>>;
|
|
37
|
+
export declare const renderIcon: (data: IconData | null, fallback?: ProjectIconProps["fallback"], initials?: ProjectIconProps["initials"], name?: ProjectIconProps["name"]) => string | number | true | Iterable<ReactNode> | import("react/jsx-runtime").JSX.Element | null;
|
|
33
38
|
export {};
|
|
34
39
|
//# 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,
|
|
1
|
+
{"version":3,"file":"ProjectIcon.d.ts","sourceRoot":"","sources":["../../../src/components/ProjectIcon/ProjectIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAc,MAAM,OAAO,CAAC;AAE9C,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,0EAA0E;AAC1E,eAAO,MAAM,WAAW;WAvCf,MAAM,GAAG,IAAI;WACb,MAAM,GAAG,IAAI;eACT,SAAS;oBACJ,MAAM;wBACF,MAAM;eACf,OAAO;;WAqCT,MAAM,GAAG,MAAM;eACX,MAAM;kDAuDpB,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,kGAqBhC,CAAC"}
|