@wix/form-elements 1.241.0 → 1.243.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-CHG0WqmP.js → appointment-rac-D-dMrhRb.js} +43 -43
- package/dist/component/{bookings-address-rac-0gam8j7s.js → bookings-address-rac-B6aQ4P5I.js} +1 -1
- package/dist/component/{bookings-email-rac-DZlulUCa.js → bookings-email-rac-Bh849hrc.js} +1 -1
- package/dist/component/{bookings-first-name-rac-U4MHsWd1.js → bookings-first-name-rac-C69Ind1o.js} +1 -1
- package/dist/component/{bookings-header-rac-CDJfljEO.js → bookings-header-rac-DGUzMGRj.js} +1 -1
- package/dist/component/{bookings-last-name-rac-DLInE8pT.js → bookings-last-name-rac-Ch9Bm-sr.js} +1 -1
- package/dist/component/{bookings-login-bar-rac-K3m0pn4a.js → bookings-login-bar-rac-CUhHuZm-.js} +1 -1
- package/dist/component/{bookings-phone-rac-CI8wi6GY.js → bookings-phone-rac-BI4PoSu3.js} +1 -1
- package/dist/component/{bookings-rich-text-rac-Bwta9py6.js → bookings-rich-text-rac-B4D2ZCJs.js} +1 -1
- package/dist/component/{checkbox-field-rac-Bs_vJ_oq.js → checkbox-field-rac-zE0dzJYu.js} +81 -81
- package/dist/component/{checkbox-group-field-headless-CwyrCRLc.js → checkbox-group-field-headless-C2x-la-e.js} +44 -44
- package/dist/component/{checkbox-group-field-rac-31RRmAz_.js → checkbox-group-field-rac-iJkQGTiJ.js} +4 -4
- package/dist/component/{checkbox-group-rac-Bz98tGbx.js → checkbox-group-rac-DoK5e4c8.js} +1 -1
- package/dist/component/{checkbox-rac-DFdDAv50.js → checkbox-rac-8i-6GMze.js} +1 -1
- package/dist/component/{contacts-address-rac-Ct5QNUdV.js → contacts-address-rac-CHcRQBjy.js} +1 -1
- package/dist/component/{contacts-birthdate-rac-BUHd4cCk.js → contacts-birthdate-rac-CkSsvQ6R.js} +1 -1
- package/dist/component/{contacts-company-rac-CI_d3IHw.js → contacts-company-rac-CIsmil8s.js} +1 -1
- package/dist/component/{contacts-email-rac-CCbpBKs9.js → contacts-email-rac-AEvRJfWd.js} +1 -1
- package/dist/component/{contacts-first-name-rac-FBUDLP8v.js → contacts-first-name-rac-CLSJ2cna.js} +1 -1
- package/dist/component/{contacts-last-name-rac-BSNrn4eb.js → contacts-last-name-rac-o59dmvVn.js} +1 -1
- package/dist/component/{contacts-phone-rac-CsrFVsq6.js → contacts-phone-rac-jh-YSD-N.js} +1 -1
- package/dist/component/{contacts-position-rac-2gwTiIIo.js → contacts-position-rac-Ak4X2gV_.js} +1 -1
- package/dist/component/{contacts-subscribe-rac-DucA9CDH.js → contacts-subscribe-rac-By9Bk1YL.js} +1 -1
- package/dist/component/{contacts-tax-id-rac-LcMf98te.js → contacts-tax-id-rac-B1enZgKk.js} +1 -1
- package/dist/component/{date-availability-Bt56LTk9.js → date-availability--3J2b6Ur.js} +1 -1
- package/dist/component/{date-input-field-rac-DhJqiwKI.js → date-input-field-rac-BFt0DKA9.js} +66 -66
- package/dist/component/{date-input-rac-BISvPvDp.js → date-input-rac-D8BA8S1A.js} +1 -1
- package/dist/component/{date-picker-field-rac-C4I7QrcQ.js → date-picker-field-rac-cwYdVf60.js} +40 -40
- package/dist/component/{date-picker-rac-C3nny4Tu.js → date-picker-rac-B7uR5ZnA.js} +1 -1
- package/dist/component/{date-time-input-field-rac-njri5kye.js → date-time-input-field-rac-PaKyrMb9.js} +98 -98
- package/dist/component/{date-time-input-rac-D9kJRPD-.js → date-time-input-rac-Ck8Edatx.js} +1 -1
- package/dist/component/{dext-checkbox-group-rac-D8cqL9dJ.js → dext-checkbox-group-rac-Cru3Lq4c.js} +2 -2
- package/dist/component/{dext-checkbox-rac-Dd1SbiE4.js → dext-checkbox-rac-wtMsRxly.js} +1 -1
- package/dist/component/{dext-date-picker-rac-C2r-njE7.js → dext-date-picker-rac-B34DtxLN.js} +1 -1
- package/dist/component/{dext-date-time-input-rac-CAqXDbbj.js → dext-date-time-input-rac-BsdfLty5.js} +1 -1
- package/dist/component/{dext-dropdown-rac-B2VPep8Y.js → dext-dropdown-rac-DeZYnwo7.js} +1 -1
- package/dist/component/{dext-email-rac-24Jk1Mrj.js → dext-email-rac-B4GTK5H8.js} +1 -1
- package/dist/component/{dext-number-input-rac-y4ohRhoE.js → dext-number-input-rac-BIyJJ9h0.js} +1 -1
- package/dist/component/{dext-phone-rac-CIKnuUWR.js → dext-phone-rac-lf64Ywlp.js} +1 -1
- package/dist/component/{dext-radio-group-rac-BVcTXiaB.js → dext-radio-group-rac-CGt1_jue.js} +2 -2
- package/dist/component/{dext-rating-input-rac-CZVnCJ70.js → dext-rating-input-rac-CbaW1lxS.js} +1 -1
- package/dist/component/{dext-tags-rac-CnlzoLOp.js → dext-tags-rac-DnHDnzD_.js} +2 -2
- package/dist/component/{dext-text-area-rac-Bx5soEnf.js → dext-text-area-rac-C8DVKWKo.js} +1 -1
- package/dist/component/{dext-text-input-rac-jm659H89.js → dext-text-input-rac-DVl-1SDY.js} +1 -1
- package/dist/component/{dext-url-input-rac-DvdPiREA.js → dext-url-input-rac-CkpAMLF9.js} +1 -1
- package/dist/component/{dismiss-icon-CBZq_OBa.js → dismiss-icon-CwZIlL7w.js} +6 -6
- package/dist/component/{donation-rac-CE4WS0Lx.js → donation-rac-DCNG5ByO.js} +44 -44
- package/dist/component/{dropdown-field-rac-Bhp-OH4C.js → dropdown-field-rac-CVbM-0KX.js} +3 -3
- package/dist/component/{dropdown-rac-s7sa3er0.js → dropdown-rac-CE9IjTvE.js} +1 -1
- package/dist/component/{ecom-address-rac-CSrBFi_H.js → ecom-address-rac-BD_okFDt.js} +1 -1
- package/dist/component/{ecom-subscription-checkbox-rac-BAbbwlHW.js → ecom-subscription-checkbox-rac-C7zdxqra.js} +2 -2
- package/dist/component/{email-input-field-rac-3G3Ozglm.js → email-input-field-rac-CY4wE0eP.js} +35 -35
- package/dist/component/{events-repeater-rac-BUy91Kxs.js → events-repeater-rac-Bh-TBEQG.js} +26 -26
- package/dist/component/{events-rsvp-rac-Gisnded3.js → events-rsvp-rac-BPhzKqUb.js} +3 -3
- package/dist/component/{field-error-headless-piKY_H3-.js → field-error-headless-D3lVhOaC.js} +1 -1
- package/dist/component/{field-label-headless-BueDpCx1.js → field-label-headless-CrZoTwxs.js} +5 -5
- package/dist/component/{file-upload-rac-CSsl-aS9.js → file-upload-rac-DYP83swC.js} +187 -186
- package/dist/component/{fixed-payment-rac-ChzdCJU5.js → fixed-payment-rac-DY7hXK7g.js} +11 -11
- package/dist/component/{form-DcxKWiG2.js → form-DpFQ9uO1.js} +3059 -2934
- package/dist/component/form.css +1 -1
- package/dist/component/form.js +1 -1
- package/dist/component/{header-field-rac-Cs75yckQ.js → header-field-rac-9wOBV_rW.js} +2 -2
- package/dist/component/{header-rac-CtYKxrpl.js → header-rac-gzKNBkq_.js} +1 -1
- package/dist/component/{image-choice-rac-Dmgx9mHc.js → image-choice-rac-B6dvv6Jc.js} +25 -25
- package/dist/component/{index-B6EvjVlP.js → index-CbCZUvYt.js} +2 -2
- package/dist/component/{index-BflhPqlx.js → index-DCl2274b.js} +4 -4
- package/dist/component/{isObjectLike-CgoQvRJK.js → isObjectLike-DDBjMXgH.js} +1 -1
- package/dist/component/{multiline-address-field-rac-Dp0Zf4Kf.js → multiline-address-field-rac-CPkSpMMb.js} +210 -210
- package/dist/component/{multiline-address-rac-C_mO6tFy.js → multiline-address-rac-DCnk-LvE.js} +1 -1
- package/dist/component/{number-input-field-rac-BqtaqBSU.js → number-input-field-rac-Dt0hM2jA.js} +19 -19
- package/dist/component/{number-input-rac-Cuwz2ZQV.js → number-input-rac-pjmjC2-7.js} +1 -1
- package/dist/component/{password-rac-_1CzsKwh.js → password-rac-D9Gmp1yw.js} +32 -32
- package/dist/component/{payment-input-rac-Im0lWoko.js → payment-input-rac-CI78trIl.js} +33 -33
- package/dist/component/{phone-input-field-rac-DWgYXcrE.js → phone-input-field-rac-BCPj6vEP.js} +39 -39
- package/dist/component/{phone-rac-B5Qf61W1.js → phone-rac-FAGNDAR-.js} +1 -1
- package/dist/component/{product-list-rac-C5EK2laJ.js → product-list-rac-D7n9P2wQ.js} +14 -14
- package/dist/component/{quiz-radio-group-rac-CP9zzyH6.js → quiz-radio-group-rac-BO55azn2.js} +1 -1
- package/dist/component/{radio-button-module-classes-CkGrAGkr.js → radio-button-module-classes-BIraDyOu.js} +35 -35
- package/dist/component/{radio-group-field-rac-C_42Fcne.js → radio-group-field-rac-BvUZ-DmS.js} +4 -4
- package/dist/component/{radio-group-rac-CXdbk24Q.js → radio-group-rac-qc0JijX9.js} +1 -1
- package/dist/component/{rating-input-field-rac-DCkEh6Aj.js → rating-input-field-rac-D3u_T_la.js} +18 -18
- package/dist/component/{rating-input-rac-B9A843l0.js → rating-input-rac-CqlPfSQQ.js} +1 -1
- package/dist/component/{rich-content-rac.module-CNC4XD5d.js → rich-content-rac.module-B4TapWZL.js} +9 -9
- package/dist/component/{rich-text-field-rac-5rrd72dQ.js → rich-text-field-rac-LgoEQuKS.js} +4 -4
- package/dist/component/{rich-text-rac-YrwQXZNA.js → rich-text-rac-1IcHKfEb.js} +1 -1
- package/dist/component/{service-dropdown-rac-CQCQPJXB.js → service-dropdown-rac-CMkRaLmg.js} +22 -22
- package/dist/component/{services-multi-choice-rac-CUzXOutN.js → services-multi-choice-rac-DzwHkD-j.js} +7 -7
- package/dist/component/{signature-rac-CCaJeBKX.js → signature-rac-D3X5-ScB.js} +71 -71
- package/dist/component/{submit-button-rac-DGWGdzRU.js → submit-button-rac-BWL76gny.js} +15 -15
- package/dist/component/{tags-field-rac-B_YaA_EP.js → tags-field-rac-BwGeFDfH.js} +24 -24
- package/dist/component/{tags-rac-CF-h7_KF.js → tags-rac-DU7-Kl1T.js} +1 -1
- package/dist/component/{text-area-field-rac-BQ5WJhWG.js → text-area-field-rac-BO_9zG3x.js} +19 -19
- package/dist/component/{text-area-rac-BFWz2X0C.js → text-area-rac-CG7vi5-F.js} +1 -1
- package/dist/component/{text-input-field-rac-Bxv2pGmX.js → text-input-field-rac-FWkVzsiY.js} +3 -3
- package/dist/component/{text-input-headless-B4aiikZS.js → text-input-headless-COFlfx6N.js} +9 -9
- package/dist/component/{text-input-rac-DeQ9w2CC.js → text-input-rac-D_7yUDzw.js} +1 -1
- package/dist/component/{time-input-rac-tu0cnsa5.js → time-input-rac-0Ggsm6qE.js} +24 -24
- package/dist/component/{url-input-field-rac-Cc6cm4so.js → url-input-field-rac-CH7kG_Qf.js} +25 -25
- package/dist/component/{url-input-rac-DeKtkN8j.js → url-input-rac-CjBn6ZWh.js} +1 -1
- package/dist/component/{use-dropdown-option-class-name-CkOKrSdx.js → use-dropdown-option-class-name-Cy_iJyiA.js} +2 -2
- package/dist/component/{use-dropdown-trigger-class-name-BPkfvqu4.js → use-dropdown-trigger-class-name-Ddu4_w_z.js} +26 -26
- package/dist/component/{use-element-state-class-name-Cvpi3dBc.js → use-element-state-class-name-DNjpnp27.js} +2 -2
- package/dist/component/{use-hoverable-input-class-name-rCSXDYsL.js → use-hoverable-input-class-name-Wy3Ujp2_.js} +2 -2
- package/dist/component/{use-is-forced-open-dropdown-CX5XR5lo.js → use-is-forced-open-dropdown-Vu0JjNY7.js} +4 -4
- package/dist/component/{use-native-mobile-input-CVBv_Asv.js → use-native-mobile-input-l8hf9N2p.js} +3 -3
- package/dist/component/{use-service-options-base-BnjbDbkj.js → use-service-options-base-Di4c__b_.js} +3 -3
- package/dist/component/use-text-input-class-name-BBZXre-_.js +6 -0
- package/package.json +2 -2
- package/dist/component/use-text-input-class-name-wxGkp-sq.js +0 -6
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import t, { useMemo as
|
|
1
|
+
import t, { useMemo as K, useCallback as v, useRef as x } from "react";
|
|
2
2
|
import { RicosViewer as $ } from "@wix/ricos/viewer";
|
|
3
3
|
import y from "classnames";
|
|
4
|
-
import { CheckboxField as z, CheckboxButton as X, NumberField as Y, Group as
|
|
5
|
-
import {
|
|
4
|
+
import { CheckboxField as z, CheckboxButton as X, NumberField as Y, Group as Z, Button as Q, Input as j } from "react-aria-components";
|
|
5
|
+
import { bO as U, bL as J, bG as V, bZ as W, bQ as ee, X as te, am as ne, a6 as ae, a7 as oe, aa as re, a9 as le, ab as se, M as ie, I as ce, a8 as ue } from "./form-DpFQ9uO1.js";
|
|
6
6
|
import { f, a as b } from "./find-child-C60k4CxG.js";
|
|
7
|
-
import { L as me, g as pe } from "./field-label-headless-
|
|
7
|
+
import { L as me, g as pe } from "./field-label-headless-CrZoTwxs.js";
|
|
8
8
|
import { f as de } from "./format-currency-BwShJ9vM.js";
|
|
9
|
-
import { D as Ee, E as _e } from "./field-error-headless-
|
|
9
|
+
import { D as Ee, E as _e } from "./field-error-headless-D3lVhOaC.js";
|
|
10
10
|
import { F as ye } from "./fieldset-headless-CD3fds9J.js";
|
|
11
11
|
import { g as Ie } from "./payment-field-utils-DobiK5Xh.js";
|
|
12
12
|
import { S as be } from "./selection-indicator-XQ8MYHUQ.js";
|
|
@@ -14,7 +14,7 @@ import { E as fe } from "./error-icon-hZxQ6DEy.js";
|
|
|
14
14
|
import { C as Le } from "./checkbox-indicator-module-classes-Cozvs_kk.js";
|
|
15
15
|
import { s as A } from "./field-rac.module-D0QzJXUv.js";
|
|
16
16
|
import { o as w } from "./options-rac.module-_THNq6Qq.js";
|
|
17
|
-
import { u as Oe } from "./use-element-state-class-name-
|
|
17
|
+
import { u as Oe } from "./use-element-state-class-name-DNjpnp27.js";
|
|
18
18
|
var Ce = /* @__PURE__ */ (function(e) {
|
|
19
19
|
return e.crop = "CROP", e.fit = "FIT", e;
|
|
20
20
|
})({}), k = /* @__PURE__ */ (function(e) {
|
|
@@ -28,10 +28,10 @@ function Re({ maxItems: e, products: a } = {}) {
|
|
|
28
28
|
}
|
|
29
29
|
const o = ({ children: e }) => {
|
|
30
30
|
var D;
|
|
31
|
-
const { id: a, value: l, onChange: n, disabled: r, readOnly: c, required: _, onBlur: L, onFocus: s, hasError: u, validation: m, FieldLayout: p } = U(), { inputId: M, labelId: N, ariaDescribedBy: h } =
|
|
31
|
+
const { id: a, value: l, onChange: n, disabled: r, readOnly: c, required: _, onBlur: L, onFocus: s, hasError: u, validation: m, FieldLayout: p } = U(), { inputId: M, labelId: N, ariaDescribedBy: h } = J(), I = f(e, o.Label), g = f(e, o.Options), q = f(e, o.Description), O = f(e, o.Error), i = K(() => l || [], [
|
|
32
32
|
l
|
|
33
33
|
]), T = Re((D = m == null ? void 0 : m.predefined) == null ? void 0 : D.paymentOptions) === k.many, F = v((S, R) => {
|
|
34
|
-
const d = i.filter((
|
|
34
|
+
const d = i.filter((H) => H.productId !== S.productId), B = R ? [
|
|
35
35
|
...d,
|
|
36
36
|
S
|
|
37
37
|
] : d;
|
|
@@ -60,8 +60,8 @@ const o = ({ children: e }) => {
|
|
|
60
60
|
}) : null),
|
|
61
61
|
renderDescription: () => /* @__PURE__ */ t.createElement(t.Fragment, null, O, q)
|
|
62
62
|
});
|
|
63
|
-
},
|
|
64
|
-
const { allowMany: n, productValues: r, onProductChange: c, disabled: _, readOnly: L, hasError: s } = l, { options: u, validation: m, imageResize: p } = U(), { currency: M } = V(), { t: N } =
|
|
63
|
+
}, G = ({ children: e, className: a, ...l }) => {
|
|
64
|
+
const { allowMany: n, productValues: r, onProductChange: c, disabled: _, readOnly: L, hasError: s } = l, { options: u, validation: m, imageResize: p } = U(), { currency: M } = V(), { t: N } = W(), h = f(e, o.Option);
|
|
65
65
|
return /* @__PURE__ */ t.createElement("div", {
|
|
66
66
|
className: a
|
|
67
67
|
}, u == null ? void 0 : u.map((I, g) => {
|
|
@@ -206,11 +206,11 @@ const o = ({ children: e }) => {
|
|
|
206
206
|
"aria-label": L,
|
|
207
207
|
className: e,
|
|
208
208
|
"data-hook": "product-quantity"
|
|
209
|
-
}, /* @__PURE__ */ t.createElement(
|
|
209
|
+
}, /* @__PURE__ */ t.createElement(Z, {
|
|
210
210
|
onKeyDown: m
|
|
211
211
|
}, /* @__PURE__ */ t.createElement(Q, {
|
|
212
212
|
slot: "decrement"
|
|
213
|
-
}, "-"), /* @__PURE__ */ t.createElement(
|
|
213
|
+
}, "-"), /* @__PURE__ */ t.createElement(j, {
|
|
214
214
|
ref: s
|
|
215
215
|
}), /* @__PURE__ */ t.createElement(Q, {
|
|
216
216
|
slot: "increment"
|
|
@@ -221,9 +221,9 @@ E.Label = Fe;
|
|
|
221
221
|
E.Price = De;
|
|
222
222
|
E.Input = be;
|
|
223
223
|
E.Quantity = Se;
|
|
224
|
-
|
|
224
|
+
G.Option = E;
|
|
225
225
|
o.Label = me;
|
|
226
|
-
o.Options =
|
|
226
|
+
o.Options = G;
|
|
227
227
|
o.Option = E;
|
|
228
228
|
o.Description = Ee;
|
|
229
229
|
o.Error = _e;
|
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import l, { useRef as D, useEffect as
|
|
1
|
+
import l, { useRef as D, useEffect as N, useState as A, useCallback as H } from "react";
|
|
2
2
|
import { RadioGroup as w, RadioField as q, RadioButton as G, TextField as $, Input as x } from "react-aria-components";
|
|
3
|
-
import {
|
|
4
|
-
import { f as d, a as
|
|
5
|
-
import { D as
|
|
6
|
-
import { L as
|
|
7
|
-
import { S as
|
|
8
|
-
const
|
|
3
|
+
import { bO as R, bL as U, bX as K, bZ as P, bQ as M } from "./form-DpFQ9uO1.js";
|
|
4
|
+
import { f as d, a as C } from "./find-child-C60k4CxG.js";
|
|
5
|
+
import { D as Q, E as X } from "./field-error-headless-D3lVhOaC.js";
|
|
6
|
+
import { L as Z } from "./field-label-headless-CrZoTwxs.js";
|
|
7
|
+
import { S as j } from "./selection-indicator-XQ8MYHUQ.js";
|
|
8
|
+
const v = "Other", z = (e, t) => e == null ? void 0 : e.find((a) => (a.value ?? a.label) === t), T = (e, t) => !!t && !z(e, t), J = (e, t) => {
|
|
9
9
|
const r = t ? t.length + 2 : 0;
|
|
10
10
|
return e.slice(r);
|
|
11
11
|
}, c = ({ children: e, className: t }) => {
|
|
12
|
-
const { id: a, value: r, onChange: O, disabled: m, readOnly: E, required: b, onBlur: g, onFocus: f, hasError: s, FieldLayout: u, options: o } = R(), { inputId: h, labelId:
|
|
13
|
-
|
|
14
|
-
const i = d(e, c.Label), I = d(e, c.Options), y = d(e, c.Description), k = d(e, c.Error), B = T(o, r) ?
|
|
12
|
+
const { id: a, value: r, onChange: O, disabled: m, readOnly: E, required: b, onBlur: g, onFocus: f, hasError: s, FieldLayout: u, options: o } = R(), { inputId: h, labelId: L, ariaDescribedBy: _ } = U(), n = D(null);
|
|
13
|
+
K(n);
|
|
14
|
+
const i = d(e, c.Label), I = d(e, c.Options), y = d(e, c.Description), k = d(e, c.Error), B = T(o, r) ? v : r || null;
|
|
15
15
|
return /* @__PURE__ */ l.createElement(u, {
|
|
16
16
|
fieldId: a,
|
|
17
|
-
renderLabel: () =>
|
|
17
|
+
renderLabel: () => C(i, {
|
|
18
18
|
as: "div"
|
|
19
19
|
}),
|
|
20
20
|
renderInput: () => /* @__PURE__ */ l.createElement(w, {
|
|
21
21
|
ref: n,
|
|
22
22
|
id: h,
|
|
23
23
|
className: t,
|
|
24
|
-
"aria-labelledby":
|
|
24
|
+
"aria-labelledby": L,
|
|
25
25
|
"aria-describedby": _,
|
|
26
26
|
value: B,
|
|
27
27
|
onChange: O,
|
|
@@ -34,10 +34,10 @@ const C = "Other", J = (e, t) => e == null ? void 0 : e.find((a) => (a.value ??
|
|
|
34
34
|
}, I),
|
|
35
35
|
renderDescription: () => /* @__PURE__ */ l.createElement(l.Fragment, null, k, y)
|
|
36
36
|
});
|
|
37
|
-
},
|
|
37
|
+
}, W = ({ children: e, className: t }) => {
|
|
38
38
|
const { options: a, addOther: r, addOtherLabel: O, id: m, numberOfColumns: E, hasError: b } = R(), { t: g } = P(), f = d(e, c.Option), s = D(null);
|
|
39
39
|
te();
|
|
40
|
-
const u = O || g("add-other.default-other-option-label") ||
|
|
40
|
+
const u = O || g("add-other.default-other-option-label") || v;
|
|
41
41
|
return M(() => {
|
|
42
42
|
var o;
|
|
43
43
|
(o = s.current) == null || o.focus({
|
|
@@ -47,53 +47,53 @@ const C = "Other", J = (e, t) => e == null ? void 0 : e.find((a) => (a.value ??
|
|
|
47
47
|
className: t,
|
|
48
48
|
"data-columns": E,
|
|
49
49
|
"data-invalid": b
|
|
50
|
-
}, a.map((o, h) =>
|
|
50
|
+
}, a.map((o, h) => C(f, {
|
|
51
51
|
key: o.value ?? o.label,
|
|
52
52
|
value: o.value ?? o.label,
|
|
53
53
|
label: o.label,
|
|
54
54
|
index: h,
|
|
55
55
|
radioRef: h === 0 ? s : void 0
|
|
56
|
-
})), r &&
|
|
57
|
-
key:
|
|
58
|
-
value:
|
|
56
|
+
})), r && C(f, {
|
|
57
|
+
key: v,
|
|
58
|
+
value: v,
|
|
59
59
|
label: u,
|
|
60
60
|
isOther: !0
|
|
61
61
|
}));
|
|
62
62
|
}, p = ({ children: e, className: t, ...a }) => {
|
|
63
63
|
var _;
|
|
64
|
-
const { value: r, label: O, isOther: m = !1, radioRef: E } = a, { value: b, options: g } = R(), f = d(e, p.Label), s = d(e, p.Input), u = d(e, p.Control), o = d(e, p.OtherInput), h = m ? T(g, b) : b === r,
|
|
64
|
+
const { value: r, label: O, isOther: m = !1, radioRef: E } = a, { value: b, options: g } = R(), f = d(e, p.Label), s = d(e, p.Input), u = d(e, p.Control), o = d(e, p.OtherInput), h = m ? T(g, b) : b === r, L = (_ = s == null ? void 0 : s.props) == null ? void 0 : _.className;
|
|
65
65
|
return /* @__PURE__ */ l.createElement("div", {
|
|
66
66
|
className: t
|
|
67
67
|
}, /* @__PURE__ */ l.createElement(q, {
|
|
68
68
|
value: r
|
|
69
69
|
}, /* @__PURE__ */ l.createElement(G, {
|
|
70
70
|
ref: E,
|
|
71
|
-
className:
|
|
72
|
-
}, ({ isSelected: n, isHovered: i, isFocused: I }) => /* @__PURE__ */ l.createElement(l.Fragment, null,
|
|
71
|
+
className: L
|
|
72
|
+
}, ({ isSelected: n, isHovered: i, isFocused: I }) => /* @__PURE__ */ l.createElement(l.Fragment, null, C(u, {
|
|
73
73
|
isSelected: n,
|
|
74
74
|
isHovered: i,
|
|
75
75
|
isFocused: I
|
|
76
|
-
}),
|
|
76
|
+
}), C(f, {
|
|
77
77
|
label: O
|
|
78
78
|
})))), m && h && o);
|
|
79
|
-
},
|
|
79
|
+
}, Y = ({ className: e, ...t }) => {
|
|
80
80
|
const { label: a } = t;
|
|
81
81
|
return /* @__PURE__ */ l.createElement("span", {
|
|
82
82
|
className: e
|
|
83
83
|
}, a);
|
|
84
84
|
}, ee = (e) => null;
|
|
85
|
-
let F = null,
|
|
85
|
+
let F = null, V = !1;
|
|
86
86
|
const te = () => {
|
|
87
|
-
|
|
88
|
-
|
|
87
|
+
N(() => {
|
|
88
|
+
V || (V = !0, document.addEventListener("pointerdown", (e) => {
|
|
89
89
|
F = e.target;
|
|
90
90
|
}, !0), document.addEventListener("keydown", () => {
|
|
91
91
|
F = null;
|
|
92
92
|
}, !0));
|
|
93
93
|
}, []);
|
|
94
94
|
}, oe = ({ className: e }) => {
|
|
95
|
-
const { value: t, onChange: a, addOtherLabel: r, addOtherPlaceholder: O, otherInputCharacterLimit: m, disabled: E, readOnly: b, options: g } = R(), { t: f } = P(), s = D(null), u = T(g, t), o = r || f("add-other.default-other-option-label") ||
|
|
96
|
-
|
|
95
|
+
const { value: t, onChange: a, addOtherLabel: r, addOtherPlaceholder: O, otherInputCharacterLimit: m, disabled: E, readOnly: b, options: g } = R(), { t: f } = P(), s = D(null), u = T(g, t), o = r || f("add-other.default-other-option-label") || v, [h, L] = A(u && t ? J(t, r) : "");
|
|
96
|
+
N(() => {
|
|
97
97
|
const n = s.current, i = n == null ? void 0 : n.closest('[role="radiogroup"]'), I = F;
|
|
98
98
|
if (!u || !n || !i || !I || !i.contains(I) || n.contains(I))
|
|
99
99
|
return;
|
|
@@ -104,7 +104,7 @@ const te = () => {
|
|
|
104
104
|
]);
|
|
105
105
|
const _ = H((n) => {
|
|
106
106
|
let i;
|
|
107
|
-
n ? i = `${r}: ${n}` : i = o, a(i),
|
|
107
|
+
n ? i = `${r}: ${n}` : i = o, a(i), L(n);
|
|
108
108
|
}, [
|
|
109
109
|
a,
|
|
110
110
|
r,
|
|
@@ -123,15 +123,15 @@ const te = () => {
|
|
|
123
123
|
maxLength: m
|
|
124
124
|
}));
|
|
125
125
|
};
|
|
126
|
-
p.Label =
|
|
126
|
+
p.Label = Y;
|
|
127
127
|
p.Input = ee;
|
|
128
|
-
p.Control =
|
|
128
|
+
p.Control = j;
|
|
129
129
|
p.OtherInput = oe;
|
|
130
|
-
c.Label =
|
|
131
|
-
c.Options =
|
|
130
|
+
c.Label = Z;
|
|
131
|
+
c.Options = W;
|
|
132
132
|
c.Option = p;
|
|
133
|
-
c.Description =
|
|
134
|
-
c.Error =
|
|
133
|
+
c.Description = Q;
|
|
134
|
+
c.Error = X;
|
|
135
135
|
const ne = "_labelImage_1u9f2_1", ae = "_option_1u9f2_26", re = "_optionInput_1u9f2_32", le = "_optionControl_1u9f2_50", se = "_optionControlHover_1u9f2_72", ie = "_optionControlSelected_1u9f2_90", ce = "_optionLabel_1u9f2_137", S = {
|
|
136
136
|
labelImage: ne,
|
|
137
137
|
option: ae,
|
package/dist/component/{radio-group-field-rac-C_42Fcne.js → radio-group-field-rac-BvUZ-DmS.js}
RENAMED
|
@@ -1,13 +1,13 @@
|
|
|
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-BIraDyOu.js";
|
|
5
5
|
import { E as c } from "./error-icon-hZxQ6DEy.js";
|
|
6
6
|
import { s as r } from "./field-rac.module-D0QzJXUv.js";
|
|
7
|
-
import { X as i, am as E, ac as p, ad as O, M as R, I as _, ae as I } from "./form-
|
|
7
|
+
import { X as i, am as E, ac as p, ad as O, M as R, I as _, ae as I } from "./form-DpFQ9uO1.js";
|
|
8
8
|
import { o as L } from "./options-rac.module-_THNq6Qq.js";
|
|
9
|
-
import { u as N } from "./use-element-state-class-name-
|
|
10
|
-
import { u } from "./use-text-input-class-name-
|
|
9
|
+
import { u as N } from "./use-element-state-class-name-DNjpnp27.js";
|
|
10
|
+
import { u } from "./use-text-input-class-name-BBZXre-_.js";
|
|
11
11
|
const D = ({ content: o, locale: l }) => /* @__PURE__ */ e.createElement(m, {
|
|
12
12
|
content: o,
|
|
13
13
|
locale: l
|
package/dist/component/{rating-input-field-rac-DCkEh6Aj.js → rating-input-field-rac-D3u_T_la.js}
RENAMED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { RicosViewer as N } from "@wix/ricos/viewer";
|
|
2
2
|
import p from "classnames";
|
|
3
3
|
import e, { useCallback as O, useState as A, useRef as M } from "react";
|
|
4
|
-
import {
|
|
5
|
-
import { RadioGroup as
|
|
6
|
-
import { f as g, a as
|
|
7
|
-
import { D as
|
|
8
|
-
import { L as
|
|
9
|
-
import { E as
|
|
4
|
+
import { bO as F, bL as y, bX as T, bQ as H, bZ as w, X as P, am as B, af as q, M as k, I as G, ag as x } from "./form-DpFQ9uO1.js";
|
|
5
|
+
import { RadioGroup as Q, RadioField as U, RadioButton as X } from "react-aria-components";
|
|
6
|
+
import { f as g, a as Z } from "./find-child-C60k4CxG.js";
|
|
7
|
+
import { D as z, E as K } from "./field-error-headless-D3lVhOaC.js";
|
|
8
|
+
import { L as j } from "./field-label-headless-CrZoTwxs.js";
|
|
9
|
+
import { E as J } from "./error-icon-hZxQ6DEy.js";
|
|
10
10
|
import { s as R } from "./field-rac.module-D0QzJXUv.js";
|
|
11
|
-
import { u as
|
|
11
|
+
import { u as W } from "./use-element-state-class-name-DNjpnp27.js";
|
|
12
12
|
const t = ({ children: a }) => {
|
|
13
13
|
const { id: n, value: s, onChange: d, disabled: l, readOnly: m, required: u, hasError: i, onBlur: o, onFocus: f, FieldLayout: E } = F(), { labelId: L, ariaDescribedBy: S } = y(), b = O((D) => d(Number(D)), [
|
|
14
14
|
d
|
|
@@ -16,7 +16,7 @@ const t = ({ children: a }) => {
|
|
|
16
16
|
return /* @__PURE__ */ e.createElement(E, {
|
|
17
17
|
fieldId: n,
|
|
18
18
|
renderLabel: () => r,
|
|
19
|
-
renderInput: () => /* @__PURE__ */ e.createElement(
|
|
19
|
+
renderInput: () => /* @__PURE__ */ e.createElement(Q, {
|
|
20
20
|
"aria-labelledby": L,
|
|
21
21
|
"aria-describedby": S,
|
|
22
22
|
value: s ? String(s) : void 0,
|
|
@@ -53,14 +53,14 @@ const t = ({ children: a }) => {
|
|
|
53
53
|
className: n,
|
|
54
54
|
"data-invalid": u,
|
|
55
55
|
"data-readonly": m
|
|
56
|
-
}, S.map((r) =>
|
|
56
|
+
}, S.map((r) => Z(L, {
|
|
57
57
|
key: r,
|
|
58
58
|
value: r,
|
|
59
59
|
isSelected: b(r),
|
|
60
60
|
onHoverChange: (c) => f(c ? r : void 0),
|
|
61
61
|
label: s == null ? void 0 : s(Number(r))
|
|
62
62
|
})));
|
|
63
|
-
},
|
|
63
|
+
}, Y = {
|
|
64
64
|
border: 0,
|
|
65
65
|
clipPath: "inset(50%)",
|
|
66
66
|
height: 1,
|
|
@@ -74,7 +74,7 @@ const t = ({ children: a }) => {
|
|
|
74
74
|
const { value: d, isSelected: l, onHoverChange: m, label: u } = s;
|
|
75
75
|
return /* @__PURE__ */ e.createElement(U, {
|
|
76
76
|
value: d
|
|
77
|
-
}, /* @__PURE__ */ e.createElement(
|
|
77
|
+
}, /* @__PURE__ */ e.createElement(X, {
|
|
78
78
|
className: ({ isHovered: i, isFocused: o }) => typeof a == "function" ? a({
|
|
79
79
|
isSelected: l,
|
|
80
80
|
isHovered: i,
|
|
@@ -87,15 +87,15 @@ const t = ({ children: a }) => {
|
|
|
87
87
|
isHovered: i,
|
|
88
88
|
isFocused: o
|
|
89
89
|
}) : n, u ? /* @__PURE__ */ e.createElement("span", {
|
|
90
|
-
style:
|
|
90
|
+
style: Y
|
|
91
91
|
}, u) : null)));
|
|
92
92
|
};
|
|
93
93
|
I.Rating = h;
|
|
94
|
-
t.Label =
|
|
94
|
+
t.Label = j;
|
|
95
95
|
t.Ratings = I;
|
|
96
96
|
t.Rating = h;
|
|
97
|
-
t.Description =
|
|
98
|
-
t.Error =
|
|
97
|
+
t.Description = z;
|
|
98
|
+
t.Error = K;
|
|
99
99
|
const $ = (a) => /* @__PURE__ */ e.createElement("svg", {
|
|
100
100
|
viewBox: "0 0 32 32",
|
|
101
101
|
width: 32,
|
|
@@ -119,12 +119,12 @@ const $ = (a) => /* @__PURE__ */ e.createElement("svg", {
|
|
|
119
119
|
selected: _.ratingSelected,
|
|
120
120
|
hover: _.ratingHover
|
|
121
121
|
}, Ce = () => {
|
|
122
|
-
const { t: a } =
|
|
122
|
+
const { t: a } = w(), n = W({
|
|
123
123
|
globalClasses: x,
|
|
124
124
|
moduleClasses: ne
|
|
125
125
|
});
|
|
126
126
|
return /* @__PURE__ */ e.createElement(t, null, /* @__PURE__ */ e.createElement(t.Label, {
|
|
127
|
-
className: p(
|
|
127
|
+
className: p(P, R.label)
|
|
128
128
|
}, /* @__PURE__ */ e.createElement(t.Label.Required, {
|
|
129
129
|
className: p(B, R.requiredMark)
|
|
130
130
|
})), /* @__PURE__ */ e.createElement(t.Ratings, {
|
|
@@ -136,7 +136,7 @@ const $ = (a) => /* @__PURE__ */ e.createElement("svg", {
|
|
|
136
136
|
className: n
|
|
137
137
|
}, /* @__PURE__ */ e.createElement($, null))), /* @__PURE__ */ e.createElement(t.Error, {
|
|
138
138
|
className: p(k, R.error)
|
|
139
|
-
}, /* @__PURE__ */ e.createElement(
|
|
139
|
+
}, /* @__PURE__ */ e.createElement(J, null), /* @__PURE__ */ e.createElement(t.Error.Text, null)), /* @__PURE__ */ e.createElement(t.Description, {
|
|
140
140
|
className: p(G, R.description)
|
|
141
141
|
}, re));
|
|
142
142
|
};
|
package/dist/component/{rich-content-rac.module-CNC4XD5d.js → rich-content-rac.module-B4TapWZL.js}
RENAMED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import c, { useState as u } from "react";
|
|
2
|
-
import {
|
|
2
|
+
import { bO as i, bG as a, bZ as T } from "./form-DpFQ9uO1.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";
|
|
6
|
-
const
|
|
7
|
-
const { id: t, FieldLayout: n, content: o } =
|
|
6
|
+
const A = ({ children: e }) => {
|
|
7
|
+
const { id: t, FieldLayout: n, content: o } = i(), { language: s } = a();
|
|
8
8
|
return /* @__PURE__ */ c.createElement(n, {
|
|
9
9
|
fieldId: t,
|
|
10
10
|
renderLabel: () => null,
|
|
@@ -24,7 +24,7 @@ const O = ({ children: e }) => {
|
|
|
24
24
|
"data-hook": s
|
|
25
25
|
}, o);
|
|
26
26
|
};
|
|
27
|
-
function
|
|
27
|
+
function B(e, t) {
|
|
28
28
|
const [n, o] = u(!0);
|
|
29
29
|
function s() {
|
|
30
30
|
o((l) => !l);
|
|
@@ -38,12 +38,12 @@ function N(e, t) {
|
|
|
38
38
|
toggleTruncate: s
|
|
39
39
|
};
|
|
40
40
|
}
|
|
41
|
-
const
|
|
42
|
-
richContent:
|
|
41
|
+
const m = "_richContent_mlxdd_2", D = {
|
|
42
|
+
richContent: m
|
|
43
43
|
};
|
|
44
44
|
export {
|
|
45
|
-
|
|
45
|
+
A as R,
|
|
46
46
|
p as T,
|
|
47
|
-
|
|
48
|
-
|
|
47
|
+
D as s,
|
|
48
|
+
B as u
|
|
49
49
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import l from "classnames";
|
|
2
2
|
import e from "react";
|
|
3
|
-
import {
|
|
4
|
-
import { u as C, R as d, s as g, T as p } from "./rich-content-rac.module-
|
|
3
|
+
import { bO as m, aZ as i, aG as u, bo as R, br as T } from "./form-DpFQ9uO1.js";
|
|
4
|
+
import { u as C, R as d, s as g, T as p } from "./rich-content-rac.module-B4TapWZL.js";
|
|
5
5
|
const h = {
|
|
6
6
|
colorPalette: T(),
|
|
7
7
|
customStyles: R()
|
|
8
|
-
},
|
|
8
|
+
}, P = ({ truncate: t = !0 } = {}) => {
|
|
9
9
|
const { content: a, maxShownParagraphs: s } = m(), { displayedContent: n, isTruncated: o, isTruncateButtonShown: r, toggleTruncate: c } = C(a, t ? s : void 0);
|
|
10
10
|
return /* @__PURE__ */ e.createElement(d, null, () => /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(i, {
|
|
11
11
|
className: l(u, g.richContent),
|
|
@@ -17,5 +17,5 @@ const h = {
|
|
|
17
17
|
})));
|
|
18
18
|
};
|
|
19
19
|
export {
|
|
20
|
-
|
|
20
|
+
P as R
|
|
21
21
|
};
|
package/dist/component/{service-dropdown-rac-CQCQPJXB.js → service-dropdown-rac-CMkRaLmg.js}
RENAMED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import t, { useRef as b, useMemo as _, useCallback as C, useEffect as P } from "react";
|
|
2
2
|
import { RicosViewer as A } from "@wix/ricos/viewer";
|
|
3
3
|
import d from "classnames";
|
|
4
|
-
import {
|
|
5
|
-
import { u as
|
|
6
|
-
import { D as m, u as
|
|
4
|
+
import { bK as M, bZ as y, F as V, bO as x, bG as H, aN as U, X as W, am as k, J as q, M as B, I as G } from "./form-DpFQ9uO1.js";
|
|
5
|
+
import { u as J } from "./use-service-options-base-Di4c__b_.js";
|
|
6
|
+
import { D as m, u as F } from "./use-dropdown-trigger-class-name-Ddu4_w_z.js";
|
|
7
7
|
import { C as L } from "./chevron-down-icon-CcpVm6B-.js";
|
|
8
|
-
import { E as
|
|
9
|
-
import { H as
|
|
8
|
+
import { E as K } from "./error-icon-hZxQ6DEy.js";
|
|
9
|
+
import { H as Q } from "./custom-focus-class-_483Pkwp.js";
|
|
10
10
|
import { s as n } from "./field-rac.module-D0QzJXUv.js";
|
|
11
|
-
import { u as
|
|
12
|
-
const
|
|
11
|
+
import { u as X } from "./use-dropdown-option-class-name-Cy_iJyiA.js";
|
|
12
|
+
const Y = "00000000-0000-0000-0000-000000000000", Z = (e) => {
|
|
13
13
|
const { actions: r } = M(), { t: E } = y(), { addOther: a, addOtherLabel: O } = e, c = O || E("add-other.default-other-option-label"), i = b(!0), p = _(() => {
|
|
14
14
|
var s;
|
|
15
15
|
return ((s = e.options) == null ? void 0 : s.map((u) => u.id ?? "")) ?? [];
|
|
@@ -20,16 +20,16 @@ const z = "00000000-0000-0000-0000-000000000000", G = (e) => {
|
|
|
20
20
|
{
|
|
21
21
|
value: c,
|
|
22
22
|
label: c,
|
|
23
|
-
id:
|
|
23
|
+
id: Y
|
|
24
24
|
}
|
|
25
25
|
] : s, [
|
|
26
26
|
a,
|
|
27
27
|
c
|
|
28
|
-
]), { isLoading: f, options: l, isEmpty: D, shouldRender: I, setIsLoading: h, setOptions: N, setIsEmpty: g, processOptions:
|
|
28
|
+
]), { isLoading: f, options: l, isEmpty: D, shouldRender: I, setIsLoading: h, setOptions: N, setIsEmpty: g, processOptions: R } = J({
|
|
29
29
|
fieldType: V.SERVICES_DROPDOWN,
|
|
30
30
|
isEditor: e.isEditor,
|
|
31
31
|
postProcessOptions: S
|
|
32
|
-
}),
|
|
32
|
+
}), v = C(async () => {
|
|
33
33
|
if (i.current && (r != null && r.fetchServices) && p.length > 0) {
|
|
34
34
|
i.current = !1, h(!0);
|
|
35
35
|
let s;
|
|
@@ -41,7 +41,7 @@ const z = "00000000-0000-0000-0000-000000000000", G = (e) => {
|
|
|
41
41
|
console.error(u);
|
|
42
42
|
}
|
|
43
43
|
if (s) {
|
|
44
|
-
const u =
|
|
44
|
+
const u = R(s);
|
|
45
45
|
g(!a && u.length === 0), N(u);
|
|
46
46
|
} else
|
|
47
47
|
i.current = !0;
|
|
@@ -50,7 +50,7 @@ const z = "00000000-0000-0000-0000-000000000000", G = (e) => {
|
|
|
50
50
|
}, [
|
|
51
51
|
r,
|
|
52
52
|
p,
|
|
53
|
-
|
|
53
|
+
R,
|
|
54
54
|
a,
|
|
55
55
|
h,
|
|
56
56
|
N,
|
|
@@ -68,9 +68,9 @@ const z = "00000000-0000-0000-0000-000000000000", G = (e) => {
|
|
|
68
68
|
e.isEditor
|
|
69
69
|
]);
|
|
70
70
|
const w = C(() => {
|
|
71
|
-
e.onFocus && e.onFocus(), i.current &&
|
|
71
|
+
e.onFocus && e.onFocus(), i.current && v();
|
|
72
72
|
}, [
|
|
73
|
-
|
|
73
|
+
v,
|
|
74
74
|
e.onFocus
|
|
75
75
|
]), T = C(
|
|
76
76
|
(s) => {
|
|
@@ -90,7 +90,7 @@ const z = "00000000-0000-0000-0000-000000000000", G = (e) => {
|
|
|
90
90
|
shouldRender: I
|
|
91
91
|
};
|
|
92
92
|
}, o = ({ children: e }) => {
|
|
93
|
-
const r = x(), { addOther: E } = r, a = H(), O = r.isEditor || a.isEditor || a.isComposer, { isLoading: c, options: i, isEmpty: p, onFocus: S, onChange: f, shouldRender: l } =
|
|
93
|
+
const r = x(), { addOther: E } = r, a = H(), O = r.isEditor || a.isEditor || a.isComposer, { isLoading: c, options: i, isEmpty: p, onFocus: S, onChange: f, shouldRender: l } = Z({
|
|
94
94
|
...r,
|
|
95
95
|
isEditor: O
|
|
96
96
|
}), D = _(() => ({
|
|
@@ -118,11 +118,11 @@ o.Options = m.Options;
|
|
|
118
118
|
o.Description = m.Description;
|
|
119
119
|
o.Error = m.Error;
|
|
120
120
|
o.NativeSelect = m.NativeSelect;
|
|
121
|
-
const
|
|
121
|
+
const j = ({ content: e, locale: r }) => /* @__PURE__ */ t.createElement(A, {
|
|
122
122
|
content: e,
|
|
123
123
|
locale: r
|
|
124
|
-
}),
|
|
125
|
-
const e =
|
|
124
|
+
}), z = () => {
|
|
125
|
+
const e = F(n.dropdownTrigger), r = F(n.nativeInput, n.nativeSelect), E = X(Q);
|
|
126
126
|
return /* @__PURE__ */ t.createElement(o, null, /* @__PURE__ */ t.createElement(o.Label, {
|
|
127
127
|
className: d(W, n.label)
|
|
128
128
|
}, /* @__PURE__ */ t.createElement(o.Label.Required, {
|
|
@@ -141,10 +141,10 @@ const K = ({ content: e, locale: r }) => /* @__PURE__ */ t.createElement(A, {
|
|
|
141
141
|
className: E
|
|
142
142
|
})), /* @__PURE__ */ t.createElement(o.Error, {
|
|
143
143
|
className: d(B, n.error)
|
|
144
|
-
}, /* @__PURE__ */ t.createElement(
|
|
145
|
-
className: d(
|
|
146
|
-
},
|
|
147
|
-
}, me = () => /* @__PURE__ */ t.createElement(
|
|
144
|
+
}, /* @__PURE__ */ t.createElement(K, null), /* @__PURE__ */ t.createElement(o.Error.Text, null)), /* @__PURE__ */ t.createElement(o.Description, {
|
|
145
|
+
className: d(G, n.description)
|
|
146
|
+
}, j));
|
|
147
|
+
}, me = () => /* @__PURE__ */ t.createElement(z, null);
|
|
148
148
|
export {
|
|
149
149
|
me as ServiceDropdownRAC
|
|
150
150
|
};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import e, { useEffect as I, useMemo as L } from "react";
|
|
2
2
|
import { RicosViewer as S } from "@wix/ricos/viewer";
|
|
3
3
|
import a from "classnames";
|
|
4
|
-
import { F as R,
|
|
5
|
-
import { u as v } from "./use-service-options-base-
|
|
6
|
-
import { C as i } from "./checkbox-group-field-headless-
|
|
4
|
+
import { F as R, bO as d, aN as D, X as N, am as F, p as f, r as h, M as b, I as M, q as A } from "./form-DpFQ9uO1.js";
|
|
5
|
+
import { u as v } from "./use-service-options-base-Di4c__b_.js";
|
|
6
|
+
import { C as i } from "./checkbox-group-field-headless-C2x-la-e.js";
|
|
7
7
|
import { E as x } from "./error-icon-hZxQ6DEy.js";
|
|
8
8
|
import { C as P } from "./checkbox-indicator-module-classes-Cozvs_kk.js";
|
|
9
9
|
import { s as n } from "./field-rac.module-D0QzJXUv.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-DNjpnp27.js";
|
|
12
|
+
import { u as k } from "./use-text-input-class-name-BBZXre-_.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({
|
|
@@ -41,7 +41,7 @@ const y = (s) => {
|
|
|
41
41
|
r,
|
|
42
42
|
l
|
|
43
43
|
]);
|
|
44
|
-
return !r.isEditor && E || !c ? null : /* @__PURE__ */ e.createElement(
|
|
44
|
+
return !r.isEditor && E || !c ? null : /* @__PURE__ */ e.createElement(D.Provider, {
|
|
45
45
|
value: {
|
|
46
46
|
v2: m
|
|
47
47
|
}
|
|
@@ -62,7 +62,7 @@ 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(N, n.label)
|
|
66
66
|
}, /* @__PURE__ */ e.createElement(t.Label.Required, {
|
|
67
67
|
className: a(F, n.requiredMark)
|
|
68
68
|
})), /* @__PURE__ */ e.createElement(t.Options, {
|