@wix/form-elements 1.159.0 → 1.161.0
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/component/{appointment-rac-CpiyUOXo.js → appointment-rac-BubC8I9X.js} +388 -381
- package/dist/component/{bookings-address-rac-BBEUV1t7.js → bookings-address-rac-BbwvVs86.js} +1 -1
- package/dist/component/{bookings-email-rac-DdfoeLFV.js → bookings-email-rac-C2HCkcfa.js} +1 -1
- package/dist/component/{bookings-first-name-rac-DH39yvQ-.js → bookings-first-name-rac-Uy7c5EBs.js} +1 -1
- package/dist/component/{bookings-header-rac-StLm7b4I.js → bookings-header-rac-nmwsWRjS.js} +1 -1
- package/dist/component/{bookings-last-name-rac-DHZMPMOO.js → bookings-last-name-rac-BAioQLCg.js} +1 -1
- package/dist/component/{bookings-login-bar-rac-DrHp1ojM.js → bookings-login-bar-rac-CO6vOBjG.js} +5 -5
- package/dist/component/{bookings-phone-rac-6aGjbavK.js → bookings-phone-rac-Cr16h-_R.js} +1 -1
- package/dist/component/{bookings-rich-text-rac-DBlGZUM5.js → bookings-rich-text-rac-CHLH3jd7.js} +1 -1
- package/dist/component/{checkbox-field-rac-Cna1Va1X.js → checkbox-field-rac-CMwmwFMD.js} +4 -4
- package/dist/component/{checkbox-group-field-headless-m_-10Mdx.js → checkbox-group-field-headless-BNs_S-nT.js} +50 -50
- package/dist/component/{checkbox-group-field-rac-BSCi5hmx.js → checkbox-group-field-rac-BA60EPAN.js} +12 -12
- package/dist/component/{checkbox-group-rac-BWYQZmAI.js → checkbox-group-rac-BJZ4Oer9.js} +1 -1
- package/dist/component/{checkbox-rac-BsUTfSUf.js → checkbox-rac-KsVlI6_V.js} +1 -1
- package/dist/component/{contacts-address-rac-DwCLW8rV.js → contacts-address-rac-CRYkz87z.js} +1 -1
- package/dist/component/{contacts-birthdate-rac-DnNgxbKb.js → contacts-birthdate-rac-BIz-1-ZX.js} +1 -1
- package/dist/component/{contacts-company-rac-BQqXzpNl.js → contacts-company-rac-B8G__j6I.js} +1 -1
- package/dist/component/{contacts-email-rac-BINnZzxp.js → contacts-email-rac-Dztkvp5i.js} +1 -1
- package/dist/component/{contacts-first-name-rac-DBWKFkIU.js → contacts-first-name-rac-CVSEWpLU.js} +1 -1
- package/dist/component/{contacts-last-name-rac-D_-qrF7I.js → contacts-last-name-rac-Blz4M5bk.js} +1 -1
- package/dist/component/{contacts-phone-rac-7n7JkSDr.js → contacts-phone-rac-CPCE5soY.js} +1 -1
- package/dist/component/{contacts-position-rac-DvXP8nvT.js → contacts-position-rac-Dd_kBjqG.js} +1 -1
- package/dist/component/{contacts-subscribe-rac-DnLnV5Gm.js → contacts-subscribe-rac-C6AlsP10.js} +1 -1
- package/dist/component/{contacts-tax-id-rac-BJVWhvYW.js → contacts-tax-id-rac-CQ1n29zI.js} +1 -1
- package/dist/component/{date-availability-Df807-eN.js → date-availability-DDj1j0z5.js} +1 -1
- package/dist/component/date-input-field-rac-D5r1n_ah.js +309 -0
- package/dist/component/{date-input-rac-CSB3MWHW.js → date-input-rac-Cyi5mU_P.js} +1 -1
- package/dist/component/{date-picker-field-rac-CySThPfz.js → date-picker-field-rac-CeG391Zo.js} +79 -79
- package/dist/component/{date-picker-rac-Fp8_pxtf.js → date-picker-rac-Ci9aHgav.js} +1 -1
- package/dist/component/date-time-input-field-rac-CrbYEbJJ.js +441 -0
- package/dist/component/{date-time-input-rac-wctMR4uM.js → date-time-input-rac-DDJLkqs0.js} +1 -1
- package/dist/component/{dext-checkbox-group-rac-erMPfwFL.js → dext-checkbox-group-rac-C3ftVHBA.js} +4 -4
- package/dist/component/{dext-checkbox-rac-DQSq9Lqd.js → dext-checkbox-rac-BGLYWn68.js} +1 -1
- package/dist/component/{dext-date-picker-rac-RCLcd1VV.js → dext-date-picker-rac-Cy9RlDlt.js} +1 -1
- package/dist/component/{dext-date-time-input-rac-DMolWzvy.js → dext-date-time-input-rac-88ZoTd5e.js} +1 -1
- package/dist/component/{dext-dropdown-rac-wQ2GJL4V.js → dext-dropdown-rac-CPxDUuk9.js} +1 -1
- package/dist/component/{dext-email-rac-BtymBVTW.js → dext-email-rac-BAvQwDPA.js} +1 -1
- package/dist/component/{dext-number-input-rac-DHPiK0Z3.js → dext-number-input-rac-D7HYQVKq.js} +1 -1
- package/dist/component/{dext-phone-rac-C58vHEEe.js → dext-phone-rac--FhcplSI.js} +1 -1
- package/dist/component/dext-radio-group-rac-DBz8iCKW.js +18 -0
- package/dist/component/{dext-rating-input-rac-DI0k3tVa.js → dext-rating-input-rac-Cv7nThfe.js} +1 -1
- package/dist/component/{dext-tags-rac-DmF6ctvQ.js → dext-tags-rac-CRUUc5dr.js} +2 -2
- package/dist/component/{dext-text-area-rac-Bv6ridbR.js → dext-text-area-rac-DQBQXV1L.js} +1 -1
- package/dist/component/{dext-text-input-rac-DoTAdUgU.js → dext-text-input-rac-4CpM581y.js} +1 -1
- package/dist/component/{dext-url-input-rac-BuoMS6g2.js → dext-url-input-rac-0C1jTEr9.js} +1 -1
- package/dist/component/{donation-rac-CjZalSgn.js → donation-rac-Cgt0ZE50.js} +79 -79
- package/dist/component/{dropdown-field-rac-By_fpqhx.js → dropdown-field-rac-DlGKR7pZ.js} +14 -14
- package/dist/component/{dropdown-rac-BnIEC4RX.js → dropdown-rac-CYFW_3x_.js} +1 -1
- package/dist/component/{ecom-address-rac-B6Usk1Ty.js → ecom-address-rac-CQfQHpXC.js} +1 -1
- package/dist/component/{ecom-subscription-checkbox-rac-B4B0wzlC.js → ecom-subscription-checkbox-rac-D2v2Upvz.js} +2 -2
- package/dist/component/{email-input-field-rac-Df3KI3_v.js → email-input-field-rac-CVw25yRo.js} +39 -39
- package/dist/component/{events-repeater-rac-B2iBk8lV.js → events-repeater-rac-BCVUcmFj.js} +25 -25
- package/dist/component/{events-rsvp-rac-xl_qCIh3.js → events-rsvp-rac-DwbqEr8z.js} +18 -18
- package/dist/component/{field-error-headless-DWc76YmY.js → field-error-headless-XnVcMmsL.js} +3 -3
- package/dist/component/{field-label-headless-DKBKqI2X.js → field-label-headless-BRTLT2Yt.js} +16 -16
- package/dist/component/{file-upload-rac-BVj4cRqe.js → file-upload-rac-Dkwg9Jk4.js} +118 -118
- package/dist/component/{fixed-payment-rac-BS1Hb4hg.js → fixed-payment-rac-ST98xAa2.js} +13 -13
- package/dist/component/{form-BTUoOcqB.js → form-BUqSKOvc.js} +785 -727
- package/dist/component/form.js +1 -1
- package/dist/component/{header-field-rac-DTJ_Us6u.js → header-field-rac-CzNTGYWq.js} +6 -6
- package/dist/component/{header-rac-CvYp0Jjo.js → header-rac-DUt6AIAE.js} +1 -1
- package/dist/component/{image-choice-rac--qrYqKJl.js → image-choice-rac-DuBgrSt2.js} +23 -23
- package/dist/component/{index-DIl9BH2M.js → index-CDO22hht.js} +66 -66
- package/dist/component/{index-CoEV4QEy.js → index-cZZeAuuu.js} +2 -2
- package/dist/component/{isObjectLike-CLN09X5V.js → isObjectLike-cs4bARpC.js} +11 -11
- package/dist/component/multiline-address-field-rac-vcEWhUCV.js +1664 -0
- package/dist/component/{multiline-address-rac-DtaAJjbR.js → multiline-address-rac-WQaI2eUX.js} +1 -1
- package/dist/component/{number-input-field-rac-2gqDUlw9.js → number-input-field-rac-CBUMqATk.js} +23 -23
- package/dist/component/{number-input-rac-BlciEPLN.js → number-input-rac-B4j5hyzS.js} +1 -1
- package/dist/component/{password-rac-BvvQgafk.js → password-rac-DwLyf45N.js} +27 -27
- package/dist/component/{payment-input-rac-CSRyOPPr.js → payment-input-rac-D0Od---y.js} +31 -31
- package/dist/component/phone-input-field-rac-COlu9IeC.js +512 -0
- package/dist/component/{phone-rac-DMP1MoRs.js → phone-rac-Dh4RacOF.js} +1 -1
- package/dist/component/{product-list-rac-WQ9Qhzum.js → product-list-rac-D7zHDE2D.js} +39 -39
- package/dist/component/{quiz-radio-group-rac-DzrL3-gZ.js → quiz-radio-group-rac-1AaKphJt.js} +1 -1
- package/dist/component/{radio-button-module-classes-CJk18LzO.js → radio-button-module-classes-VqaP6vpA.js} +30 -30
- package/dist/component/{radio-group-field-rac-DGoMoSgo.js → radio-group-field-rac-Cp3LRN3C.js} +8 -8
- package/dist/component/{radio-group-rac-DhAELVNV.js → radio-group-rac-KhmhzYGf.js} +1 -1
- package/dist/component/{rating-input-field-rac-CFoesqmC.js → rating-input-field-rac-10n6ciCr.js} +39 -39
- package/dist/component/{rating-input-rac-CFMIxche.js → rating-input-rac-XZjjY2Gp.js} +1 -1
- package/dist/component/{rich-content-rac.module-xJ03MegT.js → rich-content-rac.module-kMwDoLBa.js} +8 -8
- package/dist/component/{rich-text-field-rac-CBMY4JOB.js → rich-text-field-rac-H5bd8fAt.js} +4 -4
- package/dist/component/{rich-text-rac-CvZ7s1Ct.js → rich-text-rac-88GSQR62.js} +1 -1
- package/dist/component/service-dropdown-rac-B1_Xr_X3.js +145 -0
- package/dist/component/{services-multi-choice-rac-fXOov4K7.js → services-multi-choice-rac-DWp_Llbi.js} +11 -11
- package/dist/component/{signature-rac-CG_Q9Oxr.js → signature-rac-zN_6KRDp.js} +82 -82
- package/dist/component/{submit-button-rac-DAsovEp2.js → submit-button-rac-Dv6UarYX.js} +12 -12
- package/dist/component/{tags-field-rac-9mpOMPLm.js → tags-field-rac-sVN6MHfJ.js} +43 -43
- package/dist/component/{tags-rac-CNBJ08wS.js → tags-rac-DhTHs_XN.js} +1 -1
- package/dist/component/{text-area-field-rac-D4aTm7CM.js → text-area-field-rac-DrWkww7W.js} +19 -19
- package/dist/component/{text-area-rac-DoKiH_Kv.js → text-area-rac-CXXh-ZdY.js} +1 -1
- package/dist/component/{text-input-field-rac-BbvPB26b.js → text-input-field-rac-C2YiMr-g.js} +5 -5
- package/dist/component/text-input-headless-BJMNbsMY.js +47 -0
- package/dist/component/{text-input-rac-1ac1EKad.js → text-input-rac-CpsPh7FH.js} +1 -1
- package/dist/component/{time-input-rac-BS0rR-89.js → time-input-rac-DG_1KxS4.js} +20 -20
- package/dist/component/{url-input-field-rac-DbO6ATng.js → url-input-field-rac-twxRREnl.js} +19 -19
- package/dist/component/{url-input-rac-DHuny3d-.js → url-input-rac-BTStO0NP.js} +1 -1
- package/dist/component/use-dropdown-option-class-name-DbMMg1ws.js +116 -0
- package/dist/component/use-dropdown-trigger-class-name-Yes4kC_0.js +96 -0
- package/dist/component/{use-element-state-class-name-BUsFQfoW.js → use-element-state-class-name-DlncY4hk.js} +1 -1
- package/dist/component/{use-hoverable-input-class-name-C2l3G8gb.js → use-hoverable-input-class-name-C__zqP5j.js} +2 -2
- package/dist/component/use-is-forced-open-dropdown-DnK_MQRO.js +53 -0
- package/dist/component/{use-service-options-base-D_enm38a.js → use-service-options-base-DKJe52Vk.js} +6 -6
- package/dist/component/use-text-input-class-name-D9tJTR-b.js +6 -0
- package/dist/form.d.ts +11 -0
- package/package.json +2 -2
- package/dist/component/date-input-field-rac-CEuPElMH.js +0 -303
- package/dist/component/date-time-input-field-rac-DG5KSBHe.js +0 -433
- package/dist/component/dext-radio-group-rac-Cp-I94HW.js +0 -18
- package/dist/component/dropdown-field-headless-BYEjiIUf.js +0 -93
- package/dist/component/multiline-address-field-rac-BjWzx-LH.js +0 -1659
- package/dist/component/phone-input-field-rac-BVWzH_TY.js +0 -508
- package/dist/component/service-dropdown-rac-B627AgPG.js +0 -145
- package/dist/component/text-input-headless-BGaBRrP1.js +0 -47
- package/dist/component/use-dropdown-trigger-class-name-rcGBzxI1.js +0 -117
- package/dist/component/use-is-forced-open-dropdown-CoOk4W4i.js +0 -48
- package/dist/component/use-text-input-class-name-BLtPQoYE.js +0 -6
|
@@ -1,111 +1,111 @@
|
|
|
1
|
-
import n, { useMemo as x, useCallback as
|
|
1
|
+
import n, { useMemo as x, useCallback as S, useRef as te } from "react";
|
|
2
2
|
import { RicosViewer as ne } from "@wix/ricos/viewer";
|
|
3
|
-
import
|
|
3
|
+
import v from "classnames";
|
|
4
4
|
import { ToggleButtonGroup as oe, TextField as re, Group as se, ToggleButton as ae, Input as le } from "react-aria-components";
|
|
5
5
|
import { debounce as ce } from "ts-debounce";
|
|
6
|
-
import {
|
|
6
|
+
import { aQ as W, bA as T, bx as P, bK as ie, bs as H, bC as ue, W as me, ac as pe, H as de, M as Ie, G as Ce, I as Ee } from "./form-BUqSKOvc.js";
|
|
7
7
|
import { f as O, a as F } from "./find-child-C60k4CxG.js";
|
|
8
|
-
import { a as
|
|
9
|
-
import { D as fe, E as Oe } from "./field-error-headless-
|
|
10
|
-
import { L as
|
|
11
|
-
import { F as
|
|
8
|
+
import { a as Y } from "./format-currency-BwShJ9vM.js";
|
|
9
|
+
import { D as fe, E as Oe } from "./field-error-headless-XnVcMmsL.js";
|
|
10
|
+
import { L as be } from "./field-label-headless-BRTLT2Yt.js";
|
|
11
|
+
import { F as ye } from "./fieldset-headless-CD3fds9J.js";
|
|
12
12
|
import { a as _e, b as he } from "./numeric-input-utils-CuBMi4-a.js";
|
|
13
13
|
import { g as Ne } from "./payment-field-utils-DobiK5Xh.js";
|
|
14
14
|
import { u as ge } from "./use-synced-display-value-DcAxdn3M.js";
|
|
15
15
|
import { E as Fe } from "./error-icon-hZxQ6DEy.js";
|
|
16
16
|
import { s as L } from "./field-rac.module-DP0lkkEv.js";
|
|
17
17
|
import { o as De } from "./options-rac.module-_THNq6Qq.js";
|
|
18
|
-
import { u as
|
|
19
|
-
import { u as
|
|
18
|
+
import { u as Se } from "./use-element-state-class-name-DlncY4hk.js";
|
|
19
|
+
import { u as ve } from "./use-text-input-class-name-D9tJTR-b.js";
|
|
20
20
|
function Le(e, t) {
|
|
21
21
|
return e.reduce((o, r) => (o[r[t]] = r, o), {});
|
|
22
22
|
}
|
|
23
|
-
function
|
|
23
|
+
function Ae(e) {
|
|
24
24
|
return Le(e, "id");
|
|
25
25
|
}
|
|
26
|
-
const
|
|
26
|
+
const Re = 0.01;
|
|
27
27
|
function Te(e) {
|
|
28
28
|
var t;
|
|
29
29
|
return ((t = e == null ? void 0 : e.fixedPriceOptions) == null ? void 0 : t.price) || "0";
|
|
30
30
|
}
|
|
31
|
-
function
|
|
31
|
+
function Q(e, t) {
|
|
32
32
|
const o = Number(t || "0");
|
|
33
33
|
return {
|
|
34
34
|
productId: e.id,
|
|
35
|
-
price: e.priceType ===
|
|
35
|
+
price: e.priceType === W.DYNAMIC_PRICE ? o : String(o),
|
|
36
36
|
quantity: 1
|
|
37
37
|
};
|
|
38
38
|
}
|
|
39
39
|
function Pe(e) {
|
|
40
|
-
return e.find((t) => t.priceType ===
|
|
40
|
+
return e.find((t) => t.priceType === W.DYNAMIC_PRICE);
|
|
41
41
|
}
|
|
42
|
-
function
|
|
42
|
+
function Me(e, t) {
|
|
43
43
|
return (e == null ? void 0 : e.productId) === (t == null ? void 0 : t.id) ? String((e == null ? void 0 : e.price) ?? "") : "";
|
|
44
44
|
}
|
|
45
45
|
const s = ({ children: e }) => {
|
|
46
|
-
const { id: t, value: o, onChange: r, required: l, onBlur: i, onFocus: C, validation: u, addOther: E, addOtherPlaceholder: p, FieldLayout: f } = T(), { inputId: c, labelId: d, ariaDescribedBy:
|
|
46
|
+
const { id: t, value: o, onChange: r, required: l, onBlur: i, onFocus: C, validation: u, addOther: E, addOtherPlaceholder: p, FieldLayout: f } = T(), { inputId: c, labelId: d, ariaDescribedBy: y } = P(), { t: m } = ie(), { currency: g, regionalFormat: _ } = H(), b = o == null ? void 0 : o[0], D = x(() => {
|
|
47
47
|
var I, h;
|
|
48
48
|
return ((h = (I = u == null ? void 0 : u.predefined) == null ? void 0 : I.paymentOptions) == null ? void 0 : h.products) || [];
|
|
49
49
|
}, [
|
|
50
50
|
u
|
|
51
|
-
]),
|
|
51
|
+
]), M = x(() => Ae(D), [
|
|
52
52
|
D
|
|
53
53
|
]), a = x(() => E ? Pe(D) : void 0, [
|
|
54
54
|
D,
|
|
55
55
|
E
|
|
56
|
-
]),
|
|
57
|
-
sourceValue:
|
|
56
|
+
]), w = Me(b, a), [V, B] = ge({
|
|
57
|
+
sourceValue: w,
|
|
58
58
|
format: (I) => he(String(I ?? ""), _),
|
|
59
59
|
regionalFormat: _
|
|
60
|
-
}), q =
|
|
61
|
-
const h = I === void 0 ? void 0 :
|
|
60
|
+
}), q = S((I) => {
|
|
61
|
+
const h = I === void 0 ? void 0 : M[I];
|
|
62
62
|
r(h ? [
|
|
63
|
-
|
|
64
|
-
] : []),
|
|
63
|
+
Q(h, Te(h))
|
|
64
|
+
] : []), B("");
|
|
65
65
|
}, [
|
|
66
66
|
r,
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
]), k =
|
|
67
|
+
M,
|
|
68
|
+
B
|
|
69
|
+
]), k = S((I) => {
|
|
70
70
|
a && r(typeof I == "number" ? [
|
|
71
|
-
|
|
71
|
+
Q(a, String(I))
|
|
72
72
|
] : []);
|
|
73
73
|
}, [
|
|
74
74
|
r,
|
|
75
75
|
a
|
|
76
|
-
]),
|
|
76
|
+
]), G = x(() => ce(k, 500), [
|
|
77
77
|
k
|
|
78
|
-
]), j =
|
|
79
|
-
(
|
|
80
|
-
const { validInput: h, validNumber: ee } = _e(I.target.value,
|
|
81
|
-
|
|
78
|
+
]), j = S((I) => {
|
|
79
|
+
(b == null ? void 0 : b.productId) !== (a == null ? void 0 : a.id) && r(void 0);
|
|
80
|
+
const { validInput: h, validNumber: ee } = _e(I.target.value, Re, V, _);
|
|
81
|
+
B(h), G(ee);
|
|
82
82
|
}, [
|
|
83
83
|
_,
|
|
84
84
|
r,
|
|
85
|
-
|
|
85
|
+
b,
|
|
86
86
|
a,
|
|
87
87
|
V,
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
]), U = (
|
|
88
|
+
G,
|
|
89
|
+
B
|
|
90
|
+
]), U = (b == null ? void 0 : b.productId) || null, z = S(() => {
|
|
91
91
|
a != null && a.id && U !== a.id && q(a.id);
|
|
92
92
|
}, [
|
|
93
93
|
a == null ? void 0 : a.id,
|
|
94
94
|
U,
|
|
95
95
|
q
|
|
96
|
-
]), J = O(e, s.Label),
|
|
96
|
+
]), J = O(e, s.Label), K = O(e, s.Control), X = O(e, s.Description), Z = O(e, s.Error);
|
|
97
97
|
return /* @__PURE__ */ n.createElement(f, {
|
|
98
98
|
fieldId: t,
|
|
99
99
|
renderLabel: () => J,
|
|
100
|
-
renderInput: () => /* @__PURE__ */ n.createElement(
|
|
100
|
+
renderInput: () => /* @__PURE__ */ n.createElement(ye, {
|
|
101
101
|
id: c,
|
|
102
102
|
ariaLabelledBy: d,
|
|
103
|
-
ariaDescribedBy:
|
|
103
|
+
ariaDescribedBy: y,
|
|
104
104
|
required: l,
|
|
105
105
|
onBlur: i,
|
|
106
106
|
onFocus: C
|
|
107
|
-
},
|
|
108
|
-
productsById:
|
|
107
|
+
}, K ? F(K, {
|
|
108
|
+
productsById: M,
|
|
109
109
|
selectedValue: U,
|
|
110
110
|
onSelectProduct: q,
|
|
111
111
|
addOther: E,
|
|
@@ -119,8 +119,8 @@ const s = ({ children: e }) => {
|
|
|
119
119
|
}) : null),
|
|
120
120
|
renderDescription: () => /* @__PURE__ */ n.createElement(n.Fragment, null, Z, X)
|
|
121
121
|
});
|
|
122
|
-
},
|
|
123
|
-
const { productsById: r, selectedValue: l, onSelectProduct: i, addOther: C, customAmount: u, onCustomAmountInputChange: E, currency: p, t: f, placeholder: c, customAmountProductId: d, onFocusCustomInput:
|
|
122
|
+
}, Be = ({ children: e, className: t, ...o }) => {
|
|
123
|
+
const { productsById: r, selectedValue: l, onSelectProduct: i, addOther: C, customAmount: u, onCustomAmountInputChange: E, currency: p, t: f, placeholder: c, customAmountProductId: d, onFocusCustomInput: y } = o, { hasError: m } = T(), g = O(e, s.Options), _ = O(e, s.OtherInput);
|
|
124
124
|
return /* @__PURE__ */ n.createElement("div", {
|
|
125
125
|
className: t,
|
|
126
126
|
"data-invalid": m
|
|
@@ -135,7 +135,7 @@ const s = ({ children: e }) => {
|
|
|
135
135
|
t: f,
|
|
136
136
|
placeholder: c,
|
|
137
137
|
customAmountProductId: d,
|
|
138
|
-
onFocusCustomInput:
|
|
138
|
+
onFocusCustomInput: y
|
|
139
139
|
}) : null);
|
|
140
140
|
}, $ = ({ children: e, className: t, ...o }) => {
|
|
141
141
|
const { productsById: r, selectedValue: l, onSelectProduct: i } = o, { options: C, numberOfColumns: u, disabled: E } = T(), { labelId: p } = P(), f = O(e, $.Option);
|
|
@@ -153,15 +153,15 @@ const s = ({ children: e }) => {
|
|
|
153
153
|
isDisabled: E
|
|
154
154
|
}, C.map((c) => {
|
|
155
155
|
var m;
|
|
156
|
-
const d = r[c.value],
|
|
156
|
+
const d = r[c.value], y = (m = d == null ? void 0 : d.fixedPriceOptions) == null ? void 0 : m.price;
|
|
157
157
|
return F(f, {
|
|
158
158
|
key: c.value,
|
|
159
159
|
value: c.value,
|
|
160
|
-
price:
|
|
160
|
+
price: y || "0"
|
|
161
161
|
});
|
|
162
162
|
}));
|
|
163
|
-
},
|
|
164
|
-
const { value: r, price: l } = o, { id: i, hasError: C } = T(), { currency: u, regionalFormat: E } = H(), p = O(e,
|
|
163
|
+
}, A = ({ children: e, className: t, ...o }) => {
|
|
164
|
+
const { value: r, price: l } = o, { id: i, hasError: C } = T(), { currency: u, regionalFormat: E } = H(), p = O(e, A.Value), f = O(e, A.Currency), { isCurrencyPrefixed: c } = Y({
|
|
165
165
|
amount: l,
|
|
166
166
|
currency: u == null ? void 0 : u.code,
|
|
167
167
|
locale: E
|
|
@@ -172,7 +172,7 @@ const s = ({ children: e }) => {
|
|
|
172
172
|
preventScroll: !0
|
|
173
173
|
});
|
|
174
174
|
}, i);
|
|
175
|
-
const
|
|
175
|
+
const y = p ? F(p, {
|
|
176
176
|
price: l
|
|
177
177
|
}) : null;
|
|
178
178
|
return /* @__PURE__ */ n.createElement(ae, {
|
|
@@ -180,9 +180,9 @@ const s = ({ children: e }) => {
|
|
|
180
180
|
className: t,
|
|
181
181
|
ref: d,
|
|
182
182
|
"data-invalid": C || void 0
|
|
183
|
-
}, /* @__PURE__ */ n.createElement(n.Fragment, null, c && f,
|
|
183
|
+
}, /* @__PURE__ */ n.createElement(n.Fragment, null, c && f, y, !c && f));
|
|
184
184
|
}, xe = ({ className: e, ...t }) => {
|
|
185
|
-
const { price: o } = t, { currency: r, regionalFormat: l } = H(), { value: i } =
|
|
185
|
+
const { price: o } = t, { currency: r, regionalFormat: l } = H(), { value: i } = Y({
|
|
186
186
|
amount: o,
|
|
187
187
|
currency: r == null ? void 0 : r.code,
|
|
188
188
|
locale: l
|
|
@@ -196,10 +196,10 @@ const s = ({ children: e }) => {
|
|
|
196
196
|
className: e
|
|
197
197
|
}, (t == null ? void 0 : t.sign) || (t == null ? void 0 : t.code) || "");
|
|
198
198
|
};
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
const
|
|
202
|
-
const { customAmount: r, onCustomAmountInputChange: l, currency: i, t: C, placeholder: u, customAmountProductId: E, onFocusCustomInput: p } = o, { disabled: f, hasError: c } = T(), { labelId: d, prefixId:
|
|
199
|
+
A.Value = xe;
|
|
200
|
+
A.Currency = He;
|
|
201
|
+
const R = ({ children: e, className: t, ...o }) => {
|
|
202
|
+
const { customAmount: r, onCustomAmountInputChange: l, currency: i, t: C, placeholder: u, customAmountProductId: E, onFocusCustomInput: p } = o, { disabled: f, hasError: c } = T(), { labelId: d, prefixId: y } = P(), m = O(e, R.Currency), g = O(e, R.Value), _ = S((D) => {
|
|
203
203
|
l({
|
|
204
204
|
target: {
|
|
205
205
|
value: D
|
|
@@ -207,16 +207,16 @@ const A = ({ children: e, className: t, ...o }) => {
|
|
|
207
207
|
});
|
|
208
208
|
}, [
|
|
209
209
|
l
|
|
210
|
-
]),
|
|
210
|
+
]), b = S(() => {
|
|
211
211
|
p();
|
|
212
212
|
}, [
|
|
213
213
|
p
|
|
214
214
|
]);
|
|
215
215
|
return /* @__PURE__ */ n.createElement(re, {
|
|
216
|
-
"aria-labelledby": `${d} ${
|
|
216
|
+
"aria-labelledby": `${d} ${y}`,
|
|
217
217
|
value: r,
|
|
218
218
|
onChange: _,
|
|
219
|
-
onFocus:
|
|
219
|
+
onFocus: b,
|
|
220
220
|
isDisabled: f,
|
|
221
221
|
isInvalid: c
|
|
222
222
|
}, /* @__PURE__ */ n.createElement(se, {
|
|
@@ -250,43 +250,43 @@ const A = ({ children: e, className: t, ...o }) => {
|
|
|
250
250
|
className: e
|
|
251
251
|
});
|
|
252
252
|
};
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
$.Option =
|
|
256
|
-
s.Label =
|
|
257
|
-
s.Control =
|
|
253
|
+
R.Currency = Ve;
|
|
254
|
+
R.Value = qe;
|
|
255
|
+
$.Option = A;
|
|
256
|
+
s.Label = be;
|
|
257
|
+
s.Control = Be;
|
|
258
258
|
s.Options = $;
|
|
259
|
-
s.OtherInput =
|
|
259
|
+
s.OtherInput = R;
|
|
260
260
|
s.Description = fe;
|
|
261
261
|
s.Error = Oe;
|
|
262
|
-
const Ue = "_control_lovol_1", $e = "_option_lovol_7", ke = "_optionHover_lovol_39",
|
|
262
|
+
const Ue = "_control_lovol_1", $e = "_option_lovol_7", ke = "_optionHover_lovol_39", Ge = "_optionSelected_lovol_39", Ke = "_optionCurrency_lovol_92", Qe = "_otherInput_lovol_96", We = "_otherInputCurrency_lovol_118", N = {
|
|
263
263
|
control: Ue,
|
|
264
264
|
option: $e,
|
|
265
265
|
optionHover: ke,
|
|
266
|
-
optionSelected:
|
|
267
|
-
optionCurrency:
|
|
268
|
-
otherInput:
|
|
269
|
-
otherInputCurrency:
|
|
270
|
-
},
|
|
266
|
+
optionSelected: Ge,
|
|
267
|
+
optionCurrency: Ke,
|
|
268
|
+
otherInput: Qe,
|
|
269
|
+
otherInputCurrency: We
|
|
270
|
+
}, Ye = ({ content: e, locale: t }) => /* @__PURE__ */ n.createElement(ne, {
|
|
271
271
|
content: e,
|
|
272
272
|
locale: t
|
|
273
|
-
}),
|
|
273
|
+
}), we = {
|
|
274
274
|
base: N.option,
|
|
275
275
|
selected: N.optionSelected,
|
|
276
276
|
hover: N.optionHover
|
|
277
277
|
}, je = () => {
|
|
278
|
-
const e =
|
|
278
|
+
const e = ve(N.otherInput), t = Se({
|
|
279
279
|
globalClasses: Ee,
|
|
280
|
-
moduleClasses:
|
|
280
|
+
moduleClasses: we
|
|
281
281
|
});
|
|
282
282
|
return /* @__PURE__ */ n.createElement(s, null, /* @__PURE__ */ n.createElement(s.Label, {
|
|
283
|
-
className:
|
|
283
|
+
className: v(me, L.label)
|
|
284
284
|
}, /* @__PURE__ */ n.createElement(s.Label.Required, {
|
|
285
|
-
className:
|
|
285
|
+
className: v(pe, L.requiredMark)
|
|
286
286
|
})), /* @__PURE__ */ n.createElement(s.Control, {
|
|
287
287
|
className: N.control
|
|
288
288
|
}, /* @__PURE__ */ n.createElement(s.Options, {
|
|
289
|
-
className:
|
|
289
|
+
className: v(de, De.options, N.options)
|
|
290
290
|
}, /* @__PURE__ */ n.createElement(s.Options.Option, {
|
|
291
291
|
className: t
|
|
292
292
|
}, /* @__PURE__ */ n.createElement(s.Options.Option.Value, null), /* @__PURE__ */ n.createElement(s.Options.Option.Currency, {
|
|
@@ -298,10 +298,10 @@ const Ue = "_control_lovol_1", $e = "_option_lovol_7", ke = "_optionHover_lovol_
|
|
|
298
298
|
}), /* @__PURE__ */ n.createElement(s.OtherInput.Value, {
|
|
299
299
|
className: L.innerInput
|
|
300
300
|
}))), /* @__PURE__ */ n.createElement(s.Error, {
|
|
301
|
-
className:
|
|
301
|
+
className: v(Ie, L.error)
|
|
302
302
|
}, /* @__PURE__ */ n.createElement(Fe, null), /* @__PURE__ */ n.createElement(s.Error.Text, null)), /* @__PURE__ */ n.createElement(s.Description, {
|
|
303
|
-
className:
|
|
304
|
-
},
|
|
303
|
+
className: v(Ce, L.description)
|
|
304
|
+
}, Ye));
|
|
305
305
|
}, Ct = () => /* @__PURE__ */ n.createElement(je, null);
|
|
306
306
|
export {
|
|
307
307
|
Ct as DonationRAC
|
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
import { RicosViewer as m } from "@wix/ricos/viewer";
|
|
2
2
|
import a from "classnames";
|
|
3
3
|
import e from "react";
|
|
4
|
-
import { D as r } from "./dropdown-
|
|
5
|
-
import { C as
|
|
6
|
-
import { E as
|
|
7
|
-
import { H as
|
|
4
|
+
import { u as n, D as r } from "./use-dropdown-trigger-class-name-Yes4kC_0.js";
|
|
5
|
+
import { C as l } from "./chevron-down-icon-CcpVm6B-.js";
|
|
6
|
+
import { E as c } from "./error-icon-hZxQ6DEy.js";
|
|
7
|
+
import { H as i } from "./custom-focus-class-_483Pkwp.js";
|
|
8
8
|
import { s as o } from "./field-rac.module-DP0lkkEv.js";
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
9
|
+
import { W as p, ac as E, J as D, M as _, G as O } from "./form-BUqSKOvc.js";
|
|
10
|
+
import { u as R } from "./use-dropdown-option-class-name-DbMMg1ws.js";
|
|
11
11
|
const C = ({ content: t, locale: s }) => /* @__PURE__ */ e.createElement(m, {
|
|
12
12
|
content: t,
|
|
13
13
|
locale: s
|
|
14
14
|
}), w = () => {
|
|
15
|
-
const t =
|
|
15
|
+
const t = n(o.dropdownTrigger), s = R(i);
|
|
16
16
|
return /* @__PURE__ */ e.createElement(r, null, /* @__PURE__ */ e.createElement(r.Label, {
|
|
17
|
-
className: a(
|
|
17
|
+
className: a(p, o.label)
|
|
18
18
|
}, /* @__PURE__ */ e.createElement(r.Label.Required, {
|
|
19
|
-
className: a(
|
|
19
|
+
className: a(E, o.requiredMark)
|
|
20
20
|
})), /* @__PURE__ */ e.createElement(r.Trigger, {
|
|
21
21
|
className: t
|
|
22
|
-
}, /* @__PURE__ */ e.createElement(
|
|
22
|
+
}, /* @__PURE__ */ e.createElement(l, {
|
|
23
23
|
className: o.dropdownIcon
|
|
24
24
|
})), /* @__PURE__ */ e.createElement(r.Options, {
|
|
25
|
-
className: a(
|
|
25
|
+
className: a(D, o.selectPopover, o.dropdownPopover)
|
|
26
26
|
}, /* @__PURE__ */ e.createElement(r.Options.Option, {
|
|
27
27
|
className: s
|
|
28
28
|
})), /* @__PURE__ */ e.createElement(r.Error, {
|
|
29
|
-
className: a(
|
|
30
|
-
}, /* @__PURE__ */ e.createElement(
|
|
31
|
-
className: a(
|
|
29
|
+
className: a(_, o.error)
|
|
30
|
+
}, /* @__PURE__ */ e.createElement(c, null), /* @__PURE__ */ e.createElement(r.Error.Text, null)), /* @__PURE__ */ e.createElement(r.Description, {
|
|
31
|
+
className: a(O, o.description)
|
|
32
32
|
}, C));
|
|
33
33
|
};
|
|
34
34
|
export {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import o, { useMemo as n } from "react";
|
|
2
|
-
import {
|
|
3
|
-
import { C as l } from "./checkbox-field-rac-
|
|
2
|
+
import { bA as a, bK as c, aC as i } from "./form-BUqSKOvc.js";
|
|
3
|
+
import { C as l } from "./checkbox-field-rac-CMwmwFMD.js";
|
|
4
4
|
const p = (e) => ({
|
|
5
5
|
nodes: [
|
|
6
6
|
{
|
package/dist/component/{email-input-field-rac-Df3KI3_v.js → email-input-field-rac-CVw25yRo.js}
RENAMED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { RicosViewer as ie } from "@wix/ricos/viewer";
|
|
2
|
-
import
|
|
2
|
+
import j from "classnames";
|
|
3
3
|
import u, { createContext as z, useContext as Z, createElement as R, isValidElement as B, cloneElement as w, useState as le, useCallback as me, useEffect as ue } from "react";
|
|
4
4
|
import { TextField as pe } from "react-aria-components";
|
|
5
|
-
import {
|
|
5
|
+
import { bx as fe, bK as ge, bv as ve, d as ye, bA as Ee, bE as de, by as be, aA as Se, W as Oe, ac as he, M as Ie, G as Ne, al as Ae } from "./form-BUqSKOvc.js";
|
|
6
6
|
import { f as C } from "./find-child-C60k4CxG.js";
|
|
7
7
|
import ee from "@babel/runtime/helpers/objectWithoutProperties";
|
|
8
8
|
import L from "@babel/runtime/helpers/typeof";
|
|
9
9
|
import Fe from "@babel/runtime/helpers/defineProperty";
|
|
10
10
|
import ke from "html-parse-stringify";
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import { T as U } from "./text-input-headless-
|
|
14
|
-
import { E as
|
|
11
|
+
import xe from "@babel/runtime/helpers/classCallCheck";
|
|
12
|
+
import Te from "@babel/runtime/helpers/createClass";
|
|
13
|
+
import { T as U } from "./text-input-headless-BJMNbsMY.js";
|
|
14
|
+
import { E as De } from "./error-icon-hZxQ6DEy.js";
|
|
15
15
|
import { s as H } from "./field-rac.module-DP0lkkEv.js";
|
|
16
|
-
import { u as
|
|
16
|
+
import { u as je } from "./use-text-input-class-name-D9tJTR-b.js";
|
|
17
17
|
var Ce = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g, Le = {
|
|
18
18
|
"&": "&",
|
|
19
19
|
"&": "&",
|
|
@@ -54,9 +54,9 @@ function Re() {
|
|
|
54
54
|
}
|
|
55
55
|
(function() {
|
|
56
56
|
function e() {
|
|
57
|
-
|
|
57
|
+
xe(this, e), this.usedNamespaces = {};
|
|
58
58
|
}
|
|
59
|
-
return
|
|
59
|
+
return Te(e, [{
|
|
60
60
|
key: "addUsedNamespaces",
|
|
61
61
|
value: function(a) {
|
|
62
62
|
var o = this;
|
|
@@ -109,12 +109,12 @@ function p(e) {
|
|
|
109
109
|
}
|
|
110
110
|
return e;
|
|
111
111
|
}
|
|
112
|
-
function
|
|
112
|
+
function G(e, t) {
|
|
113
113
|
if (!e) return !1;
|
|
114
114
|
var a = e.props ? e.props.children : e.children;
|
|
115
115
|
return t ? a.length > 0 : !!a;
|
|
116
116
|
}
|
|
117
|
-
function
|
|
117
|
+
function Y(e) {
|
|
118
118
|
return e ? e.props ? e.props.children : e.children : [];
|
|
119
119
|
}
|
|
120
120
|
function qe(e) {
|
|
@@ -125,7 +125,7 @@ function qe(e) {
|
|
|
125
125
|
function M(e) {
|
|
126
126
|
return Array.isArray(e) ? e : [e];
|
|
127
127
|
}
|
|
128
|
-
function
|
|
128
|
+
function Ge(e, t) {
|
|
129
129
|
var a = p({}, t);
|
|
130
130
|
return a.props = Object.assign(e.props, t.props), a;
|
|
131
131
|
}
|
|
@@ -146,8 +146,8 @@ function te(e, t) {
|
|
|
146
146
|
else if (d && v === 1 && typeof b == "string")
|
|
147
147
|
a += "<".concat(r.type, ">").concat(b, "</").concat(r.type, ">");
|
|
148
148
|
else {
|
|
149
|
-
var
|
|
150
|
-
a += "<".concat(g, ">").concat(
|
|
149
|
+
var x = te(b, t);
|
|
150
|
+
a += "<".concat(g, ">").concat(x, "</").concat(g, ">");
|
|
151
151
|
}
|
|
152
152
|
} else if (r === null)
|
|
153
153
|
K("Trans: the passed in value is invalid - seems you passed in a null child.");
|
|
@@ -162,7 +162,7 @@ function te(e, t) {
|
|
|
162
162
|
K("Trans: the passed in value is invalid - seems you passed in a variable like {number} - please pass in variables for interpolation as full objects like {{number}}.", r);
|
|
163
163
|
}), a;
|
|
164
164
|
}
|
|
165
|
-
function
|
|
165
|
+
function Ye(e, t, a, o, c, r) {
|
|
166
166
|
if (t === "") return [];
|
|
167
167
|
var g = o.transKeepBasicHtmlNodesFor || [], v = t && new RegExp(g.join("|")).test(t);
|
|
168
168
|
if (!e && !v) return [t];
|
|
@@ -170,13 +170,13 @@ function Ge(e, t, a, o, c, r) {
|
|
|
170
170
|
function b(y) {
|
|
171
171
|
var h = M(y);
|
|
172
172
|
h.forEach(function(s) {
|
|
173
|
-
typeof s != "string" && (
|
|
173
|
+
typeof s != "string" && (G(s) ? b(Y(s)) : L(s) === "object" && !B(s) && Object.assign(d, s));
|
|
174
174
|
});
|
|
175
175
|
}
|
|
176
176
|
b(e);
|
|
177
|
-
var
|
|
177
|
+
var x = ke.parse("<0>".concat(t, "</0>")), O = p(p({}, d), c);
|
|
178
178
|
function F(y, h, s) {
|
|
179
|
-
var i =
|
|
179
|
+
var i = Y(y), I = S(i, h.children, s);
|
|
180
180
|
return qe(i) && I.length === 0 ? i : I;
|
|
181
181
|
}
|
|
182
182
|
function A(y, h, s, i, I) {
|
|
@@ -191,13 +191,13 @@ function Ge(e, t, a, o, c, r) {
|
|
|
191
191
|
if (n.type === "tag") {
|
|
192
192
|
var N = i[parseInt(n.name, 10)];
|
|
193
193
|
!N && s.length === 1 && s[0][n.name] && (N = s[0][n.name]), N || (N = {});
|
|
194
|
-
var m = Object.keys(n.attrs).length !== 0 ?
|
|
194
|
+
var m = Object.keys(n.attrs).length !== 0 ? Ge({
|
|
195
195
|
props: n.attrs
|
|
196
|
-
}, N) : N,
|
|
196
|
+
}, N) : N, T = B(m), V = T && G(n, !0) && !n.voidElement, P = v && L(m) === "object" && m.dummy && !T, _ = L(e) === "object" && e !== null && Object.hasOwnProperty.call(e, n.name);
|
|
197
197
|
if (typeof m == "string") {
|
|
198
198
|
var q = a.services.interpolator.interpolate(m, O, a.language);
|
|
199
199
|
l.push(q);
|
|
200
|
-
} else if (
|
|
200
|
+
} else if (G(m) || V) {
|
|
201
201
|
var ne = F(m, n, s);
|
|
202
202
|
A(m, ne, l, E);
|
|
203
203
|
} else if (P) {
|
|
@@ -226,7 +226,7 @@ function Ge(e, t, a, o, c, r) {
|
|
|
226
226
|
var ce = S(i, n.children, s);
|
|
227
227
|
l.push("<".concat(n.name, ">").concat(ce, "</").concat(n.name, ">"));
|
|
228
228
|
}
|
|
229
|
-
else if (L(m) === "object" && !
|
|
229
|
+
else if (L(m) === "object" && !T) {
|
|
230
230
|
var $ = n.children[0] ? k : null;
|
|
231
231
|
$ && l.push($);
|
|
232
232
|
} else n.children.length === 1 && k ? l.push(w(m, p(p({}, m.props), {}, {
|
|
@@ -243,14 +243,14 @@ function Ge(e, t, a, o, c, r) {
|
|
|
243
243
|
return l;
|
|
244
244
|
}, []);
|
|
245
245
|
}
|
|
246
|
-
var
|
|
246
|
+
var D = S([{
|
|
247
247
|
dummy: !0,
|
|
248
248
|
children: e || []
|
|
249
|
-
}],
|
|
250
|
-
return
|
|
249
|
+
}], x, M(e || []));
|
|
250
|
+
return Y(D[0]);
|
|
251
251
|
}
|
|
252
252
|
function $e(e) {
|
|
253
|
-
var t = e.children, a = e.count, o = e.parent, c = e.i18nKey, r = e.context, g = e.tOptions, v = g === void 0 ? {} : g, d = e.values, b = e.defaults,
|
|
253
|
+
var t = e.children, a = e.count, o = e.parent, c = e.i18nKey, r = e.context, g = e.tOptions, v = g === void 0 ? {} : g, d = e.values, b = e.defaults, x = e.components, O = e.ns, F = e.i18n, A = e.t, S = e.shouldUnescape, D = ee(e, Ve), y = Z(He) || {}, h = y.i18n, s = y.defaultNS, i = F || h || Ke();
|
|
254
254
|
if (!i)
|
|
255
255
|
return Be("You will need to pass in an i18next instance by using i18nextReactModule"), t;
|
|
256
256
|
var I = A || i.t.bind(i) || function(q) {
|
|
@@ -264,13 +264,13 @@ function $e(e) {
|
|
|
264
264
|
prefix: "#$?",
|
|
265
265
|
suffix: "?$#"
|
|
266
266
|
})
|
|
267
|
-
},
|
|
267
|
+
}, T = p(p(p(p({}, v), {}, {
|
|
268
268
|
count: a
|
|
269
269
|
}, d), m), {}, {
|
|
270
270
|
defaultValue: E,
|
|
271
271
|
ns: n
|
|
272
|
-
}), V = N ? I(N,
|
|
273
|
-
return _ ? R(_,
|
|
272
|
+
}), V = N ? I(N, T) : E, P = Ye(x || t, V, i, l, T, S), _ = o !== void 0 ? o : l.defaultTransParent;
|
|
273
|
+
return _ ? R(_, D, P) : P;
|
|
274
274
|
}
|
|
275
275
|
const We = "email-mistype-suggestion", Xe = "email-mistype-suggestion-link", ae = /* @__PURE__ */ z(void 0);
|
|
276
276
|
function Je() {
|
|
@@ -449,13 +449,13 @@ const Qe = ({ activeSuggestion: e, applySuggestion: t, children: a }) => /* @__P
|
|
|
449
449
|
validate: v
|
|
450
450
|
};
|
|
451
451
|
}, f = ({ children: e }) => {
|
|
452
|
-
const { id: t, value: a, onChange: o, disabled: c, readOnly: r, required: g, hasError: v, onBlur: d, onFocus: b, error:
|
|
452
|
+
const { id: t, value: a, onChange: o, disabled: c, readOnly: r, required: g, hasError: v, onBlur: d, onFocus: b, error: x, description: O, FieldLayout: F } = Ee(), { isMistyped: A, suggestedEmail: S, validate: D } = at({
|
|
453
453
|
email: a,
|
|
454
454
|
hasError: v
|
|
455
|
-
}), { setFocusedFieldId: y } = de(), s = A && (!r && !c) && S ? S : void 0, i = be(t,
|
|
455
|
+
}), { setFocusedFieldId: y } = de(), s = A && (!r && !c) && S ? S : void 0, i = be(t, x, O, s), I = () => {
|
|
456
456
|
o(s), y(t);
|
|
457
457
|
}, l = () => {
|
|
458
|
-
|
|
458
|
+
D(), d == null || d();
|
|
459
459
|
}, n = C(e, f.Label), E = C(e, f.Input), k = C(e, f.Description), N = C(e, f.Error), m = C(e, f.Suggestion);
|
|
460
460
|
return /* @__PURE__ */ u.createElement(Se.Provider, {
|
|
461
461
|
value: i
|
|
@@ -492,19 +492,19 @@ const nt = "_suggestion_lysve_1", ot = {
|
|
|
492
492
|
content: e,
|
|
493
493
|
locale: t
|
|
494
494
|
}), ht = () => {
|
|
495
|
-
const e =
|
|
495
|
+
const e = je();
|
|
496
496
|
return /* @__PURE__ */ u.createElement(f, null, /* @__PURE__ */ u.createElement(f.Label, {
|
|
497
|
-
className:
|
|
497
|
+
className: j(Oe, H.label)
|
|
498
498
|
}, /* @__PURE__ */ u.createElement(f.Label.Required, {
|
|
499
|
-
className:
|
|
499
|
+
className: j(he, H.requiredMark)
|
|
500
500
|
})), /* @__PURE__ */ u.createElement(f.Input, {
|
|
501
501
|
className: e
|
|
502
502
|
}), /* @__PURE__ */ u.createElement(f.Error, {
|
|
503
|
-
className:
|
|
504
|
-
}, /* @__PURE__ */ u.createElement(
|
|
505
|
-
className:
|
|
503
|
+
className: j(Ie, H.error)
|
|
504
|
+
}, /* @__PURE__ */ u.createElement(De, null), /* @__PURE__ */ u.createElement(f.Error.Text, null)), /* @__PURE__ */ u.createElement(f.Description, {
|
|
505
|
+
className: j(Ne, H.description)
|
|
506
506
|
}, rt), /* @__PURE__ */ u.createElement(f.Suggestion, {
|
|
507
|
-
className:
|
|
507
|
+
className: j(Ae, ot.suggestion)
|
|
508
508
|
}));
|
|
509
509
|
};
|
|
510
510
|
export {
|