@wix/form-elements 1.164.0 → 1.166.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-Cskf9hxi.js → appointment-rac-BXpWILhi.js} +4 -4
- package/dist/component/{bookings-address-rac-C18tuPai.js → bookings-address-rac-Cf--TgsR.js} +1 -1
- package/dist/component/{bookings-email-rac-C2GL3cJg.js → bookings-email-rac-BtB8owOl.js} +1 -1
- package/dist/component/{bookings-first-name-rac-IEklnchg.js → bookings-first-name-rac-CBFDjB_k.js} +1 -1
- package/dist/component/{bookings-header-rac-iwcrj5Kj.js → bookings-header-rac-CrJORcuL.js} +1 -1
- package/dist/component/{bookings-last-name-rac-CXZfq3Rw.js → bookings-last-name-rac-erG4ldFt.js} +1 -1
- package/dist/component/{bookings-login-bar-rac-DP0MBFTm.js → bookings-login-bar-rac-Di4qLQUH.js} +1 -1
- package/dist/component/{bookings-phone-rac-uJGk_tzr.js → bookings-phone-rac-DdM48Obh.js} +1 -1
- package/dist/component/{bookings-rich-text-rac-BerRAnFy.js → bookings-rich-text-rac-Cl8zOiU1.js} +1 -1
- package/dist/component/{checkbox-field-rac-BBftIi_U.js → checkbox-field-rac-CzIDF6aj.js} +4 -4
- package/dist/component/{checkbox-group-field-headless-BiQ4coe6.js → checkbox-group-field-headless-B8tsQCwV.js} +3 -3
- package/dist/component/{checkbox-group-field-rac-moHc5Cyu.js → checkbox-group-field-rac-h02K8CPA.js} +4 -4
- package/dist/component/{checkbox-group-rac-iuPzxN7i.js → checkbox-group-rac-GfebLnuS.js} +1 -1
- package/dist/component/{checkbox-rac-BwfHAeFo.js → checkbox-rac-Dn24U4oG.js} +1 -1
- package/dist/component/{contacts-address-rac-DuyEL5YR.js → contacts-address-rac-CtVtIwOV.js} +1 -1
- package/dist/component/{contacts-birthdate-rac-Mkoplu3x.js → contacts-birthdate-rac-CK2odpbJ.js} +1 -1
- package/dist/component/{contacts-company-rac-B-3QghQg.js → contacts-company-rac-ue8vAn9A.js} +1 -1
- package/dist/component/{contacts-email-rac-CqooKQl8.js → contacts-email-rac-lleErjYl.js} +1 -1
- package/dist/component/{contacts-first-name-rac-CAOu0GIH.js → contacts-first-name-rac-D5wtz4Z1.js} +1 -1
- package/dist/component/{contacts-last-name-rac-Cd-wCTC3.js → contacts-last-name-rac-Cj9GKWBY.js} +1 -1
- package/dist/component/{contacts-phone-rac-OGE6eaJc.js → contacts-phone-rac-BP6unckw.js} +1 -1
- package/dist/component/{contacts-position-rac-eSsV63RC.js → contacts-position-rac-XjUdZglr.js} +1 -1
- package/dist/component/{contacts-subscribe-rac-19d4uPR-.js → contacts-subscribe-rac-Dnpbgw5C.js} +1 -1
- package/dist/component/{contacts-tax-id-rac-TtyrAftZ.js → contacts-tax-id-rac-pNFMOZl6.js} +1 -1
- package/dist/component/{date-availability-CudIaav_.js → date-availability-BRA7k6ep.js} +1 -1
- package/dist/component/{date-input-field-rac-DzMiQLxS.js → date-input-field-rac-B15XH-D_.js} +6 -6
- package/dist/component/{date-input-rac-BWfmwcmK.js → date-input-rac-B7XvsFeB.js} +1 -1
- package/dist/component/{date-picker-field-rac-w4Wf-m0I.js → date-picker-field-rac-BNgKcgVi.js} +6 -6
- package/dist/component/{date-picker-rac-Bejo7tOm.js → date-picker-rac-P54cHP86.js} +1 -1
- package/dist/component/{date-time-input-field-rac-D6JPrbGb.js → date-time-input-field-rac-Dt-jUznP.js} +6 -6
- package/dist/component/{date-time-input-rac-CAK5NgC4.js → date-time-input-rac-DHmOLCvg.js} +1 -1
- package/dist/component/{dext-checkbox-group-rac-BqoHMQwI.js → dext-checkbox-group-rac-Bo2ZRcJc.js} +2 -2
- package/dist/component/{dext-checkbox-rac-BEis8bxo.js → dext-checkbox-rac-BdA2i9PR.js} +1 -1
- package/dist/component/{dext-date-picker-rac-DDQTy3BG.js → dext-date-picker-rac-BME9ZDFy.js} +1 -1
- package/dist/component/{dext-date-time-input-rac-Dp3UEXEu.js → dext-date-time-input-rac-owEU8r5-.js} +1 -1
- package/dist/component/{dext-dropdown-rac-DisXIXNb.js → dext-dropdown-rac-BAeN43fo.js} +1 -1
- package/dist/component/{dext-email-rac-CBv4umUC.js → dext-email-rac-D7HBfCis.js} +1 -1
- package/dist/component/{dext-number-input-rac-0UNC_1Ac.js → dext-number-input-rac-DEB2ji5S.js} +1 -1
- package/dist/component/{dext-phone-rac-CQVzz499.js → dext-phone-rac-TOfFCmhD.js} +1 -1
- package/dist/component/{dext-radio-group-rac-3lhx-xxX.js → dext-radio-group-rac-DGsQLres.js} +2 -2
- package/dist/component/{dext-rating-input-rac-2fwxV3iY.js → dext-rating-input-rac-CFcRQeE7.js} +1 -1
- package/dist/component/{dext-tags-rac-DCL78ClS.js → dext-tags-rac-CGsaKVfb.js} +2 -2
- package/dist/component/{dext-text-area-rac-WTCWYySB.js → dext-text-area-rac-BqbLXOdt.js} +1 -1
- package/dist/component/{dext-text-input-rac-DMCzSYAI.js → dext-text-input-rac-CpXfQV53.js} +1 -1
- package/dist/component/{dext-url-input-rac-Bzvt5zTa.js → dext-url-input-rac-Bbm3_OG9.js} +1 -1
- package/dist/component/{donation-rac-B3YHu0bl.js → donation-rac-DvBAOz6H.js} +5 -5
- package/dist/component/{dropdown-field-rac-y4GPpf0W.js → dropdown-field-rac-BW0UDoBO.js} +3 -3
- package/dist/component/{dropdown-rac-Dj7OnxJL.js → dropdown-rac-B6ZD6Qgb.js} +1 -1
- package/dist/component/{ecom-address-rac-Bnc60jDw.js → ecom-address-rac-Dnv9Yswd.js} +1 -1
- package/dist/component/{ecom-subscription-checkbox-rac-CesTpjav.js → ecom-subscription-checkbox-rac-BVqvUwn4.js} +2 -2
- package/dist/component/{email-input-field-rac-BT2FrAEM.js → email-input-field-rac-CuaMcfZR.js} +3 -3
- package/dist/component/{events-repeater-rac-CA2yjEEk.js → events-repeater-rac-CNsh8NRh.js} +4 -4
- package/dist/component/{events-rsvp-rac-wVpVt7-p.js → events-rsvp-rac-D4hSrIsE.js} +3 -3
- package/dist/component/{field-error-headless-CX95bMbk.js → field-error-headless-NGaTm3dF.js} +1 -1
- package/dist/component/{field-label-headless-niuFY6Mw.js → field-label-headless-Bx1UjEcp.js} +1 -1
- package/dist/component/{file-upload-rac-ByO8l8lE.js → file-upload-rac-oOnemmUg.js} +4 -4
- package/dist/component/{fixed-payment-rac-BNDAdNeQ.js → fixed-payment-rac-C9YkIvQO.js} +3 -3
- package/dist/component/{form-CCQN_rPn.js → form-sH9m0ReT.js} +69 -69
- package/dist/component/form.css +1 -1
- package/dist/component/form.js +1 -1
- package/dist/component/{header-field-rac-C1RySfYy.js → header-field-rac-N5Oclne_.js} +2 -2
- package/dist/component/{header-rac-BaFPV0vy.js → header-rac-CTmSJdoY.js} +1 -1
- package/dist/component/{image-choice-rac-BShUj92P.js → image-choice-rac-BYZ61yof.js} +4 -4
- package/dist/component/{index-DHLfweXD.js → index-B56GTN_5.js} +4 -4
- package/dist/component/{index-0_YjLphg.js → index-SHZx7XzS.js} +2 -2
- package/dist/component/{isObjectLike-D7tbAd6O.js → isObjectLike-BFpR7Q-o.js} +1 -1
- package/dist/component/{multiline-address-field-rac-CFJKE5vA.js → multiline-address-field-rac-DvMyN2gF.js} +7 -7
- package/dist/component/{multiline-address-rac-BlzCkwEH.js → multiline-address-rac-Cfv0QzzV.js} +1 -1
- package/dist/component/{number-input-field-rac-XqxdqTRV.js → number-input-field-rac-CWQw7p2k.js} +4 -4
- package/dist/component/{number-input-rac-CQTg0QSm.js → number-input-rac-DJ2Nh9Vm.js} +1 -1
- package/dist/component/{password-rac-DPE-U2xs.js → password-rac-ayoa5FQV.js} +4 -4
- package/dist/component/{payment-input-rac-oOh04431.js → payment-input-rac-CBjP_xjz.js} +4 -4
- package/dist/component/{phone-input-field-rac-DW2vQhjC.js → phone-input-field-rac-BWOEiUK7.js} +6 -6
- package/dist/component/{phone-rac-BB9B-Hpl.js → phone-rac-Dp7FouV3.js} +1 -1
- package/dist/component/{product-list-rac-K53VvPJV.js → product-list-rac-D_EoPXl-.js} +4 -4
- package/dist/component/{quiz-radio-group-rac-gikcMV2I.js → quiz-radio-group-rac-RWM0riuU.js} +1 -1
- package/dist/component/{radio-button-module-classes-CY883yGO.js → radio-button-module-classes-nK-xhmxh.js} +3 -3
- package/dist/component/{radio-group-field-rac-BOEWcfT9.js → radio-group-field-rac-Cc-pvwZn.js} +4 -4
- package/dist/component/{radio-group-rac-gKhmLMm3.js → radio-group-rac-xvesuLSn.js} +1 -1
- package/dist/component/{rating-input-field-rac-83FXIVpy.js → rating-input-field-rac-BgMRUXQy.js} +4 -4
- package/dist/component/{rating-input-rac-XDwakrtR.js → rating-input-rac-CeZtJR2S.js} +1 -1
- package/dist/component/{rich-content-rac.module-Bdx8hK3J.js → rich-content-rac.module-Cv7PIbmM.js} +1 -1
- package/dist/component/{rich-text-field-rac-ksEKBaYG.js → rich-text-field-rac-CmbNBe2u.js} +2 -2
- package/dist/component/{rich-text-rac-XEFBeQrz.js → rich-text-rac-9hwPCQXl.js} +1 -1
- package/dist/component/{service-dropdown-rac-CjFiqV1n.js → service-dropdown-rac-2Wjgmo75.js} +4 -4
- package/dist/component/{services-multi-choice-rac-DNut4K3I.js → services-multi-choice-rac-cZ7elBhc.js} +5 -5
- package/dist/component/{signature-rac-BhWPZpwu.js → signature-rac-BfE2328G.js} +4 -4
- package/dist/component/{submit-button-rac-CWmz_JCl.js → submit-button-rac-oYO7pska.js} +38 -38
- package/dist/component/{tags-field-rac-D9P1jVrz.js → tags-field-rac-B-_LzCFU.js} +5 -5
- package/dist/component/{tags-rac-0zEd-xYa.js → tags-rac-D5bRM462.js} +1 -1
- package/dist/component/{text-area-field-rac-D_55oi2b.js → text-area-field-rac-fwtICvjX.js} +4 -4
- package/dist/component/{text-area-rac-CpkFyXCH.js → text-area-rac-C4EkhfB5.js} +1 -1
- package/dist/component/{text-input-field-rac-b7RXb4Ob.js → text-input-field-rac-CxZYUtxX.js} +3 -3
- package/dist/component/{text-input-headless-b1TEpdit.js → text-input-headless-DK5wBGBb.js} +3 -3
- package/dist/component/{text-input-rac-CoVcg1S0.js → text-input-rac-FS49SxCK.js} +1 -1
- package/dist/component/{time-input-rac-DE7OyzgQ.js → time-input-rac-CDUVS7kp.js} +4 -4
- package/dist/component/{url-input-field-rac-_yxWlb3a.js → url-input-field-rac-B2ypvh7T.js} +4 -4
- package/dist/component/{url-input-rac-wguMUqug.js → url-input-rac-DbJx2T1R.js} +1 -1
- package/dist/component/{use-dropdown-option-class-name-DdQ0sFRF.js → use-dropdown-option-class-name-0ZlT4g7h.js} +2 -2
- package/dist/component/{use-dropdown-trigger-class-name-hB8KYv-I.js → use-dropdown-trigger-class-name-PItHRYWo.js} +6 -6
- package/dist/component/{use-element-state-class-name-C2tQgxUX.js → use-element-state-class-name-DCAoZgWT.js} +1 -1
- package/dist/component/{use-hoverable-input-class-name-C8iuzofb.js → use-hoverable-input-class-name-BvP8fzTQ.js} +2 -2
- package/dist/component/{use-is-forced-open-dropdown-DkIrJPsK.js → use-is-forced-open-dropdown-B-eR29aQ.js} +1 -1
- package/dist/component/{use-service-options-base-B-xAR-tx.js → use-service-options-base-BF_peAsS.js} +1 -1
- package/dist/component/use-text-input-class-name-CQf8yep5.js +6 -0
- package/package.json +2 -2
- package/dist/component/use-text-input-class-name-CK4rZeSM.js +0 -6
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import t, { useRef as
|
|
2
|
-
import
|
|
1
|
+
import t, { useRef as X, useCallback as k } from "react";
|
|
2
|
+
import q from "@wix/editor-react-components/AnimatedIcon";
|
|
3
3
|
import p from "classnames";
|
|
4
|
-
import { by as B, bs as
|
|
4
|
+
import { by as B, bs as $, as as j, ar as z, ap as G, ao as J, ax as K, aw as Q, aq as Y, b as Z, an as tt, av as et } from "./form-sH9m0ReT.js";
|
|
5
5
|
import { ProgressBar as nt, Button as w } from "react-aria-components";
|
|
6
|
-
import { f as
|
|
7
|
-
import { u as x } from "./use-element-state-class-name-
|
|
6
|
+
import { f as c } from "./find-child-C60k4CxG.js";
|
|
7
|
+
import { u as x } from "./use-element-state-class-name-DCAoZgWT.js";
|
|
8
8
|
function ot(e) {
|
|
9
9
|
const s = "calc(50% - 2px)";
|
|
10
10
|
return /* @__PURE__ */ t.createElement(nt, {
|
|
@@ -38,7 +38,7 @@ function ot(e) {
|
|
|
38
38
|
})))));
|
|
39
39
|
}
|
|
40
40
|
const r = ({ children: e }) => {
|
|
41
|
-
const { id: o, FieldLayout: s } = B(), n =
|
|
41
|
+
const { id: o, FieldLayout: s } = B(), n = c(e, r.SubmitButton);
|
|
42
42
|
return /* @__PURE__ */ t.createElement(s, {
|
|
43
43
|
fieldId: o,
|
|
44
44
|
renderLabel: () => null,
|
|
@@ -46,60 +46,60 @@ const r = ({ children: e }) => {
|
|
|
46
46
|
renderDescription: () => null
|
|
47
47
|
});
|
|
48
48
|
}, g = ({ className: e, children: o }) => {
|
|
49
|
-
const s =
|
|
49
|
+
const s = c(o, S), n = c(o, E), a = c(o, b);
|
|
50
50
|
return /* @__PURE__ */ t.createElement("div", {
|
|
51
51
|
className: e
|
|
52
52
|
}, s, n, a);
|
|
53
53
|
}, S = ({ className: e, onHoverStart: o, onHoverEnd: s, children: n }) => {
|
|
54
|
-
const { showPreviousButton: a, onPreviousClick:
|
|
54
|
+
const { showPreviousButton: a, onPreviousClick: i, previousText: v } = B();
|
|
55
55
|
if (!a)
|
|
56
56
|
return null;
|
|
57
|
-
const
|
|
57
|
+
const l = c(n, S.Label), m = c(n, S.Icon);
|
|
58
58
|
return /* @__PURE__ */ t.createElement(w, {
|
|
59
59
|
className: e,
|
|
60
60
|
"aria-label": v,
|
|
61
|
-
onPress:
|
|
61
|
+
onPress: i,
|
|
62
62
|
onHoverStart: o,
|
|
63
63
|
onHoverEnd: s
|
|
64
|
-
}, m,
|
|
64
|
+
}, m, l ?? /* @__PURE__ */ t.createElement(W, null));
|
|
65
65
|
}, E = ({ className: e, onHoverStart: o, onHoverEnd: s, children: n }) => {
|
|
66
|
-
const { showNextButton: a, onNextClick:
|
|
66
|
+
const { showNextButton: a, onNextClick: i, nextText: v } = B();
|
|
67
67
|
if (!a)
|
|
68
68
|
return null;
|
|
69
|
-
const
|
|
69
|
+
const l = c(n, E.Label), m = c(n, E.Icon);
|
|
70
70
|
return /* @__PURE__ */ t.createElement(w, {
|
|
71
71
|
className: e,
|
|
72
72
|
"aria-label": v,
|
|
73
|
-
onPress:
|
|
73
|
+
onPress: i,
|
|
74
74
|
onHoverStart: o,
|
|
75
75
|
onHoverEnd: s
|
|
76
|
-
},
|
|
76
|
+
}, l ?? /* @__PURE__ */ t.createElement(V, null), m);
|
|
77
77
|
}, b = ({ className: e, onHoverStart: o, onHoverEnd: s, children: n }) => {
|
|
78
|
-
const { showSubmitButton: a, onSubmitClick:
|
|
78
|
+
const { showSubmitButton: a, onSubmitClick: i, submitText: v, isDisabled: l, isInProgress: m, isSubmitting: C } = B();
|
|
79
79
|
if (!a)
|
|
80
80
|
return null;
|
|
81
|
-
const f =
|
|
81
|
+
const f = c(n, b.Label), I = c(n, b.Icon), d = c(n, b.Loader), _ = C || m;
|
|
82
82
|
return /* @__PURE__ */ t.createElement(w, {
|
|
83
83
|
className: e,
|
|
84
84
|
"aria-label": v,
|
|
85
|
-
onPress: _ ? void 0 :
|
|
85
|
+
onPress: _ ? void 0 : i,
|
|
86
86
|
onHoverStart: o,
|
|
87
87
|
onHoverEnd: s,
|
|
88
|
-
isDisabled:
|
|
88
|
+
isDisabled: l && !_,
|
|
89
89
|
"aria-disabled": _ || void 0,
|
|
90
90
|
"data-in-progress": m
|
|
91
|
-
}, m && d ? d : /* @__PURE__ */ t.createElement(t.Fragment, null, f ?? /* @__PURE__ */ t.createElement(
|
|
92
|
-
},
|
|
91
|
+
}, m && d ? d : /* @__PURE__ */ t.createElement(t.Fragment, null, f ?? /* @__PURE__ */ t.createElement(D, null), I));
|
|
92
|
+
}, D = ({ className: e }) => {
|
|
93
93
|
const { submitText: o } = B();
|
|
94
94
|
return /* @__PURE__ */ t.createElement("span", {
|
|
95
95
|
className: e
|
|
96
96
|
}, o);
|
|
97
|
-
},
|
|
97
|
+
}, W = ({ className: e }) => {
|
|
98
98
|
const { previousText: o } = B();
|
|
99
99
|
return /* @__PURE__ */ t.createElement("span", {
|
|
100
100
|
className: e
|
|
101
101
|
}, o);
|
|
102
|
-
},
|
|
102
|
+
}, V = ({ className: e }) => {
|
|
103
103
|
const { nextText: o } = B();
|
|
104
104
|
return /* @__PURE__ */ t.createElement("span", {
|
|
105
105
|
className: e
|
|
@@ -107,34 +107,34 @@ const r = ({ children: e }) => {
|
|
|
107
107
|
}, R = ({ children: e }) => /* @__PURE__ */ t.createElement(t.Fragment, null, e), st = ({ className: e }) => /* @__PURE__ */ t.createElement("span", {
|
|
108
108
|
className: e
|
|
109
109
|
}, /* @__PURE__ */ t.createElement(ot, null));
|
|
110
|
-
b.Label =
|
|
110
|
+
b.Label = D;
|
|
111
111
|
b.Icon = R;
|
|
112
112
|
b.Loader = st;
|
|
113
|
-
S.Label =
|
|
113
|
+
S.Label = W;
|
|
114
114
|
S.Icon = R;
|
|
115
|
-
E.Label =
|
|
115
|
+
E.Label = V;
|
|
116
116
|
E.Icon = R;
|
|
117
117
|
g.PreviousButton = S;
|
|
118
118
|
g.NextButton = E;
|
|
119
119
|
g.SubmitButton = b;
|
|
120
120
|
r.SubmitButton = g;
|
|
121
|
-
const at = "
|
|
121
|
+
const at = "_navigationContainer_16wic_1", rt = "_rowSpacing_16wic_6", ut = "_navigationButton_16wic_10", ct = "_nextButton_16wic_33", it = "_previousButton_16wic_59", lt = "_navigationButtonHover_16wic_100", mt = "_button_16wic_138", bt = "_buttonNoSteps_16wic_186", Bt = "_buttonWithSteps_16wic_190", vt = "_buttonHover_16wic_194", St = "_progress_16wic_260", u = {
|
|
122
122
|
navigationContainer: at,
|
|
123
123
|
rowSpacing: rt,
|
|
124
124
|
navigationButton: ut,
|
|
125
|
-
nextButton:
|
|
126
|
-
previousButton:
|
|
127
|
-
navigationButtonHover:
|
|
125
|
+
nextButton: ct,
|
|
126
|
+
previousButton: it,
|
|
127
|
+
navigationButtonHover: lt,
|
|
128
128
|
button: mt,
|
|
129
129
|
buttonNoSteps: bt,
|
|
130
130
|
buttonWithSteps: Bt,
|
|
131
131
|
buttonHover: vt,
|
|
132
132
|
progress: St
|
|
133
133
|
}, P = () => {
|
|
134
|
-
const e =
|
|
134
|
+
const e = X(null), o = k(() => {
|
|
135
135
|
var n;
|
|
136
136
|
return (n = e.current) == null ? void 0 : n.runAnimationForward();
|
|
137
|
-
}, []), s =
|
|
137
|
+
}, []), s = k(() => {
|
|
138
138
|
var n;
|
|
139
139
|
return (n = e.current) == null ? void 0 : n.runAnimationBackward();
|
|
140
140
|
}, []);
|
|
@@ -144,15 +144,15 @@ const at = "_navigationContainer_i93zw_1", rt = "_rowSpacing_i93zw_6", ut = "_na
|
|
|
144
144
|
onHoverEnd: s
|
|
145
145
|
};
|
|
146
146
|
}, O = ({ icon: e, iconRef: o, iconClassName: s }) => {
|
|
147
|
-
const { wix: n, className: a, ...
|
|
148
|
-
return
|
|
149
|
-
...
|
|
147
|
+
const { wix: n, className: a, ...i } = e ?? {};
|
|
148
|
+
return i.svg ? /* @__PURE__ */ t.createElement(q, {
|
|
149
|
+
...i,
|
|
150
150
|
ref: o,
|
|
151
151
|
className: p(Z, s, a)
|
|
152
152
|
}) : null;
|
|
153
153
|
}, Et = () => {
|
|
154
154
|
var A, F, h, U, M, y;
|
|
155
|
-
const { hasSteps: e, showPreviousButton: o, isDisabled: s, isInProgress: n, isSubmitting: a } = B(), v = !s && !(a || n),
|
|
155
|
+
const { hasSteps: e, showPreviousButton: o, isDisabled: s, isInProgress: n, isSubmitting: a } = B(), v = !s && !(a || n), l = $(), m = (F = (A = l.submitButton) == null ? void 0 : A.elementProps) == null ? void 0 : F.icon, C = (U = (h = l.nextButton) == null ? void 0 : h.elementProps) == null ? void 0 : U.icon, f = (y = (M = l.previousButton) == null ? void 0 : M.elementProps) == null ? void 0 : y.icon, I = x({
|
|
156
156
|
globalClasses: Y,
|
|
157
157
|
moduleClasses: {
|
|
158
158
|
base: p(u.navigationButton, u.previousButton),
|
|
@@ -187,11 +187,11 @@ const at = "_navigationContainer_i93zw_1", rt = "_rowSpacing_i93zw_6", ut = "_na
|
|
|
187
187
|
onHoverStart: T.onHoverStart,
|
|
188
188
|
onHoverEnd: T.onHoverEnd
|
|
189
189
|
}, /* @__PURE__ */ t.createElement(r.SubmitButton.PreviousButton.Label, {
|
|
190
|
-
className:
|
|
190
|
+
className: j
|
|
191
191
|
}), /* @__PURE__ */ t.createElement(r.SubmitButton.PreviousButton.Icon, null, /* @__PURE__ */ t.createElement(O, {
|
|
192
192
|
icon: f,
|
|
193
193
|
iconRef: T.iconRef,
|
|
194
|
-
iconClassName:
|
|
194
|
+
iconClassName: z
|
|
195
195
|
}))), /* @__PURE__ */ t.createElement(r.SubmitButton.NextButton, {
|
|
196
196
|
className: ({ isHovered: N }) => d({
|
|
197
197
|
isSelected: !1,
|
|
@@ -2,15 +2,15 @@ import { RicosViewer as j } from "@wix/ricos/viewer";
|
|
|
2
2
|
import F from "classnames";
|
|
3
3
|
import t, { useMemo as I, useState as w, useRef as V, useLayoutEffect as z, useCallback as k } from "react";
|
|
4
4
|
import { CheckboxGroup as B, TextField as J, Input as X, CheckboxField as Y, CheckboxButton as Z } from "react-aria-components";
|
|
5
|
-
import { by as D, bv as M, bI as S, bA as U, U as ee, aa as te, ak as oe, K as ne, G as ae, al as re } from "./form-
|
|
5
|
+
import { by as D, bv as M, bI as S, bA as U, U as ee, aa as te, ak as oe, K as ne, G as ae, al as re } from "./form-sH9m0ReT.js";
|
|
6
6
|
import { f as O, a as N } 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-NGaTm3dF.js";
|
|
8
|
+
import { L as $ } from "./field-label-headless-Bx1UjEcp.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-ts2t4WUO.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-DCAoZgWT.js";
|
|
13
|
+
import { u as ce } from "./use-text-input-class-name-CQf8yep5.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
|
})({});
|
|
@@ -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 y, TextArea as O } from "react-aria-components";
|
|
5
|
-
import { by as p, bv as d, bA as x, U as v, aa as g, K as h, G as M } from "./form-
|
|
5
|
+
import { by as p, bv as d, bA as x, U as v, aa as g, K as h, G as M } from "./form-sH9m0ReT.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-NGaTm3dF.js";
|
|
8
|
+
import { L as k } from "./field-label-headless-Bx1UjEcp.js";
|
|
9
9
|
import { E as P } from "./error-icon-hZxQ6DEy.js";
|
|
10
10
|
import { s as c } from "./field-rac.module-ts2t4WUO.js";
|
|
11
|
-
import { u as U } from "./use-text-input-class-name-
|
|
11
|
+
import { u as U } from "./use-text-input-class-name-CQf8yep5.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: F } = d(), L = S((A) => {
|
|
14
14
|
s(A);
|
package/dist/component/{text-input-field-rac-b7RXb4Ob.js → text-input-field-rac-CxZYUtxX.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-DK5wBGBb.js";
|
|
5
5
|
import { E as o } from "./error-icon-hZxQ6DEy.js";
|
|
6
6
|
import { s as a } from "./field-rac.module-ts2t4WUO.js";
|
|
7
|
-
import { U as n, aa as c, K as E, G as i } from "./form-
|
|
8
|
-
import { u as p } from "./use-text-input-class-name-
|
|
7
|
+
import { U as n, aa as c, K as E, G as i } from "./form-sH9m0ReT.js";
|
|
8
|
+
import { u as p } from "./use-text-input-class-name-CQf8yep5.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 C, Input as R } from "react-aria-components";
|
|
3
|
-
import { by as c, bv as d, bA as T } from "./form-
|
|
3
|
+
import { by as c, bv as d, bA as T } from "./form-sH9m0ReT.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-NGaTm3dF.js";
|
|
6
|
+
import { L as x } from "./field-label-headless-Bx1UjEcp.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), v = 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 U, DateInput as k, DateSegment as _, TimeFieldStateContext as w } from "react-aria-components";
|
|
6
|
-
import { by as p, bv as j, bI as T, bA as G, U as K, aa as Q, K as z, G as J } from "./form-
|
|
6
|
+
import { by as p, bv as j, bI as T, bA as G, U as K, aa as Q, K as z, G as J } from "./form-sH9m0ReT.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-NGaTm3dF.js";
|
|
9
|
+
import { L as Y } from "./field-label-headless-Bx1UjEcp.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-ts2t4WUO.js";
|
|
13
|
-
import { u as $ } from "./use-text-input-class-name-
|
|
13
|
+
import { u as $ } from "./use-text-input-class-name-CQf8yep5.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: I } = p(), { inputId: g, ariaDescribedBy: D, labelId: L } = j(), R = 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 y } from "react";
|
|
4
4
|
import { TextField as O, Input as A } from "react-aria-components";
|
|
5
|
-
import { by as d, bv as E, bA as v, U as B, aa as T, K as g, G as k } from "./form-
|
|
5
|
+
import { by as d, bv as E, bA as v, U as B, aa as T, K as g, G as k } from "./form-sH9m0ReT.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-NGaTm3dF.js";
|
|
8
|
+
import { L as U } from "./field-label-headless-Bx1UjEcp.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
11
|
import { s as u } from "./field-rac.module-ts2t4WUO.js";
|
|
12
|
-
import { u as w } from "./use-text-input-class-name-
|
|
12
|
+
import { u as w } from "./use-text-input-class-name-CQf8yep5.js";
|
|
13
13
|
const V = (t) => t ? `https://${String(t).replace(/^https?:\/\//, "")}` : "", e = ({ children: t }) => {
|
|
14
14
|
const { id: o, value: l, onChange: a, disabled: m, readOnly: n, required: s, 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), S = h(() => {
|
|
15
15
|
a(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 I from "classnames";
|
|
4
4
|
import { s as h } from "./field-rac.module-ts2t4WUO.js";
|
|
5
|
-
import { I as P } from "./form-
|
|
6
|
-
import { u as T } from "./use-element-state-class-name-
|
|
5
|
+
import { I as P } from "./form-sH9m0ReT.js";
|
|
6
|
+
import { u as T } from "./use-element-state-class-name-DCAoZgWT.js";
|
|
7
7
|
const R = 1 / 0, H = {
|
|
8
8
|
position: "absolute",
|
|
9
9
|
width: 0,
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import n, { useState as b, useCallback as g, useRef as M } from "react";
|
|
2
2
|
import { UNSAFE_PortalProvider as k } from "react-aria";
|
|
3
3
|
import { Select as q, SelectValue as G, ListBoxItem as H } from "react-aria-components";
|
|
4
|
-
import { by as E, bv as O, bA as J, J as U } from "./form-
|
|
4
|
+
import { by as E, bv as O, bA as J, J as U } from "./form-sH9m0ReT.js";
|
|
5
5
|
import { f as d, a as F } from "./find-child-C60k4CxG.js";
|
|
6
|
-
import { D as W, E as Y } from "./field-error-headless-
|
|
7
|
-
import { L as j } from "./field-label-headless-
|
|
6
|
+
import { D as W, E as Y } from "./field-error-headless-NGaTm3dF.js";
|
|
7
|
+
import { L as j } from "./field-label-headless-Bx1UjEcp.js";
|
|
8
8
|
import { E as z, S as K, N as Q } from "./non-modal-popover-D-u13tmp.js";
|
|
9
|
-
import { a as X } from "./use-is-forced-open-dropdown-
|
|
10
|
-
import { V as Z } from "./use-dropdown-option-class-name-
|
|
11
|
-
import { u as $ } from "./use-hoverable-input-class-name-
|
|
9
|
+
import { a as X } from "./use-is-forced-open-dropdown-B-eR29aQ.js";
|
|
10
|
+
import { V as Z } from "./use-dropdown-option-class-name-0ZlT4g7h.js";
|
|
11
|
+
import { u as $ } from "./use-hoverable-input-class-name-BvP8fzTQ.js";
|
|
12
12
|
const r = ({ children: e }) => {
|
|
13
13
|
const { id: l, value: a, defaultValue: o, options: u = [], readOnly: s, onChange: t, placeholder: m, disabled: i, required: v, onBlur: D, onFocus: C, FieldLayout: L, hasError: y } = E(), [I, N] = b(!1), p = X(l), [P, R] = b(null), T = a && u.some((c) => (c.value ?? c.label) === a) ? a : o || null, { labelId: h } = O(), S = g((c) => {
|
|
14
14
|
s || t(typeof c == "string" ? c : null);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import i from "classnames";
|
|
2
|
-
import { br as s, a_ as v } from "./form-
|
|
2
|
+
import { br as s, a_ as v } from "./form-sH9m0ReT.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 { by as n } from "./form-
|
|
1
|
+
import { by as n } from "./form-sH9m0ReT.js";
|
|
2
2
|
import { s as e } from "./field-rac.module-ts2t4WUO.js";
|
|
3
|
-
import { u } from "./use-element-state-class-name-
|
|
3
|
+
import { u } from "./use-element-state-class-name-DCAoZgWT.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-B-xAR-tx.js → use-service-options-base-BF_peAsS.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 { bx as v } from "./form-
|
|
2
|
+
import { bx as v } from "./form-sH9m0ReT.js";
|
|
3
3
|
const S = (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.166.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": "4eaf8bee6dd315d39c86ea6e2d8a1edf0794887d254237e81b35f859"
|
|
160
160
|
}
|