@wix/form-elements 1.108.0 → 1.110.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-ZAp8oWbK.js → appointment-rac-CfPs6AsU.js} +60 -60
- package/dist/component/{bookings-address-rac-x-Az7vHf.js → bookings-address-rac-XkgsBu8i.js} +1 -1
- package/dist/component/{bookings-email-rac-MoF_CaqB.js → bookings-email-rac-CyESeQLD.js} +1 -1
- package/dist/component/{bookings-first-name-rac-CWh3Rb0M.js → bookings-first-name-rac-CFY5Qwk9.js} +1 -1
- package/dist/component/{bookings-header-rac-BVTiXUWk.js → bookings-header-rac-lRsebspV.js} +1 -1
- package/dist/component/{bookings-last-name-rac-kXRRlyHl.js → bookings-last-name-rac-B7J2K4oK.js} +1 -1
- package/dist/component/{bookings-login-bar-rac-C4Zr6kXE.js → bookings-login-bar-rac-BD97U76_.js} +3 -3
- package/dist/component/{bookings-phone-rac-2rz1m_xi.js → bookings-phone-rac-CpgDCLTp.js} +1 -1
- package/dist/component/{bookings-rich-text-rac-BEjGypQw.js → bookings-rich-text-rac-DQUQMN3s.js} +1 -1
- package/dist/component/{checkbox-field-rac-DwEQLIaz.js → checkbox-field-rac-CcOW4yol.js} +43 -43
- package/dist/component/{checkbox-group-field-headless-BsOww_QB.js → checkbox-group-field-headless-DiBxnwOj.js} +8 -8
- package/dist/component/{checkbox-group-field-rac-DTcZcVS6.js → checkbox-group-field-rac-BCzS44NM.js} +4 -4
- package/dist/component/{checkbox-group-rac-DQsML-pW.js → checkbox-group-rac-C2oHVikX.js} +1 -1
- package/dist/component/{checkbox-rac-irEBBOxP.js → checkbox-rac-DPhswfJ9.js} +1 -1
- package/dist/component/{contacts-address-rac-B5bSAYrm.js → contacts-address-rac-Cjqot4Vo.js} +1 -1
- package/dist/component/{contacts-birthdate-rac-DyScj8f4.js → contacts-birthdate-rac-C3uYlFa3.js} +1 -1
- package/dist/component/{contacts-company-rac-C5X9-jXa.js → contacts-company-rac-BDmDrlJm.js} +1 -1
- package/dist/component/{contacts-email-rac-B0vkfmrS.js → contacts-email-rac-9NI8430K.js} +1 -1
- package/dist/component/{contacts-first-name-rac-Cfil3U_e.js → contacts-first-name-rac-PNgDNwXZ.js} +1 -1
- package/dist/component/{contacts-last-name-rac-CtPLE-7-.js → contacts-last-name-rac-Dkf8oYRe.js} +1 -1
- package/dist/component/{contacts-phone-rac-YkzsAoBZ.js → contacts-phone-rac-BefG0umR.js} +1 -1
- package/dist/component/{contacts-position-rac-BS4j8QC-.js → contacts-position-rac-8ZWMa74Q.js} +1 -1
- package/dist/component/{contacts-subscribe-rac-z_9VsEZL.js → contacts-subscribe-rac-Dj0k_O2C.js} +1 -1
- package/dist/component/{contacts-tax-id-rac-WFkmKyZv.js → contacts-tax-id-rac-Dbz0SEH9.js} +1 -1
- package/dist/component/{date-availability-NN3rxosk.js → date-availability-CpZYBX1d.js} +1 -1
- package/dist/component/{date-input-field-rac-mdhEC3oq.js → date-input-field-rac-8CkusNEQ.js} +64 -64
- package/dist/component/{date-input-rac-CGciuoTx.js → date-input-rac-CH1ke9-c.js} +1 -1
- package/dist/component/{date-picker-field-rac-CRZVODfF.js → date-picker-field-rac-pZQhHvZc.js} +31 -31
- package/dist/component/{date-picker-rac-Bfbvjy8W.js → date-picker-rac-BOdzNgu6.js} +1 -1
- package/dist/component/{date-time-input-field-rac-TDWBXZ44.js → date-time-input-field-rac-DDUZvi8G.js} +70 -70
- package/dist/component/{date-time-input-rac-DY0qdSix.js → date-time-input-rac-DkjW7KId.js} +1 -1
- package/dist/component/{dext-checkbox-group-rac-BFGM7SOt.js → dext-checkbox-group-rac-Cjx062TO.js} +2 -2
- package/dist/component/{dext-checkbox-rac-DPZvTeUZ.js → dext-checkbox-rac-CIqsZ8Cf.js} +1 -1
- package/dist/component/{dext-date-picker-rac-Xd5kojsQ.js → dext-date-picker-rac-BYQN00yy.js} +1 -1
- package/dist/component/{dext-date-time-input-rac-C0RIdxJW.js → dext-date-time-input-rac-Bh-HYZ_X.js} +1 -1
- package/dist/component/{dext-dropdown-rac-D1m8vJvm.js → dext-dropdown-rac-rnkUqsSx.js} +1 -1
- package/dist/component/{dext-email-rac-BC81RFYY.js → dext-email-rac-DtW_DadC.js} +1 -1
- package/dist/component/{dext-number-input-rac-Z_ih9FfX.js → dext-number-input-rac-DTfdLXFG.js} +1 -1
- package/dist/component/{dext-phone-rac-s3BOnXuI.js → dext-phone-rac-D3anV8iB.js} +1 -1
- package/dist/component/{dext-radio-group-rac-CL3jcezs.js → dext-radio-group-rac-CIO_2H7F.js} +4 -4
- package/dist/component/{dext-rating-input-rac-wz1EyP5b.js → dext-rating-input-rac-Bdtbwo1W.js} +1 -1
- package/dist/component/{dext-tags-rac-BY4Rf2BP.js → dext-tags-rac-DT4_lRM0.js} +4 -4
- package/dist/component/{dext-text-area-rac-DRJzlsq8.js → dext-text-area-rac-BgMlIgik.js} +1 -1
- package/dist/component/{dext-text-input-rac-BGcRNNAi.js → dext-text-input-rac-DDc6-lsN.js} +1 -1
- package/dist/component/{dext-url-input-rac-CRAIm8yp.js → dext-url-input-rac-CrOT7XQf.js} +1 -1
- package/dist/component/{donation-rac-BlTfOIlE.js → donation-rac-CORUAfww.js} +74 -74
- package/dist/component/{dropdown-field-headless-DhzRAMcM.js → dropdown-field-headless-B-82vlHV.js} +10 -10
- package/dist/component/{dropdown-field-rac-DXyY5we-.js → dropdown-field-rac-AYGyhYSH.js} +3 -3
- package/dist/component/{dropdown-rac-C6YM6qxm.js → dropdown-rac-g-zqV-y4.js} +1 -1
- package/dist/component/{ecom-address-rac-CAdr7wya.js → ecom-address-rac-BQqh4QrW.js} +1 -1
- package/dist/component/{ecom-subscription-checkbox-rac-Z2VMuCbt.js → ecom-subscription-checkbox-rac-Cf7Ou6Om.js} +2 -2
- package/dist/component/{email-input-field-rac-DpkfunVK.js → email-input-field-rac-BFrfF6TW.js} +47 -47
- package/dist/component/{events-repeater-rac-CuJkdrPo.js → events-repeater-rac-CNifjThM.js} +8 -8
- package/dist/component/{events-rsvp-rac-BKWlSeQ9.js → events-rsvp-rac-CnW7CNdo.js} +10 -10
- package/dist/component/{field-error-headless-tsg9FQ-_.js → field-error-headless-BLgaEh1d.js} +11 -11
- package/dist/component/{field-label-headless-CB8dEat8.js → field-label-headless-C8NbnF9M.js} +4 -4
- package/dist/component/file-upload-rac-Yk44koqY.js +561 -0
- package/dist/component/{fixed-payment-rac-CuIQEeHh.js → fixed-payment-rac-r_OUP_KD.js} +15 -15
- package/dist/component/{form-0jt4L5xo.js → form-DC8xFBa_.js} +6178 -5729
- package/dist/component/form.css +1 -1
- package/dist/component/form.js +3 -3
- package/dist/component/{header-field-rac-CWVGzxKb.js → header-field-rac-6NOymbBc.js} +4 -4
- package/dist/component/{header-rac-D6KsV-ko.js → header-rac-DzK8Cg5s.js} +1 -1
- package/dist/component/{image-choice-rac-CUCyVS8c.js → image-choice-rac-CcCInqrr.js} +9 -9
- package/dist/component/{index-iOqQidgV.js → index-B_72TOzS.js} +2 -2
- package/dist/component/{index-TJSnVtCO.js → index-CGbawBGb.js} +43 -43
- package/dist/component/{isObjectLike-DQbx8r1c.js → isObjectLike-BziKAUTi.js} +1 -1
- package/dist/component/{multiline-address-field-rac-DtZ1NTfD.js → multiline-address-field-rac-CJw6HvHY.js} +78 -78
- package/dist/component/{multiline-address-rac-ub-_XzHU.js → multiline-address-rac-B_GR1nkJ.js} +1 -1
- package/dist/component/{number-input-field-rac-DLItn4DK.js → number-input-field-rac-CXFmpNWL.js} +13 -13
- package/dist/component/{number-input-rac-UuxJzqEx.js → number-input-rac-sr4Dhnxa.js} +1 -1
- package/dist/component/{password-rac-Di6q96Rn.js → password-rac-BwBEPYo3.js} +15 -15
- package/dist/component/{payment-input-rac-CG6c4-Ge.js → payment-input-rac-BcLSkgtK.js} +44 -44
- package/dist/component/{phone-input-field-rac-D4JphCuT.js → phone-input-field-rac-4kp5xRJZ.js} +50 -50
- package/dist/component/{phone-rac-_vDw2usa.js → phone-rac-B_QYTg28.js} +1 -1
- package/dist/component/{product-list-rac-CgxRlj1f.js → product-list-rac-C7YDHPj_.js} +50 -50
- package/dist/component/{quiz-radio-group-rac-bi26aGxN.js → quiz-radio-group-rac-Be1v1PyS.js} +1 -1
- package/dist/component/{radio-button-module-classes-DDJq2ESf.js → radio-button-module-classes-k9DhZ1Fd.js} +14 -14
- package/dist/component/{radio-group-field-rac-D1aMVO6l.js → radio-group-field-rac-BDEAYQH5.js} +6 -6
- package/dist/component/{radio-group-rac-HKC85M6t.js → radio-group-rac-DcmSrcGy.js} +1 -1
- package/dist/component/{rating-input-field-rac-CpRehxFB.js → rating-input-field-rac-CcO3-3O3.js} +20 -20
- package/dist/component/{rating-input-rac-BMuCZ3oj.js → rating-input-rac-wl8G35Xv.js} +1 -1
- package/dist/component/{rich-content-rac.module-mZ6xoAOd.js → rich-content-rac.module-CzZ6x_Yf.js} +1 -1
- package/dist/component/{rich-text-field-rac-CUK8V8Kf.js → rich-text-field-rac-B4l_YgG7.js} +4 -4
- package/dist/component/{rich-text-rac-B-7sR2FJ.js → rich-text-rac-BlW4v4gg.js} +1 -1
- package/dist/component/{service-dropdown-rac-1DDNT5bn.js → service-dropdown-rac-CJTrm0iL.js} +33 -33
- package/dist/component/{services-multi-choice-rac-CB-6dwxz.js → services-multi-choice-rac-BkiL2Pct.js} +13 -13
- package/dist/component/{signature-rac-7XBci6P2.js → signature-rac-_fTng53p.js} +133 -133
- package/dist/component/{submit-button-rac-B1-Mk8Gg.js → submit-button-rac-EmqyRMuE.js} +17 -17
- package/dist/component/{tags-field-rac-CQ9Y7mq-.js → tags-field-rac-CTlZZLdv.js} +32 -32
- package/dist/component/{tags-rac-Visic-Ml.js → tags-rac-xd-CpByf.js} +1 -1
- package/dist/component/{text-area-field-rac-C8fP1g-w.js → text-area-field-rac-Dap_aF4j.js} +14 -14
- package/dist/component/{text-area-rac-B6yZxzxm.js → text-area-rac-rKSZi3gu.js} +1 -1
- package/dist/component/{text-input-field-rac-CNjbOxD1.js → text-input-field-rac-GBsaUY0A.js} +5 -5
- package/dist/component/{text-input-headless-Bm8PJGep.js → text-input-headless-SHtvSa6y.js} +3 -3
- package/dist/component/{text-input-rac-BEPC1Z-4.js → text-input-rac-v4R17Vxm.js} +1 -1
- package/dist/component/{time-input-rac-3m6C_Jp5.js → time-input-rac-DgnhZSjV.js} +27 -27
- package/dist/component/{url-input-field-rac-CIk_6Lf6.js → url-input-field-rac-BuTadRMy.js} +19 -19
- package/dist/component/{url-input-rac-DyVoygXH.js → url-input-rac-BpVSwqpz.js} +1 -1
- package/dist/component/{use-dropdown-option-class-name-McG3ayOT.js → use-dropdown-option-class-name-Cwfh_4oi.js} +2 -2
- package/dist/component/{use-element-state-class-name-B9MBWX44.js → use-element-state-class-name-BF7I_Ju7.js} +1 -1
- package/dist/component/{use-is-forced-open-dropdown-r5G_sZsO.js → use-is-forced-open-dropdown-BMuhxge2.js} +8 -8
- package/dist/component/{use-service-options-base-hcbkvhpw.js → use-service-options-base-DfyQZjmw.js} +1 -1
- package/dist/component/{use-text-input-class-name-SnurFqAr.js → use-text-input-class-name-ixt7gTGg.js} +2 -2
- package/dist/form.d.ts +18 -0
- package/package.json +3 -3
- package/dist/component/file-upload-rac-ZdgYt646.js +0 -483
|
@@ -3,19 +3,19 @@ import { RicosViewer as se } from "@wix/ricos/viewer";
|
|
|
3
3
|
import F from "classnames";
|
|
4
4
|
import { RadioGroup as ae, RadioField as Y, RadioButton as Q, TextField as le, Group as ie, Input as ce } from "react-aria-components";
|
|
5
5
|
import { debounce as ue } from "ts-debounce";
|
|
6
|
-
import {
|
|
6
|
+
import { aq as W, b9 as L, b6 as B, bj as me, b1 as j, bb as pe, I as de, U as Ie, q as fe, v as Ce, p as Ee, r as he } from "./form-DC8xFBa_.js";
|
|
7
7
|
import { f as E, a as y } from "./find-child-C60k4CxG.js";
|
|
8
|
-
import { a as
|
|
9
|
-
import { D as Oe, E as
|
|
10
|
-
import { L as
|
|
8
|
+
import { a as z } from "./format-currency-BwShJ9vM.js";
|
|
9
|
+
import { D as Oe, E as be } from "./field-error-headless-BLgaEh1d.js";
|
|
10
|
+
import { L as _e } from "./field-label-headless-C8NbnF9M.js";
|
|
11
11
|
import { a as ye, b as ge } from "./numeric-input-utils-CuBMi4-a.js";
|
|
12
12
|
import { g as Ne } from "./payment-field-utils-DobiK5Xh.js";
|
|
13
13
|
import { u as Fe } from "./use-synced-display-value-DcAxdn3M.js";
|
|
14
14
|
import { E as De } from "./error-icon-hZxQ6DEy.js";
|
|
15
|
-
import { s as
|
|
15
|
+
import { s as v } from "./field-rac.module-B4l_0KRU.js";
|
|
16
16
|
import { o as G } from "./options-rac.module-CTDdATiz.js";
|
|
17
|
-
import { u as
|
|
18
|
-
import { u as
|
|
17
|
+
import { u as ve } from "./use-element-state-class-name-BF7I_Ju7.js";
|
|
18
|
+
import { u as Se } from "./use-text-input-class-name-ixt7gTGg.js";
|
|
19
19
|
function Re(e, t) {
|
|
20
20
|
return e.reduce((o, r) => (o[r[t]] = r, o), {});
|
|
21
21
|
}
|
|
@@ -27,7 +27,7 @@ function Te(e) {
|
|
|
27
27
|
var t;
|
|
28
28
|
return ((t = e == null ? void 0 : e.fixedPriceOptions) == null ? void 0 : t.price) || "0";
|
|
29
29
|
}
|
|
30
|
-
function
|
|
30
|
+
function J(e, t) {
|
|
31
31
|
const o = Number(t || "0");
|
|
32
32
|
return {
|
|
33
33
|
productId: e.id,
|
|
@@ -44,11 +44,11 @@ function xe(e, t) {
|
|
|
44
44
|
function Me(e, t, o) {
|
|
45
45
|
const r = (t == null ? void 0 : t.productId) === e ? void 0 : e, a = r ? o[r] : void 0;
|
|
46
46
|
return a ? [
|
|
47
|
-
|
|
47
|
+
J(a, Te(a))
|
|
48
48
|
] : [];
|
|
49
49
|
}
|
|
50
50
|
const s = ({ children: e }) => {
|
|
51
|
-
const { id: t, value: o, onChange: r, disabled: a, required: u, onBlur: m, onFocus:
|
|
51
|
+
const { id: t, value: o, onChange: r, disabled: a, required: u, onBlur: m, onFocus: I, validation: i, addOther: p, addOtherPlaceholder: c, FieldLayout: h, hasError: _ } = L(), { labelId: O } = B(), { t: f } = me(), { currency: A, regionalFormat: g } = j(), d = o == null ? void 0 : o[0], N = M(() => {
|
|
52
52
|
var C, x;
|
|
53
53
|
return ((x = (C = i == null ? void 0 : i.predefined) == null ? void 0 : C.paymentOptions) == null ? void 0 : x.products) || [];
|
|
54
54
|
}, [
|
|
@@ -58,8 +58,8 @@ const s = ({ children: e }) => {
|
|
|
58
58
|
]), l = M(() => p ? Pe(N) : void 0, [
|
|
59
59
|
N,
|
|
60
60
|
p
|
|
61
|
-
]),
|
|
62
|
-
sourceValue:
|
|
61
|
+
]), K = xe(d, l), [q, P] = Fe({
|
|
62
|
+
sourceValue: K,
|
|
63
63
|
format: (C) => ge(String(C ?? ""), g),
|
|
64
64
|
regionalFormat: g
|
|
65
65
|
}), w = D((C) => {
|
|
@@ -69,16 +69,16 @@ const s = ({ children: e }) => {
|
|
|
69
69
|
T,
|
|
70
70
|
d,
|
|
71
71
|
P
|
|
72
|
-
]),
|
|
72
|
+
]), k = D((C) => {
|
|
73
73
|
l && r(typeof C == "number" ? [
|
|
74
|
-
|
|
74
|
+
J(l, String(C))
|
|
75
75
|
] : []);
|
|
76
76
|
}, [
|
|
77
77
|
r,
|
|
78
78
|
l
|
|
79
|
-
]), $ = M(() => ue(
|
|
80
|
-
|
|
81
|
-
]),
|
|
79
|
+
]), $ = M(() => ue(k, 500), [
|
|
80
|
+
k
|
|
81
|
+
]), X = D((C) => {
|
|
82
82
|
(d == null ? void 0 : d.productId) !== (l == null ? void 0 : l.id) && r(void 0);
|
|
83
83
|
const { validInput: x, validNumber: oe } = ye(C.target.value, Ae, q, g);
|
|
84
84
|
P(x), $(oe);
|
|
@@ -90,7 +90,7 @@ const s = ({ children: e }) => {
|
|
|
90
90
|
q,
|
|
91
91
|
$,
|
|
92
92
|
P
|
|
93
|
-
]), H = (d == null ? void 0 : d.productId) || null,
|
|
93
|
+
]), H = (d == null ? void 0 : d.productId) || null, Z = D(() => {
|
|
94
94
|
l != null && l.id && H !== l.id && w(l.id);
|
|
95
95
|
}, [
|
|
96
96
|
l == null ? void 0 : l.id,
|
|
@@ -105,28 +105,28 @@ const s = ({ children: e }) => {
|
|
|
105
105
|
value: H,
|
|
106
106
|
onChange: w,
|
|
107
107
|
isDisabled: a,
|
|
108
|
-
isInvalid:
|
|
108
|
+
isInvalid: _,
|
|
109
109
|
isRequired: u,
|
|
110
110
|
onBlur: m,
|
|
111
|
-
onFocus:
|
|
111
|
+
onFocus: I
|
|
112
112
|
}, V ? y(V, {
|
|
113
113
|
productsById: T,
|
|
114
114
|
addOther: p,
|
|
115
115
|
customAmount: q,
|
|
116
|
-
onCustomAmountInputChange:
|
|
116
|
+
onCustomAmountInputChange: X,
|
|
117
117
|
currency: A,
|
|
118
|
-
t:
|
|
119
|
-
placeholder: c === void 0 ?
|
|
118
|
+
t: f,
|
|
119
|
+
placeholder: c === void 0 ? f("donation.other-option.placeholder") : c,
|
|
120
120
|
customAmountProductId: l == null ? void 0 : l.id,
|
|
121
|
-
onFocusCustomInput:
|
|
121
|
+
onFocusCustomInput: Z
|
|
122
122
|
}) : null),
|
|
123
123
|
renderDescription: () => /* @__PURE__ */ n.createElement(n.Fragment, null, ne, te)
|
|
124
124
|
});
|
|
125
125
|
}, Be = ({ children: e, className: t, ...o }) => {
|
|
126
|
-
const { productsById: r, addOther: a, customAmount: u, onCustomAmountInputChange: m, currency:
|
|
126
|
+
const { productsById: r, addOther: a, customAmount: u, onCustomAmountInputChange: m, currency: I, t: i, placeholder: p, customAmountProductId: c, onFocusCustomInput: h } = o, { hasError: _ } = L(), O = E(e, s.Options), f = E(e, s.OtherInput);
|
|
127
127
|
return /* @__PURE__ */ n.createElement("div", {
|
|
128
128
|
className: t,
|
|
129
|
-
"data-invalid":
|
|
129
|
+
"data-invalid": _
|
|
130
130
|
}, O ? y(O, {
|
|
131
131
|
productsById: r
|
|
132
132
|
}) : null, a && c && /* @__PURE__ */ n.createElement(Y, {
|
|
@@ -144,40 +144,40 @@ const s = ({ children: e }) => {
|
|
|
144
144
|
}
|
|
145
145
|
}, /* @__PURE__ */ n.createElement(Q, {
|
|
146
146
|
"aria-label": i("donation.other-option.label", "Custom amount")
|
|
147
|
-
}, i("donation.other-option.label", "Custom amount"))),
|
|
147
|
+
}, i("donation.other-option.label", "Custom amount"))), f && a ? y(f, {
|
|
148
148
|
customAmount: u,
|
|
149
149
|
onCustomAmountInputChange: m,
|
|
150
|
-
currency:
|
|
150
|
+
currency: I,
|
|
151
151
|
t: i,
|
|
152
152
|
placeholder: p,
|
|
153
153
|
customAmountProductId: c,
|
|
154
154
|
onFocusCustomInput: h
|
|
155
155
|
}) : null);
|
|
156
|
-
},
|
|
157
|
-
const { productsById: r } = o, { options: a, numberOfColumns: u } = L(), m = E(e,
|
|
156
|
+
}, U = ({ children: e, className: t, ...o }) => {
|
|
157
|
+
const { productsById: r } = o, { options: a, numberOfColumns: u } = L(), m = E(e, U.Option);
|
|
158
158
|
return /* @__PURE__ */ n.createElement("div", {
|
|
159
159
|
className: t,
|
|
160
160
|
"data-columns": u
|
|
161
|
-
}, a.map((
|
|
161
|
+
}, a.map((I) => {
|
|
162
162
|
var c;
|
|
163
|
-
const i = r[
|
|
163
|
+
const i = r[I.value], p = (c = i == null ? void 0 : i.fixedPriceOptions) == null ? void 0 : c.price;
|
|
164
164
|
return y(m, {
|
|
165
|
-
key:
|
|
166
|
-
value:
|
|
165
|
+
key: I.value,
|
|
166
|
+
value: I.value,
|
|
167
167
|
price: p || "0"
|
|
168
168
|
});
|
|
169
169
|
}));
|
|
170
|
-
},
|
|
171
|
-
const { value: r, price: a } = o, { id: u } = L(), { currency: m, regionalFormat:
|
|
170
|
+
}, S = ({ children: e, className: t, ...o }) => {
|
|
171
|
+
const { value: r, price: a } = o, { id: u } = L(), { currency: m, regionalFormat: I } = j(), i = E(e, S.Value), p = E(e, S.Currency), { isCurrencyPrefixed: c } = z({
|
|
172
172
|
amount: a,
|
|
173
173
|
currency: m == null ? void 0 : m.code,
|
|
174
|
-
locale:
|
|
174
|
+
locale: I
|
|
175
175
|
}), h = re(null);
|
|
176
176
|
pe(() => {
|
|
177
|
-
var O,
|
|
178
|
-
(
|
|
177
|
+
var O, f;
|
|
178
|
+
(f = (O = h.current) == null ? void 0 : O.querySelector("input")) == null || f.focus();
|
|
179
179
|
}, u);
|
|
180
|
-
const
|
|
180
|
+
const _ = i ? y(i, {
|
|
181
181
|
price: a
|
|
182
182
|
}) : null;
|
|
183
183
|
return /* @__PURE__ */ n.createElement(Y, {
|
|
@@ -185,9 +185,9 @@ const s = ({ children: e }) => {
|
|
|
185
185
|
}, /* @__PURE__ */ n.createElement(Q, {
|
|
186
186
|
className: t,
|
|
187
187
|
ref: h
|
|
188
|
-
}, /* @__PURE__ */ n.createElement(n.Fragment, null, c && p,
|
|
188
|
+
}, /* @__PURE__ */ n.createElement(n.Fragment, null, c && p, _, !c && p)));
|
|
189
189
|
}, je = ({ className: e, ...t }) => {
|
|
190
|
-
const { price: o } = t, { currency: r, regionalFormat: a } = j(), { value: u } =
|
|
190
|
+
const { price: o } = t, { currency: r, regionalFormat: a } = j(), { value: u } = z({
|
|
191
191
|
amount: o,
|
|
192
192
|
currency: r == null ? void 0 : r.code,
|
|
193
193
|
locale: a
|
|
@@ -201,10 +201,10 @@ const s = ({ children: e }) => {
|
|
|
201
201
|
className: e
|
|
202
202
|
}, (t == null ? void 0 : t.sign) || (t == null ? void 0 : t.code) || "");
|
|
203
203
|
};
|
|
204
|
-
|
|
205
|
-
|
|
204
|
+
S.Value = je;
|
|
205
|
+
S.Currency = qe;
|
|
206
206
|
const R = ({ children: e, className: t, ...o }) => {
|
|
207
|
-
const { customAmount: r, onCustomAmountInputChange: a, currency: u, t: m, placeholder:
|
|
207
|
+
const { customAmount: r, onCustomAmountInputChange: a, currency: u, t: m, placeholder: I, customAmountProductId: i, onFocusCustomInput: p } = o, { disabled: c, hasError: h } = L(), { labelId: _, prefixId: O } = B(), f = E(e, R.Currency), A = E(e, R.Value), g = D((N) => {
|
|
208
208
|
a({
|
|
209
209
|
target: {
|
|
210
210
|
value: N
|
|
@@ -218,7 +218,7 @@ const R = ({ children: e, className: t, ...o }) => {
|
|
|
218
218
|
p
|
|
219
219
|
]);
|
|
220
220
|
return /* @__PURE__ */ n.createElement(le, {
|
|
221
|
-
"aria-labelledby": `${
|
|
221
|
+
"aria-labelledby": `${_} ${O}`,
|
|
222
222
|
value: r,
|
|
223
223
|
onChange: g,
|
|
224
224
|
onFocus: d,
|
|
@@ -228,11 +228,11 @@ const R = ({ children: e, className: t, ...o }) => {
|
|
|
228
228
|
className: t,
|
|
229
229
|
isDisabled: c,
|
|
230
230
|
isInvalid: h
|
|
231
|
-
}, r && u &&
|
|
231
|
+
}, r && u && f ? y(f, {
|
|
232
232
|
currency: u,
|
|
233
233
|
t: m
|
|
234
234
|
}) : null, A ? y(A, {
|
|
235
|
-
placeholder:
|
|
235
|
+
placeholder: I,
|
|
236
236
|
customAmountProductId: i
|
|
237
237
|
}) : null));
|
|
238
238
|
}, we = ({ className: e, ...t }) => {
|
|
@@ -257,61 +257,61 @@ const R = ({ children: e, className: t, ...o }) => {
|
|
|
257
257
|
};
|
|
258
258
|
R.Currency = we;
|
|
259
259
|
R.Value = He;
|
|
260
|
-
|
|
261
|
-
s.Label =
|
|
260
|
+
U.Option = S;
|
|
261
|
+
s.Label = _e;
|
|
262
262
|
s.Control = Be;
|
|
263
|
-
s.Options =
|
|
263
|
+
s.Options = U;
|
|
264
264
|
s.OtherInput = R;
|
|
265
265
|
s.Description = Oe;
|
|
266
|
-
s.Error =
|
|
267
|
-
const
|
|
268
|
-
control:
|
|
269
|
-
options:
|
|
266
|
+
s.Error = be;
|
|
267
|
+
const Ue = "_control_1fjsf_1", ke = "_options_1fjsf_7", $e = "_option_1fjsf_7", Ve = "_optionHover_1fjsf_44", Ge = "_optionSelected_1fjsf_44", Ye = "_optionCurrency_1fjsf_94", Qe = "_otherInput_1fjsf_98", We = "_otherInputCurrency_1fjsf_117", b = {
|
|
268
|
+
control: Ue,
|
|
269
|
+
options: ke,
|
|
270
270
|
option: $e,
|
|
271
271
|
optionHover: Ve,
|
|
272
272
|
optionSelected: Ge,
|
|
273
273
|
optionCurrency: Ye,
|
|
274
274
|
otherInput: Qe,
|
|
275
275
|
otherInputCurrency: We
|
|
276
|
-
},
|
|
276
|
+
}, ze = ({ content: e, locale: t }) => /* @__PURE__ */ n.createElement(se, {
|
|
277
277
|
content: e,
|
|
278
278
|
locale: t
|
|
279
|
-
}),
|
|
280
|
-
base:
|
|
281
|
-
selected:
|
|
282
|
-
hover:
|
|
283
|
-
},
|
|
284
|
-
const e =
|
|
279
|
+
}), Je = {
|
|
280
|
+
base: b.option,
|
|
281
|
+
selected: b.optionSelected,
|
|
282
|
+
hover: b.optionHover
|
|
283
|
+
}, Ke = () => {
|
|
284
|
+
const e = Se(b.otherInput), t = ve({
|
|
285
285
|
globalClasses: he,
|
|
286
|
-
moduleClasses:
|
|
286
|
+
moduleClasses: Je
|
|
287
287
|
});
|
|
288
288
|
return /* @__PURE__ */ n.createElement(s, null, /* @__PURE__ */ n.createElement(s.Label, {
|
|
289
|
-
className: F(de,
|
|
289
|
+
className: F(de, v.label)
|
|
290
290
|
}, /* @__PURE__ */ n.createElement(s.Label.Required, {
|
|
291
|
-
className: F(
|
|
291
|
+
className: F(Ie, v.requiredMark)
|
|
292
292
|
})), /* @__PURE__ */ n.createElement(s.Control, {
|
|
293
|
-
className: F(
|
|
293
|
+
className: F(b.control, G.group)
|
|
294
294
|
}, /* @__PURE__ */ n.createElement(s.Options, {
|
|
295
|
-
className: F(
|
|
295
|
+
className: F(fe, G.options, b.options)
|
|
296
296
|
}, /* @__PURE__ */ n.createElement(s.Options.Option, {
|
|
297
297
|
className: ({ isSelected: o, isHovered: r }) => t({
|
|
298
298
|
isSelected: o,
|
|
299
299
|
isHovered: r
|
|
300
300
|
})
|
|
301
301
|
}, /* @__PURE__ */ n.createElement(s.Options.Option.Value, null), /* @__PURE__ */ n.createElement(s.Options.Option.Currency, {
|
|
302
|
-
className:
|
|
302
|
+
className: b.optionCurrency
|
|
303
303
|
}))), /* @__PURE__ */ n.createElement(s.OtherInput, {
|
|
304
304
|
className: e
|
|
305
305
|
}, /* @__PURE__ */ n.createElement(s.OtherInput.Currency, {
|
|
306
|
-
className:
|
|
306
|
+
className: b.otherInputCurrency
|
|
307
307
|
}), /* @__PURE__ */ n.createElement(s.OtherInput.Value, {
|
|
308
|
-
className:
|
|
308
|
+
className: v.innerInput
|
|
309
309
|
}))), /* @__PURE__ */ n.createElement(s.Error, {
|
|
310
|
-
className: F(Ce,
|
|
310
|
+
className: F(Ce, v.error)
|
|
311
311
|
}, /* @__PURE__ */ n.createElement(De, null), /* @__PURE__ */ n.createElement(s.Error.Text, null)), /* @__PURE__ */ n.createElement(s.Description, {
|
|
312
|
-
className: F(Ee,
|
|
313
|
-
},
|
|
314
|
-
}, Ct = () => /* @__PURE__ */ n.createElement(
|
|
312
|
+
className: F(Ee, v.description)
|
|
313
|
+
}, ze));
|
|
314
|
+
}, Ct = () => /* @__PURE__ */ n.createElement(Ke, null);
|
|
315
315
|
export {
|
|
316
316
|
Ct as DonationRAC
|
|
317
317
|
};
|
package/dist/component/{dropdown-field-headless-DhzRAMcM.js → dropdown-field-headless-B-82vlHV.js}
RENAMED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import e, { useState as
|
|
1
|
+
import e, { useState as E, useCallback as g, useRef as A } from "react";
|
|
2
2
|
import { UNSAFE_PortalProvider as M } from "react-aria";
|
|
3
3
|
import { Select as U, SelectValue as _, ListBox as j, ListBoxItem as z } from "react-aria-components";
|
|
4
|
-
import {
|
|
4
|
+
import { b9 as f, b6 as O, bb as G } from "./form-DC8xFBa_.js";
|
|
5
5
|
import { f as d, a as F } from "./find-child-C60k4CxG.js";
|
|
6
|
-
import { D as H, E as J } from "./field-error-headless-
|
|
7
|
-
import { L as K } from "./field-label-headless-
|
|
6
|
+
import { D as H, E as J } from "./field-error-headless-BLgaEh1d.js";
|
|
7
|
+
import { L as K } from "./field-label-headless-C8NbnF9M.js";
|
|
8
8
|
import { S as Q, N as W } from "./non-modal-popover-DtIMXHbe.js";
|
|
9
|
-
import { u as X } from "./use-is-forced-open-dropdown-
|
|
9
|
+
import { u as X } from "./use-is-forced-open-dropdown-BMuhxge2.js";
|
|
10
10
|
const r = ({ children: n }) => {
|
|
11
|
-
const { id: l, value: a, defaultValue: s, options: u = [], readOnly: o, onChange: t, placeholder: m, disabled: i, required: v, onBlur: y, onFocus: D, FieldLayout: C, hasError: I } = f(), [L, h] =
|
|
11
|
+
const { id: l, value: a, defaultValue: s, options: u = [], readOnly: o, onChange: t, placeholder: m, disabled: i, required: v, onBlur: y, onFocus: D, FieldLayout: C, hasError: I } = f(), [L, h] = E(!1), p = X(l), [B, N] = E(null), P = a && u.some((c) => (c.value ?? c.label) === a) ? a : s || null, { labelId: S } = O(), T = g((c) => {
|
|
12
12
|
o || t(typeof c == "string" ? c : null);
|
|
13
13
|
}, [
|
|
14
14
|
t,
|
|
@@ -57,8 +57,8 @@ const r = ({ children: n }) => {
|
|
|
57
57
|
"data-invalid": o || void 0,
|
|
58
58
|
"data-loading": t || void 0
|
|
59
59
|
}, /* @__PURE__ */ e.createElement(_, null), n);
|
|
60
|
-
},
|
|
61
|
-
const { isForcedOpen: s } = a, { options: u = [] } = f(), o = d(n,
|
|
60
|
+
}, b = ({ children: n, className: l, ...a }) => {
|
|
61
|
+
const { isForcedOpen: s } = a, { options: u = [] } = f(), o = d(n, b.Option);
|
|
62
62
|
return /* @__PURE__ */ e.createElement(W, {
|
|
63
63
|
className: l,
|
|
64
64
|
containerPadding: 0,
|
|
@@ -78,10 +78,10 @@ const r = ({ children: n }) => {
|
|
|
78
78
|
textValue: s
|
|
79
79
|
}, s);
|
|
80
80
|
};
|
|
81
|
-
|
|
81
|
+
b.Option = Z;
|
|
82
82
|
r.Label = K;
|
|
83
83
|
r.Trigger = Y;
|
|
84
|
-
r.Options =
|
|
84
|
+
r.Options = b;
|
|
85
85
|
r.Description = H;
|
|
86
86
|
r.Error = J;
|
|
87
87
|
export {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { RicosViewer as m } from "@wix/ricos/viewer";
|
|
2
2
|
import t from "classnames";
|
|
3
3
|
import e from "react";
|
|
4
|
-
import { D as r } from "./dropdown-field-headless-
|
|
4
|
+
import { D as r } from "./dropdown-field-headless-B-82vlHV.js";
|
|
5
5
|
import { C as n } from "./chevron-down-icon-CcpVm6B-.js";
|
|
6
6
|
import { E as l } from "./error-icon-hZxQ6DEy.js";
|
|
7
7
|
import { H as c } from "./custom-focus-class-_483Pkwp.js";
|
|
8
8
|
import { s as o } from "./field-rac.module-B4l_0KRU.js";
|
|
9
|
-
import {
|
|
10
|
-
import { u as O } from "./use-dropdown-option-class-name-
|
|
9
|
+
import { I as i, U as p, t as E, K as _, v as R, p as D } from "./form-DC8xFBa_.js";
|
|
10
|
+
import { u as O } from "./use-dropdown-option-class-name-Cwfh_4oi.js";
|
|
11
11
|
const S = ({ content: a, locale: s }) => /* @__PURE__ */ e.createElement(m, {
|
|
12
12
|
content: a,
|
|
13
13
|
locale: s
|
|
@@ -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 { b9 as a, bj as c, ac as i } from "./form-DC8xFBa_.js";
|
|
3
|
+
import { C as l } from "./checkbox-field-rac-CcOW4yol.js";
|
|
4
4
|
const p = (e) => ({
|
|
5
5
|
nodes: [
|
|
6
6
|
{
|
package/dist/component/{email-input-field-rac-DpkfunVK.js → email-input-field-rac-BFrfF6TW.js}
RENAMED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { RicosViewer as ie } from "@wix/ricos/viewer";
|
|
2
|
-
import
|
|
3
|
-
import u, { createContext as z, useContext as Z, createElement as R, isValidElement as
|
|
2
|
+
import D from "classnames";
|
|
3
|
+
import u, { createContext as z, useContext as Z, createElement as R, isValidElement as U, 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 { b6 as fe, bj as ge, b4 as ve, d as ye, b9 as Ee, bd as de, b7 as be, aa as Se, I as Oe, U as he, v as Ie, p as Ne, X as Ae } from "./form-DC8xFBa_.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
|
-
import
|
|
11
|
-
import
|
|
10
|
+
import ke from "html-parse-stringify";
|
|
11
|
+
import Te from "@babel/runtime/helpers/classCallCheck";
|
|
12
12
|
import xe from "@babel/runtime/helpers/createClass";
|
|
13
|
-
import { T as
|
|
14
|
-
import { E as
|
|
13
|
+
import { T as B } from "./text-input-headless-SHtvSa6y.js";
|
|
14
|
+
import { E as je } from "./error-icon-hZxQ6DEy.js";
|
|
15
15
|
import { s as H } from "./field-rac.module-B4l_0KRU.js";
|
|
16
|
-
import { u as
|
|
16
|
+
import { u as De } from "./use-text-input-class-name-ixt7gTGg.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,7 +54,7 @@ function Re() {
|
|
|
54
54
|
}
|
|
55
55
|
(function() {
|
|
56
56
|
function e() {
|
|
57
|
-
|
|
57
|
+
Te(this, e), this.usedNamespaces = {};
|
|
58
58
|
}
|
|
59
59
|
return xe(e, [{
|
|
60
60
|
key: "addUsedNamespaces",
|
|
@@ -82,12 +82,12 @@ function K() {
|
|
|
82
82
|
}
|
|
83
83
|
}
|
|
84
84
|
var J = {};
|
|
85
|
-
function
|
|
85
|
+
function Ue() {
|
|
86
86
|
for (var e = arguments.length, t = new Array(e), a = 0; a < e; a++)
|
|
87
87
|
t[a] = arguments[a];
|
|
88
88
|
typeof t[0] == "string" && J[t[0]] || (typeof t[0] == "string" && (J[t[0]] = /* @__PURE__ */ new Date()), K.apply(void 0, t));
|
|
89
89
|
}
|
|
90
|
-
var
|
|
90
|
+
var Be = ["format"], Ve = ["children", "count", "parent", "i18nKey", "context", "tOptions", "values", "defaults", "components", "ns", "i18n", "t", "shouldUnescape"];
|
|
91
91
|
function Q(e, t) {
|
|
92
92
|
var a = Object.keys(e);
|
|
93
93
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -119,7 +119,7 @@ function G(e) {
|
|
|
119
119
|
}
|
|
120
120
|
function qe(e) {
|
|
121
121
|
return Object.prototype.toString.call(e) !== "[object Array]" ? !1 : e.every(function(t) {
|
|
122
|
-
return
|
|
122
|
+
return U(t);
|
|
123
123
|
});
|
|
124
124
|
}
|
|
125
125
|
function M(e) {
|
|
@@ -135,7 +135,7 @@ function te(e, t) {
|
|
|
135
135
|
return o.forEach(function(r, g) {
|
|
136
136
|
if (typeof r == "string")
|
|
137
137
|
a += "".concat(r);
|
|
138
|
-
else if (
|
|
138
|
+
else if (U(r)) {
|
|
139
139
|
var v = Object.keys(r.props).length, d = c.indexOf(r.type) > -1, b = r.props.children;
|
|
140
140
|
if (!b && d && v === 0)
|
|
141
141
|
a += "<".concat(r.type, "/>");
|
|
@@ -146,13 +146,13 @@ 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 T = te(b, t);
|
|
150
|
+
a += "<".concat(g, ">").concat(T, "</").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.");
|
|
154
154
|
else if (L(r) === "object") {
|
|
155
|
-
var O = r.format, F = ee(r,
|
|
155
|
+
var O = r.format, F = ee(r, Be), A = Object.keys(F);
|
|
156
156
|
if (A.length === 1) {
|
|
157
157
|
var S = O ? "".concat(A[0], ", ").concat(O) : A[0];
|
|
158
158
|
a += "{{".concat(S, "}}");
|
|
@@ -170,11 +170,11 @@ 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" && (Y(s) ? b(G(s)) : L(s) === "object" && !
|
|
173
|
+
typeof s != "string" && (Y(s) ? b(G(s)) : L(s) === "object" && !U(s) && Object.assign(d, s));
|
|
174
174
|
});
|
|
175
175
|
}
|
|
176
176
|
b(e);
|
|
177
|
-
var
|
|
177
|
+
var T = ke.parse("<0>".concat(t, "</0>")), O = p(p({}, d), c);
|
|
178
178
|
function F(y, h, s) {
|
|
179
179
|
var i = G(y), I = S(i, h.children, s);
|
|
180
180
|
return qe(i) && I.length === 0 ? i : I;
|
|
@@ -187,13 +187,13 @@ function Ge(e, t, a, o, c, r) {
|
|
|
187
187
|
function S(y, h, s) {
|
|
188
188
|
var i = M(y), I = M(h);
|
|
189
189
|
return I.reduce(function(l, n, E) {
|
|
190
|
-
var
|
|
190
|
+
var k = n.children && n.children[0] && n.children[0].content && a.services.interpolator.interpolate(n.children[0].content, O, a.language);
|
|
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
194
|
var m = Object.keys(n.attrs).length !== 0 ? Ye({
|
|
195
195
|
props: n.attrs
|
|
196
|
-
}, N) : N, x =
|
|
196
|
+
}, N) : N, x = U(m), V = x && Y(n, !0) && !n.voidElement, P = v && L(m) === "object" && m.dummy && !x, _ = 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);
|
|
@@ -227,11 +227,11 @@ function Ge(e, t, a, o, c, r) {
|
|
|
227
227
|
l.push("<".concat(n.name, ">").concat(ce, "</").concat(n.name, ">"));
|
|
228
228
|
}
|
|
229
229
|
else if (L(m) === "object" && !x) {
|
|
230
|
-
var $ = n.children[0] ?
|
|
230
|
+
var $ = n.children[0] ? k : null;
|
|
231
231
|
$ && l.push($);
|
|
232
|
-
} else n.children.length === 1 &&
|
|
232
|
+
} else n.children.length === 1 && k ? l.push(w(m, p(p({}, m.props), {}, {
|
|
233
233
|
key: E
|
|
234
|
-
}),
|
|
234
|
+
}), k)) : l.push(w(m, p(p({}, m.props), {}, {
|
|
235
235
|
key: E
|
|
236
236
|
})));
|
|
237
237
|
} else if (n.type === "text") {
|
|
@@ -243,23 +243,23 @@ function Ge(e, t, a, o, c, r) {
|
|
|
243
243
|
return l;
|
|
244
244
|
}, []);
|
|
245
245
|
}
|
|
246
|
-
var
|
|
246
|
+
var j = S([{
|
|
247
247
|
dummy: !0,
|
|
248
248
|
children: e || []
|
|
249
|
-
}],
|
|
250
|
-
return G(
|
|
249
|
+
}], T, M(e || []));
|
|
250
|
+
return G(j[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, T = e.components, O = e.ns, F = e.i18n, A = e.t, S = e.shouldUnescape, j = ee(e, Ve), y = Z(He) || {}, h = y.i18n, s = y.defaultNS, i = F || h || Ke();
|
|
254
254
|
if (!i)
|
|
255
|
-
return
|
|
255
|
+
return Ue("You will need to pass in an i18next instance by using i18nextReactModule"), t;
|
|
256
256
|
var I = A || i.t.bind(i) || function(q) {
|
|
257
257
|
return q;
|
|
258
258
|
};
|
|
259
259
|
r && (v.context = r);
|
|
260
260
|
var l = p(p({}, Re()), i.options && i.options.react), n = O || I.ns || s || i.options && i.options.defaultNS;
|
|
261
261
|
n = typeof n == "string" ? [n] : n || ["translation"];
|
|
262
|
-
var E = b || te(t, l) || l.transEmptyNodeValue || c,
|
|
262
|
+
var E = b || te(t, l) || l.transEmptyNodeValue || c, k = l.hashTransKey, N = c || (k ? k(E) : E), m = d ? v.interpolation : {
|
|
263
263
|
interpolation: p(p({}, v.interpolation), {}, {
|
|
264
264
|
prefix: "#$?",
|
|
265
265
|
suffix: "?$#"
|
|
@@ -269,8 +269,8 @@ function $e(e) {
|
|
|
269
269
|
}, d), m), {}, {
|
|
270
270
|
defaultValue: E,
|
|
271
271
|
ns: n
|
|
272
|
-
}), V = N ? I(N, x) : E, P = Ge(
|
|
273
|
-
return _ ? R(_,
|
|
272
|
+
}), V = N ? I(N, x) : E, P = Ge(T || t, V, i, l, x, S), _ = o !== void 0 ? o : l.defaultTransParent;
|
|
273
|
+
return _ ? R(_, j, 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,14 +449,14 @@ 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: T, description: O, FieldLayout: F } = Ee(), { isMistyped: A, suggestedEmail: S, validate: j } = 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, T, O, s), I = () => {
|
|
456
456
|
o(s), y(t);
|
|
457
457
|
}, l = () => {
|
|
458
|
-
|
|
459
|
-
}, n = C(e, f.Label), E = C(e, f.Input),
|
|
458
|
+
j(), d == null || d();
|
|
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
|
|
462
462
|
}, /* @__PURE__ */ u.createElement(Qe, {
|
|
@@ -476,13 +476,13 @@ const Qe = ({ activeSuggestion: e, applySuggestion: t, children: a }) => /* @__P
|
|
|
476
476
|
onBlur: l,
|
|
477
477
|
onFocus: b
|
|
478
478
|
}, E),
|
|
479
|
-
renderDescription: () => /* @__PURE__ */ u.createElement(u.Fragment, null, N, m,
|
|
479
|
+
renderDescription: () => /* @__PURE__ */ u.createElement(u.Fragment, null, N, m, k)
|
|
480
480
|
})));
|
|
481
481
|
};
|
|
482
|
-
f.Label =
|
|
483
|
-
f.Input =
|
|
484
|
-
f.Description =
|
|
485
|
-
f.Error =
|
|
482
|
+
f.Label = B.Label;
|
|
483
|
+
f.Input = B.Input;
|
|
484
|
+
f.Description = B.Description;
|
|
485
|
+
f.Error = B.Error;
|
|
486
486
|
f.Suggestion = ze;
|
|
487
487
|
const nt = "_suggestion_lysve_1", ot = {
|
|
488
488
|
suggestion: nt
|
|
@@ -490,19 +490,19 @@ const nt = "_suggestion_lysve_1", ot = {
|
|
|
490
490
|
content: e,
|
|
491
491
|
locale: t
|
|
492
492
|
}), ht = () => {
|
|
493
|
-
const e =
|
|
493
|
+
const e = De();
|
|
494
494
|
return /* @__PURE__ */ u.createElement(f, null, /* @__PURE__ */ u.createElement(f.Label, {
|
|
495
|
-
className:
|
|
495
|
+
className: D(Oe, H.label)
|
|
496
496
|
}, /* @__PURE__ */ u.createElement(f.Label.Required, {
|
|
497
|
-
className:
|
|
497
|
+
className: D(he, H.requiredMark)
|
|
498
498
|
})), /* @__PURE__ */ u.createElement(f.Input, {
|
|
499
499
|
className: e
|
|
500
500
|
}), /* @__PURE__ */ u.createElement(f.Error, {
|
|
501
|
-
className:
|
|
502
|
-
}, /* @__PURE__ */ u.createElement(
|
|
503
|
-
className:
|
|
501
|
+
className: D(Ie, H.error)
|
|
502
|
+
}, /* @__PURE__ */ u.createElement(je, null), /* @__PURE__ */ u.createElement(f.Error.Text, null)), /* @__PURE__ */ u.createElement(f.Description, {
|
|
503
|
+
className: D(Ne, H.description)
|
|
504
504
|
}, rt), /* @__PURE__ */ u.createElement(f.Suggestion, {
|
|
505
|
-
className:
|
|
505
|
+
className: D(Ae, ot.suggestion)
|
|
506
506
|
}));
|
|
507
507
|
};
|
|
508
508
|
export {
|