@layers-app/shared 0.2.7 → 0.2.8-test
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/assets/svg/socials/instagram.svg.js +3 -3
- package/dist/components/AliasTextInput/AliasTextInput.d.ts.map +1 -1
- package/dist/components/AliasTextInput/AliasTextInput.js +21 -20
- package/dist/components/AppContainer/AppContainer.js +3 -3
- package/dist/components/AppContainer/AppContainer.module.css.js +1 -1
- package/dist/components/AppContainer/components/AppsSidebar/AppsSection.d.ts.map +1 -1
- package/dist/components/AppContainer/components/AppsSidebar/AppsSection.js +39 -31
- package/dist/components/AppContainer/components/AppsSidebar/TopSection.d.ts.map +1 -1
- package/dist/components/AppContainer/components/AppsSidebar/TopSection.js +42 -34
- package/dist/components/AppContainer/components/AppsSidebar/UserSection.d.ts.map +1 -1
- package/dist/components/AppContainer/components/AppsSidebar/UserSection.js +53 -44
- package/dist/components/AppContainer/components/menus/HelpMenu/HelpMenu.d.ts.map +1 -1
- package/dist/components/AppContainer/components/menus/HelpMenu/HelpMenu.js +150 -50
- package/dist/components/AppContainer/components/menus/HelpMenu/HelpMenu.module.css.js +1 -1
- package/dist/components/AppContainer/hooks/useAppContainer.d.ts +1 -1
- package/dist/components/AppContainer/hooks/useAppContainer.d.ts.map +1 -1
- package/dist/components/AppContainer/hooks/useAppContainer.js +23 -23
- package/dist/components/AppContainer/hooks/useAppContainerDataStore.js +1 -1
- package/dist/components/AppContainer/types.d.ts +1 -1
- package/dist/components/AppContainer/types.d.ts.map +1 -1
- package/dist/components/AppShell/AppShell.module.css.js +5 -5
- package/dist/components/AttachmentsGalleryModal/components/ShakePlayer/ShakaPlayer.module.css.js +4 -4
- package/dist/components/AttachmentsGalleryModal/styles.module.css.js +14 -14
- 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/CommentComposer/CommentComposer.module.css.js +4 -4
- 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/EmojiPicker.d.ts.map +1 -1
- package/dist/components/EmojiPicker/EmojiPicker.js +28 -29
- package/dist/components/EmojiPicker/EmojiPicker.module.css.js +8 -8
- 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.d.ts +11 -0
- package/dist/components/FeatureProgress/FeatureProgress.d.ts.map +1 -0
- package/dist/components/FeatureProgress/FeatureProgress.js +148 -0
- package/dist/components/FeatureProgress/FeatureProgress.module.css.js +81 -0
- package/dist/components/FeatureProgress/FeatureProgressCelebrationIcon.d.ts +2 -0
- package/dist/components/FeatureProgress/FeatureProgressCelebrationIcon.d.ts.map +1 -0
- package/dist/components/FeatureProgress/FeatureProgressCelebrationIcon.js +88 -0
- package/dist/components/FeatureProgress/FeatureProgressCompleteModal.d.ts +9 -0
- package/dist/components/FeatureProgress/FeatureProgressCompleteModal.d.ts.map +1 -0
- package/dist/components/FeatureProgress/FeatureProgressCompleteModal.js +35 -0
- package/dist/components/FeatureProgress/constants.d.ts +4 -0
- package/dist/components/FeatureProgress/constants.d.ts.map +1 -0
- package/dist/components/FeatureProgress/constants.js +4 -0
- package/dist/components/FeatureProgress/index.d.ts +3 -0
- package/dist/components/FeatureProgress/index.d.ts.map +1 -0
- 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 +247 -229
- package/dist/components/FilePicker/FilePicker.module.css.js +12 -10
- package/dist/components/FilePicker/FilePickerGallery.d.ts.map +1 -1
- package/dist/components/FilePicker/FilePickerGallery.js +59 -33
- package/dist/components/FilePicker/FilePickerGiphy.d.ts.map +1 -1
- package/dist/components/FilePicker/FilePickerGiphy.js +38 -38
- package/dist/components/FilePicker/FilePickerLink.d.ts.map +1 -1
- package/dist/components/FilePicker/FilePickerLink.js +18 -15
- package/dist/components/FilePicker/FilePickerUnsplash.d.ts.map +1 -1
- package/dist/components/FilePicker/FilePickerUnsplash.js +39 -39
- package/dist/components/FilePicker/FilePickerUpload.d.ts.map +1 -1
- package/dist/components/FilePicker/FilePickerUpload.js +51 -35
- package/dist/components/FilePicker/api/giphyApi.js +10 -10
- 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/PictureSelectableCard.js +42 -42
- package/dist/components/FormViewer/components/fields/SelectableCard/SelectableCard.module.css.js +8 -8
- package/dist/components/FormViewer/components/fields/UploadField/UploadFile/UploadFile.module.css.js +4 -4
- package/dist/components/FormViewer/store/formStore.d.ts.map +1 -1
- package/dist/components/ImageCropper/ImageCropper.d.ts.map +1 -1
- package/dist/components/ImageCropper/ImageCropper.module.css.js +38 -38
- package/dist/components/ImageCropper/index.d.ts +1 -1
- package/dist/components/ImageCropper/index.d.ts.map +1 -1
- package/dist/components/ImageCropper/useCropInteraction.d.ts.map +1 -1
- package/dist/components/ImageCropper/useCropInteraction.js +13 -2
- package/dist/components/IntegrationFlowAnimation/IntegrationFlowAnimation.d.ts.map +1 -1
- package/dist/components/IntegrationFlowAnimation/IntegrationFlowAnimation.module.css.js +7 -7
- package/dist/components/IntegrationFlowAnimation/icons/GoogleDriveIcon.d.ts +1 -1
- package/dist/components/IntegrationFlowAnimation/icons/GoogleDriveIcon.d.ts.map +1 -1
- package/dist/components/IntegrationFlowAnimation/icons/GoogleDriveIcon.js +3 -1
- package/dist/components/IntegrationFlowAnimation/icons/LayersCubeIcon.d.ts +1 -1
- package/dist/components/IntegrationFlowAnimation/icons/LayersCubeIcon.d.ts.map +1 -1
- package/dist/components/IntegrationFlowAnimation/icons/LayersCubeIcon.js +3 -1
- package/dist/components/LanguagePicker/LanguagePicker.d.ts.map +1 -1
- package/dist/components/LanguagePicker/LanguagePicker.js +27 -26
- package/dist/components/LanguagePicker/LanguagePicker.module.css.js +2 -2
- 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.d.ts.map +1 -1
- package/dist/components/MediaLibrary/MediaLibraryRow.js +16 -4
- package/dist/components/NavMenu/NavMenu.d.ts +2 -1
- package/dist/components/NavMenu/NavMenu.d.ts.map +1 -1
- package/dist/components/NavMenu/NavMenu.module.css.js +16 -16
- package/dist/components/NavMenu/components/NavMenuItem.d.ts +2 -1
- package/dist/components/NavMenu/components/NavMenuItem.d.ts.map +1 -1
- package/dist/components/NavMenu/components/NavMenuItem.js +119 -100
- package/dist/components/NavMenu/types.d.ts.map +1 -1
- package/dist/components/NavbarResizer/NavbarResizer.module.css.js +2 -2
- package/dist/components/NotPublicPanel/NotPublicPanel.module.css.js +11 -11
- package/dist/components/Notification/Notification.module.css.js +1 -1
- package/dist/components/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/OnboardingTourFooter.d.ts +17 -0
- package/dist/components/OnboardingTour/OnboardingTourFooter.d.ts.map +1 -0
- package/dist/components/OnboardingTour/OnboardingTourFooter.js +40 -0
- package/dist/components/OnboardingTour/OnboardingTourWrapper.d.ts +13 -0
- package/dist/components/OnboardingTour/OnboardingTourWrapper.d.ts.map +1 -0
- package/dist/components/OnboardingTour/OnboardingTourWrapper.js +164 -0
- package/dist/components/OnboardingTour/index.d.ts +4 -0
- package/dist/components/OnboardingTour/index.d.ts.map +1 -0
- package/dist/components/OnboardingTour/useOnboardingTour.d.ts +14 -0
- package/dist/components/OnboardingTour/useOnboardingTour.d.ts.map +1 -0
- package/dist/components/OnboardingTour/useOnboardingTour.js +50 -0
- package/dist/components/SearchFilters/SearchFilters.module.css.js +1 -1
- package/dist/components/SettingsSection/styles.module.css.js +1 -1
- package/dist/components/StorageUsageProgress/StorageUsageProgress.module.css.js +1 -1
- package/dist/components/TimezonePicker/index.d.ts.map +1 -1
- package/dist/components/WorkspaceMenu/WorkspaceItem.d.ts.map +1 -1
- package/dist/components/WorkspaceMenu/WorkspaceItem.js +21 -21
- package/dist/components/WorkspaceMenu/WorkspaceMenu.d.ts.map +1 -1
- package/dist/components/WorkspaceMenu/WorkspaceMenu.js +74 -74
- package/dist/components/table/FrontTable.d.ts.map +1 -1
- package/dist/components/table/hooks/useColumnsResizing.d.ts.map +1 -1
- package/dist/helpers/getFileIcons.js +1 -1
- package/dist/helpers/getFileType.d.ts +1 -1
- package/dist/helpers/getFileType.d.ts.map +1 -1
- package/dist/helpers/platform.d.ts +14 -0
- package/dist/helpers/platform.d.ts.map +1 -0
- package/dist/helpers/platform.js +33 -0
- package/dist/helpers/showFeatureFeedback.d.ts +1 -1
- package/dist/helpers/showFeatureFeedback.d.ts.map +1 -1
- package/dist/helpers/showFeatureFeedback.module.css.js +4 -4
- package/dist/helpers/showNotifications.module.css.js +1 -1
- package/dist/hooks/useFeatureFeedback.d.ts.map +1 -1
- package/dist/hooks/useFeatureFeedback.js +1 -4
- package/dist/hooks/usePlatform.d.ts +3 -0
- package/dist/hooks/usePlatform.d.ts.map +1 -0
- package/dist/hooks/usePlatform.js +10 -0
- package/dist/index.css +1 -1
- package/dist/index.d.ts +5 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +364 -337
- package/dist/lang/locales/ui_en.json.js +15 -15
- package/dist/lang/locales/ui_es.json.js +13 -13
- package/dist/lang/locales/ui_ru.json.js +12 -12
- package/dist/lib/contentImport/lexicalSerializer.js +59 -47
- package/dist/lib/contentImport/utils.d.ts.map +1 -1
- package/dist/lib/layersVisitData.d.ts.map +1 -1
- package/dist/store/featureProgress.d.ts +39 -0
- package/dist/store/featureProgress.d.ts.map +1 -0
- package/dist/store/featureProgress.js +68 -0
- package/dist/store/plansModal.d.ts.map +1 -1
- package/dist/store/plansModal.js +8 -6
- package/docs/README.md +499 -499
- package/package.json +75 -74
|
@@ -1,71 +1,85 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { memo as f, useRef as
|
|
1
|
+
import { jsx as t, jsxs as u } from "react/jsx-runtime";
|
|
2
|
+
import { memo as f, useRef as k, useEffect as O, useMemo as v } from "react";
|
|
3
3
|
import { useTranslation as g } from "react-i18next";
|
|
4
|
-
import { NavLink as
|
|
5
|
-
import { MoreHorizontalIcon as
|
|
4
|
+
import { NavLink as E } from "react-router-dom";
|
|
5
|
+
import { MoreHorizontalIcon as M, ArrowRight01Icon as P } from "@hugeicons/core-free-icons";
|
|
6
6
|
import { HugeiconsIcon as C } from "@hugeicons/react";
|
|
7
|
-
import { Flex as h, Loader as
|
|
8
|
-
import { useForm as
|
|
9
|
-
import { useClickOutside as
|
|
10
|
-
import { useAsyncStatus as
|
|
11
|
-
import { useMenu as
|
|
12
|
-
import { appContainerStore as
|
|
13
|
-
import { EmojiPicker as
|
|
7
|
+
import { Flex as h, Loader as I, Text as N, FocusTrap as R, Tooltip as w, Center as j } from "@mantine/core";
|
|
8
|
+
import { useForm as z } from "@mantine/form";
|
|
9
|
+
import { useClickOutside as A } from "@mantine/hooks";
|
|
10
|
+
import { useAsyncStatus as D } from "../../../hooks/useAsyncStatus.js";
|
|
11
|
+
import { useMenu as T } from "../../../hooks/useMenu.js";
|
|
12
|
+
import { appContainerStore as F } from "../../AppContainer/hooks/useAppContainerStore.js";
|
|
13
|
+
import { EmojiPicker as L } from "../../EmojiPicker/EmojiPicker.js";
|
|
14
14
|
import { EntityIcon as b } from "../../EntityIcon.js";
|
|
15
|
-
import { NavMenu as
|
|
15
|
+
import { NavMenu as $ } from "../NavMenu.js";
|
|
16
16
|
import { useNavMenuStore as m } from "../store.js";
|
|
17
17
|
import { NavMenuActionIcon as B } from "./NavMenuActionIcon.js";
|
|
18
18
|
import s from "../NavMenu.module.css.js";
|
|
19
|
-
const
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
}
|
|
51
|
-
|
|
19
|
+
const se = f(
|
|
20
|
+
({ item: e, ignoreDepth: i, disableToggleOnClick: a }) => {
|
|
21
|
+
const { useStore: r } = m(), o = r((c) => c.editId === e.id);
|
|
22
|
+
return /* @__PURE__ */ t(
|
|
23
|
+
x,
|
|
24
|
+
{
|
|
25
|
+
depth: i ? void 0 : e.depth,
|
|
26
|
+
testId: e.testId,
|
|
27
|
+
children: o ? /* @__PURE__ */ t(H, { item: e }) : /* @__PURE__ */ t(V, { item: e, disableToggleOnClick: a })
|
|
28
|
+
}
|
|
29
|
+
);
|
|
30
|
+
}
|
|
31
|
+
), V = f(
|
|
32
|
+
({
|
|
33
|
+
item: e,
|
|
34
|
+
disableToggleOnClick: i
|
|
35
|
+
}) => {
|
|
36
|
+
const { api: a, useStore: r } = m(), o = r((S) => S.props.onClick), { isMobile: c } = T(), { t: l } = g("appContainer"), p = () => {
|
|
37
|
+
i || (o ? o(e) : e.hasChildren && a.toggleOpened(e));
|
|
38
|
+
}, d = e.data?.isReadOnly, n = e.href ? /* @__PURE__ */ t(
|
|
39
|
+
E,
|
|
40
|
+
{
|
|
41
|
+
to: e.href,
|
|
42
|
+
className: s.item,
|
|
43
|
+
"data-active": e.active,
|
|
44
|
+
"data-has-children": e.hasChildren,
|
|
45
|
+
"data-read-only": d,
|
|
46
|
+
onClick: d ? void 0 : () => {
|
|
47
|
+
c && !e.hasChildren && F.api.closeToolbar();
|
|
48
|
+
},
|
|
49
|
+
children: /* @__PURE__ */ t(y, { item: e })
|
|
50
|
+
}
|
|
51
|
+
) : /* @__PURE__ */ t(
|
|
52
|
+
"div",
|
|
53
|
+
{
|
|
54
|
+
className: s.item,
|
|
55
|
+
"data-active": e.active,
|
|
56
|
+
"data-has-children": e.hasChildren,
|
|
57
|
+
"data-read-only": d,
|
|
58
|
+
onClick: d ? void 0 : p,
|
|
59
|
+
children: /* @__PURE__ */ t(y, { item: e })
|
|
60
|
+
}
|
|
61
|
+
);
|
|
62
|
+
return d ? /* @__PURE__ */ t(w, { label: l("readOnlyAccess"), position: "right", withArrow: !0, children: n }) : n;
|
|
63
|
+
}
|
|
64
|
+
), y = f(({ item: e }) => {
|
|
65
|
+
const { t: i } = g(), { useStore: a, api: r } = m(), o = a((n) => n.opened.includes(e.id)), c = a((n) => n.loading[e.id]), l = v(
|
|
52
66
|
() => ({ ...e.data, isOpen: o }),
|
|
53
67
|
[o, e.data]
|
|
54
|
-
),
|
|
68
|
+
), p = e.data?.isReadOnly, d = p ? 0.3 : void 0;
|
|
55
69
|
return /* @__PURE__ */ u(h, { gap: 4, h: "100%", flex: 1, miw: 0, justify: "space-between", children: [
|
|
56
70
|
/* @__PURE__ */ u(h, { gap: 4, miw: 0, flex: 1, children: [
|
|
57
|
-
|
|
71
|
+
c ? /* @__PURE__ */ t(j, { w: 20, h: 20, children: /* @__PURE__ */ t(I, { size: 16 }) }) : e.hasChildren && !p && /* @__PURE__ */ t(
|
|
58
72
|
B,
|
|
59
73
|
{
|
|
60
74
|
className: s.chevron,
|
|
61
75
|
"data-cy": e.testId ? `${e.testId}-expand` : void 0,
|
|
62
|
-
onClick: (
|
|
63
|
-
|
|
76
|
+
onClick: (n) => {
|
|
77
|
+
n.preventDefault(), n.stopPropagation(), r.toggleOpened(e);
|
|
64
78
|
},
|
|
65
|
-
children: /* @__PURE__ */
|
|
79
|
+
children: /* @__PURE__ */ t(
|
|
66
80
|
C,
|
|
67
81
|
{
|
|
68
|
-
icon:
|
|
82
|
+
icon: P,
|
|
69
83
|
size: 16,
|
|
70
84
|
style: {
|
|
71
85
|
transform: `rotate(${o ? 90 : 0}deg)`,
|
|
@@ -75,27 +89,28 @@ const re = f(({ item: e, ignoreDepth: a }) => {
|
|
|
75
89
|
)
|
|
76
90
|
}
|
|
77
91
|
),
|
|
78
|
-
/* @__PURE__ */
|
|
79
|
-
/* @__PURE__ */
|
|
80
|
-
|
|
92
|
+
/* @__PURE__ */ t("div", { className: s.icon, style: { opacity: d }, children: /* @__PURE__ */ t(b, { item: l }) }),
|
|
93
|
+
/* @__PURE__ */ t(
|
|
94
|
+
w,
|
|
81
95
|
{
|
|
82
96
|
disabled: e.title.length < 25,
|
|
83
|
-
label: e.title ||
|
|
97
|
+
label: e.title || i("noName"),
|
|
84
98
|
openDelay: 400,
|
|
85
|
-
children: /* @__PURE__ */
|
|
86
|
-
|
|
99
|
+
children: /* @__PURE__ */ t(
|
|
100
|
+
N,
|
|
87
101
|
{
|
|
88
102
|
flex: 1,
|
|
89
103
|
truncate: !0,
|
|
90
|
-
style: { opacity: e.title ?
|
|
104
|
+
style: { opacity: e.title ? d ?? 1 : 0.5 },
|
|
91
105
|
size: "sm",
|
|
92
106
|
fw: 500,
|
|
93
107
|
miw: 0,
|
|
94
108
|
c: "var(--mantine-color-text)",
|
|
95
|
-
|
|
96
|
-
|
|
109
|
+
"data-cy": e.testId ? `${e.testId}-title` : void 0,
|
|
110
|
+
onDoubleClick: (n) => {
|
|
111
|
+
a.getState().props.onEdit && !e?.isDisabledEditByDoubleClick && (n.preventDefault(), n.stopPropagation(), r.startEditing(e.id));
|
|
97
112
|
},
|
|
98
|
-
children: e.title ||
|
|
113
|
+
children: e.title || i("noName")
|
|
99
114
|
}
|
|
100
115
|
)
|
|
101
116
|
}
|
|
@@ -103,38 +118,38 @@ const re = f(({ item: e, ignoreDepth: a }) => {
|
|
|
103
118
|
] }),
|
|
104
119
|
e.rightSection
|
|
105
120
|
] });
|
|
106
|
-
}),
|
|
107
|
-
const { api:
|
|
121
|
+
}), H = f(({ item: e }) => {
|
|
122
|
+
const { api: i, useStore: a } = m(), r = k(null), o = z({
|
|
108
123
|
initialValues: {
|
|
109
124
|
name: e.title,
|
|
110
125
|
icon: e.data?.icon || ""
|
|
111
126
|
}
|
|
112
|
-
}),
|
|
113
|
-
|
|
127
|
+
}), c = (n) => {
|
|
128
|
+
i.handleEdit({
|
|
114
129
|
id: e.id,
|
|
115
|
-
name:
|
|
116
|
-
icon:
|
|
117
|
-
}),
|
|
118
|
-
},
|
|
119
|
-
|
|
130
|
+
name: n.name ?? "",
|
|
131
|
+
icon: n.icon ?? ""
|
|
132
|
+
}), i.stopEditing();
|
|
133
|
+
}, l = A(() => {
|
|
134
|
+
c(o.getValues());
|
|
120
135
|
});
|
|
121
|
-
|
|
122
|
-
|
|
136
|
+
O(() => {
|
|
137
|
+
r.current && r.current.select();
|
|
123
138
|
}, []);
|
|
124
|
-
const
|
|
139
|
+
const p = v(
|
|
125
140
|
() => ["SPRINT", "PROJECT"].includes(e.data?.type || ""),
|
|
126
141
|
[e.data?.type]
|
|
127
|
-
),
|
|
128
|
-
return /* @__PURE__ */
|
|
142
|
+
), d = a((n) => n.opened.includes(e.id));
|
|
143
|
+
return /* @__PURE__ */ t(
|
|
129
144
|
"form",
|
|
130
145
|
{
|
|
131
|
-
onSubmit: o.onSubmit(
|
|
146
|
+
onSubmit: o.onSubmit(c),
|
|
132
147
|
className: s.item,
|
|
133
|
-
ref:
|
|
148
|
+
ref: l,
|
|
134
149
|
"data-editing": !0,
|
|
135
150
|
children: /* @__PURE__ */ u(h, { gap: 4, h: "100%", flex: 1, miw: 0, justify: "space-between", children: [
|
|
136
|
-
/* @__PURE__ */
|
|
137
|
-
|
|
151
|
+
/* @__PURE__ */ t("div", { className: s.icon, children: /* @__PURE__ */ t(
|
|
152
|
+
L,
|
|
138
153
|
{
|
|
139
154
|
showIcons: !0,
|
|
140
155
|
showColors: !0,
|
|
@@ -143,63 +158,67 @@ const re = f(({ item: e, ignoreDepth: a }) => {
|
|
|
143
158
|
floatingStrategy: "fixed"
|
|
144
159
|
},
|
|
145
160
|
value: o.values.icon,
|
|
146
|
-
onChange: (
|
|
147
|
-
children: /* @__PURE__ */
|
|
161
|
+
onChange: (n) => o.setFieldValue("icon", n),
|
|
162
|
+
children: /* @__PURE__ */ t($.ActionIcon, { disabled: p, children: /* @__PURE__ */ t(
|
|
148
163
|
b,
|
|
149
164
|
{
|
|
150
|
-
item: { ...e.data, isOpen:
|
|
165
|
+
item: { ...e.data, isOpen: d, icon: o.values.icon }
|
|
151
166
|
}
|
|
152
167
|
) })
|
|
153
168
|
}
|
|
154
169
|
) }),
|
|
155
|
-
/* @__PURE__ */
|
|
170
|
+
/* @__PURE__ */ t(R, { children: /* @__PURE__ */ t(
|
|
156
171
|
"input",
|
|
157
172
|
{
|
|
158
|
-
ref:
|
|
173
|
+
ref: r,
|
|
159
174
|
className: s.editInput,
|
|
160
175
|
"data-cy": e.testId ? `${e.testId}-rename-input` : void 0,
|
|
161
176
|
...o.getInputProps("name"),
|
|
162
177
|
maxLength: 255,
|
|
163
|
-
onFocus: (
|
|
178
|
+
onFocus: (n) => n.target.select()
|
|
164
179
|
}
|
|
165
180
|
) })
|
|
166
181
|
] })
|
|
167
182
|
}
|
|
168
183
|
);
|
|
169
184
|
}), x = f(
|
|
170
|
-
({
|
|
185
|
+
({
|
|
186
|
+
depth: e = 0,
|
|
187
|
+
children: i,
|
|
188
|
+
testId: a
|
|
189
|
+
}) => /* @__PURE__ */ u(
|
|
171
190
|
"div",
|
|
172
191
|
{
|
|
173
192
|
className: s.itemContainer,
|
|
174
|
-
"data-cy":
|
|
193
|
+
"data-cy": a,
|
|
175
194
|
style: {
|
|
176
195
|
"--depth": e
|
|
177
196
|
},
|
|
178
197
|
children: [
|
|
179
|
-
Array.from({ length: e }).map((
|
|
180
|
-
|
|
198
|
+
Array.from({ length: e }).map((r, o) => /* @__PURE__ */ t("div", { className: s.depthBox }, o)),
|
|
199
|
+
i
|
|
181
200
|
]
|
|
182
201
|
}
|
|
183
202
|
)
|
|
184
|
-
),
|
|
203
|
+
), ce = ({
|
|
185
204
|
depth: e,
|
|
186
|
-
itemId:
|
|
187
|
-
currentChildrenCount:
|
|
205
|
+
itemId: i,
|
|
206
|
+
currentChildrenCount: a
|
|
188
207
|
}) => {
|
|
189
|
-
const { t:
|
|
190
|
-
return /* @__PURE__ */
|
|
208
|
+
const { t: r } = g("appContainer"), { api: o } = m(), { isLoading: c, onSubmit: l } = D();
|
|
209
|
+
return /* @__PURE__ */ t(x, { depth: e, children: /* @__PURE__ */ t(
|
|
191
210
|
"div",
|
|
192
211
|
{
|
|
193
212
|
className: s.item,
|
|
194
|
-
onClick: () =>
|
|
195
|
-
children: /* @__PURE__ */
|
|
196
|
-
/* @__PURE__ */
|
|
197
|
-
/* @__PURE__ */
|
|
213
|
+
onClick: () => l(() => o.loadMore({ itemId: i, currentChildrenCount: a })),
|
|
214
|
+
children: /* @__PURE__ */ t(h, { gap: 4, h: "100%", flex: 1, miw: 0, justify: "space-between", children: /* @__PURE__ */ u(h, { gap: 4, miw: 0, flex: 1, c: "gray", children: [
|
|
215
|
+
/* @__PURE__ */ t("div", { className: s.icon, children: c ? /* @__PURE__ */ t(I, { size: 16 }) : /* @__PURE__ */ t(C, { icon: M, size: 16 }) }),
|
|
216
|
+
/* @__PURE__ */ t(N, { flex: 1, truncate: !0, size: "sm", fw: 500, miw: 0, children: r("loadMore") })
|
|
198
217
|
] }) })
|
|
199
218
|
}
|
|
200
219
|
) });
|
|
201
220
|
};
|
|
202
221
|
export {
|
|
203
|
-
|
|
204
|
-
|
|
222
|
+
se as NavMenuItem,
|
|
223
|
+
ce as NavMenuLoadMore
|
|
205
224
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/NavMenu/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElC,MAAM,MAAM,eAAe,GAAG;IAC5B,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,UAAU,CAAC,EAAE,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/NavMenu/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElC,MAAM,MAAM,eAAe,GAAG;IAC5B,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB,CAAC;AAEF,MAAM,MAAM,cAAc,CAAC,IAAI,GAAG,eAAe,IAAI;IACnD,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,YAAY,CAAC,EAAE,SAAS,CAAC;IACzB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,EAAE,cAAc,CAAC,IAAI,CAAC,EAAE,CAAC;IACjC,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,IAAI,CAAC;IACZ,2BAA2B,CAAC,EAAE,OAAO,CAAC;IACtC,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,MAAM,MAAM,oBAAoB,CAAC,IAAI,GAAG,eAAe,IACrD,cAAc,CAAC,IAAI,CAAC,GAAG;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,OAAO,CAAC;IAChB,mBAAmB,EAAE,MAAM,CAAC;IAC5B,mBAAmB,EAAE,MAAM,CAAC;CAC7B,CAAC;AAEJ,MAAM,MAAM,kBAAkB,CAAC,IAAI,GAAG,eAAe,IAAI,CAAC,CAAC,EAAE;IAC3D,IAAI,EAAE,oBAAoB,CAAC,IAAI,CAAC,CAAC;IACjC,IAAI,EAAE,oBAAoB,CAAC,IAAI,CAAC,CAAC;IACjC,QAAQ,EAAE,0BAA0B,CAAC;CACtC,KAAK,IAAI,CAAC;AAEX,MAAM,MAAM,iBAAiB,GAAG,CAAC,OAAO,EAAE;IACxC,MAAM,EAAE,MAAM,CAAC;IACf,oBAAoB,EAAE,MAAM,CAAC;CAC9B,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;AAEpB,MAAM,MAAM,0BAA0B,GAAG,QAAQ,GAAG,OAAO,GAAG,QAAQ,CAAC"}
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
const e = "
|
|
1
|
+
const e = "_previewBoxTitle_p1noi_1", o = "_previewBox_p1noi_1", i = "_previewContainer_p1noi_89", n = "_previewHeader_p1noi_115", r = "_headerDot_p1noi_139", p = "_previewContent_p1noi_159", t = "_processing_p1noi_205", _ = {
|
|
2
2
|
previewBoxTitle: e,
|
|
3
3
|
previewBox: o,
|
|
4
|
-
previewContainer:
|
|
5
|
-
previewHeader:
|
|
6
|
-
headerDot:
|
|
7
|
-
previewContent:
|
|
8
|
-
processing:
|
|
4
|
+
previewContainer: i,
|
|
5
|
+
previewHeader: n,
|
|
6
|
+
headerDot: r,
|
|
7
|
+
previewContent: p,
|
|
8
|
+
processing: t
|
|
9
9
|
};
|
|
10
10
|
export {
|
|
11
11
|
_ as default,
|
|
12
|
-
|
|
12
|
+
r as headerDot,
|
|
13
13
|
o as previewBox,
|
|
14
14
|
e as previewBoxTitle,
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
15
|
+
i as previewContainer,
|
|
16
|
+
p as previewContent,
|
|
17
|
+
n as previewHeader,
|
|
18
|
+
t as processing
|
|
19
19
|
};
|
|
@@ -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
|
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { type OnboardingTourController } from '@gfazioli/mantine-onboarding-tour';
|
|
2
|
+
export declare const DefaultSingleFooter: ({ controller, label, }: {
|
|
3
|
+
controller: OnboardingTourController;
|
|
4
|
+
label: string;
|
|
5
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export declare const DefaultMultiFooter: ({ controller, stepIndex, totalSteps, labels, }: {
|
|
7
|
+
controller: OnboardingTourController;
|
|
8
|
+
stepIndex: number;
|
|
9
|
+
totalSteps: number;
|
|
10
|
+
labels: {
|
|
11
|
+
stepOf: string;
|
|
12
|
+
back: string;
|
|
13
|
+
next: string;
|
|
14
|
+
done: string;
|
|
15
|
+
};
|
|
16
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
//# sourceMappingURL=OnboardingTourFooter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OnboardingTourFooter.d.ts","sourceRoot":"","sources":["../../../src/components/OnboardingTour/OnboardingTourFooter.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,wBAAwB,EAAE,MAAM,mCAAmC,CAAC;AAGlF,eAAO,MAAM,mBAAmB,GAAI,wBAGjC;IACD,UAAU,EAAE,wBAAwB,CAAC;IACrC,KAAK,EAAE,MAAM,CAAC;CACf,4CAMA,CAAC;AAEF,eAAO,MAAM,kBAAkB,GAAI,gDAKhC;IACD,UAAU,EAAE,wBAAwB,CAAC;IACrC,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC;CACtE,4CA+BA,CAAC"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { jsx as t, jsxs as c } from "react/jsx-runtime";
|
|
2
|
+
import { Group as r, Button as s, Text as u } from "@mantine/core";
|
|
3
|
+
const a = ({
|
|
4
|
+
controller: e,
|
|
5
|
+
label: i
|
|
6
|
+
}) => /* @__PURE__ */ t(r, { justify: "flex-end", mt: "md", children: /* @__PURE__ */ t(s, { size: "sm", onClick: () => e.endTour(), children: i }) }), h = ({
|
|
7
|
+
controller: e,
|
|
8
|
+
stepIndex: i,
|
|
9
|
+
totalSteps: d,
|
|
10
|
+
labels: n
|
|
11
|
+
}) => {
|
|
12
|
+
const m = i === 0, o = i === d - 1;
|
|
13
|
+
return /* @__PURE__ */ c(r, { justify: "space-between", mt: "md", children: [
|
|
14
|
+
/* @__PURE__ */ t(u, { size: "sm", c: "gray.5", children: n.stepOf }),
|
|
15
|
+
/* @__PURE__ */ c(r, { gap: "xs", children: [
|
|
16
|
+
!m && /* @__PURE__ */ t(
|
|
17
|
+
s,
|
|
18
|
+
{
|
|
19
|
+
variant: "subtle",
|
|
20
|
+
color: "gray.5",
|
|
21
|
+
size: "sm",
|
|
22
|
+
onClick: () => e.prevStep(),
|
|
23
|
+
children: n.back
|
|
24
|
+
}
|
|
25
|
+
),
|
|
26
|
+
/* @__PURE__ */ t(
|
|
27
|
+
s,
|
|
28
|
+
{
|
|
29
|
+
size: "sm",
|
|
30
|
+
onClick: () => o ? e.endTour() : e.nextStep(),
|
|
31
|
+
children: o ? n.done : n.next
|
|
32
|
+
}
|
|
33
|
+
)
|
|
34
|
+
] })
|
|
35
|
+
] });
|
|
36
|
+
};
|
|
37
|
+
export {
|
|
38
|
+
h as DefaultMultiFooter,
|
|
39
|
+
a as DefaultSingleFooter
|
|
40
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
|
+
import { type OnboardingTourProps, type OnboardingTourStep } from '@gfazioli/mantine-onboarding-tour';
|
|
3
|
+
import './OnboardingTourWrapper.css';
|
|
4
|
+
export interface OnboardingTourWrapperProps extends Partial<Omit<OnboardingTourProps, 'tour' | 'started' | 'children'>> {
|
|
5
|
+
featureKey: string;
|
|
6
|
+
tour: OnboardingTourStep[];
|
|
7
|
+
children: ReactNode;
|
|
8
|
+
onComplete?: () => void;
|
|
9
|
+
dependsOn?: string;
|
|
10
|
+
withPopoverMoveAnimation?: boolean;
|
|
11
|
+
}
|
|
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
|
+
//# sourceMappingURL=OnboardingTourWrapper.d.ts.map
|
|
@@ -0,0 +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,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"}
|