@wix/form-elements 1.75.0 → 1.76.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 +1016 -0
- package/dist/component/{bookings-address-rac-VXnUSx8U.js → bookings-address-rac-AJNyTdok.js} +1 -1
- package/dist/component/{bookings-email-rac-B2_ad7Y2.js → bookings-email-rac-BHZ0MFgI.js} +1 -1
- package/dist/component/{bookings-first-name-rac-9BAY5vLx.js → bookings-first-name-rac-Bw5FuWNX.js} +1 -1
- package/dist/component/{bookings-header-rac-B6IgiMOA.js → bookings-header-rac-C1M2Pg1f.js} +1 -1
- package/dist/component/{bookings-last-name-rac-DoXEDO8K.js → bookings-last-name-rac-DKkPY0CO.js} +1 -1
- package/dist/component/{bookings-login-bar-rac-DprQIFyj.js → bookings-login-bar-rac-P6pziSl1.js} +2 -2
- package/dist/component/{bookings-phone-rac-VMoXtejZ.js → bookings-phone-rac-CiOZWKHz.js} +1 -1
- package/dist/component/{bookings-rich-text-rac-DSzD2jBy.js → bookings-rich-text-rac-D9ZComtY.js} +1 -1
- package/dist/component/{checkbox-field-rac-BLihwz3C.js → checkbox-field-rac-4zG3Sf1c.js} +18 -17
- package/dist/component/{checkbox-group-field-headless-BItyo_iD.js → checkbox-group-field-headless-DN2aNw9g.js} +4 -4
- package/dist/component/{checkbox-group-field-rac-Bov3yFC6.js → checkbox-group-field-rac-B1qhet83.js} +12 -11
- package/dist/component/{checkbox-group-rac-Fit-qssk.js → checkbox-group-rac-DGsE7xGu.js} +1 -1
- package/dist/component/checkbox-indicator-module-classes-BcScu147.js +17 -0
- package/dist/component/{checkbox-rac-CSsY83Nx.js → checkbox-rac-CFWQW9_K.js} +1 -1
- package/dist/component/{contacts-address-rac-iJuzUQe4.js → contacts-address-rac-G5ZH3Odo.js} +1 -1
- package/dist/component/{contacts-birthdate-rac-0g2e8cQP.js → contacts-birthdate-rac-C7TDUfT0.js} +1 -1
- package/dist/component/{contacts-company-rac-BC0tK4WQ.js → contacts-company-rac-8queUhWT.js} +1 -1
- package/dist/component/{contacts-email-rac-dkuclkiH.js → contacts-email-rac-CYOs5N_I.js} +1 -1
- package/dist/component/{contacts-first-name-rac-BSUkCuht.js → contacts-first-name-rac-D8Goc_Ym.js} +1 -1
- package/dist/component/{contacts-last-name-rac-08bjVdN2.js → contacts-last-name-rac-lBmtuEnr.js} +1 -1
- package/dist/component/{contacts-phone-rac-DVb0Z_0M.js → contacts-phone-rac-DSUWUNBX.js} +1 -1
- package/dist/component/{contacts-position-rac-AGUDkv7U.js → contacts-position-rac-wA-aw5Id.js} +1 -1
- package/dist/component/contacts-subscribe-rac-CAbBbFxZ.js +13 -0
- package/dist/component/{contacts-tax-id-rac-C7moEz5b.js → contacts-tax-id-rac-BpjVM1Ye.js} +1 -1
- package/dist/component/{date-availability-DagbE0C8.js → date-availability-CeiMjrtD.js} +1 -1
- package/dist/component/{date-input-field-rac-BWHKsJGy.js → date-input-field-rac-CVaajAFM.js} +4 -4
- package/dist/component/{date-input-rac-BlZlmf-s.js → date-input-rac-DhEzawuM.js} +1 -1
- package/dist/component/{date-picker-field-rac-BSNbYirD.js → date-picker-field-rac-1Q6yyNmK.js} +8 -8
- package/dist/component/{date-picker-rac-D3IWMst5.js → date-picker-rac-BCGtmXMJ.js} +1 -1
- package/dist/component/{date-time-input-field-rac-YKTwuIUs.js → date-time-input-field-rac-Dd-HNgKP.js} +16 -16
- package/dist/component/{date-time-input-rac-CZRsKm1P.js → date-time-input-rac-CsCWEsH5.js} +1 -1
- package/dist/component/{dext-checkbox-group-rac-BE7ILz-f.js → dext-checkbox-group-rac-CauN5uuV.js} +2 -2
- package/dist/component/{dext-checkbox-rac-B6-94A1N.js → dext-checkbox-rac-q-g9gDnw.js} +1 -1
- package/dist/component/{dext-date-picker-rac-Bx2hUFNm.js → dext-date-picker-rac-CZT3dTLv.js} +1 -1
- package/dist/component/{dext-date-time-input-rac-DPKD6quz.js → dext-date-time-input-rac-DVUoZZbX.js} +1 -1
- package/dist/component/{dext-dropdown-rac-WrSfNRa5.js → dext-dropdown-rac-GRltutt5.js} +1 -1
- package/dist/component/{dext-email-rac-8PSMKNYG.js → dext-email-rac-74Y8S9GA.js} +1 -1
- package/dist/component/{dext-number-input-rac-b9YSzEkN.js → dext-number-input-rac-CF9d_GTl.js} +1 -1
- package/dist/component/{dext-phone-rac-CkapN3c1.js → dext-phone-rac-DObx_gOd.js} +1 -1
- package/dist/component/{dext-radio-group-rac-CfNMkwUa.js → dext-radio-group-rac-CzU9KX5_.js} +2 -2
- package/dist/component/{dext-rating-input-rac-Cun_t7HQ.js → dext-rating-input-rac-BjRwwgXr.js} +1 -1
- package/dist/component/{dext-tags-rac-DLZ91c3w.js → dext-tags-rac-Vif4x1yF.js} +2 -2
- package/dist/component/{dext-text-area-rac-N9A7QfYw.js → dext-text-area-rac-DmZwl_ax.js} +1 -1
- package/dist/component/{dext-text-input-rac-XbVzAPHH.js → dext-text-input-rac-B6FVbjUM.js} +1 -1
- package/dist/component/{dext-url-input-rac-BiaWZ49r.js → dext-url-input-rac-17Dj3ICM.js} +1 -1
- package/dist/component/{donation-rac-BEIBjLHK.js → donation-rac-bgHep0Xi.js} +119 -119
- package/dist/component/{dropdown-field-headless-CQfZ3zPD.js → dropdown-field-headless-BGfJ1FyZ.js} +3 -3
- package/dist/component/{dropdown-field-rac-ubZN_Abg.js → dropdown-field-rac-DGiysJQY.js} +2 -2
- package/dist/component/{dropdown-rac-CHYFrEjY.js → dropdown-rac-FHjz8fKp.js} +1 -1
- package/dist/component/{ecom-address-rac-C7qJlrsv.js → ecom-address-rac-DSbpf4z8.js} +1 -1
- package/dist/component/{ecom-subscription-checkbox-rac-CONIZsTy.js → ecom-subscription-checkbox-rac-DiZWNwnt.js} +3 -3
- package/dist/component/{email-input-field-rac-Dg0p6WZe.js → email-input-field-rac-BQKK2O7L.js} +48 -48
- package/dist/component/{events-repeater-rac-BoxNl7gn.js → events-repeater-rac-Dudnyhal.js} +21 -20
- package/dist/component/{events-rsvp-rac-BU5d2n4k.js → events-rsvp-rac-008H5Ska.js} +2 -2
- package/dist/component/{field-error-headless-uQOcm2Ak.js → field-error-headless-C5ZsFUKv.js} +1 -1
- package/dist/component/{field-label-headless-Bzh7f2Ji.js → field-label-headless-CS5OYsiI.js} +1 -1
- package/dist/component/{file-upload-rac-BTt-rJE5.js → file-upload-rac-bQ2QOO8Q.js} +36 -36
- package/dist/component/{fixed-payment-rac-1NOx3D-U.js → fixed-payment-rac-B6FvXoCU.js} +6 -6
- package/dist/component/{form-DCmjj8mZ.js → form-BpHElSwH.js} +69 -69
- package/dist/component/{form-element-classes-Dn33C01k.js → form-element-classes-BXNs5k3q.js} +59 -51
- package/dist/component/form.css +1 -1
- package/dist/component/form.js +1 -1
- package/dist/component/{header-field-rac-lyvjy6h2.js → header-field-rac-D4UYcmok.js} +3 -3
- package/dist/component/{header-rac-B4iPEbNj.js → header-rac-KavPiBdn.js} +1 -1
- package/dist/component/{image-choice-rac-CmEG-waj.js → image-choice-rac-BJQqBhBD.js} +19 -19
- package/dist/component/{index-UZsDOe8e.js → index-RSEYrQef.js} +2 -2
- package/dist/component/{index-D-CKLZBh.js → index-Y8iTxLat.js} +4 -4
- package/dist/component/{isObjectLike-BSGOU4jF.js → isObjectLike-jwHec4Ap.js} +1 -1
- package/dist/component/{multiline-address-field-rac-Dz0NEjSO.js → multiline-address-field-rac-D4Ibno80.js} +67 -67
- package/dist/component/{multiline-address-rac-D_MAanxb.js → multiline-address-rac-CrTSjzBN.js} +1 -1
- package/dist/component/{number-input-field-rac-CvjeAm-W.js → number-input-field-rac-DW1SjB-Z.js} +16 -16
- package/dist/component/{number-input-rac-oKo2Wx_c.js → number-input-rac-CdE_hRbA.js} +1 -1
- package/dist/component/{password-rac-CrnkKtfp.js → password-rac-BCxl5mMQ.js} +9 -9
- package/dist/component/{payment-input-rac-BoVdGyvV.js → payment-input-rac-DmO4s4ue.js} +15 -15
- package/dist/component/{phone-input-field-rac-DksXoAnr.js → phone-input-field-rac-BYAnwk5h.js} +36 -36
- package/dist/component/{phone-rac-BR0iX5TL.js → phone-rac-gS4k9Yn8.js} +1 -1
- package/dist/component/{product-list-rac-C4rvv5k-.js → product-list-rac-CO0o3yOg.js} +50 -49
- package/dist/component/{quiz-radio-group-rac-BxKmUUf8.js → quiz-radio-group-rac-Dhk7nkzb.js} +2 -2
- package/dist/component/{radio-group-field-rac-Dj4rkkKF.js → radio-group-field-rac-DdlyQ3m6.js} +2 -2
- package/dist/component/{radio-group-field-rac.module-CeBLm9QF.js → radio-group-field-rac.module-emin6sSc.js} +3 -3
- package/dist/component/{radio-group-rac-BpnfptSZ.js → radio-group-rac-B-9q91fJ.js} +1 -1
- package/dist/component/{rating-input-field-rac-BP0928qI.js → rating-input-field-rac-VDaJKq-n.js} +17 -17
- package/dist/component/{rating-input-rac-DaEgvjIS.js → rating-input-rac-BVO62LmE.js} +1 -1
- package/dist/component/{rich-content-rac.module-zvvH-tWq.js → rich-content-rac.module-CdiaAjxG.js} +1 -1
- package/dist/component/{rich-text-field-rac-CFCRiMl_.js → rich-text-field-rac-C4RrbyEX.js} +3 -3
- package/dist/component/{rich-text-rac-BRuLnyN4.js → rich-text-rac-BG376ww9.js} +1 -1
- package/dist/component/{service-dropdown-rac-C82l5y0C.js → service-dropdown-rac-Dy6-OpVR.js} +10 -10
- package/dist/component/{services-multi-choice-rac-BAHBSgAT.js → services-multi-choice-rac-BKW9MP_b.js} +21 -20
- package/dist/component/{signature-rac-CIkm3SCW.js → signature-rac-Cxgixp4o.js} +4 -4
- package/dist/component/{submit-button-rac-Bz-X9Tbo.js → submit-button-rac-BqPJ7WPI.js} +2 -2
- package/dist/component/{tags-field-rac-Dn8VyPzT.js → tags-field-rac-wwqpztG7.js} +23 -23
- package/dist/component/{tags-rac-BJpVdunR.js → tags-rac-DUxITYxU.js} +1 -1
- package/dist/component/{text-area-field-rac-Pp9HnCS5.js → text-area-field-rac-Cen6O33S.js} +6 -6
- package/dist/component/{text-area-rac-DbwAFdel.js → text-area-rac-CRlO56GA.js} +1 -1
- package/dist/component/{text-input-field-rac-x4ByKmBv.js → text-input-field-rac-CbnKn03g.js} +2 -2
- package/dist/component/{text-input-headless-fbiKci5q.js → text-input-headless-C_NTJmLe.js} +3 -3
- package/dist/component/{text-input-rac-jyCKxyCt.js → text-input-rac-DvwV7Igm.js} +1 -1
- package/dist/component/{time-input-rac-C5Cvmxtt.js → time-input-rac-TSEXiODs.js} +12 -12
- package/dist/component/{url-input-field-rac-CGpCEn2A.js → url-input-field-rac-Cxgh9T8s.js} +4 -4
- package/dist/component/{url-input-rac-DhFL8fGq.js → url-input-rac-DNw-Jg1U.js} +1 -1
- package/dist/component/use-element-state-class-name-CC65g9mT.js +15 -0
- package/dist/component/{use-service-options-base-CgT1IKB3.js → use-service-options-base-EFrxTpGm.js} +1 -1
- package/package.json +2 -2
- package/dist/component/appointment-rac-7xVKSm2N.js +0 -1005
- package/dist/component/contacts-subscribe-rac-6jAQHibT.js +0 -13
- package/dist/component/use-element-state-class-name-Bnw7sY9P.js +0 -29
package/dist/component/{email-input-field-rac-Dg0p6WZe.js → email-input-field-rac-BQKK2O7L.js}
RENAMED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { RicosViewer as ie } from "@wix/ricos/viewer";
|
|
2
|
-
import
|
|
3
|
-
import u, { createContext as
|
|
2
|
+
import x from "classnames";
|
|
3
|
+
import u, { createContext as J, 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-BpHElSwH.js";
|
|
6
6
|
import { f as L } from "./find-child-C60k4CxG.js";
|
|
7
7
|
import ee from "@babel/runtime/helpers/objectWithoutProperties";
|
|
8
|
-
import
|
|
8
|
+
import M from "@babel/runtime/helpers/typeof";
|
|
9
9
|
import Oe from "@babel/runtime/helpers/defineProperty";
|
|
10
10
|
import he from "html-parse-stringify";
|
|
11
11
|
import Ie from "@babel/runtime/helpers/classCallCheck";
|
|
12
12
|
import Ne from "@babel/runtime/helpers/createClass";
|
|
13
|
-
import { T as B } from "./text-input-headless-
|
|
13
|
+
import { T as B } from "./text-input-headless-C_NTJmLe.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 {
|
|
16
|
+
import { z as Fe, Q as ke, y as Te, p as De, i as xe, $ as je } from "./form-element-classes-BXNs5k3q.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
|
-
}, _e = function(t) {
|
|
39
|
-
return Ce[t];
|
|
40
38
|
}, Me = function(t) {
|
|
41
|
-
return t
|
|
42
|
-
}, Pe = {
|
|
39
|
+
return Ce[t];
|
|
40
|
+
}, Pe = function(t) {
|
|
41
|
+
return t.replace(Le, Me);
|
|
42
|
+
}, _e = {
|
|
43
43
|
bindI18n: "languageChanged",
|
|
44
44
|
bindI18nStore: "",
|
|
45
45
|
transEmptyNodeValue: "",
|
|
@@ -47,10 +47,10 @@ var Le = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#1
|
|
|
47
47
|
transWrapTextNodes: "",
|
|
48
48
|
transKeepBasicHtmlNodesFor: ["br", "strong", "i", "p"],
|
|
49
49
|
useSuspense: !0,
|
|
50
|
-
unescape:
|
|
51
|
-
}, we, Re =
|
|
50
|
+
unescape: Pe
|
|
51
|
+
}, we, Re = J();
|
|
52
52
|
function He() {
|
|
53
|
-
return
|
|
53
|
+
return _e;
|
|
54
54
|
}
|
|
55
55
|
(function() {
|
|
56
56
|
function e() {
|
|
@@ -88,7 +88,7 @@ function Ue() {
|
|
|
88
88
|
typeof t[0] == "string" && X[t[0]] || (typeof t[0] == "string" && (X[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 z(e, t) {
|
|
92
92
|
var a = Object.keys(e);
|
|
93
93
|
if (Object.getOwnPropertySymbols) {
|
|
94
94
|
var o = Object.getOwnPropertySymbols(e);
|
|
@@ -101,9 +101,9 @@ function J(e, t) {
|
|
|
101
101
|
function p(e) {
|
|
102
102
|
for (var t = 1; t < arguments.length; t++) {
|
|
103
103
|
var a = arguments[t] != null ? arguments[t] : {};
|
|
104
|
-
t % 2 ?
|
|
104
|
+
t % 2 ? z(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)) : z(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 $(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 P(e) {
|
|
126
126
|
return Array.isArray(e) ? e : [e];
|
|
127
127
|
}
|
|
128
128
|
function Ye(e, t) {
|
|
@@ -131,7 +131,7 @@ function Ye(e, t) {
|
|
|
131
131
|
}
|
|
132
132
|
function te(e, t) {
|
|
133
133
|
if (!e) return "";
|
|
134
|
-
var a = "", o =
|
|
134
|
+
var a = "", o = P(e), c = t.transSupportBasicHtmlNodes && t.transKeepBasicHtmlNodesFor ? t.transKeepBasicHtmlNodesFor : [];
|
|
135
135
|
return o.forEach(function(r, g) {
|
|
136
136
|
if (typeof r == "string")
|
|
137
137
|
a += "".concat(r);
|
|
@@ -151,7 +151,7 @@ function te(e, t) {
|
|
|
151
151
|
}
|
|
152
152
|
} else if (r === null)
|
|
153
153
|
K("Trans: the passed in value is invalid - seems you passed in a null child.");
|
|
154
|
-
else if (
|
|
154
|
+
else if (M(r) === "object") {
|
|
155
155
|
var O = r.format, F = ee(r, Be), A = Object.keys(F);
|
|
156
156
|
if (A.length === 1) {
|
|
157
157
|
var S = O ? "".concat(A[0], ", ").concat(O) : A[0];
|
|
@@ -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 $e(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 = P(y);
|
|
172
172
|
h.forEach(function(s) {
|
|
173
|
-
typeof s != "string" && (Y(s) ? b(
|
|
173
|
+
typeof s != "string" && (Y(s) ? b($(s)) : M(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 = $(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 Ge(e, t, a, o, c, r) {
|
|
|
185
185
|
}), I ? void 0 : h));
|
|
186
186
|
}
|
|
187
187
|
function S(y, h, s) {
|
|
188
|
-
var i =
|
|
188
|
+
var i = P(y), I = P(h);
|
|
189
189
|
return I.reduce(function(l, n, E) {
|
|
190
190
|
var k = n.children && n.children[0] && n.children[0].content && a.services.interpolator.interpolate(n.children[0].content, O, a.language);
|
|
191
191
|
if (n.type === "tag") {
|
|
@@ -193,14 +193,14 @@ function Ge(e, t, a, o, c, r) {
|
|
|
193
193
|
!N && s.length === 1 && s[0][n.name] && (N = s[0][n.name]), N || (N = {});
|
|
194
194
|
var m = Object.keys(n.attrs).length !== 0 ? Ye({
|
|
195
195
|
props: n.attrs
|
|
196
|
-
}, N) : N,
|
|
196
|
+
}, N) : N, D = U(m), V = D && Y(n, !0) && !n.voidElement, _ = v && M(m) === "object" && m.dummy && !D, w = M(e) === "object" && e !== null && Object.hasOwnProperty.call(e, n.name);
|
|
197
197
|
if (typeof m == "string") {
|
|
198
198
|
var q = a.services.interpolator.interpolate(m, O, a.language);
|
|
199
199
|
l.push(q);
|
|
200
200
|
} else if (Y(m) || V) {
|
|
201
201
|
var ne = F(m, n, s);
|
|
202
202
|
A(m, ne, l, E);
|
|
203
|
-
} else if (
|
|
203
|
+
} else if (_) {
|
|
204
204
|
var oe = S(i, n.children, s);
|
|
205
205
|
l.push(R(m, p(p({}, m.props), {}, {
|
|
206
206
|
key: E
|
|
@@ -226,9 +226,9 @@ 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
|
|
231
|
-
|
|
229
|
+
else if (M(m) === "object" && !D) {
|
|
230
|
+
var G = n.children[0] ? k : null;
|
|
231
|
+
G && l.push(G);
|
|
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), {}, {
|
|
@@ -246,10 +246,10 @@ function Ge(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, P(e || []));
|
|
250
|
+
return $(j[0]);
|
|
251
251
|
}
|
|
252
|
-
function
|
|
252
|
+
function Ge(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;
|
|
@@ -264,34 +264,34 @@ function $e(e) {
|
|
|
264
264
|
prefix: "#$?",
|
|
265
265
|
suffix: "?$#"
|
|
266
266
|
})
|
|
267
|
-
},
|
|
267
|
+
}, D = p(p(p(p({}, v), {}, {
|
|
268
268
|
count: a
|
|
269
269
|
}, d), m), {}, {
|
|
270
270
|
defaultValue: E,
|
|
271
271
|
ns: n
|
|
272
|
-
}), V = N ? I(N,
|
|
273
|
-
return w ? H(w, j,
|
|
272
|
+
}), V = N ? I(N, D) : E, _ = $e(T || t, V, i, l, D, S), w = o !== void 0 ? o : l.defaultTransParent;
|
|
273
|
+
return w ? H(w, j, _) : _;
|
|
274
274
|
}
|
|
275
|
-
const We = "email-mistype-suggestion", Qe = "email-mistype-suggestion-link", ae = /* @__PURE__ */
|
|
275
|
+
const We = "email-mistype-suggestion", Qe = "email-mistype-suggestion-link", ae = /* @__PURE__ */ J(void 0);
|
|
276
276
|
function Xe() {
|
|
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 ze = ({ 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),
|
|
287
|
+
}, a), Je = ({ className: e }) => {
|
|
288
288
|
const { suggestionId: t } = fe(), { activeSuggestion: a, applySuggestion: o } = Xe(), { 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(Ge, {
|
|
295
295
|
i18n: r,
|
|
296
296
|
t: c,
|
|
297
297
|
i18nKey: "input.email.mistype-check.suggestion",
|
|
@@ -459,7 +459,7 @@ const Je = ({ activeSuggestion: e, applySuggestion: t, children: a }) => /* @__P
|
|
|
459
459
|
}, n = L(e, f.Label), E = L(e, f.Input), k = L(e, f.Description), N = L(e, f.Error), m = L(e, f.Suggestion);
|
|
460
460
|
return /* @__PURE__ */ u.createElement(Se.Provider, {
|
|
461
461
|
value: i
|
|
462
|
-
}, /* @__PURE__ */ u.createElement(
|
|
462
|
+
}, /* @__PURE__ */ u.createElement(ze, {
|
|
463
463
|
activeSuggestion: s,
|
|
464
464
|
applySuggestion: I
|
|
465
465
|
}, /* @__PURE__ */ u.createElement(F, {
|
|
@@ -483,24 +483,24 @@ f.Label = B.Label;
|
|
|
483
483
|
f.Input = B.Input;
|
|
484
484
|
f.Description = B.Description;
|
|
485
485
|
f.Error = B.Error;
|
|
486
|
-
f.Suggestion =
|
|
486
|
+
f.Suggestion = Je;
|
|
487
487
|
const nt = "_suggestion_di65n_1", ot = {
|
|
488
488
|
suggestion: nt
|
|
489
489
|
}, rt = ({ content: e, locale: t }) => /* @__PURE__ */ u.createElement(ie, {
|
|
490
490
|
content: e,
|
|
491
491
|
locale: t
|
|
492
492
|
}), ht = () => /* @__PURE__ */ u.createElement(f, null, /* @__PURE__ */ u.createElement(f.Label, {
|
|
493
|
-
className:
|
|
493
|
+
className: x(Fe, C.label)
|
|
494
494
|
}, /* @__PURE__ */ u.createElement(f.Label.Required, {
|
|
495
|
-
className:
|
|
495
|
+
className: x(ke, C.requiredMark)
|
|
496
496
|
})), /* @__PURE__ */ u.createElement(f.Input, {
|
|
497
|
-
className:
|
|
497
|
+
className: x(Te, C.input)
|
|
498
498
|
}), /* @__PURE__ */ u.createElement(f.Error, {
|
|
499
|
-
className:
|
|
499
|
+
className: x(De, C.error)
|
|
500
500
|
}, /* @__PURE__ */ u.createElement(Ae, null), /* @__PURE__ */ u.createElement(f.Error.Text, null)), /* @__PURE__ */ u.createElement(f.Description, {
|
|
501
|
-
className:
|
|
501
|
+
className: x(xe, C.description)
|
|
502
502
|
}, rt), /* @__PURE__ */ u.createElement(f.Suggestion, {
|
|
503
|
-
className:
|
|
503
|
+
className: x(je, ot.suggestion)
|
|
504
504
|
}));
|
|
505
505
|
export {
|
|
506
506
|
ht as E
|
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
import e, { useState as q, useMemo as v, useCallback as V, useRef as
|
|
1
|
+
import e, { useState as q, useMemo as v, useCallback as V, useRef as x } from "react";
|
|
2
2
|
import T from "classnames";
|
|
3
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-BpHElSwH.js";
|
|
5
5
|
import { f as b, a as L } from "./find-child-C60k4CxG.js";
|
|
6
|
-
import { L as ee } from "./field-label-headless-
|
|
7
|
-
import { a as te,
|
|
8
|
-
import { u as
|
|
9
|
-
import { C as
|
|
6
|
+
import { L as ee } from "./field-label-headless-CS5OYsiI.js";
|
|
7
|
+
import { a as te, C as se } from "./checkbox-indicator-module-classes-BcScu147.js";
|
|
8
|
+
import { u as ne } from "./use-invoke-callback-UH73A_J3.js";
|
|
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 {
|
|
11
|
+
import { z as oe, y as re, q as ae, s as le, r as ce } from "./form-element-classes-BXNs5k3q.js";
|
|
12
|
+
import { u as ue } from "./use-element-state-class-name-CC65g9mT.js";
|
|
12
13
|
const me = [], ie = ({ id: t, fields: n, layout: l, value: r, onChange: s, errors: m = me, validation: c }) => {
|
|
13
14
|
const [i, E] = q((r == null ? void 0 : r.length) || 0), a = v(() => r ?? [], [
|
|
14
15
|
r
|
|
@@ -96,7 +97,7 @@ const me = [], ie = ({ id: t, fields: n, layout: l, value: r, onChange: s, error
|
|
|
96
97
|
}, Ee = ({ className: t }) => /* @__PURE__ */ e.createElement(ee, {
|
|
97
98
|
className: t
|
|
98
99
|
}, null), R = ({ children: t, className: n, groupClassName: l, ...r }) => {
|
|
99
|
-
const { guestLimit: s, guestCount: m, onGuestCountChange: c } = r, { id: i, label: E, disabled: a, readOnly: C, onBlur: f, onFocus: d } = D(), { inputId: u, ariaDescribedBy: F } = X(), _ =
|
|
100
|
+
const { guestLimit: s, guestCount: m, onGuestCountChange: c } = r, { id: i, label: E, disabled: a, readOnly: C, onBlur: f, onFocus: d } = D(), { inputId: u, ariaDescribedBy: F } = X(), _ = ne(f), G = x(null);
|
|
100
101
|
j(() => {
|
|
101
102
|
var p;
|
|
102
103
|
(p = G.current) == null || p.focus();
|
|
@@ -128,7 +129,7 @@ const me = [], ie = ({ id: t, fields: n, layout: l, value: r, onChange: s, error
|
|
|
128
129
|
slot: "increment",
|
|
129
130
|
className: n
|
|
130
131
|
}, t), S = ({ children: t, className: n, ...l }) => {
|
|
131
|
-
const { guestCount: r, onGuestCountChange: s } = l, { id: m, label: c, disabled: i, readOnly: E, onBlur: a, onFocus: C } = D(), { inputId: f, ariaDescribedBy: d } = X(), u =
|
|
132
|
+
const { guestCount: r, onGuestCountChange: s } = l, { id: m, label: c, disabled: i, readOnly: E, onBlur: a, onFocus: C } = D(), { inputId: f, ariaDescribedBy: d } = X(), u = x(null);
|
|
132
133
|
j(() => {
|
|
133
134
|
var g;
|
|
134
135
|
(g = u.current) == null || g.focus();
|
|
@@ -220,35 +221,35 @@ const Ge = "_container_11veo_1", be = "_countGroup_11veo_8", _e = "_increment_11
|
|
|
220
221
|
increment: _e,
|
|
221
222
|
decrement: Ie
|
|
222
223
|
}, Ne = () => {
|
|
223
|
-
const t =
|
|
224
|
-
globalClasses:
|
|
225
|
-
moduleClasses:
|
|
224
|
+
const t = ue({
|
|
225
|
+
globalClasses: ce,
|
|
226
|
+
moduleClasses: se
|
|
226
227
|
});
|
|
227
228
|
return /* @__PURE__ */ e.createElement(o, {
|
|
228
229
|
className: O.container
|
|
229
230
|
}, /* @__PURE__ */ e.createElement(o.Label, {
|
|
230
|
-
className: T(
|
|
231
|
+
className: T(oe, B.label)
|
|
231
232
|
}), /* @__PURE__ */ e.createElement(o.GuestCount, {
|
|
232
233
|
className: B.innerInput,
|
|
233
|
-
groupClassName: T(
|
|
234
|
+
groupClassName: T(re, B.input, O.countGroup)
|
|
234
235
|
}, /* @__PURE__ */ e.createElement(o.GuestCount.Increment, {
|
|
235
236
|
className: O.increment
|
|
236
|
-
}, /* @__PURE__ */ e.createElement(
|
|
237
|
+
}, /* @__PURE__ */ e.createElement(M, {
|
|
237
238
|
style: {
|
|
238
239
|
transform: "rotate(180deg)"
|
|
239
240
|
}
|
|
240
241
|
})), /* @__PURE__ */ e.createElement(o.GuestCount.Decrement, {
|
|
241
242
|
className: O.decrement
|
|
242
|
-
}, /* @__PURE__ */ e.createElement(
|
|
243
|
-
className: T(
|
|
243
|
+
}, /* @__PURE__ */ e.createElement(M, null))), /* @__PURE__ */ e.createElement(o.GuestToggle, {
|
|
244
|
+
className: T(ae, B.checkbox)
|
|
244
245
|
}, /* @__PURE__ */ e.createElement(o.GuestToggle.Input, {
|
|
245
246
|
className: t
|
|
246
247
|
}), /* @__PURE__ */ e.createElement(o.GuestToggle.Label, {
|
|
247
|
-
className:
|
|
248
|
+
className: le
|
|
248
249
|
})), /* @__PURE__ */ e.createElement(o.Guests, {
|
|
249
250
|
className: O.container
|
|
250
251
|
}, /* @__PURE__ */ e.createElement(o.Guests.Guest, null)));
|
|
251
|
-
},
|
|
252
|
+
}, ke = () => /* @__PURE__ */ e.createElement(Ne, null);
|
|
252
253
|
export {
|
|
253
|
-
|
|
254
|
+
ke as EventsRepeaterRAC
|
|
254
255
|
};
|
|
@@ -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-emin6sSc.js";
|
|
5
5
|
import { E as m } from "./error-icon-hZxQ6DEy.js";
|
|
6
6
|
import { s } from "./field-rac.module-DjmaTYkc.js";
|
|
7
|
-
import {
|
|
7
|
+
import { z as i, Q as E, R as p, T as R, S as _, p as L, i as O } from "./form-element-classes-BXNs5k3q.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-uQOcm2Ak.js → field-error-headless-C5ZsFUKv.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-BpHElSwH.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-Bzh7f2Ji.js → field-label-headless-CS5OYsiI.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-BpHElSwH.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 H, useRef as V, useMemo as oe, useEffect as se, useCallback as
|
|
1
|
+
import t, { useState as H, useRef as V, useMemo as oe, useEffect as se, useCallback as z, 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-BpHElSwH.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 {
|
|
8
|
-
import { f as h, a as
|
|
9
|
-
import { b as
|
|
10
|
-
import { L as Be } from "./field-label-headless-
|
|
7
|
+
import { z as ne, Q as De, a4 as Ne, i as ae, p as le } from "./form-element-classes-BXNs5k3q.js";
|
|
8
|
+
import { f as h, a as P } from "./find-child-C60k4CxG.js";
|
|
9
|
+
import { b as ve, a as ye, D as _e, E as Te } from "./field-error-headless-C5ZsFUKv.js";
|
|
10
|
+
import { L as Be } from "./field-label-headless-CS5OYsiI.js";
|
|
11
11
|
import { DropZone as Re, Text as Se, FileTrigger as Me, Button as de, ProgressBar as Ie } from "react-aria-components";
|
|
12
12
|
const we = {
|
|
13
13
|
Video: "video/*",
|
|
@@ -26,7 +26,7 @@ const we = {
|
|
|
26
26
|
formId: n,
|
|
27
27
|
uploadTarget: e
|
|
28
28
|
}).then((s) => {
|
|
29
|
-
const { id: b, displayName: m, url: c, isPrivate: N } = s,
|
|
29
|
+
const { id: b, displayName: m, url: c, isPrivate: N } = s, v = {
|
|
30
30
|
fileId: b,
|
|
31
31
|
displayName: m || a.name,
|
|
32
32
|
url: N ? void 0 : c,
|
|
@@ -34,8 +34,8 @@ const we = {
|
|
|
34
34
|
};
|
|
35
35
|
return i({
|
|
36
36
|
file: a,
|
|
37
|
-
uploadedFile:
|
|
38
|
-
}),
|
|
37
|
+
uploadedFile: v
|
|
38
|
+
}), v;
|
|
39
39
|
}).catch((s) => {
|
|
40
40
|
d(s, a);
|
|
41
41
|
}));
|
|
@@ -43,19 +43,19 @@ 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] = H(ke(r)), [b, m] = H(r || []), [c, N] = H(),
|
|
46
|
+
const [a, s] = H(ke(r)), [b, m] = H(r || []), [c, N] = H(), 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
|
|
50
50
|
]);
|
|
51
51
|
se(() => {
|
|
52
|
-
S.current !== C && (S.current = C,
|
|
52
|
+
S.current !== C && (S.current = C, y(o, C ? re.BUSY : re.READY));
|
|
53
53
|
}, [
|
|
54
54
|
C,
|
|
55
|
-
|
|
55
|
+
y,
|
|
56
56
|
o
|
|
57
57
|
]);
|
|
58
|
-
const U =
|
|
58
|
+
const U = z(() => {
|
|
59
59
|
if (!a.length)
|
|
60
60
|
return n;
|
|
61
61
|
const F = a.filter((u) => u.state === "uploading").length;
|
|
@@ -72,8 +72,8 @@ function Ze({ valueSliderLimit: e, value: r, explanationText: n, target: o, onCh
|
|
|
72
72
|
a,
|
|
73
73
|
n,
|
|
74
74
|
E
|
|
75
|
-
]), M =
|
|
76
|
-
await
|
|
75
|
+
]), M = z(async (F) => {
|
|
76
|
+
await v(F, ({ file: u, uploadedFile: g }) => {
|
|
77
77
|
s((p) => p.map((f) => f.file === u ? {
|
|
78
78
|
file: u,
|
|
79
79
|
state: "uploaded"
|
|
@@ -92,7 +92,7 @@ function Ze({ valueSliderLimit: e, value: r, explanationText: n, target: o, onCh
|
|
|
92
92
|
} : f));
|
|
93
93
|
});
|
|
94
94
|
}, [
|
|
95
|
-
|
|
95
|
+
v,
|
|
96
96
|
E
|
|
97
97
|
]), O = async (F) => {
|
|
98
98
|
if (c && N(void 0), F) {
|
|
@@ -124,7 +124,7 @@ 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(), Q =
|
|
127
|
+
}, K = d.map((F) => we[F]).join(), Q = z(() => {
|
|
128
128
|
s([]), m([]);
|
|
129
129
|
}, []);
|
|
130
130
|
return be(Q), {
|
|
@@ -198,10 +198,10 @@ const A = ({ children: e, className: r }) => {
|
|
|
198
198
|
limitReached: n
|
|
199
199
|
}));
|
|
200
200
|
}, J = ({ className: e, children: r, "aria-roledescription": n }) => {
|
|
201
|
-
const { ariaDescribedBy: o, inputId: i, labelId: d, errorId: x } = ce(), { disabled: D, required: a, onFocus: s, hasError: b, errorMessage: m } = q(), { handleFileChange: c, accept: N, multiple:
|
|
201
|
+
const { ariaDescribedBy: o, inputId: i, labelId: d, errorId: x } = ce(), { disabled: D, required: a, onFocus: s, hasError: b, errorMessage: m } = q(), { handleFileChange: c, accept: N, multiple: v, buttonRef: E, handleBlur: R, limitError: k, files: y } = Z(), S = (y == null ? void 0 : y.some((C) => C.errorMessage)) ?? !1, _ = !!(b || m || k || S);
|
|
202
202
|
return /* @__PURE__ */ t.createElement(Me, {
|
|
203
203
|
acceptedFileTypes: N ? N.split(",") : void 0,
|
|
204
|
-
allowsMultiple:
|
|
204
|
+
allowsMultiple: v,
|
|
205
205
|
onSelect: (C) => {
|
|
206
206
|
if (C) {
|
|
207
207
|
const U = Array.from(C), M = new DataTransfer();
|
|
@@ -227,13 +227,13 @@ const A = ({ children: e, className: r }) => {
|
|
|
227
227
|
onFocus: s,
|
|
228
228
|
onBlur: R
|
|
229
229
|
}, r));
|
|
230
|
-
},
|
|
230
|
+
}, ze = ({ 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 = ze;
|
|
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
|
+
}, P(x, {
|
|
245
245
|
fileName: d
|
|
246
|
-
}), o.state === "uploading" ? a :
|
|
246
|
+
}), o.state === "uploading" ? a : P(D, {
|
|
247
247
|
index: i,
|
|
248
248
|
fileName: d
|
|
249
|
-
}), o.errorMessage &&
|
|
249
|
+
}), o.errorMessage && P(s, {
|
|
250
250
|
errorMessage: o.errorMessage
|
|
251
251
|
}));
|
|
252
|
-
},
|
|
252
|
+
}, Pe = ({ className: e, ...r }) => {
|
|
253
253
|
const { fileName: n } = r;
|
|
254
254
|
return /* @__PURE__ */ t.createElement("span", {
|
|
255
255
|
className: e
|
|
@@ -279,7 +279,7 @@ const T = ({ children: e, className: r, ...n }) => {
|
|
|
279
279
|
}, n);
|
|
280
280
|
}, ue = ({ className: e, children: r, ...n }) => {
|
|
281
281
|
const { errorMessage: o } = n;
|
|
282
|
-
return o ? /* @__PURE__ */ t.createElement(
|
|
282
|
+
return o ? /* @__PURE__ */ t.createElement(ye, {
|
|
283
283
|
value: o
|
|
284
284
|
}, /* @__PURE__ */ t.createElement("div", {
|
|
285
285
|
className: e,
|
|
@@ -290,16 +290,16 @@ const T = ({ children: e, className: r, ...n }) => {
|
|
|
290
290
|
className: e,
|
|
291
291
|
isIndeterminate: !0
|
|
292
292
|
}, n);
|
|
293
|
-
T.Name =
|
|
293
|
+
T.Name = Pe;
|
|
294
294
|
T.Remove = Ve;
|
|
295
295
|
T.Spinner = qe;
|
|
296
296
|
T.Error = ue;
|
|
297
|
-
ue.Text =
|
|
297
|
+
ue.Text = ve;
|
|
298
298
|
const X = ({ children: e, className: r }) => {
|
|
299
299
|
const { files: n } = Z(), o = h(e, X.File);
|
|
300
300
|
return !n || n.length === 0 ? null : /* @__PURE__ */ t.createElement("div", {
|
|
301
301
|
className: r
|
|
302
|
-
}, n.map((i, d) =>
|
|
302
|
+
}, n.map((i, d) => P(o, {
|
|
303
303
|
key: i.file.name || d,
|
|
304
304
|
file: i,
|
|
305
305
|
index: d
|
|
@@ -307,10 +307,10 @@ const X = ({ children: e, className: r }) => {
|
|
|
307
307
|
};
|
|
308
308
|
X.File = T;
|
|
309
309
|
const G = (e) => e.file.name, l = ({ children: e }) => {
|
|
310
|
-
const { id: r, value: n, onChange: o, uploadFileFormats: i, valueSliderLimit: d, target: x, explanationText: D, onBlur: a, hasError: s, errorMessage: b, FieldLayout: m } = q(), c = V(null), N = V({}),
|
|
310
|
+
const { id: r, value: n, onChange: o, uploadFileFormats: i, valueSliderLimit: d, target: x, explanationText: D, onBlur: a, hasError: s, errorMessage: b, FieldLayout: m } = q(), c = V(null), N = V({}), v = z(() => {
|
|
311
311
|
var L;
|
|
312
312
|
(L = c.current) == null || L.focus();
|
|
313
|
-
}, []), { files: E, limitError: R, hover: k, getExplanationText:
|
|
313
|
+
}, []), { files: E, limitError: R, hover: k, getExplanationText: y, handleBlur: S, handleChange: _, handleDelete: C, accept: U } = Ze({
|
|
314
314
|
valueSliderLimit: d,
|
|
315
315
|
value: n,
|
|
316
316
|
explanationText: D,
|
|
@@ -318,8 +318,8 @@ const G = (e) => e.file.name, l = ({ children: e }) => {
|
|
|
318
318
|
onChange: o,
|
|
319
319
|
uploadFileFormats: i,
|
|
320
320
|
onBlur: a,
|
|
321
|
-
onFilesCleared:
|
|
322
|
-
}), M =
|
|
321
|
+
onFilesCleared: v
|
|
322
|
+
}), M = z((L) => {
|
|
323
323
|
var te;
|
|
324
324
|
const ee = E[L], W = G(ee);
|
|
325
325
|
E.length > 1 && ((te = (E.filter((Y) => G(Y) !== W).map((Y) => N.current[G(Y)]).find(Boolean) ?? c).current) == null || te.focus()), C(L);
|
|
@@ -334,7 +334,7 @@ const G = (e) => e.file.name, l = ({ children: e }) => {
|
|
|
334
334
|
accept: U,
|
|
335
335
|
limitReached: j,
|
|
336
336
|
multiple: O,
|
|
337
|
-
getExplanationText:
|
|
337
|
+
getExplanationText: y,
|
|
338
338
|
hover: k,
|
|
339
339
|
limitError: R,
|
|
340
340
|
buttonRef: c,
|
|
@@ -347,7 +347,7 @@ const G = (e) => e.file.name, l = ({ children: e }) => {
|
|
|
347
347
|
U,
|
|
348
348
|
j,
|
|
349
349
|
O,
|
|
350
|
-
|
|
350
|
+
y,
|
|
351
351
|
k,
|
|
352
352
|
R
|
|
353
353
|
]), K = h(e, l.Label), Q = 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);
|
|
@@ -360,7 +360,7 @@ const G = (e) => e.file.name, l = ({ children: e }) => {
|
|
|
360
360
|
fieldId: r,
|
|
361
361
|
renderLabel: () => K,
|
|
362
362
|
renderInput: () => Q ?? F,
|
|
363
|
-
renderDescription: () => /* @__PURE__ */ t.createElement(t.Fragment, null,
|
|
363
|
+
renderDescription: () => /* @__PURE__ */ t.createElement(t.Fragment, null, P(f, {
|
|
364
364
|
hasError: !!(s || R),
|
|
365
365
|
errorMessage: R ?? b
|
|
366
366
|
}), p, u, g)
|
|
@@ -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-BpHElSwH.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-C5ZsFUKv.js";
|
|
8
|
+
import { L as R } from "./field-label-headless-CS5OYsiI.js";
|
|
9
9
|
import { s as L } from "./field-rac.module-DjmaTYkc.js";
|
|
10
|
-
import {
|
|
10
|
+
import { z as v, A as M, i as g } from "./form-element-classes-BXNs5k3q.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(() => {
|
|
@@ -50,13 +50,13 @@ const V = "_value_19v7w_1", w = {
|
|
|
50
50
|
}, k = ({ content: r, locale: n }) => /* @__PURE__ */ t.createElement(_, {
|
|
51
51
|
content: r,
|
|
52
52
|
locale: n
|
|
53
|
-
}),
|
|
53
|
+
}), z = () => /* @__PURE__ */ t.createElement(e, null, /* @__PURE__ */ t.createElement(e.Label, {
|
|
54
54
|
className: u(v, L.label)
|
|
55
55
|
}), /* @__PURE__ */ t.createElement(e.Amount, {
|
|
56
56
|
className: u(M, w.value)
|
|
57
57
|
}), /* @__PURE__ */ t.createElement(e.Description, {
|
|
58
58
|
className: u(g, L.description)
|
|
59
|
-
}, k)), X = () => /* @__PURE__ */ t.createElement(
|
|
59
|
+
}, k)), X = () => /* @__PURE__ */ t.createElement(z, null);
|
|
60
60
|
export {
|
|
61
61
|
X as FixedPaymentRAC
|
|
62
62
|
};
|