@wix/form-elements 1.107.0 → 1.109.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-D2F4vgf1.js → appointment-rac-C9-XwsPI.js} +295 -296
- package/dist/component/{bookings-address-rac-_5S8J8_i.js → bookings-address-rac-jrrCPWjw.js} +1 -1
- package/dist/component/{bookings-email-rac-6vmDR9nS.js → bookings-email-rac-J9-RMEbf.js} +1 -1
- package/dist/component/{bookings-first-name-rac-DtTJ4T2K.js → bookings-first-name-rac-CH7-6JmA.js} +1 -1
- package/dist/component/{bookings-header-rac-B3dsEwzR.js → bookings-header-rac-C2JV-ciN.js} +1 -1
- package/dist/component/{bookings-last-name-rac-B3idkbi8.js → bookings-last-name-rac-0a9CwiaV.js} +1 -1
- package/dist/component/{bookings-login-bar-rac-CrRBcQwT.js → bookings-login-bar-rac-4Mb7MQYe.js} +21 -22
- package/dist/component/{bookings-phone-rac-BE0yWNnj.js → bookings-phone-rac-vYx5r5jn.js} +1 -1
- package/dist/component/{bookings-rich-text-rac-CYo1l0-6.js → bookings-rich-text-rac-CWg1FgUp.js} +1 -1
- package/dist/component/{checkbox-field-rac-boTtXVEt.js → checkbox-field-rac-Dwx1leKA.js} +27 -28
- package/dist/component/{checkbox-group-field-headless-DnkUvDm8.js → checkbox-group-field-headless-AFWgXzx_.js} +41 -41
- package/dist/component/{checkbox-group-field-rac-DrDTgHMg.js → checkbox-group-field-rac-CO8kmWJp.js} +6 -6
- package/dist/component/{checkbox-group-rac-v3ozUBpo.js → checkbox-group-rac-_79HsFF4.js} +1 -1
- package/dist/component/{checkbox-rac-YSLE-RnG.js → checkbox-rac-B_tbMfjo.js} +1 -1
- package/dist/component/{contacts-address-rac-C653yaHZ.js → contacts-address-rac-SJ5Tvzd0.js} +1 -1
- package/dist/component/{contacts-birthdate-rac-BeAQ6shx.js → contacts-birthdate-rac-BU1L3sbW.js} +1 -1
- package/dist/component/{contacts-company-rac-BglKOoTG.js → contacts-company-rac-Y4B8KhDa.js} +1 -1
- package/dist/component/{contacts-email-rac-D6m7ynfc.js → contacts-email-rac-CQW84o7C.js} +1 -1
- package/dist/component/{contacts-first-name-rac-Dgxn0tUJ.js → contacts-first-name-rac-Dtai-wtH.js} +1 -1
- package/dist/component/{contacts-last-name-rac-1UyIuRKH.js → contacts-last-name-rac--ixuu3ri.js} +1 -1
- package/dist/component/{contacts-phone-rac-BQ77BlW4.js → contacts-phone-rac-HOHfSvT-.js} +1 -1
- package/dist/component/{contacts-position-rac-BUDUv7lv.js → contacts-position-rac-BPMkh6yf.js} +1 -1
- package/dist/component/{contacts-subscribe-rac-DdtA0qKW.js → contacts-subscribe-rac-D0_RMwJb.js} +1 -1
- package/dist/component/{contacts-tax-id-rac-WUaKcNl0.js → contacts-tax-id-rac-CZJmMiVf.js} +1 -1
- package/dist/component/{date-availability-XjBFq8jt.js → date-availability-C4dDHvuc.js} +1 -1
- package/dist/component/{date-input-field-rac-aY2zuuKs.js → date-input-field-rac-8oERZcqh.js} +79 -80
- package/dist/component/{date-input-rac-DRiP2_97.js → date-input-rac-CYRojmW6.js} +1 -1
- package/dist/component/{date-picker-field-rac-Bzl-d3Uj.js → date-picker-field-rac-CIspU7No.js} +87 -88
- package/dist/component/{date-picker-rac-DHHUh8vn.js → date-picker-rac-D0Y0zf2J.js} +1 -1
- package/dist/component/{date-time-input-field-rac-DP_StuLr.js → date-time-input-field-rac-0daWK65I.js} +73 -74
- package/dist/component/{date-time-input-rac-B11KIxsf.js → date-time-input-rac-BemKPk1j.js} +1 -1
- package/dist/component/{dext-checkbox-group-rac-BHZBqyWv.js → dext-checkbox-group-rac-BpFNn56W.js} +2 -2
- package/dist/component/{dext-checkbox-rac-BIlAqEvV.js → dext-checkbox-rac-DOISgubJ.js} +1 -1
- package/dist/component/{dext-date-picker-rac-CHBXNrZi.js → dext-date-picker-rac-CNGhFg_g.js} +1 -1
- package/dist/component/{dext-date-time-input-rac-BYtliKry.js → dext-date-time-input-rac-BuUIvJRr.js} +1 -1
- package/dist/component/{dext-dropdown-rac-C2VPSFV5.js → dext-dropdown-rac-DtND-Dbo.js} +1 -1
- package/dist/component/{dext-email-rac-Fnb0Ggcs.js → dext-email-rac-CmjLFOi8.js} +1 -1
- package/dist/component/{dext-number-input-rac-DopfSyFi.js → dext-number-input-rac-DHTNg1dh.js} +1 -1
- package/dist/component/{dext-phone-rac-Rn4i_2rc.js → dext-phone-rac-BrrU5qH_.js} +1 -1
- package/dist/component/{dext-radio-group-rac-bNaskJpK.js → dext-radio-group-rac-CD3MGfAM.js} +4 -4
- package/dist/component/{dext-rating-input-rac-DL6ZZd7d.js → dext-rating-input-rac-BETGJZmt.js} +1 -1
- package/dist/component/{dext-tags-rac-TsUPoImO.js → dext-tags-rac-Coo9jN-T.js} +4 -4
- package/dist/component/{dext-text-area-rac-BIuY7LTd.js → dext-text-area-rac-CNWjqhUT.js} +1 -1
- package/dist/component/{dext-text-input-rac-CSYPW0Qi.js → dext-text-input-rac-CCWyDexv.js} +1 -1
- package/dist/component/{dext-url-input-rac-_g0lqGfW.js → dext-url-input-rac-Dtakkgmk.js} +1 -1
- package/dist/component/{donation-rac-BYKFtsyR.js → donation-rac-BboGm_k_.js} +101 -102
- package/dist/component/{dropdown-field-headless-CBaqlNZi.js → dropdown-field-headless-BTMJGUwY.js} +16 -16
- package/dist/component/{dropdown-field-rac-CCAGSMm3.js → dropdown-field-rac-CDRV8ckB.js} +5 -5
- package/dist/component/{dropdown-rac-C_EqUsZ1.js → dropdown-rac-kEuU2pXW.js} +1 -1
- package/dist/component/{ecom-address-rac-Bw9eH0iF.js → ecom-address-rac-BgKL9ElH.js} +1 -1
- package/dist/component/{ecom-subscription-checkbox-rac-B5PVOO2a.js → ecom-subscription-checkbox-rac-CDhJsNPD.js} +6 -6
- package/dist/component/{email-input-field-rac-B2kqQ6yo.js → email-input-field-rac-DdOd86NX.js} +54 -55
- package/dist/component/{events-repeater-rac--4OnUxWE.js → events-repeater-rac-_VJ30dpB.js} +62 -63
- package/dist/component/{events-rsvp-rac-CczCoo3T.js → events-rsvp-rac-DA-261bq.js} +5 -5
- package/dist/component/{field-error-headless-D3-1L5sf.js → field-error-headless-CovyN0GI.js} +8 -8
- package/dist/component/{field-label-headless-Du4ckIVy.js → field-label-headless-DVvX2QaH.js} +11 -11
- package/dist/component/file-upload-rac-bhEPUJPs.js +561 -0
- package/dist/component/fixed-payment-rac-DmI6MeKc.js +61 -0
- package/dist/component/{form-DQauhsho.js → form-BTDgyr54.js} +3430 -3244
- package/dist/component/form.css +1 -1
- package/dist/component/form.js +3 -3
- package/dist/component/header-field-rac-C0rUjmo0.js +24 -0
- package/dist/component/{header-rac-CR9T3Pnu.js → header-rac-DRMO22PV.js} +1 -1
- package/dist/component/{image-choice-rac-DJ_8v467.js → image-choice-rac-CQDQ7AlD.js} +32 -33
- package/dist/component/{index-CcUTIUWM.js → index-B9QlosT1.js} +12 -12
- package/dist/component/{index-BB7d_9Dv.js → index-CNWT9t6j.js} +66 -66
- package/dist/component/{isObjectLike-xvPa_08X.js → isObjectLike-c0td2WCR.js} +1 -1
- package/dist/component/{multiline-address-field-rac-CyaFOloE.js → multiline-address-field-rac-D8bVxRsD.js} +124 -125
- package/dist/component/{multiline-address-rac-CaHGUN_f.js → multiline-address-rac-g-6RB7o8.js} +1 -1
- package/dist/component/number-input-field-rac-BaOwQ5Ya.js +92 -0
- package/dist/component/{number-input-rac-DMKX6nhk.js → number-input-rac-BXv8-Pnj.js} +1 -1
- package/dist/component/{password-rac-0RUXPAn6.js → password-rac-BB9XeSSZ.js} +36 -37
- package/dist/component/{payment-input-rac-CHSZ3-Lt.js → payment-input-rac-DwnSV9rM.js} +41 -42
- package/dist/component/{phone-input-field-rac-JmIFcP1e.js → phone-input-field-rac-CC3C4ToW.js} +56 -57
- package/dist/component/{phone-rac-BLRnAPXP.js → phone-rac-DpNhSaE0.js} +1 -1
- package/dist/component/{product-list-rac-BkF5tDwt.js → product-list-rac-BAESk3B6.js} +74 -75
- package/dist/component/{quiz-radio-group-rac-32cCMTUS.js → quiz-radio-group-rac-PS6AZr63.js} +1 -1
- package/dist/component/{radio-button-module-classes-IOulhuSH.js → radio-button-module-classes-CXcn5unY.js} +30 -30
- package/dist/component/{radio-group-field-rac-CJwku6e0.js → radio-group-field-rac-pt8xbDfS.js} +6 -6
- package/dist/component/{radio-group-rac-BiW-9Abj.js → radio-group-rac-DkzkM6N_.js} +1 -1
- package/dist/component/{rating-input-field-rac-B9cwaROK.js → rating-input-field-rac-DDHBkR4x.js} +43 -44
- package/dist/component/{rating-input-rac-BpwlNvzQ.js → rating-input-rac-CcsDmLus.js} +1 -1
- package/dist/component/{rich-content-rac.module-B1uyPmtK.js → rich-content-rac.module-B2vsO6fj.js} +4 -4
- package/dist/component/rich-text-field-rac-CvKht2eC.js +21 -0
- package/dist/component/{rich-text-rac-VfeZxS27.js → rich-text-rac-CRpSffQB.js} +1 -1
- package/dist/component/{service-dropdown-rac-BCfs8IhW.js → service-dropdown-rac-BOpdXNjG.js} +36 -37
- package/dist/component/{services-multi-choice-rac-CCqdF_7P.js → services-multi-choice-rac-t0wdSt_T.js} +20 -21
- package/dist/component/{signature-rac-DOyMo3u0.js → signature-rac-2LsIYYIX.js} +141 -142
- package/dist/component/{submit-button-rac-C2uA5DeE.js → submit-button-rac-BbE8dS35.js} +26 -27
- package/dist/component/{tags-field-rac-C_uIw2by.js → tags-field-rac-BnsBxReU.js} +44 -45
- package/dist/component/{tags-rac-1pQ-fpe_.js → tags-rac-BFH4RINA.js} +1 -1
- package/dist/component/{text-area-field-rac-DqlOkm7e.js → text-area-field-rac-Ag7_gniM.js} +28 -29
- package/dist/component/{text-area-rac-DPdkrFcH.js → text-area-rac-ByUX0p2O.js} +1 -1
- package/dist/component/{text-input-field-rac-CmXm6r1w.js → text-input-field-rac-D3MZ8teu.js} +3 -3
- package/dist/component/{text-input-headless-DD__2DFf.js → text-input-headless-CwONErsY.js} +12 -12
- package/dist/component/{text-input-rac-DRHyQEH7.js → text-input-rac-DLXdAhkK.js} +1 -1
- package/dist/component/{time-input-rac-BJPIymQY.js → time-input-rac-Bs55lTON.js} +33 -34
- package/dist/component/url-input-field-rac-FG-bCh-E.js +74 -0
- package/dist/component/{url-input-rac-C0ChQUzq.js → url-input-rac-BOKuCMTe.js} +1 -1
- package/dist/component/use-dropdown-option-class-name-DjV7FW5y.js +21 -0
- package/dist/component/{use-element-state-class-name-BatTc2bw.js → use-element-state-class-name-DB1AzkvF.js} +1 -1
- package/dist/component/{use-is-forced-open-dropdown-B0jiPTmS.js → use-is-forced-open-dropdown-ifUIpuwL.js} +7 -7
- package/dist/component/{use-service-options-base-oeE7xszw.js → use-service-options-base-B11cq0HH.js} +7 -7
- package/dist/component/use-text-input-class-name-va1PzWFg.js +23 -0
- package/dist/form.d.ts +21 -1
- package/package.json +2 -2
- package/dist/component/file-upload-rac-DbdkUbWM.js +0 -484
- package/dist/component/fixed-payment-rac-f9-01iDN.js +0 -62
- package/dist/component/form-element-classes-bLFmhsKw.js +0 -137
- package/dist/component/header-field-rac-DamDk5BR.js +0 -25
- package/dist/component/number-input-field-rac-BuYUzDWV.js +0 -93
- package/dist/component/rich-text-field-rac-C_qE7Ykg.js +0 -22
- package/dist/component/url-input-field-rac-CFDYkZ6I.js +0 -75
- package/dist/component/use-dropdown-option-class-name-3L5ZmNLK.js +0 -21
- package/dist/component/use-text-input-class-name-LQ5S-NLh.js +0 -24
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import
|
|
1
|
+
import a, { useRef as S, useState as V, useEffect as T, useCallback as B } from "react";
|
|
2
2
|
import { RadioGroup as H, RadioField as k, RadioButton as A, TextField as G, Input as P } from "react-aria-components";
|
|
3
|
-
import {
|
|
3
|
+
import { b9 as v, b6 as $, bj as F, bb as x } from "./form-BTDgyr54.js";
|
|
4
4
|
import { f as u, a as g } from "./find-child-C60k4CxG.js";
|
|
5
|
-
import { D as U, E as
|
|
6
|
-
import { L as
|
|
5
|
+
import { D as U, E as j } from "./field-error-headless-CovyN0GI.js";
|
|
6
|
+
import { L as M } from "./field-label-headless-DVvX2QaH.js";
|
|
7
7
|
import { S as w } from "./selection-indicator-XQ8MYHUQ.js";
|
|
8
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
|
|
10
|
-
return e.slice(
|
|
9
|
+
const l = t ? t.length + 2 : 0;
|
|
10
|
+
return e.slice(l);
|
|
11
11
|
}, i = ({ children: e, className: t }) => {
|
|
12
|
-
const { id: n, value:
|
|
13
|
-
return /* @__PURE__ */
|
|
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
14
|
fieldId: n,
|
|
15
15
|
renderLabel: () => g(s, {
|
|
16
16
|
as: "div"
|
|
17
17
|
}),
|
|
18
|
-
renderInput: () => /* @__PURE__ */
|
|
18
|
+
renderInput: () => /* @__PURE__ */ a.createElement(H, {
|
|
19
19
|
id: h,
|
|
20
20
|
className: t,
|
|
21
21
|
"aria-labelledby": C,
|
|
@@ -29,14 +29,14 @@ const L = "Other", z = (e, t) => e == null ? void 0 : e.find((n) => (n.value ??
|
|
|
29
29
|
onBlur: f,
|
|
30
30
|
onFocus: b
|
|
31
31
|
}, E),
|
|
32
|
-
renderDescription: () => /* @__PURE__ */
|
|
32
|
+
renderDescription: () => /* @__PURE__ */ a.createElement(a.Fragment, null, D, q)
|
|
33
33
|
});
|
|
34
34
|
}, K = ({ children: e, className: t }) => {
|
|
35
|
-
const { options: n, addOther:
|
|
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
36
|
return x(() => {
|
|
37
37
|
var o;
|
|
38
38
|
(o = r.current) == null || o.focus();
|
|
39
|
-
}, d), /* @__PURE__ */
|
|
39
|
+
}, d), /* @__PURE__ */ a.createElement("div", {
|
|
40
40
|
className: t,
|
|
41
41
|
"data-columns": _,
|
|
42
42
|
"data-invalid": m
|
|
@@ -46,7 +46,7 @@ const L = "Other", z = (e, t) => e == null ? void 0 : e.find((n) => (n.value ??
|
|
|
46
46
|
label: o.label,
|
|
47
47
|
index: h,
|
|
48
48
|
radioRef: h === 0 ? r : void 0
|
|
49
|
-
})),
|
|
49
|
+
})), l && g(b, {
|
|
50
50
|
key: L,
|
|
51
51
|
value: L,
|
|
52
52
|
label: c,
|
|
@@ -54,15 +54,15 @@ const L = "Other", z = (e, t) => e == null ? void 0 : e.find((n) => (n.value ??
|
|
|
54
54
|
}));
|
|
55
55
|
}, p = ({ children: e, className: t, ...n }) => {
|
|
56
56
|
var I;
|
|
57
|
-
const { value:
|
|
58
|
-
return /* @__PURE__ */
|
|
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
59
|
className: t
|
|
60
|
-
}, /* @__PURE__ */
|
|
61
|
-
value:
|
|
62
|
-
}, /* @__PURE__ */
|
|
60
|
+
}, /* @__PURE__ */ a.createElement(k, {
|
|
61
|
+
value: l
|
|
62
|
+
}, /* @__PURE__ */ a.createElement(A, {
|
|
63
63
|
ref: _,
|
|
64
64
|
className: C
|
|
65
|
-
}, ({ isSelected: s, isHovered: E }) => /* @__PURE__ */
|
|
65
|
+
}, ({ isSelected: s, isHovered: E }) => /* @__PURE__ */ a.createElement(a.Fragment, null, g(c, {
|
|
66
66
|
isSelected: s,
|
|
67
67
|
isHovered: E
|
|
68
68
|
}), g(b, {
|
|
@@ -70,11 +70,11 @@ const L = "Other", z = (e, t) => e == null ? void 0 : e.find((n) => (n.value ??
|
|
|
70
70
|
})))), d && h && o);
|
|
71
71
|
}, Q = ({ className: e, ...t }) => {
|
|
72
72
|
const { label: n } = t;
|
|
73
|
-
return /* @__PURE__ */
|
|
73
|
+
return /* @__PURE__ */ a.createElement("span", {
|
|
74
74
|
className: e
|
|
75
75
|
}, n);
|
|
76
76
|
}, W = (e) => null, X = ({ className: e }) => {
|
|
77
|
-
const { value: t, onChange: n, addOtherLabel:
|
|
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
78
|
T(() => {
|
|
79
79
|
var s;
|
|
80
80
|
c && r.current && ((s = r.current) == null || s.focus());
|
|
@@ -83,19 +83,19 @@ const L = "Other", z = (e, t) => e == null ? void 0 : e.find((n) => (n.value ??
|
|
|
83
83
|
]);
|
|
84
84
|
const I = B((s) => {
|
|
85
85
|
let E;
|
|
86
|
-
s ? E = `${
|
|
86
|
+
s ? E = `${l}: ${s}` : E = o, n(E), C(s);
|
|
87
87
|
}, [
|
|
88
88
|
n,
|
|
89
|
-
|
|
89
|
+
l,
|
|
90
90
|
o
|
|
91
91
|
]);
|
|
92
|
-
return /* @__PURE__ */
|
|
92
|
+
return /* @__PURE__ */ a.createElement(G, {
|
|
93
93
|
"aria-label": o,
|
|
94
94
|
value: h,
|
|
95
95
|
onChange: I,
|
|
96
96
|
isDisabled: _,
|
|
97
97
|
isReadOnly: m
|
|
98
|
-
}, /* @__PURE__ */
|
|
98
|
+
}, /* @__PURE__ */ a.createElement(P, {
|
|
99
99
|
ref: r,
|
|
100
100
|
className: e,
|
|
101
101
|
placeholder: O,
|
|
@@ -106,20 +106,20 @@ p.Label = Q;
|
|
|
106
106
|
p.Input = W;
|
|
107
107
|
p.Control = w;
|
|
108
108
|
p.OtherInput = X;
|
|
109
|
-
i.Label =
|
|
109
|
+
i.Label = M;
|
|
110
110
|
i.Options = K;
|
|
111
111
|
i.Option = p;
|
|
112
112
|
i.Description = U;
|
|
113
|
-
i.Error =
|
|
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",
|
|
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
115
|
labelImage: Y,
|
|
116
116
|
group: Z,
|
|
117
117
|
options: ee,
|
|
118
118
|
option: te,
|
|
119
119
|
optionInput: oe,
|
|
120
120
|
optionControl: ne,
|
|
121
|
-
optionControlHover:
|
|
122
|
-
optionControlSelected:
|
|
121
|
+
optionControlHover: le,
|
|
122
|
+
optionControlSelected: ae,
|
|
123
123
|
optionLabel: re
|
|
124
124
|
}, be = {
|
|
125
125
|
base: R.optionControl,
|
package/dist/component/{radio-group-field-rac-CJwku6e0.js → radio-group-field-rac-pt8xbDfS.js}
RENAMED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { RicosViewer as m } from "@wix/ricos/viewer";
|
|
2
2
|
import t from "classnames";
|
|
3
3
|
import e from "react";
|
|
4
|
-
import { a, s, R as n } from "./radio-button-module-classes-
|
|
4
|
+
import { a, s, R as n } from "./radio-button-module-classes-CXcn5unY.js";
|
|
5
5
|
import { E as c } from "./error-icon-hZxQ6DEy.js";
|
|
6
6
|
import { s as r } from "./field-rac.module-B4l_0KRU.js";
|
|
7
|
-
import {
|
|
8
|
-
import { u as L } from "./use-element-state-class-name-
|
|
9
|
-
import { u as N } from "./use-text-input-class-name-
|
|
7
|
+
import { I as E, U as i, P as p, Q as R, v as O, p as _, R as I } from "./form-BTDgyr54.js";
|
|
8
|
+
import { u as L } from "./use-element-state-class-name-DB1AzkvF.js";
|
|
9
|
+
import { u as N } from "./use-text-input-class-name-va1PzWFg.js";
|
|
10
10
|
const u = ({ content: o, locale: l }) => /* @__PURE__ */ e.createElement(m, {
|
|
11
11
|
content: o,
|
|
12
12
|
locale: l
|
|
@@ -32,11 +32,11 @@ const u = ({ content: o, locale: l }) => /* @__PURE__ */ e.createElement(m, {
|
|
|
32
32
|
}), /* @__PURE__ */ e.createElement(a.Option.Control, {
|
|
33
33
|
className: o
|
|
34
34
|
}), /* @__PURE__ */ e.createElement(a.Option.Label, {
|
|
35
|
-
className: t(
|
|
35
|
+
className: t(R, s.optionLabel)
|
|
36
36
|
}), /* @__PURE__ */ e.createElement(a.Option.OtherInput, {
|
|
37
37
|
className: l
|
|
38
38
|
}))), /* @__PURE__ */ e.createElement(a.Error, {
|
|
39
|
-
className: t(
|
|
39
|
+
className: t(O, r.error)
|
|
40
40
|
}, /* @__PURE__ */ e.createElement(c, null), /* @__PURE__ */ e.createElement(a.Error.Text, null)), /* @__PURE__ */ e.createElement(a.Description, {
|
|
41
41
|
className: t(_, r.description)
|
|
42
42
|
}, u));
|
package/dist/component/{rating-input-field-rac-B9cwaROK.js → rating-input-field-rac-DDHBkR4x.js}
RENAMED
|
@@ -1,27 +1,26 @@
|
|
|
1
1
|
import { RicosViewer as y } from "@wix/ricos/viewer";
|
|
2
2
|
import m from "classnames";
|
|
3
3
|
import e, { useCallback as N, useState as O, useRef as A } from "react";
|
|
4
|
-
import {
|
|
5
|
-
import { RadioGroup as
|
|
6
|
-
import { f as u, a as
|
|
7
|
-
import { D as
|
|
8
|
-
import { L as
|
|
9
|
-
import { E as
|
|
4
|
+
import { b9 as I, b6 as v, bj as T, I as H, U as M, S as w, v as B, p as P, T as q } from "./form-BTDgyr54.js";
|
|
5
|
+
import { RadioGroup as G, RadioField as k, RadioButton as x } from "react-aria-components";
|
|
6
|
+
import { f as u, a as U } from "./find-child-C60k4CxG.js";
|
|
7
|
+
import { D as j, E as z } from "./field-error-headless-CovyN0GI.js";
|
|
8
|
+
import { L as Q } from "./field-label-headless-DVvX2QaH.js";
|
|
9
|
+
import { E as Z } from "./error-icon-hZxQ6DEy.js";
|
|
10
10
|
import { s as g } from "./field-rac.module-B4l_0KRU.js";
|
|
11
|
-
import {
|
|
12
|
-
import { u as Z } from "./use-element-state-class-name-BatTc2bw.js";
|
|
11
|
+
import { u as J } from "./use-element-state-class-name-DB1AzkvF.js";
|
|
13
12
|
const t = ({ children: a }) => {
|
|
14
|
-
const { id: n, value: r, onChange:
|
|
15
|
-
|
|
16
|
-
]),
|
|
13
|
+
const { id: n, value: r, onChange: o, disabled: l, readOnly: d, required: c, hasError: i, onBlur: E, onFocus: C, FieldLayout: R } = I(), { labelId: _ } = v(), L = N((D) => o(Number(D)), [
|
|
14
|
+
o
|
|
15
|
+
]), S = u(a, t.Label), s = u(a, t.Ratings), f = u(a, t.Description), h = u(a, t.Error);
|
|
17
16
|
return /* @__PURE__ */ e.createElement(R, {
|
|
18
17
|
fieldId: n,
|
|
19
|
-
renderLabel: () =>
|
|
20
|
-
renderInput: () => /* @__PURE__ */ e.createElement(
|
|
18
|
+
renderLabel: () => S,
|
|
19
|
+
renderInput: () => /* @__PURE__ */ e.createElement(G, {
|
|
21
20
|
"aria-labelledby": _,
|
|
22
21
|
value: r ? String(r) : void 0,
|
|
23
22
|
onChange: L,
|
|
24
|
-
isDisabled:
|
|
23
|
+
isDisabled: l,
|
|
25
24
|
isReadOnly: d,
|
|
26
25
|
isRequired: c,
|
|
27
26
|
isInvalid: i,
|
|
@@ -29,28 +28,28 @@ const t = ({ children: a }) => {
|
|
|
29
28
|
onFocus: C,
|
|
30
29
|
orientation: "horizontal"
|
|
31
30
|
}, s),
|
|
32
|
-
renderDescription: () => /* @__PURE__ */ e.createElement(e.Fragment, null, h,
|
|
31
|
+
renderDescription: () => /* @__PURE__ */ e.createElement(e.Fragment, null, h, f)
|
|
33
32
|
});
|
|
34
|
-
},
|
|
35
|
-
const { value:
|
|
33
|
+
}, b = ({ children: a, className: n, getReactionLabel: r }) => {
|
|
34
|
+
const { value: o, readOnly: l, hasError: d } = I(), { inputId: c, ariaDescribedBy: i } = v(), [E, C] = O(), R = A(null), _ = u(a, b.Rating), L = [
|
|
36
35
|
"1",
|
|
37
36
|
"2",
|
|
38
37
|
"3",
|
|
39
38
|
"4",
|
|
40
39
|
"5"
|
|
41
|
-
],
|
|
40
|
+
], S = (s) => E && !l ? E >= s : !!o && o >= Number(s);
|
|
42
41
|
return /* @__PURE__ */ e.createElement("div", {
|
|
43
42
|
ref: R,
|
|
44
43
|
id: c,
|
|
45
44
|
"aria-describedby": i,
|
|
46
45
|
className: n,
|
|
47
46
|
"data-invalid": d,
|
|
48
|
-
"data-readonly":
|
|
49
|
-
}, L.map((s) =>
|
|
47
|
+
"data-readonly": l
|
|
48
|
+
}, L.map((s) => U(_, {
|
|
50
49
|
key: s,
|
|
51
50
|
value: s,
|
|
52
|
-
isSelected:
|
|
53
|
-
onHoverChange: (
|
|
51
|
+
isSelected: S(s),
|
|
52
|
+
onHoverChange: (f) => C(f ? s : void 0),
|
|
54
53
|
label: r == null ? void 0 : r(Number(s))
|
|
55
54
|
})));
|
|
56
55
|
}, K = {
|
|
@@ -64,29 +63,29 @@ const t = ({ children: a }) => {
|
|
|
64
63
|
width: 1,
|
|
65
64
|
whiteSpace: "nowrap"
|
|
66
65
|
}, F = ({ className: a, children: n, ...r }) => {
|
|
67
|
-
const { value:
|
|
68
|
-
return /* @__PURE__ */ e.createElement(
|
|
69
|
-
value:
|
|
70
|
-
}, /* @__PURE__ */ e.createElement(
|
|
66
|
+
const { value: o, isSelected: l, onHoverChange: d, label: c } = r;
|
|
67
|
+
return /* @__PURE__ */ e.createElement(k, {
|
|
68
|
+
value: o
|
|
69
|
+
}, /* @__PURE__ */ e.createElement(x, {
|
|
71
70
|
className: ({ isHovered: i }) => typeof a == "function" ? a({
|
|
72
|
-
isSelected:
|
|
71
|
+
isSelected: l,
|
|
73
72
|
isHovered: i
|
|
74
73
|
}) : a ?? "",
|
|
75
|
-
"data-active":
|
|
74
|
+
"data-active": l || void 0,
|
|
76
75
|
onHoverChange: d
|
|
77
76
|
}, ({ isHovered: i }) => /* @__PURE__ */ e.createElement(e.Fragment, null, typeof n == "function" ? n({
|
|
78
|
-
isSelected:
|
|
77
|
+
isSelected: l,
|
|
79
78
|
isHovered: i
|
|
80
79
|
}) : n, c ? /* @__PURE__ */ e.createElement("span", {
|
|
81
80
|
style: K
|
|
82
81
|
}, c) : null)));
|
|
83
82
|
};
|
|
84
|
-
|
|
85
|
-
t.Label =
|
|
86
|
-
t.Ratings =
|
|
83
|
+
b.Rating = F;
|
|
84
|
+
t.Label = Q;
|
|
85
|
+
t.Ratings = b;
|
|
87
86
|
t.Rating = F;
|
|
88
|
-
t.Description =
|
|
89
|
-
t.Error =
|
|
87
|
+
t.Description = j;
|
|
88
|
+
t.Error = z;
|
|
90
89
|
const W = (a) => /* @__PURE__ */ e.createElement("svg", {
|
|
91
90
|
viewBox: "0 0 32 32",
|
|
92
91
|
width: 32,
|
|
@@ -109,28 +108,28 @@ const W = (a) => /* @__PURE__ */ e.createElement("svg", {
|
|
|
109
108
|
base: p.rating,
|
|
110
109
|
selected: p.ratingSelected,
|
|
111
110
|
hover: p.ratingHover
|
|
112
|
-
},
|
|
113
|
-
const { t: a } =
|
|
114
|
-
globalClasses:
|
|
111
|
+
}, Ee = () => {
|
|
112
|
+
const { t: a } = T(), n = J({
|
|
113
|
+
globalClasses: q,
|
|
115
114
|
moduleClasses: te
|
|
116
115
|
});
|
|
117
116
|
return /* @__PURE__ */ e.createElement(t, null, /* @__PURE__ */ e.createElement(t.Label, {
|
|
118
|
-
className: m(
|
|
117
|
+
className: m(H, g.label)
|
|
119
118
|
}, /* @__PURE__ */ e.createElement(t.Label.Required, {
|
|
120
|
-
className: m(
|
|
119
|
+
className: m(M, g.requiredMark)
|
|
121
120
|
})), /* @__PURE__ */ e.createElement(t.Ratings, {
|
|
122
|
-
className: m(
|
|
121
|
+
className: m(w, p.ratings),
|
|
123
122
|
getReactionLabel: (r) => a("rating-input.a11y.reaction-label", {
|
|
124
123
|
count: r
|
|
125
124
|
})
|
|
126
125
|
}, /* @__PURE__ */ e.createElement(t.Rating, {
|
|
127
126
|
className: n
|
|
128
127
|
}, /* @__PURE__ */ e.createElement(W, null))), /* @__PURE__ */ e.createElement(t.Error, {
|
|
129
|
-
className: m(
|
|
130
|
-
}, /* @__PURE__ */ e.createElement(
|
|
131
|
-
className: m(
|
|
128
|
+
className: m(B, g.error)
|
|
129
|
+
}, /* @__PURE__ */ e.createElement(Z, null), /* @__PURE__ */ e.createElement(t.Error.Text, null)), /* @__PURE__ */ e.createElement(t.Description, {
|
|
130
|
+
className: m(P, g.description)
|
|
132
131
|
}, ee));
|
|
133
132
|
};
|
|
134
133
|
export {
|
|
135
|
-
|
|
134
|
+
Ee as R
|
|
136
135
|
};
|
package/dist/component/{rich-content-rac.module-B1uyPmtK.js → rich-content-rac.module-B2vsO6fj.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import c, { useState as
|
|
2
|
-
import {
|
|
1
|
+
import c, { useState as u } from "react";
|
|
2
|
+
import { b9 as a, b1 as i, bj as T } from "./form-BTDgyr54.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";
|
|
@@ -25,9 +25,9 @@ const O = ({ children: e }) => {
|
|
|
25
25
|
}, o);
|
|
26
26
|
};
|
|
27
27
|
function B(e, t) {
|
|
28
|
-
const [n, o] =
|
|
28
|
+
const [n, o] = u(!0);
|
|
29
29
|
function s() {
|
|
30
|
-
o((
|
|
30
|
+
o((l) => !l);
|
|
31
31
|
}
|
|
32
32
|
return {
|
|
33
33
|
displayedContent: t && n ? _(e, {
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import l from "classnames";
|
|
2
|
+
import e from "react";
|
|
3
|
+
import { b9 as m, an as i, a5 as u, aM as R, aP as T } from "./form-BTDgyr54.js";
|
|
4
|
+
import { u as C, R as d, s as g, T as p } from "./rich-content-rac.module-B2vsO6fj.js";
|
|
5
|
+
const h = {
|
|
6
|
+
colorPalette: T(),
|
|
7
|
+
customStyles: R()
|
|
8
|
+
}, f = ({ truncate: t = !0 } = {}) => {
|
|
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
|
+
className: l(u, g.richContent),
|
|
12
|
+
content: n,
|
|
13
|
+
customTheme: h
|
|
14
|
+
}), r && /* @__PURE__ */ e.createElement(p, {
|
|
15
|
+
isTruncated: o,
|
|
16
|
+
onClick: c
|
|
17
|
+
})));
|
|
18
|
+
};
|
|
19
|
+
export {
|
|
20
|
+
f as R
|
|
21
|
+
};
|
package/dist/component/{service-dropdown-rac-BCfs8IhW.js → service-dropdown-rac-BOpdXNjG.js}
RENAMED
|
@@ -1,22 +1,21 @@
|
|
|
1
|
-
import t, { useRef as
|
|
2
|
-
import { RicosViewer as
|
|
1
|
+
import t, { useRef as b, useMemo as g, useCallback as D, useEffect as P } from "react";
|
|
2
|
+
import { RicosViewer as T } from "@wix/ricos/viewer";
|
|
3
3
|
import u from "classnames";
|
|
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
|
|
4
|
+
import { b5 as w, bj as A, F as M, b9 as y, b1 as U, ac as V, I as x, U as H, t as W, K as k, v as q, p as B } from "./form-BTDgyr54.js";
|
|
5
|
+
import { u as G } from "./use-service-options-base-B11cq0HH.js";
|
|
6
|
+
import { D as d } from "./dropdown-field-headless-BTMJGUwY.js";
|
|
7
|
+
import { C as j } 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
10
|
import { s as i } from "./field-rac.module-B4l_0KRU.js";
|
|
11
|
-
import {
|
|
12
|
-
|
|
13
|
-
const
|
|
14
|
-
const { actions: r } = A(), { t: D } = b(), { addOther: n, addOtherLabel: p } = e, c = p || D("add-other.default-other-option-label"), a = P(!0), E = L(() => {
|
|
11
|
+
import { u as Y } from "./use-dropdown-option-class-name-DjV7FW5y.js";
|
|
12
|
+
const z = "00000000-0000-0000-0000-000000000000", J = (e) => {
|
|
13
|
+
const { actions: r } = w(), { t: h } = A(), { addOther: n, addOtherLabel: p } = e, c = p || h("add-other.default-other-option-label"), a = b(!0), E = g(() => {
|
|
15
14
|
var s;
|
|
16
15
|
return ((s = e.options) == null ? void 0 : s.map((m) => m.id ?? "")) ?? [];
|
|
17
16
|
}, [
|
|
18
17
|
e.options
|
|
19
|
-
]), O =
|
|
18
|
+
]), O = D((s) => n ? [
|
|
20
19
|
...s,
|
|
21
20
|
{
|
|
22
21
|
value: c,
|
|
@@ -26,11 +25,11 @@ const z = "00000000-0000-0000-0000-000000000000", K = (e) => {
|
|
|
26
25
|
] : s, [
|
|
27
26
|
n,
|
|
28
27
|
c
|
|
29
|
-
]), { isLoading: f, options: l, isEmpty: C, shouldRender: I, setIsLoading: R, setOptions: _, setIsEmpty: S, processOptions:
|
|
28
|
+
]), { isLoading: f, options: l, isEmpty: C, shouldRender: I, setIsLoading: R, setOptions: _, setIsEmpty: S, processOptions: F } = G({
|
|
30
29
|
fieldType: M.SERVICES_DROPDOWN,
|
|
31
30
|
isEditor: e.isEditor,
|
|
32
31
|
postProcessOptions: O
|
|
33
|
-
}),
|
|
32
|
+
}), L = D(async () => {
|
|
34
33
|
if (a.current && (r != null && r.fetchServices) && E.length > 0) {
|
|
35
34
|
a.current = !1, R(!0);
|
|
36
35
|
let s;
|
|
@@ -42,7 +41,7 @@ const z = "00000000-0000-0000-0000-000000000000", K = (e) => {
|
|
|
42
41
|
console.error(m);
|
|
43
42
|
}
|
|
44
43
|
if (s) {
|
|
45
|
-
const m =
|
|
44
|
+
const m = F(s);
|
|
46
45
|
S(!n && m.length === 0), _(m);
|
|
47
46
|
} else
|
|
48
47
|
a.current = !0;
|
|
@@ -51,13 +50,13 @@ const z = "00000000-0000-0000-0000-000000000000", K = (e) => {
|
|
|
51
50
|
}, [
|
|
52
51
|
r,
|
|
53
52
|
E,
|
|
54
|
-
|
|
53
|
+
F,
|
|
55
54
|
n,
|
|
56
55
|
R,
|
|
57
56
|
_,
|
|
58
57
|
S
|
|
59
58
|
]);
|
|
60
|
-
|
|
59
|
+
P(() => {
|
|
61
60
|
if (!e.isEditor && l.length > 0) {
|
|
62
61
|
const s = n ? l.length - 1 : l.length;
|
|
63
62
|
S(s === 0);
|
|
@@ -68,12 +67,12 @@ const z = "00000000-0000-0000-0000-000000000000", K = (e) => {
|
|
|
68
67
|
S,
|
|
69
68
|
e.isEditor
|
|
70
69
|
]);
|
|
71
|
-
const v =
|
|
72
|
-
e.onFocus && e.onFocus(), a.current &&
|
|
70
|
+
const v = D(() => {
|
|
71
|
+
e.onFocus && e.onFocus(), a.current && L();
|
|
73
72
|
}, [
|
|
74
|
-
|
|
73
|
+
L,
|
|
75
74
|
e.onFocus
|
|
76
|
-
]), N =
|
|
75
|
+
]), N = D(
|
|
77
76
|
(s) => {
|
|
78
77
|
e.onChange && e.onChange(s), a.current = !0;
|
|
79
78
|
},
|
|
@@ -91,10 +90,10 @@ const z = "00000000-0000-0000-0000-000000000000", K = (e) => {
|
|
|
91
90
|
shouldRender: I
|
|
92
91
|
};
|
|
93
92
|
}, o = ({ children: e }) => {
|
|
94
|
-
const r = y(), { addOther:
|
|
93
|
+
const r = y(), { addOther: h } = r, n = U(), p = r.isEditor || n.isEditor || n.isComposer, { isLoading: c, options: a, isEmpty: E, onFocus: O, onChange: f, shouldRender: l } = J({
|
|
95
94
|
...r,
|
|
96
95
|
isEditor: p
|
|
97
|
-
}), C =
|
|
96
|
+
}), C = g(() => ({
|
|
98
97
|
...r,
|
|
99
98
|
options: c ? [] : a,
|
|
100
99
|
isLoading: c,
|
|
@@ -107,7 +106,7 @@ const z = "00000000-0000-0000-0000-000000000000", K = (e) => {
|
|
|
107
106
|
O,
|
|
108
107
|
f
|
|
109
108
|
]);
|
|
110
|
-
return !p && E && !
|
|
109
|
+
return !p && E && !h || !l ? null : /* @__PURE__ */ t.createElement(V.Provider, {
|
|
111
110
|
value: {
|
|
112
111
|
v2: C
|
|
113
112
|
}
|
|
@@ -118,29 +117,29 @@ o.Trigger = d.Trigger;
|
|
|
118
117
|
o.Options = d.Options;
|
|
119
118
|
o.Description = d.Description;
|
|
120
119
|
o.Error = d.Error;
|
|
121
|
-
const X = ({ content: e, locale: r }) => /* @__PURE__ */ t.createElement(
|
|
120
|
+
const X = ({ content: e, locale: r }) => /* @__PURE__ */ t.createElement(T, {
|
|
122
121
|
content: e,
|
|
123
122
|
locale: r
|
|
124
123
|
}), Z = () => {
|
|
125
|
-
const e = Y(
|
|
124
|
+
const e = Y(Q);
|
|
126
125
|
return /* @__PURE__ */ t.createElement(o, null, /* @__PURE__ */ t.createElement(o.Label, {
|
|
127
|
-
className: u(
|
|
126
|
+
className: u(x, i.label)
|
|
128
127
|
}, /* @__PURE__ */ t.createElement(o.Label.Required, {
|
|
129
|
-
className: u(
|
|
128
|
+
className: u(H, i.requiredMark)
|
|
130
129
|
})), /* @__PURE__ */ t.createElement(o.Trigger, {
|
|
131
|
-
className: u(
|
|
132
|
-
}, /* @__PURE__ */ t.createElement(
|
|
130
|
+
className: u(W, i.input, i.dropdownTrigger)
|
|
131
|
+
}, /* @__PURE__ */ t.createElement(j, {
|
|
133
132
|
className: i.dropdownIcon
|
|
134
133
|
})), /* @__PURE__ */ t.createElement(o.Options, {
|
|
135
|
-
className: u(
|
|
134
|
+
className: u(k, i.selectPopover, i.dropdownPopover)
|
|
136
135
|
}, /* @__PURE__ */ t.createElement(o.Options.Option, {
|
|
137
136
|
className: e
|
|
138
137
|
})), /* @__PURE__ */ t.createElement(o.Error, {
|
|
139
|
-
className: u(
|
|
140
|
-
}, /* @__PURE__ */ t.createElement(
|
|
141
|
-
className: u(
|
|
138
|
+
className: u(q, i.error)
|
|
139
|
+
}, /* @__PURE__ */ t.createElement(K, null), /* @__PURE__ */ t.createElement(o.Error.Text, null)), /* @__PURE__ */ t.createElement(o.Description, {
|
|
140
|
+
className: u(B, i.description)
|
|
142
141
|
}, X));
|
|
143
|
-
},
|
|
142
|
+
}, me = () => /* @__PURE__ */ t.createElement(Z, null);
|
|
144
143
|
export {
|
|
145
|
-
|
|
144
|
+
me as ServiceDropdownRAC
|
|
146
145
|
};
|
|
@@ -1,19 +1,18 @@
|
|
|
1
1
|
import e, { useEffect as I, useMemo as L } from "react";
|
|
2
2
|
import { RicosViewer as S } from "@wix/ricos/viewer";
|
|
3
3
|
import a from "classnames";
|
|
4
|
-
import { F as R,
|
|
5
|
-
import { u as
|
|
6
|
-
import { C as n } from "./checkbox-group-field-headless-
|
|
7
|
-
import { E as
|
|
8
|
-
import { C as
|
|
4
|
+
import { F as R, b9 as d, ac as D, I as N, U as F, i as f, k as h, v as b, p as M, j as A } from "./form-BTDgyr54.js";
|
|
5
|
+
import { u as v } from "./use-service-options-base-B11cq0HH.js";
|
|
6
|
+
import { C as n } from "./checkbox-group-field-headless-AFWgXzx_.js";
|
|
7
|
+
import { E as x } from "./error-icon-hZxQ6DEy.js";
|
|
8
|
+
import { C as P } from "./checkbox-indicator-module-classes-BpeSpGsW.js";
|
|
9
9
|
import { s as i } from "./field-rac.module-B4l_0KRU.js";
|
|
10
|
-
import { v as h, J as b, c as M, e as A, o as v, j as x, d as P } from "./form-element-classes-bLFmhsKw.js";
|
|
11
10
|
import { o as p } from "./options-rac.module-CTDdATiz.js";
|
|
12
|
-
import { u as T } from "./use-element-state-class-name-
|
|
13
|
-
import { u as k } from "./use-text-input-class-name-
|
|
11
|
+
import { u as T } from "./use-element-state-class-name-DB1AzkvF.js";
|
|
12
|
+
import { u as k } from "./use-text-input-class-name-va1PzWFg.js";
|
|
14
13
|
const y = (s) => {
|
|
15
14
|
var O;
|
|
16
|
-
const { isLoading: o, options: r, isEmpty: l, shouldRender: E, setOptions: c, setIsEmpty: m, setHasInitialDataLoaded: u } =
|
|
15
|
+
const { isLoading: o, options: r, isEmpty: l, shouldRender: E, setOptions: c, setIsEmpty: m, setHasInitialDataLoaded: u } = v({
|
|
17
16
|
fieldType: R.SERVICES_MULTI_CHOICE,
|
|
18
17
|
isEditor: s.isEditor
|
|
19
18
|
}), C = (O = s.options) == null ? void 0 : O.every((_) => _.label && _.id);
|
|
@@ -57,33 +56,33 @@ t.Error = n.Error;
|
|
|
57
56
|
const B = ({ content: s, locale: o }) => /* @__PURE__ */ e.createElement(S, {
|
|
58
57
|
content: s,
|
|
59
58
|
locale: o
|
|
60
|
-
}),
|
|
59
|
+
}), U = () => {
|
|
61
60
|
const s = T({
|
|
62
|
-
globalClasses:
|
|
63
|
-
moduleClasses:
|
|
61
|
+
globalClasses: A,
|
|
62
|
+
moduleClasses: P
|
|
64
63
|
}), o = k();
|
|
65
64
|
return /* @__PURE__ */ e.createElement(t, {
|
|
66
65
|
className: p.group
|
|
67
66
|
}, /* @__PURE__ */ e.createElement(t.Label, {
|
|
68
|
-
className: a(
|
|
67
|
+
className: a(N, i.label)
|
|
69
68
|
}, /* @__PURE__ */ e.createElement(t.Label.Required, {
|
|
70
|
-
className: a(
|
|
69
|
+
className: a(F, i.requiredMark)
|
|
71
70
|
})), /* @__PURE__ */ e.createElement(t.Options, {
|
|
72
|
-
className: a(
|
|
71
|
+
className: a(f, p.options)
|
|
73
72
|
}, /* @__PURE__ */ e.createElement(t.Options.Option, null, /* @__PURE__ */ e.createElement(t.Options.Option.Checkbox, {
|
|
74
73
|
className: i.checkbox
|
|
75
74
|
}, /* @__PURE__ */ e.createElement(t.Options.Option.Checkbox.Input, {
|
|
76
75
|
className: s
|
|
77
76
|
}), /* @__PURE__ */ e.createElement(t.Options.Option.Checkbox.Label, {
|
|
78
|
-
className: a(
|
|
77
|
+
className: a(h, p.optionLabel)
|
|
79
78
|
})), /* @__PURE__ */ e.createElement(t.Options.Option.OtherInput, {
|
|
80
79
|
inputClassName: o
|
|
81
80
|
}))), /* @__PURE__ */ e.createElement(t.Error, {
|
|
82
|
-
className: a(
|
|
83
|
-
}, /* @__PURE__ */ e.createElement(
|
|
84
|
-
className: a(
|
|
81
|
+
className: a(b, i.error)
|
|
82
|
+
}, /* @__PURE__ */ e.createElement(x, null), /* @__PURE__ */ e.createElement(t.Error.Text, null)), /* @__PURE__ */ e.createElement(t.Description, {
|
|
83
|
+
className: a(M, i.description)
|
|
85
84
|
}, B));
|
|
86
|
-
},
|
|
85
|
+
}, J = () => /* @__PURE__ */ e.createElement(U, null);
|
|
87
86
|
export {
|
|
88
|
-
|
|
87
|
+
J as ServicesMultiChoiceRAC
|
|
89
88
|
};
|