@wix/form-elements 1.61.0 → 1.63.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-CTKF3-Jr.js → appointment-rac-B1VVk_Ui.js} +3 -3
- package/dist/component/{bookings-address-rac-gBn88bZA.js → bookings-address-rac-IQeHFdHT.js} +1 -1
- package/dist/component/{bookings-email-rac-C7TKRvTj.js → bookings-email-rac-z26A790r.js} +1 -1
- package/dist/component/{bookings-first-name-rac-C5wAAcjj.js → bookings-first-name-rac-Djf0GPP4.js} +1 -1
- package/dist/component/{bookings-header-rac-Dv81vh1Z.js → bookings-header-rac-CXOzAOpz.js} +1 -1
- package/dist/component/{bookings-last-name-rac-DylKhXli.js → bookings-last-name-rac-CbB8alM9.js} +1 -1
- package/dist/component/{bookings-login-bar-rac-DCr8PseD.js → bookings-login-bar-rac-CXrLx7Pn.js} +16 -16
- package/dist/component/{bookings-phone-rac-Cem6T4kN.js → bookings-phone-rac-DGYx7h5g.js} +1 -1
- package/dist/component/{bookings-rich-text-rac-B9CXzAM3.js → bookings-rich-text-rac-viJG57XF.js} +1 -1
- package/dist/component/checkbox-field-rac-e-RAmupX.js +1312 -0
- package/dist/component/{checkbox-group-field-headless-VzENoIsb.js → checkbox-group-field-headless-Cvia4lL6.js} +30 -30
- package/dist/component/{checkbox-group-field-rac-BYq7Rkja.js → checkbox-group-field-rac-BXxk90dk.js} +1 -1
- package/dist/component/{checkbox-group-rac-BMdQUrnq.js → checkbox-group-rac-CDfDTWqz.js} +1 -1
- package/dist/component/{checkbox-rac-s_6gOTt9.js → checkbox-rac-BRBKYD_5.js} +1 -1
- package/dist/component/{contacts-address-rac-Btk7NX5p.js → contacts-address-rac-BtWWQi77.js} +1 -1
- package/dist/component/{contacts-birthdate-rac-C-Vqjs2i.js → contacts-birthdate-rac-DaEUXJTf.js} +1 -1
- package/dist/component/{contacts-company-rac-DJdSHFAG.js → contacts-company-rac-IgRyjtcM.js} +1 -1
- package/dist/component/{contacts-email-rac-BX7tSRIa.js → contacts-email-rac-BS1MDrMk.js} +1 -1
- package/dist/component/{contacts-first-name-rac-jyVnjAH8.js → contacts-first-name-rac-BAvXypDF.js} +1 -1
- package/dist/component/{contacts-last-name-rac-Ca8W_-d3.js → contacts-last-name-rac-C289RYPl.js} +1 -1
- package/dist/component/{contacts-phone-rac-B3lVx79m.js → contacts-phone-rac-DIpyskam.js} +1 -1
- package/dist/component/{contacts-position-rac-D4utrlBz.js → contacts-position-rac-nPeh3lKU.js} +1 -1
- package/dist/component/{contacts-subscribe-rac-V1p9UnIO.js → contacts-subscribe-rac-Ci5OLk68.js} +1 -1
- package/dist/component/{contacts-tax-id-rac-BCFMQf3P.js → contacts-tax-id-rac-C4WB-SR0.js} +1 -1
- package/dist/component/{date-availability-sElYepkM.js → date-availability-HHjPx4Uv.js} +1 -1
- package/dist/component/{date-input-field-rac-BVRp-Q9t.js → date-input-field-rac-GFgFcpX2.js} +17 -17
- package/dist/component/{date-input-rac-OVoxroB_.js → date-input-rac-B9BUEIA-.js} +1 -1
- package/dist/component/{date-picker-field-rac-vOmCmb8f.js → date-picker-field-rac-BfjYIIuY.js} +4 -4
- package/dist/component/{date-picker-rac-BViyESWE.js → date-picker-rac-Bd2UN0ZF.js} +1 -1
- package/dist/component/{date-time-input-field-rac-CmTGH0Ur.js → date-time-input-field-rac-CAXnxLQP.js} +78 -78
- package/dist/component/{date-time-input-rac-DhuQjbd-.js → date-time-input-rac-BuJ3Awlh.js} +1 -1
- package/dist/component/{dext-checkbox-group-rac-DiK0ofyJ.js → dext-checkbox-group-rac-DKp4cBVa.js} +2 -2
- package/dist/component/{dext-checkbox-rac-hsIaGjBL.js → dext-checkbox-rac-BMu_k06A.js} +1 -1
- package/dist/component/{dext-date-picker-rac-BkEDrDm9.js → dext-date-picker-rac-L3sdldhT.js} +1 -1
- package/dist/component/{dext-date-time-input-rac-CCwMKmSa.js → dext-date-time-input-rac-UmabFzDN.js} +1 -1
- package/dist/component/{dext-dropdown-rac-CtoqxSUG.js → dext-dropdown-rac-DbjgYaG-.js} +1 -1
- package/dist/component/{dext-email-rac-BvK4NOz2.js → dext-email-rac-rNudrOOK.js} +1 -1
- package/dist/component/{dext-number-input-rac-CYgCbltu.js → dext-number-input-rac-hw1FTrJL.js} +1 -1
- package/dist/component/{dext-phone-rac-eQ9DRDh0.js → dext-phone-rac-DrZ_Vwv2.js} +1 -1
- package/dist/component/{dext-radio-group-rac-D1j2iY7w.js → dext-radio-group-rac-DAt2ax-I.js} +2 -2
- package/dist/component/{dext-rating-input-rac-C482gkW3.js → dext-rating-input-rac-BW2Ike11.js} +1 -1
- package/dist/component/{dext-tags-rac-4fBjF0ou.js → dext-tags-rac-DDzwlKrR.js} +2 -2
- package/dist/component/{dext-text-area-rac-7Vg2U7Mu.js → dext-text-area-rac-D0xf4z3z.js} +1 -1
- package/dist/component/{dext-text-input-rac-CGhjmk-l.js → dext-text-input-rac-Da04OLmq.js} +1 -1
- package/dist/component/{dext-url-input-rac-LwoSpkJq.js → dext-url-input-rac-B-g4xTqh.js} +1 -1
- package/dist/component/{donation-rac-sABSCHMJ.js → donation-rac-gKeq72jg.js} +10 -10
- package/dist/component/{dropdown-field-headless-C0Pk5_33.js → dropdown-field-headless-Js5TxdU4.js} +14 -14
- package/dist/component/{dropdown-field-rac-Gpctf74Y.js → dropdown-field-rac-BDxcvX00.js} +1 -1
- package/dist/component/{dropdown-rac-DKHO9H4r.js → dropdown-rac-B5UHNzV-.js} +1 -1
- package/dist/component/{ecom-address-rac-BR6IpZFw.js → ecom-address-rac-0zm4bX37.js} +1 -1
- package/dist/component/{ecom-subscription-checkbox-rac-v6GRysJr.js → ecom-subscription-checkbox-rac-DCXoI33l.js} +2 -2
- package/dist/component/{email-input-field-rac-CoD-mJA-.js → email-input-field-rac-svf6hUHF.js} +2 -2
- package/dist/component/{events-repeater-rac-CH5fjXUm.js → events-repeater-rac-DMIqzuVK.js} +29 -29
- package/dist/component/{events-rsvp-rac-HfajrqWn.js → events-rsvp-rac-B_YD4ckO.js} +1 -1
- package/dist/component/{field-error-headless-B5J2ESBQ.js → field-error-headless-DTKnr5Zx.js} +6 -6
- package/dist/component/{field-label-headless-g8SR5uWH.js → field-label-headless-DV4aNd5Y.js} +5 -5
- package/dist/component/{file-upload-rac-CuWH6kzP.js → file-upload-rac-lGKJjG3m.js} +49 -49
- package/dist/component/{fixed-payment-rac-DDCoECZF.js → fixed-payment-rac-BVS6glii.js} +13 -13
- package/dist/component/{form-Cd3D7IPH.js → form-DzjdnO7t.js} +2271 -2267
- package/dist/component/form.css +1 -1
- package/dist/component/form.js +1 -1
- package/dist/component/{header-field-rac-B86qWasN.js → header-field-rac-tzBH-8Yh.js} +5 -5
- package/dist/component/{header-rac-CKI3uVHK.js → header-rac-6thQAvVF.js} +1 -1
- package/dist/component/{image-choice-rac-BX9iq3FQ.js → image-choice-rac-Dx1b-saW.js} +23 -23
- package/dist/component/{index-BD0o63Sr.js → index-DIP7KB8P.js} +2 -2
- package/dist/component/{index-B1OGAoBr.js → index-Lnx0829a.js} +4 -4
- package/dist/component/isObjectLike-B_1KizZV.js +86 -0
- package/dist/component/multiline-address-field-rac-BY2SUp2d.js +1613 -0
- package/dist/component/{multiline-address-rac-pz8SF31j.js → multiline-address-rac-BL8Yp4F0.js} +1 -1
- package/dist/component/{number-input-field-rac-Du1lioEq.js → number-input-field-rac-x0yFmXbe.js} +14 -14
- package/dist/component/{number-input-rac-CX5zLtYJ.js → number-input-rac-pJXc2YsD.js} +1 -1
- package/dist/component/{password-rac-Gg7TJanM.js → password-rac-B4XCP64b.js} +19 -19
- package/dist/component/{payment-input-rac-DZcNoPdt.js → payment-input-rac-CZdOAjK4.js} +12 -12
- package/dist/component/{phone-input-field-rac-DXjS0M3S.js → phone-input-field-rac-DO_V5Z_T.js} +19 -19
- package/dist/component/{phone-rac-B4__qDbh.js → phone-rac-D16nLDjP.js} +1 -1
- package/dist/component/{product-list-rac-BZkCqyAe.js → product-list-rac-DER8gVqy.js} +44 -44
- package/dist/component/{quiz-radio-group-rac-Bl-4IPWK.js → quiz-radio-group-rac-BgTmHHi4.js} +1 -1
- package/dist/component/{radio-group-field-rac-YMWHcvyM.js → radio-group-field-rac-Dt2pU0VV.js} +1 -1
- package/dist/component/{radio-group-field-rac.module-DAtE0KVG.js → radio-group-field-rac.module--sO0VqCA.js} +12 -12
- package/dist/component/{radio-group-rac-DsidBDwT.js → radio-group-rac-CqCmtkNQ.js} +1 -1
- package/dist/component/{rating-input-field-rac-wrhjzIr8.js → rating-input-field-rac-xDrHHcL2.js} +10 -10
- package/dist/component/{rating-input-rac-uoY8q1LS.js → rating-input-rac-Bo5E9N87.js} +1 -1
- package/dist/component/{rich-content-rac.module-CJQVma69.js → rich-content-rac.module-CJXbNca9.js} +4 -4
- package/dist/component/{rich-text-field-rac-Dm-9BjTR.js → rich-text-field-rac-CkV0Z9F-.js} +5 -5
- package/dist/component/{rich-text-rac-k4a8Eawy.js → rich-text-rac-59DbKpXz.js} +1 -1
- package/dist/component/{service-dropdown-rac-CBOZY8wj.js → service-dropdown-rac-BLnflnUr.js} +25 -25
- package/dist/component/{services-multi-choice-rac-DTkLnNLM.js → services-multi-choice-rac-C-bFjwx8.js} +6 -6
- package/dist/component/{signature-rac-CMDroAUe.js → signature-rac-Bb5IaS28.js} +15 -15
- package/dist/component/{submit-button-rac-f339m0YR.js → submit-button-rac-Bjyi8sUA.js} +12 -12
- package/dist/component/{tags-field-rac-ChvUyucB.js → tags-field-rac-C_VO3_69.js} +12 -12
- package/dist/component/{tags-rac-D-KUrSn_.js → tags-rac-CKiutCWe.js} +1 -1
- package/dist/component/{text-area-field-rac-BKTMRopV.js → text-area-field-rac-Cg-vIhFe.js} +12 -12
- package/dist/component/{text-area-rac-C1cecxIB.js → text-area-rac-tMFx38UD.js} +1 -1
- package/dist/component/{text-input-field-rac-Drw_3E1W.js → text-input-field-rac-CgN_2hOD.js} +1 -1
- package/dist/component/{text-input-headless-CFi61Cyb.js → text-input-headless-CkhvKrFp.js} +6 -6
- package/dist/component/{text-input-rac-CSKYfTyX.js → text-input-rac-BsyBgd3b.js} +1 -1
- package/dist/component/{time-input-rac-D2ALW8mD.js → time-input-rac-BxRVJtHE.js} +12 -12
- package/dist/component/{url-input-field-rac-BLd1-70z.js → url-input-field-rac-B_1yVniS.js} +12 -12
- package/dist/component/{url-input-rac-CJ0W10C7.js → url-input-rac-D8VrKYVe.js} +1 -1
- package/dist/component/{use-service-options-base-CFrVxHKr.js → use-service-options-base-Ci9gIluo.js} +7 -7
- package/package.json +2 -14
- package/dist/component/checkbox-field-rac-BPsvcqaB.js +0 -625
- package/dist/component/isObject-BAwJJxQ3.js +0 -34
- package/dist/component/multiline-address-field-rac-BWfGsGnK.js +0 -1574
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import d, { useMemo as x, useCallback as _, useRef as P, useState as w, useEffect as U } from "react";
|
|
2
|
-
import { CheckboxGroup as W, CheckboxField as
|
|
2
|
+
import { CheckboxGroup as W, CheckboxField as j, CheckboxButton as A, TextField as z, Input as J } from "react-aria-components";
|
|
3
3
|
import { debounce as K } from "ts-debounce";
|
|
4
|
-
import {
|
|
4
|
+
import { ah as N, ae as Q, ar as X, ab as Y, aj as Z } from "./form-DzjdnO7t.js";
|
|
5
5
|
import { f as L, a as y } from "./find-child-C60k4CxG.js";
|
|
6
|
-
import { D as ee, E as te } from "./field-error-headless-
|
|
7
|
-
import { L as ae } from "./field-label-headless-
|
|
6
|
+
import { D as ee, E as te } from "./field-error-headless-DTKnr5Zx.js";
|
|
7
|
+
import { L as ae } from "./field-label-headless-DV4aNd5Y.js";
|
|
8
8
|
import { F as ne } from "./fieldset-headless-CD3fds9J.js";
|
|
9
9
|
import { N as se } from "./options-layout-constants-DEfIEJWD.js";
|
|
10
10
|
const R = "Other", le = (e, t) => e.some((o) => !t.includes(o)), B = (e, t) => e.length > 0 && le(e, t), oe = (e, t) => {
|
|
11
11
|
const o = t == null ? void 0 : t("add-other.default-other-option-label");
|
|
12
12
|
return e || o || R;
|
|
13
|
-
},
|
|
13
|
+
}, T = (e, t) => {
|
|
14
14
|
const n = t ? t.length + 2 : 0;
|
|
15
15
|
return (e.find((r) => r.startsWith(`${t}: `)) || "").slice(n);
|
|
16
16
|
}, k = (e) => e.map((t) => t.value ?? t.label), v = ({ children: e }) => {
|
|
17
|
-
const t = N(), { id: o, value: n, onChange: a, disabled: r, required: i, onBlur: E, onFocus: m, hasError:
|
|
17
|
+
const t = N(), { id: o, value: n, onChange: a, disabled: r, required: i, onBlur: E, onFocus: m, hasError: b, FieldLayout: c } = t, { inputId: p, labelId: u, ariaDescribedBy: l } = Q(), f = L(e, v.Label), h = L(e, v.Options), g = L(e, v.Description), C = L(e, v.Error), s = x(() => n || [], [
|
|
18
18
|
n
|
|
19
19
|
]), O = _((V) => {
|
|
20
20
|
a == null || a(V);
|
|
@@ -25,7 +25,7 @@ const R = "Other", le = (e, t) => e.some((o) => !t.includes(o)), B = (e, t) => e
|
|
|
25
25
|
fieldId: o,
|
|
26
26
|
renderLabel: () => f,
|
|
27
27
|
renderInput: () => /* @__PURE__ */ d.createElement(ne, {
|
|
28
|
-
id:
|
|
28
|
+
id: p,
|
|
29
29
|
ariaLabelledBy: u,
|
|
30
30
|
ariaDescribedBy: l,
|
|
31
31
|
required: i,
|
|
@@ -37,12 +37,12 @@ const R = "Other", le = (e, t) => e.some((o) => !t.includes(o)), B = (e, t) => e
|
|
|
37
37
|
onChange: O,
|
|
38
38
|
isDisabled: r,
|
|
39
39
|
isRequired: i,
|
|
40
|
-
isInvalid:
|
|
40
|
+
isInvalid: b
|
|
41
41
|
}, h)),
|
|
42
42
|
renderDescription: () => /* @__PURE__ */ d.createElement(d.Fragment, null, C, g)
|
|
43
43
|
});
|
|
44
44
|
}, $ = ({ children: e, className: t }) => {
|
|
45
|
-
const o = N(), { id: n, options: a, addOther: r, addOtherLabel: i, numberOfColumns: E } = o, { t: m } = X(), { isMobile:
|
|
45
|
+
const o = N(), { id: n, options: a, addOther: r, addOtherLabel: i, numberOfColumns: E } = o, { t: m } = X(), { isMobile: b } = Y(), c = L(e, $.Option), p = oe(i, m), u = b ? se.ONE : E;
|
|
46
46
|
return /* @__PURE__ */ d.createElement("div", {
|
|
47
47
|
className: t,
|
|
48
48
|
"data-columns": u
|
|
@@ -58,7 +58,7 @@ const R = "Other", le = (e, t) => e.some((o) => !t.includes(o)), B = (e, t) => e
|
|
|
58
58
|
}), r && y(c, {
|
|
59
59
|
key: R,
|
|
60
60
|
value: R,
|
|
61
|
-
label:
|
|
61
|
+
label: p,
|
|
62
62
|
isOther: !0
|
|
63
63
|
}));
|
|
64
64
|
}, re = ({ className: e }) => /* @__PURE__ */ d.createElement("div", {
|
|
@@ -70,15 +70,15 @@ const R = "Other", le = (e, t) => e.some((o) => !t.includes(o)), B = (e, t) => e
|
|
|
70
70
|
className: e
|
|
71
71
|
}, o);
|
|
72
72
|
}, F = ({ children: e, className: t, ...o }) => {
|
|
73
|
-
const { value: n, label: a, isFirst: r = !1, isOther: i = !1, fieldId: E } = o, m = N(), { value:
|
|
73
|
+
const { value: n, label: a, isFirst: r = !1, isOther: i = !1, fieldId: E } = o, m = N(), { value: b, onChange: c, disabled: p, readOnly: u, hasError: l, options: f } = m, h = P(null);
|
|
74
74
|
Z(() => {
|
|
75
75
|
var I;
|
|
76
76
|
r && ((I = h.current) == null || I.focus({
|
|
77
77
|
preventScroll: !0
|
|
78
78
|
}));
|
|
79
79
|
}, E);
|
|
80
|
-
const g = L(e, F.Label), C = L(e, F.Input), s = x(() =>
|
|
81
|
-
|
|
80
|
+
const g = L(e, F.Label), C = L(e, F.Input), s = x(() => b || [], [
|
|
81
|
+
b
|
|
82
82
|
]), O = x(() => i ? s.find((I) => I === a || I.startsWith(`${a}: `)) || a : n, [
|
|
83
83
|
i,
|
|
84
84
|
s,
|
|
@@ -99,13 +99,13 @@ const R = "Other", le = (e, t) => e.some((o) => !t.includes(o)), B = (e, t) => e
|
|
|
99
99
|
f,
|
|
100
100
|
s
|
|
101
101
|
]);
|
|
102
|
-
return /* @__PURE__ */ d.createElement(
|
|
102
|
+
return /* @__PURE__ */ d.createElement(j, {
|
|
103
103
|
value: O,
|
|
104
104
|
onChange: i ? V : void 0,
|
|
105
|
-
isDisabled:
|
|
105
|
+
isDisabled: p,
|
|
106
106
|
isReadOnly: u,
|
|
107
107
|
isInvalid: l
|
|
108
|
-
}, /* @__PURE__ */ d.createElement(
|
|
108
|
+
}, /* @__PURE__ */ d.createElement(A, {
|
|
109
109
|
ref: h,
|
|
110
110
|
className: t,
|
|
111
111
|
"data-hook": `checkbox-${a}`
|
|
@@ -115,8 +115,8 @@ const R = "Other", le = (e, t) => e.some((o) => !t.includes(o)), B = (e, t) => e
|
|
|
115
115
|
};
|
|
116
116
|
F.Label = ce;
|
|
117
117
|
F.Input = re;
|
|
118
|
-
const
|
|
119
|
-
const { value: o, label: n, isFirst: a = !1, isOther: r = !1, fieldId: i } = t, E = N(), { value: m, onChange:
|
|
118
|
+
const M = ({ children: e, ...t }) => {
|
|
119
|
+
const { value: o, label: n, isFirst: a = !1, isOther: r = !1, fieldId: i } = t, E = N(), { value: m, onChange: b, options: c, addOtherPlaceholder: p, otherInputCharacterLimit: u, disabled: l, readOnly: f, hasError: h } = E, g = L(e, F), C = L(e, q), s = x(() => m || [], [
|
|
120
120
|
m
|
|
121
121
|
]), O = x(() => {
|
|
122
122
|
if (!r)
|
|
@@ -136,9 +136,9 @@ const q = ({ children: e, ...t }) => {
|
|
|
136
136
|
fieldId: i
|
|
137
137
|
}), r && O && y(C, {
|
|
138
138
|
fieldValue: s,
|
|
139
|
-
onChange:
|
|
139
|
+
onChange: b,
|
|
140
140
|
label: n,
|
|
141
|
-
placeholder:
|
|
141
|
+
placeholder: p,
|
|
142
142
|
maxLength: u,
|
|
143
143
|
disabled: l,
|
|
144
144
|
readOnly: f,
|
|
@@ -147,14 +147,14 @@ const q = ({ children: e, ...t }) => {
|
|
|
147
147
|
addOtherLabel: n,
|
|
148
148
|
options: c
|
|
149
149
|
}));
|
|
150
|
-
},
|
|
151
|
-
const { fieldValue: n, onChange: a, label: r, placeholder: i, maxLength: E, disabled: m, readOnly:
|
|
150
|
+
}, q = ({ className: e, inputClassName: t, ...o }) => {
|
|
151
|
+
const { fieldValue: n, onChange: a, label: r, placeholder: i, maxLength: E, disabled: m, readOnly: b, hasError: c, ariaLabel: p, addOtherLabel: u, options: l } = o, [f, h] = w(() => {
|
|
152
152
|
const s = k(l || []);
|
|
153
|
-
return B(n, s) ?
|
|
153
|
+
return B(n, s) ? T(n, u) : "";
|
|
154
154
|
});
|
|
155
155
|
U(() => {
|
|
156
156
|
const s = k(l || []), O = B(n, s);
|
|
157
|
-
h(O ?
|
|
157
|
+
h(O ? T(n, u) : "");
|
|
158
158
|
}, [
|
|
159
159
|
n,
|
|
160
160
|
l,
|
|
@@ -178,25 +178,25 @@ const q = ({ children: e, ...t }) => {
|
|
|
178
178
|
g
|
|
179
179
|
]);
|
|
180
180
|
return /* @__PURE__ */ d.createElement(z, {
|
|
181
|
-
"aria-label":
|
|
181
|
+
"aria-label": p,
|
|
182
182
|
value: f,
|
|
183
183
|
onChange: C,
|
|
184
184
|
isDisabled: m,
|
|
185
|
-
isReadOnly:
|
|
185
|
+
isReadOnly: b,
|
|
186
186
|
isInvalid: c,
|
|
187
187
|
className: e
|
|
188
188
|
}, /* @__PURE__ */ d.createElement(J, {
|
|
189
189
|
className: t,
|
|
190
190
|
placeholder: i,
|
|
191
191
|
maxLength: E,
|
|
192
|
-
"aria-label":
|
|
192
|
+
"aria-label": p
|
|
193
193
|
}));
|
|
194
194
|
};
|
|
195
195
|
v.Label = ae;
|
|
196
196
|
v.Options = $;
|
|
197
|
-
$.Option =
|
|
198
|
-
|
|
199
|
-
|
|
197
|
+
$.Option = M;
|
|
198
|
+
M.Checkbox = F;
|
|
199
|
+
M.OtherInput = q;
|
|
200
200
|
v.Description = ee;
|
|
201
201
|
v.Error = te;
|
|
202
202
|
export {
|
package/dist/component/{checkbox-group-field-rac-BYq7Rkja.js → checkbox-group-field-rac-BXxk90dk.js}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { RicosViewer as l } from "@wix/ricos/viewer";
|
|
2
2
|
import r from "classnames";
|
|
3
3
|
import e from "react";
|
|
4
|
-
import { C as t } from "./checkbox-group-field-headless-
|
|
4
|
+
import { C as t } from "./checkbox-group-field-headless-Cvia4lL6.js";
|
|
5
5
|
import { E as c } from "./error-icon-hZxQ6DEy.js";
|
|
6
6
|
import { s as a } from "./field-rac.module-DtugsLiL.js";
|
|
7
7
|
import { r as m, H as i, a as E, b as p, c as O, q as _, l as C, h as L } from "./form-element-classes-Bi-nNM8q.js";
|
package/dist/component/{contacts-subscribe-rac-V1p9UnIO.js → contacts-subscribe-rac-Ci5OLk68.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import C from "react";
|
|
2
|
-
import { C as _ } from "./checkbox-field-rac-
|
|
2
|
+
import { C as _ } from "./checkbox-field-rac-e-RAmupX.js";
|
|
3
3
|
import { P as e, Q as o, O as r } from "./form-element-classes-Bi-nNM8q.js";
|
|
4
4
|
const a = () => /* @__PURE__ */ C.createElement(_, {
|
|
5
5
|
classes: {
|
package/dist/component/{date-input-field-rac-BVRp-Q9t.js → date-input-field-rac-GFgFcpX2.js}
RENAMED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { RicosViewer as X } from "@wix/ricos/viewer";
|
|
2
2
|
import E from "classnames";
|
|
3
|
-
import t, { useMemo as g, useState as x, useCallback as
|
|
4
|
-
import {
|
|
3
|
+
import t, { useMemo as g, useState as x, useCallback as j, useRef as B } from "react";
|
|
4
|
+
import { ah as D, ae as U, ab as A, J as k, a1 as q, r as i, ar as P, x as Z, K as ee, a8 as te, aj as V } from "./form-DzjdnO7t.js";
|
|
5
5
|
import { UNSAFE_PortalProvider as ae } from "react-aria";
|
|
6
6
|
import { ListBoxItem as ne, ListBox as re, Select as oe, TextField as $, SelectValue as se, Input as z } from "react-aria-components";
|
|
7
|
-
import { f as p, a as
|
|
7
|
+
import { f as p, a as K } from "./find-child-C60k4CxG.js";
|
|
8
8
|
import { g as le } from "./helpers-HmkkXrh2.js";
|
|
9
|
-
import { D as ce, E as ie } from "./field-error-headless-
|
|
10
|
-
import { L as me } from "./field-label-headless-
|
|
9
|
+
import { D as ce, E as ie } from "./field-error-headless-DTKnr5Zx.js";
|
|
10
|
+
import { L as me } from "./field-label-headless-DV4aNd5Y.js";
|
|
11
11
|
import { F as de } from "./fieldset-headless-CD3fds9J.js";
|
|
12
12
|
import { N as ue, S as pe } from "./non-modal-popover-DtIMXHbe.js";
|
|
13
13
|
import { C as Ee } from "./chevron-down-icon-CcpVm6B-.js";
|
|
@@ -25,7 +25,7 @@ const n = ({ children: e, className: a }) => {
|
|
|
25
25
|
};
|
|
26
26
|
return /* @__PURE__ */ t.createElement(l, {
|
|
27
27
|
fieldId: r,
|
|
28
|
-
renderLabel: () =>
|
|
28
|
+
renderLabel: () => K(O, {
|
|
29
29
|
as: "div"
|
|
30
30
|
}),
|
|
31
31
|
renderInput: () => /* @__PURE__ */ t.createElement(de, {
|
|
@@ -40,12 +40,12 @@ const n = ({ children: e, className: a }) => {
|
|
|
40
40
|
renderDescription: () => /* @__PURE__ */ t.createElement(t.Fragment, null, Y, T)
|
|
41
41
|
});
|
|
42
42
|
}, y = ({ children: e, className: a }) => {
|
|
43
|
-
const { disabled: r, readOnly: o, showDateLabels: s, hidePlaceholder: c } = D(), { labelId: l } = _(i.MONTH), { partValue: d, partError: m, onPartChange: f } = L(i.MONTH), { t: b } = P(), [I, O] = x(!1), [T, Y] = x(null), N = c ? void 0 : b("field.date.placeholder.month"), v =
|
|
43
|
+
const { disabled: r, readOnly: o, showDateLabels: s, hidePlaceholder: c } = D(), { labelId: l } = _(i.MONTH), { partValue: d, partError: m, onPartChange: f } = L(i.MONTH), { t: b } = P(), [I, O] = x(!1), [T, Y] = x(null), N = c ? void 0 : b("field.date.placeholder.month"), v = j((M) => {
|
|
44
44
|
o || f(typeof M == "string" ? M : "");
|
|
45
45
|
}, [
|
|
46
46
|
f,
|
|
47
47
|
o
|
|
48
|
-
]),
|
|
48
|
+
]), J = j((M) => {
|
|
49
49
|
O(M && !o);
|
|
50
50
|
}, [
|
|
51
51
|
o
|
|
@@ -68,9 +68,9 @@ const n = ({ children: e, className: a }) => {
|
|
|
68
68
|
isInvalid: m,
|
|
69
69
|
placeholder: N,
|
|
70
70
|
isOpen: I,
|
|
71
|
-
onOpenChange:
|
|
71
|
+
onOpenChange: J
|
|
72
72
|
}, G, W)));
|
|
73
|
-
}, _e = ({ className: e }) => /* @__PURE__ */ t.createElement(
|
|
73
|
+
}, _e = ({ className: e }) => /* @__PURE__ */ t.createElement(w, {
|
|
74
74
|
datePart: i.MONTH,
|
|
75
75
|
className: e
|
|
76
76
|
}), ge = ({ children: e, className: a }) => {
|
|
@@ -94,7 +94,7 @@ const n = ({ children: e, className: a }) => {
|
|
|
94
94
|
className: a,
|
|
95
95
|
containerPadding: 0,
|
|
96
96
|
offset: 0
|
|
97
|
-
}, /* @__PURE__ */ t.createElement(re, null, o.map((c, l) =>
|
|
97
|
+
}, /* @__PURE__ */ t.createElement(re, null, o.map((c, l) => K(s, {
|
|
98
98
|
key: String(l + 1),
|
|
99
99
|
value: String(l + 1),
|
|
100
100
|
label: c
|
|
@@ -124,7 +124,7 @@ const F = ({ children: e, className: a }) => {
|
|
|
124
124
|
isReadOnly: o,
|
|
125
125
|
isInvalid: d
|
|
126
126
|
}, b));
|
|
127
|
-
}, Oe = ({ className: e }) => /* @__PURE__ */ t.createElement(
|
|
127
|
+
}, Oe = ({ className: e }) => /* @__PURE__ */ t.createElement(w, {
|
|
128
128
|
datePart: i.DAY,
|
|
129
129
|
className: e
|
|
130
130
|
}), Ne = ({ className: e }) => {
|
|
@@ -157,7 +157,7 @@ const C = ({ children: e, className: a }) => {
|
|
|
157
157
|
isReadOnly: o,
|
|
158
158
|
isInvalid: d
|
|
159
159
|
}, b));
|
|
160
|
-
}, Fe = ({ className: e }) => /* @__PURE__ */ t.createElement(
|
|
160
|
+
}, Fe = ({ className: e }) => /* @__PURE__ */ t.createElement(w, {
|
|
161
161
|
datePart: i.YEAR,
|
|
162
162
|
className: e
|
|
163
163
|
}), Ce = ({ className: e }) => {
|
|
@@ -202,7 +202,7 @@ function L(e) {
|
|
|
202
202
|
]), l = g(() => ee(o, a ?? ""), [
|
|
203
203
|
a,
|
|
204
204
|
o
|
|
205
|
-
]), d = c[e] || "", m =
|
|
205
|
+
]), d = c[e] || "", m = j((b) => {
|
|
206
206
|
const I = te(b, e, c);
|
|
207
207
|
r(I);
|
|
208
208
|
}, [
|
|
@@ -220,7 +220,7 @@ function L(e) {
|
|
|
220
220
|
isFirstPart: f
|
|
221
221
|
};
|
|
222
222
|
}
|
|
223
|
-
function
|
|
223
|
+
function w({ datePart: e, className: a }) {
|
|
224
224
|
const { inputId: r, labelId: o } = _(e), { t: s } = P(), c = `field.date.label.${e.toLowerCase()}`, l = s(c);
|
|
225
225
|
return /* @__PURE__ */ t.createElement("label", {
|
|
226
226
|
id: o,
|
|
@@ -238,7 +238,7 @@ const Me = "_fields_12ojb_1", Re = "_month_12ojb_9", Se = "_day_12ojb_10", Ae =
|
|
|
238
238
|
yearInput: Ye,
|
|
239
239
|
monthTrigger: ve,
|
|
240
240
|
monthOption: He
|
|
241
|
-
},
|
|
241
|
+
}, je = ({ content: e, locale: a }) => /* @__PURE__ */ t.createElement(X, {
|
|
242
242
|
content: e,
|
|
243
243
|
locale: a
|
|
244
244
|
}), tt = () => {
|
|
@@ -279,7 +279,7 @@ const Me = "_fields_12ojb_1", Re = "_month_12ojb_9", Se = "_day_12ojb_10", Ae =
|
|
|
279
279
|
className: E(De, u.error)
|
|
280
280
|
}, /* @__PURE__ */ t.createElement(be, null), /* @__PURE__ */ t.createElement(n.Error.Text, null)), /* @__PURE__ */ t.createElement(n.Description, {
|
|
281
281
|
className: E(ye, u.description)
|
|
282
|
-
},
|
|
282
|
+
}, je));
|
|
283
283
|
};
|
|
284
284
|
export {
|
|
285
285
|
tt as D
|
package/dist/component/{date-picker-field-rac-vOmCmb8f.js → date-picker-field-rac-BfjYIIuY.js}
RENAMED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { RicosViewer as G } from "@wix/ricos/viewer";
|
|
2
2
|
import y from "classnames";
|
|
3
3
|
import e, { useState as Q, useCallback as F, useContext as Z, useRef as L, useMemo as _ } from "react";
|
|
4
|
-
import { D,
|
|
4
|
+
import { D, ah as v, ae as A, ab as S, aj as z } from "./form-DzjdnO7t.js";
|
|
5
5
|
import { parseDate as J } from "@internationalized/date";
|
|
6
6
|
import { UNSAFE_PortalProvider as X } from "react-aria";
|
|
7
7
|
import { I18nProvider as ee, DatePicker as te, DatePickerStateContext as re, Group as ae, DateInput as ne, DateSegment as oe, Dialog as le, Calendar as se, CalendarMonthPicker as ce, CalendarYearPicker as ie, CalendarGrid as me, CalendarCell as ue, Button as R, Select as O, SelectValue as x, ListBox as M, ListBoxItem as k } from "react-aria-components";
|
|
8
8
|
import { g as de } from "./get-first-day-of-the-week-DvnsxYhQ.js";
|
|
9
9
|
import { f as E, a as b } from "./find-child-C60k4CxG.js";
|
|
10
|
-
import { D as ge, E as Ee } from "./field-error-headless-
|
|
11
|
-
import { L as pe } from "./field-label-headless-
|
|
10
|
+
import { D as ge, E as Ee } from "./field-error-headless-DTKnr5Zx.js";
|
|
11
|
+
import { L as pe } from "./field-label-headless-DV4aNd5Y.js";
|
|
12
12
|
import { D as De, N as I, S as w } from "./non-modal-popover-DtIMXHbe.js";
|
|
13
|
-
import { i as fe } from "./date-availability-
|
|
13
|
+
import { i as fe } from "./date-availability-HHjPx4Uv.js";
|
|
14
14
|
import { C as N } from "./chevron-down-icon-CcpVm6B-.js";
|
|
15
15
|
import { E as Ce } from "./error-icon-hZxQ6DEy.js";
|
|
16
16
|
import { s as p } from "./field-rac.module-DtugsLiL.js";
|