@wix/form-elements 1.84.0 → 1.85.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-CCaJ6P5r.js} +78 -78
- package/dist/component/{bookings-address-rac-CL7Bh1yH.js → bookings-address-rac-DEt9SGPG.js} +1 -1
- package/dist/component/{bookings-email-rac-Bw9tj_tv.js → bookings-email-rac-BydOvOUZ.js} +1 -1
- package/dist/component/{bookings-first-name-rac-BOOu_AXM.js → bookings-first-name-rac-BoQki0Pb.js} +1 -1
- package/dist/component/{bookings-header-rac-3kBei7GF.js → bookings-header-rac-DK-EcXrk.js} +1 -1
- package/dist/component/{bookings-last-name-rac-CUKbu22q.js → bookings-last-name-rac-BuGIyd43.js} +1 -1
- package/dist/component/{bookings-login-bar-rac-CLrUhdX2.js → bookings-login-bar-rac-Cr500ehb.js} +6 -6
- package/dist/component/{bookings-phone-rac-7DViellg.js → bookings-phone-rac-Bq2zdMxo.js} +1 -1
- package/dist/component/{bookings-rich-text-rac-CIUZX--G.js → bookings-rich-text-rac-DRmfusX9.js} +1 -1
- package/dist/component/{checkbox-field-rac-C_jth3RK.js → checkbox-field-rac-b9mcZlMP.js} +5 -5
- package/dist/component/{checkbox-group-field-headless-D-c9Kyj8.js → checkbox-group-field-headless-BSNhdCfs.js} +30 -30
- package/dist/component/{checkbox-group-field-rac-MgGUuYII.js → checkbox-group-field-rac-BObfui8r.js} +6 -6
- package/dist/component/{checkbox-group-rac-rr1mN2EJ.js → checkbox-group-rac-CBNMgBHU.js} +1 -1
- package/dist/component/{checkbox-rac-CRsLQKhN.js → checkbox-rac-DXh-i6Ot.js} +1 -1
- package/dist/component/{contacts-address-rac-BFlNbQKh.js → contacts-address-rac-BDQLFakc.js} +1 -1
- package/dist/component/{contacts-birthdate-rac-D7Ww3iAz.js → contacts-birthdate-rac-BUMVVVfb.js} +1 -1
- package/dist/component/{contacts-company-rac-DLl4nqH-.js → contacts-company-rac-CidGcaA3.js} +1 -1
- package/dist/component/{contacts-email-rac-K8fCs8qS.js → contacts-email-rac-GePAhKDQ.js} +1 -1
- package/dist/component/{contacts-first-name-rac-BOTxHl3m.js → contacts-first-name-rac-kw5sIBEE.js} +1 -1
- package/dist/component/{contacts-last-name-rac-bFnG-7Hm.js → contacts-last-name-rac-DzoZKs1n.js} +1 -1
- package/dist/component/{contacts-phone-rac-B4teqDIV.js → contacts-phone-rac-CxVW4Zp0.js} +1 -1
- package/dist/component/{contacts-position-rac-CnWoXO5h.js → contacts-position-rac-CXFxlSty.js} +1 -1
- package/dist/component/{contacts-subscribe-rac-Bco722BU.js → contacts-subscribe-rac-kpRGeELB.js} +2 -2
- package/dist/component/{contacts-tax-id-rac-QQsKhAx3.js → contacts-tax-id-rac-B5qw-rtP.js} +1 -1
- package/dist/component/{date-availability-DMbyb1GZ.js → date-availability-BCDMem-_.js} +1 -1
- package/dist/component/{date-input-field-rac-CVRjO19U.js → date-input-field-rac-BLDZ4_Mw.js} +43 -43
- package/dist/component/{date-input-rac-zi7AQ8Ai.js → date-input-rac-B1WGYKOp.js} +1 -1
- package/dist/component/{date-picker-field-rac-5H10gH9D.js → date-picker-field-rac-BNd8aZ0c.js} +20 -20
- package/dist/component/{date-picker-rac-CxWNDsyJ.js → date-picker-rac-ItWxSngw.js} +1 -1
- package/dist/component/{date-time-input-field-rac-CDa-nyf8.js → date-time-input-field-rac-Ch8z0NRT.js} +5 -5
- package/dist/component/{date-time-input-rac-DglwFYb0.js → date-time-input-rac-FebIovNN.js} +1 -1
- package/dist/component/{dext-checkbox-group-rac-BBB652Uy.js → dext-checkbox-group-rac-BXYHMQ3R.js} +2 -2
- package/dist/component/{dext-checkbox-rac-BVtiGV3w.js → dext-checkbox-rac-C78ScIGY.js} +1 -1
- package/dist/component/{dext-date-picker-rac-Di4x6sI_.js → dext-date-picker-rac-BptT4fhe.js} +1 -1
- package/dist/component/{dext-date-time-input-rac-agWHwUo7.js → dext-date-time-input-rac-RWJ51IjA.js} +1 -1
- package/dist/component/{dext-dropdown-rac-U3FZTA2-.js → dext-dropdown-rac-DZDOtSIG.js} +1 -1
- package/dist/component/{dext-email-rac-CZ9AQw_k.js → dext-email-rac-CJceqZsw.js} +1 -1
- package/dist/component/{dext-number-input-rac-DFr_9ZX5.js → dext-number-input-rac-buSXk49E.js} +1 -1
- package/dist/component/{dext-phone-rac-BYsfNwXn.js → dext-phone-rac-CeHUOWck.js} +1 -1
- package/dist/component/{dext-radio-group-rac-B_jm5YAT.js → dext-radio-group-rac-CNyNSfeP.js} +2 -2
- package/dist/component/{dext-rating-input-rac-CNlhMKt-.js → dext-rating-input-rac-mmdh9tYT.js} +1 -1
- package/dist/component/{dext-tags-rac-y9x8Fg54.js → dext-tags-rac-CqJ4iv-V.js} +2 -2
- package/dist/component/{dext-text-area-rac-BgRxIpn9.js → dext-text-area-rac-P1EzLNDE.js} +1 -1
- package/dist/component/{dext-text-input-rac-CdzgUZ38.js → dext-text-input-rac-Dtz4ZLj7.js} +1 -1
- package/dist/component/{dext-url-input-rac-Cg1TYyNV.js → dext-url-input-rac-DUVbW2yl.js} +1 -1
- package/dist/component/{donation-rac-Deiw7Tl9.js → donation-rac-Nn7z8_to.js} +43 -43
- package/dist/component/{dropdown-field-headless-BKj2rdy9.js → dropdown-field-headless-CT4uSCPR.js} +11 -11
- package/dist/component/{dropdown-field-rac-CIdC2_O3.js → dropdown-field-rac-CUiyFJi_.js} +5 -5
- package/dist/component/{dropdown-rac-CYxaJrXP.js → dropdown-rac-Bs_PVy1q.js} +1 -1
- package/dist/component/{ecom-address-rac-Crr3A_iU.js → ecom-address-rac-BTXwDlMM.js} +1 -1
- package/dist/component/{ecom-subscription-checkbox-rac-DdXAex4c.js → ecom-subscription-checkbox-rac-CGI84A37.js} +3 -3
- package/dist/component/{email-input-field-rac-C516Fm0v.js → email-input-field-rac-DKD7FsQX.js} +54 -54
- package/dist/component/{events-repeater-rac-DL49KaIU.js → events-repeater-rac-B7yIRlyt.js} +30 -30
- package/dist/component/{events-rsvp-rac-B5EvAP8x.js → events-rsvp-rac-C7FOuFmH.js} +3 -3
- package/dist/component/{field-error-headless-D2CJ4Qk7.js → field-error-headless-BHTkMu35.js} +1 -1
- package/dist/component/{field-label-headless-D2-WvVKT.js → field-label-headless-D3DwX65k.js} +7 -7
- package/dist/component/{file-upload-rac-BG3msdbn.js → file-upload-rac-B3n_LYYK.js} +85 -85
- package/dist/component/{fixed-payment-rac-3bI_h_W0.js → fixed-payment-rac-C6jsiS4-.js} +12 -12
- package/dist/component/{form-B3KiRFhB.js → form-BkmOXzqo.js} +2510 -2487
- package/dist/component/{form-element-classes-Ct1UaxuQ.js → form-element-classes-BsXkFtp2.js} +90 -57
- 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-FG9EP9--.js} +5 -5
- package/dist/component/{header-rac-yVYId2B_.js → header-rac-DZZgqFjW.js} +1 -1
- package/dist/component/{image-choice-rac-D1mqJfcn.js → image-choice-rac-CXgE6z_f.js} +42 -42
- package/dist/component/{index-LrdDmlej.js → index-CSwTHDCX.js} +2 -2
- package/dist/component/{index-B0PANcv8.js → index-DKV2sNhD.js} +4 -4
- package/dist/component/{isObjectLike-DH7T0Txd.js → isObjectLike-DYfHbEQ3.js} +1 -1
- package/dist/component/{multiline-address-field-rac-C-gtuNCU.js → multiline-address-field-rac-DnCOKW8F.js} +128 -128
- package/dist/component/{multiline-address-rac-B3ixmNqi.js → multiline-address-rac-BZRlzLZq.js} +1 -1
- package/dist/component/{number-input-field-rac-BNPMYFay.js → number-input-field-rac-BOJNJ50c.js} +30 -30
- package/dist/component/{number-input-rac-BaEBt2uf.js → number-input-rac-D8ZcIPwq.js} +1 -1
- package/dist/component/{password-rac-B0H_ILkt.js → password-rac-T9PR5j2v.js} +19 -19
- package/dist/component/{payment-input-rac-LIk9MP5a.js → payment-input-rac-C9N3LZOZ.js} +17 -17
- package/dist/component/{phone-input-field-rac-CUUAacDK.js → phone-input-field-rac-BxUiCV5Z.js} +40 -40
- package/dist/component/{phone-rac-BYqYOw60.js → phone-rac-BjKFrr86.js} +1 -1
- package/dist/component/{product-list-rac-CvoI6ajr.js → product-list-rac-BG-VK_Hz.js} +41 -41
- package/dist/component/{quiz-radio-group-rac-D0IJGSh0.js → quiz-radio-group-rac-B1x7Yatu.js} +2 -2
- package/dist/component/{radio-button-module-classes-CWfSY9kQ.js → radio-button-module-classes-BXWANbga.js} +7 -7
- package/dist/component/{radio-group-field-rac-DisEhh0b.js → radio-group-field-rac-DmEOydAr.js} +4 -4
- package/dist/component/{radio-group-rac-DrwjFNWh.js → radio-group-rac-DAcU_lkj.js} +1 -1
- package/dist/component/{rating-input-field-rac-BLMQWT7z.js → rating-input-field-rac-Cazqeqzw.js} +16 -16
- package/dist/component/{rating-input-rac-CGJY2HSO.js → rating-input-rac-KJ8FnJTj.js} +1 -1
- package/dist/component/{rich-content-rac.module-C9cKdumu.js → rich-content-rac.module-PZgMV2M7.js} +1 -1
- package/dist/component/{rich-text-field-rac-DTSRvaTK.js → rich-text-field-rac-DNEeY_m8.js} +3 -3
- package/dist/component/{rich-text-rac-Blk3neHN.js → rich-text-rac-g9upYD25.js} +1 -1
- package/dist/component/{service-dropdown-rac-C9P5IWrV.js → service-dropdown-rac-CmmWetDa.js} +20 -20
- package/dist/component/{services-multi-choice-rac-Cnhwy1a9.js → services-multi-choice-rac-D0PJNlq2.js} +7 -7
- package/dist/component/{signature-rac-Benar-ci.js → signature-rac-Q4G3uEhw.js} +41 -41
- package/dist/component/submit-button-rac-DdLPGJ6v.js +141 -0
- package/dist/component/{tags-field-rac-wA_0ZinI.js → tags-field-rac-PZ8Vfmsn.js} +72 -72
- package/dist/component/{tags-rac-BcVGekA6.js → tags-rac-DLjeR5G1.js} +1 -1
- package/dist/component/{text-area-field-rac-VpuojNac.js → text-area-field-rac-BNVK0R0Z.js} +25 -25
- package/dist/component/{text-area-rac-DDvi8u5M.js → text-area-rac-CNOLe3Vx.js} +1 -1
- package/dist/component/{text-input-field-rac-C6LohBtn.js → text-input-field-rac-DjdW6TCf.js} +3 -3
- package/dist/component/{text-input-headless-5yKhWpLD.js → text-input-headless-DFWQwZAN.js} +10 -10
- package/dist/component/{text-input-rac-C8hsNUp6.js → text-input-rac-GXPtQEjT.js} +1 -1
- package/dist/component/{time-input-rac-fOT-pjju.js → time-input-rac-B_g-erqu.js} +19 -19
- package/dist/component/{url-input-field-rac-DxR6Hymf.js → url-input-field-rac-CXWYeQLf.js} +19 -19
- package/dist/component/{url-input-rac-B928R10o.js → url-input-rac-DX-vjyXj.js} +1 -1
- package/dist/component/use-element-state-class-name-lZnP6sE6.js +22 -0
- package/dist/component/{use-service-options-base-UyJmT2P6.js → use-service-options-base-BJE86Rzo.js} +5 -5
- package/dist/component/{use-text-input-class-name-Qk2v8a6-.js → use-text-input-class-name-B-GYaltW.js} +5 -5
- package/dist/form.d.ts +58 -2
- package/package.json +5 -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-BkmOXzqo.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-BHTkMu35.js";
|
|
10
|
+
import { L as Ye } from "./field-label-headless-D3DwX65k.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-BsXkFtp2.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,141 @@
|
|
|
1
|
+
import t, { useRef as O, useCallback as d } from "react";
|
|
2
|
+
import I from "@wix/editor-react-components/AnimatedIcon";
|
|
3
|
+
import B from "classnames";
|
|
4
|
+
import { aj as m, ad as A } from "./form-BkmOXzqo.js";
|
|
5
|
+
import { ProgressBar as h, Button as p } from "react-aria-components";
|
|
6
|
+
import { f as c } from "./find-child-C60k4CxG.js";
|
|
7
|
+
import { a5 as F, a4 as P, a7 as M, a9 as U, A as w, a8 as R, F as v } from "./form-element-classes-BsXkFtp2.js";
|
|
8
|
+
function j(e) {
|
|
9
|
+
const s = "calc(50% - 2px)";
|
|
10
|
+
return /* @__PURE__ */ t.createElement(h, {
|
|
11
|
+
...e,
|
|
12
|
+
isIndeterminate: !0
|
|
13
|
+
}, ({ percentage: n, isIndeterminate: u }) => /* @__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: u || n == null ? "25 100" : "100 100",
|
|
29
|
+
strokeDashoffset: u || n == null ? 0 : 100 - n,
|
|
30
|
+
strokeLinecap: "round"
|
|
31
|
+
}, u && /* @__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 a = ({ children: e }) => {
|
|
41
|
+
const { id: o, FieldLayout: s } = m(), n = c(e, a.SubmitButton);
|
|
42
|
+
return /* @__PURE__ */ t.createElement(s, {
|
|
43
|
+
fieldId: o,
|
|
44
|
+
renderLabel: () => null,
|
|
45
|
+
renderInput: () => /* @__PURE__ */ t.createElement(t.Fragment, null, n),
|
|
46
|
+
renderDescription: () => null
|
|
47
|
+
});
|
|
48
|
+
}, S = ({ className: e, children: o }) => {
|
|
49
|
+
const s = c(o, g), n = c(o, T), u = c(o, i);
|
|
50
|
+
return /* @__PURE__ */ t.createElement("div", {
|
|
51
|
+
className: e
|
|
52
|
+
}, s, n, u);
|
|
53
|
+
}, g = ({ className: e }) => {
|
|
54
|
+
const { showPreviousButton: o, onPreviousClick: s, previousText: n } = m();
|
|
55
|
+
return o ? /* @__PURE__ */ t.createElement(p, {
|
|
56
|
+
className: e,
|
|
57
|
+
onPress: s
|
|
58
|
+
}, n) : null;
|
|
59
|
+
}, T = ({ className: e }) => {
|
|
60
|
+
const { showNextButton: o, onNextClick: s, nextText: n } = m();
|
|
61
|
+
return o ? /* @__PURE__ */ t.createElement(p, {
|
|
62
|
+
className: e,
|
|
63
|
+
onPress: s
|
|
64
|
+
}, n) : null;
|
|
65
|
+
}, i = ({ className: e, onHoverStart: o, onHoverEnd: s, children: n }) => {
|
|
66
|
+
const { showSubmitButton: u, onSubmitClick: _, submitText: l, isDisabled: C, isInProgress: b, isSubmitting: L } = m();
|
|
67
|
+
if (!u)
|
|
68
|
+
return null;
|
|
69
|
+
const x = c(n, i.Label), k = c(n, i.Icon), N = c(n, i.Loader), E = L || b;
|
|
70
|
+
return /* @__PURE__ */ t.createElement(p, {
|
|
71
|
+
className: e,
|
|
72
|
+
"aria-label": l,
|
|
73
|
+
onPress: E ? void 0 : _,
|
|
74
|
+
onHoverStart: o,
|
|
75
|
+
onHoverEnd: s,
|
|
76
|
+
isDisabled: C && !E,
|
|
77
|
+
"aria-disabled": E || void 0,
|
|
78
|
+
"data-in-progress": b
|
|
79
|
+
}, b && N ? N : /* @__PURE__ */ t.createElement(t.Fragment, null, x ?? /* @__PURE__ */ t.createElement(f, null), k));
|
|
80
|
+
}, f = ({ className: e }) => {
|
|
81
|
+
const { submitText: o } = m();
|
|
82
|
+
return /* @__PURE__ */ t.createElement("span", {
|
|
83
|
+
className: e
|
|
84
|
+
}, o);
|
|
85
|
+
}, y = ({ children: e }) => /* @__PURE__ */ t.createElement(t.Fragment, null, e), D = ({ className: e }) => /* @__PURE__ */ t.createElement("span", {
|
|
86
|
+
className: e
|
|
87
|
+
}, /* @__PURE__ */ t.createElement(j, null));
|
|
88
|
+
i.Label = f;
|
|
89
|
+
i.Icon = y;
|
|
90
|
+
i.Loader = D;
|
|
91
|
+
S.PreviousButton = g;
|
|
92
|
+
S.NextButton = T;
|
|
93
|
+
S.SubmitButton = i;
|
|
94
|
+
a.SubmitButton = S;
|
|
95
|
+
const H = "_navigationContainer_17jkm_1", W = "_rowSpacing_17jkm_6", V = "_navigationButton_17jkm_10", K = "_nextButton_17jkm_24", X = "_previousButton_17jkm_47", Y = "_button_17jkm_90", $ = "_buttonNoSteps_17jkm_129", q = "_buttonWithSteps_17jkm_133", z = "_progress_17jkm_161", r = {
|
|
96
|
+
navigationContainer: H,
|
|
97
|
+
rowSpacing: W,
|
|
98
|
+
navigationButton: V,
|
|
99
|
+
nextButton: K,
|
|
100
|
+
previousButton: X,
|
|
101
|
+
button: Y,
|
|
102
|
+
buttonNoSteps: $,
|
|
103
|
+
buttonWithSteps: q,
|
|
104
|
+
progress: z
|
|
105
|
+
}, G = () => {
|
|
106
|
+
const { hasSteps: e, showPreviousButton: o } = m(), s = A(v.SUBMIT_BUTTON, v.SUBMIT_BUTTON_ICON), n = O(null), u = d(() => {
|
|
107
|
+
var l;
|
|
108
|
+
return (l = n.current) == null ? void 0 : l.runAnimationForward();
|
|
109
|
+
}, []), _ = d(() => {
|
|
110
|
+
var l;
|
|
111
|
+
return (l = n.current) == null ? void 0 : l.runAnimationBackward();
|
|
112
|
+
}, []);
|
|
113
|
+
return /* @__PURE__ */ t.createElement(a, null, /* @__PURE__ */ t.createElement(a.SubmitButton, {
|
|
114
|
+
className: B({
|
|
115
|
+
[r.navigationContainer]: e,
|
|
116
|
+
[r.rowSpacing]: o
|
|
117
|
+
})
|
|
118
|
+
}, /* @__PURE__ */ t.createElement(a.SubmitButton.PreviousButton, {
|
|
119
|
+
className: B(F, r.navigationButton, r.previousButton)
|
|
120
|
+
}), /* @__PURE__ */ t.createElement(a.SubmitButton.NextButton, {
|
|
121
|
+
className: B(P, r.navigationButton, r.nextButton)
|
|
122
|
+
}), /* @__PURE__ */ t.createElement(a.SubmitButton.SubmitButton, {
|
|
123
|
+
className: B(M, r.button, {
|
|
124
|
+
[r.buttonNoSteps]: !e,
|
|
125
|
+
[r.buttonWithSteps]: e
|
|
126
|
+
}),
|
|
127
|
+
onHoverStart: u,
|
|
128
|
+
onHoverEnd: _
|
|
129
|
+
}, /* @__PURE__ */ t.createElement(a.SubmitButton.SubmitButton.Label, {
|
|
130
|
+
className: U
|
|
131
|
+
}), /* @__PURE__ */ t.createElement(a.SubmitButton.SubmitButton.Icon, null, s.svg ? /* @__PURE__ */ t.createElement(I, {
|
|
132
|
+
...s,
|
|
133
|
+
ref: n,
|
|
134
|
+
className: B(w, R, s.className)
|
|
135
|
+
}) : null), /* @__PURE__ */ t.createElement(a.SubmitButton.SubmitButton.Loader, {
|
|
136
|
+
className: r.progress
|
|
137
|
+
}))));
|
|
138
|
+
}, st = () => /* @__PURE__ */ t.createElement(G, null);
|
|
139
|
+
export {
|
|
140
|
+
st as SubmitButtonRAC
|
|
141
|
+
};
|
|
@@ -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-BkmOXzqo.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-BHTkMu35.js";
|
|
8
|
+
import { L as P } from "./field-label-headless-D3DwX65k.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-BsXkFtp2.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-lZnP6sE6.js";
|
|
16
|
+
import { u as me } from "./use-text-input-class-name-B-GYaltW.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
|