@wix/form-elements 1.64.0 → 1.65.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-DojiZqx9.js → appointment-rac-0kUk8XQJ.js} +35 -35
- package/dist/component/{bookings-address-rac-Bm_lQchD.js → bookings-address-rac-BUM0wpw0.js} +1 -1
- package/dist/component/{bookings-email-rac-vwuy0kW8.js → bookings-email-rac-BHlvupVS.js} +1 -1
- package/dist/component/{bookings-first-name-rac-BbWuLoeg.js → bookings-first-name-rac-Bwn6xv1U.js} +1 -1
- package/dist/component/{bookings-header-rac-DVknNH29.js → bookings-header-rac-BkRvQMi4.js} +1 -1
- package/dist/component/{bookings-last-name-rac-BnT3Cq0b.js → bookings-last-name-rac-DRTj4VdX.js} +1 -1
- package/dist/component/{bookings-login-bar-rac-DKi-VAXc.js → bookings-login-bar-rac-D-2Bt7Kx.js} +2 -2
- package/dist/component/{bookings-phone-rac-Bfy8rheB.js → bookings-phone-rac-CTcHHpDr.js} +1 -1
- package/dist/component/{bookings-rich-text-rac-DGiBDcXw.js → bookings-rich-text-rac-n-w9iWII.js} +1 -1
- package/dist/component/{checkbox-field-rac-CYADRY54.js → checkbox-field-rac-BamOJv3P.js} +43 -43
- package/dist/component/{checkbox-group-field-headless-BDAFpX5F.js → checkbox-group-field-headless-BmKJbEi0.js} +3 -3
- package/dist/component/{checkbox-group-field-rac-2YUsOmDI.js → checkbox-group-field-rac-CC8qfj0Y.js} +6 -6
- package/dist/component/{checkbox-group-rac-CQf1C9H5.js → checkbox-group-rac-CsrP7zD5.js} +1 -1
- package/dist/component/{checkbox-rac-Bjv8jZjs.js → checkbox-rac-X6E-fJ8k.js} +1 -1
- package/dist/component/{contacts-address-rac-BBTiEec9.js → contacts-address-rac-oYnkIZ6m.js} +1 -1
- package/dist/component/{contacts-birthdate-rac-XReeFHVW.js → contacts-birthdate-rac-B7p8LgYA.js} +1 -1
- package/dist/component/{contacts-company-rac-B-fUQszu.js → contacts-company-rac-cjLRO5J-.js} +1 -1
- package/dist/component/{contacts-email-rac-DBtcCcsV.js → contacts-email-rac-BlJJSkGK.js} +1 -1
- package/dist/component/{contacts-first-name-rac-mkwU3706.js → contacts-first-name-rac-Nl-MDndn.js} +1 -1
- package/dist/component/{contacts-last-name-rac-DY5N-AZx.js → contacts-last-name-rac-DhxAobRI.js} +1 -1
- package/dist/component/{contacts-phone-rac-Ce1rMz_z.js → contacts-phone-rac-CZLWlH0T.js} +1 -1
- package/dist/component/{contacts-position-rac-B65H8PDu.js → contacts-position-rac-DlKC0lCU.js} +1 -1
- package/dist/component/contacts-subscribe-rac-POSKh1Ta.js +13 -0
- package/dist/component/{contacts-tax-id-rac-Jtt0ySK2.js → contacts-tax-id-rac-uyBKxOJn.js} +1 -1
- package/dist/component/{date-availability-B8UwvTJa.js → date-availability-DnFJD1aS.js} +1 -1
- package/dist/component/{date-input-field-rac-RL2a0xoD.js → date-input-field-rac-DojzGm-i.js} +30 -30
- package/dist/component/{date-input-rac-ak3G7V07.js → date-input-rac-BaPKcAuU.js} +1 -1
- package/dist/component/{date-picker-field-rac-SL_Roltf.js → date-picker-field-rac-C1rzJMV8.js} +16 -16
- package/dist/component/{date-picker-rac-ByrM0YIX.js → date-picker-rac-BHsOfkYn.js} +1 -1
- package/dist/component/{date-time-input-field-rac-DOE7xcKi.js → date-time-input-field-rac-B4jAAxU8.js} +15 -15
- package/dist/component/{date-time-input-rac-BA-GyrAc.js → date-time-input-rac-XyL5z_ma.js} +1 -1
- package/dist/component/{dext-checkbox-group-rac-EwUnBO80.js → dext-checkbox-group-rac-DzpdOP3i.js} +2 -2
- package/dist/component/{dext-checkbox-rac-CIRKi4B5.js → dext-checkbox-rac-BUWkvW5s.js} +1 -1
- package/dist/component/{dext-date-picker-rac-BYO_Q1zM.js → dext-date-picker-rac-CR0PUoOn.js} +1 -1
- package/dist/component/{dext-date-time-input-rac-BOahPeaH.js → dext-date-time-input-rac-D3WhLSKK.js} +1 -1
- package/dist/component/{dext-dropdown-rac-sTD_r-0H.js → dext-dropdown-rac-BJ1UfAIM.js} +1 -1
- package/dist/component/{dext-email-rac-e-2_h3he.js → dext-email-rac-xk_5C79-.js} +1 -1
- package/dist/component/{dext-number-input-rac-D6LACzWl.js → dext-number-input-rac-Cu1Sqoac.js} +1 -1
- package/dist/component/{dext-phone-rac-kUycy5Od.js → dext-phone-rac-S34qxXwg.js} +1 -1
- package/dist/component/{dext-radio-group-rac-DPD2UkrV.js → dext-radio-group-rac-DXnAk_eU.js} +2 -2
- package/dist/component/{dext-rating-input-rac-DUsnrl9W.js → dext-rating-input-rac-ewGpgB63.js} +1 -1
- package/dist/component/{dext-tags-rac-D6z69HuO.js → dext-tags-rac-BApZKGqP.js} +2 -2
- package/dist/component/{dext-text-area-rac-C-DVtFJ1.js → dext-text-area-rac-DBtuaiwM.js} +1 -1
- package/dist/component/{dext-text-input-rac-CIa2MdC6.js → dext-text-input-rac-qI8VECmA.js} +1 -1
- package/dist/component/{dext-url-input-rac-8rVVW5us.js → dext-url-input-rac-C6vzqNjn.js} +1 -1
- package/dist/component/donation-rac-BDVKvG4j.js +302 -0
- package/dist/component/{dropdown-field-headless-DReo519l.js → dropdown-field-headless-DBl8vGed.js} +3 -3
- package/dist/component/{dropdown-field-rac-DzrjA2O6.js → dropdown-field-rac-O6G7_kSn.js} +7 -7
- package/dist/component/{dropdown-rac-CS7oLTp_.js → dropdown-rac-BImZ5Jwe.js} +1 -1
- package/dist/component/{ecom-address-rac-EIb88J_6.js → ecom-address-rac-BU4XZ_Do.js} +1 -1
- package/dist/component/{ecom-subscription-checkbox-rac-CE0Ks6qS.js → ecom-subscription-checkbox-rac-DLzpoNYm.js} +5 -5
- package/dist/component/{email-input-field-rac-BScZxYHw.js → email-input-field-rac-Ui0p35z5.js} +59 -59
- package/dist/component/{events-repeater-rac-Y0rH2Jli.js → events-repeater-rac-bPKOOOit.js} +8 -8
- package/dist/component/{events-rsvp-rac-BiAYVv_b.js → events-rsvp-rac-lsRBBfPQ.js} +12 -12
- package/dist/component/{field-error-headless-DrnFrGun.js → field-error-headless-D6iejMQP.js} +1 -1
- package/dist/component/{field-label-headless-BIYf1BIh.js → field-label-headless-BWLfU3YB.js} +1 -1
- package/dist/component/field-rac.module-DnUIb9Oh.js +21 -0
- package/dist/component/{file-upload-rac-br--tZLp.js → file-upload-rac-DqKL8QQZ.js} +87 -87
- package/dist/component/{fixed-payment-rac-XEtrsaMy.js → fixed-payment-rac-BDtRB8w2.js} +9 -9
- package/dist/component/{form-9yjqDnxY.js → form-CtWkUmxc.js} +69 -69
- package/dist/component/form-element-classes-BSMjWijd.js +63 -0
- package/dist/component/form.css +1 -1
- package/dist/component/form.js +1 -1
- package/dist/component/{header-field-rac-CLELgzqY.js → header-field-rac-BLM8RCDY.js} +3 -3
- package/dist/component/{header-rac-D8KGkVVp.js → header-rac-DViRwafg.js} +1 -1
- package/dist/component/image-choice-rac-D76t2y-b.js +141 -0
- package/dist/component/{index-PHkE0Ru4.js → index--iRBHLXJ.js} +4 -4
- package/dist/component/{index-C4y71e1i.js → index-pEItT2oo.js} +2 -2
- package/dist/component/{isObjectLike-srCDplej.js → isObjectLike-968AHV2b.js} +1 -1
- package/dist/component/{multiline-address-field-rac-CsBLI9y-.js → multiline-address-field-rac-CObOc8KE.js} +98 -98
- package/dist/component/{multiline-address-rac-DFDPFfXh.js → multiline-address-rac-1qVZkN41.js} +1 -1
- package/dist/component/{number-input-field-rac-DZRR7gdt.js → number-input-field-rac-CPQ3u0N7.js} +20 -20
- package/dist/component/{number-input-rac-BCS5lkff.js → number-input-rac-Bq1UyUPZ.js} +1 -1
- package/dist/component/{password-rac-ClDGgR3E.js → password-rac-BZPK1VkN.js} +9 -9
- package/dist/component/{payment-input-rac-COydWmUE.js → payment-input-rac-CQrV0WmN.js} +11 -11
- package/dist/component/{phone-input-field-rac-DYCibqe1.js → phone-input-field-rac-DzUE1-RF.js} +56 -56
- package/dist/component/{phone-rac-BS-dmWkJ.js → phone-rac-BovOZ7V5.js} +1 -1
- package/dist/component/{product-list-rac-hxOhaA-r.js → product-list-rac-CeGm1_WN.js} +22 -22
- package/dist/component/quiz-radio-group-rac-Lw2thQqC.js +13 -0
- package/dist/component/{radio-group-field-rac-DKqWnMBJ.js → radio-group-field-rac-BSVmjEgZ.js} +8 -8
- package/dist/component/{radio-group-field-rac.module-BwUynK_5.js → radio-group-field-rac.module-Cb3mm0f2.js} +3 -3
- package/dist/component/{radio-group-rac-DHURQZKK.js → radio-group-rac-BHhOCSQ2.js} +1 -1
- package/dist/component/{rating-input-field-rac-CZRdSVrf.js → rating-input-field-rac-BvbBZZDO.js} +21 -21
- package/dist/component/{rating-input-rac-BaH52DYm.js → rating-input-rac-DDe1EBpt.js} +1 -1
- package/dist/component/{rich-content-rac.module-ILBfxEmN.js → rich-content-rac.module-BacYkzEv.js} +1 -1
- package/dist/component/{rich-text-field-rac-B58q8Is7.js → rich-text-field-rac-D1W0mUjr.js} +5 -5
- package/dist/component/{rich-text-rac-DGbZh1eX.js → rich-text-rac-B-cOn0RU.js} +1 -1
- package/dist/component/{service-dropdown-rac-DUiNIbdv.js → service-dropdown-rac-CebfMkGP.js} +22 -22
- package/dist/component/{services-multi-choice-rac-B7y9s2l8.js → services-multi-choice-rac-C4bF1xhB.js} +29 -29
- package/dist/component/{signature-rac-CydpvQJZ.js → signature-rac-DWWT65Ez.js} +46 -46
- package/dist/component/{submit-button-rac-OO53h4H8.js → submit-button-rac-_mgn4ChE.js} +2 -2
- package/dist/component/{tags-field-rac-eX3d3JEH.js → tags-field-rac-7coCWj0y.js} +59 -59
- package/dist/component/{tags-rac-CdIB_48Z.js → tags-rac-rgsn8Os0.js} +1 -1
- package/dist/component/{text-area-field-rac-Bir5Q7gz.js → text-area-field-rac-5lUQxnNM.js} +15 -15
- package/dist/component/{text-area-rac-Ct1UNU04.js → text-area-rac-DpGOBzN3.js} +1 -1
- package/dist/component/{text-input-field-rac-onGUXC9J.js → text-input-field-rac-CgWadDfM.js} +3 -3
- package/dist/component/{text-input-headless-Bs9m7QFg.js → text-input-headless-fhxuPytc.js} +3 -3
- package/dist/component/{text-input-rac-DK4nEw4D.js → text-input-rac-kgWS3UUV.js} +1 -1
- package/dist/component/{time-input-rac-BCG9ktFa.js → time-input-rac-CuLUJcBH.js} +15 -15
- package/dist/component/{url-input-field-rac-mUkrVTcL.js → url-input-field-rac-CAGHb2na.js} +18 -18
- package/dist/component/{url-input-rac-Cl7LFYlr.js → url-input-rac-s5_SVi0h.js} +1 -1
- package/dist/component/{use-service-options-base-BYVuKRj2.js → use-service-options-base-CYAEJ75H.js} +1 -1
- package/package.json +2 -2
- package/dist/component/contacts-subscribe-rac-BxO8rIyL.js +0 -13
- package/dist/component/donation-rac-BjmSBabc.js +0 -305
- package/dist/component/field-rac.module-CWkwwhq4.js +0 -21
- package/dist/component/form-element-classes-KRzHUNLu.js +0 -57
- package/dist/component/image-choice-rac-Cl09CLP4.js +0 -141
- package/dist/component/quiz-radio-group-rac-BT-YZO2Q.js +0 -13
package/dist/component/{rating-input-field-rac-CZRdSVrf.js → rating-input-field-rac-BvbBZZDO.js}
RENAMED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { RicosViewer as D } from "@wix/ricos/viewer";
|
|
2
2
|
import d from "classnames";
|
|
3
3
|
import e, { useCallback as N, useState as y, useRef as O } from "react";
|
|
4
|
-
import { ai as
|
|
4
|
+
import { ai as v, af as I, as as A } from "./form-CtWkUmxc.js";
|
|
5
5
|
import { RadioGroup as w, RadioField as M, RadioButton as B } from "react-aria-components";
|
|
6
6
|
import { f as m, a as T } from "./find-child-C60k4CxG.js";
|
|
7
|
-
import { D as
|
|
8
|
-
import { L as
|
|
7
|
+
import { D as P, E as q } from "./field-error-headless-D6iejMQP.js";
|
|
8
|
+
import { L as H } from "./field-label-headless-BWLfU3YB.js";
|
|
9
9
|
import { E as x } from "./error-icon-hZxQ6DEy.js";
|
|
10
|
-
import { s as u } from "./field-rac.module-
|
|
11
|
-
import {
|
|
10
|
+
import { s as u } from "./field-rac.module-DnUIb9Oh.js";
|
|
11
|
+
import { z, P as k, O as G, q as j, j as Q } from "./form-element-classes-BSMjWijd.js";
|
|
12
12
|
const t = ({ children: r }) => {
|
|
13
|
-
const { id: n, value: s, onChange: o, disabled: l, required: c, hasError: i, onBlur: C, onFocus: L, FieldLayout: E } =
|
|
13
|
+
const { id: n, value: s, onChange: o, disabled: l, required: c, hasError: i, onBlur: C, onFocus: L, FieldLayout: E } = v(), { labelId: p } = I(), R = N((F) => o(Number(F)), [
|
|
14
14
|
o
|
|
15
15
|
]), f = m(r, t.Label), a = m(r, t.Ratings), g = m(r, t.Description), S = m(r, t.Error);
|
|
16
16
|
return /* @__PURE__ */ e.createElement(E, {
|
|
@@ -30,7 +30,7 @@ const t = ({ children: r }) => {
|
|
|
30
30
|
renderDescription: () => /* @__PURE__ */ e.createElement(e.Fragment, null, S, g)
|
|
31
31
|
});
|
|
32
32
|
}, h = ({ children: r, className: n, getReactionLabel: s }) => {
|
|
33
|
-
const { value: o, hasError: l } =
|
|
33
|
+
const { value: o, hasError: l } = v(), { inputId: c, ariaDescribedBy: i } = I(), [C, L] = y(), E = O(null), p = m(r, h.Rating), R = [
|
|
34
34
|
"1",
|
|
35
35
|
"2",
|
|
36
36
|
"3",
|
|
@@ -50,7 +50,7 @@ const t = ({ children: r }) => {
|
|
|
50
50
|
onHoverChange: (g) => L(g ? a : void 0),
|
|
51
51
|
label: s == null ? void 0 : s(Number(a))
|
|
52
52
|
})));
|
|
53
|
-
},
|
|
53
|
+
}, U = {
|
|
54
54
|
border: 0,
|
|
55
55
|
clipPath: "inset(50%)",
|
|
56
56
|
height: 1,
|
|
@@ -71,16 +71,16 @@ const t = ({ children: r }) => {
|
|
|
71
71
|
}, typeof n == "function" ? n({
|
|
72
72
|
isSelected: l
|
|
73
73
|
}) : n, i ? /* @__PURE__ */ e.createElement("span", {
|
|
74
|
-
style:
|
|
74
|
+
style: U
|
|
75
75
|
}, i) : null));
|
|
76
76
|
};
|
|
77
77
|
h.Rating = _;
|
|
78
|
-
t.Label =
|
|
78
|
+
t.Label = H;
|
|
79
79
|
t.Ratings = h;
|
|
80
80
|
t.Rating = _;
|
|
81
|
-
t.Description =
|
|
82
|
-
t.Error =
|
|
83
|
-
const
|
|
81
|
+
t.Description = P;
|
|
82
|
+
t.Error = q;
|
|
83
|
+
const Z = (r) => /* @__PURE__ */ e.createElement("svg", {
|
|
84
84
|
viewBox: "0 0 32 32",
|
|
85
85
|
width: 32,
|
|
86
86
|
height: 32,
|
|
@@ -90,7 +90,7 @@ const U = (r) => /* @__PURE__ */ e.createElement("svg", {
|
|
|
90
90
|
}, /* @__PURE__ */ e.createElement("path", {
|
|
91
91
|
fillRule: "evenodd",
|
|
92
92
|
d: "M28.6265,13.6325 C28.9655,13.3015 29.0845,12.8175 28.9385,12.3665 C28.7925,11.9165 28.4105,11.5945 27.9415,11.5265 L20.5785,10.4565 C20.5015,10.4445 20.4345,10.3965 20.4005,10.3275 L17.1075,3.6545 L17.1075,3.6535 C16.8975,3.2295 16.4735,2.9655 16.0005,2.9655 L15.9995,2.9655 C15.5255,2.9655 15.1025,3.2295 14.8925,3.6545 L11.5985,10.3275 C11.5645,10.3965 11.4985,10.4445 11.4225,10.4565 L4.0575,11.5265 C3.5895,11.5945 3.2075,11.9165 3.0615,12.3665 C2.9155,12.8175 3.0345,13.3015 3.3735,13.6325 L8.7025,18.8265 C8.7575,18.8805 8.7835,18.9585 8.7705,19.0345 L7.5125,26.3695 C7.4325,26.8355 7.6205,27.2985 8.0035,27.5765 C8.2195,27.7345 8.4735,27.8145 8.7285,27.8145 C8.9245,27.8145 9.1215,27.7665 9.3045,27.6705 L15.8895,24.2085 C15.9595,24.1725 16.0415,24.1725 16.1085,24.2075 L22.6955,27.6705 C23.1155,27.8915 23.6135,27.8555 23.9965,27.5765 C24.3795,27.2985 24.5675,26.8355 24.4875,26.3695 L23.2305,19.0355 C23.2165,18.9585 23.2425,18.8805 23.2975,18.8265 L28.6265,13.6325 Z"
|
|
93
|
-
})),
|
|
93
|
+
})), J = (r) => /* @__PURE__ */ e.createElement("svg", {
|
|
94
94
|
viewBox: "0 0 32 32",
|
|
95
95
|
width: 32,
|
|
96
96
|
height: 32,
|
|
@@ -100,7 +100,7 @@ const U = (r) => /* @__PURE__ */ e.createElement("svg", {
|
|
|
100
100
|
}, /* @__PURE__ */ e.createElement("path", {
|
|
101
101
|
fillRule: "evenodd",
|
|
102
102
|
d: "M16,3.966 C15.956,3.966 15.848,3.979 15.789,4.097 L12.496,10.77 C12.317,11.133 11.969,11.386 11.567,11.445 L4.202,12.515 C4.072,12.534 4.026,12.634 4.012,12.675 C3.999,12.717 3.978,12.824 4.072,12.917 L9.4,18.111 C9.691,18.394 9.824,18.803 9.755,19.204 L8.498,26.538 C8.476,26.668 8.556,26.742 8.591,26.768 C8.627,26.793 8.721,26.846 8.838,26.786 L15.426,23.323 C15.785,23.133 16.215,23.134 16.574,23.322 L23.162,26.786 C23.277,26.846 23.374,26.793 23.409,26.768 C23.444,26.742 23.524,26.668 23.502,26.538 L22.245,19.204 C22.176,18.803 22.309,18.394 22.6,18.111 L27.928,12.917 C28.022,12.824 28.001,12.717 27.988,12.675 C27.974,12.634 27.928,12.534 27.798,12.515 L20.434,11.445 C20.031,11.386 19.683,11.133 19.504,10.769 L16.211,4.097 C16.152,3.979 16.044,3.966 16,3.966 M8.728,27.814 C8.473,27.814 8.22,27.734 8.003,27.577 C7.62,27.299 7.432,26.836 7.512,26.369 L8.77,19.035 C8.783,18.958 8.758,18.881 8.702,18.826 L3.374,13.633 C3.035,13.302 2.915,12.817 3.061,12.367 C3.208,11.916 3.589,11.594 4.058,11.526 L11.422,10.456 C11.499,10.445 11.565,10.397 11.599,10.328 L14.893,3.654 C15.102,3.23 15.526,2.966 16,2.966 C16.474,2.966 16.898,3.23 17.107,3.654 L20.401,10.327 C20.435,10.397 20.501,10.445 20.579,10.456 L27.942,11.526 C28.411,11.594 28.792,11.916 28.939,12.367 C29.085,12.817 28.965,13.302 28.626,13.633 L23.298,18.826 C23.242,18.881 23.217,18.958 23.23,19.035 L24.488,26.369 C24.568,26.836 24.38,27.299 23.997,27.577 C23.614,27.855 23.116,27.892 22.696,27.671 L16.109,24.208 C16.042,24.173 15.959,24.172 15.891,24.208 L9.304,27.671 C9.122,27.767 8.924,27.814 8.728,27.814"
|
|
103
|
-
})), K = "_ratings_112z7_1", W = "_rating_112z7_1",
|
|
103
|
+
})), K = "_ratings_112z7_1", W = "_rating_112z7_1", b = {
|
|
104
104
|
ratings: K,
|
|
105
105
|
rating: W
|
|
106
106
|
}, X = ({ content: r, locale: n }) => /* @__PURE__ */ e.createElement(D, {
|
|
@@ -109,20 +109,20 @@ const U = (r) => /* @__PURE__ */ e.createElement("svg", {
|
|
|
109
109
|
}), i2 = () => {
|
|
110
110
|
const { t: r } = A();
|
|
111
111
|
return /* @__PURE__ */ e.createElement(t, null, /* @__PURE__ */ e.createElement(t.Label, {
|
|
112
|
-
className: d(
|
|
112
|
+
className: d(z, u.label)
|
|
113
113
|
}, /* @__PURE__ */ e.createElement(t.Label.Required, {
|
|
114
|
-
className: d(
|
|
114
|
+
className: d(k, u.requiredMark)
|
|
115
115
|
})), /* @__PURE__ */ e.createElement(t.Ratings, {
|
|
116
|
-
className:
|
|
116
|
+
className: b.ratings,
|
|
117
117
|
getReactionLabel: (n) => r("rating-input.a11y.reaction-label", {
|
|
118
118
|
count: n
|
|
119
119
|
})
|
|
120
120
|
}, /* @__PURE__ */ e.createElement(t.Rating, {
|
|
121
|
-
className: d(G,
|
|
122
|
-
}, ({ isSelected: n }) => n ? /* @__PURE__ */ e.createElement(
|
|
121
|
+
className: d(G, b.rating)
|
|
122
|
+
}, ({ isSelected: n }) => n ? /* @__PURE__ */ e.createElement(Z, null) : /* @__PURE__ */ e.createElement(J, null))), /* @__PURE__ */ e.createElement(t.Error, {
|
|
123
123
|
className: d(j, u.error)
|
|
124
124
|
}, /* @__PURE__ */ e.createElement(x, null), /* @__PURE__ */ e.createElement(t.Error.Text, null)), /* @__PURE__ */ e.createElement(t.Description, {
|
|
125
|
-
className: d(
|
|
125
|
+
className: d(Q, u.description)
|
|
126
126
|
}, X));
|
|
127
127
|
};
|
|
128
128
|
export {
|
package/dist/component/{rich-content-rac.module-ILBfxEmN.js → rich-content-rac.module-BacYkzEv.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import c, { useState as u } from "react";
|
|
2
|
-
import { ai as a, ab as i, as as T } from "./form-
|
|
2
|
+
import { ai as a, ab as i, as as T } from "./form-CtWkUmxc.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";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import l from "classnames";
|
|
2
2
|
import e from "react";
|
|
3
|
-
import { ai as m, L as i, W as u, Z as R } from "./form-
|
|
4
|
-
import { u as T, R as C, s as d, T as p } from "./rich-content-rac.module-
|
|
5
|
-
import {
|
|
3
|
+
import { ai as m, L as i, W as u, Z as R } from "./form-CtWkUmxc.js";
|
|
4
|
+
import { u as T, R as C, s as d, T as p } from "./rich-content-rac.module-BacYkzEv.js";
|
|
5
|
+
import { a4 as g } from "./form-element-classes-BSMjWijd.js";
|
|
6
6
|
const h = {
|
|
7
7
|
colorPalette: R(),
|
|
8
8
|
customStyles: u()
|
|
9
|
-
},
|
|
9
|
+
}, x = ({ truncate: t = !0 } = {}) => {
|
|
10
10
|
const { content: a, maxShownParagraphs: s } = m(), { displayedContent: n, isTruncated: o, isTruncateButtonShown: r, toggleTruncate: c } = T(a, t ? s : void 0);
|
|
11
11
|
return /* @__PURE__ */ e.createElement(C, null, () => /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(i, {
|
|
12
12
|
className: l(g, d.richContent),
|
|
@@ -18,5 +18,5 @@ const h = {
|
|
|
18
18
|
})));
|
|
19
19
|
};
|
|
20
20
|
export {
|
|
21
|
-
|
|
21
|
+
x as R
|
|
22
22
|
};
|
package/dist/component/{service-dropdown-rac-DUiNIbdv.js → service-dropdown-rac-CebfMkGP.js}
RENAMED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import t, { useRef as
|
|
2
|
-
import { RicosViewer as
|
|
1
|
+
import t, { useRef as N, useMemo as g, useCallback as h, useEffect as T } from "react";
|
|
2
|
+
import { RicosViewer as A } from "@wix/ricos/viewer";
|
|
3
3
|
import m from "classnames";
|
|
4
|
-
import { ae as
|
|
5
|
-
import { u as
|
|
6
|
-
import { D as d } from "./dropdown-field-headless-
|
|
7
|
-
import { C as
|
|
8
|
-
import { E as
|
|
9
|
-
import { H as
|
|
10
|
-
import { s as n } from "./field-rac.module-
|
|
11
|
-
import {
|
|
12
|
-
const
|
|
13
|
-
const { actions: r } =
|
|
4
|
+
import { ae as w, as as b, F as M, ai as y, ab as U, h as V } from "./form-CtWkUmxc.js";
|
|
5
|
+
import { u as q } from "./use-service-options-base-CYAEJ75H.js";
|
|
6
|
+
import { D as d } from "./dropdown-field-headless-DBl8vGed.js";
|
|
7
|
+
import { C as x } from "./chevron-down-icon-CcpVm6B-.js";
|
|
8
|
+
import { E as H } from "./error-icon-hZxQ6DEy.js";
|
|
9
|
+
import { H as k } from "./custom-focus-class-_483Pkwp.js";
|
|
10
|
+
import { s as n } from "./field-rac.module-DnUIb9Oh.js";
|
|
11
|
+
import { z as B, P as W, y as j, C as z, q as Q, j as Y } from "./form-element-classes-BSMjWijd.js";
|
|
12
|
+
const G = "00000000-0000-0000-0000-000000000000", J = (e) => {
|
|
13
|
+
const { actions: r } = w(), { t: C } = b(), { addOther: i, addOtherLabel: p } = e, c = p || C("add-other.default-other-option-label"), a = N(!0), E = g(() => {
|
|
14
14
|
var s;
|
|
15
15
|
return ((s = e.options) == null ? void 0 : s.map((u) => u.id ?? "")) ?? [];
|
|
16
16
|
}, [
|
|
@@ -20,12 +20,12 @@ const z = "00000000-0000-0000-0000-000000000000", G = (e) => {
|
|
|
20
20
|
{
|
|
21
21
|
value: c,
|
|
22
22
|
label: c,
|
|
23
|
-
id:
|
|
23
|
+
id: G
|
|
24
24
|
}
|
|
25
25
|
] : s, [
|
|
26
26
|
i,
|
|
27
27
|
c
|
|
28
|
-
]), { isLoading: f, options: l, isEmpty: D, shouldRender: I, setIsLoading: F, setOptions: L, setIsEmpty: S, processOptions: _ } =
|
|
28
|
+
]), { isLoading: f, options: l, isEmpty: D, shouldRender: I, setIsLoading: F, setOptions: L, setIsEmpty: S, processOptions: _ } = q({
|
|
29
29
|
fieldType: M.SERVICES_DROPDOWN,
|
|
30
30
|
isEditor: e.isEditor,
|
|
31
31
|
postProcessOptions: O
|
|
@@ -72,7 +72,7 @@ const z = "00000000-0000-0000-0000-000000000000", G = (e) => {
|
|
|
72
72
|
}, [
|
|
73
73
|
R,
|
|
74
74
|
e.onFocus
|
|
75
|
-
]),
|
|
75
|
+
]), P = h(
|
|
76
76
|
(s) => {
|
|
77
77
|
e.onChange && e.onChange(s), a.current = !0;
|
|
78
78
|
},
|
|
@@ -86,11 +86,11 @@ const z = "00000000-0000-0000-0000-000000000000", G = (e) => {
|
|
|
86
86
|
options: l,
|
|
87
87
|
isEmpty: D,
|
|
88
88
|
onFocus: v,
|
|
89
|
-
onChange:
|
|
89
|
+
onChange: P,
|
|
90
90
|
shouldRender: I
|
|
91
91
|
};
|
|
92
92
|
}, o = ({ children: e }) => {
|
|
93
|
-
const r = y(), { addOther: C } = r, i = U(), p = r.isEditor || i.isEditor || i.isComposer, { isLoading: c, options: a, isEmpty: E, onFocus: O, onChange: f, shouldRender: l } =
|
|
93
|
+
const r = y(), { addOther: C } = r, i = U(), p = r.isEditor || i.isEditor || i.isComposer, { isLoading: c, options: a, isEmpty: E, onFocus: O, onChange: f, shouldRender: l } = J({
|
|
94
94
|
...r,
|
|
95
95
|
isEditor: p
|
|
96
96
|
}), D = g(() => ({
|
|
@@ -117,7 +117,7 @@ o.Trigger = d.Trigger;
|
|
|
117
117
|
o.Options = d.Options;
|
|
118
118
|
o.Description = d.Description;
|
|
119
119
|
o.Error = d.Error;
|
|
120
|
-
const K = ({ content: e, locale: r }) => /* @__PURE__ */ t.createElement(
|
|
120
|
+
const K = ({ content: e, locale: r }) => /* @__PURE__ */ t.createElement(A, {
|
|
121
121
|
content: e,
|
|
122
122
|
locale: r
|
|
123
123
|
}), X = () => /* @__PURE__ */ t.createElement(o, null, /* @__PURE__ */ t.createElement(o.Label, {
|
|
@@ -126,15 +126,15 @@ const K = ({ content: e, locale: r }) => /* @__PURE__ */ t.createElement(w, {
|
|
|
126
126
|
className: m(W, n.requiredMark)
|
|
127
127
|
})), /* @__PURE__ */ t.createElement(o.Trigger, {
|
|
128
128
|
className: m(j, n.input, n.dropdownTrigger)
|
|
129
|
-
}, /* @__PURE__ */ t.createElement(
|
|
129
|
+
}, /* @__PURE__ */ t.createElement(x, {
|
|
130
130
|
className: n.dropdownIcon
|
|
131
131
|
})), /* @__PURE__ */ t.createElement(o.Options, {
|
|
132
|
-
className: m(
|
|
132
|
+
className: m(z, n.selectPopover, n.dropdownPopover)
|
|
133
133
|
}, /* @__PURE__ */ t.createElement(o.Options.Option, {
|
|
134
|
-
className: m(n.selectOption,
|
|
134
|
+
className: m(n.selectOption, k)
|
|
135
135
|
})), /* @__PURE__ */ t.createElement(o.Error, {
|
|
136
136
|
className: m(Q, n.error)
|
|
137
|
-
}, /* @__PURE__ */ t.createElement(
|
|
137
|
+
}, /* @__PURE__ */ t.createElement(H, null), /* @__PURE__ */ t.createElement(o.Error.Text, null)), /* @__PURE__ */ t.createElement(o.Description, {
|
|
138
138
|
className: m(Y, n.description)
|
|
139
139
|
}, K)), le = () => /* @__PURE__ */ t.createElement(X, null);
|
|
140
140
|
export {
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import e, { useEffect as C, useMemo as I } from "react";
|
|
2
2
|
import { RicosViewer as L } from "@wix/ricos/viewer";
|
|
3
|
-
import
|
|
4
|
-
import { F as R, ai as F, h as d } from "./form-
|
|
5
|
-
import { u as D } from "./use-service-options-base-
|
|
6
|
-
import { C as
|
|
3
|
+
import s from "classnames";
|
|
4
|
+
import { F as R, ai as F, h as d } from "./form-CtWkUmxc.js";
|
|
5
|
+
import { u as D } from "./use-service-options-base-CYAEJ75H.js";
|
|
6
|
+
import { C as n } from "./checkbox-group-field-headless-BmKJbEi0.js";
|
|
7
7
|
import { E as h } from "./error-icon-hZxQ6DEy.js";
|
|
8
|
-
import { s as
|
|
9
|
-
import {
|
|
8
|
+
import { s as i } from "./field-rac.module-DnUIb9Oh.js";
|
|
9
|
+
import { z as f, P as b, T as M, U as N, V as A, y as v, q as x, j as T } from "./form-element-classes-BSMjWijd.js";
|
|
10
10
|
import { o as _ } from "./options-rac.module-KM-VT_KY.js";
|
|
11
|
-
const
|
|
11
|
+
const P = (o) => {
|
|
12
12
|
var S;
|
|
13
|
-
const { isLoading:
|
|
13
|
+
const { isLoading: r, options: a, isEmpty: c, shouldRender: E, setOptions: l, setIsEmpty: m, setHasInitialDataLoaded: p } = D({
|
|
14
14
|
fieldType: R.SERVICES_MULTI_CHOICE,
|
|
15
15
|
isEditor: o.isEditor
|
|
16
16
|
}), u = (S = o.options) == null ? void 0 : S.every((O) => O.label && O.id);
|
|
@@ -26,50 +26,50 @@ const T = (o) => {
|
|
|
26
26
|
m,
|
|
27
27
|
p
|
|
28
28
|
]), {
|
|
29
|
-
isLoading:
|
|
29
|
+
isLoading: r,
|
|
30
30
|
options: a,
|
|
31
31
|
isEmpty: c,
|
|
32
32
|
shouldRender: E
|
|
33
33
|
};
|
|
34
34
|
}, t = ({ children: o }) => {
|
|
35
|
-
const
|
|
36
|
-
...
|
|
35
|
+
const r = F(), { options: a, isEmpty: c, shouldRender: E } = P(r), l = I(() => ({
|
|
36
|
+
...r,
|
|
37
37
|
options: a
|
|
38
38
|
}), [
|
|
39
|
-
|
|
39
|
+
r,
|
|
40
40
|
a
|
|
41
41
|
]);
|
|
42
|
-
return !
|
|
42
|
+
return !r.isEditor && c || !E ? null : /* @__PURE__ */ e.createElement(d.Provider, {
|
|
43
43
|
value: {
|
|
44
44
|
v2: l
|
|
45
45
|
}
|
|
46
|
-
}, /* @__PURE__ */ e.createElement(
|
|
46
|
+
}, /* @__PURE__ */ e.createElement(n, null, o));
|
|
47
47
|
};
|
|
48
|
-
t.Label =
|
|
49
|
-
t.Options =
|
|
50
|
-
t.Description =
|
|
51
|
-
t.Error =
|
|
52
|
-
const k = ({ content: o, locale:
|
|
48
|
+
t.Label = n.Label;
|
|
49
|
+
t.Options = n.Options;
|
|
50
|
+
t.Description = n.Description;
|
|
51
|
+
t.Error = n.Error;
|
|
52
|
+
const k = ({ content: o, locale: r }) => /* @__PURE__ */ e.createElement(L, {
|
|
53
53
|
content: o,
|
|
54
|
-
locale:
|
|
54
|
+
locale: r
|
|
55
55
|
}), y = () => /* @__PURE__ */ e.createElement(t, null, /* @__PURE__ */ e.createElement(t.Label, {
|
|
56
|
-
className:
|
|
56
|
+
className: s(f, i.label)
|
|
57
57
|
}, /* @__PURE__ */ e.createElement(t.Label.Required, {
|
|
58
|
-
className:
|
|
58
|
+
className: s(b, i.requiredMark)
|
|
59
59
|
})), /* @__PURE__ */ e.createElement(t.Options, {
|
|
60
|
-
className:
|
|
60
|
+
className: s(M, _.options)
|
|
61
61
|
}, /* @__PURE__ */ e.createElement(t.Options.Option, null, /* @__PURE__ */ e.createElement(t.Options.Option.Checkbox, {
|
|
62
|
-
className:
|
|
62
|
+
className: i.checkbox
|
|
63
63
|
}, /* @__PURE__ */ e.createElement(t.Options.Option.Checkbox.Input, {
|
|
64
|
-
className:
|
|
64
|
+
className: s(N, i.checkboxInput)
|
|
65
65
|
}), /* @__PURE__ */ e.createElement(t.Options.Option.Checkbox.Label, {
|
|
66
|
-
className:
|
|
66
|
+
className: s(A, _.optionLabel)
|
|
67
67
|
})), /* @__PURE__ */ e.createElement(t.Options.Option.OtherInput, {
|
|
68
|
-
inputClassName:
|
|
68
|
+
inputClassName: s(v, i.input)
|
|
69
69
|
}))), /* @__PURE__ */ e.createElement(t.Error, {
|
|
70
|
-
className:
|
|
70
|
+
className: s(x, i.error)
|
|
71
71
|
}, /* @__PURE__ */ e.createElement(h, null), /* @__PURE__ */ e.createElement(t.Error.Text, null)), /* @__PURE__ */ e.createElement(t.Description, {
|
|
72
|
-
className:
|
|
72
|
+
className: s(T, i.description)
|
|
73
73
|
}, k)), Q = () => /* @__PURE__ */ e.createElement(y, null);
|
|
74
74
|
export {
|
|
75
75
|
Q as ServicesMultiChoiceRAC
|
|
@@ -2,17 +2,17 @@ import s, { useRef as W, useCallback as I, useState as K, useEffect as Q, useMem
|
|
|
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
|
|
7
|
+
import { z as Ue, ae as Oe, ab as Be, aq as ge, E as ce, e as q, ai as A, af as H, ak as Ee, as as Me } from "./form-CtWkUmxc.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-D6iejMQP.js";
|
|
10
|
+
import { L as Ye } from "./field-label-headless-BWLfU3YB.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 {
|
|
15
|
-
const
|
|
13
|
+
import { s as z } from "./field-rac.module-DnUIb9Oh.js";
|
|
14
|
+
import { z as ue, P as ze, y as B, a1 as Ve, q as Ze, j as Xe } from "./form-element-classes-BSMjWijd.js";
|
|
15
|
+
const qe = 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 Ge = (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)
|
|
@@ -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 = Ge(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, q.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, q.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, q.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, q.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
|
+
}, Z = ({ 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, Z.Header), E = T(e, Z.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
|
+
}, X = ({ children: e, className: t, ...a }) => {
|
|
368
|
+
const { signatureMode: n, setSignatureMode: r, clearable: o, handleClear: i } = a, { uploadEnabled: l } = A(), c = T(e, X.Tabs), d = T(e, X.Clear);
|
|
369
369
|
return /* @__PURE__ */ s.createElement("div", {
|
|
370
370
|
className: t
|
|
371
371
|
}, F(c, {
|
|
@@ -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",
|
|
@@ -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
|
+
}, []), G = 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", G), 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", G), (ie = p.current) == null || ie.removeEventListener("beginStroke", j);
|
|
510
510
|
}, [
|
|
511
511
|
R,
|
|
512
512
|
x,
|
|
513
513
|
j,
|
|
514
|
-
|
|
514
|
+
G
|
|
515
515
|
]);
|
|
516
516
|
return Q(() => {
|
|
517
517
|
p.current && (c || l ? p.current.off() : p.current.on());
|
|
@@ -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,
|
|
@@ -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 = qe(), m = I(() => {
|
|
636
636
|
var h;
|
|
637
637
|
(h = n.current) == null || h.click();
|
|
638
638
|
}, [
|
|
@@ -653,19 +653,19 @@ const dt = (e) => {
|
|
|
653
653
|
}, e));
|
|
654
654
|
};
|
|
655
655
|
g.Label = Ye;
|
|
656
|
-
g.Input =
|
|
656
|
+
g.Input = Z;
|
|
657
657
|
g.Description = We;
|
|
658
658
|
g.Error = He;
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
659
|
+
Z.Header = X;
|
|
660
|
+
Z.Value = _;
|
|
661
|
+
X.Tabs = P;
|
|
662
|
+
X.Clear = gt;
|
|
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,
|
|
@@ -785,9 +785,9 @@ const Tt = () => {
|
|
|
785
785
|
}, /* @__PURE__ */ s.createElement(g.Input.Value.Upload.Button, {
|
|
786
786
|
className: v(Ve, z.uploadButton)
|
|
787
787
|
}, e.uploadLabel)))), /* @__PURE__ */ s.createElement(g.Error, {
|
|
788
|
-
className: v(
|
|
788
|
+
className: v(Ze, 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(Xe, z.description)
|
|
791
791
|
}, Ut));
|
|
792
792
|
}, Jt = () => /* @__PURE__ */ s.createElement(Ot, null);
|
|
793
793
|
export {
|
|
@@ -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-CtWkUmxc.js";
|
|
4
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 { a3 as d, a2 as g, a5 as f } from "./form-element-classes-BSMjWijd.js";
|
|
7
7
|
function x(e) {
|
|
8
8
|
const s = "calc(50% - 2px)";
|
|
9
9
|
return /* @__PURE__ */ t.createElement(N, {
|