@wix/form-elements 1.146.0 → 1.147.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/component/{appointment-rac-scUix9QX.js → appointment-rac-BG5-bIZU.js} +98 -98
- package/dist/component/{bookings-address-rac-CKemkJOO.js → bookings-address-rac-8e8PqKsp.js} +1 -1
- package/dist/component/{bookings-email-rac-CDqdhPAB.js → bookings-email-rac-CtlnU8ws.js} +1 -1
- package/dist/component/{bookings-first-name-rac-DEy_7Hjb.js → bookings-first-name-rac-CrivNlXM.js} +1 -1
- package/dist/component/{bookings-header-rac-Bl4xy9lB.js → bookings-header-rac-DWDAjfqq.js} +1 -1
- package/dist/component/{bookings-last-name-rac-CsL9xQ1W.js → bookings-last-name-rac-qAthWem2.js} +1 -1
- package/dist/component/{bookings-login-bar-rac-DkHYQ4No.js → bookings-login-bar-rac-BNyUDqlM.js} +6 -6
- package/dist/component/{bookings-phone-rac-BoBiFwbV.js → bookings-phone-rac-Tc39XLr7.js} +1 -1
- package/dist/component/{bookings-rich-text-rac-DZZnPKWA.js → bookings-rich-text-rac-CPNaPtFK.js} +1 -1
- package/dist/component/{checkbox-field-rac-UgLmJxB-.js → checkbox-field-rac-DEa78Tpf.js} +4 -4
- package/dist/component/{checkbox-group-field-headless-C809nB0Q.js → checkbox-group-field-headless-BxBaMg29.js} +68 -68
- package/dist/component/{checkbox-group-field-rac-u4i4wG21.js → checkbox-group-field-rac-CRRP03Qk.js} +7 -7
- package/dist/component/{checkbox-group-rac-DBAQhSo3.js → checkbox-group-rac-TOofMGl3.js} +1 -1
- package/dist/component/{checkbox-rac-FDQVsI5-.js → checkbox-rac-CHMHr8Ry.js} +1 -1
- package/dist/component/{contacts-address-rac-DnArylPa.js → contacts-address-rac-Bc5yDvTL.js} +1 -1
- package/dist/component/{contacts-birthdate-rac-C19jhGEO.js → contacts-birthdate-rac-Ubtg5ncv.js} +1 -1
- package/dist/component/{contacts-company-rac-Dxs0hs_i.js → contacts-company-rac-BksH9IoV.js} +1 -1
- package/dist/component/{contacts-email-rac-D-H43L8r.js → contacts-email-rac-DDPEtMAm.js} +1 -1
- package/dist/component/{contacts-first-name-rac-DwV5NESk.js → contacts-first-name-rac-DUlCvEdx.js} +1 -1
- package/dist/component/{contacts-last-name-rac-C5v2xurf.js → contacts-last-name-rac-BikqNgUr.js} +1 -1
- package/dist/component/{contacts-phone-rac-D9a5x-xl.js → contacts-phone-rac-B4OEgM_8.js} +1 -1
- package/dist/component/{contacts-position-rac-DfsgOv-k.js → contacts-position-rac-BfybzySV.js} +1 -1
- package/dist/component/{contacts-subscribe-rac-B-Hho0Kb.js → contacts-subscribe-rac-CMHb33v1.js} +1 -1
- package/dist/component/{contacts-tax-id-rac-q6TQkB4b.js → contacts-tax-id-rac-C-qEqwO5.js} +1 -1
- package/dist/component/{date-availability-CMDvf5VU.js → date-availability-DZ3J3LLm.js} +1 -1
- package/dist/component/{date-input-field-rac-C1WLUct3.js → date-input-field-rac-DeL5vuE7.js} +39 -39
- package/dist/component/{date-input-rac-cNQ-nr4D.js → date-input-rac-Di6TQvFf.js} +1 -1
- package/dist/component/{date-picker-field-rac-mx11z-MO.js → date-picker-field-rac-BcdpTkjV.js} +107 -103
- package/dist/component/{date-picker-rac-DeTz17zC.js → date-picker-rac-Brne65gr.js} +1 -1
- package/dist/component/{date-time-input-field-rac-feQ2E1eU.js → date-time-input-field-rac-BtQfAxRp.js} +49 -49
- package/dist/component/{date-time-input-rac-G0s0xP4v.js → date-time-input-rac-DM_HXiqV.js} +1 -1
- package/dist/component/{dext-checkbox-group-rac-BcTN1nJb.js → dext-checkbox-group-rac-WTVwhGG0.js} +2 -2
- package/dist/component/{dext-checkbox-rac-DX0TOrCO.js → dext-checkbox-rac-BR5YwmLQ.js} +1 -1
- package/dist/component/{dext-date-picker-rac-CpDp11oa.js → dext-date-picker-rac-DvDuRGYi.js} +1 -1
- package/dist/component/{dext-date-time-input-rac-BRvO8izU.js → dext-date-time-input-rac-C6RgbaVv.js} +1 -1
- package/dist/component/{dext-dropdown-rac-DGZ4Yi_X.js → dext-dropdown-rac-CWjSdcZx.js} +1 -1
- package/dist/component/{dext-email-rac-B9YCFHB4.js → dext-email-rac-D-C1gVTq.js} +1 -1
- package/dist/component/{dext-number-input-rac-D890dBZf.js → dext-number-input-rac-YKzZS2ZG.js} +1 -1
- package/dist/component/{dext-phone-rac-BAQftbXo.js → dext-phone-rac-CFZlEH2a.js} +1 -1
- package/dist/component/dext-radio-group-rac-DiH0wIIl.js +18 -0
- package/dist/component/{dext-rating-input-rac-BqQKVaHo.js → dext-rating-input-rac-D0s-i0qO.js} +1 -1
- package/dist/component/{dext-tags-rac-zxxKcNUe.js → dext-tags-rac-Br48OQQ5.js} +2 -2
- package/dist/component/{dext-text-area-rac-Ctp9SwPg.js → dext-text-area-rac-6jG8gJ7i.js} +1 -1
- package/dist/component/{dext-text-input-rac-c_QMlyjr.js → dext-text-input-rac-FAJTCXuf.js} +1 -1
- package/dist/component/{dext-url-input-rac-96pv15aC.js → dext-url-input-rac-BoMP8sQB.js} +1 -1
- package/dist/component/{donation-rac-GEWKSLJY.js → donation-rac-DNi4p-v5.js} +69 -69
- package/dist/component/{dropdown-field-headless-C3OxMhLE.js → dropdown-field-headless-7SCC-xOC.js} +27 -27
- package/dist/component/{dropdown-field-rac-CCXfBmSc.js → dropdown-field-rac-CMzZh6J6.js} +8 -9
- package/dist/component/{dropdown-rac-CR7hswXE.js → dropdown-rac-qeugpHXY.js} +1 -1
- package/dist/component/{ecom-address-rac-khMuxEFD.js → ecom-address-rac-D8b_L5md.js} +1 -1
- package/dist/component/{ecom-subscription-checkbox-rac-CAi_AHpb.js → ecom-subscription-checkbox-rac-BnAuR9La.js} +5 -5
- package/dist/component/{email-input-field-rac-B83mY2lg.js → email-input-field-rac-CunXRyc5.js} +62 -62
- package/dist/component/{events-repeater-rac-ClEwXgmb.js → events-repeater-rac-DMjyIOkB.js} +17 -17
- package/dist/component/{events-rsvp-rac-BJ5q2SVR.js → events-rsvp-rac-BsuDPq2K.js} +8 -8
- package/dist/component/{field-error-headless-CsYQCsiT.js → field-error-headless-E8WjFr_n.js} +6 -6
- package/dist/component/{field-label-headless-Yg_1PMSg.js → field-label-headless-BakLOu5E.js} +15 -15
- package/dist/component/{file-upload-rac-DJsuI_lR.js → file-upload-rac-Clu_c--0.js} +43 -43
- package/dist/component/{fixed-payment-rac-BMFe9wxU.js → fixed-payment-rac-CzAXxsb-.js} +12 -12
- package/dist/component/{form-Bed4Kfz8.js → form-DHAKwnLt.js} +311 -305
- package/dist/component/form.css +1 -1
- package/dist/component/form.js +2 -2
- package/dist/component/{header-field-rac-DPQTrOSZ.js → header-field-rac-CwmVpz3r.js} +4 -4
- package/dist/component/{header-rac-CzXsuLmE.js → header-rac-ahkGRjSy.js} +1 -1
- package/dist/component/{image-choice-rac-R_4pbOSr.js → image-choice-rac-BwxkkdUu.js} +17 -17
- package/dist/component/{index-qSZCe_WC.js → index-BFi_n6B7.js} +2 -2
- package/dist/component/{index-DZxHlvzt.js → index-BQf23zZi.js} +91 -91
- package/dist/component/{isObjectLike-B-a5uaU-.js → isObjectLike-DHcMRYYH.js} +15 -15
- package/dist/component/{multiline-address-field-rac-rv4IZZy_.js → multiline-address-field-rac-C6xaqNOk.js} +60 -60
- package/dist/component/{multiline-address-rac-DZ7cYtgn.js → multiline-address-rac-DF4TFuDx.js} +1 -1
- package/dist/component/{number-input-field-rac-CL9iXKIf.js → number-input-field-rac-uVJ3SBv2.js} +27 -27
- package/dist/component/{number-input-rac-BeGn6qJR.js → number-input-rac-D6ERhrSM.js} +1 -1
- package/dist/component/{password-rac-DfvhdsKG.js → password-rac-CAiC0ZKl.js} +23 -23
- package/dist/component/{payment-input-rac-BmMfi5rf.js → payment-input-rac-Bu25xvby.js} +26 -26
- package/dist/component/{phone-input-field-rac-DW0a1pXs.js → phone-input-field-rac-32qUvCsC.js} +45 -45
- package/dist/component/{phone-rac-quZjJ08H.js → phone-rac-mNrpj30q.js} +1 -1
- package/dist/component/{product-list-rac-Ci0KB7sN.js → product-list-rac-zHdM9rHw.js} +53 -53
- package/dist/component/{quiz-radio-group-rac--UUtGx2t.js → quiz-radio-group-rac-BaSlT8w3.js} +1 -1
- package/dist/component/{radio-button-module-classes-CqdBGknT.js → radio-button-module-classes-BdWjkBlX.js} +9 -9
- package/dist/component/{radio-group-field-rac-w8fHpFKJ.js → radio-group-field-rac-DI0UgTBr.js} +12 -12
- package/dist/component/{radio-group-rac-jO8aghii.js → radio-group-rac-D2ESG8J4.js} +1 -1
- package/dist/component/{rating-input-field-rac-BRc2PtqE.js → rating-input-field-rac-BYT2XqOK.js} +26 -26
- package/dist/component/{rating-input-rac-D9zs06xR.js → rating-input-rac-D-5CmVAX.js} +1 -1
- package/dist/component/{rich-content-rac.module-Cv3ZmD00.js → rich-content-rac.module-Dp9Advo9.js} +8 -8
- package/dist/component/{rich-text-field-rac-BmWuIfA8.js → rich-text-field-rac-COEUwoXQ.js} +4 -4
- package/dist/component/{rich-text-rac-BnqnrvB1.js → rich-text-rac-CQZLjBQ0.js} +1 -1
- package/dist/component/{service-dropdown-rac-Cl81KfJU.js → service-dropdown-rac-BTtJVFv8.js} +44 -45
- package/dist/component/{services-multi-choice-rac-sQ1NF9hY.js → services-multi-choice-rac-hbY3g0Kb.js} +11 -11
- package/dist/component/{signature-rac-Huairu7V.js → signature-rac-CTCNclwL.js} +67 -67
- package/dist/component/{submit-button-rac-Dpg7N0TG.js → submit-button-rac-kKGeVgsG.js} +25 -25
- package/dist/component/{tags-field-rac-BQ8TEqXH.js → tags-field-rac-CVf7oQr_.js} +35 -35
- package/dist/component/{tags-rac-CFOmyCCc.js → tags-rac-DiX1_nTT.js} +1 -1
- package/dist/component/{text-area-field-rac-DNiMa7d3.js → text-area-field-rac-IhBNXiDl.js} +22 -22
- package/dist/component/{text-area-rac-kLFe-KbZ.js → text-area-rac-DHevCtFF.js} +1 -1
- package/dist/component/{text-input-field-rac-CqENSUUX.js → text-input-field-rac-Da3_wTdh.js} +5 -5
- package/dist/component/{text-input-headless-BdPkEeK2.js → text-input-headless-DcZRRXCp.js} +9 -9
- package/dist/component/{text-input-rac-uYQEfOtE.js → text-input-rac-564LIZ1_.js} +1 -1
- package/dist/component/{time-input-rac-BYoojlJ9.js → time-input-rac-p-Nnsxp_.js} +54 -54
- package/dist/component/{url-input-field-rac-BioH7kuz.js → url-input-field-rac-DjrcpRtm.js} +25 -25
- package/dist/component/{url-input-rac-D2VSSyqW.js → url-input-rac-B3brpyop.js} +1 -1
- package/dist/component/use-dropdown-trigger-class-name-BWTT7ltv.js +117 -0
- package/dist/component/{use-element-state-class-name-oiKCauK-.js → use-element-state-class-name-CUZuhFvZ.js} +3 -3
- package/dist/component/{use-hoverable-input-class-name-BW3nCyhG.js → use-hoverable-input-class-name-ugX8-g4E.js} +6 -6
- package/dist/component/use-is-forced-open-dropdown-DUZMvWpk.js +48 -0
- package/dist/component/{use-service-options-base-DXG60hA5.js → use-service-options-base-hqO9Ev38.js} +6 -6
- package/dist/component/use-text-input-class-name-wp9dzpEy.js +6 -0
- package/dist/form.d.ts +5 -0
- package/package.json +2 -2
- package/dist/component/dext-radio-group-rac-CtEjnu_X.js +0 -18
- package/dist/component/use-dropdown-option-class-name-BEmvU-Gg.js +0 -115
- package/dist/component/use-dropdown-trigger-class-name-qj9skLWZ.js +0 -40
- package/dist/component/use-text-input-class-name-BhQFcXYH.js +0 -6
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import a, { useRef as F, useState as V, useEffect as T, useCallback as B } from "react";
|
|
2
|
-
import { RadioGroup as H, RadioField as k, RadioButton as
|
|
3
|
-
import {
|
|
2
|
+
import { RadioGroup as H, RadioField as k, RadioButton as A, TextField as G, Input as P } from "react-aria-components";
|
|
3
|
+
import { bo as g, bl as $, by as D, bq as x } from "./form-DHAKwnLt.js";
|
|
4
4
|
import { f as d, a as v } from "./find-child-C60k4CxG.js";
|
|
5
|
-
import { D as U, E as M } from "./field-error-headless-
|
|
6
|
-
import { L as j } from "./field-label-headless-
|
|
5
|
+
import { D as U, E as M } from "./field-error-headless-E8WjFr_n.js";
|
|
6
|
+
import { L as j } from "./field-label-headless-BakLOu5E.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), S = (e, t) => !!t && !z(e, t), J = (e, t) => {
|
|
9
9
|
const l = t ? t.length + 2 : 0;
|
|
10
10
|
return e.slice(l);
|
|
11
11
|
}, i = ({ children: e, className: t }) => {
|
|
12
|
-
const { id: n, value: l, onChange: O, disabled: p, readOnly: f, required: b, onBlur: E, onFocus: m, hasError: r, FieldLayout: c, options: o } = g(), { inputId: h, labelId: C, ariaDescribedBy: I } =
|
|
12
|
+
const { id: n, value: l, onChange: O, disabled: p, readOnly: f, required: b, onBlur: E, onFocus: m, hasError: r, FieldLayout: c, options: o } = g(), { inputId: h, labelId: C, ariaDescribedBy: I } = $(), s = d(e, i.Label), _ = d(e, i.Options), R = d(e, i.Description), q = d(e, i.Error), N = S(o, l) ? L : l || null;
|
|
13
13
|
return /* @__PURE__ */ a.createElement(c, {
|
|
14
14
|
fieldId: n,
|
|
15
15
|
renderLabel: () => v(s, {
|
|
@@ -33,7 +33,7 @@ const L = "Other", z = (e, t) => e == null ? void 0 : e.find((n) => (n.value ??
|
|
|
33
33
|
});
|
|
34
34
|
}, K = ({ children: e, className: t }) => {
|
|
35
35
|
const { options: n, addOther: l, addOtherLabel: O, id: p, numberOfColumns: f, hasError: b } = g(), { t: E } = D(), m = d(e, i.Option), r = F(null), c = O || E("add-other.default-other-option-label") || L;
|
|
36
|
-
return
|
|
36
|
+
return x(() => {
|
|
37
37
|
var o;
|
|
38
38
|
(o = r.current) == null || o.focus();
|
|
39
39
|
}, p), /* @__PURE__ */ a.createElement("div", {
|
|
@@ -59,7 +59,7 @@ const L = "Other", z = (e, t) => e == null ? void 0 : e.find((n) => (n.value ??
|
|
|
59
59
|
className: t
|
|
60
60
|
}, /* @__PURE__ */ a.createElement(k, {
|
|
61
61
|
value: l
|
|
62
|
-
}, /* @__PURE__ */ a.createElement(
|
|
62
|
+
}, /* @__PURE__ */ a.createElement(A, {
|
|
63
63
|
ref: f,
|
|
64
64
|
className: C
|
|
65
65
|
}, ({ isSelected: s, isHovered: _, isFocused: R }) => /* @__PURE__ */ a.createElement(a.Fragment, null, v(c, {
|
|
@@ -90,13 +90,13 @@ const L = "Other", z = (e, t) => e == null ? void 0 : e.find((n) => (n.value ??
|
|
|
90
90
|
l,
|
|
91
91
|
o
|
|
92
92
|
]);
|
|
93
|
-
return /* @__PURE__ */ a.createElement(
|
|
93
|
+
return /* @__PURE__ */ a.createElement(G, {
|
|
94
94
|
"aria-label": o,
|
|
95
95
|
value: h,
|
|
96
96
|
onChange: I,
|
|
97
97
|
isDisabled: f,
|
|
98
98
|
isReadOnly: b
|
|
99
|
-
}, /* @__PURE__ */ a.createElement(
|
|
99
|
+
}, /* @__PURE__ */ a.createElement(P, {
|
|
100
100
|
ref: r,
|
|
101
101
|
className: e,
|
|
102
102
|
placeholder: O,
|
package/dist/component/{radio-group-field-rac-w8fHpFKJ.js → radio-group-field-rac-DI0UgTBr.js}
RENAMED
|
@@ -1,21 +1,21 @@
|
|
|
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-BdWjkBlX.js";
|
|
5
5
|
import { E as c } from "./error-icon-hZxQ6DEy.js";
|
|
6
6
|
import { s as r } from "./field-rac.module-DfEb7pBp.js";
|
|
7
|
-
import {
|
|
7
|
+
import { S as i, a0 as E, X as p, Y as O, H as R, v as _, Z as I } from "./form-DHAKwnLt.js";
|
|
8
8
|
import { o as L } from "./options-rac.module-_THNq6Qq.js";
|
|
9
|
-
import { u } from "./use-element-state-class-name-
|
|
10
|
-
import { u
|
|
11
|
-
const
|
|
9
|
+
import { u as N } from "./use-element-state-class-name-CUZuhFvZ.js";
|
|
10
|
+
import { u } from "./use-text-input-class-name-wp9dzpEy.js";
|
|
11
|
+
const S = ({ content: o, locale: l }) => /* @__PURE__ */ e.createElement(m, {
|
|
12
12
|
content: o,
|
|
13
13
|
locale: l
|
|
14
|
-
}),
|
|
15
|
-
const o =
|
|
14
|
+
}), g = () => {
|
|
15
|
+
const o = N({
|
|
16
16
|
globalClasses: I,
|
|
17
17
|
moduleClasses: n
|
|
18
|
-
}), l =
|
|
18
|
+
}), l = u();
|
|
19
19
|
return /* @__PURE__ */ e.createElement(a, null, /* @__PURE__ */ e.createElement(a.Label, {
|
|
20
20
|
className: t(i, r.label)
|
|
21
21
|
}, /* @__PURE__ */ e.createElement(a.Label.Required, {
|
|
@@ -31,15 +31,15 @@ const D = ({ content: o, locale: l }) => /* @__PURE__ */ e.createElement(m, {
|
|
|
31
31
|
}), /* @__PURE__ */ e.createElement(a.Option.Control, {
|
|
32
32
|
className: o
|
|
33
33
|
}), /* @__PURE__ */ e.createElement(a.Option.Label, {
|
|
34
|
-
className: t(
|
|
34
|
+
className: t(O, s.optionLabel)
|
|
35
35
|
}), /* @__PURE__ */ e.createElement(a.Option.OtherInput, {
|
|
36
36
|
className: l
|
|
37
37
|
}))), /* @__PURE__ */ e.createElement(a.Error, {
|
|
38
|
-
className: t(
|
|
38
|
+
className: t(R, r.error)
|
|
39
39
|
}, /* @__PURE__ */ e.createElement(c, null), /* @__PURE__ */ e.createElement(a.Error.Text, null)), /* @__PURE__ */ e.createElement(a.Description, {
|
|
40
40
|
className: t(_, r.description)
|
|
41
|
-
},
|
|
41
|
+
}, S));
|
|
42
42
|
};
|
|
43
43
|
export {
|
|
44
|
-
|
|
44
|
+
g as R
|
|
45
45
|
};
|
package/dist/component/{rating-input-field-rac-BRc2PtqE.js → rating-input-field-rac-BYT2XqOK.js}
RENAMED
|
@@ -1,22 +1,22 @@
|
|
|
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
|
|
4
|
+
import { bo as v, bl as I, by as H, S as T, a0 as M, _ as w, H as B, v as P, $ as q } from "./form-DHAKwnLt.js";
|
|
5
|
+
import { RadioGroup as G, 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
|
|
8
|
-
import { L as
|
|
7
|
+
import { D as z, E as Q } from "./field-error-headless-E8WjFr_n.js";
|
|
8
|
+
import { L as Z } from "./field-label-headless-BakLOu5E.js";
|
|
9
9
|
import { E as $ } from "./error-icon-hZxQ6DEy.js";
|
|
10
10
|
import { s as g } from "./field-rac.module-DfEb7pBp.js";
|
|
11
|
-
import { u as j } from "./use-element-state-class-name-
|
|
11
|
+
import { u as j } from "./use-element-state-class-name-CUZuhFvZ.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:
|
|
13
|
+
const { id: n, value: r, onChange: i, disabled: l, readOnly: m, required: d, hasError: c, onBlur: o, onFocus: C, FieldLayout: R } = v(), { labelId: _ } = I(), L = N((y) => i(Number(y)), [
|
|
14
14
|
i
|
|
15
|
-
]),
|
|
16
|
-
return /* @__PURE__ */ e.createElement(
|
|
15
|
+
]), S = E(a, t.Label), s = E(a, t.Ratings), f = E(a, t.Description), h = E(a, t.Error);
|
|
16
|
+
return /* @__PURE__ */ e.createElement(R, {
|
|
17
17
|
fieldId: n,
|
|
18
|
-
renderLabel: () =>
|
|
19
|
-
renderInput: () => /* @__PURE__ */ e.createElement(
|
|
18
|
+
renderLabel: () => S,
|
|
19
|
+
renderInput: () => /* @__PURE__ */ e.createElement(G, {
|
|
20
20
|
"aria-labelledby": _,
|
|
21
21
|
value: r ? String(r) : void 0,
|
|
22
22
|
onChange: L,
|
|
@@ -25,21 +25,21 @@ const t = ({ children: a }) => {
|
|
|
25
25
|
isRequired: d,
|
|
26
26
|
isInvalid: c,
|
|
27
27
|
onBlur: o,
|
|
28
|
-
onFocus:
|
|
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, f)
|
|
32
32
|
});
|
|
33
33
|
}, b = ({ children: a, className: n, getReactionLabel: r }) => {
|
|
34
|
-
const { value: i, readOnly: l, hasError: m } =
|
|
34
|
+
const { value: i, readOnly: l, hasError: m } = v(), { inputId: d, ariaDescribedBy: c } = I(), [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
|
+
], S = (s) => o && !l ? o >= s : !!i && i >= Number(s);
|
|
41
41
|
return /* @__PURE__ */ e.createElement("div", {
|
|
42
|
-
ref:
|
|
42
|
+
ref: R,
|
|
43
43
|
id: d,
|
|
44
44
|
"aria-describedby": c,
|
|
45
45
|
className: n,
|
|
@@ -48,8 +48,8 @@ const t = ({ children: a }) => {
|
|
|
48
48
|
}, L.map((s) => U(_, {
|
|
49
49
|
key: s,
|
|
50
50
|
value: s,
|
|
51
|
-
isSelected:
|
|
52
|
-
onHoverChange: (
|
|
51
|
+
isSelected: S(s),
|
|
52
|
+
onHoverChange: (f) => C(f ? s : void 0),
|
|
53
53
|
label: r == null ? void 0 : r(Number(s))
|
|
54
54
|
})));
|
|
55
55
|
}, J = {
|
|
@@ -64,7 +64,7 @@ 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
69
|
}, /* @__PURE__ */ e.createElement(x, {
|
|
70
70
|
className: ({ isHovered: c, isFocused: o }) => typeof a == "function" ? a({
|
|
@@ -83,11 +83,11 @@ const t = ({ children: a }) => {
|
|
|
83
83
|
}, d) : null)));
|
|
84
84
|
};
|
|
85
85
|
b.Rating = F;
|
|
86
|
-
t.Label =
|
|
86
|
+
t.Label = Z;
|
|
87
87
|
t.Ratings = b;
|
|
88
88
|
t.Rating = F;
|
|
89
|
-
t.Description =
|
|
90
|
-
t.Error =
|
|
89
|
+
t.Description = z;
|
|
90
|
+
t.Error = Q;
|
|
91
91
|
const K = (a) => /* @__PURE__ */ e.createElement("svg", {
|
|
92
92
|
viewBox: "0 0 32 32",
|
|
93
93
|
width: 32,
|
|
@@ -103,7 +103,7 @@ const K = (a) => /* @__PURE__ */ e.createElement("svg", {
|
|
|
103
103
|
rating: X,
|
|
104
104
|
ratingSelected: Y,
|
|
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,12 +111,12 @@ const K = (a) => /* @__PURE__ */ e.createElement("svg", {
|
|
|
111
111
|
selected: p.ratingSelected,
|
|
112
112
|
hover: p.ratingHover
|
|
113
113
|
}, Ee = () => {
|
|
114
|
-
const { t: a } =
|
|
115
|
-
globalClasses:
|
|
114
|
+
const { t: a } = H(), n = j({
|
|
115
|
+
globalClasses: q,
|
|
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(T, g.label)
|
|
120
120
|
}, /* @__PURE__ */ e.createElement(t.Label.Required, {
|
|
121
121
|
className: u(M, g.requiredMark)
|
|
122
122
|
})), /* @__PURE__ */ e.createElement(t.Ratings, {
|
package/dist/component/{rich-content-rac.module-Cv3ZmD00.js → rich-content-rac.module-Dp9Advo9.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import c, { useState as u } from "react";
|
|
2
|
-
import {
|
|
2
|
+
import { bo as a, bg as i, by as T } from "./form-DHAKwnLt.js";
|
|
3
3
|
import { Button as d } from "react-aria-components";
|
|
4
4
|
import { D as r } from "./data-hooks-Dkw1pbRj.js";
|
|
5
5
|
import { truncateRichContent as _ } from "@wix/ricos/content";
|
|
@@ -14,17 +14,17 @@ const O = ({ children: e }) => {
|
|
|
14
14
|
}),
|
|
15
15
|
renderDescription: () => null
|
|
16
16
|
});
|
|
17
|
-
},
|
|
18
|
-
toggleTruncate:
|
|
17
|
+
}, g = "_toggleTruncate_5jt03_1", f = {
|
|
18
|
+
toggleTruncate: g
|
|
19
19
|
}, p = ({ isTruncated: e, onClick: t }) => {
|
|
20
20
|
const { t: n } = T(), o = n(e ? "field.rich-text.read-more-button.label" : "field.rich-text.read-less-button.label"), s = e ? r.TOGGLE_TRUNCATE_BUTTON_READ_MORE : r.TOGGLE_TRUNCATE_BUTTON_READ_LESS;
|
|
21
21
|
return /* @__PURE__ */ c.createElement(d, {
|
|
22
22
|
onPress: t,
|
|
23
|
-
className:
|
|
23
|
+
className: f.toggleTruncate,
|
|
24
24
|
"data-hook": s
|
|
25
25
|
}, o);
|
|
26
26
|
};
|
|
27
|
-
function
|
|
27
|
+
function y(e, t) {
|
|
28
28
|
const [n, o] = u(!0);
|
|
29
29
|
function s() {
|
|
30
30
|
o((l) => !l);
|
|
@@ -38,12 +38,12 @@ function B(e, t) {
|
|
|
38
38
|
toggleTruncate: s
|
|
39
39
|
};
|
|
40
40
|
}
|
|
41
|
-
const C = "_richContent_1galb_1",
|
|
41
|
+
const C = "_richContent_1galb_1", B = {
|
|
42
42
|
richContent: C
|
|
43
43
|
};
|
|
44
44
|
export {
|
|
45
45
|
O as R,
|
|
46
46
|
p as T,
|
|
47
|
-
|
|
48
|
-
|
|
47
|
+
B as s,
|
|
48
|
+
y as u
|
|
49
49
|
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import l from "classnames";
|
|
2
2
|
import e from "react";
|
|
3
|
-
import {
|
|
4
|
-
import { u as C, R as d, s as g, T as p } from "./rich-content-rac.module-
|
|
3
|
+
import { bo as m, aB as i, aj as u, a$ as R, b2 as T } from "./form-DHAKwnLt.js";
|
|
4
|
+
import { u as C, R as d, s as g, T as p } from "./rich-content-rac.module-Dp9Advo9.js";
|
|
5
5
|
const h = {
|
|
6
6
|
colorPalette: T(),
|
|
7
7
|
customStyles: R()
|
|
8
8
|
}, P = ({ truncate: t = !0 } = {}) => {
|
|
9
|
-
const { content: a, maxShownParagraphs: s } =
|
|
10
|
-
return /* @__PURE__ */ e.createElement(d, null, () => /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(
|
|
9
|
+
const { content: a, maxShownParagraphs: s } = m(), { displayedContent: n, isTruncated: o, isTruncateButtonShown: r, toggleTruncate: c } = C(a, t ? s : void 0);
|
|
10
|
+
return /* @__PURE__ */ e.createElement(d, null, () => /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(i, {
|
|
11
11
|
className: l(u, g.richContent),
|
|
12
12
|
content: n,
|
|
13
13
|
customTheme: h
|
package/dist/component/{service-dropdown-rac-Cl81KfJU.js → service-dropdown-rac-BTtJVFv8.js}
RENAMED
|
@@ -1,17 +1,16 @@
|
|
|
1
1
|
import t, { useRef as T, useMemo as _, useCallback as C, useEffect as b } from "react";
|
|
2
2
|
import { RicosViewer as w } from "@wix/ricos/viewer";
|
|
3
3
|
import E from "classnames";
|
|
4
|
-
import {
|
|
5
|
-
import { u as B } from "./use-service-options-base-
|
|
6
|
-
import { D as u } from "./dropdown-field-headless-
|
|
7
|
-
import { C as
|
|
8
|
-
import { E as
|
|
9
|
-
import { H as
|
|
10
|
-
import { s as
|
|
11
|
-
import { u as
|
|
12
|
-
|
|
13
|
-
const
|
|
14
|
-
const { actions: o } = P(), { t: D } = A(), { addOther: n, addOtherLabel: p } = e, c = p || D("add-other.default-other-option-label"), i = T(!0), d = _(() => {
|
|
4
|
+
import { bk as P, by as A, F as y, bo as M, bg as H, aq as V, S as k, a0 as q, y as x, H as U, v as W } from "./form-DHAKwnLt.js";
|
|
5
|
+
import { u as B } from "./use-service-options-base-hqO9Ev38.js";
|
|
6
|
+
import { D as u } from "./dropdown-field-headless-7SCC-xOC.js";
|
|
7
|
+
import { C as Q } from "./chevron-down-icon-CcpVm6B-.js";
|
|
8
|
+
import { E as Y } from "./error-icon-hZxQ6DEy.js";
|
|
9
|
+
import { H as j } from "./custom-focus-class-_483Pkwp.js";
|
|
10
|
+
import { s as i } from "./field-rac.module-DfEb7pBp.js";
|
|
11
|
+
import { a as z, u as G } from "./use-dropdown-trigger-class-name-BWTT7ltv.js";
|
|
12
|
+
const J = "00000000-0000-0000-0000-000000000000", K = (e) => {
|
|
13
|
+
const { actions: o } = P(), { t: D } = A(), { addOther: n, addOtherLabel: p } = e, c = p || D("add-other.default-other-option-label"), a = T(!0), d = _(() => {
|
|
15
14
|
var s;
|
|
16
15
|
return ((s = e.options) == null ? void 0 : s.map((m) => m.id ?? "")) ?? [];
|
|
17
16
|
}, [
|
|
@@ -21,18 +20,18 @@ const z = "00000000-0000-0000-0000-000000000000", J = (e) => {
|
|
|
21
20
|
{
|
|
22
21
|
value: c,
|
|
23
22
|
label: c,
|
|
24
|
-
id:
|
|
23
|
+
id: J
|
|
25
24
|
}
|
|
26
25
|
] : s, [
|
|
27
26
|
n,
|
|
28
27
|
c
|
|
29
|
-
]), { isLoading: f, options: l, isEmpty:
|
|
30
|
-
fieldType:
|
|
28
|
+
]), { isLoading: f, options: l, isEmpty: S, shouldRender: I, setIsLoading: h, setOptions: R, setIsEmpty: g, processOptions: F } = B({
|
|
29
|
+
fieldType: y.SERVICES_DROPDOWN,
|
|
31
30
|
isEditor: e.isEditor,
|
|
32
31
|
postProcessOptions: O
|
|
33
32
|
}), L = C(async () => {
|
|
34
|
-
if (
|
|
35
|
-
|
|
33
|
+
if (a.current && (o != null && o.fetchServices) && d.length > 0) {
|
|
34
|
+
a.current = !1, h(!0);
|
|
36
35
|
let s;
|
|
37
36
|
try {
|
|
38
37
|
s = await o.fetchServices({
|
|
@@ -45,15 +44,15 @@ const z = "00000000-0000-0000-0000-000000000000", J = (e) => {
|
|
|
45
44
|
const m = F(s);
|
|
46
45
|
g(!n && m.length === 0), R(m);
|
|
47
46
|
} else
|
|
48
|
-
|
|
49
|
-
|
|
47
|
+
a.current = !0;
|
|
48
|
+
h(!1);
|
|
50
49
|
}
|
|
51
50
|
}, [
|
|
52
51
|
o,
|
|
53
52
|
d,
|
|
54
53
|
F,
|
|
55
54
|
n,
|
|
56
|
-
|
|
55
|
+
h,
|
|
57
56
|
R,
|
|
58
57
|
g
|
|
59
58
|
]);
|
|
@@ -68,14 +67,14 @@ const z = "00000000-0000-0000-0000-000000000000", J = (e) => {
|
|
|
68
67
|
g,
|
|
69
68
|
e.isEditor
|
|
70
69
|
]);
|
|
71
|
-
const
|
|
72
|
-
e.onFocus && e.onFocus(),
|
|
70
|
+
const v = C(() => {
|
|
71
|
+
e.onFocus && e.onFocus(), a.current && L();
|
|
73
72
|
}, [
|
|
74
73
|
L,
|
|
75
74
|
e.onFocus
|
|
76
|
-
]),
|
|
75
|
+
]), N = C(
|
|
77
76
|
(s) => {
|
|
78
|
-
e.onChange && e.onChange(s),
|
|
77
|
+
e.onChange && e.onChange(s), a.current = !0;
|
|
79
78
|
},
|
|
80
79
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
81
80
|
[
|
|
@@ -85,31 +84,31 @@ const z = "00000000-0000-0000-0000-000000000000", J = (e) => {
|
|
|
85
84
|
return {
|
|
86
85
|
isLoading: f,
|
|
87
86
|
options: l,
|
|
88
|
-
isEmpty:
|
|
89
|
-
onFocus:
|
|
90
|
-
onChange:
|
|
87
|
+
isEmpty: S,
|
|
88
|
+
onFocus: v,
|
|
89
|
+
onChange: N,
|
|
91
90
|
shouldRender: I
|
|
92
91
|
};
|
|
93
92
|
}, r = ({ children: e }) => {
|
|
94
|
-
const o =
|
|
93
|
+
const o = M(), { addOther: D } = o, n = H(), p = o.isEditor || n.isEditor || n.isComposer, { isLoading: c, options: a, isEmpty: d, onFocus: O, onChange: f, shouldRender: l } = K({
|
|
95
94
|
...o,
|
|
96
95
|
isEditor: p
|
|
97
|
-
}),
|
|
96
|
+
}), S = _(() => ({
|
|
98
97
|
...o,
|
|
99
|
-
options: c ? [] :
|
|
98
|
+
options: c ? [] : a,
|
|
100
99
|
isLoading: c,
|
|
101
100
|
onFocus: O,
|
|
102
101
|
onChange: f
|
|
103
102
|
}), [
|
|
104
103
|
o,
|
|
105
|
-
|
|
104
|
+
a,
|
|
106
105
|
c,
|
|
107
106
|
O,
|
|
108
107
|
f
|
|
109
108
|
]);
|
|
110
109
|
return !p && d && !D || !l ? null : /* @__PURE__ */ t.createElement(V.Provider, {
|
|
111
110
|
value: {
|
|
112
|
-
v2:
|
|
111
|
+
v2: S
|
|
113
112
|
}
|
|
114
113
|
}, /* @__PURE__ */ t.createElement(u, null, e));
|
|
115
114
|
};
|
|
@@ -118,29 +117,29 @@ r.Trigger = u.Trigger;
|
|
|
118
117
|
r.Options = u.Options;
|
|
119
118
|
r.Description = u.Description;
|
|
120
119
|
r.Error = u.Error;
|
|
121
|
-
const
|
|
120
|
+
const X = ({ content: e, locale: o }) => /* @__PURE__ */ t.createElement(w, {
|
|
122
121
|
content: e,
|
|
123
122
|
locale: o
|
|
124
|
-
}),
|
|
125
|
-
const e =
|
|
123
|
+
}), Z = () => {
|
|
124
|
+
const e = z(i.dropdownTrigger), o = G(j);
|
|
126
125
|
return /* @__PURE__ */ t.createElement(r, null, /* @__PURE__ */ t.createElement(r.Label, {
|
|
127
|
-
className: E(
|
|
126
|
+
className: E(k, i.label)
|
|
128
127
|
}, /* @__PURE__ */ t.createElement(r.Label.Required, {
|
|
129
|
-
className: E(
|
|
128
|
+
className: E(q, i.requiredMark)
|
|
130
129
|
})), /* @__PURE__ */ t.createElement(r.Trigger, {
|
|
131
130
|
className: e
|
|
132
|
-
}, /* @__PURE__ */ t.createElement(
|
|
133
|
-
className:
|
|
131
|
+
}, /* @__PURE__ */ t.createElement(Q, {
|
|
132
|
+
className: i.dropdownIcon
|
|
134
133
|
})), /* @__PURE__ */ t.createElement(r.Options, {
|
|
135
|
-
className: E(
|
|
134
|
+
className: E(x, i.selectPopover, i.dropdownPopover)
|
|
136
135
|
}, /* @__PURE__ */ t.createElement(r.Options.Option, {
|
|
137
136
|
className: o
|
|
138
137
|
})), /* @__PURE__ */ t.createElement(r.Error, {
|
|
139
|
-
className: E(
|
|
140
|
-
}, /* @__PURE__ */ t.createElement(
|
|
141
|
-
className: E(
|
|
142
|
-
},
|
|
143
|
-
},
|
|
138
|
+
className: E(U, i.error)
|
|
139
|
+
}, /* @__PURE__ */ t.createElement(Y, null), /* @__PURE__ */ t.createElement(r.Error.Text, null)), /* @__PURE__ */ t.createElement(r.Description, {
|
|
140
|
+
className: E(W, i.description)
|
|
141
|
+
}, X));
|
|
142
|
+
}, me = () => /* @__PURE__ */ t.createElement(Z, null);
|
|
144
143
|
export {
|
|
145
|
-
|
|
144
|
+
me as ServiceDropdownRAC
|
|
146
145
|
};
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import e, { useEffect as I, useMemo as L } from "react";
|
|
2
|
-
import { RicosViewer as
|
|
2
|
+
import { RicosViewer as S } from "@wix/ricos/viewer";
|
|
3
3
|
import a from "classnames";
|
|
4
|
-
import { F as
|
|
5
|
-
import { u as v } from "./use-service-options-base-
|
|
6
|
-
import { C as i } from "./checkbox-group-field-headless-
|
|
4
|
+
import { F as R, bo as d, aq as D, S as F, a0 as N, o as f, q as h, H as b, v as M, p as A } from "./form-DHAKwnLt.js";
|
|
5
|
+
import { u as v } from "./use-service-options-base-hqO9Ev38.js";
|
|
6
|
+
import { C as i } from "./checkbox-group-field-headless-BxBaMg29.js";
|
|
7
7
|
import { E as x } from "./error-icon-hZxQ6DEy.js";
|
|
8
8
|
import { C as P } from "./checkbox-indicator-module-classes-6173wvuW.js";
|
|
9
9
|
import { s as n } from "./field-rac.module-DfEb7pBp.js";
|
|
10
10
|
import { o as _ } from "./options-rac.module-_THNq6Qq.js";
|
|
11
|
-
import { u as T } from "./use-element-state-class-name-
|
|
12
|
-
import { u as k } from "./use-text-input-class-name-
|
|
11
|
+
import { u as T } from "./use-element-state-class-name-CUZuhFvZ.js";
|
|
12
|
+
import { u as k } from "./use-text-input-class-name-wp9dzpEy.js";
|
|
13
13
|
const y = (s) => {
|
|
14
14
|
var C;
|
|
15
15
|
const { isLoading: o, options: r, isEmpty: l, shouldRender: E, setOptions: c, setIsEmpty: m, setHasInitialDataLoaded: p } = v({
|
|
16
|
-
fieldType:
|
|
16
|
+
fieldType: R.SERVICES_MULTI_CHOICE,
|
|
17
17
|
isEditor: s.isEditor
|
|
18
18
|
}), u = (C = s.options) == null ? void 0 : C.every((O) => O.label && O.id);
|
|
19
19
|
return I(() => {
|
|
@@ -53,10 +53,10 @@ t.Label = i.Label;
|
|
|
53
53
|
t.Options = i.Options;
|
|
54
54
|
t.Description = i.Description;
|
|
55
55
|
t.Error = i.Error;
|
|
56
|
-
const B = ({ content: s, locale: o }) => /* @__PURE__ */ e.createElement(
|
|
56
|
+
const B = ({ content: s, locale: o }) => /* @__PURE__ */ e.createElement(S, {
|
|
57
57
|
content: s,
|
|
58
58
|
locale: o
|
|
59
|
-
}),
|
|
59
|
+
}), H = () => {
|
|
60
60
|
const s = T({
|
|
61
61
|
globalClasses: A,
|
|
62
62
|
moduleClasses: P
|
|
@@ -80,7 +80,7 @@ const B = ({ content: s, locale: o }) => /* @__PURE__ */ e.createElement(R, {
|
|
|
80
80
|
}, /* @__PURE__ */ e.createElement(x, null), /* @__PURE__ */ e.createElement(t.Error.Text, null)), /* @__PURE__ */ e.createElement(t.Description, {
|
|
81
81
|
className: a(M, n.description)
|
|
82
82
|
}, B));
|
|
83
|
-
},
|
|
83
|
+
}, J = () => /* @__PURE__ */ e.createElement(H, null);
|
|
84
84
|
export {
|
|
85
|
-
|
|
85
|
+
J as ServicesMultiChoiceRAC
|
|
86
86
|
};
|