@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.
@@ -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 { GALLERY_IMAGE_SIZE, getImageCdnHost, getImageSrc, imageSizes, isEscapenavigatorImage, isRuImageRegion, } from './utils';
@@ -1,6 +1,13 @@
1
- import { Image as r } from "./component.js";
2
- import { textSizes as m } from "./types.js";
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 Image,
5
- m as textSizes
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 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,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;
@@ -1,7 +1,30 @@
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 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
- e as getCharsFromText
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 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 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 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";
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 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";
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 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 { 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
- pm as AMOUNT_MAJOR_MINOR_PARTS_SEPARATOR,
133
+ nm as AMOUNT_MAJOR_MINOR_PARTS_SEPARATOR,
133
134
  e as Amount,
134
135
  p as AmountInput,
135
- Le as Arrow,
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
- we as BaseSelect,
141
+ Ue 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
+ h as Button,
145
+ g as ButtonArrow,
146
+ E as Calendar,
147
+ Y 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
158
  H as DATE_FORMAT,
158
- 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,
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
- vo as FastField,
167
- Go as Field,
167
+ No as FastField,
168
+ vo as Field,
168
169
  Uo as FieldArray,
169
- Po as FilterTag,
170
+ _o as FilterTag,
170
171
  wo as FiltersForm,
171
- Fo as Flex,
172
- Bo as FlexColumns,
173
- Lo as Footer,
174
- qo as Form,
175
- No as FormControl,
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
- zo as Formik,
178
+ qo as Formik,
179
+ hr as GALLERY_IMAGE_SIZE,
178
180
  $o as Grid,
179
181
  er as HeaderSearch,
180
- G as IS_BROWSER,
182
+ v as IS_BROWSER,
181
183
  dr as IconButton,
182
184
  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,
196
- 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,
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
- 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,
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
- $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,
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
- 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,
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
- 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,
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
- Up as parse,
314
+ Xp as parse,
308
315
  V as parseDateString,
309
- qp as parseISO,
310
- tt as processOptions,
316
+ Zp as parseISO,
317
+ it as processOptions,
311
318
  w as russianWeekDay,
312
- um as safeStringify,
319
+ Om as safeStringify,
313
320
  io as showAlert,
314
- dm as showCompactSuccess,
321
+ Am as showCompactSuccess,
315
322
  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,
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
- je as useLazyLoading,
339
- oe as useMatchMedia,
340
- P as usePeriod,
345
+ rt as useLazyLoading,
346
+ ae as useMatchMedia,
347
+ _ as usePeriod,
341
348
  ur as usePrevious,
342
- Xe as useSelectWithLoading,
343
- Pt as useSteps,
344
- tp as useTheme,
345
- pt as useVisibleOptions,
346
- om as weekDaysShort,
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
- gm as withSuffix
355
+ Fm as withSuffix
349
356
  };
@@ -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.0",
4
4
  "files": [
5
5
  "dist"
6
6
  ],