@wix/form-elements 1.112.0 → 1.114.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/component/{appointment-rac-BZ9sCf_L.js → appointment-rac-DB5qRsIN.js} +204 -204
- package/dist/component/{bookings-address-rac-DDisJZwl.js → bookings-address-rac-D_TiEBCS.js} +1 -1
- package/dist/component/{bookings-email-rac-ovewChXn.js → bookings-email-rac-CnuNzKzB.js} +1 -1
- package/dist/component/{bookings-first-name-rac-CyudJnHy.js → bookings-first-name-rac-CJlHncEH.js} +1 -1
- package/dist/component/{bookings-header-rac-BSN_BoC0.js → bookings-header-rac-CJ2zaC3p.js} +1 -1
- package/dist/component/{bookings-last-name-rac-SdX5IANy.js → bookings-last-name-rac-Bm4U8oN4.js} +1 -1
- package/dist/component/{bookings-login-bar-rac-COQ2BOsY.js → bookings-login-bar-rac-3ZHGtHwE.js} +1 -1
- package/dist/component/{bookings-phone-rac-DlUfTzEz.js → bookings-phone-rac-pnck0K81.js} +1 -1
- package/dist/component/{bookings-rich-text-rac-Dx0uxbQc.js → bookings-rich-text-rac-CnTF8Vf0.js} +1 -1
- package/dist/component/{checkbox-field-rac-DueJINhA.js → checkbox-field-rac-BibRtzvr.js} +4 -4
- package/dist/component/{checkbox-group-field-headless-wj9ITlbE.js → checkbox-group-field-headless-B-c-7mfP.js} +3 -3
- package/dist/component/{checkbox-group-field-rac-CrD849TZ.js → checkbox-group-field-rac-4LVlM83p.js} +8 -10
- package/dist/component/{checkbox-group-rac-Wdz1ShJh.js → checkbox-group-rac-DtKJqhfZ.js} +1 -1
- package/dist/component/{checkbox-rac-BC7A8y2w.js → checkbox-rac-BCcSFRuj.js} +1 -1
- package/dist/component/{contacts-address-rac-DoWo8zyH.js → contacts-address-rac-DMxBARdp.js} +1 -1
- package/dist/component/{contacts-birthdate-rac-CEXkyOuk.js → contacts-birthdate-rac-CYl_4jS_.js} +1 -1
- package/dist/component/{contacts-company-rac-CYaVpLCk.js → contacts-company-rac-CksPQX7x.js} +1 -1
- package/dist/component/{contacts-email-rac-teBI-Rpu.js → contacts-email-rac-BFZ1UFjL.js} +1 -1
- package/dist/component/{contacts-first-name-rac-BOPuOgk1.js → contacts-first-name-rac-BRI3j67R.js} +1 -1
- package/dist/component/{contacts-last-name-rac-DdRhuv9q.js → contacts-last-name-rac-B7EM45sk.js} +1 -1
- package/dist/component/{contacts-phone-rac-BMiop0kR.js → contacts-phone-rac-BhXt3qey.js} +1 -1
- package/dist/component/{contacts-position-rac-C8iM62rN.js → contacts-position-rac-CmF_panE.js} +1 -1
- package/dist/component/{contacts-subscribe-rac-CkToH-f2.js → contacts-subscribe-rac-DCezIm0y.js} +1 -1
- package/dist/component/{contacts-tax-id-rac-JM0KJre8.js → contacts-tax-id-rac-Sv0Yzx5G.js} +1 -1
- package/dist/component/{date-availability-DJyvNJ6w.js → date-availability-BCydK-T5.js} +1 -1
- package/dist/component/{date-input-field-rac-CStB2jP7.js → date-input-field-rac-KVHLsUOt.js} +42 -42
- package/dist/component/{date-input-rac-DUSJH8am.js → date-input-rac-BMDi95xl.js} +1 -1
- package/dist/component/{date-picker-field-rac-6xffgnXB.js → date-picker-field-rac-B4Q7dyvM.js} +5 -5
- package/dist/component/{date-picker-rac-Dpe0w0G6.js → date-picker-rac-RtAg78AP.js} +1 -1
- package/dist/component/{date-time-input-field-rac-CX39V3G1.js → date-time-input-field-rac-BhjYbmKL.js} +32 -32
- package/dist/component/{date-time-input-rac-DBVMIbom.js → date-time-input-rac-DNAYgPqx.js} +1 -1
- package/dist/component/{dext-checkbox-group-rac-CAxyCWQY.js → dext-checkbox-group-rac-B2QNQmGW.js} +2 -2
- package/dist/component/{dext-checkbox-rac-CRBzElbv.js → dext-checkbox-rac-Qc27trxC.js} +1 -1
- package/dist/component/{dext-date-picker-rac-DNzXwBkg.js → dext-date-picker-rac-DRAarTeN.js} +1 -1
- package/dist/component/{dext-date-time-input-rac-D2W3buJP.js → dext-date-time-input-rac-Dlhazq4O.js} +1 -1
- package/dist/component/{dext-dropdown-rac-CTTreT77.js → dext-dropdown-rac-DR-8xYfz.js} +1 -1
- package/dist/component/{dext-email-rac-BwI4-hML.js → dext-email-rac-C4_sJMjZ.js} +1 -1
- package/dist/component/{dext-number-input-rac-DT5pQiC3.js → dext-number-input-rac-C_T8FSm8.js} +1 -1
- package/dist/component/{dext-phone-rac-MA6wyUxM.js → dext-phone-rac-CZO1hIHJ.js} +1 -1
- package/dist/component/{dext-radio-group-rac-3PYEgYHn.js → dext-radio-group-rac-C2qHeolg.js} +2 -2
- package/dist/component/{dext-rating-input-rac-I3e9k3Tp.js → dext-rating-input-rac-CX6z5cEp.js} +1 -1
- package/dist/component/{dext-tags-rac-Bf4tEUAW.js → dext-tags-rac-CL6eim3H.js} +2 -2
- package/dist/component/{dext-text-area-rac-5oOAM6zJ.js → dext-text-area-rac-B3s2RBH0.js} +1 -1
- package/dist/component/{dext-text-input-rac-8nHhvQfO.js → dext-text-input-rac-GeSBd9pz.js} +1 -1
- package/dist/component/{dext-url-input-rac-DSAfDqx1.js → dext-url-input-rac-gLnhSj9e.js} +1 -1
- package/dist/component/{donation-rac-DJiD7Fel.js → donation-rac-CT__F2Q7.js} +70 -70
- package/dist/component/{dropdown-field-headless-B_W8kD-t.js → dropdown-field-headless-NTFuCOLG.js} +4 -4
- package/dist/component/{dropdown-field-rac-IDVaMgoc.js → dropdown-field-rac-BjLuDeYQ.js} +3 -3
- package/dist/component/{dropdown-rac-I2ZO66jF.js → dropdown-rac-BCEkYpfm.js} +1 -1
- package/dist/component/{ecom-address-rac-B1knDuog.js → ecom-address-rac-CvnJK1t4.js} +1 -1
- package/dist/component/{ecom-subscription-checkbox-rac-BQPJb2kl.js → ecom-subscription-checkbox-rac-DF0yT8Xc.js} +2 -2
- package/dist/component/{email-input-field-rac-DsjMnxGw.js → email-input-field-rac-D516Urul.js} +3 -3
- package/dist/component/{events-repeater-rac-CT7scvgS.js → events-repeater-rac-BMm1sHSF.js} +4 -4
- package/dist/component/events-rsvp-rac-EuK-80dr.js +48 -0
- package/dist/component/{field-error-headless-DRkkbv__.js → field-error-headless-CijTssZX.js} +1 -1
- package/dist/component/{field-label-headless-m633nF93.js → field-label-headless-D5nW8IPL.js} +1 -1
- package/dist/component/{file-upload-rac-DaExm5ny.js → file-upload-rac-CKHWtIyC.js} +4 -4
- package/dist/component/{fixed-payment-rac-BglZ8zc0.js → fixed-payment-rac-Gh-AYPvD.js} +3 -3
- package/dist/component/{form-CY-iFZdC.js → form-ug6JXjA8.js} +69 -69
- package/dist/component/form.css +1 -1
- package/dist/component/form.js +1 -1
- package/dist/component/{header-field-rac-B6Mzqr3b.js → header-field-rac-BOfE3kQP.js} +2 -2
- package/dist/component/{header-rac-CB2NDeCJ.js → header-rac-DK-wmljx.js} +1 -1
- package/dist/component/{image-choice-rac-gtYrnTGg.js → image-choice-rac-Z4Bf2PEM.js} +54 -57
- package/dist/component/{index-wR-OU2AH.js → index-DTPJaILI.js} +4 -4
- package/dist/component/{index-Ozpoh9do.js → index-Dedbx25s.js} +2 -2
- package/dist/component/{isObjectLike-DsBVSQ_O.js → isObjectLike-_ZXuJgiI.js} +1 -1
- package/dist/component/{multiline-address-field-rac-Z4hKy_B_.js → multiline-address-field-rac-BuzVvgiq.js} +7 -7
- package/dist/component/{multiline-address-rac-DWV0BZHX.js → multiline-address-rac-3oThDhLI.js} +1 -1
- package/dist/component/{number-input-field-rac-DKpSb1S_.js → number-input-field-rac-CyYDQY_P.js} +4 -4
- package/dist/component/{number-input-rac-Di7Q8CH9.js → number-input-rac-B6lkd3Ux.js} +1 -1
- package/dist/component/options-rac.module-_THNq6Qq.js +7 -0
- package/dist/component/{password-rac-B9RT0izw.js → password-rac-sVxPXrGd.js} +4 -4
- package/dist/component/{payment-input-rac-DdGNnPcd.js → payment-input-rac-DEtEvgaM.js} +4 -4
- package/dist/component/{phone-input-field-rac-B-5gHBXY.js → phone-input-field-rac-Bj6gYAIn.js} +6 -6
- package/dist/component/{phone-rac-CmZwJyH7.js → phone-rac-D6uxCSG-.js} +1 -1
- package/dist/component/{product-list-rac-BInJ4cw_.js → product-list-rac--XkErO-j.js} +5 -5
- package/dist/component/{quiz-radio-group-rac-B1EIBOt5.js → quiz-radio-group-rac-Cxhp2mQV.js} +1 -1
- package/dist/component/radio-button-module-classes-CX8cTuqj.js +131 -0
- package/dist/component/{radio-group-field-rac-DAwCG8w2.js → radio-group-field-rac-Duu_EH1m.js} +15 -16
- package/dist/component/{radio-group-rac-CExbY0aw.js → radio-group-rac-Dksg8iEU.js} +1 -1
- package/dist/component/{rating-input-field-rac-DTeubyLu.js → rating-input-field-rac-BUQdT5vs.js} +4 -4
- package/dist/component/{rating-input-rac-P7Fdwrm3.js → rating-input-rac-AiePlWfl.js} +1 -1
- package/dist/component/{rich-content-rac.module-DgQubdPj.js → rich-content-rac.module-Dw6wAyWa.js} +1 -1
- package/dist/component/{rich-text-field-rac-8dkTMWKw.js → rich-text-field-rac-C2F4XmHl.js} +2 -2
- package/dist/component/{rich-text-rac-C6u_hF5R.js → rich-text-rac-DBqxSGfX.js} +1 -1
- package/dist/component/{service-dropdown-rac-CTSCew5q.js → service-dropdown-rac-DOsSqpp4.js} +4 -4
- package/dist/component/{services-multi-choice-rac-BUFJHq-l.js → services-multi-choice-rac-a1t5dGyv.js} +27 -29
- package/dist/component/{signature-rac-yO924Qfv.js → signature-rac-BZxhmfGi.js} +3 -3
- package/dist/component/{submit-button-rac-BurhcqZP.js → submit-button-rac-e4UsJuTX.js} +1 -1
- package/dist/component/{tags-field-rac-qbNQcwnE.js → tags-field-rac-DZeZdN2B.js} +54 -54
- package/dist/component/{tags-rac-DVHcpxNG.js → tags-rac-tOZ1UsBq.js} +1 -1
- package/dist/component/{text-area-field-rac-BKhGX0CL.js → text-area-field-rac-DWcy1mUr.js} +4 -4
- package/dist/component/{text-area-rac-CHHEDeUX.js → text-area-rac-BNNYJaYU.js} +1 -1
- package/dist/component/{text-input-field-rac-BGitxCuC.js → text-input-field-rac-D8b68TP0.js} +3 -3
- package/dist/component/{text-input-headless-BBn1G2s9.js → text-input-headless-CY2dvZqY.js} +3 -3
- package/dist/component/{text-input-rac-CHX-U7Kp.js → text-input-rac-BflmvAp3.js} +1 -1
- package/dist/component/{time-input-rac-Bp6B2gO3.js → time-input-rac-B1xcZeK6.js} +4 -4
- package/dist/component/{url-input-field-rac-CPibLAWz.js → url-input-field-rac-DVXFTNlr.js} +4 -4
- package/dist/component/{url-input-rac-Bj4PV2YJ.js → url-input-rac-BEm7QPK6.js} +1 -1
- package/dist/component/{use-dropdown-option-class-name-CE1u4RLT.js → use-dropdown-option-class-name-DZQUnZz4.js} +2 -2
- package/dist/component/{use-element-state-class-name-Dn_LpP1k.js → use-element-state-class-name-DKacixau.js} +1 -1
- package/dist/component/{use-is-forced-open-dropdown-B2mdY7ku.js → use-is-forced-open-dropdown-GzE8GcCX.js} +1 -1
- package/dist/component/{use-service-options-base-DBvqU30V.js → use-service-options-base-DuInZhF_.js} +1 -1
- package/dist/component/{use-text-input-class-name-BUW0svzK.js → use-text-input-class-name-DhLYHlKO.js} +2 -2
- package/package.json +2 -2
- package/dist/component/events-rsvp-rac-Dcrc1yxR.js +0 -49
- package/dist/component/options-rac.module-CTDdATiz.js +0 -8
- package/dist/component/radio-button-module-classes-CjDU2x_m.js +0 -133
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import a from "classnames";
|
|
2
2
|
import { s as o } from "./field-rac.module-B4l_0KRU.js";
|
|
3
|
-
import { s as r } from "./form-
|
|
4
|
-
import { u as l } from "./use-element-state-class-name-
|
|
3
|
+
import { s as r } from "./form-ug6JXjA8.js";
|
|
4
|
+
import { u as l } from "./use-element-state-class-name-DKacixau.js";
|
|
5
5
|
const O = {
|
|
6
6
|
base: o.selectOption,
|
|
7
7
|
selected: o.selectOptionSelected,
|
package/dist/component/{use-service-options-base-DBvqU30V.js → use-service-options-base-DuInZhF_.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useState as o, useCallback as y, useEffect as m, useMemo as D } from "react";
|
|
2
|
-
import { b8 as v } from "./form-
|
|
2
|
+
import { b8 as v } from "./form-ug6JXjA8.js";
|
|
3
3
|
const k = (I) => {
|
|
4
4
|
const { fieldType: L, isEditor: t = !1, postProcessOptions: i, customFetchLogic: a, onInitialDataLoaded: n } = I, [O, h] = o(!1), [g, p] = o([]), [E, u] = o(!1), [c, f] = o(!1), s = v(L), r = y((e) => {
|
|
5
5
|
let d = e.map((l) => ({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { b9 as r, _ as i } from "./form-
|
|
1
|
+
import { b9 as r, _ as i } from "./form-ug6JXjA8.js";
|
|
2
2
|
import { s } from "./field-rac.module-B4l_0KRU.js";
|
|
3
|
-
import { u as m } from "./use-element-state-class-name-
|
|
3
|
+
import { u as m } from "./use-element-state-class-name-DKacixau.js";
|
|
4
4
|
const d = (...e) => {
|
|
5
5
|
const { disabled: a, readOnly: t } = r(), o = m({
|
|
6
6
|
globalClasses: i,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/form-elements",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.114.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": [
|
|
@@ -156,5 +156,5 @@
|
|
|
156
156
|
]
|
|
157
157
|
}
|
|
158
158
|
},
|
|
159
|
-
"falconPackageHash": "
|
|
159
|
+
"falconPackageHash": "5010149ca5f411346fb7bd4b489a4967c533c42bd194ebfe91b29f49"
|
|
160
160
|
}
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import t from "react";
|
|
2
|
-
import { RicosViewer as m } from "@wix/ricos/viewer";
|
|
3
|
-
import s from "classnames";
|
|
4
|
-
import { a, s as o, R as c } from "./radio-button-module-classes-CjDU2x_m.js";
|
|
5
|
-
import { E } from "./error-icon-hZxQ6DEy.js";
|
|
6
|
-
import { s as l } from "./field-rac.module-B4l_0KRU.js";
|
|
7
|
-
import { I as i, U as p, P as R, Q as O, v as _, p as L, R as I } from "./form-CY-iFZdC.js";
|
|
8
|
-
import { u as D } from "./use-element-state-class-name-Dn_LpP1k.js";
|
|
9
|
-
const e = ({ children: r, className: n }) => /* @__PURE__ */ t.createElement(a, {
|
|
10
|
-
className: n
|
|
11
|
-
}, r);
|
|
12
|
-
e.Label = a.Label;
|
|
13
|
-
e.Options = a.Options;
|
|
14
|
-
e.Option = a.Option;
|
|
15
|
-
e.Description = a.Description;
|
|
16
|
-
e.Error = a.Error;
|
|
17
|
-
const N = ({ content: r, locale: n }) => /* @__PURE__ */ t.createElement(m, {
|
|
18
|
-
content: r,
|
|
19
|
-
locale: n
|
|
20
|
-
}), S = () => {
|
|
21
|
-
const r = D({
|
|
22
|
-
globalClasses: I,
|
|
23
|
-
moduleClasses: c
|
|
24
|
-
});
|
|
25
|
-
return /* @__PURE__ */ t.createElement(e, {
|
|
26
|
-
className: o.group
|
|
27
|
-
}, /* @__PURE__ */ t.createElement(e.Label, {
|
|
28
|
-
className: s(i, l.label)
|
|
29
|
-
}, /* @__PURE__ */ t.createElement(e.Label.Required, {
|
|
30
|
-
className: s(p, l.requiredMark)
|
|
31
|
-
})), /* @__PURE__ */ t.createElement(e.Options, {
|
|
32
|
-
className: s(R, o.options)
|
|
33
|
-
}, /* @__PURE__ */ t.createElement(e.Option, {
|
|
34
|
-
className: o.option
|
|
35
|
-
}, /* @__PURE__ */ t.createElement(e.Option.Input, {
|
|
36
|
-
className: o.optionInput
|
|
37
|
-
}), /* @__PURE__ */ t.createElement(e.Option.Control, {
|
|
38
|
-
className: r
|
|
39
|
-
}), /* @__PURE__ */ t.createElement(e.Option.Label, {
|
|
40
|
-
className: s(O, o.optionLabel)
|
|
41
|
-
}))), /* @__PURE__ */ t.createElement(e.Error, {
|
|
42
|
-
className: s(_, l.error)
|
|
43
|
-
}, /* @__PURE__ */ t.createElement(E, null), /* @__PURE__ */ t.createElement(e.Error.Text, null)), /* @__PURE__ */ t.createElement(e.Description, {
|
|
44
|
-
className: s(L, l.description)
|
|
45
|
-
}, N));
|
|
46
|
-
}, T = () => /* @__PURE__ */ t.createElement(S, null);
|
|
47
|
-
export {
|
|
48
|
-
T as EventsRsvpRAC
|
|
49
|
-
};
|
|
@@ -1,133 +0,0 @@
|
|
|
1
|
-
import a, { useRef as S, useState as V, useEffect as T, useCallback as B } from "react";
|
|
2
|
-
import { RadioGroup as H, RadioField as k, RadioButton as A, TextField as G, Input as P } from "react-aria-components";
|
|
3
|
-
import { b9 as v, b6 as $, bj as F, bb as x } from "./form-CY-iFZdC.js";
|
|
4
|
-
import { f as u, a as g } from "./find-child-C60k4CxG.js";
|
|
5
|
-
import { D as U, E as j } from "./field-error-headless-DRkkbv__.js";
|
|
6
|
-
import { L as M } from "./field-label-headless-m633nF93.js";
|
|
7
|
-
import { S as w } from "./selection-indicator-XQ8MYHUQ.js";
|
|
8
|
-
const L = "Other", z = (e, t) => e == null ? void 0 : e.find((n) => (n.value ?? n.label) === t), y = (e, t) => !!t && !z(e, t), J = (e, t) => {
|
|
9
|
-
const l = t ? t.length + 2 : 0;
|
|
10
|
-
return e.slice(l);
|
|
11
|
-
}, i = ({ children: e, className: t }) => {
|
|
12
|
-
const { id: n, value: l, onChange: O, disabled: d, readOnly: _, required: m, onBlur: f, onFocus: b, hasError: r, FieldLayout: c, options: o } = v(), { inputId: h, labelId: C, ariaDescribedBy: I } = $(), s = u(e, i.Label), E = u(e, i.Options), q = u(e, i.Description), D = u(e, i.Error), N = y(o, l) ? L : l || null;
|
|
13
|
-
return /* @__PURE__ */ a.createElement(c, {
|
|
14
|
-
fieldId: n,
|
|
15
|
-
renderLabel: () => g(s, {
|
|
16
|
-
as: "div"
|
|
17
|
-
}),
|
|
18
|
-
renderInput: () => /* @__PURE__ */ a.createElement(H, {
|
|
19
|
-
id: h,
|
|
20
|
-
className: t,
|
|
21
|
-
"aria-labelledby": C,
|
|
22
|
-
"aria-describedby": I,
|
|
23
|
-
value: N,
|
|
24
|
-
onChange: O,
|
|
25
|
-
isDisabled: d,
|
|
26
|
-
isReadOnly: _,
|
|
27
|
-
isRequired: m,
|
|
28
|
-
isInvalid: r,
|
|
29
|
-
onBlur: f,
|
|
30
|
-
onFocus: b
|
|
31
|
-
}, E),
|
|
32
|
-
renderDescription: () => /* @__PURE__ */ a.createElement(a.Fragment, null, D, q)
|
|
33
|
-
});
|
|
34
|
-
}, K = ({ children: e, className: t }) => {
|
|
35
|
-
const { options: n, addOther: l, addOtherLabel: O, id: d, numberOfColumns: _, hasError: m } = v(), { t: f } = F(), b = u(e, i.Option), r = S(null), c = O || f("add-other.default-other-option-label") || L;
|
|
36
|
-
return x(() => {
|
|
37
|
-
var o;
|
|
38
|
-
(o = r.current) == null || o.focus();
|
|
39
|
-
}, d), /* @__PURE__ */ a.createElement("div", {
|
|
40
|
-
className: t,
|
|
41
|
-
"data-columns": _,
|
|
42
|
-
"data-invalid": m
|
|
43
|
-
}, n.map((o, h) => g(b, {
|
|
44
|
-
key: o.value ?? o.label,
|
|
45
|
-
value: o.value ?? o.label,
|
|
46
|
-
label: o.label,
|
|
47
|
-
index: h,
|
|
48
|
-
radioRef: h === 0 ? r : void 0
|
|
49
|
-
})), l && g(b, {
|
|
50
|
-
key: L,
|
|
51
|
-
value: L,
|
|
52
|
-
label: c,
|
|
53
|
-
isOther: !0
|
|
54
|
-
}));
|
|
55
|
-
}, p = ({ children: e, className: t, ...n }) => {
|
|
56
|
-
var I;
|
|
57
|
-
const { value: l, label: O, isOther: d = !1, radioRef: _ } = n, { value: m, options: f } = v(), b = u(e, p.Label), r = u(e, p.Input), c = u(e, p.Control), o = u(e, p.OtherInput), h = d ? y(f, m) : m === l, C = (I = r == null ? void 0 : r.props) == null ? void 0 : I.className;
|
|
58
|
-
return /* @__PURE__ */ a.createElement("div", {
|
|
59
|
-
className: t
|
|
60
|
-
}, /* @__PURE__ */ a.createElement(k, {
|
|
61
|
-
value: l
|
|
62
|
-
}, /* @__PURE__ */ a.createElement(A, {
|
|
63
|
-
ref: _,
|
|
64
|
-
className: C
|
|
65
|
-
}, ({ isSelected: s, isHovered: E }) => /* @__PURE__ */ a.createElement(a.Fragment, null, g(c, {
|
|
66
|
-
isSelected: s,
|
|
67
|
-
isHovered: E
|
|
68
|
-
}), g(b, {
|
|
69
|
-
label: O
|
|
70
|
-
})))), d && h && o);
|
|
71
|
-
}, Q = ({ className: e, ...t }) => {
|
|
72
|
-
const { label: n } = t;
|
|
73
|
-
return /* @__PURE__ */ a.createElement("span", {
|
|
74
|
-
className: e
|
|
75
|
-
}, n);
|
|
76
|
-
}, W = (e) => null, X = ({ className: e }) => {
|
|
77
|
-
const { value: t, onChange: n, addOtherLabel: l, addOtherPlaceholder: O, otherInputCharacterLimit: d, disabled: _, readOnly: m, options: f } = v(), { t: b } = F(), r = S(null), c = y(f, t), o = l || b("add-other.default-other-option-label") || L, [h, C] = V(c && t ? J(t, l) : "");
|
|
78
|
-
T(() => {
|
|
79
|
-
var s;
|
|
80
|
-
c && r.current && ((s = r.current) == null || s.focus());
|
|
81
|
-
}, [
|
|
82
|
-
c
|
|
83
|
-
]);
|
|
84
|
-
const I = B((s) => {
|
|
85
|
-
let E;
|
|
86
|
-
s ? E = `${l}: ${s}` : E = o, n(E), C(s);
|
|
87
|
-
}, [
|
|
88
|
-
n,
|
|
89
|
-
l,
|
|
90
|
-
o
|
|
91
|
-
]);
|
|
92
|
-
return /* @__PURE__ */ a.createElement(G, {
|
|
93
|
-
"aria-label": o,
|
|
94
|
-
value: h,
|
|
95
|
-
onChange: I,
|
|
96
|
-
isDisabled: _,
|
|
97
|
-
isReadOnly: m
|
|
98
|
-
}, /* @__PURE__ */ a.createElement(P, {
|
|
99
|
-
ref: r,
|
|
100
|
-
className: e,
|
|
101
|
-
placeholder: O,
|
|
102
|
-
maxLength: d
|
|
103
|
-
}));
|
|
104
|
-
};
|
|
105
|
-
p.Label = Q;
|
|
106
|
-
p.Input = W;
|
|
107
|
-
p.Control = w;
|
|
108
|
-
p.OtherInput = X;
|
|
109
|
-
i.Label = M;
|
|
110
|
-
i.Options = K;
|
|
111
|
-
i.Option = p;
|
|
112
|
-
i.Description = U;
|
|
113
|
-
i.Error = j;
|
|
114
|
-
const Y = "_labelImage_t7q71_1", Z = "_group_t7q71_26", ee = "_options_t7q71_30", te = "_option_t7q71_30", oe = "_optionInput_t7q71_57", ne = "_optionControl_t7q71_75", le = "_optionControlHover_t7q71_97", ae = "_optionControlSelected_t7q71_115", re = "_optionLabel_t7q71_150", R = {
|
|
115
|
-
labelImage: Y,
|
|
116
|
-
group: Z,
|
|
117
|
-
options: ee,
|
|
118
|
-
option: te,
|
|
119
|
-
optionInput: oe,
|
|
120
|
-
optionControl: ne,
|
|
121
|
-
optionControlHover: le,
|
|
122
|
-
optionControlSelected: ae,
|
|
123
|
-
optionLabel: re
|
|
124
|
-
}, be = {
|
|
125
|
-
base: R.optionControl,
|
|
126
|
-
selected: R.optionControlSelected,
|
|
127
|
-
hover: R.optionControlHover
|
|
128
|
-
};
|
|
129
|
-
export {
|
|
130
|
-
be as R,
|
|
131
|
-
i as a,
|
|
132
|
-
R as s
|
|
133
|
-
};
|