@wix/form-elements 1.63.0 → 1.65.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-B1VVk_Ui.js → appointment-rac-0kUk8XQJ.js} +5 -5
- package/dist/component/{bookings-address-rac-IQeHFdHT.js → bookings-address-rac-BUM0wpw0.js} +1 -1
- package/dist/component/{bookings-email-rac-z26A790r.js → bookings-email-rac-BHlvupVS.js} +1 -1
- package/dist/component/{bookings-first-name-rac-Djf0GPP4.js → bookings-first-name-rac-Bwn6xv1U.js} +1 -1
- package/dist/component/{bookings-header-rac-CXOzAOpz.js → bookings-header-rac-BkRvQMi4.js} +1 -1
- package/dist/component/{bookings-last-name-rac-CbB8alM9.js → bookings-last-name-rac-DRTj4VdX.js} +1 -1
- package/dist/component/{bookings-login-bar-rac-CXrLx7Pn.js → bookings-login-bar-rac-D-2Bt7Kx.js} +5 -5
- package/dist/component/{bookings-phone-rac-DGYx7h5g.js → bookings-phone-rac-CTcHHpDr.js} +1 -1
- package/dist/component/{bookings-rich-text-rac-viJG57XF.js → bookings-rich-text-rac-n-w9iWII.js} +1 -1
- package/dist/component/{checkbox-field-rac-e-RAmupX.js → checkbox-field-rac-BamOJv3P.js} +43 -43
- package/dist/component/checkbox-group-field-headless-BmKJbEi0.js +210 -0
- package/dist/component/checkbox-group-field-rac-CC8qfj0Y.js +40 -0
- package/dist/component/{checkbox-group-rac-CDfDTWqz.js → checkbox-group-rac-CsrP7zD5.js} +1 -1
- package/dist/component/{checkbox-rac-BRBKYD_5.js → checkbox-rac-X6E-fJ8k.js} +1 -1
- package/dist/component/{contacts-address-rac-BtWWQi77.js → contacts-address-rac-oYnkIZ6m.js} +1 -1
- package/dist/component/{contacts-birthdate-rac-DaEUXJTf.js → contacts-birthdate-rac-B7p8LgYA.js} +1 -1
- package/dist/component/{contacts-company-rac-IgRyjtcM.js → contacts-company-rac-cjLRO5J-.js} +1 -1
- package/dist/component/{contacts-email-rac-BS1MDrMk.js → contacts-email-rac-BlJJSkGK.js} +1 -1
- package/dist/component/{contacts-first-name-rac-BAvXypDF.js → contacts-first-name-rac-Nl-MDndn.js} +1 -1
- package/dist/component/{contacts-last-name-rac-C289RYPl.js → contacts-last-name-rac-DhxAobRI.js} +1 -1
- package/dist/component/{contacts-phone-rac-DIpyskam.js → contacts-phone-rac-CZLWlH0T.js} +1 -1
- package/dist/component/{contacts-position-rac-nPeh3lKU.js → contacts-position-rac-DlKC0lCU.js} +1 -1
- package/dist/component/{contacts-subscribe-rac-Ci5OLk68.js → contacts-subscribe-rac-POSKh1Ta.js} +2 -2
- package/dist/component/{contacts-tax-id-rac-C4WB-SR0.js → contacts-tax-id-rac-uyBKxOJn.js} +1 -1
- package/dist/component/{date-availability-HHjPx4Uv.js → date-availability-DnFJD1aS.js} +1 -1
- package/dist/component/{date-input-field-rac-GFgFcpX2.js → date-input-field-rac-DojzGm-i.js} +22 -22
- package/dist/component/{date-input-rac-B9BUEIA-.js → date-input-rac-BaPKcAuU.js} +1 -1
- package/dist/component/{date-picker-field-rac-BfjYIIuY.js → date-picker-field-rac-C1rzJMV8.js} +24 -24
- package/dist/component/{date-picker-rac-Bd2UN0ZF.js → date-picker-rac-BHsOfkYn.js} +1 -1
- package/dist/component/{date-time-input-field-rac-CAXnxLQP.js → date-time-input-field-rac-B4jAAxU8.js} +32 -32
- package/dist/component/{date-time-input-rac-BuJ3Awlh.js → date-time-input-rac-XyL5z_ma.js} +1 -1
- package/dist/component/{dext-checkbox-group-rac-DKp4cBVa.js → dext-checkbox-group-rac-DzpdOP3i.js} +2 -2
- package/dist/component/{dext-checkbox-rac-BMu_k06A.js → dext-checkbox-rac-BUWkvW5s.js} +1 -1
- package/dist/component/{dext-date-picker-rac-L3sdldhT.js → dext-date-picker-rac-CR0PUoOn.js} +1 -1
- package/dist/component/{dext-date-time-input-rac-UmabFzDN.js → dext-date-time-input-rac-D3WhLSKK.js} +1 -1
- package/dist/component/{dext-dropdown-rac-DbjgYaG-.js → dext-dropdown-rac-BJ1UfAIM.js} +1 -1
- package/dist/component/{dext-email-rac-rNudrOOK.js → dext-email-rac-xk_5C79-.js} +1 -1
- package/dist/component/{dext-number-input-rac-hw1FTrJL.js → dext-number-input-rac-Cu1Sqoac.js} +1 -1
- package/dist/component/{dext-phone-rac-DrZ_Vwv2.js → dext-phone-rac-S34qxXwg.js} +1 -1
- package/dist/component/{dext-radio-group-rac-DAt2ax-I.js → dext-radio-group-rac-DXnAk_eU.js} +2 -2
- package/dist/component/{dext-rating-input-rac-BW2Ike11.js → dext-rating-input-rac-ewGpgB63.js} +1 -1
- package/dist/component/{dext-tags-rac-DDzwlKrR.js → dext-tags-rac-BApZKGqP.js} +2 -2
- package/dist/component/{dext-text-area-rac-D0xf4z3z.js → dext-text-area-rac-DBtuaiwM.js} +1 -1
- package/dist/component/{dext-text-input-rac-Da04OLmq.js → dext-text-input-rac-qI8VECmA.js} +1 -1
- package/dist/component/{dext-url-input-rac-B-g4xTqh.js → dext-url-input-rac-C6vzqNjn.js} +1 -1
- package/dist/component/donation-rac-BDVKvG4j.js +302 -0
- package/dist/component/{dropdown-field-headless-Js5TxdU4.js → dropdown-field-headless-DBl8vGed.js} +16 -16
- package/dist/component/{dropdown-field-rac-BDxcvX00.js → dropdown-field-rac-O6G7_kSn.js} +9 -9
- package/dist/component/{dropdown-rac-B5UHNzV-.js → dropdown-rac-BImZ5Jwe.js} +1 -1
- package/dist/component/{ecom-address-rac-0zm4bX37.js → ecom-address-rac-BU4XZ_Do.js} +1 -1
- package/dist/component/{ecom-subscription-checkbox-rac-DCXoI33l.js → ecom-subscription-checkbox-rac-DLzpoNYm.js} +3 -3
- package/dist/component/{email-input-field-rac-svf6hUHF.js → email-input-field-rac-Ui0p35z5.js} +45 -45
- package/dist/component/{events-repeater-rac-DMIqzuVK.js → events-repeater-rac-bPKOOOit.js} +49 -49
- package/dist/component/{events-rsvp-rac-B_YD4ckO.js → events-rsvp-rac-lsRBBfPQ.js} +3 -3
- package/dist/component/{field-error-headless-DTKnr5Zx.js → field-error-headless-D6iejMQP.js} +3 -3
- package/dist/component/{field-label-headless-DV4aNd5Y.js → field-label-headless-BWLfU3YB.js} +4 -4
- package/dist/component/field-rac.module-DnUIb9Oh.js +21 -0
- package/dist/component/{file-upload-rac-lGKJjG3m.js → file-upload-rac-DqKL8QQZ.js} +116 -116
- package/dist/component/{fixed-payment-rac-BVS6glii.js → fixed-payment-rac-BDtRB8w2.js} +14 -14
- package/dist/component/{form-DzjdnO7t.js → form-CtWkUmxc.js} +1563 -1556
- package/dist/component/form-element-classes-BSMjWijd.js +63 -0
- package/dist/component/form.css +1 -1
- package/dist/component/form.js +1 -1
- package/dist/component/{header-field-rac-tzBH-8Yh.js → header-field-rac-BLM8RCDY.js} +7 -7
- package/dist/component/{header-rac-6thQAvVF.js → header-rac-DViRwafg.js} +1 -1
- package/dist/component/image-choice-rac-D76t2y-b.js +141 -0
- package/dist/component/{index-Lnx0829a.js → index--iRBHLXJ.js} +4 -4
- package/dist/component/{index-DIP7KB8P.js → index-pEItT2oo.js} +2 -2
- package/dist/component/{isObjectLike-B_1KizZV.js → isObjectLike-968AHV2b.js} +1 -1
- package/dist/component/{multiline-address-field-rac-BY2SUp2d.js → multiline-address-field-rac-CObOc8KE.js} +82 -82
- package/dist/component/{multiline-address-rac-BL8Yp4F0.js → multiline-address-rac-1qVZkN41.js} +1 -1
- package/dist/component/{number-input-field-rac-x0yFmXbe.js → number-input-field-rac-CPQ3u0N7.js} +19 -19
- package/dist/component/{number-input-rac-pJXc2YsD.js → number-input-rac-Bq1UyUPZ.js} +1 -1
- package/dist/component/{password-rac-B4XCP64b.js → password-rac-BZPK1VkN.js} +15 -15
- package/dist/component/{payment-input-rac-CZdOAjK4.js → payment-input-rac-CQrV0WmN.js} +28 -28
- package/dist/component/{phone-input-field-rac-DO_V5Z_T.js → phone-input-field-rac-DzUE1-RF.js} +39 -39
- package/dist/component/{phone-rac-D16nLDjP.js → phone-rac-BovOZ7V5.js} +1 -1
- package/dist/component/{product-list-rac-DER8gVqy.js → product-list-rac-CeGm1_WN.js} +71 -71
- package/dist/component/quiz-radio-group-rac-Lw2thQqC.js +13 -0
- package/dist/component/{radio-group-field-rac-Dt2pU0VV.js → radio-group-field-rac-BSVmjEgZ.js} +8 -8
- package/dist/component/{radio-group-field-rac.module--sO0VqCA.js → radio-group-field-rac.module-Cb3mm0f2.js} +7 -7
- package/dist/component/{radio-group-rac-CqCmtkNQ.js → radio-group-rac-BHhOCSQ2.js} +1 -1
- package/dist/component/{rating-input-field-rac-xDrHHcL2.js → rating-input-field-rac-BvbBZZDO.js} +31 -31
- package/dist/component/{rating-input-rac-Bo5E9N87.js → rating-input-rac-DDe1EBpt.js} +1 -1
- package/dist/component/{rich-content-rac.module-CJXbNca9.js → rich-content-rac.module-BacYkzEv.js} +1 -1
- package/dist/component/{rich-text-field-rac-CkV0Z9F-.js → rich-text-field-rac-D1W0mUjr.js} +3 -3
- package/dist/component/{rich-text-rac-59DbKpXz.js → rich-text-rac-B-cOn0RU.js} +1 -1
- package/dist/component/{service-dropdown-rac-BLnflnUr.js → service-dropdown-rac-CebfMkGP.js} +41 -41
- package/dist/component/services-multi-choice-rac-C4bF1xhB.js +76 -0
- package/dist/component/{signature-rac-Bb5IaS28.js → signature-rac-DWWT65Ez.js} +48 -48
- package/dist/component/{submit-button-rac-Bjyi8sUA.js → submit-button-rac-_mgn4ChE.js} +6 -6
- package/dist/component/{tags-field-rac-C_VO3_69.js → tags-field-rac-7coCWj0y.js} +39 -39
- package/dist/component/{tags-rac-CKiutCWe.js → tags-rac-rgsn8Os0.js} +1 -1
- package/dist/component/{text-area-field-rac-Cg-vIhFe.js → text-area-field-rac-5lUQxnNM.js} +15 -15
- package/dist/component/{text-area-rac-tMFx38UD.js → text-area-rac-DpGOBzN3.js} +1 -1
- package/dist/component/{text-input-field-rac-CgN_2hOD.js → text-input-field-rac-CgWadDfM.js} +6 -6
- package/dist/component/{text-input-headless-CkhvKrFp.js → text-input-headless-fhxuPytc.js} +11 -11
- package/dist/component/{text-input-rac-BsyBgd3b.js → text-input-rac-kgWS3UUV.js} +1 -1
- package/dist/component/{time-input-rac-BxRVJtHE.js → time-input-rac-CuLUJcBH.js} +34 -34
- package/dist/component/{url-input-field-rac-B_1yVniS.js → url-input-field-rac-CAGHb2na.js} +22 -22
- package/dist/component/{url-input-rac-D8VrKYVe.js → url-input-rac-s5_SVi0h.js} +1 -1
- package/dist/component/{use-service-options-base-Ci9gIluo.js → use-service-options-base-CYAEJ75H.js} +6 -6
- package/dist/form.d.ts +3 -1
- package/package.json +2 -2
- package/dist/component/checkbox-group-field-headless-Cvia4lL6.js +0 -204
- package/dist/component/checkbox-group-field-rac-BXxk90dk.js +0 -33
- package/dist/component/donation-rac-gKeq72jg.js +0 -305
- package/dist/component/field-rac.module-DtugsLiL.js +0 -21
- package/dist/component/form-element-classes-Bi-nNM8q.js +0 -55
- package/dist/component/image-choice-rac-Dx1b-saW.js +0 -141
- package/dist/component/quiz-radio-group-rac-BgTmHHi4.js +0 -13
- package/dist/component/services-multi-choice-rac-C-bFjwx8.js +0 -76
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import o, { useRef as J, useState as j, useEffect as Y, createContext as Ge, useContext as Ze, useMemo as P, useCallback as ie } from "react";
|
|
2
2
|
import { RicosViewer as lt } from "@wix/ricos/viewer";
|
|
3
3
|
import T from "classnames";
|
|
4
|
-
import { ab as ce, aa as ct,
|
|
4
|
+
import { ab as ce, aa as ct, ae as ke, ad as mt, c as ut, as as dt, ar as ft, ai as me, af as Se, ak as Dt, ah as Et, F as St } from "./form-CtWkUmxc.js";
|
|
5
5
|
import { C as Be } from "./chevron-down-icon-CcpVm6B-.js";
|
|
6
6
|
import { E as pt } from "./error-icon-hZxQ6DEy.js";
|
|
7
|
-
import { s as fe } from "./field-rac.module-
|
|
8
|
-
import {
|
|
7
|
+
import { s as fe } from "./field-rac.module-DnUIb9Oh.js";
|
|
8
|
+
import { z as De, P as yt, A as Ie, i as Lt, j as Oe, h as _t, B as Nt, q as At } from "./form-element-classes-BSMjWijd.js";
|
|
9
9
|
import { ListBox as bt, Button as Re, ListBoxItem as gt, RadioGroup as It, RadioField as Ot, RadioButton as Tt } from "react-aria-components";
|
|
10
10
|
import { f as w, a as le } from "./find-child-C60k4CxG.js";
|
|
11
|
-
import { D as wt, E as vt } from "./field-error-headless-
|
|
12
|
-
import { L as kt } from "./field-label-headless-
|
|
11
|
+
import { D as wt, E as vt } from "./field-error-headless-D6iejMQP.js";
|
|
12
|
+
import { L as kt } from "./field-label-headless-BWLfU3YB.js";
|
|
13
13
|
import { F as Rt } from "./fieldset-headless-CD3fds9J.js";
|
|
14
14
|
import { g as ht } from "./get-first-day-of-the-week-DvnsxYhQ.js";
|
|
15
15
|
import "date-fns";
|
package/dist/component/{bookings-login-bar-rac-CXrLx7Pn.js → bookings-login-bar-rac-D-2Bt7Kx.js}
RENAMED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import o from "react";
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
2
|
+
import E from "classnames";
|
|
3
|
+
import { ai as d, as as B, ab as f, ae as p } from "./form-CtWkUmxc.js";
|
|
4
4
|
import { Button as L } from "react-aria-components";
|
|
5
5
|
import { a as i, f as g } from "./find-child-C60k4CxG.js";
|
|
6
|
-
import {
|
|
6
|
+
import { x as _ } from "./form-element-classes-BSMjWijd.js";
|
|
7
7
|
const a = ({ children: n }) => {
|
|
8
|
-
const { id: r, FieldLayout: t } =
|
|
8
|
+
const { id: r, FieldLayout: t } = d();
|
|
9
9
|
return /* @__PURE__ */ o.createElement(t, {
|
|
10
10
|
fieldId: r,
|
|
11
11
|
renderLabel: () => null,
|
|
@@ -62,7 +62,7 @@ const T = "_container_1mvrn_1", C = "_text_1mvrn_34", v = "_button_1mvrn_39", u
|
|
|
62
62
|
var e;
|
|
63
63
|
return (e = t == null ? void 0 : t.requestLogout) == null ? void 0 : e.call(t);
|
|
64
64
|
},
|
|
65
|
-
className:
|
|
65
|
+
className: E(_, u.container)
|
|
66
66
|
}, /* @__PURE__ */ o.createElement(a.Text, {
|
|
67
67
|
className: u.text
|
|
68
68
|
}), /* @__PURE__ */ o.createElement(a.Button, {
|
|
@@ -2,14 +2,14 @@ import { RicosViewer as $n } from "@wix/ricos/viewer";
|
|
|
2
2
|
import k from "classnames";
|
|
3
3
|
import b, { useMemo as Xn, useRef as Jn, useCallback as Yn } from "react";
|
|
4
4
|
import { CheckboxField as Qn, CheckboxButton as Zn } from "react-aria-components";
|
|
5
|
-
import { Q as ei,
|
|
5
|
+
import { Q as ei, ai as Zr, q as Qr, R as fn, as as ri, ab as ti, $ as ai, af as ni, ak as ii, L as si } from "./form-CtWkUmxc.js";
|
|
6
6
|
import { f as W } from "./find-child-C60k4CxG.js";
|
|
7
|
-
import { D as oi, E as ui } from "./field-error-headless-
|
|
7
|
+
import { D as oi, E as ui } from "./field-error-headless-D6iejMQP.js";
|
|
8
8
|
import { Node_Type as ci } from "@wix/ricos/schema";
|
|
9
|
-
import { c as te, r as X, e as R, a as J, d as fi, b as li } from "./isObjectLike-
|
|
9
|
+
import { c as te, r as X, e as R, a as J, d as fi, b as li } from "./isObjectLike-968AHV2b.js";
|
|
10
10
|
import { E as _i } from "./error-icon-hZxQ6DEy.js";
|
|
11
|
-
import { s as re } from "./field-rac.module-
|
|
12
|
-
import {
|
|
11
|
+
import { s as re } from "./field-rac.module-DnUIb9Oh.js";
|
|
12
|
+
import { f as vi, g as hi, F as pi, P as di, q as yi, j as bi } from "./form-element-classes-BSMjWijd.js";
|
|
13
13
|
var ue, dt;
|
|
14
14
|
function gi() {
|
|
15
15
|
if (dt) return ue;
|
|
@@ -207,19 +207,19 @@ function Oi() {
|
|
|
207
207
|
}
|
|
208
208
|
return Ie = _, Ie;
|
|
209
209
|
}
|
|
210
|
-
var Te,
|
|
210
|
+
var Te, Pt;
|
|
211
211
|
function xi() {
|
|
212
|
-
if (
|
|
213
|
-
|
|
212
|
+
if (Pt) return Te;
|
|
213
|
+
Pt = 1;
|
|
214
214
|
function e(r, t) {
|
|
215
215
|
return r == null ? void 0 : r[t];
|
|
216
216
|
}
|
|
217
217
|
return Te = e, Te;
|
|
218
218
|
}
|
|
219
|
-
var Re,
|
|
219
|
+
var Re, wt;
|
|
220
220
|
function L() {
|
|
221
|
-
if (
|
|
222
|
-
|
|
221
|
+
if (wt) return Re;
|
|
222
|
+
wt = 1;
|
|
223
223
|
var e = Oi(), r = xi();
|
|
224
224
|
function t(a, n) {
|
|
225
225
|
var i = r(a, n);
|
|
@@ -252,7 +252,7 @@ function Di() {
|
|
|
252
252
|
return je = r, je;
|
|
253
253
|
}
|
|
254
254
|
var Oe, Kt;
|
|
255
|
-
function
|
|
255
|
+
function Pi() {
|
|
256
256
|
if (Kt) return Oe;
|
|
257
257
|
Kt = 1;
|
|
258
258
|
function e(r) {
|
|
@@ -262,7 +262,7 @@ function wi() {
|
|
|
262
262
|
return Oe = e, Oe;
|
|
263
263
|
}
|
|
264
264
|
var xe, kt;
|
|
265
|
-
function
|
|
265
|
+
function wi() {
|
|
266
266
|
if (kt) return xe;
|
|
267
267
|
kt = 1;
|
|
268
268
|
var e = ie(), r = "__lodash_hash_undefined__", t = Object.prototype, a = t.hasOwnProperty;
|
|
@@ -287,22 +287,22 @@ function Li() {
|
|
|
287
287
|
}
|
|
288
288
|
return De = a, De;
|
|
289
289
|
}
|
|
290
|
-
var
|
|
290
|
+
var Pe, Nt;
|
|
291
291
|
function Fi() {
|
|
292
|
-
if (Nt) return
|
|
292
|
+
if (Nt) return Pe;
|
|
293
293
|
Nt = 1;
|
|
294
294
|
var e = ie(), r = "__lodash_hash_undefined__";
|
|
295
295
|
function t(a, n) {
|
|
296
296
|
var i = this.__data__;
|
|
297
297
|
return this.size += this.has(a) ? 0 : 1, i[a] = e && n === void 0 ? r : n, this;
|
|
298
298
|
}
|
|
299
|
-
return
|
|
299
|
+
return Pe = t, Pe;
|
|
300
300
|
}
|
|
301
|
-
var
|
|
301
|
+
var we, Gt;
|
|
302
302
|
function Mi() {
|
|
303
|
-
if (Gt) return
|
|
303
|
+
if (Gt) return we;
|
|
304
304
|
Gt = 1;
|
|
305
|
-
var e = Di(), r =
|
|
305
|
+
var e = Di(), r = Pi(), t = wi(), a = Li(), n = Fi();
|
|
306
306
|
function i(s) {
|
|
307
307
|
var o = -1, u = s == null ? 0 : s.length;
|
|
308
308
|
for (this.clear(); ++o < u; ) {
|
|
@@ -310,7 +310,7 @@ function Mi() {
|
|
|
310
310
|
this.set(c[0], c[1]);
|
|
311
311
|
}
|
|
312
312
|
}
|
|
313
|
-
return i.prototype.clear = e, i.prototype.delete = r, i.prototype.get = t, i.prototype.has = a, i.prototype.set = n,
|
|
313
|
+
return i.prototype.clear = e, i.prototype.delete = r, i.prototype.get = t, i.prototype.has = a, i.prototype.set = n, we = i, we;
|
|
314
314
|
}
|
|
315
315
|
var Le, Ut;
|
|
316
316
|
function Ki() {
|
|
@@ -817,20 +817,20 @@ function ot() {
|
|
|
817
817
|
} : r;
|
|
818
818
|
return Ar = i, Ar;
|
|
819
819
|
}
|
|
820
|
-
var Cr,
|
|
820
|
+
var Cr, Pa;
|
|
821
821
|
function ls() {
|
|
822
|
-
if (
|
|
823
|
-
|
|
822
|
+
if (Pa) return Cr;
|
|
823
|
+
Pa = 1;
|
|
824
824
|
var e = oe(), r = ot();
|
|
825
825
|
function t(a, n) {
|
|
826
826
|
return e(a, r(a), n);
|
|
827
827
|
}
|
|
828
828
|
return Cr = t, Cr;
|
|
829
829
|
}
|
|
830
|
-
var mr,
|
|
830
|
+
var mr, wa;
|
|
831
831
|
function Cn() {
|
|
832
|
-
if (
|
|
833
|
-
|
|
832
|
+
if (wa) return mr;
|
|
833
|
+
wa = 1;
|
|
834
834
|
function e(r, t) {
|
|
835
835
|
for (var a = -1, n = t.length, i = r.length; ++a < n; )
|
|
836
836
|
r[i + a] = t[a];
|
|
@@ -918,16 +918,16 @@ function ys() {
|
|
|
918
918
|
var e = L(), r = R(), t = e(r, "Set");
|
|
919
919
|
return Dr = t, Dr;
|
|
920
920
|
}
|
|
921
|
-
var
|
|
921
|
+
var Pr, Ha;
|
|
922
922
|
function bs() {
|
|
923
|
-
if (Ha) return
|
|
923
|
+
if (Ha) return Pr;
|
|
924
924
|
Ha = 1;
|
|
925
925
|
var e = L(), r = R(), t = e(r, "WeakMap");
|
|
926
|
-
return
|
|
926
|
+
return Pr = t, Pr;
|
|
927
927
|
}
|
|
928
|
-
var
|
|
928
|
+
var wr, Va;
|
|
929
929
|
function ut() {
|
|
930
|
-
if (Va) return
|
|
930
|
+
if (Va) return wr;
|
|
931
931
|
Va = 1;
|
|
932
932
|
var e = ps(), r = et(), t = ds(), a = ys(), n = bs(), i = te(), s = vn(), o = "[object Map]", u = "[object Object]", c = "[object Promise]", v = "[object Set]", _ = "[object WeakMap]", p = "[object DataView]", y = s(e), g = s(r), q = s(t), m = s(a), A = s(n), d = i;
|
|
933
933
|
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(S) {
|
|
@@ -946,7 +946,7 @@ function ut() {
|
|
|
946
946
|
return _;
|
|
947
947
|
}
|
|
948
948
|
return E;
|
|
949
|
-
}),
|
|
949
|
+
}), wr = d, wr;
|
|
950
950
|
}
|
|
951
951
|
var Lr, za;
|
|
952
952
|
function gs() {
|
|
@@ -1127,8 +1127,8 @@ var Xr, on;
|
|
|
1127
1127
|
function Ds() {
|
|
1128
1128
|
if (on) return Xr;
|
|
1129
1129
|
on = 1;
|
|
1130
|
-
var e = zi(), r = Wi(), t = pn(), a = ns(), n = os(), i = us(), s = cs(), o = ls(), u = _s(), c = vs(), v = hs(), _ = ut(), p = gs(), y = Ts(), g = Ss(), q = rt(), m = dn(), A = js(), d = X(), S = xs(), E = it(), j = st(), O = 1, B = 2, N = 4, I = "[object Arguments]", G = "[object Array]", f = "[object Boolean]", x = "[object Date]", U = "[object Error]", ft = "[object Function]", Rn = "[object GeneratorFunction]", Sn = "[object Map]", En = "[object Number]", lt = "[object Object]", jn = "[object RegExp]", On = "[object Set]", xn = "[object String]", Dn = "[object Symbol]",
|
|
1131
|
-
h[I] = h[G] = h[
|
|
1130
|
+
var e = zi(), r = Wi(), t = pn(), a = ns(), n = os(), i = us(), s = cs(), o = ls(), u = _s(), c = vs(), v = hs(), _ = ut(), p = gs(), y = Ts(), g = Ss(), q = rt(), m = dn(), A = js(), d = X(), S = xs(), E = it(), j = st(), O = 1, B = 2, N = 4, I = "[object Arguments]", G = "[object Array]", f = "[object Boolean]", x = "[object Date]", U = "[object Error]", ft = "[object Function]", Rn = "[object GeneratorFunction]", Sn = "[object Map]", En = "[object Number]", lt = "[object Object]", jn = "[object RegExp]", On = "[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]", kn = "[object Int16Array]", Bn = "[object Int32Array]", Nn = "[object Uint8Array]", Gn = "[object Uint8ClampedArray]", Un = "[object Uint16Array]", Hn = "[object Uint32Array]", h = {};
|
|
1131
|
+
h[I] = h[G] = h[wn] = h[Ln] = h[f] = h[x] = h[Fn] = h[Mn] = h[Kn] = h[kn] = h[Bn] = h[Sn] = h[En] = h[lt] = h[jn] = h[On] = h[xn] = h[Dn] = h[Nn] = h[Gn] = h[Un] = h[Hn] = !0, h[U] = h[ft] = h[Pn] = !1;
|
|
1132
1132
|
function Y(l, F, M, Vn, Q, D) {
|
|
1133
1133
|
var C, Z = F & O, ee = F & B, zn = F & N;
|
|
1134
1134
|
if (M && (C = Q ? M(l, Vn, Q, D) : M(l)), C !== void 0)
|
|
@@ -1156,20 +1156,20 @@ function Ds() {
|
|
|
1156
1156
|
var ht = D.get(l);
|
|
1157
1157
|
if (ht)
|
|
1158
1158
|
return ht;
|
|
1159
|
-
D.set(l, C), S(l) ? l.forEach(function(
|
|
1160
|
-
C.add(Y(
|
|
1161
|
-
}) : A(l) && l.forEach(function(
|
|
1162
|
-
C.set(
|
|
1159
|
+
D.set(l, C), S(l) ? l.forEach(function(P) {
|
|
1160
|
+
C.add(Y(P, F, M, P, l, D));
|
|
1161
|
+
}) : A(l) && l.forEach(function(P, w) {
|
|
1162
|
+
C.set(w, Y(P, F, M, w, l, D));
|
|
1163
1163
|
});
|
|
1164
1164
|
var Wn = zn ? ee ? v : c : ee ? j : E, pt = _t ? void 0 : Wn(l);
|
|
1165
|
-
return r(pt || l, function(
|
|
1166
|
-
pt && (
|
|
1165
|
+
return r(pt || l, function(P, w) {
|
|
1166
|
+
pt && (w = P, P = l[w]), t(C, w, Y(P, F, M, w, l, D));
|
|
1167
1167
|
}), C;
|
|
1168
1168
|
}
|
|
1169
1169
|
return Xr = Y, Xr;
|
|
1170
1170
|
}
|
|
1171
1171
|
var Jr, un;
|
|
1172
|
-
function
|
|
1172
|
+
function Ps() {
|
|
1173
1173
|
if (un) return Jr;
|
|
1174
1174
|
un = 1;
|
|
1175
1175
|
var e = Ds(), r = 1, t = 4;
|
|
@@ -1178,8 +1178,8 @@ function ws() {
|
|
|
1178
1178
|
}
|
|
1179
1179
|
return Jr = a, Jr;
|
|
1180
1180
|
}
|
|
1181
|
-
var
|
|
1182
|
-
const Ls = /* @__PURE__ */ ei(
|
|
1181
|
+
var ws = Ps();
|
|
1182
|
+
const Ls = /* @__PURE__ */ ei(ws), Fs = (e, r, t) => {
|
|
1183
1183
|
const a = e === fn.TEXT ? r("settings.required-indicator-text") : "*", n = (s) => ({
|
|
1184
1184
|
stringValue: s
|
|
1185
1185
|
}), i = {
|
|
@@ -0,0 +1,210 @@
|
|
|
1
|
+
import r, { useMemo as F, useCallback as _, useRef as H, useState as w, useEffect as U } from "react";
|
|
2
|
+
import { CheckboxGroup as W, CheckboxField as A, CheckboxButton as j, TextField as z, Input as J } from "react-aria-components";
|
|
3
|
+
import { debounce as K } from "ts-debounce";
|
|
4
|
+
import { ai as N, af as Q, as as X, ab as Y, ak as Z } from "./form-CtWkUmxc.js";
|
|
5
|
+
import { f as L, a as k } from "./find-child-C60k4CxG.js";
|
|
6
|
+
import { D as ee, E as te } from "./field-error-headless-D6iejMQP.js";
|
|
7
|
+
import { L as ne } from "./field-label-headless-BWLfU3YB.js";
|
|
8
|
+
import { F as ae } from "./fieldset-headless-CD3fds9J.js";
|
|
9
|
+
import { N as se } from "./options-layout-constants-DEfIEJWD.js";
|
|
10
|
+
const R = "Other", le = (e, t) => e.some((l) => !t.includes(l)), B = (e, t) => e.length > 0 && le(e, t), oe = (e, t) => {
|
|
11
|
+
const l = t == null ? void 0 : t("add-other.default-other-option-label");
|
|
12
|
+
return e || l || R;
|
|
13
|
+
}, P = (e, t) => {
|
|
14
|
+
const a = t ? t.length + 2 : 0;
|
|
15
|
+
return (e.find((c) => c.startsWith(`${t}: `)) || "").slice(a);
|
|
16
|
+
}, D = (e) => e.map((t) => t.value ?? t.label), v = ({ children: e }) => {
|
|
17
|
+
const t = N(), { id: l, value: a, onChange: n, disabled: c, required: u, onBlur: I, onFocus: p, hasError: b, FieldLayout: i } = t, { inputId: f, labelId: d, ariaDescribedBy: o } = Q(), O = L(e, v.Label), h = L(e, v.Options), g = L(e, v.Description), C = L(e, v.Error), s = F(() => a || [], [
|
|
18
|
+
a
|
|
19
|
+
]), E = _((V) => {
|
|
20
|
+
n == null || n(V);
|
|
21
|
+
}, [
|
|
22
|
+
n
|
|
23
|
+
]);
|
|
24
|
+
return /* @__PURE__ */ r.createElement(i, {
|
|
25
|
+
fieldId: l,
|
|
26
|
+
renderLabel: () => O,
|
|
27
|
+
renderInput: () => /* @__PURE__ */ r.createElement(ae, {
|
|
28
|
+
id: f,
|
|
29
|
+
ariaLabelledBy: d,
|
|
30
|
+
ariaDescribedBy: o,
|
|
31
|
+
required: u,
|
|
32
|
+
onBlur: I,
|
|
33
|
+
onFocus: p
|
|
34
|
+
}, /* @__PURE__ */ r.createElement(W, {
|
|
35
|
+
"aria-labelledby": d,
|
|
36
|
+
value: s,
|
|
37
|
+
onChange: E,
|
|
38
|
+
isDisabled: c,
|
|
39
|
+
isRequired: u,
|
|
40
|
+
isInvalid: b
|
|
41
|
+
}, h)),
|
|
42
|
+
renderDescription: () => /* @__PURE__ */ r.createElement(r.Fragment, null, C, g)
|
|
43
|
+
});
|
|
44
|
+
}, $ = ({ children: e, className: t }) => {
|
|
45
|
+
const l = N(), { id: a, options: n, addOther: c, addOtherLabel: u, numberOfColumns: I } = l, { t: p } = X(), { isMobile: b } = Y(), i = L(e, $.Option), f = oe(u, p), d = b ? se.ONE : I;
|
|
46
|
+
return /* @__PURE__ */ r.createElement("div", {
|
|
47
|
+
className: t,
|
|
48
|
+
"data-columns": d
|
|
49
|
+
}, n == null ? void 0 : n.map((o, O) => {
|
|
50
|
+
const h = o.value ?? o.label;
|
|
51
|
+
return k(i, {
|
|
52
|
+
key: o.id || o.label,
|
|
53
|
+
value: h,
|
|
54
|
+
label: o.label,
|
|
55
|
+
isFirst: O === 0,
|
|
56
|
+
fieldId: a
|
|
57
|
+
});
|
|
58
|
+
}), c && k(i, {
|
|
59
|
+
key: R,
|
|
60
|
+
value: R,
|
|
61
|
+
label: f,
|
|
62
|
+
isOther: !0
|
|
63
|
+
}));
|
|
64
|
+
}, re = ({ className: e, ...t }) => {
|
|
65
|
+
const l = t;
|
|
66
|
+
return /* @__PURE__ */ r.createElement("div", {
|
|
67
|
+
"aria-hidden": "true",
|
|
68
|
+
className: typeof e == "function" ? e(l) : e
|
|
69
|
+
});
|
|
70
|
+
}, ce = ({ className: e, ...t }) => {
|
|
71
|
+
const { label: l } = t;
|
|
72
|
+
return /* @__PURE__ */ r.createElement("span", {
|
|
73
|
+
className: e
|
|
74
|
+
}, l);
|
|
75
|
+
}, x = ({ children: e, className: t, ...l }) => {
|
|
76
|
+
const { value: a, label: n, isFirst: c = !1, isOther: u = !1, fieldId: I } = l, p = N(), { value: b, onChange: i, disabled: f, readOnly: d, hasError: o, options: O } = p, h = H(null);
|
|
77
|
+
Z(() => {
|
|
78
|
+
var m;
|
|
79
|
+
c && ((m = h.current) == null || m.focus({
|
|
80
|
+
preventScroll: !0
|
|
81
|
+
}));
|
|
82
|
+
}, I);
|
|
83
|
+
const g = L(e, x.Label), C = L(e, x.Input), s = F(() => b || [], [
|
|
84
|
+
b
|
|
85
|
+
]), E = F(() => u ? s.find((m) => m === n || m.startsWith(`${n}: `)) || n : a, [
|
|
86
|
+
u,
|
|
87
|
+
s,
|
|
88
|
+
n,
|
|
89
|
+
a
|
|
90
|
+
]), V = _((m) => {
|
|
91
|
+
if (!u)
|
|
92
|
+
return;
|
|
93
|
+
const y = D(O || []), S = s.filter((G) => y.includes(G)), q = m ? [
|
|
94
|
+
...S,
|
|
95
|
+
n
|
|
96
|
+
] : S;
|
|
97
|
+
i == null || i(q);
|
|
98
|
+
}, [
|
|
99
|
+
u,
|
|
100
|
+
n,
|
|
101
|
+
i,
|
|
102
|
+
O,
|
|
103
|
+
s
|
|
104
|
+
]);
|
|
105
|
+
return /* @__PURE__ */ r.createElement(A, {
|
|
106
|
+
value: E,
|
|
107
|
+
onChange: u ? V : void 0,
|
|
108
|
+
isDisabled: f,
|
|
109
|
+
isReadOnly: d,
|
|
110
|
+
isInvalid: o
|
|
111
|
+
}, /* @__PURE__ */ r.createElement(j, {
|
|
112
|
+
ref: h,
|
|
113
|
+
className: t,
|
|
114
|
+
"data-hook": `checkbox-${n}`
|
|
115
|
+
}, ({ isSelected: m, isHovered: y }) => /* @__PURE__ */ r.createElement(r.Fragment, null, k(C, {
|
|
116
|
+
isSelected: m,
|
|
117
|
+
isHovered: y
|
|
118
|
+
}), k(g, {
|
|
119
|
+
label: n
|
|
120
|
+
}))));
|
|
121
|
+
};
|
|
122
|
+
x.Label = ce;
|
|
123
|
+
x.Input = re;
|
|
124
|
+
const M = ({ children: e, ...t }) => {
|
|
125
|
+
const { value: l, label: a, isFirst: n = !1, isOther: c = !1, fieldId: u } = t, I = N(), { value: p, onChange: b, options: i, addOtherPlaceholder: f, otherInputCharacterLimit: d, disabled: o, readOnly: O, hasError: h } = I, g = L(e, x), C = L(e, T), s = F(() => p || [], [
|
|
126
|
+
p
|
|
127
|
+
]), E = F(() => {
|
|
128
|
+
if (!c)
|
|
129
|
+
return !1;
|
|
130
|
+
const V = D(i || []);
|
|
131
|
+
return B(s, V);
|
|
132
|
+
}, [
|
|
133
|
+
c,
|
|
134
|
+
s,
|
|
135
|
+
i
|
|
136
|
+
]);
|
|
137
|
+
return /* @__PURE__ */ r.createElement(r.Fragment, null, k(g, {
|
|
138
|
+
value: l,
|
|
139
|
+
label: a,
|
|
140
|
+
isFirst: n,
|
|
141
|
+
isOther: c,
|
|
142
|
+
fieldId: u
|
|
143
|
+
}), c && E && k(C, {
|
|
144
|
+
fieldValue: s,
|
|
145
|
+
onChange: b,
|
|
146
|
+
label: a,
|
|
147
|
+
placeholder: f,
|
|
148
|
+
maxLength: d,
|
|
149
|
+
disabled: o,
|
|
150
|
+
readOnly: O,
|
|
151
|
+
hasError: h,
|
|
152
|
+
ariaLabel: a,
|
|
153
|
+
addOtherLabel: a,
|
|
154
|
+
options: i
|
|
155
|
+
}));
|
|
156
|
+
}, T = ({ className: e, inputClassName: t, ...l }) => {
|
|
157
|
+
const { fieldValue: a, onChange: n, label: c, placeholder: u, maxLength: I, disabled: p, readOnly: b, hasError: i, ariaLabel: f, addOtherLabel: d, options: o } = l, [O, h] = w(() => {
|
|
158
|
+
const s = D(o || []);
|
|
159
|
+
return B(a, s) ? P(a, d) : "";
|
|
160
|
+
});
|
|
161
|
+
U(() => {
|
|
162
|
+
const s = D(o || []), E = B(a, s);
|
|
163
|
+
h(E ? P(a, d) : "");
|
|
164
|
+
}, [
|
|
165
|
+
a,
|
|
166
|
+
o,
|
|
167
|
+
d
|
|
168
|
+
]);
|
|
169
|
+
const g = F(() => K((s) => {
|
|
170
|
+
const E = D(o || []), V = a.filter((S) => E.includes(S)), m = s ? `${d}: ${s}` : c, y = [
|
|
171
|
+
...V,
|
|
172
|
+
m
|
|
173
|
+
];
|
|
174
|
+
n(y);
|
|
175
|
+
}, 500), [
|
|
176
|
+
n,
|
|
177
|
+
o,
|
|
178
|
+
a,
|
|
179
|
+
d,
|
|
180
|
+
c
|
|
181
|
+
]), C = _((s) => {
|
|
182
|
+
h(s), g(s);
|
|
183
|
+
}, [
|
|
184
|
+
g
|
|
185
|
+
]);
|
|
186
|
+
return /* @__PURE__ */ r.createElement(z, {
|
|
187
|
+
"aria-label": f,
|
|
188
|
+
value: O,
|
|
189
|
+
onChange: C,
|
|
190
|
+
isDisabled: p,
|
|
191
|
+
isReadOnly: b,
|
|
192
|
+
isInvalid: i,
|
|
193
|
+
className: e
|
|
194
|
+
}, /* @__PURE__ */ r.createElement(J, {
|
|
195
|
+
className: t,
|
|
196
|
+
placeholder: u,
|
|
197
|
+
maxLength: I,
|
|
198
|
+
"aria-label": f
|
|
199
|
+
}));
|
|
200
|
+
};
|
|
201
|
+
v.Label = ne;
|
|
202
|
+
v.Options = $;
|
|
203
|
+
$.Option = M;
|
|
204
|
+
M.Checkbox = x;
|
|
205
|
+
M.OtherInput = T;
|
|
206
|
+
v.Description = ee;
|
|
207
|
+
v.Error = te;
|
|
208
|
+
export {
|
|
209
|
+
v as C
|
|
210
|
+
};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { RicosViewer as E } from "@wix/ricos/viewer";
|
|
2
|
+
import a from "classnames";
|
|
3
|
+
import e from "react";
|
|
4
|
+
import { ac as l } from "./form-CtWkUmxc.js";
|
|
5
|
+
import { C as t } from "./checkbox-group-field-headless-BmKJbEi0.js";
|
|
6
|
+
import { E as _ } from "./error-icon-hZxQ6DEy.js";
|
|
7
|
+
import { s as o } from "./field-rac.module-DnUIb9Oh.js";
|
|
8
|
+
import { z as m, P as O, a as C, b as i, c as p, d as R, e as I, y as L, q as S, j as D } from "./form-element-classes-BSMjWijd.js";
|
|
9
|
+
import { o as n } from "./options-rac.module-KM-VT_KY.js";
|
|
10
|
+
const F = "checkboxGroupIndicator", N = ({ content: r, locale: s }) => /* @__PURE__ */ e.createElement(E, {
|
|
11
|
+
content: r,
|
|
12
|
+
locale: s
|
|
13
|
+
}), d = () => {
|
|
14
|
+
const r = l(F);
|
|
15
|
+
return /* @__PURE__ */ e.createElement(t, null, /* @__PURE__ */ e.createElement(t.Label, {
|
|
16
|
+
className: a(m, o.label)
|
|
17
|
+
}, /* @__PURE__ */ e.createElement(t.Label.Required, {
|
|
18
|
+
className: a(O, o.requiredMark)
|
|
19
|
+
})), /* @__PURE__ */ e.createElement(t.Options, {
|
|
20
|
+
className: a(C, n.options)
|
|
21
|
+
}, /* @__PURE__ */ e.createElement(t.Options.Option, null, /* @__PURE__ */ e.createElement(t.Options.Option.Checkbox, {
|
|
22
|
+
className: o.checkbox
|
|
23
|
+
}, /* @__PURE__ */ e.createElement(t.Options.Option.Checkbox.Input, {
|
|
24
|
+
className: ({ isSelected: s, isHovered: c }) => a(i, o.checkboxInput, r, {
|
|
25
|
+
[R]: s,
|
|
26
|
+
[p]: c
|
|
27
|
+
})
|
|
28
|
+
}), /* @__PURE__ */ e.createElement(t.Options.Option.Checkbox.Label, {
|
|
29
|
+
className: a(I, n.optionLabel)
|
|
30
|
+
})), /* @__PURE__ */ e.createElement(t.Options.Option.OtherInput, {
|
|
31
|
+
inputClassName: a(L, o.input)
|
|
32
|
+
}))), /* @__PURE__ */ e.createElement(t.Error, {
|
|
33
|
+
className: a(S, o.error)
|
|
34
|
+
}, /* @__PURE__ */ e.createElement(_, null), /* @__PURE__ */ e.createElement(t.Error.Text, null)), /* @__PURE__ */ e.createElement(t.Description, {
|
|
35
|
+
className: a(D, o.description)
|
|
36
|
+
}, N));
|
|
37
|
+
};
|
|
38
|
+
export {
|
|
39
|
+
d as C
|
|
40
|
+
};
|
package/dist/component/{contacts-subscribe-rac-Ci5OLk68.js → contacts-subscribe-rac-POSKh1Ta.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import C from "react";
|
|
2
|
-
import { C as _ } from "./checkbox-field-rac-
|
|
3
|
-
import {
|
|
2
|
+
import { C as _ } from "./checkbox-field-rac-BamOJv3P.js";
|
|
3
|
+
import { X as e, Y as o, W as r } from "./form-element-classes-BSMjWijd.js";
|
|
4
4
|
const a = () => /* @__PURE__ */ C.createElement(_, {
|
|
5
5
|
classes: {
|
|
6
6
|
container: r,
|