@wix/form-elements 1.172.0 → 1.174.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-DZ0SFXmL.js → appointment-rac-DIV9zgmZ.js} +80 -80
- package/dist/component/{bookings-address-rac-BW9grc77.js → bookings-address-rac-C5cT4gkX.js} +1 -1
- package/dist/component/{bookings-email-rac-D8gMaAfB.js → bookings-email-rac-CQEhRS7N.js} +1 -1
- package/dist/component/{bookings-first-name-rac-CAjcs7b6.js → bookings-first-name-rac-BwdasJXd.js} +1 -1
- package/dist/component/{bookings-header-rac-BhKZ1kku.js → bookings-header-rac-CWzKq3yr.js} +1 -1
- package/dist/component/{bookings-last-name-rac-DpsMDuU0.js → bookings-last-name-rac-CoVWqEy5.js} +1 -1
- package/dist/component/{bookings-login-bar-rac-BVdWmKS8.js → bookings-login-bar-rac-DwoI-iRQ.js} +4 -4
- package/dist/component/{bookings-phone-rac-DsqNi2mI.js → bookings-phone-rac-WAZU-1kD.js} +1 -1
- package/dist/component/{bookings-rich-text-rac-elM4Ne3f.js → bookings-rich-text-rac-I5Uo-q87.js} +1 -1
- package/dist/component/{checkbox-field-rac-BU4E73fD.js → checkbox-field-rac-CKbKBNcQ.js} +43 -43
- package/dist/component/{checkbox-group-field-headless-6yJdIbP2.js → checkbox-group-field-headless-7PMj-zW6.js} +47 -47
- package/dist/component/{checkbox-group-field-rac-CojbCWSF.js → checkbox-group-field-rac-BZ-YgEYR.js} +4 -4
- package/dist/component/{checkbox-group-rac-3qUVUc-C.js → checkbox-group-rac-CED8h4qI.js} +1 -1
- package/dist/component/{checkbox-rac-DwbTapd_.js → checkbox-rac-CbpEXMBz.js} +1 -1
- package/dist/component/{contacts-address-rac-BL7XDZuP.js → contacts-address-rac-F3Ui7iJu.js} +1 -1
- package/dist/component/{contacts-birthdate-rac-DeJYIHAg.js → contacts-birthdate-rac-CcxRV3RQ.js} +1 -1
- package/dist/component/{contacts-company-rac-BeImf5uc.js → contacts-company-rac-mDY20HzW.js} +1 -1
- package/dist/component/{contacts-email-rac-CtacwrZ0.js → contacts-email-rac-CoBPNuCj.js} +1 -1
- package/dist/component/{contacts-first-name-rac-CAdOqOOA.js → contacts-first-name-rac-DzbpBmNm.js} +1 -1
- package/dist/component/{contacts-last-name-rac-Db9mHzCW.js → contacts-last-name-rac-DEmV-MNE.js} +1 -1
- package/dist/component/{contacts-phone-rac-W0OLEbzL.js → contacts-phone-rac-BlEpatWP.js} +1 -1
- package/dist/component/{contacts-position-rac-CV4Ibt4Z.js → contacts-position-rac-DlZahRQc.js} +1 -1
- package/dist/component/{contacts-subscribe-rac-CQ3Q1pjZ.js → contacts-subscribe-rac-LXCEPvXl.js} +1 -1
- package/dist/component/{contacts-tax-id-rac-Dux-pk6r.js → contacts-tax-id-rac-DS0SDAtC.js} +1 -1
- package/dist/component/{date-availability-RkX-Qw7G.js → date-availability-DTFyrU8J.js} +1 -1
- package/dist/component/{date-input-field-rac-CYCT6qoa.js → date-input-field-rac-D7Pv-hqW.js} +62 -62
- package/dist/component/{date-input-rac-BkYZ7q_o.js → date-input-rac-BEsh54Gz.js} +1 -1
- package/dist/component/{date-picker-field-rac-eMidYtsl.js → date-picker-field-rac-DJirD93a.js} +15 -15
- package/dist/component/{date-picker-rac-D23rxZcF.js → date-picker-rac-B1fUqj_w.js} +1 -1
- package/dist/component/{date-time-input-field-rac-BjIj4dXQ.js → date-time-input-field-rac-CPFaQUXF.js} +38 -38
- package/dist/component/{date-time-input-rac-BSGAdk9L.js → date-time-input-rac-CAozBO0e.js} +1 -1
- package/dist/component/{dext-checkbox-group-rac-Xmb5IKrb.js → dext-checkbox-group-rac-B0yqJoj8.js} +2 -2
- package/dist/component/{dext-checkbox-rac-2eA7y0ld.js → dext-checkbox-rac-yZaUdHz1.js} +1 -1
- package/dist/component/{dext-date-picker-rac-CmLxVGGT.js → dext-date-picker-rac-AJ7XIW-h.js} +1 -1
- package/dist/component/{dext-date-time-input-rac-Cd9nwSjb.js → dext-date-time-input-rac-CPs79sUY.js} +1 -1
- package/dist/component/{dext-dropdown-rac-BKdQ0nGS.js → dext-dropdown-rac-W2QzqPG4.js} +1 -1
- package/dist/component/{dext-email-rac-07zDPxyf.js → dext-email-rac-CCW1Dk1m.js} +1 -1
- package/dist/component/{dext-number-input-rac-DRvGuppY.js → dext-number-input-rac-BAInaxoF.js} +1 -1
- package/dist/component/{dext-phone-rac-CKtTVjFg.js → dext-phone-rac-CYYgZiFW.js} +1 -1
- package/dist/component/{dext-radio-group-rac-BsBmMufq.js → dext-radio-group-rac-Dqvmxoai.js} +2 -2
- package/dist/component/{dext-rating-input-rac-CcFSTAIh.js → dext-rating-input-rac-CWl7X0zW.js} +1 -1
- package/dist/component/{dext-tags-rac-CCTDlCvX.js → dext-tags-rac-BpAfPh55.js} +2 -2
- package/dist/component/{dext-text-area-rac-Cif8po9h.js → dext-text-area-rac-CLTg8XXH.js} +1 -1
- package/dist/component/{dext-text-input-rac-2118X4iF.js → dext-text-input-rac-BV-F-ZsP.js} +1 -1
- package/dist/component/{dext-url-input-rac-DDImGkQe.js → dext-url-input-rac-B9wHRaZr.js} +1 -1
- package/dist/component/{donation-rac-Dnylss1d.js → donation-rac-Be4swKWD.js} +50 -50
- package/dist/component/{dropdown-field-rac-DDI4ZgZH.js → dropdown-field-rac-BFEB_WuX.js} +3 -3
- package/dist/component/{dropdown-rac-DX0Z3R_8.js → dropdown-rac-Dz7QtFVB.js} +1 -1
- package/dist/component/{ecom-address-rac-D9MeEQsk.js → ecom-address-rac-Bu6msDgo.js} +1 -1
- package/dist/component/{ecom-subscription-checkbox-rac-DKJ9j5dj.js → ecom-subscription-checkbox-rac-BRovQqrM.js} +2 -2
- package/dist/component/{email-input-field-rac-DaKrmlwe.js → email-input-field-rac-EERVxm6G.js} +42 -42
- package/dist/component/{events-repeater-rac-DWrOLT0Y.js → events-repeater-rac-xs0pooBs.js} +49 -49
- package/dist/component/{events-rsvp-rac-YBTR1tR0.js → events-rsvp-rac-CMi-8EqK.js} +3 -3
- package/dist/component/{field-error-headless-jksFrezt.js → field-error-headless-DbFXeaud.js} +8 -8
- package/dist/component/{field-label-headless-BBvJAVxI.js → field-label-headless-CWOYHPsb.js} +11 -11
- package/dist/component/{file-upload-rac-CgdmfUZG.js → file-upload-rac-vbMTIdDc.js} +61 -61
- package/dist/component/{fixed-payment-rac-v6rKwzFs.js → fixed-payment-rac-BRk7ams_.js} +7 -7
- package/dist/component/{form-BsiK682r.js → form-BjeODFzx.js} +238 -237
- package/dist/component/form.css +1 -1
- package/dist/component/form.js +1 -1
- package/dist/component/{header-field-rac-BuXybl7K.js → header-field-rac-CQexwZn7.js} +2 -2
- package/dist/component/{header-rac-CDyaLosW.js → header-rac-CYbPDl4_.js} +1 -1
- package/dist/component/{image-choice-rac-BRlMroBw.js → image-choice-rac-DDvlaK6K.js} +15 -15
- package/dist/component/{index-BanOeCAF.js → index-B6wFpWpe.js} +4 -4
- package/dist/component/{index-y9URYGEE.js → index-Bs9ypEe2.js} +6 -6
- package/dist/component/{isObjectLike-BG9nJ-rx.js → isObjectLike-Xcw2hQQ6.js} +1 -1
- package/dist/component/{multiline-address-field-rac-DRAkxI1l.js → multiline-address-field-rac-CYJR-MUz.js} +209 -209
- package/dist/component/{multiline-address-rac-JjTzWsEb.js → multiline-address-rac-DO1j_w6S.js} +1 -1
- package/dist/component/{number-input-field-rac-QrouG7Hv.js → number-input-field-rac-C-qvd8v9.js} +18 -18
- package/dist/component/{number-input-rac-DGmE7cLv.js → number-input-rac-CQSaifZE.js} +1 -1
- package/dist/component/{password-rac-DeyY228m.js → password-rac-CqnbZtR_.js} +28 -28
- package/dist/component/{payment-input-rac-DmIennLi.js → payment-input-rac-CbOcztkp.js} +28 -28
- package/dist/component/{phone-input-field-rac-F7e74TGA.js → phone-input-field-rac-BQ187I2C.js} +55 -55
- package/dist/component/{phone-rac-CQfB2CQD.js → phone-rac-CbA2xqF3.js} +1 -1
- package/dist/component/{product-list-rac--GGG8vvO.js → product-list-rac-MxB9tRiE.js} +103 -103
- package/dist/component/{quiz-radio-group-rac-DF2C2vNq.js → quiz-radio-group-rac-IViaDVRW.js} +1 -1
- package/dist/component/{radio-button-module-classes-DmpNo6F2.js → radio-button-module-classes-jtnooKMO.js} +33 -33
- package/dist/component/{radio-group-field-rac-BGcPYfKO.js → radio-group-field-rac-g3SQGJPp.js} +4 -4
- package/dist/component/{radio-group-rac-CqysUMCE.js → radio-group-rac-D8wmzlbu.js} +1 -1
- package/dist/component/{rating-input-field-rac-D-ei917Y.js → rating-input-field-rac-BqPXKKdi.js} +15 -15
- package/dist/component/{rating-input-rac-a9zJ74fw.js → rating-input-rac-CeZIpOmm.js} +1 -1
- package/dist/component/{rich-content-rac.module-CvyLVlXL.js → rich-content-rac.module-BLgdpRh_.js} +5 -5
- package/dist/component/{rich-text-field-rac-vf19nvyw.js → rich-text-field-rac-BpSVobCQ.js} +6 -6
- package/dist/component/{rich-text-rac-Cx_wpoxC.js → rich-text-rac-DqpaqbFH.js} +1 -1
- package/dist/component/{service-dropdown-rac-DITzKQxd.js → service-dropdown-rac-DKgtga1t.js} +30 -30
- package/dist/component/{services-multi-choice-rac-BtisN0Aq.js → services-multi-choice-rac-CAyB0b4q.js} +9 -9
- package/dist/component/{signature-rac-DUeIoS5O.js → signature-rac-DC20YN4f.js} +97 -97
- package/dist/component/{submit-button-rac-C8h6zeTw.js → submit-button-rac-ClWtqIkR.js} +30 -30
- package/dist/component/{tags-field-rac-CjFuiB0n.js → tags-field-rac-DHM9k8uf.js} +18 -18
- package/dist/component/{tags-rac-BO7rwyLl.js → tags-rac-Clg50jwY.js} +1 -1
- package/dist/component/{text-area-field-rac-CgUx3nQ0.js → text-area-field-rac-B2qJZ6wR.js} +16 -16
- package/dist/component/{text-area-rac-WgXYXIaf.js → text-area-rac-BwsVk7u7.js} +1 -1
- package/dist/component/{text-input-field-rac-DaxWFha-.js → text-input-field-rac-BQbo-3Ly.js} +6 -6
- package/dist/component/{text-input-headless-hjuRJTZN.js → text-input-headless-WICGIHcN.js} +3 -3
- package/dist/component/{text-input-rac-BzumrJBj.js → text-input-rac-D7BRYDZr.js} +1 -1
- package/dist/component/{time-input-rac-2FEkpQ7M.js → time-input-rac-Dnp-0_Js.js} +22 -22
- package/dist/component/{url-input-field-rac-BZ9f8D8I.js → url-input-field-rac-MC13zKST.js} +19 -19
- package/dist/component/{url-input-rac-D-AVlxkD.js → url-input-rac-DfAtTmKv.js} +1 -1
- package/dist/component/{use-dropdown-option-class-name-DwAAtzgX.js → use-dropdown-option-class-name-CVUEosg4.js} +2 -2
- package/dist/component/{use-dropdown-trigger-class-name-D-6n9YVG.js → use-dropdown-trigger-class-name-BHLG7EB-.js} +25 -25
- package/dist/component/{use-element-state-class-name-C5auxwhj.js → use-element-state-class-name-BVJylHPn.js} +3 -3
- package/dist/component/{use-hoverable-input-class-name-Nd2jqfz4.js → use-hoverable-input-class-name-DO9ctJ81.js} +2 -2
- package/dist/component/{use-is-forced-open-dropdown-CKaHhCqp.js → use-is-forced-open-dropdown-Czuo32Nq.js} +8 -8
- package/dist/component/{use-service-options-base-CvluFheT.js → use-service-options-base-DUuGIm38.js} +1 -1
- package/dist/component/use-text-input-class-name-LEnNGX0a.js +6 -0
- package/package.json +2 -2
- package/dist/component/use-text-input-class-name-DGTlYJxC.js +0 -6
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import t, { useState as
|
|
1
|
+
import t, { useState as z, useMemo as T, useCallback as x, useRef as k } from "react";
|
|
2
2
|
import v from "classnames";
|
|
3
|
-
import { NumberField as
|
|
4
|
-
import {
|
|
5
|
-
import { f as C, a as
|
|
6
|
-
import { L as le } from "./field-label-headless-
|
|
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-BjeODFzx.js";
|
|
5
|
+
import { f as C, a as R } from "./find-child-C60k4CxG.js";
|
|
6
|
+
import { L as le } from "./field-label-headless-CWOYHPsb.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-DUTR4mcg.js";
|
|
11
11
|
import { s as B } from "./field-rac.module-ts2t4WUO.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-BVJylHPn.js";
|
|
13
|
+
import { u as de } from "./use-hoverable-input-class-name-DO9ctJ81.js";
|
|
14
14
|
const Ee = [], pe = ({ id: e, fields: s, layout: a, value: o, onChange: n, errors: l = Ee, validation: c }) => {
|
|
15
|
-
const [i, E] =
|
|
15
|
+
const [i, E] = z((o == null ? void 0 : o.length) || 0), u = T(() => o ?? [], [
|
|
16
16
|
o
|
|
17
|
-
]), p =
|
|
17
|
+
]), p = j(), G = w(), d = U(), { validateFields: m } = H(), F = c.predefined.objectArrayOptions.maxItems, y = T(() => ee({
|
|
18
18
|
form: {
|
|
19
19
|
fields: s,
|
|
20
20
|
steps: [
|
|
@@ -29,8 +29,8 @@ const Ee = [], pe = ({ id: e, fields: s, layout: a, value: o, onChange: n, error
|
|
|
29
29
|
s,
|
|
30
30
|
a,
|
|
31
31
|
e
|
|
32
|
-
]),
|
|
33
|
-
const [
|
|
32
|
+
]), I = T(() => l.reduce((b, L) => {
|
|
33
|
+
const [A, N] = L.errorPath.split("/"), h = parseInt(A, 10);
|
|
34
34
|
return b[h] || (b[h] = []), b[h].push({
|
|
35
35
|
...L,
|
|
36
36
|
errorPath: N
|
|
@@ -41,18 +41,18 @@ const Ee = [], pe = ({ id: e, fields: s, layout: a, value: o, onChange: n, error
|
|
|
41
41
|
const L = Number.isNaN(b) ? 0 : Math.min(Math.max(b, 0), F);
|
|
42
42
|
E(L), n == null || n(Array.from({
|
|
43
43
|
length: L
|
|
44
|
-
}, (
|
|
44
|
+
}, (A, N) => u[N] ?? {}));
|
|
45
45
|
}, [
|
|
46
46
|
F,
|
|
47
47
|
u,
|
|
48
48
|
n
|
|
49
|
-
]), D = x((b) => (L,
|
|
49
|
+
]), D = x((b) => (L, A) => {
|
|
50
50
|
const N = Array.from({
|
|
51
51
|
length: i
|
|
52
|
-
}, (h,
|
|
52
|
+
}, (h, q) => u[q] ?? {});
|
|
53
53
|
N[b] = {
|
|
54
54
|
...N[b],
|
|
55
|
-
[L]:
|
|
55
|
+
[L]: A
|
|
56
56
|
}, n == null || n(N);
|
|
57
57
|
}, [
|
|
58
58
|
i,
|
|
@@ -63,7 +63,7 @@ const Ee = [], pe = ({ id: e, fields: s, layout: a, value: o, onChange: n, error
|
|
|
63
63
|
guestLimit: F,
|
|
64
64
|
guestCount: i,
|
|
65
65
|
guests: u,
|
|
66
|
-
errorsByIndex:
|
|
66
|
+
errorsByIndex: I,
|
|
67
67
|
formView: y,
|
|
68
68
|
formSchema: p,
|
|
69
69
|
formFields: G,
|
|
@@ -73,20 +73,20 @@ const Ee = [], pe = ({ id: e, fields: s, layout: a, value: o, onChange: n, error
|
|
|
73
73
|
changeGuestField: D
|
|
74
74
|
};
|
|
75
75
|
}, be = [], Ce = {}, r = ({ children: e, className: s }) => {
|
|
76
|
-
const a = O(), { id: o, FieldLayout: n } = a, { guestLimit: l, guestCount: c, guests: i, errorsByIndex: E, formView: u, changeGuestCount: p, changeGuestField: G } = pe(a), d = C(e, r.Label), m = C(e, r.GuestCount), F = C(e, r.GuestToggle), y = C(e, r.Guests),
|
|
76
|
+
const a = O(), { id: o, FieldLayout: n } = a, { guestLimit: l, guestCount: c, guests: i, errorsByIndex: E, formView: u, changeGuestCount: p, changeGuestField: G } = pe(a), d = C(e, r.Label), m = C(e, r.GuestCount), F = C(e, r.GuestToggle), y = C(e, r.Guests), I = l > 1;
|
|
77
77
|
return /* @__PURE__ */ t.createElement(n, {
|
|
78
78
|
fieldId: o,
|
|
79
|
-
renderLabel: () =>
|
|
79
|
+
renderLabel: () => I ? d : null,
|
|
80
80
|
renderInput: () => /* @__PURE__ */ t.createElement("div", {
|
|
81
81
|
className: s
|
|
82
|
-
},
|
|
82
|
+
}, I ? R(m, {
|
|
83
83
|
guestLimit: l,
|
|
84
84
|
guestCount: c,
|
|
85
85
|
onGuestCountChange: p
|
|
86
|
-
}) :
|
|
86
|
+
}) : R(F, {
|
|
87
87
|
guestCount: c,
|
|
88
88
|
onGuestCountChange: p
|
|
89
|
-
}),
|
|
89
|
+
}), R(y, {
|
|
90
90
|
guestCount: c,
|
|
91
91
|
guests: i,
|
|
92
92
|
errorsByIndex: E,
|
|
@@ -95,11 +95,11 @@ const Ee = [], pe = ({ id: e, fields: s, layout: a, value: o, onChange: n, error
|
|
|
95
95
|
})),
|
|
96
96
|
renderDescription: () => null
|
|
97
97
|
});
|
|
98
|
-
},
|
|
98
|
+
}, X = ({ className: e }) => /* @__PURE__ */ t.createElement(le, {
|
|
99
99
|
className: e
|
|
100
100
|
}, null), g = ({ children: e, className: s, ...a }) => {
|
|
101
101
|
const { guestLimit: o, guestCount: n, onGuestCountChange: l } = a, { label: c, disabled: i, readOnly: E, onBlur: u, onFocus: p } = O(), G = ue(u), d = C(e, g.Label), m = C(e, g.Control);
|
|
102
|
-
return /* @__PURE__ */ t.createElement(
|
|
102
|
+
return /* @__PURE__ */ t.createElement(J, {
|
|
103
103
|
className: s,
|
|
104
104
|
"aria-label": c,
|
|
105
105
|
value: n,
|
|
@@ -120,8 +120,8 @@ const Ee = [], pe = ({ id: e, fields: s, layout: a, value: o, onChange: n, error
|
|
|
120
120
|
isReadOnly: o
|
|
121
121
|
}, n, c, l);
|
|
122
122
|
}, Ge = ({ className: e }) => {
|
|
123
|
-
const { id: s } = O(), { inputId: a, ariaDescribedBy: o } =
|
|
124
|
-
return
|
|
123
|
+
const { id: s } = O(), { inputId: a, ariaDescribedBy: o } = $(), n = k(null);
|
|
124
|
+
return K(() => {
|
|
125
125
|
var l;
|
|
126
126
|
(l = n.current) == null || l.focus({
|
|
127
127
|
preventScroll: !0
|
|
@@ -133,42 +133,42 @@ const Ee = [], pe = ({ id: e, fields: s, layout: a, value: o, onChange: n, error
|
|
|
133
133
|
className: e,
|
|
134
134
|
inputMode: "numeric"
|
|
135
135
|
});
|
|
136
|
-
}, _e = ({ children: e, className: s }) => /* @__PURE__ */ t.createElement(
|
|
136
|
+
}, _e = ({ children: e, className: s }) => /* @__PURE__ */ t.createElement(P, {
|
|
137
137
|
slot: "decrement",
|
|
138
138
|
className: s
|
|
139
|
-
}, e), fe = ({ children: e, className: s }) => /* @__PURE__ */ t.createElement(
|
|
139
|
+
}, e), fe = ({ children: e, className: s }) => /* @__PURE__ */ t.createElement(P, {
|
|
140
140
|
slot: "increment",
|
|
141
141
|
className: s
|
|
142
|
-
}, e),
|
|
143
|
-
const { guestCount: o, onGuestCountChange: n } = a, { id: l, label: c, disabled: i, readOnly: E, onBlur: u, onFocus: p } = O(), { inputId: G, ariaDescribedBy: d } =
|
|
144
|
-
|
|
142
|
+
}, e), S = ({ children: e, className: s, ...a }) => {
|
|
143
|
+
const { guestCount: o, onGuestCountChange: n } = a, { id: l, label: c, disabled: i, readOnly: E, onBlur: u, onFocus: p } = O(), { inputId: G, ariaDescribedBy: d } = $(), m = k(null);
|
|
144
|
+
K(() => {
|
|
145
145
|
var _;
|
|
146
146
|
(_ = m.current) == null || _.focus({
|
|
147
147
|
preventScroll: !0
|
|
148
148
|
});
|
|
149
149
|
}, l);
|
|
150
|
-
const F = C(e,
|
|
150
|
+
const F = C(e, S.Input), y = C(e, S.Label), I = x((_) => {
|
|
151
151
|
n(_ ? 1 : 0);
|
|
152
152
|
}, [
|
|
153
153
|
n
|
|
154
154
|
]);
|
|
155
|
-
return /* @__PURE__ */ t.createElement(
|
|
155
|
+
return /* @__PURE__ */ t.createElement(Q, {
|
|
156
156
|
inputRef: m,
|
|
157
157
|
id: G,
|
|
158
158
|
"aria-describedby": d,
|
|
159
159
|
isSelected: o > 0,
|
|
160
|
-
onChange:
|
|
160
|
+
onChange: I,
|
|
161
161
|
isDisabled: i,
|
|
162
162
|
isReadOnly: E,
|
|
163
163
|
onBlur: u,
|
|
164
164
|
onFocus: p
|
|
165
165
|
}, /* @__PURE__ */ t.createElement(W, {
|
|
166
166
|
className: s
|
|
167
|
-
}, ({ isSelected: _, isHovered: D, isFocused: b }) => /* @__PURE__ */ t.createElement(t.Fragment, null,
|
|
167
|
+
}, ({ isSelected: _, isHovered: D, isFocused: b }) => /* @__PURE__ */ t.createElement(t.Fragment, null, R(F, {
|
|
168
168
|
isSelected: _,
|
|
169
169
|
isHovered: D,
|
|
170
170
|
isFocused: b
|
|
171
|
-
}),
|
|
171
|
+
}), R(y, {
|
|
172
172
|
label: c
|
|
173
173
|
}))));
|
|
174
174
|
}, Fe = ({ className: e, ...s }) => {
|
|
@@ -196,7 +196,7 @@ const Ee = [], pe = ({ id: e, fields: s, layout: a, value: o, onChange: n, error
|
|
|
196
196
|
className: s
|
|
197
197
|
}, Array.from({
|
|
198
198
|
length: o
|
|
199
|
-
}, (d, m) =>
|
|
199
|
+
}, (d, m) => R(G, {
|
|
200
200
|
key: m,
|
|
201
201
|
index: m,
|
|
202
202
|
formView: p,
|
|
@@ -205,7 +205,7 @@ const Ee = [], pe = ({ id: e, fields: s, layout: a, value: o, onChange: n, error
|
|
|
205
205
|
onFieldChange: i(m)
|
|
206
206
|
}))) : null;
|
|
207
207
|
}, Le = ({ className: e, ...s }) => {
|
|
208
|
-
const { index: a, formView: o, values: n, errors: l, onFieldChange: c } = s, i =
|
|
208
|
+
const { index: a, formView: o, values: n, errors: l, onFieldChange: c } = s, i = j(), E = w(), u = U(), { validateFields: p } = H();
|
|
209
209
|
return /* @__PURE__ */ t.createElement("div", {
|
|
210
210
|
className: e,
|
|
211
211
|
"data-hook": `guest-${a}`
|
|
@@ -220,26 +220,26 @@ const Ee = [], pe = ({ id: e, fields: s, layout: a, value: o, onChange: n, error
|
|
|
220
220
|
fieldActions: u
|
|
221
221
|
}));
|
|
222
222
|
};
|
|
223
|
-
g.Label =
|
|
223
|
+
g.Label = X;
|
|
224
224
|
g.Control = ge;
|
|
225
225
|
g.Input = Ge;
|
|
226
226
|
g.Decrement = _e;
|
|
227
227
|
g.Increment = fe;
|
|
228
|
-
|
|
229
|
-
|
|
228
|
+
S.Input = ce;
|
|
229
|
+
S.Label = Fe;
|
|
230
230
|
V.Guest = Le;
|
|
231
|
-
r.Label =
|
|
231
|
+
r.Label = X;
|
|
232
232
|
r.GuestCount = g;
|
|
233
|
-
r.GuestToggle =
|
|
233
|
+
r.GuestToggle = S;
|
|
234
234
|
r.Guests = V;
|
|
235
|
-
const Ne = "_container_xcjm5_1",
|
|
235
|
+
const Ne = "_container_xcjm5_1", Ie = "_count_xcjm5_8", Re = "_toggle_xcjm5_14", Oe = "_countLabel_xcjm5_18", ye = "_countGroup_xcjm5_22", Se = "_increment_xcjm5_32", Ae = "_decrement_xcjm5_33", f = {
|
|
236
236
|
container: Ne,
|
|
237
|
-
count:
|
|
238
|
-
toggle:
|
|
237
|
+
count: Ie,
|
|
238
|
+
toggle: Re,
|
|
239
239
|
countLabel: Oe,
|
|
240
240
|
countGroup: ye,
|
|
241
|
-
increment:
|
|
242
|
-
decrement:
|
|
241
|
+
increment: Se,
|
|
242
|
+
decrement: Ae
|
|
243
243
|
}, he = () => {
|
|
244
244
|
const e = de(re, [
|
|
245
245
|
f.countGroup
|
|
@@ -274,7 +274,7 @@ const Ne = "_container_xcjm5_1", Re = "_count_xcjm5_8", Ie = "_toggle_xcjm5_14",
|
|
|
274
274
|
})), /* @__PURE__ */ t.createElement(r.Guests, {
|
|
275
275
|
className: f.container
|
|
276
276
|
}, /* @__PURE__ */ t.createElement(r.Guests.Guest, null)));
|
|
277
|
-
},
|
|
277
|
+
}, $e = () => /* @__PURE__ */ t.createElement(he, null);
|
|
278
278
|
export {
|
|
279
|
-
|
|
279
|
+
$e as EventsRepeaterRAC
|
|
280
280
|
};
|
|
@@ -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-jtnooKMO.js";
|
|
5
5
|
import { E as i } from "./error-icon-hZxQ6DEy.js";
|
|
6
6
|
import { s as o } from "./field-rac.module-ts2t4WUO.js";
|
|
7
|
-
import { X as E,
|
|
7
|
+
import { X as E, am as p, ac as R, ad as O, M as _, I as L, ae as I } from "./form-BjeODFzx.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-BVJylHPn.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-jksFrezt.js → field-error-headless-DbFXeaud.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import t, { createContext as m, useContext as M } from "react";
|
|
2
|
-
import {
|
|
2
|
+
import { bL as c, bI as i, bD as b, bk as f, bl as x } from "./form-BjeODFzx.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", {
|
|
@@ -10,14 +10,14 @@ const H = ({ className: r, children: e }) => {
|
|
|
10
10
|
content: s,
|
|
11
11
|
locale: n
|
|
12
12
|
})) : null;
|
|
13
|
-
}, l = /* @__PURE__ */ m(void 0),
|
|
13
|
+
}, l = /* @__PURE__ */ m(void 0), D = l.Provider, h = ({ className: r }) => {
|
|
14
14
|
const e = M(l);
|
|
15
15
|
return /* @__PURE__ */ t.createElement("span", {
|
|
16
16
|
className: r
|
|
17
17
|
}, e ?? "");
|
|
18
|
-
},
|
|
18
|
+
}, k = ({ className: r, children: e, ...s }) => {
|
|
19
19
|
const { hasError: o, errorMessage: a } = s, { target: n, hasError: E, errorMessage: d } = c(), { errorId: g } = i(), u = o ?? E, p = a ?? d;
|
|
20
|
-
return u ? /* @__PURE__ */ t.createElement(
|
|
20
|
+
return u ? /* @__PURE__ */ t.createElement(D, {
|
|
21
21
|
value: p
|
|
22
22
|
}, /* @__PURE__ */ t.createElement("div", {
|
|
23
23
|
id: g,
|
|
@@ -25,10 +25,10 @@ const H = ({ className: r, children: e }) => {
|
|
|
25
25
|
className: r
|
|
26
26
|
}, e)) : null;
|
|
27
27
|
};
|
|
28
|
-
|
|
28
|
+
k.Text = h;
|
|
29
29
|
export {
|
|
30
30
|
H as D,
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
31
|
+
k as E,
|
|
32
|
+
D as a,
|
|
33
|
+
h as b
|
|
34
34
|
};
|
package/dist/component/{field-label-headless-BBvJAVxI.js → field-label-headless-CWOYHPsb.js}
RENAMED
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { bL as m, b0 as d, b1 as p, bI as D, bV as B } from "./form-BjeODFzx.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";
|
|
5
|
-
function
|
|
5
|
+
function N({ id: e, width: t, height: n }, a, r, o = "fill") {
|
|
6
6
|
return (o === "fit" ? g.getScaleToFitImageURL : g.getScaleToFillImageURL)(e, t, n, typeof a == "number" ? a : parseInt(a, 10), typeof r == "number" ? r : parseInt(r, 10));
|
|
7
7
|
}
|
|
8
8
|
var u = /* @__PURE__ */ (function(e) {
|
|
9
9
|
return e.TOP = "top", e.BOTTOM = "bottom", e;
|
|
10
10
|
})({});
|
|
11
|
-
const
|
|
11
|
+
const S = {
|
|
12
12
|
visibility: "hidden",
|
|
13
13
|
display: "block",
|
|
14
14
|
height: 0,
|
|
15
15
|
margin: 0,
|
|
16
16
|
padding: 0
|
|
17
|
-
},
|
|
18
|
-
const { as: a = "label", requiredIndicatorHidden: r = !1, label: o } = n, { label: b, required: R = !1, hideLabel: F = !1, requiredIndicatorType: q = d.ASTERISK, requiredIndicatorPlacement: O = p.AFTER_FIELD_TITLE, media: y, mediaSettings: s } = m(), { labelId: A, inputId: P } = D(), _ = a, T = R && !r ? L(e, i.Required) : null, c = y ? L(e, i.Image) : null, E = (s == null ? void 0 : s.imagePosition) ?? u.TOP, h = q === d.ASTERISK && O === p.BEFORE_FIELD_TITLE,
|
|
17
|
+
}, U = "", i = ({ children: e, className: t, ...n }) => {
|
|
18
|
+
const { as: a = "label", requiredIndicatorHidden: r = !1, label: o } = n, { label: b, required: R = !1, hideLabel: F = !1, requiredIndicatorType: q = d.ASTERISK, requiredIndicatorPlacement: O = p.AFTER_FIELD_TITLE, media: y, mediaSettings: s } = m(), { labelId: A, inputId: P } = D(), _ = a, T = R && !r ? L(e, i.Required) : null, c = y ? L(e, i.Image) : null, E = (s == null ? void 0 : s.imagePosition) ?? u.TOP, h = q === d.ASTERISK && O === p.BEFORE_FIELD_TITLE, I = (o ?? b) || U, f = /* @__PURE__ */ l.createElement(_, {
|
|
19
19
|
id: A,
|
|
20
20
|
htmlFor: a === "label" ? P : void 0,
|
|
21
21
|
className: t,
|
|
22
|
-
style: F ?
|
|
23
|
-
}, h ? /* @__PURE__ */ l.createElement(l.Fragment, null, T,
|
|
24
|
-
return c ? /* @__PURE__ */ l.createElement("div", null, E === u.TOP ? c : null,
|
|
22
|
+
style: F ? S : void 0
|
|
23
|
+
}, h ? /* @__PURE__ */ l.createElement(l.Fragment, null, T, I) : /* @__PURE__ */ l.createElement(l.Fragment, null, I, T));
|
|
24
|
+
return c ? /* @__PURE__ */ l.createElement("div", null, E === u.TOP ? c : null, f, E === u.BOTTOM ? c : null) : f;
|
|
25
25
|
}, v = ({ className: e }) => {
|
|
26
|
-
const { t } =
|
|
26
|
+
const { t } = B(), { requiredIndicatorType: n } = m();
|
|
27
27
|
return n === d.TEXT ? /* @__PURE__ */ l.createElement("span", {
|
|
28
28
|
className: e,
|
|
29
29
|
"aria-hidden": "true"
|
|
@@ -35,7 +35,7 @@ const N = {
|
|
|
35
35
|
const { media: t, mediaSettings: n } = m();
|
|
36
36
|
if (!t)
|
|
37
37
|
return null;
|
|
38
|
-
const a =
|
|
38
|
+
const a = N(t, t.width, t.height);
|
|
39
39
|
return a ? /* @__PURE__ */ l.createElement("img", {
|
|
40
40
|
className: e,
|
|
41
41
|
src: a,
|
|
@@ -48,5 +48,5 @@ i.Required = v;
|
|
|
48
48
|
i.Image = x;
|
|
49
49
|
export {
|
|
50
50
|
i as L,
|
|
51
|
-
|
|
51
|
+
N as g
|
|
52
52
|
};
|