@wix/form-elements 1.78.0 → 1.80.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-DWxisWGW.js → appointment-rac-BYisg594.js} +6 -6
- package/dist/component/{bookings-address-rac-BT-VBypp.js → bookings-address-rac-CsILj67y.js} +1 -1
- package/dist/component/{bookings-email-rac-CVpK16ZI.js → bookings-email-rac-CVmAPK_5.js} +1 -1
- package/dist/component/{bookings-first-name-rac-CDe5wve0.js → bookings-first-name-rac-Dh41-RQ_.js} +1 -1
- package/dist/component/{bookings-header-rac-BsMQ2QGm.js → bookings-header-rac-B6Fgfiz5.js} +1 -1
- package/dist/component/{bookings-last-name-rac-Bpg5n4Dr.js → bookings-last-name-rac-CuY8aaXv.js} +1 -1
- package/dist/component/{bookings-login-bar-rac-DnMB_v13.js → bookings-login-bar-rac-B8JBcGs8.js} +2 -2
- package/dist/component/{bookings-phone-rac-B8FoaVqv.js → bookings-phone-rac-Bspc3F7g.js} +1 -1
- package/dist/component/{bookings-rich-text-rac-CqD2O9X7.js → bookings-rich-text-rac-B1o0ZcfK.js} +1 -1
- package/dist/component/{checkbox-field-rac-CydYZGle.js → checkbox-field-rac-thaR4lXB.js} +52 -51
- package/dist/component/{checkbox-group-field-headless-BdrQjLsc.js → checkbox-group-field-headless-DryeaW7l.js} +53 -53
- package/dist/component/{checkbox-group-field-rac-D2mXFpmR.js → checkbox-group-field-rac-CJfbT13O.js} +5 -5
- package/dist/component/{checkbox-group-rac-CTQRNdXf.js → checkbox-group-rac-BwI7UHzO.js} +1 -1
- package/dist/component/checkbox-indicator-module-classes-DqzGZQRQ.js +9 -0
- package/dist/component/{checkbox-rac-d8u0ahzA.js → checkbox-rac-HRTKCRY4.js} +1 -1
- package/dist/component/{contacts-address-rac-CJYLD7fU.js → contacts-address-rac-BIn9plXb.js} +1 -1
- package/dist/component/{contacts-birthdate-rac-BYWcPC9J.js → contacts-birthdate-rac-oGP8bO3I.js} +1 -1
- package/dist/component/{contacts-company-rac-B-hxWRwZ.js → contacts-company-rac-ChdjTt8-.js} +1 -1
- package/dist/component/{contacts-email-rac-9M965qjz.js → contacts-email-rac-BUluFo-o.js} +1 -1
- package/dist/component/{contacts-first-name-rac-BD6j79WW.js → contacts-first-name-rac-tmboINSq.js} +1 -1
- package/dist/component/{contacts-last-name-rac-DJ3UqnhZ.js → contacts-last-name-rac-BaD5OBVf.js} +1 -1
- package/dist/component/{contacts-phone-rac-BQo85LSR.js → contacts-phone-rac-BoX2-IEP.js} +1 -1
- package/dist/component/{contacts-position-rac-D1EEYf-q.js → contacts-position-rac-BNDskehr.js} +1 -1
- package/dist/component/{contacts-subscribe-rac-D3_UmlB-.js → contacts-subscribe-rac-CVaQG4Qy.js} +2 -2
- package/dist/component/{contacts-tax-id-rac-BUFbFFLw.js → contacts-tax-id-rac-Dxgxcv7c.js} +1 -1
- package/dist/component/{date-availability-Vtj_pmEf.js → date-availability-BbrBYxgL.js} +1 -1
- package/dist/component/{date-input-field-rac-BN7Dec-O.js → date-input-field-rac-oibxt2dz.js} +5 -5
- package/dist/component/{date-input-rac-D0EknjCI.js → date-input-rac-h2vrPoah.js} +1 -1
- package/dist/component/{date-picker-field-rac-JmIyqlEg.js → date-picker-field-rac-Cr9PMglz.js} +6 -6
- package/dist/component/{date-picker-rac-CzbmZuUr.js → date-picker-rac-8BOHRpaJ.js} +1 -1
- package/dist/component/{date-time-input-field-rac-9TAf-9BT.js → date-time-input-field-rac-C7CZ4i6-.js} +5 -5
- package/dist/component/{date-time-input-rac-BMC95LdQ.js → date-time-input-rac-BARK1BJc.js} +1 -1
- package/dist/component/{dext-checkbox-group-rac-2IUeY8CX.js → dext-checkbox-group-rac-CWc0W-zr.js} +2 -2
- package/dist/component/{dext-checkbox-rac-DC-tLcqg.js → dext-checkbox-rac-NKcTYwpg.js} +1 -1
- package/dist/component/{dext-date-picker-rac-DgQdlofb.js → dext-date-picker-rac-SllyCpYt.js} +1 -1
- package/dist/component/{dext-date-time-input-rac-DgU7Nkxk.js → dext-date-time-input-rac-JT9Pa7TG.js} +1 -1
- package/dist/component/{dext-dropdown-rac-BKxqCr4C.js → dext-dropdown-rac-aBU9t_U4.js} +1 -1
- package/dist/component/{dext-email-rac-coWG-88b.js → dext-email-rac-DKoJiyjE.js} +1 -1
- package/dist/component/{dext-number-input-rac--WG5wQFz.js → dext-number-input-rac-BHkzAyzd.js} +1 -1
- package/dist/component/{dext-phone-rac-ikgoCqRF.js → dext-phone-rac-Ou-fxcN5.js} +1 -1
- package/dist/component/{dext-radio-group-rac-CSmi7-KP.js → dext-radio-group-rac-CH0WlRsF.js} +2 -2
- package/dist/component/{dext-rating-input-rac-CrUReQ7k.js → dext-rating-input-rac-D_jXx_VN.js} +1 -1
- package/dist/component/{dext-tags-rac-C0iyj2fA.js → dext-tags-rac-DBaT-lQT.js} +2 -2
- package/dist/component/{dext-text-area-rac-k1bspboS.js → dext-text-area-rac-DWcCktYi.js} +1 -1
- package/dist/component/{dext-text-input-rac-DvapRpAx.js → dext-text-input-rac-CBX2wgW-.js} +1 -1
- package/dist/component/{dext-url-input-rac-CAut8IVQ.js → dext-url-input-rac-DaqWDzIt.js} +1 -1
- package/dist/component/{donation-rac-BOqNDuTc.js → donation-rac-D1rcPi17.js} +5 -5
- package/dist/component/{dropdown-field-headless-CS5wUgQ6.js → dropdown-field-headless-D7mOjVEJ.js} +3 -3
- package/dist/component/{dropdown-field-rac-MRo5oOWE.js → dropdown-field-rac-DsRuMFo4.js} +3 -3
- package/dist/component/{dropdown-rac-BjdsRMD6.js → dropdown-rac-8Fe66UGi.js} +1 -1
- package/dist/component/{ecom-address-rac-DfYVinX3.js → ecom-address-rac-DbR_WEgu.js} +1 -1
- package/dist/component/{ecom-subscription-checkbox-rac-S_Wzz9Jb.js → ecom-subscription-checkbox-rac-ByQsK79_.js} +3 -3
- package/dist/component/{email-input-field-rac-Ci2MzEdX.js → email-input-field-rac-BS0bFS0-.js} +4 -4
- package/dist/component/{events-repeater-rac-DiuDVYBS.js → events-repeater-rac-xhXarOw_.js} +61 -60
- package/dist/component/events-rsvp-rac-BLq-ro2E.js +45 -0
- package/dist/component/{field-error-headless-DvmM1k0W.js → field-error-headless-C7IUibkK.js} +1 -1
- package/dist/component/{field-label-headless-DKn04-OM.js → field-label-headless-BQFy2iAr.js} +1 -1
- package/dist/component/field-rac.module-ColNPUt0.js +23 -0
- package/dist/component/{file-upload-rac-CB6xdN8j.js → file-upload-rac-B84R44Bt.js} +5 -5
- package/dist/component/{fixed-payment-rac-ATi0oywP.js → fixed-payment-rac-D7Asu-Ws.js} +9 -9
- package/dist/component/{form-_3vjdih8.js → form-BmioUKtQ.js} +69 -69
- package/dist/component/{form-element-classes-DZiFyihd.js → form-element-classes-BuM-vthE.js} +67 -49
- package/dist/component/form.css +1 -1
- package/dist/component/form.js +1 -1
- package/dist/component/{header-field-rac-pd3cDG5d.js → header-field-rac-CN5SyZpH.js} +3 -3
- package/dist/component/{header-rac-fSMu24tQ.js → header-rac-B9ITu2YO.js} +1 -1
- package/dist/component/{image-choice-rac-B7kSWlmM.js → image-choice-rac-9ncRxwZd.js} +5 -5
- package/dist/component/{index-BTVyiZNf.js → index-3q1aCLZ8.js} +2 -2
- package/dist/component/{index-QsnKRW-J.js → index-CvWMG1x1.js} +4 -4
- package/dist/component/{isObjectLike-YK6n3FVo.js → isObjectLike-xDv2bEeI.js} +1 -1
- package/dist/component/{multiline-address-field-rac-CDKbEU14.js → multiline-address-field-rac-BLDqei5I.js} +6 -6
- package/dist/component/{multiline-address-rac-DflLsZ5w.js → multiline-address-rac-Dy9Km8P8.js} +1 -1
- package/dist/component/{number-input-field-rac-Bc6vH-Nl.js → number-input-field-rac-Dxu4WHzh.js} +5 -5
- package/dist/component/{number-input-rac-J3DpYc9U.js → number-input-rac-hHEmwPao.js} +1 -1
- package/dist/component/{password-rac-DUsCGTgT.js → password-rac-CEylicEt.js} +5 -5
- package/dist/component/{payment-input-rac-C7ir9WYG.js → payment-input-rac-bvK_YQ78.js} +5 -5
- package/dist/component/{phone-input-field-rac-BTCDRtYe.js → phone-input-field-rac-CqYNWmiA.js} +5 -5
- package/dist/component/{phone-rac-Dk5FzIxX.js → phone-rac-C72xrPL6.js} +1 -1
- package/dist/component/{product-list-rac-BnXK6jhc.js → product-list-rac-DbftZgIh.js} +38 -37
- package/dist/component/quiz-radio-group-rac-Bkg5poft.js +13 -0
- package/dist/component/radio-button-module-classes-Do4JmHrh.js +132 -0
- package/dist/component/radio-group-field-rac-BkoqJYp4.js +47 -0
- package/dist/component/{radio-group-rac-DWJRHfZS.js → radio-group-rac-BGp1iRNt.js} +1 -1
- package/dist/component/{rating-input-field-rac-Bic4P2NB.js → rating-input-field-rac-Bozwq2E7.js} +6 -6
- package/dist/component/{rating-input-rac-B9M2UXqM.js → rating-input-rac-Cxha4VPg.js} +1 -1
- package/dist/component/{rich-content-rac.module-CuxZg6ls.js → rich-content-rac.module-ZXCfVPY-.js} +1 -1
- package/dist/component/{rich-text-field-rac-CLEYP_pZ.js → rich-text-field-rac-Ct4KowMZ.js} +3 -3
- package/dist/component/{rich-text-rac-YRAKNkpJ.js → rich-text-rac-Cek5wjXa.js} +1 -1
- package/dist/component/selection-indicator-XQ8MYHUQ.js +11 -0
- package/dist/component/{service-dropdown-rac-Dg4ijvf0.js → service-dropdown-rac-B3K93XxF.js} +5 -5
- package/dist/component/{services-multi-choice-rac-DcDxYaDU.js → services-multi-choice-rac-2RTQqyG6.js} +7 -7
- package/dist/component/{signature-rac-BDj4xTdv.js → signature-rac-BIbRkW1j.js} +5 -5
- package/dist/component/{submit-button-rac-DIigBeH5.js → submit-button-rac-DofUaqHk.js} +2 -2
- package/dist/component/{tags-field-rac-CJp9XBhV.js → tags-field-rac-DTOthwA5.js} +5 -5
- package/dist/component/{tags-rac-zlatHQ0n.js → tags-rac-DuMX91gd.js} +1 -1
- package/dist/component/{text-area-field-rac-CFm-_Tz9.js → text-area-field-rac-BbHdTAJP.js} +5 -5
- package/dist/component/{text-area-rac-BSJfRYEx.js → text-area-rac-B9lDzZAb.js} +1 -1
- package/dist/component/{text-input-field-rac-ZTDIhRqT.js → text-input-field-rac-B_csZjOh.js} +3 -3
- package/dist/component/{text-input-headless-4hu-GjTm.js → text-input-headless-CVOWyi55.js} +3 -3
- package/dist/component/{text-input-rac-BTx8ELp7.js → text-input-rac-DowwSRpa.js} +1 -1
- package/dist/component/{time-input-rac-DmPMNJPn.js → time-input-rac-D9SXITBr.js} +5 -5
- package/dist/component/{url-input-field-rac-BPN4hmYh.js → url-input-field-rac-BxT0Lgly.js} +5 -5
- package/dist/component/{url-input-rac-CEeg1r2O.js → url-input-rac-GX9rvIJd.js} +1 -1
- package/dist/component/{use-element-state-class-name-DVT9MJFT.js → use-element-state-class-name-nCwOVSGM.js} +1 -1
- package/dist/component/{use-service-options-base-J4FBFnZH.js → use-service-options-base-BO3Ackpl.js} +1 -1
- package/package.json +2 -2
- package/dist/component/checkbox-indicator-module-classes-BcScu147.js +0 -17
- package/dist/component/events-rsvp-rac-Cc27Vkvf.js +0 -38
- package/dist/component/field-rac.module-DjmaTYkc.js +0 -23
- package/dist/component/quiz-radio-group-rac-BW3Vh-ZF.js +0 -13
- package/dist/component/radio-group-field-rac-C7IlBNGI.js +0 -40
- package/dist/component/radio-group-field-rac.module-BRkiHqU7.js +0 -124
package/dist/component/{rich-content-rac.module-CuxZg6ls.js → rich-content-rac.module-ZXCfVPY-.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import c, { useState as u } from "react";
|
|
2
|
-
import { ai as a, ab as i, as as T } from "./form-
|
|
2
|
+
import { ai as a, ab as i, as as T } from "./form-BmioUKtQ.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,8 +1,8 @@
|
|
|
1
1
|
import l from "classnames";
|
|
2
2
|
import e from "react";
|
|
3
|
-
import { ai as m, L as i, W as u, Z as R } from "./form-
|
|
4
|
-
import { u as T, R as C, s as d, T as p } from "./rich-content-rac.module-
|
|
5
|
-
import { a6 as g } from "./form-element-classes-
|
|
3
|
+
import { ai as m, L as i, W as u, Z as R } from "./form-BmioUKtQ.js";
|
|
4
|
+
import { u as T, R as C, s as d, T as p } from "./rich-content-rac.module-ZXCfVPY-.js";
|
|
5
|
+
import { a6 as g } from "./form-element-classes-BuM-vthE.js";
|
|
6
6
|
const h = {
|
|
7
7
|
colorPalette: R(),
|
|
8
8
|
customStyles: u()
|
package/dist/component/{service-dropdown-rac-Dg4ijvf0.js → service-dropdown-rac-B3K93XxF.js}
RENAMED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import t, { useRef as N, useMemo as g, useCallback as h, useEffect as T } from "react";
|
|
2
2
|
import { RicosViewer as A } from "@wix/ricos/viewer";
|
|
3
3
|
import m from "classnames";
|
|
4
|
-
import { ae as w, as as b, F as M, ai as y, ab as U, h as V } from "./form-
|
|
5
|
-
import { u as x } from "./use-service-options-base-
|
|
6
|
-
import { D as d } from "./dropdown-field-headless-
|
|
4
|
+
import { ae as w, as as b, F as M, ai as y, ab as U, h as V } from "./form-BmioUKtQ.js";
|
|
5
|
+
import { u as x } from "./use-service-options-base-BO3Ackpl.js";
|
|
6
|
+
import { D as d } from "./dropdown-field-headless-D7mOjVEJ.js";
|
|
7
7
|
import { C as B } from "./chevron-down-icon-CcpVm6B-.js";
|
|
8
8
|
import { E as H } from "./error-icon-hZxQ6DEy.js";
|
|
9
9
|
import { H as k } from "./custom-focus-class-_483Pkwp.js";
|
|
10
|
-
import { s as n } from "./field-rac.module-
|
|
11
|
-
import { z as q, P as W, y as z, B as Q, p as Y, i as j } from "./form-element-classes-
|
|
10
|
+
import { s as n } from "./field-rac.module-ColNPUt0.js";
|
|
11
|
+
import { z as q, P as W, y as z, B as Q, p as Y, i as j } from "./form-element-classes-BuM-vthE.js";
|
|
12
12
|
const G = "00000000-0000-0000-0000-000000000000", J = (e) => {
|
|
13
13
|
const { actions: r } = w(), { t: C } = b(), { addOther: i, addOtherLabel: p } = e, c = p || C("add-other.default-other-option-label"), a = N(!0), E = g(() => {
|
|
14
14
|
var s;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import e, { useEffect as _, useMemo as I } from "react";
|
|
2
2
|
import { RicosViewer as L } from "@wix/ricos/viewer";
|
|
3
3
|
import r from "classnames";
|
|
4
|
-
import { F as R, ai as d, h as D } from "./form-
|
|
5
|
-
import { u as F } from "./use-service-options-base-
|
|
6
|
-
import { C as a } from "./checkbox-group-field-headless-
|
|
4
|
+
import { F as R, ai as d, h as D } from "./form-BmioUKtQ.js";
|
|
5
|
+
import { u as F } from "./use-service-options-base-BO3Ackpl.js";
|
|
6
|
+
import { C as a } from "./checkbox-group-field-headless-DryeaW7l.js";
|
|
7
7
|
import { E as f } from "./error-icon-hZxQ6DEy.js";
|
|
8
|
-
import { C as N } from "./checkbox-indicator-module-classes-
|
|
9
|
-
import { s as i } from "./field-rac.module-
|
|
10
|
-
import { z as h, P as M, T as b, V as A, y as T, p as v, i as x, U as P } from "./form-element-classes-
|
|
8
|
+
import { C as N } from "./checkbox-indicator-module-classes-DqzGZQRQ.js";
|
|
9
|
+
import { s as i } from "./field-rac.module-ColNPUt0.js";
|
|
10
|
+
import { z as h, P as M, T as b, V as A, y as T, p as v, i as x, U as P } from "./form-element-classes-BuM-vthE.js";
|
|
11
11
|
import { o as O } from "./options-rac.module-KM-VT_KY.js";
|
|
12
|
-
import { u as y } from "./use-element-state-class-name-
|
|
12
|
+
import { u as y } from "./use-element-state-class-name-nCwOVSGM.js";
|
|
13
13
|
const k = (s) => {
|
|
14
14
|
var C;
|
|
15
15
|
const { isLoading: o, options: n, isEmpty: c, shouldRender: m, setOptions: l, setIsEmpty: E, setHasInitialDataLoaded: p } = F({
|
|
@@ -4,14 +4,14 @@ import v from "classnames";
|
|
|
4
4
|
import { useHover as ve, useFocusRing as xe, mergeProps as Se } from "react-aria";
|
|
5
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 Ue, ae as Oe, ab as Be, aq as ge, E as ce, e as G, ai as A, af as H, ak as Ee, as as Me } from "./form-
|
|
7
|
+
import { z as Ue, ae as Oe, ab as Be, aq as ge, E as ce, e as G, ai as A, af as H, ak as Ee, as as Me } from "./form-BmioUKtQ.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-C7IUibkK.js";
|
|
10
|
+
import { L as Ye } from "./field-label-headless-BQFy2iAr.js";
|
|
11
11
|
import { D as ke } from "./data-hooks-Dkw1pbRj.js";
|
|
12
12
|
import { E as $e } from "./error-icon-hZxQ6DEy.js";
|
|
13
|
-
import { s as z } from "./field-rac.module-
|
|
14
|
-
import { z as ue, P as ze, y as B, a3 as Ve, p as Ze, i as Xe } from "./form-element-classes-
|
|
13
|
+
import { s as z } from "./field-rac.module-ColNPUt0.js";
|
|
14
|
+
import { z as ue, P as ze, y as B, a3 as Ve, p as Ze, i as Xe } from "./form-element-classes-BuM-vthE.js";
|
|
15
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;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import t from "react";
|
|
2
2
|
import l from "classnames";
|
|
3
|
-
import { ai as c } from "./form-
|
|
3
|
+
import { ai as c } from "./form-BmioUKtQ.js";
|
|
4
4
|
import { ProgressBar as g, Button as b } from "react-aria-components";
|
|
5
5
|
import { f as i } from "./find-child-C60k4CxG.js";
|
|
6
|
-
import { a5 as v, a4 as N, a7 as f } from "./form-element-classes-
|
|
6
|
+
import { a5 as v, a4 as N, a7 as f } from "./form-element-classes-BuM-vthE.js";
|
|
7
7
|
function C(e) {
|
|
8
8
|
const s = "calc(50% - 2px)";
|
|
9
9
|
return /* @__PURE__ */ t.createElement(g, {
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { RicosViewer as z } from "@wix/ricos/viewer";
|
|
2
2
|
import _ from "classnames";
|
|
3
3
|
import e, { useMemo as F, useState as K, useRef as V, useLayoutEffect as Q, useCallback as k } from "react";
|
|
4
|
-
import { ai as y, af as Y, as as T, ab as j, ak as w, ac as J } from "./form-
|
|
4
|
+
import { ai as y, af as Y, as as T, ab as j, ak as w, ac as J } from "./form-BmioUKtQ.js";
|
|
5
5
|
import { CheckboxGroup as X, TextField as Z, Input as ee, CheckboxField as te, CheckboxButton as ae } from "react-aria-components";
|
|
6
6
|
import { f, a as P } from "./find-child-C60k4CxG.js";
|
|
7
|
-
import { E as x, D as B } from "./field-error-headless-
|
|
8
|
-
import { L as $ } from "./field-label-headless-
|
|
7
|
+
import { E as x, D as B } from "./field-error-headless-C7IUibkK.js";
|
|
8
|
+
import { L as $ } from "./field-label-headless-BQFy2iAr.js";
|
|
9
9
|
import { F as ne } from "./fieldset-headless-CD3fds9J.js";
|
|
10
10
|
import { N as g } from "./options-layout-constants-DEfIEJWD.js";
|
|
11
11
|
import { E as se } from "./error-icon-hZxQ6DEy.js";
|
|
12
|
-
import { s as S } from "./field-rac.module-
|
|
13
|
-
import { z as oe, P as re, $ as le, a0 as ie, a1 as ce, y as ue, p as de, i as me, F as pe } from "./form-element-classes-
|
|
12
|
+
import { s as S } from "./field-rac.module-ColNPUt0.js";
|
|
13
|
+
import { z as oe, P as re, $ as le, a0 as ie, a1 as ce, y as ue, p as de, i as me, F as pe } from "./form-element-classes-BuM-vthE.js";
|
|
14
14
|
import { o as Ee } from "./options-rac.module-KM-VT_KY.js";
|
|
15
15
|
const N = "Other", he = (a, t) => {
|
|
16
16
|
const c = t.length + 2;
|
|
@@ -2,13 +2,13 @@ import { RicosViewer as S } from "@wix/ricos/viewer";
|
|
|
2
2
|
import n from "classnames";
|
|
3
3
|
import r, { useCallback as O, useRef as T } from "react";
|
|
4
4
|
import { TextField as y, TextArea as N } from "react-aria-components";
|
|
5
|
-
import { ai as p, af as E, ak as x } from "./form-
|
|
5
|
+
import { ai as p, af as E, ak as x } from "./form-BmioUKtQ.js";
|
|
6
6
|
import { f as c } from "./find-child-C60k4CxG.js";
|
|
7
|
-
import { D as h, E as M } from "./field-error-headless-
|
|
8
|
-
import { L as g } from "./field-label-headless-
|
|
7
|
+
import { D as h, E as M } from "./field-error-headless-C7IUibkK.js";
|
|
8
|
+
import { L as g } from "./field-label-headless-BQFy2iAr.js";
|
|
9
9
|
import { E as v } from "./error-icon-hZxQ6DEy.js";
|
|
10
|
-
import { s } from "./field-rac.module-
|
|
11
|
-
import { z as q, P as B, y as P, p as k, i as U } from "./form-element-classes-
|
|
10
|
+
import { s } from "./field-rac.module-ColNPUt0.js";
|
|
11
|
+
import { z as q, P as B, y as P, p as k, i as U } from "./form-element-classes-BuM-vthE.js";
|
|
12
12
|
const e = ({ children: t }) => {
|
|
13
13
|
const { id: a, value: m, onChange: l, disabled: u, required: o, readOnly: i, onBlur: d, onFocus: f, FieldLayout: I, hasError: F } = p(), { labelId: L } = E(), R = O((C) => {
|
|
14
14
|
l(C);
|
package/dist/component/{text-input-field-rac-ZTDIhRqT.js → text-input-field-rac-B_csZjOh.js}
RENAMED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { RicosViewer as m } 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-CVOWyi55.js";
|
|
5
5
|
import { E as o } from "./error-icon-hZxQ6DEy.js";
|
|
6
|
-
import { s as a } from "./field-rac.module-
|
|
7
|
-
import { z as n, P as c, y as E, p as i, i as p } from "./form-element-classes-
|
|
6
|
+
import { s as a } from "./field-rac.module-ColNPUt0.js";
|
|
7
|
+
import { z as n, P as c, y as E, p as i, i as p } from "./form-element-classes-BuM-vthE.js";
|
|
8
8
|
const R = ({ content: s, locale: l }) => /* @__PURE__ */ e.createElement(m, {
|
|
9
9
|
content: s,
|
|
10
10
|
locale: l
|
|
@@ -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 { ai as d, af as c, ak as T } from "./form-
|
|
3
|
+
import { ai as d, af as c, ak as T } from "./form-BmioUKtQ.js";
|
|
4
4
|
import { f as a } 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-C7IUibkK.js";
|
|
6
|
+
import { L as x } from "./field-label-headless-BQFy2iAr.js";
|
|
7
7
|
const e = ({ children: r }) => {
|
|
8
8
|
const { id: s, value: i, onChange: l, disabled: u, readOnly: n, required: o, hasError: p, onBlur: m, onFocus: f, FieldLayout: b } = d(), { labelId: E } = c(), I = a(r, e.Label), F = a(r, e.Input), y = a(r, e.Description), D = a(r, e.Error);
|
|
9
9
|
return /* @__PURE__ */ t.createElement(b, {
|
|
@@ -3,14 +3,14 @@ import { RicosViewer as q } from "@wix/ricos/viewer";
|
|
|
3
3
|
import c from "classnames";
|
|
4
4
|
import { parseTime as v } from "@internationalized/date";
|
|
5
5
|
import { TimeField as x, DateInput as B, DateSegment as h, TimeFieldStateContext as U } from "react-aria-components";
|
|
6
|
-
import { ai as p, af as j, as as T, ak as z } from "./form-
|
|
6
|
+
import { ai as p, af as j, as as T, ak as z } from "./form-BmioUKtQ.js";
|
|
7
7
|
import { f as m, a as F } from "./find-child-C60k4CxG.js";
|
|
8
|
-
import { D as Q, E as G } from "./field-error-headless-
|
|
9
|
-
import { L as J } from "./field-label-headless-
|
|
8
|
+
import { D as Q, E as G } from "./field-error-headless-C7IUibkK.js";
|
|
9
|
+
import { L as J } from "./field-label-headless-BQFy2iAr.js";
|
|
10
10
|
import { E as K } from "./error-icon-hZxQ6DEy.js";
|
|
11
11
|
import { H as S } from "./custom-focus-class-_483Pkwp.js";
|
|
12
|
-
import { s as E } from "./field-rac.module-
|
|
13
|
-
import { z as W, P as X, y as Y, p as Z, i as $ } from "./form-element-classes-
|
|
12
|
+
import { s as E } from "./field-rac.module-ColNPUt0.js";
|
|
13
|
+
import { z as W, P as X, y as Y, p as Z, i as $ } from "./form-element-classes-BuM-vthE.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: f, use24HourFormat: b, FieldLayout: I, hasError: C } = p(), { inputId: L, ariaDescribedBy: g, labelId: D } = j(), R = H((M) => {
|
|
16
16
|
const w = ae(M);
|
|
@@ -2,14 +2,14 @@ import { RicosViewer as O } from "@wix/ricos/viewer";
|
|
|
2
2
|
import l from "classnames";
|
|
3
3
|
import r, { useCallback as h, useRef as y } from "react";
|
|
4
4
|
import { TextField as N, Input as A } from "react-aria-components";
|
|
5
|
-
import { ai as E, af as d, ak as P } from "./form-
|
|
5
|
+
import { ai as E, af as d, ak as P } from "./form-BmioUKtQ.js";
|
|
6
6
|
import { f as u } from "./find-child-C60k4CxG.js";
|
|
7
|
-
import { D as k, E as B } from "./field-error-headless-
|
|
8
|
-
import { L as M } from "./field-label-headless-
|
|
7
|
+
import { D as k, E as B } from "./field-error-headless-C7IUibkK.js";
|
|
8
|
+
import { L as M } from "./field-label-headless-BQFy2iAr.js";
|
|
9
9
|
import { u as T } from "./use-invoke-callback-UH73A_J3.js";
|
|
10
10
|
import { E as v } from "./error-icon-hZxQ6DEy.js";
|
|
11
|
-
import { s } from "./field-rac.module-
|
|
12
|
-
import { z as U, P as g, y as q, p as x, i as w } from "./form-element-classes-
|
|
11
|
+
import { s } from "./field-rac.module-ColNPUt0.js";
|
|
12
|
+
import { z as U, P as g, y as q, p as x, i as w } from "./form-element-classes-BuM-vthE.js";
|
|
13
13
|
const V = (t) => t ? `https://${String(t).replace(/^https?:\/\//, "")}` : "", e = ({ children: t }) => {
|
|
14
14
|
const { id: o, value: n, onChange: a, disabled: m, readOnly: i, required: c, hasError: I, onBlur: f, onFocus: F, FieldLayout: L } = E(), { labelId: R } = d(), p = T(f), b = u(t, e.Label), D = u(t, e.Input), _ = u(t, e.Description), C = u(t, e.Error), S = h(() => {
|
|
15
15
|
a(V(n)), p();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import d from "classnames";
|
|
2
|
-
import { ac as s } from "./form-
|
|
2
|
+
import { ac as s } from "./form-BmioUKtQ.js";
|
|
3
3
|
const E = ({ globalClasses: e, moduleClasses: t }) => {
|
|
4
4
|
var c;
|
|
5
5
|
const r = ((c = s(e.key)) == null ? void 0 : c.split(/\s+/)) ?? [], m = r.includes(e.selected), o = r.includes(e.hover);
|
package/dist/component/{use-service-options-base-J4FBFnZH.js → use-service-options-base-BO3Ackpl.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useState as o, useCallback as D, useEffect as m, useMemo as b } from "react";
|
|
2
|
-
import { ah as v } from "./form-
|
|
2
|
+
import { ah as v } from "./form-BmioUKtQ.js";
|
|
3
3
|
const k = (h) => {
|
|
4
4
|
const { fieldType: I, isEditor: t = !1, postProcessOptions: i, customFetchLogic: a, onInitialDataLoaded: n } = h, [L, O] = o(!1), [g, p] = o([]), [E, u] = o(!1), [c, f] = o(!1), s = v(I), r = D((e) => {
|
|
5
5
|
let d = e.map((l) => ({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/form-elements",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.80.0",
|
|
4
4
|
"description": "The Wix Forms rendering element for Builder apps, loaded at runtime as @wix/form-elements/Form",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"files": [
|
|
@@ -151,5 +151,5 @@
|
|
|
151
151
|
]
|
|
152
152
|
}
|
|
153
153
|
},
|
|
154
|
-
"falconPackageHash": "
|
|
154
|
+
"falconPackageHash": "51c50f0030a8a8b16ac90f25279b78c87ee8bf20600cc2aef050eda3"
|
|
155
155
|
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import r from "react";
|
|
2
|
-
import { s as t } from "./field-rac.module-DjmaTYkc.js";
|
|
3
|
-
const a = ({ className: e, ...o }) => {
|
|
4
|
-
const c = o;
|
|
5
|
-
return /* @__PURE__ */ r.createElement("div", {
|
|
6
|
-
"aria-hidden": "true",
|
|
7
|
-
className: typeof e == "function" ? e(c) : e
|
|
8
|
-
});
|
|
9
|
-
}, p = {
|
|
10
|
-
base: t.checkboxInput,
|
|
11
|
-
selected: t.checkboxInputSelected,
|
|
12
|
-
hover: t.checkboxInputHover
|
|
13
|
-
};
|
|
14
|
-
export {
|
|
15
|
-
p as C,
|
|
16
|
-
a
|
|
17
|
-
};
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import t from "react";
|
|
2
|
-
import { RicosViewer as c } from "@wix/ricos/viewer";
|
|
3
|
-
import r from "classnames";
|
|
4
|
-
import { R as a, s as o } from "./radio-group-field-rac.module-BRkiHqU7.js";
|
|
5
|
-
import { E as m } from "./error-icon-hZxQ6DEy.js";
|
|
6
|
-
import { s } from "./field-rac.module-DjmaTYkc.js";
|
|
7
|
-
import { z as i, P as E, Q as p, S as R, R as _, p as L, i as O } from "./form-element-classes-DZiFyihd.js";
|
|
8
|
-
const e = ({ children: n }) => /* @__PURE__ */ t.createElement(a, null, n);
|
|
9
|
-
e.Label = a.Label;
|
|
10
|
-
e.Options = a.Options;
|
|
11
|
-
e.Option = a.Option;
|
|
12
|
-
e.Description = a.Description;
|
|
13
|
-
e.Error = a.Error;
|
|
14
|
-
const S = ({ content: n, locale: l }) => /* @__PURE__ */ t.createElement(c, {
|
|
15
|
-
content: n,
|
|
16
|
-
locale: l
|
|
17
|
-
}), I = () => /* @__PURE__ */ t.createElement(e, null, /* @__PURE__ */ t.createElement(e.Label, {
|
|
18
|
-
className: r(i, s.label)
|
|
19
|
-
}, /* @__PURE__ */ t.createElement(e.Label.Required, {
|
|
20
|
-
className: r(E, s.requiredMark)
|
|
21
|
-
})), /* @__PURE__ */ t.createElement(e.Options, {
|
|
22
|
-
className: r(p, o.options)
|
|
23
|
-
}, /* @__PURE__ */ t.createElement(e.Option, {
|
|
24
|
-
className: o.option
|
|
25
|
-
}, /* @__PURE__ */ t.createElement(e.Option.Input, {
|
|
26
|
-
className: o.optionInput
|
|
27
|
-
}), /* @__PURE__ */ t.createElement(e.Option.Control, {
|
|
28
|
-
className: r(R, o.optionControl)
|
|
29
|
-
}), /* @__PURE__ */ t.createElement(e.Option.Label, {
|
|
30
|
-
className: r(_, o.optionLabel)
|
|
31
|
-
}))), /* @__PURE__ */ t.createElement(e.Error, {
|
|
32
|
-
className: r(L, s.error)
|
|
33
|
-
}, /* @__PURE__ */ t.createElement(m, null), /* @__PURE__ */ t.createElement(e.Error.Text, null)), /* @__PURE__ */ t.createElement(e.Description, {
|
|
34
|
-
className: r(O, s.description)
|
|
35
|
-
}, S)), M = () => /* @__PURE__ */ t.createElement(I, null);
|
|
36
|
-
export {
|
|
37
|
-
M as EventsRsvpRAC
|
|
38
|
-
};
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
const o = "_label_10aij_1", e = "_requiredMark_10aij_11", t = "_input_10aij_16", n = "_inputGroup_10aij_17", c = "_innerInput_10aij_129", _ = "_dropdownTrigger_10aij_177", r = "_dropdownIcon_10aij_187", i = "_dropdownPopover_10aij_206", p = "_selectPopover_10aij_210", s = "_selectOption_10aij_237", u = "_selectOptionWithoutFocusRing_10aij_261", d = "_description_10aij_267", a = "_error_10aij_283", l = "_checkbox_10aij_302", j = "_checkboxInput_10aij_325", h = "_checkboxInputSelected_10aij_364", b = "_checkboxInputHover_10aij_368", k = "_uploadButton_10aij_418", I = {
|
|
2
|
-
label: o,
|
|
3
|
-
requiredMark: e,
|
|
4
|
-
input: t,
|
|
5
|
-
inputGroup: n,
|
|
6
|
-
innerInput: c,
|
|
7
|
-
dropdownTrigger: _,
|
|
8
|
-
dropdownIcon: r,
|
|
9
|
-
dropdownPopover: i,
|
|
10
|
-
selectPopover: p,
|
|
11
|
-
selectOption: s,
|
|
12
|
-
selectOptionWithoutFocusRing: u,
|
|
13
|
-
description: d,
|
|
14
|
-
error: a,
|
|
15
|
-
checkbox: l,
|
|
16
|
-
checkboxInput: j,
|
|
17
|
-
checkboxInputSelected: h,
|
|
18
|
-
checkboxInputHover: b,
|
|
19
|
-
uploadButton: k
|
|
20
|
-
};
|
|
21
|
-
export {
|
|
22
|
-
I as s
|
|
23
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import _ from "react";
|
|
2
|
-
import { R } from "./radio-group-field-rac-C7IlBNGI.js";
|
|
3
|
-
import { J as o, I as r, H as O } from "./form-element-classes-DZiFyihd.js";
|
|
4
|
-
const t = () => /* @__PURE__ */ _.createElement(R, {
|
|
5
|
-
classes: {
|
|
6
|
-
container: O,
|
|
7
|
-
label: r,
|
|
8
|
-
control: o
|
|
9
|
-
}
|
|
10
|
-
});
|
|
11
|
-
export {
|
|
12
|
-
t as QuizRadioGroupRAC
|
|
13
|
-
};
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { RicosViewer as s } from "@wix/ricos/viewer";
|
|
2
|
-
import a from "classnames";
|
|
3
|
-
import e from "react";
|
|
4
|
-
import { R as t, s as r } from "./radio-group-field-rac.module-BRkiHqU7.js";
|
|
5
|
-
import { E as m } from "./error-icon-hZxQ6DEy.js";
|
|
6
|
-
import { s as l } from "./field-rac.module-DjmaTYkc.js";
|
|
7
|
-
import { z as c, P as i, M as E, L as _, K as R, y as p, p as O, i as L } from "./form-element-classes-DZiFyihd.js";
|
|
8
|
-
const I = ({ content: o, locale: n }) => /* @__PURE__ */ e.createElement(s, {
|
|
9
|
-
content: o,
|
|
10
|
-
locale: n
|
|
11
|
-
}), M = ({ classes: o = {
|
|
12
|
-
container: R,
|
|
13
|
-
label: _,
|
|
14
|
-
control: E
|
|
15
|
-
} }) => /* @__PURE__ */ e.createElement(t, null, /* @__PURE__ */ e.createElement(t.Label, {
|
|
16
|
-
className: a(c, l.label)
|
|
17
|
-
}, /* @__PURE__ */ e.createElement(t.Label.Required, {
|
|
18
|
-
className: a(i, l.requiredMark)
|
|
19
|
-
}), /* @__PURE__ */ e.createElement(t.Label.Image, {
|
|
20
|
-
className: r.labelImage
|
|
21
|
-
})), /* @__PURE__ */ e.createElement(t.Options, {
|
|
22
|
-
className: a(o.container, r.options)
|
|
23
|
-
}, /* @__PURE__ */ e.createElement(t.Option, {
|
|
24
|
-
className: r.option
|
|
25
|
-
}, /* @__PURE__ */ e.createElement(t.Option.Input, {
|
|
26
|
-
className: r.optionInput
|
|
27
|
-
}), /* @__PURE__ */ e.createElement(t.Option.Control, {
|
|
28
|
-
className: a(o.control, r.optionControl)
|
|
29
|
-
}), /* @__PURE__ */ e.createElement(t.Option.Label, {
|
|
30
|
-
className: a(o.label, r.optionLabel)
|
|
31
|
-
}), /* @__PURE__ */ e.createElement(t.Option.OtherInput, {
|
|
32
|
-
className: a(p, l.input)
|
|
33
|
-
}))), /* @__PURE__ */ e.createElement(t.Error, {
|
|
34
|
-
className: a(O, l.error)
|
|
35
|
-
}, /* @__PURE__ */ e.createElement(m, null), /* @__PURE__ */ e.createElement(t.Error.Text, null)), /* @__PURE__ */ e.createElement(t.Description, {
|
|
36
|
-
className: a(L, l.description)
|
|
37
|
-
}, I));
|
|
38
|
-
export {
|
|
39
|
-
M as R
|
|
40
|
-
};
|
|
@@ -1,124 +0,0 @@
|
|
|
1
|
-
import s, { useRef as y, useState as V, useEffect as S, useCallback as B } from "react";
|
|
2
|
-
import { RadioGroup as T, RadioField as k, RadioButton as G, TextField as M, Input as P } from "react-aria-components";
|
|
3
|
-
import { ai as C, af as $, as as F, ab as q, ak as x } from "./form-_3vjdih8.js";
|
|
4
|
-
import { f as d, a as g } from "./find-child-C60k4CxG.js";
|
|
5
|
-
import { D as U, E as A } from "./field-error-headless-DvmM1k0W.js";
|
|
6
|
-
import { L as H } from "./field-label-headless-DKn04-OM.js";
|
|
7
|
-
import { N as j } from "./options-layout-constants-DEfIEJWD.js";
|
|
8
|
-
const L = "Other", w = (e, t) => e == null ? void 0 : e.find((o) => (o.value ?? o.label) === t), R = (e, t) => !!t && !w(e, t), z = (e, t) => {
|
|
9
|
-
const a = t ? t.length + 2 : 0;
|
|
10
|
-
return e.slice(a);
|
|
11
|
-
}, i = ({ children: e }) => {
|
|
12
|
-
const { id: t, value: o, onChange: a, disabled: O, readOnly: m, required: f, onBlur: b, onFocus: E, hasError: v, FieldLayout: l, options: r } = C(), { inputId: c, labelId: I, ariaDescribedBy: n } = $(), u = d(e, i.Label), h = d(e, i.Options), _ = d(e, i.Description), N = d(e, i.Error), D = R(r, o) ? L : o || null;
|
|
13
|
-
return /* @__PURE__ */ s.createElement(l, {
|
|
14
|
-
fieldId: t,
|
|
15
|
-
renderLabel: () => g(u, {
|
|
16
|
-
as: "div"
|
|
17
|
-
}),
|
|
18
|
-
renderInput: () => /* @__PURE__ */ s.createElement(T, {
|
|
19
|
-
id: c,
|
|
20
|
-
"aria-labelledby": I,
|
|
21
|
-
"aria-describedby": n,
|
|
22
|
-
value: D,
|
|
23
|
-
onChange: a,
|
|
24
|
-
isDisabled: O,
|
|
25
|
-
isReadOnly: m,
|
|
26
|
-
isRequired: f,
|
|
27
|
-
isInvalid: v,
|
|
28
|
-
onBlur: b,
|
|
29
|
-
onFocus: E
|
|
30
|
-
}, h),
|
|
31
|
-
renderDescription: () => /* @__PURE__ */ s.createElement(s.Fragment, null, N, _)
|
|
32
|
-
});
|
|
33
|
-
}, J = ({ children: e, className: t }) => {
|
|
34
|
-
const { options: o, addOther: a, addOtherLabel: O, id: m, numberOfColumns: f, hasError: b } = C(), { t: E } = F(), { isMobile: v } = q(), l = d(e, i.Option), r = y(null), c = O || E("add-other.default-other-option-label") || L, I = v ? j.ONE : f;
|
|
35
|
-
return x(() => {
|
|
36
|
-
var n;
|
|
37
|
-
(n = r.current) == null || n.focus();
|
|
38
|
-
}, m), /* @__PURE__ */ s.createElement("div", {
|
|
39
|
-
className: t,
|
|
40
|
-
"data-columns": I,
|
|
41
|
-
"data-invalid": b
|
|
42
|
-
}, o.map((n, u) => g(l, {
|
|
43
|
-
key: n.value ?? n.label,
|
|
44
|
-
value: n.value ?? n.label,
|
|
45
|
-
label: n.label,
|
|
46
|
-
index: u,
|
|
47
|
-
radioRef: u === 0 ? r : void 0
|
|
48
|
-
})), a && g(l, {
|
|
49
|
-
key: L,
|
|
50
|
-
value: L,
|
|
51
|
-
label: c,
|
|
52
|
-
isOther: !0
|
|
53
|
-
}));
|
|
54
|
-
}, p = ({ children: e, className: t, ...o }) => {
|
|
55
|
-
var u;
|
|
56
|
-
const { value: a, label: O, isOther: m = !1, radioRef: f } = o, { value: b, options: E } = C(), v = d(e, p.Label), l = d(e, p.Input), r = d(e, p.Control), c = d(e, p.OtherInput), I = m ? R(E, b) : b === a, n = (u = l == null ? void 0 : l.props) == null ? void 0 : u.className;
|
|
57
|
-
return /* @__PURE__ */ s.createElement("div", {
|
|
58
|
-
className: t
|
|
59
|
-
}, /* @__PURE__ */ s.createElement(k, {
|
|
60
|
-
value: a
|
|
61
|
-
}, /* @__PURE__ */ s.createElement(G, {
|
|
62
|
-
ref: f,
|
|
63
|
-
className: n
|
|
64
|
-
}, r, g(v, {
|
|
65
|
-
label: O
|
|
66
|
-
}))), m && I && c);
|
|
67
|
-
}, K = ({ className: e, ...t }) => {
|
|
68
|
-
const { label: o } = t;
|
|
69
|
-
return /* @__PURE__ */ s.createElement("span", {
|
|
70
|
-
className: e
|
|
71
|
-
}, o);
|
|
72
|
-
}, Q = (e) => null, W = ({ className: e }) => /* @__PURE__ */ s.createElement("div", {
|
|
73
|
-
"aria-hidden": "true",
|
|
74
|
-
className: e
|
|
75
|
-
}), X = ({ className: e }) => {
|
|
76
|
-
const { value: t, onChange: o, addOtherLabel: a, addOtherPlaceholder: O, otherInputCharacterLimit: m, disabled: f, readOnly: b, options: E } = C(), { t: v } = F(), l = y(null), r = R(E, t), c = a || v("add-other.default-other-option-label") || L, [I, n] = V(r && t ? z(t, a) : "");
|
|
77
|
-
S(() => {
|
|
78
|
-
var h;
|
|
79
|
-
r && l.current && ((h = l.current) == null || h.focus());
|
|
80
|
-
}, [
|
|
81
|
-
r
|
|
82
|
-
]);
|
|
83
|
-
const u = B((h) => {
|
|
84
|
-
let _;
|
|
85
|
-
h ? _ = `${a}: ${h}` : _ = c, o(_), n(h);
|
|
86
|
-
}, [
|
|
87
|
-
o,
|
|
88
|
-
a,
|
|
89
|
-
c
|
|
90
|
-
]);
|
|
91
|
-
return /* @__PURE__ */ s.createElement(M, {
|
|
92
|
-
"aria-label": c,
|
|
93
|
-
value: I,
|
|
94
|
-
onChange: u,
|
|
95
|
-
isDisabled: f,
|
|
96
|
-
isReadOnly: b
|
|
97
|
-
}, /* @__PURE__ */ s.createElement(P, {
|
|
98
|
-
ref: l,
|
|
99
|
-
className: e,
|
|
100
|
-
placeholder: O,
|
|
101
|
-
maxLength: m
|
|
102
|
-
}));
|
|
103
|
-
};
|
|
104
|
-
p.Label = K;
|
|
105
|
-
p.Input = Q;
|
|
106
|
-
p.Control = W;
|
|
107
|
-
p.OtherInput = X;
|
|
108
|
-
i.Label = H;
|
|
109
|
-
i.Options = J;
|
|
110
|
-
i.Option = p;
|
|
111
|
-
i.Description = U;
|
|
112
|
-
i.Error = A;
|
|
113
|
-
const Y = "_labelImage_45itv_1", Z = "_options_45itv_26", ee = "_option_45itv_26", te = "_optionInput_45itv_46", oe = "_optionControl_45itv_64", ne = "_optionLabel_45itv_142", de = {
|
|
114
|
-
labelImage: Y,
|
|
115
|
-
options: Z,
|
|
116
|
-
option: ee,
|
|
117
|
-
optionInput: te,
|
|
118
|
-
optionControl: oe,
|
|
119
|
-
optionLabel: ne
|
|
120
|
-
};
|
|
121
|
-
export {
|
|
122
|
-
i as R,
|
|
123
|
-
de as s
|
|
124
|
-
};
|