@wix/form-elements 1.178.0 → 1.179.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-BAJYXMTI.js → appointment-rac-Cd7OKdp2.js} +4 -4
- package/dist/component/{bookings-address-rac-2lId37AV.js → bookings-address-rac-BQNIrYzy.js} +1 -1
- package/dist/component/{bookings-email-rac-CGv8_DCR.js → bookings-email-rac-BlvUlm5l.js} +1 -1
- package/dist/component/{bookings-first-name-rac-X0Fkx2HW.js → bookings-first-name-rac-D32cace5.js} +1 -1
- package/dist/component/{bookings-header-rac-B0m7b03Y.js → bookings-header-rac-BvV11wt7.js} +1 -1
- package/dist/component/{bookings-last-name-rac-BOTKQnp3.js → bookings-last-name-rac-C7OatLVo.js} +1 -1
- package/dist/component/{bookings-login-bar-rac-Bh-gXHxF.js → bookings-login-bar-rac-CVryWcPV.js} +1 -1
- package/dist/component/{bookings-phone-rac-D3uORVqg.js → bookings-phone-rac-CpRlgdxY.js} +1 -1
- package/dist/component/{bookings-rich-text-rac-CTzDqYdf.js → bookings-rich-text-rac-D3LCIS_8.js} +1 -1
- package/dist/component/{checkbox-field-rac-CABu1DWe.js → checkbox-field-rac-BK6-vOau.js} +4 -4
- package/dist/component/{checkbox-group-field-headless-PFQoRdu-.js → checkbox-group-field-headless--hxp1rUU.js} +3 -3
- package/dist/component/{checkbox-group-field-rac-DcnWE0rf.js → checkbox-group-field-rac-nFD5LaoE.js} +4 -4
- package/dist/component/{checkbox-group-rac-gK9Smwho.js → checkbox-group-rac-C6KBx0lP.js} +1 -1
- package/dist/component/{checkbox-rac-ODOiCqwN.js → checkbox-rac-CUqE-K3y.js} +1 -1
- package/dist/component/{contacts-address-rac-9invJuye.js → contacts-address-rac-CEy7QNaQ.js} +1 -1
- package/dist/component/{contacts-birthdate-rac-Crmp9zZO.js → contacts-birthdate-rac-CAkbVm3B.js} +1 -1
- package/dist/component/{contacts-company-rac-GA6XC4nF.js → contacts-company-rac-DATjlWWp.js} +1 -1
- package/dist/component/{contacts-email-rac-Bkka5Vu8.js → contacts-email-rac-BqezTSEN.js} +1 -1
- package/dist/component/{contacts-first-name-rac-CYogWkC0.js → contacts-first-name-rac-B__O8pev.js} +1 -1
- package/dist/component/{contacts-last-name-rac-19NcOJvu.js → contacts-last-name-rac-C_DaFHRv.js} +1 -1
- package/dist/component/{contacts-phone-rac-ZSQgk9UI.js → contacts-phone-rac-DZ1Vg2H7.js} +1 -1
- package/dist/component/{contacts-position-rac-Bu_Z7yMZ.js → contacts-position-rac-Bdzy4IQX.js} +1 -1
- package/dist/component/{contacts-subscribe-rac-P3zOrOax.js → contacts-subscribe-rac-BE8N6xmg.js} +1 -1
- package/dist/component/{contacts-tax-id-rac-BSgXRk6v.js → contacts-tax-id-rac-CMiZ5K9G.js} +1 -1
- package/dist/component/{date-availability-CJqU3LIt.js → date-availability-BpYWelLi.js} +1 -1
- package/dist/component/{date-input-field-rac-QqiSZnXZ.js → date-input-field-rac-D5piAqgR.js} +6 -6
- package/dist/component/{date-input-rac-BZFXvBvI.js → date-input-rac-CRG8CEoy.js} +1 -1
- package/dist/component/{date-picker-field-rac-5dktkwOd.js → date-picker-field-rac-D-EGqbDL.js} +6 -6
- package/dist/component/{date-picker-rac-CKSxXfzL.js → date-picker-rac-CsAD9IO5.js} +1 -1
- package/dist/component/{date-time-input-field-rac-DEmzbAaR.js → date-time-input-field-rac-Cv68lpNg.js} +6 -6
- package/dist/component/{date-time-input-rac-BVtsQ3Vd.js → date-time-input-rac-Dax2BHqW.js} +1 -1
- package/dist/component/{dext-checkbox-group-rac-BubQ0slS.js → dext-checkbox-group-rac-R3F1fpi_.js} +2 -2
- package/dist/component/{dext-checkbox-rac-BhLjzcsZ.js → dext-checkbox-rac-DZ-hB30J.js} +1 -1
- package/dist/component/{dext-date-picker-rac-DVBPmxp7.js → dext-date-picker-rac-CAckOmmp.js} +1 -1
- package/dist/component/{dext-date-time-input-rac-D4c_jenI.js → dext-date-time-input-rac-ClXTbE0u.js} +1 -1
- package/dist/component/{dext-dropdown-rac-B1zJAMKN.js → dext-dropdown-rac-B3xnyv_5.js} +1 -1
- package/dist/component/{dext-email-rac-Ccm5STO4.js → dext-email-rac-1znj8wl1.js} +1 -1
- package/dist/component/{dext-number-input-rac-x6vxbCXa.js → dext-number-input-rac-Dqse0Zcf.js} +1 -1
- package/dist/component/{dext-phone-rac-Shd3BfP-.js → dext-phone-rac-dAXlEH2D.js} +1 -1
- package/dist/component/{dext-radio-group-rac-Dlb_nBO2.js → dext-radio-group-rac-BX4lJ7GD.js} +2 -2
- package/dist/component/{dext-rating-input-rac-CaZbRWJC.js → dext-rating-input-rac-Dm5nyZbZ.js} +1 -1
- package/dist/component/{dext-tags-rac-C55Dq-1l.js → dext-tags-rac-DnViMymD.js} +2 -2
- package/dist/component/{dext-text-area-rac-9Ge8zXWS.js → dext-text-area-rac-BiJkBj9d.js} +1 -1
- package/dist/component/{dext-text-input-rac-C0JVOKkk.js → dext-text-input-rac-DYvk0O4t.js} +1 -1
- package/dist/component/{dext-url-input-rac-CzT1EVwq.js → dext-url-input-rac-B_MymfD7.js} +1 -1
- package/dist/component/{donation-rac-u4w-aXl6.js → donation-rac-BJYwb4Q2.js} +83 -83
- package/dist/component/{dropdown-field-rac-DhLD7sSS.js → dropdown-field-rac-C2HP3bP-.js} +3 -3
- package/dist/component/{dropdown-rac-b5WH0y-k.js → dropdown-rac-UkBmMrZP.js} +1 -1
- package/dist/component/{ecom-address-rac-C5A1WmAj.js → ecom-address-rac-DjzgheFR.js} +1 -1
- package/dist/component/{ecom-subscription-checkbox-rac-xW_rmIl_.js → ecom-subscription-checkbox-rac-CHF-S5GI.js} +2 -2
- package/dist/component/{email-input-field-rac-J_FteAiD.js → email-input-field-rac-t9MzuwRV.js} +3 -3
- package/dist/component/{events-repeater-rac-BP1Wyc53.js → events-repeater-rac-DVdwDPPm.js} +4 -4
- package/dist/component/{events-rsvp-rac-6K_VCmX-.js → events-rsvp-rac-BLKvC7r5.js} +3 -3
- package/dist/component/{field-error-headless-Coipxm8r.js → field-error-headless-oDcg4oxo.js} +1 -1
- package/dist/component/{field-label-headless-Td5R2D2v.js → field-label-headless-HMv-G21v.js} +1 -1
- package/dist/component/{file-upload-rac-QvjsWUE6.js → file-upload-rac-Cg1o0QVo.js} +4 -4
- package/dist/component/{fixed-payment-rac-BHdwt3Li.js → fixed-payment-rac-D34oFc42.js} +3 -3
- package/dist/component/{form-j_yRqg3t.js → form-CXsZtu5R.js} +69 -69
- package/dist/component/form.css +1 -1
- package/dist/component/form.js +1 -1
- package/dist/component/{header-field-rac-Bzpmnjft.js → header-field-rac-Cm1QG6Bq.js} +2 -2
- package/dist/component/{header-rac-Cyl7efBn.js → header-rac-C0_T5Yiy.js} +1 -1
- package/dist/component/{image-choice-rac-DwkOsp1k.js → image-choice-rac-C8mzXN2d.js} +54 -54
- package/dist/component/{index-DHLtT8Mx.js → index-DoXSuo9L.js} +4 -4
- package/dist/component/{index-DebSQu51.js → index-NtyfAzxl.js} +2 -2
- package/dist/component/{isObjectLike-Dmd5RpxA.js → isObjectLike-CCfWZPZg.js} +1 -1
- package/dist/component/{multiline-address-field-rac-Ds1zs5ln.js → multiline-address-field-rac-MdguvGiN.js} +7 -7
- package/dist/component/{multiline-address-rac-DttcRYnL.js → multiline-address-rac-CMZU4I_G.js} +1 -1
- package/dist/component/{number-input-field-rac-Dn1AUGV2.js → number-input-field-rac-BzZOCs3v.js} +4 -4
- package/dist/component/{number-input-rac-CFx61qYd.js → number-input-rac-BnJ6KGpE.js} +1 -1
- package/dist/component/{password-rac-DJuStTWa.js → password-rac-C1i3UW8H.js} +4 -4
- package/dist/component/{payment-input-rac-BIIX_P6A.js → payment-input-rac-CWnoIpKK.js} +4 -4
- package/dist/component/{phone-input-field-rac-C1InbJor.js → phone-input-field-rac-DblG1aO3.js} +6 -6
- package/dist/component/{phone-rac-B6ubdBf6.js → phone-rac-CNpOsaRX.js} +1 -1
- package/dist/component/{product-list-rac-BaB63jJu.js → product-list-rac-CMs1_g18.js} +4 -4
- package/dist/component/{quiz-radio-group-rac-CrGIv3cN.js → quiz-radio-group-rac-CXHk_5Eh.js} +1 -1
- package/dist/component/{radio-button-module-classes-zZg9SOqG.js → radio-button-module-classes-CDfLdyDP.js} +3 -3
- package/dist/component/{radio-group-field-rac-C_Aui1YW.js → radio-group-field-rac-DEbEI898.js} +4 -4
- package/dist/component/{radio-group-rac-Bt3QthZ5.js → radio-group-rac-UWkP43pT.js} +1 -1
- package/dist/component/{rating-input-field-rac-CdaHNKcZ.js → rating-input-field-rac-SoLmvs2v.js} +4 -4
- package/dist/component/{rating-input-rac-DmCouDpG.js → rating-input-rac-BMmnltX5.js} +1 -1
- package/dist/component/{rich-content-rac.module-wyBdhZhG.js → rich-content-rac.module-mwZxTkib.js} +1 -1
- package/dist/component/{rich-text-field-rac-BuvLBbnl.js → rich-text-field-rac-Chj84Fsk.js} +2 -2
- package/dist/component/{rich-text-rac-BXMlorQ2.js → rich-text-rac-DMfe2cTM.js} +1 -1
- package/dist/component/{service-dropdown-rac-xgk-rFIY.js → service-dropdown-rac-BSbRSLK9.js} +4 -4
- package/dist/component/{services-multi-choice-rac-D3ZwzsmG.js → services-multi-choice-rac-BRTw_nfq.js} +5 -5
- package/dist/component/{signature-rac-D8hEZGjF.js → signature-rac-4Ue3PYnm.js} +4 -4
- package/dist/component/{submit-button-rac-DHm3YV4U.js → submit-button-rac-BGCTvHrI.js} +2 -2
- package/dist/component/{tags-field-rac-Cm4SnACy.js → tags-field-rac-DABO4blS.js} +49 -49
- package/dist/component/{tags-rac-7nZ3O67I.js → tags-rac-CNH4u0bT.js} +1 -1
- package/dist/component/{text-area-field-rac-BEGUVGQL.js → text-area-field-rac-BiP0cDUF.js} +4 -4
- package/dist/component/{text-area-rac-BrhvUcqn.js → text-area-rac-C2N13gqx.js} +1 -1
- package/dist/component/{text-input-field-rac-CZn2Flyb.js → text-input-field-rac-NZ7YsA_D.js} +3 -3
- package/dist/component/{text-input-headless-DTDZC4x7.js → text-input-headless-DpmAOSFA.js} +3 -3
- package/dist/component/{text-input-rac-DIjGSUZo.js → text-input-rac-CD6wdcxh.js} +1 -1
- package/dist/component/{time-input-rac-17FRariH.js → time-input-rac-DRJkjuoT.js} +4 -4
- package/dist/component/{url-input-field-rac-DYAXRURP.js → url-input-field-rac-CdMAc7ui.js} +4 -4
- package/dist/component/{url-input-rac-6IWE13av.js → url-input-rac-BFzDu-il.js} +1 -1
- package/dist/component/{use-dropdown-option-class-name-teYH9uf4.js → use-dropdown-option-class-name-BK0vTa0D.js} +2 -2
- package/dist/component/{use-dropdown-trigger-class-name-BpJezVOE.js → use-dropdown-trigger-class-name-VqXyLMwO.js} +6 -6
- package/dist/component/{use-element-state-class-name-CcW9uY2w.js → use-element-state-class-name-Dl8C4S0a.js} +1 -1
- package/dist/component/{use-hoverable-input-class-name-B9Ps5WPu.js → use-hoverable-input-class-name-DP6a6VDR.js} +2 -2
- package/dist/component/{use-is-forced-open-dropdown-CUekpH1u.js → use-is-forced-open-dropdown-BLIRDuzt.js} +1 -1
- package/dist/component/{use-service-options-base-DXhuk0gs.js → use-service-options-base-DVxa9XN7.js} +1 -1
- package/dist/component/use-text-input-class-name-DUmaXeub.js +6 -0
- package/package.json +2 -2
- package/dist/component/use-text-input-class-name-BIu78phH.js +0 -6
|
@@ -1,102 +1,102 @@
|
|
|
1
|
-
import n, { useMemo as
|
|
1
|
+
import n, { useMemo as B, useCallback as S, useRef as te } from "react";
|
|
2
2
|
import { RicosViewer as ne } from "@wix/ricos/viewer";
|
|
3
|
-
import
|
|
3
|
+
import L from "classnames";
|
|
4
4
|
import { ToggleButtonGroup as oe, TextField as re, Group as se, ToggleButton as ae, Input as le } from "react-aria-components";
|
|
5
5
|
import { debounce as ce } from "ts-debounce";
|
|
6
|
-
import { a$ as
|
|
6
|
+
import { a$ as w, bL as T, bI as P, bV as ie, bD as q, bN as ue, X as me, am as pe, ax as de, M as Ie, I as Ce, ay as Ee } from "./form-CXsZtu5R.js";
|
|
7
7
|
import { f as O, a as N } from "./find-child-C60k4CxG.js";
|
|
8
|
-
import { a as
|
|
9
|
-
import { D as fe, E as Oe } from "./field-error-headless-
|
|
10
|
-
import { L as ye } from "./field-label-headless-
|
|
8
|
+
import { a as K } from "./format-currency-BwShJ9vM.js";
|
|
9
|
+
import { D as fe, E as Oe } from "./field-error-headless-oDcg4oxo.js";
|
|
10
|
+
import { L as ye } from "./field-label-headless-HMv-G21v.js";
|
|
11
11
|
import { F as be } from "./fieldset-headless-CD3fds9J.js";
|
|
12
12
|
import { a as _e, b as he } from "./numeric-input-utils-CuBMi4-a.js";
|
|
13
13
|
import { g as ge } from "./payment-field-utils-DobiK5Xh.js";
|
|
14
14
|
import { u as Fe } from "./use-synced-display-value-DcAxdn3M.js";
|
|
15
15
|
import { E as Ne } from "./error-icon-hZxQ6DEy.js";
|
|
16
|
-
import { s as
|
|
16
|
+
import { s as v } from "./field-rac.module-DcyJyi2B.js";
|
|
17
17
|
import { o as De } from "./options-rac.module-_THNq6Qq.js";
|
|
18
|
-
import { u as Se } from "./use-element-state-class-name-
|
|
19
|
-
import { u as
|
|
20
|
-
function
|
|
18
|
+
import { u as Se } from "./use-element-state-class-name-Dl8C4S0a.js";
|
|
19
|
+
import { u as Le } from "./use-text-input-class-name-DUmaXeub.js";
|
|
20
|
+
function ve(e, t) {
|
|
21
21
|
return e.reduce((o, r) => (o[r[t]] = r, o), {});
|
|
22
22
|
}
|
|
23
23
|
function Re(e) {
|
|
24
|
-
return
|
|
24
|
+
return ve(e, "id");
|
|
25
25
|
}
|
|
26
26
|
const Ae = 0.01;
|
|
27
27
|
function Te(e) {
|
|
28
28
|
var t;
|
|
29
29
|
return ((t = e == null ? void 0 : e.fixedPriceOptions) == null ? void 0 : t.price) || "0";
|
|
30
30
|
}
|
|
31
|
-
function
|
|
31
|
+
function Y(e, t) {
|
|
32
32
|
const o = Number(t || "0");
|
|
33
33
|
return {
|
|
34
34
|
productId: e.id,
|
|
35
|
-
price: e.priceType ===
|
|
35
|
+
price: e.priceType === w.DYNAMIC_PRICE ? o : String(o),
|
|
36
36
|
quantity: 1
|
|
37
37
|
};
|
|
38
38
|
}
|
|
39
39
|
function Pe(e) {
|
|
40
|
-
return e.find((t) => t.priceType ===
|
|
40
|
+
return e.find((t) => t.priceType === w.DYNAMIC_PRICE);
|
|
41
41
|
}
|
|
42
42
|
function Me(e, t) {
|
|
43
43
|
return (e == null ? void 0 : e.productId) === (t == null ? void 0 : t.id) ? String((e == null ? void 0 : e.price) ?? "") : "";
|
|
44
44
|
}
|
|
45
45
|
const s = ({ children: e }) => {
|
|
46
|
-
const { id: t, value: o, onChange: r, required: l, onBlur: i, onFocus: C, validation: u, addOther: E, addOtherPlaceholder: p, FieldLayout: f } = T(), { inputId: c, labelId: d, ariaDescribedBy: b } = P(), { t: m } = ie(), { currency: F, regionalFormat: _ } =
|
|
46
|
+
const { id: t, value: o, onChange: r, required: l, onBlur: i, onFocus: C, validation: u, addOther: E, addOtherPlaceholder: p, FieldLayout: f } = T(), { inputId: c, labelId: d, ariaDescribedBy: b } = P(), { t: m } = ie(), { currency: F, regionalFormat: _ } = q(), y = o == null ? void 0 : o[0], D = B(() => {
|
|
47
47
|
var I, h;
|
|
48
48
|
return ((h = (I = u == null ? void 0 : u.predefined) == null ? void 0 : I.paymentOptions) == null ? void 0 : h.products) || [];
|
|
49
49
|
}, [
|
|
50
50
|
u
|
|
51
|
-
]), M =
|
|
51
|
+
]), M = B(() => Re(D), [
|
|
52
52
|
D
|
|
53
|
-
]), a =
|
|
53
|
+
]), a = B(() => E ? Pe(D) : void 0, [
|
|
54
54
|
D,
|
|
55
55
|
E
|
|
56
|
-
]),
|
|
57
|
-
sourceValue:
|
|
56
|
+
]), Q = Me(y, a), [x, z] = Fe({
|
|
57
|
+
sourceValue: Q,
|
|
58
58
|
format: (I) => he(String(I ?? ""), _),
|
|
59
59
|
regionalFormat: _
|
|
60
|
-
}),
|
|
60
|
+
}), V = S((I) => {
|
|
61
61
|
const h = I === void 0 ? void 0 : M[I];
|
|
62
62
|
r(h ? [
|
|
63
|
-
|
|
64
|
-
] : []),
|
|
63
|
+
Y(h, Te(h))
|
|
64
|
+
] : []), z("");
|
|
65
65
|
}, [
|
|
66
66
|
r,
|
|
67
67
|
M,
|
|
68
|
-
|
|
69
|
-
]),
|
|
68
|
+
z
|
|
69
|
+
]), G = S((I) => {
|
|
70
70
|
a && r(typeof I == "number" ? [
|
|
71
|
-
|
|
71
|
+
Y(a, String(I))
|
|
72
72
|
] : []);
|
|
73
73
|
}, [
|
|
74
74
|
r,
|
|
75
75
|
a
|
|
76
|
-
]),
|
|
77
|
-
|
|
78
|
-
]),
|
|
76
|
+
]), U = B(() => ce(G, 500), [
|
|
77
|
+
G
|
|
78
|
+
]), W = S((I) => {
|
|
79
79
|
(y == null ? void 0 : y.productId) !== (a == null ? void 0 : a.id) && r(void 0);
|
|
80
|
-
const { validInput: h, validNumber: ee } = _e(I.target.value, Ae,
|
|
81
|
-
|
|
80
|
+
const { validInput: h, validNumber: ee } = _e(I.target.value, Ae, x, _);
|
|
81
|
+
z(h), U(ee);
|
|
82
82
|
}, [
|
|
83
83
|
_,
|
|
84
84
|
r,
|
|
85
85
|
y,
|
|
86
86
|
a,
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
]),
|
|
91
|
-
a != null && a.id &&
|
|
87
|
+
x,
|
|
88
|
+
U,
|
|
89
|
+
z
|
|
90
|
+
]), H = (y == null ? void 0 : y.productId) || null, X = S(() => {
|
|
91
|
+
a != null && a.id && H !== a.id && V(a.id);
|
|
92
92
|
}, [
|
|
93
93
|
a == null ? void 0 : a.id,
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
]),
|
|
94
|
+
H,
|
|
95
|
+
V
|
|
96
|
+
]), j = O(e, s.Label), k = O(e, s.Control), J = O(e, s.Description), Z = O(e, s.Error);
|
|
97
97
|
return /* @__PURE__ */ n.createElement(f, {
|
|
98
98
|
fieldId: t,
|
|
99
|
-
renderLabel: () =>
|
|
99
|
+
renderLabel: () => j,
|
|
100
100
|
renderInput: () => /* @__PURE__ */ n.createElement(be, {
|
|
101
101
|
id: c,
|
|
102
102
|
ariaLabelledBy: d,
|
|
@@ -104,22 +104,22 @@ const s = ({ children: e }) => {
|
|
|
104
104
|
required: l,
|
|
105
105
|
onBlur: i,
|
|
106
106
|
onFocus: C
|
|
107
|
-
},
|
|
107
|
+
}, k ? N(k, {
|
|
108
108
|
productsById: M,
|
|
109
|
-
selectedValue:
|
|
110
|
-
onSelectProduct:
|
|
109
|
+
selectedValue: H,
|
|
110
|
+
onSelectProduct: V,
|
|
111
111
|
addOther: E,
|
|
112
|
-
customAmount:
|
|
113
|
-
onCustomAmountInputChange:
|
|
112
|
+
customAmount: x,
|
|
113
|
+
onCustomAmountInputChange: W,
|
|
114
114
|
currency: F,
|
|
115
115
|
t: m,
|
|
116
116
|
placeholder: p === void 0 ? m("donation.other-option.placeholder") : p,
|
|
117
117
|
customAmountProductId: a == null ? void 0 : a.id,
|
|
118
|
-
onFocusCustomInput:
|
|
118
|
+
onFocusCustomInput: X
|
|
119
119
|
}) : null),
|
|
120
120
|
renderDescription: () => /* @__PURE__ */ n.createElement(n.Fragment, null, Z, J)
|
|
121
121
|
});
|
|
122
|
-
},
|
|
122
|
+
}, ze = ({ children: e, className: t, ...o }) => {
|
|
123
123
|
const { productsById: r, selectedValue: l, onSelectProduct: i, addOther: C, customAmount: u, onCustomAmountInputChange: E, currency: p, t: f, placeholder: c, customAmountProductId: d, onFocusCustomInput: b } = o, { hasError: m } = T(), F = O(e, s.Options), _ = O(e, s.OtherInput);
|
|
124
124
|
return /* @__PURE__ */ n.createElement("div", {
|
|
125
125
|
className: t,
|
|
@@ -137,8 +137,8 @@ const s = ({ children: e }) => {
|
|
|
137
137
|
customAmountProductId: d,
|
|
138
138
|
onFocusCustomInput: b
|
|
139
139
|
}) : null);
|
|
140
|
-
},
|
|
141
|
-
const { productsById: r, selectedValue: l, onSelectProduct: i } = o, { options: C, numberOfColumns: u, disabled: E } = T(), { labelId: p } = P(), f = O(e,
|
|
140
|
+
}, $ = ({ children: e, className: t, ...o }) => {
|
|
141
|
+
const { productsById: r, selectedValue: l, onSelectProduct: i } = o, { options: C, numberOfColumns: u, disabled: E } = T(), { labelId: p } = P(), f = O(e, $.Option);
|
|
142
142
|
return /* @__PURE__ */ n.createElement(oe, {
|
|
143
143
|
className: t,
|
|
144
144
|
"data-columns": u,
|
|
@@ -161,7 +161,7 @@ const s = ({ children: e }) => {
|
|
|
161
161
|
});
|
|
162
162
|
}));
|
|
163
163
|
}, R = ({ children: e, className: t, ...o }) => {
|
|
164
|
-
const { value: r, price: l } = o, { id: i, hasError: C } = T(), { currency: u, regionalFormat: E } =
|
|
164
|
+
const { value: r, price: l } = o, { id: i, hasError: C } = T(), { currency: u, regionalFormat: E } = q(), p = O(e, R.Value), f = O(e, R.Currency), { isCurrencyPrefixed: c } = K({
|
|
165
165
|
amount: l,
|
|
166
166
|
currency: u == null ? void 0 : u.code,
|
|
167
167
|
locale: E
|
|
@@ -181,8 +181,8 @@ const s = ({ children: e }) => {
|
|
|
181
181
|
ref: d,
|
|
182
182
|
"data-invalid": C || void 0
|
|
183
183
|
}, /* @__PURE__ */ n.createElement(n.Fragment, null, c && f, b, !c && f));
|
|
184
|
-
},
|
|
185
|
-
const { price: o } = t, { currency: r, regionalFormat: l } =
|
|
184
|
+
}, Be = ({ className: e, ...t }) => {
|
|
185
|
+
const { price: o } = t, { currency: r, regionalFormat: l } = q(), { value: i } = K({
|
|
186
186
|
amount: o,
|
|
187
187
|
currency: r == null ? void 0 : r.code,
|
|
188
188
|
locale: l
|
|
@@ -190,14 +190,14 @@ const s = ({ children: e }) => {
|
|
|
190
190
|
return /* @__PURE__ */ n.createElement("span", {
|
|
191
191
|
className: e
|
|
192
192
|
}, i);
|
|
193
|
-
},
|
|
194
|
-
const { currency: t } =
|
|
193
|
+
}, qe = ({ className: e }) => {
|
|
194
|
+
const { currency: t } = q();
|
|
195
195
|
return /* @__PURE__ */ n.createElement("span", {
|
|
196
196
|
className: e
|
|
197
197
|
}, (t == null ? void 0 : t.sign) || (t == null ? void 0 : t.code) || "");
|
|
198
198
|
};
|
|
199
|
-
R.Value =
|
|
200
|
-
R.Currency =
|
|
199
|
+
R.Value = Be;
|
|
200
|
+
R.Currency = qe;
|
|
201
201
|
const A = ({ children: e, className: t, ...o }) => {
|
|
202
202
|
const { customAmount: r, onCustomAmountInputChange: l, currency: i, t: C, placeholder: u, customAmountProductId: E, onFocusCustomInput: p } = o, { disabled: f, hasError: c } = T(), { labelId: d, prefixId: b } = P(), m = O(e, A.Currency), F = O(e, A.Value), _ = S((D) => {
|
|
203
203
|
l({
|
|
@@ -230,7 +230,7 @@ const A = ({ children: e, className: t, ...o }) => {
|
|
|
230
230
|
placeholder: u,
|
|
231
231
|
customAmountProductId: E
|
|
232
232
|
}) : null));
|
|
233
|
-
},
|
|
233
|
+
}, xe = ({ className: e, ...t }) => {
|
|
234
234
|
const { currency: o, t: r } = t, { prefixId: l } = P();
|
|
235
235
|
return /* @__PURE__ */ n.createElement("span", {
|
|
236
236
|
id: l,
|
|
@@ -238,7 +238,7 @@ const A = ({ children: e, className: t, ...o }) => {
|
|
|
238
238
|
"aria-label": ge(r, o),
|
|
239
239
|
className: e
|
|
240
240
|
}, (o == null ? void 0 : o.sign) || (o == null ? void 0 : o.code) || "");
|
|
241
|
-
},
|
|
241
|
+
}, Ve = ({ className: e, ...t }) => {
|
|
242
242
|
const { placeholder: o, customAmountProductId: r } = t, { ariaDescribedBy: l, labelId: i, prefixId: C } = P();
|
|
243
243
|
return /* @__PURE__ */ n.createElement(le, {
|
|
244
244
|
id: r,
|
|
@@ -250,43 +250,43 @@ const A = ({ children: e, className: t, ...o }) => {
|
|
|
250
250
|
className: e
|
|
251
251
|
});
|
|
252
252
|
};
|
|
253
|
-
A.Currency =
|
|
254
|
-
A.Value =
|
|
255
|
-
|
|
253
|
+
A.Currency = xe;
|
|
254
|
+
A.Value = Ve;
|
|
255
|
+
$.Option = R;
|
|
256
256
|
s.Label = ye;
|
|
257
|
-
s.Control =
|
|
258
|
-
s.Options =
|
|
257
|
+
s.Control = ze;
|
|
258
|
+
s.Options = $;
|
|
259
259
|
s.OtherInput = A;
|
|
260
260
|
s.Description = fe;
|
|
261
261
|
s.Error = Oe;
|
|
262
|
-
const $e = "
|
|
263
|
-
control:
|
|
264
|
-
option:
|
|
265
|
-
optionHover:
|
|
266
|
-
optionSelected:
|
|
267
|
-
optionCurrency:
|
|
268
|
-
otherInput:
|
|
269
|
-
otherInputCurrency:
|
|
270
|
-
},
|
|
262
|
+
const He = "_control_ztzql_1", $e = "_option_ztzql_7", Ge = "_optionHover_ztzql_36", Ue = "_optionSelected_ztzql_36", ke = "_optionCurrency_ztzql_89", Ye = "_otherInput_ztzql_93", we = "_otherInputCurrency_ztzql_115", g = {
|
|
263
|
+
control: He,
|
|
264
|
+
option: $e,
|
|
265
|
+
optionHover: Ge,
|
|
266
|
+
optionSelected: Ue,
|
|
267
|
+
optionCurrency: ke,
|
|
268
|
+
otherInput: Ye,
|
|
269
|
+
otherInputCurrency: we
|
|
270
|
+
}, Ke = ({ content: e, locale: t }) => /* @__PURE__ */ n.createElement(ne, {
|
|
271
271
|
content: e,
|
|
272
272
|
locale: t
|
|
273
|
-
}),
|
|
273
|
+
}), Qe = {
|
|
274
274
|
base: g.option,
|
|
275
275
|
selected: g.optionSelected,
|
|
276
276
|
hover: g.optionHover
|
|
277
|
-
},
|
|
278
|
-
const e =
|
|
277
|
+
}, We = () => {
|
|
278
|
+
const e = Le(g.otherInput), t = Se({
|
|
279
279
|
globalClasses: Ee,
|
|
280
|
-
moduleClasses:
|
|
280
|
+
moduleClasses: Qe
|
|
281
281
|
});
|
|
282
282
|
return /* @__PURE__ */ n.createElement(s, null, /* @__PURE__ */ n.createElement(s.Label, {
|
|
283
|
-
className:
|
|
283
|
+
className: L(me, v.label)
|
|
284
284
|
}, /* @__PURE__ */ n.createElement(s.Label.Required, {
|
|
285
|
-
className:
|
|
285
|
+
className: L(pe, v.requiredMark)
|
|
286
286
|
})), /* @__PURE__ */ n.createElement(s.Control, {
|
|
287
287
|
className: g.control
|
|
288
288
|
}, /* @__PURE__ */ n.createElement(s.Options, {
|
|
289
|
-
className:
|
|
289
|
+
className: L(de, De.options, g.options)
|
|
290
290
|
}, /* @__PURE__ */ n.createElement(s.Options.Option, {
|
|
291
291
|
className: t
|
|
292
292
|
}, /* @__PURE__ */ n.createElement(s.Options.Option.Value, null), /* @__PURE__ */ n.createElement(s.Options.Option.Currency, {
|
|
@@ -296,13 +296,13 @@ const $e = "_control_lovol_1", Ge = "_option_lovol_7", Ue = "_optionHover_lovol_
|
|
|
296
296
|
}, /* @__PURE__ */ n.createElement(s.OtherInput.Currency, {
|
|
297
297
|
className: g.otherInputCurrency
|
|
298
298
|
}), /* @__PURE__ */ n.createElement(s.OtherInput.Value, {
|
|
299
|
-
className:
|
|
299
|
+
className: v.innerInput
|
|
300
300
|
}))), /* @__PURE__ */ n.createElement(s.Error, {
|
|
301
|
-
className:
|
|
301
|
+
className: L(Ie, v.error)
|
|
302
302
|
}, /* @__PURE__ */ n.createElement(Ne, null), /* @__PURE__ */ n.createElement(s.Error.Text, null)), /* @__PURE__ */ n.createElement(s.Description, {
|
|
303
|
-
className:
|
|
304
|
-
},
|
|
305
|
-
}, Ct = () => /* @__PURE__ */ n.createElement(
|
|
303
|
+
className: L(Ce, v.description)
|
|
304
|
+
}, Ke));
|
|
305
|
+
}, Ct = () => /* @__PURE__ */ n.createElement(We, null);
|
|
306
306
|
export {
|
|
307
307
|
Ct as DonationRAC
|
|
308
308
|
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { RicosViewer as m } from "@wix/ricos/viewer";
|
|
2
2
|
import a from "classnames";
|
|
3
3
|
import e from "react";
|
|
4
|
-
import { u as n, D as r } from "./use-dropdown-trigger-class-name-
|
|
4
|
+
import { u as n, D as r } from "./use-dropdown-trigger-class-name-VqXyLMwO.js";
|
|
5
5
|
import { C as l } from "./chevron-down-icon-CcpVm6B-.js";
|
|
6
6
|
import { E as c } from "./error-icon-hZxQ6DEy.js";
|
|
7
7
|
import { H as i } from "./custom-focus-class-_483Pkwp.js";
|
|
8
8
|
import { s as o } from "./field-rac.module-DcyJyi2B.js";
|
|
9
|
-
import { X as p, am as E, J as D, M as _, I as O } from "./form-
|
|
10
|
-
import { u as R } from "./use-dropdown-option-class-name-
|
|
9
|
+
import { X as p, am as E, J as D, M as _, I as O } from "./form-CXsZtu5R.js";
|
|
10
|
+
import { u as R } from "./use-dropdown-option-class-name-BK0vTa0D.js";
|
|
11
11
|
const C = ({ content: t, locale: s }) => /* @__PURE__ */ e.createElement(m, {
|
|
12
12
|
content: t,
|
|
13
13
|
locale: s
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import o, { useMemo as n } from "react";
|
|
2
|
-
import { bL as a, bV as c, aN as i } from "./form-
|
|
3
|
-
import { C as l } from "./checkbox-field-rac-
|
|
2
|
+
import { bL as a, bV as c, aN as i } from "./form-CXsZtu5R.js";
|
|
3
|
+
import { C as l } from "./checkbox-field-rac-BK6-vOau.js";
|
|
4
4
|
const p = (e) => ({
|
|
5
5
|
nodes: [
|
|
6
6
|
{
|
package/dist/component/{email-input-field-rac-J_FteAiD.js → email-input-field-rac-t9MzuwRV.js}
RENAMED
|
@@ -2,7 +2,7 @@ import { RicosViewer as ie } from "@wix/ricos/viewer";
|
|
|
2
2
|
import j from "classnames";
|
|
3
3
|
import u, { createContext as z, useContext as Z, createElement as R, isValidElement as B, cloneElement as w, useState as le, useCallback as me, useEffect as ue } from "react";
|
|
4
4
|
import { TextField as pe } from "react-aria-components";
|
|
5
|
-
import { bI as fe, bV as ge, bG as ve, d as ye, bL as Ee, bP as de, bJ as be, aL as Se, X as Oe, am as he, M as Ie, I as Ne, aw as Ae } from "./form-
|
|
5
|
+
import { bI as fe, bV as ge, bG as ve, d as ye, bL as Ee, bP as de, bJ as be, aL as Se, X as Oe, am as he, M as Ie, I as Ne, aw as Ae } from "./form-CXsZtu5R.js";
|
|
6
6
|
import { f as C } from "./find-child-C60k4CxG.js";
|
|
7
7
|
import ee from "@babel/runtime/helpers/objectWithoutProperties";
|
|
8
8
|
import L from "@babel/runtime/helpers/typeof";
|
|
@@ -10,10 +10,10 @@ import Fe from "@babel/runtime/helpers/defineProperty";
|
|
|
10
10
|
import ke from "html-parse-stringify";
|
|
11
11
|
import Te from "@babel/runtime/helpers/classCallCheck";
|
|
12
12
|
import xe from "@babel/runtime/helpers/createClass";
|
|
13
|
-
import { T as U } from "./text-input-headless-
|
|
13
|
+
import { T as U } from "./text-input-headless-DpmAOSFA.js";
|
|
14
14
|
import { E as De } from "./error-icon-hZxQ6DEy.js";
|
|
15
15
|
import { s as H } from "./field-rac.module-DcyJyi2B.js";
|
|
16
|
-
import { u as je } from "./use-text-input-class-name-
|
|
16
|
+
import { u as je } from "./use-text-input-class-name-DUmaXeub.js";
|
|
17
17
|
var Ce = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g, Le = {
|
|
18
18
|
"&": "&",
|
|
19
19
|
"&": "&",
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import t, { useState as z, useMemo as T, useCallback as x, useRef as k } from "react";
|
|
2
2
|
import v from "classnames";
|
|
3
3
|
import { NumberField as J, CheckboxField as Q, CheckboxButton as W, Group as Y, Input as Z, Button as P } from "react-aria-components";
|
|
4
|
-
import { bR as j, bS as w, bH as U, bM as H, b7 as ee, bL as O, bI as $, bN as K, aP as te, ah as se, aj as ne, al as oe, ai as re, ak as ae } from "./form-
|
|
4
|
+
import { bR as j, bS as w, bH as U, bM as H, b7 as ee, bL as O, bI as $, bN as K, aP as te, ah as se, aj as ne, al as oe, ai as re, ak as ae } from "./form-CXsZtu5R.js";
|
|
5
5
|
import { f as C, a as R } from "./find-child-C60k4CxG.js";
|
|
6
|
-
import { L as le } from "./field-label-headless-
|
|
6
|
+
import { L as le } from "./field-label-headless-HMv-G21v.js";
|
|
7
7
|
import { S as ce } from "./selection-indicator-XQ8MYHUQ.js";
|
|
8
8
|
import { u as ue } from "./use-invoke-callback-UH73A_J3.js";
|
|
9
9
|
import { C as M } from "./chevron-down-icon-CcpVm6B-.js";
|
|
10
10
|
import { C as me } from "./checkbox-indicator-module-classes-DOxE4UQg.js";
|
|
11
11
|
import { s as B } from "./field-rac.module-DcyJyi2B.js";
|
|
12
|
-
import { u as ie } from "./use-element-state-class-name-
|
|
13
|
-
import { u as de } from "./use-hoverable-input-class-name-
|
|
12
|
+
import { u as ie } from "./use-element-state-class-name-Dl8C4S0a.js";
|
|
13
|
+
import { u as de } from "./use-hoverable-input-class-name-DP6a6VDR.js";
|
|
14
14
|
const Ee = [], pe = ({ id: e, fields: s, layout: a, value: o, onChange: n, errors: l = Ee, validation: c }) => {
|
|
15
15
|
const [i, E] = z((o == null ? void 0 : o.length) || 0), u = T(() => o ?? [], [
|
|
16
16
|
o
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import t from "react";
|
|
2
2
|
import { RicosViewer as m } from "@wix/ricos/viewer";
|
|
3
3
|
import a from "classnames";
|
|
4
|
-
import { a as s, s as n, R as c } from "./radio-button-module-classes-
|
|
4
|
+
import { a as s, s as n, R as c } from "./radio-button-module-classes-CDfLdyDP.js";
|
|
5
5
|
import { E as i } from "./error-icon-hZxQ6DEy.js";
|
|
6
6
|
import { s as o } from "./field-rac.module-DcyJyi2B.js";
|
|
7
|
-
import { X as E, am as p, ac as R, ad as O, M as _, I as L, ae as I } from "./form-
|
|
7
|
+
import { X as E, am as p, ac as R, ad as O, M as _, I as L, ae as I } from "./form-CXsZtu5R.js";
|
|
8
8
|
import { o as D } from "./options-rac.module-_THNq6Qq.js";
|
|
9
|
-
import { u as S } from "./use-element-state-class-name-
|
|
9
|
+
import { u as S } from "./use-element-state-class-name-Dl8C4S0a.js";
|
|
10
10
|
const e = ({ children: r, className: l }) => /* @__PURE__ */ t.createElement(s, {
|
|
11
11
|
className: l
|
|
12
12
|
}, r);
|
package/dist/component/{field-error-headless-Coipxm8r.js → field-error-headless-oDcg4oxo.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import t, { createContext as m, useContext as M } from "react";
|
|
2
|
-
import { bL as c, bI as i, bD as b, bk as f, bl as x } from "./form-
|
|
2
|
+
import { bL as c, bI as i, bD as b, bk as f, bl as x } from "./form-CXsZtu5R.js";
|
|
3
3
|
const H = ({ className: r, children: e }) => {
|
|
4
4
|
const { description: s, target: o } = c(), { descriptionId: a } = i(), { language: n } = b();
|
|
5
5
|
return s ? /* @__PURE__ */ t.createElement("div", {
|
package/dist/component/{field-label-headless-Td5R2D2v.js → field-label-headless-HMv-G21v.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { bL as m, b0 as d, b1 as p, bI as D, bV as B } from "./form-
|
|
1
|
+
import { bL as m, b0 as d, b1 as p, bI as D, bV as B } from "./form-CXsZtu5R.js";
|
|
2
2
|
import l from "react";
|
|
3
3
|
import { f as L } from "./find-child-C60k4CxG.js";
|
|
4
4
|
import { sdk as g } from "@wix/image-kit";
|
|
@@ -2,14 +2,14 @@ import t, { useState as Q, useRef as H, useMemo as pe, useEffect as ne, useCallb
|
|
|
2
2
|
import Le from "@wix/editor-react-components/AnimatedIcon";
|
|
3
3
|
import { RicosViewer as he } from "@wix/ricos/viewer";
|
|
4
4
|
import A from "classnames";
|
|
5
|
-
import { bH as Ce, bV as re, bQ as xe, aO as Ne, bT as ve, aH as ie, bU as De, bI as fe, bL as V, bN as ye, bF as Se, bE as Te, X as Be, am as Ie, b as we, P as Ae, Q as ce, R as Re, N as ue, M as de, I as Ze, O as Me, f as te } from "./form-
|
|
5
|
+
import { bH as Ce, bV as re, bQ as xe, aO as Ne, bT as ve, aH as ie, bU as De, bI as fe, bL as V, bN as ye, bF as Se, bE as Te, X as Be, am as Ie, b as we, P as Ae, Q as ce, R as Re, N as ue, M as de, I as Ze, O as Me, f as te } from "./form-CXsZtu5R.js";
|
|
6
6
|
import { E as Oe } from "./error-icon-hZxQ6DEy.js";
|
|
7
7
|
import { s as $ } from "./field-rac.module-DcyJyi2B.js";
|
|
8
|
-
import { u as me } from "./use-element-state-class-name-
|
|
8
|
+
import { u as me } from "./use-element-state-class-name-Dl8C4S0a.js";
|
|
9
9
|
import { DropZone as Ue, Text as ke, FileTrigger as Pe, Button as Ee, ProgressBar as He, VisuallyHidden as ze } from "react-aria-components";
|
|
10
10
|
import { f as h, a as Y } from "./find-child-C60k4CxG.js";
|
|
11
|
-
import { b as Ve, a as je, D as qe, E as Ke } from "./field-error-headless-
|
|
12
|
-
import { L as $e } from "./field-label-headless-
|
|
11
|
+
import { b as Ve, a as je, D as qe, E as Ke } from "./field-error-headless-oDcg4oxo.js";
|
|
12
|
+
import { L as $e } from "./field-label-headless-HMv-G21v.js";
|
|
13
13
|
const Qe = {
|
|
14
14
|
Video: "video/*",
|
|
15
15
|
Image: "image/*",
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import t, { useMemo as _ } from "react";
|
|
2
2
|
import { RicosViewer as A } from "@wix/ricos/viewer";
|
|
3
3
|
import u from "classnames";
|
|
4
|
-
import { bL as I, bD as C, bI as P, X as S, S as x, I as N } from "./form-
|
|
4
|
+
import { bL as I, bD as C, bI as P, X as S, S as x, I as N } from "./form-CXsZtu5R.js";
|
|
5
5
|
import { f as c, a as R } from "./find-child-C60k4CxG.js";
|
|
6
6
|
import { f as O } from "./format-currency-BwShJ9vM.js";
|
|
7
|
-
import { D as v, E as M } from "./field-error-headless-
|
|
8
|
-
import { L as g } from "./field-label-headless-
|
|
7
|
+
import { D as v, E as M } from "./field-error-headless-oDcg4oxo.js";
|
|
8
|
+
import { L as g } from "./field-label-headless-HMv-G21v.js";
|
|
9
9
|
import { s as F } from "./field-rac.module-DcyJyi2B.js";
|
|
10
10
|
const e = ({ children: r }) => {
|
|
11
11
|
var p;
|