@wix/form-elements 1.159.0 → 1.161.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-CpiyUOXo.js → appointment-rac-BubC8I9X.js} +388 -381
- package/dist/component/{bookings-address-rac-BBEUV1t7.js → bookings-address-rac-BbwvVs86.js} +1 -1
- package/dist/component/{bookings-email-rac-DdfoeLFV.js → bookings-email-rac-C2HCkcfa.js} +1 -1
- package/dist/component/{bookings-first-name-rac-DH39yvQ-.js → bookings-first-name-rac-Uy7c5EBs.js} +1 -1
- package/dist/component/{bookings-header-rac-StLm7b4I.js → bookings-header-rac-nmwsWRjS.js} +1 -1
- package/dist/component/{bookings-last-name-rac-DHZMPMOO.js → bookings-last-name-rac-BAioQLCg.js} +1 -1
- package/dist/component/{bookings-login-bar-rac-DrHp1ojM.js → bookings-login-bar-rac-CO6vOBjG.js} +5 -5
- package/dist/component/{bookings-phone-rac-6aGjbavK.js → bookings-phone-rac-Cr16h-_R.js} +1 -1
- package/dist/component/{bookings-rich-text-rac-DBlGZUM5.js → bookings-rich-text-rac-CHLH3jd7.js} +1 -1
- package/dist/component/{checkbox-field-rac-Cna1Va1X.js → checkbox-field-rac-CMwmwFMD.js} +4 -4
- package/dist/component/{checkbox-group-field-headless-m_-10Mdx.js → checkbox-group-field-headless-BNs_S-nT.js} +50 -50
- package/dist/component/{checkbox-group-field-rac-BSCi5hmx.js → checkbox-group-field-rac-BA60EPAN.js} +12 -12
- package/dist/component/{checkbox-group-rac-BWYQZmAI.js → checkbox-group-rac-BJZ4Oer9.js} +1 -1
- package/dist/component/{checkbox-rac-BsUTfSUf.js → checkbox-rac-KsVlI6_V.js} +1 -1
- package/dist/component/{contacts-address-rac-DwCLW8rV.js → contacts-address-rac-CRYkz87z.js} +1 -1
- package/dist/component/{contacts-birthdate-rac-DnNgxbKb.js → contacts-birthdate-rac-BIz-1-ZX.js} +1 -1
- package/dist/component/{contacts-company-rac-BQqXzpNl.js → contacts-company-rac-B8G__j6I.js} +1 -1
- package/dist/component/{contacts-email-rac-BINnZzxp.js → contacts-email-rac-Dztkvp5i.js} +1 -1
- package/dist/component/{contacts-first-name-rac-DBWKFkIU.js → contacts-first-name-rac-CVSEWpLU.js} +1 -1
- package/dist/component/{contacts-last-name-rac-D_-qrF7I.js → contacts-last-name-rac-Blz4M5bk.js} +1 -1
- package/dist/component/{contacts-phone-rac-7n7JkSDr.js → contacts-phone-rac-CPCE5soY.js} +1 -1
- package/dist/component/{contacts-position-rac-DvXP8nvT.js → contacts-position-rac-Dd_kBjqG.js} +1 -1
- package/dist/component/{contacts-subscribe-rac-DnLnV5Gm.js → contacts-subscribe-rac-C6AlsP10.js} +1 -1
- package/dist/component/{contacts-tax-id-rac-BJVWhvYW.js → contacts-tax-id-rac-CQ1n29zI.js} +1 -1
- package/dist/component/{date-availability-Df807-eN.js → date-availability-DDj1j0z5.js} +1 -1
- package/dist/component/date-input-field-rac-D5r1n_ah.js +309 -0
- package/dist/component/{date-input-rac-CSB3MWHW.js → date-input-rac-Cyi5mU_P.js} +1 -1
- package/dist/component/{date-picker-field-rac-CySThPfz.js → date-picker-field-rac-CeG391Zo.js} +79 -79
- package/dist/component/{date-picker-rac-Fp8_pxtf.js → date-picker-rac-Ci9aHgav.js} +1 -1
- package/dist/component/date-time-input-field-rac-CrbYEbJJ.js +441 -0
- package/dist/component/{date-time-input-rac-wctMR4uM.js → date-time-input-rac-DDJLkqs0.js} +1 -1
- package/dist/component/{dext-checkbox-group-rac-erMPfwFL.js → dext-checkbox-group-rac-C3ftVHBA.js} +4 -4
- package/dist/component/{dext-checkbox-rac-DQSq9Lqd.js → dext-checkbox-rac-BGLYWn68.js} +1 -1
- package/dist/component/{dext-date-picker-rac-RCLcd1VV.js → dext-date-picker-rac-Cy9RlDlt.js} +1 -1
- package/dist/component/{dext-date-time-input-rac-DMolWzvy.js → dext-date-time-input-rac-88ZoTd5e.js} +1 -1
- package/dist/component/{dext-dropdown-rac-wQ2GJL4V.js → dext-dropdown-rac-CPxDUuk9.js} +1 -1
- package/dist/component/{dext-email-rac-BtymBVTW.js → dext-email-rac-BAvQwDPA.js} +1 -1
- package/dist/component/{dext-number-input-rac-DHPiK0Z3.js → dext-number-input-rac-D7HYQVKq.js} +1 -1
- package/dist/component/{dext-phone-rac-C58vHEEe.js → dext-phone-rac--FhcplSI.js} +1 -1
- package/dist/component/dext-radio-group-rac-DBz8iCKW.js +18 -0
- package/dist/component/{dext-rating-input-rac-DI0k3tVa.js → dext-rating-input-rac-Cv7nThfe.js} +1 -1
- package/dist/component/{dext-tags-rac-DmF6ctvQ.js → dext-tags-rac-CRUUc5dr.js} +2 -2
- package/dist/component/{dext-text-area-rac-Bv6ridbR.js → dext-text-area-rac-DQBQXV1L.js} +1 -1
- package/dist/component/{dext-text-input-rac-DoTAdUgU.js → dext-text-input-rac-4CpM581y.js} +1 -1
- package/dist/component/{dext-url-input-rac-BuoMS6g2.js → dext-url-input-rac-0C1jTEr9.js} +1 -1
- package/dist/component/{donation-rac-CjZalSgn.js → donation-rac-Cgt0ZE50.js} +79 -79
- package/dist/component/{dropdown-field-rac-By_fpqhx.js → dropdown-field-rac-DlGKR7pZ.js} +14 -14
- package/dist/component/{dropdown-rac-BnIEC4RX.js → dropdown-rac-CYFW_3x_.js} +1 -1
- package/dist/component/{ecom-address-rac-B6Usk1Ty.js → ecom-address-rac-CQfQHpXC.js} +1 -1
- package/dist/component/{ecom-subscription-checkbox-rac-B4B0wzlC.js → ecom-subscription-checkbox-rac-D2v2Upvz.js} +2 -2
- package/dist/component/{email-input-field-rac-Df3KI3_v.js → email-input-field-rac-CVw25yRo.js} +39 -39
- package/dist/component/{events-repeater-rac-B2iBk8lV.js → events-repeater-rac-BCVUcmFj.js} +25 -25
- package/dist/component/{events-rsvp-rac-xl_qCIh3.js → events-rsvp-rac-DwbqEr8z.js} +18 -18
- package/dist/component/{field-error-headless-DWc76YmY.js → field-error-headless-XnVcMmsL.js} +3 -3
- package/dist/component/{field-label-headless-DKBKqI2X.js → field-label-headless-BRTLT2Yt.js} +16 -16
- package/dist/component/{file-upload-rac-BVj4cRqe.js → file-upload-rac-Dkwg9Jk4.js} +118 -118
- package/dist/component/{fixed-payment-rac-BS1Hb4hg.js → fixed-payment-rac-ST98xAa2.js} +13 -13
- package/dist/component/{form-BTUoOcqB.js → form-BUqSKOvc.js} +785 -727
- package/dist/component/form.js +1 -1
- package/dist/component/{header-field-rac-DTJ_Us6u.js → header-field-rac-CzNTGYWq.js} +6 -6
- package/dist/component/{header-rac-CvYp0Jjo.js → header-rac-DUt6AIAE.js} +1 -1
- package/dist/component/{image-choice-rac--qrYqKJl.js → image-choice-rac-DuBgrSt2.js} +23 -23
- package/dist/component/{index-DIl9BH2M.js → index-CDO22hht.js} +66 -66
- package/dist/component/{index-CoEV4QEy.js → index-cZZeAuuu.js} +2 -2
- package/dist/component/{isObjectLike-CLN09X5V.js → isObjectLike-cs4bARpC.js} +11 -11
- package/dist/component/multiline-address-field-rac-vcEWhUCV.js +1664 -0
- package/dist/component/{multiline-address-rac-DtaAJjbR.js → multiline-address-rac-WQaI2eUX.js} +1 -1
- package/dist/component/{number-input-field-rac-2gqDUlw9.js → number-input-field-rac-CBUMqATk.js} +23 -23
- package/dist/component/{number-input-rac-BlciEPLN.js → number-input-rac-B4j5hyzS.js} +1 -1
- package/dist/component/{password-rac-BvvQgafk.js → password-rac-DwLyf45N.js} +27 -27
- package/dist/component/{payment-input-rac-CSRyOPPr.js → payment-input-rac-D0Od---y.js} +31 -31
- package/dist/component/phone-input-field-rac-COlu9IeC.js +512 -0
- package/dist/component/{phone-rac-DMP1MoRs.js → phone-rac-Dh4RacOF.js} +1 -1
- package/dist/component/{product-list-rac-WQ9Qhzum.js → product-list-rac-D7zHDE2D.js} +39 -39
- package/dist/component/{quiz-radio-group-rac-DzrL3-gZ.js → quiz-radio-group-rac-1AaKphJt.js} +1 -1
- package/dist/component/{radio-button-module-classes-CJk18LzO.js → radio-button-module-classes-VqaP6vpA.js} +30 -30
- package/dist/component/{radio-group-field-rac-DGoMoSgo.js → radio-group-field-rac-Cp3LRN3C.js} +8 -8
- package/dist/component/{radio-group-rac-DhAELVNV.js → radio-group-rac-KhmhzYGf.js} +1 -1
- package/dist/component/{rating-input-field-rac-CFoesqmC.js → rating-input-field-rac-10n6ciCr.js} +39 -39
- package/dist/component/{rating-input-rac-CFMIxche.js → rating-input-rac-XZjjY2Gp.js} +1 -1
- package/dist/component/{rich-content-rac.module-xJ03MegT.js → rich-content-rac.module-kMwDoLBa.js} +8 -8
- package/dist/component/{rich-text-field-rac-CBMY4JOB.js → rich-text-field-rac-H5bd8fAt.js} +4 -4
- package/dist/component/{rich-text-rac-CvZ7s1Ct.js → rich-text-rac-88GSQR62.js} +1 -1
- package/dist/component/service-dropdown-rac-B1_Xr_X3.js +145 -0
- package/dist/component/{services-multi-choice-rac-fXOov4K7.js → services-multi-choice-rac-DWp_Llbi.js} +11 -11
- package/dist/component/{signature-rac-CG_Q9Oxr.js → signature-rac-zN_6KRDp.js} +82 -82
- package/dist/component/{submit-button-rac-DAsovEp2.js → submit-button-rac-Dv6UarYX.js} +12 -12
- package/dist/component/{tags-field-rac-9mpOMPLm.js → tags-field-rac-sVN6MHfJ.js} +43 -43
- package/dist/component/{tags-rac-CNBJ08wS.js → tags-rac-DhTHs_XN.js} +1 -1
- package/dist/component/{text-area-field-rac-D4aTm7CM.js → text-area-field-rac-DrWkww7W.js} +19 -19
- package/dist/component/{text-area-rac-DoKiH_Kv.js → text-area-rac-CXXh-ZdY.js} +1 -1
- package/dist/component/{text-input-field-rac-BbvPB26b.js → text-input-field-rac-C2YiMr-g.js} +5 -5
- package/dist/component/text-input-headless-BJMNbsMY.js +47 -0
- package/dist/component/{text-input-rac-1ac1EKad.js → text-input-rac-CpsPh7FH.js} +1 -1
- package/dist/component/{time-input-rac-BS0rR-89.js → time-input-rac-DG_1KxS4.js} +20 -20
- package/dist/component/{url-input-field-rac-DbO6ATng.js → url-input-field-rac-twxRREnl.js} +19 -19
- package/dist/component/{url-input-rac-DHuny3d-.js → url-input-rac-BTStO0NP.js} +1 -1
- package/dist/component/use-dropdown-option-class-name-DbMMg1ws.js +116 -0
- package/dist/component/use-dropdown-trigger-class-name-Yes4kC_0.js +96 -0
- package/dist/component/{use-element-state-class-name-BUsFQfoW.js → use-element-state-class-name-DlncY4hk.js} +1 -1
- package/dist/component/{use-hoverable-input-class-name-C2l3G8gb.js → use-hoverable-input-class-name-C__zqP5j.js} +2 -2
- package/dist/component/use-is-forced-open-dropdown-DnK_MQRO.js +53 -0
- package/dist/component/{use-service-options-base-D_enm38a.js → use-service-options-base-DKJe52Vk.js} +6 -6
- package/dist/component/use-text-input-class-name-D9tJTR-b.js +6 -0
- package/dist/form.d.ts +11 -0
- package/package.json +2 -2
- package/dist/component/date-input-field-rac-CEuPElMH.js +0 -303
- package/dist/component/date-time-input-field-rac-DG5KSBHe.js +0 -433
- package/dist/component/dext-radio-group-rac-Cp-I94HW.js +0 -18
- package/dist/component/dropdown-field-headless-BYEjiIUf.js +0 -93
- package/dist/component/multiline-address-field-rac-BjWzx-LH.js +0 -1659
- package/dist/component/phone-input-field-rac-BVWzH_TY.js +0 -508
- package/dist/component/service-dropdown-rac-B627AgPG.js +0 -145
- package/dist/component/text-input-headless-BGaBRrP1.js +0 -47
- package/dist/component/use-dropdown-trigger-class-name-rcGBzxI1.js +0 -117
- package/dist/component/use-is-forced-open-dropdown-CoOk4W4i.js +0 -48
- package/dist/component/use-text-input-class-name-BLtPQoYE.js +0 -6
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import t, { useRef as V, useCallback as
|
|
1
|
+
import t, { useRef as V, useCallback as y } from "react";
|
|
2
2
|
import X from "@wix/editor-react-components/AnimatedIcon";
|
|
3
3
|
import p from "classnames";
|
|
4
|
-
import {
|
|
4
|
+
import { bA as B, bu as q, au as $, at as j, ar as G, aq as J, az as K, ay as Q, as as Y, b as Z, ap as tt, ax as et } from "./form-BUqSKOvc.js";
|
|
5
5
|
import { ProgressBar as nt, Button as w } from "react-aria-components";
|
|
6
6
|
import { f as i } from "./find-child-C60k4CxG.js";
|
|
7
|
-
import { u as x } from "./use-element-state-class-name-
|
|
7
|
+
import { u as x } from "./use-element-state-class-name-DlncY4hk.js";
|
|
8
8
|
function ot(e) {
|
|
9
9
|
const s = "calc(50% - 2px)";
|
|
10
10
|
return /* @__PURE__ */ t.createElement(nt, {
|
|
@@ -88,8 +88,8 @@ const r = ({ children: e }) => {
|
|
|
88
88
|
isDisabled: c && !_,
|
|
89
89
|
"aria-disabled": _ || void 0,
|
|
90
90
|
"data-in-progress": m
|
|
91
|
-
}, m && d ? d : /* @__PURE__ */ t.createElement(t.Fragment, null, f ?? /* @__PURE__ */ t.createElement(
|
|
92
|
-
},
|
|
91
|
+
}, m && d ? d : /* @__PURE__ */ t.createElement(t.Fragment, null, f ?? /* @__PURE__ */ t.createElement(k, null), I));
|
|
92
|
+
}, k = ({ className: e }) => {
|
|
93
93
|
const { submitText: o } = B();
|
|
94
94
|
return /* @__PURE__ */ t.createElement("span", {
|
|
95
95
|
className: e
|
|
@@ -107,7 +107,7 @@ const r = ({ children: e }) => {
|
|
|
107
107
|
}, R = ({ children: e }) => /* @__PURE__ */ t.createElement(t.Fragment, null, e), st = ({ className: e }) => /* @__PURE__ */ t.createElement("span", {
|
|
108
108
|
className: e
|
|
109
109
|
}, /* @__PURE__ */ t.createElement(ot, null));
|
|
110
|
-
b.Label =
|
|
110
|
+
b.Label = k;
|
|
111
111
|
b.Icon = R;
|
|
112
112
|
b.Loader = st;
|
|
113
113
|
S.Label = D;
|
|
@@ -131,10 +131,10 @@ const at = "_navigationContainer_i93zw_1", rt = "_rowSpacing_i93zw_6", ut = "_na
|
|
|
131
131
|
buttonHover: vt,
|
|
132
132
|
progress: St
|
|
133
133
|
}, P = () => {
|
|
134
|
-
const e = V(null), o =
|
|
134
|
+
const e = V(null), o = y(() => {
|
|
135
135
|
var n;
|
|
136
136
|
return (n = e.current) == null ? void 0 : n.runAnimationForward();
|
|
137
|
-
}, []), s =
|
|
137
|
+
}, []), s = y(() => {
|
|
138
138
|
var n;
|
|
139
139
|
return (n = e.current) == null ? void 0 : n.runAnimationBackward();
|
|
140
140
|
}, []);
|
|
@@ -151,8 +151,8 @@ const at = "_navigationContainer_i93zw_1", rt = "_rowSpacing_i93zw_6", ut = "_na
|
|
|
151
151
|
className: p(Z, s, a)
|
|
152
152
|
}) : null;
|
|
153
153
|
}, Et = () => {
|
|
154
|
-
var A,
|
|
155
|
-
const { hasSteps: e, showPreviousButton: o, isDisabled: s, isInProgress: n, isSubmitting: a } = B(), v = !s && !(a || n), c =
|
|
154
|
+
var A, F, h, U, M, z;
|
|
155
|
+
const { hasSteps: e, showPreviousButton: o, isDisabled: s, isInProgress: n, isSubmitting: a } = B(), v = !s && !(a || n), c = q(), m = (F = (A = c.submitButton) == null ? void 0 : A.elementProps) == null ? void 0 : F.icon, C = (U = (h = c.nextButton) == null ? void 0 : h.elementProps) == null ? void 0 : U.icon, f = (z = (M = c.previousButton) == null ? void 0 : M.elementProps) == null ? void 0 : z.icon, I = x({
|
|
156
156
|
globalClasses: Y,
|
|
157
157
|
moduleClasses: {
|
|
158
158
|
base: p(u.navigationButton, u.previousButton),
|
|
@@ -187,11 +187,11 @@ const at = "_navigationContainer_i93zw_1", rt = "_rowSpacing_i93zw_6", ut = "_na
|
|
|
187
187
|
onHoverStart: T.onHoverStart,
|
|
188
188
|
onHoverEnd: T.onHoverEnd
|
|
189
189
|
}, /* @__PURE__ */ t.createElement(r.SubmitButton.PreviousButton.Label, {
|
|
190
|
-
className:
|
|
190
|
+
className: $
|
|
191
191
|
}), /* @__PURE__ */ t.createElement(r.SubmitButton.PreviousButton.Icon, null, /* @__PURE__ */ t.createElement(O, {
|
|
192
192
|
icon: f,
|
|
193
193
|
iconRef: T.iconRef,
|
|
194
|
-
iconClassName:
|
|
194
|
+
iconClassName: j
|
|
195
195
|
}))), /* @__PURE__ */ t.createElement(r.SubmitButton.NextButton, {
|
|
196
196
|
className: ({ isHovered: N }) => d({
|
|
197
197
|
isSelected: !1,
|
|
@@ -1,49 +1,49 @@
|
|
|
1
|
-
import { RicosViewer as
|
|
1
|
+
import { RicosViewer as j } from "@wix/ricos/viewer";
|
|
2
2
|
import F from "classnames";
|
|
3
|
-
import t, { useMemo as I, useState as
|
|
4
|
-
import { CheckboxGroup as
|
|
5
|
-
import {
|
|
6
|
-
import { f as O, a as
|
|
7
|
-
import { E as
|
|
8
|
-
import { L as $ } from "./field-label-headless-
|
|
3
|
+
import t, { useMemo as I, useState as w, useRef as x, useLayoutEffect as z, useCallback as N } from "react";
|
|
4
|
+
import { CheckboxGroup as B, TextField as J, Input as X, CheckboxField as Y, CheckboxButton as Z } from "react-aria-components";
|
|
5
|
+
import { bA as D, bx as M, bK as S, bC as U, W as ee, ac as te, am as ne, M as oe, G as ae, an as re } from "./form-BUqSKOvc.js";
|
|
6
|
+
import { f as O, a as W } from "./find-child-C60k4CxG.js";
|
|
7
|
+
import { E as k, D as H } from "./field-error-headless-XnVcMmsL.js";
|
|
8
|
+
import { L as $ } from "./field-label-headless-BRTLT2Yt.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-DP0lkkEv.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-DlncY4hk.js";
|
|
13
|
+
import { u as ce } from "./use-text-input-class-name-D9tJTR-b.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
17
|
const v = "Other", de = (e, n) => {
|
|
18
18
|
const i = n.length + 2;
|
|
19
19
|
return (e.find((l) => l.startsWith(`${n}: `)) || "").slice(i);
|
|
20
|
-
}, me = (e) => e.map((n) => n.value ?? n.label),
|
|
20
|
+
}, me = (e) => e.map((n) => n.value ?? n.label), P = ({ className: e, ...n }) => {
|
|
21
21
|
const { label: r } = n;
|
|
22
22
|
return /* @__PURE__ */ t.createElement("span", {
|
|
23
23
|
className: e
|
|
24
24
|
}, r);
|
|
25
|
-
},
|
|
25
|
+
}, q = ({ className: e }) => {
|
|
26
26
|
const { value: n, onChange: r, addOtherLabel: i, addOtherPlaceholder: s, otherInputCharacterLimit: l, disabled: u, readOnly: m, hasError: d } = D(), { t: p } = S(), o = i || p("add-other.default-other-option-label") || v, b = I(() => de(n || [], o), [
|
|
27
27
|
n,
|
|
28
28
|
o
|
|
29
|
-
]), [c, L] =
|
|
30
|
-
|
|
29
|
+
]), [c, L] = w(b), f = x(r);
|
|
30
|
+
z(() => {
|
|
31
31
|
f.current = r;
|
|
32
32
|
});
|
|
33
|
-
const
|
|
33
|
+
const C = N((h) => {
|
|
34
34
|
L(h);
|
|
35
|
-
const
|
|
35
|
+
const g = (n || []).filter((E) => !E.startsWith(`${o}:`) && E !== o), _ = h ? `${o}: ${h}` : o;
|
|
36
36
|
f.current([
|
|
37
|
-
...
|
|
37
|
+
...g,
|
|
38
38
|
_
|
|
39
39
|
]);
|
|
40
40
|
}, [
|
|
41
41
|
n,
|
|
42
42
|
o
|
|
43
43
|
]);
|
|
44
|
-
return /* @__PURE__ */ t.createElement(
|
|
44
|
+
return /* @__PURE__ */ t.createElement(J, {
|
|
45
45
|
value: c,
|
|
46
|
-
onChange:
|
|
46
|
+
onChange: C,
|
|
47
47
|
isDisabled: u,
|
|
48
48
|
isReadOnly: m,
|
|
49
49
|
isInvalid: d,
|
|
@@ -56,26 +56,26 @@ const v = "Other", de = (e, n) => {
|
|
|
56
56
|
className: e
|
|
57
57
|
}));
|
|
58
58
|
}, T = ({ children: e, className: n, ...r }) => {
|
|
59
|
-
const { value: i, label: s, isOther: l, isFirstOption: u } = r, { id: m, value: d, onChange: p, options: o, disabled: b, readOnly: c, hasError: L } = D(), f =
|
|
59
|
+
const { value: i, label: s, isOther: l, isFirstOption: u } = r, { id: m, value: d, onChange: p, options: o, disabled: b, readOnly: c, hasError: L } = D(), f = x(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
|
|
66
|
+
const C = O(e, P), h = I(() => d || [], [
|
|
67
67
|
d
|
|
68
|
-
]),
|
|
68
|
+
]), g = 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 K = me(o || []), V = h.filter((Q) => K.includes(Q));
|
|
75
75
|
p(E ? [
|
|
76
|
-
...
|
|
76
|
+
...V,
|
|
77
77
|
s
|
|
78
|
-
] :
|
|
78
|
+
] : V);
|
|
79
79
|
}, [
|
|
80
80
|
s,
|
|
81
81
|
p,
|
|
@@ -84,7 +84,7 @@ const v = "Other", de = (e, n) => {
|
|
|
84
84
|
]);
|
|
85
85
|
return /* @__PURE__ */ t.createElement(Y, {
|
|
86
86
|
inputRef: f,
|
|
87
|
-
value:
|
|
87
|
+
value: g,
|
|
88
88
|
onChange: l ? _ : void 0,
|
|
89
89
|
isDisabled: b,
|
|
90
90
|
isReadOnly: c,
|
|
@@ -92,13 +92,13 @@ const v = "Other", de = (e, n) => {
|
|
|
92
92
|
}, /* @__PURE__ */ t.createElement(Z, {
|
|
93
93
|
className: n,
|
|
94
94
|
"data-hook": `tags-${l ? v : i}`
|
|
95
|
-
},
|
|
95
|
+
}, W(C, {
|
|
96
96
|
value: i,
|
|
97
97
|
label: s,
|
|
98
98
|
isOther: l,
|
|
99
99
|
isFirstOption: u
|
|
100
100
|
})));
|
|
101
|
-
},
|
|
101
|
+
}, A = ({ children: e, className: n }) => {
|
|
102
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 o = r || [];
|
|
104
104
|
return i ? [
|
|
@@ -119,7 +119,7 @@ const v = "Other", de = (e, n) => {
|
|
|
119
119
|
"data-columns": l
|
|
120
120
|
}, p.map((o, b) => {
|
|
121
121
|
const c = o.value ?? o.label;
|
|
122
|
-
return
|
|
122
|
+
return W(d, {
|
|
123
123
|
key: o.isOther ? v : c,
|
|
124
124
|
value: c,
|
|
125
125
|
label: o.label,
|
|
@@ -128,7 +128,7 @@ const v = "Other", de = (e, n) => {
|
|
|
128
128
|
});
|
|
129
129
|
}));
|
|
130
130
|
}, G = ({ children: e, className: n }) => {
|
|
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,
|
|
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, A), o = 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
|
|
@@ -141,10 +141,10 @@ const v = "Other", de = (e, n) => {
|
|
|
141
141
|
}, a = ({ children: e }) => {
|
|
142
142
|
const { id: n, value: r, onChange: i, FieldLayout: s, required: l, disabled: u, readOnly: m, hasError: d, onBlur: p, onFocus: o } = D(), { inputId: b, labelId: c, ariaDescribedBy: L } = M(), f = I(() => r || [], [
|
|
143
143
|
r
|
|
144
|
-
]),
|
|
144
|
+
]), C = O(e, $), h = O(e, G), g = O(e, H), _ = O(e, k);
|
|
145
145
|
return /* @__PURE__ */ t.createElement(s, {
|
|
146
146
|
fieldId: n,
|
|
147
|
-
renderLabel: () =>
|
|
147
|
+
renderLabel: () => C,
|
|
148
148
|
renderInput: () => /* @__PURE__ */ t.createElement(se, {
|
|
149
149
|
id: b,
|
|
150
150
|
ariaLabelledBy: c,
|
|
@@ -152,7 +152,7 @@ const v = "Other", de = (e, n) => {
|
|
|
152
152
|
required: l,
|
|
153
153
|
onBlur: p,
|
|
154
154
|
onFocus: o
|
|
155
|
-
}, /* @__PURE__ */ t.createElement(
|
|
155
|
+
}, /* @__PURE__ */ t.createElement(B, {
|
|
156
156
|
"aria-labelledby": c,
|
|
157
157
|
value: f,
|
|
158
158
|
onChange: i,
|
|
@@ -161,31 +161,31 @@ const v = "Other", de = (e, n) => {
|
|
|
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, _, g)
|
|
165
165
|
});
|
|
166
166
|
};
|
|
167
|
-
|
|
168
|
-
T.Label =
|
|
167
|
+
A.Option = T;
|
|
168
|
+
T.Label = P;
|
|
169
169
|
a.Label = $;
|
|
170
170
|
a.Control = G;
|
|
171
|
-
a.Options =
|
|
172
|
-
a.OtherInput =
|
|
173
|
-
a.Description =
|
|
174
|
-
a.Error =
|
|
171
|
+
a.Options = A;
|
|
172
|
+
a.OtherInput = q;
|
|
173
|
+
a.Description = H;
|
|
174
|
+
a.Error = k;
|
|
175
175
|
const pe = "_control_18tbd_1", he = "_options_18tbd_7", Ee = "_option_18tbd_7", be = "_optionHover_18tbd_76", Oe = "_optionSelected_18tbd_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: n }) => /* @__PURE__ */ t.createElement(
|
|
181
|
+
}, fe = ({ content: e, locale: n }) => /* @__PURE__ */ t.createElement(j, {
|
|
182
182
|
content: e,
|
|
183
183
|
locale: n
|
|
184
184
|
}), Ie = {
|
|
185
185
|
base: R.option,
|
|
186
186
|
selected: R.optionSelected,
|
|
187
187
|
hover: R.optionHover
|
|
188
|
-
},
|
|
188
|
+
}, xe = () => {
|
|
189
189
|
const e = ie({
|
|
190
190
|
globalClasses: re,
|
|
191
191
|
moduleClasses: Ie
|
|
@@ -209,5 +209,5 @@ const pe = "_control_18tbd_1", he = "_options_18tbd_7", Ee = "_option_18tbd_7",
|
|
|
209
209
|
}, fe));
|
|
210
210
|
};
|
|
211
211
|
export {
|
|
212
|
-
|
|
212
|
+
xe as T
|
|
213
213
|
};
|
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
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
|
-
import { TextField as O, TextArea as
|
|
5
|
-
import {
|
|
4
|
+
import { TextField as O, TextArea as x } from "react-aria-components";
|
|
5
|
+
import { bA as p, bx as d, bC as y, W as g, ac as h, M as v, G as M } from "./form-BUqSKOvc.js";
|
|
6
6
|
import { f as i } from "./find-child-C60k4CxG.js";
|
|
7
|
-
import { D as
|
|
8
|
-
import { L as k } from "./field-label-headless-
|
|
7
|
+
import { D as q, E as B } from "./field-error-headless-XnVcMmsL.js";
|
|
8
|
+
import { L as k } from "./field-label-headless-BRTLT2Yt.js";
|
|
9
9
|
import { E as P } from "./error-icon-hZxQ6DEy.js";
|
|
10
10
|
import { s as c } from "./field-rac.module-DP0lkkEv.js";
|
|
11
|
-
import { u as V } from "./use-text-input-class-name-
|
|
11
|
+
import { u as V } from "./use-text-input-class-name-D9tJTR-b.js";
|
|
12
12
|
const e = ({ children: t }) => {
|
|
13
|
-
const { id: a, value: m, onChange: s, disabled: u, required: n, readOnly: l, onBlur: E, onFocus: b, FieldLayout: I, hasError: f } = p(), { labelId:
|
|
13
|
+
const { id: a, value: m, onChange: s, disabled: u, required: n, readOnly: l, onBlur: E, onFocus: b, FieldLayout: I, hasError: f } = p(), { labelId: F } = d(), L = S((A) => {
|
|
14
14
|
s(A);
|
|
15
15
|
}, [
|
|
16
16
|
s
|
|
17
|
-
]),
|
|
17
|
+
]), R = i(t, e.Label), D = i(t, e.Input), _ = i(t, e.Description), C = i(t, e.Error);
|
|
18
18
|
return /* @__PURE__ */ r.createElement(I, {
|
|
19
19
|
fieldId: a,
|
|
20
|
-
renderLabel: () =>
|
|
20
|
+
renderLabel: () => R,
|
|
21
21
|
renderInput: () => /* @__PURE__ */ r.createElement(O, {
|
|
22
|
-
"aria-labelledby":
|
|
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,
|
|
@@ -33,12 +33,12 @@ const e = ({ children: t }) => {
|
|
|
33
33
|
});
|
|
34
34
|
}, w = ({ className: t }) => {
|
|
35
35
|
const { inputId: a, ariaDescribedBy: m } = d(), { id: s, placeholder: u } = p(), n = T(null);
|
|
36
|
-
return
|
|
36
|
+
return y(() => {
|
|
37
37
|
var l;
|
|
38
38
|
(l = n.current) == null || l.focus({
|
|
39
39
|
preventScroll: !0
|
|
40
40
|
});
|
|
41
|
-
}, s), /* @__PURE__ */ r.createElement(
|
|
41
|
+
}, s), /* @__PURE__ */ r.createElement(x, {
|
|
42
42
|
ref: n,
|
|
43
43
|
id: a,
|
|
44
44
|
"aria-describedby": m,
|
|
@@ -48,25 +48,25 @@ const e = ({ children: t }) => {
|
|
|
48
48
|
};
|
|
49
49
|
e.Label = k;
|
|
50
50
|
e.Input = w;
|
|
51
|
-
e.Description =
|
|
51
|
+
e.Description = q;
|
|
52
52
|
e.Error = B;
|
|
53
|
-
const
|
|
54
|
-
input:
|
|
53
|
+
const G = "_input_ug5v8_1", Q = {
|
|
54
|
+
input: G
|
|
55
55
|
}, U = ({ content: t, locale: a }) => /* @__PURE__ */ r.createElement(N, {
|
|
56
56
|
content: t,
|
|
57
57
|
locale: a
|
|
58
58
|
}), re = () => {
|
|
59
59
|
const t = V(Q.input);
|
|
60
60
|
return /* @__PURE__ */ r.createElement(e, null, /* @__PURE__ */ r.createElement(e.Label, {
|
|
61
|
-
className: o(
|
|
61
|
+
className: o(g, c.label)
|
|
62
62
|
}, /* @__PURE__ */ r.createElement(e.Label.Required, {
|
|
63
|
-
className: o(
|
|
63
|
+
className: o(h, c.requiredMark)
|
|
64
64
|
})), /* @__PURE__ */ r.createElement(e.Input, {
|
|
65
65
|
className: t
|
|
66
66
|
}), /* @__PURE__ */ r.createElement(e.Error, {
|
|
67
|
-
className: o(
|
|
67
|
+
className: o(v, c.error)
|
|
68
68
|
}, /* @__PURE__ */ r.createElement(P, null), /* @__PURE__ */ r.createElement(e.Error.Text, null)), /* @__PURE__ */ r.createElement(e.Description, {
|
|
69
|
-
className: o(
|
|
69
|
+
className: o(M, c.description)
|
|
70
70
|
}, U));
|
|
71
71
|
};
|
|
72
72
|
export {
|
package/dist/component/{text-input-field-rac-BbvPB26b.js → text-input-field-rac-C2YiMr-g.js}
RENAMED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { RicosViewer as l } from "@wix/ricos/viewer";
|
|
2
2
|
import t from "classnames";
|
|
3
3
|
import e from "react";
|
|
4
|
-
import { T as r } from "./text-input-headless-
|
|
4
|
+
import { T as r } from "./text-input-headless-BJMNbsMY.js";
|
|
5
5
|
import { E as o } from "./error-icon-hZxQ6DEy.js";
|
|
6
6
|
import { s as a } from "./field-rac.module-DP0lkkEv.js";
|
|
7
|
-
import {
|
|
8
|
-
import { u as p } from "./use-text-input-class-name-
|
|
9
|
-
const
|
|
7
|
+
import { W as n, ac as c, M as E, G as i } from "./form-BUqSKOvc.js";
|
|
8
|
+
import { u as p } from "./use-text-input-class-name-D9tJTR-b.js";
|
|
9
|
+
const I = ({ content: s, locale: m }) => /* @__PURE__ */ e.createElement(l, {
|
|
10
10
|
content: s,
|
|
11
11
|
locale: m
|
|
12
12
|
}), C = () => {
|
|
@@ -21,7 +21,7 @@ const R = ({ content: s, locale: m }) => /* @__PURE__ */ e.createElement(l, {
|
|
|
21
21
|
className: t(E, a.error)
|
|
22
22
|
}, /* @__PURE__ */ e.createElement(o, null), /* @__PURE__ */ e.createElement(r.Error.Text, null)), /* @__PURE__ */ e.createElement(r.Description, {
|
|
23
23
|
className: t(i, a.description)
|
|
24
|
-
},
|
|
24
|
+
}, I));
|
|
25
25
|
};
|
|
26
26
|
export {
|
|
27
27
|
C as T
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import t, { useRef as L } from "react";
|
|
2
|
+
import { TextField as v, Input as R } from "react-aria-components";
|
|
3
|
+
import { bA as c, bx as d, bC as x } from "./form-BUqSKOvc.js";
|
|
4
|
+
import { f as s } from "./find-child-C60k4CxG.js";
|
|
5
|
+
import { D as T, E as g } from "./field-error-headless-XnVcMmsL.js";
|
|
6
|
+
import { L as h } from "./field-label-headless-BRTLT2Yt.js";
|
|
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), y = s(r, e.Input), D = s(r, e.Description), C = s(r, e.Error);
|
|
9
|
+
return /* @__PURE__ */ t.createElement(E, {
|
|
10
|
+
fieldId: a,
|
|
11
|
+
renderLabel: () => F,
|
|
12
|
+
renderInput: () => /* @__PURE__ */ t.createElement(v, {
|
|
13
|
+
autoComplete: f,
|
|
14
|
+
"aria-labelledby": I,
|
|
15
|
+
value: l ?? "",
|
|
16
|
+
onChange: i,
|
|
17
|
+
isDisabled: u,
|
|
18
|
+
isReadOnly: n,
|
|
19
|
+
isRequired: o,
|
|
20
|
+
isInvalid: p,
|
|
21
|
+
onBlur: m,
|
|
22
|
+
onFocus: b
|
|
23
|
+
}, y),
|
|
24
|
+
renderDescription: () => /* @__PURE__ */ t.createElement(t.Fragment, null, C, D)
|
|
25
|
+
});
|
|
26
|
+
}, B = ({ className: r }) => {
|
|
27
|
+
const { id: a, placeholder: l } = c(), { inputId: i, ariaDescribedBy: u } = d(), n = L(null);
|
|
28
|
+
return x(() => {
|
|
29
|
+
var o;
|
|
30
|
+
(o = n.current) == null || o.focus({
|
|
31
|
+
preventScroll: !0
|
|
32
|
+
});
|
|
33
|
+
}, a), /* @__PURE__ */ t.createElement(R, {
|
|
34
|
+
ref: n,
|
|
35
|
+
id: i,
|
|
36
|
+
"aria-describedby": u,
|
|
37
|
+
className: r,
|
|
38
|
+
placeholder: l
|
|
39
|
+
});
|
|
40
|
+
};
|
|
41
|
+
e.Label = h;
|
|
42
|
+
e.Input = B;
|
|
43
|
+
e.Description = T;
|
|
44
|
+
e.Error = g;
|
|
45
|
+
export {
|
|
46
|
+
e as T
|
|
47
|
+
};
|
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
import e, { useCallback as
|
|
2
|
-
import { RicosViewer as
|
|
1
|
+
import e, { useCallback as x, useRef as V, useContext as v } from "react";
|
|
2
|
+
import { RicosViewer as q } from "@wix/ricos/viewer";
|
|
3
3
|
import m from "classnames";
|
|
4
4
|
import { parseTime as B } from "@internationalized/date";
|
|
5
5
|
import { TimeField as k, DateInput as U, DateSegment as _, TimeFieldStateContext as w } from "react-aria-components";
|
|
6
|
-
import {
|
|
6
|
+
import { bA as p, bx as j, bK as T, bC as G, W as K, ac as Q, M as W, G as z } from "./form-BUqSKOvc.js";
|
|
7
7
|
import { f as u, a as F } from "./find-child-C60k4CxG.js";
|
|
8
|
-
import { D as
|
|
9
|
-
import { L as Y } from "./field-label-headless-
|
|
8
|
+
import { D as J, E as X } from "./field-error-headless-XnVcMmsL.js";
|
|
9
|
+
import { L as Y } from "./field-label-headless-BRTLT2Yt.js";
|
|
10
10
|
import { E as Z } from "./error-icon-hZxQ6DEy.js";
|
|
11
11
|
import { H as S } from "./custom-focus-class-_483Pkwp.js";
|
|
12
12
|
import { s as f } from "./field-rac.module-DP0lkkEv.js";
|
|
13
|
-
import { u as $ } from "./use-text-input-class-name-
|
|
13
|
+
import { u as $ } from "./use-text-input-class-name-D9tJTR-b.js";
|
|
14
14
|
const r = ({ children: t }) => {
|
|
15
|
-
const { id: n, value: s, onChange: a, disabled: i, readOnly: o, required: c, onBlur: l, onFocus: E, use24HourFormat:
|
|
15
|
+
const { id: n, value: s, onChange: a, disabled: i, readOnly: o, required: c, onBlur: l, onFocus: E, use24HourFormat: C, FieldLayout: b, hasError: g } = p(), { inputId: I, ariaDescribedBy: D, labelId: L } = j(), R = x((M) => {
|
|
16
16
|
const H = ae(M);
|
|
17
17
|
a(H);
|
|
18
18
|
}, [
|
|
19
19
|
a
|
|
20
20
|
]), N = u(t, r.Label), y = u(t, r.Time), P = u(t, r.Description), A = u(t, r.Error), O = ne(s);
|
|
21
|
-
return /* @__PURE__ */ e.createElement(
|
|
21
|
+
return /* @__PURE__ */ e.createElement(b, {
|
|
22
22
|
fieldId: n,
|
|
23
23
|
renderLabel: () => N,
|
|
24
24
|
renderInput: () => /* @__PURE__ */ e.createElement(k, {
|
|
25
|
-
"aria-labelledby":
|
|
25
|
+
"aria-labelledby": L,
|
|
26
26
|
id: I,
|
|
27
|
-
"aria-describedby":
|
|
27
|
+
"aria-describedby": D,
|
|
28
28
|
value: O,
|
|
29
|
-
onChange:
|
|
29
|
+
onChange: R,
|
|
30
30
|
isDisabled: i,
|
|
31
31
|
isReadOnly: o,
|
|
32
32
|
isInvalid: g,
|
|
33
33
|
isRequired: c,
|
|
34
34
|
onBlur: l,
|
|
35
35
|
onFocus: E,
|
|
36
|
-
hourCycle:
|
|
36
|
+
hourCycle: C ? 24 : 12
|
|
37
37
|
}, y),
|
|
38
38
|
renderDescription: () => /* @__PURE__ */ e.createElement(e.Fragment, null, A, P)
|
|
39
39
|
});
|
|
@@ -67,7 +67,7 @@ const r = ({ children: t }) => {
|
|
|
67
67
|
});
|
|
68
68
|
}, ee = ({ className: t, ...n }) => {
|
|
69
69
|
const { id: s, hidePlaceholder: a } = p(), { segment: i } = n, { t: o } = T(), c = V(null);
|
|
70
|
-
|
|
70
|
+
G(() => {
|
|
71
71
|
var E;
|
|
72
72
|
(E = c.current) == null || E.focus({
|
|
73
73
|
preventScroll: !0
|
|
@@ -92,7 +92,7 @@ const r = ({ children: t }) => {
|
|
|
92
92
|
}
|
|
93
93
|
});
|
|
94
94
|
}, re = ({ className: t, ...n }) => {
|
|
95
|
-
const { hidePlaceholder: s } = p(), { segment: a } = n, { t: i } = T(), o =
|
|
95
|
+
const { hidePlaceholder: s } = p(), { segment: a } = n, { t: i } = T(), o = v(w), c = s ? void 0 : i("field.date.placeholder.period"), l = () => o == null ? void 0 : o.increment("dayPeriod");
|
|
96
96
|
return /* @__PURE__ */ e.createElement(_, {
|
|
97
97
|
segment: a,
|
|
98
98
|
className: t,
|
|
@@ -107,7 +107,7 @@ d.Minute = te;
|
|
|
107
107
|
d.Period = re;
|
|
108
108
|
r.Label = Y;
|
|
109
109
|
r.Time = d;
|
|
110
|
-
r.Description =
|
|
110
|
+
r.Description = J;
|
|
111
111
|
r.Error = X;
|
|
112
112
|
function ne(t) {
|
|
113
113
|
if (!t)
|
|
@@ -133,15 +133,15 @@ const oe = "_time_5p151_1", le = "_hour_5p151_17", se = "_minute_5p151_18", ie =
|
|
|
133
133
|
hour: le,
|
|
134
134
|
minute: se,
|
|
135
135
|
period: ie
|
|
136
|
-
}, ce = ({ content: t, locale: n }) => /* @__PURE__ */ e.createElement(
|
|
136
|
+
}, ce = ({ content: t, locale: n }) => /* @__PURE__ */ e.createElement(q, {
|
|
137
137
|
content: t,
|
|
138
138
|
locale: n
|
|
139
139
|
}), me = () => {
|
|
140
140
|
const t = $(h.time);
|
|
141
141
|
return /* @__PURE__ */ e.createElement(r, null, /* @__PURE__ */ e.createElement(r.Label, {
|
|
142
|
-
className: m(
|
|
142
|
+
className: m(K, f.label)
|
|
143
143
|
}, /* @__PURE__ */ e.createElement(r.Label.Required, {
|
|
144
|
-
className: m(
|
|
144
|
+
className: m(Q, f.requiredMark)
|
|
145
145
|
})), /* @__PURE__ */ e.createElement(r.Time, {
|
|
146
146
|
className: t
|
|
147
147
|
}, /* @__PURE__ */ e.createElement(r.Time.Hour, {
|
|
@@ -151,9 +151,9 @@ const oe = "_time_5p151_1", le = "_hour_5p151_17", se = "_minute_5p151_18", ie =
|
|
|
151
151
|
}), /* @__PURE__ */ e.createElement(r.Time.Period, {
|
|
152
152
|
className: m(h.period, S)
|
|
153
153
|
})), /* @__PURE__ */ e.createElement(r.Error, {
|
|
154
|
-
className: m(
|
|
154
|
+
className: m(W, f.error)
|
|
155
155
|
}, /* @__PURE__ */ e.createElement(Z, null), /* @__PURE__ */ e.createElement(r.Error.Text, null)), /* @__PURE__ */ e.createElement(r.Description, {
|
|
156
|
-
className: m(
|
|
156
|
+
className: m(z, f.description)
|
|
157
157
|
}, ce));
|
|
158
158
|
}, Ie = () => /* @__PURE__ */ e.createElement(me, null);
|
|
159
159
|
export {
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { RicosViewer as N } from "@wix/ricos/viewer";
|
|
2
|
-
import
|
|
2
|
+
import c from "classnames";
|
|
3
3
|
import r, { useCallback as h, useRef as O } from "react";
|
|
4
4
|
import { TextField as y, Input as A } from "react-aria-components";
|
|
5
|
-
import {
|
|
6
|
-
import { f as
|
|
7
|
-
import { D as
|
|
8
|
-
import { L as P } from "./field-label-headless-
|
|
9
|
-
import { u as
|
|
5
|
+
import { bA as d, bx as E, bC as v, W as B, ac as M, M as T, G as g } from "./form-BUqSKOvc.js";
|
|
6
|
+
import { f as i } from "./find-child-C60k4CxG.js";
|
|
7
|
+
import { D as k, E as x } from "./field-error-headless-XnVcMmsL.js";
|
|
8
|
+
import { L as P } from "./field-label-headless-BRTLT2Yt.js";
|
|
9
|
+
import { u as q } from "./use-invoke-callback-UH73A_J3.js";
|
|
10
10
|
import { E as U } from "./error-icon-hZxQ6DEy.js";
|
|
11
11
|
import { s as u } from "./field-rac.module-DP0lkkEv.js";
|
|
12
|
-
import { u as
|
|
13
|
-
const
|
|
14
|
-
const { id: o, value: l, onChange: n, disabled: m, readOnly: s, required: a, hasError: I, onBlur: b, onFocus: f, FieldLayout: R } = d(), { labelId: F } = E(), p =
|
|
15
|
-
n(
|
|
12
|
+
import { u as W } from "./use-text-input-class-name-D9tJTR-b.js";
|
|
13
|
+
const w = (t) => t ? `https://${String(t).replace(/^https?:\/\//, "")}` : "", e = ({ children: t }) => {
|
|
14
|
+
const { id: o, value: l, onChange: n, disabled: m, readOnly: s, required: a, hasError: I, onBlur: b, onFocus: f, FieldLayout: R } = d(), { labelId: F } = E(), p = q(b), L = i(t, e.Label), D = i(t, e.Input), C = i(t, e.Description), _ = i(t, e.Error), S = h(() => {
|
|
15
|
+
n(w(l)), p();
|
|
16
16
|
}, [
|
|
17
17
|
p,
|
|
18
18
|
n,
|
|
@@ -53,24 +53,24 @@ const H = (t) => t ? `https://${String(t).replace(/^https?:\/\//, "")}` : "", e
|
|
|
53
53
|
};
|
|
54
54
|
e.Label = P;
|
|
55
55
|
e.Input = V;
|
|
56
|
-
e.Description =
|
|
57
|
-
e.Error =
|
|
58
|
-
const
|
|
56
|
+
e.Description = k;
|
|
57
|
+
e.Error = x;
|
|
58
|
+
const $ = ({ content: t, locale: o }) => /* @__PURE__ */ r.createElement(N, {
|
|
59
59
|
content: t,
|
|
60
60
|
locale: o
|
|
61
61
|
}), te = () => {
|
|
62
|
-
const t =
|
|
62
|
+
const t = W();
|
|
63
63
|
return /* @__PURE__ */ r.createElement(e, null, /* @__PURE__ */ r.createElement(e.Label, {
|
|
64
|
-
className:
|
|
64
|
+
className: c(B, u.label)
|
|
65
65
|
}, /* @__PURE__ */ r.createElement(e.Label.Required, {
|
|
66
|
-
className:
|
|
66
|
+
className: c(M, u.requiredMark)
|
|
67
67
|
})), /* @__PURE__ */ r.createElement(e.Input, {
|
|
68
68
|
className: t
|
|
69
69
|
}), /* @__PURE__ */ r.createElement(e.Error, {
|
|
70
|
-
className:
|
|
70
|
+
className: c(T, u.error)
|
|
71
71
|
}, /* @__PURE__ */ r.createElement(U, null), /* @__PURE__ */ r.createElement(e.Error.Text, null)), /* @__PURE__ */ r.createElement(e.Description, {
|
|
72
|
-
className:
|
|
73
|
-
},
|
|
72
|
+
className: c(g, u.description)
|
|
73
|
+
}, $));
|
|
74
74
|
};
|
|
75
75
|
export {
|
|
76
76
|
te as U
|