@wix/form-elements 1.159.0 → 1.160.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-CpiyUOXo.js → appointment-rac-BmHu56e5.js} +63 -63
- package/dist/component/{bookings-address-rac-BBEUV1t7.js → bookings-address-rac-DY9l2g0h.js} +1 -1
- package/dist/component/{bookings-email-rac-DdfoeLFV.js → bookings-email-rac-B5vNSOsS.js} +1 -1
- package/dist/component/{bookings-first-name-rac-DH39yvQ-.js → bookings-first-name-rac-CJiefCNz.js} +1 -1
- package/dist/component/{bookings-header-rac-StLm7b4I.js → bookings-header-rac-BFu7Ko5w.js} +1 -1
- package/dist/component/{bookings-last-name-rac-DHZMPMOO.js → bookings-last-name-rac-DegMM13h.js} +1 -1
- package/dist/component/{bookings-login-bar-rac-DrHp1ojM.js → bookings-login-bar-rac-DrA-5tBH.js} +7 -7
- package/dist/component/{bookings-phone-rac-6aGjbavK.js → bookings-phone-rac-DsaeqxCI.js} +1 -1
- package/dist/component/{bookings-rich-text-rac-DBlGZUM5.js → bookings-rich-text-rac-jRHiwqi8.js} +1 -1
- package/dist/component/{checkbox-field-rac-Cna1Va1X.js → checkbox-field-rac-CyoBb6Yf.js} +43 -43
- package/dist/component/{checkbox-group-field-headless-m_-10Mdx.js → checkbox-group-field-headless-Bv1gU3oL.js} +54 -54
- package/dist/component/{checkbox-group-field-rac-BSCi5hmx.js → checkbox-group-field-rac-DasArcdV.js} +6 -6
- package/dist/component/{checkbox-group-rac-BWYQZmAI.js → checkbox-group-rac-CzmufV1U.js} +1 -1
- package/dist/component/{checkbox-rac-BsUTfSUf.js → checkbox-rac-6C7XoUoZ.js} +1 -1
- package/dist/component/{contacts-address-rac-DwCLW8rV.js → contacts-address-rac-BZobbFtz.js} +1 -1
- package/dist/component/{contacts-birthdate-rac-DnNgxbKb.js → contacts-birthdate-rac-DIzf41DS.js} +1 -1
- package/dist/component/{contacts-company-rac-BQqXzpNl.js → contacts-company-rac-BiBDO28r.js} +1 -1
- package/dist/component/{contacts-email-rac-BINnZzxp.js → contacts-email-rac-5mqokCSD.js} +1 -1
- package/dist/component/{contacts-first-name-rac-DBWKFkIU.js → contacts-first-name-rac-BXe3_Nz5.js} +1 -1
- package/dist/component/{contacts-last-name-rac-D_-qrF7I.js → contacts-last-name-rac-Cfqgh7u1.js} +1 -1
- package/dist/component/{contacts-phone-rac-7n7JkSDr.js → contacts-phone-rac-cmLUWnAc.js} +1 -1
- package/dist/component/{contacts-position-rac-DvXP8nvT.js → contacts-position-rac-DTyvklfN.js} +1 -1
- package/dist/component/{contacts-subscribe-rac-DnLnV5Gm.js → contacts-subscribe-rac-D-ZEX1A3.js} +1 -1
- package/dist/component/{contacts-tax-id-rac-BJVWhvYW.js → contacts-tax-id-rac-B4NYJwWt.js} +1 -1
- package/dist/component/{date-availability-Df807-eN.js → date-availability-Dach9aRC.js} +1 -1
- package/dist/component/date-input-field-rac-B72mHcya.js +309 -0
- package/dist/component/{date-input-rac-CSB3MWHW.js → date-input-rac-CYix11gT.js} +1 -1
- package/dist/component/{date-picker-field-rac-CySThPfz.js → date-picker-field-rac-B8pvtPir.js} +86 -86
- package/dist/component/{date-picker-rac-Fp8_pxtf.js → date-picker-rac-D6cR0zH9.js} +1 -1
- package/dist/component/date-time-input-field-rac-B7Y3Yf5l.js +441 -0
- package/dist/component/{date-time-input-rac-wctMR4uM.js → date-time-input-rac-DMN-noQX.js} +1 -1
- package/dist/component/{dext-checkbox-group-rac-erMPfwFL.js → dext-checkbox-group-rac-Kq0GnteP.js} +2 -2
- package/dist/component/{dext-checkbox-rac-DQSq9Lqd.js → dext-checkbox-rac-BY9GZ4n1.js} +1 -1
- package/dist/component/{dext-date-picker-rac-RCLcd1VV.js → dext-date-picker-rac-CXArIddp.js} +1 -1
- package/dist/component/{dext-date-time-input-rac-DMolWzvy.js → dext-date-time-input-rac-B39TtxGq.js} +1 -1
- package/dist/component/{dext-dropdown-rac-wQ2GJL4V.js → dext-dropdown-rac-C3y0G8cS.js} +1 -1
- package/dist/component/{dext-email-rac-BtymBVTW.js → dext-email-rac-BIg3cq7Q.js} +1 -1
- package/dist/component/{dext-number-input-rac-DHPiK0Z3.js → dext-number-input-rac-27sHJ7yN.js} +1 -1
- package/dist/component/{dext-phone-rac-C58vHEEe.js → dext-phone-rac-CcohoFQp.js} +1 -1
- package/dist/component/dext-radio-group-rac-eead3Gve.js +18 -0
- package/dist/component/{dext-rating-input-rac-DI0k3tVa.js → dext-rating-input-rac-B_E6OcBr.js} +1 -1
- package/dist/component/{dext-tags-rac-DmF6ctvQ.js → dext-tags-rac-Yd9aAtnF.js} +2 -2
- package/dist/component/{dext-text-area-rac-Bv6ridbR.js → dext-text-area-rac-CMACri2C.js} +1 -1
- package/dist/component/{dext-text-input-rac-DoTAdUgU.js → dext-text-input-rac-sNjSCfQ-.js} +1 -1
- package/dist/component/{dext-url-input-rac-BuoMS6g2.js → dext-url-input-rac-DwhbzJty.js} +1 -1
- package/dist/component/{donation-rac-CjZalSgn.js → donation-rac-BVAN3kMk.js} +77 -77
- package/dist/component/{dropdown-field-rac-By_fpqhx.js → dropdown-field-rac-DdoGigWx.js} +14 -14
- package/dist/component/{dropdown-rac-BnIEC4RX.js → dropdown-rac-CRkt5w47.js} +1 -1
- package/dist/component/{ecom-address-rac-B6Usk1Ty.js → ecom-address-rac-C36hFHW0.js} +1 -1
- package/dist/component/{ecom-subscription-checkbox-rac-B4B0wzlC.js → ecom-subscription-checkbox-rac-BKfQ348w.js} +2 -2
- package/dist/component/{email-input-field-rac-Df3KI3_v.js → email-input-field-rac-MOaISYxa.js} +59 -59
- package/dist/component/{events-repeater-rac-B2iBk8lV.js → events-repeater-rac-D6p-NgE8.js} +20 -20
- package/dist/component/{events-rsvp-rac-xl_qCIh3.js → events-rsvp-rac-DVpgN8gm.js} +18 -18
- package/dist/component/{field-error-headless-DWc76YmY.js → field-error-headless-XNWmDH3E.js} +4 -4
- package/dist/component/{field-label-headless-DKBKqI2X.js → field-label-headless-CORRAJGt.js} +4 -4
- package/dist/component/{file-upload-rac-BVj4cRqe.js → file-upload-rac-DRMr7E4b.js} +89 -89
- package/dist/component/{fixed-payment-rac-BS1Hb4hg.js → fixed-payment-rac-BUXzNex9.js} +18 -18
- package/dist/component/{form-BTUoOcqB.js → form-DSpx-AO8.js} +785 -728
- package/dist/component/form.js +1 -1
- package/dist/component/{header-field-rac-DTJ_Us6u.js → header-field-rac-CiDXlNsa.js} +6 -6
- package/dist/component/{header-rac-CvYp0Jjo.js → header-rac-B5Rg-h8u.js} +1 -1
- package/dist/component/{image-choice-rac--qrYqKJl.js → image-choice-rac-CtoA_KDp.js} +22 -22
- package/dist/component/{index-DIl9BH2M.js → index-Bz7ZhQsF.js} +53 -53
- package/dist/component/{index-CoEV4QEy.js → index-CwruESwc.js} +5 -5
- package/dist/component/{isObjectLike-CLN09X5V.js → isObjectLike-C5dHxHP0.js} +11 -11
- package/dist/component/multiline-address-field-rac-Z-qF366L.js +1664 -0
- package/dist/component/{multiline-address-rac-DtaAJjbR.js → multiline-address-rac-CJIHTMw5.js} +1 -1
- package/dist/component/{number-input-field-rac-2gqDUlw9.js → number-input-field-rac-D4vf6I6N.js} +29 -29
- package/dist/component/{number-input-rac-BlciEPLN.js → number-input-rac-B2jW6JUQ.js} +1 -1
- package/dist/component/{password-rac-BvvQgafk.js → password-rac-DGRZ17Jl.js} +29 -29
- package/dist/component/{payment-input-rac-CSRyOPPr.js → payment-input-rac-BtD-tAKv.js} +27 -27
- package/dist/component/phone-input-field-rac-KD4-APhr.js +512 -0
- package/dist/component/{phone-rac-DMP1MoRs.js → phone-rac-Cw2yccgg.js} +1 -1
- package/dist/component/{product-list-rac-WQ9Qhzum.js → product-list-rac-XbzTDdbp.js} +33 -33
- package/dist/component/{quiz-radio-group-rac-DzrL3-gZ.js → quiz-radio-group-rac-BDw_mAw5.js} +1 -1
- package/dist/component/{radio-button-module-classes-CJk18LzO.js → radio-button-module-classes-CFGf0Hzh.js} +23 -23
- package/dist/component/{radio-group-field-rac-DGoMoSgo.js → radio-group-field-rac-CXN7tyVu.js} +6 -6
- package/dist/component/{radio-group-rac-DhAELVNV.js → radio-group-rac-COHzqjBh.js} +1 -1
- package/dist/component/{rating-input-field-rac-CFoesqmC.js → rating-input-field-rac-DCXNZgf1.js} +37 -37
- package/dist/component/{rating-input-rac-CFMIxche.js → rating-input-rac-DwQt9ML7.js} +1 -1
- package/dist/component/{rich-content-rac.module-xJ03MegT.js → rich-content-rac.module-B7rPwNns.js} +8 -8
- package/dist/component/{rich-text-field-rac-CBMY4JOB.js → rich-text-field-rac-DlER7NRD.js} +4 -4
- package/dist/component/{rich-text-rac-CvZ7s1Ct.js → rich-text-rac-CjicsHA7.js} +1 -1
- package/dist/component/service-dropdown-rac-B81LC_6_.js +145 -0
- package/dist/component/{services-multi-choice-rac-fXOov4K7.js → services-multi-choice-rac-BR6gZeHk.js} +16 -16
- package/dist/component/{signature-rac-CG_Q9Oxr.js → signature-rac-XFj7Ddtp.js} +69 -69
- package/dist/component/{submit-button-rac-DAsovEp2.js → submit-button-rac-Bz7zs_3W.js} +12 -12
- package/dist/component/{tags-field-rac-9mpOMPLm.js → tags-field-rac-DWWkNKqc.js} +22 -22
- package/dist/component/{tags-rac-CNBJ08wS.js → tags-rac-BXyiQ9i1.js} +1 -1
- package/dist/component/{text-area-field-rac-D4aTm7CM.js → text-area-field-rac-DsIRYi0d.js} +21 -21
- package/dist/component/{text-area-rac-DoKiH_Kv.js → text-area-rac-CF9pDP9d.js} +1 -1
- package/dist/component/{text-input-field-rac-BbvPB26b.js → text-input-field-rac-BwIDZACz.js} +5 -5
- package/dist/component/{text-input-headless-BGaBRrP1.js → text-input-headless-5kQs2_Xu.js} +14 -14
- package/dist/component/{text-input-rac-1ac1EKad.js → text-input-rac-CRmSuw1k.js} +1 -1
- package/dist/component/{time-input-rac-BS0rR-89.js → time-input-rac-BRMNpe51.js} +20 -20
- package/dist/component/{url-input-field-rac-DbO6ATng.js → url-input-field-rac-CKLS3QDk.js} +17 -17
- package/dist/component/{url-input-rac-DHuny3d-.js → url-input-rac-Dv-kp50D.js} +1 -1
- package/dist/component/use-dropdown-option-class-name-BQi_qE_-.js +116 -0
- package/dist/component/use-dropdown-trigger-class-name-bAK8aHiG.js +96 -0
- package/dist/component/{use-element-state-class-name-BUsFQfoW.js → use-element-state-class-name-rXM_lHug.js} +1 -1
- package/dist/component/{use-hoverable-input-class-name-C2l3G8gb.js → use-hoverable-input-class-name-BnV_uerV.js} +2 -2
- package/dist/component/use-is-forced-open-dropdown-Bp-5Xpmw.js +53 -0
- package/dist/component/{use-service-options-base-D_enm38a.js → use-service-options-base-CLeE9-Tx.js} +10 -10
- package/dist/component/use-text-input-class-name-DIKWvfkm.js +6 -0
- package/dist/form.d.ts +8 -0
- package/package.json +2 -2
- package/dist/component/date-input-field-rac-CEuPElMH.js +0 -303
- package/dist/component/date-time-input-field-rac-DG5KSBHe.js +0 -433
- package/dist/component/dext-radio-group-rac-Cp-I94HW.js +0 -18
- package/dist/component/dropdown-field-headless-BYEjiIUf.js +0 -93
- package/dist/component/multiline-address-field-rac-BjWzx-LH.js +0 -1659
- package/dist/component/phone-input-field-rac-BVWzH_TY.js +0 -508
- package/dist/component/service-dropdown-rac-B627AgPG.js +0 -145
- package/dist/component/use-dropdown-trigger-class-name-rcGBzxI1.js +0 -117
- package/dist/component/use-is-forced-open-dropdown-CoOk4W4i.js +0 -48
- package/dist/component/use-text-input-class-name-BLtPQoYE.js +0 -6
package/dist/component/{email-input-field-rac-Df3KI3_v.js → email-input-field-rac-MOaISYxa.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 j from "classnames";
|
|
3
|
+
import u, { createContext as Q, useContext as Z, createElement as R, isValidElement as B, cloneElement as w, 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 { bw as fe, bJ as ge, bu as ve, d as ye, bz as Ee, bD as de, bx as be, az as Se, V as Oe, ab as he, L as Ie, z as Ne, ak as Ae } from "./form-DSpx-AO8.js";
|
|
6
6
|
import { f as C } from "./find-child-C60k4CxG.js";
|
|
7
7
|
import ee from "@babel/runtime/helpers/objectWithoutProperties";
|
|
8
8
|
import L from "@babel/runtime/helpers/typeof";
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import { T as U } from "./text-input-headless-
|
|
14
|
-
import { E as
|
|
9
|
+
import ke from "@babel/runtime/helpers/defineProperty";
|
|
10
|
+
import Fe from "html-parse-stringify";
|
|
11
|
+
import xe from "@babel/runtime/helpers/classCallCheck";
|
|
12
|
+
import Te from "@babel/runtime/helpers/createClass";
|
|
13
|
+
import { T as U } from "./text-input-headless-5kQs2_Xu.js";
|
|
14
|
+
import { E as De } from "./error-icon-hZxQ6DEy.js";
|
|
15
15
|
import { s as H } from "./field-rac.module-DP0lkkEv.js";
|
|
16
|
-
import { u as
|
|
16
|
+
import { u as je } from "./use-text-input-class-name-DIKWvfkm.js";
|
|
17
17
|
var Ce = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g, Le = {
|
|
18
18
|
"&": "&",
|
|
19
19
|
"&": "&",
|
|
@@ -48,15 +48,15 @@ var Ce = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#1
|
|
|
48
48
|
transKeepBasicHtmlNodesFor: ["br", "strong", "i", "p"],
|
|
49
49
|
useSuspense: !0,
|
|
50
50
|
unescape: Pe
|
|
51
|
-
}, we, He =
|
|
51
|
+
}, we, He = Q();
|
|
52
52
|
function Re() {
|
|
53
53
|
return _e;
|
|
54
54
|
}
|
|
55
55
|
(function() {
|
|
56
56
|
function e() {
|
|
57
|
-
|
|
57
|
+
xe(this, e), this.usedNamespaces = {};
|
|
58
58
|
}
|
|
59
|
-
return
|
|
59
|
+
return Te(e, [{
|
|
60
60
|
key: "addUsedNamespaces",
|
|
61
61
|
value: function(a) {
|
|
62
62
|
var o = this;
|
|
@@ -88,7 +88,7 @@ function Be() {
|
|
|
88
88
|
typeof t[0] == "string" && J[t[0]] || (typeof t[0] == "string" && (J[t[0]] = /* @__PURE__ */ new Date()), K.apply(void 0, t));
|
|
89
89
|
}
|
|
90
90
|
var Ue = ["format"], Ve = ["children", "count", "parent", "i18nKey", "context", "tOptions", "values", "defaults", "components", "ns", "i18n", "t", "shouldUnescape"];
|
|
91
|
-
function
|
|
91
|
+
function X(e, t) {
|
|
92
92
|
var a = Object.keys(e);
|
|
93
93
|
if (Object.getOwnPropertySymbols) {
|
|
94
94
|
var o = Object.getOwnPropertySymbols(e);
|
|
@@ -101,9 +101,9 @@ function Q(e, t) {
|
|
|
101
101
|
function p(e) {
|
|
102
102
|
for (var t = 1; t < arguments.length; t++) {
|
|
103
103
|
var a = arguments[t] != null ? arguments[t] : {};
|
|
104
|
-
t % 2 ?
|
|
105
|
-
|
|
106
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(a)) :
|
|
104
|
+
t % 2 ? X(Object(a), !0).forEach(function(o) {
|
|
105
|
+
ke(e, o, a[o]);
|
|
106
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(a)) : X(Object(a)).forEach(function(o) {
|
|
107
107
|
Object.defineProperty(e, o, Object.getOwnPropertyDescriptor(a, o));
|
|
108
108
|
});
|
|
109
109
|
}
|
|
@@ -146,13 +146,13 @@ 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 x = te(b, t);
|
|
150
|
+
a += "<".concat(g, ">").concat(x, "</").concat(g, ">");
|
|
151
151
|
}
|
|
152
152
|
} else if (r === null)
|
|
153
153
|
K("Trans: the passed in value is invalid - seems you passed in a null child.");
|
|
154
154
|
else if (L(r) === "object") {
|
|
155
|
-
var O = r.format,
|
|
155
|
+
var O = r.format, k = ee(r, Ue), A = Object.keys(k);
|
|
156
156
|
if (A.length === 1) {
|
|
157
157
|
var S = O ? "".concat(A[0], ", ").concat(O) : A[0];
|
|
158
158
|
a += "{{".concat(S, "}}");
|
|
@@ -174,8 +174,8 @@ function Ge(e, t, a, o, c, r) {
|
|
|
174
174
|
});
|
|
175
175
|
}
|
|
176
176
|
b(e);
|
|
177
|
-
var
|
|
178
|
-
function
|
|
177
|
+
var x = Fe.parse("<0>".concat(t, "</0>")), O = p(p({}, d), c);
|
|
178
|
+
function k(y, h, s) {
|
|
179
179
|
var i = G(y), I = S(i, h.children, s);
|
|
180
180
|
return qe(i) && I.length === 0 ? i : I;
|
|
181
181
|
}
|
|
@@ -187,18 +187,18 @@ function Ge(e, t, a, o, c, r) {
|
|
|
187
187
|
function S(y, h, s) {
|
|
188
188
|
var i = M(y), I = M(h);
|
|
189
189
|
return I.reduce(function(l, n, E) {
|
|
190
|
-
var
|
|
190
|
+
var F = 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,
|
|
196
|
+
}, N) : N, T = B(m), V = T && Y(n, !0) && !n.voidElement, P = v && L(m) === "object" && m.dummy && !T, _ = L(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
|
-
var ne =
|
|
201
|
+
var ne = k(m, n, s);
|
|
202
202
|
A(m, ne, l, E);
|
|
203
203
|
} else if (P) {
|
|
204
204
|
var oe = S(i, n.children, s);
|
|
@@ -207,7 +207,7 @@ function Ge(e, t, a, o, c, r) {
|
|
|
207
207
|
}), oe));
|
|
208
208
|
} else if (Number.isNaN(parseFloat(n.name)))
|
|
209
209
|
if (_) {
|
|
210
|
-
var re =
|
|
210
|
+
var re = k(m, n, s);
|
|
211
211
|
A(m, re, l, E, n.voidElement);
|
|
212
212
|
} else if (o.transSupportBasicHtmlNodes && g.indexOf(n.name) > -1)
|
|
213
213
|
if (n.voidElement)
|
|
@@ -226,31 +226,31 @@ 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 (L(m) === "object" && !
|
|
230
|
-
var $ = n.children[0] ?
|
|
229
|
+
else if (L(m) === "object" && !T) {
|
|
230
|
+
var $ = n.children[0] ? F : null;
|
|
231
231
|
$ && l.push($);
|
|
232
|
-
} else n.children.length === 1 &&
|
|
232
|
+
} else n.children.length === 1 && F ? l.push(w(m, p(p({}, m.props), {}, {
|
|
233
233
|
key: E
|
|
234
|
-
}),
|
|
234
|
+
}), F)) : l.push(w(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, z = 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(R(W, {
|
|
240
240
|
key: "".concat(n.name, "-").concat(E)
|
|
241
|
-
},
|
|
241
|
+
}, z)) : l.push(z);
|
|
242
242
|
}
|
|
243
243
|
return l;
|
|
244
244
|
}, []);
|
|
245
245
|
}
|
|
246
|
-
var
|
|
246
|
+
var D = S([{
|
|
247
247
|
dummy: !0,
|
|
248
248
|
children: e || []
|
|
249
|
-
}],
|
|
250
|
-
return G(
|
|
249
|
+
}], x, M(e || []));
|
|
250
|
+
return G(D[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, x = e.components, O = e.ns, k = e.i18n, A = e.t, S = e.shouldUnescape, D = ee(e, Ve), y = Z(He) || {}, h = y.i18n, s = y.defaultNS, i = k || h || Ke();
|
|
254
254
|
if (!i)
|
|
255
255
|
return Be("You will need to pass in an i18next instance by using i18nextReactModule"), t;
|
|
256
256
|
var I = A || i.t.bind(i) || function(q) {
|
|
@@ -259,32 +259,32 @@ function $e(e) {
|
|
|
259
259
|
r && (v.context = r);
|
|
260
260
|
var l = p(p({}, Re()), 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, F = l.hashTransKey, N = c || (F ? F(E) : E), m = d ? v.interpolation : {
|
|
263
263
|
interpolation: p(p({}, v.interpolation), {}, {
|
|
264
264
|
prefix: "#$?",
|
|
265
265
|
suffix: "?$#"
|
|
266
266
|
})
|
|
267
|
-
},
|
|
267
|
+
}, T = 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 _ ? R(_,
|
|
272
|
+
}), V = N ? I(N, T) : E, P = Ge(x || t, V, i, l, T, S), _ = o !== void 0 ? o : l.defaultTransParent;
|
|
273
|
+
return _ ? R(_, D, P) : P;
|
|
274
274
|
}
|
|
275
|
-
const We = "email-mistype-suggestion",
|
|
275
|
+
const We = "email-mistype-suggestion", ze = "email-mistype-suggestion-link", ae = /* @__PURE__ */ Q(void 0);
|
|
276
276
|
function Je() {
|
|
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 Xe = ({ 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), Qe = ({ className: e }) => {
|
|
288
288
|
const { suggestionId: t } = fe(), { activeSuggestion: a, applySuggestion: o } = Je(), { t: c, i18n: r } = ge();
|
|
289
289
|
return /* @__PURE__ */ u.createElement("div", {
|
|
290
290
|
id: t,
|
|
@@ -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": ze,
|
|
306
306
|
"aria-label": c("input.email.mistype-check.fix-aria-label", {
|
|
307
307
|
email: a
|
|
308
308
|
}),
|
|
@@ -449,20 +449,20 @@ 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: x, description: O, FieldLayout: k } = Ee(), { isMistyped: A, suggestedEmail: S, validate: D } = 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, x, O, s), I = () => {
|
|
456
456
|
o(s), y(t);
|
|
457
457
|
}, l = () => {
|
|
458
|
-
|
|
459
|
-
}, n = C(e, f.Label), E = C(e, f.Input),
|
|
458
|
+
D(), d == null || d();
|
|
459
|
+
}, n = C(e, f.Label), E = C(e, f.Input), F = C(e, f.Description), N = C(e, f.Error), m = C(e, f.Suggestion);
|
|
460
460
|
return /* @__PURE__ */ u.createElement(Se.Provider, {
|
|
461
461
|
value: i
|
|
462
|
-
}, /* @__PURE__ */ u.createElement(
|
|
462
|
+
}, /* @__PURE__ */ u.createElement(Xe, {
|
|
463
463
|
activeSuggestion: s,
|
|
464
464
|
applySuggestion: I
|
|
465
|
-
}, /* @__PURE__ */ u.createElement(
|
|
465
|
+
}, /* @__PURE__ */ u.createElement(k, {
|
|
466
466
|
fieldId: t,
|
|
467
467
|
renderLabel: () => n,
|
|
468
468
|
renderInput: () => /* @__PURE__ */ u.createElement(pe, {
|
|
@@ -478,33 +478,33 @@ const Qe = ({ activeSuggestion: e, applySuggestion: t, children: a }) => /* @__P
|
|
|
478
478
|
onBlur: l,
|
|
479
479
|
onFocus: b
|
|
480
480
|
}, E),
|
|
481
|
-
renderDescription: () => /* @__PURE__ */ u.createElement(u.Fragment, null, N, m,
|
|
481
|
+
renderDescription: () => /* @__PURE__ */ u.createElement(u.Fragment, null, N, m, F)
|
|
482
482
|
})));
|
|
483
483
|
};
|
|
484
484
|
f.Label = U.Label;
|
|
485
485
|
f.Input = U.Input;
|
|
486
486
|
f.Description = U.Description;
|
|
487
487
|
f.Error = U.Error;
|
|
488
|
-
f.Suggestion =
|
|
488
|
+
f.Suggestion = Qe;
|
|
489
489
|
const nt = "_suggestion_lysve_1", ot = {
|
|
490
490
|
suggestion: nt
|
|
491
491
|
}, rt = ({ content: e, locale: t }) => /* @__PURE__ */ u.createElement(ie, {
|
|
492
492
|
content: e,
|
|
493
493
|
locale: t
|
|
494
494
|
}), ht = () => {
|
|
495
|
-
const e =
|
|
495
|
+
const e = je();
|
|
496
496
|
return /* @__PURE__ */ u.createElement(f, null, /* @__PURE__ */ u.createElement(f.Label, {
|
|
497
|
-
className:
|
|
497
|
+
className: j(Oe, H.label)
|
|
498
498
|
}, /* @__PURE__ */ u.createElement(f.Label.Required, {
|
|
499
|
-
className:
|
|
499
|
+
className: j(he, H.requiredMark)
|
|
500
500
|
})), /* @__PURE__ */ u.createElement(f.Input, {
|
|
501
501
|
className: e
|
|
502
502
|
}), /* @__PURE__ */ u.createElement(f.Error, {
|
|
503
|
-
className:
|
|
504
|
-
}, /* @__PURE__ */ u.createElement(
|
|
505
|
-
className:
|
|
503
|
+
className: j(Ie, H.error)
|
|
504
|
+
}, /* @__PURE__ */ u.createElement(De, null), /* @__PURE__ */ u.createElement(f.Error.Text, null)), /* @__PURE__ */ u.createElement(f.Description, {
|
|
505
|
+
className: j(Ne, H.description)
|
|
506
506
|
}, rt), /* @__PURE__ */ u.createElement(f.Suggestion, {
|
|
507
|
-
className:
|
|
507
|
+
className: j(Ae, ot.suggestion)
|
|
508
508
|
}));
|
|
509
509
|
};
|
|
510
510
|
export {
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import t, { useState as j, useMemo as h, useCallback as V, useRef as
|
|
2
|
-
import
|
|
3
|
-
import { NumberField as z, CheckboxField as J, CheckboxButton as Q, Group as W, Input as Y, Button as
|
|
4
|
-
import {
|
|
1
|
+
import t, { useState as j, useMemo as h, useCallback as V, useRef as M } from "react";
|
|
2
|
+
import w from "classnames";
|
|
3
|
+
import { NumberField as z, CheckboxField as J, CheckboxButton as Q, Group as W, Input as Y, Button as k } from "react-aria-components";
|
|
4
|
+
import { bF as X, bG as q, bv as H, bA as K, aX as Z, bz as y, bw as P, bB as U, aD as ee, V as te, n as se, s as ne, r as oe } from "./form-DSpx-AO8.js";
|
|
5
5
|
import { f as b, a as L } from "./find-child-C60k4CxG.js";
|
|
6
|
-
import { L as re } from "./field-label-headless-
|
|
6
|
+
import { L as re } from "./field-label-headless-CORRAJGt.js";
|
|
7
7
|
import { S as ae } from "./selection-indicator-XQ8MYHUQ.js";
|
|
8
8
|
import { u as le } from "./use-invoke-callback-UH73A_J3.js";
|
|
9
|
-
import { C as
|
|
9
|
+
import { C as x } from "./chevron-down-icon-CcpVm6B-.js";
|
|
10
10
|
import { C as ce } from "./checkbox-indicator-module-classes-akWZsZNn.js";
|
|
11
11
|
import { s as v } from "./field-rac.module-DP0lkkEv.js";
|
|
12
|
-
import { u as ue } from "./use-element-state-class-name-
|
|
13
|
-
import { u as me } from "./use-text-input-class-name-
|
|
12
|
+
import { u as ue } from "./use-element-state-class-name-rXM_lHug.js";
|
|
13
|
+
import { u as me } from "./use-text-input-class-name-DIKWvfkm.js";
|
|
14
14
|
const ie = [], de = ({ id: e, fields: s, layout: a, value: o, onChange: n, errors: l = ie, validation: c }) => {
|
|
15
15
|
const [m, i] = j((o == null ? void 0 : o.length) || 0), u = h(() => o ?? [], [
|
|
16
16
|
o
|
|
17
|
-
]), d =
|
|
17
|
+
]), d = X(), g = q(), C = H(), { validateFields: p } = K(), F = c.predefined.objectArrayOptions.maxItems, O = h(() => Z({
|
|
18
18
|
form: {
|
|
19
19
|
fields: s,
|
|
20
20
|
steps: [
|
|
@@ -119,7 +119,7 @@ const ie = [], de = ({ id: e, fields: s, layout: a, value: o, onChange: n, error
|
|
|
119
119
|
isReadOnly: o
|
|
120
120
|
}, n, c, l);
|
|
121
121
|
}, ge = ({ className: e }) => {
|
|
122
|
-
const { id: s } = y(), { inputId: a, ariaDescribedBy: o } =
|
|
122
|
+
const { id: s } = y(), { inputId: a, ariaDescribedBy: o } = P(), n = M(null);
|
|
123
123
|
return U(() => {
|
|
124
124
|
var l;
|
|
125
125
|
(l = n.current) == null || l.focus({
|
|
@@ -132,14 +132,14 @@ const ie = [], de = ({ id: e, fields: s, layout: a, value: o, onChange: n, error
|
|
|
132
132
|
className: e,
|
|
133
133
|
inputMode: "numeric"
|
|
134
134
|
});
|
|
135
|
-
}, fe = ({ children: e, className: s }) => /* @__PURE__ */ t.createElement(
|
|
135
|
+
}, fe = ({ children: e, className: s }) => /* @__PURE__ */ t.createElement(k, {
|
|
136
136
|
slot: "decrement",
|
|
137
137
|
className: s
|
|
138
|
-
}, e), Ge = ({ children: e, className: s }) => /* @__PURE__ */ t.createElement(
|
|
138
|
+
}, e), Ge = ({ children: e, className: s }) => /* @__PURE__ */ t.createElement(k, {
|
|
139
139
|
slot: "increment",
|
|
140
140
|
className: s
|
|
141
141
|
}, e), S = ({ children: e, className: s, ...a }) => {
|
|
142
|
-
const { guestCount: o, onGuestCountChange: n } = a, { id: l, label: c, disabled: m, readOnly: i, onBlur: u, onFocus: d } = y(), { inputId: g, ariaDescribedBy: C } =
|
|
142
|
+
const { guestCount: o, onGuestCountChange: n } = a, { id: l, label: c, disabled: m, readOnly: i, onBlur: u, onFocus: d } = y(), { inputId: g, ariaDescribedBy: C } = P(), p = M(null);
|
|
143
143
|
U(() => {
|
|
144
144
|
var G;
|
|
145
145
|
(G = p.current) == null || G.focus({
|
|
@@ -204,7 +204,7 @@ const ie = [], de = ({ id: e, fields: s, layout: a, value: o, onChange: n, error
|
|
|
204
204
|
onFieldChange: m(p)
|
|
205
205
|
}))) : null;
|
|
206
206
|
}, Ie = ({ className: e, ...s }) => {
|
|
207
|
-
const { index: a, formView: o, values: n, errors: l, onFieldChange: c } = s, m =
|
|
207
|
+
const { index: a, formView: o, values: n, errors: l, onFieldChange: c } = s, m = X(), i = q(), u = H(), { validateFields: d } = K();
|
|
208
208
|
return /* @__PURE__ */ t.createElement("div", {
|
|
209
209
|
className: e,
|
|
210
210
|
"data-hook": `guest-${a}`
|
|
@@ -243,21 +243,21 @@ const Ne = "_container_p2psq_1", _e = "_countGroup_p2psq_8", Le = "_increment_p2
|
|
|
243
243
|
return /* @__PURE__ */ t.createElement(r, {
|
|
244
244
|
className: R.container
|
|
245
245
|
}, /* @__PURE__ */ t.createElement(r.Label, {
|
|
246
|
-
className:
|
|
246
|
+
className: w(te, v.label)
|
|
247
247
|
}), /* @__PURE__ */ t.createElement(r.GuestCount, null, /* @__PURE__ */ t.createElement(r.GuestCount.Control, {
|
|
248
248
|
className: e
|
|
249
249
|
}, /* @__PURE__ */ t.createElement(r.GuestCount.Input, {
|
|
250
250
|
className: v.innerInput
|
|
251
251
|
}), /* @__PURE__ */ t.createElement(r.GuestCount.Increment, {
|
|
252
252
|
className: R.increment
|
|
253
|
-
}, /* @__PURE__ */ t.createElement(
|
|
253
|
+
}, /* @__PURE__ */ t.createElement(x, {
|
|
254
254
|
style: {
|
|
255
255
|
transform: "rotate(180deg)"
|
|
256
256
|
}
|
|
257
257
|
})), /* @__PURE__ */ t.createElement(r.GuestCount.Decrement, {
|
|
258
258
|
className: R.decrement
|
|
259
|
-
}, /* @__PURE__ */ t.createElement(
|
|
260
|
-
className:
|
|
259
|
+
}, /* @__PURE__ */ t.createElement(x, null)))), /* @__PURE__ */ t.createElement(r.GuestToggle, {
|
|
260
|
+
className: w(se, v.checkbox)
|
|
261
261
|
}, /* @__PURE__ */ t.createElement(r.GuestToggle.Input, {
|
|
262
262
|
className: s
|
|
263
263
|
}), /* @__PURE__ */ t.createElement(r.GuestToggle.Label, {
|
|
@@ -265,7 +265,7 @@ const Ne = "_container_p2psq_1", _e = "_countGroup_p2psq_8", Le = "_increment_p2
|
|
|
265
265
|
})), /* @__PURE__ */ t.createElement(r.Guests, {
|
|
266
266
|
className: R.container
|
|
267
267
|
}, /* @__PURE__ */ t.createElement(r.Guests.Guest, null)));
|
|
268
|
-
},
|
|
268
|
+
}, Xe = () => /* @__PURE__ */ t.createElement(Oe, null);
|
|
269
269
|
export {
|
|
270
|
-
|
|
270
|
+
Xe as EventsRepeaterRAC
|
|
271
271
|
};
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import t from "react";
|
|
2
2
|
import { RicosViewer as m } from "@wix/ricos/viewer";
|
|
3
|
-
import
|
|
4
|
-
import { a, s as n, R as c } from "./radio-button-module-classes-
|
|
3
|
+
import a from "classnames";
|
|
4
|
+
import { a as s, s as n, R as c } from "./radio-button-module-classes-CFGf0Hzh.js";
|
|
5
5
|
import { E as i } from "./error-icon-hZxQ6DEy.js";
|
|
6
6
|
import { s as o } from "./field-rac.module-DP0lkkEv.js";
|
|
7
|
-
import {
|
|
7
|
+
import { V as E, ab as p, a6 as R, a7 as O, L as _, z as L, a8 as D } from "./form-DSpx-AO8.js";
|
|
8
8
|
import { o as I } from "./options-rac.module-_THNq6Qq.js";
|
|
9
|
-
import { u as S } from "./use-element-state-class-name-
|
|
10
|
-
const e = ({ children: r, className: l }) => /* @__PURE__ */ t.createElement(
|
|
9
|
+
import { u as S } from "./use-element-state-class-name-rXM_lHug.js";
|
|
10
|
+
const e = ({ children: r, className: l }) => /* @__PURE__ */ t.createElement(s, {
|
|
11
11
|
className: l
|
|
12
12
|
}, r);
|
|
13
|
-
e.Label =
|
|
14
|
-
e.Options =
|
|
15
|
-
e.Option =
|
|
16
|
-
e.Description =
|
|
17
|
-
e.Error =
|
|
13
|
+
e.Label = s.Label;
|
|
14
|
+
e.Options = s.Options;
|
|
15
|
+
e.Option = s.Option;
|
|
16
|
+
e.Description = s.Description;
|
|
17
|
+
e.Error = s.Error;
|
|
18
18
|
const N = ({ content: r, locale: l }) => /* @__PURE__ */ t.createElement(m, {
|
|
19
19
|
content: r,
|
|
20
20
|
locale: l
|
|
@@ -24,11 +24,11 @@ const N = ({ content: r, locale: l }) => /* @__PURE__ */ t.createElement(m, {
|
|
|
24
24
|
moduleClasses: c
|
|
25
25
|
});
|
|
26
26
|
return /* @__PURE__ */ t.createElement(e, null, /* @__PURE__ */ t.createElement(e.Label, {
|
|
27
|
-
className:
|
|
27
|
+
className: a(E, o.label)
|
|
28
28
|
}, /* @__PURE__ */ t.createElement(e.Label.Required, {
|
|
29
|
-
className:
|
|
29
|
+
className: a(p, o.requiredMark)
|
|
30
30
|
})), /* @__PURE__ */ t.createElement(e.Options, {
|
|
31
|
-
className:
|
|
31
|
+
className: a(R, I.options)
|
|
32
32
|
}, /* @__PURE__ */ t.createElement(e.Option, {
|
|
33
33
|
className: n.option
|
|
34
34
|
}, /* @__PURE__ */ t.createElement(e.Option.Input, {
|
|
@@ -36,13 +36,13 @@ const N = ({ content: r, locale: l }) => /* @__PURE__ */ t.createElement(m, {
|
|
|
36
36
|
}), /* @__PURE__ */ t.createElement(e.Option.Control, {
|
|
37
37
|
className: r
|
|
38
38
|
}), /* @__PURE__ */ t.createElement(e.Option.Label, {
|
|
39
|
-
className:
|
|
39
|
+
className: a(O, n.optionLabel)
|
|
40
40
|
}))), /* @__PURE__ */ t.createElement(e.Error, {
|
|
41
|
-
className:
|
|
41
|
+
className: a(_, o.error)
|
|
42
42
|
}, /* @__PURE__ */ t.createElement(i, null), /* @__PURE__ */ t.createElement(e.Error.Text, null)), /* @__PURE__ */ t.createElement(e.Description, {
|
|
43
|
-
className:
|
|
43
|
+
className: a(L, o.description)
|
|
44
44
|
}, N));
|
|
45
|
-
},
|
|
45
|
+
}, v = () => /* @__PURE__ */ t.createElement(u, null);
|
|
46
46
|
export {
|
|
47
|
-
|
|
47
|
+
v as EventsRsvpRAC
|
|
48
48
|
};
|
package/dist/component/{field-error-headless-DWc76YmY.js → field-error-headless-XNWmDH3E.js}
RENAMED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import t, { createContext as m, useContext as M } from "react";
|
|
2
|
-
import {
|
|
2
|
+
import { bz as c, bw as i, br as b, b8 as f, b9 as x } from "./form-DSpx-AO8.js";
|
|
3
3
|
const H = ({ className: r, children: e }) => {
|
|
4
|
-
const { description: s, target: o } = c(), { descriptionId: a } = i(), { language: n } =
|
|
4
|
+
const { description: s, target: o } = c(), { descriptionId: a } = i(), { language: n } = b();
|
|
5
5
|
return s ? /* @__PURE__ */ t.createElement("div", {
|
|
6
6
|
className: r,
|
|
7
7
|
id: a,
|
|
8
|
-
"data-hook":
|
|
8
|
+
"data-hook": f(o)
|
|
9
9
|
}, e({
|
|
10
10
|
content: s,
|
|
11
11
|
locale: n
|
|
@@ -21,7 +21,7 @@ const H = ({ className: r, children: e }) => {
|
|
|
21
21
|
value: p
|
|
22
22
|
}, /* @__PURE__ */ t.createElement("div", {
|
|
23
23
|
id: g,
|
|
24
|
-
"data-hook":
|
|
24
|
+
"data-hook": x(n),
|
|
25
25
|
className: r
|
|
26
26
|
}, e)) : null;
|
|
27
27
|
};
|
package/dist/component/{field-label-headless-DKBKqI2X.js → field-label-headless-CORRAJGt.js}
RENAMED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { bz as m, aQ as d, aR as p, bw as D, bJ as B } from "./form-DSpx-AO8.js";
|
|
2
2
|
import l from "react";
|
|
3
3
|
import { f as L } from "./find-child-C60k4CxG.js";
|
|
4
|
-
import { sdk as
|
|
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,7 +15,7 @@ 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: F = !1, requiredIndicatorType: q = d.ASTERISK, requiredIndicatorPlacement: O = p.AFTER_FIELD_TITLE, media: y, mediaSettings: s } = m(), { labelId: A, inputId: P } = D(), _ = a, b = g && !r ? L(e, i.Required) : null, c = y ? L(e, i.Image) : null, E = (s == null ? void 0 : s.imagePosition) ?? u.TOP, h = q === d.ASTERISK && O === p.BEFORE_FIELD_TITLE, f = (o ?? T) || U, I = /* @__PURE__ */ l.createElement(_, {
|
|
19
19
|
id: A,
|
|
20
20
|
htmlFor: a === "label" ? P : void 0,
|
|
21
21
|
className: t,
|