@wix/form-elements 1.137.0 → 1.138.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-DETLNlLb.js → appointment-rac-DvzMuumV.js} +52 -52
- package/dist/component/{bookings-address-rac-ZLK-g-4b.js → bookings-address-rac-DoTKdj4W.js} +1 -1
- package/dist/component/{bookings-email-rac-C-406Pj1.js → bookings-email-rac-CHvxtHcu.js} +1 -1
- package/dist/component/{bookings-first-name-rac-ClxJPAU2.js → bookings-first-name-rac-VAAhC_fg.js} +1 -1
- package/dist/component/{bookings-header-rac-B_xKyowA.js → bookings-header-rac-YWB4879A.js} +1 -1
- package/dist/component/{bookings-last-name-rac-DcExtGsO.js → bookings-last-name-rac-B-aGMcD_.js} +1 -1
- package/dist/component/{bookings-login-bar-rac-B5Gpk-kG.js → bookings-login-bar-rac-3wYAN_xh.js} +4 -4
- package/dist/component/{bookings-phone-rac-DJSSDoRL.js → bookings-phone-rac-CzQVxpNK.js} +1 -1
- package/dist/component/{bookings-rich-text-rac-D-v6z1Fs.js → bookings-rich-text-rac-C5z9Gvts.js} +1 -1
- package/dist/component/{checkbox-field-rac-DJmjpsmU.js → checkbox-field-rac-CradfjbE.js} +4 -4
- package/dist/component/{checkbox-group-field-headless-C4A_Kv1U.js → checkbox-group-field-headless-DdVXFUPC.js} +3 -3
- package/dist/component/{checkbox-group-field-rac-M1l5h3ii.js → checkbox-group-field-rac-KqKHh6Uj.js} +4 -4
- package/dist/component/{checkbox-group-rac-DRdzHVfR.js → checkbox-group-rac-C34O1zlM.js} +1 -1
- package/dist/component/{checkbox-rac-Cyhg2Wvd.js → checkbox-rac-BnXI1EcE.js} +1 -1
- package/dist/component/{contacts-address-rac-BQvrTPCI.js → contacts-address-rac-Ba57mGCo.js} +1 -1
- package/dist/component/{contacts-birthdate-rac-DIMg-UlR.js → contacts-birthdate-rac-lOtU_kNL.js} +1 -1
- package/dist/component/{contacts-company-rac-OgWSVsmZ.js → contacts-company-rac-fzSYypTz.js} +1 -1
- package/dist/component/{contacts-email-rac-39IQYxTe.js → contacts-email-rac-kOu3zzAk.js} +1 -1
- package/dist/component/{contacts-first-name-rac-CjwVQGS7.js → contacts-first-name-rac-CwUDxtmS.js} +1 -1
- package/dist/component/{contacts-last-name-rac-C6ftvjMG.js → contacts-last-name-rac-DstG7QIk.js} +1 -1
- package/dist/component/{contacts-phone-rac-ldsxrFQH.js → contacts-phone-rac-DbDYtB90.js} +1 -1
- package/dist/component/{contacts-position-rac-3RzQeh2P.js → contacts-position-rac-G-5pxT4U.js} +1 -1
- package/dist/component/{contacts-subscribe-rac-CfuH705u.js → contacts-subscribe-rac-hfjDjoZw.js} +1 -1
- package/dist/component/{contacts-tax-id-rac-D85Dm5Pa.js → contacts-tax-id-rac-CUwJltYa.js} +1 -1
- package/dist/component/{date-availability-DcYOAszO.js → date-availability-CwlAp1DX.js} +1 -1
- package/dist/component/{date-input-field-rac-D4cr7NGI.js → date-input-field-rac-C47Y-z4d.js} +6 -6
- package/dist/component/{date-input-rac-BwJwmoZr.js → date-input-rac-BSKV4JJO.js} +1 -1
- package/dist/component/{date-picker-field-rac-C-IM7SHk.js → date-picker-field-rac-NSAnfLRk.js} +5 -5
- package/dist/component/{date-picker-rac-BkAp8Bgb.js → date-picker-rac-DlEVDz1X.js} +1 -1
- package/dist/component/{date-time-input-field-rac-DGCd-WUh.js → date-time-input-field-rac-Bs2xjob_.js} +20 -20
- package/dist/component/{date-time-input-rac-ClLzxACj.js → date-time-input-rac-Dvy_vn5y.js} +1 -1
- package/dist/component/{dext-checkbox-group-rac-DI26D3eR.js → dext-checkbox-group-rac-ydiyI0Ax.js} +2 -2
- package/dist/component/{dext-checkbox-rac-CRJq1RxN.js → dext-checkbox-rac-D3FH0uIS.js} +1 -1
- package/dist/component/{dext-date-picker-rac-CvzQs_Te.js → dext-date-picker-rac-C4Xa4Mkn.js} +1 -1
- package/dist/component/{dext-date-time-input-rac-Dtysjtim.js → dext-date-time-input-rac-DBUVJbqB.js} +1 -1
- package/dist/component/{dext-dropdown-rac-DHGo26Az.js → dext-dropdown-rac-Ku5SxJci.js} +1 -1
- package/dist/component/{dext-email-rac-BpnNEdVF.js → dext-email-rac-CdfesgKH.js} +1 -1
- package/dist/component/{dext-number-input-rac-C5iW_ei6.js → dext-number-input-rac-AmiEoijD.js} +1 -1
- package/dist/component/{dext-phone-rac-KCTWlcaK.js → dext-phone-rac-BqiNW-E2.js} +1 -1
- package/dist/component/{dext-radio-group-rac-ad6j8I4s.js → dext-radio-group-rac-Bku-LoOz.js} +2 -2
- package/dist/component/{dext-rating-input-rac-B4AvCMi0.js → dext-rating-input-rac-TxRgyMyp.js} +1 -1
- package/dist/component/{dext-tags-rac-BMathc_H.js → dext-tags-rac-C6iBGwg4.js} +2 -2
- package/dist/component/{dext-text-area-rac-Xb-pGhSZ.js → dext-text-area-rac-BU0eyjM4.js} +1 -1
- package/dist/component/{dext-text-input-rac-CSE8qfGF.js → dext-text-input-rac-BEls3cms.js} +1 -1
- package/dist/component/{dext-url-input-rac-Bq4iz5z9.js → dext-url-input-rac-CMAK9Qo6.js} +1 -1
- package/dist/component/{donation-rac-DRUbysCr.js → donation-rac-aGSBtE2T.js} +17 -17
- package/dist/component/{dropdown-field-headless-DO592qOP.js → dropdown-field-headless-B6i33cBH.js} +5 -5
- package/dist/component/{dropdown-field-rac-C2yjQI-C.js → dropdown-field-rac-COluC25e.js} +6 -6
- package/dist/component/{dropdown-rac-DlrGt2kE.js → dropdown-rac-BGQx3saK.js} +1 -1
- package/dist/component/{ecom-address-rac-D_StW_li.js → ecom-address-rac-BgkdVaiI.js} +1 -1
- package/dist/component/{ecom-subscription-checkbox-rac-CrdttyUU.js → ecom-subscription-checkbox-rac-C9jnWaZl.js} +2 -2
- package/dist/component/{email-input-field-rac-DqXazwV3.js → email-input-field-rac-DHCUGLjQ.js} +3 -3
- package/dist/component/{events-repeater-rac-DDpRs7rY.js → events-repeater-rac-BHz0azrh.js} +13 -13
- package/dist/component/{events-rsvp-rac-BN9axMYX.js → events-rsvp-rac-BgtEivuD.js} +8 -8
- package/dist/component/{field-error-headless-JU1yiTVE.js → field-error-headless-BCrv3sBa.js} +1 -1
- package/dist/component/{field-label-headless-CD4_8Ros.js → field-label-headless-B54yFVkr.js} +1 -1
- package/dist/component/{file-upload-rac-CQTx6hEf.js → file-upload-rac-Cg8Z8lhS.js} +21 -21
- package/dist/component/{fixed-payment-rac-B5cRBcxY.js → fixed-payment-rac-B3uuRmES.js} +21 -21
- package/dist/component/{form-Mla9_phC.js → form-D7mq5tD5.js} +77 -77
- package/dist/component/form.js +1 -1
- package/dist/component/{header-field-rac-B_F66ChH.js → header-field-rac-DbeAaOaE.js} +2 -2
- package/dist/component/{header-rac-BX6Df8ej.js → header-rac-CRghbywI.js} +1 -1
- package/dist/component/{image-choice-rac-Ce01EhFJ.js → image-choice-rac-nCRaXrH5.js} +17 -17
- package/dist/component/{index-Ch7II1GU.js → index-C6cdxkPM.js} +2 -2
- package/dist/component/{index-DoIW9Cb6.js → index-DNonwKkE.js} +4 -4
- package/dist/component/{isObjectLike-C1TnJWn6.js → isObjectLike-PXbsarQL.js} +1 -1
- package/dist/component/{multiline-address-field-rac-DVDEcHtq.js → multiline-address-field-rac-DeMafI8g.js} +7 -7
- package/dist/component/{multiline-address-rac-BJ8ln_G5.js → multiline-address-rac-g1IrapIk.js} +1 -1
- package/dist/component/{number-input-field-rac-DTfx9YgL.js → number-input-field-rac-BSGFZQh_.js} +10 -10
- package/dist/component/{number-input-rac-pg7cmYpS.js → number-input-rac-C5yMyFyv.js} +1 -1
- package/dist/component/{password-rac-D8BKTB_H.js → password-rac-jHDFxH5W.js} +10 -10
- package/dist/component/{payment-input-rac-HBquclKy.js → payment-input-rac-Cpw8VM0u.js} +14 -14
- package/dist/component/{phone-input-field-rac-Fgfg5HwA.js → phone-input-field-rac-DLZysv_w.js} +26 -26
- package/dist/component/{phone-rac-pivMTIyc.js → phone-rac-DK5Toq-q.js} +1 -1
- package/dist/component/{product-list-rac-DauIxK2R.js → product-list-rac-DR2bHVkk.js} +22 -22
- package/dist/component/{quiz-radio-group-rac-B0OtjxKf.js → quiz-radio-group-rac-mWuYJqRQ.js} +1 -1
- package/dist/component/{radio-button-module-classes-Cu3KM625.js → radio-button-module-classes-CokNolqR.js} +3 -3
- package/dist/component/{radio-group-field-rac-0dJHtf3G.js → radio-group-field-rac-DiaR7RdY.js} +6 -6
- package/dist/component/{radio-group-rac-CqtO1JqM.js → radio-group-rac-FdQp_E1O.js} +1 -1
- package/dist/component/{rating-input-field-rac-CMny6OSF.js → rating-input-field-rac-DbyB_Esi.js} +11 -11
- package/dist/component/{rating-input-rac-DA4iU_-m.js → rating-input-rac-D4C1bB-A.js} +1 -1
- package/dist/component/{rich-content-rac.module-CZX0cZst.js → rich-content-rac.module-CDtZ3pmh.js} +1 -1
- package/dist/component/{rich-text-field-rac-Dtm6xFcj.js → rich-text-field-rac-CYqdqamx.js} +2 -2
- package/dist/component/{rich-text-rac-ClqIW5ds.js → rich-text-rac-CDzSg_7O.js} +1 -1
- package/dist/component/{service-dropdown-rac-_4T1OZGq.js → service-dropdown-rac-rdwYVwGB.js} +9 -9
- package/dist/component/{services-multi-choice-rac-BVim-jnM.js → services-multi-choice-rac-DOO6HYgT.js} +7 -7
- package/dist/component/{signature-rac-D7w8WTLO.js → signature-rac-CBh4_hf-.js} +4 -4
- package/dist/component/{submit-button-rac-BkUDj1dU.js → submit-button-rac-B8ZNvJjY.js} +2 -2
- package/dist/component/{tags-field-rac-Di1aK4E2.js → tags-field-rac-D5THw-TO.js} +5 -5
- package/dist/component/{tags-rac-CJ5f4Doi.js → tags-rac-C8wN2xTn.js} +1 -1
- package/dist/component/{text-area-field-rac-DFjrT9fs.js → text-area-field-rac-D3GB6Wrq.js} +6 -6
- package/dist/component/{text-area-rac-DBANidv_.js → text-area-rac-CCTd5x7u.js} +1 -1
- package/dist/component/{text-input-field-rac-DJDzqR6d.js → text-input-field-rac-emy5LgNs.js} +3 -3
- package/dist/component/{text-input-headless-CG4wbxMG.js → text-input-headless-BIgsm4yN.js} +3 -3
- package/dist/component/{text-input-rac-V0tK1Gj2.js → text-input-rac-BFRe44DM.js} +1 -1
- package/dist/component/{time-input-rac-LSoyg8Ao.js → time-input-rac-D6FsrMxb.js} +4 -4
- package/dist/component/{url-input-field-rac-DI0SdDI0.js → url-input-field-rac-Dk9F61BD.js} +8 -8
- package/dist/component/{url-input-rac-obx2Uf2F.js → url-input-rac-C1pAmfj-.js} +1 -1
- package/dist/component/{use-dropdown-option-class-name-BM-NiVtO.js → use-dropdown-option-class-name-DNvaYrmm.js} +2 -2
- package/dist/component/{use-dropdown-trigger-class-name-BHwQ-wZa.js → use-dropdown-trigger-class-name-_gAS-eDg.js} +2 -2
- package/dist/component/{use-element-state-class-name-DAYz5X_i.js → use-element-state-class-name-CT3HIbmC.js} +1 -1
- package/dist/component/{use-hoverable-input-class-name-DZ-4NGpv.js → use-hoverable-input-class-name-DMVtzjju.js} +2 -2
- package/dist/component/{use-service-options-base-BOjt2sg9.js → use-service-options-base-DMgeKnCC.js} +1 -1
- package/dist/component/use-text-input-class-name-CO5G1Jx0.js +6 -0
- package/package.json +2 -2
- package/dist/component/use-text-input-class-name-Bqj4OoIw.js +0 -6
|
@@ -6,12 +6,12 @@ import { E as lt } from "./error-icon-hZxQ6DEy.js";
|
|
|
6
6
|
import { g as ct, c as Ce } from "./calendar.module-CKCBG_Pg.js";
|
|
7
7
|
import { H as me } from "./custom-focus-class-_483Pkwp.js";
|
|
8
8
|
import { s as ue } from "./field-rac.module-DfEb7pBp.js";
|
|
9
|
-
import { bb as De, ba as mt, bf as Te, bt as ut, bs as dt, bj as re, bg as ie, bl as ft, bi as Dt, F as Et, h as St,
|
|
10
|
-
import { u as gt } from "./use-element-state-class-name-
|
|
9
|
+
import { bb as De, ba as mt, bf as Te, bt as ut, bs as dt, bj as re, bg as ie, bl as ft, bi as Dt, F as Et, h as St, N as _t, Y as Nt, g as pt, j as We, i as At, m as yt, k as bt, G as It, u as Lt, l as Ot } from "./form-D7mq5tD5.js";
|
|
10
|
+
import { u as gt } from "./use-element-state-class-name-CT3HIbmC.js";
|
|
11
11
|
import { ListBox as Tt, Button as ve, ListBoxItem as vt, RadioGroup as kt, RadioField as Rt, RadioButton as Mt } from "react-aria-components";
|
|
12
12
|
import { f as T, a as Ee } from "./find-child-C60k4CxG.js";
|
|
13
|
-
import { D as wt, E as Ft } from "./field-error-headless-
|
|
14
|
-
import { L as ht } from "./field-label-headless-
|
|
13
|
+
import { D as wt, E as Ft } from "./field-error-headless-BCrv3sBa.js";
|
|
14
|
+
import { L as ht } from "./field-label-headless-B54yFVkr.js";
|
|
15
15
|
import { F as Ct } from "./fieldset-headless-CD3fds9J.js";
|
|
16
16
|
import "date-fns";
|
|
17
17
|
import { V as Ge } from "./headless-styles-CmcyA_pi.js";
|
|
@@ -170,9 +170,9 @@ function Kt(e) {
|
|
|
170
170
|
};
|
|
171
171
|
try {
|
|
172
172
|
const Y = async (ae) => {
|
|
173
|
-
var _,
|
|
173
|
+
var _, N;
|
|
174
174
|
const { startDate: $, endDate: w } = xt(ae, M);
|
|
175
|
-
return (
|
|
175
|
+
return (N = (_ = c.current) == null ? void 0 : _.getAvailabilityDates) == null ? void 0 : N.call(_, {
|
|
176
176
|
serviceId: i,
|
|
177
177
|
fromDate: $,
|
|
178
178
|
toDate: w,
|
|
@@ -393,7 +393,7 @@ const nn = "SLOT_UNAVAILABLE", an = (e) => {
|
|
|
393
393
|
jt({
|
|
394
394
|
setIsReloadingSlots: u
|
|
395
395
|
});
|
|
396
|
-
const { onChange: b, value: I, target: U, initialData: x, formatDescription: H, locationType: Y, error: ae } = e, { availabilityDates: $, availabilitySlots: w, timezone: _ = "", selectedDate:
|
|
396
|
+
const { onChange: b, value: I, target: U, initialData: x, formatDescription: H, locationType: Y, error: ae } = e, { availabilityDates: $, availabilitySlots: w, timezone: _ = "", selectedDate: N, currentSlotBulkSize: k, dataStatus: G, error: le } = t, K = (Fe = x == null ? void 0 : x.service) == null ? void 0 : Fe.id, Z = G === z.LOADING, X = D || S, Se = !!le, Me = on({
|
|
397
397
|
error: ae,
|
|
398
398
|
selectedSlot: I
|
|
399
399
|
}), y = B(() => Qt(w, Me), [
|
|
@@ -428,16 +428,16 @@ const nn = "SLOT_UNAVAILABLE", an = (e) => {
|
|
|
428
428
|
]);
|
|
429
429
|
const _e = B(() => ct(a), [
|
|
430
430
|
a
|
|
431
|
-
]), we = J(
|
|
431
|
+
]), we = J(N);
|
|
432
432
|
P(() => {
|
|
433
433
|
const f = we.current;
|
|
434
|
-
we.current =
|
|
434
|
+
we.current = N, !!N && (!f || !ne(f, N)) && g(void 0);
|
|
435
435
|
}, [
|
|
436
|
-
|
|
436
|
+
N
|
|
437
437
|
]);
|
|
438
|
-
const h = B(() => d ?? He(
|
|
438
|
+
const h = B(() => d ?? He(N ?? /* @__PURE__ */ new Date(), _e), [
|
|
439
439
|
d,
|
|
440
|
-
|
|
440
|
+
N,
|
|
441
441
|
_e
|
|
442
442
|
]), Xe = B(() => {
|
|
443
443
|
const f = ge(/* @__PURE__ */ new Date()), L = new Intl.DateTimeFormat(a, {
|
|
@@ -452,7 +452,7 @@ const nn = "SLOT_UNAVAILABLE", an = (e) => {
|
|
|
452
452
|
return Array.from({
|
|
453
453
|
length: q
|
|
454
454
|
}, (oe, be) => {
|
|
455
|
-
const W = ee(h, be), Ie = !!
|
|
455
|
+
const W = ee(h, be), Ie = !!N && ne(W, N), rt = ge(W) < f;
|
|
456
456
|
return {
|
|
457
457
|
key: rn(W),
|
|
458
458
|
date: W,
|
|
@@ -468,13 +468,13 @@ const nn = "SLOT_UNAVAILABLE", an = (e) => {
|
|
|
468
468
|
});
|
|
469
469
|
}, [
|
|
470
470
|
h,
|
|
471
|
-
|
|
471
|
+
N,
|
|
472
472
|
$,
|
|
473
473
|
Z,
|
|
474
474
|
X,
|
|
475
475
|
a,
|
|
476
476
|
i
|
|
477
|
-
]),
|
|
477
|
+
]), Ne = de(I ?? void 0) || void 0, pe = B(() => Z || D ? [] : (y ?? []).slice(0, k).flatMap((f) => {
|
|
478
478
|
const { startDate: L, endDate: O } = f.slot ?? {};
|
|
479
479
|
if (!L || !O)
|
|
480
480
|
return [];
|
|
@@ -493,7 +493,7 @@ const nn = "SLOT_UNAVAILABLE", an = (e) => {
|
|
|
493
493
|
locale: a,
|
|
494
494
|
timezone: _
|
|
495
495
|
}),
|
|
496
|
-
isSelected: R ===
|
|
496
|
+
isSelected: R === Ne
|
|
497
497
|
}
|
|
498
498
|
];
|
|
499
499
|
}), [
|
|
@@ -503,11 +503,11 @@ const nn = "SLOT_UNAVAILABLE", an = (e) => {
|
|
|
503
503
|
D,
|
|
504
504
|
a,
|
|
505
505
|
_,
|
|
506
|
-
|
|
506
|
+
Ne
|
|
507
507
|
]), Ae = !D && !!(y != null && y.length) && (k || V) < y.length, ye = h > He(/* @__PURE__ */ new Date(), _e), et = se(
|
|
508
508
|
async (f) => {
|
|
509
509
|
var L;
|
|
510
|
-
if (!(X ||
|
|
510
|
+
if (!(X || N && ne(f, N))) {
|
|
511
511
|
u(!0), b == null || b(void 0), n({
|
|
512
512
|
currentSlotBulkSize: V,
|
|
513
513
|
selectedDate: f,
|
|
@@ -536,7 +536,7 @@ const nn = "SLOT_UNAVAILABLE", an = (e) => {
|
|
|
536
536
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
537
537
|
[
|
|
538
538
|
X,
|
|
539
|
-
|
|
539
|
+
N,
|
|
540
540
|
K,
|
|
541
541
|
_,
|
|
542
542
|
l,
|
|
@@ -585,7 +585,7 @@ const nn = "SLOT_UNAVAILABLE", an = (e) => {
|
|
|
585
585
|
]
|
|
586
586
|
), nt = se(
|
|
587
587
|
(f) => {
|
|
588
|
-
const L =
|
|
588
|
+
const L = pe.find((oe) => oe.key === f);
|
|
589
589
|
if (!L)
|
|
590
590
|
return;
|
|
591
591
|
const { startDate: O, endDate: R } = L;
|
|
@@ -602,7 +602,7 @@ const nn = "SLOT_UNAVAILABLE", an = (e) => {
|
|
|
602
602
|
},
|
|
603
603
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
604
604
|
[
|
|
605
|
-
|
|
605
|
+
pe,
|
|
606
606
|
_,
|
|
607
607
|
b,
|
|
608
608
|
c
|
|
@@ -635,8 +635,8 @@ const nn = "SLOT_UNAVAILABLE", an = (e) => {
|
|
|
635
635
|
]);
|
|
636
636
|
return {
|
|
637
637
|
days: Xe,
|
|
638
|
-
slots:
|
|
639
|
-
selectedSlotKey:
|
|
638
|
+
slots: pe,
|
|
639
|
+
selectedSlotKey: Ne,
|
|
640
640
|
selectDate: et,
|
|
641
641
|
selectSlot: nt,
|
|
642
642
|
changeWeek: tt,
|
|
@@ -653,7 +653,7 @@ const nn = "SLOT_UNAVAILABLE", an = (e) => {
|
|
|
653
653
|
endOfWeek: ee(h, q - 1)
|
|
654
654
|
}, a),
|
|
655
655
|
selectedDateLabel: Xt({
|
|
656
|
-
selectedDate:
|
|
656
|
+
selectedDate: N,
|
|
657
657
|
locale: a,
|
|
658
658
|
timezone: _
|
|
659
659
|
}),
|
|
@@ -772,8 +772,8 @@ const Ye = 'input[type="radio"]', fe = ({ children: e, className: t, ...n }) =>
|
|
|
772
772
|
x,
|
|
773
773
|
a && u ? Qe(I) : void 0
|
|
774
774
|
].filter(Boolean).join(" ") || void 0, w = (_) => {
|
|
775
|
-
var
|
|
776
|
-
(G = (k = (
|
|
775
|
+
var N, k, G;
|
|
776
|
+
(G = (k = (N = H.current) == null ? void 0 : N.querySelectorAll(Ye)) == null ? void 0 : k[_]) == null || G.focus();
|
|
777
777
|
};
|
|
778
778
|
return ft(() => {
|
|
779
779
|
var G, le;
|
|
@@ -781,7 +781,7 @@ const Ye = 'input[type="radio"]', fe = ({ children: e, className: t, ...n }) =>
|
|
|
781
781
|
w(0);
|
|
782
782
|
return;
|
|
783
783
|
}
|
|
784
|
-
const
|
|
784
|
+
const N = Array.from(((le = document.getElementById(I)) == null ? void 0 : le.querySelectorAll('[role="option"]')) ?? []), k = N.find((K) => K.getAttribute("aria-selected") === "true") ?? N.find((K) => K.getAttribute("aria-disabled") !== "true");
|
|
785
785
|
k == null || k.focus();
|
|
786
786
|
}, d), P(() => {
|
|
787
787
|
S !== void 0 && (w(S), E());
|
|
@@ -865,7 +865,7 @@ const m = ({ children: e, className: t }) => {
|
|
|
865
865
|
hasTimezoneNote: !!E,
|
|
866
866
|
hasDateTitle: !!g
|
|
867
867
|
}), u, A)));
|
|
868
|
-
},
|
|
868
|
+
}, Nn = ({ children: e, className: t }) => {
|
|
869
869
|
const { isLoading: n, isRefetching: a } = F();
|
|
870
870
|
return !n && !a ? null : /* @__PURE__ */ o.createElement("div", {
|
|
871
871
|
className: t,
|
|
@@ -874,7 +874,7 @@ const m = ({ children: e, className: t }) => {
|
|
|
874
874
|
"data-initial": n || void 0,
|
|
875
875
|
"data-refetch": !n && a || void 0
|
|
876
876
|
}, e);
|
|
877
|
-
},
|
|
877
|
+
}, pn = ({ children: e, className: t }) => {
|
|
878
878
|
const { notificationMessage: n } = F();
|
|
879
879
|
return n ? /* @__PURE__ */ o.createElement("div", {
|
|
880
880
|
className: t,
|
|
@@ -916,8 +916,8 @@ const m = ({ children: e, className: t }) => {
|
|
|
916
916
|
}) : s) : null;
|
|
917
917
|
};
|
|
918
918
|
m.Label = ht;
|
|
919
|
-
m.Loader =
|
|
920
|
-
m.Notification =
|
|
919
|
+
m.Loader = Nn;
|
|
920
|
+
m.Notification = pn;
|
|
921
921
|
m.Dates = C;
|
|
922
922
|
m.Timezone = An;
|
|
923
923
|
m.Format = yn;
|
|
@@ -926,7 +926,7 @@ m.Slots = fe;
|
|
|
926
926
|
m.ShowMoreSlots = In;
|
|
927
927
|
m.Description = wt;
|
|
928
928
|
m.Error = Ft;
|
|
929
|
-
const Ln = "_appointment_ig6bz_1", On = "_dates_ig6bz_5", gn = "_weekHeading_ig6bz_27", Tn = "_weekButton_ig6bz_37", vn = "_previousWeek_ig6bz_69", kn = "_nextWeek_ig6bz_73", Rn = "_day_ig6bz_85", Mn = "_weekdayLabel_ig6bz_97", wn = "_dayNumber_ig6bz_110", Fn = "_indicator_ig6bz_114", hn = "_hint_ig6bz_137", Cn = "_slots_ig6bz_150", Wn = "_dateTitle_ig6bz_164", Bn = "_slot_ig6bz_150", zn = "_slotHover_ig6bz_206", Pn = "_slotSelected_ig6bz_214", Un = "_showMoreSlots_ig6bz_268", xn = "_loader_ig6bz_299", Hn = "_notification_ig6bz_335",
|
|
929
|
+
const Ln = "_appointment_ig6bz_1", On = "_dates_ig6bz_5", gn = "_weekHeading_ig6bz_27", Tn = "_weekButton_ig6bz_37", vn = "_previousWeek_ig6bz_69", kn = "_nextWeek_ig6bz_73", Rn = "_day_ig6bz_85", Mn = "_weekdayLabel_ig6bz_97", wn = "_dayNumber_ig6bz_110", Fn = "_indicator_ig6bz_114", hn = "_hint_ig6bz_137", Cn = "_slots_ig6bz_150", Wn = "_dateTitle_ig6bz_164", Bn = "_slot_ig6bz_150", zn = "_slotHover_ig6bz_206", Pn = "_slotSelected_ig6bz_214", Un = "_showMoreSlots_ig6bz_268", xn = "_loader_ig6bz_299", Hn = "_notification_ig6bz_335", p = {
|
|
930
930
|
appointment: Ln,
|
|
931
931
|
dates: On,
|
|
932
932
|
weekHeading: gn,
|
|
@@ -950,55 +950,55 @@ const Ln = "_appointment_ig6bz_1", On = "_dates_ig6bz_5", gn = "_weekHeading_ig6
|
|
|
950
950
|
content: e,
|
|
951
951
|
locale: t
|
|
952
952
|
}), Kn = {
|
|
953
|
-
base:
|
|
954
|
-
selected:
|
|
955
|
-
hover:
|
|
953
|
+
base: p.slot,
|
|
954
|
+
selected: p.slotSelected,
|
|
955
|
+
hover: p.slotHover
|
|
956
956
|
}, $n = () => {
|
|
957
957
|
const e = gt({
|
|
958
958
|
globalClasses: Ot,
|
|
959
959
|
moduleClasses: Kn
|
|
960
960
|
});
|
|
961
961
|
return /* @__PURE__ */ o.createElement(m, {
|
|
962
|
-
className: v(St,
|
|
962
|
+
className: v(St, p.appointment)
|
|
963
963
|
}, /* @__PURE__ */ o.createElement(m.Label, {
|
|
964
964
|
className: v(_t, ue.label)
|
|
965
965
|
}, /* @__PURE__ */ o.createElement(m.Label.Required, {
|
|
966
|
-
className: v(
|
|
966
|
+
className: v(Nt, ue.requiredMark)
|
|
967
967
|
})), /* @__PURE__ */ o.createElement(m.Loader, {
|
|
968
|
-
className:
|
|
968
|
+
className: p.loader
|
|
969
969
|
}), /* @__PURE__ */ o.createElement(m.Dates, {
|
|
970
|
-
className: v(
|
|
970
|
+
className: v(pt, p.dates)
|
|
971
971
|
}, /* @__PURE__ */ o.createElement(m.Dates.PreviousWeek, {
|
|
972
|
-
className: v(me,
|
|
972
|
+
className: v(me, p.weekButton, p.previousWeek)
|
|
973
973
|
}, /* @__PURE__ */ o.createElement(he, null)), /* @__PURE__ */ o.createElement(m.Dates.Heading, {
|
|
974
|
-
className:
|
|
974
|
+
className: p.weekHeading
|
|
975
975
|
}), /* @__PURE__ */ o.createElement(m.Dates.NextWeek, {
|
|
976
|
-
className: v(me,
|
|
976
|
+
className: v(me, p.weekButton, p.nextWeek)
|
|
977
977
|
}, /* @__PURE__ */ o.createElement(he, null)), /* @__PURE__ */ o.createElement(m.Dates.Day, {
|
|
978
|
-
className: v(me, Ce.day,
|
|
978
|
+
className: v(me, Ce.day, p.day)
|
|
979
979
|
}, (t) => /* @__PURE__ */ o.createElement(o.Fragment, null, /* @__PURE__ */ o.createElement("span", {
|
|
980
|
-
className:
|
|
980
|
+
className: p.weekdayLabel
|
|
981
981
|
}, t.weekdayLabel), /* @__PURE__ */ o.createElement("span", {
|
|
982
|
-
className: v(Ce.dayNumber,
|
|
982
|
+
className: v(Ce.dayNumber, p.dayNumber)
|
|
983
983
|
}, t.dayOfMonthLabel, /* @__PURE__ */ o.createElement("span", {
|
|
984
|
-
className:
|
|
984
|
+
className: p.indicator
|
|
985
985
|
}))))), /* @__PURE__ */ o.createElement(m.Timezone, {
|
|
986
|
-
className: v(We,
|
|
986
|
+
className: v(We, p.hint)
|
|
987
987
|
}), /* @__PURE__ */ o.createElement(m.Format, {
|
|
988
|
-
className: v(We,
|
|
988
|
+
className: v(We, p.hint)
|
|
989
989
|
}), /* @__PURE__ */ o.createElement(m.DateTitle, {
|
|
990
|
-
className: v(At,
|
|
990
|
+
className: v(At, p.dateTitle)
|
|
991
991
|
}), /* @__PURE__ */ o.createElement(m.Slots, {
|
|
992
|
-
className: v(yt,
|
|
992
|
+
className: v(yt, p.slots)
|
|
993
993
|
}, /* @__PURE__ */ o.createElement(m.Slots.Slot, {
|
|
994
994
|
className: ({ isSelected: t, isHovered: n, isFocused: a, isDisabled: s, isReadOnly: r }) => e({
|
|
995
995
|
isSelected: t,
|
|
996
996
|
isHovered: (n || a) && !t && !s && !r
|
|
997
997
|
})
|
|
998
998
|
}, (t) => t.timeRange)), /* @__PURE__ */ o.createElement(m.Notification, {
|
|
999
|
-
className:
|
|
999
|
+
className: p.notification
|
|
1000
1000
|
}), /* @__PURE__ */ o.createElement(m.ShowMoreSlots, {
|
|
1001
|
-
className: v(bt, me,
|
|
1001
|
+
className: v(bt, me, p.showMoreSlots)
|
|
1002
1002
|
}), /* @__PURE__ */ o.createElement(m.Error, {
|
|
1003
1003
|
className: v(It, ue.error)
|
|
1004
1004
|
}, /* @__PURE__ */ o.createElement(lt, null), /* @__PURE__ */ o.createElement(m.Error.Text, null)), /* @__PURE__ */ o.createElement(m.Description, {
|
package/dist/component/{bookings-login-bar-rac-B5Gpk-kG.js → bookings-login-bar-rac-3wYAN_xh.js}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "react";
|
|
2
2
|
import E from "classnames";
|
|
3
|
-
import { bj as d, bt as b, bb as f, bf as x,
|
|
4
|
-
import { Button as
|
|
3
|
+
import { bj as d, bt as b, bb as f, bf as x, L } from "./form-D7mq5tD5.js";
|
|
4
|
+
import { Button as p } from "react-aria-components";
|
|
5
5
|
import { a as m, f as g } from "./find-child-C60k4CxG.js";
|
|
6
6
|
const l = ({ children: n }) => {
|
|
7
7
|
const { id: r, FieldLayout: t } = d();
|
|
@@ -36,7 +36,7 @@ const l = ({ children: n }) => {
|
|
|
36
36
|
}, c, !a && t);
|
|
37
37
|
}, F = ({ className: n, ...r }) => {
|
|
38
38
|
const { t } = b(), { isLoggedIn: e, login: a, logout: s } = r, c = t(e ? "form.login-bar.action.logout" : "form.login-bar.actions.login"), i = () => e ? s == null ? void 0 : s() : a == null ? void 0 : a();
|
|
39
|
-
return /* @__PURE__ */ o.createElement(
|
|
39
|
+
return /* @__PURE__ */ o.createElement(p, {
|
|
40
40
|
className: n,
|
|
41
41
|
onPress: i
|
|
42
42
|
}, c);
|
|
@@ -61,7 +61,7 @@ const T = "_container_1ixk2_1", C = "_text_1ixk2_34", k = "_button_1ixk2_39", u
|
|
|
61
61
|
var e;
|
|
62
62
|
return (e = t == null ? void 0 : t.requestLogout) == null ? void 0 : e.call(t);
|
|
63
63
|
},
|
|
64
|
-
className: E(
|
|
64
|
+
className: E(L, u.container)
|
|
65
65
|
}, /* @__PURE__ */ o.createElement(l.Text, {
|
|
66
66
|
className: u.text
|
|
67
67
|
}), /* @__PURE__ */ o.createElement(l.Button, {
|
|
@@ -2,16 +2,16 @@ import { RicosViewer as $n } from "@wix/ricos/viewer";
|
|
|
2
2
|
import U from "classnames";
|
|
3
3
|
import b, { useMemo as Xn, useRef as Jn, useCallback as Yn } from "react";
|
|
4
4
|
import { CheckboxField as Qn, CheckboxButton as Zn } from "react-aria-components";
|
|
5
|
-
import { aT as ei, bj as Zr, aB as Qr, aA as fn, bt as ri, bb as ti, a$ as ai, bg as ni, bl as ii, n as si, Y as oi, s as ui, aw as ci, G as fi, u as li, r as _i } from "./form-
|
|
5
|
+
import { aT as ei, bj as Zr, aB as Qr, aA as fn, bt as ri, bb as ti, a$ as ai, bg as ni, bl as ii, n as si, Y as oi, s as ui, aw as ci, G as fi, u as li, r as _i } from "./form-D7mq5tD5.js";
|
|
6
6
|
import { f as W, a as vi } from "./find-child-C60k4CxG.js";
|
|
7
|
-
import { D as hi, E as pi } from "./field-error-headless-
|
|
7
|
+
import { D as hi, E as pi } from "./field-error-headless-BCrv3sBa.js";
|
|
8
8
|
import { Node_Type as di } from "@wix/ricos/schema";
|
|
9
|
-
import { c as re, r as X, e as S, a as J, d as yi, b as bi } from "./isObjectLike-
|
|
9
|
+
import { c as re, r as X, e as S, a as J, d as yi, b as bi } from "./isObjectLike-PXbsarQL.js";
|
|
10
10
|
import { S as gi } from "./selection-indicator-XQ8MYHUQ.js";
|
|
11
11
|
import { E as qi } from "./error-icon-hZxQ6DEy.js";
|
|
12
12
|
import { C as Ci } from "./checkbox-indicator-module-classes-6173wvuW.js";
|
|
13
13
|
import { s as oe } from "./field-rac.module-DfEb7pBp.js";
|
|
14
|
-
import { u as Ai } from "./use-element-state-class-name-
|
|
14
|
+
import { u as Ai } from "./use-element-state-class-name-CT3HIbmC.js";
|
|
15
15
|
var ue, dt;
|
|
16
16
|
function mi() {
|
|
17
17
|
if (dt) return ue;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import o, { useMemo as F, useCallback as $, useRef as w, useState as W, useEffect as j } from "react";
|
|
2
2
|
import { CheckboxGroup as A, CheckboxField as M, CheckboxButton as z, TextField as J, Input as K } from "react-aria-components";
|
|
3
3
|
import { debounce as Q } from "ts-debounce";
|
|
4
|
-
import { bj as R, bg as U, bt as X, bl as Y } from "./form-
|
|
4
|
+
import { bj as R, bg as U, bt as X, bl as Y } from "./form-D7mq5tD5.js";
|
|
5
5
|
import { f as I, a as k } from "./find-child-C60k4CxG.js";
|
|
6
|
-
import { D as Z, E as ee } from "./field-error-headless-
|
|
7
|
-
import { L as te } from "./field-label-headless-
|
|
6
|
+
import { D as Z, E as ee } from "./field-error-headless-BCrv3sBa.js";
|
|
7
|
+
import { L as te } from "./field-label-headless-B54yFVkr.js";
|
|
8
8
|
import { F as ae } from "./fieldset-headless-CD3fds9J.js";
|
|
9
9
|
import { S as ne } from "./selection-indicator-XQ8MYHUQ.js";
|
|
10
10
|
const B = "Other", le = (e, t) => e.some((r) => !t.includes(r)), N = (e, t) => e.length > 0 && le(e, t), se = (e, t) => {
|
package/dist/component/{checkbox-group-field-rac-M1l5h3ii.js → checkbox-group-field-rac-KqKHh6Uj.js}
RENAMED
|
@@ -1,14 +1,14 @@
|
|
|
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-DdVXFUPC.js";
|
|
5
5
|
import { E as n } from "./error-icon-hZxQ6DEy.js";
|
|
6
6
|
import { C as c } from "./checkbox-indicator-module-classes-6173wvuW.js";
|
|
7
7
|
import { s } from "./field-rac.module-DfEb7pBp.js";
|
|
8
|
-
import {
|
|
8
|
+
import { N as i, Y as E, o as p, q as C, G as O, u as _, p as I } from "./form-D7mq5tD5.js";
|
|
9
9
|
import { o as l } from "./options-rac.module-_THNq6Qq.js";
|
|
10
|
-
import { u as L } from "./use-element-state-class-name-
|
|
11
|
-
import { u as R } from "./use-text-input-class-name-
|
|
10
|
+
import { u as L } from "./use-element-state-class-name-CT3HIbmC.js";
|
|
11
|
+
import { u as R } from "./use-text-input-class-name-CO5G1Jx0.js";
|
|
12
12
|
const u = ({ content: o, locale: r }) => /* @__PURE__ */ e.createElement(m, {
|
|
13
13
|
content: o,
|
|
14
14
|
locale: r
|
package/dist/component/{date-input-field-rac-D4cr7NGI.js → date-input-field-rac-C47Y-z4d.js}
RENAMED
|
@@ -3,20 +3,20 @@ import h from "classnames";
|
|
|
3
3
|
import t, { useMemo as O, useState as k, useCallback as v, useRef as w } from "react";
|
|
4
4
|
import { UNSAFE_PortalProvider as te } from "react-aria";
|
|
5
5
|
import { ListBoxItem as ae, Select as ne, TextField as $, SelectValue as re, Input as q } from "react-aria-components";
|
|
6
|
-
import { bj as D, bg as z, bb as V, aQ as K, b1 as Q, aD as m, bt as S, aK as se, aR as oe, b8 as le, bl as H,
|
|
6
|
+
import { bj as D, bg as z, bb as V, aQ as K, b1 as Q, aD as m, bt as S, aK as se, aR as oe, b8 as le, bl as H, N as A, Y as ce, O as ie, G as me, u as de } from "./form-D7mq5tD5.js";
|
|
7
7
|
import { f as u, a as B } from "./find-child-C60k4CxG.js";
|
|
8
8
|
import { g as ue } from "./helpers-HmkkXrh2.js";
|
|
9
|
-
import { D as pe, E as Ee } from "./field-error-headless-
|
|
10
|
-
import { L as fe } from "./field-label-headless-
|
|
9
|
+
import { D as pe, E as Ee } from "./field-error-headless-BCrv3sBa.js";
|
|
10
|
+
import { L as fe } from "./field-label-headless-B54yFVkr.js";
|
|
11
11
|
import { F as be } from "./fieldset-headless-CD3fds9J.js";
|
|
12
12
|
import { N as he, E as ye, S as De } from "./non-modal-popover-D-u13tmp.js";
|
|
13
|
-
import { a as ge, u as Ie } from "./use-dropdown-trigger-class-name-
|
|
14
|
-
import { V as Oe, u as Ne } from "./use-dropdown-option-class-name-
|
|
13
|
+
import { a as ge, u as Ie } from "./use-dropdown-trigger-class-name-_gAS-eDg.js";
|
|
14
|
+
import { V as Oe, u as Ne } from "./use-dropdown-option-class-name-DNvaYrmm.js";
|
|
15
15
|
import { C as Le } from "./chevron-down-icon-CcpVm6B-.js";
|
|
16
16
|
import { E as _e } from "./error-icon-hZxQ6DEy.js";
|
|
17
17
|
import { H as Ce } from "./custom-focus-class-_483Pkwp.js";
|
|
18
18
|
import { s as E } from "./field-rac.module-DfEb7pBp.js";
|
|
19
|
-
import { u as U } from "./use-text-input-class-name-
|
|
19
|
+
import { u as U } from "./use-text-input-class-name-CO5G1Jx0.js";
|
|
20
20
|
const n = ({ children: e, className: a }) => {
|
|
21
21
|
const { id: r, required: s, onBlur: o, onFocus: l, FieldLayout: c } = D(), { inputId: d, labelId: i, ariaDescribedBy: f } = z(), { regionalFormat: p } = V(), b = O(() => K(p).filter(Q).map((Y) => Y.toUpperCase()), [
|
|
22
22
|
p
|
package/dist/component/{date-picker-field-rac-C-IM7SHk.js → date-picker-field-rac-NSAnfLRk.js}
RENAMED
|
@@ -4,14 +4,14 @@ import e, { useState as A, useCallback as k, useContext as ee, useRef as O, useM
|
|
|
4
4
|
import { parseDate as te } from "@internationalized/date";
|
|
5
5
|
import { UNSAFE_PortalProvider as re } from "react-aria";
|
|
6
6
|
import { I18nProvider as ae, DatePicker as ne, DatePickerStateContext as oe, Group as le, DateInput as se, DateSegment as ce, Calendar as ie, CalendarMonthPicker as me, CalendarYearPicker as de, CalendarGrid as ue, Dialog as ge, CalendarCell as Ee, Button as M, Select as w, SelectValue as x, ListBox as Y, ListBoxItem as B } from "react-aria-components";
|
|
7
|
-
import { D as p, bj as T, bg as U, bb as F, bl as pe,
|
|
7
|
+
import { D as p, bj as T, bg as U, bb as F, bl as pe, N as fe, Y as De, t as Ce, G as ye, u as Se } from "./form-D7mq5tD5.js";
|
|
8
8
|
import { g as he, c as P } from "./calendar.module-CKCBG_Pg.js";
|
|
9
9
|
import { f as E, a as h } from "./find-child-C60k4CxG.js";
|
|
10
|
-
import { D as Te, E as be } from "./field-error-headless-
|
|
11
|
-
import { L as Ne } from "./field-label-headless-
|
|
10
|
+
import { D as Te, E as be } from "./field-error-headless-BCrv3sBa.js";
|
|
11
|
+
import { L as Ne } from "./field-label-headless-B54yFVkr.js";
|
|
12
12
|
import { D as ve, N as L, S as V } from "./non-modal-popover-D-u13tmp.js";
|
|
13
|
-
import { a as _e, u as Ie } from "./use-dropdown-trigger-class-name-
|
|
14
|
-
import { i as Fe } from "./date-availability-
|
|
13
|
+
import { a as _e, u as Ie } from "./use-dropdown-trigger-class-name-_gAS-eDg.js";
|
|
14
|
+
import { i as Fe } from "./date-availability-CwlAp1DX.js";
|
|
15
15
|
import { C as I } from "./chevron-down-icon-CcpVm6B-.js";
|
|
16
16
|
import { E as Le } from "./error-icon-hZxQ6DEy.js";
|
|
17
17
|
import { H as Ae } from "./custom-focus-class-_483Pkwp.js";
|