@alphakits/ui 2.5.18 → 2.6.1

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