@wix/form-elements 1.105.0 → 1.107.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
package/dist/component/{rating-input-field-rac-C4Ztlh1u.js → rating-input-field-rac-B9cwaROK.js}
RENAMED
|
@@ -1,25 +1,25 @@
|
|
|
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 { ak as
|
|
5
|
-
import { RadioGroup as
|
|
4
|
+
import { ak as v, ah as b, au as H } from "./form-DQauhsho.js";
|
|
5
|
+
import { RadioGroup as T, RadioField as M, RadioButton as w } from "react-aria-components";
|
|
6
6
|
import { f as u, a as B } from "./find-child-C60k4CxG.js";
|
|
7
|
-
import { D as P, E as k } from "./field-error-headless-
|
|
8
|
-
import { L as q } from "./field-label-headless-
|
|
7
|
+
import { D as P, E as k } from "./field-error-headless-D3-1L5sf.js";
|
|
8
|
+
import { L as q } from "./field-label-headless-Du4ckIVy.js";
|
|
9
9
|
import { E as G } from "./error-icon-hZxQ6DEy.js";
|
|
10
10
|
import { s as g } from "./field-rac.module-B4l_0KRU.js";
|
|
11
|
-
import {
|
|
12
|
-
import { u as
|
|
11
|
+
import { v as x, J as U, H as j, o as z, j as J, I as Q } from "./form-element-classes-bLFmhsKw.js";
|
|
12
|
+
import { u as Z } from "./use-element-state-class-name-BatTc2bw.js";
|
|
13
13
|
const t = ({ children: a }) => {
|
|
14
|
-
const { id:
|
|
14
|
+
const { id: n, value: r, onChange: l, disabled: o, readOnly: d, required: c, hasError: i, onBlur: E, onFocus: C, FieldLayout: R } = v(), { labelId: _ } = b(), L = N((D) => l(Number(D)), [
|
|
15
15
|
l
|
|
16
16
|
]), f = u(a, t.Label), s = u(a, t.Ratings), S = u(a, t.Description), h = u(a, t.Error);
|
|
17
17
|
return /* @__PURE__ */ e.createElement(R, {
|
|
18
|
-
fieldId:
|
|
18
|
+
fieldId: n,
|
|
19
19
|
renderLabel: () => f,
|
|
20
|
-
renderInput: () => /* @__PURE__ */ e.createElement(
|
|
20
|
+
renderInput: () => /* @__PURE__ */ e.createElement(T, {
|
|
21
21
|
"aria-labelledby": _,
|
|
22
|
-
value:
|
|
22
|
+
value: r ? String(r) : void 0,
|
|
23
23
|
onChange: L,
|
|
24
24
|
isDisabled: o,
|
|
25
25
|
isReadOnly: d,
|
|
@@ -31,8 +31,8 @@ const t = ({ children: a }) => {
|
|
|
31
31
|
}, s),
|
|
32
32
|
renderDescription: () => /* @__PURE__ */ e.createElement(e.Fragment, null, h, S)
|
|
33
33
|
});
|
|
34
|
-
}, I = ({ children: a, className:
|
|
35
|
-
const { value: l, readOnly: o, hasError: d } =
|
|
34
|
+
}, I = ({ children: a, className: n, getReactionLabel: r }) => {
|
|
35
|
+
const { value: l, readOnly: o, hasError: d } = v(), { inputId: c, ariaDescribedBy: i } = b(), [E, C] = O(), R = A(null), _ = u(a, I.Rating), L = [
|
|
36
36
|
"1",
|
|
37
37
|
"2",
|
|
38
38
|
"3",
|
|
@@ -43,7 +43,7 @@ const t = ({ children: a }) => {
|
|
|
43
43
|
ref: R,
|
|
44
44
|
id: c,
|
|
45
45
|
"aria-describedby": i,
|
|
46
|
-
className:
|
|
46
|
+
className: n,
|
|
47
47
|
"data-invalid": d,
|
|
48
48
|
"data-readonly": o
|
|
49
49
|
}, L.map((s) => B(_, {
|
|
@@ -51,7 +51,7 @@ const t = ({ children: a }) => {
|
|
|
51
51
|
value: s,
|
|
52
52
|
isSelected: f(s),
|
|
53
53
|
onHoverChange: (S) => C(S ? s : void 0),
|
|
54
|
-
label:
|
|
54
|
+
label: r == null ? void 0 : r(Number(s))
|
|
55
55
|
})));
|
|
56
56
|
}, K = {
|
|
57
57
|
border: 0,
|
|
@@ -63,8 +63,8 @@ const t = ({ children: a }) => {
|
|
|
63
63
|
position: "absolute",
|
|
64
64
|
width: 1,
|
|
65
65
|
whiteSpace: "nowrap"
|
|
66
|
-
}, F = ({ className: a, children:
|
|
67
|
-
const { value: l, isSelected: o, onHoverChange: d, label: c } =
|
|
66
|
+
}, F = ({ className: a, children: n, ...r }) => {
|
|
67
|
+
const { value: l, isSelected: o, onHoverChange: d, label: c } = r;
|
|
68
68
|
return /* @__PURE__ */ e.createElement(M, {
|
|
69
69
|
value: l
|
|
70
70
|
}, /* @__PURE__ */ e.createElement(w, {
|
|
@@ -74,10 +74,10 @@ const t = ({ children: a }) => {
|
|
|
74
74
|
}) : a ?? "",
|
|
75
75
|
"data-active": o || void 0,
|
|
76
76
|
onHoverChange: d
|
|
77
|
-
}, ({ isHovered: i }) => /* @__PURE__ */ e.createElement(e.Fragment, null, typeof
|
|
77
|
+
}, ({ isHovered: i }) => /* @__PURE__ */ e.createElement(e.Fragment, null, typeof n == "function" ? n({
|
|
78
78
|
isSelected: o,
|
|
79
79
|
isHovered: i
|
|
80
|
-
}) :
|
|
80
|
+
}) : n, c ? /* @__PURE__ */ e.createElement("span", {
|
|
81
81
|
style: K
|
|
82
82
|
}, c) : null)));
|
|
83
83
|
};
|
|
@@ -102,33 +102,33 @@ const W = (a) => /* @__PURE__ */ e.createElement("svg", {
|
|
|
102
102
|
rating: Y,
|
|
103
103
|
ratingSelected: $,
|
|
104
104
|
ratingHover: V
|
|
105
|
-
}, ee = ({ content: a, locale:
|
|
105
|
+
}, ee = ({ content: a, locale: n }) => /* @__PURE__ */ e.createElement(y, {
|
|
106
106
|
content: a,
|
|
107
|
-
locale:
|
|
107
|
+
locale: n
|
|
108
108
|
}), te = {
|
|
109
109
|
base: p.rating,
|
|
110
110
|
selected: p.ratingSelected,
|
|
111
111
|
hover: p.ratingHover
|
|
112
112
|
}, ge = () => {
|
|
113
|
-
const { t: a } =
|
|
114
|
-
globalClasses:
|
|
113
|
+
const { t: a } = H(), n = Z({
|
|
114
|
+
globalClasses: Q,
|
|
115
115
|
moduleClasses: te
|
|
116
116
|
});
|
|
117
117
|
return /* @__PURE__ */ e.createElement(t, null, /* @__PURE__ */ e.createElement(t.Label, {
|
|
118
118
|
className: m(x, g.label)
|
|
119
119
|
}, /* @__PURE__ */ e.createElement(t.Label.Required, {
|
|
120
|
-
className: m(
|
|
120
|
+
className: m(U, g.requiredMark)
|
|
121
121
|
})), /* @__PURE__ */ e.createElement(t.Ratings, {
|
|
122
|
-
className: m(
|
|
123
|
-
getReactionLabel: (
|
|
124
|
-
count:
|
|
122
|
+
className: m(j, p.ratings),
|
|
123
|
+
getReactionLabel: (r) => a("rating-input.a11y.reaction-label", {
|
|
124
|
+
count: r
|
|
125
125
|
})
|
|
126
126
|
}, /* @__PURE__ */ e.createElement(t.Rating, {
|
|
127
|
-
className:
|
|
127
|
+
className: n
|
|
128
128
|
}, /* @__PURE__ */ e.createElement(W, null))), /* @__PURE__ */ e.createElement(t.Error, {
|
|
129
|
-
className: m(
|
|
129
|
+
className: m(z, g.error)
|
|
130
130
|
}, /* @__PURE__ */ e.createElement(G, null), /* @__PURE__ */ e.createElement(t.Error.Text, null)), /* @__PURE__ */ e.createElement(t.Description, {
|
|
131
|
-
className: m(
|
|
131
|
+
className: m(J, g.description)
|
|
132
132
|
}, ee));
|
|
133
133
|
};
|
|
134
134
|
export {
|
package/dist/component/{rich-content-rac.module-CmW7FwmQ.js → rich-content-rac.module-B1uyPmtK.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import c, { useState as l } from "react";
|
|
2
|
-
import { ak as a, ac as i, au as T } from "./form-
|
|
2
|
+
import { ak as a, ac as i, au as T } from "./form-DQauhsho.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";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import l from "classnames";
|
|
2
2
|
import e from "react";
|
|
3
|
-
import { ak as m, L as i, X as u, _ as R } from "./form-
|
|
4
|
-
import { u as T, R as C, s as d, T as p } from "./rich-content-rac.module-
|
|
5
|
-
import {
|
|
3
|
+
import { ak as m, L as i, X as u, _ as R } from "./form-DQauhsho.js";
|
|
4
|
+
import { u as T, R as C, s as d, T as p } from "./rich-content-rac.module-B1uyPmtK.js";
|
|
5
|
+
import { T as g } from "./form-element-classes-bLFmhsKw.js";
|
|
6
6
|
const h = {
|
|
7
7
|
colorPalette: R(),
|
|
8
8
|
customStyles: u()
|
package/dist/component/{service-dropdown-rac-CZWVFnR8.js → service-dropdown-rac-BCfs8IhW.js}
RENAMED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import t, { useRef as P, useMemo as L, useCallback as h, useEffect as T } from "react";
|
|
2
2
|
import { RicosViewer as w } from "@wix/ricos/viewer";
|
|
3
3
|
import u from "classnames";
|
|
4
|
-
import { ag as A, au as b, F as M, ak as y, ac as
|
|
5
|
-
import { u as
|
|
6
|
-
import { D as d } from "./dropdown-field-headless-
|
|
4
|
+
import { ag as A, au as b, F as M, ak as y, ac as x, h as V } from "./form-DQauhsho.js";
|
|
5
|
+
import { u as k } from "./use-service-options-base-oeE7xszw.js";
|
|
6
|
+
import { D as d } from "./dropdown-field-headless-CBaqlNZi.js";
|
|
7
7
|
import { C as H } from "./chevron-down-icon-CcpVm6B-.js";
|
|
8
8
|
import { E as U } from "./error-icon-hZxQ6DEy.js";
|
|
9
9
|
import { H as W } from "./custom-focus-class-_483Pkwp.js";
|
|
10
10
|
import { s as i } from "./field-rac.module-B4l_0KRU.js";
|
|
11
|
-
import {
|
|
12
|
-
import { u as
|
|
13
|
-
const
|
|
14
|
-
const { actions: r } = A(), { t:
|
|
11
|
+
import { v as q, J as B, n as G, x as j, o as J, j as Q } from "./form-element-classes-bLFmhsKw.js";
|
|
12
|
+
import { u as Y } from "./use-dropdown-option-class-name-3L5ZmNLK.js";
|
|
13
|
+
const z = "00000000-0000-0000-0000-000000000000", K = (e) => {
|
|
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(() => {
|
|
15
15
|
var s;
|
|
16
16
|
return ((s = e.options) == null ? void 0 : s.map((m) => m.id ?? "")) ?? [];
|
|
17
17
|
}, [
|
|
@@ -21,12 +21,12 @@ const J = "00000000-0000-0000-0000-000000000000", K = (e) => {
|
|
|
21
21
|
{
|
|
22
22
|
value: c,
|
|
23
23
|
label: c,
|
|
24
|
-
id:
|
|
24
|
+
id: z
|
|
25
25
|
}
|
|
26
26
|
] : s, [
|
|
27
27
|
n,
|
|
28
28
|
c
|
|
29
|
-
]), { isLoading: f, options: l, isEmpty:
|
|
29
|
+
]), { isLoading: f, options: l, isEmpty: C, shouldRender: I, setIsLoading: R, setOptions: _, setIsEmpty: S, processOptions: g } = k({
|
|
30
30
|
fieldType: M.SERVICES_DROPDOWN,
|
|
31
31
|
isEditor: e.isEditor,
|
|
32
32
|
postProcessOptions: O
|
|
@@ -85,16 +85,16 @@ const J = "00000000-0000-0000-0000-000000000000", K = (e) => {
|
|
|
85
85
|
return {
|
|
86
86
|
isLoading: f,
|
|
87
87
|
options: l,
|
|
88
|
-
isEmpty:
|
|
88
|
+
isEmpty: C,
|
|
89
89
|
onFocus: v,
|
|
90
90
|
onChange: N,
|
|
91
91
|
shouldRender: I
|
|
92
92
|
};
|
|
93
93
|
}, o = ({ children: e }) => {
|
|
94
|
-
const r = y(), { addOther:
|
|
94
|
+
const r = y(), { addOther: D } = r, n = x(), p = r.isEditor || n.isEditor || n.isComposer, { isLoading: c, options: a, isEmpty: E, onFocus: O, onChange: f, shouldRender: l } = K({
|
|
95
95
|
...r,
|
|
96
96
|
isEditor: p
|
|
97
|
-
}),
|
|
97
|
+
}), C = L(() => ({
|
|
98
98
|
...r,
|
|
99
99
|
options: c ? [] : a,
|
|
100
100
|
isLoading: c,
|
|
@@ -107,9 +107,9 @@ const J = "00000000-0000-0000-0000-000000000000", K = (e) => {
|
|
|
107
107
|
O,
|
|
108
108
|
f
|
|
109
109
|
]);
|
|
110
|
-
return !p && E && !
|
|
110
|
+
return !p && E && !D || !l ? null : /* @__PURE__ */ t.createElement(V.Provider, {
|
|
111
111
|
value: {
|
|
112
|
-
v2:
|
|
112
|
+
v2: C
|
|
113
113
|
}
|
|
114
114
|
}, /* @__PURE__ */ t.createElement(d, null, e));
|
|
115
115
|
};
|
|
@@ -122,7 +122,7 @@ const X = ({ content: e, locale: r }) => /* @__PURE__ */ t.createElement(w, {
|
|
|
122
122
|
content: e,
|
|
123
123
|
locale: r
|
|
124
124
|
}), Z = () => {
|
|
125
|
-
const e =
|
|
125
|
+
const e = Y(W);
|
|
126
126
|
return /* @__PURE__ */ t.createElement(o, null, /* @__PURE__ */ t.createElement(o.Label, {
|
|
127
127
|
className: u(q, i.label)
|
|
128
128
|
}, /* @__PURE__ */ t.createElement(o.Label.Required, {
|
|
@@ -136,9 +136,9 @@ const X = ({ content: e, locale: r }) => /* @__PURE__ */ t.createElement(w, {
|
|
|
136
136
|
}, /* @__PURE__ */ t.createElement(o.Options.Option, {
|
|
137
137
|
className: e
|
|
138
138
|
})), /* @__PURE__ */ t.createElement(o.Error, {
|
|
139
|
-
className: u(
|
|
139
|
+
className: u(J, i.error)
|
|
140
140
|
}, /* @__PURE__ */ t.createElement(U, null), /* @__PURE__ */ t.createElement(o.Error.Text, null)), /* @__PURE__ */ t.createElement(o.Description, {
|
|
141
|
-
className: u(
|
|
141
|
+
className: u(Q, i.description)
|
|
142
142
|
}, X));
|
|
143
143
|
}, ue = () => /* @__PURE__ */ t.createElement(Z, null);
|
|
144
144
|
export {
|
|
@@ -1,16 +1,16 @@
|
|
|
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, ak as d, h as D } from "./form-
|
|
5
|
-
import { u as N } from "./use-service-options-base-
|
|
6
|
-
import { C as n } from "./checkbox-group-field-headless-
|
|
4
|
+
import { F as R, ak as d, h as D } from "./form-DQauhsho.js";
|
|
5
|
+
import { u as N } from "./use-service-options-base-oeE7xszw.js";
|
|
6
|
+
import { C as n } from "./checkbox-group-field-headless-DnkUvDm8.js";
|
|
7
7
|
import { E as f } from "./error-icon-hZxQ6DEy.js";
|
|
8
8
|
import { C as F } from "./checkbox-indicator-module-classes-BpeSpGsW.js";
|
|
9
9
|
import { s as i } from "./field-rac.module-B4l_0KRU.js";
|
|
10
|
-
import {
|
|
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
11
|
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-
|
|
12
|
+
import { u as T } from "./use-element-state-class-name-BatTc2bw.js";
|
|
13
|
+
import { u as k } from "./use-text-input-class-name-LQ5S-NLh.js";
|
|
14
14
|
const y = (s) => {
|
|
15
15
|
var O;
|
|
16
16
|
const { isLoading: o, options: r, isEmpty: l, shouldRender: E, setOptions: c, setIsEmpty: m, setHasInitialDataLoaded: u } = N({
|