@wix/form-elements 1.161.0 → 1.162.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-BubC8I9X.js → appointment-rac-3Z1wiBX6.js} +123 -123
- package/dist/component/{bookings-address-rac-BbwvVs86.js → bookings-address-rac-2zV-a8SW.js} +1 -1
- package/dist/component/{bookings-email-rac-C2HCkcfa.js → bookings-email-rac-C1WakVnh.js} +1 -1
- package/dist/component/{bookings-first-name-rac-Uy7c5EBs.js → bookings-first-name-rac-6f18uXA0.js} +1 -1
- package/dist/component/{bookings-header-rac-nmwsWRjS.js → bookings-header-rac-BeaxlPQl.js} +1 -1
- package/dist/component/{bookings-last-name-rac-BAioQLCg.js → bookings-last-name-rac-CsLZaKfO.js} +1 -1
- package/dist/component/{bookings-login-bar-rac-CO6vOBjG.js → bookings-login-bar-rac-B3TRivWU.js} +6 -6
- package/dist/component/{bookings-phone-rac-Cr16h-_R.js → bookings-phone-rac-BnFEknvv.js} +1 -1
- package/dist/component/{bookings-rich-text-rac-CHLH3jd7.js → bookings-rich-text-rac-CFPqDZay.js} +1 -1
- package/dist/component/{calendar.module-CKCBG_Pg.js → calendar.module-BMUyMVja.js} +19 -19
- package/dist/component/{checkbox-field-rac-CMwmwFMD.js → checkbox-field-rac-DqGbxAd0.js} +6 -6
- package/dist/component/{checkbox-group-field-headless-BNs_S-nT.js → checkbox-group-field-headless-CiobdaVa.js} +27 -27
- package/dist/component/{checkbox-group-field-rac-BA60EPAN.js → checkbox-group-field-rac-Dxrc2F4x.js} +6 -6
- package/dist/component/{checkbox-group-rac-BJZ4Oer9.js → checkbox-group-rac-C3tL4YSr.js} +1 -1
- package/dist/component/{checkbox-indicator-module-classes-akWZsZNn.js → checkbox-indicator-module-classes-DUTR4mcg.js} +1 -1
- package/dist/component/{checkbox-rac-KsVlI6_V.js → checkbox-rac-DhZsIMuk.js} +1 -1
- package/dist/component/{contacts-address-rac-CRYkz87z.js → contacts-address-rac--GiWpa6C.js} +1 -1
- package/dist/component/{contacts-birthdate-rac-BIz-1-ZX.js → contacts-birthdate-rac-CmI2nPpr.js} +1 -1
- package/dist/component/{contacts-company-rac-B8G__j6I.js → contacts-company-rac-DcSLvPnR.js} +1 -1
- package/dist/component/{contacts-email-rac-Dztkvp5i.js → contacts-email-rac-BLOIHGP9.js} +1 -1
- package/dist/component/{contacts-first-name-rac-CVSEWpLU.js → contacts-first-name-rac-DgMCKLeE.js} +1 -1
- package/dist/component/{contacts-last-name-rac-Blz4M5bk.js → contacts-last-name-rac-tcEQP1Db.js} +1 -1
- package/dist/component/{contacts-phone-rac-CPCE5soY.js → contacts-phone-rac-CK664cfW.js} +1 -1
- package/dist/component/{contacts-position-rac-Dd_kBjqG.js → contacts-position-rac-B8skwXy6.js} +1 -1
- package/dist/component/{contacts-subscribe-rac-C6AlsP10.js → contacts-subscribe-rac-DQZYJjMo.js} +1 -1
- package/dist/component/{contacts-tax-id-rac-CQ1n29zI.js → contacts-tax-id-rac-Ci24ixLu.js} +1 -1
- package/dist/component/{date-availability-DDj1j0z5.js → date-availability-Va6_2NAZ.js} +1 -1
- package/dist/component/{date-input-field-rac-D5r1n_ah.js → date-input-field-rac-lAKyuHOI.js} +89 -89
- package/dist/component/{date-input-rac-Cyi5mU_P.js → date-input-rac-ClEesupR.js} +1 -1
- package/dist/component/{date-picker-field-rac-CeG391Zo.js → date-picker-field-rac-h45jfoso.js} +54 -54
- package/dist/component/{date-picker-rac-Ci9aHgav.js → date-picker-rac-B-pvqBn0.js} +1 -1
- package/dist/component/{date-time-input-field-rac-CrbYEbJJ.js → date-time-input-field-rac-41QpurJp.js} +80 -80
- package/dist/component/{date-time-input-rac-DDJLkqs0.js → date-time-input-rac-BQOUl7It.js} +1 -1
- package/dist/component/{dext-checkbox-group-rac-C3ftVHBA.js → dext-checkbox-group-rac-C4Q6tfBD.js} +4 -4
- package/dist/component/{dext-checkbox-rac-BGLYWn68.js → dext-checkbox-rac-Yo2PHNDA.js} +1 -1
- package/dist/component/{dext-date-picker-rac-Cy9RlDlt.js → dext-date-picker-rac-jM9x8W6a.js} +1 -1
- package/dist/component/{dext-date-time-input-rac-88ZoTd5e.js → dext-date-time-input-rac-BgW_4WIg.js} +1 -1
- package/dist/component/{dext-dropdown-rac-CPxDUuk9.js → dext-dropdown-rac-DCL7D6-G.js} +1 -1
- package/dist/component/{dext-email-rac-BAvQwDPA.js → dext-email-rac-Dz7yBqkd.js} +1 -1
- package/dist/component/{dext-number-input-rac-D7HYQVKq.js → dext-number-input-rac-BdMjBpH9.js} +1 -1
- package/dist/component/{dext-phone-rac--FhcplSI.js → dext-phone-rac-D2i9fXL3.js} +1 -1
- package/dist/component/{dext-radio-group-rac-DBz8iCKW.js → dext-radio-group-rac-Br2f1Ahx.js} +2 -2
- package/dist/component/{dext-rating-input-rac-Cv7nThfe.js → dext-rating-input-rac-OkfJ7Eb0.js} +1 -1
- package/dist/component/{dext-tags-rac-CRUUc5dr.js → dext-tags-rac-43vDoDdM.js} +2 -2
- package/dist/component/{dext-text-area-rac-DQBQXV1L.js → dext-text-area-rac-C072pWO9.js} +1 -1
- package/dist/component/{dext-text-input-rac-4CpM581y.js → dext-text-input-rac-BiHJpJCt.js} +1 -1
- package/dist/component/{dext-url-input-rac-0C1jTEr9.js → dext-url-input-rac-YOGYMj5C.js} +1 -1
- package/dist/component/{donation-rac-Cgt0ZE50.js → donation-rac-fCt3mddA.js} +98 -98
- package/dist/component/{dropdown-field-rac-DlGKR7pZ.js → dropdown-field-rac-EQrQJ2-C.js} +4 -4
- package/dist/component/{dropdown-rac-CYFW_3x_.js → dropdown-rac-MPCcjrFd.js} +1 -1
- package/dist/component/{ecom-address-rac-CQfQHpXC.js → ecom-address-rac-DSgpHqzV.js} +1 -1
- package/dist/component/{ecom-subscription-checkbox-rac-D2v2Upvz.js → ecom-subscription-checkbox-rac-Dw6Ke0Fb.js} +2 -2
- package/dist/component/{email-input-field-rac-CVw25yRo.js → email-input-field-rac-DVmvH4u4.js} +48 -48
- package/dist/component/{events-repeater-rac-BCVUcmFj.js → events-repeater-rac-Uwpo7XF4.js} +24 -24
- package/dist/component/{events-rsvp-rac-DwbqEr8z.js → events-rsvp-rac-D2DJAkep.js} +4 -4
- package/dist/component/{field-error-headless-XnVcMmsL.js → field-error-headless-DAc8FpKI.js} +8 -8
- package/dist/component/{field-label-headless-BRTLT2Yt.js → field-label-headless-DxxwJtjh.js} +17 -17
- package/dist/component/field-rac.module-ts2t4WUO.js +25 -0
- package/dist/component/{file-upload-rac-Dkwg9Jk4.js → file-upload-rac-CBKIeaxX.js} +163 -163
- package/dist/component/{fixed-payment-rac-ST98xAa2.js → fixed-payment-rac-BsCDoc1p.js} +18 -18
- package/dist/component/{form-BUqSKOvc.js → form-GAuLAdjq.js} +326 -336
- package/dist/component/form.css +1 -1
- package/dist/component/form.js +1 -1
- package/dist/component/{header-field-rac-CzNTGYWq.js → header-field-rac-DtZCjzLJ.js} +6 -6
- package/dist/component/{header-rac-DUt6AIAE.js → header-rac-B1hlVDf8.js} +1 -1
- package/dist/component/image-choice-rac-DQaCg_Xk.js +155 -0
- package/dist/component/{index-cZZeAuuu.js → index-BaVjVNYj.js} +2 -2
- package/dist/component/{index-CDO22hht.js → index-C1EXd9jU.js} +69 -69
- package/dist/component/{isObjectLike-cs4bARpC.js → isObjectLike-m2dqIREj.js} +3 -3
- package/dist/component/{multiline-address-field-rac-vcEWhUCV.js → multiline-address-field-rac-CMMdLb-J.js} +41 -41
- package/dist/component/{multiline-address-rac-WQaI2eUX.js → multiline-address-rac-VUQNp-Tz.js} +1 -1
- package/dist/component/{number-input-field-rac-CBUMqATk.js → number-input-field-rac-B5bsGDKm.js} +24 -24
- package/dist/component/{number-input-rac-B4j5hyzS.js → number-input-rac-BzzW0p9R.js} +1 -1
- package/dist/component/{password-rac-DwLyf45N.js → password-rac-2Rr7lvNO.js} +17 -17
- package/dist/component/{payment-input-rac-D0Od---y.js → payment-input-rac-CEUzIrJA.js} +32 -32
- package/dist/component/{phone-input-field-rac-COlu9IeC.js → phone-input-field-rac-BDBaqAzE.js} +48 -48
- package/dist/component/{phone-rac-Dh4RacOF.js → phone-rac-BTK8-tkq.js} +1 -1
- package/dist/component/{product-list-rac-D7zHDE2D.js → product-list-rac-1QbeT5RH.js} +26 -26
- package/dist/component/{quiz-radio-group-rac-1AaKphJt.js → quiz-radio-group-rac-tn2CzdCu.js} +1 -1
- package/dist/component/{radio-button-module-classes-VqaP6vpA.js → radio-button-module-classes-aK1SQcLG.js} +34 -34
- package/dist/component/{radio-group-field-rac-Cp3LRN3C.js → radio-group-field-rac-DlMXhW_S.js} +5 -5
- package/dist/component/{radio-group-rac-KhmhzYGf.js → radio-group-rac-BmU_5tBK.js} +1 -1
- package/dist/component/{rating-input-field-rac-10n6ciCr.js → rating-input-field-rac-DUPJUAX2.js} +30 -30
- package/dist/component/{rating-input-rac-XZjjY2Gp.js → rating-input-rac-BLhkZdj8.js} +1 -1
- package/dist/component/{rich-content-rac.module-kMwDoLBa.js → rich-content-rac.module-C9bGXB69.js} +5 -5
- package/dist/component/{rich-text-field-rac-H5bd8fAt.js → rich-text-field-rac-CVqmsZzZ.js} +4 -4
- package/dist/component/{rich-text-rac-88GSQR62.js → rich-text-rac-D8K6445F.js} +1 -1
- package/dist/component/{service-dropdown-rac-B1_Xr_X3.js → service-dropdown-rac-PR_iLdmo.js} +26 -26
- package/dist/component/{services-multi-choice-rac-DWp_Llbi.js → services-multi-choice-rac-BvMadJCf.js} +15 -15
- package/dist/component/{signature-rac-zN_6KRDp.js → signature-rac-Cpjv6kcl.js} +235 -235
- package/dist/component/{submit-button-rac-Dv6UarYX.js → submit-button-rac-DpDk7cMb.js} +7 -7
- package/dist/component/{tags-field-rac-sVN6MHfJ.js → tags-field-rac-DnyWNHXT.js} +75 -75
- package/dist/component/{tags-rac-DhTHs_XN.js → tags-rac-D5Do7BNm.js} +1 -1
- package/dist/component/{text-area-field-rac-DrWkww7W.js → text-area-field-rac-DLBgla0L.js} +19 -19
- package/dist/component/{text-area-rac-CXXh-ZdY.js → text-area-rac-Bfsl2gSn.js} +1 -1
- package/dist/component/{text-input-field-rac-C2YiMr-g.js → text-input-field-rac-hLsUcQNw.js} +4 -4
- package/dist/component/{text-input-headless-BJMNbsMY.js → text-input-headless-Otd7Uy7V.js} +11 -11
- package/dist/component/{text-input-rac-CpsPh7FH.js → text-input-rac-jpnc-v91.js} +1 -1
- package/dist/component/{time-input-rac-DG_1KxS4.js → time-input-rac-DnjrmZZw.js} +20 -20
- package/dist/component/url-input-field-rac-C90NYHb8.js +77 -0
- package/dist/component/{url-input-rac-BTStO0NP.js → url-input-rac-C3wfEnqs.js} +1 -1
- package/dist/component/{use-dropdown-option-class-name-DbMMg1ws.js → use-dropdown-option-class-name-CYkLlKBs.js} +12 -12
- package/dist/component/{use-dropdown-trigger-class-name-Yes4kC_0.js → use-dropdown-trigger-class-name-CTt4Z67m.js} +19 -19
- package/dist/component/{use-element-state-class-name-DlncY4hk.js → use-element-state-class-name-ByDw6j7c.js} +1 -1
- package/dist/component/{use-hoverable-input-class-name-C__zqP5j.js → use-hoverable-input-class-name-Duhgtn2I.js} +3 -3
- package/dist/component/{use-is-forced-open-dropdown-DnK_MQRO.js → use-is-forced-open-dropdown-B5gNY4Zm.js} +4 -4
- package/dist/component/{use-service-options-base-DKJe52Vk.js → use-service-options-base-DE-QaNDw.js} +3 -3
- package/dist/component/use-text-input-class-name-CmxSw6bY.js +6 -0
- package/package.json +2 -2
- package/dist/component/field-rac.module-DP0lkkEv.js +0 -25
- package/dist/component/image-choice-rac-DuBgrSt2.js +0 -155
- package/dist/component/url-input-field-rac-twxRREnl.js +0 -77
- package/dist/component/use-text-input-class-name-D9tJTR-b.js +0 -6
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { aV as c } from "./form-GAuLAdjq.js";
|
|
2
2
|
var b, d;
|
|
3
3
|
function k() {
|
|
4
4
|
if (d) return b;
|
|
@@ -68,7 +68,7 @@ function U() {
|
|
|
68
68
|
return v = r, v;
|
|
69
69
|
}
|
|
70
70
|
var T, p;
|
|
71
|
-
function
|
|
71
|
+
function V() {
|
|
72
72
|
if (p) return T;
|
|
73
73
|
p = 1;
|
|
74
74
|
function r(e) {
|
|
@@ -77,7 +77,7 @@ function X() {
|
|
|
77
77
|
return T = r, T;
|
|
78
78
|
}
|
|
79
79
|
export {
|
|
80
|
-
|
|
80
|
+
V as a,
|
|
81
81
|
R as b,
|
|
82
82
|
N as c,
|
|
83
83
|
k as d,
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import { RicosViewer as G } from "@wix/ricos/viewer";
|
|
2
2
|
import L from "classnames";
|
|
3
|
-
import n, { useMemo as q, createContext as
|
|
3
|
+
import n, { useMemo as q, createContext as Ve, useContext as Ce, useState as Ee, useRef as x, useCallback as R, useEffect as Ae } from "react";
|
|
4
4
|
import { UNSAFE_PortalProvider as Tt } from "react-aria";
|
|
5
|
-
import {
|
|
5
|
+
import { bt as Ct, d as It, bo as Mt, bq as Lt, b1 as wt, b2 as qt, aW as xt, b0 as $, F as K, bI as Pe, bh as it, by as P, bv as M, bA as ae, bu as Nt, b6 as Bt, C as Oe, bf as kt, bj as Ut, bF as Wt, bz as Vt, bE as $t, bm as Kt, bb as Yt, bl as Ht, bB as jt, aC as Jt, V as Xt, U as z, aa as Q, H as Ne, K as Z, G as ee, W as Gt, X as zt } from "./form-GAuLAdjq.js";
|
|
6
6
|
import { f as b, a as v } from "./find-child-C60k4CxG.js";
|
|
7
7
|
import { F as Qt, V as Zt } from "./headless-styles-CmcyA_pi.js";
|
|
8
|
-
import { a as en } from "./use-is-forced-open-dropdown-
|
|
9
|
-
import { TextField as be, Input as le, ComboBoxStateContext 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 tn, c as nn, a as rn, r as vt } from "./isObjectLike-
|
|
13
|
-
import { V as on, u as sn } from "./use-dropdown-option-class-name-
|
|
8
|
+
import { a as en } from "./use-is-forced-open-dropdown-B5gNY4Zm.js";
|
|
9
|
+
import { TextField as be, Input as le, ComboBoxStateContext as $e, ComboBox as Fe, Popover as Se, ListBox as Te, ListBoxItem as he, Group as Ot, Button as gt } from "react-aria-components";
|
|
10
|
+
import { D as ie, E as ce } from "./field-error-headless-DAc8FpKI.js";
|
|
11
|
+
import { L as de } from "./field-label-headless-DxxwJtjh.js";
|
|
12
|
+
import { e as tn, c as nn, a as rn, r as vt } from "./isObjectLike-m2dqIREj.js";
|
|
13
|
+
import { V as on, u as sn } from "./use-dropdown-option-class-name-CYkLlKBs.js";
|
|
14
14
|
import { u as an } from "./use-invoke-callback-UH73A_J3.js";
|
|
15
15
|
import { C as ct } from "./chevron-down-icon-CcpVm6B-.js";
|
|
16
16
|
import { E as te } from "./error-icon-hZxQ6DEy.js";
|
|
17
17
|
import { H as Me } from "./custom-focus-class-_483Pkwp.js";
|
|
18
|
-
import { s as C } from "./field-rac.module-
|
|
19
|
-
import { u as dt } from "./use-hoverable-input-class-name-
|
|
18
|
+
import { s as C } from "./field-rac.module-ts2t4WUO.js";
|
|
19
|
+
import { u as dt } from "./use-hoverable-input-class-name-Duhgtn2I.js";
|
|
20
20
|
const ln = (e, t, o) => {
|
|
21
21
|
var s, l, i, a;
|
|
22
22
|
const r = (s = e.steps) == null ? void 0 : s.map((d) => {
|
|
@@ -51,7 +51,7 @@ function cn(e, t, o = !1) {
|
|
|
51
51
|
const { country: r, subdivision: s, city: l, addressLine: i, streetAddress: a, addressLine2: d, postalCode: m } = e, u = {};
|
|
52
52
|
return t ? (r && (u.country = r), s && (u.subdivision = s), l && (u.city = l), i ? u.addressLine = i : a != null && a.formattedAddressLine && (u.addressLine = a == null ? void 0 : a.formattedAddressLine), d && (u.addressLine = d), m && (u.postalCode = m), a != null && a.apt && (u.apartment = a == null ? void 0 : a.apt), a != null && a.name ? u.streetName = a == null ? void 0 : a.name : o && (a != null && a.formattedAddressLine) && (u.streetName = a == null ? void 0 : a.formattedAddressLine), a != null && a.number && (u.streetNumber = a.number)) : (r && (u.country = r), s && (u.subdivision = s), l && (u.city = l), i ? u.address_line = i : a != null && a.formattedAddressLine && (u.address_line = a == null ? void 0 : a.formattedAddressLine), d && (u.address_line = d), m && (u.postal_code = m), a != null && a.apt && (u.apartment = a == null ? void 0 : a.apt), a != null && a.name ? u.street_name = a == null ? void 0 : a.name : o && (a != null && a.formattedAddressLine) && (u.street_name = a == null ? void 0 : a.formattedAddressLine), a != null && a.number && (u.street_number = a.number)), u;
|
|
53
53
|
}
|
|
54
|
-
const Ft = /* @__PURE__ */
|
|
54
|
+
const Ft = /* @__PURE__ */ Ve({
|
|
55
55
|
onAddressSelect: () => {
|
|
56
56
|
}
|
|
57
57
|
}), dn = ({ children: e, onAddressSelect: t, autocompleteEnabled: o }) => {
|
|
@@ -69,7 +69,7 @@ const Ft = /* @__PURE__ */ $e({
|
|
|
69
69
|
function Ie() {
|
|
70
70
|
return Ce(Ft);
|
|
71
71
|
}
|
|
72
|
-
const St = /* @__PURE__ */
|
|
72
|
+
const St = /* @__PURE__ */ Ve(void 0), un = ({ children: e, countryCode: t }) => {
|
|
73
73
|
const o = q(() => ({
|
|
74
74
|
countryCode: t
|
|
75
75
|
}), [
|
|
@@ -167,15 +167,15 @@ const pn = (e, t) => e.map((o) => ({
|
|
|
167
167
|
fields: i
|
|
168
168
|
};
|
|
169
169
|
}, Ln = () => ({
|
|
170
|
-
country:
|
|
171
|
-
subdivision:
|
|
172
|
-
city:
|
|
173
|
-
address_line:
|
|
174
|
-
address_line_2:
|
|
175
|
-
postal_code:
|
|
176
|
-
street_name:
|
|
177
|
-
street_number:
|
|
178
|
-
apartment:
|
|
170
|
+
country: $(),
|
|
171
|
+
subdivision: $(),
|
|
172
|
+
city: $(),
|
|
173
|
+
address_line: $(),
|
|
174
|
+
address_line_2: $(),
|
|
175
|
+
postal_code: $(),
|
|
176
|
+
street_name: $(),
|
|
177
|
+
street_number: $(),
|
|
178
|
+
apartment: $()
|
|
179
179
|
}), Nn = ({ id: e, target: t, fieldType: o, form: r, country: s, fieldSettings: l, validation: i, required: a }) => {
|
|
180
180
|
const [d] = Ee(Ln), { isExperimentEnabled: m } = Ct(), u = m(It.USE_FIELDS_V2), { getCountryAddressForm: y } = Mt(), { isMobile: I, breakpoint: p } = Lt(), E = y(s), f = o === K.MULTILINE_ADDRESS || o === K.BOOKINGS_ADDRESS, N = q(() => {
|
|
181
181
|
var g;
|
|
@@ -225,7 +225,7 @@ const pn = (e, t) => e.map((o) => ({
|
|
|
225
225
|
]),
|
|
226
226
|
isMultilineAddressField: f
|
|
227
227
|
};
|
|
228
|
-
}, Dt = /* @__PURE__ */
|
|
228
|
+
}, Dt = /* @__PURE__ */ Ve(void 0), On = ({ children: e, fields: t }) => {
|
|
229
229
|
const o = q(() => ({
|
|
230
230
|
fields: t
|
|
231
231
|
}), [
|
|
@@ -286,7 +286,7 @@ ne.Input = gn;
|
|
|
286
286
|
ne.Description = ie;
|
|
287
287
|
ne.Error = ce;
|
|
288
288
|
const Ke = ({ enabled: e }) => {
|
|
289
|
-
const { actions: t } = Nt(), [o, r] = Ee(
|
|
289
|
+
const { actions: t } = Nt(), [o, r] = Ee($()), s = R(() => r($()), []);
|
|
290
290
|
return q(() => {
|
|
291
291
|
const { predict: l, getPlace: i, searchByPostalCode: a } = t ?? {};
|
|
292
292
|
if (!(!e || !l || !i || !a))
|
|
@@ -492,7 +492,7 @@ const An = /* @__PURE__ */ Bt(_n), Pn = (e, t, o = 200) => {
|
|
|
492
492
|
clearPredictions: d
|
|
493
493
|
};
|
|
494
494
|
}, Ye = ({ optionCount: e }) => {
|
|
495
|
-
const t = Ce(
|
|
495
|
+
const t = Ce($e), o = x(t);
|
|
496
496
|
o.current = t;
|
|
497
497
|
const r = x(e);
|
|
498
498
|
return Ae(() => {
|
|
@@ -727,7 +727,7 @@ oe.Input = Bn;
|
|
|
727
727
|
oe.Description = ie;
|
|
728
728
|
oe.Error = ce;
|
|
729
729
|
const kn = ({ isOpen: e }) => {
|
|
730
|
-
const t = Ce(
|
|
730
|
+
const t = Ce($e), o = x(!1);
|
|
731
731
|
return Ae(() => {
|
|
732
732
|
e && t && !t.isOpen && t.open(null, "manual"), e && (t == null ? void 0 : t.selectionManager.focusedKey) != null && t.selectionManager.setFocusedKey(null), !e && o.current && (t == null || t.close()), o.current = e;
|
|
733
733
|
}, [
|
|
@@ -735,7 +735,7 @@ const kn = ({ isOpen: e }) => {
|
|
|
735
735
|
t
|
|
736
736
|
]), null;
|
|
737
737
|
}, _t = ({ readOnly: e, disabled: t } = {}) => {
|
|
738
|
-
const o = Ce(
|
|
738
|
+
const o = Ce($e);
|
|
739
739
|
return R(() => {
|
|
740
740
|
!o || o.isOpen || e || t || o.open(null, "manual");
|
|
741
741
|
}, [
|
|
@@ -858,11 +858,11 @@ const kn = ({ isOpen: e }) => {
|
|
|
858
858
|
onClick: u,
|
|
859
859
|
onKeyDown: d
|
|
860
860
|
});
|
|
861
|
-
},
|
|
861
|
+
}, Vn = ({ children: e, className: t }) => /* @__PURE__ */ n.createElement(gt, {
|
|
862
862
|
className: t
|
|
863
863
|
}, e);
|
|
864
864
|
ge.Input = Wn;
|
|
865
|
-
ge.Trigger =
|
|
865
|
+
ge.Trigger = Vn;
|
|
866
866
|
const je = ({ children: e, className: t, ...o }) => {
|
|
867
867
|
const { options: r, isForcedOpen: s } = o, l = b(e, je.Option);
|
|
868
868
|
return /* @__PURE__ */ n.createElement(Se, {
|
|
@@ -876,7 +876,7 @@ const je = ({ children: e, className: t, ...o }) => {
|
|
|
876
876
|
value: i.value,
|
|
877
877
|
label: i.label
|
|
878
878
|
}))));
|
|
879
|
-
},
|
|
879
|
+
}, $n = ({ className: e, ...t }) => {
|
|
880
880
|
const { value: o, label: r } = t;
|
|
881
881
|
return /* @__PURE__ */ n.createElement(he, {
|
|
882
882
|
className: e,
|
|
@@ -884,7 +884,7 @@ const je = ({ children: e, className: t, ...o }) => {
|
|
|
884
884
|
textValue: r
|
|
885
885
|
}, r);
|
|
886
886
|
};
|
|
887
|
-
je.Option =
|
|
887
|
+
je.Option = $n;
|
|
888
888
|
Y.Label = de;
|
|
889
889
|
Y.Control = ge;
|
|
890
890
|
Y.Options = je;
|
|
@@ -968,7 +968,7 @@ const k = ({ children: e }) => {
|
|
|
968
968
|
isAutocompleteEnabled: y
|
|
969
969
|
}), [E, f] = Ee(), N = q(() => E ? [
|
|
970
970
|
{
|
|
971
|
-
id:
|
|
971
|
+
id: $(),
|
|
972
972
|
label: E.formattedAddress || ""
|
|
973
973
|
}
|
|
974
974
|
] : [], [
|
|
@@ -1366,7 +1366,7 @@ const rr = () => ue("country"), or = () => ue("subdivision"), sr = () => ue("cit
|
|
|
1366
1366
|
...mr
|
|
1367
1367
|
}), [
|
|
1368
1368
|
g
|
|
1369
|
-
]), { isExperimentEnabled: w } = Ct(), T = w(It.STREETLESS_LOCALITY_FALLBACK), { validateFields: O } =
|
|
1369
|
+
]), { isExperimentEnabled: w } = Ct(), T = w(It.STREETLESS_LOCALITY_FALLBACK), { validateFields: O } = Vt(), D = $t(), j = Nt(), fe = q(() => ({
|
|
1370
1370
|
...j,
|
|
1371
1371
|
actions: {
|
|
1372
1372
|
predict: Ht,
|
|
@@ -1385,10 +1385,10 @@ const rr = () => ue("country"), or = () => ue("subdivision"), sr = () => ue("cit
|
|
|
1385
1385
|
fieldSettings: u,
|
|
1386
1386
|
validation: I,
|
|
1387
1387
|
required: f
|
|
1388
|
-
}), F = R((
|
|
1388
|
+
}), F = R((V) => {
|
|
1389
1389
|
if (!s)
|
|
1390
1390
|
return;
|
|
1391
|
-
const X = cn(
|
|
1391
|
+
const X = cn(V, A, T), Re = {
|
|
1392
1392
|
...X,
|
|
1393
1393
|
[ye.COUNTRY]: X[ye.COUNTRY] ?? s[ye.COUNTRY]
|
|
1394
1394
|
};
|
|
@@ -1398,8 +1398,8 @@ const rr = () => ue("country"), or = () => ue("subdivision"), sr = () => ue("cit
|
|
|
1398
1398
|
s,
|
|
1399
1399
|
A,
|
|
1400
1400
|
T
|
|
1401
|
-
]), J = R((
|
|
1402
|
-
if (A &&
|
|
1401
|
+
]), J = R((V, X) => {
|
|
1402
|
+
if (A && V === ye.COUNTRY && (s == null ? void 0 : s[V]) !== X) {
|
|
1403
1403
|
l == null || l({
|
|
1404
1404
|
[ye.COUNTRY]: X
|
|
1405
1405
|
});
|
|
@@ -1407,19 +1407,19 @@ const rr = () => ue("country"), or = () => ue("subdivision"), sr = () => ue("cit
|
|
|
1407
1407
|
}
|
|
1408
1408
|
l == null || l({
|
|
1409
1409
|
...s,
|
|
1410
|
-
[
|
|
1410
|
+
[V]: X
|
|
1411
1411
|
});
|
|
1412
1412
|
}, [
|
|
1413
1413
|
l,
|
|
1414
1414
|
s,
|
|
1415
1415
|
A
|
|
1416
|
-
]), pe = R(async (
|
|
1417
|
-
|
|
1416
|
+
]), pe = R(async (V) => O(A ? [
|
|
1417
|
+
...V,
|
|
1418
1418
|
{
|
|
1419
1419
|
path: `${p}/${ye.COUNTRY}`,
|
|
1420
1420
|
value: s == null ? void 0 : s.country
|
|
1421
1421
|
}
|
|
1422
|
-
] :
|
|
1422
|
+
] : V), [
|
|
1423
1423
|
s,
|
|
1424
1424
|
p,
|
|
1425
1425
|
O,
|
|
@@ -1427,7 +1427,7 @@ const rr = () => ue("country"), or = () => ue("subdivision"), sr = () => ue("cit
|
|
|
1427
1427
|
]);
|
|
1428
1428
|
jt(o, () => {
|
|
1429
1429
|
var Re;
|
|
1430
|
-
const
|
|
1430
|
+
const V = d == null ? void 0 : d[0], X = (Re = W == null ? void 0 : W.fields) == null ? void 0 : Re.find((lt) => "target" in lt && lt.target === (V == null ? void 0 : V.errorPath));
|
|
1431
1431
|
return X == null ? void 0 : X.id;
|
|
1432
1432
|
});
|
|
1433
1433
|
const De = en(o), Qe = v(b(e, c.Country), {
|
package/dist/component/{number-input-field-rac-CBUMqATk.js → number-input-field-rac-B5bsGDKm.js}
RENAMED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { RicosViewer as P } from "@wix/ricos/viewer";
|
|
2
2
|
import i from "classnames";
|
|
3
|
-
import r, { useState as
|
|
4
|
-
import { NumberField as
|
|
5
|
-
import {
|
|
3
|
+
import r, { useState as U, useCallback as G, useEffect as K, useRef as Q } from "react";
|
|
4
|
+
import { NumberField as $, Input as j } from "react-aria-components";
|
|
5
|
+
import { by as _, bv as S, bI as z, bA as H, U as J, aa as W, K as X, G as Y } from "./form-GAuLAdjq.js";
|
|
6
6
|
import { f as c } from "./find-child-C60k4CxG.js";
|
|
7
|
-
import { D as Z, E as w } from "./field-error-headless-
|
|
8
|
-
import { L as ee } from "./field-label-headless-
|
|
7
|
+
import { D as Z, E as w } from "./field-error-headless-DAc8FpKI.js";
|
|
8
|
+
import { L as ee } from "./field-label-headless-DxxwJtjh.js";
|
|
9
9
|
import { g as re, c as te } from "./numeric-input-utils-CuBMi4-a.js";
|
|
10
10
|
import { u as ne } from "./use-invoke-callback-UH73A_J3.js";
|
|
11
11
|
import { E as ae } from "./error-icon-hZxQ6DEy.js";
|
|
12
|
-
import { s as p } from "./field-rac.module-
|
|
13
|
-
import { u as se } from "./use-text-input-class-name-
|
|
12
|
+
import { s as p } from "./field-rac.module-ts2t4WUO.js";
|
|
13
|
+
import { u as se } from "./use-text-input-class-name-CmxSw6bY.js";
|
|
14
14
|
const e = ({ children: t }) => {
|
|
15
15
|
var F, L, R;
|
|
16
|
-
const { id: a, value: s, onChange: l, disabled: d, required: b, readOnly: o, onBlur: E, onFocus: f, FieldLayout: m, hasError: u, validation: n } = _(), { labelId:
|
|
16
|
+
const { id: a, value: s, onChange: l, disabled: d, required: b, readOnly: o, onBlur: E, onFocus: f, FieldLayout: m, hasError: u, validation: n } = _(), { labelId: y } = S(), D = ((F = n == null ? void 0 : n.number) == null ? void 0 : F.multipleOf) || 1, A = (L = n == null ? void 0 : n.number) == null ? void 0 : L.maximum, g = (R = n == null ? void 0 : n.number) == null ? void 0 : R.minimum, x = O(s), [T, I] = U(x), V = ne(E), h = c(t, e.Label), q = c(t, e.Input), M = c(t, e.Description), k = c(t, e.Error), B = G((N) => {
|
|
17
17
|
if (N === void 0 || Number.isNaN(N)) {
|
|
18
18
|
l(""), I(NaN);
|
|
19
19
|
return;
|
|
@@ -24,39 +24,39 @@ const e = ({ children: t }) => {
|
|
|
24
24
|
D,
|
|
25
25
|
l
|
|
26
26
|
]);
|
|
27
|
-
return
|
|
27
|
+
return K(() => {
|
|
28
28
|
I(O(s));
|
|
29
29
|
}, [
|
|
30
30
|
s
|
|
31
31
|
]), /* @__PURE__ */ r.createElement(m, {
|
|
32
32
|
fieldId: a,
|
|
33
|
-
renderLabel: () =>
|
|
34
|
-
renderInput: () => /* @__PURE__ */ r.createElement(
|
|
35
|
-
"aria-labelledby":
|
|
36
|
-
value:
|
|
33
|
+
renderLabel: () => h,
|
|
34
|
+
renderInput: () => /* @__PURE__ */ r.createElement($, {
|
|
35
|
+
"aria-labelledby": y,
|
|
36
|
+
value: T,
|
|
37
37
|
onChange: B,
|
|
38
38
|
isDisabled: d,
|
|
39
39
|
isRequired: b,
|
|
40
40
|
isReadOnly: o,
|
|
41
41
|
isInvalid: u,
|
|
42
|
-
onBlur:
|
|
42
|
+
onBlur: V,
|
|
43
43
|
onFocus: f,
|
|
44
|
-
minValue:
|
|
45
|
-
maxValue:
|
|
46
|
-
},
|
|
47
|
-
renderDescription: () => /* @__PURE__ */ r.createElement(r.Fragment, null, k,
|
|
44
|
+
minValue: g ?? void 0,
|
|
45
|
+
maxValue: A ?? void 0
|
|
46
|
+
}, q),
|
|
47
|
+
renderDescription: () => /* @__PURE__ */ r.createElement(r.Fragment, null, k, M)
|
|
48
48
|
});
|
|
49
49
|
}, le = ({ className: t }) => {
|
|
50
50
|
var u;
|
|
51
|
-
const { t: a } =
|
|
51
|
+
const { t: a } = z(), { inputId: s, ariaDescribedBy: l } = S(), { id: d, placeholder: b, validation: o, label: E, required: f } = _();
|
|
52
52
|
(u = o == null ? void 0 : o.number) != null && u.multipleOf;
|
|
53
|
-
const m =
|
|
54
|
-
return
|
|
53
|
+
const m = Q(null);
|
|
54
|
+
return H(() => {
|
|
55
55
|
var n;
|
|
56
56
|
(n = m.current) == null || n.focus({
|
|
57
57
|
preventScroll: !0
|
|
58
58
|
});
|
|
59
|
-
}, d), /* @__PURE__ */ r.createElement(
|
|
59
|
+
}, d), /* @__PURE__ */ r.createElement(j, {
|
|
60
60
|
ref: m,
|
|
61
61
|
id: s,
|
|
62
62
|
"aria-describedby": l,
|
|
@@ -78,9 +78,9 @@ const O = (t) => te(t) ?? NaN, oe = ({ content: t, locale: a }) => /* @__PURE__
|
|
|
78
78
|
}), Le = () => {
|
|
79
79
|
const t = se();
|
|
80
80
|
return /* @__PURE__ */ r.createElement(e, null, /* @__PURE__ */ r.createElement(e.Label, {
|
|
81
|
-
className: i(
|
|
81
|
+
className: i(J, p.label)
|
|
82
82
|
}, /* @__PURE__ */ r.createElement(e.Label.Required, {
|
|
83
|
-
className: i(
|
|
83
|
+
className: i(W, p.requiredMark)
|
|
84
84
|
})), /* @__PURE__ */ r.createElement(e.Input, {
|
|
85
85
|
className: t
|
|
86
86
|
}), /* @__PURE__ */ r.createElement(e.Error, {
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import e, { useState as N, useRef as x } from "react";
|
|
2
2
|
import { RicosViewer as O } from "@wix/ricos/viewer";
|
|
3
3
|
import d from "classnames";
|
|
4
|
-
import {
|
|
5
|
-
import { TextField as k, Group as q, Input as U, Button as
|
|
4
|
+
import { by as E, bv as I, bA as A, bI as v, U as B, aa as V, K as P, G as M } from "./form-GAuLAdjq.js";
|
|
5
|
+
import { TextField as k, Group as q, Input as U, Button as j } from "react-aria-components";
|
|
6
6
|
import { f as u, a as b } from "./find-child-C60k4CxG.js";
|
|
7
|
-
import { D as
|
|
8
|
-
import { L as
|
|
7
|
+
import { D as G, E as H } from "./field-error-headless-DAc8FpKI.js";
|
|
8
|
+
import { L as W } from "./field-label-headless-DxxwJtjh.js";
|
|
9
9
|
import { E as Z } from "./error-icon-hZxQ6DEy.js";
|
|
10
10
|
import { H as K } from "./custom-focus-class-_483Pkwp.js";
|
|
11
|
-
import { s as p } from "./field-rac.module-
|
|
12
|
-
import { u as Q } from "./use-text-input-class-name-
|
|
11
|
+
import { s as p } from "./field-rac.module-ts2t4WUO.js";
|
|
12
|
+
import { u as Q } from "./use-text-input-class-name-CmxSw6bY.js";
|
|
13
13
|
const t = ({ children: o, className: r }) => {
|
|
14
|
-
const { id: l, value: s, onChange: c, disabled: n, readOnly: m, required: a, hasError: i, onBlur: f, onFocus: C, autoComplete:
|
|
15
|
-
return /* @__PURE__ */ e.createElement(
|
|
14
|
+
const { id: l, value: s, onChange: c, disabled: n, readOnly: m, required: a, hasError: i, onBlur: f, onFocus: C, autoComplete: y, FieldLayout: _ } = E(), { labelId: R } = I(), [D, F] = N(!1), L = u(o, t.Label), T = u(o, t.Control), w = u(o, t.Description), S = u(o, t.Error);
|
|
15
|
+
return /* @__PURE__ */ e.createElement(_, {
|
|
16
16
|
fieldId: l,
|
|
17
17
|
renderLabel: () => L,
|
|
18
18
|
renderInput: () => /* @__PURE__ */ e.createElement(k, {
|
|
19
|
-
autoComplete:
|
|
19
|
+
autoComplete: y,
|
|
20
20
|
"aria-labelledby": R,
|
|
21
21
|
value: s ?? "",
|
|
22
22
|
onChange: c,
|
|
@@ -62,7 +62,7 @@ const t = ({ children: o, className: r }) => {
|
|
|
62
62
|
});
|
|
63
63
|
}, J = ({ className: o, showPasswordTooltipText: r, hidePasswordTooltipText: l, children: s, ...c }) => {
|
|
64
64
|
const { isVisible: n, onToggleVisibility: m } = c, { disabled: a } = E(), i = n ? l : r;
|
|
65
|
-
return /* @__PURE__ */ e.createElement(
|
|
65
|
+
return /* @__PURE__ */ e.createElement(j, {
|
|
66
66
|
type: "button",
|
|
67
67
|
isDisabled: a,
|
|
68
68
|
onPress: m,
|
|
@@ -73,12 +73,12 @@ const t = ({ children: o, className: r }) => {
|
|
|
73
73
|
isVisible: n
|
|
74
74
|
}));
|
|
75
75
|
};
|
|
76
|
-
t.Label =
|
|
76
|
+
t.Label = W;
|
|
77
77
|
t.Control = $;
|
|
78
78
|
t.Input = z;
|
|
79
79
|
t.Toggle = J;
|
|
80
|
-
t.Description =
|
|
81
|
-
t.Error =
|
|
80
|
+
t.Description = G;
|
|
81
|
+
t.Error = H;
|
|
82
82
|
const X = (o) => /* @__PURE__ */ e.createElement("svg", {
|
|
83
83
|
viewBox: "0 0 24 24",
|
|
84
84
|
width: "20",
|
|
@@ -121,9 +121,9 @@ const X = (o) => /* @__PURE__ */ e.createElement("svg", {
|
|
|
121
121
|
content: o,
|
|
122
122
|
locale: r
|
|
123
123
|
}), re = () => {
|
|
124
|
-
const { t: o } =
|
|
124
|
+
const { t: o } = v(), r = Q(g.control);
|
|
125
125
|
return /* @__PURE__ */ e.createElement(t, null, /* @__PURE__ */ e.createElement(t.Label, {
|
|
126
|
-
className: d(
|
|
126
|
+
className: d(B, p.label)
|
|
127
127
|
}, /* @__PURE__ */ e.createElement(t.Label.Required, {
|
|
128
128
|
className: d(V, p.requiredMark)
|
|
129
129
|
})), /* @__PURE__ */ e.createElement(t.Control, {
|
|
@@ -135,9 +135,9 @@ const X = (o) => /* @__PURE__ */ e.createElement("svg", {
|
|
|
135
135
|
showPasswordTooltipText: o("forms.widget.modals.show-password-tooltip"),
|
|
136
136
|
hidePasswordTooltipText: o("forms.widget.modals.hide-password-tooltip")
|
|
137
137
|
}, ({ isVisible: l }) => l ? /* @__PURE__ */ e.createElement(Y, null) : /* @__PURE__ */ e.createElement(X, null))), /* @__PURE__ */ e.createElement(t.Error, {
|
|
138
|
-
className: d(
|
|
138
|
+
className: d(P, p.error)
|
|
139
139
|
}, /* @__PURE__ */ e.createElement(Z, null), /* @__PURE__ */ e.createElement(t.Error.Text, null)), /* @__PURE__ */ e.createElement(t.Description, {
|
|
140
|
-
className: d(
|
|
140
|
+
className: d(M, p.description)
|
|
141
141
|
}, oe));
|
|
142
142
|
}, ge = () => /* @__PURE__ */ e.createElement(re, null);
|
|
143
143
|
export {
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import r, { useCallback as P, useRef as Q } from "react";
|
|
2
|
-
import { RicosViewer as
|
|
2
|
+
import { RicosViewer as j } from "@wix/ricos/viewer";
|
|
3
3
|
import p from "classnames";
|
|
4
|
-
import { TextField as
|
|
5
|
-
import {
|
|
4
|
+
import { TextField as w, Group as z, Input as J } from "react-aria-components";
|
|
5
|
+
import { by as R, bv as D, bq as T, bI as W, bA as X, U as Y, aa as Z, K as ee, G as re } from "./form-GAuLAdjq.js";
|
|
6
6
|
import { f as i } from "./find-child-C60k4CxG.js";
|
|
7
|
-
import { D as te, E as ne } from "./field-error-headless-
|
|
8
|
-
import { L as ae } from "./field-label-headless-
|
|
7
|
+
import { D as te, E as ne } from "./field-error-headless-DAc8FpKI.js";
|
|
8
|
+
import { L as ae } from "./field-label-headless-DxxwJtjh.js";
|
|
9
9
|
import { f as N, g as se } from "./payment-field-utils-DobiK5Xh.js";
|
|
10
10
|
import { u as oe } from "./use-synced-display-value-DcAxdn3M.js";
|
|
11
11
|
import { E as le } from "./error-icon-hZxQ6DEy.js";
|
|
12
12
|
import { H as ce } from "./custom-focus-class-_483Pkwp.js";
|
|
13
|
-
import { s as d } from "./field-rac.module-
|
|
14
|
-
import { u as ie } from "./use-text-input-class-name-
|
|
13
|
+
import { s as d } from "./field-rac.module-ts2t4WUO.js";
|
|
14
|
+
import { u as ie } from "./use-text-input-class-name-CmxSw6bY.js";
|
|
15
15
|
function ue(e, t) {
|
|
16
16
|
return {
|
|
17
17
|
productId: e.id,
|
|
@@ -19,7 +19,7 @@ function ue(e, t) {
|
|
|
19
19
|
quantity: 1
|
|
20
20
|
};
|
|
21
21
|
}
|
|
22
|
-
function
|
|
22
|
+
function h(e) {
|
|
23
23
|
if (e == null || e === "")
|
|
24
24
|
return;
|
|
25
25
|
const t = Number(String(e).replace(/,/g, "."));
|
|
@@ -27,21 +27,21 @@ function x(e) {
|
|
|
27
27
|
}
|
|
28
28
|
const n = ({ children: e }) => {
|
|
29
29
|
var O, g, A, V;
|
|
30
|
-
const { id: t, value: a, onChange: s, disabled: u, readOnly: m, required:
|
|
30
|
+
const { id: t, value: a, onChange: s, disabled: u, readOnly: m, required: b, hasError: y, onBlur: o, onFocus: E, FieldLayout: M, validation: C } = R(), { labelId: q, prefixId: G } = D(), { regionalFormat: c } = T(), S = (A = (g = (O = C == null ? void 0 : C.predefined) == null ? void 0 : O.paymentOptions) == null ? void 0 : g.products) == null ? void 0 : A[0], _ = (V = a == null ? void 0 : a.at(0)) == null ? void 0 : V.price, [F, I] = oe({
|
|
31
31
|
sourceValue: _,
|
|
32
32
|
format: (l) => N(String(l ?? ""), c),
|
|
33
33
|
regionalFormat: c
|
|
34
34
|
}), $ = P(() => {
|
|
35
35
|
const l = N(F, c);
|
|
36
|
-
|
|
36
|
+
I(l || ""), o == null || o();
|
|
37
37
|
}, [
|
|
38
38
|
F,
|
|
39
39
|
c,
|
|
40
40
|
o,
|
|
41
|
-
|
|
41
|
+
I
|
|
42
42
|
]), v = P((l) => {
|
|
43
|
-
|
|
44
|
-
const L =
|
|
43
|
+
I(l);
|
|
44
|
+
const L = h(N(l, c)), K = h(_);
|
|
45
45
|
if (L !== K) {
|
|
46
46
|
if (L === void 0) {
|
|
47
47
|
s(null);
|
|
@@ -56,33 +56,33 @@ const n = ({ children: e }) => {
|
|
|
56
56
|
S,
|
|
57
57
|
c,
|
|
58
58
|
_,
|
|
59
|
-
|
|
60
|
-
]),
|
|
61
|
-
return /* @__PURE__ */ r.createElement(
|
|
59
|
+
I
|
|
60
|
+
]), U = i(e, n.Label), B = i(e, n.Input), k = i(e, n.Description), H = i(e, n.Error);
|
|
61
|
+
return /* @__PURE__ */ r.createElement(M, {
|
|
62
62
|
fieldId: t,
|
|
63
|
-
renderLabel: () =>
|
|
64
|
-
renderInput: () => /* @__PURE__ */ r.createElement(
|
|
65
|
-
"aria-labelledby": `${
|
|
63
|
+
renderLabel: () => U,
|
|
64
|
+
renderInput: () => /* @__PURE__ */ r.createElement(w, {
|
|
65
|
+
"aria-labelledby": `${q} ${G}`,
|
|
66
66
|
value: a ? F : "",
|
|
67
67
|
onChange: v,
|
|
68
68
|
isDisabled: u,
|
|
69
69
|
isReadOnly: m,
|
|
70
|
-
isRequired:
|
|
70
|
+
isRequired: b,
|
|
71
71
|
isInvalid: y,
|
|
72
72
|
onBlur: $,
|
|
73
73
|
onFocus: E
|
|
74
|
-
},
|
|
74
|
+
}, B),
|
|
75
75
|
renderDescription: () => /* @__PURE__ */ r.createElement(r.Fragment, null, H, k)
|
|
76
76
|
});
|
|
77
77
|
}, f = ({ children: e, className: t }) => {
|
|
78
78
|
const { disabled: a, hasError: s } = R(), u = i(e, f.Currency), m = i(e, f.Value);
|
|
79
|
-
return /* @__PURE__ */ r.createElement(
|
|
79
|
+
return /* @__PURE__ */ r.createElement(z, {
|
|
80
80
|
className: t,
|
|
81
81
|
isDisabled: a,
|
|
82
82
|
isInvalid: s
|
|
83
83
|
}, u, m);
|
|
84
84
|
}, me = ({ className: e }) => {
|
|
85
|
-
const { currency: t } =
|
|
85
|
+
const { currency: t } = T(), { t: a } = W(), { prefixId: s } = D();
|
|
86
86
|
return t ? /* @__PURE__ */ r.createElement("span", {
|
|
87
87
|
id: s,
|
|
88
88
|
"aria-hidden": !1,
|
|
@@ -90,19 +90,19 @@ const n = ({ children: e }) => {
|
|
|
90
90
|
className: e
|
|
91
91
|
}, t.sign || t.code) : null;
|
|
92
92
|
}, pe = ({ className: e }) => {
|
|
93
|
-
const { id: t, placeholder: a, label: s } = R(), { inputId: u, labelId: m, prefixId:
|
|
93
|
+
const { id: t, placeholder: a, label: s } = R(), { inputId: u, labelId: m, prefixId: b, ariaDescribedBy: y } = D(), o = Q(null);
|
|
94
94
|
return X(() => {
|
|
95
95
|
var E;
|
|
96
96
|
(E = o.current) == null || E.focus({
|
|
97
97
|
preventScroll: !0
|
|
98
98
|
});
|
|
99
|
-
}, t), /* @__PURE__ */ r.createElement(
|
|
99
|
+
}, t), /* @__PURE__ */ r.createElement(J, {
|
|
100
100
|
ref: o,
|
|
101
101
|
id: u,
|
|
102
102
|
className: e,
|
|
103
103
|
placeholder: a,
|
|
104
104
|
"aria-label": s,
|
|
105
|
-
"aria-labelledby": `${m} ${
|
|
105
|
+
"aria-labelledby": `${m} ${b}`,
|
|
106
106
|
"aria-describedby": y,
|
|
107
107
|
inputMode: "decimal",
|
|
108
108
|
autoComplete: "off"
|
|
@@ -114,14 +114,14 @@ n.Label = ae;
|
|
|
114
114
|
n.Input = f;
|
|
115
115
|
n.Description = te;
|
|
116
116
|
n.Error = ne;
|
|
117
|
-
const de = "_inputGroup_vuy4u_1", fe = "_currency_vuy4u_14",
|
|
117
|
+
const de = "_inputGroup_vuy4u_1", fe = "_currency_vuy4u_14", x = {
|
|
118
118
|
inputGroup: de,
|
|
119
119
|
currency: fe
|
|
120
|
-
}, Ee = ({ content: e, locale: t }) => /* @__PURE__ */ r.createElement(
|
|
120
|
+
}, Ee = ({ content: e, locale: t }) => /* @__PURE__ */ r.createElement(j, {
|
|
121
121
|
content: e,
|
|
122
122
|
locale: t
|
|
123
|
-
}),
|
|
124
|
-
const e = ie(
|
|
123
|
+
}), Ie = () => {
|
|
124
|
+
const e = ie(x.inputGroup);
|
|
125
125
|
return /* @__PURE__ */ r.createElement(n, null, /* @__PURE__ */ r.createElement(n.Label, {
|
|
126
126
|
className: p(Y, d.label)
|
|
127
127
|
}, /* @__PURE__ */ r.createElement(n.Label.Required, {
|
|
@@ -129,7 +129,7 @@ const de = "_inputGroup_vuy4u_1", fe = "_currency_vuy4u_14", h = {
|
|
|
129
129
|
})), /* @__PURE__ */ r.createElement(n.Input, {
|
|
130
130
|
className: e
|
|
131
131
|
}, /* @__PURE__ */ r.createElement(n.Input.Currency, {
|
|
132
|
-
className:
|
|
132
|
+
className: x.currency
|
|
133
133
|
}), /* @__PURE__ */ r.createElement(n.Input.Value, {
|
|
134
134
|
className: p(d.innerInput, ce)
|
|
135
135
|
})), /* @__PURE__ */ r.createElement(n.Error, {
|
|
@@ -137,7 +137,7 @@ const de = "_inputGroup_vuy4u_1", fe = "_currency_vuy4u_14", h = {
|
|
|
137
137
|
}, /* @__PURE__ */ r.createElement(le, null), /* @__PURE__ */ r.createElement(n.Error.Text, null)), /* @__PURE__ */ r.createElement(n.Description, {
|
|
138
138
|
className: p(re, d.description)
|
|
139
139
|
}, Ee));
|
|
140
|
-
}, Pe = () => /* @__PURE__ */ r.createElement(
|
|
140
|
+
}, Pe = () => /* @__PURE__ */ r.createElement(Ie, null);
|
|
141
141
|
export {
|
|
142
142
|
Pe as PaymentInputRAC
|
|
143
143
|
};
|