@wix/form-elements 1.89.0 → 1.91.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-DG8GUJpn.js → appointment-rac-CDZ0Gdin.js} +6 -6
- package/dist/component/{bookings-address-rac-cNBSx-Pr.js → bookings-address-rac-pmQyMw-1.js} +1 -1
- package/dist/component/{bookings-email-rac-CYdSoVWP.js → bookings-email-rac-CzDEYpBV.js} +1 -1
- package/dist/component/{bookings-first-name-rac-CQB2o8ww.js → bookings-first-name-rac-qg7T37FZ.js} +1 -1
- package/dist/component/{bookings-header-rac-CzKvQond.js → bookings-header-rac-Dmwmt_Cp.js} +1 -1
- package/dist/component/{bookings-last-name-rac-oK1BC5Am.js → bookings-last-name-rac-CXTtlnYI.js} +1 -1
- package/dist/component/{bookings-login-bar-rac-CZNEy748.js → bookings-login-bar-rac-DTs9s6hU.js} +21 -21
- package/dist/component/{bookings-phone-rac-D_4WfolC.js → bookings-phone-rac-C7AEVZA-.js} +1 -1
- package/dist/component/{bookings-rich-text-rac-CrEfeL4P.js → bookings-rich-text-rac-CBGVMqOn.js} +1 -1
- package/dist/component/{checkbox-field-rac-CGqshW45.js → checkbox-field-rac-BggtF6cZ.js} +49 -49
- package/dist/component/{checkbox-group-field-headless-C3_5IR-E.js → checkbox-group-field-headless-O2ZsF7An.js} +30 -30
- package/dist/component/{checkbox-group-field-rac-DIzdgyAw.js → checkbox-group-field-rac-OC3W4Taz.js} +9 -9
- package/dist/component/{checkbox-group-rac-EvWVfusV.js → checkbox-group-rac-CZuEXWgx.js} +1 -1
- package/dist/component/{checkbox-indicator-module-classes-Bb3xB1ve.js → checkbox-indicator-module-classes-mJ7hl_8K.js} +1 -1
- package/dist/component/{checkbox-rac-CT_69Jei.js → checkbox-rac-W-a8Z0ht.js} +1 -1
- package/dist/component/{contacts-address-rac-M8MZd777.js → contacts-address-rac-DtG9NDgw.js} +1 -1
- package/dist/component/{contacts-birthdate-rac-BS-8HeRD.js → contacts-birthdate-rac-DS7uNjKO.js} +1 -1
- package/dist/component/{contacts-company-rac-gmgKLvic.js → contacts-company-rac-CQX5azvs.js} +1 -1
- package/dist/component/{contacts-email-rac-QQ6E9VzX.js → contacts-email-rac-QgYLfH6e.js} +1 -1
- package/dist/component/{contacts-first-name-rac-DR7XheRo.js → contacts-first-name-rac-BrlHl2Uj.js} +1 -1
- package/dist/component/{contacts-last-name-rac-CBJgTkj5.js → contacts-last-name-rac-ieDtRIbl.js} +1 -1
- package/dist/component/{contacts-phone-rac-CTl25HdK.js → contacts-phone-rac-LTjC8k7e.js} +1 -1
- package/dist/component/{contacts-position-rac-DBDOW7QR.js → contacts-position-rac-CxbAUzIc.js} +1 -1
- package/dist/component/{contacts-subscribe-rac-C0-uJ7fU.js → contacts-subscribe-rac-H0dNjYV8.js} +2 -2
- package/dist/component/{contacts-tax-id-rac-BtXc0V1S.js → contacts-tax-id-rac-uhTEMEwl.js} +1 -1
- package/dist/component/{date-availability-IQtwk-aX.js → date-availability-eRjWauCz.js} +1 -1
- package/dist/component/{date-input-field-rac-2rbZiSgo.js → date-input-field-rac-BKb019gB.js} +99 -98
- package/dist/component/{date-input-rac-j4--xZ8s.js → date-input-rac-BBllT9pM.js} +1 -1
- package/dist/component/{date-picker-field-rac-Cl7ueVVn.js → date-picker-field-rac-CSXVWmGL.js} +43 -43
- package/dist/component/{date-picker-rac-BrObkuYv.js → date-picker-rac-CwEFOSSe.js} +1 -1
- package/dist/component/date-time-input-field-rac-C4yIIebr.js +424 -0
- package/dist/component/{date-time-input-rac-BShquR72.js → date-time-input-rac-DsGlyO8x.js} +1 -1
- package/dist/component/{dext-checkbox-group-rac-DNXYnHDM.js → dext-checkbox-group-rac-Bs9tVVXo.js} +2 -2
- package/dist/component/{dext-checkbox-rac-RBMWmgyT.js → dext-checkbox-rac-FEjZejl7.js} +1 -1
- package/dist/component/{dext-date-picker-rac-Dph_kV11.js → dext-date-picker-rac-Mdbuq1mu.js} +1 -1
- package/dist/component/{dext-date-time-input-rac-C3_gQkBT.js → dext-date-time-input-rac-B4dRBObU.js} +1 -1
- package/dist/component/{dext-dropdown-rac-D34vhtST.js → dext-dropdown-rac-QVngfb7K.js} +1 -1
- package/dist/component/{dext-email-rac-Yzf4-vSg.js → dext-email-rac-cURI3VuR.js} +1 -1
- package/dist/component/{dext-number-input-rac-D0jZXKaI.js → dext-number-input-rac-CovkZ8Ey.js} +1 -1
- package/dist/component/{dext-phone-rac-bqTpmTa0.js → dext-phone-rac-C8GjKZnH.js} +1 -1
- package/dist/component/{dext-radio-group-rac-AYPAzpqZ.js → dext-radio-group-rac-BlrJmIH3.js} +2 -2
- package/dist/component/{dext-rating-input-rac-DOSq-xVQ.js → dext-rating-input-rac-jIJisfdp.js} +1 -1
- package/dist/component/{dext-tags-rac-BXtFTlL0.js → dext-tags-rac-BXjCLX6y.js} +2 -2
- package/dist/component/{dext-text-area-rac-46wwBQg_.js → dext-text-area-rac-CD_x4meg.js} +1 -1
- package/dist/component/{dext-text-input-rac-DVj6V1VG.js → dext-text-input-rac-Du51Nj6q.js} +1 -1
- package/dist/component/{dext-url-input-rac-B5zu9R5K.js → dext-url-input-rac-_W6CW5hp.js} +1 -1
- package/dist/component/{donation-rac-DeBMssGg.js → donation-rac-9njvq8HE.js} +51 -51
- package/dist/component/dropdown-field-headless-BBc5oicg.js +101 -0
- package/dist/component/dropdown-field-rac-BYRb3VEI.js +36 -0
- package/dist/component/{dropdown-rac-bUNYh49x.js → dropdown-rac-BBrPWiSg.js} +1 -1
- package/dist/component/{ecom-address-rac-CtrERV3f.js → ecom-address-rac-CDJ46mdt.js} +1 -1
- package/dist/component/{ecom-subscription-checkbox-rac-BrpwOSYM.js → ecom-subscription-checkbox-rac-DItvmxzX.js} +6 -6
- package/dist/component/{email-input-field-rac-4yYxYc1a.js → email-input-field-rac-aeRdkPOh.js} +63 -63
- package/dist/component/{events-repeater-rac-B308C1JK.js → events-repeater-rac-CzVycetd.js} +35 -35
- package/dist/component/{events-rsvp-rac-C4_LJ3Wz.js → events-rsvp-rac-BhLYlH1V.js} +6 -6
- package/dist/component/{field-error-headless-PMBWtb3Z.js → field-error-headless-T9JfqiMS.js} +12 -12
- package/dist/component/{field-label-headless-0racVfdo.js → field-label-headless-bDWQszAb.js} +12 -12
- package/dist/component/field-rac.module-BUvPquav.js +26 -0
- package/dist/component/{file-upload-rac-CZIHV2OL.js → file-upload-rac-Dk-delp2.js} +116 -116
- package/dist/component/{fixed-payment-rac-COhRKeun.js → fixed-payment-rac-Bj8RMj1w.js} +15 -15
- package/dist/component/{form-UCnayEKT.js → form-C7cB75mm.js} +1130 -1128
- package/dist/component/{form-element-classes--p2vz_Bm.js → form-element-classes-CLZXu-91.js} +79 -69
- package/dist/component/form.css +1 -1
- package/dist/component/form.js +1 -1
- package/dist/component/{header-field-rac-CpXa-NlC.js → header-field-rac-RzI5owwx.js} +3 -3
- package/dist/component/{header-rac-CCsguMlZ.js → header-rac-DQgyaMDA.js} +1 -1
- package/dist/component/{image-choice-rac-j2UH4Q4I.js → image-choice-rac-DOs1eI0_.js} +20 -20
- package/dist/component/{index-jg8dn8po.js → index-C90Q2rfK.js} +2 -2
- package/dist/component/{index-Bxa3IDHm.js → index-DlPclNOa.js} +4 -4
- package/dist/component/{isObjectLike-Zw6J9g91.js → isObjectLike-DLz0WtlZ.js} +1 -1
- package/dist/component/{multiline-address-field-rac-BeFAYL7V.js → multiline-address-field-rac-DHYRZxtJ.js} +575 -574
- package/dist/component/{multiline-address-rac-BYr5_DQd.js → multiline-address-rac-7sUhPDFM.js} +1 -1
- package/dist/component/{number-input-field-rac-BNdJecUL.js → number-input-field-rac-DMHSUbYN.js} +24 -24
- package/dist/component/{number-input-rac-Cqkj4JAF.js → number-input-rac-CF5271QD.js} +1 -1
- package/dist/component/{password-rac-D4iSs1ds.js → password-rac-CxQRcSEb.js} +21 -21
- package/dist/component/{payment-input-rac-BvBP47HP.js → payment-input-rac-C20HS9QN.js} +25 -25
- package/dist/component/{phone-input-field-rac-Cggx8IlY.js → phone-input-field-rac-BDF_4RJE.js} +185 -184
- package/dist/component/{phone-rac-BISmYt_n.js → phone-rac-pGbG3Cu0.js} +1 -1
- package/dist/component/{product-list-rac-C1bm-U2G.js → product-list-rac-CxyJaRQ6.js} +43 -43
- package/dist/component/quiz-radio-group-rac-CCddKnuf.js +13 -0
- package/dist/component/{radio-button-module-classes-blfiatlc.js → radio-button-module-classes-uyJAJMZn.js} +7 -7
- package/dist/component/{radio-group-field-rac-BiiPUxbQ.js → radio-group-field-rac-VwR2FlNg.js} +5 -5
- package/dist/component/{radio-group-rac-Bn_W-3xz.js → radio-group-rac-D8pzwSCS.js} +1 -1
- package/dist/component/{rating-input-field-rac-CjXIoNMc.js → rating-input-field-rac-C4ohOgX0.js} +24 -24
- package/dist/component/{rating-input-rac-Ci4uPo22.js → rating-input-rac-NpCggSGK.js} +1 -1
- package/dist/component/{rich-content-rac.module-CDZniyrZ.js → rich-content-rac.module-B9HHqJL4.js} +4 -4
- package/dist/component/{rich-text-field-rac-BBRE9_Kr.js → rich-text-field-rac-C3qKHitl.js} +5 -5
- package/dist/component/{rich-text-rac-C3MfJK-H.js → rich-text-rac-BJkS9CGE.js} +1 -1
- package/dist/component/service-dropdown-rac-BTdBTfeg.js +146 -0
- package/dist/component/{services-multi-choice-rac-FDHRjDLS.js → services-multi-choice-rac-Nl74A8jo.js} +18 -18
- package/dist/component/{signature-rac-DfGPV0Mw.js → signature-rac-BAVXA-5Q.js} +53 -53
- package/dist/component/{submit-button-rac-DRsqyJcl.js → submit-button-rac-DlmeZjy_.js} +7 -7
- package/dist/component/{tags-field-rac-CZ4FBGG9.js → tags-field-rac-BFBSf5mt.js} +56 -56
- package/dist/component/{tags-rac-CMHMsiwv.js → tags-rac-S_GJQpwJ.js} +1 -1
- package/dist/component/text-area-field-rac-D1qLXh4K.js +73 -0
- package/dist/component/{text-area-rac-BKGDa4E3.js → text-area-rac-DejqDYR0.js} +1 -1
- package/dist/component/{text-input-field-rac-CU8eBRM4.js → text-input-field-rac-DwPTWyiR.js} +6 -6
- package/dist/component/{text-input-headless-C1eFy2gl.js → text-input-headless-BUljrxVJ.js} +6 -6
- package/dist/component/{text-input-rac-DO0eI3ty.js → text-input-rac-CCWkAOVG.js} +1 -1
- package/dist/component/{time-input-rac-BJ0AL2Be.js → time-input-rac-b09-o8Uw.js} +23 -23
- package/dist/component/{url-input-field-rac-BtpAuKfp.js → url-input-field-rac-DYGAFldc.js} +22 -22
- package/dist/component/{url-input-rac-CjnPbcHt.js → url-input-rac-CsAWnWt5.js} +1 -1
- package/dist/component/use-dropdown-option-class-name-CruN_y12.js +28 -0
- package/dist/component/{use-element-state-class-name-X08kIFhd.js → use-element-state-class-name-DZhlOoWK.js} +1 -1
- package/dist/component/{use-service-options-base-DfHhMveM.js → use-service-options-base-JNSCsxxz.js} +3 -3
- package/dist/component/{use-text-input-class-name-BAuokapo.js → use-text-input-class-name-CgCYHOMw.js} +4 -4
- package/dist/form.d.ts +18 -7
- package/package.json +23 -22
- package/dist/component/date-time-input-field-rac-mqea6CtW.js +0 -423
- package/dist/component/dropdown-field-headless-ShcoDfPa.js +0 -84
- package/dist/component/dropdown-field-rac-DruF_YdZ.js +0 -32
- package/dist/component/field-rac.module-D06m9T9x.js +0 -24
- package/dist/component/quiz-radio-group-rac-BhNhoOSI.js +0 -13
- package/dist/component/service-dropdown-rac-DQkk3SlS.js +0 -142
- package/dist/component/text-area-field-rac-BnRuG5y8.js +0 -73
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import o, { useRef as J, useState as j, useEffect as H, createContext as $e, useContext as Ge, useMemo as P, useCallback as ie } from "react";
|
|
2
2
|
import { RicosViewer as it } from "@wix/ricos/viewer";
|
|
3
3
|
import M from "classnames";
|
|
4
|
-
import {
|
|
4
|
+
import { ac as ce, ab as lt, ag as ve, af as ct, c as mt, au as ut, at as dt, ak as me, ah as Se, am as ft, aj as Dt, F as Et } from "./form-C7cB75mm.js";
|
|
5
5
|
import { C as Ce } from "./chevron-down-icon-CcpVm6B-.js";
|
|
6
6
|
import { E as St } from "./error-icon-hZxQ6DEy.js";
|
|
7
7
|
import { H as fe } from "./custom-focus-class-_483Pkwp.js";
|
|
8
|
-
import { s as De } from "./field-rac.module-
|
|
9
|
-
import {
|
|
10
|
-
import { u as Ot } from "./use-element-state-class-name-
|
|
8
|
+
import { s as De } from "./field-rac.module-BUvPquav.js";
|
|
9
|
+
import { B as pt, R as _t, a as yt, y as We, h as Lt, V as Nt, q as At, i as bt, a1 as It } from "./form-element-classes-CLZXu-91.js";
|
|
10
|
+
import { u as Ot } from "./use-element-state-class-name-DZhlOoWK.js";
|
|
11
11
|
import { ListBox as gt, Button as Re, ListBoxItem as Tt, RadioGroup as vt, RadioField as Rt, RadioButton as kt } from "react-aria-components";
|
|
12
12
|
import { f as T, a as le } from "./find-child-C60k4CxG.js";
|
|
13
|
-
import { D as wt, E as Mt } from "./field-error-headless-
|
|
14
|
-
import { L as Ft } from "./field-label-headless-
|
|
13
|
+
import { D as wt, E as Mt } from "./field-error-headless-T9JfqiMS.js";
|
|
14
|
+
import { L as Ft } from "./field-label-headless-bDWQszAb.js";
|
|
15
15
|
import { F as ht } from "./fieldset-headless-CD3fds9J.js";
|
|
16
16
|
import { g as Ct } from "./get-first-day-of-the-week-DvnsxYhQ.js";
|
|
17
17
|
import "date-fns";
|
package/dist/component/{bookings-login-bar-rac-CZNEy748.js → bookings-login-bar-rac-DTs9s6hU.js}
RENAMED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import o from "react";
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
2
|
+
import b from "classnames";
|
|
3
|
+
import { ak as d, au as B, ac as f, ag as p } from "./form-C7cB75mm.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 { x as _ } from "./form-element-classes-CLZXu-91.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,
|
|
@@ -13,44 +13,44 @@ const a = ({ children: n }) => {
|
|
|
13
13
|
renderDescription: () => null
|
|
14
14
|
});
|
|
15
15
|
}, x = ({ children: n, className: r, email: t, isLoggedIn: e = !!t, login: l, logout: s }) => {
|
|
16
|
-
const
|
|
16
|
+
const c = i(g(n, a.Text), {
|
|
17
17
|
email: t,
|
|
18
18
|
isLoggedIn: e
|
|
19
|
-
}),
|
|
19
|
+
}), m = i(g(n, a.Button), {
|
|
20
20
|
isLoggedIn: e,
|
|
21
21
|
login: l,
|
|
22
22
|
logout: s
|
|
23
|
-
}),
|
|
24
|
-
buttonElement:
|
|
23
|
+
}), E = e ? c : i(c, {
|
|
24
|
+
buttonElement: m,
|
|
25
25
|
isLoggedIn: e
|
|
26
26
|
});
|
|
27
27
|
return /* @__PURE__ */ o.createElement("div", {
|
|
28
28
|
className: r,
|
|
29
29
|
role: "status"
|
|
30
|
-
}, e ? /* @__PURE__ */ o.createElement(o.Fragment, null,
|
|
30
|
+
}, e ? /* @__PURE__ */ o.createElement(o.Fragment, null, c, m) : E);
|
|
31
31
|
}, N = ({ className: n, ...r }) => {
|
|
32
|
-
const { buttonElement: t, email: e, isLoggedIn: l } = r, { t: s } = B(),
|
|
32
|
+
const { buttonElement: t, email: e, isLoggedIn: l } = r, { t: s } = B(), c = l ? s("form.login-bar.title.logged-in-state", {
|
|
33
33
|
user: e
|
|
34
34
|
}) : s("form.login-bar.title.logged-out-state");
|
|
35
35
|
return /* @__PURE__ */ o.createElement("div", {
|
|
36
36
|
className: n
|
|
37
|
-
},
|
|
37
|
+
}, c, !l && t);
|
|
38
38
|
}, F = ({ className: n, ...r }) => {
|
|
39
|
-
const { t } = B(), { isLoggedIn: e, login: l, logout: s } = r,
|
|
39
|
+
const { t } = B(), { isLoggedIn: e, login: l, logout: s } = r, c = t(e ? "form.login-bar.action.logout" : "form.login-bar.actions.login"), m = () => e ? s == null ? void 0 : s() : l == null ? void 0 : l();
|
|
40
40
|
return /* @__PURE__ */ o.createElement(L, {
|
|
41
41
|
className: n,
|
|
42
|
-
onPress:
|
|
43
|
-
},
|
|
42
|
+
onPress: m
|
|
43
|
+
}, c);
|
|
44
44
|
};
|
|
45
45
|
a.LoginBar = x;
|
|
46
46
|
a.Text = N;
|
|
47
47
|
a.Button = F;
|
|
48
|
-
const T = "_container_1mvrn_1",
|
|
48
|
+
const T = "_container_1mvrn_1", C = "_text_1mvrn_34", v = "_button_1mvrn_39", u = {
|
|
49
49
|
container: T,
|
|
50
|
-
text:
|
|
51
|
-
button:
|
|
50
|
+
text: C,
|
|
51
|
+
button: v
|
|
52
52
|
}, A = () => {
|
|
53
|
-
const { userData: n, language: r } =
|
|
53
|
+
const { userData: n, language: r } = f(), { actions: t } = p();
|
|
54
54
|
return /* @__PURE__ */ o.createElement(a, null, /* @__PURE__ */ o.createElement(a.LoginBar, {
|
|
55
55
|
email: n == null ? void 0 : n.email,
|
|
56
56
|
isLoggedIn: !!n,
|
|
@@ -62,13 +62,13 @@ const T = "_container_1mvrn_1", v = "_text_1mvrn_34", C = "_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: b(_, u.container)
|
|
66
66
|
}, /* @__PURE__ */ o.createElement(a.Text, {
|
|
67
67
|
className: u.text
|
|
68
68
|
}), /* @__PURE__ */ o.createElement(a.Button, {
|
|
69
69
|
className: u.button
|
|
70
70
|
})));
|
|
71
|
-
},
|
|
71
|
+
}, h = () => /* @__PURE__ */ o.createElement(A, null);
|
|
72
72
|
export {
|
|
73
|
-
|
|
73
|
+
h as BookingsLoginBarRAC
|
|
74
74
|
};
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { RicosViewer as
|
|
1
|
+
import { RicosViewer as Xn } from "@wix/ricos/viewer";
|
|
2
2
|
import U from "classnames";
|
|
3
|
-
import b, { useMemo as
|
|
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 {
|
|
5
|
+
import { T as ei, ak as Zr, r as Qr, R as fn, au as ri, ac as ti, a0 as ai, ah as ni, am as ii, L as si } from "./form-C7cB75mm.js";
|
|
6
6
|
import { f as W, a as oi } from "./find-child-C60k4CxG.js";
|
|
7
|
-
import { D as ui, E as ci } from "./field-error-headless-
|
|
7
|
+
import { D as ui, E as ci } from "./field-error-headless-T9JfqiMS.js";
|
|
8
8
|
import { Node_Type as fi } from "@wix/ricos/schema";
|
|
9
|
-
import { c as re, r as
|
|
9
|
+
import { c as re, r as $, e as R, a as J, d as li, b as _i } from "./isObjectLike-DLz0WtlZ.js";
|
|
10
10
|
import { S as vi } from "./selection-indicator-XQ8MYHUQ.js";
|
|
11
11
|
import { E as hi } from "./error-icon-hZxQ6DEy.js";
|
|
12
|
-
import { C as pi } from "./checkbox-indicator-module-classes-
|
|
13
|
-
import { s as oe } from "./field-rac.module-
|
|
14
|
-
import { f as di, g as yi, b as bi,
|
|
15
|
-
import { u as Ai } from "./use-element-state-class-name-
|
|
12
|
+
import { C as pi } from "./checkbox-indicator-module-classes-mJ7hl_8K.js";
|
|
13
|
+
import { s as oe } from "./field-rac.module-BUvPquav.js";
|
|
14
|
+
import { f as di, g as yi, b as bi, R as gi, q as qi, i as Ci } from "./form-element-classes-CLZXu-91.js";
|
|
15
|
+
import { u as Ai } from "./use-element-state-class-name-DZhlOoWK.js";
|
|
16
16
|
var ue, dt;
|
|
17
17
|
function mi() {
|
|
18
18
|
if (dt) return ue;
|
|
@@ -146,7 +146,7 @@ var qe, Et;
|
|
|
146
146
|
function _n() {
|
|
147
147
|
if (Et) return qe;
|
|
148
148
|
Et = 1;
|
|
149
|
-
var e = re(), r =
|
|
149
|
+
var e = re(), r = $(), t = "[object AsyncFunction]", a = "[object Function]", n = "[object GeneratorFunction]", i = "[object Proxy]";
|
|
150
150
|
function s(o) {
|
|
151
151
|
if (!r(o))
|
|
152
152
|
return !1;
|
|
@@ -199,7 +199,7 @@ var Ie, Dt;
|
|
|
199
199
|
function wi() {
|
|
200
200
|
if (Dt) return Ie;
|
|
201
201
|
Dt = 1;
|
|
202
|
-
var e = _n(), r = Pi(), t =
|
|
202
|
+
var e = _n(), r = Pi(), t = $(), a = vn(), n = /[\\^$.*+?()[\]{}|]/g, i = /^\[object .+?Constructor\]$/, s = Function.prototype, o = Object.prototype, u = s.toString, c = o.hasOwnProperty, v = RegExp(
|
|
203
203
|
"^" + u.call(c).replace(n, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
204
204
|
);
|
|
205
205
|
function _(p) {
|
|
@@ -371,20 +371,20 @@ function Vi() {
|
|
|
371
371
|
}
|
|
372
372
|
return Be = r, Be;
|
|
373
373
|
}
|
|
374
|
-
var ke,
|
|
374
|
+
var ke, Xt;
|
|
375
375
|
function zi() {
|
|
376
|
-
if (
|
|
377
|
-
|
|
376
|
+
if (Xt) return ke;
|
|
377
|
+
Xt = 1;
|
|
378
378
|
var e = ie();
|
|
379
379
|
function r(t) {
|
|
380
380
|
return e(this, t).has(t);
|
|
381
381
|
}
|
|
382
382
|
return ke = r, ke;
|
|
383
383
|
}
|
|
384
|
-
var Ne,
|
|
384
|
+
var Ne, $t;
|
|
385
385
|
function Wi() {
|
|
386
|
-
if (
|
|
387
|
-
|
|
386
|
+
if ($t) return Ne;
|
|
387
|
+
$t = 1;
|
|
388
388
|
var e = ie();
|
|
389
389
|
function r(t, a) {
|
|
390
390
|
var n = e(this, t), i = n.size;
|
|
@@ -393,7 +393,7 @@ function Wi() {
|
|
|
393
393
|
return Ne = r, Ne;
|
|
394
394
|
}
|
|
395
395
|
var Ge, Jt;
|
|
396
|
-
function
|
|
396
|
+
function Xi() {
|
|
397
397
|
if (Jt) return Ge;
|
|
398
398
|
Jt = 1;
|
|
399
399
|
var e = Gi(), r = Hi(), t = Vi(), a = zi(), n = Wi();
|
|
@@ -407,10 +407,10 @@ function $i() {
|
|
|
407
407
|
return i.prototype.clear = e, i.prototype.delete = r, i.prototype.get = t, i.prototype.has = a, i.prototype.set = n, Ge = i, Ge;
|
|
408
408
|
}
|
|
409
409
|
var Ue, Yt;
|
|
410
|
-
function
|
|
410
|
+
function $i() {
|
|
411
411
|
if (Yt) return Ue;
|
|
412
412
|
Yt = 1;
|
|
413
|
-
var e = ae(), r = et(), t =
|
|
413
|
+
var e = ae(), r = et(), t = Xi(), a = 200;
|
|
414
414
|
function n(i, s) {
|
|
415
415
|
var o = this.__data__;
|
|
416
416
|
if (o instanceof e) {
|
|
@@ -427,7 +427,7 @@ var He, Qt;
|
|
|
427
427
|
function Ji() {
|
|
428
428
|
if (Qt) return He;
|
|
429
429
|
Qt = 1;
|
|
430
|
-
var e = ae(), r = Ei(), t = Oi(), a = ji(), n = xi(), i =
|
|
430
|
+
var e = ae(), r = Ei(), t = Oi(), a = ji(), n = xi(), i = $i();
|
|
431
431
|
function s(o) {
|
|
432
432
|
var u = this.__data__ = new e(o);
|
|
433
433
|
this.size = u.size;
|
|
@@ -473,20 +473,20 @@ function hn() {
|
|
|
473
473
|
}
|
|
474
474
|
return We = r, We;
|
|
475
475
|
}
|
|
476
|
-
var
|
|
476
|
+
var Xe, ta;
|
|
477
477
|
function pn() {
|
|
478
|
-
if (ta) return
|
|
478
|
+
if (ta) return Xe;
|
|
479
479
|
ta = 1;
|
|
480
480
|
var e = hn(), r = ln(), t = Object.prototype, a = t.hasOwnProperty;
|
|
481
481
|
function n(i, s, o) {
|
|
482
482
|
var u = i[s];
|
|
483
483
|
(!(a.call(i, s) && r(u, o)) || o === void 0 && !(s in i)) && e(i, s, o);
|
|
484
484
|
}
|
|
485
|
-
return
|
|
485
|
+
return Xe = n, Xe;
|
|
486
486
|
}
|
|
487
|
-
var
|
|
487
|
+
var $e, aa;
|
|
488
488
|
function se() {
|
|
489
|
-
if (aa) return
|
|
489
|
+
if (aa) return $e;
|
|
490
490
|
aa = 1;
|
|
491
491
|
var e = pn(), r = hn();
|
|
492
492
|
function t(a, n, i, s) {
|
|
@@ -498,7 +498,7 @@ function se() {
|
|
|
498
498
|
}
|
|
499
499
|
return i;
|
|
500
500
|
}
|
|
501
|
-
return
|
|
501
|
+
return $e = t, $e;
|
|
502
502
|
}
|
|
503
503
|
var Je, na;
|
|
504
504
|
function Zi() {
|
|
@@ -729,7 +729,7 @@ var pr, Ta;
|
|
|
729
729
|
function fs() {
|
|
730
730
|
if (Ta) return pr;
|
|
731
731
|
Ta = 1;
|
|
732
|
-
var e =
|
|
732
|
+
var e = $(), r = nt(), t = cs(), a = Object.prototype, n = a.hasOwnProperty;
|
|
733
733
|
function i(s) {
|
|
734
734
|
if (!e(s))
|
|
735
735
|
return t(s);
|
|
@@ -969,10 +969,10 @@ function Is() {
|
|
|
969
969
|
var e = R(), r = e.Uint8Array;
|
|
970
970
|
return Fr = r, Fr;
|
|
971
971
|
}
|
|
972
|
-
var Mr,
|
|
972
|
+
var Mr, Xa;
|
|
973
973
|
function ct() {
|
|
974
|
-
if (
|
|
975
|
-
|
|
974
|
+
if (Xa) return Mr;
|
|
975
|
+
Xa = 1;
|
|
976
976
|
var e = Is();
|
|
977
977
|
function r(t) {
|
|
978
978
|
var a = new t.constructor(t.byteLength);
|
|
@@ -980,10 +980,10 @@ function ct() {
|
|
|
980
980
|
}
|
|
981
981
|
return Mr = r, Mr;
|
|
982
982
|
}
|
|
983
|
-
var Kr,
|
|
983
|
+
var Kr, $a;
|
|
984
984
|
function Ts() {
|
|
985
|
-
if (
|
|
986
|
-
|
|
985
|
+
if ($a) return Kr;
|
|
986
|
+
$a = 1;
|
|
987
987
|
var e = ct();
|
|
988
988
|
function r(t, a) {
|
|
989
989
|
var n = a ? e(t.buffer) : t.buffer;
|
|
@@ -1067,7 +1067,7 @@ var Ur, en;
|
|
|
1067
1067
|
function js() {
|
|
1068
1068
|
if (en) return Ur;
|
|
1069
1069
|
en = 1;
|
|
1070
|
-
var e =
|
|
1070
|
+
var e = $(), r = Object.create, t = /* @__PURE__ */ (function() {
|
|
1071
1071
|
function a() {
|
|
1072
1072
|
}
|
|
1073
1073
|
return function(n) {
|
|
@@ -1119,18 +1119,18 @@ function ws() {
|
|
|
1119
1119
|
}
|
|
1120
1120
|
return Wr = a, Wr;
|
|
1121
1121
|
}
|
|
1122
|
-
var
|
|
1122
|
+
var Xr, sn;
|
|
1123
1123
|
function Ls() {
|
|
1124
|
-
if (sn) return
|
|
1124
|
+
if (sn) return Xr;
|
|
1125
1125
|
sn = 1;
|
|
1126
1126
|
var e = ws(), r = tt(), t = at(), a = t && t.isSet, n = a ? r(a) : e;
|
|
1127
|
-
return
|
|
1127
|
+
return Xr = n, Xr;
|
|
1128
1128
|
}
|
|
1129
|
-
var
|
|
1129
|
+
var $r, on;
|
|
1130
1130
|
function Fs() {
|
|
1131
|
-
if (on) return
|
|
1131
|
+
if (on) return $r;
|
|
1132
1132
|
on = 1;
|
|
1133
|
-
var e = Ji(), r = Yi(), t = pn(), a = us(), n = ls(), i = _s(), s = vs(), o = ps(), u = ds(), c = ys(), v = bs(), _ = ut(), p = ms(), y = Os(), q = xs(), C = rt(), m = dn(), g = Ps(), d =
|
|
1133
|
+
var e = Ji(), r = Yi(), t = pn(), a = us(), n = ls(), i = _s(), s = vs(), o = ps(), u = ds(), c = ys(), v = bs(), _ = ut(), p = ms(), y = Os(), q = xs(), C = rt(), m = dn(), g = Ps(), d = $(), S = Ls(), E = it(), O = st(), j = 1, B = 2, k = 4, I = "[object Arguments]", N = "[object Array]", f = "[object Boolean]", x = "[object Date]", G = "[object Error]", ft = "[object Function]", Rn = "[object GeneratorFunction]", Sn = "[object Map]", En = "[object Number]", lt = "[object Object]", On = "[object RegExp]", jn = "[object Set]", xn = "[object String]", Dn = "[object Symbol]", Pn = "[object WeakMap]", wn = "[object ArrayBuffer]", Ln = "[object DataView]", Fn = "[object Float32Array]", Mn = "[object Float64Array]", Kn = "[object Int8Array]", Bn = "[object Int16Array]", kn = "[object Int32Array]", Nn = "[object Uint8Array]", Gn = "[object Uint8ClampedArray]", Un = "[object Uint16Array]", Hn = "[object Uint32Array]", h = {};
|
|
1134
1134
|
h[I] = h[N] = h[wn] = h[Ln] = h[f] = h[x] = h[Fn] = h[Mn] = h[Kn] = h[Bn] = h[kn] = h[Sn] = h[En] = h[lt] = h[On] = h[jn] = h[xn] = h[Dn] = h[Nn] = h[Gn] = h[Un] = h[Hn] = !0, h[G] = h[ft] = h[Pn] = !1;
|
|
1135
1135
|
function Y(l, F, M, Vn, Q, D) {
|
|
1136
1136
|
var A, Z = F & j, ee = F & B, zn = F & k;
|
|
@@ -1169,7 +1169,7 @@ function Fs() {
|
|
|
1169
1169
|
pt && (w = P, P = l[w]), t(A, w, Y(P, F, M, w, l, D));
|
|
1170
1170
|
}), A;
|
|
1171
1171
|
}
|
|
1172
|
-
return
|
|
1172
|
+
return $r = Y, $r;
|
|
1173
1173
|
}
|
|
1174
1174
|
var Jr, un;
|
|
1175
1175
|
function Ms() {
|
|
@@ -1221,7 +1221,7 @@ const Bs = /* @__PURE__ */ ei(Ks), ks = (e, r, t) => {
|
|
|
1221
1221
|
onMouseDown: Yr,
|
|
1222
1222
|
onClick: Yr
|
|
1223
1223
|
}, Us = ({ className: e, requiredClassName: r, theme: t, children: a, ...n }) => {
|
|
1224
|
-
const { requiredIndicatorHidden: i = !1 } = n, s = Zr(), { label: o, required: u = !1, disabled: c = !1, requiredIndicatorType: v = fn.ASTERISK, requiredIndicatorPlacement: _ = Qr.AFTER_FIELD_TITLE } = s, { t: p } = ri(), { language: y } = ti(), q =
|
|
1224
|
+
const { requiredIndicatorHidden: i = !1 } = n, s = Zr(), { label: o, required: u = !1, disabled: c = !1, requiredIndicatorType: v = fn.ASTERISK, requiredIndicatorPlacement: _ = Qr.AFTER_FIELD_TITLE } = s, { t: p } = ri(), { language: y } = ti(), q = $n(() => {
|
|
1225
1225
|
if (!u || i || !o)
|
|
1226
1226
|
return o;
|
|
1227
1227
|
const C = ks(v, p, r);
|
|
@@ -1251,13 +1251,13 @@ const Bs = /* @__PURE__ */ ei(Ks), ks = (e, r, t) => {
|
|
|
1251
1251
|
renderInput: () => a,
|
|
1252
1252
|
renderDescription: () => /* @__PURE__ */ b.createElement(b.Fragment, null, i, n)
|
|
1253
1253
|
});
|
|
1254
|
-
},
|
|
1254
|
+
}, X = ({ children: e, className: r }) => {
|
|
1255
1255
|
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);
|
|
1256
1256
|
ii(() => {
|
|
1257
1257
|
var g;
|
|
1258
1258
|
(g = y.current) == null || g.focus();
|
|
1259
1259
|
}, t);
|
|
1260
|
-
const q = W(e,
|
|
1260
|
+
const q = W(e, X.RichTextLabel), C = W(e, X.Input), m = Yn((g) => {
|
|
1261
1261
|
n(g);
|
|
1262
1262
|
}, [
|
|
1263
1263
|
n
|
|
@@ -1281,15 +1281,15 @@ const Bs = /* @__PURE__ */ ei(Ks), ks = (e, r, t) => {
|
|
|
1281
1281
|
isHovered: d
|
|
1282
1282
|
}), q)));
|
|
1283
1283
|
};
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
T.Checkbox =
|
|
1284
|
+
X.RichTextLabel = Us;
|
|
1285
|
+
X.Input = vi;
|
|
1286
|
+
T.Checkbox = X;
|
|
1287
1287
|
T.Description = ui;
|
|
1288
1288
|
T.Error = ci;
|
|
1289
1289
|
const Hs = "_label_1egzx_1", Vs = "_required_1egzx_33", cn = {
|
|
1290
1290
|
label: Hs,
|
|
1291
1291
|
required: Vs
|
|
1292
|
-
}, zs = ({ content: e, locale: r }) => /* @__PURE__ */ b.createElement(
|
|
1292
|
+
}, zs = ({ content: e, locale: r }) => /* @__PURE__ */ b.createElement(Xn, {
|
|
1293
1293
|
content: e,
|
|
1294
1294
|
locale: r
|
|
1295
1295
|
}), uo = ({ classes: e = {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import i, { useMemo as F, useCallback as _, useRef as P, useState as w, useEffect as U } from "react";
|
|
2
|
-
import { CheckboxGroup as W, CheckboxField as
|
|
2
|
+
import { CheckboxGroup as W, CheckboxField as A, CheckboxButton as j, TextField as z, Input as J } from "react-aria-components";
|
|
3
3
|
import { debounce as K } from "ts-debounce";
|
|
4
|
-
import {
|
|
5
|
-
import { f as
|
|
6
|
-
import { D as ee, E as te } from "./field-error-headless-
|
|
7
|
-
import { L as ae } from "./field-label-headless-
|
|
4
|
+
import { ak as N, ah as Q, au as X, ac as Y, am as Z } from "./form-C7cB75mm.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-T9JfqiMS.js";
|
|
7
|
+
import { L as ae } from "./field-label-headless-bDWQszAb.js";
|
|
8
8
|
import { F as ne } from "./fieldset-headless-CD3fds9J.js";
|
|
9
9
|
import { N as se } from "./options-layout-constants-DEfIEJWD.js";
|
|
10
10
|
import { S as le } from "./selection-indicator-XQ8MYHUQ.js";
|
|
@@ -15,7 +15,7 @@ const R = "Other", oe = (e, t) => e.some((o) => !t.includes(o)), B = (e, t) => e
|
|
|
15
15
|
const n = t ? t.length + 2 : 0;
|
|
16
16
|
return (e.find((r) => r.startsWith(`${t}: `)) || "").slice(n);
|
|
17
17
|
}, D = (e) => e.map((t) => t.value ?? t.label), C = ({ children: e }) => {
|
|
18
|
-
const t = N(), { id: o, value: n, onChange: a, disabled: r, required: u, onBlur:
|
|
18
|
+
const t = N(), { id: o, value: n, onChange: a, disabled: r, required: u, onBlur: I, onFocus: b, hasError: p, FieldLayout: c } = t, { inputId: f, labelId: d, ariaDescribedBy: l } = Q(), O = L(e, C.Label), h = L(e, C.Options), g = L(e, C.Description), v = L(e, C.Error), s = F(() => n || [], [
|
|
19
19
|
n
|
|
20
20
|
]), E = _((V) => {
|
|
21
21
|
a == null || a(V);
|
|
@@ -30,7 +30,7 @@ const R = "Other", oe = (e, t) => e.some((o) => !t.includes(o)), B = (e, t) => e
|
|
|
30
30
|
ariaLabelledBy: d,
|
|
31
31
|
ariaDescribedBy: l,
|
|
32
32
|
required: u,
|
|
33
|
-
onBlur:
|
|
33
|
+
onBlur: I,
|
|
34
34
|
onFocus: b
|
|
35
35
|
}, /* @__PURE__ */ i.createElement(W, {
|
|
36
36
|
"aria-labelledby": d,
|
|
@@ -40,23 +40,23 @@ const R = "Other", oe = (e, t) => e.some((o) => !t.includes(o)), B = (e, t) => e
|
|
|
40
40
|
isRequired: u,
|
|
41
41
|
isInvalid: p
|
|
42
42
|
}, h)),
|
|
43
|
-
renderDescription: () => /* @__PURE__ */ i.createElement(i.Fragment, null, v,
|
|
43
|
+
renderDescription: () => /* @__PURE__ */ i.createElement(i.Fragment, null, v, g)
|
|
44
44
|
});
|
|
45
45
|
}, $ = ({ children: e, className: t }) => {
|
|
46
|
-
const o = N(), { id: n, options: a, addOther: r, addOtherLabel: u, numberOfColumns:
|
|
46
|
+
const o = N(), { id: n, options: a, addOther: r, addOtherLabel: u, numberOfColumns: I } = o, { t: b } = X(), { isMobile: p } = Y(), c = L(e, $.Option), f = re(u, b), d = p ? se.ONE : I;
|
|
47
47
|
return /* @__PURE__ */ i.createElement("div", {
|
|
48
48
|
className: t,
|
|
49
49
|
"data-columns": d
|
|
50
50
|
}, a == null ? void 0 : a.map((l, O) => {
|
|
51
51
|
const h = l.value ?? l.label;
|
|
52
|
-
return
|
|
52
|
+
return k(c, {
|
|
53
53
|
key: l.id || l.label,
|
|
54
54
|
value: h,
|
|
55
55
|
label: l.label,
|
|
56
56
|
isFirst: O === 0,
|
|
57
57
|
fieldId: n
|
|
58
58
|
});
|
|
59
|
-
}), r &&
|
|
59
|
+
}), r && k(c, {
|
|
60
60
|
key: R,
|
|
61
61
|
value: R,
|
|
62
62
|
label: f,
|
|
@@ -67,15 +67,15 @@ const R = "Other", oe = (e, t) => e.some((o) => !t.includes(o)), B = (e, t) => e
|
|
|
67
67
|
return /* @__PURE__ */ i.createElement("span", {
|
|
68
68
|
className: e
|
|
69
69
|
}, o);
|
|
70
|
-
},
|
|
71
|
-
const { value: n, label: a, isFirst: r = !1, isOther: u = !1, fieldId:
|
|
70
|
+
}, x = ({ children: e, className: t, ...o }) => {
|
|
71
|
+
const { value: n, label: a, isFirst: r = !1, isOther: u = !1, fieldId: I } = o, b = N(), { value: p, onChange: c, disabled: f, readOnly: d, hasError: l, options: O } = b, h = P(null);
|
|
72
72
|
Z(() => {
|
|
73
73
|
var m;
|
|
74
74
|
r && ((m = h.current) == null || m.focus({
|
|
75
75
|
preventScroll: !0
|
|
76
76
|
}));
|
|
77
|
-
},
|
|
78
|
-
const
|
|
77
|
+
}, I);
|
|
78
|
+
const g = L(e, x.Label), v = L(e, x.Input), s = F(() => p || [], [
|
|
79
79
|
p
|
|
80
80
|
]), E = F(() => u ? s.find((m) => m === a || m.startsWith(`${a}: `)) || a : n, [
|
|
81
81
|
u,
|
|
@@ -97,27 +97,27 @@ const R = "Other", oe = (e, t) => e.some((o) => !t.includes(o)), B = (e, t) => e
|
|
|
97
97
|
O,
|
|
98
98
|
s
|
|
99
99
|
]);
|
|
100
|
-
return /* @__PURE__ */ i.createElement(
|
|
100
|
+
return /* @__PURE__ */ i.createElement(A, {
|
|
101
101
|
value: E,
|
|
102
102
|
onChange: u ? V : void 0,
|
|
103
103
|
isDisabled: f,
|
|
104
104
|
isReadOnly: d,
|
|
105
105
|
isInvalid: l
|
|
106
|
-
}, /* @__PURE__ */ i.createElement(
|
|
106
|
+
}, /* @__PURE__ */ i.createElement(j, {
|
|
107
107
|
ref: h,
|
|
108
108
|
className: t,
|
|
109
109
|
"data-hook": `checkbox-${a}`
|
|
110
|
-
}, ({ isSelected: m, isHovered: y }) => /* @__PURE__ */ i.createElement(i.Fragment, null,
|
|
110
|
+
}, ({ isSelected: m, isHovered: y }) => /* @__PURE__ */ i.createElement(i.Fragment, null, k(v, {
|
|
111
111
|
isSelected: m,
|
|
112
112
|
isHovered: y
|
|
113
|
-
}),
|
|
113
|
+
}), k(g, {
|
|
114
114
|
label: a
|
|
115
115
|
}))));
|
|
116
116
|
};
|
|
117
|
-
|
|
118
|
-
|
|
117
|
+
x.Label = ce;
|
|
118
|
+
x.Input = le;
|
|
119
119
|
const M = ({ children: e, ...t }) => {
|
|
120
|
-
const { value: o, label: n, isFirst: a = !1, isOther: r = !1, fieldId: u } = t,
|
|
120
|
+
const { value: o, label: n, isFirst: a = !1, isOther: r = !1, fieldId: u } = t, I = N(), { value: b, onChange: p, options: c, addOtherPlaceholder: f, otherInputCharacterLimit: d, disabled: l, readOnly: O, hasError: h } = I, g = L(e, x), v = L(e, q), s = F(() => b || [], [
|
|
121
121
|
b
|
|
122
122
|
]), E = F(() => {
|
|
123
123
|
if (!r)
|
|
@@ -129,13 +129,13 @@ const M = ({ children: e, ...t }) => {
|
|
|
129
129
|
s,
|
|
130
130
|
c
|
|
131
131
|
]);
|
|
132
|
-
return /* @__PURE__ */ i.createElement(i.Fragment, null,
|
|
132
|
+
return /* @__PURE__ */ i.createElement(i.Fragment, null, k(g, {
|
|
133
133
|
value: o,
|
|
134
134
|
label: n,
|
|
135
135
|
isFirst: a,
|
|
136
136
|
isOther: r,
|
|
137
137
|
fieldId: u
|
|
138
|
-
}), r && E &&
|
|
138
|
+
}), r && E && k(v, {
|
|
139
139
|
fieldValue: s,
|
|
140
140
|
onChange: p,
|
|
141
141
|
label: n,
|
|
@@ -149,7 +149,7 @@ const M = ({ children: e, ...t }) => {
|
|
|
149
149
|
options: c
|
|
150
150
|
}));
|
|
151
151
|
}, q = ({ className: e, inputClassName: t, ...o }) => {
|
|
152
|
-
const { fieldValue: n, onChange: a, label: r, placeholder: u, maxLength:
|
|
152
|
+
const { fieldValue: n, onChange: a, label: r, placeholder: u, maxLength: I, disabled: b, readOnly: p, hasError: c, ariaLabel: f, addOtherLabel: d, options: l } = o, [O, h] = w(() => {
|
|
153
153
|
const s = D(l || []);
|
|
154
154
|
return B(n, s) ? T(n, d) : "";
|
|
155
155
|
});
|
|
@@ -161,7 +161,7 @@ const M = ({ children: e, ...t }) => {
|
|
|
161
161
|
l,
|
|
162
162
|
d
|
|
163
163
|
]);
|
|
164
|
-
const
|
|
164
|
+
const g = F(() => K((s) => {
|
|
165
165
|
const E = D(l || []), V = n.filter((S) => E.includes(S)), m = s ? `${d}: ${s}` : r, y = [
|
|
166
166
|
...V,
|
|
167
167
|
m
|
|
@@ -174,9 +174,9 @@ const M = ({ children: e, ...t }) => {
|
|
|
174
174
|
d,
|
|
175
175
|
r
|
|
176
176
|
]), v = _((s) => {
|
|
177
|
-
h(s),
|
|
177
|
+
h(s), g(s);
|
|
178
178
|
}, [
|
|
179
|
-
|
|
179
|
+
g
|
|
180
180
|
]);
|
|
181
181
|
return /* @__PURE__ */ i.createElement(z, {
|
|
182
182
|
"aria-label": f,
|
|
@@ -189,14 +189,14 @@ const M = ({ children: e, ...t }) => {
|
|
|
189
189
|
}, /* @__PURE__ */ i.createElement(J, {
|
|
190
190
|
className: t,
|
|
191
191
|
placeholder: u,
|
|
192
|
-
maxLength:
|
|
192
|
+
maxLength: I,
|
|
193
193
|
"aria-label": f
|
|
194
194
|
}));
|
|
195
195
|
};
|
|
196
196
|
C.Label = ae;
|
|
197
197
|
C.Options = $;
|
|
198
198
|
$.Option = M;
|
|
199
|
-
M.Checkbox =
|
|
199
|
+
M.Checkbox = x;
|
|
200
200
|
M.OtherInput = q;
|
|
201
201
|
C.Description = ee;
|
|
202
202
|
C.Error = te;
|
package/dist/component/{checkbox-group-field-rac-DIzdgyAw.js → checkbox-group-field-rac-OC3W4Taz.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-O2ZsF7An.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 {
|
|
6
|
+
import { C as c } from "./checkbox-indicator-module-classes-mJ7hl_8K.js";
|
|
7
|
+
import { s } from "./field-rac.module-BUvPquav.js";
|
|
8
|
+
import { B as i, R as E, c as p, e as C, q as O, i as _, d as R } from "./form-element-classes-CLZXu-91.js";
|
|
9
9
|
import { o as l } from "./options-rac.module-KM-VT_KY.js";
|
|
10
|
-
import { u as
|
|
11
|
-
import { u as
|
|
10
|
+
import { u as I } from "./use-element-state-class-name-DZhlOoWK.js";
|
|
11
|
+
import { u as L } from "./use-text-input-class-name-CgCYHOMw.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, {
|