@wix/form-elements 1.172.0 → 1.174.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-DZ0SFXmL.js → appointment-rac-DIV9zgmZ.js} +80 -80
- package/dist/component/{bookings-address-rac-BW9grc77.js → bookings-address-rac-C5cT4gkX.js} +1 -1
- package/dist/component/{bookings-email-rac-D8gMaAfB.js → bookings-email-rac-CQEhRS7N.js} +1 -1
- package/dist/component/{bookings-first-name-rac-CAjcs7b6.js → bookings-first-name-rac-BwdasJXd.js} +1 -1
- package/dist/component/{bookings-header-rac-BhKZ1kku.js → bookings-header-rac-CWzKq3yr.js} +1 -1
- package/dist/component/{bookings-last-name-rac-DpsMDuU0.js → bookings-last-name-rac-CoVWqEy5.js} +1 -1
- package/dist/component/{bookings-login-bar-rac-BVdWmKS8.js → bookings-login-bar-rac-DwoI-iRQ.js} +4 -4
- package/dist/component/{bookings-phone-rac-DsqNi2mI.js → bookings-phone-rac-WAZU-1kD.js} +1 -1
- package/dist/component/{bookings-rich-text-rac-elM4Ne3f.js → bookings-rich-text-rac-I5Uo-q87.js} +1 -1
- package/dist/component/{checkbox-field-rac-BU4E73fD.js → checkbox-field-rac-CKbKBNcQ.js} +43 -43
- package/dist/component/{checkbox-group-field-headless-6yJdIbP2.js → checkbox-group-field-headless-7PMj-zW6.js} +47 -47
- package/dist/component/{checkbox-group-field-rac-CojbCWSF.js → checkbox-group-field-rac-BZ-YgEYR.js} +4 -4
- package/dist/component/{checkbox-group-rac-3qUVUc-C.js → checkbox-group-rac-CED8h4qI.js} +1 -1
- package/dist/component/{checkbox-rac-DwbTapd_.js → checkbox-rac-CbpEXMBz.js} +1 -1
- package/dist/component/{contacts-address-rac-BL7XDZuP.js → contacts-address-rac-F3Ui7iJu.js} +1 -1
- package/dist/component/{contacts-birthdate-rac-DeJYIHAg.js → contacts-birthdate-rac-CcxRV3RQ.js} +1 -1
- package/dist/component/{contacts-company-rac-BeImf5uc.js → contacts-company-rac-mDY20HzW.js} +1 -1
- package/dist/component/{contacts-email-rac-CtacwrZ0.js → contacts-email-rac-CoBPNuCj.js} +1 -1
- package/dist/component/{contacts-first-name-rac-CAdOqOOA.js → contacts-first-name-rac-DzbpBmNm.js} +1 -1
- package/dist/component/{contacts-last-name-rac-Db9mHzCW.js → contacts-last-name-rac-DEmV-MNE.js} +1 -1
- package/dist/component/{contacts-phone-rac-W0OLEbzL.js → contacts-phone-rac-BlEpatWP.js} +1 -1
- package/dist/component/{contacts-position-rac-CV4Ibt4Z.js → contacts-position-rac-DlZahRQc.js} +1 -1
- package/dist/component/{contacts-subscribe-rac-CQ3Q1pjZ.js → contacts-subscribe-rac-LXCEPvXl.js} +1 -1
- package/dist/component/{contacts-tax-id-rac-Dux-pk6r.js → contacts-tax-id-rac-DS0SDAtC.js} +1 -1
- package/dist/component/{date-availability-RkX-Qw7G.js → date-availability-DTFyrU8J.js} +1 -1
- package/dist/component/{date-input-field-rac-CYCT6qoa.js → date-input-field-rac-D7Pv-hqW.js} +62 -62
- package/dist/component/{date-input-rac-BkYZ7q_o.js → date-input-rac-BEsh54Gz.js} +1 -1
- package/dist/component/{date-picker-field-rac-eMidYtsl.js → date-picker-field-rac-DJirD93a.js} +15 -15
- package/dist/component/{date-picker-rac-D23rxZcF.js → date-picker-rac-B1fUqj_w.js} +1 -1
- package/dist/component/{date-time-input-field-rac-BjIj4dXQ.js → date-time-input-field-rac-CPFaQUXF.js} +38 -38
- package/dist/component/{date-time-input-rac-BSGAdk9L.js → date-time-input-rac-CAozBO0e.js} +1 -1
- package/dist/component/{dext-checkbox-group-rac-Xmb5IKrb.js → dext-checkbox-group-rac-B0yqJoj8.js} +2 -2
- package/dist/component/{dext-checkbox-rac-2eA7y0ld.js → dext-checkbox-rac-yZaUdHz1.js} +1 -1
- package/dist/component/{dext-date-picker-rac-CmLxVGGT.js → dext-date-picker-rac-AJ7XIW-h.js} +1 -1
- package/dist/component/{dext-date-time-input-rac-Cd9nwSjb.js → dext-date-time-input-rac-CPs79sUY.js} +1 -1
- package/dist/component/{dext-dropdown-rac-BKdQ0nGS.js → dext-dropdown-rac-W2QzqPG4.js} +1 -1
- package/dist/component/{dext-email-rac-07zDPxyf.js → dext-email-rac-CCW1Dk1m.js} +1 -1
- package/dist/component/{dext-number-input-rac-DRvGuppY.js → dext-number-input-rac-BAInaxoF.js} +1 -1
- package/dist/component/{dext-phone-rac-CKtTVjFg.js → dext-phone-rac-CYYgZiFW.js} +1 -1
- package/dist/component/{dext-radio-group-rac-BsBmMufq.js → dext-radio-group-rac-Dqvmxoai.js} +2 -2
- package/dist/component/{dext-rating-input-rac-CcFSTAIh.js → dext-rating-input-rac-CWl7X0zW.js} +1 -1
- package/dist/component/{dext-tags-rac-CCTDlCvX.js → dext-tags-rac-BpAfPh55.js} +2 -2
- package/dist/component/{dext-text-area-rac-Cif8po9h.js → dext-text-area-rac-CLTg8XXH.js} +1 -1
- package/dist/component/{dext-text-input-rac-2118X4iF.js → dext-text-input-rac-BV-F-ZsP.js} +1 -1
- package/dist/component/{dext-url-input-rac-DDImGkQe.js → dext-url-input-rac-B9wHRaZr.js} +1 -1
- package/dist/component/{donation-rac-Dnylss1d.js → donation-rac-Be4swKWD.js} +50 -50
- package/dist/component/{dropdown-field-rac-DDI4ZgZH.js → dropdown-field-rac-BFEB_WuX.js} +3 -3
- package/dist/component/{dropdown-rac-DX0Z3R_8.js → dropdown-rac-Dz7QtFVB.js} +1 -1
- package/dist/component/{ecom-address-rac-D9MeEQsk.js → ecom-address-rac-Bu6msDgo.js} +1 -1
- package/dist/component/{ecom-subscription-checkbox-rac-DKJ9j5dj.js → ecom-subscription-checkbox-rac-BRovQqrM.js} +2 -2
- package/dist/component/{email-input-field-rac-DaKrmlwe.js → email-input-field-rac-EERVxm6G.js} +42 -42
- package/dist/component/{events-repeater-rac-DWrOLT0Y.js → events-repeater-rac-xs0pooBs.js} +49 -49
- package/dist/component/{events-rsvp-rac-YBTR1tR0.js → events-rsvp-rac-CMi-8EqK.js} +3 -3
- package/dist/component/{field-error-headless-jksFrezt.js → field-error-headless-DbFXeaud.js} +8 -8
- package/dist/component/{field-label-headless-BBvJAVxI.js → field-label-headless-CWOYHPsb.js} +11 -11
- package/dist/component/{file-upload-rac-CgdmfUZG.js → file-upload-rac-vbMTIdDc.js} +61 -61
- package/dist/component/{fixed-payment-rac-v6rKwzFs.js → fixed-payment-rac-BRk7ams_.js} +7 -7
- package/dist/component/{form-BsiK682r.js → form-BjeODFzx.js} +238 -237
- package/dist/component/form.css +1 -1
- package/dist/component/form.js +1 -1
- package/dist/component/{header-field-rac-BuXybl7K.js → header-field-rac-CQexwZn7.js} +2 -2
- package/dist/component/{header-rac-CDyaLosW.js → header-rac-CYbPDl4_.js} +1 -1
- package/dist/component/{image-choice-rac-BRlMroBw.js → image-choice-rac-DDvlaK6K.js} +15 -15
- package/dist/component/{index-BanOeCAF.js → index-B6wFpWpe.js} +4 -4
- package/dist/component/{index-y9URYGEE.js → index-Bs9ypEe2.js} +6 -6
- package/dist/component/{isObjectLike-BG9nJ-rx.js → isObjectLike-Xcw2hQQ6.js} +1 -1
- package/dist/component/{multiline-address-field-rac-DRAkxI1l.js → multiline-address-field-rac-CYJR-MUz.js} +209 -209
- package/dist/component/{multiline-address-rac-JjTzWsEb.js → multiline-address-rac-DO1j_w6S.js} +1 -1
- package/dist/component/{number-input-field-rac-QrouG7Hv.js → number-input-field-rac-C-qvd8v9.js} +18 -18
- package/dist/component/{number-input-rac-DGmE7cLv.js → number-input-rac-CQSaifZE.js} +1 -1
- package/dist/component/{password-rac-DeyY228m.js → password-rac-CqnbZtR_.js} +28 -28
- package/dist/component/{payment-input-rac-DmIennLi.js → payment-input-rac-CbOcztkp.js} +28 -28
- package/dist/component/{phone-input-field-rac-F7e74TGA.js → phone-input-field-rac-BQ187I2C.js} +55 -55
- package/dist/component/{phone-rac-CQfB2CQD.js → phone-rac-CbA2xqF3.js} +1 -1
- package/dist/component/{product-list-rac--GGG8vvO.js → product-list-rac-MxB9tRiE.js} +103 -103
- package/dist/component/{quiz-radio-group-rac-DF2C2vNq.js → quiz-radio-group-rac-IViaDVRW.js} +1 -1
- package/dist/component/{radio-button-module-classes-DmpNo6F2.js → radio-button-module-classes-jtnooKMO.js} +33 -33
- package/dist/component/{radio-group-field-rac-BGcPYfKO.js → radio-group-field-rac-g3SQGJPp.js} +4 -4
- package/dist/component/{radio-group-rac-CqysUMCE.js → radio-group-rac-D8wmzlbu.js} +1 -1
- package/dist/component/{rating-input-field-rac-D-ei917Y.js → rating-input-field-rac-BqPXKKdi.js} +15 -15
- package/dist/component/{rating-input-rac-a9zJ74fw.js → rating-input-rac-CeZIpOmm.js} +1 -1
- package/dist/component/{rich-content-rac.module-CvyLVlXL.js → rich-content-rac.module-BLgdpRh_.js} +5 -5
- package/dist/component/{rich-text-field-rac-vf19nvyw.js → rich-text-field-rac-BpSVobCQ.js} +6 -6
- package/dist/component/{rich-text-rac-Cx_wpoxC.js → rich-text-rac-DqpaqbFH.js} +1 -1
- package/dist/component/{service-dropdown-rac-DITzKQxd.js → service-dropdown-rac-DKgtga1t.js} +30 -30
- package/dist/component/{services-multi-choice-rac-BtisN0Aq.js → services-multi-choice-rac-CAyB0b4q.js} +9 -9
- package/dist/component/{signature-rac-DUeIoS5O.js → signature-rac-DC20YN4f.js} +97 -97
- package/dist/component/{submit-button-rac-C8h6zeTw.js → submit-button-rac-ClWtqIkR.js} +30 -30
- package/dist/component/{tags-field-rac-CjFuiB0n.js → tags-field-rac-DHM9k8uf.js} +18 -18
- package/dist/component/{tags-rac-BO7rwyLl.js → tags-rac-Clg50jwY.js} +1 -1
- package/dist/component/{text-area-field-rac-CgUx3nQ0.js → text-area-field-rac-B2qJZ6wR.js} +16 -16
- package/dist/component/{text-area-rac-WgXYXIaf.js → text-area-rac-BwsVk7u7.js} +1 -1
- package/dist/component/{text-input-field-rac-DaxWFha-.js → text-input-field-rac-BQbo-3Ly.js} +6 -6
- package/dist/component/{text-input-headless-hjuRJTZN.js → text-input-headless-WICGIHcN.js} +3 -3
- package/dist/component/{text-input-rac-BzumrJBj.js → text-input-rac-D7BRYDZr.js} +1 -1
- package/dist/component/{time-input-rac-2FEkpQ7M.js → time-input-rac-Dnp-0_Js.js} +22 -22
- package/dist/component/{url-input-field-rac-BZ9f8D8I.js → url-input-field-rac-MC13zKST.js} +19 -19
- package/dist/component/{url-input-rac-D-AVlxkD.js → url-input-rac-DfAtTmKv.js} +1 -1
- package/dist/component/{use-dropdown-option-class-name-DwAAtzgX.js → use-dropdown-option-class-name-CVUEosg4.js} +2 -2
- package/dist/component/{use-dropdown-trigger-class-name-D-6n9YVG.js → use-dropdown-trigger-class-name-BHLG7EB-.js} +25 -25
- package/dist/component/{use-element-state-class-name-C5auxwhj.js → use-element-state-class-name-BVJylHPn.js} +3 -3
- package/dist/component/{use-hoverable-input-class-name-Nd2jqfz4.js → use-hoverable-input-class-name-DO9ctJ81.js} +2 -2
- package/dist/component/{use-is-forced-open-dropdown-CKaHhCqp.js → use-is-forced-open-dropdown-Czuo32Nq.js} +8 -8
- package/dist/component/{use-service-options-base-CvluFheT.js → use-service-options-base-DUuGIm38.js} +1 -1
- package/dist/component/use-text-input-class-name-LEnNGX0a.js +6 -0
- package/package.json +2 -2
- package/dist/component/use-text-input-class-name-DGTlYJxC.js +0 -6
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import t, { useRef as X, useCallback as y } from "react";
|
|
2
|
-
import
|
|
2
|
+
import J from "@wix/editor-react-components/AnimatedIcon";
|
|
3
3
|
import p from "classnames";
|
|
4
|
-
import {
|
|
4
|
+
import { bL as b, bF as K, aF as $, aE as j, aC as q, aB as z, aK as G, aJ as Q, aD as Y, b as Z, aA as tt, aI as et } from "./form-BjeODFzx.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-BVJylHPn.js";
|
|
8
8
|
function ot(e) {
|
|
9
9
|
const s = "calc(50% - 2px)";
|
|
10
10
|
return /* @__PURE__ */ t.createElement(nt, {
|
|
@@ -46,15 +46,15 @@ const r = ({ children: e }) => {
|
|
|
46
46
|
renderDescription: () => null
|
|
47
47
|
});
|
|
48
48
|
}, g = ({ className: e, children: o }) => {
|
|
49
|
-
const s = c(o,
|
|
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
54
|
const { showPreviousButton: a, onPreviousClick: i, previousText: v } = b();
|
|
55
55
|
if (!a)
|
|
56
56
|
return null;
|
|
57
|
-
const l = c(n,
|
|
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,
|
|
@@ -62,11 +62,11 @@ const r = ({ children: e }) => {
|
|
|
62
62
|
onHoverStart: o,
|
|
63
63
|
onHoverEnd: s
|
|
64
64
|
}, m, l ?? /* @__PURE__ */ t.createElement(W, null));
|
|
65
|
-
},
|
|
65
|
+
}, E = ({ className: e, onHoverStart: o, onHoverEnd: s, children: n }) => {
|
|
66
66
|
const { showNextButton: a, onNextClick: i, nextText: v } = b();
|
|
67
67
|
if (!a)
|
|
68
68
|
return null;
|
|
69
|
-
const l = c(n,
|
|
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,
|
|
@@ -110,15 +110,15 @@ const r = ({ children: e }) => {
|
|
|
110
110
|
B.Label = D;
|
|
111
111
|
B.Icon = R;
|
|
112
112
|
B.Loader = st;
|
|
113
|
-
|
|
114
|
-
E.Icon = R;
|
|
115
|
-
S.Label = V;
|
|
113
|
+
S.Label = W;
|
|
116
114
|
S.Icon = R;
|
|
117
|
-
|
|
118
|
-
|
|
115
|
+
E.Label = V;
|
|
116
|
+
E.Icon = R;
|
|
117
|
+
g.PreviousButton = S;
|
|
118
|
+
g.NextButton = E;
|
|
119
119
|
g.SubmitButton = B;
|
|
120
120
|
r.SubmitButton = g;
|
|
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",
|
|
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,
|
|
@@ -129,7 +129,7 @@ const at = "_navigationContainer_16wic_1", rt = "_rowSpacing_16wic_6", ut = "_na
|
|
|
129
129
|
buttonNoSteps: Bt,
|
|
130
130
|
buttonWithSteps: bt,
|
|
131
131
|
buttonHover: vt,
|
|
132
|
-
progress:
|
|
132
|
+
progress: St
|
|
133
133
|
}, P = () => {
|
|
134
134
|
const e = X(null), o = y(() => {
|
|
135
135
|
var n;
|
|
@@ -145,14 +145,14 @@ const at = "_navigationContainer_16wic_1", rt = "_rowSpacing_16wic_6", ut = "_na
|
|
|
145
145
|
};
|
|
146
146
|
}, O = ({ icon: e, iconRef: o, iconClassName: s }) => {
|
|
147
147
|
const { wix: n, className: a, ...i } = e ?? {};
|
|
148
|
-
return i.svg ? /* @__PURE__ */ t.createElement(
|
|
148
|
+
return i.svg ? /* @__PURE__ */ t.createElement(J, {
|
|
149
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, k;
|
|
155
|
-
const { hasSteps: e, showPreviousButton: o, isDisabled: s, isInProgress: n, isSubmitting: a } = b(), v = !s && !(a || n), l =
|
|
155
|
+
const { hasSteps: e, showPreviousButton: o, isDisabled: s, isInProgress: n, isSubmitting: a } = b(), v = !s && !(a || n), l = K(), 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 = (k = (M = l.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),
|
|
@@ -173,7 +173,7 @@ const at = "_navigationContainer_16wic_1", rt = "_rowSpacing_16wic_6", ut = "_na
|
|
|
173
173
|
}),
|
|
174
174
|
hover: u.buttonHover
|
|
175
175
|
}
|
|
176
|
-
}),
|
|
176
|
+
}), L = P(), H = P(), T = P();
|
|
177
177
|
return /* @__PURE__ */ t.createElement(r, null, /* @__PURE__ */ t.createElement(r.SubmitButton, {
|
|
178
178
|
className: p({
|
|
179
179
|
[u.navigationContainer]: e,
|
|
@@ -187,42 +187,42 @@ 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: $
|
|
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: j
|
|
195
195
|
}))), /* @__PURE__ */ t.createElement(r.SubmitButton.NextButton, {
|
|
196
196
|
className: ({ isHovered: N }) => d({
|
|
197
197
|
isSelected: !1,
|
|
198
198
|
isHovered: N
|
|
199
199
|
}),
|
|
200
|
-
onHoverStart:
|
|
201
|
-
onHoverEnd:
|
|
200
|
+
onHoverStart: H.onHoverStart,
|
|
201
|
+
onHoverEnd: H.onHoverEnd
|
|
202
202
|
}, /* @__PURE__ */ t.createElement(r.SubmitButton.NextButton.Label, {
|
|
203
|
-
className:
|
|
203
|
+
className: q
|
|
204
204
|
}), /* @__PURE__ */ t.createElement(r.SubmitButton.NextButton.Icon, null, /* @__PURE__ */ t.createElement(O, {
|
|
205
205
|
icon: C,
|
|
206
|
-
iconRef:
|
|
207
|
-
iconClassName:
|
|
206
|
+
iconRef: H.iconRef,
|
|
207
|
+
iconClassName: z
|
|
208
208
|
}))), /* @__PURE__ */ t.createElement(r.SubmitButton.SubmitButton, {
|
|
209
209
|
className: ({ isHovered: N }) => _({
|
|
210
210
|
isSelected: !1,
|
|
211
211
|
isHovered: N,
|
|
212
212
|
isInteractive: v
|
|
213
213
|
}),
|
|
214
|
-
onHoverStart:
|
|
215
|
-
onHoverEnd:
|
|
214
|
+
onHoverStart: L.onHoverStart,
|
|
215
|
+
onHoverEnd: L.onHoverEnd
|
|
216
216
|
}, /* @__PURE__ */ t.createElement(r.SubmitButton.SubmitButton.Label, {
|
|
217
217
|
className: G
|
|
218
218
|
}), /* @__PURE__ */ t.createElement(r.SubmitButton.SubmitButton.Icon, null, /* @__PURE__ */ t.createElement(O, {
|
|
219
219
|
icon: m,
|
|
220
|
-
iconRef:
|
|
220
|
+
iconRef: L.iconRef,
|
|
221
221
|
iconClassName: Q
|
|
222
222
|
})), /* @__PURE__ */ t.createElement(r.SubmitButton.SubmitButton.Loader, {
|
|
223
223
|
className: u.progress
|
|
224
224
|
}))));
|
|
225
|
-
}, It = () => /* @__PURE__ */ t.createElement(
|
|
225
|
+
}, It = () => /* @__PURE__ */ t.createElement(Et, null);
|
|
226
226
|
export {
|
|
227
227
|
It as SubmitButtonRAC
|
|
228
228
|
};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { RicosViewer as
|
|
1
|
+
import { RicosViewer as j } from "@wix/ricos/viewer";
|
|
2
2
|
import F from "classnames";
|
|
3
|
-
import t, { useMemo as I, useState as
|
|
4
|
-
import { CheckboxGroup as
|
|
5
|
-
import {
|
|
3
|
+
import t, { useMemo as I, useState as w, useRef as A, useLayoutEffect as z, useCallback as N } from "react";
|
|
4
|
+
import { CheckboxGroup as B, TextField as J, Input as K, CheckboxField as Y, CheckboxButton as Z } from "react-aria-components";
|
|
5
|
+
import { bL as D, bI as M, bV as S, bN as U, X as ee, am as te, ax as oe, M as ne, I as ae, ay as re } from "./form-BjeODFzx.js";
|
|
6
6
|
import { f as O, a as k } from "./find-child-C60k4CxG.js";
|
|
7
|
-
import { E as
|
|
8
|
-
import { L as $ } from "./field-label-headless-
|
|
7
|
+
import { E as W, D as H } from "./field-error-headless-DbFXeaud.js";
|
|
8
|
+
import { L as $ } from "./field-label-headless-CWOYHPsb.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-BVJylHPn.js";
|
|
13
|
+
import { u as ce } from "./use-text-input-class-name-LEnNGX0a.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
|
})({});
|
|
@@ -26,8 +26,8 @@ const v = "Other", de = (e, o) => {
|
|
|
26
26
|
const { value: o, 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") || v, b = I(() => de(o || [], n), [
|
|
27
27
|
o,
|
|
28
28
|
n
|
|
29
|
-
]), [c, L] =
|
|
30
|
-
|
|
29
|
+
]), [c, L] = w(b), f = A(r);
|
|
30
|
+
z(() => {
|
|
31
31
|
f.current = r;
|
|
32
32
|
});
|
|
33
33
|
const g = N((h) => {
|
|
@@ -41,14 +41,14 @@ const v = "Other", de = (e, o) => {
|
|
|
41
41
|
o,
|
|
42
42
|
n
|
|
43
43
|
]);
|
|
44
|
-
return /* @__PURE__ */ t.createElement(
|
|
44
|
+
return /* @__PURE__ */ t.createElement(J, {
|
|
45
45
|
value: c,
|
|
46
46
|
onChange: g,
|
|
47
47
|
isDisabled: u,
|
|
48
48
|
isReadOnly: m,
|
|
49
49
|
isInvalid: d,
|
|
50
50
|
"aria-label": n
|
|
51
|
-
}, /* @__PURE__ */ t.createElement(
|
|
51
|
+
}, /* @__PURE__ */ t.createElement(K, {
|
|
52
52
|
"data-hook": "tags-other-input",
|
|
53
53
|
"data-filled": c ? !0 : void 0,
|
|
54
54
|
placeholder: s,
|
|
@@ -71,7 +71,7 @@ const v = "Other", de = (e, o) => {
|
|
|
71
71
|
s,
|
|
72
72
|
i
|
|
73
73
|
]), _ = N((E) => {
|
|
74
|
-
const
|
|
74
|
+
const Q = me(n || []), V = h.filter((X) => Q.includes(X));
|
|
75
75
|
p(E ? [
|
|
76
76
|
...V,
|
|
77
77
|
s
|
|
@@ -141,7 +141,7 @@ const v = "Other", de = (e, o) => {
|
|
|
141
141
|
}, a = ({ children: e }) => {
|
|
142
142
|
const { id: o, 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, $), h = O(e, G), C = O(e,
|
|
144
|
+
]), g = O(e, $), h = O(e, G), C = O(e, H), _ = O(e, W);
|
|
145
145
|
return /* @__PURE__ */ t.createElement(s, {
|
|
146
146
|
fieldId: o,
|
|
147
147
|
renderLabel: () => g,
|
|
@@ -152,7 +152,7 @@ const v = "Other", de = (e, o) => {
|
|
|
152
152
|
required: l,
|
|
153
153
|
onBlur: p,
|
|
154
154
|
onFocus: n
|
|
155
|
-
}, /* @__PURE__ */ t.createElement(
|
|
155
|
+
}, /* @__PURE__ */ t.createElement(B, {
|
|
156
156
|
"aria-labelledby": c,
|
|
157
157
|
value: f,
|
|
158
158
|
onChange: i,
|
|
@@ -170,15 +170,15 @@ a.Label = $;
|
|
|
170
170
|
a.Control = G;
|
|
171
171
|
a.Options = x;
|
|
172
172
|
a.OtherInput = q;
|
|
173
|
-
a.Description =
|
|
174
|
-
a.Error =
|
|
173
|
+
a.Description = H;
|
|
174
|
+
a.Error = W;
|
|
175
175
|
const pe = "_control_hoxuh_1", he = "_options_hoxuh_7", Ee = "_option_hoxuh_7", be = "_optionHover_hoxuh_76", Oe = "_optionSelected_hoxuh_76", R = {
|
|
176
176
|
control: pe,
|
|
177
177
|
options: he,
|
|
178
178
|
option: Ee,
|
|
179
179
|
optionHover: be,
|
|
180
180
|
optionSelected: Oe
|
|
181
|
-
}, fe = ({ content: e, locale: o }) => /* @__PURE__ */ t.createElement(
|
|
181
|
+
}, fe = ({ content: e, locale: o }) => /* @__PURE__ */ t.createElement(j, {
|
|
182
182
|
content: e,
|
|
183
183
|
locale: o
|
|
184
184
|
}), Ie = {
|
|
@@ -2,15 +2,15 @@ import { RicosViewer as N } from "@wix/ricos/viewer";
|
|
|
2
2
|
import o from "classnames";
|
|
3
3
|
import r, { useCallback as S, useRef as T } from "react";
|
|
4
4
|
import { TextField as O, TextArea as y } from "react-aria-components";
|
|
5
|
-
import {
|
|
5
|
+
import { bL as p, bI as d, bN as x, X as g, am as h, M as v, I as M } from "./form-BjeODFzx.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-DbFXeaud.js";
|
|
8
|
+
import { L as k } from "./field-label-headless-CWOYHPsb.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 V } from "./use-text-input-class-name-
|
|
11
|
+
import { u as V } from "./use-text-input-class-name-LEnNGX0a.js";
|
|
12
12
|
const e = ({ children: t }) => {
|
|
13
|
-
const { id: a, value: m, onChange: s, disabled: u, required: n, readOnly: l, onBlur: E, onFocus: I, FieldLayout: b, hasError: f } = p(), { labelId:
|
|
13
|
+
const { id: a, value: m, onChange: s, disabled: u, required: n, readOnly: l, onBlur: E, onFocus: I, FieldLayout: b, hasError: f } = p(), { labelId: L } = d(), F = S((A) => {
|
|
14
14
|
s(A);
|
|
15
15
|
}, [
|
|
16
16
|
s
|
|
@@ -19,9 +19,9 @@ const e = ({ children: t }) => {
|
|
|
19
19
|
fieldId: a,
|
|
20
20
|
renderLabel: () => R,
|
|
21
21
|
renderInput: () => /* @__PURE__ */ r.createElement(O, {
|
|
22
|
-
"aria-labelledby":
|
|
22
|
+
"aria-labelledby": L,
|
|
23
23
|
value: m ?? "",
|
|
24
|
-
onChange:
|
|
24
|
+
onChange: F,
|
|
25
25
|
isDisabled: u,
|
|
26
26
|
isReadOnly: l,
|
|
27
27
|
isRequired: n,
|
|
@@ -50,24 +50,24 @@ e.Label = k;
|
|
|
50
50
|
e.Input = w;
|
|
51
51
|
e.Description = q;
|
|
52
52
|
e.Error = B;
|
|
53
|
-
const
|
|
54
|
-
input:
|
|
55
|
-
},
|
|
53
|
+
const Q = "_input_ug5v8_1", U = {
|
|
54
|
+
input: Q
|
|
55
|
+
}, X = ({ content: t, locale: a }) => /* @__PURE__ */ r.createElement(N, {
|
|
56
56
|
content: t,
|
|
57
57
|
locale: a
|
|
58
58
|
}), re = () => {
|
|
59
|
-
const t = V(
|
|
59
|
+
const t = V(U.input);
|
|
60
60
|
return /* @__PURE__ */ r.createElement(e, null, /* @__PURE__ */ r.createElement(e.Label, {
|
|
61
|
-
className: o(
|
|
61
|
+
className: o(g, c.label)
|
|
62
62
|
}, /* @__PURE__ */ r.createElement(e.Label.Required, {
|
|
63
|
-
className: o(
|
|
63
|
+
className: o(h, c.requiredMark)
|
|
64
64
|
})), /* @__PURE__ */ r.createElement(e.Input, {
|
|
65
65
|
className: t
|
|
66
66
|
}), /* @__PURE__ */ r.createElement(e.Error, {
|
|
67
|
-
className: o(
|
|
67
|
+
className: o(v, c.error)
|
|
68
68
|
}, /* @__PURE__ */ r.createElement(P, null), /* @__PURE__ */ r.createElement(e.Error.Text, null)), /* @__PURE__ */ r.createElement(e.Description, {
|
|
69
|
-
className: o(
|
|
70
|
-
},
|
|
69
|
+
className: o(M, c.description)
|
|
70
|
+
}, X));
|
|
71
71
|
};
|
|
72
72
|
export {
|
|
73
73
|
re as T
|
package/dist/component/{text-input-field-rac-DaxWFha-.js → text-input-field-rac-BQbo-3Ly.js}
RENAMED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { RicosViewer as
|
|
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-WICGIHcN.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 { X as n,
|
|
8
|
-
import { u as p } from "./use-text-input-class-name-
|
|
9
|
-
const I = ({ content: s, locale:
|
|
7
|
+
import { X as n, am as c, M as E, I as i } from "./form-BjeODFzx.js";
|
|
8
|
+
import { u as p } from "./use-text-input-class-name-LEnNGX0a.js";
|
|
9
|
+
const I = ({ content: s, locale: m }) => /* @__PURE__ */ e.createElement(l, {
|
|
10
10
|
content: s,
|
|
11
|
-
locale:
|
|
11
|
+
locale: m
|
|
12
12
|
}), C = () => {
|
|
13
13
|
const s = p();
|
|
14
14
|
return /* @__PURE__ */ e.createElement(r, null, /* @__PURE__ */ e.createElement(r.Label, {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import t, { useRef as v } from "react";
|
|
2
2
|
import { TextField as C, Input as R } from "react-aria-components";
|
|
3
|
-
import {
|
|
3
|
+
import { bL as c, bI as d, bN as T } from "./form-BjeODFzx.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-DbFXeaud.js";
|
|
6
|
+
import { L as x } from "./field-label-headless-CWOYHPsb.js";
|
|
7
7
|
const e = ({ children: r }) => {
|
|
8
8
|
const { id: a, value: l, onChange: i, disabled: u, readOnly: n, required: o, hasError: p, onBlur: m, onFocus: b, autoComplete: f, FieldLayout: E } = c(), { labelId: I } = d(), F = s(r, e.Label), y = s(r, e.Input), D = s(r, e.Description), L = s(r, e.Error);
|
|
9
9
|
return /* @__PURE__ */ t.createElement(E, {
|
|
@@ -2,44 +2,44 @@ import e, { useCallback as V, useRef as v, useContext as x } from "react";
|
|
|
2
2
|
import { RicosViewer as q } from "@wix/ricos/viewer";
|
|
3
3
|
import m from "classnames";
|
|
4
4
|
import { parseTime as B } from "@internationalized/date";
|
|
5
|
-
import { TimeField as
|
|
6
|
-
import {
|
|
5
|
+
import { TimeField as k, DateInput as U, DateSegment as _, TimeFieldStateContext as w } from "react-aria-components";
|
|
6
|
+
import { bL as p, bI as j, bV as T, bN as Q, X, am as z, M as G, I as J } from "./form-BjeODFzx.js";
|
|
7
7
|
import { f as u, a as F } from "./find-child-C60k4CxG.js";
|
|
8
|
-
import { D as
|
|
9
|
-
import { L as Y } from "./field-label-headless-
|
|
8
|
+
import { D as K, E as W } from "./field-error-headless-DbFXeaud.js";
|
|
9
|
+
import { L as Y } from "./field-label-headless-CWOYHPsb.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-LEnNGX0a.js";
|
|
14
14
|
const r = ({ children: t }) => {
|
|
15
|
-
const { id: n, value: s, onChange: a, disabled: i, readOnly: o, required: c, onBlur: l, onFocus: E, use24HourFormat:
|
|
16
|
-
const H = ae(
|
|
15
|
+
const { id: n, value: s, onChange: a, disabled: i, readOnly: o, required: c, onBlur: l, onFocus: E, use24HourFormat: I, FieldLayout: b, hasError: C } = p(), { inputId: g, ariaDescribedBy: L, labelId: D } = j(), R = V((M) => {
|
|
16
|
+
const H = ae(M);
|
|
17
17
|
a(H);
|
|
18
18
|
}, [
|
|
19
19
|
a
|
|
20
|
-
]), N = u(t, r.Label), y = u(t, r.Time), P = u(t, r.Description), A = u(t, r.Error),
|
|
21
|
-
return /* @__PURE__ */ e.createElement(
|
|
20
|
+
]), N = u(t, r.Label), y = u(t, r.Time), P = u(t, r.Description), A = u(t, r.Error), O = ne(s);
|
|
21
|
+
return /* @__PURE__ */ e.createElement(b, {
|
|
22
22
|
fieldId: n,
|
|
23
23
|
renderLabel: () => N,
|
|
24
|
-
renderInput: () => /* @__PURE__ */ e.createElement(
|
|
25
|
-
"aria-labelledby":
|
|
24
|
+
renderInput: () => /* @__PURE__ */ e.createElement(k, {
|
|
25
|
+
"aria-labelledby": D,
|
|
26
26
|
id: g,
|
|
27
|
-
"aria-describedby":
|
|
28
|
-
value:
|
|
27
|
+
"aria-describedby": L,
|
|
28
|
+
value: O,
|
|
29
29
|
onChange: R,
|
|
30
30
|
isDisabled: i,
|
|
31
31
|
isReadOnly: o,
|
|
32
|
-
isInvalid:
|
|
32
|
+
isInvalid: C,
|
|
33
33
|
isRequired: c,
|
|
34
34
|
onBlur: l,
|
|
35
35
|
onFocus: E,
|
|
36
|
-
hourCycle:
|
|
36
|
+
hourCycle: I ? 24 : 12
|
|
37
37
|
}, y),
|
|
38
38
|
renderDescription: () => /* @__PURE__ */ e.createElement(e.Fragment, null, A, P)
|
|
39
39
|
});
|
|
40
40
|
}, d = ({ children: t, className: n }) => {
|
|
41
41
|
const { hasError: s, hidePlaceholder: a } = p(), i = u(t, d.Hour), o = u(t, d.Minute), c = u(t, d.Period);
|
|
42
|
-
return /* @__PURE__ */ e.createElement(
|
|
42
|
+
return /* @__PURE__ */ e.createElement(U, {
|
|
43
43
|
className: n,
|
|
44
44
|
"data-invalid": s || void 0,
|
|
45
45
|
"data-placeholder-hidden": a || void 0
|
|
@@ -67,7 +67,7 @@ const r = ({ children: t }) => {
|
|
|
67
67
|
});
|
|
68
68
|
}, ee = ({ className: t, ...n }) => {
|
|
69
69
|
const { id: s, hidePlaceholder: a } = p(), { segment: i } = n, { t: o } = T(), c = v(null);
|
|
70
|
-
|
|
70
|
+
Q(() => {
|
|
71
71
|
var E;
|
|
72
72
|
(E = c.current) == null || E.focus({
|
|
73
73
|
preventScroll: !0
|
|
@@ -107,7 +107,7 @@ d.Minute = te;
|
|
|
107
107
|
d.Period = re;
|
|
108
108
|
r.Label = Y;
|
|
109
109
|
r.Time = d;
|
|
110
|
-
r.Description =
|
|
110
|
+
r.Description = K;
|
|
111
111
|
r.Error = W;
|
|
112
112
|
function ne(t) {
|
|
113
113
|
if (!t)
|
|
@@ -139,9 +139,9 @@ const oe = "_time_5p151_1", le = "_hour_5p151_17", se = "_minute_5p151_18", ie =
|
|
|
139
139
|
}), me = () => {
|
|
140
140
|
const t = $(h.time);
|
|
141
141
|
return /* @__PURE__ */ e.createElement(r, null, /* @__PURE__ */ e.createElement(r.Label, {
|
|
142
|
-
className: m(
|
|
142
|
+
className: m(X, f.label)
|
|
143
143
|
}, /* @__PURE__ */ e.createElement(r.Label.Required, {
|
|
144
|
-
className: m(
|
|
144
|
+
className: m(z, f.requiredMark)
|
|
145
145
|
})), /* @__PURE__ */ e.createElement(r.Time, {
|
|
146
146
|
className: t
|
|
147
147
|
}, /* @__PURE__ */ e.createElement(r.Time.Hour, {
|
|
@@ -151,9 +151,9 @@ const oe = "_time_5p151_1", le = "_hour_5p151_17", se = "_minute_5p151_18", ie =
|
|
|
151
151
|
}), /* @__PURE__ */ e.createElement(r.Time.Period, {
|
|
152
152
|
className: m(h.period, S)
|
|
153
153
|
})), /* @__PURE__ */ e.createElement(r.Error, {
|
|
154
|
-
className: m(
|
|
154
|
+
className: m(G, f.error)
|
|
155
155
|
}, /* @__PURE__ */ e.createElement(Z, null), /* @__PURE__ */ e.createElement(r.Error.Text, null)), /* @__PURE__ */ e.createElement(r.Description, {
|
|
156
|
-
className: m(
|
|
156
|
+
className: m(J, f.description)
|
|
157
157
|
}, ce));
|
|
158
158
|
}, ge = () => /* @__PURE__ */ e.createElement(me, null);
|
|
159
159
|
export {
|
|
@@ -1,42 +1,42 @@
|
|
|
1
|
-
import { RicosViewer as
|
|
1
|
+
import { RicosViewer as S } from "@wix/ricos/viewer";
|
|
2
2
|
import i from "classnames";
|
|
3
3
|
import r, { useCallback as h, useRef as O } from "react";
|
|
4
4
|
import { TextField as y, Input as A } from "react-aria-components";
|
|
5
|
-
import {
|
|
5
|
+
import { bL as d, bI as E, bN as v, X as B, am as M, M as T, I as g } from "./form-BjeODFzx.js";
|
|
6
6
|
import { f as c } from "./find-child-C60k4CxG.js";
|
|
7
|
-
import { D as k, E as P } from "./field-error-headless-
|
|
8
|
-
import { L as q } from "./field-label-headless-
|
|
7
|
+
import { D as k, E as P } from "./field-error-headless-DbFXeaud.js";
|
|
8
|
+
import { L as q } from "./field-label-headless-CWOYHPsb.js";
|
|
9
9
|
import { u as x } from "./use-invoke-callback-UH73A_J3.js";
|
|
10
10
|
import { E as U } from "./error-icon-hZxQ6DEy.js";
|
|
11
11
|
import { s as u } from "./field-rac.module-ts2t4WUO.js";
|
|
12
|
-
import { u as w } from "./use-text-input-class-name-
|
|
13
|
-
const
|
|
14
|
-
const { id: o, value: l, onChange: n, disabled: m, readOnly: s, required: a, hasError: I, onBlur: b, onFocus: f, FieldLayout:
|
|
15
|
-
n(
|
|
12
|
+
import { u as w } from "./use-text-input-class-name-LEnNGX0a.js";
|
|
13
|
+
const V = (t) => t ? `https://${String(t).replace(/^https?:\/\//, "")}` : "", e = ({ children: t }) => {
|
|
14
|
+
const { id: o, value: l, onChange: n, disabled: m, readOnly: s, required: a, hasError: I, onBlur: b, onFocus: f, FieldLayout: L } = d(), { labelId: R } = E(), p = x(b), F = c(t, e.Label), D = c(t, e.Input), C = c(t, e.Description), _ = c(t, e.Error), N = h(() => {
|
|
15
|
+
n(V(l)), p();
|
|
16
16
|
}, [
|
|
17
17
|
p,
|
|
18
18
|
n,
|
|
19
19
|
l
|
|
20
20
|
]);
|
|
21
|
-
return /* @__PURE__ */ r.createElement(
|
|
21
|
+
return /* @__PURE__ */ r.createElement(L, {
|
|
22
22
|
fieldId: o,
|
|
23
|
-
renderLabel: () =>
|
|
23
|
+
renderLabel: () => F,
|
|
24
24
|
renderInput: () => /* @__PURE__ */ r.createElement(y, {
|
|
25
|
-
"aria-labelledby":
|
|
25
|
+
"aria-labelledby": R,
|
|
26
26
|
value: l ?? "",
|
|
27
27
|
onChange: n,
|
|
28
28
|
isDisabled: m,
|
|
29
29
|
isReadOnly: s,
|
|
30
30
|
isRequired: a,
|
|
31
31
|
isInvalid: I,
|
|
32
|
-
onBlur:
|
|
32
|
+
onBlur: N,
|
|
33
33
|
onFocus: f
|
|
34
34
|
}, D),
|
|
35
35
|
renderDescription: () => /* @__PURE__ */ r.createElement(r.Fragment, null, _, C)
|
|
36
36
|
});
|
|
37
|
-
},
|
|
37
|
+
}, W = ({ className: t }) => {
|
|
38
38
|
const { id: o, placeholder: l } = d(), { inputId: n, ariaDescribedBy: m } = E(), s = O(null);
|
|
39
|
-
return
|
|
39
|
+
return v(() => {
|
|
40
40
|
var a;
|
|
41
41
|
(a = s.current) == null || a.focus({
|
|
42
42
|
preventScroll: !0
|
|
@@ -52,25 +52,25 @@ const H = (t) => t ? `https://${String(t).replace(/^https?:\/\//, "")}` : "", e
|
|
|
52
52
|
});
|
|
53
53
|
};
|
|
54
54
|
e.Label = q;
|
|
55
|
-
e.Input =
|
|
55
|
+
e.Input = W;
|
|
56
56
|
e.Description = k;
|
|
57
57
|
e.Error = P;
|
|
58
|
-
const
|
|
58
|
+
const $ = ({ content: t, locale: o }) => /* @__PURE__ */ r.createElement(S, {
|
|
59
59
|
content: t,
|
|
60
60
|
locale: o
|
|
61
61
|
}), te = () => {
|
|
62
62
|
const t = w();
|
|
63
63
|
return /* @__PURE__ */ r.createElement(e, null, /* @__PURE__ */ r.createElement(e.Label, {
|
|
64
|
-
className: i(
|
|
64
|
+
className: i(B, u.label)
|
|
65
65
|
}, /* @__PURE__ */ r.createElement(e.Label.Required, {
|
|
66
|
-
className: i(
|
|
66
|
+
className: i(M, u.requiredMark)
|
|
67
67
|
})), /* @__PURE__ */ r.createElement(e.Input, {
|
|
68
68
|
className: t
|
|
69
69
|
}), /* @__PURE__ */ r.createElement(e.Error, {
|
|
70
70
|
className: i(T, u.error)
|
|
71
71
|
}, /* @__PURE__ */ r.createElement(U, null), /* @__PURE__ */ r.createElement(e.Error.Text, null)), /* @__PURE__ */ r.createElement(e.Description, {
|
|
72
72
|
className: i(g, u.description)
|
|
73
|
-
},
|
|
73
|
+
}, $));
|
|
74
74
|
};
|
|
75
75
|
export {
|
|
76
76
|
te as U
|
|
@@ -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-ts2t4WUO.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-BjeODFzx.js";
|
|
6
|
+
import { u as H } from "./use-element-state-class-name-BVJylHPn.js";
|
|
7
7
|
const R = 1 / 0, I = {
|
|
8
8
|
position: "absolute",
|
|
9
9
|
width: 0,
|