@scbt-ecom/ui 0.7.25 → 0.7.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client.js +15500 -15670
- package/dist/client.js.map +1 -1
- package/dist/hybrid.js +77 -77
- package/dist/hybrid.js.map +1 -1
- package/dist/shared/ui/formControlElements/dadataControl/DadataAddress.d.ts +3 -0
- package/dist/shared/ui/formControlElements/dadataControl/DadataAuto.d.ts +3 -0
- package/dist/shared/ui/formControlElements/dadataControl/DadataCountry.d.ts +3 -0
- package/dist/shared/ui/formControlElements/dadataControl/DadataFio.d.ts +3 -0
- package/dist/shared/ui/formControlElements/dadataControl/DadataOrganization.d.ts +3 -0
- package/dist/shared/ui/formControlElements/{autocompleteDadata → dadataControl/autocompleteDadata}/AutocompleteDadata.d.ts +1 -1
- package/dist/shared/ui/formControlElements/dadataControl/autocompleteDadata/index.d.ts +1 -0
- package/dist/shared/ui/formControlElements/dadataControl/index.d.ts +1 -1
- package/dist/shared/ui/formControlElements/dadataControl/types.d.ts +10 -0
- package/dist/shared/ui/formControlElements/index.d.ts +0 -1
- package/dist/{utils-tailwind-Bh4Yv0Ys.js → utils-tailwind-D31aoXaK.js} +247 -249
- package/dist/utils-tailwind-D31aoXaK.js.map +1 -0
- package/package.json +1 -1
- package/dist/shared/ui/formControlElements/dadata/DadataInputControl.d.ts +0 -14
- package/dist/shared/ui/formControlElements/dadata/index.d.ts +0 -1
- package/dist/shared/ui/formControlElements/dadata/model/api.d.ts +0 -2
- package/dist/shared/ui/formControlElements/dadata/model/helpers.d.ts +0 -7
- package/dist/shared/ui/formControlElements/dadata/model/types.d.ts +0 -42
- package/dist/shared/ui/formControlElements/dadata/model/useDadata.d.ts +0 -7
- package/dist/shared/ui/formControlElements/dadataControl/DadataControl.d.ts +0 -16
- package/dist/utils-tailwind-Bh4Yv0Ys.js.map +0 -1
- /package/dist/shared/ui/formControlElements/{autocompleteDadata → dadataControl/autocompleteDadata}/model/api.d.ts +0 -0
- /package/dist/shared/ui/formControlElements/{autocompleteDadata → dadataControl/autocompleteDadata}/model/helpers.d.ts +0 -0
- /package/dist/shared/ui/formControlElements/{autocompleteDadata → dadataControl/autocompleteDadata}/model/types.d.ts +0 -0
- /package/dist/shared/ui/formControlElements/{autocompleteDadata → dadataControl/autocompleteDadata}/model/useDadata.d.ts +0 -0
- /package/dist/shared/ui/formControlElements/{autocompleteDadata → dadataControl/autocompleteDadata}/ui/ComboboxOptionsCustom.d.ts +0 -0
package/dist/hybrid.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { p as F, j as t, c as a, H as y, a as x, I as f, L as K, z as c, i as Y, g as A, u as z, P as ee } from "./utils-tailwind-
|
|
2
|
-
import { B as
|
|
1
|
+
import { p as F, j as t, c as a, H as y, a as x, I as f, L as K, z as c, i as Y, g as A, u as z, P as ee } from "./utils-tailwind-D31aoXaK.js";
|
|
2
|
+
import { B as mt, N as ut, b as xt } from "./utils-tailwind-D31aoXaK.js";
|
|
3
3
|
import * as v from "react";
|
|
4
4
|
import { forwardRef as L } from "react";
|
|
5
5
|
const Me = (o, e) => JSON.stringify(o) === JSON.stringify(e), Oe = (o) => o.split("-").map((e) => e.charAt(0).toUpperCase() + e.slice(1).toLowerCase()).join("-"), $e = (o, e = "dd.MM.yyyy") => F(o, e, /* @__PURE__ */ new Date()), R = ({ children: o, className: e, ...i }) => /* @__PURE__ */ t.jsx("section", { className: a("pb-16 desktop:pb-20", e), ...i, children: o }), g = ({ children: o, className: e, ...i }) => /* @__PURE__ */ t.jsx("div", { className: a("m-auto w-full mobile:px-4 desktop:max-w-[1140px]", e), ...i, children: o }), te = x("grid", {
|
|
@@ -372,7 +372,56 @@ const Me = (o, e) => JSON.stringify(o) === JSON.stringify(e), Oe = (o) => o.spli
|
|
|
372
372
|
black: /* @__PURE__ */ t.jsx(f, { name: "brandLogos/logoBlack" }),
|
|
373
373
|
business: /* @__PURE__ */ t.jsx(f, { name: "brandLogos/logoBusiness" }),
|
|
374
374
|
insurance: /* @__PURE__ */ t.jsx(f, { name: "brandLogos/logoInsurance" })
|
|
375
|
-
},
|
|
375
|
+
}, fe = /^[\u0400-\u04FF\u00CB\u00EB -]+$/, E = /^(?:[^-]+(?:-[^-]+){0,4}|[^-]+)$/, ce = /^[a-zA-Zа-яА-ЯёЁ]+(?:\s*-\s*[a-zA-Zа-яА-ЯёЁ]+){0,4}(?:\s+[a-zA-Zа-яА-ЯёЁ]+(?:\s*-\s*[a-zA-Zа-яА-ЯёЁ]+){0,4})?$/i, k = {
|
|
376
|
+
REQUIRED: "Поле обязательно к заполнению",
|
|
377
|
+
MIN_LENGTH: "Минимальная длина символов должна быть не менее",
|
|
378
|
+
MAX_LENGTH: "Максимальная длина символов должна быть не более",
|
|
379
|
+
FIX_LENGTH: "Длина символов должна быть равна",
|
|
380
|
+
MAX_LENGTH_ELEMENTS: "Максимальное количество элементов должно быть не более",
|
|
381
|
+
MIN_LENGTH_ELEMENTS: "Минимальное количество элементов должно быть не менее",
|
|
382
|
+
FIX_LENGTH_ELEMENTS: "Количество элементов должно быть равно",
|
|
383
|
+
INVALID_VALUE: "Поле заполнено некорректно",
|
|
384
|
+
INVALID_DATE: "Введите корректную дату",
|
|
385
|
+
FUTURE_DATE_NOT_ALLOWED: "Нельзя выбрать дату позже текущей"
|
|
386
|
+
}, be = (o) => {
|
|
387
|
+
const e = o.trim().replace(/\s+/g, " ").split(" "), [i, r, ...n] = e, d = n == null ? void 0 : n.join(" ");
|
|
388
|
+
return {
|
|
389
|
+
surname: i,
|
|
390
|
+
name: r,
|
|
391
|
+
patronymic: d
|
|
392
|
+
};
|
|
393
|
+
}, Je = c.string({ invalid_type_error: "Обязательно к заполнению", required_error: "Обязательно к заполнению" }).superRefine((o, e) => {
|
|
394
|
+
fe.test(o) || e.addIssue({
|
|
395
|
+
code: c.ZodIssueCode.custom,
|
|
396
|
+
message: "Должна быть только кириллица"
|
|
397
|
+
});
|
|
398
|
+
const { surname: i, name: r, patronymic: n } = be(o);
|
|
399
|
+
(!i || !r) && e.addIssue({
|
|
400
|
+
code: c.ZodIssueCode.custom,
|
|
401
|
+
message: "Введите имя и фамилию"
|
|
402
|
+
}), E.test(r) || e.addIssue({
|
|
403
|
+
code: c.ZodIssueCode.custom,
|
|
404
|
+
message: "Неверно введено имя"
|
|
405
|
+
}), E.test(i) || e.addIssue({
|
|
406
|
+
code: c.ZodIssueCode.custom,
|
|
407
|
+
message: "Неверно введена фамилия"
|
|
408
|
+
}), n && (ce.test(n) || e.addIssue({
|
|
409
|
+
code: c.ZodIssueCode.custom,
|
|
410
|
+
message: "Неверно введено отчество"
|
|
411
|
+
}));
|
|
412
|
+
}), Qe = c.string().length(10, { message: k.INVALID_DATE }).superRefine((o, e) => {
|
|
413
|
+
const [i, r, n] = (o == null ? void 0 : o.split(".")) ?? "", d = F(`${i}/${r}/${n}`, "dd/MM/yyyy", /* @__PURE__ */ new Date());
|
|
414
|
+
+n <= 1950 && e.addIssue({
|
|
415
|
+
code: c.ZodIssueCode.custom,
|
|
416
|
+
message: k.INVALID_DATE
|
|
417
|
+
}), Y(d) || e.addIssue({
|
|
418
|
+
code: c.ZodIssueCode.custom,
|
|
419
|
+
message: k.INVALID_DATE
|
|
420
|
+
}), (/* @__PURE__ */ new Date()).getTime() < new Date(d).getTime() && e.addIssue({
|
|
421
|
+
code: c.ZodIssueCode.custom,
|
|
422
|
+
message: k.FUTURE_DATE_NOT_ALLOWED
|
|
423
|
+
});
|
|
424
|
+
}), w = {
|
|
376
425
|
transparent: "transparent",
|
|
377
426
|
current: "currentColor",
|
|
378
427
|
inherit: "inherit",
|
|
@@ -493,7 +542,7 @@ const Me = (o, e) => JSON.stringify(o) === JSON.stringify(e), Oe = (o) => o.spli
|
|
|
493
542
|
90: "90deg",
|
|
494
543
|
110: "110deg",
|
|
495
544
|
180: "180deg"
|
|
496
|
-
},
|
|
545
|
+
}, he = {
|
|
497
546
|
0: "0",
|
|
498
547
|
1: "1",
|
|
499
548
|
10: "10",
|
|
@@ -581,56 +630,7 @@ const Me = (o, e) => JSON.stringify(o) === JSON.stringify(e), Oe = (o) => o.spli
|
|
|
581
630
|
".desk-body-regular-s": {
|
|
582
631
|
"@apply font-normal text-12 leading-16": ""
|
|
583
632
|
}
|
|
584
|
-
},
|
|
585
|
-
REQUIRED: "Поле обязательно к заполнению",
|
|
586
|
-
MIN_LENGTH: "Минимальная длина символов должна быть не менее",
|
|
587
|
-
MAX_LENGTH: "Максимальная длина символов должна быть не более",
|
|
588
|
-
FIX_LENGTH: "Длина символов должна быть равна",
|
|
589
|
-
MAX_LENGTH_ELEMENTS: "Максимальное количество элементов должно быть не более",
|
|
590
|
-
MIN_LENGTH_ELEMENTS: "Минимальное количество элементов должно быть не менее",
|
|
591
|
-
FIX_LENGTH_ELEMENTS: "Количество элементов должно быть равно",
|
|
592
|
-
INVALID_VALUE: "Поле заполнено некорректно",
|
|
593
|
-
INVALID_DATE: "Введите корректную дату",
|
|
594
|
-
FUTURE_DATE_NOT_ALLOWED: "Нельзя выбрать дату позже текущей"
|
|
595
|
-
}, he = (o) => {
|
|
596
|
-
const e = o.trim().replace(/\s+/g, " ").split(" "), [i, r, ...n] = e, d = n == null ? void 0 : n.join(" ");
|
|
597
|
-
return {
|
|
598
|
-
surname: i,
|
|
599
|
-
name: r,
|
|
600
|
-
patronymic: d
|
|
601
|
-
};
|
|
602
|
-
}, Je = c.string({ invalid_type_error: "Обязательно к заполнению", required_error: "Обязательно к заполнению" }).superRefine((o, e) => {
|
|
603
|
-
ce.test(o) || e.addIssue({
|
|
604
|
-
code: c.ZodIssueCode.custom,
|
|
605
|
-
message: "Должна быть только кириллица"
|
|
606
|
-
});
|
|
607
|
-
const { surname: i, name: r, patronymic: n } = he(o);
|
|
608
|
-
(!i || !r) && e.addIssue({
|
|
609
|
-
code: c.ZodIssueCode.custom,
|
|
610
|
-
message: "Введите имя и фамилию"
|
|
611
|
-
}), E.test(r) || e.addIssue({
|
|
612
|
-
code: c.ZodIssueCode.custom,
|
|
613
|
-
message: "Неверно введено имя"
|
|
614
|
-
}), E.test(i) || e.addIssue({
|
|
615
|
-
code: c.ZodIssueCode.custom,
|
|
616
|
-
message: "Неверно введена фамилия"
|
|
617
|
-
}), n && (be.test(n) || e.addIssue({
|
|
618
|
-
code: c.ZodIssueCode.custom,
|
|
619
|
-
message: "Неверно введено отчество"
|
|
620
|
-
}));
|
|
621
|
-
}), Qe = c.string().length(10, { message: k.INVALID_DATE }).superRefine((o, e) => {
|
|
622
|
-
const [i, r, n] = (o == null ? void 0 : o.split(".")) ?? "", d = F(`${i}/${r}/${n}`, "dd/MM/yyyy", /* @__PURE__ */ new Date());
|
|
623
|
-
+n <= 1950 && e.addIssue({
|
|
624
|
-
code: c.ZodIssueCode.custom,
|
|
625
|
-
message: k.INVALID_DATE
|
|
626
|
-
}), Y(d) || e.addIssue({
|
|
627
|
-
code: c.ZodIssueCode.custom,
|
|
628
|
-
message: k.INVALID_DATE
|
|
629
|
-
}), (/* @__PURE__ */ new Date()).getTime() < new Date(d).getTime() && e.addIssue({
|
|
630
|
-
code: c.ZodIssueCode.custom,
|
|
631
|
-
message: k.FUTURE_DATE_NOT_ALLOWED
|
|
632
|
-
});
|
|
633
|
-
});
|
|
633
|
+
}, Ke = void 0, Ye = void 0;
|
|
634
634
|
var G = {}, W = {};
|
|
635
635
|
(function(o) {
|
|
636
636
|
Object.defineProperty(o, "__esModule", {
|
|
@@ -840,7 +840,7 @@ var ye = ge(
|
|
|
840
840
|
}
|
|
841
841
|
}
|
|
842
842
|
);
|
|
843
|
-
const X = /* @__PURE__ */ A(ye),
|
|
843
|
+
const X = /* @__PURE__ */ A(ye), et = {
|
|
844
844
|
theme: {
|
|
845
845
|
backgroundColor: {
|
|
846
846
|
color: N,
|
|
@@ -927,7 +927,7 @@ const X = /* @__PURE__ */ A(ye), Ke = {
|
|
|
927
927
|
);
|
|
928
928
|
})
|
|
929
929
|
]
|
|
930
|
-
},
|
|
930
|
+
}, tt = {
|
|
931
931
|
theme: {
|
|
932
932
|
extend: {
|
|
933
933
|
transitionDuration: {
|
|
@@ -967,7 +967,7 @@ const X = /* @__PURE__ */ A(ye), Ke = {
|
|
|
967
967
|
}
|
|
968
968
|
}
|
|
969
969
|
}
|
|
970
|
-
},
|
|
970
|
+
}, rt = {
|
|
971
971
|
theme: {
|
|
972
972
|
screens: {
|
|
973
973
|
mobile: { max: "1187px" },
|
|
@@ -996,7 +996,7 @@ const X = /* @__PURE__ */ A(ye), Ke = {
|
|
|
996
996
|
md: "0 12px 20px 0 rgba(0, 33, 87, 0.10)",
|
|
997
997
|
lg: "0 16px 24px 0 rgba(0, 33, 87, 0.16)"
|
|
998
998
|
},
|
|
999
|
-
zIndex:
|
|
999
|
+
zIndex: he,
|
|
1000
1000
|
extend: {
|
|
1001
1001
|
bgGradientDeg: O
|
|
1002
1002
|
}
|
|
@@ -1189,7 +1189,7 @@ const X = /* @__PURE__ */ A(ye), Ke = {
|
|
|
1189
1189
|
] }) }),
|
|
1190
1190
|
m && u
|
|
1191
1191
|
] });
|
|
1192
|
-
},
|
|
1192
|
+
}, ot = ({ bannerVariant: o, ...e }) => {
|
|
1193
1193
|
switch (o) {
|
|
1194
1194
|
case "sepatateImg":
|
|
1195
1195
|
return /* @__PURE__ */ t.jsx(B, { ...e });
|
|
@@ -1347,7 +1347,7 @@ const X = /* @__PURE__ */ A(ye), Ke = {
|
|
|
1347
1347
|
}
|
|
1348
1348
|
)
|
|
1349
1349
|
] });
|
|
1350
|
-
}, Ee = ({ text: o, classes: e }) => /* @__PURE__ */ t.jsx("div", { className: a("desk-body-regular-m text-color-footer", e == null ? void 0 : e.text), children: o }),
|
|
1350
|
+
}, Ee = ({ text: o, classes: e }) => /* @__PURE__ */ t.jsx("div", { className: a("desk-body-regular-m text-color-footer", e == null ? void 0 : e.text), children: o }), nt = ({
|
|
1351
1351
|
withSocial: o = !0,
|
|
1352
1352
|
withPhones: e = !0,
|
|
1353
1353
|
withNavLinks: i = !0,
|
|
@@ -1405,7 +1405,7 @@ const X = /* @__PURE__ */ A(ye), Ke = {
|
|
|
1405
1405
|
default:
|
|
1406
1406
|
return null;
|
|
1407
1407
|
}
|
|
1408
|
-
},
|
|
1408
|
+
}, it = (o) => {
|
|
1409
1409
|
const { logoPath: e = "/", logoType: i = "main", classes: r } = o;
|
|
1410
1410
|
return /* @__PURE__ */ t.jsx("header", { className: a("flex h-[72px] items-center justify-center bg-color-white", r == null ? void 0 : r.header), children: /* @__PURE__ */ t.jsx(g, { className: a(r == null ? void 0 : r.container), children: /* @__PURE__ */ t.jsxs("div", { className: a("flex items-center justify-between gap-5", r == null ? void 0 : r.wrapper), children: [
|
|
1411
1411
|
/* @__PURE__ */ t.jsx(
|
|
@@ -1447,7 +1447,7 @@ const X = /* @__PURE__ */ A(ye), Ke = {
|
|
|
1447
1447
|
] })
|
|
1448
1448
|
]
|
|
1449
1449
|
}
|
|
1450
|
-
),
|
|
1450
|
+
), at = ({ heading: o, stepsList: e, classes: i }) => /* @__PURE__ */ t.jsx(R, { children: /* @__PURE__ */ t.jsx(g, { children: /* @__PURE__ */ t.jsxs("div", { className: a("flex flex-col gap-12", i == null ? void 0 : i.root), children: [
|
|
1451
1451
|
/* @__PURE__ */ t.jsx(y, { as: "h2", className: a("text-color-dark", i == null ? void 0 : i.headline), children: o }),
|
|
1452
1452
|
/* @__PURE__ */ t.jsx(
|
|
1453
1453
|
"div",
|
|
@@ -1552,7 +1552,7 @@ const X = /* @__PURE__ */ A(ye), Ke = {
|
|
|
1552
1552
|
] }),
|
|
1553
1553
|
/* @__PURE__ */ t.jsx("p", { className: a("mob-body-regular-l text-color-secondary"), children: r })
|
|
1554
1554
|
] }) });
|
|
1555
|
-
}, _ = ({ intent: o, title: e, desktopHidden: i = !1, mobileHidden: r = !1 }) => /* @__PURE__ */ t.jsx("h2", { className: a(Fe({ intent: o, desktopHidden: i, mobileHidden: r })), children: e }), Se = ({ textContent: o, intent: e, withButton: i }) => /* @__PURE__ */ t.jsx("ul", { className: a(Ae({ intent: e, withButton: i })), children: o == null ? void 0 : o.map((r, n) => /* @__PURE__ */ t.jsx(Re, { intent: e, data: r }, n)) }),
|
|
1555
|
+
}, _ = ({ intent: o, title: e, desktopHidden: i = !1, mobileHidden: r = !1 }) => /* @__PURE__ */ t.jsx("h2", { className: a(Fe({ intent: o, desktopHidden: i, mobileHidden: r })), children: e }), Se = ({ textContent: o, intent: e, withButton: i }) => /* @__PURE__ */ t.jsx("ul", { className: a(Ae({ intent: e, withButton: i })), children: o == null ? void 0 : o.map((r, n) => /* @__PURE__ */ t.jsx(Re, { intent: e, data: r }, n)) }), dt = ({
|
|
1556
1556
|
title: o,
|
|
1557
1557
|
buttonConfig: e,
|
|
1558
1558
|
intent: i = "twoItems",
|
|
@@ -1600,32 +1600,32 @@ const X = /* @__PURE__ */ A(ye), Ke = {
|
|
|
1600
1600
|
};
|
|
1601
1601
|
export {
|
|
1602
1602
|
J as Advantages,
|
|
1603
|
-
|
|
1604
|
-
|
|
1603
|
+
mt as Badge,
|
|
1604
|
+
ot as Banner,
|
|
1605
1605
|
B as BannerWithSeparateImg,
|
|
1606
1606
|
He as Breadcrumbs,
|
|
1607
1607
|
j as Button,
|
|
1608
1608
|
Ge as ButtonIcon,
|
|
1609
1609
|
We as CustomLink,
|
|
1610
|
-
|
|
1611
|
-
|
|
1610
|
+
Ke as DADATA_BASE_CACHE_URL,
|
|
1611
|
+
Ye as DADATA_BASE_CONSTANTS_URL,
|
|
1612
1612
|
Ze as Document,
|
|
1613
|
-
|
|
1613
|
+
nt as Footer,
|
|
1614
1614
|
y as Heading,
|
|
1615
1615
|
f as Icon,
|
|
1616
1616
|
K as Loader,
|
|
1617
|
-
|
|
1617
|
+
dt as LongBanner,
|
|
1618
1618
|
ut as Notification,
|
|
1619
|
-
|
|
1619
|
+
it as PageHeader,
|
|
1620
1620
|
S as PhoneView,
|
|
1621
1621
|
Xe as ProgressBar,
|
|
1622
1622
|
g as ResponsiveContainer,
|
|
1623
1623
|
E as RgxCheckForHyphen,
|
|
1624
|
-
|
|
1625
|
-
|
|
1624
|
+
ce as RgxPatronymic,
|
|
1625
|
+
fe as RgxUnicode,
|
|
1626
1626
|
R as Section,
|
|
1627
1627
|
qe as Skeleton,
|
|
1628
|
-
|
|
1628
|
+
at as Stepper,
|
|
1629
1629
|
Ue as Table,
|
|
1630
1630
|
k as VALIDATION_MESSAGES,
|
|
1631
1631
|
N as allowedBackgroundColors,
|
|
@@ -1638,15 +1638,15 @@ export {
|
|
|
1638
1638
|
I as allowedStrokeColors,
|
|
1639
1639
|
V as allowedTextColors,
|
|
1640
1640
|
H as allowedTextStyles,
|
|
1641
|
-
|
|
1641
|
+
he as allowedZIndex,
|
|
1642
1642
|
Oe as capitalize,
|
|
1643
1643
|
a as cn,
|
|
1644
1644
|
Me as deepCompare,
|
|
1645
|
-
|
|
1645
|
+
tt as extendsPreset,
|
|
1646
1646
|
$e as formatToDate,
|
|
1647
1647
|
xt as isClient,
|
|
1648
|
-
|
|
1649
|
-
|
|
1648
|
+
rt as resetPreset,
|
|
1649
|
+
et as tailwindConfigBase,
|
|
1650
1650
|
Qe as zodCalendarValidate,
|
|
1651
1651
|
Je as zodDadataFioValidate
|
|
1652
1652
|
};
|