@wix/form-elements 1.62.0 → 1.64.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-Dqib2upI.js → appointment-rac-DojiZqx9.js} +35 -35
- package/dist/component/{bookings-address-rac-E-qq4-KG.js → bookings-address-rac-Bm_lQchD.js} +1 -1
- package/dist/component/{bookings-email-rac-DA_Hwn2j.js → bookings-email-rac-vwuy0kW8.js} +1 -1
- package/dist/component/{bookings-first-name-rac-o1n3lnRo.js → bookings-first-name-rac-BbWuLoeg.js} +1 -1
- package/dist/component/{bookings-header-rac-DQ0YvhxZ.js → bookings-header-rac-DVknNH29.js} +1 -1
- package/dist/component/{bookings-last-name-rac-BqL_84Sg.js → bookings-last-name-rac-BnT3Cq0b.js} +1 -1
- package/dist/component/{bookings-login-bar-rac-CAN7roRc.js → bookings-login-bar-rac-DKi-VAXc.js} +16 -16
- package/dist/component/{bookings-phone-rac-CCJVdvkd.js → bookings-phone-rac-Bfy8rheB.js} +1 -1
- package/dist/component/{bookings-rich-text-rac-CCklquEC.js → bookings-rich-text-rac-DGiBDcXw.js} +1 -1
- package/dist/component/checkbox-field-rac-CYADRY54.js +1312 -0
- package/dist/component/checkbox-group-field-headless-BDAFpX5F.js +210 -0
- package/dist/component/checkbox-group-field-rac-2YUsOmDI.js +40 -0
- package/dist/component/{checkbox-group-rac-DWPClKpf.js → checkbox-group-rac-CQf1C9H5.js} +1 -1
- package/dist/component/{checkbox-rac-CvbOws2U.js → checkbox-rac-Bjv8jZjs.js} +1 -1
- package/dist/component/{contacts-address-rac-CWFHC5LT.js → contacts-address-rac-BBTiEec9.js} +1 -1
- package/dist/component/{contacts-birthdate-rac-DPmJPp8M.js → contacts-birthdate-rac-XReeFHVW.js} +1 -1
- package/dist/component/{contacts-company-rac-UWP9uDqI.js → contacts-company-rac-B-fUQszu.js} +1 -1
- package/dist/component/{contacts-email-rac-BCkkWYhr.js → contacts-email-rac-DBtcCcsV.js} +1 -1
- package/dist/component/{contacts-first-name-rac-KNRf92yT.js → contacts-first-name-rac-mkwU3706.js} +1 -1
- package/dist/component/{contacts-last-name-rac-C_EotEpo.js → contacts-last-name-rac-DY5N-AZx.js} +1 -1
- package/dist/component/{contacts-phone-rac-DJGEWLsl.js → contacts-phone-rac-Ce1rMz_z.js} +1 -1
- package/dist/component/{contacts-position-rac-s1pZ662O.js → contacts-position-rac-B65H8PDu.js} +1 -1
- package/dist/component/contacts-subscribe-rac-BxO8rIyL.js +13 -0
- package/dist/component/{contacts-tax-id-rac-3MUvKEqW.js → contacts-tax-id-rac-Jtt0ySK2.js} +1 -1
- package/dist/component/{date-availability-CRsSX5_d.js → date-availability-B8UwvTJa.js} +1 -1
- package/dist/component/{date-input-field-rac-DPo7waqI.js → date-input-field-rac-RL2a0xoD.js} +23 -23
- package/dist/component/{date-input-rac-DsY8ehb1.js → date-input-rac-ak3G7V07.js} +1 -1
- package/dist/component/{date-picker-field-rac-BtzlxVDB.js → date-picker-field-rac-SL_Roltf.js} +31 -31
- package/dist/component/{date-picker-rac-C-Aw6W87.js → date-picker-rac-ByrM0YIX.js} +1 -1
- package/dist/component/{date-time-input-field-rac-zre1vJ2m.js → date-time-input-field-rac-DOE7xcKi.js} +87 -87
- package/dist/component/{date-time-input-rac-CUvTUzbT.js → date-time-input-rac-BA-GyrAc.js} +1 -1
- package/dist/component/{dext-checkbox-group-rac-D4mhJU8E.js → dext-checkbox-group-rac-EwUnBO80.js} +2 -2
- package/dist/component/{dext-checkbox-rac-BeYmKpAZ.js → dext-checkbox-rac-CIRKi4B5.js} +1 -1
- package/dist/component/{dext-date-picker-rac-Mr0M3sNQ.js → dext-date-picker-rac-BYO_Q1zM.js} +1 -1
- package/dist/component/{dext-date-time-input-rac-dgxfrHUw.js → dext-date-time-input-rac-BOahPeaH.js} +1 -1
- package/dist/component/{dext-dropdown-rac-CdZOoA5M.js → dext-dropdown-rac-sTD_r-0H.js} +1 -1
- package/dist/component/{dext-email-rac-TBiHlKjv.js → dext-email-rac-e-2_h3he.js} +1 -1
- package/dist/component/{dext-number-input-rac-S78swyZ9.js → dext-number-input-rac-D6LACzWl.js} +1 -1
- package/dist/component/{dext-phone-rac-BhIaSHez.js → dext-phone-rac-kUycy5Od.js} +1 -1
- package/dist/component/{dext-radio-group-rac-B4xG4N8A.js → dext-radio-group-rac-DPD2UkrV.js} +2 -2
- package/dist/component/{dext-rating-input-rac-Bp2Pi5cP.js → dext-rating-input-rac-DUsnrl9W.js} +1 -1
- package/dist/component/{dext-tags-rac-Bnjgmyk-.js → dext-tags-rac-D6z69HuO.js} +2 -2
- package/dist/component/{dext-text-area-rac-f1nJTM_n.js → dext-text-area-rac-C-DVtFJ1.js} +1 -1
- package/dist/component/{dext-text-input-rac-B9m6oI-e.js → dext-text-input-rac-CIa2MdC6.js} +1 -1
- package/dist/component/{dext-url-input-rac-CfEUdRdY.js → dext-url-input-rac-8rVVW5us.js} +1 -1
- package/dist/component/{donation-rac-BqKbQD_H.js → donation-rac-BjmSBabc.js} +62 -62
- package/dist/component/{dropdown-field-headless-CzoD076g.js → dropdown-field-headless-DReo519l.js} +5 -5
- package/dist/component/{dropdown-field-rac-5kD98Ubc.js → dropdown-field-rac-DzrjA2O6.js} +7 -7
- package/dist/component/{dropdown-rac-C9NpsRYi.js → dropdown-rac-CS7oLTp_.js} +1 -1
- package/dist/component/{ecom-address-rac-DdvJEnAO.js → ecom-address-rac-EIb88J_6.js} +1 -1
- package/dist/component/{ecom-subscription-checkbox-rac-D7Lf1ETL.js → ecom-subscription-checkbox-rac-CE0Ks6qS.js} +5 -5
- package/dist/component/{email-input-field-rac-DUordV5X.js → email-input-field-rac-BScZxYHw.js} +47 -47
- package/dist/component/{events-repeater-rac-B1yDrnvJ.js → events-repeater-rac-Y0rH2Jli.js} +66 -66
- package/dist/component/{events-rsvp-rac-B65NtAMH.js → events-rsvp-rac-BiAYVv_b.js} +12 -12
- package/dist/component/{field-error-headless-DP4WSQU3.js → field-error-headless-DrnFrGun.js} +4 -4
- package/dist/component/{field-label-headless-BKmi7Fjg.js → field-label-headless-BIYf1BIh.js} +7 -7
- package/dist/component/field-rac.module-CWkwwhq4.js +21 -0
- package/dist/component/{file-upload-rac-DAg_G0_l.js → file-upload-rac-br--tZLp.js} +83 -83
- package/dist/component/{fixed-payment-rac-yO1w1gE2.js → fixed-payment-rac-XEtrsaMy.js} +15 -15
- package/dist/component/{form-D6A2hUbV.js → form-9yjqDnxY.js} +2719 -2709
- package/dist/component/form-element-classes-KRzHUNLu.js +57 -0
- package/dist/component/form.css +1 -1
- package/dist/component/form.js +1 -1
- package/dist/component/{header-field-rac-D3Bi6tTS.js → header-field-rac-CLELgzqY.js} +5 -5
- package/dist/component/{header-rac-Blv89pdS.js → header-rac-D8KGkVVp.js} +1 -1
- package/dist/component/{image-choice-rac-BLUZRNm0.js → image-choice-rac-Cl09CLP4.js} +30 -30
- package/dist/component/{index-BiYk1mJi.js → index-C4y71e1i.js} +2 -2
- package/dist/component/{index-Cv3_acT1.js → index-PHkE0Ru4.js} +4 -4
- package/dist/component/isObjectLike-srCDplej.js +86 -0
- package/dist/component/multiline-address-field-rac-CsBLI9y-.js +1613 -0
- package/dist/component/{multiline-address-rac-B9yHNebZ.js → multiline-address-rac-DFDPFfXh.js} +1 -1
- package/dist/component/{number-input-field-rac-SaC7jFUi.js → number-input-field-rac-DZRR7gdt.js} +19 -19
- package/dist/component/{number-input-rac-KYcJJPrs.js → number-input-rac-BCS5lkff.js} +1 -1
- package/dist/component/{password-rac-CD5bSL2g.js → password-rac-ClDGgR3E.js} +27 -27
- package/dist/component/{payment-input-rac-BlAscmFz.js → payment-input-rac-COydWmUE.js} +34 -34
- package/dist/component/{phone-input-field-rac-D-AosrgV.js → phone-input-field-rac-DYCibqe1.js} +54 -54
- package/dist/component/{phone-rac-DXLYlz5G.js → phone-rac-BS-dmWkJ.js} +1 -1
- package/dist/component/{product-list-rac-CGt4Gnj4.js → product-list-rac-hxOhaA-r.js} +84 -84
- package/dist/component/quiz-radio-group-rac-BT-YZO2Q.js +13 -0
- package/dist/component/{radio-group-field-rac-D8NS7qDq.js → radio-group-field-rac-DKqWnMBJ.js} +3 -3
- package/dist/component/{radio-group-field-rac.module-wK26tCZq.js → radio-group-field-rac.module-BwUynK_5.js} +9 -9
- package/dist/component/{radio-group-rac-HalDjwk1.js → radio-group-rac-DHURQZKK.js} +1 -1
- package/dist/component/{rating-input-field-rac-BBhMkSyL.js → rating-input-field-rac-CZRdSVrf.js} +37 -37
- package/dist/component/{rating-input-rac-BpgFnNoD.js → rating-input-rac-BaH52DYm.js} +1 -1
- package/dist/component/{rich-content-rac.module-BgJ2fteu.js → rich-content-rac.module-ILBfxEmN.js} +4 -4
- package/dist/component/{rich-text-field-rac-BZfCgvHc.js → rich-text-field-rac-B58q8Is7.js} +7 -7
- package/dist/component/{rich-text-rac-CG3V04Gr.js → rich-text-rac-DGbZh1eX.js} +1 -1
- package/dist/component/{service-dropdown-rac-Bc_y-R5O.js → service-dropdown-rac-DUiNIbdv.js} +42 -42
- package/dist/component/{services-multi-choice-rac-BeBdZpRV.js → services-multi-choice-rac-B7y9s2l8.js} +29 -29
- package/dist/component/{signature-rac-DNdpHxFp.js → signature-rac-CydpvQJZ.js} +37 -37
- package/dist/component/{submit-button-rac-Bogk1xYc.js → submit-button-rac-OO53h4H8.js} +8 -8
- package/dist/component/{tags-field-rac-COJG3T_9.js → tags-field-rac-eX3d3JEH.js} +50 -50
- package/dist/component/{tags-rac-DsaUqJ4w.js → tags-rac-CdIB_48Z.js} +1 -1
- package/dist/component/{text-area-field-rac-BVq5p83p.js → text-area-field-rac-Bir5Q7gz.js} +22 -22
- package/dist/component/{text-area-rac-D-uiOy62.js → text-area-rac-Ct1UNU04.js} +1 -1
- package/dist/component/{text-input-field-rac-wYvY_eBR.js → text-input-field-rac-onGUXC9J.js} +6 -6
- package/dist/component/{text-input-headless-BsL6OYhp.js → text-input-headless-Bs9m7QFg.js} +10 -10
- package/dist/component/{text-input-rac-Bu8kXhrN.js → text-input-rac-DK4nEw4D.js} +1 -1
- package/dist/component/{time-input-rac-PWXUi1qL.js → time-input-rac-BCG9ktFa.js} +40 -40
- package/dist/component/{url-input-field-rac-B4qgrssx.js → url-input-field-rac-mUkrVTcL.js} +25 -25
- package/dist/component/{url-input-rac-Bo51kTsG.js → url-input-rac-Cl7LFYlr.js} +1 -1
- package/dist/component/{use-service-options-base-Du6B6AP9.js → use-service-options-base-BYVuKRj2.js} +8 -8
- package/dist/form.d.ts +3 -1
- package/package.json +2 -14
- package/dist/component/checkbox-field-rac-DhAEMdL9.js +0 -625
- package/dist/component/checkbox-group-field-headless-EGVW3vG0.js +0 -204
- package/dist/component/checkbox-group-field-rac-DUDWNOwV.js +0 -33
- package/dist/component/contacts-subscribe-rac-D_2wIX9p.js +0 -13
- package/dist/component/field-rac.module-DtugsLiL.js +0 -21
- package/dist/component/form-element-classes-Bi-nNM8q.js +0 -55
- package/dist/component/isObject-BAwJJxQ3.js +0 -34
- package/dist/component/multiline-address-field-rac-_Sb56AEM.js +0 -1574
- package/dist/component/quiz-radio-group-rac-DaStzNZZ.js +0 -13
package/dist/component/{radio-group-field-rac-D8NS7qDq.js → radio-group-field-rac-DKqWnMBJ.js}
RENAMED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { RicosViewer as s } from "@wix/ricos/viewer";
|
|
2
2
|
import a from "classnames";
|
|
3
3
|
import e from "react";
|
|
4
|
-
import { R as t, s as r } from "./radio-group-field-rac.module-
|
|
4
|
+
import { R as t, s as r } from "./radio-group-field-rac.module-BwUynK_5.js";
|
|
5
5
|
import { E as m } from "./error-icon-hZxQ6DEy.js";
|
|
6
|
-
import { s as l } from "./field-rac.module-
|
|
7
|
-
import {
|
|
6
|
+
import { s as l } from "./field-rac.module-CWkwwhq4.js";
|
|
7
|
+
import { t as c, J as i, H as E, G as _, E as R, s as p, n as O, j as I } from "./form-element-classes-KRzHUNLu.js";
|
|
8
8
|
const L = ({ content: o, locale: n }) => /* @__PURE__ */ e.createElement(s, {
|
|
9
9
|
content: o,
|
|
10
10
|
locale: n
|
|
@@ -1,15 +1,15 @@
|
|
|
1
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
|
|
3
|
-
import {
|
|
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-9yjqDnxY.js";
|
|
4
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-
|
|
6
|
-
import { L as H } from "./field-label-headless-
|
|
5
|
+
import { D as U, E as A } from "./field-error-headless-DrnFrGun.js";
|
|
6
|
+
import { L as H } from "./field-label-headless-BIYf1BIh.js";
|
|
7
7
|
import { N as j } from "./options-layout-constants-DEfIEJWD.js";
|
|
8
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
9
|
const a = t ? t.length + 2 : 0;
|
|
10
10
|
return e.slice(a);
|
|
11
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 } =
|
|
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
13
|
return /* @__PURE__ */ s.createElement(l, {
|
|
14
14
|
fieldId: t,
|
|
15
15
|
renderLabel: () => g(u, {
|
|
@@ -31,7 +31,7 @@ const L = "Other", w = (e, t) => e == null ? void 0 : e.find((o) => (o.value ??
|
|
|
31
31
|
renderDescription: () => /* @__PURE__ */ s.createElement(s.Fragment, null, N, _)
|
|
32
32
|
});
|
|
33
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 } =
|
|
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
35
|
return x(() => {
|
|
36
36
|
var n;
|
|
37
37
|
(n = r.current) == null || n.focus();
|
|
@@ -58,7 +58,7 @@ const L = "Other", w = (e, t) => e == null ? void 0 : e.find((o) => (o.value ??
|
|
|
58
58
|
className: t
|
|
59
59
|
}, /* @__PURE__ */ s.createElement(k, {
|
|
60
60
|
value: a
|
|
61
|
-
}, /* @__PURE__ */ s.createElement(
|
|
61
|
+
}, /* @__PURE__ */ s.createElement(G, {
|
|
62
62
|
ref: f,
|
|
63
63
|
className: n
|
|
64
64
|
}, r, g(v, {
|
|
@@ -88,13 +88,13 @@ const L = "Other", w = (e, t) => e == null ? void 0 : e.find((o) => (o.value ??
|
|
|
88
88
|
a,
|
|
89
89
|
c
|
|
90
90
|
]);
|
|
91
|
-
return /* @__PURE__ */ s.createElement(
|
|
91
|
+
return /* @__PURE__ */ s.createElement(M, {
|
|
92
92
|
"aria-label": c,
|
|
93
93
|
value: I,
|
|
94
94
|
onChange: u,
|
|
95
95
|
isDisabled: f,
|
|
96
96
|
isReadOnly: b
|
|
97
|
-
}, /* @__PURE__ */ s.createElement(
|
|
97
|
+
}, /* @__PURE__ */ s.createElement(P, {
|
|
98
98
|
ref: l,
|
|
99
99
|
className: e,
|
|
100
100
|
placeholder: O,
|
package/dist/component/{rating-input-field-rac-BBhMkSyL.js → rating-input-field-rac-CZRdSVrf.js}
RENAMED
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import { RicosViewer as D } from "@wix/ricos/viewer";
|
|
2
2
|
import d from "classnames";
|
|
3
3
|
import e, { useCallback as N, useState as y, useRef as O } from "react";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
4
|
+
import { ai as b, af as v, as as A } from "./form-9yjqDnxY.js";
|
|
5
|
+
import { RadioGroup as w, RadioField as M, RadioButton as B } from "react-aria-components";
|
|
6
6
|
import { f as m, a as T } from "./find-child-C60k4CxG.js";
|
|
7
|
-
import { D as H, E as
|
|
8
|
-
import { L as
|
|
7
|
+
import { D as H, E as P } from "./field-error-headless-DrnFrGun.js";
|
|
8
|
+
import { L as q } from "./field-label-headless-BIYf1BIh.js";
|
|
9
9
|
import { E as x } from "./error-icon-hZxQ6DEy.js";
|
|
10
|
-
import { s as u } from "./field-rac.module-
|
|
11
|
-
import {
|
|
10
|
+
import { s as u } from "./field-rac.module-CWkwwhq4.js";
|
|
11
|
+
import { t as k, J as z, I as G, n as j, j as J } from "./form-element-classes-KRzHUNLu.js";
|
|
12
12
|
const t = ({ children: r }) => {
|
|
13
|
-
const { id: n, value:
|
|
14
|
-
|
|
15
|
-
]),
|
|
13
|
+
const { id: n, value: s, onChange: o, disabled: l, required: c, hasError: i, onBlur: C, onFocus: L, FieldLayout: E } = b(), { labelId: p } = v(), R = N((F) => o(Number(F)), [
|
|
14
|
+
o
|
|
15
|
+
]), f = m(r, t.Label), a = m(r, t.Ratings), g = m(r, t.Description), S = m(r, t.Error);
|
|
16
16
|
return /* @__PURE__ */ e.createElement(E, {
|
|
17
17
|
fieldId: n,
|
|
18
|
-
renderLabel: () =>
|
|
19
|
-
renderInput: () => /* @__PURE__ */ e.createElement(
|
|
18
|
+
renderLabel: () => f,
|
|
19
|
+
renderInput: () => /* @__PURE__ */ e.createElement(w, {
|
|
20
20
|
"aria-labelledby": p,
|
|
21
|
-
value:
|
|
21
|
+
value: s ? String(s) : void 0,
|
|
22
22
|
onChange: R,
|
|
23
23
|
isDisabled: l,
|
|
24
24
|
isRequired: c,
|
|
@@ -27,16 +27,16 @@ const t = ({ children: r }) => {
|
|
|
27
27
|
onFocus: L,
|
|
28
28
|
orientation: "horizontal"
|
|
29
29
|
}, a),
|
|
30
|
-
renderDescription: () => /* @__PURE__ */ e.createElement(e.Fragment, null, S,
|
|
30
|
+
renderDescription: () => /* @__PURE__ */ e.createElement(e.Fragment, null, S, g)
|
|
31
31
|
});
|
|
32
|
-
}, h = ({ children: r, className: n, getReactionLabel:
|
|
33
|
-
const { value:
|
|
32
|
+
}, h = ({ children: r, className: n, getReactionLabel: s }) => {
|
|
33
|
+
const { value: o, hasError: l } = b(), { inputId: c, ariaDescribedBy: i } = v(), [C, L] = y(), E = O(null), p = m(r, h.Rating), R = [
|
|
34
34
|
"1",
|
|
35
35
|
"2",
|
|
36
36
|
"3",
|
|
37
37
|
"4",
|
|
38
38
|
"5"
|
|
39
|
-
],
|
|
39
|
+
], f = (a) => C ? C >= a : !!o && o >= Number(a);
|
|
40
40
|
return /* @__PURE__ */ e.createElement("div", {
|
|
41
41
|
ref: E,
|
|
42
42
|
id: c,
|
|
@@ -46,11 +46,11 @@ const t = ({ children: r }) => {
|
|
|
46
46
|
}, R.map((a) => T(p, {
|
|
47
47
|
key: a,
|
|
48
48
|
value: a,
|
|
49
|
-
isSelected:
|
|
50
|
-
onHoverChange: (
|
|
51
|
-
label:
|
|
49
|
+
isSelected: f(a),
|
|
50
|
+
onHoverChange: (g) => L(g ? a : void 0),
|
|
51
|
+
label: s == null ? void 0 : s(Number(a))
|
|
52
52
|
})));
|
|
53
|
-
},
|
|
53
|
+
}, Q = {
|
|
54
54
|
border: 0,
|
|
55
55
|
clipPath: "inset(50%)",
|
|
56
56
|
height: 1,
|
|
@@ -60,27 +60,27 @@ const t = ({ children: r }) => {
|
|
|
60
60
|
position: "absolute",
|
|
61
61
|
width: 1,
|
|
62
62
|
whiteSpace: "nowrap"
|
|
63
|
-
}, _ = ({ className: r, children: n, ...
|
|
64
|
-
const { value:
|
|
65
|
-
return /* @__PURE__ */ e.createElement(
|
|
66
|
-
value:
|
|
67
|
-
}, /* @__PURE__ */ e.createElement(
|
|
63
|
+
}, _ = ({ className: r, children: n, ...s }) => {
|
|
64
|
+
const { value: o, isSelected: l, onHoverChange: c, label: i } = s;
|
|
65
|
+
return /* @__PURE__ */ e.createElement(M, {
|
|
66
|
+
value: o
|
|
67
|
+
}, /* @__PURE__ */ e.createElement(B, {
|
|
68
68
|
className: r,
|
|
69
69
|
"data-active": l || void 0,
|
|
70
70
|
onHoverChange: c
|
|
71
71
|
}, typeof n == "function" ? n({
|
|
72
72
|
isSelected: l
|
|
73
73
|
}) : n, i ? /* @__PURE__ */ e.createElement("span", {
|
|
74
|
-
style:
|
|
74
|
+
style: Q
|
|
75
75
|
}, i) : null));
|
|
76
76
|
};
|
|
77
77
|
h.Rating = _;
|
|
78
|
-
t.Label =
|
|
78
|
+
t.Label = q;
|
|
79
79
|
t.Ratings = h;
|
|
80
80
|
t.Rating = _;
|
|
81
81
|
t.Description = H;
|
|
82
|
-
t.Error =
|
|
83
|
-
const
|
|
82
|
+
t.Error = P;
|
|
83
|
+
const U = (r) => /* @__PURE__ */ e.createElement("svg", {
|
|
84
84
|
viewBox: "0 0 32 32",
|
|
85
85
|
width: 32,
|
|
86
86
|
height: 32,
|
|
@@ -90,7 +90,7 @@ const j = (r) => /* @__PURE__ */ e.createElement("svg", {
|
|
|
90
90
|
}, /* @__PURE__ */ e.createElement("path", {
|
|
91
91
|
fillRule: "evenodd",
|
|
92
92
|
d: "M28.6265,13.6325 C28.9655,13.3015 29.0845,12.8175 28.9385,12.3665 C28.7925,11.9165 28.4105,11.5945 27.9415,11.5265 L20.5785,10.4565 C20.5015,10.4445 20.4345,10.3965 20.4005,10.3275 L17.1075,3.6545 L17.1075,3.6535 C16.8975,3.2295 16.4735,2.9655 16.0005,2.9655 L15.9995,2.9655 C15.5255,2.9655 15.1025,3.2295 14.8925,3.6545 L11.5985,10.3275 C11.5645,10.3965 11.4985,10.4445 11.4225,10.4565 L4.0575,11.5265 C3.5895,11.5945 3.2075,11.9165 3.0615,12.3665 C2.9155,12.8175 3.0345,13.3015 3.3735,13.6325 L8.7025,18.8265 C8.7575,18.8805 8.7835,18.9585 8.7705,19.0345 L7.5125,26.3695 C7.4325,26.8355 7.6205,27.2985 8.0035,27.5765 C8.2195,27.7345 8.4735,27.8145 8.7285,27.8145 C8.9245,27.8145 9.1215,27.7665 9.3045,27.6705 L15.8895,24.2085 C15.9595,24.1725 16.0415,24.1725 16.1085,24.2075 L22.6955,27.6705 C23.1155,27.8915 23.6135,27.8555 23.9965,27.5765 C24.3795,27.2985 24.5675,26.8355 24.4875,26.3695 L23.2305,19.0355 C23.2165,18.9585 23.2425,18.8805 23.2975,18.8265 L28.6265,13.6325 Z"
|
|
93
|
-
})),
|
|
93
|
+
})), Z = (r) => /* @__PURE__ */ e.createElement("svg", {
|
|
94
94
|
viewBox: "0 0 32 32",
|
|
95
95
|
width: 32,
|
|
96
96
|
height: 32,
|
|
@@ -100,29 +100,29 @@ const j = (r) => /* @__PURE__ */ e.createElement("svg", {
|
|
|
100
100
|
}, /* @__PURE__ */ e.createElement("path", {
|
|
101
101
|
fillRule: "evenodd",
|
|
102
102
|
d: "M16,3.966 C15.956,3.966 15.848,3.979 15.789,4.097 L12.496,10.77 C12.317,11.133 11.969,11.386 11.567,11.445 L4.202,12.515 C4.072,12.534 4.026,12.634 4.012,12.675 C3.999,12.717 3.978,12.824 4.072,12.917 L9.4,18.111 C9.691,18.394 9.824,18.803 9.755,19.204 L8.498,26.538 C8.476,26.668 8.556,26.742 8.591,26.768 C8.627,26.793 8.721,26.846 8.838,26.786 L15.426,23.323 C15.785,23.133 16.215,23.134 16.574,23.322 L23.162,26.786 C23.277,26.846 23.374,26.793 23.409,26.768 C23.444,26.742 23.524,26.668 23.502,26.538 L22.245,19.204 C22.176,18.803 22.309,18.394 22.6,18.111 L27.928,12.917 C28.022,12.824 28.001,12.717 27.988,12.675 C27.974,12.634 27.928,12.534 27.798,12.515 L20.434,11.445 C20.031,11.386 19.683,11.133 19.504,10.769 L16.211,4.097 C16.152,3.979 16.044,3.966 16,3.966 M8.728,27.814 C8.473,27.814 8.22,27.734 8.003,27.577 C7.62,27.299 7.432,26.836 7.512,26.369 L8.77,19.035 C8.783,18.958 8.758,18.881 8.702,18.826 L3.374,13.633 C3.035,13.302 2.915,12.817 3.061,12.367 C3.208,11.916 3.589,11.594 4.058,11.526 L11.422,10.456 C11.499,10.445 11.565,10.397 11.599,10.328 L14.893,3.654 C15.102,3.23 15.526,2.966 16,2.966 C16.474,2.966 16.898,3.23 17.107,3.654 L20.401,10.327 C20.435,10.397 20.501,10.445 20.579,10.456 L27.942,11.526 C28.411,11.594 28.792,11.916 28.939,12.367 C29.085,12.817 28.965,13.302 28.626,13.633 L23.298,18.826 C23.242,18.881 23.217,18.958 23.23,19.035 L24.488,26.369 C24.568,26.836 24.38,27.299 23.997,27.577 C23.614,27.855 23.116,27.892 22.696,27.671 L16.109,24.208 C16.042,24.173 15.959,24.172 15.891,24.208 L9.304,27.671 C9.122,27.767 8.924,27.814 8.728,27.814"
|
|
103
|
-
})), K = "_ratings_112z7_1", W = "_rating_112z7_1",
|
|
103
|
+
})), K = "_ratings_112z7_1", W = "_rating_112z7_1", I = {
|
|
104
104
|
ratings: K,
|
|
105
105
|
rating: W
|
|
106
106
|
}, X = ({ content: r, locale: n }) => /* @__PURE__ */ e.createElement(D, {
|
|
107
107
|
content: r,
|
|
108
108
|
locale: n
|
|
109
109
|
}), i2 = () => {
|
|
110
|
-
const { t: r } =
|
|
110
|
+
const { t: r } = A();
|
|
111
111
|
return /* @__PURE__ */ e.createElement(t, null, /* @__PURE__ */ e.createElement(t.Label, {
|
|
112
112
|
className: d(k, u.label)
|
|
113
113
|
}, /* @__PURE__ */ e.createElement(t.Label.Required, {
|
|
114
114
|
className: d(z, u.requiredMark)
|
|
115
115
|
})), /* @__PURE__ */ e.createElement(t.Ratings, {
|
|
116
|
-
className:
|
|
116
|
+
className: I.ratings,
|
|
117
117
|
getReactionLabel: (n) => r("rating-input.a11y.reaction-label", {
|
|
118
118
|
count: n
|
|
119
119
|
})
|
|
120
120
|
}, /* @__PURE__ */ e.createElement(t.Rating, {
|
|
121
|
-
className: d(G,
|
|
122
|
-
}, ({ isSelected: n }) => n ? /* @__PURE__ */ e.createElement(
|
|
123
|
-
className: d(
|
|
121
|
+
className: d(G, I.rating)
|
|
122
|
+
}, ({ isSelected: n }) => n ? /* @__PURE__ */ e.createElement(U, null) : /* @__PURE__ */ e.createElement(Z, null))), /* @__PURE__ */ e.createElement(t.Error, {
|
|
123
|
+
className: d(j, u.error)
|
|
124
124
|
}, /* @__PURE__ */ e.createElement(x, null), /* @__PURE__ */ e.createElement(t.Error.Text, null)), /* @__PURE__ */ e.createElement(t.Description, {
|
|
125
|
-
className: d(
|
|
125
|
+
className: d(J, u.description)
|
|
126
126
|
}, X));
|
|
127
127
|
};
|
|
128
128
|
export {
|
package/dist/component/{rich-content-rac.module-BgJ2fteu.js → rich-content-rac.module-ILBfxEmN.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import c, { useState as u } from "react";
|
|
2
|
-
import {
|
|
2
|
+
import { ai as a, ab as i, as as T } from "./form-9yjqDnxY.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";
|
|
@@ -14,13 +14,13 @@ const O = ({ children: e }) => {
|
|
|
14
14
|
}),
|
|
15
15
|
renderDescription: () => null
|
|
16
16
|
});
|
|
17
|
-
},
|
|
18
|
-
toggleTruncate:
|
|
17
|
+
}, f = "_toggleTruncate_5jt03_1", g = {
|
|
18
|
+
toggleTruncate: f
|
|
19
19
|
}, p = ({ isTruncated: e, onClick: t }) => {
|
|
20
20
|
const { t: n } = T(), o = n(e ? "field.rich-text.read-more-button.label" : "field.rich-text.read-less-button.label"), s = e ? r.TOGGLE_TRUNCATE_BUTTON_READ_MORE : r.TOGGLE_TRUNCATE_BUTTON_READ_LESS;
|
|
21
21
|
return /* @__PURE__ */ c.createElement(d, {
|
|
22
22
|
onPress: t,
|
|
23
|
-
className:
|
|
23
|
+
className: g.toggleTruncate,
|
|
24
24
|
"data-hook": s
|
|
25
25
|
}, o);
|
|
26
26
|
};
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import l from "classnames";
|
|
2
2
|
import e from "react";
|
|
3
|
-
import {
|
|
4
|
-
import { u as T, R as C, s as d, T as
|
|
5
|
-
import {
|
|
3
|
+
import { ai as m, L as i, W as u, Z as R } from "./form-9yjqDnxY.js";
|
|
4
|
+
import { u as T, R as C, s as d, T as p } from "./rich-content-rac.module-ILBfxEmN.js";
|
|
5
|
+
import { _ as g } from "./form-element-classes-KRzHUNLu.js";
|
|
6
6
|
const h = {
|
|
7
7
|
colorPalette: R(),
|
|
8
8
|
customStyles: u()
|
|
9
|
-
},
|
|
9
|
+
}, _ = ({ truncate: t = !0 } = {}) => {
|
|
10
10
|
const { content: a, maxShownParagraphs: s } = m(), { displayedContent: n, isTruncated: o, isTruncateButtonShown: r, toggleTruncate: c } = T(a, t ? s : void 0);
|
|
11
11
|
return /* @__PURE__ */ e.createElement(C, null, () => /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(i, {
|
|
12
|
-
className: l(
|
|
12
|
+
className: l(g, d.richContent),
|
|
13
13
|
content: n,
|
|
14
14
|
customTheme: h
|
|
15
|
-
}), r && /* @__PURE__ */ e.createElement(
|
|
15
|
+
}), r && /* @__PURE__ */ e.createElement(p, {
|
|
16
16
|
isTruncated: o,
|
|
17
17
|
onClick: c
|
|
18
18
|
})));
|
|
19
19
|
};
|
|
20
20
|
export {
|
|
21
|
-
|
|
21
|
+
_ as R
|
|
22
22
|
};
|
package/dist/component/{service-dropdown-rac-Bc_y-R5O.js → service-dropdown-rac-DUiNIbdv.js}
RENAMED
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
import t, { useRef as P, useMemo as
|
|
2
|
-
import { RicosViewer as
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import { u as
|
|
6
|
-
import { D as d } from "./dropdown-field-headless-
|
|
7
|
-
import { C as
|
|
8
|
-
import { E as
|
|
9
|
-
import { H as
|
|
10
|
-
import { s as n } from "./field-rac.module-
|
|
11
|
-
import {
|
|
12
|
-
const
|
|
13
|
-
const { actions: r } =
|
|
1
|
+
import t, { useRef as P, useMemo as g, useCallback as h, useEffect as T } from "react";
|
|
2
|
+
import { RicosViewer as w } from "@wix/ricos/viewer";
|
|
3
|
+
import m from "classnames";
|
|
4
|
+
import { ae as A, as as b, F as M, ai as y, ab as U, h as V } from "./form-9yjqDnxY.js";
|
|
5
|
+
import { u as x } from "./use-service-options-base-BYVuKRj2.js";
|
|
6
|
+
import { D as d } from "./dropdown-field-headless-DReo519l.js";
|
|
7
|
+
import { C as H } from "./chevron-down-icon-CcpVm6B-.js";
|
|
8
|
+
import { E as k } from "./error-icon-hZxQ6DEy.js";
|
|
9
|
+
import { H as q } from "./custom-focus-class-_483Pkwp.js";
|
|
10
|
+
import { s as n } from "./field-rac.module-CWkwwhq4.js";
|
|
11
|
+
import { t as B, J as W, s as j, w as J, n as Q, j as Y } from "./form-element-classes-KRzHUNLu.js";
|
|
12
|
+
const z = "00000000-0000-0000-0000-000000000000", G = (e) => {
|
|
13
|
+
const { actions: r } = A(), { t: C } = b(), { addOther: i, addOtherLabel: p } = e, c = p || C("add-other.default-other-option-label"), a = P(!0), E = g(() => {
|
|
14
14
|
var s;
|
|
15
|
-
return ((s = e.options) == null ? void 0 : s.map((
|
|
15
|
+
return ((s = e.options) == null ? void 0 : s.map((u) => u.id ?? "")) ?? [];
|
|
16
16
|
}, [
|
|
17
17
|
e.options
|
|
18
|
-
]), O =
|
|
18
|
+
]), O = h((s) => i ? [
|
|
19
19
|
...s,
|
|
20
20
|
{
|
|
21
21
|
value: c,
|
|
22
22
|
label: c,
|
|
23
|
-
id:
|
|
23
|
+
id: z
|
|
24
24
|
}
|
|
25
25
|
] : s, [
|
|
26
26
|
i,
|
|
27
27
|
c
|
|
28
|
-
]), { isLoading: f, options: l, isEmpty: D, shouldRender: I, setIsLoading: F, setOptions: L, setIsEmpty:
|
|
28
|
+
]), { isLoading: f, options: l, isEmpty: D, shouldRender: I, setIsLoading: F, setOptions: L, setIsEmpty: S, processOptions: _ } = x({
|
|
29
29
|
fieldType: M.SERVICES_DROPDOWN,
|
|
30
30
|
isEditor: e.isEditor,
|
|
31
31
|
postProcessOptions: O
|
|
32
|
-
}),
|
|
32
|
+
}), R = h(async () => {
|
|
33
33
|
if (a.current && (r != null && r.fetchServices) && E.length > 0) {
|
|
34
34
|
a.current = !1, F(!0);
|
|
35
35
|
let s;
|
|
@@ -37,12 +37,12 @@ const G = "00000000-0000-0000-0000-000000000000", J = (e) => {
|
|
|
37
37
|
s = await r.fetchServices({
|
|
38
38
|
serviceIds: E
|
|
39
39
|
});
|
|
40
|
-
} catch (
|
|
41
|
-
console.error(
|
|
40
|
+
} catch (u) {
|
|
41
|
+
console.error(u);
|
|
42
42
|
}
|
|
43
43
|
if (s) {
|
|
44
|
-
const
|
|
45
|
-
|
|
44
|
+
const u = _(s);
|
|
45
|
+
S(!i && u.length === 0), L(u);
|
|
46
46
|
} else
|
|
47
47
|
a.current = !0;
|
|
48
48
|
F(!1);
|
|
@@ -54,25 +54,25 @@ const G = "00000000-0000-0000-0000-000000000000", J = (e) => {
|
|
|
54
54
|
i,
|
|
55
55
|
F,
|
|
56
56
|
L,
|
|
57
|
-
|
|
57
|
+
S
|
|
58
58
|
]);
|
|
59
59
|
T(() => {
|
|
60
60
|
if (!e.isEditor && l.length > 0) {
|
|
61
61
|
const s = i ? l.length - 1 : l.length;
|
|
62
|
-
|
|
62
|
+
S(s === 0);
|
|
63
63
|
}
|
|
64
64
|
}, [
|
|
65
65
|
l,
|
|
66
66
|
i,
|
|
67
|
-
|
|
67
|
+
S,
|
|
68
68
|
e.isEditor
|
|
69
69
|
]);
|
|
70
|
-
const v =
|
|
71
|
-
e.onFocus && e.onFocus(), a.current &&
|
|
70
|
+
const v = h(() => {
|
|
71
|
+
e.onFocus && e.onFocus(), a.current && R();
|
|
72
72
|
}, [
|
|
73
|
-
|
|
73
|
+
R,
|
|
74
74
|
e.onFocus
|
|
75
|
-
]), N =
|
|
75
|
+
]), N = h(
|
|
76
76
|
(s) => {
|
|
77
77
|
e.onChange && e.onChange(s), a.current = !0;
|
|
78
78
|
},
|
|
@@ -90,10 +90,10 @@ const G = "00000000-0000-0000-0000-000000000000", J = (e) => {
|
|
|
90
90
|
shouldRender: I
|
|
91
91
|
};
|
|
92
92
|
}, o = ({ children: e }) => {
|
|
93
|
-
const r = y(), { addOther: C } = r, i =
|
|
93
|
+
const r = y(), { addOther: C } = r, i = U(), p = r.isEditor || i.isEditor || i.isComposer, { isLoading: c, options: a, isEmpty: E, onFocus: O, onChange: f, shouldRender: l } = G({
|
|
94
94
|
...r,
|
|
95
95
|
isEditor: p
|
|
96
|
-
}), D =
|
|
96
|
+
}), D = g(() => ({
|
|
97
97
|
...r,
|
|
98
98
|
options: c ? [] : a,
|
|
99
99
|
isLoading: c,
|
|
@@ -106,7 +106,7 @@ const G = "00000000-0000-0000-0000-000000000000", J = (e) => {
|
|
|
106
106
|
O,
|
|
107
107
|
f
|
|
108
108
|
]);
|
|
109
|
-
return !p && E && !C || !l ? null : /* @__PURE__ */ t.createElement(
|
|
109
|
+
return !p && E && !C || !l ? null : /* @__PURE__ */ t.createElement(V.Provider, {
|
|
110
110
|
value: {
|
|
111
111
|
v2: D
|
|
112
112
|
}
|
|
@@ -117,25 +117,25 @@ o.Trigger = d.Trigger;
|
|
|
117
117
|
o.Options = d.Options;
|
|
118
118
|
o.Description = d.Description;
|
|
119
119
|
o.Error = d.Error;
|
|
120
|
-
const K = ({ content: e, locale: r }) => /* @__PURE__ */ t.createElement(
|
|
120
|
+
const K = ({ content: e, locale: r }) => /* @__PURE__ */ t.createElement(w, {
|
|
121
121
|
content: e,
|
|
122
122
|
locale: r
|
|
123
123
|
}), X = () => /* @__PURE__ */ t.createElement(o, null, /* @__PURE__ */ t.createElement(o.Label, {
|
|
124
|
-
className:
|
|
124
|
+
className: m(B, n.label)
|
|
125
125
|
}, /* @__PURE__ */ t.createElement(o.Label.Required, {
|
|
126
|
-
className:
|
|
126
|
+
className: m(W, n.requiredMark)
|
|
127
127
|
})), /* @__PURE__ */ t.createElement(o.Trigger, {
|
|
128
|
-
className:
|
|
129
|
-
}, /* @__PURE__ */ t.createElement(
|
|
128
|
+
className: m(j, n.input, n.dropdownTrigger)
|
|
129
|
+
}, /* @__PURE__ */ t.createElement(H, {
|
|
130
130
|
className: n.dropdownIcon
|
|
131
131
|
})), /* @__PURE__ */ t.createElement(o.Options, {
|
|
132
|
-
className:
|
|
132
|
+
className: m(J, n.selectPopover, n.dropdownPopover)
|
|
133
133
|
}, /* @__PURE__ */ t.createElement(o.Options.Option, {
|
|
134
|
-
className:
|
|
134
|
+
className: m(n.selectOption, q)
|
|
135
135
|
})), /* @__PURE__ */ t.createElement(o.Error, {
|
|
136
|
-
className:
|
|
137
|
-
}, /* @__PURE__ */ t.createElement(
|
|
138
|
-
className:
|
|
136
|
+
className: m(Q, n.error)
|
|
137
|
+
}, /* @__PURE__ */ t.createElement(k, null), /* @__PURE__ */ t.createElement(o.Error.Text, null)), /* @__PURE__ */ t.createElement(o.Description, {
|
|
138
|
+
className: m(Y, n.description)
|
|
139
139
|
}, K)), le = () => /* @__PURE__ */ t.createElement(X, null);
|
|
140
140
|
export {
|
|
141
141
|
le as ServiceDropdownRAC
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import e, { useEffect as
|
|
2
|
-
import { RicosViewer as
|
|
3
|
-
import
|
|
4
|
-
import { F as R,
|
|
5
|
-
import { u as D } from "./use-service-options-base-
|
|
6
|
-
import { C as i } from "./checkbox-group-field-headless-
|
|
1
|
+
import e, { useEffect as C, useMemo as I } from "react";
|
|
2
|
+
import { RicosViewer as L } from "@wix/ricos/viewer";
|
|
3
|
+
import r from "classnames";
|
|
4
|
+
import { F as R, ai as F, h as d } from "./form-9yjqDnxY.js";
|
|
5
|
+
import { u as D } from "./use-service-options-base-BYVuKRj2.js";
|
|
6
|
+
import { C as i } from "./checkbox-group-field-headless-BDAFpX5F.js";
|
|
7
7
|
import { E as h } from "./error-icon-hZxQ6DEy.js";
|
|
8
|
-
import { s as n } from "./field-rac.module-
|
|
9
|
-
import {
|
|
10
|
-
import { o as
|
|
11
|
-
const
|
|
8
|
+
import { s as n } from "./field-rac.module-CWkwwhq4.js";
|
|
9
|
+
import { t as f, J as N, N as b, O as M, P as A, s as v, n as x, j as P } from "./form-element-classes-KRzHUNLu.js";
|
|
10
|
+
import { o as _ } from "./options-rac.module-KM-VT_KY.js";
|
|
11
|
+
const T = (o) => {
|
|
12
12
|
var S;
|
|
13
|
-
const { isLoading:
|
|
13
|
+
const { isLoading: s, options: a, isEmpty: c, shouldRender: E, setOptions: l, setIsEmpty: m, setHasInitialDataLoaded: p } = D({
|
|
14
14
|
fieldType: R.SERVICES_MULTI_CHOICE,
|
|
15
15
|
isEditor: o.isEditor
|
|
16
16
|
}), u = (S = o.options) == null ? void 0 : S.every((O) => O.label && O.id);
|
|
17
|
-
return
|
|
17
|
+
return C(() => {
|
|
18
18
|
if (u && o.options) {
|
|
19
19
|
l(o.options), m(o.options.length === 0), p(!0);
|
|
20
20
|
return;
|
|
@@ -26,20 +26,20 @@ const k = (o) => {
|
|
|
26
26
|
m,
|
|
27
27
|
p
|
|
28
28
|
]), {
|
|
29
|
-
isLoading:
|
|
29
|
+
isLoading: s,
|
|
30
30
|
options: a,
|
|
31
31
|
isEmpty: c,
|
|
32
32
|
shouldRender: E
|
|
33
33
|
};
|
|
34
34
|
}, t = ({ children: o }) => {
|
|
35
|
-
const
|
|
36
|
-
...
|
|
35
|
+
const s = F(), { options: a, isEmpty: c, shouldRender: E } = T(s), l = I(() => ({
|
|
36
|
+
...s,
|
|
37
37
|
options: a
|
|
38
38
|
}), [
|
|
39
|
-
|
|
39
|
+
s,
|
|
40
40
|
a
|
|
41
41
|
]);
|
|
42
|
-
return !
|
|
42
|
+
return !s.isEditor && c || !E ? null : /* @__PURE__ */ e.createElement(d.Provider, {
|
|
43
43
|
value: {
|
|
44
44
|
v2: l
|
|
45
45
|
}
|
|
@@ -49,28 +49,28 @@ t.Label = i.Label;
|
|
|
49
49
|
t.Options = i.Options;
|
|
50
50
|
t.Description = i.Description;
|
|
51
51
|
t.Error = i.Error;
|
|
52
|
-
const
|
|
52
|
+
const k = ({ content: o, locale: s }) => /* @__PURE__ */ e.createElement(L, {
|
|
53
53
|
content: o,
|
|
54
|
-
locale:
|
|
54
|
+
locale: s
|
|
55
55
|
}), y = () => /* @__PURE__ */ e.createElement(t, null, /* @__PURE__ */ e.createElement(t.Label, {
|
|
56
|
-
className:
|
|
56
|
+
className: r(f, n.label)
|
|
57
57
|
}, /* @__PURE__ */ e.createElement(t.Label.Required, {
|
|
58
|
-
className:
|
|
58
|
+
className: r(N, n.requiredMark)
|
|
59
59
|
})), /* @__PURE__ */ e.createElement(t.Options, {
|
|
60
|
-
className:
|
|
60
|
+
className: r(b, _.options)
|
|
61
61
|
}, /* @__PURE__ */ e.createElement(t.Options.Option, null, /* @__PURE__ */ e.createElement(t.Options.Option.Checkbox, {
|
|
62
62
|
className: n.checkbox
|
|
63
63
|
}, /* @__PURE__ */ e.createElement(t.Options.Option.Checkbox.Input, {
|
|
64
|
-
className:
|
|
64
|
+
className: r(M, n.checkboxInput)
|
|
65
65
|
}), /* @__PURE__ */ e.createElement(t.Options.Option.Checkbox.Label, {
|
|
66
|
-
className:
|
|
66
|
+
className: r(A, _.optionLabel)
|
|
67
67
|
})), /* @__PURE__ */ e.createElement(t.Options.Option.OtherInput, {
|
|
68
|
-
inputClassName:
|
|
68
|
+
inputClassName: r(v, n.input)
|
|
69
69
|
}))), /* @__PURE__ */ e.createElement(t.Error, {
|
|
70
|
-
className:
|
|
70
|
+
className: r(x, n.error)
|
|
71
71
|
}, /* @__PURE__ */ e.createElement(h, null), /* @__PURE__ */ e.createElement(t.Error.Text, null)), /* @__PURE__ */ e.createElement(t.Description, {
|
|
72
|
-
className:
|
|
73
|
-
},
|
|
72
|
+
className: r(P, n.description)
|
|
73
|
+
}, k)), Q = () => /* @__PURE__ */ e.createElement(y, null);
|
|
74
74
|
export {
|
|
75
|
-
|
|
75
|
+
Q as ServicesMultiChoiceRAC
|
|
76
76
|
};
|