@wix/form-elements 1.112.0 → 1.114.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-BZ9sCf_L.js → appointment-rac-DB5qRsIN.js} +204 -204
- package/dist/component/{bookings-address-rac-DDisJZwl.js → bookings-address-rac-D_TiEBCS.js} +1 -1
- package/dist/component/{bookings-email-rac-ovewChXn.js → bookings-email-rac-CnuNzKzB.js} +1 -1
- package/dist/component/{bookings-first-name-rac-CyudJnHy.js → bookings-first-name-rac-CJlHncEH.js} +1 -1
- package/dist/component/{bookings-header-rac-BSN_BoC0.js → bookings-header-rac-CJ2zaC3p.js} +1 -1
- package/dist/component/{bookings-last-name-rac-SdX5IANy.js → bookings-last-name-rac-Bm4U8oN4.js} +1 -1
- package/dist/component/{bookings-login-bar-rac-COQ2BOsY.js → bookings-login-bar-rac-3ZHGtHwE.js} +1 -1
- package/dist/component/{bookings-phone-rac-DlUfTzEz.js → bookings-phone-rac-pnck0K81.js} +1 -1
- package/dist/component/{bookings-rich-text-rac-Dx0uxbQc.js → bookings-rich-text-rac-CnTF8Vf0.js} +1 -1
- package/dist/component/{checkbox-field-rac-DueJINhA.js → checkbox-field-rac-BibRtzvr.js} +4 -4
- package/dist/component/{checkbox-group-field-headless-wj9ITlbE.js → checkbox-group-field-headless-B-c-7mfP.js} +3 -3
- package/dist/component/{checkbox-group-field-rac-CrD849TZ.js → checkbox-group-field-rac-4LVlM83p.js} +8 -10
- package/dist/component/{checkbox-group-rac-Wdz1ShJh.js → checkbox-group-rac-DtKJqhfZ.js} +1 -1
- package/dist/component/{checkbox-rac-BC7A8y2w.js → checkbox-rac-BCcSFRuj.js} +1 -1
- package/dist/component/{contacts-address-rac-DoWo8zyH.js → contacts-address-rac-DMxBARdp.js} +1 -1
- package/dist/component/{contacts-birthdate-rac-CEXkyOuk.js → contacts-birthdate-rac-CYl_4jS_.js} +1 -1
- package/dist/component/{contacts-company-rac-CYaVpLCk.js → contacts-company-rac-CksPQX7x.js} +1 -1
- package/dist/component/{contacts-email-rac-teBI-Rpu.js → contacts-email-rac-BFZ1UFjL.js} +1 -1
- package/dist/component/{contacts-first-name-rac-BOPuOgk1.js → contacts-first-name-rac-BRI3j67R.js} +1 -1
- package/dist/component/{contacts-last-name-rac-DdRhuv9q.js → contacts-last-name-rac-B7EM45sk.js} +1 -1
- package/dist/component/{contacts-phone-rac-BMiop0kR.js → contacts-phone-rac-BhXt3qey.js} +1 -1
- package/dist/component/{contacts-position-rac-C8iM62rN.js → contacts-position-rac-CmF_panE.js} +1 -1
- package/dist/component/{contacts-subscribe-rac-CkToH-f2.js → contacts-subscribe-rac-DCezIm0y.js} +1 -1
- package/dist/component/{contacts-tax-id-rac-JM0KJre8.js → contacts-tax-id-rac-Sv0Yzx5G.js} +1 -1
- package/dist/component/{date-availability-DJyvNJ6w.js → date-availability-BCydK-T5.js} +1 -1
- package/dist/component/{date-input-field-rac-CStB2jP7.js → date-input-field-rac-KVHLsUOt.js} +42 -42
- package/dist/component/{date-input-rac-DUSJH8am.js → date-input-rac-BMDi95xl.js} +1 -1
- package/dist/component/{date-picker-field-rac-6xffgnXB.js → date-picker-field-rac-B4Q7dyvM.js} +5 -5
- package/dist/component/{date-picker-rac-Dpe0w0G6.js → date-picker-rac-RtAg78AP.js} +1 -1
- package/dist/component/{date-time-input-field-rac-CX39V3G1.js → date-time-input-field-rac-BhjYbmKL.js} +32 -32
- package/dist/component/{date-time-input-rac-DBVMIbom.js → date-time-input-rac-DNAYgPqx.js} +1 -1
- package/dist/component/{dext-checkbox-group-rac-CAxyCWQY.js → dext-checkbox-group-rac-B2QNQmGW.js} +2 -2
- package/dist/component/{dext-checkbox-rac-CRBzElbv.js → dext-checkbox-rac-Qc27trxC.js} +1 -1
- package/dist/component/{dext-date-picker-rac-DNzXwBkg.js → dext-date-picker-rac-DRAarTeN.js} +1 -1
- package/dist/component/{dext-date-time-input-rac-D2W3buJP.js → dext-date-time-input-rac-Dlhazq4O.js} +1 -1
- package/dist/component/{dext-dropdown-rac-CTTreT77.js → dext-dropdown-rac-DR-8xYfz.js} +1 -1
- package/dist/component/{dext-email-rac-BwI4-hML.js → dext-email-rac-C4_sJMjZ.js} +1 -1
- package/dist/component/{dext-number-input-rac-DT5pQiC3.js → dext-number-input-rac-C_T8FSm8.js} +1 -1
- package/dist/component/{dext-phone-rac-MA6wyUxM.js → dext-phone-rac-CZO1hIHJ.js} +1 -1
- package/dist/component/{dext-radio-group-rac-3PYEgYHn.js → dext-radio-group-rac-C2qHeolg.js} +2 -2
- package/dist/component/{dext-rating-input-rac-I3e9k3Tp.js → dext-rating-input-rac-CX6z5cEp.js} +1 -1
- package/dist/component/{dext-tags-rac-Bf4tEUAW.js → dext-tags-rac-CL6eim3H.js} +2 -2
- package/dist/component/{dext-text-area-rac-5oOAM6zJ.js → dext-text-area-rac-B3s2RBH0.js} +1 -1
- package/dist/component/{dext-text-input-rac-8nHhvQfO.js → dext-text-input-rac-GeSBd9pz.js} +1 -1
- package/dist/component/{dext-url-input-rac-DSAfDqx1.js → dext-url-input-rac-gLnhSj9e.js} +1 -1
- package/dist/component/{donation-rac-DJiD7Fel.js → donation-rac-CT__F2Q7.js} +70 -70
- package/dist/component/{dropdown-field-headless-B_W8kD-t.js → dropdown-field-headless-NTFuCOLG.js} +4 -4
- package/dist/component/{dropdown-field-rac-IDVaMgoc.js → dropdown-field-rac-BjLuDeYQ.js} +3 -3
- package/dist/component/{dropdown-rac-I2ZO66jF.js → dropdown-rac-BCEkYpfm.js} +1 -1
- package/dist/component/{ecom-address-rac-B1knDuog.js → ecom-address-rac-CvnJK1t4.js} +1 -1
- package/dist/component/{ecom-subscription-checkbox-rac-BQPJb2kl.js → ecom-subscription-checkbox-rac-DF0yT8Xc.js} +2 -2
- package/dist/component/{email-input-field-rac-DsjMnxGw.js → email-input-field-rac-D516Urul.js} +3 -3
- package/dist/component/{events-repeater-rac-CT7scvgS.js → events-repeater-rac-BMm1sHSF.js} +4 -4
- package/dist/component/events-rsvp-rac-EuK-80dr.js +48 -0
- package/dist/component/{field-error-headless-DRkkbv__.js → field-error-headless-CijTssZX.js} +1 -1
- package/dist/component/{field-label-headless-m633nF93.js → field-label-headless-D5nW8IPL.js} +1 -1
- package/dist/component/{file-upload-rac-DaExm5ny.js → file-upload-rac-CKHWtIyC.js} +4 -4
- package/dist/component/{fixed-payment-rac-BglZ8zc0.js → fixed-payment-rac-Gh-AYPvD.js} +3 -3
- package/dist/component/{form-CY-iFZdC.js → form-ug6JXjA8.js} +69 -69
- package/dist/component/form.css +1 -1
- package/dist/component/form.js +1 -1
- package/dist/component/{header-field-rac-B6Mzqr3b.js → header-field-rac-BOfE3kQP.js} +2 -2
- package/dist/component/{header-rac-CB2NDeCJ.js → header-rac-DK-wmljx.js} +1 -1
- package/dist/component/{image-choice-rac-gtYrnTGg.js → image-choice-rac-Z4Bf2PEM.js} +54 -57
- package/dist/component/{index-wR-OU2AH.js → index-DTPJaILI.js} +4 -4
- package/dist/component/{index-Ozpoh9do.js → index-Dedbx25s.js} +2 -2
- package/dist/component/{isObjectLike-DsBVSQ_O.js → isObjectLike-_ZXuJgiI.js} +1 -1
- package/dist/component/{multiline-address-field-rac-Z4hKy_B_.js → multiline-address-field-rac-BuzVvgiq.js} +7 -7
- package/dist/component/{multiline-address-rac-DWV0BZHX.js → multiline-address-rac-3oThDhLI.js} +1 -1
- package/dist/component/{number-input-field-rac-DKpSb1S_.js → number-input-field-rac-CyYDQY_P.js} +4 -4
- package/dist/component/{number-input-rac-Di7Q8CH9.js → number-input-rac-B6lkd3Ux.js} +1 -1
- package/dist/component/options-rac.module-_THNq6Qq.js +7 -0
- package/dist/component/{password-rac-B9RT0izw.js → password-rac-sVxPXrGd.js} +4 -4
- package/dist/component/{payment-input-rac-DdGNnPcd.js → payment-input-rac-DEtEvgaM.js} +4 -4
- package/dist/component/{phone-input-field-rac-B-5gHBXY.js → phone-input-field-rac-Bj6gYAIn.js} +6 -6
- package/dist/component/{phone-rac-CmZwJyH7.js → phone-rac-D6uxCSG-.js} +1 -1
- package/dist/component/{product-list-rac-BInJ4cw_.js → product-list-rac--XkErO-j.js} +5 -5
- package/dist/component/{quiz-radio-group-rac-B1EIBOt5.js → quiz-radio-group-rac-Cxhp2mQV.js} +1 -1
- package/dist/component/radio-button-module-classes-CX8cTuqj.js +131 -0
- package/dist/component/{radio-group-field-rac-DAwCG8w2.js → radio-group-field-rac-Duu_EH1m.js} +15 -16
- package/dist/component/{radio-group-rac-CExbY0aw.js → radio-group-rac-Dksg8iEU.js} +1 -1
- package/dist/component/{rating-input-field-rac-DTeubyLu.js → rating-input-field-rac-BUQdT5vs.js} +4 -4
- package/dist/component/{rating-input-rac-P7Fdwrm3.js → rating-input-rac-AiePlWfl.js} +1 -1
- package/dist/component/{rich-content-rac.module-DgQubdPj.js → rich-content-rac.module-Dw6wAyWa.js} +1 -1
- package/dist/component/{rich-text-field-rac-8dkTMWKw.js → rich-text-field-rac-C2F4XmHl.js} +2 -2
- package/dist/component/{rich-text-rac-C6u_hF5R.js → rich-text-rac-DBqxSGfX.js} +1 -1
- package/dist/component/{service-dropdown-rac-CTSCew5q.js → service-dropdown-rac-DOsSqpp4.js} +4 -4
- package/dist/component/{services-multi-choice-rac-BUFJHq-l.js → services-multi-choice-rac-a1t5dGyv.js} +27 -29
- package/dist/component/{signature-rac-yO924Qfv.js → signature-rac-BZxhmfGi.js} +3 -3
- package/dist/component/{submit-button-rac-BurhcqZP.js → submit-button-rac-e4UsJuTX.js} +1 -1
- package/dist/component/{tags-field-rac-qbNQcwnE.js → tags-field-rac-DZeZdN2B.js} +54 -54
- package/dist/component/{tags-rac-DVHcpxNG.js → tags-rac-tOZ1UsBq.js} +1 -1
- package/dist/component/{text-area-field-rac-BKhGX0CL.js → text-area-field-rac-DWcy1mUr.js} +4 -4
- package/dist/component/{text-area-rac-CHHEDeUX.js → text-area-rac-BNNYJaYU.js} +1 -1
- package/dist/component/{text-input-field-rac-BGitxCuC.js → text-input-field-rac-D8b68TP0.js} +3 -3
- package/dist/component/{text-input-headless-BBn1G2s9.js → text-input-headless-CY2dvZqY.js} +3 -3
- package/dist/component/{text-input-rac-CHX-U7Kp.js → text-input-rac-BflmvAp3.js} +1 -1
- package/dist/component/{time-input-rac-Bp6B2gO3.js → time-input-rac-B1xcZeK6.js} +4 -4
- package/dist/component/{url-input-field-rac-CPibLAWz.js → url-input-field-rac-DVXFTNlr.js} +4 -4
- package/dist/component/{url-input-rac-Bj4PV2YJ.js → url-input-rac-BEm7QPK6.js} +1 -1
- package/dist/component/{use-dropdown-option-class-name-CE1u4RLT.js → use-dropdown-option-class-name-DZQUnZz4.js} +2 -2
- package/dist/component/{use-element-state-class-name-Dn_LpP1k.js → use-element-state-class-name-DKacixau.js} +1 -1
- package/dist/component/{use-is-forced-open-dropdown-B2mdY7ku.js → use-is-forced-open-dropdown-GzE8GcCX.js} +1 -1
- package/dist/component/{use-service-options-base-DBvqU30V.js → use-service-options-base-DuInZhF_.js} +1 -1
- package/dist/component/{use-text-input-class-name-BUW0svzK.js → use-text-input-class-name-DhLYHlKO.js} +2 -2
- package/package.json +2 -2
- package/dist/component/events-rsvp-rac-Dcrc1yxR.js +0 -49
- package/dist/component/options-rac.module-CTDdATiz.js +0 -8
- package/dist/component/radio-button-module-classes-CjDU2x_m.js +0 -133
package/dist/component/{radio-group-field-rac-DAwCG8w2.js → radio-group-field-rac-Duu_EH1m.js}
RENAMED
|
@@ -1,30 +1,29 @@
|
|
|
1
1
|
import { RicosViewer as m } from "@wix/ricos/viewer";
|
|
2
2
|
import t from "classnames";
|
|
3
3
|
import e from "react";
|
|
4
|
-
import { a, s, R as n } from "./radio-button-module-classes-
|
|
4
|
+
import { a, s, R as n } from "./radio-button-module-classes-CX8cTuqj.js";
|
|
5
5
|
import { E as c } from "./error-icon-hZxQ6DEy.js";
|
|
6
6
|
import { s as r } from "./field-rac.module-B4l_0KRU.js";
|
|
7
|
-
import { I as
|
|
8
|
-
import {
|
|
9
|
-
import { u as N } from "./use-
|
|
10
|
-
|
|
7
|
+
import { I as i, U as E, P as p, Q as R, v as O, p as _, R as I } from "./form-ug6JXjA8.js";
|
|
8
|
+
import { o as L } from "./options-rac.module-_THNq6Qq.js";
|
|
9
|
+
import { u as N } from "./use-element-state-class-name-DKacixau.js";
|
|
10
|
+
import { u } from "./use-text-input-class-name-DhLYHlKO.js";
|
|
11
|
+
const D = ({ content: o, locale: l }) => /* @__PURE__ */ e.createElement(m, {
|
|
11
12
|
content: o,
|
|
12
13
|
locale: l
|
|
13
|
-
}),
|
|
14
|
-
const o =
|
|
14
|
+
}), P = () => {
|
|
15
|
+
const o = N({
|
|
15
16
|
globalClasses: I,
|
|
16
17
|
moduleClasses: n
|
|
17
|
-
}), l =
|
|
18
|
-
return /* @__PURE__ */ e.createElement(a, {
|
|
19
|
-
className:
|
|
20
|
-
}, /* @__PURE__ */ e.createElement(a.Label, {
|
|
21
|
-
className: t(E, r.label)
|
|
18
|
+
}), l = u();
|
|
19
|
+
return /* @__PURE__ */ e.createElement(a, null, /* @__PURE__ */ e.createElement(a.Label, {
|
|
20
|
+
className: t(i, r.label)
|
|
22
21
|
}, /* @__PURE__ */ e.createElement(a.Label.Required, {
|
|
23
|
-
className: t(
|
|
22
|
+
className: t(E, r.requiredMark)
|
|
24
23
|
}), /* @__PURE__ */ e.createElement(a.Label.Image, {
|
|
25
24
|
className: s.labelImage
|
|
26
25
|
})), /* @__PURE__ */ e.createElement(a.Options, {
|
|
27
|
-
className: t(p,
|
|
26
|
+
className: t(p, L.options)
|
|
28
27
|
}, /* @__PURE__ */ e.createElement(a.Option, {
|
|
29
28
|
className: s.option
|
|
30
29
|
}, /* @__PURE__ */ e.createElement(a.Option.Input, {
|
|
@@ -39,8 +38,8 @@ const u = ({ content: o, locale: l }) => /* @__PURE__ */ e.createElement(m, {
|
|
|
39
38
|
className: t(O, r.error)
|
|
40
39
|
}, /* @__PURE__ */ e.createElement(c, null), /* @__PURE__ */ e.createElement(a.Error.Text, null)), /* @__PURE__ */ e.createElement(a.Description, {
|
|
41
40
|
className: t(_, r.description)
|
|
42
|
-
},
|
|
41
|
+
}, D));
|
|
43
42
|
};
|
|
44
43
|
export {
|
|
45
|
-
|
|
44
|
+
P as R
|
|
46
45
|
};
|
package/dist/component/{rating-input-field-rac-DTeubyLu.js → rating-input-field-rac-BUQdT5vs.js}
RENAMED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { RicosViewer as y } from "@wix/ricos/viewer";
|
|
2
2
|
import m from "classnames";
|
|
3
3
|
import e, { useCallback as N, useState as O, useRef as A } from "react";
|
|
4
|
-
import { b9 as I, b6 as v, bj as T, I as H, U as M, S as w, v as B, p as P, T as q } from "./form-
|
|
4
|
+
import { b9 as I, b6 as v, bj as T, I as H, U as M, S as w, v as B, p as P, T as q } from "./form-ug6JXjA8.js";
|
|
5
5
|
import { RadioGroup as G, RadioField as k, RadioButton as x } from "react-aria-components";
|
|
6
6
|
import { f as u, a as U } from "./find-child-C60k4CxG.js";
|
|
7
|
-
import { D as j, E as z } from "./field-error-headless-
|
|
8
|
-
import { L as Q } from "./field-label-headless-
|
|
7
|
+
import { D as j, E as z } from "./field-error-headless-CijTssZX.js";
|
|
8
|
+
import { L as Q } from "./field-label-headless-D5nW8IPL.js";
|
|
9
9
|
import { E as Z } from "./error-icon-hZxQ6DEy.js";
|
|
10
10
|
import { s as g } from "./field-rac.module-B4l_0KRU.js";
|
|
11
|
-
import { u as J } from "./use-element-state-class-name-
|
|
11
|
+
import { u as J } from "./use-element-state-class-name-DKacixau.js";
|
|
12
12
|
const t = ({ children: a }) => {
|
|
13
13
|
const { id: n, value: r, onChange: o, disabled: l, readOnly: d, required: c, hasError: i, onBlur: E, onFocus: C, FieldLayout: R } = I(), { labelId: _ } = v(), L = N((D) => o(Number(D)), [
|
|
14
14
|
o
|
package/dist/component/{rich-content-rac.module-DgQubdPj.js → rich-content-rac.module-Dw6wAyWa.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import c, { useState as u } from "react";
|
|
2
|
-
import { b9 as a, b1 as i, bj as T } from "./form-
|
|
2
|
+
import { b9 as a, b1 as i, bj as T } from "./form-ug6JXjA8.js";
|
|
3
3
|
import { Button as d } from "react-aria-components";
|
|
4
4
|
import { D as r } from "./data-hooks-Dkw1pbRj.js";
|
|
5
5
|
import { truncateRichContent as _ } from "@wix/ricos/content";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import l from "classnames";
|
|
2
2
|
import e from "react";
|
|
3
|
-
import { b9 as m, an as i, a5 as u, aM as R, aP as T } from "./form-
|
|
4
|
-
import { u as C, R as d, s as g, T as p } from "./rich-content-rac.module-
|
|
3
|
+
import { b9 as m, an as i, a5 as u, aM as R, aP as T } from "./form-ug6JXjA8.js";
|
|
4
|
+
import { u as C, R as d, s as g, T as p } from "./rich-content-rac.module-Dw6wAyWa.js";
|
|
5
5
|
const h = {
|
|
6
6
|
colorPalette: T(),
|
|
7
7
|
customStyles: R()
|
package/dist/component/{service-dropdown-rac-CTSCew5q.js → service-dropdown-rac-DOsSqpp4.js}
RENAMED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import t, { useRef as b, useMemo as g, useCallback as D, useEffect as P } from "react";
|
|
2
2
|
import { RicosViewer as T } from "@wix/ricos/viewer";
|
|
3
3
|
import u from "classnames";
|
|
4
|
-
import { b5 as w, bj as A, F as M, b9 as y, b1 as U, ac as V, I as x, U as H, t as W, K as k, v as q, p as B } from "./form-
|
|
5
|
-
import { u as G } from "./use-service-options-base-
|
|
6
|
-
import { D as d } from "./dropdown-field-headless-
|
|
4
|
+
import { b5 as w, bj as A, F as M, b9 as y, b1 as U, ac as V, I as x, U as H, t as W, K as k, v as q, p as B } from "./form-ug6JXjA8.js";
|
|
5
|
+
import { u as G } from "./use-service-options-base-DuInZhF_.js";
|
|
6
|
+
import { D as d } from "./dropdown-field-headless-NTFuCOLG.js";
|
|
7
7
|
import { C as j } from "./chevron-down-icon-CcpVm6B-.js";
|
|
8
8
|
import { E as K } from "./error-icon-hZxQ6DEy.js";
|
|
9
9
|
import { H as Q } from "./custom-focus-class-_483Pkwp.js";
|
|
10
10
|
import { s as i } from "./field-rac.module-B4l_0KRU.js";
|
|
11
|
-
import { u as Y } from "./use-dropdown-option-class-name-
|
|
11
|
+
import { u as Y } from "./use-dropdown-option-class-name-DZQUnZz4.js";
|
|
12
12
|
const z = "00000000-0000-0000-0000-000000000000", J = (e) => {
|
|
13
13
|
const { actions: r } = w(), { t: h } = A(), { addOther: n, addOtherLabel: p } = e, c = p || h("add-other.default-other-option-label"), a = b(!0), E = g(() => {
|
|
14
14
|
var s;
|
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
import e, { useEffect as I, useMemo as L } from "react";
|
|
2
2
|
import { RicosViewer as S } from "@wix/ricos/viewer";
|
|
3
3
|
import a from "classnames";
|
|
4
|
-
import { F as R, b9 as d, ac as D, I as
|
|
5
|
-
import { u as v } from "./use-service-options-base-
|
|
6
|
-
import { C as
|
|
4
|
+
import { F as R, b9 as d, ac as D, I as F, U as N, i as f, k as h, v as b, p as M, j as A } from "./form-ug6JXjA8.js";
|
|
5
|
+
import { u as v } from "./use-service-options-base-DuInZhF_.js";
|
|
6
|
+
import { C as i } from "./checkbox-group-field-headless-B-c-7mfP.js";
|
|
7
7
|
import { E as x } from "./error-icon-hZxQ6DEy.js";
|
|
8
8
|
import { C as P } from "./checkbox-indicator-module-classes-BpeSpGsW.js";
|
|
9
|
-
import { s as
|
|
10
|
-
import { o as
|
|
11
|
-
import { u as T } from "./use-element-state-class-name-
|
|
12
|
-
import { u as k } from "./use-text-input-class-name-
|
|
9
|
+
import { s as n } from "./field-rac.module-B4l_0KRU.js";
|
|
10
|
+
import { o as _ } from "./options-rac.module-_THNq6Qq.js";
|
|
11
|
+
import { u as T } from "./use-element-state-class-name-DKacixau.js";
|
|
12
|
+
import { u as k } from "./use-text-input-class-name-DhLYHlKO.js";
|
|
13
13
|
const y = (s) => {
|
|
14
|
-
var
|
|
15
|
-
const { isLoading: o, options: r, isEmpty: l, shouldRender: E, setOptions: c, setIsEmpty: m, setHasInitialDataLoaded:
|
|
14
|
+
var C;
|
|
15
|
+
const { isLoading: o, options: r, isEmpty: l, shouldRender: E, setOptions: c, setIsEmpty: m, setHasInitialDataLoaded: p } = v({
|
|
16
16
|
fieldType: R.SERVICES_MULTI_CHOICE,
|
|
17
17
|
isEditor: s.isEditor
|
|
18
|
-
}),
|
|
18
|
+
}), u = (C = s.options) == null ? void 0 : C.every((O) => O.label && O.id);
|
|
19
19
|
return I(() => {
|
|
20
|
-
if (
|
|
21
|
-
c(s.options), m(s.options.length === 0),
|
|
20
|
+
if (u && s.options) {
|
|
21
|
+
c(s.options), m(s.options.length === 0), p(!0);
|
|
22
22
|
return;
|
|
23
23
|
}
|
|
24
24
|
}, [
|
|
25
|
-
|
|
25
|
+
u,
|
|
26
26
|
s.options,
|
|
27
27
|
c,
|
|
28
28
|
m,
|
|
29
|
-
|
|
29
|
+
p
|
|
30
30
|
]), {
|
|
31
31
|
isLoading: o,
|
|
32
32
|
options: r,
|
|
@@ -45,14 +45,14 @@ const y = (s) => {
|
|
|
45
45
|
value: {
|
|
46
46
|
v2: m
|
|
47
47
|
}
|
|
48
|
-
}, /* @__PURE__ */ e.createElement(
|
|
48
|
+
}, /* @__PURE__ */ e.createElement(i, {
|
|
49
49
|
className: o
|
|
50
50
|
}, s));
|
|
51
51
|
};
|
|
52
|
-
t.Label =
|
|
53
|
-
t.Options =
|
|
54
|
-
t.Description =
|
|
55
|
-
t.Error =
|
|
52
|
+
t.Label = i.Label;
|
|
53
|
+
t.Options = i.Options;
|
|
54
|
+
t.Description = i.Description;
|
|
55
|
+
t.Error = i.Error;
|
|
56
56
|
const B = ({ content: s, locale: o }) => /* @__PURE__ */ e.createElement(S, {
|
|
57
57
|
content: s,
|
|
58
58
|
locale: o
|
|
@@ -61,26 +61,24 @@ const B = ({ content: s, locale: o }) => /* @__PURE__ */ e.createElement(S, {
|
|
|
61
61
|
globalClasses: A,
|
|
62
62
|
moduleClasses: P
|
|
63
63
|
}), o = k();
|
|
64
|
-
return /* @__PURE__ */ e.createElement(t, {
|
|
65
|
-
className:
|
|
66
|
-
}, /* @__PURE__ */ e.createElement(t.Label, {
|
|
67
|
-
className: a(N, i.label)
|
|
64
|
+
return /* @__PURE__ */ e.createElement(t, null, /* @__PURE__ */ e.createElement(t.Label, {
|
|
65
|
+
className: a(F, n.label)
|
|
68
66
|
}, /* @__PURE__ */ e.createElement(t.Label.Required, {
|
|
69
|
-
className: a(
|
|
67
|
+
className: a(N, n.requiredMark)
|
|
70
68
|
})), /* @__PURE__ */ e.createElement(t.Options, {
|
|
71
|
-
className: a(f,
|
|
69
|
+
className: a(f, _.options)
|
|
72
70
|
}, /* @__PURE__ */ e.createElement(t.Options.Option, null, /* @__PURE__ */ e.createElement(t.Options.Option.Checkbox, {
|
|
73
|
-
className:
|
|
71
|
+
className: n.checkbox
|
|
74
72
|
}, /* @__PURE__ */ e.createElement(t.Options.Option.Checkbox.Input, {
|
|
75
73
|
className: s
|
|
76
74
|
}), /* @__PURE__ */ e.createElement(t.Options.Option.Checkbox.Label, {
|
|
77
|
-
className: a(h,
|
|
75
|
+
className: a(h, _.optionLabel)
|
|
78
76
|
})), /* @__PURE__ */ e.createElement(t.Options.Option.OtherInput, {
|
|
79
77
|
inputClassName: o
|
|
80
78
|
}))), /* @__PURE__ */ e.createElement(t.Error, {
|
|
81
|
-
className: a(b,
|
|
79
|
+
className: a(b, n.error)
|
|
82
80
|
}, /* @__PURE__ */ e.createElement(x, null), /* @__PURE__ */ e.createElement(t.Error.Text, null)), /* @__PURE__ */ e.createElement(t.Description, {
|
|
83
|
-
className: a(M,
|
|
81
|
+
className: a(M, n.description)
|
|
84
82
|
}, B));
|
|
85
83
|
}, J = () => /* @__PURE__ */ e.createElement(U, null);
|
|
86
84
|
export {
|
|
@@ -4,10 +4,10 @@ import v from "classnames";
|
|
|
4
4
|
import { useHover as ve, useFocusRing as Se, mergeProps as xe } from "react-aria";
|
|
5
5
|
import { RadioGroup as Fe, Button as fe, TextField as Ae, Input as _e, RadioField as Ne, RadioButton as Pe } from "react-aria-components";
|
|
6
6
|
import he from "signature_pad";
|
|
7
|
-
import { aD as Ue, b5 as Oe, b1 as Be, bh as ge, E as ce, a6 as G, b9 as A, b6 as H, bb as Ee, bj as Me, I as ue, U as We, H as B, W as He, v as Ye, p as ke } from "./form-
|
|
7
|
+
import { aD as Ue, b5 as Oe, b1 as Be, bh as ge, E as ce, a6 as G, b9 as A, b6 as H, bb as Ee, bj as Me, I as ue, U as We, H as B, W as He, v as Ye, p as ke } from "./form-ug6JXjA8.js";
|
|
8
8
|
import { f as I, a as F } from "./find-child-C60k4CxG.js";
|
|
9
|
-
import { D as $e, E as Ve } from "./field-error-headless-
|
|
10
|
-
import { L as ze } from "./field-label-headless-
|
|
9
|
+
import { D as $e, E as Ve } from "./field-error-headless-CijTssZX.js";
|
|
10
|
+
import { L as ze } from "./field-label-headless-D5nW8IPL.js";
|
|
11
11
|
import { D as Ze } from "./data-hooks-Dkw1pbRj.js";
|
|
12
12
|
import { E as Xe } from "./error-icon-hZxQ6DEy.js";
|
|
13
13
|
import { s as V } from "./field-rac.module-B4l_0KRU.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import t, { useRef as y, useCallback as f } from "react";
|
|
2
2
|
import P from "@wix/editor-react-components/AnimatedIcon";
|
|
3
3
|
import S from "classnames";
|
|
4
|
-
import { b9 as B, b3 as h, a4 as A, a3 as I, a7 as O, a9 as w, b as F, a8 as R } from "./form-
|
|
4
|
+
import { b9 as B, b3 as h, a4 as A, a3 as I, a7 as O, a9 as w, b as F, a8 as R } from "./form-ug6JXjA8.js";
|
|
5
5
|
import { ProgressBar as k, Button as N } from "react-aria-components";
|
|
6
6
|
import { f as c } from "./find-child-C60k4CxG.js";
|
|
7
7
|
function M(n) {
|
|
@@ -1,45 +1,45 @@
|
|
|
1
|
-
import { RicosViewer as
|
|
1
|
+
import { RicosViewer as Y } from "@wix/ricos/viewer";
|
|
2
2
|
import y from "classnames";
|
|
3
|
-
import t, { useMemo as I, useState as
|
|
4
|
-
import { CheckboxGroup as
|
|
5
|
-
import { b9 as R, b6 as M, bj as S, bb as U, I as ee, U as te, Y as
|
|
3
|
+
import t, { useMemo as I, useState as Z, useRef as N, useLayoutEffect as w, useCallback as k } from "react";
|
|
4
|
+
import { CheckboxGroup as z, TextField as B, Input as J, CheckboxField as K, CheckboxButton as X } from "react-aria-components";
|
|
5
|
+
import { b9 as R, b6 as M, bj as S, bb as U, I as ee, U as te, Y as ne, v as oe, p as ae, Z as re } from "./form-ug6JXjA8.js";
|
|
6
6
|
import { f as O, a as x } from "./find-child-C60k4CxG.js";
|
|
7
|
-
import { E as W, D as H } from "./field-error-headless-
|
|
8
|
-
import { L as $ } from "./field-label-headless-
|
|
7
|
+
import { E as W, D as H } from "./field-error-headless-CijTssZX.js";
|
|
8
|
+
import { L as $ } from "./field-label-headless-D5nW8IPL.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 D } from "./field-rac.module-B4l_0KRU.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-DKacixau.js";
|
|
13
|
+
import { u as ce } from "./use-text-input-class-name-DhLYHlKO.js";
|
|
14
14
|
var ue = /* @__PURE__ */ (function(e) {
|
|
15
15
|
return e[e.FREE_FLOW = 0] = "FREE_FLOW", e[e.ONE = 1] = "ONE", e[e.TWO = 2] = "TWO", e[e.THREE = 3] = "THREE", e;
|
|
16
16
|
})({});
|
|
17
|
-
const v = "Other", de = (e,
|
|
18
|
-
const r =
|
|
19
|
-
return (e.find((i) => i.startsWith(`${
|
|
20
|
-
}, me = (e) => e.map((
|
|
21
|
-
const { label: a } =
|
|
17
|
+
const v = "Other", de = (e, n) => {
|
|
18
|
+
const r = n.length + 2;
|
|
19
|
+
return (e.find((i) => i.startsWith(`${n}: `)) || "").slice(r);
|
|
20
|
+
}, me = (e) => e.map((n) => n.value ?? n.label), P = ({ className: e, ...n }) => {
|
|
21
|
+
const { label: a } = n;
|
|
22
22
|
return /* @__PURE__ */ t.createElement("span", {
|
|
23
23
|
className: e
|
|
24
24
|
}, a);
|
|
25
25
|
}, q = ({ className: e }) => {
|
|
26
|
-
const { value:
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
]), [c, L] =
|
|
30
|
-
|
|
26
|
+
const { value: n, onChange: a, addOtherLabel: r, addOtherPlaceholder: l, otherInputCharacterLimit: i, disabled: u, readOnly: m, hasError: d } = R(), { t: p } = S(), o = r || p("add-other.default-other-option-label") || v, b = I(() => de(n || [], o), [
|
|
27
|
+
n,
|
|
28
|
+
o
|
|
29
|
+
]), [c, L] = Z(b), f = N(a);
|
|
30
|
+
w(() => {
|
|
31
31
|
f.current = a;
|
|
32
32
|
});
|
|
33
33
|
const g = k((h) => {
|
|
34
34
|
L(h);
|
|
35
|
-
const C = (
|
|
35
|
+
const C = (n || []).filter((E) => !E.startsWith(`${o}:`) && E !== o), _ = h ? `${o}: ${h}` : o;
|
|
36
36
|
f.current([
|
|
37
37
|
...C,
|
|
38
38
|
_
|
|
39
39
|
]);
|
|
40
40
|
}, [
|
|
41
|
-
|
|
42
|
-
|
|
41
|
+
n,
|
|
42
|
+
o
|
|
43
43
|
]);
|
|
44
44
|
return /* @__PURE__ */ t.createElement(B, {
|
|
45
45
|
value: c,
|
|
@@ -47,7 +47,7 @@ const v = "Other", de = (e, o) => {
|
|
|
47
47
|
isDisabled: u,
|
|
48
48
|
isReadOnly: m,
|
|
49
49
|
isInvalid: d,
|
|
50
|
-
"aria-label":
|
|
50
|
+
"aria-label": o
|
|
51
51
|
}, /* @__PURE__ */ t.createElement(J, {
|
|
52
52
|
"data-hook": "tags-other-input",
|
|
53
53
|
"data-filled": c ? !0 : void 0,
|
|
@@ -55,8 +55,8 @@ const v = "Other", de = (e, o) => {
|
|
|
55
55
|
maxLength: i,
|
|
56
56
|
className: e
|
|
57
57
|
}));
|
|
58
|
-
}, T = ({ children: e, className:
|
|
59
|
-
const { value: r, label: l, isOther: i, isFirstOption: u } = a, { id: m, value: d, onChange: p, options:
|
|
58
|
+
}, T = ({ children: e, className: n, ...a }) => {
|
|
59
|
+
const { value: r, label: l, isOther: i, isFirstOption: u } = a, { id: m, value: d, onChange: p, options: o, disabled: b, readOnly: c, hasError: L } = R(), f = N(null);
|
|
60
60
|
U(() => {
|
|
61
61
|
var E;
|
|
62
62
|
u && ((E = f.current) == null || E.focus({
|
|
@@ -71,7 +71,7 @@ const v = "Other", de = (e, o) => {
|
|
|
71
71
|
l,
|
|
72
72
|
r
|
|
73
73
|
]), _ = k((E) => {
|
|
74
|
-
const
|
|
74
|
+
const j = me(o || []), A = h.filter((Q) => j.includes(Q));
|
|
75
75
|
p(E ? [
|
|
76
76
|
...A,
|
|
77
77
|
l
|
|
@@ -79,7 +79,7 @@ const v = "Other", de = (e, o) => {
|
|
|
79
79
|
}, [
|
|
80
80
|
l,
|
|
81
81
|
p,
|
|
82
|
-
|
|
82
|
+
o,
|
|
83
83
|
h
|
|
84
84
|
]);
|
|
85
85
|
return /* @__PURE__ */ t.createElement(K, {
|
|
@@ -90,7 +90,7 @@ const v = "Other", de = (e, o) => {
|
|
|
90
90
|
isReadOnly: c,
|
|
91
91
|
isInvalid: L
|
|
92
92
|
}, /* @__PURE__ */ t.createElement(X, {
|
|
93
|
-
className:
|
|
93
|
+
className: n,
|
|
94
94
|
"data-hook": `tags-${i ? v : r}`
|
|
95
95
|
}, x(g, {
|
|
96
96
|
value: r,
|
|
@@ -98,52 +98,52 @@ const v = "Other", de = (e, o) => {
|
|
|
98
98
|
isOther: i,
|
|
99
99
|
isFirstOption: u
|
|
100
100
|
})));
|
|
101
|
-
}, V = ({ children: e, className:
|
|
101
|
+
}, V = ({ children: e, className: n }) => {
|
|
102
102
|
const { options: a, addOther: r, addOtherLabel: l, numberOfColumns: i = ue.FREE_FLOW } = R(), { t: u } = S(), m = l || u("add-other.default-other-option-label") || v, d = O(e, T), p = I(() => {
|
|
103
|
-
const
|
|
103
|
+
const o = a || [];
|
|
104
104
|
return r ? [
|
|
105
|
-
...
|
|
105
|
+
...o,
|
|
106
106
|
{
|
|
107
107
|
label: m,
|
|
108
108
|
value: m,
|
|
109
109
|
isOther: !0
|
|
110
110
|
}
|
|
111
|
-
] :
|
|
111
|
+
] : o;
|
|
112
112
|
}, [
|
|
113
113
|
a,
|
|
114
114
|
r,
|
|
115
115
|
m
|
|
116
116
|
]);
|
|
117
117
|
return p.length === 0 ? null : /* @__PURE__ */ t.createElement("div", {
|
|
118
|
-
className:
|
|
118
|
+
className: n,
|
|
119
119
|
"data-columns": i
|
|
120
|
-
}, p.map((
|
|
121
|
-
const c =
|
|
120
|
+
}, p.map((o, b) => {
|
|
121
|
+
const c = o.value ?? o.label;
|
|
122
122
|
return x(d, {
|
|
123
|
-
key:
|
|
123
|
+
key: o.isOther ? v : c,
|
|
124
124
|
value: c,
|
|
125
|
-
label:
|
|
126
|
-
isOther:
|
|
125
|
+
label: o.label,
|
|
126
|
+
isOther: o.isOther,
|
|
127
127
|
isFirstOption: b === 0
|
|
128
128
|
});
|
|
129
129
|
}));
|
|
130
|
-
},
|
|
131
|
-
const { addOther: a, addOtherLabel: r, hasError: l, readOnly: i, value: u } = R(), { t: m } = S(), d = r || m("add-other.default-other-option-label") || v, p = O(e, V),
|
|
130
|
+
}, G = ({ children: e, className: n }) => {
|
|
131
|
+
const { addOther: a, addOtherLabel: r, hasError: l, readOnly: i, value: u } = R(), { t: m } = S(), d = r || m("add-other.default-other-option-label") || v, p = O(e, V), o = O(e, q), b = I(() => !a || !u ? !1 : u.some((c) => c === d || c.startsWith(`${d}:`)), [
|
|
132
132
|
a,
|
|
133
133
|
u,
|
|
134
134
|
d
|
|
135
135
|
]);
|
|
136
136
|
return /* @__PURE__ */ t.createElement("div", {
|
|
137
|
-
className:
|
|
137
|
+
className: n,
|
|
138
138
|
"data-invalid": l,
|
|
139
139
|
"data-readonly": i
|
|
140
|
-
}, p, b &&
|
|
140
|
+
}, p, b && o);
|
|
141
141
|
}, s = ({ children: e }) => {
|
|
142
|
-
const { id:
|
|
142
|
+
const { id: n, value: a, onChange: r, FieldLayout: l, required: i, disabled: u, readOnly: m, hasError: d, onBlur: p, onFocus: o } = R(), { inputId: b, labelId: c, ariaDescribedBy: L } = M(), f = I(() => a || [], [
|
|
143
143
|
a
|
|
144
|
-
]), g = O(e, $), h = O(e,
|
|
144
|
+
]), g = O(e, $), h = O(e, G), C = O(e, H), _ = O(e, W);
|
|
145
145
|
return /* @__PURE__ */ t.createElement(l, {
|
|
146
|
-
fieldId:
|
|
146
|
+
fieldId: n,
|
|
147
147
|
renderLabel: () => g,
|
|
148
148
|
renderInput: () => /* @__PURE__ */ t.createElement(se, {
|
|
149
149
|
id: b,
|
|
@@ -151,8 +151,8 @@ const v = "Other", de = (e, o) => {
|
|
|
151
151
|
ariaDescribedBy: L,
|
|
152
152
|
required: i,
|
|
153
153
|
onBlur: p,
|
|
154
|
-
onFocus:
|
|
155
|
-
}, /* @__PURE__ */ t.createElement(
|
|
154
|
+
onFocus: o
|
|
155
|
+
}, /* @__PURE__ */ t.createElement(z, {
|
|
156
156
|
"aria-labelledby": c,
|
|
157
157
|
value: f,
|
|
158
158
|
onChange: r,
|
|
@@ -167,20 +167,20 @@ const v = "Other", de = (e, o) => {
|
|
|
167
167
|
V.Option = T;
|
|
168
168
|
T.Label = P;
|
|
169
169
|
s.Label = $;
|
|
170
|
-
s.Control =
|
|
170
|
+
s.Control = G;
|
|
171
171
|
s.Options = V;
|
|
172
172
|
s.OtherInput = q;
|
|
173
173
|
s.Description = H;
|
|
174
174
|
s.Error = W;
|
|
175
|
-
const pe = "
|
|
175
|
+
const pe = "_control_d4biy_1", he = "_options_d4biy_7", Ee = "_option_d4biy_7", be = "_optionHover_d4biy_79", Oe = "_optionSelected_d4biy_79", F = {
|
|
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:
|
|
181
|
+
}, fe = ({ content: e, locale: n }) => /* @__PURE__ */ t.createElement(Y, {
|
|
182
182
|
content: e,
|
|
183
|
-
locale:
|
|
183
|
+
locale: n
|
|
184
184
|
}), Ie = {
|
|
185
185
|
base: F.option,
|
|
186
186
|
selected: F.optionSelected,
|
|
@@ -189,7 +189,7 @@ const pe = "_control_11yzo_1", he = "_options_11yzo_8", Ee = "_option_11yzo_8",
|
|
|
189
189
|
const e = ie({
|
|
190
190
|
globalClasses: re,
|
|
191
191
|
moduleClasses: Ie
|
|
192
|
-
}),
|
|
192
|
+
}), n = ce();
|
|
193
193
|
return /* @__PURE__ */ t.createElement(s, null, /* @__PURE__ */ t.createElement(s.Label, {
|
|
194
194
|
className: y(ee, D.label)
|
|
195
195
|
}, /* @__PURE__ */ t.createElement(s.Label.Required, {
|
|
@@ -197,16 +197,16 @@ const pe = "_control_11yzo_1", he = "_options_11yzo_8", Ee = "_option_11yzo_8",
|
|
|
197
197
|
})), /* @__PURE__ */ t.createElement(s.Control, {
|
|
198
198
|
className: F.control
|
|
199
199
|
}, /* @__PURE__ */ t.createElement(s.Options, {
|
|
200
|
-
className: y(
|
|
200
|
+
className: y(ne, F.options)
|
|
201
201
|
}, /* @__PURE__ */ t.createElement(s.Options.Option, {
|
|
202
202
|
className: ({ isSelected: a, isHovered: r }) => e({
|
|
203
203
|
isSelected: a,
|
|
204
204
|
isHovered: r
|
|
205
205
|
})
|
|
206
206
|
}, /* @__PURE__ */ t.createElement(s.Options.Option.Label, null))), /* @__PURE__ */ t.createElement(s.OtherInput, {
|
|
207
|
-
className:
|
|
207
|
+
className: n
|
|
208
208
|
})), /* @__PURE__ */ t.createElement(s.Error, {
|
|
209
|
-
className: y(
|
|
209
|
+
className: y(oe, D.error)
|
|
210
210
|
}, /* @__PURE__ */ t.createElement(le, null), /* @__PURE__ */ t.createElement(s.Error.Text, null)), /* @__PURE__ */ t.createElement(s.Description, {
|
|
211
211
|
className: y(ae, D.description)
|
|
212
212
|
}, fe));
|
|
@@ -2,13 +2,13 @@ import { RicosViewer as N } from "@wix/ricos/viewer";
|
|
|
2
2
|
import o from "classnames";
|
|
3
3
|
import r, { useCallback as T, useRef as O } from "react";
|
|
4
4
|
import { TextField as S, TextArea as y } from "react-aria-components";
|
|
5
|
-
import { b9 as p, b6 as d, bb as x, I as g, U as h, v, p as M } from "./form-
|
|
5
|
+
import { b9 as p, b6 as d, bb as x, I as g, U as h, v, p as M } from "./form-ug6JXjA8.js";
|
|
6
6
|
import { f as i } from "./find-child-C60k4CxG.js";
|
|
7
|
-
import { D as q, E as B } from "./field-error-headless-
|
|
8
|
-
import { L as k } from "./field-label-headless-
|
|
7
|
+
import { D as q, E as B } from "./field-error-headless-CijTssZX.js";
|
|
8
|
+
import { L as k } from "./field-label-headless-D5nW8IPL.js";
|
|
9
9
|
import { E as P } from "./error-icon-hZxQ6DEy.js";
|
|
10
10
|
import { s as c } from "./field-rac.module-B4l_0KRU.js";
|
|
11
|
-
import { u as U } from "./use-text-input-class-name-
|
|
11
|
+
import { u as U } from "./use-text-input-class-name-DhLYHlKO.js";
|
|
12
12
|
const e = ({ children: t }) => {
|
|
13
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 = T((A) => {
|
|
14
14
|
s(A);
|
package/dist/component/{text-input-field-rac-BGitxCuC.js → text-input-field-rac-D8b68TP0.js}
RENAMED
|
@@ -1,11 +1,11 @@
|
|
|
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-CY2dvZqY.js";
|
|
5
5
|
import { E as o } from "./error-icon-hZxQ6DEy.js";
|
|
6
6
|
import { s as a } from "./field-rac.module-B4l_0KRU.js";
|
|
7
|
-
import { I as n, U as c, v as E, p as i } from "./form-
|
|
8
|
-
import { u as p } from "./use-text-input-class-name-
|
|
7
|
+
import { I as n, U as c, v as E, p as i } from "./form-ug6JXjA8.js";
|
|
8
|
+
import { u as p } from "./use-text-input-class-name-DhLYHlKO.js";
|
|
9
9
|
const I = ({ content: s, locale: m }) => /* @__PURE__ */ e.createElement(l, {
|
|
10
10
|
content: s,
|
|
11
11
|
locale: m
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import t, { useRef as L } from "react";
|
|
2
2
|
import { TextField as R, Input as v } from "react-aria-components";
|
|
3
|
-
import { b9 as d, b6 as c, bb as T } from "./form-
|
|
3
|
+
import { b9 as d, b6 as c, bb as T } from "./form-ug6JXjA8.js";
|
|
4
4
|
import { f as s } from "./find-child-C60k4CxG.js";
|
|
5
|
-
import { D as g, E as h } from "./field-error-headless-
|
|
6
|
-
import { L as x } from "./field-label-headless-
|
|
5
|
+
import { D as g, E as h } from "./field-error-headless-CijTssZX.js";
|
|
6
|
+
import { L as x } from "./field-label-headless-D5nW8IPL.js";
|
|
7
7
|
const e = ({ children: r }) => {
|
|
8
8
|
const { id: a, value: i, onChange: l, disabled: u, readOnly: n, required: o, hasError: p, onBlur: m, onFocus: b, FieldLayout: f } = d(), { labelId: E } = c(), I = s(r, e.Label), F = s(r, e.Input), y = s(r, e.Description), D = s(r, e.Error);
|
|
9
9
|
return /* @__PURE__ */ t.createElement(f, {
|
|
@@ -3,14 +3,14 @@ import { RicosViewer as q } from "@wix/ricos/viewer";
|
|
|
3
3
|
import c from "classnames";
|
|
4
4
|
import { parseTime as B } from "@internationalized/date";
|
|
5
5
|
import { TimeField as U, DateInput as k, DateSegment as _, TimeFieldStateContext as j } from "react-aria-components";
|
|
6
|
-
import { b9 as p, b6 as w, bj as b, bb as Q, I as z, U as G, v as J, p as K } from "./form-
|
|
6
|
+
import { b9 as p, b6 as w, bj as b, bb as Q, I as z, U as G, v as J, p as K } from "./form-ug6JXjA8.js";
|
|
7
7
|
import { f as m, a as F } from "./find-child-C60k4CxG.js";
|
|
8
|
-
import { D as W, E as X } from "./field-error-headless-
|
|
9
|
-
import { L as Y } from "./field-label-headless-
|
|
8
|
+
import { D as W, E as X } from "./field-error-headless-CijTssZX.js";
|
|
9
|
+
import { L as Y } from "./field-label-headless-D5nW8IPL.js";
|
|
10
10
|
import { E as Z } from "./error-icon-hZxQ6DEy.js";
|
|
11
11
|
import { H as T } from "./custom-focus-class-_483Pkwp.js";
|
|
12
12
|
import { s as f } from "./field-rac.module-B4l_0KRU.js";
|
|
13
|
-
import { u as $ } from "./use-text-input-class-name-
|
|
13
|
+
import { u as $ } from "./use-text-input-class-name-DhLYHlKO.js";
|
|
14
14
|
const r = ({ children: t }) => {
|
|
15
15
|
const { id: n, value: l, onChange: o, disabled: i, readOnly: s, required: a, onBlur: d, onFocus: E, use24HourFormat: S, FieldLayout: C, hasError: I } = p(), { inputId: g, ariaDescribedBy: D, labelId: L } = w(), R = V((M) => {
|
|
16
16
|
const H = ae(M);
|
|
@@ -2,14 +2,14 @@ import { RicosViewer as S } from "@wix/ricos/viewer";
|
|
|
2
2
|
import i from "classnames";
|
|
3
3
|
import r, { useCallback as h, useRef as O } from "react";
|
|
4
4
|
import { TextField as y, Input as A } from "react-aria-components";
|
|
5
|
-
import { b9 as d, b6 as E, bb as v, I as B, U as T, v as g, p as k } from "./form-
|
|
5
|
+
import { b9 as d, b6 as E, bb as v, I as B, U as T, v as g, p as k } from "./form-ug6JXjA8.js";
|
|
6
6
|
import { f as c } from "./find-child-C60k4CxG.js";
|
|
7
|
-
import { D as M, E as P } from "./field-error-headless-
|
|
8
|
-
import { L as U } from "./field-label-headless-
|
|
7
|
+
import { D as M, E as P } from "./field-error-headless-CijTssZX.js";
|
|
8
|
+
import { L as U } from "./field-label-headless-D5nW8IPL.js";
|
|
9
9
|
import { u as q } from "./use-invoke-callback-UH73A_J3.js";
|
|
10
10
|
import { E as x } from "./error-icon-hZxQ6DEy.js";
|
|
11
11
|
import { s as u } from "./field-rac.module-B4l_0KRU.js";
|
|
12
|
-
import { u as w } from "./use-text-input-class-name-
|
|
12
|
+
import { u as w } from "./use-text-input-class-name-DhLYHlKO.js";
|
|
13
13
|
const V = (t) => t ? `https://${String(t).replace(/^https?:\/\//, "")}` : "", e = ({ children: t }) => {
|
|
14
14
|
const { id: o, value: s, onChange: n, disabled: m, readOnly: a, required: l, hasError: I, onBlur: b, onFocus: f, FieldLayout: R } = d(), { labelId: F } = E(), p = q(b), L = c(t, e.Label), D = c(t, e.Input), C = c(t, e.Description), _ = c(t, e.Error), N = h(() => {
|
|
15
15
|
n(V(s)), p();
|