@wix/form-elements 1.186.0 → 1.188.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-B_kU3lTx.js → appointment-rac-Biwj0bKe.js} +78 -78
- package/dist/component/{bookings-address-rac-BZR-Loac.js → bookings-address-rac-B_o25LOI.js} +1 -1
- package/dist/component/{bookings-email-rac-CCvIRZYM.js → bookings-email-rac-BBcusxbS.js} +1 -1
- package/dist/component/{bookings-first-name-rac-B5AEOOre.js → bookings-first-name-rac-CNTGannm.js} +1 -1
- package/dist/component/{bookings-header-rac-BcvixPiY.js → bookings-header-rac-BTvG2vnk.js} +1 -1
- package/dist/component/{bookings-last-name-rac-JiEUxaqi.js → bookings-last-name-rac-BQumGsz9.js} +1 -1
- package/dist/component/{bookings-login-bar-rac-zPJ3u2Kn.js → bookings-login-bar-rac-Cl_rwWhO.js} +8 -8
- package/dist/component/{bookings-phone-rac-CNNlCp66.js → bookings-phone-rac-B_gXe9Fa.js} +1 -1
- package/dist/component/{bookings-rich-text-rac-Rl9b7r3g.js → bookings-rich-text-rac-CbMuPVCB.js} +1 -1
- package/dist/component/{checkbox-field-rac-DP6HkB2N.js → checkbox-field-rac-QwFSqEgs.js} +43 -43
- package/dist/component/{checkbox-group-field-headless-DOFTwxeh.js → checkbox-group-field-headless-CTDMO0TM.js} +38 -38
- package/dist/component/{checkbox-group-field-rac-DhcC_N8m.js → checkbox-group-field-rac-DFUST9Th.js} +4 -4
- package/dist/component/{checkbox-group-rac-Gec8xcgN.js → checkbox-group-rac-CBAE-o1Q.js} +1 -1
- package/dist/component/{checkbox-rac-CAuZNb4B.js → checkbox-rac-DkYPhGTU.js} +1 -1
- package/dist/component/{contacts-address-rac-2WX8POCZ.js → contacts-address-rac-DKf42iJk.js} +1 -1
- package/dist/component/{contacts-birthdate-rac-36zloipl.js → contacts-birthdate-rac-ffPSb2YW.js} +1 -1
- package/dist/component/{contacts-company-rac-skt6F4i0.js → contacts-company-rac-DLVdNbYz.js} +1 -1
- package/dist/component/{contacts-email-rac-BAftc4kl.js → contacts-email-rac-CW8SdcYX.js} +1 -1
- package/dist/component/{contacts-first-name-rac-u6Wiuwxe.js → contacts-first-name-rac-CGdzgpkw.js} +1 -1
- package/dist/component/{contacts-last-name-rac-DCh0xW6C.js → contacts-last-name-rac-DNQj7UcW.js} +1 -1
- package/dist/component/{contacts-phone-rac-lhdYji46.js → contacts-phone-rac-zAMIceti.js} +1 -1
- package/dist/component/{contacts-position-rac-jOQ8Zayq.js → contacts-position-rac-DLwn9B2T.js} +1 -1
- package/dist/component/{contacts-subscribe-rac-q4sRxs2n.js → contacts-subscribe-rac-Cy5rxTkC.js} +1 -1
- package/dist/component/{contacts-tax-id-rac-DpzneATH.js → contacts-tax-id-rac-CEfU6N6C.js} +1 -1
- package/dist/component/{date-availability-CKFxphlT.js → date-availability-C9EOQUiy.js} +1 -1
- package/dist/component/{date-input-field-rac-DgwRr6tR.js → date-input-field-rac-F4QQeEtO.js} +57 -57
- package/dist/component/{date-input-rac-CONL_9I5.js → date-input-rac-CJeOgyF5.js} +1 -1
- package/dist/component/{date-picker-field-rac-C1ckFkSh.js → date-picker-field-rac-33ARKAxQ.js} +35 -35
- package/dist/component/{date-picker-rac-CTms7Rxx.js → date-picker-rac-Beaqh84V.js} +1 -1
- package/dist/component/{date-time-input-field-rac-BkjASrCJ.js → date-time-input-field-rac-CB8FfYUM.js} +44 -44
- package/dist/component/{date-time-input-rac-Bc3gu8--.js → date-time-input-rac-DQ9P6IVp.js} +1 -1
- package/dist/component/{dext-checkbox-group-rac-BYEHlsBv.js → dext-checkbox-group-rac-Cho-hueW.js} +2 -2
- package/dist/component/{dext-checkbox-rac-C6nce0nR.js → dext-checkbox-rac-BIwIwy-y.js} +1 -1
- package/dist/component/{dext-date-picker-rac-COIoyTuy.js → dext-date-picker-rac-C03HJdvX.js} +1 -1
- package/dist/component/{dext-date-time-input-rac-DFuslGXT.js → dext-date-time-input-rac-Bo4XfnRA.js} +1 -1
- package/dist/component/{dext-dropdown-rac-GecDU_NU.js → dext-dropdown-rac-CadT1tMH.js} +1 -1
- package/dist/component/{dext-email-rac-C9qXogI5.js → dext-email-rac-DbiEws8H.js} +1 -1
- package/dist/component/{dext-number-input-rac-BO_MqKpQ.js → dext-number-input-rac-XoW8CLvX.js} +1 -1
- package/dist/component/{dext-phone-rac-CZZBLRSj.js → dext-phone-rac-9rFyUD8e.js} +1 -1
- package/dist/component/{dext-radio-group-rac-baaOfskN.js → dext-radio-group-rac-U6BNL7IT.js} +2 -2
- package/dist/component/{dext-rating-input-rac-Cyz7F31J.js → dext-rating-input-rac-BDGUv8jU.js} +1 -1
- package/dist/component/{dext-tags-rac-DiWEHPna.js → dext-tags-rac-CAFGVcIi.js} +2 -2
- package/dist/component/{dext-text-area-rac-BpZnhr2z.js → dext-text-area-rac-DXyzm9oe.js} +1 -1
- package/dist/component/{dext-text-input-rac-CZWOoFkx.js → dext-text-input-rac-C27gdfyG.js} +1 -1
- package/dist/component/{dext-url-input-rac-l98Wixh2.js → dext-url-input-rac-DovYH3_G.js} +1 -1
- package/dist/component/{donation-rac-BcdtetWT.js → donation-rac-DV2aRsDt.js} +60 -60
- package/dist/component/{dropdown-field-rac-Bgjtp3L4.js → dropdown-field-rac-D58C7YZG.js} +3 -3
- package/dist/component/{dropdown-rac-D3x_39ML.js → dropdown-rac-57yZf_yZ.js} +1 -1
- package/dist/component/{ecom-address-rac-Bdk-Q07X.js → ecom-address-rac-Co3WhA7m.js} +1 -1
- package/dist/component/{ecom-subscription-checkbox-rac-BoAls9a3.js → ecom-subscription-checkbox-rac-CYjsuRA9.js} +2 -2
- package/dist/component/{email-input-field-rac-77Oc4dDD.js → email-input-field-rac-C5G3pVkR.js} +14 -14
- package/dist/component/{events-repeater-rac-GfDVt3z5.js → events-repeater-rac-D5PXSDIH.js} +72 -70
- package/dist/component/{events-rsvp-rac-CsCMAtdq.js → events-rsvp-rac-BfyQNZh6.js} +3 -3
- package/dist/component/{field-error-headless-GKAj6Pxj.js → field-error-headless-RTyrenpC.js} +8 -8
- package/dist/component/{field-label-headless-PD3fGcax.js → field-label-headless-Bd00Hl2z.js} +4 -4
- package/dist/component/{file-upload-rac-CUxGzs3a.js → file-upload-rac-D5pTnsHO.js} +61 -61
- package/dist/component/{fixed-payment-rac-o5xHi-ra.js → fixed-payment-rac-ByxSjPu5.js} +9 -9
- package/dist/component/{form-RdPwfrvb.js → form-BG5UjjLA.js} +3547 -3403
- package/dist/component/form.js +1 -1
- package/dist/component/{header-field-rac-C9xA5iqV.js → header-field-rac-Bql6VoAi.js} +2 -2
- package/dist/component/{header-rac-CF1VP6hb.js → header-rac-DWAIn4eY.js} +1 -1
- package/dist/component/{image-choice-rac-BEYEQpY1.js → image-choice-rac-D5dSQ4Xd.js} +11 -11
- package/dist/component/{index-S0Acbl6c.js → index-37eV-JEp.js} +5 -5
- package/dist/component/{index-RuCFDOGc.js → index-DlcCtz4h.js} +4 -4
- package/dist/component/{isObjectLike-Ber_X_Dh.js → isObjectLike-ClPDcTiq.js} +1 -1
- package/dist/component/{multiline-address-field-rac-B2TgOTXA.js → multiline-address-field-rac-CpvwzmpC.js} +345 -345
- package/dist/component/{multiline-address-rac-CmWUcCpu.js → multiline-address-rac-ENim2Bn6.js} +1 -1
- package/dist/component/{number-input-field-rac-Objw_lY1.js → number-input-field-rac-DTRnmRDk.js} +21 -21
- package/dist/component/{number-input-rac-DZSYFSGa.js → number-input-rac-QROlEpkx.js} +1 -1
- package/dist/component/{password-rac-CHJ-pfD8.js → password-rac-jMoyzIP2.js} +47 -47
- package/dist/component/{payment-input-rac-Z_KAjeub.js → payment-input-rac-DOOV4P4b.js} +31 -31
- package/dist/component/{phone-input-field-rac-CyEuc3c9.js → phone-input-field-rac-BA_mTcND.js} +47 -47
- package/dist/component/{phone-rac-DLvx-8X_.js → phone-rac-DXcbIqHK.js} +1 -1
- package/dist/component/{product-list-rac-D17el6c9.js → product-list-rac-CsxR7Ut6.js} +63 -63
- package/dist/component/{quiz-radio-group-rac-Ci8TptOw.js → quiz-radio-group-rac-IQgqvqjs.js} +1 -1
- package/dist/component/{radio-button-module-classes-FofhK-mq.js → radio-button-module-classes-DIFYfYiH.js} +36 -36
- package/dist/component/{radio-group-field-rac-BkSMEX4O.js → radio-group-field-rac-Ca2RlxOl.js} +4 -4
- package/dist/component/{radio-group-rac-BTn-Cxxa.js → radio-group-rac-DDervEEb.js} +1 -1
- package/dist/component/{rating-input-field-rac-CocnyJZF.js → rating-input-field-rac-0kyPo9cU.js} +12 -12
- package/dist/component/{rating-input-rac-BvBiBfeB.js → rating-input-rac-DqPsqUKR.js} +1 -1
- package/dist/component/{rich-content-rac.module-QspdFAOQ.js → rich-content-rac.module-2T_-7jvb.js} +5 -5
- package/dist/component/{rich-text-field-rac-Bhx9hioT.js → rich-text-field-rac-W-eKzhuC.js} +4 -4
- package/dist/component/{rich-text-rac-BQh8FwwS.js → rich-text-rac-CzJfbAyx.js} +1 -1
- package/dist/component/{service-dropdown-rac-BIXPgFFy.js → service-dropdown-rac-BMJy2pZ5.js} +25 -25
- package/dist/component/{services-multi-choice-rac-COQ1PA73.js → services-multi-choice-rac-BBAWlI7U.js} +7 -7
- package/dist/component/{signature-rac-Dg-moI_C.js → signature-rac-Y1GLswrp.js} +22 -22
- package/dist/component/{submit-button-rac-DeDYBkOM.js → submit-button-rac-CSKbrgQ3.js} +17 -17
- package/dist/component/{tags-field-rac-Ddd5j-Rm.js → tags-field-rac-D3zOYcC5.js} +19 -19
- package/dist/component/{tags-rac-CSN4Qj7H.js → tags-rac-Cs77Abgs.js} +1 -1
- package/dist/component/text-area-field-rac-DZZW7rAX.js +74 -0
- package/dist/component/{text-area-rac-CqdvWp7s.js → text-area-rac-BRPp0HnX.js} +1 -1
- package/dist/component/{text-input-field-rac-3fkKXrfo.js → text-input-field-rac-tPDZmLdU.js} +3 -3
- package/dist/component/text-input-headless-tkwEZWs7.js +47 -0
- package/dist/component/{text-input-rac-DAMMZiaZ.js → text-input-rac-DnHt4vkM.js} +1 -1
- package/dist/component/{time-input-rac-CsF1NYzf.js → time-input-rac-Dbg4Nqb5.js} +18 -18
- package/dist/component/url-input-field-rac-3ODFXFRP.js +77 -0
- package/dist/component/{url-input-rac-xe-Fv62_.js → url-input-rac-CPb5o8Of.js} +1 -1
- package/dist/component/{use-dropdown-option-class-name-D2bfB7mX.js → use-dropdown-option-class-name-Dd4ncVaY.js} +2 -2
- package/dist/component/{use-dropdown-trigger-class-name-C70Rbjnj.js → use-dropdown-trigger-class-name-zVniRqM7.js} +29 -29
- package/dist/component/{use-element-state-class-name-BxTnecG_.js → use-element-state-class-name-C8jFeDrq.js} +3 -3
- package/dist/component/{use-hoverable-input-class-name-CjyA3fHd.js → use-hoverable-input-class-name-B9diy0Mr.js} +2 -2
- package/dist/component/{use-is-forced-open-dropdown-CzLh9VIQ.js → use-is-forced-open-dropdown-BR1U1l5w.js} +6 -6
- package/dist/component/{use-service-options-base-DcTiL5qj.js → use-service-options-base-yM4rJlq1.js} +3 -3
- package/dist/component/use-text-input-class-name-D6AnBbJx.js +6 -0
- package/package.json +4 -2
- package/dist/component/text-area-field-rac-VYumrKBq.js +0 -74
- package/dist/component/text-input-headless-DMWwlrhh.js +0 -47
- package/dist/component/url-input-field-rac-Cs2W0Y3s.js +0 -77
- package/dist/component/use-text-input-class-name-B-OzR1SQ.js +0 -6
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import a, { useRef as F, useState as T, useEffect as B, useCallback as H } from "react";
|
|
2
2
|
import { RadioGroup as k, RadioField as A, RadioButton as G, TextField as P, Input as $ } from "react-aria-components";
|
|
3
|
-
import {
|
|
4
|
-
import { f as u, a as
|
|
5
|
-
import { D as
|
|
6
|
-
import { L as
|
|
7
|
-
import { S as
|
|
8
|
-
const
|
|
3
|
+
import { bM as g, bJ as q, bX as D, bO as x } from "./form-BG5UjjLA.js";
|
|
4
|
+
import { f as u, a as L } from "./find-child-C60k4CxG.js";
|
|
5
|
+
import { D as M, E as U } from "./field-error-headless-RTyrenpC.js";
|
|
6
|
+
import { L as J } from "./field-label-headless-Bd00Hl2z.js";
|
|
7
|
+
import { S as X } from "./selection-indicator-XQ8MYHUQ.js";
|
|
8
|
+
const v = "Other", j = (e, t) => e == null ? void 0 : e.find((n) => (n.value ?? n.label) === t), y = (e, t) => !!t && !j(e, t), w = (e, t) => {
|
|
9
9
|
const l = t ? t.length + 2 : 0;
|
|
10
10
|
return e.slice(l);
|
|
11
11
|
}, i = ({ children: e, className: t }) => {
|
|
12
|
-
const { id: n, value: l, onChange: h, disabled: p, readOnly: O, required: m, onBlur: E, onFocus: b, hasError: r, FieldLayout: c, options: o } = g(), { inputId: f, labelId: C, ariaDescribedBy:
|
|
12
|
+
const { id: n, value: l, onChange: h, disabled: p, readOnly: O, required: m, onBlur: E, onFocus: b, hasError: r, FieldLayout: c, options: o } = g(), { inputId: f, labelId: C, ariaDescribedBy: I } = q(), s = u(e, i.Label), _ = u(e, i.Options), R = u(e, i.Description), N = u(e, i.Error), V = y(o, l) ? v : l || null;
|
|
13
13
|
return /* @__PURE__ */ a.createElement(c, {
|
|
14
14
|
fieldId: n,
|
|
15
|
-
renderLabel: () =>
|
|
15
|
+
renderLabel: () => L(s, {
|
|
16
16
|
as: "div"
|
|
17
17
|
}),
|
|
18
18
|
renderInput: () => /* @__PURE__ */ a.createElement(k, {
|
|
19
19
|
id: f,
|
|
20
20
|
className: t,
|
|
21
21
|
"aria-labelledby": C,
|
|
22
|
-
"aria-describedby":
|
|
22
|
+
"aria-describedby": I,
|
|
23
23
|
value: V,
|
|
24
24
|
onChange: h,
|
|
25
25
|
isDisabled: p,
|
|
@@ -28,11 +28,11 @@ const L = "Other", z = (e, t) => e == null ? void 0 : e.find((n) => (n.value ??
|
|
|
28
28
|
isInvalid: r,
|
|
29
29
|
onBlur: E,
|
|
30
30
|
onFocus: b
|
|
31
|
-
},
|
|
31
|
+
}, _),
|
|
32
32
|
renderDescription: () => /* @__PURE__ */ a.createElement(a.Fragment, null, N, R)
|
|
33
33
|
});
|
|
34
|
-
},
|
|
35
|
-
const { options: n, addOther: l, addOtherLabel: h, id: p, numberOfColumns: O, hasError: m } = g(), { t: E } = D(), b = u(e, i.Option), r = F(null), c = h || E("add-other.default-other-option-label") ||
|
|
34
|
+
}, z = ({ children: e, className: t }) => {
|
|
35
|
+
const { options: n, addOther: l, addOtherLabel: h, id: p, numberOfColumns: O, hasError: m } = g(), { t: E } = D(), b = u(e, i.Option), r = F(null), c = h || E("add-other.default-other-option-label") || v;
|
|
36
36
|
return x(() => {
|
|
37
37
|
var o;
|
|
38
38
|
(o = r.current) == null || o.focus({
|
|
@@ -42,21 +42,21 @@ const L = "Other", z = (e, t) => e == null ? void 0 : e.find((n) => (n.value ??
|
|
|
42
42
|
className: t,
|
|
43
43
|
"data-columns": O,
|
|
44
44
|
"data-invalid": m
|
|
45
|
-
}, n.map((o, f) =>
|
|
45
|
+
}, n.map((o, f) => L(b, {
|
|
46
46
|
key: o.value ?? o.label,
|
|
47
47
|
value: o.value ?? o.label,
|
|
48
48
|
label: o.label,
|
|
49
49
|
index: f,
|
|
50
50
|
radioRef: f === 0 ? r : void 0
|
|
51
|
-
})), l &&
|
|
52
|
-
key:
|
|
53
|
-
value:
|
|
51
|
+
})), l && L(b, {
|
|
52
|
+
key: v,
|
|
53
|
+
value: v,
|
|
54
54
|
label: c,
|
|
55
55
|
isOther: !0
|
|
56
56
|
}));
|
|
57
57
|
}, d = ({ children: e, className: t, ...n }) => {
|
|
58
|
-
var
|
|
59
|
-
const { value: l, label: h, isOther: p = !1, radioRef: O } = n, { value: m, options: E } = g(), b = u(e, d.Label), r = u(e, d.Input), c = u(e, d.Control), o = u(e, d.OtherInput), f = p ? y(E, m) : m === l, C = (
|
|
58
|
+
var I;
|
|
59
|
+
const { value: l, label: h, isOther: p = !1, radioRef: O } = n, { value: m, options: E } = g(), b = u(e, d.Label), r = u(e, d.Input), c = u(e, d.Control), o = u(e, d.OtherInput), f = p ? y(E, m) : m === l, C = (I = r == null ? void 0 : r.props) == null ? void 0 : I.className;
|
|
60
60
|
return /* @__PURE__ */ a.createElement("div", {
|
|
61
61
|
className: t
|
|
62
62
|
}, /* @__PURE__ */ a.createElement(A, {
|
|
@@ -64,29 +64,29 @@ const L = "Other", z = (e, t) => e == null ? void 0 : e.find((n) => (n.value ??
|
|
|
64
64
|
}, /* @__PURE__ */ a.createElement(G, {
|
|
65
65
|
ref: O,
|
|
66
66
|
className: C
|
|
67
|
-
}, ({ isSelected: s, isHovered:
|
|
67
|
+
}, ({ isSelected: s, isHovered: _, isFocused: R }) => /* @__PURE__ */ a.createElement(a.Fragment, null, L(c, {
|
|
68
68
|
isSelected: s,
|
|
69
|
-
isHovered:
|
|
69
|
+
isHovered: _,
|
|
70
70
|
isFocused: R
|
|
71
|
-
}),
|
|
71
|
+
}), L(b, {
|
|
72
72
|
label: h
|
|
73
73
|
})))), p && f && o);
|
|
74
|
-
},
|
|
74
|
+
}, K = ({ className: e, ...t }) => {
|
|
75
75
|
const { label: n } = t;
|
|
76
76
|
return /* @__PURE__ */ a.createElement("span", {
|
|
77
77
|
className: e
|
|
78
78
|
}, n);
|
|
79
|
-
},
|
|
80
|
-
const { value: t, onChange: n, addOtherLabel: l, addOtherPlaceholder: h, otherInputCharacterLimit: p, disabled: O, readOnly: m, options: E } = g(), { t: b } = D(), r = F(null), c = y(E, t), o = l || b("add-other.default-other-option-label") ||
|
|
79
|
+
}, Q = (e) => null, W = ({ className: e }) => {
|
|
80
|
+
const { value: t, onChange: n, addOtherLabel: l, addOtherPlaceholder: h, otherInputCharacterLimit: p, disabled: O, readOnly: m, options: E } = g(), { t: b } = D(), r = F(null), c = y(E, t), o = l || b("add-other.default-other-option-label") || v, [f, C] = T(c && t ? w(t, l) : "");
|
|
81
81
|
B(() => {
|
|
82
82
|
var s;
|
|
83
83
|
c && r.current && ((s = r.current) == null || s.focus());
|
|
84
84
|
}, [
|
|
85
85
|
c
|
|
86
86
|
]);
|
|
87
|
-
const
|
|
88
|
-
let
|
|
89
|
-
s ?
|
|
87
|
+
const I = H((s) => {
|
|
88
|
+
let _;
|
|
89
|
+
s ? _ = `${l}: ${s}` : _ = o, n(_), C(s);
|
|
90
90
|
}, [
|
|
91
91
|
n,
|
|
92
92
|
l,
|
|
@@ -95,7 +95,7 @@ const L = "Other", z = (e, t) => e == null ? void 0 : e.find((n) => (n.value ??
|
|
|
95
95
|
return /* @__PURE__ */ a.createElement(P, {
|
|
96
96
|
"aria-label": o,
|
|
97
97
|
value: f,
|
|
98
|
-
onChange:
|
|
98
|
+
onChange: I,
|
|
99
99
|
isDisabled: O,
|
|
100
100
|
isReadOnly: m
|
|
101
101
|
}, /* @__PURE__ */ a.createElement($, {
|
|
@@ -105,15 +105,15 @@ const L = "Other", z = (e, t) => e == null ? void 0 : e.find((n) => (n.value ??
|
|
|
105
105
|
maxLength: p
|
|
106
106
|
}));
|
|
107
107
|
};
|
|
108
|
-
d.Label =
|
|
109
|
-
d.Input =
|
|
110
|
-
d.Control =
|
|
111
|
-
d.OtherInput =
|
|
112
|
-
i.Label =
|
|
113
|
-
i.Options =
|
|
108
|
+
d.Label = K;
|
|
109
|
+
d.Input = Q;
|
|
110
|
+
d.Control = X;
|
|
111
|
+
d.OtherInput = W;
|
|
112
|
+
i.Label = J;
|
|
113
|
+
i.Options = z;
|
|
114
114
|
i.Option = d;
|
|
115
|
-
i.Description =
|
|
116
|
-
i.Error =
|
|
115
|
+
i.Description = M;
|
|
116
|
+
i.Error = U;
|
|
117
117
|
const Y = "_labelImage_1u9f2_1", Z = "_option_1u9f2_26", ee = "_optionInput_1u9f2_32", te = "_optionControl_1u9f2_50", oe = "_optionControlHover_1u9f2_72", ne = "_optionControlSelected_1u9f2_90", le = "_optionLabel_1u9f2_137", S = {
|
|
118
118
|
labelImage: Y,
|
|
119
119
|
option: Z,
|
package/dist/component/{radio-group-field-rac-BkSMEX4O.js → radio-group-field-rac-Ca2RlxOl.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 { a, s, R as n } from "./radio-button-module-classes-
|
|
4
|
+
import { a, s, R as n } from "./radio-button-module-classes-DIFYfYiH.js";
|
|
5
5
|
import { E as c } from "./error-icon-hZxQ6DEy.js";
|
|
6
6
|
import { s as r } from "./field-rac.module-DcyJyi2B.js";
|
|
7
|
-
import { X as i, am as E, ac as p, ad as O, M as R, I as _, ae as I } from "./form-
|
|
7
|
+
import { X as i, am as E, ac as p, ad as O, M as R, I as _, ae as I } from "./form-BG5UjjLA.js";
|
|
8
8
|
import { o as L } from "./options-rac.module-_THNq6Qq.js";
|
|
9
|
-
import { u as N } from "./use-element-state-class-name-
|
|
10
|
-
import { u } from "./use-text-input-class-name-
|
|
9
|
+
import { u as N } from "./use-element-state-class-name-C8jFeDrq.js";
|
|
10
|
+
import { u } from "./use-text-input-class-name-D6AnBbJx.js";
|
|
11
11
|
const D = ({ content: o, locale: l }) => /* @__PURE__ */ e.createElement(m, {
|
|
12
12
|
content: o,
|
|
13
13
|
locale: l
|
package/dist/component/{rating-input-field-rac-CocnyJZF.js → rating-input-field-rac-0kyPo9cU.js}
RENAMED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { RicosViewer as y } from "@wix/ricos/viewer";
|
|
2
2
|
import u from "classnames";
|
|
3
3
|
import e, { useCallback as N, useState as O, useRef as A } from "react";
|
|
4
|
-
import {
|
|
4
|
+
import { bM as I, bJ as v, bX as M, X as T, am as H, af as w, M as B, I as P, ag as q } from "./form-BG5UjjLA.js";
|
|
5
5
|
import { RadioGroup as G, RadioField as k, RadioButton as x } from "react-aria-components";
|
|
6
6
|
import { f as E, a as U } from "./find-child-C60k4CxG.js";
|
|
7
|
-
import { D as
|
|
8
|
-
import { L as
|
|
9
|
-
import { E as
|
|
7
|
+
import { D as X, E as z } from "./field-error-headless-RTyrenpC.js";
|
|
8
|
+
import { L as J } from "./field-label-headless-Bd00Hl2z.js";
|
|
9
|
+
import { E as Q } from "./error-icon-hZxQ6DEy.js";
|
|
10
10
|
import { s as g } from "./field-rac.module-DcyJyi2B.js";
|
|
11
|
-
import { u as
|
|
11
|
+
import { u as Z } from "./use-element-state-class-name-C8jFeDrq.js";
|
|
12
12
|
const t = ({ children: a }) => {
|
|
13
13
|
const { id: n, value: r, onChange: i, disabled: l, readOnly: m, required: d, hasError: c, onBlur: o, onFocus: C, FieldLayout: R } = I(), { labelId: _ } = v(), L = N((D) => i(Number(D)), [
|
|
14
14
|
i
|
|
@@ -52,7 +52,7 @@ const t = ({ children: a }) => {
|
|
|
52
52
|
onHoverChange: (S) => C(S ? s : void 0),
|
|
53
53
|
label: r == null ? void 0 : r(Number(s))
|
|
54
54
|
})));
|
|
55
|
-
},
|
|
55
|
+
}, j = {
|
|
56
56
|
border: 0,
|
|
57
57
|
clipPath: "inset(50%)",
|
|
58
58
|
height: 1,
|
|
@@ -79,15 +79,15 @@ const t = ({ children: a }) => {
|
|
|
79
79
|
isHovered: c,
|
|
80
80
|
isFocused: o
|
|
81
81
|
}) : n, d ? /* @__PURE__ */ e.createElement("span", {
|
|
82
|
-
style:
|
|
82
|
+
style: j
|
|
83
83
|
}, d) : null)));
|
|
84
84
|
};
|
|
85
85
|
b.Rating = F;
|
|
86
|
-
t.Label =
|
|
86
|
+
t.Label = J;
|
|
87
87
|
t.Ratings = b;
|
|
88
88
|
t.Rating = F;
|
|
89
|
-
t.Description =
|
|
90
|
-
t.Error =
|
|
89
|
+
t.Description = X;
|
|
90
|
+
t.Error = z;
|
|
91
91
|
const K = (a) => /* @__PURE__ */ e.createElement("svg", {
|
|
92
92
|
viewBox: "0 0 32 32",
|
|
93
93
|
width: 32,
|
|
@@ -111,7 +111,7 @@ const K = (a) => /* @__PURE__ */ e.createElement("svg", {
|
|
|
111
111
|
selected: p.ratingSelected,
|
|
112
112
|
hover: p.ratingHover
|
|
113
113
|
}, Ee = () => {
|
|
114
|
-
const { t: a } = M(), n =
|
|
114
|
+
const { t: a } = M(), n = Z({
|
|
115
115
|
globalClasses: q,
|
|
116
116
|
moduleClasses: te
|
|
117
117
|
});
|
|
@@ -128,7 +128,7 @@ const K = (a) => /* @__PURE__ */ e.createElement("svg", {
|
|
|
128
128
|
className: n
|
|
129
129
|
}, /* @__PURE__ */ e.createElement(K, null))), /* @__PURE__ */ e.createElement(t.Error, {
|
|
130
130
|
className: u(B, g.error)
|
|
131
|
-
}, /* @__PURE__ */ e.createElement(
|
|
131
|
+
}, /* @__PURE__ */ e.createElement(Q, null), /* @__PURE__ */ e.createElement(t.Error.Text, null)), /* @__PURE__ */ e.createElement(t.Description, {
|
|
132
132
|
className: u(P, g.description)
|
|
133
133
|
}, ee));
|
|
134
134
|
};
|
package/dist/component/{rich-content-rac.module-QspdFAOQ.js → rich-content-rac.module-2T_-7jvb.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import c, { useState as u } from "react";
|
|
2
|
-
import {
|
|
2
|
+
import { bM as a, bE as i, bX as T } from "./form-BG5UjjLA.js";
|
|
3
3
|
import { Button as d } from "react-aria-components";
|
|
4
4
|
import { D as r } from "./data-hooks-Dkw1pbRj.js";
|
|
5
5
|
import { truncateRichContent as _ } from "@wix/ricos/content";
|
|
@@ -24,7 +24,7 @@ const O = ({ children: e }) => {
|
|
|
24
24
|
"data-hook": s
|
|
25
25
|
}, o);
|
|
26
26
|
};
|
|
27
|
-
function
|
|
27
|
+
function B(e, t) {
|
|
28
28
|
const [n, o] = u(!0);
|
|
29
29
|
function s() {
|
|
30
30
|
o((l) => !l);
|
|
@@ -38,12 +38,12 @@ function D(e, t) {
|
|
|
38
38
|
toggleTruncate: s
|
|
39
39
|
};
|
|
40
40
|
}
|
|
41
|
-
const C = "_richContent_1galb_1",
|
|
41
|
+
const C = "_richContent_1galb_1", D = {
|
|
42
42
|
richContent: C
|
|
43
43
|
};
|
|
44
44
|
export {
|
|
45
45
|
O as R,
|
|
46
46
|
p as T,
|
|
47
|
-
|
|
48
|
-
|
|
47
|
+
D as s,
|
|
48
|
+
B as u
|
|
49
49
|
};
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import l from "classnames";
|
|
2
2
|
import e from "react";
|
|
3
|
-
import {
|
|
4
|
-
import { u as C, R as d, s as
|
|
3
|
+
import { bM as m, aY as i, aG as u, bn as R, bq as T } from "./form-BG5UjjLA.js";
|
|
4
|
+
import { u as C, R as d, s as g, T as p } from "./rich-content-rac.module-2T_-7jvb.js";
|
|
5
5
|
const h = {
|
|
6
6
|
colorPalette: T(),
|
|
7
7
|
customStyles: R()
|
|
8
8
|
}, P = ({ truncate: t = !0 } = {}) => {
|
|
9
9
|
const { content: a, maxShownParagraphs: s } = m(), { displayedContent: n, isTruncated: o, isTruncateButtonShown: r, toggleTruncate: c } = C(a, t ? s : void 0);
|
|
10
10
|
return /* @__PURE__ */ e.createElement(d, null, () => /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(i, {
|
|
11
|
-
className: l(u,
|
|
11
|
+
className: l(u, g.richContent),
|
|
12
12
|
content: n,
|
|
13
13
|
customTheme: h
|
|
14
|
-
}), r && /* @__PURE__ */ e.createElement(
|
|
14
|
+
}), r && /* @__PURE__ */ e.createElement(p, {
|
|
15
15
|
isTruncated: o,
|
|
16
16
|
onClick: c
|
|
17
17
|
})));
|
package/dist/component/{service-dropdown-rac-BIXPgFFy.js → service-dropdown-rac-BMJy2pZ5.js}
RENAMED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import o, { useRef as T, useMemo as _, useCallback as
|
|
1
|
+
import o, { useRef as T, useMemo as _, useCallback as C, useEffect as b } from "react";
|
|
2
2
|
import { RicosViewer as w } from "@wix/ricos/viewer";
|
|
3
3
|
import E from "classnames";
|
|
4
|
-
import {
|
|
5
|
-
import { u as B } from "./use-service-options-base-
|
|
6
|
-
import { D as u, u as
|
|
7
|
-
import { C as
|
|
8
|
-
import { E as
|
|
4
|
+
import { bI as P, bX as A, F as M, bM as y, bE as V, aN as x, X as H, am as U, J as W, M as k, I as q } from "./form-BG5UjjLA.js";
|
|
5
|
+
import { u as B } from "./use-service-options-base-yM4rJlq1.js";
|
|
6
|
+
import { D as u, u as X } from "./use-dropdown-trigger-class-name-zVniRqM7.js";
|
|
7
|
+
import { C as J } from "./chevron-down-icon-CcpVm6B-.js";
|
|
8
|
+
import { E as Q } from "./error-icon-hZxQ6DEy.js";
|
|
9
9
|
import { H as Y } from "./custom-focus-class-_483Pkwp.js";
|
|
10
10
|
import { s as i } from "./field-rac.module-DcyJyi2B.js";
|
|
11
|
-
import { u as j } from "./use-dropdown-option-class-name-
|
|
11
|
+
import { u as j } from "./use-dropdown-option-class-name-Dd4ncVaY.js";
|
|
12
12
|
const z = "00000000-0000-0000-0000-000000000000", G = (e) => {
|
|
13
|
-
const { actions: t } = P(), { t:
|
|
13
|
+
const { actions: t } = P(), { t: D } = A(), { addOther: n, addOtherLabel: p } = e, c = p || D("add-other.default-other-option-label"), a = T(!0), d = _(() => {
|
|
14
14
|
var s;
|
|
15
15
|
return ((s = e.options) == null ? void 0 : s.map((m) => m.id ?? "")) ?? [];
|
|
16
16
|
}, [
|
|
17
17
|
e.options
|
|
18
|
-
]), O =
|
|
18
|
+
]), O = C((s) => n ? [
|
|
19
19
|
...s,
|
|
20
20
|
{
|
|
21
21
|
value: c,
|
|
@@ -25,11 +25,11 @@ const z = "00000000-0000-0000-0000-000000000000", G = (e) => {
|
|
|
25
25
|
] : s, [
|
|
26
26
|
n,
|
|
27
27
|
c
|
|
28
|
-
]), { isLoading: f, options: l, isEmpty: h, shouldRender: I, setIsLoading: S, setOptions:
|
|
28
|
+
]), { isLoading: f, options: l, isEmpty: h, shouldRender: I, setIsLoading: S, setOptions: R, setIsEmpty: g, processOptions: F } = B({
|
|
29
29
|
fieldType: M.SERVICES_DROPDOWN,
|
|
30
30
|
isEditor: e.isEditor,
|
|
31
31
|
postProcessOptions: O
|
|
32
|
-
}),
|
|
32
|
+
}), L = C(async () => {
|
|
33
33
|
if (a.current && (t != null && t.fetchServices) && d.length > 0) {
|
|
34
34
|
a.current = !1, S(!0);
|
|
35
35
|
let s;
|
|
@@ -41,8 +41,8 @@ const z = "00000000-0000-0000-0000-000000000000", G = (e) => {
|
|
|
41
41
|
console.error(m);
|
|
42
42
|
}
|
|
43
43
|
if (s) {
|
|
44
|
-
const m =
|
|
45
|
-
g(!n && m.length === 0),
|
|
44
|
+
const m = F(s);
|
|
45
|
+
g(!n && m.length === 0), R(m);
|
|
46
46
|
} else
|
|
47
47
|
a.current = !0;
|
|
48
48
|
S(!1);
|
|
@@ -50,10 +50,10 @@ const z = "00000000-0000-0000-0000-000000000000", G = (e) => {
|
|
|
50
50
|
}, [
|
|
51
51
|
t,
|
|
52
52
|
d,
|
|
53
|
-
|
|
53
|
+
F,
|
|
54
54
|
n,
|
|
55
55
|
S,
|
|
56
|
-
|
|
56
|
+
R,
|
|
57
57
|
g
|
|
58
58
|
]);
|
|
59
59
|
b(() => {
|
|
@@ -67,12 +67,12 @@ const z = "00000000-0000-0000-0000-000000000000", G = (e) => {
|
|
|
67
67
|
g,
|
|
68
68
|
e.isEditor
|
|
69
69
|
]);
|
|
70
|
-
const N =
|
|
71
|
-
e.onFocus && e.onFocus(), a.current &&
|
|
70
|
+
const N = C(() => {
|
|
71
|
+
e.onFocus && e.onFocus(), a.current && L();
|
|
72
72
|
}, [
|
|
73
|
-
|
|
73
|
+
L,
|
|
74
74
|
e.onFocus
|
|
75
|
-
]), v =
|
|
75
|
+
]), v = C(
|
|
76
76
|
(s) => {
|
|
77
77
|
e.onChange && e.onChange(s), a.current = !0;
|
|
78
78
|
},
|
|
@@ -90,7 +90,7 @@ const z = "00000000-0000-0000-0000-000000000000", G = (e) => {
|
|
|
90
90
|
shouldRender: I
|
|
91
91
|
};
|
|
92
92
|
}, r = ({ children: e }) => {
|
|
93
|
-
const t = y(), { addOther:
|
|
93
|
+
const t = y(), { addOther: D } = t, n = V(), p = t.isEditor || n.isEditor || n.isComposer, { isLoading: c, options: a, isEmpty: d, onFocus: O, onChange: f, shouldRender: l } = G({
|
|
94
94
|
...t,
|
|
95
95
|
isEditor: p
|
|
96
96
|
}), h = _(() => ({
|
|
@@ -106,7 +106,7 @@ const z = "00000000-0000-0000-0000-000000000000", G = (e) => {
|
|
|
106
106
|
O,
|
|
107
107
|
f
|
|
108
108
|
]);
|
|
109
|
-
return !p && d && !
|
|
109
|
+
return !p && d && !D || !l ? null : /* @__PURE__ */ o.createElement(x.Provider, {
|
|
110
110
|
value: {
|
|
111
111
|
v2: h
|
|
112
112
|
}
|
|
@@ -121,14 +121,14 @@ const K = ({ content: e, locale: t }) => /* @__PURE__ */ o.createElement(w, {
|
|
|
121
121
|
content: e,
|
|
122
122
|
locale: t
|
|
123
123
|
}), Z = () => {
|
|
124
|
-
const e =
|
|
124
|
+
const e = X(i.dropdownTrigger), t = j(Y);
|
|
125
125
|
return /* @__PURE__ */ o.createElement(r, null, /* @__PURE__ */ o.createElement(r.Label, {
|
|
126
|
-
className: E(
|
|
126
|
+
className: E(H, i.label)
|
|
127
127
|
}, /* @__PURE__ */ o.createElement(r.Label.Required, {
|
|
128
128
|
className: E(U, i.requiredMark)
|
|
129
129
|
})), /* @__PURE__ */ o.createElement(r.Trigger, {
|
|
130
130
|
className: e
|
|
131
|
-
}, /* @__PURE__ */ o.createElement(
|
|
131
|
+
}, /* @__PURE__ */ o.createElement(J, {
|
|
132
132
|
className: i.dropdownIcon
|
|
133
133
|
})), /* @__PURE__ */ o.createElement(r.Options, {
|
|
134
134
|
className: E(W, i.selectPopover, i.dropdownPopover)
|
|
@@ -136,7 +136,7 @@ const K = ({ content: e, locale: t }) => /* @__PURE__ */ o.createElement(w, {
|
|
|
136
136
|
className: t
|
|
137
137
|
})), /* @__PURE__ */ o.createElement(r.Error, {
|
|
138
138
|
className: E(k, i.error)
|
|
139
|
-
}, /* @__PURE__ */ o.createElement(
|
|
139
|
+
}, /* @__PURE__ */ o.createElement(Q, null), /* @__PURE__ */ o.createElement(r.Error.Text, null)), /* @__PURE__ */ o.createElement(r.Description, {
|
|
140
140
|
className: E(q, i.description)
|
|
141
141
|
}, K));
|
|
142
142
|
}, me = () => /* @__PURE__ */ o.createElement(Z, null);
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import e, { useEffect as I, useMemo as L } from "react";
|
|
2
2
|
import { RicosViewer as S } from "@wix/ricos/viewer";
|
|
3
3
|
import a from "classnames";
|
|
4
|
-
import { F as R,
|
|
5
|
-
import { u as v } from "./use-service-options-base-
|
|
6
|
-
import { C as i } from "./checkbox-group-field-headless-
|
|
4
|
+
import { F as R, bM as d, aN as D, X as N, am as F, p as f, r as h, M, I as b, q as A } from "./form-BG5UjjLA.js";
|
|
5
|
+
import { u as v } from "./use-service-options-base-yM4rJlq1.js";
|
|
6
|
+
import { C as i } from "./checkbox-group-field-headless-CTDMO0TM.js";
|
|
7
7
|
import { E as x } from "./error-icon-hZxQ6DEy.js";
|
|
8
8
|
import { C as P } from "./checkbox-indicator-module-classes-DOxE4UQg.js";
|
|
9
9
|
import { s as n } from "./field-rac.module-DcyJyi2B.js";
|
|
10
10
|
import { o as _ } from "./options-rac.module-_THNq6Qq.js";
|
|
11
|
-
import { u as T } from "./use-element-state-class-name-
|
|
12
|
-
import { u as k } from "./use-text-input-class-name-
|
|
11
|
+
import { u as T } from "./use-element-state-class-name-C8jFeDrq.js";
|
|
12
|
+
import { u as k } from "./use-text-input-class-name-D6AnBbJx.js";
|
|
13
13
|
const y = (s) => {
|
|
14
14
|
var C;
|
|
15
15
|
const { isLoading: o, options: r, isEmpty: l, shouldRender: E, setOptions: c, setIsEmpty: m, setHasInitialDataLoaded: p } = v({
|
|
@@ -76,9 +76,9 @@ const B = ({ content: s, locale: o }) => /* @__PURE__ */ e.createElement(S, {
|
|
|
76
76
|
})), /* @__PURE__ */ e.createElement(t.Options.Option.OtherInput, {
|
|
77
77
|
inputClassName: o
|
|
78
78
|
}))), /* @__PURE__ */ e.createElement(t.Error, {
|
|
79
|
-
className: a(
|
|
79
|
+
className: a(M, n.error)
|
|
80
80
|
}, /* @__PURE__ */ e.createElement(x, null), /* @__PURE__ */ e.createElement(t.Error.Text, null)), /* @__PURE__ */ e.createElement(t.Description, {
|
|
81
|
-
className: a(
|
|
81
|
+
className: a(b, n.description)
|
|
82
82
|
}, B));
|
|
83
83
|
}, J = () => /* @__PURE__ */ e.createElement(H, null);
|
|
84
84
|
export {
|
|
@@ -2,17 +2,17 @@ import r, { useRef as $, useContext as Se, useMemo as he, useCallback as y, useS
|
|
|
2
2
|
import Fe from "@wix/editor-react-components/AnimatedIcon";
|
|
3
3
|
import { RicosViewer as we } from "@wix/ricos/viewer";
|
|
4
4
|
import F from "classnames";
|
|
5
|
-
import {
|
|
5
|
+
import { be as xe, bG as Le, aR as Ue, F as Be, bI as Oe, bE as Pe, bU as Te, E as me, aH as oe, bM as x, bJ as W, bO as Ie, bX as Me, bF as He, X as We, am as Ye, an as Ge, ao as Ze, b as ke, au as Ve, av as pe, M as $e, I as ze, ap as Xe, as as qe, aq as je, at as Je, f as ne, ar as Ke } from "./form-BG5UjjLA.js";
|
|
6
6
|
import { useHover as Qe, useFocusRing as et, mergeProps as tt } from "react-aria";
|
|
7
7
|
import { RadioGroup as nt, Button as Ce, TextField as at, DropZone as ot, Input as st, FileTrigger as rt, RadioField as lt, RadioButton as it } from "react-aria-components";
|
|
8
8
|
import _e from "signature_pad";
|
|
9
9
|
import { f as C, a as N } from "./find-child-C60k4CxG.js";
|
|
10
|
-
import { D as ct, E as ut } from "./field-error-headless-
|
|
11
|
-
import { L as dt } from "./field-label-headless-
|
|
10
|
+
import { D as ct, E as ut } from "./field-error-headless-RTyrenpC.js";
|
|
11
|
+
import { L as dt } from "./field-label-headless-Bd00Hl2z.js";
|
|
12
12
|
import { D as mt } from "./data-hooks-Dkw1pbRj.js";
|
|
13
13
|
import { E as pt } from "./error-icon-hZxQ6DEy.js";
|
|
14
14
|
import { s as ae } from "./field-rac.module-DcyJyi2B.js";
|
|
15
|
-
import { u as X } from "./use-element-state-class-name-
|
|
15
|
+
import { u as X } from "./use-element-state-class-name-C8jFeDrq.js";
|
|
16
16
|
const ft = typeof r.useId == "function" ? r.useId : () => $(xe()).current, Et = ({ properties: e }) => e.uploadEnabled === !0, gt = (e, t) => e.fieldType === Be.SIGNATURE && !e.properties.hidden && !e.properties.disabled && !e.properties.readOnly && (t !== "upload" || Et(e)), ht = (e, t) => e.layout.row - t.layout.row || e.layout.column - t.layout.column, bt = (e) => {
|
|
17
17
|
var o;
|
|
18
18
|
const t = (o = Le().signature) == null ? void 0 : o.signatureMode, a = Se(Ue);
|
|
@@ -480,8 +480,8 @@ const Bt = (e) => {
|
|
|
480
480
|
onBlur: u,
|
|
481
481
|
onFocus: d
|
|
482
482
|
}));
|
|
483
|
-
},
|
|
484
|
-
const { value: o, onChange: s, onBeforeChange: l, disabled: i, readOnly: c, onBlur: u, onFocus: d } = n, { id: f } = x(), { inputId: m, ariaDescribedBy: L } = W(), h = ce(), p = $(), g = $(), E = $(null), S = o == null ? void 0 : o.url, [
|
|
483
|
+
}, Gt = ({ className: e, emptyLabel: t, signedLabel: a, ...n }) => {
|
|
484
|
+
const { value: o, onChange: s, onBeforeChange: l, disabled: i, readOnly: c, onBlur: u, onFocus: d } = n, { id: f } = x(), { inputId: m, ariaDescribedBy: L } = W(), h = ce(), p = $(), g = $(), E = $(null), S = o == null ? void 0 : o.url, [G, P] = q(!1);
|
|
485
485
|
Ie(() => {
|
|
486
486
|
var _;
|
|
487
487
|
(_ = g.current) == null || _.focus({
|
|
@@ -507,7 +507,7 @@ const Bt = (e) => {
|
|
|
507
507
|
}, [
|
|
508
508
|
ee,
|
|
509
509
|
s
|
|
510
|
-
]),
|
|
510
|
+
]), Z = y(() => {
|
|
511
511
|
l == null || l();
|
|
512
512
|
}, [
|
|
513
513
|
l
|
|
@@ -522,15 +522,15 @@ const Bt = (e) => {
|
|
|
522
522
|
k && (p.current.fromData(k), P(!0));
|
|
523
523
|
} else
|
|
524
524
|
p.current.clear(), P(!1);
|
|
525
|
-
p.current.addEventListener("beginStroke",
|
|
525
|
+
p.current.addEventListener("beginStroke", Z), p.current.addEventListener("endStroke", z), typeof ResizeObserver < "u" && !E.current && (E.current = new ResizeObserver(() => {
|
|
526
526
|
g.current && Ee(g.current, p == null ? void 0 : p.current);
|
|
527
527
|
})), (U = E.current) == null || U.observe(_);
|
|
528
528
|
} else
|
|
529
|
-
(B = E.current) == null || B.disconnect(), (D = p.current) == null || D.removeEventListener("endStroke", z), (O = p.current) == null || O.removeEventListener("beginStroke",
|
|
529
|
+
(B = E.current) == null || B.disconnect(), (D = p.current) == null || D.removeEventListener("endStroke", z), (O = p.current) == null || O.removeEventListener("beginStroke", Z);
|
|
530
530
|
}, [
|
|
531
531
|
v,
|
|
532
532
|
S,
|
|
533
|
-
|
|
533
|
+
Z,
|
|
534
534
|
z
|
|
535
535
|
]);
|
|
536
536
|
return le(() => {
|
|
@@ -550,7 +550,7 @@ const Bt = (e) => {
|
|
|
550
550
|
onFocus: d,
|
|
551
551
|
onBlur: u,
|
|
552
552
|
role: "img",
|
|
553
|
-
"aria-label":
|
|
553
|
+
"aria-label": G ? a : t,
|
|
554
554
|
"aria-describedby": L
|
|
555
555
|
}));
|
|
556
556
|
}, de = ({ children: e, className: t, ...a }) => {
|
|
@@ -571,7 +571,7 @@ const Bt = (e) => {
|
|
|
571
571
|
n,
|
|
572
572
|
L
|
|
573
573
|
]);
|
|
574
|
-
const
|
|
574
|
+
const G = y((v) => {
|
|
575
575
|
s == null || s(), v.trim() ? o(ie(Ae({
|
|
576
576
|
data: v,
|
|
577
577
|
mimeType: R.TEXT
|
|
@@ -583,7 +583,7 @@ const Bt = (e) => {
|
|
|
583
583
|
return /* @__PURE__ */ r.createElement(at, {
|
|
584
584
|
"aria-labelledby": p,
|
|
585
585
|
value: S,
|
|
586
|
-
onChange:
|
|
586
|
+
onChange: G,
|
|
587
587
|
onBlur: c,
|
|
588
588
|
onFocus: u,
|
|
589
589
|
isDisabled: l,
|
|
@@ -598,7 +598,7 @@ const Bt = (e) => {
|
|
|
598
598
|
inputId: L,
|
|
599
599
|
ariaDescribedBy: h
|
|
600
600
|
})));
|
|
601
|
-
},
|
|
601
|
+
}, Zt = ({ className: e, placeholder: t, ...a }) => {
|
|
602
602
|
const { inputId: n, ariaDescribedBy: o } = a;
|
|
603
603
|
return /* @__PURE__ */ r.createElement(st, {
|
|
604
604
|
id: n,
|
|
@@ -707,10 +707,10 @@ K.Clear = Yt;
|
|
|
707
707
|
M.Draw = Mt;
|
|
708
708
|
M.Type = Ht;
|
|
709
709
|
M.Upload = Wt;
|
|
710
|
-
H.Canvas =
|
|
710
|
+
H.Canvas = Gt;
|
|
711
711
|
H.Type = de;
|
|
712
712
|
H.Upload = Q;
|
|
713
|
-
de.Value =
|
|
713
|
+
de.Value = Zt;
|
|
714
714
|
Q.Preview = kt;
|
|
715
715
|
Q.Button = se;
|
|
716
716
|
se.Text = Vt;
|
|
@@ -793,7 +793,7 @@ const $t = () => {
|
|
|
793
793
|
content: e,
|
|
794
794
|
locale: t
|
|
795
795
|
}), hn = () => {
|
|
796
|
-
var
|
|
796
|
+
var Z, te, _, w, U, B;
|
|
797
797
|
const e = $t(), { disabled: t, readOnly: a } = x(), n = !t && !a, o = X({
|
|
798
798
|
globalClasses: Ke,
|
|
799
799
|
moduleClasses: {
|
|
@@ -838,19 +838,19 @@ const $t = () => {
|
|
|
838
838
|
base: T.uploadButton,
|
|
839
839
|
hover: T.uploadButtonHover
|
|
840
840
|
}
|
|
841
|
-
}), m = (B = (U = (w = (_ = (te = (
|
|
841
|
+
}), m = (B = (U = (w = (_ = (te = (Z = Le().signature) == null ? void 0 : Z.elementProps) == null ? void 0 : te.dropZone) == null ? void 0 : _.elementProps) == null ? void 0 : w.uploadButton) == null ? void 0 : U.elementProps) == null ? void 0 : B.icon, { wix: L, className: h, ...p } = m ?? {}, g = He(ne.SIGNATURE, ne.SIGNATURE_DROP_ZONE, ne.SIGNATURE_UPLOAD_BUTTON, ne.UPLOAD_BUTTON_LABEL), E = $(null), [S, G] = q(!1), [P, v] = q(!1), ee = y(() => {
|
|
842
842
|
var D;
|
|
843
|
-
|
|
843
|
+
G(!0), (D = E.current) == null || D.runAnimationForward();
|
|
844
844
|
}, []), z = y(() => {
|
|
845
845
|
var D;
|
|
846
|
-
|
|
846
|
+
G(!1), (D = E.current) == null || D.runAnimationBackward();
|
|
847
847
|
}, []);
|
|
848
848
|
return /* @__PURE__ */ r.createElement(b, null, /* @__PURE__ */ r.createElement(b.Label, {
|
|
849
849
|
className: F(We, ae.label)
|
|
850
850
|
}, /* @__PURE__ */ r.createElement(b.Label.Required, {
|
|
851
851
|
className: F(Ye, ae.requiredMark)
|
|
852
852
|
})), /* @__PURE__ */ r.createElement(b.Input, {
|
|
853
|
-
className: F(
|
|
853
|
+
className: F(Ge, T.container)
|
|
854
854
|
}, /* @__PURE__ */ r.createElement(b.Input.Header, {
|
|
855
855
|
className: T.header
|
|
856
856
|
}, /* @__PURE__ */ r.createElement(b.Input.Header.Tabs, {
|
|
@@ -874,7 +874,7 @@ const $t = () => {
|
|
|
874
874
|
}, /* @__PURE__ */ r.createElement(Xt, {
|
|
875
875
|
className: T.tabIcon
|
|
876
876
|
}))), /* @__PURE__ */ r.createElement(b.Input.Header.Clear, {
|
|
877
|
-
className: F(
|
|
877
|
+
className: F(Ze, T.clear),
|
|
878
878
|
"aria-label": e.clearLabel
|
|
879
879
|
}, /* @__PURE__ */ r.createElement(zt, null))), /* @__PURE__ */ r.createElement(b.Input.Value, {
|
|
880
880
|
className: T.value
|