@wix/form-elements 1.94.0 → 1.96.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-CNIizm60.js → appointment-rac-BKgRKq3j.js} +309 -310
- package/dist/component/{bookings-address-rac-C7ukrF1D.js → bookings-address-rac-C87x19gw.js} +1 -1
- package/dist/component/{bookings-email-rac-DnzbLEmf.js → bookings-email-rac-f4nuC_pb.js} +1 -1
- package/dist/component/{bookings-first-name-rac-8Krm-3QK.js → bookings-first-name-rac-BGmuAmbu.js} +1 -1
- package/dist/component/{bookings-header-rac-WRILbKeE.js → bookings-header-rac-CoyxHljp.js} +1 -1
- package/dist/component/{bookings-last-name-rac-C0-yWBLa.js → bookings-last-name-rac-D2mBYwcR.js} +1 -1
- package/dist/component/{bookings-login-bar-rac-Bc9u_rn_.js → bookings-login-bar-rac-BH2Mi6TR.js} +4 -4
- package/dist/component/{bookings-phone-rac-BaBlg7f7.js → bookings-phone-rac-Dz78ybFV.js} +1 -1
- package/dist/component/{bookings-rich-text-rac-DR-Ngu_b.js → bookings-rich-text-rac-8_h0cOoy.js} +1 -1
- package/dist/component/{get-first-day-of-the-week-DvnsxYhQ.js → calendar.module-DnhTT4QT.js} +23 -18
- package/dist/component/{checkbox-field-rac-Cqr57TgJ.js → checkbox-field-rac-CJnegjvL.js} +5 -5
- package/dist/component/{checkbox-group-field-headless-Bgcvavr3.js → checkbox-group-field-headless-CrA7Gx2Y.js} +3 -3
- package/dist/component/{checkbox-group-field-rac-Bcsowjwp.js → checkbox-group-field-rac-DMg75l5Q.js} +12 -12
- package/dist/component/{checkbox-group-rac-38j0b8_U.js → checkbox-group-rac-C9XWlO5D.js} +1 -1
- package/dist/component/{checkbox-rac-Bb5ZxZo7.js → checkbox-rac-CrqhH4z9.js} +1 -1
- package/dist/component/{contacts-address-rac-gaOhfztb.js → contacts-address-rac-C2mqTiPg.js} +1 -1
- package/dist/component/{contacts-birthdate-rac-DAIPR64p.js → contacts-birthdate-rac-i7_RMona.js} +1 -1
- package/dist/component/{contacts-company-rac-DVPQrcfN.js → contacts-company-rac-7sdIosaG.js} +1 -1
- package/dist/component/{contacts-email-rac-qMyFjz_2.js → contacts-email-rac-CrsksJ9G.js} +1 -1
- package/dist/component/{contacts-first-name-rac-OVPtHcde.js → contacts-first-name-rac-I5xIYxgD.js} +1 -1
- package/dist/component/{contacts-last-name-rac-BmLQrJ2D.js → contacts-last-name-rac-DnzJYJh7.js} +1 -1
- package/dist/component/{contacts-phone-rac-D7waZc1q.js → contacts-phone-rac-Cx1jpYmv.js} +1 -1
- package/dist/component/{contacts-position-rac-DnI3o3Am.js → contacts-position-rac-CxddG_cE.js} +1 -1
- package/dist/component/{contacts-subscribe-rac-P8zn8_GS.js → contacts-subscribe-rac-C1nTAhnd.js} +2 -2
- package/dist/component/{contacts-tax-id-rac-9CBr2KkR.js → contacts-tax-id-rac-B1lzfrj_.js} +1 -1
- package/dist/component/{date-availability--ntpBDiI.js → date-availability-LN33GU7O.js} +1 -1
- package/dist/component/{date-input-field-rac-Don2tz5U.js → date-input-field-rac-zTcw6Mxx.js} +57 -56
- package/dist/component/{date-input-rac-Du3e8Hcu.js → date-input-rac-NfVbrcoO.js} +1 -1
- package/dist/component/date-picker-field-rac-Cc9hJloJ.js +317 -0
- package/dist/component/{date-picker-rac-BsCMkfHV.js → date-picker-rac-C5iXyKdf.js} +1 -1
- package/dist/component/{date-time-input-field-rac-LLF1UdUD.js → date-time-input-field-rac-Cp34u7cC.js} +53 -52
- package/dist/component/{date-time-input-rac-KYqrNgbb.js → date-time-input-rac-CfFd56Xf.js} +1 -1
- package/dist/component/{dext-checkbox-group-rac-DaOY9Cb6.js → dext-checkbox-group-rac-BVx7XXwR.js} +2 -2
- package/dist/component/{dext-checkbox-rac-Ceu5q9xf.js → dext-checkbox-rac-CmUOLx_w.js} +1 -1
- package/dist/component/{dext-date-picker-rac-iop0XEpQ.js → dext-date-picker-rac-XDrLGVTQ.js} +1 -1
- package/dist/component/{dext-date-time-input-rac-DJB_fMiN.js → dext-date-time-input-rac-ZLCq_taK.js} +1 -1
- package/dist/component/{dext-dropdown-rac-Dhp4CUZ5.js → dext-dropdown-rac-C74zBq3M.js} +1 -1
- package/dist/component/{dext-email-rac-BIr9RxhQ.js → dext-email-rac-CqS9HcdY.js} +1 -1
- package/dist/component/{dext-number-input-rac-Q8p3NeKN.js → dext-number-input-rac-DszjJDT-.js} +1 -1
- package/dist/component/{dext-phone-rac-DRdRLIvr.js → dext-phone-rac-wt7T8hpM.js} +1 -1
- package/dist/component/{dext-radio-group-rac-D1N_wBhO.js → dext-radio-group-rac-BvRnaWP0.js} +2 -2
- package/dist/component/{dext-rating-input-rac-BQIMl7oQ.js → dext-rating-input-rac-D1Lt9M3c.js} +1 -1
- package/dist/component/{dext-tags-rac-C52jiu1I.js → dext-tags-rac-70YO5CJH.js} +2 -2
- package/dist/component/{dext-text-area-rac-BWmSs4mb.js → dext-text-area-rac-CC5RCvWh.js} +1 -1
- package/dist/component/{dext-text-input-rac-BnAJ-7Hs.js → dext-text-input-rac-s487DzPW.js} +1 -1
- package/dist/component/{dext-url-input-rac-CvGn3KHo.js → dext-url-input-rac-DEKwUh2a.js} +1 -1
- package/dist/component/{donation-rac-DsFRs16V.js → donation-rac-C2bCFVHP.js} +30 -30
- package/dist/component/{dropdown-field-headless-K0AM4AAs.js → dropdown-field-headless-BMWwkydq.js} +4 -4
- package/dist/component/{dropdown-field-rac-CMEB8ZQN.js → dropdown-field-rac-Cw5Cbpg0.js} +5 -5
- package/dist/component/{dropdown-rac-BakYShkm.js → dropdown-rac-CEmlDY3w.js} +1 -1
- package/dist/component/{ecom-address-rac-A_Aj5CX0.js → ecom-address-rac-Dv6asnf_.js} +1 -1
- package/dist/component/{ecom-subscription-checkbox-rac-Ddol0N03.js → ecom-subscription-checkbox-rac-DOwH-Ebd.js} +3 -3
- package/dist/component/{email-input-field-rac-B7yOMDWB.js → email-input-field-rac-CeFXPibq.js} +41 -41
- package/dist/component/events-repeater-rac-BUk5Qc8n.js +267 -0
- package/dist/component/{events-rsvp-rac-DfjqTM7C.js → events-rsvp-rac-CtFkVzUy.js} +20 -20
- package/dist/component/{field-error-headless-CONyKitA.js → field-error-headless-B6x_cVEi.js} +1 -1
- package/dist/component/{field-label-headless-tf9QXhMi.js → field-label-headless-BibCD8xx.js} +1 -1
- package/dist/component/{file-upload-rac-Bng5Yew9.js → file-upload-rac-BUcktluW.js} +43 -43
- package/dist/component/{fixed-payment-rac-CXIv7_Oj.js → fixed-payment-rac-BMSBSo5c.js} +10 -10
- package/dist/component/{form-Lv-a47BN.js → form-9WmwgGNc.js} +1120 -1108
- package/dist/component/{form-element-classes-CLZXu-91.js → form-element-classes-BtKlobUX.js} +60 -59
- package/dist/component/form.css +1 -1
- package/dist/component/form.js +1 -1
- package/dist/component/{header-field-rac-BZdYszfP.js → header-field-rac-CxUuHOic.js} +3 -3
- package/dist/component/{header-rac-BNeqoDyT.js → header-rac-DejI69X7.js} +1 -1
- package/dist/component/{image-choice-rac-aSKDRo51.js → image-choice-rac-BjI5a_co.js} +15 -15
- package/dist/component/{index-DnNA6zNR.js → index-Csso-2QH.js} +2 -2
- package/dist/component/{index-CWZfskEy.js → index-Dz2hV2_S.js} +4 -4
- package/dist/component/{isObjectLike-C9ogbjhq.js → isObjectLike-BN_BZMhy.js} +1 -1
- package/dist/component/{multiline-address-field-rac-CHE1mE_b.js → multiline-address-field-rac-CYfphmfr.js} +86 -85
- package/dist/component/{multiline-address-rac-wxJunvdU.js → multiline-address-rac-Ccujt2bd.js} +1 -1
- package/dist/component/{number-input-field-rac-ore1oi9q.js → number-input-field-rac-CfnRCRar.js} +18 -18
- package/dist/component/{number-input-rac-DU-rCrjJ.js → number-input-rac-DnTO9d8P.js} +1 -1
- package/dist/component/{password-rac-Dkqv0AIm.js → password-rac-Be_YSb-Q.js} +37 -37
- package/dist/component/{payment-input-rac-CsTcFhQ5.js → payment-input-rac-DXUf5iYb.js} +22 -22
- package/dist/component/{phone-input-field-rac-lIVKt7ge.js → phone-input-field-rac-DYAwLuvJ.js} +32 -31
- package/dist/component/{phone-rac-CZlsXHRM.js → phone-rac-BlsvDmER.js} +1 -1
- package/dist/component/{product-list-rac-UebyHfhC.js → product-list-rac-DdXwRSc2.js} +15 -15
- package/dist/component/{quiz-radio-group-rac-ORLTYxdR.js → quiz-radio-group-rac-B0yiKdbu.js} +2 -2
- package/dist/component/{radio-button-module-classes-CEQr0hKB.js → radio-button-module-classes-t1jsWYpT.js} +3 -3
- package/dist/component/{radio-group-field-rac-t_Dj1_4p.js → radio-group-field-rac-Cug1TtSq.js} +4 -4
- package/dist/component/{radio-group-rac-CC_35nq4.js → radio-group-rac-_O5T0Pt8.js} +1 -1
- package/dist/component/{rating-input-field-rac-BU66cRhy.js → rating-input-field-rac-BSKzQ3fq.js} +31 -31
- package/dist/component/{rating-input-rac-KgNbgchh.js → rating-input-rac-B71q44YO.js} +1 -1
- package/dist/component/{rich-content-rac.module-oGcFL-hl.js → rich-content-rac.module-BJuoKIOt.js} +1 -1
- package/dist/component/{rich-text-field-rac-CiwMiMv7.js → rich-text-field-rac-CiSR82Fw.js} +3 -3
- package/dist/component/{rich-text-rac-Dmp0xxpi.js → rich-text-rac-Bo6UBwOg.js} +1 -1
- package/dist/component/{service-dropdown-rac-_QBi8_AO.js → service-dropdown-rac-BJ7V-g8M.js} +35 -35
- package/dist/component/{services-multi-choice-rac-C2e3xL9O.js → services-multi-choice-rac-CtBcc9WH.js} +12 -12
- package/dist/component/{signature-rac-Dj3aYMvJ.js → signature-rac-yvrHr1he.js} +102 -102
- package/dist/component/{submit-button-rac-C-BVXga7.js → submit-button-rac-s-JdZgq7.js} +2 -2
- package/dist/component/{tags-field-rac-CcOUcsCd.js → tags-field-rac-g_W0RMod.js} +66 -66
- package/dist/component/{tags-rac-p68DA4Mq.js → tags-rac-DmvIH6HU.js} +1 -1
- package/dist/component/{text-area-field-rac-DubIcKTn.js → text-area-field-rac-Duja5xOA.js} +27 -27
- package/dist/component/{text-area-rac-CygfUB6z.js → text-area-rac-DzRxgG6u.js} +1 -1
- package/dist/component/{text-input-field-rac-C7JZRcCX.js → text-input-field-rac-C2eXeoBC.js} +7 -7
- package/dist/component/{text-input-headless-D1xcxxNE.js → text-input-headless-d1WK0nqR.js} +3 -3
- package/dist/component/{text-input-rac-C5lfqJCN.js → text-input-rac-DM9MnoQs.js} +1 -1
- package/dist/component/{time-input-rac-BNxceC-R.js → time-input-rac-CxVZ3USX.js} +25 -25
- package/dist/component/{url-input-field-rac-DH_STwmd.js → url-input-field-rac-4oVJMr1a.js} +19 -19
- package/dist/component/{url-input-rac-C2VOzCis.js → url-input-rac--T-FnskQ.js} +1 -1
- package/dist/component/use-dropdown-option-class-name-BFHRYpVL.js +21 -0
- package/dist/component/{use-element-state-class-name-CITSBXT8.js → use-element-state-class-name-De5YnxMK.js} +1 -1
- package/dist/component/use-is-forced-open-dropdown-CWvcd9Ex.js +41 -0
- package/dist/component/{use-service-options-base-DVBmOiRh.js → use-service-options-base-CD1EVWRE.js} +1 -1
- package/dist/component/{use-text-input-class-name-COw61iUf.js → use-text-input-class-name-BYwXccvO.js} +3 -3
- package/package.json +4 -3
- package/dist/component/date-picker-field-rac-Wxmz-O7r.js +0 -304
- package/dist/component/events-repeater-rac-bp8gFHXQ.js +0 -256
- package/dist/component/use-dropdown-option-class-name-CKRu4ERM.js +0 -57
|
@@ -1,37 +1,37 @@
|
|
|
1
|
-
import { RicosViewer as
|
|
2
|
-
import
|
|
3
|
-
import e, { useMemo as
|
|
1
|
+
import { RicosViewer as j } from "@wix/ricos/viewer";
|
|
2
|
+
import S from "classnames";
|
|
3
|
+
import e, { useMemo as _, useState as Q, useRef as M, useLayoutEffect as w, useCallback as k } from "react";
|
|
4
4
|
import { CheckboxGroup as z, TextField as J, Input as K, CheckboxField as X, CheckboxButton as Y } from "react-aria-components";
|
|
5
|
-
import { ak as N, ah as Z, au as y, ac as ee, am as te } from "./form-
|
|
5
|
+
import { ak as N, ah as Z, au as y, ac as ee, am as te } from "./form-9WmwgGNc.js";
|
|
6
6
|
import { f, a as x } from "./find-child-C60k4CxG.js";
|
|
7
|
-
import { E as B, D as $ } from "./field-error-headless-
|
|
8
|
-
import { L as
|
|
7
|
+
import { E as B, D as $ } from "./field-error-headless-B6x_cVEi.js";
|
|
8
|
+
import { L as H } from "./field-label-headless-BibCD8xx.js";
|
|
9
9
|
import { F as oe } from "./fieldset-headless-CD3fds9J.js";
|
|
10
10
|
import { N as v } from "./options-layout-constants-DEfIEJWD.js";
|
|
11
|
-
import { E as
|
|
11
|
+
import { E as ae } from "./error-icon-hZxQ6DEy.js";
|
|
12
12
|
import { s as D } from "./field-rac.module-DobpyqOd.js";
|
|
13
|
-
import {
|
|
13
|
+
import { C as ne, S as se, $ as re, r as le, j as ie, a0 as ce } from "./form-element-classes-BtKlobUX.js";
|
|
14
14
|
import { o as ue } from "./options-rac.module-KM-VT_KY.js";
|
|
15
|
-
import { u as de } from "./use-element-state-class-name-
|
|
16
|
-
import { u as me } from "./use-text-input-class-name-
|
|
15
|
+
import { u as de } from "./use-element-state-class-name-De5YnxMK.js";
|
|
16
|
+
import { u as me } from "./use-text-input-class-name-BYwXccvO.js";
|
|
17
17
|
const g = "Other", pe = (o, t) => {
|
|
18
18
|
const s = t.length + 2;
|
|
19
19
|
return (o.find((r) => r.startsWith(`${t}: `)) || "").slice(s);
|
|
20
|
-
}, he = (o) => o.map((t) => t.value ?? t.label),
|
|
21
|
-
const { label:
|
|
20
|
+
}, he = (o) => o.map((t) => t.value ?? t.label), P = ({ className: o, ...t }) => {
|
|
21
|
+
const { label: n } = t;
|
|
22
22
|
return /* @__PURE__ */ e.createElement("span", {
|
|
23
23
|
className: o
|
|
24
|
-
},
|
|
25
|
-
},
|
|
26
|
-
const { value: t, onChange:
|
|
24
|
+
}, n);
|
|
25
|
+
}, W = ({ className: o }) => {
|
|
26
|
+
const { value: t, onChange: n, addOtherLabel: s, addOtherPlaceholder: c, otherInputCharacterLimit: r, disabled: u, readOnly: b, hasError: d } = N(), { t: m } = y(), l = s || m("add-other.default-other-option-label") || g, p = _(() => pe(t || [], l), [
|
|
27
27
|
t,
|
|
28
28
|
l
|
|
29
|
-
]), [
|
|
29
|
+
]), [a, L] = Q(p), h = M(n);
|
|
30
30
|
w(() => {
|
|
31
|
-
h.current =
|
|
31
|
+
h.current = n;
|
|
32
32
|
});
|
|
33
33
|
const C = k((E) => {
|
|
34
|
-
|
|
34
|
+
L(E);
|
|
35
35
|
const I = (t || []).filter((O) => !O.startsWith(`${l}:`) && O !== l), F = E ? `${l}: ${E}` : l;
|
|
36
36
|
h.current([
|
|
37
37
|
...I,
|
|
@@ -42,7 +42,7 @@ const g = "Other", pe = (o, t) => {
|
|
|
42
42
|
l
|
|
43
43
|
]);
|
|
44
44
|
return /* @__PURE__ */ e.createElement(J, {
|
|
45
|
-
value:
|
|
45
|
+
value: a,
|
|
46
46
|
onChange: C,
|
|
47
47
|
isDisabled: u,
|
|
48
48
|
isReadOnly: b,
|
|
@@ -50,22 +50,22 @@ const g = "Other", pe = (o, t) => {
|
|
|
50
50
|
"aria-label": l
|
|
51
51
|
}, /* @__PURE__ */ e.createElement(K, {
|
|
52
52
|
"data-hook": "tags-other-input",
|
|
53
|
-
"data-filled":
|
|
53
|
+
"data-filled": a ? !0 : void 0,
|
|
54
54
|
placeholder: c,
|
|
55
55
|
maxLength: r,
|
|
56
56
|
className: o
|
|
57
57
|
}));
|
|
58
|
-
}, T = ({ children: o, className: t, ...
|
|
59
|
-
const { value: s, label: c, isOther: r, isFirstOption: u } =
|
|
58
|
+
}, T = ({ children: o, className: t, ...n }) => {
|
|
59
|
+
const { value: s, label: c, isOther: r, isFirstOption: u } = n, { id: b, value: d, onChange: m, options: l, disabled: p, readOnly: a, hasError: L } = N(), h = M(null);
|
|
60
60
|
te(() => {
|
|
61
61
|
var O;
|
|
62
62
|
u && ((O = h.current) == null || O.focus({
|
|
63
63
|
preventScroll: !0
|
|
64
64
|
}));
|
|
65
65
|
}, b);
|
|
66
|
-
const C = f(o,
|
|
66
|
+
const C = f(o, P), E = _(() => d || [], [
|
|
67
67
|
d
|
|
68
|
-
]), I =
|
|
68
|
+
]), I = _(() => r ? E.find((O) => O === c || O.startsWith(`${c}: `)) || c : s, [
|
|
69
69
|
r,
|
|
70
70
|
E,
|
|
71
71
|
c,
|
|
@@ -87,8 +87,8 @@ const g = "Other", pe = (o, t) => {
|
|
|
87
87
|
value: I,
|
|
88
88
|
onChange: r ? F : void 0,
|
|
89
89
|
isDisabled: p,
|
|
90
|
-
isReadOnly:
|
|
91
|
-
isInvalid:
|
|
90
|
+
isReadOnly: a,
|
|
91
|
+
isInvalid: L
|
|
92
92
|
}, /* @__PURE__ */ e.createElement(Y, {
|
|
93
93
|
className: t,
|
|
94
94
|
"data-hook": `tags-${r ? g : s}`
|
|
@@ -99,37 +99,37 @@ const g = "Other", pe = (o, t) => {
|
|
|
99
99
|
isFirstOption: u
|
|
100
100
|
})));
|
|
101
101
|
}, V = ({ children: o, className: t }) => {
|
|
102
|
-
const { options:
|
|
103
|
-
const
|
|
102
|
+
const { options: n, addOther: s, addOtherLabel: c, numberOfColumns: r = v.FREE_FLOW } = N(), { isMobile: u } = ee(), { t: b } = y(), d = u && r !== v.FREE_FLOW ? v.ONE : r, m = c || b("add-other.default-other-option-label") || g, l = f(o, T), p = _(() => {
|
|
103
|
+
const a = n || [];
|
|
104
104
|
return s ? [
|
|
105
|
-
...
|
|
105
|
+
...a,
|
|
106
106
|
{
|
|
107
107
|
label: m,
|
|
108
108
|
value: m,
|
|
109
109
|
isOther: !0
|
|
110
110
|
}
|
|
111
|
-
] :
|
|
111
|
+
] : a;
|
|
112
112
|
}, [
|
|
113
|
-
|
|
113
|
+
n,
|
|
114
114
|
s,
|
|
115
115
|
m
|
|
116
116
|
]);
|
|
117
117
|
return p.length === 0 ? null : /* @__PURE__ */ e.createElement("div", {
|
|
118
118
|
className: t,
|
|
119
119
|
"data-columns": d
|
|
120
|
-
}, p.map((
|
|
121
|
-
const h =
|
|
120
|
+
}, p.map((a, L) => {
|
|
121
|
+
const h = a.value ?? a.label;
|
|
122
122
|
return x(l, {
|
|
123
|
-
key:
|
|
123
|
+
key: a.isOther ? g : h,
|
|
124
124
|
value: h,
|
|
125
|
-
label:
|
|
126
|
-
isOther:
|
|
127
|
-
isFirstOption:
|
|
125
|
+
label: a.label,
|
|
126
|
+
isOther: a.isOther,
|
|
127
|
+
isFirstOption: L === 0
|
|
128
128
|
});
|
|
129
129
|
}));
|
|
130
|
-
},
|
|
131
|
-
const { addOther:
|
|
132
|
-
|
|
130
|
+
}, q = ({ children: o, className: t }) => {
|
|
131
|
+
const { addOther: n, addOtherLabel: s, hasError: c, readOnly: r, value: u } = N(), { t: b } = y(), d = s || b("add-other.default-other-option-label") || g, m = f(o, V), l = f(o, W), p = _(() => !n || !u ? !1 : u.some((a) => a === d || a.startsWith(`${d}:`)), [
|
|
132
|
+
n,
|
|
133
133
|
u,
|
|
134
134
|
d
|
|
135
135
|
]);
|
|
@@ -139,21 +139,21 @@ const g = "Other", pe = (o, t) => {
|
|
|
139
139
|
"data-readonly": r
|
|
140
140
|
}, m, p && l);
|
|
141
141
|
}, i = ({ children: o }) => {
|
|
142
|
-
const { id: t, value:
|
|
143
|
-
|
|
144
|
-
]), C = f(o,
|
|
142
|
+
const { id: t, value: n, onChange: s, FieldLayout: c, required: r, disabled: u, readOnly: b, hasError: d, onBlur: m, onFocus: l } = N(), { inputId: p, labelId: a, ariaDescribedBy: L } = Z(), h = _(() => n || [], [
|
|
143
|
+
n
|
|
144
|
+
]), C = f(o, H), E = f(o, q), I = f(o, $), F = f(o, B);
|
|
145
145
|
return /* @__PURE__ */ e.createElement(c, {
|
|
146
146
|
fieldId: t,
|
|
147
147
|
renderLabel: () => C,
|
|
148
148
|
renderInput: () => /* @__PURE__ */ e.createElement(oe, {
|
|
149
149
|
id: p,
|
|
150
|
-
ariaLabelledBy:
|
|
151
|
-
ariaDescribedBy:
|
|
150
|
+
ariaLabelledBy: a,
|
|
151
|
+
ariaDescribedBy: L,
|
|
152
152
|
required: r,
|
|
153
153
|
onBlur: m,
|
|
154
154
|
onFocus: l
|
|
155
155
|
}, /* @__PURE__ */ e.createElement(z, {
|
|
156
|
-
"aria-labelledby":
|
|
156
|
+
"aria-labelledby": a,
|
|
157
157
|
value: h,
|
|
158
158
|
onChange: s,
|
|
159
159
|
isDisabled: u,
|
|
@@ -165,42 +165,42 @@ const g = "Other", pe = (o, t) => {
|
|
|
165
165
|
});
|
|
166
166
|
};
|
|
167
167
|
V.Option = T;
|
|
168
|
-
T.Label =
|
|
169
|
-
i.Label =
|
|
170
|
-
i.Control =
|
|
168
|
+
T.Label = P;
|
|
169
|
+
i.Label = H;
|
|
170
|
+
i.Control = q;
|
|
171
171
|
i.Options = V;
|
|
172
|
-
i.OtherInput =
|
|
172
|
+
i.OtherInput = W;
|
|
173
173
|
i.Description = $;
|
|
174
174
|
i.Error = B;
|
|
175
|
-
const Ee = "_control_7oh59_1", Oe = "_options_7oh59_7", be = "_option_7oh59_7", fe = "_optionHover_7oh59_72",
|
|
175
|
+
const Ee = "_control_7oh59_1", Oe = "_options_7oh59_7", be = "_option_7oh59_7", fe = "_optionHover_7oh59_72", Le = "_optionSelected_7oh59_72", R = {
|
|
176
176
|
control: Ee,
|
|
177
177
|
options: Oe,
|
|
178
178
|
option: be,
|
|
179
179
|
optionHover: fe,
|
|
180
|
-
optionSelected:
|
|
181
|
-
},
|
|
180
|
+
optionSelected: Le
|
|
181
|
+
}, _e = ({ content: o, locale: t }) => /* @__PURE__ */ e.createElement(j, {
|
|
182
182
|
content: o,
|
|
183
183
|
locale: t
|
|
184
184
|
}), Ce = {
|
|
185
|
-
base:
|
|
186
|
-
selected:
|
|
187
|
-
hover:
|
|
185
|
+
base: R.option,
|
|
186
|
+
selected: R.optionSelected,
|
|
187
|
+
hover: R.optionHover
|
|
188
188
|
}, $e = () => {
|
|
189
189
|
const o = de({
|
|
190
190
|
globalClasses: ce,
|
|
191
191
|
moduleClasses: Ce
|
|
192
192
|
}), t = me();
|
|
193
193
|
return /* @__PURE__ */ e.createElement(i, null, /* @__PURE__ */ e.createElement(i.Label, {
|
|
194
|
-
className:
|
|
194
|
+
className: S(ne, D.label)
|
|
195
195
|
}, /* @__PURE__ */ e.createElement(i.Label.Required, {
|
|
196
|
-
className:
|
|
196
|
+
className: S(se, D.requiredMark)
|
|
197
197
|
})), /* @__PURE__ */ e.createElement(i.Control, {
|
|
198
|
-
className:
|
|
198
|
+
className: R.control
|
|
199
199
|
}, /* @__PURE__ */ e.createElement(i.Options, {
|
|
200
|
-
className:
|
|
200
|
+
className: S(re, R.options)
|
|
201
201
|
}, /* @__PURE__ */ e.createElement(i.Options.Option, {
|
|
202
|
-
className: ({ isSelected:
|
|
203
|
-
isSelected:
|
|
202
|
+
className: ({ isSelected: n, isHovered: s }) => o({
|
|
203
|
+
isSelected: n,
|
|
204
204
|
isHovered: s
|
|
205
205
|
})
|
|
206
206
|
}, /* @__PURE__ */ e.createElement(i.Options.Option.Label, {
|
|
@@ -208,10 +208,10 @@ const Ee = "_control_7oh59_1", Oe = "_options_7oh59_7", be = "_option_7oh59_7",
|
|
|
208
208
|
}))), /* @__PURE__ */ e.createElement(i.OtherInput, {
|
|
209
209
|
className: t
|
|
210
210
|
})), /* @__PURE__ */ e.createElement(i.Error, {
|
|
211
|
-
className:
|
|
212
|
-
}, /* @__PURE__ */ e.createElement(
|
|
213
|
-
className:
|
|
214
|
-
},
|
|
211
|
+
className: S(le, D.error)
|
|
212
|
+
}, /* @__PURE__ */ e.createElement(ae, null), /* @__PURE__ */ e.createElement(i.Error.Text, null)), /* @__PURE__ */ e.createElement(i.Description, {
|
|
213
|
+
className: S(ie, D.description)
|
|
214
|
+
}, _e));
|
|
215
215
|
};
|
|
216
216
|
export {
|
|
217
217
|
$e as T
|
|
@@ -1,39 +1,39 @@
|
|
|
1
1
|
import { RicosViewer as N } from "@wix/ricos/viewer";
|
|
2
2
|
import o from "classnames";
|
|
3
|
-
import r, { useCallback as
|
|
4
|
-
import { TextField as
|
|
5
|
-
import { ak as p, ah as d, am as x } from "./form-
|
|
3
|
+
import r, { useCallback as S, useRef as T } from "react";
|
|
4
|
+
import { TextField as O, TextArea as y } from "react-aria-components";
|
|
5
|
+
import { ak as p, ah as d, am as x } from "./form-9WmwgGNc.js";
|
|
6
6
|
import { f as i } from "./find-child-C60k4CxG.js";
|
|
7
|
-
import { D as h, E as g } from "./field-error-headless-
|
|
8
|
-
import { L as
|
|
9
|
-
import { E as
|
|
7
|
+
import { D as h, E as g } from "./field-error-headless-B6x_cVEi.js";
|
|
8
|
+
import { L as v } from "./field-label-headless-BibCD8xx.js";
|
|
9
|
+
import { E as M } from "./error-icon-hZxQ6DEy.js";
|
|
10
10
|
import { s as c } from "./field-rac.module-DobpyqOd.js";
|
|
11
|
-
import {
|
|
12
|
-
import { u as V } from "./use-text-input-class-name-
|
|
11
|
+
import { C as q, S as B, r as k, j as P } from "./form-element-classes-BtKlobUX.js";
|
|
12
|
+
import { u as V } from "./use-text-input-class-name-BYwXccvO.js";
|
|
13
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:
|
|
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 = S((A) => {
|
|
15
15
|
s(A);
|
|
16
16
|
}, [
|
|
17
17
|
s
|
|
18
|
-
]),
|
|
18
|
+
]), R = i(t, e.Label), D = i(t, e.Input), _ = i(t, e.Description), C = i(t, e.Error);
|
|
19
19
|
return /* @__PURE__ */ r.createElement(I, {
|
|
20
20
|
fieldId: a,
|
|
21
|
-
renderLabel: () =>
|
|
22
|
-
renderInput: () => /* @__PURE__ */ r.createElement(
|
|
23
|
-
"aria-labelledby":
|
|
21
|
+
renderLabel: () => R,
|
|
22
|
+
renderInput: () => /* @__PURE__ */ r.createElement(O, {
|
|
23
|
+
"aria-labelledby": F,
|
|
24
24
|
value: m ?? "",
|
|
25
|
-
onChange:
|
|
25
|
+
onChange: L,
|
|
26
26
|
isDisabled: u,
|
|
27
27
|
isReadOnly: l,
|
|
28
28
|
isRequired: n,
|
|
29
|
-
isInvalid:
|
|
29
|
+
isInvalid: b,
|
|
30
30
|
onBlur: E,
|
|
31
31
|
onFocus: f
|
|
32
32
|
}, D),
|
|
33
33
|
renderDescription: () => /* @__PURE__ */ r.createElement(r.Fragment, null, C, _)
|
|
34
34
|
});
|
|
35
|
-
},
|
|
36
|
-
const { inputId: a, ariaDescribedBy: m } = d(), { id: s, placeholder: u } = p(), n =
|
|
35
|
+
}, j = ({ className: t }) => {
|
|
36
|
+
const { inputId: a, ariaDescribedBy: m } = d(), { id: s, placeholder: u } = p(), n = T(null);
|
|
37
37
|
return x(() => {
|
|
38
38
|
var l;
|
|
39
39
|
(l = n.current) == null || l.focus();
|
|
@@ -45,28 +45,28 @@ const e = ({ children: t }) => {
|
|
|
45
45
|
className: t
|
|
46
46
|
});
|
|
47
47
|
};
|
|
48
|
-
e.Label =
|
|
49
|
-
e.Input =
|
|
48
|
+
e.Label = v;
|
|
49
|
+
e.Input = j;
|
|
50
50
|
e.Description = h;
|
|
51
51
|
e.Error = g;
|
|
52
|
-
const
|
|
53
|
-
input:
|
|
54
|
-
},
|
|
52
|
+
const w = "_input_ug5v8_1", Q = {
|
|
53
|
+
input: w
|
|
54
|
+
}, U = ({ content: t, locale: a }) => /* @__PURE__ */ r.createElement(N, {
|
|
55
55
|
content: t,
|
|
56
56
|
locale: a
|
|
57
57
|
}), te = () => {
|
|
58
|
-
const t = V(
|
|
58
|
+
const t = V(Q.input);
|
|
59
59
|
return /* @__PURE__ */ r.createElement(e, null, /* @__PURE__ */ r.createElement(e.Label, {
|
|
60
|
-
className: o(
|
|
60
|
+
className: o(q, c.label)
|
|
61
61
|
}, /* @__PURE__ */ r.createElement(e.Label.Required, {
|
|
62
|
-
className: o(
|
|
62
|
+
className: o(B, c.requiredMark)
|
|
63
63
|
})), /* @__PURE__ */ r.createElement(e.Input, {
|
|
64
64
|
className: t
|
|
65
65
|
}), /* @__PURE__ */ r.createElement(e.Error, {
|
|
66
66
|
className: o(k, c.error)
|
|
67
|
-
}, /* @__PURE__ */ r.createElement(
|
|
67
|
+
}, /* @__PURE__ */ r.createElement(M, null), /* @__PURE__ */ r.createElement(e.Error.Text, null)), /* @__PURE__ */ r.createElement(e.Description, {
|
|
68
68
|
className: o(P, c.description)
|
|
69
|
-
},
|
|
69
|
+
}, U));
|
|
70
70
|
};
|
|
71
71
|
export {
|
|
72
72
|
te as T
|
package/dist/component/{text-input-field-rac-C7JZRcCX.js → text-input-field-rac-C2eXeoBC.js}
RENAMED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { RicosViewer as l } from "@wix/ricos/viewer";
|
|
2
2
|
import t from "classnames";
|
|
3
3
|
import e from "react";
|
|
4
|
-
import { T as r } from "./text-input-headless-
|
|
4
|
+
import { T as r } from "./text-input-headless-d1WK0nqR.js";
|
|
5
5
|
import { E as o } from "./error-icon-hZxQ6DEy.js";
|
|
6
6
|
import { s as a } from "./field-rac.module-DobpyqOd.js";
|
|
7
|
-
import {
|
|
8
|
-
import { u as p } from "./use-text-input-class-name-
|
|
9
|
-
const
|
|
7
|
+
import { C as n, S as c, r as E, j as i } from "./form-element-classes-BtKlobUX.js";
|
|
8
|
+
import { u as p } from "./use-text-input-class-name-BYwXccvO.js";
|
|
9
|
+
const I = ({ content: s, locale: m }) => /* @__PURE__ */ e.createElement(l, {
|
|
10
10
|
content: s,
|
|
11
11
|
locale: m
|
|
12
|
-
}),
|
|
12
|
+
}), f = () => {
|
|
13
13
|
const s = p();
|
|
14
14
|
return /* @__PURE__ */ e.createElement(r, null, /* @__PURE__ */ e.createElement(r.Label, {
|
|
15
15
|
className: t(n, a.label)
|
|
@@ -21,8 +21,8 @@ const R = ({ content: s, locale: m }) => /* @__PURE__ */ e.createElement(l, {
|
|
|
21
21
|
className: t(E, a.error)
|
|
22
22
|
}, /* @__PURE__ */ e.createElement(o, null), /* @__PURE__ */ e.createElement(r.Error.Text, null)), /* @__PURE__ */ e.createElement(r.Description, {
|
|
23
23
|
className: t(i, a.description)
|
|
24
|
-
},
|
|
24
|
+
}, I));
|
|
25
25
|
};
|
|
26
26
|
export {
|
|
27
|
-
|
|
27
|
+
f as T
|
|
28
28
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import t, { useRef as L } from "react";
|
|
2
2
|
import { TextField as R, Input as h } from "react-aria-components";
|
|
3
|
-
import { ak as d, ah as c, am as v } from "./form-
|
|
3
|
+
import { ak as d, ah as c, am as v } from "./form-9WmwgGNc.js";
|
|
4
4
|
import { f as a } from "./find-child-C60k4CxG.js";
|
|
5
|
-
import { D as T, E as g } from "./field-error-headless-
|
|
6
|
-
import { L as x } from "./field-label-headless-
|
|
5
|
+
import { D as T, E as g } from "./field-error-headless-B6x_cVEi.js";
|
|
6
|
+
import { L as x } from "./field-label-headless-BibCD8xx.js";
|
|
7
7
|
const e = ({ children: r }) => {
|
|
8
8
|
const { id: s, value: i, onChange: l, disabled: u, readOnly: n, required: o, hasError: p, onBlur: m, onFocus: b, FieldLayout: f } = d(), { labelId: E } = c(), I = a(r, e.Label), F = a(r, e.Input), y = a(r, e.Description), D = a(r, e.Error);
|
|
9
9
|
return /* @__PURE__ */ t.createElement(f, {
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import e, { useCallback as V, useRef as
|
|
2
|
-
import { RicosViewer as
|
|
1
|
+
import e, { useCallback as V, useRef as x, useContext as k } from "react";
|
|
2
|
+
import { RicosViewer as q } from "@wix/ricos/viewer";
|
|
3
3
|
import c from "classnames";
|
|
4
|
-
import { parseTime as
|
|
5
|
-
import { TimeField as
|
|
6
|
-
import { ak as p, ah as
|
|
4
|
+
import { parseTime as v } from "@internationalized/date";
|
|
5
|
+
import { TimeField as B, DateInput as U, DateSegment as _, TimeFieldStateContext as j } from "react-aria-components";
|
|
6
|
+
import { ak as p, ah as w, au as T, am as Q } from "./form-9WmwgGNc.js";
|
|
7
7
|
import { f as m, a as F } from "./find-child-C60k4CxG.js";
|
|
8
|
-
import { D as z, E as G } from "./field-error-headless-
|
|
9
|
-
import { L as J } from "./field-label-headless-
|
|
8
|
+
import { D as z, E as G } from "./field-error-headless-B6x_cVEi.js";
|
|
9
|
+
import { L as J } from "./field-label-headless-BibCD8xx.js";
|
|
10
10
|
import { E as K } from "./error-icon-hZxQ6DEy.js";
|
|
11
|
-
import { H as
|
|
11
|
+
import { H as S } from "./custom-focus-class-_483Pkwp.js";
|
|
12
12
|
import { s as f } from "./field-rac.module-DobpyqOd.js";
|
|
13
|
-
import {
|
|
14
|
-
import { u as $ } from "./use-text-input-class-name-
|
|
13
|
+
import { C as W, S as X, r as Y, j as Z } from "./form-element-classes-BtKlobUX.js";
|
|
14
|
+
import { u as $ } from "./use-text-input-class-name-BYwXccvO.js";
|
|
15
15
|
const r = ({ children: t }) => {
|
|
16
|
-
const { id: n, value: l, onChange: o, disabled: i, readOnly: s, required: a, onBlur: d, onFocus: E, use24HourFormat: C, FieldLayout: g, hasError: I } = p(), { inputId:
|
|
16
|
+
const { id: n, value: l, onChange: o, disabled: i, readOnly: s, required: a, onBlur: d, onFocus: E, use24HourFormat: C, FieldLayout: g, hasError: I } = p(), { inputId: D, ariaDescribedBy: L, labelId: R } = w(), b = V((M) => {
|
|
17
17
|
const H = ae(M);
|
|
18
18
|
o(H);
|
|
19
19
|
}, [
|
|
@@ -22,10 +22,10 @@ const r = ({ children: t }) => {
|
|
|
22
22
|
return /* @__PURE__ */ e.createElement(g, {
|
|
23
23
|
fieldId: n,
|
|
24
24
|
renderLabel: () => N,
|
|
25
|
-
renderInput: () => /* @__PURE__ */ e.createElement(
|
|
26
|
-
"aria-labelledby":
|
|
27
|
-
id:
|
|
28
|
-
"aria-describedby":
|
|
25
|
+
renderInput: () => /* @__PURE__ */ e.createElement(B, {
|
|
26
|
+
"aria-labelledby": R,
|
|
27
|
+
id: D,
|
|
28
|
+
"aria-describedby": L,
|
|
29
29
|
value: O,
|
|
30
30
|
onChange: b,
|
|
31
31
|
isDisabled: i,
|
|
@@ -66,7 +66,7 @@ const r = ({ children: t }) => {
|
|
|
66
66
|
}
|
|
67
67
|
});
|
|
68
68
|
}, ee = ({ className: t, ...n }) => {
|
|
69
|
-
const { id: l, hidePlaceholder: o } = p(), { segment: i } = n, { t: s } =
|
|
69
|
+
const { id: l, hidePlaceholder: o } = p(), { segment: i } = n, { t: s } = T(), a = x(null);
|
|
70
70
|
Q(() => {
|
|
71
71
|
var E;
|
|
72
72
|
(E = a.current) == null || E.focus();
|
|
@@ -81,7 +81,7 @@ const r = ({ children: t }) => {
|
|
|
81
81
|
}
|
|
82
82
|
});
|
|
83
83
|
}, te = ({ className: t, ...n }) => {
|
|
84
|
-
const { hidePlaceholder: l } = p(), { segment: o } = n, { t: i } =
|
|
84
|
+
const { hidePlaceholder: l } = p(), { segment: o } = n, { t: i } = T(), s = l ? void 0 : i("field.date.placeholder.minute");
|
|
85
85
|
return /* @__PURE__ */ e.createElement(_, {
|
|
86
86
|
segment: o,
|
|
87
87
|
className: t,
|
|
@@ -90,7 +90,7 @@ const r = ({ children: t }) => {
|
|
|
90
90
|
}
|
|
91
91
|
});
|
|
92
92
|
}, re = ({ className: t, ...n }) => {
|
|
93
|
-
const { hidePlaceholder: l } = p(), { segment: o } = n, { t: i } =
|
|
93
|
+
const { hidePlaceholder: l } = p(), { segment: o } = n, { t: i } = T(), s = k(j), a = l ? void 0 : i("field.date.placeholder.period"), d = () => s == null ? void 0 : s.increment("dayPeriod");
|
|
94
94
|
return /* @__PURE__ */ e.createElement(_, {
|
|
95
95
|
segment: o,
|
|
96
96
|
className: t,
|
|
@@ -111,7 +111,7 @@ function ne(t) {
|
|
|
111
111
|
if (!t)
|
|
112
112
|
return null;
|
|
113
113
|
try {
|
|
114
|
-
return
|
|
114
|
+
return v(t);
|
|
115
115
|
} catch {
|
|
116
116
|
return null;
|
|
117
117
|
}
|
|
@@ -131,7 +131,7 @@ const oe = "_time_10p0h_1", se = "_hour_10p0h_14", le = "_minute_10p0h_15", ie =
|
|
|
131
131
|
hour: se,
|
|
132
132
|
minute: le,
|
|
133
133
|
period: ie
|
|
134
|
-
}, ce = ({ content: t, locale: n }) => /* @__PURE__ */ e.createElement(
|
|
134
|
+
}, ce = ({ content: t, locale: n }) => /* @__PURE__ */ e.createElement(q, {
|
|
135
135
|
content: t,
|
|
136
136
|
locale: n
|
|
137
137
|
}), me = () => {
|
|
@@ -143,17 +143,17 @@ const oe = "_time_10p0h_1", se = "_hour_10p0h_14", le = "_minute_10p0h_15", ie =
|
|
|
143
143
|
})), /* @__PURE__ */ e.createElement(r.Time, {
|
|
144
144
|
className: t
|
|
145
145
|
}, /* @__PURE__ */ e.createElement(r.Time.Hour, {
|
|
146
|
-
className: c(h.hour,
|
|
146
|
+
className: c(h.hour, S)
|
|
147
147
|
}), /* @__PURE__ */ e.createElement(r.Time.Minute, {
|
|
148
|
-
className: c(h.minute,
|
|
148
|
+
className: c(h.minute, S)
|
|
149
149
|
}), /* @__PURE__ */ e.createElement(r.Time.Period, {
|
|
150
|
-
className: c(h.period,
|
|
150
|
+
className: c(h.period, S)
|
|
151
151
|
})), /* @__PURE__ */ e.createElement(r.Error, {
|
|
152
152
|
className: c(Y, f.error)
|
|
153
153
|
}, /* @__PURE__ */ e.createElement(K, null), /* @__PURE__ */ e.createElement(r.Error.Text, null)), /* @__PURE__ */ e.createElement(r.Description, {
|
|
154
154
|
className: c(Z, f.description)
|
|
155
155
|
}, ce));
|
|
156
|
-
},
|
|
156
|
+
}, Le = () => /* @__PURE__ */ e.createElement(me, null);
|
|
157
157
|
export {
|
|
158
|
-
|
|
158
|
+
Le as TimeInputRAC
|
|
159
159
|
};
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import { RicosViewer as
|
|
1
|
+
import { RicosViewer as h } from "@wix/ricos/viewer";
|
|
2
2
|
import i from "classnames";
|
|
3
|
-
import r, { useCallback as
|
|
3
|
+
import r, { useCallback as N, useRef as O } from "react";
|
|
4
4
|
import { TextField as y, Input as A } from "react-aria-components";
|
|
5
|
-
import { ak as d, ah as E, am as
|
|
5
|
+
import { ak as d, ah as E, am as k } from "./form-9WmwgGNc.js";
|
|
6
6
|
import { f as c } from "./find-child-C60k4CxG.js";
|
|
7
|
-
import { D as
|
|
8
|
-
import { L as g } from "./field-label-headless-
|
|
9
|
-
import { u as
|
|
10
|
-
import { E as
|
|
7
|
+
import { D as B, E as T } from "./field-error-headless-B6x_cVEi.js";
|
|
8
|
+
import { L as g } from "./field-label-headless-BibCD8xx.js";
|
|
9
|
+
import { u as v } from "./use-invoke-callback-UH73A_J3.js";
|
|
10
|
+
import { E as M } from "./error-icon-hZxQ6DEy.js";
|
|
11
11
|
import { s as u } from "./field-rac.module-DobpyqOd.js";
|
|
12
|
-
import {
|
|
13
|
-
import { u as w } from "./use-text-input-class-name-
|
|
12
|
+
import { C as P, S as q, r as x, j as U } from "./form-element-classes-BtKlobUX.js";
|
|
13
|
+
import { u as w } from "./use-text-input-class-name-BYwXccvO.js";
|
|
14
14
|
const V = (t) => t ? `https://${String(t).replace(/^https?:\/\//, "")}` : "", e = ({ children: t }) => {
|
|
15
|
-
const { id: o, value: a, onChange: s, disabled: m, readOnly: n, required: l, hasError: I, onBlur: f, onFocus:
|
|
15
|
+
const { id: o, value: a, onChange: s, disabled: m, readOnly: n, required: l, hasError: I, onBlur: f, onFocus: b, FieldLayout: R } = d(), { labelId: F } = E(), p = v(f), L = c(t, e.Label), D = c(t, e.Input), C = c(t, e.Description), _ = c(t, e.Error), S = N(() => {
|
|
16
16
|
s(V(a)), p();
|
|
17
17
|
}, [
|
|
18
18
|
p,
|
|
19
19
|
s,
|
|
20
20
|
a
|
|
21
21
|
]);
|
|
22
|
-
return /* @__PURE__ */ r.createElement(
|
|
22
|
+
return /* @__PURE__ */ r.createElement(R, {
|
|
23
23
|
fieldId: o,
|
|
24
24
|
renderLabel: () => L,
|
|
25
25
|
renderInput: () => /* @__PURE__ */ r.createElement(y, {
|
|
@@ -30,14 +30,14 @@ const V = (t) => t ? `https://${String(t).replace(/^https?:\/\//, "")}` : "", e
|
|
|
30
30
|
isReadOnly: n,
|
|
31
31
|
isRequired: l,
|
|
32
32
|
isInvalid: I,
|
|
33
|
-
onBlur:
|
|
34
|
-
onFocus:
|
|
33
|
+
onBlur: S,
|
|
34
|
+
onFocus: b
|
|
35
35
|
}, D),
|
|
36
36
|
renderDescription: () => /* @__PURE__ */ r.createElement(r.Fragment, null, _, C)
|
|
37
37
|
});
|
|
38
38
|
}, W = ({ className: t }) => {
|
|
39
39
|
const { id: o, placeholder: a } = d(), { inputId: s, ariaDescribedBy: m } = E(), n = O(null);
|
|
40
|
-
return
|
|
40
|
+
return k(() => {
|
|
41
41
|
var l;
|
|
42
42
|
(l = n.current) == null || l.focus();
|
|
43
43
|
}, o), /* @__PURE__ */ r.createElement(A, {
|
|
@@ -51,22 +51,22 @@ const V = (t) => t ? `https://${String(t).replace(/^https?:\/\//, "")}` : "", e
|
|
|
51
51
|
};
|
|
52
52
|
e.Label = g;
|
|
53
53
|
e.Input = W;
|
|
54
|
-
e.Description =
|
|
54
|
+
e.Description = B;
|
|
55
55
|
e.Error = T;
|
|
56
|
-
const $ = ({ content: t, locale: o }) => /* @__PURE__ */ r.createElement(
|
|
56
|
+
const $ = ({ content: t, locale: o }) => /* @__PURE__ */ r.createElement(h, {
|
|
57
57
|
content: t,
|
|
58
58
|
locale: o
|
|
59
59
|
}), oe = () => {
|
|
60
60
|
const t = w();
|
|
61
61
|
return /* @__PURE__ */ r.createElement(e, null, /* @__PURE__ */ r.createElement(e.Label, {
|
|
62
|
-
className: i(
|
|
62
|
+
className: i(P, u.label)
|
|
63
63
|
}, /* @__PURE__ */ r.createElement(e.Label.Required, {
|
|
64
|
-
className: i(
|
|
64
|
+
className: i(q, u.requiredMark)
|
|
65
65
|
})), /* @__PURE__ */ r.createElement(e.Input, {
|
|
66
66
|
className: t
|
|
67
67
|
}), /* @__PURE__ */ r.createElement(e.Error, {
|
|
68
68
|
className: i(x, u.error)
|
|
69
|
-
}, /* @__PURE__ */ r.createElement(
|
|
69
|
+
}, /* @__PURE__ */ r.createElement(M, null), /* @__PURE__ */ r.createElement(e.Error.Text, null)), /* @__PURE__ */ r.createElement(e.Description, {
|
|
70
70
|
className: i(U, u.description)
|
|
71
71
|
}, $));
|
|
72
72
|
};
|