@wix/form-elements 1.88.0 → 1.90.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-DG8GUJpn.js → appointment-rac-DtPa-JZ9.js} +6 -6
- package/dist/component/{bookings-address-rac-cNBSx-Pr.js → bookings-address-rac-4l8kqoLi.js} +1 -1
- package/dist/component/{bookings-email-rac-CYdSoVWP.js → bookings-email-rac-76vUcGtU.js} +1 -1
- package/dist/component/{bookings-first-name-rac-CQB2o8ww.js → bookings-first-name-rac-IS7LUMxg.js} +1 -1
- package/dist/component/{bookings-header-rac-CzKvQond.js → bookings-header-rac-2wTzY64_.js} +1 -1
- package/dist/component/{bookings-last-name-rac-oK1BC5Am.js → bookings-last-name-rac-nxA75igv.js} +1 -1
- package/dist/component/{bookings-login-bar-rac-CZNEy748.js → bookings-login-bar-rac-CRi1nntD.js} +21 -21
- package/dist/component/{bookings-phone-rac-D_4WfolC.js → bookings-phone-rac-DZjvHly0.js} +1 -1
- package/dist/component/{bookings-rich-text-rac-CrEfeL4P.js → bookings-rich-text-rac-CYn1wwYQ.js} +1 -1
- package/dist/component/{checkbox-field-rac-CGqshW45.js → checkbox-field-rac-DAcFLQNT.js} +49 -49
- package/dist/component/{checkbox-group-field-headless-C3_5IR-E.js → checkbox-group-field-headless-BJmS0Ce5.js} +30 -30
- package/dist/component/{checkbox-group-field-rac-DIzdgyAw.js → checkbox-group-field-rac-CeFUt2Nr.js} +9 -9
- package/dist/component/{checkbox-group-rac-EvWVfusV.js → checkbox-group-rac-eDChVoVP.js} +1 -1
- package/dist/component/{checkbox-indicator-module-classes-Bb3xB1ve.js → checkbox-indicator-module-classes-mJ7hl_8K.js} +1 -1
- package/dist/component/{checkbox-rac-CT_69Jei.js → checkbox-rac-DGmZdPnl.js} +1 -1
- package/dist/component/{contacts-address-rac-M8MZd777.js → contacts-address-rac-CGS83PMu.js} +1 -1
- package/dist/component/{contacts-birthdate-rac-BS-8HeRD.js → contacts-birthdate-rac-DkP-7tZ9.js} +1 -1
- package/dist/component/{contacts-company-rac-gmgKLvic.js → contacts-company-rac-D_KYvkYe.js} +1 -1
- package/dist/component/{contacts-email-rac-QQ6E9VzX.js → contacts-email-rac-4lGD56E8.js} +1 -1
- package/dist/component/{contacts-first-name-rac-DR7XheRo.js → contacts-first-name-rac-C5L3U9QV.js} +1 -1
- package/dist/component/{contacts-last-name-rac-CBJgTkj5.js → contacts-last-name-rac-SL3FSAhE.js} +1 -1
- package/dist/component/{contacts-phone-rac-CTl25HdK.js → contacts-phone-rac-DkUwJ56_.js} +1 -1
- package/dist/component/{contacts-position-rac-DBDOW7QR.js → contacts-position-rac-CeKJ5oJh.js} +1 -1
- package/dist/component/{contacts-subscribe-rac-C0-uJ7fU.js → contacts-subscribe-rac-Bjldz7ed.js} +2 -2
- package/dist/component/{contacts-tax-id-rac-BtXc0V1S.js → contacts-tax-id-rac-D8QxyDiU.js} +1 -1
- package/dist/component/{date-availability-IQtwk-aX.js → date-availability-DdMI-zNj.js} +1 -1
- package/dist/component/{date-input-field-rac-2rbZiSgo.js → date-input-field-rac-Da6j7OP2.js} +99 -98
- package/dist/component/{date-input-rac-j4--xZ8s.js → date-input-rac-tlmhXr4A.js} +1 -1
- package/dist/component/{date-picker-field-rac-Cl7ueVVn.js → date-picker-field-rac-ClNfMoR1.js} +43 -43
- package/dist/component/{date-picker-rac-BrObkuYv.js → date-picker-rac-BV3TGjsx.js} +1 -1
- package/dist/component/date-time-input-field-rac-5eHyKry0.js +424 -0
- package/dist/component/{date-time-input-rac-BShquR72.js → date-time-input-rac-DQk2ylbE.js} +1 -1
- package/dist/component/{dext-checkbox-group-rac-DNXYnHDM.js → dext-checkbox-group-rac-CBj9Y7Tp.js} +2 -2
- package/dist/component/{dext-checkbox-rac-RBMWmgyT.js → dext-checkbox-rac-C1KI5I2J.js} +1 -1
- package/dist/component/{dext-date-picker-rac-Dph_kV11.js → dext-date-picker-rac-D-8Ss0bx.js} +1 -1
- package/dist/component/{dext-date-time-input-rac-C3_gQkBT.js → dext-date-time-input-rac-CRnwLBSZ.js} +1 -1
- package/dist/component/{dext-dropdown-rac-D34vhtST.js → dext-dropdown-rac-BVTEMS0W.js} +1 -1
- package/dist/component/{dext-email-rac-Yzf4-vSg.js → dext-email-rac-CXeM4iQj.js} +1 -1
- package/dist/component/{dext-number-input-rac-D0jZXKaI.js → dext-number-input-rac-DMh08cy5.js} +1 -1
- package/dist/component/{dext-phone-rac-bqTpmTa0.js → dext-phone-rac-E1fFjkVW.js} +1 -1
- package/dist/component/{dext-radio-group-rac-AYPAzpqZ.js → dext-radio-group-rac-_BhRzFAr.js} +2 -2
- package/dist/component/{dext-rating-input-rac-DOSq-xVQ.js → dext-rating-input-rac-BRYVQOYw.js} +1 -1
- package/dist/component/{dext-tags-rac-BXtFTlL0.js → dext-tags-rac-C4iwtRcw.js} +2 -2
- package/dist/component/{dext-text-area-rac-46wwBQg_.js → dext-text-area-rac-CQ1KAhkU.js} +1 -1
- package/dist/component/{dext-text-input-rac-DVj6V1VG.js → dext-text-input-rac-xCoKhEt3.js} +1 -1
- package/dist/component/{dext-url-input-rac-B5zu9R5K.js → dext-url-input-rac-DyoEEa_v.js} +1 -1
- package/dist/component/{donation-rac-DeBMssGg.js → donation-rac-CSDVxWUj.js} +51 -51
- package/dist/component/dropdown-field-headless-BXyP9KYi.js +101 -0
- package/dist/component/dropdown-field-rac-D1Z_Jbzd.js +36 -0
- package/dist/component/{dropdown-rac-bUNYh49x.js → dropdown-rac-BEi7CMKT.js} +1 -1
- package/dist/component/{ecom-address-rac-CtrERV3f.js → ecom-address-rac-DGl7rlwa.js} +1 -1
- package/dist/component/{ecom-subscription-checkbox-rac-BrpwOSYM.js → ecom-subscription-checkbox-rac-D5HzzRQk.js} +6 -6
- package/dist/component/{email-input-field-rac-4yYxYc1a.js → email-input-field-rac-DHAK2K8E.js} +63 -63
- package/dist/component/{events-repeater-rac-B308C1JK.js → events-repeater-rac-N1mGqD4R.js} +35 -35
- package/dist/component/{events-rsvp-rac-C4_LJ3Wz.js → events-rsvp-rac-Ds9PnqHG.js} +6 -6
- package/dist/component/{field-error-headless-PMBWtb3Z.js → field-error-headless-9MKScovg.js} +12 -12
- package/dist/component/{field-label-headless-0racVfdo.js → field-label-headless-BaoLrUWJ.js} +12 -12
- package/dist/component/field-rac.module-BUvPquav.js +26 -0
- package/dist/component/{file-upload-rac-CZIHV2OL.js → file-upload-rac-CNbLRxUz.js} +116 -116
- package/dist/component/{fixed-payment-rac-COhRKeun.js → fixed-payment-rac-BFnvUksR.js} +15 -15
- package/dist/component/{form-UCnayEKT.js → form-B3YjGh0T.js} +129 -128
- package/dist/component/{form-element-classes--p2vz_Bm.js → form-element-classes-CLZXu-91.js} +79 -69
- package/dist/component/form.css +1 -1
- package/dist/component/form.js +1 -1
- package/dist/component/{header-field-rac-CpXa-NlC.js → header-field-rac-64pYqszP.js} +3 -3
- package/dist/component/{header-rac-CCsguMlZ.js → header-rac-BtPQVL59.js} +1 -1
- package/dist/component/{image-choice-rac-j2UH4Q4I.js → image-choice-rac-BsojUR1h.js} +20 -20
- package/dist/component/{index-Bxa3IDHm.js → index-CtiBRBqZ.js} +4 -4
- package/dist/component/{index-jg8dn8po.js → index-f2JBxCTd.js} +2 -2
- package/dist/component/{isObjectLike-Zw6J9g91.js → isObjectLike-BgqHLNgn.js} +1 -1
- package/dist/component/{multiline-address-field-rac-BeFAYL7V.js → multiline-address-field-rac-CH1hCUTf.js} +575 -574
- package/dist/component/{multiline-address-rac-BYr5_DQd.js → multiline-address-rac-CkOPWXfI.js} +1 -1
- package/dist/component/{number-input-field-rac-BNdJecUL.js → number-input-field-rac-B7U_08UK.js} +24 -24
- package/dist/component/{number-input-rac-Cqkj4JAF.js → number-input-rac-1jcchySg.js} +1 -1
- package/dist/component/{password-rac-D4iSs1ds.js → password-rac-CAaV8OrL.js} +21 -21
- package/dist/component/{payment-input-rac-BvBP47HP.js → payment-input-rac-B3Knhzrz.js} +25 -25
- package/dist/component/{phone-input-field-rac-Cggx8IlY.js → phone-input-field-rac-BGsvxtXz.js} +185 -184
- package/dist/component/{phone-rac-BISmYt_n.js → phone-rac-BUAW-44w.js} +1 -1
- package/dist/component/{product-list-rac-C1bm-U2G.js → product-list-rac-C7Nq3ZG4.js} +43 -43
- package/dist/component/quiz-radio-group-rac-CRa3I_NR.js +13 -0
- package/dist/component/{radio-button-module-classes-blfiatlc.js → radio-button-module-classes-BEvf741q.js} +7 -7
- package/dist/component/{radio-group-field-rac-BiiPUxbQ.js → radio-group-field-rac-BYTXrpnE.js} +5 -5
- package/dist/component/{radio-group-rac-Bn_W-3xz.js → radio-group-rac-138JrIhm.js} +1 -1
- package/dist/component/{rating-input-field-rac-CjXIoNMc.js → rating-input-field-rac-D5pOVdFJ.js} +24 -24
- package/dist/component/{rating-input-rac-Ci4uPo22.js → rating-input-rac-DuK1q9JB.js} +1 -1
- package/dist/component/{rich-content-rac.module-CDZniyrZ.js → rich-content-rac.module-H3hPgDtD.js} +4 -4
- package/dist/component/{rich-text-field-rac-BBRE9_Kr.js → rich-text-field-rac-Btwqm4wb.js} +5 -5
- package/dist/component/{rich-text-rac-C3MfJK-H.js → rich-text-rac-DIu8StCg.js} +1 -1
- package/dist/component/service-dropdown-rac-N8jqoUC_.js +146 -0
- package/dist/component/{services-multi-choice-rac-FDHRjDLS.js → services-multi-choice-rac-DlP0tB9d.js} +18 -18
- package/dist/component/{signature-rac-DfGPV0Mw.js → signature-rac-DuRzxIkO.js} +53 -53
- package/dist/component/{submit-button-rac-DRsqyJcl.js → submit-button-rac-DFmPp4jT.js} +7 -7
- package/dist/component/{tags-field-rac-CZ4FBGG9.js → tags-field-rac-DIgyn5P9.js} +56 -56
- package/dist/component/{tags-rac-CMHMsiwv.js → tags-rac-C6R6RHl2.js} +1 -1
- package/dist/component/text-area-field-rac-opBEx_8s.js +73 -0
- package/dist/component/{text-area-rac-BKGDa4E3.js → text-area-rac-D4iKhAqc.js} +1 -1
- package/dist/component/{text-input-field-rac-CU8eBRM4.js → text-input-field-rac-Ckp8Ierz.js} +6 -6
- package/dist/component/{text-input-headless-C1eFy2gl.js → text-input-headless-D-LXpqS3.js} +6 -6
- package/dist/component/{text-input-rac-DO0eI3ty.js → text-input-rac-ChxuJj-q.js} +1 -1
- package/dist/component/{time-input-rac-BJ0AL2Be.js → time-input-rac-C5_rEy7W.js} +23 -23
- package/dist/component/{url-input-field-rac-BtpAuKfp.js → url-input-field-rac-CBOnhquz.js} +22 -22
- package/dist/component/{url-input-rac-CjnPbcHt.js → url-input-rac-BY-BVg6r.js} +1 -1
- package/dist/component/use-dropdown-option-class-name-C1iEE28P.js +28 -0
- package/dist/component/{use-element-state-class-name-X08kIFhd.js → use-element-state-class-name--YLulmsU.js} +1 -1
- package/dist/component/{use-service-options-base-DfHhMveM.js → use-service-options-base-BNLFmnHJ.js} +3 -3
- package/dist/component/{use-text-input-class-name-BAuokapo.js → use-text-input-class-name-3Xp-hNDT.js} +4 -4
- package/dist/form.d.ts +3 -0
- package/package.json +3 -3
- package/dist/component/date-time-input-field-rac-mqea6CtW.js +0 -423
- package/dist/component/dropdown-field-headless-ShcoDfPa.js +0 -84
- package/dist/component/dropdown-field-rac-DruF_YdZ.js +0 -32
- package/dist/component/field-rac.module-D06m9T9x.js +0 -24
- package/dist/component/quiz-radio-group-rac-BhNhoOSI.js +0 -13
- package/dist/component/service-dropdown-rac-DQkk3SlS.js +0 -142
- package/dist/component/text-area-field-rac-BnRuG5y8.js +0 -73
|
@@ -1,142 +0,0 @@
|
|
|
1
|
-
import t, { useRef as N, useMemo as g, useCallback as h, useEffect as T } from "react";
|
|
2
|
-
import { RicosViewer as A } from "@wix/ricos/viewer";
|
|
3
|
-
import m from "classnames";
|
|
4
|
-
import { af as w, at as b, F as M, aj as y, ab as x, h as U } from "./form-UCnayEKT.js";
|
|
5
|
-
import { u as V } from "./use-service-options-base-DfHhMveM.js";
|
|
6
|
-
import { D as d } from "./dropdown-field-headless-ShcoDfPa.js";
|
|
7
|
-
import { C as B } from "./chevron-down-icon-CcpVm6B-.js";
|
|
8
|
-
import { E as H } from "./error-icon-hZxQ6DEy.js";
|
|
9
|
-
import { H as k } from "./custom-focus-class-_483Pkwp.js";
|
|
10
|
-
import { s as n } from "./field-rac.module-D06m9T9x.js";
|
|
11
|
-
import { y as q, P as W, x as j, B as Q, o as Y, i as z } from "./form-element-classes--p2vz_Bm.js";
|
|
12
|
-
const G = "00000000-0000-0000-0000-000000000000", J = (e) => {
|
|
13
|
-
const { actions: r } = w(), { t: C } = b(), { addOther: i, addOtherLabel: p } = e, c = p || C("add-other.default-other-option-label"), a = N(!0), E = g(() => {
|
|
14
|
-
var s;
|
|
15
|
-
return ((s = e.options) == null ? void 0 : s.map((u) => u.id ?? "")) ?? [];
|
|
16
|
-
}, [
|
|
17
|
-
e.options
|
|
18
|
-
]), O = h((s) => i ? [
|
|
19
|
-
...s,
|
|
20
|
-
{
|
|
21
|
-
value: c,
|
|
22
|
-
label: c,
|
|
23
|
-
id: G
|
|
24
|
-
}
|
|
25
|
-
] : s, [
|
|
26
|
-
i,
|
|
27
|
-
c
|
|
28
|
-
]), { isLoading: f, options: l, isEmpty: D, shouldRender: I, setIsLoading: F, setOptions: L, setIsEmpty: S, processOptions: _ } = V({
|
|
29
|
-
fieldType: M.SERVICES_DROPDOWN,
|
|
30
|
-
isEditor: e.isEditor,
|
|
31
|
-
postProcessOptions: O
|
|
32
|
-
}), R = h(async () => {
|
|
33
|
-
if (a.current && (r != null && r.fetchServices) && E.length > 0) {
|
|
34
|
-
a.current = !1, F(!0);
|
|
35
|
-
let s;
|
|
36
|
-
try {
|
|
37
|
-
s = await r.fetchServices({
|
|
38
|
-
serviceIds: E
|
|
39
|
-
});
|
|
40
|
-
} catch (u) {
|
|
41
|
-
console.error(u);
|
|
42
|
-
}
|
|
43
|
-
if (s) {
|
|
44
|
-
const u = _(s);
|
|
45
|
-
S(!i && u.length === 0), L(u);
|
|
46
|
-
} else
|
|
47
|
-
a.current = !0;
|
|
48
|
-
F(!1);
|
|
49
|
-
}
|
|
50
|
-
}, [
|
|
51
|
-
r,
|
|
52
|
-
E,
|
|
53
|
-
_,
|
|
54
|
-
i,
|
|
55
|
-
F,
|
|
56
|
-
L,
|
|
57
|
-
S
|
|
58
|
-
]);
|
|
59
|
-
T(() => {
|
|
60
|
-
if (!e.isEditor && l.length > 0) {
|
|
61
|
-
const s = i ? l.length - 1 : l.length;
|
|
62
|
-
S(s === 0);
|
|
63
|
-
}
|
|
64
|
-
}, [
|
|
65
|
-
l,
|
|
66
|
-
i,
|
|
67
|
-
S,
|
|
68
|
-
e.isEditor
|
|
69
|
-
]);
|
|
70
|
-
const v = h(() => {
|
|
71
|
-
e.onFocus && e.onFocus(), a.current && R();
|
|
72
|
-
}, [
|
|
73
|
-
R,
|
|
74
|
-
e.onFocus
|
|
75
|
-
]), P = h(
|
|
76
|
-
(s) => {
|
|
77
|
-
e.onChange && e.onChange(s), a.current = !0;
|
|
78
|
-
},
|
|
79
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
80
|
-
[
|
|
81
|
-
e.onChange
|
|
82
|
-
]
|
|
83
|
-
);
|
|
84
|
-
return {
|
|
85
|
-
isLoading: f,
|
|
86
|
-
options: l,
|
|
87
|
-
isEmpty: D,
|
|
88
|
-
onFocus: v,
|
|
89
|
-
onChange: P,
|
|
90
|
-
shouldRender: I
|
|
91
|
-
};
|
|
92
|
-
}, o = ({ children: e }) => {
|
|
93
|
-
const r = y(), { addOther: C } = r, i = x(), p = r.isEditor || i.isEditor || i.isComposer, { isLoading: c, options: a, isEmpty: E, onFocus: O, onChange: f, shouldRender: l } = J({
|
|
94
|
-
...r,
|
|
95
|
-
isEditor: p
|
|
96
|
-
}), D = g(() => ({
|
|
97
|
-
...r,
|
|
98
|
-
options: c ? [] : a,
|
|
99
|
-
isLoading: c,
|
|
100
|
-
onFocus: O,
|
|
101
|
-
onChange: f
|
|
102
|
-
}), [
|
|
103
|
-
r,
|
|
104
|
-
a,
|
|
105
|
-
c,
|
|
106
|
-
O,
|
|
107
|
-
f
|
|
108
|
-
]);
|
|
109
|
-
return !p && E && !C || !l ? null : /* @__PURE__ */ t.createElement(U.Provider, {
|
|
110
|
-
value: {
|
|
111
|
-
v2: D
|
|
112
|
-
}
|
|
113
|
-
}, /* @__PURE__ */ t.createElement(d, null, e));
|
|
114
|
-
};
|
|
115
|
-
o.Label = d.Label;
|
|
116
|
-
o.Trigger = d.Trigger;
|
|
117
|
-
o.Options = d.Options;
|
|
118
|
-
o.Description = d.Description;
|
|
119
|
-
o.Error = d.Error;
|
|
120
|
-
const K = ({ content: e, locale: r }) => /* @__PURE__ */ t.createElement(A, {
|
|
121
|
-
content: e,
|
|
122
|
-
locale: r
|
|
123
|
-
}), X = () => /* @__PURE__ */ t.createElement(o, null, /* @__PURE__ */ t.createElement(o.Label, {
|
|
124
|
-
className: m(q, n.label)
|
|
125
|
-
}, /* @__PURE__ */ t.createElement(o.Label.Required, {
|
|
126
|
-
className: m(W, n.requiredMark)
|
|
127
|
-
})), /* @__PURE__ */ t.createElement(o.Trigger, {
|
|
128
|
-
className: m(j, n.input, n.dropdownTrigger)
|
|
129
|
-
}, /* @__PURE__ */ t.createElement(B, {
|
|
130
|
-
className: n.dropdownIcon
|
|
131
|
-
})), /* @__PURE__ */ t.createElement(o.Options, {
|
|
132
|
-
className: m(Q, n.selectPopover, n.dropdownPopover)
|
|
133
|
-
}, /* @__PURE__ */ t.createElement(o.Options.Option, {
|
|
134
|
-
className: m(n.selectOption, k)
|
|
135
|
-
})), /* @__PURE__ */ t.createElement(o.Error, {
|
|
136
|
-
className: m(Y, n.error)
|
|
137
|
-
}, /* @__PURE__ */ t.createElement(H, null), /* @__PURE__ */ t.createElement(o.Error.Text, null)), /* @__PURE__ */ t.createElement(o.Description, {
|
|
138
|
-
className: m(z, n.description)
|
|
139
|
-
}, K)), le = () => /* @__PURE__ */ t.createElement(X, null);
|
|
140
|
-
export {
|
|
141
|
-
le as ServiceDropdownRAC
|
|
142
|
-
};
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
import { RicosViewer as N } from "@wix/ricos/viewer";
|
|
2
|
-
import o from "classnames";
|
|
3
|
-
import r, { useCallback as T, useRef as y } from "react";
|
|
4
|
-
import { TextField as O, TextArea as S } from "react-aria-components";
|
|
5
|
-
import { aj as p, ag as d, al as x } from "./form-UCnayEKT.js";
|
|
6
|
-
import { f as i } from "./find-child-C60k4CxG.js";
|
|
7
|
-
import { D as g, E as h } from "./field-error-headless-PMBWtb3Z.js";
|
|
8
|
-
import { L as v } from "./field-label-headless-0racVfdo.js";
|
|
9
|
-
import { E as M } from "./error-icon-hZxQ6DEy.js";
|
|
10
|
-
import { s as c } from "./field-rac.module-D06m9T9x.js";
|
|
11
|
-
import { y as q, P as B, o as P, i as k } from "./form-element-classes--p2vz_Bm.js";
|
|
12
|
-
import { u as V } from "./use-text-input-class-name-BAuokapo.js";
|
|
13
|
-
const e = ({ children: t }) => {
|
|
14
|
-
const { id: a, value: m, onChange: s, disabled: u, required: n, readOnly: l, onBlur: E, onFocus: f, FieldLayout: I, hasError: b } = p(), { labelId: F } = d(), L = T((A) => {
|
|
15
|
-
s(A);
|
|
16
|
-
}, [
|
|
17
|
-
s
|
|
18
|
-
]), R = i(t, e.Label), D = i(t, e.Input), _ = i(t, e.Description), C = i(t, e.Error);
|
|
19
|
-
return /* @__PURE__ */ r.createElement(I, {
|
|
20
|
-
fieldId: a,
|
|
21
|
-
renderLabel: () => R,
|
|
22
|
-
renderInput: () => /* @__PURE__ */ r.createElement(O, {
|
|
23
|
-
"aria-labelledby": F,
|
|
24
|
-
value: m ?? "",
|
|
25
|
-
onChange: L,
|
|
26
|
-
isDisabled: u,
|
|
27
|
-
isReadOnly: l,
|
|
28
|
-
isRequired: n,
|
|
29
|
-
isInvalid: b,
|
|
30
|
-
onBlur: E,
|
|
31
|
-
onFocus: f
|
|
32
|
-
}, D),
|
|
33
|
-
renderDescription: () => /* @__PURE__ */ r.createElement(r.Fragment, null, C, _)
|
|
34
|
-
});
|
|
35
|
-
}, j = ({ className: t }) => {
|
|
36
|
-
const { inputId: a, ariaDescribedBy: m } = d(), { id: s, placeholder: u } = p(), n = y(null);
|
|
37
|
-
return x(() => {
|
|
38
|
-
var l;
|
|
39
|
-
(l = n.current) == null || l.focus();
|
|
40
|
-
}, s), /* @__PURE__ */ r.createElement(S, {
|
|
41
|
-
ref: n,
|
|
42
|
-
id: a,
|
|
43
|
-
"aria-describedby": m,
|
|
44
|
-
placeholder: u,
|
|
45
|
-
className: t
|
|
46
|
-
});
|
|
47
|
-
};
|
|
48
|
-
e.Label = v;
|
|
49
|
-
e.Input = j;
|
|
50
|
-
e.Description = g;
|
|
51
|
-
e.Error = h;
|
|
52
|
-
const w = "_input_ug5v8_1", Q = {
|
|
53
|
-
input: w
|
|
54
|
-
}, U = ({ content: t, locale: a }) => /* @__PURE__ */ r.createElement(N, {
|
|
55
|
-
content: t,
|
|
56
|
-
locale: a
|
|
57
|
-
}), te = () => {
|
|
58
|
-
const t = V(Q.input);
|
|
59
|
-
return /* @__PURE__ */ r.createElement(e, null, /* @__PURE__ */ r.createElement(e.Label, {
|
|
60
|
-
className: o(q, c.label)
|
|
61
|
-
}, /* @__PURE__ */ r.createElement(e.Label.Required, {
|
|
62
|
-
className: o(B, c.requiredMark)
|
|
63
|
-
})), /* @__PURE__ */ r.createElement(e.Input, {
|
|
64
|
-
className: t
|
|
65
|
-
}), /* @__PURE__ */ r.createElement(e.Error, {
|
|
66
|
-
className: o(P, c.error)
|
|
67
|
-
}, /* @__PURE__ */ r.createElement(M, null), /* @__PURE__ */ r.createElement(e.Error.Text, null)), /* @__PURE__ */ r.createElement(e.Description, {
|
|
68
|
-
className: o(k, c.description)
|
|
69
|
-
}, U));
|
|
70
|
-
};
|
|
71
|
-
export {
|
|
72
|
-
te as T
|
|
73
|
-
};
|