@layers-app/shared 0.3.7 → 0.3.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/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 +19 -21
- package/dist/components/ColorPicker/ColorPicker.d.ts.map +1 -1
- package/dist/components/ColorPicker/ColorPicker.js +136 -144
- 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 +0 -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/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/brand.js +8 -8
- 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 +1 -6
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +498 -509
- 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/ColorPicker/ColorPicker.module.css.js +0 -31
- package/dist/components/ColorPicker/ColorPickerList.d.ts +0 -6
- package/dist/components/ColorPicker/ColorPickerList.d.ts.map +0 -1
- package/dist/components/ColorPicker/ColorPickerList.js +0 -134
- package/dist/components/ColorPicker/ColorPickerToolbar.d.ts +0 -13
- package/dist/components/ColorPicker/ColorPickerToolbar.d.ts.map +0 -1
- package/dist/components/ColorPicker/ColorPickerToolbar.js +0 -149
- package/dist/components/ColorPicker/icons.d.ts +0 -11
- package/dist/components/ColorPicker/icons.d.ts.map +0 -1
- package/dist/components/ColorPicker/icons.js +0 -71
- package/dist/components/ColorPicker/types.d.ts +0 -49
- package/dist/components/ColorPicker/types.d.ts.map +0 -1
- package/dist/components/ColorPicker/types.js +0 -10
- package/dist/components/ColorPicker/useRecentColors.d.ts +0 -13
- package/dist/components/ColorPicker/useRecentColors.d.ts.map +0 -1
- package/dist/components/ColorPicker/useRecentColors.js +0 -39
- 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,5 +1,5 @@
|
|
|
1
1
|
import { jsxs as y, jsx as t } from "react/jsx-runtime";
|
|
2
|
-
import { useState as
|
|
2
|
+
import { useState as u, useRef as d, useEffect as R, useCallback as K } from "react";
|
|
3
3
|
import { useTranslation as L } from "react-i18next";
|
|
4
4
|
import { Search01Icon as U, ShuffleIcon as V, Clock01Icon as W, SmileIcon as X, Pizza01Icon as Z, FootballIcon as _, Airplane01Icon as ee, BulbIcon as te, Asterisk02Icon as oe, Flag02Icon as re } from "@hugeicons/core-free-icons";
|
|
5
5
|
import { HugeiconsIcon as c } from "@hugeicons/react";
|
|
@@ -10,8 +10,8 @@ import le from "../../assets/svg/dog.svg.js";
|
|
|
10
10
|
import { pickRandomEmoji as fe } from "../../helpers/pickRandomEmoji.js";
|
|
11
11
|
import { NoData as ue } from "../NoData/NoData.js";
|
|
12
12
|
import { IconEntity as de } from "../ProjectIcon/ProjectIcon.js";
|
|
13
|
-
import { frequentEmoji as
|
|
14
|
-
import { getEmojis as
|
|
13
|
+
import { frequentEmoji as me } from "./constants.js";
|
|
14
|
+
import { getEmojis as pe } from "./utils.js";
|
|
15
15
|
import T from "./EmojiPicker.module.css.js";
|
|
16
16
|
const he = [
|
|
17
17
|
{ i: "frequent", icon: /* @__PURE__ */ t(c, { size: 20, icon: W }) },
|
|
@@ -27,31 +27,31 @@ const he = [
|
|
|
27
27
|
{ i: "symbols", icon: /* @__PURE__ */ t(c, { size: 20, icon: oe }) },
|
|
28
28
|
{ i: "flags", icon: /* @__PURE__ */ t(c, { size: 20, icon: re }) }
|
|
29
29
|
], Re = ({
|
|
30
|
-
locales:
|
|
30
|
+
locales: m,
|
|
31
31
|
onChange: C,
|
|
32
32
|
onClose: M,
|
|
33
33
|
setRandomIcon: P,
|
|
34
|
-
querySearch:
|
|
34
|
+
querySearch: p
|
|
35
35
|
}) => {
|
|
36
|
-
const [b, k] =
|
|
36
|
+
const [b, k] = u("frequent"), x = d("frequent"), h = d({}), I = d(null), [w, S] = u(""), [Q, O] = u([]), [a, B] = u(null), [E, j] = u([]), { t: G } = L(), g = d(!1), l = d(null);
|
|
37
37
|
R(() => {
|
|
38
|
-
if (typeof
|
|
39
|
-
const e =
|
|
40
|
-
if (
|
|
38
|
+
if (typeof p == "string") {
|
|
39
|
+
const e = p.slice(1);
|
|
40
|
+
if (S(e), a) {
|
|
41
41
|
const o = a.search(e);
|
|
42
42
|
j(o.map((r) => r.item.e));
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
|
-
}, [
|
|
45
|
+
}, [p, a]), R(() => {
|
|
46
46
|
(async () => {
|
|
47
|
-
const o = await
|
|
47
|
+
const o = await pe(), r = o.flatMap(
|
|
48
48
|
(i) => i.e.map((n) => ({
|
|
49
49
|
e: n.e,
|
|
50
50
|
n: n.n,
|
|
51
51
|
k: n.k
|
|
52
52
|
// категория
|
|
53
53
|
}))
|
|
54
|
-
), s =
|
|
54
|
+
), s = me.map(
|
|
55
55
|
(i) => r.find((n) => n.e === i)
|
|
56
56
|
);
|
|
57
57
|
O([{ i: "frequent", e: s }, ...o]);
|
|
@@ -74,7 +74,7 @@ const he = [
|
|
|
74
74
|
const H = K(
|
|
75
75
|
(e) => {
|
|
76
76
|
const o = e.currentTarget.value;
|
|
77
|
-
if (
|
|
77
|
+
if (S(o), a) {
|
|
78
78
|
const r = a.search(o);
|
|
79
79
|
j(r.map((s) => s.item.e));
|
|
80
80
|
}
|
|
@@ -112,7 +112,7 @@ const he = [
|
|
|
112
112
|
n < s && (s = n, r = f);
|
|
113
113
|
}
|
|
114
114
|
}), r !== x.current && (x.current = r, k(r));
|
|
115
|
-
}, J = typeof
|
|
115
|
+
}, J = typeof p == "string";
|
|
116
116
|
return /* @__PURE__ */ y(v, { gap: 0, h: "100%", children: [
|
|
117
117
|
/* @__PURE__ */ t(ne, { active: !0, children: /* @__PURE__ */ y(
|
|
118
118
|
z,
|
|
@@ -128,8 +128,8 @@ const he = [
|
|
|
128
128
|
ie,
|
|
129
129
|
{
|
|
130
130
|
leftSection: /* @__PURE__ */ t(c, { size: 16, icon: U }),
|
|
131
|
-
value:
|
|
132
|
-
placeholder: `${
|
|
131
|
+
value: w,
|
|
132
|
+
placeholder: `${m?.search}...`,
|
|
133
133
|
"data-autofocus": !0,
|
|
134
134
|
styles: {
|
|
135
135
|
input: {
|
|
@@ -142,7 +142,7 @@ const he = [
|
|
|
142
142
|
radius: "var(--mantine-radius-default)"
|
|
143
143
|
}
|
|
144
144
|
),
|
|
145
|
-
/* @__PURE__ */ t(ce, { withArrow: !0, label:
|
|
145
|
+
/* @__PURE__ */ t(ce, { withArrow: !0, label: G("random"), children: /* @__PURE__ */ t(
|
|
146
146
|
A,
|
|
147
147
|
{
|
|
148
148
|
h: 36,
|
|
@@ -175,7 +175,7 @@ const he = [
|
|
|
175
175
|
},
|
|
176
176
|
ref: I,
|
|
177
177
|
onScroll: $,
|
|
178
|
-
children:
|
|
178
|
+
children: w ? /* @__PURE__ */ y(v, { flex: 1, align: "stretch", children: [
|
|
179
179
|
!J && /* @__PURE__ */ t(
|
|
180
180
|
F,
|
|
181
181
|
{
|
|
@@ -185,7 +185,7 @@ const he = [
|
|
|
185
185
|
top: -1,
|
|
186
186
|
style: { zIndex: 1 },
|
|
187
187
|
bg: "light-dark(var(--mantine-color-white), var(--mantine-color-dark-6))",
|
|
188
|
-
children: /* @__PURE__ */ t(q, { fz: "sm", c: "dimmed", children:
|
|
188
|
+
children: /* @__PURE__ */ t(q, { fz: "sm", c: "dimmed", children: m?.searchResults })
|
|
189
189
|
}
|
|
190
190
|
),
|
|
191
191
|
E.length ? /* @__PURE__ */ t(N, { cols: 10, spacing: 0, children: E.map((e) => /* @__PURE__ */ t(
|
|
@@ -201,7 +201,7 @@ const he = [
|
|
|
201
201
|
ue,
|
|
202
202
|
{
|
|
203
203
|
size: 100,
|
|
204
|
-
description:
|
|
204
|
+
description: m?.searchNoResults,
|
|
205
205
|
descriptionProps: {
|
|
206
206
|
fz: "sm"
|
|
207
207
|
}
|
|
@@ -217,14 +217,14 @@ const he = [
|
|
|
217
217
|
/* @__PURE__ */ t(
|
|
218
218
|
F,
|
|
219
219
|
{
|
|
220
|
-
bg: "
|
|
220
|
+
bg: "light-dark(var(--mantine-color-white), var(--mantine-color-dark-6))",
|
|
221
221
|
py: 2,
|
|
222
222
|
px: 6,
|
|
223
223
|
pos: "sticky",
|
|
224
224
|
top: -1,
|
|
225
225
|
h: 23,
|
|
226
226
|
style: { zIndex: 1 },
|
|
227
|
-
children: /* @__PURE__ */ t(q, { fz: "xs", c: "dimmed", children:
|
|
227
|
+
children: /* @__PURE__ */ t(q, { fz: "xs", c: "dimmed", children: m?.emojiCategory?.[e.i] })
|
|
228
228
|
}
|
|
229
229
|
),
|
|
230
230
|
/* @__PURE__ */ t(N, { cols: 10, spacing: 0, children: e.e.map((o) => /* @__PURE__ */ t(
|
|
@@ -31,7 +31,6 @@ export type EmojiPickerLocales = {
|
|
|
31
31
|
searchNoResults?: string;
|
|
32
32
|
remove?: string;
|
|
33
33
|
icons?: string;
|
|
34
|
-
random?: string;
|
|
35
34
|
emojiCategory?: Record<string, string>;
|
|
36
35
|
};
|
|
37
36
|
export declare const EmojiPicker: ({ project, value, querySearch, children, onChange, position, popoverProps, showIcons, showColors, defaultActiveTab, showEmojis, withinPortal, locales: _locales, openWhen, triggerRegex, typingSeq, showRemoveButton, keepOpenOnRandom, }: PropsWithChildren<EmojiPickerProps>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -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,CA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A2G;IAC3G,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,gHAAgH;IAChH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,0FAA0F;IAC1F,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B,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,2OAmBzB,iBAAiB,CAAC,gBAAgB,CAAC,4CAgNrC,CAAC"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
const o = "
|
|
1
|
+
const o = "_item_o1hlf_1", a = "_randomIcon_o1hlf_26", n = "_originalTab_o1hlf_30", t = "_customTab_o1hlf_36", _ = {
|
|
2
2
|
item: o,
|
|
3
|
-
randomIcon:
|
|
4
|
-
originalTab:
|
|
5
|
-
customTab:
|
|
3
|
+
randomIcon: a,
|
|
4
|
+
originalTab: n,
|
|
5
|
+
customTab: t
|
|
6
6
|
};
|
|
7
7
|
export {
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
t as customTab,
|
|
9
|
+
_ as default,
|
|
10
10
|
o as item,
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
n as originalTab,
|
|
12
|
+
a as randomIcon
|
|
13
13
|
};
|
|
@@ -13,18 +13,18 @@ import { IconEntity as I, IconType as A } from "../ProjectIcon/ProjectIcon.js";
|
|
|
13
13
|
import { customIcons as D } from "./custom-icons/customIcons.js";
|
|
14
14
|
import { getIconsList as F, getRandomIcon as ae } from "./utils.js";
|
|
15
15
|
import h from "./EmojiPicker.module.css.js";
|
|
16
|
-
async function le(
|
|
17
|
-
const u = [], p =
|
|
16
|
+
async function le(c, a, l = 500) {
|
|
17
|
+
const u = [], p = c.length;
|
|
18
18
|
for (let r = 0; r < p; r += l) {
|
|
19
|
-
const w =
|
|
19
|
+
const w = c.slice(r, r + l).filter(a);
|
|
20
20
|
u.push(...w), await new Promise((f) => setTimeout(f, 0));
|
|
21
21
|
}
|
|
22
22
|
return u;
|
|
23
23
|
}
|
|
24
24
|
const Ce = M(
|
|
25
25
|
({
|
|
26
|
-
showColors:
|
|
27
|
-
locales:
|
|
26
|
+
showColors: c,
|
|
27
|
+
locales: a,
|
|
28
28
|
onChange: l,
|
|
29
29
|
value: u,
|
|
30
30
|
onClose: p,
|
|
@@ -65,7 +65,7 @@ const Ce = M(
|
|
|
65
65
|
color: i?.color,
|
|
66
66
|
type: i?.type || A.FILLED
|
|
67
67
|
})
|
|
68
|
-
),
|
|
68
|
+
), c || p());
|
|
69
69
|
}), n = J({
|
|
70
70
|
color: i?.color || ie.COLORS[0],
|
|
71
71
|
theme: w
|
|
@@ -77,11 +77,11 @@ const Ce = M(
|
|
|
77
77
|
"--icon-color-hover": K(n.value, 0.2)
|
|
78
78
|
}, [n]), q = async () => {
|
|
79
79
|
const o = await ae(r);
|
|
80
|
-
S([]), l?.(I.stringify({ icon: o, color: i?.color })), !
|
|
80
|
+
S([]), l?.(I.stringify({ icon: o, color: i?.color })), !c && !C && p();
|
|
81
81
|
};
|
|
82
82
|
return /* @__PURE__ */ m(y, { w: "100%", gap: "sm", pt: 12, pb: 8, h: "100%", children: [
|
|
83
|
-
|
|
84
|
-
/* @__PURE__ */ e(b, { lh: "140%", fw: 500, c: "dimmed", fz: "xs", children:
|
|
83
|
+
c && /* @__PURE__ */ m(y, { gap: 4, px: 8, w: "100%", children: [
|
|
84
|
+
/* @__PURE__ */ e(b, { lh: "140%", fw: 500, c: "dimmed", fz: "xs", children: a?.chooseColor || k("chooseColor") }),
|
|
85
85
|
/* @__PURE__ */ e(
|
|
86
86
|
ne,
|
|
87
87
|
{
|
|
@@ -117,7 +117,7 @@ const Ce = M(
|
|
|
117
117
|
{
|
|
118
118
|
leftSection: /* @__PURE__ */ e(L, { size: 16, icon: Q }),
|
|
119
119
|
value: f,
|
|
120
|
-
placeholder: `${
|
|
120
|
+
placeholder: `${a?.search}...`,
|
|
121
121
|
"data-autofocus": !0,
|
|
122
122
|
styles: {
|
|
123
123
|
input: {
|
|
@@ -130,7 +130,7 @@ const Ce = M(
|
|
|
130
130
|
radius: "var(--mantine-radius-default)"
|
|
131
131
|
}
|
|
132
132
|
) }),
|
|
133
|
-
/* @__PURE__ */ e(Z, { withArrow: !0, label:
|
|
133
|
+
/* @__PURE__ */ e(Z, { withArrow: !0, label: k("random"), children: /* @__PURE__ */ e(
|
|
134
134
|
ee,
|
|
135
135
|
{
|
|
136
136
|
h: 36,
|
|
@@ -168,7 +168,7 @@ const Ce = M(
|
|
|
168
168
|
top: -1,
|
|
169
169
|
style: { zIndex: 1 },
|
|
170
170
|
bg: "light-dark(var(--mantine-color-white), var(--mantine-color-dark-6))",
|
|
171
|
-
children: /* @__PURE__ */ e(b, { fz: "xs", fw: 500, lh: "140%", c: "dimmed", children:
|
|
171
|
+
children: /* @__PURE__ */ e(b, { fz: "xs", fw: 500, lh: "140%", c: "dimmed", children: a?.searchResults })
|
|
172
172
|
}
|
|
173
173
|
),
|
|
174
174
|
T.length ? /* @__PURE__ */ e(N, { cols: 8, spacing: 0, children: T.map((o) => {
|
|
@@ -203,7 +203,7 @@ const Ce = M(
|
|
|
203
203
|
ce,
|
|
204
204
|
{
|
|
205
205
|
size: 100,
|
|
206
|
-
description:
|
|
206
|
+
description: a?.searchNoResults,
|
|
207
207
|
descriptionProps: {
|
|
208
208
|
fz: "sm"
|
|
209
209
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EntityIcon.d.ts","sourceRoot":"","sources":["../../src/components/EntityIcon.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"EntityIcon.d.ts","sourceRoot":"","sources":["../../src/components/EntityIcon.tsx"],"names":[],"mappings":"AA2BA,MAAM,WAAW,cAAc;IAC7B,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,EAAE,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACnB,EAAE,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IACpB,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAQD,eAAO,MAAM,UAAU,GAAI,CAAC,SAAS,cAAc,EAAE,WAElD;IACD,IAAI,CAAC,EAAE,CAAC,CAAC;CACV,mDAwIA,CAAC"}
|
|
@@ -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/FilePicker/FilePicker.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAqB,MAAM,OAAO,CAAC;AAK7D,OAAO,EAIL,SAAS,EACT,gBAAgB,EAEhB,YAAY,EAIb,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAOhE,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAOvE,OAAO,EAAE,QAAQ,EAAE,4BAA4B,EAAE,MAAM,SAAS,CAAC;AAIjE,QAAA,MAAM,YAAY,qFAQR,CAAC;AAEX,KAAK,OAAO,GAAG,CAAC,OAAO,YAAY,CAAC,CAAC,MAAM,CAAC,CAAC;AAE7C,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,C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