@wix/form-elements 1.106.0 → 1.108.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-D2F4vgf1.js → appointment-rac-ZAp8oWbK.js} +289 -290
- package/dist/component/{bookings-address-rac-_5S8J8_i.js → bookings-address-rac-x-Az7vHf.js} +1 -1
- package/dist/component/{bookings-email-rac-6vmDR9nS.js → bookings-email-rac-MoF_CaqB.js} +1 -1
- package/dist/component/{bookings-first-name-rac-DtTJ4T2K.js → bookings-first-name-rac-CWh3Rb0M.js} +1 -1
- package/dist/component/{bookings-header-rac-B3dsEwzR.js → bookings-header-rac-BVTiXUWk.js} +1 -1
- package/dist/component/{bookings-last-name-rac-B3idkbi8.js → bookings-last-name-rac-kXRRlyHl.js} +1 -1
- package/dist/component/{bookings-login-bar-rac-CrRBcQwT.js → bookings-login-bar-rac-C4Zr6kXE.js} +23 -24
- package/dist/component/{bookings-phone-rac-BE0yWNnj.js → bookings-phone-rac-2rz1m_xi.js} +1 -1
- package/dist/component/{bookings-rich-text-rac-CYo1l0-6.js → bookings-rich-text-rac-BEjGypQw.js} +1 -1
- package/dist/component/{checkbox-field-rac-boTtXVEt.js → checkbox-field-rac-DwEQLIaz.js} +66 -67
- package/dist/component/{checkbox-group-field-headless-DnkUvDm8.js → checkbox-group-field-headless-BsOww_QB.js} +37 -37
- package/dist/component/{checkbox-group-field-rac-DrDTgHMg.js → checkbox-group-field-rac-DTcZcVS6.js} +6 -6
- package/dist/component/{checkbox-group-rac-v3ozUBpo.js → checkbox-group-rac-DQsML-pW.js} +1 -1
- package/dist/component/{checkbox-rac-YSLE-RnG.js → checkbox-rac-irEBBOxP.js} +1 -1
- package/dist/component/{contacts-address-rac-C653yaHZ.js → contacts-address-rac-B5bSAYrm.js} +1 -1
- package/dist/component/{contacts-birthdate-rac-BeAQ6shx.js → contacts-birthdate-rac-DyScj8f4.js} +1 -1
- package/dist/component/{contacts-company-rac-BglKOoTG.js → contacts-company-rac-C5X9-jXa.js} +1 -1
- package/dist/component/{contacts-email-rac-D6m7ynfc.js → contacts-email-rac-B0vkfmrS.js} +1 -1
- package/dist/component/{contacts-first-name-rac-Dgxn0tUJ.js → contacts-first-name-rac-Cfil3U_e.js} +1 -1
- package/dist/component/{contacts-last-name-rac-1UyIuRKH.js → contacts-last-name-rac-CtPLE-7-.js} +1 -1
- package/dist/component/{contacts-phone-rac-BQ77BlW4.js → contacts-phone-rac-YkzsAoBZ.js} +1 -1
- package/dist/component/{contacts-position-rac-BUDUv7lv.js → contacts-position-rac-BS4j8QC-.js} +1 -1
- package/dist/component/{contacts-subscribe-rac-DdtA0qKW.js → contacts-subscribe-rac-z_9VsEZL.js} +1 -1
- package/dist/component/{contacts-tax-id-rac-WUaKcNl0.js → contacts-tax-id-rac-WFkmKyZv.js} +1 -1
- package/dist/component/{date-availability-XjBFq8jt.js → date-availability-NN3rxosk.js} +1 -1
- package/dist/component/{date-input-field-rac-aY2zuuKs.js → date-input-field-rac-mdhEC3oq.js} +88 -89
- package/dist/component/{date-input-rac-DRiP2_97.js → date-input-rac-CGciuoTx.js} +1 -1
- package/dist/component/{date-picker-field-rac-Bzl-d3Uj.js → date-picker-field-rac-CRZVODfF.js} +90 -91
- package/dist/component/{date-picker-rac-DHHUh8vn.js → date-picker-rac-Bfbvjy8W.js} +1 -1
- package/dist/component/{date-time-input-field-rac-DP_StuLr.js → date-time-input-field-rac-TDWBXZ44.js} +76 -77
- package/dist/component/{date-time-input-rac-B11KIxsf.js → date-time-input-rac-DY0qdSix.js} +1 -1
- package/dist/component/{dext-checkbox-group-rac-BHZBqyWv.js → dext-checkbox-group-rac-BFGM7SOt.js} +2 -2
- package/dist/component/{dext-checkbox-rac-BIlAqEvV.js → dext-checkbox-rac-DPZvTeUZ.js} +1 -1
- package/dist/component/{dext-date-picker-rac-CHBXNrZi.js → dext-date-picker-rac-Xd5kojsQ.js} +1 -1
- package/dist/component/{dext-date-time-input-rac-BYtliKry.js → dext-date-time-input-rac-C0RIdxJW.js} +1 -1
- package/dist/component/{dext-dropdown-rac-C2VPSFV5.js → dext-dropdown-rac-D1m8vJvm.js} +1 -1
- package/dist/component/{dext-email-rac-Fnb0Ggcs.js → dext-email-rac-BC81RFYY.js} +1 -1
- package/dist/component/{dext-number-input-rac-DopfSyFi.js → dext-number-input-rac-Z_ih9FfX.js} +1 -1
- package/dist/component/{dext-phone-rac-Rn4i_2rc.js → dext-phone-rac-s3BOnXuI.js} +1 -1
- package/dist/component/{dext-radio-group-rac-bNaskJpK.js → dext-radio-group-rac-CL3jcezs.js} +2 -2
- package/dist/component/{dext-rating-input-rac-DL6ZZd7d.js → dext-rating-input-rac-wz1EyP5b.js} +1 -1
- package/dist/component/{dext-tags-rac-TsUPoImO.js → dext-tags-rac-BY4Rf2BP.js} +2 -2
- package/dist/component/{dext-text-area-rac-BIuY7LTd.js → dext-text-area-rac-DRJzlsq8.js} +1 -1
- package/dist/component/{dext-text-input-rac-CSYPW0Qi.js → dext-text-input-rac-BGcRNNAi.js} +1 -1
- package/dist/component/{dext-url-input-rac-_g0lqGfW.js → dext-url-input-rac-CRAIm8yp.js} +1 -1
- package/dist/component/{donation-rac-BYKFtsyR.js → donation-rac-BlTfOIlE.js} +83 -84
- package/dist/component/{dropdown-field-headless-CBaqlNZi.js → dropdown-field-headless-DhzRAMcM.js} +12 -12
- package/dist/component/{dropdown-field-rac-CCAGSMm3.js → dropdown-field-rac-DXyY5we-.js} +5 -5
- package/dist/component/{dropdown-rac-C_EqUsZ1.js → dropdown-rac-C6YM6qxm.js} +1 -1
- package/dist/component/{ecom-address-rac-Bw9eH0iF.js → ecom-address-rac-CAdr7wya.js} +1 -1
- package/dist/component/{ecom-subscription-checkbox-rac-B5PVOO2a.js → ecom-subscription-checkbox-rac-Z2VMuCbt.js} +6 -6
- package/dist/component/{email-input-field-rac-B2kqQ6yo.js → email-input-field-rac-DpkfunVK.js} +53 -54
- package/dist/component/{events-repeater-rac--4OnUxWE.js → events-repeater-rac-CuJkdrPo.js} +61 -62
- package/dist/component/{events-rsvp-rac-CczCoo3T.js → events-rsvp-rac-BKWlSeQ9.js} +8 -8
- package/dist/component/{field-error-headless-D3-1L5sf.js → field-error-headless-tsg9FQ-_.js} +12 -12
- package/dist/component/{field-label-headless-Du4ckIVy.js → field-label-headless-CB8dEat8.js} +11 -11
- package/dist/component/{file-upload-rac-DbdkUbWM.js → file-upload-rac-ZdgYt646.js} +67 -68
- package/dist/component/{fixed-payment-rac-f9-01iDN.js → fixed-payment-rac-CuIQEeHh.js} +20 -21
- package/dist/component/{form-DQauhsho.js → form-0jt4L5xo.js} +3045 -2896
- package/dist/component/form.css +1 -1
- package/dist/component/form.js +1 -1
- package/dist/component/header-field-rac-CWVGzxKb.js +24 -0
- package/dist/component/{header-rac-CR9T3Pnu.js → header-rac-D6KsV-ko.js} +1 -1
- package/dist/component/{image-choice-rac-DJ_8v467.js → image-choice-rac-CUCyVS8c.js} +29 -30
- package/dist/component/{index-BB7d_9Dv.js → index-TJSnVtCO.js} +72 -72
- package/dist/component/{index-CcUTIUWM.js → index-iOqQidgV.js} +12 -12
- package/dist/component/{isObjectLike-xvPa_08X.js → isObjectLike-DQbx8r1c.js} +1 -1
- package/dist/component/{multiline-address-field-rac-CyaFOloE.js → multiline-address-field-rac-DtZ1NTfD.js} +186 -187
- package/dist/component/{multiline-address-rac-CaHGUN_f.js → multiline-address-rac-ub-_XzHU.js} +1 -1
- package/dist/component/number-input-field-rac-DLItn4DK.js +92 -0
- package/dist/component/{number-input-rac-DMKX6nhk.js → number-input-rac-UuxJzqEx.js} +1 -1
- package/dist/component/{password-rac-0RUXPAn6.js → password-rac-Di6q96Rn.js} +37 -38
- package/dist/component/{payment-input-rac-CHSZ3-Lt.js → payment-input-rac-CG6c4-Ge.js} +52 -53
- package/dist/component/{phone-input-field-rac-JmIFcP1e.js → phone-input-field-rac-D4JphCuT.js} +75 -76
- package/dist/component/{phone-rac-BLRnAPXP.js → phone-rac-_vDw2usa.js} +1 -1
- package/dist/component/{product-list-rac-BkF5tDwt.js → product-list-rac-CgxRlj1f.js} +73 -74
- package/dist/component/{quiz-radio-group-rac-32cCMTUS.js → quiz-radio-group-rac-bi26aGxN.js} +1 -1
- package/dist/component/{radio-button-module-classes-IOulhuSH.js → radio-button-module-classes-DDJq2ESf.js} +33 -33
- package/dist/component/{radio-group-field-rac-CJwku6e0.js → radio-group-field-rac-D1aMVO6l.js} +4 -4
- package/dist/component/{radio-group-rac-BiW-9Abj.js → radio-group-rac-HKC85M6t.js} +1 -1
- package/dist/component/{rating-input-field-rac-B9cwaROK.js → rating-input-field-rac-CpRehxFB.js} +42 -43
- package/dist/component/{rating-input-rac-BpwlNvzQ.js → rating-input-rac-BMuCZ3oj.js} +1 -1
- package/dist/component/{rich-content-rac.module-B1uyPmtK.js → rich-content-rac.module-mZ6xoAOd.js} +4 -4
- package/dist/component/rich-text-field-rac-CUK8V8Kf.js +21 -0
- package/dist/component/{rich-text-rac-VfeZxS27.js → rich-text-rac-B-7sR2FJ.js} +1 -1
- package/dist/component/{service-dropdown-rac-BCfs8IhW.js → service-dropdown-rac-1DDNT5bn.js} +43 -44
- package/dist/component/{services-multi-choice-rac-CCqdF_7P.js → services-multi-choice-rac-CB-6dwxz.js} +21 -22
- package/dist/component/{signature-rac-DOyMo3u0.js → signature-rac-7XBci6P2.js} +35 -36
- package/dist/component/{submit-button-rac-C2uA5DeE.js → submit-button-rac-B1-Mk8Gg.js} +21 -22
- package/dist/component/{tags-field-rac-C_uIw2by.js → tags-field-rac-CQ9Y7mq-.js} +49 -50
- package/dist/component/{tags-rac-1pQ-fpe_.js → tags-rac-Visic-Ml.js} +1 -1
- package/dist/component/{text-area-field-rac-DqlOkm7e.js → text-area-field-rac-C8fP1g-w.js} +31 -32
- package/dist/component/{text-area-rac-DPdkrFcH.js → text-area-rac-B6yZxzxm.js} +1 -1
- package/dist/component/{text-input-field-rac-CmXm6r1w.js → text-input-field-rac-CNjbOxD1.js} +5 -5
- package/dist/component/{text-input-headless-DD__2DFf.js → text-input-headless-Bm8PJGep.js} +12 -12
- package/dist/component/{text-input-rac-DRHyQEH7.js → text-input-rac-BEPC1Z-4.js} +1 -1
- package/dist/component/{time-input-rac-BJPIymQY.js → time-input-rac-3m6C_Jp5.js} +41 -42
- package/dist/component/url-input-field-rac-CIk_6Lf6.js +74 -0
- package/dist/component/{url-input-rac-C0ChQUzq.js → url-input-rac-DyVoygXH.js} +1 -1
- package/dist/component/use-dropdown-option-class-name-McG3ayOT.js +21 -0
- package/dist/component/{use-element-state-class-name-BatTc2bw.js → use-element-state-class-name-B9MBWX44.js} +1 -1
- package/dist/component/{use-is-forced-open-dropdown-B0jiPTmS.js → use-is-forced-open-dropdown-r5G_sZsO.js} +7 -7
- package/dist/component/{use-service-options-base-oeE7xszw.js → use-service-options-base-hcbkvhpw.js} +7 -7
- package/dist/component/use-text-input-class-name-SnurFqAr.js +23 -0
- package/dist/form.d.ts +3 -1
- package/package.json +2 -2
- package/dist/component/form-element-classes-bLFmhsKw.js +0 -137
- package/dist/component/header-field-rac-DamDk5BR.js +0 -25
- package/dist/component/number-input-field-rac-BuYUzDWV.js +0 -93
- package/dist/component/rich-text-field-rac-C_qE7Ykg.js +0 -22
- package/dist/component/url-input-field-rac-CFDYkZ6I.js +0 -75
- package/dist/component/use-dropdown-option-class-name-3L5ZmNLK.js +0 -21
- package/dist/component/use-text-input-class-name-LQ5S-NLh.js +0 -24
package/dist/component/{email-input-field-rac-B2kqQ6yo.js → email-input-field-rac-DpkfunVK.js}
RENAMED
|
@@ -1,20 +1,19 @@
|
|
|
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 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 { b2 as fe, bf as ge, b0 as ve, d as ye, b5 as Ee, b9 as de, b3 as be, a6 as Se, H as Oe, T as he, u as Ie, p as Ne, V as Ae } from "./form-0jt4L5xo.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 Fe from "@babel/runtime/helpers/defineProperty";
|
|
10
|
+
import Te from "html-parse-stringify";
|
|
11
|
+
import ke from "@babel/runtime/helpers/classCallCheck";
|
|
12
|
+
import xe from "@babel/runtime/helpers/createClass";
|
|
13
|
+
import { T as U } from "./text-input-headless-Bm8PJGep.js";
|
|
14
|
+
import { E as De } from "./error-icon-hZxQ6DEy.js";
|
|
15
15
|
import { s as H } from "./field-rac.module-B4l_0KRU.js";
|
|
16
|
-
import {
|
|
17
|
-
import { u as De } from "./use-text-input-class-name-LQ5S-NLh.js";
|
|
16
|
+
import { u as je } from "./use-text-input-class-name-SnurFqAr.js";
|
|
18
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 = {
|
|
19
18
|
"&": "&",
|
|
20
19
|
"&": "&",
|
|
@@ -55,9 +54,9 @@ function Re() {
|
|
|
55
54
|
}
|
|
56
55
|
(function() {
|
|
57
56
|
function e() {
|
|
58
|
-
|
|
57
|
+
ke(this, e), this.usedNamespaces = {};
|
|
59
58
|
}
|
|
60
|
-
return
|
|
59
|
+
return xe(e, [{
|
|
61
60
|
key: "addUsedNamespaces",
|
|
62
61
|
value: function(a) {
|
|
63
62
|
var o = this;
|
|
@@ -82,11 +81,11 @@ function K() {
|
|
|
82
81
|
typeof a[0] == "string" && (a[0] = "react-i18next:: ".concat(a[0])), (e = console).warn.apply(e, a);
|
|
83
82
|
}
|
|
84
83
|
}
|
|
85
|
-
var
|
|
84
|
+
var J = {};
|
|
86
85
|
function Be() {
|
|
87
86
|
for (var e = arguments.length, t = new Array(e), a = 0; a < e; a++)
|
|
88
87
|
t[a] = arguments[a];
|
|
89
|
-
typeof t[0] == "string" &&
|
|
88
|
+
typeof t[0] == "string" && J[t[0]] || (typeof t[0] == "string" && (J[t[0]] = /* @__PURE__ */ new Date()), K.apply(void 0, t));
|
|
90
89
|
}
|
|
91
90
|
var Ue = ["format"], Ve = ["children", "count", "parent", "i18nKey", "context", "tOptions", "values", "defaults", "components", "ns", "i18n", "t", "shouldUnescape"];
|
|
92
91
|
function Q(e, t) {
|
|
@@ -103,7 +102,7 @@ function p(e) {
|
|
|
103
102
|
for (var t = 1; t < arguments.length; t++) {
|
|
104
103
|
var a = arguments[t] != null ? arguments[t] : {};
|
|
105
104
|
t % 2 ? Q(Object(a), !0).forEach(function(o) {
|
|
106
|
-
|
|
105
|
+
Fe(e, o, a[o]);
|
|
107
106
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(a)) : Q(Object(a)).forEach(function(o) {
|
|
108
107
|
Object.defineProperty(e, o, Object.getOwnPropertyDescriptor(a, o));
|
|
109
108
|
});
|
|
@@ -147,13 +146,13 @@ function te(e, t) {
|
|
|
147
146
|
else if (d && v === 1 && typeof b == "string")
|
|
148
147
|
a += "<".concat(r.type, ">").concat(b, "</").concat(r.type, ">");
|
|
149
148
|
else {
|
|
150
|
-
var
|
|
151
|
-
a += "<".concat(g, ">").concat(
|
|
149
|
+
var k = te(b, t);
|
|
150
|
+
a += "<".concat(g, ">").concat(k, "</").concat(g, ">");
|
|
152
151
|
}
|
|
153
152
|
} else if (r === null)
|
|
154
153
|
K("Trans: the passed in value is invalid - seems you passed in a null child.");
|
|
155
154
|
else if (L(r) === "object") {
|
|
156
|
-
var O = r.format,
|
|
155
|
+
var O = r.format, F = ee(r, Ue), A = Object.keys(F);
|
|
157
156
|
if (A.length === 1) {
|
|
158
157
|
var S = O ? "".concat(A[0], ", ").concat(O) : A[0];
|
|
159
158
|
a += "{{".concat(S, "}}");
|
|
@@ -175,8 +174,8 @@ function Ge(e, t, a, o, c, r) {
|
|
|
175
174
|
});
|
|
176
175
|
}
|
|
177
176
|
b(e);
|
|
178
|
-
var
|
|
179
|
-
function
|
|
177
|
+
var k = Te.parse("<0>".concat(t, "</0>")), O = p(p({}, d), c);
|
|
178
|
+
function F(y, h, s) {
|
|
180
179
|
var i = G(y), I = S(i, h.children, s);
|
|
181
180
|
return qe(i) && I.length === 0 ? i : I;
|
|
182
181
|
}
|
|
@@ -188,7 +187,7 @@ function Ge(e, t, a, o, c, r) {
|
|
|
188
187
|
function S(y, h, s) {
|
|
189
188
|
var i = M(y), I = M(h);
|
|
190
189
|
return I.reduce(function(l, n, E) {
|
|
191
|
-
var
|
|
190
|
+
var T = n.children && n.children[0] && n.children[0].content && a.services.interpolator.interpolate(n.children[0].content, O, a.language);
|
|
192
191
|
if (n.type === "tag") {
|
|
193
192
|
var N = i[parseInt(n.name, 10)];
|
|
194
193
|
!N && s.length === 1 && s[0][n.name] && (N = s[0][n.name]), N || (N = {});
|
|
@@ -199,7 +198,7 @@ function Ge(e, t, a, o, c, r) {
|
|
|
199
198
|
var q = a.services.interpolator.interpolate(m, O, a.language);
|
|
200
199
|
l.push(q);
|
|
201
200
|
} else if (Y(m) || V) {
|
|
202
|
-
var ne =
|
|
201
|
+
var ne = F(m, n, s);
|
|
203
202
|
A(m, ne, l, E);
|
|
204
203
|
} else if (P) {
|
|
205
204
|
var oe = S(i, n.children, s);
|
|
@@ -208,7 +207,7 @@ function Ge(e, t, a, o, c, r) {
|
|
|
208
207
|
}), oe));
|
|
209
208
|
} else if (Number.isNaN(parseFloat(n.name)))
|
|
210
209
|
if (_) {
|
|
211
|
-
var re =
|
|
210
|
+
var re = F(m, n, s);
|
|
212
211
|
A(m, re, l, E, n.voidElement);
|
|
213
212
|
} else if (o.transSupportBasicHtmlNodes && g.indexOf(n.name) > -1)
|
|
214
213
|
if (n.voidElement)
|
|
@@ -228,30 +227,30 @@ function Ge(e, t, a, o, c, r) {
|
|
|
228
227
|
l.push("<".concat(n.name, ">").concat(ce, "</").concat(n.name, ">"));
|
|
229
228
|
}
|
|
230
229
|
else if (L(m) === "object" && !x) {
|
|
231
|
-
var $ = n.children[0] ?
|
|
230
|
+
var $ = n.children[0] ? T : null;
|
|
232
231
|
$ && l.push($);
|
|
233
|
-
} else n.children.length === 1 &&
|
|
232
|
+
} else n.children.length === 1 && T ? l.push(w(m, p(p({}, m.props), {}, {
|
|
234
233
|
key: E
|
|
235
|
-
}),
|
|
234
|
+
}), T)) : l.push(w(m, p(p({}, m.props), {}, {
|
|
236
235
|
key: E
|
|
237
236
|
})));
|
|
238
237
|
} else if (n.type === "text") {
|
|
239
|
-
var W = o.transWrapTextNodes,
|
|
238
|
+
var W = o.transWrapTextNodes, X = r ? o.unescape(a.services.interpolator.interpolate(n.content, O, a.language)) : a.services.interpolator.interpolate(n.content, O, a.language);
|
|
240
239
|
W ? l.push(R(W, {
|
|
241
240
|
key: "".concat(n.name, "-").concat(E)
|
|
242
|
-
},
|
|
241
|
+
}, X)) : l.push(X);
|
|
243
242
|
}
|
|
244
243
|
return l;
|
|
245
244
|
}, []);
|
|
246
245
|
}
|
|
247
|
-
var
|
|
246
|
+
var D = S([{
|
|
248
247
|
dummy: !0,
|
|
249
248
|
children: e || []
|
|
250
|
-
}],
|
|
251
|
-
return G(
|
|
249
|
+
}], k, M(e || []));
|
|
250
|
+
return G(D[0]);
|
|
252
251
|
}
|
|
253
252
|
function $e(e) {
|
|
254
|
-
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, D = ee(e, Ve), y = Z(He) || {}, h = y.i18n, s = y.defaultNS, i = F || h || Ke();
|
|
255
254
|
if (!i)
|
|
256
255
|
return Be("You will need to pass in an i18next instance by using i18nextReactModule"), t;
|
|
257
256
|
var I = A || i.t.bind(i) || function(q) {
|
|
@@ -260,7 +259,7 @@ function $e(e) {
|
|
|
260
259
|
r && (v.context = r);
|
|
261
260
|
var l = p(p({}, Re()), i.options && i.options.react), n = O || I.ns || s || i.options && i.options.defaultNS;
|
|
262
261
|
n = typeof n == "string" ? [n] : n || ["translation"];
|
|
263
|
-
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 : {
|
|
264
263
|
interpolation: p(p({}, v.interpolation), {}, {
|
|
265
264
|
prefix: "#$?",
|
|
266
265
|
suffix: "?$#"
|
|
@@ -270,11 +269,11 @@ function $e(e) {
|
|
|
270
269
|
}, d), m), {}, {
|
|
271
270
|
defaultValue: E,
|
|
272
271
|
ns: n
|
|
273
|
-
}), V = N ? I(N, x) : E, P = Ge(
|
|
274
|
-
return _ ? R(_,
|
|
272
|
+
}), V = N ? I(N, x) : E, P = Ge(k || t, V, i, l, x, S), _ = o !== void 0 ? o : l.defaultTransParent;
|
|
273
|
+
return _ ? R(_, D, P) : P;
|
|
275
274
|
}
|
|
276
|
-
const We = "email-mistype-suggestion",
|
|
277
|
-
function
|
|
275
|
+
const We = "email-mistype-suggestion", Xe = "email-mistype-suggestion-link", ae = /* @__PURE__ */ z(void 0);
|
|
276
|
+
function Je() {
|
|
278
277
|
const e = Z(ae);
|
|
279
278
|
if (e === void 0)
|
|
280
279
|
throw new Error("useEmailSuggestion must be used inside <EmailInput>");
|
|
@@ -286,7 +285,7 @@ const Qe = ({ activeSuggestion: e, applySuggestion: t, children: a }) => /* @__P
|
|
|
286
285
|
applySuggestion: t
|
|
287
286
|
}
|
|
288
287
|
}, a), ze = ({ className: e }) => {
|
|
289
|
-
const { suggestionId: t } = fe(), { activeSuggestion: a, applySuggestion: o } =
|
|
288
|
+
const { suggestionId: t } = fe(), { activeSuggestion: a, applySuggestion: o } = Je(), { t: c, i18n: r } = ge();
|
|
290
289
|
return /* @__PURE__ */ u.createElement("div", {
|
|
291
290
|
id: t,
|
|
292
291
|
"data-hook": We,
|
|
@@ -303,7 +302,7 @@ const Qe = ({ activeSuggestion: e, applySuggestion: t, children: a }) => /* @__P
|
|
|
303
302
|
/* @__PURE__ */ u.createElement("button", {
|
|
304
303
|
key: "0",
|
|
305
304
|
type: "button",
|
|
306
|
-
"data-hook":
|
|
305
|
+
"data-hook": Xe,
|
|
307
306
|
"aria-label": c("input.email.mistype-check.fix-aria-label", {
|
|
308
307
|
email: a
|
|
309
308
|
}),
|
|
@@ -450,20 +449,20 @@ const Qe = ({ activeSuggestion: e, applySuggestion: t, children: a }) => /* @__P
|
|
|
450
449
|
validate: v
|
|
451
450
|
};
|
|
452
451
|
}, f = ({ children: e }) => {
|
|
453
|
-
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: D } = at({
|
|
454
453
|
email: a,
|
|
455
454
|
hasError: v
|
|
456
|
-
}), { 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 = () => {
|
|
457
456
|
o(s), y(t);
|
|
458
457
|
}, l = () => {
|
|
459
|
-
|
|
460
|
-
}, 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), T = C(e, f.Description), N = C(e, f.Error), m = C(e, f.Suggestion);
|
|
461
460
|
return /* @__PURE__ */ u.createElement(Se.Provider, {
|
|
462
461
|
value: i
|
|
463
462
|
}, /* @__PURE__ */ u.createElement(Qe, {
|
|
464
463
|
activeSuggestion: s,
|
|
465
464
|
applySuggestion: I
|
|
466
|
-
}, /* @__PURE__ */ u.createElement(
|
|
465
|
+
}, /* @__PURE__ */ u.createElement(F, {
|
|
467
466
|
fieldId: t,
|
|
468
467
|
renderLabel: () => n,
|
|
469
468
|
renderInput: () => /* @__PURE__ */ u.createElement(pe, {
|
|
@@ -477,7 +476,7 @@ const Qe = ({ activeSuggestion: e, applySuggestion: t, children: a }) => /* @__P
|
|
|
477
476
|
onBlur: l,
|
|
478
477
|
onFocus: b
|
|
479
478
|
}, E),
|
|
480
|
-
renderDescription: () => /* @__PURE__ */ u.createElement(u.Fragment, null, N, m,
|
|
479
|
+
renderDescription: () => /* @__PURE__ */ u.createElement(u.Fragment, null, N, m, T)
|
|
481
480
|
})));
|
|
482
481
|
};
|
|
483
482
|
f.Label = U.Label;
|
|
@@ -490,22 +489,22 @@ const nt = "_suggestion_lysve_1", ot = {
|
|
|
490
489
|
}, rt = ({ content: e, locale: t }) => /* @__PURE__ */ u.createElement(ie, {
|
|
491
490
|
content: e,
|
|
492
491
|
locale: t
|
|
493
|
-
}),
|
|
494
|
-
const e =
|
|
492
|
+
}), ht = () => {
|
|
493
|
+
const e = je();
|
|
495
494
|
return /* @__PURE__ */ u.createElement(f, null, /* @__PURE__ */ u.createElement(f.Label, {
|
|
496
|
-
className:
|
|
495
|
+
className: j(Oe, H.label)
|
|
497
496
|
}, /* @__PURE__ */ u.createElement(f.Label.Required, {
|
|
498
|
-
className:
|
|
497
|
+
className: j(he, H.requiredMark)
|
|
499
498
|
})), /* @__PURE__ */ u.createElement(f.Input, {
|
|
500
499
|
className: e
|
|
501
500
|
}), /* @__PURE__ */ u.createElement(f.Error, {
|
|
502
|
-
className:
|
|
503
|
-
}, /* @__PURE__ */ u.createElement(
|
|
504
|
-
className:
|
|
501
|
+
className: j(Ie, H.error)
|
|
502
|
+
}, /* @__PURE__ */ u.createElement(De, null), /* @__PURE__ */ u.createElement(f.Error.Text, null)), /* @__PURE__ */ u.createElement(f.Description, {
|
|
503
|
+
className: j(Ne, H.description)
|
|
505
504
|
}, rt), /* @__PURE__ */ u.createElement(f.Suggestion, {
|
|
506
|
-
className:
|
|
505
|
+
className: j(Ae, ot.suggestion)
|
|
507
506
|
}));
|
|
508
507
|
};
|
|
509
508
|
export {
|
|
510
|
-
|
|
509
|
+
ht as E
|
|
511
510
|
};
|
|
@@ -1,21 +1,20 @@
|
|
|
1
|
-
import t, { useState as
|
|
2
|
-
import
|
|
1
|
+
import t, { useState as j, useMemo as B, useCallback as V, useRef as k } from "react";
|
|
2
|
+
import x from "classnames";
|
|
3
3
|
import { NumberField as q, CheckboxField as J, CheckboxButton as Q, Group as W, Input as Y, Button as w } from "react-aria-components";
|
|
4
|
-
import {
|
|
4
|
+
import { bb as H, bc as z, b1 as K, b6 as P, au as Z, b5 as L, b2 as X, b7 as U, aa as ee, H as te, h as se, m as ne, l as oe } from "./form-0jt4L5xo.js";
|
|
5
5
|
import { f as C, a as y } from "./find-child-C60k4CxG.js";
|
|
6
|
-
import { L as
|
|
7
|
-
import { S as
|
|
8
|
-
import { u as
|
|
9
|
-
import { C as
|
|
10
|
-
import { C as
|
|
6
|
+
import { L as re } from "./field-label-headless-CB8dEat8.js";
|
|
7
|
+
import { S as ae } from "./selection-indicator-XQ8MYHUQ.js";
|
|
8
|
+
import { u as le } from "./use-invoke-callback-UH73A_J3.js";
|
|
9
|
+
import { C as M } from "./chevron-down-icon-CcpVm6B-.js";
|
|
10
|
+
import { C as ce } from "./checkbox-indicator-module-classes-BpeSpGsW.js";
|
|
11
11
|
import { s as v } from "./field-rac.module-B4l_0KRU.js";
|
|
12
|
-
import {
|
|
13
|
-
import { u as
|
|
14
|
-
import { u as me } from "./use-text-input-class-name-LQ5S-NLh.js";
|
|
12
|
+
import { u as ue } from "./use-element-state-class-name-B9MBWX44.js";
|
|
13
|
+
import { u as me } from "./use-text-input-class-name-SnurFqAr.js";
|
|
15
14
|
const ie = [], de = ({ id: e, fields: s, layout: a, value: o, onChange: n, errors: l = ie, validation: c }) => {
|
|
16
|
-
const [m, i] =
|
|
15
|
+
const [m, i] = j((o == null ? void 0 : o.length) || 0), u = B(() => o ?? [], [
|
|
17
16
|
o
|
|
18
|
-
]), d =
|
|
17
|
+
]), d = H(), g = z(), E = K(), { validateFields: p } = P(), F = c.predefined.objectArrayOptions.maxItems, O = B(() => Z({
|
|
19
18
|
form: {
|
|
20
19
|
fields: s,
|
|
21
20
|
steps: [
|
|
@@ -30,16 +29,16 @@ const ie = [], de = ({ id: e, fields: s, layout: a, value: o, onChange: n, error
|
|
|
30
29
|
s,
|
|
31
30
|
a,
|
|
32
31
|
e
|
|
33
|
-
]), _ = B(() => l.reduce((
|
|
32
|
+
]), _ = B(() => l.reduce((b, I) => {
|
|
34
33
|
const [h, N] = I.errorPath.split("/"), A = parseInt(h, 10);
|
|
35
|
-
return
|
|
34
|
+
return b[A] || (b[A] = []), b[A].push({
|
|
36
35
|
...I,
|
|
37
36
|
errorPath: N
|
|
38
|
-
}),
|
|
37
|
+
}), b;
|
|
39
38
|
}, []), [
|
|
40
39
|
l
|
|
41
|
-
]),
|
|
42
|
-
const I = Number.isNaN(
|
|
40
|
+
]), G = V((b) => {
|
|
41
|
+
const I = Number.isNaN(b) ? 0 : Math.min(Math.max(b, 0), F);
|
|
43
42
|
i(I), n == null || n(Array.from({
|
|
44
43
|
length: I
|
|
45
44
|
}, (h, N) => u[N] ?? {}));
|
|
@@ -47,12 +46,12 @@ const ie = [], de = ({ id: e, fields: s, layout: a, value: o, onChange: n, error
|
|
|
47
46
|
F,
|
|
48
47
|
u,
|
|
49
48
|
n
|
|
50
|
-
]), D = V((
|
|
49
|
+
]), D = V((b) => (I, h) => {
|
|
51
50
|
const N = Array.from({
|
|
52
51
|
length: m
|
|
53
|
-
}, (A,
|
|
54
|
-
N[
|
|
55
|
-
...N[
|
|
52
|
+
}, (A, $) => u[$] ?? {});
|
|
53
|
+
N[b] = {
|
|
54
|
+
...N[b],
|
|
56
55
|
[I]: h
|
|
57
56
|
}, n == null || n(N);
|
|
58
57
|
}, [
|
|
@@ -67,14 +66,14 @@ const ie = [], de = ({ id: e, fields: s, layout: a, value: o, onChange: n, error
|
|
|
67
66
|
errorsByIndex: _,
|
|
68
67
|
formView: O,
|
|
69
68
|
formSchema: d,
|
|
70
|
-
formFields:
|
|
69
|
+
formFields: g,
|
|
71
70
|
fieldActions: E,
|
|
72
71
|
validateFields: p,
|
|
73
|
-
changeGuestCount:
|
|
72
|
+
changeGuestCount: G,
|
|
74
73
|
changeGuestField: D
|
|
75
74
|
};
|
|
76
75
|
}, pe = [], Ee = {}, r = ({ children: e, className: s }) => {
|
|
77
|
-
const a = L(), { id: o, FieldLayout: n } = a, { guestLimit: l, guestCount: c, guests: m, errorsByIndex: i, formView: u, changeGuestCount: d, changeGuestField:
|
|
76
|
+
const a = L(), { id: o, FieldLayout: n } = a, { guestLimit: l, guestCount: c, guests: m, errorsByIndex: i, formView: u, changeGuestCount: d, changeGuestField: g } = de(a), E = C(e, r.Label), p = C(e, r.GuestCount), F = C(e, r.GuestToggle), O = C(e, r.Guests), _ = l > 1;
|
|
78
77
|
return /* @__PURE__ */ t.createElement(n, {
|
|
79
78
|
fieldId: o,
|
|
80
79
|
renderLabel: () => _ ? E : null,
|
|
@@ -92,14 +91,14 @@ const ie = [], de = ({ id: e, fields: s, layout: a, value: o, onChange: n, error
|
|
|
92
91
|
guests: m,
|
|
93
92
|
errorsByIndex: i,
|
|
94
93
|
formView: u,
|
|
95
|
-
onGuestFieldChange:
|
|
94
|
+
onGuestFieldChange: g
|
|
96
95
|
})),
|
|
97
96
|
renderDescription: () => null
|
|
98
97
|
});
|
|
99
|
-
}, Ce = ({ className: e }) => /* @__PURE__ */ t.createElement(
|
|
98
|
+
}, Ce = ({ className: e }) => /* @__PURE__ */ t.createElement(re, {
|
|
100
99
|
className: e
|
|
101
|
-
}, null),
|
|
102
|
-
const { guestLimit: a, guestCount: o, onGuestCountChange: n } = s, { label: l, disabled: c, readOnly: m, onBlur: i, onFocus: u } = L(), d =
|
|
100
|
+
}, null), f = ({ children: e, ...s }) => {
|
|
101
|
+
const { guestLimit: a, guestCount: o, onGuestCountChange: n } = s, { label: l, disabled: c, readOnly: m, onBlur: i, onFocus: u } = L(), d = le(i), g = C(e, f.Control);
|
|
103
102
|
return /* @__PURE__ */ t.createElement(q, {
|
|
104
103
|
"aria-label": l,
|
|
105
104
|
value: o,
|
|
@@ -111,17 +110,17 @@ const ie = [], de = ({ id: e, fields: s, layout: a, value: o, onChange: n, error
|
|
|
111
110
|
isReadOnly: m,
|
|
112
111
|
onBlur: d,
|
|
113
112
|
onFocus: u
|
|
114
|
-
},
|
|
115
|
-
},
|
|
116
|
-
const { disabled: a, readOnly: o } = L(), n = C(e,
|
|
113
|
+
}, g);
|
|
114
|
+
}, be = ({ children: e, className: s }) => {
|
|
115
|
+
const { disabled: a, readOnly: o } = L(), n = C(e, f.Input), l = C(e, f.Decrement), c = C(e, f.Increment);
|
|
117
116
|
return /* @__PURE__ */ t.createElement(W, {
|
|
118
117
|
className: s,
|
|
119
118
|
isDisabled: a,
|
|
120
119
|
isReadOnly: o
|
|
121
120
|
}, n, c, l);
|
|
122
|
-
},
|
|
123
|
-
const { id: s } = L(), { inputId: a, ariaDescribedBy: o } = X(), n =
|
|
124
|
-
return
|
|
121
|
+
}, ge = ({ className: e }) => {
|
|
122
|
+
const { id: s } = L(), { inputId: a, ariaDescribedBy: o } = X(), n = k(null);
|
|
123
|
+
return U(() => {
|
|
125
124
|
var l;
|
|
126
125
|
(l = n.current) == null || l.focus();
|
|
127
126
|
}, s), /* @__PURE__ */ t.createElement(Y, {
|
|
@@ -131,26 +130,26 @@ const ie = [], de = ({ id: e, fields: s, layout: a, value: o, onChange: n, error
|
|
|
131
130
|
className: e,
|
|
132
131
|
inputMode: "numeric"
|
|
133
132
|
});
|
|
134
|
-
},
|
|
133
|
+
}, fe = ({ children: e, className: s }) => /* @__PURE__ */ t.createElement(w, {
|
|
135
134
|
slot: "decrement",
|
|
136
135
|
className: s
|
|
137
|
-
}, e),
|
|
136
|
+
}, e), Ge = ({ children: e, className: s }) => /* @__PURE__ */ t.createElement(w, {
|
|
138
137
|
slot: "increment",
|
|
139
138
|
className: s
|
|
140
139
|
}, e), S = ({ children: e, className: s, ...a }) => {
|
|
141
|
-
const { guestCount: o, onGuestCountChange: n } = a, { id: l, label: c, disabled: m, readOnly: i, onBlur: u, onFocus: d } = L(), { inputId:
|
|
142
|
-
|
|
143
|
-
var
|
|
144
|
-
(
|
|
140
|
+
const { guestCount: o, onGuestCountChange: n } = a, { id: l, label: c, disabled: m, readOnly: i, onBlur: u, onFocus: d } = L(), { inputId: g, ariaDescribedBy: E } = X(), p = k(null);
|
|
141
|
+
U(() => {
|
|
142
|
+
var G;
|
|
143
|
+
(G = p.current) == null || G.focus();
|
|
145
144
|
}, l);
|
|
146
|
-
const F = C(e, S.Input), O = C(e, S.Label), _ = V((
|
|
147
|
-
n(
|
|
145
|
+
const F = C(e, S.Input), O = C(e, S.Label), _ = V((G) => {
|
|
146
|
+
n(G ? 1 : 0);
|
|
148
147
|
}, [
|
|
149
148
|
n
|
|
150
149
|
]);
|
|
151
150
|
return /* @__PURE__ */ t.createElement(J, {
|
|
152
151
|
inputRef: p,
|
|
153
|
-
id:
|
|
152
|
+
id: g,
|
|
154
153
|
"aria-describedby": E,
|
|
155
154
|
isSelected: o > 0,
|
|
156
155
|
onChange: _,
|
|
@@ -160,8 +159,8 @@ const ie = [], de = ({ id: e, fields: s, layout: a, value: o, onChange: n, error
|
|
|
160
159
|
onFocus: d
|
|
161
160
|
}, /* @__PURE__ */ t.createElement(Q, {
|
|
162
161
|
className: s
|
|
163
|
-
}, ({ isSelected:
|
|
164
|
-
isSelected:
|
|
162
|
+
}, ({ isSelected: G, isHovered: D }) => /* @__PURE__ */ t.createElement(t.Fragment, null, y(F, {
|
|
163
|
+
isSelected: G,
|
|
165
164
|
isHovered: D
|
|
166
165
|
}), y(O, {
|
|
167
166
|
label: c
|
|
@@ -186,12 +185,12 @@ const ie = [], de = ({ id: e, fields: s, layout: a, value: o, onChange: n, error
|
|
|
186
185
|
c,
|
|
187
186
|
i,
|
|
188
187
|
u
|
|
189
|
-
]),
|
|
188
|
+
]), g = C(e, T.Guest);
|
|
190
189
|
return o ? /* @__PURE__ */ t.createElement("div", {
|
|
191
190
|
className: s
|
|
192
191
|
}, Array.from({
|
|
193
192
|
length: o
|
|
194
|
-
}, (E, p) => y(
|
|
193
|
+
}, (E, p) => y(g, {
|
|
195
194
|
key: p,
|
|
196
195
|
index: p,
|
|
197
196
|
formView: d,
|
|
@@ -200,7 +199,7 @@ const ie = [], de = ({ id: e, fields: s, layout: a, value: o, onChange: n, error
|
|
|
200
199
|
onFieldChange: m(p)
|
|
201
200
|
}))) : null;
|
|
202
201
|
}, Ie = ({ className: e, ...s }) => {
|
|
203
|
-
const { index: a, formView: o, values: n, errors: l, onFieldChange: c } = s, m =
|
|
202
|
+
const { index: a, formView: o, values: n, errors: l, onFieldChange: c } = s, m = H(), i = z(), u = K(), { validateFields: d } = P();
|
|
204
203
|
return /* @__PURE__ */ t.createElement("div", {
|
|
205
204
|
className: e,
|
|
206
205
|
"data-hook": `guest-${a}`
|
|
@@ -215,15 +214,15 @@ const ie = [], de = ({ id: e, fields: s, layout: a, value: o, onChange: n, error
|
|
|
215
214
|
fieldActions: u
|
|
216
215
|
}));
|
|
217
216
|
};
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
S.Input =
|
|
217
|
+
f.Control = be;
|
|
218
|
+
f.Input = ge;
|
|
219
|
+
f.Decrement = fe;
|
|
220
|
+
f.Increment = Ge;
|
|
221
|
+
S.Input = ae;
|
|
223
222
|
S.Label = Fe;
|
|
224
223
|
T.Guest = Ie;
|
|
225
224
|
r.Label = Ce;
|
|
226
|
-
r.GuestCount =
|
|
225
|
+
r.GuestCount = f;
|
|
227
226
|
r.GuestToggle = S;
|
|
228
227
|
r.Guests = T;
|
|
229
228
|
const Ne = "_container_z48oy_1", _e = "_countGroup_z48oy_8", ye = "_increment_z48oy_18", Le = "_decrement_z48oy_19", R = {
|
|
@@ -233,31 +232,31 @@ const Ne = "_container_z48oy_1", _e = "_countGroup_z48oy_8", ye = "_increment_z4
|
|
|
233
232
|
decrement: Le
|
|
234
233
|
}, Oe = () => {
|
|
235
234
|
const e = me(R.countGroup), s = ue({
|
|
236
|
-
globalClasses:
|
|
237
|
-
moduleClasses:
|
|
235
|
+
globalClasses: oe,
|
|
236
|
+
moduleClasses: ce
|
|
238
237
|
});
|
|
239
238
|
return /* @__PURE__ */ t.createElement(r, {
|
|
240
239
|
className: R.container
|
|
241
240
|
}, /* @__PURE__ */ t.createElement(r.Label, {
|
|
242
|
-
className:
|
|
241
|
+
className: x(te, v.label)
|
|
243
242
|
}), /* @__PURE__ */ t.createElement(r.GuestCount, null, /* @__PURE__ */ t.createElement(r.GuestCount.Control, {
|
|
244
243
|
className: e
|
|
245
244
|
}, /* @__PURE__ */ t.createElement(r.GuestCount.Input, {
|
|
246
245
|
className: v.innerInput
|
|
247
246
|
}), /* @__PURE__ */ t.createElement(r.GuestCount.Increment, {
|
|
248
247
|
className: R.increment
|
|
249
|
-
}, /* @__PURE__ */ t.createElement(
|
|
248
|
+
}, /* @__PURE__ */ t.createElement(M, {
|
|
250
249
|
style: {
|
|
251
250
|
transform: "rotate(180deg)"
|
|
252
251
|
}
|
|
253
252
|
})), /* @__PURE__ */ t.createElement(r.GuestCount.Decrement, {
|
|
254
253
|
className: R.decrement
|
|
255
|
-
}, /* @__PURE__ */ t.createElement(
|
|
256
|
-
className:
|
|
254
|
+
}, /* @__PURE__ */ t.createElement(M, null)))), /* @__PURE__ */ t.createElement(r.GuestToggle, {
|
|
255
|
+
className: x(se, v.checkbox)
|
|
257
256
|
}, /* @__PURE__ */ t.createElement(r.GuestToggle.Input, {
|
|
258
257
|
className: s
|
|
259
258
|
}), /* @__PURE__ */ t.createElement(r.GuestToggle.Label, {
|
|
260
|
-
className:
|
|
259
|
+
className: ne
|
|
261
260
|
})), /* @__PURE__ */ t.createElement(r.Guests, {
|
|
262
261
|
className: R.container
|
|
263
262
|
}, /* @__PURE__ */ t.createElement(r.Guests.Guest, null)));
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import t from "react";
|
|
2
2
|
import { RicosViewer as m } from "@wix/ricos/viewer";
|
|
3
3
|
import s from "classnames";
|
|
4
|
-
import { a, s as o, R as c } from "./radio-button-module-classes-
|
|
4
|
+
import { a, s as o, R as c } from "./radio-button-module-classes-DDJq2ESf.js";
|
|
5
5
|
import { E } from "./error-icon-hZxQ6DEy.js";
|
|
6
6
|
import { s as l } from "./field-rac.module-B4l_0KRU.js";
|
|
7
|
-
import {
|
|
8
|
-
import { u as I } from "./use-element-state-class-name-
|
|
7
|
+
import { H as i, T as p, O, P as R, u as _, p as L, Q as D } from "./form-0jt4L5xo.js";
|
|
8
|
+
import { u as I } from "./use-element-state-class-name-B9MBWX44.js";
|
|
9
9
|
const e = ({ children: r, className: n }) => /* @__PURE__ */ t.createElement(a, {
|
|
10
10
|
className: n
|
|
11
11
|
}, r);
|
|
@@ -17,7 +17,7 @@ e.Error = a.Error;
|
|
|
17
17
|
const N = ({ content: r, locale: n }) => /* @__PURE__ */ t.createElement(m, {
|
|
18
18
|
content: r,
|
|
19
19
|
locale: n
|
|
20
|
-
}),
|
|
20
|
+
}), u = () => {
|
|
21
21
|
const r = I({
|
|
22
22
|
globalClasses: D,
|
|
23
23
|
moduleClasses: c
|
|
@@ -29,7 +29,7 @@ const N = ({ content: r, locale: n }) => /* @__PURE__ */ t.createElement(m, {
|
|
|
29
29
|
}, /* @__PURE__ */ t.createElement(e.Label.Required, {
|
|
30
30
|
className: s(p, l.requiredMark)
|
|
31
31
|
})), /* @__PURE__ */ t.createElement(e.Options, {
|
|
32
|
-
className: s(
|
|
32
|
+
className: s(O, o.options)
|
|
33
33
|
}, /* @__PURE__ */ t.createElement(e.Option, {
|
|
34
34
|
className: o.option
|
|
35
35
|
}, /* @__PURE__ */ t.createElement(e.Option.Input, {
|
|
@@ -37,13 +37,13 @@ const N = ({ content: r, locale: n }) => /* @__PURE__ */ t.createElement(m, {
|
|
|
37
37
|
}), /* @__PURE__ */ t.createElement(e.Option.Control, {
|
|
38
38
|
className: r
|
|
39
39
|
}), /* @__PURE__ */ t.createElement(e.Option.Label, {
|
|
40
|
-
className: s(
|
|
40
|
+
className: s(R, o.optionLabel)
|
|
41
41
|
}))), /* @__PURE__ */ t.createElement(e.Error, {
|
|
42
42
|
className: s(_, l.error)
|
|
43
43
|
}, /* @__PURE__ */ t.createElement(E, null), /* @__PURE__ */ t.createElement(e.Error.Text, null)), /* @__PURE__ */ t.createElement(e.Description, {
|
|
44
44
|
className: s(L, l.description)
|
|
45
45
|
}, N));
|
|
46
|
-
},
|
|
46
|
+
}, b = () => /* @__PURE__ */ t.createElement(u, null);
|
|
47
47
|
export {
|
|
48
|
-
|
|
48
|
+
b as EventsRsvpRAC
|
|
49
49
|
};
|
package/dist/component/{field-error-headless-D3-1L5sf.js → field-error-headless-tsg9FQ-_.js}
RENAMED
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
import t, { createContext as m, useContext as M } from "react";
|
|
2
|
-
import {
|
|
3
|
-
const
|
|
2
|
+
import { b5 as c, b2 as i, aZ as f, aG as x, aH as h } from "./form-0jt4L5xo.js";
|
|
3
|
+
const C = ({ 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
|
|
12
12
|
})) : null;
|
|
13
|
-
}, l = /* @__PURE__ */ m(void 0),
|
|
13
|
+
}, l = /* @__PURE__ */ m(void 0), v = l.Provider, D = ({ className: r }) => {
|
|
14
14
|
const e = M(l);
|
|
15
15
|
return /* @__PURE__ */ t.createElement("span", {
|
|
16
16
|
className: r
|
|
17
17
|
}, e ?? "");
|
|
18
|
-
},
|
|
18
|
+
}, H = ({ className: r, children: e, ...s }) => {
|
|
19
19
|
const { hasError: o, errorMessage: a } = s, { target: n, hasError: E, errorMessage: d } = c(), { errorId: g } = i(), u = o ?? E, p = a ?? d;
|
|
20
|
-
return u ? /* @__PURE__ */ t.createElement(
|
|
20
|
+
return u ? /* @__PURE__ */ t.createElement(v, {
|
|
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
|
};
|
|
28
|
-
|
|
28
|
+
H.Text = D;
|
|
29
29
|
export {
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
30
|
+
C as D,
|
|
31
|
+
H as E,
|
|
32
|
+
v as a,
|
|
33
|
+
D as b
|
|
34
34
|
};
|