@wix/form-elements 1.140.0 → 1.142.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-CBgveDfU.js → appointment-rac-BAwonF75.js} +85 -85
- package/dist/component/{bookings-address-rac-BJqKQGM7.js → bookings-address-rac-xhj2n7jK.js} +1 -1
- package/dist/component/{bookings-email-rac-BEBnQQtI.js → bookings-email-rac-BGjeAwgm.js} +1 -1
- package/dist/component/{bookings-first-name-rac-CcLe5bPh.js → bookings-first-name-rac-l392yYAU.js} +1 -1
- package/dist/component/{bookings-header-rac-C2CRP5vX.js → bookings-header-rac-JwIo7hsJ.js} +1 -1
- package/dist/component/{bookings-last-name-rac-D9EPB2o-.js → bookings-last-name-rac-CJp81BPl.js} +1 -1
- package/dist/component/{bookings-login-bar-rac-DaDoExJQ.js → bookings-login-bar-rac-BiPklGE_.js} +4 -4
- package/dist/component/{bookings-phone-rac-C4rfNh9m.js → bookings-phone-rac-mQfDJGkK.js} +1 -1
- package/dist/component/{bookings-rich-text-rac-CHupwGUy.js → bookings-rich-text-rac-BOfHn2EU.js} +1 -1
- package/dist/component/{checkbox-field-rac-JA4-Un3S.js → checkbox-field-rac-CA6SeM0c.js} +4 -4
- package/dist/component/{checkbox-group-field-headless-ikYtTUSV.js → checkbox-group-field-headless-ChLT0zKA.js} +3 -3
- package/dist/component/{checkbox-group-field-rac-CkkSPle4.js → checkbox-group-field-rac-_Fkre79S.js} +7 -7
- package/dist/component/{checkbox-group-rac-BYXab1TV.js → checkbox-group-rac-esBLJZ6Y.js} +1 -1
- package/dist/component/{checkbox-rac-MsaKpbsM.js → checkbox-rac-C3vXtbJh.js} +1 -1
- package/dist/component/{contacts-address-rac-BG5KM6Mu.js → contacts-address-rac-BuBBBt19.js} +1 -1
- package/dist/component/{contacts-birthdate-rac-CIJtY0ml.js → contacts-birthdate-rac-BMBJeVOK.js} +1 -1
- package/dist/component/{contacts-company-rac-qQxsdn-g.js → contacts-company-rac-CZl168-E.js} +1 -1
- package/dist/component/{contacts-email-rac-Cb_zFMQd.js → contacts-email-rac-CJgVzCns.js} +1 -1
- package/dist/component/{contacts-first-name-rac-L0IsiQmM.js → contacts-first-name-rac-9ZNYKQeb.js} +1 -1
- package/dist/component/{contacts-last-name-rac-BNgF4RBx.js → contacts-last-name-rac-KgylQwHW.js} +1 -1
- package/dist/component/{contacts-phone-rac-BhOsgxwZ.js → contacts-phone-rac-DYr30FLP.js} +1 -1
- package/dist/component/{contacts-position-rac-B2JM9fSY.js → contacts-position-rac-B9BZZ3K9.js} +1 -1
- package/dist/component/{contacts-subscribe-rac-CVSWNhBY.js → contacts-subscribe-rac-DOQb2GLm.js} +1 -1
- package/dist/component/{contacts-tax-id-rac-BtdNdxYS.js → contacts-tax-id-rac-cYE1ehXN.js} +1 -1
- package/dist/component/{date-availability-BVSO1Gbz.js → date-availability-BOKvA8w-.js} +1 -1
- package/dist/component/{date-input-field-rac-DFCPKpI2.js → date-input-field-rac-BwY53gNr.js} +47 -47
- package/dist/component/{date-input-rac-CcC5JdTU.js → date-input-rac-Cgg4QJbB.js} +1 -1
- package/dist/component/{date-picker-field-rac-CAr7r5k3.js → date-picker-field-rac-0Ue6uiCM.js} +5 -5
- package/dist/component/{date-picker-rac-0WEGa3ZQ.js → date-picker-rac-CgICj33f.js} +1 -1
- package/dist/component/{date-time-input-field-rac-DPlFlkrF.js → date-time-input-field-rac-ChRCMk7_.js} +60 -60
- package/dist/component/{date-time-input-rac-c0dm0pdf.js → date-time-input-rac-B8tRZrri.js} +1 -1
- package/dist/component/{dext-checkbox-group-rac-B1db5jv3.js → dext-checkbox-group-rac-B_qjx1QD.js} +2 -2
- package/dist/component/{dext-checkbox-rac-C03w68Ta.js → dext-checkbox-rac-Bw9SyhHA.js} +1 -1
- package/dist/component/{dext-date-picker-rac-DTjysj_k.js → dext-date-picker-rac-Bzn28zNq.js} +1 -1
- package/dist/component/{dext-date-time-input-rac-CnL2o6YR.js → dext-date-time-input-rac-7Cuk3PoA.js} +1 -1
- package/dist/component/{dext-dropdown-rac-CJxC-Wr0.js → dext-dropdown-rac-Md1VI5pc.js} +1 -1
- package/dist/component/{dext-email-rac-CewA7bXc.js → dext-email-rac-DbHwHGKz.js} +1 -1
- package/dist/component/{dext-number-input-rac--_aUE6C8.js → dext-number-input-rac-DIVk3zXL.js} +1 -1
- package/dist/component/{dext-phone-rac-_ObccrwR.js → dext-phone-rac-ZIya63UJ.js} +1 -1
- package/dist/component/{dext-radio-group-rac-DXBCI2mT.js → dext-radio-group-rac-DV1xHkOD.js} +2 -2
- package/dist/component/{dext-rating-input-rac-CS3VY3B3.js → dext-rating-input-rac-YRIYgeT4.js} +1 -1
- package/dist/component/{dext-tags-rac-CyTea3vl.js → dext-tags-rac-DTJ6Pz_x.js} +2 -2
- package/dist/component/{dext-text-area-rac-C_qN16CX.js → dext-text-area-rac-V-d9i95A.js} +1 -1
- package/dist/component/{dext-text-input-rac-DhqfiI_U.js → dext-text-input-rac-ccrundX-.js} +1 -1
- package/dist/component/{dext-url-input-rac-CxI4MbMH.js → dext-url-input-rac-Bd5SZ2U4.js} +1 -1
- package/dist/component/{donation-rac-BZmT89_j.js → donation-rac-BFmpW-3b.js} +23 -23
- package/dist/component/{dropdown-field-headless-CO82AsyC.js → dropdown-field-headless-C2qgeReH.js} +5 -5
- package/dist/component/{dropdown-field-rac-BqPHSq7k.js → dropdown-field-rac-Bj1YSgpT.js} +9 -9
- package/dist/component/{dropdown-rac-pOLj9tRE.js → dropdown-rac-DfdvX5I5.js} +1 -1
- package/dist/component/{ecom-address-rac-DBQ0rVmy.js → ecom-address-rac-DOWNQhhX.js} +1 -1
- package/dist/component/{ecom-subscription-checkbox-rac-BJoMvht8.js → ecom-subscription-checkbox-rac-2ELdC1ql.js} +2 -2
- package/dist/component/{email-input-field-rac-DTqYXW-m.js → email-input-field-rac-CY0U6vEM.js} +34 -34
- package/dist/component/{events-repeater-rac-3gkcVOh6.js → events-repeater-rac-C2oo_RZt.js} +4 -4
- package/dist/component/{events-rsvp-rac-DYMvnjuz.js → events-rsvp-rac-BrimIo0r.js} +8 -8
- package/dist/component/{field-error-headless-CQ8PHjtA.js → field-error-headless-r0fX50xw.js} +1 -1
- package/dist/component/{field-label-headless-BgAx-Enb.js → field-label-headless-D-kCfg8j.js} +1 -1
- package/dist/component/{file-upload-rac-B8TgLoCU.js → file-upload-rac-Beb2BcFK.js} +160 -160
- package/dist/component/{fixed-payment-rac-CRupF7Fu.js → fixed-payment-rac-DGFWYMZG.js} +9 -9
- package/dist/component/{form-BzzldBcB.js → form-DtzwuBIo.js} +296 -293
- package/dist/component/form.js +1 -1
- package/dist/component/{header-field-rac-iFuM4bGC.js → header-field-rac-CVmGSa0E.js} +2 -2
- package/dist/component/{header-rac-CLOeCzLk.js → header-rac-C3AEJmYN.js} +1 -1
- package/dist/component/{image-choice-rac-C6UBnrn3.js → image-choice-rac-Ch-mxLgP.js} +16 -16
- package/dist/component/{index-BHGQWZ7f.js → index-CTn6AQ3A.js} +2 -2
- package/dist/component/{index-CtMQ3oqe.js → index-CmqLlW8X.js} +4 -4
- package/dist/component/{isObjectLike-BVz2g6jF.js → isObjectLike-iyypwAQL.js} +1 -1
- package/dist/component/{multiline-address-field-rac-CKBpkEET.js → multiline-address-field-rac-DJXcb6NG.js} +41 -41
- package/dist/component/{multiline-address-rac-DcGF1aWF.js → multiline-address-rac-DcZgTx1c.js} +1 -1
- package/dist/component/{number-input-field-rac-CODTSfX-.js → number-input-field-rac-W3TqQGhC.js} +20 -20
- package/dist/component/{number-input-rac-ByT6DN8A.js → number-input-rac-CdXigsba.js} +1 -1
- package/dist/component/{password-rac-Bwnpd70V.js → password-rac-Dph6984u.js} +19 -19
- package/dist/component/{payment-input-rac-DmfJZmgO.js → payment-input-rac-D5ARk1lF.js} +23 -23
- package/dist/component/{phone-input-field-rac-B2exX67y.js → phone-input-field-rac-BUfe-B2i.js} +55 -55
- package/dist/component/{phone-rac-9HksdhZY.js → phone-rac-DTiWT1uy.js} +1 -1
- package/dist/component/{product-list-rac-DnhtTpJC.js → product-list-rac-1_Q2JYwH.js} +32 -32
- package/dist/component/{quiz-radio-group-rac-BNVLQ2YS.js → quiz-radio-group-rac-iyBhi0wJ.js} +1 -1
- package/dist/component/{radio-button-module-classes-D2nPj405.js → radio-button-module-classes-DwfobXBe.js} +3 -3
- package/dist/component/{radio-group-field-rac-BT657aHX.js → radio-group-field-rac-BkKNVwMi.js} +8 -8
- package/dist/component/{radio-group-rac-yjr7rBFf.js → radio-group-rac-CH0nkJ8V.js} +1 -1
- package/dist/component/{rating-input-field-rac-DJzVLTkF.js → rating-input-field-rac-CUUUlgZi.js} +27 -27
- package/dist/component/{rating-input-rac-Cpzm_Rbk.js → rating-input-rac-8yEiqBR5.js} +1 -1
- package/dist/component/{rich-content-rac.module-B8WTFbve.js → rich-content-rac.module-DeKU0pwh.js} +1 -1
- package/dist/component/{rich-text-field-rac-DCiBRkow.js → rich-text-field-rac-Cwd-RWTi.js} +2 -2
- package/dist/component/{rich-text-rac-DiP1GwaU.js → rich-text-rac-C5-jPNYP.js} +1 -1
- package/dist/component/{service-dropdown-rac-D5YlC7mU.js → service-dropdown-rac-DBGAnsut.js} +37 -37
- package/dist/component/{services-multi-choice-rac-D5uwtGzk.js → services-multi-choice-rac-CqEoGsuw.js} +12 -12
- package/dist/component/{signature-rac-g7pBfp7A.js → signature-rac-Cq3y66Cr.js} +36 -36
- package/dist/component/{submit-button-rac-WVz4yWjl.js → submit-button-rac-CKM7yUL4.js} +2 -2
- package/dist/component/{tags-field-rac-BS7qlHyA.js → tags-field-rac-CpJ0O9f_.js} +15 -15
- package/dist/component/{tags-rac-CQGlk8GO.js → tags-rac-BPjw67Po.js} +1 -1
- package/dist/component/{text-area-field-rac-B2rsUGoZ.js → text-area-field-rac-BG6MJuIW.js} +16 -16
- package/dist/component/{text-area-rac-CwJXAFKH.js → text-area-rac-BAS4F4VC.js} +1 -1
- package/dist/component/{text-input-field-rac-CiZ83ULN.js → text-input-field-rac-BhMktcEd.js} +5 -5
- package/dist/component/{text-input-headless-C56J6s10.js → text-input-headless-Bpjd70nh.js} +3 -3
- package/dist/component/{text-input-rac-BMSWPbrZ.js → text-input-rac-Bj21XKGA.js} +1 -1
- package/dist/component/{time-input-rac-DrKC1wiN.js → time-input-rac-DBpRHdnX.js} +12 -12
- package/dist/component/{url-input-field-rac-HPvjYmsV.js → url-input-field-rac-B_EMXVWh.js} +11 -11
- package/dist/component/{url-input-rac-gQIszvK3.js → url-input-rac-D0Ck-9KV.js} +1 -1
- package/dist/component/{use-dropdown-option-class-name-nZCgStzg.js → use-dropdown-option-class-name-CkpHwC6t.js} +21 -21
- package/dist/component/{use-dropdown-trigger-class-name-Ba9Ej9xC.js → use-dropdown-trigger-class-name-DmDwpAVn.js} +2 -2
- package/dist/component/{use-element-state-class-name-CEMjabjh.js → use-element-state-class-name-BrgdwHYP.js} +1 -1
- package/dist/component/{use-hoverable-input-class-name-BSiPBu4i.js → use-hoverable-input-class-name-qVo45l-t.js} +2 -2
- package/dist/component/{use-service-options-base-DSkh5Ayp.js → use-service-options-base-Dlqs4p0Z.js} +1 -1
- package/dist/component/use-text-input-class-name-CP2VJOso.js +6 -0
- package/dist/form.d.ts +12 -2
- package/package.json +2 -2
- package/dist/component/use-text-input-class-name-B2pSCrTD.js +0 -6
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import a, { useRef as F, useState as V, useEffect as T, useCallback as B } from "react";
|
|
2
2
|
import { RadioGroup as H, RadioField as k, RadioButton as A, TextField as G, Input as P } from "react-aria-components";
|
|
3
|
-
import { bj as g, bg as $, bt as D, bl as x } from "./form-
|
|
3
|
+
import { bj as g, bg as $, bt as D, bl as x } from "./form-DtzwuBIo.js";
|
|
4
4
|
import { f as d, a as v } from "./find-child-C60k4CxG.js";
|
|
5
|
-
import { D as U, E as j } from "./field-error-headless-
|
|
6
|
-
import { L as M } from "./field-label-headless-
|
|
5
|
+
import { D as U, E as j } from "./field-error-headless-r0fX50xw.js";
|
|
6
|
+
import { L as M } from "./field-label-headless-D-kCfg8j.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;
|
package/dist/component/{radio-group-field-rac-BT657aHX.js → radio-group-field-rac-BkKNVwMi.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-DwfobXBe.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 { R as i, $ as E, W as p, X as R, G as O, u as _, Y as I } from "./form-DtzwuBIo.js";
|
|
8
8
|
import { o as L } from "./options-rac.module-_THNq6Qq.js";
|
|
9
|
-
import { u
|
|
10
|
-
import { u } from "./use-text-input-class-name-
|
|
9
|
+
import { u } from "./use-element-state-class-name-BrgdwHYP.js";
|
|
10
|
+
import { u as N } from "./use-text-input-class-name-CP2VJOso.js";
|
|
11
11
|
const D = ({ content: o, locale: l }) => /* @__PURE__ */ e.createElement(m, {
|
|
12
12
|
content: o,
|
|
13
13
|
locale: l
|
|
14
14
|
}), G = () => {
|
|
15
|
-
const o =
|
|
15
|
+
const o = u({
|
|
16
16
|
globalClasses: I,
|
|
17
17
|
moduleClasses: n
|
|
18
|
-
}), l =
|
|
18
|
+
}), l = N();
|
|
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,11 +31,11 @@ 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(R, 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(O, 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
|
}, D));
|
package/dist/component/{rating-input-field-rac-DJzVLTkF.js → rating-input-field-rac-CUUUlgZi.js}
RENAMED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { RicosViewer as
|
|
1
|
+
import { RicosViewer as y } from "@wix/ricos/viewer";
|
|
2
2
|
import u from "classnames";
|
|
3
|
-
import e, { useCallback as
|
|
4
|
-
import { bj as I, bg as v, bt as T,
|
|
3
|
+
import e, { useCallback as N, useState as O, useRef as A } from "react";
|
|
4
|
+
import { bj as I, bg as v, bt as T, R as H, $ as M, Z as w, G as B, u as P, _ as G } from "./form-DtzwuBIo.js";
|
|
5
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
|
|
8
|
-
import { L as
|
|
9
|
-
import { E as
|
|
7
|
+
import { D as Z, E as j } from "./field-error-headless-r0fX50xw.js";
|
|
8
|
+
import { L as z } from "./field-label-headless-D-kCfg8j.js";
|
|
9
|
+
import { E as Q } from "./error-icon-hZxQ6DEy.js";
|
|
10
10
|
import { s as g } from "./field-rac.module-DfEb7pBp.js";
|
|
11
|
-
import { u as
|
|
11
|
+
import { u as $ } from "./use-element-state-class-name-BrgdwHYP.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: R, FieldLayout: C } = I(), { labelId: _ } = v(), L = N((D) => i(Number(D)), [
|
|
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
|
-
return /* @__PURE__ */ e.createElement(
|
|
16
|
+
return /* @__PURE__ */ e.createElement(C, {
|
|
17
17
|
fieldId: n,
|
|
18
18
|
renderLabel: () => f,
|
|
19
19
|
renderInput: () => /* @__PURE__ */ e.createElement(q, {
|
|
@@ -25,13 +25,13 @@ const t = ({ children: a }) => {
|
|
|
25
25
|
isRequired: d,
|
|
26
26
|
isInvalid: c,
|
|
27
27
|
onBlur: o,
|
|
28
|
-
onFocus:
|
|
28
|
+
onFocus: R,
|
|
29
29
|
orientation: "horizontal"
|
|
30
30
|
}, s),
|
|
31
31
|
renderDescription: () => /* @__PURE__ */ e.createElement(e.Fragment, null, h, S)
|
|
32
32
|
});
|
|
33
33
|
}, b = ({ children: a, className: n, getReactionLabel: r }) => {
|
|
34
|
-
const { value: i, readOnly: l, hasError: m } = I(), { inputId: d, ariaDescribedBy: c } = v(), [o,
|
|
34
|
+
const { value: i, readOnly: l, hasError: m } = I(), { inputId: d, ariaDescribedBy: c } = v(), [o, R] = O(), C = A(null), _ = E(a, b.Rating), L = [
|
|
35
35
|
"1",
|
|
36
36
|
"2",
|
|
37
37
|
"3",
|
|
@@ -39,7 +39,7 @@ const t = ({ children: a }) => {
|
|
|
39
39
|
"5"
|
|
40
40
|
], f = (s) => o && !l ? o >= s : !!i && i >= Number(s);
|
|
41
41
|
return /* @__PURE__ */ e.createElement("div", {
|
|
42
|
-
ref:
|
|
42
|
+
ref: C,
|
|
43
43
|
id: d,
|
|
44
44
|
"aria-describedby": c,
|
|
45
45
|
className: n,
|
|
@@ -49,10 +49,10 @@ const t = ({ children: a }) => {
|
|
|
49
49
|
key: s,
|
|
50
50
|
value: s,
|
|
51
51
|
isSelected: f(s),
|
|
52
|
-
onHoverChange: (S) =>
|
|
52
|
+
onHoverChange: (S) => R(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,
|
|
@@ -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
|
-
t.Label =
|
|
86
|
+
t.Label = z;
|
|
87
87
|
t.Ratings = b;
|
|
88
88
|
t.Rating = F;
|
|
89
|
-
t.Description =
|
|
90
|
-
t.Error =
|
|
91
|
-
const
|
|
89
|
+
t.Description = Z;
|
|
90
|
+
t.Error = j;
|
|
91
|
+
const K = (a) => /* @__PURE__ */ e.createElement("svg", {
|
|
92
92
|
viewBox: "0 0 32 32",
|
|
93
93
|
width: 32,
|
|
94
94
|
height: 32,
|
|
@@ -98,12 +98,12 @@ const Z = (a) => /* @__PURE__ */ e.createElement("svg", {
|
|
|
98
98
|
}, /* @__PURE__ */ e.createElement("path", {
|
|
99
99
|
fillRule: "evenodd",
|
|
100
100
|
d: "M28.6265,13.6325 C28.9655,13.3015 29.0845,12.8175 28.9385,12.3665 C28.7925,11.9165 28.4105,11.5945 27.9415,11.5265 L20.5785,10.4565 C20.5015,10.4445 20.4345,10.3965 20.4005,10.3275 L17.1075,3.6545 L17.1075,3.6535 C16.8975,3.2295 16.4735,2.9655 16.0005,2.9655 L15.9995,2.9655 C15.5255,2.9655 15.1025,3.2295 14.8925,3.6545 L11.5985,10.3275 C11.5645,10.3965 11.4985,10.4445 11.4225,10.4565 L4.0575,11.5265 C3.5895,11.5945 3.2075,11.9165 3.0615,12.3665 C2.9155,12.8175 3.0345,13.3015 3.3735,13.6325 L8.7025,18.8265 C8.7575,18.8805 8.7835,18.9585 8.7705,19.0345 L7.5125,26.3695 C7.4325,26.8355 7.6205,27.2985 8.0035,27.5765 C8.2195,27.7345 8.4735,27.8145 8.7285,27.8145 C8.9245,27.8145 9.1215,27.7665 9.3045,27.6705 L15.8895,24.2085 C15.9595,24.1725 16.0415,24.1725 16.1085,24.2075 L22.6955,27.6705 C23.1155,27.8915 23.6135,27.8555 23.9965,27.5765 C24.3795,27.2985 24.5675,26.8355 24.4875,26.3695 L23.2305,19.0355 C23.2165,18.9585 23.2425,18.8805 23.2975,18.8265 L28.6265,13.6325 Z"
|
|
101
|
-
})),
|
|
102
|
-
ratings:
|
|
103
|
-
rating:
|
|
104
|
-
ratingSelected:
|
|
101
|
+
})), W = "_ratings_a5lgi_1", X = "_rating_a5lgi_1", Y = "_ratingSelected_a5lgi_37", V = "_ratingHover_a5lgi_44", p = {
|
|
102
|
+
ratings: W,
|
|
103
|
+
rating: X,
|
|
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(y, {
|
|
107
107
|
content: a,
|
|
108
108
|
locale: n
|
|
109
109
|
}), te = {
|
|
@@ -111,7 +111,7 @@ const Z = (a) => /* @__PURE__ */ e.createElement("svg", {
|
|
|
111
111
|
selected: p.ratingSelected,
|
|
112
112
|
hover: p.ratingHover
|
|
113
113
|
}, Ee = () => {
|
|
114
|
-
const { t: a } = T(), n =
|
|
114
|
+
const { t: a } = T(), n = $({
|
|
115
115
|
globalClasses: G,
|
|
116
116
|
moduleClasses: te
|
|
117
117
|
});
|
|
@@ -126,9 +126,9 @@ const Z = (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(K, null))), /* @__PURE__ */ e.createElement(t.Error, {
|
|
130
130
|
className: u(B, g.error)
|
|
131
|
-
}, /* @__PURE__ */ e.createElement(
|
|
131
|
+
}, /* @__PURE__ */ e.createElement(Q, 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-B8WTFbve.js → rich-content-rac.module-DeKU0pwh.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import c, { useState as u } from "react";
|
|
2
|
-
import { bj as a, bb as i, bt as T } from "./form-
|
|
2
|
+
import { bj as a, bb as i, bt as T } from "./form-DtzwuBIo.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,7 +1,7 @@
|
|
|
1
1
|
import l from "classnames";
|
|
2
2
|
import e from "react";
|
|
3
|
-
import { bj as m, aw as i, ae as u, aW as R, aZ as T } from "./form-
|
|
4
|
-
import { u as C, R as d, s as g, T as p } from "./rich-content-rac.module-
|
|
3
|
+
import { bj as m, aw as i, ae as u, aW as R, aZ as T } from "./form-DtzwuBIo.js";
|
|
4
|
+
import { u as C, R as d, s as g, T as p } from "./rich-content-rac.module-DeKU0pwh.js";
|
|
5
5
|
const h = {
|
|
6
6
|
colorPalette: T(),
|
|
7
7
|
customStyles: R()
|
package/dist/component/{service-dropdown-rac-D5YlC7mU.js → service-dropdown-rac-DBGAnsut.js}
RENAMED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import o, { useRef as b, useMemo as _, useCallback as C, useEffect as T } from "react";
|
|
2
2
|
import { RicosViewer as w } from "@wix/ricos/viewer";
|
|
3
3
|
import E from "classnames";
|
|
4
|
-
import { bf as P, bt as A, F as M, bj as y, bb as
|
|
5
|
-
import { u as
|
|
6
|
-
import { D as u } from "./dropdown-field-headless-
|
|
7
|
-
import { C as
|
|
8
|
-
import { E as
|
|
9
|
-
import { H as
|
|
4
|
+
import { bf as P, bt as A, F as M, bj as y, bb as x, al as V, R as H, $ as U, x as W, G as k, u as q } from "./form-DtzwuBIo.js";
|
|
5
|
+
import { u as B } from "./use-service-options-base-Dlqs4p0Z.js";
|
|
6
|
+
import { D as u } from "./dropdown-field-headless-C2qgeReH.js";
|
|
7
|
+
import { C as j } from "./chevron-down-icon-CcpVm6B-.js";
|
|
8
|
+
import { E as G } from "./error-icon-hZxQ6DEy.js";
|
|
9
|
+
import { H as Q } from "./custom-focus-class-_483Pkwp.js";
|
|
10
10
|
import { s as a } from "./field-rac.module-DfEb7pBp.js";
|
|
11
|
-
import { u as
|
|
12
|
-
import { u as
|
|
13
|
-
const
|
|
14
|
-
const { actions: t } = P(), { t:
|
|
11
|
+
import { u as Y } from "./use-dropdown-option-class-name-CkpHwC6t.js";
|
|
12
|
+
import { u as $ } from "./use-dropdown-trigger-class-name-DmDwpAVn.js";
|
|
13
|
+
const z = "00000000-0000-0000-0000-000000000000", J = (e) => {
|
|
14
|
+
const { actions: t } = P(), { t: D } = A(), { addOther: n, addOtherLabel: p } = e, c = p || D("add-other.default-other-option-label"), i = b(!0), d = _(() => {
|
|
15
15
|
var s;
|
|
16
16
|
return ((s = e.options) == null ? void 0 : s.map((m) => m.id ?? "")) ?? [];
|
|
17
17
|
}, [
|
|
@@ -21,18 +21,18 @@ const J = "00000000-0000-0000-0000-000000000000", K = (e) => {
|
|
|
21
21
|
{
|
|
22
22
|
value: c,
|
|
23
23
|
label: c,
|
|
24
|
-
id:
|
|
24
|
+
id: z
|
|
25
25
|
}
|
|
26
26
|
] : s, [
|
|
27
27
|
n,
|
|
28
28
|
c
|
|
29
|
-
]), { isLoading: f, options: l, isEmpty:
|
|
29
|
+
]), { isLoading: f, options: l, isEmpty: h, shouldRender: I, setIsLoading: S, setOptions: R, setIsEmpty: g, processOptions: F } = B({
|
|
30
30
|
fieldType: M.SERVICES_DROPDOWN,
|
|
31
31
|
isEditor: e.isEditor,
|
|
32
32
|
postProcessOptions: O
|
|
33
|
-
}),
|
|
33
|
+
}), L = C(async () => {
|
|
34
34
|
if (i.current && (t != null && t.fetchServices) && d.length > 0) {
|
|
35
|
-
i.current = !1,
|
|
35
|
+
i.current = !1, S(!0);
|
|
36
36
|
let s;
|
|
37
37
|
try {
|
|
38
38
|
s = await t.fetchServices({
|
|
@@ -42,19 +42,19 @@ const J = "00000000-0000-0000-0000-000000000000", K = (e) => {
|
|
|
42
42
|
console.error(m);
|
|
43
43
|
}
|
|
44
44
|
if (s) {
|
|
45
|
-
const m =
|
|
46
|
-
g(!n && m.length === 0),
|
|
45
|
+
const m = F(s);
|
|
46
|
+
g(!n && m.length === 0), R(m);
|
|
47
47
|
} else
|
|
48
48
|
i.current = !0;
|
|
49
|
-
|
|
49
|
+
S(!1);
|
|
50
50
|
}
|
|
51
51
|
}, [
|
|
52
52
|
t,
|
|
53
53
|
d,
|
|
54
|
-
L,
|
|
55
|
-
n,
|
|
56
|
-
D,
|
|
57
54
|
F,
|
|
55
|
+
n,
|
|
56
|
+
S,
|
|
57
|
+
R,
|
|
58
58
|
g
|
|
59
59
|
]);
|
|
60
60
|
T(() => {
|
|
@@ -69,9 +69,9 @@ const J = "00000000-0000-0000-0000-000000000000", K = (e) => {
|
|
|
69
69
|
e.isEditor
|
|
70
70
|
]);
|
|
71
71
|
const N = C(() => {
|
|
72
|
-
e.onFocus && e.onFocus(), i.current &&
|
|
72
|
+
e.onFocus && e.onFocus(), i.current && L();
|
|
73
73
|
}, [
|
|
74
|
-
|
|
74
|
+
L,
|
|
75
75
|
e.onFocus
|
|
76
76
|
]), v = C(
|
|
77
77
|
(s) => {
|
|
@@ -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: h,
|
|
89
89
|
onFocus: N,
|
|
90
90
|
onChange: v,
|
|
91
91
|
shouldRender: I
|
|
92
92
|
};
|
|
93
93
|
}, r = ({ children: e }) => {
|
|
94
|
-
const t = y(), { addOther:
|
|
94
|
+
const t = y(), { addOther: D } = t, n = x(), p = t.isEditor || n.isEditor || n.isComposer, { isLoading: c, options: i, isEmpty: d, onFocus: O, onChange: f, shouldRender: l } = J({
|
|
95
95
|
...t,
|
|
96
96
|
isEditor: p
|
|
97
|
-
}),
|
|
97
|
+
}), h = _(() => ({
|
|
98
98
|
...t,
|
|
99
99
|
options: c ? [] : i,
|
|
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 && d && !
|
|
110
|
+
return !p && d && !D || !l ? null : /* @__PURE__ */ o.createElement(V.Provider, {
|
|
111
111
|
value: {
|
|
112
|
-
v2:
|
|
112
|
+
v2: h
|
|
113
113
|
}
|
|
114
114
|
}, /* @__PURE__ */ o.createElement(u, null, e));
|
|
115
115
|
};
|
|
@@ -118,29 +118,29 @@ r.Trigger = u.Trigger;
|
|
|
118
118
|
r.Options = u.Options;
|
|
119
119
|
r.Description = u.Description;
|
|
120
120
|
r.Error = u.Error;
|
|
121
|
-
const
|
|
121
|
+
const K = ({ content: e, locale: t }) => /* @__PURE__ */ o.createElement(w, {
|
|
122
122
|
content: e,
|
|
123
123
|
locale: t
|
|
124
|
-
}),
|
|
125
|
-
const e =
|
|
124
|
+
}), X = () => {
|
|
125
|
+
const e = $(a.dropdownTrigger), t = Y(Q);
|
|
126
126
|
return /* @__PURE__ */ o.createElement(r, null, /* @__PURE__ */ o.createElement(r.Label, {
|
|
127
127
|
className: E(H, a.label)
|
|
128
128
|
}, /* @__PURE__ */ o.createElement(r.Label.Required, {
|
|
129
129
|
className: E(U, a.requiredMark)
|
|
130
130
|
})), /* @__PURE__ */ o.createElement(r.Trigger, {
|
|
131
131
|
className: e
|
|
132
|
-
}, /* @__PURE__ */ o.createElement(
|
|
132
|
+
}, /* @__PURE__ */ o.createElement(j, {
|
|
133
133
|
className: a.dropdownIcon
|
|
134
134
|
})), /* @__PURE__ */ o.createElement(r.Options, {
|
|
135
|
-
className: E(
|
|
135
|
+
className: E(W, a.selectPopover, a.dropdownPopover)
|
|
136
136
|
}, /* @__PURE__ */ o.createElement(r.Options.Option, {
|
|
137
137
|
className: t
|
|
138
138
|
})), /* @__PURE__ */ o.createElement(r.Error, {
|
|
139
|
-
className: E(
|
|
140
|
-
}, /* @__PURE__ */ o.createElement(
|
|
141
|
-
className: E(
|
|
142
|
-
},
|
|
143
|
-
}, ue = () => /* @__PURE__ */ o.createElement(
|
|
139
|
+
className: E(k, a.error)
|
|
140
|
+
}, /* @__PURE__ */ o.createElement(G, null), /* @__PURE__ */ o.createElement(r.Error.Text, null)), /* @__PURE__ */ o.createElement(r.Description, {
|
|
141
|
+
className: E(q, a.description)
|
|
142
|
+
}, K));
|
|
143
|
+
}, ue = () => /* @__PURE__ */ o.createElement(X, null);
|
|
144
144
|
export {
|
|
145
145
|
ue as ServiceDropdownRAC
|
|
146
146
|
};
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import e, { useEffect as I, useMemo as L } from "react";
|
|
2
|
-
import { RicosViewer as
|
|
2
|
+
import { RicosViewer as R } 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 S, bj as d, al as D, R as F, $ as N, o as f, q as h, G as b, u as M, p as A } from "./form-DtzwuBIo.js";
|
|
5
|
+
import { u as v } from "./use-service-options-base-Dlqs4p0Z.js";
|
|
6
|
+
import { C as i } from "./checkbox-group-field-headless-ChLT0zKA.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-BrgdwHYP.js";
|
|
12
|
+
import { u as k } from "./use-text-input-class-name-CP2VJOso.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: S.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,7 +53,7 @@ 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(R, {
|
|
57
57
|
content: s,
|
|
58
58
|
locale: o
|
|
59
59
|
}), G = () => {
|
|
@@ -62,9 +62,9 @@ const B = ({ content: s, locale: o }) => /* @__PURE__ */ e.createElement(S, {
|
|
|
62
62
|
moduleClasses: P
|
|
63
63
|
}), o = k();
|
|
64
64
|
return /* @__PURE__ */ e.createElement(t, null, /* @__PURE__ */ e.createElement(t.Label, {
|
|
65
|
-
className: a(
|
|
65
|
+
className: a(F, n.label)
|
|
66
66
|
}, /* @__PURE__ */ e.createElement(t.Label.Required, {
|
|
67
|
-
className: a(
|
|
67
|
+
className: a(N, n.requiredMark)
|
|
68
68
|
})), /* @__PURE__ */ e.createElement(t.Options, {
|
|
69
69
|
className: a(f, _.options)
|
|
70
70
|
}, /* @__PURE__ */ e.createElement(t.Options.Option, null, /* @__PURE__ */ e.createElement(t.Options.Option.Checkbox, {
|
|
@@ -80,7 +80,7 @@ const B = ({ content: s, locale: o }) => /* @__PURE__ */ e.createElement(S, {
|
|
|
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
|
+
}, z = () => /* @__PURE__ */ e.createElement(G, null);
|
|
84
84
|
export {
|
|
85
|
-
|
|
85
|
+
z as ServicesMultiChoiceRAC
|
|
86
86
|
};
|