@wix/form-elements 1.62.0 → 1.64.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-Dqib2upI.js → appointment-rac-DojiZqx9.js} +35 -35
- package/dist/component/{bookings-address-rac-E-qq4-KG.js → bookings-address-rac-Bm_lQchD.js} +1 -1
- package/dist/component/{bookings-email-rac-DA_Hwn2j.js → bookings-email-rac-vwuy0kW8.js} +1 -1
- package/dist/component/{bookings-first-name-rac-o1n3lnRo.js → bookings-first-name-rac-BbWuLoeg.js} +1 -1
- package/dist/component/{bookings-header-rac-DQ0YvhxZ.js → bookings-header-rac-DVknNH29.js} +1 -1
- package/dist/component/{bookings-last-name-rac-BqL_84Sg.js → bookings-last-name-rac-BnT3Cq0b.js} +1 -1
- package/dist/component/{bookings-login-bar-rac-CAN7roRc.js → bookings-login-bar-rac-DKi-VAXc.js} +16 -16
- package/dist/component/{bookings-phone-rac-CCJVdvkd.js → bookings-phone-rac-Bfy8rheB.js} +1 -1
- package/dist/component/{bookings-rich-text-rac-CCklquEC.js → bookings-rich-text-rac-DGiBDcXw.js} +1 -1
- package/dist/component/checkbox-field-rac-CYADRY54.js +1312 -0
- package/dist/component/checkbox-group-field-headless-BDAFpX5F.js +210 -0
- package/dist/component/checkbox-group-field-rac-2YUsOmDI.js +40 -0
- package/dist/component/{checkbox-group-rac-DWPClKpf.js → checkbox-group-rac-CQf1C9H5.js} +1 -1
- package/dist/component/{checkbox-rac-CvbOws2U.js → checkbox-rac-Bjv8jZjs.js} +1 -1
- package/dist/component/{contacts-address-rac-CWFHC5LT.js → contacts-address-rac-BBTiEec9.js} +1 -1
- package/dist/component/{contacts-birthdate-rac-DPmJPp8M.js → contacts-birthdate-rac-XReeFHVW.js} +1 -1
- package/dist/component/{contacts-company-rac-UWP9uDqI.js → contacts-company-rac-B-fUQszu.js} +1 -1
- package/dist/component/{contacts-email-rac-BCkkWYhr.js → contacts-email-rac-DBtcCcsV.js} +1 -1
- package/dist/component/{contacts-first-name-rac-KNRf92yT.js → contacts-first-name-rac-mkwU3706.js} +1 -1
- package/dist/component/{contacts-last-name-rac-C_EotEpo.js → contacts-last-name-rac-DY5N-AZx.js} +1 -1
- package/dist/component/{contacts-phone-rac-DJGEWLsl.js → contacts-phone-rac-Ce1rMz_z.js} +1 -1
- package/dist/component/{contacts-position-rac-s1pZ662O.js → contacts-position-rac-B65H8PDu.js} +1 -1
- package/dist/component/contacts-subscribe-rac-BxO8rIyL.js +13 -0
- package/dist/component/{contacts-tax-id-rac-3MUvKEqW.js → contacts-tax-id-rac-Jtt0ySK2.js} +1 -1
- package/dist/component/{date-availability-CRsSX5_d.js → date-availability-B8UwvTJa.js} +1 -1
- package/dist/component/{date-input-field-rac-DPo7waqI.js → date-input-field-rac-RL2a0xoD.js} +23 -23
- package/dist/component/{date-input-rac-DsY8ehb1.js → date-input-rac-ak3G7V07.js} +1 -1
- package/dist/component/{date-picker-field-rac-BtzlxVDB.js → date-picker-field-rac-SL_Roltf.js} +31 -31
- package/dist/component/{date-picker-rac-C-Aw6W87.js → date-picker-rac-ByrM0YIX.js} +1 -1
- package/dist/component/{date-time-input-field-rac-zre1vJ2m.js → date-time-input-field-rac-DOE7xcKi.js} +87 -87
- package/dist/component/{date-time-input-rac-CUvTUzbT.js → date-time-input-rac-BA-GyrAc.js} +1 -1
- package/dist/component/{dext-checkbox-group-rac-D4mhJU8E.js → dext-checkbox-group-rac-EwUnBO80.js} +2 -2
- package/dist/component/{dext-checkbox-rac-BeYmKpAZ.js → dext-checkbox-rac-CIRKi4B5.js} +1 -1
- package/dist/component/{dext-date-picker-rac-Mr0M3sNQ.js → dext-date-picker-rac-BYO_Q1zM.js} +1 -1
- package/dist/component/{dext-date-time-input-rac-dgxfrHUw.js → dext-date-time-input-rac-BOahPeaH.js} +1 -1
- package/dist/component/{dext-dropdown-rac-CdZOoA5M.js → dext-dropdown-rac-sTD_r-0H.js} +1 -1
- package/dist/component/{dext-email-rac-TBiHlKjv.js → dext-email-rac-e-2_h3he.js} +1 -1
- package/dist/component/{dext-number-input-rac-S78swyZ9.js → dext-number-input-rac-D6LACzWl.js} +1 -1
- package/dist/component/{dext-phone-rac-BhIaSHez.js → dext-phone-rac-kUycy5Od.js} +1 -1
- package/dist/component/{dext-radio-group-rac-B4xG4N8A.js → dext-radio-group-rac-DPD2UkrV.js} +2 -2
- package/dist/component/{dext-rating-input-rac-Bp2Pi5cP.js → dext-rating-input-rac-DUsnrl9W.js} +1 -1
- package/dist/component/{dext-tags-rac-Bnjgmyk-.js → dext-tags-rac-D6z69HuO.js} +2 -2
- package/dist/component/{dext-text-area-rac-f1nJTM_n.js → dext-text-area-rac-C-DVtFJ1.js} +1 -1
- package/dist/component/{dext-text-input-rac-B9m6oI-e.js → dext-text-input-rac-CIa2MdC6.js} +1 -1
- package/dist/component/{dext-url-input-rac-CfEUdRdY.js → dext-url-input-rac-8rVVW5us.js} +1 -1
- package/dist/component/{donation-rac-BqKbQD_H.js → donation-rac-BjmSBabc.js} +62 -62
- package/dist/component/{dropdown-field-headless-CzoD076g.js → dropdown-field-headless-DReo519l.js} +5 -5
- package/dist/component/{dropdown-field-rac-5kD98Ubc.js → dropdown-field-rac-DzrjA2O6.js} +7 -7
- package/dist/component/{dropdown-rac-C9NpsRYi.js → dropdown-rac-CS7oLTp_.js} +1 -1
- package/dist/component/{ecom-address-rac-DdvJEnAO.js → ecom-address-rac-EIb88J_6.js} +1 -1
- package/dist/component/{ecom-subscription-checkbox-rac-D7Lf1ETL.js → ecom-subscription-checkbox-rac-CE0Ks6qS.js} +5 -5
- package/dist/component/{email-input-field-rac-DUordV5X.js → email-input-field-rac-BScZxYHw.js} +47 -47
- package/dist/component/{events-repeater-rac-B1yDrnvJ.js → events-repeater-rac-Y0rH2Jli.js} +66 -66
- package/dist/component/{events-rsvp-rac-B65NtAMH.js → events-rsvp-rac-BiAYVv_b.js} +12 -12
- package/dist/component/{field-error-headless-DP4WSQU3.js → field-error-headless-DrnFrGun.js} +4 -4
- package/dist/component/{field-label-headless-BKmi7Fjg.js → field-label-headless-BIYf1BIh.js} +7 -7
- package/dist/component/field-rac.module-CWkwwhq4.js +21 -0
- package/dist/component/{file-upload-rac-DAg_G0_l.js → file-upload-rac-br--tZLp.js} +83 -83
- package/dist/component/{fixed-payment-rac-yO1w1gE2.js → fixed-payment-rac-XEtrsaMy.js} +15 -15
- package/dist/component/{form-D6A2hUbV.js → form-9yjqDnxY.js} +2719 -2709
- package/dist/component/form-element-classes-KRzHUNLu.js +57 -0
- package/dist/component/form.css +1 -1
- package/dist/component/form.js +1 -1
- package/dist/component/{header-field-rac-D3Bi6tTS.js → header-field-rac-CLELgzqY.js} +5 -5
- package/dist/component/{header-rac-Blv89pdS.js → header-rac-D8KGkVVp.js} +1 -1
- package/dist/component/{image-choice-rac-BLUZRNm0.js → image-choice-rac-Cl09CLP4.js} +30 -30
- package/dist/component/{index-BiYk1mJi.js → index-C4y71e1i.js} +2 -2
- package/dist/component/{index-Cv3_acT1.js → index-PHkE0Ru4.js} +4 -4
- package/dist/component/isObjectLike-srCDplej.js +86 -0
- package/dist/component/multiline-address-field-rac-CsBLI9y-.js +1613 -0
- package/dist/component/{multiline-address-rac-B9yHNebZ.js → multiline-address-rac-DFDPFfXh.js} +1 -1
- package/dist/component/{number-input-field-rac-SaC7jFUi.js → number-input-field-rac-DZRR7gdt.js} +19 -19
- package/dist/component/{number-input-rac-KYcJJPrs.js → number-input-rac-BCS5lkff.js} +1 -1
- package/dist/component/{password-rac-CD5bSL2g.js → password-rac-ClDGgR3E.js} +27 -27
- package/dist/component/{payment-input-rac-BlAscmFz.js → payment-input-rac-COydWmUE.js} +34 -34
- package/dist/component/{phone-input-field-rac-D-AosrgV.js → phone-input-field-rac-DYCibqe1.js} +54 -54
- package/dist/component/{phone-rac-DXLYlz5G.js → phone-rac-BS-dmWkJ.js} +1 -1
- package/dist/component/{product-list-rac-CGt4Gnj4.js → product-list-rac-hxOhaA-r.js} +84 -84
- package/dist/component/quiz-radio-group-rac-BT-YZO2Q.js +13 -0
- package/dist/component/{radio-group-field-rac-D8NS7qDq.js → radio-group-field-rac-DKqWnMBJ.js} +3 -3
- package/dist/component/{radio-group-field-rac.module-wK26tCZq.js → radio-group-field-rac.module-BwUynK_5.js} +9 -9
- package/dist/component/{radio-group-rac-HalDjwk1.js → radio-group-rac-DHURQZKK.js} +1 -1
- package/dist/component/{rating-input-field-rac-BBhMkSyL.js → rating-input-field-rac-CZRdSVrf.js} +37 -37
- package/dist/component/{rating-input-rac-BpgFnNoD.js → rating-input-rac-BaH52DYm.js} +1 -1
- package/dist/component/{rich-content-rac.module-BgJ2fteu.js → rich-content-rac.module-ILBfxEmN.js} +4 -4
- package/dist/component/{rich-text-field-rac-BZfCgvHc.js → rich-text-field-rac-B58q8Is7.js} +7 -7
- package/dist/component/{rich-text-rac-CG3V04Gr.js → rich-text-rac-DGbZh1eX.js} +1 -1
- package/dist/component/{service-dropdown-rac-Bc_y-R5O.js → service-dropdown-rac-DUiNIbdv.js} +42 -42
- package/dist/component/{services-multi-choice-rac-BeBdZpRV.js → services-multi-choice-rac-B7y9s2l8.js} +29 -29
- package/dist/component/{signature-rac-DNdpHxFp.js → signature-rac-CydpvQJZ.js} +37 -37
- package/dist/component/{submit-button-rac-Bogk1xYc.js → submit-button-rac-OO53h4H8.js} +8 -8
- package/dist/component/{tags-field-rac-COJG3T_9.js → tags-field-rac-eX3d3JEH.js} +50 -50
- package/dist/component/{tags-rac-DsaUqJ4w.js → tags-rac-CdIB_48Z.js} +1 -1
- package/dist/component/{text-area-field-rac-BVq5p83p.js → text-area-field-rac-Bir5Q7gz.js} +22 -22
- package/dist/component/{text-area-rac-D-uiOy62.js → text-area-rac-Ct1UNU04.js} +1 -1
- package/dist/component/{text-input-field-rac-wYvY_eBR.js → text-input-field-rac-onGUXC9J.js} +6 -6
- package/dist/component/{text-input-headless-BsL6OYhp.js → text-input-headless-Bs9m7QFg.js} +10 -10
- package/dist/component/{text-input-rac-Bu8kXhrN.js → text-input-rac-DK4nEw4D.js} +1 -1
- package/dist/component/{time-input-rac-PWXUi1qL.js → time-input-rac-BCG9ktFa.js} +40 -40
- package/dist/component/{url-input-field-rac-B4qgrssx.js → url-input-field-rac-mUkrVTcL.js} +25 -25
- package/dist/component/{url-input-rac-Bo51kTsG.js → url-input-rac-Cl7LFYlr.js} +1 -1
- package/dist/component/{use-service-options-base-Du6B6AP9.js → use-service-options-base-BYVuKRj2.js} +8 -8
- package/dist/form.d.ts +3 -1
- package/package.json +2 -14
- package/dist/component/checkbox-field-rac-DhAEMdL9.js +0 -625
- package/dist/component/checkbox-group-field-headless-EGVW3vG0.js +0 -204
- package/dist/component/checkbox-group-field-rac-DUDWNOwV.js +0 -33
- package/dist/component/contacts-subscribe-rac-D_2wIX9p.js +0 -13
- package/dist/component/field-rac.module-DtugsLiL.js +0 -21
- package/dist/component/form-element-classes-Bi-nNM8q.js +0 -55
- package/dist/component/isObject-BAwJJxQ3.js +0 -34
- package/dist/component/multiline-address-field-rac-_Sb56AEM.js +0 -1574
- package/dist/component/quiz-radio-group-rac-DaStzNZZ.js +0 -13
|
@@ -4,15 +4,15 @@ import v from "classnames";
|
|
|
4
4
|
import { useHover as ve, useFocusRing as xe, mergeProps as Se } from "react-aria";
|
|
5
5
|
import { RadioGroup as Fe, Button as fe, TextField as Ae, Input as _e, RadioField as Pe, RadioButton as Ne } from "react-aria-components";
|
|
6
6
|
import he from "signature_pad";
|
|
7
|
-
import {
|
|
7
|
+
import { z as Ue, ae as Oe, ab as Be, aq as ge, E as ce, e as G, ai as A, af as H, ak as Ee, as as Me } from "./form-9yjqDnxY.js";
|
|
8
8
|
import { f as T, a as F } from "./find-child-C60k4CxG.js";
|
|
9
|
-
import { D as We, E as He } from "./field-error-headless-
|
|
10
|
-
import { L as Ye } from "./field-label-headless-
|
|
9
|
+
import { D as We, E as He } from "./field-error-headless-DrnFrGun.js";
|
|
10
|
+
import { L as Ye } from "./field-label-headless-BIYf1BIh.js";
|
|
11
11
|
import { D as ke } from "./data-hooks-Dkw1pbRj.js";
|
|
12
12
|
import { E as $e } from "./error-icon-hZxQ6DEy.js";
|
|
13
|
-
import { s as
|
|
14
|
-
import {
|
|
15
|
-
const
|
|
13
|
+
import { s as z } from "./field-rac.module-CWkwwhq4.js";
|
|
14
|
+
import { t as ue, J as ze, s as B, X as Ve, n as Xe, j as Ze } from "./form-element-classes-KRzHUNLu.js";
|
|
15
|
+
const Ge = typeof s.useId == "function" ? s.useId : () => W(Ue()).current;
|
|
16
16
|
var w = /* @__PURE__ */ (function(e) {
|
|
17
17
|
return e.TEXT = "text/plain", e.POINTS = "points/json", e;
|
|
18
18
|
})({}), b = /* @__PURE__ */ (function(e) {
|
|
@@ -20,7 +20,7 @@ var w = /* @__PURE__ */ (function(e) {
|
|
|
20
20
|
})({}), S = /* @__PURE__ */ (function(e) {
|
|
21
21
|
return e.DRAW = "draw", e.TYPE = "type", e.IMAGE = "image", e.UPLOAD = "upload", e;
|
|
22
22
|
})({});
|
|
23
|
-
const
|
|
23
|
+
const qe = (e) => {
|
|
24
24
|
const { actions: t, formId: a } = Oe(), n = t == null ? void 0 : t.uploadFile;
|
|
25
25
|
return I(async (r) => {
|
|
26
26
|
if (!n)
|
|
@@ -43,7 +43,7 @@ const Ge = (e) => {
|
|
|
43
43
|
]);
|
|
44
44
|
};
|
|
45
45
|
function je(e) {
|
|
46
|
-
const a =
|
|
46
|
+
const a = V(1, 1).getContext("2d");
|
|
47
47
|
a.fillStyle = e, a.fillRect(0, 0, 1, 1);
|
|
48
48
|
const n = a.getImageData(0, 0, 1, 1);
|
|
49
49
|
return n.data[0] * 65536 + n.data[1] * 256 + n.data[2];
|
|
@@ -72,7 +72,7 @@ function J(e, t) {
|
|
|
72
72
|
const p = a.getImageData(l, d, h, E), L = document.createElement("canvas"), y = L.getContext("2d");
|
|
73
73
|
return L.width = h, L.height = E, t ? (y.fillStyle = t, y.fillRect(0, 0, h, E)) : y.clearRect(0, 0, h, E), y.putImageData(p, 0, 0), L;
|
|
74
74
|
}
|
|
75
|
-
function
|
|
75
|
+
function V(e, t, a) {
|
|
76
76
|
const n = document.createElement("canvas");
|
|
77
77
|
if (n.width = e, n.height = t, a) {
|
|
78
78
|
const r = n.getContext("2d", {
|
|
@@ -86,7 +86,7 @@ function Qe(e, t) {
|
|
|
86
86
|
return new Promise((a, n) => {
|
|
87
87
|
const r = new Image();
|
|
88
88
|
r.onload = () => {
|
|
89
|
-
const o =
|
|
89
|
+
const o = V(r.width, r.height), i = o.getContext("2d", {
|
|
90
90
|
willReadFrequently: !0
|
|
91
91
|
});
|
|
92
92
|
i == null || i.drawImage(r, 0, 0), a(o);
|
|
@@ -94,7 +94,7 @@ function Qe(e, t) {
|
|
|
94
94
|
});
|
|
95
95
|
}
|
|
96
96
|
function de(e, t, a, n) {
|
|
97
|
-
const r = e.width, o = e.height, i = 1, l = a / o, c = Math.min(l, i), d = r * c, u = o * c, f =
|
|
97
|
+
const r = e.width, o = e.height, i = 1, l = a / o, c = Math.min(l, i), d = r * c, u = o * c, f = V(d, u), m = f.getContext("2d");
|
|
98
98
|
return n && m && (m.fillStyle = n, m.fillRect(0, 0, d, u)), m == null || m.drawImage(e, 0, 0, r, o, 0, 0, d, u), f;
|
|
99
99
|
}
|
|
100
100
|
function me(e, t) {
|
|
@@ -187,7 +187,7 @@ async function ot(e, t) {
|
|
|
187
187
|
return e;
|
|
188
188
|
const n = a.mimeType;
|
|
189
189
|
if (n === w.TEXT) {
|
|
190
|
-
const r =
|
|
190
|
+
const r = V(M * 20, M, 1);
|
|
191
191
|
nt(r, a.data, "black", t, "white");
|
|
192
192
|
const o = J(r, "white");
|
|
193
193
|
return (o == null ? void 0 : o.toDataURL("image/jpeg", 0.7)) ?? null;
|
|
@@ -199,7 +199,7 @@ async function ot(e, t) {
|
|
|
199
199
|
const o = r.map((u) => ({
|
|
200
200
|
...u,
|
|
201
201
|
penColor: "black"
|
|
202
|
-
})), i =
|
|
202
|
+
})), i = V(M * 20, M, Math.max(window.devicePixelRatio || 1, 1));
|
|
203
203
|
new he(i).fromData(o);
|
|
204
204
|
const c = J(i);
|
|
205
205
|
return c ? de(c, void 0, M, "white").toDataURL("image/jpeg", 0.7) : null;
|
|
@@ -216,7 +216,7 @@ async function st(e, t) {
|
|
|
216
216
|
return rt(a, "signature");
|
|
217
217
|
}
|
|
218
218
|
const it = ({ value: e, onChange: t, target: a }) => {
|
|
219
|
-
const [n, r] = K(e), { isRTL: o } = Be(), i =
|
|
219
|
+
const [n, r] = K(e), { isRTL: o } = Be(), i = qe(a), { setFormStatus: l } = ge(), c = W();
|
|
220
220
|
Q(() => {
|
|
221
221
|
e === ce && r(ce);
|
|
222
222
|
}, [
|
|
@@ -239,7 +239,7 @@ const it = ({ value: e, onChange: t, target: a }) => {
|
|
|
239
239
|
}
|
|
240
240
|
c.current = null;
|
|
241
241
|
} finally {
|
|
242
|
-
l(a,
|
|
242
|
+
l(a, G.READY);
|
|
243
243
|
}
|
|
244
244
|
}, [
|
|
245
245
|
l,
|
|
@@ -255,7 +255,7 @@ const it = ({ value: e, onChange: t, target: a }) => {
|
|
|
255
255
|
};
|
|
256
256
|
E ? (c.current && (clearTimeout(c.current), c.current = null), r([
|
|
257
257
|
E
|
|
258
|
-
]), p(E)) : (t == null || t(null), r(void 0), l(a,
|
|
258
|
+
]), p(E)) : (t == null || t(null), r(void 0), l(a, G.READY));
|
|
259
259
|
}, [
|
|
260
260
|
m,
|
|
261
261
|
t,
|
|
@@ -283,13 +283,13 @@ const it = ({ value: e, onChange: t, target: a }) => {
|
|
|
283
283
|
return b.UPLOAD;
|
|
284
284
|
}
|
|
285
285
|
}), { setFormStatus: d } = ge(), u = I(() => {
|
|
286
|
-
r(), d(e,
|
|
286
|
+
r(), d(e, G.BUSY);
|
|
287
287
|
}, [
|
|
288
288
|
r,
|
|
289
289
|
d,
|
|
290
290
|
e
|
|
291
291
|
]), f = I(() => {
|
|
292
|
-
r(), n(null), d(e,
|
|
292
|
+
r(), n(null), d(e, G.READY);
|
|
293
293
|
}, [
|
|
294
294
|
r,
|
|
295
295
|
n,
|
|
@@ -348,12 +348,12 @@ const dt = (e) => {
|
|
|
348
348
|
renderInput: () => r,
|
|
349
349
|
renderDescription: () => /* @__PURE__ */ s.createElement(s.Fragment, null, i, o)
|
|
350
350
|
});
|
|
351
|
-
},
|
|
351
|
+
}, X = ({ children: e }) => {
|
|
352
352
|
const { value: t, onChange: a, target: n, readOnly: r } = A(), { signatureMode: o, setSignatureMode: i, handleClear: l, clearable: c, signatureView: d, signatureValueForView: u, handleChange: f, handleBeforeChange: m } = lt({
|
|
353
353
|
target: n,
|
|
354
354
|
value: t,
|
|
355
355
|
onChange: a
|
|
356
|
-
}), h = T(e,
|
|
356
|
+
}), h = T(e, X.Header), E = T(e, X.Value), p = {
|
|
357
357
|
signatureMode: o,
|
|
358
358
|
setSignatureMode: i,
|
|
359
359
|
handleClear: l,
|
|
@@ -364,8 +364,8 @@ const dt = (e) => {
|
|
|
364
364
|
handleBeforeChange: m
|
|
365
365
|
};
|
|
366
366
|
return /* @__PURE__ */ s.createElement(s.Fragment, null, !r && F(h, p), F(E, p));
|
|
367
|
-
},
|
|
368
|
-
const { signatureMode: n, setSignatureMode: r, clearable: o, handleClear: i } = a, { uploadEnabled: l } = A(), c = T(e,
|
|
367
|
+
}, Z = ({ children: e, className: t, ...a }) => {
|
|
368
|
+
const { signatureMode: n, setSignatureMode: r, clearable: o, handleClear: i } = a, { uploadEnabled: l } = A(), c = T(e, Z.Tabs), d = T(e, Z.Clear);
|
|
369
369
|
return /* @__PURE__ */ s.createElement("div", {
|
|
370
370
|
className: t
|
|
371
371
|
}, F(c, {
|
|
@@ -480,7 +480,7 @@ const dt = (e) => {
|
|
|
480
480
|
return "";
|
|
481
481
|
const D = (k = p.current) == null ? void 0 : k.toData();
|
|
482
482
|
return D ? et(D) : (($ = p.current) == null ? void 0 : $.toDataURL()) ?? "";
|
|
483
|
-
}, []),
|
|
483
|
+
}, []), q = I(() => {
|
|
484
484
|
var O;
|
|
485
485
|
const D = (O = p.current) == null ? void 0 : O.isEmpty();
|
|
486
486
|
Y(!D), o(ee(oe()));
|
|
@@ -502,16 +502,16 @@ const dt = (e) => {
|
|
|
502
502
|
le && (p.current.fromData(le), Y(!0));
|
|
503
503
|
} else
|
|
504
504
|
p.current.clear(), Y(!1);
|
|
505
|
-
p.current.addEventListener("beginStroke", j), p.current.addEventListener("endStroke",
|
|
505
|
+
p.current.addEventListener("beginStroke", j), p.current.addEventListener("endStroke", q), typeof ResizeObserver < "u" && !y.current && (y.current = new ResizeObserver(() => {
|
|
506
506
|
L.current && me(L.current, p == null ? void 0 : p.current);
|
|
507
507
|
})), (k = y.current) == null || k.observe(D);
|
|
508
508
|
} else
|
|
509
|
-
($ = y.current) == null || $.disconnect(), (se = p.current) == null || se.removeEventListener("endStroke",
|
|
509
|
+
($ = y.current) == null || $.disconnect(), (se = p.current) == null || se.removeEventListener("endStroke", q), (ie = p.current) == null || ie.removeEventListener("beginStroke", j);
|
|
510
510
|
}, [
|
|
511
511
|
R,
|
|
512
512
|
x,
|
|
513
513
|
j,
|
|
514
|
-
|
|
514
|
+
q
|
|
515
515
|
]);
|
|
516
516
|
return Q(() => {
|
|
517
517
|
p.current && (c || l ? p.current.off() : p.current.on());
|
|
@@ -632,7 +632,7 @@ const dt = (e) => {
|
|
|
632
632
|
"data-hook": "signature-image"
|
|
633
633
|
}, r.displayName || a)));
|
|
634
634
|
}, yt = ({ children: e, className: t, ...a }) => {
|
|
635
|
-
const { fileInputRef: n, disabled: r, readOnly: o, onBlur: i, onFocus: l } = a, { inputId: c, ariaDescribedBy: d, labelId: u } = H(), f =
|
|
635
|
+
const { fileInputRef: n, disabled: r, readOnly: o, onBlur: i, onFocus: l } = a, { inputId: c, ariaDescribedBy: d, labelId: u } = H(), f = Ge(), m = I(() => {
|
|
636
636
|
var h;
|
|
637
637
|
(h = n.current) == null || h.click();
|
|
638
638
|
}, [
|
|
@@ -653,13 +653,13 @@ const dt = (e) => {
|
|
|
653
653
|
}, e));
|
|
654
654
|
};
|
|
655
655
|
g.Label = Ye;
|
|
656
|
-
g.Input =
|
|
656
|
+
g.Input = X;
|
|
657
657
|
g.Description = We;
|
|
658
658
|
g.Error = He;
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
659
|
+
X.Header = Z;
|
|
660
|
+
X.Value = P;
|
|
661
|
+
Z.Tabs = _;
|
|
662
|
+
Z.Clear = gt;
|
|
663
663
|
_.Draw = pt;
|
|
664
664
|
_.Type = ft;
|
|
665
665
|
_.Upload = ht;
|
|
@@ -740,9 +740,9 @@ const Tt = () => {
|
|
|
740
740
|
}), Ot = () => {
|
|
741
741
|
const e = Tt();
|
|
742
742
|
return /* @__PURE__ */ s.createElement(g, null, /* @__PURE__ */ s.createElement(g.Label, {
|
|
743
|
-
className: v(ue,
|
|
743
|
+
className: v(ue, z.label)
|
|
744
744
|
}, /* @__PURE__ */ s.createElement(g.Label.Required, {
|
|
745
|
-
className: v(
|
|
745
|
+
className: v(ze, z.requiredMark)
|
|
746
746
|
})), /* @__PURE__ */ s.createElement(g.Input, null, /* @__PURE__ */ s.createElement(g.Input.Header, {
|
|
747
747
|
className: C.header
|
|
748
748
|
}, /* @__PURE__ */ s.createElement(g.Input.Header.Tabs, {
|
|
@@ -783,11 +783,11 @@ const Tt = () => {
|
|
|
783
783
|
className: v(B, C.uploadBox),
|
|
784
784
|
imageAlt: e.imageAlt
|
|
785
785
|
}, /* @__PURE__ */ s.createElement(g.Input.Value.Upload.Button, {
|
|
786
|
-
className: v(
|
|
786
|
+
className: v(Ve, z.uploadButton)
|
|
787
787
|
}, e.uploadLabel)))), /* @__PURE__ */ s.createElement(g.Error, {
|
|
788
|
-
className: v(
|
|
788
|
+
className: v(Xe, z.error)
|
|
789
789
|
}, /* @__PURE__ */ s.createElement($e, null), /* @__PURE__ */ s.createElement(g.Error.Text, null)), /* @__PURE__ */ s.createElement(g.Description, {
|
|
790
|
-
className: v(
|
|
790
|
+
className: v(Ze, z.description)
|
|
791
791
|
}, Ut));
|
|
792
792
|
}, Jt = () => /* @__PURE__ */ s.createElement(Ot, null);
|
|
793
793
|
export {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import t from "react";
|
|
2
2
|
import l from "classnames";
|
|
3
|
-
import {
|
|
4
|
-
import { ProgressBar as
|
|
3
|
+
import { ai as c } from "./form-9yjqDnxY.js";
|
|
4
|
+
import { ProgressBar as N, Button as S } from "react-aria-components";
|
|
5
5
|
import { f as i } from "./find-child-C60k4CxG.js";
|
|
6
|
-
import {
|
|
6
|
+
import { Z as d, Y as g, $ as f } from "./form-element-classes-KRzHUNLu.js";
|
|
7
7
|
function x(e) {
|
|
8
8
|
const s = "calc(50% - 2px)";
|
|
9
|
-
return /* @__PURE__ */ t.createElement(
|
|
9
|
+
return /* @__PURE__ */ t.createElement(N, {
|
|
10
10
|
...e,
|
|
11
11
|
isIndeterminate: !0
|
|
12
12
|
}, ({ percentage: o, isIndeterminate: a }) => /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("svg", {
|
|
@@ -62,14 +62,14 @@ const u = ({ children: e }) => {
|
|
|
62
62
|
onPress: s
|
|
63
63
|
}, o) : null;
|
|
64
64
|
}, B = ({ className: e, children: n }) => {
|
|
65
|
-
const { showSubmitButton: s, onSubmitClick: o, submitText: a, isDisabled:
|
|
65
|
+
const { showSubmitButton: s, onSubmitClick: o, submitText: a, isDisabled: v, isInProgress: p } = c();
|
|
66
66
|
if (!s)
|
|
67
67
|
return null;
|
|
68
68
|
const _ = i(n, B.Loader);
|
|
69
69
|
return /* @__PURE__ */ t.createElement(S, {
|
|
70
70
|
className: e,
|
|
71
71
|
onPress: o,
|
|
72
|
-
isDisabled:
|
|
72
|
+
isDisabled: v || p,
|
|
73
73
|
"data-in-progress": p
|
|
74
74
|
}, p && _ ? _ : a);
|
|
75
75
|
}, C = ({ className: e }) => /* @__PURE__ */ t.createElement("span", {
|
|
@@ -98,9 +98,9 @@ const h = "_navigationContainer_1yuje_1", y = "_rowSpacing_1yuje_6", P = "_navig
|
|
|
98
98
|
[r.rowSpacing]: n
|
|
99
99
|
})
|
|
100
100
|
}, /* @__PURE__ */ t.createElement(u.SubmitButton.PreviousButton, {
|
|
101
|
-
className: l(
|
|
101
|
+
className: l(d, r.navigationButton, r.previousButton)
|
|
102
102
|
}), /* @__PURE__ */ t.createElement(u.SubmitButton.NextButton, {
|
|
103
|
-
className: l(
|
|
103
|
+
className: l(g, r.navigationButton, r.nextButton)
|
|
104
104
|
}), /* @__PURE__ */ t.createElement(u.SubmitButton.SubmitButton, {
|
|
105
105
|
className: l(f, r.button, {
|
|
106
106
|
[r.buttonNoSteps]: !e,
|
|
@@ -1,75 +1,75 @@
|
|
|
1
|
-
import { RicosViewer as
|
|
1
|
+
import { RicosViewer as j } from "@wix/ricos/viewer";
|
|
2
2
|
import _ from "classnames";
|
|
3
|
-
import e, { useMemo as F, useState as
|
|
4
|
-
import { CheckboxGroup as
|
|
5
|
-
import {
|
|
6
|
-
import { f, a as
|
|
7
|
-
import { E as x, D as B } from "./field-error-headless-
|
|
8
|
-
import { L as P } from "./field-label-headless-
|
|
3
|
+
import e, { useMemo as F, useState as J, useRef as M, useLayoutEffect as Q, useCallback as k } from "react";
|
|
4
|
+
import { CheckboxGroup as w, TextField as z, Input as K, CheckboxField as X, CheckboxButton as Y } from "react-aria-components";
|
|
5
|
+
import { ai as y, af as Z, as as v, ab as ee, ak as te } from "./form-9yjqDnxY.js";
|
|
6
|
+
import { f, a as q } from "./find-child-C60k4CxG.js";
|
|
7
|
+
import { E as x, D as B } from "./field-error-headless-DrnFrGun.js";
|
|
8
|
+
import { L as P } from "./field-label-headless-BIYf1BIh.js";
|
|
9
9
|
import { F as ae } from "./fieldset-headless-CD3fds9J.js";
|
|
10
10
|
import { N as D } from "./options-layout-constants-DEfIEJWD.js";
|
|
11
11
|
import { E as ne } from "./error-icon-hZxQ6DEy.js";
|
|
12
|
-
import { s as S } from "./field-rac.module-
|
|
13
|
-
import {
|
|
12
|
+
import { s as S } from "./field-rac.module-CWkwwhq4.js";
|
|
13
|
+
import { t as oe, J as re, U as se, V as le, W as ie, s as ce, n as ue, j as de } from "./form-element-classes-KRzHUNLu.js";
|
|
14
14
|
import { o as me } from "./options-rac.module-KM-VT_KY.js";
|
|
15
15
|
const g = "Other", pe = (t, a) => {
|
|
16
16
|
const c = a.length + 2;
|
|
17
|
-
return (t.find((
|
|
18
|
-
}, he = (t) => t.map((a) => a.value ?? a.label),
|
|
17
|
+
return (t.find((o) => o.startsWith(`${a}: `)) || "").slice(c);
|
|
18
|
+
}, he = (t) => t.map((a) => a.value ?? a.label), W = ({ className: t, ...a }) => {
|
|
19
19
|
const { label: l } = a;
|
|
20
20
|
return /* @__PURE__ */ e.createElement("span", {
|
|
21
21
|
className: t
|
|
22
22
|
}, l);
|
|
23
|
-
},
|
|
24
|
-
const { value: a, onChange: l, addOtherLabel: c, addOtherPlaceholder: i, otherInputCharacterLimit:
|
|
23
|
+
}, $ = ({ className: t }) => {
|
|
24
|
+
const { value: a, onChange: l, addOtherLabel: c, addOtherPlaceholder: i, otherInputCharacterLimit: o, disabled: u, readOnly: b, hasError: d } = y(), { t: m } = v(), r = c || m("add-other.default-other-option-label") || g, p = F(() => pe(a || [], r), [
|
|
25
25
|
a,
|
|
26
|
-
|
|
27
|
-
]), [n, L] =
|
|
28
|
-
|
|
26
|
+
r
|
|
27
|
+
]), [n, L] = J(p), h = M(l);
|
|
28
|
+
Q(() => {
|
|
29
29
|
h.current = l;
|
|
30
30
|
});
|
|
31
|
-
const I =
|
|
31
|
+
const I = k((E) => {
|
|
32
32
|
L(E);
|
|
33
|
-
const C = (a || []).filter((O) => !O.startsWith(`${
|
|
33
|
+
const C = (a || []).filter((O) => !O.startsWith(`${r}:`) && O !== r), R = E ? `${r}: ${E}` : r;
|
|
34
34
|
h.current([
|
|
35
35
|
...C,
|
|
36
36
|
R
|
|
37
37
|
]);
|
|
38
38
|
}, [
|
|
39
39
|
a,
|
|
40
|
-
|
|
40
|
+
r
|
|
41
41
|
]);
|
|
42
|
-
return /* @__PURE__ */ e.createElement(
|
|
42
|
+
return /* @__PURE__ */ e.createElement(z, {
|
|
43
43
|
value: n,
|
|
44
44
|
onChange: I,
|
|
45
45
|
isDisabled: u,
|
|
46
46
|
isReadOnly: b,
|
|
47
47
|
isInvalid: d,
|
|
48
|
-
"aria-label":
|
|
48
|
+
"aria-label": r
|
|
49
49
|
}, /* @__PURE__ */ e.createElement(K, {
|
|
50
50
|
"data-hook": "tags-other-input",
|
|
51
51
|
"data-filled": n ? !0 : void 0,
|
|
52
52
|
placeholder: i,
|
|
53
|
-
maxLength:
|
|
53
|
+
maxLength: o,
|
|
54
54
|
className: t
|
|
55
55
|
}));
|
|
56
|
-
},
|
|
57
|
-
const { value: c, label: i, isOther:
|
|
56
|
+
}, T = ({ children: t, className: a, ...l }) => {
|
|
57
|
+
const { value: c, label: i, isOther: o, isFirstOption: u } = l, { id: b, value: d, onChange: m, options: r, disabled: p, readOnly: n, hasError: L } = y(), h = M(null);
|
|
58
58
|
te(() => {
|
|
59
59
|
var O;
|
|
60
60
|
u && ((O = h.current) == null || O.focus({
|
|
61
61
|
preventScroll: !0
|
|
62
62
|
}));
|
|
63
63
|
}, b);
|
|
64
|
-
const I = f(t,
|
|
64
|
+
const I = f(t, W), E = F(() => d || [], [
|
|
65
65
|
d
|
|
66
|
-
]), C = F(() =>
|
|
67
|
-
|
|
66
|
+
]), C = F(() => o ? E.find((O) => O === i || O.startsWith(`${i}: `)) || i : c, [
|
|
67
|
+
o,
|
|
68
68
|
E,
|
|
69
69
|
i,
|
|
70
70
|
c
|
|
71
|
-
]), R =
|
|
72
|
-
const G = he(
|
|
71
|
+
]), R = k((O) => {
|
|
72
|
+
const G = he(r || []), V = E.filter((H) => G.includes(H));
|
|
73
73
|
m(O ? [
|
|
74
74
|
...V,
|
|
75
75
|
i
|
|
@@ -77,27 +77,27 @@ const g = "Other", pe = (t, a) => {
|
|
|
77
77
|
}, [
|
|
78
78
|
i,
|
|
79
79
|
m,
|
|
80
|
-
|
|
80
|
+
r,
|
|
81
81
|
E
|
|
82
82
|
]);
|
|
83
83
|
return /* @__PURE__ */ e.createElement(X, {
|
|
84
84
|
inputRef: h,
|
|
85
85
|
value: C,
|
|
86
|
-
onChange:
|
|
86
|
+
onChange: o ? R : void 0,
|
|
87
87
|
isDisabled: p,
|
|
88
88
|
isReadOnly: n,
|
|
89
89
|
isInvalid: L
|
|
90
90
|
}, /* @__PURE__ */ e.createElement(Y, {
|
|
91
91
|
className: a,
|
|
92
|
-
"data-hook": `tags-${
|
|
93
|
-
},
|
|
92
|
+
"data-hook": `tags-${o ? g : c}`
|
|
93
|
+
}, q(I, {
|
|
94
94
|
value: c,
|
|
95
95
|
label: i,
|
|
96
|
-
isOther:
|
|
96
|
+
isOther: o,
|
|
97
97
|
isFirstOption: u
|
|
98
98
|
})));
|
|
99
99
|
}, A = ({ children: t, className: a }) => {
|
|
100
|
-
const { options: l, addOther: c, addOtherLabel: i, numberOfColumns:
|
|
100
|
+
const { options: l, addOther: c, addOtherLabel: i, numberOfColumns: o = D.FREE_FLOW } = y(), { isMobile: u } = ee(), { t: b } = v(), d = u && o !== D.FREE_FLOW ? D.ONE : o, m = i || b("add-other.default-other-option-label") || g, r = f(t, T), p = F(() => {
|
|
101
101
|
const n = l || [];
|
|
102
102
|
return c ? [
|
|
103
103
|
...n,
|
|
@@ -117,7 +117,7 @@ const g = "Other", pe = (t, a) => {
|
|
|
117
117
|
"data-columns": d
|
|
118
118
|
}, p.map((n, L) => {
|
|
119
119
|
const h = n.value ?? n.label;
|
|
120
|
-
return
|
|
120
|
+
return q(r, {
|
|
121
121
|
key: n.isOther ? g : h,
|
|
122
122
|
value: h,
|
|
123
123
|
label: n.label,
|
|
@@ -126,7 +126,7 @@ const g = "Other", pe = (t, a) => {
|
|
|
126
126
|
});
|
|
127
127
|
}));
|
|
128
128
|
}, U = ({ children: t, className: a }) => {
|
|
129
|
-
const { addOther: l, addOtherLabel: c, hasError: i, readOnly:
|
|
129
|
+
const { addOther: l, addOtherLabel: c, hasError: i, readOnly: o, value: u } = y(), { t: b } = v(), d = c || b("add-other.default-other-option-label") || g, m = f(t, A), r = f(t, $), p = F(() => !l || !u ? !1 : u.some((n) => n === d || n.startsWith(`${d}:`)), [
|
|
130
130
|
l,
|
|
131
131
|
u,
|
|
132
132
|
d
|
|
@@ -134,10 +134,10 @@ const g = "Other", pe = (t, a) => {
|
|
|
134
134
|
return /* @__PURE__ */ e.createElement("div", {
|
|
135
135
|
className: a,
|
|
136
136
|
"data-invalid": i,
|
|
137
|
-
"data-readonly":
|
|
138
|
-
}, m, p &&
|
|
137
|
+
"data-readonly": o
|
|
138
|
+
}, m, p && r);
|
|
139
139
|
}, s = ({ children: t }) => {
|
|
140
|
-
const { id: a, value: l, onChange: c, FieldLayout: i, required:
|
|
140
|
+
const { id: a, value: l, onChange: c, FieldLayout: i, required: o, disabled: u, readOnly: b, hasError: d, onBlur: m, onFocus: r } = y(), { inputId: p, labelId: n, ariaDescribedBy: L } = Z(), h = F(() => l || [], [
|
|
141
141
|
l
|
|
142
142
|
]), I = f(t, P), E = f(t, U), C = f(t, B), R = f(t, x);
|
|
143
143
|
return /* @__PURE__ */ e.createElement(i, {
|
|
@@ -147,40 +147,40 @@ const g = "Other", pe = (t, a) => {
|
|
|
147
147
|
id: p,
|
|
148
148
|
ariaLabelledBy: n,
|
|
149
149
|
ariaDescribedBy: L,
|
|
150
|
-
required:
|
|
150
|
+
required: o,
|
|
151
151
|
onBlur: m,
|
|
152
|
-
onFocus:
|
|
153
|
-
}, /* @__PURE__ */ e.createElement(
|
|
152
|
+
onFocus: r
|
|
153
|
+
}, /* @__PURE__ */ e.createElement(w, {
|
|
154
154
|
"aria-labelledby": n,
|
|
155
155
|
value: h,
|
|
156
156
|
onChange: c,
|
|
157
157
|
isDisabled: u,
|
|
158
158
|
isReadOnly: b,
|
|
159
|
-
isRequired:
|
|
159
|
+
isRequired: o,
|
|
160
160
|
isInvalid: d
|
|
161
161
|
}, E)),
|
|
162
162
|
renderDescription: () => /* @__PURE__ */ e.createElement(e.Fragment, null, R, C)
|
|
163
163
|
});
|
|
164
164
|
};
|
|
165
|
-
A.Option =
|
|
166
|
-
|
|
165
|
+
A.Option = T;
|
|
166
|
+
T.Label = W;
|
|
167
167
|
s.Label = P;
|
|
168
168
|
s.Control = U;
|
|
169
169
|
s.Options = A;
|
|
170
|
-
s.OtherInput =
|
|
170
|
+
s.OtherInput = $;
|
|
171
171
|
s.Description = B;
|
|
172
172
|
s.Error = x;
|
|
173
173
|
const Ee = "_control_lyoqm_1", Oe = "_options_lyoqm_7", be = "_option_lyoqm_7", N = {
|
|
174
174
|
control: Ee,
|
|
175
175
|
options: Oe,
|
|
176
176
|
option: be
|
|
177
|
-
}, fe = ({ content: t, locale: a }) => /* @__PURE__ */ e.createElement(
|
|
177
|
+
}, fe = ({ content: t, locale: a }) => /* @__PURE__ */ e.createElement(j, {
|
|
178
178
|
content: t,
|
|
179
179
|
locale: a
|
|
180
180
|
}), Ve = () => /* @__PURE__ */ e.createElement(s, null, /* @__PURE__ */ e.createElement(s.Label, {
|
|
181
|
-
className: _(
|
|
181
|
+
className: _(oe, S.label)
|
|
182
182
|
}, /* @__PURE__ */ e.createElement(s.Label.Required, {
|
|
183
|
-
className: _(
|
|
183
|
+
className: _(re, S.requiredMark)
|
|
184
184
|
})), /* @__PURE__ */ e.createElement(s.Control, {
|
|
185
185
|
className: N.control
|
|
186
186
|
}, /* @__PURE__ */ e.createElement(s.Options, {
|
|
@@ -2,20 +2,20 @@ import { RicosViewer as S } from "@wix/ricos/viewer";
|
|
|
2
2
|
import n from "classnames";
|
|
3
3
|
import r, { useCallback as O, useRef as T } from "react";
|
|
4
4
|
import { TextField as N, TextArea as y } from "react-aria-components";
|
|
5
|
-
import {
|
|
5
|
+
import { ai as E, af as d, ak as x } from "./form-9yjqDnxY.js";
|
|
6
6
|
import { f as c } from "./find-child-C60k4CxG.js";
|
|
7
|
-
import { D as
|
|
8
|
-
import { L as
|
|
9
|
-
import { E as
|
|
10
|
-
import { s } from "./field-rac.module-
|
|
11
|
-
import {
|
|
7
|
+
import { D as h, E as M } from "./field-error-headless-DrnFrGun.js";
|
|
8
|
+
import { L as g } from "./field-label-headless-BIYf1BIh.js";
|
|
9
|
+
import { E as v } from "./error-icon-hZxQ6DEy.js";
|
|
10
|
+
import { s } from "./field-rac.module-CWkwwhq4.js";
|
|
11
|
+
import { t as q, J as B, s as k, n as P, j as U } from "./form-element-classes-KRzHUNLu.js";
|
|
12
12
|
const e = ({ children: t }) => {
|
|
13
|
-
const { id: a, value: m, onChange: l, disabled: u, required: o, readOnly: i, onBlur: p, onFocus:
|
|
13
|
+
const { id: a, value: m, onChange: l, disabled: u, required: o, readOnly: i, onBlur: p, onFocus: f, FieldLayout: I, hasError: F } = E(), { labelId: L } = d(), R = O((C) => {
|
|
14
14
|
l(C);
|
|
15
15
|
}, [
|
|
16
16
|
l
|
|
17
17
|
]), _ = c(t, e.Label), b = c(t, e.Input), D = c(t, e.Description), A = c(t, e.Error);
|
|
18
|
-
return /* @__PURE__ */ r.createElement(
|
|
18
|
+
return /* @__PURE__ */ r.createElement(I, {
|
|
19
19
|
fieldId: a,
|
|
20
20
|
renderLabel: () => _,
|
|
21
21
|
renderInput: () => /* @__PURE__ */ r.createElement(N, {
|
|
@@ -27,13 +27,13 @@ const e = ({ children: t }) => {
|
|
|
27
27
|
isRequired: o,
|
|
28
28
|
isInvalid: F,
|
|
29
29
|
onBlur: p,
|
|
30
|
-
onFocus:
|
|
30
|
+
onFocus: f
|
|
31
31
|
}, b),
|
|
32
32
|
renderDescription: () => /* @__PURE__ */ r.createElement(r.Fragment, null, A, D)
|
|
33
33
|
});
|
|
34
34
|
}, V = ({ className: t }) => {
|
|
35
|
-
const { inputId: a, ariaDescribedBy: m } =
|
|
36
|
-
return
|
|
35
|
+
const { inputId: a, ariaDescribedBy: m } = d(), { id: l, placeholder: u } = E(), o = T(null);
|
|
36
|
+
return x(() => {
|
|
37
37
|
var i;
|
|
38
38
|
(i = o.current) == null || i.focus();
|
|
39
39
|
}, l), /* @__PURE__ */ r.createElement(y, {
|
|
@@ -44,26 +44,26 @@ const e = ({ children: t }) => {
|
|
|
44
44
|
className: t
|
|
45
45
|
});
|
|
46
46
|
};
|
|
47
|
-
e.Label =
|
|
47
|
+
e.Label = g;
|
|
48
48
|
e.Input = V;
|
|
49
|
-
e.Description =
|
|
50
|
-
e.Error =
|
|
51
|
-
const
|
|
52
|
-
input:
|
|
53
|
-
},
|
|
49
|
+
e.Description = h;
|
|
50
|
+
e.Error = M;
|
|
51
|
+
const j = "_input_ug5v8_1", w = {
|
|
52
|
+
input: j
|
|
53
|
+
}, J = ({ content: t, locale: a }) => /* @__PURE__ */ r.createElement(S, {
|
|
54
54
|
content: t,
|
|
55
55
|
locale: a
|
|
56
56
|
}), re = () => /* @__PURE__ */ r.createElement(e, null, /* @__PURE__ */ r.createElement(e.Label, {
|
|
57
|
-
className: n(
|
|
57
|
+
className: n(q, s.label)
|
|
58
58
|
}, /* @__PURE__ */ r.createElement(e.Label.Required, {
|
|
59
59
|
className: n(B, s.requiredMark)
|
|
60
60
|
})), /* @__PURE__ */ r.createElement(e.Input, {
|
|
61
|
-
className: n(
|
|
61
|
+
className: n(k, s.input, w.input)
|
|
62
62
|
}), /* @__PURE__ */ r.createElement(e.Error, {
|
|
63
|
-
className: n(
|
|
64
|
-
}, /* @__PURE__ */ r.createElement(
|
|
63
|
+
className: n(P, s.error)
|
|
64
|
+
}, /* @__PURE__ */ r.createElement(v, null), /* @__PURE__ */ r.createElement(e.Error.Text, null)), /* @__PURE__ */ r.createElement(e.Description, {
|
|
65
65
|
className: n(U, s.description)
|
|
66
|
-
},
|
|
66
|
+
}, J));
|
|
67
67
|
export {
|
|
68
68
|
re as T
|
|
69
69
|
};
|
package/dist/component/{text-input-field-rac-wYvY_eBR.js → text-input-field-rac-onGUXC9J.js}
RENAMED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { RicosViewer as m } from "@wix/ricos/viewer";
|
|
2
2
|
import t from "classnames";
|
|
3
3
|
import e from "react";
|
|
4
|
-
import { T as r } from "./text-input-headless-
|
|
4
|
+
import { T as r } from "./text-input-headless-Bs9m7QFg.js";
|
|
5
5
|
import { E as o } from "./error-icon-hZxQ6DEy.js";
|
|
6
|
-
import { s as a } from "./field-rac.module-
|
|
7
|
-
import {
|
|
8
|
-
const _ = ({ content:
|
|
9
|
-
content:
|
|
10
|
-
locale:
|
|
6
|
+
import { s as a } from "./field-rac.module-CWkwwhq4.js";
|
|
7
|
+
import { t as n, J as c, s as E, n as i, j as R } from "./form-element-classes-KRzHUNLu.js";
|
|
8
|
+
const _ = ({ content: s, locale: l }) => /* @__PURE__ */ e.createElement(m, {
|
|
9
|
+
content: s,
|
|
10
|
+
locale: l
|
|
11
11
|
}), N = () => /* @__PURE__ */ e.createElement(r, null, /* @__PURE__ */ e.createElement(r.Label, {
|
|
12
12
|
className: t(n, a.label)
|
|
13
13
|
}, /* @__PURE__ */ e.createElement(r.Label.Required, {
|