@layers-app/shared 0.2.8-test → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api/giphy/slice.d.ts +1 -1
- package/dist/api/giphy/slice.d.ts.map +1 -1
- package/dist/api/unsplash/slice.d.ts +1 -1
- package/dist/api/unsplash/slice.d.ts.map +1 -1
- package/dist/assets/layers-logo-icon.svg2.js +4 -0
- package/dist/components/AliasTextInput/AliasTextInput.d.ts.map +1 -1
- package/dist/components/AliasTextInput/AliasTextInput.js +8 -7
- package/dist/components/AppContainer/AppContainer.module.css.js +1 -1
- package/dist/components/AppContainer/components/menus/HelpMenu/HelpMenu.d.ts.map +1 -1
- package/dist/components/AppContainer/components/menus/HelpMenu/HelpMenu.js +123 -114
- 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/ShakePlayer/ShakaPlayer.module.css.js +4 -4
- package/dist/components/AttachmentsGalleryModal/styles.module.css.js +14 -14
- package/dist/components/AttachmentsPreview/AttachmentsPreview.module.css.js +1 -1
- package/dist/components/BouncingLogo/BouncingLogo.module.css.js +8 -8
- package/dist/components/CollapsibleContainer/CollapsibleContainer.module.css.js +1 -1
- package/dist/components/CommentComposer/CommentComposer.module.css.js +4 -4
- package/dist/components/CommunitiesDialog/index.d.ts.map +1 -1
- package/dist/components/CommunitiesDialog/index.js +47 -46
- package/dist/components/CommunitiesDialog/styles.module.css.js +1 -1
- package/dist/components/Copyright/Copyright.module.css.js +1 -1
- package/dist/components/Copyright/index.d.ts.map +1 -1
- package/dist/components/Copyright/index.js +8 -7
- package/dist/components/CustomKBD/CustomKBD.module.css.js +1 -1
- package/dist/components/EmojiPicker/EmojiPicker.module.css.js +8 -8
- package/dist/components/EntityTitle/EntityTitle.module.css.js +1 -1
- package/dist/components/ErrorPage/components/Error404.d.ts.map +1 -1
- package/dist/components/FeatureProgress/FeatureProgress.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 +236 -247
- package/dist/components/FilePicker/FilePicker.module.css.js +10 -12
- package/dist/components/FilePicker/FilePickerGallery.d.ts.map +1 -1
- package/dist/components/FilePicker/FilePickerGallery.js +33 -59
- package/dist/components/FilePicker/FilePickerGiphy.d.ts +1 -1
- package/dist/components/FilePicker/FilePickerGiphy.d.ts.map +1 -1
- package/dist/components/FilePicker/FilePickerGiphy.js +51 -52
- package/dist/components/FilePicker/FilePickerLink.d.ts.map +1 -1
- package/dist/components/FilePicker/FilePickerLink.js +19 -22
- package/dist/components/FilePicker/FilePickerUnsplash.d.ts +1 -1
- package/dist/components/FilePicker/FilePickerUnsplash.d.ts.map +1 -1
- package/dist/components/FilePicker/FilePickerUnsplash.js +64 -65
- package/dist/components/FilePicker/FilePickerUpload.d.ts.map +1 -1
- package/dist/components/FilePicker/FilePickerUpload.js +35 -51
- package/dist/components/FilePicker/api/giphyApi.d.ts +2 -2
- package/dist/components/FilePicker/api/giphyApi.d.ts.map +1 -1
- package/dist/components/FilePicker/api/giphyApi.js +11 -14
- package/dist/components/FilePicker/api/unsplashApi.d.ts +2 -2
- package/dist/components/FilePicker/api/unsplashApi.d.ts.map +1 -1
- package/dist/components/FilePicker/api/unsplashApi.js +14 -19
- 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/PictureSelectableCard.d.ts.map +1 -1
- package/dist/components/FormViewer/components/fields/SelectableCard/PictureSelectableCard.js +70 -72
- 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 +84 -84
- package/dist/components/FormViewer/helpers/helpers.d.ts +84 -84
- package/dist/components/FormViewer/helpers/steps.d.ts +84 -84
- package/dist/components/FormViewer/helpers/steps.d.ts.map +1 -1
- package/dist/components/FormViewer/helpers/steps.js +22 -21
- package/dist/components/FormViewer/hooks/useActiveControl.d.ts +71 -71
- package/dist/components/FormViewer/hooks/useActiveStep.d.ts +84 -84
- package/dist/components/FormViewer/store/formStore.d.ts +357 -357
- package/dist/components/FormViewer/store/formStore.d.ts.map +1 -1
- package/dist/components/FormViewer/store/formStoreApi.d.ts +178 -178
- package/dist/components/FormViewer/store/selectors.d.ts +23861 -23861
- package/dist/components/FormViewer/types/schemes.d.ts +1139 -1139
- 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/Logotype.d.ts +4 -3
- package/dist/components/Logotype.d.ts.map +1 -1
- package/dist/components/Logotype.js +56 -33
- package/dist/components/MediaLibrary/MediaLibrary.module.css.js +2 -2
- package/dist/components/NavMenu/NavMenu.module.css.js +12 -12
- package/dist/components/NavbarResizer/NavbarResizer.module.css.js +2 -2
- package/dist/components/NotPublicPanel/NotPublicPanel.module.css.js +11 -11
- package/dist/components/Notification/Notification.module.css.js +1 -1
- package/dist/components/OnBoarding/OnBoardingPage.js +35 -35
- 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/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/WorkspaceAvatar/WorkspaceAvatar.js +10 -10
- 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.d.ts +48 -0
- package/dist/config/brand.d.ts.map +1 -0
- package/dist/config/brand.js +69 -0
- package/dist/config/envConfig.d.ts +70 -0
- package/dist/config/envConfig.d.ts.map +1 -0
- package/dist/config/envConfig.js +29 -0
- package/dist/constants.d.ts +1 -1
- package/dist/constants.d.ts.map +1 -1
- package/dist/constants.js +7 -6
- package/dist/helpers/showFeatureFeedback.module.css.js +4 -4
- package/dist/helpers/showNotifications.module.css.js +1 -1
- package/dist/hooks/useDisableWindowScroll.js +3 -3
- package/dist/index.css +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +429 -423
- package/dist/lang/locales/ui_en.json.js +15 -15
- package/dist/lang/locales/ui_es.json.js +13 -13
- package/dist/lang/locales/ui_ru.json.js +12 -12
- package/docs/README.md +499 -499
- package/package.json +75 -75
- package/dist/assets/svg/default_icon.svg.js +0 -4
- 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
- /package/dist/assets/{svg/layers-logo-full.svg.js → layers-logo-full.svg2.js} +0 -0
|
@@ -1,29 +1,24 @@
|
|
|
1
1
|
import { useQuery as i } from "@tanstack/react-query";
|
|
2
|
-
import
|
|
3
|
-
const
|
|
4
|
-
const h = t.query ? "/search/photos" : "/photos",
|
|
5
|
-
|
|
6
|
-
{
|
|
7
|
-
headers: {
|
|
8
|
-
Authorization: `Client-ID ${e || u}`
|
|
9
|
-
}
|
|
10
|
-
}
|
|
2
|
+
import c from "query-string";
|
|
3
|
+
const l = async (t, a, e) => {
|
|
4
|
+
const h = t.query ? "/search/photos" : "/photos", o = await fetch(
|
|
5
|
+
`/v1/media/unsplash${h}?${c.stringify(t)}`
|
|
11
6
|
);
|
|
12
|
-
if (!
|
|
7
|
+
if (!o.ok)
|
|
13
8
|
throw new Error("Failed to fetch Unsplash photos");
|
|
14
|
-
const s = await
|
|
9
|
+
const s = await o.json(), n = s && "results" in s ? s.results : s, r = s && "total_pages" in s ? s.total_pages : 999;
|
|
15
10
|
return {
|
|
16
|
-
items:
|
|
11
|
+
items: e ? [...e.items, ...n] : n,
|
|
17
12
|
page: t.page || 1,
|
|
18
|
-
totalPages:
|
|
19
|
-
hasMore:
|
|
13
|
+
totalPages: r,
|
|
14
|
+
hasMore: r > (t.page || 1)
|
|
20
15
|
};
|
|
21
|
-
},
|
|
16
|
+
}, y = (t, a, e) => i({
|
|
22
17
|
queryKey: ["unsplashPhotos", t],
|
|
23
|
-
queryFn: () =>
|
|
24
|
-
...
|
|
18
|
+
queryFn: () => l(t),
|
|
19
|
+
...e
|
|
25
20
|
});
|
|
26
21
|
export {
|
|
27
|
-
|
|
28
|
-
|
|
22
|
+
l as fetchUnsplashPhotos,
|
|
23
|
+
y as useUnsplashPhotos
|
|
29
24
|
};
|
|
@@ -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/PictureSelectableCard.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PictureSelectableCard.d.ts","sourceRoot":"","sources":["../../../../../../src/components/FormViewer/components/fields/SelectableCard/PictureSelectableCard.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAiB,MAAM,OAAO,CAAC;AAYzD,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAOjD,OAAO,EAAE,wBAAwB,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"PictureSelectableCard.d.ts","sourceRoot":"","sources":["../../../../../../src/components/FormViewer/components/fields/SelectableCard/PictureSelectableCard.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAiB,MAAM,OAAO,CAAC;AAYzD,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAOjD,OAAO,EAAE,wBAAwB,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAM1E,KAAK,0BAA0B,GAAG;IAChC,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,OAAO,GAAG,UAAU,CAAC;IACjC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,QAAQ,CAAC,EAAE,CAAC,CAAC,EAAE,OAAO,CAAC,wBAAwB,CAAC,KAAK,IAAI,CAAC;IAC1D,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,QAAQ,CAAC,EAAE,CACT,KAAK,EAAE,YAAY,EAAE,EACrB,SAAS,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,KAChC,IAAI,CAAC;CACX,CAAC;AAEF,eAAO,MAAM,qBAAqB,+IAa7B,0BAA0B,6CAsI9B,CAAC;AAeF,eAAO,MAAM,uBAAuB,GAAI,uDAMrC,iBAAiB,CAAC;IACnB,QAAQ,CAAC,EAAE,CAAC,CAAC,EAAE,OAAO,CAAC,wBAAwB,CAAC,KAAK,IAAI,CAAC;IAC1D,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,CACT,KAAK,EAAE,YAAY,EAAE,EACrB,SAAS,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,KAChC,IAAI,CAAC;CACX,CAAC,4CAoBD,CAAC"}
|
package/dist/components/FormViewer/components/fields/SelectableCard/PictureSelectableCard.js
CHANGED
|
@@ -1,47 +1,47 @@
|
|
|
1
|
-
import { jsx as o, jsxs as
|
|
2
|
-
import { memo as
|
|
3
|
-
import { useMantineTheme as
|
|
4
|
-
import { IconTrash as
|
|
5
|
-
import { useAsyncStatus as
|
|
6
|
-
import { combineClasses as
|
|
1
|
+
import { jsx as o, jsxs as p } from "react/jsx-runtime";
|
|
2
|
+
import { memo as x, useMemo as _ } from "react";
|
|
3
|
+
import { useMantineTheme as k, parseThemeColor as z, Radio as N, alpha as h, Checkbox as P, Flex as A, ActionIcon as D } from "@mantine/core";
|
|
4
|
+
import { IconTrash as H, IconPhoto as B } from "@tabler/icons-react";
|
|
5
|
+
import { useAsyncStatus as w } from "../../../../../hooks/useAsyncStatus.js";
|
|
6
|
+
import { combineClasses as I, STATIC_CLASSES as s } from "../../../helpers/staticClasses.js";
|
|
7
7
|
import { useFormViewerStore as K } from "../../../store/formStore.js";
|
|
8
|
-
import { EditableContent as
|
|
8
|
+
import { EditableContent as M } from "../EditableContent/EditableContent.js";
|
|
9
9
|
import u from "./SelectableCard.module.css.js";
|
|
10
|
-
import { FilePicker as
|
|
11
|
-
const
|
|
10
|
+
import { FilePicker as X } from "../../../../FilePicker/FilePicker.js";
|
|
11
|
+
const Y = x(
|
|
12
12
|
({
|
|
13
13
|
label: i,
|
|
14
14
|
active: r,
|
|
15
|
-
disabled:
|
|
15
|
+
disabled: c,
|
|
16
16
|
hasInput: C,
|
|
17
17
|
image: t,
|
|
18
18
|
onClick: E,
|
|
19
|
-
inputType:
|
|
19
|
+
inputType: n,
|
|
20
20
|
onUpdate: e,
|
|
21
21
|
onRemove: m,
|
|
22
|
-
theme:
|
|
23
|
-
onUpload:
|
|
22
|
+
theme: a,
|
|
23
|
+
onUpload: S
|
|
24
24
|
}) => {
|
|
25
|
-
const { useStore:
|
|
26
|
-
color:
|
|
27
|
-
theme:
|
|
28
|
-
}),
|
|
29
|
-
|
|
25
|
+
const { useStore: f } = K(), y = f((d) => d.editing), T = k(), l = z({
|
|
26
|
+
color: a?.primaryColor || "",
|
|
27
|
+
theme: T
|
|
28
|
+
}), b = _(() => n === "radio" ? /* @__PURE__ */ o(
|
|
29
|
+
N,
|
|
30
30
|
{
|
|
31
31
|
style: {
|
|
32
|
-
"--color":
|
|
33
|
-
"--color-shadow":
|
|
32
|
+
"--color": l.value,
|
|
33
|
+
"--color-shadow": h(l.value, 0.5)
|
|
34
34
|
},
|
|
35
35
|
classNames: {
|
|
36
|
-
radio:
|
|
36
|
+
radio: I(
|
|
37
37
|
u.radio,
|
|
38
|
-
|
|
39
|
-
r ?
|
|
38
|
+
s.RADIO,
|
|
39
|
+
r ? s.RADIO_SELECTED : ""
|
|
40
40
|
)
|
|
41
41
|
},
|
|
42
|
-
disabled:
|
|
43
|
-
size:
|
|
44
|
-
color:
|
|
42
|
+
disabled: c,
|
|
43
|
+
size: a?.size,
|
|
44
|
+
color: a?.primaryColor,
|
|
45
45
|
checked: r,
|
|
46
46
|
readOnly: !0,
|
|
47
47
|
radius: "xl"
|
|
@@ -51,64 +51,64 @@ const X = "a2SNktIFgNCvXITBZgpup1T8mtSdJIM6TIZlndbRuRg", F = "1kKxu8nbV5rsb4ieGG
|
|
|
51
51
|
{
|
|
52
52
|
styles: {
|
|
53
53
|
input: {
|
|
54
|
-
"--color":
|
|
55
|
-
"--color-shadow":
|
|
54
|
+
"--color": l.value,
|
|
55
|
+
"--color-shadow": h(l.value, 0.5)
|
|
56
56
|
}
|
|
57
57
|
},
|
|
58
58
|
classNames: {
|
|
59
|
-
input:
|
|
59
|
+
input: I(
|
|
60
60
|
u.checkbox,
|
|
61
|
-
|
|
62
|
-
r ?
|
|
61
|
+
s.CHECKBOX,
|
|
62
|
+
r ? s.CHECKBOX_SELECTED : ""
|
|
63
63
|
)
|
|
64
64
|
},
|
|
65
|
-
disabled:
|
|
66
|
-
size:
|
|
67
|
-
color:
|
|
65
|
+
disabled: c,
|
|
66
|
+
size: a?.size,
|
|
67
|
+
color: a?.primaryColor,
|
|
68
68
|
checked: r,
|
|
69
69
|
readOnly: !0
|
|
70
70
|
}
|
|
71
71
|
), [
|
|
72
72
|
r,
|
|
73
|
-
|
|
74
|
-
n,
|
|
73
|
+
l.value,
|
|
75
74
|
c,
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
"--
|
|
81
|
-
"--
|
|
82
|
-
|
|
75
|
+
n,
|
|
76
|
+
a?.primaryColor,
|
|
77
|
+
a?.size
|
|
78
|
+
]), v = {
|
|
79
|
+
"--text-color": l.value,
|
|
80
|
+
"--border-color": l.value,
|
|
81
|
+
"--bg-color": h(l.value, 0.05)
|
|
82
|
+
}, O = e || m, L = I(
|
|
83
83
|
u.card,
|
|
84
|
-
|
|
85
|
-
r ?
|
|
84
|
+
n === "radio" ? s.MULTIPLE_CHOICE_OPTION : s.CHECKBOX,
|
|
85
|
+
r ? n === "radio" ? s.MULTIPLE_CHOICE_OPTION_SELECTED : s.CHECKBOX_SELECTED : ""
|
|
86
86
|
);
|
|
87
|
-
return /* @__PURE__ */
|
|
87
|
+
return /* @__PURE__ */ p(
|
|
88
88
|
"div",
|
|
89
89
|
{
|
|
90
|
-
style:
|
|
91
|
-
className:
|
|
90
|
+
style: v,
|
|
91
|
+
className: L,
|
|
92
92
|
"data-active": r,
|
|
93
|
-
"data-disabled":
|
|
94
|
-
onClick:
|
|
95
|
-
"data-radius":
|
|
93
|
+
"data-disabled": c,
|
|
94
|
+
onClick: O ? void 0 : E,
|
|
95
|
+
"data-radius": a?.borderRadius,
|
|
96
96
|
children: [
|
|
97
|
-
|
|
98
|
-
|
|
97
|
+
y ? /* @__PURE__ */ o(
|
|
98
|
+
F,
|
|
99
99
|
{
|
|
100
100
|
hasImage: !!t,
|
|
101
101
|
onUpdate: (d) => e?.({ image: d.image }),
|
|
102
102
|
onRemove: () => e?.({ image: void 0 }),
|
|
103
|
-
onUpload:
|
|
104
|
-
children: /* @__PURE__ */ o(
|
|
103
|
+
onUpload: S,
|
|
104
|
+
children: /* @__PURE__ */ o(g, { image: t })
|
|
105
105
|
}
|
|
106
|
-
) : /* @__PURE__ */ o(
|
|
107
|
-
/* @__PURE__ */
|
|
108
|
-
C &&
|
|
109
|
-
|
|
106
|
+
) : /* @__PURE__ */ o(g, { image: t }),
|
|
107
|
+
/* @__PURE__ */ p("div", { className: u.controls, children: [
|
|
108
|
+
C && b,
|
|
109
|
+
O ? /* @__PURE__ */ p(A, { miw: 0, flex: 1, children: [
|
|
110
110
|
e && /* @__PURE__ */ o(
|
|
111
|
-
|
|
111
|
+
M,
|
|
112
112
|
{
|
|
113
113
|
value: i,
|
|
114
114
|
placeholder: "Option",
|
|
@@ -117,14 +117,14 @@ const X = "a2SNktIFgNCvXITBZgpup1T8mtSdJIM6TIZlndbRuRg", F = "1kKxu8nbV5rsb4ieGG
|
|
|
117
117
|
}
|
|
118
118
|
}
|
|
119
119
|
),
|
|
120
|
-
m && /* @__PURE__ */ o(D, { color: "red", variant: "subtle", onClick: m, children: /* @__PURE__ */ o(
|
|
120
|
+
m && /* @__PURE__ */ o(D, { color: "red", variant: "subtle", onClick: m, children: /* @__PURE__ */ o(H, { size: "1em" }) })
|
|
121
121
|
] }) : i
|
|
122
122
|
] })
|
|
123
123
|
]
|
|
124
124
|
}
|
|
125
125
|
);
|
|
126
126
|
}
|
|
127
|
-
),
|
|
127
|
+
), g = ({ image: i }) => /* @__PURE__ */ o(
|
|
128
128
|
"div",
|
|
129
129
|
{
|
|
130
130
|
className: u.image,
|
|
@@ -133,31 +133,29 @@ const X = "a2SNktIFgNCvXITBZgpup1T8mtSdJIM6TIZlndbRuRg", F = "1kKxu8nbV5rsb4ieGG
|
|
|
133
133
|
},
|
|
134
134
|
children: !i && /* @__PURE__ */ o(B, { size: 32, color: "var(--primary-color)" })
|
|
135
135
|
}
|
|
136
|
-
),
|
|
136
|
+
), F = ({
|
|
137
137
|
children: i,
|
|
138
138
|
onUpdate: r,
|
|
139
|
-
onRemove:
|
|
139
|
+
onRemove: c,
|
|
140
140
|
hasImage: C,
|
|
141
141
|
onUpload: t
|
|
142
142
|
}) => {
|
|
143
|
-
const { isLoading: E, onSubmit:
|
|
143
|
+
const { isLoading: E, onSubmit: n } = w();
|
|
144
144
|
return /* @__PURE__ */ o(
|
|
145
|
-
|
|
145
|
+
X,
|
|
146
146
|
{
|
|
147
147
|
hasImage: C,
|
|
148
148
|
onChange: (e) => r?.({
|
|
149
149
|
image: e
|
|
150
150
|
}),
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
onRemove: n,
|
|
154
|
-
onUpload: (e, m) => c(async () => t?.(e, m)),
|
|
151
|
+
onRemove: c,
|
|
152
|
+
onUpload: (e, m) => n(async () => t?.(e, m)),
|
|
155
153
|
uploading: E,
|
|
156
154
|
children: i
|
|
157
155
|
}
|
|
158
156
|
);
|
|
159
157
|
};
|
|
160
158
|
export {
|
|
161
|
-
|
|
162
|
-
|
|
159
|
+
Y as PictureSelectableCard,
|
|
160
|
+
F as UploadOptionImageButton
|
|
163
161
|
};
|
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
|
};
|