@wix/form-elements 1.177.0 → 1.179.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-BAJYXMTI.js → appointment-rac-Cd7OKdp2.js} +4 -4
- package/dist/component/{bookings-address-rac-2lId37AV.js → bookings-address-rac-BQNIrYzy.js} +1 -1
- package/dist/component/{bookings-email-rac-CGv8_DCR.js → bookings-email-rac-BlvUlm5l.js} +1 -1
- package/dist/component/{bookings-first-name-rac-X0Fkx2HW.js → bookings-first-name-rac-D32cace5.js} +1 -1
- package/dist/component/{bookings-header-rac-B0m7b03Y.js → bookings-header-rac-BvV11wt7.js} +1 -1
- package/dist/component/{bookings-last-name-rac-BOTKQnp3.js → bookings-last-name-rac-C7OatLVo.js} +1 -1
- package/dist/component/{bookings-login-bar-rac-Bh-gXHxF.js → bookings-login-bar-rac-CVryWcPV.js} +1 -1
- package/dist/component/{bookings-phone-rac-D3uORVqg.js → bookings-phone-rac-CpRlgdxY.js} +1 -1
- package/dist/component/{bookings-rich-text-rac-CTzDqYdf.js → bookings-rich-text-rac-D3LCIS_8.js} +1 -1
- package/dist/component/{checkbox-field-rac-CABu1DWe.js → checkbox-field-rac-BK6-vOau.js} +4 -4
- package/dist/component/{checkbox-group-field-headless-PFQoRdu-.js → checkbox-group-field-headless--hxp1rUU.js} +3 -3
- package/dist/component/{checkbox-group-field-rac-DcnWE0rf.js → checkbox-group-field-rac-nFD5LaoE.js} +4 -4
- package/dist/component/{checkbox-group-rac-gK9Smwho.js → checkbox-group-rac-C6KBx0lP.js} +1 -1
- package/dist/component/{checkbox-rac-ODOiCqwN.js → checkbox-rac-CUqE-K3y.js} +1 -1
- package/dist/component/{contacts-address-rac-9invJuye.js → contacts-address-rac-CEy7QNaQ.js} +1 -1
- package/dist/component/{contacts-birthdate-rac-Crmp9zZO.js → contacts-birthdate-rac-CAkbVm3B.js} +1 -1
- package/dist/component/{contacts-company-rac-GA6XC4nF.js → contacts-company-rac-DATjlWWp.js} +1 -1
- package/dist/component/{contacts-email-rac-Bkka5Vu8.js → contacts-email-rac-BqezTSEN.js} +1 -1
- package/dist/component/{contacts-first-name-rac-CYogWkC0.js → contacts-first-name-rac-B__O8pev.js} +1 -1
- package/dist/component/{contacts-last-name-rac-19NcOJvu.js → contacts-last-name-rac-C_DaFHRv.js} +1 -1
- package/dist/component/{contacts-phone-rac-ZSQgk9UI.js → contacts-phone-rac-DZ1Vg2H7.js} +1 -1
- package/dist/component/{contacts-position-rac-Bu_Z7yMZ.js → contacts-position-rac-Bdzy4IQX.js} +1 -1
- package/dist/component/{contacts-subscribe-rac-P3zOrOax.js → contacts-subscribe-rac-BE8N6xmg.js} +1 -1
- package/dist/component/{contacts-tax-id-rac-BSgXRk6v.js → contacts-tax-id-rac-CMiZ5K9G.js} +1 -1
- package/dist/component/{date-availability-CJqU3LIt.js → date-availability-BpYWelLi.js} +1 -1
- package/dist/component/{date-input-field-rac-QqiSZnXZ.js → date-input-field-rac-D5piAqgR.js} +6 -6
- package/dist/component/{date-input-rac-BZFXvBvI.js → date-input-rac-CRG8CEoy.js} +1 -1
- package/dist/component/{date-picker-field-rac-5dktkwOd.js → date-picker-field-rac-D-EGqbDL.js} +6 -6
- package/dist/component/{date-picker-rac-CKSxXfzL.js → date-picker-rac-CsAD9IO5.js} +1 -1
- package/dist/component/{date-time-input-field-rac-DEmzbAaR.js → date-time-input-field-rac-Cv68lpNg.js} +6 -6
- package/dist/component/{date-time-input-rac-BVtsQ3Vd.js → date-time-input-rac-Dax2BHqW.js} +1 -1
- package/dist/component/{dext-checkbox-group-rac-BubQ0slS.js → dext-checkbox-group-rac-R3F1fpi_.js} +2 -2
- package/dist/component/{dext-checkbox-rac-BhLjzcsZ.js → dext-checkbox-rac-DZ-hB30J.js} +1 -1
- package/dist/component/{dext-date-picker-rac-DVBPmxp7.js → dext-date-picker-rac-CAckOmmp.js} +1 -1
- package/dist/component/{dext-date-time-input-rac-D4c_jenI.js → dext-date-time-input-rac-ClXTbE0u.js} +1 -1
- package/dist/component/{dext-dropdown-rac-B1zJAMKN.js → dext-dropdown-rac-B3xnyv_5.js} +1 -1
- package/dist/component/{dext-email-rac-Ccm5STO4.js → dext-email-rac-1znj8wl1.js} +1 -1
- package/dist/component/{dext-number-input-rac-x6vxbCXa.js → dext-number-input-rac-Dqse0Zcf.js} +1 -1
- package/dist/component/{dext-phone-rac-Shd3BfP-.js → dext-phone-rac-dAXlEH2D.js} +1 -1
- package/dist/component/{dext-radio-group-rac-Dlb_nBO2.js → dext-radio-group-rac-BX4lJ7GD.js} +2 -2
- package/dist/component/{dext-rating-input-rac-CaZbRWJC.js → dext-rating-input-rac-Dm5nyZbZ.js} +1 -1
- package/dist/component/{dext-tags-rac-C55Dq-1l.js → dext-tags-rac-DnViMymD.js} +2 -2
- package/dist/component/{dext-text-area-rac-9Ge8zXWS.js → dext-text-area-rac-BiJkBj9d.js} +1 -1
- package/dist/component/{dext-text-input-rac-C0JVOKkk.js → dext-text-input-rac-DYvk0O4t.js} +1 -1
- package/dist/component/{dext-url-input-rac-CzT1EVwq.js → dext-url-input-rac-B_MymfD7.js} +1 -1
- package/dist/component/{donation-rac-u4w-aXl6.js → donation-rac-BJYwb4Q2.js} +83 -83
- package/dist/component/{dropdown-field-rac-DhLD7sSS.js → dropdown-field-rac-C2HP3bP-.js} +3 -3
- package/dist/component/{dropdown-rac-b5WH0y-k.js → dropdown-rac-UkBmMrZP.js} +1 -1
- package/dist/component/{ecom-address-rac-C5A1WmAj.js → ecom-address-rac-DjzgheFR.js} +1 -1
- package/dist/component/{ecom-subscription-checkbox-rac-xW_rmIl_.js → ecom-subscription-checkbox-rac-CHF-S5GI.js} +2 -2
- package/dist/component/{email-input-field-rac-J_FteAiD.js → email-input-field-rac-t9MzuwRV.js} +3 -3
- package/dist/component/{events-repeater-rac-BP1Wyc53.js → events-repeater-rac-DVdwDPPm.js} +4 -4
- package/dist/component/{events-rsvp-rac-6K_VCmX-.js → events-rsvp-rac-BLKvC7r5.js} +3 -3
- package/dist/component/{field-error-headless-Coipxm8r.js → field-error-headless-oDcg4oxo.js} +1 -1
- package/dist/component/{field-label-headless-Td5R2D2v.js → field-label-headless-HMv-G21v.js} +1 -1
- package/dist/component/{file-upload-rac-QvjsWUE6.js → file-upload-rac-Cg1o0QVo.js} +4 -4
- package/dist/component/{fixed-payment-rac-BHdwt3Li.js → fixed-payment-rac-D34oFc42.js} +3 -3
- package/dist/component/{form-j_yRqg3t.js → form-CXsZtu5R.js} +69 -69
- package/dist/component/form.css +1 -1
- package/dist/component/form.js +1 -1
- package/dist/component/{header-field-rac-Bzpmnjft.js → header-field-rac-Cm1QG6Bq.js} +2 -2
- package/dist/component/{header-rac-Cyl7efBn.js → header-rac-C0_T5Yiy.js} +1 -1
- package/dist/component/{image-choice-rac-DwkOsp1k.js → image-choice-rac-C8mzXN2d.js} +54 -54
- package/dist/component/{index-DHLtT8Mx.js → index-DoXSuo9L.js} +4 -4
- package/dist/component/{index-DebSQu51.js → index-NtyfAzxl.js} +2 -2
- package/dist/component/{isObjectLike-Dmd5RpxA.js → isObjectLike-CCfWZPZg.js} +1 -1
- package/dist/component/{multiline-address-field-rac-Ds1zs5ln.js → multiline-address-field-rac-MdguvGiN.js} +7 -7
- package/dist/component/{multiline-address-rac-DttcRYnL.js → multiline-address-rac-CMZU4I_G.js} +1 -1
- package/dist/component/{number-input-field-rac-Dn1AUGV2.js → number-input-field-rac-BzZOCs3v.js} +4 -4
- package/dist/component/{number-input-rac-CFx61qYd.js → number-input-rac-BnJ6KGpE.js} +1 -1
- package/dist/component/{password-rac-DJuStTWa.js → password-rac-C1i3UW8H.js} +4 -4
- package/dist/component/{payment-input-rac-BIIX_P6A.js → payment-input-rac-CWnoIpKK.js} +4 -4
- package/dist/component/{phone-input-field-rac-C1InbJor.js → phone-input-field-rac-DblG1aO3.js} +6 -6
- package/dist/component/{phone-rac-B6ubdBf6.js → phone-rac-CNpOsaRX.js} +1 -1
- package/dist/component/{product-list-rac-BaB63jJu.js → product-list-rac-CMs1_g18.js} +4 -4
- package/dist/component/{quiz-radio-group-rac-CrGIv3cN.js → quiz-radio-group-rac-CXHk_5Eh.js} +1 -1
- package/dist/component/{radio-button-module-classes-zZg9SOqG.js → radio-button-module-classes-CDfLdyDP.js} +3 -3
- package/dist/component/{radio-group-field-rac-C_Aui1YW.js → radio-group-field-rac-DEbEI898.js} +4 -4
- package/dist/component/{radio-group-rac-Bt3QthZ5.js → radio-group-rac-UWkP43pT.js} +1 -1
- package/dist/component/{rating-input-field-rac-CdaHNKcZ.js → rating-input-field-rac-SoLmvs2v.js} +4 -4
- package/dist/component/{rating-input-rac-DmCouDpG.js → rating-input-rac-BMmnltX5.js} +1 -1
- package/dist/component/{rich-content-rac.module-wyBdhZhG.js → rich-content-rac.module-mwZxTkib.js} +1 -1
- package/dist/component/{rich-text-field-rac-BuvLBbnl.js → rich-text-field-rac-Chj84Fsk.js} +2 -2
- package/dist/component/{rich-text-rac-BXMlorQ2.js → rich-text-rac-DMfe2cTM.js} +1 -1
- package/dist/component/{service-dropdown-rac-xgk-rFIY.js → service-dropdown-rac-BSbRSLK9.js} +4 -4
- package/dist/component/{services-multi-choice-rac-D3ZwzsmG.js → services-multi-choice-rac-BRTw_nfq.js} +5 -5
- package/dist/component/{signature-rac-D8hEZGjF.js → signature-rac-4Ue3PYnm.js} +4 -4
- package/dist/component/{submit-button-rac-DHm3YV4U.js → submit-button-rac-BGCTvHrI.js} +2 -2
- package/dist/component/{tags-field-rac-Cm4SnACy.js → tags-field-rac-DABO4blS.js} +49 -49
- package/dist/component/{tags-rac-7nZ3O67I.js → tags-rac-CNH4u0bT.js} +1 -1
- package/dist/component/{text-area-field-rac-BEGUVGQL.js → text-area-field-rac-BiP0cDUF.js} +4 -4
- package/dist/component/{text-area-rac-BrhvUcqn.js → text-area-rac-C2N13gqx.js} +1 -1
- package/dist/component/{text-input-field-rac-CZn2Flyb.js → text-input-field-rac-NZ7YsA_D.js} +3 -3
- package/dist/component/{text-input-headless-DTDZC4x7.js → text-input-headless-DpmAOSFA.js} +3 -3
- package/dist/component/{text-input-rac-DIjGSUZo.js → text-input-rac-CD6wdcxh.js} +1 -1
- package/dist/component/{time-input-rac-17FRariH.js → time-input-rac-DRJkjuoT.js} +4 -4
- package/dist/component/{url-input-field-rac-DYAXRURP.js → url-input-field-rac-CdMAc7ui.js} +4 -4
- package/dist/component/{url-input-rac-6IWE13av.js → url-input-rac-BFzDu-il.js} +1 -1
- package/dist/component/{use-dropdown-option-class-name-teYH9uf4.js → use-dropdown-option-class-name-BK0vTa0D.js} +2 -2
- package/dist/component/{use-dropdown-trigger-class-name-BpJezVOE.js → use-dropdown-trigger-class-name-VqXyLMwO.js} +6 -6
- package/dist/component/{use-element-state-class-name-CcW9uY2w.js → use-element-state-class-name-Dl8C4S0a.js} +1 -1
- package/dist/component/{use-hoverable-input-class-name-B9Ps5WPu.js → use-hoverable-input-class-name-DP6a6VDR.js} +2 -2
- package/dist/component/{use-is-forced-open-dropdown-CUekpH1u.js → use-is-forced-open-dropdown-BLIRDuzt.js} +1 -1
- package/dist/component/{use-service-options-base-DXhuk0gs.js → use-service-options-base-DVxa9XN7.js} +1 -1
- package/dist/component/use-text-input-class-name-DUmaXeub.js +6 -0
- package/package.json +2 -2
- package/dist/component/use-text-input-class-name-BIu78phH.js +0 -6
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import t, { useRef as X, useCallback as y } from "react";
|
|
2
2
|
import J from "@wix/editor-react-components/AnimatedIcon";
|
|
3
3
|
import p from "classnames";
|
|
4
|
-
import { bL as b, bF as K, aF as $, aE as j, aC as q, aB as z, aK as G, aJ as Q, aD as Y, b as Z, aA as tt, aI as et } from "./form-
|
|
4
|
+
import { bL as b, bF as K, aF as $, aE as j, aC as q, aB as z, aK as G, aJ as Q, aD as Y, b as Z, aA as tt, aI as et } from "./form-CXsZtu5R.js";
|
|
5
5
|
import { ProgressBar as nt, Button as w } from "react-aria-components";
|
|
6
6
|
import { f as c } from "./find-child-C60k4CxG.js";
|
|
7
|
-
import { u as x } from "./use-element-state-class-name-
|
|
7
|
+
import { u as x } from "./use-element-state-class-name-Dl8C4S0a.js";
|
|
8
8
|
function ot(e) {
|
|
9
9
|
const s = "calc(50% - 2px)";
|
|
10
10
|
return /* @__PURE__ */ t.createElement(nt, {
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { RicosViewer as
|
|
1
|
+
import { RicosViewer as X } from "@wix/ricos/viewer";
|
|
2
2
|
import F from "classnames";
|
|
3
|
-
import t, { useMemo as I, useState as w, useRef as
|
|
3
|
+
import t, { useMemo as I, useState as w, useRef as N, useLayoutEffect as z, useCallback as x } from "react";
|
|
4
4
|
import { CheckboxGroup as B, TextField as J, Input as K, CheckboxField as Y, CheckboxButton as Z } from "react-aria-components";
|
|
5
|
-
import { bL as D, bI as M, bV as S, bN as U, X as ee, am as te, ax as oe, M as ne, I as ae, ay as
|
|
5
|
+
import { bL as D, bI as M, bV as S, bN as U, X as ee, am as te, ax as oe, M as ne, I as ae, ay as se } from "./form-CXsZtu5R.js";
|
|
6
6
|
import { f as O, a as k } from "./find-child-C60k4CxG.js";
|
|
7
|
-
import { E as W, D as H } from "./field-error-headless-
|
|
8
|
-
import { L as $ } from "./field-label-headless-
|
|
9
|
-
import { F as
|
|
7
|
+
import { E as W, D as H } from "./field-error-headless-oDcg4oxo.js";
|
|
8
|
+
import { L as $ } from "./field-label-headless-HMv-G21v.js";
|
|
9
|
+
import { F as re } 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-DcyJyi2B.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-Dl8C4S0a.js";
|
|
13
|
+
import { u as ce } from "./use-text-input-class-name-DUmaXeub.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
|
})({});
|
|
@@ -18,19 +18,19 @@ const v = "Other", de = (e, o) => {
|
|
|
18
18
|
const i = o.length + 2;
|
|
19
19
|
return (e.find((l) => l.startsWith(`${o}: `)) || "").slice(i);
|
|
20
20
|
}, me = (e) => e.map((o) => o.value ?? o.label), P = ({ className: e, ...o }) => {
|
|
21
|
-
const { label:
|
|
21
|
+
const { label: s } = o;
|
|
22
22
|
return /* @__PURE__ */ t.createElement("span", {
|
|
23
23
|
className: e
|
|
24
|
-
},
|
|
25
|
-
},
|
|
26
|
-
const { value: o, onChange:
|
|
24
|
+
}, s);
|
|
25
|
+
}, j = ({ className: e }) => {
|
|
26
|
+
const { value: o, onChange: s, addOtherLabel: i, addOtherPlaceholder: r, otherInputCharacterLimit: l, disabled: u, readOnly: m, hasError: d } = D(), { t: p } = S(), n = i || p("add-other.default-other-option-label") || v, b = I(() => de(o || [], n), [
|
|
27
27
|
o,
|
|
28
28
|
n
|
|
29
|
-
]), [c, L] = w(b), f =
|
|
29
|
+
]), [c, L] = w(b), f = N(s);
|
|
30
30
|
z(() => {
|
|
31
|
-
f.current =
|
|
31
|
+
f.current = s;
|
|
32
32
|
});
|
|
33
|
-
const g =
|
|
33
|
+
const g = x((h) => {
|
|
34
34
|
L(h);
|
|
35
35
|
const C = (o || []).filter((E) => !E.startsWith(`${n}:`) && E !== n), _ = h ? `${n}: ${h}` : n;
|
|
36
36
|
f.current([
|
|
@@ -51,12 +51,12 @@ const v = "Other", de = (e, o) => {
|
|
|
51
51
|
}, /* @__PURE__ */ t.createElement(K, {
|
|
52
52
|
"data-hook": "tags-other-input",
|
|
53
53
|
"data-filled": c ? !0 : void 0,
|
|
54
|
-
placeholder:
|
|
54
|
+
placeholder: r,
|
|
55
55
|
maxLength: l,
|
|
56
56
|
className: e
|
|
57
57
|
}));
|
|
58
|
-
}, T = ({ children: e, className: o, ...
|
|
59
|
-
const { value: i, label:
|
|
58
|
+
}, T = ({ children: e, className: o, ...s }) => {
|
|
59
|
+
const { value: i, label: r, isOther: l, isFirstOption: u } = s, { id: m, value: d, onChange: p, options: n, 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({
|
|
@@ -65,19 +65,19 @@ const v = "Other", de = (e, o) => {
|
|
|
65
65
|
}, m);
|
|
66
66
|
const g = O(e, P), h = I(() => d || [], [
|
|
67
67
|
d
|
|
68
|
-
]), C = I(() => l ? h.find((E) => E ===
|
|
68
|
+
]), C = I(() => l ? h.find((E) => E === r || E.startsWith(`${r}: `)) || r : i, [
|
|
69
69
|
l,
|
|
70
70
|
h,
|
|
71
|
-
|
|
71
|
+
r,
|
|
72
72
|
i
|
|
73
|
-
]), _ =
|
|
74
|
-
const
|
|
73
|
+
]), _ = x((E) => {
|
|
74
|
+
const G = me(n || []), A = h.filter((Q) => G.includes(Q));
|
|
75
75
|
p(E ? [
|
|
76
|
-
...
|
|
77
|
-
|
|
78
|
-
] :
|
|
76
|
+
...A,
|
|
77
|
+
r
|
|
78
|
+
] : A);
|
|
79
79
|
}, [
|
|
80
|
-
|
|
80
|
+
r,
|
|
81
81
|
p,
|
|
82
82
|
n,
|
|
83
83
|
h
|
|
@@ -94,13 +94,13 @@ const v = "Other", de = (e, o) => {
|
|
|
94
94
|
"data-hook": `tags-${l ? v : i}`
|
|
95
95
|
}, k(g, {
|
|
96
96
|
value: i,
|
|
97
|
-
label:
|
|
97
|
+
label: r,
|
|
98
98
|
isOther: l,
|
|
99
99
|
isFirstOption: u
|
|
100
100
|
})));
|
|
101
|
-
},
|
|
102
|
-
const { options:
|
|
103
|
-
const n =
|
|
101
|
+
}, V = ({ children: e, className: o }) => {
|
|
102
|
+
const { options: s, addOther: i, addOtherLabel: r, numberOfColumns: l = ue.FREE_FLOW } = D(), { t: u } = S(), m = r || u("add-other.default-other-option-label") || v, d = O(e, T), p = I(() => {
|
|
103
|
+
const n = s || [];
|
|
104
104
|
return i ? [
|
|
105
105
|
...n,
|
|
106
106
|
{
|
|
@@ -110,7 +110,7 @@ const v = "Other", de = (e, o) => {
|
|
|
110
110
|
}
|
|
111
111
|
] : n;
|
|
112
112
|
}, [
|
|
113
|
-
|
|
113
|
+
s,
|
|
114
114
|
i,
|
|
115
115
|
m
|
|
116
116
|
]);
|
|
@@ -127,25 +127,25 @@ const v = "Other", de = (e, o) => {
|
|
|
127
127
|
isFirstOption: b === 0
|
|
128
128
|
});
|
|
129
129
|
}));
|
|
130
|
-
},
|
|
131
|
-
const { addOther:
|
|
132
|
-
|
|
130
|
+
}, q = ({ children: e, className: o }) => {
|
|
131
|
+
const { addOther: s, addOtherLabel: i, hasError: r, readOnly: l, value: u } = D(), { t: m } = S(), d = i || m("add-other.default-other-option-label") || v, p = O(e, V), n = O(e, j), b = I(() => !s || !u ? !1 : u.some((c) => c === d || c.startsWith(`${d}:`)), [
|
|
132
|
+
s,
|
|
133
133
|
u,
|
|
134
134
|
d
|
|
135
135
|
]);
|
|
136
136
|
return /* @__PURE__ */ t.createElement("div", {
|
|
137
137
|
className: o,
|
|
138
|
-
"data-invalid":
|
|
138
|
+
"data-invalid": r,
|
|
139
139
|
"data-readonly": l
|
|
140
140
|
}, p, b && n);
|
|
141
141
|
}, a = ({ children: e }) => {
|
|
142
|
-
const { id: o, value:
|
|
143
|
-
|
|
144
|
-
]), g = O(e, $), h = O(e,
|
|
145
|
-
return /* @__PURE__ */ t.createElement(
|
|
142
|
+
const { id: o, value: s, onChange: i, FieldLayout: r, required: l, disabled: u, readOnly: m, hasError: d, onBlur: p, onFocus: n } = D(), { inputId: b, labelId: c, ariaDescribedBy: L } = M(), f = I(() => s || [], [
|
|
143
|
+
s
|
|
144
|
+
]), g = O(e, $), h = O(e, q), C = O(e, H), _ = O(e, W);
|
|
145
|
+
return /* @__PURE__ */ t.createElement(r, {
|
|
146
146
|
fieldId: o,
|
|
147
147
|
renderLabel: () => g,
|
|
148
|
-
renderInput: () => /* @__PURE__ */ t.createElement(
|
|
148
|
+
renderInput: () => /* @__PURE__ */ t.createElement(re, {
|
|
149
149
|
id: b,
|
|
150
150
|
ariaLabelledBy: c,
|
|
151
151
|
ariaDescribedBy: L,
|
|
@@ -164,30 +164,30 @@ const v = "Other", de = (e, o) => {
|
|
|
164
164
|
renderDescription: () => /* @__PURE__ */ t.createElement(t.Fragment, null, _, C)
|
|
165
165
|
});
|
|
166
166
|
};
|
|
167
|
-
|
|
167
|
+
V.Option = T;
|
|
168
168
|
T.Label = P;
|
|
169
169
|
a.Label = $;
|
|
170
|
-
a.Control =
|
|
171
|
-
a.Options =
|
|
172
|
-
a.OtherInput =
|
|
170
|
+
a.Control = q;
|
|
171
|
+
a.Options = V;
|
|
172
|
+
a.OtherInput = j;
|
|
173
173
|
a.Description = H;
|
|
174
174
|
a.Error = W;
|
|
175
|
-
const pe = "
|
|
175
|
+
const pe = "_control_oshjt_1", he = "_options_oshjt_7", Ee = "_option_oshjt_7", be = "_optionHover_oshjt_76", Oe = "_optionSelected_oshjt_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: o }) => /* @__PURE__ */ t.createElement(
|
|
181
|
+
}, fe = ({ content: e, locale: o }) => /* @__PURE__ */ t.createElement(X, {
|
|
182
182
|
content: e,
|
|
183
183
|
locale: o
|
|
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
|
-
globalClasses:
|
|
190
|
+
globalClasses: se,
|
|
191
191
|
moduleClasses: Ie
|
|
192
192
|
}), o = ce();
|
|
193
193
|
return /* @__PURE__ */ t.createElement(a, null, /* @__PURE__ */ t.createElement(a.Label, {
|
|
@@ -209,5 +209,5 @@ const pe = "_control_hoxuh_1", he = "_options_hoxuh_7", Ee = "_option_hoxuh_7",
|
|
|
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 { bL as p, bI as d, bN as x, X as g, am as h, M as v, I as M } from "./form-
|
|
5
|
+
import { bL as p, bI as d, bN as x, X as g, am as h, M as v, I as M } from "./form-CXsZtu5R.js";
|
|
6
6
|
import { f as i } from "./find-child-C60k4CxG.js";
|
|
7
|
-
import { D as q, E as B } from "./field-error-headless-
|
|
8
|
-
import { L as k } from "./field-label-headless-
|
|
7
|
+
import { D as q, E as B } from "./field-error-headless-oDcg4oxo.js";
|
|
8
|
+
import { L as k } from "./field-label-headless-HMv-G21v.js";
|
|
9
9
|
import { E as P } from "./error-icon-hZxQ6DEy.js";
|
|
10
10
|
import { s as c } from "./field-rac.module-DcyJyi2B.js";
|
|
11
|
-
import { u as V } from "./use-text-input-class-name-
|
|
11
|
+
import { u as V } from "./use-text-input-class-name-DUmaXeub.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: I, FieldLayout: b, hasError: f } = p(), { labelId: L } = d(), F = S((A) => {
|
|
14
14
|
s(A);
|
package/dist/component/{text-input-field-rac-CZn2Flyb.js → text-input-field-rac-NZ7YsA_D.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-DpmAOSFA.js";
|
|
5
5
|
import { E as o } from "./error-icon-hZxQ6DEy.js";
|
|
6
6
|
import { s as a } from "./field-rac.module-DcyJyi2B.js";
|
|
7
|
-
import { X as n, am as c, M as E, I as i } from "./form-
|
|
8
|
-
import { u as p } from "./use-text-input-class-name-
|
|
7
|
+
import { X as n, am as c, M as E, I as i } from "./form-CXsZtu5R.js";
|
|
8
|
+
import { u as p } from "./use-text-input-class-name-DUmaXeub.js";
|
|
9
9
|
const I = ({ 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 { bL as c, bI as d, bN as T } from "./form-
|
|
3
|
+
import { bL as c, bI as d, bN as T } from "./form-CXsZtu5R.js";
|
|
4
4
|
import { f as s } from "./find-child-C60k4CxG.js";
|
|
5
|
-
import { D as g, E as h } from "./field-error-headless-
|
|
6
|
-
import { L as x } from "./field-label-headless-
|
|
5
|
+
import { D as g, E as h } from "./field-error-headless-oDcg4oxo.js";
|
|
6
|
+
import { L as x } from "./field-label-headless-HMv-G21v.js";
|
|
7
7
|
const e = ({ children: r }) => {
|
|
8
8
|
const { id: a, value: l, onChange: i, disabled: u, readOnly: n, required: o, hasError: p, onBlur: m, onFocus: b, autoComplete: f, FieldLayout: E } = c(), { labelId: I } = d(), F = s(r, e.Label), y = s(r, e.Input), D = s(r, e.Description), L = s(r, e.Error);
|
|
9
9
|
return /* @__PURE__ */ t.createElement(E, {
|
|
@@ -3,14 +3,14 @@ import { RicosViewer as q } 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 { bL as p, bI as j, bV as T, bN as Q, X, am as z, M as G, I as J } from "./form-
|
|
6
|
+
import { bL as p, bI as j, bV as T, bN as Q, X, am as z, M as G, I as J } from "./form-CXsZtu5R.js";
|
|
7
7
|
import { f as u, a as F } from "./find-child-C60k4CxG.js";
|
|
8
|
-
import { D as K, E as W } from "./field-error-headless-
|
|
9
|
-
import { L as Y } from "./field-label-headless-
|
|
8
|
+
import { D as K, E as W } from "./field-error-headless-oDcg4oxo.js";
|
|
9
|
+
import { L as Y } from "./field-label-headless-HMv-G21v.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-DcyJyi2B.js";
|
|
13
|
-
import { u as $ } from "./use-text-input-class-name-
|
|
13
|
+
import { u as $ } from "./use-text-input-class-name-DUmaXeub.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: I, FieldLayout: b, hasError: C } = p(), { inputId: g, ariaDescribedBy: L, labelId: D } = j(), R = V((M) => {
|
|
16
16
|
const H = ae(M);
|
|
@@ -2,14 +2,14 @@ import { RicosViewer as S } 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 { bL as d, bI as E, bN as v, X as B, am as M, M as T, I as g } from "./form-
|
|
5
|
+
import { bL as d, bI as E, bN as v, X as B, am as M, M as T, I as g } from "./form-CXsZtu5R.js";
|
|
6
6
|
import { f as c } from "./find-child-C60k4CxG.js";
|
|
7
|
-
import { D as k, E as P } from "./field-error-headless-
|
|
8
|
-
import { L as q } from "./field-label-headless-
|
|
7
|
+
import { D as k, E as P } from "./field-error-headless-oDcg4oxo.js";
|
|
8
|
+
import { L as q } from "./field-label-headless-HMv-G21v.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-DcyJyi2B.js";
|
|
12
|
-
import { u as w } from "./use-text-input-class-name-
|
|
12
|
+
import { u as w } from "./use-text-input-class-name-DUmaXeub.js";
|
|
13
13
|
const V = (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: L } = d(), { labelId: R } = E(), p = x(b), F = c(t, e.Label), D = c(t, e.Input), C = c(t, e.Description), _ = c(t, e.Error), N = h(() => {
|
|
15
15
|
n(V(l)), p();
|
|
@@ -2,8 +2,8 @@ import d, { useContext as _, useRef as L, useState as m, Children as N, useLayou
|
|
|
2
2
|
import { CollectionRendererContext as g, DefaultCollectionRenderer as E, ListBox as M } from "react-aria-components";
|
|
3
3
|
import P from "classnames";
|
|
4
4
|
import { s as h } from "./field-rac.module-DcyJyi2B.js";
|
|
5
|
-
import { K as T } from "./form-
|
|
6
|
-
import { u as H } from "./use-element-state-class-name-
|
|
5
|
+
import { K as T } from "./form-CXsZtu5R.js";
|
|
6
|
+
import { u as H } from "./use-element-state-class-name-Dl8C4S0a.js";
|
|
7
7
|
const R = 1 / 0, I = {
|
|
8
8
|
position: "absolute",
|
|
9
9
|
width: 0,
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import e, { useState as F, useCallback as L, useRef as M } from "react";
|
|
2
2
|
import { UNSAFE_PortalProvider as $ } from "react-aria";
|
|
3
3
|
import { VisuallyHidden as k, Select as G, SelectValue as U, ListBoxItem as W } from "react-aria-components";
|
|
4
|
-
import { bL as b, bI as v, bV as Y, bN as j, L as z } from "./form-
|
|
4
|
+
import { bL as b, bI as v, bV as Y, bN as j, L as z } from "./form-CXsZtu5R.js";
|
|
5
5
|
import { f as d, a as D } from "./find-child-C60k4CxG.js";
|
|
6
|
-
import { D as J, E as K } from "./field-error-headless-
|
|
7
|
-
import { L as Q } from "./field-label-headless-
|
|
6
|
+
import { D as J, E as K } from "./field-error-headless-oDcg4oxo.js";
|
|
7
|
+
import { L as Q } from "./field-label-headless-HMv-G21v.js";
|
|
8
8
|
import { E as X, S as Z, N as ee } from "./non-modal-popover-D-u13tmp.js";
|
|
9
|
-
import { b as te } from "./use-is-forced-open-dropdown-
|
|
10
|
-
import { V as ne } from "./use-dropdown-option-class-name-
|
|
11
|
-
import { u as re } from "./use-hoverable-input-class-name-
|
|
9
|
+
import { b as te } from "./use-is-forced-open-dropdown-BLIRDuzt.js";
|
|
10
|
+
import { V as ne } from "./use-dropdown-option-class-name-BK0vTa0D.js";
|
|
11
|
+
import { u as re } from "./use-hoverable-input-class-name-DP6a6VDR.js";
|
|
12
12
|
const r = ({ children: t }) => {
|
|
13
13
|
const { id: l, value: a, defaultValue: s, options: u = [], readOnly: o, onChange: n, placeholder: m, disabled: i, required: p, onBlur: I, onFocus: C, FieldLayout: y, hasError: N } = b(), [T, P] = F(!1), E = te(l), [R, h] = F(null), S = a && u.some((c) => (c.value ?? c.label) === a) ? a : s || null, { labelId: f } = v(), { t: V } = Y(), O = `${f}-required`, B = L((c) => {
|
|
14
14
|
o || n(typeof c == "string" ? c : null);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import i from "classnames";
|
|
2
|
-
import { bE as s, bb as v } from "./form-
|
|
2
|
+
import { bE as s, bb as v } from "./form-CXsZtu5R.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 { bL as n } from "./form-
|
|
1
|
+
import { bL as n } from "./form-CXsZtu5R.js";
|
|
2
2
|
import { s as e } from "./field-rac.module-DcyJyi2B.js";
|
|
3
|
-
import { u } from "./use-element-state-class-name-
|
|
3
|
+
import { u } from "./use-element-state-class-name-Dl8C4S0a.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-DXhuk0gs.js → use-service-options-base-DVxa9XN7.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 { bK as v } from "./form-
|
|
2
|
+
import { bK as v } from "./form-CXsZtu5R.js";
|
|
3
3
|
const k = (I) => {
|
|
4
4
|
const { fieldType: L, isEditor: t = !1, postProcessOptions: i, customFetchLogic: a, onInitialDataLoaded: n } = 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.179.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": "be8fc6087dcb17ac6ead91467d7abd4cae54f8a9280c5e307bb7110d"
|
|
160
160
|
}
|