@wix/form-elements 1.82.0 → 1.83.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-DmwbqZse.js → appointment-rac-ky2cE6hE.js} +6 -6
- package/dist/component/{bookings-address-rac-RCzVU87c.js → bookings-address-rac-Bxc6H9Pb.js} +1 -1
- package/dist/component/{bookings-email-rac-Df_Wte1_.js → bookings-email-rac-Dw1Xttdx.js} +1 -1
- package/dist/component/{bookings-first-name-rac-BmdRGYxF.js → bookings-first-name-rac-dgHOrJaJ.js} +1 -1
- package/dist/component/{bookings-header-rac-DewQWtkZ.js → bookings-header-rac-Bl9RYGWo.js} +1 -1
- package/dist/component/{bookings-last-name-rac-DmmNBuqy.js → bookings-last-name-rac-BeqYpbZq.js} +1 -1
- package/dist/component/{bookings-login-bar-rac-QskvFo0C.js → bookings-login-bar-rac-C1k6o0A5.js} +2 -2
- package/dist/component/{bookings-phone-rac-7wn8IXna.js → bookings-phone-rac-ByhaJrwE.js} +1 -1
- package/dist/component/{bookings-rich-text-rac-B5nk0BlD.js → bookings-rich-text-rac-Mw5-ZiIn.js} +1 -1
- package/dist/component/{checkbox-field-rac-BnVNfYWL.js → checkbox-field-rac-CMEI5t4Y.js} +7 -7
- package/dist/component/{checkbox-group-field-headless-Bx5Y-RMP.js → checkbox-group-field-headless-CP21R7_s.js} +3 -3
- package/dist/component/checkbox-group-field-rac-DGOZjSIY.js +42 -0
- package/dist/component/{checkbox-group-rac-B20t8dTB.js → checkbox-group-rac-CEGtshrl.js} +1 -1
- package/dist/component/{checkbox-indicator-module-classes-DqzGZQRQ.js → checkbox-indicator-module-classes-Bb3xB1ve.js} +1 -1
- package/dist/component/{checkbox-rac-ifC6qSE8.js → checkbox-rac-DCnRh1WF.js} +1 -1
- package/dist/component/{contacts-address-rac-XJRKvPlp.js → contacts-address-rac-CZb_5N5o.js} +1 -1
- package/dist/component/{contacts-birthdate-rac-CKYESrPO.js → contacts-birthdate-rac-DZlwSyp5.js} +1 -1
- package/dist/component/{contacts-company-rac-BXwEeb0p.js → contacts-company-rac-BNEF6LjB.js} +1 -1
- package/dist/component/{contacts-email-rac-D8Yspo_m.js → contacts-email-rac-CAgk_zfN.js} +1 -1
- package/dist/component/{contacts-first-name-rac-mvCGP1LJ.js → contacts-first-name-rac-DyTVcmrX.js} +1 -1
- package/dist/component/{contacts-last-name-rac-Clg9RXal.js → contacts-last-name-rac-DrFcDcGr.js} +1 -1
- package/dist/component/{contacts-phone-rac-qEwjhByI.js → contacts-phone-rac-UAPALlFx.js} +1 -1
- package/dist/component/{contacts-position-rac-Bh8fvf2M.js → contacts-position-rac-CJ1M4kJJ.js} +1 -1
- package/dist/component/{contacts-subscribe-rac-DEQ2XkZo.js → contacts-subscribe-rac-1cEd5s1l.js} +2 -2
- package/dist/component/{contacts-tax-id-rac-0DUZ4tJz.js → contacts-tax-id-rac-CqnO__fd.js} +1 -1
- package/dist/component/{date-availability-2ek2RtXx.js → date-availability-COM2EaRy.js} +1 -1
- package/dist/component/{date-input-field-rac-Bp4SQB-t.js → date-input-field-rac-CuuWbw42.js} +80 -79
- package/dist/component/{date-input-rac-CYsJcMe5.js → date-input-rac-DfVmj9Gc.js} +1 -1
- package/dist/component/{date-picker-field-rac-BGQvnSYI.js → date-picker-field-rac-BFCZik9T.js} +6 -6
- package/dist/component/{date-picker-rac-BVncggYR.js → date-picker-rac-C2vajJpb.js} +1 -1
- package/dist/component/{date-time-input-field-rac-B1mggelc.js → date-time-input-field-rac-B7ne2emo.js} +127 -126
- package/dist/component/{date-time-input-rac-DzdCno0L.js → date-time-input-rac-D4FEieQz.js} +1 -1
- package/dist/component/{dext-checkbox-group-rac-CNCpeolD.js → dext-checkbox-group-rac-BDBBTNNo.js} +2 -2
- package/dist/component/{dext-checkbox-rac-BYDQ58Mo.js → dext-checkbox-rac-DAAhNboR.js} +1 -1
- package/dist/component/{dext-date-picker-rac-aYYk8Nrl.js → dext-date-picker-rac-me7XbR5z.js} +1 -1
- package/dist/component/{dext-date-time-input-rac-v2v974p5.js → dext-date-time-input-rac-DLsUl2Eg.js} +1 -1
- package/dist/component/{dext-dropdown-rac-C846KZCe.js → dext-dropdown-rac-C3vVIRir.js} +1 -1
- package/dist/component/{dext-email-rac-izjbfME9.js → dext-email-rac-a8qXYTLP.js} +1 -1
- package/dist/component/{dext-number-input-rac-CnOFsD7l.js → dext-number-input-rac-DdDnL_fX.js} +1 -1
- package/dist/component/{dext-phone-rac-D8GMXD88.js → dext-phone-rac-ByaxbHpO.js} +1 -1
- package/dist/component/{dext-radio-group-rac-BtiyGCRh.js → dext-radio-group-rac-Bzubt7Uy.js} +2 -2
- package/dist/component/{dext-rating-input-rac-BHJ1kitb.js → dext-rating-input-rac-BZ1EvOkG.js} +1 -1
- package/dist/component/{dext-tags-rac-CvNjwS5R.js → dext-tags-rac-C_R89noV.js} +2 -2
- package/dist/component/{dext-text-area-rac-X5L0Q3sC.js → dext-text-area-rac-DRpYeQ-K.js} +1 -1
- package/dist/component/{dext-text-input-rac-swkyAJqC.js → dext-text-input-rac-D_RtbQQ-.js} +1 -1
- package/dist/component/{dext-url-input-rac-BYlXOAkz.js → dext-url-input-rac-BSSjSbIo.js} +1 -1
- package/dist/component/{donation-rac-CDWLBZZM.js → donation-rac-De0KyyGR.js} +92 -91
- package/dist/component/{dropdown-field-headless-JJzbZvps.js → dropdown-field-headless-DNhnTDlD.js} +3 -3
- package/dist/component/{dropdown-field-rac-BodpIQ9Q.js → dropdown-field-rac-Bq_FNv9a.js} +3 -3
- package/dist/component/{dropdown-rac-Bfbxxx9k.js → dropdown-rac-0UIyqF15.js} +1 -1
- package/dist/component/{ecom-address-rac-BCnsL5tr.js → ecom-address-rac-7IVbvs3J.js} +1 -1
- package/dist/component/{ecom-subscription-checkbox-rac-CNSdI_ty.js → ecom-subscription-checkbox-rac-DilgIpiG.js} +3 -3
- package/dist/component/{email-input-field-rac-Btaa4O5T.js → email-input-field-rac-CHJ6RSGy.js} +83 -79
- package/dist/component/{events-repeater-rac-xBwqJddt.js → events-repeater-rac-v18FFLC7.js} +6 -6
- package/dist/component/{events-rsvp-rac-D90PwkHd.js → events-rsvp-rac-BpGLrxsf.js} +4 -4
- package/dist/component/{field-error-headless-BErhh9GG.js → field-error-headless-DAy-1oAQ.js} +1 -1
- package/dist/component/{field-label-headless-BGyK-5xW.js → field-label-headless-BWxHmO0c.js} +1 -1
- package/dist/component/field-rac.module-D06m9T9x.js +24 -0
- package/dist/component/{file-upload-rac-MxH3CVml.js → file-upload-rac-BfWN27JT.js} +5 -5
- package/dist/component/{fixed-payment-rac-DpBA9irF.js → fixed-payment-rac-Bha61SB4.js} +5 -5
- package/dist/component/{form-f0tqdMye.js → form-D0eeH0lX.js} +69 -69
- package/dist/component/{form-element-classes-jC8D0LnK.js → form-element-classes-Ct1UaxuQ.js} +38 -32
- package/dist/component/form.css +1 -1
- package/dist/component/form.js +1 -1
- package/dist/component/{header-field-rac-BXxFqu9u.js → header-field-rac-uNzfDMbv.js} +3 -3
- package/dist/component/{header-rac-BN70esac.js → header-rac-B91q4fHl.js} +1 -1
- package/dist/component/{image-choice-rac-DLBGIBXL.js → image-choice-rac-BKcnNGPp.js} +6 -6
- package/dist/component/{index-BvB-uE1H.js → index-BWHymomM.js} +2 -2
- package/dist/component/{index-DXLEHYlA.js → index-BvzLLTKc.js} +4 -4
- package/dist/component/{isObjectLike-BYOX5XY4.js → isObjectLike-D7Mkqoju.js} +1 -1
- package/dist/component/multiline-address-field-rac-Avd9Vlv1.js +1617 -0
- package/dist/component/{multiline-address-rac-D82Gbj3n.js → multiline-address-rac-BwQOoejw.js} +1 -1
- package/dist/component/number-input-field-rac-CRqPXDl0.js +93 -0
- package/dist/component/{number-input-rac-Bnsvb-SO.js → number-input-rac-0Y8K4e6K.js} +1 -1
- package/dist/component/password-rac-C7F6sEB3.js +143 -0
- package/dist/component/payment-input-rac-CTJr4QTK.js +141 -0
- package/dist/component/{phone-input-field-rac-Ce_wuE46.js → phone-input-field-rac-jjSmYCI1.js} +5 -5
- package/dist/component/{phone-rac-DslINtcH.js → phone-rac-BwSnmgYF.js} +1 -1
- package/dist/component/{product-list-rac-C4P_SOyG.js → product-list-rac-CTN2wvHE.js} +7 -7
- package/dist/component/{quiz-radio-group-rac-noy4fmD8.js → quiz-radio-group-rac-CZHEDJxr.js} +2 -2
- package/dist/component/{radio-button-module-classes-DXQ1UlmI.js → radio-button-module-classes-DCz6XS1X.js} +3 -3
- package/dist/component/radio-group-field-rac-60MF_9DO.js +48 -0
- package/dist/component/{radio-group-rac-CGHQFyJY.js → radio-group-rac-Dqo-Earp.js} +1 -1
- package/dist/component/{rating-input-field-rac-elaferlI.js → rating-input-field-rac-CzWTwWT8.js} +6 -6
- package/dist/component/{rating-input-rac-fnOtTKN8.js → rating-input-rac-Nq4tll2Z.js} +1 -1
- package/dist/component/{rich-content-rac.module-DbwuwQeo.js → rich-content-rac.module-sUUSbcSy.js} +1 -1
- package/dist/component/{rich-text-field-rac-DtcQC8zU.js → rich-text-field-rac-BvLfS4I5.js} +3 -3
- package/dist/component/{rich-text-rac-CuT97sby.js → rich-text-rac-BWkTbWk3.js} +1 -1
- package/dist/component/{service-dropdown-rac-rk2tzikX.js → service-dropdown-rac-DZ3USe7_.js} +5 -5
- package/dist/component/{services-multi-choice-rac-BMQyF_xs.js → services-multi-choice-rac-D-og7fMo.js} +7 -7
- package/dist/component/{signature-rac-DeV9C6ta.js → signature-rac-D3c4fnvN.js} +5 -5
- package/dist/component/{submit-button-rac-BpN-FYtM.js → submit-button-rac-Dn_BGt1n.js} +2 -2
- package/dist/component/tags-field-rac-DXmZBcpO.js +218 -0
- package/dist/component/{tags-rac-Dabz4jHd.js → tags-rac-CoXWx42D.js} +1 -1
- package/dist/component/text-area-field-rac-Cy0Mr29Z.js +73 -0
- package/dist/component/{text-area-rac-CDLF-_56.js → text-area-rac-C3Mjmgpa.js} +1 -1
- package/dist/component/text-input-field-rac-D1TB9B_M.js +28 -0
- package/dist/component/{text-input-headless-BwVLU9cp.js → text-input-headless-BUa59Rgn.js} +3 -3
- package/dist/component/{text-input-rac-CoGTzfo1.js → text-input-rac-BQ3Z9ws4.js} +1 -1
- package/dist/component/{time-input-rac-DQDupKTA.js → time-input-rac-Wi0oD5YF.js} +5 -5
- package/dist/component/url-input-field-rac-DINXfZdf.js +75 -0
- package/dist/component/{url-input-rac-_d6XRdKX.js → url-input-rac-Ch9eTIF_.js} +1 -1
- package/dist/component/use-element-state-class-name-j8W1zbdG.js +20 -0
- package/dist/component/{use-service-options-base-CRgxxz7b.js → use-service-options-base-BJZhzDyO.js} +1 -1
- package/dist/component/use-text-input-class-name-8gMUWeCb.js +24 -0
- package/package.json +2 -2
- package/dist/component/checkbox-group-field-rac-CZW28rj5.js +0 -41
- package/dist/component/field-rac.module-ColNPUt0.js +0 -23
- package/dist/component/multiline-address-field-rac-fcQYnPlO.js +0 -1613
- package/dist/component/number-input-field-rac-B0-4Rz3w.js +0 -89
- package/dist/component/password-rac-BdBjFa8y.js +0 -142
- package/dist/component/payment-input-rac-DkAGOvaF.js +0 -137
- package/dist/component/radio-group-field-rac-CYBDq7R1.js +0 -47
- package/dist/component/tags-field-rac-ByC9DnyH.js +0 -217
- package/dist/component/text-area-field-rac-CtSa8XW_.js +0 -69
- package/dist/component/text-input-field-rac-C6fQYKhI.js +0 -24
- package/dist/component/url-input-field-rac-4T8gcMHH.js +0 -71
- package/dist/component/use-element-state-class-name-BqmaTba3.js +0 -15
package/dist/component/{email-input-field-rac-Btaa4O5T.js → email-input-field-rac-CHJ6RSGy.js}
RENAMED
|
@@ -1,20 +1,21 @@
|
|
|
1
1
|
import { RicosViewer as ie } from "@wix/ricos/viewer";
|
|
2
|
-
import
|
|
3
|
-
import u, { createContext as Z, useContext as z, createElement as
|
|
2
|
+
import j from "classnames";
|
|
3
|
+
import u, { createContext as Z, useContext as z, createElement as R, isValidElement as B, cloneElement as w, 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
|
|
6
|
-
import { f as
|
|
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 Oe } from "./form-D0eeH0lX.js";
|
|
6
|
+
import { f as C } from "./find-child-C60k4CxG.js";
|
|
7
7
|
import ee from "@babel/runtime/helpers/objectWithoutProperties";
|
|
8
|
-
import
|
|
9
|
-
import
|
|
8
|
+
import L from "@babel/runtime/helpers/typeof";
|
|
9
|
+
import Se 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
|
|
13
|
+
import { T as U } from "./text-input-headless-BUa59Rgn.js";
|
|
14
14
|
import { E as Ae } from "./error-icon-hZxQ6DEy.js";
|
|
15
|
-
import { s as
|
|
16
|
-
import { y as Fe, O as ke,
|
|
17
|
-
|
|
15
|
+
import { s as H } from "./field-rac.module-D06m9T9x.js";
|
|
16
|
+
import { y as Fe, O as ke, o as Te, i as xe, Z as De } from "./form-element-classes-Ct1UaxuQ.js";
|
|
17
|
+
import { u as je } from "./use-text-input-class-name-8gMUWeCb.js";
|
|
18
|
+
var Ce = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g, Le = {
|
|
18
19
|
"&": "&",
|
|
19
20
|
"&": "&",
|
|
20
21
|
"<": "<",
|
|
@@ -36,9 +37,9 @@ var Le = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#1
|
|
|
36
37
|
"/": "/",
|
|
37
38
|
"/": "/"
|
|
38
39
|
}, Me = function(t) {
|
|
39
|
-
return
|
|
40
|
+
return Le[t];
|
|
40
41
|
}, Pe = function(t) {
|
|
41
|
-
return t.replace(
|
|
42
|
+
return t.replace(Ce, Me);
|
|
42
43
|
}, _e = {
|
|
43
44
|
bindI18n: "languageChanged",
|
|
44
45
|
bindI18nStore: "",
|
|
@@ -48,8 +49,8 @@ var Le = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#1
|
|
|
48
49
|
transKeepBasicHtmlNodesFor: ["br", "strong", "i", "p"],
|
|
49
50
|
useSuspense: !0,
|
|
50
51
|
unescape: Pe
|
|
51
|
-
}, we,
|
|
52
|
-
function
|
|
52
|
+
}, we, He = Z();
|
|
53
|
+
function Re() {
|
|
53
54
|
return _e;
|
|
54
55
|
}
|
|
55
56
|
(function() {
|
|
@@ -82,12 +83,12 @@ function K() {
|
|
|
82
83
|
}
|
|
83
84
|
}
|
|
84
85
|
var J = {};
|
|
85
|
-
function
|
|
86
|
+
function Be() {
|
|
86
87
|
for (var e = arguments.length, t = new Array(e), a = 0; a < e; a++)
|
|
87
88
|
t[a] = arguments[a];
|
|
88
89
|
typeof t[0] == "string" && J[t[0]] || (typeof t[0] == "string" && (J[t[0]] = /* @__PURE__ */ new Date()), K.apply(void 0, t));
|
|
89
90
|
}
|
|
90
|
-
var
|
|
91
|
+
var Ue = ["format"], Ve = ["children", "count", "parent", "i18nKey", "context", "tOptions", "values", "defaults", "components", "ns", "i18n", "t", "shouldUnescape"];
|
|
91
92
|
function Q(e, t) {
|
|
92
93
|
var a = Object.keys(e);
|
|
93
94
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -102,7 +103,7 @@ function p(e) {
|
|
|
102
103
|
for (var t = 1; t < arguments.length; t++) {
|
|
103
104
|
var a = arguments[t] != null ? arguments[t] : {};
|
|
104
105
|
t % 2 ? Q(Object(a), !0).forEach(function(o) {
|
|
105
|
-
|
|
106
|
+
Se(e, o, a[o]);
|
|
106
107
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(a)) : Q(Object(a)).forEach(function(o) {
|
|
107
108
|
Object.defineProperty(e, o, Object.getOwnPropertyDescriptor(a, o));
|
|
108
109
|
});
|
|
@@ -119,10 +120,10 @@ function G(e) {
|
|
|
119
120
|
}
|
|
120
121
|
function qe(e) {
|
|
121
122
|
return Object.prototype.toString.call(e) !== "[object Array]" ? !1 : e.every(function(t) {
|
|
122
|
-
return
|
|
123
|
+
return B(t);
|
|
123
124
|
});
|
|
124
125
|
}
|
|
125
|
-
function
|
|
126
|
+
function M(e) {
|
|
126
127
|
return Array.isArray(e) ? e : [e];
|
|
127
128
|
}
|
|
128
129
|
function Ye(e, t) {
|
|
@@ -131,11 +132,11 @@ function Ye(e, t) {
|
|
|
131
132
|
}
|
|
132
133
|
function te(e, t) {
|
|
133
134
|
if (!e) return "";
|
|
134
|
-
var a = "", o =
|
|
135
|
+
var a = "", o = M(e), c = t.transSupportBasicHtmlNodes && t.transKeepBasicHtmlNodesFor ? t.transKeepBasicHtmlNodesFor : [];
|
|
135
136
|
return o.forEach(function(r, g) {
|
|
136
137
|
if (typeof r == "string")
|
|
137
138
|
a += "".concat(r);
|
|
138
|
-
else if (
|
|
139
|
+
else if (B(r)) {
|
|
139
140
|
var v = Object.keys(r.props).length, d = c.indexOf(r.type) > -1, b = r.props.children;
|
|
140
141
|
if (!b && d && v === 0)
|
|
141
142
|
a += "<".concat(r.type, "/>");
|
|
@@ -151,11 +152,11 @@ function te(e, t) {
|
|
|
151
152
|
}
|
|
152
153
|
} else if (r === null)
|
|
153
154
|
K("Trans: the passed in value is invalid - seems you passed in a null child.");
|
|
154
|
-
else if (
|
|
155
|
-
var
|
|
155
|
+
else if (L(r) === "object") {
|
|
156
|
+
var S = r.format, F = ee(r, Ue), A = Object.keys(F);
|
|
156
157
|
if (A.length === 1) {
|
|
157
|
-
var
|
|
158
|
-
a += "{{".concat(
|
|
158
|
+
var O = S ? "".concat(A[0], ", ").concat(S) : A[0];
|
|
159
|
+
a += "{{".concat(O, "}}");
|
|
159
160
|
} else
|
|
160
161
|
K("react-i18next: the passed in object contained more than one variable - the object should look like {{ value, format }} where format is optional.", r);
|
|
161
162
|
} else
|
|
@@ -168,96 +169,96 @@ function Ge(e, t, a, o, c, r) {
|
|
|
168
169
|
if (!e && !v) return [t];
|
|
169
170
|
var d = {};
|
|
170
171
|
function b(y) {
|
|
171
|
-
var h =
|
|
172
|
+
var h = M(y);
|
|
172
173
|
h.forEach(function(s) {
|
|
173
|
-
typeof s != "string" && (Y(s) ? b(G(s)) :
|
|
174
|
+
typeof s != "string" && (Y(s) ? b(G(s)) : L(s) === "object" && !B(s) && Object.assign(d, s));
|
|
174
175
|
});
|
|
175
176
|
}
|
|
176
177
|
b(e);
|
|
177
|
-
var T = he.parse("<0>".concat(t, "</0>")),
|
|
178
|
+
var T = he.parse("<0>".concat(t, "</0>")), S = p(p({}, d), c);
|
|
178
179
|
function F(y, h, s) {
|
|
179
|
-
var i = G(y), I =
|
|
180
|
+
var i = G(y), I = O(i, h.children, s);
|
|
180
181
|
return qe(i) && I.length === 0 ? i : I;
|
|
181
182
|
}
|
|
182
183
|
function A(y, h, s, i, I) {
|
|
183
|
-
y.dummy && (y.children = h), s.push(
|
|
184
|
+
y.dummy && (y.children = h), s.push(w(y, p(p({}, y.props), {}, {
|
|
184
185
|
key: i
|
|
185
186
|
}), I ? void 0 : h));
|
|
186
187
|
}
|
|
187
|
-
function
|
|
188
|
-
var i =
|
|
188
|
+
function O(y, h, s) {
|
|
189
|
+
var i = M(y), I = M(h);
|
|
189
190
|
return I.reduce(function(l, n, E) {
|
|
190
|
-
var k = n.children && n.children[0] && n.children[0].content && a.services.interpolator.interpolate(n.children[0].content,
|
|
191
|
+
var k = n.children && n.children[0] && n.children[0].content && a.services.interpolator.interpolate(n.children[0].content, S, a.language);
|
|
191
192
|
if (n.type === "tag") {
|
|
192
193
|
var N = i[parseInt(n.name, 10)];
|
|
193
194
|
!N && s.length === 1 && s[0][n.name] && (N = s[0][n.name]), N || (N = {});
|
|
194
195
|
var m = Object.keys(n.attrs).length !== 0 ? Ye({
|
|
195
196
|
props: n.attrs
|
|
196
|
-
}, N) : N, x =
|
|
197
|
+
}, N) : N, x = B(m), V = x && Y(n, !0) && !n.voidElement, P = v && L(m) === "object" && m.dummy && !x, _ = L(e) === "object" && e !== null && Object.hasOwnProperty.call(e, n.name);
|
|
197
198
|
if (typeof m == "string") {
|
|
198
|
-
var q = a.services.interpolator.interpolate(m,
|
|
199
|
+
var q = a.services.interpolator.interpolate(m, S, a.language);
|
|
199
200
|
l.push(q);
|
|
200
201
|
} else if (Y(m) || V) {
|
|
201
202
|
var ne = F(m, n, s);
|
|
202
203
|
A(m, ne, l, E);
|
|
203
|
-
} else if (
|
|
204
|
-
var oe =
|
|
205
|
-
l.push(
|
|
204
|
+
} else if (P) {
|
|
205
|
+
var oe = O(i, n.children, s);
|
|
206
|
+
l.push(w(m, p(p({}, m.props), {}, {
|
|
206
207
|
key: E
|
|
207
208
|
}), oe));
|
|
208
209
|
} else if (Number.isNaN(parseFloat(n.name)))
|
|
209
|
-
if (
|
|
210
|
+
if (_) {
|
|
210
211
|
var re = F(m, n, s);
|
|
211
212
|
A(m, re, l, E, n.voidElement);
|
|
212
213
|
} else if (o.transSupportBasicHtmlNodes && g.indexOf(n.name) > -1)
|
|
213
214
|
if (n.voidElement)
|
|
214
|
-
l.push(
|
|
215
|
+
l.push(R(n.name, {
|
|
215
216
|
key: "".concat(n.name, "-").concat(E)
|
|
216
217
|
}));
|
|
217
218
|
else {
|
|
218
|
-
var se =
|
|
219
|
-
l.push(
|
|
219
|
+
var se = O(i, n.children, s);
|
|
220
|
+
l.push(R(n.name, {
|
|
220
221
|
key: "".concat(n.name, "-").concat(E)
|
|
221
222
|
}, se));
|
|
222
223
|
}
|
|
223
224
|
else if (n.voidElement)
|
|
224
225
|
l.push("<".concat(n.name, " />"));
|
|
225
226
|
else {
|
|
226
|
-
var ce =
|
|
227
|
+
var ce = O(i, n.children, s);
|
|
227
228
|
l.push("<".concat(n.name, ">").concat(ce, "</").concat(n.name, ">"));
|
|
228
229
|
}
|
|
229
|
-
else if (
|
|
230
|
+
else if (L(m) === "object" && !x) {
|
|
230
231
|
var $ = n.children[0] ? k : null;
|
|
231
232
|
$ && l.push($);
|
|
232
|
-
} else n.children.length === 1 && k ? l.push(
|
|
233
|
+
} else n.children.length === 1 && k ? l.push(w(m, p(p({}, m.props), {}, {
|
|
233
234
|
key: E
|
|
234
|
-
}), k)) : l.push(
|
|
235
|
+
}), k)) : l.push(w(m, p(p({}, m.props), {}, {
|
|
235
236
|
key: E
|
|
236
237
|
})));
|
|
237
238
|
} else if (n.type === "text") {
|
|
238
|
-
var W = o.transWrapTextNodes, X = r ? o.unescape(a.services.interpolator.interpolate(n.content,
|
|
239
|
-
W ? l.push(
|
|
239
|
+
var W = o.transWrapTextNodes, X = r ? o.unescape(a.services.interpolator.interpolate(n.content, S, a.language)) : a.services.interpolator.interpolate(n.content, S, a.language);
|
|
240
|
+
W ? l.push(R(W, {
|
|
240
241
|
key: "".concat(n.name, "-").concat(E)
|
|
241
242
|
}, X)) : l.push(X);
|
|
242
243
|
}
|
|
243
244
|
return l;
|
|
244
245
|
}, []);
|
|
245
246
|
}
|
|
246
|
-
var
|
|
247
|
+
var D = O([{
|
|
247
248
|
dummy: !0,
|
|
248
249
|
children: e || []
|
|
249
|
-
}], T,
|
|
250
|
-
return G(
|
|
250
|
+
}], T, M(e || []));
|
|
251
|
+
return G(D[0]);
|
|
251
252
|
}
|
|
252
253
|
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,
|
|
254
|
+
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, S = e.ns, F = e.i18n, A = e.t, O = e.shouldUnescape, D = ee(e, Ve), y = z(He) || {}, h = y.i18n, s = y.defaultNS, i = F || h || Ke();
|
|
254
255
|
if (!i)
|
|
255
|
-
return
|
|
256
|
+
return Be("You will need to pass in an i18next instance by using i18nextReactModule"), t;
|
|
256
257
|
var I = A || i.t.bind(i) || function(q) {
|
|
257
258
|
return q;
|
|
258
259
|
};
|
|
259
260
|
r && (v.context = r);
|
|
260
|
-
var l = p(p({},
|
|
261
|
+
var l = p(p({}, Re()), i.options && i.options.react), n = S || I.ns || s || i.options && i.options.defaultNS;
|
|
261
262
|
n = typeof n == "string" ? [n] : n || ["translation"];
|
|
262
263
|
var E = b || te(t, l) || l.transEmptyNodeValue || c, k = l.hashTransKey, N = c || (k ? k(E) : E), m = d ? v.interpolation : {
|
|
263
264
|
interpolation: p(p({}, v.interpolation), {}, {
|
|
@@ -269,8 +270,8 @@ function $e(e) {
|
|
|
269
270
|
}, d), m), {}, {
|
|
270
271
|
defaultValue: E,
|
|
271
272
|
ns: n
|
|
272
|
-
}), V = N ? I(N, x) : E,
|
|
273
|
-
return
|
|
273
|
+
}), V = N ? I(N, x) : E, P = Ge(T || t, V, i, l, x, O), _ = o !== void 0 ? o : l.defaultTransParent;
|
|
274
|
+
return _ ? R(_, D, P) : P;
|
|
274
275
|
}
|
|
275
276
|
const We = "email-mistype-suggestion", Xe = "email-mistype-suggestion-link", ae = /* @__PURE__ */ Z(void 0);
|
|
276
277
|
function Je() {
|
|
@@ -449,15 +450,15 @@ const Qe = ({ activeSuggestion: e, applySuggestion: t, children: a }) => /* @__P
|
|
|
449
450
|
validate: v
|
|
450
451
|
};
|
|
451
452
|
}, f = ({ children: e }) => {
|
|
452
|
-
const { id: t, value: a, onChange: o, disabled: c, readOnly: r, required: g, hasError: v, onBlur: d, onFocus: b, error: T, description:
|
|
453
|
+
const { id: t, value: a, onChange: o, disabled: c, readOnly: r, required: g, hasError: v, onBlur: d, onFocus: b, error: T, description: S, FieldLayout: F } = Ee(), { isMistyped: A, suggestedEmail: O, validate: D } = at({
|
|
453
454
|
email: a,
|
|
454
455
|
hasError: v
|
|
455
|
-
}), { setFocusedFieldId: y } = de(), s = A && (!r && !c) &&
|
|
456
|
+
}), { setFocusedFieldId: y } = de(), s = A && (!r && !c) && O ? O : void 0, i = be(t, T, S, s), I = () => {
|
|
456
457
|
o(s), y(t);
|
|
457
458
|
}, l = () => {
|
|
458
|
-
|
|
459
|
-
}, n =
|
|
460
|
-
return /* @__PURE__ */ u.createElement(
|
|
459
|
+
D(), d == null || d();
|
|
460
|
+
}, n = C(e, f.Label), E = C(e, f.Input), k = C(e, f.Description), N = C(e, f.Error), m = C(e, f.Suggestion);
|
|
461
|
+
return /* @__PURE__ */ u.createElement(Oe.Provider, {
|
|
461
462
|
value: i
|
|
462
463
|
}, /* @__PURE__ */ u.createElement(Qe, {
|
|
463
464
|
activeSuggestion: s,
|
|
@@ -479,29 +480,32 @@ const Qe = ({ activeSuggestion: e, applySuggestion: t, children: a }) => /* @__P
|
|
|
479
480
|
renderDescription: () => /* @__PURE__ */ u.createElement(u.Fragment, null, N, m, k)
|
|
480
481
|
})));
|
|
481
482
|
};
|
|
482
|
-
f.Label =
|
|
483
|
-
f.Input =
|
|
484
|
-
f.Description =
|
|
485
|
-
f.Error =
|
|
483
|
+
f.Label = U.Label;
|
|
484
|
+
f.Input = U.Input;
|
|
485
|
+
f.Description = U.Description;
|
|
486
|
+
f.Error = U.Error;
|
|
486
487
|
f.Suggestion = Ze;
|
|
487
488
|
const nt = "_suggestion_di65n_1", ot = {
|
|
488
489
|
suggestion: nt
|
|
489
490
|
}, rt = ({ content: e, locale: t }) => /* @__PURE__ */ u.createElement(ie, {
|
|
490
491
|
content: e,
|
|
491
492
|
locale: t
|
|
492
|
-
}),
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
}
|
|
497
|
-
|
|
498
|
-
}), /* @__PURE__ */ u.createElement(f.
|
|
499
|
-
|
|
500
|
-
}
|
|
501
|
-
|
|
502
|
-
},
|
|
503
|
-
|
|
504
|
-
})
|
|
493
|
+
}), It = () => {
|
|
494
|
+
const e = je();
|
|
495
|
+
return /* @__PURE__ */ u.createElement(f, null, /* @__PURE__ */ u.createElement(f.Label, {
|
|
496
|
+
className: j(Fe, H.label)
|
|
497
|
+
}, /* @__PURE__ */ u.createElement(f.Label.Required, {
|
|
498
|
+
className: j(ke, H.requiredMark)
|
|
499
|
+
})), /* @__PURE__ */ u.createElement(f.Input, {
|
|
500
|
+
className: e
|
|
501
|
+
}), /* @__PURE__ */ u.createElement(f.Error, {
|
|
502
|
+
className: j(Te, H.error)
|
|
503
|
+
}, /* @__PURE__ */ u.createElement(Ae, null), /* @__PURE__ */ u.createElement(f.Error.Text, null)), /* @__PURE__ */ u.createElement(f.Description, {
|
|
504
|
+
className: j(xe, H.description)
|
|
505
|
+
}, rt), /* @__PURE__ */ u.createElement(f.Suggestion, {
|
|
506
|
+
className: j(De, ot.suggestion)
|
|
507
|
+
}));
|
|
508
|
+
};
|
|
505
509
|
export {
|
|
506
|
-
|
|
510
|
+
It as E
|
|
507
511
|
};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import e, { useState as q, useMemo as v, useCallback as V, useRef as x } from "react";
|
|
2
2
|
import T from "classnames";
|
|
3
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-
|
|
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-D0eeH0lX.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-BWxHmO0c.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
|
-
import { C as ne } from "./checkbox-indicator-module-classes-
|
|
11
|
-
import { s as B } from "./field-rac.module-
|
|
12
|
-
import { y as oe, x as re, p as ae, r as le, q as ce } from "./form-element-classes-
|
|
13
|
-
import { u as ue } from "./use-element-state-class-name-
|
|
10
|
+
import { C as ne } from "./checkbox-indicator-module-classes-Bb3xB1ve.js";
|
|
11
|
+
import { s as B } from "./field-rac.module-D06m9T9x.js";
|
|
12
|
+
import { y as oe, x as re, p as ae, r as le, q as ce } from "./form-element-classes-Ct1UaxuQ.js";
|
|
13
|
+
import { u as ue } from "./use-element-state-class-name-j8W1zbdG.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
|
|
@@ -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-DCz6XS1X.js";
|
|
5
5
|
import { E } from "./error-icon-hZxQ6DEy.js";
|
|
6
|
-
import { s as l } from "./field-rac.module-
|
|
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-
|
|
8
|
-
import { u } from "./use-element-state-class-name-
|
|
6
|
+
import { s as l } from "./field-rac.module-D06m9T9x.js";
|
|
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-Ct1UaxuQ.js";
|
|
8
|
+
import { u } from "./use-element-state-class-name-j8W1zbdG.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-BErhh9GG.js → field-error-headless-DAy-1oAQ.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-D0eeH0lX.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-BGyK-5xW.js → field-label-headless-BWxHmO0c.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-D0eeH0lX.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";
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
const o = "_label_18pnh_1", n = "_requiredMark_18pnh_11", t = "_input_18pnh_16", e = "_inputGroup_18pnh_17", p = "_inputHover_18pnh_69", c = "_innerInput_18pnh_130", _ = "_dropdownTrigger_18pnh_178", r = "_dropdownIcon_18pnh_188", s = "_dropdownPopover_18pnh_207", u = "_selectPopover_18pnh_211", i = "_selectOption_18pnh_238", h = "_selectOptionWithoutFocusRing_18pnh_262", d = "_description_18pnh_268", l = "_error_18pnh_284", b = "_checkbox_18pnh_303", k = "_checkboxInput_18pnh_326", I = "_checkboxInputSelected_18pnh_365", x = "_checkboxInputHover_18pnh_369", v = "_uploadButton_18pnh_416", a = {
|
|
2
|
+
label: o,
|
|
3
|
+
requiredMark: n,
|
|
4
|
+
input: t,
|
|
5
|
+
inputGroup: e,
|
|
6
|
+
inputHover: p,
|
|
7
|
+
innerInput: c,
|
|
8
|
+
dropdownTrigger: _,
|
|
9
|
+
dropdownIcon: r,
|
|
10
|
+
dropdownPopover: s,
|
|
11
|
+
selectPopover: u,
|
|
12
|
+
selectOption: i,
|
|
13
|
+
selectOptionWithoutFocusRing: h,
|
|
14
|
+
description: d,
|
|
15
|
+
error: l,
|
|
16
|
+
checkbox: b,
|
|
17
|
+
checkboxInput: k,
|
|
18
|
+
checkboxInputSelected: I,
|
|
19
|
+
checkboxInputHover: x,
|
|
20
|
+
uploadButton: v
|
|
21
|
+
};
|
|
22
|
+
export {
|
|
23
|
+
a as s
|
|
24
|
+
};
|
|
@@ -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-D0eeH0lX.js";
|
|
5
5
|
import { E as Le } from "./error-icon-hZxQ6DEy.js";
|
|
6
|
-
import { s as I } from "./field-rac.module-
|
|
7
|
-
import { y as ne, O as De,
|
|
6
|
+
import { s as I } from "./field-rac.module-D06m9T9x.js";
|
|
7
|
+
import { y as ne, O as De, a2 as Ne, i as ae, o as le } from "./form-element-classes-Ct1UaxuQ.js";
|
|
8
8
|
import { f as h, a as z } from "./find-child-C60k4CxG.js";
|
|
9
|
-
import { b as ye, a as ve, D as _e, E as Te } from "./field-error-headless-
|
|
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-DAy-1oAQ.js";
|
|
10
|
+
import { L as Be } from "./field-label-headless-BWxHmO0c.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/*",
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import t, { useMemo as _ } from "react";
|
|
2
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-D0eeH0lX.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-
|
|
9
|
-
import { s as L } from "./field-rac.module-
|
|
10
|
-
import { y as v, z as M, i as g } from "./form-element-classes-
|
|
7
|
+
import { D as x, E as N } from "./field-error-headless-DAy-1oAQ.js";
|
|
8
|
+
import { L as R } from "./field-label-headless-BWxHmO0c.js";
|
|
9
|
+
import { s as L } from "./field-rac.module-D06m9T9x.js";
|
|
10
|
+
import { y as v, z as M, i as g } from "./form-element-classes-Ct1UaxuQ.js";
|
|
11
11
|
const e = ({ children: r }) => {
|
|
12
12
|
var p;
|
|
13
13
|
const { id: n, validation: a, FieldLayout: l } = C(), { currency: o, regionalFormat: m } = I(), s = _(() => {
|