@wix/form-elements 1.62.0 → 1.64.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-Dqib2upI.js → appointment-rac-DojiZqx9.js} +35 -35
- package/dist/component/{bookings-address-rac-E-qq4-KG.js → bookings-address-rac-Bm_lQchD.js} +1 -1
- package/dist/component/{bookings-email-rac-DA_Hwn2j.js → bookings-email-rac-vwuy0kW8.js} +1 -1
- package/dist/component/{bookings-first-name-rac-o1n3lnRo.js → bookings-first-name-rac-BbWuLoeg.js} +1 -1
- package/dist/component/{bookings-header-rac-DQ0YvhxZ.js → bookings-header-rac-DVknNH29.js} +1 -1
- package/dist/component/{bookings-last-name-rac-BqL_84Sg.js → bookings-last-name-rac-BnT3Cq0b.js} +1 -1
- package/dist/component/{bookings-login-bar-rac-CAN7roRc.js → bookings-login-bar-rac-DKi-VAXc.js} +16 -16
- package/dist/component/{bookings-phone-rac-CCJVdvkd.js → bookings-phone-rac-Bfy8rheB.js} +1 -1
- package/dist/component/{bookings-rich-text-rac-CCklquEC.js → bookings-rich-text-rac-DGiBDcXw.js} +1 -1
- package/dist/component/checkbox-field-rac-CYADRY54.js +1312 -0
- package/dist/component/checkbox-group-field-headless-BDAFpX5F.js +210 -0
- package/dist/component/checkbox-group-field-rac-2YUsOmDI.js +40 -0
- package/dist/component/{checkbox-group-rac-DWPClKpf.js → checkbox-group-rac-CQf1C9H5.js} +1 -1
- package/dist/component/{checkbox-rac-CvbOws2U.js → checkbox-rac-Bjv8jZjs.js} +1 -1
- package/dist/component/{contacts-address-rac-CWFHC5LT.js → contacts-address-rac-BBTiEec9.js} +1 -1
- package/dist/component/{contacts-birthdate-rac-DPmJPp8M.js → contacts-birthdate-rac-XReeFHVW.js} +1 -1
- package/dist/component/{contacts-company-rac-UWP9uDqI.js → contacts-company-rac-B-fUQszu.js} +1 -1
- package/dist/component/{contacts-email-rac-BCkkWYhr.js → contacts-email-rac-DBtcCcsV.js} +1 -1
- package/dist/component/{contacts-first-name-rac-KNRf92yT.js → contacts-first-name-rac-mkwU3706.js} +1 -1
- package/dist/component/{contacts-last-name-rac-C_EotEpo.js → contacts-last-name-rac-DY5N-AZx.js} +1 -1
- package/dist/component/{contacts-phone-rac-DJGEWLsl.js → contacts-phone-rac-Ce1rMz_z.js} +1 -1
- package/dist/component/{contacts-position-rac-s1pZ662O.js → contacts-position-rac-B65H8PDu.js} +1 -1
- package/dist/component/contacts-subscribe-rac-BxO8rIyL.js +13 -0
- package/dist/component/{contacts-tax-id-rac-3MUvKEqW.js → contacts-tax-id-rac-Jtt0ySK2.js} +1 -1
- package/dist/component/{date-availability-CRsSX5_d.js → date-availability-B8UwvTJa.js} +1 -1
- package/dist/component/{date-input-field-rac-DPo7waqI.js → date-input-field-rac-RL2a0xoD.js} +23 -23
- package/dist/component/{date-input-rac-DsY8ehb1.js → date-input-rac-ak3G7V07.js} +1 -1
- package/dist/component/{date-picker-field-rac-BtzlxVDB.js → date-picker-field-rac-SL_Roltf.js} +31 -31
- package/dist/component/{date-picker-rac-C-Aw6W87.js → date-picker-rac-ByrM0YIX.js} +1 -1
- package/dist/component/{date-time-input-field-rac-zre1vJ2m.js → date-time-input-field-rac-DOE7xcKi.js} +87 -87
- package/dist/component/{date-time-input-rac-CUvTUzbT.js → date-time-input-rac-BA-GyrAc.js} +1 -1
- package/dist/component/{dext-checkbox-group-rac-D4mhJU8E.js → dext-checkbox-group-rac-EwUnBO80.js} +2 -2
- package/dist/component/{dext-checkbox-rac-BeYmKpAZ.js → dext-checkbox-rac-CIRKi4B5.js} +1 -1
- package/dist/component/{dext-date-picker-rac-Mr0M3sNQ.js → dext-date-picker-rac-BYO_Q1zM.js} +1 -1
- package/dist/component/{dext-date-time-input-rac-dgxfrHUw.js → dext-date-time-input-rac-BOahPeaH.js} +1 -1
- package/dist/component/{dext-dropdown-rac-CdZOoA5M.js → dext-dropdown-rac-sTD_r-0H.js} +1 -1
- package/dist/component/{dext-email-rac-TBiHlKjv.js → dext-email-rac-e-2_h3he.js} +1 -1
- package/dist/component/{dext-number-input-rac-S78swyZ9.js → dext-number-input-rac-D6LACzWl.js} +1 -1
- package/dist/component/{dext-phone-rac-BhIaSHez.js → dext-phone-rac-kUycy5Od.js} +1 -1
- package/dist/component/{dext-radio-group-rac-B4xG4N8A.js → dext-radio-group-rac-DPD2UkrV.js} +2 -2
- package/dist/component/{dext-rating-input-rac-Bp2Pi5cP.js → dext-rating-input-rac-DUsnrl9W.js} +1 -1
- package/dist/component/{dext-tags-rac-Bnjgmyk-.js → dext-tags-rac-D6z69HuO.js} +2 -2
- package/dist/component/{dext-text-area-rac-f1nJTM_n.js → dext-text-area-rac-C-DVtFJ1.js} +1 -1
- package/dist/component/{dext-text-input-rac-B9m6oI-e.js → dext-text-input-rac-CIa2MdC6.js} +1 -1
- package/dist/component/{dext-url-input-rac-CfEUdRdY.js → dext-url-input-rac-8rVVW5us.js} +1 -1
- package/dist/component/{donation-rac-BqKbQD_H.js → donation-rac-BjmSBabc.js} +62 -62
- package/dist/component/{dropdown-field-headless-CzoD076g.js → dropdown-field-headless-DReo519l.js} +5 -5
- package/dist/component/{dropdown-field-rac-5kD98Ubc.js → dropdown-field-rac-DzrjA2O6.js} +7 -7
- package/dist/component/{dropdown-rac-C9NpsRYi.js → dropdown-rac-CS7oLTp_.js} +1 -1
- package/dist/component/{ecom-address-rac-DdvJEnAO.js → ecom-address-rac-EIb88J_6.js} +1 -1
- package/dist/component/{ecom-subscription-checkbox-rac-D7Lf1ETL.js → ecom-subscription-checkbox-rac-CE0Ks6qS.js} +5 -5
- package/dist/component/{email-input-field-rac-DUordV5X.js → email-input-field-rac-BScZxYHw.js} +47 -47
- package/dist/component/{events-repeater-rac-B1yDrnvJ.js → events-repeater-rac-Y0rH2Jli.js} +66 -66
- package/dist/component/{events-rsvp-rac-B65NtAMH.js → events-rsvp-rac-BiAYVv_b.js} +12 -12
- package/dist/component/{field-error-headless-DP4WSQU3.js → field-error-headless-DrnFrGun.js} +4 -4
- package/dist/component/{field-label-headless-BKmi7Fjg.js → field-label-headless-BIYf1BIh.js} +7 -7
- package/dist/component/field-rac.module-CWkwwhq4.js +21 -0
- package/dist/component/{file-upload-rac-DAg_G0_l.js → file-upload-rac-br--tZLp.js} +83 -83
- package/dist/component/{fixed-payment-rac-yO1w1gE2.js → fixed-payment-rac-XEtrsaMy.js} +15 -15
- package/dist/component/{form-D6A2hUbV.js → form-9yjqDnxY.js} +2719 -2709
- package/dist/component/form-element-classes-KRzHUNLu.js +57 -0
- package/dist/component/form.css +1 -1
- package/dist/component/form.js +1 -1
- package/dist/component/{header-field-rac-D3Bi6tTS.js → header-field-rac-CLELgzqY.js} +5 -5
- package/dist/component/{header-rac-Blv89pdS.js → header-rac-D8KGkVVp.js} +1 -1
- package/dist/component/{image-choice-rac-BLUZRNm0.js → image-choice-rac-Cl09CLP4.js} +30 -30
- package/dist/component/{index-BiYk1mJi.js → index-C4y71e1i.js} +2 -2
- package/dist/component/{index-Cv3_acT1.js → index-PHkE0Ru4.js} +4 -4
- package/dist/component/isObjectLike-srCDplej.js +86 -0
- package/dist/component/multiline-address-field-rac-CsBLI9y-.js +1613 -0
- package/dist/component/{multiline-address-rac-B9yHNebZ.js → multiline-address-rac-DFDPFfXh.js} +1 -1
- package/dist/component/{number-input-field-rac-SaC7jFUi.js → number-input-field-rac-DZRR7gdt.js} +19 -19
- package/dist/component/{number-input-rac-KYcJJPrs.js → number-input-rac-BCS5lkff.js} +1 -1
- package/dist/component/{password-rac-CD5bSL2g.js → password-rac-ClDGgR3E.js} +27 -27
- package/dist/component/{payment-input-rac-BlAscmFz.js → payment-input-rac-COydWmUE.js} +34 -34
- package/dist/component/{phone-input-field-rac-D-AosrgV.js → phone-input-field-rac-DYCibqe1.js} +54 -54
- package/dist/component/{phone-rac-DXLYlz5G.js → phone-rac-BS-dmWkJ.js} +1 -1
- package/dist/component/{product-list-rac-CGt4Gnj4.js → product-list-rac-hxOhaA-r.js} +84 -84
- package/dist/component/quiz-radio-group-rac-BT-YZO2Q.js +13 -0
- package/dist/component/{radio-group-field-rac-D8NS7qDq.js → radio-group-field-rac-DKqWnMBJ.js} +3 -3
- package/dist/component/{radio-group-field-rac.module-wK26tCZq.js → radio-group-field-rac.module-BwUynK_5.js} +9 -9
- package/dist/component/{radio-group-rac-HalDjwk1.js → radio-group-rac-DHURQZKK.js} +1 -1
- package/dist/component/{rating-input-field-rac-BBhMkSyL.js → rating-input-field-rac-CZRdSVrf.js} +37 -37
- package/dist/component/{rating-input-rac-BpgFnNoD.js → rating-input-rac-BaH52DYm.js} +1 -1
- package/dist/component/{rich-content-rac.module-BgJ2fteu.js → rich-content-rac.module-ILBfxEmN.js} +4 -4
- package/dist/component/{rich-text-field-rac-BZfCgvHc.js → rich-text-field-rac-B58q8Is7.js} +7 -7
- package/dist/component/{rich-text-rac-CG3V04Gr.js → rich-text-rac-DGbZh1eX.js} +1 -1
- package/dist/component/{service-dropdown-rac-Bc_y-R5O.js → service-dropdown-rac-DUiNIbdv.js} +42 -42
- package/dist/component/{services-multi-choice-rac-BeBdZpRV.js → services-multi-choice-rac-B7y9s2l8.js} +29 -29
- package/dist/component/{signature-rac-DNdpHxFp.js → signature-rac-CydpvQJZ.js} +37 -37
- package/dist/component/{submit-button-rac-Bogk1xYc.js → submit-button-rac-OO53h4H8.js} +8 -8
- package/dist/component/{tags-field-rac-COJG3T_9.js → tags-field-rac-eX3d3JEH.js} +50 -50
- package/dist/component/{tags-rac-DsaUqJ4w.js → tags-rac-CdIB_48Z.js} +1 -1
- package/dist/component/{text-area-field-rac-BVq5p83p.js → text-area-field-rac-Bir5Q7gz.js} +22 -22
- package/dist/component/{text-area-rac-D-uiOy62.js → text-area-rac-Ct1UNU04.js} +1 -1
- package/dist/component/{text-input-field-rac-wYvY_eBR.js → text-input-field-rac-onGUXC9J.js} +6 -6
- package/dist/component/{text-input-headless-BsL6OYhp.js → text-input-headless-Bs9m7QFg.js} +10 -10
- package/dist/component/{text-input-rac-Bu8kXhrN.js → text-input-rac-DK4nEw4D.js} +1 -1
- package/dist/component/{time-input-rac-PWXUi1qL.js → time-input-rac-BCG9ktFa.js} +40 -40
- package/dist/component/{url-input-field-rac-B4qgrssx.js → url-input-field-rac-mUkrVTcL.js} +25 -25
- package/dist/component/{url-input-rac-Bo51kTsG.js → url-input-rac-Cl7LFYlr.js} +1 -1
- package/dist/component/{use-service-options-base-Du6B6AP9.js → use-service-options-base-BYVuKRj2.js} +8 -8
- package/dist/form.d.ts +3 -1
- package/package.json +2 -14
- package/dist/component/checkbox-field-rac-DhAEMdL9.js +0 -625
- package/dist/component/checkbox-group-field-headless-EGVW3vG0.js +0 -204
- package/dist/component/checkbox-group-field-rac-DUDWNOwV.js +0 -33
- package/dist/component/contacts-subscribe-rac-D_2wIX9p.js +0 -13
- package/dist/component/field-rac.module-DtugsLiL.js +0 -21
- package/dist/component/form-element-classes-Bi-nNM8q.js +0 -55
- package/dist/component/isObject-BAwJJxQ3.js +0 -34
- package/dist/component/multiline-address-field-rac-_Sb56AEM.js +0 -1574
- package/dist/component/quiz-radio-group-rac-DaStzNZZ.js +0 -13
package/dist/component/{email-input-field-rac-DUordV5X.js → email-input-field-rac-BScZxYHw.js}
RENAMED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { RicosViewer as ie } from "@wix/ricos/viewer";
|
|
2
|
-
import
|
|
2
|
+
import j from "classnames";
|
|
3
3
|
import u, { createContext as z, useContext as Z, createElement as H, isValidElement as U, cloneElement as R, useState as le, useCallback as me, useEffect as ue } from "react";
|
|
4
4
|
import { TextField as pe } from "react-aria-components";
|
|
5
|
-
import {
|
|
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-9yjqDnxY.js";
|
|
6
6
|
import { f as L } from "./find-child-C60k4CxG.js";
|
|
7
7
|
import ee from "@babel/runtime/helpers/objectWithoutProperties";
|
|
8
8
|
import M from "@babel/runtime/helpers/typeof";
|
|
@@ -10,10 +10,10 @@ 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-Bs9m7QFg.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-CWkwwhq4.js";
|
|
16
|
+
import { t as Fe, J as Te, s as ke, n as De, j as je, T as xe } from "./form-element-classes-KRzHUNLu.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
|
"&": "&",
|
|
@@ -81,13 +81,13 @@ 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 X = {};
|
|
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" && X[t[0]] || (typeof t[0] == "string" && (X[t[0]] = /* @__PURE__ */ new Date()), K.apply(void 0, t));
|
|
89
89
|
}
|
|
90
|
-
var Be = ["format"],
|
|
90
|
+
var Be = ["format"], Ve = ["children", "count", "parent", "i18nKey", "context", "tOptions", "values", "defaults", "components", "ns", "i18n", "t", "shouldUnescape"];
|
|
91
91
|
function Q(e, t) {
|
|
92
92
|
var a = Object.keys(e);
|
|
93
93
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -117,7 +117,7 @@ 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 qe(e) {
|
|
121
121
|
return Object.prototype.toString.call(e) !== "[object Array]" ? !1 : e.every(function(t) {
|
|
122
122
|
return U(t);
|
|
123
123
|
});
|
|
@@ -146,8 +146,8 @@ 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 k = te(b, t);
|
|
150
|
+
a += "<".concat(g, ">").concat(k, "</").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.");
|
|
@@ -174,10 +174,10 @@ function Ge(e, t, a, o, c, r) {
|
|
|
174
174
|
});
|
|
175
175
|
}
|
|
176
176
|
b(e);
|
|
177
|
-
var
|
|
177
|
+
var k = 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 qe(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), {}, {
|
|
@@ -187,17 +187,17 @@ function Ge(e, t, a, o, c, r) {
|
|
|
187
187
|
function S(y, h, s) {
|
|
188
188
|
var i = P(y), I = P(h);
|
|
189
189
|
return I.reduce(function(l, n, E) {
|
|
190
|
-
var
|
|
190
|
+
var T = 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), 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
|
-
var
|
|
199
|
-
l.push(
|
|
200
|
-
} else if (Y(m) ||
|
|
198
|
+
var q = a.services.interpolator.interpolate(m, O, a.language);
|
|
199
|
+
l.push(q);
|
|
200
|
+
} else if (Y(m) || V) {
|
|
201
201
|
var ne = F(m, n, s);
|
|
202
202
|
A(m, ne, l, E);
|
|
203
203
|
} else if (_) {
|
|
@@ -227,39 +227,39 @@ function Ge(e, t, a, o, c, r) {
|
|
|
227
227
|
l.push("<".concat(n.name, ">").concat(ce, "</").concat(n.name, ">"));
|
|
228
228
|
}
|
|
229
229
|
else if (M(m) === "object" && !D) {
|
|
230
|
-
var $ = n.children[0] ?
|
|
230
|
+
var $ = n.children[0] ? T : null;
|
|
231
231
|
$ && l.push($);
|
|
232
|
-
} else n.children.length === 1 &&
|
|
232
|
+
} else n.children.length === 1 && T ? l.push(R(m, p(p({}, m.props), {}, {
|
|
233
233
|
key: E
|
|
234
|
-
}),
|
|
234
|
+
}), T)) : 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, J = 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
|
+
}, J)) : l.push(J);
|
|
242
242
|
}
|
|
243
243
|
return l;
|
|
244
244
|
}, []);
|
|
245
245
|
}
|
|
246
|
-
var
|
|
246
|
+
var x = S([{
|
|
247
247
|
dummy: !0,
|
|
248
248
|
children: e || []
|
|
249
|
-
}],
|
|
250
|
-
return G(
|
|
249
|
+
}], k, P(e || []));
|
|
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, k = e.components, O = e.ns, F = e.i18n, A = e.t, S = e.shouldUnescape, x = ee(e, Ve), y = Z(Re) || {}, h = y.i18n, s = y.defaultNS, i = F || h || Ke();
|
|
254
254
|
if (!i)
|
|
255
255
|
return Ue("You will need to pass in an i18next instance by using i18nextReactModule"), t;
|
|
256
|
-
var I = A || i.t.bind(i) || function(
|
|
257
|
-
return
|
|
256
|
+
var I = A || i.t.bind(i) || function(q) {
|
|
257
|
+
return q;
|
|
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, T = l.hashTransKey, N = c || (T ? T(E) : E), m = d ? v.interpolation : {
|
|
263
263
|
interpolation: p(p({}, v.interpolation), {}, {
|
|
264
264
|
prefix: "#$?",
|
|
265
265
|
suffix: "?$#"
|
|
@@ -269,11 +269,11 @@ function $e(e) {
|
|
|
269
269
|
}, d), m), {}, {
|
|
270
270
|
defaultValue: E,
|
|
271
271
|
ns: n
|
|
272
|
-
}),
|
|
273
|
-
return w ? H(w,
|
|
272
|
+
}), V = N ? I(N, D) : E, _ = Ge(k || t, V, i, l, D, S), w = o !== void 0 ? o : l.defaultTransParent;
|
|
273
|
+
return w ? H(w, x, _) : _;
|
|
274
274
|
}
|
|
275
|
-
const We = "email-mistype-suggestion",
|
|
276
|
-
function
|
|
275
|
+
const We = "email-mistype-suggestion", Je = "email-mistype-suggestion-link", ae = /* @__PURE__ */ z(void 0);
|
|
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>");
|
|
@@ -285,7 +285,7 @@ const Qe = ({ activeSuggestion: e, applySuggestion: t, children: a }) => /* @__P
|
|
|
285
285
|
applySuggestion: t
|
|
286
286
|
}
|
|
287
287
|
}, a), ze = ({ className: e }) => {
|
|
288
|
-
const { suggestionId: t } = fe(), { activeSuggestion: a, applySuggestion: o } =
|
|
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,
|
|
@@ -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": Je,
|
|
306
306
|
"aria-label": c("input.email.mistype-check.fix-aria-label", {
|
|
307
307
|
email: a
|
|
308
308
|
}),
|
|
@@ -449,14 +449,14 @@ 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: k, 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, k, O, s), I = () => {
|
|
456
456
|
o(s), y(t);
|
|
457
457
|
}, l = () => {
|
|
458
|
-
|
|
459
|
-
}, n = L(e, f.Label), E = L(e, f.Input),
|
|
458
|
+
x(), d == null || d();
|
|
459
|
+
}, n = L(e, f.Label), E = L(e, f.Input), T = 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
462
|
}, /* @__PURE__ */ u.createElement(Qe, {
|
|
@@ -476,7 +476,7 @@ 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, T)
|
|
480
480
|
})));
|
|
481
481
|
};
|
|
482
482
|
f.Label = B.Label;
|
|
@@ -490,17 +490,17 @@ const nt = "_suggestion_di65n_1", ot = {
|
|
|
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: j(Fe, C.label)
|
|
494
494
|
}, /* @__PURE__ */ u.createElement(f.Label.Required, {
|
|
495
|
-
className:
|
|
495
|
+
className: j(Te, C.requiredMark)
|
|
496
496
|
})), /* @__PURE__ */ u.createElement(f.Input, {
|
|
497
|
-
className:
|
|
497
|
+
className: j(ke, C.input)
|
|
498
498
|
}), /* @__PURE__ */ u.createElement(f.Error, {
|
|
499
|
-
className:
|
|
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, {
|
|
501
|
-
className:
|
|
501
|
+
className: j(je, C.description)
|
|
502
502
|
}, rt), /* @__PURE__ */ u.createElement(f.Suggestion, {
|
|
503
|
-
className:
|
|
503
|
+
className: j(xe, ot.suggestion)
|
|
504
504
|
}));
|
|
505
505
|
export {
|
|
506
506
|
ht as E
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import t, { useState as q, useMemo as B, useCallback as V, useRef as M } from "react";
|
|
2
2
|
import v 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 {
|
|
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-9yjqDnxY.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-BIYf1BIh.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 {
|
|
11
|
-
const
|
|
9
|
+
import { s as L } from "./field-rac.module-CWkwwhq4.js";
|
|
10
|
+
import { t as se, s as ne, o as oe, p as re, q as ae } from "./form-element-classes-KRzHUNLu.js";
|
|
11
|
+
const le = [], ce = ({ id: e, fields: n, layout: l, value: r, onChange: s, errors: m = le, validation: c }) => {
|
|
12
12
|
const [i, E] = q((r == null ? void 0 : r.length) || 0), a = B(() => r ?? [], [
|
|
13
13
|
r
|
|
14
|
-
]), g = P(),
|
|
14
|
+
]), g = P(), f = U(), d = j(), { validateFields: u } = H(), C = c.predefined.objectArrayOptions.maxItems, _ = B(() => Y({
|
|
15
15
|
form: {
|
|
16
16
|
fields: n,
|
|
17
17
|
steps: [
|
|
18
18
|
{
|
|
19
|
-
layout:
|
|
19
|
+
layout: l
|
|
20
20
|
}
|
|
21
21
|
]
|
|
22
22
|
},
|
|
@@ -24,10 +24,10 @@ const ce = [], le = ({ id: e, fields: n, layout: c, value: r, onChange: s, error
|
|
|
24
24
|
recursive: !1
|
|
25
25
|
}), [
|
|
26
26
|
n,
|
|
27
|
-
|
|
27
|
+
l,
|
|
28
28
|
e
|
|
29
|
-
]),
|
|
30
|
-
const [
|
|
29
|
+
]), G = B(() => m.reduce((p, I) => {
|
|
30
|
+
const [h, N] = I.errorPath.split("/"), A = parseInt(h, 10);
|
|
31
31
|
return p[A] || (p[A] = []), p[A].push({
|
|
32
32
|
...I,
|
|
33
33
|
errorPath: N
|
|
@@ -35,21 +35,21 @@ const ce = [], le = ({ id: e, fields: n, layout: c, value: r, onChange: s, error
|
|
|
35
35
|
}, []), [
|
|
36
36
|
m
|
|
37
37
|
]), b = V((p) => {
|
|
38
|
-
const I = Number.isNaN(p) ? 0 : Math.min(Math.max(p, 0),
|
|
38
|
+
const I = Number.isNaN(p) ? 0 : Math.min(Math.max(p, 0), C);
|
|
39
39
|
E(I), s == null || s(Array.from({
|
|
40
40
|
length: I
|
|
41
|
-
}, (
|
|
41
|
+
}, (h, N) => a[N] ?? {}));
|
|
42
42
|
}, [
|
|
43
|
-
|
|
43
|
+
C,
|
|
44
44
|
a,
|
|
45
45
|
s
|
|
46
|
-
]), T = V((p) => (I,
|
|
46
|
+
]), T = V((p) => (I, h) => {
|
|
47
47
|
const N = Array.from({
|
|
48
48
|
length: i
|
|
49
49
|
}, (A, $) => a[$] ?? {});
|
|
50
50
|
N[p] = {
|
|
51
51
|
...N[p],
|
|
52
|
-
[I]:
|
|
52
|
+
[I]: h
|
|
53
53
|
}, s == null || s(N);
|
|
54
54
|
}, [
|
|
55
55
|
i,
|
|
@@ -57,55 +57,55 @@ const ce = [], le = ({ id: e, fields: n, layout: c, value: r, onChange: s, error
|
|
|
57
57
|
s
|
|
58
58
|
]);
|
|
59
59
|
return {
|
|
60
|
-
guestLimit:
|
|
60
|
+
guestLimit: C,
|
|
61
61
|
guestCount: i,
|
|
62
62
|
guests: a,
|
|
63
|
-
errorsByIndex:
|
|
63
|
+
errorsByIndex: G,
|
|
64
64
|
formView: _,
|
|
65
65
|
formSchema: g,
|
|
66
|
-
formFields:
|
|
66
|
+
formFields: f,
|
|
67
67
|
fieldActions: d,
|
|
68
68
|
validateFields: u,
|
|
69
69
|
changeGuestCount: b,
|
|
70
70
|
changeGuestField: T
|
|
71
71
|
};
|
|
72
72
|
}, ue = [], me = {}, o = ({ children: e, className: n }) => {
|
|
73
|
-
const
|
|
73
|
+
const l = D(), { id: r, FieldLayout: s } = l, { guestLimit: m, guestCount: c, guests: i, errorsByIndex: E, formView: a, changeGuestCount: g, changeGuestField: f } = ce(l), d = F(e, o.Label), u = F(e, o.GuestCount), C = F(e, o.GuestToggle), _ = F(e, o.Guests), G = m > 1;
|
|
74
74
|
return /* @__PURE__ */ t.createElement(s, {
|
|
75
75
|
fieldId: r,
|
|
76
|
-
renderLabel: () =>
|
|
76
|
+
renderLabel: () => G ? d : null,
|
|
77
77
|
renderInput: () => /* @__PURE__ */ t.createElement("div", {
|
|
78
78
|
className: n
|
|
79
|
-
},
|
|
79
|
+
}, G ? R(u, {
|
|
80
80
|
guestLimit: m,
|
|
81
|
-
guestCount:
|
|
81
|
+
guestCount: c,
|
|
82
82
|
onGuestCountChange: g
|
|
83
|
-
}) : R(
|
|
84
|
-
guestCount:
|
|
83
|
+
}) : R(C, {
|
|
84
|
+
guestCount: c,
|
|
85
85
|
onGuestCountChange: g
|
|
86
86
|
}), R(_, {
|
|
87
|
-
guestCount:
|
|
87
|
+
guestCount: c,
|
|
88
88
|
guests: i,
|
|
89
89
|
errorsByIndex: E,
|
|
90
90
|
formView: a,
|
|
91
|
-
onGuestFieldChange:
|
|
91
|
+
onGuestFieldChange: f
|
|
92
92
|
})),
|
|
93
93
|
renderDescription: () => null
|
|
94
94
|
});
|
|
95
95
|
}, ie = ({ className: e }) => /* @__PURE__ */ t.createElement(ee, {
|
|
96
96
|
className: e
|
|
97
|
-
}, null),
|
|
98
|
-
const { guestLimit: s, guestCount: m, onGuestCountChange:
|
|
99
|
-
|
|
97
|
+
}, null), O = ({ children: e, className: n, groupClassName: l, ...r }) => {
|
|
98
|
+
const { guestLimit: s, guestCount: m, onGuestCountChange: c } = r, { id: i, label: E, disabled: a, readOnly: g, onBlur: f, onFocus: d } = D(), { inputId: u, ariaDescribedBy: C } = K(), _ = te(f), G = M(null);
|
|
99
|
+
X(() => {
|
|
100
100
|
var p;
|
|
101
|
-
(p =
|
|
101
|
+
(p = G.current) == null || p.focus();
|
|
102
102
|
}, i);
|
|
103
|
-
const b = F(e,
|
|
103
|
+
const b = F(e, O.Decrement), T = F(e, O.Increment);
|
|
104
104
|
return /* @__PURE__ */ t.createElement(z, {
|
|
105
|
-
className:
|
|
105
|
+
className: l,
|
|
106
106
|
"aria-label": E,
|
|
107
107
|
value: m,
|
|
108
|
-
onChange:
|
|
108
|
+
onChange: c,
|
|
109
109
|
minValue: 0,
|
|
110
110
|
maxValue: s,
|
|
111
111
|
step: 1,
|
|
@@ -114,9 +114,9 @@ const ce = [], le = ({ id: e, fields: n, layout: c, value: r, onChange: s, error
|
|
|
114
114
|
onBlur: _,
|
|
115
115
|
onFocus: d
|
|
116
116
|
}, /* @__PURE__ */ t.createElement(J, {
|
|
117
|
-
ref:
|
|
117
|
+
ref: G,
|
|
118
118
|
id: u,
|
|
119
|
-
"aria-describedby":
|
|
119
|
+
"aria-describedby": C,
|
|
120
120
|
className: n,
|
|
121
121
|
inputMode: "numeric"
|
|
122
122
|
}), T, b);
|
|
@@ -126,44 +126,44 @@ const ce = [], le = ({ id: e, fields: n, layout: c, value: r, onChange: s, error
|
|
|
126
126
|
}, e), pe = ({ children: e, className: n }) => /* @__PURE__ */ t.createElement(w, {
|
|
127
127
|
slot: "increment",
|
|
128
128
|
className: n
|
|
129
|
-
}, e),
|
|
130
|
-
const { guestCount: r, onGuestCountChange: s } =
|
|
131
|
-
|
|
129
|
+
}, e), S = ({ children: e, className: n, ...l }) => {
|
|
130
|
+
const { guestCount: r, onGuestCountChange: s } = l, { id: m, label: c, disabled: i, readOnly: E, onBlur: a, onFocus: g } = D(), { inputId: f, ariaDescribedBy: d } = K(), u = M(null);
|
|
131
|
+
X(() => {
|
|
132
132
|
var b;
|
|
133
133
|
(b = u.current) == null || b.focus();
|
|
134
134
|
}, m);
|
|
135
|
-
const
|
|
135
|
+
const C = F(e, S.Input), _ = F(e, S.Label), G = V((b) => {
|
|
136
136
|
s(b ? 1 : 0);
|
|
137
137
|
}, [
|
|
138
138
|
s
|
|
139
139
|
]);
|
|
140
140
|
return /* @__PURE__ */ t.createElement(Q, {
|
|
141
141
|
inputRef: u,
|
|
142
|
-
id:
|
|
142
|
+
id: f,
|
|
143
143
|
"aria-describedby": d,
|
|
144
144
|
isSelected: r > 0,
|
|
145
|
-
onChange:
|
|
145
|
+
onChange: G,
|
|
146
146
|
isDisabled: i,
|
|
147
147
|
isReadOnly: E,
|
|
148
148
|
onBlur: a,
|
|
149
149
|
onFocus: g
|
|
150
150
|
}, /* @__PURE__ */ t.createElement(W, {
|
|
151
151
|
className: n
|
|
152
|
-
},
|
|
153
|
-
label:
|
|
152
|
+
}, C, R(_, {
|
|
153
|
+
label: c
|
|
154
154
|
})));
|
|
155
155
|
}, Ee = ({ className: e }) => /* @__PURE__ */ t.createElement("div", {
|
|
156
156
|
"aria-hidden": "true",
|
|
157
157
|
className: e
|
|
158
158
|
}), ge = ({ className: e, ...n }) => {
|
|
159
|
-
const { label:
|
|
159
|
+
const { label: l } = n;
|
|
160
160
|
return /* @__PURE__ */ t.createElement("span", {
|
|
161
161
|
className: e
|
|
162
|
-
},
|
|
163
|
-
}, k = ({ children: e, className: n, ...
|
|
164
|
-
const { guestCount: r, guests: s, errorsByIndex: m, formView:
|
|
165
|
-
...
|
|
166
|
-
fields:
|
|
162
|
+
}, l);
|
|
163
|
+
}, k = ({ children: e, className: n, ...l }) => {
|
|
164
|
+
const { guestCount: r, guests: s, errorsByIndex: m, formView: c, onGuestFieldChange: i } = l, { disabled: E, readOnly: a } = D(), g = B(() => ({
|
|
165
|
+
...c,
|
|
166
|
+
fields: c.fields.map((d) => ({
|
|
167
167
|
...d,
|
|
168
168
|
properties: {
|
|
169
169
|
...d.properties,
|
|
@@ -172,15 +172,15 @@ const ce = [], le = ({ id: e, fields: n, layout: c, value: r, onChange: s, error
|
|
|
172
172
|
}
|
|
173
173
|
}))
|
|
174
174
|
}), [
|
|
175
|
-
|
|
175
|
+
c,
|
|
176
176
|
E,
|
|
177
177
|
a
|
|
178
|
-
]),
|
|
178
|
+
]), f = F(e, k.Guest);
|
|
179
179
|
return r ? /* @__PURE__ */ t.createElement("div", {
|
|
180
180
|
className: n
|
|
181
181
|
}, Array.from({
|
|
182
182
|
length: r
|
|
183
|
-
}, (d, u) => R(
|
|
183
|
+
}, (d, u) => R(f, {
|
|
184
184
|
key: u,
|
|
185
185
|
index: u,
|
|
186
186
|
formView: g,
|
|
@@ -188,34 +188,34 @@ const ce = [], le = ({ id: e, fields: n, layout: c, value: r, onChange: s, error
|
|
|
188
188
|
errors: m[u] ?? ue,
|
|
189
189
|
onFieldChange: i(u)
|
|
190
190
|
}))) : null;
|
|
191
|
-
},
|
|
192
|
-
const { index:
|
|
191
|
+
}, fe = ({ className: e, ...n }) => {
|
|
192
|
+
const { index: l, formView: r, values: s, errors: m, onFieldChange: c } = n, i = P(), E = U(), a = j(), { validateFields: g } = H();
|
|
193
193
|
return /* @__PURE__ */ t.createElement("div", {
|
|
194
194
|
className: e,
|
|
195
|
-
"data-hook": `guest-${
|
|
195
|
+
"data-hook": `guest-${l}`
|
|
196
196
|
}, /* @__PURE__ */ t.createElement(Z, {
|
|
197
197
|
form: r,
|
|
198
198
|
formSchema: i,
|
|
199
199
|
values: s,
|
|
200
200
|
errors: m,
|
|
201
201
|
validateFields: g,
|
|
202
|
-
onFieldChange:
|
|
202
|
+
onFieldChange: c,
|
|
203
203
|
fields: E,
|
|
204
204
|
fieldActions: a
|
|
205
205
|
}));
|
|
206
206
|
};
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
k.Guest =
|
|
207
|
+
O.Decrement = de;
|
|
208
|
+
O.Increment = pe;
|
|
209
|
+
S.Input = Ee;
|
|
210
|
+
S.Label = ge;
|
|
211
|
+
k.Guest = fe;
|
|
212
212
|
o.Label = ie;
|
|
213
|
-
o.GuestCount =
|
|
214
|
-
o.GuestToggle =
|
|
213
|
+
o.GuestCount = O;
|
|
214
|
+
o.GuestToggle = S;
|
|
215
215
|
o.Guests = k;
|
|
216
|
-
const
|
|
217
|
-
container:
|
|
218
|
-
countGroup:
|
|
216
|
+
const Ce = "_container_11veo_1", Ge = "_countGroup_11veo_8", Fe = "_increment_11veo_28", be = "_decrement_11veo_29", y = {
|
|
217
|
+
container: Ce,
|
|
218
|
+
countGroup: Ge,
|
|
219
219
|
increment: Fe,
|
|
220
220
|
decrement: be
|
|
221
221
|
}, _e = () => /* @__PURE__ */ t.createElement(o, {
|
|
@@ -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-BwUynK_5.js";
|
|
5
5
|
import { E as m } from "./error-icon-hZxQ6DEy.js";
|
|
6
|
-
import { s } from "./field-rac.module-
|
|
7
|
-
import {
|
|
8
|
-
const e = ({ children:
|
|
6
|
+
import { s as n } from "./field-rac.module-CWkwwhq4.js";
|
|
7
|
+
import { t as i, J as E, K as p, M as R, L as _, n as L, j as O } from "./form-element-classes-KRzHUNLu.js";
|
|
8
|
+
const e = ({ children: s }) => /* @__PURE__ */ t.createElement(a, null, s);
|
|
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: s, locale: l }) => /* @__PURE__ */ t.createElement(c, {
|
|
15
|
+
content: s,
|
|
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, n.label)
|
|
19
19
|
}, /* @__PURE__ */ t.createElement(e.Label.Required, {
|
|
20
|
-
className: r(E,
|
|
20
|
+
className: r(E, n.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: n, 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, n.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, n.description)
|
|
35
|
+
}, S)), f = () => /* @__PURE__ */ t.createElement(I, null);
|
|
36
36
|
export {
|
|
37
|
-
|
|
37
|
+
f as EventsRsvpRAC
|
|
38
38
|
};
|
package/dist/component/{field-error-headless-DP4WSQU3.js → field-error-headless-DrnFrGun.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import t, { createContext as m, useContext as M } from "react";
|
|
2
|
-
import {
|
|
3
|
-
const
|
|
2
|
+
import { ai as c, af as i, ab as f, T as x, U as h } from "./form-9yjqDnxY.js";
|
|
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", {
|
|
6
6
|
className: r,
|
|
@@ -16,7 +16,7 @@ const N = ({ className: r, children: e }) => {
|
|
|
16
16
|
className: r
|
|
17
17
|
}, e ?? "");
|
|
18
18
|
}, k = ({ className: r, children: e, ...s }) => {
|
|
19
|
-
const { hasError: o, errorMessage: a } = s, { target: n, hasError:
|
|
19
|
+
const { hasError: o, errorMessage: a } = s, { target: n, hasError: E, errorMessage: d } = c(), { errorId: g } = i(), u = o ?? E, p = a ?? d;
|
|
20
20
|
return u ? /* @__PURE__ */ t.createElement(v, {
|
|
21
21
|
value: p
|
|
22
22
|
}, /* @__PURE__ */ t.createElement("div", {
|
|
@@ -27,7 +27,7 @@ const N = ({ className: r, children: e }) => {
|
|
|
27
27
|
};
|
|
28
28
|
k.Text = D;
|
|
29
29
|
export {
|
|
30
|
-
|
|
30
|
+
b as D,
|
|
31
31
|
k as E,
|
|
32
32
|
v as a,
|
|
33
33
|
D as b
|
package/dist/component/{field-label-headless-BKmi7Fjg.js → field-label-headless-BIYf1BIh.js}
RENAMED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ai as m, R as d, q as p, af as D, as as B } from "./form-9yjqDnxY.js";
|
|
2
2
|
import l from "react";
|
|
3
|
-
import { f as
|
|
4
|
-
import { sdk as
|
|
3
|
+
import { f as L } from "./find-child-C60k4CxG.js";
|
|
4
|
+
import { sdk as R } from "@wix/image-kit";
|
|
5
5
|
function N({ id: e, width: t, height: n }, a, r, o = "fill") {
|
|
6
|
-
return (o === "fit" ?
|
|
6
|
+
return (o === "fit" ? R.getScaleToFitImageURL : R.getScaleToFillImageURL)(e, t, n, typeof a == "number" ? a : parseInt(a, 10), typeof r == "number" ? r : parseInt(r, 10));
|
|
7
7
|
}
|
|
8
8
|
var u = /* @__PURE__ */ (function(e) {
|
|
9
9
|
return e.TOP = "top", e.BOTTOM = "bottom", e;
|
|
@@ -15,13 +15,13 @@ const S = {
|
|
|
15
15
|
margin: 0,
|
|
16
16
|
padding: 0
|
|
17
17
|
}, U = "", i = ({ children: e, className: t, ...n }) => {
|
|
18
|
-
const { as: a = "label", requiredIndicatorHidden: r = !1, label: o } = n, { label: T, required:
|
|
18
|
+
const { as: a = "label", requiredIndicatorHidden: r = !1, label: o } = n, { label: T, required: g = !1, hideLabel: q = !1, requiredIndicatorType: F = d.ASTERISK, requiredIndicatorPlacement: O = p.AFTER_FIELD_TITLE, media: y, mediaSettings: s } = m(), { labelId: A, inputId: P } = D(), _ = a, f = g && !r ? L(e, i.Required) : null, c = y ? L(e, i.Image) : null, E = (s == null ? void 0 : s.imagePosition) ?? u.TOP, h = F === d.ASTERISK && O === p.BEFORE_FIELD_TITLE, I = (o ?? T) || U, b = /* @__PURE__ */ l.createElement(_, {
|
|
19
19
|
id: A,
|
|
20
20
|
htmlFor: a === "label" ? P : void 0,
|
|
21
21
|
className: t,
|
|
22
22
|
style: q ? S : void 0
|
|
23
|
-
}, h ? /* @__PURE__ */ l.createElement(l.Fragment, null,
|
|
24
|
-
return c ? /* @__PURE__ */ l.createElement("div", null,
|
|
23
|
+
}, h ? /* @__PURE__ */ l.createElement(l.Fragment, null, f, I) : /* @__PURE__ */ l.createElement(l.Fragment, null, I, f));
|
|
24
|
+
return c ? /* @__PURE__ */ l.createElement("div", null, E === u.TOP ? c : null, b, E === u.BOTTOM ? c : null) : b;
|
|
25
25
|
}, v = ({ className: e }) => {
|
|
26
26
|
const { t } = B(), { requiredIndicatorType: n } = m();
|
|
27
27
|
return n === d.TEXT ? /* @__PURE__ */ l.createElement("span", {
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
const o = "_label_1j5hc_1", c = "_requiredMark_1j5hc_11", n = "_input_1j5hc_16", t = "_inputGroup_1j5hc_17", e = "_innerInput_1j5hc_123", r = "_dropdownTrigger_1j5hc_166", _ = "_dropdownIcon_1j5hc_176", p = "_dropdownPopover_1j5hc_195", s = "_selectPopover_1j5hc_199", i = "_selectOption_1j5hc_226", u = "_selectOptionWithoutFocusRing_1j5hc_250", d = "_description_1j5hc_256", h = "_error_1j5hc_272", l = "_checkbox_1j5hc_291", j = "_checkboxInput_1j5hc_314", a = "_uploadButton_1j5hc_409", b = {
|
|
2
|
+
label: o,
|
|
3
|
+
requiredMark: c,
|
|
4
|
+
input: n,
|
|
5
|
+
inputGroup: t,
|
|
6
|
+
innerInput: e,
|
|
7
|
+
dropdownTrigger: r,
|
|
8
|
+
dropdownIcon: _,
|
|
9
|
+
dropdownPopover: p,
|
|
10
|
+
selectPopover: s,
|
|
11
|
+
selectOption: i,
|
|
12
|
+
selectOptionWithoutFocusRing: u,
|
|
13
|
+
description: d,
|
|
14
|
+
error: h,
|
|
15
|
+
checkbox: l,
|
|
16
|
+
checkboxInput: j,
|
|
17
|
+
uploadButton: a
|
|
18
|
+
};
|
|
19
|
+
export {
|
|
20
|
+
b as s
|
|
21
|
+
};
|