@wix/form-elements 1.147.0 → 1.149.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-BG5-bIZU.js → appointment-rac-CeJ6tmgt.js} +93 -89
- package/dist/component/{bookings-address-rac-8e8PqKsp.js → bookings-address-rac-CEObYEbj.js} +1 -1
- package/dist/component/{bookings-email-rac-CtlnU8ws.js → bookings-email-rac-DmW99D5W.js} +1 -1
- package/dist/component/{bookings-first-name-rac-CrivNlXM.js → bookings-first-name-rac-GmKet4hL.js} +1 -1
- package/dist/component/{bookings-header-rac-DWDAjfqq.js → bookings-header-rac-C_J1YzAq.js} +1 -1
- package/dist/component/{bookings-last-name-rac-qAthWem2.js → bookings-last-name-rac-Bj-gwK0F.js} +1 -1
- package/dist/component/{bookings-login-bar-rac-BNyUDqlM.js → bookings-login-bar-rac-ol4QLAP6.js} +1 -1
- package/dist/component/{bookings-phone-rac-Tc39XLr7.js → bookings-phone-rac-oaCG294y.js} +1 -1
- package/dist/component/{bookings-rich-text-rac-CPNaPtFK.js → bookings-rich-text-rac-sMiikQgk.js} +1 -1
- package/dist/component/{checkbox-field-rac-DEa78Tpf.js → checkbox-field-rac-DxGaRbDj.js} +9 -7
- package/dist/component/{checkbox-group-field-headless-BxBaMg29.js → checkbox-group-field-headless-C3ZaCvQz.js} +3 -3
- package/dist/component/{checkbox-group-field-rac-CRRP03Qk.js → checkbox-group-field-rac-CMj-kfFN.js} +6 -6
- package/dist/component/{checkbox-group-rac-TOofMGl3.js → checkbox-group-rac-DpOT4H7g.js} +1 -1
- package/dist/component/{checkbox-indicator-module-classes-6173wvuW.js → checkbox-indicator-module-classes-akWZsZNn.js} +1 -1
- package/dist/component/{checkbox-rac-CHMHr8Ry.js → checkbox-rac-CwdOkW8r.js} +1 -1
- package/dist/component/{contacts-address-rac-Bc5yDvTL.js → contacts-address-rac-CQvt1Epy.js} +1 -1
- package/dist/component/{contacts-birthdate-rac-Ubtg5ncv.js → contacts-birthdate-rac-VRGtjIMf.js} +1 -1
- package/dist/component/{contacts-company-rac-BksH9IoV.js → contacts-company-rac-B_XDJTL9.js} +1 -1
- package/dist/component/{contacts-email-rac-DDPEtMAm.js → contacts-email-rac-BJ0EdzZo.js} +1 -1
- package/dist/component/{contacts-first-name-rac-DUlCvEdx.js → contacts-first-name-rac-DzBzJXj7.js} +1 -1
- package/dist/component/{contacts-last-name-rac-BikqNgUr.js → contacts-last-name-rac-DAHlHpW7.js} +1 -1
- package/dist/component/{contacts-phone-rac-B4OEgM_8.js → contacts-phone-rac-C4D1TMqv.js} +1 -1
- package/dist/component/{contacts-position-rac-BfybzySV.js → contacts-position-rac-g0CJQJLc.js} +1 -1
- package/dist/component/{contacts-subscribe-rac-CMHb33v1.js → contacts-subscribe-rac-C54jQIum.js} +1 -1
- package/dist/component/{contacts-tax-id-rac-C-qEqwO5.js → contacts-tax-id-rac-D_JlmKJb.js} +1 -1
- package/dist/component/{date-availability-DZ3J3LLm.js → date-availability-CFp_AHpE.js} +1 -1
- package/dist/component/{date-input-field-rac-DeL5vuE7.js → date-input-field-rac-CxOU5_P5.js} +75 -69
- package/dist/component/{date-input-rac-Di6TQvFf.js → date-input-rac-CEuyvgIp.js} +1 -1
- package/dist/component/{date-picker-field-rac-BcdpTkjV.js → date-picker-field-rac-DC8gw2Qe.js} +10 -8
- package/dist/component/{date-picker-rac-Brne65gr.js → date-picker-rac-B8prCy1F.js} +1 -1
- package/dist/component/{date-time-input-field-rac-BtQfAxRp.js → date-time-input-field-rac-FwScqIVQ.js} +115 -109
- package/dist/component/{date-time-input-rac-DM_HXiqV.js → date-time-input-rac-gdstXM2G.js} +1 -1
- package/dist/component/{dext-checkbox-group-rac-WTVwhGG0.js → dext-checkbox-group-rac-DdEAXUYC.js} +2 -2
- package/dist/component/{dext-checkbox-rac-BR5YwmLQ.js → dext-checkbox-rac-DYgl82IR.js} +1 -1
- package/dist/component/{dext-date-picker-rac-DvDuRGYi.js → dext-date-picker-rac-SaO61461.js} +1 -1
- package/dist/component/{dext-date-time-input-rac-C6RgbaVv.js → dext-date-time-input-rac-CQ2klkyf.js} +1 -1
- package/dist/component/{dext-dropdown-rac-CWjSdcZx.js → dext-dropdown-rac-CYINWMm2.js} +1 -1
- package/dist/component/{dext-email-rac-D-C1gVTq.js → dext-email-rac-7e49-L1S.js} +1 -1
- package/dist/component/{dext-number-input-rac-YKzZS2ZG.js → dext-number-input-rac-BxECUZaK.js} +1 -1
- package/dist/component/{dext-phone-rac-CFZlEH2a.js → dext-phone-rac-BCUCWcrF.js} +1 -1
- package/dist/component/{dext-radio-group-rac-DiH0wIIl.js → dext-radio-group-rac-Bs_64hFW.js} +2 -2
- package/dist/component/{dext-rating-input-rac-D0s-i0qO.js → dext-rating-input-rac-Bl-MBjGQ.js} +1 -1
- package/dist/component/{dext-tags-rac-Br48OQQ5.js → dext-tags-rac-D98sEqwj.js} +2 -2
- package/dist/component/{dext-text-area-rac-6jG8gJ7i.js → dext-text-area-rac-Dsbsk2z4.js} +1 -1
- package/dist/component/{dext-text-input-rac-FAJTCXuf.js → dext-text-input-rac-vYtTnV5G.js} +1 -1
- package/dist/component/{dext-url-input-rac-BoMP8sQB.js → dext-url-input-rac-tJJZOvtn.js} +1 -1
- package/dist/component/{donation-rac-DNi4p-v5.js → donation-rac-CPPSHRbF.js} +60 -58
- package/dist/component/{dropdown-field-headless-7SCC-xOC.js → dropdown-field-headless-BWbsB155.js} +29 -27
- package/dist/component/{dropdown-field-rac-CMzZh6J6.js → dropdown-field-rac-BYyLHTVV.js} +4 -4
- package/dist/component/{dropdown-rac-qeugpHXY.js → dropdown-rac-CyWVQHvW.js} +1 -1
- package/dist/component/{ecom-address-rac-D8b_L5md.js → ecom-address-rac-DLWEUZg7.js} +1 -1
- package/dist/component/{ecom-subscription-checkbox-rac-BnAuR9La.js → ecom-subscription-checkbox-rac-DY-Vzmr5.js} +2 -2
- package/dist/component/{email-input-field-rac-CunXRyc5.js → email-input-field-rac-00Q0cH3p.js} +4 -4
- package/dist/component/{events-repeater-rac-DMjyIOkB.js → events-repeater-rac-C_TDB0VL.js} +12 -8
- package/dist/component/{events-rsvp-rac-BsuDPq2K.js → events-rsvp-rac-Cly4TgEv.js} +4 -4
- package/dist/component/{field-error-headless-E8WjFr_n.js → field-error-headless-sUpR20_V.js} +1 -1
- package/dist/component/{field-label-headless-BakLOu5E.js → field-label-headless-xEHyxl62.js} +1 -1
- package/dist/component/field-rac.module-DP0lkkEv.js +25 -0
- package/dist/component/{file-upload-rac-Clu_c--0.js → file-upload-rac-BLTYhgrR.js} +148 -144
- package/dist/component/{fixed-payment-rac-CzAXxsb-.js → fixed-payment-rac-BBSzAU8U.js} +4 -4
- package/dist/component/{form-DHAKwnLt.js → form-DbRjIc40.js} +2212 -2217
- package/dist/component/form.css +1 -1
- package/dist/component/form.js +1 -1
- package/dist/component/{header-field-rac-CwmVpz3r.js → header-field-rac-DdF0EtGw.js} +2 -2
- package/dist/component/{header-rac-ahkGRjSy.js → header-rac-CQzVj2se.js} +1 -1
- package/dist/component/{image-choice-rac-BwxkkdUu.js → image-choice-rac-F4il5nrs.js} +32 -32
- package/dist/component/{index-BFi_n6B7.js → index-3lV2ezGk.js} +2 -2
- package/dist/component/{index-BQf23zZi.js → index-ClGqqyFk.js} +4 -4
- package/dist/component/{isObjectLike-DHcMRYYH.js → isObjectLike-CbFuWC1b.js} +1 -1
- package/dist/component/{multiline-address-field-rac-C6xaqNOk.js → multiline-address-field-rac-Bhkmy-UH.js} +106 -88
- package/dist/component/{multiline-address-rac-DF4TFuDx.js → multiline-address-rac-CH6ZAJ_l.js} +1 -1
- package/dist/component/{number-input-field-rac-uVJ3SBv2.js → number-input-field-rac-DEBHQQqw.js} +16 -14
- package/dist/component/{number-input-rac-D6ERhrSM.js → number-input-rac-DL3ReqMc.js} +1 -1
- package/dist/component/{password-rac-CAiC0ZKl.js → password-rac-Bo7Va46-.js} +13 -11
- package/dist/component/{payment-input-rac-Bu25xvby.js → payment-input-rac-CyT2kcLF.js} +13 -11
- package/dist/component/{phone-input-field-rac-32qUvCsC.js → phone-input-field-rac-CKCkS2mG.js} +7 -7
- package/dist/component/{phone-rac-mNrpj30q.js → phone-rac-BcW_3aA5.js} +1 -1
- package/dist/component/{product-list-rac-zHdM9rHw.js → product-list-rac-Cxu5KYQ1.js} +49 -49
- package/dist/component/{quiz-radio-group-rac-BaSlT8w3.js → quiz-radio-group-rac-Bam3nw3m.js} +1 -1
- package/dist/component/radio-button-module-classes-D6cil49f.js +134 -0
- package/dist/component/{radio-group-field-rac-DI0UgTBr.js → radio-group-field-rac-BgWnXO5Q.js} +5 -5
- package/dist/component/{radio-group-rac-D2ESG8J4.js → radio-group-rac-BMepx9xD.js} +1 -1
- package/dist/component/{rating-input-field-rac-BYT2XqOK.js → rating-input-field-rac-BmdQzQ1t.js} +5 -5
- package/dist/component/{rating-input-rac-D-5CmVAX.js → rating-input-rac-BuNTgro2.js} +1 -1
- package/dist/component/{rich-content-rac.module-Dp9Advo9.js → rich-content-rac.module-DIShgYK1.js} +1 -1
- package/dist/component/{rich-text-field-rac-COEUwoXQ.js → rich-text-field-rac-CfcWsMcr.js} +2 -2
- package/dist/component/{rich-text-rac-CQZLjBQ0.js → rich-text-rac-CbpbC1i1.js} +1 -1
- package/dist/component/{service-dropdown-rac-BTtJVFv8.js → service-dropdown-rac-_ph-8eMR.js} +5 -5
- package/dist/component/{services-multi-choice-rac-hbY3g0Kb.js → services-multi-choice-rac-VS-18f_N.js} +7 -7
- package/dist/component/{signature-rac-CTCNclwL.js → signature-rac-CgCdt4im.js} +286 -284
- package/dist/component/{submit-button-rac-kKGeVgsG.js → submit-button-rac-CAnahSZG.js} +2 -2
- package/dist/component/{tags-field-rac-CVf7oQr_.js → tags-field-rac-TdxHJoT1.js} +75 -75
- package/dist/component/{tags-rac-DiX1_nTT.js → tags-rac-ivZy_kqq.js} +1 -1
- package/dist/component/{text-area-field-rac-IhBNXiDl.js → text-area-field-rac-C4dg7l8s.js} +15 -13
- package/dist/component/{text-area-rac-DHevCtFF.js → text-area-rac-Dqcg7ApJ.js} +1 -1
- package/dist/component/{text-input-field-rac-Da3_wTdh.js → text-input-field-rac-C6VjmvWa.js} +4 -4
- package/dist/component/text-input-headless-CUsCjQmX.js +47 -0
- package/dist/component/{text-input-rac-564LIZ1_.js → text-input-rac-CMFWBJKG.js} +1 -1
- package/dist/component/{time-input-rac-p-Nnsxp_.js → time-input-rac-cbG7WRTS.js} +29 -27
- package/dist/component/{url-input-field-rac-DjrcpRtm.js → url-input-field-rac-7yh9eqH3.js} +20 -18
- package/dist/component/{url-input-rac-B3brpyop.js → url-input-rac-D_rkLxU0.js} +1 -1
- package/dist/component/{use-dropdown-trigger-class-name-BWTT7ltv.js → use-dropdown-trigger-class-name-B53A0SXh.js} +4 -4
- package/dist/component/{use-element-state-class-name-CUZuhFvZ.js → use-element-state-class-name-glM9I1ZZ.js} +1 -1
- package/dist/component/{use-hoverable-input-class-name-ugX8-g4E.js → use-hoverable-input-class-name-DpOCZ2hg.js} +3 -3
- package/dist/component/{use-is-forced-open-dropdown-DUZMvWpk.js → use-is-forced-open-dropdown-B0M0FaQ-.js} +1 -1
- package/dist/component/{use-service-options-base-hqO9Ev38.js → use-service-options-base-CqZd8Yl3.js} +1 -1
- package/dist/component/use-text-input-class-name-DPUN9lls.js +6 -0
- package/dist/form.d.ts +3 -3
- package/package.json +2 -2
- package/dist/component/field-rac.module-DfEb7pBp.js +0 -25
- package/dist/component/radio-button-module-classes-BdWjkBlX.js +0 -132
- package/dist/component/text-input-headless-DcZRRXCp.js +0 -45
- package/dist/component/use-text-input-class-name-wp9dzpEy.js +0 -6
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import o, { useRef as
|
|
1
|
+
import o, { useRef as X, useState as Q, useEffect as P, createContext as Ke, useContext as $e, useMemo as B, useCallback as re } from "react";
|
|
2
2
|
import { RicosViewer as it } from "@wix/ricos/viewer";
|
|
3
3
|
import v from "classnames";
|
|
4
4
|
import { C as he } from "./chevron-down-icon-CcpVm6B-.js";
|
|
5
5
|
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
|
-
import { s as ue } from "./field-rac.module-
|
|
9
|
-
import { bg as De, bf as mt, bk as Te, by as ut, bx as dt, bo as
|
|
10
|
-
import { u as gt } from "./use-element-state-class-name-
|
|
8
|
+
import { s as ue } from "./field-rac.module-DP0lkkEv.js";
|
|
9
|
+
import { bg as De, bf as mt, bk as Te, by as ut, bx as dt, bo as ie, bl as le, bq as ft, bn as Dt, F as Et, h as St, S as _t, a0 as pt, g as Nt, j as We, i as yt, m as At, k as bt, H as It, v as Lt, l as Ot } from "./form-DbRjIc40.js";
|
|
10
|
+
import { u as gt } from "./use-element-state-class-name-glM9I1ZZ.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-sUpR20_V.js";
|
|
14
|
+
import { L as ht } from "./field-label-headless-xEHyxl62.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";
|
|
@@ -23,10 +23,10 @@ var Le = /* @__PURE__ */ (function(e) {
|
|
|
23
23
|
})({}), z = /* @__PURE__ */ (function(e) {
|
|
24
24
|
return e.LOADING = "LOADING", e.DONE = "DONE", e.ERROR = "ERROR", e;
|
|
25
25
|
})({});
|
|
26
|
-
const
|
|
27
|
-
var
|
|
26
|
+
const q = 4;
|
|
27
|
+
var J = /* @__PURE__ */ (function(e) {
|
|
28
28
|
return e.FORM = "form", e.NO_AVAILABILITY_FOR_DATE = "no availability for date empty state", e.NO_AVAILABILITY_AT_ALL = "no availability at all empty state", e.SLOT = "slot", e.DATE = "date", e.PAGINATION = "pagination", e.SHOW_MORE = "show more", e;
|
|
29
|
-
})({}),
|
|
29
|
+
})({}), ne = /* @__PURE__ */ (function(e) {
|
|
30
30
|
return e.LOAD = "load", e.CLICK = "click", e;
|
|
31
31
|
})({});
|
|
32
32
|
const Bt = (e) => {
|
|
@@ -151,27 +151,27 @@ const Pt = (e) => {
|
|
|
151
151
|
availabilitySlots: r,
|
|
152
152
|
availabilityDates: s,
|
|
153
153
|
timezone: t,
|
|
154
|
-
currentSlotBulkSize:
|
|
154
|
+
currentSlotBulkSize: q,
|
|
155
155
|
selectedDate: s.length > 0 && ((d = (E = s[0]) == null ? void 0 : E.slot) != null && d.startDate) ? new Date(s[0].slot.startDate) : void 0
|
|
156
156
|
};
|
|
157
157
|
};
|
|
158
158
|
function Kt(e) {
|
|
159
159
|
var d;
|
|
160
|
-
const { initialData: t, onChange: n, value: a } = e, { isEditor: s, isComposer: r } = De(), i = (d = t == null ? void 0 : t.service) == null ? void 0 : d.id, { actions: l } = Te(), c =
|
|
160
|
+
const { initialData: t, onChange: n, value: a } = e, { isEditor: s, isComposer: r } = De(), i = (d = t == null ? void 0 : t.service) == null ? void 0 : d.id, { actions: l } = Te(), c = X(l);
|
|
161
161
|
c.current = l;
|
|
162
|
-
const D = !!(l != null && l.getAvailabilityDates && (l != null && l.getAvailabilitySlots)), [u, S] =
|
|
162
|
+
const D = !!(l != null && l.getAvailabilityDates && (l != null && l.getAvailabilitySlots)), [u, S] = Q(null), E = Ze(t == null ? void 0 : t.service);
|
|
163
163
|
return P(() => {
|
|
164
164
|
i && !s && !r && D && (async () => {
|
|
165
165
|
var b, I, U, x, H;
|
|
166
166
|
const M = Ve(), y = {
|
|
167
|
-
currentSlotBulkSize:
|
|
167
|
+
currentSlotBulkSize: q,
|
|
168
168
|
timezone: M,
|
|
169
169
|
dataStatus: z.LOADING
|
|
170
170
|
};
|
|
171
171
|
try {
|
|
172
|
-
const Y = async (
|
|
172
|
+
const Y = async (oe) => {
|
|
173
173
|
var _, p;
|
|
174
|
-
const { startDate: $, endDate: w } = xt(
|
|
174
|
+
const { startDate: $, endDate: w } = xt(oe, M);
|
|
175
175
|
return (p = (_ = c.current) == null ? void 0 : _.getAvailabilityDates) == null ? void 0 : p.call(_, {
|
|
176
176
|
serviceId: i,
|
|
177
177
|
fromDate: $,
|
|
@@ -181,8 +181,8 @@ function Kt(e) {
|
|
|
181
181
|
};
|
|
182
182
|
if (y.availabilityDates = await Y(2), (b = y.availabilityDates) != null && b.length || (y.availabilityDates = await Y(6)), !((I = y.availabilityDates) != null && I.length)) {
|
|
183
183
|
E == null || E.report({
|
|
184
|
-
action:
|
|
185
|
-
component:
|
|
184
|
+
action: ne.LOAD,
|
|
185
|
+
component: J.NO_AVAILABILITY_AT_ALL
|
|
186
186
|
}), S({
|
|
187
187
|
dataStatus: z.ERROR,
|
|
188
188
|
error: {
|
|
@@ -197,8 +197,8 @@ function Kt(e) {
|
|
|
197
197
|
timeZone: M,
|
|
198
198
|
selectedDate: y.selectedDate
|
|
199
199
|
}))), E == null || E.report({
|
|
200
|
-
action:
|
|
201
|
-
component: (H = y.availabilityDates) != null && H.length ?
|
|
200
|
+
action: ne.LOAD,
|
|
201
|
+
component: (H = y.availabilityDates) != null && H.length ? J.FORM : J.NO_AVAILABILITY_FOR_DATE
|
|
202
202
|
}), a != null && a.startDate || n(void 0), S({
|
|
203
203
|
...y,
|
|
204
204
|
dataStatus: z.DONE
|
|
@@ -225,7 +225,7 @@ const qe = /* @__PURE__ */ Ke({
|
|
|
225
225
|
setAppointmentState: () => {
|
|
226
226
|
}
|
|
227
227
|
}), $t = ({ appointmentFieldProps: e, children: t }) => {
|
|
228
|
-
const { isEditor: n, isComposer: a } = De(), [s, r] =
|
|
228
|
+
const { isEditor: n, isComposer: a } = De(), [s, r] = Q(() => Ut({
|
|
229
229
|
appointmentFieldProps: e,
|
|
230
230
|
isEditor: n,
|
|
231
231
|
isComposer: a
|
|
@@ -281,7 +281,7 @@ const qe = /* @__PURE__ */ Ke({
|
|
|
281
281
|
formatType: "offset"
|
|
282
282
|
});
|
|
283
283
|
return `${n} (${a})`;
|
|
284
|
-
},
|
|
284
|
+
}, ae = (e, t) => e.getFullYear() === t.getFullYear() && e.getMonth() === t.getMonth() && e.getDate() === t.getDate(), qt = (e, t) => {
|
|
285
285
|
const n = new Date(e);
|
|
286
286
|
n.setDate(e.getDate() - t);
|
|
287
287
|
const a = new Date(e);
|
|
@@ -294,7 +294,7 @@ const qe = /* @__PURE__ */ Ke({
|
|
|
294
294
|
P(() => {
|
|
295
295
|
(async () => {
|
|
296
296
|
var l, c;
|
|
297
|
-
if (s != null && s.startDate && (n != null && n.selectedDate) && (n == null ? void 0 : n.dataStatus) === z.DONE && !
|
|
297
|
+
if (s != null && s.startDate && (n != null && n.selectedDate) && (n == null ? void 0 : n.dataStatus) === z.DONE && !ae(new Date(s.startDate), n == null ? void 0 : n.selectedDate)) {
|
|
298
298
|
e(!0);
|
|
299
299
|
const u = new Date(s.startDate), { fromDate: S, toDate: E } = qt(u, 8), [d, g] = await Promise.all([
|
|
300
300
|
(l = r == null ? void 0 : r.getAvailabilityDates) == null ? void 0 : l.call(r, {
|
|
@@ -352,7 +352,7 @@ const nn = "SLOT_UNAVAILABLE", an = (e) => {
|
|
|
352
352
|
var t;
|
|
353
353
|
return ((t = e == null ? void 0 : e.params) == null ? void 0 : t.reason) === nn;
|
|
354
354
|
}, on = ({ error: e, selectedSlot: t }) => {
|
|
355
|
-
const [n, a] =
|
|
355
|
+
const [n, a] = Q([]), s = an(e), r = t == null ? void 0 : t.startDate, i = X(!1);
|
|
356
356
|
return P(() => {
|
|
357
357
|
if (!s) {
|
|
358
358
|
i.current = !1;
|
|
@@ -366,18 +366,18 @@ const nn = "SLOT_UNAVAILABLE", an = (e) => {
|
|
|
366
366
|
s,
|
|
367
367
|
r
|
|
368
368
|
]), n;
|
|
369
|
-
},
|
|
369
|
+
}, j = 7, ge = (e) => {
|
|
370
370
|
const t = new Date(e);
|
|
371
371
|
return t.setHours(0, 0, 0, 0), t;
|
|
372
372
|
}, sn = (e) => {
|
|
373
373
|
const t = new Date(e);
|
|
374
374
|
return t.setHours(23, 59, 59, 999), t;
|
|
375
|
-
},
|
|
375
|
+
}, te = (e, t) => {
|
|
376
376
|
const n = new Date(e);
|
|
377
377
|
return n.setDate(n.getDate() + t), n;
|
|
378
378
|
}, He = (e, t) => {
|
|
379
|
-
const n = ge(e), a = (n.getDay() - t +
|
|
380
|
-
return
|
|
379
|
+
const n = ge(e), a = (n.getDay() - t + j) % j;
|
|
380
|
+
return te(n, -a);
|
|
381
381
|
}, rn = (e) => `${e.getFullYear()}-${String(e.getMonth() + 1).padStart(2, "0")}-${String(e.getDate()).padStart(2, "0")}`, ln = (e, t, n) => {
|
|
382
382
|
const a = new Intl.DateTimeFormat(n, {
|
|
383
383
|
month: "short",
|
|
@@ -386,15 +386,15 @@ const nn = "SLOT_UNAVAILABLE", an = (e) => {
|
|
|
386
386
|
return typeof a.formatRange == "function" ? a.formatRange(e, t) : `${a.format(e)} - ${a.format(t)}`;
|
|
387
387
|
}, cn = (e, t = []) => t.some((n) => {
|
|
388
388
|
var a;
|
|
389
|
-
return !!((a = n.slot) != null && a.startDate) &&
|
|
389
|
+
return !!((a = n.slot) != null && a.startDate) && ae(new Date(n.slot.startDate), e);
|
|
390
390
|
}), mn = () => {
|
|
391
391
|
var Fe;
|
|
392
|
-
const { appointmentFieldProps: e, appointmentState: t, setAppointmentState: n } = ke(), { language: a, isEditor: s, isComposer: r } = De(), { t: i } = ut(), { actions: l } = Te(), c = Ze(), [D, u] =
|
|
392
|
+
const { appointmentFieldProps: e, appointmentState: t, setAppointmentState: n } = ke(), { language: a, isEditor: s, isComposer: r } = De(), { t: i } = ut(), { actions: l } = Te(), c = Ze(), [D, u] = Q(!1), [S, E] = Q(!1), [d, g] = Q(), [M, y] = Q();
|
|
393
393
|
jt({
|
|
394
394
|
setIsReloadingSlots: u
|
|
395
395
|
});
|
|
396
|
-
const { onChange: b, value: I, target: U, initialData: x, formatDescription: H, locationType: Y, error:
|
|
397
|
-
error:
|
|
396
|
+
const { onChange: b, value: I, target: U, initialData: x, formatDescription: H, locationType: Y, error: oe } = e, { availabilityDates: $, availabilitySlots: w, timezone: _ = "", selectedDate: p, currentSlotBulkSize: k, dataStatus: G, error: Z } = t, K = (Fe = x == null ? void 0 : x.service) == null ? void 0 : Fe.id, V = G === z.LOADING, ee = D || S, Se = !!Z, Me = on({
|
|
397
|
+
error: oe,
|
|
398
398
|
selectedSlot: I
|
|
399
399
|
}), A = B(() => Qt(w, Me), [
|
|
400
400
|
w,
|
|
@@ -428,10 +428,10 @@ const nn = "SLOT_UNAVAILABLE", an = (e) => {
|
|
|
428
428
|
]);
|
|
429
429
|
const _e = B(() => ct(a), [
|
|
430
430
|
a
|
|
431
|
-
]), we =
|
|
431
|
+
]), we = X(p);
|
|
432
432
|
P(() => {
|
|
433
433
|
const f = we.current;
|
|
434
|
-
we.current = p, !!p && (!f || !
|
|
434
|
+
we.current = p, !!p && (!f || !ae(f, p)) && g(void 0);
|
|
435
435
|
}, [
|
|
436
436
|
p
|
|
437
437
|
]);
|
|
@@ -450,16 +450,16 @@ const nn = "SLOT_UNAVAILABLE", an = (e) => {
|
|
|
450
450
|
day: "numeric"
|
|
451
451
|
});
|
|
452
452
|
return Array.from({
|
|
453
|
-
length:
|
|
454
|
-
}, (
|
|
455
|
-
const W =
|
|
453
|
+
length: j
|
|
454
|
+
}, (se, be) => {
|
|
455
|
+
const W = te(h, be), Ie = !!p && ae(W, p), rt = ge(W) < f;
|
|
456
456
|
return {
|
|
457
457
|
key: rn(W),
|
|
458
458
|
date: W,
|
|
459
459
|
isSelected: Ie,
|
|
460
|
-
isAvailable: !
|
|
461
|
-
isDisabled: rt ||
|
|
462
|
-
isToday:
|
|
460
|
+
isAvailable: !V && !ee && !Ie && cn(W, $),
|
|
461
|
+
isDisabled: rt || ee && !Ie,
|
|
462
|
+
isToday: ae(W, f),
|
|
463
463
|
dayOfMonthLabel: O.format(W),
|
|
464
464
|
weekdayLabel: L.format(W),
|
|
465
465
|
label: R.format(W),
|
|
@@ -470,11 +470,11 @@ const nn = "SLOT_UNAVAILABLE", an = (e) => {
|
|
|
470
470
|
h,
|
|
471
471
|
p,
|
|
472
472
|
$,
|
|
473
|
-
|
|
474
|
-
|
|
473
|
+
V,
|
|
474
|
+
ee,
|
|
475
475
|
a,
|
|
476
476
|
i
|
|
477
|
-
]), pe = de(I ?? void 0) || void 0, Ne = B(() =>
|
|
477
|
+
]), pe = de(I ?? void 0) || void 0, Ne = B(() => V || D ? [] : (A ?? []).slice(0, k).flatMap((f) => {
|
|
478
478
|
const { startDate: L, endDate: O } = f.slot ?? {};
|
|
479
479
|
if (!L || !O)
|
|
480
480
|
return [];
|
|
@@ -499,22 +499,22 @@ const nn = "SLOT_UNAVAILABLE", an = (e) => {
|
|
|
499
499
|
}), [
|
|
500
500
|
A,
|
|
501
501
|
k,
|
|
502
|
-
|
|
502
|
+
V,
|
|
503
503
|
D,
|
|
504
504
|
a,
|
|
505
505
|
_,
|
|
506
506
|
pe
|
|
507
|
-
]), ye = !D && !!(A != null && A.length) && (k ||
|
|
507
|
+
]), ye = !D && !!(A != null && A.length) && (k || q) < A.length, Ae = h > He(/* @__PURE__ */ new Date(), _e), et = re(
|
|
508
508
|
async (f) => {
|
|
509
509
|
var L;
|
|
510
|
-
if (!(
|
|
510
|
+
if (!(ee || p && ae(f, p))) {
|
|
511
511
|
u(!0), b == null || b(void 0), n({
|
|
512
|
-
currentSlotBulkSize:
|
|
512
|
+
currentSlotBulkSize: q,
|
|
513
513
|
selectedDate: f,
|
|
514
514
|
availabilitySlots: void 0
|
|
515
515
|
}), c == null || c.report({
|
|
516
|
-
action:
|
|
517
|
-
component:
|
|
516
|
+
action: ne.CLICK,
|
|
517
|
+
component: J.DATE
|
|
518
518
|
});
|
|
519
519
|
try {
|
|
520
520
|
const O = await ((L = l == null ? void 0 : l.getAvailabilitySlots) == null ? void 0 : L.call(l, {
|
|
@@ -523,7 +523,7 @@ const nn = "SLOT_UNAVAILABLE", an = (e) => {
|
|
|
523
523
|
selectedDate: f
|
|
524
524
|
}));
|
|
525
525
|
n({
|
|
526
|
-
currentSlotBulkSize:
|
|
526
|
+
currentSlotBulkSize: q,
|
|
527
527
|
selectedDate: f,
|
|
528
528
|
availabilitySlots: O
|
|
529
529
|
});
|
|
@@ -535,7 +535,7 @@ const nn = "SLOT_UNAVAILABLE", an = (e) => {
|
|
|
535
535
|
},
|
|
536
536
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
537
537
|
[
|
|
538
|
-
|
|
538
|
+
ee,
|
|
539
539
|
p,
|
|
540
540
|
K,
|
|
541
541
|
_,
|
|
@@ -543,25 +543,25 @@ const nn = "SLOT_UNAVAILABLE", an = (e) => {
|
|
|
543
543
|
b,
|
|
544
544
|
c
|
|
545
545
|
]
|
|
546
|
-
), ce =
|
|
546
|
+
), ce = X(0), tt = re(
|
|
547
547
|
async (f) => {
|
|
548
|
-
var
|
|
548
|
+
var se;
|
|
549
549
|
if (f < 0 && !Ae)
|
|
550
550
|
return;
|
|
551
|
-
const L = h, O =
|
|
551
|
+
const L = h, O = te(h, f * j);
|
|
552
552
|
if (g(O), s || r)
|
|
553
553
|
return;
|
|
554
554
|
const R = ++ce.current;
|
|
555
555
|
E(!0), c == null || c.report({
|
|
556
|
-
action:
|
|
557
|
-
component:
|
|
556
|
+
action: ne.CLICK,
|
|
557
|
+
component: J.PAGINATION
|
|
558
558
|
});
|
|
559
559
|
try {
|
|
560
|
-
const be = await ((
|
|
560
|
+
const be = await ((se = l == null ? void 0 : l.getAvailabilityDates) == null ? void 0 : se.call(l, {
|
|
561
561
|
serviceId: K,
|
|
562
562
|
timeZone: _,
|
|
563
563
|
fromDate: O,
|
|
564
|
-
toDate: sn(
|
|
564
|
+
toDate: sn(te(O, j - 1))
|
|
565
565
|
}));
|
|
566
566
|
R === ce.current && n({
|
|
567
567
|
availabilityDates: be
|
|
@@ -583,15 +583,15 @@ const nn = "SLOT_UNAVAILABLE", an = (e) => {
|
|
|
583
583
|
l,
|
|
584
584
|
c
|
|
585
585
|
]
|
|
586
|
-
), nt =
|
|
586
|
+
), nt = re(
|
|
587
587
|
(f) => {
|
|
588
|
-
const L = Ne.find((
|
|
588
|
+
const L = Ne.find((se) => se.key === f);
|
|
589
589
|
if (!L)
|
|
590
590
|
return;
|
|
591
591
|
const { startDate: O, endDate: R } = L;
|
|
592
592
|
c == null || c.report({
|
|
593
|
-
action:
|
|
594
|
-
component:
|
|
593
|
+
action: ne.CLICK,
|
|
594
|
+
component: J.SLOT,
|
|
595
595
|
startTime: new Date(O).valueOf(),
|
|
596
596
|
endTime: new Date(R).valueOf()
|
|
597
597
|
}), b == null || b({
|
|
@@ -607,28 +607,28 @@ const nn = "SLOT_UNAVAILABLE", an = (e) => {
|
|
|
607
607
|
b,
|
|
608
608
|
c
|
|
609
609
|
]
|
|
610
|
-
), at =
|
|
610
|
+
), at = re(() => {
|
|
611
611
|
if (!ye)
|
|
612
612
|
return;
|
|
613
|
-
const f = k ||
|
|
613
|
+
const f = k || q;
|
|
614
614
|
c == null || c.report({
|
|
615
|
-
action:
|
|
616
|
-
component:
|
|
615
|
+
action: ne.CLICK,
|
|
616
|
+
component: J.SHOW_MORE
|
|
617
617
|
}), y(f), n({
|
|
618
|
-
currentSlotBulkSize: f +
|
|
618
|
+
currentSlotBulkSize: f + q
|
|
619
619
|
});
|
|
620
620
|
}, [
|
|
621
621
|
ye,
|
|
622
622
|
k,
|
|
623
623
|
c
|
|
624
|
-
]), ot =
|
|
624
|
+
]), ot = re(() => y(void 0), []), st = B(() => {
|
|
625
625
|
if (Se)
|
|
626
626
|
return i("form.appointment.empty-state.notification.text");
|
|
627
|
-
if (!
|
|
627
|
+
if (!V && !D && !(A != null && A.length))
|
|
628
628
|
return i("form.appointment.slots-not-found.text");
|
|
629
629
|
}, [
|
|
630
630
|
Se,
|
|
631
|
-
|
|
631
|
+
V,
|
|
632
632
|
D,
|
|
633
633
|
A == null ? void 0 : A.length,
|
|
634
634
|
i
|
|
@@ -644,13 +644,13 @@ const nn = "SLOT_UNAVAILABLE", an = (e) => {
|
|
|
644
644
|
canGoToPreviousWeek: Ae,
|
|
645
645
|
hasMoreSlots: ye,
|
|
646
646
|
hasError: Se,
|
|
647
|
-
isLoading:
|
|
648
|
-
isRefetching:
|
|
647
|
+
isLoading: V,
|
|
648
|
+
isRefetching: ee,
|
|
649
649
|
isReloadingSlots: D,
|
|
650
|
-
weekRangeLabel: ln(h,
|
|
650
|
+
weekRangeLabel: ln(h, te(h, j - 1), a),
|
|
651
651
|
weekCaptionLabel: Gt({
|
|
652
652
|
startOfWeek: h,
|
|
653
|
-
endOfWeek:
|
|
653
|
+
endOfWeek: te(h, j - 1)
|
|
654
654
|
}, a),
|
|
655
655
|
selectedDateLabel: Xt({
|
|
656
656
|
selectedDate: p,
|
|
@@ -675,7 +675,7 @@ const nn = "SLOT_UNAVAILABLE", an = (e) => {
|
|
|
675
675
|
throw new Error("Appointment parts must be used inside an <Appointment> component");
|
|
676
676
|
return e;
|
|
677
677
|
}, Re = () => {
|
|
678
|
-
const { disabled: e, readOnly: t } =
|
|
678
|
+
const { disabled: e, readOnly: t } = ie();
|
|
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), [
|
|
@@ -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 = Re(), l =
|
|
708
|
+
const { changeWeek: n, canGoToPreviousWeek: a, previousWeekLabel: s, nextWeekLabel: r } = F(), i = Re(), l = X(null), c = X(!1);
|
|
709
709
|
return P(() => {
|
|
710
710
|
var S, E, d;
|
|
711
711
|
if (a || !c.current)
|
|
@@ -768,21 +768,25 @@ C.Heading = fn;
|
|
|
768
768
|
C.NextWeek = dn;
|
|
769
769
|
C.Day = Dn;
|
|
770
770
|
const Ye = 'input[type="radio"]', fe = ({ children: e, className: t, ...n }) => {
|
|
771
|
-
const { hasTimezoneNote: a, hasDateTitle: s } = n, { slots: r, selectedSlotKey: i, selectSlot: l, selectedDateLabel: c, isReloadingSlots: D, timezoneLabel: u, pendingFocusIndex: S, consumePendingFocusIndex: E } = F(), { id: d, disabled: g, readOnly: M, required: y, hasError: b } =
|
|
771
|
+
const { hasTimezoneNote: a, hasDateTitle: s } = n, { slots: r, selectedSlotKey: i, selectSlot: l, selectedDateLabel: c, isReloadingSlots: D, timezoneLabel: u, pendingFocusIndex: S, consumePendingFocusIndex: E } = F(), { id: d, disabled: g, readOnly: M, required: y, hasError: b } = ie(), { inputId: I, labelId: U, ariaDescribedBy: x } = le(), H = X(null), Y = T(e, fe.Slot) ?? /* @__PURE__ */ o.createElement(fe.Slot, null), oe = !!s && !!c, $ = [
|
|
772
772
|
x,
|
|
773
773
|
a && u ? Qe(I) : void 0
|
|
774
|
-
].filter(Boolean).join(" ") || void 0, w = (_) => {
|
|
775
|
-
var
|
|
776
|
-
(
|
|
774
|
+
].filter(Boolean).join(" ") || void 0, w = (_, p) => {
|
|
775
|
+
var k, G, Z;
|
|
776
|
+
(Z = (G = (k = H.current) == null ? void 0 : k.querySelectorAll(Ye)) == null ? void 0 : G[_]) == null || Z.focus(p);
|
|
777
777
|
};
|
|
778
778
|
return ft(() => {
|
|
779
|
-
var G,
|
|
779
|
+
var G, Z;
|
|
780
780
|
if (!!((G = H.current) != null && G.querySelector(Ye))) {
|
|
781
|
-
w(0
|
|
781
|
+
w(0, {
|
|
782
|
+
preventScroll: !0
|
|
783
|
+
});
|
|
782
784
|
return;
|
|
783
785
|
}
|
|
784
|
-
const p = Array.from(((
|
|
785
|
-
k == null || k.focus(
|
|
786
|
+
const p = Array.from(((Z = document.getElementById(I)) == null ? void 0 : Z.querySelectorAll('[role="option"]')) ?? []), k = p.find((K) => K.getAttribute("aria-selected") === "true") ?? p.find((K) => K.getAttribute("aria-disabled") !== "true");
|
|
787
|
+
k == null || k.focus({
|
|
788
|
+
preventScroll: !0
|
|
789
|
+
});
|
|
786
790
|
}, d), P(() => {
|
|
787
791
|
S !== void 0 && (w(S), E());
|
|
788
792
|
}, [
|
|
@@ -800,7 +804,7 @@ const Ye = 'input[type="radio"]', fe = ({ children: e, className: t, ...n }) =>
|
|
|
800
804
|
isReadOnly: M,
|
|
801
805
|
isRequired: y,
|
|
802
806
|
isInvalid: b,
|
|
803
|
-
"aria-labelledby":
|
|
807
|
+
"aria-labelledby": oe ? Je(I) : U,
|
|
804
808
|
"aria-describedby": $,
|
|
805
809
|
"data-refetch": D || void 0
|
|
806
810
|
}, r.map((_) => Ee(Y, {
|
|
@@ -818,7 +822,7 @@ const Ye = 'input[type="radio"]', fe = ({ children: e, className: t, ...n }) =>
|
|
|
818
822
|
};
|
|
819
823
|
fe.Slot = En;
|
|
820
824
|
const m = ({ children: e, className: t }) => {
|
|
821
|
-
const n =
|
|
825
|
+
const n = ie(), { id: a, FieldLayout: s } = n, { labelId: r, inputId: i, ariaDescribedBy: l } = le(), c = Dt(Et.APPOINTMENT), D = B(() => ({
|
|
822
826
|
...n,
|
|
823
827
|
initialData: c,
|
|
824
828
|
inputId: i,
|
|
@@ -848,7 +852,7 @@ const m = ({ children: e, className: t }) => {
|
|
|
848
852
|
}, Sn = {
|
|
849
853
|
visibility: "hidden"
|
|
850
854
|
}, _n = ({ children: e, className: t }) => {
|
|
851
|
-
const { required: n, onFocus: a, onBlur: s } =
|
|
855
|
+
const { required: n, onFocus: a, onBlur: s } = ie(), { inputId: r, labelId: i, ariaDescribedBy: l } = le(), c = mn(), D = T(e, m.Loader), u = T(e, m.Notification), S = T(e, m.Dates), E = T(e, m.Timezone), d = T(e, m.Format), g = T(e, m.DateTitle), M = T(e, m.Slots), y = T(e, m.ShowMoreSlots);
|
|
852
856
|
return /* @__PURE__ */ o.createElement(je.Provider, {
|
|
853
857
|
value: c
|
|
854
858
|
}, /* @__PURE__ */ o.createElement(Ct, {
|
|
@@ -883,7 +887,7 @@ const m = ({ children: e, className: t }) => {
|
|
|
883
887
|
message: n
|
|
884
888
|
}) : n) : null;
|
|
885
889
|
}, yn = ({ children: e, className: t }) => {
|
|
886
|
-
const { timezoneLabel: n } = F(), { inputId: a } =
|
|
890
|
+
const { timezoneLabel: n } = F(), { inputId: a } = le();
|
|
887
891
|
return n ? /* @__PURE__ */ o.createElement("span", {
|
|
888
892
|
id: Qe(a),
|
|
889
893
|
className: t
|
|
@@ -898,7 +902,7 @@ const m = ({ children: e, className: t }) => {
|
|
|
898
902
|
label: n
|
|
899
903
|
}) : n) : null;
|
|
900
904
|
}, bn = ({ children: e, className: t }) => {
|
|
901
|
-
const { selectedDateLabel: n } = F(), { inputId: a } =
|
|
905
|
+
const { selectedDateLabel: n } = F(), { inputId: a } = le();
|
|
902
906
|
return n ? /* @__PURE__ */ o.createElement("div", {
|
|
903
907
|
id: Je(a),
|
|
904
908
|
className: t
|
|
@@ -906,7 +910,7 @@ const m = ({ children: e, className: t }) => {
|
|
|
906
910
|
label: n
|
|
907
911
|
}) : n) : null;
|
|
908
912
|
}, In = ({ children: e, className: t }) => {
|
|
909
|
-
const { hasMoreSlots: n, showMoreSlots: a, showMoreSlotsLabel: s } = F(), { disabled: r, readOnly: i } =
|
|
913
|
+
const { hasMoreSlots: n, showMoreSlots: a, showMoreSlotsLabel: s } = F(), { disabled: r, readOnly: i } = ie();
|
|
910
914
|
return n ? /* @__PURE__ */ o.createElement(ve, {
|
|
911
915
|
className: t,
|
|
912
916
|
isDisabled: !!r || !!i,
|
package/dist/component/{bookings-login-bar-rac-BNyUDqlM.js → bookings-login-bar-rac-ol4QLAP6.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import o from "react";
|
|
2
2
|
import E from "classnames";
|
|
3
|
-
import { bo as d, by as b, bg as f, bk as x, Q as p } from "./form-
|
|
3
|
+
import { bo as d, by as b, bg as f, bk as x, Q as p } from "./form-DbRjIc40.js";
|
|
4
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 }) => {
|
|
@@ -2,16 +2,16 @@ import { RicosViewer as Xn } from "@wix/ricos/viewer";
|
|
|
2
2
|
import U from "classnames";
|
|
3
3
|
import b, { useMemo as $n, useRef as Jn, useCallback as Yn } from "react";
|
|
4
4
|
import { CheckboxField as Qn, CheckboxButton as Zn } from "react-aria-components";
|
|
5
|
-
import { aY as ei, bo as Zr, aG as Qr, aF as fn, by as ri, bg as ti, b4 as ai, bl as ni, bq as ii, n as si, a0 as oi, s as ui, aB as ci, H as fi, v as li, r as _i } from "./form-
|
|
5
|
+
import { aY as ei, bo as Zr, aG as Qr, aF as fn, by as ri, bg as ti, b4 as ai, bl as ni, bq as ii, n as si, a0 as oi, s as ui, aB as ci, H as fi, v as li, r as _i } from "./form-DbRjIc40.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-sUpR20_V.js";
|
|
8
8
|
import { Node_Type as di } from "@wix/ricos/schema";
|
|
9
|
-
import { c as re, r as $, e as S, a as J, d as yi, b as bi } from "./isObjectLike-
|
|
9
|
+
import { c as re, r as $, e as S, a as J, d as yi, b as bi } from "./isObjectLike-CbFuWC1b.js";
|
|
10
10
|
import { S as gi } from "./selection-indicator-XQ8MYHUQ.js";
|
|
11
11
|
import { E as qi } from "./error-icon-hZxQ6DEy.js";
|
|
12
|
-
import { C as Ci } from "./checkbox-indicator-module-classes-
|
|
13
|
-
import { s as oe } from "./field-rac.module-
|
|
14
|
-
import { u as Ai } from "./use-element-state-class-name-
|
|
12
|
+
import { C as Ci } from "./checkbox-indicator-module-classes-akWZsZNn.js";
|
|
13
|
+
import { s as oe } from "./field-rac.module-DP0lkkEv.js";
|
|
14
|
+
import { u as Ai } from "./use-element-state-class-name-glM9I1ZZ.js";
|
|
15
15
|
var ue, dt;
|
|
16
16
|
function mi() {
|
|
17
17
|
if (dt) return ue;
|
|
@@ -1254,7 +1254,9 @@ const Bs = /* @__PURE__ */ ei(Ks), ks = (e, r, t) => {
|
|
|
1254
1254
|
const { id: t, value: a, onChange: n, disabled: i, required: s, readOnly: o, onBlur: u, onFocus: c, hasError: v } = Zr(), { inputId: _, ariaDescribedBy: p } = ni(), y = Jn(null);
|
|
1255
1255
|
ii(() => {
|
|
1256
1256
|
var g;
|
|
1257
|
-
(g = y.current) == null || g.focus(
|
|
1257
|
+
(g = y.current) == null || g.focus({
|
|
1258
|
+
preventScroll: !0
|
|
1259
|
+
});
|
|
1258
1260
|
}, t);
|
|
1259
1261
|
const q = W(e, X.RichTextLabel), C = W(e, X.Input), m = Yn((g) => {
|
|
1260
1262
|
n(g);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import r, { useMemo as y, useCallback as $, useRef as w, useState as W, useEffect as A } from "react";
|
|
2
2
|
import { CheckboxGroup as M, CheckboxField as j, CheckboxButton as z, TextField as J, Input as K } from "react-aria-components";
|
|
3
3
|
import { debounce as Q } from "ts-debounce";
|
|
4
|
-
import { bo as R, bl as U, by as X, bq as Y } from "./form-
|
|
4
|
+
import { bo as R, bl as U, by as X, bq as Y } from "./form-DbRjIc40.js";
|
|
5
5
|
import { f as I, a as F } 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-sUpR20_V.js";
|
|
7
|
+
import { L as te } from "./field-label-headless-xEHyxl62.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((o) => !t.includes(o)), N = (e, t) => e.length > 0 && le(e, t), se = (e, t) => {
|
package/dist/component/{checkbox-group-field-rac-CRRP03Qk.js → checkbox-group-field-rac-CMj-kfFN.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-C3ZaCvQz.js";
|
|
5
5
|
import { E as n } from "./error-icon-hZxQ6DEy.js";
|
|
6
|
-
import { C as c } from "./checkbox-indicator-module-classes-
|
|
7
|
-
import { s } from "./field-rac.module-
|
|
8
|
-
import { S as i, a0 as E, o as p, q as C, H as O, v as _, p as I } from "./form-
|
|
6
|
+
import { C as c } from "./checkbox-indicator-module-classes-akWZsZNn.js";
|
|
7
|
+
import { s } from "./field-rac.module-DP0lkkEv.js";
|
|
8
|
+
import { S as i, a0 as E, o as p, q as C, H as O, v as _, p as I } from "./form-DbRjIc40.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-glM9I1ZZ.js";
|
|
11
|
+
import { u as R } from "./use-text-input-class-name-DPUN9lls.js";
|
|
12
12
|
const u = ({ content: o, locale: r }) => /* @__PURE__ */ e.createElement(m, {
|
|
13
13
|
content: o,
|
|
14
14
|
locale: r
|