@wix/form-elements 1.146.0 → 1.148.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-scUix9QX.js → appointment-rac-BNqXl3dq.js} +168 -164
- package/dist/component/{bookings-address-rac-CKemkJOO.js → bookings-address-rac-DzLf588z.js} +1 -1
- package/dist/component/{bookings-email-rac-CDqdhPAB.js → bookings-email-rac-BCNWH7ss.js} +1 -1
- package/dist/component/{bookings-first-name-rac-DEy_7Hjb.js → bookings-first-name-rac-D36aHUOJ.js} +1 -1
- package/dist/component/{bookings-header-rac-Bl4xy9lB.js → bookings-header-rac-CNr2y2ES.js} +1 -1
- package/dist/component/{bookings-last-name-rac-CsL9xQ1W.js → bookings-last-name-rac-yHE6ZIxr.js} +1 -1
- package/dist/component/{bookings-login-bar-rac-DkHYQ4No.js → bookings-login-bar-rac-C3weOc1i.js} +6 -6
- package/dist/component/{bookings-phone-rac-BoBiFwbV.js → bookings-phone-rac-CIo_ApRf.js} +1 -1
- package/dist/component/{bookings-rich-text-rac-DZZnPKWA.js → bookings-rich-text-rac-rgKnvt57.js} +1 -1
- package/dist/component/{checkbox-field-rac-UgLmJxB-.js → checkbox-field-rac-CMaVxLNe.js} +9 -7
- package/dist/component/{checkbox-group-field-headless-C809nB0Q.js → checkbox-group-field-headless-XPtqS8Km.js} +68 -68
- package/dist/component/{checkbox-group-field-rac-u4i4wG21.js → checkbox-group-field-rac-C_58XfQt.js} +9 -9
- package/dist/component/{checkbox-group-rac-DBAQhSo3.js → checkbox-group-rac-FQrWViSh.js} +1 -1
- package/dist/component/{checkbox-indicator-module-classes-6173wvuW.js → checkbox-indicator-module-classes-akWZsZNn.js} +1 -1
- package/dist/component/{checkbox-rac-FDQVsI5-.js → checkbox-rac-C5Lj2b1N.js} +1 -1
- package/dist/component/{contacts-address-rac-DnArylPa.js → contacts-address-rac-OhpLzD0X.js} +1 -1
- package/dist/component/{contacts-birthdate-rac-C19jhGEO.js → contacts-birthdate-rac-Dnqq84ct.js} +1 -1
- package/dist/component/{contacts-company-rac-Dxs0hs_i.js → contacts-company-rac-DMnTF55t.js} +1 -1
- package/dist/component/{contacts-email-rac-D-H43L8r.js → contacts-email-rac-DmZhScW2.js} +1 -1
- package/dist/component/{contacts-first-name-rac-DwV5NESk.js → contacts-first-name-rac-B6A4fuzK.js} +1 -1
- package/dist/component/{contacts-last-name-rac-C5v2xurf.js → contacts-last-name-rac-DVz97lew.js} +1 -1
- package/dist/component/{contacts-phone-rac-D9a5x-xl.js → contacts-phone-rac-DV8aO0uS.js} +1 -1
- package/dist/component/{contacts-position-rac-DfsgOv-k.js → contacts-position-rac-BP_yBIE4.js} +1 -1
- package/dist/component/{contacts-subscribe-rac-B-Hho0Kb.js → contacts-subscribe-rac-wmTprtLf.js} +1 -1
- package/dist/component/{contacts-tax-id-rac-q6TQkB4b.js → contacts-tax-id-rac-CUEPBQye.js} +1 -1
- package/dist/component/{date-availability-CMDvf5VU.js → date-availability-BK_0gLRv.js} +1 -1
- package/dist/component/{date-input-field-rac-C1WLUct3.js → date-input-field-rac-BfWPvRnd.js} +84 -78
- package/dist/component/{date-input-rac-cNQ-nr4D.js → date-input-rac-B7vAMRBX.js} +1 -1
- package/dist/component/{date-picker-field-rac-mx11z-MO.js → date-picker-field-rac-CpDY4EkU.js} +111 -105
- package/dist/component/{date-picker-rac-DeTz17zC.js → date-picker-rac-BCswaZB1.js} +1 -1
- package/dist/component/{date-time-input-field-rac-feQ2E1eU.js → date-time-input-field-rac-D9w4eEa0.js} +135 -129
- package/dist/component/{date-time-input-rac-G0s0xP4v.js → date-time-input-rac-_im8-JRC.js} +1 -1
- package/dist/component/{dext-checkbox-group-rac-BcTN1nJb.js → dext-checkbox-group-rac-Di7B1Wzv.js} +2 -2
- package/dist/component/{dext-checkbox-rac-DX0TOrCO.js → dext-checkbox-rac-BPendOsP.js} +1 -1
- package/dist/component/{dext-date-picker-rac-CpDp11oa.js → dext-date-picker-rac-_-Ig9Qn6.js} +1 -1
- package/dist/component/{dext-date-time-input-rac-BRvO8izU.js → dext-date-time-input-rac-dKFW87yu.js} +1 -1
- package/dist/component/{dext-dropdown-rac-DGZ4Yi_X.js → dext-dropdown-rac-Cpdpps7P.js} +1 -1
- package/dist/component/{dext-email-rac-B9YCFHB4.js → dext-email-rac-D4UmYH5m.js} +1 -1
- package/dist/component/{dext-number-input-rac-D890dBZf.js → dext-number-input-rac-DUetGnYJ.js} +1 -1
- package/dist/component/{dext-phone-rac-BAQftbXo.js → dext-phone-rac-Bsz_DAT9.js} +1 -1
- package/dist/component/dext-radio-group-rac-B_soj2FD.js +18 -0
- package/dist/component/{dext-rating-input-rac-BqQKVaHo.js → dext-rating-input-rac-cm40qt4O.js} +1 -1
- package/dist/component/{dext-tags-rac-zxxKcNUe.js → dext-tags-rac-D1ULx6t1.js} +2 -2
- package/dist/component/{dext-text-area-rac-Ctp9SwPg.js → dext-text-area-rac-IkL67rHB.js} +1 -1
- package/dist/component/{dext-text-input-rac-c_QMlyjr.js → dext-text-input-rac-DsYSTEL2.js} +1 -1
- package/dist/component/{dext-url-input-rac-96pv15aC.js → dext-url-input-rac-BKvEkpYu.js} +1 -1
- package/dist/component/{donation-rac-GEWKSLJY.js → donation-rac-CaCXMa-H.js} +87 -85
- package/dist/component/{dropdown-field-headless-C3OxMhLE.js → dropdown-field-headless-DcrQK8mL.js} +36 -34
- package/dist/component/{dropdown-field-rac-CCXfBmSc.js → dropdown-field-rac-CuGoz_6I.js} +9 -10
- package/dist/component/{dropdown-rac-CR7hswXE.js → dropdown-rac-rIe6ZqaZ.js} +1 -1
- package/dist/component/{ecom-address-rac-khMuxEFD.js → ecom-address-rac-DT0rzvvp.js} +1 -1
- package/dist/component/{ecom-subscription-checkbox-rac-CAi_AHpb.js → ecom-subscription-checkbox-rac-ZfbiME6e.js} +5 -5
- package/dist/component/{email-input-field-rac-B83mY2lg.js → email-input-field-rac-8Qn3yskh.js} +62 -62
- package/dist/component/{events-repeater-rac-ClEwXgmb.js → events-repeater-rac-DyHrMd3y.js} +25 -21
- package/dist/component/{events-rsvp-rac-BJ5q2SVR.js → events-rsvp-rac-CoL-euuc.js} +9 -9
- package/dist/component/{field-error-headless-CsYQCsiT.js → field-error-headless-RylIeqXr.js} +6 -6
- package/dist/component/{field-label-headless-Yg_1PMSg.js → field-label-headless-d3hZxIEc.js} +15 -15
- package/dist/component/field-rac.module-DP0lkkEv.js +25 -0
- package/dist/component/{file-upload-rac-DJsuI_lR.js → file-upload-rac-rXbabrgc.js} +172 -168
- package/dist/component/{fixed-payment-rac-BMFe9wxU.js → fixed-payment-rac-CaR7pXXA.js} +13 -13
- package/dist/component/{form-Bed4Kfz8.js → form-DhIEC3nB.js} +2309 -2308
- package/dist/component/form.css +1 -1
- package/dist/component/form.js +2 -2
- package/dist/component/{header-field-rac-DPQTrOSZ.js → header-field-rac-nELbyGjP.js} +4 -4
- package/dist/component/{header-rac-CzXsuLmE.js → header-rac-q80EQNmM.js} +1 -1
- package/dist/component/{image-choice-rac-R_4pbOSr.js → image-choice-rac-CLMiTQK0.js} +42 -42
- package/dist/component/{index-DZxHlvzt.js → index-C-jVrv9Y.js} +91 -91
- package/dist/component/{index-qSZCe_WC.js → index-DnLJzPM-.js} +2 -2
- package/dist/component/{isObjectLike-B-a5uaU-.js → isObjectLike-Bf577MHV.js} +15 -15
- package/dist/component/{multiline-address-field-rac-rv4IZZy_.js → multiline-address-field-rac-BVAv1w9F.js} +155 -137
- package/dist/component/{multiline-address-rac-DZ7cYtgn.js → multiline-address-rac-qMuUHA9U.js} +1 -1
- package/dist/component/{number-input-field-rac-CL9iXKIf.js → number-input-field-rac-B_vnBWFG.js} +24 -22
- package/dist/component/{number-input-rac-BeGn6qJR.js → number-input-rac-BPCIW8Fz.js} +1 -1
- package/dist/component/{password-rac-DfvhdsKG.js → password-rac-D72HG72u.js} +28 -26
- package/dist/component/{payment-input-rac-BmMfi5rf.js → payment-input-rac-DthVgsAi.js} +32 -30
- package/dist/component/{phone-input-field-rac-DW0a1pXs.js → phone-input-field-rac-XIPkH8Fb.js} +46 -46
- package/dist/component/{phone-rac-quZjJ08H.js → phone-rac-U94fCfer.js} +1 -1
- package/dist/component/{product-list-rac-Ci0KB7sN.js → product-list-rac-BRMGPyhr.js} +78 -78
- package/dist/component/{quiz-radio-group-rac--UUtGx2t.js → quiz-radio-group-rac-DafNzzgX.js} +1 -1
- package/dist/component/radio-button-module-classes-DtFlHID_.js +134 -0
- package/dist/component/{radio-group-field-rac-w8fHpFKJ.js → radio-group-field-rac-BXrYWjew.js} +13 -13
- package/dist/component/{radio-group-rac-jO8aghii.js → radio-group-rac-BNyFfQYV.js} +1 -1
- package/dist/component/{rating-input-field-rac-BRc2PtqE.js → rating-input-field-rac-KbkiVCZ7.js} +27 -27
- package/dist/component/{rating-input-rac-D9zs06xR.js → rating-input-rac-zT4vPkwP.js} +1 -1
- package/dist/component/{rich-content-rac.module-Cv3ZmD00.js → rich-content-rac.module-C0OQetct.js} +8 -8
- package/dist/component/{rich-text-field-rac-BmWuIfA8.js → rich-text-field-rac-T4NoShC0.js} +4 -4
- package/dist/component/{rich-text-rac-BnqnrvB1.js → rich-text-rac-m6VRCRZu.js} +1 -1
- package/dist/component/{service-dropdown-rac-Cl81KfJU.js → service-dropdown-rac-BFwKhL1l.js} +44 -45
- package/dist/component/{services-multi-choice-rac-sQ1NF9hY.js → services-multi-choice-rac-DjzcuRWv.js} +13 -13
- package/dist/component/{signature-rac-Huairu7V.js → signature-rac-B1LPKnIw.js} +281 -279
- package/dist/component/{submit-button-rac-Dpg7N0TG.js → submit-button-rac-Cz3PVtW4.js} +25 -25
- package/dist/component/{tags-field-rac-BQ8TEqXH.js → tags-field-rac-DzSoL__s.js} +82 -82
- package/dist/component/{tags-rac-CFOmyCCc.js → tags-rac-DMYJDrm-.js} +1 -1
- package/dist/component/{text-area-field-rac-DNiMa7d3.js → text-area-field-rac-SuMzBm-Q.js} +30 -28
- package/dist/component/{text-area-rac-kLFe-KbZ.js → text-area-rac-C-zmnJgt.js} +1 -1
- package/dist/component/{text-input-field-rac-CqENSUUX.js → text-input-field-rac-BmQlXTK9.js} +6 -6
- package/dist/component/text-input-headless-BsrjGTK4.js +47 -0
- package/dist/component/{text-input-rac-uYQEfOtE.js → text-input-rac-DhQFKG4h.js} +1 -1
- package/dist/component/time-input-rac-CRZZdbTI.js +161 -0
- package/dist/component/{url-input-field-rac-BioH7kuz.js → url-input-field-rac-D617Pvsf.js} +30 -28
- package/dist/component/{url-input-rac-D2VSSyqW.js → url-input-rac-CLvxaWZz.js} +1 -1
- package/dist/component/use-dropdown-trigger-class-name-C4uqTKFP.js +117 -0
- package/dist/component/{use-element-state-class-name-oiKCauK-.js → use-element-state-class-name-DJx-T0zf.js} +3 -3
- package/dist/component/use-hoverable-input-class-name-pwVZXwrY.js +25 -0
- package/dist/component/use-is-forced-open-dropdown-DBpm1D-o.js +48 -0
- package/dist/component/{use-service-options-base-DXG60hA5.js → use-service-options-base-xHeVTve3.js} +6 -6
- package/dist/component/use-text-input-class-name-CrEjJ2Z8.js +6 -0
- package/dist/form.d.ts +5 -0
- package/package.json +2 -2
- package/dist/component/dext-radio-group-rac-CtEjnu_X.js +0 -18
- package/dist/component/field-rac.module-DfEb7pBp.js +0 -25
- package/dist/component/radio-button-module-classes-CqdBGknT.js +0 -132
- package/dist/component/text-input-headless-BdPkEeK2.js +0 -45
- package/dist/component/time-input-rac-BYoojlJ9.js +0 -159
- package/dist/component/use-dropdown-option-class-name-BEmvU-Gg.js +0 -115
- package/dist/component/use-dropdown-trigger-class-name-qj9skLWZ.js +0 -40
- package/dist/component/use-hoverable-input-class-name-BW3nCyhG.js +0 -25
- package/dist/component/use-text-input-class-name-BhQFcXYH.js +0 -6
package/dist/component/{email-input-field-rac-B83mY2lg.js → email-input-field-rac-8Qn3yskh.js}
RENAMED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { RicosViewer as ie } from "@wix/ricos/viewer";
|
|
2
|
-
import
|
|
3
|
-
import u, { createContext as z, useContext as Z, createElement as
|
|
2
|
+
import D from "classnames";
|
|
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 { bl as fe, by as ge, bj as ve, d as ye, bo as Ee, bs as de, bm as be, ao as Se, S as Oe, a0 as he, H as Ie, v as Ne, a9 as Ae } from "./form-DhIEC3nB.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
|
|
15
|
-
import { s as
|
|
16
|
-
import { u as
|
|
9
|
+
import Fe from "@babel/runtime/helpers/defineProperty";
|
|
10
|
+
import ke from "html-parse-stringify";
|
|
11
|
+
import Te from "@babel/runtime/helpers/classCallCheck";
|
|
12
|
+
import xe from "@babel/runtime/helpers/createClass";
|
|
13
|
+
import { T as U } from "./text-input-headless-BsrjGTK4.js";
|
|
14
|
+
import { E as je } from "./error-icon-hZxQ6DEy.js";
|
|
15
|
+
import { s as H } from "./field-rac.module-DP0lkkEv.js";
|
|
16
|
+
import { u as De } from "./use-text-input-class-name-CrEjJ2Z8.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,
|
|
52
|
-
function
|
|
51
|
+
}, we, He = z();
|
|
52
|
+
function Re() {
|
|
53
53
|
return _e;
|
|
54
54
|
}
|
|
55
55
|
(function() {
|
|
56
56
|
function e() {
|
|
57
|
-
|
|
57
|
+
Te(this, e), this.usedNamespaces = {};
|
|
58
58
|
}
|
|
59
|
-
return
|
|
59
|
+
return xe(e, [{
|
|
60
60
|
key: "addUsedNamespaces",
|
|
61
61
|
value: function(a) {
|
|
62
62
|
var o = this;
|
|
@@ -102,19 +102,19 @@ function p(e) {
|
|
|
102
102
|
for (var t = 1; t < arguments.length; t++) {
|
|
103
103
|
var a = arguments[t] != null ? arguments[t] : {};
|
|
104
104
|
t % 2 ? Q(Object(a), !0).forEach(function(o) {
|
|
105
|
-
|
|
105
|
+
Fe(e, o, a[o]);
|
|
106
106
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(a)) : Q(Object(a)).forEach(function(o) {
|
|
107
107
|
Object.defineProperty(e, o, Object.getOwnPropertyDescriptor(a, o));
|
|
108
108
|
});
|
|
109
109
|
}
|
|
110
110
|
return e;
|
|
111
111
|
}
|
|
112
|
-
function
|
|
112
|
+
function Y(e, t) {
|
|
113
113
|
if (!e) return !1;
|
|
114
114
|
var a = e.props ? e.props.children : e.children;
|
|
115
115
|
return t ? a.length > 0 : !!a;
|
|
116
116
|
}
|
|
117
|
-
function
|
|
117
|
+
function G(e) {
|
|
118
118
|
return e ? e.props ? e.props.children : e.children : [];
|
|
119
119
|
}
|
|
120
120
|
function qe(e) {
|
|
@@ -125,7 +125,7 @@ function qe(e) {
|
|
|
125
125
|
function M(e) {
|
|
126
126
|
return Array.isArray(e) ? e : [e];
|
|
127
127
|
}
|
|
128
|
-
function
|
|
128
|
+
function Ye(e, t) {
|
|
129
129
|
var a = p({}, t);
|
|
130
130
|
return a.props = Object.assign(e.props, t.props), a;
|
|
131
131
|
}
|
|
@@ -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 T = te(b, t);
|
|
150
|
+
a += "<".concat(g, ">").concat(T, "</").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, F = ee(r, Ue), A = Object.keys(F);
|
|
156
156
|
if (A.length === 1) {
|
|
157
157
|
var S = O ? "".concat(A[0], ", ").concat(O) : A[0];
|
|
158
158
|
a += "{{".concat(S, "}}");
|
|
@@ -162,7 +162,7 @@ function te(e, t) {
|
|
|
162
162
|
K("Trans: the passed in value is invalid - seems you passed in a variable like {number} - please pass in variables for interpolation as full objects like {{number}}.", r);
|
|
163
163
|
}), a;
|
|
164
164
|
}
|
|
165
|
-
function
|
|
165
|
+
function Ge(e, t, a, o, c, r) {
|
|
166
166
|
if (t === "") return [];
|
|
167
167
|
var g = o.transKeepBasicHtmlNodesFor || [], v = t && new RegExp(g.join("|")).test(t);
|
|
168
168
|
if (!e && !v) return [t];
|
|
@@ -170,13 +170,13 @@ function Ye(e, t, a, o, c, r) {
|
|
|
170
170
|
function b(y) {
|
|
171
171
|
var h = M(y);
|
|
172
172
|
h.forEach(function(s) {
|
|
173
|
-
typeof s != "string" && (
|
|
173
|
+
typeof s != "string" && (Y(s) ? b(G(s)) : L(s) === "object" && !B(s) && Object.assign(d, s));
|
|
174
174
|
});
|
|
175
175
|
}
|
|
176
176
|
b(e);
|
|
177
|
-
var
|
|
178
|
-
function
|
|
179
|
-
var i =
|
|
177
|
+
var T = ke.parse("<0>".concat(t, "</0>")), O = p(p({}, d), c);
|
|
178
|
+
function F(y, h, s) {
|
|
179
|
+
var i = G(y), I = S(i, h.children, s);
|
|
180
180
|
return qe(i) && I.length === 0 ? i : I;
|
|
181
181
|
}
|
|
182
182
|
function A(y, h, s, i, I) {
|
|
@@ -187,18 +187,18 @@ function Ye(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 k = n.children && n.children[0] && n.children[0].content && a.services.interpolator.interpolate(n.children[0].content, O, a.language);
|
|
191
191
|
if (n.type === "tag") {
|
|
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
|
-
var m = Object.keys(n.attrs).length !== 0 ?
|
|
194
|
+
var m = Object.keys(n.attrs).length !== 0 ? Ye({
|
|
195
195
|
props: n.attrs
|
|
196
|
-
}, N) : N,
|
|
196
|
+
}, N) : N, x = B(m), V = x && Y(n, !0) && !n.voidElement, P = v && L(m) === "object" && m.dummy && !x, _ = 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
|
-
} else if (
|
|
201
|
-
var ne =
|
|
200
|
+
} else if (Y(m) || V) {
|
|
201
|
+
var ne = F(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,16 +207,16 @@ function Ye(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 = F(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)
|
|
214
|
-
l.push(
|
|
214
|
+
l.push(R(n.name, {
|
|
215
215
|
key: "".concat(n.name, "-").concat(E)
|
|
216
216
|
}));
|
|
217
217
|
else {
|
|
218
218
|
var se = S(i, n.children, s);
|
|
219
|
-
l.push(
|
|
219
|
+
l.push(R(n.name, {
|
|
220
220
|
key: "".concat(n.name, "-").concat(E)
|
|
221
221
|
}, se));
|
|
222
222
|
}
|
|
@@ -226,51 +226,51 @@ function Ye(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" && !x) {
|
|
230
|
+
var $ = n.children[0] ? k : null;
|
|
231
231
|
$ && l.push($);
|
|
232
|
-
} else n.children.length === 1 &&
|
|
232
|
+
} else n.children.length === 1 && k ? l.push(w(m, p(p({}, m.props), {}, {
|
|
233
233
|
key: E
|
|
234
|
-
}),
|
|
234
|
+
}), k)) : l.push(w(m, p(p({}, m.props), {}, {
|
|
235
235
|
key: E
|
|
236
236
|
})));
|
|
237
237
|
} else if (n.type === "text") {
|
|
238
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);
|
|
239
|
-
W ? l.push(
|
|
239
|
+
W ? l.push(R(W, {
|
|
240
240
|
key: "".concat(n.name, "-").concat(E)
|
|
241
241
|
}, X)) : l.push(X);
|
|
242
242
|
}
|
|
243
243
|
return l;
|
|
244
244
|
}, []);
|
|
245
245
|
}
|
|
246
|
-
var
|
|
246
|
+
var j = S([{
|
|
247
247
|
dummy: !0,
|
|
248
248
|
children: e || []
|
|
249
|
-
}],
|
|
250
|
-
return
|
|
249
|
+
}], T, M(e || []));
|
|
250
|
+
return G(j[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, T = e.components, O = e.ns, F = e.i18n, A = e.t, S = e.shouldUnescape, j = ee(e, Ve), y = Z(He) || {}, h = y.i18n, s = y.defaultNS, i = F || 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) {
|
|
257
257
|
return q;
|
|
258
258
|
};
|
|
259
259
|
r && (v.context = r);
|
|
260
|
-
var l = p(p({},
|
|
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, k = l.hashTransKey, N = c || (k ? k(E) : E), m = d ? v.interpolation : {
|
|
263
263
|
interpolation: p(p({}, v.interpolation), {}, {
|
|
264
264
|
prefix: "#$?",
|
|
265
265
|
suffix: "?$#"
|
|
266
266
|
})
|
|
267
|
-
},
|
|
267
|
+
}, x = 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 _ ?
|
|
272
|
+
}), V = N ? I(N, x) : E, P = Ge(T || t, V, i, l, x, S), _ = o !== void 0 ? o : l.defaultTransParent;
|
|
273
|
+
return _ ? R(_, j, P) : P;
|
|
274
274
|
}
|
|
275
275
|
const We = "email-mistype-suggestion", Xe = "email-mistype-suggestion-link", ae = /* @__PURE__ */ z(void 0);
|
|
276
276
|
function Je() {
|
|
@@ -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: T, description: O, FieldLayout: F } = Ee(), { isMistyped: A, suggestedEmail: S, validate: j } = 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, T, 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
|
+
j(), d == null || d();
|
|
459
|
+
}, n = C(e, f.Label), E = C(e, f.Input), k = 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
462
|
}, /* @__PURE__ */ u.createElement(Qe, {
|
|
463
463
|
activeSuggestion: s,
|
|
464
464
|
applySuggestion: I
|
|
465
|
-
}, /* @__PURE__ */ u.createElement(
|
|
465
|
+
}, /* @__PURE__ */ u.createElement(F, {
|
|
466
466
|
fieldId: t,
|
|
467
467
|
renderLabel: () => n,
|
|
468
468
|
renderInput: () => /* @__PURE__ */ u.createElement(pe, {
|
|
@@ -478,7 +478,7 @@ 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, k)
|
|
482
482
|
})));
|
|
483
483
|
};
|
|
484
484
|
f.Label = U.Label;
|
|
@@ -492,19 +492,19 @@ const nt = "_suggestion_lysve_1", ot = {
|
|
|
492
492
|
content: e,
|
|
493
493
|
locale: t
|
|
494
494
|
}), ht = () => {
|
|
495
|
-
const e =
|
|
495
|
+
const e = De();
|
|
496
496
|
return /* @__PURE__ */ u.createElement(f, null, /* @__PURE__ */ u.createElement(f.Label, {
|
|
497
|
-
className:
|
|
497
|
+
className: D(Oe, H.label)
|
|
498
498
|
}, /* @__PURE__ */ u.createElement(f.Label.Required, {
|
|
499
|
-
className:
|
|
499
|
+
className: D(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: D(Ie, H.error)
|
|
504
|
+
}, /* @__PURE__ */ u.createElement(je, null), /* @__PURE__ */ u.createElement(f.Error.Text, null)), /* @__PURE__ */ u.createElement(f.Description, {
|
|
505
|
+
className: D(Ne, H.description)
|
|
506
506
|
}, rt), /* @__PURE__ */ u.createElement(f.Suggestion, {
|
|
507
|
-
className:
|
|
507
|
+
className: D(Ae, ot.suggestion)
|
|
508
508
|
}));
|
|
509
509
|
};
|
|
510
510
|
export {
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import t, { useState as
|
|
2
|
-
import
|
|
1
|
+
import t, { useState as j, useMemo as h, useCallback as V, useRef as x } from "react";
|
|
2
|
+
import M from "classnames";
|
|
3
3
|
import { NumberField as z, CheckboxField as J, CheckboxButton as Q, Group as W, Input as Y, Button as w } from "react-aria-components";
|
|
4
|
-
import {
|
|
4
|
+
import { bu as q, bv as H, bk as K, bp as P, aM as Z, bo as y, bl as X, bq as U, as as ee, S as te, n as se, s as ne, r as oe } from "./form-DhIEC3nB.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-d3hZxIEc.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
|
|
10
|
-
import { C as ce } from "./checkbox-indicator-module-classes-
|
|
11
|
-
import { s as v } from "./field-rac.module-
|
|
12
|
-
import { u as ue } from "./use-element-state-class-name-
|
|
13
|
-
import { u as me } from "./use-text-input-class-name-
|
|
9
|
+
import { C as k } from "./chevron-down-icon-CcpVm6B-.js";
|
|
10
|
+
import { C as ce } from "./checkbox-indicator-module-classes-akWZsZNn.js";
|
|
11
|
+
import { s as v } from "./field-rac.module-DP0lkkEv.js";
|
|
12
|
+
import { u as ue } from "./use-element-state-class-name-DJx-T0zf.js";
|
|
13
|
+
import { u as me } from "./use-text-input-class-name-CrEjJ2Z8.js";
|
|
14
14
|
const ie = [], de = ({ id: e, fields: s, layout: a, value: o, onChange: n, errors: l = ie, validation: c }) => {
|
|
15
|
-
const [m, i] =
|
|
15
|
+
const [m, i] = j((o == null ? void 0 : o.length) || 0), u = h(() => o ?? [], [
|
|
16
16
|
o
|
|
17
17
|
]), d = q(), g = H(), C = K(), { validateFields: p } = P(), F = c.predefined.objectArrayOptions.maxItems, O = h(() => Z({
|
|
18
18
|
form: {
|
|
@@ -49,7 +49,7 @@ const ie = [], de = ({ id: e, fields: s, layout: a, value: o, onChange: n, error
|
|
|
49
49
|
]), D = V((E) => (I, A) => {
|
|
50
50
|
const N = Array.from({
|
|
51
51
|
length: m
|
|
52
|
-
}, (B,
|
|
52
|
+
}, (B, $) => u[$] ?? {});
|
|
53
53
|
N[E] = {
|
|
54
54
|
...N[E],
|
|
55
55
|
[I]: A
|
|
@@ -119,10 +119,12 @@ 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 } = X(), n =
|
|
123
|
-
return
|
|
122
|
+
const { id: s } = y(), { inputId: a, ariaDescribedBy: o } = X(), n = x(null);
|
|
123
|
+
return U(() => {
|
|
124
124
|
var l;
|
|
125
|
-
(l = n.current) == null || l.focus(
|
|
125
|
+
(l = n.current) == null || l.focus({
|
|
126
|
+
preventScroll: !0
|
|
127
|
+
});
|
|
126
128
|
}, s), /* @__PURE__ */ t.createElement(Y, {
|
|
127
129
|
ref: n,
|
|
128
130
|
id: a,
|
|
@@ -137,10 +139,12 @@ const ie = [], de = ({ id: e, fields: s, layout: a, value: o, onChange: n, error
|
|
|
137
139
|
slot: "increment",
|
|
138
140
|
className: s
|
|
139
141
|
}, e), S = ({ children: e, className: s, ...a }) => {
|
|
140
|
-
const { guestCount: o, onGuestCountChange: n } = a, { id: l, label: c, disabled: m, readOnly: i, onBlur: u, onFocus: d } = y(), { inputId: g, ariaDescribedBy: C } = X(), p =
|
|
141
|
-
|
|
142
|
+
const { guestCount: o, onGuestCountChange: n } = a, { id: l, label: c, disabled: m, readOnly: i, onBlur: u, onFocus: d } = y(), { inputId: g, ariaDescribedBy: C } = X(), p = x(null);
|
|
143
|
+
U(() => {
|
|
142
144
|
var G;
|
|
143
|
-
(G = p.current) == null || G.focus(
|
|
145
|
+
(G = p.current) == null || G.focus({
|
|
146
|
+
preventScroll: !0
|
|
147
|
+
});
|
|
144
148
|
}, l);
|
|
145
149
|
const F = b(e, S.Input), O = b(e, S.Label), _ = V((G) => {
|
|
146
150
|
n(G ? 1 : 0);
|
|
@@ -239,21 +243,21 @@ const Ne = "_container_p2psq_1", _e = "_countGroup_p2psq_8", Le = "_increment_p2
|
|
|
239
243
|
return /* @__PURE__ */ t.createElement(r, {
|
|
240
244
|
className: R.container
|
|
241
245
|
}, /* @__PURE__ */ t.createElement(r.Label, {
|
|
242
|
-
className:
|
|
246
|
+
className: M(te, v.label)
|
|
243
247
|
}), /* @__PURE__ */ t.createElement(r.GuestCount, null, /* @__PURE__ */ t.createElement(r.GuestCount.Control, {
|
|
244
248
|
className: e
|
|
245
249
|
}, /* @__PURE__ */ t.createElement(r.GuestCount.Input, {
|
|
246
250
|
className: v.innerInput
|
|
247
251
|
}), /* @__PURE__ */ t.createElement(r.GuestCount.Increment, {
|
|
248
252
|
className: R.increment
|
|
249
|
-
}, /* @__PURE__ */ t.createElement(
|
|
253
|
+
}, /* @__PURE__ */ t.createElement(k, {
|
|
250
254
|
style: {
|
|
251
255
|
transform: "rotate(180deg)"
|
|
252
256
|
}
|
|
253
257
|
})), /* @__PURE__ */ t.createElement(r.GuestCount.Decrement, {
|
|
254
258
|
className: R.decrement
|
|
255
|
-
}, /* @__PURE__ */ t.createElement(
|
|
256
|
-
className:
|
|
259
|
+
}, /* @__PURE__ */ t.createElement(k, null)))), /* @__PURE__ */ t.createElement(r.GuestToggle, {
|
|
260
|
+
className: M(se, v.checkbox)
|
|
257
261
|
}, /* @__PURE__ */ t.createElement(r.GuestToggle.Input, {
|
|
258
262
|
className: s
|
|
259
263
|
}), /* @__PURE__ */ t.createElement(r.GuestToggle.Label, {
|
|
@@ -1,12 +1,12 @@
|
|
|
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 n, R as c } from "./radio-button-module-classes-
|
|
4
|
+
import { a, s as n, R as c } from "./radio-button-module-classes-DtFlHID_.js";
|
|
5
5
|
import { E as i } from "./error-icon-hZxQ6DEy.js";
|
|
6
|
-
import { s as o } from "./field-rac.module-
|
|
7
|
-
import {
|
|
6
|
+
import { s as o } from "./field-rac.module-DP0lkkEv.js";
|
|
7
|
+
import { S as E, a0 as p, X as R, Y as O, H as _, v as L, Z as D } from "./form-DhIEC3nB.js";
|
|
8
8
|
import { o as I } from "./options-rac.module-_THNq6Qq.js";
|
|
9
|
-
import { u as S } from "./use-element-state-class-name-
|
|
9
|
+
import { u as S } from "./use-element-state-class-name-DJx-T0zf.js";
|
|
10
10
|
const e = ({ children: r, className: l }) => /* @__PURE__ */ t.createElement(a, {
|
|
11
11
|
className: l
|
|
12
12
|
}, r);
|
|
@@ -15,10 +15,10 @@ e.Options = a.Options;
|
|
|
15
15
|
e.Option = a.Option;
|
|
16
16
|
e.Description = a.Description;
|
|
17
17
|
e.Error = a.Error;
|
|
18
|
-
const
|
|
18
|
+
const N = ({ content: r, locale: l }) => /* @__PURE__ */ t.createElement(m, {
|
|
19
19
|
content: r,
|
|
20
20
|
locale: l
|
|
21
|
-
}),
|
|
21
|
+
}), u = () => {
|
|
22
22
|
const r = S({
|
|
23
23
|
globalClasses: D,
|
|
24
24
|
moduleClasses: c
|
|
@@ -41,8 +41,8 @@ const u = ({ content: r, locale: l }) => /* @__PURE__ */ t.createElement(m, {
|
|
|
41
41
|
className: s(_, o.error)
|
|
42
42
|
}, /* @__PURE__ */ t.createElement(i, null), /* @__PURE__ */ t.createElement(e.Error.Text, null)), /* @__PURE__ */ t.createElement(e.Description, {
|
|
43
43
|
className: s(L, o.description)
|
|
44
|
-
},
|
|
45
|
-
},
|
|
44
|
+
}, N));
|
|
45
|
+
}, U = () => /* @__PURE__ */ t.createElement(u, null);
|
|
46
46
|
export {
|
|
47
|
-
|
|
47
|
+
U as EventsRsvpRAC
|
|
48
48
|
};
|
package/dist/component/{field-error-headless-CsYQCsiT.js → field-error-headless-RylIeqXr.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import t, { createContext as m, useContext as M } from "react";
|
|
2
|
-
import {
|
|
2
|
+
import { bo as c, bl as i, bg as f, aZ as x, a_ as b } from "./form-DhIEC3nB.js";
|
|
3
3
|
const H = ({ 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", {
|
|
@@ -10,12 +10,12 @@ const H = ({ className: r, children: e }) => {
|
|
|
10
10
|
content: s,
|
|
11
11
|
locale: n
|
|
12
12
|
})) : null;
|
|
13
|
-
}, l = /* @__PURE__ */ m(void 0), h = l.Provider,
|
|
13
|
+
}, l = /* @__PURE__ */ m(void 0), h = l.Provider, v = ({ className: r }) => {
|
|
14
14
|
const e = M(l);
|
|
15
15
|
return /* @__PURE__ */ t.createElement("span", {
|
|
16
16
|
className: r
|
|
17
17
|
}, e ?? "");
|
|
18
|
-
},
|
|
18
|
+
}, D = ({ 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
20
|
return u ? /* @__PURE__ */ t.createElement(h, {
|
|
21
21
|
value: p
|
|
@@ -25,10 +25,10 @@ const H = ({ className: r, children: e }) => {
|
|
|
25
25
|
className: r
|
|
26
26
|
}, e)) : null;
|
|
27
27
|
};
|
|
28
|
-
|
|
28
|
+
D.Text = v;
|
|
29
29
|
export {
|
|
30
30
|
H as D,
|
|
31
|
-
|
|
31
|
+
D as E,
|
|
32
32
|
h as a,
|
|
33
|
-
|
|
33
|
+
v as b
|
|
34
34
|
};
|
package/dist/component/{field-label-headless-Yg_1PMSg.js → field-label-headless-d3hZxIEc.js}
RENAMED
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { bo as m, aF as d, aG as p, bl as D, by as B } from "./form-DhIEC3nB.js";
|
|
2
2
|
import l from "react";
|
|
3
3
|
import { f as L } from "./find-child-C60k4CxG.js";
|
|
4
4
|
import { sdk as g } from "@wix/image-kit";
|
|
5
|
-
function
|
|
5
|
+
function N({ id: e, width: t, height: n }, a, r, o = "fill") {
|
|
6
6
|
return (o === "fit" ? g.getScaleToFitImageURL : g.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;
|
|
10
10
|
})({});
|
|
11
|
-
const
|
|
11
|
+
const S = {
|
|
12
12
|
visibility: "hidden",
|
|
13
13
|
display: "block",
|
|
14
14
|
height: 0,
|
|
15
15
|
margin: 0,
|
|
16
16
|
padding: 0
|
|
17
|
-
},
|
|
18
|
-
const { as: a = "label", requiredIndicatorHidden: r = !1, label: o } = n, { label:
|
|
17
|
+
}, U = "", i = ({ children: e, className: t, ...n }) => {
|
|
18
|
+
const { as: a = "label", requiredIndicatorHidden: r = !1, label: o } = n, { label: T, required: R = !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 = R && !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,
|
|
22
|
-
style: F ?
|
|
23
|
-
}, h ? /* @__PURE__ */ l.createElement(l.Fragment, null,
|
|
24
|
-
return c ? /* @__PURE__ */ l.createElement("div", null,
|
|
25
|
-
},
|
|
26
|
-
const { t } =
|
|
22
|
+
style: F ? S : void 0
|
|
23
|
+
}, h ? /* @__PURE__ */ l.createElement(l.Fragment, null, b, f) : /* @__PURE__ */ l.createElement(l.Fragment, null, f, b));
|
|
24
|
+
return c ? /* @__PURE__ */ l.createElement("div", null, E === u.TOP ? c : null, I, E === u.BOTTOM ? c : null) : I;
|
|
25
|
+
}, v = ({ className: e }) => {
|
|
26
|
+
const { t } = B(), { requiredIndicatorType: n } = m();
|
|
27
27
|
return n === d.TEXT ? /* @__PURE__ */ l.createElement("span", {
|
|
28
28
|
className: e,
|
|
29
29
|
"aria-hidden": "true"
|
|
@@ -31,11 +31,11 @@ const N = {
|
|
|
31
31
|
className: e,
|
|
32
32
|
"aria-hidden": "true"
|
|
33
33
|
}, "*");
|
|
34
|
-
},
|
|
34
|
+
}, x = ({ className: e }) => {
|
|
35
35
|
const { media: t, mediaSettings: n } = m();
|
|
36
36
|
if (!t)
|
|
37
37
|
return null;
|
|
38
|
-
const a =
|
|
38
|
+
const a = N(t, t.width, t.height);
|
|
39
39
|
return a ? /* @__PURE__ */ l.createElement("img", {
|
|
40
40
|
className: e,
|
|
41
41
|
src: a,
|
|
@@ -44,9 +44,9 @@ const N = {
|
|
|
44
44
|
"data-alignment": n == null ? void 0 : n.imageAlignment
|
|
45
45
|
}) : null;
|
|
46
46
|
};
|
|
47
|
-
i.Required =
|
|
48
|
-
i.Image =
|
|
47
|
+
i.Required = v;
|
|
48
|
+
i.Image = x;
|
|
49
49
|
export {
|
|
50
50
|
i as L,
|
|
51
|
-
|
|
51
|
+
N as g
|
|
52
52
|
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
const t = "_label_t702n_1", o = "_requiredMark_t702n_11", e = "_input_t702n_16", n = "_inputGroup_t702n_17", c = "_inputHover_t702n_70", _ = "_innerInput_t702n_151", r = "_dropdownTrigger_t702n_201", p = "_dropdownIcon_t702n_211", s = "_dropdownPopover_t702n_230", i = "_selectPopover_t702n_236", u = "_selectOption_t702n_263", d = "_selectOptionHover_t702n_286", l = "_selectOptionSelected_t702n_290", h = "_selectOptionWithoutFocusRing_t702n_294", b = "_description_t702n_300", k = "_error_t702n_316", v = "_checkbox_t702n_335", I = "_checkboxInput_t702n_358", x = "_checkboxInputSelected_t702n_397", O = "_checkboxInputHover_t702n_401", g = {
|
|
2
|
+
label: t,
|
|
3
|
+
requiredMark: o,
|
|
4
|
+
input: e,
|
|
5
|
+
inputGroup: n,
|
|
6
|
+
inputHover: c,
|
|
7
|
+
innerInput: _,
|
|
8
|
+
dropdownTrigger: r,
|
|
9
|
+
dropdownIcon: p,
|
|
10
|
+
dropdownPopover: s,
|
|
11
|
+
selectPopover: i,
|
|
12
|
+
selectOption: u,
|
|
13
|
+
selectOptionHover: d,
|
|
14
|
+
selectOptionSelected: l,
|
|
15
|
+
selectOptionWithoutFocusRing: h,
|
|
16
|
+
description: b,
|
|
17
|
+
error: k,
|
|
18
|
+
checkbox: v,
|
|
19
|
+
checkboxInput: I,
|
|
20
|
+
checkboxInputSelected: x,
|
|
21
|
+
checkboxInputHover: O
|
|
22
|
+
};
|
|
23
|
+
export {
|
|
24
|
+
g as s
|
|
25
|
+
};
|