@wix/form-elements 1.62.0 → 1.64.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-Dqib2upI.js → appointment-rac-DojiZqx9.js} +35 -35
- package/dist/component/{bookings-address-rac-E-qq4-KG.js → bookings-address-rac-Bm_lQchD.js} +1 -1
- package/dist/component/{bookings-email-rac-DA_Hwn2j.js → bookings-email-rac-vwuy0kW8.js} +1 -1
- package/dist/component/{bookings-first-name-rac-o1n3lnRo.js → bookings-first-name-rac-BbWuLoeg.js} +1 -1
- package/dist/component/{bookings-header-rac-DQ0YvhxZ.js → bookings-header-rac-DVknNH29.js} +1 -1
- package/dist/component/{bookings-last-name-rac-BqL_84Sg.js → bookings-last-name-rac-BnT3Cq0b.js} +1 -1
- package/dist/component/{bookings-login-bar-rac-CAN7roRc.js → bookings-login-bar-rac-DKi-VAXc.js} +16 -16
- package/dist/component/{bookings-phone-rac-CCJVdvkd.js → bookings-phone-rac-Bfy8rheB.js} +1 -1
- package/dist/component/{bookings-rich-text-rac-CCklquEC.js → bookings-rich-text-rac-DGiBDcXw.js} +1 -1
- package/dist/component/checkbox-field-rac-CYADRY54.js +1312 -0
- package/dist/component/checkbox-group-field-headless-BDAFpX5F.js +210 -0
- package/dist/component/checkbox-group-field-rac-2YUsOmDI.js +40 -0
- package/dist/component/{checkbox-group-rac-DWPClKpf.js → checkbox-group-rac-CQf1C9H5.js} +1 -1
- package/dist/component/{checkbox-rac-CvbOws2U.js → checkbox-rac-Bjv8jZjs.js} +1 -1
- package/dist/component/{contacts-address-rac-CWFHC5LT.js → contacts-address-rac-BBTiEec9.js} +1 -1
- package/dist/component/{contacts-birthdate-rac-DPmJPp8M.js → contacts-birthdate-rac-XReeFHVW.js} +1 -1
- package/dist/component/{contacts-company-rac-UWP9uDqI.js → contacts-company-rac-B-fUQszu.js} +1 -1
- package/dist/component/{contacts-email-rac-BCkkWYhr.js → contacts-email-rac-DBtcCcsV.js} +1 -1
- package/dist/component/{contacts-first-name-rac-KNRf92yT.js → contacts-first-name-rac-mkwU3706.js} +1 -1
- package/dist/component/{contacts-last-name-rac-C_EotEpo.js → contacts-last-name-rac-DY5N-AZx.js} +1 -1
- package/dist/component/{contacts-phone-rac-DJGEWLsl.js → contacts-phone-rac-Ce1rMz_z.js} +1 -1
- package/dist/component/{contacts-position-rac-s1pZ662O.js → contacts-position-rac-B65H8PDu.js} +1 -1
- package/dist/component/contacts-subscribe-rac-BxO8rIyL.js +13 -0
- package/dist/component/{contacts-tax-id-rac-3MUvKEqW.js → contacts-tax-id-rac-Jtt0ySK2.js} +1 -1
- package/dist/component/{date-availability-CRsSX5_d.js → date-availability-B8UwvTJa.js} +1 -1
- package/dist/component/{date-input-field-rac-DPo7waqI.js → date-input-field-rac-RL2a0xoD.js} +23 -23
- package/dist/component/{date-input-rac-DsY8ehb1.js → date-input-rac-ak3G7V07.js} +1 -1
- package/dist/component/{date-picker-field-rac-BtzlxVDB.js → date-picker-field-rac-SL_Roltf.js} +31 -31
- package/dist/component/{date-picker-rac-C-Aw6W87.js → date-picker-rac-ByrM0YIX.js} +1 -1
- package/dist/component/{date-time-input-field-rac-zre1vJ2m.js → date-time-input-field-rac-DOE7xcKi.js} +87 -87
- package/dist/component/{date-time-input-rac-CUvTUzbT.js → date-time-input-rac-BA-GyrAc.js} +1 -1
- package/dist/component/{dext-checkbox-group-rac-D4mhJU8E.js → dext-checkbox-group-rac-EwUnBO80.js} +2 -2
- package/dist/component/{dext-checkbox-rac-BeYmKpAZ.js → dext-checkbox-rac-CIRKi4B5.js} +1 -1
- package/dist/component/{dext-date-picker-rac-Mr0M3sNQ.js → dext-date-picker-rac-BYO_Q1zM.js} +1 -1
- package/dist/component/{dext-date-time-input-rac-dgxfrHUw.js → dext-date-time-input-rac-BOahPeaH.js} +1 -1
- package/dist/component/{dext-dropdown-rac-CdZOoA5M.js → dext-dropdown-rac-sTD_r-0H.js} +1 -1
- package/dist/component/{dext-email-rac-TBiHlKjv.js → dext-email-rac-e-2_h3he.js} +1 -1
- package/dist/component/{dext-number-input-rac-S78swyZ9.js → dext-number-input-rac-D6LACzWl.js} +1 -1
- package/dist/component/{dext-phone-rac-BhIaSHez.js → dext-phone-rac-kUycy5Od.js} +1 -1
- package/dist/component/{dext-radio-group-rac-B4xG4N8A.js → dext-radio-group-rac-DPD2UkrV.js} +2 -2
- package/dist/component/{dext-rating-input-rac-Bp2Pi5cP.js → dext-rating-input-rac-DUsnrl9W.js} +1 -1
- package/dist/component/{dext-tags-rac-Bnjgmyk-.js → dext-tags-rac-D6z69HuO.js} +2 -2
- package/dist/component/{dext-text-area-rac-f1nJTM_n.js → dext-text-area-rac-C-DVtFJ1.js} +1 -1
- package/dist/component/{dext-text-input-rac-B9m6oI-e.js → dext-text-input-rac-CIa2MdC6.js} +1 -1
- package/dist/component/{dext-url-input-rac-CfEUdRdY.js → dext-url-input-rac-8rVVW5us.js} +1 -1
- package/dist/component/{donation-rac-BqKbQD_H.js → donation-rac-BjmSBabc.js} +62 -62
- package/dist/component/{dropdown-field-headless-CzoD076g.js → dropdown-field-headless-DReo519l.js} +5 -5
- package/dist/component/{dropdown-field-rac-5kD98Ubc.js → dropdown-field-rac-DzrjA2O6.js} +7 -7
- package/dist/component/{dropdown-rac-C9NpsRYi.js → dropdown-rac-CS7oLTp_.js} +1 -1
- package/dist/component/{ecom-address-rac-DdvJEnAO.js → ecom-address-rac-EIb88J_6.js} +1 -1
- package/dist/component/{ecom-subscription-checkbox-rac-D7Lf1ETL.js → ecom-subscription-checkbox-rac-CE0Ks6qS.js} +5 -5
- package/dist/component/{email-input-field-rac-DUordV5X.js → email-input-field-rac-BScZxYHw.js} +47 -47
- package/dist/component/{events-repeater-rac-B1yDrnvJ.js → events-repeater-rac-Y0rH2Jli.js} +66 -66
- package/dist/component/{events-rsvp-rac-B65NtAMH.js → events-rsvp-rac-BiAYVv_b.js} +12 -12
- package/dist/component/{field-error-headless-DP4WSQU3.js → field-error-headless-DrnFrGun.js} +4 -4
- package/dist/component/{field-label-headless-BKmi7Fjg.js → field-label-headless-BIYf1BIh.js} +7 -7
- package/dist/component/field-rac.module-CWkwwhq4.js +21 -0
- package/dist/component/{file-upload-rac-DAg_G0_l.js → file-upload-rac-br--tZLp.js} +83 -83
- package/dist/component/{fixed-payment-rac-yO1w1gE2.js → fixed-payment-rac-XEtrsaMy.js} +15 -15
- package/dist/component/{form-D6A2hUbV.js → form-9yjqDnxY.js} +2719 -2709
- package/dist/component/form-element-classes-KRzHUNLu.js +57 -0
- package/dist/component/form.css +1 -1
- package/dist/component/form.js +1 -1
- package/dist/component/{header-field-rac-D3Bi6tTS.js → header-field-rac-CLELgzqY.js} +5 -5
- package/dist/component/{header-rac-Blv89pdS.js → header-rac-D8KGkVVp.js} +1 -1
- package/dist/component/{image-choice-rac-BLUZRNm0.js → image-choice-rac-Cl09CLP4.js} +30 -30
- package/dist/component/{index-BiYk1mJi.js → index-C4y71e1i.js} +2 -2
- package/dist/component/{index-Cv3_acT1.js → index-PHkE0Ru4.js} +4 -4
- package/dist/component/isObjectLike-srCDplej.js +86 -0
- package/dist/component/multiline-address-field-rac-CsBLI9y-.js +1613 -0
- package/dist/component/{multiline-address-rac-B9yHNebZ.js → multiline-address-rac-DFDPFfXh.js} +1 -1
- package/dist/component/{number-input-field-rac-SaC7jFUi.js → number-input-field-rac-DZRR7gdt.js} +19 -19
- package/dist/component/{number-input-rac-KYcJJPrs.js → number-input-rac-BCS5lkff.js} +1 -1
- package/dist/component/{password-rac-CD5bSL2g.js → password-rac-ClDGgR3E.js} +27 -27
- package/dist/component/{payment-input-rac-BlAscmFz.js → payment-input-rac-COydWmUE.js} +34 -34
- package/dist/component/{phone-input-field-rac-D-AosrgV.js → phone-input-field-rac-DYCibqe1.js} +54 -54
- package/dist/component/{phone-rac-DXLYlz5G.js → phone-rac-BS-dmWkJ.js} +1 -1
- package/dist/component/{product-list-rac-CGt4Gnj4.js → product-list-rac-hxOhaA-r.js} +84 -84
- package/dist/component/quiz-radio-group-rac-BT-YZO2Q.js +13 -0
- package/dist/component/{radio-group-field-rac-D8NS7qDq.js → radio-group-field-rac-DKqWnMBJ.js} +3 -3
- package/dist/component/{radio-group-field-rac.module-wK26tCZq.js → radio-group-field-rac.module-BwUynK_5.js} +9 -9
- package/dist/component/{radio-group-rac-HalDjwk1.js → radio-group-rac-DHURQZKK.js} +1 -1
- package/dist/component/{rating-input-field-rac-BBhMkSyL.js → rating-input-field-rac-CZRdSVrf.js} +37 -37
- package/dist/component/{rating-input-rac-BpgFnNoD.js → rating-input-rac-BaH52DYm.js} +1 -1
- package/dist/component/{rich-content-rac.module-BgJ2fteu.js → rich-content-rac.module-ILBfxEmN.js} +4 -4
- package/dist/component/{rich-text-field-rac-BZfCgvHc.js → rich-text-field-rac-B58q8Is7.js} +7 -7
- package/dist/component/{rich-text-rac-CG3V04Gr.js → rich-text-rac-DGbZh1eX.js} +1 -1
- package/dist/component/{service-dropdown-rac-Bc_y-R5O.js → service-dropdown-rac-DUiNIbdv.js} +42 -42
- package/dist/component/{services-multi-choice-rac-BeBdZpRV.js → services-multi-choice-rac-B7y9s2l8.js} +29 -29
- package/dist/component/{signature-rac-DNdpHxFp.js → signature-rac-CydpvQJZ.js} +37 -37
- package/dist/component/{submit-button-rac-Bogk1xYc.js → submit-button-rac-OO53h4H8.js} +8 -8
- package/dist/component/{tags-field-rac-COJG3T_9.js → tags-field-rac-eX3d3JEH.js} +50 -50
- package/dist/component/{tags-rac-DsaUqJ4w.js → tags-rac-CdIB_48Z.js} +1 -1
- package/dist/component/{text-area-field-rac-BVq5p83p.js → text-area-field-rac-Bir5Q7gz.js} +22 -22
- package/dist/component/{text-area-rac-D-uiOy62.js → text-area-rac-Ct1UNU04.js} +1 -1
- package/dist/component/{text-input-field-rac-wYvY_eBR.js → text-input-field-rac-onGUXC9J.js} +6 -6
- package/dist/component/{text-input-headless-BsL6OYhp.js → text-input-headless-Bs9m7QFg.js} +10 -10
- package/dist/component/{text-input-rac-Bu8kXhrN.js → text-input-rac-DK4nEw4D.js} +1 -1
- package/dist/component/{time-input-rac-PWXUi1qL.js → time-input-rac-BCG9ktFa.js} +40 -40
- package/dist/component/{url-input-field-rac-B4qgrssx.js → url-input-field-rac-mUkrVTcL.js} +25 -25
- package/dist/component/{url-input-rac-Bo51kTsG.js → url-input-rac-Cl7LFYlr.js} +1 -1
- package/dist/component/{use-service-options-base-Du6B6AP9.js → use-service-options-base-BYVuKRj2.js} +8 -8
- package/dist/form.d.ts +3 -1
- package/package.json +2 -14
- package/dist/component/checkbox-field-rac-DhAEMdL9.js +0 -625
- package/dist/component/checkbox-group-field-headless-EGVW3vG0.js +0 -204
- package/dist/component/checkbox-group-field-rac-DUDWNOwV.js +0 -33
- package/dist/component/contacts-subscribe-rac-D_2wIX9p.js +0 -13
- package/dist/component/field-rac.module-DtugsLiL.js +0 -21
- package/dist/component/form-element-classes-Bi-nNM8q.js +0 -55
- package/dist/component/isObject-BAwJJxQ3.js +0 -34
- package/dist/component/multiline-address-field-rac-_Sb56AEM.js +0 -1574
- package/dist/component/quiz-radio-group-rac-DaStzNZZ.js +0 -13
package/dist/component/{phone-input-field-rac-D-AosrgV.js → phone-input-field-rac-DYCibqe1.js}
RENAMED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import { RicosViewer as ye } from "@wix/ricos/viewer";
|
|
2
2
|
import b from "classnames";
|
|
3
|
-
import t, { useMemo as B, useState as
|
|
4
|
-
import {
|
|
3
|
+
import t, { useMemo as B, useState as V, useRef as v, useEffect as w, useCallback as Z, createContext as te, useContext as q } from "react";
|
|
4
|
+
import { a2 as Ee, as as P, ab as ne, ar as fe, ai as M, af as oe, ak as he } from "./form-9yjqDnxY.js";
|
|
5
5
|
import { UNSAFE_PortalProvider as ge } from "react-aria";
|
|
6
|
-
import { Dialog as re, OverlayTriggerStateContext as be, ModalOverlay as _e, Modal as Ne, SearchField as Oe, ListBoxItem as Se, Group as
|
|
6
|
+
import { Dialog as re, OverlayTriggerStateContext as be, ModalOverlay as _e, Modal as Ne, SearchField as Oe, ListBoxItem as Se, Group as J, DialogTrigger as Le, Select as Ie, Input as ae, ListBox as ve, Autocomplete as Pe } from "react-aria-components";
|
|
7
7
|
import { f as h, a as ce } from "./find-child-C60k4CxG.js";
|
|
8
|
-
import { D as Fe, E as De } from "./field-error-headless-
|
|
9
|
-
import { L as Re } from "./field-label-headless-
|
|
8
|
+
import { D as Fe, E as De } from "./field-error-headless-DrnFrGun.js";
|
|
9
|
+
import { L as Re } from "./field-label-headless-BIYf1BIh.js";
|
|
10
10
|
import { N as xe, S as Be } from "./non-modal-popover-DtIMXHbe.js";
|
|
11
11
|
import { u as Me } from "./use-invoke-callback-UH73A_J3.js";
|
|
12
12
|
import se, { AsYouType as $e, isValidPhoneNumber as Ae, isSupportedCountry as Te } from "libphonenumber-js";
|
|
13
13
|
import "libphonenumber-js/metadata.min.json";
|
|
14
|
-
import { C as
|
|
14
|
+
import { C as Q } from "./calling-country-codes-PyWuOTmF.js";
|
|
15
15
|
import { C as we } from "./chevron-down-icon-CcpVm6B-.js";
|
|
16
16
|
import { E as Ue } from "./error-icon-hZxQ6DEy.js";
|
|
17
|
-
import { H as
|
|
18
|
-
import { s as _ } from "./field-rac.module-
|
|
19
|
-
import {
|
|
17
|
+
import { H as W } from "./custom-focus-class-_483Pkwp.js";
|
|
18
|
+
import { s as _ } from "./field-rac.module-CWkwwhq4.js";
|
|
19
|
+
import { t as ke, J as Ve, s as qe, w as Ge, n as He, j as Ye } from "./form-element-classes-KRzHUNLu.js";
|
|
20
20
|
function X(e) {
|
|
21
21
|
const n = e ? se(e) : void 0, r = n == null ? void 0 : n.country;
|
|
22
22
|
if (r)
|
|
@@ -24,7 +24,7 @@ function X(e) {
|
|
|
24
24
|
const o = new $e();
|
|
25
25
|
return e && o.input(e), o.getCountry();
|
|
26
26
|
}
|
|
27
|
-
function
|
|
27
|
+
function G(e) {
|
|
28
28
|
var n;
|
|
29
29
|
return e && ((n = Ee.getCountryByKey(e)) == null ? void 0 : n.dialCode);
|
|
30
30
|
}
|
|
@@ -41,10 +41,10 @@ function ee(e, n) {
|
|
|
41
41
|
}
|
|
42
42
|
return e;
|
|
43
43
|
}
|
|
44
|
-
function
|
|
44
|
+
function je() {
|
|
45
45
|
const { t: e } = P(), { language: n } = ne();
|
|
46
|
-
return B(() => Object.keys(
|
|
47
|
-
const c =
|
|
46
|
+
return B(() => Object.keys(Q).reduce((o, a) => {
|
|
47
|
+
const c = Q[a], l = G(c), u = e(`locale-dataset.countries.${c.toUpperCase()}`);
|
|
48
48
|
return l && Te(a) && o.push({
|
|
49
49
|
countryName: u,
|
|
50
50
|
longCountryCode: c,
|
|
@@ -56,18 +56,18 @@ function ze() {
|
|
|
56
56
|
n
|
|
57
57
|
]);
|
|
58
58
|
}
|
|
59
|
-
function
|
|
59
|
+
function ze(e, n) {
|
|
60
60
|
return e.filter((r) => n && n.length > 0 ? n.includes(r.shortCountryCode) : !0);
|
|
61
61
|
}
|
|
62
|
-
function
|
|
62
|
+
function Ke(e, n) {
|
|
63
63
|
const { countryName: r, callingCode: o, shortCountryCode: a } = e;
|
|
64
|
-
return !!(
|
|
64
|
+
return !!(k(r, n) || k(o, n) || k(a, n));
|
|
65
65
|
}
|
|
66
|
-
function
|
|
66
|
+
function k(e, n) {
|
|
67
67
|
return e.toLowerCase().includes(n.toLowerCase());
|
|
68
68
|
}
|
|
69
|
-
function
|
|
70
|
-
const [a, c] =
|
|
69
|
+
function Ze({ value: e, defaultCountryCode: n, allowedCountryCodes: r, onChange: o }) {
|
|
70
|
+
const [a, c] = V(e || ""), l = v(U(e ?? null) ?? ""), [u, i] = V(n);
|
|
71
71
|
fe(() => {
|
|
72
72
|
c(""), l.current = "", i(n), o("");
|
|
73
73
|
});
|
|
@@ -90,7 +90,7 @@ function je({ value: e, defaultCountryCode: n, allowedCountryCodes: r, onChange:
|
|
|
90
90
|
m,
|
|
91
91
|
n
|
|
92
92
|
]);
|
|
93
|
-
const C =
|
|
93
|
+
const C = Z((d) => {
|
|
94
94
|
if (c(d), !d) {
|
|
95
95
|
l.current = "", o(null);
|
|
96
96
|
return;
|
|
@@ -103,7 +103,7 @@ function je({ value: e, defaultCountryCode: n, allowedCountryCodes: r, onChange:
|
|
|
103
103
|
}, [
|
|
104
104
|
r,
|
|
105
105
|
o
|
|
106
|
-
]), p =
|
|
106
|
+
]), p = Z((d) => {
|
|
107
107
|
i(d), c((f) => {
|
|
108
108
|
const y = U(ee(f, d));
|
|
109
109
|
return l.current = y ?? "", o(y), f;
|
|
@@ -119,12 +119,12 @@ function je({ value: e, defaultCountryCode: n, allowedCountryCodes: r, onChange:
|
|
|
119
119
|
};
|
|
120
120
|
}
|
|
121
121
|
const le = /* @__PURE__ */ te(null), N = () => {
|
|
122
|
-
const e =
|
|
122
|
+
const e = q(le);
|
|
123
123
|
if (!e)
|
|
124
124
|
throw new Error("Phone input components must be used within PhoneInput component");
|
|
125
125
|
return e;
|
|
126
|
-
}, ue = /* @__PURE__ */ te(null),
|
|
127
|
-
const e =
|
|
126
|
+
}, ue = /* @__PURE__ */ te(null), H = () => {
|
|
127
|
+
const e = q(ue);
|
|
128
128
|
if (!e)
|
|
129
129
|
throw new Error("Option sub-components must be used within Option component");
|
|
130
130
|
return e;
|
|
@@ -144,12 +144,12 @@ const le = /* @__PURE__ */ te(null), N = () => {
|
|
|
144
144
|
});
|
|
145
145
|
}, s = ({ children: e }) => {
|
|
146
146
|
var I, L;
|
|
147
|
-
const { id: n, value: r, onChange: o, FieldLayout: a, defaultCountry: c, validation: l } = M(), [u, i] =
|
|
147
|
+
const { id: n, value: r, onChange: o, FieldLayout: a, defaultCountry: c, validation: l } = M(), [u, i] = V(null), m = (L = (I = l == null ? void 0 : l.string) == null ? void 0 : I.phoneOptions) == null ? void 0 : L.allowedCountryCodes, C = je(), p = B(() => ze(C, m), [
|
|
148
148
|
C,
|
|
149
149
|
m
|
|
150
150
|
]), d = B(() => p.map((x) => x.shortCountryCode), [
|
|
151
151
|
p
|
|
152
|
-
]), { currentValue: f, selectedCountryCode: y, handlePhoneChange: O, handleCountryCodeChange: S } =
|
|
152
|
+
]), { currentValue: f, selectedCountryCode: y, handlePhoneChange: O, handleCountryCodeChange: S } = Ze({
|
|
153
153
|
value: r,
|
|
154
154
|
defaultCountryCode: c,
|
|
155
155
|
allowedCountryCodes: d,
|
|
@@ -176,8 +176,8 @@ const le = /* @__PURE__ */ te(null), N = () => {
|
|
|
176
176
|
}), F),
|
|
177
177
|
renderDescription: () => /* @__PURE__ */ t.createElement(t.Fragment, null, D, T)
|
|
178
178
|
}));
|
|
179
|
-
},
|
|
180
|
-
const { inputId: r, labelId: o } = oe(), { hasError: a, disabled: c, readOnly: l } = M(), { t: u } = P(), { selectedCountryCode: i, countries: m } = N(), C = `${r}-country`, p = i ? m.find((O) => O.shortCountryCode === i) : void 0, d = p &&
|
|
179
|
+
}, j = ({ children: e, className: n }) => {
|
|
180
|
+
const { inputId: r, labelId: o } = oe(), { hasError: a, disabled: c, readOnly: l } = M(), { t: u } = P(), { selectedCountryCode: i, countries: m } = N(), C = `${r}-country`, p = i ? m.find((O) => O.shortCountryCode === i) : void 0, d = p && G(p.longCountryCode) || "", f = u("field.phone.country-code.aria-label"), y = p ? `${f}, ${p.countryName}, ${d}` : f;
|
|
181
181
|
return /* @__PURE__ */ t.createElement(Be, {
|
|
182
182
|
isDisabled: c || l,
|
|
183
183
|
id: C,
|
|
@@ -186,20 +186,20 @@ const le = /* @__PURE__ */ te(null), N = () => {
|
|
|
186
186
|
className: n,
|
|
187
187
|
"data-invalid": a || void 0
|
|
188
188
|
}, e);
|
|
189
|
-
},
|
|
189
|
+
}, Je = ({ className: e }) => {
|
|
190
190
|
const { selectedCountryCode: n, countries: r } = N(), o = r.find((a) => a.shortCountryCode === n);
|
|
191
191
|
return o ? /* @__PURE__ */ t.createElement(Y, {
|
|
192
192
|
className: e,
|
|
193
193
|
longCountryCode: o.longCountryCode
|
|
194
194
|
}) : null;
|
|
195
|
-
},
|
|
195
|
+
}, Qe = ({ children: e, className: n }) => {
|
|
196
196
|
const { selectedCountryCode: r, countries: o } = N();
|
|
197
197
|
return o.some((c) => c.shortCountryCode === r) ? null : /* @__PURE__ */ t.createElement("span", {
|
|
198
198
|
className: n
|
|
199
199
|
}, e);
|
|
200
200
|
};
|
|
201
|
-
|
|
202
|
-
|
|
201
|
+
j.Flag = Je;
|
|
202
|
+
j.EmptyState = Qe;
|
|
203
203
|
const g = ({ children: e, className: n, "aria-label": r, placement: o, offset: a, ...c }) => {
|
|
204
204
|
const { triggerRef: l, optionsRef: u } = c, { popoverContainer: i } = N(), m = h(e, g.Search), C = /* @__PURE__ */ t.createElement(ie, null, e);
|
|
205
205
|
return /* @__PURE__ */ t.createElement(ge, {
|
|
@@ -214,8 +214,8 @@ const g = ({ children: e, className: n, "aria-label": r, placement: o, offset: a
|
|
|
214
214
|
}, m ? /* @__PURE__ */ t.createElement(re, {
|
|
215
215
|
"aria-label": r
|
|
216
216
|
}, C) : C));
|
|
217
|
-
},
|
|
218
|
-
const { optionsRef: l } = c, { selectedCountryCode: u, handleCountryCodeChange: i } = N(), m =
|
|
217
|
+
}, We = ({ children: e, className: n, overlayClassName: r, "aria-label": o, portalContainer: a = t.Fragment, ...c }) => {
|
|
218
|
+
const { optionsRef: l } = c, { selectedCountryCode: u, handleCountryCodeChange: i } = N(), m = q(be);
|
|
219
219
|
return /* @__PURE__ */ t.createElement(_e, {
|
|
220
220
|
className: r,
|
|
221
221
|
isDismissable: !0
|
|
@@ -241,7 +241,7 @@ const g = ({ children: e, className: n, "aria-label": r, placement: o, offset: a
|
|
|
241
241
|
...n,
|
|
242
242
|
renderEmptyState: c ? () => c : void 0
|
|
243
243
|
}, r.map((u) => {
|
|
244
|
-
const i =
|
|
244
|
+
const i = G(u.longCountryCode) || "";
|
|
245
245
|
return ce(o, {
|
|
246
246
|
key: u.shortCountryCode,
|
|
247
247
|
countryCode: u.shortCountryCode,
|
|
@@ -253,12 +253,12 @@ const g = ({ children: e, className: n, "aria-label": r, placement: o, offset: a
|
|
|
253
253
|
return a ? /* @__PURE__ */ t.createElement(Pe, {
|
|
254
254
|
filter: (u, i, m) => {
|
|
255
255
|
const C = r.find((p) => p.shortCountryCode === m.key);
|
|
256
|
-
return !!C &&
|
|
256
|
+
return !!C && Ke(C, i);
|
|
257
257
|
}
|
|
258
258
|
}, a, l) : l;
|
|
259
259
|
};
|
|
260
260
|
g.Popover = g;
|
|
261
|
-
g.Modal =
|
|
261
|
+
g.Modal = We;
|
|
262
262
|
const me = ({ className: e, children: n, "aria-label": r }) => /* @__PURE__ */ t.createElement(Oe, {
|
|
263
263
|
className: e,
|
|
264
264
|
"aria-label": r,
|
|
@@ -288,18 +288,18 @@ const $ = ({ children: e, className: n, ...r }) => {
|
|
|
288
288
|
value: u
|
|
289
289
|
}, i));
|
|
290
290
|
}, Ce = ({ className: e }) => {
|
|
291
|
-
const { longCountryCode: n } =
|
|
291
|
+
const { longCountryCode: n } = H();
|
|
292
292
|
return /* @__PURE__ */ t.createElement(Y, {
|
|
293
293
|
className: e,
|
|
294
294
|
longCountryCode: n
|
|
295
295
|
});
|
|
296
296
|
}, de = ({ className: e }) => {
|
|
297
|
-
const { countryName: n } =
|
|
297
|
+
const { countryName: n } = H();
|
|
298
298
|
return /* @__PURE__ */ t.createElement("span", {
|
|
299
299
|
className: e
|
|
300
300
|
}, n);
|
|
301
301
|
}, pe = ({ className: e }) => {
|
|
302
|
-
const { dialingCode: n } =
|
|
302
|
+
const { dialingCode: n } = H();
|
|
303
303
|
return /* @__PURE__ */ t.createElement("span", {
|
|
304
304
|
className: e
|
|
305
305
|
}, n);
|
|
@@ -336,13 +336,13 @@ const tt = ({ className: e }) => {
|
|
|
336
336
|
a.current || (a.current = !0, C == null || C());
|
|
337
337
|
},
|
|
338
338
|
onBlur: (L) => {
|
|
339
|
-
var
|
|
339
|
+
var z, K;
|
|
340
340
|
const x = L.relatedTarget;
|
|
341
|
-
!((
|
|
341
|
+
!((z = r.current) != null && z.contains(x)) && !((K = o.current) != null && K.contains(x)) && (a.current = !1, d());
|
|
342
342
|
}
|
|
343
343
|
};
|
|
344
344
|
if (S.length === 1)
|
|
345
|
-
return /* @__PURE__ */ t.createElement(
|
|
345
|
+
return /* @__PURE__ */ t.createElement(J, {
|
|
346
346
|
ref: r,
|
|
347
347
|
className: n,
|
|
348
348
|
isDisabled: c,
|
|
@@ -355,7 +355,7 @@ const tt = ({ className: e }) => {
|
|
|
355
355
|
triggerRef: r,
|
|
356
356
|
optionsRef: o
|
|
357
357
|
}));
|
|
358
|
-
return /* @__PURE__ */ t.createElement(
|
|
358
|
+
return /* @__PURE__ */ t.createElement(J, {
|
|
359
359
|
ref: r,
|
|
360
360
|
className: n,
|
|
361
361
|
isDisabled: c,
|
|
@@ -373,7 +373,7 @@ const tt = ({ className: e }) => {
|
|
|
373
373
|
};
|
|
374
374
|
s.Label = Re;
|
|
375
375
|
s.Control = nt;
|
|
376
|
-
s.CountryButton =
|
|
376
|
+
s.CountryButton = j;
|
|
377
377
|
s.CountryOptions = g;
|
|
378
378
|
s.PhoneNumber = tt;
|
|
379
379
|
s.Description = Fe;
|
|
@@ -420,17 +420,17 @@ const ot = (e) => /* @__PURE__ */ t.createElement("svg", {
|
|
|
420
420
|
}), _t = () => /* @__PURE__ */ t.createElement("span", {
|
|
421
421
|
className: E.chevron,
|
|
422
422
|
"aria-hidden": "true"
|
|
423
|
-
}, /* @__PURE__ */ t.createElement(we, null)),
|
|
423
|
+
}, /* @__PURE__ */ t.createElement(we, null)), Vt = () => {
|
|
424
424
|
const { t: e } = P(), { isMobile: n, PortalContainer: r } = ne(), o = /* @__PURE__ */ t.createElement(s.CountryOptions.Search, {
|
|
425
425
|
className: E.countrySearchContainer,
|
|
426
426
|
"aria-label": e("field.phone.country-search-input.aria-label")
|
|
427
427
|
}, /* @__PURE__ */ t.createElement(rt, {
|
|
428
428
|
className: E.searchIcon
|
|
429
429
|
}), /* @__PURE__ */ t.createElement(s.CountryOptions.Search.Input, {
|
|
430
|
-
className: b(E.countrySearch,
|
|
430
|
+
className: b(E.countrySearch, W),
|
|
431
431
|
placeholder: e("field.phone.country-search-input.placeholder")
|
|
432
432
|
})), a = /* @__PURE__ */ t.createElement(s.CountryOptions.EmptyState, null, e("field.phone.country-selector-dropdown.no-result")), c = /* @__PURE__ */ t.createElement(s.CountryOptions.Option, {
|
|
433
|
-
className: b(_.selectOption, _.selectOptionWithoutFocusRing, E.option,
|
|
433
|
+
className: b(_.selectOption, _.selectOptionWithoutFocusRing, E.option, W)
|
|
434
434
|
}, /* @__PURE__ */ t.createElement(s.CountryOptions.Option.Flag, {
|
|
435
435
|
className: E.flag
|
|
436
436
|
}), /* @__PURE__ */ t.createElement(s.CountryOptions.Option.Name, {
|
|
@@ -439,11 +439,11 @@ const ot = (e) => /* @__PURE__ */ t.createElement("svg", {
|
|
|
439
439
|
className: E.code
|
|
440
440
|
}));
|
|
441
441
|
return /* @__PURE__ */ t.createElement(s, null, /* @__PURE__ */ t.createElement(s.Label, {
|
|
442
|
-
className: b(
|
|
442
|
+
className: b(ke, _.label)
|
|
443
443
|
}, /* @__PURE__ */ t.createElement(s.Label.Required, {
|
|
444
|
-
className: b(
|
|
444
|
+
className: b(Ve, _.requiredMark)
|
|
445
445
|
})), /* @__PURE__ */ t.createElement(s.Control, {
|
|
446
|
-
className: b(
|
|
446
|
+
className: b(qe, _.input, E.control)
|
|
447
447
|
}, /* @__PURE__ */ t.createElement(s.CountryButton, {
|
|
448
448
|
className: E.countryButton
|
|
449
449
|
}, /* @__PURE__ */ t.createElement(s.CountryButton.Flag, {
|
|
@@ -458,16 +458,16 @@ const ot = (e) => /* @__PURE__ */ t.createElement("svg", {
|
|
|
458
458
|
portalContainer: r,
|
|
459
459
|
"aria-label": e("field.phone.country-code.aria-label")
|
|
460
460
|
}, o, a, c) : /* @__PURE__ */ t.createElement(s.CountryOptions.Popover, {
|
|
461
|
-
className: b(
|
|
461
|
+
className: b(Ge, _.selectPopover, E.countryOptions),
|
|
462
462
|
placement: "bottom start",
|
|
463
463
|
offset: 0,
|
|
464
464
|
"aria-label": e("field.phone.country-code.aria-label")
|
|
465
465
|
}, o, a, c)), /* @__PURE__ */ t.createElement(s.Error, {
|
|
466
|
-
className: b(
|
|
466
|
+
className: b(He, _.error)
|
|
467
467
|
}, /* @__PURE__ */ t.createElement(Ue, null), /* @__PURE__ */ t.createElement(s.Error.Text, null)), /* @__PURE__ */ t.createElement(s.Description, {
|
|
468
468
|
className: b(Ye, _.description)
|
|
469
469
|
}, bt));
|
|
470
470
|
};
|
|
471
471
|
export {
|
|
472
|
-
|
|
472
|
+
Vt as P
|
|
473
473
|
};
|
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
import t, { useMemo as
|
|
2
|
-
import { RicosViewer as
|
|
3
|
-
import
|
|
1
|
+
import t, { useMemo as G, useCallback as q, useRef as B } from "react";
|
|
2
|
+
import { RicosViewer as H } from "@wix/ricos/viewer";
|
|
3
|
+
import _ from "classnames";
|
|
4
4
|
import { CheckboxField as K, CheckboxButton as j, NumberField as J, Group as W, Button as U, Input as X } from "react-aria-components";
|
|
5
|
-
import {
|
|
6
|
-
import { f as
|
|
7
|
-
import { L as te, g as ne } from "./field-label-headless-
|
|
5
|
+
import { ai as M, af as Y, ab as w, as as Z, ak as ee } from "./form-9yjqDnxY.js";
|
|
6
|
+
import { f as b, a as L } from "./find-child-C60k4CxG.js";
|
|
7
|
+
import { L as te, g as ne } from "./field-label-headless-BIYf1BIh.js";
|
|
8
8
|
import { f as ae } from "./format-currency-BwShJ9vM.js";
|
|
9
|
-
import { D as oe, E as re } from "./field-error-headless-
|
|
10
|
-
import { F as
|
|
11
|
-
import { g as
|
|
9
|
+
import { D as oe, E as re } from "./field-error-headless-DrnFrGun.js";
|
|
10
|
+
import { F as ie } from "./fieldset-headless-CD3fds9J.js";
|
|
11
|
+
import { g as le } from "./payment-field-utils-DobiK5Xh.js";
|
|
12
12
|
import { E as se } from "./error-icon-hZxQ6DEy.js";
|
|
13
|
-
import { s as
|
|
14
|
-
import {
|
|
15
|
-
import { o as
|
|
16
|
-
var
|
|
13
|
+
import { s as S } from "./field-rac.module-CWkwwhq4.js";
|
|
14
|
+
import { t as ce, J as ue, x as me, A as pe, z as de, y as Ee, s as ye, n as fe, j as _e } from "./form-element-classes-KRzHUNLu.js";
|
|
15
|
+
import { o as Q } from "./options-rac.module-KM-VT_KY.js";
|
|
16
|
+
var be = /* @__PURE__ */ (function(e) {
|
|
17
17
|
return e.crop = "CROP", e.fit = "FIT", e;
|
|
18
18
|
})({}), k = /* @__PURE__ */ (function(e) {
|
|
19
19
|
return e.oneByOne = "one-by-one", e.onlyOne = "only-one", e.many = "many", e;
|
|
20
20
|
})({});
|
|
21
|
-
function
|
|
22
|
-
return e === 1 ? k.onlyOne : o != null && o.length && o.every((
|
|
21
|
+
function Ie({ maxItems: e, products: o } = {}) {
|
|
22
|
+
return e === 1 ? k.onlyOne : o != null && o.length && o.every((i) => {
|
|
23
23
|
var n;
|
|
24
|
-
return typeof ((n =
|
|
24
|
+
return typeof ((n = i.quantityLimit) == null ? void 0 : n.maximum) > "u";
|
|
25
25
|
}) ? k.many : k.oneByOne;
|
|
26
26
|
}
|
|
27
27
|
const a = ({ children: e }) => {
|
|
28
28
|
var D;
|
|
29
|
-
const { id: o, value:
|
|
30
|
-
|
|
31
|
-
]),
|
|
32
|
-
const
|
|
33
|
-
...
|
|
29
|
+
const { id: o, value: i, onChange: n, disabled: r, readOnly: c, required: E, onBlur: I, onFocus: l, hasError: u, validation: m, FieldLayout: p } = M(), { inputId: T, labelId: v, ariaDescribedBy: N } = Y(), y = b(e, a.Label), g = b(e, a.Options), A = b(e, a.Description), O = b(e, a.Error), s = G(() => i || [], [
|
|
30
|
+
i
|
|
31
|
+
]), x = Ie((D = m == null ? void 0 : m.predefined) == null ? void 0 : D.paymentOptions) === k.many, F = q((P, C) => {
|
|
32
|
+
const f = s.filter(($) => $.productId !== P.productId), z = C ? [
|
|
33
|
+
...f,
|
|
34
34
|
P
|
|
35
|
-
] :
|
|
36
|
-
n == null || n(
|
|
35
|
+
] : f;
|
|
36
|
+
n == null || n(z);
|
|
37
37
|
}, [
|
|
38
38
|
s,
|
|
39
39
|
n
|
|
@@ -41,76 +41,76 @@ const a = ({ children: e }) => {
|
|
|
41
41
|
return /* @__PURE__ */ t.createElement(p, {
|
|
42
42
|
fieldId: o,
|
|
43
43
|
renderLabel: () => y,
|
|
44
|
-
renderInput: () => /* @__PURE__ */ t.createElement(
|
|
45
|
-
id:
|
|
44
|
+
renderInput: () => /* @__PURE__ */ t.createElement(ie, {
|
|
45
|
+
id: T,
|
|
46
46
|
ariaLabelledBy: v,
|
|
47
47
|
ariaDescribedBy: N,
|
|
48
48
|
required: E,
|
|
49
|
-
onBlur:
|
|
50
|
-
onFocus:
|
|
49
|
+
onBlur: I,
|
|
50
|
+
onFocus: l
|
|
51
51
|
}, g ? L(g, {
|
|
52
|
-
allowMany:
|
|
52
|
+
allowMany: x,
|
|
53
53
|
productValues: s,
|
|
54
54
|
onProductChange: F,
|
|
55
55
|
disabled: r,
|
|
56
56
|
readOnly: c,
|
|
57
57
|
hasError: u
|
|
58
58
|
}) : null),
|
|
59
|
-
renderDescription: () => /* @__PURE__ */ t.createElement(t.Fragment, null, O,
|
|
59
|
+
renderDescription: () => /* @__PURE__ */ t.createElement(t.Fragment, null, O, A)
|
|
60
60
|
});
|
|
61
|
-
}, V = ({ children: e, className: o, ...
|
|
62
|
-
const { allowMany: n, productValues: r, onProductChange: c, disabled: E, readOnly:
|
|
61
|
+
}, V = ({ children: e, className: o, ...i }) => {
|
|
62
|
+
const { allowMany: n, productValues: r, onProductChange: c, disabled: E, readOnly: I, hasError: l } = i, { options: u, validation: m, imageResize: p } = M(), { currency: T } = w(), { t: v } = Z(), N = b(e, a.Option);
|
|
63
63
|
return /* @__PURE__ */ t.createElement("div", {
|
|
64
64
|
className: o
|
|
65
65
|
}, u == null ? void 0 : u.map((y, g) => {
|
|
66
|
-
var R,
|
|
67
|
-
const
|
|
66
|
+
var R, x, F, D, P;
|
|
67
|
+
const A = ((P = (D = (F = (x = (R = m == null ? void 0 : m.predefined) == null ? void 0 : R.paymentOptions) == null ? void 0 : x.products) == null ? void 0 : F.find((C) => C.id === y.value)) == null ? void 0 : D.fixedPriceOptions) == null ? void 0 : P.price) || "0", O = le(v, T), s = r.find((C) => C.productId === y.value);
|
|
68
68
|
return L(N, {
|
|
69
69
|
key: y.id || y.value || y.label,
|
|
70
70
|
option: y,
|
|
71
|
-
price:
|
|
71
|
+
price: A,
|
|
72
72
|
quantity: s == null ? void 0 : s.quantity,
|
|
73
73
|
isSelected: !!s,
|
|
74
74
|
allowMany: n,
|
|
75
75
|
onProductChange: c,
|
|
76
76
|
disabled: E,
|
|
77
|
-
readOnly:
|
|
78
|
-
hasError:
|
|
77
|
+
readOnly: I,
|
|
78
|
+
hasError: l,
|
|
79
79
|
currencyAriaLabel: O,
|
|
80
80
|
imageResize: p,
|
|
81
81
|
isFirst: g === 0
|
|
82
82
|
});
|
|
83
83
|
}));
|
|
84
|
-
}, d = ({ children: e, className: o, ...
|
|
85
|
-
const { option: n, price: r, quantity: c = 0, isSelected: E, allowMany:
|
|
84
|
+
}, d = ({ children: e, className: o, ...i }) => {
|
|
85
|
+
const { option: n, price: r, quantity: c = 0, isSelected: E, allowMany: I, onProductChange: l, disabled: u, readOnly: m, hasError: p, currencyAriaLabel: T, imageResize: v, isFirst: N } = i, { id: y } = M(), g = B(null), A = B(null), O = b(e, d.Image), s = b(e, d.Label), R = b(e, d.Price), x = b(e, d.Input), F = b(e, d.Quantity);
|
|
86
86
|
ee(() => {
|
|
87
|
-
var
|
|
88
|
-
N && ((
|
|
87
|
+
var f;
|
|
88
|
+
N && ((f = g.current ?? A.current) == null || f.focus({
|
|
89
89
|
preventScroll: !0
|
|
90
90
|
}));
|
|
91
91
|
}, y);
|
|
92
|
-
const D =
|
|
93
|
-
|
|
92
|
+
const D = q((f) => {
|
|
93
|
+
l({
|
|
94
94
|
productId: n.value,
|
|
95
95
|
price: r,
|
|
96
96
|
quantity: 1
|
|
97
|
-
},
|
|
97
|
+
}, f);
|
|
98
98
|
}, [
|
|
99
|
-
|
|
99
|
+
l,
|
|
100
100
|
n.value,
|
|
101
101
|
r
|
|
102
|
-
]), P =
|
|
103
|
-
|
|
102
|
+
]), P = q((f) => {
|
|
103
|
+
l({
|
|
104
104
|
productId: n.value,
|
|
105
105
|
price: r,
|
|
106
|
-
quantity:
|
|
107
|
-
},
|
|
106
|
+
quantity: f
|
|
107
|
+
}, f > 0);
|
|
108
108
|
}, [
|
|
109
|
-
|
|
109
|
+
l,
|
|
110
110
|
n.value,
|
|
111
111
|
r
|
|
112
|
-
]), C = `${n.label} ${
|
|
113
|
-
return
|
|
112
|
+
]), C = `${n.label} ${T} ${r}`;
|
|
113
|
+
return I ? /* @__PURE__ */ t.createElement("div", {
|
|
114
114
|
className: o,
|
|
115
115
|
"data-hook": "product"
|
|
116
116
|
}, O ? L(O, {
|
|
@@ -127,7 +127,7 @@ const a = ({ children: e }) => {
|
|
|
127
127
|
readOnly: m,
|
|
128
128
|
hasError: p,
|
|
129
129
|
ariaLabel: C,
|
|
130
|
-
inputRef: N ?
|
|
130
|
+
inputRef: N ? A : void 0
|
|
131
131
|
}) : null) : /* @__PURE__ */ t.createElement(K, {
|
|
132
132
|
isSelected: E,
|
|
133
133
|
onChange: D,
|
|
@@ -146,32 +146,32 @@ const a = ({ children: e }) => {
|
|
|
146
146
|
label: n.label
|
|
147
147
|
}) : null, R ? L(R, {
|
|
148
148
|
price: r
|
|
149
|
-
}) : null,
|
|
149
|
+
}) : null, x));
|
|
150
150
|
}, Le = ({ className: e, ...o }) => {
|
|
151
|
-
var
|
|
152
|
-
const { option:
|
|
151
|
+
var l;
|
|
152
|
+
const { option: i, imageResize: n } = o, r = (l = i.media) == null ? void 0 : l.image;
|
|
153
153
|
if (!r)
|
|
154
154
|
return null;
|
|
155
|
-
const c = n ===
|
|
155
|
+
const c = n === be.fit, E = ne(r, 96, 96, c ? "fit" : "fill");
|
|
156
156
|
if (!E)
|
|
157
157
|
return null;
|
|
158
|
-
const
|
|
158
|
+
const I = r.altText || i.label || "";
|
|
159
159
|
return /* @__PURE__ */ t.createElement("img", {
|
|
160
160
|
className: e,
|
|
161
161
|
src: E,
|
|
162
|
-
alt:
|
|
162
|
+
alt: I,
|
|
163
163
|
"data-fit": c ? "contain" : "cover",
|
|
164
164
|
"data-hook": "product-image"
|
|
165
165
|
});
|
|
166
166
|
}, Oe = ({ className: e, ...o }) => {
|
|
167
|
-
const { label:
|
|
167
|
+
const { label: i } = o;
|
|
168
168
|
return /* @__PURE__ */ t.createElement("span", {
|
|
169
169
|
className: e,
|
|
170
170
|
"data-hook": "product-label"
|
|
171
|
-
},
|
|
171
|
+
}, i || "");
|
|
172
172
|
}, Re = ({ className: e, ...o }) => {
|
|
173
|
-
const { price:
|
|
174
|
-
amount:
|
|
173
|
+
const { price: i } = o, { currency: n, regionalFormat: r } = w(), c = ae({
|
|
174
|
+
amount: i,
|
|
175
175
|
currency: n == null ? void 0 : n.code,
|
|
176
176
|
locale: r
|
|
177
177
|
});
|
|
@@ -183,24 +183,24 @@ const a = ({ children: e }) => {
|
|
|
183
183
|
"aria-hidden": "true",
|
|
184
184
|
className: e
|
|
185
185
|
}), ge = ({ className: e, ...o }) => {
|
|
186
|
-
const { quantity:
|
|
186
|
+
const { quantity: i, onQuantityChange: n, disabled: r, readOnly: c, hasError: E, ariaLabel: I, inputRef: l } = o, u = q((p) => {
|
|
187
187
|
n(p < 0 ? 0 : p);
|
|
188
188
|
}, [
|
|
189
189
|
n
|
|
190
|
-
]), m =
|
|
190
|
+
]), m = q((p) => {
|
|
191
191
|
p.key === "Home" && (p.preventDefault(), u(0));
|
|
192
192
|
}, [
|
|
193
193
|
u
|
|
194
194
|
]);
|
|
195
195
|
return /* @__PURE__ */ t.createElement(J, {
|
|
196
|
-
value:
|
|
196
|
+
value: i,
|
|
197
197
|
onChange: u,
|
|
198
198
|
minValue: 0,
|
|
199
199
|
step: 1,
|
|
200
200
|
isDisabled: r,
|
|
201
201
|
isReadOnly: c,
|
|
202
202
|
isInvalid: E,
|
|
203
|
-
"aria-label":
|
|
203
|
+
"aria-label": I,
|
|
204
204
|
className: e,
|
|
205
205
|
"data-hook": "product-quantity"
|
|
206
206
|
}, /* @__PURE__ */ t.createElement(W, {
|
|
@@ -208,7 +208,7 @@ const a = ({ children: e }) => {
|
|
|
208
208
|
}, /* @__PURE__ */ t.createElement(U, {
|
|
209
209
|
slot: "decrement"
|
|
210
210
|
}, "-"), /* @__PURE__ */ t.createElement(X, {
|
|
211
|
-
ref:
|
|
211
|
+
ref: l
|
|
212
212
|
}), /* @__PURE__ */ t.createElement(U, {
|
|
213
213
|
slot: "increment"
|
|
214
214
|
}, "+")));
|
|
@@ -224,40 +224,40 @@ a.Options = V;
|
|
|
224
224
|
a.Option = d;
|
|
225
225
|
a.Description = oe;
|
|
226
226
|
a.Error = re;
|
|
227
|
-
const Fe = "_options_11x4v_1", De = "_option_11x4v_1", Pe = "_optionInput_11x4v_21",
|
|
227
|
+
const Fe = "_options_11x4v_1", De = "_option_11x4v_1", Pe = "_optionInput_11x4v_21", Se = "_optionImage_11x4v_32", he = "_optionLabel_11x4v_66", ve = "_optionPrice_11x4v_73", Ne = "_quantity_11x4v_87", h = {
|
|
228
228
|
options: Fe,
|
|
229
229
|
option: De,
|
|
230
230
|
optionInput: Pe,
|
|
231
|
-
optionImage:
|
|
232
|
-
optionLabel:
|
|
231
|
+
optionImage: Se,
|
|
232
|
+
optionLabel: he,
|
|
233
233
|
optionPrice: ve,
|
|
234
234
|
quantity: Ne
|
|
235
|
-
},
|
|
235
|
+
}, Ae = ({ content: e, locale: o }) => /* @__PURE__ */ t.createElement(H, {
|
|
236
236
|
content: e,
|
|
237
237
|
locale: o
|
|
238
|
-
}),
|
|
239
|
-
className:
|
|
238
|
+
}), xe = () => /* @__PURE__ */ t.createElement(a, null, /* @__PURE__ */ t.createElement(a.Label, {
|
|
239
|
+
className: _(ce, S.label)
|
|
240
240
|
}, /* @__PURE__ */ t.createElement(a.Label.Required, {
|
|
241
|
-
className:
|
|
241
|
+
className: _(ue, S.requiredMark)
|
|
242
242
|
})), /* @__PURE__ */ t.createElement(a.Options, {
|
|
243
|
-
className:
|
|
243
|
+
className: _(me, Q.options, h.options)
|
|
244
244
|
}, /* @__PURE__ */ t.createElement(a.Option, {
|
|
245
|
-
className:
|
|
245
|
+
className: _(S.checkbox, h.option)
|
|
246
246
|
}, /* @__PURE__ */ t.createElement(a.Option.Image, {
|
|
247
|
-
className:
|
|
247
|
+
className: h.optionImage
|
|
248
248
|
}), /* @__PURE__ */ t.createElement(a.Option.Label, {
|
|
249
|
-
className:
|
|
249
|
+
className: _(pe, Q.optionLabel, h.optionLabel)
|
|
250
250
|
}), /* @__PURE__ */ t.createElement(a.Option.Price, {
|
|
251
|
-
className:
|
|
251
|
+
className: _(de, h.optionPrice)
|
|
252
252
|
}), /* @__PURE__ */ t.createElement(a.Option.Input, {
|
|
253
|
-
className:
|
|
253
|
+
className: _(Ee, S.checkboxInput, h.optionInput)
|
|
254
254
|
}), /* @__PURE__ */ t.createElement(a.Option.Quantity, {
|
|
255
|
-
className:
|
|
255
|
+
className: _(ye, S.inputGroup, h.quantity)
|
|
256
256
|
}))), /* @__PURE__ */ t.createElement(a.Error, {
|
|
257
|
-
className:
|
|
257
|
+
className: _(fe, S.error)
|
|
258
258
|
}, /* @__PURE__ */ t.createElement(se, null), /* @__PURE__ */ t.createElement(a.Error.Text, null)), /* @__PURE__ */ t.createElement(a.Description, {
|
|
259
|
-
className:
|
|
260
|
-
},
|
|
259
|
+
className: _(_e, S.description)
|
|
260
|
+
}, Ae)), Je = () => /* @__PURE__ */ t.createElement(xe, null);
|
|
261
261
|
export {
|
|
262
262
|
Je as ProductListRAC
|
|
263
263
|
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import _ from "react";
|
|
2
|
+
import { R } from "./radio-group-field-rac-DKqWnMBJ.js";
|
|
3
|
+
import { D as o, C as r, B as O } from "./form-element-classes-KRzHUNLu.js";
|
|
4
|
+
const I = () => /* @__PURE__ */ _.createElement(R, {
|
|
5
|
+
classes: {
|
|
6
|
+
container: O,
|
|
7
|
+
label: r,
|
|
8
|
+
control: o
|
|
9
|
+
}
|
|
10
|
+
});
|
|
11
|
+
export {
|
|
12
|
+
I as QuizRadioGroupRAC
|
|
13
|
+
};
|