@wix/form-elements 1.63.0 → 1.65.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/component/{appointment-rac-B1VVk_Ui.js → appointment-rac-0kUk8XQJ.js} +5 -5
- package/dist/component/{bookings-address-rac-IQeHFdHT.js → bookings-address-rac-BUM0wpw0.js} +1 -1
- package/dist/component/{bookings-email-rac-z26A790r.js → bookings-email-rac-BHlvupVS.js} +1 -1
- package/dist/component/{bookings-first-name-rac-Djf0GPP4.js → bookings-first-name-rac-Bwn6xv1U.js} +1 -1
- package/dist/component/{bookings-header-rac-CXOzAOpz.js → bookings-header-rac-BkRvQMi4.js} +1 -1
- package/dist/component/{bookings-last-name-rac-CbB8alM9.js → bookings-last-name-rac-DRTj4VdX.js} +1 -1
- package/dist/component/{bookings-login-bar-rac-CXrLx7Pn.js → bookings-login-bar-rac-D-2Bt7Kx.js} +5 -5
- package/dist/component/{bookings-phone-rac-DGYx7h5g.js → bookings-phone-rac-CTcHHpDr.js} +1 -1
- package/dist/component/{bookings-rich-text-rac-viJG57XF.js → bookings-rich-text-rac-n-w9iWII.js} +1 -1
- package/dist/component/{checkbox-field-rac-e-RAmupX.js → checkbox-field-rac-BamOJv3P.js} +43 -43
- package/dist/component/checkbox-group-field-headless-BmKJbEi0.js +210 -0
- package/dist/component/checkbox-group-field-rac-CC8qfj0Y.js +40 -0
- package/dist/component/{checkbox-group-rac-CDfDTWqz.js → checkbox-group-rac-CsrP7zD5.js} +1 -1
- package/dist/component/{checkbox-rac-BRBKYD_5.js → checkbox-rac-X6E-fJ8k.js} +1 -1
- package/dist/component/{contacts-address-rac-BtWWQi77.js → contacts-address-rac-oYnkIZ6m.js} +1 -1
- package/dist/component/{contacts-birthdate-rac-DaEUXJTf.js → contacts-birthdate-rac-B7p8LgYA.js} +1 -1
- package/dist/component/{contacts-company-rac-IgRyjtcM.js → contacts-company-rac-cjLRO5J-.js} +1 -1
- package/dist/component/{contacts-email-rac-BS1MDrMk.js → contacts-email-rac-BlJJSkGK.js} +1 -1
- package/dist/component/{contacts-first-name-rac-BAvXypDF.js → contacts-first-name-rac-Nl-MDndn.js} +1 -1
- package/dist/component/{contacts-last-name-rac-C289RYPl.js → contacts-last-name-rac-DhxAobRI.js} +1 -1
- package/dist/component/{contacts-phone-rac-DIpyskam.js → contacts-phone-rac-CZLWlH0T.js} +1 -1
- package/dist/component/{contacts-position-rac-nPeh3lKU.js → contacts-position-rac-DlKC0lCU.js} +1 -1
- package/dist/component/{contacts-subscribe-rac-Ci5OLk68.js → contacts-subscribe-rac-POSKh1Ta.js} +2 -2
- package/dist/component/{contacts-tax-id-rac-C4WB-SR0.js → contacts-tax-id-rac-uyBKxOJn.js} +1 -1
- package/dist/component/{date-availability-HHjPx4Uv.js → date-availability-DnFJD1aS.js} +1 -1
- package/dist/component/{date-input-field-rac-GFgFcpX2.js → date-input-field-rac-DojzGm-i.js} +22 -22
- package/dist/component/{date-input-rac-B9BUEIA-.js → date-input-rac-BaPKcAuU.js} +1 -1
- package/dist/component/{date-picker-field-rac-BfjYIIuY.js → date-picker-field-rac-C1rzJMV8.js} +24 -24
- package/dist/component/{date-picker-rac-Bd2UN0ZF.js → date-picker-rac-BHsOfkYn.js} +1 -1
- package/dist/component/{date-time-input-field-rac-CAXnxLQP.js → date-time-input-field-rac-B4jAAxU8.js} +32 -32
- package/dist/component/{date-time-input-rac-BuJ3Awlh.js → date-time-input-rac-XyL5z_ma.js} +1 -1
- package/dist/component/{dext-checkbox-group-rac-DKp4cBVa.js → dext-checkbox-group-rac-DzpdOP3i.js} +2 -2
- package/dist/component/{dext-checkbox-rac-BMu_k06A.js → dext-checkbox-rac-BUWkvW5s.js} +1 -1
- package/dist/component/{dext-date-picker-rac-L3sdldhT.js → dext-date-picker-rac-CR0PUoOn.js} +1 -1
- package/dist/component/{dext-date-time-input-rac-UmabFzDN.js → dext-date-time-input-rac-D3WhLSKK.js} +1 -1
- package/dist/component/{dext-dropdown-rac-DbjgYaG-.js → dext-dropdown-rac-BJ1UfAIM.js} +1 -1
- package/dist/component/{dext-email-rac-rNudrOOK.js → dext-email-rac-xk_5C79-.js} +1 -1
- package/dist/component/{dext-number-input-rac-hw1FTrJL.js → dext-number-input-rac-Cu1Sqoac.js} +1 -1
- package/dist/component/{dext-phone-rac-DrZ_Vwv2.js → dext-phone-rac-S34qxXwg.js} +1 -1
- package/dist/component/{dext-radio-group-rac-DAt2ax-I.js → dext-radio-group-rac-DXnAk_eU.js} +2 -2
- package/dist/component/{dext-rating-input-rac-BW2Ike11.js → dext-rating-input-rac-ewGpgB63.js} +1 -1
- package/dist/component/{dext-tags-rac-DDzwlKrR.js → dext-tags-rac-BApZKGqP.js} +2 -2
- package/dist/component/{dext-text-area-rac-D0xf4z3z.js → dext-text-area-rac-DBtuaiwM.js} +1 -1
- package/dist/component/{dext-text-input-rac-Da04OLmq.js → dext-text-input-rac-qI8VECmA.js} +1 -1
- package/dist/component/{dext-url-input-rac-B-g4xTqh.js → dext-url-input-rac-C6vzqNjn.js} +1 -1
- package/dist/component/donation-rac-BDVKvG4j.js +302 -0
- package/dist/component/{dropdown-field-headless-Js5TxdU4.js → dropdown-field-headless-DBl8vGed.js} +16 -16
- package/dist/component/{dropdown-field-rac-BDxcvX00.js → dropdown-field-rac-O6G7_kSn.js} +9 -9
- package/dist/component/{dropdown-rac-B5UHNzV-.js → dropdown-rac-BImZ5Jwe.js} +1 -1
- package/dist/component/{ecom-address-rac-0zm4bX37.js → ecom-address-rac-BU4XZ_Do.js} +1 -1
- package/dist/component/{ecom-subscription-checkbox-rac-DCXoI33l.js → ecom-subscription-checkbox-rac-DLzpoNYm.js} +3 -3
- package/dist/component/{email-input-field-rac-svf6hUHF.js → email-input-field-rac-Ui0p35z5.js} +45 -45
- package/dist/component/{events-repeater-rac-DMIqzuVK.js → events-repeater-rac-bPKOOOit.js} +49 -49
- package/dist/component/{events-rsvp-rac-B_YD4ckO.js → events-rsvp-rac-lsRBBfPQ.js} +3 -3
- package/dist/component/{field-error-headless-DTKnr5Zx.js → field-error-headless-D6iejMQP.js} +3 -3
- package/dist/component/{field-label-headless-DV4aNd5Y.js → field-label-headless-BWLfU3YB.js} +4 -4
- package/dist/component/field-rac.module-DnUIb9Oh.js +21 -0
- package/dist/component/{file-upload-rac-lGKJjG3m.js → file-upload-rac-DqKL8QQZ.js} +116 -116
- package/dist/component/{fixed-payment-rac-BVS6glii.js → fixed-payment-rac-BDtRB8w2.js} +14 -14
- package/dist/component/{form-DzjdnO7t.js → form-CtWkUmxc.js} +1563 -1556
- package/dist/component/form-element-classes-BSMjWijd.js +63 -0
- package/dist/component/form.css +1 -1
- package/dist/component/form.js +1 -1
- package/dist/component/{header-field-rac-tzBH-8Yh.js → header-field-rac-BLM8RCDY.js} +7 -7
- package/dist/component/{header-rac-6thQAvVF.js → header-rac-DViRwafg.js} +1 -1
- package/dist/component/image-choice-rac-D76t2y-b.js +141 -0
- package/dist/component/{index-Lnx0829a.js → index--iRBHLXJ.js} +4 -4
- package/dist/component/{index-DIP7KB8P.js → index-pEItT2oo.js} +2 -2
- package/dist/component/{isObjectLike-B_1KizZV.js → isObjectLike-968AHV2b.js} +1 -1
- package/dist/component/{multiline-address-field-rac-BY2SUp2d.js → multiline-address-field-rac-CObOc8KE.js} +82 -82
- package/dist/component/{multiline-address-rac-BL8Yp4F0.js → multiline-address-rac-1qVZkN41.js} +1 -1
- package/dist/component/{number-input-field-rac-x0yFmXbe.js → number-input-field-rac-CPQ3u0N7.js} +19 -19
- package/dist/component/{number-input-rac-pJXc2YsD.js → number-input-rac-Bq1UyUPZ.js} +1 -1
- package/dist/component/{password-rac-B4XCP64b.js → password-rac-BZPK1VkN.js} +15 -15
- package/dist/component/{payment-input-rac-CZdOAjK4.js → payment-input-rac-CQrV0WmN.js} +28 -28
- package/dist/component/{phone-input-field-rac-DO_V5Z_T.js → phone-input-field-rac-DzUE1-RF.js} +39 -39
- package/dist/component/{phone-rac-D16nLDjP.js → phone-rac-BovOZ7V5.js} +1 -1
- package/dist/component/{product-list-rac-DER8gVqy.js → product-list-rac-CeGm1_WN.js} +71 -71
- package/dist/component/quiz-radio-group-rac-Lw2thQqC.js +13 -0
- package/dist/component/{radio-group-field-rac-Dt2pU0VV.js → radio-group-field-rac-BSVmjEgZ.js} +8 -8
- package/dist/component/{radio-group-field-rac.module--sO0VqCA.js → radio-group-field-rac.module-Cb3mm0f2.js} +7 -7
- package/dist/component/{radio-group-rac-CqCmtkNQ.js → radio-group-rac-BHhOCSQ2.js} +1 -1
- package/dist/component/{rating-input-field-rac-xDrHHcL2.js → rating-input-field-rac-BvbBZZDO.js} +31 -31
- package/dist/component/{rating-input-rac-Bo5E9N87.js → rating-input-rac-DDe1EBpt.js} +1 -1
- package/dist/component/{rich-content-rac.module-CJXbNca9.js → rich-content-rac.module-BacYkzEv.js} +1 -1
- package/dist/component/{rich-text-field-rac-CkV0Z9F-.js → rich-text-field-rac-D1W0mUjr.js} +3 -3
- package/dist/component/{rich-text-rac-59DbKpXz.js → rich-text-rac-B-cOn0RU.js} +1 -1
- package/dist/component/{service-dropdown-rac-BLnflnUr.js → service-dropdown-rac-CebfMkGP.js} +41 -41
- package/dist/component/services-multi-choice-rac-C4bF1xhB.js +76 -0
- package/dist/component/{signature-rac-Bb5IaS28.js → signature-rac-DWWT65Ez.js} +48 -48
- package/dist/component/{submit-button-rac-Bjyi8sUA.js → submit-button-rac-_mgn4ChE.js} +6 -6
- package/dist/component/{tags-field-rac-C_VO3_69.js → tags-field-rac-7coCWj0y.js} +39 -39
- package/dist/component/{tags-rac-CKiutCWe.js → tags-rac-rgsn8Os0.js} +1 -1
- package/dist/component/{text-area-field-rac-Cg-vIhFe.js → text-area-field-rac-5lUQxnNM.js} +15 -15
- package/dist/component/{text-area-rac-tMFx38UD.js → text-area-rac-DpGOBzN3.js} +1 -1
- package/dist/component/{text-input-field-rac-CgN_2hOD.js → text-input-field-rac-CgWadDfM.js} +6 -6
- package/dist/component/{text-input-headless-CkhvKrFp.js → text-input-headless-fhxuPytc.js} +11 -11
- package/dist/component/{text-input-rac-BsyBgd3b.js → text-input-rac-kgWS3UUV.js} +1 -1
- package/dist/component/{time-input-rac-BxRVJtHE.js → time-input-rac-CuLUJcBH.js} +34 -34
- package/dist/component/{url-input-field-rac-B_1yVniS.js → url-input-field-rac-CAGHb2na.js} +22 -22
- package/dist/component/{url-input-rac-D8VrKYVe.js → url-input-rac-s5_SVi0h.js} +1 -1
- package/dist/component/{use-service-options-base-Ci9gIluo.js → use-service-options-base-CYAEJ75H.js} +6 -6
- package/dist/form.d.ts +3 -1
- package/package.json +2 -2
- package/dist/component/checkbox-group-field-headless-Cvia4lL6.js +0 -204
- package/dist/component/checkbox-group-field-rac-BXxk90dk.js +0 -33
- package/dist/component/donation-rac-gKeq72jg.js +0 -305
- package/dist/component/field-rac.module-DtugsLiL.js +0 -21
- package/dist/component/form-element-classes-Bi-nNM8q.js +0 -55
- package/dist/component/image-choice-rac-Dx1b-saW.js +0 -141
- package/dist/component/quiz-radio-group-rac-BgTmHHi4.js +0 -13
- package/dist/component/services-multi-choice-rac-C-bFjwx8.js +0 -76
package/dist/component/{email-input-field-rac-svf6hUHF.js → email-input-field-rac-Ui0p35z5.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 H, isValidElement as U, cloneElement as R, useState as le, useCallback as me, useEffect as ue } from "react";
|
|
4
4
|
import { TextField as pe } from "react-aria-components";
|
|
5
|
-
import {
|
|
5
|
+
import { af as fe, as as ge, ad as ve, c as ye, ai as Ee, am as de, ag as be, f as Se } from "./form-CtWkUmxc.js";
|
|
6
6
|
import { f as L } from "./find-child-C60k4CxG.js";
|
|
7
7
|
import ee from "@babel/runtime/helpers/objectWithoutProperties";
|
|
8
|
-
import
|
|
8
|
+
import P from "@babel/runtime/helpers/typeof";
|
|
9
9
|
import Oe from "@babel/runtime/helpers/defineProperty";
|
|
10
10
|
import he from "html-parse-stringify";
|
|
11
11
|
import Ie from "@babel/runtime/helpers/classCallCheck";
|
|
12
12
|
import Ne from "@babel/runtime/helpers/createClass";
|
|
13
|
-
import { T as B } from "./text-input-headless-
|
|
13
|
+
import { T as B } from "./text-input-headless-fhxuPytc.js";
|
|
14
14
|
import { E as Ae } from "./error-icon-hZxQ6DEy.js";
|
|
15
|
-
import { s as C } from "./field-rac.module-
|
|
16
|
-
import {
|
|
15
|
+
import { s as C } from "./field-rac.module-DnUIb9Oh.js";
|
|
16
|
+
import { z as Fe, P as ke, y as Te, q as De, j as je, Z as xe } from "./form-element-classes-BSMjWijd.js";
|
|
17
17
|
var Le = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g, Ce = {
|
|
18
18
|
"&": "&",
|
|
19
19
|
"&": "&",
|
|
@@ -35,10 +35,10 @@ var Le = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#1
|
|
|
35
35
|
"…": "…",
|
|
36
36
|
"/": "/",
|
|
37
37
|
"/": "/"
|
|
38
|
-
}, Me = function(t) {
|
|
39
|
-
return Ce[t];
|
|
40
38
|
}, Pe = function(t) {
|
|
41
|
-
return t
|
|
39
|
+
return Ce[t];
|
|
40
|
+
}, Me = function(t) {
|
|
41
|
+
return t.replace(Le, Pe);
|
|
42
42
|
}, _e = {
|
|
43
43
|
bindI18n: "languageChanged",
|
|
44
44
|
bindI18nStore: "",
|
|
@@ -47,8 +47,8 @@ var Le = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#1
|
|
|
47
47
|
transWrapTextNodes: "",
|
|
48
48
|
transKeepBasicHtmlNodesFor: ["br", "strong", "i", "p"],
|
|
49
49
|
useSuspense: !0,
|
|
50
|
-
unescape:
|
|
51
|
-
}, we, Re =
|
|
50
|
+
unescape: Me
|
|
51
|
+
}, we, Re = Q();
|
|
52
52
|
function He() {
|
|
53
53
|
return _e;
|
|
54
54
|
}
|
|
@@ -81,14 +81,14 @@ function K() {
|
|
|
81
81
|
typeof a[0] == "string" && (a[0] = "react-i18next:: ".concat(a[0])), (e = console).warn.apply(e, a);
|
|
82
82
|
}
|
|
83
83
|
}
|
|
84
|
-
var
|
|
84
|
+
var z = {};
|
|
85
85
|
function Ue() {
|
|
86
86
|
for (var e = arguments.length, t = new Array(e), a = 0; a < e; a++)
|
|
87
87
|
t[a] = arguments[a];
|
|
88
|
-
typeof t[0] == "string" &&
|
|
88
|
+
typeof t[0] == "string" && z[t[0]] || (typeof t[0] == "string" && (z[t[0]] = /* @__PURE__ */ new Date()), K.apply(void 0, t));
|
|
89
89
|
}
|
|
90
90
|
var Be = ["format"], qe = ["children", "count", "parent", "i18nKey", "context", "tOptions", "values", "defaults", "components", "ns", "i18n", "t", "shouldUnescape"];
|
|
91
|
-
function
|
|
91
|
+
function J(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 ?
|
|
104
|
+
t % 2 ? J(Object(a), !0).forEach(function(o) {
|
|
105
105
|
Oe(e, o, a[o]);
|
|
106
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(a)) :
|
|
106
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(a)) : J(Object(a)).forEach(function(o) {
|
|
107
107
|
Object.defineProperty(e, o, Object.getOwnPropertyDescriptor(a, o));
|
|
108
108
|
});
|
|
109
109
|
}
|
|
@@ -122,7 +122,7 @@ function Ve(e) {
|
|
|
122
122
|
return U(t);
|
|
123
123
|
});
|
|
124
124
|
}
|
|
125
|
-
function
|
|
125
|
+
function M(e) {
|
|
126
126
|
return Array.isArray(e) ? e : [e];
|
|
127
127
|
}
|
|
128
128
|
function Ye(e, t) {
|
|
@@ -131,7 +131,7 @@ function Ye(e, t) {
|
|
|
131
131
|
}
|
|
132
132
|
function te(e, t) {
|
|
133
133
|
if (!e) return "";
|
|
134
|
-
var a = "", o =
|
|
134
|
+
var a = "", o = M(e), c = t.transSupportBasicHtmlNodes && t.transKeepBasicHtmlNodesFor ? t.transKeepBasicHtmlNodesFor : [];
|
|
135
135
|
return o.forEach(function(r, g) {
|
|
136
136
|
if (typeof r == "string")
|
|
137
137
|
a += "".concat(r);
|
|
@@ -151,7 +151,7 @@ function te(e, t) {
|
|
|
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
|
-
else if (
|
|
154
|
+
else if (P(r) === "object") {
|
|
155
155
|
var O = r.format, F = ee(r, Be), A = Object.keys(F);
|
|
156
156
|
if (A.length === 1) {
|
|
157
157
|
var S = O ? "".concat(A[0], ", ").concat(O) : A[0];
|
|
@@ -168,9 +168,9 @@ function Ge(e, t, a, o, c, r) {
|
|
|
168
168
|
if (!e && !v) return [t];
|
|
169
169
|
var d = {};
|
|
170
170
|
function b(y) {
|
|
171
|
-
var h =
|
|
171
|
+
var h = M(y);
|
|
172
172
|
h.forEach(function(s) {
|
|
173
|
-
typeof s != "string" && (Y(s) ? b(G(s)) :
|
|
173
|
+
typeof s != "string" && (Y(s) ? b(G(s)) : P(s) === "object" && !U(s) && Object.assign(d, s));
|
|
174
174
|
});
|
|
175
175
|
}
|
|
176
176
|
b(e);
|
|
@@ -185,7 +185,7 @@ function Ge(e, t, a, o, c, r) {
|
|
|
185
185
|
}), I ? void 0 : h));
|
|
186
186
|
}
|
|
187
187
|
function S(y, h, s) {
|
|
188
|
-
var i =
|
|
188
|
+
var i = M(y), I = M(h);
|
|
189
189
|
return I.reduce(function(l, n, E) {
|
|
190
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") {
|
|
@@ -193,7 +193,7 @@ function Ge(e, t, a, o, c, r) {
|
|
|
193
193
|
!N && s.length === 1 && s[0][n.name] && (N = s[0][n.name]), N || (N = {});
|
|
194
194
|
var m = Object.keys(n.attrs).length !== 0 ? Ye({
|
|
195
195
|
props: n.attrs
|
|
196
|
-
}, N) : N, D = U(m), q = D && Y(n, !0) && !n.voidElement, _ = v &&
|
|
196
|
+
}, N) : N, D = U(m), q = D && Y(n, !0) && !n.voidElement, _ = v && P(m) === "object" && m.dummy && !D, w = P(e) === "object" && e !== null && Object.hasOwnProperty.call(e, n.name);
|
|
197
197
|
if (typeof m == "string") {
|
|
198
198
|
var V = a.services.interpolator.interpolate(m, O, a.language);
|
|
199
199
|
l.push(V);
|
|
@@ -226,7 +226,7 @@ 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 (
|
|
229
|
+
else if (P(m) === "object" && !D) {
|
|
230
230
|
var $ = n.children[0] ? k : null;
|
|
231
231
|
$ && l.push($);
|
|
232
232
|
} else n.children.length === 1 && k ? l.push(R(m, p(p({}, m.props), {}, {
|
|
@@ -243,14 +243,14 @@ function Ge(e, t, a, o, c, r) {
|
|
|
243
243
|
return l;
|
|
244
244
|
}, []);
|
|
245
245
|
}
|
|
246
|
-
var
|
|
246
|
+
var x = S([{
|
|
247
247
|
dummy: !0,
|
|
248
248
|
children: e || []
|
|
249
|
-
}], T,
|
|
250
|
-
return G(
|
|
249
|
+
}], T, M(e || []));
|
|
250
|
+
return G(x[0]);
|
|
251
251
|
}
|
|
252
252
|
function $e(e) {
|
|
253
|
-
var t = e.children, a = e.count, o = e.parent, c = e.i18nKey, r = e.context, g = e.tOptions, v = g === void 0 ? {} : g, d = e.values, b = e.defaults, T = e.components, O = e.ns, F = e.i18n, A = e.t, S = e.shouldUnescape,
|
|
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, x = ee(e, qe), y = Z(Re) || {}, h = y.i18n, s = y.defaultNS, i = F || h || Ke();
|
|
254
254
|
if (!i)
|
|
255
255
|
return Ue("You will need to pass in an i18next instance by using i18nextReactModule"), t;
|
|
256
256
|
var I = A || i.t.bind(i) || function(V) {
|
|
@@ -270,22 +270,22 @@ function $e(e) {
|
|
|
270
270
|
defaultValue: E,
|
|
271
271
|
ns: n
|
|
272
272
|
}), q = N ? I(N, D) : E, _ = Ge(T || t, q, i, l, D, S), w = o !== void 0 ? o : l.defaultTransParent;
|
|
273
|
-
return w ? H(w,
|
|
273
|
+
return w ? H(w, x, _) : _;
|
|
274
274
|
}
|
|
275
|
-
const We = "email-mistype-suggestion", Xe = "email-mistype-suggestion-link", ae = /* @__PURE__ */
|
|
276
|
-
function
|
|
275
|
+
const We = "email-mistype-suggestion", Xe = "email-mistype-suggestion-link", ae = /* @__PURE__ */ Q(void 0);
|
|
276
|
+
function ze() {
|
|
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 Je = ({ 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),
|
|
288
|
-
const { suggestionId: t } = fe(), { activeSuggestion: a, applySuggestion: o } =
|
|
287
|
+
}, a), Qe = ({ className: e }) => {
|
|
288
|
+
const { suggestionId: t } = fe(), { activeSuggestion: a, applySuggestion: o } = ze(), { t: c, i18n: r } = ge();
|
|
289
289
|
return /* @__PURE__ */ u.createElement("div", {
|
|
290
290
|
id: t,
|
|
291
291
|
"data-hook": We,
|
|
@@ -449,17 +449,17 @@ 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: T, description: O, FieldLayout: F } = Ee(), { isMistyped: A, suggestedEmail: S, validate:
|
|
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: x } = at({
|
|
453
453
|
email: a,
|
|
454
454
|
hasError: v
|
|
455
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
|
-
|
|
458
|
+
x(), d == null || d();
|
|
459
459
|
}, n = L(e, f.Label), E = L(e, f.Input), k = L(e, f.Description), N = L(e, f.Error), m = L(e, f.Suggestion);
|
|
460
460
|
return /* @__PURE__ */ u.createElement(Se.Provider, {
|
|
461
461
|
value: i
|
|
462
|
-
}, /* @__PURE__ */ u.createElement(
|
|
462
|
+
}, /* @__PURE__ */ u.createElement(Je, {
|
|
463
463
|
activeSuggestion: s,
|
|
464
464
|
applySuggestion: I
|
|
465
465
|
}, /* @__PURE__ */ u.createElement(F, {
|
|
@@ -483,24 +483,24 @@ f.Label = B.Label;
|
|
|
483
483
|
f.Input = B.Input;
|
|
484
484
|
f.Description = B.Description;
|
|
485
485
|
f.Error = B.Error;
|
|
486
|
-
f.Suggestion =
|
|
486
|
+
f.Suggestion = Qe;
|
|
487
487
|
const nt = "_suggestion_di65n_1", ot = {
|
|
488
488
|
suggestion: nt
|
|
489
489
|
}, rt = ({ content: e, locale: t }) => /* @__PURE__ */ u.createElement(ie, {
|
|
490
490
|
content: e,
|
|
491
491
|
locale: t
|
|
492
492
|
}), ht = () => /* @__PURE__ */ u.createElement(f, null, /* @__PURE__ */ u.createElement(f.Label, {
|
|
493
|
-
className:
|
|
493
|
+
className: j(Fe, C.label)
|
|
494
494
|
}, /* @__PURE__ */ u.createElement(f.Label.Required, {
|
|
495
|
-
className:
|
|
495
|
+
className: j(ke, C.requiredMark)
|
|
496
496
|
})), /* @__PURE__ */ u.createElement(f.Input, {
|
|
497
|
-
className:
|
|
497
|
+
className: j(Te, C.input)
|
|
498
498
|
}), /* @__PURE__ */ u.createElement(f.Error, {
|
|
499
|
-
className:
|
|
499
|
+
className: j(De, C.error)
|
|
500
500
|
}, /* @__PURE__ */ u.createElement(Ae, null), /* @__PURE__ */ u.createElement(f.Error.Text, null)), /* @__PURE__ */ u.createElement(f.Description, {
|
|
501
|
-
className:
|
|
501
|
+
className: j(je, C.description)
|
|
502
502
|
}, rt), /* @__PURE__ */ u.createElement(f.Suggestion, {
|
|
503
|
-
className:
|
|
503
|
+
className: j(xe, ot.suggestion)
|
|
504
504
|
}));
|
|
505
505
|
export {
|
|
506
506
|
ht as E
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import t, { useState as
|
|
1
|
+
import t, { useState as z, useMemo as B, useCallback as V, useRef as M } from "react";
|
|
2
2
|
import v from "classnames";
|
|
3
|
-
import { NumberField as
|
|
4
|
-
import {
|
|
3
|
+
import { NumberField as q, Input as J, CheckboxField as Q, CheckboxButton as W, Button as w } from "react-aria-components";
|
|
4
|
+
import { ao as P, ap as U, ae as j, aj as H, u as Y, ai as D, af as K, ak as X, j as Z } from "./form-CtWkUmxc.js";
|
|
5
5
|
import { f as F, a as R } from "./find-child-C60k4CxG.js";
|
|
6
|
-
import { L as ee } from "./field-label-headless-
|
|
6
|
+
import { L as ee } from "./field-label-headless-BWLfU3YB.js";
|
|
7
7
|
import { u as te } from "./use-invoke-callback-UH73A_J3.js";
|
|
8
8
|
import { C as x } from "./chevron-down-icon-CcpVm6B-.js";
|
|
9
|
-
import { s as L } from "./field-rac.module-
|
|
10
|
-
import {
|
|
9
|
+
import { s as L } from "./field-rac.module-DnUIb9Oh.js";
|
|
10
|
+
import { z as se, y as ne, r as oe, s as re, t as ae } from "./form-element-classes-BSMjWijd.js";
|
|
11
11
|
const le = [], ce = ({ id: e, fields: n, layout: l, value: r, onChange: s, errors: m = le, validation: c }) => {
|
|
12
|
-
const [i, E] =
|
|
12
|
+
const [i, E] = z((r == null ? void 0 : r.length) || 0), a = B(() => r ?? [], [
|
|
13
13
|
r
|
|
14
|
-
]), g = P(),
|
|
14
|
+
]), g = P(), f = U(), d = j(), { validateFields: u } = H(), C = c.predefined.objectArrayOptions.maxItems, _ = B(() => Y({
|
|
15
15
|
form: {
|
|
16
16
|
fields: n,
|
|
17
17
|
steps: [
|
|
@@ -26,8 +26,8 @@ const le = [], ce = ({ id: e, fields: n, layout: l, value: r, onChange: s, error
|
|
|
26
26
|
n,
|
|
27
27
|
l,
|
|
28
28
|
e
|
|
29
|
-
]),
|
|
30
|
-
const [
|
|
29
|
+
]), G = B(() => m.reduce((p, I) => {
|
|
30
|
+
const [h, N] = I.errorPath.split("/"), A = parseInt(h, 10);
|
|
31
31
|
return p[A] || (p[A] = []), p[A].push({
|
|
32
32
|
...I,
|
|
33
33
|
errorPath: N
|
|
@@ -35,21 +35,21 @@ const le = [], ce = ({ id: e, fields: n, layout: l, value: r, onChange: s, error
|
|
|
35
35
|
}, []), [
|
|
36
36
|
m
|
|
37
37
|
]), b = V((p) => {
|
|
38
|
-
const I = Number.isNaN(p) ? 0 : Math.min(Math.max(p, 0),
|
|
38
|
+
const I = Number.isNaN(p) ? 0 : Math.min(Math.max(p, 0), C);
|
|
39
39
|
E(I), s == null || s(Array.from({
|
|
40
40
|
length: I
|
|
41
|
-
}, (
|
|
41
|
+
}, (h, N) => a[N] ?? {}));
|
|
42
42
|
}, [
|
|
43
|
-
|
|
43
|
+
C,
|
|
44
44
|
a,
|
|
45
45
|
s
|
|
46
|
-
]), T = V((p) => (I,
|
|
46
|
+
]), T = V((p) => (I, h) => {
|
|
47
47
|
const N = Array.from({
|
|
48
48
|
length: i
|
|
49
49
|
}, (A, $) => a[$] ?? {});
|
|
50
50
|
N[p] = {
|
|
51
51
|
...N[p],
|
|
52
|
-
[I]:
|
|
52
|
+
[I]: h
|
|
53
53
|
}, s == null || s(N);
|
|
54
54
|
}, [
|
|
55
55
|
i,
|
|
@@ -57,30 +57,30 @@ const le = [], ce = ({ id: e, fields: n, layout: l, value: r, onChange: s, error
|
|
|
57
57
|
s
|
|
58
58
|
]);
|
|
59
59
|
return {
|
|
60
|
-
guestLimit:
|
|
60
|
+
guestLimit: C,
|
|
61
61
|
guestCount: i,
|
|
62
62
|
guests: a,
|
|
63
|
-
errorsByIndex:
|
|
63
|
+
errorsByIndex: G,
|
|
64
64
|
formView: _,
|
|
65
65
|
formSchema: g,
|
|
66
|
-
formFields:
|
|
66
|
+
formFields: f,
|
|
67
67
|
fieldActions: d,
|
|
68
68
|
validateFields: u,
|
|
69
69
|
changeGuestCount: b,
|
|
70
70
|
changeGuestField: T
|
|
71
71
|
};
|
|
72
72
|
}, ue = [], me = {}, o = ({ children: e, className: n }) => {
|
|
73
|
-
const l = D(), { id: r, FieldLayout: s } = l, { guestLimit: m, guestCount: c, guests: i, errorsByIndex: E, formView: a, changeGuestCount: g, changeGuestField:
|
|
73
|
+
const l = D(), { id: r, FieldLayout: s } = l, { guestLimit: m, guestCount: c, guests: i, errorsByIndex: E, formView: a, changeGuestCount: g, changeGuestField: f } = ce(l), d = F(e, o.Label), u = F(e, o.GuestCount), C = F(e, o.GuestToggle), _ = F(e, o.Guests), G = m > 1;
|
|
74
74
|
return /* @__PURE__ */ t.createElement(s, {
|
|
75
75
|
fieldId: r,
|
|
76
|
-
renderLabel: () =>
|
|
76
|
+
renderLabel: () => G ? d : null,
|
|
77
77
|
renderInput: () => /* @__PURE__ */ t.createElement("div", {
|
|
78
78
|
className: n
|
|
79
|
-
},
|
|
79
|
+
}, G ? R(u, {
|
|
80
80
|
guestLimit: m,
|
|
81
81
|
guestCount: c,
|
|
82
82
|
onGuestCountChange: g
|
|
83
|
-
}) : R(
|
|
83
|
+
}) : R(C, {
|
|
84
84
|
guestCount: c,
|
|
85
85
|
onGuestCountChange: g
|
|
86
86
|
}), R(_, {
|
|
@@ -88,20 +88,20 @@ const le = [], ce = ({ id: e, fields: n, layout: l, value: r, onChange: s, error
|
|
|
88
88
|
guests: i,
|
|
89
89
|
errorsByIndex: E,
|
|
90
90
|
formView: a,
|
|
91
|
-
onGuestFieldChange:
|
|
91
|
+
onGuestFieldChange: f
|
|
92
92
|
})),
|
|
93
93
|
renderDescription: () => null
|
|
94
94
|
});
|
|
95
95
|
}, ie = ({ className: e }) => /* @__PURE__ */ t.createElement(ee, {
|
|
96
96
|
className: e
|
|
97
|
-
}, null),
|
|
98
|
-
const { guestLimit: s, guestCount: m, onGuestCountChange: c } = r, { id: i, label: E, disabled: a, readOnly: g, onBlur:
|
|
97
|
+
}, null), O = ({ children: e, className: n, groupClassName: l, ...r }) => {
|
|
98
|
+
const { guestLimit: s, guestCount: m, onGuestCountChange: c } = r, { id: i, label: E, disabled: a, readOnly: g, onBlur: f, onFocus: d } = D(), { inputId: u, ariaDescribedBy: C } = K(), _ = te(f), G = M(null);
|
|
99
99
|
X(() => {
|
|
100
100
|
var p;
|
|
101
|
-
(p =
|
|
101
|
+
(p = G.current) == null || p.focus();
|
|
102
102
|
}, i);
|
|
103
|
-
const b = F(e,
|
|
104
|
-
return /* @__PURE__ */ t.createElement(
|
|
103
|
+
const b = F(e, O.Decrement), T = F(e, O.Increment);
|
|
104
|
+
return /* @__PURE__ */ t.createElement(q, {
|
|
105
105
|
className: l,
|
|
106
106
|
"aria-label": E,
|
|
107
107
|
value: m,
|
|
@@ -114,9 +114,9 @@ const le = [], ce = ({ id: e, fields: n, layout: l, value: r, onChange: s, error
|
|
|
114
114
|
onBlur: _,
|
|
115
115
|
onFocus: d
|
|
116
116
|
}, /* @__PURE__ */ t.createElement(J, {
|
|
117
|
-
ref:
|
|
117
|
+
ref: G,
|
|
118
118
|
id: u,
|
|
119
|
-
"aria-describedby":
|
|
119
|
+
"aria-describedby": C,
|
|
120
120
|
className: n,
|
|
121
121
|
inputMode: "numeric"
|
|
122
122
|
}), T, b);
|
|
@@ -126,30 +126,30 @@ const le = [], ce = ({ id: e, fields: n, layout: l, value: r, onChange: s, error
|
|
|
126
126
|
}, e), pe = ({ children: e, className: n }) => /* @__PURE__ */ t.createElement(w, {
|
|
127
127
|
slot: "increment",
|
|
128
128
|
className: n
|
|
129
|
-
}, e),
|
|
130
|
-
const { guestCount: r, onGuestCountChange: s } = l, { id: m, label: c, disabled: i, readOnly: E, onBlur: a, onFocus: g } = D(), { inputId:
|
|
129
|
+
}, e), S = ({ children: e, className: n, ...l }) => {
|
|
130
|
+
const { guestCount: r, onGuestCountChange: s } = l, { id: m, label: c, disabled: i, readOnly: E, onBlur: a, onFocus: g } = D(), { inputId: f, ariaDescribedBy: d } = K(), u = M(null);
|
|
131
131
|
X(() => {
|
|
132
132
|
var b;
|
|
133
133
|
(b = u.current) == null || b.focus();
|
|
134
134
|
}, m);
|
|
135
|
-
const
|
|
135
|
+
const C = F(e, S.Input), _ = F(e, S.Label), G = V((b) => {
|
|
136
136
|
s(b ? 1 : 0);
|
|
137
137
|
}, [
|
|
138
138
|
s
|
|
139
139
|
]);
|
|
140
140
|
return /* @__PURE__ */ t.createElement(Q, {
|
|
141
141
|
inputRef: u,
|
|
142
|
-
id:
|
|
142
|
+
id: f,
|
|
143
143
|
"aria-describedby": d,
|
|
144
144
|
isSelected: r > 0,
|
|
145
|
-
onChange:
|
|
145
|
+
onChange: G,
|
|
146
146
|
isDisabled: i,
|
|
147
147
|
isReadOnly: E,
|
|
148
148
|
onBlur: a,
|
|
149
149
|
onFocus: g
|
|
150
150
|
}, /* @__PURE__ */ t.createElement(W, {
|
|
151
151
|
className: n
|
|
152
|
-
},
|
|
152
|
+
}, C, R(_, {
|
|
153
153
|
label: c
|
|
154
154
|
})));
|
|
155
155
|
}, Ee = ({ className: e }) => /* @__PURE__ */ t.createElement("div", {
|
|
@@ -175,12 +175,12 @@ const le = [], ce = ({ id: e, fields: n, layout: l, value: r, onChange: s, error
|
|
|
175
175
|
c,
|
|
176
176
|
E,
|
|
177
177
|
a
|
|
178
|
-
]),
|
|
178
|
+
]), f = F(e, k.Guest);
|
|
179
179
|
return r ? /* @__PURE__ */ t.createElement("div", {
|
|
180
180
|
className: n
|
|
181
181
|
}, Array.from({
|
|
182
182
|
length: r
|
|
183
|
-
}, (d, u) => R(
|
|
183
|
+
}, (d, u) => R(f, {
|
|
184
184
|
key: u,
|
|
185
185
|
index: u,
|
|
186
186
|
formView: g,
|
|
@@ -188,7 +188,7 @@ const le = [], ce = ({ id: e, fields: n, layout: l, value: r, onChange: s, error
|
|
|
188
188
|
errors: m[u] ?? ue,
|
|
189
189
|
onFieldChange: i(u)
|
|
190
190
|
}))) : null;
|
|
191
|
-
},
|
|
191
|
+
}, fe = ({ className: e, ...n }) => {
|
|
192
192
|
const { index: l, formView: r, values: s, errors: m, onFieldChange: c } = n, i = P(), E = U(), a = j(), { validateFields: g } = H();
|
|
193
193
|
return /* @__PURE__ */ t.createElement("div", {
|
|
194
194
|
className: e,
|
|
@@ -204,18 +204,18 @@ const le = [], ce = ({ id: e, fields: n, layout: l, value: r, onChange: s, error
|
|
|
204
204
|
fieldActions: a
|
|
205
205
|
}));
|
|
206
206
|
};
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
k.Guest =
|
|
207
|
+
O.Decrement = de;
|
|
208
|
+
O.Increment = pe;
|
|
209
|
+
S.Input = Ee;
|
|
210
|
+
S.Label = ge;
|
|
211
|
+
k.Guest = fe;
|
|
212
212
|
o.Label = ie;
|
|
213
|
-
o.GuestCount =
|
|
214
|
-
o.GuestToggle =
|
|
213
|
+
o.GuestCount = O;
|
|
214
|
+
o.GuestToggle = S;
|
|
215
215
|
o.Guests = k;
|
|
216
|
-
const
|
|
217
|
-
container:
|
|
218
|
-
countGroup:
|
|
216
|
+
const Ce = "_container_11veo_1", Ge = "_countGroup_11veo_8", Fe = "_increment_11veo_28", be = "_decrement_11veo_29", y = {
|
|
217
|
+
container: Ce,
|
|
218
|
+
countGroup: Ge,
|
|
219
219
|
increment: Fe,
|
|
220
220
|
decrement: be
|
|
221
221
|
}, _e = () => /* @__PURE__ */ t.createElement(o, {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import t from "react";
|
|
2
2
|
import { RicosViewer as c } from "@wix/ricos/viewer";
|
|
3
3
|
import r from "classnames";
|
|
4
|
-
import { R as a, s as o } from "./radio-group-field-rac.module
|
|
4
|
+
import { R as a, s as o } from "./radio-group-field-rac.module-Cb3mm0f2.js";
|
|
5
5
|
import { E as m } from "./error-icon-hZxQ6DEy.js";
|
|
6
|
-
import { s } from "./field-rac.module-
|
|
7
|
-
import {
|
|
6
|
+
import { s } from "./field-rac.module-DnUIb9Oh.js";
|
|
7
|
+
import { z as i, P as E, Q as p, S as R, R as _, q as L, j as O } from "./form-element-classes-BSMjWijd.js";
|
|
8
8
|
const e = ({ children: n }) => /* @__PURE__ */ t.createElement(a, null, n);
|
|
9
9
|
e.Label = a.Label;
|
|
10
10
|
e.Options = a.Options;
|
package/dist/component/{field-error-headless-DTKnr5Zx.js → field-error-headless-D6iejMQP.js}
RENAMED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import t, { createContext as m, useContext as M } from "react";
|
|
2
|
-
import {
|
|
2
|
+
import { ai as c, af as i, ab as f, T as x, U as h } from "./form-CtWkUmxc.js";
|
|
3
3
|
const b = ({ className: r, children: e }) => {
|
|
4
4
|
const { description: s, target: o } = c(), { descriptionId: a } = i(), { language: n } = f();
|
|
5
5
|
return s ? /* @__PURE__ */ t.createElement("div", {
|
|
6
6
|
className: r,
|
|
7
7
|
id: a,
|
|
8
|
-
"data-hook":
|
|
8
|
+
"data-hook": x(o)
|
|
9
9
|
}, e({
|
|
10
10
|
content: s,
|
|
11
11
|
locale: n
|
|
@@ -21,7 +21,7 @@ const b = ({ className: r, children: e }) => {
|
|
|
21
21
|
value: p
|
|
22
22
|
}, /* @__PURE__ */ t.createElement("div", {
|
|
23
23
|
id: g,
|
|
24
|
-
"data-hook":
|
|
24
|
+
"data-hook": h(n),
|
|
25
25
|
className: r
|
|
26
26
|
}, e)) : null;
|
|
27
27
|
};
|
package/dist/component/{field-label-headless-DV4aNd5Y.js → field-label-headless-BWLfU3YB.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ai as m, R as d, q as p, af as D, as as B } from "./form-CtWkUmxc.js";
|
|
2
2
|
import l from "react";
|
|
3
3
|
import { f as L } from "./find-child-C60k4CxG.js";
|
|
4
4
|
import { sdk as R } from "@wix/image-kit";
|
|
@@ -15,13 +15,13 @@ const S = {
|
|
|
15
15
|
margin: 0,
|
|
16
16
|
padding: 0
|
|
17
17
|
}, U = "", i = ({ children: e, className: t, ...n }) => {
|
|
18
|
-
const { as: a = "label", requiredIndicatorHidden: r = !1, label: o } = n, { label: T, required: g = !1, hideLabel: q = !1, requiredIndicatorType: F = d.ASTERISK, requiredIndicatorPlacement: O = p.AFTER_FIELD_TITLE, media: y, mediaSettings: s } = m(), { labelId: A, inputId: P } = D(), _ = a,
|
|
18
|
+
const { as: a = "label", requiredIndicatorHidden: r = !1, label: o } = n, { label: T, required: g = !1, hideLabel: q = !1, requiredIndicatorType: F = d.ASTERISK, requiredIndicatorPlacement: O = p.AFTER_FIELD_TITLE, media: y, mediaSettings: s } = m(), { labelId: A, inputId: P } = D(), _ = a, f = g && !r ? L(e, i.Required) : null, c = y ? L(e, i.Image) : null, E = (s == null ? void 0 : s.imagePosition) ?? u.TOP, h = F === d.ASTERISK && O === p.BEFORE_FIELD_TITLE, I = (o ?? T) || U, b = /* @__PURE__ */ l.createElement(_, {
|
|
19
19
|
id: A,
|
|
20
20
|
htmlFor: a === "label" ? P : void 0,
|
|
21
21
|
className: t,
|
|
22
22
|
style: q ? S : void 0
|
|
23
|
-
}, h ? /* @__PURE__ */ l.createElement(l.Fragment, null,
|
|
24
|
-
return c ? /* @__PURE__ */ l.createElement("div", null,
|
|
23
|
+
}, h ? /* @__PURE__ */ l.createElement(l.Fragment, null, f, I) : /* @__PURE__ */ l.createElement(l.Fragment, null, I, f));
|
|
24
|
+
return c ? /* @__PURE__ */ l.createElement("div", null, E === u.TOP ? c : null, b, E === u.BOTTOM ? c : null) : b;
|
|
25
25
|
}, v = ({ className: e }) => {
|
|
26
26
|
const { t } = B(), { requiredIndicatorType: n } = m();
|
|
27
27
|
return n === d.TEXT ? /* @__PURE__ */ l.createElement("span", {
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
const o = "_label_1nskk_1", n = "_requiredMark_1nskk_11", t = "_input_1nskk_16", e = "_inputGroup_1nskk_17", s = "_innerInput_1nskk_129", r = "_dropdownTrigger_1nskk_177", _ = "_dropdownIcon_1nskk_187", c = "_dropdownPopover_1nskk_206", p = "_selectPopover_1nskk_210", k = "_selectOption_1nskk_237", i = "_selectOptionWithoutFocusRing_1nskk_261", u = "_description_1nskk_267", d = "_error_1nskk_283", l = "_checkbox_1nskk_302", a = "_checkboxInput_1nskk_325", h = "_uploadButton_1nskk_420", b = {
|
|
2
|
+
label: o,
|
|
3
|
+
requiredMark: n,
|
|
4
|
+
input: t,
|
|
5
|
+
inputGroup: e,
|
|
6
|
+
innerInput: s,
|
|
7
|
+
dropdownTrigger: r,
|
|
8
|
+
dropdownIcon: _,
|
|
9
|
+
dropdownPopover: c,
|
|
10
|
+
selectPopover: p,
|
|
11
|
+
selectOption: k,
|
|
12
|
+
selectOptionWithoutFocusRing: i,
|
|
13
|
+
description: u,
|
|
14
|
+
error: d,
|
|
15
|
+
checkbox: l,
|
|
16
|
+
checkboxInput: a,
|
|
17
|
+
uploadButton: h
|
|
18
|
+
};
|
|
19
|
+
export {
|
|
20
|
+
b as s
|
|
21
|
+
};
|