@wix/form-elements 1.146.0 → 1.148.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-scUix9QX.js → appointment-rac-BNqXl3dq.js} +168 -164
- package/dist/component/{bookings-address-rac-CKemkJOO.js → bookings-address-rac-DzLf588z.js} +1 -1
- package/dist/component/{bookings-email-rac-CDqdhPAB.js → bookings-email-rac-BCNWH7ss.js} +1 -1
- package/dist/component/{bookings-first-name-rac-DEy_7Hjb.js → bookings-first-name-rac-D36aHUOJ.js} +1 -1
- package/dist/component/{bookings-header-rac-Bl4xy9lB.js → bookings-header-rac-CNr2y2ES.js} +1 -1
- package/dist/component/{bookings-last-name-rac-CsL9xQ1W.js → bookings-last-name-rac-yHE6ZIxr.js} +1 -1
- package/dist/component/{bookings-login-bar-rac-DkHYQ4No.js → bookings-login-bar-rac-C3weOc1i.js} +6 -6
- package/dist/component/{bookings-phone-rac-BoBiFwbV.js → bookings-phone-rac-CIo_ApRf.js} +1 -1
- package/dist/component/{bookings-rich-text-rac-DZZnPKWA.js → bookings-rich-text-rac-rgKnvt57.js} +1 -1
- package/dist/component/{checkbox-field-rac-UgLmJxB-.js → checkbox-field-rac-CMaVxLNe.js} +9 -7
- package/dist/component/{checkbox-group-field-headless-C809nB0Q.js → checkbox-group-field-headless-XPtqS8Km.js} +68 -68
- package/dist/component/{checkbox-group-field-rac-u4i4wG21.js → checkbox-group-field-rac-C_58XfQt.js} +9 -9
- package/dist/component/{checkbox-group-rac-DBAQhSo3.js → checkbox-group-rac-FQrWViSh.js} +1 -1
- package/dist/component/{checkbox-indicator-module-classes-6173wvuW.js → checkbox-indicator-module-classes-akWZsZNn.js} +1 -1
- package/dist/component/{checkbox-rac-FDQVsI5-.js → checkbox-rac-C5Lj2b1N.js} +1 -1
- package/dist/component/{contacts-address-rac-DnArylPa.js → contacts-address-rac-OhpLzD0X.js} +1 -1
- package/dist/component/{contacts-birthdate-rac-C19jhGEO.js → contacts-birthdate-rac-Dnqq84ct.js} +1 -1
- package/dist/component/{contacts-company-rac-Dxs0hs_i.js → contacts-company-rac-DMnTF55t.js} +1 -1
- package/dist/component/{contacts-email-rac-D-H43L8r.js → contacts-email-rac-DmZhScW2.js} +1 -1
- package/dist/component/{contacts-first-name-rac-DwV5NESk.js → contacts-first-name-rac-B6A4fuzK.js} +1 -1
- package/dist/component/{contacts-last-name-rac-C5v2xurf.js → contacts-last-name-rac-DVz97lew.js} +1 -1
- package/dist/component/{contacts-phone-rac-D9a5x-xl.js → contacts-phone-rac-DV8aO0uS.js} +1 -1
- package/dist/component/{contacts-position-rac-DfsgOv-k.js → contacts-position-rac-BP_yBIE4.js} +1 -1
- package/dist/component/{contacts-subscribe-rac-B-Hho0Kb.js → contacts-subscribe-rac-wmTprtLf.js} +1 -1
- package/dist/component/{contacts-tax-id-rac-q6TQkB4b.js → contacts-tax-id-rac-CUEPBQye.js} +1 -1
- package/dist/component/{date-availability-CMDvf5VU.js → date-availability-BK_0gLRv.js} +1 -1
- package/dist/component/{date-input-field-rac-C1WLUct3.js → date-input-field-rac-BfWPvRnd.js} +84 -78
- package/dist/component/{date-input-rac-cNQ-nr4D.js → date-input-rac-B7vAMRBX.js} +1 -1
- package/dist/component/{date-picker-field-rac-mx11z-MO.js → date-picker-field-rac-CpDY4EkU.js} +111 -105
- package/dist/component/{date-picker-rac-DeTz17zC.js → date-picker-rac-BCswaZB1.js} +1 -1
- package/dist/component/{date-time-input-field-rac-feQ2E1eU.js → date-time-input-field-rac-D9w4eEa0.js} +135 -129
- package/dist/component/{date-time-input-rac-G0s0xP4v.js → date-time-input-rac-_im8-JRC.js} +1 -1
- package/dist/component/{dext-checkbox-group-rac-BcTN1nJb.js → dext-checkbox-group-rac-Di7B1Wzv.js} +2 -2
- package/dist/component/{dext-checkbox-rac-DX0TOrCO.js → dext-checkbox-rac-BPendOsP.js} +1 -1
- package/dist/component/{dext-date-picker-rac-CpDp11oa.js → dext-date-picker-rac-_-Ig9Qn6.js} +1 -1
- package/dist/component/{dext-date-time-input-rac-BRvO8izU.js → dext-date-time-input-rac-dKFW87yu.js} +1 -1
- package/dist/component/{dext-dropdown-rac-DGZ4Yi_X.js → dext-dropdown-rac-Cpdpps7P.js} +1 -1
- package/dist/component/{dext-email-rac-B9YCFHB4.js → dext-email-rac-D4UmYH5m.js} +1 -1
- package/dist/component/{dext-number-input-rac-D890dBZf.js → dext-number-input-rac-DUetGnYJ.js} +1 -1
- package/dist/component/{dext-phone-rac-BAQftbXo.js → dext-phone-rac-Bsz_DAT9.js} +1 -1
- package/dist/component/dext-radio-group-rac-B_soj2FD.js +18 -0
- package/dist/component/{dext-rating-input-rac-BqQKVaHo.js → dext-rating-input-rac-cm40qt4O.js} +1 -1
- package/dist/component/{dext-tags-rac-zxxKcNUe.js → dext-tags-rac-D1ULx6t1.js} +2 -2
- package/dist/component/{dext-text-area-rac-Ctp9SwPg.js → dext-text-area-rac-IkL67rHB.js} +1 -1
- package/dist/component/{dext-text-input-rac-c_QMlyjr.js → dext-text-input-rac-DsYSTEL2.js} +1 -1
- package/dist/component/{dext-url-input-rac-96pv15aC.js → dext-url-input-rac-BKvEkpYu.js} +1 -1
- package/dist/component/{donation-rac-GEWKSLJY.js → donation-rac-CaCXMa-H.js} +87 -85
- package/dist/component/{dropdown-field-headless-C3OxMhLE.js → dropdown-field-headless-DcrQK8mL.js} +36 -34
- package/dist/component/{dropdown-field-rac-CCXfBmSc.js → dropdown-field-rac-CuGoz_6I.js} +9 -10
- package/dist/component/{dropdown-rac-CR7hswXE.js → dropdown-rac-rIe6ZqaZ.js} +1 -1
- package/dist/component/{ecom-address-rac-khMuxEFD.js → ecom-address-rac-DT0rzvvp.js} +1 -1
- package/dist/component/{ecom-subscription-checkbox-rac-CAi_AHpb.js → ecom-subscription-checkbox-rac-ZfbiME6e.js} +5 -5
- package/dist/component/{email-input-field-rac-B83mY2lg.js → email-input-field-rac-8Qn3yskh.js} +62 -62
- package/dist/component/{events-repeater-rac-ClEwXgmb.js → events-repeater-rac-DyHrMd3y.js} +25 -21
- package/dist/component/{events-rsvp-rac-BJ5q2SVR.js → events-rsvp-rac-CoL-euuc.js} +9 -9
- package/dist/component/{field-error-headless-CsYQCsiT.js → field-error-headless-RylIeqXr.js} +6 -6
- package/dist/component/{field-label-headless-Yg_1PMSg.js → field-label-headless-d3hZxIEc.js} +15 -15
- package/dist/component/field-rac.module-DP0lkkEv.js +25 -0
- package/dist/component/{file-upload-rac-DJsuI_lR.js → file-upload-rac-rXbabrgc.js} +172 -168
- package/dist/component/{fixed-payment-rac-BMFe9wxU.js → fixed-payment-rac-CaR7pXXA.js} +13 -13
- package/dist/component/{form-Bed4Kfz8.js → form-DhIEC3nB.js} +2309 -2308
- package/dist/component/form.css +1 -1
- package/dist/component/form.js +2 -2
- package/dist/component/{header-field-rac-DPQTrOSZ.js → header-field-rac-nELbyGjP.js} +4 -4
- package/dist/component/{header-rac-CzXsuLmE.js → header-rac-q80EQNmM.js} +1 -1
- package/dist/component/{image-choice-rac-R_4pbOSr.js → image-choice-rac-CLMiTQK0.js} +42 -42
- package/dist/component/{index-DZxHlvzt.js → index-C-jVrv9Y.js} +91 -91
- package/dist/component/{index-qSZCe_WC.js → index-DnLJzPM-.js} +2 -2
- package/dist/component/{isObjectLike-B-a5uaU-.js → isObjectLike-Bf577MHV.js} +15 -15
- package/dist/component/{multiline-address-field-rac-rv4IZZy_.js → multiline-address-field-rac-BVAv1w9F.js} +155 -137
- package/dist/component/{multiline-address-rac-DZ7cYtgn.js → multiline-address-rac-qMuUHA9U.js} +1 -1
- package/dist/component/{number-input-field-rac-CL9iXKIf.js → number-input-field-rac-B_vnBWFG.js} +24 -22
- package/dist/component/{number-input-rac-BeGn6qJR.js → number-input-rac-BPCIW8Fz.js} +1 -1
- package/dist/component/{password-rac-DfvhdsKG.js → password-rac-D72HG72u.js} +28 -26
- package/dist/component/{payment-input-rac-BmMfi5rf.js → payment-input-rac-DthVgsAi.js} +32 -30
- package/dist/component/{phone-input-field-rac-DW0a1pXs.js → phone-input-field-rac-XIPkH8Fb.js} +46 -46
- package/dist/component/{phone-rac-quZjJ08H.js → phone-rac-U94fCfer.js} +1 -1
- package/dist/component/{product-list-rac-Ci0KB7sN.js → product-list-rac-BRMGPyhr.js} +78 -78
- package/dist/component/{quiz-radio-group-rac--UUtGx2t.js → quiz-radio-group-rac-DafNzzgX.js} +1 -1
- package/dist/component/radio-button-module-classes-DtFlHID_.js +134 -0
- package/dist/component/{radio-group-field-rac-w8fHpFKJ.js → radio-group-field-rac-BXrYWjew.js} +13 -13
- package/dist/component/{radio-group-rac-jO8aghii.js → radio-group-rac-BNyFfQYV.js} +1 -1
- package/dist/component/{rating-input-field-rac-BRc2PtqE.js → rating-input-field-rac-KbkiVCZ7.js} +27 -27
- package/dist/component/{rating-input-rac-D9zs06xR.js → rating-input-rac-zT4vPkwP.js} +1 -1
- package/dist/component/{rich-content-rac.module-Cv3ZmD00.js → rich-content-rac.module-C0OQetct.js} +8 -8
- package/dist/component/{rich-text-field-rac-BmWuIfA8.js → rich-text-field-rac-T4NoShC0.js} +4 -4
- package/dist/component/{rich-text-rac-BnqnrvB1.js → rich-text-rac-m6VRCRZu.js} +1 -1
- package/dist/component/{service-dropdown-rac-Cl81KfJU.js → service-dropdown-rac-BFwKhL1l.js} +44 -45
- package/dist/component/{services-multi-choice-rac-sQ1NF9hY.js → services-multi-choice-rac-DjzcuRWv.js} +13 -13
- package/dist/component/{signature-rac-Huairu7V.js → signature-rac-B1LPKnIw.js} +281 -279
- package/dist/component/{submit-button-rac-Dpg7N0TG.js → submit-button-rac-Cz3PVtW4.js} +25 -25
- package/dist/component/{tags-field-rac-BQ8TEqXH.js → tags-field-rac-DzSoL__s.js} +82 -82
- package/dist/component/{tags-rac-CFOmyCCc.js → tags-rac-DMYJDrm-.js} +1 -1
- package/dist/component/{text-area-field-rac-DNiMa7d3.js → text-area-field-rac-SuMzBm-Q.js} +30 -28
- package/dist/component/{text-area-rac-kLFe-KbZ.js → text-area-rac-C-zmnJgt.js} +1 -1
- package/dist/component/{text-input-field-rac-CqENSUUX.js → text-input-field-rac-BmQlXTK9.js} +6 -6
- package/dist/component/text-input-headless-BsrjGTK4.js +47 -0
- package/dist/component/{text-input-rac-uYQEfOtE.js → text-input-rac-DhQFKG4h.js} +1 -1
- package/dist/component/time-input-rac-CRZZdbTI.js +161 -0
- package/dist/component/{url-input-field-rac-BioH7kuz.js → url-input-field-rac-D617Pvsf.js} +30 -28
- package/dist/component/{url-input-rac-D2VSSyqW.js → url-input-rac-CLvxaWZz.js} +1 -1
- package/dist/component/use-dropdown-trigger-class-name-C4uqTKFP.js +117 -0
- package/dist/component/{use-element-state-class-name-oiKCauK-.js → use-element-state-class-name-DJx-T0zf.js} +3 -3
- package/dist/component/use-hoverable-input-class-name-pwVZXwrY.js +25 -0
- package/dist/component/use-is-forced-open-dropdown-DBpm1D-o.js +48 -0
- package/dist/component/{use-service-options-base-DXG60hA5.js → use-service-options-base-xHeVTve3.js} +6 -6
- package/dist/component/use-text-input-class-name-CrEjJ2Z8.js +6 -0
- package/dist/form.d.ts +5 -0
- package/package.json +2 -2
- package/dist/component/dext-radio-group-rac-CtEjnu_X.js +0 -18
- package/dist/component/field-rac.module-DfEb7pBp.js +0 -25
- package/dist/component/radio-button-module-classes-CqdBGknT.js +0 -132
- package/dist/component/text-input-headless-BdPkEeK2.js +0 -45
- package/dist/component/time-input-rac-BYoojlJ9.js +0 -159
- package/dist/component/use-dropdown-option-class-name-BEmvU-Gg.js +0 -115
- package/dist/component/use-dropdown-trigger-class-name-qj9skLWZ.js +0 -40
- package/dist/component/use-hoverable-input-class-name-BW3nCyhG.js +0 -25
- package/dist/component/use-text-input-class-name-BhQFcXYH.js +0 -6
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import t, { useRef as X, useCallback as y } from "react";
|
|
2
2
|
import $ from "@wix/editor-react-components/AnimatedIcon";
|
|
3
3
|
import p from "classnames";
|
|
4
|
-
import {
|
|
4
|
+
import { bo as b, bi as j, ai as q, ah as z, af as G, ae as J, an as K, am as Q, ag as Y, b as Z, ad as tt, al as et } from "./form-DhIEC3nB.js";
|
|
5
5
|
import { ProgressBar as nt, Button as R } from "react-aria-components";
|
|
6
6
|
import { f as l } 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-DJx-T0zf.js";
|
|
8
8
|
function ot(e) {
|
|
9
9
|
const s = "calc(50% - 2px)";
|
|
10
10
|
return /* @__PURE__ */ t.createElement(nt, {
|
|
@@ -51,41 +51,41 @@ 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: i, previousText: B } = b();
|
|
55
55
|
if (!a)
|
|
56
56
|
return null;
|
|
57
|
-
const
|
|
57
|
+
const c = l(n, S.Label), m = l(n, S.Icon);
|
|
58
58
|
return /* @__PURE__ */ t.createElement(R, {
|
|
59
59
|
className: e,
|
|
60
60
|
"aria-label": B,
|
|
61
|
-
onPress:
|
|
61
|
+
onPress: i,
|
|
62
62
|
onHoverStart: o,
|
|
63
63
|
onHoverEnd: s
|
|
64
|
-
}, m,
|
|
64
|
+
}, m, c ?? /* @__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: B } = b();
|
|
67
67
|
if (!a)
|
|
68
68
|
return null;
|
|
69
|
-
const
|
|
69
|
+
const c = l(n, E.Label), m = l(n, E.Icon);
|
|
70
70
|
return /* @__PURE__ */ t.createElement(R, {
|
|
71
71
|
className: e,
|
|
72
72
|
"aria-label": B,
|
|
73
|
-
onPress:
|
|
73
|
+
onPress: i,
|
|
74
74
|
onHoverStart: o,
|
|
75
75
|
onHoverEnd: s
|
|
76
|
-
},
|
|
76
|
+
}, c ?? /* @__PURE__ */ t.createElement(V, null), m);
|
|
77
77
|
}, v = ({ className: e, onHoverStart: o, onHoverEnd: s, children: n }) => {
|
|
78
|
-
const { showSubmitButton: a, onSubmitClick:
|
|
78
|
+
const { showSubmitButton: a, onSubmitClick: i, submitText: B, isDisabled: c, isInProgress: m, isSubmitting: C } = b();
|
|
79
79
|
if (!a)
|
|
80
80
|
return null;
|
|
81
81
|
const f = l(n, v.Label), I = l(n, v.Icon), d = l(n, v.Loader), _ = C || m;
|
|
82
82
|
return /* @__PURE__ */ t.createElement(R, {
|
|
83
83
|
className: e,
|
|
84
84
|
"aria-label": B,
|
|
85
|
-
onPress: _ ? void 0 :
|
|
85
|
+
onPress: _ ? void 0 : i,
|
|
86
86
|
onHoverStart: o,
|
|
87
87
|
onHoverEnd: s,
|
|
88
|
-
isDisabled:
|
|
88
|
+
isDisabled: c && !_,
|
|
89
89
|
"aria-disabled": _ || void 0,
|
|
90
90
|
"data-in-progress": m
|
|
91
91
|
}, m && d ? d : /* @__PURE__ */ t.createElement(t.Fragment, null, f ?? /* @__PURE__ */ t.createElement(D, null), I));
|
|
@@ -104,27 +104,27 @@ const r = ({ children: e }) => {
|
|
|
104
104
|
return /* @__PURE__ */ t.createElement("span", {
|
|
105
105
|
className: e
|
|
106
106
|
}, o);
|
|
107
|
-
},
|
|
107
|
+
}, A = ({ 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
110
|
v.Label = D;
|
|
111
|
-
v.Icon =
|
|
111
|
+
v.Icon = A;
|
|
112
112
|
v.Loader = st;
|
|
113
113
|
S.Label = W;
|
|
114
|
-
S.Icon =
|
|
114
|
+
S.Icon = A;
|
|
115
115
|
E.Label = V;
|
|
116
|
-
E.Icon =
|
|
116
|
+
E.Icon = A;
|
|
117
117
|
g.PreviousButton = S;
|
|
118
118
|
g.NextButton = E;
|
|
119
119
|
g.SubmitButton = v;
|
|
120
120
|
r.SubmitButton = g;
|
|
121
|
-
const at = "_navigationContainer_s99vs_1", rt = "_rowSpacing_s99vs_6", ut = "_navigationButton_s99vs_10", lt = "_nextButton_s99vs_33",
|
|
121
|
+
const at = "_navigationContainer_s99vs_1", rt = "_rowSpacing_s99vs_6", ut = "_navigationButton_s99vs_10", lt = "_nextButton_s99vs_33", it = "_previousButton_s99vs_59", ct = "_navigationButtonHover_s99vs_100", mt = "_button_s99vs_116", vt = "_buttonNoSteps_s99vs_164", bt = "_buttonWithSteps_s99vs_168", Bt = "_buttonHover_s99vs_172", St = "_progress_s99vs_196", u = {
|
|
122
122
|
navigationContainer: at,
|
|
123
123
|
rowSpacing: rt,
|
|
124
124
|
navigationButton: ut,
|
|
125
125
|
nextButton: lt,
|
|
126
|
-
previousButton:
|
|
127
|
-
navigationButtonHover:
|
|
126
|
+
previousButton: it,
|
|
127
|
+
navigationButtonHover: ct,
|
|
128
128
|
button: mt,
|
|
129
129
|
buttonNoSteps: vt,
|
|
130
130
|
buttonWithSteps: bt,
|
|
@@ -144,15 +144,15 @@ const at = "_navigationContainer_s99vs_1", rt = "_rowSpacing_s99vs_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($, {
|
|
149
|
+
...i,
|
|
150
150
|
ref: o,
|
|
151
151
|
className: p(Z, s, a)
|
|
152
152
|
}) : null;
|
|
153
153
|
}, Et = () => {
|
|
154
|
-
var
|
|
155
|
-
const { hasSteps: e, showPreviousButton: o, isDisabled: s, isInProgress: n, isSubmitting: a } = b(), B = !s && !(a || n),
|
|
154
|
+
var h, F, U, w, M, k;
|
|
155
|
+
const { hasSteps: e, showPreviousButton: o, isDisabled: s, isInProgress: n, isSubmitting: a } = b(), B = !s && !(a || n), c = j(), m = (F = (h = c.submitButton) == null ? void 0 : h.elementProps) == null ? void 0 : F.icon, C = (w = (U = c.nextButton) == null ? void 0 : U.elementProps) == null ? void 0 : w.icon, f = (k = (M = c.previousButton) == null ? void 0 : M.elementProps) == null ? void 0 : k.icon, I = x({
|
|
156
156
|
globalClasses: Y,
|
|
157
157
|
moduleClasses: {
|
|
158
158
|
base: p(u.navigationButton, u.previousButton),
|
|
@@ -1,45 +1,45 @@
|
|
|
1
1
|
import { RicosViewer as w } from "@wix/ricos/viewer";
|
|
2
2
|
import F from "classnames";
|
|
3
|
-
import t, { useMemo as I, useState as z, useRef as
|
|
3
|
+
import t, { useMemo as I, useState as z, useRef as q, useLayoutEffect as B, useCallback as N } 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 {
|
|
6
|
-
import { f as O, a as
|
|
7
|
-
import { E as
|
|
8
|
-
import { L as
|
|
5
|
+
import { bo as D, bl as M, by as S, bq as U, S as ee, a0 as te, aa as ae, H as ne, v as oe, ab as re } from "./form-DhIEC3nB.js";
|
|
6
|
+
import { f as O, a as k } from "./find-child-C60k4CxG.js";
|
|
7
|
+
import { E as x, D as H } from "./field-error-headless-RylIeqXr.js";
|
|
8
|
+
import { L as W } from "./field-label-headless-d3hZxIEc.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-DP0lkkEv.js";
|
|
12
|
+
import { u as ie } from "./use-element-state-class-name-DJx-T0zf.js";
|
|
13
|
+
import { u as ce } from "./use-text-input-class-name-CrEjJ2Z8.js";
|
|
14
14
|
var ue = /* @__PURE__ */ (function(e) {
|
|
15
15
|
return e[e.FREE_FLOW = 0] = "FREE_FLOW", e[e.ONE = 1] = "ONE", e[e.TWO = 2] = "TWO", e[e.THREE = 3] = "THREE", e;
|
|
16
16
|
})({});
|
|
17
|
-
const
|
|
18
|
-
const i =
|
|
19
|
-
return (e.find((l) => l.startsWith(`${
|
|
20
|
-
}, me = (e) => e.map((
|
|
21
|
-
const { label: r } =
|
|
17
|
+
const R = "Other", de = (e, a) => {
|
|
18
|
+
const i = a.length + 2;
|
|
19
|
+
return (e.find((l) => l.startsWith(`${a}: `)) || "").slice(i);
|
|
20
|
+
}, me = (e) => e.map((a) => a.value ?? a.label), $ = ({ className: e, ...a }) => {
|
|
21
|
+
const { label: r } = a;
|
|
22
22
|
return /* @__PURE__ */ t.createElement("span", {
|
|
23
23
|
className: e
|
|
24
24
|
}, r);
|
|
25
|
-
},
|
|
26
|
-
const { value:
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
]), [c, L] = z(b), f =
|
|
25
|
+
}, P = ({ className: e }) => {
|
|
26
|
+
const { value: a, onChange: r, addOtherLabel: i, addOtherPlaceholder: s, otherInputCharacterLimit: l, disabled: u, readOnly: m, hasError: d } = D(), { t: p } = S(), n = i || p("add-other.default-other-option-label") || R, b = I(() => de(a || [], n), [
|
|
27
|
+
a,
|
|
28
|
+
n
|
|
29
|
+
]), [c, L] = z(b), f = q(r);
|
|
30
30
|
B(() => {
|
|
31
31
|
f.current = r;
|
|
32
32
|
});
|
|
33
|
-
const g =
|
|
33
|
+
const g = N((h) => {
|
|
34
34
|
L(h);
|
|
35
|
-
const C = (
|
|
35
|
+
const C = (a || []).filter((E) => !E.startsWith(`${n}:`) && E !== n), _ = h ? `${n}: ${h}` : n;
|
|
36
36
|
f.current([
|
|
37
37
|
...C,
|
|
38
38
|
_
|
|
39
39
|
]);
|
|
40
40
|
}, [
|
|
41
|
-
|
|
42
|
-
|
|
41
|
+
a,
|
|
42
|
+
n
|
|
43
43
|
]);
|
|
44
44
|
return /* @__PURE__ */ t.createElement(K, {
|
|
45
45
|
value: c,
|
|
@@ -47,7 +47,7 @@ const v = "Other", de = (e, n) => {
|
|
|
47
47
|
isDisabled: u,
|
|
48
48
|
isReadOnly: m,
|
|
49
49
|
isInvalid: d,
|
|
50
|
-
"aria-label":
|
|
50
|
+
"aria-label": n
|
|
51
51
|
}, /* @__PURE__ */ t.createElement(X, {
|
|
52
52
|
"data-hook": "tags-other-input",
|
|
53
53
|
"data-filled": c ? !0 : void 0,
|
|
@@ -55,23 +55,23 @@ const v = "Other", de = (e, n) => {
|
|
|
55
55
|
maxLength: l,
|
|
56
56
|
className: e
|
|
57
57
|
}));
|
|
58
|
-
}, T = ({ children: e, className:
|
|
59
|
-
const { value: i, label: s, isOther: l, isFirstOption: u } = r, { id: m, value: d, onChange: p, options:
|
|
58
|
+
}, T = ({ children: e, className: a, ...r }) => {
|
|
59
|
+
const { value: i, label: s, isOther: l, isFirstOption: u } = r, { id: m, value: d, onChange: p, options: n, disabled: b, readOnly: c, hasError: L } = D(), f = q(null);
|
|
60
60
|
U(() => {
|
|
61
61
|
var E;
|
|
62
62
|
u && ((E = f.current) == null || E.focus({
|
|
63
63
|
preventScroll: !0
|
|
64
64
|
}));
|
|
65
65
|
}, m);
|
|
66
|
-
const g = O(e,
|
|
66
|
+
const g = O(e, $), h = I(() => d || [], [
|
|
67
67
|
d
|
|
68
68
|
]), C = I(() => l ? h.find((E) => E === s || E.startsWith(`${s}: `)) || s : i, [
|
|
69
69
|
l,
|
|
70
70
|
h,
|
|
71
71
|
s,
|
|
72
72
|
i
|
|
73
|
-
]), _ =
|
|
74
|
-
const
|
|
73
|
+
]), _ = N((E) => {
|
|
74
|
+
const G = me(n || []), A = h.filter((Q) => G.includes(Q));
|
|
75
75
|
p(E ? [
|
|
76
76
|
...A,
|
|
77
77
|
s
|
|
@@ -79,7 +79,7 @@ const v = "Other", de = (e, n) => {
|
|
|
79
79
|
}, [
|
|
80
80
|
s,
|
|
81
81
|
p,
|
|
82
|
-
|
|
82
|
+
n,
|
|
83
83
|
h
|
|
84
84
|
]);
|
|
85
85
|
return /* @__PURE__ */ t.createElement(Y, {
|
|
@@ -90,60 +90,60 @@ const v = "Other", de = (e, n) => {
|
|
|
90
90
|
isReadOnly: c,
|
|
91
91
|
isInvalid: L
|
|
92
92
|
}, /* @__PURE__ */ t.createElement(Z, {
|
|
93
|
-
className:
|
|
94
|
-
"data-hook": `tags-${l ?
|
|
95
|
-
},
|
|
93
|
+
className: a,
|
|
94
|
+
"data-hook": `tags-${l ? R : i}`
|
|
95
|
+
}, k(g, {
|
|
96
96
|
value: i,
|
|
97
97
|
label: s,
|
|
98
98
|
isOther: l,
|
|
99
99
|
isFirstOption: u
|
|
100
100
|
})));
|
|
101
|
-
}, V = ({ children: e, className:
|
|
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") ||
|
|
103
|
-
const
|
|
101
|
+
}, V = ({ children: e, className: a }) => {
|
|
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
|
+
const n = r || [];
|
|
104
104
|
return i ? [
|
|
105
|
-
...
|
|
105
|
+
...n,
|
|
106
106
|
{
|
|
107
107
|
label: m,
|
|
108
108
|
value: m,
|
|
109
109
|
isOther: !0
|
|
110
110
|
}
|
|
111
|
-
] :
|
|
111
|
+
] : n;
|
|
112
112
|
}, [
|
|
113
113
|
r,
|
|
114
114
|
i,
|
|
115
115
|
m
|
|
116
116
|
]);
|
|
117
117
|
return p.length === 0 ? null : /* @__PURE__ */ t.createElement("div", {
|
|
118
|
-
className:
|
|
118
|
+
className: a,
|
|
119
119
|
"data-columns": l
|
|
120
|
-
}, p.map((
|
|
121
|
-
const c =
|
|
122
|
-
return
|
|
123
|
-
key:
|
|
120
|
+
}, p.map((n, b) => {
|
|
121
|
+
const c = n.value ?? n.label;
|
|
122
|
+
return k(d, {
|
|
123
|
+
key: n.isOther ? R : c,
|
|
124
124
|
value: c,
|
|
125
|
-
label:
|
|
126
|
-
isOther:
|
|
125
|
+
label: n.label,
|
|
126
|
+
isOther: n.isOther,
|
|
127
127
|
isFirstOption: b === 0
|
|
128
128
|
});
|
|
129
129
|
}));
|
|
130
|
-
},
|
|
131
|
-
const { addOther: r, addOtherLabel: i, hasError: s, readOnly: l, value: u } = D(), { t: m } = S(), d = i || m("add-other.default-other-option-label") ||
|
|
130
|
+
}, j = ({ children: e, className: a }) => {
|
|
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), n = O(e, P), b = I(() => !r || !u ? !1 : u.some((c) => c === d || c.startsWith(`${d}:`)), [
|
|
132
132
|
r,
|
|
133
133
|
u,
|
|
134
134
|
d
|
|
135
135
|
]);
|
|
136
136
|
return /* @__PURE__ */ t.createElement("div", {
|
|
137
|
-
className:
|
|
137
|
+
className: a,
|
|
138
138
|
"data-invalid": s,
|
|
139
139
|
"data-readonly": l
|
|
140
|
-
}, p, b &&
|
|
141
|
-
},
|
|
142
|
-
const { id:
|
|
140
|
+
}, p, b && n);
|
|
141
|
+
}, o = ({ children: e }) => {
|
|
142
|
+
const { id: a, value: r, onChange: i, FieldLayout: s, required: l, disabled: u, readOnly: m, hasError: d, onBlur: p, onFocus: n } = D(), { inputId: b, labelId: c, ariaDescribedBy: L } = M(), f = I(() => r || [], [
|
|
143
143
|
r
|
|
144
|
-
]), g = O(e,
|
|
144
|
+
]), g = O(e, W), h = O(e, j), C = O(e, H), _ = O(e, x);
|
|
145
145
|
return /* @__PURE__ */ t.createElement(s, {
|
|
146
|
-
fieldId:
|
|
146
|
+
fieldId: a,
|
|
147
147
|
renderLabel: () => g,
|
|
148
148
|
renderInput: () => /* @__PURE__ */ t.createElement(se, {
|
|
149
149
|
id: b,
|
|
@@ -151,7 +151,7 @@ const v = "Other", de = (e, n) => {
|
|
|
151
151
|
ariaDescribedBy: L,
|
|
152
152
|
required: l,
|
|
153
153
|
onBlur: p,
|
|
154
|
-
onFocus:
|
|
154
|
+
onFocus: n
|
|
155
155
|
}, /* @__PURE__ */ t.createElement(J, {
|
|
156
156
|
"aria-labelledby": c,
|
|
157
157
|
value: f,
|
|
@@ -165,49 +165,49 @@ const v = "Other", de = (e, n) => {
|
|
|
165
165
|
});
|
|
166
166
|
};
|
|
167
167
|
V.Option = T;
|
|
168
|
-
T.Label =
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
const pe = "
|
|
168
|
+
T.Label = $;
|
|
169
|
+
o.Label = W;
|
|
170
|
+
o.Control = j;
|
|
171
|
+
o.Options = V;
|
|
172
|
+
o.OtherInput = P;
|
|
173
|
+
o.Description = H;
|
|
174
|
+
o.Error = x;
|
|
175
|
+
const pe = "_control_tjqha_1", he = "_options_tjqha_7", Ee = "_option_tjqha_7", be = "_optionHover_tjqha_74", Oe = "_optionSelected_tjqha_74", v = {
|
|
176
176
|
control: pe,
|
|
177
177
|
options: he,
|
|
178
178
|
option: Ee,
|
|
179
179
|
optionHover: be,
|
|
180
180
|
optionSelected: Oe
|
|
181
|
-
}, fe = ({ content: e, locale:
|
|
181
|
+
}, fe = ({ content: e, locale: a }) => /* @__PURE__ */ t.createElement(w, {
|
|
182
182
|
content: e,
|
|
183
|
-
locale:
|
|
183
|
+
locale: a
|
|
184
184
|
}), Ie = {
|
|
185
|
-
base:
|
|
186
|
-
selected:
|
|
187
|
-
hover:
|
|
188
|
-
},
|
|
185
|
+
base: v.option,
|
|
186
|
+
selected: v.optionSelected,
|
|
187
|
+
hover: v.optionHover
|
|
188
|
+
}, qe = () => {
|
|
189
189
|
const e = ie({
|
|
190
190
|
globalClasses: re,
|
|
191
191
|
moduleClasses: Ie
|
|
192
|
-
}),
|
|
193
|
-
return /* @__PURE__ */ t.createElement(
|
|
192
|
+
}), a = ce();
|
|
193
|
+
return /* @__PURE__ */ t.createElement(o, null, /* @__PURE__ */ t.createElement(o.Label, {
|
|
194
194
|
className: F(ee, y.label)
|
|
195
|
-
}, /* @__PURE__ */ t.createElement(
|
|
195
|
+
}, /* @__PURE__ */ t.createElement(o.Label.Required, {
|
|
196
196
|
className: F(te, y.requiredMark)
|
|
197
|
-
})), /* @__PURE__ */ t.createElement(
|
|
198
|
-
className:
|
|
199
|
-
}, /* @__PURE__ */ t.createElement(
|
|
200
|
-
className: F(
|
|
201
|
-
}, /* @__PURE__ */ t.createElement(
|
|
197
|
+
})), /* @__PURE__ */ t.createElement(o.Control, {
|
|
198
|
+
className: v.control
|
|
199
|
+
}, /* @__PURE__ */ t.createElement(o.Options, {
|
|
200
|
+
className: F(ae, v.options)
|
|
201
|
+
}, /* @__PURE__ */ t.createElement(o.Options.Option, {
|
|
202
202
|
className: e
|
|
203
|
-
}, /* @__PURE__ */ t.createElement(
|
|
204
|
-
className:
|
|
205
|
-
})), /* @__PURE__ */ t.createElement(
|
|
206
|
-
className: F(
|
|
207
|
-
}, /* @__PURE__ */ t.createElement(le, null), /* @__PURE__ */ t.createElement(
|
|
208
|
-
className: F(
|
|
203
|
+
}, /* @__PURE__ */ t.createElement(o.Options.Option.Label, null))), /* @__PURE__ */ t.createElement(o.OtherInput, {
|
|
204
|
+
className: a
|
|
205
|
+
})), /* @__PURE__ */ t.createElement(o.Error, {
|
|
206
|
+
className: F(ne, y.error)
|
|
207
|
+
}, /* @__PURE__ */ t.createElement(le, null), /* @__PURE__ */ t.createElement(o.Error.Text, null)), /* @__PURE__ */ t.createElement(o.Description, {
|
|
208
|
+
className: F(oe, y.description)
|
|
209
209
|
}, fe));
|
|
210
210
|
};
|
|
211
211
|
export {
|
|
212
|
-
|
|
212
|
+
qe as T
|
|
213
213
|
};
|
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import { RicosViewer as
|
|
1
|
+
import { RicosViewer as S } from "@wix/ricos/viewer";
|
|
2
2
|
import o from "classnames";
|
|
3
|
-
import r, { useCallback as
|
|
4
|
-
import { TextField as
|
|
5
|
-
import {
|
|
3
|
+
import r, { useCallback as N, useRef as T } from "react";
|
|
4
|
+
import { TextField as O, TextArea as y } from "react-aria-components";
|
|
5
|
+
import { bo as p, bl as d, bq as x, S as v, a0 as g, H as h, v as q } from "./form-DhIEC3nB.js";
|
|
6
6
|
import { f as i } from "./find-child-C60k4CxG.js";
|
|
7
|
-
import { D as
|
|
8
|
-
import { L as k } from "./field-label-headless-
|
|
7
|
+
import { D as M, E as B } from "./field-error-headless-RylIeqXr.js";
|
|
8
|
+
import { L as k } from "./field-label-headless-d3hZxIEc.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 V } from "./use-text-input-class-name-
|
|
10
|
+
import { s as c } from "./field-rac.module-DP0lkkEv.js";
|
|
11
|
+
import { u as V } from "./use-text-input-class-name-CrEjJ2Z8.js";
|
|
12
12
|
const e = ({ children: t }) => {
|
|
13
|
-
const { id: a, value: m, onChange: s, disabled: u, required: n, readOnly: l, onBlur: E, onFocus: b, FieldLayout: I, hasError: f } = p(), { labelId:
|
|
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 = N((A) => {
|
|
14
14
|
s(A);
|
|
15
15
|
}, [
|
|
16
16
|
s
|
|
17
|
-
]),
|
|
17
|
+
]), R = i(t, e.Label), D = i(t, e.Input), _ = i(t, e.Description), C = i(t, e.Error);
|
|
18
18
|
return /* @__PURE__ */ r.createElement(I, {
|
|
19
19
|
fieldId: a,
|
|
20
|
-
renderLabel: () =>
|
|
21
|
-
renderInput: () => /* @__PURE__ */ r.createElement(
|
|
22
|
-
"aria-labelledby":
|
|
20
|
+
renderLabel: () => R,
|
|
21
|
+
renderInput: () => /* @__PURE__ */ r.createElement(O, {
|
|
22
|
+
"aria-labelledby": F,
|
|
23
23
|
value: m ?? "",
|
|
24
|
-
onChange:
|
|
24
|
+
onChange: L,
|
|
25
25
|
isDisabled: u,
|
|
26
26
|
isReadOnly: l,
|
|
27
27
|
isRequired: n,
|
|
@@ -31,11 +31,13 @@ const e = ({ children: t }) => {
|
|
|
31
31
|
}, D),
|
|
32
32
|
renderDescription: () => /* @__PURE__ */ r.createElement(r.Fragment, null, C, _)
|
|
33
33
|
});
|
|
34
|
-
},
|
|
35
|
-
const { inputId: a, ariaDescribedBy: m } = d(), { id: s, placeholder: u } = p(), n =
|
|
34
|
+
}, w = ({ className: t }) => {
|
|
35
|
+
const { inputId: a, ariaDescribedBy: m } = d(), { id: s, placeholder: u } = p(), n = T(null);
|
|
36
36
|
return x(() => {
|
|
37
37
|
var l;
|
|
38
|
-
(l = n.current) == null || l.focus(
|
|
38
|
+
(l = n.current) == null || l.focus({
|
|
39
|
+
preventScroll: !0
|
|
40
|
+
});
|
|
39
41
|
}, s), /* @__PURE__ */ r.createElement(y, {
|
|
40
42
|
ref: n,
|
|
41
43
|
id: a,
|
|
@@ -45,27 +47,27 @@ const e = ({ children: t }) => {
|
|
|
45
47
|
});
|
|
46
48
|
};
|
|
47
49
|
e.Label = k;
|
|
48
|
-
e.Input =
|
|
49
|
-
e.Description =
|
|
50
|
+
e.Input = w;
|
|
51
|
+
e.Description = M;
|
|
50
52
|
e.Error = B;
|
|
51
|
-
const
|
|
52
|
-
input:
|
|
53
|
-
},
|
|
53
|
+
const H = "_input_ug5v8_1", Q = {
|
|
54
|
+
input: H
|
|
55
|
+
}, U = ({ content: t, locale: a }) => /* @__PURE__ */ r.createElement(S, {
|
|
54
56
|
content: t,
|
|
55
57
|
locale: a
|
|
56
58
|
}), re = () => {
|
|
57
|
-
const t = V(
|
|
59
|
+
const t = V(Q.input);
|
|
58
60
|
return /* @__PURE__ */ r.createElement(e, null, /* @__PURE__ */ r.createElement(e.Label, {
|
|
59
|
-
className: o(
|
|
61
|
+
className: o(v, c.label)
|
|
60
62
|
}, /* @__PURE__ */ r.createElement(e.Label.Required, {
|
|
61
|
-
className: o(
|
|
63
|
+
className: o(g, c.requiredMark)
|
|
62
64
|
})), /* @__PURE__ */ r.createElement(e.Input, {
|
|
63
65
|
className: t
|
|
64
66
|
}), /* @__PURE__ */ r.createElement(e.Error, {
|
|
65
|
-
className: o(
|
|
67
|
+
className: o(h, c.error)
|
|
66
68
|
}, /* @__PURE__ */ r.createElement(P, null), /* @__PURE__ */ r.createElement(e.Error.Text, null)), /* @__PURE__ */ r.createElement(e.Description, {
|
|
67
|
-
className: o(
|
|
68
|
-
},
|
|
69
|
+
className: o(q, c.description)
|
|
70
|
+
}, U));
|
|
69
71
|
};
|
|
70
72
|
export {
|
|
71
73
|
re as T
|
package/dist/component/{text-input-field-rac-CqENSUUX.js → text-input-field-rac-BmQlXTK9.js}
RENAMED
|
@@ -1,12 +1,12 @@
|
|
|
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-BsrjGTK4.js";
|
|
5
5
|
import { E as o } from "./error-icon-hZxQ6DEy.js";
|
|
6
|
-
import { s as a } from "./field-rac.module-
|
|
7
|
-
import {
|
|
8
|
-
import { u as p } from "./use-text-input-class-name-
|
|
9
|
-
const
|
|
6
|
+
import { s as a } from "./field-rac.module-DP0lkkEv.js";
|
|
7
|
+
import { S as n, a0 as c, H as E, v as i } from "./form-DhIEC3nB.js";
|
|
8
|
+
import { u as p } from "./use-text-input-class-name-CrEjJ2Z8.js";
|
|
9
|
+
const I = ({ content: s, locale: m }) => /* @__PURE__ */ e.createElement(l, {
|
|
10
10
|
content: s,
|
|
11
11
|
locale: m
|
|
12
12
|
}), C = () => {
|
|
@@ -21,7 +21,7 @@ const R = ({ content: s, locale: m }) => /* @__PURE__ */ e.createElement(l, {
|
|
|
21
21
|
className: t(E, a.error)
|
|
22
22
|
}, /* @__PURE__ */ e.createElement(o, null), /* @__PURE__ */ e.createElement(r.Error.Text, null)), /* @__PURE__ */ e.createElement(r.Description, {
|
|
23
23
|
className: t(i, a.description)
|
|
24
|
-
},
|
|
24
|
+
}, I));
|
|
25
25
|
};
|
|
26
26
|
export {
|
|
27
27
|
C as T
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import t, { useRef as v } from "react";
|
|
2
|
+
import { TextField as C, Input as R } from "react-aria-components";
|
|
3
|
+
import { bo as c, bl as d, bq as T } from "./form-DhIEC3nB.js";
|
|
4
|
+
import { f as l } from "./find-child-C60k4CxG.js";
|
|
5
|
+
import { D as g, E as h } from "./field-error-headless-RylIeqXr.js";
|
|
6
|
+
import { L as q } from "./field-label-headless-d3hZxIEc.js";
|
|
7
|
+
const e = ({ children: r }) => {
|
|
8
|
+
const { id: s, value: a, onChange: i, disabled: u, readOnly: n, required: o, hasError: p, onBlur: m, onFocus: b, autoComplete: f, FieldLayout: E } = c(), { labelId: I } = d(), F = l(r, e.Label), y = l(r, e.Input), D = l(r, e.Description), L = l(r, e.Error);
|
|
9
|
+
return /* @__PURE__ */ t.createElement(E, {
|
|
10
|
+
fieldId: s,
|
|
11
|
+
renderLabel: () => F,
|
|
12
|
+
renderInput: () => /* @__PURE__ */ t.createElement(C, {
|
|
13
|
+
autoComplete: f,
|
|
14
|
+
"aria-labelledby": I,
|
|
15
|
+
value: a ?? "",
|
|
16
|
+
onChange: i,
|
|
17
|
+
isDisabled: u,
|
|
18
|
+
isReadOnly: n,
|
|
19
|
+
isRequired: o,
|
|
20
|
+
isInvalid: p,
|
|
21
|
+
onBlur: m,
|
|
22
|
+
onFocus: b
|
|
23
|
+
}, y),
|
|
24
|
+
renderDescription: () => /* @__PURE__ */ t.createElement(t.Fragment, null, L, D)
|
|
25
|
+
});
|
|
26
|
+
}, x = ({ className: r }) => {
|
|
27
|
+
const { id: s, placeholder: a } = c(), { inputId: i, ariaDescribedBy: u } = d(), n = v(null);
|
|
28
|
+
return T(() => {
|
|
29
|
+
var o;
|
|
30
|
+
(o = n.current) == null || o.focus({
|
|
31
|
+
preventScroll: !0
|
|
32
|
+
});
|
|
33
|
+
}, s), /* @__PURE__ */ t.createElement(R, {
|
|
34
|
+
ref: n,
|
|
35
|
+
id: i,
|
|
36
|
+
"aria-describedby": u,
|
|
37
|
+
className: r,
|
|
38
|
+
placeholder: a
|
|
39
|
+
});
|
|
40
|
+
};
|
|
41
|
+
e.Label = q;
|
|
42
|
+
e.Input = x;
|
|
43
|
+
e.Description = g;
|
|
44
|
+
e.Error = h;
|
|
45
|
+
export {
|
|
46
|
+
e as T
|
|
47
|
+
};
|