@wix/form-elements 1.63.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-B1VVk_Ui.js → appointment-rac-DojiZqx9.js} +35 -35
- package/dist/component/{bookings-address-rac-IQeHFdHT.js → bookings-address-rac-Bm_lQchD.js} +1 -1
- package/dist/component/{bookings-email-rac-z26A790r.js → bookings-email-rac-vwuy0kW8.js} +1 -1
- package/dist/component/{bookings-first-name-rac-Djf0GPP4.js → bookings-first-name-rac-BbWuLoeg.js} +1 -1
- package/dist/component/{bookings-header-rac-CXOzAOpz.js → bookings-header-rac-DVknNH29.js} +1 -1
- package/dist/component/{bookings-last-name-rac-CbB8alM9.js → bookings-last-name-rac-BnT3Cq0b.js} +1 -1
- package/dist/component/{bookings-login-bar-rac-CXrLx7Pn.js → bookings-login-bar-rac-DKi-VAXc.js} +5 -5
- package/dist/component/{bookings-phone-rac-DGYx7h5g.js → bookings-phone-rac-Bfy8rheB.js} +1 -1
- package/dist/component/{bookings-rich-text-rac-viJG57XF.js → bookings-rich-text-rac-DGiBDcXw.js} +1 -1
- package/dist/component/{checkbox-field-rac-e-RAmupX.js → checkbox-field-rac-CYADRY54.js} +5 -5
- 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-CDfDTWqz.js → checkbox-group-rac-CQf1C9H5.js} +1 -1
- package/dist/component/{checkbox-rac-BRBKYD_5.js → checkbox-rac-Bjv8jZjs.js} +1 -1
- package/dist/component/{contacts-address-rac-BtWWQi77.js → contacts-address-rac-BBTiEec9.js} +1 -1
- package/dist/component/{contacts-birthdate-rac-DaEUXJTf.js → contacts-birthdate-rac-XReeFHVW.js} +1 -1
- package/dist/component/{contacts-company-rac-IgRyjtcM.js → contacts-company-rac-B-fUQszu.js} +1 -1
- package/dist/component/{contacts-email-rac-BS1MDrMk.js → contacts-email-rac-DBtcCcsV.js} +1 -1
- package/dist/component/{contacts-first-name-rac-BAvXypDF.js → contacts-first-name-rac-mkwU3706.js} +1 -1
- package/dist/component/{contacts-last-name-rac-C289RYPl.js → contacts-last-name-rac-DY5N-AZx.js} +1 -1
- package/dist/component/{contacts-phone-rac-DIpyskam.js → contacts-phone-rac-Ce1rMz_z.js} +1 -1
- package/dist/component/{contacts-position-rac-nPeh3lKU.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-C4WB-SR0.js → contacts-tax-id-rac-Jtt0ySK2.js} +1 -1
- package/dist/component/{date-availability-HHjPx4Uv.js → date-availability-B8UwvTJa.js} +1 -1
- package/dist/component/{date-input-field-rac-GFgFcpX2.js → date-input-field-rac-RL2a0xoD.js} +33 -33
- package/dist/component/{date-input-rac-B9BUEIA-.js → date-input-rac-ak3G7V07.js} +1 -1
- package/dist/component/{date-picker-field-rac-BfjYIIuY.js → date-picker-field-rac-SL_Roltf.js} +31 -31
- package/dist/component/{date-picker-rac-Bd2UN0ZF.js → date-picker-rac-ByrM0YIX.js} +1 -1
- package/dist/component/{date-time-input-field-rac-CAXnxLQP.js → date-time-input-field-rac-DOE7xcKi.js} +36 -36
- package/dist/component/{date-time-input-rac-BuJ3Awlh.js → date-time-input-rac-BA-GyrAc.js} +1 -1
- package/dist/component/{dext-checkbox-group-rac-DKp4cBVa.js → dext-checkbox-group-rac-EwUnBO80.js} +2 -2
- package/dist/component/{dext-checkbox-rac-BMu_k06A.js → dext-checkbox-rac-CIRKi4B5.js} +1 -1
- package/dist/component/{dext-date-picker-rac-L3sdldhT.js → dext-date-picker-rac-BYO_Q1zM.js} +1 -1
- package/dist/component/{dext-date-time-input-rac-UmabFzDN.js → dext-date-time-input-rac-BOahPeaH.js} +1 -1
- package/dist/component/{dext-dropdown-rac-DbjgYaG-.js → dext-dropdown-rac-sTD_r-0H.js} +1 -1
- package/dist/component/{dext-email-rac-rNudrOOK.js → dext-email-rac-e-2_h3he.js} +1 -1
- package/dist/component/{dext-number-input-rac-hw1FTrJL.js → dext-number-input-rac-D6LACzWl.js} +1 -1
- package/dist/component/{dext-phone-rac-DrZ_Vwv2.js → dext-phone-rac-kUycy5Od.js} +1 -1
- package/dist/component/{dext-radio-group-rac-DAt2ax-I.js → dext-radio-group-rac-DPD2UkrV.js} +2 -2
- package/dist/component/{dext-rating-input-rac-BW2Ike11.js → dext-rating-input-rac-DUsnrl9W.js} +1 -1
- package/dist/component/{dext-tags-rac-DDzwlKrR.js → dext-tags-rac-D6z69HuO.js} +2 -2
- package/dist/component/{dext-text-area-rac-D0xf4z3z.js → dext-text-area-rac-C-DVtFJ1.js} +1 -1
- package/dist/component/{dext-text-input-rac-Da04OLmq.js → dext-text-input-rac-CIa2MdC6.js} +1 -1
- package/dist/component/{dext-url-input-rac-B-g4xTqh.js → dext-url-input-rac-8rVVW5us.js} +1 -1
- package/dist/component/{donation-rac-gKeq72jg.js → donation-rac-BjmSBabc.js} +60 -60
- package/dist/component/{dropdown-field-headless-Js5TxdU4.js → dropdown-field-headless-DReo519l.js} +16 -16
- package/dist/component/{dropdown-field-rac-BDxcvX00.js → dropdown-field-rac-DzrjA2O6.js} +7 -7
- package/dist/component/{dropdown-rac-B5UHNzV-.js → dropdown-rac-CS7oLTp_.js} +1 -1
- package/dist/component/{ecom-address-rac-0zm4bX37.js → ecom-address-rac-EIb88J_6.js} +1 -1
- package/dist/component/{ecom-subscription-checkbox-rac-DCXoI33l.js → ecom-subscription-checkbox-rac-CE0Ks6qS.js} +5 -5
- package/dist/component/{email-input-field-rac-svf6hUHF.js → email-input-field-rac-BScZxYHw.js} +47 -47
- package/dist/component/{events-repeater-rac-DMIqzuVK.js → events-repeater-rac-Y0rH2Jli.js} +45 -45
- package/dist/component/{events-rsvp-rac-B_YD4ckO.js → events-rsvp-rac-BiAYVv_b.js} +12 -12
- package/dist/component/{field-error-headless-DTKnr5Zx.js → field-error-headless-DrnFrGun.js} +3 -3
- package/dist/component/{field-label-headless-DV4aNd5Y.js → field-label-headless-BIYf1BIh.js} +4 -4
- package/dist/component/field-rac.module-CWkwwhq4.js +21 -0
- package/dist/component/{file-upload-rac-lGKJjG3m.js → file-upload-rac-br--tZLp.js} +73 -73
- package/dist/component/{fixed-payment-rac-BVS6glii.js → fixed-payment-rac-XEtrsaMy.js} +11 -11
- package/dist/component/{form-DzjdnO7t.js → form-9yjqDnxY.js} +1563 -1556
- 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-tzBH-8Yh.js → header-field-rac-CLELgzqY.js} +7 -7
- package/dist/component/{header-rac-6thQAvVF.js → header-rac-D8KGkVVp.js} +1 -1
- package/dist/component/{image-choice-rac-Dx1b-saW.js → image-choice-rac-Cl09CLP4.js} +14 -14
- package/dist/component/{index-DIP7KB8P.js → index-C4y71e1i.js} +2 -2
- package/dist/component/{index-Lnx0829a.js → index-PHkE0Ru4.js} +4 -4
- package/dist/component/{isObjectLike-B_1KizZV.js → isObjectLike-srCDplej.js} +1 -1
- package/dist/component/{multiline-address-field-rac-BY2SUp2d.js → multiline-address-field-rac-CsBLI9y-.js} +80 -80
- package/dist/component/{multiline-address-rac-BL8Yp4F0.js → multiline-address-rac-DFDPFfXh.js} +1 -1
- package/dist/component/{number-input-field-rac-x0yFmXbe.js → number-input-field-rac-DZRR7gdt.js} +16 -16
- package/dist/component/{number-input-rac-pJXc2YsD.js → number-input-rac-BCS5lkff.js} +1 -1
- package/dist/component/{password-rac-B4XCP64b.js → password-rac-ClDGgR3E.js} +16 -16
- package/dist/component/{payment-input-rac-CZdOAjK4.js → payment-input-rac-COydWmUE.js} +28 -28
- package/dist/component/{phone-input-field-rac-DO_V5Z_T.js → phone-input-field-rac-DYCibqe1.js} +42 -42
- package/dist/component/{phone-rac-D16nLDjP.js → phone-rac-BS-dmWkJ.js} +1 -1
- package/dist/component/{product-list-rac-DER8gVqy.js → product-list-rac-hxOhaA-r.js} +75 -75
- package/dist/component/quiz-radio-group-rac-BT-YZO2Q.js +13 -0
- package/dist/component/{radio-group-field-rac-Dt2pU0VV.js → radio-group-field-rac-DKqWnMBJ.js} +3 -3
- package/dist/component/{radio-group-field-rac.module--sO0VqCA.js → radio-group-field-rac.module-BwUynK_5.js} +7 -7
- package/dist/component/{radio-group-rac-CqCmtkNQ.js → radio-group-rac-DHURQZKK.js} +1 -1
- package/dist/component/{rating-input-field-rac-xDrHHcL2.js → rating-input-field-rac-CZRdSVrf.js} +30 -30
- package/dist/component/{rating-input-rac-Bo5E9N87.js → rating-input-rac-BaH52DYm.js} +1 -1
- package/dist/component/{rich-content-rac.module-CJXbNca9.js → rich-content-rac.module-ILBfxEmN.js} +1 -1
- package/dist/component/{rich-text-field-rac-CkV0Z9F-.js → rich-text-field-rac-B58q8Is7.js} +5 -5
- package/dist/component/{rich-text-rac-59DbKpXz.js → rich-text-rac-DGbZh1eX.js} +1 -1
- package/dist/component/{service-dropdown-rac-BLnflnUr.js → service-dropdown-rac-DUiNIbdv.js} +45 -45
- package/dist/component/services-multi-choice-rac-B7y9s2l8.js +76 -0
- package/dist/component/{signature-rac-Bb5IaS28.js → signature-rac-CydpvQJZ.js} +25 -25
- package/dist/component/{submit-button-rac-Bjyi8sUA.js → submit-button-rac-OO53h4H8.js} +6 -6
- package/dist/component/{tags-field-rac-C_VO3_69.js → tags-field-rac-eX3d3JEH.js} +44 -44
- package/dist/component/{tags-rac-CKiutCWe.js → tags-rac-CdIB_48Z.js} +1 -1
- package/dist/component/{text-area-field-rac-Cg-vIhFe.js → text-area-field-rac-Bir5Q7gz.js} +17 -17
- package/dist/component/{text-area-rac-tMFx38UD.js → text-area-rac-Ct1UNU04.js} +1 -1
- package/dist/component/{text-input-field-rac-CgN_2hOD.js → text-input-field-rac-onGUXC9J.js} +6 -6
- package/dist/component/{text-input-headless-CkhvKrFp.js → text-input-headless-Bs9m7QFg.js} +11 -11
- package/dist/component/{text-input-rac-BsyBgd3b.js → text-input-rac-DK4nEw4D.js} +1 -1
- package/dist/component/{time-input-rac-BxRVJtHE.js → time-input-rac-BCG9ktFa.js} +35 -35
- package/dist/component/{url-input-field-rac-B_1yVniS.js → url-input-field-rac-mUkrVTcL.js} +24 -24
- package/dist/component/{url-input-rac-D8VrKYVe.js → url-input-rac-Cl7LFYlr.js} +1 -1
- package/dist/component/{use-service-options-base-Ci9gIluo.js → use-service-options-base-BYVuKRj2.js} +6 -6
- package/dist/form.d.ts +3 -1
- package/package.json +2 -2
- package/dist/component/checkbox-group-field-headless-Cvia4lL6.js +0 -204
- package/dist/component/checkbox-group-field-rac-BXxk90dk.js +0 -33
- package/dist/component/contacts-subscribe-rac-Ci5OLk68.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/quiz-radio-group-rac-BgTmHHi4.js +0 -13
- package/dist/component/services-multi-choice-rac-C-bFjwx8.js +0 -76
package/dist/component/{email-input-field-rac-svf6hUHF.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,17 +1,17 @@
|
|
|
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 {
|
|
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
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: [
|
|
@@ -26,8 +26,8 @@ const le = [], ce = ({ id: e, fields: n, layout: l, value: r, onChange: s, error
|
|
|
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 le = [], ce = ({ id: e, fields: n, layout: l, 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,30 +57,30 @@ const le = [], ce = ({ id: e, fields: n, layout: l, 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 l = D(), { id: r, FieldLayout: s } = l, { guestLimit: m, guestCount: c, guests: i, errorsByIndex: E, formView: a, changeGuestCount: g, changeGuestField:
|
|
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
81
|
guestCount: c,
|
|
82
82
|
onGuestCountChange: g
|
|
83
|
-
}) : R(
|
|
83
|
+
}) : R(C, {
|
|
84
84
|
guestCount: c,
|
|
85
85
|
onGuestCountChange: g
|
|
86
86
|
}), R(_, {
|
|
@@ -88,19 +88,19 @@ const le = [], ce = ({ id: e, fields: n, layout: l, value: r, onChange: s, error
|
|
|
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: c } = r, { id: i, label: E, disabled: a, readOnly: g, onBlur:
|
|
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
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
105
|
className: l,
|
|
106
106
|
"aria-label": E,
|
|
@@ -114,9 +114,9 @@ const le = [], ce = ({ id: e, fields: n, layout: l, 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,30 +126,30 @@ const le = [], ce = ({ id: e, fields: n, layout: l, 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 } = l, { id: m, label: c, disabled: i, readOnly: E, onBlur: a, onFocus: g } = D(), { inputId:
|
|
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
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
|
-
},
|
|
152
|
+
}, C, R(_, {
|
|
153
153
|
label: c
|
|
154
154
|
})));
|
|
155
155
|
}, Ee = ({ className: e }) => /* @__PURE__ */ t.createElement("div", {
|
|
@@ -175,12 +175,12 @@ const le = [], ce = ({ id: e, fields: n, layout: l, value: r, onChange: s, error
|
|
|
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,7 +188,7 @@ const le = [], ce = ({ id: e, fields: n, layout: l, value: r, onChange: s, error
|
|
|
188
188
|
errors: m[u] ?? ue,
|
|
189
189
|
onFieldChange: i(u)
|
|
190
190
|
}))) : null;
|
|
191
|
-
},
|
|
191
|
+
}, fe = ({ className: e, ...n }) => {
|
|
192
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,
|
|
@@ -204,18 +204,18 @@ const le = [], ce = ({ id: e, fields: n, layout: l, value: r, onChange: s, error
|
|
|
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-DTKnr5Zx.js → field-error-headless-DrnFrGun.js}
RENAMED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import t, { createContext as m, useContext as M } from "react";
|
|
2
|
-
import {
|
|
2
|
+
import { ai as c, af as i, ab as f, T as x, U as h } from "./form-9yjqDnxY.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", {
|
|
6
6
|
className: r,
|
|
7
7
|
id: a,
|
|
8
|
-
"data-hook":
|
|
8
|
+
"data-hook": x(o)
|
|
9
9
|
}, e({
|
|
10
10
|
content: s,
|
|
11
11
|
locale: n
|
|
@@ -21,7 +21,7 @@ const b = ({ className: r, children: e }) => {
|
|
|
21
21
|
value: p
|
|
22
22
|
}, /* @__PURE__ */ t.createElement("div", {
|
|
23
23
|
id: g,
|
|
24
|
-
"data-hook":
|
|
24
|
+
"data-hook": h(n),
|
|
25
25
|
className: r
|
|
26
26
|
}, e)) : null;
|
|
27
27
|
};
|
package/dist/component/{field-label-headless-DV4aNd5Y.js → field-label-headless-BIYf1BIh.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
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
3
|
import { f as L } from "./find-child-C60k4CxG.js";
|
|
4
4
|
import { sdk as R } from "@wix/image-kit";
|
|
@@ -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: 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,
|
|
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
|
+
};
|