@wix/form-elements 1.225.0 → 1.227.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-DfglpMHC.js → appointment-rac-C2ClvRys.js} +4 -4
- package/dist/component/{bookings-address-rac-BsAUAgUH.js → bookings-address-rac-CPQjosbZ.js} +1 -1
- package/dist/component/{bookings-email-rac-DL0Q3omz.js → bookings-email-rac-DWvVUcBN.js} +1 -1
- package/dist/component/{bookings-first-name-rac-C3eHsd6U.js → bookings-first-name-rac-_iG2xJiA.js} +1 -1
- package/dist/component/{bookings-header-rac-YVCqWtfu.js → bookings-header-rac-BbGm_Z8W.js} +1 -1
- package/dist/component/{bookings-last-name-rac-BzBQBIMy.js → bookings-last-name-rac-77Z29aHO.js} +1 -1
- package/dist/component/{bookings-login-bar-rac-MJvhVfsH.js → bookings-login-bar-rac-DfqRpARE.js} +1 -1
- package/dist/component/{bookings-phone-rac-BTEB2Mzf.js → bookings-phone-rac-BKoU7X0X.js} +1 -1
- package/dist/component/{bookings-rich-text-rac-BopQG6gV.js → bookings-rich-text-rac-DgSN4_f0.js} +1 -1
- package/dist/component/{checkbox-field-rac-NvQt_qcN.js → checkbox-field-rac-BLJ3Xb7C.js} +4 -4
- package/dist/component/{checkbox-group-field-headless-CwLaBukh.js → checkbox-group-field-headless-BeU8DG0A.js} +3 -3
- package/dist/component/{checkbox-group-field-rac-BKQhos1K.js → checkbox-group-field-rac-ClRi6Ljp.js} +4 -4
- package/dist/component/{checkbox-group-rac-DMeC2rsZ.js → checkbox-group-rac--cM57qqw.js} +1 -1
- package/dist/component/{checkbox-rac-Dea1HbEL.js → checkbox-rac-DnslW6as.js} +1 -1
- package/dist/component/{contacts-address-rac-B64jiofc.js → contacts-address-rac-Bpq_0vvi.js} +1 -1
- package/dist/component/{contacts-birthdate-rac-CM4GjTBV.js → contacts-birthdate-rac-CB1h6kRm.js} +1 -1
- package/dist/component/{contacts-company-rac-DTf9dwuR.js → contacts-company-rac-DvYX4SLX.js} +1 -1
- package/dist/component/{contacts-email-rac-B2vhNF_y.js → contacts-email-rac-sxbgKBUR.js} +1 -1
- package/dist/component/{contacts-first-name-rac-C5ywHnnX.js → contacts-first-name-rac-C4_o2nwv.js} +1 -1
- package/dist/component/{contacts-last-name-rac-C2JbeG_J.js → contacts-last-name-rac-B3s96wWt.js} +1 -1
- package/dist/component/{contacts-phone-rac-Dm0PS175.js → contacts-phone-rac-B5NZeYaI.js} +1 -1
- package/dist/component/{contacts-position-rac-t6bWP1Yh.js → contacts-position-rac-CO4Bo4jG.js} +1 -1
- package/dist/component/{contacts-subscribe-rac-D5EWQfGj.js → contacts-subscribe-rac-CWmo3C6c.js} +1 -1
- package/dist/component/{contacts-tax-id-rac-CXqezyXg.js → contacts-tax-id-rac-pi_bJeA7.js} +1 -1
- package/dist/component/{date-availability-CtrbZvl3.js → date-availability-DL8Xboob.js} +1 -1
- package/dist/component/{date-input-field-rac-CPLAqaMS.js → date-input-field-rac-Di2pwVW7.js} +8 -8
- package/dist/component/{date-input-rac-DjQc-F8G.js → date-input-rac-C5xC7fbz.js} +1 -1
- package/dist/component/{date-picker-field-rac-pA2HwauY.js → date-picker-field-rac-DyPkuVVe.js} +8 -8
- package/dist/component/{date-picker-rac-B6M3C8dN.js → date-picker-rac-CKNlOGZG.js} +1 -1
- package/dist/component/{date-time-input-field-rac-Qz6g31Eu.js → date-time-input-field-rac-Dk15pWyb.js} +8 -8
- package/dist/component/{date-time-input-rac-D7bS3bUX.js → date-time-input-rac-oOUelldq.js} +1 -1
- package/dist/component/{dext-checkbox-group-rac-caVwDBtB.js → dext-checkbox-group-rac--jmNDOV2.js} +2 -2
- package/dist/component/{dext-checkbox-rac-CMxPnPT3.js → dext-checkbox-rac-BOjbBRrg.js} +1 -1
- package/dist/component/{dext-date-picker-rac-5WBCluMk.js → dext-date-picker-rac-CHi5TisB.js} +1 -1
- package/dist/component/{dext-date-time-input-rac-C5d1PKMu.js → dext-date-time-input-rac-CcF4ocHx.js} +1 -1
- package/dist/component/{dext-dropdown-rac-BPeVs1gI.js → dext-dropdown-rac-LLYhuGt_.js} +1 -1
- package/dist/component/{dext-email-rac-BTXfUaaY.js → dext-email-rac-CbC1crzT.js} +1 -1
- package/dist/component/{dext-number-input-rac-DJt_dDVj.js → dext-number-input-rac-3-U9Hxre.js} +1 -1
- package/dist/component/{dext-phone-rac-DDtneNPi.js → dext-phone-rac-CdMFXUNf.js} +1 -1
- package/dist/component/{dext-radio-group-rac-DzLW_As4.js → dext-radio-group-rac-Bg33r95T.js} +2 -2
- package/dist/component/{dext-rating-input-rac-0wwq1TR3.js → dext-rating-input-rac-DV8jA90b.js} +1 -1
- package/dist/component/{dext-tags-rac-Cj7nIZWu.js → dext-tags-rac-B-hpvZgE.js} +2 -2
- package/dist/component/{dext-text-area-rac-D4Ej9MYY.js → dext-text-area-rac-kBBc0Xjo.js} +1 -1
- package/dist/component/{dext-text-input-rac-DgqBl2cb.js → dext-text-input-rac-CImXblhX.js} +1 -1
- package/dist/component/{dext-url-input-rac-CH-5gGxA.js → dext-url-input-rac-J-7QABnD.js} +1 -1
- package/dist/component/{dismiss-icon-ejA47noY.js → dismiss-icon-Bw_zbdk_.js} +1 -1
- package/dist/component/{donation-rac-BwpE1YTR.js → donation-rac-CvWwng6S.js} +5 -5
- package/dist/component/{dropdown-field-rac-CeywMN1E.js → dropdown-field-rac-Dm9Qs8bh.js} +3 -3
- package/dist/component/{dropdown-rac-DiXJLvXK.js → dropdown-rac-BHqeUIje.js} +1 -1
- package/dist/component/{ecom-address-rac-MD0hbW1w.js → ecom-address-rac-NtuG7Q_T.js} +1 -1
- package/dist/component/{ecom-subscription-checkbox-rac-BssVeeXB.js → ecom-subscription-checkbox-rac-DAJnX_RJ.js} +2 -2
- package/dist/component/{email-input-field-rac-BXoueQNf.js → email-input-field-rac-ompvaCLM.js} +3 -3
- package/dist/component/{events-repeater-rac-fm6lHaJ2.js → events-repeater-rac-kHEFBH7l.js} +4 -4
- package/dist/component/{events-rsvp-rac-QV9f5chX.js → events-rsvp-rac-R4F9aw6y.js} +3 -3
- package/dist/component/{field-error-headless-BIzDViIC.js → field-error-headless-o2u5ldAp.js} +1 -1
- package/dist/component/{field-label-headless-D_ubs4wp.js → field-label-headless-DvNWYzXc.js} +1 -1
- package/dist/component/{file-upload-rac-Csmt20hK.js → file-upload-rac-DlE4dp0D.js} +4 -4
- package/dist/component/{fixed-payment-rac-BXr53Q8H.js → fixed-payment-rac-BxsFHhXP.js} +3 -3
- package/dist/component/{form-Dnq7LxSl.js → form-Co7SkMqj.js} +69 -69
- package/dist/component/form.css +1 -1
- package/dist/component/form.js +1 -1
- package/dist/component/{header-field-rac-9750XSxD.js → header-field-rac-D56CKAtM.js} +2 -2
- package/dist/component/{header-rac-DGSENeOk.js → header-rac-DdYSBcq1.js} +1 -1
- package/dist/component/{image-choice-rac-HX8H18Z3.js → image-choice-rac-g23R5qLL.js} +4 -4
- package/dist/component/{index-pgW3uSoZ.js → index-BmOwghzn.js} +2 -2
- package/dist/component/{index-vs-qkVQt.js → index-C0yPsVXz.js} +4 -4
- package/dist/component/{isObjectLike-DoUrU0Hj.js → isObjectLike-mlNAmhLJ.js} +1 -1
- package/dist/component/{multiline-address-field-rac-B3gKz3u_.js → multiline-address-field-rac-ApBLSWB_.js} +8 -8
- package/dist/component/{multiline-address-rac-BBign7ot.js → multiline-address-rac-tdENoXBT.js} +1 -1
- package/dist/component/{number-input-field-rac-CO6DG443.js → number-input-field-rac-CCIuPPeP.js} +4 -4
- package/dist/component/{number-input-rac-C_Ndaqs4.js → number-input-rac-DxodjaRb.js} +1 -1
- package/dist/component/{password-rac-pq-CaSkt.js → password-rac-h9U6siGg.js} +4 -4
- package/dist/component/{payment-input-rac-Dco8O86k.js → payment-input-rac-YFXgnLS6.js} +4 -4
- package/dist/component/{phone-input-field-rac-BmcADPkC.js → phone-input-field-rac-B9PUQJUP.js} +7 -7
- package/dist/component/{phone-rac-B3aFMUMq.js → phone-rac-B1Q9HXAB.js} +1 -1
- package/dist/component/{product-list-rac-Cw21coVk.js → product-list-rac-D63k_IAW.js} +4 -4
- package/dist/component/{quiz-radio-group-rac-ChkNtxix.js → quiz-radio-group-rac-Bl6DYjmg.js} +1 -1
- package/dist/component/{radio-button-module-classes-BtiG6yqb.js → radio-button-module-classes-BRHKk6XZ.js} +3 -3
- package/dist/component/{radio-group-field-rac-6SefZCE6.js → radio-group-field-rac-B8yEmx79.js} +4 -4
- package/dist/component/{radio-group-rac-BRhOFR2j.js → radio-group-rac-xX_sfxL0.js} +1 -1
- package/dist/component/{rating-input-field-rac-DaVnkb6k.js → rating-input-field-rac-_p1u5oCL.js} +4 -4
- package/dist/component/{rating-input-rac-B-2pZ61H.js → rating-input-rac-C_i6Nwdz.js} +1 -1
- package/dist/component/{rich-content-rac.module-C6LD--Ql.js → rich-content-rac.module-BlHWoitq.js} +1 -1
- package/dist/component/{rich-text-field-rac-C-rfA6pQ.js → rich-text-field-rac-EiH-NdJm.js} +2 -2
- package/dist/component/{rich-text-rac-1s5CGO8u.js → rich-text-rac-eZvghmFV.js} +1 -1
- package/dist/component/{service-dropdown-rac-Bcr83doj.js → service-dropdown-rac-bujnhWyl.js} +4 -4
- package/dist/component/{services-multi-choice-rac-C9nSuz9x.js → services-multi-choice-rac-FXrJOBdY.js} +5 -5
- package/dist/component/{signature-rac-pgob6vV_.js → signature-rac-CoVHMOpK.js} +4 -4
- package/dist/component/{submit-button-rac-CzcFB8hM.js → submit-button-rac-B8w753Be.js} +36 -36
- package/dist/component/{tags-field-rac-BBFxSNch.js → tags-field-rac-iitBlZ8l.js} +5 -5
- package/dist/component/{tags-rac-DkwugVvK.js → tags-rac-DJSUQlkc.js} +1 -1
- package/dist/component/{text-area-field-rac-DHT-fc0i.js → text-area-field-rac-CePWfCbx.js} +4 -4
- package/dist/component/{text-area-rac-cTq-i-bf.js → text-area-rac-m18L6Zwk.js} +1 -1
- package/dist/component/{text-input-field-rac-D3v-e_5R.js → text-input-field-rac-BSo_dbkm.js} +3 -3
- package/dist/component/{text-input-headless-B-DwvpWg.js → text-input-headless-D-o9wyGb.js} +3 -3
- package/dist/component/{text-input-rac-CpG9qt33.js → text-input-rac-CcGgoWaF.js} +1 -1
- package/dist/component/{time-input-rac-iL1G8Uwo.js → time-input-rac-DRIFM107.js} +6 -6
- package/dist/component/{url-input-field-rac-1P81rK_4.js → url-input-field-rac-Dpn9-sDD.js} +4 -4
- package/dist/component/{url-input-rac-D9c0BJKG.js → url-input-rac-CDSl1LX1.js} +1 -1
- package/dist/component/{use-dropdown-option-class-name-CyC7rDCE.js → use-dropdown-option-class-name-CHg44uaJ.js} +2 -2
- package/dist/component/{use-dropdown-trigger-class-name-BvRCjLXG.js → use-dropdown-trigger-class-name-Dpwl6OCY.js} +7 -7
- package/dist/component/{use-element-state-class-name-Cpdx_lRm.js → use-element-state-class-name-BUu6zq-d.js} +1 -1
- package/dist/component/{use-hoverable-input-class-name-zEk2Vnct.js → use-hoverable-input-class-name-B1V7zCNe.js} +2 -2
- package/dist/component/{use-is-forced-open-dropdown-_YI6RNG3.js → use-is-forced-open-dropdown-BbHOZTaj.js} +1 -1
- package/dist/component/{use-native-mobile-input-Czyhb-0V.js → use-native-mobile-input-Ct8ysLL3.js} +1 -1
- package/dist/component/{use-service-options-base-CbFG_r1u.js → use-service-options-base-u-WCeJHQ.js} +1 -1
- package/dist/component/use-text-input-class-name-DfNU2oQf.js +6 -0
- package/package.json +2 -2
- package/dist/component/use-text-input-class-name-CL-b4_Ph.js +0 -6
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import t, { useRef as
|
|
2
|
-
import
|
|
1
|
+
import t, { useRef as V, useCallback as k } from "react";
|
|
2
|
+
import X from "@wix/editor-react-components/AnimatedIcon";
|
|
3
3
|
import p from "classnames";
|
|
4
|
-
import { bN as b, bH as
|
|
4
|
+
import { bN as b, bH as J, aF as K, aE as $, aC as j, aB as q, aK as G, aJ as Q, aD as Y, b as Z, aA as tt, aI as et } from "./form-Co7SkMqj.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-BUu6zq-d.js";
|
|
8
8
|
function ot(e) {
|
|
9
9
|
const s = "calc(50% - 2px)";
|
|
10
10
|
return /* @__PURE__ */ t.createElement(nt, {
|
|
@@ -51,55 +51,55 @@ const r = ({ children: e }) => {
|
|
|
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: l, previousText: v } = b();
|
|
55
55
|
if (!a)
|
|
56
56
|
return null;
|
|
57
|
-
const
|
|
57
|
+
const i = 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: l,
|
|
62
62
|
onHoverStart: o,
|
|
63
63
|
onHoverEnd: s
|
|
64
|
-
}, m,
|
|
64
|
+
}, m, i ?? /* @__PURE__ */ t.createElement(D, null));
|
|
65
65
|
}, E = ({ className: e, onHoverStart: o, onHoverEnd: s, children: n }) => {
|
|
66
|
-
const { showNextButton: a, onNextClick:
|
|
66
|
+
const { showNextButton: a, onNextClick: l, nextText: v } = b();
|
|
67
67
|
if (!a)
|
|
68
68
|
return null;
|
|
69
|
-
const
|
|
69
|
+
const i = 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: l,
|
|
74
74
|
onHoverStart: o,
|
|
75
75
|
onHoverEnd: s
|
|
76
|
-
},
|
|
76
|
+
}, i ?? /* @__PURE__ */ t.createElement(W, null), m);
|
|
77
77
|
}, B = ({ className: e, onHoverStart: o, onHoverEnd: s, children: n }) => {
|
|
78
|
-
const { showSubmitButton: a, onSubmitClick:
|
|
78
|
+
const { showSubmitButton: a, onSubmitClick: l, submitText: v, isDisabled: i, isInProgress: m, isSubmitting: C } = b();
|
|
79
79
|
if (!a)
|
|
80
80
|
return null;
|
|
81
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 : l,
|
|
86
86
|
onHoverStart: o,
|
|
87
87
|
onHoverEnd: s,
|
|
88
|
-
isDisabled:
|
|
88
|
+
isDisabled: i && !_,
|
|
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(y, null), I));
|
|
92
|
+
}, y = ({ className: e }) => {
|
|
93
93
|
const { submitText: o } = b();
|
|
94
94
|
return /* @__PURE__ */ t.createElement("span", {
|
|
95
95
|
className: e
|
|
96
96
|
}, o);
|
|
97
|
-
},
|
|
97
|
+
}, D = ({ className: e }) => {
|
|
98
98
|
const { previousText: o } = b();
|
|
99
99
|
return /* @__PURE__ */ t.createElement("span", {
|
|
100
100
|
className: e
|
|
101
101
|
}, o);
|
|
102
|
-
},
|
|
102
|
+
}, W = ({ 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 = y;
|
|
111
111
|
B.Icon = R;
|
|
112
112
|
B.Loader = st;
|
|
113
|
-
S.Label =
|
|
113
|
+
S.Label = D;
|
|
114
114
|
S.Icon = R;
|
|
115
|
-
E.Label =
|
|
115
|
+
E.Label = W;
|
|
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_zmwct_1", rt = "_rowSpacing_zmwct_6", ut = "_navigationButton_zmwct_10", ct = "_nextButton_zmwct_33", lt = "_previousButton_zmwct_59", it = "_navigationButtonHover_zmwct_97", mt = "_button_zmwct_135", Bt = "_buttonNoSteps_zmwct_181", bt = "_buttonWithSteps_zmwct_185", vt = "_buttonHover_zmwct_189", St = "_progress_zmwct_255", u = {
|
|
122
122
|
navigationContainer: at,
|
|
123
123
|
rowSpacing: rt,
|
|
124
124
|
navigationButton: ut,
|
|
125
125
|
nextButton: ct,
|
|
126
|
-
previousButton:
|
|
127
|
-
navigationButtonHover:
|
|
126
|
+
previousButton: lt,
|
|
127
|
+
navigationButtonHover: it,
|
|
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 = V(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_16wic_1", rt = "_rowSpacing_16wic_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, ...l } = e ?? {};
|
|
148
|
+
return l.svg ? /* @__PURE__ */ t.createElement(X, {
|
|
149
|
+
...l,
|
|
150
150
|
ref: o,
|
|
151
151
|
className: p(Z, s, a)
|
|
152
152
|
}) : null;
|
|
153
153
|
}, Et = () => {
|
|
154
|
-
var A, F, h, U, M,
|
|
155
|
-
const { hasSteps: e, showPreviousButton: o, isDisabled: s, isInProgress: n, isSubmitting: a } = b(), v = !s && !(a || n),
|
|
154
|
+
var A, F, h, U, M, z;
|
|
155
|
+
const { hasSteps: e, showPreviousButton: o, isDisabled: s, isInProgress: n, isSubmitting: a } = b(), v = !s && !(a || n), i = J(), m = (F = (A = i.submitButton) == null ? void 0 : A.elementProps) == null ? void 0 : F.icon, C = (U = (h = i.nextButton) == null ? void 0 : h.elementProps) == null ? void 0 : U.icon, f = (z = (M = i.previousButton) == null ? void 0 : M.elementProps) == null ? void 0 : z.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_16wic_1", rt = "_rowSpacing_16wic_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: K
|
|
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: $
|
|
195
195
|
}))), /* @__PURE__ */ t.createElement(r.SubmitButton.NextButton, {
|
|
196
196
|
className: ({ isHovered: N }) => d({
|
|
197
197
|
isSelected: !1,
|
|
@@ -200,11 +200,11 @@ const at = "_navigationContainer_16wic_1", rt = "_rowSpacing_16wic_6", ut = "_na
|
|
|
200
200
|
onHoverStart: L.onHoverStart,
|
|
201
201
|
onHoverEnd: L.onHoverEnd
|
|
202
202
|
}, /* @__PURE__ */ t.createElement(r.SubmitButton.NextButton.Label, {
|
|
203
|
-
className:
|
|
203
|
+
className: j
|
|
204
204
|
}), /* @__PURE__ */ t.createElement(r.SubmitButton.NextButton.Icon, null, /* @__PURE__ */ t.createElement(O, {
|
|
205
205
|
icon: C,
|
|
206
206
|
iconRef: L.iconRef,
|
|
207
|
-
iconClassName:
|
|
207
|
+
iconClassName: q
|
|
208
208
|
}))), /* @__PURE__ */ t.createElement(r.SubmitButton.SubmitButton, {
|
|
209
209
|
className: ({ isHovered: N }) => _({
|
|
210
210
|
isSelected: !1,
|
|
@@ -2,15 +2,15 @@ import { RicosViewer as Q } from "@wix/ricos/viewer";
|
|
|
2
2
|
import F from "classnames";
|
|
3
3
|
import t, { useRef as S, useMemo as I, useState as X, useLayoutEffect as Y, useCallback as x } from "react";
|
|
4
4
|
import { CheckboxGroup as w, TextField as z, Input as B, CheckboxField as J, CheckboxButton as Z } from "react-aria-components";
|
|
5
|
-
import { bN as y, bK as M, bW as U, bY as T, bP as ee, X as te, am as oe, ax as ne, M as ae, I as se, ay as re } from "./form-
|
|
5
|
+
import { bN as y, bK as M, bW as U, bY as T, bP as ee, X as te, am as oe, ax as ne, M as ae, I as se, ay as re } from "./form-Co7SkMqj.js";
|
|
6
6
|
import { f, a as W } from "./find-child-C60k4CxG.js";
|
|
7
|
-
import { E as k, D as H } from "./field-error-headless-
|
|
8
|
-
import { L as P } from "./field-label-headless-
|
|
7
|
+
import { E as k, D as H } from "./field-error-headless-o2u5ldAp.js";
|
|
8
|
+
import { L as P } from "./field-label-headless-DvNWYzXc.js";
|
|
9
9
|
import { F as le } from "./fieldset-headless-CD3fds9J.js";
|
|
10
10
|
import { E as ie } from "./error-icon-hZxQ6DEy.js";
|
|
11
11
|
import { s as D } from "./field-rac.module-D0QzJXUv.js";
|
|
12
|
-
import { u as ce } from "./use-element-state-class-name-
|
|
13
|
-
import { u as ue } from "./use-text-input-class-name-
|
|
12
|
+
import { u as ce } from "./use-element-state-class-name-BUu6zq-d.js";
|
|
13
|
+
import { u as ue } from "./use-text-input-class-name-DfNU2oQf.js";
|
|
14
14
|
var de = /* @__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 { bN as p, bK as d, bP as x, bW as h, X as g, am as v, M, I as q } from "./form-
|
|
5
|
+
import { bN as p, bK as d, bP as x, bW as h, X as g, am as v, M, I as q } from "./form-Co7SkMqj.js";
|
|
6
6
|
import { f as i } from "./find-child-C60k4CxG.js";
|
|
7
|
-
import { D as B, E as P } from "./field-error-headless-
|
|
8
|
-
import { L as V } from "./field-label-headless-
|
|
7
|
+
import { D as B, E as P } from "./field-error-headless-o2u5ldAp.js";
|
|
8
|
+
import { L as V } from "./field-label-headless-DvNWYzXc.js";
|
|
9
9
|
import { E as k } from "./error-icon-hZxQ6DEy.js";
|
|
10
10
|
import { s as c } from "./field-rac.module-D0QzJXUv.js";
|
|
11
|
-
import { u as K } from "./use-text-input-class-name-
|
|
11
|
+
import { u as K } from "./use-text-input-class-name-DfNU2oQf.js";
|
|
12
12
|
const e = ({ children: t }) => {
|
|
13
13
|
const { id: a, value: m, onChange: n, disabled: u, required: s, readOnly: l, onBlur: E, onFocus: b, FieldLayout: I, hasError: f } = p(), { labelId: F } = d(), L = S((A) => {
|
|
14
14
|
n(A);
|
package/dist/component/{text-input-field-rac-D3v-e_5R.js → text-input-field-rac-BSo_dbkm.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-D-o9wyGb.js";
|
|
5
5
|
import { E as o } from "./error-icon-hZxQ6DEy.js";
|
|
6
6
|
import { s as a } from "./field-rac.module-D0QzJXUv.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-Co7SkMqj.js";
|
|
8
|
+
import { u as p } from "./use-text-input-class-name-DfNU2oQf.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 n, { useRef as v } from "react";
|
|
2
2
|
import { TextField as C, Input as R } from "react-aria-components";
|
|
3
|
-
import { bN as d, bK as p, bP as h, bW as T } from "./form-
|
|
3
|
+
import { bN as d, bK as p, bP as h, bW as T } from "./form-Co7SkMqj.js";
|
|
4
4
|
import { f as a } from "./find-child-C60k4CxG.js";
|
|
5
|
-
import { D as g, E as x } from "./field-error-headless-
|
|
6
|
-
import { L as B } from "./field-label-headless-
|
|
5
|
+
import { D as g, E as x } from "./field-error-headless-o2u5ldAp.js";
|
|
6
|
+
import { L as B } from "./field-label-headless-DvNWYzXc.js";
|
|
7
7
|
const e = ({ children: r }) => {
|
|
8
8
|
const { id: s, value: l, onChange: i, disabled: u, readOnly: t, required: o, hasError: c, onBlur: m, onFocus: b, autoComplete: f, FieldLayout: E } = d(), { labelId: I } = p(), F = a(r, e.Label), y = a(r, e.Input), D = a(r, e.Description), L = a(r, e.Error);
|
|
9
9
|
return /* @__PURE__ */ n.createElement(E, {
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import e, { useCallback as Q, useRef as H, useContext as X } from "react";
|
|
2
2
|
import { RicosViewer as Y } from "@wix/ricos/viewer";
|
|
3
3
|
import u from "classnames";
|
|
4
|
-
import { bN as N, bK as k, bP as U, bY as g, X as z, am as G, M as J, I as W } from "./form-
|
|
4
|
+
import { bN as N, bK as k, bP as U, bY as g, X as z, am as G, M as J, I as W } from "./form-Co7SkMqj.js";
|
|
5
5
|
import { parseTime as Z } from "@internationalized/date";
|
|
6
6
|
import { mergeProps as $ } from "react-aria";
|
|
7
7
|
import { TimeField as ee, DateInput as te, DateSegment as v, TimeFieldStateContext as ne } from "react-aria-components";
|
|
8
8
|
import { f as m, a as _ } from "./find-child-C60k4CxG.js";
|
|
9
|
-
import { D as re, E as ae } from "./field-error-headless-
|
|
10
|
-
import { L as oe } from "./field-label-headless-
|
|
11
|
-
import { u as le, a as se, N as ie, D as ce } from "./dismiss-icon-
|
|
12
|
-
import { u as me, N as ue } from "./use-native-mobile-input-
|
|
9
|
+
import { D as re, E as ae } from "./field-error-headless-o2u5ldAp.js";
|
|
10
|
+
import { L as oe } from "./field-label-headless-DvNWYzXc.js";
|
|
11
|
+
import { u as le, a as se, N as ie, D as ce } from "./dismiss-icon-Bw_zbdk_.js";
|
|
12
|
+
import { u as me, N as ue } from "./use-native-mobile-input-Ct8ysLL3.js";
|
|
13
13
|
import { t as de } from "./to-native-time-Co_gOLkc.js";
|
|
14
14
|
import { u as pe } from "./use-native-state-class-name-B0m2ghbS.js";
|
|
15
15
|
import { E as Ee } from "./error-icon-hZxQ6DEy.js";
|
|
16
16
|
import { H as B } from "./custom-focus-class-_483Pkwp.js";
|
|
17
17
|
import { s as f } from "./field-rac.module-D0QzJXUv.js";
|
|
18
|
-
import { u as x } from "./use-text-input-class-name-
|
|
18
|
+
import { u as x } from "./use-text-input-class-name-DfNU2oQf.js";
|
|
19
19
|
const n = ({ children: t }) => {
|
|
20
20
|
const { id: r, value: a, onChange: s, disabled: i, readOnly: o, required: c, onBlur: l, onFocus: p, use24HourFormat: S, FieldLayout: F, hasError: y } = N(), { inputId: C, ariaDescribedBy: D, labelId: b } = k(), T = me(), h = Q((j) => {
|
|
21
21
|
const K = w(j);
|
|
@@ -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 y } from "react";
|
|
4
4
|
import { TextField as O, Input as A } from "react-aria-components";
|
|
5
|
-
import { bN as d, bK as E, bP as P, bW as v, X as B, am as M, M as T, I as g } from "./form-
|
|
5
|
+
import { bN as d, bK as E, bP as P, bW as v, X as B, am as M, M as T, I as g } from "./form-Co7SkMqj.js";
|
|
6
6
|
import { f as c } from "./find-child-C60k4CxG.js";
|
|
7
|
-
import { D as k, E as q } from "./field-error-headless-
|
|
8
|
-
import { L as x } from "./field-label-headless-
|
|
7
|
+
import { D as k, E as q } from "./field-error-headless-o2u5ldAp.js";
|
|
8
|
+
import { L as x } from "./field-label-headless-DvNWYzXc.js";
|
|
9
9
|
import { u as U } from "./use-invoke-callback-UH73A_J3.js";
|
|
10
10
|
import { E as V } from "./error-icon-hZxQ6DEy.js";
|
|
11
11
|
import { s as u } from "./field-rac.module-D0QzJXUv.js";
|
|
12
|
-
import { u as W } from "./use-text-input-class-name-
|
|
12
|
+
import { u as W } from "./use-text-input-class-name-DfNU2oQf.js";
|
|
13
13
|
const w = (t) => t ? `https://${String(t).replace(/^https?:\/\//, "")}` : "", e = ({ children: t }) => {
|
|
14
14
|
const { id: o, value: a, onChange: l, disabled: m, readOnly: s, required: n, hasError: I, onBlur: b, onFocus: f, FieldLayout: R } = d(), { labelId: F } = E(), p = U(b), L = c(t, e.Label), D = c(t, e.Input), C = c(t, e.Description), _ = c(t, e.Error), N = h(() => {
|
|
15
15
|
l(w(a)), 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-D0QzJXUv.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-Co7SkMqj.js";
|
|
6
|
+
import { u as H } from "./use-element-state-class-name-BUu6zq-d.js";
|
|
7
7
|
const R = 1 / 0, I = {
|
|
8
8
|
position: "absolute",
|
|
9
9
|
width: 0,
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import t, { useState as T, useCallback as R, useRef as V } from "react";
|
|
2
2
|
import { UNSAFE_PortalProvider as U, mergeProps as W } from "react-aria";
|
|
3
3
|
import { VisuallyHidden as j, Select as z, SelectValue as J, ListBoxItem as Q } from "react-aria-components";
|
|
4
|
-
import { bN as g, bK as L, bY as X, bP as B, L as Z } from "./form-
|
|
4
|
+
import { bN as g, bK as L, bY as X, bP as B, L as Z } from "./form-Co7SkMqj.js";
|
|
5
5
|
import { f as u, a as q } from "./find-child-C60k4CxG.js";
|
|
6
|
-
import { D as ee, E as te } from "./field-error-headless-
|
|
7
|
-
import { L as ae } from "./field-label-headless-
|
|
8
|
-
import { u as re, N as ne } from "./use-native-mobile-input-
|
|
6
|
+
import { D as ee, E as te } from "./field-error-headless-o2u5ldAp.js";
|
|
7
|
+
import { L as ae } from "./field-label-headless-DvNWYzXc.js";
|
|
8
|
+
import { u as re, N as ne } from "./use-native-mobile-input-Ct8ysLL3.js";
|
|
9
9
|
import { N as le } from "./native-select-BbxBpe3S.js";
|
|
10
10
|
import { E as se, S as oe, N as ie } from "./non-modal-popover-D-u13tmp.js";
|
|
11
|
-
import { b as ce } from "./use-is-forced-open-dropdown-
|
|
11
|
+
import { b as ce } from "./use-is-forced-open-dropdown-BbHOZTaj.js";
|
|
12
12
|
import { u as de } from "./use-native-state-class-name-B0m2ghbS.js";
|
|
13
|
-
import { V as ue } from "./use-dropdown-option-class-name-
|
|
14
|
-
import { u as me } from "./use-hoverable-input-class-name-
|
|
13
|
+
import { V as ue } from "./use-dropdown-option-class-name-CHg44uaJ.js";
|
|
14
|
+
import { u as me } from "./use-hoverable-input-class-name-B1V7zCNe.js";
|
|
15
15
|
const s = ({ children: e }) => {
|
|
16
16
|
const { id: r, value: o, defaultValue: a, options: d = [], readOnly: n, onChange: l, placeholder: m, disabled: c, required: p, onBlur: v, onFocus: N, FieldLayout: O, hasError: C } = g(), [F, y] = T(!1), b = ce(r), [f, D] = T(null), I = re(), i = _(o, a, d), { labelId: S } = L(), { t: w } = X(), P = `${S}-required`, x = R((E) => {
|
|
17
17
|
n || l(typeof E == "string" ? E : null);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import i from "classnames";
|
|
2
|
-
import { bG as s, bc as v } from "./form-
|
|
2
|
+
import { bG as s, bc as v } from "./form-Co7SkMqj.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 { bN as n } from "./form-
|
|
1
|
+
import { bN as n } from "./form-Co7SkMqj.js";
|
|
2
2
|
import { s as e } from "./field-rac.module-D0QzJXUv.js";
|
|
3
|
-
import { u } from "./use-element-state-class-name-
|
|
3
|
+
import { u } from "./use-element-state-class-name-BUu6zq-d.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-native-mobile-input-Czyhb-0V.js → use-native-mobile-input-Ct8ysLL3.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import o, { forwardRef as r, useSyncExternalStore as a } from "react";
|
|
2
2
|
import { VisuallyHidden as c } from "react-aria-components";
|
|
3
|
-
import { bI as d, d as l } from "./form-
|
|
3
|
+
import { bI as d, d as l } from "./form-Co7SkMqj.js";
|
|
4
4
|
const E = {
|
|
5
5
|
position: "relative"
|
|
6
6
|
}, p = /* @__PURE__ */ r(({ groupLabelId: t, announcement: e, children: s }, i) => /* @__PURE__ */ o.createElement("div", {
|
package/dist/component/{use-service-options-base-CbFG_r1u.js → use-service-options-base-u-WCeJHQ.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 { bM as v } from "./form-
|
|
2
|
+
import { bM as v } from "./form-Co7SkMqj.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.227.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": [
|
|
@@ -157,5 +157,5 @@
|
|
|
157
157
|
]
|
|
158
158
|
}
|
|
159
159
|
},
|
|
160
|
-
"falconPackageHash": "
|
|
160
|
+
"falconPackageHash": "d57d129a5727057713fdfa451c2854d81891d0587a8e8de3fa040206"
|
|
161
161
|
}
|