@wix/form-elements 1.94.0 → 1.96.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-CNIizm60.js → appointment-rac-BKgRKq3j.js} +309 -310
- package/dist/component/{bookings-address-rac-C7ukrF1D.js → bookings-address-rac-C87x19gw.js} +1 -1
- package/dist/component/{bookings-email-rac-DnzbLEmf.js → bookings-email-rac-f4nuC_pb.js} +1 -1
- package/dist/component/{bookings-first-name-rac-8Krm-3QK.js → bookings-first-name-rac-BGmuAmbu.js} +1 -1
- package/dist/component/{bookings-header-rac-WRILbKeE.js → bookings-header-rac-CoyxHljp.js} +1 -1
- package/dist/component/{bookings-last-name-rac-C0-yWBLa.js → bookings-last-name-rac-D2mBYwcR.js} +1 -1
- package/dist/component/{bookings-login-bar-rac-Bc9u_rn_.js → bookings-login-bar-rac-BH2Mi6TR.js} +4 -4
- package/dist/component/{bookings-phone-rac-BaBlg7f7.js → bookings-phone-rac-Dz78ybFV.js} +1 -1
- package/dist/component/{bookings-rich-text-rac-DR-Ngu_b.js → bookings-rich-text-rac-8_h0cOoy.js} +1 -1
- package/dist/component/{get-first-day-of-the-week-DvnsxYhQ.js → calendar.module-DnhTT4QT.js} +23 -18
- package/dist/component/{checkbox-field-rac-Cqr57TgJ.js → checkbox-field-rac-CJnegjvL.js} +5 -5
- package/dist/component/{checkbox-group-field-headless-Bgcvavr3.js → checkbox-group-field-headless-CrA7Gx2Y.js} +3 -3
- package/dist/component/{checkbox-group-field-rac-Bcsowjwp.js → checkbox-group-field-rac-DMg75l5Q.js} +12 -12
- package/dist/component/{checkbox-group-rac-38j0b8_U.js → checkbox-group-rac-C9XWlO5D.js} +1 -1
- package/dist/component/{checkbox-rac-Bb5ZxZo7.js → checkbox-rac-CrqhH4z9.js} +1 -1
- package/dist/component/{contacts-address-rac-gaOhfztb.js → contacts-address-rac-C2mqTiPg.js} +1 -1
- package/dist/component/{contacts-birthdate-rac-DAIPR64p.js → contacts-birthdate-rac-i7_RMona.js} +1 -1
- package/dist/component/{contacts-company-rac-DVPQrcfN.js → contacts-company-rac-7sdIosaG.js} +1 -1
- package/dist/component/{contacts-email-rac-qMyFjz_2.js → contacts-email-rac-CrsksJ9G.js} +1 -1
- package/dist/component/{contacts-first-name-rac-OVPtHcde.js → contacts-first-name-rac-I5xIYxgD.js} +1 -1
- package/dist/component/{contacts-last-name-rac-BmLQrJ2D.js → contacts-last-name-rac-DnzJYJh7.js} +1 -1
- package/dist/component/{contacts-phone-rac-D7waZc1q.js → contacts-phone-rac-Cx1jpYmv.js} +1 -1
- package/dist/component/{contacts-position-rac-DnI3o3Am.js → contacts-position-rac-CxddG_cE.js} +1 -1
- package/dist/component/{contacts-subscribe-rac-P8zn8_GS.js → contacts-subscribe-rac-C1nTAhnd.js} +2 -2
- package/dist/component/{contacts-tax-id-rac-9CBr2KkR.js → contacts-tax-id-rac-B1lzfrj_.js} +1 -1
- package/dist/component/{date-availability--ntpBDiI.js → date-availability-LN33GU7O.js} +1 -1
- package/dist/component/{date-input-field-rac-Don2tz5U.js → date-input-field-rac-zTcw6Mxx.js} +57 -56
- package/dist/component/{date-input-rac-Du3e8Hcu.js → date-input-rac-NfVbrcoO.js} +1 -1
- package/dist/component/date-picker-field-rac-Cc9hJloJ.js +317 -0
- package/dist/component/{date-picker-rac-BsCMkfHV.js → date-picker-rac-C5iXyKdf.js} +1 -1
- package/dist/component/{date-time-input-field-rac-LLF1UdUD.js → date-time-input-field-rac-Cp34u7cC.js} +53 -52
- package/dist/component/{date-time-input-rac-KYqrNgbb.js → date-time-input-rac-CfFd56Xf.js} +1 -1
- package/dist/component/{dext-checkbox-group-rac-DaOY9Cb6.js → dext-checkbox-group-rac-BVx7XXwR.js} +2 -2
- package/dist/component/{dext-checkbox-rac-Ceu5q9xf.js → dext-checkbox-rac-CmUOLx_w.js} +1 -1
- package/dist/component/{dext-date-picker-rac-iop0XEpQ.js → dext-date-picker-rac-XDrLGVTQ.js} +1 -1
- package/dist/component/{dext-date-time-input-rac-DJB_fMiN.js → dext-date-time-input-rac-ZLCq_taK.js} +1 -1
- package/dist/component/{dext-dropdown-rac-Dhp4CUZ5.js → dext-dropdown-rac-C74zBq3M.js} +1 -1
- package/dist/component/{dext-email-rac-BIr9RxhQ.js → dext-email-rac-CqS9HcdY.js} +1 -1
- package/dist/component/{dext-number-input-rac-Q8p3NeKN.js → dext-number-input-rac-DszjJDT-.js} +1 -1
- package/dist/component/{dext-phone-rac-DRdRLIvr.js → dext-phone-rac-wt7T8hpM.js} +1 -1
- package/dist/component/{dext-radio-group-rac-D1N_wBhO.js → dext-radio-group-rac-BvRnaWP0.js} +2 -2
- package/dist/component/{dext-rating-input-rac-BQIMl7oQ.js → dext-rating-input-rac-D1Lt9M3c.js} +1 -1
- package/dist/component/{dext-tags-rac-C52jiu1I.js → dext-tags-rac-70YO5CJH.js} +2 -2
- package/dist/component/{dext-text-area-rac-BWmSs4mb.js → dext-text-area-rac-CC5RCvWh.js} +1 -1
- package/dist/component/{dext-text-input-rac-BnAJ-7Hs.js → dext-text-input-rac-s487DzPW.js} +1 -1
- package/dist/component/{dext-url-input-rac-CvGn3KHo.js → dext-url-input-rac-DEKwUh2a.js} +1 -1
- package/dist/component/{donation-rac-DsFRs16V.js → donation-rac-C2bCFVHP.js} +30 -30
- package/dist/component/{dropdown-field-headless-K0AM4AAs.js → dropdown-field-headless-BMWwkydq.js} +4 -4
- package/dist/component/{dropdown-field-rac-CMEB8ZQN.js → dropdown-field-rac-Cw5Cbpg0.js} +5 -5
- package/dist/component/{dropdown-rac-BakYShkm.js → dropdown-rac-CEmlDY3w.js} +1 -1
- package/dist/component/{ecom-address-rac-A_Aj5CX0.js → ecom-address-rac-Dv6asnf_.js} +1 -1
- package/dist/component/{ecom-subscription-checkbox-rac-Ddol0N03.js → ecom-subscription-checkbox-rac-DOwH-Ebd.js} +3 -3
- package/dist/component/{email-input-field-rac-B7yOMDWB.js → email-input-field-rac-CeFXPibq.js} +41 -41
- package/dist/component/events-repeater-rac-BUk5Qc8n.js +267 -0
- package/dist/component/{events-rsvp-rac-DfjqTM7C.js → events-rsvp-rac-CtFkVzUy.js} +20 -20
- package/dist/component/{field-error-headless-CONyKitA.js → field-error-headless-B6x_cVEi.js} +1 -1
- package/dist/component/{field-label-headless-tf9QXhMi.js → field-label-headless-BibCD8xx.js} +1 -1
- package/dist/component/{file-upload-rac-Bng5Yew9.js → file-upload-rac-BUcktluW.js} +43 -43
- package/dist/component/{fixed-payment-rac-CXIv7_Oj.js → fixed-payment-rac-BMSBSo5c.js} +10 -10
- package/dist/component/{form-Lv-a47BN.js → form-9WmwgGNc.js} +1120 -1108
- package/dist/component/{form-element-classes-CLZXu-91.js → form-element-classes-BtKlobUX.js} +60 -59
- package/dist/component/form.css +1 -1
- package/dist/component/form.js +1 -1
- package/dist/component/{header-field-rac-BZdYszfP.js → header-field-rac-CxUuHOic.js} +3 -3
- package/dist/component/{header-rac-BNeqoDyT.js → header-rac-DejI69X7.js} +1 -1
- package/dist/component/{image-choice-rac-aSKDRo51.js → image-choice-rac-BjI5a_co.js} +15 -15
- package/dist/component/{index-DnNA6zNR.js → index-Csso-2QH.js} +2 -2
- package/dist/component/{index-CWZfskEy.js → index-Dz2hV2_S.js} +4 -4
- package/dist/component/{isObjectLike-C9ogbjhq.js → isObjectLike-BN_BZMhy.js} +1 -1
- package/dist/component/{multiline-address-field-rac-CHE1mE_b.js → multiline-address-field-rac-CYfphmfr.js} +86 -85
- package/dist/component/{multiline-address-rac-wxJunvdU.js → multiline-address-rac-Ccujt2bd.js} +1 -1
- package/dist/component/{number-input-field-rac-ore1oi9q.js → number-input-field-rac-CfnRCRar.js} +18 -18
- package/dist/component/{number-input-rac-DU-rCrjJ.js → number-input-rac-DnTO9d8P.js} +1 -1
- package/dist/component/{password-rac-Dkqv0AIm.js → password-rac-Be_YSb-Q.js} +37 -37
- package/dist/component/{payment-input-rac-CsTcFhQ5.js → payment-input-rac-DXUf5iYb.js} +22 -22
- package/dist/component/{phone-input-field-rac-lIVKt7ge.js → phone-input-field-rac-DYAwLuvJ.js} +32 -31
- package/dist/component/{phone-rac-CZlsXHRM.js → phone-rac-BlsvDmER.js} +1 -1
- package/dist/component/{product-list-rac-UebyHfhC.js → product-list-rac-DdXwRSc2.js} +15 -15
- package/dist/component/{quiz-radio-group-rac-ORLTYxdR.js → quiz-radio-group-rac-B0yiKdbu.js} +2 -2
- package/dist/component/{radio-button-module-classes-CEQr0hKB.js → radio-button-module-classes-t1jsWYpT.js} +3 -3
- package/dist/component/{radio-group-field-rac-t_Dj1_4p.js → radio-group-field-rac-Cug1TtSq.js} +4 -4
- package/dist/component/{radio-group-rac-CC_35nq4.js → radio-group-rac-_O5T0Pt8.js} +1 -1
- package/dist/component/{rating-input-field-rac-BU66cRhy.js → rating-input-field-rac-BSKzQ3fq.js} +31 -31
- package/dist/component/{rating-input-rac-KgNbgchh.js → rating-input-rac-B71q44YO.js} +1 -1
- package/dist/component/{rich-content-rac.module-oGcFL-hl.js → rich-content-rac.module-BJuoKIOt.js} +1 -1
- package/dist/component/{rich-text-field-rac-CiwMiMv7.js → rich-text-field-rac-CiSR82Fw.js} +3 -3
- package/dist/component/{rich-text-rac-Dmp0xxpi.js → rich-text-rac-Bo6UBwOg.js} +1 -1
- package/dist/component/{service-dropdown-rac-_QBi8_AO.js → service-dropdown-rac-BJ7V-g8M.js} +35 -35
- package/dist/component/{services-multi-choice-rac-C2e3xL9O.js → services-multi-choice-rac-CtBcc9WH.js} +12 -12
- package/dist/component/{signature-rac-Dj3aYMvJ.js → signature-rac-yvrHr1he.js} +102 -102
- package/dist/component/{submit-button-rac-C-BVXga7.js → submit-button-rac-s-JdZgq7.js} +2 -2
- package/dist/component/{tags-field-rac-CcOUcsCd.js → tags-field-rac-g_W0RMod.js} +66 -66
- package/dist/component/{tags-rac-p68DA4Mq.js → tags-rac-DmvIH6HU.js} +1 -1
- package/dist/component/{text-area-field-rac-DubIcKTn.js → text-area-field-rac-Duja5xOA.js} +27 -27
- package/dist/component/{text-area-rac-CygfUB6z.js → text-area-rac-DzRxgG6u.js} +1 -1
- package/dist/component/{text-input-field-rac-C7JZRcCX.js → text-input-field-rac-C2eXeoBC.js} +7 -7
- package/dist/component/{text-input-headless-D1xcxxNE.js → text-input-headless-d1WK0nqR.js} +3 -3
- package/dist/component/{text-input-rac-C5lfqJCN.js → text-input-rac-DM9MnoQs.js} +1 -1
- package/dist/component/{time-input-rac-BNxceC-R.js → time-input-rac-CxVZ3USX.js} +25 -25
- package/dist/component/{url-input-field-rac-DH_STwmd.js → url-input-field-rac-4oVJMr1a.js} +19 -19
- package/dist/component/{url-input-rac-C2VOzCis.js → url-input-rac--T-FnskQ.js} +1 -1
- package/dist/component/use-dropdown-option-class-name-BFHRYpVL.js +21 -0
- package/dist/component/{use-element-state-class-name-CITSBXT8.js → use-element-state-class-name-De5YnxMK.js} +1 -1
- package/dist/component/use-is-forced-open-dropdown-CWvcd9Ex.js +41 -0
- package/dist/component/{use-service-options-base-DVBmOiRh.js → use-service-options-base-CD1EVWRE.js} +1 -1
- package/dist/component/{use-text-input-class-name-COw61iUf.js → use-text-input-class-name-BYwXccvO.js} +3 -3
- package/package.json +4 -3
- package/dist/component/date-picker-field-rac-Wxmz-O7r.js +0 -304
- package/dist/component/events-repeater-rac-bp8gFHXQ.js +0 -256
- package/dist/component/use-dropdown-option-class-name-CKRu4ERM.js +0 -57
package/dist/component/{bookings-login-bar-rac-Bc9u_rn_.js → bookings-login-bar-rac-BH2Mi6TR.js}
RENAMED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import o from "react";
|
|
2
2
|
import b from "classnames";
|
|
3
|
-
import { ak as d, au as B, ac as f, ag as p } from "./form-
|
|
3
|
+
import { ak as d, au as B, ac as f, ag as p } from "./form-9WmwgGNc.js";
|
|
4
4
|
import { Button as L } from "react-aria-components";
|
|
5
5
|
import { a as i, f as g } from "./find-child-C60k4CxG.js";
|
|
6
|
-
import {
|
|
6
|
+
import { y as _ } from "./form-element-classes-BtKlobUX.js";
|
|
7
7
|
const a = ({ children: n }) => {
|
|
8
8
|
const { id: r, FieldLayout: t } = d();
|
|
9
9
|
return /* @__PURE__ */ o.createElement(t, {
|
|
@@ -49,7 +49,7 @@ const T = "_container_1mvrn_1", C = "_text_1mvrn_34", v = "_button_1mvrn_39", u
|
|
|
49
49
|
container: T,
|
|
50
50
|
text: C,
|
|
51
51
|
button: v
|
|
52
|
-
},
|
|
52
|
+
}, y = () => {
|
|
53
53
|
const { userData: n, language: r } = f(), { actions: t } = p();
|
|
54
54
|
return /* @__PURE__ */ o.createElement(a, null, /* @__PURE__ */ o.createElement(a.LoginBar, {
|
|
55
55
|
email: n == null ? void 0 : n.email,
|
|
@@ -68,7 +68,7 @@ const T = "_container_1mvrn_1", C = "_text_1mvrn_34", v = "_button_1mvrn_39", u
|
|
|
68
68
|
}), /* @__PURE__ */ o.createElement(a.Button, {
|
|
69
69
|
className: u.button
|
|
70
70
|
})));
|
|
71
|
-
}, h = () => /* @__PURE__ */ o.createElement(
|
|
71
|
+
}, h = () => /* @__PURE__ */ o.createElement(y, null);
|
|
72
72
|
export {
|
|
73
73
|
h as BookingsLoginBarRAC
|
|
74
74
|
};
|
package/dist/component/{get-first-day-of-the-week-DvnsxYhQ.js → calendar.module-DnhTT4QT.js}
RENAMED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
function
|
|
1
|
+
function D(n) {
|
|
2
2
|
try {
|
|
3
|
-
const e = new Intl.Locale(
|
|
3
|
+
const e = new Intl.Locale(n);
|
|
4
4
|
if (typeof e.getWeekInfo == "function") {
|
|
5
|
-
const
|
|
6
|
-
if (
|
|
7
|
-
return
|
|
5
|
+
const t = e.getWeekInfo().firstDay;
|
|
6
|
+
if (t !== void 0)
|
|
7
|
+
return t === 7 ? 0 : t;
|
|
8
8
|
}
|
|
9
|
-
return
|
|
9
|
+
return c(n);
|
|
10
10
|
} catch {
|
|
11
|
-
return
|
|
11
|
+
return c(n);
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
|
-
const
|
|
14
|
+
const o = [
|
|
15
15
|
"AF",
|
|
16
16
|
"BH",
|
|
17
17
|
"DJ",
|
|
@@ -26,7 +26,7 @@ const S = [
|
|
|
26
26
|
"QA",
|
|
27
27
|
"SD",
|
|
28
28
|
"SY"
|
|
29
|
-
],
|
|
29
|
+
], T = [
|
|
30
30
|
"AG",
|
|
31
31
|
"AS",
|
|
32
32
|
"BD",
|
|
@@ -83,9 +83,9 @@ const S = [
|
|
|
83
83
|
"YE",
|
|
84
84
|
"ZA",
|
|
85
85
|
"ZW"
|
|
86
|
-
],
|
|
86
|
+
], S = [
|
|
87
87
|
"ar"
|
|
88
|
-
],
|
|
88
|
+
], i = [
|
|
89
89
|
"en",
|
|
90
90
|
"he",
|
|
91
91
|
"hi",
|
|
@@ -96,16 +96,16 @@ const S = [
|
|
|
96
96
|
"tl",
|
|
97
97
|
"th"
|
|
98
98
|
];
|
|
99
|
-
function
|
|
100
|
-
var e,
|
|
99
|
+
function c(n) {
|
|
100
|
+
var e, t;
|
|
101
101
|
try {
|
|
102
|
-
const
|
|
102
|
+
const a = new Intl.Locale(n), r = (e = a.language) == null ? void 0 : e.toLowerCase(), A = (t = a.region) == null ? void 0 : t.toUpperCase();
|
|
103
103
|
if (A)
|
|
104
|
-
return
|
|
104
|
+
return T.includes(A) ? 0 : o.includes(A) ? 6 : 1;
|
|
105
105
|
if (r) {
|
|
106
|
-
if (
|
|
106
|
+
if (i.includes(r))
|
|
107
107
|
return 0;
|
|
108
|
-
if (
|
|
108
|
+
if (S.includes(r))
|
|
109
109
|
return 6;
|
|
110
110
|
}
|
|
111
111
|
return 1;
|
|
@@ -113,6 +113,11 @@ function i(t) {
|
|
|
113
113
|
return 1;
|
|
114
114
|
}
|
|
115
115
|
}
|
|
116
|
+
const s = "_day_1dyft_1", u = "_dayNumber_1dyft_6", I = {
|
|
117
|
+
day: s,
|
|
118
|
+
dayNumber: u
|
|
119
|
+
};
|
|
116
120
|
export {
|
|
117
|
-
I as
|
|
121
|
+
I as c,
|
|
122
|
+
D as g
|
|
118
123
|
};
|
|
@@ -2,17 +2,17 @@ import { RicosViewer as Xn } from "@wix/ricos/viewer";
|
|
|
2
2
|
import U from "classnames";
|
|
3
3
|
import b, { useMemo as $n, useRef as Jn, useCallback as Yn } from "react";
|
|
4
4
|
import { CheckboxField as Qn, CheckboxButton as Zn } from "react-aria-components";
|
|
5
|
-
import { T as ei, ak as Zr, r as Qr, R as fn, au as ri, ac as ti, a0 as ai, ah as ni, am as ii, L as si } from "./form-
|
|
5
|
+
import { T as ei, ak as Zr, r as Qr, R as fn, au as ri, ac as ti, a0 as ai, ah as ni, am as ii, L as si } from "./form-9WmwgGNc.js";
|
|
6
6
|
import { f as W, a as oi } from "./find-child-C60k4CxG.js";
|
|
7
|
-
import { D as ui, E as ci } from "./field-error-headless-
|
|
7
|
+
import { D as ui, E as ci } from "./field-error-headless-B6x_cVEi.js";
|
|
8
8
|
import { Node_Type as fi } from "@wix/ricos/schema";
|
|
9
|
-
import { c as re, r as $, e as R, a as J, d as li, b as _i } from "./isObjectLike-
|
|
9
|
+
import { c as re, r as $, e as R, a as J, d as li, b as _i } from "./isObjectLike-BN_BZMhy.js";
|
|
10
10
|
import { S as vi } from "./selection-indicator-XQ8MYHUQ.js";
|
|
11
11
|
import { E as hi } from "./error-icon-hZxQ6DEy.js";
|
|
12
12
|
import { C as pi } from "./checkbox-indicator-module-classes-DhbNznSB.js";
|
|
13
13
|
import { s as oe } from "./field-rac.module-DobpyqOd.js";
|
|
14
|
-
import { f as di, g as yi, b as bi,
|
|
15
|
-
import { u as Ai } from "./use-element-state-class-name-
|
|
14
|
+
import { f as di, g as yi, b as bi, S as gi, r as qi, j as Ci } from "./form-element-classes-BtKlobUX.js";
|
|
15
|
+
import { u as Ai } from "./use-element-state-class-name-De5YnxMK.js";
|
|
16
16
|
var ue, dt;
|
|
17
17
|
function mi() {
|
|
18
18
|
if (dt) return ue;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import i, { useMemo as F, useCallback as _, useRef as P, useState as w, useEffect as U } from "react";
|
|
2
2
|
import { CheckboxGroup as W, CheckboxField as A, CheckboxButton as j, TextField as z, Input as J } from "react-aria-components";
|
|
3
3
|
import { debounce as K } from "ts-debounce";
|
|
4
|
-
import { ak as N, ah as Q, au as X, ac as Y, am as Z } from "./form-
|
|
4
|
+
import { ak as N, ah as Q, au as X, ac as Y, am as Z } from "./form-9WmwgGNc.js";
|
|
5
5
|
import { f as L, a as k } from "./find-child-C60k4CxG.js";
|
|
6
|
-
import { D as ee, E as te } from "./field-error-headless-
|
|
7
|
-
import { L as ae } from "./field-label-headless-
|
|
6
|
+
import { D as ee, E as te } from "./field-error-headless-B6x_cVEi.js";
|
|
7
|
+
import { L as ae } from "./field-label-headless-BibCD8xx.js";
|
|
8
8
|
import { F as ne } from "./fieldset-headless-CD3fds9J.js";
|
|
9
9
|
import { N as se } from "./options-layout-constants-DEfIEJWD.js";
|
|
10
10
|
import { S as le } from "./selection-indicator-XQ8MYHUQ.js";
|
package/dist/component/{checkbox-group-field-rac-Bcsowjwp.js → checkbox-group-field-rac-DMg75l5Q.js}
RENAMED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import { RicosViewer as m } from "@wix/ricos/viewer";
|
|
2
2
|
import a from "classnames";
|
|
3
3
|
import e from "react";
|
|
4
|
-
import { C as t } from "./checkbox-group-field-headless-
|
|
4
|
+
import { C as t } from "./checkbox-group-field-headless-CrA7Gx2Y.js";
|
|
5
5
|
import { E as n } from "./error-icon-hZxQ6DEy.js";
|
|
6
6
|
import { C as c } from "./checkbox-indicator-module-classes-DhbNznSB.js";
|
|
7
7
|
import { s } from "./field-rac.module-DobpyqOd.js";
|
|
8
|
-
import {
|
|
8
|
+
import { C as i, S as E, c as p, e as C, r as O, j as _, d as I } from "./form-element-classes-BtKlobUX.js";
|
|
9
9
|
import { o as l } from "./options-rac.module-KM-VT_KY.js";
|
|
10
|
-
import { u as
|
|
11
|
-
import { u as
|
|
12
|
-
const u = ({ content:
|
|
13
|
-
content:
|
|
14
|
-
locale:
|
|
10
|
+
import { u as L } from "./use-element-state-class-name-De5YnxMK.js";
|
|
11
|
+
import { u as R } from "./use-text-input-class-name-BYwXccvO.js";
|
|
12
|
+
const u = ({ content: r, locale: o }) => /* @__PURE__ */ e.createElement(m, {
|
|
13
|
+
content: r,
|
|
14
|
+
locale: o
|
|
15
15
|
}), k = () => {
|
|
16
|
-
const
|
|
17
|
-
globalClasses:
|
|
16
|
+
const r = L({
|
|
17
|
+
globalClasses: I,
|
|
18
18
|
moduleClasses: c
|
|
19
|
-
}),
|
|
19
|
+
}), o = R();
|
|
20
20
|
return /* @__PURE__ */ e.createElement(t, null, /* @__PURE__ */ e.createElement(t.Label, {
|
|
21
21
|
className: a(i, s.label)
|
|
22
22
|
}, /* @__PURE__ */ e.createElement(t.Label.Required, {
|
|
@@ -26,11 +26,11 @@ const u = ({ content: o, locale: r }) => /* @__PURE__ */ e.createElement(m, {
|
|
|
26
26
|
}, /* @__PURE__ */ e.createElement(t.Options.Option, null, /* @__PURE__ */ e.createElement(t.Options.Option.Checkbox, {
|
|
27
27
|
className: s.checkbox
|
|
28
28
|
}, /* @__PURE__ */ e.createElement(t.Options.Option.Checkbox.Input, {
|
|
29
|
-
className:
|
|
29
|
+
className: r
|
|
30
30
|
}), /* @__PURE__ */ e.createElement(t.Options.Option.Checkbox.Label, {
|
|
31
31
|
className: a(C, l.optionLabel)
|
|
32
32
|
})), /* @__PURE__ */ e.createElement(t.Options.Option.OtherInput, {
|
|
33
|
-
inputClassName:
|
|
33
|
+
inputClassName: o
|
|
34
34
|
}))), /* @__PURE__ */ e.createElement(t.Error, {
|
|
35
35
|
className: a(O, s.error)
|
|
36
36
|
}, /* @__PURE__ */ e.createElement(n, null), /* @__PURE__ */ e.createElement(t.Error.Text, null)), /* @__PURE__ */ e.createElement(t.Description, {
|
package/dist/component/{contacts-subscribe-rac-P8zn8_GS.js → contacts-subscribe-rac-C1nTAhnd.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import C from "react";
|
|
2
|
-
import { C as e } from "./checkbox-field-rac-
|
|
3
|
-
import {
|
|
2
|
+
import { C as e } from "./checkbox-field-rac-CJnegjvL.js";
|
|
3
|
+
import { Y as r, Z as t, X as _ } from "./form-element-classes-BtKlobUX.js";
|
|
4
4
|
const S = () => /* @__PURE__ */ C.createElement(e, {
|
|
5
5
|
classes: {
|
|
6
6
|
container: _,
|
package/dist/component/{date-input-field-rac-Don2tz5U.js → date-input-field-rac-zTcw6Mxx.js}
RENAMED
|
@@ -1,24 +1,25 @@
|
|
|
1
1
|
import { RicosViewer as ee } from "@wix/ricos/viewer";
|
|
2
2
|
import b from "classnames";
|
|
3
|
-
import t, { useMemo as g, useState as x, useCallback as w, useRef as
|
|
4
|
-
import { ak as
|
|
3
|
+
import t, { useMemo as g, useState as x, useCallback as w, useRef as j } from "react";
|
|
4
|
+
import { ak as D, ah as U, ac as P, K as $, a2 as q, s as m, au as T, y as te, O as ae, a9 as ne, am as B } from "./form-9WmwgGNc.js";
|
|
5
5
|
import { UNSAFE_PortalProvider as re } from "react-aria";
|
|
6
6
|
import { ListBoxItem as oe, ListBox as se, Select as le, TextField as z, SelectValue as ce, Input as G } from "react-aria-components";
|
|
7
|
-
import { f as u, a as
|
|
7
|
+
import { f as u, a as H } from "./find-child-C60k4CxG.js";
|
|
8
8
|
import { g as ie } from "./helpers-HmkkXrh2.js";
|
|
9
|
-
import { D as me, E as de } from "./field-error-headless-
|
|
10
|
-
import { L as ue } from "./field-label-headless-
|
|
9
|
+
import { D as me, E as de } from "./field-error-headless-B6x_cVEi.js";
|
|
10
|
+
import { L as ue } from "./field-label-headless-BibCD8xx.js";
|
|
11
11
|
import { F as pe } from "./fieldset-headless-CD3fds9J.js";
|
|
12
12
|
import { N as Ee, S as be } from "./non-modal-popover-DtIMXHbe.js";
|
|
13
|
-
import {
|
|
14
|
-
import { C as
|
|
13
|
+
import { u as fe } from "./use-is-forced-open-dropdown-CWvcd9Ex.js";
|
|
14
|
+
import { C as he } from "./chevron-down-icon-CcpVm6B-.js";
|
|
15
15
|
import { E as Ie } from "./error-icon-hZxQ6DEy.js";
|
|
16
|
-
import { H as
|
|
16
|
+
import { H as De } from "./custom-focus-class-_483Pkwp.js";
|
|
17
17
|
import { s as E } from "./field-rac.module-DobpyqOd.js";
|
|
18
|
-
import {
|
|
19
|
-
import { u as
|
|
18
|
+
import { C as S, S as Oe, n as ye, E as ge, r as _e, j as Ne } from "./form-element-classes-BtKlobUX.js";
|
|
19
|
+
import { u as Le } from "./use-dropdown-option-class-name-BFHRYpVL.js";
|
|
20
|
+
import { u as k } from "./use-text-input-class-name-BYwXccvO.js";
|
|
20
21
|
const n = ({ children: e, className: a }) => {
|
|
21
|
-
const { id: r, required: s, onBlur: o, onFocus: l, FieldLayout: c } =
|
|
22
|
+
const { id: r, required: s, onBlur: o, onFocus: l, FieldLayout: c } = D(), { inputId: d, labelId: i, ariaDescribedBy: f } = U(), { regionalFormat: p } = P(), I = g(() => $(p).filter(q).map((v) => v.toUpperCase()), [
|
|
22
23
|
p
|
|
23
24
|
]), N = u(e, n.Label), Y = u(e, n.Description), L = u(e, n.Error), F = {
|
|
24
25
|
[m.MONTH]: u(e, n.Month),
|
|
@@ -27,7 +28,7 @@ const n = ({ children: e, className: a }) => {
|
|
|
27
28
|
};
|
|
28
29
|
return /* @__PURE__ */ t.createElement(c, {
|
|
29
30
|
fieldId: r,
|
|
30
|
-
renderLabel: () =>
|
|
31
|
+
renderLabel: () => H(N, {
|
|
31
32
|
as: "div"
|
|
32
33
|
}),
|
|
33
34
|
renderInput: () => /* @__PURE__ */ t.createElement(pe, {
|
|
@@ -38,17 +39,17 @@ const n = ({ children: e, className: a }) => {
|
|
|
38
39
|
onBlur: o,
|
|
39
40
|
onFocus: l,
|
|
40
41
|
className: a
|
|
41
|
-
}, F[
|
|
42
|
+
}, F[I[0]], F[I[1]], F[I[2]]),
|
|
42
43
|
renderDescription: () => /* @__PURE__ */ t.createElement(t.Fragment, null, L, Y)
|
|
43
44
|
});
|
|
44
45
|
}, O = ({ children: e, className: a }) => {
|
|
45
|
-
const { id: r, disabled: s, readOnly: o, showDateLabels: l, hidePlaceholder: c } =
|
|
46
|
-
o || p(typeof
|
|
46
|
+
const { id: r, disabled: s, readOnly: o, showDateLabels: l, hidePlaceholder: c } = D(), { labelId: d } = y(m.MONTH), { partValue: i, partError: f, onPartChange: p } = _(m.MONTH), { t: I } = T(), [N, Y] = x(!1), L = fe(r), [F, v] = x(null), K = c ? void 0 : I("field.date.placeholder.month"), Q = w((R) => {
|
|
47
|
+
o || p(typeof R == "string" ? R : "");
|
|
47
48
|
}, [
|
|
48
49
|
p,
|
|
49
50
|
o
|
|
50
|
-
]), W = w((
|
|
51
|
-
Y(
|
|
51
|
+
]), W = w((R) => {
|
|
52
|
+
Y(R && !o);
|
|
52
53
|
}, [
|
|
53
54
|
o
|
|
54
55
|
]), J = u(e, O.Label), X = u(e, O.Trigger), Z = u(e, O.Options);
|
|
@@ -71,15 +72,15 @@ const n = ({ children: e, className: a }) => {
|
|
|
71
72
|
placeholder: K,
|
|
72
73
|
isOpen: L || N,
|
|
73
74
|
onOpenChange: L ? void 0 : W
|
|
74
|
-
}, X,
|
|
75
|
+
}, X, H(Z, {
|
|
75
76
|
isForcedOpen: L
|
|
76
77
|
}))));
|
|
77
|
-
}, Fe = ({ className: e }) => /* @__PURE__ */ t.createElement(
|
|
78
|
+
}, Fe = ({ className: e }) => /* @__PURE__ */ t.createElement(V, {
|
|
78
79
|
datePart: m.MONTH,
|
|
79
80
|
className: e
|
|
80
81
|
}), Ce = ({ children: e, className: a }) => {
|
|
81
|
-
const { id: r, readOnly: s } =
|
|
82
|
-
return
|
|
82
|
+
const { id: r, readOnly: s } = D(), { inputId: o } = y(m.MONTH), { partError: l, isFirstPart: c } = _(m.MONTH), d = j(null);
|
|
83
|
+
return B(() => {
|
|
83
84
|
var i;
|
|
84
85
|
c && ((i = d.current) == null || i.focus());
|
|
85
86
|
}, r), /* @__PURE__ */ t.createElement(be, {
|
|
@@ -100,12 +101,12 @@ const n = ({ children: e, className: a }) => {
|
|
|
100
101
|
offset: 0
|
|
101
102
|
}, /* @__PURE__ */ t.createElement(se, {
|
|
102
103
|
autoFocus: s ? !1 : void 0
|
|
103
|
-
}, l.map((d, i) =>
|
|
104
|
+
}, l.map((d, i) => H(c, {
|
|
104
105
|
key: String(i + 1),
|
|
105
106
|
value: String(i + 1),
|
|
106
107
|
label: d
|
|
107
108
|
}))));
|
|
108
|
-
},
|
|
109
|
+
}, Me = ({ className: e, ...a }) => {
|
|
109
110
|
const { value: r, label: s } = a;
|
|
110
111
|
return /* @__PURE__ */ t.createElement(oe, {
|
|
111
112
|
className: e,
|
|
@@ -116,9 +117,9 @@ const n = ({ children: e, className: a }) => {
|
|
|
116
117
|
O.Label = Fe;
|
|
117
118
|
O.Trigger = Ce;
|
|
118
119
|
O.Options = A;
|
|
119
|
-
A.Option =
|
|
120
|
+
A.Option = Me;
|
|
120
121
|
const C = ({ children: e, className: a }) => {
|
|
121
|
-
const { disabled: r, readOnly: s, showDateLabels: o } =
|
|
122
|
+
const { disabled: r, readOnly: s, showDateLabels: o } = D(), { labelId: l } = y(m.DAY), { partValue: c, partError: d, onPartChange: i } = _(m.DAY), f = u(e, C.Label), p = u(e, C.Input);
|
|
122
123
|
return /* @__PURE__ */ t.createElement("div", {
|
|
123
124
|
className: a,
|
|
124
125
|
"data-date-field": !0
|
|
@@ -130,12 +131,12 @@ const C = ({ children: e, className: a }) => {
|
|
|
130
131
|
isReadOnly: s,
|
|
131
132
|
isInvalid: d
|
|
132
133
|
}, p));
|
|
133
|
-
},
|
|
134
|
+
}, Re = ({ className: e }) => /* @__PURE__ */ t.createElement(V, {
|
|
134
135
|
datePart: m.DAY,
|
|
135
136
|
className: e
|
|
136
137
|
}), Se = ({ className: e }) => {
|
|
137
|
-
const { id: a, hidePlaceholder: r } =
|
|
138
|
-
return
|
|
138
|
+
const { id: a, hidePlaceholder: r } = D(), { inputId: s } = y(m.DAY), { isFirstPart: o } = _(m.DAY), { t: l } = T(), c = j(null), d = r ? void 0 : l("field.date.placeholder.day");
|
|
139
|
+
return B(() => {
|
|
139
140
|
var i;
|
|
140
141
|
o && ((i = c.current) == null || i.focus());
|
|
141
142
|
}, a), /* @__PURE__ */ t.createElement(G, {
|
|
@@ -148,10 +149,10 @@ const C = ({ children: e, className: a }) => {
|
|
|
148
149
|
"data-hook": m.DAY
|
|
149
150
|
});
|
|
150
151
|
};
|
|
151
|
-
C.Label =
|
|
152
|
+
C.Label = Re;
|
|
152
153
|
C.Input = Se;
|
|
153
|
-
const
|
|
154
|
-
const { disabled: r, readOnly: s, showDateLabels: o } =
|
|
154
|
+
const M = ({ children: e, className: a }) => {
|
|
155
|
+
const { disabled: r, readOnly: s, showDateLabels: o } = D(), { labelId: l } = y(m.YEAR), { partValue: c, partError: d, onPartChange: i } = _(m.YEAR), f = u(e, M.Label), p = u(e, M.Input);
|
|
155
156
|
return /* @__PURE__ */ t.createElement("div", {
|
|
156
157
|
className: a,
|
|
157
158
|
"data-date-field": !0
|
|
@@ -163,12 +164,12 @@ const R = ({ children: e, className: a }) => {
|
|
|
163
164
|
isReadOnly: s,
|
|
164
165
|
isInvalid: d
|
|
165
166
|
}, p));
|
|
166
|
-
}, Ae = ({ className: e }) => /* @__PURE__ */ t.createElement(
|
|
167
|
+
}, Ae = ({ className: e }) => /* @__PURE__ */ t.createElement(V, {
|
|
167
168
|
datePart: m.YEAR,
|
|
168
169
|
className: e
|
|
169
170
|
}), Pe = ({ className: e }) => {
|
|
170
|
-
const { id: a, hidePlaceholder: r } =
|
|
171
|
-
return
|
|
171
|
+
const { id: a, hidePlaceholder: r } = D(), { inputId: s } = y(m.YEAR), { isFirstPart: o } = _(m.YEAR), { t: l } = T(), c = j(null), d = r ? void 0 : l("field.date.placeholder.year");
|
|
172
|
+
return B(() => {
|
|
172
173
|
var i;
|
|
173
174
|
o && ((i = c.current) == null || i.focus());
|
|
174
175
|
}, a), /* @__PURE__ */ t.createElement(G, {
|
|
@@ -181,12 +182,12 @@ const R = ({ children: e, className: a }) => {
|
|
|
181
182
|
"data-hook": m.YEAR
|
|
182
183
|
});
|
|
183
184
|
};
|
|
184
|
-
|
|
185
|
-
|
|
185
|
+
M.Label = Ae;
|
|
186
|
+
M.Input = Pe;
|
|
186
187
|
n.Label = ue;
|
|
187
188
|
n.Month = O;
|
|
188
189
|
n.Day = C;
|
|
189
|
-
n.Year =
|
|
190
|
+
n.Year = M;
|
|
190
191
|
n.Description = me;
|
|
191
192
|
n.Error = de;
|
|
192
193
|
function y(e) {
|
|
@@ -203,19 +204,19 @@ function y(e) {
|
|
|
203
204
|
]);
|
|
204
205
|
}
|
|
205
206
|
function _(e) {
|
|
206
|
-
const { value: a, onChange: r, hasError: s = !1 } =
|
|
207
|
+
const { value: a, onChange: r, hasError: s = !1 } = D(), { regionalFormat: o } = P(), l = g(() => te(a ?? ""), [
|
|
207
208
|
a
|
|
208
209
|
]), c = g(() => ae(s, a ?? ""), [
|
|
209
210
|
a,
|
|
210
211
|
s
|
|
211
212
|
]), d = l[e] || "", i = w((p) => {
|
|
212
|
-
const
|
|
213
|
-
r(
|
|
213
|
+
const I = ne(p, e, l);
|
|
214
|
+
r(I);
|
|
214
215
|
}, [
|
|
215
216
|
r,
|
|
216
217
|
l,
|
|
217
218
|
e
|
|
218
|
-
]), f = g(() =>
|
|
219
|
+
]), f = g(() => $(o).filter(q).map((N) => N.toUpperCase())[0] === e, [
|
|
219
220
|
o,
|
|
220
221
|
e
|
|
221
222
|
]);
|
|
@@ -226,7 +227,7 @@ function _(e) {
|
|
|
226
227
|
isFirstPart: f
|
|
227
228
|
};
|
|
228
229
|
}
|
|
229
|
-
function
|
|
230
|
+
function V({ datePart: e, className: a }) {
|
|
230
231
|
const { inputId: r, labelId: s } = y(e), { t: o } = T(), l = `field.date.label.${e.toLowerCase()}`, c = o(l);
|
|
231
232
|
return /* @__PURE__ */ t.createElement("label", {
|
|
232
233
|
id: s,
|
|
@@ -234,21 +235,21 @@ function j({ datePart: e, className: a }) {
|
|
|
234
235
|
className: a
|
|
235
236
|
}, c);
|
|
236
237
|
}
|
|
237
|
-
const Te = "_fields_12ojb_1", Ye = "_month_12ojb_9", ve = "_day_12ojb_10", we = "_year_12ojb_11",
|
|
238
|
+
const Te = "_fields_12ojb_1", Ye = "_month_12ojb_9", ve = "_day_12ojb_10", we = "_year_12ojb_11", je = "_mobile_12ojb_25", Be = "_dayInput_12ojb_37", He = "_yearInput_12ojb_38", Ve = "_monthTrigger_12ojb_42", xe = "_monthOption_12ojb_62", h = {
|
|
238
239
|
fields: Te,
|
|
239
240
|
month: Ye,
|
|
240
241
|
day: ve,
|
|
241
242
|
year: we,
|
|
242
|
-
mobile:
|
|
243
|
-
dayInput:
|
|
244
|
-
yearInput:
|
|
245
|
-
monthTrigger:
|
|
243
|
+
mobile: je,
|
|
244
|
+
dayInput: Be,
|
|
245
|
+
yearInput: He,
|
|
246
|
+
monthTrigger: Ve,
|
|
246
247
|
monthOption: xe
|
|
247
248
|
}, ke = ({ content: e, locale: a }) => /* @__PURE__ */ t.createElement(ee, {
|
|
248
249
|
content: e,
|
|
249
250
|
locale: a
|
|
250
|
-
}),
|
|
251
|
-
const e =
|
|
251
|
+
}), it = () => {
|
|
252
|
+
const e = Le(h.monthOption, De), { isMobile: a } = P(), r = k(h.dayInput), s = k(h.yearInput);
|
|
252
253
|
return /* @__PURE__ */ t.createElement(n, {
|
|
253
254
|
className: b(h.fields, {
|
|
254
255
|
[h.mobile]: a
|
|
@@ -256,17 +257,17 @@ const Te = "_fields_12ojb_1", Ye = "_month_12ojb_9", ve = "_day_12ojb_10", we =
|
|
|
256
257
|
}, /* @__PURE__ */ t.createElement(n.Label, {
|
|
257
258
|
className: b(S, E.label)
|
|
258
259
|
}, /* @__PURE__ */ t.createElement(n.Label.Required, {
|
|
259
|
-
className: b(
|
|
260
|
+
className: b(Oe, E.requiredMark)
|
|
260
261
|
})), /* @__PURE__ */ t.createElement(n.Month, {
|
|
261
262
|
className: h.month
|
|
262
263
|
}, /* @__PURE__ */ t.createElement(n.Month.Label, {
|
|
263
264
|
className: b(S, E.label)
|
|
264
265
|
}), /* @__PURE__ */ t.createElement(n.Month.Trigger, {
|
|
265
|
-
className: b(
|
|
266
|
-
}, /* @__PURE__ */ t.createElement(
|
|
266
|
+
className: b(ye, E.input, h.monthTrigger)
|
|
267
|
+
}, /* @__PURE__ */ t.createElement(he, {
|
|
267
268
|
className: E.dropdownIcon
|
|
268
269
|
})), /* @__PURE__ */ t.createElement(n.Month.Options, {
|
|
269
|
-
className: b(
|
|
270
|
+
className: b(ge, E.selectPopover, E.dropdownPopover)
|
|
270
271
|
}, /* @__PURE__ */ t.createElement(n.Month.Options.Option, {
|
|
271
272
|
className: e
|
|
272
273
|
}))), /* @__PURE__ */ t.createElement(n.Day, {
|
|
@@ -282,11 +283,11 @@ const Te = "_fields_12ojb_1", Ye = "_month_12ojb_9", ve = "_day_12ojb_10", we =
|
|
|
282
283
|
}), /* @__PURE__ */ t.createElement(n.Year.Input, {
|
|
283
284
|
className: s
|
|
284
285
|
})), /* @__PURE__ */ t.createElement(n.Error, {
|
|
285
|
-
className: b(
|
|
286
|
+
className: b(_e, E.error)
|
|
286
287
|
}, /* @__PURE__ */ t.createElement(Ie, null), /* @__PURE__ */ t.createElement(n.Error.Text, null)), /* @__PURE__ */ t.createElement(n.Description, {
|
|
287
|
-
className: b(
|
|
288
|
+
className: b(Ne, E.description)
|
|
288
289
|
}, ke));
|
|
289
290
|
};
|
|
290
291
|
export {
|
|
291
|
-
|
|
292
|
+
it as D
|
|
292
293
|
};
|