@layers-app/shared 0.3.7 → 0.3.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/AnimatedFigurePage/AnimatedFigurePage.module.css.js +10 -10
- package/dist/components/AnimatedFigurePage/useParallax.d.ts +2 -2
- package/dist/components/AppContainer/AppContainer.module.css.js +1 -1
- package/dist/components/AppContainer/components/AppSidebarButton.d.ts +4 -1
- package/dist/components/AppContainer/components/AppSidebarButton.d.ts.map +1 -1
- package/dist/components/AppContainer/components/AppSidebarButton.js +22 -15
- package/dist/components/AppContainer/components/AppsSidebar/AppsSection.d.ts.map +1 -1
- package/dist/components/AppContainer/components/AppsSidebar/AppsSection.js +22 -21
- package/dist/components/AppContainer/components/AppsSidebar/UserSection.d.ts.map +1 -1
- package/dist/components/AppContainer/components/AppsSidebar/UserSection.js +48 -91
- package/dist/components/AppContainer/components/menus/HelpMenu/HelpMenu.module.css.js +1 -1
- package/dist/components/AppShell/AppShell.module.css.js +5 -5
- package/dist/components/AttachmentsGalleryModal/components/GallerySlide.d.ts +3 -1
- package/dist/components/AttachmentsGalleryModal/components/GallerySlide.d.ts.map +1 -1
- package/dist/components/AttachmentsGalleryModal/components/GallerySlide.js +89 -63
- package/dist/components/AttachmentsGalleryModal/components/ShakePlayer/ShakaPlayer.d.ts +1 -1
- package/dist/components/AttachmentsGalleryModal/components/ShakePlayer/ShakaPlayer.d.ts.map +1 -1
- package/dist/components/AttachmentsGalleryModal/components/ShakePlayer/ShakaPlayer.js +35 -26
- package/dist/components/AttachmentsGalleryModal/components/ShakePlayer/ShakaPlayer.module.css.js +4 -4
- package/dist/components/AttachmentsGalleryModal/components/ShakePlayer/useShakePlayer.d.ts +1 -1
- package/dist/components/AttachmentsGalleryModal/components/ShakePlayer/useShakePlayer.d.ts.map +1 -1
- package/dist/components/AttachmentsGalleryModal/components/ShakePlayer/useShakePlayer.js +43 -36
- package/dist/components/AttachmentsGalleryModal/components/UnsupportedSection.d.ts +6 -0
- package/dist/components/AttachmentsGalleryModal/components/UnsupportedSection.d.ts.map +1 -0
- package/dist/components/AttachmentsGalleryModal/components/UnsupportedSection.js +16 -0
- package/dist/components/AttachmentsGalleryModal/hooks/useGetPreviewUrl.d.ts +4 -0
- package/dist/components/AttachmentsGalleryModal/hooks/useGetPreviewUrl.d.ts.map +1 -1
- package/dist/components/AttachmentsGalleryModal/hooks/useGetPreviewUrl.js +59 -20
- package/dist/components/AttachmentsGalleryModal/styles.module.css.js +28 -18
- package/dist/components/AttachmentsPreview/AttachmentsPreview.d.ts.map +1 -1
- package/dist/components/AttachmentsPreview/AttachmentsPreview.js +22 -18
- package/dist/components/AttachmentsPreview/AttachmentsPreview.module.css.js +1 -1
- package/dist/components/BouncingLogo/BouncingLogo.module.css.js +8 -8
- package/dist/components/CollapsibleContainer/CollapsibleContainer.module.css.js +1 -1
- package/dist/components/ColorPicker/ColorPicker.d.ts +23 -18
- package/dist/components/ColorPicker/ColorPicker.d.ts.map +1 -1
- package/dist/components/ColorPicker/ColorPicker.js +145 -139
- package/dist/components/ColorPicker/ColorPicker.module.css.js +14 -14
- package/dist/components/ColorPicker/ColorPickerToolbar.d.ts.map +1 -1
- package/dist/components/ColorPicker/ColorPickerToolbar.js +71 -88
- package/dist/components/ColorPicker/icons.js +1 -1
- package/dist/components/CommentComposer/CommentComposer.module.css.js +4 -4
- package/dist/components/CommentComposer/CommentEditorHotkeys.d.ts.map +1 -1
- package/dist/components/CommentComposer/CommentEditorHotkeys.js +3 -4
- package/dist/components/CommentComposer/index.js +1 -1
- package/dist/components/CommentComposer/useVirtualAnchor.d.ts +1 -1
- package/dist/components/CommentComposer/useVirtualAnchor.d.ts.map +1 -1
- package/dist/components/CommunitiesDialog/styles.module.css.js +1 -1
- package/dist/components/Copyright/Copyright.module.css.js +1 -1
- package/dist/components/CustomKBD/CustomKBD.module.css.js +1 -1
- package/dist/components/EmojiPicker/EmojiPanel.d.ts.map +1 -1
- package/dist/components/EmojiPicker/EmojiPanel.js +22 -22
- package/dist/components/EmojiPicker/EmojiPicker.d.ts +1 -1
- package/dist/components/EmojiPicker/EmojiPicker.d.ts.map +1 -1
- package/dist/components/EmojiPicker/EmojiPicker.js +0 -1
- package/dist/components/EmojiPicker/EmojiPicker.module.css.js +8 -8
- package/dist/components/EmojiPicker/IconsPanel.js +13 -13
- package/dist/components/EntityIcon.d.ts.map +1 -1
- package/dist/components/EntityIcon.js +43 -33
- package/dist/components/EntityTitle/EntityTitle.module.css.js +1 -1
- package/dist/components/ErrorPage/components/Error404.d.ts.map +1 -1
- package/dist/components/FeatureProgress/FeatureProgress.module.css.js +49 -49
- package/dist/components/FilePicker/FilePicker.d.ts +2 -4
- package/dist/components/FilePicker/FilePicker.d.ts.map +1 -1
- package/dist/components/FilePicker/FilePicker.js +226 -241
- package/dist/components/FilePicker/FilePicker.module.css.js +12 -14
- package/dist/components/FilePicker/FilePickerGallery.d.ts.map +1 -1
- package/dist/components/FilePicker/FilePickerGallery.js +34 -60
- package/dist/components/FilePicker/FilePickerGiphy.d.ts.map +1 -1
- package/dist/components/FilePicker/FilePickerGiphy.js +39 -38
- package/dist/components/FilePicker/FilePickerLink.d.ts.map +1 -1
- package/dist/components/FilePicker/FilePickerLink.js +26 -29
- package/dist/components/FilePicker/FilePickerUnsplash.d.ts.map +1 -1
- package/dist/components/FilePicker/FilePickerUnsplash.js +43 -42
- package/dist/components/FilePicker/FilePickerUpload.d.ts.map +1 -1
- package/dist/components/FilePicker/FilePickerUpload.js +35 -51
- package/dist/components/FilePicker/index.d.ts +0 -1
- package/dist/components/FilePicker/index.d.ts.map +1 -1
- package/dist/components/FormViewer/FormViewer.module.css.js +20 -20
- package/dist/components/FormViewer/components/fields/DragOptions/DragOptions.module.css.js +1 -1
- package/dist/components/FormViewer/components/fields/DropdownField/DropdownField.module.css.js +1 -1
- package/dist/components/FormViewer/components/fields/EditableContent/EditableContent.module.css.js +1 -1
- package/dist/components/FormViewer/components/fields/SelectableCard/SelectableCard.module.css.js +8 -8
- package/dist/components/FormViewer/components/fields/UploadField/UploadFile/UploadFile.module.css.js +4 -4
- package/dist/components/FormViewer/helpers/conditions.d.ts +38 -38
- package/dist/components/FormViewer/helpers/helpers.d.ts +38 -38
- package/dist/components/FormViewer/helpers/steps.d.ts +38 -38
- package/dist/components/FormViewer/hooks/useActiveControl.d.ts +19 -19
- package/dist/components/FormViewer/hooks/useActiveStep.d.ts +38 -38
- package/dist/components/FormViewer/hooks/useFormGlobalTheme.d.ts +6 -0
- package/dist/components/FormViewer/hooks/useFormGlobalTheme.d.ts.map +1 -1
- package/dist/components/FormViewer/hooks/useFormGlobalTheme.js +4 -3
- package/dist/components/FormViewer/hooks/useFormMobile.d.ts +1 -1
- package/dist/components/FormViewer/hooks/useFormMobile.d.ts.map +1 -1
- package/dist/components/FormViewer/store/formStore.d.ts +248 -248
- package/dist/components/FormViewer/store/formStore.d.ts.map +1 -1
- package/dist/components/FormViewer/store/formStoreApi.d.ts +124 -124
- package/dist/components/FormViewer/store/selectors.d.ts +11655 -11655
- package/dist/components/FormViewer/types/form.d.ts +1 -1
- package/dist/components/FormViewer/types/form.d.ts.map +1 -1
- package/dist/components/FormViewer/types/schemes.d.ts +381 -6358
- package/dist/components/FormViewer/types/schemes.d.ts.map +1 -1
- package/dist/components/FormViewer/types/schemes.js +1 -1
- package/dist/components/GroupAvatar/index.d.ts +3 -1
- package/dist/components/GroupAvatar/index.d.ts.map +1 -1
- package/dist/components/GroupAvatar/index.js +24 -21
- package/dist/components/ImageCropper/ImageCropper.module.css.js +38 -38
- package/dist/components/IntegrationFlowAnimation/IntegrationFlowAnimation.module.css.js +11 -11
- package/dist/components/LanguagePicker/LanguagePicker.module.css.js +1 -1
- package/dist/components/Loaders/styles.module.css.js +6 -6
- package/dist/components/MediaLibrary/MediaLibrary.module.css.js +2 -2
- package/dist/components/MediaLibrary/MediaLibraryRow.js +7 -7
- package/dist/components/NavMenu/NavMenu.d.ts +3 -1
- package/dist/components/NavMenu/NavMenu.d.ts.map +1 -1
- package/dist/components/NavMenu/NavMenu.module.css.js +12 -12
- package/dist/components/NavMenu/components/DnDProvider.d.ts +1 -1
- package/dist/components/NavMenu/components/DnDProvider.d.ts.map +1 -1
- package/dist/components/NavMenu/components/NavMenuActionIcon.d.ts +7 -1
- package/dist/components/NavMenu/components/NavMenuActionIcon.d.ts.map +1 -1
- package/dist/components/NavMenu/components/NavMenuActionIcon.js +21 -23
- package/dist/components/NavbarResizer/NavbarResizer.module.css.js +2 -2
- package/dist/components/NewColorPicker/components/Target.d.ts +3 -1
- package/dist/components/NewColorPicker/components/Target.d.ts.map +1 -1
- package/dist/components/NewColorPicker/components/Target.js +48 -43
- package/dist/components/NotPublicPanel/NotPublicPanel.module.css.js +11 -11
- package/dist/components/Notification/Notification.js +3 -1
- package/dist/components/Notification/Notification.module.css.js +1 -1
- package/dist/components/Notification/NotificationCard.d.ts +3 -1
- package/dist/components/Notification/NotificationCard.d.ts.map +1 -1
- package/dist/components/Notification/NotificationCard.js +87 -86
- package/dist/components/OnBoarding/steps/DifferentLayouts/styles.module.css.js +3 -3
- package/dist/components/OnBoarding/steps/styles.module.css.js +9 -9
- package/dist/components/OnBoarding/styles.module.css.js +7 -7
- package/dist/components/OnboardingTour/OnboardingTourWrapper.d.ts +1 -1
- package/dist/components/OnboardingTour/OnboardingTourWrapper.d.ts.map +1 -1
- package/dist/components/OnboardingTour/OnboardingTourWrapper.js +70 -74
- package/dist/components/ProjectIcon/ProjectIcon.d.ts +7 -12
- package/dist/components/ProjectIcon/ProjectIcon.d.ts.map +1 -1
- package/dist/components/ProjectIcon/ProjectIcon.js +58 -60
- package/dist/components/SearchFilters/SearchFilters.module.css.js +1 -1
- package/dist/components/SettingsSection/styles.module.css.js +1 -1
- package/dist/components/StorageUsageProgress/StorageUsageProgress.module.css.js +1 -1
- package/dist/components/TextColorIcon.d.ts +8 -0
- package/dist/components/TextColorIcon.d.ts.map +1 -0
- package/dist/components/TextColorIcon.js +60 -0
- package/dist/components/TreeIndent/TreeIndent.module.css.js +4 -4
- package/dist/components/UserAvatar/index.d.ts +2 -1
- package/dist/components/UserAvatar/index.d.ts.map +1 -1
- package/dist/components/UserAvatar/index.js +38 -35
- package/dist/components/WorkspaceAvatar/WorkspaceAvatar.d.ts +3 -3
- package/dist/components/WorkspaceAvatar/WorkspaceAvatar.d.ts.map +1 -1
- package/dist/components/WorkspaceAvatar/WorkspaceAvatar.js +19 -18
- package/dist/components/WorkspaceMenu/WorkspaceItem.js +17 -17
- package/dist/components/WorkspaceMenu/WorkspaceMenu.js +7 -7
- package/dist/components/table/FrontTable.d.ts.map +1 -1
- package/dist/components/table/hooks/useColumnsResizing.d.ts.map +1 -1
- package/dist/config/envConfig.d.ts +8 -0
- package/dist/config/envConfig.d.ts.map +1 -1
- package/dist/config/envConfig.js +21 -13
- package/dist/helpers/getFileIcons.d.ts.map +1 -1
- package/dist/helpers/getFileIcons.js +63 -45
- package/dist/helpers/getFileType.d.ts +1 -1
- package/dist/helpers/getFileType.d.ts.map +1 -1
- package/dist/helpers/getFileType.js +29 -8
- package/dist/helpers/getPartOfTheDay.d.ts +1 -1
- package/dist/helpers/offlineSuppression.d.ts +3 -0
- package/dist/helpers/offlineSuppression.d.ts.map +1 -0
- package/dist/helpers/offlineSuppression.js +8 -0
- package/dist/helpers/platform.d.ts +1 -1
- package/dist/helpers/platform.d.ts.map +1 -1
- package/dist/helpers/platform.js +5 -4
- package/dist/helpers/showFeatureFeedback.module.css.js +4 -4
- package/dist/helpers/showNotifications.d.ts.map +1 -1
- package/dist/helpers/showNotifications.js +30 -29
- package/dist/helpers/showNotifications.module.css.js +1 -1
- package/dist/hooks/useOutsideClick.d.ts +1 -1
- package/dist/hooks/useOutsideClick.d.ts.map +1 -1
- package/dist/index.css +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +467 -465
- package/dist/lang/locales/ui_en.json.js +18 -20
- package/dist/lang/locales/ui_es.json.js +12 -14
- package/dist/lang/locales/ui_ru.json.js +13 -15
- package/dist/node_modules/countries-and-timezones/esm/index.js +281 -4011
- package/docs/README.md +499 -499
- package/package.json +75 -75
- package/dist/components/FilePicker/coverCollections.d.ts +0 -4
- package/dist/components/FilePicker/coverCollections.d.ts.map +0 -1
- package/dist/components/FilePicker/coverCollections.js +0 -164
|
@@ -1,56 +1,66 @@
|
|
|
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 { StarIcon as p, File01Icon as u, Folder02Icon as h, Folder01Icon as y } from "@hugeicons/core-free-icons";
|
|
3
|
+
import { HugeiconsIcon as i } from "@hugeicons/react";
|
|
4
|
+
import { Text as s, Box as g, Avatar as I, useMantineTheme as v, parseThemeColor as C } from "@mantine/core";
|
|
5
|
+
import z from "../assets/enitityIcons/flow.svg.js";
|
|
6
|
+
import F from "../assets/enitityIcons/form.svg.js";
|
|
7
|
+
import O from "../assets/enitityIcons/page.svg.js";
|
|
8
|
+
import E from "../assets/enitityIcons/sprint.svg.js";
|
|
9
|
+
import { DEFAULT_VALUES as a } from "../constants.js";
|
|
10
|
+
import { IconEntity as c, ProjectIcon as l, renderIcon as S } from "./ProjectIcon/ProjectIcon.js";
|
|
11
|
+
const f = (o) => !!o && a.COLORS.includes(o), R = (o) => o.type === "FOLDER" || o.isFolder || o.type === "PROJECT" && o?.pathById?.findIndex((r) => r === o?.parentId) === 1, _ = ({
|
|
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
|
-
|
|
17
|
+
if (o.title === "_system.favorites")
|
|
18
|
+
return /* @__PURE__ */ n(
|
|
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 });
|
|
19
29
|
}
|
|
20
30
|
if (o.type === "ATTACHMENT")
|
|
21
|
-
return /* @__PURE__ */ n(
|
|
31
|
+
return /* @__PURE__ */ n(i, { icon: u, size: r });
|
|
22
32
|
if (o.type === "PAGE")
|
|
23
33
|
return /* @__PURE__ */ n(
|
|
24
|
-
|
|
34
|
+
l,
|
|
25
35
|
{
|
|
26
36
|
fallbackColor: o.icon ? void 0 : "var(--default-page-icon-color)",
|
|
27
37
|
name: o.title,
|
|
28
38
|
icon: o.icon,
|
|
29
|
-
fallback: /* @__PURE__ */ n(
|
|
39
|
+
fallback: /* @__PURE__ */ n(O, { width: r, height: r })
|
|
30
40
|
}
|
|
31
41
|
);
|
|
32
42
|
if (o.type === "FORM")
|
|
33
43
|
return /* @__PURE__ */ n(
|
|
34
|
-
|
|
44
|
+
l,
|
|
35
45
|
{
|
|
36
46
|
fallbackColor: "var(--default-form-icon-color)",
|
|
37
47
|
icon: o.icon,
|
|
38
|
-
fallback: /* @__PURE__ */ n(
|
|
48
|
+
fallback: /* @__PURE__ */ n(F, { width: r, height: r })
|
|
39
49
|
}
|
|
40
50
|
);
|
|
41
51
|
if (o.type === "FLOW")
|
|
42
52
|
return /* @__PURE__ */ n(
|
|
43
|
-
|
|
53
|
+
l,
|
|
44
54
|
{
|
|
45
55
|
icon: o.icon,
|
|
46
56
|
fallbackColor: "var(--default-flow-icon-color)",
|
|
47
|
-
fallback: /* @__PURE__ */ n(
|
|
57
|
+
fallback: /* @__PURE__ */ n(z, { width: r, height: r })
|
|
48
58
|
}
|
|
49
59
|
);
|
|
50
60
|
if (o.type === "SPRINT") {
|
|
51
|
-
const e =
|
|
61
|
+
const e = c.parse(o.icon), t = f(e?.color) ? e.color : a.SPRINT_COLOR;
|
|
52
62
|
return /* @__PURE__ */ n(
|
|
53
|
-
|
|
63
|
+
s,
|
|
54
64
|
{
|
|
55
65
|
fz: r,
|
|
56
66
|
c: t,
|
|
@@ -61,14 +71,14 @@ const s = (o) => !!o && l.COLORS.includes(o), R = (o) => o.type === "FOLDER" ||
|
|
|
61
71
|
lineHeight: "normal",
|
|
62
72
|
width: r + 4
|
|
63
73
|
},
|
|
64
|
-
children: /* @__PURE__ */ n(
|
|
74
|
+
children: /* @__PURE__ */ n(E, {})
|
|
65
75
|
}
|
|
66
76
|
);
|
|
67
77
|
}
|
|
68
78
|
if (o.type === "PROJECT") {
|
|
69
|
-
const e =
|
|
79
|
+
const e = c.parse(o.icon);
|
|
70
80
|
return e?.emoji ? /* @__PURE__ */ n(
|
|
71
|
-
|
|
81
|
+
g,
|
|
72
82
|
{
|
|
73
83
|
bg: "gray.1",
|
|
74
84
|
style: {
|
|
@@ -80,7 +90,7 @@ const s = (o) => !!o && l.COLORS.includes(o), R = (o) => o.type === "FOLDER" ||
|
|
|
80
90
|
height: r
|
|
81
91
|
},
|
|
82
92
|
children: /* @__PURE__ */ n(
|
|
83
|
-
|
|
93
|
+
l,
|
|
84
94
|
{
|
|
85
95
|
p: 0,
|
|
86
96
|
icon: o.icon,
|
|
@@ -90,7 +100,7 @@ const s = (o) => !!o && l.COLORS.includes(o), R = (o) => o.type === "FOLDER" ||
|
|
|
90
100
|
)
|
|
91
101
|
}
|
|
92
102
|
) : /* @__PURE__ */ n(
|
|
93
|
-
|
|
103
|
+
I,
|
|
94
104
|
{
|
|
95
105
|
variant: "filled",
|
|
96
106
|
radius: 4,
|
|
@@ -98,7 +108,7 @@ const s = (o) => !!o && l.COLORS.includes(o), R = (o) => o.type === "FOLDER" ||
|
|
|
98
108
|
size: o.size ?? 16,
|
|
99
109
|
color: e?.color || "initials",
|
|
100
110
|
children: /* @__PURE__ */ n(
|
|
101
|
-
|
|
111
|
+
s,
|
|
102
112
|
{
|
|
103
113
|
fz: o.fz ?? 12,
|
|
104
114
|
fw: 500,
|
|
@@ -110,31 +120,31 @@ const s = (o) => !!o && l.COLORS.includes(o), R = (o) => o.type === "FOLDER" ||
|
|
|
110
120
|
justifyContent: "center",
|
|
111
121
|
lineHeight: "normal"
|
|
112
122
|
},
|
|
113
|
-
children:
|
|
123
|
+
children: S(e, void 0, !0, o.title)
|
|
114
124
|
}
|
|
115
125
|
)
|
|
116
126
|
}
|
|
117
127
|
);
|
|
118
128
|
}
|
|
119
129
|
return null;
|
|
120
|
-
},
|
|
130
|
+
}, T = ({
|
|
121
131
|
color: o,
|
|
122
132
|
size: r,
|
|
123
133
|
opened: e
|
|
124
134
|
}) => {
|
|
125
|
-
const t =
|
|
135
|
+
const t = v(), d = C({
|
|
126
136
|
color: o || "gray",
|
|
127
137
|
theme: t
|
|
128
138
|
});
|
|
129
139
|
return /* @__PURE__ */ n(
|
|
130
|
-
|
|
140
|
+
i,
|
|
131
141
|
{
|
|
132
142
|
color: d.value || void 0,
|
|
133
|
-
icon: e ?
|
|
143
|
+
icon: e ? h : y,
|
|
134
144
|
size: r
|
|
135
145
|
}
|
|
136
146
|
);
|
|
137
147
|
};
|
|
138
148
|
export {
|
|
139
|
-
|
|
149
|
+
_ as EntityIcon
|
|
140
150
|
};
|
|
@@ -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;eACkX,CAAC;6CADxW,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
const e = "
|
|
1
|
+
const e = "_featureProgressRoot_179em_1", t = "_progressTrack_179em_5", o = "_collapsedBar_179em_12", l = "_collapsedBarComplete_179em_37", s = "_collapsedTitle_179em_46", c = "_collapsedCompleteRight_179em_50", r = "_collapsedProgressWrap_179em_68", p = "_collapsedProgressWrapHidden_179em_74", a = "_collapsedPercent_179em_78", _ = "_collapsedCloseBtn_179em_85", n = "_collapsedBarOpened_179em_89", m = "_stepsDrawer_179em_93", d = "_stepsDrawerOpened_179em_111", i = "_expandedContainer_179em_119", P = "_expandedProgressRow_179em_123", C = "_expandedProgressEmoji_179em_130", g = "_expandedPercent_179em_136", B = "_stepsList_179em_143", T = "_stepItem_179em_151", u = "_stepCircle_179em_158", x = "_stepCirclePending_179em_171", D = "_stepCircleDone_179em_177", w = "_stepText_179em_183", R = "_startTutorialButtonWrap_179em_193", W = "_startTutorialButton_179em_193", b = "_completeModalBody_179em_210", E = "_completeCelebration_179em_218", O = "_completeCelebrationSvg_179em_226", f = "_completeCone_179em_232", y = "_completeParticleA_179em_238", h = "_completeParticleB_179em_239", j = "_completeParticleC_179em_240", k = "_completeParticleD_179em_241", v = "_completeParticleE_179em_242", A = "_completeParticleF_179em_243", F = "_completeParticleG_179em_244", G = "_completeTitle_179em_377", H = "_completeDescription_179em_384", I = {
|
|
2
2
|
featureProgressRoot: e,
|
|
3
|
-
progressTrack:
|
|
4
|
-
collapsedBar:
|
|
3
|
+
progressTrack: t,
|
|
4
|
+
collapsedBar: o,
|
|
5
5
|
collapsedBarComplete: l,
|
|
6
6
|
collapsedTitle: s,
|
|
7
7
|
collapsedCompleteRight: c,
|
|
@@ -10,36 +10,36 @@ const e = "_featureProgressRoot_bvfoj_1", o = "_progressTrack_bvfoj_9", t = "_co
|
|
|
10
10
|
collapsedPercent: a,
|
|
11
11
|
collapsedCloseBtn: _,
|
|
12
12
|
collapsedBarOpened: n,
|
|
13
|
-
stepsDrawer:
|
|
14
|
-
stepsDrawerOpened:
|
|
15
|
-
expandedContainer:
|
|
13
|
+
stepsDrawer: m,
|
|
14
|
+
stepsDrawerOpened: d,
|
|
15
|
+
expandedContainer: i,
|
|
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: C,
|
|
18
|
+
expandedPercent: g,
|
|
19
|
+
stepsList: B,
|
|
20
|
+
stepItem: T,
|
|
21
|
+
stepCircle: u,
|
|
22
|
+
stepCirclePending: x,
|
|
23
|
+
stepCircleDone: D,
|
|
24
|
+
stepText: w,
|
|
25
|
+
startTutorialButtonWrap: R,
|
|
26
|
+
startTutorialButton: W,
|
|
27
|
+
completeModalBody: b,
|
|
28
|
+
completeCelebration: E,
|
|
29
|
+
completeCelebrationSvg: O,
|
|
30
|
+
completeCone: f,
|
|
31
|
+
completeParticleA: y,
|
|
32
|
+
completeParticleB: h,
|
|
33
|
+
completeParticleC: j,
|
|
34
|
+
completeParticleD: k,
|
|
35
|
+
completeParticleE: v,
|
|
36
36
|
completeParticleF: A,
|
|
37
37
|
completeParticleG: F,
|
|
38
38
|
completeTitle: G,
|
|
39
39
|
completeDescription: H
|
|
40
40
|
};
|
|
41
41
|
export {
|
|
42
|
-
|
|
42
|
+
o 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
|
+
E as completeCelebration,
|
|
52
|
+
O as completeCelebrationSvg,
|
|
53
|
+
f as completeCone,
|
|
54
54
|
H as completeDescription,
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
55
|
+
b as completeModalBody,
|
|
56
|
+
y as completeParticleA,
|
|
57
|
+
h as completeParticleB,
|
|
58
|
+
j as completeParticleC,
|
|
59
|
+
k as completeParticleD,
|
|
60
|
+
v 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
|
+
i as expandedContainer,
|
|
66
|
+
g as expandedPercent,
|
|
67
|
+
C as expandedProgressEmoji,
|
|
68
68
|
P as expandedProgressRow,
|
|
69
69
|
e as featureProgressRoot,
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
70
|
+
t as progressTrack,
|
|
71
|
+
W as startTutorialButton,
|
|
72
|
+
R as startTutorialButtonWrap,
|
|
73
|
+
u as stepCircle,
|
|
74
|
+
D as stepCircleDone,
|
|
75
|
+
x as stepCirclePending,
|
|
76
|
+
T as stepItem,
|
|
77
|
+
w as stepText,
|
|
78
|
+
m as stepsDrawer,
|
|
79
|
+
d as stepsDrawerOpened,
|
|
80
|
+
B 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
|
-
|
|
7
|
+
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,9 +54,7 @@ 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;
|
|
59
57
|
}>;
|
|
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,
|
|
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;
|
|
61
59
|
export {};
|
|
62
60
|
//# 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/F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