@wix/form-elements 1.161.0 → 1.162.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-BubC8I9X.js → appointment-rac-3Z1wiBX6.js} +123 -123
- package/dist/component/{bookings-address-rac-BbwvVs86.js → bookings-address-rac-2zV-a8SW.js} +1 -1
- package/dist/component/{bookings-email-rac-C2HCkcfa.js → bookings-email-rac-C1WakVnh.js} +1 -1
- package/dist/component/{bookings-first-name-rac-Uy7c5EBs.js → bookings-first-name-rac-6f18uXA0.js} +1 -1
- package/dist/component/{bookings-header-rac-nmwsWRjS.js → bookings-header-rac-BeaxlPQl.js} +1 -1
- package/dist/component/{bookings-last-name-rac-BAioQLCg.js → bookings-last-name-rac-CsLZaKfO.js} +1 -1
- package/dist/component/{bookings-login-bar-rac-CO6vOBjG.js → bookings-login-bar-rac-B3TRivWU.js} +6 -6
- package/dist/component/{bookings-phone-rac-Cr16h-_R.js → bookings-phone-rac-BnFEknvv.js} +1 -1
- package/dist/component/{bookings-rich-text-rac-CHLH3jd7.js → bookings-rich-text-rac-CFPqDZay.js} +1 -1
- package/dist/component/{calendar.module-CKCBG_Pg.js → calendar.module-BMUyMVja.js} +19 -19
- package/dist/component/{checkbox-field-rac-CMwmwFMD.js → checkbox-field-rac-DqGbxAd0.js} +6 -6
- package/dist/component/{checkbox-group-field-headless-BNs_S-nT.js → checkbox-group-field-headless-CiobdaVa.js} +27 -27
- package/dist/component/{checkbox-group-field-rac-BA60EPAN.js → checkbox-group-field-rac-Dxrc2F4x.js} +6 -6
- package/dist/component/{checkbox-group-rac-BJZ4Oer9.js → checkbox-group-rac-C3tL4YSr.js} +1 -1
- package/dist/component/{checkbox-indicator-module-classes-akWZsZNn.js → checkbox-indicator-module-classes-DUTR4mcg.js} +1 -1
- package/dist/component/{checkbox-rac-KsVlI6_V.js → checkbox-rac-DhZsIMuk.js} +1 -1
- package/dist/component/{contacts-address-rac-CRYkz87z.js → contacts-address-rac--GiWpa6C.js} +1 -1
- package/dist/component/{contacts-birthdate-rac-BIz-1-ZX.js → contacts-birthdate-rac-CmI2nPpr.js} +1 -1
- package/dist/component/{contacts-company-rac-B8G__j6I.js → contacts-company-rac-DcSLvPnR.js} +1 -1
- package/dist/component/{contacts-email-rac-Dztkvp5i.js → contacts-email-rac-BLOIHGP9.js} +1 -1
- package/dist/component/{contacts-first-name-rac-CVSEWpLU.js → contacts-first-name-rac-DgMCKLeE.js} +1 -1
- package/dist/component/{contacts-last-name-rac-Blz4M5bk.js → contacts-last-name-rac-tcEQP1Db.js} +1 -1
- package/dist/component/{contacts-phone-rac-CPCE5soY.js → contacts-phone-rac-CK664cfW.js} +1 -1
- package/dist/component/{contacts-position-rac-Dd_kBjqG.js → contacts-position-rac-B8skwXy6.js} +1 -1
- package/dist/component/{contacts-subscribe-rac-C6AlsP10.js → contacts-subscribe-rac-DQZYJjMo.js} +1 -1
- package/dist/component/{contacts-tax-id-rac-CQ1n29zI.js → contacts-tax-id-rac-Ci24ixLu.js} +1 -1
- package/dist/component/{date-availability-DDj1j0z5.js → date-availability-Va6_2NAZ.js} +1 -1
- package/dist/component/{date-input-field-rac-D5r1n_ah.js → date-input-field-rac-lAKyuHOI.js} +89 -89
- package/dist/component/{date-input-rac-Cyi5mU_P.js → date-input-rac-ClEesupR.js} +1 -1
- package/dist/component/{date-picker-field-rac-CeG391Zo.js → date-picker-field-rac-h45jfoso.js} +54 -54
- package/dist/component/{date-picker-rac-Ci9aHgav.js → date-picker-rac-B-pvqBn0.js} +1 -1
- package/dist/component/{date-time-input-field-rac-CrbYEbJJ.js → date-time-input-field-rac-41QpurJp.js} +80 -80
- package/dist/component/{date-time-input-rac-DDJLkqs0.js → date-time-input-rac-BQOUl7It.js} +1 -1
- package/dist/component/{dext-checkbox-group-rac-C3ftVHBA.js → dext-checkbox-group-rac-C4Q6tfBD.js} +4 -4
- package/dist/component/{dext-checkbox-rac-BGLYWn68.js → dext-checkbox-rac-Yo2PHNDA.js} +1 -1
- package/dist/component/{dext-date-picker-rac-Cy9RlDlt.js → dext-date-picker-rac-jM9x8W6a.js} +1 -1
- package/dist/component/{dext-date-time-input-rac-88ZoTd5e.js → dext-date-time-input-rac-BgW_4WIg.js} +1 -1
- package/dist/component/{dext-dropdown-rac-CPxDUuk9.js → dext-dropdown-rac-DCL7D6-G.js} +1 -1
- package/dist/component/{dext-email-rac-BAvQwDPA.js → dext-email-rac-Dz7yBqkd.js} +1 -1
- package/dist/component/{dext-number-input-rac-D7HYQVKq.js → dext-number-input-rac-BdMjBpH9.js} +1 -1
- package/dist/component/{dext-phone-rac--FhcplSI.js → dext-phone-rac-D2i9fXL3.js} +1 -1
- package/dist/component/{dext-radio-group-rac-DBz8iCKW.js → dext-radio-group-rac-Br2f1Ahx.js} +2 -2
- package/dist/component/{dext-rating-input-rac-Cv7nThfe.js → dext-rating-input-rac-OkfJ7Eb0.js} +1 -1
- package/dist/component/{dext-tags-rac-CRUUc5dr.js → dext-tags-rac-43vDoDdM.js} +2 -2
- package/dist/component/{dext-text-area-rac-DQBQXV1L.js → dext-text-area-rac-C072pWO9.js} +1 -1
- package/dist/component/{dext-text-input-rac-4CpM581y.js → dext-text-input-rac-BiHJpJCt.js} +1 -1
- package/dist/component/{dext-url-input-rac-0C1jTEr9.js → dext-url-input-rac-YOGYMj5C.js} +1 -1
- package/dist/component/{donation-rac-Cgt0ZE50.js → donation-rac-fCt3mddA.js} +98 -98
- package/dist/component/{dropdown-field-rac-DlGKR7pZ.js → dropdown-field-rac-EQrQJ2-C.js} +4 -4
- package/dist/component/{dropdown-rac-CYFW_3x_.js → dropdown-rac-MPCcjrFd.js} +1 -1
- package/dist/component/{ecom-address-rac-CQfQHpXC.js → ecom-address-rac-DSgpHqzV.js} +1 -1
- package/dist/component/{ecom-subscription-checkbox-rac-D2v2Upvz.js → ecom-subscription-checkbox-rac-Dw6Ke0Fb.js} +2 -2
- package/dist/component/{email-input-field-rac-CVw25yRo.js → email-input-field-rac-DVmvH4u4.js} +48 -48
- package/dist/component/{events-repeater-rac-BCVUcmFj.js → events-repeater-rac-Uwpo7XF4.js} +24 -24
- package/dist/component/{events-rsvp-rac-DwbqEr8z.js → events-rsvp-rac-D2DJAkep.js} +4 -4
- package/dist/component/{field-error-headless-XnVcMmsL.js → field-error-headless-DAc8FpKI.js} +8 -8
- package/dist/component/{field-label-headless-BRTLT2Yt.js → field-label-headless-DxxwJtjh.js} +17 -17
- package/dist/component/field-rac.module-ts2t4WUO.js +25 -0
- package/dist/component/{file-upload-rac-Dkwg9Jk4.js → file-upload-rac-CBKIeaxX.js} +163 -163
- package/dist/component/{fixed-payment-rac-ST98xAa2.js → fixed-payment-rac-BsCDoc1p.js} +18 -18
- package/dist/component/{form-BUqSKOvc.js → form-GAuLAdjq.js} +326 -336
- package/dist/component/form.css +1 -1
- package/dist/component/form.js +1 -1
- package/dist/component/{header-field-rac-CzNTGYWq.js → header-field-rac-DtZCjzLJ.js} +6 -6
- package/dist/component/{header-rac-DUt6AIAE.js → header-rac-B1hlVDf8.js} +1 -1
- package/dist/component/image-choice-rac-DQaCg_Xk.js +155 -0
- package/dist/component/{index-cZZeAuuu.js → index-BaVjVNYj.js} +2 -2
- package/dist/component/{index-CDO22hht.js → index-C1EXd9jU.js} +69 -69
- package/dist/component/{isObjectLike-cs4bARpC.js → isObjectLike-m2dqIREj.js} +3 -3
- package/dist/component/{multiline-address-field-rac-vcEWhUCV.js → multiline-address-field-rac-CMMdLb-J.js} +41 -41
- package/dist/component/{multiline-address-rac-WQaI2eUX.js → multiline-address-rac-VUQNp-Tz.js} +1 -1
- package/dist/component/{number-input-field-rac-CBUMqATk.js → number-input-field-rac-B5bsGDKm.js} +24 -24
- package/dist/component/{number-input-rac-B4j5hyzS.js → number-input-rac-BzzW0p9R.js} +1 -1
- package/dist/component/{password-rac-DwLyf45N.js → password-rac-2Rr7lvNO.js} +17 -17
- package/dist/component/{payment-input-rac-D0Od---y.js → payment-input-rac-CEUzIrJA.js} +32 -32
- package/dist/component/{phone-input-field-rac-COlu9IeC.js → phone-input-field-rac-BDBaqAzE.js} +48 -48
- package/dist/component/{phone-rac-Dh4RacOF.js → phone-rac-BTK8-tkq.js} +1 -1
- package/dist/component/{product-list-rac-D7zHDE2D.js → product-list-rac-1QbeT5RH.js} +26 -26
- package/dist/component/{quiz-radio-group-rac-1AaKphJt.js → quiz-radio-group-rac-tn2CzdCu.js} +1 -1
- package/dist/component/{radio-button-module-classes-VqaP6vpA.js → radio-button-module-classes-aK1SQcLG.js} +34 -34
- package/dist/component/{radio-group-field-rac-Cp3LRN3C.js → radio-group-field-rac-DlMXhW_S.js} +5 -5
- package/dist/component/{radio-group-rac-KhmhzYGf.js → radio-group-rac-BmU_5tBK.js} +1 -1
- package/dist/component/{rating-input-field-rac-10n6ciCr.js → rating-input-field-rac-DUPJUAX2.js} +30 -30
- package/dist/component/{rating-input-rac-XZjjY2Gp.js → rating-input-rac-BLhkZdj8.js} +1 -1
- package/dist/component/{rich-content-rac.module-kMwDoLBa.js → rich-content-rac.module-C9bGXB69.js} +5 -5
- package/dist/component/{rich-text-field-rac-H5bd8fAt.js → rich-text-field-rac-CVqmsZzZ.js} +4 -4
- package/dist/component/{rich-text-rac-88GSQR62.js → rich-text-rac-D8K6445F.js} +1 -1
- package/dist/component/{service-dropdown-rac-B1_Xr_X3.js → service-dropdown-rac-PR_iLdmo.js} +26 -26
- package/dist/component/{services-multi-choice-rac-DWp_Llbi.js → services-multi-choice-rac-BvMadJCf.js} +15 -15
- package/dist/component/{signature-rac-zN_6KRDp.js → signature-rac-Cpjv6kcl.js} +235 -235
- package/dist/component/{submit-button-rac-Dv6UarYX.js → submit-button-rac-DpDk7cMb.js} +7 -7
- package/dist/component/{tags-field-rac-sVN6MHfJ.js → tags-field-rac-DnyWNHXT.js} +75 -75
- package/dist/component/{tags-rac-DhTHs_XN.js → tags-rac-D5Do7BNm.js} +1 -1
- package/dist/component/{text-area-field-rac-DrWkww7W.js → text-area-field-rac-DLBgla0L.js} +19 -19
- package/dist/component/{text-area-rac-CXXh-ZdY.js → text-area-rac-Bfsl2gSn.js} +1 -1
- package/dist/component/{text-input-field-rac-C2YiMr-g.js → text-input-field-rac-hLsUcQNw.js} +4 -4
- package/dist/component/{text-input-headless-BJMNbsMY.js → text-input-headless-Otd7Uy7V.js} +11 -11
- package/dist/component/{text-input-rac-CpsPh7FH.js → text-input-rac-jpnc-v91.js} +1 -1
- package/dist/component/{time-input-rac-DG_1KxS4.js → time-input-rac-DnjrmZZw.js} +20 -20
- package/dist/component/url-input-field-rac-C90NYHb8.js +77 -0
- package/dist/component/{url-input-rac-BTStO0NP.js → url-input-rac-C3wfEnqs.js} +1 -1
- package/dist/component/{use-dropdown-option-class-name-DbMMg1ws.js → use-dropdown-option-class-name-CYkLlKBs.js} +12 -12
- package/dist/component/{use-dropdown-trigger-class-name-Yes4kC_0.js → use-dropdown-trigger-class-name-CTt4Z67m.js} +19 -19
- package/dist/component/{use-element-state-class-name-DlncY4hk.js → use-element-state-class-name-ByDw6j7c.js} +1 -1
- package/dist/component/{use-hoverable-input-class-name-C__zqP5j.js → use-hoverable-input-class-name-Duhgtn2I.js} +3 -3
- package/dist/component/{use-is-forced-open-dropdown-DnK_MQRO.js → use-is-forced-open-dropdown-B5gNY4Zm.js} +4 -4
- package/dist/component/{use-service-options-base-DKJe52Vk.js → use-service-options-base-DE-QaNDw.js} +3 -3
- package/dist/component/use-text-input-class-name-CmxSw6bY.js +6 -0
- package/package.json +2 -2
- package/dist/component/field-rac.module-DP0lkkEv.js +0 -25
- package/dist/component/image-choice-rac-DuBgrSt2.js +0 -155
- package/dist/component/url-input-field-rac-twxRREnl.js +0 -77
- package/dist/component/use-text-input-class-name-D9tJTR-b.js +0 -6
package/dist/component/{rating-input-field-rac-10n6ciCr.js → rating-input-field-rac-DUPJUAX2.js}
RENAMED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { RicosViewer as
|
|
1
|
+
import { RicosViewer as D } from "@wix/ricos/viewer";
|
|
2
2
|
import u from "classnames";
|
|
3
3
|
import e, { useCallback as N, useState as O, useRef as A } from "react";
|
|
4
|
-
import {
|
|
5
|
-
import { RadioGroup as q, RadioField as
|
|
4
|
+
import { by as I, bv as v, bI as T, U as H, aa as M, a8 as w, K as B, G as P, a9 as G } from "./form-GAuLAdjq.js";
|
|
5
|
+
import { RadioGroup as q, RadioField as k, RadioButton as x } from "react-aria-components";
|
|
6
6
|
import { f as E, a as U } from "./find-child-C60k4CxG.js";
|
|
7
|
-
import { D as z, E as K } from "./field-error-headless-
|
|
8
|
-
import { L as Q } from "./field-label-headless-
|
|
9
|
-
import { E as
|
|
10
|
-
import { s as g } from "./field-rac.module-
|
|
11
|
-
import { u as
|
|
7
|
+
import { D as z, E as K } from "./field-error-headless-DAc8FpKI.js";
|
|
8
|
+
import { L as Q } from "./field-label-headless-DxxwJtjh.js";
|
|
9
|
+
import { E as Z } from "./error-icon-hZxQ6DEy.js";
|
|
10
|
+
import { s as g } from "./field-rac.module-ts2t4WUO.js";
|
|
11
|
+
import { u as j } from "./use-element-state-class-name-ByDw6j7c.js";
|
|
12
12
|
const t = ({ children: a }) => {
|
|
13
|
-
const { id: n, value: r, onChange: i, disabled: l, readOnly: m, required: d, hasError: c, onBlur: o, onFocus: C, FieldLayout: R } = I(), { labelId: _ } = v(), L = N((
|
|
13
|
+
const { id: n, value: r, onChange: i, disabled: l, readOnly: m, required: d, hasError: c, onBlur: o, onFocus: C, FieldLayout: R } = I(), { labelId: _ } = v(), L = N((y) => i(Number(y)), [
|
|
14
14
|
i
|
|
15
|
-
]),
|
|
15
|
+
]), f = E(a, t.Label), s = E(a, t.Ratings), S = E(a, t.Description), h = E(a, t.Error);
|
|
16
16
|
return /* @__PURE__ */ e.createElement(R, {
|
|
17
17
|
fieldId: n,
|
|
18
|
-
renderLabel: () =>
|
|
18
|
+
renderLabel: () => f,
|
|
19
19
|
renderInput: () => /* @__PURE__ */ e.createElement(q, {
|
|
20
20
|
"aria-labelledby": _,
|
|
21
21
|
value: r ? String(r) : void 0,
|
|
@@ -28,16 +28,16 @@ const t = ({ children: a }) => {
|
|
|
28
28
|
onFocus: C,
|
|
29
29
|
orientation: "horizontal"
|
|
30
30
|
}, s),
|
|
31
|
-
renderDescription: () => /* @__PURE__ */ e.createElement(e.Fragment, null, h,
|
|
31
|
+
renderDescription: () => /* @__PURE__ */ e.createElement(e.Fragment, null, h, S)
|
|
32
32
|
});
|
|
33
|
-
},
|
|
34
|
-
const { value: i, readOnly: l, hasError: m } = I(), { inputId: d, ariaDescribedBy: c } = v(), [o, C] = O(), R = A(null), _ = E(a,
|
|
33
|
+
}, b = ({ children: a, className: n, getReactionLabel: r }) => {
|
|
34
|
+
const { value: i, readOnly: l, hasError: m } = I(), { inputId: d, ariaDescribedBy: c } = v(), [o, C] = O(), R = A(null), _ = E(a, b.Rating), L = [
|
|
35
35
|
"1",
|
|
36
36
|
"2",
|
|
37
37
|
"3",
|
|
38
38
|
"4",
|
|
39
39
|
"5"
|
|
40
|
-
],
|
|
40
|
+
], f = (s) => o && !l ? o >= s : !!i && i >= Number(s);
|
|
41
41
|
return /* @__PURE__ */ e.createElement("div", {
|
|
42
42
|
ref: R,
|
|
43
43
|
id: d,
|
|
@@ -48,11 +48,11 @@ const t = ({ children: a }) => {
|
|
|
48
48
|
}, L.map((s) => U(_, {
|
|
49
49
|
key: s,
|
|
50
50
|
value: s,
|
|
51
|
-
isSelected:
|
|
52
|
-
onHoverChange: (
|
|
51
|
+
isSelected: f(s),
|
|
52
|
+
onHoverChange: (S) => C(S ? s : void 0),
|
|
53
53
|
label: r == null ? void 0 : r(Number(s))
|
|
54
54
|
})));
|
|
55
|
-
},
|
|
55
|
+
}, J = {
|
|
56
56
|
border: 0,
|
|
57
57
|
clipPath: "inset(50%)",
|
|
58
58
|
height: 1,
|
|
@@ -64,9 +64,9 @@ const t = ({ children: a }) => {
|
|
|
64
64
|
whiteSpace: "nowrap"
|
|
65
65
|
}, F = ({ className: a, children: n, ...r }) => {
|
|
66
66
|
const { value: i, isSelected: l, onHoverChange: m, label: d } = r;
|
|
67
|
-
return /* @__PURE__ */ e.createElement(
|
|
67
|
+
return /* @__PURE__ */ e.createElement(k, {
|
|
68
68
|
value: i
|
|
69
|
-
}, /* @__PURE__ */ e.createElement(
|
|
69
|
+
}, /* @__PURE__ */ e.createElement(x, {
|
|
70
70
|
className: ({ isHovered: c, isFocused: o }) => typeof a == "function" ? a({
|
|
71
71
|
isSelected: l,
|
|
72
72
|
isHovered: c,
|
|
@@ -79,16 +79,16 @@ const t = ({ children: a }) => {
|
|
|
79
79
|
isHovered: c,
|
|
80
80
|
isFocused: o
|
|
81
81
|
}) : n, d ? /* @__PURE__ */ e.createElement("span", {
|
|
82
|
-
style:
|
|
82
|
+
style: J
|
|
83
83
|
}, d) : null)));
|
|
84
84
|
};
|
|
85
|
-
|
|
85
|
+
b.Rating = F;
|
|
86
86
|
t.Label = Q;
|
|
87
|
-
t.Ratings =
|
|
87
|
+
t.Ratings = b;
|
|
88
88
|
t.Rating = F;
|
|
89
89
|
t.Description = z;
|
|
90
90
|
t.Error = K;
|
|
91
|
-
const
|
|
91
|
+
const W = (a) => /* @__PURE__ */ e.createElement("svg", {
|
|
92
92
|
viewBox: "0 0 32 32",
|
|
93
93
|
width: 32,
|
|
94
94
|
height: 32,
|
|
@@ -103,7 +103,7 @@ const J = (a) => /* @__PURE__ */ e.createElement("svg", {
|
|
|
103
103
|
rating: Y,
|
|
104
104
|
ratingSelected: $,
|
|
105
105
|
ratingHover: V
|
|
106
|
-
}, ee = ({ content: a, locale: n }) => /* @__PURE__ */ e.createElement(
|
|
106
|
+
}, ee = ({ content: a, locale: n }) => /* @__PURE__ */ e.createElement(D, {
|
|
107
107
|
content: a,
|
|
108
108
|
locale: n
|
|
109
109
|
}), te = {
|
|
@@ -111,14 +111,14 @@ const J = (a) => /* @__PURE__ */ e.createElement("svg", {
|
|
|
111
111
|
selected: p.ratingSelected,
|
|
112
112
|
hover: p.ratingHover
|
|
113
113
|
}, Ee = () => {
|
|
114
|
-
const { t: a } =
|
|
114
|
+
const { t: a } = T(), n = j({
|
|
115
115
|
globalClasses: G,
|
|
116
116
|
moduleClasses: te
|
|
117
117
|
});
|
|
118
118
|
return /* @__PURE__ */ e.createElement(t, null, /* @__PURE__ */ e.createElement(t.Label, {
|
|
119
|
-
className: u(
|
|
119
|
+
className: u(H, g.label)
|
|
120
120
|
}, /* @__PURE__ */ e.createElement(t.Label.Required, {
|
|
121
|
-
className: u(
|
|
121
|
+
className: u(M, g.requiredMark)
|
|
122
122
|
})), /* @__PURE__ */ e.createElement(t.Ratings, {
|
|
123
123
|
className: u(w, p.ratings),
|
|
124
124
|
getReactionLabel: (r) => a("rating-input.a11y.reaction-label", {
|
|
@@ -126,9 +126,9 @@ const J = (a) => /* @__PURE__ */ e.createElement("svg", {
|
|
|
126
126
|
})
|
|
127
127
|
}, /* @__PURE__ */ e.createElement(t.Rating, {
|
|
128
128
|
className: n
|
|
129
|
-
}, /* @__PURE__ */ e.createElement(
|
|
129
|
+
}, /* @__PURE__ */ e.createElement(W, null))), /* @__PURE__ */ e.createElement(t.Error, {
|
|
130
130
|
className: u(B, g.error)
|
|
131
|
-
}, /* @__PURE__ */ e.createElement(
|
|
131
|
+
}, /* @__PURE__ */ e.createElement(Z, null), /* @__PURE__ */ e.createElement(t.Error.Text, null)), /* @__PURE__ */ e.createElement(t.Description, {
|
|
132
132
|
className: u(P, g.description)
|
|
133
133
|
}, ee));
|
|
134
134
|
};
|
package/dist/component/{rich-content-rac.module-kMwDoLBa.js → rich-content-rac.module-C9bGXB69.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import c, { useState as u } from "react";
|
|
2
|
-
import {
|
|
2
|
+
import { by as a, bq as i, bI as T } from "./form-GAuLAdjq.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";
|
|
@@ -24,7 +24,7 @@ const O = ({ children: e }) => {
|
|
|
24
24
|
"data-hook": s
|
|
25
25
|
}, o);
|
|
26
26
|
};
|
|
27
|
-
function
|
|
27
|
+
function y(e, t) {
|
|
28
28
|
const [n, o] = u(!0);
|
|
29
29
|
function s() {
|
|
30
30
|
o((l) => !l);
|
|
@@ -38,12 +38,12 @@ function B(e, t) {
|
|
|
38
38
|
toggleTruncate: s
|
|
39
39
|
};
|
|
40
40
|
}
|
|
41
|
-
const C = "_richContent_1galb_1",
|
|
41
|
+
const C = "_richContent_1galb_1", B = {
|
|
42
42
|
richContent: C
|
|
43
43
|
};
|
|
44
44
|
export {
|
|
45
45
|
O as R,
|
|
46
46
|
p as T,
|
|
47
|
-
|
|
48
|
-
|
|
47
|
+
B as s,
|
|
48
|
+
y as u
|
|
49
49
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import l from "classnames";
|
|
2
2
|
import e from "react";
|
|
3
|
-
import {
|
|
4
|
-
import { u as C, R as d, s as g, T as p } from "./rich-content-rac.module-
|
|
3
|
+
import { by as m, aL as i, at as u, b9 as R, bc as T } from "./form-GAuLAdjq.js";
|
|
4
|
+
import { u as C, R as d, s as g, T as p } from "./rich-content-rac.module-C9bGXB69.js";
|
|
5
5
|
const h = {
|
|
6
6
|
colorPalette: T(),
|
|
7
7
|
customStyles: R()
|
|
8
|
-
},
|
|
8
|
+
}, y = ({ truncate: t = !0 } = {}) => {
|
|
9
9
|
const { content: a, maxShownParagraphs: s } = m(), { displayedContent: n, isTruncated: o, isTruncateButtonShown: r, toggleTruncate: c } = C(a, t ? s : void 0);
|
|
10
10
|
return /* @__PURE__ */ e.createElement(d, null, () => /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(i, {
|
|
11
11
|
className: l(u, g.richContent),
|
|
@@ -17,5 +17,5 @@ const h = {
|
|
|
17
17
|
})));
|
|
18
18
|
};
|
|
19
19
|
export {
|
|
20
|
-
|
|
20
|
+
y as R
|
|
21
21
|
};
|
package/dist/component/{service-dropdown-rac-B1_Xr_X3.js → service-dropdown-rac-PR_iLdmo.js}
RENAMED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import o, { useRef as
|
|
2
|
-
import { RicosViewer as
|
|
1
|
+
import o, { useRef as T, useMemo as _, useCallback as C, useEffect as b } from "react";
|
|
2
|
+
import { RicosViewer as w } from "@wix/ricos/viewer";
|
|
3
3
|
import E from "classnames";
|
|
4
|
-
import {
|
|
5
|
-
import { u as B } from "./use-service-options-base-
|
|
6
|
-
import { D as u, u as G } from "./use-dropdown-trigger-class-name-
|
|
7
|
-
import { C as
|
|
8
|
-
import { E as
|
|
9
|
-
import { H as
|
|
10
|
-
import { s as i } from "./field-rac.module-
|
|
11
|
-
import { u as
|
|
12
|
-
const
|
|
13
|
-
const { actions: t } = P(), { t: D } = A(), { addOther: n, addOtherLabel: p } = e, c = p || D("add-other.default-other-option-label"), a =
|
|
4
|
+
import { bu as P, bI as A, F as y, by as M, bq as H, aA as U, U as V, aa as q, H as x, K as W, G as k } from "./form-GAuLAdjq.js";
|
|
5
|
+
import { u as B } from "./use-service-options-base-DE-QaNDw.js";
|
|
6
|
+
import { D as u, u as G } from "./use-dropdown-trigger-class-name-CTt4Z67m.js";
|
|
7
|
+
import { C as K } from "./chevron-down-icon-CcpVm6B-.js";
|
|
8
|
+
import { E as Q } from "./error-icon-hZxQ6DEy.js";
|
|
9
|
+
import { H as Y } from "./custom-focus-class-_483Pkwp.js";
|
|
10
|
+
import { s as i } from "./field-rac.module-ts2t4WUO.js";
|
|
11
|
+
import { u as j } from "./use-dropdown-option-class-name-CYkLlKBs.js";
|
|
12
|
+
const z = "00000000-0000-0000-0000-000000000000", J = (e) => {
|
|
13
|
+
const { actions: t } = P(), { t: D } = A(), { addOther: n, addOtherLabel: p } = e, c = p || D("add-other.default-other-option-label"), a = T(!0), d = _(() => {
|
|
14
14
|
var s;
|
|
15
15
|
return ((s = e.options) == null ? void 0 : s.map((m) => m.id ?? "")) ?? [];
|
|
16
16
|
}, [
|
|
@@ -20,13 +20,13 @@ const j = "00000000-0000-0000-0000-000000000000", z = (e) => {
|
|
|
20
20
|
{
|
|
21
21
|
value: c,
|
|
22
22
|
label: c,
|
|
23
|
-
id:
|
|
23
|
+
id: z
|
|
24
24
|
}
|
|
25
25
|
] : s, [
|
|
26
26
|
n,
|
|
27
27
|
c
|
|
28
28
|
]), { isLoading: f, options: l, isEmpty: h, shouldRender: I, setIsLoading: S, setOptions: R, setIsEmpty: g, processOptions: F } = B({
|
|
29
|
-
fieldType:
|
|
29
|
+
fieldType: y.SERVICES_DROPDOWN,
|
|
30
30
|
isEditor: e.isEditor,
|
|
31
31
|
postProcessOptions: O
|
|
32
32
|
}), L = C(async () => {
|
|
@@ -56,7 +56,7 @@ const j = "00000000-0000-0000-0000-000000000000", z = (e) => {
|
|
|
56
56
|
R,
|
|
57
57
|
g
|
|
58
58
|
]);
|
|
59
|
-
|
|
59
|
+
b(() => {
|
|
60
60
|
if (!e.isEditor && l.length > 0) {
|
|
61
61
|
const s = n ? l.length - 1 : l.length;
|
|
62
62
|
g(s === 0);
|
|
@@ -90,7 +90,7 @@ const j = "00000000-0000-0000-0000-000000000000", z = (e) => {
|
|
|
90
90
|
shouldRender: I
|
|
91
91
|
};
|
|
92
92
|
}, r = ({ children: e }) => {
|
|
93
|
-
const t =
|
|
93
|
+
const t = M(), { addOther: D } = t, n = H(), p = t.isEditor || n.isEditor || n.isComposer, { isLoading: c, options: a, isEmpty: d, onFocus: O, onChange: f, shouldRender: l } = J({
|
|
94
94
|
...t,
|
|
95
95
|
isEditor: p
|
|
96
96
|
}), h = _(() => ({
|
|
@@ -106,7 +106,7 @@ const j = "00000000-0000-0000-0000-000000000000", z = (e) => {
|
|
|
106
106
|
O,
|
|
107
107
|
f
|
|
108
108
|
]);
|
|
109
|
-
return !p && d && !D || !l ? null : /* @__PURE__ */ o.createElement(
|
|
109
|
+
return !p && d && !D || !l ? null : /* @__PURE__ */ o.createElement(U.Provider, {
|
|
110
110
|
value: {
|
|
111
111
|
v2: h
|
|
112
112
|
}
|
|
@@ -117,27 +117,27 @@ r.Trigger = u.Trigger;
|
|
|
117
117
|
r.Options = u.Options;
|
|
118
118
|
r.Description = u.Description;
|
|
119
119
|
r.Error = u.Error;
|
|
120
|
-
const X = ({ content: e, locale: t }) => /* @__PURE__ */ o.createElement(
|
|
120
|
+
const X = ({ content: e, locale: t }) => /* @__PURE__ */ o.createElement(w, {
|
|
121
121
|
content: e,
|
|
122
122
|
locale: t
|
|
123
123
|
}), Z = () => {
|
|
124
|
-
const e = G(i.dropdownTrigger), t = Y
|
|
124
|
+
const e = G(i.dropdownTrigger), t = j(Y);
|
|
125
125
|
return /* @__PURE__ */ o.createElement(r, null, /* @__PURE__ */ o.createElement(r.Label, {
|
|
126
|
-
className: E(
|
|
126
|
+
className: E(V, i.label)
|
|
127
127
|
}, /* @__PURE__ */ o.createElement(r.Label.Required, {
|
|
128
|
-
className: E(
|
|
128
|
+
className: E(q, i.requiredMark)
|
|
129
129
|
})), /* @__PURE__ */ o.createElement(r.Trigger, {
|
|
130
130
|
className: e
|
|
131
|
-
}, /* @__PURE__ */ o.createElement(
|
|
131
|
+
}, /* @__PURE__ */ o.createElement(K, {
|
|
132
132
|
className: i.dropdownIcon
|
|
133
133
|
})), /* @__PURE__ */ o.createElement(r.Options, {
|
|
134
|
-
className: E(
|
|
134
|
+
className: E(x, i.selectPopover, i.dropdownPopover)
|
|
135
135
|
}, /* @__PURE__ */ o.createElement(r.Options.Option, {
|
|
136
136
|
className: t
|
|
137
137
|
})), /* @__PURE__ */ o.createElement(r.Error, {
|
|
138
|
-
className: E(
|
|
139
|
-
}, /* @__PURE__ */ o.createElement(
|
|
140
|
-
className: E(
|
|
138
|
+
className: E(W, i.error)
|
|
139
|
+
}, /* @__PURE__ */ o.createElement(Q, null), /* @__PURE__ */ o.createElement(r.Error.Text, null)), /* @__PURE__ */ o.createElement(r.Description, {
|
|
140
|
+
className: E(k, i.description)
|
|
141
141
|
}, X));
|
|
142
142
|
}, me = () => /* @__PURE__ */ o.createElement(Z, null);
|
|
143
143
|
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,
|
|
5
|
-
import { u as v } from "./use-service-options-base-
|
|
6
|
-
import { C as i } from "./checkbox-group-field-headless-
|
|
4
|
+
import { F as R, by as d, aA as D, U as F, aa as N, p as f, r as h, K as b, G as A, q as M } from "./form-GAuLAdjq.js";
|
|
5
|
+
import { u as v } from "./use-service-options-base-DE-QaNDw.js";
|
|
6
|
+
import { C as i } from "./checkbox-group-field-headless-CiobdaVa.js";
|
|
7
7
|
import { E as x } from "./error-icon-hZxQ6DEy.js";
|
|
8
|
-
import { C as P } from "./checkbox-indicator-module-classes-
|
|
9
|
-
import { s as n } from "./field-rac.module-
|
|
8
|
+
import { C as P } from "./checkbox-indicator-module-classes-DUTR4mcg.js";
|
|
9
|
+
import { s as n } from "./field-rac.module-ts2t4WUO.js";
|
|
10
10
|
import { o as _ } from "./options-rac.module-_THNq6Qq.js";
|
|
11
|
-
import { u as T } from "./use-element-state-class-name-
|
|
12
|
-
import { u as
|
|
13
|
-
const
|
|
11
|
+
import { u as T } from "./use-element-state-class-name-ByDw6j7c.js";
|
|
12
|
+
import { u as y } from "./use-text-input-class-name-CmxSw6bY.js";
|
|
13
|
+
const k = (s) => {
|
|
14
14
|
var C;
|
|
15
15
|
const { isLoading: o, options: r, isEmpty: l, shouldRender: E, setOptions: c, setIsEmpty: m, setHasInitialDataLoaded: p } = v({
|
|
16
16
|
fieldType: R.SERVICES_MULTI_CHOICE,
|
|
@@ -34,7 +34,7 @@ const y = (s) => {
|
|
|
34
34
|
shouldRender: E
|
|
35
35
|
};
|
|
36
36
|
}, t = ({ children: s, className: o }) => {
|
|
37
|
-
const r = d(), { options: l, isEmpty: E, shouldRender: c } =
|
|
37
|
+
const r = d(), { options: l, isEmpty: E, shouldRender: c } = k(r), m = L(() => ({
|
|
38
38
|
...r,
|
|
39
39
|
options: l
|
|
40
40
|
}), [
|
|
@@ -56,11 +56,11 @@ t.Error = i.Error;
|
|
|
56
56
|
const B = ({ content: s, locale: o }) => /* @__PURE__ */ e.createElement(S, {
|
|
57
57
|
content: s,
|
|
58
58
|
locale: o
|
|
59
|
-
}),
|
|
59
|
+
}), U = () => {
|
|
60
60
|
const s = T({
|
|
61
|
-
globalClasses:
|
|
61
|
+
globalClasses: M,
|
|
62
62
|
moduleClasses: P
|
|
63
|
-
}), o =
|
|
63
|
+
}), o = y();
|
|
64
64
|
return /* @__PURE__ */ e.createElement(t, null, /* @__PURE__ */ e.createElement(t.Label, {
|
|
65
65
|
className: a(F, n.label)
|
|
66
66
|
}, /* @__PURE__ */ e.createElement(t.Label.Required, {
|
|
@@ -78,9 +78,9 @@ const B = ({ content: s, locale: o }) => /* @__PURE__ */ e.createElement(S, {
|
|
|
78
78
|
}))), /* @__PURE__ */ e.createElement(t.Error, {
|
|
79
79
|
className: a(b, n.error)
|
|
80
80
|
}, /* @__PURE__ */ e.createElement(x, null), /* @__PURE__ */ e.createElement(t.Error.Text, null)), /* @__PURE__ */ e.createElement(t.Description, {
|
|
81
|
-
className: a(
|
|
81
|
+
className: a(A, n.description)
|
|
82
82
|
}, B));
|
|
83
|
-
},
|
|
83
|
+
}, J = () => /* @__PURE__ */ e.createElement(U, null);
|
|
84
84
|
export {
|
|
85
|
-
|
|
85
|
+
J as ServicesMultiChoiceRAC
|
|
86
86
|
};
|