@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,66 +1,56 @@
|
|
|
1
1
|
import { jsx as n } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
3
|
-
import { HugeiconsIcon as
|
|
4
|
-
import { Text as
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import { DEFAULT_VALUES as
|
|
10
|
-
import { IconEntity as
|
|
11
|
-
const
|
|
2
|
+
import { File01Icon as p, Folder02Icon as u, Folder01Icon as h } from "@hugeicons/core-free-icons";
|
|
3
|
+
import { HugeiconsIcon as f } from "@hugeicons/react";
|
|
4
|
+
import { Text as a, Box as y, Avatar as g, useMantineTheme as I, parseThemeColor as C } from "@mantine/core";
|
|
5
|
+
import v from "../assets/enitityIcons/flow.svg.js";
|
|
6
|
+
import z from "../assets/enitityIcons/form.svg.js";
|
|
7
|
+
import F from "../assets/enitityIcons/page.svg.js";
|
|
8
|
+
import O from "../assets/enitityIcons/sprint.svg.js";
|
|
9
|
+
import { DEFAULT_VALUES as l } from "../constants.js";
|
|
10
|
+
import { IconEntity as i, ProjectIcon as c, renderIcon as E } from "./ProjectIcon/ProjectIcon.js";
|
|
11
|
+
const s = (o) => !!o && l.COLORS.includes(o), R = (o) => o.type === "FOLDER" || o.isFolder || o.type === "PROJECT" && o?.pathById?.findIndex((r) => r === o?.parentId) === 1, H = ({
|
|
12
12
|
item: o
|
|
13
13
|
}) => {
|
|
14
14
|
const r = o?.size || 16;
|
|
15
15
|
if (!o) return null;
|
|
16
16
|
if (R(o)) {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
i,
|
|
20
|
-
{
|
|
21
|
-
icon: p,
|
|
22
|
-
size: r,
|
|
23
|
-
color: "var(--mantine-color-yellow-5)",
|
|
24
|
-
fill: "var(--mantine-color-yellow-5)"
|
|
25
|
-
}
|
|
26
|
-
);
|
|
27
|
-
const e = c.parse(o.icon), t = f(e?.color) ? e.color : a.FOLDER_COLOR;
|
|
28
|
-
return /* @__PURE__ */ n(T, { color: t, size: r, opened: o.isOpen });
|
|
17
|
+
const e = i.parse(o.icon), t = s(e?.color) ? e.color : l.FOLDER_COLOR;
|
|
18
|
+
return /* @__PURE__ */ n(S, { color: t, size: r, opened: o.isOpen });
|
|
29
19
|
}
|
|
30
20
|
if (o.type === "ATTACHMENT")
|
|
31
|
-
return /* @__PURE__ */ n(
|
|
21
|
+
return /* @__PURE__ */ n(f, { icon: p, size: r });
|
|
32
22
|
if (o.type === "PAGE")
|
|
33
23
|
return /* @__PURE__ */ n(
|
|
34
|
-
|
|
24
|
+
c,
|
|
35
25
|
{
|
|
36
26
|
fallbackColor: o.icon ? void 0 : "var(--default-page-icon-color)",
|
|
37
27
|
name: o.title,
|
|
38
28
|
icon: o.icon,
|
|
39
|
-
fallback: /* @__PURE__ */ n(
|
|
29
|
+
fallback: /* @__PURE__ */ n(F, { width: r, height: r })
|
|
40
30
|
}
|
|
41
31
|
);
|
|
42
32
|
if (o.type === "FORM")
|
|
43
33
|
return /* @__PURE__ */ n(
|
|
44
|
-
|
|
34
|
+
c,
|
|
45
35
|
{
|
|
46
36
|
fallbackColor: "var(--default-form-icon-color)",
|
|
47
37
|
icon: o.icon,
|
|
48
|
-
fallback: /* @__PURE__ */ n(
|
|
38
|
+
fallback: /* @__PURE__ */ n(z, { width: r, height: r })
|
|
49
39
|
}
|
|
50
40
|
);
|
|
51
41
|
if (o.type === "FLOW")
|
|
52
42
|
return /* @__PURE__ */ n(
|
|
53
|
-
|
|
43
|
+
c,
|
|
54
44
|
{
|
|
55
45
|
icon: o.icon,
|
|
56
46
|
fallbackColor: "var(--default-flow-icon-color)",
|
|
57
|
-
fallback: /* @__PURE__ */ n(
|
|
47
|
+
fallback: /* @__PURE__ */ n(v, { width: r, height: r })
|
|
58
48
|
}
|
|
59
49
|
);
|
|
60
50
|
if (o.type === "SPRINT") {
|
|
61
|
-
const e =
|
|
51
|
+
const e = i.parse(o.icon), t = s(e?.color) ? e.color : l.SPRINT_COLOR;
|
|
62
52
|
return /* @__PURE__ */ n(
|
|
63
|
-
|
|
53
|
+
a,
|
|
64
54
|
{
|
|
65
55
|
fz: r,
|
|
66
56
|
c: t,
|
|
@@ -71,14 +61,14 @@ const f = (o) => !!o && a.COLORS.includes(o), R = (o) => o.type === "FOLDER" ||
|
|
|
71
61
|
lineHeight: "normal",
|
|
72
62
|
width: r + 4
|
|
73
63
|
},
|
|
74
|
-
children: /* @__PURE__ */ n(
|
|
64
|
+
children: /* @__PURE__ */ n(O, {})
|
|
75
65
|
}
|
|
76
66
|
);
|
|
77
67
|
}
|
|
78
68
|
if (o.type === "PROJECT") {
|
|
79
|
-
const e =
|
|
69
|
+
const e = i.parse(o.icon);
|
|
80
70
|
return e?.emoji ? /* @__PURE__ */ n(
|
|
81
|
-
|
|
71
|
+
y,
|
|
82
72
|
{
|
|
83
73
|
bg: "gray.1",
|
|
84
74
|
style: {
|
|
@@ -90,7 +80,7 @@ const f = (o) => !!o && a.COLORS.includes(o), R = (o) => o.type === "FOLDER" ||
|
|
|
90
80
|
height: r
|
|
91
81
|
},
|
|
92
82
|
children: /* @__PURE__ */ n(
|
|
93
|
-
|
|
83
|
+
c,
|
|
94
84
|
{
|
|
95
85
|
p: 0,
|
|
96
86
|
icon: o.icon,
|
|
@@ -100,7 +90,7 @@ const f = (o) => !!o && a.COLORS.includes(o), R = (o) => o.type === "FOLDER" ||
|
|
|
100
90
|
)
|
|
101
91
|
}
|
|
102
92
|
) : /* @__PURE__ */ n(
|
|
103
|
-
|
|
93
|
+
g,
|
|
104
94
|
{
|
|
105
95
|
variant: "filled",
|
|
106
96
|
radius: 4,
|
|
@@ -108,7 +98,7 @@ const f = (o) => !!o && a.COLORS.includes(o), R = (o) => o.type === "FOLDER" ||
|
|
|
108
98
|
size: o.size ?? 16,
|
|
109
99
|
color: e?.color || "initials",
|
|
110
100
|
children: /* @__PURE__ */ n(
|
|
111
|
-
|
|
101
|
+
a,
|
|
112
102
|
{
|
|
113
103
|
fz: o.fz ?? 12,
|
|
114
104
|
fw: 500,
|
|
@@ -120,31 +110,31 @@ const f = (o) => !!o && a.COLORS.includes(o), R = (o) => o.type === "FOLDER" ||
|
|
|
120
110
|
justifyContent: "center",
|
|
121
111
|
lineHeight: "normal"
|
|
122
112
|
},
|
|
123
|
-
children:
|
|
113
|
+
children: E(e, void 0, !0, o.title)
|
|
124
114
|
}
|
|
125
115
|
)
|
|
126
116
|
}
|
|
127
117
|
);
|
|
128
118
|
}
|
|
129
119
|
return null;
|
|
130
|
-
},
|
|
120
|
+
}, S = ({
|
|
131
121
|
color: o,
|
|
132
122
|
size: r,
|
|
133
123
|
opened: e
|
|
134
124
|
}) => {
|
|
135
|
-
const t =
|
|
125
|
+
const t = I(), d = C({
|
|
136
126
|
color: o || "gray",
|
|
137
127
|
theme: t
|
|
138
128
|
});
|
|
139
129
|
return /* @__PURE__ */ n(
|
|
140
|
-
|
|
130
|
+
f,
|
|
141
131
|
{
|
|
142
132
|
color: d.value || void 0,
|
|
143
|
-
icon: e ?
|
|
133
|
+
icon: e ? u : h,
|
|
144
134
|
size: r
|
|
145
135
|
}
|
|
146
136
|
);
|
|
147
137
|
};
|
|
148
138
|
export {
|
|
149
|
-
|
|
139
|
+
H as EntityIcon
|
|
150
140
|
};
|
|
@@ -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"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
const e = "
|
|
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
2
|
featureProgressRoot: e,
|
|
3
|
-
progressTrack:
|
|
4
|
-
collapsedBar:
|
|
3
|
+
progressTrack: o,
|
|
4
|
+
collapsedBar: t,
|
|
5
5
|
collapsedBarComplete: l,
|
|
6
6
|
collapsedTitle: s,
|
|
7
7
|
collapsedCompleteRight: c,
|
|
@@ -10,36 +10,36 @@ const e = "_featureProgressRoot_179em_1", t = "_progressTrack_179em_5", o = "_co
|
|
|
10
10
|
collapsedPercent: a,
|
|
11
11
|
collapsedCloseBtn: _,
|
|
12
12
|
collapsedBarOpened: n,
|
|
13
|
-
stepsDrawer:
|
|
14
|
-
stepsDrawerOpened:
|
|
15
|
-
expandedContainer:
|
|
13
|
+
stepsDrawer: d,
|
|
14
|
+
stepsDrawerOpened: i,
|
|
15
|
+
expandedContainer: m,
|
|
16
16
|
expandedProgressRow: P,
|
|
17
|
-
expandedProgressEmoji:
|
|
18
|
-
expandedPercent:
|
|
19
|
-
stepsList:
|
|
20
|
-
stepItem:
|
|
21
|
-
stepCircle:
|
|
22
|
-
stepCirclePending:
|
|
23
|
-
stepCircleDone:
|
|
24
|
-
stepText:
|
|
25
|
-
startTutorialButtonWrap:
|
|
26
|
-
startTutorialButton:
|
|
27
|
-
completeModalBody:
|
|
28
|
-
completeCelebration:
|
|
29
|
-
completeCelebrationSvg:
|
|
30
|
-
completeCone:
|
|
31
|
-
completeParticleA:
|
|
32
|
-
completeParticleB:
|
|
33
|
-
completeParticleC:
|
|
34
|
-
completeParticleD:
|
|
35
|
-
completeParticleE:
|
|
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
36
|
completeParticleF: A,
|
|
37
37
|
completeParticleG: F,
|
|
38
38
|
completeTitle: G,
|
|
39
39
|
completeDescription: H
|
|
40
40
|
};
|
|
41
41
|
export {
|
|
42
|
-
|
|
42
|
+
t as collapsedBar,
|
|
43
43
|
l as collapsedBarComplete,
|
|
44
44
|
n as collapsedBarOpened,
|
|
45
45
|
_ as collapsedCloseBtn,
|
|
@@ -48,34 +48,34 @@ export {
|
|
|
48
48
|
r as collapsedProgressWrap,
|
|
49
49
|
p as collapsedProgressWrapHidden,
|
|
50
50
|
s as collapsedTitle,
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
51
|
+
w as completeCelebration,
|
|
52
|
+
R as completeCelebrationSvg,
|
|
53
|
+
W as completeCone,
|
|
54
54
|
H as completeDescription,
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
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
61
|
A as completeParticleF,
|
|
62
62
|
F as completeParticleG,
|
|
63
63
|
G as completeTitle,
|
|
64
64
|
I as default,
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
65
|
+
m as expandedContainer,
|
|
66
|
+
f as expandedPercent,
|
|
67
|
+
b as expandedProgressEmoji,
|
|
68
68
|
P as expandedProgressRow,
|
|
69
69
|
e as featureProgressRoot,
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
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
81
|
};
|
|
@@ -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: _giphyToken, unsplashClientId: _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: _giphyToken, unsplashClientId: _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
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FilePicker.d.ts","sourceRoot":"","sources":["../../../src/components/FilePicker/FilePicker.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,
|
|
1
|
+
{"version":3,"file":"FilePicker.d.ts","sourceRoot":"","sources":["../../../src/components/FilePicker/FilePicker.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAgC,MAAM,OAAO,CAAC;AAKxE,OAAO,EAAiC,SAAS,EAAE,gBAAgB,EAAW,YAAY,EAAqB,MAAM,eAAe,CAAC;AACrI,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAOhE,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAQvE,OAAO,EAAE,QAAQ,EAAE,4BAA4B,EAAE,MAAM,SAAS,CAAC;AAIjE,QAAA,MAAM,YAAY,qFAQR,CAAC;AAEX,MAAM,MAAM,OAAO,GAAG,CAAC,OAAO,YAAY,CAAC,CAAC,MAAM,CAAC,CAAC;AAQpD,MAAM,MAAM,eAAe,GAAG,iBAAiB,CAAC;IAC9C,QAAQ,CAAC,EAAE,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IAC/B,QAAQ,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,iBAAiB,CAAC,KAAK,IAAI,CAAC;IAC5D,QAAQ,CAAC,EAAE,CACT,KAAK,EAAE,YAAY,EAAE,EACrB,SAAS,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,KAChC,IAAI,CAAC;IACV,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,QAAQ,CAAC,EAAE,SAAS,OAAO,EAAE,CAAC;IAC9B,QAAQ,CAAC,EAAE,gBAAgB,CAAC;IAC5B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,iBAAiB,CAAC,EAAE,4BAA4B,EAAE,CAAC;IACnD,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,aAAa,CAAC,EAAE,IAAI,CAAC,aAAa,EAAE,QAAQ,CAAC,CAAC;IAC9C,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB,eAAe,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,OAAO,CAAC;IAC3C,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,cAAc,CAAC,EAAE,CAAC,MAAM,EAAE,OAAO,KAAK,IAAI,CAAC;IAC3C,WAAW,CAAC,EAAE;QACZ,WAAW,EAAE,OAAO,CAAC;QACrB,cAAc,CAAC,EAAE,MAAM,CAAC;QACxB,KAAK,EAAE,KAAK,CAAC;YACX,EAAE,EAAE,MAAM,CAAC;YACX,IAAI,EAAE,MAAM,CAAC;YACb,QAAQ,EAAE,MAAM,CAAC;YACjB,aAAa,CAAC,EAAE,MAAM,CAAC;YACvB,QAAQ,CAAC,EAAE,MAAM,CAAC;SACnB,CAAC,CAAC;QACH,SAAS,EAAE,OAAO,CAAC;QACnB,OAAO,EAAE,OAAO,CAAC;QACjB,WAAW,EAAE,OAAO,CAAC;QACrB,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;QAClC,UAAU,EAAE,MAAM,IAAI,CAAC;QACvB,QAAQ,EAAE,CACR,IAAI,EAAE;YAAE,EAAE,EAAE,MAAM,CAAC;YAAC,IAAI,EAAE,MAAM,CAAC;YAAC,QAAQ,EAAE,MAAM,CAAA;SAAE,EACpD,IAAI,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,KACxB,IAAI,CAAC;QACV,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;KACtB,CAAC;IACF,YAAY,CAAC,EAAE;QACb,KAAK,EAAE,SAAS,EAAE,CAAC;QACnB,SAAS,CAAC,EAAE,OAAO,CAAC;QACpB,WAAW,CAAC,EAAE,cAAc,EAAE,CAAC;QAC/B,aAAa,CAAC,EAAE,CAAC,MAAM,EAAE,SAAS,KAAK,IAAI,CAAC;QAC5C,iBAAiB,CAAC,EAAE,CAAC,KAAK,EAAE,cAAc,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;QACnE,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,SAAS,KAAK,IAAI,CAAC;KACtC,CAAC;IACF,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,GAAG,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;CACxB,CAAC,CAAC;AAEH,eAAO,MAAM,UAAU,GAAI,0TAwBxB,iBAAiB,CAAC,eAAe,CAAC,4CAsUpC,CAAC"}
|