@wix/form-elements 1.133.0 → 1.134.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-D0mwr3TL.js → appointment-rac-CZHb5jGz.js} +246 -246
- package/dist/component/{bookings-address-rac-BEnmwXax.js → bookings-address-rac-F39MfGmX.js} +1 -1
- package/dist/component/{bookings-email-rac-D56j9PXc.js → bookings-email-rac-D4CurQjr.js} +1 -1
- package/dist/component/{bookings-first-name-rac-xu3S-ih_.js → bookings-first-name-rac-Bz9o1eLl.js} +1 -1
- package/dist/component/{bookings-header-rac-hfBabv7v.js → bookings-header-rac-6mfX0WGf.js} +1 -1
- package/dist/component/{bookings-last-name-rac-6bMvN0Cm.js → bookings-last-name-rac-CD1-B7Ao.js} +1 -1
- package/dist/component/{bookings-login-bar-rac-DE70Omwf.js → bookings-login-bar-rac-2eQkfhBb.js} +17 -17
- package/dist/component/{bookings-phone-rac-D_EHRAiU.js → bookings-phone-rac-X6sSnHiH.js} +1 -1
- package/dist/component/{bookings-rich-text-rac-BxgI9Zt6.js → bookings-rich-text-rac-f2artJnn.js} +1 -1
- package/dist/component/{calendar.module-DnhTT4QT.js → calendar.module-CKCBG_Pg.js} +11 -11
- package/dist/component/{checkbox-field-rac-BLDUOAXM.js → checkbox-field-rac-DoZ9bcw3.js} +26 -25
- package/dist/component/{checkbox-group-field-headless-CugSJIBp.js → checkbox-group-field-headless-B-d37T4z.js} +32 -31
- package/dist/component/{checkbox-group-field-rac-D4m9SmRX.js → checkbox-group-field-rac-0qYHz3g1.js} +6 -6
- package/dist/component/{checkbox-group-rac-BYqEsCwa.js → checkbox-group-rac-BqUJdAju.js} +1 -1
- package/dist/component/{checkbox-indicator-module-classes-zXKP5rD4.js → checkbox-indicator-module-classes-6173wvuW.js} +1 -1
- package/dist/component/{checkbox-rac-DkIBUAN7.js → checkbox-rac-BN-qNzpH.js} +1 -1
- package/dist/component/{contacts-address-rac-D1tzbiTM.js → contacts-address-rac-B7vWOTFf.js} +1 -1
- package/dist/component/{contacts-birthdate-rac-DO-1xG0u.js → contacts-birthdate-rac-Dl0OatzW.js} +1 -1
- package/dist/component/{contacts-company-rac-CzJK3YIo.js → contacts-company-rac-DIeGU0Bf.js} +1 -1
- package/dist/component/{contacts-email-rac-DLvMErBI.js → contacts-email-rac-BCH6ogWv.js} +1 -1
- package/dist/component/{contacts-first-name-rac-3RcSXL0h.js → contacts-first-name-rac-Cx-USWmx.js} +1 -1
- package/dist/component/{contacts-last-name-rac-BYoSi_QX.js → contacts-last-name-rac-CUZdJI9J.js} +1 -1
- package/dist/component/{contacts-phone-rac-DMYn0orB.js → contacts-phone-rac-hNCW_2UC.js} +1 -1
- package/dist/component/{contacts-position-rac-K1R6ihXo.js → contacts-position-rac-CJfOgxZc.js} +1 -1
- package/dist/component/{contacts-subscribe-rac-DsWNSH6t.js → contacts-subscribe-rac-69721_c9.js} +1 -1
- package/dist/component/{contacts-tax-id-rac-D7NjPiRf.js → contacts-tax-id-rac-CXXBqWIm.js} +1 -1
- package/dist/component/{date-availability-D3n6-g3h.js → date-availability-NQGPIrdZ.js} +1 -1
- package/dist/component/{date-input-field-rac-SyAmInlu.js → date-input-field-rac-C-we-suG.js} +60 -60
- package/dist/component/{date-input-rac-BQNOsWz1.js → date-input-rac-Cif7Bqxc.js} +1 -1
- package/dist/component/{date-picker-field-rac-DO1epod7.js → date-picker-field-rac-CHDkTXVH.js} +63 -63
- package/dist/component/{date-picker-rac-DQElftUu.js → date-picker-rac-DdhgbY6W.js} +1 -1
- package/dist/component/{date-time-input-field-rac-CV5wZSXO.js → date-time-input-field-rac-BjtDbiqE.js} +7 -7
- package/dist/component/{date-time-input-rac-DvHwpjnk.js → date-time-input-rac-BDP5SN-i.js} +1 -1
- package/dist/component/{dext-checkbox-group-rac-BfcKoslb.js → dext-checkbox-group-rac-CkF41kIR.js} +2 -2
- package/dist/component/{dext-checkbox-rac-DhadtXb5.js → dext-checkbox-rac-DjYpsxmq.js} +1 -1
- package/dist/component/{dext-date-picker-rac-0Dmo3mrG.js → dext-date-picker-rac-BxXZLogr.js} +1 -1
- package/dist/component/{dext-date-time-input-rac-Cnh7Aqiq.js → dext-date-time-input-rac-e4y_JjEx.js} +1 -1
- package/dist/component/{dext-dropdown-rac-CajXcYsB.js → dext-dropdown-rac-DsjB3ZX7.js} +1 -1
- package/dist/component/{dext-email-rac-DynJaiZt.js → dext-email-rac-ClPp1g4D.js} +1 -1
- package/dist/component/{dext-number-input-rac-LmTKwb80.js → dext-number-input-rac-D2nZNzyN.js} +1 -1
- package/dist/component/{dext-phone-rac-Cw2roq1_.js → dext-phone-rac-PNiQZ-Lr.js} +1 -1
- package/dist/component/{dext-radio-group-rac-CaNZJrkc.js → dext-radio-group-rac-DUltmMHM.js} +2 -2
- package/dist/component/{dext-rating-input-rac-CAL1jb0q.js → dext-rating-input-rac-C_apsfGT.js} +1 -1
- package/dist/component/{dext-tags-rac-BOp_amVK.js → dext-tags-rac-DkB_CmOD.js} +2 -2
- package/dist/component/{dext-text-area-rac-6DYTHIeh.js → dext-text-area-rac-CfoIK0S7.js} +1 -1
- package/dist/component/{dext-text-input-rac-CDWthvV3.js → dext-text-input-rac-CIOXlk6U.js} +1 -1
- package/dist/component/{dext-url-input-rac-CsS4NPYO.js → dext-url-input-rac-UHJAs3ck.js} +1 -1
- package/dist/component/{donation-rac-B7lFkotu.js → donation-rac-BJfvVi_d.js} +7 -10
- package/dist/component/{dropdown-field-headless-ajQghLaj.js → dropdown-field-headless-0DB-T-3t.js} +5 -5
- package/dist/component/{dropdown-field-rac-Bf5LQqSL.js → dropdown-field-rac-DB-pd2a8.js} +5 -5
- package/dist/component/{dropdown-rac-CJmA_ePl.js → dropdown-rac-4T4zRBVy.js} +1 -1
- package/dist/component/{ecom-address-rac-B49ZP2qc.js → ecom-address-rac-BjWD1sRX.js} +1 -1
- package/dist/component/{ecom-subscription-checkbox-rac-C8qImtxo.js → ecom-subscription-checkbox-rac-CYCufut6.js} +2 -2
- package/dist/component/{email-input-field-rac-B_bEWp5N.js → email-input-field-rac-DlLoY9jB.js} +4 -4
- package/dist/component/{events-repeater-rac-DXxqmIBX.js → events-repeater-rac-CPHJbWcZ.js} +48 -47
- package/dist/component/{events-rsvp-rac-BaJQLSv3.js → events-rsvp-rac-NXf8Fv3A.js} +4 -4
- package/dist/component/{field-error-headless-BxEFPwKI.js → field-error-headless-C-wyL0uw.js} +1 -1
- package/dist/component/{field-label-headless-5mewgrhq.js → field-label-headless-32mvEUId.js} +1 -1
- package/dist/component/field-rac.module-DfEb7pBp.js +25 -0
- package/dist/component/file-upload-rac-BicD_Bhj.js +566 -0
- package/dist/component/{fixed-payment-rac-S68bqvbB.js → fixed-payment-rac-DxHalHUv.js} +4 -4
- package/dist/component/{form-CPY-PtxT.js → form-B2wZnWX9.js} +69 -69
- package/dist/component/form.css +1 -1
- package/dist/component/form.js +1 -1
- package/dist/component/{header-field-rac-r6dYbnvA.js → header-field-rac-C47Te_oW.js} +2 -2
- package/dist/component/{header-rac-C9gaKsaE.js → header-rac-ChDYKTx5.js} +1 -1
- package/dist/component/{image-choice-rac-BbES5dAK.js → image-choice-rac-CqTBWpcY.js} +42 -45
- package/dist/component/{index-o-TpCHqo.js → index-BF_Aifc-.js} +4 -4
- package/dist/component/{index-C6zuIVeJ.js → index-Br8x_xx8.js} +2 -2
- package/dist/component/{isObjectLike-BSRiBVs9.js → isObjectLike-D4VXbd0T.js} +1 -1
- package/dist/component/{multiline-address-field-rac-BfVIiFyM.js → multiline-address-field-rac-DYcfzGJb.js} +8 -8
- package/dist/component/{multiline-address-rac-BOKBExhi.js → multiline-address-rac-DcGDGyL-.js} +1 -1
- package/dist/component/{number-input-field-rac-BRKFm8aA.js → number-input-field-rac-C_Fh8oeD.js} +5 -5
- package/dist/component/{number-input-rac-BNbCCb-g.js → number-input-rac-J2tCaAYx.js} +1 -1
- package/dist/component/{password-rac-BygVJf7f.js → password-rac-wlfBhft8.js} +5 -5
- package/dist/component/{payment-input-rac-CoMbHcHG.js → payment-input-rac-DKxy3uE0.js} +5 -5
- package/dist/component/{phone-input-field-rac-dFjxptEr.js → phone-input-field-rac-ClXUOLpB.js} +28 -29
- package/dist/component/{phone-rac-Dup3AP9J.js → phone-rac-D0-Poz1e.js} +1 -1
- package/dist/component/{product-list-rac-B62mNB_W.js → product-list-rac-TF5fgLyc.js} +69 -68
- package/dist/component/{quiz-radio-group-rac-DPMhDtr7.js → quiz-radio-group-rac-BX4V_6wg.js} +1 -1
- package/dist/component/{radio-button-module-classes-BMvPai_6.js → radio-button-module-classes-D8UpzVUK.js} +18 -17
- package/dist/component/{radio-group-field-rac-DPt2Zl4G.js → radio-group-field-rac-C0zCVtjj.js} +5 -5
- package/dist/component/{radio-group-rac-BZyGqFzr.js → radio-group-rac-DrKqgPRT.js} +1 -1
- package/dist/component/{rating-input-field-rac-C3E0KzV-.js → rating-input-field-rac-DjxfTgv5.js} +35 -33
- package/dist/component/{rating-input-rac-BKLz4l_D.js → rating-input-rac-DO4Bpdj3.js} +1 -1
- package/dist/component/{rich-content-rac.module-CQ1qa_zz.js → rich-content-rac.module-DUNKiTkT.js} +1 -1
- package/dist/component/{rich-text-field-rac-BfdA5KNz.js → rich-text-field-rac-DIOTzVwj.js} +2 -2
- package/dist/component/{rich-text-rac-BFbhfFuF.js → rich-text-rac-C_E_vEGz.js} +1 -1
- package/dist/component/{service-dropdown-rac-VulpHBki.js → service-dropdown-rac-B3gQT9Tj.js} +6 -6
- package/dist/component/{services-multi-choice-rac-CIx5UpfD.js → services-multi-choice-rac-D40hZhBB.js} +7 -7
- package/dist/component/{signature-rac-BdxMBfl9.js → signature-rac-CKXpb2WN.js} +269 -264
- package/dist/component/{submit-button-rac-CkuWGEyL.js → submit-button-rac-CDS-vtXq.js} +2 -2
- package/dist/component/{tags-field-rac-DKo_Yb5i.js → tags-field-rac-CdQWq8k5.js} +54 -57
- package/dist/component/{tags-rac-BimVd3ym.js → tags-rac-BwChqdGx.js} +1 -1
- package/dist/component/{text-area-field-rac-DEiLtCnb.js → text-area-field-rac-VCFJuHx4.js} +5 -5
- package/dist/component/{text-area-rac-CHZtsq0f.js → text-area-rac-BICVNsdn.js} +1 -1
- package/dist/component/{text-input-field-rac-CSHvUtRG.js → text-input-field-rac-C9gyRhcK.js} +4 -4
- package/dist/component/{text-input-headless-BYcExFPS.js → text-input-headless-BdkaD-re.js} +3 -3
- package/dist/component/{text-input-rac-D-R9btYo.js → text-input-rac-B7buOGbq.js} +1 -1
- package/dist/component/{time-input-rac-wkHemVzj.js → time-input-rac-CSFhEYi0.js} +5 -5
- package/dist/component/{url-input-field-rac-KJEcLyFk.js → url-input-field-rac-BIXokgHy.js} +5 -5
- package/dist/component/{url-input-rac-JFfEH389.js → url-input-rac-tTN0GaTH.js} +1 -1
- package/dist/component/{use-dropdown-option-class-name-BetaTWbW.js → use-dropdown-option-class-name-C6zB6TNA.js} +3 -3
- package/dist/component/{use-dropdown-trigger-class-name-C0ffAjFn.js → use-dropdown-trigger-class-name-CEq68SuK.js} +2 -2
- package/dist/component/use-element-state-class-name-BFZzVwqe.js +23 -0
- package/dist/component/use-hoverable-input-class-name-CzZmczhf.js +25 -0
- package/dist/component/{use-service-options-base-q0JTA7UI.js → use-service-options-base-DOCVW9ax.js} +1 -1
- package/dist/component/use-text-input-class-name-BNX3qkmh.js +6 -0
- package/package.json +2 -2
- package/dist/component/field-rac.module-BGN-O8tV.js +0 -25
- package/dist/component/file-upload-rac-D9Z1Cumr.js +0 -562
- package/dist/component/use-element-state-class-name-BOks3she.js +0 -20
- package/dist/component/use-hoverable-input-class-name-jxtCw16L.js +0 -23
- package/dist/component/use-text-input-class-name-CTa0bC4T.js +0 -6
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import t, { useRef as F, useCallback as P } from "react";
|
|
2
2
|
import j from "@wix/editor-react-components/AnimatedIcon";
|
|
3
3
|
import g from "classnames";
|
|
4
|
-
import { bh as b, bb as q, ag as A, b as R, af as k, ab as y, aa as M, ae as U } from "./form-
|
|
4
|
+
import { bh as b, bb as q, ag as A, b as R, af as k, ab as y, aa as M, ae as U } from "./form-B2wZnWX9.js";
|
|
5
5
|
import { ProgressBar as D, Button as N } from "react-aria-components";
|
|
6
6
|
import { f as m } from "./find-child-C60k4CxG.js";
|
|
7
|
-
import { u as f } from "./use-element-state-class-name-
|
|
7
|
+
import { u as f } from "./use-element-state-class-name-BFZzVwqe.js";
|
|
8
8
|
function W(e) {
|
|
9
9
|
const s = "calc(50% - 2px)";
|
|
10
10
|
return /* @__PURE__ */ t.createElement(D, {
|
|
@@ -2,28 +2,28 @@ import { RicosViewer as w } from "@wix/ricos/viewer";
|
|
|
2
2
|
import F from "classnames";
|
|
3
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 { bh as D, be as M, br as S, bj as U, I as ee, U as te, a3 as ne, v as oe, p as
|
|
5
|
+
import { bh as D, be as M, br as S, bj as U, I as ee, U as te, a3 as ne, v as oe, p as ae, a4 as re } from "./form-B2wZnWX9.js";
|
|
6
6
|
import { f as O, a as x } 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-
|
|
7
|
+
import { E as W, D as H } from "./field-error-headless-C-wyL0uw.js";
|
|
8
|
+
import { L as $ } from "./field-label-headless-32mvEUId.js";
|
|
9
9
|
import { F as se } from "./fieldset-headless-CD3fds9J.js";
|
|
10
10
|
import { E as le } from "./error-icon-hZxQ6DEy.js";
|
|
11
|
-
import { s as y } from "./field-rac.module-
|
|
12
|
-
import { u as ie } from "./use-element-state-class-name-
|
|
13
|
-
import { u as ce } from "./use-text-input-class-name-
|
|
11
|
+
import { s as y } from "./field-rac.module-DfEb7pBp.js";
|
|
12
|
+
import { u as ie } from "./use-element-state-class-name-BFZzVwqe.js";
|
|
13
|
+
import { u as ce } from "./use-text-input-class-name-BNX3qkmh.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
17
|
const R = "Other", de = (e, n) => {
|
|
18
|
-
const
|
|
19
|
-
return (e.find((
|
|
18
|
+
const i = n.length + 2;
|
|
19
|
+
return (e.find((l) => l.startsWith(`${n}: `)) || "").slice(i);
|
|
20
20
|
}, me = (e) => e.map((n) => n.value ?? n.label), P = ({ className: e, ...n }) => {
|
|
21
21
|
const { label: r } = n;
|
|
22
22
|
return /* @__PURE__ */ t.createElement("span", {
|
|
23
23
|
className: e
|
|
24
24
|
}, r);
|
|
25
25
|
}, q = ({ className: e }) => {
|
|
26
|
-
const { value: n, onChange: r, addOtherLabel:
|
|
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") || R, b = I(() => de(n || [], o), [
|
|
27
27
|
n,
|
|
28
28
|
o
|
|
29
29
|
]), [c, L] = z(b), f = N(r);
|
|
@@ -51,12 +51,12 @@ const R = "Other", de = (e, n) => {
|
|
|
51
51
|
}, /* @__PURE__ */ t.createElement(X, {
|
|
52
52
|
"data-hook": "tags-other-input",
|
|
53
53
|
"data-filled": c ? !0 : void 0,
|
|
54
|
-
placeholder:
|
|
55
|
-
maxLength:
|
|
54
|
+
placeholder: s,
|
|
55
|
+
maxLength: l,
|
|
56
56
|
className: e
|
|
57
57
|
}));
|
|
58
58
|
}, T = ({ children: e, className: n, ...r }) => {
|
|
59
|
-
const { value:
|
|
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({
|
|
@@ -65,19 +65,19 @@ const R = "Other", de = (e, n) => {
|
|
|
65
65
|
}, m);
|
|
66
66
|
const g = O(e, P), h = I(() => d || [], [
|
|
67
67
|
d
|
|
68
|
-
]), C = I(() =>
|
|
69
|
-
i,
|
|
70
|
-
h,
|
|
68
|
+
]), C = I(() => l ? h.find((E) => E === s || E.startsWith(`${s}: `)) || s : i, [
|
|
71
69
|
l,
|
|
72
|
-
|
|
70
|
+
h,
|
|
71
|
+
s,
|
|
72
|
+
i
|
|
73
73
|
]), _ = k((E) => {
|
|
74
74
|
const j = me(o || []), A = h.filter((Q) => j.includes(Q));
|
|
75
75
|
p(E ? [
|
|
76
76
|
...A,
|
|
77
|
-
|
|
77
|
+
s
|
|
78
78
|
] : A);
|
|
79
79
|
}, [
|
|
80
|
-
|
|
80
|
+
s,
|
|
81
81
|
p,
|
|
82
82
|
o,
|
|
83
83
|
h
|
|
@@ -85,23 +85,23 @@ const R = "Other", de = (e, n) => {
|
|
|
85
85
|
return /* @__PURE__ */ t.createElement(Y, {
|
|
86
86
|
inputRef: f,
|
|
87
87
|
value: C,
|
|
88
|
-
onChange:
|
|
88
|
+
onChange: l ? _ : void 0,
|
|
89
89
|
isDisabled: b,
|
|
90
90
|
isReadOnly: c,
|
|
91
91
|
isInvalid: L
|
|
92
92
|
}, /* @__PURE__ */ t.createElement(Z, {
|
|
93
93
|
className: n,
|
|
94
|
-
"data-hook": `tags-${
|
|
94
|
+
"data-hook": `tags-${l ? R : i}`
|
|
95
95
|
}, x(g, {
|
|
96
|
-
value:
|
|
97
|
-
label:
|
|
98
|
-
isOther:
|
|
96
|
+
value: i,
|
|
97
|
+
label: s,
|
|
98
|
+
isOther: l,
|
|
99
99
|
isFirstOption: u
|
|
100
100
|
})));
|
|
101
101
|
}, V = ({ children: e, className: n }) => {
|
|
102
|
-
const { options: r, addOther:
|
|
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") || R, d = O(e, T), p = I(() => {
|
|
103
103
|
const o = r || [];
|
|
104
|
-
return
|
|
104
|
+
return i ? [
|
|
105
105
|
...o,
|
|
106
106
|
{
|
|
107
107
|
label: m,
|
|
@@ -111,12 +111,12 @@ const R = "Other", de = (e, n) => {
|
|
|
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
118
|
className: n,
|
|
119
|
-
"data-columns":
|
|
119
|
+
"data-columns": l
|
|
120
120
|
}, p.map((o, b) => {
|
|
121
121
|
const c = o.value ?? o.label;
|
|
122
122
|
return x(d, {
|
|
@@ -128,37 +128,37 @@ const R = "Other", de = (e, n) => {
|
|
|
128
128
|
});
|
|
129
129
|
}));
|
|
130
130
|
}, G = ({ children: e, className: n }) => {
|
|
131
|
-
const { addOther: r, addOtherLabel:
|
|
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") || R, p = O(e, V), o = O(e, q), 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
137
|
className: n,
|
|
138
|
-
"data-invalid":
|
|
139
|
-
"data-readonly":
|
|
138
|
+
"data-invalid": s,
|
|
139
|
+
"data-readonly": l
|
|
140
140
|
}, p, b && o);
|
|
141
|
-
},
|
|
142
|
-
const { id: n, value: r, onChange:
|
|
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
144
|
]), g = O(e, $), h = O(e, G), C = O(e, H), _ = O(e, W);
|
|
145
|
-
return /* @__PURE__ */ t.createElement(
|
|
145
|
+
return /* @__PURE__ */ t.createElement(s, {
|
|
146
146
|
fieldId: n,
|
|
147
147
|
renderLabel: () => g,
|
|
148
148
|
renderInput: () => /* @__PURE__ */ t.createElement(se, {
|
|
149
149
|
id: b,
|
|
150
150
|
ariaLabelledBy: c,
|
|
151
151
|
ariaDescribedBy: L,
|
|
152
|
-
required:
|
|
152
|
+
required: l,
|
|
153
153
|
onBlur: p,
|
|
154
154
|
onFocus: o
|
|
155
155
|
}, /* @__PURE__ */ t.createElement(J, {
|
|
156
156
|
"aria-labelledby": c,
|
|
157
157
|
value: f,
|
|
158
|
-
onChange:
|
|
158
|
+
onChange: i,
|
|
159
159
|
isDisabled: u,
|
|
160
160
|
isReadOnly: m,
|
|
161
|
-
isRequired:
|
|
161
|
+
isRequired: l,
|
|
162
162
|
isInvalid: d
|
|
163
163
|
}, h)),
|
|
164
164
|
renderDescription: () => /* @__PURE__ */ t.createElement(t.Fragment, null, _, C)
|
|
@@ -166,13 +166,13 @@ const R = "Other", de = (e, n) => {
|
|
|
166
166
|
};
|
|
167
167
|
V.Option = T;
|
|
168
168
|
T.Label = P;
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
const pe = "
|
|
169
|
+
a.Label = $;
|
|
170
|
+
a.Control = G;
|
|
171
|
+
a.Options = V;
|
|
172
|
+
a.OtherInput = q;
|
|
173
|
+
a.Description = H;
|
|
174
|
+
a.Error = W;
|
|
175
|
+
const pe = "_control_t6hu2_1", he = "_options_t6hu2_7", Ee = "_option_t6hu2_7", be = "_optionHover_t6hu2_74", Oe = "_optionSelected_t6hu2_74", v = {
|
|
176
176
|
control: pe,
|
|
177
177
|
options: he,
|
|
178
178
|
option: Ee,
|
|
@@ -187,28 +187,25 @@ const pe = "_control_1srl3_1", he = "_options_1srl3_7", Ee = "_option_1srl3_7",
|
|
|
187
187
|
hover: v.optionHover
|
|
188
188
|
}, Ne = () => {
|
|
189
189
|
const e = ie({
|
|
190
|
-
globalClasses:
|
|
190
|
+
globalClasses: re,
|
|
191
191
|
moduleClasses: Ie
|
|
192
192
|
}), n = ce();
|
|
193
|
-
return /* @__PURE__ */ t.createElement(
|
|
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: v.control
|
|
199
|
-
}, /* @__PURE__ */ t.createElement(
|
|
199
|
+
}, /* @__PURE__ */ t.createElement(a.Options, {
|
|
200
200
|
className: F(ne, v.options)
|
|
201
|
-
}, /* @__PURE__ */ t.createElement(
|
|
202
|
-
className:
|
|
203
|
-
|
|
204
|
-
isHovered: a
|
|
205
|
-
})
|
|
206
|
-
}, /* @__PURE__ */ t.createElement(s.Options.Option.Label, null))), /* @__PURE__ */ t.createElement(s.OtherInput, {
|
|
201
|
+
}, /* @__PURE__ */ t.createElement(a.Options.Option, {
|
|
202
|
+
className: e
|
|
203
|
+
}, /* @__PURE__ */ t.createElement(a.Options.Option.Label, null))), /* @__PURE__ */ t.createElement(a.OtherInput, {
|
|
207
204
|
className: n
|
|
208
|
-
})), /* @__PURE__ */ t.createElement(
|
|
205
|
+
})), /* @__PURE__ */ t.createElement(a.Error, {
|
|
209
206
|
className: F(oe, y.error)
|
|
210
|
-
}, /* @__PURE__ */ t.createElement(le, null), /* @__PURE__ */ t.createElement(
|
|
211
|
-
className: F(
|
|
207
|
+
}, /* @__PURE__ */ t.createElement(le, null), /* @__PURE__ */ t.createElement(a.Error.Text, null)), /* @__PURE__ */ t.createElement(a.Description, {
|
|
208
|
+
className: F(ae, y.description)
|
|
212
209
|
}, fe));
|
|
213
210
|
};
|
|
214
211
|
export {
|
|
@@ -2,13 +2,13 @@ import { RicosViewer as N } from "@wix/ricos/viewer";
|
|
|
2
2
|
import o from "classnames";
|
|
3
3
|
import r, { useCallback as T, useRef as O } from "react";
|
|
4
4
|
import { TextField as S, TextArea as y } from "react-aria-components";
|
|
5
|
-
import { bh as p, be as d, bj as x, I as h, U as g, v, p as M } from "./form-
|
|
5
|
+
import { bh as p, be as d, bj as x, I as h, U as g, v, p as M } from "./form-B2wZnWX9.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-C-wyL0uw.js";
|
|
8
|
+
import { L as k } from "./field-label-headless-32mvEUId.js";
|
|
9
9
|
import { E as P } from "./error-icon-hZxQ6DEy.js";
|
|
10
|
-
import { s as c } from "./field-rac.module-
|
|
11
|
-
import { u as U } from "./use-text-input-class-name-
|
|
10
|
+
import { s as c } from "./field-rac.module-DfEb7pBp.js";
|
|
11
|
+
import { u as U } from "./use-text-input-class-name-BNX3qkmh.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: F } = d(), L = T((A) => {
|
|
14
14
|
s(A);
|
package/dist/component/{text-input-field-rac-CSHvUtRG.js → text-input-field-rac-C9gyRhcK.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-BdkaD-re.js";
|
|
5
5
|
import { E as o } from "./error-icon-hZxQ6DEy.js";
|
|
6
|
-
import { s as a } from "./field-rac.module-
|
|
7
|
-
import { I as n, U as c, v as E, p as i } from "./form-
|
|
8
|
-
import { u as p } from "./use-text-input-class-name-
|
|
6
|
+
import { s as a } from "./field-rac.module-DfEb7pBp.js";
|
|
7
|
+
import { I as n, U as c, v as E, p as i } from "./form-B2wZnWX9.js";
|
|
8
|
+
import { u as p } from "./use-text-input-class-name-BNX3qkmh.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 L } from "react";
|
|
2
2
|
import { TextField as R, Input as h } from "react-aria-components";
|
|
3
|
-
import { bh as d, be as c, bj as v } from "./form-
|
|
3
|
+
import { bh as d, be as c, bj as v } from "./form-B2wZnWX9.js";
|
|
4
4
|
import { f as s } from "./find-child-C60k4CxG.js";
|
|
5
|
-
import { D as T, E as g } from "./field-error-headless-
|
|
6
|
-
import { L as x } from "./field-label-headless-
|
|
5
|
+
import { D as T, E as g } from "./field-error-headless-C-wyL0uw.js";
|
|
6
|
+
import { L as x } from "./field-label-headless-32mvEUId.js";
|
|
7
7
|
const e = ({ children: r }) => {
|
|
8
8
|
const { id: a, value: i, onChange: l, disabled: u, readOnly: n, required: o, hasError: p, onBlur: m, onFocus: b, FieldLayout: f } = d(), { labelId: E } = c(), I = s(r, e.Label), F = s(r, e.Input), y = s(r, e.Description), D = s(r, e.Error);
|
|
9
9
|
return /* @__PURE__ */ t.createElement(f, {
|
|
@@ -3,14 +3,14 @@ import { RicosViewer as v } from "@wix/ricos/viewer";
|
|
|
3
3
|
import m from "classnames";
|
|
4
4
|
import { parseTime as x } from "@internationalized/date";
|
|
5
5
|
import { TimeField as q, DateInput as z, DateSegment as _, TimeFieldStateContext as B } from "react-aria-components";
|
|
6
|
-
import { bh as p, be as U, br as S, bj as w, I as Q, U as G, v as J, p as K } from "./form-
|
|
6
|
+
import { bh as p, be as U, br as S, bj as w, I as Q, U as G, v as J, p as K } from "./form-B2wZnWX9.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-C-wyL0uw.js";
|
|
9
|
+
import { L as Y } from "./field-label-headless-32mvEUId.js";
|
|
10
10
|
import { E as Z } from "./error-icon-hZxQ6DEy.js";
|
|
11
11
|
import { H as T } from "./custom-focus-class-_483Pkwp.js";
|
|
12
|
-
import { s as f } from "./field-rac.module-
|
|
13
|
-
import { u as $ } from "./use-text-input-class-name-
|
|
12
|
+
import { s as f } from "./field-rac.module-DfEb7pBp.js";
|
|
13
|
+
import { u as $ } from "./use-text-input-class-name-BNX3qkmh.js";
|
|
14
14
|
const r = ({ children: t }) => {
|
|
15
15
|
const { id: n, value: l, onChange: a, disabled: i, readOnly: o, required: c, onBlur: s, onFocus: E, use24HourFormat: b, FieldLayout: C, hasError: I } = p(), { inputId: g, ariaDescribedBy: D, labelId: L } = U(), R = H((M) => {
|
|
16
16
|
const k = 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 S, useRef as O } from "react";
|
|
4
4
|
import { TextField as y, Input as A } from "react-aria-components";
|
|
5
|
-
import { bh as d, be as E, bj as v, I as B, U as T, v as g, p as k } from "./form-
|
|
5
|
+
import { bh as d, be as E, bj as v, I as B, U as T, v as g, p as k } from "./form-B2wZnWX9.js";
|
|
6
6
|
import { f as c } from "./find-child-C60k4CxG.js";
|
|
7
|
-
import { D as M, E as P } from "./field-error-headless-
|
|
8
|
-
import { L as U } from "./field-label-headless-
|
|
7
|
+
import { D as M, E as P } from "./field-error-headless-C-wyL0uw.js";
|
|
8
|
+
import { L as U } from "./field-label-headless-32mvEUId.js";
|
|
9
9
|
import { u as q } from "./use-invoke-callback-UH73A_J3.js";
|
|
10
10
|
import { E as x } from "./error-icon-hZxQ6DEy.js";
|
|
11
|
-
import { s as u } from "./field-rac.module-
|
|
12
|
-
import { u as w } from "./use-text-input-class-name-
|
|
11
|
+
import { s as u } from "./field-rac.module-DfEb7pBp.js";
|
|
12
|
+
import { u as w } from "./use-text-input-class-name-BNX3qkmh.js";
|
|
13
13
|
const V = (t) => t ? `https://${String(t).replace(/^https?:\/\//, "")}` : "", e = ({ children: t }) => {
|
|
14
14
|
const { id: o, value: s, onChange: n, disabled: m, readOnly: a, required: l, hasError: I, onBlur: b, onFocus: f, FieldLayout: R } = d(), { labelId: F } = E(), p = q(b), L = c(t, e.Label), D = c(t, e.Input), C = c(t, e.Description), _ = c(t, e.Error), h = S(() => {
|
|
15
15
|
n(V(s)), p();
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import d, { useContext as _, useRef as D, useState as m, Children as L, useLayoutEffect as p, useMemo as M } from "react";
|
|
2
2
|
import { CollectionRendererContext as g, DefaultCollectionRenderer as E, ListBox as N } from "react-aria-components";
|
|
3
3
|
import T from "classnames";
|
|
4
|
-
import { s as h } from "./field-rac.module-
|
|
5
|
-
import { s as H } from "./form-
|
|
6
|
-
import { u as I } from "./use-element-state-class-name-
|
|
4
|
+
import { s as h } from "./field-rac.module-DfEb7pBp.js";
|
|
5
|
+
import { s as H } from "./form-B2wZnWX9.js";
|
|
6
|
+
import { u as I } from "./use-element-state-class-name-BFZzVwqe.js";
|
|
7
7
|
const R = 1 / 0, B = {
|
|
8
8
|
position: "absolute",
|
|
9
9
|
width: 0,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useContext as T, useMemo as a } from "react";
|
|
2
|
-
import { bb as p, an as O, b9 as _, F as s, t as i } from "./form-
|
|
3
|
-
import { u } from "./use-hoverable-input-class-name-
|
|
2
|
+
import { bb as p, an as O, b9 as _, F as s, t as i } from "./form-B2wZnWX9.js";
|
|
3
|
+
import { u } from "./use-hoverable-input-class-name-CzZmczhf.js";
|
|
4
4
|
const I = [
|
|
5
5
|
s.DROPDOWN,
|
|
6
6
|
s.DEXT_DROPDOWN,
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import i from "classnames";
|
|
2
|
+
import { ba as s, aJ as v } from "./form-B2wZnWX9.js";
|
|
3
|
+
const x = ({ globalClasses: e, moduleClasses: r }) => {
|
|
4
|
+
var d;
|
|
5
|
+
const c = ((d = s(...v(e))) == null ? void 0 : d.split(/\s+/)) ?? [], o = [
|
|
6
|
+
e.selected,
|
|
7
|
+
e.hover
|
|
8
|
+
], h = !!e.selected && c.includes(e.selected), u = c.includes(e.hover);
|
|
9
|
+
return ({ isSelected: n, isHovered: N, isFocused: p, isFocusWithin: E, isInteractive: t = !0 }) => {
|
|
10
|
+
const m = N || !!p || !!E;
|
|
11
|
+
return i(e.base, r.base, t ? c : c.filter((f) => !o.includes(f)), {
|
|
12
|
+
[e.hover]: t && m,
|
|
13
|
+
[r.hover]: t && (m || u)
|
|
14
|
+
}, e.selected && {
|
|
15
|
+
[e.selected]: t && n
|
|
16
|
+
}, r.selected && {
|
|
17
|
+
[r.selected]: t && (n || h)
|
|
18
|
+
});
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
export {
|
|
22
|
+
x as u
|
|
23
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { bh as n } from "./form-B2wZnWX9.js";
|
|
2
|
+
import { s as e } from "./field-rac.module-DfEb7pBp.js";
|
|
3
|
+
import { u } from "./use-element-state-class-name-BFZzVwqe.js";
|
|
4
|
+
const b = (s, a) => {
|
|
5
|
+
const { disabled: t, readOnly: o } = n(), r = u({
|
|
6
|
+
globalClasses: s,
|
|
7
|
+
moduleClasses: {
|
|
8
|
+
base: [
|
|
9
|
+
e.input,
|
|
10
|
+
...a
|
|
11
|
+
].join(" "),
|
|
12
|
+
hover: e.inputHover
|
|
13
|
+
}
|
|
14
|
+
});
|
|
15
|
+
return ({ isHovered: l, isFocused: i, isFocusWithin: m }) => r({
|
|
16
|
+
isSelected: !1,
|
|
17
|
+
isHovered: l,
|
|
18
|
+
isFocused: i,
|
|
19
|
+
isFocusWithin: m,
|
|
20
|
+
isInteractive: !t && !o
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
export {
|
|
24
|
+
b as u
|
|
25
|
+
};
|
package/dist/component/{use-service-options-base-q0JTA7UI.js → use-service-options-base-DOCVW9ax.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 { bg as v } from "./form-
|
|
2
|
+
import { bg as v } from "./form-B2wZnWX9.js";
|
|
3
3
|
const k = (I) => {
|
|
4
4
|
const { fieldType: L, isEditor: t = !1, postProcessOptions: i, customFetchLogic: a, onInitialDataLoaded: n } = I, [O, g] = o(!1), [h, 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.134.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": "252c4549b97ab1e357978a947a98841c846443de071d36a931c2b0cf"
|
|
160
160
|
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
const o = "_label_u58ay_1", e = "_requiredMark_u58ay_11", t = "_input_u58ay_16", n = "_inputGroup_u58ay_17", c = "_inputHover_u58ay_68", _ = "_innerInput_u58ay_129", r = "_dropdownTrigger_u58ay_179", p = "_dropdownIcon_u58ay_189", u = "_dropdownPopover_u58ay_208", s = "_selectPopover_u58ay_214", i = "_selectOption_u58ay_241", d = "_selectOptionHover_u58ay_264", a = "_selectOptionSelected_u58ay_268", l = "_selectOptionWithoutFocusRing_u58ay_272", y = "_description_u58ay_278", h = "_error_u58ay_294", b = "_checkbox_u58ay_313", k = "_checkboxInput_u58ay_336", v = "_checkboxInputSelected_u58ay_375", I = "_checkboxInputHover_u58ay_379", x = {
|
|
2
|
-
label: o,
|
|
3
|
-
requiredMark: e,
|
|
4
|
-
input: t,
|
|
5
|
-
inputGroup: n,
|
|
6
|
-
inputHover: c,
|
|
7
|
-
innerInput: _,
|
|
8
|
-
dropdownTrigger: r,
|
|
9
|
-
dropdownIcon: p,
|
|
10
|
-
dropdownPopover: u,
|
|
11
|
-
selectPopover: s,
|
|
12
|
-
selectOption: i,
|
|
13
|
-
selectOptionHover: d,
|
|
14
|
-
selectOptionSelected: a,
|
|
15
|
-
selectOptionWithoutFocusRing: l,
|
|
16
|
-
description: y,
|
|
17
|
-
error: h,
|
|
18
|
-
checkbox: b,
|
|
19
|
-
checkboxInput: k,
|
|
20
|
-
checkboxInputSelected: v,
|
|
21
|
-
checkboxInputHover: I
|
|
22
|
-
};
|
|
23
|
-
export {
|
|
24
|
-
x as s
|
|
25
|
-
};
|