@wix/form-elements 1.105.0 → 1.106.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-DaBg4fM3.js → appointment-rac-D2F4vgf1.js} +5 -5
- package/dist/component/{bookings-address-rac-CkCIr0yY.js → bookings-address-rac-_5S8J8_i.js} +1 -1
- package/dist/component/{bookings-email-rac--o2G6bDi.js → bookings-email-rac-6vmDR9nS.js} +1 -1
- package/dist/component/{bookings-first-name-rac-KilnnzGd.js → bookings-first-name-rac-DtTJ4T2K.js} +1 -1
- package/dist/component/{bookings-header-rac-D9PwyQVM.js → bookings-header-rac-B3dsEwzR.js} +1 -1
- package/dist/component/{bookings-last-name-rac-qWHHoFsL.js → bookings-last-name-rac-B3idkbi8.js} +1 -1
- package/dist/component/{bookings-login-bar-rac-CA9lwDip.js → bookings-login-bar-rac-CrRBcQwT.js} +4 -4
- package/dist/component/{bookings-phone-rac-CJwbY3yf.js → bookings-phone-rac-BE0yWNnj.js} +1 -1
- package/dist/component/{bookings-rich-text-rac-B-7cedEB.js → bookings-rich-text-rac-CYo1l0-6.js} +1 -1
- package/dist/component/{checkbox-field-rac-D5YjimAI.js → checkbox-field-rac-boTtXVEt.js} +16 -20
- package/dist/component/{checkbox-group-field-headless-BJl8C2Lz.js → checkbox-group-field-headless-DnkUvDm8.js} +3 -3
- package/dist/component/{checkbox-group-field-rac-CLDKYOsh.js → checkbox-group-field-rac-DrDTgHMg.js} +11 -11
- package/dist/component/{checkbox-group-rac-DfOsQWr7.js → checkbox-group-rac-v3ozUBpo.js} +1 -1
- package/dist/component/{checkbox-rac-DMDIZxxN.js → checkbox-rac-YSLE-RnG.js} +1 -1
- package/dist/component/{contacts-address-rac-CrpSPX3x.js → contacts-address-rac-C653yaHZ.js} +1 -1
- package/dist/component/{contacts-birthdate-rac-B3vrz3B5.js → contacts-birthdate-rac-BeAQ6shx.js} +1 -1
- package/dist/component/{contacts-company-rac-Nd4-07pv.js → contacts-company-rac-BglKOoTG.js} +1 -1
- package/dist/component/{contacts-email-rac-DlKJXGue.js → contacts-email-rac-D6m7ynfc.js} +1 -1
- package/dist/component/{contacts-first-name-rac-CgfaCG0O.js → contacts-first-name-rac-Dgxn0tUJ.js} +1 -1
- package/dist/component/{contacts-last-name-rac-DmSqTPzC.js → contacts-last-name-rac-1UyIuRKH.js} +1 -1
- package/dist/component/{contacts-phone-rac-C9X_5axq.js → contacts-phone-rac-BQ77BlW4.js} +1 -1
- package/dist/component/{contacts-position-rac-DeJrqxtm.js → contacts-position-rac-BUDUv7lv.js} +1 -1
- package/dist/component/contacts-subscribe-rac-DdtA0qKW.js +6 -0
- package/dist/component/{contacts-tax-id-rac-6pMwtJyC.js → contacts-tax-id-rac-WUaKcNl0.js} +1 -1
- package/dist/component/{date-availability-DfL_xDci.js → date-availability-XjBFq8jt.js} +1 -1
- package/dist/component/{date-input-field-rac-DvlY0Ffu.js → date-input-field-rac-aY2zuuKs.js} +13 -13
- package/dist/component/{date-input-rac-Dr_MtbFO.js → date-input-rac-DRiP2_97.js} +1 -1
- package/dist/component/{date-picker-field-rac-D42hJF0j.js → date-picker-field-rac-Bzl-d3Uj.js} +27 -27
- package/dist/component/{date-picker-rac-CtoqWMPa.js → date-picker-rac-DHHUh8vn.js} +1 -1
- package/dist/component/{date-time-input-field-rac-C1rf0_aD.js → date-time-input-field-rac-DP_StuLr.js} +26 -26
- package/dist/component/{date-time-input-rac-gFwBZVcJ.js → date-time-input-rac-B11KIxsf.js} +1 -1
- package/dist/component/{dext-checkbox-group-rac-B0dh55yz.js → dext-checkbox-group-rac-BHZBqyWv.js} +2 -2
- package/dist/component/{dext-checkbox-rac-RQ7hpkFn.js → dext-checkbox-rac-BIlAqEvV.js} +1 -1
- package/dist/component/{dext-date-picker-rac-sJEfD5E6.js → dext-date-picker-rac-CHBXNrZi.js} +1 -1
- package/dist/component/{dext-date-time-input-rac-BxPE1oVN.js → dext-date-time-input-rac-BYtliKry.js} +1 -1
- package/dist/component/{dext-dropdown-rac-BimIan_Z.js → dext-dropdown-rac-C2VPSFV5.js} +1 -1
- package/dist/component/{dext-email-rac-CjrC85Va.js → dext-email-rac-Fnb0Ggcs.js} +1 -1
- package/dist/component/{dext-number-input-rac-CkMRmcJQ.js → dext-number-input-rac-DopfSyFi.js} +1 -1
- package/dist/component/{dext-phone-rac-DO3qV3WL.js → dext-phone-rac-Rn4i_2rc.js} +1 -1
- package/dist/component/{dext-radio-group-rac-CUaqRQSf.js → dext-radio-group-rac-bNaskJpK.js} +2 -2
- package/dist/component/{dext-rating-input-rac-CIRU2af7.js → dext-rating-input-rac-DL6ZZd7d.js} +1 -1
- package/dist/component/{dext-tags-rac-DHqXtqOo.js → dext-tags-rac-TsUPoImO.js} +2 -2
- package/dist/component/{dext-text-area-rac-yBONPzSt.js → dext-text-area-rac-BIuY7LTd.js} +1 -1
- package/dist/component/{dext-text-input-rac-CdhAUC2i.js → dext-text-input-rac-CSYPW0Qi.js} +1 -1
- package/dist/component/{dext-url-input-rac-B4IQEsp2.js → dext-url-input-rac-_g0lqGfW.js} +1 -1
- package/dist/component/{donation-rac-D-rWK7OY.js → donation-rac-BYKFtsyR.js} +55 -55
- package/dist/component/{dropdown-field-headless-CeDAK-PU.js → dropdown-field-headless-CBaqlNZi.js} +4 -4
- package/dist/component/{dropdown-field-rac-BzqUmKJ1.js → dropdown-field-rac-CCAGSMm3.js} +5 -5
- package/dist/component/{dropdown-rac-CHO-8WoH.js → dropdown-rac-C_EqUsZ1.js} +1 -1
- package/dist/component/{ecom-address-rac-BZVqOncl.js → ecom-address-rac-Bw9eH0iF.js} +1 -1
- package/dist/component/{ecom-subscription-checkbox-rac-BpILYYtb.js → ecom-subscription-checkbox-rac-B5PVOO2a.js} +10 -17
- package/dist/component/{email-input-field-rac-Cb6ECUnT.js → email-input-field-rac-B2kqQ6yo.js} +12 -12
- package/dist/component/{events-repeater-rac-BaYgjHjJ.js → events-repeater-rac--4OnUxWE.js} +53 -53
- package/dist/component/{events-rsvp-rac-CK0hpQKD.js → events-rsvp-rac-CczCoo3T.js} +12 -12
- package/dist/component/{field-error-headless-CN2-F78X.js → field-error-headless-D3-1L5sf.js} +1 -1
- package/dist/component/{field-label-headless-Ca6NcX2l.js → field-label-headless-Du4ckIVy.js} +1 -1
- package/dist/component/{file-upload-rac-C0DqDLp2.js → file-upload-rac-DbdkUbWM.js} +79 -79
- package/dist/component/{fixed-payment-rac-C5qNAT_7.js → fixed-payment-rac-f9-01iDN.js} +7 -7
- package/dist/component/{form-D1xJH87b.js → form-DQauhsho.js} +69 -69
- package/dist/component/form-element-classes-bLFmhsKw.js +137 -0
- package/dist/component/form.js +1 -1
- package/dist/component/{header-field-rac-BN-Ib7VY.js → header-field-rac-DamDk5BR.js} +3 -3
- package/dist/component/{header-rac-CE0NjfoF.js → header-rac-CR9T3Pnu.js} +1 -1
- package/dist/component/{image-choice-rac-D6dIXR_x.js → image-choice-rac-DJ_8v467.js} +12 -12
- package/dist/component/{index-CcsZgBFf.js → index-BB7d_9Dv.js} +4 -4
- package/dist/component/{index-DOd4eW8z.js → index-CcUTIUWM.js} +2 -2
- package/dist/component/{isObjectLike-DfUDKPeo.js → isObjectLike-xvPa_08X.js} +1 -1
- package/dist/component/{multiline-address-field-rac-jJ5HMakk.js → multiline-address-field-rac-CyaFOloE.js} +79 -79
- package/dist/component/{multiline-address-rac-GQF9HaNq.js → multiline-address-rac-CaHGUN_f.js} +1 -1
- package/dist/component/{number-input-field-rac-DRgq3Ll0.js → number-input-field-rac-BuYUzDWV.js} +14 -14
- package/dist/component/{number-input-rac-C2VoBZeq.js → number-input-rac-DMKX6nhk.js} +1 -1
- package/dist/component/{password-rac-DP8d_92z.js → password-rac-0RUXPAn6.js} +37 -37
- package/dist/component/{payment-input-rac-BycHF-zC.js → payment-input-rac-CHSZ3-Lt.js} +16 -16
- package/dist/component/{phone-input-field-rac-C3_-Dc35.js → phone-input-field-rac-JmIFcP1e.js} +28 -28
- package/dist/component/{phone-rac-DAxScWRl.js → phone-rac-BLRnAPXP.js} +1 -1
- package/dist/component/{product-list-rac-Bxdu4NFP.js → product-list-rac-BkF5tDwt.js} +9 -9
- package/dist/component/quiz-radio-group-rac-32cCMTUS.js +6 -0
- package/dist/component/{radio-button-module-classes-D71u96Y9.js → radio-button-module-classes-IOulhuSH.js} +3 -3
- package/dist/component/radio-group-field-rac-CJwku6e0.js +46 -0
- package/dist/component/{radio-group-rac-DqdjCYmd.js → radio-group-rac-BiW-9Abj.js} +1 -1
- package/dist/component/{rating-input-field-rac-C4Ztlh1u.js → rating-input-field-rac-B9cwaROK.js} +29 -29
- package/dist/component/{rating-input-rac-B4lF_LX7.js → rating-input-rac-BpwlNvzQ.js} +1 -1
- package/dist/component/{rich-content-rac.module-CmW7FwmQ.js → rich-content-rac.module-B1uyPmtK.js} +1 -1
- package/dist/component/{rich-text-field-rac-MwKpKbvj.js → rich-text-field-rac-C_qE7Ykg.js} +3 -3
- package/dist/component/{rich-text-rac-DcMBqEFb.js → rich-text-rac-VfeZxS27.js} +1 -1
- package/dist/component/{service-dropdown-rac-CZWVFnR8.js → service-dropdown-rac-BCfs8IhW.js} +17 -17
- package/dist/component/{services-multi-choice-rac-DvHcWQHS.js → services-multi-choice-rac-CCqdF_7P.js} +6 -6
- package/dist/component/{signature-rac-CMTAWkaY.js → signature-rac-DOyMo3u0.js} +72 -72
- package/dist/component/{submit-button-rac-HnfWQ8wg.js → submit-button-rac-C2uA5DeE.js} +11 -11
- package/dist/component/{tags-field-rac-BuqOeG7-.js → tags-field-rac-C_uIw2by.js} +35 -35
- package/dist/component/{tags-rac-FbHwPPKs.js → tags-rac-1pQ-fpe_.js} +1 -1
- package/dist/component/{text-area-field-rac-Bq224M1o.js → text-area-field-rac-DqlOkm7e.js} +22 -22
- package/dist/component/{text-area-rac-COcGlAYk.js → text-area-rac-DPdkrFcH.js} +1 -1
- package/dist/component/{text-input-field-rac-CTS4jFhC.js → text-input-field-rac-CmXm6r1w.js} +5 -5
- package/dist/component/{text-input-headless-QVLKSgJE.js → text-input-headless-DD__2DFf.js} +3 -3
- package/dist/component/{text-input-rac-BCCkVVG9.js → text-input-rac-DRHyQEH7.js} +1 -1
- package/dist/component/{time-input-rac-7n8d5ppJ.js → time-input-rac-BJPIymQY.js} +21 -21
- package/dist/component/{url-input-field-rac-ChPfhq6I.js → url-input-field-rac-CFDYkZ6I.js} +14 -14
- package/dist/component/{url-input-rac-cFZ8HC3U.js → url-input-rac-C0ChQUzq.js} +1 -1
- package/dist/component/{use-dropdown-option-class-name-Cf2B9xAE.js → use-dropdown-option-class-name-3L5ZmNLK.js} +2 -2
- package/dist/component/{use-element-state-class-name-DF2VZawA.js → use-element-state-class-name-BatTc2bw.js} +1 -1
- package/dist/component/{use-is-forced-open-dropdown-B_knxuKJ.js → use-is-forced-open-dropdown-B0jiPTmS.js} +1 -1
- package/dist/component/{use-service-options-base-Clx3S0du.js → use-service-options-base-oeE7xszw.js} +1 -1
- package/dist/component/{use-text-input-class-name-MbmOF6tH.js → use-text-input-class-name-LQ5S-NLh.js} +3 -3
- package/package.json +2 -2
- package/dist/component/contacts-subscribe-rac-Dv-QNZZc.js +0 -13
- package/dist/component/form-element-classes-BtKlobUX.js +0 -192
- package/dist/component/quiz-radio-group-rac-mAn0MuPW.js +0 -13
- package/dist/component/radio-group-field-rac-eij4o0_R.js +0 -50
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { RicosViewer as N } from "@wix/ricos/viewer";
|
|
2
|
-
import
|
|
3
|
-
import r, { useCallback as
|
|
4
|
-
import { TextField as
|
|
5
|
-
import { ak as p, ah as d, am as x } from "./form-
|
|
2
|
+
import l from "classnames";
|
|
3
|
+
import r, { useCallback as T, useRef as O } from "react";
|
|
4
|
+
import { TextField as S, TextArea as y } from "react-aria-components";
|
|
5
|
+
import { ak as p, ah as d, am as x } from "./form-DQauhsho.js";
|
|
6
6
|
import { f as i } from "./find-child-C60k4CxG.js";
|
|
7
|
-
import { D as h, E as g } from "./field-error-headless-
|
|
8
|
-
import { L as v } from "./field-label-headless-
|
|
7
|
+
import { D as h, E as g } from "./field-error-headless-D3-1L5sf.js";
|
|
8
|
+
import { L as v } from "./field-label-headless-Du4ckIVy.js";
|
|
9
9
|
import { E as M } from "./error-icon-hZxQ6DEy.js";
|
|
10
10
|
import { s as c } from "./field-rac.module-B4l_0KRU.js";
|
|
11
|
-
import {
|
|
12
|
-
import { u as V } from "./use-text-input-class-name-
|
|
11
|
+
import { v as q, J as B, o as k, j as P } from "./form-element-classes-bLFmhsKw.js";
|
|
12
|
+
import { u as V } from "./use-text-input-class-name-LQ5S-NLh.js";
|
|
13
13
|
const e = ({ children: t }) => {
|
|
14
|
-
const { id: a, value: m, onChange: s, disabled: u, required: n, readOnly:
|
|
14
|
+
const { id: a, value: m, onChange: s, disabled: u, required: n, readOnly: o, onBlur: E, onFocus: f, FieldLayout: I, hasError: b } = p(), { labelId: F } = d(), L = T((A) => {
|
|
15
15
|
s(A);
|
|
16
16
|
}, [
|
|
17
17
|
s
|
|
@@ -19,12 +19,12 @@ const e = ({ children: t }) => {
|
|
|
19
19
|
return /* @__PURE__ */ r.createElement(I, {
|
|
20
20
|
fieldId: a,
|
|
21
21
|
renderLabel: () => R,
|
|
22
|
-
renderInput: () => /* @__PURE__ */ r.createElement(
|
|
22
|
+
renderInput: () => /* @__PURE__ */ r.createElement(S, {
|
|
23
23
|
"aria-labelledby": F,
|
|
24
24
|
value: m ?? "",
|
|
25
25
|
onChange: L,
|
|
26
26
|
isDisabled: u,
|
|
27
|
-
isReadOnly:
|
|
27
|
+
isReadOnly: o,
|
|
28
28
|
isRequired: n,
|
|
29
29
|
isInvalid: b,
|
|
30
30
|
onBlur: E,
|
|
@@ -33,10 +33,10 @@ const e = ({ children: t }) => {
|
|
|
33
33
|
renderDescription: () => /* @__PURE__ */ r.createElement(r.Fragment, null, C, _)
|
|
34
34
|
});
|
|
35
35
|
}, j = ({ className: t }) => {
|
|
36
|
-
const { inputId: a, ariaDescribedBy: m } = d(), { id: s, placeholder: u } = p(), n =
|
|
36
|
+
const { inputId: a, ariaDescribedBy: m } = d(), { id: s, placeholder: u } = p(), n = O(null);
|
|
37
37
|
return x(() => {
|
|
38
|
-
var
|
|
39
|
-
(
|
|
38
|
+
var o;
|
|
39
|
+
(o = n.current) == null || o.focus();
|
|
40
40
|
}, s), /* @__PURE__ */ r.createElement(y, {
|
|
41
41
|
ref: n,
|
|
42
42
|
id: a,
|
|
@@ -49,24 +49,24 @@ e.Label = v;
|
|
|
49
49
|
e.Input = j;
|
|
50
50
|
e.Description = h;
|
|
51
51
|
e.Error = g;
|
|
52
|
-
const w = "_input_ug5v8_1",
|
|
52
|
+
const w = "_input_ug5v8_1", J = {
|
|
53
53
|
input: w
|
|
54
|
-
},
|
|
54
|
+
}, Q = ({ content: t, locale: a }) => /* @__PURE__ */ r.createElement(N, {
|
|
55
55
|
content: t,
|
|
56
56
|
locale: a
|
|
57
57
|
}), te = () => {
|
|
58
|
-
const t = V(
|
|
58
|
+
const t = V(J.input);
|
|
59
59
|
return /* @__PURE__ */ r.createElement(e, null, /* @__PURE__ */ r.createElement(e.Label, {
|
|
60
|
-
className:
|
|
60
|
+
className: l(q, c.label)
|
|
61
61
|
}, /* @__PURE__ */ r.createElement(e.Label.Required, {
|
|
62
|
-
className:
|
|
62
|
+
className: l(B, c.requiredMark)
|
|
63
63
|
})), /* @__PURE__ */ r.createElement(e.Input, {
|
|
64
64
|
className: t
|
|
65
65
|
}), /* @__PURE__ */ r.createElement(e.Error, {
|
|
66
|
-
className:
|
|
66
|
+
className: l(k, c.error)
|
|
67
67
|
}, /* @__PURE__ */ r.createElement(M, null), /* @__PURE__ */ r.createElement(e.Error.Text, null)), /* @__PURE__ */ r.createElement(e.Description, {
|
|
68
|
-
className:
|
|
69
|
-
},
|
|
68
|
+
className: l(P, c.description)
|
|
69
|
+
}, Q));
|
|
70
70
|
};
|
|
71
71
|
export {
|
|
72
72
|
te as T
|
package/dist/component/{text-input-field-rac-CTS4jFhC.js → text-input-field-rac-CmXm6r1w.js}
RENAMED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { RicosViewer as l } from "@wix/ricos/viewer";
|
|
2
2
|
import t from "classnames";
|
|
3
3
|
import e from "react";
|
|
4
|
-
import { T as r } from "./text-input-headless-
|
|
4
|
+
import { T as r } from "./text-input-headless-DD__2DFf.js";
|
|
5
5
|
import { E as o } from "./error-icon-hZxQ6DEy.js";
|
|
6
6
|
import { s as a } from "./field-rac.module-B4l_0KRU.js";
|
|
7
|
-
import {
|
|
8
|
-
import { u as p } from "./use-text-input-class-name-
|
|
7
|
+
import { v as n, J as c, o as E, j as i } from "./form-element-classes-bLFmhsKw.js";
|
|
8
|
+
import { u as p } from "./use-text-input-class-name-LQ5S-NLh.js";
|
|
9
9
|
const I = ({ content: s, locale: m }) => /* @__PURE__ */ e.createElement(l, {
|
|
10
10
|
content: s,
|
|
11
11
|
locale: m
|
|
12
|
-
}),
|
|
12
|
+
}), C = () => {
|
|
13
13
|
const s = p();
|
|
14
14
|
return /* @__PURE__ */ e.createElement(r, null, /* @__PURE__ */ e.createElement(r.Label, {
|
|
15
15
|
className: t(n, a.label)
|
|
@@ -24,5 +24,5 @@ const I = ({ content: s, locale: m }) => /* @__PURE__ */ e.createElement(l, {
|
|
|
24
24
|
}, I));
|
|
25
25
|
};
|
|
26
26
|
export {
|
|
27
|
-
|
|
27
|
+
C as T
|
|
28
28
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import t, { useRef as L } from "react";
|
|
2
2
|
import { TextField as R, Input as h } from "react-aria-components";
|
|
3
|
-
import { ak as d, ah as c, am as v } from "./form-
|
|
3
|
+
import { ak as d, ah as c, am as v } from "./form-DQauhsho.js";
|
|
4
4
|
import { f as a } from "./find-child-C60k4CxG.js";
|
|
5
|
-
import { D as T, E as g } from "./field-error-headless-
|
|
6
|
-
import { L as x } from "./field-label-headless-
|
|
5
|
+
import { D as T, E as g } from "./field-error-headless-D3-1L5sf.js";
|
|
6
|
+
import { L as x } from "./field-label-headless-Du4ckIVy.js";
|
|
7
7
|
const e = ({ children: r }) => {
|
|
8
8
|
const { id: s, value: i, onChange: l, disabled: u, readOnly: n, required: o, hasError: p, onBlur: m, onFocus: b, FieldLayout: f } = d(), { labelId: E } = c(), I = a(r, e.Label), F = a(r, e.Input), y = a(r, e.Description), D = a(r, e.Error);
|
|
9
9
|
return /* @__PURE__ */ t.createElement(f, {
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import e, { useCallback as V, useRef as
|
|
2
|
-
import { RicosViewer as
|
|
1
|
+
import e, { useCallback as V, useRef as v, useContext as x } from "react";
|
|
2
|
+
import { RicosViewer as k } from "@wix/ricos/viewer";
|
|
3
3
|
import c from "classnames";
|
|
4
|
-
import { parseTime as
|
|
4
|
+
import { parseTime as q } from "@internationalized/date";
|
|
5
5
|
import { TimeField as B, DateInput as U, DateSegment as _, TimeFieldStateContext as j } from "react-aria-components";
|
|
6
|
-
import { ak as p, ah as w, au as
|
|
6
|
+
import { ak as p, ah as w, au as S, am as J } from "./form-DQauhsho.js";
|
|
7
7
|
import { f as m, a as F } from "./find-child-C60k4CxG.js";
|
|
8
|
-
import { D as
|
|
9
|
-
import { L as
|
|
8
|
+
import { D as Q, E as z } from "./field-error-headless-D3-1L5sf.js";
|
|
9
|
+
import { L as G } from "./field-label-headless-Du4ckIVy.js";
|
|
10
10
|
import { E as K } from "./error-icon-hZxQ6DEy.js";
|
|
11
|
-
import { H as
|
|
11
|
+
import { H as T } from "./custom-focus-class-_483Pkwp.js";
|
|
12
12
|
import { s as f } from "./field-rac.module-B4l_0KRU.js";
|
|
13
|
-
import {
|
|
14
|
-
import { u as $ } from "./use-text-input-class-name-
|
|
13
|
+
import { v as W, J as X, o as Y, j as Z } from "./form-element-classes-bLFmhsKw.js";
|
|
14
|
+
import { u as $ } from "./use-text-input-class-name-LQ5S-NLh.js";
|
|
15
15
|
const r = ({ children: t }) => {
|
|
16
16
|
const { id: n, value: l, onChange: o, disabled: i, readOnly: s, required: a, onBlur: d, onFocus: E, use24HourFormat: C, FieldLayout: g, hasError: I } = p(), { inputId: D, ariaDescribedBy: L, labelId: R } = w(), b = V((M) => {
|
|
17
17
|
const H = ae(M);
|
|
@@ -66,8 +66,8 @@ const r = ({ children: t }) => {
|
|
|
66
66
|
}
|
|
67
67
|
});
|
|
68
68
|
}, ee = ({ className: t, ...n }) => {
|
|
69
|
-
const { id: l, hidePlaceholder: o } = p(), { segment: i } = n, { t: s } =
|
|
70
|
-
|
|
69
|
+
const { id: l, hidePlaceholder: o } = p(), { segment: i } = n, { t: s } = S(), a = v(null);
|
|
70
|
+
J(() => {
|
|
71
71
|
var E;
|
|
72
72
|
(E = a.current) == null || E.focus();
|
|
73
73
|
}, l);
|
|
@@ -81,7 +81,7 @@ const r = ({ children: t }) => {
|
|
|
81
81
|
}
|
|
82
82
|
});
|
|
83
83
|
}, te = ({ className: t, ...n }) => {
|
|
84
|
-
const { hidePlaceholder: l } = p(), { segment: o } = n, { t: i } =
|
|
84
|
+
const { hidePlaceholder: l } = p(), { segment: o } = n, { t: i } = S(), s = l ? void 0 : i("field.date.placeholder.minute");
|
|
85
85
|
return /* @__PURE__ */ e.createElement(_, {
|
|
86
86
|
segment: o,
|
|
87
87
|
className: t,
|
|
@@ -90,7 +90,7 @@ const r = ({ children: t }) => {
|
|
|
90
90
|
}
|
|
91
91
|
});
|
|
92
92
|
}, re = ({ className: t, ...n }) => {
|
|
93
|
-
const { hidePlaceholder: l } = p(), { segment: o } = n, { t: i } =
|
|
93
|
+
const { hidePlaceholder: l } = p(), { segment: o } = n, { t: i } = S(), s = x(j), a = l ? void 0 : i("field.date.placeholder.period"), d = () => s == null ? void 0 : s.increment("dayPeriod");
|
|
94
94
|
return /* @__PURE__ */ e.createElement(_, {
|
|
95
95
|
segment: o,
|
|
96
96
|
className: t,
|
|
@@ -103,15 +103,15 @@ const r = ({ children: t }) => {
|
|
|
103
103
|
u.Hour = ee;
|
|
104
104
|
u.Minute = te;
|
|
105
105
|
u.Period = re;
|
|
106
|
-
r.Label =
|
|
106
|
+
r.Label = G;
|
|
107
107
|
r.Time = u;
|
|
108
|
-
r.Description =
|
|
109
|
-
r.Error =
|
|
108
|
+
r.Description = Q;
|
|
109
|
+
r.Error = z;
|
|
110
110
|
function ne(t) {
|
|
111
111
|
if (!t)
|
|
112
112
|
return null;
|
|
113
113
|
try {
|
|
114
|
-
return
|
|
114
|
+
return q(t);
|
|
115
115
|
} catch {
|
|
116
116
|
return null;
|
|
117
117
|
}
|
|
@@ -131,7 +131,7 @@ const oe = "_time_10p0h_1", se = "_hour_10p0h_14", le = "_minute_10p0h_15", ie =
|
|
|
131
131
|
hour: se,
|
|
132
132
|
minute: le,
|
|
133
133
|
period: ie
|
|
134
|
-
}, ce = ({ content: t, locale: n }) => /* @__PURE__ */ e.createElement(
|
|
134
|
+
}, ce = ({ content: t, locale: n }) => /* @__PURE__ */ e.createElement(k, {
|
|
135
135
|
content: t,
|
|
136
136
|
locale: n
|
|
137
137
|
}), me = () => {
|
|
@@ -143,11 +143,11 @@ const oe = "_time_10p0h_1", se = "_hour_10p0h_14", le = "_minute_10p0h_15", ie =
|
|
|
143
143
|
})), /* @__PURE__ */ e.createElement(r.Time, {
|
|
144
144
|
className: t
|
|
145
145
|
}, /* @__PURE__ */ e.createElement(r.Time.Hour, {
|
|
146
|
-
className: c(h.hour,
|
|
146
|
+
className: c(h.hour, T)
|
|
147
147
|
}), /* @__PURE__ */ e.createElement(r.Time.Minute, {
|
|
148
|
-
className: c(h.minute,
|
|
148
|
+
className: c(h.minute, T)
|
|
149
149
|
}), /* @__PURE__ */ e.createElement(r.Time.Period, {
|
|
150
|
-
className: c(h.period,
|
|
150
|
+
className: c(h.period, T)
|
|
151
151
|
})), /* @__PURE__ */ e.createElement(r.Error, {
|
|
152
152
|
className: c(Y, f.error)
|
|
153
153
|
}, /* @__PURE__ */ e.createElement(K, null), /* @__PURE__ */ e.createElement(r.Error.Text, null)), /* @__PURE__ */ e.createElement(r.Description, {
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { RicosViewer as
|
|
1
|
+
import { RicosViewer as N } from "@wix/ricos/viewer";
|
|
2
2
|
import i from "classnames";
|
|
3
|
-
import r, { useCallback as
|
|
3
|
+
import r, { useCallback as S, useRef as O } from "react";
|
|
4
4
|
import { TextField as y, Input as A } from "react-aria-components";
|
|
5
|
-
import { ak as d, ah as E, am as k } from "./form-
|
|
5
|
+
import { ak as d, ah as E, am as k } from "./form-DQauhsho.js";
|
|
6
6
|
import { f as c } from "./find-child-C60k4CxG.js";
|
|
7
|
-
import { D as
|
|
8
|
-
import { L as
|
|
9
|
-
import { u as
|
|
7
|
+
import { D as v, E as B } from "./field-error-headless-D3-1L5sf.js";
|
|
8
|
+
import { L as T } from "./field-label-headless-Du4ckIVy.js";
|
|
9
|
+
import { u as g } from "./use-invoke-callback-UH73A_J3.js";
|
|
10
10
|
import { E as M } from "./error-icon-hZxQ6DEy.js";
|
|
11
11
|
import { s as u } from "./field-rac.module-B4l_0KRU.js";
|
|
12
|
-
import {
|
|
13
|
-
import { u as w } from "./use-text-input-class-name-
|
|
12
|
+
import { v as P, J as q, o as x, j as U } from "./form-element-classes-bLFmhsKw.js";
|
|
13
|
+
import { u as w } from "./use-text-input-class-name-LQ5S-NLh.js";
|
|
14
14
|
const V = (t) => t ? `https://${String(t).replace(/^https?:\/\//, "")}` : "", e = ({ children: t }) => {
|
|
15
|
-
const { id: o, value: a, onChange: s, disabled: m, readOnly: n, required: l, hasError: I, onBlur: f, onFocus: b, FieldLayout: R } = d(), { labelId: F } = E(), p =
|
|
15
|
+
const { id: o, value: a, onChange: s, disabled: m, readOnly: n, required: l, hasError: I, onBlur: f, onFocus: b, FieldLayout: R } = d(), { labelId: F } = E(), p = g(f), L = c(t, e.Label), D = c(t, e.Input), C = c(t, e.Description), _ = c(t, e.Error), h = S(() => {
|
|
16
16
|
s(V(a)), p();
|
|
17
17
|
}, [
|
|
18
18
|
p,
|
|
@@ -30,7 +30,7 @@ const V = (t) => t ? `https://${String(t).replace(/^https?:\/\//, "")}` : "", e
|
|
|
30
30
|
isReadOnly: n,
|
|
31
31
|
isRequired: l,
|
|
32
32
|
isInvalid: I,
|
|
33
|
-
onBlur:
|
|
33
|
+
onBlur: h,
|
|
34
34
|
onFocus: b
|
|
35
35
|
}, D),
|
|
36
36
|
renderDescription: () => /* @__PURE__ */ r.createElement(r.Fragment, null, _, C)
|
|
@@ -49,11 +49,11 @@ const V = (t) => t ? `https://${String(t).replace(/^https?:\/\//, "")}` : "", e
|
|
|
49
49
|
placeholder: a
|
|
50
50
|
});
|
|
51
51
|
};
|
|
52
|
-
e.Label =
|
|
52
|
+
e.Label = T;
|
|
53
53
|
e.Input = W;
|
|
54
|
-
e.Description =
|
|
55
|
-
e.Error =
|
|
56
|
-
const $ = ({ content: t, locale: o }) => /* @__PURE__ */ r.createElement(
|
|
54
|
+
e.Description = v;
|
|
55
|
+
e.Error = B;
|
|
56
|
+
const $ = ({ content: t, locale: o }) => /* @__PURE__ */ r.createElement(N, {
|
|
57
57
|
content: t,
|
|
58
58
|
locale: o
|
|
59
59
|
}), oe = () => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import a from "classnames";
|
|
2
2
|
import { s as o } from "./field-rac.module-B4l_0KRU.js";
|
|
3
|
-
import { m as r } from "./form-element-classes-
|
|
4
|
-
import { u as l } from "./use-element-state-class-name-
|
|
3
|
+
import { m as r } from "./form-element-classes-bLFmhsKw.js";
|
|
4
|
+
import { u as l } from "./use-element-state-class-name-BatTc2bw.js";
|
|
5
5
|
const m = {
|
|
6
6
|
base: o.selectOption,
|
|
7
7
|
selected: o.selectOptionSelected,
|
package/dist/component/{use-service-options-base-Clx3S0du.js → use-service-options-base-oeE7xszw.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useState as o, useCallback as D, useEffect as m, useMemo as b } from "react";
|
|
2
|
-
import { aj as v } from "./form-
|
|
2
|
+
import { aj as v } from "./form-DQauhsho.js";
|
|
3
3
|
const j = (I) => {
|
|
4
4
|
const { fieldType: L, isEditor: t = !1, postProcessOptions: i, customFetchLogic: a, onInitialDataLoaded: n } = I, [O, h] = o(!1), [g, p] = o([]), [E, u] = o(!1), [c, f] = o(!1), s = v(L), r = D((e) => {
|
|
5
5
|
let d = e.map((l) => ({
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ak as l } from "./form-
|
|
1
|
+
import { ak as l } from "./form-DQauhsho.js";
|
|
2
2
|
import { s } from "./field-rac.module-B4l_0KRU.js";
|
|
3
|
-
import {
|
|
4
|
-
import { u as i } from "./use-element-state-class-name-
|
|
3
|
+
import { O as m } from "./form-element-classes-bLFmhsKw.js";
|
|
4
|
+
import { u as i } from "./use-element-state-class-name-BatTc2bw.js";
|
|
5
5
|
const c = (...e) => {
|
|
6
6
|
const { disabled: a, readOnly: t } = l(), o = i({
|
|
7
7
|
globalClasses: m,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/form-elements",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.106.0",
|
|
4
4
|
"description": "The Wix Forms rendering element for Builder apps, loaded at runtime as @wix/form-elements/Form",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"files": [
|
|
@@ -156,5 +156,5 @@
|
|
|
156
156
|
]
|
|
157
157
|
}
|
|
158
158
|
},
|
|
159
|
-
"falconPackageHash": "
|
|
159
|
+
"falconPackageHash": "4dda8adc6b1e6b6c2843c62201566779244ac2e0462b68c11d5d50ef"
|
|
160
160
|
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import C from "react";
|
|
2
|
-
import { C as e } from "./checkbox-field-rac-D5YjimAI.js";
|
|
3
|
-
import { Y as r, Z as t, X as _ } from "./form-element-classes-BtKlobUX.js";
|
|
4
|
-
const S = () => /* @__PURE__ */ C.createElement(e, {
|
|
5
|
-
classes: {
|
|
6
|
-
container: _,
|
|
7
|
-
label: t,
|
|
8
|
-
indicator: r
|
|
9
|
-
}
|
|
10
|
-
});
|
|
11
|
-
export {
|
|
12
|
-
S as ContactsSubscribeRAC
|
|
13
|
-
};
|
|
@@ -1,192 +0,0 @@
|
|
|
1
|
-
const o = {
|
|
2
|
-
RADIO_GROUP: "radioGroup",
|
|
3
|
-
QUIZ_RADIO_GROUP: "quizRadioGroup",
|
|
4
|
-
RSVP: "rsvp",
|
|
5
|
-
CHECKBOX_GROUP: "checkboxGroup",
|
|
6
|
-
CHECKBOX: "checkbox",
|
|
7
|
-
SUBSCRIBE_CHECKBOX: "subscribeCheckbox",
|
|
8
|
-
ECOM_SUBSCRIPTION_CHECKBOX: "ecomSubscriptionCheckbox",
|
|
9
|
-
GUEST_CHECKBOX: "guestCheckbox",
|
|
10
|
-
PRODUCT_LIST: "productList",
|
|
11
|
-
TAGS: "tags",
|
|
12
|
-
DONATION: "donation",
|
|
13
|
-
IMAGE_CHOICE: "imageChoice",
|
|
14
|
-
RATINGS: "ratings",
|
|
15
|
-
RADIO_GROUP_RADIO_BUTTON: "radioGroupRadioButton",
|
|
16
|
-
QUIZ_RADIO_GROUP_RADIO_BUTTON: "quizRadioGroupRadioButton",
|
|
17
|
-
RSVP_RADIO_BUTTON: "rsvpRadioButton",
|
|
18
|
-
CHECKBOX_GROUP_INDICATOR: "checkboxGroupIndicator",
|
|
19
|
-
CHECKBOX_INDICATOR: "checkboxIndicator",
|
|
20
|
-
SUBSCRIBE_CHECKBOX_INDICATOR: "subscribeCheckboxIndicator",
|
|
21
|
-
ECOM_SUBSCRIPTION_CHECKBOX_INDICATOR: "ecomSubscriptionCheckboxIndicator",
|
|
22
|
-
GUEST_CHECKBOX_INDICATOR: "guestCheckboxIndicator",
|
|
23
|
-
PRODUCT_LIST_INDICATOR: "productListIndicator",
|
|
24
|
-
TAGS_OPTION: "tagsOption",
|
|
25
|
-
DONATION_OPTION: "donationOption",
|
|
26
|
-
IMAGE_CHOICE_OPTION: "imageChoiceOption",
|
|
27
|
-
IMAGE_CHOICE_OPTION_IMAGE: "imageChoiceOptionImage",
|
|
28
|
-
RATING_OPTION: "ratingOption",
|
|
29
|
-
TIME_SLOT: "timeSlot",
|
|
30
|
-
TEXT_INPUT: "textInput",
|
|
31
|
-
POPOVER: "popover",
|
|
32
|
-
DROPDOWN_OPTION: "dropdownOption"
|
|
33
|
-
}, e = "form-field-label", _ = "form-field-required-indicator", O = "form-field-description", t = "form-field-error", i = "form-field-input", r = "form-field-upload-button", s = "form-field-popover", I = "form-field-dropdown-trigger", c = {
|
|
34
|
-
key: o.DROPDOWN_OPTION,
|
|
35
|
-
parent: o.POPOVER,
|
|
36
|
-
base: "form-field-dropdown-option",
|
|
37
|
-
selected: "form-field-dropdown-option--selected",
|
|
38
|
-
hover: "form-field-dropdown-option--hover"
|
|
39
|
-
}, a = "form-field-suggestion", d = "form-field-option-label", C = "form-field-radio-group", n = "form-field-radio-group-option-label", R = {
|
|
40
|
-
key: o.RADIO_GROUP_RADIO_BUTTON,
|
|
41
|
-
parent: o.RADIO_GROUP,
|
|
42
|
-
base: "form-field-radio-group-radio-button",
|
|
43
|
-
selected: "form-field-radio-group-radio-button--selected",
|
|
44
|
-
hover: "form-field-radio-group-radio-button--hover"
|
|
45
|
-
}, f = "form-field-quiz-radio-group", E = "form-field-quiz-radio-group-option-label", S = {
|
|
46
|
-
key: o.QUIZ_RADIO_GROUP_RADIO_BUTTON,
|
|
47
|
-
parent: o.QUIZ_RADIO_GROUP,
|
|
48
|
-
base: "form-field-quiz-radio-group-radio-button",
|
|
49
|
-
selected: "form-field-quiz-radio-group-radio-button--selected",
|
|
50
|
-
hover: "form-field-quiz-radio-group-radio-button--hover"
|
|
51
|
-
}, T = "form-field-rsvp", l = "form-field-rsvp-option-label", L = {
|
|
52
|
-
key: o.RSVP_RADIO_BUTTON,
|
|
53
|
-
parent: o.RSVP,
|
|
54
|
-
base: "form-field-rsvp-radio-button",
|
|
55
|
-
selected: "form-field-rsvp-radio-button--selected",
|
|
56
|
-
hover: "form-field-rsvp-radio-button--hover"
|
|
57
|
-
}, A = "form-field-checkbox-group", D = "form-field-checkbox-group-option-label", F = {
|
|
58
|
-
key: o.CHECKBOX_GROUP_INDICATOR,
|
|
59
|
-
parent: o.CHECKBOX_GROUP,
|
|
60
|
-
base: "form-field-checkbox-group-indicator",
|
|
61
|
-
selected: "form-field-checkbox-group-indicator--selected",
|
|
62
|
-
hover: "form-field-checkbox-group-indicator--hover"
|
|
63
|
-
}, m = "form-field-checkbox", N = "form-field-checkbox-label", p = {
|
|
64
|
-
key: o.CHECKBOX_INDICATOR,
|
|
65
|
-
parent: o.CHECKBOX,
|
|
66
|
-
base: "form-field-checkbox-indicator",
|
|
67
|
-
selected: "form-field-checkbox-indicator--selected",
|
|
68
|
-
hover: "form-field-checkbox-indicator--hover"
|
|
69
|
-
}, b = "form-field-subscribe-checkbox", B = "form-field-subscribe-checkbox-label", M = {
|
|
70
|
-
key: o.SUBSCRIBE_CHECKBOX_INDICATOR,
|
|
71
|
-
parent: o.SUBSCRIBE_CHECKBOX,
|
|
72
|
-
base: "form-field-subscribe-checkbox-indicator",
|
|
73
|
-
selected: "form-field-subscribe-checkbox-indicator--selected",
|
|
74
|
-
hover: "form-field-subscribe-checkbox-indicator--hover"
|
|
75
|
-
}, u = "form-field-ecom-subscription-checkbox", P = "form-field-ecom-subscription-checkbox-label", U = {
|
|
76
|
-
key: o.ECOM_SUBSCRIPTION_CHECKBOX_INDICATOR,
|
|
77
|
-
parent: o.ECOM_SUBSCRIPTION_CHECKBOX,
|
|
78
|
-
base: "form-field-ecom-subscription-checkbox-indicator",
|
|
79
|
-
selected: "form-field-ecom-subscription-checkbox-indicator--selected",
|
|
80
|
-
hover: "form-field-ecom-subscription-checkbox-indicator--hover"
|
|
81
|
-
}, h = "form-field-guest-checkbox", G = "form-field-guest-checkbox-label", k = {
|
|
82
|
-
key: o.GUEST_CHECKBOX_INDICATOR,
|
|
83
|
-
parent: o.GUEST_CHECKBOX,
|
|
84
|
-
base: "form-field-guest-checkbox-indicator",
|
|
85
|
-
selected: "form-field-guest-checkbox-indicator--selected",
|
|
86
|
-
hover: "form-field-guest-checkbox-indicator--hover"
|
|
87
|
-
}, g = "form-field-product-list", H = "form-field-product-list-product-name", v = "form-field-product-list-price", x = {
|
|
88
|
-
key: o.PRODUCT_LIST_INDICATOR,
|
|
89
|
-
parent: o.PRODUCT_LIST,
|
|
90
|
-
base: "form-field-product-list-indicator",
|
|
91
|
-
selected: "form-field-product-list-indicator--selected",
|
|
92
|
-
hover: "form-field-product-list-indicator--hover"
|
|
93
|
-
}, X = "form-field-tags", K = {
|
|
94
|
-
key: o.TAGS_OPTION,
|
|
95
|
-
parent: o.TAGS,
|
|
96
|
-
base: "form-field-tags-option",
|
|
97
|
-
selected: "form-field-tags-option--selected",
|
|
98
|
-
hover: "form-field-tags-option--hover"
|
|
99
|
-
}, y = "form-field-donation", V = {
|
|
100
|
-
key: o.DONATION_OPTION,
|
|
101
|
-
parent: o.DONATION,
|
|
102
|
-
base: "form-field-donation-option",
|
|
103
|
-
selected: "form-field-donation-option--selected",
|
|
104
|
-
hover: "form-field-donation-option--hover"
|
|
105
|
-
}, q = "form-field-image-choice", Q = {
|
|
106
|
-
key: o.IMAGE_CHOICE_OPTION,
|
|
107
|
-
parent: o.IMAGE_CHOICE,
|
|
108
|
-
base: "form-field-image-choice-option",
|
|
109
|
-
selected: "form-field-image-choice-option--selected",
|
|
110
|
-
hover: "form-field-image-choice-option--hover"
|
|
111
|
-
}, z = "form-field-image-choice-option-image", Z = {
|
|
112
|
-
key: o.TIME_SLOT,
|
|
113
|
-
base: "form-field-time-slot",
|
|
114
|
-
selected: "form-field-time-slot--selected",
|
|
115
|
-
hover: "form-field-time-slot--hover"
|
|
116
|
-
}, w = {
|
|
117
|
-
key: o.TEXT_INPUT,
|
|
118
|
-
base: "form-field-text-input",
|
|
119
|
-
hover: "form-field-text-input--hover"
|
|
120
|
-
}, W = "form-field-info-banner", Y = "form-field-calendar", j = "form-field-date-picker-calendar", J = "form-field-date-title", $ = "form-field-info-text", oo = "form-field-ratings", eo = {
|
|
121
|
-
key: o.RATING_OPTION,
|
|
122
|
-
parent: o.RATINGS,
|
|
123
|
-
base: "form-field-rating-option",
|
|
124
|
-
selected: "form-field-rating-option--selected",
|
|
125
|
-
hover: "form-field-rating-option--hover"
|
|
126
|
-
}, _o = "form-field-show-more-button", Oo = "form-rich-content", to = "form-submit-button", io = "form-submit-button-label", ro = "animated-icon", so = "form-submit-button-icon", Io = "form-next-button", co = "form-previous-button";
|
|
127
|
-
export {
|
|
128
|
-
X as $,
|
|
129
|
-
ro as A,
|
|
130
|
-
i as B,
|
|
131
|
-
e as C,
|
|
132
|
-
d as D,
|
|
133
|
-
s as E,
|
|
134
|
-
o as F,
|
|
135
|
-
g as G,
|
|
136
|
-
x as H,
|
|
137
|
-
v as I,
|
|
138
|
-
H as J,
|
|
139
|
-
f as K,
|
|
140
|
-
E as L,
|
|
141
|
-
S as M,
|
|
142
|
-
C as N,
|
|
143
|
-
n as O,
|
|
144
|
-
R as P,
|
|
145
|
-
oo as Q,
|
|
146
|
-
eo as R,
|
|
147
|
-
_ as S,
|
|
148
|
-
T,
|
|
149
|
-
l as U,
|
|
150
|
-
L as V,
|
|
151
|
-
_o as W,
|
|
152
|
-
b as X,
|
|
153
|
-
M as Y,
|
|
154
|
-
B as Z,
|
|
155
|
-
a as _,
|
|
156
|
-
Y as a,
|
|
157
|
-
K as a0,
|
|
158
|
-
w as a1,
|
|
159
|
-
Z as a2,
|
|
160
|
-
r as a3,
|
|
161
|
-
Io as a4,
|
|
162
|
-
co as a5,
|
|
163
|
-
Oo as a6,
|
|
164
|
-
to as a7,
|
|
165
|
-
so as a8,
|
|
166
|
-
io as a9,
|
|
167
|
-
m as b,
|
|
168
|
-
A as c,
|
|
169
|
-
F as d,
|
|
170
|
-
D as e,
|
|
171
|
-
p as f,
|
|
172
|
-
N as g,
|
|
173
|
-
j as h,
|
|
174
|
-
J as i,
|
|
175
|
-
O as j,
|
|
176
|
-
y as k,
|
|
177
|
-
V as l,
|
|
178
|
-
c as m,
|
|
179
|
-
I as n,
|
|
180
|
-
u as o,
|
|
181
|
-
U as p,
|
|
182
|
-
P as q,
|
|
183
|
-
t as r,
|
|
184
|
-
h as s,
|
|
185
|
-
k as t,
|
|
186
|
-
G as u,
|
|
187
|
-
q as v,
|
|
188
|
-
Q as w,
|
|
189
|
-
z as x,
|
|
190
|
-
W as y,
|
|
191
|
-
$ as z
|
|
192
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import _ from "react";
|
|
2
|
-
import { R } from "./radio-group-field-rac-eij4o0_R.js";
|
|
3
|
-
import { M as o, L as r, K as O } from "./form-element-classes-BtKlobUX.js";
|
|
4
|
-
const I = () => /* @__PURE__ */ _.createElement(R, {
|
|
5
|
-
classes: {
|
|
6
|
-
container: O,
|
|
7
|
-
label: r,
|
|
8
|
-
radioButton: o
|
|
9
|
-
}
|
|
10
|
-
});
|
|
11
|
-
export {
|
|
12
|
-
I as QuizRadioGroupRAC
|
|
13
|
-
};
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { RicosViewer as n } from "@wix/ricos/viewer";
|
|
2
|
-
import t from "classnames";
|
|
3
|
-
import e from "react";
|
|
4
|
-
import { a, s as r, R as c } from "./radio-button-module-classes-D71u96Y9.js";
|
|
5
|
-
import { E as i } from "./error-icon-hZxQ6DEy.js";
|
|
6
|
-
import { s as o } from "./field-rac.module-B4l_0KRU.js";
|
|
7
|
-
import { P as E, O, N as p, C as R, S as _, r as I, j as L } from "./form-element-classes-BtKlobUX.js";
|
|
8
|
-
import { u as N } from "./use-element-state-class-name-DF2VZawA.js";
|
|
9
|
-
import { u } from "./use-text-input-class-name-MbmOF6tH.js";
|
|
10
|
-
const D = ({ content: s, locale: l }) => /* @__PURE__ */ e.createElement(n, {
|
|
11
|
-
content: s,
|
|
12
|
-
locale: l
|
|
13
|
-
}), B = ({ classes: s = {
|
|
14
|
-
container: p,
|
|
15
|
-
label: O,
|
|
16
|
-
radioButton: E
|
|
17
|
-
} }) => {
|
|
18
|
-
const l = N({
|
|
19
|
-
globalClasses: s.radioButton,
|
|
20
|
-
moduleClasses: c
|
|
21
|
-
}), m = u();
|
|
22
|
-
return /* @__PURE__ */ e.createElement(a, {
|
|
23
|
-
className: r.group
|
|
24
|
-
}, /* @__PURE__ */ e.createElement(a.Label, {
|
|
25
|
-
className: t(R, o.label)
|
|
26
|
-
}, /* @__PURE__ */ e.createElement(a.Label.Required, {
|
|
27
|
-
className: t(_, o.requiredMark)
|
|
28
|
-
}), /* @__PURE__ */ e.createElement(a.Label.Image, {
|
|
29
|
-
className: r.labelImage
|
|
30
|
-
})), /* @__PURE__ */ e.createElement(a.Options, {
|
|
31
|
-
className: t(s.container, r.options)
|
|
32
|
-
}, /* @__PURE__ */ e.createElement(a.Option, {
|
|
33
|
-
className: r.option
|
|
34
|
-
}, /* @__PURE__ */ e.createElement(a.Option.Input, {
|
|
35
|
-
className: r.optionInput
|
|
36
|
-
}), /* @__PURE__ */ e.createElement(a.Option.Control, {
|
|
37
|
-
className: l
|
|
38
|
-
}), /* @__PURE__ */ e.createElement(a.Option.Label, {
|
|
39
|
-
className: t(s.label, r.optionLabel)
|
|
40
|
-
}), /* @__PURE__ */ e.createElement(a.Option.OtherInput, {
|
|
41
|
-
className: m
|
|
42
|
-
}))), /* @__PURE__ */ e.createElement(a.Error, {
|
|
43
|
-
className: t(I, o.error)
|
|
44
|
-
}, /* @__PURE__ */ e.createElement(i, null), /* @__PURE__ */ e.createElement(a.Error.Text, null)), /* @__PURE__ */ e.createElement(a.Description, {
|
|
45
|
-
className: t(L, o.description)
|
|
46
|
-
}, D));
|
|
47
|
-
};
|
|
48
|
-
export {
|
|
49
|
-
B as R
|
|
50
|
-
};
|