@wix/form-elements 1.63.0 → 1.64.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/component/{appointment-rac-B1VVk_Ui.js → appointment-rac-DojiZqx9.js} +35 -35
- package/dist/component/{bookings-address-rac-IQeHFdHT.js → bookings-address-rac-Bm_lQchD.js} +1 -1
- package/dist/component/{bookings-email-rac-z26A790r.js → bookings-email-rac-vwuy0kW8.js} +1 -1
- package/dist/component/{bookings-first-name-rac-Djf0GPP4.js → bookings-first-name-rac-BbWuLoeg.js} +1 -1
- package/dist/component/{bookings-header-rac-CXOzAOpz.js → bookings-header-rac-DVknNH29.js} +1 -1
- package/dist/component/{bookings-last-name-rac-CbB8alM9.js → bookings-last-name-rac-BnT3Cq0b.js} +1 -1
- package/dist/component/{bookings-login-bar-rac-CXrLx7Pn.js → bookings-login-bar-rac-DKi-VAXc.js} +5 -5
- package/dist/component/{bookings-phone-rac-DGYx7h5g.js → bookings-phone-rac-Bfy8rheB.js} +1 -1
- package/dist/component/{bookings-rich-text-rac-viJG57XF.js → bookings-rich-text-rac-DGiBDcXw.js} +1 -1
- package/dist/component/{checkbox-field-rac-e-RAmupX.js → checkbox-field-rac-CYADRY54.js} +5 -5
- package/dist/component/checkbox-group-field-headless-BDAFpX5F.js +210 -0
- package/dist/component/checkbox-group-field-rac-2YUsOmDI.js +40 -0
- package/dist/component/{checkbox-group-rac-CDfDTWqz.js → checkbox-group-rac-CQf1C9H5.js} +1 -1
- package/dist/component/{checkbox-rac-BRBKYD_5.js → checkbox-rac-Bjv8jZjs.js} +1 -1
- package/dist/component/{contacts-address-rac-BtWWQi77.js → contacts-address-rac-BBTiEec9.js} +1 -1
- package/dist/component/{contacts-birthdate-rac-DaEUXJTf.js → contacts-birthdate-rac-XReeFHVW.js} +1 -1
- package/dist/component/{contacts-company-rac-IgRyjtcM.js → contacts-company-rac-B-fUQszu.js} +1 -1
- package/dist/component/{contacts-email-rac-BS1MDrMk.js → contacts-email-rac-DBtcCcsV.js} +1 -1
- package/dist/component/{contacts-first-name-rac-BAvXypDF.js → contacts-first-name-rac-mkwU3706.js} +1 -1
- package/dist/component/{contacts-last-name-rac-C289RYPl.js → contacts-last-name-rac-DY5N-AZx.js} +1 -1
- package/dist/component/{contacts-phone-rac-DIpyskam.js → contacts-phone-rac-Ce1rMz_z.js} +1 -1
- package/dist/component/{contacts-position-rac-nPeh3lKU.js → contacts-position-rac-B65H8PDu.js} +1 -1
- package/dist/component/contacts-subscribe-rac-BxO8rIyL.js +13 -0
- package/dist/component/{contacts-tax-id-rac-C4WB-SR0.js → contacts-tax-id-rac-Jtt0ySK2.js} +1 -1
- package/dist/component/{date-availability-HHjPx4Uv.js → date-availability-B8UwvTJa.js} +1 -1
- package/dist/component/{date-input-field-rac-GFgFcpX2.js → date-input-field-rac-RL2a0xoD.js} +33 -33
- package/dist/component/{date-input-rac-B9BUEIA-.js → date-input-rac-ak3G7V07.js} +1 -1
- package/dist/component/{date-picker-field-rac-BfjYIIuY.js → date-picker-field-rac-SL_Roltf.js} +31 -31
- package/dist/component/{date-picker-rac-Bd2UN0ZF.js → date-picker-rac-ByrM0YIX.js} +1 -1
- package/dist/component/{date-time-input-field-rac-CAXnxLQP.js → date-time-input-field-rac-DOE7xcKi.js} +36 -36
- package/dist/component/{date-time-input-rac-BuJ3Awlh.js → date-time-input-rac-BA-GyrAc.js} +1 -1
- package/dist/component/{dext-checkbox-group-rac-DKp4cBVa.js → dext-checkbox-group-rac-EwUnBO80.js} +2 -2
- package/dist/component/{dext-checkbox-rac-BMu_k06A.js → dext-checkbox-rac-CIRKi4B5.js} +1 -1
- package/dist/component/{dext-date-picker-rac-L3sdldhT.js → dext-date-picker-rac-BYO_Q1zM.js} +1 -1
- package/dist/component/{dext-date-time-input-rac-UmabFzDN.js → dext-date-time-input-rac-BOahPeaH.js} +1 -1
- package/dist/component/{dext-dropdown-rac-DbjgYaG-.js → dext-dropdown-rac-sTD_r-0H.js} +1 -1
- package/dist/component/{dext-email-rac-rNudrOOK.js → dext-email-rac-e-2_h3he.js} +1 -1
- package/dist/component/{dext-number-input-rac-hw1FTrJL.js → dext-number-input-rac-D6LACzWl.js} +1 -1
- package/dist/component/{dext-phone-rac-DrZ_Vwv2.js → dext-phone-rac-kUycy5Od.js} +1 -1
- package/dist/component/{dext-radio-group-rac-DAt2ax-I.js → dext-radio-group-rac-DPD2UkrV.js} +2 -2
- package/dist/component/{dext-rating-input-rac-BW2Ike11.js → dext-rating-input-rac-DUsnrl9W.js} +1 -1
- package/dist/component/{dext-tags-rac-DDzwlKrR.js → dext-tags-rac-D6z69HuO.js} +2 -2
- package/dist/component/{dext-text-area-rac-D0xf4z3z.js → dext-text-area-rac-C-DVtFJ1.js} +1 -1
- package/dist/component/{dext-text-input-rac-Da04OLmq.js → dext-text-input-rac-CIa2MdC6.js} +1 -1
- package/dist/component/{dext-url-input-rac-B-g4xTqh.js → dext-url-input-rac-8rVVW5us.js} +1 -1
- package/dist/component/{donation-rac-gKeq72jg.js → donation-rac-BjmSBabc.js} +60 -60
- package/dist/component/{dropdown-field-headless-Js5TxdU4.js → dropdown-field-headless-DReo519l.js} +16 -16
- package/dist/component/{dropdown-field-rac-BDxcvX00.js → dropdown-field-rac-DzrjA2O6.js} +7 -7
- package/dist/component/{dropdown-rac-B5UHNzV-.js → dropdown-rac-CS7oLTp_.js} +1 -1
- package/dist/component/{ecom-address-rac-0zm4bX37.js → ecom-address-rac-EIb88J_6.js} +1 -1
- package/dist/component/{ecom-subscription-checkbox-rac-DCXoI33l.js → ecom-subscription-checkbox-rac-CE0Ks6qS.js} +5 -5
- package/dist/component/{email-input-field-rac-svf6hUHF.js → email-input-field-rac-BScZxYHw.js} +47 -47
- package/dist/component/{events-repeater-rac-DMIqzuVK.js → events-repeater-rac-Y0rH2Jli.js} +45 -45
- package/dist/component/{events-rsvp-rac-B_YD4ckO.js → events-rsvp-rac-BiAYVv_b.js} +12 -12
- package/dist/component/{field-error-headless-DTKnr5Zx.js → field-error-headless-DrnFrGun.js} +3 -3
- package/dist/component/{field-label-headless-DV4aNd5Y.js → field-label-headless-BIYf1BIh.js} +4 -4
- package/dist/component/field-rac.module-CWkwwhq4.js +21 -0
- package/dist/component/{file-upload-rac-lGKJjG3m.js → file-upload-rac-br--tZLp.js} +73 -73
- package/dist/component/{fixed-payment-rac-BVS6glii.js → fixed-payment-rac-XEtrsaMy.js} +11 -11
- package/dist/component/{form-DzjdnO7t.js → form-9yjqDnxY.js} +1563 -1556
- package/dist/component/form-element-classes-KRzHUNLu.js +57 -0
- package/dist/component/form.css +1 -1
- package/dist/component/form.js +1 -1
- package/dist/component/{header-field-rac-tzBH-8Yh.js → header-field-rac-CLELgzqY.js} +7 -7
- package/dist/component/{header-rac-6thQAvVF.js → header-rac-D8KGkVVp.js} +1 -1
- package/dist/component/{image-choice-rac-Dx1b-saW.js → image-choice-rac-Cl09CLP4.js} +14 -14
- package/dist/component/{index-DIP7KB8P.js → index-C4y71e1i.js} +2 -2
- package/dist/component/{index-Lnx0829a.js → index-PHkE0Ru4.js} +4 -4
- package/dist/component/{isObjectLike-B_1KizZV.js → isObjectLike-srCDplej.js} +1 -1
- package/dist/component/{multiline-address-field-rac-BY2SUp2d.js → multiline-address-field-rac-CsBLI9y-.js} +80 -80
- package/dist/component/{multiline-address-rac-BL8Yp4F0.js → multiline-address-rac-DFDPFfXh.js} +1 -1
- package/dist/component/{number-input-field-rac-x0yFmXbe.js → number-input-field-rac-DZRR7gdt.js} +16 -16
- package/dist/component/{number-input-rac-pJXc2YsD.js → number-input-rac-BCS5lkff.js} +1 -1
- package/dist/component/{password-rac-B4XCP64b.js → password-rac-ClDGgR3E.js} +16 -16
- package/dist/component/{payment-input-rac-CZdOAjK4.js → payment-input-rac-COydWmUE.js} +28 -28
- package/dist/component/{phone-input-field-rac-DO_V5Z_T.js → phone-input-field-rac-DYCibqe1.js} +42 -42
- package/dist/component/{phone-rac-D16nLDjP.js → phone-rac-BS-dmWkJ.js} +1 -1
- package/dist/component/{product-list-rac-DER8gVqy.js → product-list-rac-hxOhaA-r.js} +75 -75
- package/dist/component/quiz-radio-group-rac-BT-YZO2Q.js +13 -0
- package/dist/component/{radio-group-field-rac-Dt2pU0VV.js → radio-group-field-rac-DKqWnMBJ.js} +3 -3
- package/dist/component/{radio-group-field-rac.module--sO0VqCA.js → radio-group-field-rac.module-BwUynK_5.js} +7 -7
- package/dist/component/{radio-group-rac-CqCmtkNQ.js → radio-group-rac-DHURQZKK.js} +1 -1
- package/dist/component/{rating-input-field-rac-xDrHHcL2.js → rating-input-field-rac-CZRdSVrf.js} +30 -30
- package/dist/component/{rating-input-rac-Bo5E9N87.js → rating-input-rac-BaH52DYm.js} +1 -1
- package/dist/component/{rich-content-rac.module-CJXbNca9.js → rich-content-rac.module-ILBfxEmN.js} +1 -1
- package/dist/component/{rich-text-field-rac-CkV0Z9F-.js → rich-text-field-rac-B58q8Is7.js} +5 -5
- package/dist/component/{rich-text-rac-59DbKpXz.js → rich-text-rac-DGbZh1eX.js} +1 -1
- package/dist/component/{service-dropdown-rac-BLnflnUr.js → service-dropdown-rac-DUiNIbdv.js} +45 -45
- package/dist/component/services-multi-choice-rac-B7y9s2l8.js +76 -0
- package/dist/component/{signature-rac-Bb5IaS28.js → signature-rac-CydpvQJZ.js} +25 -25
- package/dist/component/{submit-button-rac-Bjyi8sUA.js → submit-button-rac-OO53h4H8.js} +6 -6
- package/dist/component/{tags-field-rac-C_VO3_69.js → tags-field-rac-eX3d3JEH.js} +44 -44
- package/dist/component/{tags-rac-CKiutCWe.js → tags-rac-CdIB_48Z.js} +1 -1
- package/dist/component/{text-area-field-rac-Cg-vIhFe.js → text-area-field-rac-Bir5Q7gz.js} +17 -17
- package/dist/component/{text-area-rac-tMFx38UD.js → text-area-rac-Ct1UNU04.js} +1 -1
- package/dist/component/{text-input-field-rac-CgN_2hOD.js → text-input-field-rac-onGUXC9J.js} +6 -6
- package/dist/component/{text-input-headless-CkhvKrFp.js → text-input-headless-Bs9m7QFg.js} +11 -11
- package/dist/component/{text-input-rac-BsyBgd3b.js → text-input-rac-DK4nEw4D.js} +1 -1
- package/dist/component/{time-input-rac-BxRVJtHE.js → time-input-rac-BCG9ktFa.js} +35 -35
- package/dist/component/{url-input-field-rac-B_1yVniS.js → url-input-field-rac-mUkrVTcL.js} +24 -24
- package/dist/component/{url-input-rac-D8VrKYVe.js → url-input-rac-Cl7LFYlr.js} +1 -1
- package/dist/component/{use-service-options-base-Ci9gIluo.js → use-service-options-base-BYVuKRj2.js} +6 -6
- package/dist/form.d.ts +3 -1
- package/package.json +2 -2
- package/dist/component/checkbox-group-field-headless-Cvia4lL6.js +0 -204
- package/dist/component/checkbox-group-field-rac-BXxk90dk.js +0 -33
- package/dist/component/contacts-subscribe-rac-Ci5OLk68.js +0 -13
- package/dist/component/field-rac.module-DtugsLiL.js +0 -21
- package/dist/component/form-element-classes-Bi-nNM8q.js +0 -55
- package/dist/component/quiz-radio-group-rac-BgTmHHi4.js +0 -13
- package/dist/component/services-multi-choice-rac-C-bFjwx8.js +0 -76
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import o, { useRef as J, useState as j, useEffect as Y, createContext as Ge, useContext as Ze, useMemo as P, useCallback as ie } from "react";
|
|
2
2
|
import { RicosViewer as lt } from "@wix/ricos/viewer";
|
|
3
3
|
import T from "classnames";
|
|
4
|
-
import { ab as ce, aa as ct,
|
|
4
|
+
import { ab as ce, aa as ct, ae as ke, ad as mt, c as ut, as as dt, ar as ft, ai as me, af as Se, ak as Dt, ah as Et, F as St } from "./form-9yjqDnxY.js";
|
|
5
5
|
import { C as Be } from "./chevron-down-icon-CcpVm6B-.js";
|
|
6
6
|
import { E as pt } from "./error-icon-hZxQ6DEy.js";
|
|
7
|
-
import { s as fe } from "./field-rac.module-
|
|
8
|
-
import {
|
|
7
|
+
import { s as fe } from "./field-rac.module-CWkwwhq4.js";
|
|
8
|
+
import { t as De, J as yt, u as Ie, i as Lt, j as Oe, h as _t, v as Nt, n as At } from "./form-element-classes-KRzHUNLu.js";
|
|
9
9
|
import { ListBox as bt, Button as Re, ListBoxItem as gt, RadioGroup as It, RadioField as Ot, RadioButton as Tt } from "react-aria-components";
|
|
10
|
-
import { f as
|
|
11
|
-
import { D as
|
|
12
|
-
import { L as kt } from "./field-label-headless-
|
|
10
|
+
import { f as v, a as le } from "./find-child-C60k4CxG.js";
|
|
11
|
+
import { D as vt, E as wt } from "./field-error-headless-DrnFrGun.js";
|
|
12
|
+
import { L as kt } from "./field-label-headless-BIYf1BIh.js";
|
|
13
13
|
import { F as Rt } from "./fieldset-headless-CD3fds9J.js";
|
|
14
14
|
import { g as ht } from "./get-first-day-of-the-week-DvnsxYhQ.js";
|
|
15
15
|
import "date-fns";
|
|
@@ -56,10 +56,10 @@ const Mt = (e) => {
|
|
|
56
56
|
}))
|
|
57
57
|
};
|
|
58
58
|
};
|
|
59
|
-
var
|
|
59
|
+
var ve;
|
|
60
60
|
(function(e) {
|
|
61
61
|
e.UNDEFINED = "UNDEFINED", e.OWNER_BUSINESS = "OWNER_BUSINESS", e.OWNER_CUSTOM = "OWNER_CUSTOM", e.CUSTOM = "CUSTOM";
|
|
62
|
-
})(
|
|
62
|
+
})(ve || (ve = {}));
|
|
63
63
|
var Ue;
|
|
64
64
|
(function(e) {
|
|
65
65
|
e.UNKNOWN_REQUESTED_GENDER = "UNKNOWN_REQUESTED_GENDER", e.ANY_MALE = "ANY_MALE", e.ANY_FEMALE = "ANY_FEMALE";
|
|
@@ -131,7 +131,7 @@ const Wt = (e) => {
|
|
|
131
131
|
startDate: c.toISOString(),
|
|
132
132
|
endDate: d.toISOString(),
|
|
133
133
|
location: {
|
|
134
|
-
locationType:
|
|
134
|
+
locationType: ve.CUSTOM
|
|
135
135
|
}
|
|
136
136
|
},
|
|
137
137
|
bookable: !0,
|
|
@@ -162,20 +162,20 @@ function zt(e) {
|
|
|
162
162
|
return Y(() => {
|
|
163
163
|
u && !s && !r && c && (async () => {
|
|
164
164
|
var W, N, A, K, B;
|
|
165
|
-
const
|
|
165
|
+
const w = je(), I = {
|
|
166
166
|
currentSlotBulkSize: V,
|
|
167
|
-
timezone:
|
|
167
|
+
timezone: w,
|
|
168
168
|
dataStatus: z.LOADING
|
|
169
169
|
};
|
|
170
170
|
try {
|
|
171
171
|
const U = async (oe) => {
|
|
172
172
|
var k, p;
|
|
173
|
-
const { startDate: se, endDate: $ } = Ut(oe,
|
|
173
|
+
const { startDate: se, endDate: $ } = Ut(oe, w);
|
|
174
174
|
return (p = (k = l.current) == null ? void 0 : k.getAvailabilityDates) == null ? void 0 : p.call(k, {
|
|
175
175
|
serviceId: u,
|
|
176
176
|
fromDate: se,
|
|
177
177
|
toDate: $,
|
|
178
|
-
timeZone:
|
|
178
|
+
timeZone: w
|
|
179
179
|
});
|
|
180
180
|
};
|
|
181
181
|
if (I.availabilityDates = await U(2), (W = I.availabilityDates) != null && W.length || (I.availabilityDates = await U(6)), !((N = I.availabilityDates) != null && N.length)) {
|
|
@@ -193,7 +193,7 @@ function zt(e) {
|
|
|
193
193
|
}
|
|
194
194
|
I.selectedDate = xt(I.availabilityDates), I.selectedDate && (I.availabilitySlots = await ((K = (A = l.current) == null ? void 0 : A.getAvailabilitySlots) == null ? void 0 : K.call(A, {
|
|
195
195
|
serviceId: u,
|
|
196
|
-
timeZone:
|
|
196
|
+
timeZone: w,
|
|
197
197
|
selectedDate: I.selectedDate
|
|
198
198
|
}))), E == null || E.report({
|
|
199
199
|
action: te.LOAD,
|
|
@@ -365,7 +365,7 @@ const Xt = "SLOT_UNAVAILABLE", Ke = [], en = (e) => {
|
|
|
365
365
|
u,
|
|
366
366
|
i
|
|
367
367
|
]), a ? s : Ke;
|
|
368
|
-
}, q = 7,
|
|
368
|
+
}, q = 7, we = (e) => {
|
|
369
369
|
const t = new Date(e);
|
|
370
370
|
return t.setHours(0, 0, 0, 0), t;
|
|
371
371
|
}, nn = (e) => {
|
|
@@ -375,7 +375,7 @@ const Xt = "SLOT_UNAVAILABLE", Ke = [], en = (e) => {
|
|
|
375
375
|
const n = new Date(e);
|
|
376
376
|
return n.setDate(n.getDate() + t), n;
|
|
377
377
|
}, He = (e, t) => {
|
|
378
|
-
const n =
|
|
378
|
+
const n = we(e), a = (n.getDay() - t + q) % q;
|
|
379
379
|
return ee(n, -a);
|
|
380
380
|
}, an = (e) => `${e.getFullYear()}-${String(e.getMonth() + 1).padStart(2, "0")}-${String(e.getDate()).padStart(2, "0")}`, on = (e, t, n) => {
|
|
381
381
|
const a = new Intl.DateTimeFormat(n, {
|
|
@@ -388,7 +388,7 @@ const Xt = "SLOT_UNAVAILABLE", Ke = [], en = (e) => {
|
|
|
388
388
|
return !!((a = n.slot) != null && a.startDate) && ne(new Date(n.slot.startDate), e);
|
|
389
389
|
}), rn = () => {
|
|
390
390
|
var We;
|
|
391
|
-
const { appointmentFieldProps: e, appointmentState: t, setAppointmentState: n } = he(), { language: a, isEditor: s, isComposer: r, isMobile: u } = ce(), { t: i } = dt(), { actions: l } = ke(), c = qe(), [d, S] = j(!1), [E, f] = j(!1), [O,
|
|
391
|
+
const { appointmentFieldProps: e, appointmentState: t, setAppointmentState: n } = he(), { language: a, isEditor: s, isComposer: r, isMobile: u } = ce(), { t: i } = dt(), { actions: l } = ke(), c = qe(), [d, S] = j(!1), [E, f] = j(!1), [O, w] = j(), [I, W] = j();
|
|
392
392
|
Zt({
|
|
393
393
|
setIsReloadingSlots: S
|
|
394
394
|
});
|
|
@@ -430,7 +430,7 @@ const Xt = "SLOT_UNAVAILABLE", Ke = [], en = (e) => {
|
|
|
430
430
|
]), Ce = J(L);
|
|
431
431
|
Y(() => {
|
|
432
432
|
const D = Ce.current;
|
|
433
|
-
Ce.current = L, !!L && (!D || !ne(D, L)) &&
|
|
433
|
+
Ce.current = L, !!L && (!D || !ne(D, L)) && w(void 0);
|
|
434
434
|
}, [
|
|
435
435
|
L
|
|
436
436
|
]);
|
|
@@ -439,7 +439,7 @@ const Xt = "SLOT_UNAVAILABLE", Ke = [], en = (e) => {
|
|
|
439
439
|
L,
|
|
440
440
|
ye
|
|
441
441
|
]), et = P(() => {
|
|
442
|
-
const D =
|
|
442
|
+
const D = we(/* @__PURE__ */ new Date()), b = new Intl.DateTimeFormat(a, {
|
|
443
443
|
weekday: u ? "narrow" : "short"
|
|
444
444
|
}), g = new Intl.DateTimeFormat(a, {
|
|
445
445
|
day: "numeric"
|
|
@@ -451,7 +451,7 @@ const Xt = "SLOT_UNAVAILABLE", Ke = [], en = (e) => {
|
|
|
451
451
|
return Array.from({
|
|
452
452
|
length: q
|
|
453
453
|
}, (re, be) => {
|
|
454
|
-
const x = ee(M, be), ge = !!L && ne(x, L), it =
|
|
454
|
+
const x = ee(M, be), ge = !!L && ne(x, L), it = we(x) < D;
|
|
455
455
|
return {
|
|
456
456
|
key: an(x),
|
|
457
457
|
date: x,
|
|
@@ -549,7 +549,7 @@ const Xt = "SLOT_UNAVAILABLE", Ke = [], en = (e) => {
|
|
|
549
549
|
if (D < 0 && !Ae)
|
|
550
550
|
return;
|
|
551
551
|
const b = M, g = ee(M, D * q);
|
|
552
|
-
if (
|
|
552
|
+
if (w(g), s || r)
|
|
553
553
|
return;
|
|
554
554
|
const h = ++de.current;
|
|
555
555
|
f(!0), c == null || c.report({
|
|
@@ -567,7 +567,7 @@ const Xt = "SLOT_UNAVAILABLE", Ke = [], en = (e) => {
|
|
|
567
567
|
availabilityDates: be
|
|
568
568
|
});
|
|
569
569
|
} catch {
|
|
570
|
-
h === de.current &&
|
|
570
|
+
h === de.current && w(b);
|
|
571
571
|
} finally {
|
|
572
572
|
h === de.current && f(!1);
|
|
573
573
|
}
|
|
@@ -678,7 +678,7 @@ const Xt = "SLOT_UNAVAILABLE", Ke = [], en = (e) => {
|
|
|
678
678
|
const { disabled: e, readOnly: t } = me();
|
|
679
679
|
return !!e || !!t;
|
|
680
680
|
}, C = ({ children: e, className: t }) => {
|
|
681
|
-
const { days: n, selectDate: a, weekRangeLabel: s } = F(), r =
|
|
681
|
+
const { days: n, selectDate: a, weekRangeLabel: s } = F(), r = v(e, C.PreviousWeek), u = v(e, C.Heading), i = v(e, C.NextWeek), l = v(e, C.Day) ?? /* @__PURE__ */ o.createElement(C.Day, null), c = P(() => n.filter((f) => f.isSelected).map((f) => f.key), [
|
|
682
682
|
n
|
|
683
683
|
]), d = Fe(), S = P(() => n.filter((f) => d || f.isDisabled).map((f) => f.key), [
|
|
684
684
|
n,
|
|
@@ -688,8 +688,8 @@ const Xt = "SLOT_UNAVAILABLE", Ke = [], en = (e) => {
|
|
|
688
688
|
return;
|
|
689
689
|
const [O] = [
|
|
690
690
|
...f
|
|
691
|
-
],
|
|
692
|
-
|
|
691
|
+
], w = n.find(({ key: I }) => I === O);
|
|
692
|
+
w && a(w.date);
|
|
693
693
|
};
|
|
694
694
|
return /* @__PURE__ */ o.createElement("div", {
|
|
695
695
|
className: t
|
|
@@ -768,7 +768,7 @@ C.Heading = mn;
|
|
|
768
768
|
C.NextWeek = cn;
|
|
769
769
|
C.Day = un;
|
|
770
770
|
const $e = 'input[type="radio"]', ae = ({ children: e, className: t, ...n }) => {
|
|
771
|
-
const { hasTimezoneNote: a } = n, { slots: s, selectedSlotKey: r, selectSlot: u, selectedDateLabel: i, isReloadingSlots: l, timezoneLabel: c, pendingFocusIndex: d, consumePendingFocusIndex: S } = F(), { id: E, disabled: f, readOnly: O, required:
|
|
771
|
+
const { hasTimezoneNote: a } = n, { slots: s, selectedSlotKey: r, selectSlot: u, selectedDateLabel: i, isReloadingSlots: l, timezoneLabel: c, pendingFocusIndex: d, consumePendingFocusIndex: S } = F(), { id: E, disabled: f, readOnly: O, required: w, hasError: I } = me(), { inputId: W, labelId: N, ariaDescribedBy: A } = Se(), K = J(null), B = `${W}-slots-label`, U = v(e, ae.Label), oe = v(e, ae.Slot) ?? /* @__PURE__ */ o.createElement(ae.Slot, null), se = !!U && !!i, $ = [
|
|
772
772
|
A,
|
|
773
773
|
a && c ? Xe(W) : void 0
|
|
774
774
|
].filter(Boolean).join(" ") || void 0, k = (p) => {
|
|
@@ -798,7 +798,7 @@ const $e = 'input[type="radio"]', ae = ({ children: e, className: t, ...n }) =>
|
|
|
798
798
|
onChange: u,
|
|
799
799
|
isDisabled: f,
|
|
800
800
|
isReadOnly: O,
|
|
801
|
-
isRequired:
|
|
801
|
+
isRequired: w,
|
|
802
802
|
isInvalid: I,
|
|
803
803
|
"aria-labelledby": se ? B : N,
|
|
804
804
|
"aria-describedby": $,
|
|
@@ -843,7 +843,7 @@ const m = ({ children: e, className: t }) => {
|
|
|
843
843
|
r,
|
|
844
844
|
i,
|
|
845
845
|
a
|
|
846
|
-
]), d =
|
|
846
|
+
]), d = v(e, m.Label), S = v(e, m.Description), E = v(e, m.Error);
|
|
847
847
|
return /* @__PURE__ */ o.createElement(s, {
|
|
848
848
|
fieldId: a,
|
|
849
849
|
renderLabel: () => le(d, {
|
|
@@ -859,7 +859,7 @@ const m = ({ children: e, className: t }) => {
|
|
|
859
859
|
}, Dn = {
|
|
860
860
|
visibility: "hidden"
|
|
861
861
|
}, En = ({ children: e, className: t }) => {
|
|
862
|
-
const { required: n, onFocus: a, onBlur: s } = me(), { inputId: r, labelId: u, ariaDescribedBy: i } = Se(), l = rn(), c =
|
|
862
|
+
const { required: n, onFocus: a, onBlur: s } = me(), { inputId: r, labelId: u, ariaDescribedBy: i } = Se(), l = rn(), c = v(e, m.Loader), d = v(e, m.Notification), S = v(e, m.Dates), E = v(e, m.Timezone), f = v(e, m.Format), O = v(e, m.Slots), w = v(e, m.ShowMoreSlots);
|
|
863
863
|
return /* @__PURE__ */ o.createElement(Je.Provider, {
|
|
864
864
|
value: l
|
|
865
865
|
}, /* @__PURE__ */ o.createElement(Rt, {
|
|
@@ -874,7 +874,7 @@ const m = ({ children: e, className: t }) => {
|
|
|
874
874
|
style: l.isLoading ? Dn : void 0
|
|
875
875
|
}, S, E, f, le(O, {
|
|
876
876
|
hasTimezoneNote: !!E
|
|
877
|
-
}), d,
|
|
877
|
+
}), d, w)));
|
|
878
878
|
}, Sn = ({ children: e, className: t }) => {
|
|
879
879
|
const { isLoading: n, isRefetching: a } = F();
|
|
880
880
|
return !n && !a ? null : /* @__PURE__ */ o.createElement("div", {
|
|
@@ -925,9 +925,9 @@ m.Timezone = yn;
|
|
|
925
925
|
m.Format = Ln;
|
|
926
926
|
m.Slots = ae;
|
|
927
927
|
m.ShowMoreSlots = _n;
|
|
928
|
-
m.Description =
|
|
929
|
-
m.Error =
|
|
930
|
-
const Nn = "_appointment_1v1wg_1", An = "_dates_1v1wg_5", bn = "_weekHeading_1v1wg_23", gn = "_weekButton_1v1wg_32", In = "_previousWeek_1v1wg_64", On = "_nextWeek_1v1wg_68", Tn = "_day_1v1wg_80",
|
|
928
|
+
m.Description = vt;
|
|
929
|
+
m.Error = wt;
|
|
930
|
+
const Nn = "_appointment_1v1wg_1", An = "_dates_1v1wg_5", bn = "_weekHeading_1v1wg_23", gn = "_weekButton_1v1wg_32", In = "_previousWeek_1v1wg_64", On = "_nextWeek_1v1wg_68", Tn = "_day_1v1wg_80", vn = "_weekdayLabel_1v1wg_95", wn = "_dayNumber_1v1wg_107", kn = "_indicator_1v1wg_167", Rn = "_hint_1v1wg_186", hn = "_slots_1v1wg_199", Fn = "_slotsMobile_1v1wg_208", Mn = "_slotsLabel_1v1wg_212", Cn = "_slot_1v1wg_199", Wn = "_slotLabel_1v1wg_247", Bn = "_showMoreSlots_1v1wg_314", Un = "_loader_1v1wg_345", xn = "_notification_1v1wg_381", y = {
|
|
931
931
|
appointment: Nn,
|
|
932
932
|
dates: An,
|
|
933
933
|
weekHeading: bn,
|
|
@@ -935,8 +935,8 @@ const Nn = "_appointment_1v1wg_1", An = "_dates_1v1wg_5", bn = "_weekHeading_1v1
|
|
|
935
935
|
previousWeek: In,
|
|
936
936
|
nextWeek: On,
|
|
937
937
|
day: Tn,
|
|
938
|
-
weekdayLabel:
|
|
939
|
-
dayNumber:
|
|
938
|
+
weekdayLabel: vn,
|
|
939
|
+
dayNumber: wn,
|
|
940
940
|
indicator: kn,
|
|
941
941
|
hint: Rn,
|
|
942
942
|
slots: hn,
|
package/dist/component/{bookings-login-bar-rac-CXrLx7Pn.js → bookings-login-bar-rac-DKi-VAXc.js}
RENAMED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import o from "react";
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
2
|
+
import E from "classnames";
|
|
3
|
+
import { ai as d, as as B, ab as f, ae as p } from "./form-9yjqDnxY.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 { r as _ } from "./form-element-classes-KRzHUNLu.js";
|
|
7
7
|
const a = ({ children: n }) => {
|
|
8
|
-
const { id: r, FieldLayout: t } =
|
|
8
|
+
const { id: r, FieldLayout: t } = d();
|
|
9
9
|
return /* @__PURE__ */ o.createElement(t, {
|
|
10
10
|
fieldId: r,
|
|
11
11
|
renderLabel: () => null,
|
|
@@ -62,7 +62,7 @@ const T = "_container_1mvrn_1", C = "_text_1mvrn_34", v = "_button_1mvrn_39", u
|
|
|
62
62
|
var e;
|
|
63
63
|
return (e = t == null ? void 0 : t.requestLogout) == null ? void 0 : e.call(t);
|
|
64
64
|
},
|
|
65
|
-
className:
|
|
65
|
+
className: E(_, u.container)
|
|
66
66
|
}, /* @__PURE__ */ o.createElement(a.Text, {
|
|
67
67
|
className: u.text
|
|
68
68
|
}), /* @__PURE__ */ o.createElement(a.Button, {
|
|
@@ -2,14 +2,14 @@ import { RicosViewer as $n } from "@wix/ricos/viewer";
|
|
|
2
2
|
import k 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 { Q as ei,
|
|
5
|
+
import { Q as ei, ai as Zr, q as Qr, R as fn, as as ri, ab as ti, $ as ai, af as ni, ak as ii, L as si } from "./form-9yjqDnxY.js";
|
|
6
6
|
import { f as W } from "./find-child-C60k4CxG.js";
|
|
7
|
-
import { D as oi, E as ui } from "./field-error-headless-
|
|
7
|
+
import { D as oi, E as ui } from "./field-error-headless-DrnFrGun.js";
|
|
8
8
|
import { Node_Type as ci } from "@wix/ricos/schema";
|
|
9
|
-
import { c as te, r as X, e as R, a as J, d as fi, b as li } from "./isObjectLike-
|
|
9
|
+
import { c as te, r as X, e as R, a as J, d as fi, b as li } from "./isObjectLike-srCDplej.js";
|
|
10
10
|
import { E as _i } from "./error-icon-hZxQ6DEy.js";
|
|
11
|
-
import { s as re } from "./field-rac.module-
|
|
12
|
-
import {
|
|
11
|
+
import { s as re } from "./field-rac.module-CWkwwhq4.js";
|
|
12
|
+
import { f as vi, g as hi, F as pi, J as di, n as yi, j as bi } from "./form-element-classes-KRzHUNLu.js";
|
|
13
13
|
var ue, dt;
|
|
14
14
|
function gi() {
|
|
15
15
|
if (dt) return ue;
|
|
@@ -0,0 +1,210 @@
|
|
|
1
|
+
import r, { useMemo as F, useCallback as _, useRef as H, useState as w, useEffect as U } from "react";
|
|
2
|
+
import { CheckboxGroup as W, CheckboxField as A, CheckboxButton as j, TextField as z, Input as J } from "react-aria-components";
|
|
3
|
+
import { debounce as K } from "ts-debounce";
|
|
4
|
+
import { ai as N, af as Q, as as X, ab as Y, ak as Z } from "./form-9yjqDnxY.js";
|
|
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-DrnFrGun.js";
|
|
7
|
+
import { L as ne } from "./field-label-headless-BIYf1BIh.js";
|
|
8
|
+
import { F as ae } from "./fieldset-headless-CD3fds9J.js";
|
|
9
|
+
import { N as se } from "./options-layout-constants-DEfIEJWD.js";
|
|
10
|
+
const R = "Other", le = (e, t) => e.some((l) => !t.includes(l)), B = (e, t) => e.length > 0 && le(e, t), oe = (e, t) => {
|
|
11
|
+
const l = t == null ? void 0 : t("add-other.default-other-option-label");
|
|
12
|
+
return e || l || R;
|
|
13
|
+
}, P = (e, t) => {
|
|
14
|
+
const a = t ? t.length + 2 : 0;
|
|
15
|
+
return (e.find((c) => c.startsWith(`${t}: `)) || "").slice(a);
|
|
16
|
+
}, D = (e) => e.map((t) => t.value ?? t.label), v = ({ children: e }) => {
|
|
17
|
+
const t = N(), { id: l, value: a, onChange: n, disabled: c, required: u, onBlur: I, onFocus: p, hasError: b, FieldLayout: i } = t, { inputId: f, labelId: d, ariaDescribedBy: o } = Q(), O = L(e, v.Label), h = L(e, v.Options), g = L(e, v.Description), C = L(e, v.Error), s = F(() => a || [], [
|
|
18
|
+
a
|
|
19
|
+
]), E = _((V) => {
|
|
20
|
+
n == null || n(V);
|
|
21
|
+
}, [
|
|
22
|
+
n
|
|
23
|
+
]);
|
|
24
|
+
return /* @__PURE__ */ r.createElement(i, {
|
|
25
|
+
fieldId: l,
|
|
26
|
+
renderLabel: () => O,
|
|
27
|
+
renderInput: () => /* @__PURE__ */ r.createElement(ae, {
|
|
28
|
+
id: f,
|
|
29
|
+
ariaLabelledBy: d,
|
|
30
|
+
ariaDescribedBy: o,
|
|
31
|
+
required: u,
|
|
32
|
+
onBlur: I,
|
|
33
|
+
onFocus: p
|
|
34
|
+
}, /* @__PURE__ */ r.createElement(W, {
|
|
35
|
+
"aria-labelledby": d,
|
|
36
|
+
value: s,
|
|
37
|
+
onChange: E,
|
|
38
|
+
isDisabled: c,
|
|
39
|
+
isRequired: u,
|
|
40
|
+
isInvalid: b
|
|
41
|
+
}, h)),
|
|
42
|
+
renderDescription: () => /* @__PURE__ */ r.createElement(r.Fragment, null, C, g)
|
|
43
|
+
});
|
|
44
|
+
}, $ = ({ children: e, className: t }) => {
|
|
45
|
+
const l = N(), { id: a, options: n, addOther: c, addOtherLabel: u, numberOfColumns: I } = l, { t: p } = X(), { isMobile: b } = Y(), i = L(e, $.Option), f = oe(u, p), d = b ? se.ONE : I;
|
|
46
|
+
return /* @__PURE__ */ r.createElement("div", {
|
|
47
|
+
className: t,
|
|
48
|
+
"data-columns": d
|
|
49
|
+
}, n == null ? void 0 : n.map((o, O) => {
|
|
50
|
+
const h = o.value ?? o.label;
|
|
51
|
+
return k(i, {
|
|
52
|
+
key: o.id || o.label,
|
|
53
|
+
value: h,
|
|
54
|
+
label: o.label,
|
|
55
|
+
isFirst: O === 0,
|
|
56
|
+
fieldId: a
|
|
57
|
+
});
|
|
58
|
+
}), c && k(i, {
|
|
59
|
+
key: R,
|
|
60
|
+
value: R,
|
|
61
|
+
label: f,
|
|
62
|
+
isOther: !0
|
|
63
|
+
}));
|
|
64
|
+
}, re = ({ className: e, ...t }) => {
|
|
65
|
+
const l = t;
|
|
66
|
+
return /* @__PURE__ */ r.createElement("div", {
|
|
67
|
+
"aria-hidden": "true",
|
|
68
|
+
className: typeof e == "function" ? e(l) : e
|
|
69
|
+
});
|
|
70
|
+
}, ce = ({ className: e, ...t }) => {
|
|
71
|
+
const { label: l } = t;
|
|
72
|
+
return /* @__PURE__ */ r.createElement("span", {
|
|
73
|
+
className: e
|
|
74
|
+
}, l);
|
|
75
|
+
}, x = ({ children: e, className: t, ...l }) => {
|
|
76
|
+
const { value: a, label: n, isFirst: c = !1, isOther: u = !1, fieldId: I } = l, p = N(), { value: b, onChange: i, disabled: f, readOnly: d, hasError: o, options: O } = p, h = H(null);
|
|
77
|
+
Z(() => {
|
|
78
|
+
var m;
|
|
79
|
+
c && ((m = h.current) == null || m.focus({
|
|
80
|
+
preventScroll: !0
|
|
81
|
+
}));
|
|
82
|
+
}, I);
|
|
83
|
+
const g = L(e, x.Label), C = L(e, x.Input), s = F(() => b || [], [
|
|
84
|
+
b
|
|
85
|
+
]), E = F(() => u ? s.find((m) => m === n || m.startsWith(`${n}: `)) || n : a, [
|
|
86
|
+
u,
|
|
87
|
+
s,
|
|
88
|
+
n,
|
|
89
|
+
a
|
|
90
|
+
]), V = _((m) => {
|
|
91
|
+
if (!u)
|
|
92
|
+
return;
|
|
93
|
+
const y = D(O || []), S = s.filter((G) => y.includes(G)), q = m ? [
|
|
94
|
+
...S,
|
|
95
|
+
n
|
|
96
|
+
] : S;
|
|
97
|
+
i == null || i(q);
|
|
98
|
+
}, [
|
|
99
|
+
u,
|
|
100
|
+
n,
|
|
101
|
+
i,
|
|
102
|
+
O,
|
|
103
|
+
s
|
|
104
|
+
]);
|
|
105
|
+
return /* @__PURE__ */ r.createElement(A, {
|
|
106
|
+
value: E,
|
|
107
|
+
onChange: u ? V : void 0,
|
|
108
|
+
isDisabled: f,
|
|
109
|
+
isReadOnly: d,
|
|
110
|
+
isInvalid: o
|
|
111
|
+
}, /* @__PURE__ */ r.createElement(j, {
|
|
112
|
+
ref: h,
|
|
113
|
+
className: t,
|
|
114
|
+
"data-hook": `checkbox-${n}`
|
|
115
|
+
}, ({ isSelected: m, isHovered: y }) => /* @__PURE__ */ r.createElement(r.Fragment, null, k(C, {
|
|
116
|
+
isSelected: m,
|
|
117
|
+
isHovered: y
|
|
118
|
+
}), k(g, {
|
|
119
|
+
label: n
|
|
120
|
+
}))));
|
|
121
|
+
};
|
|
122
|
+
x.Label = ce;
|
|
123
|
+
x.Input = re;
|
|
124
|
+
const M = ({ children: e, ...t }) => {
|
|
125
|
+
const { value: l, label: a, isFirst: n = !1, isOther: c = !1, fieldId: u } = t, I = N(), { value: p, onChange: b, options: i, addOtherPlaceholder: f, otherInputCharacterLimit: d, disabled: o, readOnly: O, hasError: h } = I, g = L(e, x), C = L(e, T), s = F(() => p || [], [
|
|
126
|
+
p
|
|
127
|
+
]), E = F(() => {
|
|
128
|
+
if (!c)
|
|
129
|
+
return !1;
|
|
130
|
+
const V = D(i || []);
|
|
131
|
+
return B(s, V);
|
|
132
|
+
}, [
|
|
133
|
+
c,
|
|
134
|
+
s,
|
|
135
|
+
i
|
|
136
|
+
]);
|
|
137
|
+
return /* @__PURE__ */ r.createElement(r.Fragment, null, k(g, {
|
|
138
|
+
value: l,
|
|
139
|
+
label: a,
|
|
140
|
+
isFirst: n,
|
|
141
|
+
isOther: c,
|
|
142
|
+
fieldId: u
|
|
143
|
+
}), c && E && k(C, {
|
|
144
|
+
fieldValue: s,
|
|
145
|
+
onChange: b,
|
|
146
|
+
label: a,
|
|
147
|
+
placeholder: f,
|
|
148
|
+
maxLength: d,
|
|
149
|
+
disabled: o,
|
|
150
|
+
readOnly: O,
|
|
151
|
+
hasError: h,
|
|
152
|
+
ariaLabel: a,
|
|
153
|
+
addOtherLabel: a,
|
|
154
|
+
options: i
|
|
155
|
+
}));
|
|
156
|
+
}, T = ({ className: e, inputClassName: t, ...l }) => {
|
|
157
|
+
const { fieldValue: a, onChange: n, label: c, placeholder: u, maxLength: I, disabled: p, readOnly: b, hasError: i, ariaLabel: f, addOtherLabel: d, options: o } = l, [O, h] = w(() => {
|
|
158
|
+
const s = D(o || []);
|
|
159
|
+
return B(a, s) ? P(a, d) : "";
|
|
160
|
+
});
|
|
161
|
+
U(() => {
|
|
162
|
+
const s = D(o || []), E = B(a, s);
|
|
163
|
+
h(E ? P(a, d) : "");
|
|
164
|
+
}, [
|
|
165
|
+
a,
|
|
166
|
+
o,
|
|
167
|
+
d
|
|
168
|
+
]);
|
|
169
|
+
const g = F(() => K((s) => {
|
|
170
|
+
const E = D(o || []), V = a.filter((S) => E.includes(S)), m = s ? `${d}: ${s}` : c, y = [
|
|
171
|
+
...V,
|
|
172
|
+
m
|
|
173
|
+
];
|
|
174
|
+
n(y);
|
|
175
|
+
}, 500), [
|
|
176
|
+
n,
|
|
177
|
+
o,
|
|
178
|
+
a,
|
|
179
|
+
d,
|
|
180
|
+
c
|
|
181
|
+
]), C = _((s) => {
|
|
182
|
+
h(s), g(s);
|
|
183
|
+
}, [
|
|
184
|
+
g
|
|
185
|
+
]);
|
|
186
|
+
return /* @__PURE__ */ r.createElement(z, {
|
|
187
|
+
"aria-label": f,
|
|
188
|
+
value: O,
|
|
189
|
+
onChange: C,
|
|
190
|
+
isDisabled: p,
|
|
191
|
+
isReadOnly: b,
|
|
192
|
+
isInvalid: i,
|
|
193
|
+
className: e
|
|
194
|
+
}, /* @__PURE__ */ r.createElement(J, {
|
|
195
|
+
className: t,
|
|
196
|
+
placeholder: u,
|
|
197
|
+
maxLength: I,
|
|
198
|
+
"aria-label": f
|
|
199
|
+
}));
|
|
200
|
+
};
|
|
201
|
+
v.Label = ne;
|
|
202
|
+
v.Options = $;
|
|
203
|
+
$.Option = M;
|
|
204
|
+
M.Checkbox = x;
|
|
205
|
+
M.OtherInput = T;
|
|
206
|
+
v.Description = ee;
|
|
207
|
+
v.Error = te;
|
|
208
|
+
export {
|
|
209
|
+
v as C
|
|
210
|
+
};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { RicosViewer as E } from "@wix/ricos/viewer";
|
|
2
|
+
import a from "classnames";
|
|
3
|
+
import e from "react";
|
|
4
|
+
import { ac as l } from "./form-9yjqDnxY.js";
|
|
5
|
+
import { C as t } from "./checkbox-group-field-headless-BDAFpX5F.js";
|
|
6
|
+
import { E as _ } from "./error-icon-hZxQ6DEy.js";
|
|
7
|
+
import { s as o } from "./field-rac.module-CWkwwhq4.js";
|
|
8
|
+
import { t as m, J as O, a as C, b as i, c as p, d as R, e as I, s as L, n as S, j as D } from "./form-element-classes-KRzHUNLu.js";
|
|
9
|
+
import { o as n } from "./options-rac.module-KM-VT_KY.js";
|
|
10
|
+
const F = "checkboxGroupIndicator", N = ({ content: r, locale: s }) => /* @__PURE__ */ e.createElement(E, {
|
|
11
|
+
content: r,
|
|
12
|
+
locale: s
|
|
13
|
+
}), k = () => {
|
|
14
|
+
const r = l(F);
|
|
15
|
+
return /* @__PURE__ */ e.createElement(t, null, /* @__PURE__ */ e.createElement(t.Label, {
|
|
16
|
+
className: a(m, o.label)
|
|
17
|
+
}, /* @__PURE__ */ e.createElement(t.Label.Required, {
|
|
18
|
+
className: a(O, o.requiredMark)
|
|
19
|
+
})), /* @__PURE__ */ e.createElement(t.Options, {
|
|
20
|
+
className: a(C, n.options)
|
|
21
|
+
}, /* @__PURE__ */ e.createElement(t.Options.Option, null, /* @__PURE__ */ e.createElement(t.Options.Option.Checkbox, {
|
|
22
|
+
className: o.checkbox
|
|
23
|
+
}, /* @__PURE__ */ e.createElement(t.Options.Option.Checkbox.Input, {
|
|
24
|
+
className: ({ isSelected: s, isHovered: c }) => a(i, o.checkboxInput, r, {
|
|
25
|
+
[R]: s,
|
|
26
|
+
[p]: c
|
|
27
|
+
})
|
|
28
|
+
}), /* @__PURE__ */ e.createElement(t.Options.Option.Checkbox.Label, {
|
|
29
|
+
className: a(I, n.optionLabel)
|
|
30
|
+
})), /* @__PURE__ */ e.createElement(t.Options.Option.OtherInput, {
|
|
31
|
+
inputClassName: a(L, o.input)
|
|
32
|
+
}))), /* @__PURE__ */ e.createElement(t.Error, {
|
|
33
|
+
className: a(S, o.error)
|
|
34
|
+
}, /* @__PURE__ */ e.createElement(_, null), /* @__PURE__ */ e.createElement(t.Error.Text, null)), /* @__PURE__ */ e.createElement(t.Description, {
|
|
35
|
+
className: a(D, o.description)
|
|
36
|
+
}, N));
|
|
37
|
+
};
|
|
38
|
+
export {
|
|
39
|
+
k as C
|
|
40
|
+
};
|