@alphakits/ui 2.5.18 → 2.6.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/empty-page/component.js +20 -19
- package/dist/image/index.d.ts +1 -0
- package/dist/image/index.js +11 -4
- package/dist/image/use-image-render-component.js +32 -46
- package/dist/image/utils.d.ts +10 -0
- package/dist/image/utils.js +27 -4
- package/dist/image-gallery/component.js +41 -33
- package/dist/index.js +286 -279
- package/dist/page-container/component.js +16 -8
- package/dist/settings-hint/component.js +24 -16
- package/dist/welcome-layout/component.js +11 -10
- package/package.json +1 -1
|
@@ -1,28 +1,29 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import
|
|
3
|
-
import { Button as
|
|
1
|
+
import { jsxs as c, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import h from "classnames";
|
|
3
|
+
import { Button as s } from "../button/component.js";
|
|
4
4
|
import { FlexColumns as y } from "../flex-columns/component.js";
|
|
5
|
-
import { Typography as
|
|
6
|
-
import
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
5
|
+
import { Typography as e } from "../typography/component.js";
|
|
6
|
+
import { getImageSrc as f } from "../image/utils.js";
|
|
7
|
+
import m from "./index.module.css.js";
|
|
8
|
+
const C = ({
|
|
9
|
+
code: l,
|
|
10
|
+
image: i,
|
|
10
11
|
overlay: p,
|
|
11
12
|
title: a,
|
|
12
|
-
subtitle:
|
|
13
|
+
subtitle: t,
|
|
13
14
|
buttonText: n,
|
|
14
15
|
view: d = "primary",
|
|
15
|
-
size:
|
|
16
|
-
...
|
|
17
|
-
}) => /* @__PURE__ */
|
|
18
|
-
|
|
19
|
-
/* @__PURE__ */
|
|
20
|
-
|
|
21
|
-
/* @__PURE__ */ r(
|
|
22
|
-
|
|
16
|
+
size: g = "m",
|
|
17
|
+
...o
|
|
18
|
+
}) => /* @__PURE__ */ c("div", { className: h(m.wrapper, p && m.overlay), children: [
|
|
19
|
+
i && /* @__PURE__ */ r("img", { alt: a, className: m.image, src: f(i, "auto") ?? i }),
|
|
20
|
+
/* @__PURE__ */ c(y, { columns: 1, gr: 8, className: m.content, children: [
|
|
21
|
+
l && /* @__PURE__ */ r(e.Title, { view: "large", weight: "bold", color: "primary", tag: "div", children: l }),
|
|
22
|
+
/* @__PURE__ */ r(e.Title, { view: "small", weight: "bold", color: "primary", tag: "div", children: a }),
|
|
23
|
+
t && /* @__PURE__ */ r(e.Text, { color: "primary", weight: "medium", view: "primary-medium", children: t })
|
|
23
24
|
] }),
|
|
24
|
-
(!!
|
|
25
|
+
(!!o?.onClick || o?.href) && /* @__PURE__ */ r(s, { view: d, size: g, ...o, children: n })
|
|
25
26
|
] });
|
|
26
27
|
export {
|
|
27
|
-
|
|
28
|
+
C as EmptyPage
|
|
28
29
|
};
|
package/dist/image/index.d.ts
CHANGED
package/dist/image/index.js
CHANGED
|
@@ -1,6 +1,13 @@
|
|
|
1
|
-
import { Image as
|
|
2
|
-
import { textSizes as
|
|
1
|
+
import { Image as a } from "./component.js";
|
|
2
|
+
import { textSizes as o } from "./types.js";
|
|
3
|
+
import { GALLERY_IMAGE_SIZE as r, getImageCdnHost as i, getImageSrc as I, imageSizes as s, isEscapenavigatorImage as p, isRuImageRegion as x } from "./utils.js";
|
|
3
4
|
export {
|
|
4
|
-
r as
|
|
5
|
-
|
|
5
|
+
r as GALLERY_IMAGE_SIZE,
|
|
6
|
+
a as Image,
|
|
7
|
+
i as getImageCdnHost,
|
|
8
|
+
I as getImageSrc,
|
|
9
|
+
s as imageSizes,
|
|
10
|
+
p as isEscapenavigatorImage,
|
|
11
|
+
x as isRuImageRegion,
|
|
12
|
+
o as textSizes
|
|
6
13
|
};
|
|
@@ -1,71 +1,57 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import { Spinner as
|
|
1
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import l from "@alphakits/icons/dist/PhotoM";
|
|
3
|
+
import u from "@alphakits/icons/dist/PhotoS";
|
|
4
|
+
import w from "classnames";
|
|
5
|
+
import h, { useRef as x, useEffect as S } from "react";
|
|
6
|
+
import { Spinner as T } from "../spinner/component.js";
|
|
7
7
|
import { Typography as f } from "../typography/component.js";
|
|
8
|
-
import
|
|
8
|
+
import o from "./index.module.css.js";
|
|
9
9
|
import { textSizes as v } from "./types.js";
|
|
10
|
-
import { getCharsFromText as
|
|
11
|
-
const
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
m: "300x300",
|
|
15
|
-
l: "300x300",
|
|
16
|
-
xl: "300x300",
|
|
17
|
-
xxl: "640x640",
|
|
18
|
-
auto: "640x640"
|
|
19
|
-
}, C = ({ src: t, size: e }) => {
|
|
20
|
-
if (t?.includes("escapenavigator-images.s3") && e) {
|
|
21
|
-
const s = t.split("amazonaws.com/")[1];
|
|
22
|
-
return `https://d2z3luly8bezbw.cloudfront.net/fit-in/${y[e]}/${s}`;
|
|
23
|
-
}
|
|
24
|
-
return t;
|
|
25
|
-
}, F = ({
|
|
26
|
-
src: t = "",
|
|
27
|
-
size: e,
|
|
10
|
+
import { getImageSrc as C, getCharsFromText as N } from "./utils.js";
|
|
11
|
+
const L = ({
|
|
12
|
+
src: d = "",
|
|
13
|
+
size: n,
|
|
28
14
|
color: s,
|
|
29
|
-
alt:
|
|
30
|
-
text:
|
|
31
|
-
icon:
|
|
15
|
+
alt: g,
|
|
16
|
+
text: a,
|
|
17
|
+
icon: c
|
|
32
18
|
}) => {
|
|
33
|
-
const [
|
|
19
|
+
const [i, t] = h.useState("loading"), p = x(0), r = C(d, n);
|
|
34
20
|
return S(() => {
|
|
35
|
-
if (!
|
|
36
|
-
|
|
21
|
+
if (!r) {
|
|
22
|
+
t("error");
|
|
37
23
|
return;
|
|
38
24
|
}
|
|
39
|
-
p.current = Date.now(),
|
|
40
|
-
const
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
},
|
|
25
|
+
p.current = Date.now(), t("loading");
|
|
26
|
+
const m = new Image();
|
|
27
|
+
m.src = r, m.onload = () => {
|
|
28
|
+
t("loaded");
|
|
29
|
+
}, m.onerror = () => {
|
|
44
30
|
Date.now() - p.current < 2e3 ? setTimeout(() => {
|
|
45
|
-
|
|
46
|
-
}, 500) :
|
|
31
|
+
m.src = r;
|
|
32
|
+
}, 500) : t("error");
|
|
47
33
|
};
|
|
48
|
-
}, [
|
|
34
|
+
}, [r]), c || (i === "loading" ? /* @__PURE__ */ e(T, { className: o.spinner, size: "s", view: "dark" }) : i === "error" && a ? /* @__PURE__ */ e(
|
|
49
35
|
f.Text,
|
|
50
36
|
{
|
|
51
|
-
className:
|
|
37
|
+
className: w(o.textContent, o[v[n]]),
|
|
52
38
|
view: "caps",
|
|
53
39
|
color: s,
|
|
54
40
|
weight: "bold",
|
|
55
|
-
children:
|
|
41
|
+
children: N(a.toUpperCase())
|
|
56
42
|
}
|
|
57
|
-
) :
|
|
43
|
+
) : i === "error" ? /* @__PURE__ */ e(
|
|
58
44
|
f.Text,
|
|
59
45
|
{
|
|
60
|
-
className:
|
|
46
|
+
className: o.broken,
|
|
61
47
|
tag: "div",
|
|
62
48
|
view: "caps",
|
|
63
49
|
color: s,
|
|
64
50
|
weight: "bold",
|
|
65
|
-
children:
|
|
51
|
+
children: n === "xs" ? /* @__PURE__ */ e(u, {}) : /* @__PURE__ */ e(l, {})
|
|
66
52
|
}
|
|
67
|
-
) : /* @__PURE__ */
|
|
53
|
+
) : /* @__PURE__ */ e("img", { className: o.image, src: r, alt: g }));
|
|
68
54
|
};
|
|
69
55
|
export {
|
|
70
|
-
|
|
56
|
+
L as useImageRenderComponent
|
|
71
57
|
};
|
package/dist/image/utils.d.ts
CHANGED
|
@@ -1 +1,11 @@
|
|
|
1
|
+
import { ComponentSizes } from './types';
|
|
1
2
|
export declare const getCharsFromText: (textFromProps?: string) => string;
|
|
3
|
+
export declare const IMAGE_CDN_HOST_COM = "d2z3luly8bezbw.cloudfront.net";
|
|
4
|
+
export declare const IMAGE_CDN_HOST_RU = "picture.escapenavigator.ru";
|
|
5
|
+
export declare const imageSizes: Record<ComponentSizes, string>;
|
|
6
|
+
export declare const GALLERY_IMAGE_SIZE = "1280x1280";
|
|
7
|
+
export declare const isRuImageRegion: () => boolean;
|
|
8
|
+
export declare const getImageCdnHost: () => string;
|
|
9
|
+
export declare const extractStoragePath: (src: string) => string | null;
|
|
10
|
+
export declare const isEscapenavigatorImage: (src: string) => boolean;
|
|
11
|
+
export declare const getImageSrc: (src?: string, size?: ComponentSizes | string) => string | undefined;
|
package/dist/image/utils.js
CHANGED
|
@@ -1,7 +1,30 @@
|
|
|
1
|
-
const
|
|
2
|
-
const
|
|
3
|
-
return
|
|
1
|
+
const g = (t = "NN") => {
|
|
2
|
+
const n = t.split(" ");
|
|
3
|
+
return n.length >= 2 ? n[0][0] + n[1][0] : n[0][0] + n[0][1];
|
|
4
|
+
}, s = "d2z3luly8bezbw.cloudfront.net", a = "picture.escapenavigator.ru", i = "escapenavigator-images.s3", r = [s, a], c = {
|
|
5
|
+
xs: "300x300",
|
|
6
|
+
s: "300x300",
|
|
7
|
+
m: "300x300",
|
|
8
|
+
l: "300x300",
|
|
9
|
+
xl: "300x300",
|
|
10
|
+
xxl: "640x640",
|
|
11
|
+
auto: "640x640"
|
|
12
|
+
}, _ = "1280x1280", u = () => process.env.REACT_APP_REGION === "ru", l = () => u() ? a : s, m = (t) => t.includes("amazonaws.com/") ? t.split("amazonaws.com/")[1]?.split("?")[0] ?? null : t.match(/fit-in\/\d+x\d+\/(.+?)(?:\?|$)/)?.[1] ?? null, x = (t) => t.includes(i) || r.some((n) => t.includes(n)), d = (t, n) => {
|
|
13
|
+
if (!t || t.startsWith("data:")) return t;
|
|
14
|
+
const e = typeof n == "string" ? n : n ? c[n] : void 0;
|
|
15
|
+
if (!e || !x(t)) return t;
|
|
16
|
+
const o = m(t);
|
|
17
|
+
return o ? `https://${l()}/fit-in/${e}/${o}` : t;
|
|
4
18
|
};
|
|
5
19
|
export {
|
|
6
|
-
|
|
20
|
+
_ as GALLERY_IMAGE_SIZE,
|
|
21
|
+
s as IMAGE_CDN_HOST_COM,
|
|
22
|
+
a as IMAGE_CDN_HOST_RU,
|
|
23
|
+
m as extractStoragePath,
|
|
24
|
+
g as getCharsFromText,
|
|
25
|
+
l as getImageCdnHost,
|
|
26
|
+
d as getImageSrc,
|
|
27
|
+
c as imageSizes,
|
|
28
|
+
x as isEscapenavigatorImage,
|
|
29
|
+
u as isRuImageRegion
|
|
7
30
|
};
|
|
@@ -1,60 +1,61 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
1
|
+
import { jsx as a, jsxs as b } from "react/jsx-runtime";
|
|
2
|
+
import x from "@alphakits/icons/dist/ChevronBackM";
|
|
3
|
+
import C from "@alphakits/icons/dist/ChevronForwardM";
|
|
4
|
+
import w from "@alphakits/icons/dist/CloseM";
|
|
5
5
|
import o from "classnames";
|
|
6
|
-
import { useState as
|
|
7
|
-
import { Portal as
|
|
6
|
+
import { useState as E, useEffect as y, useCallback as k } from "react";
|
|
7
|
+
import { Portal as I } from "../portal/component.js";
|
|
8
|
+
import { getImageSrc as v, GALLERY_IMAGE_SIZE as M } from "../image/utils.js";
|
|
8
9
|
import e from "./index.module.css.js";
|
|
9
|
-
const
|
|
10
|
-
const [n, m] =
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
}, [
|
|
14
|
-
const d =
|
|
10
|
+
const _ = ({ onClose: i, initialSlide: s = 0, photos: r, open: l }) => {
|
|
11
|
+
const [n, m] = E(s);
|
|
12
|
+
y(() => {
|
|
13
|
+
l && m(s);
|
|
14
|
+
}, [l, s]);
|
|
15
|
+
const d = k(() => {
|
|
15
16
|
m((t) => Math.max(0, t - 1));
|
|
16
|
-
}, []), u =
|
|
17
|
+
}, []), u = k(() => {
|
|
17
18
|
m((t) => Math.min(r.length - 1, t + 1));
|
|
18
19
|
}, [r.length]);
|
|
19
|
-
if (
|
|
20
|
-
if (!
|
|
21
|
-
const t = (
|
|
22
|
-
|
|
20
|
+
if (y(() => {
|
|
21
|
+
if (!l) return;
|
|
22
|
+
const t = (g) => {
|
|
23
|
+
g.key === "Escape" ? i() : g.key === "ArrowLeft" ? d() : g.key === "ArrowRight" && u();
|
|
23
24
|
};
|
|
24
25
|
document.addEventListener("keydown", t);
|
|
25
26
|
const { overflow: c } = document.body.style;
|
|
26
27
|
return document.body.style.overflow = "hidden", () => {
|
|
27
28
|
document.removeEventListener("keydown", t), document.body.style.overflow = c;
|
|
28
29
|
};
|
|
29
|
-
}, [
|
|
30
|
-
const
|
|
30
|
+
}, [l, i, d, u]), !l || !r.length) return null;
|
|
31
|
+
const f = r[Math.min(n, r.length - 1)], N = v(f.src, M) ?? f.src, h = (t) => {
|
|
31
32
|
t.target === t.currentTarget && i();
|
|
32
33
|
};
|
|
33
|
-
return /* @__PURE__ */
|
|
34
|
+
return /* @__PURE__ */ a(I, { children: /* @__PURE__ */ b(
|
|
34
35
|
"div",
|
|
35
36
|
{
|
|
36
37
|
className: e.overlay,
|
|
37
38
|
role: "dialog",
|
|
38
39
|
"aria-modal": "true",
|
|
39
|
-
onClick:
|
|
40
|
+
onClick: h,
|
|
40
41
|
children: [
|
|
41
|
-
/* @__PURE__ */
|
|
42
|
+
/* @__PURE__ */ a(
|
|
42
43
|
"button",
|
|
43
44
|
{
|
|
44
45
|
type: "button",
|
|
45
46
|
className: o(e.button, e.closeButton),
|
|
46
47
|
onClick: i,
|
|
47
48
|
"aria-label": "Close gallery",
|
|
48
|
-
children: /* @__PURE__ */
|
|
49
|
+
children: /* @__PURE__ */ a(w, {})
|
|
49
50
|
}
|
|
50
51
|
),
|
|
51
|
-
/* @__PURE__ */
|
|
52
|
-
/* @__PURE__ */
|
|
52
|
+
/* @__PURE__ */ b("div", { className: e.stage, onClick: h, children: [
|
|
53
|
+
/* @__PURE__ */ b("div", { className: e.counter, children: [
|
|
53
54
|
n + 1,
|
|
54
55
|
" / ",
|
|
55
56
|
r.length
|
|
56
57
|
] }),
|
|
57
|
-
r.length > 1 && /* @__PURE__ */
|
|
58
|
+
r.length > 1 && /* @__PURE__ */ a(
|
|
58
59
|
"button",
|
|
59
60
|
{
|
|
60
61
|
type: "button",
|
|
@@ -62,11 +63,11 @@ const p = ({ onClose: i, initialSlide: s = 0, photos: r, open: a }) => {
|
|
|
62
63
|
onClick: d,
|
|
63
64
|
disabled: n === 0,
|
|
64
65
|
"aria-label": "Previous image",
|
|
65
|
-
children: /* @__PURE__ */
|
|
66
|
+
children: /* @__PURE__ */ a(x, {})
|
|
66
67
|
}
|
|
67
68
|
),
|
|
68
|
-
/* @__PURE__ */
|
|
69
|
-
r.length > 1 && /* @__PURE__ */
|
|
69
|
+
/* @__PURE__ */ a("img", { className: e.image, src: N, alt: "" }),
|
|
70
|
+
r.length > 1 && /* @__PURE__ */ a(
|
|
70
71
|
"button",
|
|
71
72
|
{
|
|
72
73
|
type: "button",
|
|
@@ -74,11 +75,11 @@ const p = ({ onClose: i, initialSlide: s = 0, photos: r, open: a }) => {
|
|
|
74
75
|
onClick: u,
|
|
75
76
|
disabled: n === r.length - 1,
|
|
76
77
|
"aria-label": "Next image",
|
|
77
|
-
children: /* @__PURE__ */
|
|
78
|
+
children: /* @__PURE__ */ a(C, {})
|
|
78
79
|
}
|
|
79
80
|
)
|
|
80
81
|
] }),
|
|
81
|
-
r.length > 1 && /* @__PURE__ */
|
|
82
|
+
r.length > 1 && /* @__PURE__ */ a("div", { className: e.thumbnails, children: r.map((t, c) => /* @__PURE__ */ a(
|
|
82
83
|
"button",
|
|
83
84
|
{
|
|
84
85
|
type: "button",
|
|
@@ -87,7 +88,14 @@ const p = ({ onClose: i, initialSlide: s = 0, photos: r, open: a }) => {
|
|
|
87
88
|
}),
|
|
88
89
|
onClick: () => m(c),
|
|
89
90
|
"aria-label": `Image ${c + 1}`,
|
|
90
|
-
children: /* @__PURE__ */
|
|
91
|
+
children: /* @__PURE__ */ a(
|
|
92
|
+
"img",
|
|
93
|
+
{
|
|
94
|
+
className: e.thumbnailImage,
|
|
95
|
+
src: v(t.src, "s") ?? t.src,
|
|
96
|
+
alt: ""
|
|
97
|
+
}
|
|
98
|
+
)
|
|
91
99
|
},
|
|
92
100
|
t.src
|
|
93
101
|
)) })
|
|
@@ -96,5 +104,5 @@ const p = ({ onClose: i, initialSlide: s = 0, photos: r, open: a }) => {
|
|
|
96
104
|
) });
|
|
97
105
|
};
|
|
98
106
|
export {
|
|
99
|
-
|
|
107
|
+
_ as ImageGallery
|
|
100
108
|
};
|
package/dist/index.js
CHANGED
|
@@ -5,17 +5,17 @@ import { BackButton as x } from "./back-button/component.js";
|
|
|
5
5
|
import { Badge as i } from "./badge/component.js";
|
|
6
6
|
import { BaseCard as u } from "./base-card/component.js";
|
|
7
7
|
import { BottomSheet as d } from "./bottom-sheet/component.js";
|
|
8
|
-
import { Box as c, Radiuses as
|
|
9
|
-
import { Button as
|
|
10
|
-
import { ButtonArrow as
|
|
11
|
-
import { Calendar as
|
|
12
|
-
import { useCalendar as
|
|
13
|
-
import { usePeriod as
|
|
14
|
-
import { DAYS_IN_WEEK as
|
|
15
|
-
import { CalendarInput as
|
|
16
|
-
import { DATE_FORMAT as H, DATE_MASK as
|
|
8
|
+
import { Box as c, Radiuses as I, Spaces as T } from "./box/component.js";
|
|
9
|
+
import { Button as h } from "./button/component.js";
|
|
10
|
+
import { ButtonArrow as g } from "./button-arrow/component.js";
|
|
11
|
+
import { Calendar as E } from "./calendar/component.js";
|
|
12
|
+
import { useCalendar as k } from "./calendar/use-calendar.js";
|
|
13
|
+
import { usePeriod as _ } from "./calendar/use-period.js";
|
|
14
|
+
import { DAYS_IN_WEEK as R, MONTHS_IN_YEAR as F, SUNDAY_INDEX as L, dateInLimits as B, limitDate as y, monthName as b, russianWeekDay as w } from "./calendar/utils.js";
|
|
15
|
+
import { CalendarInput as Y } from "./calendar-input/component.js";
|
|
16
|
+
import { DATE_FORMAT as H, DATE_MASK as N, IS_BROWSER as v, NATIVE_DATE_FORMAT as U, SUPPORTS_INPUT_TYPE_DATE as z, isCompleteDateInput as q, isInputDateSupported as K, parseDateString as V } from "./calendar-input/utils.js";
|
|
17
17
|
import { Card as J } from "./card/component.js";
|
|
18
|
-
import { Cell as
|
|
18
|
+
import { Cell as Z } from "./cell/component.js";
|
|
19
19
|
import { Checkbox as $ } from "./checkbox/component.js";
|
|
20
20
|
import { CheckboxGroup as ro } from "./checkbox-group/component.js";
|
|
21
21
|
import { CheckboxGroups as to } from "./checkbox-lists/component.js";
|
|
@@ -24,19 +24,19 @@ import { Collapse as ao } from "./collapse/component.js";
|
|
|
24
24
|
import { ConfirmPopup as so, showAlert as io, showConfirm as no } from "./confirm-popup/component.js";
|
|
25
25
|
import { CopyButton as lo } from "./copy-button/component.js";
|
|
26
26
|
import { FormattedDate as co } from "./date/component.js";
|
|
27
|
-
import { DateSwitcher as
|
|
28
|
-
import { DecoratedItem as
|
|
29
|
-
import { Divider as
|
|
30
|
-
import { Dot as
|
|
31
|
-
import { EmptyPage as
|
|
32
|
-
import { FilterTag as
|
|
33
|
-
import { Flex as
|
|
34
|
-
import { FlexColumns as
|
|
35
|
-
import { Footer as
|
|
27
|
+
import { DateSwitcher as To } from "./date-switcher/component.js";
|
|
28
|
+
import { DecoratedItem as ho } from "./decorated-item/component.js";
|
|
29
|
+
import { Divider as go } from "./divider/component.js";
|
|
30
|
+
import { Dot as Eo } from "./dot/component.js";
|
|
31
|
+
import { EmptyPage as ko } from "./empty-page/component.js";
|
|
32
|
+
import { FilterTag as _o } from "./filter-tag/component.js";
|
|
33
|
+
import { Flex as Ro } from "./flex/component.js";
|
|
34
|
+
import { FlexColumns as Lo } from "./flex-columns/component.js";
|
|
35
|
+
import { Footer as yo } from "./footer/component.js";
|
|
36
36
|
import { FiltersForm as wo } from "./form/templates/filters-form/index.js";
|
|
37
|
-
import { FormControl as
|
|
38
|
-
import { ErrorMessage as Ho, FastField as
|
|
39
|
-
import { Col as
|
|
37
|
+
import { FormControl as Yo } from "./form-control/component.js";
|
|
38
|
+
import { ErrorMessage as Ho, FastField as No, Field as vo, FieldArray as Uo, Form as zo, Formik as qo, connect as Ko, useField as Vo, useFormik as jo, useFormikContext as Jo, withFormik as Xo } from "formik";
|
|
39
|
+
import { Col as Qo, Grid as $o, Row as or } from "./grid/component.js";
|
|
40
40
|
import { HeaderSearch as er } from "./header-search/component.js";
|
|
41
41
|
import { useCrudFormRequests as pr } from "./hooks/use-crud-form-requests/index.js";
|
|
42
42
|
import { useGetOne as fr } from "./hooks/use-get-one/index.js";
|
|
@@ -45,289 +45,296 @@ import { useFocus as ir } from "./hooks/useFocus/index.js";
|
|
|
45
45
|
import { usePrevious as ur } from "./hooks/usePrevious/index.js";
|
|
46
46
|
import { IconButton as dr } from "./icon-button/component.js";
|
|
47
47
|
import { Image as cr } from "./image/component.js";
|
|
48
|
-
import { textSizes as
|
|
49
|
-
import {
|
|
50
|
-
import {
|
|
51
|
-
import {
|
|
52
|
-
import {
|
|
53
|
-
import {
|
|
54
|
-
import {
|
|
55
|
-
import {
|
|
56
|
-
import {
|
|
57
|
-
import {
|
|
58
|
-
import {
|
|
59
|
-
import {
|
|
60
|
-
import {
|
|
61
|
-
import {
|
|
62
|
-
import {
|
|
63
|
-
import {
|
|
64
|
-
import {
|
|
65
|
-
import {
|
|
66
|
-
import {
|
|
67
|
-
import {
|
|
68
|
-
import {
|
|
69
|
-
import {
|
|
70
|
-
import {
|
|
71
|
-
import {
|
|
72
|
-
import {
|
|
73
|
-
import {
|
|
74
|
-
import {
|
|
75
|
-
import {
|
|
76
|
-
import {
|
|
77
|
-
import {
|
|
78
|
-
import {
|
|
79
|
-
import {
|
|
80
|
-
import {
|
|
81
|
-
import {
|
|
82
|
-
import {
|
|
83
|
-
import {
|
|
84
|
-
import {
|
|
85
|
-
import {
|
|
86
|
-
import {
|
|
87
|
-
import {
|
|
88
|
-
import {
|
|
89
|
-
import {
|
|
90
|
-
import {
|
|
91
|
-
import {
|
|
92
|
-
import {
|
|
93
|
-
import {
|
|
94
|
-
import {
|
|
95
|
-
import {
|
|
96
|
-
import {
|
|
97
|
-
import {
|
|
98
|
-
import {
|
|
99
|
-
import {
|
|
100
|
-
import {
|
|
101
|
-
import {
|
|
102
|
-
import {
|
|
103
|
-
import {
|
|
104
|
-
import {
|
|
105
|
-
import {
|
|
106
|
-
import {
|
|
107
|
-
import {
|
|
108
|
-
import {
|
|
109
|
-
import {
|
|
110
|
-
import {
|
|
111
|
-
import {
|
|
112
|
-
import {
|
|
113
|
-
import {
|
|
114
|
-
import {
|
|
115
|
-
import {
|
|
116
|
-
import {
|
|
117
|
-
import {
|
|
118
|
-
import {
|
|
119
|
-
import {
|
|
120
|
-
import {
|
|
121
|
-
import {
|
|
122
|
-
import {
|
|
123
|
-
import {
|
|
124
|
-
import {
|
|
125
|
-
import {
|
|
126
|
-
import {
|
|
127
|
-
import {
|
|
128
|
-
import {
|
|
129
|
-
import {
|
|
130
|
-
import {
|
|
48
|
+
import { textSizes as Tr } from "./image/types.js";
|
|
49
|
+
import { GALLERY_IMAGE_SIZE as hr, getImageCdnHost as Ar, getImageSrc as gr, imageSizes as Cr, isEscapenavigatorImage as Er, isRuImageRegion as Dr } from "./image/utils.js";
|
|
50
|
+
import { ImageGallery as Mr } from "./image-gallery/component.js";
|
|
51
|
+
import { ImageUploader as Pr } from "./image-uploader/component.js";
|
|
52
|
+
import { InfoBlockHeader as Fr } from "./info-block-header/component.js";
|
|
53
|
+
import { InfoBlockItem as Br } from "./info-block-item/component.js";
|
|
54
|
+
import { InfoBlockWrapper as br } from "./info-block-wrapper/component.js";
|
|
55
|
+
import { Input as Wr } from "./input/component.js";
|
|
56
|
+
import { InputAutocomplete as Gr } from "./input-autocomplete/component.js";
|
|
57
|
+
import { InputGhost as Nr } from "./input-ghost/component.js";
|
|
58
|
+
import { Link as Ur } from "./link/component.js";
|
|
59
|
+
import { ListAllert as qr } from "./list-allert/component.js";
|
|
60
|
+
import { Loader as Vr } from "./loader/component.js";
|
|
61
|
+
import { MaskedInput as Jr, PLACEHOLDER_CHAR as Xr } from "./masked-input/component.js";
|
|
62
|
+
import { Menu as Qr } from "./menu/component.js";
|
|
63
|
+
import { Message as oe } from "./message/component.js";
|
|
64
|
+
import { ModalContext as ee, ModalProvider as te } from "./modal/context.js";
|
|
65
|
+
import { Mq as me } from "./mq/component.js";
|
|
66
|
+
import { useMatchMedia as ae } from "./mq/use-match-media.js";
|
|
67
|
+
import { Notification as se } from "./notification/component.js";
|
|
68
|
+
import { Padding as ne } from "./padding/component.js";
|
|
69
|
+
import { PageContainer as le } from "./page-container/component.js";
|
|
70
|
+
import { PageLoading as Se } from "./page-loading/component.js";
|
|
71
|
+
import { PageWithControls as Ie } from "./page-with-controls/component.js";
|
|
72
|
+
import { LabeledButton as Oe } from "./picker-button/common/labeled-button/index.js";
|
|
73
|
+
import { PickerButton as Ae } from "./picker-button/component.js";
|
|
74
|
+
import { Popover as Ce } from "./popover/component.js";
|
|
75
|
+
import { Portal as De } from "./portal/component.js";
|
|
76
|
+
import { ProgressBar as Me } from "./progress-bar/component.js";
|
|
77
|
+
import { ProgressIndex as Pe } from "./progress-index/component.js";
|
|
78
|
+
import { Radio as Fe } from "./radio/component.js";
|
|
79
|
+
import { RadioGroup as Be } from "./radio-group/component.js";
|
|
80
|
+
import { RadioGroups as be } from "./radio-groups/component.js";
|
|
81
|
+
import { SectionWrapper as We } from "./section-wrapper/component.js";
|
|
82
|
+
import { Select as Ge } from "./select/component.js";
|
|
83
|
+
import { Arrow as Ne } from "./select/components/arrow/component.js";
|
|
84
|
+
import { BaseSelect as Ue } from "./select/components/base-select/component.js";
|
|
85
|
+
import { SelectField as qe } from "./select/components/field/component.js";
|
|
86
|
+
import { Optgroup as Ve } from "./select/components/optgroup/component.js";
|
|
87
|
+
import { Option as Je } from "./select/components/option/component.js";
|
|
88
|
+
import { OptionsList as Ze } from "./select/components/options-list/component.js";
|
|
89
|
+
import { VirtualOptionsList as $e } from "./select/components/virtual-options-list/component.js";
|
|
90
|
+
import { useLazyLoading as rt } from "./select/presets/use-lazy-loading/index.js";
|
|
91
|
+
import { useSelectWithLoading as tt } from "./select/presets/use-select-with-loading/hook.js";
|
|
92
|
+
import { convertToOptions as mt, isGroup as ft, isOptionShape as at, joinOptions as xt, lastIndexOf as st, processOptions as it, useVisibleOptions as nt } from "./select/utils.js";
|
|
93
|
+
import { SettingsHint as lt } from "./settings-hint/component.js";
|
|
94
|
+
import { SettingsInfoBlock as St } from "./settings-info-block/component.js";
|
|
95
|
+
import { Sidepanel as It } from "./sidepanel/component.js";
|
|
96
|
+
import { SidepanelHeader as Ot } from "./sidepanel-header/component.js";
|
|
97
|
+
import { Skeleton as At } from "./skeleton/component.js";
|
|
98
|
+
import { Space as Ct } from "./space/component.js";
|
|
99
|
+
import { Spinner as Dt } from "./spinner/component.js";
|
|
100
|
+
import { Stack as Mt } from "./stack/component.js";
|
|
101
|
+
import { StackingContext as Pt, stackingOrder as Rt } from "./stack/context.js";
|
|
102
|
+
import { Status as Lt } from "./status/component.js";
|
|
103
|
+
import { SteppedProgressBar as yt, useSteps as bt } from "./stepped-progress-bar/index.js";
|
|
104
|
+
import { Sticker as Wt } from "./sticker/component.js";
|
|
105
|
+
import { SuffixInput as Gt } from "./suffix-input/component.js";
|
|
106
|
+
import { SuperListHeader as Nt } from "./super-list-header/component.js";
|
|
107
|
+
import { SuperListItem as Ut } from "./super-list-item/component.js";
|
|
108
|
+
import { Switch as qt } from "./switch/component.js";
|
|
109
|
+
import { Table as Vt } from "./table/component.js";
|
|
110
|
+
import { TableCell as Jt } from "./table/components/cell/component.js";
|
|
111
|
+
import { TableStatus as Zt } from "./table-status/component.js";
|
|
112
|
+
import { Tag as $t } from "./tag/component.js";
|
|
113
|
+
import { TagsList as rp } from "./tags-list/component.js";
|
|
114
|
+
import { Textarea as tp } from "./textarea/component.js";
|
|
115
|
+
import { LOACAL_STORAGE_THEME_KEY as mp, STYLE_TAG_ID as fp, THEME as ap, THEME_DATA_ATTR as xp, ThemeProvider as sp, useTheme as ip } from "./theme-provider/component.js";
|
|
116
|
+
import { defaultThemes as up } from "./theme-provider/default-themes.js";
|
|
117
|
+
import { Toast as dp } from "./toast/component.js";
|
|
118
|
+
import { ToastNotifier as cp } from "./toast-notifier/component.js";
|
|
119
|
+
import { ToastPlate as Tp } from "./toast-plate/component.js";
|
|
120
|
+
import { Tooltip as hp } from "./tooltip/component.js";
|
|
121
|
+
import { Typography as gp } from "./typography/component.js";
|
|
122
|
+
import { add as Ep, addDays as Dp, addMonths as kp, addYears as Mp, eachDayOfInterval as _p, eachMonthOfInterval as Pp, eachYearOfInterval as Rp, endOfDay as Fp, endOfISOWeek as Lp, endOfWeek as Bp, endOfYear as yp, format as bp, isAfter as wp, isBefore as Wp, isEqual as Yp, isLastDayOfMonth as Gp, isSameDay as Hp, isSameMonth as Np, isSameYear as vp, isThisMonth as Up, isThisYear as zp, isToday as qp, isWithinInterval as Kp, lastDayOfMonth as Vp, max as jp, min as Jp, parse as Xp, parseISO as Zp, startOfDay as Qp, startOfISOWeek as $p, startOfMonth as om, startOfWeek as rm, startOfYear as em, subDays as tm, subMonths as pm, subWeeks as mm, subYears as fm, weekDaysShort as am } from "./utils/date/index.js";
|
|
123
|
+
import { debounce as sm } from "./utils/debounce.js";
|
|
124
|
+
import { AMOUNT_MAJOR_MINOR_PARTS_SEPARATOR as nm, THINSP as um, formatAmount as lm, isCurrencyFirst as dm } from "./utils/format-amount/util.js";
|
|
125
|
+
import { formatDate as cm, locales as Im } from "./utils/format-date/index.js";
|
|
126
|
+
import { safeStringify as Om } from "./utils/safe-stringify.js";
|
|
127
|
+
import { showCompactSuccess as Am, showError as gm, showSuccess as Cm } from "./utils/show-toast/index.js";
|
|
128
|
+
import { splitAmount as Dm } from "./utils/split-amount/util.js";
|
|
129
|
+
import { capitalize as Mm } from "./utils/string.js";
|
|
130
|
+
import { WelcomeContainer as Pm } from "./welcome-layout/component.js";
|
|
131
|
+
import { withSuffix as Fm } from "./with-suffix/component.js";
|
|
131
132
|
export {
|
|
132
|
-
|
|
133
|
+
nm as AMOUNT_MAJOR_MINOR_PARTS_SEPARATOR,
|
|
133
134
|
e as Amount,
|
|
134
135
|
p as AmountInput,
|
|
135
|
-
|
|
136
|
+
Ne as Arrow,
|
|
136
137
|
f as Avatar,
|
|
137
138
|
x as BackButton,
|
|
138
139
|
i as Badge,
|
|
139
140
|
u as BaseCard,
|
|
140
|
-
|
|
141
|
+
Ue as BaseSelect,
|
|
141
142
|
d as BottomSheet,
|
|
142
143
|
c as Box,
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
144
|
+
h as Button,
|
|
145
|
+
g as ButtonArrow,
|
|
146
|
+
E as Calendar,
|
|
147
|
+
Y as CalendarInput,
|
|
147
148
|
J as Card,
|
|
148
|
-
|
|
149
|
+
Z as Cell,
|
|
149
150
|
$ as Checkbox,
|
|
150
151
|
ro as CheckboxGroup,
|
|
151
152
|
to as CheckboxGroups,
|
|
152
|
-
|
|
153
|
+
Qo as Col,
|
|
153
154
|
mo as CollapsableRow,
|
|
154
155
|
ao as Collapse,
|
|
155
156
|
so as ConfirmPopup,
|
|
156
157
|
lo as CopyButton,
|
|
157
158
|
H as DATE_FORMAT,
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
159
|
+
N as DATE_MASK,
|
|
160
|
+
R as DAYS_IN_WEEK,
|
|
161
|
+
To as DateSwitcher,
|
|
162
|
+
ho as DecoratedItem,
|
|
163
|
+
go as Divider,
|
|
164
|
+
Eo as Dot,
|
|
165
|
+
ko as EmptyPage,
|
|
165
166
|
Ho as ErrorMessage,
|
|
166
|
-
|
|
167
|
-
|
|
167
|
+
No as FastField,
|
|
168
|
+
vo as Field,
|
|
168
169
|
Uo as FieldArray,
|
|
169
|
-
|
|
170
|
+
_o as FilterTag,
|
|
170
171
|
wo as FiltersForm,
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
172
|
+
Ro as Flex,
|
|
173
|
+
Lo as FlexColumns,
|
|
174
|
+
yo as Footer,
|
|
175
|
+
zo as Form,
|
|
176
|
+
Yo as FormControl,
|
|
176
177
|
co as FormattedDate,
|
|
177
|
-
|
|
178
|
+
qo as Formik,
|
|
179
|
+
hr as GALLERY_IMAGE_SIZE,
|
|
178
180
|
$o as Grid,
|
|
179
181
|
er as HeaderSearch,
|
|
180
|
-
|
|
182
|
+
v as IS_BROWSER,
|
|
181
183
|
dr as IconButton,
|
|
182
184
|
cr as Image,
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
185
|
+
Mr as ImageGallery,
|
|
186
|
+
Pr as ImageUploader,
|
|
187
|
+
Fr as InfoBlockHeader,
|
|
188
|
+
Br as InfoBlockItem,
|
|
189
|
+
br as InfoBlockWrapper,
|
|
190
|
+
Wr as Input,
|
|
191
|
+
Gr as InputAutocomplete,
|
|
192
|
+
Nr as InputGhost,
|
|
193
|
+
mp as LOACAL_STORAGE_THEME_KEY,
|
|
194
|
+
Oe as LabeledButton,
|
|
195
|
+
Ur as Link,
|
|
196
|
+
qr as ListAllert,
|
|
197
|
+
Vr as Loader,
|
|
198
|
+
F as MONTHS_IN_YEAR,
|
|
199
|
+
Jr as MaskedInput,
|
|
200
|
+
Qr as Menu,
|
|
201
|
+
oe as Message,
|
|
202
|
+
ee as ModalContext,
|
|
203
|
+
te as ModalProvider,
|
|
204
|
+
me as Mq,
|
|
203
205
|
U as NATIVE_DATE_FORMAT,
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
206
|
+
se as Notification,
|
|
207
|
+
Ve as Optgroup,
|
|
208
|
+
Je as Option,
|
|
209
|
+
Ze as OptionsList,
|
|
210
|
+
Xr as PLACEHOLDER_CHAR,
|
|
211
|
+
ne as Padding,
|
|
212
|
+
le as PageContainer,
|
|
213
|
+
Se as PageLoading,
|
|
214
|
+
Ie as PageWithControls,
|
|
215
|
+
Ae as PickerButton,
|
|
216
|
+
Ce as Popover,
|
|
217
|
+
De as Portal,
|
|
218
|
+
Me as ProgressBar,
|
|
219
|
+
Pe as ProgressIndex,
|
|
220
|
+
Fe as Radio,
|
|
221
|
+
Be as RadioGroup,
|
|
222
|
+
be as RadioGroups,
|
|
223
|
+
I as Radiuses,
|
|
222
224
|
or as Row,
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
225
|
+
fp as STYLE_TAG_ID,
|
|
226
|
+
L as SUNDAY_INDEX,
|
|
227
|
+
z as SUPPORTS_INPUT_TYPE_DATE,
|
|
228
|
+
We as SectionWrapper,
|
|
229
|
+
Ge as Select,
|
|
230
|
+
qe as SelectField,
|
|
231
|
+
lt as SettingsHint,
|
|
232
|
+
St as SettingsInfoBlock,
|
|
233
|
+
It as Sidepanel,
|
|
234
|
+
Ot as SidepanelHeader,
|
|
235
|
+
At as Skeleton,
|
|
236
|
+
Ct as Space,
|
|
237
|
+
T as Spaces,
|
|
238
|
+
Dt as Spinner,
|
|
239
|
+
Mt as Stack,
|
|
240
|
+
Pt as StackingContext,
|
|
241
|
+
Lt as Status,
|
|
242
|
+
yt as SteppedProgressBar,
|
|
243
|
+
Wt as Sticker,
|
|
244
|
+
Gt as SuffixInput,
|
|
245
|
+
Nt as SuperListHeader,
|
|
246
|
+
Ut as SuperListItem,
|
|
247
|
+
qt as Switch,
|
|
248
|
+
ap as THEME,
|
|
249
|
+
xp as THEME_DATA_ATTR,
|
|
250
|
+
um as THINSP,
|
|
251
|
+
Vt as Table,
|
|
252
|
+
Jt as TableCell,
|
|
253
|
+
Zt as TableStatus,
|
|
254
|
+
$t as Tag,
|
|
255
|
+
rp as TagsList,
|
|
256
|
+
tp as Textarea,
|
|
257
|
+
sp as ThemeProvider,
|
|
258
|
+
dp as Toast,
|
|
259
|
+
cp as ToastNotifier,
|
|
260
|
+
Tp as ToastPlate,
|
|
261
|
+
hp as Tooltip,
|
|
262
|
+
gp as Typography,
|
|
263
|
+
$e as VirtualOptionsList,
|
|
264
|
+
Pm as WelcomeContainer,
|
|
265
|
+
Ep as add,
|
|
266
|
+
Dp as addDays,
|
|
267
|
+
kp as addMonths,
|
|
268
|
+
Mp as addYears,
|
|
269
|
+
Mm as capitalize,
|
|
268
270
|
Ko as connect,
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
271
|
+
mt as convertToOptions,
|
|
272
|
+
B as dateInLimits,
|
|
273
|
+
sm as debounce,
|
|
274
|
+
up as defaultThemes,
|
|
275
|
+
_p as eachDayOfInterval,
|
|
276
|
+
Pp as eachMonthOfInterval,
|
|
277
|
+
Rp as eachYearOfInterval,
|
|
278
|
+
Fp as endOfDay,
|
|
279
|
+
Lp as endOfISOWeek,
|
|
280
|
+
Bp as endOfWeek,
|
|
281
|
+
yp as endOfYear,
|
|
282
|
+
bp as format,
|
|
283
|
+
lm as formatAmount,
|
|
284
|
+
cm as formatDate,
|
|
285
|
+
Ar as getImageCdnHost,
|
|
286
|
+
gr as getImageSrc,
|
|
287
|
+
Cr as imageSizes,
|
|
288
|
+
wp as isAfter,
|
|
289
|
+
Wp as isBefore,
|
|
290
|
+
q as isCompleteDateInput,
|
|
291
|
+
dm as isCurrencyFirst,
|
|
292
|
+
Yp as isEqual,
|
|
293
|
+
Er as isEscapenavigatorImage,
|
|
294
|
+
ft as isGroup,
|
|
289
295
|
K as isInputDateSupported,
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
296
|
+
Gp as isLastDayOfMonth,
|
|
297
|
+
at as isOptionShape,
|
|
298
|
+
Dr as isRuImageRegion,
|
|
299
|
+
Hp as isSameDay,
|
|
300
|
+
Np as isSameMonth,
|
|
301
|
+
vp as isSameYear,
|
|
302
|
+
Up as isThisMonth,
|
|
303
|
+
zp as isThisYear,
|
|
304
|
+
qp as isToday,
|
|
305
|
+
Kp as isWithinInterval,
|
|
306
|
+
xt as joinOptions,
|
|
307
|
+
Vp as lastDayOfMonth,
|
|
308
|
+
st as lastIndexOf,
|
|
309
|
+
y as limitDate,
|
|
310
|
+
Im as locales,
|
|
311
|
+
jp as max,
|
|
312
|
+
Jp as min,
|
|
306
313
|
b as monthName,
|
|
307
|
-
|
|
314
|
+
Xp as parse,
|
|
308
315
|
V as parseDateString,
|
|
309
|
-
|
|
310
|
-
|
|
316
|
+
Zp as parseISO,
|
|
317
|
+
it as processOptions,
|
|
311
318
|
w as russianWeekDay,
|
|
312
|
-
|
|
319
|
+
Om as safeStringify,
|
|
313
320
|
io as showAlert,
|
|
314
|
-
|
|
321
|
+
Am as showCompactSuccess,
|
|
315
322
|
no as showConfirm,
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
323
|
+
gm as showError,
|
|
324
|
+
Cm as showSuccess,
|
|
325
|
+
Dm as splitAmount,
|
|
326
|
+
Rt as stackingOrder,
|
|
327
|
+
Qp as startOfDay,
|
|
328
|
+
$p as startOfISOWeek,
|
|
329
|
+
om as startOfMonth,
|
|
330
|
+
rm as startOfWeek,
|
|
331
|
+
em as startOfYear,
|
|
332
|
+
tm as subDays,
|
|
333
|
+
pm as subMonths,
|
|
334
|
+
mm as subWeeks,
|
|
335
|
+
fm as subYears,
|
|
336
|
+
Tr as textSizes,
|
|
337
|
+
k as useCalendar,
|
|
331
338
|
xr as useClickOutside,
|
|
332
339
|
pr as useCrudFormRequests,
|
|
333
340
|
Vo as useField,
|
|
@@ -335,15 +342,15 @@ export {
|
|
|
335
342
|
jo as useFormik,
|
|
336
343
|
Jo as useFormikContext,
|
|
337
344
|
fr as useGetOne,
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
345
|
+
rt as useLazyLoading,
|
|
346
|
+
ae as useMatchMedia,
|
|
347
|
+
_ as usePeriod,
|
|
341
348
|
ur as usePrevious,
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
349
|
+
tt as useSelectWithLoading,
|
|
350
|
+
bt as useSteps,
|
|
351
|
+
ip as useTheme,
|
|
352
|
+
nt as useVisibleOptions,
|
|
353
|
+
am as weekDaysShort,
|
|
347
354
|
Xo as withFormik,
|
|
348
|
-
|
|
355
|
+
Fm as withSuffix
|
|
349
356
|
};
|
|
@@ -1,12 +1,20 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
/* @__PURE__ */
|
|
1
|
+
import { jsxs as e, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { getImageSrc as c } from "../image/utils.js";
|
|
3
|
+
import s from "./index.module.css.js";
|
|
4
|
+
const d = ({ children: a, color: t, image: o, imageDescription: i }) => /* @__PURE__ */ e("div", { style: { backgroundColor: t }, className: s.pageContainer, children: [
|
|
5
|
+
o && /* @__PURE__ */ e("section", { children: [
|
|
6
|
+
/* @__PURE__ */ r(
|
|
7
|
+
"img",
|
|
8
|
+
{
|
|
9
|
+
className: s.image,
|
|
10
|
+
src: c(o, "auto") ?? o,
|
|
11
|
+
alt: i
|
|
12
|
+
}
|
|
13
|
+
),
|
|
14
|
+
/* @__PURE__ */ r("div", { className: s.bg })
|
|
7
15
|
] }),
|
|
8
|
-
/* @__PURE__ */
|
|
16
|
+
/* @__PURE__ */ r("div", { children: a })
|
|
9
17
|
] });
|
|
10
18
|
export {
|
|
11
|
-
|
|
19
|
+
d as PageContainer
|
|
12
20
|
};
|
|
@@ -1,30 +1,38 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as t, jsx as a } from "react/jsx-runtime";
|
|
2
2
|
import d from "classnames";
|
|
3
|
-
import { Typography as
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
3
|
+
import { Typography as o } from "../typography/component.js";
|
|
4
|
+
import { getImageSrc as p } from "../image/utils.js";
|
|
5
|
+
import e from "./index.module.css.js";
|
|
6
|
+
const g = "https://escapenavigator-images.s3.eu-central-1.amazonaws.com/inside/art/explanation.webp", y = ({
|
|
7
|
+
title: r,
|
|
8
|
+
text: m,
|
|
9
|
+
image: i = g,
|
|
10
|
+
children: s,
|
|
10
11
|
reversed: c = !1,
|
|
11
12
|
className: n,
|
|
12
13
|
dataTestId: l
|
|
13
|
-
}) => /* @__PURE__ */
|
|
14
|
+
}) => /* @__PURE__ */ t(
|
|
14
15
|
"div",
|
|
15
16
|
{
|
|
16
|
-
className: d(
|
|
17
|
+
className: d(e.component, { [e.reversed]: c }, n),
|
|
17
18
|
"data-test-id": l,
|
|
18
19
|
children: [
|
|
19
|
-
/* @__PURE__ */
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
20
|
+
/* @__PURE__ */ a("div", { className: e.imageWrapper, children: /* @__PURE__ */ a(
|
|
21
|
+
"img",
|
|
22
|
+
{
|
|
23
|
+
alt: r || "hint",
|
|
24
|
+
className: e.image,
|
|
25
|
+
src: p(i, "l") ?? i
|
|
26
|
+
}
|
|
27
|
+
) }),
|
|
28
|
+
/* @__PURE__ */ t("div", { className: e.content, children: [
|
|
29
|
+
r && /* @__PURE__ */ a(o.Title, { view: "xsmall", weight: "bold", color: "primary", tag: "div", children: r }),
|
|
30
|
+
/* @__PURE__ */ a(o.Text, { view: "primary-medium", color: "secondary", weight: "regular", tag: "div", children: m }),
|
|
31
|
+
s && /* @__PURE__ */ a("div", { className: e.actions, children: s })
|
|
24
32
|
] })
|
|
25
33
|
]
|
|
26
34
|
}
|
|
27
35
|
);
|
|
28
36
|
export {
|
|
29
|
-
|
|
37
|
+
y as SettingsHint
|
|
30
38
|
};
|
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as o, jsx as i } from "react/jsx-runtime";
|
|
2
2
|
import s from "classnames";
|
|
3
|
+
import { getImageSrc as c } from "../image/utils.js";
|
|
3
4
|
import e from "./index.module.css.js";
|
|
4
|
-
const
|
|
5
|
-
children:
|
|
6
|
-
image:
|
|
7
|
-
color:
|
|
8
|
-
reversed:
|
|
9
|
-
}) => /* @__PURE__ */
|
|
10
|
-
/* @__PURE__ */ i("div", { className: e.left_side, children: /* @__PURE__ */ i("div", { className: e.left_side_inner, children:
|
|
11
|
-
/* @__PURE__ */ i("div", { className: s(e.right_side, e[
|
|
5
|
+
const _ = ({
|
|
6
|
+
children: t,
|
|
7
|
+
image: r,
|
|
8
|
+
color: m = "default",
|
|
9
|
+
reversed: a
|
|
10
|
+
}) => /* @__PURE__ */ o("div", { className: s(e.container, { [e.reversed]: a }), children: [
|
|
11
|
+
/* @__PURE__ */ i("div", { className: e.left_side, children: /* @__PURE__ */ i("div", { className: e.left_side_inner, children: t }) }),
|
|
12
|
+
/* @__PURE__ */ i("div", { className: s(e.right_side, e[m]), children: /* @__PURE__ */ i("img", { src: c(r, "auto") ?? r, alt: "right_side_image" }) })
|
|
12
13
|
] });
|
|
13
14
|
export {
|
|
14
|
-
|
|
15
|
+
_ as WelcomeContainer
|
|
15
16
|
};
|