@layers-app/shared 0.3.6 → 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 +13 -12
- 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,76 +1,77 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { useState as
|
|
1
|
+
import { jsxs as c, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { useState as m, useMemo as I, useEffect as f, useCallback as x } from "react";
|
|
3
3
|
import { useTranslation as S } from "react-i18next";
|
|
4
4
|
import { Search01Icon as P } from "@hugeicons/core-free-icons";
|
|
5
|
-
import { HugeiconsIcon as
|
|
6
|
-
import { Stack as b,
|
|
7
|
-
import { useDebouncedValue as
|
|
5
|
+
import { HugeiconsIcon as w } from "@hugeicons/react";
|
|
6
|
+
import { Stack as b, TextInput as z, Loader as L, Box as C, SimpleGrid as T, AspectRatio as j, Button as D } from "@mantine/core";
|
|
7
|
+
import { useDebouncedValue as G, useDebouncedCallback as M } from "@mantine/hooks";
|
|
8
8
|
import { NoData as q } from "../NoData/NoData.js";
|
|
9
9
|
import { FilePickerSkeletonLoader as B } from "./FilePickerSkeletonLoader.js";
|
|
10
|
-
import { useGiphyPhotos as
|
|
11
|
-
import
|
|
12
|
-
const k = (
|
|
13
|
-
onChange:
|
|
10
|
+
import { useGiphyPhotos as F } from "./api/giphyApi.js";
|
|
11
|
+
import N from "./FilePicker.module.css.js";
|
|
12
|
+
const k = (n) => (n || []).reduce((o, i) => (o[i.id] = i, o), {}), K = ({
|
|
13
|
+
onChange: n
|
|
14
14
|
}) => {
|
|
15
|
-
const { t: o } = S("ui"), [i, v] =
|
|
16
|
-
{ q:
|
|
15
|
+
const { t: o } = S("ui"), [i, v] = m(""), [l] = G(i, 800), [u, d] = m(1), [p, h] = m({}), { data: r, isLoading: s } = F(
|
|
16
|
+
{ q: l, limit: 24, offset: (u - 1) * 24 + 1 },
|
|
17
17
|
u
|
|
18
|
-
), a =
|
|
19
|
-
() => Object.values({ ...
|
|
20
|
-
[
|
|
18
|
+
), a = I(
|
|
19
|
+
() => Object.values({ ...p, ...k(r?.items) }),
|
|
20
|
+
[p, r?.items]
|
|
21
21
|
), g = M(() => {
|
|
22
22
|
setTimeout(() => {
|
|
23
|
-
h((
|
|
23
|
+
h((e) => ({ ...e, ...k(r?.items) }));
|
|
24
24
|
}, 0);
|
|
25
25
|
}, 100);
|
|
26
26
|
f(() => {
|
|
27
27
|
g();
|
|
28
28
|
}, [r?.items, g]), f(() => {
|
|
29
29
|
h({});
|
|
30
|
-
}, [
|
|
31
|
-
const y =
|
|
32
|
-
(
|
|
33
|
-
v(
|
|
30
|
+
}, [l]);
|
|
31
|
+
const y = x(
|
|
32
|
+
(e) => {
|
|
33
|
+
v(e.currentTarget.value), d(1);
|
|
34
34
|
},
|
|
35
35
|
[]
|
|
36
36
|
);
|
|
37
|
-
return /* @__PURE__ */
|
|
38
|
-
/* @__PURE__ */
|
|
37
|
+
return /* @__PURE__ */ c(b, { children: [
|
|
38
|
+
/* @__PURE__ */ t(
|
|
39
39
|
z,
|
|
40
40
|
{
|
|
41
|
-
leftSection: s ? /* @__PURE__ */
|
|
41
|
+
leftSection: s ? /* @__PURE__ */ t(L, { size: 16 }) : /* @__PURE__ */ t(w, { size: 16, icon: P }),
|
|
42
42
|
maxLength: 50,
|
|
43
|
-
placeholder: o("changeCover.
|
|
43
|
+
placeholder: o("changeCover.searchImage"),
|
|
44
44
|
"data-autofocus": !0,
|
|
45
45
|
value: i,
|
|
46
|
-
onChange: y
|
|
46
|
+
onChange: y,
|
|
47
|
+
mb: "sm"
|
|
47
48
|
}
|
|
48
|
-
)
|
|
49
|
-
/* @__PURE__ */
|
|
50
|
-
!!a.length && /* @__PURE__ */
|
|
51
|
-
/* @__PURE__ */
|
|
49
|
+
),
|
|
50
|
+
/* @__PURE__ */ c(C, { mah: 300, w: "100%", style: { overflowY: "auto" }, children: [
|
|
51
|
+
!!a.length && /* @__PURE__ */ c(b, { gap: 8, children: [
|
|
52
|
+
/* @__PURE__ */ t(T, { cols: 4, spacing: 10, children: a.map((e) => /* @__PURE__ */ t(
|
|
52
53
|
j,
|
|
53
54
|
{
|
|
54
|
-
onClick: () =>
|
|
55
|
+
onClick: () => n?.(e.images.original.url),
|
|
55
56
|
ratio: 120 / 65,
|
|
56
|
-
className:
|
|
57
|
+
className: N.itemImage,
|
|
57
58
|
style: {
|
|
58
|
-
backgroundImage: `url(${
|
|
59
|
+
backgroundImage: `url(${e.images.preview_webp.url})`
|
|
59
60
|
}
|
|
60
61
|
},
|
|
61
|
-
|
|
62
|
+
e.id
|
|
62
63
|
)) }),
|
|
63
|
-
r?.hasMore && /* @__PURE__ */
|
|
64
|
+
r?.hasMore && /* @__PURE__ */ t(
|
|
64
65
|
D,
|
|
65
66
|
{
|
|
66
67
|
variant: "subtle",
|
|
67
68
|
loading: s,
|
|
68
|
-
onClick: () =>
|
|
69
|
-
children: o("
|
|
69
|
+
onClick: () => d((e) => e + 1),
|
|
70
|
+
children: o("loadMode")
|
|
70
71
|
}
|
|
71
72
|
)
|
|
72
73
|
] }),
|
|
73
|
-
!a.length && !s && /* @__PURE__ */
|
|
74
|
+
!a.length && !s && /* @__PURE__ */ t(C, { pb: 16, children: /* @__PURE__ */ t(
|
|
74
75
|
q,
|
|
75
76
|
{
|
|
76
77
|
size: 120,
|
|
@@ -79,10 +80,10 @@ const k = (c) => (c || []).reduce((o, i) => (o[i.id] = i, o), {}), U = ({
|
|
|
79
80
|
titleProps: { size: "xs", c: "dimmed" }
|
|
80
81
|
}
|
|
81
82
|
) }),
|
|
82
|
-
!a.length && s && /* @__PURE__ */
|
|
83
|
+
!a.length && s && /* @__PURE__ */ t(B, {})
|
|
83
84
|
] })
|
|
84
85
|
] });
|
|
85
86
|
};
|
|
86
87
|
export {
|
|
87
|
-
|
|
88
|
+
K as FilePickerGiphy
|
|
88
89
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FilePickerLink.d.ts","sourceRoot":"","sources":["../../../src/components/FilePicker/FilePickerLink.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"FilePickerLink.d.ts","sourceRoot":"","sources":["../../../src/components/FilePicker/FilePickerLink.tsx"],"names":[],"mappings":"AAWA,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAInC,eAAO,MAAM,cAAc,GAAI,sCAI5B;IACD,QAAQ,CAAC,EAAE,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IAC/B,IAAI,EAAE,QAAQ,CAAC;IACf,eAAe,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,OAAO,CAAC;CAC5C,4CA+DA,CAAC"}
|
|
@@ -1,51 +1,48 @@
|
|
|
1
|
-
import { jsxs as u, jsx as
|
|
2
|
-
import { useTranslation as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
type: l,
|
|
12
|
-
isValidMediaUrl: s
|
|
1
|
+
import { jsxs as u, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { useTranslation as m } from "react-i18next";
|
|
3
|
+
import { Stack as c, FocusTrap as d, TextInput as f, Flex as p, Button as h } from "@mantine/core";
|
|
4
|
+
import { useForm as g } from "@mantine/form";
|
|
5
|
+
import { isValidUrl as v, isImageUrl as k, isVideoUrl as x, isAudioUrl as F } from "../../helpers/validation.js";
|
|
6
|
+
import L from "./FilePicker.module.css.js";
|
|
7
|
+
const U = ({
|
|
8
|
+
onChange: o,
|
|
9
|
+
type: s,
|
|
10
|
+
isValidMediaUrl: a
|
|
13
11
|
}) => {
|
|
14
|
-
const { t } =
|
|
12
|
+
const { t: i } = m("ui"), l = g({
|
|
15
13
|
initialValues: {
|
|
16
14
|
url: ""
|
|
17
15
|
},
|
|
18
16
|
validate: {
|
|
19
|
-
url: (e) => (e || "").trim().length > 0 &&
|
|
17
|
+
url: (e) => (e || "").trim().length > 0 && v(e) ? null : i("changeCover.invalidLink")
|
|
20
18
|
}
|
|
21
19
|
}), n = async () => {
|
|
22
|
-
const { values: e } =
|
|
23
|
-
let
|
|
24
|
-
|
|
20
|
+
const { values: e } = l;
|
|
21
|
+
let r;
|
|
22
|
+
s === "image" ? r = await k(e.url) : s === "video" ? a && a(e.url) ? r = !0 : r = await x(e.url) : s === "audio" ? r = await F(e.url) : r = !0, r ? o?.(e.url) : l.setFieldError("url", i("changeCover.invalidLink"));
|
|
25
23
|
};
|
|
26
|
-
return /* @__PURE__ */ u(
|
|
27
|
-
/* @__PURE__ */
|
|
28
|
-
|
|
24
|
+
return /* @__PURE__ */ u(c, { gap: "sm", children: [
|
|
25
|
+
/* @__PURE__ */ t(d, { active: !0, children: /* @__PURE__ */ t(
|
|
26
|
+
f,
|
|
29
27
|
{
|
|
30
28
|
maxLength: 500,
|
|
31
29
|
size: "sm",
|
|
32
|
-
placeholder:
|
|
33
|
-
leftSection: /* @__PURE__ */ r(f, { size: 16, icon: m }),
|
|
30
|
+
placeholder: i("changeCover.pasteLink"),
|
|
34
31
|
"data-autofocus": !0,
|
|
35
|
-
...
|
|
32
|
+
...l.getInputProps("url")
|
|
36
33
|
}
|
|
37
34
|
) }),
|
|
38
|
-
/* @__PURE__ */
|
|
39
|
-
|
|
35
|
+
/* @__PURE__ */ t(p, { justify: "flex-end", align: "center", mt: "sm", children: /* @__PURE__ */ t(
|
|
36
|
+
h,
|
|
40
37
|
{
|
|
41
38
|
onClick: n,
|
|
42
|
-
className:
|
|
43
|
-
disabled: !
|
|
44
|
-
children:
|
|
39
|
+
className: L.button,
|
|
40
|
+
disabled: !l.values.url,
|
|
41
|
+
children: i("customDrawer.save")
|
|
45
42
|
}
|
|
46
43
|
) })
|
|
47
44
|
] });
|
|
48
45
|
};
|
|
49
46
|
export {
|
|
50
|
-
|
|
47
|
+
U as FilePickerLink
|
|
51
48
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FilePickerUnsplash.d.ts","sourceRoot":"","sources":["../../../src/components/FilePicker/FilePickerUnsplash.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"FilePickerUnsplash.d.ts","sourceRoot":"","sources":["../../../src/components/FilePicker/FilePickerUnsplash.tsx"],"names":[],"mappings":"AAoCA,eAAO,MAAM,kBAAkB,GAAI,eAEhC;IACD,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;CAChC,4CAwHA,CAAC"}
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { jsxs as s, jsx as
|
|
2
|
-
import { useState as m, useMemo as P, useEffect as f, useCallback as
|
|
3
|
-
import { useTranslation as
|
|
1
|
+
import { jsxs as s, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { useState as m, useMemo as P, useEffect as f, useCallback as z } from "react";
|
|
3
|
+
import { useTranslation as T } from "react-i18next";
|
|
4
4
|
import { Search01Icon as L } from "@hugeicons/core-free-icons";
|
|
5
5
|
import { HugeiconsIcon as j } from "@hugeicons/react";
|
|
6
|
-
import { Stack as
|
|
6
|
+
import { Stack as b, TextInput as B, Loader as D, Box as c, SimpleGrid as M, AspectRatio as N, Text as k, Button as _ } from "@mantine/core";
|
|
7
7
|
import { useDebouncedValue as q, useDebouncedCallback as w } from "@mantine/hooks";
|
|
8
8
|
import { NoData as A } from "../NoData/NoData.js";
|
|
9
|
-
import { FilePickerSkeletonLoader as
|
|
10
|
-
import { useUnsplashPhotos as
|
|
11
|
-
import
|
|
12
|
-
const y = (l) => (l || []).reduce((
|
|
9
|
+
import { FilePickerSkeletonLoader as F } from "./FilePickerSkeletonLoader.js";
|
|
10
|
+
import { useUnsplashPhotos as Q } from "./api/unsplashApi.js";
|
|
11
|
+
import C from "./FilePicker.module.css.js";
|
|
12
|
+
const y = (l) => (l || []).reduce((o, r) => (o[r.id] = r, o), {}), W = ({
|
|
13
13
|
onChange: l
|
|
14
14
|
}) => {
|
|
15
|
-
const { t:
|
|
15
|
+
const { t: o } = T("ui"), [r, x] = m(""), [u] = q(r, 800), [v, h] = m(1), [p, d] = m({}), { data: a, isLoading: n } = Q(
|
|
16
16
|
{
|
|
17
17
|
query: u,
|
|
18
|
-
page:
|
|
18
|
+
page: v,
|
|
19
19
|
per_page: 24,
|
|
20
20
|
order_by: "popular"
|
|
21
21
|
}
|
|
@@ -24,7 +24,7 @@ const y = (l) => (l || []).reduce((r, o) => (r[o.id] = o, r), {}), X = ({
|
|
|
24
24
|
[p, a?.items]
|
|
25
25
|
), g = w(() => {
|
|
26
26
|
setTimeout(() => {
|
|
27
|
-
d((
|
|
27
|
+
d((e) => ({ ...e, ...y(a?.items) }));
|
|
28
28
|
}, 0);
|
|
29
29
|
}, 100);
|
|
30
30
|
f(() => {
|
|
@@ -32,78 +32,79 @@ const y = (l) => (l || []).reduce((r, o) => (r[o.id] = o, r), {}), X = ({
|
|
|
32
32
|
}, [a?.items, g]), f(() => {
|
|
33
33
|
d({});
|
|
34
34
|
}, [u]);
|
|
35
|
-
const I =
|
|
36
|
-
(
|
|
37
|
-
|
|
35
|
+
const I = z(
|
|
36
|
+
(e) => {
|
|
37
|
+
x(e.currentTarget.value), h(1);
|
|
38
38
|
},
|
|
39
39
|
[]
|
|
40
40
|
);
|
|
41
|
-
return /* @__PURE__ */ s(
|
|
42
|
-
/* @__PURE__ */
|
|
43
|
-
|
|
41
|
+
return /* @__PURE__ */ s(b, { children: [
|
|
42
|
+
/* @__PURE__ */ t(
|
|
43
|
+
B,
|
|
44
44
|
{
|
|
45
|
-
leftSection: n ? /* @__PURE__ */
|
|
45
|
+
leftSection: n ? /* @__PURE__ */ t(D, { size: 16 }) : /* @__PURE__ */ t(j, { size: 16, icon: L }),
|
|
46
46
|
maxLength: 50,
|
|
47
|
-
placeholder:
|
|
47
|
+
placeholder: o("changeCover.searchImage"),
|
|
48
48
|
"data-autofocus": !0,
|
|
49
|
-
value:
|
|
50
|
-
onChange: I
|
|
49
|
+
value: r,
|
|
50
|
+
onChange: I,
|
|
51
|
+
mb: "sm"
|
|
51
52
|
}
|
|
52
|
-
)
|
|
53
|
+
),
|
|
53
54
|
/* @__PURE__ */ s(c, { mah: 300, w: "100%", style: { overflowY: "auto" }, children: [
|
|
54
|
-
!!i.length && /* @__PURE__ */ s(
|
|
55
|
-
/* @__PURE__ */
|
|
56
|
-
/* @__PURE__ */
|
|
55
|
+
!!i.length && /* @__PURE__ */ s(b, { gap: 8, children: [
|
|
56
|
+
/* @__PURE__ */ t(M, { cols: 4, spacing: 10, children: i.map((e) => /* @__PURE__ */ s(c, { children: [
|
|
57
|
+
/* @__PURE__ */ t(
|
|
57
58
|
N,
|
|
58
59
|
{
|
|
59
|
-
onClick: () => l?.(
|
|
60
|
+
onClick: () => l?.(e.urls.regular),
|
|
60
61
|
ratio: 120 / 65,
|
|
61
|
-
className:
|
|
62
|
+
className: C.itemImage,
|
|
62
63
|
style: {
|
|
63
|
-
backgroundImage: `url(${
|
|
64
|
+
backgroundImage: `url(${e.urls.small})`
|
|
64
65
|
}
|
|
65
66
|
}
|
|
66
67
|
),
|
|
67
|
-
/* @__PURE__ */
|
|
68
|
-
|
|
68
|
+
/* @__PURE__ */ t(c, { className: C.imageAuthor, children: /* @__PURE__ */ s(k, { truncate: !0, c: "gray", size: "xs", children: [
|
|
69
|
+
o("changeCover.photoBy"),
|
|
69
70
|
" ",
|
|
70
|
-
/* @__PURE__ */
|
|
71
|
-
|
|
71
|
+
/* @__PURE__ */ t(
|
|
72
|
+
k,
|
|
72
73
|
{
|
|
73
74
|
component: "a",
|
|
74
75
|
inherit: !0,
|
|
75
|
-
href:
|
|
76
|
+
href: e.user.links.html,
|
|
76
77
|
target: "_blank",
|
|
77
78
|
rel: "noopener noreferrer",
|
|
78
79
|
onClick: (S) => S.stopPropagation(),
|
|
79
|
-
children:
|
|
80
|
+
children: e.user.name
|
|
80
81
|
}
|
|
81
82
|
)
|
|
82
83
|
] }) })
|
|
83
|
-
] },
|
|
84
|
-
a?.hasMore && /* @__PURE__ */
|
|
84
|
+
] }, e.id)) }),
|
|
85
|
+
a?.hasMore && /* @__PURE__ */ t(
|
|
85
86
|
_,
|
|
86
87
|
{
|
|
87
88
|
variant: "subtle",
|
|
88
89
|
loading: n,
|
|
89
|
-
onClick: () => h((
|
|
90
|
-
children:
|
|
90
|
+
onClick: () => h((e) => e + 1),
|
|
91
|
+
children: o("loadMore")
|
|
91
92
|
}
|
|
92
93
|
)
|
|
93
94
|
] }),
|
|
94
|
-
!i.length && !n && /* @__PURE__ */
|
|
95
|
+
!i.length && !n && /* @__PURE__ */ t(c, { pb: 16, children: /* @__PURE__ */ t(
|
|
95
96
|
A,
|
|
96
97
|
{
|
|
97
98
|
size: 120,
|
|
98
99
|
illustration: "noImage",
|
|
99
|
-
description:
|
|
100
|
+
description: o("changeCover.noResult"),
|
|
100
101
|
titleProps: { size: "xs", c: "dimmed" }
|
|
101
102
|
}
|
|
102
103
|
) }),
|
|
103
|
-
!i.length && n && /* @__PURE__ */
|
|
104
|
+
!i.length && n && /* @__PURE__ */ t(F, {})
|
|
104
105
|
] })
|
|
105
106
|
] });
|
|
106
107
|
};
|
|
107
108
|
export {
|
|
108
|
-
|
|
109
|
+
W as FilePickerUnsplash
|
|
109
110
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FilePickerUpload.d.ts","sourceRoot":"","sources":["../../../src/components/FilePicker/FilePickerUpload.tsx"],"names":[],"mappings":"AAMA,OAAO,EAEL,aAAa,EAEb,YAAY,EAEb,MAAM,mBAAmB,CAAC;AAK3B,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"FilePickerUpload.d.ts","sourceRoot":"","sources":["../../../src/components/FilePicker/FilePickerUpload.tsx"],"names":[],"mappings":"AAMA,OAAO,EAEL,aAAa,EAEb,YAAY,EAEb,MAAM,mBAAmB,CAAC;AAK3B,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAEnC,OAAO,8BAA8B,CAAC;AAEtC,eAAO,MAAM,gBAAgB,GAAI,+CAK9B;IACD,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB,SAAS,EAAE,OAAO,CAAC;IACnB,aAAa,CAAC,EAAE,IAAI,CAAC,aAAa,EAAE,QAAQ,CAAC,CAAC;IAC9C,QAAQ,EAAE,CAAC,KAAK,EAAE,YAAY,EAAE,KAAK,IAAI,CAAC;CAC3C,4CAqGA,CAAC"}
|
|
@@ -1,28 +1,29 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { useCallback as
|
|
3
|
-
import { useTranslation as
|
|
1
|
+
import { jsx as n, jsxs as f } from "react/jsx-runtime";
|
|
2
|
+
import { useCallback as d } from "react";
|
|
3
|
+
import { useTranslation as k } from "react-i18next";
|
|
4
4
|
import { Image02Icon as v } from "@hugeicons/core-free-icons";
|
|
5
|
-
import { HugeiconsIcon as
|
|
6
|
-
import { Stack as
|
|
7
|
-
import { Dropzone as
|
|
5
|
+
import { HugeiconsIcon as E } from "@hugeicons/react";
|
|
6
|
+
import { Stack as p, Text as x } from "@mantine/core";
|
|
7
|
+
import { Dropzone as I, IMAGE_MIME_TYPE as T } from "@mantine/dropzone";
|
|
8
8
|
import { showNotification as h } from "@mantine/notifications";
|
|
9
9
|
import { getMaxUploadSize as g } from "../../config/envConfig.js";
|
|
10
|
-
import { showErrorNotification as
|
|
11
|
-
import b from "./FilePicker.module.css.js";
|
|
10
|
+
import { showErrorNotification as b } from "../../helpers/showNotifications.js";
|
|
12
11
|
import "@mantine/dropzone/styles.css";
|
|
13
|
-
const
|
|
14
|
-
type:
|
|
12
|
+
const C = ({
|
|
13
|
+
type: s = "image",
|
|
15
14
|
uploading: u,
|
|
16
15
|
dropZoneProps: i,
|
|
17
|
-
onUpload:
|
|
16
|
+
onUpload: a
|
|
18
17
|
}) => {
|
|
19
|
-
const { t: e } =
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
18
|
+
const { t: e } = k("ui"), l = i?.maxSize != null ? Math.round(i.maxSize / (1024 * 1024)) : Math.round((g() ?? 5 * 1024 * 1024) / (1024 * 1024)), z = `filePicker.dropFileHere.${s}`, c = `filePicker.description.${s}`, F = e(z, {
|
|
19
|
+
defaultValue: e("dropFileHere")
|
|
20
|
+
}), m = (() => {
|
|
21
|
+
const r = e(c, { maxSize: l });
|
|
22
|
+
return r !== c ? r : null;
|
|
23
|
+
})(), M = d(
|
|
23
24
|
(r) => {
|
|
24
25
|
if (r.filter(
|
|
25
|
-
(
|
|
26
|
+
(o) => o.errors.some((t) => t.code === "file-invalid-type")
|
|
26
27
|
).length > 0) {
|
|
27
28
|
h({
|
|
28
29
|
color: "blue",
|
|
@@ -30,15 +31,15 @@ const Y = ({
|
|
|
30
31
|
});
|
|
31
32
|
return;
|
|
32
33
|
}
|
|
33
|
-
if (r.some((
|
|
34
|
-
|
|
34
|
+
if (r.some((o) => o.errors.some((t) => t.code === "file-too-large"))) {
|
|
35
|
+
b({
|
|
35
36
|
title: e("errorMessage"),
|
|
36
37
|
message: e("filePicker.errors.shouldNotExceed", { maxSize: l })
|
|
37
38
|
});
|
|
38
39
|
return;
|
|
39
40
|
}
|
|
40
41
|
if (r.filter(
|
|
41
|
-
(
|
|
42
|
+
(o) => o.errors.some((t) => t.code === "too-many-files")
|
|
42
43
|
).length > 0) {
|
|
43
44
|
h({
|
|
44
45
|
color: "blue",
|
|
@@ -48,22 +49,21 @@ const Y = ({
|
|
|
48
49
|
}
|
|
49
50
|
},
|
|
50
51
|
[e, l]
|
|
51
|
-
),
|
|
52
|
-
return /* @__PURE__ */
|
|
53
|
-
|
|
52
|
+
), S = d(a, [a]), y = i?.maxSize ?? g() ?? 5 * 1024 * 1024;
|
|
53
|
+
return /* @__PURE__ */ n(
|
|
54
|
+
I,
|
|
54
55
|
{
|
|
55
56
|
loading: u,
|
|
56
|
-
onDrop:
|
|
57
|
-
onReject:
|
|
57
|
+
onDrop: S,
|
|
58
|
+
onReject: M,
|
|
58
59
|
maxFiles: i?.maxFiles || 1,
|
|
59
|
-
maxSize:
|
|
60
|
-
accept:
|
|
60
|
+
maxSize: y,
|
|
61
|
+
accept: T,
|
|
61
62
|
px: 60,
|
|
62
63
|
py: "xl",
|
|
63
|
-
className: `${b.pickerDropZone}`,
|
|
64
64
|
...i || {},
|
|
65
|
-
children: /* @__PURE__ */
|
|
66
|
-
|
|
65
|
+
children: /* @__PURE__ */ f(
|
|
66
|
+
p,
|
|
67
67
|
{
|
|
68
68
|
justify: "center",
|
|
69
69
|
gap: "var(--mantine-font-size-xs",
|
|
@@ -71,33 +71,17 @@ const Y = ({
|
|
|
71
71
|
mih: 89,
|
|
72
72
|
style: { pointerEvents: "none" },
|
|
73
73
|
children: [
|
|
74
|
-
/* @__PURE__ */
|
|
75
|
-
|
|
74
|
+
/* @__PURE__ */ n(
|
|
75
|
+
E,
|
|
76
76
|
{
|
|
77
77
|
size: 32,
|
|
78
78
|
color: "var(--mantine-color-bright)",
|
|
79
79
|
icon: v
|
|
80
80
|
}
|
|
81
81
|
),
|
|
82
|
-
/* @__PURE__ */
|
|
83
|
-
/* @__PURE__ */
|
|
84
|
-
|
|
85
|
-
{
|
|
86
|
-
ns: "ui",
|
|
87
|
-
i18nKey: y,
|
|
88
|
-
components: {
|
|
89
|
-
choose: /* @__PURE__ */ o(
|
|
90
|
-
s,
|
|
91
|
-
{
|
|
92
|
-
component: "span",
|
|
93
|
-
td: "underline",
|
|
94
|
-
c: "var(--primary-color-text, var(--mantine-primary-color-filled))"
|
|
95
|
-
}
|
|
96
|
-
)
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
) }),
|
|
100
|
-
f && /* @__PURE__ */ o(s, { fz: "xs", fw: 400, lh: "140%", c: "dimmed", ta: "center", children: f })
|
|
82
|
+
/* @__PURE__ */ f(p, { gap: 8, align: "center", children: [
|
|
83
|
+
/* @__PURE__ */ n(x, { fw: 500, fz: "sm", c: "bright", lh: "sm", ta: "center", children: F }),
|
|
84
|
+
m && /* @__PURE__ */ n(x, { fz: "xs", fw: 400, lh: "140%", c: "dimmed", ta: "center", children: m })
|
|
101
85
|
] })
|
|
102
86
|
]
|
|
103
87
|
}
|
|
@@ -106,5 +90,5 @@ const Y = ({
|
|
|
106
90
|
);
|
|
107
91
|
};
|
|
108
92
|
export {
|
|
109
|
-
|
|
93
|
+
C as FilePickerUpload
|
|
110
94
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/FilePicker/index.tsx"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/FilePicker/index.tsx"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const t = "
|
|
1
|
+
const t = "_themeProvider_1lm79_1", o = "_root_1lm79_7", e = "_container_1lm79_36", n = "_media_1lm79_42", _ = "_background_1lm79_46", s = "_stepRoot_1lm79_59", c = "_content_1lm79_104", l = "_mediaInner_1lm79_169", i = "_stepTitle_1lm79_332", a = "_stepDescription_1lm79_355", r = "_stepIndicator_1lm79_369", d = "_stepIndicatorIcon_1lm79_386", m = "_focusBox_1lm79_405", p = "_dropzone_1lm79_414", u = "_allSlidesLayout_1lm79_432", I = "_allSlidesLayoutStep_1lm79_438", S = {
|
|
2
2
|
themeProvider: t,
|
|
3
3
|
root: o,
|
|
4
4
|
container: e,
|
|
@@ -6,32 +6,32 @@ const t = "_themeProvider_1fk4v_1", o = "_root_1fk4v_13", e = "_container_1fk4v_
|
|
|
6
6
|
background: _,
|
|
7
7
|
stepRoot: s,
|
|
8
8
|
content: c,
|
|
9
|
-
mediaInner:
|
|
10
|
-
stepTitle:
|
|
11
|
-
stepDescription:
|
|
12
|
-
stepIndicator:
|
|
13
|
-
stepIndicatorIcon:
|
|
14
|
-
focusBox:
|
|
15
|
-
dropzone:
|
|
16
|
-
allSlidesLayout:
|
|
17
|
-
allSlidesLayoutStep:
|
|
9
|
+
mediaInner: l,
|
|
10
|
+
stepTitle: i,
|
|
11
|
+
stepDescription: a,
|
|
12
|
+
stepIndicator: r,
|
|
13
|
+
stepIndicatorIcon: d,
|
|
14
|
+
focusBox: m,
|
|
15
|
+
dropzone: p,
|
|
16
|
+
allSlidesLayout: u,
|
|
17
|
+
allSlidesLayoutStep: I
|
|
18
18
|
};
|
|
19
19
|
export {
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
u as allSlidesLayout,
|
|
21
|
+
I as allSlidesLayoutStep,
|
|
22
22
|
_ as background,
|
|
23
23
|
e as container,
|
|
24
24
|
c as content,
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
25
|
+
S as default,
|
|
26
|
+
p as dropzone,
|
|
27
|
+
m as focusBox,
|
|
28
28
|
n as media,
|
|
29
|
-
|
|
29
|
+
l as mediaInner,
|
|
30
30
|
o as root,
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
31
|
+
a as stepDescription,
|
|
32
|
+
r as stepIndicator,
|
|
33
|
+
d as stepIndicatorIcon,
|
|
34
34
|
s as stepRoot,
|
|
35
|
-
|
|
35
|
+
i as stepTitle,
|
|
36
36
|
t as themeProvider
|
|
37
37
|
};
|
package/dist/components/FormViewer/components/fields/SelectableCard/SelectableCard.module.css.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
const o = "
|
|
1
|
+
const o = "_card_aspur_1", c = "_image_aspur_48", s = "_controls_aspur_60", a = "_radio_aspur_82", r = "_checkbox_aspur_87", _ = {
|
|
2
2
|
card: o,
|
|
3
3
|
image: c,
|
|
4
|
-
controls:
|
|
5
|
-
radio:
|
|
6
|
-
checkbox:
|
|
4
|
+
controls: s,
|
|
5
|
+
radio: a,
|
|
6
|
+
checkbox: r
|
|
7
7
|
};
|
|
8
8
|
export {
|
|
9
9
|
o as card,
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
r as checkbox,
|
|
11
|
+
s as controls,
|
|
12
|
+
_ as default,
|
|
13
13
|
c as image,
|
|
14
|
-
|
|
14
|
+
a as radio
|
|
15
15
|
};
|