@wix/form-elements 1.76.0 → 1.78.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-BQsFMmBg.js → appointment-rac-DWxisWGW.js} +47 -47
- package/dist/component/{bookings-address-rac-AJNyTdok.js → bookings-address-rac-BT-VBypp.js} +1 -1
- package/dist/component/{bookings-email-rac-BHZ0MFgI.js → bookings-email-rac-CVpK16ZI.js} +1 -1
- package/dist/component/{bookings-first-name-rac-Bw5FuWNX.js → bookings-first-name-rac-CDe5wve0.js} +1 -1
- package/dist/component/{bookings-header-rac-C1M2Pg1f.js → bookings-header-rac-BsMQ2QGm.js} +1 -1
- package/dist/component/{bookings-last-name-rac-DKkPY0CO.js → bookings-last-name-rac-Bpg5n4Dr.js} +1 -1
- package/dist/component/{bookings-login-bar-rac-P6pziSl1.js → bookings-login-bar-rac-DnMB_v13.js} +2 -2
- package/dist/component/{bookings-phone-rac-CiOZWKHz.js → bookings-phone-rac-B8FoaVqv.js} +1 -1
- package/dist/component/{bookings-rich-text-rac-D9ZComtY.js → bookings-rich-text-rac-CqD2O9X7.js} +1 -1
- package/dist/component/{checkbox-field-rac-4zG3Sf1c.js → checkbox-field-rac-CydYZGle.js} +46 -46
- package/dist/component/{checkbox-group-field-headless-DN2aNw9g.js → checkbox-group-field-headless-BdrQjLsc.js} +3 -3
- package/dist/component/{checkbox-group-field-rac-B1qhet83.js → checkbox-group-field-rac-D2mXFpmR.js} +3 -3
- package/dist/component/{checkbox-group-rac-DGsE7xGu.js → checkbox-group-rac-CTQRNdXf.js} +1 -1
- package/dist/component/{checkbox-rac-CFWQW9_K.js → checkbox-rac-d8u0ahzA.js} +1 -1
- package/dist/component/{contacts-address-rac-G5ZH3Odo.js → contacts-address-rac-CJYLD7fU.js} +1 -1
- package/dist/component/{contacts-birthdate-rac-C7TDUfT0.js → contacts-birthdate-rac-BYWcPC9J.js} +1 -1
- package/dist/component/{contacts-company-rac-8queUhWT.js → contacts-company-rac-B-hxWRwZ.js} +1 -1
- package/dist/component/{contacts-email-rac-CYOs5N_I.js → contacts-email-rac-9M965qjz.js} +1 -1
- package/dist/component/{contacts-first-name-rac-D8Goc_Ym.js → contacts-first-name-rac-BD6j79WW.js} +1 -1
- package/dist/component/{contacts-last-name-rac-lBmtuEnr.js → contacts-last-name-rac-DJ3UqnhZ.js} +1 -1
- package/dist/component/{contacts-phone-rac-DSUWUNBX.js → contacts-phone-rac-BQo85LSR.js} +1 -1
- package/dist/component/{contacts-position-rac-wA-aw5Id.js → contacts-position-rac-D1EEYf-q.js} +1 -1
- package/dist/component/contacts-subscribe-rac-D3_UmlB-.js +13 -0
- package/dist/component/{contacts-tax-id-rac-BpjVM1Ye.js → contacts-tax-id-rac-BUFbFFLw.js} +1 -1
- package/dist/component/{date-availability-CeiMjrtD.js → date-availability-Vtj_pmEf.js} +1 -1
- package/dist/component/{date-input-field-rac-CVaajAFM.js → date-input-field-rac-BN7Dec-O.js} +8 -8
- package/dist/component/{date-input-rac-DhEzawuM.js → date-input-rac-D0EknjCI.js} +1 -1
- package/dist/component/{date-picker-field-rac-1Q6yyNmK.js → date-picker-field-rac-JmIyqlEg.js} +8 -8
- package/dist/component/{date-picker-rac-BCGtmXMJ.js → date-picker-rac-CzbmZuUr.js} +1 -1
- package/dist/component/{date-time-input-field-rac-Dd-HNgKP.js → date-time-input-field-rac-9TAf-9BT.js} +15 -15
- package/dist/component/{date-time-input-rac-CsCWEsH5.js → date-time-input-rac-BMC95LdQ.js} +1 -1
- package/dist/component/{dext-checkbox-group-rac-CauN5uuV.js → dext-checkbox-group-rac-2IUeY8CX.js} +2 -2
- package/dist/component/{dext-checkbox-rac-q-g9gDnw.js → dext-checkbox-rac-DC-tLcqg.js} +1 -1
- package/dist/component/{dext-date-picker-rac-CZT3dTLv.js → dext-date-picker-rac-DgQdlofb.js} +1 -1
- package/dist/component/{dext-date-time-input-rac-DVUoZZbX.js → dext-date-time-input-rac-DgU7Nkxk.js} +1 -1
- package/dist/component/{dext-dropdown-rac-GRltutt5.js → dext-dropdown-rac-BKxqCr4C.js} +1 -1
- package/dist/component/{dext-email-rac-74Y8S9GA.js → dext-email-rac-coWG-88b.js} +1 -1
- package/dist/component/{dext-number-input-rac-CF9d_GTl.js → dext-number-input-rac--WG5wQFz.js} +1 -1
- package/dist/component/{dext-phone-rac-DObx_gOd.js → dext-phone-rac-ikgoCqRF.js} +1 -1
- package/dist/component/{dext-radio-group-rac-CzU9KX5_.js → dext-radio-group-rac-CSmi7-KP.js} +2 -2
- package/dist/component/{dext-rating-input-rac-BjRwwgXr.js → dext-rating-input-rac-CrUReQ7k.js} +1 -1
- package/dist/component/{dext-tags-rac-Vif4x1yF.js → dext-tags-rac-C0iyj2fA.js} +2 -2
- package/dist/component/{dext-text-area-rac-DmZwl_ax.js → dext-text-area-rac-k1bspboS.js} +1 -1
- package/dist/component/{dext-text-input-rac-B6FVbjUM.js → dext-text-input-rac-DvapRpAx.js} +1 -1
- package/dist/component/{dext-url-input-rac-17Dj3ICM.js → dext-url-input-rac-CAut8IVQ.js} +1 -1
- package/dist/component/{donation-rac-bgHep0Xi.js → donation-rac-BOqNDuTc.js} +23 -23
- package/dist/component/{dropdown-field-headless-BGfJ1FyZ.js → dropdown-field-headless-CS5wUgQ6.js} +3 -3
- package/dist/component/{dropdown-field-rac-DGiysJQY.js → dropdown-field-rac-MRo5oOWE.js} +2 -2
- package/dist/component/{dropdown-rac-FHjz8fKp.js → dropdown-rac-BjdsRMD6.js} +1 -1
- package/dist/component/{ecom-address-rac-DSbpf4z8.js → ecom-address-rac-DfYVinX3.js} +1 -1
- package/dist/component/{ecom-subscription-checkbox-rac-DiZWNwnt.js → ecom-subscription-checkbox-rac-S_Wzz9Jb.js} +3 -3
- package/dist/component/{email-input-field-rac-BQKK2O7L.js → email-input-field-rac-Ci2MzEdX.js} +47 -47
- package/dist/component/{events-repeater-rac-Dudnyhal.js → events-repeater-rac-DiuDVYBS.js} +4 -4
- package/dist/component/{events-rsvp-rac-008H5Ska.js → events-rsvp-rac-Cc27Vkvf.js} +2 -2
- package/dist/component/{field-error-headless-C5ZsFUKv.js → field-error-headless-DvmM1k0W.js} +1 -1
- package/dist/component/{field-label-headless-CS5OYsiI.js → field-label-headless-DKn04-OM.js} +1 -1
- package/dist/component/{file-upload-rac-bQ2QOO8Q.js → file-upload-rac-CB6xdN8j.js} +34 -34
- package/dist/component/{fixed-payment-rac-B6FvXoCU.js → fixed-payment-rac-ATi0oywP.js} +4 -4
- package/dist/component/{form-BpHElSwH.js → form-_3vjdih8.js} +69 -69
- package/dist/component/{form-element-classes-BXNs5k3q.js → form-element-classes-DZiFyihd.js} +37 -33
- package/dist/component/form.css +1 -1
- package/dist/component/form.js +1 -1
- package/dist/component/{header-field-rac-D4UYcmok.js → header-field-rac-pd3cDG5d.js} +3 -3
- package/dist/component/{header-rac-KavPiBdn.js → header-rac-fSMu24tQ.js} +1 -1
- package/dist/component/{image-choice-rac-BJQqBhBD.js → image-choice-rac-B7kSWlmM.js} +8 -8
- package/dist/component/{index-RSEYrQef.js → index-BTVyiZNf.js} +2 -2
- package/dist/component/{index-Y8iTxLat.js → index-QsnKRW-J.js} +4 -4
- package/dist/component/{isObjectLike-jwHec4Ap.js → isObjectLike-YK6n3FVo.js} +1 -1
- package/dist/component/{multiline-address-field-rac-D4Ibno80.js → multiline-address-field-rac-CDKbEU14.js} +37 -37
- package/dist/component/{multiline-address-rac-CrTSjzBN.js → multiline-address-rac-DflLsZ5w.js} +1 -1
- package/dist/component/{number-input-field-rac-DW1SjB-Z.js → number-input-field-rac-Bc6vH-Nl.js} +7 -7
- package/dist/component/{number-input-rac-CdE_hRbA.js → number-input-rac-J3DpYc9U.js} +1 -1
- package/dist/component/{password-rac-BCxl5mMQ.js → password-rac-DUsCGTgT.js} +10 -10
- package/dist/component/{payment-input-rac-DmO4s4ue.js → payment-input-rac-C7ir9WYG.js} +10 -10
- package/dist/component/{phone-input-field-rac-BYAnwk5h.js → phone-input-field-rac-BTCDRtYe.js} +26 -26
- package/dist/component/{phone-rac-gS4k9Yn8.js → phone-rac-Dk5FzIxX.js} +1 -1
- package/dist/component/{product-list-rac-CO0o3yOg.js → product-list-rac-BnXK6jhc.js} +22 -22
- package/dist/component/{quiz-radio-group-rac-Dhk7nkzb.js → quiz-radio-group-rac-BW3Vh-ZF.js} +2 -2
- package/dist/component/{radio-group-field-rac-DdlyQ3m6.js → radio-group-field-rac-C7IlBNGI.js} +2 -2
- package/dist/component/{radio-group-field-rac.module-emin6sSc.js → radio-group-field-rac.module-BRkiHqU7.js} +3 -3
- package/dist/component/{radio-group-rac-B-9q91fJ.js → radio-group-rac-DWJRHfZS.js} +1 -1
- package/dist/component/rating-input-field-rac-Bic4P2NB.js +136 -0
- package/dist/component/{rating-input-rac-BVO62LmE.js → rating-input-rac-B9M2UXqM.js} +1 -1
- package/dist/component/{rich-content-rac.module-CdiaAjxG.js → rich-content-rac.module-CuxZg6ls.js} +1 -1
- package/dist/component/{rich-text-field-rac-C4RrbyEX.js → rich-text-field-rac-CLEYP_pZ.js} +3 -3
- package/dist/component/{rich-text-rac-BG376ww9.js → rich-text-rac-YRAKNkpJ.js} +1 -1
- package/dist/component/{service-dropdown-rac-Dy6-OpVR.js → service-dropdown-rac-Dg4ijvf0.js} +11 -11
- package/dist/component/{services-multi-choice-rac-BKW9MP_b.js → services-multi-choice-rac-DcDxYaDU.js} +11 -11
- package/dist/component/{signature-rac-Cxgixp4o.js → signature-rac-BDj4xTdv.js} +35 -35
- package/dist/component/{submit-button-rac-BqPJ7WPI.js → submit-button-rac-DIigBeH5.js} +2 -2
- package/dist/component/{tags-field-rac-wwqpztG7.js → tags-field-rac-CJp9XBhV.js} +15 -15
- package/dist/component/{tags-rac-DUxITYxU.js → tags-rac-zlatHQ0n.js} +1 -1
- package/dist/component/{text-area-field-rac-Cen6O33S.js → text-area-field-rac-CFm-_Tz9.js} +13 -13
- package/dist/component/{text-area-rac-CRlO56GA.js → text-area-rac-BSJfRYEx.js} +1 -1
- package/dist/component/{text-input-field-rac-CbnKn03g.js → text-input-field-rac-ZTDIhRqT.js} +2 -2
- package/dist/component/{text-input-headless-C_NTJmLe.js → text-input-headless-4hu-GjTm.js} +3 -3
- package/dist/component/{text-input-rac-DvwV7Igm.js → text-input-rac-BTx8ELp7.js} +1 -1
- package/dist/component/{time-input-rac-TSEXiODs.js → time-input-rac-DmPMNJPn.js} +7 -7
- package/dist/component/{url-input-field-rac-Cxgh9T8s.js → url-input-field-rac-BPN4hmYh.js} +14 -14
- package/dist/component/{url-input-rac-DNw-Jg1U.js → url-input-rac-CEeg1r2O.js} +1 -1
- package/dist/component/{use-element-state-class-name-CC65g9mT.js → use-element-state-class-name-DVT9MJFT.js} +1 -1
- package/dist/component/{use-service-options-base-EFrxTpGm.js → use-service-options-base-J4FBFnZH.js} +1 -1
- package/package.json +2 -2
- package/dist/component/contacts-subscribe-rac-CAbBbFxZ.js +0 -13
- package/dist/component/rating-input-field-rac-VDaJKq-n.js +0 -126
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o, { useMemo as a } from "react";
|
|
2
|
-
import { ai as n, as as c, h as i } from "./form-
|
|
3
|
-
import { C } from "./checkbox-field-rac-
|
|
4
|
-
import { n as l, o as m, m as p } from "./form-element-classes-
|
|
2
|
+
import { ai as n, as as c, h as i } from "./form-_3vjdih8.js";
|
|
3
|
+
import { C } from "./checkbox-field-rac-CydYZGle.js";
|
|
4
|
+
import { n as l, o as m, m as p } from "./form-element-classes-DZiFyihd.js";
|
|
5
5
|
const _ = (e) => ({
|
|
6
6
|
nodes: [
|
|
7
7
|
{
|
package/dist/component/{email-input-field-rac-BQKK2O7L.js → email-input-field-rac-Ci2MzEdX.js}
RENAMED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { RicosViewer as ie } from "@wix/ricos/viewer";
|
|
2
2
|
import x 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-_3vjdih8.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-4hu-GjTm.js";
|
|
14
14
|
import { E as Ae } from "./error-icon-hZxQ6DEy.js";
|
|
15
15
|
import { s as C } from "./field-rac.module-DjmaTYkc.js";
|
|
16
|
-
import { z as Fe,
|
|
16
|
+
import { z as Fe, P as ke, y as Te, p as De, i as xe, _ as je } from "./form-element-classes-DZiFyihd.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
|
-
}, Me = function(t) {
|
|
39
|
-
return Ce[t];
|
|
40
38
|
}, Pe = function(t) {
|
|
41
|
-
return t
|
|
42
|
-
}, _e = {
|
|
39
|
+
return Ce[t];
|
|
40
|
+
}, _e = function(t) {
|
|
41
|
+
return t.replace(Le, Pe);
|
|
42
|
+
}, Me = {
|
|
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: _e
|
|
51
|
+
}, we, Re = Q();
|
|
52
52
|
function He() {
|
|
53
|
-
return
|
|
53
|
+
return Me;
|
|
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 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
90
|
var Be = ["format"], Ve = ["children", "count", "parent", "i18nKey", "context", "tOptions", "values", "defaults", "components", "ns", "i18n", "t", "shouldUnescape"];
|
|
91
|
-
function
|
|
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 z(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
|
}
|
|
@@ -114,7 +114,7 @@ function Y(e, t) {
|
|
|
114
114
|
var a = e.props ? e.props.children : e.children;
|
|
115
115
|
return t ? a.length > 0 : !!a;
|
|
116
116
|
}
|
|
117
|
-
function
|
|
117
|
+
function G(e) {
|
|
118
118
|
return e ? e.props ? e.props.children : e.children : [];
|
|
119
119
|
}
|
|
120
120
|
function qe(e) {
|
|
@@ -122,7 +122,7 @@ function qe(e) {
|
|
|
122
122
|
return U(t);
|
|
123
123
|
});
|
|
124
124
|
}
|
|
125
|
-
function
|
|
125
|
+
function _(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 = _(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 (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];
|
|
@@ -162,21 +162,21 @@ function te(e, t) {
|
|
|
162
162
|
K("Trans: the passed in value is invalid - seems you passed in a variable like {number} - please pass in variables for interpolation as full objects like {{number}}.", r);
|
|
163
163
|
}), a;
|
|
164
164
|
}
|
|
165
|
-
function
|
|
165
|
+
function Ge(e, t, a, o, c, r) {
|
|
166
166
|
if (t === "") return [];
|
|
167
167
|
var g = o.transKeepBasicHtmlNodesFor || [], v = t && new RegExp(g.join("|")).test(t);
|
|
168
168
|
if (!e && !v) return [t];
|
|
169
169
|
var d = {};
|
|
170
170
|
function b(y) {
|
|
171
|
-
var h =
|
|
171
|
+
var h = _(y);
|
|
172
172
|
h.forEach(function(s) {
|
|
173
|
-
typeof s != "string" && (Y(s) ? b(
|
|
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
177
|
var T = he.parse("<0>".concat(t, "</0>")), O = p(p({}, d), c);
|
|
178
178
|
function F(y, h, s) {
|
|
179
|
-
var i =
|
|
179
|
+
var i = G(y), I = S(i, h.children, s);
|
|
180
180
|
return qe(i) && I.length === 0 ? i : I;
|
|
181
181
|
}
|
|
182
182
|
function A(y, h, s, i, I) {
|
|
@@ -185,7 +185,7 @@ function $e(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 = _(y), I = _(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 $e(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, D = U(m), V = D && Y(n, !0) && !n.voidElement,
|
|
196
|
+
}, N) : N, D = U(m), V = D && Y(n, !0) && !n.voidElement, M = 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
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 (M) {
|
|
204
204
|
var oe = S(i, n.children, s);
|
|
205
205
|
l.push(R(m, p(p({}, m.props), {}, {
|
|
206
206
|
key: E
|
|
@@ -226,19 +226,19 @@ function $e(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
|
|
231
|
-
|
|
229
|
+
else if (P(m) === "object" && !D) {
|
|
230
|
+
var $ = n.children[0] ? k : null;
|
|
231
|
+
$ && l.push($);
|
|
232
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,10 +246,10 @@ function $e(e, t, a, o, c, r) {
|
|
|
246
246
|
var j = S([{
|
|
247
247
|
dummy: !0,
|
|
248
248
|
children: e || []
|
|
249
|
-
}], T,
|
|
250
|
-
return
|
|
249
|
+
}], T, _(e || []));
|
|
250
|
+
return G(j[0]);
|
|
251
251
|
}
|
|
252
|
-
function
|
|
252
|
+
function $e(e) {
|
|
253
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;
|
|
@@ -269,29 +269,29 @@ function Ge(e) {
|
|
|
269
269
|
}, d), m), {}, {
|
|
270
270
|
defaultValue: E,
|
|
271
271
|
ns: n
|
|
272
|
-
}), V = N ? I(N, D) : E,
|
|
273
|
-
return w ? H(w, j,
|
|
272
|
+
}), V = N ? I(N, D) : E, M = Ge(T || t, V, i, l, D, S), w = o !== void 0 ? o : l.defaultTransParent;
|
|
273
|
+
return w ? H(w, j, M) : M;
|
|
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,
|
|
292
292
|
"aria-live": "polite",
|
|
293
293
|
className: e
|
|
294
|
-
}, a ? /* @__PURE__ */ u.createElement(
|
|
294
|
+
}, a ? /* @__PURE__ */ u.createElement($e, {
|
|
295
295
|
i18n: r,
|
|
296
296
|
t: c,
|
|
297
297
|
i18nKey: "input.email.mistype-check.suggestion",
|
|
@@ -302,7 +302,7 @@ const ze = ({ 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
|
}),
|
|
@@ -459,7 +459,7 @@ const ze = ({ 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(Je, {
|
|
463
463
|
activeSuggestion: s,
|
|
464
464
|
applySuggestion: I
|
|
465
465
|
}, /* @__PURE__ */ u.createElement(F, {
|
|
@@ -483,7 +483,7 @@ 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, {
|
|
@@ -1,15 +1,15 @@
|
|
|
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-_3vjdih8.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-DKn04-OM.js";
|
|
7
7
|
import { a as te, C as se } from "./checkbox-indicator-module-classes-BcScu147.js";
|
|
8
8
|
import { u as ne } from "./use-invoke-callback-UH73A_J3.js";
|
|
9
9
|
import { C as M } from "./chevron-down-icon-CcpVm6B-.js";
|
|
10
10
|
import { s as B } from "./field-rac.module-DjmaTYkc.js";
|
|
11
|
-
import { z as oe, y as re, q as ae, s as le, r as ce } from "./form-element-classes-
|
|
12
|
-
import { u as ue } from "./use-element-state-class-name-
|
|
11
|
+
import { z as oe, y as re, q as ae, s as le, r as ce } from "./form-element-classes-DZiFyihd.js";
|
|
12
|
+
import { u as ue } from "./use-element-state-class-name-DVT9MJFT.js";
|
|
13
13
|
const me = [], ie = ({ id: t, fields: n, layout: l, value: r, onChange: s, errors: m = me, validation: c }) => {
|
|
14
14
|
const [i, E] = q((r == null ? void 0 : r.length) || 0), a = v(() => r ?? [], [
|
|
15
15
|
r
|
|
@@ -1,10 +1,10 @@
|
|
|
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-BRkiHqU7.js";
|
|
5
5
|
import { E as m } from "./error-icon-hZxQ6DEy.js";
|
|
6
6
|
import { s } from "./field-rac.module-DjmaTYkc.js";
|
|
7
|
-
import { z as i,
|
|
7
|
+
import { z as i, P as E, Q as p, S as R, R as _, p as L, i as O } from "./form-element-classes-DZiFyihd.js";
|
|
8
8
|
const e = ({ children: n }) => /* @__PURE__ */ t.createElement(a, null, n);
|
|
9
9
|
e.Label = a.Label;
|
|
10
10
|
e.Options = a.Options;
|
package/dist/component/{field-error-headless-C5ZsFUKv.js → field-error-headless-DvmM1k0W.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-_3vjdih8.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-CS5OYsiI.js → field-label-headless-DKn04-OM.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-_3vjdih8.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
|
-
import t, { useState as
|
|
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-_3vjdih8.js";
|
|
5
5
|
import { E as Le } from "./error-icon-hZxQ6DEy.js";
|
|
6
6
|
import { s as I } from "./field-rac.module-DjmaTYkc.js";
|
|
7
|
-
import { z as ne,
|
|
8
|
-
import { f as h, a as
|
|
9
|
-
import { b as ve, a as ye, D as _e, E as Te } from "./field-error-headless-
|
|
10
|
-
import { L as Be } from "./field-label-headless-
|
|
7
|
+
import { z as ne, P as De, a3 as Ne, i as ae, p as le } from "./form-element-classes-DZiFyihd.js";
|
|
8
|
+
import { f as h, a as z } from "./find-child-C60k4CxG.js";
|
|
9
|
+
import { b as ve, a as ye, D as _e, E as Te } from "./field-error-headless-DvmM1k0W.js";
|
|
10
|
+
import { L as Be } from "./field-label-headless-DKn04-OM.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/*",
|
|
@@ -43,7 +43,7 @@ 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] =
|
|
46
|
+
const [a, s] = Q(ke(r)), [b, m] = Q(r || []), [c, N] = Q(), v = Ae(o), { t: E } = ie(), k = ge().includes(he.BUTTONS_HOVER), { setFormStatus: y } = xe(), S = V(!1), _ = V(i);
|
|
47
47
|
_.current = i;
|
|
48
48
|
const C = oe(() => a.some((u) => u.state === "uploading"), [
|
|
49
49
|
a
|
|
@@ -55,7 +55,7 @@ function Ze({ valueSliderLimit: e, value: r, explanationText: n, target: o, onCh
|
|
|
55
55
|
y,
|
|
56
56
|
o
|
|
57
57
|
]);
|
|
58
|
-
const U =
|
|
58
|
+
const U = P(() => {
|
|
59
59
|
if (!a.length)
|
|
60
60
|
return n;
|
|
61
61
|
const F = a.filter((u) => u.state === "uploading").length;
|
|
@@ -72,7 +72,7 @@ function Ze({ valueSliderLimit: e, value: r, explanationText: n, target: o, onCh
|
|
|
72
72
|
a,
|
|
73
73
|
n,
|
|
74
74
|
E
|
|
75
|
-
]), M =
|
|
75
|
+
]), M = P(async (F) => {
|
|
76
76
|
await v(F, ({ file: u, uploadedFile: g }) => {
|
|
77
77
|
s((p) => p.map((f) => f.file === u ? {
|
|
78
78
|
file: u,
|
|
@@ -102,7 +102,7 @@ function Ze({ valueSliderLimit: e, value: r, explanationText: n, target: o, onCh
|
|
|
102
102
|
}));
|
|
103
103
|
return;
|
|
104
104
|
}
|
|
105
|
-
const p = Array.from(F).reduce((f, L) => (a.some((
|
|
105
|
+
const p = Array.from(F).reduce((f, L) => (a.some((Y) => Y.file.name === L.name) || f.push({
|
|
106
106
|
file: L,
|
|
107
107
|
state: "uploading"
|
|
108
108
|
}), f), []);
|
|
@@ -124,10 +124,10 @@ function Ze({ valueSliderLimit: e, value: r, explanationText: n, target: o, onCh
|
|
|
124
124
|
}
|
|
125
125
|
}, $ = () => {
|
|
126
126
|
c && N(void 0), x();
|
|
127
|
-
}, K = d.map((F) => we[F]).join(),
|
|
127
|
+
}, K = d.map((F) => we[F]).join(), W = P(() => {
|
|
128
128
|
s([]), m([]);
|
|
129
129
|
}, []);
|
|
130
|
-
return be(
|
|
130
|
+
return be(W), {
|
|
131
131
|
files: a,
|
|
132
132
|
limitError: c,
|
|
133
133
|
hover: k,
|
|
@@ -227,13 +227,13 @@ const A = ({ children: e, className: r }) => {
|
|
|
227
227
|
onFocus: s,
|
|
228
228
|
onBlur: R
|
|
229
229
|
}, r));
|
|
230
|
-
},
|
|
230
|
+
}, Pe = ({ className: e }) => {
|
|
231
231
|
const { buttonText: r } = q();
|
|
232
232
|
return /* @__PURE__ */ t.createElement("span", {
|
|
233
233
|
className: e
|
|
234
234
|
}, r);
|
|
235
235
|
};
|
|
236
|
-
J.Text =
|
|
236
|
+
J.Text = Pe;
|
|
237
237
|
A.Title = Ue;
|
|
238
238
|
A.Subtitle = Oe;
|
|
239
239
|
A.Button = J;
|
|
@@ -241,15 +241,15 @@ const T = ({ children: e, className: r, ...n }) => {
|
|
|
241
241
|
const { file: o, index: i } = n, d = o.file.name, x = h(e, T.Name), D = h(e, T.Remove), a = h(e, T.Spinner), s = h(e, T.Error);
|
|
242
242
|
return /* @__PURE__ */ t.createElement("div", {
|
|
243
243
|
className: r
|
|
244
|
-
},
|
|
244
|
+
}, z(x, {
|
|
245
245
|
fileName: d
|
|
246
|
-
}), o.state === "uploading" ? a :
|
|
246
|
+
}), o.state === "uploading" ? a : z(D, {
|
|
247
247
|
index: i,
|
|
248
248
|
fileName: d
|
|
249
|
-
}), o.errorMessage &&
|
|
249
|
+
}), o.errorMessage && z(s, {
|
|
250
250
|
errorMessage: o.errorMessage
|
|
251
251
|
}));
|
|
252
|
-
},
|
|
252
|
+
}, ze = ({ className: e, ...r }) => {
|
|
253
253
|
const { fileName: n } = r;
|
|
254
254
|
return /* @__PURE__ */ t.createElement("span", {
|
|
255
255
|
className: e
|
|
@@ -290,7 +290,7 @@ const T = ({ children: e, className: r, ...n }) => {
|
|
|
290
290
|
className: e,
|
|
291
291
|
isIndeterminate: !0
|
|
292
292
|
}, n);
|
|
293
|
-
T.Name =
|
|
293
|
+
T.Name = ze;
|
|
294
294
|
T.Remove = Ve;
|
|
295
295
|
T.Spinner = qe;
|
|
296
296
|
T.Error = ue;
|
|
@@ -299,7 +299,7 @@ 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", {
|
|
301
301
|
className: r
|
|
302
|
-
}, n.map((i, d) =>
|
|
302
|
+
}, n.map((i, d) => z(o, {
|
|
303
303
|
key: i.file.name || d,
|
|
304
304
|
file: i,
|
|
305
305
|
index: d
|
|
@@ -307,7 +307,7 @@ 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({}), 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({}), v = P(() => {
|
|
311
311
|
var L;
|
|
312
312
|
(L = c.current) == null || L.focus();
|
|
313
313
|
}, []), { files: E, limitError: R, hover: k, getExplanationText: y, handleBlur: S, handleChange: _, handleDelete: C, accept: U } = Ze({
|
|
@@ -319,10 +319,10 @@ const G = (e) => e.file.name, l = ({ children: e }) => {
|
|
|
319
319
|
uploadFileFormats: i,
|
|
320
320
|
onBlur: a,
|
|
321
321
|
onFilesCleared: v
|
|
322
|
-
}), M =
|
|
322
|
+
}), M = P((L) => {
|
|
323
323
|
var te;
|
|
324
|
-
const ee = E[L],
|
|
325
|
-
E.length > 1 && ((te = (E.filter((
|
|
324
|
+
const ee = E[L], Y = G(ee);
|
|
325
|
+
E.length > 1 && ((te = (E.filter((H) => G(H) !== Y).map((H) => N.current[G(H)]).find(Boolean) ?? c).current) == null || te.focus()), C(L);
|
|
326
326
|
}, [
|
|
327
327
|
C,
|
|
328
328
|
E
|
|
@@ -350,7 +350,7 @@ const G = (e) => e.file.name, l = ({ children: e }) => {
|
|
|
350
350
|
y,
|
|
351
351
|
k,
|
|
352
352
|
R
|
|
353
|
-
]), K = h(e, l.Label),
|
|
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);
|
|
354
354
|
return Ce(() => {
|
|
355
355
|
var L;
|
|
356
356
|
(L = c.current) == null || L.focus();
|
|
@@ -359,8 +359,8 @@ const G = (e) => e.file.name, l = ({ children: e }) => {
|
|
|
359
359
|
}, /* @__PURE__ */ t.createElement(m, {
|
|
360
360
|
fieldId: r,
|
|
361
361
|
renderLabel: () => K,
|
|
362
|
-
renderInput: () =>
|
|
363
|
-
renderDescription: () => /* @__PURE__ */ t.createElement(t.Fragment, null,
|
|
362
|
+
renderInput: () => W ?? F,
|
|
363
|
+
renderDescription: () => /* @__PURE__ */ t.createElement(t.Fragment, null, z(f, {
|
|
364
364
|
hasError: !!(s || R),
|
|
365
365
|
errorMessage: R ?? b
|
|
366
366
|
}), p, u, g)
|
|
@@ -396,7 +396,7 @@ const $e = (e) => /* @__PURE__ */ t.createElement("svg", {
|
|
|
396
396
|
...e
|
|
397
397
|
}, /* @__PURE__ */ t.createElement("path", {
|
|
398
398
|
d: "M12,21 C7.02943725,21 3,16.9705627 3,12 C3,7.02943725 7.02943725,3 12,3 C16.9705627,3 21,7.02943725 21,12 C21,16.9705627 16.9705627,21 12,21 Z M12,20 C16.418278,20 20,16.418278 20,12 C20,7.581722 16.418278,4 12,4 C7.581722,4 4,7.581722 4,12 C4,16.418278 7.581722,20 12,20 Z M12.7287834,7.27532214 C12.9203342,7.46687299 13.0199347,7.73174979 13.0020527,8.00205275 L13.0020527,12.0020527 C13.0199347,12.2723557 12.9203342,12.5372325 12.7287834,12.7287834 C12.5372325,12.9203342 12.2723557,13.0199347 12.0020527,13.0020527 C11.7317498,13.0199347 11.466873,12.9203342 11.2753221,12.7287834 C11.0837713,12.5372325 10.9841708,12.2723557 11.0020527,12.0020527 L11.0020527,8.00205275 C10.9841708,7.73174979 11.0837713,7.46687299 11.2753221,7.27532214 C11.466873,7.08377129 11.7317498,6.98417081 12.0020527,7.00205275 C12.2723557,6.98417081 12.5372325,7.08377129 12.7287834,7.27532214 Z M12.7287834,15.2753221 C12.9203342,15.466873 13.0199347,15.7317498 13.0020527,16.0020527 C13.0199347,16.2723557 12.9203342,16.5372325 12.7287834,16.7287834 C12.5372325,16.9203342 12.2723557,17.0199347 12.0020527,17.0020527 C11.7317498,17.0199347 11.466873,16.9203342 11.2753221,16.7287834 C11.0837713,16.5372325 10.9841708,16.2723557 11.0020527,16.0020527 C10.9841708,15.7317498 11.0837713,15.466873 11.2753221,15.2753221 C11.466873,15.0837713 11.7317498,14.9841708 12.0020527,15.0020527 C12.2723557,14.9841708 12.5372325,15.0837713 12.7287834,15.2753221 Z"
|
|
399
|
-
})),
|
|
399
|
+
})), We = (e) => /* @__PURE__ */ t.createElement("svg", {
|
|
400
400
|
viewBox: "0 0 24 24",
|
|
401
401
|
width: 24,
|
|
402
402
|
height: 24,
|
|
@@ -405,7 +405,7 @@ const $e = (e) => /* @__PURE__ */ t.createElement("svg", {
|
|
|
405
405
|
...e
|
|
406
406
|
}, /* @__PURE__ */ t.createElement("path", {
|
|
407
407
|
d: "M17,17 C17,18.6568542 15.6568542,20 14,20 L9,20 C7.34314575,20 6,18.6568542 6,17 L6,7 L5,7 L5,6 L18,6 L18,7 L17,7 L17,17 Z M9,9 L10,9 L10,16 L9,16 L9,9 Z M11,9 L12,9 L12,16 L11,16 L11,9 Z M13,9 L14,9 L14,16 L13,16 L13,9 Z M7,17 C7,18.1045695 7.8954305,19 9,19 L14,19 C15.1045695,19 16,18.1045695 16,17 L16,7 L7,7 L7,17 Z M13,6 L13,5 L10,5 L10,6 L9,6 L9,5 C9,4.44771525 9.44771525,4 10,4 L13,4 C13.5522847,4 14,4.44771525 14,5 L14,6 L13,6 Z"
|
|
408
|
-
})),
|
|
408
|
+
})), Ye = () => {
|
|
409
409
|
const r = "calc(50% - 2px)";
|
|
410
410
|
return /* @__PURE__ */ t.createElement("svg", {
|
|
411
411
|
fill: "none",
|
|
@@ -437,9 +437,9 @@ const $e = (e) => /* @__PURE__ */ t.createElement("svg", {
|
|
|
437
437
|
values: "0;360",
|
|
438
438
|
repeatCount: "indefinite"
|
|
439
439
|
})));
|
|
440
|
-
},
|
|
441
|
-
explanation:
|
|
442
|
-
files:
|
|
440
|
+
}, He = "_explanation_16me0_1", Qe = "_files_16me0_5", Ge = "_file_16me0_5", Je = "_fileName_16me0_24", Xe = "_removeButton_16me0_32", et = "_spinner_16me0_72", tt = "_fileError_16me0_88", w = {
|
|
441
|
+
explanation: He,
|
|
442
|
+
files: Qe,
|
|
443
443
|
file: Ge,
|
|
444
444
|
fileName: Je,
|
|
445
445
|
removeButton: Xe,
|
|
@@ -468,10 +468,10 @@ const $e = (e) => /* @__PURE__ */ t.createElement("svg", {
|
|
|
468
468
|
}), /* @__PURE__ */ t.createElement(l.Files.File.Spinner, {
|
|
469
469
|
className: w.spinner,
|
|
470
470
|
"aria-label": e("file-upload.file.uploading-spinner.aria-label")
|
|
471
|
-
}, /* @__PURE__ */ t.createElement(
|
|
471
|
+
}, /* @__PURE__ */ t.createElement(Ye, null)), /* @__PURE__ */ t.createElement(l.Files.File.Remove, {
|
|
472
472
|
className: w.removeButton,
|
|
473
473
|
"aria-label": e("file-upload.delete-file.aria-label")
|
|
474
|
-
}, /* @__PURE__ */ t.createElement(
|
|
474
|
+
}, /* @__PURE__ */ t.createElement(We, null)), /* @__PURE__ */ t.createElement(l.Files.File.Error, {
|
|
475
475
|
className: B(le, I.error, w.fileError)
|
|
476
476
|
}, /* @__PURE__ */ t.createElement(Ke, null), /* @__PURE__ */ t.createElement(l.Files.File.Error.Text, null)))), /* @__PURE__ */ t.createElement(l.Description, {
|
|
477
477
|
className: B(ae, I.description)
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import t, { useMemo as D } from "react";
|
|
2
2
|
import { RicosViewer as _ } 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-_3vjdih8.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-DvmM1k0W.js";
|
|
8
|
+
import { L as R } from "./field-label-headless-DKn04-OM.js";
|
|
9
9
|
import { s as L } from "./field-rac.module-DjmaTYkc.js";
|
|
10
|
-
import { z as v, A as M, i as g } from "./form-element-classes-
|
|
10
|
+
import { z as v, A as M, i as g } from "./form-element-classes-DZiFyihd.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 = D(() => {
|