@wix/form-elements 1.146.0 → 1.148.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-scUix9QX.js → appointment-rac-BNqXl3dq.js} +168 -164
- package/dist/component/{bookings-address-rac-CKemkJOO.js → bookings-address-rac-DzLf588z.js} +1 -1
- package/dist/component/{bookings-email-rac-CDqdhPAB.js → bookings-email-rac-BCNWH7ss.js} +1 -1
- package/dist/component/{bookings-first-name-rac-DEy_7Hjb.js → bookings-first-name-rac-D36aHUOJ.js} +1 -1
- package/dist/component/{bookings-header-rac-Bl4xy9lB.js → bookings-header-rac-CNr2y2ES.js} +1 -1
- package/dist/component/{bookings-last-name-rac-CsL9xQ1W.js → bookings-last-name-rac-yHE6ZIxr.js} +1 -1
- package/dist/component/{bookings-login-bar-rac-DkHYQ4No.js → bookings-login-bar-rac-C3weOc1i.js} +6 -6
- package/dist/component/{bookings-phone-rac-BoBiFwbV.js → bookings-phone-rac-CIo_ApRf.js} +1 -1
- package/dist/component/{bookings-rich-text-rac-DZZnPKWA.js → bookings-rich-text-rac-rgKnvt57.js} +1 -1
- package/dist/component/{checkbox-field-rac-UgLmJxB-.js → checkbox-field-rac-CMaVxLNe.js} +9 -7
- package/dist/component/{checkbox-group-field-headless-C809nB0Q.js → checkbox-group-field-headless-XPtqS8Km.js} +68 -68
- package/dist/component/{checkbox-group-field-rac-u4i4wG21.js → checkbox-group-field-rac-C_58XfQt.js} +9 -9
- package/dist/component/{checkbox-group-rac-DBAQhSo3.js → checkbox-group-rac-FQrWViSh.js} +1 -1
- package/dist/component/{checkbox-indicator-module-classes-6173wvuW.js → checkbox-indicator-module-classes-akWZsZNn.js} +1 -1
- package/dist/component/{checkbox-rac-FDQVsI5-.js → checkbox-rac-C5Lj2b1N.js} +1 -1
- package/dist/component/{contacts-address-rac-DnArylPa.js → contacts-address-rac-OhpLzD0X.js} +1 -1
- package/dist/component/{contacts-birthdate-rac-C19jhGEO.js → contacts-birthdate-rac-Dnqq84ct.js} +1 -1
- package/dist/component/{contacts-company-rac-Dxs0hs_i.js → contacts-company-rac-DMnTF55t.js} +1 -1
- package/dist/component/{contacts-email-rac-D-H43L8r.js → contacts-email-rac-DmZhScW2.js} +1 -1
- package/dist/component/{contacts-first-name-rac-DwV5NESk.js → contacts-first-name-rac-B6A4fuzK.js} +1 -1
- package/dist/component/{contacts-last-name-rac-C5v2xurf.js → contacts-last-name-rac-DVz97lew.js} +1 -1
- package/dist/component/{contacts-phone-rac-D9a5x-xl.js → contacts-phone-rac-DV8aO0uS.js} +1 -1
- package/dist/component/{contacts-position-rac-DfsgOv-k.js → contacts-position-rac-BP_yBIE4.js} +1 -1
- package/dist/component/{contacts-subscribe-rac-B-Hho0Kb.js → contacts-subscribe-rac-wmTprtLf.js} +1 -1
- package/dist/component/{contacts-tax-id-rac-q6TQkB4b.js → contacts-tax-id-rac-CUEPBQye.js} +1 -1
- package/dist/component/{date-availability-CMDvf5VU.js → date-availability-BK_0gLRv.js} +1 -1
- package/dist/component/{date-input-field-rac-C1WLUct3.js → date-input-field-rac-BfWPvRnd.js} +84 -78
- package/dist/component/{date-input-rac-cNQ-nr4D.js → date-input-rac-B7vAMRBX.js} +1 -1
- package/dist/component/{date-picker-field-rac-mx11z-MO.js → date-picker-field-rac-CpDY4EkU.js} +111 -105
- package/dist/component/{date-picker-rac-DeTz17zC.js → date-picker-rac-BCswaZB1.js} +1 -1
- package/dist/component/{date-time-input-field-rac-feQ2E1eU.js → date-time-input-field-rac-D9w4eEa0.js} +135 -129
- package/dist/component/{date-time-input-rac-G0s0xP4v.js → date-time-input-rac-_im8-JRC.js} +1 -1
- package/dist/component/{dext-checkbox-group-rac-BcTN1nJb.js → dext-checkbox-group-rac-Di7B1Wzv.js} +2 -2
- package/dist/component/{dext-checkbox-rac-DX0TOrCO.js → dext-checkbox-rac-BPendOsP.js} +1 -1
- package/dist/component/{dext-date-picker-rac-CpDp11oa.js → dext-date-picker-rac-_-Ig9Qn6.js} +1 -1
- package/dist/component/{dext-date-time-input-rac-BRvO8izU.js → dext-date-time-input-rac-dKFW87yu.js} +1 -1
- package/dist/component/{dext-dropdown-rac-DGZ4Yi_X.js → dext-dropdown-rac-Cpdpps7P.js} +1 -1
- package/dist/component/{dext-email-rac-B9YCFHB4.js → dext-email-rac-D4UmYH5m.js} +1 -1
- package/dist/component/{dext-number-input-rac-D890dBZf.js → dext-number-input-rac-DUetGnYJ.js} +1 -1
- package/dist/component/{dext-phone-rac-BAQftbXo.js → dext-phone-rac-Bsz_DAT9.js} +1 -1
- package/dist/component/dext-radio-group-rac-B_soj2FD.js +18 -0
- package/dist/component/{dext-rating-input-rac-BqQKVaHo.js → dext-rating-input-rac-cm40qt4O.js} +1 -1
- package/dist/component/{dext-tags-rac-zxxKcNUe.js → dext-tags-rac-D1ULx6t1.js} +2 -2
- package/dist/component/{dext-text-area-rac-Ctp9SwPg.js → dext-text-area-rac-IkL67rHB.js} +1 -1
- package/dist/component/{dext-text-input-rac-c_QMlyjr.js → dext-text-input-rac-DsYSTEL2.js} +1 -1
- package/dist/component/{dext-url-input-rac-96pv15aC.js → dext-url-input-rac-BKvEkpYu.js} +1 -1
- package/dist/component/{donation-rac-GEWKSLJY.js → donation-rac-CaCXMa-H.js} +87 -85
- package/dist/component/{dropdown-field-headless-C3OxMhLE.js → dropdown-field-headless-DcrQK8mL.js} +36 -34
- package/dist/component/{dropdown-field-rac-CCXfBmSc.js → dropdown-field-rac-CuGoz_6I.js} +9 -10
- package/dist/component/{dropdown-rac-CR7hswXE.js → dropdown-rac-rIe6ZqaZ.js} +1 -1
- package/dist/component/{ecom-address-rac-khMuxEFD.js → ecom-address-rac-DT0rzvvp.js} +1 -1
- package/dist/component/{ecom-subscription-checkbox-rac-CAi_AHpb.js → ecom-subscription-checkbox-rac-ZfbiME6e.js} +5 -5
- package/dist/component/{email-input-field-rac-B83mY2lg.js → email-input-field-rac-8Qn3yskh.js} +62 -62
- package/dist/component/{events-repeater-rac-ClEwXgmb.js → events-repeater-rac-DyHrMd3y.js} +25 -21
- package/dist/component/{events-rsvp-rac-BJ5q2SVR.js → events-rsvp-rac-CoL-euuc.js} +9 -9
- package/dist/component/{field-error-headless-CsYQCsiT.js → field-error-headless-RylIeqXr.js} +6 -6
- package/dist/component/{field-label-headless-Yg_1PMSg.js → field-label-headless-d3hZxIEc.js} +15 -15
- package/dist/component/field-rac.module-DP0lkkEv.js +25 -0
- package/dist/component/{file-upload-rac-DJsuI_lR.js → file-upload-rac-rXbabrgc.js} +172 -168
- package/dist/component/{fixed-payment-rac-BMFe9wxU.js → fixed-payment-rac-CaR7pXXA.js} +13 -13
- package/dist/component/{form-Bed4Kfz8.js → form-DhIEC3nB.js} +2309 -2308
- package/dist/component/form.css +1 -1
- package/dist/component/form.js +2 -2
- package/dist/component/{header-field-rac-DPQTrOSZ.js → header-field-rac-nELbyGjP.js} +4 -4
- package/dist/component/{header-rac-CzXsuLmE.js → header-rac-q80EQNmM.js} +1 -1
- package/dist/component/{image-choice-rac-R_4pbOSr.js → image-choice-rac-CLMiTQK0.js} +42 -42
- package/dist/component/{index-DZxHlvzt.js → index-C-jVrv9Y.js} +91 -91
- package/dist/component/{index-qSZCe_WC.js → index-DnLJzPM-.js} +2 -2
- package/dist/component/{isObjectLike-B-a5uaU-.js → isObjectLike-Bf577MHV.js} +15 -15
- package/dist/component/{multiline-address-field-rac-rv4IZZy_.js → multiline-address-field-rac-BVAv1w9F.js} +155 -137
- package/dist/component/{multiline-address-rac-DZ7cYtgn.js → multiline-address-rac-qMuUHA9U.js} +1 -1
- package/dist/component/{number-input-field-rac-CL9iXKIf.js → number-input-field-rac-B_vnBWFG.js} +24 -22
- package/dist/component/{number-input-rac-BeGn6qJR.js → number-input-rac-BPCIW8Fz.js} +1 -1
- package/dist/component/{password-rac-DfvhdsKG.js → password-rac-D72HG72u.js} +28 -26
- package/dist/component/{payment-input-rac-BmMfi5rf.js → payment-input-rac-DthVgsAi.js} +32 -30
- package/dist/component/{phone-input-field-rac-DW0a1pXs.js → phone-input-field-rac-XIPkH8Fb.js} +46 -46
- package/dist/component/{phone-rac-quZjJ08H.js → phone-rac-U94fCfer.js} +1 -1
- package/dist/component/{product-list-rac-Ci0KB7sN.js → product-list-rac-BRMGPyhr.js} +78 -78
- package/dist/component/{quiz-radio-group-rac--UUtGx2t.js → quiz-radio-group-rac-DafNzzgX.js} +1 -1
- package/dist/component/radio-button-module-classes-DtFlHID_.js +134 -0
- package/dist/component/{radio-group-field-rac-w8fHpFKJ.js → radio-group-field-rac-BXrYWjew.js} +13 -13
- package/dist/component/{radio-group-rac-jO8aghii.js → radio-group-rac-BNyFfQYV.js} +1 -1
- package/dist/component/{rating-input-field-rac-BRc2PtqE.js → rating-input-field-rac-KbkiVCZ7.js} +27 -27
- package/dist/component/{rating-input-rac-D9zs06xR.js → rating-input-rac-zT4vPkwP.js} +1 -1
- package/dist/component/{rich-content-rac.module-Cv3ZmD00.js → rich-content-rac.module-C0OQetct.js} +8 -8
- package/dist/component/{rich-text-field-rac-BmWuIfA8.js → rich-text-field-rac-T4NoShC0.js} +4 -4
- package/dist/component/{rich-text-rac-BnqnrvB1.js → rich-text-rac-m6VRCRZu.js} +1 -1
- package/dist/component/{service-dropdown-rac-Cl81KfJU.js → service-dropdown-rac-BFwKhL1l.js} +44 -45
- package/dist/component/{services-multi-choice-rac-sQ1NF9hY.js → services-multi-choice-rac-DjzcuRWv.js} +13 -13
- package/dist/component/{signature-rac-Huairu7V.js → signature-rac-B1LPKnIw.js} +281 -279
- package/dist/component/{submit-button-rac-Dpg7N0TG.js → submit-button-rac-Cz3PVtW4.js} +25 -25
- package/dist/component/{tags-field-rac-BQ8TEqXH.js → tags-field-rac-DzSoL__s.js} +82 -82
- package/dist/component/{tags-rac-CFOmyCCc.js → tags-rac-DMYJDrm-.js} +1 -1
- package/dist/component/{text-area-field-rac-DNiMa7d3.js → text-area-field-rac-SuMzBm-Q.js} +30 -28
- package/dist/component/{text-area-rac-kLFe-KbZ.js → text-area-rac-C-zmnJgt.js} +1 -1
- package/dist/component/{text-input-field-rac-CqENSUUX.js → text-input-field-rac-BmQlXTK9.js} +6 -6
- package/dist/component/text-input-headless-BsrjGTK4.js +47 -0
- package/dist/component/{text-input-rac-uYQEfOtE.js → text-input-rac-DhQFKG4h.js} +1 -1
- package/dist/component/time-input-rac-CRZZdbTI.js +161 -0
- package/dist/component/{url-input-field-rac-BioH7kuz.js → url-input-field-rac-D617Pvsf.js} +30 -28
- package/dist/component/{url-input-rac-D2VSSyqW.js → url-input-rac-CLvxaWZz.js} +1 -1
- package/dist/component/use-dropdown-trigger-class-name-C4uqTKFP.js +117 -0
- package/dist/component/{use-element-state-class-name-oiKCauK-.js → use-element-state-class-name-DJx-T0zf.js} +3 -3
- package/dist/component/use-hoverable-input-class-name-pwVZXwrY.js +25 -0
- package/dist/component/use-is-forced-open-dropdown-DBpm1D-o.js +48 -0
- package/dist/component/{use-service-options-base-DXG60hA5.js → use-service-options-base-xHeVTve3.js} +6 -6
- package/dist/component/use-text-input-class-name-CrEjJ2Z8.js +6 -0
- package/dist/form.d.ts +5 -0
- package/package.json +2 -2
- package/dist/component/dext-radio-group-rac-CtEjnu_X.js +0 -18
- package/dist/component/field-rac.module-DfEb7pBp.js +0 -25
- package/dist/component/radio-button-module-classes-CqdBGknT.js +0 -132
- package/dist/component/text-input-headless-BdPkEeK2.js +0 -45
- package/dist/component/time-input-rac-BYoojlJ9.js +0 -159
- package/dist/component/use-dropdown-option-class-name-BEmvU-Gg.js +0 -115
- package/dist/component/use-dropdown-trigger-class-name-qj9skLWZ.js +0 -40
- package/dist/component/use-hoverable-input-class-name-BW3nCyhG.js +0 -25
- package/dist/component/use-text-input-class-name-BhQFcXYH.js +0 -6
package/dist/component/{rich-content-rac.module-Cv3ZmD00.js → rich-content-rac.module-C0OQetct.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import c, { useState as u } from "react";
|
|
2
|
-
import {
|
|
2
|
+
import { bo as a, bg as i, by as T } from "./form-DhIEC3nB.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,17 +14,17 @@ const O = ({ children: e }) => {
|
|
|
14
14
|
}),
|
|
15
15
|
renderDescription: () => null
|
|
16
16
|
});
|
|
17
|
-
},
|
|
18
|
-
toggleTruncate:
|
|
17
|
+
}, g = "_toggleTruncate_5jt03_1", f = {
|
|
18
|
+
toggleTruncate: g
|
|
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: f.toggleTruncate,
|
|
24
24
|
"data-hook": s
|
|
25
25
|
}, o);
|
|
26
26
|
};
|
|
27
|
-
function
|
|
27
|
+
function y(e, t) {
|
|
28
28
|
const [n, o] = u(!0);
|
|
29
29
|
function s() {
|
|
30
30
|
o((l) => !l);
|
|
@@ -38,12 +38,12 @@ function B(e, t) {
|
|
|
38
38
|
toggleTruncate: s
|
|
39
39
|
};
|
|
40
40
|
}
|
|
41
|
-
const C = "_richContent_1galb_1",
|
|
41
|
+
const C = "_richContent_1galb_1", B = {
|
|
42
42
|
richContent: C
|
|
43
43
|
};
|
|
44
44
|
export {
|
|
45
45
|
O as R,
|
|
46
46
|
p as T,
|
|
47
|
-
|
|
48
|
-
|
|
47
|
+
B as s,
|
|
48
|
+
y as u
|
|
49
49
|
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import l from "classnames";
|
|
2
2
|
import e from "react";
|
|
3
|
-
import {
|
|
4
|
-
import { u as C, R as d, s as g, T as p } from "./rich-content-rac.module-
|
|
3
|
+
import { bo as m, aB as i, aj as u, a$ as R, b2 as T } from "./form-DhIEC3nB.js";
|
|
4
|
+
import { u as C, R as d, s as g, T as p } from "./rich-content-rac.module-C0OQetct.js";
|
|
5
5
|
const h = {
|
|
6
6
|
colorPalette: T(),
|
|
7
7
|
customStyles: R()
|
|
8
8
|
}, P = ({ truncate: t = !0 } = {}) => {
|
|
9
|
-
const { content: a, maxShownParagraphs: s } =
|
|
10
|
-
return /* @__PURE__ */ e.createElement(d, null, () => /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(
|
|
9
|
+
const { content: a, maxShownParagraphs: s } = m(), { displayedContent: n, isTruncated: o, isTruncateButtonShown: r, toggleTruncate: c } = C(a, t ? s : void 0);
|
|
10
|
+
return /* @__PURE__ */ e.createElement(d, null, () => /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(i, {
|
|
11
11
|
className: l(u, g.richContent),
|
|
12
12
|
content: n,
|
|
13
13
|
customTheme: h
|
package/dist/component/{service-dropdown-rac-Cl81KfJU.js → service-dropdown-rac-BFwKhL1l.js}
RENAMED
|
@@ -1,17 +1,16 @@
|
|
|
1
1
|
import t, { useRef as T, useMemo as _, useCallback as C, useEffect as b } from "react";
|
|
2
2
|
import { RicosViewer as w } from "@wix/ricos/viewer";
|
|
3
3
|
import E from "classnames";
|
|
4
|
-
import {
|
|
5
|
-
import { u as B } from "./use-service-options-base-
|
|
6
|
-
import { D as u } from "./dropdown-field-headless-
|
|
7
|
-
import { C as
|
|
8
|
-
import { E as
|
|
9
|
-
import { H as
|
|
10
|
-
import { s as
|
|
11
|
-
import { u as
|
|
12
|
-
|
|
13
|
-
const
|
|
14
|
-
const { actions: o } = P(), { t: D } = A(), { addOther: n, addOtherLabel: p } = e, c = p || D("add-other.default-other-option-label"), i = T(!0), d = _(() => {
|
|
4
|
+
import { bk as P, by as A, F as y, bo as M, bg as H, aq as V, S as k, a0 as q, y as x, H as U, v as W } from "./form-DhIEC3nB.js";
|
|
5
|
+
import { u as B } from "./use-service-options-base-xHeVTve3.js";
|
|
6
|
+
import { D as u } from "./dropdown-field-headless-DcrQK8mL.js";
|
|
7
|
+
import { C as Q } from "./chevron-down-icon-CcpVm6B-.js";
|
|
8
|
+
import { E as Y } from "./error-icon-hZxQ6DEy.js";
|
|
9
|
+
import { H as j } from "./custom-focus-class-_483Pkwp.js";
|
|
10
|
+
import { s as i } from "./field-rac.module-DP0lkkEv.js";
|
|
11
|
+
import { a as z, u as G } from "./use-dropdown-trigger-class-name-C4uqTKFP.js";
|
|
12
|
+
const J = "00000000-0000-0000-0000-000000000000", K = (e) => {
|
|
13
|
+
const { actions: o } = P(), { t: D } = A(), { addOther: n, addOtherLabel: p } = e, c = p || D("add-other.default-other-option-label"), a = T(!0), d = _(() => {
|
|
15
14
|
var s;
|
|
16
15
|
return ((s = e.options) == null ? void 0 : s.map((m) => m.id ?? "")) ?? [];
|
|
17
16
|
}, [
|
|
@@ -21,18 +20,18 @@ const z = "00000000-0000-0000-0000-000000000000", J = (e) => {
|
|
|
21
20
|
{
|
|
22
21
|
value: c,
|
|
23
22
|
label: c,
|
|
24
|
-
id:
|
|
23
|
+
id: J
|
|
25
24
|
}
|
|
26
25
|
] : s, [
|
|
27
26
|
n,
|
|
28
27
|
c
|
|
29
|
-
]), { isLoading: f, options: l, isEmpty:
|
|
30
|
-
fieldType:
|
|
28
|
+
]), { isLoading: f, options: l, isEmpty: S, shouldRender: I, setIsLoading: h, setOptions: R, setIsEmpty: g, processOptions: F } = B({
|
|
29
|
+
fieldType: y.SERVICES_DROPDOWN,
|
|
31
30
|
isEditor: e.isEditor,
|
|
32
31
|
postProcessOptions: O
|
|
33
32
|
}), L = C(async () => {
|
|
34
|
-
if (
|
|
35
|
-
|
|
33
|
+
if (a.current && (o != null && o.fetchServices) && d.length > 0) {
|
|
34
|
+
a.current = !1, h(!0);
|
|
36
35
|
let s;
|
|
37
36
|
try {
|
|
38
37
|
s = await o.fetchServices({
|
|
@@ -45,15 +44,15 @@ const z = "00000000-0000-0000-0000-000000000000", J = (e) => {
|
|
|
45
44
|
const m = F(s);
|
|
46
45
|
g(!n && m.length === 0), R(m);
|
|
47
46
|
} else
|
|
48
|
-
|
|
49
|
-
|
|
47
|
+
a.current = !0;
|
|
48
|
+
h(!1);
|
|
50
49
|
}
|
|
51
50
|
}, [
|
|
52
51
|
o,
|
|
53
52
|
d,
|
|
54
53
|
F,
|
|
55
54
|
n,
|
|
56
|
-
|
|
55
|
+
h,
|
|
57
56
|
R,
|
|
58
57
|
g
|
|
59
58
|
]);
|
|
@@ -68,14 +67,14 @@ const z = "00000000-0000-0000-0000-000000000000", J = (e) => {
|
|
|
68
67
|
g,
|
|
69
68
|
e.isEditor
|
|
70
69
|
]);
|
|
71
|
-
const
|
|
72
|
-
e.onFocus && e.onFocus(),
|
|
70
|
+
const v = C(() => {
|
|
71
|
+
e.onFocus && e.onFocus(), a.current && L();
|
|
73
72
|
}, [
|
|
74
73
|
L,
|
|
75
74
|
e.onFocus
|
|
76
|
-
]),
|
|
75
|
+
]), N = C(
|
|
77
76
|
(s) => {
|
|
78
|
-
e.onChange && e.onChange(s),
|
|
77
|
+
e.onChange && e.onChange(s), a.current = !0;
|
|
79
78
|
},
|
|
80
79
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
81
80
|
[
|
|
@@ -85,31 +84,31 @@ const z = "00000000-0000-0000-0000-000000000000", J = (e) => {
|
|
|
85
84
|
return {
|
|
86
85
|
isLoading: f,
|
|
87
86
|
options: l,
|
|
88
|
-
isEmpty:
|
|
89
|
-
onFocus:
|
|
90
|
-
onChange:
|
|
87
|
+
isEmpty: S,
|
|
88
|
+
onFocus: v,
|
|
89
|
+
onChange: N,
|
|
91
90
|
shouldRender: I
|
|
92
91
|
};
|
|
93
92
|
}, r = ({ children: e }) => {
|
|
94
|
-
const o =
|
|
93
|
+
const o = M(), { addOther: D } = o, n = H(), p = o.isEditor || n.isEditor || n.isComposer, { isLoading: c, options: a, isEmpty: d, onFocus: O, onChange: f, shouldRender: l } = K({
|
|
95
94
|
...o,
|
|
96
95
|
isEditor: p
|
|
97
|
-
}),
|
|
96
|
+
}), S = _(() => ({
|
|
98
97
|
...o,
|
|
99
|
-
options: c ? [] :
|
|
98
|
+
options: c ? [] : a,
|
|
100
99
|
isLoading: c,
|
|
101
100
|
onFocus: O,
|
|
102
101
|
onChange: f
|
|
103
102
|
}), [
|
|
104
103
|
o,
|
|
105
|
-
|
|
104
|
+
a,
|
|
106
105
|
c,
|
|
107
106
|
O,
|
|
108
107
|
f
|
|
109
108
|
]);
|
|
110
109
|
return !p && d && !D || !l ? null : /* @__PURE__ */ t.createElement(V.Provider, {
|
|
111
110
|
value: {
|
|
112
|
-
v2:
|
|
111
|
+
v2: S
|
|
113
112
|
}
|
|
114
113
|
}, /* @__PURE__ */ t.createElement(u, null, e));
|
|
115
114
|
};
|
|
@@ -118,29 +117,29 @@ r.Trigger = u.Trigger;
|
|
|
118
117
|
r.Options = u.Options;
|
|
119
118
|
r.Description = u.Description;
|
|
120
119
|
r.Error = u.Error;
|
|
121
|
-
const
|
|
120
|
+
const X = ({ content: e, locale: o }) => /* @__PURE__ */ t.createElement(w, {
|
|
122
121
|
content: e,
|
|
123
122
|
locale: o
|
|
124
|
-
}),
|
|
125
|
-
const e =
|
|
123
|
+
}), Z = () => {
|
|
124
|
+
const e = z(i.dropdownTrigger), o = G(j);
|
|
126
125
|
return /* @__PURE__ */ t.createElement(r, null, /* @__PURE__ */ t.createElement(r.Label, {
|
|
127
|
-
className: E(
|
|
126
|
+
className: E(k, i.label)
|
|
128
127
|
}, /* @__PURE__ */ t.createElement(r.Label.Required, {
|
|
129
|
-
className: E(
|
|
128
|
+
className: E(q, i.requiredMark)
|
|
130
129
|
})), /* @__PURE__ */ t.createElement(r.Trigger, {
|
|
131
130
|
className: e
|
|
132
|
-
}, /* @__PURE__ */ t.createElement(
|
|
133
|
-
className:
|
|
131
|
+
}, /* @__PURE__ */ t.createElement(Q, {
|
|
132
|
+
className: i.dropdownIcon
|
|
134
133
|
})), /* @__PURE__ */ t.createElement(r.Options, {
|
|
135
|
-
className: E(
|
|
134
|
+
className: E(x, i.selectPopover, i.dropdownPopover)
|
|
136
135
|
}, /* @__PURE__ */ t.createElement(r.Options.Option, {
|
|
137
136
|
className: o
|
|
138
137
|
})), /* @__PURE__ */ t.createElement(r.Error, {
|
|
139
|
-
className: E(
|
|
140
|
-
}, /* @__PURE__ */ t.createElement(
|
|
141
|
-
className: E(
|
|
142
|
-
},
|
|
143
|
-
},
|
|
138
|
+
className: E(U, i.error)
|
|
139
|
+
}, /* @__PURE__ */ t.createElement(Y, null), /* @__PURE__ */ t.createElement(r.Error.Text, null)), /* @__PURE__ */ t.createElement(r.Description, {
|
|
140
|
+
className: E(W, i.description)
|
|
141
|
+
}, X));
|
|
142
|
+
}, me = () => /* @__PURE__ */ t.createElement(Z, null);
|
|
144
143
|
export {
|
|
145
|
-
|
|
144
|
+
me as ServiceDropdownRAC
|
|
146
145
|
};
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import e, { useEffect as I, useMemo as L } from "react";
|
|
2
|
-
import { RicosViewer as
|
|
2
|
+
import { RicosViewer as S } from "@wix/ricos/viewer";
|
|
3
3
|
import a from "classnames";
|
|
4
|
-
import { F as
|
|
5
|
-
import { u as v } from "./use-service-options-base-
|
|
6
|
-
import { C as i } from "./checkbox-group-field-headless-
|
|
4
|
+
import { F as R, bo as d, aq as D, S as F, a0 as N, o as f, q as h, H as b, v as M, p as A } from "./form-DhIEC3nB.js";
|
|
5
|
+
import { u as v } from "./use-service-options-base-xHeVTve3.js";
|
|
6
|
+
import { C as i } from "./checkbox-group-field-headless-XPtqS8Km.js";
|
|
7
7
|
import { E as x } from "./error-icon-hZxQ6DEy.js";
|
|
8
|
-
import { C as P } from "./checkbox-indicator-module-classes-
|
|
9
|
-
import { s as n } from "./field-rac.module-
|
|
8
|
+
import { C as P } from "./checkbox-indicator-module-classes-akWZsZNn.js";
|
|
9
|
+
import { s as n } from "./field-rac.module-DP0lkkEv.js";
|
|
10
10
|
import { o as _ } from "./options-rac.module-_THNq6Qq.js";
|
|
11
|
-
import { u as T } from "./use-element-state-class-name-
|
|
12
|
-
import { u as k } from "./use-text-input-class-name-
|
|
11
|
+
import { u as T } from "./use-element-state-class-name-DJx-T0zf.js";
|
|
12
|
+
import { u as k } from "./use-text-input-class-name-CrEjJ2Z8.js";
|
|
13
13
|
const y = (s) => {
|
|
14
14
|
var C;
|
|
15
15
|
const { isLoading: o, options: r, isEmpty: l, shouldRender: E, setOptions: c, setIsEmpty: m, setHasInitialDataLoaded: p } = v({
|
|
16
|
-
fieldType:
|
|
16
|
+
fieldType: R.SERVICES_MULTI_CHOICE,
|
|
17
17
|
isEditor: s.isEditor
|
|
18
18
|
}), u = (C = s.options) == null ? void 0 : C.every((O) => O.label && O.id);
|
|
19
19
|
return I(() => {
|
|
@@ -53,10 +53,10 @@ t.Label = i.Label;
|
|
|
53
53
|
t.Options = i.Options;
|
|
54
54
|
t.Description = i.Description;
|
|
55
55
|
t.Error = i.Error;
|
|
56
|
-
const B = ({ content: s, locale: o }) => /* @__PURE__ */ e.createElement(
|
|
56
|
+
const B = ({ content: s, locale: o }) => /* @__PURE__ */ e.createElement(S, {
|
|
57
57
|
content: s,
|
|
58
58
|
locale: o
|
|
59
|
-
}),
|
|
59
|
+
}), H = () => {
|
|
60
60
|
const s = T({
|
|
61
61
|
globalClasses: A,
|
|
62
62
|
moduleClasses: P
|
|
@@ -80,7 +80,7 @@ const B = ({ content: s, locale: o }) => /* @__PURE__ */ e.createElement(R, {
|
|
|
80
80
|
}, /* @__PURE__ */ e.createElement(x, null), /* @__PURE__ */ e.createElement(t.Error.Text, null)), /* @__PURE__ */ e.createElement(t.Description, {
|
|
81
81
|
className: a(M, n.description)
|
|
82
82
|
}, B));
|
|
83
|
-
},
|
|
83
|
+
}, J = () => /* @__PURE__ */ e.createElement(H, null);
|
|
84
84
|
export {
|
|
85
|
-
|
|
85
|
+
J as ServicesMultiChoiceRAC
|
|
86
86
|
};
|