@wix/form-elements 1.135.0 → 1.136.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-DsD7xLmb.js +1010 -0
- package/dist/component/{bookings-address-rac-BK-sU26E.js → bookings-address-rac-ByaFu51U.js} +1 -1
- package/dist/component/{bookings-email-rac-DZ3HVkyn.js → bookings-email-rac-CxuvkcYw.js} +1 -1
- package/dist/component/{bookings-first-name-rac-Ci4PHqOr.js → bookings-first-name-rac-JXLJa_7E.js} +1 -1
- package/dist/component/{bookings-header-rac-C_MYNrDA.js → bookings-header-rac-CIQTbf9d.js} +1 -1
- package/dist/component/{bookings-last-name-rac-CdNlwyjm.js → bookings-last-name-rac-_2Xt4BPe.js} +1 -1
- package/dist/component/{bookings-login-bar-rac-CP2JcaVr.js → bookings-login-bar-rac-BUjys5i9.js} +6 -6
- package/dist/component/{bookings-phone-rac-BV8sqxil.js → bookings-phone-rac-DlsdGmOt.js} +1 -1
- package/dist/component/{bookings-rich-text-rac-DQtcYRsh.js → bookings-rich-text-rac-BvRdhL7M.js} +1 -1
- package/dist/component/{checkbox-field-rac-DPNqHTNc.js → checkbox-field-rac-Be6wicaA.js} +121 -121
- package/dist/component/{checkbox-group-field-headless-DhhynlgN.js → checkbox-group-field-headless-BJ0pGvXi.js} +19 -19
- package/dist/component/{checkbox-group-field-rac-B3zOW7qr.js → checkbox-group-field-rac-D7xqqVf6.js} +4 -4
- package/dist/component/{checkbox-group-rac-Qy03hO31.js → checkbox-group-rac-DtCS-gEH.js} +1 -1
- package/dist/component/{checkbox-rac-DYr3RaHj.js → checkbox-rac-ub7MFwY-.js} +1 -1
- package/dist/component/{contacts-address-rac-Bi-etpfX.js → contacts-address-rac-Bwsdpg11.js} +1 -1
- package/dist/component/{contacts-birthdate-rac-D2LLjX9P.js → contacts-birthdate-rac-D54hibhb.js} +1 -1
- package/dist/component/{contacts-company-rac-C9ImoG_i.js → contacts-company-rac-CKqzgKio.js} +1 -1
- package/dist/component/{contacts-email-rac-DeGblC9V.js → contacts-email-rac-Dxm31wuY.js} +1 -1
- package/dist/component/{contacts-first-name-rac-Xk3m57jK.js → contacts-first-name-rac-CXHsx6Vy.js} +1 -1
- package/dist/component/{contacts-last-name-rac-BKE-1IYB.js → contacts-last-name-rac-B0S268f3.js} +1 -1
- package/dist/component/{contacts-phone-rac-CHmtTutD.js → contacts-phone-rac-DEbgIiEj.js} +1 -1
- package/dist/component/{contacts-position-rac-BS3TySLG.js → contacts-position-rac-D31uoOlR.js} +1 -1
- package/dist/component/{contacts-subscribe-rac--fpczJiB.js → contacts-subscribe-rac-DJ8NtoxZ.js} +1 -1
- package/dist/component/{contacts-tax-id-rac-CHkn8vkL.js → contacts-tax-id-rac-DTQffHAo.js} +1 -1
- package/dist/component/{date-availability-70Vb-dlb.js → date-availability-DmhJ9apH.js} +1 -1
- package/dist/component/{date-input-field-rac-BlkYEYM_.js → date-input-field-rac-BwM_q4FW.js} +52 -52
- package/dist/component/{date-input-rac-JdNFk07Q.js → date-input-rac-C93pgocp.js} +1 -1
- package/dist/component/{date-picker-field-rac-DHu11mY1.js → date-picker-field-rac-CtZL368W.js} +5 -5
- package/dist/component/{date-picker-rac-CZtWhFzM.js → date-picker-rac-4DNe6hOX.js} +1 -1
- package/dist/component/{date-time-input-field-rac-cHAALqS5.js → date-time-input-field-rac-MlCVy3Oz.js} +58 -58
- package/dist/component/{date-time-input-rac-Dz7GfoJO.js → date-time-input-rac-ByyBvFgo.js} +1 -1
- package/dist/component/{dext-checkbox-group-rac-ZNKzyWda.js → dext-checkbox-group-rac-BP76Xwiq.js} +4 -4
- package/dist/component/{dext-checkbox-rac-DfPFXrKu.js → dext-checkbox-rac-DGaKSh4Z.js} +1 -1
- package/dist/component/{dext-date-picker-rac-BPbl65qK.js → dext-date-picker-rac-UEXbMSlL.js} +1 -1
- package/dist/component/{dext-date-time-input-rac-D5ywbLtW.js → dext-date-time-input-rac-CsJcGK4I.js} +1 -1
- package/dist/component/{dext-dropdown-rac-BuVsPZOU.js → dext-dropdown-rac-BzbRzloh.js} +1 -1
- package/dist/component/{dext-email-rac-DRjt3lqT.js → dext-email-rac-DufFAnTi.js} +1 -1
- package/dist/component/{dext-number-input-rac-Bzrl87fo.js → dext-number-input-rac-D6xXi7B2.js} +1 -1
- package/dist/component/{dext-phone-rac-LibvQb8h.js → dext-phone-rac-svy9CDHW.js} +1 -1
- package/dist/component/{dext-radio-group-rac-BTWnIvwW.js → dext-radio-group-rac-C4p9NuQS.js} +4 -4
- package/dist/component/{dext-rating-input-rac-DTlnOcC8.js → dext-rating-input-rac-wJ7-RFFN.js} +1 -1
- package/dist/component/{dext-tags-rac-YdeijviH.js → dext-tags-rac-D2myHrSZ.js} +4 -4
- package/dist/component/{dext-text-area-rac-CdCzQYey.js → dext-text-area-rac-B4Fw_9mF.js} +1 -1
- package/dist/component/{dext-text-input-rac-B28RTezm.js → dext-text-input-rac-DlZanFMT.js} +1 -1
- package/dist/component/{dext-url-input-rac-B0ZBPbAb.js → dext-url-input-rac-DYjl3wuk.js} +1 -1
- package/dist/component/{donation-rac-_0cwsIAq.js → donation-rac-B6LwJxik.js} +72 -72
- package/dist/component/{dropdown-field-headless-DVZnbZAM.js → dropdown-field-headless-BAt2RoAH.js} +8 -8
- package/dist/component/{dropdown-field-rac-DWCj_Grt.js → dropdown-field-rac-DFjn3ecV.js} +7 -7
- package/dist/component/{dropdown-rac-Bpo-F5sc.js → dropdown-rac-DQ6keNRI.js} +1 -1
- package/dist/component/{ecom-address-rac-vJ0ku_Ld.js → ecom-address-rac-j1T2zp0k.js} +1 -1
- package/dist/component/{ecom-subscription-checkbox-rac-DgVReM6c.js → ecom-subscription-checkbox-rac-viTaRZsk.js} +2 -2
- package/dist/component/{email-input-field-rac-BXJGOBg-.js → email-input-field-rac-5eb-1w7B.js} +46 -46
- package/dist/component/{events-repeater-rac-CrXE_ppd.js → events-repeater-rac-BtcoN_Ra.js} +23 -23
- package/dist/component/{events-rsvp-rac-BGg3P1CQ.js → events-rsvp-rac-DSzFEmty.js} +10 -10
- package/dist/component/{field-error-headless-C3eOy1_l.js → field-error-headless-Bpe041x2.js} +6 -6
- package/dist/component/{field-label-headless-BMmR_IeF.js → field-label-headless-BUuK1Ftv.js} +7 -7
- package/dist/component/{file-upload-rac-Umix6wXx.js → file-upload-rac-CfU8Ygwq.js} +50 -50
- package/dist/component/{fixed-payment-rac-CfIJCBjb.js → fixed-payment-rac-CYp7zNq8.js} +12 -12
- package/dist/component/{form-CYPNOMwk.js → form-C6lnbh2O.js} +831 -823
- package/dist/component/form.css +1 -1
- package/dist/component/form.js +1 -1
- package/dist/component/{header-field-rac-oxHUTKYV.js → header-field-rac-B7YfrhId.js} +4 -4
- package/dist/component/{header-rac-DTGV923r.js → header-rac-BtJKAKAz.js} +1 -1
- package/dist/component/{image-choice-rac-B9JGl_h7.js → image-choice-rac-Bmq7Pyg6.js} +32 -32
- package/dist/component/{index-BOKSOnDK.js → index-BjPSeVyh.js} +107 -107
- package/dist/component/{index-C_ktc-yO.js → index-CQdUOkIN.js} +5 -5
- package/dist/component/{isObjectLike-Di8V7txC.js → isObjectLike-CxNqKfU5.js} +7 -7
- package/dist/component/{multiline-address-field-rac-zgmTbXlg.js → multiline-address-field-rac-BeiUJWKd.js} +115 -115
- package/dist/component/{multiline-address-rac-Cyb3dvBf.js → multiline-address-rac-B2mocF6M.js} +1 -1
- package/dist/component/{number-input-field-rac-DquqqRy_.js → number-input-field-rac-CQX7_S2O.js} +24 -24
- package/dist/component/{number-input-rac-G2DdTbk2.js → number-input-rac-BZri-E8P.js} +1 -1
- package/dist/component/{password-rac-DJCU0F38.js → password-rac-CdwrtDJU.js} +50 -50
- package/dist/component/{payment-input-rac-DlIYza6N.js → payment-input-rac-ClQiqmjm.js} +38 -38
- package/dist/component/{phone-input-field-rac-B10TInMa.js → phone-input-field-rac-BtG_Rado.js} +56 -56
- package/dist/component/{phone-rac-BuyttJpM.js → phone-rac-CdcAMa5E.js} +1 -1
- package/dist/component/{product-list-rac-WrSJwQ_g.js → product-list-rac-Dp_YK6mo.js} +61 -61
- package/dist/component/{quiz-radio-group-rac-CHxZ_pK_.js → quiz-radio-group-rac-CorojxKD.js} +1 -1
- package/dist/component/{radio-button-module-classes-DjJU-8ZB.js → radio-button-module-classes-ZX12Fyj4.js} +3 -3
- package/dist/component/{radio-group-field-rac-BImiqcKa.js → radio-group-field-rac-BifCDpE4.js} +10 -10
- package/dist/component/{radio-group-rac-CDkJeGpN.js → radio-group-rac-CJ2fzqnY.js} +1 -1
- package/dist/component/{rating-input-field-rac-Dsr_S5qN.js → rating-input-field-rac-Dg1T0DZW.js} +28 -28
- package/dist/component/{rating-input-rac-BJUW8U93.js → rating-input-rac-Ba4YK13i.js} +1 -1
- package/dist/component/{rich-content-rac.module-BfQJqA-x.js → rich-content-rac.module-BehwBL3L.js} +3 -3
- package/dist/component/{rich-text-field-rac-DIuZbu_u.js → rich-text-field-rac-DtIWdB-S.js} +7 -7
- package/dist/component/{rich-text-rac-C39fpEiP.js → rich-text-rac-BX4eDDFw.js} +1 -1
- package/dist/component/service-dropdown-rac-68WLBlsa.js +146 -0
- package/dist/component/{services-multi-choice-rac-GVb4qA7g.js → services-multi-choice-rac-8yNdAHfS.js} +7 -7
- package/dist/component/{signature-rac-nC5pr6nB.js → signature-rac-DeVOyl5O.js} +73 -73
- package/dist/component/{submit-button-rac-eUjgrx9Q.js → submit-button-rac-IOr1g-G-.js} +12 -12
- package/dist/component/{tags-field-rac-zv30chSd.js → tags-field-rac-DaiMlAxt.js} +27 -27
- package/dist/component/{tags-rac-PnS2SxVP.js → tags-rac-BgrUkY0A.js} +1 -1
- package/dist/component/{text-area-field-rac-DLeOMD4g.js → text-area-field-rac-CLPZEY93.js} +16 -16
- package/dist/component/{text-area-rac-jZ_mh45C.js → text-area-rac-C8PdPSzX.js} +1 -1
- package/dist/component/{text-input-field-rac-DifV7Erd.js → text-input-field-rac-Dm-xU8Rg.js} +5 -5
- package/dist/component/{text-input-headless-DhVEjorY.js → text-input-headless-BEmRjL8Z.js} +6 -6
- package/dist/component/{text-input-rac-Ce4qKN9M.js → text-input-rac-C-FnaOXT.js} +1 -1
- package/dist/component/{time-input-rac-1kW3aDIo.js → time-input-rac-VmTURkiK.js} +46 -46
- package/dist/component/{url-input-field-rac-D9xXAQCq.js → url-input-field-rac-CnnS0tVx.js} +23 -23
- package/dist/component/{url-input-rac-SaAybDdN.js → url-input-rac-6nd_ccoP.js} +1 -1
- package/dist/component/{use-dropdown-option-class-name-C_MO_0JS.js → use-dropdown-option-class-name-CcZl1qrj.js} +2 -2
- package/dist/component/{use-dropdown-trigger-class-name-D7EMiD-M.js → use-dropdown-trigger-class-name-BNc0mkdK.js} +4 -4
- package/dist/component/{use-element-state-class-name-DZFi3Z42.js → use-element-state-class-name-BU6RXqBy.js} +1 -1
- package/dist/component/{use-hoverable-input-class-name-JAZ1mif0.js → use-hoverable-input-class-name-CkXPkbiP.js} +2 -2
- package/dist/component/{use-service-options-base-ZX4iaxzr.js → use-service-options-base-B5afDbnr.js} +4 -4
- package/dist/component/use-text-input-class-name-BB3V6Q0b.js +6 -0
- package/package.json +2 -2
- package/dist/component/appointment-rac-CYCddSl9.js +0 -1010
- package/dist/component/service-dropdown-rac-Bc9hEpx3.js +0 -146
- package/dist/component/use-text-input-class-name-XFjQX8q1.js +0 -6
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import n, { useMemo as M, useCallback as F, useRef as oe } from "react";
|
|
2
2
|
import { RicosViewer as re } from "@wix/ricos/viewer";
|
|
3
3
|
import D from "classnames";
|
|
4
|
-
import { RadioGroup as se, RadioField as
|
|
4
|
+
import { RadioGroup as se, RadioField as V, RadioButton as Y, TextField as ae, Group as le, Input as ie } from "react-aria-components";
|
|
5
5
|
import { debounce as ce } from "ts-debounce";
|
|
6
|
-
import {
|
|
6
|
+
import { az as j, bj as L, bg as B, bt as ue, bb as z, bl as me, M as pe, Y as de, v as Ie, G as Ce, u as Ee, w as fe } from "./form-C6lnbh2O.js";
|
|
7
7
|
import { f, a as y } from "./find-child-C60k4CxG.js";
|
|
8
8
|
import { a as Q } from "./format-currency-BwShJ9vM.js";
|
|
9
|
-
import { D as he, E as Oe } from "./field-error-headless-
|
|
10
|
-
import { L as
|
|
11
|
-
import { a as
|
|
12
|
-
import { g as
|
|
13
|
-
import { u as
|
|
9
|
+
import { D as he, E as Oe } from "./field-error-headless-Bpe041x2.js";
|
|
10
|
+
import { L as be } from "./field-label-headless-BUuK1Ftv.js";
|
|
11
|
+
import { a as _e, b as ye } from "./numeric-input-utils-CuBMi4-a.js";
|
|
12
|
+
import { g as ge } from "./payment-field-utils-DobiK5Xh.js";
|
|
13
|
+
import { u as Ne } from "./use-synced-display-value-DcAxdn3M.js";
|
|
14
14
|
import { E as Fe } from "./error-icon-hZxQ6DEy.js";
|
|
15
15
|
import { s as v } from "./field-rac.module-DfEb7pBp.js";
|
|
16
16
|
import { o as De } from "./options-rac.module-_THNq6Qq.js";
|
|
17
|
-
import { u as ve } from "./use-element-state-class-name-
|
|
18
|
-
import { u as Se } from "./use-text-input-class-name-
|
|
17
|
+
import { u as ve } from "./use-element-state-class-name-BU6RXqBy.js";
|
|
18
|
+
import { u as Se } from "./use-text-input-class-name-BB3V6Q0b.js";
|
|
19
19
|
function Re(e, t) {
|
|
20
20
|
return e.reduce((o, r) => (o[r[t]] = r, o), {});
|
|
21
21
|
}
|
|
@@ -35,10 +35,10 @@ function W(e, t) {
|
|
|
35
35
|
quantity: 1
|
|
36
36
|
};
|
|
37
37
|
}
|
|
38
|
-
function
|
|
38
|
+
function Pe(e) {
|
|
39
39
|
return e.find((t) => t.priceType === j.DYNAMIC_PRICE);
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function xe(e, t) {
|
|
42
42
|
return (e == null ? void 0 : e.productId) === (t == null ? void 0 : t.id) ? String((e == null ? void 0 : e.price) ?? "") : "";
|
|
43
43
|
}
|
|
44
44
|
function Me(e, t, o) {
|
|
@@ -48,71 +48,71 @@ function Me(e, t, o) {
|
|
|
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: I, validation: i, addOther: p, addOtherPlaceholder: c, FieldLayout: h, hasError:
|
|
52
|
-
var E,
|
|
53
|
-
return ((
|
|
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: C } = ue(), { currency: A, regionalFormat: g } = z(), d = o == null ? void 0 : o[0], N = M(() => {
|
|
52
|
+
var E, x;
|
|
53
|
+
return ((x = (E = i == null ? void 0 : i.predefined) == null ? void 0 : E.paymentOptions) == null ? void 0 : x.products) || [];
|
|
54
54
|
}, [
|
|
55
55
|
i
|
|
56
|
-
]), T = M(() => Le(
|
|
57
|
-
|
|
58
|
-
]), l = M(() => p ?
|
|
59
|
-
|
|
56
|
+
]), T = M(() => Le(N), [
|
|
57
|
+
N
|
|
58
|
+
]), l = M(() => p ? Pe(N) : void 0, [
|
|
59
|
+
N,
|
|
60
60
|
p
|
|
61
|
-
]), J =
|
|
61
|
+
]), J = xe(d, l), [w, P] = Ne({
|
|
62
62
|
sourceValue: J,
|
|
63
|
-
format: (E) => ye(String(E ?? ""),
|
|
64
|
-
regionalFormat:
|
|
65
|
-
}),
|
|
66
|
-
r(Me(E, d, T)),
|
|
63
|
+
format: (E) => ye(String(E ?? ""), g),
|
|
64
|
+
regionalFormat: g
|
|
65
|
+
}), q = F((E) => {
|
|
66
|
+
r(Me(E, d, T)), P("");
|
|
67
67
|
}, [
|
|
68
68
|
r,
|
|
69
69
|
T,
|
|
70
70
|
d,
|
|
71
|
-
|
|
72
|
-
]),
|
|
71
|
+
P
|
|
72
|
+
]), U = F((E) => {
|
|
73
73
|
l && r(typeof E == "number" ? [
|
|
74
74
|
W(l, String(E))
|
|
75
75
|
] : []);
|
|
76
76
|
}, [
|
|
77
77
|
r,
|
|
78
78
|
l
|
|
79
|
-
]), $ = M(() => ce(
|
|
80
|
-
|
|
79
|
+
]), $ = M(() => ce(U, 500), [
|
|
80
|
+
U
|
|
81
81
|
]), K = F((E) => {
|
|
82
82
|
(d == null ? void 0 : d.productId) !== (l == null ? void 0 : l.id) && r(void 0);
|
|
83
|
-
const { validInput:
|
|
84
|
-
x
|
|
83
|
+
const { validInput: x, validNumber: ne } = _e(E.target.value, Ae, w, g);
|
|
84
|
+
P(x), $(ne);
|
|
85
85
|
}, [
|
|
86
|
-
|
|
86
|
+
g,
|
|
87
87
|
r,
|
|
88
88
|
d,
|
|
89
89
|
l,
|
|
90
|
-
|
|
90
|
+
w,
|
|
91
91
|
$,
|
|
92
|
-
|
|
92
|
+
P
|
|
93
93
|
]), H = (d == null ? void 0 : d.productId) || null, X = F(() => {
|
|
94
|
-
l != null && l.id && H !== l.id &&
|
|
94
|
+
l != null && l.id && H !== l.id && q(l.id);
|
|
95
95
|
}, [
|
|
96
96
|
l == null ? void 0 : l.id,
|
|
97
97
|
H,
|
|
98
|
-
|
|
99
|
-
]), Z = f(e, s.Label),
|
|
98
|
+
q
|
|
99
|
+
]), Z = f(e, s.Label), G = f(e, s.Control), ee = f(e, s.Description), te = f(e, s.Error);
|
|
100
100
|
return /* @__PURE__ */ n.createElement(h, {
|
|
101
101
|
fieldId: t,
|
|
102
102
|
renderLabel: () => Z,
|
|
103
103
|
renderInput: () => /* @__PURE__ */ n.createElement(se, {
|
|
104
104
|
"aria-labelledby": O,
|
|
105
105
|
value: H,
|
|
106
|
-
onChange:
|
|
106
|
+
onChange: q,
|
|
107
107
|
isDisabled: a,
|
|
108
|
-
isInvalid:
|
|
108
|
+
isInvalid: _,
|
|
109
109
|
isRequired: u,
|
|
110
110
|
onBlur: m,
|
|
111
111
|
onFocus: I
|
|
112
|
-
},
|
|
112
|
+
}, G ? y(G, {
|
|
113
113
|
productsById: T,
|
|
114
114
|
addOther: p,
|
|
115
|
-
customAmount:
|
|
115
|
+
customAmount: w,
|
|
116
116
|
onCustomAmountInputChange: K,
|
|
117
117
|
currency: A,
|
|
118
118
|
t: C,
|
|
@@ -123,13 +123,13 @@ const s = ({ children: e }) => {
|
|
|
123
123
|
renderDescription: () => /* @__PURE__ */ n.createElement(n.Fragment, null, te, ee)
|
|
124
124
|
});
|
|
125
125
|
}, Be = ({ children: e, className: t, ...o }) => {
|
|
126
|
-
const { productsById: r, addOther: a, customAmount: u, onCustomAmountInputChange: m, currency: I, t: i, placeholder: p, customAmountProductId: c, onFocusCustomInput: h } = o, { hasError:
|
|
126
|
+
const { productsById: r, addOther: a, customAmount: u, onCustomAmountInputChange: m, currency: I, t: i, placeholder: p, customAmountProductId: c, onFocusCustomInput: h } = o, { hasError: _ } = L(), O = f(e, s.Options), C = f(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
|
-
}) : null, a && c && /* @__PURE__ */ n.createElement(
|
|
132
|
+
}) : null, a && c && /* @__PURE__ */ n.createElement(V, {
|
|
133
133
|
value: c,
|
|
134
134
|
style: {
|
|
135
135
|
position: "absolute",
|
|
@@ -153,8 +153,8 @@ const s = ({ children: e }) => {
|
|
|
153
153
|
customAmountProductId: c,
|
|
154
154
|
onFocusCustomInput: h
|
|
155
155
|
}) : null);
|
|
156
|
-
},
|
|
157
|
-
const { productsById: r } = o, { options: a, numberOfColumns: u } = L(), m = f(e,
|
|
156
|
+
}, k = ({ children: e, className: t, ...o }) => {
|
|
157
|
+
const { productsById: r } = o, { options: a, numberOfColumns: u } = L(), m = f(e, k.Option);
|
|
158
158
|
return /* @__PURE__ */ n.createElement("div", {
|
|
159
159
|
className: t,
|
|
160
160
|
"data-columns": u
|
|
@@ -177,15 +177,15 @@ const s = ({ children: e }) => {
|
|
|
177
177
|
var O, C;
|
|
178
178
|
(C = (O = h.current) == null ? void 0 : O.querySelector("input")) == null || C.focus();
|
|
179
179
|
}, u);
|
|
180
|
-
const
|
|
180
|
+
const _ = i ? y(i, {
|
|
181
181
|
price: a
|
|
182
182
|
}) : null;
|
|
183
|
-
return /* @__PURE__ */ n.createElement(
|
|
183
|
+
return /* @__PURE__ */ n.createElement(V, {
|
|
184
184
|
value: r
|
|
185
185
|
}, /* @__PURE__ */ n.createElement(Y, {
|
|
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
|
}, ze = ({ className: e, ...t }) => {
|
|
190
190
|
const { price: o } = t, { currency: r, regionalFormat: a } = z(), { value: u } = Q({
|
|
191
191
|
amount: o,
|
|
@@ -195,19 +195,19 @@ const s = ({ children: e }) => {
|
|
|
195
195
|
return /* @__PURE__ */ n.createElement("span", {
|
|
196
196
|
className: e
|
|
197
197
|
}, u);
|
|
198
|
-
},
|
|
198
|
+
}, we = ({ className: e }) => {
|
|
199
199
|
const { currency: t } = z();
|
|
200
200
|
return /* @__PURE__ */ n.createElement("span", {
|
|
201
201
|
className: e
|
|
202
202
|
}, (t == null ? void 0 : t.sign) || (t == null ? void 0 : t.code) || "");
|
|
203
203
|
};
|
|
204
204
|
S.Value = ze;
|
|
205
|
-
S.Currency =
|
|
205
|
+
S.Currency = we;
|
|
206
206
|
const R = ({ children: e, className: t, ...o }) => {
|
|
207
|
-
const { customAmount: r, onCustomAmountInputChange: a, currency: u, t: m, placeholder: I, customAmountProductId: i, onFocusCustomInput: p } = o, { disabled: c, hasError: h } = L(), { labelId:
|
|
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(), C = f(e, R.Currency), A = f(e, R.Value), g = F((N) => {
|
|
208
208
|
a({
|
|
209
209
|
target: {
|
|
210
|
-
value:
|
|
210
|
+
value: N
|
|
211
211
|
}
|
|
212
212
|
});
|
|
213
213
|
}, [
|
|
@@ -218,9 +218,9 @@ const R = ({ children: e, className: t, ...o }) => {
|
|
|
218
218
|
p
|
|
219
219
|
]);
|
|
220
220
|
return /* @__PURE__ */ n.createElement(ae, {
|
|
221
|
-
"aria-labelledby": `${
|
|
221
|
+
"aria-labelledby": `${_} ${O}`,
|
|
222
222
|
value: r,
|
|
223
|
-
onChange:
|
|
223
|
+
onChange: g,
|
|
224
224
|
onFocus: d,
|
|
225
225
|
isDisabled: c,
|
|
226
226
|
isInvalid: h
|
|
@@ -235,12 +235,12 @@ const R = ({ children: e, className: t, ...o }) => {
|
|
|
235
235
|
placeholder: I,
|
|
236
236
|
customAmountProductId: i
|
|
237
237
|
}) : null));
|
|
238
|
-
},
|
|
238
|
+
}, qe = ({ className: e, ...t }) => {
|
|
239
239
|
const { currency: o, t: r } = t, { prefixId: a } = B();
|
|
240
240
|
return /* @__PURE__ */ n.createElement("span", {
|
|
241
241
|
id: a,
|
|
242
242
|
"aria-hidden": !1,
|
|
243
|
-
"aria-label":
|
|
243
|
+
"aria-label": ge(r, o),
|
|
244
244
|
className: e
|
|
245
245
|
}, (o == null ? void 0 : o.sign) || (o == null ? void 0 : o.code) || "");
|
|
246
246
|
}, He = ({ className: e, ...t }) => {
|
|
@@ -255,21 +255,21 @@ const R = ({ children: e, className: t, ...o }) => {
|
|
|
255
255
|
className: e
|
|
256
256
|
});
|
|
257
257
|
};
|
|
258
|
-
R.Currency =
|
|
258
|
+
R.Currency = qe;
|
|
259
259
|
R.Value = He;
|
|
260
|
-
|
|
261
|
-
s.Label =
|
|
260
|
+
k.Option = S;
|
|
261
|
+
s.Label = be;
|
|
262
262
|
s.Control = Be;
|
|
263
|
-
s.Options =
|
|
263
|
+
s.Options = k;
|
|
264
264
|
s.OtherInput = R;
|
|
265
265
|
s.Description = he;
|
|
266
266
|
s.Error = Oe;
|
|
267
|
-
const
|
|
268
|
-
control:
|
|
269
|
-
options:
|
|
267
|
+
const ke = "_control_1ulzi_1", Ue = "_options_1ulzi_7", $e = "_option_1ulzi_7", Ge = "_optionHover_1ulzi_40", Ve = "_optionSelected_1ulzi_40", Ye = "_optionCurrency_1ulzi_90", je = "_otherInput_1ulzi_94", Qe = "_otherInputCurrency_1ulzi_113", b = {
|
|
268
|
+
control: ke,
|
|
269
|
+
options: Ue,
|
|
270
270
|
option: $e,
|
|
271
|
-
optionHover:
|
|
272
|
-
optionSelected:
|
|
271
|
+
optionHover: Ge,
|
|
272
|
+
optionSelected: Ve,
|
|
273
273
|
optionCurrency: Ye,
|
|
274
274
|
otherInput: je,
|
|
275
275
|
otherInputCurrency: Qe
|
|
@@ -277,11 +277,11 @@ const Ue = "_control_1ulzi_1", ke = "_options_1ulzi_7", $e = "_option_1ulzi_7",
|
|
|
277
277
|
content: e,
|
|
278
278
|
locale: t
|
|
279
279
|
}), Je = {
|
|
280
|
-
base:
|
|
281
|
-
selected:
|
|
282
|
-
hover:
|
|
280
|
+
base: b.option,
|
|
281
|
+
selected: b.optionSelected,
|
|
282
|
+
hover: b.optionHover
|
|
283
283
|
}, Ke = () => {
|
|
284
|
-
const e = Se(
|
|
284
|
+
const e = Se(b.otherInput), t = ve({
|
|
285
285
|
globalClasses: fe,
|
|
286
286
|
moduleClasses: Je
|
|
287
287
|
});
|
|
@@ -290,17 +290,17 @@ const Ue = "_control_1ulzi_1", ke = "_options_1ulzi_7", $e = "_option_1ulzi_7",
|
|
|
290
290
|
}, /* @__PURE__ */ n.createElement(s.Label.Required, {
|
|
291
291
|
className: D(de, v.requiredMark)
|
|
292
292
|
})), /* @__PURE__ */ n.createElement(s.Control, {
|
|
293
|
-
className:
|
|
293
|
+
className: b.control
|
|
294
294
|
}, /* @__PURE__ */ n.createElement(s.Options, {
|
|
295
|
-
className: D(Ie, De.options,
|
|
295
|
+
className: D(Ie, De.options, b.options)
|
|
296
296
|
}, /* @__PURE__ */ n.createElement(s.Options.Option, {
|
|
297
297
|
className: t
|
|
298
298
|
}, /* @__PURE__ */ n.createElement(s.Options.Option.Value, null), /* @__PURE__ */ n.createElement(s.Options.Option.Currency, {
|
|
299
|
-
className:
|
|
299
|
+
className: b.optionCurrency
|
|
300
300
|
}))), /* @__PURE__ */ n.createElement(s.OtherInput, {
|
|
301
301
|
className: e
|
|
302
302
|
}, /* @__PURE__ */ n.createElement(s.OtherInput.Currency, {
|
|
303
|
-
className:
|
|
303
|
+
className: b.otherInputCurrency
|
|
304
304
|
}), /* @__PURE__ */ n.createElement(s.OtherInput.Value, {
|
|
305
305
|
className: v.innerInput
|
|
306
306
|
}))), /* @__PURE__ */ n.createElement(s.Error, {
|
package/dist/component/{dropdown-field-headless-DVZnbZAM.js → dropdown-field-headless-BAt2RoAH.js}
RENAMED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import e, { useState as b, useCallback as g, useRef as k } from "react";
|
|
2
2
|
import { UNSAFE_PortalProvider as q } from "react-aria";
|
|
3
3
|
import { Select as M, SelectValue as j, ListBoxItem as H } from "react-aria-components";
|
|
4
|
-
import {
|
|
4
|
+
import { bj as E, bg as O, bl as U } from "./form-C6lnbh2O.js";
|
|
5
5
|
import { f as d, a as F } from "./find-child-C60k4CxG.js";
|
|
6
|
-
import { D as Y, E as z } from "./field-error-headless-
|
|
7
|
-
import { L as G } from "./field-label-headless-
|
|
6
|
+
import { D as Y, E as z } from "./field-error-headless-Bpe041x2.js";
|
|
7
|
+
import { L as G } from "./field-label-headless-BUuK1Ftv.js";
|
|
8
8
|
import { E as J, S as K, N as Q } from "./non-modal-popover-D-u13tmp.js";
|
|
9
|
-
import { a as W } from "./use-dropdown-trigger-class-name-
|
|
10
|
-
import { V as X } from "./use-dropdown-option-class-name-
|
|
9
|
+
import { a as W } from "./use-dropdown-trigger-class-name-BNc0mkdK.js";
|
|
10
|
+
import { V as X } from "./use-dropdown-option-class-name-CcZl1qrj.js";
|
|
11
11
|
const r = ({ children: n }) => {
|
|
12
|
-
const { id: l, value: a, defaultValue: o, options: u = [], readOnly: s, onChange: t, placeholder: m, disabled: i, required: v, onBlur: L, onFocus: y, FieldLayout: C, hasError: D } = E(), [
|
|
12
|
+
const { id: l, value: a, defaultValue: o, options: u = [], readOnly: s, onChange: t, placeholder: m, disabled: i, required: v, onBlur: L, onFocus: y, FieldLayout: C, hasError: D } = E(), [I, h] = b(!1), p = W(l), [P, S] = b(null), T = a && u.some((c) => (c.value ?? c.label) === a) ? a : o || null, { labelId: B } = O(), N = g((c) => {
|
|
13
13
|
s || t(typeof c == "string" ? c : null);
|
|
14
14
|
}, [
|
|
15
15
|
t,
|
|
16
16
|
s
|
|
17
|
-
]), V = g((c) =>
|
|
17
|
+
]), V = g((c) => h(c && !i && !s), [
|
|
18
18
|
i,
|
|
19
19
|
s
|
|
20
20
|
]), R = d(n, r.Label), x = d(n, r.Trigger), w = d(n, r.Options), A = d(n, r.Description), _ = d(n, r.Error);
|
|
@@ -31,7 +31,7 @@ const r = ({ children: n }) => {
|
|
|
31
31
|
}, /* @__PURE__ */ e.createElement(M, {
|
|
32
32
|
"aria-labelledby": B,
|
|
33
33
|
value: T,
|
|
34
|
-
isOpen: p ||
|
|
34
|
+
isOpen: p || I && !i && !s,
|
|
35
35
|
onOpenChange: p ? void 0 : V,
|
|
36
36
|
onChange: N,
|
|
37
37
|
isDisabled: i,
|
|
@@ -1,19 +1,19 @@
|
|
|
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-field-headless-
|
|
4
|
+
import { D as r } from "./dropdown-field-headless-BAt2RoAH.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-DfEb7pBp.js";
|
|
9
|
-
import {
|
|
10
|
-
import { u as
|
|
11
|
-
import { u as
|
|
9
|
+
import { M as i, Y as p, O as E, G as _, u as D } from "./form-C6lnbh2O.js";
|
|
10
|
+
import { u as O } from "./use-dropdown-option-class-name-CcZl1qrj.js";
|
|
11
|
+
import { u as C } from "./use-dropdown-trigger-class-name-BNc0mkdK.js";
|
|
12
12
|
const R = ({ content: t, locale: s }) => /* @__PURE__ */ e.createElement(m, {
|
|
13
13
|
content: t,
|
|
14
14
|
locale: s
|
|
15
|
-
}),
|
|
16
|
-
const t =
|
|
15
|
+
}), M = () => {
|
|
16
|
+
const t = C(o.dropdownTrigger), s = O(c);
|
|
17
17
|
return /* @__PURE__ */ e.createElement(r, null, /* @__PURE__ */ e.createElement(r.Label, {
|
|
18
18
|
className: a(i, o.label)
|
|
19
19
|
}, /* @__PURE__ */ e.createElement(r.Label.Required, {
|
|
@@ -33,5 +33,5 @@ const R = ({ content: t, locale: s }) => /* @__PURE__ */ e.createElement(m, {
|
|
|
33
33
|
}, R));
|
|
34
34
|
};
|
|
35
35
|
export {
|
|
36
|
-
|
|
36
|
+
M as D
|
|
37
37
|
};
|
|
@@ -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 { bj as a, bt as c, al as i } from "./form-C6lnbh2O.js";
|
|
3
|
+
import { C as l } from "./checkbox-field-rac-Be6wicaA.js";
|
|
4
4
|
const p = (e) => ({
|
|
5
5
|
nodes: [
|
|
6
6
|
{
|
package/dist/component/{email-input-field-rac-BXJGOBg-.js → email-input-field-rac-5eb-1w7B.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 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 { bg as fe, bt as ge, be as ve, d as ye, bj as Ee, bn as de, bh as be, aj as Se, M as Oe, Y as he, G as Ie, u as Ne, a5 as Ae } from "./form-C6lnbh2O.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
11
|
import Te from "@babel/runtime/helpers/classCallCheck";
|
|
12
|
-
import
|
|
13
|
-
import { T as
|
|
14
|
-
import { E as
|
|
12
|
+
import je from "@babel/runtime/helpers/createClass";
|
|
13
|
+
import { T as U } from "./text-input-headless-BEmRjL8Z.js";
|
|
14
|
+
import { E as xe } from "./error-icon-hZxQ6DEy.js";
|
|
15
15
|
import { s as H } from "./field-rac.module-DfEb7pBp.js";
|
|
16
|
-
import { u as
|
|
16
|
+
import { u as De } from "./use-text-input-class-name-BB3V6Q0b.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
|
"&": "&",
|
|
@@ -56,7 +56,7 @@ function Re() {
|
|
|
56
56
|
function e() {
|
|
57
57
|
Te(this, e), this.usedNamespaces = {};
|
|
58
58
|
}
|
|
59
|
-
return
|
|
59
|
+
return je(e, [{
|
|
60
60
|
key: "addUsedNamespaces",
|
|
61
61
|
value: function(a) {
|
|
62
62
|
var o = this;
|
|
@@ -82,12 +82,12 @@ function K() {
|
|
|
82
82
|
}
|
|
83
83
|
}
|
|
84
84
|
var J = {};
|
|
85
|
-
function
|
|
85
|
+
function Be() {
|
|
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 Ue = ["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) {
|
|
@@ -109,7 +109,7 @@ function p(e) {
|
|
|
109
109
|
}
|
|
110
110
|
return e;
|
|
111
111
|
}
|
|
112
|
-
function
|
|
112
|
+
function q(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;
|
|
@@ -117,15 +117,15 @@ function Y(e, t) {
|
|
|
117
117
|
function G(e) {
|
|
118
118
|
return e ? e.props ? e.props.children : e.children : [];
|
|
119
119
|
}
|
|
120
|
-
function
|
|
120
|
+
function Ye(e) {
|
|
121
121
|
return Object.prototype.toString.call(e) !== "[object Array]" ? !1 : e.every(function(t) {
|
|
122
|
-
return
|
|
122
|
+
return B(t);
|
|
123
123
|
});
|
|
124
124
|
}
|
|
125
125
|
function M(e) {
|
|
126
126
|
return Array.isArray(e) ? e : [e];
|
|
127
127
|
}
|
|
128
|
-
function
|
|
128
|
+
function qe(e, t) {
|
|
129
129
|
var a = p({}, t);
|
|
130
130
|
return a.props = Object.assign(e.props, t.props), a;
|
|
131
131
|
}
|
|
@@ -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 (B(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, "/>");
|
|
@@ -152,7 +152,7 @@ function te(e, t) {
|
|
|
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, Ue), 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,14 +170,14 @@ 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" && (q(s) ? b(G(s)) : L(s) === "object" && !B(s) && Object.assign(d, s));
|
|
174
174
|
});
|
|
175
175
|
}
|
|
176
176
|
b(e);
|
|
177
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
|
-
return
|
|
180
|
+
return Ye(i) && I.length === 0 ? i : I;
|
|
181
181
|
}
|
|
182
182
|
function A(y, h, s, i, I) {
|
|
183
183
|
y.dummy && (y.children = h), s.push(w(y, p(p({}, y.props), {}, {
|
|
@@ -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 ? qe({
|
|
195
195
|
props: n.attrs
|
|
196
|
-
}, N) : N,
|
|
196
|
+
}, N) : N, j = B(m), V = j && q(n, !0) && !n.voidElement, P = v && L(m) === "object" && m.dummy && !j, _ = L(e) === "object" && e !== null && Object.hasOwnProperty.call(e, n.name);
|
|
197
197
|
if (typeof m == "string") {
|
|
198
|
-
var
|
|
199
|
-
l.push(
|
|
200
|
-
} else if (
|
|
198
|
+
var Y = a.services.interpolator.interpolate(m, O, a.language);
|
|
199
|
+
l.push(Y);
|
|
200
|
+
} else if (q(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" && !j) {
|
|
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,18 +243,18 @@ function Ge(e, t, a, o, c, r) {
|
|
|
243
243
|
return l;
|
|
244
244
|
}, []);
|
|
245
245
|
}
|
|
246
|
-
var
|
|
246
|
+
var x = S([{
|
|
247
247
|
dummy: !0,
|
|
248
248
|
children: e || []
|
|
249
249
|
}], T, M(e || []));
|
|
250
|
-
return G(
|
|
250
|
+
return G(x[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, T = e.components, O = e.ns, F = e.i18n, A = e.t, S = e.shouldUnescape,
|
|
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, x = ee(e, Ve), y = Z(He) || {}, h = y.i18n, s = y.defaultNS, i = F || h || Ke();
|
|
254
254
|
if (!i)
|
|
255
|
-
return
|
|
256
|
-
var I = A || i.t.bind(i) || function(
|
|
257
|
-
return
|
|
255
|
+
return Be("You will need to pass in an i18next instance by using i18nextReactModule"), t;
|
|
256
|
+
var I = A || i.t.bind(i) || function(Y) {
|
|
257
|
+
return Y;
|
|
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;
|
|
@@ -264,13 +264,13 @@ function $e(e) {
|
|
|
264
264
|
prefix: "#$?",
|
|
265
265
|
suffix: "?$#"
|
|
266
266
|
})
|
|
267
|
-
},
|
|
267
|
+
}, j = 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, j) : E, P = Ge(T || t, V, i, l, j, S), _ = o !== void 0 ? o : l.defaultTransParent;
|
|
273
|
+
return _ ? R(_, x, 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: T, description: O, FieldLayout: F } = Ee(), { isMistyped: A, suggestedEmail: S, validate:
|
|
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: x } = at({
|
|
453
453
|
email: a,
|
|
454
454
|
hasError: v
|
|
455
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
|
-
|
|
458
|
+
x(), 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
|
|
@@ -479,10 +479,10 @@ const Qe = ({ activeSuggestion: e, applySuggestion: t, children: a }) => /* @__P
|
|
|
479
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 = U.Label;
|
|
483
|
+
f.Input = U.Input;
|
|
484
|
+
f.Description = U.Description;
|
|
485
|
+
f.Error = U.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(xe, 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 {
|