@wix/form-elements 1.94.0 → 1.96.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-CNIizm60.js → appointment-rac-BKgRKq3j.js} +309 -310
- package/dist/component/{bookings-address-rac-C7ukrF1D.js → bookings-address-rac-C87x19gw.js} +1 -1
- package/dist/component/{bookings-email-rac-DnzbLEmf.js → bookings-email-rac-f4nuC_pb.js} +1 -1
- package/dist/component/{bookings-first-name-rac-8Krm-3QK.js → bookings-first-name-rac-BGmuAmbu.js} +1 -1
- package/dist/component/{bookings-header-rac-WRILbKeE.js → bookings-header-rac-CoyxHljp.js} +1 -1
- package/dist/component/{bookings-last-name-rac-C0-yWBLa.js → bookings-last-name-rac-D2mBYwcR.js} +1 -1
- package/dist/component/{bookings-login-bar-rac-Bc9u_rn_.js → bookings-login-bar-rac-BH2Mi6TR.js} +4 -4
- package/dist/component/{bookings-phone-rac-BaBlg7f7.js → bookings-phone-rac-Dz78ybFV.js} +1 -1
- package/dist/component/{bookings-rich-text-rac-DR-Ngu_b.js → bookings-rich-text-rac-8_h0cOoy.js} +1 -1
- package/dist/component/{get-first-day-of-the-week-DvnsxYhQ.js → calendar.module-DnhTT4QT.js} +23 -18
- package/dist/component/{checkbox-field-rac-Cqr57TgJ.js → checkbox-field-rac-CJnegjvL.js} +5 -5
- package/dist/component/{checkbox-group-field-headless-Bgcvavr3.js → checkbox-group-field-headless-CrA7Gx2Y.js} +3 -3
- package/dist/component/{checkbox-group-field-rac-Bcsowjwp.js → checkbox-group-field-rac-DMg75l5Q.js} +12 -12
- package/dist/component/{checkbox-group-rac-38j0b8_U.js → checkbox-group-rac-C9XWlO5D.js} +1 -1
- package/dist/component/{checkbox-rac-Bb5ZxZo7.js → checkbox-rac-CrqhH4z9.js} +1 -1
- package/dist/component/{contacts-address-rac-gaOhfztb.js → contacts-address-rac-C2mqTiPg.js} +1 -1
- package/dist/component/{contacts-birthdate-rac-DAIPR64p.js → contacts-birthdate-rac-i7_RMona.js} +1 -1
- package/dist/component/{contacts-company-rac-DVPQrcfN.js → contacts-company-rac-7sdIosaG.js} +1 -1
- package/dist/component/{contacts-email-rac-qMyFjz_2.js → contacts-email-rac-CrsksJ9G.js} +1 -1
- package/dist/component/{contacts-first-name-rac-OVPtHcde.js → contacts-first-name-rac-I5xIYxgD.js} +1 -1
- package/dist/component/{contacts-last-name-rac-BmLQrJ2D.js → contacts-last-name-rac-DnzJYJh7.js} +1 -1
- package/dist/component/{contacts-phone-rac-D7waZc1q.js → contacts-phone-rac-Cx1jpYmv.js} +1 -1
- package/dist/component/{contacts-position-rac-DnI3o3Am.js → contacts-position-rac-CxddG_cE.js} +1 -1
- package/dist/component/{contacts-subscribe-rac-P8zn8_GS.js → contacts-subscribe-rac-C1nTAhnd.js} +2 -2
- package/dist/component/{contacts-tax-id-rac-9CBr2KkR.js → contacts-tax-id-rac-B1lzfrj_.js} +1 -1
- package/dist/component/{date-availability--ntpBDiI.js → date-availability-LN33GU7O.js} +1 -1
- package/dist/component/{date-input-field-rac-Don2tz5U.js → date-input-field-rac-zTcw6Mxx.js} +57 -56
- package/dist/component/{date-input-rac-Du3e8Hcu.js → date-input-rac-NfVbrcoO.js} +1 -1
- package/dist/component/date-picker-field-rac-Cc9hJloJ.js +317 -0
- package/dist/component/{date-picker-rac-BsCMkfHV.js → date-picker-rac-C5iXyKdf.js} +1 -1
- package/dist/component/{date-time-input-field-rac-LLF1UdUD.js → date-time-input-field-rac-Cp34u7cC.js} +53 -52
- package/dist/component/{date-time-input-rac-KYqrNgbb.js → date-time-input-rac-CfFd56Xf.js} +1 -1
- package/dist/component/{dext-checkbox-group-rac-DaOY9Cb6.js → dext-checkbox-group-rac-BVx7XXwR.js} +2 -2
- package/dist/component/{dext-checkbox-rac-Ceu5q9xf.js → dext-checkbox-rac-CmUOLx_w.js} +1 -1
- package/dist/component/{dext-date-picker-rac-iop0XEpQ.js → dext-date-picker-rac-XDrLGVTQ.js} +1 -1
- package/dist/component/{dext-date-time-input-rac-DJB_fMiN.js → dext-date-time-input-rac-ZLCq_taK.js} +1 -1
- package/dist/component/{dext-dropdown-rac-Dhp4CUZ5.js → dext-dropdown-rac-C74zBq3M.js} +1 -1
- package/dist/component/{dext-email-rac-BIr9RxhQ.js → dext-email-rac-CqS9HcdY.js} +1 -1
- package/dist/component/{dext-number-input-rac-Q8p3NeKN.js → dext-number-input-rac-DszjJDT-.js} +1 -1
- package/dist/component/{dext-phone-rac-DRdRLIvr.js → dext-phone-rac-wt7T8hpM.js} +1 -1
- package/dist/component/{dext-radio-group-rac-D1N_wBhO.js → dext-radio-group-rac-BvRnaWP0.js} +2 -2
- package/dist/component/{dext-rating-input-rac-BQIMl7oQ.js → dext-rating-input-rac-D1Lt9M3c.js} +1 -1
- package/dist/component/{dext-tags-rac-C52jiu1I.js → dext-tags-rac-70YO5CJH.js} +2 -2
- package/dist/component/{dext-text-area-rac-BWmSs4mb.js → dext-text-area-rac-CC5RCvWh.js} +1 -1
- package/dist/component/{dext-text-input-rac-BnAJ-7Hs.js → dext-text-input-rac-s487DzPW.js} +1 -1
- package/dist/component/{dext-url-input-rac-CvGn3KHo.js → dext-url-input-rac-DEKwUh2a.js} +1 -1
- package/dist/component/{donation-rac-DsFRs16V.js → donation-rac-C2bCFVHP.js} +30 -30
- package/dist/component/{dropdown-field-headless-K0AM4AAs.js → dropdown-field-headless-BMWwkydq.js} +4 -4
- package/dist/component/{dropdown-field-rac-CMEB8ZQN.js → dropdown-field-rac-Cw5Cbpg0.js} +5 -5
- package/dist/component/{dropdown-rac-BakYShkm.js → dropdown-rac-CEmlDY3w.js} +1 -1
- package/dist/component/{ecom-address-rac-A_Aj5CX0.js → ecom-address-rac-Dv6asnf_.js} +1 -1
- package/dist/component/{ecom-subscription-checkbox-rac-Ddol0N03.js → ecom-subscription-checkbox-rac-DOwH-Ebd.js} +3 -3
- package/dist/component/{email-input-field-rac-B7yOMDWB.js → email-input-field-rac-CeFXPibq.js} +41 -41
- package/dist/component/events-repeater-rac-BUk5Qc8n.js +267 -0
- package/dist/component/{events-rsvp-rac-DfjqTM7C.js → events-rsvp-rac-CtFkVzUy.js} +20 -20
- package/dist/component/{field-error-headless-CONyKitA.js → field-error-headless-B6x_cVEi.js} +1 -1
- package/dist/component/{field-label-headless-tf9QXhMi.js → field-label-headless-BibCD8xx.js} +1 -1
- package/dist/component/{file-upload-rac-Bng5Yew9.js → file-upload-rac-BUcktluW.js} +43 -43
- package/dist/component/{fixed-payment-rac-CXIv7_Oj.js → fixed-payment-rac-BMSBSo5c.js} +10 -10
- package/dist/component/{form-Lv-a47BN.js → form-9WmwgGNc.js} +1120 -1108
- package/dist/component/{form-element-classes-CLZXu-91.js → form-element-classes-BtKlobUX.js} +60 -59
- package/dist/component/form.css +1 -1
- package/dist/component/form.js +1 -1
- package/dist/component/{header-field-rac-BZdYszfP.js → header-field-rac-CxUuHOic.js} +3 -3
- package/dist/component/{header-rac-BNeqoDyT.js → header-rac-DejI69X7.js} +1 -1
- package/dist/component/{image-choice-rac-aSKDRo51.js → image-choice-rac-BjI5a_co.js} +15 -15
- package/dist/component/{index-DnNA6zNR.js → index-Csso-2QH.js} +2 -2
- package/dist/component/{index-CWZfskEy.js → index-Dz2hV2_S.js} +4 -4
- package/dist/component/{isObjectLike-C9ogbjhq.js → isObjectLike-BN_BZMhy.js} +1 -1
- package/dist/component/{multiline-address-field-rac-CHE1mE_b.js → multiline-address-field-rac-CYfphmfr.js} +86 -85
- package/dist/component/{multiline-address-rac-wxJunvdU.js → multiline-address-rac-Ccujt2bd.js} +1 -1
- package/dist/component/{number-input-field-rac-ore1oi9q.js → number-input-field-rac-CfnRCRar.js} +18 -18
- package/dist/component/{number-input-rac-DU-rCrjJ.js → number-input-rac-DnTO9d8P.js} +1 -1
- package/dist/component/{password-rac-Dkqv0AIm.js → password-rac-Be_YSb-Q.js} +37 -37
- package/dist/component/{payment-input-rac-CsTcFhQ5.js → payment-input-rac-DXUf5iYb.js} +22 -22
- package/dist/component/{phone-input-field-rac-lIVKt7ge.js → phone-input-field-rac-DYAwLuvJ.js} +32 -31
- package/dist/component/{phone-rac-CZlsXHRM.js → phone-rac-BlsvDmER.js} +1 -1
- package/dist/component/{product-list-rac-UebyHfhC.js → product-list-rac-DdXwRSc2.js} +15 -15
- package/dist/component/{quiz-radio-group-rac-ORLTYxdR.js → quiz-radio-group-rac-B0yiKdbu.js} +2 -2
- package/dist/component/{radio-button-module-classes-CEQr0hKB.js → radio-button-module-classes-t1jsWYpT.js} +3 -3
- package/dist/component/{radio-group-field-rac-t_Dj1_4p.js → radio-group-field-rac-Cug1TtSq.js} +4 -4
- package/dist/component/{radio-group-rac-CC_35nq4.js → radio-group-rac-_O5T0Pt8.js} +1 -1
- package/dist/component/{rating-input-field-rac-BU66cRhy.js → rating-input-field-rac-BSKzQ3fq.js} +31 -31
- package/dist/component/{rating-input-rac-KgNbgchh.js → rating-input-rac-B71q44YO.js} +1 -1
- package/dist/component/{rich-content-rac.module-oGcFL-hl.js → rich-content-rac.module-BJuoKIOt.js} +1 -1
- package/dist/component/{rich-text-field-rac-CiwMiMv7.js → rich-text-field-rac-CiSR82Fw.js} +3 -3
- package/dist/component/{rich-text-rac-Dmp0xxpi.js → rich-text-rac-Bo6UBwOg.js} +1 -1
- package/dist/component/{service-dropdown-rac-_QBi8_AO.js → service-dropdown-rac-BJ7V-g8M.js} +35 -35
- package/dist/component/{services-multi-choice-rac-C2e3xL9O.js → services-multi-choice-rac-CtBcc9WH.js} +12 -12
- package/dist/component/{signature-rac-Dj3aYMvJ.js → signature-rac-yvrHr1he.js} +102 -102
- package/dist/component/{submit-button-rac-C-BVXga7.js → submit-button-rac-s-JdZgq7.js} +2 -2
- package/dist/component/{tags-field-rac-CcOUcsCd.js → tags-field-rac-g_W0RMod.js} +66 -66
- package/dist/component/{tags-rac-p68DA4Mq.js → tags-rac-DmvIH6HU.js} +1 -1
- package/dist/component/{text-area-field-rac-DubIcKTn.js → text-area-field-rac-Duja5xOA.js} +27 -27
- package/dist/component/{text-area-rac-CygfUB6z.js → text-area-rac-DzRxgG6u.js} +1 -1
- package/dist/component/{text-input-field-rac-C7JZRcCX.js → text-input-field-rac-C2eXeoBC.js} +7 -7
- package/dist/component/{text-input-headless-D1xcxxNE.js → text-input-headless-d1WK0nqR.js} +3 -3
- package/dist/component/{text-input-rac-C5lfqJCN.js → text-input-rac-DM9MnoQs.js} +1 -1
- package/dist/component/{time-input-rac-BNxceC-R.js → time-input-rac-CxVZ3USX.js} +25 -25
- package/dist/component/{url-input-field-rac-DH_STwmd.js → url-input-field-rac-4oVJMr1a.js} +19 -19
- package/dist/component/{url-input-rac-C2VOzCis.js → url-input-rac--T-FnskQ.js} +1 -1
- package/dist/component/use-dropdown-option-class-name-BFHRYpVL.js +21 -0
- package/dist/component/{use-element-state-class-name-CITSBXT8.js → use-element-state-class-name-De5YnxMK.js} +1 -1
- package/dist/component/use-is-forced-open-dropdown-CWvcd9Ex.js +41 -0
- package/dist/component/{use-service-options-base-DVBmOiRh.js → use-service-options-base-CD1EVWRE.js} +1 -1
- package/dist/component/{use-text-input-class-name-COw61iUf.js → use-text-input-class-name-BYwXccvO.js} +3 -3
- package/package.json +4 -3
- package/dist/component/date-picker-field-rac-Wxmz-O7r.js +0 -304
- package/dist/component/events-repeater-rac-bp8gFHXQ.js +0 -256
- package/dist/component/use-dropdown-option-class-name-CKRu4ERM.js +0 -57
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import l, { useRef as S, useState as V, useEffect as B, useCallback as T } from "react";
|
|
2
2
|
import { RadioGroup as H, RadioField as k, RadioButton as M, TextField as U, Input as A } from "react-aria-components";
|
|
3
|
-
import { ak as v, ah as G, au as F, ac as P, am as $ } from "./form-
|
|
3
|
+
import { ak as v, ah as G, au as F, ac as P, am as $ } from "./form-9WmwgGNc.js";
|
|
4
4
|
import { f as p, a as y } from "./find-child-C60k4CxG.js";
|
|
5
|
-
import { D as q, E as x } from "./field-error-headless-
|
|
6
|
-
import { L as j } from "./field-label-headless-
|
|
5
|
+
import { D as q, E as x } from "./field-error-headless-B6x_cVEi.js";
|
|
6
|
+
import { L as j } from "./field-label-headless-BibCD8xx.js";
|
|
7
7
|
import { N as w } from "./options-layout-constants-DEfIEJWD.js";
|
|
8
8
|
import { S as z } from "./selection-indicator-XQ8MYHUQ.js";
|
|
9
9
|
const L = "Other", J = (e, t) => e == null ? void 0 : e.find((o) => (o.value ?? o.label) === t), R = (e, t) => !!t && !J(e, t), K = (e, t) => {
|
package/dist/component/{radio-group-field-rac-t_Dj1_4p.js → radio-group-field-rac-Cug1TtSq.js}
RENAMED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { RicosViewer as m } from "@wix/ricos/viewer";
|
|
2
2
|
import t from "classnames";
|
|
3
3
|
import e from "react";
|
|
4
|
-
import { a, s, R as c } from "./radio-button-module-classes-
|
|
4
|
+
import { a, s, R as c } from "./radio-button-module-classes-t1jsWYpT.js";
|
|
5
5
|
import { E as i } from "./error-icon-hZxQ6DEy.js";
|
|
6
6
|
import { s as o } from "./field-rac.module-DobpyqOd.js";
|
|
7
|
-
import {
|
|
8
|
-
import { u } from "./use-element-state-class-name-
|
|
9
|
-
import { u as N } from "./use-text-input-class-name-
|
|
7
|
+
import { P as E, O, N as R, C as _, S as p, r as I, j as L } from "./form-element-classes-BtKlobUX.js";
|
|
8
|
+
import { u } from "./use-element-state-class-name-De5YnxMK.js";
|
|
9
|
+
import { u as N } from "./use-text-input-class-name-BYwXccvO.js";
|
|
10
10
|
const D = ({ content: r, locale: l }) => /* @__PURE__ */ e.createElement(m, {
|
|
11
11
|
content: r,
|
|
12
12
|
locale: l
|
package/dist/component/{rating-input-field-rac-BU66cRhy.js → rating-input-field-rac-BSKzQ3fq.js}
RENAMED
|
@@ -1,38 +1,38 @@
|
|
|
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 b, ah as v, au as T } from "./form-
|
|
4
|
+
import { ak as b, ah as v, au as T } from "./form-9WmwgGNc.js";
|
|
5
5
|
import { RadioGroup as H, 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
|
|
8
|
-
import { L as
|
|
7
|
+
import { D as P, E as k } from "./field-error-headless-B6x_cVEi.js";
|
|
8
|
+
import { L as q } from "./field-label-headless-BibCD8xx.js";
|
|
9
9
|
import { E as G } from "./error-icon-hZxQ6DEy.js";
|
|
10
10
|
import { s as g } from "./field-rac.module-DobpyqOd.js";
|
|
11
|
-
import {
|
|
12
|
-
import { u as J } from "./use-element-state-class-name-
|
|
11
|
+
import { C as x, S as Q, Q as U, r as j, j as z, R as Z } from "./form-element-classes-BtKlobUX.js";
|
|
12
|
+
import { u as J } from "./use-element-state-class-name-De5YnxMK.js";
|
|
13
13
|
const t = ({ children: a }) => {
|
|
14
|
-
const { id:
|
|
14
|
+
const { id: r, value: n, onChange: l, disabled: o, readOnly: d, required: c, hasError: i, onBlur: E, onFocus: C, FieldLayout: R } = b(), { labelId: _ } = v(), 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
|
-
return /* @__PURE__ */ e.createElement(
|
|
18
|
-
fieldId:
|
|
17
|
+
return /* @__PURE__ */ e.createElement(R, {
|
|
18
|
+
fieldId: r,
|
|
19
19
|
renderLabel: () => f,
|
|
20
20
|
renderInput: () => /* @__PURE__ */ e.createElement(H, {
|
|
21
21
|
"aria-labelledby": _,
|
|
22
|
-
value:
|
|
22
|
+
value: n ? String(n) : void 0,
|
|
23
23
|
onChange: L,
|
|
24
24
|
isDisabled: o,
|
|
25
25
|
isReadOnly: d,
|
|
26
26
|
isRequired: c,
|
|
27
27
|
isInvalid: i,
|
|
28
28
|
onBlur: E,
|
|
29
|
-
onFocus:
|
|
29
|
+
onFocus: C,
|
|
30
30
|
orientation: "horizontal"
|
|
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 } = b(), { inputId: c, ariaDescribedBy: i } = v(), [E,
|
|
34
|
+
}, I = ({ children: a, className: r, getReactionLabel: n }) => {
|
|
35
|
+
const { value: l, readOnly: o, hasError: d } = b(), { inputId: c, ariaDescribedBy: i } = v(), [E, C] = O(), R = A(null), _ = u(a, I.Rating), L = [
|
|
36
36
|
"1",
|
|
37
37
|
"2",
|
|
38
38
|
"3",
|
|
@@ -40,18 +40,18 @@ const t = ({ children: a }) => {
|
|
|
40
40
|
"5"
|
|
41
41
|
], f = (s) => E && !o ? E >= s : !!l && l >= Number(s);
|
|
42
42
|
return /* @__PURE__ */ e.createElement("div", {
|
|
43
|
-
ref:
|
|
43
|
+
ref: R,
|
|
44
44
|
id: c,
|
|
45
45
|
"aria-describedby": i,
|
|
46
|
-
className:
|
|
46
|
+
className: r,
|
|
47
47
|
"data-invalid": d,
|
|
48
48
|
"data-readonly": o
|
|
49
49
|
}, L.map((s) => B(_, {
|
|
50
50
|
key: s,
|
|
51
51
|
value: s,
|
|
52
52
|
isSelected: f(s),
|
|
53
|
-
onHoverChange: (S) =>
|
|
54
|
-
label:
|
|
53
|
+
onHoverChange: (S) => C(S ? s : void 0),
|
|
54
|
+
label: n == null ? void 0 : n(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: r, ...n }) => {
|
|
67
|
+
const { value: l, isSelected: o, onHoverChange: d, label: c } = n;
|
|
68
68
|
return /* @__PURE__ */ e.createElement(M, {
|
|
69
69
|
value: l
|
|
70
70
|
}, /* @__PURE__ */ e.createElement(w, {
|
|
@@ -74,19 +74,19 @@ 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 r == "function" ? r({
|
|
78
78
|
isSelected: o,
|
|
79
79
|
isHovered: i
|
|
80
|
-
}) :
|
|
80
|
+
}) : r, c ? /* @__PURE__ */ e.createElement("span", {
|
|
81
81
|
style: K
|
|
82
82
|
}, c) : null)));
|
|
83
83
|
};
|
|
84
84
|
I.Rating = F;
|
|
85
|
-
t.Label =
|
|
85
|
+
t.Label = q;
|
|
86
86
|
t.Ratings = I;
|
|
87
87
|
t.Rating = F;
|
|
88
88
|
t.Description = P;
|
|
89
|
-
t.Error =
|
|
89
|
+
t.Error = k;
|
|
90
90
|
const W = (a) => /* @__PURE__ */ e.createElement("svg", {
|
|
91
91
|
viewBox: "0 0 32 32",
|
|
92
92
|
width: 32,
|
|
@@ -102,16 +102,16 @@ 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: r }) => /* @__PURE__ */ e.createElement(y, {
|
|
106
106
|
content: a,
|
|
107
|
-
locale:
|
|
107
|
+
locale: r
|
|
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 } = T(),
|
|
114
|
-
globalClasses:
|
|
113
|
+
const { t: a } = T(), r = J({
|
|
114
|
+
globalClasses: Z,
|
|
115
115
|
moduleClasses: te
|
|
116
116
|
});
|
|
117
117
|
return /* @__PURE__ */ e.createElement(t, null, /* @__PURE__ */ e.createElement(t.Label, {
|
|
@@ -120,15 +120,15 @@ const W = (a) => /* @__PURE__ */ e.createElement("svg", {
|
|
|
120
120
|
className: m(Q, g.requiredMark)
|
|
121
121
|
})), /* @__PURE__ */ e.createElement(t.Ratings, {
|
|
122
122
|
className: m(U, p.ratings),
|
|
123
|
-
getReactionLabel: (
|
|
124
|
-
count:
|
|
123
|
+
getReactionLabel: (n) => a("rating-input.a11y.reaction-label", {
|
|
124
|
+
count: n
|
|
125
125
|
})
|
|
126
126
|
}, /* @__PURE__ */ e.createElement(t.Rating, {
|
|
127
|
-
className:
|
|
127
|
+
className: r
|
|
128
128
|
}, /* @__PURE__ */ e.createElement(W, null))), /* @__PURE__ */ e.createElement(t.Error, {
|
|
129
|
-
className: m(
|
|
129
|
+
className: m(j, 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(z, g.description)
|
|
132
132
|
}, ee));
|
|
133
133
|
};
|
|
134
134
|
export {
|
package/dist/component/{rich-content-rac.module-oGcFL-hl.js → rich-content-rac.module-BJuoKIOt.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-9WmwgGNc.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-9WmwgGNc.js";
|
|
4
|
+
import { u as T, R as C, s as d, T as p } from "./rich-content-rac.module-BJuoKIOt.js";
|
|
5
|
+
import { a6 as g } from "./form-element-classes-BtKlobUX.js";
|
|
6
6
|
const h = {
|
|
7
7
|
colorPalette: R(),
|
|
8
8
|
customStyles: u()
|
package/dist/component/{service-dropdown-rac-_QBi8_AO.js → service-dropdown-rac-BJ7V-g8M.js}
RENAMED
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import t, { useRef as P, useMemo as L, useCallback as
|
|
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 V, h as k } from "./form-
|
|
5
|
-
import { u as
|
|
6
|
-
import { D as d } from "./dropdown-field-headless-
|
|
7
|
-
import { C as
|
|
8
|
-
import { E as
|
|
9
|
-
import { H } from "./custom-focus-class-_483Pkwp.js";
|
|
4
|
+
import { ag as A, au as b, F as M, ak as y, ac as V, h as k } from "./form-9WmwgGNc.js";
|
|
5
|
+
import { u as x } from "./use-service-options-base-CD1EVWRE.js";
|
|
6
|
+
import { D as d } from "./dropdown-field-headless-BMWwkydq.js";
|
|
7
|
+
import { C as H } from "./chevron-down-icon-CcpVm6B-.js";
|
|
8
|
+
import { E as U } from "./error-icon-hZxQ6DEy.js";
|
|
9
|
+
import { H as W } from "./custom-focus-class-_483Pkwp.js";
|
|
10
10
|
import { s as i } from "./field-rac.module-DobpyqOd.js";
|
|
11
|
-
import {
|
|
12
|
-
import { u as z } from "./use-dropdown-option-class-name-
|
|
11
|
+
import { C as q, S as B, n as G, E as j, r as Q, j as Y } from "./form-element-classes-BtKlobUX.js";
|
|
12
|
+
import { u as z } from "./use-dropdown-option-class-name-BFHRYpVL.js";
|
|
13
13
|
const J = "00000000-0000-0000-0000-000000000000", K = (e) => {
|
|
14
|
-
const { actions: r } = A(), { t:
|
|
14
|
+
const { actions: r } = A(), { t: C } = b(), { addOther: n, addOtherLabel: p } = e, c = p || C("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
|
}, [
|
|
18
18
|
e.options
|
|
19
|
-
]), O =
|
|
19
|
+
]), O = h((s) => n ? [
|
|
20
20
|
...s,
|
|
21
21
|
{
|
|
22
22
|
value: c,
|
|
@@ -26,13 +26,13 @@ const J = "00000000-0000-0000-0000-000000000000", K = (e) => {
|
|
|
26
26
|
] : s, [
|
|
27
27
|
n,
|
|
28
28
|
c
|
|
29
|
-
]), { isLoading: f, options: l, isEmpty:
|
|
29
|
+
]), { isLoading: f, options: l, isEmpty: D, shouldRender: I, setIsLoading: R, setOptions: _, setIsEmpty: S, processOptions: g } = x({
|
|
30
30
|
fieldType: M.SERVICES_DROPDOWN,
|
|
31
31
|
isEditor: e.isEditor,
|
|
32
32
|
postProcessOptions: O
|
|
33
|
-
}), F =
|
|
33
|
+
}), F = h(async () => {
|
|
34
34
|
if (a.current && (r != null && r.fetchServices) && E.length > 0) {
|
|
35
|
-
a.current = !1,
|
|
35
|
+
a.current = !1, R(!0);
|
|
36
36
|
let s;
|
|
37
37
|
try {
|
|
38
38
|
s = await r.fetchServices({
|
|
@@ -43,37 +43,37 @@ const J = "00000000-0000-0000-0000-000000000000", K = (e) => {
|
|
|
43
43
|
}
|
|
44
44
|
if (s) {
|
|
45
45
|
const m = g(s);
|
|
46
|
-
|
|
46
|
+
S(!n && m.length === 0), _(m);
|
|
47
47
|
} else
|
|
48
48
|
a.current = !0;
|
|
49
|
-
|
|
49
|
+
R(!1);
|
|
50
50
|
}
|
|
51
51
|
}, [
|
|
52
52
|
r,
|
|
53
53
|
E,
|
|
54
54
|
g,
|
|
55
55
|
n,
|
|
56
|
-
|
|
56
|
+
R,
|
|
57
57
|
_,
|
|
58
|
-
|
|
58
|
+
S
|
|
59
59
|
]);
|
|
60
60
|
T(() => {
|
|
61
61
|
if (!e.isEditor && l.length > 0) {
|
|
62
62
|
const s = n ? l.length - 1 : l.length;
|
|
63
|
-
|
|
63
|
+
S(s === 0);
|
|
64
64
|
}
|
|
65
65
|
}, [
|
|
66
66
|
l,
|
|
67
67
|
n,
|
|
68
|
-
|
|
68
|
+
S,
|
|
69
69
|
e.isEditor
|
|
70
70
|
]);
|
|
71
|
-
const v =
|
|
71
|
+
const v = h(() => {
|
|
72
72
|
e.onFocus && e.onFocus(), a.current && F();
|
|
73
73
|
}, [
|
|
74
74
|
F,
|
|
75
75
|
e.onFocus
|
|
76
|
-
]), N =
|
|
76
|
+
]), N = h(
|
|
77
77
|
(s) => {
|
|
78
78
|
e.onChange && e.onChange(s), a.current = !0;
|
|
79
79
|
},
|
|
@@ -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: D,
|
|
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: C } = r, n = V(), 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
|
+
}), D = 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 && !C || !l ? null : /* @__PURE__ */ t.createElement(k.Provider, {
|
|
111
111
|
value: {
|
|
112
|
-
v2:
|
|
112
|
+
v2: D
|
|
113
113
|
}
|
|
114
114
|
}, /* @__PURE__ */ t.createElement(d, null, e));
|
|
115
115
|
};
|
|
@@ -122,23 +122,23 @@ const X = ({ content: e, locale: r }) => /* @__PURE__ */ t.createElement(w, {
|
|
|
122
122
|
content: e,
|
|
123
123
|
locale: r
|
|
124
124
|
}), Z = () => {
|
|
125
|
-
const e = z(
|
|
125
|
+
const e = z(W);
|
|
126
126
|
return /* @__PURE__ */ t.createElement(o, null, /* @__PURE__ */ t.createElement(o.Label, {
|
|
127
|
-
className: u(
|
|
127
|
+
className: u(q, i.label)
|
|
128
128
|
}, /* @__PURE__ */ t.createElement(o.Label.Required, {
|
|
129
|
-
className: u(
|
|
129
|
+
className: u(B, i.requiredMark)
|
|
130
130
|
})), /* @__PURE__ */ t.createElement(o.Trigger, {
|
|
131
131
|
className: u(G, i.input, i.dropdownTrigger)
|
|
132
|
-
}, /* @__PURE__ */ t.createElement(
|
|
132
|
+
}, /* @__PURE__ */ t.createElement(H, {
|
|
133
133
|
className: i.dropdownIcon
|
|
134
134
|
})), /* @__PURE__ */ t.createElement(o.Options, {
|
|
135
|
-
className: u(
|
|
135
|
+
className: u(j, i.selectPopover, i.dropdownPopover)
|
|
136
136
|
}, /* @__PURE__ */ t.createElement(o.Options.Option, {
|
|
137
137
|
className: e
|
|
138
138
|
})), /* @__PURE__ */ t.createElement(o.Error, {
|
|
139
|
-
className: u(
|
|
140
|
-
}, /* @__PURE__ */ t.createElement(
|
|
141
|
-
className: u(
|
|
139
|
+
className: u(Q, i.error)
|
|
140
|
+
}, /* @__PURE__ */ t.createElement(U, null), /* @__PURE__ */ t.createElement(o.Error.Text, null)), /* @__PURE__ */ t.createElement(o.Description, {
|
|
141
|
+
className: u(Y, i.description)
|
|
142
142
|
}, X));
|
|
143
143
|
}, ue = () => /* @__PURE__ */ t.createElement(Z, null);
|
|
144
144
|
export {
|
|
@@ -1,20 +1,20 @@
|
|
|
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 r from "classnames";
|
|
4
|
-
import { F as
|
|
5
|
-
import { u as f } 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-9WmwgGNc.js";
|
|
5
|
+
import { u as f } from "./use-service-options-base-CD1EVWRE.js";
|
|
6
|
+
import { C as n } from "./checkbox-group-field-headless-CrA7Gx2Y.js";
|
|
7
7
|
import { E as F } from "./error-icon-hZxQ6DEy.js";
|
|
8
8
|
import { C as N } from "./checkbox-indicator-module-classes-DhbNznSB.js";
|
|
9
9
|
import { s as a } from "./field-rac.module-DobpyqOd.js";
|
|
10
|
-
import {
|
|
10
|
+
import { C as h, S as b, c as M, e as A, r as v, j as x, d as P } from "./form-element-classes-BtKlobUX.js";
|
|
11
11
|
import { o as _ } from "./options-rac.module-KM-VT_KY.js";
|
|
12
|
-
import { u as T } from "./use-element-state-class-name-
|
|
13
|
-
import { u as k } from "./use-text-input-class-name-
|
|
14
|
-
const
|
|
12
|
+
import { u as T } from "./use-element-state-class-name-De5YnxMK.js";
|
|
13
|
+
import { u as k } from "./use-text-input-class-name-BYwXccvO.js";
|
|
14
|
+
const y = (s) => {
|
|
15
15
|
var C;
|
|
16
16
|
const { isLoading: o, options: i, isEmpty: c, shouldRender: m, setOptions: l, setIsEmpty: E, setHasInitialDataLoaded: p } = f({
|
|
17
|
-
fieldType:
|
|
17
|
+
fieldType: R.SERVICES_MULTI_CHOICE,
|
|
18
18
|
isEditor: s.isEditor
|
|
19
19
|
}), u = (C = s.options) == null ? void 0 : C.every((O) => O.label && O.id);
|
|
20
20
|
return I(() => {
|
|
@@ -35,7 +35,7 @@ const B = (s) => {
|
|
|
35
35
|
shouldRender: m
|
|
36
36
|
};
|
|
37
37
|
}, t = ({ children: s }) => {
|
|
38
|
-
const o = d(), { options: i, isEmpty: c, shouldRender: m } =
|
|
38
|
+
const o = d(), { options: i, isEmpty: c, shouldRender: m } = y(o), l = L(() => ({
|
|
39
39
|
...o,
|
|
40
40
|
options: i
|
|
41
41
|
}), [
|
|
@@ -52,7 +52,7 @@ t.Label = n.Label;
|
|
|
52
52
|
t.Options = n.Options;
|
|
53
53
|
t.Description = n.Description;
|
|
54
54
|
t.Error = n.Error;
|
|
55
|
-
const
|
|
55
|
+
const B = ({ content: s, locale: o }) => /* @__PURE__ */ e.createElement(S, {
|
|
56
56
|
content: s,
|
|
57
57
|
locale: o
|
|
58
58
|
}), H = () => {
|
|
@@ -78,7 +78,7 @@ const y = ({ content: s, locale: o }) => /* @__PURE__ */ e.createElement(R, {
|
|
|
78
78
|
className: r(v, a.error)
|
|
79
79
|
}, /* @__PURE__ */ e.createElement(F, null), /* @__PURE__ */ e.createElement(t.Error.Text, null)), /* @__PURE__ */ e.createElement(t.Description, {
|
|
80
80
|
className: r(x, a.description)
|
|
81
|
-
},
|
|
81
|
+
}, B));
|
|
82
82
|
}, W = () => /* @__PURE__ */ e.createElement(H, null);
|
|
83
83
|
export {
|
|
84
84
|
W as ServicesMultiChoiceRAC
|