@wix/form-elements 1.80.0 → 1.82.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-BYisg594.js → appointment-rac-DmwbqZse.js} +82 -82
- package/dist/component/{bookings-address-rac-CsILj67y.js → bookings-address-rac-RCzVU87c.js} +1 -1
- package/dist/component/{bookings-email-rac-CVmAPK_5.js → bookings-email-rac-Df_Wte1_.js} +1 -1
- package/dist/component/{bookings-first-name-rac-Dh41-RQ_.js → bookings-first-name-rac-BmdRGYxF.js} +1 -1
- package/dist/component/{bookings-header-rac-B6Fgfiz5.js → bookings-header-rac-DewQWtkZ.js} +1 -1
- package/dist/component/{bookings-last-name-rac-CuY8aaXv.js → bookings-last-name-rac-DmmNBuqy.js} +1 -1
- package/dist/component/{bookings-login-bar-rac-B8JBcGs8.js → bookings-login-bar-rac-QskvFo0C.js} +5 -5
- package/dist/component/{bookings-phone-rac-Bspc3F7g.js → bookings-phone-rac-7wn8IXna.js} +1 -1
- package/dist/component/{bookings-rich-text-rac-B1o0ZcfK.js → bookings-rich-text-rac-B5nk0BlD.js} +1 -1
- package/dist/component/{checkbox-field-rac-thaR4lXB.js → checkbox-field-rac-BnVNfYWL.js} +5 -5
- package/dist/component/{checkbox-group-field-headless-DryeaW7l.js → checkbox-group-field-headless-Bx5Y-RMP.js} +3 -3
- package/dist/component/{checkbox-group-field-rac-CJfbT13O.js → checkbox-group-field-rac-CZW28rj5.js} +7 -7
- package/dist/component/{checkbox-group-rac-BwI7UHzO.js → checkbox-group-rac-B20t8dTB.js} +1 -1
- package/dist/component/{checkbox-rac-HRTKCRY4.js → checkbox-rac-ifC6qSE8.js} +1 -1
- package/dist/component/{contacts-address-rac-BIn9plXb.js → contacts-address-rac-XJRKvPlp.js} +1 -1
- package/dist/component/{contacts-birthdate-rac-oGP8bO3I.js → contacts-birthdate-rac-CKYESrPO.js} +1 -1
- package/dist/component/{contacts-company-rac-ChdjTt8-.js → contacts-company-rac-BXwEeb0p.js} +1 -1
- package/dist/component/{contacts-email-rac-BUluFo-o.js → contacts-email-rac-D8Yspo_m.js} +1 -1
- package/dist/component/{contacts-first-name-rac-tmboINSq.js → contacts-first-name-rac-mvCGP1LJ.js} +1 -1
- package/dist/component/{contacts-last-name-rac-BaD5OBVf.js → contacts-last-name-rac-Clg9RXal.js} +1 -1
- package/dist/component/{contacts-phone-rac-BoX2-IEP.js → contacts-phone-rac-qEwjhByI.js} +1 -1
- package/dist/component/{contacts-position-rac-BNDskehr.js → contacts-position-rac-Bh8fvf2M.js} +1 -1
- package/dist/component/{contacts-subscribe-rac-CVaQG4Qy.js → contacts-subscribe-rac-DEQ2XkZo.js} +2 -2
- package/dist/component/{contacts-tax-id-rac-Dxgxcv7c.js → contacts-tax-id-rac-0DUZ4tJz.js} +1 -1
- package/dist/component/{date-availability-BbrBYxgL.js → date-availability-2ek2RtXx.js} +1 -1
- package/dist/component/{date-input-field-rac-oibxt2dz.js → date-input-field-rac-Bp4SQB-t.js} +29 -29
- package/dist/component/{date-input-rac-h2vrPoah.js → date-input-rac-CYsJcMe5.js} +1 -1
- package/dist/component/{date-picker-field-rac-Cr9PMglz.js → date-picker-field-rac-BGQvnSYI.js} +9 -9
- package/dist/component/{date-picker-rac-8BOHRpaJ.js → date-picker-rac-BVncggYR.js} +1 -1
- package/dist/component/{date-time-input-field-rac-C7CZ4i6-.js → date-time-input-field-rac-B1mggelc.js} +33 -33
- package/dist/component/{date-time-input-rac-BARK1BJc.js → date-time-input-rac-DzdCno0L.js} +1 -1
- package/dist/component/{dext-checkbox-group-rac-CWc0W-zr.js → dext-checkbox-group-rac-CNCpeolD.js} +2 -2
- package/dist/component/{dext-checkbox-rac-NKcTYwpg.js → dext-checkbox-rac-BYDQ58Mo.js} +1 -1
- package/dist/component/{dext-date-picker-rac-SllyCpYt.js → dext-date-picker-rac-aYYk8Nrl.js} +1 -1
- package/dist/component/{dext-date-time-input-rac-JT9Pa7TG.js → dext-date-time-input-rac-v2v974p5.js} +1 -1
- package/dist/component/{dext-dropdown-rac-aBU9t_U4.js → dext-dropdown-rac-C846KZCe.js} +1 -1
- package/dist/component/{dext-email-rac-DKoJiyjE.js → dext-email-rac-izjbfME9.js} +1 -1
- package/dist/component/{dext-number-input-rac-BHkzAyzd.js → dext-number-input-rac-CnOFsD7l.js} +1 -1
- package/dist/component/{dext-phone-rac-Ou-fxcN5.js → dext-phone-rac-D8GMXD88.js} +1 -1
- package/dist/component/{dext-radio-group-rac-CH0WlRsF.js → dext-radio-group-rac-BtiyGCRh.js} +2 -2
- package/dist/component/{dext-rating-input-rac-D_jXx_VN.js → dext-rating-input-rac-BHJ1kitb.js} +1 -1
- package/dist/component/{dext-tags-rac-DBaT-lQT.js → dext-tags-rac-CvNjwS5R.js} +2 -2
- package/dist/component/{dext-text-area-rac-DWcCktYi.js → dext-text-area-rac-X5L0Q3sC.js} +1 -1
- package/dist/component/{dext-text-input-rac-CBX2wgW-.js → dext-text-input-rac-swkyAJqC.js} +1 -1
- package/dist/component/{dext-url-input-rac-DaqWDzIt.js → dext-url-input-rac-BYlXOAkz.js} +1 -1
- package/dist/component/donation-rac-CDWLBZZM.js +318 -0
- package/dist/component/{dropdown-field-headless-D7mOjVEJ.js → dropdown-field-headless-JJzbZvps.js} +3 -3
- package/dist/component/{dropdown-field-rac-DsRuMFo4.js → dropdown-field-rac-BodpIQ9Q.js} +5 -5
- package/dist/component/{dropdown-rac-8Fe66UGi.js → dropdown-rac-Bfbxxx9k.js} +1 -1
- package/dist/component/{ecom-address-rac-DbR_WEgu.js → ecom-address-rac-BCnsL5tr.js} +1 -1
- package/dist/component/{ecom-subscription-checkbox-rac-ByQsK79_.js → ecom-subscription-checkbox-rac-CNSdI_ty.js} +3 -3
- package/dist/component/{email-input-field-rac-BS0bFS0-.js → email-input-field-rac-Btaa4O5T.js} +48 -48
- package/dist/component/{events-repeater-rac-xhXarOw_.js → events-repeater-rac-xBwqJddt.js} +10 -10
- package/dist/component/{events-rsvp-rac-BLq-ro2E.js → events-rsvp-rac-D90PwkHd.js} +3 -3
- package/dist/component/{field-error-headless-C7IUibkK.js → field-error-headless-BErhh9GG.js} +1 -1
- package/dist/component/{field-label-headless-BQFy2iAr.js → field-label-headless-BGyK-5xW.js} +1 -1
- package/dist/component/{file-upload-rac-B84R44Bt.js → file-upload-rac-MxH3CVml.js} +21 -21
- package/dist/component/{fixed-payment-rac-D7Asu-Ws.js → fixed-payment-rac-DpBA9irF.js} +10 -10
- package/dist/component/{form-element-classes-BuM-vthE.js → form-element-classes-jC8D0LnK.js} +77 -63
- package/dist/component/{form-BmioUKtQ.js → form-f0tqdMye.js} +69 -69
- package/dist/component/form.css +1 -1
- package/dist/component/form.js +1 -1
- package/dist/component/{header-field-rac-CN5SyZpH.js → header-field-rac-BXxFqu9u.js} +3 -3
- package/dist/component/{header-rac-B9ITu2YO.js → header-rac-BN70esac.js} +1 -1
- package/dist/component/image-choice-rac-DLBGIBXL.js +158 -0
- package/dist/component/{index-3q1aCLZ8.js → index-BvB-uE1H.js} +2 -2
- package/dist/component/{index-CvWMG1x1.js → index-DXLEHYlA.js} +4 -4
- package/dist/component/{isObjectLike-xDv2bEeI.js → isObjectLike-BYOX5XY4.js} +1 -1
- package/dist/component/{multiline-address-field-rac-BLDqei5I.js → multiline-address-field-rac-fcQYnPlO.js} +52 -52
- package/dist/component/{multiline-address-rac-Dy9Km8P8.js → multiline-address-rac-D82Gbj3n.js} +1 -1
- package/dist/component/{number-input-field-rac-Dxu4WHzh.js → number-input-field-rac-B0-4Rz3w.js} +16 -16
- package/dist/component/{number-input-rac-hHEmwPao.js → number-input-rac-Bnsvb-SO.js} +1 -1
- package/dist/component/{password-rac-CEylicEt.js → password-rac-BdBjFa8y.js} +15 -15
- package/dist/component/{payment-input-rac-bvK_YQ78.js → payment-input-rac-DkAGOvaF.js} +18 -18
- package/dist/component/{phone-input-field-rac-CqYNWmiA.js → phone-input-field-rac-Ce_wuE46.js} +54 -54
- package/dist/component/{phone-rac-C72xrPL6.js → phone-rac-DslINtcH.js} +1 -1
- package/dist/component/{product-list-rac-DbftZgIh.js → product-list-rac-C4P_SOyG.js} +25 -25
- package/dist/component/{quiz-radio-group-rac-Bkg5poft.js → quiz-radio-group-rac-noy4fmD8.js} +2 -2
- package/dist/component/{radio-button-module-classes-Do4JmHrh.js → radio-button-module-classes-DXQ1UlmI.js} +3 -3
- package/dist/component/{radio-group-field-rac-BkoqJYp4.js → radio-group-field-rac-CYBDq7R1.js} +5 -5
- package/dist/component/{radio-group-rac-BGp1iRNt.js → radio-group-rac-CGHQFyJY.js} +1 -1
- package/dist/component/{rating-input-field-rac-Bozwq2E7.js → rating-input-field-rac-elaferlI.js} +18 -18
- package/dist/component/{rating-input-rac-Cxha4VPg.js → rating-input-rac-fnOtTKN8.js} +1 -1
- package/dist/component/{rich-content-rac.module-ZXCfVPY-.js → rich-content-rac.module-DbwuwQeo.js} +1 -1
- package/dist/component/{rich-text-field-rac-Ct4KowMZ.js → rich-text-field-rac-DtcQC8zU.js} +3 -3
- package/dist/component/{rich-text-rac-Cek5wjXa.js → rich-text-rac-CuT97sby.js} +1 -1
- package/dist/component/{service-dropdown-rac-B3K93XxF.js → service-dropdown-rac-rk2tzikX.js} +24 -24
- package/dist/component/{services-multi-choice-rac-2RTQqyG6.js → services-multi-choice-rac-BMQyF_xs.js} +7 -7
- package/dist/component/{signature-rac-BIbRkW1j.js → signature-rac-DeV9C6ta.js} +41 -41
- package/dist/component/{submit-button-rac-DofUaqHk.js → submit-button-rac-BpN-FYtM.js} +2 -2
- package/dist/component/tags-field-rac-ByC9DnyH.js +217 -0
- package/dist/component/{tags-rac-DuMX91gd.js → tags-rac-Dabz4jHd.js} +1 -1
- package/dist/component/{text-area-field-rac-BbHdTAJP.js → text-area-field-rac-CtSa8XW_.js} +14 -14
- package/dist/component/{text-area-rac-B9lDzZAb.js → text-area-rac-CDLF-_56.js} +1 -1
- package/dist/component/{text-input-field-rac-B_csZjOh.js → text-input-field-rac-C6fQYKhI.js} +5 -5
- package/dist/component/{text-input-headless-CVOWyi55.js → text-input-headless-BwVLU9cp.js} +3 -3
- package/dist/component/{text-input-rac-DowwSRpa.js → text-input-rac-CoGTzfo1.js} +1 -1
- package/dist/component/{time-input-rac-D9SXITBr.js → time-input-rac-DQDupKTA.js} +17 -17
- package/dist/component/{url-input-field-rac-BxT0Lgly.js → url-input-field-rac-4T8gcMHH.js} +8 -8
- package/dist/component/{url-input-rac-GX9rvIJd.js → url-input-rac-_d6XRdKX.js} +1 -1
- package/dist/component/{use-element-state-class-name-nCwOVSGM.js → use-element-state-class-name-BqmaTba3.js} +1 -1
- package/dist/component/{use-service-options-base-BO3Ackpl.js → use-service-options-base-CRgxxz7b.js} +1 -1
- package/package.json +2 -2
- package/dist/component/donation-rac-D1rcPi17.js +0 -307
- package/dist/component/image-choice-rac-9ncRxwZd.js +0 -146
- package/dist/component/tags-field-rac-DTOthwA5.js +0 -206
package/dist/component/{email-input-field-rac-BS0bFS0-.js → email-input-field-rac-Btaa4O5T.js}
RENAMED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { RicosViewer as ie } from "@wix/ricos/viewer";
|
|
2
|
-
import
|
|
3
|
-
import u, { createContext as
|
|
2
|
+
import D from "classnames";
|
|
3
|
+
import u, { createContext as Z, useContext as z, createElement as H, isValidElement as U, cloneElement as R, useState as le, useCallback as me, useEffect as ue } from "react";
|
|
4
4
|
import { TextField as pe } from "react-aria-components";
|
|
5
|
-
import { af as fe, as as ge, ad as ve, c as ye, ai as Ee, am as de, ag as be, f as Se } from "./form-
|
|
5
|
+
import { af as fe, as as ge, ad as ve, c as ye, ai as Ee, am as de, ag as be, f as Se } from "./form-f0tqdMye.js";
|
|
6
6
|
import { f as L } from "./find-child-C60k4CxG.js";
|
|
7
7
|
import ee from "@babel/runtime/helpers/objectWithoutProperties";
|
|
8
|
-
import
|
|
8
|
+
import M from "@babel/runtime/helpers/typeof";
|
|
9
9
|
import Oe from "@babel/runtime/helpers/defineProperty";
|
|
10
10
|
import he from "html-parse-stringify";
|
|
11
11
|
import Ie from "@babel/runtime/helpers/classCallCheck";
|
|
12
12
|
import Ne from "@babel/runtime/helpers/createClass";
|
|
13
|
-
import { T as B } from "./text-input-headless-
|
|
13
|
+
import { T as B } from "./text-input-headless-BwVLU9cp.js";
|
|
14
14
|
import { E as Ae } from "./error-icon-hZxQ6DEy.js";
|
|
15
15
|
import { s as C } from "./field-rac.module-ColNPUt0.js";
|
|
16
|
-
import {
|
|
16
|
+
import { y as Fe, O as ke, x as Te, o as xe, i as De, Z as je } from "./form-element-classes-jC8D0LnK.js";
|
|
17
17
|
var Le = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g, Ce = {
|
|
18
18
|
"&": "&",
|
|
19
19
|
"&": "&",
|
|
@@ -35,11 +35,11 @@ var Le = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#1
|
|
|
35
35
|
"…": "…",
|
|
36
36
|
"/": "/",
|
|
37
37
|
"/": "/"
|
|
38
|
-
},
|
|
38
|
+
}, Me = function(t) {
|
|
39
39
|
return Ce[t];
|
|
40
|
-
},
|
|
41
|
-
return t.replace(Le,
|
|
42
|
-
},
|
|
40
|
+
}, Pe = function(t) {
|
|
41
|
+
return t.replace(Le, Me);
|
|
42
|
+
}, _e = {
|
|
43
43
|
bindI18n: "languageChanged",
|
|
44
44
|
bindI18nStore: "",
|
|
45
45
|
transEmptyNodeValue: "",
|
|
@@ -47,10 +47,10 @@ var Le = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#1
|
|
|
47
47
|
transWrapTextNodes: "",
|
|
48
48
|
transKeepBasicHtmlNodesFor: ["br", "strong", "i", "p"],
|
|
49
49
|
useSuspense: !0,
|
|
50
|
-
unescape:
|
|
51
|
-
}, we, Re =
|
|
50
|
+
unescape: Pe
|
|
51
|
+
}, we, Re = Z();
|
|
52
52
|
function He() {
|
|
53
|
-
return
|
|
53
|
+
return _e;
|
|
54
54
|
}
|
|
55
55
|
(function() {
|
|
56
56
|
function e() {
|
|
@@ -81,14 +81,14 @@ function K() {
|
|
|
81
81
|
typeof a[0] == "string" && (a[0] = "react-i18next:: ".concat(a[0])), (e = console).warn.apply(e, a);
|
|
82
82
|
}
|
|
83
83
|
}
|
|
84
|
-
var
|
|
84
|
+
var J = {};
|
|
85
85
|
function Ue() {
|
|
86
86
|
for (var e = arguments.length, t = new Array(e), a = 0; a < e; a++)
|
|
87
87
|
t[a] = arguments[a];
|
|
88
|
-
typeof t[0] == "string" &&
|
|
88
|
+
typeof t[0] == "string" && J[t[0]] || (typeof t[0] == "string" && (J[t[0]] = /* @__PURE__ */ new Date()), K.apply(void 0, t));
|
|
89
89
|
}
|
|
90
90
|
var Be = ["format"], Ve = ["children", "count", "parent", "i18nKey", "context", "tOptions", "values", "defaults", "components", "ns", "i18n", "t", "shouldUnescape"];
|
|
91
|
-
function
|
|
91
|
+
function Q(e, t) {
|
|
92
92
|
var a = Object.keys(e);
|
|
93
93
|
if (Object.getOwnPropertySymbols) {
|
|
94
94
|
var o = Object.getOwnPropertySymbols(e);
|
|
@@ -101,9 +101,9 @@ function J(e, t) {
|
|
|
101
101
|
function p(e) {
|
|
102
102
|
for (var t = 1; t < arguments.length; t++) {
|
|
103
103
|
var a = arguments[t] != null ? arguments[t] : {};
|
|
104
|
-
t % 2 ?
|
|
104
|
+
t % 2 ? Q(Object(a), !0).forEach(function(o) {
|
|
105
105
|
Oe(e, o, a[o]);
|
|
106
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(a)) :
|
|
106
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(a)) : Q(Object(a)).forEach(function(o) {
|
|
107
107
|
Object.defineProperty(e, o, Object.getOwnPropertyDescriptor(a, o));
|
|
108
108
|
});
|
|
109
109
|
}
|
|
@@ -122,7 +122,7 @@ function qe(e) {
|
|
|
122
122
|
return U(t);
|
|
123
123
|
});
|
|
124
124
|
}
|
|
125
|
-
function
|
|
125
|
+
function P(e) {
|
|
126
126
|
return Array.isArray(e) ? e : [e];
|
|
127
127
|
}
|
|
128
128
|
function Ye(e, t) {
|
|
@@ -131,7 +131,7 @@ function Ye(e, t) {
|
|
|
131
131
|
}
|
|
132
132
|
function te(e, t) {
|
|
133
133
|
if (!e) return "";
|
|
134
|
-
var a = "", o =
|
|
134
|
+
var a = "", o = P(e), c = t.transSupportBasicHtmlNodes && t.transKeepBasicHtmlNodesFor ? t.transKeepBasicHtmlNodesFor : [];
|
|
135
135
|
return o.forEach(function(r, g) {
|
|
136
136
|
if (typeof r == "string")
|
|
137
137
|
a += "".concat(r);
|
|
@@ -151,7 +151,7 @@ function te(e, t) {
|
|
|
151
151
|
}
|
|
152
152
|
} else if (r === null)
|
|
153
153
|
K("Trans: the passed in value is invalid - seems you passed in a null child.");
|
|
154
|
-
else if (
|
|
154
|
+
else if (M(r) === "object") {
|
|
155
155
|
var O = r.format, F = ee(r, Be), A = Object.keys(F);
|
|
156
156
|
if (A.length === 1) {
|
|
157
157
|
var S = O ? "".concat(A[0], ", ").concat(O) : A[0];
|
|
@@ -168,9 +168,9 @@ function Ge(e, t, a, o, c, r) {
|
|
|
168
168
|
if (!e && !v) return [t];
|
|
169
169
|
var d = {};
|
|
170
170
|
function b(y) {
|
|
171
|
-
var h =
|
|
171
|
+
var h = P(y);
|
|
172
172
|
h.forEach(function(s) {
|
|
173
|
-
typeof s != "string" && (Y(s) ? b(G(s)) :
|
|
173
|
+
typeof s != "string" && (Y(s) ? b(G(s)) : M(s) === "object" && !U(s) && Object.assign(d, s));
|
|
174
174
|
});
|
|
175
175
|
}
|
|
176
176
|
b(e);
|
|
@@ -185,7 +185,7 @@ function Ge(e, t, a, o, c, r) {
|
|
|
185
185
|
}), I ? void 0 : h));
|
|
186
186
|
}
|
|
187
187
|
function S(y, h, s) {
|
|
188
|
-
var i =
|
|
188
|
+
var i = P(y), I = P(h);
|
|
189
189
|
return I.reduce(function(l, n, E) {
|
|
190
190
|
var k = n.children && n.children[0] && n.children[0].content && a.services.interpolator.interpolate(n.children[0].content, O, a.language);
|
|
191
191
|
if (n.type === "tag") {
|
|
@@ -193,14 +193,14 @@ function Ge(e, t, a, o, c, r) {
|
|
|
193
193
|
!N && s.length === 1 && s[0][n.name] && (N = s[0][n.name]), N || (N = {});
|
|
194
194
|
var m = Object.keys(n.attrs).length !== 0 ? Ye({
|
|
195
195
|
props: n.attrs
|
|
196
|
-
}, N) : N,
|
|
196
|
+
}, N) : N, x = U(m), V = x && Y(n, !0) && !n.voidElement, _ = v && M(m) === "object" && m.dummy && !x, w = M(e) === "object" && e !== null && Object.hasOwnProperty.call(e, n.name);
|
|
197
197
|
if (typeof m == "string") {
|
|
198
198
|
var q = a.services.interpolator.interpolate(m, O, a.language);
|
|
199
199
|
l.push(q);
|
|
200
200
|
} else if (Y(m) || V) {
|
|
201
201
|
var ne = F(m, n, s);
|
|
202
202
|
A(m, ne, l, E);
|
|
203
|
-
} else if (
|
|
203
|
+
} else if (_) {
|
|
204
204
|
var oe = S(i, n.children, s);
|
|
205
205
|
l.push(R(m, p(p({}, m.props), {}, {
|
|
206
206
|
key: E
|
|
@@ -226,7 +226,7 @@ function Ge(e, t, a, o, c, r) {
|
|
|
226
226
|
var ce = S(i, n.children, s);
|
|
227
227
|
l.push("<".concat(n.name, ">").concat(ce, "</").concat(n.name, ">"));
|
|
228
228
|
}
|
|
229
|
-
else if (
|
|
229
|
+
else if (M(m) === "object" && !x) {
|
|
230
230
|
var $ = n.children[0] ? k : null;
|
|
231
231
|
$ && l.push($);
|
|
232
232
|
} else n.children.length === 1 && k ? l.push(R(m, p(p({}, m.props), {}, {
|
|
@@ -246,11 +246,11 @@ function Ge(e, t, a, o, c, r) {
|
|
|
246
246
|
var j = S([{
|
|
247
247
|
dummy: !0,
|
|
248
248
|
children: e || []
|
|
249
|
-
}], T,
|
|
249
|
+
}], T, P(e || []));
|
|
250
250
|
return G(j[0]);
|
|
251
251
|
}
|
|
252
252
|
function $e(e) {
|
|
253
|
-
var t = e.children, a = e.count, o = e.parent, c = e.i18nKey, r = e.context, g = e.tOptions, v = g === void 0 ? {} : g, d = e.values, b = e.defaults, T = e.components, O = e.ns, F = e.i18n, A = e.t, S = e.shouldUnescape, j = ee(e, Ve), y =
|
|
253
|
+
var t = e.children, a = e.count, o = e.parent, c = e.i18nKey, r = e.context, g = e.tOptions, v = g === void 0 ? {} : g, d = e.values, b = e.defaults, T = e.components, O = e.ns, F = e.i18n, A = e.t, S = e.shouldUnescape, j = ee(e, Ve), y = z(Re) || {}, h = y.i18n, s = y.defaultNS, i = F || h || Ke();
|
|
254
254
|
if (!i)
|
|
255
255
|
return Ue("You will need to pass in an i18next instance by using i18nextReactModule"), t;
|
|
256
256
|
var I = A || i.t.bind(i) || function(q) {
|
|
@@ -264,28 +264,28 @@ function $e(e) {
|
|
|
264
264
|
prefix: "#$?",
|
|
265
265
|
suffix: "?$#"
|
|
266
266
|
})
|
|
267
|
-
},
|
|
267
|
+
}, x = p(p(p(p({}, v), {}, {
|
|
268
268
|
count: a
|
|
269
269
|
}, d), m), {}, {
|
|
270
270
|
defaultValue: E,
|
|
271
271
|
ns: n
|
|
272
|
-
}), V = N ? I(N,
|
|
273
|
-
return w ? H(w, j,
|
|
272
|
+
}), V = N ? I(N, x) : E, _ = Ge(T || t, V, i, l, x, S), w = o !== void 0 ? o : l.defaultTransParent;
|
|
273
|
+
return w ? H(w, j, _) : _;
|
|
274
274
|
}
|
|
275
|
-
const We = "email-mistype-suggestion", Xe = "email-mistype-suggestion-link", ae = /* @__PURE__ */
|
|
276
|
-
function
|
|
277
|
-
const e =
|
|
275
|
+
const We = "email-mistype-suggestion", Xe = "email-mistype-suggestion-link", ae = /* @__PURE__ */ Z(void 0);
|
|
276
|
+
function Je() {
|
|
277
|
+
const e = z(ae);
|
|
278
278
|
if (e === void 0)
|
|
279
279
|
throw new Error("useEmailSuggestion must be used inside <EmailInput>");
|
|
280
280
|
return e;
|
|
281
281
|
}
|
|
282
|
-
const
|
|
282
|
+
const Qe = ({ activeSuggestion: e, applySuggestion: t, children: a }) => /* @__PURE__ */ u.createElement(ae.Provider, {
|
|
283
283
|
value: {
|
|
284
284
|
activeSuggestion: e,
|
|
285
285
|
applySuggestion: t
|
|
286
286
|
}
|
|
287
|
-
}, a),
|
|
288
|
-
const { suggestionId: t } = fe(), { activeSuggestion: a, applySuggestion: o } =
|
|
287
|
+
}, a), Ze = ({ className: e }) => {
|
|
288
|
+
const { suggestionId: t } = fe(), { activeSuggestion: a, applySuggestion: o } = Je(), { t: c, i18n: r } = ge();
|
|
289
289
|
return /* @__PURE__ */ u.createElement("div", {
|
|
290
290
|
id: t,
|
|
291
291
|
"data-hook": We,
|
|
@@ -310,7 +310,7 @@ const Je = ({ activeSuggestion: e, applySuggestion: t, children: a }) => /* @__P
|
|
|
310
310
|
})
|
|
311
311
|
]
|
|
312
312
|
}) : null);
|
|
313
|
-
},
|
|
313
|
+
}, ze = {
|
|
314
314
|
"aol.com": [
|
|
315
315
|
"aaol.com",
|
|
316
316
|
"aol.con",
|
|
@@ -421,7 +421,7 @@ const Je = ({ activeSuggestion: e, applySuggestion: t, children: a }) => /* @__P
|
|
|
421
421
|
"comcast.nrt",
|
|
422
422
|
"comcast.net.net"
|
|
423
423
|
]
|
|
424
|
-
}, et = new Map(Object.entries(
|
|
424
|
+
}, et = new Map(Object.entries(ze).flatMap(([e, t]) => t.map((a) => [
|
|
425
425
|
a,
|
|
426
426
|
e
|
|
427
427
|
]))), tt = (e) => {
|
|
@@ -459,7 +459,7 @@ const Je = ({ activeSuggestion: e, applySuggestion: t, children: a }) => /* @__P
|
|
|
459
459
|
}, n = L(e, f.Label), E = L(e, f.Input), k = L(e, f.Description), N = L(e, f.Error), m = L(e, f.Suggestion);
|
|
460
460
|
return /* @__PURE__ */ u.createElement(Se.Provider, {
|
|
461
461
|
value: i
|
|
462
|
-
}, /* @__PURE__ */ u.createElement(
|
|
462
|
+
}, /* @__PURE__ */ u.createElement(Qe, {
|
|
463
463
|
activeSuggestion: s,
|
|
464
464
|
applySuggestion: I
|
|
465
465
|
}, /* @__PURE__ */ u.createElement(F, {
|
|
@@ -483,24 +483,24 @@ f.Label = B.Label;
|
|
|
483
483
|
f.Input = B.Input;
|
|
484
484
|
f.Description = B.Description;
|
|
485
485
|
f.Error = B.Error;
|
|
486
|
-
f.Suggestion =
|
|
486
|
+
f.Suggestion = Ze;
|
|
487
487
|
const nt = "_suggestion_di65n_1", ot = {
|
|
488
488
|
suggestion: nt
|
|
489
489
|
}, rt = ({ content: e, locale: t }) => /* @__PURE__ */ u.createElement(ie, {
|
|
490
490
|
content: e,
|
|
491
491
|
locale: t
|
|
492
492
|
}), ht = () => /* @__PURE__ */ u.createElement(f, null, /* @__PURE__ */ u.createElement(f.Label, {
|
|
493
|
-
className:
|
|
493
|
+
className: D(Fe, C.label)
|
|
494
494
|
}, /* @__PURE__ */ u.createElement(f.Label.Required, {
|
|
495
|
-
className:
|
|
495
|
+
className: D(ke, C.requiredMark)
|
|
496
496
|
})), /* @__PURE__ */ u.createElement(f.Input, {
|
|
497
|
-
className:
|
|
497
|
+
className: D(Te, C.input)
|
|
498
498
|
}), /* @__PURE__ */ u.createElement(f.Error, {
|
|
499
|
-
className:
|
|
499
|
+
className: D(xe, C.error)
|
|
500
500
|
}, /* @__PURE__ */ u.createElement(Ae, null), /* @__PURE__ */ u.createElement(f.Error.Text, null)), /* @__PURE__ */ u.createElement(f.Description, {
|
|
501
|
-
className:
|
|
501
|
+
className: D(De, C.description)
|
|
502
502
|
}, rt), /* @__PURE__ */ u.createElement(f.Suggestion, {
|
|
503
|
-
className:
|
|
503
|
+
className: D(je, ot.suggestion)
|
|
504
504
|
}));
|
|
505
505
|
export {
|
|
506
506
|
ht as E
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import e, { useState as q, useMemo as v, useCallback as V, useRef as
|
|
1
|
+
import e, { useState as q, useMemo as v, useCallback as V, useRef as x } from "react";
|
|
2
2
|
import T from "classnames";
|
|
3
|
-
import { NumberField as z, Input as J, CheckboxField as Q, CheckboxButton as W, Button as
|
|
4
|
-
import { ao as U, ap as P, ae as H, aj as K, u as Y, ai as D, af as X, ak as j, j as Z } from "./form-
|
|
3
|
+
import { NumberField as z, Input as J, CheckboxField as Q, CheckboxButton as W, Button as w } from "react-aria-components";
|
|
4
|
+
import { ao as U, ap as P, ae as H, aj as K, u as Y, ai as D, af as X, ak as j, j as Z } from "./form-f0tqdMye.js";
|
|
5
5
|
import { f as b, a as L } from "./find-child-C60k4CxG.js";
|
|
6
|
-
import { L as ee } from "./field-label-headless-
|
|
6
|
+
import { L as ee } from "./field-label-headless-BGyK-5xW.js";
|
|
7
7
|
import { S as te } from "./selection-indicator-XQ8MYHUQ.js";
|
|
8
8
|
import { u as se } from "./use-invoke-callback-UH73A_J3.js";
|
|
9
9
|
import { C as k } from "./chevron-down-icon-CcpVm6B-.js";
|
|
10
10
|
import { C as ne } from "./checkbox-indicator-module-classes-DqzGZQRQ.js";
|
|
11
11
|
import { s as B } from "./field-rac.module-ColNPUt0.js";
|
|
12
|
-
import {
|
|
13
|
-
import { u as ue } from "./use-element-state-class-name-
|
|
12
|
+
import { y as oe, x as re, p as ae, r as le, q as ce } from "./form-element-classes-jC8D0LnK.js";
|
|
13
|
+
import { u as ue } from "./use-element-state-class-name-BqmaTba3.js";
|
|
14
14
|
const me = [], ie = ({ id: t, fields: n, layout: l, value: r, onChange: s, errors: m = me, validation: c }) => {
|
|
15
15
|
const [i, E] = q((r == null ? void 0 : r.length) || 0), a = v(() => r ?? [], [
|
|
16
16
|
r
|
|
@@ -98,7 +98,7 @@ const me = [], ie = ({ id: t, fields: n, layout: l, value: r, onChange: s, error
|
|
|
98
98
|
}, Ee = ({ className: t }) => /* @__PURE__ */ e.createElement(ee, {
|
|
99
99
|
className: t
|
|
100
100
|
}, null), O = ({ children: t, className: n, groupClassName: l, ...r }) => {
|
|
101
|
-
const { guestLimit: s, guestCount: m, onGuestCountChange: c } = r, { id: i, label: E, disabled: a, readOnly: C, onBlur: g, onFocus: d } = D(), { inputId: u, ariaDescribedBy: F } = X(), _ = se(g), G =
|
|
101
|
+
const { guestLimit: s, guestCount: m, onGuestCountChange: c } = r, { id: i, label: E, disabled: a, readOnly: C, onBlur: g, onFocus: d } = D(), { inputId: u, ariaDescribedBy: F } = X(), _ = se(g), G = x(null);
|
|
102
102
|
j(() => {
|
|
103
103
|
var p;
|
|
104
104
|
(p = G.current) == null || p.focus();
|
|
@@ -123,14 +123,14 @@ const me = [], ie = ({ id: t, fields: n, layout: l, value: r, onChange: s, error
|
|
|
123
123
|
className: n,
|
|
124
124
|
inputMode: "numeric"
|
|
125
125
|
}), S, f);
|
|
126
|
-
}, Ce = ({ children: t, className: n }) => /* @__PURE__ */ e.createElement(
|
|
126
|
+
}, Ce = ({ children: t, className: n }) => /* @__PURE__ */ e.createElement(w, {
|
|
127
127
|
slot: "decrement",
|
|
128
128
|
className: n
|
|
129
|
-
}, t), fe = ({ children: t, className: n }) => /* @__PURE__ */ e.createElement(
|
|
129
|
+
}, t), fe = ({ children: t, className: n }) => /* @__PURE__ */ e.createElement(w, {
|
|
130
130
|
slot: "increment",
|
|
131
131
|
className: n
|
|
132
132
|
}, t), R = ({ children: t, className: n, ...l }) => {
|
|
133
|
-
const { guestCount: r, onGuestCountChange: s } = l, { id: m, label: c, disabled: i, readOnly: E, onBlur: a, onFocus: C } = D(), { inputId: g, ariaDescribedBy: d } = X(), u =
|
|
133
|
+
const { guestCount: r, onGuestCountChange: s } = l, { id: m, label: c, disabled: i, readOnly: E, onBlur: a, onFocus: C } = D(), { inputId: g, ariaDescribedBy: d } = X(), u = x(null);
|
|
134
134
|
j(() => {
|
|
135
135
|
var f;
|
|
136
136
|
(f = u.current) == null || f.focus();
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import t from "react";
|
|
2
2
|
import { RicosViewer as m } from "@wix/ricos/viewer";
|
|
3
3
|
import s from "classnames";
|
|
4
|
-
import { a, s as o, R as c } from "./radio-button-module-classes-
|
|
4
|
+
import { a, s as o, R as c } from "./radio-button-module-classes-DXQ1UlmI.js";
|
|
5
5
|
import { E } from "./error-icon-hZxQ6DEy.js";
|
|
6
6
|
import { s as l } from "./field-rac.module-ColNPUt0.js";
|
|
7
|
-
import {
|
|
8
|
-
import { u } from "./use-element-state-class-name-
|
|
7
|
+
import { y as i, O as p, P as R, Q as _, o as O, i as L, R as S } from "./form-element-classes-jC8D0LnK.js";
|
|
8
|
+
import { u } from "./use-element-state-class-name-BqmaTba3.js";
|
|
9
9
|
const e = ({ children: r }) => /* @__PURE__ */ t.createElement(a, null, r);
|
|
10
10
|
e.Label = a.Label;
|
|
11
11
|
e.Options = a.Options;
|
package/dist/component/{field-error-headless-C7IUibkK.js → field-error-headless-BErhh9GG.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import t, { createContext as m, useContext as M } from "react";
|
|
2
|
-
import { ai as c, af as i, ab as f, T as x, U as h } from "./form-
|
|
2
|
+
import { ai as c, af as i, ab as f, T as x, U as h } from "./form-f0tqdMye.js";
|
|
3
3
|
const b = ({ className: r, children: e }) => {
|
|
4
4
|
const { description: s, target: o } = c(), { descriptionId: a } = i(), { language: n } = f();
|
|
5
5
|
return s ? /* @__PURE__ */ t.createElement("div", {
|
package/dist/component/{field-label-headless-BQFy2iAr.js → field-label-headless-BGyK-5xW.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ai as m, R as d, q as p, af as D, as as B } from "./form-
|
|
1
|
+
import { ai as m, R as d, q as p, af as D, as as B } from "./form-f0tqdMye.js";
|
|
2
2
|
import l from "react";
|
|
3
3
|
import { f as L } from "./find-child-C60k4CxG.js";
|
|
4
4
|
import { sdk as R } from "@wix/image-kit";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import t, { useState as Q, useRef as V, useMemo as oe, useEffect as se, useCallback as P, createContext as pe, useContext as fe } from "react";
|
|
2
2
|
import { RicosViewer as Ee } from "@wix/ricos/viewer";
|
|
3
3
|
import B from "classnames";
|
|
4
|
-
import { ae as Fe, as as ie, an as ge, i as he, aq as xe, e as re, ar as be, af as ce, ai as q, ak as Ce } from "./form-
|
|
4
|
+
import { ae as Fe, as as ie, an as ge, i as he, aq as xe, e as re, ar as be, af as ce, ai as q, ak as Ce } from "./form-f0tqdMye.js";
|
|
5
5
|
import { E as Le } from "./error-icon-hZxQ6DEy.js";
|
|
6
6
|
import { s as I } from "./field-rac.module-ColNPUt0.js";
|
|
7
|
-
import {
|
|
7
|
+
import { y as ne, O as De, a1 as Ne, i as ae, o as le } from "./form-element-classes-jC8D0LnK.js";
|
|
8
8
|
import { f as h, a as z } from "./find-child-C60k4CxG.js";
|
|
9
|
-
import { b as
|
|
10
|
-
import { L as Be } from "./field-label-headless-
|
|
9
|
+
import { b as ye, a as ve, D as _e, E as Te } from "./field-error-headless-BErhh9GG.js";
|
|
10
|
+
import { L as Be } from "./field-label-headless-BGyK-5xW.js";
|
|
11
11
|
import { DropZone as Re, Text as Se, FileTrigger as Me, Button as de, ProgressBar as Ie } from "react-aria-components";
|
|
12
12
|
const we = {
|
|
13
13
|
Video: "video/*",
|
|
@@ -26,7 +26,7 @@ const we = {
|
|
|
26
26
|
formId: n,
|
|
27
27
|
uploadTarget: e
|
|
28
28
|
}).then((s) => {
|
|
29
|
-
const { id: b, displayName: m, url: c, isPrivate: N } = s,
|
|
29
|
+
const { id: b, displayName: m, url: c, isPrivate: N } = s, y = {
|
|
30
30
|
fileId: b,
|
|
31
31
|
displayName: m || a.name,
|
|
32
32
|
url: N ? void 0 : c,
|
|
@@ -34,8 +34,8 @@ const we = {
|
|
|
34
34
|
};
|
|
35
35
|
return i({
|
|
36
36
|
file: a,
|
|
37
|
-
uploadedFile:
|
|
38
|
-
}),
|
|
37
|
+
uploadedFile: y
|
|
38
|
+
}), y;
|
|
39
39
|
}).catch((s) => {
|
|
40
40
|
d(s, a);
|
|
41
41
|
}));
|
|
@@ -43,16 +43,16 @@ const we = {
|
|
|
43
43
|
};
|
|
44
44
|
};
|
|
45
45
|
function Ze({ valueSliderLimit: e, value: r, explanationText: n, target: o, onChange: i, uploadFileFormats: d, onBlur: x, onFilesCleared: D }) {
|
|
46
|
-
const [a, s] = Q(ke(r)), [b, m] = Q(r || []), [c, N] = Q(),
|
|
46
|
+
const [a, s] = Q(ke(r)), [b, m] = Q(r || []), [c, N] = Q(), y = Ae(o), { t: E } = ie(), k = ge().includes(he.BUTTONS_HOVER), { setFormStatus: v } = xe(), S = V(!1), _ = V(i);
|
|
47
47
|
_.current = i;
|
|
48
48
|
const C = oe(() => a.some((u) => u.state === "uploading"), [
|
|
49
49
|
a
|
|
50
50
|
]);
|
|
51
51
|
se(() => {
|
|
52
|
-
S.current !== C && (S.current = C,
|
|
52
|
+
S.current !== C && (S.current = C, v(o, C ? re.BUSY : re.READY));
|
|
53
53
|
}, [
|
|
54
54
|
C,
|
|
55
|
-
|
|
55
|
+
v,
|
|
56
56
|
o
|
|
57
57
|
]);
|
|
58
58
|
const U = P(() => {
|
|
@@ -73,7 +73,7 @@ function Ze({ valueSliderLimit: e, value: r, explanationText: n, target: o, onCh
|
|
|
73
73
|
n,
|
|
74
74
|
E
|
|
75
75
|
]), M = P(async (F) => {
|
|
76
|
-
await
|
|
76
|
+
await y(F, ({ file: u, uploadedFile: g }) => {
|
|
77
77
|
s((p) => p.map((f) => f.file === u ? {
|
|
78
78
|
file: u,
|
|
79
79
|
state: "uploaded"
|
|
@@ -92,7 +92,7 @@ function Ze({ valueSliderLimit: e, value: r, explanationText: n, target: o, onCh
|
|
|
92
92
|
} : f));
|
|
93
93
|
});
|
|
94
94
|
}, [
|
|
95
|
-
|
|
95
|
+
y,
|
|
96
96
|
E
|
|
97
97
|
]), O = async (F) => {
|
|
98
98
|
if (c && N(void 0), F) {
|
|
@@ -198,10 +198,10 @@ const A = ({ children: e, className: r }) => {
|
|
|
198
198
|
limitReached: n
|
|
199
199
|
}));
|
|
200
200
|
}, J = ({ className: e, children: r, "aria-roledescription": n }) => {
|
|
201
|
-
const { ariaDescribedBy: o, inputId: i, labelId: d, errorId: x } = ce(), { disabled: D, required: a, onFocus: s, hasError: b, errorMessage: m } = q(), { handleFileChange: c, accept: N, multiple:
|
|
201
|
+
const { ariaDescribedBy: o, inputId: i, labelId: d, errorId: x } = ce(), { disabled: D, required: a, onFocus: s, hasError: b, errorMessage: m } = q(), { handleFileChange: c, accept: N, multiple: y, buttonRef: E, handleBlur: R, limitError: k, files: v } = Z(), S = (v == null ? void 0 : v.some((C) => C.errorMessage)) ?? !1, _ = !!(b || m || k || S);
|
|
202
202
|
return /* @__PURE__ */ t.createElement(Me, {
|
|
203
203
|
acceptedFileTypes: N ? N.split(",") : void 0,
|
|
204
|
-
allowsMultiple:
|
|
204
|
+
allowsMultiple: y,
|
|
205
205
|
onSelect: (C) => {
|
|
206
206
|
if (C) {
|
|
207
207
|
const U = Array.from(C), M = new DataTransfer();
|
|
@@ -279,7 +279,7 @@ const T = ({ children: e, className: r, ...n }) => {
|
|
|
279
279
|
}, n);
|
|
280
280
|
}, ue = ({ className: e, children: r, ...n }) => {
|
|
281
281
|
const { errorMessage: o } = n;
|
|
282
|
-
return o ? /* @__PURE__ */ t.createElement(
|
|
282
|
+
return o ? /* @__PURE__ */ t.createElement(ve, {
|
|
283
283
|
value: o
|
|
284
284
|
}, /* @__PURE__ */ t.createElement("div", {
|
|
285
285
|
className: e,
|
|
@@ -294,7 +294,7 @@ T.Name = ze;
|
|
|
294
294
|
T.Remove = Ve;
|
|
295
295
|
T.Spinner = qe;
|
|
296
296
|
T.Error = ue;
|
|
297
|
-
ue.Text =
|
|
297
|
+
ue.Text = ye;
|
|
298
298
|
const X = ({ children: e, className: r }) => {
|
|
299
299
|
const { files: n } = Z(), o = h(e, X.File);
|
|
300
300
|
return !n || n.length === 0 ? null : /* @__PURE__ */ t.createElement("div", {
|
|
@@ -307,10 +307,10 @@ const X = ({ children: e, className: r }) => {
|
|
|
307
307
|
};
|
|
308
308
|
X.File = T;
|
|
309
309
|
const G = (e) => e.file.name, l = ({ children: e }) => {
|
|
310
|
-
const { id: r, value: n, onChange: o, uploadFileFormats: i, valueSliderLimit: d, target: x, explanationText: D, onBlur: a, hasError: s, errorMessage: b, FieldLayout: m } = q(), c = V(null), N = V({}),
|
|
310
|
+
const { id: r, value: n, onChange: o, uploadFileFormats: i, valueSliderLimit: d, target: x, explanationText: D, onBlur: a, hasError: s, errorMessage: b, FieldLayout: m } = q(), c = V(null), N = V({}), y = P(() => {
|
|
311
311
|
var L;
|
|
312
312
|
(L = c.current) == null || L.focus();
|
|
313
|
-
}, []), { files: E, limitError: R, hover: k, getExplanationText:
|
|
313
|
+
}, []), { files: E, limitError: R, hover: k, getExplanationText: v, handleBlur: S, handleChange: _, handleDelete: C, accept: U } = Ze({
|
|
314
314
|
valueSliderLimit: d,
|
|
315
315
|
value: n,
|
|
316
316
|
explanationText: D,
|
|
@@ -318,7 +318,7 @@ const G = (e) => e.file.name, l = ({ children: e }) => {
|
|
|
318
318
|
onChange: o,
|
|
319
319
|
uploadFileFormats: i,
|
|
320
320
|
onBlur: a,
|
|
321
|
-
onFilesCleared:
|
|
321
|
+
onFilesCleared: y
|
|
322
322
|
}), M = P((L) => {
|
|
323
323
|
var te;
|
|
324
324
|
const ee = E[L], Y = G(ee);
|
|
@@ -334,7 +334,7 @@ const G = (e) => e.file.name, l = ({ children: e }) => {
|
|
|
334
334
|
accept: U,
|
|
335
335
|
limitReached: j,
|
|
336
336
|
multiple: O,
|
|
337
|
-
getExplanationText:
|
|
337
|
+
getExplanationText: v,
|
|
338
338
|
hover: k,
|
|
339
339
|
limitError: R,
|
|
340
340
|
buttonRef: c,
|
|
@@ -347,7 +347,7 @@ const G = (e) => e.file.name, l = ({ children: e }) => {
|
|
|
347
347
|
U,
|
|
348
348
|
j,
|
|
349
349
|
O,
|
|
350
|
-
|
|
350
|
+
v,
|
|
351
351
|
k,
|
|
352
352
|
R
|
|
353
353
|
]), K = h(e, l.Label), W = h(e, l.DropZone), F = h(e, l.Button), u = h(e, l.Explanation), g = h(e, l.Files), p = h(e, l.Description), f = h(e, l.Error);
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import t, { useMemo as
|
|
2
|
-
import { RicosViewer as
|
|
1
|
+
import t, { useMemo as _ } from "react";
|
|
2
|
+
import { RicosViewer as A } from "@wix/ricos/viewer";
|
|
3
3
|
import u from "classnames";
|
|
4
|
-
import { ai as C, ab as I, af as P } from "./form-
|
|
4
|
+
import { ai as C, ab as I, af as P } from "./form-f0tqdMye.js";
|
|
5
5
|
import { f as c, a as O } from "./find-child-C60k4CxG.js";
|
|
6
6
|
import { f as S } from "./format-currency-BwShJ9vM.js";
|
|
7
|
-
import { D as x, E as N } from "./field-error-headless-
|
|
8
|
-
import { L as R } from "./field-label-headless-
|
|
7
|
+
import { D as x, E as N } from "./field-error-headless-BErhh9GG.js";
|
|
8
|
+
import { L as R } from "./field-label-headless-BGyK-5xW.js";
|
|
9
9
|
import { s as L } from "./field-rac.module-ColNPUt0.js";
|
|
10
|
-
import {
|
|
10
|
+
import { y as v, z as M, i as g } from "./form-element-classes-jC8D0LnK.js";
|
|
11
11
|
const e = ({ children: r }) => {
|
|
12
12
|
var p;
|
|
13
|
-
const { id: n, validation: a, FieldLayout: l } = C(), { currency: o, regionalFormat: m } = I(), s =
|
|
13
|
+
const { id: n, validation: a, FieldLayout: l } = C(), { currency: o, regionalFormat: m } = I(), s = _(() => {
|
|
14
14
|
var d, f, E;
|
|
15
15
|
return (E = (f = (d = a == null ? void 0 : a.predefined) == null ? void 0 : d.paymentOptions) == null ? void 0 : f.products) == null ? void 0 : E[0];
|
|
16
16
|
}, [
|
|
17
17
|
a
|
|
18
|
-
]), i = (p = s == null ? void 0 : s.fixedPriceOptions) == null ? void 0 : p.price, y = c(r, e.Label), F = c(r, e.Amount), b = c(r, e.Description),
|
|
18
|
+
]), i = (p = s == null ? void 0 : s.fixedPriceOptions) == null ? void 0 : p.price, y = c(r, e.Label), F = c(r, e.Amount), b = c(r, e.Description), D = c(r, e.Error);
|
|
19
19
|
return /* @__PURE__ */ t.createElement(l, {
|
|
20
20
|
fieldId: n,
|
|
21
21
|
renderLabel: () => y,
|
|
@@ -24,7 +24,7 @@ const e = ({ children: r }) => {
|
|
|
24
24
|
currencyCode: o == null ? void 0 : o.code,
|
|
25
25
|
locale: m
|
|
26
26
|
}),
|
|
27
|
-
renderDescription: () => /* @__PURE__ */ t.createElement(t.Fragment, null,
|
|
27
|
+
renderDescription: () => /* @__PURE__ */ t.createElement(t.Fragment, null, D, b)
|
|
28
28
|
});
|
|
29
29
|
}, B = ({ className: r, ...n }) => {
|
|
30
30
|
const { price: a, currencyCode: l, locale: o } = n, { inputId: m, ariaDescribedBy: s } = P(), i = S({
|
|
@@ -47,7 +47,7 @@ e.Description = x;
|
|
|
47
47
|
e.Error = N;
|
|
48
48
|
const V = "_value_c7203_1", k = {
|
|
49
49
|
value: V
|
|
50
|
-
}, w = ({ content: r, locale: n }) => /* @__PURE__ */ t.createElement(
|
|
50
|
+
}, w = ({ content: r, locale: n }) => /* @__PURE__ */ t.createElement(A, {
|
|
51
51
|
content: r,
|
|
52
52
|
locale: n
|
|
53
53
|
}), z = () => /* @__PURE__ */ t.createElement(e, null, /* @__PURE__ */ t.createElement(e.Label, {
|