@wix/form-elements 1.160.0 → 1.161.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-BmHu56e5.js → appointment-rac-BubC8I9X.js} +395 -388
- package/dist/component/{bookings-address-rac-DY9l2g0h.js → bookings-address-rac-BbwvVs86.js} +1 -1
- package/dist/component/{bookings-email-rac-B5vNSOsS.js → bookings-email-rac-C2HCkcfa.js} +1 -1
- package/dist/component/{bookings-first-name-rac-CJiefCNz.js → bookings-first-name-rac-Uy7c5EBs.js} +1 -1
- package/dist/component/{bookings-header-rac-BFu7Ko5w.js → bookings-header-rac-nmwsWRjS.js} +1 -1
- package/dist/component/{bookings-last-name-rac-DegMM13h.js → bookings-last-name-rac-BAioQLCg.js} +1 -1
- package/dist/component/{bookings-login-bar-rac-DrA-5tBH.js → bookings-login-bar-rac-CO6vOBjG.js} +7 -7
- package/dist/component/{bookings-phone-rac-DsaeqxCI.js → bookings-phone-rac-Cr16h-_R.js} +1 -1
- package/dist/component/{bookings-rich-text-rac-jRHiwqi8.js → bookings-rich-text-rac-CHLH3jd7.js} +1 -1
- package/dist/component/{checkbox-field-rac-CyoBb6Yf.js → checkbox-field-rac-CMwmwFMD.js} +43 -43
- package/dist/component/{checkbox-group-field-headless-Bv1gU3oL.js → checkbox-group-field-headless-BNs_S-nT.js} +24 -24
- package/dist/component/{checkbox-group-field-rac-DasArcdV.js → checkbox-group-field-rac-BA60EPAN.js} +12 -12
- package/dist/component/{checkbox-group-rac-CzmufV1U.js → checkbox-group-rac-BJZ4Oer9.js} +1 -1
- package/dist/component/{checkbox-rac-6C7XoUoZ.js → checkbox-rac-KsVlI6_V.js} +1 -1
- package/dist/component/{contacts-address-rac-BZobbFtz.js → contacts-address-rac-CRYkz87z.js} +1 -1
- package/dist/component/{contacts-birthdate-rac-DIzf41DS.js → contacts-birthdate-rac-BIz-1-ZX.js} +1 -1
- package/dist/component/{contacts-company-rac-BiBDO28r.js → contacts-company-rac-B8G__j6I.js} +1 -1
- package/dist/component/{contacts-email-rac-5mqokCSD.js → contacts-email-rac-Dztkvp5i.js} +1 -1
- package/dist/component/{contacts-first-name-rac-BXe3_Nz5.js → contacts-first-name-rac-CVSEWpLU.js} +1 -1
- package/dist/component/{contacts-last-name-rac-Cfqgh7u1.js → contacts-last-name-rac-Blz4M5bk.js} +1 -1
- package/dist/component/{contacts-phone-rac-cmLUWnAc.js → contacts-phone-rac-CPCE5soY.js} +1 -1
- package/dist/component/{contacts-position-rac-DTyvklfN.js → contacts-position-rac-Dd_kBjqG.js} +1 -1
- package/dist/component/{contacts-subscribe-rac-D-ZEX1A3.js → contacts-subscribe-rac-C6AlsP10.js} +1 -1
- package/dist/component/{contacts-tax-id-rac-B4NYJwWt.js → contacts-tax-id-rac-CQ1n29zI.js} +1 -1
- package/dist/component/{date-availability-Dach9aRC.js → date-availability-DDj1j0z5.js} +1 -1
- package/dist/component/{date-input-field-rac-B72mHcya.js → date-input-field-rac-D5r1n_ah.js} +59 -59
- package/dist/component/{date-input-rac-CYix11gT.js → date-input-rac-Cyi5mU_P.js} +1 -1
- package/dist/component/{date-picker-field-rac-B8pvtPir.js → date-picker-field-rac-CeG391Zo.js} +34 -34
- package/dist/component/{date-picker-rac-D6cR0zH9.js → date-picker-rac-Ci9aHgav.js} +1 -1
- package/dist/component/{date-time-input-field-rac-B7Y3Yf5l.js → date-time-input-field-rac-CrbYEbJJ.js} +89 -89
- package/dist/component/{date-time-input-rac-DMN-noQX.js → date-time-input-rac-DDJLkqs0.js} +1 -1
- package/dist/component/{dext-checkbox-group-rac-Kq0GnteP.js → dext-checkbox-group-rac-C3ftVHBA.js} +4 -4
- package/dist/component/{dext-checkbox-rac-BY9GZ4n1.js → dext-checkbox-rac-BGLYWn68.js} +1 -1
- package/dist/component/{dext-date-picker-rac-CXArIddp.js → dext-date-picker-rac-Cy9RlDlt.js} +1 -1
- package/dist/component/{dext-date-time-input-rac-B39TtxGq.js → dext-date-time-input-rac-88ZoTd5e.js} +1 -1
- package/dist/component/{dext-dropdown-rac-C3y0G8cS.js → dext-dropdown-rac-CPxDUuk9.js} +1 -1
- package/dist/component/{dext-email-rac-BIg3cq7Q.js → dext-email-rac-BAvQwDPA.js} +1 -1
- package/dist/component/{dext-number-input-rac-27sHJ7yN.js → dext-number-input-rac-D7HYQVKq.js} +1 -1
- package/dist/component/{dext-phone-rac-CcohoFQp.js → dext-phone-rac--FhcplSI.js} +1 -1
- package/dist/component/{dext-radio-group-rac-eead3Gve.js → dext-radio-group-rac-DBz8iCKW.js} +2 -2
- package/dist/component/{dext-rating-input-rac-B_E6OcBr.js → dext-rating-input-rac-Cv7nThfe.js} +1 -1
- package/dist/component/{dext-tags-rac-Yd9aAtnF.js → dext-tags-rac-CRUUc5dr.js} +2 -2
- package/dist/component/{dext-text-area-rac-CMACri2C.js → dext-text-area-rac-DQBQXV1L.js} +1 -1
- package/dist/component/{dext-text-input-rac-sNjSCfQ-.js → dext-text-input-rac-4CpM581y.js} +1 -1
- package/dist/component/{dext-url-input-rac-DwhbzJty.js → dext-url-input-rac-0C1jTEr9.js} +1 -1
- package/dist/component/{donation-rac-BVAN3kMk.js → donation-rac-Cgt0ZE50.js} +68 -68
- package/dist/component/{dropdown-field-rac-DdoGigWx.js → dropdown-field-rac-DlGKR7pZ.js} +3 -3
- package/dist/component/{dropdown-rac-CRkt5w47.js → dropdown-rac-CYFW_3x_.js} +1 -1
- package/dist/component/{ecom-address-rac-C36hFHW0.js → ecom-address-rac-CQfQHpXC.js} +1 -1
- package/dist/component/{ecom-subscription-checkbox-rac-BKfQ348w.js → ecom-subscription-checkbox-rac-D2v2Upvz.js} +2 -2
- package/dist/component/{email-input-field-rac-MOaISYxa.js → email-input-field-rac-CVw25yRo.js} +45 -45
- package/dist/component/{events-repeater-rac-D6p-NgE8.js → events-repeater-rac-BCVUcmFj.js} +22 -22
- package/dist/component/{events-rsvp-rac-DVpgN8gm.js → events-rsvp-rac-DwbqEr8z.js} +3 -3
- package/dist/component/{field-error-headless-XNWmDH3E.js → field-error-headless-XnVcMmsL.js} +3 -3
- package/dist/component/{field-label-headless-CORRAJGt.js → field-label-headless-BRTLT2Yt.js} +14 -14
- package/dist/component/{file-upload-rac-DRMr7E4b.js → file-upload-rac-Dkwg9Jk4.js} +115 -115
- package/dist/component/{fixed-payment-rac-BUXzNex9.js → fixed-payment-rac-ST98xAa2.js} +20 -20
- package/dist/component/{form-DSpx-AO8.js → form-BUqSKOvc.js} +235 -234
- package/dist/component/form.js +1 -1
- package/dist/component/{header-field-rac-CiDXlNsa.js → header-field-rac-CzNTGYWq.js} +5 -5
- package/dist/component/{header-rac-B5Rg-h8u.js → header-rac-DUt6AIAE.js} +1 -1
- package/dist/component/{image-choice-rac-CtoA_KDp.js → image-choice-rac-DuBgrSt2.js} +21 -21
- package/dist/component/{index-Bz7ZhQsF.js → index-CDO22hht.js} +106 -106
- package/dist/component/{index-CwruESwc.js → index-cZZeAuuu.js} +5 -5
- package/dist/component/{isObjectLike-C5dHxHP0.js → isObjectLike-cs4bARpC.js} +3 -3
- package/dist/component/{multiline-address-field-rac-Z-qF366L.js → multiline-address-field-rac-vcEWhUCV.js} +73 -73
- package/dist/component/{multiline-address-rac-CJIHTMw5.js → multiline-address-rac-WQaI2eUX.js} +1 -1
- package/dist/component/{number-input-field-rac-D4vf6I6N.js → number-input-field-rac-CBUMqATk.js} +26 -26
- package/dist/component/{number-input-rac-B2jW6JUQ.js → number-input-rac-B4j5hyzS.js} +1 -1
- package/dist/component/{password-rac-DGRZ17Jl.js → password-rac-DwLyf45N.js} +28 -28
- package/dist/component/{payment-input-rac-BtD-tAKv.js → payment-input-rac-D0Od---y.js} +28 -28
- package/dist/component/{phone-input-field-rac-KD4-APhr.js → phone-input-field-rac-COlu9IeC.js} +64 -64
- package/dist/component/{phone-rac-Cw2yccgg.js → phone-rac-Dh4RacOF.js} +1 -1
- package/dist/component/{product-list-rac-XbzTDdbp.js → product-list-rac-D7zHDE2D.js} +47 -47
- package/dist/component/{quiz-radio-group-rac-BDw_mAw5.js → quiz-radio-group-rac-1AaKphJt.js} +1 -1
- package/dist/component/{radio-button-module-classes-CFGf0Hzh.js → radio-button-module-classes-VqaP6vpA.js} +29 -29
- package/dist/component/{radio-group-field-rac-CXN7tyVu.js → radio-group-field-rac-Cp3LRN3C.js} +6 -6
- package/dist/component/{radio-group-rac-COHzqjBh.js → radio-group-rac-KhmhzYGf.js} +1 -1
- package/dist/component/{rating-input-field-rac-DCXNZgf1.js → rating-input-field-rac-10n6ciCr.js} +22 -22
- package/dist/component/{rating-input-rac-DwQt9ML7.js → rating-input-rac-XZjjY2Gp.js} +1 -1
- package/dist/component/{rich-content-rac.module-B7rPwNns.js → rich-content-rac.module-kMwDoLBa.js} +1 -1
- package/dist/component/{rich-text-field-rac-DlER7NRD.js → rich-text-field-rac-H5bd8fAt.js} +6 -6
- package/dist/component/{rich-text-rac-CjicsHA7.js → rich-text-rac-88GSQR62.js} +1 -1
- package/dist/component/{service-dropdown-rac-B81LC_6_.js → service-dropdown-rac-B1_Xr_X3.js} +31 -31
- package/dist/component/{services-multi-choice-rac-BR6gZeHk.js → services-multi-choice-rac-DWp_Llbi.js} +17 -17
- package/dist/component/{signature-rac-XFj7Ddtp.js → signature-rac-zN_6KRDp.js} +44 -44
- package/dist/component/{submit-button-rac-Bz7zs_3W.js → submit-button-rac-Dv6UarYX.js} +2 -2
- package/dist/component/{tags-field-rac-DWWkNKqc.js → tags-field-rac-sVN6MHfJ.js} +38 -38
- package/dist/component/{tags-rac-BXyiQ9i1.js → tags-rac-DhTHs_XN.js} +1 -1
- package/dist/component/{text-area-field-rac-DsIRYi0d.js → text-area-field-rac-DrWkww7W.js} +21 -21
- package/dist/component/{text-area-rac-CF9pDP9d.js → text-area-rac-CXXh-ZdY.js} +1 -1
- package/dist/component/{text-input-field-rac-BwIDZACz.js → text-input-field-rac-C2YiMr-g.js} +3 -3
- package/dist/component/{text-input-headless-5kQs2_Xu.js → text-input-headless-BJMNbsMY.js} +12 -12
- package/dist/component/{text-input-rac-CRmSuw1k.js → text-input-rac-CpsPh7FH.js} +1 -1
- package/dist/component/{time-input-rac-BRMNpe51.js → time-input-rac-DG_1KxS4.js} +23 -23
- package/dist/component/{url-input-field-rac-CKLS3QDk.js → url-input-field-rac-twxRREnl.js} +26 -26
- package/dist/component/{url-input-rac-Dv-kp50D.js → url-input-rac-BTStO0NP.js} +1 -1
- package/dist/component/{use-dropdown-option-class-name-BQi_qE_-.js → use-dropdown-option-class-name-DbMMg1ws.js} +2 -2
- package/dist/component/{use-dropdown-trigger-class-name-bAK8aHiG.js → use-dropdown-trigger-class-name-Yes4kC_0.js} +17 -17
- package/dist/component/{use-element-state-class-name-rXM_lHug.js → use-element-state-class-name-DlncY4hk.js} +1 -1
- package/dist/component/{use-hoverable-input-class-name-BnV_uerV.js → use-hoverable-input-class-name-C__zqP5j.js} +2 -2
- package/dist/component/use-is-forced-open-dropdown-DnK_MQRO.js +53 -0
- package/dist/component/{use-service-options-base-CLeE9-Tx.js → use-service-options-base-DKJe52Vk.js} +6 -6
- package/dist/component/use-text-input-class-name-D9tJTR-b.js +6 -0
- package/dist/form.d.ts +3 -0
- package/package.json +2 -2
- package/dist/component/use-is-forced-open-dropdown-Bp-5Xpmw.js +0 -53
- package/dist/component/use-text-input-class-name-DIKWvfkm.js +0 -6
package/dist/component/{bookings-login-bar-rac-DrA-5tBH.js → bookings-login-bar-rac-CO6vOBjG.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import o from "react";
|
|
2
2
|
import E from "classnames";
|
|
3
|
-
import {
|
|
3
|
+
import { bA as d, bK as b, bs as f, bw as x, V as p } from "./form-BUqSKOvc.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",
|
|
47
|
+
const T = "_container_1ixk2_1", A = "_text_1ixk2_34", C = "_button_1ixk2_39", u = {
|
|
48
48
|
container: T,
|
|
49
|
-
text:
|
|
50
|
-
button:
|
|
51
|
-
},
|
|
49
|
+
text: A,
|
|
50
|
+
button: C
|
|
51
|
+
}, k = () => {
|
|
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", k = "_button_1ixk2_39", u
|
|
|
67
67
|
}), /* @__PURE__ */ o.createElement(l.Button, {
|
|
68
68
|
className: u.button
|
|
69
69
|
})));
|
|
70
|
-
},
|
|
70
|
+
}, h = () => /* @__PURE__ */ o.createElement(k, null);
|
|
71
71
|
export {
|
|
72
|
-
|
|
72
|
+
h as BookingsLoginBarRAC
|
|
73
73
|
};
|
|
@@ -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 { b8 as ei, bA as Zr, aS as Qr, aR as fn, bK as ri, bs as ti, bg as ai, bx as ni, bC as ii, o as si, ac as oi, t as ui, aN as ci, M as fi, G as li, s as _i } from "./form-BUqSKOvc.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-XnVcMmsL.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-cs4bARpC.js";
|
|
10
10
|
import { S as gi } from "./selection-indicator-XQ8MYHUQ.js";
|
|
11
11
|
import { E as qi } from "./error-icon-hZxQ6DEy.js";
|
|
12
12
|
import { C as Ci } from "./checkbox-indicator-module-classes-akWZsZNn.js";
|
|
13
13
|
import { s as oe } from "./field-rac.module-DP0lkkEv.js";
|
|
14
|
-
import { u as Ai } from "./use-element-state-class-name-
|
|
14
|
+
import { u as Ai } from "./use-element-state-class-name-DlncY4hk.js";
|
|
15
15
|
var ue, dt;
|
|
16
16
|
function mi() {
|
|
17
17
|
if (dt) return ue;
|
|
@@ -162,7 +162,7 @@ function xi() {
|
|
|
162
162
|
return Ce = r, Ce;
|
|
163
163
|
}
|
|
164
164
|
var Ae, Ot;
|
|
165
|
-
function
|
|
165
|
+
function Pi() {
|
|
166
166
|
if (Ot) return Ae;
|
|
167
167
|
Ot = 1;
|
|
168
168
|
var e = xi(), r = (function() {
|
|
@@ -195,10 +195,10 @@ function vn() {
|
|
|
195
195
|
return me = t, me;
|
|
196
196
|
}
|
|
197
197
|
var Ie, xt;
|
|
198
|
-
function
|
|
198
|
+
function wi() {
|
|
199
199
|
if (xt) return Ie;
|
|
200
200
|
xt = 1;
|
|
201
|
-
var e = _n(), r =
|
|
201
|
+
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(
|
|
202
202
|
"^" + u.call(c).replace(n, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
203
203
|
);
|
|
204
204
|
function _(p) {
|
|
@@ -209,20 +209,20 @@ function Pi() {
|
|
|
209
209
|
}
|
|
210
210
|
return Ie = _, Ie;
|
|
211
211
|
}
|
|
212
|
-
var Te,
|
|
212
|
+
var Te, Pt;
|
|
213
213
|
function Li() {
|
|
214
|
-
if (
|
|
215
|
-
|
|
214
|
+
if (Pt) return Te;
|
|
215
|
+
Pt = 1;
|
|
216
216
|
function e(r, t) {
|
|
217
217
|
return r == null ? void 0 : r[t];
|
|
218
218
|
}
|
|
219
219
|
return Te = e, Te;
|
|
220
220
|
}
|
|
221
|
-
var Re,
|
|
221
|
+
var Re, wt;
|
|
222
222
|
function L() {
|
|
223
|
-
if (
|
|
224
|
-
|
|
225
|
-
var e =
|
|
223
|
+
if (wt) return Re;
|
|
224
|
+
wt = 1;
|
|
225
|
+
var e = wi(), r = Li();
|
|
226
226
|
function t(a, n) {
|
|
227
227
|
var i = r(a, n);
|
|
228
228
|
return e(i) ? i : void 0;
|
|
@@ -289,20 +289,20 @@ function Bi() {
|
|
|
289
289
|
}
|
|
290
290
|
return xe = a, xe;
|
|
291
291
|
}
|
|
292
|
-
var
|
|
292
|
+
var Pe, Nt;
|
|
293
293
|
function ki() {
|
|
294
|
-
if (Nt) return
|
|
294
|
+
if (Nt) return Pe;
|
|
295
295
|
Nt = 1;
|
|
296
296
|
var e = ne(), r = "__lodash_hash_undefined__";
|
|
297
297
|
function t(a, n) {
|
|
298
298
|
var i = this.__data__;
|
|
299
299
|
return this.size += this.has(a) ? 0 : 1, i[a] = e && n === void 0 ? r : n, this;
|
|
300
300
|
}
|
|
301
|
-
return
|
|
301
|
+
return Pe = t, Pe;
|
|
302
302
|
}
|
|
303
|
-
var
|
|
303
|
+
var we, Gt;
|
|
304
304
|
function Ni() {
|
|
305
|
-
if (Gt) return
|
|
305
|
+
if (Gt) return we;
|
|
306
306
|
Gt = 1;
|
|
307
307
|
var e = Fi(), r = Mi(), t = Ki(), a = Bi(), n = ki();
|
|
308
308
|
function i(s) {
|
|
@@ -312,7 +312,7 @@ function Ni() {
|
|
|
312
312
|
this.set(c[0], c[1]);
|
|
313
313
|
}
|
|
314
314
|
}
|
|
315
|
-
return i.prototype.clear = e, i.prototype.delete = r, i.prototype.get = t, i.prototype.has = a, i.prototype.set = n,
|
|
315
|
+
return i.prototype.clear = e, i.prototype.delete = r, i.prototype.get = t, i.prototype.has = a, i.prototype.set = n, we = i, we;
|
|
316
316
|
}
|
|
317
317
|
var Le, Ut;
|
|
318
318
|
function Gi() {
|
|
@@ -819,20 +819,20 @@ function ot() {
|
|
|
819
819
|
} : r;
|
|
820
820
|
return Cr = i, Cr;
|
|
821
821
|
}
|
|
822
|
-
var Ar,
|
|
822
|
+
var Ar, Pa;
|
|
823
823
|
function ps() {
|
|
824
|
-
if (
|
|
825
|
-
|
|
824
|
+
if (Pa) return Ar;
|
|
825
|
+
Pa = 1;
|
|
826
826
|
var e = se(), r = ot();
|
|
827
827
|
function t(a, n) {
|
|
828
828
|
return e(a, r(a), n);
|
|
829
829
|
}
|
|
830
830
|
return Ar = t, Ar;
|
|
831
831
|
}
|
|
832
|
-
var mr,
|
|
832
|
+
var mr, wa;
|
|
833
833
|
function An() {
|
|
834
|
-
if (
|
|
835
|
-
|
|
834
|
+
if (wa) return mr;
|
|
835
|
+
wa = 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];
|
|
@@ -920,16 +920,16 @@ function Cs() {
|
|
|
920
920
|
var e = L(), r = S(), t = e(r, "Set");
|
|
921
921
|
return xr = t, xr;
|
|
922
922
|
}
|
|
923
|
-
var
|
|
923
|
+
var Pr, Ha;
|
|
924
924
|
function As() {
|
|
925
|
-
if (Ha) return
|
|
925
|
+
if (Ha) return Pr;
|
|
926
926
|
Ha = 1;
|
|
927
927
|
var e = L(), r = S(), t = e(r, "WeakMap");
|
|
928
|
-
return
|
|
928
|
+
return Pr = t, Pr;
|
|
929
929
|
}
|
|
930
|
-
var
|
|
930
|
+
var wr, Va;
|
|
931
931
|
function ut() {
|
|
932
|
-
if (Va) return
|
|
932
|
+
if (Va) return wr;
|
|
933
933
|
Va = 1;
|
|
934
934
|
var e = gs(), r = et(), t = qs(), a = Cs(), n = As(), i = re(), s = vn(), o = "[object Map]", u = "[object Object]", c = "[object Promise]", v = "[object Set]", _ = "[object WeakMap]", p = "[object DataView]", y = s(e), q = s(r), C = s(t), m = s(a), g = s(n), d = i;
|
|
935
935
|
return (e && d(new e(new ArrayBuffer(1))) != p || r && d(new r()) != o || t && d(t.resolve()) != c || a && d(new a()) != v || n && d(new n()) != _) && (d = function(R) {
|
|
@@ -948,7 +948,7 @@ function ut() {
|
|
|
948
948
|
return _;
|
|
949
949
|
}
|
|
950
950
|
return E;
|
|
951
|
-
}),
|
|
951
|
+
}), wr = d, wr;
|
|
952
952
|
}
|
|
953
953
|
var Lr, za;
|
|
954
954
|
function ms() {
|
|
@@ -1102,14 +1102,14 @@ function xs() {
|
|
|
1102
1102
|
return Vr = a, Vr;
|
|
1103
1103
|
}
|
|
1104
1104
|
var zr, an;
|
|
1105
|
-
function
|
|
1105
|
+
function Ps() {
|
|
1106
1106
|
if (an) return zr;
|
|
1107
1107
|
an = 1;
|
|
1108
1108
|
var e = xs(), r = tt(), t = at(), a = t && t.isMap, n = a ? r(a) : e;
|
|
1109
1109
|
return zr = n, zr;
|
|
1110
1110
|
}
|
|
1111
1111
|
var Wr, nn;
|
|
1112
|
-
function
|
|
1112
|
+
function ws() {
|
|
1113
1113
|
if (nn) return Wr;
|
|
1114
1114
|
nn = 1;
|
|
1115
1115
|
var e = ut(), r = J(), t = "[object Set]";
|
|
@@ -1122,15 +1122,15 @@ var Xr, sn;
|
|
|
1122
1122
|
function Ls() {
|
|
1123
1123
|
if (sn) return Xr;
|
|
1124
1124
|
sn = 1;
|
|
1125
|
-
var e =
|
|
1125
|
+
var e = ws(), r = tt(), t = at(), a = t && t.isSet, n = a ? r(a) : e;
|
|
1126
1126
|
return Xr = n, Xr;
|
|
1127
1127
|
}
|
|
1128
1128
|
var $r, on;
|
|
1129
1129
|
function Fs() {
|
|
1130
1130
|
if (on) return $r;
|
|
1131
1131
|
on = 1;
|
|
1132
|
-
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 = js(), q = Ds(), C = rt(), m = dn(), g =
|
|
1133
|
-
h[I] = h[N] = h[
|
|
1132
|
+
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 = js(), q = Ds(), C = rt(), m = dn(), g = Ps(), d = $(), R = Ls(), E = it(), j = st(), O = 1, B = 2, k = 4, I = "[object Arguments]", N = "[object Array]", f = "[object Boolean]", D = "[object Date]", G = "[object Error]", ft = "[object Function]", Rn = "[object GeneratorFunction]", Sn = "[object Map]", En = "[object Number]", lt = "[object Object]", jn = "[object RegExp]", On = "[object Set]", Dn = "[object String]", xn = "[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 = {};
|
|
1133
|
+
h[I] = h[N] = h[wn] = h[Ln] = h[f] = h[D] = h[Fn] = h[Mn] = h[Kn] = h[Bn] = h[kn] = h[Sn] = h[En] = h[lt] = h[jn] = h[On] = h[Dn] = h[xn] = h[Nn] = h[Gn] = h[Un] = h[Hn] = !0, h[G] = h[ft] = h[Pn] = !1;
|
|
1134
1134
|
function Y(l, F, M, Vn, Q, x) {
|
|
1135
1135
|
var A, Z = F & O, ee = F & B, zn = F & k;
|
|
1136
1136
|
if (M && (A = Q ? M(l, Vn, Q, x) : M(l)), A !== void 0)
|
|
@@ -1158,14 +1158,14 @@ function Fs() {
|
|
|
1158
1158
|
var ht = x.get(l);
|
|
1159
1159
|
if (ht)
|
|
1160
1160
|
return ht;
|
|
1161
|
-
x.set(l, A), R(l) ? l.forEach(function(
|
|
1162
|
-
A.add(Y(
|
|
1163
|
-
}) : g(l) && l.forEach(function(
|
|
1164
|
-
A.set(
|
|
1161
|
+
x.set(l, A), R(l) ? l.forEach(function(P) {
|
|
1162
|
+
A.add(Y(P, F, M, P, l, x));
|
|
1163
|
+
}) : g(l) && l.forEach(function(P, w) {
|
|
1164
|
+
A.set(w, Y(P, F, M, w, l, x));
|
|
1165
1165
|
});
|
|
1166
1166
|
var Wn = zn ? ee ? v : c : ee ? j : E, pt = _t ? void 0 : Wn(l);
|
|
1167
|
-
return r(pt || l, function(
|
|
1168
|
-
pt && (
|
|
1167
|
+
return r(pt || l, function(P, w) {
|
|
1168
|
+
pt && (w = P, P = l[w]), t(A, w, Y(P, F, M, w, l, x));
|
|
1169
1169
|
}), A;
|
|
1170
1170
|
}
|
|
1171
1171
|
return $r = Y, $r;
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import o, { useMemo as F, useCallback as $, useRef as
|
|
2
|
-
import { CheckboxGroup as
|
|
1
|
+
import o, { useMemo as F, useCallback as $, useRef as w, useState as A, useEffect as W } from "react";
|
|
2
|
+
import { CheckboxGroup as K, CheckboxField as M, CheckboxButton as j, TextField as z, Input as J } from "react-aria-components";
|
|
3
3
|
import { debounce as Q } from "ts-debounce";
|
|
4
|
-
import {
|
|
4
|
+
import { bA as R, bx as U, bK as X, bC as Y } from "./form-BUqSKOvc.js";
|
|
5
5
|
import { f as I, a as k } from "./find-child-C60k4CxG.js";
|
|
6
|
-
import { D as Z, E as ee } from "./field-error-headless-
|
|
7
|
-
import { L as te } from "./field-label-headless-
|
|
6
|
+
import { D as Z, E as ee } from "./field-error-headless-XnVcMmsL.js";
|
|
7
|
+
import { L as te } from "./field-label-headless-BRTLT2Yt.js";
|
|
8
8
|
import { F as ae } from "./fieldset-headless-CD3fds9J.js";
|
|
9
9
|
import { S as ne } from "./selection-indicator-XQ8MYHUQ.js";
|
|
10
|
-
const
|
|
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) => {
|
|
11
11
|
const r = t == null ? void 0 : t("add-other.default-other-option-label");
|
|
12
|
-
return e || r ||
|
|
12
|
+
return e || r || B;
|
|
13
13
|
}, q = (e, t) => {
|
|
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 =
|
|
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 = F(() => n || [], [
|
|
18
18
|
n
|
|
19
19
|
]), V = $((b) => {
|
|
20
20
|
s == null || s(b);
|
|
@@ -31,7 +31,7 @@ const R = "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(K, {
|
|
35
35
|
className: t,
|
|
36
36
|
"aria-labelledby": u,
|
|
37
37
|
value: O,
|
|
@@ -43,7 +43,7 @@ const R = "Other", le = (e, t) => e.some((r) => !t.includes(r)), N = (e, t) => e
|
|
|
43
43
|
renderDescription: () => /* @__PURE__ */ o.createElement(o.Fragment, null, l, C)
|
|
44
44
|
});
|
|
45
45
|
}, _ = ({ children: e, className: t }) => {
|
|
46
|
-
const r =
|
|
46
|
+
const r = R(), { id: a, options: n, addOther: s, addOtherLabel: d, numberOfColumns: p } = r, { t: f } = X(), m = I(e, _.Option), c = se(d, f);
|
|
47
47
|
return /* @__PURE__ */ o.createElement("div", {
|
|
48
48
|
className: t,
|
|
49
49
|
"data-columns": p
|
|
@@ -57,8 +57,8 @@ const R = "Other", le = (e, t) => e.some((r) => !t.includes(r)), N = (e, t) => e
|
|
|
57
57
|
fieldId: a
|
|
58
58
|
});
|
|
59
59
|
}), s && k(m, {
|
|
60
|
-
key:
|
|
61
|
-
value:
|
|
60
|
+
key: B,
|
|
61
|
+
value: B,
|
|
62
62
|
label: c,
|
|
63
63
|
isOther: !0
|
|
64
64
|
}));
|
|
@@ -68,7 +68,7 @@ const R = "Other", le = (e, t) => e.some((r) => !t.includes(r)), N = (e, t) => e
|
|
|
68
68
|
className: e
|
|
69
69
|
}, r);
|
|
70
70
|
}, y = ({ children: e, className: t, ...r }) => {
|
|
71
|
-
const { value: a, label: n, isFirst: s = !1, isOther: d = !1, fieldId: p } = r, f =
|
|
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;
|
|
74
74
|
s && ((b = E.current) == null || b.focus({
|
|
@@ -85,11 +85,11 @@ const R = "Other", le = (e, t) => e.some((r) => !t.includes(r)), N = (e, t) => e
|
|
|
85
85
|
]), V = $((b) => {
|
|
86
86
|
if (!d)
|
|
87
87
|
return;
|
|
88
|
-
const D = S(L || []), x = l.filter((
|
|
88
|
+
const D = S(L || []), x = l.filter((P) => D.includes(P)), H = b ? [
|
|
89
89
|
...x,
|
|
90
90
|
n
|
|
91
91
|
] : x;
|
|
92
|
-
c == null || c(
|
|
92
|
+
c == null || c(H);
|
|
93
93
|
}, [
|
|
94
94
|
d,
|
|
95
95
|
n,
|
|
@@ -97,13 +97,13 @@ const R = "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(M, {
|
|
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(j, {
|
|
107
107
|
ref: E,
|
|
108
108
|
className: t,
|
|
109
109
|
"data-hook": `checkbox-${n}`
|
|
@@ -118,7 +118,7 @@ const R = "Other", le = (e, t) => e.some((r) => !t.includes(r)), N = (e, t) => e
|
|
|
118
118
|
y.Label = re;
|
|
119
119
|
y.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 =
|
|
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, y), C = I(e, G), l = F(() => f || [], [
|
|
122
122
|
f
|
|
123
123
|
]), O = F(() => {
|
|
124
124
|
if (!s)
|
|
@@ -149,12 +149,12 @@ const T = ({ children: e, ...t }) => {
|
|
|
149
149
|
addOtherLabel: a,
|
|
150
150
|
options: c
|
|
151
151
|
}));
|
|
152
|
-
},
|
|
153
|
-
const { fieldValue: a, onChange: n, label: s, placeholder: d, maxLength: p, disabled: f, readOnly: m, hasError: c, ariaLabel: i, addOtherLabel: h, options: u } = r, [L, E] =
|
|
152
|
+
}, G = ({ className: e, inputClassName: t, ...r }) => {
|
|
153
|
+
const { fieldValue: a, onChange: n, label: s, placeholder: d, maxLength: p, disabled: f, readOnly: m, hasError: c, ariaLabel: i, addOtherLabel: h, options: u } = r, [L, E] = A(() => {
|
|
154
154
|
const l = S(u || []);
|
|
155
155
|
return N(a, l) ? q(a, h) : "";
|
|
156
156
|
});
|
|
157
|
-
|
|
157
|
+
W(() => {
|
|
158
158
|
const l = S(u || []), O = N(a, l);
|
|
159
159
|
E(O ? q(a, h) : "");
|
|
160
160
|
}, [
|
|
@@ -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(z, {
|
|
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(J, {
|
|
191
191
|
className: t,
|
|
192
192
|
placeholder: d,
|
|
193
193
|
maxLength: p,
|
|
@@ -198,7 +198,7 @@ v.Label = te;
|
|
|
198
198
|
v.Options = _;
|
|
199
199
|
_.Option = T;
|
|
200
200
|
T.Checkbox = y;
|
|
201
|
-
T.OtherInput =
|
|
201
|
+
T.OtherInput = G;
|
|
202
202
|
v.Description = Z;
|
|
203
203
|
v.Error = ee;
|
|
204
204
|
export {
|
package/dist/component/{checkbox-group-field-rac-DasArcdV.js → checkbox-group-field-rac-BA60EPAN.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-BNs_S-nT.js";
|
|
5
5
|
import { E as n } from "./error-icon-hZxQ6DEy.js";
|
|
6
6
|
import { C as c } from "./checkbox-indicator-module-classes-akWZsZNn.js";
|
|
7
7
|
import { s } from "./field-rac.module-DP0lkkEv.js";
|
|
8
|
-
import {
|
|
8
|
+
import { W as i, ac as E, p, r as C, M as O, G as _, q as I } from "./form-BUqSKOvc.js";
|
|
9
9
|
import { o as l } from "./options-rac.module-_THNq6Qq.js";
|
|
10
|
-
import { u as
|
|
11
|
-
import { u as R } from "./use-text-input-class-name-
|
|
12
|
-
const u = ({ content:
|
|
13
|
-
content:
|
|
14
|
-
locale:
|
|
10
|
+
import { u as L } from "./use-element-state-class-name-DlncY4hk.js";
|
|
11
|
+
import { u as R } from "./use-text-input-class-name-D9tJTR-b.js";
|
|
12
|
+
const u = ({ content: r, locale: o }) => /* @__PURE__ */ e.createElement(m, {
|
|
13
|
+
content: r,
|
|
14
|
+
locale: o
|
|
15
15
|
}), k = () => {
|
|
16
|
-
const
|
|
17
|
-
globalClasses:
|
|
16
|
+
const r = L({
|
|
17
|
+
globalClasses: I,
|
|
18
18
|
moduleClasses: c
|
|
19
|
-
}),
|
|
19
|
+
}), o = R();
|
|
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, {
|
|
@@ -26,11 +26,11 @@ const u = ({ content: o, locale: r }) => /* @__PURE__ */ e.createElement(m, {
|
|
|
26
26
|
}, /* @__PURE__ */ e.createElement(t.Options.Option, null, /* @__PURE__ */ e.createElement(t.Options.Option.Checkbox, {
|
|
27
27
|
className: s.checkbox
|
|
28
28
|
}, /* @__PURE__ */ e.createElement(t.Options.Option.Checkbox.Input, {
|
|
29
|
-
className:
|
|
29
|
+
className: r
|
|
30
30
|
}), /* @__PURE__ */ e.createElement(t.Options.Option.Checkbox.Label, {
|
|
31
31
|
className: a(C, l.optionLabel)
|
|
32
32
|
})), /* @__PURE__ */ e.createElement(t.Options.Option.OtherInput, {
|
|
33
|
-
inputClassName:
|
|
33
|
+
inputClassName: o
|
|
34
34
|
}))), /* @__PURE__ */ e.createElement(t.Error, {
|
|
35
35
|
className: a(O, s.error)
|
|
36
36
|
}, /* @__PURE__ */ e.createElement(n, null), /* @__PURE__ */ e.createElement(t.Error.Text, null)), /* @__PURE__ */ e.createElement(t.Description, {
|