stone-kit 0.0.240 → 0.0.241
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/components/FormModal/ui/ModalForm.d.ts +4 -1
- package/dist/components/FormModal/ui/ModalForm.js +296 -293
- package/dist/components/ModalSuccess/ModalSuccess.d.ts +1 -0
- package/dist/components/ModalSuccess/ModalSuccess.js +5 -0
- package/dist/main.d.ts +1 -0
- package/dist/main.js +6 -4
- package/package.json +1 -1
|
@@ -17,6 +17,9 @@ interface IModalFormProps {
|
|
|
17
17
|
} | undefined | null;
|
|
18
18
|
textAreaPlaceholder?: string;
|
|
19
19
|
rowsTextArea?: number;
|
|
20
|
+
isRequiredPhone?: boolean;
|
|
21
|
+
isRequiredEmail?: boolean;
|
|
22
|
+
isRequiredPhoneOrEmail?: boolean;
|
|
20
23
|
}
|
|
21
24
|
type IFormPageInputs = {
|
|
22
25
|
phone: string;
|
|
@@ -26,5 +29,5 @@ type IFormPageInputs = {
|
|
|
26
29
|
advCheckBox?: boolean;
|
|
27
30
|
textarea?: string;
|
|
28
31
|
};
|
|
29
|
-
export declare const ModalForm: ({ isFormOpen, setIsFormOpen, title, isEmail, isTextArea, textAreaPlaceholder, subTitle, submitHandler, modalWidth, rowsTextArea, personalCheckBox, advCheckBox, }: IModalFormProps) => import("react/jsx-runtime").JSX.Element;
|
|
32
|
+
export declare const ModalForm: ({ isFormOpen, setIsFormOpen, title, isEmail, isTextArea, isRequiredPhone, isRequiredEmail, isRequiredPhoneOrEmail, textAreaPlaceholder, subTitle, submitHandler, modalWidth, rowsTextArea, personalCheckBox, advCheckBox, }: IModalFormProps) => import("react/jsx-runtime").JSX.Element;
|
|
30
33
|
export {};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as U, jsxs as Se } from "react/jsx-runtime";
|
|
2
2
|
import { I as xt } from "../../../index-CbZmuQco.js";
|
|
3
3
|
import { M as Vt } from "../../../Modal-258KOiTO.js";
|
|
4
|
-
import { Flex as
|
|
4
|
+
import { Flex as Ft } from "../../Flex/ui/Flex.js";
|
|
5
5
|
import { Input as Ee } from "../../Input/ui/Input.js";
|
|
6
6
|
import W from "react";
|
|
7
7
|
import { Button as Ke } from "../../Button/ui/Button.js";
|
|
8
|
-
import { NewIcon as
|
|
8
|
+
import { NewIcon as At } from "../../NewIcon/ui/NewIcon.js";
|
|
9
9
|
import { phoneReg as wt, nameReg as pt, emailReg as Dt } from "../utils/reg.js";
|
|
10
10
|
import { CheckBox as Ge } from "../../CheckBox/CheckBox.js";
|
|
11
11
|
import { TextArea as kt } from "../../TextArea/TextArea.js";
|
|
12
|
-
const St = "_btn_q5rib_1", Et = "_modal_q5rib_9", Ct = "_modalBody_q5rib_16", Bt = "_root_q5rib_21", Tt = "_title_q5rib_31", Rt = "_description_q5rib_38", Lt = "_inputWrapper_q5rib_45",
|
|
12
|
+
const St = "_btn_q5rib_1", Et = "_modal_q5rib_9", Ct = "_modalBody_q5rib_16", Bt = "_root_q5rib_21", Tt = "_title_q5rib_31", Rt = "_description_q5rib_38", Lt = "_inputWrapper_q5rib_45", ee = {
|
|
13
13
|
btn: St,
|
|
14
14
|
modal: Et,
|
|
15
15
|
modalBody: Ct,
|
|
@@ -18,11 +18,11 @@ const St = "_btn_q5rib_1", Et = "_modal_q5rib_9", Ct = "_modalBody_q5rib_16", Bt
|
|
|
18
18
|
description: Rt,
|
|
19
19
|
inputWrapper: Lt
|
|
20
20
|
};
|
|
21
|
-
var
|
|
21
|
+
var ge = (e) => e.type === "checkbox", oe = (e) => e instanceof Date, T = (e) => e == null;
|
|
22
22
|
const at = (e) => typeof e == "object";
|
|
23
|
-
var
|
|
23
|
+
var E = (e) => !T(e) && !Array.isArray(e) && at(e) && !oe(e), Mt = (e) => E(e) && e.target ? ge(e.target) ? e.target.checked : e.target.value : e, Ot = (e) => e.substring(0, e.search(/\.\d+(\.|$)/)) || e, Nt = (e, s) => e.has(Ot(s)), Ut = (e) => {
|
|
24
24
|
const s = e.constructor && e.constructor.prototype;
|
|
25
|
-
return
|
|
25
|
+
return E(s) && s.hasOwnProperty("isPrototypeOf");
|
|
26
26
|
}, Re = typeof window < "u" && typeof window.HTMLElement < "u" && typeof document < "u";
|
|
27
27
|
function P(e) {
|
|
28
28
|
let s;
|
|
@@ -31,7 +31,7 @@ function P(e) {
|
|
|
31
31
|
s = new Date(e);
|
|
32
32
|
else if (e instanceof Set)
|
|
33
33
|
s = new Set(e);
|
|
34
|
-
else if (!(Re && (e instanceof Blob || e instanceof FileList)) && (r ||
|
|
34
|
+
else if (!(Re && (e instanceof Blob || e instanceof FileList)) && (r || E(e)))
|
|
35
35
|
if (s = r ? [] : {}, !r && !Ut(e))
|
|
36
36
|
s = e;
|
|
37
37
|
else
|
|
@@ -41,24 +41,24 @@ function P(e) {
|
|
|
41
41
|
return e;
|
|
42
42
|
return s;
|
|
43
43
|
}
|
|
44
|
-
var
|
|
45
|
-
if (!s || !
|
|
44
|
+
var Ae = (e) => Array.isArray(e) ? e.filter(Boolean) : [], w = (e) => e === void 0, d = (e, s, r) => {
|
|
45
|
+
if (!s || !E(e))
|
|
46
46
|
return r;
|
|
47
|
-
const n =
|
|
47
|
+
const n = Ae(s.split(/[,[\].]+?/)).reduce((u, l) => T(u) ? u : u[l], e);
|
|
48
48
|
return w(n) || n === e ? w(e[s]) ? r : e[s] : n;
|
|
49
|
-
},
|
|
49
|
+
}, te = (e) => typeof e == "boolean", Le = (e) => /^\w*$/.test(e), lt = (e) => Ae(e.replace(/["|']|\]/g, "").split(/\.|\[/)), V = (e, s, r) => {
|
|
50
50
|
let n = -1;
|
|
51
51
|
const u = Le(s) ? [s] : lt(s), l = u.length, y = l - 1;
|
|
52
52
|
for (; ++n < l; ) {
|
|
53
53
|
const g = u[n];
|
|
54
|
-
let
|
|
54
|
+
let M = r;
|
|
55
55
|
if (n !== y) {
|
|
56
|
-
const
|
|
57
|
-
|
|
56
|
+
const q = e[g];
|
|
57
|
+
M = E(q) || Array.isArray(q) ? q : isNaN(+u[n + 1]) ? {} : [];
|
|
58
58
|
}
|
|
59
59
|
if (g === "__proto__")
|
|
60
60
|
return;
|
|
61
|
-
e[g] =
|
|
61
|
+
e[g] = M, e = e[g];
|
|
62
62
|
}
|
|
63
63
|
return e;
|
|
64
64
|
};
|
|
@@ -66,7 +66,7 @@ const Je = {
|
|
|
66
66
|
BLUR: "blur",
|
|
67
67
|
FOCUS_OUT: "focusout",
|
|
68
68
|
CHANGE: "change"
|
|
69
|
-
},
|
|
69
|
+
}, j = {
|
|
70
70
|
onBlur: "onBlur",
|
|
71
71
|
onChange: "onChange",
|
|
72
72
|
onSubmit: "onSubmit",
|
|
@@ -90,14 +90,14 @@ var qt = (e, s, r, n = !0) => {
|
|
|
90
90
|
Object.defineProperty(u, l, {
|
|
91
91
|
get: () => {
|
|
92
92
|
const y = l;
|
|
93
|
-
return s._proxyFormState[y] !==
|
|
93
|
+
return s._proxyFormState[y] !== j.all && (s._proxyFormState[y] = !n || j.all), e[y];
|
|
94
94
|
}
|
|
95
95
|
});
|
|
96
96
|
return u;
|
|
97
|
-
},
|
|
97
|
+
}, L = (e) => E(e) && !Object.keys(e).length, It = (e, s, r, n) => {
|
|
98
98
|
r(e);
|
|
99
99
|
const { name: u, ...l } = e;
|
|
100
|
-
return
|
|
100
|
+
return L(l) || Object.keys(l).length >= Object.keys(s).length || Object.keys(l).find((y) => s[y] === j.all);
|
|
101
101
|
}, _e = (e) => Array.isArray(e) ? e : [e];
|
|
102
102
|
function Pt(e) {
|
|
103
103
|
const s = W.useRef(e);
|
|
@@ -117,13 +117,13 @@ var J = (e) => typeof e == "string", Wt = (e, s, r, n, u) => J(e) ? (n && s.watc
|
|
|
117
117
|
[n]: u || !0
|
|
118
118
|
}
|
|
119
119
|
} : {}, Qe = (e) => ({
|
|
120
|
-
isOnSubmit: !e || e ===
|
|
121
|
-
isOnBlur: e ===
|
|
122
|
-
isOnChange: e ===
|
|
123
|
-
isOnAll: e ===
|
|
124
|
-
isOnTouch: e ===
|
|
120
|
+
isOnSubmit: !e || e === j.onSubmit,
|
|
121
|
+
isOnBlur: e === j.onBlur,
|
|
122
|
+
isOnChange: e === j.onChange,
|
|
123
|
+
isOnAll: e === j.all,
|
|
124
|
+
isOnTouch: e === j.onTouched
|
|
125
125
|
}), Xe = (e, s, r) => !r && (s.watchAll || s.watch.has(e) || [...s.watch].some((n) => e.startsWith(n) && /^\.\w+/.test(e.slice(n.length))));
|
|
126
|
-
const
|
|
126
|
+
const he = (e, s, r, n) => {
|
|
127
127
|
for (const u of r || Object.keys(e)) {
|
|
128
128
|
const l = d(e, u);
|
|
129
129
|
if (l) {
|
|
@@ -133,16 +133,16 @@ const ye = (e, s, r, n) => {
|
|
|
133
133
|
break;
|
|
134
134
|
if (y.ref && s(y.ref, y.name) && !n)
|
|
135
135
|
break;
|
|
136
|
-
|
|
136
|
+
he(g, s);
|
|
137
137
|
} else
|
|
138
|
-
|
|
138
|
+
E(g) && he(g, s);
|
|
139
139
|
}
|
|
140
140
|
}
|
|
141
141
|
};
|
|
142
142
|
var zt = (e, s, r) => {
|
|
143
143
|
const n = _e(d(e, r));
|
|
144
144
|
return V(n, "root", s[r]), V(e, r, n), e;
|
|
145
|
-
}, Me = (e) => e.type === "file",
|
|
145
|
+
}, Me = (e) => e.type === "file", re = (e) => typeof e == "function", be = (e) => {
|
|
146
146
|
if (!Re)
|
|
147
147
|
return !1;
|
|
148
148
|
const s = e ? e.ownerDocument : 0;
|
|
@@ -174,96 +174,96 @@ var ut = (e) => Array.isArray(e) ? e.reduce((s, r) => r && r.checked && !r.disab
|
|
|
174
174
|
value: r.value
|
|
175
175
|
} : s, et) : et;
|
|
176
176
|
function tt(e, s, r = "validate") {
|
|
177
|
-
if (me(e) || Array.isArray(e) && e.every(me) ||
|
|
177
|
+
if (me(e) || Array.isArray(e) && e.every(me) || te(e) && !e)
|
|
178
178
|
return {
|
|
179
179
|
type: r,
|
|
180
180
|
message: me(e) ? e : "",
|
|
181
181
|
ref: s
|
|
182
182
|
};
|
|
183
183
|
}
|
|
184
|
-
var
|
|
184
|
+
var ue = (e) => E(e) && !xe(e) ? e : {
|
|
185
185
|
value: e,
|
|
186
186
|
message: ""
|
|
187
187
|
}, rt = async (e, s, r, n, u) => {
|
|
188
|
-
const { ref: l, refs: y, required: g, maxLength:
|
|
189
|
-
if (!
|
|
188
|
+
const { ref: l, refs: y, required: g, maxLength: M, minLength: q, min: F, max: _, pattern: ie, validate: H, name: D, valueAsNumber: z, mount: K, disabled: G } = e._f, m = d(s, D);
|
|
189
|
+
if (!K || G)
|
|
190
190
|
return {};
|
|
191
|
-
const
|
|
192
|
-
n &&
|
|
193
|
-
},
|
|
194
|
-
const I =
|
|
195
|
-
|
|
196
|
-
type:
|
|
191
|
+
const O = y ? y[0] : l, B = (v) => {
|
|
192
|
+
n && O.reportValidity && (O.setCustomValidity(te(v) ? "" : v || ""), O.reportValidity());
|
|
193
|
+
}, A = {}, Y = Oe(l), ae = ge(l), Q = Y || ae, Z = (z || Me(l)) && w(l.value) && w(m) || be(l) && l.value === "" || m === "" || Array.isArray(m) && !m.length, R = Ht.bind(null, D, r, A), le = (v, b, k, C = X.maxLength, $ = X.minLength) => {
|
|
194
|
+
const I = v ? b : k;
|
|
195
|
+
A[D] = {
|
|
196
|
+
type: v ? C : $,
|
|
197
197
|
message: I,
|
|
198
198
|
ref: l,
|
|
199
|
-
...
|
|
199
|
+
...R(v ? C : $, I)
|
|
200
200
|
};
|
|
201
201
|
};
|
|
202
|
-
if (u ? !Array.isArray(m) || !m.length : g && (!Q && (
|
|
203
|
-
const { value:
|
|
204
|
-
if (
|
|
202
|
+
if (u ? !Array.isArray(m) || !m.length : g && (!Q && (Z || T(m)) || te(m) && !m || ae && !nt(y).isValid || Y && !ut(y).isValid)) {
|
|
203
|
+
const { value: v, message: b } = me(g) ? { value: !!g, message: g } : ue(g);
|
|
204
|
+
if (v && (A[D] = {
|
|
205
205
|
type: X.required,
|
|
206
206
|
message: b,
|
|
207
|
-
ref:
|
|
208
|
-
...
|
|
207
|
+
ref: O,
|
|
208
|
+
...R(X.required, b)
|
|
209
209
|
}, !r))
|
|
210
|
-
return
|
|
210
|
+
return B(b), A;
|
|
211
211
|
}
|
|
212
|
-
if (!
|
|
213
|
-
let
|
|
214
|
-
const
|
|
215
|
-
if (!
|
|
216
|
-
const
|
|
217
|
-
|
|
212
|
+
if (!Z && (!T(F) || !T(_))) {
|
|
213
|
+
let v, b;
|
|
214
|
+
const k = ue(_), C = ue(F);
|
|
215
|
+
if (!T(m) && !isNaN(m)) {
|
|
216
|
+
const $ = l.valueAsNumber || m && +m;
|
|
217
|
+
T(k.value) || (v = $ > k.value), T(C.value) || (b = $ < C.value);
|
|
218
218
|
} else {
|
|
219
|
-
const
|
|
220
|
-
J(
|
|
219
|
+
const $ = l.valueAsDate || new Date(m), I = (de) => /* @__PURE__ */ new Date((/* @__PURE__ */ new Date()).toDateString() + " " + de), ce = l.type == "time", fe = l.type == "week";
|
|
220
|
+
J(k.value) && m && (v = ce ? I(m) > I(k.value) : fe ? m > k.value : $ > new Date(k.value)), J(C.value) && m && (b = ce ? I(m) < I(C.value) : fe ? m < C.value : $ < new Date(C.value));
|
|
221
221
|
}
|
|
222
|
-
if ((
|
|
223
|
-
return
|
|
222
|
+
if ((v || b) && (le(!!v, k.message, C.message, X.max, X.min), !r))
|
|
223
|
+
return B(A[D].message), A;
|
|
224
224
|
}
|
|
225
|
-
if ((
|
|
226
|
-
const
|
|
227
|
-
if ((
|
|
228
|
-
return
|
|
225
|
+
if ((M || q) && !Z && (J(m) || u && Array.isArray(m))) {
|
|
226
|
+
const v = ue(M), b = ue(q), k = !T(v.value) && m.length > +v.value, C = !T(b.value) && m.length < +b.value;
|
|
227
|
+
if ((k || C) && (le(k, v.message, b.message), !r))
|
|
228
|
+
return B(A[D].message), A;
|
|
229
229
|
}
|
|
230
|
-
if (
|
|
231
|
-
const { value:
|
|
232
|
-
if (xe(
|
|
230
|
+
if (ie && !Z && J(m)) {
|
|
231
|
+
const { value: v, message: b } = ue(ie);
|
|
232
|
+
if (xe(v) && !m.match(v) && (A[D] = {
|
|
233
233
|
type: X.pattern,
|
|
234
234
|
message: b,
|
|
235
235
|
ref: l,
|
|
236
|
-
...
|
|
236
|
+
...R(X.pattern, b)
|
|
237
237
|
}, !r))
|
|
238
|
-
return
|
|
238
|
+
return B(b), A;
|
|
239
239
|
}
|
|
240
|
-
if (
|
|
241
|
-
if (
|
|
242
|
-
const
|
|
243
|
-
if (b && (
|
|
240
|
+
if (H) {
|
|
241
|
+
if (re(H)) {
|
|
242
|
+
const v = await H(m, s), b = tt(v, O);
|
|
243
|
+
if (b && (A[D] = {
|
|
244
244
|
...b,
|
|
245
|
-
...
|
|
245
|
+
...R(X.validate, b.message)
|
|
246
246
|
}, !r))
|
|
247
|
-
return
|
|
248
|
-
} else if (
|
|
249
|
-
let
|
|
250
|
-
for (const b in
|
|
251
|
-
if (!
|
|
247
|
+
return B(b.message), A;
|
|
248
|
+
} else if (E(H)) {
|
|
249
|
+
let v = {};
|
|
250
|
+
for (const b in H) {
|
|
251
|
+
if (!L(v) && !r)
|
|
252
252
|
break;
|
|
253
|
-
const
|
|
254
|
-
|
|
255
|
-
...
|
|
256
|
-
...
|
|
257
|
-
},
|
|
253
|
+
const k = tt(await H[b](m, s), O, b);
|
|
254
|
+
k && (v = {
|
|
255
|
+
...k,
|
|
256
|
+
...R(b, k.message)
|
|
257
|
+
}, B(k.message), r && (A[D] = v));
|
|
258
258
|
}
|
|
259
|
-
if (!
|
|
260
|
-
ref:
|
|
261
|
-
...
|
|
259
|
+
if (!L(v) && (A[D] = {
|
|
260
|
+
ref: O,
|
|
261
|
+
...v
|
|
262
262
|
}, !r))
|
|
263
|
-
return
|
|
263
|
+
return A;
|
|
264
264
|
}
|
|
265
265
|
}
|
|
266
|
-
return
|
|
266
|
+
return B(!0), A;
|
|
267
267
|
};
|
|
268
268
|
function $t(e, s) {
|
|
269
269
|
const r = s.slice(0, -1).length;
|
|
@@ -278,9 +278,9 @@ function jt(e) {
|
|
|
278
278
|
return !1;
|
|
279
279
|
return !0;
|
|
280
280
|
}
|
|
281
|
-
function
|
|
281
|
+
function S(e, s) {
|
|
282
282
|
const r = Array.isArray(s) ? s : Le(s) ? [s] : lt(s), n = r.length === 1 ? e : $t(e, r), u = r.length - 1, l = r[u];
|
|
283
|
-
return n && delete n[l], u !== 0 && (
|
|
283
|
+
return n && delete n[l], u !== 0 && (E(n) && L(n) || Array.isArray(n) && jt(n)) && S(e, r.slice(0, -1)), e;
|
|
284
284
|
}
|
|
285
285
|
var Ce = () => {
|
|
286
286
|
let e = [];
|
|
@@ -301,11 +301,11 @@ var Ce = () => {
|
|
|
301
301
|
e = [];
|
|
302
302
|
}
|
|
303
303
|
};
|
|
304
|
-
}, Ve = (e) =>
|
|
305
|
-
function
|
|
304
|
+
}, Ve = (e) => T(e) || !at(e);
|
|
305
|
+
function se(e, s) {
|
|
306
306
|
if (Ve(e) || Ve(s))
|
|
307
307
|
return e === s;
|
|
308
|
-
if (
|
|
308
|
+
if (oe(e) && oe(s))
|
|
309
309
|
return e.getTime() === s.getTime();
|
|
310
310
|
const r = Object.keys(e), n = Object.keys(s);
|
|
311
311
|
if (r.length !== n.length)
|
|
@@ -316,37 +316,37 @@ function re(e, s) {
|
|
|
316
316
|
return !1;
|
|
317
317
|
if (u !== "ref") {
|
|
318
318
|
const y = s[u];
|
|
319
|
-
if (
|
|
319
|
+
if (oe(l) && oe(y) || E(l) && E(y) || Array.isArray(l) && Array.isArray(y) ? !se(l, y) : l !== y)
|
|
320
320
|
return !1;
|
|
321
321
|
}
|
|
322
322
|
}
|
|
323
323
|
return !0;
|
|
324
324
|
}
|
|
325
|
-
var ot = (e) => e.type === "select-multiple", Kt = (e) => Oe(e) ||
|
|
325
|
+
var ot = (e) => e.type === "select-multiple", Kt = (e) => Oe(e) || ge(e), Be = (e) => be(e) && e.isConnected, ct = (e) => {
|
|
326
326
|
for (const s in e)
|
|
327
|
-
if (
|
|
327
|
+
if (re(e[s]))
|
|
328
328
|
return !0;
|
|
329
329
|
return !1;
|
|
330
330
|
};
|
|
331
|
-
function
|
|
331
|
+
function Fe(e, s = {}) {
|
|
332
332
|
const r = Array.isArray(e);
|
|
333
|
-
if (
|
|
333
|
+
if (E(e) || r)
|
|
334
334
|
for (const n in e)
|
|
335
|
-
Array.isArray(e[n]) ||
|
|
335
|
+
Array.isArray(e[n]) || E(e[n]) && !ct(e[n]) ? (s[n] = Array.isArray(e[n]) ? [] : {}, Fe(e[n], s[n])) : T(e[n]) || (s[n] = !0);
|
|
336
336
|
return s;
|
|
337
337
|
}
|
|
338
338
|
function ft(e, s, r) {
|
|
339
339
|
const n = Array.isArray(e);
|
|
340
|
-
if (
|
|
340
|
+
if (E(e) || n)
|
|
341
341
|
for (const u in e)
|
|
342
|
-
Array.isArray(e[u]) ||
|
|
342
|
+
Array.isArray(e[u]) || E(e[u]) && !ct(e[u]) ? w(s) || Ve(r[u]) ? r[u] = Array.isArray(e[u]) ? Fe(e[u], []) : { ...Fe(e[u]) } : ft(e[u], T(s) ? {} : s[u], r[u]) : r[u] = !se(e[u], s[u]);
|
|
343
343
|
return r;
|
|
344
344
|
}
|
|
345
|
-
var ve = (e, s) => ft(e, s,
|
|
345
|
+
var ve = (e, s) => ft(e, s, Fe(s)), dt = (e, { valueAsNumber: s, valueAsDate: r, setValueAs: n }) => w(e) ? e : s ? e === "" ? NaN : e && +e : r && J(e) ? new Date(e) : n ? n(e) : e;
|
|
346
346
|
function Te(e) {
|
|
347
347
|
const s = e.ref;
|
|
348
348
|
if (!(e.refs ? e.refs.every((r) => r.disabled) : s.disabled))
|
|
349
|
-
return Me(s) ? s.files : Oe(s) ? ut(e.refs).value : ot(s) ? [...s.selectedOptions].map(({ value: r }) => r) :
|
|
349
|
+
return Me(s) ? s.files : Oe(s) ? ut(e.refs).value : ot(s) ? [...s.selectedOptions].map(({ value: r }) => r) : ge(s) ? nt(e.refs).value : dt(w(s.value) ? e.ref.value : s.value, e);
|
|
350
350
|
}
|
|
351
351
|
var Gt = (e, s, r, n) => {
|
|
352
352
|
const u = {};
|
|
@@ -360,7 +360,7 @@ var Gt = (e, s, r, n) => {
|
|
|
360
360
|
fields: u,
|
|
361
361
|
shouldUseNativeValidation: n
|
|
362
362
|
};
|
|
363
|
-
},
|
|
363
|
+
}, ye = (e) => w(e) ? e : xe(e) ? e.source : E(e) ? xe(e.value) ? e.value.source : e.value : e, Jt = (e) => e.mount && (e.required || e.min || e.max || e.maxLength || e.minLength || e.pattern || e.validate);
|
|
364
364
|
function st(e, s, r) {
|
|
365
365
|
const n = d(e, r);
|
|
366
366
|
if (n || Le(r))
|
|
@@ -384,10 +384,10 @@ function st(e, s, r) {
|
|
|
384
384
|
name: r
|
|
385
385
|
};
|
|
386
386
|
}
|
|
387
|
-
var Qt = (e, s, r, n, u) => u.isOnAll ? !1 : !r && u.isOnTouch ? !(s || e) : (r ? n.isOnBlur : u.isOnBlur) ? !e : (r ? n.isOnChange : u.isOnChange) ? e : !0, Xt = (e, s) => !
|
|
387
|
+
var Qt = (e, s, r, n, u) => u.isOnAll ? !1 : !r && u.isOnTouch ? !(s || e) : (r ? n.isOnBlur : u.isOnBlur) ? !e : (r ? n.isOnChange : u.isOnChange) ? e : !0, Xt = (e, s) => !Ae(d(e, s)).length && S(e, s);
|
|
388
388
|
const Yt = {
|
|
389
|
-
mode:
|
|
390
|
-
reValidateMode:
|
|
389
|
+
mode: j.onSubmit,
|
|
390
|
+
reValidateMode: j.onChange,
|
|
391
391
|
shouldFocusError: !0
|
|
392
392
|
};
|
|
393
393
|
function Zt(e = {}) {
|
|
@@ -397,7 +397,7 @@ function Zt(e = {}) {
|
|
|
397
397
|
}, r = {
|
|
398
398
|
submitCount: 0,
|
|
399
399
|
isDirty: !1,
|
|
400
|
-
isLoading:
|
|
400
|
+
isLoading: re(s.defaultValues),
|
|
401
401
|
isValidating: !1,
|
|
402
402
|
isSubmitted: !1,
|
|
403
403
|
isSubmitting: !1,
|
|
@@ -408,7 +408,7 @@ function Zt(e = {}) {
|
|
|
408
408
|
validatingFields: {},
|
|
409
409
|
errors: s.errors || {},
|
|
410
410
|
disabled: s.disabled || !1
|
|
411
|
-
}, n = {}, u =
|
|
411
|
+
}, n = {}, u = E(s.defaultValues) || E(s.values) ? P(s.defaultValues || s.values) || {} : {}, l = s.shouldUnregister ? {} : P(u), y = {
|
|
412
412
|
action: !1,
|
|
413
413
|
mount: !1,
|
|
414
414
|
watch: !1
|
|
@@ -417,8 +417,8 @@ function Zt(e = {}) {
|
|
|
417
417
|
unMount: /* @__PURE__ */ new Set(),
|
|
418
418
|
array: /* @__PURE__ */ new Set(),
|
|
419
419
|
watch: /* @__PURE__ */ new Set()
|
|
420
|
-
},
|
|
421
|
-
const
|
|
420
|
+
}, M, q = 0;
|
|
421
|
+
const F = {
|
|
422
422
|
isDirty: !1,
|
|
423
423
|
dirtyFields: !1,
|
|
424
424
|
validatingFields: !1,
|
|
@@ -426,25 +426,25 @@ function Zt(e = {}) {
|
|
|
426
426
|
isValidating: !1,
|
|
427
427
|
isValid: !1,
|
|
428
428
|
errors: !1
|
|
429
|
-
},
|
|
429
|
+
}, _ = {
|
|
430
430
|
values: Ce(),
|
|
431
431
|
array: Ce(),
|
|
432
432
|
state: Ce()
|
|
433
|
-
},
|
|
434
|
-
clearTimeout(
|
|
435
|
-
},
|
|
436
|
-
if (
|
|
437
|
-
const i = s.resolver ?
|
|
438
|
-
i !== r.isValid &&
|
|
433
|
+
}, ie = Qe(s.mode), H = Qe(s.reValidateMode), D = s.criteriaMode === j.all, z = (t) => (i) => {
|
|
434
|
+
clearTimeout(q), q = setTimeout(t, i);
|
|
435
|
+
}, K = async (t) => {
|
|
436
|
+
if (F.isValid || t) {
|
|
437
|
+
const i = s.resolver ? L((await Q()).errors) : await R(n, !0);
|
|
438
|
+
i !== r.isValid && _.state.next({
|
|
439
439
|
isValid: i
|
|
440
440
|
});
|
|
441
441
|
}
|
|
442
|
-
},
|
|
443
|
-
(
|
|
444
|
-
a && (i ? V(r.validatingFields, a, i) :
|
|
445
|
-
}),
|
|
442
|
+
}, G = (t, i) => {
|
|
443
|
+
(F.isValidating || F.validatingFields) && ((t || Array.from(g.mount)).forEach((a) => {
|
|
444
|
+
a && (i ? V(r.validatingFields, a, i) : S(r.validatingFields, a));
|
|
445
|
+
}), _.state.next({
|
|
446
446
|
validatingFields: r.validatingFields,
|
|
447
|
-
isValidating: !
|
|
447
|
+
isValidating: !L(r.validatingFields)
|
|
448
448
|
}));
|
|
449
449
|
}, m = (t, i = [], a, f, c = !0, o = !0) => {
|
|
450
450
|
if (f && a) {
|
|
@@ -456,33 +456,33 @@ function Zt(e = {}) {
|
|
|
456
456
|
const h = a(d(r.errors, t), f.argA, f.argB);
|
|
457
457
|
c && V(r.errors, t, h), Xt(r.errors, t);
|
|
458
458
|
}
|
|
459
|
-
if (
|
|
459
|
+
if (F.touchedFields && o && Array.isArray(d(r.touchedFields, t))) {
|
|
460
460
|
const h = a(d(r.touchedFields, t), f.argA, f.argB);
|
|
461
461
|
c && V(r.touchedFields, t, h);
|
|
462
462
|
}
|
|
463
|
-
|
|
463
|
+
F.dirtyFields && (r.dirtyFields = ve(u, l)), _.state.next({
|
|
464
464
|
name: t,
|
|
465
|
-
isDirty:
|
|
465
|
+
isDirty: v(t, i),
|
|
466
466
|
dirtyFields: r.dirtyFields,
|
|
467
467
|
errors: r.errors,
|
|
468
468
|
isValid: r.isValid
|
|
469
469
|
});
|
|
470
470
|
} else
|
|
471
471
|
V(l, t, i);
|
|
472
|
-
},
|
|
473
|
-
V(r.errors, t, i),
|
|
472
|
+
}, O = (t, i) => {
|
|
473
|
+
V(r.errors, t, i), _.state.next({
|
|
474
474
|
errors: r.errors
|
|
475
475
|
});
|
|
476
|
-
},
|
|
477
|
-
r.errors = t,
|
|
476
|
+
}, B = (t) => {
|
|
477
|
+
r.errors = t, _.state.next({
|
|
478
478
|
errors: r.errors,
|
|
479
479
|
isValid: !1
|
|
480
480
|
});
|
|
481
|
-
},
|
|
481
|
+
}, A = (t, i, a, f) => {
|
|
482
482
|
const c = d(n, t);
|
|
483
483
|
if (c) {
|
|
484
484
|
const o = d(l, t, w(a) ? d(u, t) : a);
|
|
485
|
-
w(o) || f && f.defaultChecked || i ? V(l, t, i ? o : Te(c._f)) :
|
|
485
|
+
w(o) || f && f.defaultChecked || i ? V(l, t, i ? o : Te(c._f)) : C(t, o), y.mount && K();
|
|
486
486
|
}
|
|
487
487
|
}, Y = (t, i, a, f, c) => {
|
|
488
488
|
let o = !1, h = !1;
|
|
@@ -490,44 +490,44 @@ function Zt(e = {}) {
|
|
|
490
490
|
name: t
|
|
491
491
|
}, p = !!(d(n, t) && d(n, t)._f && d(n, t)._f.disabled);
|
|
492
492
|
if (!a || f) {
|
|
493
|
-
|
|
494
|
-
const
|
|
495
|
-
h = !!(!p && d(r.dirtyFields, t)),
|
|
493
|
+
F.isDirty && (h = r.isDirty, r.isDirty = x.isDirty = v(), o = h !== x.isDirty);
|
|
494
|
+
const N = p || se(d(u, t), i);
|
|
495
|
+
h = !!(!p && d(r.dirtyFields, t)), N || p ? S(r.dirtyFields, t) : V(r.dirtyFields, t, !0), x.dirtyFields = r.dirtyFields, o = o || F.dirtyFields && h !== !N;
|
|
496
496
|
}
|
|
497
497
|
if (a) {
|
|
498
|
-
const
|
|
499
|
-
|
|
498
|
+
const N = d(r.touchedFields, t);
|
|
499
|
+
N || (V(r.touchedFields, t, a), x.touchedFields = r.touchedFields, o = o || F.touchedFields && N !== a);
|
|
500
500
|
}
|
|
501
|
-
return o && c &&
|
|
502
|
-
},
|
|
503
|
-
const c = d(r.errors, t), o =
|
|
504
|
-
if (e.delayError && a ? (
|
|
501
|
+
return o && c && _.state.next(x), o ? x : {};
|
|
502
|
+
}, ae = (t, i, a, f) => {
|
|
503
|
+
const c = d(r.errors, t), o = F.isValid && te(i) && r.isValid !== i;
|
|
504
|
+
if (e.delayError && a ? (M = z(() => O(t, a)), M(e.delayError)) : (clearTimeout(q), M = null, a ? V(r.errors, t, a) : S(r.errors, t)), (a ? !se(c, a) : c) || !L(f) || o) {
|
|
505
505
|
const h = {
|
|
506
506
|
...f,
|
|
507
|
-
...o &&
|
|
507
|
+
...o && te(i) ? { isValid: i } : {},
|
|
508
508
|
errors: r.errors,
|
|
509
509
|
name: t
|
|
510
510
|
};
|
|
511
511
|
r = {
|
|
512
512
|
...r,
|
|
513
513
|
...h
|
|
514
|
-
},
|
|
514
|
+
}, _.state.next(h);
|
|
515
515
|
}
|
|
516
516
|
}, Q = async (t) => {
|
|
517
|
-
|
|
517
|
+
G(t, !0);
|
|
518
518
|
const i = await s.resolver(l, s.context, Gt(t || g.mount, n, s.criteriaMode, s.shouldUseNativeValidation));
|
|
519
|
-
return
|
|
520
|
-
},
|
|
519
|
+
return G(t), i;
|
|
520
|
+
}, Z = async (t) => {
|
|
521
521
|
const { errors: i } = await Q(t);
|
|
522
522
|
if (t)
|
|
523
523
|
for (const a of t) {
|
|
524
524
|
const f = d(i, a);
|
|
525
|
-
f ? V(r.errors, a, f) :
|
|
525
|
+
f ? V(r.errors, a, f) : S(r.errors, a);
|
|
526
526
|
}
|
|
527
527
|
else
|
|
528
528
|
r.errors = i;
|
|
529
529
|
return i;
|
|
530
|
-
},
|
|
530
|
+
}, R = async (t, i, a = {
|
|
531
531
|
valid: !0
|
|
532
532
|
}) => {
|
|
533
533
|
for (const f in t) {
|
|
@@ -536,54 +536,54 @@ function Zt(e = {}) {
|
|
|
536
536
|
const { _f: o, ...h } = c;
|
|
537
537
|
if (o) {
|
|
538
538
|
const x = g.array.has(o.name);
|
|
539
|
-
|
|
540
|
-
const p = await rt(c, l,
|
|
541
|
-
if (
|
|
539
|
+
G([f], !0);
|
|
540
|
+
const p = await rt(c, l, D, s.shouldUseNativeValidation && !i, x);
|
|
541
|
+
if (G([f]), p[o.name] && (a.valid = !1, i))
|
|
542
542
|
break;
|
|
543
|
-
!i && (d(p, o.name) ? x ? zt(r.errors, p, o.name) : V(r.errors, o.name, p[o.name]) :
|
|
543
|
+
!i && (d(p, o.name) ? x ? zt(r.errors, p, o.name) : V(r.errors, o.name, p[o.name]) : S(r.errors, o.name));
|
|
544
544
|
}
|
|
545
|
-
!
|
|
545
|
+
!L(h) && await R(h, i, a);
|
|
546
546
|
}
|
|
547
547
|
}
|
|
548
548
|
return a.valid;
|
|
549
|
-
},
|
|
549
|
+
}, le = () => {
|
|
550
550
|
for (const t of g.unMount) {
|
|
551
551
|
const i = d(n, t);
|
|
552
552
|
i && (i._f.refs ? i._f.refs.every((a) => !Be(a)) : !Be(i._f.ref)) && we(t);
|
|
553
553
|
}
|
|
554
554
|
g.unMount = /* @__PURE__ */ new Set();
|
|
555
|
-
},
|
|
555
|
+
}, v = (t, i) => (t && i && V(l, t, i), !se(Ne(), u)), b = (t, i, a) => Wt(t, g, {
|
|
556
556
|
...y.mount ? l : w(i) ? u : J(t) ? { [t]: i } : i
|
|
557
|
-
}, a, i),
|
|
557
|
+
}, a, i), k = (t) => Ae(d(y.mount ? l : u, t, e.shouldUnregister ? d(u, t, []) : [])), C = (t, i, a = {}) => {
|
|
558
558
|
const f = d(n, t);
|
|
559
559
|
let c = i;
|
|
560
560
|
if (f) {
|
|
561
561
|
const o = f._f;
|
|
562
|
-
o && (!o.disabled && V(l, t, dt(i, o)), c = be(o.ref) &&
|
|
562
|
+
o && (!o.disabled && V(l, t, dt(i, o)), c = be(o.ref) && T(i) ? "" : i, ot(o.ref) ? [...o.ref.options].forEach((h) => h.selected = c.includes(h.value)) : o.refs ? ge(o.ref) ? o.refs.length > 1 ? o.refs.forEach((h) => (!h.defaultChecked || !h.disabled) && (h.checked = Array.isArray(c) ? !!c.find((x) => x === h.value) : c === h.value)) : o.refs[0] && (o.refs[0].checked = !!c) : o.refs.forEach((h) => h.checked = h.value === c) : Me(o.ref) ? o.ref.value = "" : (o.ref.value = c, o.ref.type || _.values.next({
|
|
563
563
|
name: t,
|
|
564
564
|
values: { ...l }
|
|
565
565
|
})));
|
|
566
566
|
}
|
|
567
|
-
(a.shouldDirty || a.shouldTouch) && Y(t, c, a.shouldTouch, a.shouldDirty, !0), a.shouldValidate &&
|
|
568
|
-
},
|
|
567
|
+
(a.shouldDirty || a.shouldTouch) && Y(t, c, a.shouldTouch, a.shouldDirty, !0), a.shouldValidate && de(t);
|
|
568
|
+
}, $ = (t, i, a) => {
|
|
569
569
|
for (const f in i) {
|
|
570
570
|
const c = i[f], o = `${t}.${f}`, h = d(n, o);
|
|
571
|
-
(g.array.has(t) || !Ve(c) || h && !h._f) && !
|
|
571
|
+
(g.array.has(t) || !Ve(c) || h && !h._f) && !oe(c) ? $(o, c, a) : C(o, c, a);
|
|
572
572
|
}
|
|
573
573
|
}, I = (t, i, a = {}) => {
|
|
574
574
|
const f = d(n, t), c = g.array.has(t), o = P(i);
|
|
575
|
-
V(l, t, o), c ? (
|
|
575
|
+
V(l, t, o), c ? (_.array.next({
|
|
576
576
|
name: t,
|
|
577
577
|
values: { ...l }
|
|
578
|
-
}), (
|
|
578
|
+
}), (F.isDirty || F.dirtyFields) && a.shouldDirty && _.state.next({
|
|
579
579
|
name: t,
|
|
580
580
|
dirtyFields: ve(u, l),
|
|
581
|
-
isDirty:
|
|
582
|
-
})) : f && !f._f && !
|
|
581
|
+
isDirty: v(t, o)
|
|
582
|
+
})) : f && !f._f && !T(o) ? $(t, o, a) : C(t, o, a), Xe(t, g) && _.state.next({ ...r }), _.values.next({
|
|
583
583
|
name: y.mount ? t : void 0,
|
|
584
584
|
values: { ...l }
|
|
585
585
|
});
|
|
586
|
-
},
|
|
586
|
+
}, ce = async (t) => {
|
|
587
587
|
y.mount = !0;
|
|
588
588
|
const i = t.target;
|
|
589
589
|
let a = i.name, f = !0;
|
|
@@ -592,44 +592,44 @@ function Zt(e = {}) {
|
|
|
592
592
|
};
|
|
593
593
|
if (c) {
|
|
594
594
|
let x, p;
|
|
595
|
-
const
|
|
596
|
-
V(l, a,
|
|
597
|
-
const ke = Y(a,
|
|
598
|
-
if (!
|
|
595
|
+
const N = o(), ne = t.type === Je.BLUR || t.type === Je.FOCUS_OUT, _t = !Jt(c._f) && !s.resolver && !d(r.errors, a) && !c._f.deps || Qt(ne, d(r.touchedFields, a), r.isSubmitted, H, ie), De = Xe(a, g, ne);
|
|
596
|
+
V(l, a, N), ne ? (c._f.onBlur && c._f.onBlur(t), M && M(0)) : c._f.onChange && c._f.onChange(t);
|
|
597
|
+
const ke = Y(a, N, ne, !1), mt = !L(ke) || De;
|
|
598
|
+
if (!ne && _.values.next({
|
|
599
599
|
name: a,
|
|
600
600
|
type: t.type,
|
|
601
601
|
values: { ...l }
|
|
602
602
|
}), _t)
|
|
603
|
-
return
|
|
604
|
-
if (!
|
|
603
|
+
return F.isValid && K(), mt && _.state.next({ name: a, ...De ? {} : ke });
|
|
604
|
+
if (!ne && De && _.state.next({ ...r }), s.resolver) {
|
|
605
605
|
const { errors: $e } = await Q([a]);
|
|
606
|
-
if (h(
|
|
606
|
+
if (h(N), f) {
|
|
607
607
|
const bt = st(r.errors, n, a), je = st($e, n, bt.name || a);
|
|
608
|
-
x = je.error, a = je.name, p =
|
|
608
|
+
x = je.error, a = je.name, p = L($e);
|
|
609
609
|
}
|
|
610
610
|
} else
|
|
611
|
-
|
|
612
|
-
f && (c._f.deps &&
|
|
611
|
+
G([a], !0), x = (await rt(c, l, D, s.shouldUseNativeValidation))[a], G([a]), h(N), f && (x ? p = !1 : F.isValid && (p = await R(n, !0)));
|
|
612
|
+
f && (c._f.deps && de(c._f.deps), ae(a, p, x, ke));
|
|
613
613
|
}
|
|
614
|
-
},
|
|
614
|
+
}, fe = (t, i) => {
|
|
615
615
|
if (d(r.errors, i) && t.focus)
|
|
616
616
|
return t.focus(), 1;
|
|
617
|
-
},
|
|
617
|
+
}, de = async (t, i = {}) => {
|
|
618
618
|
let a, f;
|
|
619
619
|
const c = _e(t);
|
|
620
620
|
if (s.resolver) {
|
|
621
|
-
const o = await
|
|
622
|
-
a =
|
|
621
|
+
const o = await Z(w(t) ? t : c);
|
|
622
|
+
a = L(o), f = t ? !c.some((h) => d(o, h)) : a;
|
|
623
623
|
} else
|
|
624
624
|
t ? (f = (await Promise.all(c.map(async (o) => {
|
|
625
625
|
const h = d(n, o);
|
|
626
|
-
return await
|
|
627
|
-
}))).every(Boolean), !(!f && !r.isValid) &&
|
|
628
|
-
return
|
|
629
|
-
...!J(t) ||
|
|
626
|
+
return await R(h && h._f ? { [o]: h } : h);
|
|
627
|
+
}))).every(Boolean), !(!f && !r.isValid) && K()) : f = a = await R(n);
|
|
628
|
+
return _.state.next({
|
|
629
|
+
...!J(t) || F.isValid && a !== r.isValid ? {} : { name: t },
|
|
630
630
|
...s.resolver || !t ? { isValid: a } : {},
|
|
631
631
|
errors: r.errors
|
|
632
|
-
}), i.shouldFocus && !f &&
|
|
632
|
+
}), i.shouldFocus && !f && he(n, fe, t ? c : g.mount), f;
|
|
633
633
|
}, Ne = (t) => {
|
|
634
634
|
const i = {
|
|
635
635
|
...y.mount ? l : u
|
|
@@ -642,7 +642,7 @@ function Zt(e = {}) {
|
|
|
642
642
|
isValidating: !!d(r.validatingFields, t),
|
|
643
643
|
isTouched: !!d((i || r).touchedFields, t)
|
|
644
644
|
}), yt = (t) => {
|
|
645
|
-
t && _e(t).forEach((i) =>
|
|
645
|
+
t && _e(t).forEach((i) => S(r.errors, i)), _.state.next({
|
|
646
646
|
errors: t ? r.errors : {}
|
|
647
647
|
});
|
|
648
648
|
}, qe = (t, i, a) => {
|
|
@@ -651,30 +651,30 @@ function Zt(e = {}) {
|
|
|
651
651
|
...p,
|
|
652
652
|
...i,
|
|
653
653
|
ref: f
|
|
654
|
-
}),
|
|
654
|
+
}), _.state.next({
|
|
655
655
|
name: t,
|
|
656
656
|
errors: r.errors,
|
|
657
657
|
isValid: !1
|
|
658
658
|
}), a && a.shouldFocus && f && f.focus && f.focus();
|
|
659
|
-
}, ht = (t, i) =>
|
|
659
|
+
}, ht = (t, i) => re(t) ? _.values.subscribe({
|
|
660
660
|
next: (a) => t(b(void 0, i), a)
|
|
661
661
|
}) : b(t, i, !0), we = (t, i = {}) => {
|
|
662
662
|
for (const a of t ? _e(t) : g.mount)
|
|
663
|
-
g.mount.delete(a), g.array.delete(a), i.keepValue || (
|
|
664
|
-
|
|
663
|
+
g.mount.delete(a), g.array.delete(a), i.keepValue || (S(n, a), S(l, a)), !i.keepError && S(r.errors, a), !i.keepDirty && S(r.dirtyFields, a), !i.keepTouched && S(r.touchedFields, a), !i.keepIsValidating && S(r.validatingFields, a), !s.shouldUnregister && !i.keepDefaultValue && S(u, a);
|
|
664
|
+
_.values.next({
|
|
665
665
|
values: { ...l }
|
|
666
|
-
}),
|
|
666
|
+
}), _.state.next({
|
|
667
667
|
...r,
|
|
668
|
-
...i.keepDirty ? { isDirty:
|
|
669
|
-
}), !i.keepIsValid &&
|
|
668
|
+
...i.keepDirty ? { isDirty: v() } : {}
|
|
669
|
+
}), !i.keepIsValid && K();
|
|
670
670
|
}, Ie = ({ disabled: t, name: i, field: a, fields: f, value: c }) => {
|
|
671
|
-
if (
|
|
671
|
+
if (te(t) && y.mount || t) {
|
|
672
672
|
const o = t ? void 0 : w(c) ? Te(a ? a._f : d(f, i)._f) : c;
|
|
673
673
|
V(l, i, o), Y(i, o, !1, !1, !0);
|
|
674
674
|
}
|
|
675
675
|
}, pe = (t, i = {}) => {
|
|
676
676
|
let a = d(n, t);
|
|
677
|
-
const f =
|
|
677
|
+
const f = te(i.disabled);
|
|
678
678
|
return V(n, t, {
|
|
679
679
|
...a || {},
|
|
680
680
|
_f: {
|
|
@@ -688,19 +688,19 @@ function Zt(e = {}) {
|
|
|
688
688
|
disabled: i.disabled,
|
|
689
689
|
name: t,
|
|
690
690
|
value: i.value
|
|
691
|
-
}) :
|
|
691
|
+
}) : A(t, !0, i.value), {
|
|
692
692
|
...f ? { disabled: i.disabled } : {},
|
|
693
693
|
...s.progressive ? {
|
|
694
694
|
required: !!i.required,
|
|
695
|
-
min:
|
|
696
|
-
max:
|
|
697
|
-
minLength:
|
|
698
|
-
maxLength:
|
|
699
|
-
pattern:
|
|
695
|
+
min: ye(i.min),
|
|
696
|
+
max: ye(i.max),
|
|
697
|
+
minLength: ye(i.minLength),
|
|
698
|
+
maxLength: ye(i.maxLength),
|
|
699
|
+
pattern: ye(i.pattern)
|
|
700
700
|
} : {},
|
|
701
701
|
name: t,
|
|
702
|
-
onChange:
|
|
703
|
-
onBlur:
|
|
702
|
+
onChange: ce,
|
|
703
|
+
onBlur: ce,
|
|
704
704
|
ref: (c) => {
|
|
705
705
|
if (c) {
|
|
706
706
|
pe(t, i), a = d(n, t);
|
|
@@ -719,13 +719,13 @@ function Zt(e = {}) {
|
|
|
719
719
|
ref: { type: o.type, name: t }
|
|
720
720
|
} : { ref: o }
|
|
721
721
|
}
|
|
722
|
-
}),
|
|
722
|
+
}), A(t, !1, void 0, o);
|
|
723
723
|
} else
|
|
724
724
|
a = d(n, t, {}), a._f && (a._f.mount = !1), (s.shouldUnregister || i.shouldUnregister) && !(Nt(g.array, t) && y.action) && g.unMount.add(t);
|
|
725
725
|
}
|
|
726
726
|
};
|
|
727
|
-
}, Pe = () => s.shouldFocusError &&
|
|
728
|
-
|
|
727
|
+
}, Pe = () => s.shouldFocusError && he(n, fe, g.mount), gt = (t) => {
|
|
728
|
+
te(t) && (_.state.next({ disabled: t }), he(n, (i, a) => {
|
|
729
729
|
const f = d(n, a);
|
|
730
730
|
f && (i.disabled = f._f.disabled || t, Array.isArray(f._f.refs) && f._f.refs.forEach((c) => {
|
|
731
731
|
c.disabled = f._f.disabled || t;
|
|
@@ -735,15 +735,15 @@ function Zt(e = {}) {
|
|
|
735
735
|
let f;
|
|
736
736
|
a && (a.preventDefault && a.preventDefault(), a.persist && a.persist());
|
|
737
737
|
let c = P(l);
|
|
738
|
-
if (
|
|
738
|
+
if (_.state.next({
|
|
739
739
|
isSubmitting: !0
|
|
740
740
|
}), s.resolver) {
|
|
741
741
|
const { errors: o, values: h } = await Q();
|
|
742
742
|
r.errors = o, c = h;
|
|
743
743
|
} else
|
|
744
|
-
await
|
|
745
|
-
if (
|
|
746
|
-
|
|
744
|
+
await R(n);
|
|
745
|
+
if (S(r.errors, "root"), L(r.errors)) {
|
|
746
|
+
_.state.next({
|
|
747
747
|
errors: {}
|
|
748
748
|
});
|
|
749
749
|
try {
|
|
@@ -753,18 +753,18 @@ function Zt(e = {}) {
|
|
|
753
753
|
}
|
|
754
754
|
} else
|
|
755
755
|
i && await i({ ...r.errors }, a), Pe(), setTimeout(Pe);
|
|
756
|
-
if (
|
|
756
|
+
if (_.state.next({
|
|
757
757
|
isSubmitted: !0,
|
|
758
758
|
isSubmitting: !1,
|
|
759
|
-
isSubmitSuccessful:
|
|
759
|
+
isSubmitSuccessful: L(r.errors) && !f,
|
|
760
760
|
submitCount: r.submitCount + 1,
|
|
761
761
|
errors: r.errors
|
|
762
762
|
}), f)
|
|
763
763
|
throw f;
|
|
764
764
|
}, vt = (t, i = {}) => {
|
|
765
|
-
d(n, t) && (w(i.defaultValue) ? I(t, P(d(u, t))) : (I(t, i.defaultValue), V(u, t, P(i.defaultValue))), i.keepTouched ||
|
|
765
|
+
d(n, t) && (w(i.defaultValue) ? I(t, P(d(u, t))) : (I(t, i.defaultValue), V(u, t, P(i.defaultValue))), i.keepTouched || S(r.touchedFields, t), i.keepDirty || (S(r.dirtyFields, t), r.isDirty = i.defaultValue ? v(t, P(d(u, t))) : v()), i.keepError || (S(r.errors, t), F.isValid && K()), _.state.next({ ...r }));
|
|
766
766
|
}, He = (t, i = {}) => {
|
|
767
|
-
const a = t ? P(t) : u, f = P(a), c =
|
|
767
|
+
const a = t ? P(t) : u, f = P(a), c = L(t), o = c ? u : f;
|
|
768
768
|
if (i.keepDefaultValues || (u = a), !i.keepValues) {
|
|
769
769
|
if (i.keepDirtyValues)
|
|
770
770
|
for (const h of g.mount)
|
|
@@ -776,9 +776,9 @@ function Zt(e = {}) {
|
|
|
776
776
|
if (x && x._f) {
|
|
777
777
|
const p = Array.isArray(x._f.refs) ? x._f.refs[0] : x._f.ref;
|
|
778
778
|
if (be(p)) {
|
|
779
|
-
const
|
|
780
|
-
if (
|
|
781
|
-
|
|
779
|
+
const N = p.closest("form");
|
|
780
|
+
if (N) {
|
|
781
|
+
N.reset();
|
|
782
782
|
break;
|
|
783
783
|
}
|
|
784
784
|
}
|
|
@@ -786,9 +786,9 @@ function Zt(e = {}) {
|
|
|
786
786
|
}
|
|
787
787
|
n = {};
|
|
788
788
|
}
|
|
789
|
-
l = e.shouldUnregister ? i.keepDefaultValues ? P(u) : {} : P(o),
|
|
789
|
+
l = e.shouldUnregister ? i.keepDefaultValues ? P(u) : {} : P(o), _.array.next({
|
|
790
790
|
values: { ...o }
|
|
791
|
-
}),
|
|
791
|
+
}), _.values.next({
|
|
792
792
|
values: { ...o }
|
|
793
793
|
});
|
|
794
794
|
}
|
|
@@ -799,9 +799,9 @@ function Zt(e = {}) {
|
|
|
799
799
|
watch: /* @__PURE__ */ new Set(),
|
|
800
800
|
watchAll: !1,
|
|
801
801
|
focus: ""
|
|
802
|
-
}, y.mount = !
|
|
802
|
+
}, y.mount = !F.isValid || !!i.keepIsValid || !!i.keepDirtyValues, y.watch = !!e.shouldUnregister, _.state.next({
|
|
803
803
|
submitCount: i.keepSubmitCount ? r.submitCount : 0,
|
|
804
|
-
isDirty: c ? !1 : i.keepDirty ? r.isDirty : !!(i.keepDefaultValues && !
|
|
804
|
+
isDirty: c ? !1 : i.keepDirty ? r.isDirty : !!(i.keepDefaultValues && !se(t, u)),
|
|
805
805
|
isSubmitted: i.keepIsSubmitted ? r.isSubmitted : !1,
|
|
806
806
|
dirtyFields: c ? {} : i.keepDirtyValues ? i.keepDefaultValues && l ? ve(u, l) : r.dirtyFields : i.keepDefaultValues && t ? ve(u, t) : i.keepDirty ? r.dirtyFields : {},
|
|
807
807
|
touchedFields: i.keepTouched ? r.touchedFields : {},
|
|
@@ -809,7 +809,7 @@ function Zt(e = {}) {
|
|
|
809
809
|
isSubmitSuccessful: i.keepIsSubmitSuccessful ? r.isSubmitSuccessful : !1,
|
|
810
810
|
isSubmitting: !1
|
|
811
811
|
});
|
|
812
|
-
}, ze = (t, i) => He(
|
|
812
|
+
}, ze = (t, i) => He(re(t) ? t(l) : t, i);
|
|
813
813
|
return {
|
|
814
814
|
control: {
|
|
815
815
|
register: pe,
|
|
@@ -819,15 +819,15 @@ function Zt(e = {}) {
|
|
|
819
819
|
setError: qe,
|
|
820
820
|
_executeSchema: Q,
|
|
821
821
|
_getWatch: b,
|
|
822
|
-
_getDirty:
|
|
823
|
-
_updateValid:
|
|
824
|
-
_removeUnmounted:
|
|
822
|
+
_getDirty: v,
|
|
823
|
+
_updateValid: K,
|
|
824
|
+
_removeUnmounted: le,
|
|
825
825
|
_updateFieldArray: m,
|
|
826
826
|
_updateDisabledField: Ie,
|
|
827
|
-
_getFieldArray:
|
|
827
|
+
_getFieldArray: k,
|
|
828
828
|
_reset: He,
|
|
829
|
-
_resetDefaultValues: () =>
|
|
830
|
-
ze(t, s.resetOptions),
|
|
829
|
+
_resetDefaultValues: () => re(s.defaultValues) && s.defaultValues().then((t) => {
|
|
830
|
+
ze(t, s.resetOptions), _.state.next({
|
|
831
831
|
isLoading: !1
|
|
832
832
|
});
|
|
833
833
|
}),
|
|
@@ -838,9 +838,9 @@ function Zt(e = {}) {
|
|
|
838
838
|
};
|
|
839
839
|
},
|
|
840
840
|
_disableForm: gt,
|
|
841
|
-
_subjects:
|
|
842
|
-
_proxyFormState:
|
|
843
|
-
_setErrors:
|
|
841
|
+
_subjects: _,
|
|
842
|
+
_proxyFormState: F,
|
|
843
|
+
_setErrors: B,
|
|
844
844
|
get _fields() {
|
|
845
845
|
return n;
|
|
846
846
|
},
|
|
@@ -878,7 +878,7 @@ function Zt(e = {}) {
|
|
|
878
878
|
};
|
|
879
879
|
}
|
|
880
880
|
},
|
|
881
|
-
trigger:
|
|
881
|
+
trigger: de,
|
|
882
882
|
register: pe,
|
|
883
883
|
handleSubmit: We,
|
|
884
884
|
watch: ht,
|
|
@@ -903,7 +903,7 @@ function er(e = {}) {
|
|
|
903
903
|
const s = W.useRef(), r = W.useRef(), [n, u] = W.useState({
|
|
904
904
|
isDirty: !1,
|
|
905
905
|
isValidating: !1,
|
|
906
|
-
isLoading:
|
|
906
|
+
isLoading: re(e.defaultValues),
|
|
907
907
|
isSubmitted: !1,
|
|
908
908
|
isSubmitting: !1,
|
|
909
909
|
isSubmitSuccessful: !1,
|
|
@@ -914,7 +914,7 @@ function er(e = {}) {
|
|
|
914
914
|
validatingFields: {},
|
|
915
915
|
errors: e.errors || {},
|
|
916
916
|
disabled: e.disabled || !1,
|
|
917
|
-
defaultValues:
|
|
917
|
+
defaultValues: re(e.defaultValues) ? void 0 : e.defaultValues
|
|
918
918
|
});
|
|
919
919
|
s.current || (s.current = {
|
|
920
920
|
...Zt(e),
|
|
@@ -934,7 +934,7 @@ function er(e = {}) {
|
|
|
934
934
|
});
|
|
935
935
|
}
|
|
936
936
|
}, [l, n.isDirty]), W.useEffect(() => {
|
|
937
|
-
e.values && !
|
|
937
|
+
e.values && !se(e.values, r.current) ? (l._reset(e.values, l._options.resetOptions), r.current = e.values, u((y) => ({ ...y }))) : l._resetDefaultValues();
|
|
938
938
|
}, [e.values, l]), W.useEffect(() => {
|
|
939
939
|
e.errors && l._setErrors(e.errors);
|
|
940
940
|
}, [e.errors, l]), W.useEffect(() => {
|
|
@@ -953,49 +953,52 @@ const it = `Я принимаю условия Политики обработк
|
|
|
953
953
|
title: r,
|
|
954
954
|
isEmail: n,
|
|
955
955
|
isTextArea: u,
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
956
|
+
isRequiredPhone: l = !0,
|
|
957
|
+
isRequiredEmail: y = !1,
|
|
958
|
+
isRequiredPhoneOrEmail: g,
|
|
959
|
+
textAreaPlaceholder: M,
|
|
960
|
+
subTitle: q,
|
|
961
|
+
submitHandler: F,
|
|
962
|
+
modalWidth: _ = "442px",
|
|
963
|
+
rowsTextArea: ie = 2,
|
|
964
|
+
personalCheckBox: H = { text: it, isRequired: !0 },
|
|
965
|
+
advCheckBox: D = { text: it, isRequired: !0 }
|
|
963
966
|
}) => {
|
|
964
967
|
const {
|
|
965
|
-
register:
|
|
966
|
-
handleSubmit:
|
|
967
|
-
trigger:
|
|
968
|
-
reset:
|
|
969
|
-
watch:
|
|
970
|
-
formState: { errors:
|
|
971
|
-
} = er(), { onChange:
|
|
972
|
-
required: !0,
|
|
968
|
+
register: z,
|
|
969
|
+
handleSubmit: K,
|
|
970
|
+
trigger: G,
|
|
971
|
+
reset: m,
|
|
972
|
+
watch: O,
|
|
973
|
+
formState: { errors: B }
|
|
974
|
+
} = er(), A = !!O("email"), { onChange: Y, onBlur: ae, ...Q } = z("phone", {
|
|
975
|
+
required: l || g ? !A : !0,
|
|
973
976
|
pattern: { value: wt, message: "" },
|
|
974
|
-
onBlur: () =>
|
|
975
|
-
}),
|
|
976
|
-
|
|
977
|
+
onBlur: () => G("phone")
|
|
978
|
+
}), Z = O("personalCheckBox"), R = O("advCheckBox"), le = (v) => {
|
|
979
|
+
F(v), m();
|
|
977
980
|
};
|
|
978
|
-
return /* @__PURE__ */
|
|
981
|
+
return /* @__PURE__ */ U(
|
|
979
982
|
Vt,
|
|
980
983
|
{
|
|
981
984
|
isOpen: e,
|
|
982
985
|
emitIsOpen: () => s(!1),
|
|
983
|
-
additionalClass:
|
|
986
|
+
additionalClass: ee.modal,
|
|
984
987
|
opacity: 0.7,
|
|
985
988
|
isTransparentBack: !0,
|
|
986
|
-
additionalClassModalBody:
|
|
987
|
-
children: /* @__PURE__ */ Se("div", { className:
|
|
988
|
-
/* @__PURE__ */
|
|
989
|
-
/* @__PURE__ */
|
|
989
|
+
additionalClassModalBody: ee.modalBody,
|
|
990
|
+
children: /* @__PURE__ */ Se("div", { className: ee.root, style: { width: _ }, children: [
|
|
991
|
+
/* @__PURE__ */ U("div", { className: ee.title, dangerouslySetInnerHTML: { __html: r ?? "Оставить обращение" } }),
|
|
992
|
+
/* @__PURE__ */ U(
|
|
990
993
|
"div",
|
|
991
994
|
{
|
|
992
|
-
className:
|
|
993
|
-
dangerouslySetInnerHTML: { __html:
|
|
995
|
+
className: ee.description,
|
|
996
|
+
dangerouslySetInnerHTML: { __html: q ?? "Оставьте номер телефона для получения консультации" }
|
|
994
997
|
}
|
|
995
998
|
),
|
|
996
|
-
/* @__PURE__ */ Se("form", { onSubmit:
|
|
997
|
-
/* @__PURE__ */ Se(
|
|
998
|
-
/* @__PURE__ */
|
|
999
|
+
/* @__PURE__ */ Se("form", { onSubmit: K(le), children: [
|
|
1000
|
+
/* @__PURE__ */ Se(Ft, { className: ee.inputWrapper, children: [
|
|
1001
|
+
/* @__PURE__ */ U(
|
|
999
1002
|
Ee,
|
|
1000
1003
|
{
|
|
1001
1004
|
width: "full",
|
|
@@ -1003,20 +1006,20 @@ const it = `Я принимаю условия Политики обработк
|
|
|
1003
1006
|
variant: "light",
|
|
1004
1007
|
placeholder: "Введите имя",
|
|
1005
1008
|
"data-testid": "modal_name",
|
|
1006
|
-
...
|
|
1007
|
-
error: !!
|
|
1009
|
+
...z("name", { required: !0, pattern: pt }),
|
|
1010
|
+
error: !!B.name
|
|
1008
1011
|
}
|
|
1009
1012
|
),
|
|
1010
|
-
/* @__PURE__ */
|
|
1013
|
+
/* @__PURE__ */ U(
|
|
1011
1014
|
xt,
|
|
1012
1015
|
{
|
|
1013
1016
|
inputMode: "numeric",
|
|
1014
1017
|
name: "phone",
|
|
1015
1018
|
mask: "+7 (999) 999-99-99",
|
|
1016
|
-
onChange:
|
|
1019
|
+
onChange: Y,
|
|
1017
1020
|
placeholder: "+7 (- - -) - - - - - - -",
|
|
1018
|
-
onBlur:
|
|
1019
|
-
children: /* @__PURE__ */
|
|
1021
|
+
onBlur: ae,
|
|
1022
|
+
children: /* @__PURE__ */ U(
|
|
1020
1023
|
Ee,
|
|
1021
1024
|
{
|
|
1022
1025
|
width: "full",
|
|
@@ -1024,14 +1027,14 @@ const it = `Я принимаю условия Политики обработк
|
|
|
1024
1027
|
type: "tel",
|
|
1025
1028
|
size_s: "small",
|
|
1026
1029
|
variant: "light",
|
|
1027
|
-
|
|
1028
|
-
...
|
|
1029
|
-
error: !!
|
|
1030
|
+
...Q,
|
|
1031
|
+
...z("phone"),
|
|
1032
|
+
error: !!B.phone
|
|
1030
1033
|
}
|
|
1031
1034
|
)
|
|
1032
1035
|
}
|
|
1033
1036
|
),
|
|
1034
|
-
n && /* @__PURE__ */
|
|
1037
|
+
n && /* @__PURE__ */ U(
|
|
1035
1038
|
Ee,
|
|
1036
1039
|
{
|
|
1037
1040
|
width: "full",
|
|
@@ -1039,44 +1042,44 @@ const it = `Я принимаю условия Политики обработк
|
|
|
1039
1042
|
variant: "light",
|
|
1040
1043
|
placeholder: "Введите email",
|
|
1041
1044
|
"data-testid": "modal_email",
|
|
1042
|
-
...
|
|
1045
|
+
...z(
|
|
1043
1046
|
"email",
|
|
1044
|
-
{ required: !1, pattern: Dt }
|
|
1047
|
+
{ required: y || g ? A : !1, pattern: Dt }
|
|
1045
1048
|
),
|
|
1046
|
-
error: !!
|
|
1049
|
+
error: !!B.email
|
|
1047
1050
|
}
|
|
1048
1051
|
),
|
|
1049
|
-
u && /* @__PURE__ */
|
|
1052
|
+
u && /* @__PURE__ */ U(
|
|
1050
1053
|
kt,
|
|
1051
1054
|
{
|
|
1052
1055
|
"data-testid": "modal_textarea",
|
|
1053
|
-
placeholder:
|
|
1054
|
-
rows:
|
|
1056
|
+
placeholder: M,
|
|
1057
|
+
rows: ie,
|
|
1055
1058
|
width: "full",
|
|
1056
|
-
...
|
|
1059
|
+
...z("textarea")
|
|
1057
1060
|
}
|
|
1058
1061
|
),
|
|
1059
|
-
|
|
1062
|
+
D && /* @__PURE__ */ U(
|
|
1060
1063
|
Ge,
|
|
1061
1064
|
{
|
|
1062
1065
|
"data-testid": "modal_advCheckBox",
|
|
1063
|
-
isChecked:
|
|
1064
|
-
error: !!
|
|
1065
|
-
text:
|
|
1066
|
-
...
|
|
1066
|
+
isChecked: R,
|
|
1067
|
+
error: !!B.advCheckBox,
|
|
1068
|
+
text: D.text,
|
|
1069
|
+
...z("advCheckBox", { required: D == null ? void 0 : D.isRequired })
|
|
1067
1070
|
}
|
|
1068
1071
|
),
|
|
1069
|
-
/* @__PURE__ */
|
|
1072
|
+
/* @__PURE__ */ U(
|
|
1070
1073
|
Ge,
|
|
1071
1074
|
{
|
|
1072
1075
|
"data-testid": "modal_personalCheckBox",
|
|
1073
|
-
isChecked:
|
|
1074
|
-
error: !!
|
|
1075
|
-
text:
|
|
1076
|
-
...
|
|
1076
|
+
isChecked: Z,
|
|
1077
|
+
error: !!B.personalCheckBox,
|
|
1078
|
+
text: H.text,
|
|
1079
|
+
...z("personalCheckBox", { required: H.isRequired })
|
|
1077
1080
|
}
|
|
1078
1081
|
),
|
|
1079
|
-
/* @__PURE__ */
|
|
1082
|
+
/* @__PURE__ */ U(
|
|
1080
1083
|
Ke,
|
|
1081
1084
|
{
|
|
1082
1085
|
"data-testid": "modal_submit",
|
|
@@ -1085,22 +1088,22 @@ const it = `Я принимаю условия Политики обработк
|
|
|
1085
1088
|
type: "submit",
|
|
1086
1089
|
size: "large",
|
|
1087
1090
|
as: "button",
|
|
1088
|
-
additionalClass:
|
|
1091
|
+
additionalClass: ee.modalBtn,
|
|
1089
1092
|
children: "Отправить"
|
|
1090
1093
|
}
|
|
1091
1094
|
)
|
|
1092
1095
|
] }),
|
|
1093
|
-
/* @__PURE__ */
|
|
1096
|
+
/* @__PURE__ */ U(
|
|
1094
1097
|
Ke,
|
|
1095
1098
|
{
|
|
1096
|
-
additionalClass:
|
|
1099
|
+
additionalClass: ee.btn,
|
|
1097
1100
|
onClick: () => s(!1),
|
|
1098
1101
|
as: "button",
|
|
1099
1102
|
variant: "gray",
|
|
1100
1103
|
type: "button",
|
|
1101
1104
|
size: "small",
|
|
1102
|
-
children: /* @__PURE__ */
|
|
1103
|
-
|
|
1105
|
+
children: /* @__PURE__ */ U(
|
|
1106
|
+
At,
|
|
1104
1107
|
{
|
|
1105
1108
|
name: "close",
|
|
1106
1109
|
size: "16",
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const ModalSuccess: () => import("react/jsx-runtime").JSX.Element;
|
package/dist/main.d.ts
CHANGED
|
@@ -24,3 +24,4 @@ export { ProjectCardSkeleton } from './components/ProjectCardSkeleton';
|
|
|
24
24
|
export { TabSelect } from './components/TabSelect';
|
|
25
25
|
export { ZoomControls } from './components/ZoomControls';
|
|
26
26
|
export { ModalForm } from './components/FormModal/ui/ModalForm.tsx';
|
|
27
|
+
export { ModalSuccess } from './components/ModalSuccess/ModalSuccess.tsx';
|
package/dist/main.js
CHANGED
|
@@ -3,10 +3,10 @@ import { MobileButton as p } from "./components/mobileButton/ui/MobileButton.js"
|
|
|
3
3
|
import { NewIcon as x } from "./components/NewIcon/ui/NewIcon.js";
|
|
4
4
|
import { DestinationTab as a } from "./components/DestinationTab/ui/DestinationTab.js";
|
|
5
5
|
import { RoundButton as l } from "./components/RoundButton/ui/RoundButton.js";
|
|
6
|
-
import { Tag as
|
|
6
|
+
import { Tag as i } from "./components/Tag/ui/Tag.js";
|
|
7
7
|
import { Switcher as u } from "./components/Switcher/ui/Switcher.js";
|
|
8
8
|
import { Text as s } from "./components/Text/ui/Text.js";
|
|
9
|
-
import { Flex as
|
|
9
|
+
import { Flex as T } from "./components/Flex/ui/Flex.js";
|
|
10
10
|
import { Input as b } from "./components/Input/ui/Input.js";
|
|
11
11
|
import { M as I } from "./Modal-258KOiTO.js";
|
|
12
12
|
import { FieldInput as w } from "./components/FieldInput/ui/FieldInput.js";
|
|
@@ -23,11 +23,12 @@ import { ProjectCardSkeleton as K } from "./components/ProjectCardSkeleton/ui/Pr
|
|
|
23
23
|
import { TabSelect as Q } from "./components/TabSelect/ui/TabSelect.js";
|
|
24
24
|
import { ZoomControls as V } from "./components/ZoomControls/ui/ZoomControls.js";
|
|
25
25
|
import { ModalForm as Y } from "./components/FormModal/ui/ModalForm.js";
|
|
26
|
+
import { ModalSuccess as $ } from "./components/ModalSuccess/ModalSuccess.js";
|
|
26
27
|
export {
|
|
27
28
|
t as Button,
|
|
28
29
|
a as DestinationTab,
|
|
29
30
|
w as FieldInput,
|
|
30
|
-
|
|
31
|
+
T as Flex,
|
|
31
32
|
N as GroupedInputs,
|
|
32
33
|
b as Input,
|
|
33
34
|
v as Logo,
|
|
@@ -37,6 +38,7 @@ export {
|
|
|
37
38
|
p as MobileButton,
|
|
38
39
|
I as Modal,
|
|
39
40
|
Y as ModalForm,
|
|
41
|
+
$ as ModalSuccess,
|
|
40
42
|
x as NewIcon,
|
|
41
43
|
K as ProjectCardSkeleton,
|
|
42
44
|
l as RoundButton,
|
|
@@ -46,7 +48,7 @@ export {
|
|
|
46
48
|
u as Switcher,
|
|
47
49
|
Q as TabSelect,
|
|
48
50
|
L as TabSwitcher,
|
|
49
|
-
|
|
51
|
+
i as Tag,
|
|
50
52
|
s as Text,
|
|
51
53
|
V as ZoomControls,
|
|
52
54
|
y as useClientWidth
|