@wix/form-elements 1.84.0 → 1.86.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-BSy3u0GK.js → appointment-rac-DiPF4326.js} +78 -78
- package/dist/component/{bookings-address-rac-CL7Bh1yH.js → bookings-address-rac-DuqMUPYH.js} +1 -1
- package/dist/component/{bookings-email-rac-Bw9tj_tv.js → bookings-email-rac-C4uKdWr-.js} +1 -1
- package/dist/component/{bookings-first-name-rac-BOOu_AXM.js → bookings-first-name-rac-D8Iu-SNH.js} +1 -1
- package/dist/component/{bookings-header-rac-3kBei7GF.js → bookings-header-rac-Df7inEbP.js} +1 -1
- package/dist/component/{bookings-last-name-rac-CUKbu22q.js → bookings-last-name-rac-3GrFylkJ.js} +1 -1
- package/dist/component/{bookings-login-bar-rac-CLrUhdX2.js → bookings-login-bar-rac-Cmm93hGY.js} +6 -6
- package/dist/component/{bookings-phone-rac-7DViellg.js → bookings-phone-rac-CfdQ5qR1.js} +1 -1
- package/dist/component/{bookings-rich-text-rac-CIUZX--G.js → bookings-rich-text-rac-CAFLGrDr.js} +1 -1
- package/dist/component/{checkbox-field-rac-C_jth3RK.js → checkbox-field-rac-D4TSHtYp.js} +5 -5
- package/dist/component/{checkbox-group-field-headless-D-c9Kyj8.js → checkbox-group-field-headless-BtorRj0k.js} +30 -30
- package/dist/component/{checkbox-group-field-rac-MgGUuYII.js → checkbox-group-field-rac-CSZjtiTd.js} +6 -6
- package/dist/component/{checkbox-group-rac-rr1mN2EJ.js → checkbox-group-rac-DVa2KhXh.js} +1 -1
- package/dist/component/{checkbox-rac-CRsLQKhN.js → checkbox-rac-BEAyFkKn.js} +1 -1
- package/dist/component/{contacts-address-rac-BFlNbQKh.js → contacts-address-rac-DRiJ7oWN.js} +1 -1
- package/dist/component/{contacts-birthdate-rac-D7Ww3iAz.js → contacts-birthdate-rac-pFthm4vI.js} +1 -1
- package/dist/component/{contacts-company-rac-DLl4nqH-.js → contacts-company-rac-Bkf19ZXI.js} +1 -1
- package/dist/component/{contacts-email-rac-K8fCs8qS.js → contacts-email-rac-eG6dMktK.js} +1 -1
- package/dist/component/{contacts-first-name-rac-BOTxHl3m.js → contacts-first-name-rac-BGM8vurp.js} +1 -1
- package/dist/component/{contacts-last-name-rac-bFnG-7Hm.js → contacts-last-name-rac-CB3YwF_-.js} +1 -1
- package/dist/component/{contacts-phone-rac-B4teqDIV.js → contacts-phone-rac-C-k6Np0j.js} +1 -1
- package/dist/component/{contacts-position-rac-CnWoXO5h.js → contacts-position-rac-DbBwVhvF.js} +1 -1
- package/dist/component/{contacts-subscribe-rac-Bco722BU.js → contacts-subscribe-rac-DPFEKv8D.js} +2 -2
- package/dist/component/{contacts-tax-id-rac-QQsKhAx3.js → contacts-tax-id-rac-DUe69xy2.js} +1 -1
- package/dist/component/{date-availability-DMbyb1GZ.js → date-availability-LsRBBF2w.js} +1 -1
- package/dist/component/{date-input-field-rac-CVRjO19U.js → date-input-field-rac-8tT_tvxK.js} +43 -43
- package/dist/component/{date-input-rac-zi7AQ8Ai.js → date-input-rac-XNgfU9bx.js} +1 -1
- package/dist/component/{date-picker-field-rac-5H10gH9D.js → date-picker-field-rac-BrVIS9sI.js} +20 -20
- package/dist/component/{date-picker-rac-CxWNDsyJ.js → date-picker-rac-ldp-6ccS.js} +1 -1
- package/dist/component/{date-time-input-field-rac-CDa-nyf8.js → date-time-input-field-rac-CoHc9hOG.js} +5 -5
- package/dist/component/{date-time-input-rac-DglwFYb0.js → date-time-input-rac-BaCayitG.js} +1 -1
- package/dist/component/{dext-checkbox-group-rac-BBB652Uy.js → dext-checkbox-group-rac-Zhmol3mv.js} +2 -2
- package/dist/component/{dext-checkbox-rac-BVtiGV3w.js → dext-checkbox-rac-ByYJS2iR.js} +1 -1
- package/dist/component/{dext-date-picker-rac-Di4x6sI_.js → dext-date-picker-rac-DsKWfvPj.js} +1 -1
- package/dist/component/{dext-date-time-input-rac-agWHwUo7.js → dext-date-time-input-rac-BEinQWMz.js} +1 -1
- package/dist/component/{dext-dropdown-rac-U3FZTA2-.js → dext-dropdown-rac-FuoCb4hK.js} +1 -1
- package/dist/component/{dext-email-rac-CZ9AQw_k.js → dext-email-rac-CfTAbFH5.js} +1 -1
- package/dist/component/{dext-number-input-rac-DFr_9ZX5.js → dext-number-input-rac-CwGC_pv7.js} +1 -1
- package/dist/component/{dext-phone-rac-BYsfNwXn.js → dext-phone-rac-CgMCLDYK.js} +1 -1
- package/dist/component/{dext-radio-group-rac-B_jm5YAT.js → dext-radio-group-rac-XB40HDWO.js} +2 -2
- package/dist/component/{dext-rating-input-rac-CNlhMKt-.js → dext-rating-input-rac-BeoGv6No.js} +1 -1
- package/dist/component/{dext-tags-rac-y9x8Fg54.js → dext-tags-rac-DJ0DWl1v.js} +2 -2
- package/dist/component/{dext-text-area-rac-BgRxIpn9.js → dext-text-area-rac-3X-i3Lf_.js} +1 -1
- package/dist/component/{dext-text-input-rac-CdzgUZ38.js → dext-text-input-rac-DJa5OTo5.js} +1 -1
- package/dist/component/{dext-url-input-rac-Cg1TYyNV.js → dext-url-input-rac-DgsZYkzF.js} +1 -1
- package/dist/component/{donation-rac-Deiw7Tl9.js → donation-rac-DvklUsO9.js} +43 -43
- package/dist/component/{dropdown-field-headless-BKj2rdy9.js → dropdown-field-headless-CMvvmkUR.js} +11 -11
- package/dist/component/{dropdown-field-rac-CIdC2_O3.js → dropdown-field-rac-Dogcbl1j.js} +5 -5
- package/dist/component/{dropdown-rac-CYxaJrXP.js → dropdown-rac-CMCVoUmd.js} +1 -1
- package/dist/component/{ecom-address-rac-Crr3A_iU.js → ecom-address-rac-B-x688-1.js} +1 -1
- package/dist/component/{ecom-subscription-checkbox-rac-DdXAex4c.js → ecom-subscription-checkbox-rac-2SO8p_Mh.js} +3 -3
- package/dist/component/{email-input-field-rac-C516Fm0v.js → email-input-field-rac-CWVqDqUg.js} +54 -54
- package/dist/component/{events-repeater-rac-DL49KaIU.js → events-repeater-rac-Br-ida6_.js} +30 -30
- package/dist/component/{events-rsvp-rac-B5EvAP8x.js → events-rsvp-rac-BwABDdyN.js} +3 -3
- package/dist/component/{field-error-headless-D2CJ4Qk7.js → field-error-headless-D4iJBghM.js} +1 -1
- package/dist/component/{field-label-headless-D2-WvVKT.js → field-label-headless-CzJhv-wS.js} +7 -7
- package/dist/component/{file-upload-rac-BG3msdbn.js → file-upload-rac-DU6INU4J.js} +85 -85
- package/dist/component/{fixed-payment-rac-3bI_h_W0.js → fixed-payment-rac-DEn6L3zu.js} +12 -12
- package/dist/component/{form-B3KiRFhB.js → form-Dt3W_RUv.js} +2229 -2203
- package/dist/component/{form-element-classes-Ct1UaxuQ.js → form-element-classes-BhFk9Jrj.js} +85 -54
- package/dist/component/form.css +1 -1
- package/dist/component/form.js +1 -1
- package/dist/component/{header-field-rac-Bp7hStrt.js → header-field-rac-D0K0BqUG.js} +5 -5
- package/dist/component/{header-rac-yVYId2B_.js → header-rac-DyIg-Ltz.js} +1 -1
- package/dist/component/{image-choice-rac-D1mqJfcn.js → image-choice-rac-DMjIkxUy.js} +42 -42
- package/dist/component/{index-B0PANcv8.js → index-BovDughA.js} +4 -4
- package/dist/component/{index-LrdDmlej.js → index-DiFa7GGa.js} +2 -2
- package/dist/component/{isObjectLike-DH7T0Txd.js → isObjectLike-CUZBx88n.js} +1 -1
- package/dist/component/{multiline-address-field-rac-C-gtuNCU.js → multiline-address-field-rac-CK5u9I0i.js} +128 -128
- package/dist/component/{multiline-address-rac-B3ixmNqi.js → multiline-address-rac-w0tpyTzt.js} +1 -1
- package/dist/component/{number-input-field-rac-BNPMYFay.js → number-input-field-rac-CVOSoBnw.js} +30 -30
- package/dist/component/{number-input-rac-BaEBt2uf.js → number-input-rac-DXEMqaqN.js} +1 -1
- package/dist/component/{password-rac-B0H_ILkt.js → password-rac-9pZro4oK.js} +19 -19
- package/dist/component/{payment-input-rac-LIk9MP5a.js → payment-input-rac-D9oGt1IQ.js} +17 -17
- package/dist/component/{phone-input-field-rac-CUUAacDK.js → phone-input-field-rac-B_MnDM0g.js} +40 -40
- package/dist/component/{phone-rac-BYqYOw60.js → phone-rac-BqoY5RbY.js} +1 -1
- package/dist/component/{product-list-rac-CvoI6ajr.js → product-list-rac-B_ZzTsCB.js} +41 -41
- package/dist/component/{quiz-radio-group-rac-D0IJGSh0.js → quiz-radio-group-rac-Ct2fFqIn.js} +2 -2
- package/dist/component/{radio-button-module-classes-CWfSY9kQ.js → radio-button-module-classes-PHiNEQN2.js} +7 -7
- package/dist/component/{radio-group-field-rac-DisEhh0b.js → radio-group-field-rac-Dfs4JSH_.js} +4 -4
- package/dist/component/{radio-group-rac-DrwjFNWh.js → radio-group-rac-D9SSPWcI.js} +1 -1
- package/dist/component/{rating-input-field-rac-BLMQWT7z.js → rating-input-field-rac-BFdsvsk2.js} +16 -16
- package/dist/component/{rating-input-rac-CGJY2HSO.js → rating-input-rac-hG1mVqe-.js} +1 -1
- package/dist/component/{rich-content-rac.module-C9cKdumu.js → rich-content-rac.module-BnJHWZW_.js} +1 -1
- package/dist/component/{rich-text-field-rac-DTSRvaTK.js → rich-text-field-rac-CYRioe4F.js} +3 -3
- package/dist/component/{rich-text-rac-Blk3neHN.js → rich-text-rac-BVFGMc9w.js} +1 -1
- package/dist/component/{service-dropdown-rac-C9P5IWrV.js → service-dropdown-rac-BDrEc7Zb.js} +20 -20
- package/dist/component/{services-multi-choice-rac-Cnhwy1a9.js → services-multi-choice-rac-RauhMlXM.js} +7 -7
- package/dist/component/{signature-rac-Benar-ci.js → signature-rac-eZQzl11r.js} +41 -41
- package/dist/component/submit-button-rac-DeGY6ugG.js +142 -0
- package/dist/component/{tags-field-rac-wA_0ZinI.js → tags-field-rac-CZ5TvoyT.js} +72 -72
- package/dist/component/{tags-rac-BcVGekA6.js → tags-rac-DXznht8H.js} +1 -1
- package/dist/component/{text-area-field-rac-VpuojNac.js → text-area-field-rac-B5qohjUV.js} +25 -25
- package/dist/component/{text-area-rac-DDvi8u5M.js → text-area-rac-B1KlbayF.js} +1 -1
- package/dist/component/{text-input-field-rac-C6LohBtn.js → text-input-field-rac-CHQcR47F.js} +3 -3
- package/dist/component/{text-input-headless-5yKhWpLD.js → text-input-headless-CRm8bo7P.js} +10 -10
- package/dist/component/{text-input-rac-C8hsNUp6.js → text-input-rac-BfQViUSp.js} +1 -1
- package/dist/component/{time-input-rac-fOT-pjju.js → time-input-rac-BhhojlSG.js} +19 -19
- package/dist/component/{url-input-field-rac-DxR6Hymf.js → url-input-field-rac-cvzCBb8W.js} +19 -19
- package/dist/component/{url-input-rac-B928R10o.js → url-input-rac-C_sH1Z5C.js} +1 -1
- package/dist/component/use-element-state-class-name-CeL6xkSj.js +22 -0
- package/dist/component/{use-service-options-base-UyJmT2P6.js → use-service-options-base-_vksQyAH.js} +5 -5
- package/dist/component/{use-text-input-class-name-Qk2v8a6-.js → use-text-input-class-name-DLHJl2sm.js} +5 -5
- package/dist/form.d.ts +105 -2
- package/package.json +6 -3
- package/dist/component/submit-button-rac-BDJQsZC3.js +0 -116
- package/dist/component/use-element-state-class-name-CBjBYCW5.js +0 -20
|
@@ -2,17 +2,17 @@ import s, { useRef as W, useCallback as I, useState as K, useEffect as Q, useMem
|
|
|
2
2
|
import { RicosViewer as Re } from "@wix/ricos/viewer";
|
|
3
3
|
import v from "classnames";
|
|
4
4
|
import { useHover as ve, useFocusRing as xe, mergeProps as Se } from "react-aria";
|
|
5
|
-
import { RadioGroup as Fe, Button as fe, TextField as Ae, Input as
|
|
5
|
+
import { RadioGroup as Fe, Button as fe, TextField as Ae, Input as Pe, RadioField as _e, RadioButton as Ne } from "react-aria-components";
|
|
6
6
|
import he from "signature_pad";
|
|
7
|
-
import { z as
|
|
7
|
+
import { z as Ue, af as Oe, ab as Be, ar as ge, E as ce, e as G, aj as A, ag as H, al as Ee, at as Me } from "./form-Dt3W_RUv.js";
|
|
8
8
|
import { f as T, a as F } from "./find-child-C60k4CxG.js";
|
|
9
|
-
import { D as We, E as He } from "./field-error-headless-
|
|
10
|
-
import { L as Ye } from "./field-label-headless-
|
|
9
|
+
import { D as We, E as He } from "./field-error-headless-D4iJBghM.js";
|
|
10
|
+
import { L as Ye } from "./field-label-headless-CzJhv-wS.js";
|
|
11
11
|
import { D as ke } from "./data-hooks-Dkw1pbRj.js";
|
|
12
12
|
import { E as $e } from "./error-icon-hZxQ6DEy.js";
|
|
13
13
|
import { s as z } from "./field-rac.module-D06m9T9x.js";
|
|
14
|
-
import { y as ue,
|
|
15
|
-
const Ge = typeof s.useId == "function" ? s.useId : () => W(
|
|
14
|
+
import { y as ue, P as ze, x as B, a3 as Ve, o as Ze, i as Xe } from "./form-element-classes-BhFk9Jrj.js";
|
|
15
|
+
const Ge = typeof s.useId == "function" ? s.useId : () => W(Ue()).current;
|
|
16
16
|
var w = /* @__PURE__ */ (function(e) {
|
|
17
17
|
return e.TEXT = "text/plain", e.POINTS = "points/json", e;
|
|
18
18
|
})({}), b = /* @__PURE__ */ (function(e) {
|
|
@@ -21,7 +21,7 @@ var w = /* @__PURE__ */ (function(e) {
|
|
|
21
21
|
return e.DRAW = "draw", e.TYPE = "type", e.IMAGE = "image", e.UPLOAD = "upload", e;
|
|
22
22
|
})({});
|
|
23
23
|
const qe = (e) => {
|
|
24
|
-
const { actions: t, formId: a } =
|
|
24
|
+
const { actions: t, formId: a } = Oe(), n = t == null ? void 0 : t.uploadFile;
|
|
25
25
|
return I(async (r) => {
|
|
26
26
|
if (!n)
|
|
27
27
|
throw new Error("No uploadFile action");
|
|
@@ -375,15 +375,15 @@ const dt = (e) => {
|
|
|
375
375
|
}), o && F(d, {
|
|
376
376
|
handleClear: i
|
|
377
377
|
}));
|
|
378
|
-
},
|
|
378
|
+
}, P = ({ children: e, className: t, ...a }) => {
|
|
379
379
|
const { signatureMode: n, setSignatureMode: r, uploadEnabled: o } = a, { disabled: i } = A(), { labelId: l, inputId: c } = H(), d = I((h) => {
|
|
380
380
|
r(h);
|
|
381
381
|
}, [
|
|
382
382
|
r
|
|
383
383
|
]), u = {
|
|
384
|
-
[b.DRAW]: T(e,
|
|
385
|
-
[b.TYPE]: T(e,
|
|
386
|
-
[b.UPLOAD]: o ? T(e,
|
|
384
|
+
[b.DRAW]: T(e, P.Draw),
|
|
385
|
+
[b.TYPE]: T(e, P.Type),
|
|
386
|
+
[b.UPLOAD]: o ? T(e, P.Upload) : null
|
|
387
387
|
}, f = u[n], m = mt(f) ? f.props.description : void 0;
|
|
388
388
|
return /* @__PURE__ */ s.createElement(s.Fragment, null, /* @__PURE__ */ s.createElement("div", {
|
|
389
389
|
role: "status",
|
|
@@ -404,7 +404,7 @@ const dt = (e) => {
|
|
|
404
404
|
"data-hook": ke.SIGNATURE_FIELD_MODE_SELECT,
|
|
405
405
|
className: t
|
|
406
406
|
}, u[b.DRAW], u[b.TYPE], u[b.UPLOAD]));
|
|
407
|
-
}, mt = (e) => /* @__PURE__ */ we(e), ne = ({ mode: e, children: t, className: a, "aria-label": n }) => /* @__PURE__ */ s.createElement(
|
|
407
|
+
}, mt = (e) => /* @__PURE__ */ we(e), ne = ({ mode: e, children: t, className: a, "aria-label": n }) => /* @__PURE__ */ s.createElement(_e, {
|
|
408
408
|
value: e,
|
|
409
409
|
"aria-label": n
|
|
410
410
|
}, /* @__PURE__ */ s.createElement(Ne, {
|
|
@@ -429,8 +429,8 @@ const dt = (e) => {
|
|
|
429
429
|
"data-hook": `clear-${i}`,
|
|
430
430
|
className: t
|
|
431
431
|
}, e);
|
|
432
|
-
},
|
|
433
|
-
const { signatureView: n, signatureValueForView: r, handleChange: o, handleBeforeChange: i } = a, { disabled: l, readOnly: c, onBlur: d, onFocus: u, hasError: f } = A(), m = T(e,
|
|
432
|
+
}, _ = ({ children: e, className: t, ...a }) => {
|
|
433
|
+
const { signatureView: n, signatureValueForView: r, handleChange: o, handleBeforeChange: i } = a, { disabled: l, readOnly: c, onBlur: d, onFocus: u, hasError: f } = A(), m = T(e, _.Canvas), h = T(e, _.Type), E = T(e, _.Upload);
|
|
434
434
|
return /* @__PURE__ */ s.createElement("div", {
|
|
435
435
|
className: t,
|
|
436
436
|
"data-hook": "signature-input",
|
|
@@ -463,7 +463,7 @@ const dt = (e) => {
|
|
|
463
463
|
onFocus: u
|
|
464
464
|
}));
|
|
465
465
|
}, Et = ({ className: e, emptyLabel: t, signedLabel: a, ...n }) => {
|
|
466
|
-
const { value: r, onChange: o, onBeforeChange: i, disabled: l, readOnly: c, onBlur: d, onFocus: u } = n, { id: f } = A(), { inputId: m, ariaDescribedBy: h } = H(), E = te(), p = W(), L = W(), y = W(null), x = r == null ? void 0 : r.url, [
|
|
466
|
+
const { value: r, onChange: o, onBeforeChange: i, disabled: l, readOnly: c, onBlur: d, onFocus: u } = n, { id: f } = A(), { inputId: m, ariaDescribedBy: h } = H(), E = te(), p = W(), L = W(), y = W(null), x = r == null ? void 0 : r.url, [U, Y] = K(!1);
|
|
467
467
|
Ee(() => {
|
|
468
468
|
var D;
|
|
469
469
|
(D = L.current) == null || D.focus();
|
|
@@ -475,14 +475,14 @@ const dt = (e) => {
|
|
|
475
475
|
maxWidth: 3,
|
|
476
476
|
velocityFilterWeight: 0.2
|
|
477
477
|
}), []), oe = I(() => {
|
|
478
|
-
var
|
|
479
|
-
if ((
|
|
478
|
+
var O, k, $;
|
|
479
|
+
if ((O = p.current) != null && O.isEmpty())
|
|
480
480
|
return "";
|
|
481
481
|
const D = (k = p.current) == null ? void 0 : k.toData();
|
|
482
482
|
return D ? et(D) : (($ = p.current) == null ? void 0 : $.toDataURL()) ?? "";
|
|
483
483
|
}, []), q = I(() => {
|
|
484
|
-
var
|
|
485
|
-
const D = (
|
|
484
|
+
var O;
|
|
485
|
+
const D = (O = p.current) == null ? void 0 : O.isEmpty();
|
|
486
486
|
Y(!D), o(ee(oe()));
|
|
487
487
|
}, [
|
|
488
488
|
oe,
|
|
@@ -530,7 +530,7 @@ const dt = (e) => {
|
|
|
530
530
|
onFocus: u,
|
|
531
531
|
onBlur: d,
|
|
532
532
|
role: "img",
|
|
533
|
-
"aria-label":
|
|
533
|
+
"aria-label": U ? a : t,
|
|
534
534
|
"aria-describedby": h
|
|
535
535
|
}));
|
|
536
536
|
}, ae = ({ children: e, className: t, ...a }) => {
|
|
@@ -551,7 +551,7 @@ const dt = (e) => {
|
|
|
551
551
|
n,
|
|
552
552
|
h
|
|
553
553
|
]);
|
|
554
|
-
const
|
|
554
|
+
const U = I((R) => {
|
|
555
555
|
o == null || o(), R.trim() ? r(ee(Ce({
|
|
556
556
|
data: R,
|
|
557
557
|
mimeType: w.TEXT
|
|
@@ -563,7 +563,7 @@ const dt = (e) => {
|
|
|
563
563
|
return /* @__PURE__ */ s.createElement(Ae, {
|
|
564
564
|
"aria-labelledby": p,
|
|
565
565
|
value: x,
|
|
566
|
-
onChange:
|
|
566
|
+
onChange: U,
|
|
567
567
|
onBlur: c,
|
|
568
568
|
onFocus: d,
|
|
569
569
|
isDisabled: i,
|
|
@@ -580,7 +580,7 @@ const dt = (e) => {
|
|
|
580
580
|
})));
|
|
581
581
|
}, Lt = ({ className: e, placeholder: t, ...a }) => {
|
|
582
582
|
const { inputId: n, ariaDescribedBy: r } = a;
|
|
583
|
-
return /* @__PURE__ */ s.createElement(
|
|
583
|
+
return /* @__PURE__ */ s.createElement(Pe, {
|
|
584
584
|
id: n,
|
|
585
585
|
"data-hook": "signature-text",
|
|
586
586
|
"aria-describedby": r,
|
|
@@ -596,10 +596,10 @@ const dt = (e) => {
|
|
|
596
596
|
o(null);
|
|
597
597
|
return;
|
|
598
598
|
}
|
|
599
|
-
const x = y[0],
|
|
600
|
-
|
|
599
|
+
const x = y[0], U = new FileReader();
|
|
600
|
+
U.onload = function() {
|
|
601
601
|
o(ee(this.result, x.name));
|
|
602
|
-
},
|
|
602
|
+
}, U.readAsDataURL(x);
|
|
603
603
|
}, [
|
|
604
604
|
o
|
|
605
605
|
]), p = r && dt(r);
|
|
@@ -657,15 +657,15 @@ g.Input = Z;
|
|
|
657
657
|
g.Description = We;
|
|
658
658
|
g.Error = He;
|
|
659
659
|
Z.Header = X;
|
|
660
|
-
Z.Value =
|
|
661
|
-
X.Tabs =
|
|
660
|
+
Z.Value = _;
|
|
661
|
+
X.Tabs = P;
|
|
662
662
|
X.Clear = gt;
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
663
|
+
P.Draw = pt;
|
|
664
|
+
P.Type = ft;
|
|
665
|
+
P.Upload = ht;
|
|
666
|
+
_.Canvas = Et;
|
|
667
|
+
_.Type = ae;
|
|
668
|
+
_.Upload = re;
|
|
669
669
|
ae.Value = Lt;
|
|
670
670
|
re.Button = yt;
|
|
671
671
|
const Tt = () => {
|
|
@@ -724,20 +724,20 @@ const Tt = () => {
|
|
|
724
724
|
}, /* @__PURE__ */ s.createElement("path", {
|
|
725
725
|
fillRule: "evenodd",
|
|
726
726
|
d: "M12,4 L12,5 L8,5 L8,16 L7,16 L7,5 L3,5 L3,4 L12,4 Z M18,8 L18,9 L15,9 L15,16 L14,16 L14,9 L11,9 L11,8 L18,8 Z"
|
|
727
|
-
})), Rt = "_header_15ti0_1", vt = "_tabs_15ti0_8", xt = "_tab_15ti0_8", St = "_tabIcon_15ti0_74", Ft = "_clear_15ti0_81", At = "_value_15ti0_113",
|
|
727
|
+
})), Rt = "_header_15ti0_1", vt = "_tabs_15ti0_8", xt = "_tab_15ti0_8", St = "_tabIcon_15ti0_74", Ft = "_clear_15ti0_81", At = "_value_15ti0_113", Pt = "_box_15ti0_118", _t = "_uploadBox_15ti0_119", Nt = "_typeInput_15ti0_230", C = {
|
|
728
728
|
header: Rt,
|
|
729
729
|
tabs: vt,
|
|
730
730
|
tab: xt,
|
|
731
731
|
tabIcon: St,
|
|
732
732
|
clear: Ft,
|
|
733
733
|
value: At,
|
|
734
|
-
box:
|
|
735
|
-
uploadBox:
|
|
734
|
+
box: Pt,
|
|
735
|
+
uploadBox: _t,
|
|
736
736
|
typeInput: Nt
|
|
737
|
-
},
|
|
737
|
+
}, Ut = ({ content: e, locale: t }) => /* @__PURE__ */ s.createElement(Re, {
|
|
738
738
|
content: e,
|
|
739
739
|
locale: t
|
|
740
|
-
}),
|
|
740
|
+
}), Ot = () => {
|
|
741
741
|
const e = Tt();
|
|
742
742
|
return /* @__PURE__ */ s.createElement(g, null, /* @__PURE__ */ s.createElement(g.Label, {
|
|
743
743
|
className: v(ue, z.label)
|
|
@@ -788,8 +788,8 @@ const Tt = () => {
|
|
|
788
788
|
className: v(Ze, z.error)
|
|
789
789
|
}, /* @__PURE__ */ s.createElement($e, null), /* @__PURE__ */ s.createElement(g.Error.Text, null)), /* @__PURE__ */ s.createElement(g.Description, {
|
|
790
790
|
className: v(Xe, z.description)
|
|
791
|
-
},
|
|
792
|
-
}, Jt = () => /* @__PURE__ */ s.createElement(
|
|
791
|
+
}, Ut));
|
|
792
|
+
}, Jt = () => /* @__PURE__ */ s.createElement(Ot, null);
|
|
793
793
|
export {
|
|
794
794
|
Jt as SignatureRAC
|
|
795
795
|
};
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
import t, { useRef as y, useCallback as f } from "react";
|
|
2
|
+
import P from "@wix/editor-react-components/AnimatedIcon";
|
|
3
|
+
import b from "classnames";
|
|
4
|
+
import { aj as B, ad as h } from "./form-Dt3W_RUv.js";
|
|
5
|
+
import { ProgressBar as A, Button as N } from "react-aria-components";
|
|
6
|
+
import { f as c } from "./find-child-C60k4CxG.js";
|
|
7
|
+
import { a5 as I, a4 as O, a7 as w, a9 as F, A as R, a8 as k } from "./form-element-classes-BhFk9Jrj.js";
|
|
8
|
+
function M(n) {
|
|
9
|
+
const s = "calc(50% - 2px)";
|
|
10
|
+
return /* @__PURE__ */ t.createElement(A, {
|
|
11
|
+
...n,
|
|
12
|
+
isIndeterminate: !0
|
|
13
|
+
}, ({ percentage: e, isIndeterminate: r }) => /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("svg", {
|
|
14
|
+
fill: "none",
|
|
15
|
+
width: "100%",
|
|
16
|
+
height: "100%",
|
|
17
|
+
viewBox: "0 0 32 32"
|
|
18
|
+
}, /* @__PURE__ */ t.createElement("circle", {
|
|
19
|
+
cx: "50%",
|
|
20
|
+
cy: "50%",
|
|
21
|
+
r: s
|
|
22
|
+
}), /* @__PURE__ */ t.createElement("circle", {
|
|
23
|
+
cx: "50%",
|
|
24
|
+
cy: "50%",
|
|
25
|
+
r: s,
|
|
26
|
+
// Normalize the path length to 100 so we can easily set stroke-dasharray/-offset to a percentage.
|
|
27
|
+
pathLength: "100",
|
|
28
|
+
strokeDasharray: r || e == null ? "25 100" : "100 100",
|
|
29
|
+
strokeDashoffset: r || e == null ? 0 : 100 - e,
|
|
30
|
+
strokeLinecap: "round"
|
|
31
|
+
}, r && /* @__PURE__ */ t.createElement("animateTransform", {
|
|
32
|
+
attributeName: "transform",
|
|
33
|
+
type: "rotate",
|
|
34
|
+
// Rotate around the circle's own center (viewBox is 32x32), not the SVG origin.
|
|
35
|
+
values: "0 16 16;360 16 16",
|
|
36
|
+
dur: "0.75s",
|
|
37
|
+
repeatCount: "indefinite"
|
|
38
|
+
})))));
|
|
39
|
+
}
|
|
40
|
+
const u = ({ children: n }) => {
|
|
41
|
+
const { id: o, FieldLayout: s } = B(), e = c(n, u.SubmitButton);
|
|
42
|
+
return /* @__PURE__ */ t.createElement(s, {
|
|
43
|
+
fieldId: o,
|
|
44
|
+
renderLabel: () => null,
|
|
45
|
+
renderInput: () => /* @__PURE__ */ t.createElement(t.Fragment, null, e),
|
|
46
|
+
renderDescription: () => null
|
|
47
|
+
});
|
|
48
|
+
}, _ = ({ className: n, children: o }) => {
|
|
49
|
+
const s = c(o, C), e = c(o, x), r = c(o, i);
|
|
50
|
+
return /* @__PURE__ */ t.createElement("div", {
|
|
51
|
+
className: n
|
|
52
|
+
}, s, e, r);
|
|
53
|
+
}, C = ({ className: n }) => {
|
|
54
|
+
const { showPreviousButton: o, onPreviousClick: s, previousText: e } = B();
|
|
55
|
+
return o ? /* @__PURE__ */ t.createElement(N, {
|
|
56
|
+
className: n,
|
|
57
|
+
onPress: s
|
|
58
|
+
}, e) : null;
|
|
59
|
+
}, x = ({ className: n }) => {
|
|
60
|
+
const { showNextButton: o, onNextClick: s, nextText: e } = B();
|
|
61
|
+
return o ? /* @__PURE__ */ t.createElement(N, {
|
|
62
|
+
className: n,
|
|
63
|
+
onPress: s
|
|
64
|
+
}, e) : null;
|
|
65
|
+
}, i = ({ className: n, onHoverStart: o, onHoverEnd: s, children: e }) => {
|
|
66
|
+
const { showSubmitButton: r, onSubmitClick: S, submitText: p, isDisabled: E, isInProgress: m, isSubmitting: v } = B();
|
|
67
|
+
if (!r)
|
|
68
|
+
return null;
|
|
69
|
+
const l = c(e, i.Label), L = c(e, i.Icon), g = c(e, i.Loader), d = v || m;
|
|
70
|
+
return /* @__PURE__ */ t.createElement(N, {
|
|
71
|
+
className: n,
|
|
72
|
+
"aria-label": p,
|
|
73
|
+
onPress: d ? void 0 : S,
|
|
74
|
+
onHoverStart: o,
|
|
75
|
+
onHoverEnd: s,
|
|
76
|
+
isDisabled: E && !d,
|
|
77
|
+
"aria-disabled": d || void 0,
|
|
78
|
+
"data-in-progress": m
|
|
79
|
+
}, m && g ? g : /* @__PURE__ */ t.createElement(t.Fragment, null, l ?? /* @__PURE__ */ t.createElement(T, null), L));
|
|
80
|
+
}, T = ({ className: n }) => {
|
|
81
|
+
const { submitText: o } = B();
|
|
82
|
+
return /* @__PURE__ */ t.createElement("span", {
|
|
83
|
+
className: n
|
|
84
|
+
}, o);
|
|
85
|
+
}, U = ({ children: n }) => /* @__PURE__ */ t.createElement(t.Fragment, null, n), D = ({ className: n }) => /* @__PURE__ */ t.createElement("span", {
|
|
86
|
+
className: n
|
|
87
|
+
}, /* @__PURE__ */ t.createElement(M, null));
|
|
88
|
+
i.Label = T;
|
|
89
|
+
i.Icon = U;
|
|
90
|
+
i.Loader = D;
|
|
91
|
+
_.PreviousButton = C;
|
|
92
|
+
_.NextButton = x;
|
|
93
|
+
_.SubmitButton = i;
|
|
94
|
+
u.SubmitButton = _;
|
|
95
|
+
const H = "_navigationContainer_nvvyn_1", W = "_rowSpacing_nvvyn_6", V = "_navigationButton_nvvyn_10", j = "_nextButton_nvvyn_24", X = "_previousButton_nvvyn_47", $ = "_button_nvvyn_90", q = "_buttonNoSteps_nvvyn_133", z = "_buttonWithSteps_nvvyn_137", G = "_progress_nvvyn_165", a = {
|
|
96
|
+
navigationContainer: H,
|
|
97
|
+
rowSpacing: W,
|
|
98
|
+
navigationButton: V,
|
|
99
|
+
nextButton: j,
|
|
100
|
+
previousButton: X,
|
|
101
|
+
button: $,
|
|
102
|
+
buttonNoSteps: q,
|
|
103
|
+
buttonWithSteps: z,
|
|
104
|
+
progress: G
|
|
105
|
+
}, J = () => {
|
|
106
|
+
var m, v;
|
|
107
|
+
const { hasSteps: n, showPreviousButton: o } = B(), { wix: s, className: e, ...r } = ((v = (m = h().submitButton) == null ? void 0 : m.elementProps) == null ? void 0 : v.icon) ?? {}, S = y(null), p = f(() => {
|
|
108
|
+
var l;
|
|
109
|
+
return (l = S.current) == null ? void 0 : l.runAnimationForward();
|
|
110
|
+
}, []), E = f(() => {
|
|
111
|
+
var l;
|
|
112
|
+
return (l = S.current) == null ? void 0 : l.runAnimationBackward();
|
|
113
|
+
}, []);
|
|
114
|
+
return /* @__PURE__ */ t.createElement(u, null, /* @__PURE__ */ t.createElement(u.SubmitButton, {
|
|
115
|
+
className: b({
|
|
116
|
+
[a.navigationContainer]: n,
|
|
117
|
+
[a.rowSpacing]: o
|
|
118
|
+
})
|
|
119
|
+
}, /* @__PURE__ */ t.createElement(u.SubmitButton.PreviousButton, {
|
|
120
|
+
className: b(I, a.navigationButton, a.previousButton)
|
|
121
|
+
}), /* @__PURE__ */ t.createElement(u.SubmitButton.NextButton, {
|
|
122
|
+
className: b(O, a.navigationButton, a.nextButton)
|
|
123
|
+
}), /* @__PURE__ */ t.createElement(u.SubmitButton.SubmitButton, {
|
|
124
|
+
className: b(w, a.button, {
|
|
125
|
+
[a.buttonNoSteps]: !n,
|
|
126
|
+
[a.buttonWithSteps]: n
|
|
127
|
+
}),
|
|
128
|
+
onHoverStart: p,
|
|
129
|
+
onHoverEnd: E
|
|
130
|
+
}, /* @__PURE__ */ t.createElement(u.SubmitButton.SubmitButton.Label, {
|
|
131
|
+
className: F
|
|
132
|
+
}), /* @__PURE__ */ t.createElement(u.SubmitButton.SubmitButton.Icon, null, r.svg ? /* @__PURE__ */ t.createElement(P, {
|
|
133
|
+
...r,
|
|
134
|
+
ref: S,
|
|
135
|
+
className: b(R, k, e)
|
|
136
|
+
}) : null), /* @__PURE__ */ t.createElement(u.SubmitButton.SubmitButton.Loader, {
|
|
137
|
+
className: a.progress
|
|
138
|
+
}))));
|
|
139
|
+
}, ot = () => /* @__PURE__ */ t.createElement(J, null);
|
|
140
|
+
export {
|
|
141
|
+
ot as SubmitButtonRAC
|
|
142
|
+
};
|
|
@@ -1,38 +1,38 @@
|
|
|
1
|
-
import { RicosViewer as
|
|
1
|
+
import { RicosViewer as j } from "@wix/ricos/viewer";
|
|
2
2
|
import S from "classnames";
|
|
3
|
-
import e, { useMemo as
|
|
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 {
|
|
5
|
+
import { aj as N, ag as Z, at as v, ab as ee, al as te } from "./form-Dt3W_RUv.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-D4iJBghM.js";
|
|
8
|
+
import { L as P } from "./field-label-headless-CzJhv-wS.js";
|
|
9
9
|
import { F as oe } from "./fieldset-headless-CD3fds9J.js";
|
|
10
10
|
import { N as D } 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 y } from "./field-rac.module-D06m9T9x.js";
|
|
13
|
-
import { y as
|
|
13
|
+
import { y as ne, P as se, $ as re, o as le, i as ie, a0 as ce } from "./form-element-classes-BhFk9Jrj.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-
|
|
17
|
-
const
|
|
15
|
+
import { u as de } from "./use-element-state-class-name-CeL6xkSj.js";
|
|
16
|
+
import { u as me } from "./use-text-input-class-name-DLHJl2sm.js";
|
|
17
|
+
const R = "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), H = ({ className: o, ...t }) => {
|
|
21
|
+
const { label: n } = t;
|
|
22
22
|
return /* @__PURE__ */ e.createElement("span", {
|
|
23
23
|
className: o
|
|
24
|
-
},
|
|
24
|
+
}, n);
|
|
25
25
|
}, W = ({ className: o }) => {
|
|
26
|
-
const { value: t, onChange:
|
|
26
|
+
const { value: t, onChange: n, addOtherLabel: s, addOtherPlaceholder: c, otherInputCharacterLimit: r, disabled: u, readOnly: b, hasError: d } = N(), { t: m } = v(), l = s || m("add-other.default-other-option-label") || R, 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
|
-
const C = k((
|
|
34
|
-
|
|
35
|
-
const I = (t || []).filter((
|
|
33
|
+
const C = k((E) => {
|
|
34
|
+
L(E);
|
|
35
|
+
const I = (t || []).filter((O) => !O.startsWith(`${l}:`) && O !== l), F = E ? `${l}: ${E}` : l;
|
|
36
36
|
h.current([
|
|
37
37
|
...I,
|
|
38
38
|
F
|
|
@@ -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,29 +50,29 @@ 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
|
-
var
|
|
62
|
-
u && ((
|
|
61
|
+
var O;
|
|
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, H), 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,
|
|
72
72
|
s
|
|
73
|
-
]), F = k((
|
|
74
|
-
const G = he(l || []), A =
|
|
75
|
-
m(
|
|
73
|
+
]), F = k((O) => {
|
|
74
|
+
const G = he(l || []), A = E.filter((U) => G.includes(U));
|
|
75
|
+
m(O ? [
|
|
76
76
|
...A,
|
|
77
77
|
c
|
|
78
78
|
] : A);
|
|
@@ -80,18 +80,18 @@ const g = "Other", pe = (o, t) => {
|
|
|
80
80
|
c,
|
|
81
81
|
m,
|
|
82
82
|
l,
|
|
83
|
-
|
|
83
|
+
E
|
|
84
84
|
]);
|
|
85
85
|
return /* @__PURE__ */ e.createElement(X, {
|
|
86
86
|
inputRef: h,
|
|
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
|
-
"data-hook": `tags-${r ?
|
|
94
|
+
"data-hook": `tags-${r ? R : s}`
|
|
95
95
|
}, x(C, {
|
|
96
96
|
value: s,
|
|
97
97
|
label: c,
|
|
@@ -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 = D.FREE_FLOW } = N(), { isMobile: u } = ee(), { t: b } = v(), d = u && r !== D.FREE_FLOW ? D.ONE : r, m = c || b("add-other.default-other-option-label") || R, 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 ? R : 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
130
|
}, q = ({ children: o, className: t }) => {
|
|
131
|
-
const { addOther:
|
|
132
|
-
|
|
131
|
+
const { addOther: n, addOtherLabel: s, hasError: c, readOnly: r, value: u } = N(), { t: b } = v(), d = s || b("add-other.default-other-option-label") || R, 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,68 +139,68 @@ 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, P), 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,
|
|
160
160
|
isReadOnly: b,
|
|
161
161
|
isRequired: r,
|
|
162
162
|
isInvalid: d
|
|
163
|
-
},
|
|
163
|
+
}, E)),
|
|
164
164
|
renderDescription: () => /* @__PURE__ */ e.createElement(e.Fragment, null, F, I)
|
|
165
165
|
});
|
|
166
166
|
};
|
|
167
167
|
V.Option = T;
|
|
168
|
-
T.Label =
|
|
169
|
-
i.Label =
|
|
168
|
+
T.Label = H;
|
|
169
|
+
i.Label = P;
|
|
170
170
|
i.Control = q;
|
|
171
171
|
i.Options = V;
|
|
172
172
|
i.OtherInput = W;
|
|
173
173
|
i.Description = $;
|
|
174
174
|
i.Error = B;
|
|
175
|
-
const
|
|
176
|
-
control:
|
|
177
|
-
options:
|
|
175
|
+
const Ee = "_control_7oh59_1", Oe = "_options_7oh59_7", be = "_option_7oh59_7", fe = "_optionHover_7oh59_72", Le = "_optionSelected_7oh59_72", g = {
|
|
176
|
+
control: Ee,
|
|
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: g.option,
|
|
186
|
+
selected: g.optionSelected,
|
|
187
|
+
hover: g.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: S(
|
|
194
|
+
className: S(ne, y.label)
|
|
195
195
|
}, /* @__PURE__ */ e.createElement(i.Label.Required, {
|
|
196
196
|
className: S(se, y.requiredMark)
|
|
197
197
|
})), /* @__PURE__ */ e.createElement(i.Control, {
|
|
198
|
-
className:
|
|
198
|
+
className: g.control
|
|
199
199
|
}, /* @__PURE__ */ e.createElement(i.Options, {
|
|
200
|
-
className: S(re,
|
|
200
|
+
className: S(re, g.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, {
|
|
@@ -209,9 +209,9 @@ const Oe = "_control_7oh59_1", Ee = "_options_7oh59_7", be = "_option_7oh59_7",
|
|
|
209
209
|
className: t
|
|
210
210
|
})), /* @__PURE__ */ e.createElement(i.Error, {
|
|
211
211
|
className: S(le, y.error)
|
|
212
|
-
}, /* @__PURE__ */ e.createElement(
|
|
212
|
+
}, /* @__PURE__ */ e.createElement(ae, null), /* @__PURE__ */ e.createElement(i.Error.Text, null)), /* @__PURE__ */ e.createElement(i.Description, {
|
|
213
213
|
className: S(ie, y.description)
|
|
214
|
-
},
|
|
214
|
+
}, _e));
|
|
215
215
|
};
|
|
216
216
|
export {
|
|
217
217
|
$e as T
|