@wix/form-elements 1.161.0 → 1.162.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-BubC8I9X.js → appointment-rac-3Z1wiBX6.js} +123 -123
- package/dist/component/{bookings-address-rac-BbwvVs86.js → bookings-address-rac-2zV-a8SW.js} +1 -1
- package/dist/component/{bookings-email-rac-C2HCkcfa.js → bookings-email-rac-C1WakVnh.js} +1 -1
- package/dist/component/{bookings-first-name-rac-Uy7c5EBs.js → bookings-first-name-rac-6f18uXA0.js} +1 -1
- package/dist/component/{bookings-header-rac-nmwsWRjS.js → bookings-header-rac-BeaxlPQl.js} +1 -1
- package/dist/component/{bookings-last-name-rac-BAioQLCg.js → bookings-last-name-rac-CsLZaKfO.js} +1 -1
- package/dist/component/{bookings-login-bar-rac-CO6vOBjG.js → bookings-login-bar-rac-B3TRivWU.js} +6 -6
- package/dist/component/{bookings-phone-rac-Cr16h-_R.js → bookings-phone-rac-BnFEknvv.js} +1 -1
- package/dist/component/{bookings-rich-text-rac-CHLH3jd7.js → bookings-rich-text-rac-CFPqDZay.js} +1 -1
- package/dist/component/{calendar.module-CKCBG_Pg.js → calendar.module-BMUyMVja.js} +19 -19
- package/dist/component/{checkbox-field-rac-CMwmwFMD.js → checkbox-field-rac-DqGbxAd0.js} +6 -6
- package/dist/component/{checkbox-group-field-headless-BNs_S-nT.js → checkbox-group-field-headless-CiobdaVa.js} +27 -27
- package/dist/component/{checkbox-group-field-rac-BA60EPAN.js → checkbox-group-field-rac-Dxrc2F4x.js} +6 -6
- package/dist/component/{checkbox-group-rac-BJZ4Oer9.js → checkbox-group-rac-C3tL4YSr.js} +1 -1
- package/dist/component/{checkbox-indicator-module-classes-akWZsZNn.js → checkbox-indicator-module-classes-DUTR4mcg.js} +1 -1
- package/dist/component/{checkbox-rac-KsVlI6_V.js → checkbox-rac-DhZsIMuk.js} +1 -1
- package/dist/component/{contacts-address-rac-CRYkz87z.js → contacts-address-rac--GiWpa6C.js} +1 -1
- package/dist/component/{contacts-birthdate-rac-BIz-1-ZX.js → contacts-birthdate-rac-CmI2nPpr.js} +1 -1
- package/dist/component/{contacts-company-rac-B8G__j6I.js → contacts-company-rac-DcSLvPnR.js} +1 -1
- package/dist/component/{contacts-email-rac-Dztkvp5i.js → contacts-email-rac-BLOIHGP9.js} +1 -1
- package/dist/component/{contacts-first-name-rac-CVSEWpLU.js → contacts-first-name-rac-DgMCKLeE.js} +1 -1
- package/dist/component/{contacts-last-name-rac-Blz4M5bk.js → contacts-last-name-rac-tcEQP1Db.js} +1 -1
- package/dist/component/{contacts-phone-rac-CPCE5soY.js → contacts-phone-rac-CK664cfW.js} +1 -1
- package/dist/component/{contacts-position-rac-Dd_kBjqG.js → contacts-position-rac-B8skwXy6.js} +1 -1
- package/dist/component/{contacts-subscribe-rac-C6AlsP10.js → contacts-subscribe-rac-DQZYJjMo.js} +1 -1
- package/dist/component/{contacts-tax-id-rac-CQ1n29zI.js → contacts-tax-id-rac-Ci24ixLu.js} +1 -1
- package/dist/component/{date-availability-DDj1j0z5.js → date-availability-Va6_2NAZ.js} +1 -1
- package/dist/component/{date-input-field-rac-D5r1n_ah.js → date-input-field-rac-lAKyuHOI.js} +89 -89
- package/dist/component/{date-input-rac-Cyi5mU_P.js → date-input-rac-ClEesupR.js} +1 -1
- package/dist/component/{date-picker-field-rac-CeG391Zo.js → date-picker-field-rac-h45jfoso.js} +54 -54
- package/dist/component/{date-picker-rac-Ci9aHgav.js → date-picker-rac-B-pvqBn0.js} +1 -1
- package/dist/component/{date-time-input-field-rac-CrbYEbJJ.js → date-time-input-field-rac-41QpurJp.js} +80 -80
- package/dist/component/{date-time-input-rac-DDJLkqs0.js → date-time-input-rac-BQOUl7It.js} +1 -1
- package/dist/component/{dext-checkbox-group-rac-C3ftVHBA.js → dext-checkbox-group-rac-C4Q6tfBD.js} +4 -4
- package/dist/component/{dext-checkbox-rac-BGLYWn68.js → dext-checkbox-rac-Yo2PHNDA.js} +1 -1
- package/dist/component/{dext-date-picker-rac-Cy9RlDlt.js → dext-date-picker-rac-jM9x8W6a.js} +1 -1
- package/dist/component/{dext-date-time-input-rac-88ZoTd5e.js → dext-date-time-input-rac-BgW_4WIg.js} +1 -1
- package/dist/component/{dext-dropdown-rac-CPxDUuk9.js → dext-dropdown-rac-DCL7D6-G.js} +1 -1
- package/dist/component/{dext-email-rac-BAvQwDPA.js → dext-email-rac-Dz7yBqkd.js} +1 -1
- package/dist/component/{dext-number-input-rac-D7HYQVKq.js → dext-number-input-rac-BdMjBpH9.js} +1 -1
- package/dist/component/{dext-phone-rac--FhcplSI.js → dext-phone-rac-D2i9fXL3.js} +1 -1
- package/dist/component/{dext-radio-group-rac-DBz8iCKW.js → dext-radio-group-rac-Br2f1Ahx.js} +2 -2
- package/dist/component/{dext-rating-input-rac-Cv7nThfe.js → dext-rating-input-rac-OkfJ7Eb0.js} +1 -1
- package/dist/component/{dext-tags-rac-CRUUc5dr.js → dext-tags-rac-43vDoDdM.js} +2 -2
- package/dist/component/{dext-text-area-rac-DQBQXV1L.js → dext-text-area-rac-C072pWO9.js} +1 -1
- package/dist/component/{dext-text-input-rac-4CpM581y.js → dext-text-input-rac-BiHJpJCt.js} +1 -1
- package/dist/component/{dext-url-input-rac-0C1jTEr9.js → dext-url-input-rac-YOGYMj5C.js} +1 -1
- package/dist/component/{donation-rac-Cgt0ZE50.js → donation-rac-fCt3mddA.js} +98 -98
- package/dist/component/{dropdown-field-rac-DlGKR7pZ.js → dropdown-field-rac-EQrQJ2-C.js} +4 -4
- package/dist/component/{dropdown-rac-CYFW_3x_.js → dropdown-rac-MPCcjrFd.js} +1 -1
- package/dist/component/{ecom-address-rac-CQfQHpXC.js → ecom-address-rac-DSgpHqzV.js} +1 -1
- package/dist/component/{ecom-subscription-checkbox-rac-D2v2Upvz.js → ecom-subscription-checkbox-rac-Dw6Ke0Fb.js} +2 -2
- package/dist/component/{email-input-field-rac-CVw25yRo.js → email-input-field-rac-DVmvH4u4.js} +48 -48
- package/dist/component/{events-repeater-rac-BCVUcmFj.js → events-repeater-rac-Uwpo7XF4.js} +24 -24
- package/dist/component/{events-rsvp-rac-DwbqEr8z.js → events-rsvp-rac-D2DJAkep.js} +4 -4
- package/dist/component/{field-error-headless-XnVcMmsL.js → field-error-headless-DAc8FpKI.js} +8 -8
- package/dist/component/{field-label-headless-BRTLT2Yt.js → field-label-headless-DxxwJtjh.js} +17 -17
- package/dist/component/field-rac.module-ts2t4WUO.js +25 -0
- package/dist/component/{file-upload-rac-Dkwg9Jk4.js → file-upload-rac-CBKIeaxX.js} +163 -163
- package/dist/component/{fixed-payment-rac-ST98xAa2.js → fixed-payment-rac-BsCDoc1p.js} +18 -18
- package/dist/component/{form-BUqSKOvc.js → form-GAuLAdjq.js} +326 -336
- package/dist/component/form.css +1 -1
- package/dist/component/form.js +1 -1
- package/dist/component/{header-field-rac-CzNTGYWq.js → header-field-rac-DtZCjzLJ.js} +6 -6
- package/dist/component/{header-rac-DUt6AIAE.js → header-rac-B1hlVDf8.js} +1 -1
- package/dist/component/image-choice-rac-DQaCg_Xk.js +155 -0
- package/dist/component/{index-cZZeAuuu.js → index-BaVjVNYj.js} +2 -2
- package/dist/component/{index-CDO22hht.js → index-C1EXd9jU.js} +69 -69
- package/dist/component/{isObjectLike-cs4bARpC.js → isObjectLike-m2dqIREj.js} +3 -3
- package/dist/component/{multiline-address-field-rac-vcEWhUCV.js → multiline-address-field-rac-CMMdLb-J.js} +41 -41
- package/dist/component/{multiline-address-rac-WQaI2eUX.js → multiline-address-rac-VUQNp-Tz.js} +1 -1
- package/dist/component/{number-input-field-rac-CBUMqATk.js → number-input-field-rac-B5bsGDKm.js} +24 -24
- package/dist/component/{number-input-rac-B4j5hyzS.js → number-input-rac-BzzW0p9R.js} +1 -1
- package/dist/component/{password-rac-DwLyf45N.js → password-rac-2Rr7lvNO.js} +17 -17
- package/dist/component/{payment-input-rac-D0Od---y.js → payment-input-rac-CEUzIrJA.js} +32 -32
- package/dist/component/{phone-input-field-rac-COlu9IeC.js → phone-input-field-rac-BDBaqAzE.js} +48 -48
- package/dist/component/{phone-rac-Dh4RacOF.js → phone-rac-BTK8-tkq.js} +1 -1
- package/dist/component/{product-list-rac-D7zHDE2D.js → product-list-rac-1QbeT5RH.js} +26 -26
- package/dist/component/{quiz-radio-group-rac-1AaKphJt.js → quiz-radio-group-rac-tn2CzdCu.js} +1 -1
- package/dist/component/{radio-button-module-classes-VqaP6vpA.js → radio-button-module-classes-aK1SQcLG.js} +34 -34
- package/dist/component/{radio-group-field-rac-Cp3LRN3C.js → radio-group-field-rac-DlMXhW_S.js} +5 -5
- package/dist/component/{radio-group-rac-KhmhzYGf.js → radio-group-rac-BmU_5tBK.js} +1 -1
- package/dist/component/{rating-input-field-rac-10n6ciCr.js → rating-input-field-rac-DUPJUAX2.js} +30 -30
- package/dist/component/{rating-input-rac-XZjjY2Gp.js → rating-input-rac-BLhkZdj8.js} +1 -1
- package/dist/component/{rich-content-rac.module-kMwDoLBa.js → rich-content-rac.module-C9bGXB69.js} +5 -5
- package/dist/component/{rich-text-field-rac-H5bd8fAt.js → rich-text-field-rac-CVqmsZzZ.js} +4 -4
- package/dist/component/{rich-text-rac-88GSQR62.js → rich-text-rac-D8K6445F.js} +1 -1
- package/dist/component/{service-dropdown-rac-B1_Xr_X3.js → service-dropdown-rac-PR_iLdmo.js} +26 -26
- package/dist/component/{services-multi-choice-rac-DWp_Llbi.js → services-multi-choice-rac-BvMadJCf.js} +15 -15
- package/dist/component/{signature-rac-zN_6KRDp.js → signature-rac-Cpjv6kcl.js} +235 -235
- package/dist/component/{submit-button-rac-Dv6UarYX.js → submit-button-rac-DpDk7cMb.js} +7 -7
- package/dist/component/{tags-field-rac-sVN6MHfJ.js → tags-field-rac-DnyWNHXT.js} +75 -75
- package/dist/component/{tags-rac-DhTHs_XN.js → tags-rac-D5Do7BNm.js} +1 -1
- package/dist/component/{text-area-field-rac-DrWkww7W.js → text-area-field-rac-DLBgla0L.js} +19 -19
- package/dist/component/{text-area-rac-CXXh-ZdY.js → text-area-rac-Bfsl2gSn.js} +1 -1
- package/dist/component/{text-input-field-rac-C2YiMr-g.js → text-input-field-rac-hLsUcQNw.js} +4 -4
- package/dist/component/{text-input-headless-BJMNbsMY.js → text-input-headless-Otd7Uy7V.js} +11 -11
- package/dist/component/{text-input-rac-CpsPh7FH.js → text-input-rac-jpnc-v91.js} +1 -1
- package/dist/component/{time-input-rac-DG_1KxS4.js → time-input-rac-DnjrmZZw.js} +20 -20
- package/dist/component/url-input-field-rac-C90NYHb8.js +77 -0
- package/dist/component/{url-input-rac-BTStO0NP.js → url-input-rac-C3wfEnqs.js} +1 -1
- package/dist/component/{use-dropdown-option-class-name-DbMMg1ws.js → use-dropdown-option-class-name-CYkLlKBs.js} +12 -12
- package/dist/component/{use-dropdown-trigger-class-name-Yes4kC_0.js → use-dropdown-trigger-class-name-CTt4Z67m.js} +19 -19
- package/dist/component/{use-element-state-class-name-DlncY4hk.js → use-element-state-class-name-ByDw6j7c.js} +1 -1
- package/dist/component/{use-hoverable-input-class-name-C__zqP5j.js → use-hoverable-input-class-name-Duhgtn2I.js} +3 -3
- package/dist/component/{use-is-forced-open-dropdown-DnK_MQRO.js → use-is-forced-open-dropdown-B5gNY4Zm.js} +4 -4
- package/dist/component/{use-service-options-base-DKJe52Vk.js → use-service-options-base-DE-QaNDw.js} +3 -3
- package/dist/component/use-text-input-class-name-CmxSw6bY.js +6 -0
- package/package.json +2 -2
- package/dist/component/field-rac.module-DP0lkkEv.js +0 -25
- package/dist/component/image-choice-rac-DuBgrSt2.js +0 -155
- package/dist/component/url-input-field-rac-twxRREnl.js +0 -77
- package/dist/component/use-text-input-class-name-D9tJTR-b.js +0 -6
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _(n) {
|
|
2
2
|
try {
|
|
3
|
-
const e = new Intl.Locale(
|
|
3
|
+
const e = new Intl.Locale(n);
|
|
4
4
|
if (typeof e.getWeekInfo == "function") {
|
|
5
|
-
const
|
|
6
|
-
if (
|
|
7
|
-
return
|
|
5
|
+
const t = e.getWeekInfo().firstDay;
|
|
6
|
+
if (t !== void 0)
|
|
7
|
+
return t === 7 ? 0 : t;
|
|
8
8
|
}
|
|
9
|
-
return c(
|
|
9
|
+
return c(n);
|
|
10
10
|
} catch {
|
|
11
|
-
return c(
|
|
11
|
+
return c(n);
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
14
|
const o = [
|
|
@@ -83,9 +83,9 @@ const o = [
|
|
|
83
83
|
"YE",
|
|
84
84
|
"ZA",
|
|
85
85
|
"ZW"
|
|
86
|
-
], S = [
|
|
87
|
-
"ar"
|
|
88
86
|
], i = [
|
|
87
|
+
"ar"
|
|
88
|
+
], u = [
|
|
89
89
|
"en",
|
|
90
90
|
"he",
|
|
91
91
|
"hi",
|
|
@@ -96,16 +96,16 @@ const o = [
|
|
|
96
96
|
"tl",
|
|
97
97
|
"th"
|
|
98
98
|
];
|
|
99
|
-
function c(
|
|
100
|
-
var e,
|
|
99
|
+
function c(n) {
|
|
100
|
+
var e, t;
|
|
101
101
|
try {
|
|
102
|
-
const a = new Intl.Locale(
|
|
102
|
+
const a = new Intl.Locale(n), r = (e = a.language) == null ? void 0 : e.toLowerCase(), A = (t = a.region) == null ? void 0 : t.toUpperCase();
|
|
103
103
|
if (A)
|
|
104
104
|
return T.includes(A) ? 0 : o.includes(A) ? 6 : 1;
|
|
105
105
|
if (r) {
|
|
106
|
-
if (
|
|
106
|
+
if (u.includes(r))
|
|
107
107
|
return 0;
|
|
108
|
-
if (
|
|
108
|
+
if (i.includes(r))
|
|
109
109
|
return 6;
|
|
110
110
|
}
|
|
111
111
|
return 1;
|
|
@@ -113,11 +113,11 @@ function c(t) {
|
|
|
113
113
|
return 1;
|
|
114
114
|
}
|
|
115
115
|
}
|
|
116
|
-
const
|
|
117
|
-
day:
|
|
118
|
-
dayNumber:
|
|
116
|
+
const S = "_day_12uyq_1", s = "_dayNumber_12uyq_6 _textOnFill_vf5u1_7", D = {
|
|
117
|
+
day: S,
|
|
118
|
+
dayNumber: s
|
|
119
119
|
};
|
|
120
120
|
export {
|
|
121
|
-
|
|
122
|
-
|
|
121
|
+
D as c,
|
|
122
|
+
_ as g
|
|
123
123
|
};
|
|
@@ -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 {
|
|
5
|
+
import { b6 as ei, by as Zr, aQ as Qr, aP as fn, bI as ri, bq as ti, be as ai, bv as ni, bA as ii, o as si, aa as oi, t as ui, aL as ci, K as fi, G as li, s as _i } from "./form-GAuLAdjq.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-DAc8FpKI.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-m2dqIREj.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-DUTR4mcg.js";
|
|
13
|
+
import { s as oe } from "./field-rac.module-ts2t4WUO.js";
|
|
14
|
+
import { u as Ai } from "./use-element-state-class-name-ByDw6j7c.js";
|
|
15
15
|
var ue, dt;
|
|
16
16
|
function mi() {
|
|
17
17
|
if (dt) return ue;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import o, { useMemo as
|
|
2
|
-
import { CheckboxGroup as
|
|
1
|
+
import o, { useMemo as y, useCallback as $, useRef as w, useState as A, useEffect as W } from "react";
|
|
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 {
|
|
5
|
-
import { f as I, a as
|
|
6
|
-
import { D as Z, E as ee } from "./field-error-headless-
|
|
7
|
-
import { L as te } from "./field-label-headless-
|
|
4
|
+
import { by as R, bv as U, bI as X, bA as Y } from "./form-GAuLAdjq.js";
|
|
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-DAc8FpKI.js";
|
|
7
|
+
import { L as te } from "./field-label-headless-DxxwJtjh.js";
|
|
8
8
|
import { F as ae } from "./fieldset-headless-CD3fds9J.js";
|
|
9
9
|
import { S as ne } from "./selection-indicator-XQ8MYHUQ.js";
|
|
10
10
|
const B = "Other", le = (e, t) => e.some((r) => !t.includes(r)), N = (e, t) => e.length > 0 && le(e, t), se = (e, t) => {
|
|
@@ -14,7 +14,7 @@ const B = "Other", le = (e, t) => e.some((r) => !t.includes(r)), N = (e, t) => e
|
|
|
14
14
|
const a = t ? t.length + 2 : 0;
|
|
15
15
|
return (e.find((s) => s.startsWith(`${t}: `)) || "").slice(a);
|
|
16
16
|
}, S = (e) => e.map((t) => t.value ?? t.label), v = ({ children: e, className: t }) => {
|
|
17
|
-
const r = R(), { id: a, value: n, onChange: s, disabled: d, required: p, onBlur: f, onFocus: m, hasError: c, FieldLayout: i } = r, { inputId: h, labelId: u, ariaDescribedBy: L } = U(), E = I(e, v.Label), g = I(e, v.Options), C = I(e, v.Description), l = I(e, v.Error), O =
|
|
17
|
+
const r = R(), { id: a, value: n, onChange: s, disabled: d, required: p, onBlur: f, onFocus: m, hasError: c, FieldLayout: i } = r, { inputId: h, labelId: u, ariaDescribedBy: L } = U(), E = I(e, v.Label), g = I(e, v.Options), C = I(e, v.Description), l = I(e, v.Error), O = y(() => n || [], [
|
|
18
18
|
n
|
|
19
19
|
]), V = $((b) => {
|
|
20
20
|
s == null || s(b);
|
|
@@ -31,7 +31,7 @@ const B = "Other", le = (e, t) => e.some((r) => !t.includes(r)), N = (e, t) => e
|
|
|
31
31
|
required: p,
|
|
32
32
|
onBlur: f,
|
|
33
33
|
onFocus: m
|
|
34
|
-
}, /* @__PURE__ */ o.createElement(
|
|
34
|
+
}, /* @__PURE__ */ o.createElement(M, {
|
|
35
35
|
className: t,
|
|
36
36
|
"aria-labelledby": u,
|
|
37
37
|
value: O,
|
|
@@ -49,14 +49,14 @@ const B = "Other", le = (e, t) => e.some((r) => !t.includes(r)), N = (e, t) => e
|
|
|
49
49
|
"data-columns": p
|
|
50
50
|
}, n == null ? void 0 : n.map((i, h) => {
|
|
51
51
|
const u = i.value ?? i.label;
|
|
52
|
-
return
|
|
52
|
+
return F(m, {
|
|
53
53
|
key: i.id || i.label,
|
|
54
54
|
value: u,
|
|
55
55
|
label: i.label,
|
|
56
56
|
isFirst: h === 0,
|
|
57
57
|
fieldId: a
|
|
58
58
|
});
|
|
59
|
-
}), s &&
|
|
59
|
+
}), s && F(m, {
|
|
60
60
|
key: B,
|
|
61
61
|
value: B,
|
|
62
62
|
label: c,
|
|
@@ -67,7 +67,7 @@ const B = "Other", le = (e, t) => e.some((r) => !t.includes(r)), N = (e, t) => e
|
|
|
67
67
|
return /* @__PURE__ */ o.createElement("span", {
|
|
68
68
|
className: e
|
|
69
69
|
}, r);
|
|
70
|
-
},
|
|
70
|
+
}, k = ({ children: e, className: t, ...r }) => {
|
|
71
71
|
const { value: a, label: n, isFirst: s = !1, isOther: d = !1, fieldId: p } = r, f = R(), { value: m, onChange: c, disabled: i, readOnly: h, hasError: u, options: L } = f, E = w(null);
|
|
72
72
|
Y(() => {
|
|
73
73
|
var b;
|
|
@@ -75,9 +75,9 @@ const B = "Other", le = (e, t) => e.some((r) => !t.includes(r)), N = (e, t) => e
|
|
|
75
75
|
preventScroll: !0
|
|
76
76
|
}));
|
|
77
77
|
}, p);
|
|
78
|
-
const g = I(e,
|
|
78
|
+
const g = I(e, k.Label), C = I(e, k.Input), l = y(() => m || [], [
|
|
79
79
|
m
|
|
80
|
-
]), O =
|
|
80
|
+
]), O = y(() => d ? l.find((b) => b === n || b.startsWith(`${n}: `)) || n : a, [
|
|
81
81
|
d,
|
|
82
82
|
l,
|
|
83
83
|
n,
|
|
@@ -97,30 +97,30 @@ const B = "Other", le = (e, t) => e.some((r) => !t.includes(r)), N = (e, t) => e
|
|
|
97
97
|
L,
|
|
98
98
|
l
|
|
99
99
|
]);
|
|
100
|
-
return /* @__PURE__ */ o.createElement(
|
|
100
|
+
return /* @__PURE__ */ o.createElement(j, {
|
|
101
101
|
value: O,
|
|
102
102
|
onChange: d ? V : void 0,
|
|
103
103
|
isDisabled: i,
|
|
104
104
|
isReadOnly: h,
|
|
105
105
|
isInvalid: u
|
|
106
|
-
}, /* @__PURE__ */ o.createElement(
|
|
106
|
+
}, /* @__PURE__ */ o.createElement(z, {
|
|
107
107
|
ref: E,
|
|
108
108
|
className: t,
|
|
109
109
|
"data-hook": `checkbox-${n}`
|
|
110
|
-
}, ({ isSelected: b, isHovered: D, isFocused: x }) => /* @__PURE__ */ o.createElement(o.Fragment, null,
|
|
110
|
+
}, ({ isSelected: b, isHovered: D, isFocused: x }) => /* @__PURE__ */ o.createElement(o.Fragment, null, F(C, {
|
|
111
111
|
isSelected: b,
|
|
112
112
|
isHovered: D,
|
|
113
113
|
isFocused: x
|
|
114
|
-
}),
|
|
114
|
+
}), F(g, {
|
|
115
115
|
label: n
|
|
116
116
|
}))));
|
|
117
117
|
};
|
|
118
|
-
|
|
119
|
-
|
|
118
|
+
k.Label = re;
|
|
119
|
+
k.Input = ne;
|
|
120
120
|
const T = ({ children: e, ...t }) => {
|
|
121
|
-
const { value: r, label: a, isFirst: n = !1, isOther: s = !1, fieldId: d } = t, p = R(), { value: f, onChange: m, options: c, addOtherPlaceholder: i, otherInputCharacterLimit: h, disabled: u, readOnly: L, hasError: E } = p, g = I(e,
|
|
121
|
+
const { value: r, label: a, isFirst: n = !1, isOther: s = !1, fieldId: d } = t, p = R(), { value: f, onChange: m, options: c, addOtherPlaceholder: i, otherInputCharacterLimit: h, disabled: u, readOnly: L, hasError: E } = p, g = I(e, k), C = I(e, G), l = y(() => f || [], [
|
|
122
122
|
f
|
|
123
|
-
]), O =
|
|
123
|
+
]), O = y(() => {
|
|
124
124
|
if (!s)
|
|
125
125
|
return !1;
|
|
126
126
|
const V = S(c || []);
|
|
@@ -130,13 +130,13 @@ const T = ({ children: e, ...t }) => {
|
|
|
130
130
|
l,
|
|
131
131
|
c
|
|
132
132
|
]);
|
|
133
|
-
return /* @__PURE__ */ o.createElement(o.Fragment, null,
|
|
133
|
+
return /* @__PURE__ */ o.createElement(o.Fragment, null, F(g, {
|
|
134
134
|
value: r,
|
|
135
135
|
label: a,
|
|
136
136
|
isFirst: n,
|
|
137
137
|
isOther: s,
|
|
138
138
|
fieldId: d
|
|
139
|
-
}), s && O &&
|
|
139
|
+
}), s && O && F(C, {
|
|
140
140
|
fieldValue: l,
|
|
141
141
|
onChange: m,
|
|
142
142
|
label: a,
|
|
@@ -162,7 +162,7 @@ const T = ({ children: e, ...t }) => {
|
|
|
162
162
|
u,
|
|
163
163
|
h
|
|
164
164
|
]);
|
|
165
|
-
const g =
|
|
165
|
+
const g = y(() => Q((l) => {
|
|
166
166
|
const O = S(u || []), V = a.filter((x) => O.includes(x)), b = l ? `${h}: ${l}` : s, D = [
|
|
167
167
|
...V,
|
|
168
168
|
b
|
|
@@ -179,7 +179,7 @@ const T = ({ children: e, ...t }) => {
|
|
|
179
179
|
}, [
|
|
180
180
|
g
|
|
181
181
|
]);
|
|
182
|
-
return /* @__PURE__ */ o.createElement(
|
|
182
|
+
return /* @__PURE__ */ o.createElement(J, {
|
|
183
183
|
"aria-label": i,
|
|
184
184
|
value: L,
|
|
185
185
|
onChange: C,
|
|
@@ -187,7 +187,7 @@ const T = ({ children: e, ...t }) => {
|
|
|
187
187
|
isReadOnly: m,
|
|
188
188
|
isInvalid: c,
|
|
189
189
|
className: e
|
|
190
|
-
}, /* @__PURE__ */ o.createElement(
|
|
190
|
+
}, /* @__PURE__ */ o.createElement(K, {
|
|
191
191
|
className: t,
|
|
192
192
|
placeholder: d,
|
|
193
193
|
maxLength: p,
|
|
@@ -197,7 +197,7 @@ const T = ({ children: e, ...t }) => {
|
|
|
197
197
|
v.Label = te;
|
|
198
198
|
v.Options = _;
|
|
199
199
|
_.Option = T;
|
|
200
|
-
T.Checkbox =
|
|
200
|
+
T.Checkbox = k;
|
|
201
201
|
T.OtherInput = G;
|
|
202
202
|
v.Description = Z;
|
|
203
203
|
v.Error = ee;
|
package/dist/component/{checkbox-group-field-rac-BA60EPAN.js → checkbox-group-field-rac-Dxrc2F4x.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-CiobdaVa.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-DUTR4mcg.js";
|
|
7
|
+
import { s } from "./field-rac.module-ts2t4WUO.js";
|
|
8
|
+
import { U as i, aa as E, p, r as C, K as O, G as _, q as I } from "./form-GAuLAdjq.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-ByDw6j7c.js";
|
|
11
|
+
import { u as R } from "./use-text-input-class-name-CmxSw6bY.js";
|
|
12
12
|
const u = ({ content: r, locale: o }) => /* @__PURE__ */ e.createElement(m, {
|
|
13
13
|
content: r,
|
|
14
14
|
locale: o
|