@scbt-ecom/ui 0.12.6 → 0.12.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/hybrid.js +43 -40
- package/dist/hybrid.js.map +1 -1
- package/package.json +1 -1
package/dist/hybrid.js
CHANGED
|
@@ -224,8 +224,11 @@ const yn = (a) => a.split("-").map((r) => r.charAt(0).toUpperCase() + r.slice(1)
|
|
|
224
224
|
name: t,
|
|
225
225
|
patronymic: o
|
|
226
226
|
};
|
|
227
|
-
},
|
|
228
|
-
|
|
227
|
+
}, In = D.string({ invalid_type_error: "Обязательно к заполнению", required_error: "Обязательно к заполнению" }).superRefine((a, r) => {
|
|
228
|
+
a === "" && r.addIssue({
|
|
229
|
+
code: D.ZodIssueCode.custom,
|
|
230
|
+
message: "Введите имя и фамилию"
|
|
231
|
+
}), Xe.test(a) || r.addIssue({
|
|
229
232
|
code: D.ZodIssueCode.custom,
|
|
230
233
|
message: "Должна быть только кириллица"
|
|
231
234
|
});
|
|
@@ -619,11 +622,11 @@ const Tt = /^(\d+)(th|st|nd|rd)?/i, Pt = /\d+/i, Nt = {
|
|
|
619
622
|
wide: /^(before christ|before common era|anno domini|common era)/i
|
|
620
623
|
}, jt = {
|
|
621
624
|
any: [/^b/i, /^(a|c)/i]
|
|
622
|
-
},
|
|
625
|
+
}, It = {
|
|
623
626
|
narrow: /^[1234]/i,
|
|
624
627
|
abbreviated: /^q[1234]/i,
|
|
625
628
|
wide: /^[1234](th|st|nd|rd)? quarter/i
|
|
626
|
-
},
|
|
629
|
+
}, _t = {
|
|
627
630
|
any: [/1/i, /2/i, /3/i, /4/i]
|
|
628
631
|
}, Mt = {
|
|
629
632
|
narrow: /^[jfmasond]/i,
|
|
@@ -693,9 +696,9 @@ const Tt = /^(\d+)(th|st|nd|rd)?/i, Pt = /\d+/i, Nt = {
|
|
|
693
696
|
defaultParseWidth: "any"
|
|
694
697
|
}),
|
|
695
698
|
quarter: H({
|
|
696
|
-
matchPatterns:
|
|
699
|
+
matchPatterns: It,
|
|
697
700
|
defaultMatchWidth: "wide",
|
|
698
|
-
parsePatterns:
|
|
701
|
+
parsePatterns: _t,
|
|
699
702
|
defaultParseWidth: "any",
|
|
700
703
|
valueCallback: (a) => a + 1
|
|
701
704
|
}),
|
|
@@ -734,8 +737,8 @@ function Ht(a, r) {
|
|
|
734
737
|
return Math.round(t / we) + 1;
|
|
735
738
|
}
|
|
736
739
|
function ke(a, r) {
|
|
737
|
-
var k, c,
|
|
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 = (
|
|
740
|
+
var k, c, _, F;
|
|
741
|
+
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 = (_ = n.locale) == null ? void 0 : _.options) == null ? void 0 : F.firstWeekContainsDate) ?? 1, s = v((r == null ? void 0 : r.in) || a, 0);
|
|
739
742
|
s.setFullYear(t + 1, 0, o), s.setHours(0, 0, 0, 0);
|
|
740
743
|
const u = C(s, r), h = v((r == null ? void 0 : r.in) || a, 0);
|
|
741
744
|
h.setFullYear(t, 0, o), h.setHours(0, 0, 0, 0);
|
|
@@ -964,7 +967,7 @@ function p(a, r) {
|
|
|
964
967
|
rest: r.slice(e[0].length)
|
|
965
968
|
} : null;
|
|
966
969
|
}
|
|
967
|
-
function
|
|
970
|
+
function I(a, r) {
|
|
968
971
|
const e = r.match(a);
|
|
969
972
|
if (!e)
|
|
970
973
|
return null;
|
|
@@ -1610,8 +1613,8 @@ class br extends m {
|
|
|
1610
1613
|
}
|
|
1611
1614
|
}
|
|
1612
1615
|
function S(a, r, e) {
|
|
1613
|
-
var c,
|
|
1614
|
-
const t = R(), n = (e == null ? void 0 : e.weekStartsOn) ?? ((
|
|
1616
|
+
var c, _, F, M;
|
|
1617
|
+
const t = R(), n = (e == null ? void 0 : e.weekStartsOn) ?? ((_ = (c = e == null ? void 0 : e.locale) == null ? void 0 : c.options) == null ? void 0 : _.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;
|
|
1615
1618
|
return ye(o, k, e);
|
|
1616
1619
|
}
|
|
1617
1620
|
class wr extends m {
|
|
@@ -2045,7 +2048,7 @@ class jr extends m {
|
|
|
2045
2048
|
return e.setHours(n, 0, 0, 0), e;
|
|
2046
2049
|
}
|
|
2047
2050
|
}
|
|
2048
|
-
class
|
|
2051
|
+
class Ir extends m {
|
|
2049
2052
|
constructor() {
|
|
2050
2053
|
super(...arguments);
|
|
2051
2054
|
l(this, "priority", 70);
|
|
@@ -2068,7 +2071,7 @@ class _r extends m {
|
|
|
2068
2071
|
return e.getHours() >= 12 && n < 12 ? e.setHours(n + 12, 0, 0, 0) : e.setHours(n, 0, 0, 0), e;
|
|
2069
2072
|
}
|
|
2070
2073
|
}
|
|
2071
|
-
class
|
|
2074
|
+
class _r extends m {
|
|
2072
2075
|
constructor() {
|
|
2073
2076
|
super(...arguments);
|
|
2074
2077
|
l(this, "priority", 70);
|
|
@@ -2161,25 +2164,25 @@ class Or extends m {
|
|
|
2161
2164
|
parse(e, t) {
|
|
2162
2165
|
switch (t) {
|
|
2163
2166
|
case "X":
|
|
2164
|
-
return
|
|
2167
|
+
return I(
|
|
2165
2168
|
j.basicOptionalMinutes,
|
|
2166
2169
|
e
|
|
2167
2170
|
);
|
|
2168
2171
|
case "XX":
|
|
2169
|
-
return
|
|
2172
|
+
return I(j.basic, e);
|
|
2170
2173
|
case "XXXX":
|
|
2171
|
-
return
|
|
2174
|
+
return I(
|
|
2172
2175
|
j.basicOptionalSeconds,
|
|
2173
2176
|
e
|
|
2174
2177
|
);
|
|
2175
2178
|
case "XXXXX":
|
|
2176
|
-
return
|
|
2179
|
+
return I(
|
|
2177
2180
|
j.extendedOptionalSeconds,
|
|
2178
2181
|
e
|
|
2179
2182
|
);
|
|
2180
2183
|
case "XXX":
|
|
2181
2184
|
default:
|
|
2182
|
-
return
|
|
2185
|
+
return I(j.extended, e);
|
|
2183
2186
|
}
|
|
2184
2187
|
}
|
|
2185
2188
|
set(e, t, n) {
|
|
@@ -2198,25 +2201,25 @@ class Fr extends m {
|
|
|
2198
2201
|
parse(e, t) {
|
|
2199
2202
|
switch (t) {
|
|
2200
2203
|
case "x":
|
|
2201
|
-
return
|
|
2204
|
+
return I(
|
|
2202
2205
|
j.basicOptionalMinutes,
|
|
2203
2206
|
e
|
|
2204
2207
|
);
|
|
2205
2208
|
case "xx":
|
|
2206
|
-
return
|
|
2209
|
+
return I(j.basic, e);
|
|
2207
2210
|
case "xxxx":
|
|
2208
|
-
return
|
|
2211
|
+
return I(
|
|
2209
2212
|
j.basicOptionalSeconds,
|
|
2210
2213
|
e
|
|
2211
2214
|
);
|
|
2212
2215
|
case "xxxxx":
|
|
2213
|
-
return
|
|
2216
|
+
return I(
|
|
2214
2217
|
j.extendedOptionalSeconds,
|
|
2215
2218
|
e
|
|
2216
2219
|
);
|
|
2217
2220
|
case "xxx":
|
|
2218
2221
|
default:
|
|
2219
|
-
return
|
|
2222
|
+
return I(j.extended, e);
|
|
2220
2223
|
}
|
|
2221
2224
|
}
|
|
2222
2225
|
set(e, t, n) {
|
|
@@ -2275,8 +2278,8 @@ const Wr = {
|
|
|
2275
2278
|
B: new Pr(),
|
|
2276
2279
|
h: new Nr(),
|
|
2277
2280
|
H: new jr(),
|
|
2278
|
-
K: new
|
|
2279
|
-
k: new
|
|
2281
|
+
K: new Ir(),
|
|
2282
|
+
k: new _r(),
|
|
2280
2283
|
m: new Mr(),
|
|
2281
2284
|
s: new Er(),
|
|
2282
2285
|
S: new Cr(),
|
|
@@ -2298,25 +2301,25 @@ function Qr(a, r, e, t) {
|
|
|
2298
2301
|
return N(f, s.formatLong);
|
|
2299
2302
|
}
|
|
2300
2303
|
return f;
|
|
2301
|
-
}).join("").match(Hr),
|
|
2304
|
+
}).join("").match(Hr), _ = [];
|
|
2302
2305
|
for (let f of c) {
|
|
2303
2306
|
Vt(f) && fe(f, r, a), $t(f) && fe(f, r, a);
|
|
2304
2307
|
const b = f[0], N = Wr[b];
|
|
2305
2308
|
if (N) {
|
|
2306
2309
|
const { incompatibleTokens: oe } = N;
|
|
2307
2310
|
if (Array.isArray(oe)) {
|
|
2308
|
-
const ie =
|
|
2311
|
+
const ie = _.find(
|
|
2309
2312
|
(se) => oe.includes(se.token) || se.token === b
|
|
2310
2313
|
);
|
|
2311
2314
|
if (ie)
|
|
2312
2315
|
throw new RangeError(
|
|
2313
2316
|
`The format string mustn't contain \`${ie.fullToken}\` and \`${f}\` at the same time`
|
|
2314
2317
|
);
|
|
2315
|
-
} else if (N.incompatibleTokens === "*" &&
|
|
2318
|
+
} else if (N.incompatibleTokens === "*" && _.length > 0)
|
|
2316
2319
|
throw new RangeError(
|
|
2317
2320
|
`The format string mustn't contain \`${f}\` and any other token at the same time`
|
|
2318
2321
|
);
|
|
2319
|
-
|
|
2322
|
+
_.push({ token: b, fullToken: f });
|
|
2320
2323
|
const G = N.run(
|
|
2321
2324
|
a,
|
|
2322
2325
|
f,
|
|
@@ -2356,7 +2359,7 @@ function Qr(a, r, e, t) {
|
|
|
2356
2359
|
function $r(a) {
|
|
2357
2360
|
return a.match(Rr)[1].replace(Br, "'");
|
|
2358
2361
|
}
|
|
2359
|
-
const
|
|
2362
|
+
const _n = D.string().length(10, { message: Y.INVALID_DATE }).superRefine((a, r) => {
|
|
2360
2363
|
const [e, t, n] = (a == null ? void 0 : a.split(".")) ?? "", o = Qr(`${e}/${t}/${n}`, "dd/MM/yyyy", /* @__PURE__ */ new Date());
|
|
2361
2364
|
+n <= 1950 && r.addIssue({
|
|
2362
2365
|
code: D.ZodIssueCode.custom,
|
|
@@ -2433,7 +2436,7 @@ const In = D.string().length(10, { message: Y.INVALID_DATE }).superRefine((a, r)
|
|
|
2433
2436
|
"primary-disabled": "#809bc7",
|
|
2434
2437
|
"blue-grey-600": "#94a4b7",
|
|
2435
2438
|
...B
|
|
2436
|
-
},
|
|
2439
|
+
}, Ie = {
|
|
2437
2440
|
"barvcray-200": "#ebeef4",
|
|
2438
2441
|
"barvcray-300": "#dde1e8",
|
|
2439
2442
|
"greymint-200": "#deecee",
|
|
@@ -2492,7 +2495,7 @@ const In = D.string().length(10, { message: Y.INVALID_DATE }).superRefine((a, r)
|
|
|
2492
2495
|
white: "#ffffff",
|
|
2493
2496
|
"primary-disabled": "#809bc7",
|
|
2494
2497
|
...B
|
|
2495
|
-
},
|
|
2498
|
+
}, _e = {
|
|
2496
2499
|
none: "0",
|
|
2497
2500
|
sm: "4px",
|
|
2498
2501
|
md: "8px",
|
|
@@ -2807,7 +2810,7 @@ const We = /* @__PURE__ */ he(Xr), Cn = {
|
|
|
2807
2810
|
theme: {
|
|
2808
2811
|
backgroundColor: {
|
|
2809
2812
|
color: Q,
|
|
2810
|
-
banner:
|
|
2813
|
+
banner: Ie,
|
|
2811
2814
|
icon: E
|
|
2812
2815
|
},
|
|
2813
2816
|
textColor: {
|
|
@@ -2818,7 +2821,7 @@ const We = /* @__PURE__ */ he(Xr), Cn = {
|
|
|
2818
2821
|
stroke: E,
|
|
2819
2822
|
borderColor: $,
|
|
2820
2823
|
outlineColor: $,
|
|
2821
|
-
borderRadius:
|
|
2824
|
+
borderRadius: _e,
|
|
2822
2825
|
fontFamily: { roboto: ["var(--ff-roboto)", "sans-serif"] },
|
|
2823
2826
|
fontSize: Ee,
|
|
2824
2827
|
lineHeight: Ce,
|
|
@@ -2948,7 +2951,7 @@ const We = /* @__PURE__ */ he(Xr), Cn = {
|
|
|
2948
2951
|
},
|
|
2949
2952
|
backgroundColor: {
|
|
2950
2953
|
color: Q,
|
|
2951
|
-
banner:
|
|
2954
|
+
banner: Ie,
|
|
2952
2955
|
icon: E
|
|
2953
2956
|
},
|
|
2954
2957
|
textColor: {
|
|
@@ -2959,7 +2962,7 @@ const We = /* @__PURE__ */ he(Xr), Cn = {
|
|
|
2959
2962
|
stroke: E,
|
|
2960
2963
|
borderColor: $,
|
|
2961
2964
|
outlineColor: $,
|
|
2962
|
-
borderRadius:
|
|
2965
|
+
borderRadius: _e,
|
|
2963
2966
|
fontFamily: { roboto: ["var(--ff-roboto)", "sans-serif"] },
|
|
2964
2967
|
fontSize: Ee,
|
|
2965
2968
|
lineHeight: Ce,
|
|
@@ -3432,8 +3435,8 @@ export {
|
|
|
3432
3435
|
Y as VALIDATION_MESSAGES,
|
|
3433
3436
|
Q as allowedBackgroundColors,
|
|
3434
3437
|
Me as allowedBackgroundDeg,
|
|
3435
|
-
|
|
3436
|
-
|
|
3438
|
+
Ie as allowedBannersBackgroundColors,
|
|
3439
|
+
_e as allowedBorderRadius,
|
|
3437
3440
|
Ee as allowedFontSize,
|
|
3438
3441
|
E as allowedIconsColors,
|
|
3439
3442
|
Ce as allowedLineHeight,
|
|
@@ -3452,8 +3455,8 @@ export {
|
|
|
3452
3455
|
Fn as resetPreset,
|
|
3453
3456
|
Vn as scrollToElement,
|
|
3454
3457
|
Cn as tailwindConfigBase,
|
|
3455
|
-
|
|
3456
|
-
|
|
3458
|
+
_n as zodCalendarValidate,
|
|
3459
|
+
In as zodDadataFioSchema,
|
|
3457
3460
|
En as zodOtpCodeSchema,
|
|
3458
3461
|
Mn as zodPhoneSchema
|
|
3459
3462
|
};
|