@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/{email-input-field-rac-BScZxYHw.js → email-input-field-rac-Ui0p35z5.js}
RENAMED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { RicosViewer as ie } from "@wix/ricos/viewer";
|
|
2
2
|
import j from "classnames";
|
|
3
|
-
import u, { createContext as
|
|
3
|
+
import u, { createContext as Q, 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-CtWkUmxc.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 P 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-fhxuPytc.js";
|
|
14
14
|
import { E as Ae } from "./error-icon-hZxQ6DEy.js";
|
|
15
|
-
import { s as C } from "./field-rac.module-
|
|
16
|
-
import {
|
|
15
|
+
import { s as C } from "./field-rac.module-DnUIb9Oh.js";
|
|
16
|
+
import { z as Fe, P as ke, y as Te, q as De, j as je, Z as xe } from "./form-element-classes-BSMjWijd.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,10 +35,10 @@ 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
|
-
}, Me = function(t) {
|
|
39
|
-
return Ce[t];
|
|
40
38
|
}, Pe = function(t) {
|
|
41
|
-
return t
|
|
39
|
+
return Ce[t];
|
|
40
|
+
}, Me = function(t) {
|
|
41
|
+
return t.replace(Le, Pe);
|
|
42
42
|
}, _e = {
|
|
43
43
|
bindI18n: "languageChanged",
|
|
44
44
|
bindI18nStore: "",
|
|
@@ -47,8 +47,8 @@ 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: Me
|
|
51
|
+
}, we, Re = Q();
|
|
52
52
|
function He() {
|
|
53
53
|
return _e;
|
|
54
54
|
}
|
|
@@ -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 z = {};
|
|
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" && z[t[0]] || (typeof t[0] == "string" && (z[t[0]] = /* @__PURE__ */ new Date()), K.apply(void 0, t));
|
|
89
89
|
}
|
|
90
|
-
var Be = ["format"],
|
|
91
|
-
function
|
|
90
|
+
var Be = ["format"], qe = ["children", "count", "parent", "i18nKey", "context", "tOptions", "values", "defaults", "components", "ns", "i18n", "t", "shouldUnescape"];
|
|
91
|
+
function J(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 Q(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 ? J(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)) : J(Object(a)).forEach(function(o) {
|
|
107
107
|
Object.defineProperty(e, o, Object.getOwnPropertyDescriptor(a, o));
|
|
108
108
|
});
|
|
109
109
|
}
|
|
@@ -117,12 +117,12 @@ function Y(e, t) {
|
|
|
117
117
|
function G(e) {
|
|
118
118
|
return e ? e.props ? e.props.children : e.children : [];
|
|
119
119
|
}
|
|
120
|
-
function
|
|
120
|
+
function Ve(e) {
|
|
121
121
|
return Object.prototype.toString.call(e) !== "[object Array]" ? !1 : e.every(function(t) {
|
|
122
122
|
return U(t);
|
|
123
123
|
});
|
|
124
124
|
}
|
|
125
|
-
function
|
|
125
|
+
function M(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 = M(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);
|
|
@@ -146,12 +146,12 @@ function te(e, t) {
|
|
|
146
146
|
else if (d && v === 1 && typeof b == "string")
|
|
147
147
|
a += "<".concat(r.type, ">").concat(b, "</").concat(r.type, ">");
|
|
148
148
|
else {
|
|
149
|
-
var
|
|
150
|
-
a += "<".concat(g, ">").concat(
|
|
149
|
+
var T = te(b, t);
|
|
150
|
+
a += "<".concat(g, ">").concat(T, "</").concat(g, ">");
|
|
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 (P(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,16 +168,16 @@ 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 = M(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)) : P(s) === "object" && !U(s) && Object.assign(d, s));
|
|
174
174
|
});
|
|
175
175
|
}
|
|
176
176
|
b(e);
|
|
177
|
-
var
|
|
177
|
+
var T = he.parse("<0>".concat(t, "</0>")), O = p(p({}, d), c);
|
|
178
178
|
function F(y, h, s) {
|
|
179
179
|
var i = G(y), I = S(i, h.children, s);
|
|
180
|
-
return
|
|
180
|
+
return Ve(i) && I.length === 0 ? i : I;
|
|
181
181
|
}
|
|
182
182
|
function A(y, h, s, i, I) {
|
|
183
183
|
y.dummy && (y.children = h), s.push(R(y, p(p({}, y.props), {}, {
|
|
@@ -185,19 +185,19 @@ 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 = M(y), I = M(h);
|
|
189
189
|
return I.reduce(function(l, n, E) {
|
|
190
|
-
var
|
|
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") {
|
|
192
192
|
var N = i[parseInt(n.name, 10)];
|
|
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, D = U(m),
|
|
196
|
+
}, N) : N, D = U(m), q = D && Y(n, !0) && !n.voidElement, _ = v && P(m) === "object" && m.dummy && !D, w = P(e) === "object" && e !== null && Object.hasOwnProperty.call(e, n.name);
|
|
197
197
|
if (typeof m == "string") {
|
|
198
|
-
var
|
|
199
|
-
l.push(
|
|
200
|
-
} else if (Y(m) ||
|
|
198
|
+
var V = a.services.interpolator.interpolate(m, O, a.language);
|
|
199
|
+
l.push(V);
|
|
200
|
+
} else if (Y(m) || q) {
|
|
201
201
|
var ne = F(m, n, s);
|
|
202
202
|
A(m, ne, l, E);
|
|
203
203
|
} else if (_) {
|
|
@@ -226,19 +226,19 @@ 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 (
|
|
230
|
-
var $ = n.children[0] ?
|
|
229
|
+
else if (P(m) === "object" && !D) {
|
|
230
|
+
var $ = n.children[0] ? k : null;
|
|
231
231
|
$ && l.push($);
|
|
232
|
-
} else n.children.length === 1 &&
|
|
232
|
+
} else n.children.length === 1 && k ? l.push(R(m, p(p({}, m.props), {}, {
|
|
233
233
|
key: E
|
|
234
|
-
}),
|
|
234
|
+
}), k)) : l.push(R(m, p(p({}, m.props), {}, {
|
|
235
235
|
key: E
|
|
236
236
|
})));
|
|
237
237
|
} else if (n.type === "text") {
|
|
238
|
-
var W = o.transWrapTextNodes,
|
|
238
|
+
var W = o.transWrapTextNodes, X = r ? o.unescape(a.services.interpolator.interpolate(n.content, O, a.language)) : a.services.interpolator.interpolate(n.content, O, a.language);
|
|
239
239
|
W ? l.push(H(W, {
|
|
240
240
|
key: "".concat(n.name, "-").concat(E)
|
|
241
|
-
},
|
|
241
|
+
}, X)) : l.push(X);
|
|
242
242
|
}
|
|
243
243
|
return l;
|
|
244
244
|
}, []);
|
|
@@ -246,20 +246,20 @@ function Ge(e, t, a, o, c, r) {
|
|
|
246
246
|
var x = S([{
|
|
247
247
|
dummy: !0,
|
|
248
248
|
children: e || []
|
|
249
|
-
}],
|
|
249
|
+
}], T, M(e || []));
|
|
250
250
|
return G(x[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,
|
|
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, x = ee(e, qe), 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
|
-
var I = A || i.t.bind(i) || function(
|
|
257
|
-
return
|
|
256
|
+
var I = A || i.t.bind(i) || function(V) {
|
|
257
|
+
return V;
|
|
258
258
|
};
|
|
259
259
|
r && (v.context = r);
|
|
260
260
|
var l = p(p({}, He()), i.options && i.options.react), n = O || I.ns || s || i.options && i.options.defaultNS;
|
|
261
261
|
n = typeof n == "string" ? [n] : n || ["translation"];
|
|
262
|
-
var E = b || te(t, l) || l.transEmptyNodeValue || c,
|
|
262
|
+
var E = b || te(t, l) || l.transEmptyNodeValue || c, k = l.hashTransKey, N = c || (k ? k(E) : E), m = d ? v.interpolation : {
|
|
263
263
|
interpolation: p(p({}, v.interpolation), {}, {
|
|
264
264
|
prefix: "#$?",
|
|
265
265
|
suffix: "?$#"
|
|
@@ -269,23 +269,23 @@ function $e(e) {
|
|
|
269
269
|
}, d), m), {}, {
|
|
270
270
|
defaultValue: E,
|
|
271
271
|
ns: n
|
|
272
|
-
}),
|
|
272
|
+
}), q = N ? I(N, D) : E, _ = Ge(T || t, q, i, l, D, S), w = o !== void 0 ? o : l.defaultTransParent;
|
|
273
273
|
return w ? H(w, x, _) : _;
|
|
274
274
|
}
|
|
275
|
-
const We = "email-mistype-suggestion",
|
|
276
|
-
function
|
|
275
|
+
const We = "email-mistype-suggestion", Xe = "email-mistype-suggestion-link", ae = /* @__PURE__ */ Q(void 0);
|
|
276
|
+
function ze() {
|
|
277
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 Je = ({ 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), Qe = ({ className: e }) => {
|
|
288
|
+
const { suggestionId: t } = fe(), { activeSuggestion: a, applySuggestion: o } = ze(), { t: c, i18n: r } = ge();
|
|
289
289
|
return /* @__PURE__ */ u.createElement("div", {
|
|
290
290
|
id: t,
|
|
291
291
|
"data-hook": We,
|
|
@@ -302,7 +302,7 @@ const Qe = ({ activeSuggestion: e, applySuggestion: t, children: a }) => /* @__P
|
|
|
302
302
|
/* @__PURE__ */ u.createElement("button", {
|
|
303
303
|
key: "0",
|
|
304
304
|
type: "button",
|
|
305
|
-
"data-hook":
|
|
305
|
+
"data-hook": Xe,
|
|
306
306
|
"aria-label": c("input.email.mistype-check.fix-aria-label", {
|
|
307
307
|
email: a
|
|
308
308
|
}),
|
|
@@ -449,17 +449,17 @@ const Qe = ({ activeSuggestion: e, applySuggestion: t, children: a }) => /* @__P
|
|
|
449
449
|
validate: v
|
|
450
450
|
};
|
|
451
451
|
}, f = ({ children: e }) => {
|
|
452
|
-
const { id: t, value: a, onChange: o, disabled: c, readOnly: r, required: g, hasError: v, onBlur: d, onFocus: b, error:
|
|
452
|
+
const { id: t, value: a, onChange: o, disabled: c, readOnly: r, required: g, hasError: v, onBlur: d, onFocus: b, error: T, description: O, FieldLayout: F } = Ee(), { isMistyped: A, suggestedEmail: S, validate: x } = at({
|
|
453
453
|
email: a,
|
|
454
454
|
hasError: v
|
|
455
|
-
}), { setFocusedFieldId: y } = de(), s = A && (!r && !c) && S ? S : void 0, i = be(t,
|
|
455
|
+
}), { setFocusedFieldId: y } = de(), s = A && (!r && !c) && S ? S : void 0, i = be(t, T, O, s), I = () => {
|
|
456
456
|
o(s), y(t);
|
|
457
457
|
}, l = () => {
|
|
458
458
|
x(), d == null || d();
|
|
459
|
-
}, n = L(e, f.Label), E = L(e, f.Input),
|
|
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(Je, {
|
|
463
463
|
activeSuggestion: s,
|
|
464
464
|
applySuggestion: I
|
|
465
465
|
}, /* @__PURE__ */ u.createElement(F, {
|
|
@@ -476,14 +476,14 @@ const Qe = ({ activeSuggestion: e, applySuggestion: t, children: a }) => /* @__P
|
|
|
476
476
|
onBlur: l,
|
|
477
477
|
onFocus: b
|
|
478
478
|
}, E),
|
|
479
|
-
renderDescription: () => /* @__PURE__ */ u.createElement(u.Fragment, null, N, m,
|
|
479
|
+
renderDescription: () => /* @__PURE__ */ u.createElement(u.Fragment, null, N, m, k)
|
|
480
480
|
})));
|
|
481
481
|
};
|
|
482
482
|
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 = Qe;
|
|
487
487
|
const nt = "_suggestion_di65n_1", ot = {
|
|
488
488
|
suggestion: nt
|
|
489
489
|
}, rt = ({ content: e, locale: t }) => /* @__PURE__ */ u.createElement(ie, {
|
|
@@ -492,9 +492,9 @@ const nt = "_suggestion_di65n_1", ot = {
|
|
|
492
492
|
}), ht = () => /* @__PURE__ */ u.createElement(f, null, /* @__PURE__ */ u.createElement(f.Label, {
|
|
493
493
|
className: j(Fe, C.label)
|
|
494
494
|
}, /* @__PURE__ */ u.createElement(f.Label.Required, {
|
|
495
|
-
className: j(
|
|
495
|
+
className: j(ke, C.requiredMark)
|
|
496
496
|
})), /* @__PURE__ */ u.createElement(f.Input, {
|
|
497
|
-
className: j(
|
|
497
|
+
className: j(Te, C.input)
|
|
498
498
|
}), /* @__PURE__ */ u.createElement(f.Error, {
|
|
499
499
|
className: j(De, C.error)
|
|
500
500
|
}, /* @__PURE__ */ u.createElement(Ae, null), /* @__PURE__ */ u.createElement(f.Error.Text, null)), /* @__PURE__ */ u.createElement(f.Description, {
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import t, { useState as
|
|
1
|
+
import t, { useState as z, useMemo as B, useCallback as V, useRef as M } from "react";
|
|
2
2
|
import v from "classnames";
|
|
3
|
-
import { NumberField as
|
|
4
|
-
import { ao as P, ap as U, ae as j, aj as H, u as Y, ai as D, af as K, ak as X, j as Z } from "./form-
|
|
3
|
+
import { NumberField as q, Input as J, CheckboxField as Q, CheckboxButton as W, Button as w } from "react-aria-components";
|
|
4
|
+
import { ao as P, ap as U, ae as j, aj as H, u as Y, ai as D, af as K, ak as X, j as Z } from "./form-CtWkUmxc.js";
|
|
5
5
|
import { f as F, a as R } from "./find-child-C60k4CxG.js";
|
|
6
|
-
import { L as ee } from "./field-label-headless-
|
|
6
|
+
import { L as ee } from "./field-label-headless-BWLfU3YB.js";
|
|
7
7
|
import { u as te } from "./use-invoke-callback-UH73A_J3.js";
|
|
8
8
|
import { C as x } from "./chevron-down-icon-CcpVm6B-.js";
|
|
9
|
-
import { s as L } from "./field-rac.module-
|
|
10
|
-
import {
|
|
9
|
+
import { s as L } from "./field-rac.module-DnUIb9Oh.js";
|
|
10
|
+
import { z as se, y as ne, r as oe, s as re, t as ae } from "./form-element-classes-BSMjWijd.js";
|
|
11
11
|
const le = [], ce = ({ id: e, fields: n, layout: l, value: r, onChange: s, errors: m = le, validation: c }) => {
|
|
12
|
-
const [i, E] =
|
|
12
|
+
const [i, E] = z((r == null ? void 0 : r.length) || 0), a = B(() => r ?? [], [
|
|
13
13
|
r
|
|
14
14
|
]), g = P(), f = U(), d = j(), { validateFields: u } = H(), C = c.predefined.objectArrayOptions.maxItems, _ = B(() => Y({
|
|
15
15
|
form: {
|
|
@@ -101,7 +101,7 @@ const le = [], ce = ({ id: e, fields: n, layout: l, value: r, onChange: s, error
|
|
|
101
101
|
(p = G.current) == null || p.focus();
|
|
102
102
|
}, i);
|
|
103
103
|
const b = F(e, O.Decrement), T = F(e, O.Increment);
|
|
104
|
-
return /* @__PURE__ */ t.createElement(
|
|
104
|
+
return /* @__PURE__ */ t.createElement(q, {
|
|
105
105
|
className: l,
|
|
106
106
|
"aria-label": E,
|
|
107
107
|
value: m,
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import t from "react";
|
|
2
2
|
import { RicosViewer as c } from "@wix/ricos/viewer";
|
|
3
3
|
import r from "classnames";
|
|
4
|
-
import { R as a, s as o } from "./radio-group-field-rac.module-
|
|
4
|
+
import { R as a, s as o } from "./radio-group-field-rac.module-Cb3mm0f2.js";
|
|
5
5
|
import { E as m } from "./error-icon-hZxQ6DEy.js";
|
|
6
|
-
import { s
|
|
7
|
-
import {
|
|
8
|
-
const e = ({ children:
|
|
6
|
+
import { s } from "./field-rac.module-DnUIb9Oh.js";
|
|
7
|
+
import { z as i, P as E, Q as p, S as R, R as _, q as L, j as O } from "./form-element-classes-BSMjWijd.js";
|
|
8
|
+
const e = ({ children: n }) => /* @__PURE__ */ t.createElement(a, null, n);
|
|
9
9
|
e.Label = a.Label;
|
|
10
10
|
e.Options = a.Options;
|
|
11
11
|
e.Option = a.Option;
|
|
12
12
|
e.Description = a.Description;
|
|
13
13
|
e.Error = a.Error;
|
|
14
|
-
const S = ({ content:
|
|
15
|
-
content:
|
|
14
|
+
const S = ({ content: n, locale: l }) => /* @__PURE__ */ t.createElement(c, {
|
|
15
|
+
content: n,
|
|
16
16
|
locale: l
|
|
17
17
|
}), I = () => /* @__PURE__ */ t.createElement(e, null, /* @__PURE__ */ t.createElement(e.Label, {
|
|
18
|
-
className: r(i,
|
|
18
|
+
className: r(i, s.label)
|
|
19
19
|
}, /* @__PURE__ */ t.createElement(e.Label.Required, {
|
|
20
|
-
className: r(E,
|
|
20
|
+
className: r(E, s.requiredMark)
|
|
21
21
|
})), /* @__PURE__ */ t.createElement(e.Options, {
|
|
22
22
|
className: r(p, o.options)
|
|
23
23
|
}, /* @__PURE__ */ t.createElement(e.Option, {
|
|
@@ -29,10 +29,10 @@ const S = ({ content: s, locale: l }) => /* @__PURE__ */ t.createElement(c, {
|
|
|
29
29
|
}), /* @__PURE__ */ t.createElement(e.Option.Label, {
|
|
30
30
|
className: r(_, o.optionLabel)
|
|
31
31
|
}))), /* @__PURE__ */ t.createElement(e.Error, {
|
|
32
|
-
className: r(L,
|
|
32
|
+
className: r(L, s.error)
|
|
33
33
|
}, /* @__PURE__ */ t.createElement(m, null), /* @__PURE__ */ t.createElement(e.Error.Text, null)), /* @__PURE__ */ t.createElement(e.Description, {
|
|
34
|
-
className: r(O,
|
|
35
|
-
}, S)),
|
|
34
|
+
className: r(O, s.description)
|
|
35
|
+
}, S)), M = () => /* @__PURE__ */ t.createElement(I, null);
|
|
36
36
|
export {
|
|
37
|
-
|
|
37
|
+
M as EventsRsvpRAC
|
|
38
38
|
};
|
package/dist/component/{field-error-headless-DrnFrGun.js → field-error-headless-D6iejMQP.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-CtWkUmxc.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-BIYf1BIh.js → field-label-headless-BWLfU3YB.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-CtWkUmxc.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,21 @@
|
|
|
1
|
+
const o = "_label_1nskk_1", n = "_requiredMark_1nskk_11", t = "_input_1nskk_16", e = "_inputGroup_1nskk_17", s = "_innerInput_1nskk_129", r = "_dropdownTrigger_1nskk_177", _ = "_dropdownIcon_1nskk_187", c = "_dropdownPopover_1nskk_206", p = "_selectPopover_1nskk_210", k = "_selectOption_1nskk_237", i = "_selectOptionWithoutFocusRing_1nskk_261", u = "_description_1nskk_267", d = "_error_1nskk_283", l = "_checkbox_1nskk_302", a = "_checkboxInput_1nskk_325", h = "_uploadButton_1nskk_420", b = {
|
|
2
|
+
label: o,
|
|
3
|
+
requiredMark: n,
|
|
4
|
+
input: t,
|
|
5
|
+
inputGroup: e,
|
|
6
|
+
innerInput: s,
|
|
7
|
+
dropdownTrigger: r,
|
|
8
|
+
dropdownIcon: _,
|
|
9
|
+
dropdownPopover: c,
|
|
10
|
+
selectPopover: p,
|
|
11
|
+
selectOption: k,
|
|
12
|
+
selectOptionWithoutFocusRing: i,
|
|
13
|
+
description: u,
|
|
14
|
+
error: d,
|
|
15
|
+
checkbox: l,
|
|
16
|
+
checkboxInput: a,
|
|
17
|
+
uploadButton: h
|
|
18
|
+
};
|
|
19
|
+
export {
|
|
20
|
+
b as s
|
|
21
|
+
};
|