@wix/form-elements 1.169.0 → 1.171.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-BbXyKTd7.js → appointment-rac-DZ0SFXmL.js} +83 -83
- package/dist/component/{bookings-address-rac-VJkR_U9L.js → bookings-address-rac-BW9grc77.js} +1 -1
- package/dist/component/{bookings-email-rac-_EupwXpQ.js → bookings-email-rac-D8gMaAfB.js} +1 -1
- package/dist/component/{bookings-first-name-rac-DTZixHYj.js → bookings-first-name-rac-CAjcs7b6.js} +1 -1
- package/dist/component/{bookings-header-rac-BKbKTv5g.js → bookings-header-rac-BhKZ1kku.js} +1 -1
- package/dist/component/{bookings-last-name-rac-BDy860-C.js → bookings-last-name-rac-DpsMDuU0.js} +1 -1
- package/dist/component/{bookings-login-bar-rac-DgNP-YNZ.js → bookings-login-bar-rac-BVdWmKS8.js} +3 -3
- package/dist/component/{bookings-phone-rac-B_I6n96b.js → bookings-phone-rac-DsqNi2mI.js} +1 -1
- package/dist/component/{bookings-rich-text-rac-prYPbIiz.js → bookings-rich-text-rac-elM4Ne3f.js} +1 -1
- package/dist/component/{checkbox-field-rac-C-4PXuxG.js → checkbox-field-rac-BU4E73fD.js} +43 -43
- package/dist/component/{checkbox-group-field-headless-D16bAcaq.js → checkbox-group-field-headless-6yJdIbP2.js} +41 -41
- package/dist/component/{checkbox-group-field-rac-GUQ5dO_s.js → checkbox-group-field-rac-CojbCWSF.js} +4 -4
- package/dist/component/{checkbox-group-rac-Bl6xL5-H.js → checkbox-group-rac-3qUVUc-C.js} +1 -1
- package/dist/component/{checkbox-rac-Blg0KVyP.js → checkbox-rac-DwbTapd_.js} +1 -1
- package/dist/component/{contacts-address-rac-BfOhCAj8.js → contacts-address-rac-BL7XDZuP.js} +1 -1
- package/dist/component/{contacts-birthdate-rac-DYBvDh62.js → contacts-birthdate-rac-DeJYIHAg.js} +1 -1
- package/dist/component/{contacts-company-rac-DIJr7zjA.js → contacts-company-rac-BeImf5uc.js} +1 -1
- package/dist/component/{contacts-email-rac-DjmqELhC.js → contacts-email-rac-CtacwrZ0.js} +1 -1
- package/dist/component/{contacts-first-name-rac-DGNll7gw.js → contacts-first-name-rac-CAdOqOOA.js} +1 -1
- package/dist/component/{contacts-last-name-rac-BJ8AZYQN.js → contacts-last-name-rac-Db9mHzCW.js} +1 -1
- package/dist/component/{contacts-phone-rac-BC-QtpEN.js → contacts-phone-rac-W0OLEbzL.js} +1 -1
- package/dist/component/{contacts-position-rac-BQia__74.js → contacts-position-rac-CV4Ibt4Z.js} +1 -1
- package/dist/component/{contacts-subscribe-rac-CTFptz01.js → contacts-subscribe-rac-CQ3Q1pjZ.js} +1 -1
- package/dist/component/{contacts-tax-id-rac-Cy72Jouc.js → contacts-tax-id-rac-Dux-pk6r.js} +1 -1
- package/dist/component/{date-availability-BC6updcS.js → date-availability-RkX-Qw7G.js} +1 -1
- package/dist/component/date-input-field-rac-CYCT6qoa.js +309 -0
- package/dist/component/{date-input-rac-KkRyWRP_.js → date-input-rac-BkYZ7q_o.js} +1 -1
- package/dist/component/{date-picker-field-rac-BLWVJbTJ.js → date-picker-field-rac-eMidYtsl.js} +31 -31
- package/dist/component/{date-picker-rac-DKCQza7v.js → date-picker-rac-D23rxZcF.js} +1 -1
- package/dist/component/{date-time-input-field-rac-CZxZW6fz.js → date-time-input-field-rac-BjIj4dXQ.js} +111 -111
- package/dist/component/{date-time-input-rac-DQ-iBwmr.js → date-time-input-rac-BSGAdk9L.js} +1 -1
- package/dist/component/{dext-checkbox-group-rac-kp1Jbwt-.js → dext-checkbox-group-rac-Xmb5IKrb.js} +2 -2
- package/dist/component/{dext-checkbox-rac-CBm9cRUz.js → dext-checkbox-rac-2eA7y0ld.js} +1 -1
- package/dist/component/{dext-date-picker-rac-DsVKWsRy.js → dext-date-picker-rac-CmLxVGGT.js} +1 -1
- package/dist/component/{dext-date-time-input-rac-CO26-8Qo.js → dext-date-time-input-rac-Cd9nwSjb.js} +1 -1
- package/dist/component/{dext-dropdown-rac-eRzu2C-y.js → dext-dropdown-rac-BKdQ0nGS.js} +1 -1
- package/dist/component/{dext-email-rac-DDrZzE_G.js → dext-email-rac-07zDPxyf.js} +1 -1
- package/dist/component/{dext-number-input-rac-Dj7sInLk.js → dext-number-input-rac-DRvGuppY.js} +1 -1
- package/dist/component/{dext-phone-rac-g8M77F7m.js → dext-phone-rac-CKtTVjFg.js} +1 -1
- package/dist/component/{dext-radio-group-rac-BjhygC0R.js → dext-radio-group-rac-BsBmMufq.js} +2 -2
- package/dist/component/{dext-rating-input-rac-BraNjvyA.js → dext-rating-input-rac-CcFSTAIh.js} +1 -1
- package/dist/component/{dext-tags-rac-B5mAIuDi.js → dext-tags-rac-CCTDlCvX.js} +2 -2
- package/dist/component/{dext-text-area-rac-D_YBnaWi.js → dext-text-area-rac-Cif8po9h.js} +1 -1
- package/dist/component/{dext-text-input-rac-BzeWH1jv.js → dext-text-input-rac-2118X4iF.js} +1 -1
- package/dist/component/{dext-url-input-rac-Cn0h_vx3.js → dext-url-input-rac-DDImGkQe.js} +1 -1
- package/dist/component/{donation-rac-CQRdHxWh.js → donation-rac-Dnylss1d.js} +103 -103
- package/dist/component/{dropdown-field-rac-C7LL0W5Z.js → dropdown-field-rac-DDI4ZgZH.js} +3 -3
- package/dist/component/{dropdown-rac-Nb2VyJ0x.js → dropdown-rac-DX0Z3R_8.js} +1 -1
- package/dist/component/{ecom-address-rac-_c2YIIwg.js → ecom-address-rac-D9MeEQsk.js} +1 -1
- package/dist/component/{ecom-subscription-checkbox-rac-Bma7TAVj.js → ecom-subscription-checkbox-rac-DKJ9j5dj.js} +2 -2
- package/dist/component/{email-input-field-rac-2E2tEaS5.js → email-input-field-rac-DaKrmlwe.js} +55 -55
- package/dist/component/{events-repeater-rac-COWHYBFD.js → events-repeater-rac-DWrOLT0Y.js} +45 -45
- package/dist/component/{events-rsvp-rac-CXp8j19Y.js → events-rsvp-rac-YBTR1tR0.js} +6 -6
- package/dist/component/{field-error-headless-S-ugOQQX.js → field-error-headless-jksFrezt.js} +10 -10
- package/dist/component/{field-label-headless-_n4I0_tX.js → field-label-headless-BBvJAVxI.js} +10 -10
- package/dist/component/{file-upload-rac-DCH_iwDg.js → file-upload-rac-CgdmfUZG.js} +168 -168
- package/dist/component/{fixed-payment-rac-CYkKJUfM.js → fixed-payment-rac-v6rKwzFs.js} +13 -13
- package/dist/component/{form-jK8ezTss.js → form-BsiK682r.js} +530 -502
- package/dist/component/form.js +1 -1
- package/dist/component/{header-field-rac-DnbjI6W5.js → header-field-rac-BuXybl7K.js} +6 -6
- package/dist/component/{header-rac-DKUICrni.js → header-rac-CDyaLosW.js} +1 -1
- package/dist/component/{image-choice-rac-B_9ponST.js → image-choice-rac-BRlMroBw.js} +41 -41
- package/dist/component/{index-BxdMzOvN.js → index-BanOeCAF.js} +242 -236
- package/dist/component/{index-ZYnsxY-a.js → index-y9URYGEE.js} +6 -6
- package/dist/component/{isObjectLike-BW-9QEQl.js → isObjectLike-BG9nJ-rx.js} +7 -7
- package/dist/component/{multiline-address-field-rac-k-P0ijWG.js → multiline-address-field-rac-DRAkxI1l.js} +342 -342
- package/dist/component/{multiline-address-rac-Bbn9mNDa.js → multiline-address-rac-JjTzWsEb.js} +1 -1
- package/dist/component/{number-input-field-rac--lom-B_X.js → number-input-field-rac-QrouG7Hv.js} +22 -22
- package/dist/component/{number-input-rac-Bhbd6T9S.js → number-input-rac-DGmE7cLv.js} +1 -1
- package/dist/component/{password-rac-BV_uTHb3.js → password-rac-DeyY228m.js} +28 -28
- package/dist/component/{payment-input-rac-cawyGN_t.js → payment-input-rac-DmIennLi.js} +45 -45
- package/dist/component/{phone-input-field-rac-CsElHRto.js → phone-input-field-rac-F7e74TGA.js} +76 -76
- package/dist/component/{phone-rac-XrHN5Nko.js → phone-rac-CQfB2CQD.js} +1 -1
- package/dist/component/{product-list-rac-cxv_xz7K.js → product-list-rac--GGG8vvO.js} +62 -62
- package/dist/component/{quiz-radio-group-rac-DGaxOPE1.js → quiz-radio-group-rac-DF2C2vNq.js} +1 -1
- package/dist/component/{radio-button-module-classes-Xv2Jn01x.js → radio-button-module-classes-DmpNo6F2.js} +17 -17
- package/dist/component/{radio-group-field-rac-DgGqgTql.js → radio-group-field-rac-BGcPYfKO.js} +6 -6
- package/dist/component/{radio-group-rac-Bh0E-oe1.js → radio-group-rac-CqysUMCE.js} +1 -1
- package/dist/component/{rating-input-field-rac-C3YLV971.js → rating-input-field-rac-D-ei917Y.js} +24 -24
- package/dist/component/{rating-input-rac-CfcC5EUh.js → rating-input-rac-a9zJ74fw.js} +1 -1
- package/dist/component/{rich-content-rac.module-DUjzLGtX.js → rich-content-rac.module-CvyLVlXL.js} +5 -5
- package/dist/component/{rich-text-field-rac-BmguoJhk.js → rich-text-field-rac-vf19nvyw.js} +7 -7
- package/dist/component/{rich-text-rac-BWhHcq25.js → rich-text-rac-Cx_wpoxC.js} +1 -1
- package/dist/component/{service-dropdown-rac-C5oX-ql7.js → service-dropdown-rac-DITzKQxd.js} +26 -26
- package/dist/component/{services-multi-choice-rac-C1fem9NB.js → services-multi-choice-rac-BtisN0Aq.js} +11 -11
- package/dist/component/{signature-rac-BtHqiWj1.js → signature-rac-DUeIoS5O.js} +226 -226
- package/dist/component/{submit-button-rac-OYeKJFF8.js → submit-button-rac-C8h6zeTw.js} +36 -36
- package/dist/component/{tags-field-rac-kA2RSijL.js → tags-field-rac-CjFuiB0n.js} +51 -51
- package/dist/component/{tags-rac-B_2qCZGu.js → tags-rac-BO7rwyLl.js} +1 -1
- package/dist/component/{text-area-field-rac-DeO609Mv.js → text-area-field-rac-CgUx3nQ0.js} +23 -23
- package/dist/component/{text-area-rac-BAQFBOZd.js → text-area-rac-WgXYXIaf.js} +1 -1
- package/dist/component/{text-input-field-rac-CCcKwuLZ.js → text-input-field-rac-DaxWFha-.js} +6 -6
- package/dist/component/{text-input-headless-D8-jkaYm.js → text-input-headless-hjuRJTZN.js} +6 -6
- package/dist/component/{text-input-rac-BVcgjj8g.js → text-input-rac-BzumrJBj.js} +1 -1
- package/dist/component/{time-input-rac-BYctyHgU.js → time-input-rac-2FEkpQ7M.js} +18 -18
- package/dist/component/{url-input-field-rac-COC9qgcs.js → url-input-field-rac-BZ9f8D8I.js} +26 -26
- package/dist/component/{url-input-rac-BZXLh0Ej.js → url-input-rac-D-AVlxkD.js} +1 -1
- package/dist/component/{use-dropdown-option-class-name-BTltqRl1.js → use-dropdown-option-class-name-DwAAtzgX.js} +11 -11
- package/dist/component/{use-dropdown-trigger-class-name-BjJZfl3i.js → use-dropdown-trigger-class-name-D-6n9YVG.js} +18 -18
- package/dist/component/{use-element-state-class-name-CkT6Ga8t.js → use-element-state-class-name-C5auxwhj.js} +3 -3
- package/dist/component/{use-hoverable-input-class-name-BkoSr6tr.js → use-hoverable-input-class-name-Nd2jqfz4.js} +2 -2
- package/dist/component/use-is-forced-open-dropdown-CKaHhCqp.js +64 -0
- package/dist/component/{use-service-options-base-Wp8RZ4Z8.js → use-service-options-base-CvluFheT.js} +3 -3
- package/dist/component/use-text-input-class-name-DGTlYJxC.js +6 -0
- package/dist/form.d.ts +19 -0
- package/package.json +2 -2
- package/dist/component/date-input-field-rac-b_T1yf8D.js +0 -309
- package/dist/component/use-is-forced-open-dropdown-fo_NCnSk.js +0 -53
- package/dist/component/use-text-input-class-name-DS7i03Gk.js +0 -6
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import t, { useRef as X, useCallback as y } from "react";
|
|
2
|
-
import
|
|
2
|
+
import z from "@wix/editor-react-components/AnimatedIcon";
|
|
3
3
|
import p from "classnames";
|
|
4
|
-
import {
|
|
4
|
+
import { bK as b, bE as J, aE as K, aD as $, aB as j, aA as q, aJ as G, aI as Q, aC as Y, b as Z, az as tt, aH as et } from "./form-BsiK682r.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
|
|
7
|
+
import { u as x } from "./use-element-state-class-name-C5auxwhj.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, E), n = c(o, S), a = c(o, B);
|
|
50
50
|
return /* @__PURE__ */ t.createElement("div", {
|
|
51
51
|
className: e
|
|
52
52
|
}, s, n, a);
|
|
53
|
-
},
|
|
53
|
+
}, E = ({ 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, E.Label), m = c(n, E.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
|
+
}, S = ({ 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, S.Label), m = c(n, S.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
|
-
S.Icon = R;
|
|
115
|
-
E.Label = V;
|
|
113
|
+
E.Label = W;
|
|
116
114
|
E.Icon = R;
|
|
117
|
-
|
|
118
|
-
|
|
115
|
+
S.Label = V;
|
|
116
|
+
S.Icon = R;
|
|
117
|
+
g.PreviousButton = E;
|
|
118
|
+
g.NextButton = S;
|
|
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", Et = "_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: Et
|
|
133
133
|
}, P = () => {
|
|
134
134
|
const e = X(null), o = y(() => {
|
|
135
135
|
var n;
|
|
@@ -145,26 +145,26 @@ 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(z, {
|
|
149
149
|
...i,
|
|
150
150
|
ref: o,
|
|
151
151
|
className: p(Z, s, a)
|
|
152
152
|
}) : null;
|
|
153
|
-
},
|
|
153
|
+
}, St = () => {
|
|
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 = J(), 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),
|
|
159
159
|
hover: u.navigationButtonHover
|
|
160
160
|
}
|
|
161
|
-
}), d =
|
|
161
|
+
}), d = x({
|
|
162
162
|
globalClasses: tt,
|
|
163
163
|
moduleClasses: {
|
|
164
164
|
base: p(u.navigationButton, u.nextButton),
|
|
165
165
|
hover: u.navigationButtonHover
|
|
166
166
|
}
|
|
167
|
-
}), _ =
|
|
167
|
+
}), _ = x({
|
|
168
168
|
globalClasses: et,
|
|
169
169
|
moduleClasses: {
|
|
170
170
|
base: p(u.button, {
|
|
@@ -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
|
+
}), H = P(), L = 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,
|
|
@@ -184,45 +184,45 @@ const at = "_navigationContainer_16wic_1", rt = "_rowSpacing_16wic_6", ut = "_na
|
|
|
184
184
|
isSelected: !1,
|
|
185
185
|
isHovered: N
|
|
186
186
|
}),
|
|
187
|
-
onHoverStart:
|
|
188
|
-
onHoverEnd:
|
|
187
|
+
onHoverStart: T.onHoverStart,
|
|
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
|
-
iconRef:
|
|
194
|
-
iconClassName:
|
|
193
|
+
iconRef: T.iconRef,
|
|
194
|
+
iconClassName: $
|
|
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: L.onHoverStart,
|
|
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
|
-
iconRef:
|
|
207
|
-
iconClassName:
|
|
206
|
+
iconRef: L.iconRef,
|
|
207
|
+
iconClassName: q
|
|
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: H.onHoverStart,
|
|
215
|
+
onHoverEnd: H.onHoverEnd
|
|
216
216
|
}, /* @__PURE__ */ t.createElement(r.SubmitButton.SubmitButton.Label, {
|
|
217
|
-
className:
|
|
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: H.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(St, null);
|
|
226
226
|
export {
|
|
227
227
|
It as SubmitButtonRAC
|
|
228
228
|
};
|
|
@@ -1,54 +1,54 @@
|
|
|
1
|
-
import { RicosViewer as
|
|
2
|
-
import
|
|
3
|
-
import t, { useMemo as I, useState as
|
|
4
|
-
import { CheckboxGroup as
|
|
5
|
-
import {
|
|
1
|
+
import { RicosViewer as Q } from "@wix/ricos/viewer";
|
|
2
|
+
import F from "classnames";
|
|
3
|
+
import t, { useMemo as I, useState as X, useRef as A, useLayoutEffect as j, useCallback as N } from "react";
|
|
4
|
+
import { CheckboxGroup as z, TextField as B, Input as J, CheckboxField as Y, CheckboxButton as Z } from "react-aria-components";
|
|
5
|
+
import { bK as D, bH as M, bU as S, bM as U, X as ee, al as te, aw as oe, M as ne, I as ae, ax as re } from "./form-BsiK682r.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 H, D as W } from "./field-error-headless-jksFrezt.js";
|
|
8
|
+
import { L as $ } from "./field-label-headless-BBvJAVxI.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-C5auxwhj.js";
|
|
13
|
+
import { u as ce } from "./use-text-input-class-name-DGTlYJxC.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
|
|
17
|
+
const v = "Other", de = (e, o) => {
|
|
18
18
|
const i = o.length + 2;
|
|
19
19
|
return (e.find((l) => l.startsWith(`${o}: `)) || "").slice(i);
|
|
20
|
-
}, me = (e) => e.map((o) => o.value ?? o.label),
|
|
20
|
+
}, me = (e) => e.map((o) => o.value ?? o.label), P = ({ className: e, ...o }) => {
|
|
21
21
|
const { label: r } = o;
|
|
22
22
|
return /* @__PURE__ */ t.createElement("span", {
|
|
23
23
|
className: e
|
|
24
24
|
}, r);
|
|
25
|
-
},
|
|
26
|
-
const { value: o, onChange: r, addOtherLabel: i, addOtherPlaceholder: s, otherInputCharacterLimit: l, disabled: u, readOnly: m, hasError: d } =
|
|
25
|
+
}, q = ({ className: e }) => {
|
|
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] = X(b), f = A(r);
|
|
30
|
+
j(() => {
|
|
31
31
|
f.current = r;
|
|
32
32
|
});
|
|
33
33
|
const g = N((h) => {
|
|
34
34
|
L(h);
|
|
35
|
-
const C = (o || []).filter((E) => !E.startsWith(`${n}:`) && E !== n),
|
|
35
|
+
const C = (o || []).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
41
|
o,
|
|
42
42
|
n
|
|
43
43
|
]);
|
|
44
|
-
return /* @__PURE__ */ t.createElement(
|
|
44
|
+
return /* @__PURE__ */ t.createElement(B, {
|
|
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(J, {
|
|
52
52
|
"data-hook": "tags-other-input",
|
|
53
53
|
"data-filled": c ? !0 : void 0,
|
|
54
54
|
placeholder: s,
|
|
@@ -56,26 +56,26 @@ const R = "Other", de = (e, o) => {
|
|
|
56
56
|
className: e
|
|
57
57
|
}));
|
|
58
58
|
}, T = ({ children: e, className: o, ...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 } =
|
|
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 = A(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, P), 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 w = me(n || []), V = h.filter((K) => w.includes(K));
|
|
75
75
|
p(E ? [
|
|
76
|
-
...
|
|
76
|
+
...V,
|
|
77
77
|
s
|
|
78
|
-
] :
|
|
78
|
+
] : V);
|
|
79
79
|
}, [
|
|
80
80
|
s,
|
|
81
81
|
p,
|
|
@@ -85,13 +85,13 @@ const R = "Other", de = (e, o) => {
|
|
|
85
85
|
return /* @__PURE__ */ t.createElement(Y, {
|
|
86
86
|
inputRef: f,
|
|
87
87
|
value: C,
|
|
88
|
-
onChange: l ?
|
|
88
|
+
onChange: l ? _ : void 0,
|
|
89
89
|
isDisabled: b,
|
|
90
90
|
isReadOnly: c,
|
|
91
91
|
isInvalid: L
|
|
92
92
|
}, /* @__PURE__ */ t.createElement(Z, {
|
|
93
93
|
className: o,
|
|
94
|
-
"data-hook": `tags-${l ?
|
|
94
|
+
"data-hook": `tags-${l ? v : i}`
|
|
95
95
|
}, k(g, {
|
|
96
96
|
value: i,
|
|
97
97
|
label: s,
|
|
@@ -99,7 +99,7 @@ const R = "Other", de = (e, o) => {
|
|
|
99
99
|
isFirstOption: u
|
|
100
100
|
})));
|
|
101
101
|
}, x = ({ children: e, className: o }) => {
|
|
102
|
-
const { options: r, addOther: i, addOtherLabel: s, numberOfColumns: l = ue.FREE_FLOW } =
|
|
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") || v, d = O(e, T), p = I(() => {
|
|
103
103
|
const n = r || [];
|
|
104
104
|
return i ? [
|
|
105
105
|
...n,
|
|
@@ -120,7 +120,7 @@ const R = "Other", de = (e, o) => {
|
|
|
120
120
|
}, p.map((n, b) => {
|
|
121
121
|
const c = n.value ?? n.label;
|
|
122
122
|
return k(d, {
|
|
123
|
-
key: n.isOther ?
|
|
123
|
+
key: n.isOther ? v : c,
|
|
124
124
|
value: c,
|
|
125
125
|
label: n.label,
|
|
126
126
|
isOther: n.isOther,
|
|
@@ -128,7 +128,7 @@ const R = "Other", de = (e, o) => {
|
|
|
128
128
|
});
|
|
129
129
|
}));
|
|
130
130
|
}, G = ({ children: e, className: o }) => {
|
|
131
|
-
const { addOther: r, addOtherLabel: i, hasError: s, readOnly: l, value: u } =
|
|
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") || v, p = O(e, x), n = O(e, q), b = I(() => !r || !u ? !1 : u.some((c) => c === d || c.startsWith(`${d}:`)), [
|
|
132
132
|
r,
|
|
133
133
|
u,
|
|
134
134
|
d
|
|
@@ -139,9 +139,9 @@ const R = "Other", de = (e, o) => {
|
|
|
139
139
|
"data-readonly": l
|
|
140
140
|
}, p, b && n);
|
|
141
141
|
}, a = ({ children: e }) => {
|
|
142
|
-
const { id: o, value: r, onChange: i, FieldLayout: s, required: l, disabled: u, readOnly: m, hasError: d, onBlur: p, onFocus: n } =
|
|
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, W), _ = O(e, H);
|
|
145
145
|
return /* @__PURE__ */ t.createElement(s, {
|
|
146
146
|
fieldId: o,
|
|
147
147
|
renderLabel: () => g,
|
|
@@ -152,7 +152,7 @@ const R = "Other", de = (e, o) => {
|
|
|
152
152
|
required: l,
|
|
153
153
|
onBlur: p,
|
|
154
154
|
onFocus: n
|
|
155
|
-
}, /* @__PURE__ */ t.createElement(
|
|
155
|
+
}, /* @__PURE__ */ t.createElement(z, {
|
|
156
156
|
"aria-labelledby": c,
|
|
157
157
|
value: f,
|
|
158
158
|
onChange: i,
|
|
@@ -161,53 +161,53 @@ const R = "Other", de = (e, o) => {
|
|
|
161
161
|
isRequired: l,
|
|
162
162
|
isInvalid: d
|
|
163
163
|
}, h)),
|
|
164
|
-
renderDescription: () => /* @__PURE__ */ t.createElement(t.Fragment, null,
|
|
164
|
+
renderDescription: () => /* @__PURE__ */ t.createElement(t.Fragment, null, _, C)
|
|
165
165
|
});
|
|
166
166
|
};
|
|
167
167
|
x.Option = T;
|
|
168
|
-
T.Label =
|
|
168
|
+
T.Label = P;
|
|
169
169
|
a.Label = $;
|
|
170
170
|
a.Control = G;
|
|
171
171
|
a.Options = x;
|
|
172
|
-
a.OtherInput =
|
|
173
|
-
a.Description =
|
|
174
|
-
a.Error =
|
|
175
|
-
const pe = "_control_hoxuh_1", he = "_options_hoxuh_7", Ee = "_option_hoxuh_7", be = "_optionHover_hoxuh_76", Oe = "_optionSelected_hoxuh_76",
|
|
172
|
+
a.OtherInput = q;
|
|
173
|
+
a.Description = W;
|
|
174
|
+
a.Error = H;
|
|
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(Q, {
|
|
182
182
|
content: e,
|
|
183
183
|
locale: o
|
|
184
184
|
}), Ie = {
|
|
185
|
-
base:
|
|
186
|
-
selected:
|
|
187
|
-
hover:
|
|
188
|
-
},
|
|
185
|
+
base: R.option,
|
|
186
|
+
selected: R.optionSelected,
|
|
187
|
+
hover: R.optionHover
|
|
188
|
+
}, Ae = () => {
|
|
189
189
|
const e = ie({
|
|
190
190
|
globalClasses: re,
|
|
191
191
|
moduleClasses: Ie
|
|
192
192
|
}), o = ce();
|
|
193
193
|
return /* @__PURE__ */ t.createElement(a, null, /* @__PURE__ */ t.createElement(a.Label, {
|
|
194
|
-
className:
|
|
194
|
+
className: F(ee, y.label)
|
|
195
195
|
}, /* @__PURE__ */ t.createElement(a.Label.Required, {
|
|
196
|
-
className:
|
|
196
|
+
className: F(te, y.requiredMark)
|
|
197
197
|
})), /* @__PURE__ */ t.createElement(a.Control, {
|
|
198
|
-
className:
|
|
198
|
+
className: R.control
|
|
199
199
|
}, /* @__PURE__ */ t.createElement(a.Options, {
|
|
200
|
-
className:
|
|
200
|
+
className: F(oe, R.options)
|
|
201
201
|
}, /* @__PURE__ */ t.createElement(a.Options.Option, {
|
|
202
202
|
className: e
|
|
203
203
|
}, /* @__PURE__ */ t.createElement(a.Options.Option.Label, null))), /* @__PURE__ */ t.createElement(a.OtherInput, {
|
|
204
204
|
className: o
|
|
205
205
|
})), /* @__PURE__ */ t.createElement(a.Error, {
|
|
206
|
-
className:
|
|
206
|
+
className: F(ne, y.error)
|
|
207
207
|
}, /* @__PURE__ */ t.createElement(le, null), /* @__PURE__ */ t.createElement(a.Error.Text, null)), /* @__PURE__ */ t.createElement(a.Description, {
|
|
208
|
-
className:
|
|
208
|
+
className: F(ae, y.description)
|
|
209
209
|
}, fe));
|
|
210
210
|
};
|
|
211
211
|
export {
|
|
212
|
-
|
|
212
|
+
Ae as T
|
|
213
213
|
};
|
|
@@ -2,36 +2,36 @@ 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 { bK as p, bH as d, bM as x, X as M, al as g, M as h, I as v } from "./form-BsiK682r.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-jksFrezt.js";
|
|
8
|
+
import { L as k } from "./field-label-headless-BBvJAVxI.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
|
|
11
|
+
import { u as V } from "./use-text-input-class-name-DGTlYJxC.js";
|
|
12
12
|
const e = ({ children: t }) => {
|
|
13
|
-
const { id: a, value: m, onChange: s, disabled: u, required: n, readOnly: l, onBlur: E, onFocus:
|
|
13
|
+
const { id: a, value: m, onChange: s, disabled: u, required: n, readOnly: l, onBlur: E, onFocus: I, FieldLayout: b, hasError: f } = p(), { labelId: F } = d(), L = S((A) => {
|
|
14
14
|
s(A);
|
|
15
15
|
}, [
|
|
16
16
|
s
|
|
17
|
-
]),
|
|
18
|
-
return /* @__PURE__ */ r.createElement(
|
|
17
|
+
]), R = i(t, e.Label), D = i(t, e.Input), _ = i(t, e.Description), C = i(t, e.Error);
|
|
18
|
+
return /* @__PURE__ */ r.createElement(b, {
|
|
19
19
|
fieldId: a,
|
|
20
|
-
renderLabel: () =>
|
|
20
|
+
renderLabel: () => R,
|
|
21
21
|
renderInput: () => /* @__PURE__ */ r.createElement(O, {
|
|
22
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,
|
|
28
|
-
isInvalid:
|
|
28
|
+
isInvalid: f,
|
|
29
29
|
onBlur: E,
|
|
30
|
-
onFocus:
|
|
31
|
-
},
|
|
30
|
+
onFocus: I
|
|
31
|
+
}, D),
|
|
32
32
|
renderDescription: () => /* @__PURE__ */ r.createElement(r.Fragment, null, C, _)
|
|
33
33
|
});
|
|
34
|
-
},
|
|
34
|
+
}, w = ({ className: t }) => {
|
|
35
35
|
const { inputId: a, ariaDescribedBy: m } = d(), { id: s, placeholder: u } = p(), n = T(null);
|
|
36
36
|
return x(() => {
|
|
37
37
|
var l;
|
|
@@ -47,27 +47,27 @@ const e = ({ children: t }) => {
|
|
|
47
47
|
});
|
|
48
48
|
};
|
|
49
49
|
e.Label = k;
|
|
50
|
-
e.Input =
|
|
50
|
+
e.Input = w;
|
|
51
51
|
e.Description = q;
|
|
52
52
|
e.Error = B;
|
|
53
|
-
const
|
|
54
|
-
input:
|
|
55
|
-
},
|
|
53
|
+
const H = "_input_ug5v8_1", K = {
|
|
54
|
+
input: H
|
|
55
|
+
}, Q = ({ content: t, locale: a }) => /* @__PURE__ */ r.createElement(N, {
|
|
56
56
|
content: t,
|
|
57
57
|
locale: a
|
|
58
58
|
}), re = () => {
|
|
59
|
-
const t =
|
|
59
|
+
const t = V(K.input);
|
|
60
60
|
return /* @__PURE__ */ r.createElement(e, null, /* @__PURE__ */ r.createElement(e.Label, {
|
|
61
|
-
className: o(
|
|
61
|
+
className: o(M, c.label)
|
|
62
62
|
}, /* @__PURE__ */ r.createElement(e.Label.Required, {
|
|
63
|
-
className: o(
|
|
63
|
+
className: o(g, 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(h, 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(v, c.description)
|
|
70
|
+
}, Q));
|
|
71
71
|
};
|
|
72
72
|
export {
|
|
73
73
|
re as T
|
package/dist/component/{text-input-field-rac-CCcKwuLZ.js → text-input-field-rac-DaxWFha-.js}
RENAMED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { RicosViewer as
|
|
1
|
+
import { RicosViewer as m } 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-hjuRJTZN.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 {
|
|
8
|
-
import { u as p } from "./use-text-input-class-name-
|
|
9
|
-
const I = ({ content: s, locale:
|
|
7
|
+
import { X as n, al as c, M as E, I as i } from "./form-BsiK682r.js";
|
|
8
|
+
import { u as p } from "./use-text-input-class-name-DGTlYJxC.js";
|
|
9
|
+
const I = ({ content: s, locale: l }) => /* @__PURE__ */ e.createElement(m, {
|
|
10
10
|
content: s,
|
|
11
|
-
locale:
|
|
11
|
+
locale: l
|
|
12
12
|
}), C = () => {
|
|
13
13
|
const s = p();
|
|
14
14
|
return /* @__PURE__ */ e.createElement(r, null, /* @__PURE__ */ e.createElement(r.Label, {
|
|
@@ -1,11 +1,11 @@
|
|
|
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 { bK as c, bH as d, bM as T } from "./form-BsiK682r.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-jksFrezt.js";
|
|
6
|
+
import { L as x } from "./field-label-headless-BBvJAVxI.js";
|
|
7
7
|
const e = ({ children: r }) => {
|
|
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),
|
|
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, {
|
|
10
10
|
fieldId: a,
|
|
11
11
|
renderLabel: () => F,
|
|
@@ -20,8 +20,8 @@ const e = ({ children: r }) => {
|
|
|
20
20
|
isInvalid: p,
|
|
21
21
|
onBlur: m,
|
|
22
22
|
onFocus: b
|
|
23
|
-
},
|
|
24
|
-
renderDescription: () => /* @__PURE__ */ t.createElement(t.Fragment, null, L,
|
|
23
|
+
}, y),
|
|
24
|
+
renderDescription: () => /* @__PURE__ */ t.createElement(t.Fragment, null, L, D)
|
|
25
25
|
});
|
|
26
26
|
}, B = ({ className: r }) => {
|
|
27
27
|
const { id: a, placeholder: l } = c(), { inputId: i, ariaDescribedBy: u } = d(), n = v(null);
|