@wix/form-elements 1.104.0 → 1.106.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-D2F4vgf1.js +1011 -0
- package/dist/component/{bookings-address-rac-bOPrbrFn.js → bookings-address-rac-_5S8J8_i.js} +1 -1
- package/dist/component/{bookings-email-rac-DSpy4yfX.js → bookings-email-rac-6vmDR9nS.js} +1 -1
- package/dist/component/{bookings-first-name-rac-Dw0U4kHG.js → bookings-first-name-rac-DtTJ4T2K.js} +1 -1
- package/dist/component/{bookings-header-rac-Czrqn8yy.js → bookings-header-rac-B3dsEwzR.js} +1 -1
- package/dist/component/{bookings-last-name-rac-CVxRqG5b.js → bookings-last-name-rac-B3idkbi8.js} +1 -1
- package/dist/component/{bookings-login-bar-rac-s_2BlBcX.js → bookings-login-bar-rac-CrRBcQwT.js} +4 -4
- package/dist/component/{bookings-phone-rac-B2SgZsIb.js → bookings-phone-rac-BE0yWNnj.js} +1 -1
- package/dist/component/{bookings-rich-text-rac-b3K__6c9.js → bookings-rich-text-rac-CYo1l0-6.js} +1 -1
- package/dist/component/{checkbox-field-rac-Gt2JioDC.js → checkbox-field-rac-boTtXVEt.js} +18 -22
- package/dist/component/{checkbox-group-field-headless-cKefepGi.js → checkbox-group-field-headless-DnkUvDm8.js} +3 -3
- package/dist/component/{checkbox-group-field-rac-B14obB-6.js → checkbox-group-field-rac-DrDTgHMg.js} +13 -13
- package/dist/component/{checkbox-group-rac-B6cixM2X.js → checkbox-group-rac-v3ozUBpo.js} +1 -1
- package/dist/component/{checkbox-indicator-module-classes-DhbNznSB.js → checkbox-indicator-module-classes-BpeSpGsW.js} +1 -1
- package/dist/component/{checkbox-rac-COwblKlm.js → checkbox-rac-YSLE-RnG.js} +1 -1
- package/dist/component/{contacts-address-rac-BJrwGPo4.js → contacts-address-rac-C653yaHZ.js} +1 -1
- package/dist/component/{contacts-birthdate-rac-BaotTtEN.js → contacts-birthdate-rac-BeAQ6shx.js} +1 -1
- package/dist/component/{contacts-company-rac-BjTc-e_S.js → contacts-company-rac-BglKOoTG.js} +1 -1
- package/dist/component/{contacts-email-rac-DVFF485m.js → contacts-email-rac-D6m7ynfc.js} +1 -1
- package/dist/component/{contacts-first-name-rac-C4Fht3FS.js → contacts-first-name-rac-Dgxn0tUJ.js} +1 -1
- package/dist/component/{contacts-last-name-rac-BTbOJedX.js → contacts-last-name-rac-1UyIuRKH.js} +1 -1
- package/dist/component/{contacts-phone-rac-GePv5BT7.js → contacts-phone-rac-BQ77BlW4.js} +1 -1
- package/dist/component/{contacts-position-rac-BZ1ASqF_.js → contacts-position-rac-BUDUv7lv.js} +1 -1
- package/dist/component/contacts-subscribe-rac-DdtA0qKW.js +6 -0
- package/dist/component/{contacts-tax-id-rac-A2tdbIvB.js → contacts-tax-id-rac-WUaKcNl0.js} +1 -1
- package/dist/component/{date-availability-b1h4CrSQ.js → date-availability-XjBFq8jt.js} +1 -1
- package/dist/component/{date-input-field-rac-moOjGzUv.js → date-input-field-rac-aY2zuuKs.js} +14 -14
- package/dist/component/{date-input-rac-DTqZCOqB.js → date-input-rac-DRiP2_97.js} +1 -1
- package/dist/component/{date-picker-field-rac-flB4Hw18.js → date-picker-field-rac-Bzl-d3Uj.js} +70 -70
- package/dist/component/{date-picker-rac-B2fqOP6H.js → date-picker-rac-DHHUh8vn.js} +1 -1
- package/dist/component/{date-time-input-field-rac-BtLGRGf5.js → date-time-input-field-rac-DP_StuLr.js} +27 -27
- package/dist/component/{date-time-input-rac-CRfUmOim.js → date-time-input-rac-B11KIxsf.js} +1 -1
- package/dist/component/{dext-checkbox-group-rac-Ds4t475J.js → dext-checkbox-group-rac-BHZBqyWv.js} +2 -2
- package/dist/component/{dext-checkbox-rac-BC6EGH5R.js → dext-checkbox-rac-BIlAqEvV.js} +1 -1
- package/dist/component/{dext-date-picker-rac-DyydPJyC.js → dext-date-picker-rac-CHBXNrZi.js} +1 -1
- package/dist/component/{dext-date-time-input-rac-DhssYv6t.js → dext-date-time-input-rac-BYtliKry.js} +1 -1
- package/dist/component/{dext-dropdown-rac-Bn0C1Ry8.js → dext-dropdown-rac-C2VPSFV5.js} +1 -1
- package/dist/component/{dext-email-rac-DKhk_v_w.js → dext-email-rac-Fnb0Ggcs.js} +1 -1
- package/dist/component/{dext-number-input-rac-u92WD8VD.js → dext-number-input-rac-DopfSyFi.js} +1 -1
- package/dist/component/{dext-phone-rac-DTzdQAe9.js → dext-phone-rac-Rn4i_2rc.js} +1 -1
- package/dist/component/{dext-radio-group-rac-CoOYhInI.js → dext-radio-group-rac-bNaskJpK.js} +2 -2
- package/dist/component/{dext-rating-input-rac-DPdyJsCZ.js → dext-rating-input-rac-DL6ZZd7d.js} +1 -1
- package/dist/component/{dext-tags-rac-Bh3pQ-Ck.js → dext-tags-rac-TsUPoImO.js} +2 -2
- package/dist/component/{dext-text-area-rac-Cefsz8ct.js → dext-text-area-rac-BIuY7LTd.js} +1 -1
- package/dist/component/{dext-text-input-rac-Bj_pAChP.js → dext-text-input-rac-CSYPW0Qi.js} +1 -1
- package/dist/component/{dext-url-input-rac-Bk_kwZzM.js → dext-url-input-rac-_g0lqGfW.js} +1 -1
- package/dist/component/{donation-rac-wRWkCjYg.js → donation-rac-BYKFtsyR.js} +55 -55
- package/dist/component/{dropdown-field-headless-CedOXKAH.js → dropdown-field-headless-CBaqlNZi.js} +4 -4
- package/dist/component/{dropdown-field-rac-CENh9Khw.js → dropdown-field-rac-CCAGSMm3.js} +6 -6
- package/dist/component/{dropdown-rac-CeCNULzS.js → dropdown-rac-C_EqUsZ1.js} +1 -1
- package/dist/component/{ecom-address-rac-BLJ0UHrV.js → ecom-address-rac-Bw9eH0iF.js} +1 -1
- package/dist/component/{ecom-subscription-checkbox-rac-xJDzCasS.js → ecom-subscription-checkbox-rac-B5PVOO2a.js} +10 -17
- package/dist/component/{email-input-field-rac-CeTVUWeX.js → email-input-field-rac-B2kqQ6yo.js} +14 -14
- package/dist/component/{events-repeater-rac-CT9LAF22.js → events-repeater-rac--4OnUxWE.js} +55 -55
- package/dist/component/{events-rsvp-rac-Bu8tqcVi.js → events-rsvp-rac-CczCoo3T.js} +13 -13
- package/dist/component/{field-error-headless-gLZVlnQV.js → field-error-headless-D3-1L5sf.js} +1 -1
- package/dist/component/{field-label-headless-yc46NPmu.js → field-label-headless-Du4ckIVy.js} +1 -1
- package/dist/component/field-rac.module-B4l_0KRU.js +26 -0
- package/dist/component/{file-upload-rac-LkVTFtZb.js → file-upload-rac-DbdkUbWM.js} +80 -80
- package/dist/component/{fixed-payment-rac-DEbV0w-8.js → fixed-payment-rac-f9-01iDN.js} +8 -8
- package/dist/component/{form-DV231fmJ.js → form-DQauhsho.js} +69 -69
- package/dist/component/form-element-classes-bLFmhsKw.js +137 -0
- package/dist/component/form.css +1 -1
- package/dist/component/form.js +1 -1
- package/dist/component/{header-field-rac-BzB5dm6C.js → header-field-rac-DamDk5BR.js} +3 -3
- package/dist/component/{header-rac-BzS5HfUt.js → header-rac-CR9T3Pnu.js} +1 -1
- package/dist/component/{image-choice-rac-8YqUqetS.js → image-choice-rac-DJ_8v467.js} +13 -13
- package/dist/component/{index-CMtf-So7.js → index-BB7d_9Dv.js} +4 -4
- package/dist/component/{index-BzRG28bH.js → index-CcUTIUWM.js} +2 -2
- package/dist/component/{isObjectLike--gPCPyGa.js → isObjectLike-xvPa_08X.js} +1 -1
- package/dist/component/{multiline-address-field-rac-CJWdu5LV.js → multiline-address-field-rac-CyaFOloE.js} +80 -80
- package/dist/component/{multiline-address-rac-Cw5VweB0.js → multiline-address-rac-CaHGUN_f.js} +1 -1
- package/dist/component/{number-input-field-rac-D8NRpCCM.js → number-input-field-rac-BuYUzDWV.js} +15 -15
- package/dist/component/{number-input-rac-CM_CQHE_.js → number-input-rac-DMKX6nhk.js} +1 -1
- package/dist/component/{password-rac-I6vynKG4.js → password-rac-0RUXPAn6.js} +38 -38
- package/dist/component/{payment-input-rac-B4rXCs7V.js → payment-input-rac-CHSZ3-Lt.js} +17 -17
- package/dist/component/{phone-input-field-rac-B-k2e0Np.js → phone-input-field-rac-JmIFcP1e.js} +29 -29
- package/dist/component/{phone-rac-D443psAx.js → phone-rac-BLRnAPXP.js} +1 -1
- package/dist/component/{product-list-rac-B6qUWxkz.js → product-list-rac-BkF5tDwt.js} +11 -11
- package/dist/component/quiz-radio-group-rac-32cCMTUS.js +6 -0
- package/dist/component/{radio-button-module-classes--on7xGzb.js → radio-button-module-classes-IOulhuSH.js} +28 -28
- package/dist/component/radio-group-field-rac-CJwku6e0.js +46 -0
- package/dist/component/{radio-group-rac-CjbSQydw.js → radio-group-rac-BiW-9Abj.js} +1 -1
- package/dist/component/{rating-input-field-rac-yVgqxBKi.js → rating-input-field-rac-B9cwaROK.js} +30 -30
- package/dist/component/{rating-input-rac-D6BKC4oS.js → rating-input-rac-BpwlNvzQ.js} +1 -1
- package/dist/component/{rich-content-rac.module-Ca4LYv7k.js → rich-content-rac.module-B1uyPmtK.js} +1 -1
- package/dist/component/{rich-text-field-rac-DIeBS-ux.js → rich-text-field-rac-C_qE7Ykg.js} +3 -3
- package/dist/component/{rich-text-rac-BgjP0ngh.js → rich-text-rac-VfeZxS27.js} +1 -1
- package/dist/component/{service-dropdown-rac-DjOMT7dx.js → service-dropdown-rac-BCfs8IhW.js} +18 -18
- package/dist/component/{services-multi-choice-rac-C0Rp9Sng.js → services-multi-choice-rac-CCqdF_7P.js} +8 -8
- package/dist/component/{signature-rac-CFT-Fni_.js → signature-rac-DOyMo3u0.js} +73 -73
- package/dist/component/{submit-button-rac-BOluGZI0.js → submit-button-rac-C2uA5DeE.js} +11 -11
- package/dist/component/{tags-field-rac-CP0RS4SG.js → tags-field-rac-C_uIw2by.js} +36 -36
- package/dist/component/{tags-rac-Dtp3VCKk.js → tags-rac-1pQ-fpe_.js} +1 -1
- package/dist/component/{text-area-field-rac-DUKg8kgN.js → text-area-field-rac-DqlOkm7e.js} +23 -23
- package/dist/component/{text-area-rac-Clh7zMTL.js → text-area-rac-DPdkrFcH.js} +1 -1
- package/dist/component/{text-input-field-rac-DY60Q6da.js → text-input-field-rac-CmXm6r1w.js} +6 -6
- package/dist/component/{text-input-headless-BBv0nukI.js → text-input-headless-DD__2DFf.js} +3 -3
- package/dist/component/{text-input-rac-FVD6iJ1i.js → text-input-rac-DRHyQEH7.js} +1 -1
- package/dist/component/{time-input-rac-DsctZB28.js → time-input-rac-BJPIymQY.js} +22 -22
- package/dist/component/{url-input-field-rac-Du4HlhH3.js → url-input-field-rac-CFDYkZ6I.js} +15 -15
- package/dist/component/{url-input-rac-3QPdK0xz.js → url-input-rac-C0ChQUzq.js} +1 -1
- package/dist/component/{use-dropdown-option-class-name-Bze6ghRl.js → use-dropdown-option-class-name-3L5ZmNLK.js} +3 -3
- package/dist/component/{use-element-state-class-name-4CDAF1S-.js → use-element-state-class-name-BatTc2bw.js} +1 -1
- package/dist/component/{use-is-forced-open-dropdown--w4f5dWP.js → use-is-forced-open-dropdown-B0jiPTmS.js} +1 -1
- package/dist/component/{use-service-options-base-9vUuIThY.js → use-service-options-base-oeE7xszw.js} +1 -1
- package/dist/component/{use-text-input-class-name-Ch91llI_.js → use-text-input-class-name-LQ5S-NLh.js} +4 -4
- package/package.json +5 -5
- package/dist/component/appointment-rac-CCciYQ_h.js +0 -1012
- package/dist/component/contacts-subscribe-rac-CmyBcsLP.js +0 -13
- package/dist/component/field-rac.module-DobpyqOd.js +0 -26
- package/dist/component/form-element-classes-BtKlobUX.js +0 -192
- package/dist/component/quiz-radio-group-rac-DdPJQmV5.js +0 -13
- package/dist/component/radio-group-field-rac-CjiGr1rO.js +0 -50
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import t, { useState as $, useMemo as B, useCallback as
|
|
1
|
+
import t, { useState as $, useMemo as B, useCallback as V, useRef as M } from "react";
|
|
2
2
|
import k from "classnames";
|
|
3
3
|
import { NumberField as q, CheckboxField as J, CheckboxButton as Q, Group as W, Input as Y, Button as w } from "react-aria-components";
|
|
4
|
-
import { aq as
|
|
4
|
+
import { aq as z, ar as H, ag as K, al as P, v as Z, ak as L, ah as X, am as j, j as ee } from "./form-DQauhsho.js";
|
|
5
5
|
import { f as C, a as y } from "./find-child-C60k4CxG.js";
|
|
6
|
-
import { L as te } from "./field-label-headless-
|
|
6
|
+
import { L as te } from "./field-label-headless-Du4ckIVy.js";
|
|
7
7
|
import { S as se } from "./selection-indicator-XQ8MYHUQ.js";
|
|
8
8
|
import { u as ne } from "./use-invoke-callback-UH73A_J3.js";
|
|
9
9
|
import { C as x } from "./chevron-down-icon-CcpVm6B-.js";
|
|
10
|
-
import { C as oe } from "./checkbox-indicator-module-classes-
|
|
11
|
-
import { s as v } from "./field-rac.module-
|
|
12
|
-
import {
|
|
13
|
-
import { u as ue } from "./use-element-state-class-name-
|
|
14
|
-
import { u as me } from "./use-text-input-class-name-
|
|
10
|
+
import { C as oe } from "./checkbox-indicator-module-classes-BpeSpGsW.js";
|
|
11
|
+
import { s as v } from "./field-rac.module-B4l_0KRU.js";
|
|
12
|
+
import { v as re, b as ae, g as le, f as ce } from "./form-element-classes-bLFmhsKw.js";
|
|
13
|
+
import { u as ue } from "./use-element-state-class-name-BatTc2bw.js";
|
|
14
|
+
import { u as me } from "./use-text-input-class-name-LQ5S-NLh.js";
|
|
15
15
|
const ie = [], de = ({ id: e, fields: s, layout: a, value: o, onChange: n, errors: l = ie, validation: c }) => {
|
|
16
16
|
const [m, i] = $((o == null ? void 0 : o.length) || 0), u = B(() => o ?? [], [
|
|
17
17
|
o
|
|
18
|
-
]), d =
|
|
18
|
+
]), d = z(), f = H(), E = K(), { validateFields: p } = P(), F = c.predefined.objectArrayOptions.maxItems, O = B(() => Z({
|
|
19
19
|
form: {
|
|
20
20
|
fields: s,
|
|
21
21
|
steps: [
|
|
@@ -30,31 +30,31 @@ const ie = [], de = ({ id: e, fields: s, layout: a, value: o, onChange: n, error
|
|
|
30
30
|
s,
|
|
31
31
|
a,
|
|
32
32
|
e
|
|
33
|
-
]),
|
|
34
|
-
const [h,
|
|
33
|
+
]), _ = B(() => l.reduce((g, I) => {
|
|
34
|
+
const [h, N] = I.errorPath.split("/"), A = parseInt(h, 10);
|
|
35
35
|
return g[A] || (g[A] = []), g[A].push({
|
|
36
36
|
...I,
|
|
37
|
-
errorPath:
|
|
37
|
+
errorPath: N
|
|
38
38
|
}), g;
|
|
39
39
|
}, []), [
|
|
40
40
|
l
|
|
41
|
-
]), b =
|
|
41
|
+
]), b = V((g) => {
|
|
42
42
|
const I = Number.isNaN(g) ? 0 : Math.min(Math.max(g, 0), F);
|
|
43
43
|
i(I), n == null || n(Array.from({
|
|
44
44
|
length: I
|
|
45
|
-
}, (h,
|
|
45
|
+
}, (h, N) => u[N] ?? {}));
|
|
46
46
|
}, [
|
|
47
47
|
F,
|
|
48
48
|
u,
|
|
49
49
|
n
|
|
50
|
-
]), D =
|
|
51
|
-
const
|
|
50
|
+
]), D = V((g) => (I, h) => {
|
|
51
|
+
const N = Array.from({
|
|
52
52
|
length: m
|
|
53
|
-
}, (A,
|
|
54
|
-
|
|
55
|
-
...
|
|
53
|
+
}, (A, U) => u[U] ?? {});
|
|
54
|
+
N[g] = {
|
|
55
|
+
...N[g],
|
|
56
56
|
[I]: h
|
|
57
|
-
}, n == null || n(
|
|
57
|
+
}, n == null || n(N);
|
|
58
58
|
}, [
|
|
59
59
|
m,
|
|
60
60
|
u,
|
|
@@ -64,23 +64,23 @@ const ie = [], de = ({ id: e, fields: s, layout: a, value: o, onChange: n, error
|
|
|
64
64
|
guestLimit: F,
|
|
65
65
|
guestCount: m,
|
|
66
66
|
guests: u,
|
|
67
|
-
errorsByIndex:
|
|
67
|
+
errorsByIndex: _,
|
|
68
68
|
formView: O,
|
|
69
69
|
formSchema: d,
|
|
70
|
-
formFields:
|
|
70
|
+
formFields: f,
|
|
71
71
|
fieldActions: E,
|
|
72
72
|
validateFields: p,
|
|
73
73
|
changeGuestCount: b,
|
|
74
74
|
changeGuestField: D
|
|
75
75
|
};
|
|
76
76
|
}, pe = [], Ee = {}, r = ({ children: e, className: s }) => {
|
|
77
|
-
const a = L(), { id: o, FieldLayout: n } = a, { guestLimit: l, guestCount: c, guests: m, errorsByIndex: i, formView: u, changeGuestCount: d, changeGuestField:
|
|
77
|
+
const a = L(), { id: o, FieldLayout: n } = a, { guestLimit: l, guestCount: c, guests: m, errorsByIndex: i, formView: u, changeGuestCount: d, changeGuestField: f } = de(a), E = C(e, r.Label), p = C(e, r.GuestCount), F = C(e, r.GuestToggle), O = C(e, r.Guests), _ = l > 1;
|
|
78
78
|
return /* @__PURE__ */ t.createElement(n, {
|
|
79
79
|
fieldId: o,
|
|
80
|
-
renderLabel: () =>
|
|
80
|
+
renderLabel: () => _ ? E : null,
|
|
81
81
|
renderInput: () => /* @__PURE__ */ t.createElement("div", {
|
|
82
82
|
className: s
|
|
83
|
-
},
|
|
83
|
+
}, _ ? y(p, {
|
|
84
84
|
guestLimit: l,
|
|
85
85
|
guestCount: c,
|
|
86
86
|
onGuestCountChange: d
|
|
@@ -92,14 +92,14 @@ const ie = [], de = ({ id: e, fields: s, layout: a, value: o, onChange: n, error
|
|
|
92
92
|
guests: m,
|
|
93
93
|
errorsByIndex: i,
|
|
94
94
|
formView: u,
|
|
95
|
-
onGuestFieldChange:
|
|
95
|
+
onGuestFieldChange: f
|
|
96
96
|
})),
|
|
97
97
|
renderDescription: () => null
|
|
98
98
|
});
|
|
99
99
|
}, Ce = ({ className: e }) => /* @__PURE__ */ t.createElement(te, {
|
|
100
100
|
className: e
|
|
101
|
-
}, null),
|
|
102
|
-
const { guestLimit: a, guestCount: o, onGuestCountChange: n } = s, { label: l, disabled: c, readOnly: m, onBlur: i, onFocus: u } = L(), d = ne(i),
|
|
101
|
+
}, null), G = ({ children: e, ...s }) => {
|
|
102
|
+
const { guestLimit: a, guestCount: o, onGuestCountChange: n } = s, { label: l, disabled: c, readOnly: m, onBlur: i, onFocus: u } = L(), d = ne(i), f = C(e, G.Control);
|
|
103
103
|
return /* @__PURE__ */ t.createElement(q, {
|
|
104
104
|
"aria-label": l,
|
|
105
105
|
value: o,
|
|
@@ -111,17 +111,17 @@ const ie = [], de = ({ id: e, fields: s, layout: a, value: o, onChange: n, error
|
|
|
111
111
|
isReadOnly: m,
|
|
112
112
|
onBlur: d,
|
|
113
113
|
onFocus: u
|
|
114
|
-
},
|
|
114
|
+
}, f);
|
|
115
115
|
}, ge = ({ children: e, className: s }) => {
|
|
116
|
-
const { disabled: a, readOnly: o } = L(), n = C(e,
|
|
116
|
+
const { disabled: a, readOnly: o } = L(), n = C(e, G.Input), l = C(e, G.Decrement), c = C(e, G.Increment);
|
|
117
117
|
return /* @__PURE__ */ t.createElement(W, {
|
|
118
118
|
className: s,
|
|
119
119
|
isDisabled: a,
|
|
120
120
|
isReadOnly: o
|
|
121
121
|
}, n, c, l);
|
|
122
|
-
},
|
|
123
|
-
const { id: s } = L(), { inputId: a, ariaDescribedBy: o } =
|
|
124
|
-
return
|
|
122
|
+
}, fe = ({ className: e }) => {
|
|
123
|
+
const { id: s } = L(), { inputId: a, ariaDescribedBy: o } = X(), n = M(null);
|
|
124
|
+
return j(() => {
|
|
125
125
|
var l;
|
|
126
126
|
(l = n.current) == null || l.focus();
|
|
127
127
|
}, s), /* @__PURE__ */ t.createElement(Y, {
|
|
@@ -131,29 +131,29 @@ const ie = [], de = ({ id: e, fields: s, layout: a, value: o, onChange: n, error
|
|
|
131
131
|
className: e,
|
|
132
132
|
inputMode: "numeric"
|
|
133
133
|
});
|
|
134
|
-
},
|
|
134
|
+
}, Ge = ({ children: e, className: s }) => /* @__PURE__ */ t.createElement(w, {
|
|
135
135
|
slot: "decrement",
|
|
136
136
|
className: s
|
|
137
137
|
}, e), be = ({ children: e, className: s }) => /* @__PURE__ */ t.createElement(w, {
|
|
138
138
|
slot: "increment",
|
|
139
139
|
className: s
|
|
140
140
|
}, e), S = ({ children: e, className: s, ...a }) => {
|
|
141
|
-
const { guestCount: o, onGuestCountChange: n } = a, { id: l, label: c, disabled: m, readOnly: i, onBlur: u, onFocus: d } = L(), { inputId:
|
|
142
|
-
|
|
141
|
+
const { guestCount: o, onGuestCountChange: n } = a, { id: l, label: c, disabled: m, readOnly: i, onBlur: u, onFocus: d } = L(), { inputId: f, ariaDescribedBy: E } = X(), p = M(null);
|
|
142
|
+
j(() => {
|
|
143
143
|
var b;
|
|
144
144
|
(b = p.current) == null || b.focus();
|
|
145
145
|
}, l);
|
|
146
|
-
const F = C(e, S.Input), O = C(e, S.Label),
|
|
146
|
+
const F = C(e, S.Input), O = C(e, S.Label), _ = V((b) => {
|
|
147
147
|
n(b ? 1 : 0);
|
|
148
148
|
}, [
|
|
149
149
|
n
|
|
150
150
|
]);
|
|
151
151
|
return /* @__PURE__ */ t.createElement(J, {
|
|
152
152
|
inputRef: p,
|
|
153
|
-
id:
|
|
153
|
+
id: f,
|
|
154
154
|
"aria-describedby": E,
|
|
155
155
|
isSelected: o > 0,
|
|
156
|
-
onChange:
|
|
156
|
+
onChange: _,
|
|
157
157
|
isDisabled: m,
|
|
158
158
|
isReadOnly: i,
|
|
159
159
|
onBlur: u,
|
|
@@ -171,7 +171,7 @@ const ie = [], de = ({ id: e, fields: s, layout: a, value: o, onChange: n, error
|
|
|
171
171
|
return /* @__PURE__ */ t.createElement("span", {
|
|
172
172
|
className: e
|
|
173
173
|
}, a);
|
|
174
|
-
},
|
|
174
|
+
}, T = ({ children: e, className: s, ...a }) => {
|
|
175
175
|
const { guestCount: o, guests: n, errorsByIndex: l, formView: c, onGuestFieldChange: m } = a, { disabled: i, readOnly: u } = L(), d = B(() => ({
|
|
176
176
|
...c,
|
|
177
177
|
fields: c.fields.map((E) => ({
|
|
@@ -186,12 +186,12 @@ const ie = [], de = ({ id: e, fields: s, layout: a, value: o, onChange: n, error
|
|
|
186
186
|
c,
|
|
187
187
|
i,
|
|
188
188
|
u
|
|
189
|
-
]),
|
|
189
|
+
]), f = C(e, T.Guest);
|
|
190
190
|
return o ? /* @__PURE__ */ t.createElement("div", {
|
|
191
191
|
className: s
|
|
192
192
|
}, Array.from({
|
|
193
193
|
length: o
|
|
194
|
-
}, (E, p) => y(
|
|
194
|
+
}, (E, p) => y(f, {
|
|
195
195
|
key: p,
|
|
196
196
|
index: p,
|
|
197
197
|
formView: d,
|
|
@@ -200,7 +200,7 @@ const ie = [], de = ({ id: e, fields: s, layout: a, value: o, onChange: n, error
|
|
|
200
200
|
onFieldChange: m(p)
|
|
201
201
|
}))) : null;
|
|
202
202
|
}, Ie = ({ className: e, ...s }) => {
|
|
203
|
-
const { index: a, formView: o, values: n, errors: l, onFieldChange: c } = s, m =
|
|
203
|
+
const { index: a, formView: o, values: n, errors: l, onFieldChange: c } = s, m = z(), i = H(), u = K(), { validateFields: d } = P();
|
|
204
204
|
return /* @__PURE__ */ t.createElement("div", {
|
|
205
205
|
className: e,
|
|
206
206
|
"data-hook": `guest-${a}`
|
|
@@ -215,20 +215,20 @@ const ie = [], de = ({ id: e, fields: s, layout: a, value: o, onChange: n, error
|
|
|
215
215
|
fieldActions: u
|
|
216
216
|
}));
|
|
217
217
|
};
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
218
|
+
G.Control = ge;
|
|
219
|
+
G.Input = fe;
|
|
220
|
+
G.Decrement = Ge;
|
|
221
|
+
G.Increment = be;
|
|
222
222
|
S.Input = se;
|
|
223
223
|
S.Label = Fe;
|
|
224
|
-
|
|
224
|
+
T.Guest = Ie;
|
|
225
225
|
r.Label = Ce;
|
|
226
|
-
r.GuestCount =
|
|
226
|
+
r.GuestCount = G;
|
|
227
227
|
r.GuestToggle = S;
|
|
228
|
-
r.Guests =
|
|
229
|
-
const
|
|
230
|
-
container:
|
|
231
|
-
countGroup:
|
|
228
|
+
r.Guests = T;
|
|
229
|
+
const Ne = "_container_z48oy_1", _e = "_countGroup_z48oy_8", ye = "_increment_z48oy_18", Le = "_decrement_z48oy_19", R = {
|
|
230
|
+
container: Ne,
|
|
231
|
+
countGroup: _e,
|
|
232
232
|
increment: ye,
|
|
233
233
|
decrement: Le
|
|
234
234
|
}, Oe = () => {
|
|
@@ -261,7 +261,7 @@ const _e = "_container_z48oy_1", Ne = "_countGroup_z48oy_8", ye = "_increment_z4
|
|
|
261
261
|
})), /* @__PURE__ */ t.createElement(r.Guests, {
|
|
262
262
|
className: R.container
|
|
263
263
|
}, /* @__PURE__ */ t.createElement(r.Guests.Guest, null)));
|
|
264
|
-
},
|
|
264
|
+
}, He = () => /* @__PURE__ */ t.createElement(Oe, null);
|
|
265
265
|
export {
|
|
266
|
-
|
|
266
|
+
He as EventsRepeaterRAC
|
|
267
267
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
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 o, R as c } from "./radio-button-module-classes
|
|
4
|
+
import { a, s as o, R as c } from "./radio-button-module-classes-IOulhuSH.js";
|
|
5
5
|
import { E } from "./error-icon-hZxQ6DEy.js";
|
|
6
|
-
import { s as l } from "./field-rac.module-
|
|
7
|
-
import {
|
|
8
|
-
import { u as
|
|
6
|
+
import { s as l } from "./field-rac.module-B4l_0KRU.js";
|
|
7
|
+
import { v as i, J as p, D as R, E as O, o as _, j as L, G as D } from "./form-element-classes-bLFmhsKw.js";
|
|
8
|
+
import { u as I } from "./use-element-state-class-name-BatTc2bw.js";
|
|
9
9
|
const e = ({ children: r, className: n }) => /* @__PURE__ */ t.createElement(a, {
|
|
10
10
|
className: n
|
|
11
11
|
}, r);
|
|
@@ -14,12 +14,12 @@ e.Options = a.Options;
|
|
|
14
14
|
e.Option = a.Option;
|
|
15
15
|
e.Description = a.Description;
|
|
16
16
|
e.Error = a.Error;
|
|
17
|
-
const
|
|
17
|
+
const N = ({ content: r, locale: n }) => /* @__PURE__ */ t.createElement(m, {
|
|
18
18
|
content: r,
|
|
19
19
|
locale: n
|
|
20
|
-
}),
|
|
21
|
-
const r =
|
|
22
|
-
globalClasses:
|
|
20
|
+
}), S = () => {
|
|
21
|
+
const r = I({
|
|
22
|
+
globalClasses: D,
|
|
23
23
|
moduleClasses: c
|
|
24
24
|
});
|
|
25
25
|
return /* @__PURE__ */ t.createElement(e, {
|
|
@@ -37,13 +37,13 @@ const D = ({ content: r, locale: n }) => /* @__PURE__ */ t.createElement(m, {
|
|
|
37
37
|
}), /* @__PURE__ */ t.createElement(e.Option.Control, {
|
|
38
38
|
className: r
|
|
39
39
|
}), /* @__PURE__ */ t.createElement(e.Option.Label, {
|
|
40
|
-
className: s(
|
|
40
|
+
className: s(O, o.optionLabel)
|
|
41
41
|
}))), /* @__PURE__ */ t.createElement(e.Error, {
|
|
42
|
-
className: s(
|
|
42
|
+
className: s(_, l.error)
|
|
43
43
|
}, /* @__PURE__ */ t.createElement(E, null), /* @__PURE__ */ t.createElement(e.Error.Text, null)), /* @__PURE__ */ t.createElement(e.Description, {
|
|
44
44
|
className: s(L, l.description)
|
|
45
|
-
},
|
|
46
|
-
},
|
|
45
|
+
}, N));
|
|
46
|
+
}, T = () => /* @__PURE__ */ t.createElement(S, null);
|
|
47
47
|
export {
|
|
48
|
-
|
|
48
|
+
T as EventsRsvpRAC
|
|
49
49
|
};
|
package/dist/component/{field-error-headless-gLZVlnQV.js → field-error-headless-D3-1L5sf.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import t, { createContext as m, useContext as M } from "react";
|
|
2
|
-
import { ak as c, ah as i, ac as f, U as h, W as x } from "./form-
|
|
2
|
+
import { ak as c, ah as i, ac as f, U as h, W as x } from "./form-DQauhsho.js";
|
|
3
3
|
const N = ({ 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-yc46NPmu.js → field-label-headless-Du4ckIVy.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ak as m, R as d, r as p, ah as D, au as B } from "./form-
|
|
1
|
+
import { ak as m, R as d, r as p, ah as D, au as B } from "./form-DQauhsho.js";
|
|
2
2
|
import l from "react";
|
|
3
3
|
import { f as L } from "./find-child-C60k4CxG.js";
|
|
4
4
|
import { sdk as R } from "@wix/image-kit";
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
const o = "_label_7bz06_1", e = "_requiredMark_7bz06_11", t = "_input_7bz06_16", n = "_inputGroup_7bz06_17", c = "_inputHover_7bz06_71", _ = "_innerInput_7bz06_132", r = "_dropdownTrigger_7bz06_182", p = "_dropdownIcon_7bz06_192", s = "_dropdownPopover_7bz06_211", i = "_selectPopover_7bz06_217", u = "_selectOption_7bz06_244", b = "_selectOptionHover_7bz06_267", d = "_selectOptionSelected_7bz06_271", l = "_selectOptionWithoutFocusRing_7bz06_275", z = "_description_7bz06_281", h = "_error_7bz06_297", k = "_checkbox_7bz06_316", v = "_checkboxInput_7bz06_339", I = "_checkboxInputSelected_7bz06_378", x = "_checkboxInputHover_7bz06_382", O = "_uploadButton_7bz06_429", a = {
|
|
2
|
+
label: o,
|
|
3
|
+
requiredMark: e,
|
|
4
|
+
input: t,
|
|
5
|
+
inputGroup: n,
|
|
6
|
+
inputHover: c,
|
|
7
|
+
innerInput: _,
|
|
8
|
+
dropdownTrigger: r,
|
|
9
|
+
dropdownIcon: p,
|
|
10
|
+
dropdownPopover: s,
|
|
11
|
+
selectPopover: i,
|
|
12
|
+
selectOption: u,
|
|
13
|
+
selectOptionHover: b,
|
|
14
|
+
selectOptionSelected: d,
|
|
15
|
+
selectOptionWithoutFocusRing: l,
|
|
16
|
+
description: z,
|
|
17
|
+
error: h,
|
|
18
|
+
checkbox: k,
|
|
19
|
+
checkboxInput: v,
|
|
20
|
+
checkboxInputSelected: I,
|
|
21
|
+
checkboxInputHover: x,
|
|
22
|
+
uploadButton: O
|
|
23
|
+
};
|
|
24
|
+
export {
|
|
25
|
+
a as s
|
|
26
|
+
};
|