@scbt-ecom/ui 0.22.5 → 0.22.7
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/CustomLink-BHI03NwX.js.map +1 -1
- package/dist/shared/ui/phoneView/PhoneView.d.ts +3 -3
- package/dist/ui.js +1 -1
- package/dist/ui.js.map +1 -1
- package/dist/widget.js +27 -24
- package/dist/widget.js.map +1 -1
- package/dist/widgets/pageHeader/PageHeader.d.ts +2 -2
- package/dist/widgets/pageHeader/types.d.ts +4 -4
- package/dist/widgets/stepper/Stepper.d.ts +3 -1
- package/package.json +1 -1
package/dist/widget.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { j as t, B as g, H as
|
|
1
|
+
import { j as t, B as g, H as k, c as j, R as a, b as R, P as W, I as u, C as w, S as T, a as V, L as D, d as y, A as E } from "./CustomLink-BHI03NwX.js";
|
|
2
2
|
import { c as i } from "./cn-DIfn7EPB.js";
|
|
3
3
|
import { s as O } from "./scrollToElement-B-reg4jF.js";
|
|
4
4
|
import { u as b } from "./useDevice-L83kSsN7.js";
|
|
@@ -42,7 +42,7 @@ const G = j(
|
|
|
42
42
|
children: [
|
|
43
43
|
/* @__PURE__ */ t.jsxs("div", { className: i("flex flex-col items-start justify-between px-4 desktop:px-8 desktop:py-8", n == null ? void 0 : n.itemWrapper), children: [
|
|
44
44
|
/* @__PURE__ */ t.jsxs("div", { className: i("flex flex-col gap-4", n == null ? void 0 : n.itemTextContainer), children: [
|
|
45
|
-
/* @__PURE__ */ t.jsx(
|
|
45
|
+
/* @__PURE__ */ t.jsx(k, { as: "h4", className: i("desktop:desk-title-bold-s", n == null ? void 0 : n.headingBenefitItem), children: e }),
|
|
46
46
|
/* @__PURE__ */ t.jsx("p", { className: i("mob-body-regular-l text-icon-blue-grey-800 desktop:desk-body-regular-l", n == null ? void 0 : n.itemDescription), children: o })
|
|
47
47
|
] }),
|
|
48
48
|
x && l && p
|
|
@@ -60,22 +60,25 @@ const G = j(
|
|
|
60
60
|
fourCards: "grid-cols-1 mobile:grid-rows-[400px,1fr,1fr,400px] desktop:grid-cols-3"
|
|
61
61
|
}
|
|
62
62
|
}
|
|
63
|
-
}), jt = ({ heading: o, cards: e, classes: d, intent: r }) => /* @__PURE__ */ t.jsx("section", { className: i("pb-20", d == null ? void 0 : d.section), children: /* @__PURE__ */ t.jsxs(
|
|
64
|
-
/* @__PURE__ */ t.jsx(
|
|
63
|
+
}), jt = ({ heading: o, cards: e, classes: d, intent: r }) => /* @__PURE__ */ t.jsx("section", { className: i("pb-20", d == null ? void 0 : d.section), children: /* @__PURE__ */ t.jsxs(a, { children: [
|
|
64
|
+
/* @__PURE__ */ t.jsx(k, { className: "mb-8", as: "h2", children: o }),
|
|
65
65
|
/* @__PURE__ */ t.jsx("ul", { className: i(S({ intent: r }), d == null ? void 0 : d.grid), children: e == null ? void 0 : e.map((n) => /* @__PURE__ */ t.jsx(Z, { intent: r, classes: d, ...n }, n.img)) })
|
|
66
66
|
] }) }), $ = (o) => {
|
|
67
|
+
var e;
|
|
67
68
|
switch (o.variant) {
|
|
68
69
|
case "withButton":
|
|
69
|
-
return /* @__PURE__ */ t.
|
|
70
|
+
return /* @__PURE__ */ t.jsxs(g, { intent: "secondary", size: "sm", ...o.buttonProps, children: [
|
|
71
|
+
(e = o.buttonProps) == null ? void 0 : e.children,
|
|
72
|
+
" || Оформить заявку"
|
|
73
|
+
] });
|
|
70
74
|
case "withPhone":
|
|
71
|
-
|
|
72
|
-
return /* @__PURE__ */ t.jsx(W, { phone: e, text: d, ...o.phoneProps });
|
|
75
|
+
return /* @__PURE__ */ t.jsx(W, { ...o.phoneProps });
|
|
73
76
|
default:
|
|
74
77
|
return null;
|
|
75
78
|
}
|
|
76
79
|
}, bt = (o) => {
|
|
77
80
|
const { logoPath: e = "/", logoType: d = "main", classes: r } = o;
|
|
78
|
-
return /* @__PURE__ */ t.jsx("header", { className: i("flex h-[
|
|
81
|
+
return /* @__PURE__ */ t.jsx("header", { className: i("flex h-[64px] items-center justify-center bg-color-white desktop:h-[72px]", r == null ? void 0 : r.header), children: /* @__PURE__ */ t.jsx(a, { className: i(r == null ? void 0 : r.container), children: /* @__PURE__ */ t.jsxs("div", { className: i("flex items-center justify-between gap-5", r == null ? void 0 : r.wrapper), children: [
|
|
79
82
|
/* @__PURE__ */ t.jsx(
|
|
80
83
|
"a",
|
|
81
84
|
{
|
|
@@ -87,7 +90,7 @@ const G = j(
|
|
|
87
90
|
"flex items-center justify-center [&_svg]:w-[132px] desktop:[&_svg]:h-[32px] desktop:[&_svg]:w-[192px]",
|
|
88
91
|
r == null ? void 0 : r.logo
|
|
89
92
|
),
|
|
90
|
-
children:
|
|
93
|
+
children: R[d]
|
|
91
94
|
}
|
|
92
95
|
),
|
|
93
96
|
$(o)
|
|
@@ -162,7 +165,7 @@ const G = j(
|
|
|
162
165
|
] })
|
|
163
166
|
}
|
|
164
167
|
),
|
|
165
|
-
/* @__PURE__ */ t.jsxs(
|
|
168
|
+
/* @__PURE__ */ t.jsxs(a, { "data-id": "banner-container", className: i("h-full", n == null ? void 0 : n.container), children: [
|
|
166
169
|
/* @__PURE__ */ t.jsx("div", { "data-id": "banner", className: i("flex h-full", n == null ? void 0 : n.wrapper), children: /* @__PURE__ */ t.jsxs(
|
|
167
170
|
"div",
|
|
168
171
|
{
|
|
@@ -170,7 +173,7 @@ const G = j(
|
|
|
170
173
|
className: i("flex w-[328px] flex-col gap-10 pt-6 desktop:w-full desktop:pt-20", n == null ? void 0 : n.textBlock),
|
|
171
174
|
children: [
|
|
172
175
|
/* @__PURE__ */ t.jsxs("div", { className: "flex flex-col gap-4", children: [
|
|
173
|
-
/* @__PURE__ */ t.jsx(
|
|
176
|
+
/* @__PURE__ */ t.jsx(k, { "data-id": "banner-title", as: "h1", className: i("text-color-white", n == null ? void 0 : n.title), children: o }),
|
|
174
177
|
/* @__PURE__ */ t.jsx("p", { "data-id": "banner-subtitle", className: i("desk-body-regular-l text-color-white", n == null ? void 0 : n.subtitle), children: e })
|
|
175
178
|
] }),
|
|
176
179
|
/* @__PURE__ */ t.jsx(
|
|
@@ -211,11 +214,11 @@ const G = j(
|
|
|
211
214
|
}
|
|
212
215
|
);
|
|
213
216
|
return /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
214
|
-
/* @__PURE__ */ t.jsx("section", { "data-id": "banner-section", className: i("bg-banner-skyblue-300 desktop:h-[456px]", n == null ? void 0 : n.section), children: /* @__PURE__ */ t.jsxs(
|
|
217
|
+
/* @__PURE__ */ t.jsx("section", { "data-id": "banner-section", className: i("bg-banner-skyblue-300 desktop:h-[456px]", n == null ? void 0 : n.section), children: /* @__PURE__ */ t.jsxs(a, { "data-id": "banner-container", className: i("relative", n == null ? void 0 : n.container), children: [
|
|
215
218
|
/* @__PURE__ */ t.jsxs("div", { "data-id": "banner", className: i("flex flex-col desktop:flex-row desktop:justify-between", n == null ? void 0 : n.wrapper), children: [
|
|
216
219
|
/* @__PURE__ */ t.jsxs("div", { className: "flex flex-col desktop:gap-10 desktop:pt-20", children: [
|
|
217
220
|
/* @__PURE__ */ t.jsxs("div", { "data-id": "banner-text-block", className: i("flex flex-col gap-4 pt-6 desktop:pt-0", n == null ? void 0 : n.textBlock), children: [
|
|
218
|
-
/* @__PURE__ */ t.jsx(
|
|
221
|
+
/* @__PURE__ */ t.jsx(k, { "data-id": "banner-title", as: "h1", className: i("text-color-dark", n == null ? void 0 : n.title), children: o }),
|
|
219
222
|
/* @__PURE__ */ t.jsx("p", { "data-id": "banner-subtitle", className: i("desk-body-regular-l text-color-dark", n == null ? void 0 : n.subtitle), children: e })
|
|
220
223
|
] }),
|
|
221
224
|
/* @__PURE__ */ t.jsx(M, { buttonsConfig: d, classes: n })
|
|
@@ -269,7 +272,7 @@ const G = j(
|
|
|
269
272
|
e == null ? void 0 : e.advantageItem
|
|
270
273
|
),
|
|
271
274
|
children: [
|
|
272
|
-
/* @__PURE__ */ t.jsx(
|
|
275
|
+
/* @__PURE__ */ t.jsx(k, { as: "h4", className: i("text-color-dark", e == null ? void 0 : e.advantageTitle), children: d }),
|
|
273
276
|
/* @__PURE__ */ t.jsx("p", { className: i("desk-body-regular-l text-color-secondary", e == null ? void 0 : e.advantageDescription), children: r })
|
|
274
277
|
]
|
|
275
278
|
},
|
|
@@ -410,7 +413,7 @@ const G = j(
|
|
|
410
413
|
)) })
|
|
411
414
|
] }, d))
|
|
412
415
|
}
|
|
413
|
-
),
|
|
416
|
+
), A = ({ text: o, classes: e }) => /* @__PURE__ */ t.jsx("div", { className: i("desk-body-regular-m text-color-footer", e == null ? void 0 : e.copyRight), children: o }), c = ({ classes: o }) => /* @__PURE__ */ t.jsx(
|
|
414
417
|
"a",
|
|
415
418
|
{
|
|
416
419
|
"aria-label": "logo",
|
|
@@ -440,7 +443,7 @@ const G = j(
|
|
|
440
443
|
ligal: h,
|
|
441
444
|
copyright: l = J,
|
|
442
445
|
classes: p
|
|
443
|
-
}) => /* @__PURE__ */ t.jsx("footer", { className: i("w-full bg-color-footer py-8 desktop:py-10", p == null ? void 0 : p.root), children: /* @__PURE__ */ t.jsx(
|
|
446
|
+
}) => /* @__PURE__ */ t.jsx("footer", { className: i("w-full bg-color-footer py-8 desktop:py-10", p == null ? void 0 : p.root), children: /* @__PURE__ */ t.jsx(a, { className: i(p == null ? void 0 : p.footerContainer), children: /* @__PURE__ */ t.jsxs("div", { className: i("mobile:pb-[176px]", p == null ? void 0 : p.footerWrapper), children: [
|
|
444
447
|
/* @__PURE__ */ t.jsxs(
|
|
445
448
|
"div",
|
|
446
449
|
{
|
|
@@ -450,7 +453,7 @@ const G = j(
|
|
|
450
453
|
),
|
|
451
454
|
children: [
|
|
452
455
|
/* @__PURE__ */ t.jsxs("div", { className: i(p == null ? void 0 : p.footerSocialBlock), children: [
|
|
453
|
-
/* @__PURE__ */ t.jsx(
|
|
456
|
+
/* @__PURE__ */ t.jsx(c, { classes: p == null ? void 0 : p.footerLogo }),
|
|
454
457
|
o && /* @__PURE__ */ t.jsx(Y, { socialsLinks: x, classes: p == null ? void 0 : p.socialLinks })
|
|
455
458
|
] }),
|
|
456
459
|
e && /* @__PURE__ */ t.jsx(L, { phones: m, classes: p == null ? void 0 : p.phonesBlock })
|
|
@@ -467,7 +470,7 @@ const G = j(
|
|
|
467
470
|
p == null ? void 0 : p.footerBottom
|
|
468
471
|
),
|
|
469
472
|
children: [
|
|
470
|
-
r && /* @__PURE__ */ t.jsx(
|
|
473
|
+
r && /* @__PURE__ */ t.jsx(A, { text: l, classes: p == null ? void 0 : p.copyright }),
|
|
471
474
|
n && /* @__PURE__ */ t.jsx(s, { classes: p == null ? void 0 : p.siteMap })
|
|
472
475
|
]
|
|
473
476
|
}
|
|
@@ -491,13 +494,13 @@ const G = j(
|
|
|
491
494
|
}
|
|
492
495
|
),
|
|
493
496
|
/* @__PURE__ */ t.jsxs("div", { className: i("flex flex-col gap-4", r == null ? void 0 : r.textBlock), children: [
|
|
494
|
-
/* @__PURE__ */ t.jsx(
|
|
497
|
+
/* @__PURE__ */ t.jsx(k, { as: "h4", className: i("text-color-dark", r == null ? void 0 : r.title), children: o }),
|
|
495
498
|
/* @__PURE__ */ t.jsx("p", { className: i("desk-body-regular-l text-color-tetriary", r == null ? void 0 : r.description), children: e })
|
|
496
499
|
] })
|
|
497
500
|
]
|
|
498
501
|
}
|
|
499
|
-
), Nt = ({ heading: o, stepsList: e, classes: d }) => /* @__PURE__ */ t.jsx(
|
|
500
|
-
/* @__PURE__ */ t.jsx(
|
|
502
|
+
), Nt = ({ heading: o, stepsList: e, classes: d }) => /* @__PURE__ */ t.jsx(T, { className: d == null ? void 0 : d.root, children: /* @__PURE__ */ t.jsx(a, { className: d == null ? void 0 : d.container, children: /* @__PURE__ */ t.jsxs("div", { className: i("flex flex-col gap-12 desktop:items-start", d == null ? void 0 : d.wrapper), children: [
|
|
503
|
+
/* @__PURE__ */ t.jsx(k, { as: "h2", className: i("text-color-dark", d == null ? void 0 : d.headline), children: o }),
|
|
501
504
|
/* @__PURE__ */ t.jsx(
|
|
502
505
|
"div",
|
|
503
506
|
{
|
|
@@ -610,7 +613,7 @@ const G = j(
|
|
|
610
613
|
classes: x
|
|
611
614
|
}) => {
|
|
612
615
|
const m = !!e, f = d === "fourItems", h = d === "twoItems";
|
|
613
|
-
return /* @__PURE__ */ t.jsx("section", { className: i(x == null ? void 0 : x.section), children: /* @__PURE__ */ t.jsxs(
|
|
616
|
+
return /* @__PURE__ */ t.jsx("section", { className: i(x == null ? void 0 : x.section), children: /* @__PURE__ */ t.jsxs(a, { className: i(x == null ? void 0 : x.mainContainer), children: [
|
|
614
617
|
h && /* @__PURE__ */ t.jsx(N, { intent: d, title: o }),
|
|
615
618
|
/* @__PURE__ */ t.jsxs(
|
|
616
619
|
"div",
|
|
@@ -869,11 +872,11 @@ const G = j(
|
|
|
869
872
|
}
|
|
870
873
|
}), Ct = ({ data: o, mobileAccordionProps: e, rootAccordionProps: d, classes: r }) => {
|
|
871
874
|
var n, x;
|
|
872
|
-
return /* @__PURE__ */ t.jsx("section", { id: "inter-linking", className: i("min-w-full desktop:min-w-[1140px]", r == null ? void 0 : r.root), children: /* @__PURE__ */ t.jsx(
|
|
875
|
+
return /* @__PURE__ */ t.jsx("section", { id: "inter-linking", className: i("min-w-full desktop:min-w-[1140px]", r == null ? void 0 : r.root), children: /* @__PURE__ */ t.jsx(a, { children: /* @__PURE__ */ t.jsx(
|
|
873
876
|
E,
|
|
874
877
|
{
|
|
875
878
|
defaultOpen: !0,
|
|
876
|
-
label: /* @__PURE__ */ t.jsx(
|
|
879
|
+
label: /* @__PURE__ */ t.jsx(k, { as: "h4", className: i("text-left", r == null ? void 0 : r.heading), children: o == null ? void 0 : o.heading }),
|
|
877
880
|
...d,
|
|
878
881
|
classes: {
|
|
879
882
|
...d == null ? void 0 : d.classes,
|