@layers-app/shared 0.2.6 → 0.2.8
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/AppSidebarButton.d.ts +1 -1
- package/dist/components/AppContainer/components/AppSidebarButton.d.ts.map +1 -1
- package/dist/components/AppContainer/components/AppSidebarButton.js +4 -4
- package/dist/components/AppContainer/components/AppsSidebar/AppsSection.d.ts.map +1 -1
- package/dist/components/AppContainer/components/AppsSidebar/AppsSection.js +40 -32
- package/dist/components/AppContainer/components/AppsSidebar/TopSection.d.ts.map +1 -1
- package/dist/components/AppContainer/components/AppsSidebar/TopSection.js +41 -33
- package/dist/components/AppContainer/components/AppsSidebar/UserSection.d.ts.map +1 -1
- package/dist/components/AppContainer/components/AppsSidebar/UserSection.js +58 -49
- package/dist/components/AppContainer/components/menus/HelpMenu/HelpMenu.d.ts.map +1 -1
- package/dist/components/AppContainer/components/menus/HelpMenu/HelpMenu.js +151 -51
- 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 +46 -43
- package/dist/components/AppContainer/hooks/useAppContainerDataStore.d.ts.map +1 -1
- package/dist/components/AppContainer/hooks/useAppContainerDataStore.js +4 -3
- package/dist/components/AppContainer/types.d.ts +2 -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/OneSlideLayput.js +39 -37
- 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/hooks/useCreateFormContext.d.ts.map +1 -1
- package/dist/components/FormViewer/hooks/useCreateFormContext.js +10 -10
- package/dist/components/FormViewer/store/formStore.d.ts.map +1 -1
- package/dist/components/FormViewer/store/formStoreApi.js +13 -13
- package/dist/components/ImageCropper/ImageCropper.d.ts.map +1 -1
- package/dist/components/ImageCropper/ImageCropper.js +185 -183
- 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 +45 -35
- package/dist/components/LanguagePicker/LanguagePicker.module.css.js +6 -4
- 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 +128 -106
- package/dist/components/NavMenu/types.d.ts +1 -0
- 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/SocialLinkRow/index.d.ts.map +1 -1
- package/dist/components/SocialLinkRow/index.js +80 -58
- package/dist/components/StorageUsageProgress/StorageUsageProgress.module.css.js +1 -1
- package/dist/components/TimezonePicker/index.d.ts.map +1 -1
- package/dist/components/TimezonePicker/index.js +42 -41
- package/dist/components/UserAvatar/index.d.ts.map +1 -1
- package/dist/components/UserAvatar/index.js +11 -10
- 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 +16 -0
- package/dist/helpers/showFeatureFeedback.d.ts.map +1 -0
- package/dist/helpers/showFeatureFeedback.js +109 -0
- package/dist/helpers/showFeatureFeedback.module.css.js +9 -0
- package/dist/helpers/showNotifications.d.ts.map +1 -1
- package/dist/helpers/showNotifications.js +81 -113
- package/dist/helpers/showNotifications.module.css.js +10 -10
- package/dist/hooks/useFeatureFeedback.d.ts +23 -0
- package/dist/hooks/useFeatureFeedback.d.ts.map +1 -0
- package/dist/hooks/useFeatureFeedback.js +45 -0
- 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 +8 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +373 -334
- 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 +13 -0
- package/dist/lib/layersVisitData.d.ts.map +1 -0
- package/dist/lib/layersVisitData.js +37 -0
- 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 +78 -74
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EmojiPicker.d.ts","sourceRoot":"","sources":["../../../src/components/EmojiPicker/EmojiPicker.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAgC,MAAM,OAAO,CAAC;AAGxE,OAAO,EAIL,gBAAgB,EAEhB,YAAY,EAEb,MAAM,eAAe,CAAC;AAQvB,MAAM,MAAM,gBAAgB,GAAG;IAC7B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,QAAQ,CAAC,EAAE,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IAC/B,QAAQ,CAAC,EAAE,gBAAgB,CAAC;IAC5B,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,OAAO,CAAC,EAAE,kBAAkB,CAAC;IAC7B,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,gBAAgB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACjC,kIAAkI;IAClI,QAAQ,CAAC,EAAE,OAAO,GAAG,UAAU,CAAC;IAChC,2GAA2G;IAC3G,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,gHAAgH;IAChH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG;IAC/B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,aAAa,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACxC,CAAC;AAEF,eAAO,MAAM,WAAW,GAAI,yNAkBzB,iBAAiB,CAAC,gBAAgB,CAAC,
|
|
1
|
+
{"version":3,"file":"EmojiPicker.d.ts","sourceRoot":"","sources":["../../../src/components/EmojiPicker/EmojiPicker.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAgC,MAAM,OAAO,CAAC;AAGxE,OAAO,EAIL,gBAAgB,EAEhB,YAAY,EAEb,MAAM,eAAe,CAAC;AAQvB,MAAM,MAAM,gBAAgB,GAAG;IAC7B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,QAAQ,CAAC,EAAE,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IAC/B,QAAQ,CAAC,EAAE,gBAAgB,CAAC;IAC5B,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,OAAO,CAAC,EAAE,kBAAkB,CAAC;IAC7B,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,gBAAgB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACjC,kIAAkI;IAClI,QAAQ,CAAC,EAAE,OAAO,GAAG,UAAU,CAAC;IAChC,2GAA2G;IAC3G,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,gHAAgH;IAChH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG;IAC/B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,aAAa,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACxC,CAAC;AAEF,eAAO,MAAM,WAAW,GAAI,yNAkBzB,iBAAiB,CAAC,gBAAgB,CAAC,4CA8MrC,CAAC"}
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import { jsxs as j, jsx as o } from "react/jsx-runtime";
|
|
2
2
|
import { useState as d, useMemo as Q, useEffect as v } from "react";
|
|
3
3
|
import { useTranslation as $ } from "react-i18next";
|
|
4
|
-
import { Popover as k, Center as A, Tabs as
|
|
4
|
+
import { Popover as k, Center as A, Tabs as s, Flex as T, Button as E } from "@mantine/core";
|
|
5
5
|
import { IconEntity as G } from "../ProjectIcon/ProjectIcon.js";
|
|
6
6
|
import { EmojiPanel as J } from "./EmojiPanel.js";
|
|
7
7
|
import { IconsPanel as K } from "./IconsPanel.js";
|
|
8
|
-
import
|
|
8
|
+
import f from "./EmojiPicker.module.css.js";
|
|
9
9
|
const _ = ({
|
|
10
10
|
project: C,
|
|
11
11
|
value: i,
|
|
12
12
|
querySearch: a,
|
|
13
13
|
children: N,
|
|
14
|
-
onChange:
|
|
14
|
+
onChange: p,
|
|
15
15
|
position: R = "bottom-start",
|
|
16
16
|
popoverProps: b,
|
|
17
17
|
showIcons: u,
|
|
18
18
|
showColors: D,
|
|
19
19
|
defaultActiveTab: I = null,
|
|
20
|
-
showEmojis:
|
|
20
|
+
showEmojis: t = !0,
|
|
21
21
|
withinPortal: w = !1,
|
|
22
22
|
locales: h,
|
|
23
23
|
openWhen: g = "click",
|
|
@@ -25,7 +25,7 @@ const _ = ({
|
|
|
25
25
|
typingSeq: c,
|
|
26
26
|
showRemoveButton: L = !0
|
|
27
27
|
}) => {
|
|
28
|
-
const { t: e } = $("ui"), [n, r] = d(!1), [M,
|
|
28
|
+
const { t: e } = $("ui"), [n, r] = d(!1), [M, y] = d(I), [O, z] = d(i || null), [x, B] = d(null), l = Q(() => ({
|
|
29
29
|
emojis: e("emojis"),
|
|
30
30
|
remove: e("remove"),
|
|
31
31
|
search: e("search"),
|
|
@@ -48,20 +48,20 @@ const _ = ({
|
|
|
48
48
|
...h
|
|
49
49
|
}), [e, h]);
|
|
50
50
|
v(() => {
|
|
51
|
-
const m = u && G.parse(i)?.icon ? "icons" :
|
|
52
|
-
!n && m &&
|
|
53
|
-
}, [n,
|
|
54
|
-
if (g !== "realtime" || typeof c != "number" ||
|
|
51
|
+
const m = u && G.parse(i)?.icon ? "icons" : t ? "emojis" : null;
|
|
52
|
+
!n && m && y(m);
|
|
53
|
+
}, [n, t, u, i]), v(() => {
|
|
54
|
+
if (g !== "realtime" || typeof c != "number" || x === c) return;
|
|
55
55
|
B(c);
|
|
56
|
-
const m = a ?? "", H = !!
|
|
56
|
+
const m = a ?? "", H = !!t && P.test(m);
|
|
57
57
|
r(H);
|
|
58
58
|
}, [
|
|
59
59
|
g,
|
|
60
60
|
c,
|
|
61
|
-
|
|
61
|
+
x,
|
|
62
62
|
a,
|
|
63
63
|
P,
|
|
64
|
-
|
|
64
|
+
t
|
|
65
65
|
]);
|
|
66
66
|
const F = typeof a == "string";
|
|
67
67
|
return /* @__PURE__ */ j(
|
|
@@ -76,7 +76,6 @@ const _ = ({
|
|
|
76
76
|
dropdown: {
|
|
77
77
|
padding: 0,
|
|
78
78
|
width: "380px",
|
|
79
|
-
height: "404px",
|
|
80
79
|
display: "flex",
|
|
81
80
|
flexDirection: "column",
|
|
82
81
|
minHeight: 50
|
|
@@ -103,11 +102,11 @@ const _ = ({
|
|
|
103
102
|
children: N ?? O
|
|
104
103
|
}
|
|
105
104
|
) }),
|
|
106
|
-
/* @__PURE__ */ o(k.Dropdown, { w: "380px",
|
|
107
|
-
|
|
105
|
+
/* @__PURE__ */ o(k.Dropdown, { w: "380px", children: /* @__PURE__ */ j(
|
|
106
|
+
s,
|
|
108
107
|
{
|
|
109
108
|
value: M,
|
|
110
|
-
onChange:
|
|
109
|
+
onChange: y,
|
|
111
110
|
keepMounted: !1,
|
|
112
111
|
h: "100%",
|
|
113
112
|
styles: {
|
|
@@ -125,7 +124,7 @@ const _ = ({
|
|
|
125
124
|
},
|
|
126
125
|
children: [
|
|
127
126
|
!F && /* @__PURE__ */ j(
|
|
128
|
-
|
|
127
|
+
s.List,
|
|
129
128
|
{
|
|
130
129
|
style: {
|
|
131
130
|
gap: "4px"
|
|
@@ -133,24 +132,24 @@ const _ = ({
|
|
|
133
132
|
h: 54,
|
|
134
133
|
px: 8,
|
|
135
134
|
children: [
|
|
136
|
-
|
|
137
|
-
|
|
135
|
+
t && /* @__PURE__ */ o(
|
|
136
|
+
s.Tab,
|
|
138
137
|
{
|
|
139
|
-
className:
|
|
138
|
+
className: f.originalTab,
|
|
140
139
|
h: "100%",
|
|
141
140
|
p: 0,
|
|
142
141
|
value: "emojis",
|
|
143
|
-
children: /* @__PURE__ */ o(T, { className:
|
|
142
|
+
children: /* @__PURE__ */ o(T, { className: f.customTab, px: "sm", h: 36, children: l.emojis })
|
|
144
143
|
}
|
|
145
144
|
),
|
|
146
145
|
u && /* @__PURE__ */ o(
|
|
147
|
-
|
|
146
|
+
s.Tab,
|
|
148
147
|
{
|
|
149
|
-
className:
|
|
148
|
+
className: f.originalTab,
|
|
150
149
|
h: "100%",
|
|
151
150
|
p: 0,
|
|
152
151
|
value: "icons",
|
|
153
|
-
children: /* @__PURE__ */ o(T, { className:
|
|
152
|
+
children: /* @__PURE__ */ o(T, { className: f.customTab, px: "sm", h: 36, children: l.icons })
|
|
154
153
|
}
|
|
155
154
|
),
|
|
156
155
|
!!String(i) && L && /* @__PURE__ */ o(
|
|
@@ -163,7 +162,7 @@ const _ = ({
|
|
|
163
162
|
px: 7,
|
|
164
163
|
h: 36,
|
|
165
164
|
color: "var(--mantine-color-gray-light-color)",
|
|
166
|
-
onClick: () =>
|
|
165
|
+
onClick: () => p?.(""),
|
|
167
166
|
style: { marginLeft: "auto" },
|
|
168
167
|
children: l.remove
|
|
169
168
|
}
|
|
@@ -171,10 +170,10 @@ const _ = ({
|
|
|
171
170
|
]
|
|
172
171
|
}
|
|
173
172
|
),
|
|
174
|
-
/* @__PURE__ */ o(
|
|
173
|
+
/* @__PURE__ */ o(s.Panel, { mah: 470, style: { overflow: "auto" }, value: "emojis", children: /* @__PURE__ */ o(
|
|
175
174
|
J,
|
|
176
175
|
{
|
|
177
|
-
onChange:
|
|
176
|
+
onChange: p,
|
|
178
177
|
value: i,
|
|
179
178
|
querySearch: a,
|
|
180
179
|
locales: l,
|
|
@@ -183,7 +182,7 @@ const _ = ({
|
|
|
183
182
|
}
|
|
184
183
|
) }),
|
|
185
184
|
/* @__PURE__ */ o(
|
|
186
|
-
|
|
185
|
+
s.Panel,
|
|
187
186
|
{
|
|
188
187
|
mah: 470,
|
|
189
188
|
h: "100%",
|
|
@@ -193,7 +192,7 @@ const _ = ({
|
|
|
193
192
|
K,
|
|
194
193
|
{
|
|
195
194
|
project: C,
|
|
196
|
-
onChange:
|
|
195
|
+
onChange: p,
|
|
197
196
|
value: i,
|
|
198
197
|
locales: l,
|
|
199
198
|
showColors: D,
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
const o = "
|
|
1
|
+
const o = "_item_s1gb0_1", s = "_randomIcon_s1gb0_51", a = "_originalTab_s1gb0_59", n = "_customTab_s1gb0_71", t = {
|
|
2
2
|
item: o,
|
|
3
|
-
randomIcon:
|
|
4
|
-
originalTab:
|
|
5
|
-
customTab:
|
|
3
|
+
randomIcon: s,
|
|
4
|
+
originalTab: a,
|
|
5
|
+
customTab: n
|
|
6
6
|
};
|
|
7
7
|
export {
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
n as customTab,
|
|
9
|
+
t as default,
|
|
10
10
|
o as item,
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
a as originalTab,
|
|
12
|
+
s as randomIcon
|
|
13
13
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Error404.d.ts","sourceRoot":"","sources":["../../../../src/components/ErrorPage/components/Error404.tsx"],"names":[],"mappings":"AAEA,eAAO,MAAM,QAAQ;
|
|
1
|
+
{"version":3,"file":"Error404.d.ts","sourceRoot":"","sources":["../../../../src/components/ErrorPage/components/Error404.tsx"],"names":[],"mappings":"AAEA,eAAO,MAAM,QAAQ;eAC+X,CAAC;6CADrX,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
interface FeatureProgressProps {
|
|
2
|
+
featureKey: string;
|
|
3
|
+
totalSteps: number;
|
|
4
|
+
translationKey: string;
|
|
5
|
+
translationNs?: string;
|
|
6
|
+
dependsOn?: string;
|
|
7
|
+
onStartTutorial?: () => void;
|
|
8
|
+
}
|
|
9
|
+
export declare const FeatureProgress: ({ featureKey, totalSteps, translationKey, translationNs, onStartTutorial, }: FeatureProgressProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
10
|
+
export {};
|
|
11
|
+
//# sourceMappingURL=FeatureProgress.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FeatureProgress.d.ts","sourceRoot":"","sources":["../../../src/components/FeatureProgress/FeatureProgress.tsx"],"names":[],"mappings":"AAYA,UAAU,oBAAoB;IAC5B,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc,EAAE,MAAM,CAAC;IACvB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,eAAe,CAAC,EAAE,MAAM,IAAI,CAAC;CAC9B;AAED,eAAO,MAAM,eAAe,GAAI,6EAM7B,oBAAoB,mDAoJtB,CAAC"}
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
import { jsxs as r, Fragment as I, jsx as s } from "react/jsx-runtime";
|
|
2
|
+
import { useState as P, useCallback as x } from "react";
|
|
3
|
+
import { useTranslation as O } from "react-i18next";
|
|
4
|
+
import { Progress as k, ActionIcon as S, Button as W } from "@mantine/core";
|
|
5
|
+
import { IconCheck as B, IconX as $ } from "@tabler/icons-react";
|
|
6
|
+
import i from "clsx";
|
|
7
|
+
import { useFeatureProgressStore as w } from "../../store/featureProgress.js";
|
|
8
|
+
import { FeatureProgressCompleteModal as j } from "./FeatureProgressCompleteModal.js";
|
|
9
|
+
import e from "./FeatureProgress.module.css.js";
|
|
10
|
+
const G = ({
|
|
11
|
+
featureKey: p,
|
|
12
|
+
totalSteps: u,
|
|
13
|
+
translationKey: t,
|
|
14
|
+
translationNs: f,
|
|
15
|
+
onStartTutorial: C
|
|
16
|
+
}) => {
|
|
17
|
+
const { t: m } = O(f), [c, h] = P(!1), [T, N] = P(!1), n = w((o) => o.features[p]), z = n === "done", g = n && n !== "done" ? n.completedSteps : [], l = Math.round(g.length / u * 100), F = x(() => {
|
|
18
|
+
N(!1), w.getState().finishFeatureFlow(p);
|
|
19
|
+
}, [p]), a = l === 100, M = x(() => {
|
|
20
|
+
a ? N(!0) : h((o) => !o);
|
|
21
|
+
}, [a]);
|
|
22
|
+
return z ? null : /* @__PURE__ */ r(I, { children: [
|
|
23
|
+
/* @__PURE__ */ r("div", { className: e.featureProgressRoot, children: [
|
|
24
|
+
/* @__PURE__ */ r(
|
|
25
|
+
"div",
|
|
26
|
+
{
|
|
27
|
+
className: i(
|
|
28
|
+
e.collapsedBar,
|
|
29
|
+
c && e.collapsedBarOpened,
|
|
30
|
+
a && e.collapsedBarComplete
|
|
31
|
+
),
|
|
32
|
+
onClick: M,
|
|
33
|
+
children: [
|
|
34
|
+
/* @__PURE__ */ s("span", { className: e.collapsedTitle, children: m(`${t}.title`) }),
|
|
35
|
+
!a && /* @__PURE__ */ s(
|
|
36
|
+
"div",
|
|
37
|
+
{
|
|
38
|
+
className: i(
|
|
39
|
+
e.collapsedProgressWrap,
|
|
40
|
+
c && e.collapsedProgressWrapHidden
|
|
41
|
+
),
|
|
42
|
+
children: /* @__PURE__ */ s(
|
|
43
|
+
k,
|
|
44
|
+
{
|
|
45
|
+
w: 80,
|
|
46
|
+
value: l,
|
|
47
|
+
size: 6,
|
|
48
|
+
radius: "xl",
|
|
49
|
+
classNames: { root: e.progressTrack }
|
|
50
|
+
}
|
|
51
|
+
)
|
|
52
|
+
}
|
|
53
|
+
),
|
|
54
|
+
a ? /* @__PURE__ */ r("span", { className: e.collapsedCompleteRight, children: [
|
|
55
|
+
/* @__PURE__ */ s(B, { size: 20, stroke: 2.5 }),
|
|
56
|
+
l,
|
|
57
|
+
"%"
|
|
58
|
+
] }) : c ? /* @__PURE__ */ s(
|
|
59
|
+
S,
|
|
60
|
+
{
|
|
61
|
+
variant: "subtle",
|
|
62
|
+
color: "gray",
|
|
63
|
+
size: "sm",
|
|
64
|
+
className: e.collapsedCloseBtn,
|
|
65
|
+
onClick: (o) => {
|
|
66
|
+
o.stopPropagation(), h(!1);
|
|
67
|
+
},
|
|
68
|
+
children: /* @__PURE__ */ s($, { size: 14 })
|
|
69
|
+
}
|
|
70
|
+
) : /* @__PURE__ */ r("span", { className: e.collapsedPercent, children: [
|
|
71
|
+
l,
|
|
72
|
+
"%"
|
|
73
|
+
] })
|
|
74
|
+
]
|
|
75
|
+
}
|
|
76
|
+
),
|
|
77
|
+
/* @__PURE__ */ s(
|
|
78
|
+
"div",
|
|
79
|
+
{
|
|
80
|
+
className: i(
|
|
81
|
+
e.stepsDrawer,
|
|
82
|
+
c && e.stepsDrawerOpened
|
|
83
|
+
),
|
|
84
|
+
children: /* @__PURE__ */ r("div", { className: e.expandedContainer, children: [
|
|
85
|
+
/* @__PURE__ */ r("div", { className: e.expandedProgressRow, children: [
|
|
86
|
+
/* @__PURE__ */ s("span", { className: e.expandedProgressEmoji, children: "🚀" }),
|
|
87
|
+
/* @__PURE__ */ s(
|
|
88
|
+
k,
|
|
89
|
+
{
|
|
90
|
+
value: l,
|
|
91
|
+
size: 8,
|
|
92
|
+
radius: "xl",
|
|
93
|
+
classNames: { root: e.progressTrack },
|
|
94
|
+
style: { flex: 1 }
|
|
95
|
+
}
|
|
96
|
+
),
|
|
97
|
+
/* @__PURE__ */ r("span", { className: e.expandedPercent, children: [
|
|
98
|
+
l,
|
|
99
|
+
"%"
|
|
100
|
+
] })
|
|
101
|
+
] }),
|
|
102
|
+
/* @__PURE__ */ s("div", { className: e.stepsList, children: Array.from({ length: u }, (o, D) => {
|
|
103
|
+
const d = D + 1, v = g.includes(d);
|
|
104
|
+
return /* @__PURE__ */ r("div", { className: e.stepItem, children: [
|
|
105
|
+
/* @__PURE__ */ s(
|
|
106
|
+
"div",
|
|
107
|
+
{
|
|
108
|
+
className: i(
|
|
109
|
+
e.stepCircle,
|
|
110
|
+
v ? e.stepCircleDone : e.stepCirclePending
|
|
111
|
+
),
|
|
112
|
+
children: v ? /* @__PURE__ */ s(B, { size: 14 }) : d
|
|
113
|
+
}
|
|
114
|
+
),
|
|
115
|
+
/* @__PURE__ */ s("span", { className: e.stepText, children: m(`${t}.step.${d}`) })
|
|
116
|
+
] }, d);
|
|
117
|
+
}) }),
|
|
118
|
+
C && /* @__PURE__ */ s("div", { className: e.startTutorialButtonWrap, children: /* @__PURE__ */ s(
|
|
119
|
+
W,
|
|
120
|
+
{
|
|
121
|
+
fullWidth: !0,
|
|
122
|
+
h: 30,
|
|
123
|
+
radius: "md",
|
|
124
|
+
className: e.startTutorialButton,
|
|
125
|
+
onClick: () => {
|
|
126
|
+
h(!1), C();
|
|
127
|
+
},
|
|
128
|
+
children: m(`${t}.startTutorial`)
|
|
129
|
+
}
|
|
130
|
+
) })
|
|
131
|
+
] })
|
|
132
|
+
}
|
|
133
|
+
)
|
|
134
|
+
] }),
|
|
135
|
+
/* @__PURE__ */ s(
|
|
136
|
+
j,
|
|
137
|
+
{
|
|
138
|
+
opened: T,
|
|
139
|
+
onClose: F,
|
|
140
|
+
translationKey: t,
|
|
141
|
+
translationNs: f
|
|
142
|
+
}
|
|
143
|
+
)
|
|
144
|
+
] });
|
|
145
|
+
};
|
|
146
|
+
export {
|
|
147
|
+
G as FeatureProgress
|
|
148
|
+
};
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
const e = "_featureProgressRoot_bvfoj_1", o = "_progressTrack_bvfoj_9", t = "_collapsedBar_bvfoj_23", l = "_collapsedBarComplete_bvfoj_73", s = "_collapsedTitle_bvfoj_91", c = "_collapsedCompleteRight_bvfoj_99", r = "_collapsedProgressWrap_bvfoj_135", p = "_collapsedProgressWrapHidden_bvfoj_147", a = "_collapsedPercent_bvfoj_155", _ = "_collapsedCloseBtn_bvfoj_169", n = "_collapsedBarOpened_bvfoj_177", d = "_stepsDrawer_bvfoj_185", i = "_stepsDrawerOpened_bvfoj_221", m = "_expandedContainer_bvfoj_237", P = "_expandedProgressRow_bvfoj_245", b = "_expandedProgressEmoji_bvfoj_259", f = "_expandedPercent_bvfoj_271", j = "_stepsList_bvfoj_285", v = "_stepItem_bvfoj_301", C = "_stepCircle_bvfoj_315", g = "_stepCirclePending_bvfoj_341", B = "_stepCircleDone_bvfoj_353", T = "_stepText_bvfoj_365", u = "_startTutorialButtonWrap_bvfoj_385", x = "_startTutorialButton_bvfoj_385", D = "_completeModalBody_bvfoj_419", w = "_completeCelebration_bvfoj_435", R = "_completeCelebrationSvg_bvfoj_451", W = "_completeCone_bvfoj_463", E = "_completeParticleA_bvfoj_475", O = "_completeParticleB_bvfoj_477", y = "_completeParticleC_bvfoj_479", h = "_completeParticleD_bvfoj_481", k = "_completeParticleE_bvfoj_483", A = "_completeParticleF_bvfoj_485", F = "_completeParticleG_bvfoj_487", G = "_completeTitle_bvfoj_753", H = "_completeDescription_bvfoj_767", I = {
|
|
2
|
+
featureProgressRoot: e,
|
|
3
|
+
progressTrack: o,
|
|
4
|
+
collapsedBar: t,
|
|
5
|
+
collapsedBarComplete: l,
|
|
6
|
+
collapsedTitle: s,
|
|
7
|
+
collapsedCompleteRight: c,
|
|
8
|
+
collapsedProgressWrap: r,
|
|
9
|
+
collapsedProgressWrapHidden: p,
|
|
10
|
+
collapsedPercent: a,
|
|
11
|
+
collapsedCloseBtn: _,
|
|
12
|
+
collapsedBarOpened: n,
|
|
13
|
+
stepsDrawer: d,
|
|
14
|
+
stepsDrawerOpened: i,
|
|
15
|
+
expandedContainer: m,
|
|
16
|
+
expandedProgressRow: P,
|
|
17
|
+
expandedProgressEmoji: b,
|
|
18
|
+
expandedPercent: f,
|
|
19
|
+
stepsList: j,
|
|
20
|
+
stepItem: v,
|
|
21
|
+
stepCircle: C,
|
|
22
|
+
stepCirclePending: g,
|
|
23
|
+
stepCircleDone: B,
|
|
24
|
+
stepText: T,
|
|
25
|
+
startTutorialButtonWrap: u,
|
|
26
|
+
startTutorialButton: x,
|
|
27
|
+
completeModalBody: D,
|
|
28
|
+
completeCelebration: w,
|
|
29
|
+
completeCelebrationSvg: R,
|
|
30
|
+
completeCone: W,
|
|
31
|
+
completeParticleA: E,
|
|
32
|
+
completeParticleB: O,
|
|
33
|
+
completeParticleC: y,
|
|
34
|
+
completeParticleD: h,
|
|
35
|
+
completeParticleE: k,
|
|
36
|
+
completeParticleF: A,
|
|
37
|
+
completeParticleG: F,
|
|
38
|
+
completeTitle: G,
|
|
39
|
+
completeDescription: H
|
|
40
|
+
};
|
|
41
|
+
export {
|
|
42
|
+
t as collapsedBar,
|
|
43
|
+
l as collapsedBarComplete,
|
|
44
|
+
n as collapsedBarOpened,
|
|
45
|
+
_ as collapsedCloseBtn,
|
|
46
|
+
c as collapsedCompleteRight,
|
|
47
|
+
a as collapsedPercent,
|
|
48
|
+
r as collapsedProgressWrap,
|
|
49
|
+
p as collapsedProgressWrapHidden,
|
|
50
|
+
s as collapsedTitle,
|
|
51
|
+
w as completeCelebration,
|
|
52
|
+
R as completeCelebrationSvg,
|
|
53
|
+
W as completeCone,
|
|
54
|
+
H as completeDescription,
|
|
55
|
+
D as completeModalBody,
|
|
56
|
+
E as completeParticleA,
|
|
57
|
+
O as completeParticleB,
|
|
58
|
+
y as completeParticleC,
|
|
59
|
+
h as completeParticleD,
|
|
60
|
+
k as completeParticleE,
|
|
61
|
+
A as completeParticleF,
|
|
62
|
+
F as completeParticleG,
|
|
63
|
+
G as completeTitle,
|
|
64
|
+
I as default,
|
|
65
|
+
m as expandedContainer,
|
|
66
|
+
f as expandedPercent,
|
|
67
|
+
b as expandedProgressEmoji,
|
|
68
|
+
P as expandedProgressRow,
|
|
69
|
+
e as featureProgressRoot,
|
|
70
|
+
o as progressTrack,
|
|
71
|
+
x as startTutorialButton,
|
|
72
|
+
u as startTutorialButtonWrap,
|
|
73
|
+
C as stepCircle,
|
|
74
|
+
B as stepCircleDone,
|
|
75
|
+
g as stepCirclePending,
|
|
76
|
+
v as stepItem,
|
|
77
|
+
T as stepText,
|
|
78
|
+
d as stepsDrawer,
|
|
79
|
+
i as stepsDrawerOpened,
|
|
80
|
+
j as stepsList
|
|
81
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FeatureProgressCelebrationIcon.d.ts","sourceRoot":"","sources":["../../../src/components/FeatureProgress/FeatureProgressCelebrationIcon.tsx"],"names":[],"mappings":"AAEA,eAAO,MAAM,8BAA8B,+CA0D1C,CAAC"}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import { jsx as C, jsxs as l } from "react/jsx-runtime";
|
|
2
|
+
import e from "./FeatureProgress.module.css.js";
|
|
3
|
+
const c = () => /* @__PURE__ */ C("div", { className: e.completeCelebration, "aria-hidden": !0, children: /* @__PURE__ */ l(
|
|
4
|
+
"svg",
|
|
5
|
+
{
|
|
6
|
+
viewBox: "0 0 72 57",
|
|
7
|
+
fill: "none",
|
|
8
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
9
|
+
className: e.completeCelebrationSvg,
|
|
10
|
+
children: [
|
|
11
|
+
/* @__PURE__ */ l("g", { className: e.completeCone, children: [
|
|
12
|
+
/* @__PURE__ */ C(
|
|
13
|
+
"path",
|
|
14
|
+
{
|
|
15
|
+
d: "M31.0372 28.3842C32.158 28.1762 33.1285 28.6221 34.0476 29.3048C34.95 29.9751 35.9857 31.0137 37.2612 32.2891L39.7117 34.7397C40.9872 36.0151 42.0257 37.0509 42.6961 37.9532C43.3788 38.8723 43.8246 39.8428 43.6167 40.9636C43.4085 42.0848 42.6428 42.8311 41.6752 43.4441C40.7257 44.0455 39.3857 44.6388 37.7377 45.3712L33.3263 47.3321C30.5742 48.5553 28.4105 49.5187 26.7677 49.9923C25.1784 50.4503 23.6185 50.5891 22.5151 49.4857C21.4117 48.3823 21.5505 46.8225 22.0086 45.2331C22.4821 43.5903 23.4456 41.4267 24.6687 38.6746L26.6297 34.2631C27.3621 32.6151 27.9553 31.2751 28.5568 30.3256C29.1697 29.358 29.916 28.5924 31.0372 28.3842ZM32.8549 30.9102C32.1166 30.3618 31.7188 30.2915 31.4018 30.3503C31.0848 30.4092 30.7394 30.6185 30.2469 31.3959C29.743 32.1913 29.2169 33.3677 28.4578 35.0756L26.4969 39.4871C25.2467 42.2999 24.3562 44.3107 23.9305 45.7878C23.4895 47.3181 23.6828 47.8253 23.9292 48.0717C24.1755 48.318 24.6826 48.5114 26.213 48.0704C27.6902 47.6446 29.701 46.7541 32.5138 45.504L36.9252 43.543C38.6331 42.784 39.8095 42.2578 40.6049 41.754C41.3823 41.2615 41.5916 40.9161 41.6505 40.599C41.7094 40.2821 41.639 39.8842 41.0906 39.1459C40.5292 38.3901 39.6191 37.4765 38.2976 36.155L35.8471 33.7032C34.5253 32.3814 33.6108 31.4718 32.8549 30.9102Z",
|
|
16
|
+
fill: "#4C6EF5"
|
|
17
|
+
}
|
|
18
|
+
),
|
|
19
|
+
/* @__PURE__ */ C(
|
|
20
|
+
"path",
|
|
21
|
+
{
|
|
22
|
+
d: "M25.2929 39.9596C25.6834 39.569 26.3164 39.569 26.707 39.9596L32.0403 45.2929C32.4308 45.6834 32.4308 46.3164 32.0403 46.707C31.6498 47.0975 31.0168 47.0975 30.6262 46.707L25.2929 41.3736C24.9024 40.9831 24.9024 40.3501 25.2929 39.9596ZM27.9596 33.2929C28.3501 32.9024 28.9831 32.9024 29.3736 33.2929L38.707 42.6262C39.0975 43.0168 39.0975 43.6498 38.707 44.0403C38.3164 44.4308 37.6834 44.4308 37.2929 44.0403L27.9596 34.707C27.569 34.3164 27.569 33.6834 27.9596 33.2929Z",
|
|
23
|
+
fill: "#4C6EF5"
|
|
24
|
+
}
|
|
25
|
+
)
|
|
26
|
+
] }),
|
|
27
|
+
/* @__PURE__ */ C(
|
|
28
|
+
"path",
|
|
29
|
+
{
|
|
30
|
+
className: e.completeParticleA,
|
|
31
|
+
d: "M44.6269 25.9596C45.0174 25.5691 45.6504 25.5691 46.0409 25.9596C46.4315 26.3502 46.4315 26.9832 46.0409 27.3737L42.0409 31.3737C41.6504 31.7642 41.0174 31.7642 40.6269 31.3737C40.2364 30.9832 40.2364 30.3502 40.6269 29.9596L44.6269 25.9596Z",
|
|
32
|
+
fill: "#FA5252"
|
|
33
|
+
}
|
|
34
|
+
),
|
|
35
|
+
/* @__PURE__ */ C(
|
|
36
|
+
"path",
|
|
37
|
+
{
|
|
38
|
+
className: e.completeParticleB,
|
|
39
|
+
d: "M38.4168 21.8085C38.8907 21.5252 39.5044 21.6798 39.7879 22.1536C40.5581 23.4408 40.9267 26.3007 37.9741 28.7669C37.5502 29.1209 36.9206 29.0644 36.5666 28.6406C36.2125 28.2167 36.269 27.5871 36.6929 27.233C38.8482 25.4328 38.3655 23.6704 38.0718 23.1796C37.7885 22.7058 37.9431 22.0921 38.4168 21.8085Z",
|
|
40
|
+
fill: "#FAB005"
|
|
41
|
+
}
|
|
42
|
+
),
|
|
43
|
+
/* @__PURE__ */ C(
|
|
44
|
+
"path",
|
|
45
|
+
{
|
|
46
|
+
className: e.completeParticleC,
|
|
47
|
+
d: "M43.2326 34.0261C45.6987 31.0735 48.5585 31.442 49.8459 32.2123C50.3196 32.4959 50.4742 33.1096 50.1909 33.5834C49.9073 34.0571 49.2936 34.2117 48.8198 33.9284C48.3291 33.6347 46.5667 33.152 44.7664 35.3073C44.4124 35.7312 43.7827 35.7877 43.3589 35.4336C42.935 35.0796 42.8785 34.45 43.2326 34.0261Z",
|
|
48
|
+
fill: "#FAB005"
|
|
49
|
+
}
|
|
50
|
+
),
|
|
51
|
+
/* @__PURE__ */ C(
|
|
52
|
+
"path",
|
|
53
|
+
{
|
|
54
|
+
className: e.completeParticleD,
|
|
55
|
+
d: "M43.002 22.6928V22.6667C43.002 22.1145 43.4497 21.6667 44.002 21.6667C44.5542 21.6667 45.002 22.1145 45.002 22.6667V22.6928C45.002 23.2451 44.5542 23.6928 44.002 23.6928C43.4497 23.6928 43.002 23.2451 43.002 22.6928Z",
|
|
56
|
+
fill: "#40C057"
|
|
57
|
+
}
|
|
58
|
+
),
|
|
59
|
+
/* @__PURE__ */ C(
|
|
60
|
+
"path",
|
|
61
|
+
{
|
|
62
|
+
className: e.completeParticleE,
|
|
63
|
+
d: "M48.334 28.026V28C48.334 27.4477 48.7817 27 49.334 27C49.8863 27 50.334 27.4477 50.334 28V28.026C50.334 28.5783 49.8863 29.026 49.334 29.026C48.7817 29.026 48.334 28.5783 48.334 28.026Z",
|
|
64
|
+
fill: "#228BE6"
|
|
65
|
+
}
|
|
66
|
+
),
|
|
67
|
+
/* @__PURE__ */ C(
|
|
68
|
+
"path",
|
|
69
|
+
{
|
|
70
|
+
className: e.completeParticleF,
|
|
71
|
+
d: "M47.002 37.3593V37.3333C47.002 36.781 47.4497 36.3333 48.002 36.3333C48.5542 36.3333 49.002 36.781 49.002 37.3333V37.3593C49.002 37.9116 48.5542 38.3593 48.002 38.3593C47.4497 38.3593 47.002 37.9116 47.002 37.3593Z",
|
|
72
|
+
fill: "#40C057"
|
|
73
|
+
}
|
|
74
|
+
),
|
|
75
|
+
/* @__PURE__ */ C(
|
|
76
|
+
"path",
|
|
77
|
+
{
|
|
78
|
+
className: e.completeParticleG,
|
|
79
|
+
d: "M33.668 24.026V24C33.668 23.4477 34.1157 23 34.668 23C35.2203 23 35.668 23.4477 35.668 24V24.026C35.668 24.5783 35.2203 25.026 34.668 25.026C34.1157 25.026 33.668 24.5783 33.668 24.026Z",
|
|
80
|
+
fill: "#228BE6"
|
|
81
|
+
}
|
|
82
|
+
)
|
|
83
|
+
]
|
|
84
|
+
}
|
|
85
|
+
) });
|
|
86
|
+
export {
|
|
87
|
+
c as FeatureProgressCelebrationIcon
|
|
88
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
interface FeatureProgressCompleteModalProps {
|
|
2
|
+
opened: boolean;
|
|
3
|
+
onClose: () => void;
|
|
4
|
+
translationKey: string;
|
|
5
|
+
translationNs?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare const FeatureProgressCompleteModal: ({ opened, onClose, translationKey, translationNs, }: FeatureProgressCompleteModalProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=FeatureProgressCompleteModal.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FeatureProgressCompleteModal.d.ts","sourceRoot":"","sources":["../../../src/components/FeatureProgress/FeatureProgressCompleteModal.tsx"],"names":[],"mappings":"AAQA,UAAU,iCAAiC;IACzC,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,cAAc,EAAE,MAAM,CAAC;IACvB,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,eAAO,MAAM,4BAA4B,GAAI,qDAK1C,iCAAiC,4CA4BnC,CAAC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { jsx as e, jsxs as c } from "react/jsx-runtime";
|
|
2
|
+
import { useTranslation as m } from "react-i18next";
|
|
3
|
+
import { Modal as d, Button as p } from "@mantine/core";
|
|
4
|
+
import { FeatureProgressCelebrationIcon as a } from "./FeatureProgressCelebrationIcon.js";
|
|
5
|
+
import t from "./FeatureProgress.module.css.js";
|
|
6
|
+
const v = ({
|
|
7
|
+
opened: i,
|
|
8
|
+
onClose: l,
|
|
9
|
+
translationKey: o,
|
|
10
|
+
translationNs: s
|
|
11
|
+
}) => {
|
|
12
|
+
const { t: r } = m(s);
|
|
13
|
+
return /* @__PURE__ */ e(
|
|
14
|
+
d,
|
|
15
|
+
{
|
|
16
|
+
opened: i,
|
|
17
|
+
onClose: l,
|
|
18
|
+
withCloseButton: !1,
|
|
19
|
+
centered: !0,
|
|
20
|
+
overlayProps: { blur: 0 },
|
|
21
|
+
size: 440,
|
|
22
|
+
radius: "lg",
|
|
23
|
+
padding: 0,
|
|
24
|
+
children: /* @__PURE__ */ c("div", { className: t.completeModalBody, children: [
|
|
25
|
+
/* @__PURE__ */ e(a, {}),
|
|
26
|
+
/* @__PURE__ */ e("div", { className: t.completeTitle, children: r(`${o}.completeTitle`) }),
|
|
27
|
+
/* @__PURE__ */ e("div", { className: t.completeDescription, children: r(`${o}.completeDescription`) }),
|
|
28
|
+
/* @__PURE__ */ e(p, { fullWidth: !0, h: 36, radius: "md", onClick: l, children: r(`${o}.completeButton`) })
|
|
29
|
+
] })
|
|
30
|
+
}
|
|
31
|
+
);
|
|
32
|
+
};
|
|
33
|
+
export {
|
|
34
|
+
v as FeatureProgressCompleteModal
|
|
35
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/components/FeatureProgress/constants.ts"],"names":[],"mappings":"AAAA,oBAAY,kBAAkB;IAC5B,UAAU,8BAA8B;CACzC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/FeatureProgress/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC"}
|
|
@@ -4,7 +4,7 @@ import { DropzoneProps, FileWithPath } from '@mantine/dropzone';
|
|
|
4
4
|
import type { BreadcrumbItem, MediaFile } from '../MediaLibrary/types';
|
|
5
5
|
import { FileType, ImagePickerGalleryCollection } from './types';
|
|
6
6
|
declare const baseTabsList: readonly ["gallery", "upload", "link", "unsplash", "giphy", "googleDrive", "media"];
|
|
7
|
-
type TabType = (typeof baseTabsList)[number];
|
|
7
|
+
export type TabType = (typeof baseTabsList)[number];
|
|
8
8
|
export type FilePickerProps = PropsWithChildren<{
|
|
9
9
|
onChange?: (v: string) => void;
|
|
10
10
|
onRemove?: (e: React.MouseEvent<HTMLButtonElement>) => void;
|
|
@@ -54,7 +54,9 @@ export type FilePickerProps = PropsWithChildren<{
|
|
|
54
54
|
onBreadcrumbClick?: (crumb: BreadcrumbItem, index: number) => void;
|
|
55
55
|
onSelect?: (file: MediaFile) => void;
|
|
56
56
|
};
|
|
57
|
+
inline?: boolean;
|
|
58
|
+
tab?: TabType | string;
|
|
57
59
|
}>;
|
|
58
|
-
export declare const FilePicker: ({ onChange, onRemove, onUpload, uploading, showTabs, children, width, position, readOnly, hasImage, giphyToken, unsplashClientId, type, galleryCollection, isValidMediaUrl, popoverProps, dropZoneProps, targetProps, onOpenedChange, googleDrive, mediaLibrary, }: PropsWithChildren<FilePickerProps>) => import("react/jsx-runtime").JSX.Element;
|
|
60
|
+
export declare const FilePicker: ({ onChange, onRemove, onUpload, uploading, showTabs, children, width, position, readOnly, hasImage, giphyToken, unsplashClientId, type, galleryCollection, isValidMediaUrl, popoverProps, dropZoneProps, targetProps, onOpenedChange, googleDrive, mediaLibrary, inline, tab: tabProp, }: PropsWithChildren<FilePickerProps>) => import("react/jsx-runtime").JSX.Element;
|
|
59
61
|
export {};
|
|
60
62
|
//# sourceMappingURL=FilePicker.d.ts.map
|