@wix/form-elements 1.140.0 → 1.142.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-CBgveDfU.js → appointment-rac-BAwonF75.js} +85 -85
- package/dist/component/{bookings-address-rac-BJqKQGM7.js → bookings-address-rac-xhj2n7jK.js} +1 -1
- package/dist/component/{bookings-email-rac-BEBnQQtI.js → bookings-email-rac-BGjeAwgm.js} +1 -1
- package/dist/component/{bookings-first-name-rac-CcLe5bPh.js → bookings-first-name-rac-l392yYAU.js} +1 -1
- package/dist/component/{bookings-header-rac-C2CRP5vX.js → bookings-header-rac-JwIo7hsJ.js} +1 -1
- package/dist/component/{bookings-last-name-rac-D9EPB2o-.js → bookings-last-name-rac-CJp81BPl.js} +1 -1
- package/dist/component/{bookings-login-bar-rac-DaDoExJQ.js → bookings-login-bar-rac-BiPklGE_.js} +4 -4
- package/dist/component/{bookings-phone-rac-C4rfNh9m.js → bookings-phone-rac-mQfDJGkK.js} +1 -1
- package/dist/component/{bookings-rich-text-rac-CHupwGUy.js → bookings-rich-text-rac-BOfHn2EU.js} +1 -1
- package/dist/component/{checkbox-field-rac-JA4-Un3S.js → checkbox-field-rac-CA6SeM0c.js} +4 -4
- package/dist/component/{checkbox-group-field-headless-ikYtTUSV.js → checkbox-group-field-headless-ChLT0zKA.js} +3 -3
- package/dist/component/{checkbox-group-field-rac-CkkSPle4.js → checkbox-group-field-rac-_Fkre79S.js} +7 -7
- package/dist/component/{checkbox-group-rac-BYXab1TV.js → checkbox-group-rac-esBLJZ6Y.js} +1 -1
- package/dist/component/{checkbox-rac-MsaKpbsM.js → checkbox-rac-C3vXtbJh.js} +1 -1
- package/dist/component/{contacts-address-rac-BG5KM6Mu.js → contacts-address-rac-BuBBBt19.js} +1 -1
- package/dist/component/{contacts-birthdate-rac-CIJtY0ml.js → contacts-birthdate-rac-BMBJeVOK.js} +1 -1
- package/dist/component/{contacts-company-rac-qQxsdn-g.js → contacts-company-rac-CZl168-E.js} +1 -1
- package/dist/component/{contacts-email-rac-Cb_zFMQd.js → contacts-email-rac-CJgVzCns.js} +1 -1
- package/dist/component/{contacts-first-name-rac-L0IsiQmM.js → contacts-first-name-rac-9ZNYKQeb.js} +1 -1
- package/dist/component/{contacts-last-name-rac-BNgF4RBx.js → contacts-last-name-rac-KgylQwHW.js} +1 -1
- package/dist/component/{contacts-phone-rac-BhOsgxwZ.js → contacts-phone-rac-DYr30FLP.js} +1 -1
- package/dist/component/{contacts-position-rac-B2JM9fSY.js → contacts-position-rac-B9BZZ3K9.js} +1 -1
- package/dist/component/{contacts-subscribe-rac-CVSWNhBY.js → contacts-subscribe-rac-DOQb2GLm.js} +1 -1
- package/dist/component/{contacts-tax-id-rac-BtdNdxYS.js → contacts-tax-id-rac-cYE1ehXN.js} +1 -1
- package/dist/component/{date-availability-BVSO1Gbz.js → date-availability-BOKvA8w-.js} +1 -1
- package/dist/component/{date-input-field-rac-DFCPKpI2.js → date-input-field-rac-BwY53gNr.js} +47 -47
- package/dist/component/{date-input-rac-CcC5JdTU.js → date-input-rac-Cgg4QJbB.js} +1 -1
- package/dist/component/{date-picker-field-rac-CAr7r5k3.js → date-picker-field-rac-0Ue6uiCM.js} +5 -5
- package/dist/component/{date-picker-rac-0WEGa3ZQ.js → date-picker-rac-CgICj33f.js} +1 -1
- package/dist/component/{date-time-input-field-rac-DPlFlkrF.js → date-time-input-field-rac-ChRCMk7_.js} +60 -60
- package/dist/component/{date-time-input-rac-c0dm0pdf.js → date-time-input-rac-B8tRZrri.js} +1 -1
- package/dist/component/{dext-checkbox-group-rac-B1db5jv3.js → dext-checkbox-group-rac-B_qjx1QD.js} +2 -2
- package/dist/component/{dext-checkbox-rac-C03w68Ta.js → dext-checkbox-rac-Bw9SyhHA.js} +1 -1
- package/dist/component/{dext-date-picker-rac-DTjysj_k.js → dext-date-picker-rac-Bzn28zNq.js} +1 -1
- package/dist/component/{dext-date-time-input-rac-CnL2o6YR.js → dext-date-time-input-rac-7Cuk3PoA.js} +1 -1
- package/dist/component/{dext-dropdown-rac-CJxC-Wr0.js → dext-dropdown-rac-Md1VI5pc.js} +1 -1
- package/dist/component/{dext-email-rac-CewA7bXc.js → dext-email-rac-DbHwHGKz.js} +1 -1
- package/dist/component/{dext-number-input-rac--_aUE6C8.js → dext-number-input-rac-DIVk3zXL.js} +1 -1
- package/dist/component/{dext-phone-rac-_ObccrwR.js → dext-phone-rac-ZIya63UJ.js} +1 -1
- package/dist/component/{dext-radio-group-rac-DXBCI2mT.js → dext-radio-group-rac-DV1xHkOD.js} +2 -2
- package/dist/component/{dext-rating-input-rac-CS3VY3B3.js → dext-rating-input-rac-YRIYgeT4.js} +1 -1
- package/dist/component/{dext-tags-rac-CyTea3vl.js → dext-tags-rac-DTJ6Pz_x.js} +2 -2
- package/dist/component/{dext-text-area-rac-C_qN16CX.js → dext-text-area-rac-V-d9i95A.js} +1 -1
- package/dist/component/{dext-text-input-rac-DhqfiI_U.js → dext-text-input-rac-ccrundX-.js} +1 -1
- package/dist/component/{dext-url-input-rac-CxI4MbMH.js → dext-url-input-rac-Bd5SZ2U4.js} +1 -1
- package/dist/component/{donation-rac-BZmT89_j.js → donation-rac-BFmpW-3b.js} +23 -23
- package/dist/component/{dropdown-field-headless-CO82AsyC.js → dropdown-field-headless-C2qgeReH.js} +5 -5
- package/dist/component/{dropdown-field-rac-BqPHSq7k.js → dropdown-field-rac-Bj1YSgpT.js} +9 -9
- package/dist/component/{dropdown-rac-pOLj9tRE.js → dropdown-rac-DfdvX5I5.js} +1 -1
- package/dist/component/{ecom-address-rac-DBQ0rVmy.js → ecom-address-rac-DOWNQhhX.js} +1 -1
- package/dist/component/{ecom-subscription-checkbox-rac-BJoMvht8.js → ecom-subscription-checkbox-rac-2ELdC1ql.js} +2 -2
- package/dist/component/{email-input-field-rac-DTqYXW-m.js → email-input-field-rac-CY0U6vEM.js} +34 -34
- package/dist/component/{events-repeater-rac-3gkcVOh6.js → events-repeater-rac-C2oo_RZt.js} +4 -4
- package/dist/component/{events-rsvp-rac-DYMvnjuz.js → events-rsvp-rac-BrimIo0r.js} +8 -8
- package/dist/component/{field-error-headless-CQ8PHjtA.js → field-error-headless-r0fX50xw.js} +1 -1
- package/dist/component/{field-label-headless-BgAx-Enb.js → field-label-headless-D-kCfg8j.js} +1 -1
- package/dist/component/{file-upload-rac-B8TgLoCU.js → file-upload-rac-Beb2BcFK.js} +160 -160
- package/dist/component/{fixed-payment-rac-CRupF7Fu.js → fixed-payment-rac-DGFWYMZG.js} +9 -9
- package/dist/component/{form-BzzldBcB.js → form-DtzwuBIo.js} +296 -293
- package/dist/component/form.js +1 -1
- package/dist/component/{header-field-rac-iFuM4bGC.js → header-field-rac-CVmGSa0E.js} +2 -2
- package/dist/component/{header-rac-CLOeCzLk.js → header-rac-C3AEJmYN.js} +1 -1
- package/dist/component/{image-choice-rac-C6UBnrn3.js → image-choice-rac-Ch-mxLgP.js} +16 -16
- package/dist/component/{index-BHGQWZ7f.js → index-CTn6AQ3A.js} +2 -2
- package/dist/component/{index-CtMQ3oqe.js → index-CmqLlW8X.js} +4 -4
- package/dist/component/{isObjectLike-BVz2g6jF.js → isObjectLike-iyypwAQL.js} +1 -1
- package/dist/component/{multiline-address-field-rac-CKBpkEET.js → multiline-address-field-rac-DJXcb6NG.js} +41 -41
- package/dist/component/{multiline-address-rac-DcGF1aWF.js → multiline-address-rac-DcZgTx1c.js} +1 -1
- package/dist/component/{number-input-field-rac-CODTSfX-.js → number-input-field-rac-W3TqQGhC.js} +20 -20
- package/dist/component/{number-input-rac-ByT6DN8A.js → number-input-rac-CdXigsba.js} +1 -1
- package/dist/component/{password-rac-Bwnpd70V.js → password-rac-Dph6984u.js} +19 -19
- package/dist/component/{payment-input-rac-DmfJZmgO.js → payment-input-rac-D5ARk1lF.js} +23 -23
- package/dist/component/{phone-input-field-rac-B2exX67y.js → phone-input-field-rac-BUfe-B2i.js} +55 -55
- package/dist/component/{phone-rac-9HksdhZY.js → phone-rac-DTiWT1uy.js} +1 -1
- package/dist/component/{product-list-rac-DnhtTpJC.js → product-list-rac-1_Q2JYwH.js} +32 -32
- package/dist/component/{quiz-radio-group-rac-BNVLQ2YS.js → quiz-radio-group-rac-iyBhi0wJ.js} +1 -1
- package/dist/component/{radio-button-module-classes-D2nPj405.js → radio-button-module-classes-DwfobXBe.js} +3 -3
- package/dist/component/{radio-group-field-rac-BT657aHX.js → radio-group-field-rac-BkKNVwMi.js} +8 -8
- package/dist/component/{radio-group-rac-yjr7rBFf.js → radio-group-rac-CH0nkJ8V.js} +1 -1
- package/dist/component/{rating-input-field-rac-DJzVLTkF.js → rating-input-field-rac-CUUUlgZi.js} +27 -27
- package/dist/component/{rating-input-rac-Cpzm_Rbk.js → rating-input-rac-8yEiqBR5.js} +1 -1
- package/dist/component/{rich-content-rac.module-B8WTFbve.js → rich-content-rac.module-DeKU0pwh.js} +1 -1
- package/dist/component/{rich-text-field-rac-DCiBRkow.js → rich-text-field-rac-Cwd-RWTi.js} +2 -2
- package/dist/component/{rich-text-rac-DiP1GwaU.js → rich-text-rac-C5-jPNYP.js} +1 -1
- package/dist/component/{service-dropdown-rac-D5YlC7mU.js → service-dropdown-rac-DBGAnsut.js} +37 -37
- package/dist/component/{services-multi-choice-rac-D5uwtGzk.js → services-multi-choice-rac-CqEoGsuw.js} +12 -12
- package/dist/component/{signature-rac-g7pBfp7A.js → signature-rac-Cq3y66Cr.js} +36 -36
- package/dist/component/{submit-button-rac-WVz4yWjl.js → submit-button-rac-CKM7yUL4.js} +2 -2
- package/dist/component/{tags-field-rac-BS7qlHyA.js → tags-field-rac-CpJ0O9f_.js} +15 -15
- package/dist/component/{tags-rac-CQGlk8GO.js → tags-rac-BPjw67Po.js} +1 -1
- package/dist/component/{text-area-field-rac-B2rsUGoZ.js → text-area-field-rac-BG6MJuIW.js} +16 -16
- package/dist/component/{text-area-rac-CwJXAFKH.js → text-area-rac-BAS4F4VC.js} +1 -1
- package/dist/component/{text-input-field-rac-CiZ83ULN.js → text-input-field-rac-BhMktcEd.js} +5 -5
- package/dist/component/{text-input-headless-C56J6s10.js → text-input-headless-Bpjd70nh.js} +3 -3
- package/dist/component/{text-input-rac-BMSWPbrZ.js → text-input-rac-Bj21XKGA.js} +1 -1
- package/dist/component/{time-input-rac-DrKC1wiN.js → time-input-rac-DBpRHdnX.js} +12 -12
- package/dist/component/{url-input-field-rac-HPvjYmsV.js → url-input-field-rac-B_EMXVWh.js} +11 -11
- package/dist/component/{url-input-rac-gQIszvK3.js → url-input-rac-D0Ck-9KV.js} +1 -1
- package/dist/component/{use-dropdown-option-class-name-nZCgStzg.js → use-dropdown-option-class-name-CkpHwC6t.js} +21 -21
- package/dist/component/{use-dropdown-trigger-class-name-Ba9Ej9xC.js → use-dropdown-trigger-class-name-DmDwpAVn.js} +2 -2
- package/dist/component/{use-element-state-class-name-CEMjabjh.js → use-element-state-class-name-BrgdwHYP.js} +1 -1
- package/dist/component/{use-hoverable-input-class-name-BSiPBu4i.js → use-hoverable-input-class-name-qVo45l-t.js} +2 -2
- package/dist/component/{use-service-options-base-DSkh5Ayp.js → use-service-options-base-Dlqs4p0Z.js} +1 -1
- package/dist/component/use-text-input-class-name-CP2VJOso.js +6 -0
- package/dist/form.d.ts +12 -2
- package/package.json +2 -2
- package/dist/component/use-text-input-class-name-B2pSCrTD.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-
|
|
11
|
-
import { ListBox as Tt, Button as ve, ListBoxItem as vt, RadioGroup as
|
|
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, R as _t, $ as pt, g as Nt, j as We, i as At, m as yt, k as bt, G as It, u as Lt, l as Ot } from "./form-DtzwuBIo.js";
|
|
10
|
+
import { u as gt } from "./use-element-state-class-name-BrgdwHYP.js";
|
|
11
|
+
import { ListBox as Tt, Button as ve, ListBoxItem as vt, RadioGroup as Rt, RadioField as kt, 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-r0fX50xw.js";
|
|
14
|
+
import { L as ht } from "./field-label-headless-D-kCfg8j.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";
|
|
@@ -47,7 +47,7 @@ const Bt = (e) => {
|
|
|
47
47
|
});
|
|
48
48
|
}, Ze = (e) => {
|
|
49
49
|
var i;
|
|
50
|
-
const { appointmentFieldProps: t } =
|
|
50
|
+
const { appointmentFieldProps: t } = Re(), { isEditor: n, isComposer: a } = De(), s = mt(), r = e || ((i = t == null ? void 0 : t.initialData) == null ? void 0 : i.service);
|
|
51
51
|
if (!(n || a))
|
|
52
52
|
return {
|
|
53
53
|
...s,
|
|
@@ -170,9 +170,9 @@ function Kt(e) {
|
|
|
170
170
|
};
|
|
171
171
|
try {
|
|
172
172
|
const Y = async (ae) => {
|
|
173
|
-
var _,
|
|
173
|
+
var _, p;
|
|
174
174
|
const { startDate: $, endDate: w } = xt(ae, M);
|
|
175
|
-
return (
|
|
175
|
+
return (p = (_ = c.current) == null ? void 0 : _.getAvailabilityDates) == null ? void 0 : p.call(_, {
|
|
176
176
|
serviceId: i,
|
|
177
177
|
fromDate: $,
|
|
178
178
|
toDate: w,
|
|
@@ -247,7 +247,7 @@ const qe = /* @__PURE__ */ Ke({
|
|
|
247
247
|
})
|
|
248
248
|
}
|
|
249
249
|
}, t);
|
|
250
|
-
},
|
|
250
|
+
}, Re = () => $e(qe), Gt = (e, t) => {
|
|
251
251
|
if (e.startOfWeek.getMonth() === e.endOfWeek.getMonth())
|
|
252
252
|
return new Intl.DateTimeFormat(t, {
|
|
253
253
|
month: "long",
|
|
@@ -290,7 +290,7 @@ const qe = /* @__PURE__ */ Ke({
|
|
|
290
290
|
toDate: a
|
|
291
291
|
};
|
|
292
292
|
}, jt = ({ setIsReloadingSlots: e }) => {
|
|
293
|
-
const { appointmentFieldProps: t, appointmentState: n, setAppointmentState: a } =
|
|
293
|
+
const { appointmentFieldProps: t, appointmentState: n, setAppointmentState: a } = Re(), { value: s } = t, { actions: r } = Te();
|
|
294
294
|
P(() => {
|
|
295
295
|
(async () => {
|
|
296
296
|
var l, c;
|
|
@@ -389,11 +389,11 @@ const nn = "SLOT_UNAVAILABLE", an = (e) => {
|
|
|
389
389
|
return !!((a = n.slot) != null && a.startDate) && ne(new Date(n.slot.startDate), e);
|
|
390
390
|
}), mn = () => {
|
|
391
391
|
var Fe;
|
|
392
|
-
const { appointmentFieldProps: e, appointmentState: t, setAppointmentState: n } =
|
|
392
|
+
const { appointmentFieldProps: e, appointmentState: t, setAppointmentState: n } = Re(), { language: a, isEditor: s, isComposer: r } = De(), { t: i } = ut(), { actions: l } = Te(), c = Ze(), [D, u] = j(!1), [S, E] = j(!1), [d, g] = j(), [M, A] = j();
|
|
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: p, currentSlotBulkSize: R, 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), [
|
|
@@ -410,14 +410,14 @@ const nn = "SLOT_UNAVAILABLE", an = (e) => {
|
|
|
410
410
|
const L = f == null ? void 0 : f[U];
|
|
411
411
|
w != null && w.length && n({
|
|
412
412
|
availabilitySlots: w.filter((O) => {
|
|
413
|
-
var
|
|
414
|
-
return ((
|
|
413
|
+
var k;
|
|
414
|
+
return ((k = O == null ? void 0 : O.slot) == null ? void 0 : k.startDate) !== (L == null ? void 0 : L.startDate);
|
|
415
415
|
})
|
|
416
416
|
});
|
|
417
417
|
}), P(() => {
|
|
418
|
-
if (y != null && y.length &&
|
|
418
|
+
if (y != null && y.length && R) {
|
|
419
419
|
const f = en(de(I ?? void 0), y);
|
|
420
|
-
f && f + 1 >
|
|
420
|
+
f && f + 1 > R && n({
|
|
421
421
|
currentSlotBulkSize: f + 1
|
|
422
422
|
});
|
|
423
423
|
} else !(y != null && y.length) && I && (b == null || b(void 0));
|
|
@@ -428,23 +428,23 @@ const nn = "SLOT_UNAVAILABLE", an = (e) => {
|
|
|
428
428
|
]);
|
|
429
429
|
const _e = B(() => ct(a), [
|
|
430
430
|
a
|
|
431
|
-
]), we = J(
|
|
431
|
+
]), we = J(p);
|
|
432
432
|
P(() => {
|
|
433
433
|
const f = we.current;
|
|
434
|
-
we.current =
|
|
434
|
+
we.current = p, !!p && (!f || !ne(f, p)) && g(void 0);
|
|
435
435
|
}, [
|
|
436
|
-
|
|
436
|
+
p
|
|
437
437
|
]);
|
|
438
|
-
const h = B(() => d ?? He(
|
|
438
|
+
const h = B(() => d ?? He(p ?? /* @__PURE__ */ new Date(), _e), [
|
|
439
439
|
d,
|
|
440
|
-
|
|
440
|
+
p,
|
|
441
441
|
_e
|
|
442
442
|
]), Xe = B(() => {
|
|
443
443
|
const f = ge(/* @__PURE__ */ new Date()), L = new Intl.DateTimeFormat(a, {
|
|
444
444
|
weekday: "short"
|
|
445
445
|
}), O = new Intl.DateTimeFormat(a, {
|
|
446
446
|
day: "numeric"
|
|
447
|
-
}),
|
|
447
|
+
}), k = new Intl.DateTimeFormat(a, {
|
|
448
448
|
weekday: "long",
|
|
449
449
|
month: "long",
|
|
450
450
|
day: "numeric"
|
|
@@ -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 = !!p && ne(W, p), rt = ge(W) < f;
|
|
456
456
|
return {
|
|
457
457
|
key: rn(W),
|
|
458
458
|
date: W,
|
|
@@ -462,29 +462,29 @@ const nn = "SLOT_UNAVAILABLE", an = (e) => {
|
|
|
462
462
|
isToday: ne(W, f),
|
|
463
463
|
dayOfMonthLabel: O.format(W),
|
|
464
464
|
weekdayLabel: L.format(W),
|
|
465
|
-
label:
|
|
465
|
+
label: k.format(W),
|
|
466
466
|
availabilityLabel: i("form.appointment.accessibility.calendar.has-availability.aria-label")
|
|
467
467
|
};
|
|
468
468
|
});
|
|
469
469
|
}, [
|
|
470
470
|
h,
|
|
471
|
-
|
|
471
|
+
p,
|
|
472
472
|
$,
|
|
473
473
|
Z,
|
|
474
474
|
X,
|
|
475
475
|
a,
|
|
476
476
|
i
|
|
477
|
-
]),
|
|
477
|
+
]), pe = de(I ?? void 0) || void 0, Ne = B(() => Z || D ? [] : (y ?? []).slice(0, R).flatMap((f) => {
|
|
478
478
|
const { startDate: L, endDate: O } = f.slot ?? {};
|
|
479
479
|
if (!L || !O)
|
|
480
480
|
return [];
|
|
481
|
-
const
|
|
481
|
+
const k = de({
|
|
482
482
|
startDate: L,
|
|
483
483
|
endDate: O
|
|
484
484
|
});
|
|
485
485
|
return [
|
|
486
486
|
{
|
|
487
|
-
key:
|
|
487
|
+
key: k,
|
|
488
488
|
startDate: L,
|
|
489
489
|
endDate: O,
|
|
490
490
|
timeRange: Jt({
|
|
@@ -493,21 +493,21 @@ const nn = "SLOT_UNAVAILABLE", an = (e) => {
|
|
|
493
493
|
locale: a,
|
|
494
494
|
timezone: _
|
|
495
495
|
}),
|
|
496
|
-
isSelected:
|
|
496
|
+
isSelected: k === pe
|
|
497
497
|
}
|
|
498
498
|
];
|
|
499
499
|
}), [
|
|
500
500
|
y,
|
|
501
|
-
|
|
501
|
+
R,
|
|
502
502
|
Z,
|
|
503
503
|
D,
|
|
504
504
|
a,
|
|
505
505
|
_,
|
|
506
|
-
|
|
507
|
-
]), Ae = !D && !!(y != null && y.length) && (
|
|
506
|
+
pe
|
|
507
|
+
]), Ae = !D && !!(y != null && y.length) && (R || 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 || p && ne(f, p))) {
|
|
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
|
+
p,
|
|
540
540
|
K,
|
|
541
541
|
_,
|
|
542
542
|
l,
|
|
@@ -551,7 +551,7 @@ const nn = "SLOT_UNAVAILABLE", an = (e) => {
|
|
|
551
551
|
const L = h, O = ee(h, f * q);
|
|
552
552
|
if (g(O), s || r)
|
|
553
553
|
return;
|
|
554
|
-
const
|
|
554
|
+
const k = ++ce.current;
|
|
555
555
|
E(!0), c == null || c.report({
|
|
556
556
|
action: te.CLICK,
|
|
557
557
|
component: Q.PAGINATION
|
|
@@ -563,13 +563,13 @@ const nn = "SLOT_UNAVAILABLE", an = (e) => {
|
|
|
563
563
|
fromDate: O,
|
|
564
564
|
toDate: sn(ee(O, q - 1))
|
|
565
565
|
}));
|
|
566
|
-
|
|
566
|
+
k === ce.current && n({
|
|
567
567
|
availabilityDates: be
|
|
568
568
|
});
|
|
569
569
|
} catch {
|
|
570
|
-
|
|
570
|
+
k === ce.current && g(L);
|
|
571
571
|
} finally {
|
|
572
|
-
|
|
572
|
+
k === ce.current && E(!1);
|
|
573
573
|
}
|
|
574
574
|
},
|
|
575
575
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
@@ -585,24 +585,24 @@ const nn = "SLOT_UNAVAILABLE", an = (e) => {
|
|
|
585
585
|
]
|
|
586
586
|
), nt = se(
|
|
587
587
|
(f) => {
|
|
588
|
-
const L =
|
|
588
|
+
const L = Ne.find((oe) => oe.key === f);
|
|
589
589
|
if (!L)
|
|
590
590
|
return;
|
|
591
|
-
const { startDate: O, endDate:
|
|
591
|
+
const { startDate: O, endDate: k } = L;
|
|
592
592
|
c == null || c.report({
|
|
593
593
|
action: te.CLICK,
|
|
594
594
|
component: Q.SLOT,
|
|
595
595
|
startTime: new Date(O).valueOf(),
|
|
596
|
-
endTime: new Date(
|
|
596
|
+
endTime: new Date(k).valueOf()
|
|
597
597
|
}), b == null || b({
|
|
598
598
|
startDate: O,
|
|
599
|
-
endDate:
|
|
599
|
+
endDate: k,
|
|
600
600
|
timeZone: _
|
|
601
601
|
});
|
|
602
602
|
},
|
|
603
603
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
604
604
|
[
|
|
605
|
-
|
|
605
|
+
Ne,
|
|
606
606
|
_,
|
|
607
607
|
b,
|
|
608
608
|
c
|
|
@@ -610,7 +610,7 @@ const nn = "SLOT_UNAVAILABLE", an = (e) => {
|
|
|
610
610
|
), at = se(() => {
|
|
611
611
|
if (!Ae)
|
|
612
612
|
return;
|
|
613
|
-
const f =
|
|
613
|
+
const f = R || V;
|
|
614
614
|
c == null || c.report({
|
|
615
615
|
action: te.CLICK,
|
|
616
616
|
component: Q.SHOW_MORE
|
|
@@ -619,7 +619,7 @@ const nn = "SLOT_UNAVAILABLE", an = (e) => {
|
|
|
619
619
|
});
|
|
620
620
|
}, [
|
|
621
621
|
Ae,
|
|
622
|
-
|
|
622
|
+
R,
|
|
623
623
|
c
|
|
624
624
|
]), ot = se(() => A(void 0), []), st = B(() => {
|
|
625
625
|
if (Se)
|
|
@@ -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: Ne,
|
|
639
|
+
selectedSlotKey: pe,
|
|
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: p,
|
|
657
657
|
locale: a,
|
|
658
658
|
timezone: _
|
|
659
659
|
}),
|
|
@@ -674,13 +674,13 @@ const nn = "SLOT_UNAVAILABLE", an = (e) => {
|
|
|
674
674
|
if (typeof e > "u")
|
|
675
675
|
throw new Error("Appointment parts must be used inside an <Appointment> component");
|
|
676
676
|
return e;
|
|
677
|
-
},
|
|
677
|
+
}, ke = () => {
|
|
678
678
|
const { disabled: e, readOnly: t } = re();
|
|
679
679
|
return !!e || !!t;
|
|
680
680
|
}, C = ({ children: e, className: t }) => {
|
|
681
681
|
const { days: n, selectDate: a, weekRangeLabel: s } = F(), r = T(e, C.PreviousWeek), i = T(e, C.Heading), l = T(e, C.NextWeek), c = T(e, C.Day) ?? /* @__PURE__ */ o.createElement(C.Day, null), D = B(() => n.filter((d) => d.isSelected).map((d) => d.key), [
|
|
682
682
|
n
|
|
683
|
-
]), u =
|
|
683
|
+
]), u = ke(), S = B(() => n.filter((d) => u || d.isDisabled).map((d) => d.key), [
|
|
684
684
|
n,
|
|
685
685
|
u
|
|
686
686
|
]), E = (d) => {
|
|
@@ -705,7 +705,7 @@ const nn = "SLOT_UNAVAILABLE", an = (e) => {
|
|
|
705
705
|
day: d
|
|
706
706
|
}))));
|
|
707
707
|
}, un = ({ children: e, className: t }) => {
|
|
708
|
-
const { changeWeek: n, canGoToPreviousWeek: a, previousWeekLabel: s, nextWeekLabel: r } = F(), i =
|
|
708
|
+
const { changeWeek: n, canGoToPreviousWeek: a, previousWeekLabel: s, nextWeekLabel: r } = F(), i = ke(), l = J(null), c = J(!1);
|
|
709
709
|
return P(() => {
|
|
710
710
|
var S, E, d;
|
|
711
711
|
if (a || !c.current)
|
|
@@ -729,7 +729,7 @@ const nn = "SLOT_UNAVAILABLE", an = (e) => {
|
|
|
729
729
|
}
|
|
730
730
|
}, e ?? "‹");
|
|
731
731
|
}, dn = ({ children: e, className: t }) => {
|
|
732
|
-
const { changeWeek: n, nextWeekLabel: a } = F(), s =
|
|
732
|
+
const { changeWeek: n, nextWeekLabel: a } = F(), s = ke();
|
|
733
733
|
return /* @__PURE__ */ o.createElement(ve, {
|
|
734
734
|
className: t,
|
|
735
735
|
"aria-label": a,
|
|
@@ -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 = (
|
|
775
|
+
var p, R, G;
|
|
776
|
+
(G = (R = (p = H.current) == null ? void 0 : p.querySelectorAll(Ye)) == null ? void 0 : R[_]) == null || G.focus();
|
|
777
777
|
};
|
|
778
778
|
return ft(() => {
|
|
779
779
|
var G, le;
|
|
@@ -781,8 +781,8 @@ const Ye = 'input[type="radio"]', fe = ({ children: e, className: t, ...n }) =>
|
|
|
781
781
|
w(0);
|
|
782
782
|
return;
|
|
783
783
|
}
|
|
784
|
-
const
|
|
785
|
-
|
|
784
|
+
const p = Array.from(((le = document.getElementById(I)) == null ? void 0 : le.querySelectorAll('[role="option"]')) ?? []), R = p.find((K) => K.getAttribute("aria-selected") === "true") ?? p.find((K) => K.getAttribute("aria-disabled") !== "true");
|
|
785
|
+
R == null || R.focus();
|
|
786
786
|
}, d), P(() => {
|
|
787
787
|
S !== void 0 && (w(S), E());
|
|
788
788
|
}, [
|
|
@@ -791,7 +791,7 @@ const Ye = 'input[type="radio"]', fe = ({ children: e, className: t, ...n }) =>
|
|
|
791
791
|
]), /* @__PURE__ */ o.createElement(o.Fragment, null, /* @__PURE__ */ o.createElement("div", {
|
|
792
792
|
role: "status",
|
|
793
793
|
style: Ge
|
|
794
|
-
}, r.length > 0 ? c : void 0), /* @__PURE__ */ o.createElement(
|
|
794
|
+
}, r.length > 0 ? c : void 0), /* @__PURE__ */ o.createElement(Rt, {
|
|
795
795
|
ref: H,
|
|
796
796
|
className: t,
|
|
797
797
|
value: i ?? null,
|
|
@@ -809,7 +809,7 @@ const Ye = 'input[type="radio"]', fe = ({ children: e, className: t, ...n }) =>
|
|
|
809
809
|
}))));
|
|
810
810
|
}, En = ({ children: e, className: t, ...n }) => {
|
|
811
811
|
const { slot: a } = n;
|
|
812
|
-
return /* @__PURE__ */ o.createElement(
|
|
812
|
+
return /* @__PURE__ */ o.createElement(kt, {
|
|
813
813
|
value: a.key,
|
|
814
814
|
"aria-label": a.timeRange
|
|
815
815
|
}, /* @__PURE__ */ o.createElement(Mt, {
|
|
@@ -865,7 +865,7 @@ const m = ({ children: e, className: t }) => {
|
|
|
865
865
|
hasTimezoneNote: !!E,
|
|
866
866
|
hasDateTitle: !!g
|
|
867
867
|
}), u, A)));
|
|
868
|
-
},
|
|
868
|
+
}, pn = ({ 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
|
+
}, Nn = ({ 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 = pn;
|
|
920
|
+
m.Notification = Nn;
|
|
921
921
|
m.Dates = C;
|
|
922
922
|
m.Timezone = An;
|
|
923
923
|
m.Format = yn;
|
|
@@ -926,14 +926,14 @@ 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",
|
|
929
|
+
const Ln = "_appointment_ig6bz_1", On = "_dates_ig6bz_5", gn = "_weekHeading_ig6bz_27", Tn = "_weekButton_ig6bz_37", vn = "_previousWeek_ig6bz_69", Rn = "_nextWeek_ig6bz_73", kn = "_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", N = {
|
|
930
930
|
appointment: Ln,
|
|
931
931
|
dates: On,
|
|
932
932
|
weekHeading: gn,
|
|
933
933
|
weekButton: Tn,
|
|
934
934
|
previousWeek: vn,
|
|
935
|
-
nextWeek:
|
|
936
|
-
day:
|
|
935
|
+
nextWeek: Rn,
|
|
936
|
+
day: kn,
|
|
937
937
|
weekdayLabel: Mn,
|
|
938
938
|
dayNumber: wn,
|
|
939
939
|
indicator: Fn,
|
|
@@ -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: N.slot,
|
|
954
|
+
selected: N.slotSelected,
|
|
955
|
+
hover: N.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, N.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(pt, ue.requiredMark)
|
|
967
967
|
})), /* @__PURE__ */ o.createElement(m.Loader, {
|
|
968
|
-
className:
|
|
968
|
+
className: N.loader
|
|
969
969
|
}), /* @__PURE__ */ o.createElement(m.Dates, {
|
|
970
|
-
className: v(
|
|
970
|
+
className: v(Nt, N.dates)
|
|
971
971
|
}, /* @__PURE__ */ o.createElement(m.Dates.PreviousWeek, {
|
|
972
|
-
className: v(me,
|
|
972
|
+
className: v(me, N.weekButton, N.previousWeek)
|
|
973
973
|
}, /* @__PURE__ */ o.createElement(he, null)), /* @__PURE__ */ o.createElement(m.Dates.Heading, {
|
|
974
|
-
className:
|
|
974
|
+
className: N.weekHeading
|
|
975
975
|
}), /* @__PURE__ */ o.createElement(m.Dates.NextWeek, {
|
|
976
|
-
className: v(me,
|
|
976
|
+
className: v(me, N.weekButton, N.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, N.day)
|
|
979
979
|
}, (t) => /* @__PURE__ */ o.createElement(o.Fragment, null, /* @__PURE__ */ o.createElement("span", {
|
|
980
|
-
className:
|
|
980
|
+
className: N.weekdayLabel
|
|
981
981
|
}, t.weekdayLabel), /* @__PURE__ */ o.createElement("span", {
|
|
982
|
-
className: v(Ce.dayNumber,
|
|
982
|
+
className: v(Ce.dayNumber, N.dayNumber)
|
|
983
983
|
}, t.dayOfMonthLabel, /* @__PURE__ */ o.createElement("span", {
|
|
984
|
-
className:
|
|
984
|
+
className: N.indicator
|
|
985
985
|
}))))), /* @__PURE__ */ o.createElement(m.Timezone, {
|
|
986
|
-
className: v(We,
|
|
986
|
+
className: v(We, N.hint)
|
|
987
987
|
}), /* @__PURE__ */ o.createElement(m.Format, {
|
|
988
|
-
className: v(We,
|
|
988
|
+
className: v(We, N.hint)
|
|
989
989
|
}), /* @__PURE__ */ o.createElement(m.DateTitle, {
|
|
990
|
-
className: v(At,
|
|
990
|
+
className: v(At, N.dateTitle)
|
|
991
991
|
}), /* @__PURE__ */ o.createElement(m.Slots, {
|
|
992
|
-
className: v(yt,
|
|
992
|
+
className: v(yt, N.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: N.notification
|
|
1000
1000
|
}), /* @__PURE__ */ o.createElement(m.ShowMoreSlots, {
|
|
1001
|
-
className: v(bt, me,
|
|
1001
|
+
className: v(bt, me, N.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-DaDoExJQ.js → bookings-login-bar-rac-BiPklGE_.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, P as p } from "./form-DtzwuBIo.js";
|
|
4
|
+
import { Button as L } 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(L, {
|
|
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(p, 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,
|
|
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, $ as oi, s as ui, aw as ci, G as fi, u as li, r as _i } from "./form-DtzwuBIo.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-r0fX50xw.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-iyypwAQL.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-BrgdwHYP.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-DtzwuBIo.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-r0fX50xw.js";
|
|
7
|
+
import { L as te } from "./field-label-headless-D-kCfg8j.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-CkkSPle4.js → checkbox-group-field-rac-_Fkre79S.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-ChLT0zKA.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 { R as i, $ as E, o as p, q as C, G as O, u as _, p as R } from "./form-DtzwuBIo.js";
|
|
9
9
|
import { o as l } from "./options-rac.module-_THNq6Qq.js";
|
|
10
|
-
import { u as
|
|
11
|
-
import { u as
|
|
10
|
+
import { u as I } from "./use-element-state-class-name-BrgdwHYP.js";
|
|
11
|
+
import { u as L } from "./use-text-input-class-name-CP2VJOso.js";
|
|
12
12
|
const u = ({ content: o, locale: r }) => /* @__PURE__ */ e.createElement(m, {
|
|
13
13
|
content: o,
|
|
14
14
|
locale: r
|
|
15
15
|
}), k = () => {
|
|
16
|
-
const o =
|
|
17
|
-
globalClasses:
|
|
16
|
+
const o = I({
|
|
17
|
+
globalClasses: R,
|
|
18
18
|
moduleClasses: c
|
|
19
|
-
}), r =
|
|
19
|
+
}), r = L();
|
|
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, {
|