@wix/form-elements 1.216.0 → 1.218.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-obvkIxlW.js → appointment-rac-BHOy_R7-.js} +4 -4
- package/dist/component/{bookings-address-rac-CZa9a87G.js → bookings-address-rac-BCrQv66p.js} +1 -1
- package/dist/component/{bookings-email-rac-m6v3w8mr.js → bookings-email-rac-DmRfdxfb.js} +1 -1
- package/dist/component/{bookings-first-name-rac-Mofwr9rJ.js → bookings-first-name-rac-BXO3f2gd.js} +1 -1
- package/dist/component/{bookings-header-rac-Do1DvJ7m.js → bookings-header-rac-CO6AOevd.js} +1 -1
- package/dist/component/{bookings-last-name-rac-BlRF6uxD.js → bookings-last-name-rac-BJBEASFi.js} +1 -1
- package/dist/component/{bookings-login-bar-rac-dEw_cBua.js → bookings-login-bar-rac-BIAIfq4E.js} +5 -5
- package/dist/component/{bookings-phone-rac-DSHi8EoI.js → bookings-phone-rac-Ccj4N7sU.js} +1 -1
- package/dist/component/{bookings-rich-text-rac-D1pEioKF.js → bookings-rich-text-rac-B3HZ904h.js} +1 -1
- package/dist/component/{checkbox-field-rac-DB6OkQVn.js → checkbox-field-rac-CMLQboNZ.js} +43 -43
- package/dist/component/{checkbox-group-field-headless-DaZpfrAT.js → checkbox-group-field-headless-BoPu_anP.js} +41 -41
- package/dist/component/{checkbox-group-field-rac-DQyoeeOu.js → checkbox-group-field-rac-DDkB4mAS.js} +4 -4
- package/dist/component/{checkbox-group-rac-K1CohuW5.js → checkbox-group-rac-CYRjp2pd.js} +1 -1
- package/dist/component/{checkbox-rac-CGPLFefU.js → checkbox-rac-CZtOcpN3.js} +1 -1
- package/dist/component/{contacts-address-rac-D_whIRtO.js → contacts-address-rac-CTcU_s2X.js} +1 -1
- package/dist/component/{contacts-birthdate-rac-yvBgsleM.js → contacts-birthdate-rac-CfoYd88-.js} +1 -1
- package/dist/component/{contacts-company-rac-dv-M3X8Q.js → contacts-company-rac-BFa1_U3K.js} +1 -1
- package/dist/component/{contacts-email-rac-CKFkxHeH.js → contacts-email-rac-DnAo-YRv.js} +1 -1
- package/dist/component/{contacts-first-name-rac-DH_mqqVL.js → contacts-first-name-rac-CXaZzVt1.js} +1 -1
- package/dist/component/{contacts-last-name-rac-D1hViu7t.js → contacts-last-name-rac-DfpXadTk.js} +1 -1
- package/dist/component/{contacts-phone-rac-D5lEUsgX.js → contacts-phone-rac-CCwC37Ud.js} +1 -1
- package/dist/component/{contacts-position-rac-C5WN-obt.js → contacts-position-rac-CvMNYTKL.js} +1 -1
- package/dist/component/{contacts-subscribe-rac-C0TeOnX-.js → contacts-subscribe-rac-vL2jR6hR.js} +1 -1
- package/dist/component/{contacts-tax-id-rac-K4f8cUph.js → contacts-tax-id-rac-CrFhrlkk.js} +1 -1
- package/dist/component/{date-availability-ta65eupL.js → date-availability-5zvsa_GI.js} +1 -1
- package/dist/component/{date-input-field-rac-Bqkxxe1x.js → date-input-field-rac-BQuCwFBz.js} +43 -43
- package/dist/component/{date-input-rac-DOrOad7M.js → date-input-rac-DKzwySbG.js} +1 -1
- package/dist/component/{date-picker-field-rac-dOXkkSun.js → date-picker-field-rac-D-B3bNeU.js} +35 -35
- package/dist/component/{date-picker-rac-D8KBZ1cw.js → date-picker-rac-DjYsBhgo.js} +1 -1
- package/dist/component/{date-time-input-field-rac-BCHUvKca.js → date-time-input-field-rac-BECpkgB2.js} +30 -30
- package/dist/component/{date-time-input-rac-BDFKogee.js → date-time-input-rac-FbqGdzfB.js} +1 -1
- package/dist/component/{dext-checkbox-group-rac-D5KPRINX.js → dext-checkbox-group-rac-BtSRkEFa.js} +2 -2
- package/dist/component/{dext-checkbox-rac-x-lXF3ag.js → dext-checkbox-rac-BnC_NNyy.js} +1 -1
- package/dist/component/{dext-date-picker-rac-B5K5u_Ps.js → dext-date-picker-rac-okrwxNz9.js} +1 -1
- package/dist/component/{dext-date-time-input-rac-iVMwamqD.js → dext-date-time-input-rac-DHKRYBUe.js} +1 -1
- package/dist/component/{dext-dropdown-rac-B44HQTxy.js → dext-dropdown-rac-1T_Ufw_J.js} +1 -1
- package/dist/component/{dext-email-rac-B7QAR6VC.js → dext-email-rac-BY3bKE0q.js} +1 -1
- package/dist/component/{dext-number-input-rac-CNa31Dkr.js → dext-number-input-rac-CFnKXD1l.js} +1 -1
- package/dist/component/{dext-phone-rac-28tGCd-t.js → dext-phone-rac-LT9InJXw.js} +1 -1
- package/dist/component/{dext-radio-group-rac-Bl2Ge5R5.js → dext-radio-group-rac-BUebk1mz.js} +2 -2
- package/dist/component/{dext-rating-input-rac-BkH9oIi5.js → dext-rating-input-rac-Drk4nKuW.js} +1 -1
- package/dist/component/{dext-tags-rac-B5FVVp1v.js → dext-tags-rac-BcW2-hht.js} +2 -2
- package/dist/component/{dext-text-area-rac-DKm2CHff.js → dext-text-area-rac-ew2HEDVz.js} +1 -1
- package/dist/component/{dext-text-input-rac-BC55g3Hi.js → dext-text-input-rac-BhhGEp-y.js} +1 -1
- package/dist/component/{dext-url-input-rac-BhoiLcDo.js → dext-url-input-rac-DKPl-POV.js} +1 -1
- package/dist/component/{donation-rac-BKjG_IJW.js → donation-rac-B9w7zHLs.js} +50 -50
- package/dist/component/{dropdown-field-rac-B7Xh6cx8.js → dropdown-field-rac-CyIgQ8Wg.js} +3 -3
- package/dist/component/{dropdown-rac-D8P7PqXg.js → dropdown-rac-D4zhCab8.js} +1 -1
- package/dist/component/{ecom-address-rac-pQw85I2u.js → ecom-address-rac-Cgc5vi9N.js} +1 -1
- package/dist/component/{ecom-subscription-checkbox-rac-CtHEpz27.js → ecom-subscription-checkbox-rac-Ci19HUzq.js} +2 -2
- package/dist/component/{email-input-field-rac-DJKj9_MB.js → email-input-field-rac-DX-z3AgN.js} +29 -29
- package/dist/component/{events-repeater-rac-ByGRYJRW.js → events-repeater-rac-XGxIXTW0.js} +29 -29
- package/dist/component/{events-rsvp-rac-CxCauRvS.js → events-rsvp-rac-CMEcer8W.js} +3 -3
- package/dist/component/{field-error-headless-Eh1lMElk.js → field-error-headless-fX6PeZaI.js} +1 -1
- package/dist/component/{field-label-headless-BqMxU6y-.js → field-label-headless-CoLjciGG.js} +5 -5
- package/dist/component/{file-upload-rac-C-3Xb3kq.js → file-upload-rac-N6_i0ky0.js} +88 -88
- package/dist/component/{fixed-payment-rac-XxysAIq7.js → fixed-payment-rac-DB6BtjkX.js} +7 -7
- package/dist/component/{form-DQjFn9dy.js → form-cgY_BDTU.js} +1444 -1426
- package/dist/component/form.js +1 -1
- package/dist/component/{header-field-rac-C9tk53e6.js → header-field-rac-CwNoeHks.js} +2 -2
- package/dist/component/{header-rac-CrgF_o1e.js → header-rac-DefKb4Vd.js} +1 -1
- package/dist/component/{image-choice-rac-N7NLy50u.js → image-choice-rac-CZFYVSzP.js} +25 -25
- package/dist/component/{index-CUqQt_K0.js → index-D1ybDmS5.js} +2 -2
- package/dist/component/{index-D539Cefk.js → index-DUVXPUGc.js} +513 -462
- package/dist/component/{isObjectLike-BXMsjR41.js → isObjectLike-93vxyYs1.js} +1 -1
- package/dist/component/multiline-address-field-rac-BN_Tnrno.js +1738 -0
- package/dist/component/{multiline-address-rac-C-8KYUEy.js → multiline-address-rac-CoF0BwJI.js} +1 -1
- package/dist/component/{number-input-field-rac-DrpgAvrT.js → number-input-field-rac-BVdfzTwW.js} +21 -21
- package/dist/component/{number-input-rac-hZ1UmeEv.js → number-input-rac-D-A2ybtN.js} +1 -1
- package/dist/component/{password-rac-DU5Zii-x.js → password-rac-CbUBNreW.js} +26 -26
- package/dist/component/{payment-input-rac-BzDtJSoa.js → payment-input-rac-BXdDXgXp.js} +46 -46
- package/dist/component/{phone-input-field-rac-CBviQ-on.js → phone-input-field-rac-CjmpG7p9.js} +57 -57
- package/dist/component/{phone-rac-B4n-wlvj.js → phone-rac-D3g5Pi2p.js} +1 -1
- package/dist/component/{product-list-rac-CYxJDesp.js → product-list-rac-gJvJaUnQ.js} +35 -35
- package/dist/component/{quiz-radio-group-rac-BLGXjhrS.js → quiz-radio-group-rac-YCKwAv5G.js} +1 -1
- package/dist/component/{radio-button-module-classes-D0gXibxL.js → radio-button-module-classes-2nfcqSJp.js} +15 -15
- package/dist/component/{radio-group-field-rac-D3JvbED7.js → radio-group-field-rac-BBYaCpeZ.js} +4 -4
- package/dist/component/{radio-group-rac-CTk1SQPS.js → radio-group-rac-fYuYtO48.js} +1 -1
- package/dist/component/{rating-input-field-rac-hDcxRY-7.js → rating-input-field-rac-sPYk1nWc.js} +20 -20
- package/dist/component/{rating-input-rac-CaEUM0ek.js → rating-input-rac-CiWqxkPO.js} +1 -1
- package/dist/component/{rich-content-rac.module-D11y-VmE.js → rich-content-rac.module-BjcbV5CK.js} +5 -5
- package/dist/component/{rich-text-field-rac-BNB_Ek6y.js → rich-text-field-rac-DY0vRG7M.js} +4 -4
- package/dist/component/{rich-text-rac-Jo_aEgLC.js → rich-text-rac-BngE_MAC.js} +1 -1
- package/dist/component/{service-dropdown-rac-CzSP8CC_.js → service-dropdown-rac-Db53P8Fm.js} +13 -13
- package/dist/component/{services-multi-choice-rac-aS5N5-xK.js → services-multi-choice-rac-Cr791rTd.js} +9 -9
- package/dist/component/{signature-rac-_tiY8h_q.js → signature-rac-BCNYIwad.js} +41 -41
- package/dist/component/{submit-button-rac-DKc6QhMf.js → submit-button-rac-CyyEQGsz.js} +10 -10
- package/dist/component/{tags-field-rac-BCO7fpBv.js → tags-field-rac-k3HHiR5C.js} +24 -24
- package/dist/component/{tags-rac-q3HNn7ue.js → tags-rac-nOXYrsHv.js} +1 -1
- package/dist/component/{text-area-field-rac-BtQ8MQSN.js → text-area-field-rac-CwpxShM0.js} +22 -22
- package/dist/component/{text-area-rac-Dc2q2Oxx.js → text-area-rac-CkKcWyW5.js} +1 -1
- package/dist/component/{text-input-field-rac-DO5PDRBN.js → text-input-field-rac-DvIwNwn3.js} +3 -3
- package/dist/component/{text-input-headless-BGSp91Fx.js → text-input-headless-vfGxjFpa.js} +9 -9
- package/dist/component/{text-input-rac-B2OO3yVY.js → text-input-rac-DoVI2HNp.js} +1 -1
- package/dist/component/{time-input-rac-BICb4Q3S.js → time-input-rac-DPbbdnl3.js} +16 -16
- package/dist/component/{url-input-field-rac-ptvkhiHT.js → url-input-field-rac-CiZi4oVe.js} +20 -20
- package/dist/component/{url-input-rac-DOLmuZEu.js → url-input-rac-C-IvLpA8.js} +1 -1
- package/dist/component/{use-dropdown-option-class-name-CJmAINAg.js → use-dropdown-option-class-name-CMgoymWE.js} +2 -2
- package/dist/component/{use-dropdown-trigger-class-name-DA0MtxzO.js → use-dropdown-trigger-class-name-BH0PyTH_.js} +24 -24
- package/dist/component/{use-element-state-class-name-ByxBZ_3F.js → use-element-state-class-name-DiZjY9WE.js} +1 -1
- package/dist/component/{use-hoverable-input-class-name-lKS_yzxr.js → use-hoverable-input-class-name-QpNEvrdn.js} +2 -2
- package/dist/component/{use-is-forced-open-dropdown-ByGtfX25.js → use-is-forced-open-dropdown-CHh9nGJz.js} +4 -4
- package/dist/component/{use-service-options-base-CsY2G8DG.js → use-service-options-base-BGB82e2d.js} +4 -4
- package/dist/component/use-text-input-class-name-_CjB7lhB.js +6 -0
- package/package.json +2 -2
- package/dist/component/multiline-address-field-rac-B3NKIdbr.js +0 -1664
- package/dist/component/use-text-input-class-name-CbJQlesN.js +0 -6
|
@@ -6,12 +6,12 @@ import { E as lt } from "./error-icon-hZxQ6DEy.js";
|
|
|
6
6
|
import { g as ct, c as Ce } from "./calendar.module-BMUyMVja.js";
|
|
7
7
|
import { H as me } from "./custom-focus-class-_483Pkwp.js";
|
|
8
8
|
import { s as ue } from "./field-rac.module-DcyJyi2B.js";
|
|
9
|
-
import {
|
|
10
|
-
import { u as vt } from "./use-element-state-class-name-
|
|
9
|
+
import { bF as Ee, bE as mt, bJ as ge, bH as ut, bY as dt, bX as Dt, bN as ie, bK as le, bP as ft, bM as Et, F as St, h as _t, X as Nt, am as pt, g as At, j as We, i as yt, n as It, k as Ot, l as Lt, M as Tt, I as bt, m as gt } from "./form-cgY_BDTU.js";
|
|
10
|
+
import { u as vt } from "./use-element-state-class-name-DiZjY9WE.js";
|
|
11
11
|
import { ListBox as Rt, Button as ve, ListBoxItem as kt, RadioGroup as Mt, RadioField as Ft, RadioButton as wt } from "react-aria-components";
|
|
12
12
|
import { f as v, a as Se } from "./find-child-C60k4CxG.js";
|
|
13
|
-
import { D as ht, E as Ct } from "./field-error-headless-
|
|
14
|
-
import { L as Wt } from "./field-label-headless-
|
|
13
|
+
import { D as ht, E as Ct } from "./field-error-headless-fX6PeZaI.js";
|
|
14
|
+
import { L as Wt } from "./field-label-headless-CoLjciGG.js";
|
|
15
15
|
import { F as xt } from "./fieldset-headless-CD3fds9J.js";
|
|
16
16
|
import "date-fns";
|
|
17
17
|
import { V as Ge } from "./headless-styles-CmcyA_pi.js";
|
package/dist/component/{bookings-login-bar-rac-dEw_cBua.js → bookings-login-bar-rac-BIAIfq4E.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import o from "react";
|
|
2
2
|
import E from "classnames";
|
|
3
|
-
import {
|
|
3
|
+
import { bN as d, bY as b, bF as f, bJ as x, W as p } from "./form-cgY_BDTU.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 }) => {
|
|
@@ -44,11 +44,11 @@ const l = ({ children: n }) => {
|
|
|
44
44
|
l.LoginBar = _;
|
|
45
45
|
l.Text = N;
|
|
46
46
|
l.Button = F;
|
|
47
|
-
const T = "_container_1ixk2_1", C = "_text_1ixk2_34",
|
|
47
|
+
const T = "_container_1ixk2_1", C = "_text_1ixk2_34", k = "_button_1ixk2_39", u = {
|
|
48
48
|
container: T,
|
|
49
49
|
text: C,
|
|
50
|
-
button:
|
|
51
|
-
},
|
|
50
|
+
button: k
|
|
51
|
+
}, A = () => {
|
|
52
52
|
const { userData: n, language: r } = f(), { actions: t } = x();
|
|
53
53
|
return /* @__PURE__ */ o.createElement(l, null, /* @__PURE__ */ o.createElement(l.LoginBar, {
|
|
54
54
|
email: n == null ? void 0 : n.email,
|
|
@@ -67,7 +67,7 @@ const T = "_container_1ixk2_1", C = "_text_1ixk2_34", I = "_button_1ixk2_39", u
|
|
|
67
67
|
}), /* @__PURE__ */ o.createElement(l.Button, {
|
|
68
68
|
className: u.button
|
|
69
69
|
})));
|
|
70
|
-
}, h = () => /* @__PURE__ */ o.createElement(
|
|
70
|
+
}, h = () => /* @__PURE__ */ o.createElement(A, null);
|
|
71
71
|
export {
|
|
72
72
|
h as BookingsLoginBarRAC
|
|
73
73
|
};
|
|
@@ -2,16 +2,16 @@ import { RicosViewer as $n } from "@wix/ricos/viewer";
|
|
|
2
2
|
import B from "classnames";
|
|
3
3
|
import g, { useMemo as Jn, useRef as Yn, useCallback as Qn } from "react";
|
|
4
4
|
import { CheckboxField as Zn, CheckboxButton as ei } from "react-aria-components";
|
|
5
|
-
import { bk as ri,
|
|
5
|
+
import { bk as ri, bN as et, b2 as Zr, b1 as ln, bY as ti, bF as ai, bs as ni, bK as ii, bP as si, bW as oi, o as ui, am as ci, t as fi, aY as li, M as _i, I as vi, s as hi } from "./form-cgY_BDTU.js";
|
|
6
6
|
import { f as W, a as yt } from "./find-child-C60k4CxG.js";
|
|
7
|
-
import { D as pi, E as di } from "./field-error-headless-
|
|
7
|
+
import { D as pi, E as di } from "./field-error-headless-fX6PeZaI.js";
|
|
8
8
|
import { Node_Type as yi } from "@wix/ricos/schema";
|
|
9
|
-
import { c as re, r as $, e as E, a as J, d as bi, b as gi } from "./isObjectLike-
|
|
9
|
+
import { c as re, r as $, e as E, a as J, d as bi, b as gi } from "./isObjectLike-93vxyYs1.js";
|
|
10
10
|
import { S as qi } from "./selection-indicator-XQ8MYHUQ.js";
|
|
11
11
|
import { E as Ci } from "./error-icon-hZxQ6DEy.js";
|
|
12
12
|
import { C as Ai } from "./checkbox-indicator-module-classes-DOxE4UQg.js";
|
|
13
13
|
import { s as oe } from "./field-rac.module-DcyJyi2B.js";
|
|
14
|
-
import { u as mi } from "./use-element-state-class-name-
|
|
14
|
+
import { u as mi } from "./use-element-state-class-name-DiZjY9WE.js";
|
|
15
15
|
var ue, bt;
|
|
16
16
|
function Ii() {
|
|
17
17
|
if (bt) return ue;
|
|
@@ -210,7 +210,7 @@ function Li() {
|
|
|
210
210
|
return Ie = _, Ie;
|
|
211
211
|
}
|
|
212
212
|
var Te, Lt;
|
|
213
|
-
function
|
|
213
|
+
function Fi() {
|
|
214
214
|
if (Lt) return Te;
|
|
215
215
|
Lt = 1;
|
|
216
216
|
function e(r, t) {
|
|
@@ -218,21 +218,21 @@ function Mi() {
|
|
|
218
218
|
}
|
|
219
219
|
return Te = e, Te;
|
|
220
220
|
}
|
|
221
|
-
var Re,
|
|
221
|
+
var Re, Ft;
|
|
222
222
|
function L() {
|
|
223
|
-
if (
|
|
224
|
-
|
|
225
|
-
var e = Li(), r =
|
|
223
|
+
if (Ft) return Re;
|
|
224
|
+
Ft = 1;
|
|
225
|
+
var e = Li(), r = Fi();
|
|
226
226
|
function t(a, n) {
|
|
227
227
|
var i = r(a, n);
|
|
228
228
|
return e(i) ? i : void 0;
|
|
229
229
|
}
|
|
230
230
|
return Re = t, Re;
|
|
231
231
|
}
|
|
232
|
-
var Se,
|
|
232
|
+
var Se, Mt;
|
|
233
233
|
function rt() {
|
|
234
|
-
if (
|
|
235
|
-
|
|
234
|
+
if (Mt) return Se;
|
|
235
|
+
Mt = 1;
|
|
236
236
|
var e = L(), r = E(), t = e(r, "Map");
|
|
237
237
|
return Se = t, Se;
|
|
238
238
|
}
|
|
@@ -244,7 +244,7 @@ function ne() {
|
|
|
244
244
|
return Ee = r, Ee;
|
|
245
245
|
}
|
|
246
246
|
var Oe, Bt;
|
|
247
|
-
function
|
|
247
|
+
function Mi() {
|
|
248
248
|
if (Bt) return Oe;
|
|
249
249
|
Bt = 1;
|
|
250
250
|
var e = ne();
|
|
@@ -304,7 +304,7 @@ var we, Ht;
|
|
|
304
304
|
function Gi() {
|
|
305
305
|
if (Ht) return we;
|
|
306
306
|
Ht = 1;
|
|
307
|
-
var e =
|
|
307
|
+
var e = Mi(), r = Ki(), t = Bi(), a = ki(), n = Ni();
|
|
308
308
|
function i(s) {
|
|
309
309
|
var o = -1, u = s == null ? 0 : s.length;
|
|
310
310
|
for (this.clear(); ++o < u; ) {
|
|
@@ -328,26 +328,26 @@ function Ui() {
|
|
|
328
328
|
}
|
|
329
329
|
return Le = a, Le;
|
|
330
330
|
}
|
|
331
|
-
var
|
|
331
|
+
var Fe, zt;
|
|
332
332
|
function Hi() {
|
|
333
|
-
if (zt) return
|
|
333
|
+
if (zt) return Fe;
|
|
334
334
|
zt = 1;
|
|
335
335
|
function e(r) {
|
|
336
336
|
var t = typeof r;
|
|
337
337
|
return t == "string" || t == "number" || t == "symbol" || t == "boolean" ? r !== "__proto__" : r === null;
|
|
338
338
|
}
|
|
339
|
-
return
|
|
339
|
+
return Fe = e, Fe;
|
|
340
340
|
}
|
|
341
|
-
var
|
|
341
|
+
var Me, Wt;
|
|
342
342
|
function ie() {
|
|
343
|
-
if (Wt) return
|
|
343
|
+
if (Wt) return Me;
|
|
344
344
|
Wt = 1;
|
|
345
345
|
var e = Hi();
|
|
346
346
|
function r(t, a) {
|
|
347
347
|
var n = t.__data__;
|
|
348
348
|
return e(a) ? n[typeof a == "string" ? "string" : "hash"] : n.map;
|
|
349
349
|
}
|
|
350
|
-
return
|
|
350
|
+
return Me = r, Me;
|
|
351
351
|
}
|
|
352
352
|
var Ke, Xt;
|
|
353
353
|
function Vi() {
|
|
@@ -829,10 +829,10 @@ function ds() {
|
|
|
829
829
|
}
|
|
830
830
|
return Ar = t, Ar;
|
|
831
831
|
}
|
|
832
|
-
var mr,
|
|
832
|
+
var mr, Fa;
|
|
833
833
|
function mn() {
|
|
834
|
-
if (
|
|
835
|
-
|
|
834
|
+
if (Fa) return mr;
|
|
835
|
+
Fa = 1;
|
|
836
836
|
function e(r, t) {
|
|
837
837
|
for (var a = -1, n = t.length, i = r.length; ++a < n; )
|
|
838
838
|
r[i + a] = t[a];
|
|
@@ -840,10 +840,10 @@ function mn() {
|
|
|
840
840
|
}
|
|
841
841
|
return mr = e, mr;
|
|
842
842
|
}
|
|
843
|
-
var Ir,
|
|
843
|
+
var Ir, Ma;
|
|
844
844
|
function In() {
|
|
845
|
-
if (
|
|
846
|
-
|
|
845
|
+
if (Ma) return Ir;
|
|
846
|
+
Ma = 1;
|
|
847
847
|
var e = qn(), r = e(Object.getPrototypeOf, Object);
|
|
848
848
|
return Ir = r, Ir;
|
|
849
849
|
}
|
|
@@ -961,23 +961,23 @@ function Is() {
|
|
|
961
961
|
}
|
|
962
962
|
return Lr = t, Lr;
|
|
963
963
|
}
|
|
964
|
-
var
|
|
964
|
+
var Fr, $a;
|
|
965
965
|
function Ts() {
|
|
966
|
-
if ($a) return
|
|
966
|
+
if ($a) return Fr;
|
|
967
967
|
$a = 1;
|
|
968
968
|
var e = E(), r = e.Uint8Array;
|
|
969
|
-
return
|
|
969
|
+
return Fr = r, Fr;
|
|
970
970
|
}
|
|
971
|
-
var
|
|
971
|
+
var Mr, Ja;
|
|
972
972
|
function ft() {
|
|
973
|
-
if (Ja) return
|
|
973
|
+
if (Ja) return Mr;
|
|
974
974
|
Ja = 1;
|
|
975
975
|
var e = Ts();
|
|
976
976
|
function r(t) {
|
|
977
977
|
var a = new t.constructor(t.byteLength);
|
|
978
978
|
return new e(a).set(new e(t)), a;
|
|
979
979
|
}
|
|
980
|
-
return
|
|
980
|
+
return Mr = r, Mr;
|
|
981
981
|
}
|
|
982
982
|
var Kr, Ya;
|
|
983
983
|
function Rs() {
|
|
@@ -1119,21 +1119,21 @@ function Ls() {
|
|
|
1119
1119
|
return Wr = a, Wr;
|
|
1120
1120
|
}
|
|
1121
1121
|
var Xr, un;
|
|
1122
|
-
function
|
|
1122
|
+
function Fs() {
|
|
1123
1123
|
if (un) return Xr;
|
|
1124
1124
|
un = 1;
|
|
1125
1125
|
var e = Ls(), r = at(), t = nt(), a = t && t.isSet, n = a ? r(a) : e;
|
|
1126
1126
|
return Xr = n, Xr;
|
|
1127
1127
|
}
|
|
1128
1128
|
var $r, cn;
|
|
1129
|
-
function
|
|
1129
|
+
function Ms() {
|
|
1130
1130
|
if (cn) return $r;
|
|
1131
1131
|
cn = 1;
|
|
1132
|
-
var e = Yi(), r = Qi(), t = dn(), a = cs(), n = _s(), i = vs(), s = hs(), o = ds(), u = ys(), c = bs(), h = gs(), _ = ct(), p = Is(), y = js(), q = xs(), A = tt(), C = yn(), b = ws(), d = $(), S =
|
|
1133
|
-
v[I] = v[G] = v[Ln] = v[
|
|
1134
|
-
function Y(l,
|
|
1135
|
-
var m, Z =
|
|
1136
|
-
if (
|
|
1132
|
+
var e = Yi(), r = Qi(), t = dn(), a = cs(), n = _s(), i = vs(), s = hs(), o = ds(), u = ys(), c = bs(), h = gs(), _ = ct(), p = Is(), y = js(), q = xs(), A = tt(), C = yn(), b = ws(), d = $(), S = Fs(), R = st(), O = ot(), j = 1, k = 2, N = 4, I = "[object Arguments]", G = "[object Array]", f = "[object Boolean]", D = "[object Date]", U = "[object Error]", lt = "[object Function]", Sn = "[object GeneratorFunction]", En = "[object Map]", On = "[object Number]", _t = "[object Object]", jn = "[object RegExp]", Dn = "[object Set]", xn = "[object String]", Pn = "[object Symbol]", wn = "[object WeakMap]", Ln = "[object ArrayBuffer]", Fn = "[object DataView]", Mn = "[object Float32Array]", Kn = "[object Float64Array]", Bn = "[object Int8Array]", kn = "[object Int16Array]", Nn = "[object Int32Array]", Gn = "[object Uint8Array]", Un = "[object Uint8ClampedArray]", Hn = "[object Uint16Array]", Vn = "[object Uint32Array]", v = {};
|
|
1133
|
+
v[I] = v[G] = v[Ln] = v[Fn] = v[f] = v[D] = v[Mn] = v[Kn] = v[Bn] = v[kn] = v[Nn] = v[En] = v[On] = v[_t] = v[jn] = v[Dn] = v[xn] = v[Pn] = v[Gn] = v[Un] = v[Hn] = v[Vn] = !0, v[U] = v[lt] = v[wn] = !1;
|
|
1134
|
+
function Y(l, F, M, zn, Q, x) {
|
|
1135
|
+
var m, Z = F & j, ee = F & k, Wn = F & N;
|
|
1136
|
+
if (M && (m = Q ? M(l, zn, Q, x) : M(l)), m !== void 0)
|
|
1137
1137
|
return m;
|
|
1138
1138
|
if (!d(l))
|
|
1139
1139
|
return l;
|
|
@@ -1159,13 +1159,13 @@ function Fs() {
|
|
|
1159
1159
|
if (pt)
|
|
1160
1160
|
return pt;
|
|
1161
1161
|
x.set(l, m), S(l) ? l.forEach(function(P) {
|
|
1162
|
-
m.add(Y(P,
|
|
1162
|
+
m.add(Y(P, F, M, P, l, x));
|
|
1163
1163
|
}) : b(l) && l.forEach(function(P, w) {
|
|
1164
|
-
m.set(w, Y(P,
|
|
1164
|
+
m.set(w, Y(P, F, M, w, l, x));
|
|
1165
1165
|
});
|
|
1166
1166
|
var Xn = Wn ? ee ? h : c : ee ? O : R, dt = vt ? void 0 : Xn(l);
|
|
1167
1167
|
return r(dt || l, function(P, w) {
|
|
1168
|
-
dt && (w = P, P = l[w]), t(m, w, Y(P,
|
|
1168
|
+
dt && (w = P, P = l[w]), t(m, w, Y(P, F, M, w, l, x));
|
|
1169
1169
|
}), m;
|
|
1170
1170
|
}
|
|
1171
1171
|
return $r = Y, $r;
|
|
@@ -1174,7 +1174,7 @@ var Jr, fn;
|
|
|
1174
1174
|
function Ks() {
|
|
1175
1175
|
if (fn) return Jr;
|
|
1176
1176
|
fn = 1;
|
|
1177
|
-
var e =
|
|
1177
|
+
var e = Ms(), r = 1, t = 4;
|
|
1178
1178
|
function a(n) {
|
|
1179
1179
|
return e(n, r | t);
|
|
1180
1180
|
}
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import o, { useRef as q, useMemo as F, useCallback as $, useState as
|
|
2
|
-
import { CheckboxGroup as A, CheckboxField as
|
|
3
|
-
import { debounce as
|
|
4
|
-
import {
|
|
1
|
+
import o, { useRef as q, useMemo as F, useCallback as $, useState as w, useEffect as K } from "react";
|
|
2
|
+
import { CheckboxGroup as A, CheckboxField as M, CheckboxButton as Y, TextField as j, Input as z } from "react-aria-components";
|
|
3
|
+
import { debounce as J } from "ts-debounce";
|
|
4
|
+
import { bN as R, bK as Q, bW as U, bY as X, bP as Z } from "./form-cgY_BDTU.js";
|
|
5
5
|
import { f as I, a as k } from "./find-child-C60k4CxG.js";
|
|
6
|
-
import { D as ee, E as te } from "./field-error-headless-
|
|
7
|
-
import { L as ae } from "./field-label-headless-
|
|
6
|
+
import { D as ee, E as te } from "./field-error-headless-fX6PeZaI.js";
|
|
7
|
+
import { L as ae } from "./field-label-headless-CoLjciGG.js";
|
|
8
8
|
import { F as ne } from "./fieldset-headless-CD3fds9J.js";
|
|
9
9
|
import { S as le } from "./selection-indicator-XQ8MYHUQ.js";
|
|
10
|
-
const
|
|
10
|
+
const N = "Other", se = (e, t) => e.some((r) => !t.includes(r)), B = (e, t) => e.length > 0 && se(e, t), re = (e, t) => {
|
|
11
11
|
const r = t == null ? void 0 : t("add-other.default-other-option-label");
|
|
12
|
-
return e || r ||
|
|
12
|
+
return e || r || N;
|
|
13
13
|
}, T = (e, t) => {
|
|
14
14
|
const a = t ? t.length + 2 : 0;
|
|
15
15
|
return (e.find((s) => s.startsWith(`${t}: `)) || "").slice(a);
|
|
16
|
-
}, S = (e) => e.map((t) => t.value ?? t.label),
|
|
16
|
+
}, S = (e) => e.map((t) => t.value ?? t.label), v = ({ children: e, className: t }) => {
|
|
17
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: g } = Q(), O = q(null);
|
|
18
18
|
U(O);
|
|
19
|
-
const L = I(e,
|
|
19
|
+
const L = I(e, v.Label), V = I(e, v.Options), l = I(e, v.Description), E = I(e, v.Error), C = F(() => n || [], [
|
|
20
20
|
n
|
|
21
21
|
]), b = $((x) => {
|
|
22
22
|
s == null || s(x);
|
|
@@ -42,11 +42,11 @@ const B = "Other", se = (e, t) => e.some((r) => !t.includes(r)), N = (e, t) => e
|
|
|
42
42
|
isDisabled: d,
|
|
43
43
|
isRequired: p,
|
|
44
44
|
isInvalid: c
|
|
45
|
-
},
|
|
45
|
+
}, V)),
|
|
46
46
|
renderDescription: () => /* @__PURE__ */ o.createElement(o.Fragment, null, E, l)
|
|
47
47
|
});
|
|
48
|
-
},
|
|
49
|
-
const r = R(), { id: a, options: n, addOther: s, addOtherLabel: d, numberOfColumns: p } = r, { t: f } =
|
|
48
|
+
}, P = ({ children: e, className: t }) => {
|
|
49
|
+
const r = R(), { id: a, options: n, addOther: s, addOtherLabel: d, numberOfColumns: p } = r, { t: f } = X(), m = I(e, P.Option), c = re(d, f);
|
|
50
50
|
return /* @__PURE__ */ o.createElement("div", {
|
|
51
51
|
className: t,
|
|
52
52
|
"data-columns": p
|
|
@@ -60,8 +60,8 @@ const B = "Other", se = (e, t) => e.some((r) => !t.includes(r)), N = (e, t) => e
|
|
|
60
60
|
fieldId: a
|
|
61
61
|
});
|
|
62
62
|
}), s && k(m, {
|
|
63
|
-
key:
|
|
64
|
-
value:
|
|
63
|
+
key: N,
|
|
64
|
+
value: N,
|
|
65
65
|
label: c,
|
|
66
66
|
isOther: !0
|
|
67
67
|
}));
|
|
@@ -78,7 +78,7 @@ const B = "Other", se = (e, t) => e.some((r) => !t.includes(r)), N = (e, t) => e
|
|
|
78
78
|
preventScroll: !0
|
|
79
79
|
}));
|
|
80
80
|
}, p);
|
|
81
|
-
const L = I(e, D.Label),
|
|
81
|
+
const L = I(e, D.Label), V = I(e, D.Input), l = F(() => m || [], [
|
|
82
82
|
m
|
|
83
83
|
]), E = F(() => d ? l.find((b) => b === n || b.startsWith(`${n}: `)) || n : a, [
|
|
84
84
|
d,
|
|
@@ -88,7 +88,7 @@ const B = "Other", se = (e, t) => e.some((r) => !t.includes(r)), N = (e, t) => e
|
|
|
88
88
|
]), C = $((b) => {
|
|
89
89
|
if (!d)
|
|
90
90
|
return;
|
|
91
|
-
const x = S(g || []), y = l.filter((
|
|
91
|
+
const x = S(g || []), y = l.filter((W) => x.includes(W)), H = b ? [
|
|
92
92
|
...y,
|
|
93
93
|
n
|
|
94
94
|
] : y;
|
|
@@ -100,17 +100,17 @@ const B = "Other", se = (e, t) => e.some((r) => !t.includes(r)), N = (e, t) => e
|
|
|
100
100
|
g,
|
|
101
101
|
l
|
|
102
102
|
]);
|
|
103
|
-
return /* @__PURE__ */ o.createElement(
|
|
103
|
+
return /* @__PURE__ */ o.createElement(M, {
|
|
104
104
|
value: E,
|
|
105
105
|
onChange: d ? C : void 0,
|
|
106
106
|
isDisabled: i,
|
|
107
107
|
isReadOnly: h,
|
|
108
108
|
isInvalid: u
|
|
109
|
-
}, /* @__PURE__ */ o.createElement(
|
|
109
|
+
}, /* @__PURE__ */ o.createElement(Y, {
|
|
110
110
|
ref: O,
|
|
111
111
|
className: t,
|
|
112
112
|
"data-hook": `checkbox-${n}`
|
|
113
|
-
}, ({ isSelected: b, isHovered: x, isFocused: y }) => /* @__PURE__ */ o.createElement(o.Fragment, null, k(
|
|
113
|
+
}, ({ isSelected: b, isHovered: x, isFocused: y }) => /* @__PURE__ */ o.createElement(o.Fragment, null, k(V, {
|
|
114
114
|
isSelected: b,
|
|
115
115
|
isHovered: x,
|
|
116
116
|
isFocused: y
|
|
@@ -120,14 +120,14 @@ const B = "Other", se = (e, t) => e.some((r) => !t.includes(r)), N = (e, t) => e
|
|
|
120
120
|
};
|
|
121
121
|
D.Label = oe;
|
|
122
122
|
D.Input = le;
|
|
123
|
-
const
|
|
124
|
-
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: g, hasError: O } = p, L = I(e, D),
|
|
123
|
+
const _ = ({ children: e, ...t }) => {
|
|
124
|
+
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: g, hasError: O } = p, L = I(e, D), V = I(e, G), l = F(() => f || [], [
|
|
125
125
|
f
|
|
126
126
|
]), E = F(() => {
|
|
127
127
|
if (!s)
|
|
128
128
|
return !1;
|
|
129
129
|
const C = S(c || []);
|
|
130
|
-
return
|
|
130
|
+
return B(l, C);
|
|
131
131
|
}, [
|
|
132
132
|
s,
|
|
133
133
|
l,
|
|
@@ -139,7 +139,7 @@ const P = ({ children: e, ...t }) => {
|
|
|
139
139
|
isFirst: n,
|
|
140
140
|
isOther: s,
|
|
141
141
|
fieldId: d
|
|
142
|
-
}), s && E && k(
|
|
142
|
+
}), s && E && k(V, {
|
|
143
143
|
fieldValue: l,
|
|
144
144
|
onChange: m,
|
|
145
145
|
label: a,
|
|
@@ -153,19 +153,19 @@ const P = ({ children: e, ...t }) => {
|
|
|
153
153
|
options: c
|
|
154
154
|
}));
|
|
155
155
|
}, G = ({ className: e, inputClassName: t, ...r }) => {
|
|
156
|
-
const { fieldValue: a, onChange: n, label: s, placeholder: d, maxLength: p, disabled: f, readOnly: m, hasError: c, ariaLabel: i, addOtherLabel: h, options: u } = r, [g, O] =
|
|
156
|
+
const { fieldValue: a, onChange: n, label: s, placeholder: d, maxLength: p, disabled: f, readOnly: m, hasError: c, ariaLabel: i, addOtherLabel: h, options: u } = r, [g, O] = w(() => {
|
|
157
157
|
const l = S(u || []);
|
|
158
|
-
return
|
|
158
|
+
return B(a, l) ? T(a, h) : "";
|
|
159
159
|
});
|
|
160
|
-
|
|
161
|
-
const l = S(u || []), E =
|
|
160
|
+
K(() => {
|
|
161
|
+
const l = S(u || []), E = B(a, l);
|
|
162
162
|
O(E ? T(a, h) : "");
|
|
163
163
|
}, [
|
|
164
164
|
a,
|
|
165
165
|
u,
|
|
166
166
|
h
|
|
167
167
|
]);
|
|
168
|
-
const L = F(() =>
|
|
168
|
+
const L = F(() => J((l) => {
|
|
169
169
|
const E = S(u || []), C = a.filter((y) => E.includes(y)), b = l ? `${h}: ${l}` : s, x = [
|
|
170
170
|
...C,
|
|
171
171
|
b
|
|
@@ -177,33 +177,33 @@ const P = ({ children: e, ...t }) => {
|
|
|
177
177
|
a,
|
|
178
178
|
h,
|
|
179
179
|
s
|
|
180
|
-
]),
|
|
180
|
+
]), V = $((l) => {
|
|
181
181
|
O(l), L(l);
|
|
182
182
|
}, [
|
|
183
183
|
L
|
|
184
184
|
]);
|
|
185
|
-
return /* @__PURE__ */ o.createElement(
|
|
185
|
+
return /* @__PURE__ */ o.createElement(j, {
|
|
186
186
|
"aria-label": i,
|
|
187
187
|
value: g,
|
|
188
|
-
onChange:
|
|
188
|
+
onChange: V,
|
|
189
189
|
isDisabled: f,
|
|
190
190
|
isReadOnly: m,
|
|
191
191
|
isInvalid: c,
|
|
192
192
|
className: e
|
|
193
|
-
}, /* @__PURE__ */ o.createElement(
|
|
193
|
+
}, /* @__PURE__ */ o.createElement(z, {
|
|
194
194
|
className: t,
|
|
195
195
|
placeholder: d,
|
|
196
196
|
maxLength: p,
|
|
197
197
|
"aria-label": i
|
|
198
198
|
}));
|
|
199
199
|
};
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
200
|
+
v.Label = ae;
|
|
201
|
+
v.Options = P;
|
|
202
|
+
P.Option = _;
|
|
203
|
+
_.Checkbox = D;
|
|
204
|
+
_.OtherInput = G;
|
|
205
|
+
v.Description = ee;
|
|
206
|
+
v.Error = te;
|
|
207
207
|
export {
|
|
208
|
-
|
|
208
|
+
v as C
|
|
209
209
|
};
|
package/dist/component/{checkbox-group-field-rac-DQyoeeOu.js → checkbox-group-field-rac-DDkB4mAS.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-BoPu_anP.js";
|
|
5
5
|
import { E as n } from "./error-icon-hZxQ6DEy.js";
|
|
6
6
|
import { C as c } from "./checkbox-indicator-module-classes-DOxE4UQg.js";
|
|
7
7
|
import { s } from "./field-rac.module-DcyJyi2B.js";
|
|
8
|
-
import { X as i, am as E, p, r as C, M as O, I as _, q as I } from "./form-
|
|
8
|
+
import { X as i, am as E, p, r as C, M as O, I as _, q as I } from "./form-cgY_BDTU.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-DiZjY9WE.js";
|
|
11
|
+
import { u as R } from "./use-text-input-class-name-_CjB7lhB.js";
|
|
12
12
|
const u = ({ content: r, locale: o }) => /* @__PURE__ */ e.createElement(m, {
|
|
13
13
|
content: r,
|
|
14
14
|
locale: o
|