@wix/form-elements 1.168.0 → 1.170.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-BbXyKTd7.js → appointment-rac-DZ0SFXmL.js} +83 -83
- package/dist/component/{bookings-address-rac-VJkR_U9L.js → bookings-address-rac-BW9grc77.js} +1 -1
- package/dist/component/{bookings-email-rac-_EupwXpQ.js → bookings-email-rac-D8gMaAfB.js} +1 -1
- package/dist/component/{bookings-first-name-rac-DTZixHYj.js → bookings-first-name-rac-CAjcs7b6.js} +1 -1
- package/dist/component/{bookings-header-rac-BKbKTv5g.js → bookings-header-rac-BhKZ1kku.js} +1 -1
- package/dist/component/{bookings-last-name-rac-BDy860-C.js → bookings-last-name-rac-DpsMDuU0.js} +1 -1
- package/dist/component/{bookings-login-bar-rac-DgNP-YNZ.js → bookings-login-bar-rac-BVdWmKS8.js} +3 -3
- package/dist/component/{bookings-phone-rac-B_I6n96b.js → bookings-phone-rac-DsqNi2mI.js} +1 -1
- package/dist/component/{bookings-rich-text-rac-prYPbIiz.js → bookings-rich-text-rac-elM4Ne3f.js} +1 -1
- package/dist/component/{checkbox-field-rac-C-4PXuxG.js → checkbox-field-rac-BU4E73fD.js} +43 -43
- package/dist/component/{checkbox-group-field-headless-D16bAcaq.js → checkbox-group-field-headless-6yJdIbP2.js} +41 -41
- package/dist/component/{checkbox-group-field-rac-GUQ5dO_s.js → checkbox-group-field-rac-CojbCWSF.js} +4 -4
- package/dist/component/{checkbox-group-rac-Bl6xL5-H.js → checkbox-group-rac-3qUVUc-C.js} +1 -1
- package/dist/component/{checkbox-rac-Blg0KVyP.js → checkbox-rac-DwbTapd_.js} +1 -1
- package/dist/component/{contacts-address-rac-BfOhCAj8.js → contacts-address-rac-BL7XDZuP.js} +1 -1
- package/dist/component/{contacts-birthdate-rac-DYBvDh62.js → contacts-birthdate-rac-DeJYIHAg.js} +1 -1
- package/dist/component/{contacts-company-rac-DIJr7zjA.js → contacts-company-rac-BeImf5uc.js} +1 -1
- package/dist/component/{contacts-email-rac-DjmqELhC.js → contacts-email-rac-CtacwrZ0.js} +1 -1
- package/dist/component/{contacts-first-name-rac-DGNll7gw.js → contacts-first-name-rac-CAdOqOOA.js} +1 -1
- package/dist/component/{contacts-last-name-rac-BJ8AZYQN.js → contacts-last-name-rac-Db9mHzCW.js} +1 -1
- package/dist/component/{contacts-phone-rac-BC-QtpEN.js → contacts-phone-rac-W0OLEbzL.js} +1 -1
- package/dist/component/{contacts-position-rac-BQia__74.js → contacts-position-rac-CV4Ibt4Z.js} +1 -1
- package/dist/component/{contacts-subscribe-rac-CTFptz01.js → contacts-subscribe-rac-CQ3Q1pjZ.js} +1 -1
- package/dist/component/{contacts-tax-id-rac-Cy72Jouc.js → contacts-tax-id-rac-Dux-pk6r.js} +1 -1
- package/dist/component/{date-availability-BC6updcS.js → date-availability-RkX-Qw7G.js} +1 -1
- package/dist/component/date-input-field-rac-CYCT6qoa.js +309 -0
- package/dist/component/{date-input-rac-KkRyWRP_.js → date-input-rac-BkYZ7q_o.js} +1 -1
- package/dist/component/{date-picker-field-rac-BLWVJbTJ.js → date-picker-field-rac-eMidYtsl.js} +31 -31
- package/dist/component/{date-picker-rac-DKCQza7v.js → date-picker-rac-D23rxZcF.js} +1 -1
- package/dist/component/{date-time-input-field-rac-CZxZW6fz.js → date-time-input-field-rac-BjIj4dXQ.js} +111 -111
- package/dist/component/{date-time-input-rac-DQ-iBwmr.js → date-time-input-rac-BSGAdk9L.js} +1 -1
- package/dist/component/{dext-checkbox-group-rac-kp1Jbwt-.js → dext-checkbox-group-rac-Xmb5IKrb.js} +2 -2
- package/dist/component/{dext-checkbox-rac-CBm9cRUz.js → dext-checkbox-rac-2eA7y0ld.js} +1 -1
- package/dist/component/{dext-date-picker-rac-DsVKWsRy.js → dext-date-picker-rac-CmLxVGGT.js} +1 -1
- package/dist/component/{dext-date-time-input-rac-CO26-8Qo.js → dext-date-time-input-rac-Cd9nwSjb.js} +1 -1
- package/dist/component/{dext-dropdown-rac-eRzu2C-y.js → dext-dropdown-rac-BKdQ0nGS.js} +1 -1
- package/dist/component/{dext-email-rac-DDrZzE_G.js → dext-email-rac-07zDPxyf.js} +1 -1
- package/dist/component/{dext-number-input-rac-Dj7sInLk.js → dext-number-input-rac-DRvGuppY.js} +1 -1
- package/dist/component/{dext-phone-rac-g8M77F7m.js → dext-phone-rac-CKtTVjFg.js} +1 -1
- package/dist/component/{dext-radio-group-rac-BjhygC0R.js → dext-radio-group-rac-BsBmMufq.js} +2 -2
- package/dist/component/{dext-rating-input-rac-BraNjvyA.js → dext-rating-input-rac-CcFSTAIh.js} +1 -1
- package/dist/component/{dext-tags-rac-B5mAIuDi.js → dext-tags-rac-CCTDlCvX.js} +2 -2
- package/dist/component/{dext-text-area-rac-D_YBnaWi.js → dext-text-area-rac-Cif8po9h.js} +1 -1
- package/dist/component/{dext-text-input-rac-BzeWH1jv.js → dext-text-input-rac-2118X4iF.js} +1 -1
- package/dist/component/{dext-url-input-rac-Cn0h_vx3.js → dext-url-input-rac-DDImGkQe.js} +1 -1
- package/dist/component/{donation-rac-CQRdHxWh.js → donation-rac-Dnylss1d.js} +103 -103
- package/dist/component/{dropdown-field-rac-C7LL0W5Z.js → dropdown-field-rac-DDI4ZgZH.js} +3 -3
- package/dist/component/{dropdown-rac-Nb2VyJ0x.js → dropdown-rac-DX0Z3R_8.js} +1 -1
- package/dist/component/{ecom-address-rac-_c2YIIwg.js → ecom-address-rac-D9MeEQsk.js} +1 -1
- package/dist/component/{ecom-subscription-checkbox-rac-Bma7TAVj.js → ecom-subscription-checkbox-rac-DKJ9j5dj.js} +2 -2
- package/dist/component/{email-input-field-rac-2E2tEaS5.js → email-input-field-rac-DaKrmlwe.js} +55 -55
- package/dist/component/{events-repeater-rac-COWHYBFD.js → events-repeater-rac-DWrOLT0Y.js} +45 -45
- package/dist/component/{events-rsvp-rac-CXp8j19Y.js → events-rsvp-rac-YBTR1tR0.js} +6 -6
- package/dist/component/{field-error-headless-S-ugOQQX.js → field-error-headless-jksFrezt.js} +10 -10
- package/dist/component/{field-label-headless-_n4I0_tX.js → field-label-headless-BBvJAVxI.js} +10 -10
- package/dist/component/{file-upload-rac-DCH_iwDg.js → file-upload-rac-CgdmfUZG.js} +168 -168
- package/dist/component/{fixed-payment-rac-CYkKJUfM.js → fixed-payment-rac-v6rKwzFs.js} +13 -13
- package/dist/component/{form-jK8ezTss.js → form-BsiK682r.js} +530 -502
- package/dist/component/form.js +1 -1
- package/dist/component/{header-field-rac-DnbjI6W5.js → header-field-rac-BuXybl7K.js} +6 -6
- package/dist/component/{header-rac-DKUICrni.js → header-rac-CDyaLosW.js} +1 -1
- package/dist/component/{image-choice-rac-B_9ponST.js → image-choice-rac-BRlMroBw.js} +41 -41
- package/dist/component/{index-BxdMzOvN.js → index-BanOeCAF.js} +242 -236
- package/dist/component/{index-ZYnsxY-a.js → index-y9URYGEE.js} +6 -6
- package/dist/component/{isObjectLike-BW-9QEQl.js → isObjectLike-BG9nJ-rx.js} +7 -7
- package/dist/component/{multiline-address-field-rac-k-P0ijWG.js → multiline-address-field-rac-DRAkxI1l.js} +342 -342
- package/dist/component/{multiline-address-rac-Bbn9mNDa.js → multiline-address-rac-JjTzWsEb.js} +1 -1
- package/dist/component/{number-input-field-rac--lom-B_X.js → number-input-field-rac-QrouG7Hv.js} +22 -22
- package/dist/component/{number-input-rac-Bhbd6T9S.js → number-input-rac-DGmE7cLv.js} +1 -1
- package/dist/component/{password-rac-BV_uTHb3.js → password-rac-DeyY228m.js} +28 -28
- package/dist/component/{payment-input-rac-cawyGN_t.js → payment-input-rac-DmIennLi.js} +45 -45
- package/dist/component/{phone-input-field-rac-CsElHRto.js → phone-input-field-rac-F7e74TGA.js} +76 -76
- package/dist/component/{phone-rac-XrHN5Nko.js → phone-rac-CQfB2CQD.js} +1 -1
- package/dist/component/{product-list-rac-cxv_xz7K.js → product-list-rac--GGG8vvO.js} +62 -62
- package/dist/component/{quiz-radio-group-rac-DGaxOPE1.js → quiz-radio-group-rac-DF2C2vNq.js} +1 -1
- package/dist/component/{radio-button-module-classes-Xv2Jn01x.js → radio-button-module-classes-DmpNo6F2.js} +17 -17
- package/dist/component/{radio-group-field-rac-DgGqgTql.js → radio-group-field-rac-BGcPYfKO.js} +6 -6
- package/dist/component/{radio-group-rac-Bh0E-oe1.js → radio-group-rac-CqysUMCE.js} +1 -1
- package/dist/component/{rating-input-field-rac-C3YLV971.js → rating-input-field-rac-D-ei917Y.js} +24 -24
- package/dist/component/{rating-input-rac-CfcC5EUh.js → rating-input-rac-a9zJ74fw.js} +1 -1
- package/dist/component/{rich-content-rac.module-DUjzLGtX.js → rich-content-rac.module-CvyLVlXL.js} +5 -5
- package/dist/component/{rich-text-field-rac-BmguoJhk.js → rich-text-field-rac-vf19nvyw.js} +7 -7
- package/dist/component/{rich-text-rac-BWhHcq25.js → rich-text-rac-Cx_wpoxC.js} +1 -1
- package/dist/component/{service-dropdown-rac-C5oX-ql7.js → service-dropdown-rac-DITzKQxd.js} +26 -26
- package/dist/component/{services-multi-choice-rac-C1fem9NB.js → services-multi-choice-rac-BtisN0Aq.js} +11 -11
- package/dist/component/{signature-rac-BtHqiWj1.js → signature-rac-DUeIoS5O.js} +226 -226
- package/dist/component/{submit-button-rac-OYeKJFF8.js → submit-button-rac-C8h6zeTw.js} +36 -36
- package/dist/component/{tags-field-rac-kA2RSijL.js → tags-field-rac-CjFuiB0n.js} +51 -51
- package/dist/component/{tags-rac-B_2qCZGu.js → tags-rac-BO7rwyLl.js} +1 -1
- package/dist/component/{text-area-field-rac-DeO609Mv.js → text-area-field-rac-CgUx3nQ0.js} +23 -23
- package/dist/component/{text-area-rac-BAQFBOZd.js → text-area-rac-WgXYXIaf.js} +1 -1
- package/dist/component/{text-input-field-rac-CCcKwuLZ.js → text-input-field-rac-DaxWFha-.js} +6 -6
- package/dist/component/{text-input-headless-D8-jkaYm.js → text-input-headless-hjuRJTZN.js} +6 -6
- package/dist/component/{text-input-rac-BVcgjj8g.js → text-input-rac-BzumrJBj.js} +1 -1
- package/dist/component/{time-input-rac-BYctyHgU.js → time-input-rac-2FEkpQ7M.js} +18 -18
- package/dist/component/{url-input-field-rac-COC9qgcs.js → url-input-field-rac-BZ9f8D8I.js} +26 -26
- package/dist/component/{url-input-rac-BZXLh0Ej.js → url-input-rac-D-AVlxkD.js} +1 -1
- package/dist/component/{use-dropdown-option-class-name-BTltqRl1.js → use-dropdown-option-class-name-DwAAtzgX.js} +11 -11
- package/dist/component/{use-dropdown-trigger-class-name-BjJZfl3i.js → use-dropdown-trigger-class-name-D-6n9YVG.js} +18 -18
- package/dist/component/{use-element-state-class-name-CkT6Ga8t.js → use-element-state-class-name-C5auxwhj.js} +3 -3
- package/dist/component/{use-hoverable-input-class-name-BkoSr6tr.js → use-hoverable-input-class-name-Nd2jqfz4.js} +2 -2
- package/dist/component/use-is-forced-open-dropdown-CKaHhCqp.js +64 -0
- package/dist/component/{use-service-options-base-Wp8RZ4Z8.js → use-service-options-base-CvluFheT.js} +3 -3
- package/dist/component/use-text-input-class-name-DGTlYJxC.js +6 -0
- package/dist/form.d.ts +19 -0
- package/package.json +2 -2
- package/dist/component/date-input-field-rac-b_T1yf8D.js +0 -309
- package/dist/component/use-is-forced-open-dropdown-fo_NCnSk.js +0 -53
- package/dist/component/use-text-input-class-name-DS7i03Gk.js +0 -6
|
@@ -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 { bi as ei, bK as Zr, b0 as Qr, a$ as fn, bU as ri, bC as ti, bq as ai, bH as ni, bM as ii, o as si, al as oi, t as ui, aX as ci, M as fi, I as li, s as _i } from "./form-BsiK682r.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-jksFrezt.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-BG9nJ-rx.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-DUTR4mcg.js";
|
|
13
13
|
import { s as oe } from "./field-rac.module-ts2t4WUO.js";
|
|
14
|
-
import { u as Ai } from "./use-element-state-class-name-
|
|
14
|
+
import { u as Ai } from "./use-element-state-class-name-C5auxwhj.js";
|
|
15
15
|
var ue, dt;
|
|
16
16
|
function mi() {
|
|
17
17
|
if (dt) return ue;
|
|
@@ -236,17 +236,17 @@ function et() {
|
|
|
236
236
|
var e = L(), r = S(), t = e(r, "Map");
|
|
237
237
|
return Se = t, Se;
|
|
238
238
|
}
|
|
239
|
-
var Ee,
|
|
239
|
+
var Ee, Mt;
|
|
240
240
|
function ne() {
|
|
241
|
-
if (
|
|
242
|
-
|
|
241
|
+
if (Mt) return Ee;
|
|
242
|
+
Mt = 1;
|
|
243
243
|
var e = L(), r = e(Object, "create");
|
|
244
244
|
return Ee = r, Ee;
|
|
245
245
|
}
|
|
246
|
-
var je,
|
|
247
|
-
function
|
|
248
|
-
if (
|
|
249
|
-
|
|
246
|
+
var je, Ft;
|
|
247
|
+
function Mi() {
|
|
248
|
+
if (Ft) return je;
|
|
249
|
+
Ft = 1;
|
|
250
250
|
var e = ne();
|
|
251
251
|
function r() {
|
|
252
252
|
this.__data__ = e ? e(null) : {}, this.size = 0;
|
|
@@ -254,7 +254,7 @@ function Fi() {
|
|
|
254
254
|
return je = r, je;
|
|
255
255
|
}
|
|
256
256
|
var Oe, Kt;
|
|
257
|
-
function
|
|
257
|
+
function Fi() {
|
|
258
258
|
if (Kt) return Oe;
|
|
259
259
|
Kt = 1;
|
|
260
260
|
function e(r) {
|
|
@@ -304,7 +304,7 @@ var we, Gt;
|
|
|
304
304
|
function Ni() {
|
|
305
305
|
if (Gt) return we;
|
|
306
306
|
Gt = 1;
|
|
307
|
-
var e =
|
|
307
|
+
var e = Mi(), r = Fi(), t = Ki(), a = Bi(), n = ki();
|
|
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 Gi() {
|
|
|
328
328
|
}
|
|
329
329
|
return Le = a, Le;
|
|
330
330
|
}
|
|
331
|
-
var
|
|
331
|
+
var Me, Ht;
|
|
332
332
|
function Ui() {
|
|
333
|
-
if (Ht) return
|
|
333
|
+
if (Ht) return Me;
|
|
334
334
|
Ht = 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 Me = e, Me;
|
|
340
340
|
}
|
|
341
|
-
var
|
|
341
|
+
var Fe, Vt;
|
|
342
342
|
function ie() {
|
|
343
|
-
if (Vt) return
|
|
343
|
+
if (Vt) return Fe;
|
|
344
344
|
Vt = 1;
|
|
345
345
|
var e = Ui();
|
|
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 Fe = r, Fe;
|
|
351
351
|
}
|
|
352
352
|
var Ke, zt;
|
|
353
353
|
function Hi() {
|
|
@@ -847,10 +847,10 @@ function mn() {
|
|
|
847
847
|
var e = gn(), r = e(Object.getPrototypeOf, Object);
|
|
848
848
|
return Ir = r, Ir;
|
|
849
849
|
}
|
|
850
|
-
var Tr,
|
|
850
|
+
var Tr, Ma;
|
|
851
851
|
function In() {
|
|
852
|
-
if (
|
|
853
|
-
|
|
852
|
+
if (Ma) return Tr;
|
|
853
|
+
Ma = 1;
|
|
854
854
|
var e = An(), r = mn(), t = ot(), a = Cn(), n = Object.getOwnPropertySymbols, i = n ? function(s) {
|
|
855
855
|
for (var o = []; s; )
|
|
856
856
|
e(o, t(s)), s = r(s);
|
|
@@ -858,10 +858,10 @@ function In() {
|
|
|
858
858
|
} : a;
|
|
859
859
|
return Tr = i, Tr;
|
|
860
860
|
}
|
|
861
|
-
var Rr,
|
|
861
|
+
var Rr, Fa;
|
|
862
862
|
function ds() {
|
|
863
|
-
if (
|
|
864
|
-
|
|
863
|
+
if (Fa) return Rr;
|
|
864
|
+
Fa = 1;
|
|
865
865
|
var e = se(), r = In();
|
|
866
866
|
function t(a, n) {
|
|
867
867
|
return e(a, r(a), n);
|
|
@@ -961,23 +961,23 @@ function ms() {
|
|
|
961
961
|
}
|
|
962
962
|
return Lr = t, Lr;
|
|
963
963
|
}
|
|
964
|
-
var
|
|
964
|
+
var Mr, Wa;
|
|
965
965
|
function Is() {
|
|
966
|
-
if (Wa) return
|
|
966
|
+
if (Wa) return Mr;
|
|
967
967
|
Wa = 1;
|
|
968
968
|
var e = S(), r = e.Uint8Array;
|
|
969
|
-
return
|
|
969
|
+
return Mr = r, Mr;
|
|
970
970
|
}
|
|
971
|
-
var
|
|
971
|
+
var Fr, Xa;
|
|
972
972
|
function ct() {
|
|
973
|
-
if (Xa) return
|
|
973
|
+
if (Xa) return Fr;
|
|
974
974
|
Xa = 1;
|
|
975
975
|
var e = Is();
|
|
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 Fr = r, Fr;
|
|
981
981
|
}
|
|
982
982
|
var Kr, $a;
|
|
983
983
|
function Ts() {
|
|
@@ -1126,14 +1126,14 @@ function Ls() {
|
|
|
1126
1126
|
return Xr = n, Xr;
|
|
1127
1127
|
}
|
|
1128
1128
|
var $r, on;
|
|
1129
|
-
function
|
|
1129
|
+
function Ms() {
|
|
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 = 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]",
|
|
1133
|
-
h[I] = h[N] = h[wn] = h[Ln] = h[f] = h[D] = h[
|
|
1134
|
-
function Y(l,
|
|
1135
|
-
var A, Z =
|
|
1136
|
-
if (
|
|
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]", Mn = "[object Float32Array]", Fn = "[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[Mn] = h[Fn] = 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
|
+
function Y(l, M, F, Vn, Q, x) {
|
|
1135
|
+
var A, Z = M & O, ee = M & B, zn = M & k;
|
|
1136
|
+
if (F && (A = Q ? F(l, Vn, Q, x) : F(l)), A !== void 0)
|
|
1137
1137
|
return A;
|
|
1138
1138
|
if (!d(l))
|
|
1139
1139
|
return l;
|
|
@@ -1159,28 +1159,28 @@ function Fs() {
|
|
|
1159
1159
|
if (ht)
|
|
1160
1160
|
return ht;
|
|
1161
1161
|
x.set(l, A), R(l) ? l.forEach(function(P) {
|
|
1162
|
-
A.add(Y(P,
|
|
1162
|
+
A.add(Y(P, M, F, P, l, x));
|
|
1163
1163
|
}) : g(l) && l.forEach(function(P, w) {
|
|
1164
|
-
A.set(w, Y(P,
|
|
1164
|
+
A.set(w, Y(P, M, F, w, l, x));
|
|
1165
1165
|
});
|
|
1166
1166
|
var Wn = zn ? ee ? v : c : ee ? j : E, pt = _t ? void 0 : Wn(l);
|
|
1167
1167
|
return r(pt || l, function(P, w) {
|
|
1168
|
-
pt && (w = P, P = l[w]), t(A, w, Y(P,
|
|
1168
|
+
pt && (w = P, P = l[w]), t(A, w, Y(P, M, F, w, l, x));
|
|
1169
1169
|
}), A;
|
|
1170
1170
|
}
|
|
1171
1171
|
return $r = Y, $r;
|
|
1172
1172
|
}
|
|
1173
1173
|
var Jr, un;
|
|
1174
|
-
function
|
|
1174
|
+
function Fs() {
|
|
1175
1175
|
if (un) return Jr;
|
|
1176
1176
|
un = 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
|
}
|
|
1181
1181
|
return Jr = a, Jr;
|
|
1182
1182
|
}
|
|
1183
|
-
var Ks =
|
|
1183
|
+
var Ks = Fs();
|
|
1184
1184
|
const Bs = /* @__PURE__ */ ei(Ks), ks = (e, r, t) => {
|
|
1185
1185
|
const a = e === fn.TEXT ? r("settings.required-indicator-text") : "*", n = (s) => ({
|
|
1186
1186
|
stringValue: s
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import o, { useMemo as
|
|
2
|
-
import { CheckboxGroup as
|
|
3
|
-
import { debounce as
|
|
4
|
-
import {
|
|
1
|
+
import o, { useMemo as F, useCallback as $, useRef as w, useState as M, useEffect as W } from "react";
|
|
2
|
+
import { CheckboxGroup as A, CheckboxField as K, CheckboxButton as U, TextField as j, Input as z } from "react-aria-components";
|
|
3
|
+
import { debounce as J } from "ts-debounce";
|
|
4
|
+
import { bK as R, bH as Q, bU as X, bM as Y } from "./form-BsiK682r.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-jksFrezt.js";
|
|
7
|
+
import { L as te } from "./field-label-headless-BBvJAVxI.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 ||
|
|
13
|
-
},
|
|
12
|
+
return e || r || B;
|
|
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
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 } = Q(), 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)), B = (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,
|
|
@@ -43,7 +43,7 @@ const R = "Other", le = (e, t) => e.some((r) => !t.includes(r)), B = (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)), B = (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,16 +68,16 @@ const R = "Other", le = (e, t) => e.some((r) => !t.includes(r)), B = (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({
|
|
75
75
|
preventScroll: !0
|
|
76
76
|
}));
|
|
77
77
|
}, p);
|
|
78
|
-
const g = I(e, y.Label), C = I(e, y.Input), l =
|
|
78
|
+
const g = I(e, y.Label), C = I(e, y.Input), l = F(() => m || [], [
|
|
79
79
|
m
|
|
80
|
-
]), O =
|
|
80
|
+
]), O = F(() => d ? l.find((b) => b === n || b.startsWith(`${n}: `)) || n : a, [
|
|
81
81
|
d,
|
|
82
82
|
l,
|
|
83
83
|
n,
|
|
@@ -85,11 +85,11 @@ const R = "Other", le = (e, t) => e.some((r) => !t.includes(r)), B = (e, t) => e
|
|
|
85
85
|
]), V = $((b) => {
|
|
86
86
|
if (!d)
|
|
87
87
|
return;
|
|
88
|
-
const D = S(L || []),
|
|
89
|
-
...
|
|
88
|
+
const D = S(L || []), x = l.filter((P) => D.includes(P)), G = b ? [
|
|
89
|
+
...x,
|
|
90
90
|
n
|
|
91
|
-
] :
|
|
92
|
-
c == null || c(
|
|
91
|
+
] : x;
|
|
92
|
+
c == null || c(G);
|
|
93
93
|
}, [
|
|
94
94
|
d,
|
|
95
95
|
n,
|
|
@@ -97,34 +97,34 @@ const R = "Other", le = (e, t) => e.some((r) => !t.includes(r)), B = (e, t) => e
|
|
|
97
97
|
L,
|
|
98
98
|
l
|
|
99
99
|
]);
|
|
100
|
-
return /* @__PURE__ */ o.createElement(
|
|
100
|
+
return /* @__PURE__ */ o.createElement(K, {
|
|
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(U, {
|
|
107
107
|
ref: E,
|
|
108
108
|
className: t,
|
|
109
109
|
"data-hook": `checkbox-${n}`
|
|
110
|
-
}, ({ isSelected: b, isHovered: D, isFocused:
|
|
110
|
+
}, ({ isSelected: b, isHovered: D, isFocused: x }) => /* @__PURE__ */ o.createElement(o.Fragment, null, k(C, {
|
|
111
111
|
isSelected: b,
|
|
112
112
|
isHovered: D,
|
|
113
|
-
isFocused:
|
|
113
|
+
isFocused: x
|
|
114
114
|
}), k(g, {
|
|
115
115
|
label: n
|
|
116
116
|
}))));
|
|
117
117
|
};
|
|
118
118
|
y.Label = re;
|
|
119
119
|
y.Input = ne;
|
|
120
|
-
const
|
|
121
|
-
const { value: r, label: a, isFirst: n = !1, isOther: s = !1, fieldId: d } = t, p =
|
|
120
|
+
const H = ({ 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, y), C = I(e, q), l = F(() => f || [], [
|
|
122
122
|
f
|
|
123
|
-
]), O =
|
|
123
|
+
]), O = F(() => {
|
|
124
124
|
if (!s)
|
|
125
125
|
return !1;
|
|
126
126
|
const V = S(c || []);
|
|
127
|
-
return
|
|
127
|
+
return N(l, V);
|
|
128
128
|
}, [
|
|
129
129
|
s,
|
|
130
130
|
l,
|
|
@@ -149,21 +149,21 @@ 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
|
+
}, q = ({ 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] = M(() => {
|
|
154
154
|
const l = S(u || []);
|
|
155
|
-
return
|
|
155
|
+
return N(a, l) ? T(a, h) : "";
|
|
156
156
|
});
|
|
157
157
|
W(() => {
|
|
158
|
-
const l = S(u || []), O =
|
|
159
|
-
E(O ?
|
|
158
|
+
const l = S(u || []), O = N(a, l);
|
|
159
|
+
E(O ? T(a, h) : "");
|
|
160
160
|
}, [
|
|
161
161
|
a,
|
|
162
162
|
u,
|
|
163
163
|
h
|
|
164
164
|
]);
|
|
165
|
-
const g =
|
|
166
|
-
const O = S(u || []), V = a.filter((
|
|
165
|
+
const g = F(() => J((l) => {
|
|
166
|
+
const O = S(u || []), V = a.filter((x) => O.includes(x)), b = l ? `${h}: ${l}` : s, D = [
|
|
167
167
|
...V,
|
|
168
168
|
b
|
|
169
169
|
];
|
|
@@ -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(z, {
|
|
191
191
|
className: t,
|
|
192
192
|
placeholder: d,
|
|
193
193
|
maxLength: p,
|
|
@@ -196,9 +196,9 @@ const T = ({ children: e, ...t }) => {
|
|
|
196
196
|
};
|
|
197
197
|
v.Label = te;
|
|
198
198
|
v.Options = _;
|
|
199
|
-
_.Option =
|
|
200
|
-
|
|
201
|
-
|
|
199
|
+
_.Option = H;
|
|
200
|
+
H.Checkbox = y;
|
|
201
|
+
H.OtherInput = q;
|
|
202
202
|
v.Description = Z;
|
|
203
203
|
v.Error = ee;
|
|
204
204
|
export {
|
package/dist/component/{checkbox-group-field-rac-GUQ5dO_s.js → checkbox-group-field-rac-CojbCWSF.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-6yJdIbP2.js";
|
|
5
5
|
import { E as n } from "./error-icon-hZxQ6DEy.js";
|
|
6
6
|
import { C as c } from "./checkbox-indicator-module-classes-DUTR4mcg.js";
|
|
7
7
|
import { s } from "./field-rac.module-ts2t4WUO.js";
|
|
8
|
-
import {
|
|
8
|
+
import { X as i, al as E, p, r as C, M as O, I as _, q as I } from "./form-BsiK682r.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-C5auxwhj.js";
|
|
11
|
+
import { u as R } from "./use-text-input-class-name-DGTlYJxC.js";
|
|
12
12
|
const u = ({ content: r, locale: o }) => /* @__PURE__ */ e.createElement(m, {
|
|
13
13
|
content: r,
|
|
14
14
|
locale: o
|