@wix/form-elements 1.157.0 → 1.159.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-tHM5tqUo.js → appointment-rac-CpiyUOXo.js} +146 -146
- package/dist/component/{bookings-address-rac-wrGfkOz7.js → bookings-address-rac-BBEUV1t7.js} +1 -1
- package/dist/component/{bookings-email-rac-Cb8sq7hf.js → bookings-email-rac-DdfoeLFV.js} +1 -1
- package/dist/component/{bookings-first-name-rac-BD56qBtd.js → bookings-first-name-rac-DH39yvQ-.js} +1 -1
- package/dist/component/{bookings-header-rac-D3tBRKqn.js → bookings-header-rac-StLm7b4I.js} +1 -1
- package/dist/component/{bookings-last-name-rac-Bm3HJSBf.js → bookings-last-name-rac-DHZMPMOO.js} +1 -1
- package/dist/component/{bookings-login-bar-rac-BeHjULcN.js → bookings-login-bar-rac-DrHp1ojM.js} +1 -1
- package/dist/component/{bookings-phone-rac-MWT57RG3.js → bookings-phone-rac-6aGjbavK.js} +1 -1
- package/dist/component/{bookings-rich-text-rac-BiqiJ-Nc.js → bookings-rich-text-rac-DBlGZUM5.js} +1 -1
- package/dist/component/{checkbox-field-rac-x-PZaFOf.js → checkbox-field-rac-Cna1Va1X.js} +4 -4
- package/dist/component/{checkbox-group-field-headless-oeTynU3y.js → checkbox-group-field-headless-m_-10Mdx.js} +3 -3
- package/dist/component/{checkbox-group-field-rac-2fyiwyB3.js → checkbox-group-field-rac-BSCi5hmx.js} +4 -4
- package/dist/component/{checkbox-group-rac-BjXQ8PDF.js → checkbox-group-rac-BWYQZmAI.js} +1 -1
- package/dist/component/{checkbox-rac-Kyj7Zwpu.js → checkbox-rac-BsUTfSUf.js} +1 -1
- package/dist/component/{contacts-address-rac-Ce7LFuRD.js → contacts-address-rac-DwCLW8rV.js} +1 -1
- package/dist/component/{contacts-birthdate-rac-B5eul9At.js → contacts-birthdate-rac-DnNgxbKb.js} +1 -1
- package/dist/component/{contacts-company-rac-ltD1Z-1i.js → contacts-company-rac-BQqXzpNl.js} +1 -1
- package/dist/component/{contacts-email-rac-s0BcVZG9.js → contacts-email-rac-BINnZzxp.js} +1 -1
- package/dist/component/{contacts-first-name-rac-m5ZgJ7dk.js → contacts-first-name-rac-DBWKFkIU.js} +1 -1
- package/dist/component/{contacts-last-name-rac-DrV5F6_x.js → contacts-last-name-rac-D_-qrF7I.js} +1 -1
- package/dist/component/{contacts-phone-rac-BI3_TWL9.js → contacts-phone-rac-7n7JkSDr.js} +1 -1
- package/dist/component/{contacts-position-rac-BtFToj0w.js → contacts-position-rac-DvXP8nvT.js} +1 -1
- package/dist/component/{contacts-subscribe-rac-CjwWYOJi.js → contacts-subscribe-rac-DnLnV5Gm.js} +1 -1
- package/dist/component/{contacts-tax-id-rac-C1xi3GeO.js → contacts-tax-id-rac-BJVWhvYW.js} +1 -1
- package/dist/component/{date-availability-CULQxWpk.js → date-availability-Df807-eN.js} +1 -1
- package/dist/component/{date-input-field-rac-BkAyC-pf.js → date-input-field-rac-CEuPElMH.js} +6 -6
- package/dist/component/{date-input-rac-CLXlmHfL.js → date-input-rac-CSB3MWHW.js} +1 -1
- package/dist/component/{date-picker-field-rac-SJJANtKU.js → date-picker-field-rac-CySThPfz.js} +6 -6
- package/dist/component/{date-picker-rac-D0K5YwTe.js → date-picker-rac-Fp8_pxtf.js} +1 -1
- package/dist/component/{date-time-input-field-rac-DEz6KUnw.js → date-time-input-field-rac-DG5KSBHe.js} +6 -6
- package/dist/component/{date-time-input-rac-Cfmh9782.js → date-time-input-rac-wctMR4uM.js} +1 -1
- package/dist/component/{dext-checkbox-group-rac-Cnr0LnHA.js → dext-checkbox-group-rac-erMPfwFL.js} +2 -2
- package/dist/component/{dext-checkbox-rac-C6r_za2s.js → dext-checkbox-rac-DQSq9Lqd.js} +1 -1
- package/dist/component/{dext-date-picker-rac-CVZlRxA_.js → dext-date-picker-rac-RCLcd1VV.js} +1 -1
- package/dist/component/{dext-date-time-input-rac-cBfbJN6M.js → dext-date-time-input-rac-DMolWzvy.js} +1 -1
- package/dist/component/{dext-dropdown-rac-Jp3ECOrR.js → dext-dropdown-rac-wQ2GJL4V.js} +1 -1
- package/dist/component/{dext-email-rac-CTPOiOAK.js → dext-email-rac-BtymBVTW.js} +1 -1
- package/dist/component/{dext-number-input-rac-B3buLRvv.js → dext-number-input-rac-DHPiK0Z3.js} +1 -1
- package/dist/component/{dext-phone-rac-5h0Q4A0A.js → dext-phone-rac-C58vHEEe.js} +1 -1
- package/dist/component/{dext-radio-group-rac-C5KL3ImR.js → dext-radio-group-rac-Cp-I94HW.js} +2 -2
- package/dist/component/{dext-rating-input-rac-cA6kt-Kx.js → dext-rating-input-rac-DI0k3tVa.js} +1 -1
- package/dist/component/{dext-tags-rac-DId_ouLg.js → dext-tags-rac-DmF6ctvQ.js} +2 -2
- package/dist/component/{dext-text-area-rac-a_Ctq-nW.js → dext-text-area-rac-Bv6ridbR.js} +1 -1
- package/dist/component/{dext-text-input-rac-Celrb1dd.js → dext-text-input-rac-DoTAdUgU.js} +1 -1
- package/dist/component/{dext-url-input-rac-DhDFh4bJ.js → dext-url-input-rac-BuoMS6g2.js} +1 -1
- package/dist/component/{donation-rac-D9Mp3tdd.js → donation-rac-CjZalSgn.js} +49 -49
- package/dist/component/{dropdown-field-headless-DV-5awlM.js → dropdown-field-headless-BYEjiIUf.js} +5 -5
- package/dist/component/{dropdown-field-rac-CLkVHVA1.js → dropdown-field-rac-By_fpqhx.js} +3 -3
- package/dist/component/{dropdown-rac-Ct-aswuU.js → dropdown-rac-BnIEC4RX.js} +1 -1
- package/dist/component/{ecom-address-rac-DVPknl-N.js → ecom-address-rac-B6Usk1Ty.js} +1 -1
- package/dist/component/{ecom-subscription-checkbox-rac-CKgGWrh-.js → ecom-subscription-checkbox-rac-B4B0wzlC.js} +2 -2
- package/dist/component/{email-input-field-rac-OWZo2iom.js → email-input-field-rac-Df3KI3_v.js} +3 -3
- package/dist/component/{events-repeater-rac-DCabB0du.js → events-repeater-rac-B2iBk8lV.js} +4 -4
- package/dist/component/{events-rsvp-rac-DxRgqNul.js → events-rsvp-rac-xl_qCIh3.js} +3 -3
- package/dist/component/{field-error-headless-Dk7k-KYB.js → field-error-headless-DWc76YmY.js} +1 -1
- package/dist/component/{field-label-headless-y39tsCsZ.js → field-label-headless-DKBKqI2X.js} +1 -1
- package/dist/component/{file-upload-rac-C4WD5qpr.js → file-upload-rac-BVj4cRqe.js} +4 -4
- package/dist/component/{fixed-payment-rac-DKcK_tmF.js → fixed-payment-rac-BS1Hb4hg.js} +3 -3
- package/dist/component/{form-DLDT85R3.js → form-BTUoOcqB.js} +69 -69
- package/dist/component/form.css +1 -1
- package/dist/component/form.js +1 -1
- package/dist/component/{header-field-rac-ogGgRx6j.js → header-field-rac-DTJ_Us6u.js} +2 -2
- package/dist/component/{header-rac-iFaKa8f4.js → header-rac-CvYp0Jjo.js} +1 -1
- package/dist/component/{image-choice-rac-DfNqokUb.js → image-choice-rac--qrYqKJl.js} +42 -42
- package/dist/component/{index-ByrW-HXz.js → index-CoEV4QEy.js} +2 -2
- package/dist/component/{index-Dul6nI_B.js → index-DIl9BH2M.js} +4 -4
- package/dist/component/{isObjectLike-DFXNzcW0.js → isObjectLike-CLN09X5V.js} +1 -1
- package/dist/component/{multiline-address-field-rac-CNUJS91c.js → multiline-address-field-rac-BjWzx-LH.js} +7 -7
- package/dist/component/{multiline-address-rac-CPjFn5Gy.js → multiline-address-rac-DtaAJjbR.js} +1 -1
- package/dist/component/{number-input-field-rac-Bt19FjdI.js → number-input-field-rac-2gqDUlw9.js} +4 -4
- package/dist/component/{number-input-rac-Dae61Bec.js → number-input-rac-BlciEPLN.js} +1 -1
- package/dist/component/{password-rac-B7tvoqt9.js → password-rac-BvvQgafk.js} +4 -4
- package/dist/component/{payment-input-rac-BXu5WL3D.js → payment-input-rac-CSRyOPPr.js} +4 -4
- package/dist/component/{phone-input-field-rac-C9BDbA2d.js → phone-input-field-rac-BVWzH_TY.js} +6 -6
- package/dist/component/{phone-rac-C3_9F6v7.js → phone-rac-DMP1MoRs.js} +1 -1
- package/dist/component/{product-list-rac-CCofgn5n.js → product-list-rac-WQ9Qhzum.js} +4 -4
- package/dist/component/{quiz-radio-group-rac-CbgIWiXV.js → quiz-radio-group-rac-DzrL3-gZ.js} +1 -1
- package/dist/component/{radio-button-module-classes-BM9JBNUT.js → radio-button-module-classes-CJk18LzO.js} +3 -3
- package/dist/component/{radio-group-field-rac-B-lyFud_.js → radio-group-field-rac-DGoMoSgo.js} +4 -4
- package/dist/component/{radio-group-rac-D9M0dAMi.js → radio-group-rac-DhAELVNV.js} +1 -1
- package/dist/component/{rating-input-field-rac-pUUIQrrg.js → rating-input-field-rac-CFoesqmC.js} +4 -4
- package/dist/component/{rating-input-rac-CLkZVIk_.js → rating-input-rac-CFMIxche.js} +1 -1
- package/dist/component/{rich-content-rac.module-FwArrWcN.js → rich-content-rac.module-xJ03MegT.js} +1 -1
- package/dist/component/{rich-text-field-rac-DIt4OKaV.js → rich-text-field-rac-CBMY4JOB.js} +2 -2
- package/dist/component/{rich-text-rac-CUVXdxHj.js → rich-text-rac-CvZ7s1Ct.js} +1 -1
- package/dist/component/{service-dropdown-rac-BtvnLQzE.js → service-dropdown-rac-B627AgPG.js} +4 -4
- package/dist/component/{services-multi-choice-rac-Dcwixkmz.js → services-multi-choice-rac-fXOov4K7.js} +5 -5
- package/dist/component/{signature-rac-T2mxYE6y.js → signature-rac-CG_Q9Oxr.js} +4 -4
- package/dist/component/{submit-button-rac-7f5ljpl2.js → submit-button-rac-DAsovEp2.js} +2 -2
- package/dist/component/{tags-field-rac-mjYhQFhJ.js → tags-field-rac-9mpOMPLm.js} +74 -74
- package/dist/component/{tags-rac-CTJf0X1i.js → tags-rac-CNBJ08wS.js} +1 -1
- package/dist/component/{text-area-field-rac-1ODzSZeG.js → text-area-field-rac-D4aTm7CM.js} +4 -4
- package/dist/component/{text-area-rac-CJz4kwRV.js → text-area-rac-DoKiH_Kv.js} +1 -1
- package/dist/component/{text-input-field-rac-Cl6vApZ6.js → text-input-field-rac-BbvPB26b.js} +3 -3
- package/dist/component/{text-input-headless-CziSavtB.js → text-input-headless-BGaBRrP1.js} +3 -3
- package/dist/component/{text-input-rac-DSnAqQmb.js → text-input-rac-1ac1EKad.js} +1 -1
- package/dist/component/{time-input-rac-BX1vg4gy.js → time-input-rac-BS0rR-89.js} +4 -4
- package/dist/component/{url-input-field-rac-CFYK2mFr.js → url-input-field-rac-DbO6ATng.js} +4 -4
- package/dist/component/{url-input-rac-BBbbaYk7.js → url-input-rac-DHuny3d-.js} +1 -1
- package/dist/component/{use-dropdown-trigger-class-name-xAxAlTKU.js → use-dropdown-trigger-class-name-rcGBzxI1.js} +3 -3
- package/dist/component/{use-element-state-class-name-DoNi06OU.js → use-element-state-class-name-BUsFQfoW.js} +1 -1
- package/dist/component/{use-hoverable-input-class-name-CM5BhwNW.js → use-hoverable-input-class-name-C2l3G8gb.js} +2 -2
- package/dist/component/{use-is-forced-open-dropdown-Ds2ghFRN.js → use-is-forced-open-dropdown-CoOk4W4i.js} +1 -1
- package/dist/component/{use-service-options-base-BN6XeglC.js → use-service-options-base-D_enm38a.js} +1 -1
- package/dist/component/use-text-input-class-name-BLtPQoYE.js +6 -0
- package/package.json +2 -2
- package/dist/component/use-text-input-class-name-DVmUTFro.js +0 -6
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import n, { useMemo as x, useCallback as
|
|
1
|
+
import n, { useMemo as x, useCallback as v, useRef as te } from "react";
|
|
2
2
|
import { RicosViewer as ne } from "@wix/ricos/viewer";
|
|
3
|
-
import
|
|
3
|
+
import S 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 { aE as K, bo as T, bl as P, by as ie, bg as H, bq as ue, R as me, a0 as
|
|
7
|
-
import { f as
|
|
6
|
+
import { aE as K, bo as T, bl as P, by as ie, bg as H, bq as ue, R as me, a0 as pe, w as de, H as Ie, v as Ce, x as Ee } from "./form-BTUoOcqB.js";
|
|
7
|
+
import { f as O, a as F } from "./find-child-C60k4CxG.js";
|
|
8
8
|
import { a as Q } from "./format-currency-BwShJ9vM.js";
|
|
9
|
-
import { D as fe, E as
|
|
10
|
-
import { L as
|
|
9
|
+
import { D as fe, E as Oe } from "./field-error-headless-DWc76YmY.js";
|
|
10
|
+
import { L as ye } from "./field-label-headless-DKBKqI2X.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 Ne } from "./payment-field-utils-DobiK5Xh.js";
|
|
14
14
|
import { u as ge } from "./use-synced-display-value-DcAxdn3M.js";
|
|
15
15
|
import { E as Fe } from "./error-icon-hZxQ6DEy.js";
|
|
16
|
-
import { s as
|
|
16
|
+
import { s as L } from "./field-rac.module-DP0lkkEv.js";
|
|
17
17
|
import { o as De } from "./options-rac.module-_THNq6Qq.js";
|
|
18
|
-
import { u as
|
|
19
|
-
import { u as
|
|
20
|
-
function
|
|
18
|
+
import { u as ve } from "./use-element-state-class-name-BUsFQfoW.js";
|
|
19
|
+
import { u as Se } from "./use-text-input-class-name-BLtPQoYE.js";
|
|
20
|
+
function Le(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 Le(e, "id");
|
|
25
25
|
}
|
|
26
26
|
const Ae = 0.01;
|
|
27
27
|
function Te(e) {
|
|
@@ -43,7 +43,7 @@ function Be(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:
|
|
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: g, regionalFormat: _ } = H(), y = o == null ? void 0 : o[0], D = x(() => {
|
|
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
|
}, [
|
|
@@ -53,11 +53,11 @@ const s = ({ children: e }) => {
|
|
|
53
53
|
]), a = x(() => E ? Pe(D) : void 0, [
|
|
54
54
|
D,
|
|
55
55
|
E
|
|
56
|
-
]), W = Be(
|
|
56
|
+
]), W = Be(y, a), [V, M] = ge({
|
|
57
57
|
sourceValue: W,
|
|
58
58
|
format: (I) => he(String(I ?? ""), _),
|
|
59
59
|
regionalFormat: _
|
|
60
|
-
}), q =
|
|
60
|
+
}), q = v((I) => {
|
|
61
61
|
const h = I === void 0 ? void 0 : B[I];
|
|
62
62
|
r(h ? [
|
|
63
63
|
Y(h, Te(h))
|
|
@@ -66,7 +66,7 @@ const s = ({ children: e }) => {
|
|
|
66
66
|
r,
|
|
67
67
|
B,
|
|
68
68
|
M
|
|
69
|
-
]), k =
|
|
69
|
+
]), k = v((I) => {
|
|
70
70
|
a && r(typeof I == "number" ? [
|
|
71
71
|
Y(a, String(I))
|
|
72
72
|
] : []);
|
|
@@ -75,31 +75,31 @@ const s = ({ children: e }) => {
|
|
|
75
75
|
a
|
|
76
76
|
]), w = x(() => ce(k, 500), [
|
|
77
77
|
k
|
|
78
|
-
]), j =
|
|
79
|
-
(
|
|
78
|
+
]), j = v((I) => {
|
|
79
|
+
(y == null ? void 0 : y.productId) !== (a == null ? void 0 : a.id) && r(void 0);
|
|
80
80
|
const { validInput: h, validNumber: ee } = _e(I.target.value, Ae, V, _);
|
|
81
81
|
M(h), w(ee);
|
|
82
82
|
}, [
|
|
83
83
|
_,
|
|
84
84
|
r,
|
|
85
|
-
|
|
85
|
+
y,
|
|
86
86
|
a,
|
|
87
87
|
V,
|
|
88
88
|
w,
|
|
89
89
|
M
|
|
90
|
-
]), U = (
|
|
90
|
+
]), U = (y == null ? void 0 : y.productId) || null, z = v(() => {
|
|
91
91
|
a != null && a.id && U !== a.id && q(a.id);
|
|
92
92
|
}, [
|
|
93
93
|
a == null ? void 0 : a.id,
|
|
94
94
|
U,
|
|
95
95
|
q
|
|
96
|
-
]), J =
|
|
96
|
+
]), J = O(e, s.Label), G = O(e, s.Control), X = O(e, s.Description), Z = O(e, s.Error);
|
|
97
97
|
return /* @__PURE__ */ n.createElement(f, {
|
|
98
98
|
fieldId: t,
|
|
99
99
|
renderLabel: () => J,
|
|
100
100
|
renderInput: () => /* @__PURE__ */ n.createElement(be, {
|
|
101
101
|
id: c,
|
|
102
|
-
ariaLabelledBy:
|
|
102
|
+
ariaLabelledBy: d,
|
|
103
103
|
ariaDescribedBy: b,
|
|
104
104
|
required: l,
|
|
105
105
|
onBlur: i,
|
|
@@ -113,14 +113,14 @@ const s = ({ children: e }) => {
|
|
|
113
113
|
onCustomAmountInputChange: j,
|
|
114
114
|
currency: g,
|
|
115
115
|
t: m,
|
|
116
|
-
placeholder:
|
|
116
|
+
placeholder: p === void 0 ? m("donation.other-option.placeholder") : p,
|
|
117
117
|
customAmountProductId: a == null ? void 0 : a.id,
|
|
118
118
|
onFocusCustomInput: z
|
|
119
119
|
}) : null),
|
|
120
120
|
renderDescription: () => /* @__PURE__ */ n.createElement(n.Fragment, null, Z, X)
|
|
121
121
|
});
|
|
122
122
|
}, Me = ({ children: e, className: t, ...o }) => {
|
|
123
|
-
const { productsById: r, selectedValue: l, onSelectProduct: i, addOther: C, customAmount: u, onCustomAmountInputChange: E, currency:
|
|
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(), g = O(e, s.Options), _ = O(e, s.OtherInput);
|
|
124
124
|
return /* @__PURE__ */ n.createElement("div", {
|
|
125
125
|
className: t,
|
|
126
126
|
"data-invalid": m
|
|
@@ -131,18 +131,18 @@ const s = ({ children: e }) => {
|
|
|
131
131
|
}) : null, _ && C ? F(_, {
|
|
132
132
|
customAmount: u,
|
|
133
133
|
onCustomAmountInputChange: E,
|
|
134
|
-
currency:
|
|
134
|
+
currency: p,
|
|
135
135
|
t: f,
|
|
136
136
|
placeholder: c,
|
|
137
|
-
customAmountProductId:
|
|
137
|
+
customAmountProductId: d,
|
|
138
138
|
onFocusCustomInput: b
|
|
139
139
|
}) : null);
|
|
140
140
|
}, $ = ({ children: e, className: t, ...o }) => {
|
|
141
|
-
const { productsById: r, selectedValue: l, onSelectProduct: i } = o, { options: C, numberOfColumns: u, disabled: E } = T(), { labelId:
|
|
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,
|
|
145
|
-
"aria-labelledby":
|
|
145
|
+
"aria-labelledby": p,
|
|
146
146
|
selectionMode: "single",
|
|
147
147
|
selectedKeys: l ? [
|
|
148
148
|
l
|
|
@@ -153,7 +153,7 @@ const s = ({ children: e }) => {
|
|
|
153
153
|
isDisabled: E
|
|
154
154
|
}, C.map((c) => {
|
|
155
155
|
var m;
|
|
156
|
-
const
|
|
156
|
+
const d = r[c.value], b = (m = d == null ? void 0 : d.fixedPriceOptions) == null ? void 0 : m.price;
|
|
157
157
|
return F(f, {
|
|
158
158
|
key: c.value,
|
|
159
159
|
value: c.value,
|
|
@@ -161,24 +161,24 @@ 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 } = H(),
|
|
164
|
+
const { value: r, price: l } = o, { id: i, hasError: C } = T(), { currency: u, regionalFormat: E } = H(), p = O(e, R.Value), f = O(e, R.Currency), { isCurrencyPrefixed: c } = Q({
|
|
165
165
|
amount: l,
|
|
166
166
|
currency: u == null ? void 0 : u.code,
|
|
167
167
|
locale: E
|
|
168
|
-
}),
|
|
168
|
+
}), d = te(null);
|
|
169
169
|
ue(() => {
|
|
170
170
|
var m;
|
|
171
|
-
(m =
|
|
171
|
+
(m = d.current) == null || m.focus({
|
|
172
172
|
preventScroll: !0
|
|
173
173
|
});
|
|
174
174
|
}, i);
|
|
175
|
-
const b =
|
|
175
|
+
const b = p ? F(p, {
|
|
176
176
|
price: l
|
|
177
177
|
}) : null;
|
|
178
178
|
return /* @__PURE__ */ n.createElement(ae, {
|
|
179
179
|
id: r,
|
|
180
180
|
className: t,
|
|
181
|
-
ref:
|
|
181
|
+
ref: d,
|
|
182
182
|
"data-invalid": C || void 0
|
|
183
183
|
}, /* @__PURE__ */ n.createElement(n.Fragment, null, c && f, b, !c && f));
|
|
184
184
|
}, xe = ({ className: e, ...t }) => {
|
|
@@ -199,7 +199,7 @@ const s = ({ children: e }) => {
|
|
|
199
199
|
R.Value = xe;
|
|
200
200
|
R.Currency = He;
|
|
201
201
|
const A = ({ children: e, className: t, ...o }) => {
|
|
202
|
-
const { customAmount: r, onCustomAmountInputChange: l, currency: i, t: C, placeholder: u, customAmountProductId: E, onFocusCustomInput:
|
|
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), g = O(e, A.Value), _ = v((D) => {
|
|
203
203
|
l({
|
|
204
204
|
target: {
|
|
205
205
|
value: D
|
|
@@ -207,16 +207,16 @@ const A = ({ children: e, className: t, ...o }) => {
|
|
|
207
207
|
});
|
|
208
208
|
}, [
|
|
209
209
|
l
|
|
210
|
-
]),
|
|
211
|
-
|
|
210
|
+
]), y = v(() => {
|
|
211
|
+
p();
|
|
212
212
|
}, [
|
|
213
|
-
|
|
213
|
+
p
|
|
214
214
|
]);
|
|
215
215
|
return /* @__PURE__ */ n.createElement(re, {
|
|
216
|
-
"aria-labelledby": `${
|
|
216
|
+
"aria-labelledby": `${d} ${b}`,
|
|
217
217
|
value: r,
|
|
218
218
|
onChange: _,
|
|
219
|
-
onFocus:
|
|
219
|
+
onFocus: y,
|
|
220
220
|
isDisabled: f,
|
|
221
221
|
isInvalid: c
|
|
222
222
|
}, /* @__PURE__ */ n.createElement(se, {
|
|
@@ -253,13 +253,13 @@ const A = ({ children: e, className: t, ...o }) => {
|
|
|
253
253
|
A.Currency = Ve;
|
|
254
254
|
A.Value = qe;
|
|
255
255
|
$.Option = R;
|
|
256
|
-
s.Label =
|
|
256
|
+
s.Label = ye;
|
|
257
257
|
s.Control = Me;
|
|
258
258
|
s.Options = $;
|
|
259
259
|
s.OtherInput = A;
|
|
260
260
|
s.Description = fe;
|
|
261
|
-
s.Error =
|
|
262
|
-
const Ue = "
|
|
261
|
+
s.Error = Oe;
|
|
262
|
+
const Ue = "_control_lovol_1", $e = "_option_lovol_7", ke = "_optionHover_lovol_39", we = "_optionSelected_lovol_39", Ge = "_optionCurrency_lovol_92", Ye = "_otherInput_lovol_96", Ke = "_otherInputCurrency_lovol_118", N = {
|
|
263
263
|
control: Ue,
|
|
264
264
|
option: $e,
|
|
265
265
|
optionHover: ke,
|
|
@@ -275,18 +275,18 @@ const Ue = "_control_1sfyd_1", $e = "_option_1sfyd_7", ke = "_optionHover_1sfyd_
|
|
|
275
275
|
selected: N.optionSelected,
|
|
276
276
|
hover: N.optionHover
|
|
277
277
|
}, je = () => {
|
|
278
|
-
const e =
|
|
278
|
+
const e = Se(N.otherInput), t = ve({
|
|
279
279
|
globalClasses: Ee,
|
|
280
280
|
moduleClasses: We
|
|
281
281
|
});
|
|
282
282
|
return /* @__PURE__ */ n.createElement(s, null, /* @__PURE__ */ n.createElement(s.Label, {
|
|
283
|
-
className:
|
|
283
|
+
className: S(me, L.label)
|
|
284
284
|
}, /* @__PURE__ */ n.createElement(s.Label.Required, {
|
|
285
|
-
className:
|
|
285
|
+
className: S(pe, L.requiredMark)
|
|
286
286
|
})), /* @__PURE__ */ n.createElement(s.Control, {
|
|
287
287
|
className: N.control
|
|
288
288
|
}, /* @__PURE__ */ n.createElement(s.Options, {
|
|
289
|
-
className:
|
|
289
|
+
className: S(de, De.options, N.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,11 +296,11 @@ const Ue = "_control_1sfyd_1", $e = "_option_1sfyd_7", ke = "_optionHover_1sfyd_
|
|
|
296
296
|
}, /* @__PURE__ */ n.createElement(s.OtherInput.Currency, {
|
|
297
297
|
className: N.otherInputCurrency
|
|
298
298
|
}), /* @__PURE__ */ n.createElement(s.OtherInput.Value, {
|
|
299
|
-
className:
|
|
299
|
+
className: L.innerInput
|
|
300
300
|
}))), /* @__PURE__ */ n.createElement(s.Error, {
|
|
301
|
-
className:
|
|
301
|
+
className: S(Ie, L.error)
|
|
302
302
|
}, /* @__PURE__ */ n.createElement(Fe, null), /* @__PURE__ */ n.createElement(s.Error.Text, null)), /* @__PURE__ */ n.createElement(s.Description, {
|
|
303
|
-
className:
|
|
303
|
+
className: S(Ce, L.description)
|
|
304
304
|
}, Qe));
|
|
305
305
|
}, Ct = () => /* @__PURE__ */ n.createElement(je, null);
|
|
306
306
|
export {
|
package/dist/component/{dropdown-field-headless-DV-5awlM.js → dropdown-field-headless-BYEjiIUf.js}
RENAMED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import e, { useState as b, useCallback as g, useRef as _ } from "react";
|
|
2
2
|
import { UNSAFE_PortalProvider as k } from "react-aria";
|
|
3
3
|
import { Select as M, SelectValue as H, ListBoxItem as U } from "react-aria-components";
|
|
4
|
-
import { bo as E, bl as O, bq as Y } from "./form-
|
|
4
|
+
import { bo as E, bl as O, bq as Y } from "./form-BTUoOcqB.js";
|
|
5
5
|
import { f as d, a as F } from "./find-child-C60k4CxG.js";
|
|
6
|
-
import { D as j, E as z } from "./field-error-headless-
|
|
7
|
-
import { L as G } from "./field-label-headless-
|
|
6
|
+
import { D as j, E as z } from "./field-error-headless-DWc76YmY.js";
|
|
7
|
+
import { L as G } from "./field-label-headless-DKBKqI2X.js";
|
|
8
8
|
import { E as J, S as K, N as Q } from "./non-modal-popover-D-u13tmp.js";
|
|
9
|
-
import { a as W } from "./use-is-forced-open-dropdown-
|
|
10
|
-
import { V as X } from "./use-dropdown-trigger-class-name-
|
|
9
|
+
import { a as W } from "./use-is-forced-open-dropdown-CoOk4W4i.js";
|
|
10
|
+
import { V as X } from "./use-dropdown-trigger-class-name-rcGBzxI1.js";
|
|
11
11
|
const r = ({ children: n }) => {
|
|
12
12
|
const { id: s, value: o, defaultValue: a, options: u = [], readOnly: l, onChange: t, placeholder: p, disabled: i, required: v, onBlur: L, onFocus: y, FieldLayout: C, hasError: D } = E(), [I, h] = b(!1), m = W(s), [P, S] = b(null), T = o && u.some((c) => (c.value ?? c.label) === o) ? o : a || null, { labelId: B } = O(), N = g((c) => {
|
|
13
13
|
l || t(typeof c == "string" ? c : null);
|
|
@@ -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 { D as r } from "./dropdown-field-headless-
|
|
4
|
+
import { D as r } from "./dropdown-field-headless-BYEjiIUf.js";
|
|
5
5
|
import { C as n } from "./chevron-down-icon-CcpVm6B-.js";
|
|
6
6
|
import { E as l } from "./error-icon-hZxQ6DEy.js";
|
|
7
7
|
import { H as c } from "./custom-focus-class-_483Pkwp.js";
|
|
8
8
|
import { s as o } from "./field-rac.module-DP0lkkEv.js";
|
|
9
|
-
import { R as i, a0 as p, y as E, H as D, v as _ } from "./form-
|
|
10
|
-
import { a as O, u as R } from "./use-dropdown-trigger-class-name-
|
|
9
|
+
import { R as i, a0 as p, y as E, H as D, v as _ } from "./form-BTUoOcqB.js";
|
|
10
|
+
import { a as O, u as R } from "./use-dropdown-trigger-class-name-rcGBzxI1.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 { bo as a, by as c, aq as i } from "./form-
|
|
3
|
-
import { C as l } from "./checkbox-field-rac-
|
|
2
|
+
import { bo as a, by as c, aq as i } from "./form-BTUoOcqB.js";
|
|
3
|
+
import { C as l } from "./checkbox-field-rac-Cna1Va1X.js";
|
|
4
4
|
const p = (e) => ({
|
|
5
5
|
nodes: [
|
|
6
6
|
{
|
package/dist/component/{email-input-field-rac-OWZo2iom.js → email-input-field-rac-Df3KI3_v.js}
RENAMED
|
@@ -2,7 +2,7 @@ import { RicosViewer as ie } from "@wix/ricos/viewer";
|
|
|
2
2
|
import D 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 { bl as fe, by as ge, bj as ve, d as ye, bo as Ee, bs as de, bm as be, ao as Se, R as Oe, a0 as he, H as Ie, v as Ne, a9 as Ae } from "./form-
|
|
5
|
+
import { bl as fe, by as ge, bj as ve, d as ye, bo as Ee, bs as de, bm as be, ao as Se, R as Oe, a0 as he, H as Ie, v as Ne, a9 as Ae } from "./form-BTUoOcqB.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-BGaBRrP1.js";
|
|
14
14
|
import { E as je } from "./error-icon-hZxQ6DEy.js";
|
|
15
15
|
import { s as H } from "./field-rac.module-DP0lkkEv.js";
|
|
16
|
-
import { u as De } from "./use-text-input-class-name-
|
|
16
|
+
import { u as De } from "./use-text-input-class-name-BLtPQoYE.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 j, useMemo as h, useCallback as V, useRef as x } from "react";
|
|
2
2
|
import M from "classnames";
|
|
3
3
|
import { NumberField as z, CheckboxField as J, CheckboxButton as Q, Group as W, Input as Y, Button as w } from "react-aria-components";
|
|
4
|
-
import { bu as q, bv as H, bk as K, bp as P, aM as Z, bo as y, bl as X, bq as U, as as ee, R as te, n as se, s as ne, r as oe } from "./form-
|
|
4
|
+
import { bu as q, bv as H, bk as K, bp as P, aM as Z, bo as y, bl as X, bq as U, as as ee, R as te, n as se, s as ne, r as oe } from "./form-BTUoOcqB.js";
|
|
5
5
|
import { f as b, a as L } from "./find-child-C60k4CxG.js";
|
|
6
|
-
import { L as re } from "./field-label-headless-
|
|
6
|
+
import { L as re } from "./field-label-headless-DKBKqI2X.js";
|
|
7
7
|
import { S as ae } from "./selection-indicator-XQ8MYHUQ.js";
|
|
8
8
|
import { u as le } from "./use-invoke-callback-UH73A_J3.js";
|
|
9
9
|
import { C as k } from "./chevron-down-icon-CcpVm6B-.js";
|
|
10
10
|
import { C as ce } from "./checkbox-indicator-module-classes-akWZsZNn.js";
|
|
11
11
|
import { s as v } from "./field-rac.module-DP0lkkEv.js";
|
|
12
|
-
import { u as ue } from "./use-element-state-class-name-
|
|
13
|
-
import { u as me } from "./use-text-input-class-name-
|
|
12
|
+
import { u as ue } from "./use-element-state-class-name-BUsFQfoW.js";
|
|
13
|
+
import { u as me } from "./use-text-input-class-name-BLtPQoYE.js";
|
|
14
14
|
const ie = [], de = ({ id: e, fields: s, layout: a, value: o, onChange: n, errors: l = ie, validation: c }) => {
|
|
15
15
|
const [m, i] = j((o == null ? void 0 : o.length) || 0), u = h(() => 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 s from "classnames";
|
|
4
|
-
import { a, s as n, R as c } from "./radio-button-module-classes-
|
|
4
|
+
import { a, s as n, R as c } from "./radio-button-module-classes-CJk18LzO.js";
|
|
5
5
|
import { E as i } from "./error-icon-hZxQ6DEy.js";
|
|
6
6
|
import { s as o } from "./field-rac.module-DP0lkkEv.js";
|
|
7
|
-
import { R as E, a0 as p, X as R, Y as O, H as _, v as L, Z as D } from "./form-
|
|
7
|
+
import { R as E, a0 as p, X as R, Y as O, H as _, v as L, Z as D } from "./form-BTUoOcqB.js";
|
|
8
8
|
import { o as I } 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-BUsFQfoW.js";
|
|
10
10
|
const e = ({ children: r, className: l }) => /* @__PURE__ */ t.createElement(a, {
|
|
11
11
|
className: l
|
|
12
12
|
}, r);
|
package/dist/component/{field-error-headless-Dk7k-KYB.js → field-error-headless-DWc76YmY.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import t, { createContext as m, useContext as M } from "react";
|
|
2
|
-
import { bo as c, bl as i, bg as f, aZ as x, a_ as b } from "./form-
|
|
2
|
+
import { bo as c, bl as i, bg as f, aZ as x, a_ as b } from "./form-BTUoOcqB.js";
|
|
3
3
|
const H = ({ className: r, children: e }) => {
|
|
4
4
|
const { description: s, target: o } = c(), { descriptionId: a } = i(), { language: n } = f();
|
|
5
5
|
return s ? /* @__PURE__ */ t.createElement("div", {
|
package/dist/component/{field-label-headless-y39tsCsZ.js → field-label-headless-DKBKqI2X.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { bo as m, aF as d, aG as p, bl as D, by as B } from "./form-
|
|
1
|
+
import { bo as m, aF as d, aG as p, bl as D, by as B } from "./form-BTUoOcqB.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 Y, useRef as k, useMemo as fe, useEffect as ne, useCallb
|
|
|
2
2
|
import Le from "@wix/editor-react-components/AnimatedIcon";
|
|
3
3
|
import { RicosViewer as xe } from "@wix/ricos/viewer";
|
|
4
4
|
import Z from "classnames";
|
|
5
|
-
import { bk as Ce, by as re, bt as ve, ar as Ne, bw as De, ak as ie, bx as Te, bl as Ee, bo as V, bq as Se, bi as Be, bh as ye, R as Ie, a0 as Re, b as Ze, K as Ae, L as ce, v as ue, I as de, H as pe, J as Me, f as te } from "./form-
|
|
5
|
+
import { bk as Ce, by as re, bt as ve, ar as Ne, bw as De, ak as ie, bx as Te, bl as Ee, bo as V, bq as Se, bi as Be, bh as ye, R as Ie, a0 as Re, b as Ze, K as Ae, L as ce, v as ue, I as de, H as pe, J as Me, f as te } from "./form-BTUoOcqB.js";
|
|
6
6
|
import { E as Oe } from "./error-icon-hZxQ6DEy.js";
|
|
7
7
|
import { s as $ } from "./field-rac.module-DP0lkkEv.js";
|
|
8
|
-
import { u as me } from "./use-element-state-class-name-
|
|
8
|
+
import { u as me } from "./use-element-state-class-name-BUsFQfoW.js";
|
|
9
9
|
import { DropZone as Ue, Text as we, FileTrigger as He, Button as Fe, ProgressBar as Pe, VisuallyHidden as ke } from "react-aria-components";
|
|
10
10
|
import { f as L, a as W } from "./find-child-C60k4CxG.js";
|
|
11
|
-
import { b as ze, a as Ve, D as qe, E as Ke } from "./field-error-headless-
|
|
12
|
-
import { L as je } from "./field-label-headless-
|
|
11
|
+
import { b as ze, a as Ve, D as qe, E as Ke } from "./field-error-headless-DWc76YmY.js";
|
|
12
|
+
import { L as je } from "./field-label-headless-DKBKqI2X.js";
|
|
13
13
|
const $e = {
|
|
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 { bo as C, bg as I, bl as P, R, M as S, v as x } from "./form-
|
|
4
|
+
import { bo as C, bg as I, bl as P, R, M as S, v as x } from "./form-BTUoOcqB.js";
|
|
5
5
|
import { f as c, a as N } 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-DWc76YmY.js";
|
|
8
|
+
import { L as g } from "./field-label-headless-DKBKqI2X.js";
|
|
9
9
|
import { s as F } from "./field-rac.module-DP0lkkEv.js";
|
|
10
10
|
const e = ({ children: r }) => {
|
|
11
11
|
var p;
|