@wix/form-elements 1.93.0 → 1.95.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-bw0pvoxP.js → appointment-rac-mhQIjy3A.js} +310 -311
- package/dist/component/{bookings-address-rac-DECq7eWR.js → bookings-address-rac-pcZeAN2d.js} +1 -1
- package/dist/component/{bookings-email-rac-DTLjh6Zw.js → bookings-email-rac-BHdvWhcv.js} +1 -1
- package/dist/component/{bookings-first-name-rac-DObRe-Gq.js → bookings-first-name-rac-mPNuMBGo.js} +1 -1
- package/dist/component/{bookings-header-rac-DjpmYRJG.js → bookings-header-rac-CUzR91gM.js} +1 -1
- package/dist/component/{bookings-last-name-rac-Ds3o0ABM.js → bookings-last-name-rac-q2bsOPke.js} +1 -1
- package/dist/component/{bookings-login-bar-rac-DPUL2jWj.js → bookings-login-bar-rac-BpwVjQwz.js} +4 -4
- package/dist/component/{bookings-phone-rac-DIIHPxEP.js → bookings-phone-rac-DWdDpi-n.js} +1 -1
- package/dist/component/{bookings-rich-text-rac-BrcQO9xx.js → bookings-rich-text-rac-CZnGLPwv.js} +1 -1
- package/dist/component/{get-first-day-of-the-week-DvnsxYhQ.js → calendar.module-DnhTT4QT.js} +23 -18
- package/dist/component/{checkbox-field-rac-CD1MP1LT.js → checkbox-field-rac-DRVjITJ_.js} +7 -7
- package/dist/component/{checkbox-group-field-headless-C0V6zq0u.js → checkbox-group-field-headless-CKXgbUdv.js} +3 -3
- package/dist/component/{checkbox-group-field-rac-B-MYpz53.js → checkbox-group-field-rac-Dt3yWmua.js} +14 -14
- package/dist/component/{checkbox-group-rac-BejQjiO2.js → checkbox-group-rac-BTFoDjxn.js} +1 -1
- package/dist/component/{checkbox-indicator-module-classes-mJ7hl_8K.js → checkbox-indicator-module-classes-DhbNznSB.js} +1 -1
- package/dist/component/{checkbox-rac-B0YgCj29.js → checkbox-rac-Crn5HP7E.js} +1 -1
- package/dist/component/{contacts-address-rac-B1QNl3Lb.js → contacts-address-rac-c1zfBJgx.js} +1 -1
- package/dist/component/{contacts-birthdate-rac-Cp-gh3P-.js → contacts-birthdate-rac-BaaSPZgO.js} +1 -1
- package/dist/component/{contacts-company-rac-CSCU7JGm.js → contacts-company-rac-CzuRjr1D.js} +1 -1
- package/dist/component/{contacts-email-rac-B1Oov6-3.js → contacts-email-rac-hL98o3x4.js} +1 -1
- package/dist/component/{contacts-first-name-rac-rsHIOcjr.js → contacts-first-name-rac-BXTnd1aU.js} +1 -1
- package/dist/component/{contacts-last-name-rac-Csgq53Wm.js → contacts-last-name-rac-DYjmWO4_.js} +1 -1
- package/dist/component/{contacts-phone-rac-r9SwjDZ4.js → contacts-phone-rac-KMnorQhu.js} +1 -1
- package/dist/component/{contacts-position-rac-D7VcCM7v.js → contacts-position-rac-ylzvuGhD.js} +1 -1
- package/dist/component/{contacts-subscribe-rac-8Nu9ncZW.js → contacts-subscribe-rac-Bi3ZazuW.js} +2 -2
- package/dist/component/{contacts-tax-id-rac-CL_JSl_W.js → contacts-tax-id-rac-C01LkO1D.js} +1 -1
- package/dist/component/{date-availability-DLOKY9C4.js → date-availability-BXwnYCBt.js} +1 -1
- package/dist/component/{date-input-field-rac-D23Al-Mr.js → date-input-field-rac-BMdPQoFk.js} +58 -57
- package/dist/component/{date-input-rac-B6zgkw-L.js → date-input-rac-D2mDdJ_4.js} +1 -1
- package/dist/component/date-picker-field-rac-7gyRMkPp.js +317 -0
- package/dist/component/{date-picker-rac-C7g6aceb.js → date-picker-rac-FyNcNbTc.js} +1 -1
- package/dist/component/{date-time-input-field-rac-BENzf6gc.js → date-time-input-field-rac-BTjqn_g-.js} +54 -53
- package/dist/component/{date-time-input-rac-CVpK3mgw.js → date-time-input-rac-C81cN7rJ.js} +1 -1
- package/dist/component/{dext-checkbox-group-rac-CbEFDD3H.js → dext-checkbox-group-rac-DAjQPdi_.js} +2 -2
- package/dist/component/{dext-checkbox-rac-BdtZvn6I.js → dext-checkbox-rac-DVt9mAXM.js} +1 -1
- package/dist/component/{dext-date-picker-rac-BAhFvUEx.js → dext-date-picker-rac-BnaExh1i.js} +1 -1
- package/dist/component/{dext-date-time-input-rac-iXMKMwQY.js → dext-date-time-input-rac-DPAW4eBA.js} +1 -1
- package/dist/component/{dext-dropdown-rac-D-NPziZS.js → dext-dropdown-rac-P9T1vh24.js} +1 -1
- package/dist/component/{dext-email-rac-DYSwyB80.js → dext-email-rac-BfEuFGaV.js} +1 -1
- package/dist/component/{dext-number-input-rac-DXx8hgFg.js → dext-number-input-rac-B5eN2rLP.js} +1 -1
- package/dist/component/{dext-phone-rac-BtuLROzm.js → dext-phone-rac-DA-h_tpZ.js} +1 -1
- package/dist/component/{dext-radio-group-rac-MdKNiJ2i.js → dext-radio-group-rac-BjpkApRr.js} +2 -2
- package/dist/component/{dext-rating-input-rac-d998xond.js → dext-rating-input-rac-DUMRW9uI.js} +1 -1
- package/dist/component/{dext-tags-rac-DnSpOM9T.js → dext-tags-rac-s0WchM4X.js} +2 -2
- package/dist/component/{dext-text-area-rac-KqjeDDWe.js → dext-text-area-rac-BRMsiGEH.js} +1 -1
- package/dist/component/{dext-text-input-rac-CtCnClfX.js → dext-text-input-rac-BBZi3D8V.js} +1 -1
- package/dist/component/{dext-url-input-rac-DSJQcLLr.js → dext-url-input-rac-jKMWbCGB.js} +1 -1
- package/dist/component/{donation-rac-B_KGkBgo.js → donation-rac-DyeKbodo.js} +30 -30
- package/dist/component/{dropdown-field-headless-BUilB8wZ.js → dropdown-field-headless-BK8BN3u4.js} +4 -4
- package/dist/component/{dropdown-field-rac-COupYC1a.js → dropdown-field-rac-B6yzL_R0.js} +6 -6
- package/dist/component/{dropdown-rac-Dj0UZrE0.js → dropdown-rac-CQaMpex2.js} +1 -1
- package/dist/component/{ecom-address-rac-C0xnn86e.js → ecom-address-rac-DQr3-QeV.js} +1 -1
- package/dist/component/{ecom-subscription-checkbox-rac-D-ekxwUE.js → ecom-subscription-checkbox-rac-CZ-pj21A.js} +3 -3
- package/dist/component/{email-input-field-rac-DVj1qz_R.js → email-input-field-rac-Vp0YfQOe.js} +41 -41
- package/dist/component/{events-repeater-rac-U0aq9Z4Q.js → events-repeater-rac-BPE4Hn_G.js} +6 -6
- package/dist/component/{events-rsvp-rac-C7J58_5q.js → events-rsvp-rac-u_BDmDJ2.js} +21 -21
- package/dist/component/{field-error-headless-2nYJ2792.js → field-error-headless-BOlFtckJ.js} +1 -1
- package/dist/component/{field-label-headless-D97ACnmc.js → field-label-headless-Dx3VrM-U.js} +1 -1
- package/dist/component/field-rac.module-DobpyqOd.js +26 -0
- package/dist/component/{file-upload-rac-BR7QpuPW.js → file-upload-rac-DaFuvO-g.js} +44 -44
- package/dist/component/{fixed-payment-rac-COl18wW1.js → fixed-payment-rac-DpBwOtOf.js} +11 -11
- package/dist/component/{form-DKKTSAj1.js → form-Wsx4lguO.js} +69 -69
- package/dist/component/{form-element-classes-CLZXu-91.js → form-element-classes-BtKlobUX.js} +60 -59
- package/dist/component/form.css +1 -1
- package/dist/component/form.js +1 -1
- package/dist/component/{header-field-rac-B6DyMG3U.js → header-field-rac-C8FlksmH.js} +3 -3
- package/dist/component/{header-rac-x4H2qMky.js → header-rac-C2J-pLq-.js} +1 -1
- package/dist/component/{image-choice-rac-BVgmKTKk.js → image-choice-rac-i4C_OXyb.js} +16 -16
- package/dist/component/{index-C47UMGhd.js → index-C34urqyX.js} +4 -4
- package/dist/component/{index-DnpqBcg5.js → index-CRI82pG6.js} +2 -2
- package/dist/component/{isObjectLike-BrrFBP4f.js → isObjectLike-D-9JnXmU.js} +1 -1
- package/dist/component/{multiline-address-field-rac-B6ka-2Wy.js → multiline-address-field-rac-Dkfso46f.js} +87 -86
- package/dist/component/{multiline-address-rac-Bh58qUEe.js → multiline-address-rac-BjrwDwOk.js} +1 -1
- package/dist/component/{number-input-field-rac-pAmxvk3A.js → number-input-field-rac-CgHi83Q1.js} +19 -19
- package/dist/component/{number-input-rac-mKA2njIU.js → number-input-rac-BinBxOCS.js} +1 -1
- package/dist/component/{password-rac-BbD7PQXO.js → password-rac-CDGqIRW5.js} +38 -38
- package/dist/component/{payment-input-rac-UdkwC1ek.js → payment-input-rac-f4uuGeJF.js} +23 -23
- package/dist/component/{phone-input-field-rac-BVLVVDTq.js → phone-input-field-rac-IdBqjM9Q.js} +33 -32
- package/dist/component/{phone-rac-LixcB9WV.js → phone-rac-VHPMrSpw.js} +1 -1
- package/dist/component/{product-list-rac-B_dL1Ov-.js → product-list-rac-Bk8q5y5L.js} +17 -17
- package/dist/component/{quiz-radio-group-rac-Bj5XfqNf.js → quiz-radio-group-rac-kTWqvAoW.js} +2 -2
- package/dist/component/{radio-button-module-classes-y_PtsZPP.js → radio-button-module-classes-D77Nc48M.js} +3 -3
- package/dist/component/{radio-group-field-rac-C8OElNAQ.js → radio-group-field-rac-DC-AYSOH.js} +5 -5
- package/dist/component/{radio-group-rac-BqJFboHE.js → radio-group-rac-BkswH1Py.js} +1 -1
- package/dist/component/{rating-input-field-rac-C9_ITvEh.js → rating-input-field-rac-Cqgw6PjV.js} +32 -32
- package/dist/component/{rating-input-rac-CvTpEUoU.js → rating-input-rac-CbZhlK3h.js} +1 -1
- package/dist/component/{rich-content-rac.module-D4pEN-TY.js → rich-content-rac.module-j_9YbXMI.js} +1 -1
- package/dist/component/{rich-text-field-rac-B8cqCmaf.js → rich-text-field-rac-Da1EIb3b.js} +3 -3
- package/dist/component/{rich-text-rac-C1o-tfXG.js → rich-text-rac-BarNBtgP.js} +1 -1
- package/dist/component/{service-dropdown-rac-BOXqB2aq.js → service-dropdown-rac-DLIC_csj.js} +36 -36
- package/dist/component/{services-multi-choice-rac-Dk4rz-fw.js → services-multi-choice-rac-vyxtwSM2.js} +14 -14
- package/dist/component/{signature-rac-h9GWVdez.js → signature-rac-DIM2Uwsg.js} +102 -102
- package/dist/component/{submit-button-rac-qNaTyCxd.js → submit-button-rac-DgxjomCu.js} +2 -2
- package/dist/component/{tags-field-rac-NMRn0YnW.js → tags-field-rac-BFlkxifd.js} +67 -67
- package/dist/component/{tags-rac-DGx4KxEn.js → tags-rac-D4TwrAWc.js} +1 -1
- package/dist/component/{text-area-field-rac-C7u0D4l3.js → text-area-field-rac-Dcz7VUQ5.js} +28 -28
- package/dist/component/{text-area-rac-Yo-RIyLm.js → text-area-rac-DhloXdO2.js} +1 -1
- package/dist/component/{text-input-field-rac-CvU-1clq.js → text-input-field-rac-C8e3TMxI.js} +8 -8
- package/dist/component/{text-input-headless-DLRwVmwf.js → text-input-headless-fl7qoZzR.js} +3 -3
- package/dist/component/{text-input-rac-CWh5xjZA.js → text-input-rac-CBn6bHtP.js} +1 -1
- package/dist/component/{time-input-rac-BZlso9qK.js → time-input-rac-Dsm7_vrf.js} +26 -26
- package/dist/component/{url-input-field-rac-Bax0TB4Q.js → url-input-field-rac-9Hfx1xzO.js} +20 -20
- package/dist/component/{url-input-rac-Bw2nfybR.js → url-input-rac-CVlE4pcg.js} +1 -1
- package/dist/component/use-dropdown-option-class-name-Dsxto42_.js +21 -0
- package/dist/component/{use-element-state-class-name-C0zLrsDR.js → use-element-state-class-name-BIqDbVvI.js} +1 -1
- package/dist/component/use-is-forced-open-dropdown-BMPqRDVW.js +41 -0
- package/dist/component/{use-service-options-base-Bkj6BSQL.js → use-service-options-base-07_rqXcG.js} +1 -1
- package/dist/component/{use-text-input-class-name-Biu89Ma7.js → use-text-input-class-name-DqFt59gd.js} +4 -4
- package/package.json +2 -2
- package/dist/component/date-picker-field-rac-BqdzPPzK.js +0 -304
- package/dist/component/field-rac.module-BUvPquav.js +0 -26
- package/dist/component/use-dropdown-option-class-name-vKSagp3b.js +0 -57
|
@@ -2,21 +2,22 @@ import { RicosViewer as X } from "@wix/ricos/viewer";
|
|
|
2
2
|
import L from "classnames";
|
|
3
3
|
import r, { useMemo as w, createContext as Ue, useContext as Ce, useState as be, useRef as x, useCallback as R, useEffect as Pe } from "react";
|
|
4
4
|
import { UNSAFE_PortalProvider as Pt } from "react-aria";
|
|
5
|
-
import { af as yt, c as Ct, aa as Tt, ac as It, H as Mt, J as qt, v as wt, G as V, F as K, au as Te, a3 as lt, ak as P, ah as T, am as ae, ag as Lt, T as xt, C as ve, a1 as Bt, a5 as kt, ar as $t, al as Wt, aq as Ut, a8 as Vt, Z as Kt, a7 as Yt, an as Ht, j as jt } from "./form-
|
|
5
|
+
import { af as yt, c as Ct, aa as Tt, ac as It, H as Mt, J as qt, v as wt, G as V, F as K, au as Te, a3 as lt, ak as P, ah as T, am as ae, ag as Lt, T as xt, C as ve, a1 as Bt, a5 as kt, ar as $t, al as Wt, aq as Ut, a8 as Vt, Z as Kt, a7 as Yt, an as Ht, j as jt } from "./form-Wsx4lguO.js";
|
|
6
6
|
import { f as E, a as F } from "./find-child-C60k4CxG.js";
|
|
7
7
|
import { F as Jt, V as Gt } from "./headless-styles-CmcyA_pi.js";
|
|
8
|
-
import {
|
|
9
|
-
import { TextField as fe, Input as le, ComboBoxStateContext as Ve, ComboBox as
|
|
10
|
-
import { D as ie, E as ce } from "./field-error-headless-
|
|
11
|
-
import { L as de } from "./field-label-headless-
|
|
12
|
-
import { e as
|
|
13
|
-
import { u as
|
|
8
|
+
import { u as Xt } from "./use-is-forced-open-dropdown-BMPqRDVW.js";
|
|
9
|
+
import { TextField as fe, Input as le, ComboBoxStateContext as Ve, ComboBox as Se, Popover as De, ListBox as Re, ListBoxItem as Ae, Group as Nt, Button as gt } from "react-aria-components";
|
|
10
|
+
import { D as ie, E as ce } from "./field-error-headless-BOlFtckJ.js";
|
|
11
|
+
import { L as de } from "./field-label-headless-Dx3VrM-U.js";
|
|
12
|
+
import { e as zt, c as Qt, a as Zt, r as Ot } from "./isObjectLike-D-9JnXmU.js";
|
|
13
|
+
import { u as en } from "./use-invoke-callback-UH73A_J3.js";
|
|
14
14
|
import { C as it } from "./chevron-down-icon-CcpVm6B-.js";
|
|
15
15
|
import { E as z } from "./error-icon-hZxQ6DEy.js";
|
|
16
16
|
import { H as Me } from "./custom-focus-class-_483Pkwp.js";
|
|
17
|
-
import { s as C } from "./field-rac.module-
|
|
18
|
-
import {
|
|
19
|
-
import { u as
|
|
17
|
+
import { s as C } from "./field-rac.module-DobpyqOd.js";
|
|
18
|
+
import { C as Q, S as Z, n as ct, E as ge, r as ee, j as te } from "./form-element-classes-BtKlobUX.js";
|
|
19
|
+
import { u as tn } from "./use-dropdown-option-class-name-Dsxto42_.js";
|
|
20
|
+
import { u as nn } from "./use-text-input-class-name-DqFt59gd.js";
|
|
20
21
|
const rn = (e, t, o) => {
|
|
21
22
|
var l, a, i, s;
|
|
22
23
|
const n = (l = e.steps) == null ? void 0 : l.map((d) => {
|
|
@@ -183,7 +184,7 @@ const cn = (e, t) => e.map((o) => ({
|
|
|
183
184
|
}, [
|
|
184
185
|
i,
|
|
185
186
|
s
|
|
186
|
-
]),
|
|
187
|
+
]), D = w(() => qt(), []);
|
|
187
188
|
return {
|
|
188
189
|
form: w(() => {
|
|
189
190
|
var _, g;
|
|
@@ -199,7 +200,7 @@ const cn = (e, t) => e.map((o) => ({
|
|
|
199
200
|
includeHiddenFields: !0,
|
|
200
201
|
isMobile: I,
|
|
201
202
|
breakpoint: b,
|
|
202
|
-
form: ln(rn(p, N,
|
|
203
|
+
form: ln(rn(p, N, D), a, (g = (_ = i == null ? void 0 : i.predefined) == null ? void 0 : _.multilineAddressOptions) == null ? void 0 : g.fields)
|
|
203
204
|
});
|
|
204
205
|
if (!O.fields.some((v) => v.properties.hidden))
|
|
205
206
|
return O;
|
|
@@ -216,7 +217,7 @@ const cn = (e, t) => e.map((o) => ({
|
|
|
216
217
|
i,
|
|
217
218
|
t,
|
|
218
219
|
N,
|
|
219
|
-
|
|
220
|
+
D,
|
|
220
221
|
f,
|
|
221
222
|
u,
|
|
222
223
|
e,
|
|
@@ -225,18 +226,18 @@ const cn = (e, t) => e.map((o) => ({
|
|
|
225
226
|
]),
|
|
226
227
|
isMultilineAddressField: f
|
|
227
228
|
};
|
|
228
|
-
},
|
|
229
|
+
}, St = /* @__PURE__ */ Ue(void 0), Cn = ({ children: e, fields: t }) => {
|
|
229
230
|
const o = w(() => ({
|
|
230
231
|
fields: t
|
|
231
232
|
}), [
|
|
232
233
|
t
|
|
233
234
|
]);
|
|
234
|
-
return /* @__PURE__ */ r.createElement(
|
|
235
|
+
return /* @__PURE__ */ r.createElement(St.Provider, {
|
|
235
236
|
value: o
|
|
236
237
|
}, e);
|
|
237
238
|
};
|
|
238
239
|
function ue(e) {
|
|
239
|
-
const t = Ce(
|
|
240
|
+
const t = Ce(St);
|
|
240
241
|
if (!t)
|
|
241
242
|
throw new Error("useAddressFields must be used within AddressFieldsProvider");
|
|
242
243
|
return t.fields[e];
|
|
@@ -313,7 +314,7 @@ var we, dt;
|
|
|
313
314
|
function Ln() {
|
|
314
315
|
if (dt) return we;
|
|
315
316
|
dt = 1;
|
|
316
|
-
var e =
|
|
317
|
+
var e = zt(), t = function() {
|
|
317
318
|
return e.Date.now();
|
|
318
319
|
};
|
|
319
320
|
return we = t, we;
|
|
@@ -344,7 +345,7 @@ var ke, pt;
|
|
|
344
345
|
function On() {
|
|
345
346
|
if (pt) return ke;
|
|
346
347
|
pt = 1;
|
|
347
|
-
var e =
|
|
348
|
+
var e = Qt(), t = Zt(), o = "[object Symbol]";
|
|
348
349
|
function n(l) {
|
|
349
350
|
return typeof l == "symbol" || t(l) && e(l) == o;
|
|
350
351
|
}
|
|
@@ -378,33 +379,33 @@ function Fn() {
|
|
|
378
379
|
bt = 1;
|
|
379
380
|
var e = Ot(), t = Ln(), o = vn(), n = "Expected a function", l = Math.max, a = Math.min;
|
|
380
381
|
function i(s, d, m) {
|
|
381
|
-
var u, y, I, b, p, f, N = 0,
|
|
382
|
+
var u, y, I, b, p, f, N = 0, D = !1, h = !1, O = !0;
|
|
382
383
|
if (typeof s != "function")
|
|
383
384
|
throw new TypeError(n);
|
|
384
|
-
d = o(d) || 0, e(m) && (
|
|
385
|
-
function A(
|
|
385
|
+
d = o(d) || 0, e(m) && (D = !!m.leading, h = "maxWait" in m, I = h ? l(o(m.maxWait) || 0, d) : I, O = "trailing" in m ? !!m.trailing : O);
|
|
386
|
+
function A(S) {
|
|
386
387
|
var J = u, Ee = y;
|
|
387
|
-
return u = y = void 0, N =
|
|
388
|
+
return u = y = void 0, N = S, b = s.apply(Ee, J), b;
|
|
388
389
|
}
|
|
389
|
-
function M(
|
|
390
|
-
return N =
|
|
390
|
+
function M(S) {
|
|
391
|
+
return N = S, p = setTimeout(v, d), D ? A(S) : b;
|
|
391
392
|
}
|
|
392
|
-
function _(
|
|
393
|
-
var J =
|
|
393
|
+
function _(S) {
|
|
394
|
+
var J = S - f, Ee = S - N, Ne = d - J;
|
|
394
395
|
return h ? a(Ne, I - Ee) : Ne;
|
|
395
396
|
}
|
|
396
|
-
function g(
|
|
397
|
-
var J =
|
|
397
|
+
function g(S) {
|
|
398
|
+
var J = S - f, Ee = S - N;
|
|
398
399
|
return f === void 0 || J >= d || J < 0 || h && Ee >= I;
|
|
399
400
|
}
|
|
400
401
|
function v() {
|
|
401
|
-
var
|
|
402
|
-
if (g(
|
|
403
|
-
return me(
|
|
404
|
-
p = setTimeout(v, _(
|
|
402
|
+
var S = t();
|
|
403
|
+
if (g(S))
|
|
404
|
+
return me(S);
|
|
405
|
+
p = setTimeout(v, _(S));
|
|
405
406
|
}
|
|
406
|
-
function me(
|
|
407
|
-
return p = void 0, O && u ? A(
|
|
407
|
+
function me(S) {
|
|
408
|
+
return p = void 0, O && u ? A(S) : (u = y = void 0, b);
|
|
408
409
|
}
|
|
409
410
|
function j() {
|
|
410
411
|
p !== void 0 && clearTimeout(p), N = 0, u = f = y = p = void 0;
|
|
@@ -413,8 +414,8 @@ function Fn() {
|
|
|
413
414
|
return p === void 0 ? b : me(t());
|
|
414
415
|
}
|
|
415
416
|
function q() {
|
|
416
|
-
var
|
|
417
|
-
if (u = arguments, y = this, f =
|
|
417
|
+
var S = t(), J = g(S);
|
|
418
|
+
if (u = arguments, y = this, f = S, J) {
|
|
418
419
|
if (p === void 0)
|
|
419
420
|
return M(f);
|
|
420
421
|
if (h)
|
|
@@ -427,8 +428,8 @@ function Fn() {
|
|
|
427
428
|
return We = i, We;
|
|
428
429
|
}
|
|
429
430
|
var hn = Fn();
|
|
430
|
-
const
|
|
431
|
-
const n = x(e), l = R(
|
|
431
|
+
const Sn = /* @__PURE__ */ xt(hn), Dn = (e, t, o = 200) => {
|
|
432
|
+
const n = x(e), l = R(Sn((...a) => {
|
|
432
433
|
n.current(...a);
|
|
433
434
|
}, o), [
|
|
434
435
|
o
|
|
@@ -447,10 +448,10 @@ const Dn = /* @__PURE__ */ xt(hn), Sn = (e, t, o = 200) => {
|
|
|
447
448
|
}, ft = {
|
|
448
449
|
loading: !1,
|
|
449
450
|
predictions: []
|
|
450
|
-
},
|
|
451
|
+
}, Dt = ({ atlas: e, onError: t }) => {
|
|
451
452
|
const [{ loading: n, predictions: l }, a] = be(ft), i = x(0), s = Rn(), d = R(() => {
|
|
452
453
|
i.current++, a(ft);
|
|
453
|
-
}, []), m =
|
|
454
|
+
}, []), m = Dn(async ({ input: u, countryCodes: y }) => {
|
|
454
455
|
if (!e || !s())
|
|
455
456
|
return;
|
|
456
457
|
if (!u) {
|
|
@@ -501,7 +502,7 @@ const Dn = /* @__PURE__ */ xt(hn), Sn = (e, t, o = 200) => {
|
|
|
501
502
|
e
|
|
502
503
|
]), null;
|
|
503
504
|
}, k = ({ children: e }) => {
|
|
504
|
-
const { id: t, value: o, onChange: n, disabled: l, readOnly: a, required: i, hasError: s, onBlur: d, onFocus: m, FieldLayout: u, autocomplete: y } = P(), { labelId: I } = T(), { autocompleteEnabled: b } = Ie(), p = y || b, f = pe("addressLine1"), N = E(e, k.Label),
|
|
505
|
+
const { id: t, value: o, onChange: n, disabled: l, readOnly: a, required: i, hasError: s, onBlur: d, onFocus: m, FieldLayout: u, autocomplete: y } = P(), { labelId: I } = T(), { autocompleteEnabled: b } = Ie(), p = y || b, f = pe("addressLine1"), N = E(e, k.Label), D = E(e, k.Input), h = E(e, k.Options), O = E(e, k.Description), A = E(e, k.Error);
|
|
505
506
|
return p ? /* @__PURE__ */ r.createElement(u, {
|
|
506
507
|
fieldId: t,
|
|
507
508
|
renderLabel: () => F(N, {
|
|
@@ -516,7 +517,7 @@ const Dn = /* @__PURE__ */ xt(hn), Sn = (e, t, o = 200) => {
|
|
|
516
517
|
hasError: s,
|
|
517
518
|
onBlur: d,
|
|
518
519
|
onFocus: m
|
|
519
|
-
},
|
|
520
|
+
}, D, h),
|
|
520
521
|
renderDescription: () => /* @__PURE__ */ r.createElement(r.Fragment, null, A, O)
|
|
521
522
|
}) : /* @__PURE__ */ r.createElement(u, {
|
|
522
523
|
fieldId: t,
|
|
@@ -533,20 +534,20 @@ const Dn = /* @__PURE__ */ xt(hn), Sn = (e, t, o = 200) => {
|
|
|
533
534
|
isInvalid: s,
|
|
534
535
|
onBlur: d,
|
|
535
536
|
onFocus: m
|
|
536
|
-
},
|
|
537
|
+
}, D),
|
|
537
538
|
renderDescription: () => /* @__PURE__ */ r.createElement(r.Fragment, null, A, O)
|
|
538
539
|
});
|
|
539
540
|
}, An = ({ children: e, value: t, onChange: o, disabled: n, readOnly: l, required: a, hasError: i, onBlur: s, onFocus: d }) => {
|
|
540
541
|
const { labelId: m } = T(), { onAddressSelect: u } = Ie(), y = Le(), I = Ke({
|
|
541
542
|
enabled: !0
|
|
542
|
-
}), { predictions: b, updatePredictions: p, clearPredictions: f } =
|
|
543
|
+
}), { predictions: b, updatePredictions: p, clearPredictions: f } = Dt({
|
|
543
544
|
atlas: I
|
|
544
545
|
}), N = w(() => b.map((g) => ({
|
|
545
546
|
id: g.searchId || "",
|
|
546
547
|
label: g.description || ""
|
|
547
548
|
})), [
|
|
548
549
|
b
|
|
549
|
-
]),
|
|
550
|
+
]), D = R((g) => {
|
|
550
551
|
p({
|
|
551
552
|
input: g,
|
|
552
553
|
countryCodes: y ? [
|
|
@@ -579,10 +580,10 @@ const Dn = /* @__PURE__ */ xt(hn), Sn = (e, t, o = 200) => {
|
|
|
579
580
|
}, [
|
|
580
581
|
d
|
|
581
582
|
]), M = E(e, k.Input), _ = E(e, k.Options);
|
|
582
|
-
return /* @__PURE__ */ r.createElement(
|
|
583
|
+
return /* @__PURE__ */ r.createElement(Se, {
|
|
583
584
|
"aria-labelledby": m,
|
|
584
585
|
inputValue: t ?? "",
|
|
585
|
-
onInputChange:
|
|
586
|
+
onInputChange: D,
|
|
586
587
|
value: null,
|
|
587
588
|
onChange: h,
|
|
588
589
|
isDisabled: n,
|
|
@@ -616,7 +617,7 @@ const Dn = /* @__PURE__ */ xt(hn), Sn = (e, t, o = 200) => {
|
|
|
616
617
|
});
|
|
617
618
|
}, He = ({ children: e, className: t }) => {
|
|
618
619
|
const o = E(e, He.Option);
|
|
619
|
-
return /* @__PURE__ */ r.createElement(
|
|
620
|
+
return /* @__PURE__ */ r.createElement(De, {
|
|
620
621
|
className: t,
|
|
621
622
|
containerPadding: 0,
|
|
622
623
|
offset: 0
|
|
@@ -641,7 +642,7 @@ k.Options = He;
|
|
|
641
642
|
k.Description = ie;
|
|
642
643
|
k.Error = ce;
|
|
643
644
|
const re = ({ children: e }) => {
|
|
644
|
-
const { id: t, value: o, onChange: n, disabled: l, readOnly: a, required: i, hasError: s, onBlur: d, onFocus: m, FieldLayout: u } = P(), { labelId: y } = T(), { t: I } = Te(), b = I("field.mla-apartment.label"), p = E(e, re.Label), f = E(e, re.Input), N = E(e, re.Description),
|
|
645
|
+
const { id: t, value: o, onChange: n, disabled: l, readOnly: a, required: i, hasError: s, onBlur: d, onFocus: m, FieldLayout: u } = P(), { labelId: y } = T(), { t: I } = Te(), b = I("field.mla-apartment.label"), p = E(e, re.Label), f = E(e, re.Input), N = E(e, re.Description), D = E(e, re.Error);
|
|
645
646
|
return /* @__PURE__ */ r.createElement(u, {
|
|
646
647
|
fieldId: t,
|
|
647
648
|
renderLabel: () => F(p, {
|
|
@@ -658,7 +659,7 @@ const re = ({ children: e }) => {
|
|
|
658
659
|
onBlur: d,
|
|
659
660
|
onFocus: m
|
|
660
661
|
}, f),
|
|
661
|
-
renderDescription: () => /* @__PURE__ */ r.createElement(r.Fragment, null,
|
|
662
|
+
renderDescription: () => /* @__PURE__ */ r.createElement(r.Fragment, null, D, N)
|
|
662
663
|
});
|
|
663
664
|
}, Tn = ({ className: e }) => {
|
|
664
665
|
const { id: t, placeholder: o } = P(), { inputId: n, ariaDescribedBy: l } = T(), a = x(null);
|
|
@@ -732,7 +733,7 @@ const qn = ({ isOpen: e }) => {
|
|
|
732
733
|
t
|
|
733
734
|
]);
|
|
734
735
|
}, wn = (e, t) => e.find((o) => o.label.toLocaleLowerCase() === t.toLocaleLowerCase().trim()), At = ({ options: e, value: t, commit: o, clear: n, onBlur: l }) => {
|
|
735
|
-
const [a, i] = be(null), s =
|
|
736
|
+
const [a, i] = be(null), s = en(l), d = w(() => {
|
|
736
737
|
var b;
|
|
737
738
|
return t ? ((b = e.find((p) => p.value === t)) == null ? void 0 : b.label) ?? "" : "";
|
|
738
739
|
}, [
|
|
@@ -775,10 +776,10 @@ const qn = ({ isOpen: e }) => {
|
|
|
775
776
|
onInputKeyDown: y
|
|
776
777
|
};
|
|
777
778
|
}, Y = ({ children: e, ...t }) => {
|
|
778
|
-
const { isForcedOpen: o = !1 } = t, { id: n, value: l, onChange: a, disabled: i, readOnly: s, required: d, hasError: m, onBlur: u, onFocus: y, FieldLayout: I, options: b } = P(), { labelId: p } = T(), { t: f } = Te(), { language: N } = It(),
|
|
779
|
-
value:
|
|
780
|
-
label: f(`locale-dataset.countries.${ve[
|
|
781
|
-
}), q), []).sort((q,
|
|
779
|
+
const { isForcedOpen: o = !1 } = t, { id: n, value: l, onChange: a, disabled: i, readOnly: s, required: d, hasError: m, onBlur: u, onFocus: y, FieldLayout: I, options: b } = P(), { labelId: p } = T(), { t: f } = Te(), { language: N } = It(), D = w(() => (b || []).reduce((q, S) => (S.value && ve.hasOwnProperty(S.value) && q.push({
|
|
780
|
+
value: S.value,
|
|
781
|
+
label: f(`locale-dataset.countries.${ve[S.value].toUpperCase()}`)
|
|
782
|
+
}), q), []).sort((q, S) => q.label.localeCompare(S.label, N)), [
|
|
782
783
|
b,
|
|
783
784
|
f,
|
|
784
785
|
N
|
|
@@ -787,7 +788,7 @@ const qn = ({ isOpen: e }) => {
|
|
|
787
788
|
]), O = R(() => h(""), [
|
|
788
789
|
h
|
|
789
790
|
]), { onInputKeyDown: A, ...M } = At({
|
|
790
|
-
options:
|
|
791
|
+
options: D,
|
|
791
792
|
value: l,
|
|
792
793
|
commit: h,
|
|
793
794
|
clear: O,
|
|
@@ -798,7 +799,7 @@ const qn = ({ isOpen: e }) => {
|
|
|
798
799
|
renderLabel: () => F(g, {
|
|
799
800
|
label: _
|
|
800
801
|
}),
|
|
801
|
-
renderInput: () => /* @__PURE__ */ r.createElement(
|
|
802
|
+
renderInput: () => /* @__PURE__ */ r.createElement(Se, {
|
|
802
803
|
"aria-labelledby": p,
|
|
803
804
|
...M,
|
|
804
805
|
isDisabled: i,
|
|
@@ -810,7 +811,7 @@ const qn = ({ isOpen: e }) => {
|
|
|
810
811
|
}, F(v, {
|
|
811
812
|
onKeyDown: A
|
|
812
813
|
}), F(me, {
|
|
813
|
-
options:
|
|
814
|
+
options: D
|
|
814
815
|
}), /* @__PURE__ */ r.createElement(qn, {
|
|
815
816
|
isOpen: o
|
|
816
817
|
})),
|
|
@@ -849,7 +850,7 @@ Fe.Input = xn;
|
|
|
849
850
|
Fe.Trigger = Bn;
|
|
850
851
|
const je = ({ children: e, className: t, ...o }) => {
|
|
851
852
|
const { options: n } = o, l = E(e, je.Option);
|
|
852
|
-
return /* @__PURE__ */ r.createElement(
|
|
853
|
+
return /* @__PURE__ */ r.createElement(De, {
|
|
853
854
|
className: t,
|
|
854
855
|
containerPadding: 0,
|
|
855
856
|
offset: 0
|
|
@@ -910,11 +911,11 @@ function Un({ isAutocompleteEnabled: e }) {
|
|
|
910
911
|
};
|
|
911
912
|
}
|
|
912
913
|
const $ = ({ children: e }) => {
|
|
913
|
-
const { id: t, value: o, onChange: n, disabled: l, readOnly: a, required: i, hasError: s, onBlur: d, onFocus: m, FieldLayout: u, autocomplete: y } = P(), { labelId: I } = T(), b = Le(), { autocompleteEnabled: p } = Ie(), f = !!(b && ve[b] === ve.JP), N = (y || p) && f,
|
|
914
|
+
const { id: t, value: o, onChange: n, disabled: l, readOnly: a, required: i, hasError: s, onBlur: d, onFocus: m, FieldLayout: u, autocomplete: y } = P(), { labelId: I } = T(), b = Le(), { autocompleteEnabled: p } = Ie(), f = !!(b && ve[b] === ve.JP), N = (y || p) && f, D = pe("zipCode"), h = E(e, $.Label), O = E(e, $.Control), A = E(e, $.Options), M = E(e, $.Description), _ = E(e, $.Error);
|
|
914
915
|
return N ? /* @__PURE__ */ r.createElement(u, {
|
|
915
916
|
fieldId: t,
|
|
916
917
|
renderLabel: () => F(h, {
|
|
917
|
-
label:
|
|
918
|
+
label: D
|
|
918
919
|
}),
|
|
919
920
|
renderInput: () => /* @__PURE__ */ r.createElement(Vn, {
|
|
920
921
|
value: o,
|
|
@@ -930,7 +931,7 @@ const $ = ({ children: e }) => {
|
|
|
930
931
|
}) : /* @__PURE__ */ r.createElement(u, {
|
|
931
932
|
fieldId: t,
|
|
932
933
|
renderLabel: () => F(h, {
|
|
933
|
-
label:
|
|
934
|
+
label: D
|
|
934
935
|
}),
|
|
935
936
|
renderInput: () => /* @__PURE__ */ r.createElement(fe, {
|
|
936
937
|
"aria-labelledby": I,
|
|
@@ -955,7 +956,7 @@ const $ = ({ children: e }) => {
|
|
|
955
956
|
}
|
|
956
957
|
] : [], [
|
|
957
958
|
p
|
|
958
|
-
]),
|
|
959
|
+
]), D = R(async (g) => {
|
|
959
960
|
o(g);
|
|
960
961
|
const v = await b(g ?? "");
|
|
961
962
|
f(v);
|
|
@@ -976,10 +977,10 @@ const $ = ({ children: e }) => {
|
|
|
976
977
|
}, [
|
|
977
978
|
d
|
|
978
979
|
]), M = E(e, $.Control), _ = E(e, $.Options);
|
|
979
|
-
return /* @__PURE__ */ r.createElement(
|
|
980
|
+
return /* @__PURE__ */ r.createElement(Se, {
|
|
980
981
|
"aria-labelledby": m,
|
|
981
982
|
inputValue: t ?? "",
|
|
982
|
-
onInputChange:
|
|
983
|
+
onInputChange: D,
|
|
983
984
|
value: null,
|
|
984
985
|
onChange: h,
|
|
985
986
|
isDisabled: n,
|
|
@@ -1023,7 +1024,7 @@ const $ = ({ children: e }) => {
|
|
|
1023
1024
|
});
|
|
1024
1025
|
}, Ge = ({ children: e, className: t }) => {
|
|
1025
1026
|
const o = E(e, Ge.Option);
|
|
1026
|
-
return /* @__PURE__ */ r.createElement(
|
|
1027
|
+
return /* @__PURE__ */ r.createElement(De, {
|
|
1027
1028
|
className: t,
|
|
1028
1029
|
containerPadding: 0,
|
|
1029
1030
|
offset: 0
|
|
@@ -1049,7 +1050,7 @@ $.Options = Ge;
|
|
|
1049
1050
|
$.Description = ie;
|
|
1050
1051
|
$.Error = ce;
|
|
1051
1052
|
const W = ({ children: e }) => {
|
|
1052
|
-
const { id: t, value: o, onChange: n, disabled: l, readOnly: a, required: i, hasError: s, onBlur: d, onFocus: m, FieldLayout: u, autocomplete: y } = P(), { labelId: I } = T(), { autocompleteEnabled: b } = Ie(), p = y || b, f = pe("streetName"), N = E(e, W.Label),
|
|
1053
|
+
const { id: t, value: o, onChange: n, disabled: l, readOnly: a, required: i, hasError: s, onBlur: d, onFocus: m, FieldLayout: u, autocomplete: y } = P(), { labelId: I } = T(), { autocompleteEnabled: b } = Ie(), p = y || b, f = pe("streetName"), N = E(e, W.Label), D = E(e, W.Input), h = E(e, W.Options), O = E(e, W.Description), A = E(e, W.Error);
|
|
1053
1054
|
return p ? /* @__PURE__ */ r.createElement(u, {
|
|
1054
1055
|
fieldId: t,
|
|
1055
1056
|
renderLabel: () => F(N, {
|
|
@@ -1064,7 +1065,7 @@ const W = ({ children: e }) => {
|
|
|
1064
1065
|
hasError: s,
|
|
1065
1066
|
onBlur: d,
|
|
1066
1067
|
onFocus: m
|
|
1067
|
-
},
|
|
1068
|
+
}, D, h),
|
|
1068
1069
|
renderDescription: () => /* @__PURE__ */ r.createElement(r.Fragment, null, A, O)
|
|
1069
1070
|
}) : /* @__PURE__ */ r.createElement(u, {
|
|
1070
1071
|
fieldId: t,
|
|
@@ -1081,15 +1082,15 @@ const W = ({ children: e }) => {
|
|
|
1081
1082
|
isInvalid: s,
|
|
1082
1083
|
onBlur: d,
|
|
1083
1084
|
onFocus: m
|
|
1084
|
-
},
|
|
1085
|
+
}, D),
|
|
1085
1086
|
renderDescription: () => /* @__PURE__ */ r.createElement(r.Fragment, null, A, O)
|
|
1086
1087
|
});
|
|
1087
1088
|
}, Hn = ({ children: e, value: t, onChange: o, disabled: n, readOnly: l, required: a, hasError: i, onBlur: s, onFocus: d }) => {
|
|
1088
1089
|
const { labelId: m } = T(), { onAddressSelect: u } = Ie(), y = Le(), I = Ke({
|
|
1089
1090
|
enabled: !0
|
|
1090
|
-
}), { predictions: b, updatePredictions: p, clearPredictions: f } =
|
|
1091
|
+
}), { predictions: b, updatePredictions: p, clearPredictions: f } = Dt({
|
|
1091
1092
|
atlas: I
|
|
1092
|
-
}), N = E(e, W.Input),
|
|
1093
|
+
}), N = E(e, W.Input), D = E(e, W.Options), h = w(() => b.reduce((g, v) => (v.searchId && v.description && g.push({
|
|
1093
1094
|
id: v.searchId,
|
|
1094
1095
|
label: v.description
|
|
1095
1096
|
}), g), []), [
|
|
@@ -1126,7 +1127,7 @@ const W = ({ children: e }) => {
|
|
|
1126
1127
|
}, [
|
|
1127
1128
|
d
|
|
1128
1129
|
]);
|
|
1129
|
-
return /* @__PURE__ */ r.createElement(
|
|
1130
|
+
return /* @__PURE__ */ r.createElement(Se, {
|
|
1130
1131
|
"aria-labelledby": m,
|
|
1131
1132
|
inputValue: t ?? "",
|
|
1132
1133
|
onInputChange: O,
|
|
@@ -1143,7 +1144,7 @@ const W = ({ children: e }) => {
|
|
|
1143
1144
|
items: h
|
|
1144
1145
|
}, F(N, {
|
|
1145
1146
|
onFocus: _
|
|
1146
|
-
}), F(
|
|
1147
|
+
}), F(D, {
|
|
1147
1148
|
options: h
|
|
1148
1149
|
}), /* @__PURE__ */ r.createElement(Ye, {
|
|
1149
1150
|
optionCount: h.length
|
|
@@ -1163,7 +1164,7 @@ const W = ({ children: e }) => {
|
|
|
1163
1164
|
});
|
|
1164
1165
|
}, Xe = ({ children: e, className: t }) => {
|
|
1165
1166
|
const o = E(e, Xe.Option);
|
|
1166
|
-
return /* @__PURE__ */ r.createElement(
|
|
1167
|
+
return /* @__PURE__ */ r.createElement(De, {
|
|
1167
1168
|
className: t,
|
|
1168
1169
|
containerPadding: 0,
|
|
1169
1170
|
offset: 0
|
|
@@ -1230,18 +1231,18 @@ const H = ({ children: e }) => {
|
|
|
1230
1231
|
return (kt(((B = f == null ? void 0 : f.subdivisions) == null ? void 0 : B.list) || [], p) || []).map((q) => ({
|
|
1231
1232
|
value: q.key,
|
|
1232
1233
|
label: I(q.displayName)
|
|
1233
|
-
})).sort((q,
|
|
1234
|
+
})).sort((q, S) => q.label.localeCompare(S.label));
|
|
1234
1235
|
}, [
|
|
1235
1236
|
p,
|
|
1236
1237
|
I,
|
|
1237
1238
|
f
|
|
1238
|
-
]),
|
|
1239
|
+
]), D = R(() => n(""), [
|
|
1239
1240
|
n
|
|
1240
1241
|
]), { onInputKeyDown: h, ...O } = At({
|
|
1241
1242
|
options: N,
|
|
1242
1243
|
value: o,
|
|
1243
1244
|
commit: n,
|
|
1244
|
-
clear:
|
|
1245
|
+
clear: D,
|
|
1245
1246
|
onBlur: d
|
|
1246
1247
|
}), A = pe("subdivision"), M = E(e, H.Label), _ = E(e, H.Control), g = E(e, H.Options), v = E(e, H.Description), me = E(e, H.Error);
|
|
1247
1248
|
return /* @__PURE__ */ r.createElement(u, {
|
|
@@ -1249,7 +1250,7 @@ const H = ({ children: e }) => {
|
|
|
1249
1250
|
renderLabel: () => F(M, {
|
|
1250
1251
|
label: A
|
|
1251
1252
|
}),
|
|
1252
|
-
renderInput: () => /* @__PURE__ */ r.createElement(
|
|
1253
|
+
renderInput: () => /* @__PURE__ */ r.createElement(Se, {
|
|
1253
1254
|
"aria-labelledby": y,
|
|
1254
1255
|
...O,
|
|
1255
1256
|
isDisabled: l,
|
|
@@ -1298,7 +1299,7 @@ he.Input = Xn;
|
|
|
1298
1299
|
he.Trigger = zn;
|
|
1299
1300
|
const ze = ({ children: e, className: t, ...o }) => {
|
|
1300
1301
|
const { options: n } = o, l = E(e, ze.Option);
|
|
1301
|
-
return /* @__PURE__ */ r.createElement(
|
|
1302
|
+
return /* @__PURE__ */ r.createElement(De, {
|
|
1302
1303
|
className: t,
|
|
1303
1304
|
containerPadding: 0,
|
|
1304
1305
|
offset: 0
|
|
@@ -1332,7 +1333,7 @@ const Zn = () => ue("country"), er = () => ue("subdivision"), tr = () => ue("cit
|
|
|
1332
1333
|
[K.MLA_STREET_NUMBER]: ar,
|
|
1333
1334
|
[K.MLA_APARTMENT]: lr
|
|
1334
1335
|
}, cr = {}, dr = [], c = ({ children: e }) => {
|
|
1335
|
-
const { id: t, form: o, value: n, onChange: l, onFieldBlur: a, onFieldFocus: i, errors: s, FieldLayout: d, fieldSettings: m, label: u, validation: y, target: I, autocompleteEnabled: b, required: p, fieldType: f } = P(), [N,
|
|
1336
|
+
const { id: t, form: o, value: n, onChange: l, onFieldBlur: a, onFieldFocus: i, errors: s, FieldLayout: d, fieldSettings: m, label: u, validation: y, target: I, autocompleteEnabled: b, required: p, fieldType: f } = P(), [N, D] = be(null), h = $t(), O = w(() => ({
|
|
1336
1337
|
...h,
|
|
1337
1338
|
...ir
|
|
1338
1339
|
}), [
|
|
@@ -1369,7 +1370,7 @@ const Zn = () => ue("country"), er = () => ue("subdivision"), tr = () => ue("cit
|
|
|
1369
1370
|
n,
|
|
1370
1371
|
B,
|
|
1371
1372
|
M
|
|
1372
|
-
]),
|
|
1373
|
+
]), S = R((U, G) => {
|
|
1373
1374
|
if (B && U === ye.COUNTRY && (n == null ? void 0 : n[U]) !== G) {
|
|
1374
1375
|
l == null || l({
|
|
1375
1376
|
[ye.COUNTRY]: G
|
|
@@ -1434,7 +1435,7 @@ const Zn = () => ue("country"), er = () => ue("subdivision"), tr = () => ue("cit
|
|
|
1434
1435
|
}, /* @__PURE__ */ r.createElement(Cn, {
|
|
1435
1436
|
fields: _t
|
|
1436
1437
|
}, /* @__PURE__ */ r.createElement("div", {
|
|
1437
|
-
ref:
|
|
1438
|
+
ref: D,
|
|
1438
1439
|
style: {
|
|
1439
1440
|
display: "contents"
|
|
1440
1441
|
}
|
|
@@ -1448,7 +1449,7 @@ const Zn = () => ue("country"), er = () => ue("subdivision"), tr = () => ue("cit
|
|
|
1448
1449
|
formSchema: g,
|
|
1449
1450
|
form: j,
|
|
1450
1451
|
values: n ?? cr,
|
|
1451
|
-
onFieldChange:
|
|
1452
|
+
onFieldChange: S,
|
|
1452
1453
|
onBlur: a,
|
|
1453
1454
|
onFocus: i,
|
|
1454
1455
|
errors: s ?? dr,
|
|
@@ -1470,8 +1471,8 @@ const ur = "_postalCodeControl_1tire_1", mr = "_comboControl_1tire_5", pr = "_co
|
|
|
1470
1471
|
postalCodeControl: ur,
|
|
1471
1472
|
comboControl: mr,
|
|
1472
1473
|
comboTrigger: pr
|
|
1473
|
-
},
|
|
1474
|
-
const e = nn(), t =
|
|
1474
|
+
}, Mr = () => {
|
|
1475
|
+
const e = nn(), t = tn(Me);
|
|
1475
1476
|
return /* @__PURE__ */ r.createElement(c, null, /* @__PURE__ */ r.createElement(c.Country, null, /* @__PURE__ */ r.createElement(c.Country.Label, {
|
|
1476
1477
|
className: L(Q, C.label)
|
|
1477
1478
|
}, /* @__PURE__ */ r.createElement(c.Country.Label.Required, {
|
|
@@ -1626,5 +1627,5 @@ const ur = "_postalCodeControl_1tire_1", mr = "_comboControl_1tire_5", pr = "_co
|
|
|
1626
1627
|
}))));
|
|
1627
1628
|
};
|
|
1628
1629
|
export {
|
|
1629
|
-
|
|
1630
|
+
Mr as M
|
|
1630
1631
|
};
|
package/dist/component/{number-input-field-rac-pAmxvk3A.js → number-input-field-rac-CgHi83Q1.js}
RENAMED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { RicosViewer as P } from "@wix/ricos/viewer";
|
|
2
2
|
import i from "classnames";
|
|
3
|
-
import r, { useState as
|
|
3
|
+
import r, { useState as j, useCallback as Q, useEffect as U, useRef as $ } from "react";
|
|
4
4
|
import { NumberField as z, Input as G } from "react-aria-components";
|
|
5
|
-
import { ak as _, ah as S, au as H, am as J } from "./form-
|
|
5
|
+
import { ak as _, ah as S, au as H, am as J } from "./form-Wsx4lguO.js";
|
|
6
6
|
import { f as c } from "./find-child-C60k4CxG.js";
|
|
7
|
-
import { D as K, E as W } from "./field-error-headless-
|
|
8
|
-
import { L as X } from "./field-label-headless-
|
|
7
|
+
import { D as K, E as W } from "./field-error-headless-BOlFtckJ.js";
|
|
8
|
+
import { L as X } from "./field-label-headless-Dx3VrM-U.js";
|
|
9
9
|
import { g as Y, c as Z } from "./numeric-input-utils-CuBMi4-a.js";
|
|
10
10
|
import { u as w } from "./use-invoke-callback-UH73A_J3.js";
|
|
11
11
|
import { E as ee } from "./error-icon-hZxQ6DEy.js";
|
|
12
|
-
import { s as p } from "./field-rac.module-
|
|
13
|
-
import {
|
|
14
|
-
import { u as se } from "./use-text-input-class-name-
|
|
12
|
+
import { s as p } from "./field-rac.module-DobpyqOd.js";
|
|
13
|
+
import { C as re, S as te, r as ae, j as ne } from "./form-element-classes-BtKlobUX.js";
|
|
14
|
+
import { u as se } from "./use-text-input-class-name-DqFt59gd.js";
|
|
15
15
|
const e = ({ children: t }) => {
|
|
16
|
-
var F,
|
|
17
|
-
const { id: n, value: s, onChange: l, disabled: d, required: E, readOnly: o, onBlur: b, onFocus: f, FieldLayout: m, hasError: u, validation: a } = _(), { labelId: y } = S(), D = ((F = a == null ? void 0 : a.number) == null ? void 0 : F.multipleOf) || 1, A = (
|
|
16
|
+
var F, L, R;
|
|
17
|
+
const { id: n, value: s, onChange: l, disabled: d, required: E, readOnly: o, onBlur: b, onFocus: f, FieldLayout: m, hasError: u, validation: a } = _(), { labelId: y } = S(), D = ((F = a == null ? void 0 : a.number) == null ? void 0 : F.multipleOf) || 1, A = (L = a == null ? void 0 : a.number) == null ? void 0 : L.maximum, g = (R = a == null ? void 0 : a.number) == null ? void 0 : R.minimum, h = O(s), [x, I] = j(h), T = w(b), V = c(t, e.Label), k = c(t, e.Input), q = c(t, e.Description), M = c(t, e.Error), B = Q((N) => {
|
|
18
18
|
if (N === void 0 || Number.isNaN(N)) {
|
|
19
19
|
l(""), I(NaN);
|
|
20
20
|
return;
|
|
@@ -25,33 +25,33 @@ const e = ({ children: t }) => {
|
|
|
25
25
|
D,
|
|
26
26
|
l
|
|
27
27
|
]);
|
|
28
|
-
return
|
|
28
|
+
return U(() => {
|
|
29
29
|
I(O(s));
|
|
30
30
|
}, [
|
|
31
31
|
s
|
|
32
32
|
]), /* @__PURE__ */ r.createElement(m, {
|
|
33
33
|
fieldId: n,
|
|
34
|
-
renderLabel: () =>
|
|
34
|
+
renderLabel: () => V,
|
|
35
35
|
renderInput: () => /* @__PURE__ */ r.createElement(z, {
|
|
36
36
|
"aria-labelledby": y,
|
|
37
|
-
value:
|
|
38
|
-
onChange:
|
|
37
|
+
value: x,
|
|
38
|
+
onChange: B,
|
|
39
39
|
isDisabled: d,
|
|
40
40
|
isRequired: E,
|
|
41
41
|
isReadOnly: o,
|
|
42
42
|
isInvalid: u,
|
|
43
|
-
onBlur:
|
|
43
|
+
onBlur: T,
|
|
44
44
|
onFocus: f,
|
|
45
45
|
minValue: g ?? void 0,
|
|
46
46
|
maxValue: A ?? void 0
|
|
47
|
-
},
|
|
48
|
-
renderDescription: () => /* @__PURE__ */ r.createElement(r.Fragment, null,
|
|
47
|
+
}, k),
|
|
48
|
+
renderDescription: () => /* @__PURE__ */ r.createElement(r.Fragment, null, M, q)
|
|
49
49
|
});
|
|
50
50
|
}, le = ({ className: t }) => {
|
|
51
51
|
var u;
|
|
52
52
|
const { t: n } = H(), { inputId: s, ariaDescribedBy: l } = S(), { id: d, placeholder: E, validation: o, label: b, required: f } = _();
|
|
53
53
|
(u = o == null ? void 0 : o.number) != null && u.multipleOf;
|
|
54
|
-
const m =
|
|
54
|
+
const m = $(null);
|
|
55
55
|
return J(() => {
|
|
56
56
|
var a;
|
|
57
57
|
(a = m.current) == null || a.focus();
|
|
@@ -74,7 +74,7 @@ e.Error = W;
|
|
|
74
74
|
const O = (t) => Z(t) ?? NaN, oe = ({ content: t, locale: n }) => /* @__PURE__ */ r.createElement(P, {
|
|
75
75
|
content: t,
|
|
76
76
|
locale: n
|
|
77
|
-
}),
|
|
77
|
+
}), Re = () => {
|
|
78
78
|
const t = se();
|
|
79
79
|
return /* @__PURE__ */ r.createElement(e, null, /* @__PURE__ */ r.createElement(e.Label, {
|
|
80
80
|
className: i(re, p.label)
|
|
@@ -89,5 +89,5 @@ const O = (t) => Z(t) ?? NaN, oe = ({ content: t, locale: n }) => /* @__PURE__ *
|
|
|
89
89
|
}, oe));
|
|
90
90
|
};
|
|
91
91
|
export {
|
|
92
|
-
|
|
92
|
+
Re as N
|
|
93
93
|
};
|