@wix/form-elements 1.77.0 → 1.79.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-BQsFMmBg.js → appointment-rac-lokvpd_p.js} +48 -48
- package/dist/component/{bookings-address-rac-AJNyTdok.js → bookings-address-rac-CU5NjBsy.js} +1 -1
- package/dist/component/{bookings-email-rac-BHZ0MFgI.js → bookings-email-rac-h3VGXrSQ.js} +1 -1
- package/dist/component/{bookings-first-name-rac-Bw5FuWNX.js → bookings-first-name-rac-BtsTk_1b.js} +1 -1
- package/dist/component/{bookings-header-rac-C1M2Pg1f.js → bookings-header-rac-BApE1hIE.js} +1 -1
- package/dist/component/{bookings-last-name-rac-DKkPY0CO.js → bookings-last-name-rac-BnO5iij1.js} +1 -1
- package/dist/component/{bookings-login-bar-rac-P6pziSl1.js → bookings-login-bar-rac-BT1npKru.js} +2 -2
- package/dist/component/{bookings-phone-rac-CiOZWKHz.js → bookings-phone-rac-DWf0haGa.js} +1 -1
- package/dist/component/{bookings-rich-text-rac-D9ZComtY.js → bookings-rich-text-rac-C79XHlRL.js} +1 -1
- package/dist/component/{checkbox-field-rac-4zG3Sf1c.js → checkbox-field-rac-DNvhTChN.js} +90 -89
- package/dist/component/{checkbox-group-field-headless-DN2aNw9g.js → checkbox-group-field-headless-6hzWQkif.js} +53 -53
- package/dist/component/{checkbox-group-field-rac-B1qhet83.js → checkbox-group-field-rac-DbaB5Fx6.js} +5 -5
- package/dist/component/{checkbox-group-rac-DGsE7xGu.js → checkbox-group-rac-BsKKhTeh.js} +1 -1
- package/dist/component/checkbox-indicator-module-classes-DqzGZQRQ.js +9 -0
- package/dist/component/{checkbox-rac-CFWQW9_K.js → checkbox-rac-Dx7LXOdw.js} +1 -1
- package/dist/component/{contacts-address-rac-G5ZH3Odo.js → contacts-address-rac-DJZ8_DKm.js} +1 -1
- package/dist/component/{contacts-birthdate-rac-C7TDUfT0.js → contacts-birthdate-rac-CWvsa7Kq.js} +1 -1
- package/dist/component/{contacts-company-rac-8queUhWT.js → contacts-company-rac-DgF8QpOb.js} +1 -1
- package/dist/component/{contacts-email-rac-CYOs5N_I.js → contacts-email-rac-CVqiij34.js} +1 -1
- package/dist/component/{contacts-first-name-rac-D8Goc_Ym.js → contacts-first-name-rac-BwsRVRHq.js} +1 -1
- package/dist/component/{contacts-last-name-rac-lBmtuEnr.js → contacts-last-name-rac-Blgm2DBB.js} +1 -1
- package/dist/component/{contacts-phone-rac-DSUWUNBX.js → contacts-phone-rac-Dhtv3PGY.js} +1 -1
- package/dist/component/{contacts-position-rac-wA-aw5Id.js → contacts-position-rac-DYebFQea.js} +1 -1
- package/dist/component/contacts-subscribe-rac-B_cvGaYj.js +13 -0
- package/dist/component/{contacts-tax-id-rac-BpjVM1Ye.js → contacts-tax-id-rac-B_F4I7rf.js} +1 -1
- package/dist/component/{date-availability-CeiMjrtD.js → date-availability-Cc4kd1Yk.js} +1 -1
- package/dist/component/{date-input-field-rac-CVaajAFM.js → date-input-field-rac-C__QbeDM.js} +9 -9
- package/dist/component/{date-input-rac-DhEzawuM.js → date-input-rac-BhzbmHYK.js} +1 -1
- package/dist/component/{date-picker-field-rac-1Q6yyNmK.js → date-picker-field-rac-CASH891N.js} +9 -9
- package/dist/component/{date-picker-rac-BCGtmXMJ.js → date-picker-rac-CMYAA925.js} +1 -1
- package/dist/component/{date-time-input-field-rac-Dd-HNgKP.js → date-time-input-field-rac-DPuxZ68o.js} +16 -16
- package/dist/component/{date-time-input-rac-CsCWEsH5.js → date-time-input-rac-BTJhrUXG.js} +1 -1
- package/dist/component/{dext-checkbox-group-rac-CauN5uuV.js → dext-checkbox-group-rac-5zlp2x1M.js} +2 -2
- package/dist/component/{dext-checkbox-rac-q-g9gDnw.js → dext-checkbox-rac-Cn5u395b.js} +1 -1
- package/dist/component/{dext-date-picker-rac-CZT3dTLv.js → dext-date-picker-rac-CFfQwbC_.js} +1 -1
- package/dist/component/{dext-date-time-input-rac-DVUoZZbX.js → dext-date-time-input-rac-zRYi-0W6.js} +1 -1
- package/dist/component/{dext-dropdown-rac-GRltutt5.js → dext-dropdown-rac-CtlNh5vF.js} +1 -1
- package/dist/component/{dext-email-rac-74Y8S9GA.js → dext-email-rac-BQF4M5Mf.js} +1 -1
- package/dist/component/{dext-number-input-rac-CF9d_GTl.js → dext-number-input-rac-GR4vTWMp.js} +1 -1
- package/dist/component/{dext-phone-rac-DObx_gOd.js → dext-phone-rac-COCdZPr9.js} +1 -1
- package/dist/component/{dext-radio-group-rac-CzU9KX5_.js → dext-radio-group-rac-ZpHitbT0.js} +2 -2
- package/dist/component/{dext-rating-input-rac-BjRwwgXr.js → dext-rating-input-rac-Er2HC9eD.js} +1 -1
- package/dist/component/{dext-tags-rac-Vif4x1yF.js → dext-tags-rac-EciVMPQ0.js} +2 -2
- package/dist/component/{dext-text-area-rac-DmZwl_ax.js → dext-text-area-rac-D6JxrykV.js} +1 -1
- package/dist/component/{dext-text-input-rac-B6FVbjUM.js → dext-text-input-rac-CD3xkLpw.js} +1 -1
- package/dist/component/{dext-url-input-rac-17Dj3ICM.js → dext-url-input-rac-BNqCYy-H.js} +1 -1
- package/dist/component/{donation-rac-bgHep0Xi.js → donation-rac-Du_qsPD6.js} +24 -24
- package/dist/component/{dropdown-field-headless-BGfJ1FyZ.js → dropdown-field-headless-NMc4cFx2.js} +3 -3
- package/dist/component/{dropdown-field-rac-DGiysJQY.js → dropdown-field-rac-hSbwxz3M.js} +3 -3
- package/dist/component/{dropdown-rac-FHjz8fKp.js → dropdown-rac-DY2QSx-Q.js} +1 -1
- package/dist/component/{ecom-address-rac-DSbpf4z8.js → ecom-address-rac-CGlQmW6l.js} +1 -1
- package/dist/component/{ecom-subscription-checkbox-rac-DiZWNwnt.js → ecom-subscription-checkbox-rac-K3Dx-Boa.js} +3 -3
- package/dist/component/{email-input-field-rac-BQKK2O7L.js → email-input-field-rac-DCKR6Yco.js} +48 -48
- package/dist/component/{events-repeater-rac-Dudnyhal.js → events-repeater-rac-DS2hIZ81.js} +61 -60
- package/dist/component/events-rsvp-rac-iSG0hWt3.js +45 -0
- package/dist/component/{field-error-headless-C5ZsFUKv.js → field-error-headless-Lb5aaoR3.js} +1 -1
- package/dist/component/{field-label-headless-CS5OYsiI.js → field-label-headless-C1VDQVhB.js} +1 -1
- package/dist/component/field-rac.module-ColNPUt0.js +23 -0
- package/dist/component/{file-upload-rac-bQ2QOO8Q.js → file-upload-rac-BEUXTVXa.js} +35 -35
- package/dist/component/{fixed-payment-rac-B6FvXoCU.js → fixed-payment-rac-BwrQJQ6w.js} +5 -5
- package/dist/component/{form-BpHElSwH.js → form-1k13yOes.js} +69 -69
- package/dist/component/form-element-classes-BuM-vthE.js +141 -0
- package/dist/component/form.css +1 -1
- package/dist/component/form.js +1 -1
- package/dist/component/{header-field-rac-D4UYcmok.js → header-field-rac-BeFf5qfw.js} +3 -3
- package/dist/component/{header-rac-KavPiBdn.js → header-rac-Cqvmjc8G.js} +1 -1
- package/dist/component/{image-choice-rac-BJQqBhBD.js → image-choice-rac-DU1Tf2-T.js} +9 -9
- package/dist/component/{index-Y8iTxLat.js → index-B0SdXZJm.js} +4 -4
- package/dist/component/{index-RSEYrQef.js → index-DhL-iYwY.js} +2 -2
- package/dist/component/{isObjectLike-jwHec4Ap.js → isObjectLike-DOWF1bjK.js} +1 -1
- package/dist/component/{multiline-address-field-rac-D4Ibno80.js → multiline-address-field-rac-CBhxL2MB.js} +38 -38
- package/dist/component/{multiline-address-rac-CrTSjzBN.js → multiline-address-rac-BgZnu3UR.js} +1 -1
- package/dist/component/{number-input-field-rac-DW1SjB-Z.js → number-input-field-rac-Cq0KLrSv.js} +8 -8
- package/dist/component/{number-input-rac-CdE_hRbA.js → number-input-rac-ovbP_aP5.js} +1 -1
- package/dist/component/{password-rac-BCxl5mMQ.js → password-rac-DLKw8FXz.js} +11 -11
- package/dist/component/{payment-input-rac-DmO4s4ue.js → payment-input-rac-EHufj8Y0.js} +11 -11
- package/dist/component/{phone-input-field-rac-BYAnwk5h.js → phone-input-field-rac-D1KzskYy.js} +27 -27
- package/dist/component/{phone-rac-gS4k9Yn8.js → phone-rac-D71sfMS7.js} +1 -1
- package/dist/component/{product-list-rac-CO0o3yOg.js → product-list-rac-BGrTM8kv.js} +23 -22
- package/dist/component/quiz-radio-group-rac-BU2GBlqo.js +13 -0
- package/dist/component/radio-button-module-classes-BqNsWvgU.js +132 -0
- package/dist/component/radio-group-field-rac-BSY-fyxl.js +47 -0
- package/dist/component/{radio-group-rac-B-9q91fJ.js → radio-group-rac-geRsORyh.js} +1 -1
- package/dist/component/rating-input-field-rac-D6gRUiSX.js +136 -0
- package/dist/component/{rating-input-rac-BVO62LmE.js → rating-input-rac-BMtu7e5q.js} +1 -1
- package/dist/component/{rich-content-rac.module-CdiaAjxG.js → rich-content-rac.module-CFMzPWHV.js} +1 -1
- package/dist/component/{rich-text-field-rac-C4RrbyEX.js → rich-text-field-rac-D0Klsdj7.js} +3 -3
- package/dist/component/{rich-text-rac-BG376ww9.js → rich-text-rac-o7idQY51.js} +1 -1
- package/dist/component/selection-indicator-XQ8MYHUQ.js +11 -0
- package/dist/component/{service-dropdown-rac-Dy6-OpVR.js → service-dropdown-rac-BXq358Pw.js} +12 -12
- package/dist/component/{services-multi-choice-rac-BKW9MP_b.js → services-multi-choice-rac-DVRk7Ayt.js} +13 -13
- package/dist/component/{signature-rac-Cxgixp4o.js → signature-rac-CblU7c_6.js} +36 -36
- package/dist/component/{submit-button-rac-BqPJ7WPI.js → submit-button-rac-DYz_oLbv.js} +2 -2
- package/dist/component/{tags-field-rac-wwqpztG7.js → tags-field-rac-D068ijAD.js} +16 -16
- package/dist/component/{tags-rac-DUxITYxU.js → tags-rac-yRjGACmm.js} +1 -1
- package/dist/component/{text-area-field-rac-Cen6O33S.js → text-area-field-rac-C4ytlqwT.js} +14 -14
- package/dist/component/{text-area-rac-CRlO56GA.js → text-area-rac-DkCdp41z.js} +1 -1
- package/dist/component/{text-input-field-rac-CbnKn03g.js → text-input-field-rac-TSY90sCu.js} +3 -3
- package/dist/component/{text-input-headless-C_NTJmLe.js → text-input-headless-D3b0XErK.js} +3 -3
- package/dist/component/{text-input-rac-DvwV7Igm.js → text-input-rac-CKiScYKV.js} +1 -1
- package/dist/component/{time-input-rac-TSEXiODs.js → time-input-rac-Cjs21F9f.js} +8 -8
- package/dist/component/{url-input-field-rac-Cxgh9T8s.js → url-input-field-rac-Bf5NoN4o.js} +15 -15
- package/dist/component/{url-input-rac-DNw-Jg1U.js → url-input-rac-DqgvJboS.js} +1 -1
- package/dist/component/{use-element-state-class-name-CC65g9mT.js → use-element-state-class-name-DkaI8J4Y.js} +1 -1
- package/dist/component/{use-service-options-base-EFrxTpGm.js → use-service-options-base-cL2N21mJ.js} +1 -1
- package/package.json +2 -2
- package/dist/component/checkbox-indicator-module-classes-BcScu147.js +0 -17
- package/dist/component/contacts-subscribe-rac-CAbBbFxZ.js +0 -13
- package/dist/component/events-rsvp-rac-008H5Ska.js +0 -38
- package/dist/component/field-rac.module-DjmaTYkc.js +0 -23
- package/dist/component/form-element-classes-BXNs5k3q.js +0 -119
- package/dist/component/quiz-radio-group-rac-Dhk7nkzb.js +0 -13
- package/dist/component/radio-group-field-rac-DdlyQ3m6.js +0 -40
- package/dist/component/radio-group-field-rac.module-emin6sSc.js +0 -124
- package/dist/component/rating-input-field-rac-VDaJKq-n.js +0 -126
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import s, { useRef as W, useCallback as I, useState as
|
|
1
|
+
import s, { useRef as W, useCallback as I, useState as K, useEffect as Q, useMemo as De, isValidElement as we } from "react";
|
|
2
2
|
import { RicosViewer as Re } from "@wix/ricos/viewer";
|
|
3
3
|
import v from "classnames";
|
|
4
4
|
import { useHover as ve, useFocusRing as xe, mergeProps as Se } from "react-aria";
|
|
5
|
-
import { RadioGroup as Fe, Button as fe, TextField as Ae, Input as
|
|
5
|
+
import { RadioGroup as Fe, Button as fe, TextField as Ae, Input as Pe, RadioField as _e, RadioButton as Ne } from "react-aria-components";
|
|
6
6
|
import he from "signature_pad";
|
|
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-
|
|
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-1k13yOes.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-Lb5aaoR3.js";
|
|
10
|
+
import { L as Ye } from "./field-label-headless-C1VDQVhB.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 z } from "./field-rac.module-
|
|
14
|
-
import { z as ue,
|
|
13
|
+
import { s as z } from "./field-rac.module-ColNPUt0.js";
|
|
14
|
+
import { z as ue, P as ze, y as B, a3 as Ve, p as Ze, i as Xe } from "./form-element-classes-BuM-vthE.js";
|
|
15
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;
|
|
@@ -54,14 +54,14 @@ const Je = (e, t) => {
|
|
|
54
54
|
const o = (r * t.width + n) * 4;
|
|
55
55
|
return t.data[o] * 65536 + t.data[o + 1] * 256 + t.data[o + 2] === a;
|
|
56
56
|
};
|
|
57
|
-
},
|
|
57
|
+
}, Ke = (e) => (t, a) => {
|
|
58
58
|
const n = (a * e.width + t) * 4;
|
|
59
59
|
return e.data[n + 3] === 0;
|
|
60
60
|
};
|
|
61
61
|
function J(e, t) {
|
|
62
62
|
const a = e.getContext("2d", {
|
|
63
63
|
willReadFrequently: !0
|
|
64
|
-
}), n = e.width, r = e.height, o = a.getImageData(0, 0, n, r), i = t ? Je(t, o) :
|
|
64
|
+
}), n = e.width, r = e.height, o = a.getImageData(0, 0, n, r), i = t ? Je(t, o) : Ke(o);
|
|
65
65
|
let l = n + 1, c = -1, d = r + 1, u = -1, f = 0, m = 0;
|
|
66
66
|
for (m = 0; m < r; m++)
|
|
67
67
|
for (f = 0; f < n; f++)
|
|
@@ -82,7 +82,7 @@ function V(e, t, a) {
|
|
|
82
82
|
}
|
|
83
83
|
return n;
|
|
84
84
|
}
|
|
85
|
-
function
|
|
85
|
+
function Qe(e, t) {
|
|
86
86
|
return new Promise((a, n) => {
|
|
87
87
|
const r = new Image();
|
|
88
88
|
r.onload = () => {
|
|
@@ -205,7 +205,7 @@ async function ot(e, t) {
|
|
|
205
205
|
return c ? de(c, void 0, M, "white").toDataURL("image/jpeg", 0.7) : null;
|
|
206
206
|
}
|
|
207
207
|
if (n != null && n.startsWith("image/")) {
|
|
208
|
-
const r = await
|
|
208
|
+
const r = await Qe(e), o = J(r);
|
|
209
209
|
return o ? de(o, void 0, M).toDataURL("image/jpeg", 0.7) : null;
|
|
210
210
|
}
|
|
211
211
|
return e;
|
|
@@ -216,8 +216,8 @@ 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] =
|
|
220
|
-
|
|
219
|
+
const [n, r] = K(e), { isRTL: o } = Be(), i = qe(a), { setFormStatus: l } = ge(), c = W();
|
|
220
|
+
Q(() => {
|
|
221
221
|
e === ce && r(ce);
|
|
222
222
|
}, [
|
|
223
223
|
e
|
|
@@ -271,7 +271,7 @@ const it = ({ value: e, onChange: t, target: a }) => {
|
|
|
271
271
|
value: t,
|
|
272
272
|
onChange: a,
|
|
273
273
|
target: e
|
|
274
|
-
}), [l, c] =
|
|
274
|
+
}), [l, c] = K(() => {
|
|
275
275
|
if (o == null)
|
|
276
276
|
return b.DRAW;
|
|
277
277
|
switch (i == null ? void 0 : i.mimeType) {
|
|
@@ -375,15 +375,15 @@ const dt = (e) => {
|
|
|
375
375
|
}), o && F(d, {
|
|
376
376
|
handleClear: i
|
|
377
377
|
}));
|
|
378
|
-
},
|
|
378
|
+
}, P = ({ children: e, className: t, ...a }) => {
|
|
379
379
|
const { signatureMode: n, setSignatureMode: r, uploadEnabled: o } = a, { disabled: i } = A(), { labelId: l, inputId: c } = H(), d = I((h) => {
|
|
380
380
|
r(h);
|
|
381
381
|
}, [
|
|
382
382
|
r
|
|
383
383
|
]), u = {
|
|
384
|
-
[b.DRAW]: T(e,
|
|
385
|
-
[b.TYPE]: T(e,
|
|
386
|
-
[b.UPLOAD]: o ? T(e,
|
|
384
|
+
[b.DRAW]: T(e, P.Draw),
|
|
385
|
+
[b.TYPE]: T(e, P.Type),
|
|
386
|
+
[b.UPLOAD]: o ? T(e, P.Upload) : null
|
|
387
387
|
}, f = u[n], m = mt(f) ? f.props.description : void 0;
|
|
388
388
|
return /* @__PURE__ */ s.createElement(s.Fragment, null, /* @__PURE__ */ s.createElement("div", {
|
|
389
389
|
role: "status",
|
|
@@ -404,7 +404,7 @@ const dt = (e) => {
|
|
|
404
404
|
"data-hook": ke.SIGNATURE_FIELD_MODE_SELECT,
|
|
405
405
|
className: t
|
|
406
406
|
}, u[b.DRAW], u[b.TYPE], u[b.UPLOAD]));
|
|
407
|
-
}, mt = (e) => /* @__PURE__ */ we(e), ne = ({ mode: e, children: t, className: a, "aria-label": n }) => /* @__PURE__ */ s.createElement(
|
|
407
|
+
}, mt = (e) => /* @__PURE__ */ we(e), ne = ({ mode: e, children: t, className: a, "aria-label": n }) => /* @__PURE__ */ s.createElement(_e, {
|
|
408
408
|
value: e,
|
|
409
409
|
"aria-label": n
|
|
410
410
|
}, /* @__PURE__ */ s.createElement(Ne, {
|
|
@@ -429,8 +429,8 @@ const dt = (e) => {
|
|
|
429
429
|
"data-hook": `clear-${i}`,
|
|
430
430
|
className: t
|
|
431
431
|
}, e);
|
|
432
|
-
},
|
|
433
|
-
const { signatureView: n, signatureValueForView: r, handleChange: o, handleBeforeChange: i } = a, { disabled: l, readOnly: c, onBlur: d, onFocus: u, hasError: f } = A(), m = T(e,
|
|
432
|
+
}, _ = ({ children: e, className: t, ...a }) => {
|
|
433
|
+
const { signatureView: n, signatureValueForView: r, handleChange: o, handleBeforeChange: i } = a, { disabled: l, readOnly: c, onBlur: d, onFocus: u, hasError: f } = A(), m = T(e, _.Canvas), h = T(e, _.Type), E = T(e, _.Upload);
|
|
434
434
|
return /* @__PURE__ */ s.createElement("div", {
|
|
435
435
|
className: t,
|
|
436
436
|
"data-hook": "signature-input",
|
|
@@ -463,7 +463,7 @@ const dt = (e) => {
|
|
|
463
463
|
onFocus: u
|
|
464
464
|
}));
|
|
465
465
|
}, Et = ({ className: e, emptyLabel: t, signedLabel: a, ...n }) => {
|
|
466
|
-
const { value: r, onChange: o, onBeforeChange: i, disabled: l, readOnly: c, onBlur: d, onFocus: u } = n, { id: f } = A(), { inputId: m, ariaDescribedBy: h } = H(), E = te(), p = W(), L = W(), y = W(null), x = r == null ? void 0 : r.url, [U, Y] =
|
|
466
|
+
const { value: r, onChange: o, onBeforeChange: i, disabled: l, readOnly: c, onBlur: d, onFocus: u } = n, { id: f } = A(), { inputId: m, ariaDescribedBy: h } = H(), E = te(), p = W(), L = W(), y = W(null), x = r == null ? void 0 : r.url, [U, Y] = K(!1);
|
|
467
467
|
Ee(() => {
|
|
468
468
|
var D;
|
|
469
469
|
(D = L.current) == null || D.focus();
|
|
@@ -513,7 +513,7 @@ const dt = (e) => {
|
|
|
513
513
|
j,
|
|
514
514
|
q
|
|
515
515
|
]);
|
|
516
|
-
return
|
|
516
|
+
return Q(() => {
|
|
517
517
|
p.current && (c || l ? p.current.off() : p.current.on());
|
|
518
518
|
}, [
|
|
519
519
|
l,
|
|
@@ -542,7 +542,7 @@ const dt = (e) => {
|
|
|
542
542
|
R == null || R.focus({
|
|
543
543
|
preventScroll: !0
|
|
544
544
|
});
|
|
545
|
-
}, u),
|
|
545
|
+
}, u), Q(() => {
|
|
546
546
|
if (!n) {
|
|
547
547
|
const R = document.getElementById(h);
|
|
548
548
|
R && (R.value = "");
|
|
@@ -580,7 +580,7 @@ const dt = (e) => {
|
|
|
580
580
|
})));
|
|
581
581
|
}, Lt = ({ className: e, placeholder: t, ...a }) => {
|
|
582
582
|
const { inputId: n, ariaDescribedBy: r } = a;
|
|
583
|
-
return /* @__PURE__ */ s.createElement(
|
|
583
|
+
return /* @__PURE__ */ s.createElement(Pe, {
|
|
584
584
|
id: n,
|
|
585
585
|
"data-hook": "signature-text",
|
|
586
586
|
"aria-describedby": r,
|
|
@@ -657,15 +657,15 @@ g.Input = Z;
|
|
|
657
657
|
g.Description = We;
|
|
658
658
|
g.Error = He;
|
|
659
659
|
Z.Header = X;
|
|
660
|
-
Z.Value =
|
|
661
|
-
X.Tabs =
|
|
660
|
+
Z.Value = _;
|
|
661
|
+
X.Tabs = P;
|
|
662
662
|
X.Clear = gt;
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
663
|
+
P.Draw = pt;
|
|
664
|
+
P.Type = ft;
|
|
665
|
+
P.Upload = ht;
|
|
666
|
+
_.Canvas = Et;
|
|
667
|
+
_.Type = ae;
|
|
668
|
+
_.Upload = re;
|
|
669
669
|
ae.Value = Lt;
|
|
670
670
|
re.Button = yt;
|
|
671
671
|
const Tt = () => {
|
|
@@ -724,15 +724,15 @@ const Tt = () => {
|
|
|
724
724
|
}, /* @__PURE__ */ s.createElement("path", {
|
|
725
725
|
fillRule: "evenodd",
|
|
726
726
|
d: "M12,4 L12,5 L8,5 L8,16 L7,16 L7,5 L3,5 L3,4 L12,4 Z M18,8 L18,9 L15,9 L15,16 L14,16 L14,9 L11,9 L11,8 L18,8 Z"
|
|
727
|
-
})), Rt = "_header_15ti0_1", vt = "_tabs_15ti0_8", xt = "_tab_15ti0_8", St = "_tabIcon_15ti0_74", Ft = "_clear_15ti0_81", At = "_value_15ti0_113",
|
|
727
|
+
})), Rt = "_header_15ti0_1", vt = "_tabs_15ti0_8", xt = "_tab_15ti0_8", St = "_tabIcon_15ti0_74", Ft = "_clear_15ti0_81", At = "_value_15ti0_113", Pt = "_box_15ti0_118", _t = "_uploadBox_15ti0_119", Nt = "_typeInput_15ti0_230", C = {
|
|
728
728
|
header: Rt,
|
|
729
729
|
tabs: vt,
|
|
730
730
|
tab: xt,
|
|
731
731
|
tabIcon: St,
|
|
732
732
|
clear: Ft,
|
|
733
733
|
value: At,
|
|
734
|
-
box:
|
|
735
|
-
uploadBox:
|
|
734
|
+
box: Pt,
|
|
735
|
+
uploadBox: _t,
|
|
736
736
|
typeInput: Nt
|
|
737
737
|
}, Ut = ({ content: e, locale: t }) => /* @__PURE__ */ s.createElement(Re, {
|
|
738
738
|
content: e,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import t from "react";
|
|
2
2
|
import l from "classnames";
|
|
3
|
-
import { ai as c } from "./form-
|
|
3
|
+
import { ai as c } from "./form-1k13yOes.js";
|
|
4
4
|
import { ProgressBar as g, Button as b } from "react-aria-components";
|
|
5
5
|
import { f as i } from "./find-child-C60k4CxG.js";
|
|
6
|
-
import {
|
|
6
|
+
import { a5 as v, a4 as N, a7 as f } from "./form-element-classes-BuM-vthE.js";
|
|
7
7
|
function C(e) {
|
|
8
8
|
const s = "calc(50% - 2px)";
|
|
9
9
|
return /* @__PURE__ */ t.createElement(g, {
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { RicosViewer as
|
|
1
|
+
import { RicosViewer as z } from "@wix/ricos/viewer";
|
|
2
2
|
import _ from "classnames";
|
|
3
|
-
import e, { useMemo as F, useState as
|
|
4
|
-
import { ai as y, af as Y, as as T, ab as j, ak as w, ac as J } from "./form-
|
|
3
|
+
import e, { useMemo as F, useState as K, useRef as V, useLayoutEffect as Q, useCallback as k } from "react";
|
|
4
|
+
import { ai as y, af as Y, as as T, ab as j, ak as w, ac as J } from "./form-1k13yOes.js";
|
|
5
5
|
import { CheckboxGroup as X, TextField as Z, Input as ee, CheckboxField as te, CheckboxButton as ae } from "react-aria-components";
|
|
6
|
-
import { f, a as
|
|
7
|
-
import { E as
|
|
8
|
-
import { L as $ } from "./field-label-headless-
|
|
6
|
+
import { f, a as P } from "./find-child-C60k4CxG.js";
|
|
7
|
+
import { E as x, D as B } from "./field-error-headless-Lb5aaoR3.js";
|
|
8
|
+
import { L as $ } from "./field-label-headless-C1VDQVhB.js";
|
|
9
9
|
import { F as ne } from "./fieldset-headless-CD3fds9J.js";
|
|
10
10
|
import { N as g } from "./options-layout-constants-DEfIEJWD.js";
|
|
11
11
|
import { E as se } from "./error-icon-hZxQ6DEy.js";
|
|
12
|
-
import { s as S } from "./field-rac.module-
|
|
13
|
-
import { z as oe,
|
|
12
|
+
import { s as S } from "./field-rac.module-ColNPUt0.js";
|
|
13
|
+
import { z as oe, P as re, $ as le, a0 as ie, a1 as ce, y as ue, p as de, i as me, F as pe } from "./form-element-classes-BuM-vthE.js";
|
|
14
14
|
import { o as Ee } from "./options-rac.module-KM-VT_KY.js";
|
|
15
15
|
const N = "Other", he = (a, t) => {
|
|
16
16
|
const c = t.length + 2;
|
|
@@ -24,8 +24,8 @@ const N = "Other", he = (a, t) => {
|
|
|
24
24
|
const { value: t, onChange: l, addOtherLabel: c, addOtherPlaceholder: i, otherInputCharacterLimit: s, disabled: u, readOnly: b, hasError: d } = y(), { t: m } = T(), o = c || m("add-other.default-other-option-label") || N, p = F(() => he(t || [], o), [
|
|
25
25
|
t,
|
|
26
26
|
o
|
|
27
|
-
]), [n, L] =
|
|
28
|
-
|
|
27
|
+
]), [n, L] = K(p), E = V(l);
|
|
28
|
+
Q(() => {
|
|
29
29
|
E.current = l;
|
|
30
30
|
});
|
|
31
31
|
const I = k((h) => {
|
|
@@ -90,7 +90,7 @@ const N = "Other", he = (a, t) => {
|
|
|
90
90
|
}, /* @__PURE__ */ e.createElement(ae, {
|
|
91
91
|
className: t,
|
|
92
92
|
"data-hook": `tags-${s ? N : c}`
|
|
93
|
-
},
|
|
93
|
+
}, P(I, {
|
|
94
94
|
value: c,
|
|
95
95
|
label: i,
|
|
96
96
|
isOther: s,
|
|
@@ -117,7 +117,7 @@ const N = "Other", he = (a, t) => {
|
|
|
117
117
|
"data-columns": d
|
|
118
118
|
}, p.map((n, L) => {
|
|
119
119
|
const E = n.value ?? n.label;
|
|
120
|
-
return
|
|
120
|
+
return P(o, {
|
|
121
121
|
key: n.isOther ? N : E,
|
|
122
122
|
value: E,
|
|
123
123
|
label: n.label,
|
|
@@ -139,7 +139,7 @@ const N = "Other", he = (a, t) => {
|
|
|
139
139
|
}, r = ({ children: a }) => {
|
|
140
140
|
const { id: t, value: l, onChange: c, FieldLayout: i, required: s, disabled: u, readOnly: b, hasError: d, onBlur: m, onFocus: o } = y(), { inputId: p, labelId: n, ariaDescribedBy: L } = Y(), E = F(() => l || [], [
|
|
141
141
|
l
|
|
142
|
-
]), I = f(a, $), h = f(a, G), C = f(a,
|
|
142
|
+
]), I = f(a, $), h = f(a, G), C = f(a, B), R = f(a, x);
|
|
143
143
|
return /* @__PURE__ */ e.createElement(i, {
|
|
144
144
|
fieldId: t,
|
|
145
145
|
renderLabel: () => I,
|
|
@@ -168,13 +168,13 @@ r.Label = $;
|
|
|
168
168
|
r.Control = G;
|
|
169
169
|
r.Options = A;
|
|
170
170
|
r.OtherInput = q;
|
|
171
|
-
r.Description =
|
|
172
|
-
r.Error =
|
|
171
|
+
r.Description = B;
|
|
172
|
+
r.Error = x;
|
|
173
173
|
const be = "_control_1t32y_1", fe = "_options_1t32y_7", Le = "_option_1t32y_7", D = {
|
|
174
174
|
control: be,
|
|
175
175
|
options: fe,
|
|
176
176
|
option: Le
|
|
177
|
-
}, _e = ({ content: a, locale: t }) => /* @__PURE__ */ e.createElement(
|
|
177
|
+
}, _e = ({ content: a, locale: t }) => /* @__PURE__ */ e.createElement(z, {
|
|
178
178
|
content: a,
|
|
179
179
|
locale: t
|
|
180
180
|
}), ke = () => {
|
|
@@ -2,13 +2,13 @@ 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 y, TextArea as N } from "react-aria-components";
|
|
5
|
-
import { ai as p, af as E, ak as x } from "./form-
|
|
5
|
+
import { ai as p, af as E, ak as x } from "./form-1k13yOes.js";
|
|
6
6
|
import { f as c } from "./find-child-C60k4CxG.js";
|
|
7
|
-
import { D as h, E as M } from "./field-error-headless-
|
|
8
|
-
import { L as g } from "./field-label-headless-
|
|
7
|
+
import { D as h, E as M } from "./field-error-headless-Lb5aaoR3.js";
|
|
8
|
+
import { L as g } from "./field-label-headless-C1VDQVhB.js";
|
|
9
9
|
import { E as v } from "./error-icon-hZxQ6DEy.js";
|
|
10
|
-
import { s } from "./field-rac.module-
|
|
11
|
-
import { z as q,
|
|
10
|
+
import { s } from "./field-rac.module-ColNPUt0.js";
|
|
11
|
+
import { z as q, P as B, y as P, p as k, i as U } from "./form-element-classes-BuM-vthE.js";
|
|
12
12
|
const e = ({ children: t }) => {
|
|
13
13
|
const { id: a, value: m, onChange: l, disabled: u, required: o, readOnly: i, onBlur: d, onFocus: f, FieldLayout: I, hasError: F } = p(), { labelId: L } = E(), R = O((C) => {
|
|
14
14
|
l(C);
|
|
@@ -31,7 +31,7 @@ const e = ({ children: t }) => {
|
|
|
31
31
|
}, b),
|
|
32
32
|
renderDescription: () => /* @__PURE__ */ r.createElement(r.Fragment, null, A, D)
|
|
33
33
|
});
|
|
34
|
-
},
|
|
34
|
+
}, V = ({ className: t }) => {
|
|
35
35
|
const { inputId: a, ariaDescribedBy: m } = E(), { id: l, placeholder: u } = p(), o = T(null);
|
|
36
36
|
return x(() => {
|
|
37
37
|
var i;
|
|
@@ -45,12 +45,12 @@ const e = ({ children: t }) => {
|
|
|
45
45
|
});
|
|
46
46
|
};
|
|
47
47
|
e.Label = g;
|
|
48
|
-
e.Input =
|
|
48
|
+
e.Input = V;
|
|
49
49
|
e.Description = h;
|
|
50
50
|
e.Error = M;
|
|
51
|
-
const
|
|
52
|
-
input:
|
|
53
|
-
},
|
|
51
|
+
const w = "_input_ug5v8_1", z = {
|
|
52
|
+
input: w
|
|
53
|
+
}, Q = ({ 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, {
|
|
@@ -58,12 +58,12 @@ const V = "_input_ug5v8_1", w = {
|
|
|
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(P, s.input, z.input)
|
|
62
62
|
}), /* @__PURE__ */ r.createElement(e.Error, {
|
|
63
|
-
className: n(
|
|
63
|
+
className: n(k, s.error)
|
|
64
64
|
}, /* @__PURE__ */ r.createElement(v, null), /* @__PURE__ */ r.createElement(e.Error.Text, null)), /* @__PURE__ */ r.createElement(e.Description, {
|
|
65
|
-
className: n(
|
|
66
|
-
},
|
|
65
|
+
className: n(U, s.description)
|
|
66
|
+
}, Q));
|
|
67
67
|
export {
|
|
68
68
|
re as T
|
|
69
69
|
};
|
package/dist/component/{text-input-field-rac-CbnKn03g.js → text-input-field-rac-TSY90sCu.js}
RENAMED
|
@@ -1,10 +1,10 @@
|
|
|
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-D3b0XErK.js";
|
|
5
5
|
import { E as o } from "./error-icon-hZxQ6DEy.js";
|
|
6
|
-
import { s as a } from "./field-rac.module-
|
|
7
|
-
import { z as n,
|
|
6
|
+
import { s as a } from "./field-rac.module-ColNPUt0.js";
|
|
7
|
+
import { z as n, P as c, y as E, p as i, i as p } from "./form-element-classes-BuM-vthE.js";
|
|
8
8
|
const R = ({ content: s, locale: l }) => /* @__PURE__ */ e.createElement(m, {
|
|
9
9
|
content: s,
|
|
10
10
|
locale: l
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import t, { useRef as L } from "react";
|
|
2
2
|
import { TextField as R, Input as v } from "react-aria-components";
|
|
3
|
-
import { ai as d, af as c, ak as T } from "./form-
|
|
3
|
+
import { ai as d, af as c, ak as T } from "./form-1k13yOes.js";
|
|
4
4
|
import { f as a } from "./find-child-C60k4CxG.js";
|
|
5
|
-
import { D as g, E as h } from "./field-error-headless-
|
|
6
|
-
import { L as x } from "./field-label-headless-
|
|
5
|
+
import { D as g, E as h } from "./field-error-headless-Lb5aaoR3.js";
|
|
6
|
+
import { L as x } from "./field-label-headless-C1VDQVhB.js";
|
|
7
7
|
const e = ({ children: r }) => {
|
|
8
8
|
const { id: s, value: i, onChange: l, disabled: u, readOnly: n, required: o, hasError: p, onBlur: m, onFocus: f, FieldLayout: b } = d(), { labelId: E } = c(), I = a(r, e.Label), F = a(r, e.Input), y = a(r, e.Description), D = a(r, e.Error);
|
|
9
9
|
return /* @__PURE__ */ t.createElement(b, {
|
|
@@ -3,16 +3,16 @@ import { RicosViewer as q } from "@wix/ricos/viewer";
|
|
|
3
3
|
import c from "classnames";
|
|
4
4
|
import { parseTime as v } from "@internationalized/date";
|
|
5
5
|
import { TimeField as x, DateInput as B, DateSegment as h, TimeFieldStateContext as U } from "react-aria-components";
|
|
6
|
-
import { ai as p, af as
|
|
6
|
+
import { ai as p, af as j, as as T, ak as z } from "./form-1k13yOes.js";
|
|
7
7
|
import { f as m, a as F } from "./find-child-C60k4CxG.js";
|
|
8
|
-
import { D as
|
|
9
|
-
import { L as J } from "./field-label-headless-
|
|
8
|
+
import { D as Q, E as G } from "./field-error-headless-Lb5aaoR3.js";
|
|
9
|
+
import { L as J } from "./field-label-headless-C1VDQVhB.js";
|
|
10
10
|
import { E as K } from "./error-icon-hZxQ6DEy.js";
|
|
11
11
|
import { H as S } from "./custom-focus-class-_483Pkwp.js";
|
|
12
|
-
import { s as E } from "./field-rac.module-
|
|
13
|
-
import { z as W,
|
|
12
|
+
import { s as E } from "./field-rac.module-ColNPUt0.js";
|
|
13
|
+
import { z as W, P as X, y as Y, p as Z, i as $ } from "./form-element-classes-BuM-vthE.js";
|
|
14
14
|
const r = ({ children: t }) => {
|
|
15
|
-
const { id: n, value: l, onChange: o, disabled: i, readOnly: s, required: a, onBlur: d, onFocus: f, use24HourFormat: b, FieldLayout: I, hasError: C } = p(), { inputId: L, ariaDescribedBy: g, labelId: D } =
|
|
15
|
+
const { id: n, value: l, onChange: o, disabled: i, readOnly: s, required: a, onBlur: d, onFocus: f, use24HourFormat: b, FieldLayout: I, hasError: C } = p(), { inputId: L, ariaDescribedBy: g, labelId: D } = j(), R = H((M) => {
|
|
16
16
|
const w = ae(M);
|
|
17
17
|
o(w);
|
|
18
18
|
}, [
|
|
@@ -66,7 +66,7 @@ const r = ({ children: t }) => {
|
|
|
66
66
|
});
|
|
67
67
|
}, ee = ({ className: t, ...n }) => {
|
|
68
68
|
const { id: l, hidePlaceholder: o } = p(), { segment: i } = n, { t: s } = T(), a = V(null);
|
|
69
|
-
|
|
69
|
+
z(() => {
|
|
70
70
|
var f;
|
|
71
71
|
(f = a.current) == null || f.focus();
|
|
72
72
|
}, l);
|
|
@@ -104,7 +104,7 @@ u.Minute = te;
|
|
|
104
104
|
u.Period = re;
|
|
105
105
|
r.Label = J;
|
|
106
106
|
r.Time = u;
|
|
107
|
-
r.Description =
|
|
107
|
+
r.Description = Q;
|
|
108
108
|
r.Error = G;
|
|
109
109
|
function ne(t) {
|
|
110
110
|
if (!t)
|
|
@@ -2,17 +2,17 @@ import { RicosViewer as O } from "@wix/ricos/viewer";
|
|
|
2
2
|
import l from "classnames";
|
|
3
3
|
import r, { useCallback as h, useRef as y } from "react";
|
|
4
4
|
import { TextField as N, Input as A } from "react-aria-components";
|
|
5
|
-
import { ai as E, af as d, ak as
|
|
5
|
+
import { ai as E, af as d, ak as P } from "./form-1k13yOes.js";
|
|
6
6
|
import { f as u } from "./find-child-C60k4CxG.js";
|
|
7
|
-
import { D as
|
|
8
|
-
import { L as
|
|
7
|
+
import { D as k, E as B } from "./field-error-headless-Lb5aaoR3.js";
|
|
8
|
+
import { L as M } from "./field-label-headless-C1VDQVhB.js";
|
|
9
9
|
import { u as T } from "./use-invoke-callback-UH73A_J3.js";
|
|
10
10
|
import { E as v } from "./error-icon-hZxQ6DEy.js";
|
|
11
|
-
import { s } from "./field-rac.module-
|
|
12
|
-
import { z as U,
|
|
13
|
-
const
|
|
11
|
+
import { s } from "./field-rac.module-ColNPUt0.js";
|
|
12
|
+
import { z as U, P as g, y as q, p as x, i as w } from "./form-element-classes-BuM-vthE.js";
|
|
13
|
+
const V = (t) => t ? `https://${String(t).replace(/^https?:\/\//, "")}` : "", e = ({ children: t }) => {
|
|
14
14
|
const { id: o, value: n, onChange: a, disabled: m, readOnly: i, required: c, hasError: I, onBlur: f, onFocus: F, FieldLayout: L } = E(), { labelId: R } = d(), p = T(f), b = u(t, e.Label), D = u(t, e.Input), _ = u(t, e.Description), C = u(t, e.Error), S = h(() => {
|
|
15
|
-
a(
|
|
15
|
+
a(V(n)), p();
|
|
16
16
|
}, [
|
|
17
17
|
p,
|
|
18
18
|
a,
|
|
@@ -34,9 +34,9 @@ const Q = (t) => t ? `https://${String(t).replace(/^https?:\/\//, "")}` : "", e
|
|
|
34
34
|
}, D),
|
|
35
35
|
renderDescription: () => /* @__PURE__ */ r.createElement(r.Fragment, null, C, _)
|
|
36
36
|
});
|
|
37
|
-
},
|
|
37
|
+
}, W = ({ className: t }) => {
|
|
38
38
|
const { id: o, placeholder: n } = E(), { inputId: a, ariaDescribedBy: m } = d(), i = y(null);
|
|
39
|
-
return
|
|
39
|
+
return P(() => {
|
|
40
40
|
var c;
|
|
41
41
|
(c = i.current) == null || c.focus();
|
|
42
42
|
}, o), /* @__PURE__ */ r.createElement(A, {
|
|
@@ -48,11 +48,11 @@ const Q = (t) => t ? `https://${String(t).replace(/^https?:\/\//, "")}` : "", e
|
|
|
48
48
|
placeholder: n
|
|
49
49
|
});
|
|
50
50
|
};
|
|
51
|
-
e.Label =
|
|
52
|
-
e.Input =
|
|
53
|
-
e.Description =
|
|
54
|
-
e.Error =
|
|
55
|
-
const
|
|
51
|
+
e.Label = M;
|
|
52
|
+
e.Input = W;
|
|
53
|
+
e.Description = k;
|
|
54
|
+
e.Error = B;
|
|
55
|
+
const $ = ({ content: t, locale: o }) => /* @__PURE__ */ r.createElement(O, {
|
|
56
56
|
content: t,
|
|
57
57
|
locale: o
|
|
58
58
|
}), te = () => /* @__PURE__ */ r.createElement(e, null, /* @__PURE__ */ r.createElement(e.Label, {
|
|
@@ -65,7 +65,7 @@ const W = ({ content: t, locale: o }) => /* @__PURE__ */ r.createElement(O, {
|
|
|
65
65
|
className: l(x, s.error)
|
|
66
66
|
}, /* @__PURE__ */ r.createElement(v, null), /* @__PURE__ */ r.createElement(e.Error.Text, null)), /* @__PURE__ */ r.createElement(e.Description, {
|
|
67
67
|
className: l(w, s.description)
|
|
68
|
-
},
|
|
68
|
+
}, $));
|
|
69
69
|
export {
|
|
70
70
|
te as U
|
|
71
71
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import d from "classnames";
|
|
2
|
-
import { ac as s } from "./form-
|
|
2
|
+
import { ac as s } from "./form-1k13yOes.js";
|
|
3
3
|
const E = ({ globalClasses: e, moduleClasses: t }) => {
|
|
4
4
|
var c;
|
|
5
5
|
const r = ((c = s(e.key)) == null ? void 0 : c.split(/\s+/)) ?? [], m = r.includes(e.selected), o = r.includes(e.hover);
|
package/dist/component/{use-service-options-base-EFrxTpGm.js → use-service-options-base-cL2N21mJ.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useState as o, useCallback as D, useEffect as m, useMemo as b } from "react";
|
|
2
|
-
import { ah as v } from "./form-
|
|
2
|
+
import { ah as v } from "./form-1k13yOes.js";
|
|
3
3
|
const k = (h) => {
|
|
4
4
|
const { fieldType: I, isEditor: t = !1, postProcessOptions: i, customFetchLogic: a, onInitialDataLoaded: n } = h, [L, O] = o(!1), [g, p] = o([]), [E, u] = o(!1), [c, f] = o(!1), s = v(I), r = D((e) => {
|
|
5
5
|
let d = e.map((l) => ({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/form-elements",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.79.0",
|
|
4
4
|
"description": "The Wix Forms rendering element for Builder apps, loaded at runtime as @wix/form-elements/Form",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"files": [
|
|
@@ -151,5 +151,5 @@
|
|
|
151
151
|
]
|
|
152
152
|
}
|
|
153
153
|
},
|
|
154
|
-
"falconPackageHash": "
|
|
154
|
+
"falconPackageHash": "b31c650f4d62d89278bcd21ec99b907b103ee3eda9264f109c181444"
|
|
155
155
|
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import r from "react";
|
|
2
|
-
import { s as t } from "./field-rac.module-DjmaTYkc.js";
|
|
3
|
-
const a = ({ className: e, ...o }) => {
|
|
4
|
-
const c = o;
|
|
5
|
-
return /* @__PURE__ */ r.createElement("div", {
|
|
6
|
-
"aria-hidden": "true",
|
|
7
|
-
className: typeof e == "function" ? e(c) : e
|
|
8
|
-
});
|
|
9
|
-
}, p = {
|
|
10
|
-
base: t.checkboxInput,
|
|
11
|
-
selected: t.checkboxInputSelected,
|
|
12
|
-
hover: t.checkboxInputHover
|
|
13
|
-
};
|
|
14
|
-
export {
|
|
15
|
-
p as C,
|
|
16
|
-
a
|
|
17
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import C from "react";
|
|
2
|
-
import { C as _ } from "./checkbox-field-rac-4zG3Sf1c.js";
|
|
3
|
-
import { Z as e, _ as r, Y as t } from "./form-element-classes-BXNs5k3q.js";
|
|
4
|
-
const S = () => /* @__PURE__ */ C.createElement(_, {
|
|
5
|
-
classes: {
|
|
6
|
-
container: t,
|
|
7
|
-
label: r,
|
|
8
|
-
indicator: e
|
|
9
|
-
}
|
|
10
|
-
});
|
|
11
|
-
export {
|
|
12
|
-
S as ContactsSubscribeRAC
|
|
13
|
-
};
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import t from "react";
|
|
2
|
-
import { RicosViewer as c } from "@wix/ricos/viewer";
|
|
3
|
-
import r from "classnames";
|
|
4
|
-
import { R as a, s as o } from "./radio-group-field-rac.module-emin6sSc.js";
|
|
5
|
-
import { E as m } from "./error-icon-hZxQ6DEy.js";
|
|
6
|
-
import { s } from "./field-rac.module-DjmaTYkc.js";
|
|
7
|
-
import { z as i, Q as E, R as p, T as R, S as _, p as L, i as O } from "./form-element-classes-BXNs5k3q.js";
|
|
8
|
-
const e = ({ children: n }) => /* @__PURE__ */ t.createElement(a, null, n);
|
|
9
|
-
e.Label = a.Label;
|
|
10
|
-
e.Options = a.Options;
|
|
11
|
-
e.Option = a.Option;
|
|
12
|
-
e.Description = a.Description;
|
|
13
|
-
e.Error = a.Error;
|
|
14
|
-
const S = ({ content: n, locale: l }) => /* @__PURE__ */ t.createElement(c, {
|
|
15
|
-
content: n,
|
|
16
|
-
locale: l
|
|
17
|
-
}), I = () => /* @__PURE__ */ t.createElement(e, null, /* @__PURE__ */ t.createElement(e.Label, {
|
|
18
|
-
className: r(i, s.label)
|
|
19
|
-
}, /* @__PURE__ */ t.createElement(e.Label.Required, {
|
|
20
|
-
className: r(E, s.requiredMark)
|
|
21
|
-
})), /* @__PURE__ */ t.createElement(e.Options, {
|
|
22
|
-
className: r(p, o.options)
|
|
23
|
-
}, /* @__PURE__ */ t.createElement(e.Option, {
|
|
24
|
-
className: o.option
|
|
25
|
-
}, /* @__PURE__ */ t.createElement(e.Option.Input, {
|
|
26
|
-
className: o.optionInput
|
|
27
|
-
}), /* @__PURE__ */ t.createElement(e.Option.Control, {
|
|
28
|
-
className: r(R, o.optionControl)
|
|
29
|
-
}), /* @__PURE__ */ t.createElement(e.Option.Label, {
|
|
30
|
-
className: r(_, o.optionLabel)
|
|
31
|
-
}))), /* @__PURE__ */ t.createElement(e.Error, {
|
|
32
|
-
className: r(L, s.error)
|
|
33
|
-
}, /* @__PURE__ */ t.createElement(m, null), /* @__PURE__ */ t.createElement(e.Error.Text, null)), /* @__PURE__ */ t.createElement(e.Description, {
|
|
34
|
-
className: r(O, s.description)
|
|
35
|
-
}, S)), M = () => /* @__PURE__ */ t.createElement(I, null);
|
|
36
|
-
export {
|
|
37
|
-
M as EventsRsvpRAC
|
|
38
|
-
};
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
const o = "_label_10aij_1", e = "_requiredMark_10aij_11", t = "_input_10aij_16", n = "_inputGroup_10aij_17", c = "_innerInput_10aij_129", _ = "_dropdownTrigger_10aij_177", r = "_dropdownIcon_10aij_187", i = "_dropdownPopover_10aij_206", p = "_selectPopover_10aij_210", s = "_selectOption_10aij_237", u = "_selectOptionWithoutFocusRing_10aij_261", d = "_description_10aij_267", a = "_error_10aij_283", l = "_checkbox_10aij_302", j = "_checkboxInput_10aij_325", h = "_checkboxInputSelected_10aij_364", b = "_checkboxInputHover_10aij_368", k = "_uploadButton_10aij_418", I = {
|
|
2
|
-
label: o,
|
|
3
|
-
requiredMark: e,
|
|
4
|
-
input: t,
|
|
5
|
-
inputGroup: n,
|
|
6
|
-
innerInput: c,
|
|
7
|
-
dropdownTrigger: _,
|
|
8
|
-
dropdownIcon: r,
|
|
9
|
-
dropdownPopover: i,
|
|
10
|
-
selectPopover: p,
|
|
11
|
-
selectOption: s,
|
|
12
|
-
selectOptionWithoutFocusRing: u,
|
|
13
|
-
description: d,
|
|
14
|
-
error: a,
|
|
15
|
-
checkbox: l,
|
|
16
|
-
checkboxInput: j,
|
|
17
|
-
checkboxInputSelected: h,
|
|
18
|
-
checkboxInputHover: b,
|
|
19
|
-
uploadButton: k
|
|
20
|
-
};
|
|
21
|
-
export {
|
|
22
|
-
I as s
|
|
23
|
-
};
|