@scbt-ecom/ui 0.12.1 → 0.12.3
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/{Advantages-1Y5pepJl.js → Advantages-BIWy5o6G.js} +12 -5
- package/dist/Advantages-BIWy5o6G.js.map +1 -0
- package/dist/client.js +920 -903
- package/dist/client.js.map +1 -1
- package/dist/hybrid.js +49 -46
- package/dist/hybrid.js.map +1 -1
- package/dist/shared/ui/FloatButton.d.ts +4 -1
- package/dist/shared/ui/formElements/sliderControl/model/useLogarithmic.d.ts +15 -0
- package/dist/shared/ui/formElements/sliderControl/model/useSlider.d.ts +4 -2
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/dist/Advantages-1Y5pepJl.js.map +0 -1
package/dist/hybrid.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
var He = Object.defineProperty;
|
|
2
2
|
var Ae = (a, r, e) => r in a ? He(a, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : a[r] = e;
|
|
3
3
|
var l = (a, r, e) => Ae(a, typeof r != "symbol" ? r + "" : r, e);
|
|
4
|
-
import { j as i, c as d, I as P, a as O, R as A, B as J, z as D, g as he, H as xe, P as Re } from "./Advantages-
|
|
5
|
-
import { A as zn, b as qn, L as Qn, i as $n, s as Vn } from "./Advantages-
|
|
4
|
+
import { j as i, c as d, I as P, a as O, R as A, B as J, z as D, g as he, H as xe, P as Re } from "./Advantages-BIWy5o6G.js";
|
|
5
|
+
import { A as zn, b as qn, L as Qn, i as $n, s as Vn } from "./Advantages-BIWy5o6G.js";
|
|
6
6
|
import * as z from "react";
|
|
7
7
|
import { forwardRef as Be } from "react";
|
|
8
8
|
const yn = (a) => a.split("-").map((r) => r.charAt(0).toUpperCase() + r.slice(1).toLowerCase()).join("-"), gn = (...a) => {
|
|
@@ -193,15 +193,18 @@ const yn = (a) => a.split("-").map((r) => r.charAt(0).toUpperCase() + r.slice(1)
|
|
|
193
193
|
black: /* @__PURE__ */ i.jsx(P, { name: "brandLogos/logoBlack" }),
|
|
194
194
|
business: /* @__PURE__ */ i.jsx(P, { name: "brandLogos/logoBusiness" }),
|
|
195
195
|
insurance: /* @__PURE__ */ i.jsx(P, { name: "brandLogos/logoInsurance" })
|
|
196
|
-
}, jn = ({ isVisible: a, classes: r }) => /* @__PURE__ */ i.
|
|
196
|
+
}, jn = ({ isVisible: a, classes: r, children: e, buttonProps: t }) => /* @__PURE__ */ i.jsxs(
|
|
197
197
|
A,
|
|
198
198
|
{
|
|
199
199
|
className: d(
|
|
200
|
-
"fixed bottom-0 left-1/2 z-[60] w-full -translate-x-1/2 bg-color-white py-4 transition-transform desktop:hidden",
|
|
201
|
-
{ "
|
|
200
|
+
"fixed bottom-0 left-1/2 z-[60] w-full max-w-[604px] -translate-x-1/2 translate-y-0 rounded-t-lg bg-color-white px-6 py-4 shadow-[0px_-6px_8px_0px_#2929290A] transition-transform duration-1000 desktop:hidden",
|
|
201
|
+
{ "translate-y-[100%]": !a },
|
|
202
202
|
r == null ? void 0 : r.root
|
|
203
203
|
),
|
|
204
|
-
children:
|
|
204
|
+
children: [
|
|
205
|
+
e,
|
|
206
|
+
/* @__PURE__ */ i.jsx(J, { size: "lg", className: d("m-auto w-full", r == null ? void 0 : r.button), ...t, children: "Оформить заявку" })
|
|
207
|
+
]
|
|
205
208
|
}
|
|
206
209
|
), Xe = /^[\u0400-\u04FF\u00CB\u00EB -]+$/, de = /^(?:[^-]+(?:-[^-]+){0,4}|[^-]+)$/, Ze = /^[a-zA-Zа-яА-ЯёЁ]+(?:\s*-\s*[a-zA-Zа-яА-ЯёЁ]+){0,4}(?:\s+[a-zA-Zа-яА-ЯёЁ]+(?:\s*-\s*[a-zA-Zа-яА-ЯёЁ]+){0,4})?$/i, Y = {
|
|
207
210
|
REQUIRED: "Поле обязательно к заполнению",
|
|
@@ -221,7 +224,7 @@ const yn = (a) => a.split("-").map((r) => r.charAt(0).toUpperCase() + r.slice(1)
|
|
|
221
224
|
name: t,
|
|
222
225
|
patronymic: o
|
|
223
226
|
};
|
|
224
|
-
},
|
|
227
|
+
}, _n = D.string({ invalid_type_error: "Обязательно к заполнению", required_error: "Обязательно к заполнению" }).superRefine((a, r) => {
|
|
225
228
|
Xe.test(a) || r.addIssue({
|
|
226
229
|
code: D.ZodIssueCode.custom,
|
|
227
230
|
message: "Должна быть только кириллица"
|
|
@@ -616,11 +619,11 @@ const Tt = /^(\d+)(th|st|nd|rd)?/i, Pt = /\d+/i, Nt = {
|
|
|
616
619
|
wide: /^(before christ|before common era|anno domini|common era)/i
|
|
617
620
|
}, jt = {
|
|
618
621
|
any: [/^b/i, /^(a|c)/i]
|
|
619
|
-
},
|
|
622
|
+
}, _t = {
|
|
620
623
|
narrow: /^[1234]/i,
|
|
621
624
|
abbreviated: /^q[1234]/i,
|
|
622
625
|
wide: /^[1234](th|st|nd|rd)? quarter/i
|
|
623
|
-
},
|
|
626
|
+
}, It = {
|
|
624
627
|
any: [/1/i, /2/i, /3/i, /4/i]
|
|
625
628
|
}, Mt = {
|
|
626
629
|
narrow: /^[jfmasond]/i,
|
|
@@ -690,9 +693,9 @@ const Tt = /^(\d+)(th|st|nd|rd)?/i, Pt = /\d+/i, Nt = {
|
|
|
690
693
|
defaultParseWidth: "any"
|
|
691
694
|
}),
|
|
692
695
|
quarter: H({
|
|
693
|
-
matchPatterns:
|
|
696
|
+
matchPatterns: _t,
|
|
694
697
|
defaultMatchWidth: "wide",
|
|
695
|
-
parsePatterns:
|
|
698
|
+
parsePatterns: It,
|
|
696
699
|
defaultParseWidth: "any",
|
|
697
700
|
valueCallback: (a) => a + 1
|
|
698
701
|
}),
|
|
@@ -731,8 +734,8 @@ function Ht(a, r) {
|
|
|
731
734
|
return Math.round(t / we) + 1;
|
|
732
735
|
}
|
|
733
736
|
function ke(a, r) {
|
|
734
|
-
var k, c,
|
|
735
|
-
const e = T(a, r == null ? void 0 : r.in), t = e.getFullYear(), n = R(), o = (r == null ? void 0 : r.firstWeekContainsDate) ?? ((c = (k = r == null ? void 0 : r.locale) == null ? void 0 : k.options) == null ? void 0 : c.firstWeekContainsDate) ?? n.firstWeekContainsDate ?? ((F = (
|
|
737
|
+
var k, c, I, F;
|
|
738
|
+
const e = T(a, r == null ? void 0 : r.in), t = e.getFullYear(), n = R(), o = (r == null ? void 0 : r.firstWeekContainsDate) ?? ((c = (k = r == null ? void 0 : r.locale) == null ? void 0 : k.options) == null ? void 0 : c.firstWeekContainsDate) ?? n.firstWeekContainsDate ?? ((F = (I = n.locale) == null ? void 0 : I.options) == null ? void 0 : F.firstWeekContainsDate) ?? 1, s = v((r == null ? void 0 : r.in) || a, 0);
|
|
736
739
|
s.setFullYear(t + 1, 0, o), s.setHours(0, 0, 0, 0);
|
|
737
740
|
const u = C(s, r), h = v((r == null ? void 0 : r.in) || a, 0);
|
|
738
741
|
h.setFullYear(t, 0, o), h.setHours(0, 0, 0, 0);
|
|
@@ -961,7 +964,7 @@ function p(a, r) {
|
|
|
961
964
|
rest: r.slice(e[0].length)
|
|
962
965
|
} : null;
|
|
963
966
|
}
|
|
964
|
-
function
|
|
967
|
+
function _(a, r) {
|
|
965
968
|
const e = r.match(a);
|
|
966
969
|
if (!e)
|
|
967
970
|
return null;
|
|
@@ -1607,8 +1610,8 @@ class br extends m {
|
|
|
1607
1610
|
}
|
|
1608
1611
|
}
|
|
1609
1612
|
function S(a, r, e) {
|
|
1610
|
-
var c,
|
|
1611
|
-
const t = R(), n = (e == null ? void 0 : e.weekStartsOn) ?? ((
|
|
1613
|
+
var c, I, F, M;
|
|
1614
|
+
const t = R(), n = (e == null ? void 0 : e.weekStartsOn) ?? ((I = (c = e == null ? void 0 : e.locale) == null ? void 0 : c.options) == null ? void 0 : I.weekStartsOn) ?? t.weekStartsOn ?? ((M = (F = t.locale) == null ? void 0 : F.options) == null ? void 0 : M.weekStartsOn) ?? 0, o = T(a, e == null ? void 0 : e.in), s = o.getDay(), h = (r % 7 + 7) % 7, x = 7 - n, k = r < 0 || r > 6 ? r - (s + x) % 7 : (h + x) % 7 - (s + x) % 7;
|
|
1612
1615
|
return ye(o, k, e);
|
|
1613
1616
|
}
|
|
1614
1617
|
class wr extends m {
|
|
@@ -2042,7 +2045,7 @@ class jr extends m {
|
|
|
2042
2045
|
return e.setHours(n, 0, 0, 0), e;
|
|
2043
2046
|
}
|
|
2044
2047
|
}
|
|
2045
|
-
class
|
|
2048
|
+
class _r extends m {
|
|
2046
2049
|
constructor() {
|
|
2047
2050
|
super(...arguments);
|
|
2048
2051
|
l(this, "priority", 70);
|
|
@@ -2065,7 +2068,7 @@ class Ir extends m {
|
|
|
2065
2068
|
return e.getHours() >= 12 && n < 12 ? e.setHours(n + 12, 0, 0, 0) : e.setHours(n, 0, 0, 0), e;
|
|
2066
2069
|
}
|
|
2067
2070
|
}
|
|
2068
|
-
class
|
|
2071
|
+
class Ir extends m {
|
|
2069
2072
|
constructor() {
|
|
2070
2073
|
super(...arguments);
|
|
2071
2074
|
l(this, "priority", 70);
|
|
@@ -2158,25 +2161,25 @@ class Or extends m {
|
|
|
2158
2161
|
parse(e, t) {
|
|
2159
2162
|
switch (t) {
|
|
2160
2163
|
case "X":
|
|
2161
|
-
return
|
|
2164
|
+
return _(
|
|
2162
2165
|
j.basicOptionalMinutes,
|
|
2163
2166
|
e
|
|
2164
2167
|
);
|
|
2165
2168
|
case "XX":
|
|
2166
|
-
return
|
|
2169
|
+
return _(j.basic, e);
|
|
2167
2170
|
case "XXXX":
|
|
2168
|
-
return
|
|
2171
|
+
return _(
|
|
2169
2172
|
j.basicOptionalSeconds,
|
|
2170
2173
|
e
|
|
2171
2174
|
);
|
|
2172
2175
|
case "XXXXX":
|
|
2173
|
-
return
|
|
2176
|
+
return _(
|
|
2174
2177
|
j.extendedOptionalSeconds,
|
|
2175
2178
|
e
|
|
2176
2179
|
);
|
|
2177
2180
|
case "XXX":
|
|
2178
2181
|
default:
|
|
2179
|
-
return
|
|
2182
|
+
return _(j.extended, e);
|
|
2180
2183
|
}
|
|
2181
2184
|
}
|
|
2182
2185
|
set(e, t, n) {
|
|
@@ -2195,25 +2198,25 @@ class Fr extends m {
|
|
|
2195
2198
|
parse(e, t) {
|
|
2196
2199
|
switch (t) {
|
|
2197
2200
|
case "x":
|
|
2198
|
-
return
|
|
2201
|
+
return _(
|
|
2199
2202
|
j.basicOptionalMinutes,
|
|
2200
2203
|
e
|
|
2201
2204
|
);
|
|
2202
2205
|
case "xx":
|
|
2203
|
-
return
|
|
2206
|
+
return _(j.basic, e);
|
|
2204
2207
|
case "xxxx":
|
|
2205
|
-
return
|
|
2208
|
+
return _(
|
|
2206
2209
|
j.basicOptionalSeconds,
|
|
2207
2210
|
e
|
|
2208
2211
|
);
|
|
2209
2212
|
case "xxxxx":
|
|
2210
|
-
return
|
|
2213
|
+
return _(
|
|
2211
2214
|
j.extendedOptionalSeconds,
|
|
2212
2215
|
e
|
|
2213
2216
|
);
|
|
2214
2217
|
case "xxx":
|
|
2215
2218
|
default:
|
|
2216
|
-
return
|
|
2219
|
+
return _(j.extended, e);
|
|
2217
2220
|
}
|
|
2218
2221
|
}
|
|
2219
2222
|
set(e, t, n) {
|
|
@@ -2272,8 +2275,8 @@ const Wr = {
|
|
|
2272
2275
|
B: new Pr(),
|
|
2273
2276
|
h: new Nr(),
|
|
2274
2277
|
H: new jr(),
|
|
2275
|
-
K: new
|
|
2276
|
-
k: new
|
|
2278
|
+
K: new _r(),
|
|
2279
|
+
k: new Ir(),
|
|
2277
2280
|
m: new Mr(),
|
|
2278
2281
|
s: new Er(),
|
|
2279
2282
|
S: new Cr(),
|
|
@@ -2295,25 +2298,25 @@ function Qr(a, r, e, t) {
|
|
|
2295
2298
|
return N(f, s.formatLong);
|
|
2296
2299
|
}
|
|
2297
2300
|
return f;
|
|
2298
|
-
}).join("").match(Hr),
|
|
2301
|
+
}).join("").match(Hr), I = [];
|
|
2299
2302
|
for (let f of c) {
|
|
2300
2303
|
Vt(f) && fe(f, r, a), $t(f) && fe(f, r, a);
|
|
2301
2304
|
const b = f[0], N = Wr[b];
|
|
2302
2305
|
if (N) {
|
|
2303
2306
|
const { incompatibleTokens: oe } = N;
|
|
2304
2307
|
if (Array.isArray(oe)) {
|
|
2305
|
-
const ie =
|
|
2308
|
+
const ie = I.find(
|
|
2306
2309
|
(se) => oe.includes(se.token) || se.token === b
|
|
2307
2310
|
);
|
|
2308
2311
|
if (ie)
|
|
2309
2312
|
throw new RangeError(
|
|
2310
2313
|
`The format string mustn't contain \`${ie.fullToken}\` and \`${f}\` at the same time`
|
|
2311
2314
|
);
|
|
2312
|
-
} else if (N.incompatibleTokens === "*" &&
|
|
2315
|
+
} else if (N.incompatibleTokens === "*" && I.length > 0)
|
|
2313
2316
|
throw new RangeError(
|
|
2314
2317
|
`The format string mustn't contain \`${f}\` and any other token at the same time`
|
|
2315
2318
|
);
|
|
2316
|
-
|
|
2319
|
+
I.push({ token: b, fullToken: f });
|
|
2317
2320
|
const G = N.run(
|
|
2318
2321
|
a,
|
|
2319
2322
|
f,
|
|
@@ -2353,7 +2356,7 @@ function Qr(a, r, e, t) {
|
|
|
2353
2356
|
function $r(a) {
|
|
2354
2357
|
return a.match(Rr)[1].replace(Br, "'");
|
|
2355
2358
|
}
|
|
2356
|
-
const
|
|
2359
|
+
const In = D.string().length(10, { message: Y.INVALID_DATE }).superRefine((a, r) => {
|
|
2357
2360
|
const [e, t, n] = (a == null ? void 0 : a.split(".")) ?? "", o = Qr(`${e}/${t}/${n}`, "dd/MM/yyyy", /* @__PURE__ */ new Date());
|
|
2358
2361
|
+n <= 1950 && r.addIssue({
|
|
2359
2362
|
code: D.ZodIssueCode.custom,
|
|
@@ -2430,7 +2433,7 @@ const _n = D.string().length(10, { message: Y.INVALID_DATE }).superRefine((a, r)
|
|
|
2430
2433
|
"primary-disabled": "#809bc7",
|
|
2431
2434
|
"blue-grey-600": "#94a4b7",
|
|
2432
2435
|
...B
|
|
2433
|
-
},
|
|
2436
|
+
}, _e = {
|
|
2434
2437
|
"barvcray-200": "#ebeef4",
|
|
2435
2438
|
"barvcray-300": "#dde1e8",
|
|
2436
2439
|
"greymint-200": "#deecee",
|
|
@@ -2489,7 +2492,7 @@ const _n = D.string().length(10, { message: Y.INVALID_DATE }).superRefine((a, r)
|
|
|
2489
2492
|
white: "#ffffff",
|
|
2490
2493
|
"primary-disabled": "#809bc7",
|
|
2491
2494
|
...B
|
|
2492
|
-
},
|
|
2495
|
+
}, Ie = {
|
|
2493
2496
|
none: "0",
|
|
2494
2497
|
sm: "4px",
|
|
2495
2498
|
md: "8px",
|
|
@@ -2804,7 +2807,7 @@ const We = /* @__PURE__ */ he(Xr), Cn = {
|
|
|
2804
2807
|
theme: {
|
|
2805
2808
|
backgroundColor: {
|
|
2806
2809
|
color: Q,
|
|
2807
|
-
banner:
|
|
2810
|
+
banner: _e,
|
|
2808
2811
|
icon: E
|
|
2809
2812
|
},
|
|
2810
2813
|
textColor: {
|
|
@@ -2815,7 +2818,7 @@ const We = /* @__PURE__ */ he(Xr), Cn = {
|
|
|
2815
2818
|
stroke: E,
|
|
2816
2819
|
borderColor: $,
|
|
2817
2820
|
outlineColor: $,
|
|
2818
|
-
borderRadius:
|
|
2821
|
+
borderRadius: Ie,
|
|
2819
2822
|
fontFamily: { roboto: ["var(--ff-roboto)", "sans-serif"] },
|
|
2820
2823
|
fontSize: Ee,
|
|
2821
2824
|
lineHeight: Ce,
|
|
@@ -2945,7 +2948,7 @@ const We = /* @__PURE__ */ he(Xr), Cn = {
|
|
|
2945
2948
|
},
|
|
2946
2949
|
backgroundColor: {
|
|
2947
2950
|
color: Q,
|
|
2948
|
-
banner:
|
|
2951
|
+
banner: _e,
|
|
2949
2952
|
icon: E
|
|
2950
2953
|
},
|
|
2951
2954
|
textColor: {
|
|
@@ -2956,7 +2959,7 @@ const We = /* @__PURE__ */ he(Xr), Cn = {
|
|
|
2956
2959
|
stroke: E,
|
|
2957
2960
|
borderColor: $,
|
|
2958
2961
|
outlineColor: $,
|
|
2959
|
-
borderRadius:
|
|
2962
|
+
borderRadius: Ie,
|
|
2960
2963
|
fontFamily: { roboto: ["var(--ff-roboto)", "sans-serif"] },
|
|
2961
2964
|
fontSize: Ee,
|
|
2962
2965
|
lineHeight: Ce,
|
|
@@ -3351,7 +3354,7 @@ const Ur = {
|
|
|
3351
3354
|
return /* @__PURE__ */ i.jsx("li", { className: d(fn({ intent: r })), children: /* @__PURE__ */ i.jsxs("div", { className: "desktop:max-w-[264px]", children: [
|
|
3352
3355
|
/* @__PURE__ */ i.jsxs("div", { className: d("mb-2 flex items-center gap-2"), children: [
|
|
3353
3356
|
/* @__PURE__ */ i.jsx("h4", { className: d("mob-title-bold-m text-color-dark"), children: e }),
|
|
3354
|
-
n && /* @__PURE__ */ i.jsx(Re, { triggerElement: /* @__PURE__ */ i.jsx(P, { className: d("size-
|
|
3357
|
+
n && /* @__PURE__ */ i.jsx(Re, { triggerElement: /* @__PURE__ */ i.jsx(P, { className: d("size-5 text-icon-blue-grey-600"), name: "info/helpCircle" }), children: n })
|
|
3355
3358
|
] }),
|
|
3356
3359
|
/* @__PURE__ */ i.jsx("p", { className: d("mob-body-regular-l text-color-secondary"), children: t })
|
|
3357
3360
|
] }) });
|
|
@@ -3429,8 +3432,8 @@ export {
|
|
|
3429
3432
|
Y as VALIDATION_MESSAGES,
|
|
3430
3433
|
Q as allowedBackgroundColors,
|
|
3431
3434
|
Me as allowedBackgroundDeg,
|
|
3432
|
-
|
|
3433
|
-
|
|
3435
|
+
_e as allowedBannersBackgroundColors,
|
|
3436
|
+
Ie as allowedBorderRadius,
|
|
3434
3437
|
Ee as allowedFontSize,
|
|
3435
3438
|
E as allowedIconsColors,
|
|
3436
3439
|
Ce as allowedLineHeight,
|
|
@@ -3449,8 +3452,8 @@ export {
|
|
|
3449
3452
|
Fn as resetPreset,
|
|
3450
3453
|
Vn as scrollToElement,
|
|
3451
3454
|
Cn as tailwindConfigBase,
|
|
3452
|
-
|
|
3453
|
-
|
|
3455
|
+
In as zodCalendarValidate,
|
|
3456
|
+
_n as zodDadataFioSchema,
|
|
3454
3457
|
En as zodOtpCodeSchema,
|
|
3455
3458
|
Mn as zodPhoneSchema
|
|
3456
3459
|
};
|