@wix/form-elements 1.108.0 → 1.109.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-ZAp8oWbK.js → appointment-rac-C9-XwsPI.js} +60 -60
- package/dist/component/{bookings-address-rac-x-Az7vHf.js → bookings-address-rac-jrrCPWjw.js} +1 -1
- package/dist/component/{bookings-email-rac-MoF_CaqB.js → bookings-email-rac-J9-RMEbf.js} +1 -1
- package/dist/component/{bookings-first-name-rac-CWh3Rb0M.js → bookings-first-name-rac-CH7-6JmA.js} +1 -1
- package/dist/component/{bookings-header-rac-BVTiXUWk.js → bookings-header-rac-C2JV-ciN.js} +1 -1
- package/dist/component/{bookings-last-name-rac-kXRRlyHl.js → bookings-last-name-rac-0a9CwiaV.js} +1 -1
- package/dist/component/{bookings-login-bar-rac-C4Zr6kXE.js → bookings-login-bar-rac-4Mb7MQYe.js} +3 -3
- package/dist/component/{bookings-phone-rac-2rz1m_xi.js → bookings-phone-rac-vYx5r5jn.js} +1 -1
- package/dist/component/{bookings-rich-text-rac-BEjGypQw.js → bookings-rich-text-rac-CWg1FgUp.js} +1 -1
- package/dist/component/{checkbox-field-rac-DwEQLIaz.js → checkbox-field-rac-Dwx1leKA.js} +43 -43
- package/dist/component/{checkbox-group-field-headless-BsOww_QB.js → checkbox-group-field-headless-AFWgXzx_.js} +8 -8
- package/dist/component/{checkbox-group-field-rac-DTcZcVS6.js → checkbox-group-field-rac-CO8kmWJp.js} +4 -4
- package/dist/component/{checkbox-group-rac-DQsML-pW.js → checkbox-group-rac-_79HsFF4.js} +1 -1
- package/dist/component/{checkbox-rac-irEBBOxP.js → checkbox-rac-B_tbMfjo.js} +1 -1
- package/dist/component/{contacts-address-rac-B5bSAYrm.js → contacts-address-rac-SJ5Tvzd0.js} +1 -1
- package/dist/component/{contacts-birthdate-rac-DyScj8f4.js → contacts-birthdate-rac-BU1L3sbW.js} +1 -1
- package/dist/component/{contacts-company-rac-C5X9-jXa.js → contacts-company-rac-Y4B8KhDa.js} +1 -1
- package/dist/component/{contacts-email-rac-B0vkfmrS.js → contacts-email-rac-CQW84o7C.js} +1 -1
- package/dist/component/{contacts-first-name-rac-Cfil3U_e.js → contacts-first-name-rac-Dtai-wtH.js} +1 -1
- package/dist/component/{contacts-last-name-rac-CtPLE-7-.js → contacts-last-name-rac--ixuu3ri.js} +1 -1
- package/dist/component/{contacts-phone-rac-YkzsAoBZ.js → contacts-phone-rac-HOHfSvT-.js} +1 -1
- package/dist/component/{contacts-position-rac-BS4j8QC-.js → contacts-position-rac-BPMkh6yf.js} +1 -1
- package/dist/component/{contacts-subscribe-rac-z_9VsEZL.js → contacts-subscribe-rac-D0_RMwJb.js} +1 -1
- package/dist/component/{contacts-tax-id-rac-WFkmKyZv.js → contacts-tax-id-rac-CZJmMiVf.js} +1 -1
- package/dist/component/{date-availability-NN3rxosk.js → date-availability-C4dDHvuc.js} +1 -1
- package/dist/component/{date-input-field-rac-mdhEC3oq.js → date-input-field-rac-8oERZcqh.js} +64 -64
- package/dist/component/{date-input-rac-CGciuoTx.js → date-input-rac-CYRojmW6.js} +1 -1
- package/dist/component/{date-picker-field-rac-CRZVODfF.js → date-picker-field-rac-CIspU7No.js} +31 -31
- package/dist/component/{date-picker-rac-Bfbvjy8W.js → date-picker-rac-D0Y0zf2J.js} +1 -1
- package/dist/component/{date-time-input-field-rac-TDWBXZ44.js → date-time-input-field-rac-0daWK65I.js} +70 -70
- package/dist/component/{date-time-input-rac-DY0qdSix.js → date-time-input-rac-BemKPk1j.js} +1 -1
- package/dist/component/{dext-checkbox-group-rac-BFGM7SOt.js → dext-checkbox-group-rac-BpFNn56W.js} +2 -2
- package/dist/component/{dext-checkbox-rac-DPZvTeUZ.js → dext-checkbox-rac-DOISgubJ.js} +1 -1
- package/dist/component/{dext-date-picker-rac-Xd5kojsQ.js → dext-date-picker-rac-CNGhFg_g.js} +1 -1
- package/dist/component/{dext-date-time-input-rac-C0RIdxJW.js → dext-date-time-input-rac-BuUIvJRr.js} +1 -1
- package/dist/component/{dext-dropdown-rac-D1m8vJvm.js → dext-dropdown-rac-DtND-Dbo.js} +1 -1
- package/dist/component/{dext-email-rac-BC81RFYY.js → dext-email-rac-CmjLFOi8.js} +1 -1
- package/dist/component/{dext-number-input-rac-Z_ih9FfX.js → dext-number-input-rac-DHTNg1dh.js} +1 -1
- package/dist/component/{dext-phone-rac-s3BOnXuI.js → dext-phone-rac-BrrU5qH_.js} +1 -1
- package/dist/component/{dext-radio-group-rac-CL3jcezs.js → dext-radio-group-rac-CD3MGfAM.js} +4 -4
- package/dist/component/{dext-rating-input-rac-wz1EyP5b.js → dext-rating-input-rac-BETGJZmt.js} +1 -1
- package/dist/component/{dext-tags-rac-BY4Rf2BP.js → dext-tags-rac-Coo9jN-T.js} +4 -4
- package/dist/component/{dext-text-area-rac-DRJzlsq8.js → dext-text-area-rac-CNWjqhUT.js} +1 -1
- package/dist/component/{dext-text-input-rac-BGcRNNAi.js → dext-text-input-rac-CCWyDexv.js} +1 -1
- package/dist/component/{dext-url-input-rac-CRAIm8yp.js → dext-url-input-rac-Dtakkgmk.js} +1 -1
- package/dist/component/{donation-rac-BlTfOIlE.js → donation-rac-BboGm_k_.js} +74 -74
- package/dist/component/{dropdown-field-headless-DhzRAMcM.js → dropdown-field-headless-BTMJGUwY.js} +10 -10
- package/dist/component/{dropdown-field-rac-DXyY5we-.js → dropdown-field-rac-CDRV8ckB.js} +3 -3
- package/dist/component/{dropdown-rac-C6YM6qxm.js → dropdown-rac-kEuU2pXW.js} +1 -1
- package/dist/component/{ecom-address-rac-CAdr7wya.js → ecom-address-rac-BgKL9ElH.js} +1 -1
- package/dist/component/{ecom-subscription-checkbox-rac-Z2VMuCbt.js → ecom-subscription-checkbox-rac-CDhJsNPD.js} +2 -2
- package/dist/component/{email-input-field-rac-DpkfunVK.js → email-input-field-rac-DdOd86NX.js} +47 -47
- package/dist/component/{events-repeater-rac-CuJkdrPo.js → events-repeater-rac-_VJ30dpB.js} +8 -8
- package/dist/component/{events-rsvp-rac-BKWlSeQ9.js → events-rsvp-rac-DA-261bq.js} +10 -10
- package/dist/component/{field-error-headless-tsg9FQ-_.js → field-error-headless-CovyN0GI.js} +11 -11
- package/dist/component/{field-label-headless-CB8dEat8.js → field-label-headless-DVvX2QaH.js} +4 -4
- package/dist/component/file-upload-rac-bhEPUJPs.js +561 -0
- package/dist/component/{fixed-payment-rac-CuIQEeHh.js → fixed-payment-rac-DmI6MeKc.js} +15 -15
- package/dist/component/{form-0jt4L5xo.js → form-BTDgyr54.js} +950 -913
- package/dist/component/form.css +1 -1
- package/dist/component/form.js +3 -3
- package/dist/component/{header-field-rac-CWVGzxKb.js → header-field-rac-C0rUjmo0.js} +4 -4
- package/dist/component/{header-rac-D6KsV-ko.js → header-rac-DRMO22PV.js} +1 -1
- package/dist/component/{image-choice-rac-CUCyVS8c.js → image-choice-rac-CQDQ7AlD.js} +9 -9
- package/dist/component/{index-iOqQidgV.js → index-B9QlosT1.js} +2 -2
- package/dist/component/{index-TJSnVtCO.js → index-CNWT9t6j.js} +43 -43
- package/dist/component/{isObjectLike-DQbx8r1c.js → isObjectLike-c0td2WCR.js} +1 -1
- package/dist/component/{multiline-address-field-rac-DtZ1NTfD.js → multiline-address-field-rac-D8bVxRsD.js} +78 -78
- package/dist/component/{multiline-address-rac-ub-_XzHU.js → multiline-address-rac-g-6RB7o8.js} +1 -1
- package/dist/component/{number-input-field-rac-DLItn4DK.js → number-input-field-rac-BaOwQ5Ya.js} +13 -13
- package/dist/component/{number-input-rac-UuxJzqEx.js → number-input-rac-BXv8-Pnj.js} +1 -1
- package/dist/component/{password-rac-Di6q96Rn.js → password-rac-BB9XeSSZ.js} +15 -15
- package/dist/component/{payment-input-rac-CG6c4-Ge.js → payment-input-rac-DwnSV9rM.js} +44 -44
- package/dist/component/{phone-input-field-rac-D4JphCuT.js → phone-input-field-rac-CC3C4ToW.js} +50 -50
- package/dist/component/{phone-rac-_vDw2usa.js → phone-rac-DpNhSaE0.js} +1 -1
- package/dist/component/{product-list-rac-CgxRlj1f.js → product-list-rac-BAESk3B6.js} +50 -50
- package/dist/component/{quiz-radio-group-rac-bi26aGxN.js → quiz-radio-group-rac-PS6AZr63.js} +1 -1
- package/dist/component/{radio-button-module-classes-DDJq2ESf.js → radio-button-module-classes-CXcn5unY.js} +14 -14
- package/dist/component/{radio-group-field-rac-D1aMVO6l.js → radio-group-field-rac-pt8xbDfS.js} +6 -6
- package/dist/component/{radio-group-rac-HKC85M6t.js → radio-group-rac-DkzkM6N_.js} +1 -1
- package/dist/component/{rating-input-field-rac-CpRehxFB.js → rating-input-field-rac-DDHBkR4x.js} +20 -20
- package/dist/component/{rating-input-rac-BMuCZ3oj.js → rating-input-rac-CcsDmLus.js} +1 -1
- package/dist/component/{rich-content-rac.module-mZ6xoAOd.js → rich-content-rac.module-B2vsO6fj.js} +1 -1
- package/dist/component/{rich-text-field-rac-CUK8V8Kf.js → rich-text-field-rac-CvKht2eC.js} +4 -4
- package/dist/component/{rich-text-rac-B-7sR2FJ.js → rich-text-rac-CRpSffQB.js} +1 -1
- package/dist/component/{service-dropdown-rac-1DDNT5bn.js → service-dropdown-rac-BOpdXNjG.js} +33 -33
- package/dist/component/{services-multi-choice-rac-CB-6dwxz.js → services-multi-choice-rac-t0wdSt_T.js} +13 -13
- package/dist/component/{signature-rac-7XBci6P2.js → signature-rac-2LsIYYIX.js} +133 -133
- package/dist/component/{submit-button-rac-B1-Mk8Gg.js → submit-button-rac-BbE8dS35.js} +17 -17
- package/dist/component/{tags-field-rac-CQ9Y7mq-.js → tags-field-rac-BnsBxReU.js} +32 -32
- package/dist/component/{tags-rac-Visic-Ml.js → tags-rac-BFH4RINA.js} +1 -1
- package/dist/component/{text-area-field-rac-C8fP1g-w.js → text-area-field-rac-Ag7_gniM.js} +14 -14
- package/dist/component/{text-area-rac-B6yZxzxm.js → text-area-rac-ByUX0p2O.js} +1 -1
- package/dist/component/{text-input-field-rac-CNjbOxD1.js → text-input-field-rac-D3MZ8teu.js} +5 -5
- package/dist/component/{text-input-headless-Bm8PJGep.js → text-input-headless-CwONErsY.js} +3 -3
- package/dist/component/{text-input-rac-BEPC1Z-4.js → text-input-rac-DLXdAhkK.js} +1 -1
- package/dist/component/{time-input-rac-3m6C_Jp5.js → time-input-rac-Bs55lTON.js} +27 -27
- package/dist/component/{url-input-field-rac-CIk_6Lf6.js → url-input-field-rac-FG-bCh-E.js} +19 -19
- package/dist/component/{url-input-rac-DyVoygXH.js → url-input-rac-BOKuCMTe.js} +1 -1
- package/dist/component/{use-dropdown-option-class-name-McG3ayOT.js → use-dropdown-option-class-name-DjV7FW5y.js} +2 -2
- package/dist/component/{use-element-state-class-name-B9MBWX44.js → use-element-state-class-name-DB1AzkvF.js} +1 -1
- package/dist/component/{use-is-forced-open-dropdown-r5G_sZsO.js → use-is-forced-open-dropdown-ifUIpuwL.js} +8 -8
- package/dist/component/{use-service-options-base-hcbkvhpw.js → use-service-options-base-B11cq0HH.js} +1 -1
- package/dist/component/{use-text-input-class-name-SnurFqAr.js → use-text-input-class-name-va1PzWFg.js} +2 -2
- package/dist/form.d.ts +18 -0
- package/package.json +2 -2
- package/dist/component/file-upload-rac-ZdgYt646.js +0 -483
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
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
|
-
import { CheckboxField as
|
|
5
|
-
import {
|
|
4
|
+
import { CheckboxField as Qn, CheckboxButton as Zn } from "react-aria-components";
|
|
5
|
+
import { aJ as ei, b9 as Zr, as as Qr, ar as fn, bj as ri, b1 as ti, aR as ai, b6 as ni, bb as ii, h as si, U as oi, m as ui, an as ci, v as fi, p as li, l as _i } from "./form-BTDgyr54.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-CovyN0GI.js";
|
|
8
8
|
import { Node_Type as di } from "@wix/ricos/schema";
|
|
9
|
-
import { c as re, r as $, e as R, a as J, d as yi, b as bi } from "./isObjectLike-
|
|
9
|
+
import { c as re, r as $, e as R, a as J, d as yi, b as bi } from "./isObjectLike-c0td2WCR.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-BpeSpGsW.js";
|
|
13
13
|
import { s as oe } from "./field-rac.module-B4l_0KRU.js";
|
|
14
|
-
import { u as Ai } from "./use-element-state-class-name-
|
|
14
|
+
import { u as Ai } from "./use-element-state-class-name-DB1AzkvF.js";
|
|
15
15
|
var ue, dt;
|
|
16
16
|
function mi() {
|
|
17
17
|
if (dt) return ue;
|
|
@@ -422,10 +422,10 @@ function $i() {
|
|
|
422
422
|
}
|
|
423
423
|
return Ue = n, Ue;
|
|
424
424
|
}
|
|
425
|
-
var He,
|
|
425
|
+
var He, Qt;
|
|
426
426
|
function Ji() {
|
|
427
|
-
if (
|
|
428
|
-
|
|
427
|
+
if (Qt) return He;
|
|
428
|
+
Qt = 1;
|
|
429
429
|
var e = ae(), r = Ei(), t = Oi(), a = ji(), n = xi(), i = $i();
|
|
430
430
|
function s(o) {
|
|
431
431
|
var u = this.__data__ = new e(o);
|
|
@@ -433,10 +433,10 @@ function Ji() {
|
|
|
433
433
|
}
|
|
434
434
|
return s.prototype.clear = r, s.prototype.delete = t, s.prototype.get = a, s.prototype.has = n, s.prototype.set = i, He = s, He;
|
|
435
435
|
}
|
|
436
|
-
var Ve,
|
|
436
|
+
var Ve, Zt;
|
|
437
437
|
function Yi() {
|
|
438
|
-
if (
|
|
439
|
-
|
|
438
|
+
if (Zt) return Ve;
|
|
439
|
+
Zt = 1;
|
|
440
440
|
function e(r, t) {
|
|
441
441
|
for (var a = -1, n = r == null ? 0 : r.length; ++a < n && t(r[a], a, r) !== !1; )
|
|
442
442
|
;
|
|
@@ -445,7 +445,7 @@ function Yi() {
|
|
|
445
445
|
return Ve = e, Ve;
|
|
446
446
|
}
|
|
447
447
|
var ze, ea;
|
|
448
|
-
function
|
|
448
|
+
function Qi() {
|
|
449
449
|
if (ea) return ze;
|
|
450
450
|
ea = 1;
|
|
451
451
|
var e = L(), r = (function() {
|
|
@@ -461,7 +461,7 @@ var We, ra;
|
|
|
461
461
|
function hn() {
|
|
462
462
|
if (ra) return We;
|
|
463
463
|
ra = 1;
|
|
464
|
-
var e =
|
|
464
|
+
var e = Qi();
|
|
465
465
|
function r(t, a, n) {
|
|
466
466
|
a == "__proto__" && e ? e(t, a, {
|
|
467
467
|
configurable: !0,
|
|
@@ -500,7 +500,7 @@ function se() {
|
|
|
500
500
|
return $e = t, $e;
|
|
501
501
|
}
|
|
502
502
|
var Je, na;
|
|
503
|
-
function
|
|
503
|
+
function Zi() {
|
|
504
504
|
if (na) return Je;
|
|
505
505
|
na = 1;
|
|
506
506
|
function e(r, t) {
|
|
@@ -520,23 +520,23 @@ function es() {
|
|
|
520
520
|
}
|
|
521
521
|
return Ye = a, Ye;
|
|
522
522
|
}
|
|
523
|
-
var
|
|
523
|
+
var Qe, sa;
|
|
524
524
|
function rs() {
|
|
525
|
-
if (sa) return
|
|
525
|
+
if (sa) return Qe;
|
|
526
526
|
sa = 1;
|
|
527
527
|
var e = es(), r = J(), t = Object.prototype, a = t.hasOwnProperty, n = t.propertyIsEnumerable, i = e(/* @__PURE__ */ (function() {
|
|
528
528
|
return arguments;
|
|
529
529
|
})()) ? e : function(s) {
|
|
530
530
|
return r(s) && a.call(s, "callee") && !n.call(s, "callee");
|
|
531
531
|
};
|
|
532
|
-
return
|
|
532
|
+
return Qe = i, Qe;
|
|
533
533
|
}
|
|
534
|
-
var
|
|
534
|
+
var Ze, oa;
|
|
535
535
|
function rt() {
|
|
536
|
-
if (oa) return
|
|
536
|
+
if (oa) return Ze;
|
|
537
537
|
oa = 1;
|
|
538
538
|
var e = Array.isArray;
|
|
539
|
-
return
|
|
539
|
+
return Ze = e, Ze;
|
|
540
540
|
}
|
|
541
541
|
var H = { exports: {} }, er, ua;
|
|
542
542
|
function ts() {
|
|
@@ -624,7 +624,7 @@ var sr, da;
|
|
|
624
624
|
function bn() {
|
|
625
625
|
if (da) return sr;
|
|
626
626
|
da = 1;
|
|
627
|
-
var e =
|
|
627
|
+
var e = Zi(), r = rs(), t = rt(), a = dn(), n = as(), i = is(), s = Object.prototype, o = s.hasOwnProperty;
|
|
628
628
|
function u(c, v) {
|
|
629
629
|
var _ = t(c), p = !_ && r(c), y = !_ && !p && a(c), q = !_ && !p && !y && i(c), C = _ || p || y || q, m = C ? e(c.length, String) : [], g = m.length;
|
|
630
630
|
for (var d in c)
|
|
@@ -1011,10 +1011,10 @@ function Ss() {
|
|
|
1011
1011
|
}
|
|
1012
1012
|
return kr = a, kr;
|
|
1013
1013
|
}
|
|
1014
|
-
var Nr,
|
|
1014
|
+
var Nr, Qa;
|
|
1015
1015
|
function Es() {
|
|
1016
|
-
if (
|
|
1017
|
-
|
|
1016
|
+
if (Qa) return Nr;
|
|
1017
|
+
Qa = 1;
|
|
1018
1018
|
var e = ct();
|
|
1019
1019
|
function r(t, a) {
|
|
1020
1020
|
var n = a ? e(t.buffer) : t.buffer;
|
|
@@ -1022,10 +1022,10 @@ function Es() {
|
|
|
1022
1022
|
}
|
|
1023
1023
|
return Nr = r, Nr;
|
|
1024
1024
|
}
|
|
1025
|
-
var Gr,
|
|
1025
|
+
var Gr, Za;
|
|
1026
1026
|
function Os() {
|
|
1027
|
-
if (
|
|
1028
|
-
|
|
1027
|
+
if (Za) return Gr;
|
|
1028
|
+
Za = 1;
|
|
1029
1029
|
var e = ct(), r = Ts(), t = Rs(), a = Ss(), n = Es(), i = "[object Boolean]", s = "[object Date]", o = "[object Map]", u = "[object Number]", c = "[object RegExp]", v = "[object Set]", _ = "[object String]", p = "[object Symbol]", y = "[object ArrayBuffer]", q = "[object DataView]", C = "[object Float32Array]", m = "[object Float64Array]", g = "[object Int8Array]", d = "[object Int16Array]", S = "[object Int32Array]", E = "[object Uint8Array]", O = "[object Uint8ClampedArray]", j = "[object Uint16Array]", B = "[object Uint32Array]";
|
|
1030
1030
|
function k(I, N, f) {
|
|
1031
1031
|
var x = I.constructor;
|
|
@@ -1131,27 +1131,27 @@ function Fs() {
|
|
|
1131
1131
|
on = 1;
|
|
1132
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 = 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 = {};
|
|
1133
1133
|
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;
|
|
1134
|
-
function Y(l, F, M, Vn,
|
|
1135
|
-
var A,
|
|
1136
|
-
if (M && (A =
|
|
1134
|
+
function Y(l, F, M, Vn, Q, D) {
|
|
1135
|
+
var A, Z = F & j, ee = F & B, zn = F & k;
|
|
1136
|
+
if (M && (A = Q ? M(l, Vn, Q, D) : M(l)), A !== void 0)
|
|
1137
1137
|
return A;
|
|
1138
1138
|
if (!d(l))
|
|
1139
1139
|
return l;
|
|
1140
1140
|
var _t = C(l);
|
|
1141
1141
|
if (_t) {
|
|
1142
|
-
if (A = p(l), !
|
|
1142
|
+
if (A = p(l), !Z)
|
|
1143
1143
|
return s(l, A);
|
|
1144
1144
|
} else {
|
|
1145
1145
|
var K = _(l), vt = K == ft || K == Rn;
|
|
1146
1146
|
if (m(l))
|
|
1147
|
-
return i(l,
|
|
1148
|
-
if (K == lt || K == I || vt && !
|
|
1149
|
-
if (A = ee || vt ? {} : q(l), !
|
|
1147
|
+
return i(l, Z);
|
|
1148
|
+
if (K == lt || K == I || vt && !Q) {
|
|
1149
|
+
if (A = ee || vt ? {} : q(l), !Z)
|
|
1150
1150
|
return ee ? u(l, n(A, l)) : o(l, a(A, l));
|
|
1151
1151
|
} else {
|
|
1152
1152
|
if (!h[K])
|
|
1153
|
-
return
|
|
1154
|
-
A = y(l, K,
|
|
1153
|
+
return Q ? l : {};
|
|
1154
|
+
A = y(l, K, Z);
|
|
1155
1155
|
}
|
|
1156
1156
|
}
|
|
1157
1157
|
D || (D = new e());
|
|
@@ -1203,11 +1203,11 @@ const Bs = /* @__PURE__ */ ei(Ks), ks = (e, r, t) => {
|
|
|
1203
1203
|
var n;
|
|
1204
1204
|
const a = Bs(e);
|
|
1205
1205
|
switch (r) {
|
|
1206
|
-
case
|
|
1206
|
+
case Qr.BEFORE_FIELD_TITLE:
|
|
1207
1207
|
const i = a == null ? void 0 : a.nodes.find(Boolean);
|
|
1208
1208
|
i && (i.nodes ?? (i.nodes = []), i.nodes.unshift(t));
|
|
1209
1209
|
break;
|
|
1210
|
-
case
|
|
1210
|
+
case Qr.AFTER_FIELD_TITLE:
|
|
1211
1211
|
const s = (n = a == null ? void 0 : a.nodes) == null ? void 0 : n.findLast(Boolean);
|
|
1212
1212
|
s && (s.nodes ?? (s.nodes = []), s.nodes.push(t));
|
|
1213
1213
|
break;
|
|
@@ -1220,7 +1220,7 @@ const Bs = /* @__PURE__ */ ei(Ks), ks = (e, r, t) => {
|
|
|
1220
1220
|
onMouseDown: Yr,
|
|
1221
1221
|
onClick: Yr
|
|
1222
1222
|
}, Us = ({ className: e, requiredClassName: r, theme: t, children: a, ...n }) => {
|
|
1223
|
-
const { requiredIndicatorHidden: i = !1 } = n, s =
|
|
1223
|
+
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(() => {
|
|
1224
1224
|
if (!u || i || !o)
|
|
1225
1225
|
return o;
|
|
1226
1226
|
const C = ks(v, p, r);
|
|
@@ -1243,7 +1243,7 @@ const Bs = /* @__PURE__ */ ei(Ks), ks = (e, r, t) => {
|
|
|
1243
1243
|
htmlAttributesPlugin: ai
|
|
1244
1244
|
}));
|
|
1245
1245
|
}, T = ({ children: e }) => {
|
|
1246
|
-
const { id: r, FieldLayout: t } =
|
|
1246
|
+
const { id: r, FieldLayout: t } = Zr(), a = W(e, T.Checkbox), n = W(e, T.Description), i = W(e, T.Error);
|
|
1247
1247
|
return /* @__PURE__ */ b.createElement(t, {
|
|
1248
1248
|
fieldId: r,
|
|
1249
1249
|
renderLabel: () => null,
|
|
@@ -1251,7 +1251,7 @@ const Bs = /* @__PURE__ */ ei(Ks), ks = (e, r, t) => {
|
|
|
1251
1251
|
renderDescription: () => /* @__PURE__ */ b.createElement(b.Fragment, null, i, n)
|
|
1252
1252
|
});
|
|
1253
1253
|
}, X = ({ children: e, className: r }) => {
|
|
1254
|
-
const { id: t, value: a, onChange: n, disabled: i, required: s, readOnly: o, onBlur: u, onFocus: c, hasError: v } =
|
|
1254
|
+
const { id: t, value: a, onChange: n, disabled: i, required: s, readOnly: o, onBlur: u, onFocus: c, hasError: v } = Zr(), { inputId: _, ariaDescribedBy: p } = ni(), y = Jn(null);
|
|
1255
1255
|
ii(() => {
|
|
1256
1256
|
var g;
|
|
1257
1257
|
(g = y.current) == null || g.focus();
|
|
@@ -1261,7 +1261,7 @@ const Bs = /* @__PURE__ */ ei(Ks), ks = (e, r, t) => {
|
|
|
1261
1261
|
}, [
|
|
1262
1262
|
n
|
|
1263
1263
|
]);
|
|
1264
|
-
return /* @__PURE__ */ b.createElement(
|
|
1264
|
+
return /* @__PURE__ */ b.createElement(Qn, {
|
|
1265
1265
|
id: _,
|
|
1266
1266
|
"aria-describedby": p,
|
|
1267
1267
|
isSelected: !!a,
|
|
@@ -1272,7 +1272,7 @@ const Bs = /* @__PURE__ */ ei(Ks), ks = (e, r, t) => {
|
|
|
1272
1272
|
isInvalid: v,
|
|
1273
1273
|
onBlur: u,
|
|
1274
1274
|
onFocus: c
|
|
1275
|
-
}, /* @__PURE__ */ b.createElement(
|
|
1275
|
+
}, /* @__PURE__ */ b.createElement(Zn, {
|
|
1276
1276
|
ref: y,
|
|
1277
1277
|
className: r
|
|
1278
1278
|
}, ({ isSelected: g, isHovered: d }) => /* @__PURE__ */ b.createElement(b.Fragment, null, vi(C, {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import o, { useMemo as x, useCallback as $, useRef as w, useState as W, useEffect as
|
|
2
|
-
import { CheckboxGroup as
|
|
1
|
+
import o, { useMemo as x, useCallback as $, useRef as w, useState as W, useEffect as j } from "react";
|
|
2
|
+
import { CheckboxGroup as A, CheckboxField as M, CheckboxButton as z, TextField as J, Input as K } from "react-aria-components";
|
|
3
3
|
import { debounce as Q } from "ts-debounce";
|
|
4
|
-
import {
|
|
4
|
+
import { b9 as R, b6 as U, bj as X, bb as Y } from "./form-BTDgyr54.js";
|
|
5
5
|
import { f as I, a as F } from "./find-child-C60k4CxG.js";
|
|
6
|
-
import { D as Z, E as ee } from "./field-error-headless-
|
|
7
|
-
import { L as te } from "./field-label-headless-
|
|
6
|
+
import { D as Z, E as ee } from "./field-error-headless-CovyN0GI.js";
|
|
7
|
+
import { L as te } from "./field-label-headless-DVvX2QaH.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) => {
|
|
@@ -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(A, {
|
|
35
35
|
className: t,
|
|
36
36
|
"aria-labelledby": u,
|
|
37
37
|
value: O,
|
|
@@ -97,7 +97,7 @@ 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(M, {
|
|
101
101
|
value: O,
|
|
102
102
|
onChange: d ? V : void 0,
|
|
103
103
|
isDisabled: i,
|
|
@@ -153,7 +153,7 @@ const T = ({ children: e, ...t }) => {
|
|
|
153
153
|
const l = D(u || []);
|
|
154
154
|
return N(a, l) ? q(a, h) : "";
|
|
155
155
|
});
|
|
156
|
-
|
|
156
|
+
j(() => {
|
|
157
157
|
const l = D(u || []), O = N(a, l);
|
|
158
158
|
E(O ? q(a, h) : "");
|
|
159
159
|
}, [
|
package/dist/component/{checkbox-group-field-rac-DTcZcVS6.js → checkbox-group-field-rac-CO8kmWJp.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-AFWgXzx_.js";
|
|
5
5
|
import { E as n } from "./error-icon-hZxQ6DEy.js";
|
|
6
6
|
import { C as c } from "./checkbox-indicator-module-classes-BpeSpGsW.js";
|
|
7
7
|
import { s } from "./field-rac.module-B4l_0KRU.js";
|
|
8
|
-
import {
|
|
8
|
+
import { I as i, U as p, i as E, k as C, v as O, p as _, j as I } from "./form-BTDgyr54.js";
|
|
9
9
|
import { o as l } from "./options-rac.module-CTDdATiz.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-DB1AzkvF.js";
|
|
11
|
+
import { u as R } from "./use-text-input-class-name-va1PzWFg.js";
|
|
12
12
|
const u = ({ content: o, locale: r }) => /* @__PURE__ */ e.createElement(m, {
|
|
13
13
|
content: o,
|
|
14
14
|
locale: r
|