@wix/form-elements 1.157.0 → 1.159.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-tHM5tqUo.js → appointment-rac-CpiyUOXo.js} +146 -146
- package/dist/component/{bookings-address-rac-wrGfkOz7.js → bookings-address-rac-BBEUV1t7.js} +1 -1
- package/dist/component/{bookings-email-rac-Cb8sq7hf.js → bookings-email-rac-DdfoeLFV.js} +1 -1
- package/dist/component/{bookings-first-name-rac-BD56qBtd.js → bookings-first-name-rac-DH39yvQ-.js} +1 -1
- package/dist/component/{bookings-header-rac-D3tBRKqn.js → bookings-header-rac-StLm7b4I.js} +1 -1
- package/dist/component/{bookings-last-name-rac-Bm3HJSBf.js → bookings-last-name-rac-DHZMPMOO.js} +1 -1
- package/dist/component/{bookings-login-bar-rac-BeHjULcN.js → bookings-login-bar-rac-DrHp1ojM.js} +1 -1
- package/dist/component/{bookings-phone-rac-MWT57RG3.js → bookings-phone-rac-6aGjbavK.js} +1 -1
- package/dist/component/{bookings-rich-text-rac-BiqiJ-Nc.js → bookings-rich-text-rac-DBlGZUM5.js} +1 -1
- package/dist/component/{checkbox-field-rac-x-PZaFOf.js → checkbox-field-rac-Cna1Va1X.js} +4 -4
- package/dist/component/{checkbox-group-field-headless-oeTynU3y.js → checkbox-group-field-headless-m_-10Mdx.js} +3 -3
- package/dist/component/{checkbox-group-field-rac-2fyiwyB3.js → checkbox-group-field-rac-BSCi5hmx.js} +4 -4
- package/dist/component/{checkbox-group-rac-BjXQ8PDF.js → checkbox-group-rac-BWYQZmAI.js} +1 -1
- package/dist/component/{checkbox-rac-Kyj7Zwpu.js → checkbox-rac-BsUTfSUf.js} +1 -1
- package/dist/component/{contacts-address-rac-Ce7LFuRD.js → contacts-address-rac-DwCLW8rV.js} +1 -1
- package/dist/component/{contacts-birthdate-rac-B5eul9At.js → contacts-birthdate-rac-DnNgxbKb.js} +1 -1
- package/dist/component/{contacts-company-rac-ltD1Z-1i.js → contacts-company-rac-BQqXzpNl.js} +1 -1
- package/dist/component/{contacts-email-rac-s0BcVZG9.js → contacts-email-rac-BINnZzxp.js} +1 -1
- package/dist/component/{contacts-first-name-rac-m5ZgJ7dk.js → contacts-first-name-rac-DBWKFkIU.js} +1 -1
- package/dist/component/{contacts-last-name-rac-DrV5F6_x.js → contacts-last-name-rac-D_-qrF7I.js} +1 -1
- package/dist/component/{contacts-phone-rac-BI3_TWL9.js → contacts-phone-rac-7n7JkSDr.js} +1 -1
- package/dist/component/{contacts-position-rac-BtFToj0w.js → contacts-position-rac-DvXP8nvT.js} +1 -1
- package/dist/component/{contacts-subscribe-rac-CjwWYOJi.js → contacts-subscribe-rac-DnLnV5Gm.js} +1 -1
- package/dist/component/{contacts-tax-id-rac-C1xi3GeO.js → contacts-tax-id-rac-BJVWhvYW.js} +1 -1
- package/dist/component/{date-availability-CULQxWpk.js → date-availability-Df807-eN.js} +1 -1
- package/dist/component/{date-input-field-rac-BkAyC-pf.js → date-input-field-rac-CEuPElMH.js} +6 -6
- package/dist/component/{date-input-rac-CLXlmHfL.js → date-input-rac-CSB3MWHW.js} +1 -1
- package/dist/component/{date-picker-field-rac-SJJANtKU.js → date-picker-field-rac-CySThPfz.js} +6 -6
- package/dist/component/{date-picker-rac-D0K5YwTe.js → date-picker-rac-Fp8_pxtf.js} +1 -1
- package/dist/component/{date-time-input-field-rac-DEz6KUnw.js → date-time-input-field-rac-DG5KSBHe.js} +6 -6
- package/dist/component/{date-time-input-rac-Cfmh9782.js → date-time-input-rac-wctMR4uM.js} +1 -1
- package/dist/component/{dext-checkbox-group-rac-Cnr0LnHA.js → dext-checkbox-group-rac-erMPfwFL.js} +2 -2
- package/dist/component/{dext-checkbox-rac-C6r_za2s.js → dext-checkbox-rac-DQSq9Lqd.js} +1 -1
- package/dist/component/{dext-date-picker-rac-CVZlRxA_.js → dext-date-picker-rac-RCLcd1VV.js} +1 -1
- package/dist/component/{dext-date-time-input-rac-cBfbJN6M.js → dext-date-time-input-rac-DMolWzvy.js} +1 -1
- package/dist/component/{dext-dropdown-rac-Jp3ECOrR.js → dext-dropdown-rac-wQ2GJL4V.js} +1 -1
- package/dist/component/{dext-email-rac-CTPOiOAK.js → dext-email-rac-BtymBVTW.js} +1 -1
- package/dist/component/{dext-number-input-rac-B3buLRvv.js → dext-number-input-rac-DHPiK0Z3.js} +1 -1
- package/dist/component/{dext-phone-rac-5h0Q4A0A.js → dext-phone-rac-C58vHEEe.js} +1 -1
- package/dist/component/{dext-radio-group-rac-C5KL3ImR.js → dext-radio-group-rac-Cp-I94HW.js} +2 -2
- package/dist/component/{dext-rating-input-rac-cA6kt-Kx.js → dext-rating-input-rac-DI0k3tVa.js} +1 -1
- package/dist/component/{dext-tags-rac-DId_ouLg.js → dext-tags-rac-DmF6ctvQ.js} +2 -2
- package/dist/component/{dext-text-area-rac-a_Ctq-nW.js → dext-text-area-rac-Bv6ridbR.js} +1 -1
- package/dist/component/{dext-text-input-rac-Celrb1dd.js → dext-text-input-rac-DoTAdUgU.js} +1 -1
- package/dist/component/{dext-url-input-rac-DhDFh4bJ.js → dext-url-input-rac-BuoMS6g2.js} +1 -1
- package/dist/component/{donation-rac-D9Mp3tdd.js → donation-rac-CjZalSgn.js} +49 -49
- package/dist/component/{dropdown-field-headless-DV-5awlM.js → dropdown-field-headless-BYEjiIUf.js} +5 -5
- package/dist/component/{dropdown-field-rac-CLkVHVA1.js → dropdown-field-rac-By_fpqhx.js} +3 -3
- package/dist/component/{dropdown-rac-Ct-aswuU.js → dropdown-rac-BnIEC4RX.js} +1 -1
- package/dist/component/{ecom-address-rac-DVPknl-N.js → ecom-address-rac-B6Usk1Ty.js} +1 -1
- package/dist/component/{ecom-subscription-checkbox-rac-CKgGWrh-.js → ecom-subscription-checkbox-rac-B4B0wzlC.js} +2 -2
- package/dist/component/{email-input-field-rac-OWZo2iom.js → email-input-field-rac-Df3KI3_v.js} +3 -3
- package/dist/component/{events-repeater-rac-DCabB0du.js → events-repeater-rac-B2iBk8lV.js} +4 -4
- package/dist/component/{events-rsvp-rac-DxRgqNul.js → events-rsvp-rac-xl_qCIh3.js} +3 -3
- package/dist/component/{field-error-headless-Dk7k-KYB.js → field-error-headless-DWc76YmY.js} +1 -1
- package/dist/component/{field-label-headless-y39tsCsZ.js → field-label-headless-DKBKqI2X.js} +1 -1
- package/dist/component/{file-upload-rac-C4WD5qpr.js → file-upload-rac-BVj4cRqe.js} +4 -4
- package/dist/component/{fixed-payment-rac-DKcK_tmF.js → fixed-payment-rac-BS1Hb4hg.js} +3 -3
- package/dist/component/{form-DLDT85R3.js → form-BTUoOcqB.js} +69 -69
- package/dist/component/form.css +1 -1
- package/dist/component/form.js +1 -1
- package/dist/component/{header-field-rac-ogGgRx6j.js → header-field-rac-DTJ_Us6u.js} +2 -2
- package/dist/component/{header-rac-iFaKa8f4.js → header-rac-CvYp0Jjo.js} +1 -1
- package/dist/component/{image-choice-rac-DfNqokUb.js → image-choice-rac--qrYqKJl.js} +42 -42
- package/dist/component/{index-ByrW-HXz.js → index-CoEV4QEy.js} +2 -2
- package/dist/component/{index-Dul6nI_B.js → index-DIl9BH2M.js} +4 -4
- package/dist/component/{isObjectLike-DFXNzcW0.js → isObjectLike-CLN09X5V.js} +1 -1
- package/dist/component/{multiline-address-field-rac-CNUJS91c.js → multiline-address-field-rac-BjWzx-LH.js} +7 -7
- package/dist/component/{multiline-address-rac-CPjFn5Gy.js → multiline-address-rac-DtaAJjbR.js} +1 -1
- package/dist/component/{number-input-field-rac-Bt19FjdI.js → number-input-field-rac-2gqDUlw9.js} +4 -4
- package/dist/component/{number-input-rac-Dae61Bec.js → number-input-rac-BlciEPLN.js} +1 -1
- package/dist/component/{password-rac-B7tvoqt9.js → password-rac-BvvQgafk.js} +4 -4
- package/dist/component/{payment-input-rac-BXu5WL3D.js → payment-input-rac-CSRyOPPr.js} +4 -4
- package/dist/component/{phone-input-field-rac-C9BDbA2d.js → phone-input-field-rac-BVWzH_TY.js} +6 -6
- package/dist/component/{phone-rac-C3_9F6v7.js → phone-rac-DMP1MoRs.js} +1 -1
- package/dist/component/{product-list-rac-CCofgn5n.js → product-list-rac-WQ9Qhzum.js} +4 -4
- package/dist/component/{quiz-radio-group-rac-CbgIWiXV.js → quiz-radio-group-rac-DzrL3-gZ.js} +1 -1
- package/dist/component/{radio-button-module-classes-BM9JBNUT.js → radio-button-module-classes-CJk18LzO.js} +3 -3
- package/dist/component/{radio-group-field-rac-B-lyFud_.js → radio-group-field-rac-DGoMoSgo.js} +4 -4
- package/dist/component/{radio-group-rac-D9M0dAMi.js → radio-group-rac-DhAELVNV.js} +1 -1
- package/dist/component/{rating-input-field-rac-pUUIQrrg.js → rating-input-field-rac-CFoesqmC.js} +4 -4
- package/dist/component/{rating-input-rac-CLkZVIk_.js → rating-input-rac-CFMIxche.js} +1 -1
- package/dist/component/{rich-content-rac.module-FwArrWcN.js → rich-content-rac.module-xJ03MegT.js} +1 -1
- package/dist/component/{rich-text-field-rac-DIt4OKaV.js → rich-text-field-rac-CBMY4JOB.js} +2 -2
- package/dist/component/{rich-text-rac-CUVXdxHj.js → rich-text-rac-CvZ7s1Ct.js} +1 -1
- package/dist/component/{service-dropdown-rac-BtvnLQzE.js → service-dropdown-rac-B627AgPG.js} +4 -4
- package/dist/component/{services-multi-choice-rac-Dcwixkmz.js → services-multi-choice-rac-fXOov4K7.js} +5 -5
- package/dist/component/{signature-rac-T2mxYE6y.js → signature-rac-CG_Q9Oxr.js} +4 -4
- package/dist/component/{submit-button-rac-7f5ljpl2.js → submit-button-rac-DAsovEp2.js} +2 -2
- package/dist/component/{tags-field-rac-mjYhQFhJ.js → tags-field-rac-9mpOMPLm.js} +74 -74
- package/dist/component/{tags-rac-CTJf0X1i.js → tags-rac-CNBJ08wS.js} +1 -1
- package/dist/component/{text-area-field-rac-1ODzSZeG.js → text-area-field-rac-D4aTm7CM.js} +4 -4
- package/dist/component/{text-area-rac-CJz4kwRV.js → text-area-rac-DoKiH_Kv.js} +1 -1
- package/dist/component/{text-input-field-rac-Cl6vApZ6.js → text-input-field-rac-BbvPB26b.js} +3 -3
- package/dist/component/{text-input-headless-CziSavtB.js → text-input-headless-BGaBRrP1.js} +3 -3
- package/dist/component/{text-input-rac-DSnAqQmb.js → text-input-rac-1ac1EKad.js} +1 -1
- package/dist/component/{time-input-rac-BX1vg4gy.js → time-input-rac-BS0rR-89.js} +4 -4
- package/dist/component/{url-input-field-rac-CFYK2mFr.js → url-input-field-rac-DbO6ATng.js} +4 -4
- package/dist/component/{url-input-rac-BBbbaYk7.js → url-input-rac-DHuny3d-.js} +1 -1
- package/dist/component/{use-dropdown-trigger-class-name-xAxAlTKU.js → use-dropdown-trigger-class-name-rcGBzxI1.js} +3 -3
- package/dist/component/{use-element-state-class-name-DoNi06OU.js → use-element-state-class-name-BUsFQfoW.js} +1 -1
- package/dist/component/{use-hoverable-input-class-name-CM5BhwNW.js → use-hoverable-input-class-name-C2l3G8gb.js} +2 -2
- package/dist/component/{use-is-forced-open-dropdown-Ds2ghFRN.js → use-is-forced-open-dropdown-CoOk4W4i.js} +1 -1
- package/dist/component/{use-service-options-base-BN6XeglC.js → use-service-options-base-D_enm38a.js} +1 -1
- package/dist/component/use-text-input-class-name-BLtPQoYE.js +6 -0
- package/package.json +2 -2
- package/dist/component/use-text-input-class-name-DVmUTFro.js +0 -6
|
@@ -1,45 +1,45 @@
|
|
|
1
1
|
import { RicosViewer as w } from "@wix/ricos/viewer";
|
|
2
2
|
import F from "classnames";
|
|
3
|
-
import t, { useMemo as I, useState as z, useRef as
|
|
3
|
+
import t, { useMemo as I, useState as z, useRef as N, useLayoutEffect as B, useCallback as k } from "react";
|
|
4
4
|
import { CheckboxGroup as J, TextField as K, Input as X, CheckboxField as Y, CheckboxButton as Z } from "react-aria-components";
|
|
5
|
-
import { bo as D, bl as M, by as S, bq as U, R as ee, a0 as te, aa as
|
|
6
|
-
import { f as O, a as
|
|
7
|
-
import { E as
|
|
8
|
-
import { L as
|
|
5
|
+
import { bo as D, bl as M, by as S, bq as U, R as ee, a0 as te, aa as ne, H as oe, v as ae, ab as re } from "./form-BTUoOcqB.js";
|
|
6
|
+
import { f as O, a as x } from "./find-child-C60k4CxG.js";
|
|
7
|
+
import { E as H, D as W } from "./field-error-headless-DWc76YmY.js";
|
|
8
|
+
import { L as $ } from "./field-label-headless-DKBKqI2X.js";
|
|
9
9
|
import { F as se } from "./fieldset-headless-CD3fds9J.js";
|
|
10
10
|
import { E as le } from "./error-icon-hZxQ6DEy.js";
|
|
11
11
|
import { s as y } from "./field-rac.module-DP0lkkEv.js";
|
|
12
|
-
import { u as ie } from "./use-element-state-class-name-
|
|
13
|
-
import { u as ce } from "./use-text-input-class-name-
|
|
12
|
+
import { u as ie } from "./use-element-state-class-name-BUsFQfoW.js";
|
|
13
|
+
import { u as ce } from "./use-text-input-class-name-BLtPQoYE.js";
|
|
14
14
|
var ue = /* @__PURE__ */ (function(e) {
|
|
15
15
|
return e[e.FREE_FLOW = 0] = "FREE_FLOW", e[e.ONE = 1] = "ONE", e[e.TWO = 2] = "TWO", e[e.THREE = 3] = "THREE", e;
|
|
16
16
|
})({});
|
|
17
|
-
const v = "Other", de = (e,
|
|
18
|
-
const i =
|
|
19
|
-
return (e.find((l) => l.startsWith(`${
|
|
20
|
-
}, me = (e) => e.map((
|
|
21
|
-
const { label: r } =
|
|
17
|
+
const v = "Other", de = (e, n) => {
|
|
18
|
+
const i = n.length + 2;
|
|
19
|
+
return (e.find((l) => l.startsWith(`${n}: `)) || "").slice(i);
|
|
20
|
+
}, me = (e) => e.map((n) => n.value ?? n.label), q = ({ className: e, ...n }) => {
|
|
21
|
+
const { label: r } = n;
|
|
22
22
|
return /* @__PURE__ */ t.createElement("span", {
|
|
23
23
|
className: e
|
|
24
24
|
}, r);
|
|
25
25
|
}, P = ({ className: e }) => {
|
|
26
|
-
const { value:
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
]), [c, L] = z(b), f =
|
|
26
|
+
const { value: n, onChange: r, addOtherLabel: i, addOtherPlaceholder: s, otherInputCharacterLimit: l, disabled: u, readOnly: m, hasError: d } = D(), { t: p } = S(), o = i || p("add-other.default-other-option-label") || v, b = I(() => de(n || [], o), [
|
|
27
|
+
n,
|
|
28
|
+
o
|
|
29
|
+
]), [c, L] = z(b), f = N(r);
|
|
30
30
|
B(() => {
|
|
31
31
|
f.current = r;
|
|
32
32
|
});
|
|
33
|
-
const g =
|
|
33
|
+
const g = k((h) => {
|
|
34
34
|
L(h);
|
|
35
|
-
const C = (
|
|
35
|
+
const C = (n || []).filter((E) => !E.startsWith(`${o}:`) && E !== o), _ = h ? `${o}: ${h}` : o;
|
|
36
36
|
f.current([
|
|
37
37
|
...C,
|
|
38
38
|
_
|
|
39
39
|
]);
|
|
40
40
|
}, [
|
|
41
|
-
|
|
42
|
-
|
|
41
|
+
n,
|
|
42
|
+
o
|
|
43
43
|
]);
|
|
44
44
|
return /* @__PURE__ */ t.createElement(K, {
|
|
45
45
|
value: c,
|
|
@@ -47,7 +47,7 @@ const v = "Other", de = (e, a) => {
|
|
|
47
47
|
isDisabled: u,
|
|
48
48
|
isReadOnly: m,
|
|
49
49
|
isInvalid: d,
|
|
50
|
-
"aria-label":
|
|
50
|
+
"aria-label": o
|
|
51
51
|
}, /* @__PURE__ */ t.createElement(X, {
|
|
52
52
|
"data-hook": "tags-other-input",
|
|
53
53
|
"data-filled": c ? !0 : void 0,
|
|
@@ -55,23 +55,23 @@ const v = "Other", de = (e, a) => {
|
|
|
55
55
|
maxLength: l,
|
|
56
56
|
className: e
|
|
57
57
|
}));
|
|
58
|
-
}, T = ({ children: e, className:
|
|
59
|
-
const { value: i, label: s, isOther: l, isFirstOption: u } = r, { id: m, value: d, onChange: p, options:
|
|
58
|
+
}, T = ({ children: e, className: n, ...r }) => {
|
|
59
|
+
const { value: i, label: s, isOther: l, isFirstOption: u } = r, { id: m, value: d, onChange: p, options: o, disabled: b, readOnly: c, hasError: L } = D(), f = N(null);
|
|
60
60
|
U(() => {
|
|
61
61
|
var E;
|
|
62
62
|
u && ((E = f.current) == null || E.focus({
|
|
63
63
|
preventScroll: !0
|
|
64
64
|
}));
|
|
65
65
|
}, m);
|
|
66
|
-
const g = O(e,
|
|
66
|
+
const g = O(e, q), h = I(() => d || [], [
|
|
67
67
|
d
|
|
68
68
|
]), C = I(() => l ? h.find((E) => E === s || E.startsWith(`${s}: `)) || s : i, [
|
|
69
69
|
l,
|
|
70
70
|
h,
|
|
71
71
|
s,
|
|
72
72
|
i
|
|
73
|
-
]), _ =
|
|
74
|
-
const
|
|
73
|
+
]), _ = k((E) => {
|
|
74
|
+
const Q = me(o || []), A = h.filter((j) => Q.includes(j));
|
|
75
75
|
p(E ? [
|
|
76
76
|
...A,
|
|
77
77
|
s
|
|
@@ -79,7 +79,7 @@ const v = "Other", de = (e, a) => {
|
|
|
79
79
|
}, [
|
|
80
80
|
s,
|
|
81
81
|
p,
|
|
82
|
-
|
|
82
|
+
o,
|
|
83
83
|
h
|
|
84
84
|
]);
|
|
85
85
|
return /* @__PURE__ */ t.createElement(Y, {
|
|
@@ -90,60 +90,60 @@ const v = "Other", de = (e, a) => {
|
|
|
90
90
|
isReadOnly: c,
|
|
91
91
|
isInvalid: L
|
|
92
92
|
}, /* @__PURE__ */ t.createElement(Z, {
|
|
93
|
-
className:
|
|
93
|
+
className: n,
|
|
94
94
|
"data-hook": `tags-${l ? v : i}`
|
|
95
|
-
},
|
|
95
|
+
}, x(g, {
|
|
96
96
|
value: i,
|
|
97
97
|
label: s,
|
|
98
98
|
isOther: l,
|
|
99
99
|
isFirstOption: u
|
|
100
100
|
})));
|
|
101
|
-
}, V = ({ children: e, className:
|
|
101
|
+
}, V = ({ children: e, className: n }) => {
|
|
102
102
|
const { options: r, addOther: i, addOtherLabel: s, numberOfColumns: l = ue.FREE_FLOW } = D(), { t: u } = S(), m = s || u("add-other.default-other-option-label") || v, d = O(e, T), p = I(() => {
|
|
103
|
-
const
|
|
103
|
+
const o = r || [];
|
|
104
104
|
return i ? [
|
|
105
|
-
...
|
|
105
|
+
...o,
|
|
106
106
|
{
|
|
107
107
|
label: m,
|
|
108
108
|
value: m,
|
|
109
109
|
isOther: !0
|
|
110
110
|
}
|
|
111
|
-
] :
|
|
111
|
+
] : o;
|
|
112
112
|
}, [
|
|
113
113
|
r,
|
|
114
114
|
i,
|
|
115
115
|
m
|
|
116
116
|
]);
|
|
117
117
|
return p.length === 0 ? null : /* @__PURE__ */ t.createElement("div", {
|
|
118
|
-
className:
|
|
118
|
+
className: n,
|
|
119
119
|
"data-columns": l
|
|
120
|
-
}, p.map((
|
|
121
|
-
const c =
|
|
122
|
-
return
|
|
123
|
-
key:
|
|
120
|
+
}, p.map((o, b) => {
|
|
121
|
+
const c = o.value ?? o.label;
|
|
122
|
+
return x(d, {
|
|
123
|
+
key: o.isOther ? v : c,
|
|
124
124
|
value: c,
|
|
125
|
-
label:
|
|
126
|
-
isOther:
|
|
125
|
+
label: o.label,
|
|
126
|
+
isOther: o.isOther,
|
|
127
127
|
isFirstOption: b === 0
|
|
128
128
|
});
|
|
129
129
|
}));
|
|
130
|
-
},
|
|
131
|
-
const { addOther: r, addOtherLabel: i, hasError: s, readOnly: l, value: u } = D(), { t: m } = S(), d = i || m("add-other.default-other-option-label") || v, p = O(e, V),
|
|
130
|
+
}, G = ({ children: e, className: n }) => {
|
|
131
|
+
const { addOther: r, addOtherLabel: i, hasError: s, readOnly: l, value: u } = D(), { t: m } = S(), d = i || m("add-other.default-other-option-label") || v, p = O(e, V), o = O(e, P), b = I(() => !r || !u ? !1 : u.some((c) => c === d || c.startsWith(`${d}:`)), [
|
|
132
132
|
r,
|
|
133
133
|
u,
|
|
134
134
|
d
|
|
135
135
|
]);
|
|
136
136
|
return /* @__PURE__ */ t.createElement("div", {
|
|
137
|
-
className:
|
|
137
|
+
className: n,
|
|
138
138
|
"data-invalid": s,
|
|
139
139
|
"data-readonly": l
|
|
140
|
-
}, p, b &&
|
|
141
|
-
},
|
|
142
|
-
const { id:
|
|
140
|
+
}, p, b && o);
|
|
141
|
+
}, a = ({ children: e }) => {
|
|
142
|
+
const { id: n, value: r, onChange: i, FieldLayout: s, required: l, disabled: u, readOnly: m, hasError: d, onBlur: p, onFocus: o } = D(), { inputId: b, labelId: c, ariaDescribedBy: L } = M(), f = I(() => r || [], [
|
|
143
143
|
r
|
|
144
|
-
]), g = O(e,
|
|
144
|
+
]), g = O(e, $), h = O(e, G), C = O(e, W), _ = O(e, H);
|
|
145
145
|
return /* @__PURE__ */ t.createElement(s, {
|
|
146
|
-
fieldId:
|
|
146
|
+
fieldId: n,
|
|
147
147
|
renderLabel: () => g,
|
|
148
148
|
renderInput: () => /* @__PURE__ */ t.createElement(se, {
|
|
149
149
|
id: b,
|
|
@@ -151,7 +151,7 @@ const v = "Other", de = (e, a) => {
|
|
|
151
151
|
ariaDescribedBy: L,
|
|
152
152
|
required: l,
|
|
153
153
|
onBlur: p,
|
|
154
|
-
onFocus:
|
|
154
|
+
onFocus: o
|
|
155
155
|
}, /* @__PURE__ */ t.createElement(J, {
|
|
156
156
|
"aria-labelledby": c,
|
|
157
157
|
value: f,
|
|
@@ -165,49 +165,49 @@ const v = "Other", de = (e, a) => {
|
|
|
165
165
|
});
|
|
166
166
|
};
|
|
167
167
|
V.Option = T;
|
|
168
|
-
T.Label =
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
const pe = "
|
|
168
|
+
T.Label = q;
|
|
169
|
+
a.Label = $;
|
|
170
|
+
a.Control = G;
|
|
171
|
+
a.Options = V;
|
|
172
|
+
a.OtherInput = P;
|
|
173
|
+
a.Description = W;
|
|
174
|
+
a.Error = H;
|
|
175
|
+
const pe = "_control_18tbd_1", he = "_options_18tbd_7", Ee = "_option_18tbd_7", be = "_optionHover_18tbd_76", Oe = "_optionSelected_18tbd_76", R = {
|
|
176
176
|
control: pe,
|
|
177
177
|
options: he,
|
|
178
178
|
option: Ee,
|
|
179
179
|
optionHover: be,
|
|
180
180
|
optionSelected: Oe
|
|
181
|
-
}, fe = ({ content: e, locale:
|
|
181
|
+
}, fe = ({ content: e, locale: n }) => /* @__PURE__ */ t.createElement(w, {
|
|
182
182
|
content: e,
|
|
183
|
-
locale:
|
|
183
|
+
locale: n
|
|
184
184
|
}), Ie = {
|
|
185
185
|
base: R.option,
|
|
186
186
|
selected: R.optionSelected,
|
|
187
187
|
hover: R.optionHover
|
|
188
|
-
},
|
|
188
|
+
}, Ne = () => {
|
|
189
189
|
const e = ie({
|
|
190
190
|
globalClasses: re,
|
|
191
191
|
moduleClasses: Ie
|
|
192
|
-
}),
|
|
193
|
-
return /* @__PURE__ */ t.createElement(
|
|
192
|
+
}), n = ce();
|
|
193
|
+
return /* @__PURE__ */ t.createElement(a, null, /* @__PURE__ */ t.createElement(a.Label, {
|
|
194
194
|
className: F(ee, y.label)
|
|
195
|
-
}, /* @__PURE__ */ t.createElement(
|
|
195
|
+
}, /* @__PURE__ */ t.createElement(a.Label.Required, {
|
|
196
196
|
className: F(te, y.requiredMark)
|
|
197
|
-
})), /* @__PURE__ */ t.createElement(
|
|
197
|
+
})), /* @__PURE__ */ t.createElement(a.Control, {
|
|
198
198
|
className: R.control
|
|
199
|
-
}, /* @__PURE__ */ t.createElement(
|
|
200
|
-
className: F(
|
|
201
|
-
}, /* @__PURE__ */ t.createElement(
|
|
199
|
+
}, /* @__PURE__ */ t.createElement(a.Options, {
|
|
200
|
+
className: F(ne, R.options)
|
|
201
|
+
}, /* @__PURE__ */ t.createElement(a.Options.Option, {
|
|
202
202
|
className: e
|
|
203
|
-
}, /* @__PURE__ */ t.createElement(
|
|
204
|
-
className:
|
|
205
|
-
})), /* @__PURE__ */ t.createElement(
|
|
206
|
-
className: F(
|
|
207
|
-
}, /* @__PURE__ */ t.createElement(le, null), /* @__PURE__ */ t.createElement(
|
|
208
|
-
className: F(
|
|
203
|
+
}, /* @__PURE__ */ t.createElement(a.Options.Option.Label, null))), /* @__PURE__ */ t.createElement(a.OtherInput, {
|
|
204
|
+
className: n
|
|
205
|
+
})), /* @__PURE__ */ t.createElement(a.Error, {
|
|
206
|
+
className: F(oe, y.error)
|
|
207
|
+
}, /* @__PURE__ */ t.createElement(le, null), /* @__PURE__ */ t.createElement(a.Error.Text, null)), /* @__PURE__ */ t.createElement(a.Description, {
|
|
208
|
+
className: F(ae, y.description)
|
|
209
209
|
}, fe));
|
|
210
210
|
};
|
|
211
211
|
export {
|
|
212
|
-
|
|
212
|
+
Ne as T
|
|
213
213
|
};
|
|
@@ -2,13 +2,13 @@ import { RicosViewer as N } from "@wix/ricos/viewer";
|
|
|
2
2
|
import o from "classnames";
|
|
3
3
|
import r, { useCallback as S, useRef as T } from "react";
|
|
4
4
|
import { TextField as O, TextArea as y } from "react-aria-components";
|
|
5
|
-
import { bo as p, bl as d, bq as x, R as v, a0 as g, H as h, v as q } from "./form-
|
|
5
|
+
import { bo as p, bl as d, bq as x, R as v, a0 as g, H as h, v as q } from "./form-BTUoOcqB.js";
|
|
6
6
|
import { f as i } from "./find-child-C60k4CxG.js";
|
|
7
|
-
import { D as M, E as B } from "./field-error-headless-
|
|
8
|
-
import { L as k } from "./field-label-headless-
|
|
7
|
+
import { D as M, E as B } from "./field-error-headless-DWc76YmY.js";
|
|
8
|
+
import { L as k } from "./field-label-headless-DKBKqI2X.js";
|
|
9
9
|
import { E as P } from "./error-icon-hZxQ6DEy.js";
|
|
10
10
|
import { s as c } from "./field-rac.module-DP0lkkEv.js";
|
|
11
|
-
import { u as V } from "./use-text-input-class-name-
|
|
11
|
+
import { u as V } from "./use-text-input-class-name-BLtPQoYE.js";
|
|
12
12
|
const e = ({ children: t }) => {
|
|
13
13
|
const { id: a, value: m, onChange: s, disabled: u, required: n, readOnly: l, onBlur: E, onFocus: b, FieldLayout: I, hasError: f } = p(), { labelId: R } = d(), F = S((A) => {
|
|
14
14
|
s(A);
|
package/dist/component/{text-input-field-rac-Cl6vApZ6.js → text-input-field-rac-BbvPB26b.js}
RENAMED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { RicosViewer as l } from "@wix/ricos/viewer";
|
|
2
2
|
import t from "classnames";
|
|
3
3
|
import e from "react";
|
|
4
|
-
import { T as r } from "./text-input-headless-
|
|
4
|
+
import { T as r } from "./text-input-headless-BGaBRrP1.js";
|
|
5
5
|
import { E as o } from "./error-icon-hZxQ6DEy.js";
|
|
6
6
|
import { s as a } from "./field-rac.module-DP0lkkEv.js";
|
|
7
|
-
import { R as n, a0 as c, H as E, v as i } from "./form-
|
|
8
|
-
import { u as p } from "./use-text-input-class-name-
|
|
7
|
+
import { R as n, a0 as c, H as E, v as i } from "./form-BTUoOcqB.js";
|
|
8
|
+
import { u as p } from "./use-text-input-class-name-BLtPQoYE.js";
|
|
9
9
|
const R = ({ content: s, locale: m }) => /* @__PURE__ */ e.createElement(l, {
|
|
10
10
|
content: s,
|
|
11
11
|
locale: m
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import t, { useRef as v } from "react";
|
|
2
2
|
import { TextField as C, Input as R } from "react-aria-components";
|
|
3
|
-
import { bo as c, bl as d, bq as T } from "./form-
|
|
3
|
+
import { bo as c, bl as d, bq as T } from "./form-BTUoOcqB.js";
|
|
4
4
|
import { f as l } from "./find-child-C60k4CxG.js";
|
|
5
|
-
import { D as g, E as h } from "./field-error-headless-
|
|
6
|
-
import { L as q } from "./field-label-headless-
|
|
5
|
+
import { D as g, E as h } from "./field-error-headless-DWc76YmY.js";
|
|
6
|
+
import { L as q } from "./field-label-headless-DKBKqI2X.js";
|
|
7
7
|
const e = ({ children: r }) => {
|
|
8
8
|
const { id: s, value: a, onChange: i, disabled: u, readOnly: n, required: o, hasError: p, onBlur: m, onFocus: b, autoComplete: f, FieldLayout: E } = c(), { labelId: I } = d(), F = l(r, e.Label), y = l(r, e.Input), D = l(r, e.Description), L = l(r, e.Error);
|
|
9
9
|
return /* @__PURE__ */ t.createElement(E, {
|
|
@@ -3,14 +3,14 @@ import { RicosViewer as x } from "@wix/ricos/viewer";
|
|
|
3
3
|
import m from "classnames";
|
|
4
4
|
import { parseTime as B } from "@internationalized/date";
|
|
5
5
|
import { TimeField as k, DateInput as U, DateSegment as _, TimeFieldStateContext as w } from "react-aria-components";
|
|
6
|
-
import { bo as p, bl as j, by as T, bq as Q, R as z, a0 as G, H as J, v as K } from "./form-
|
|
6
|
+
import { bo as p, bl as j, by as T, bq as Q, R as z, a0 as G, H as J, v as K } from "./form-BTUoOcqB.js";
|
|
7
7
|
import { f as u, a as F } from "./find-child-C60k4CxG.js";
|
|
8
|
-
import { D as W, E as X } from "./field-error-headless-
|
|
9
|
-
import { L as Y } from "./field-label-headless-
|
|
8
|
+
import { D as W, E as X } from "./field-error-headless-DWc76YmY.js";
|
|
9
|
+
import { L as Y } from "./field-label-headless-DKBKqI2X.js";
|
|
10
10
|
import { E as Z } from "./error-icon-hZxQ6DEy.js";
|
|
11
11
|
import { H as S } from "./custom-focus-class-_483Pkwp.js";
|
|
12
12
|
import { s as f } from "./field-rac.module-DP0lkkEv.js";
|
|
13
|
-
import { u as $ } from "./use-text-input-class-name-
|
|
13
|
+
import { u as $ } from "./use-text-input-class-name-BLtPQoYE.js";
|
|
14
14
|
const r = ({ children: t }) => {
|
|
15
15
|
const { id: n, value: s, onChange: a, disabled: i, readOnly: o, required: c, onBlur: l, onFocus: E, use24HourFormat: b, FieldLayout: C, hasError: g } = p(), { inputId: I, ariaDescribedBy: R, labelId: D } = j(), L = v((M) => {
|
|
16
16
|
const H = ae(M);
|
|
@@ -2,14 +2,14 @@ import { RicosViewer as N } from "@wix/ricos/viewer";
|
|
|
2
2
|
import i from "classnames";
|
|
3
3
|
import r, { useCallback as h, useRef as O } from "react";
|
|
4
4
|
import { TextField as y, Input as A } from "react-aria-components";
|
|
5
|
-
import { bo as d, bl as E, bq as v, R as B, a0 as T, H as g, v as k } from "./form-
|
|
5
|
+
import { bo as d, bl as E, bq as v, R as B, a0 as T, H as g, v as k } from "./form-BTUoOcqB.js";
|
|
6
6
|
import { f as c } from "./find-child-C60k4CxG.js";
|
|
7
|
-
import { D as q, E as M } from "./field-error-headless-
|
|
8
|
-
import { L as P } from "./field-label-headless-
|
|
7
|
+
import { D as q, E as M } from "./field-error-headless-DWc76YmY.js";
|
|
8
|
+
import { L as P } from "./field-label-headless-DKBKqI2X.js";
|
|
9
9
|
import { u as x } from "./use-invoke-callback-UH73A_J3.js";
|
|
10
10
|
import { E as U } from "./error-icon-hZxQ6DEy.js";
|
|
11
11
|
import { s as u } from "./field-rac.module-DP0lkkEv.js";
|
|
12
|
-
import { u as w } from "./use-text-input-class-name-
|
|
12
|
+
import { u as w } from "./use-text-input-class-name-BLtPQoYE.js";
|
|
13
13
|
const H = (t) => t ? `https://${String(t).replace(/^https?:\/\//, "")}` : "", e = ({ children: t }) => {
|
|
14
14
|
const { id: o, value: l, onChange: n, disabled: m, readOnly: s, required: a, hasError: I, onBlur: b, onFocus: f, FieldLayout: R } = d(), { labelId: F } = E(), p = x(b), L = c(t, e.Label), D = c(t, e.Input), C = c(t, e.Description), _ = c(t, e.Error), S = h(() => {
|
|
15
15
|
n(H(l)), p();
|
|
@@ -2,9 +2,9 @@ import d, { useContext as N, useRef as x, useState as f, Children as y, useLayou
|
|
|
2
2
|
import { CollectionRendererContext as g, DefaultCollectionRenderer as E, ListBox as L } from "react-aria-components";
|
|
3
3
|
import M from "classnames";
|
|
4
4
|
import { s as R } from "./field-rac.module-DP0lkkEv.js";
|
|
5
|
-
import { z as T, G as P } from "./form-
|
|
6
|
-
import { u as H } from "./use-element-state-class-name-
|
|
7
|
-
import { u as B } from "./use-hoverable-input-class-name-
|
|
5
|
+
import { z as T, G as P } from "./form-BTUoOcqB.js";
|
|
6
|
+
import { u as H } from "./use-element-state-class-name-BUsFQfoW.js";
|
|
7
|
+
import { u as B } from "./use-hoverable-input-class-name-C2l3G8gb.js";
|
|
8
8
|
const h = 1 / 0, A = {
|
|
9
9
|
position: "absolute",
|
|
10
10
|
width: 0,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import i from "classnames";
|
|
2
|
-
import { bh as s, aQ as v } from "./form-
|
|
2
|
+
import { bh as s, aQ as v } from "./form-BTUoOcqB.js";
|
|
3
3
|
const x = ({ globalClasses: e, moduleClasses: r }) => {
|
|
4
4
|
var d;
|
|
5
5
|
const c = ((d = s(...v(e))) == null ? void 0 : d.split(/\s+/)) ?? [], o = [
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { bo as n } from "./form-
|
|
1
|
+
import { bo as n } from "./form-BTUoOcqB.js";
|
|
2
2
|
import { s as e } from "./field-rac.module-DP0lkkEv.js";
|
|
3
|
-
import { u } from "./use-element-state-class-name-
|
|
3
|
+
import { u } from "./use-element-state-class-name-BUsFQfoW.js";
|
|
4
4
|
const b = (s, a) => {
|
|
5
5
|
const { disabled: t, readOnly: o } = n(), r = u({
|
|
6
6
|
globalClasses: s,
|
package/dist/component/{use-service-options-base-BN6XeglC.js → use-service-options-base-D_enm38a.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useState as o, useCallback as y, useEffect as m, useMemo as D } from "react";
|
|
2
|
-
import { bn as v } from "./form-
|
|
2
|
+
import { bn as v } from "./form-BTUoOcqB.js";
|
|
3
3
|
const k = (I) => {
|
|
4
4
|
const { fieldType: L, isEditor: t = !1, postProcessOptions: i, customFetchLogic: n, onInitialDataLoaded: a } = I, [O, h] = o(!1), [g, p] = o([]), [E, u] = o(!1), [c, f] = o(!1), s = v(L), r = y((e) => {
|
|
5
5
|
let d = e.map((l) => ({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/form-elements",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.159.0",
|
|
4
4
|
"description": "The Wix Forms rendering element for Builder apps, loaded at runtime as @wix/form-elements/Form",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"files": [
|
|
@@ -156,5 +156,5 @@
|
|
|
156
156
|
]
|
|
157
157
|
}
|
|
158
158
|
},
|
|
159
|
-
"falconPackageHash": "
|
|
159
|
+
"falconPackageHash": "4949adcca161243b4961f0e9690e1fc3e117963c612e7e503e69ccc4"
|
|
160
160
|
}
|