@wix/form-elements 1.151.0 → 1.152.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-D5wp75zN.js → appointment-rac-CjDsESxp.js} +4 -4
- package/dist/component/{bookings-address-rac-CWtYXwpn.js → bookings-address-rac-BWDAieZC.js} +1 -1
- package/dist/component/{bookings-email-rac-BUpRXmbz.js → bookings-email-rac-DoMJ0Cq2.js} +1 -1
- package/dist/component/{bookings-first-name-rac-CnHSxXFN.js → bookings-first-name-rac-Bb0TrNKq.js} +1 -1
- package/dist/component/{bookings-header-rac-BcD45Kgs.js → bookings-header-rac-DvXXEmRp.js} +1 -1
- package/dist/component/{bookings-last-name-rac-VaqfK3bu.js → bookings-last-name-rac-q_zzV8ZS.js} +1 -1
- package/dist/component/{bookings-login-bar-rac-Dv2quJRw.js → bookings-login-bar-rac-USocDYyR.js} +1 -1
- package/dist/component/{bookings-phone-rac-DVOu-9yX.js → bookings-phone-rac-D4JHCrYc.js} +1 -1
- package/dist/component/{bookings-rich-text-rac-SfsoQKeI.js → bookings-rich-text-rac-D5ScrRTy.js} +1 -1
- package/dist/component/{checkbox-field-rac-BHGWuGcT.js → checkbox-field-rac-g9tefDjj.js} +4 -4
- package/dist/component/{checkbox-group-field-headless-KVBLbjKE.js → checkbox-group-field-headless-KeJlwm_s.js} +3 -3
- package/dist/component/{checkbox-group-field-rac-C-WNRuVW.js → checkbox-group-field-rac-C10zjFrB.js} +7 -7
- package/dist/component/{checkbox-group-rac-BMeqtM9H.js → checkbox-group-rac-xrqoPwH0.js} +1 -1
- package/dist/component/{checkbox-rac-WDBiwyvs.js → checkbox-rac-DnUqY4X0.js} +1 -1
- package/dist/component/{contacts-address-rac-CUjhR8Nq.js → contacts-address-rac-CrJJt8Lm.js} +1 -1
- package/dist/component/{contacts-birthdate-rac-BurJLd1V.js → contacts-birthdate-rac-Dj0Z5Dq4.js} +1 -1
- package/dist/component/{contacts-company-rac-y94712hj.js → contacts-company-rac-CfAzWpsO.js} +1 -1
- package/dist/component/{contacts-email-rac-BYzv5pJt.js → contacts-email-rac-DEt_W-OY.js} +1 -1
- package/dist/component/{contacts-first-name-rac-AabYYZTr.js → contacts-first-name-rac-5cge4OTl.js} +1 -1
- package/dist/component/{contacts-last-name-rac-B6GTnMea.js → contacts-last-name-rac-WCJRmxoK.js} +1 -1
- package/dist/component/{contacts-phone-rac-BhGEdh5D.js → contacts-phone-rac-9cJ-XZYq.js} +1 -1
- package/dist/component/{contacts-position-rac-BmbLuomW.js → contacts-position-rac-CFoAC1v-.js} +1 -1
- package/dist/component/{contacts-subscribe-rac-B7SELom1.js → contacts-subscribe-rac-CbqxvKnO.js} +1 -1
- package/dist/component/{contacts-tax-id-rac-BewGatKM.js → contacts-tax-id-rac-Cpy8M_0G.js} +1 -1
- package/dist/component/{date-availability-Cpw7i5-L.js → date-availability-DpP0-dxh.js} +1 -1
- package/dist/component/{date-input-field-rac-JbWzxDzZ.js → date-input-field-rac-DNP0Db4K.js} +6 -6
- package/dist/component/{date-input-rac-v4pNWyuY.js → date-input-rac-5H7z1Sjy.js} +1 -1
- package/dist/component/{date-picker-field-rac-0eLcya58.js → date-picker-field-rac-DviFddKc.js} +6 -6
- package/dist/component/{date-picker-rac-BP4BRWn4.js → date-picker-rac-CxXpSPGD.js} +1 -1
- package/dist/component/{date-time-input-field-rac-Cj0RSJF9.js → date-time-input-field-rac-CRapaca2.js} +6 -6
- package/dist/component/{date-time-input-rac-DyD0SpMV.js → date-time-input-rac-DOMqIa4d.js} +1 -1
- package/dist/component/{dext-checkbox-group-rac-BE9fK7wx.js → dext-checkbox-group-rac-CQPyapQG.js} +2 -2
- package/dist/component/{dext-checkbox-rac-CpB-AVP1.js → dext-checkbox-rac-CW4wF36k.js} +1 -1
- package/dist/component/{dext-date-picker-rac-DkiWY5CE.js → dext-date-picker-rac-DFcrP0ZR.js} +1 -1
- package/dist/component/{dext-date-time-input-rac-CyGIs4uD.js → dext-date-time-input-rac-Cs1Df2AX.js} +1 -1
- package/dist/component/{dext-dropdown-rac-C0GiCpWI.js → dext-dropdown-rac-D0ujCY8A.js} +1 -1
- package/dist/component/{dext-email-rac-Clngd9Lm.js → dext-email-rac-Bh86O-fJ.js} +1 -1
- package/dist/component/{dext-number-input-rac-Boshfkc5.js → dext-number-input-rac-CkPDXgxl.js} +1 -1
- package/dist/component/{dext-phone-rac-AX8R0fDx.js → dext-phone-rac-CGHDBW0d.js} +1 -1
- package/dist/component/{dext-radio-group-rac-VSwdnWPU.js → dext-radio-group-rac-qhuKzhbR.js} +2 -2
- package/dist/component/{dext-rating-input-rac-aspmLO_w.js → dext-rating-input-rac-05wft4wI.js} +1 -1
- package/dist/component/{dext-tags-rac-D4r4j1KZ.js → dext-tags-rac-Ch28_kSN.js} +2 -2
- package/dist/component/{dext-text-area-rac-D8vG4QTK.js → dext-text-area-rac-BpPh9q1K.js} +1 -1
- package/dist/component/{dext-text-input-rac-D19SJhDG.js → dext-text-input-rac-v7pE3sIs.js} +1 -1
- package/dist/component/{dext-url-input-rac-BUAWZX7n.js → dext-url-input-rac-BUyNTatI.js} +1 -1
- package/dist/component/{donation-rac-C4NdOTts.js → donation-rac-lw-dkvAY.js} +5 -5
- package/dist/component/{dropdown-field-headless-CtppkNv5.js → dropdown-field-headless-ttDyqdqW.js} +5 -5
- package/dist/component/{dropdown-field-rac-B6KCsR-j.js → dropdown-field-rac-D4Fvsn8C.js} +5 -5
- package/dist/component/{dropdown-rac-CkFLrcRV.js → dropdown-rac-BvNeMUaH.js} +1 -1
- package/dist/component/{ecom-address-rac-D6asF2b7.js → ecom-address-rac-CeBuZKF4.js} +1 -1
- package/dist/component/{ecom-subscription-checkbox-rac-CFzMl_9G.js → ecom-subscription-checkbox-rac-DvLt1LmK.js} +2 -2
- package/dist/component/{email-input-field-rac-gCsspvxb.js → email-input-field-rac-Dl_USWLL.js} +3 -3
- package/dist/component/{events-repeater-rac-DSrjafwK.js → events-repeater-rac-QJ04thEZ.js} +4 -4
- package/dist/component/{events-rsvp-rac-CMQtNDqE.js → events-rsvp-rac-Ch4lfvZv.js} +3 -3
- package/dist/component/{field-error-headless-Bt2dslWu.js → field-error-headless-CgZAs65K.js} +1 -1
- package/dist/component/{field-label-headless-ZBAhq8nF.js → field-label-headless-CRYxe-vx.js} +1 -1
- package/dist/component/{file-upload-rac-MzPreLKz.js → file-upload-rac-BvjGAd5T.js} +30 -30
- package/dist/component/{fixed-payment-rac-CPWIOJSH.js → fixed-payment-rac-DWNNpt-4.js} +8 -8
- package/dist/component/{form-BrXx-2qp.js → form-DnpFCulG.js} +118 -118
- package/dist/component/form.js +1 -1
- package/dist/component/{header-field-rac-5dkUDBLN.js → header-field-rac-WSnI3a0s.js} +2 -2
- package/dist/component/{header-rac-eXnz2eEI.js → header-rac-BLEwF0wr.js} +1 -1
- package/dist/component/{image-choice-rac-BxmirCog.js → image-choice-rac-CH_bPal9.js} +4 -4
- package/dist/component/{index-Be6_W-02.js → index-YBIt9TAJ.js} +2 -2
- package/dist/component/{index-CCz5mdOt.js → index-euOuJTY1.js} +4 -4
- package/dist/component/{isObjectLike-DhFZRIZ5.js → isObjectLike-YcoeiSLm.js} +1 -1
- package/dist/component/{multiline-address-field-rac-C3Rz-qFR.js → multiline-address-field-rac-CpmwYA8Q.js} +7 -7
- package/dist/component/{multiline-address-rac-BFvxiD8l.js → multiline-address-rac-dp2LSRyG.js} +1 -1
- package/dist/component/{number-input-field-rac-CAuoAgAm.js → number-input-field-rac-CfurrJkz.js} +9 -9
- package/dist/component/{number-input-rac-ZCBaL_D4.js → number-input-rac-BFMTZwmv.js} +1 -1
- package/dist/component/{password-rac-oAAB5Yek.js → password-rac-Wqs-85Q8.js} +6 -6
- package/dist/component/{payment-input-rac-BkVImcPM.js → payment-input-rac-DyY_Wj8U.js} +16 -16
- package/dist/component/{phone-input-field-rac-LReDQaEl.js → phone-input-field-rac-C7KFjyig.js} +202 -202
- package/dist/component/{phone-rac-B4Rv_q9_.js → phone-rac-Bhl7AZcj.js} +1 -1
- package/dist/component/{product-list-rac-CVoJPZH6.js → product-list-rac-B4oybHWH.js} +25 -25
- package/dist/component/{quiz-radio-group-rac-CHXOBaWQ.js → quiz-radio-group-rac-oDweLSYP.js} +1 -1
- package/dist/component/{radio-button-module-classes-G3CPOqV_.js → radio-button-module-classes-CUkou54P.js} +3 -3
- package/dist/component/{radio-group-field-rac-Di8f67l0.js → radio-group-field-rac-BmR0H0UO.js} +8 -8
- package/dist/component/{radio-group-rac-BP4EdSWA.js → radio-group-rac-DY2mnw30.js} +1 -1
- package/dist/component/{rating-input-field-rac-D6nHfXat.js → rating-input-field-rac-DRbFC_V7.js} +15 -15
- package/dist/component/{rating-input-rac-BpTVbrOY.js → rating-input-rac-MtNlX53V.js} +1 -1
- package/dist/component/{rich-content-rac.module-DfNKRJQl.js → rich-content-rac.module-B4fFSQ6R.js} +1 -1
- package/dist/component/{rich-text-field-rac-BZx7O1ln.js → rich-text-field-rac-Dew-awSN.js} +2 -2
- package/dist/component/{rich-text-rac-Bie0rehR.js → rich-text-rac-4G6WBtds.js} +1 -1
- package/dist/component/{service-dropdown-rac-DZgYoLs3.js → service-dropdown-rac-DrKwsL6p.js} +11 -11
- package/dist/component/{services-multi-choice-rac-os7W4s1g.js → services-multi-choice-rac-C5pN_Zck.js} +8 -8
- package/dist/component/{signature-rac-BMRvU0qg.js → signature-rac-8wj8b_im.js} +53 -53
- package/dist/component/{submit-button-rac-BkXQF3FL.js → submit-button-rac-C9tR2MGH.js} +2 -2
- package/dist/component/{tags-field-rac-5GL81x5S.js → tags-field-rac-CEKtxEMx.js} +17 -17
- package/dist/component/{tags-rac-BG4eu5vf.js → tags-rac-fGDFocqq.js} +1 -1
- package/dist/component/{text-area-field-rac-CGtt6YXJ.js → text-area-field-rac-dRdFY5LY.js} +12 -12
- package/dist/component/{text-area-rac-D6aJxM-f.js → text-area-rac-uv8JLQ3Z.js} +1 -1
- package/dist/component/{text-input-field-rac-BUuVi4gl.js → text-input-field-rac--VebbXxr.js} +5 -5
- package/dist/component/{text-input-headless-DG-jyTVD.js → text-input-headless-CtdPYLHv.js} +3 -3
- package/dist/component/{text-input-rac-LVE42SOJ.js → text-input-rac-Wa1Ou8a5.js} +1 -1
- package/dist/component/{time-input-rac-jZ9v7Azv.js → time-input-rac-KYSuxO5P.js} +16 -16
- package/dist/component/{url-input-field-rac-DQ9JerAM.js → url-input-field-rac-Bn6cCoo4.js} +7 -7
- package/dist/component/{url-input-rac-4k06IpF-.js → url-input-rac-BPtRMinM.js} +1 -1
- package/dist/component/{use-dropdown-trigger-class-name-CgNFe8Eg.js → use-dropdown-trigger-class-name-0AI0_olG.js} +3 -3
- package/dist/component/{use-element-state-class-name-B4a4SKmP.js → use-element-state-class-name-nqBrsuxl.js} +1 -1
- package/dist/component/{use-hoverable-input-class-name-DZVkGZvs.js → use-hoverable-input-class-name-KQp9yOph.js} +2 -2
- package/dist/component/{use-is-forced-open-dropdown-ClP9MSlU.js → use-is-forced-open-dropdown-xB31vrZi.js} +1 -1
- package/dist/component/{use-service-options-base-Ch2bF4mk.js → use-service-options-base-SETfl9JT.js} +1 -1
- package/dist/component/use-text-input-class-name-BwCLUlxr.js +6 -0
- package/package.json +3 -3
- package/dist/component/use-text-input-class-name-BQshbjqt.js +0 -6
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import t, { useMemo as K, useCallback as M, useRef as x } from "react";
|
|
2
2
|
import { RicosViewer as $ } from "@wix/ricos/viewer";
|
|
3
3
|
import b from "classnames";
|
|
4
|
-
import { CheckboxField as z, CheckboxButton as G, NumberField as W, Group as X, Button as
|
|
5
|
-
import { bo as U, bl as
|
|
4
|
+
import { CheckboxField as z, CheckboxButton as G, NumberField as W, Group as X, Button as Q, Input as Y } from "react-aria-components";
|
|
5
|
+
import { bo as U, bl as J, bg as V, by as Z, bq as ee, R as te, a0 as ne, S as ae, V as oe, U as re, W as le, H as se, v as ie, T as ce } from "./form-DnpFCulG.js";
|
|
6
6
|
import { f as I, a as f } from "./find-child-C60k4CxG.js";
|
|
7
|
-
import { L as ue, g as me } from "./field-label-headless-
|
|
7
|
+
import { L as ue, g as me } from "./field-label-headless-CRYxe-vx.js";
|
|
8
8
|
import { f as pe } from "./format-currency-BwShJ9vM.js";
|
|
9
|
-
import { D as de, E as Ee } from "./field-error-headless-
|
|
9
|
+
import { D as de, E as Ee } from "./field-error-headless-CgZAs65K.js";
|
|
10
10
|
import { F as ye } from "./fieldset-headless-CD3fds9J.js";
|
|
11
11
|
import { g as _e } from "./payment-field-utils-DobiK5Xh.js";
|
|
12
12
|
import { S as be } from "./selection-indicator-XQ8MYHUQ.js";
|
|
13
13
|
import { E as fe } from "./error-icon-hZxQ6DEy.js";
|
|
14
14
|
import { C as Ie } from "./checkbox-indicator-module-classes-akWZsZNn.js";
|
|
15
15
|
import { s as q } from "./field-rac.module-DP0lkkEv.js";
|
|
16
|
-
import { o as
|
|
17
|
-
import { u as Oe } from "./use-element-state-class-name-
|
|
16
|
+
import { o as j } from "./options-rac.module-_THNq6Qq.js";
|
|
17
|
+
import { u as Oe } from "./use-element-state-class-name-nqBrsuxl.js";
|
|
18
18
|
var Le = /* @__PURE__ */ (function(e) {
|
|
19
19
|
return e.crop = "CROP", e.fit = "FIT", e;
|
|
20
20
|
})({}), k = /* @__PURE__ */ (function(e) {
|
|
@@ -28,9 +28,9 @@ function Ce({ 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: y, onBlur: O, onFocus: s, hasError: u, validation: m, FieldLayout: p } = U(), { inputId: v, labelId: N, ariaDescribedBy: h } =
|
|
31
|
+
const { id: a, value: l, onChange: n, disabled: r, readOnly: c, required: y, onBlur: O, onFocus: s, hasError: u, validation: m, FieldLayout: p } = U(), { inputId: v, labelId: N, ariaDescribedBy: h } = J(), _ = I(e, o.Label), g = I(e, o.Options), T = I(e, o.Description), L = I(e, o.Error), i = K(() => l || [], [
|
|
32
32
|
l
|
|
33
|
-
]),
|
|
33
|
+
]), A = Ce((D = m == null ? void 0 : m.predefined) == null ? void 0 : D.paymentOptions) === k.many, F = M((S, R) => {
|
|
34
34
|
const d = i.filter((H) => H.productId !== S.productId), B = R ? [
|
|
35
35
|
...d,
|
|
36
36
|
S
|
|
@@ -51,26 +51,26 @@ const o = ({ children: e }) => {
|
|
|
51
51
|
onBlur: O,
|
|
52
52
|
onFocus: s
|
|
53
53
|
}, g ? f(g, {
|
|
54
|
-
allowMany:
|
|
54
|
+
allowMany: A,
|
|
55
55
|
productValues: i,
|
|
56
56
|
onProductChange: F,
|
|
57
57
|
disabled: r,
|
|
58
58
|
readOnly: c,
|
|
59
59
|
hasError: u
|
|
60
60
|
}) : null),
|
|
61
|
-
renderDescription: () => /* @__PURE__ */ t.createElement(t.Fragment, null, L,
|
|
61
|
+
renderDescription: () => /* @__PURE__ */ t.createElement(t.Fragment, null, L, T)
|
|
62
62
|
});
|
|
63
63
|
}, w = ({ children: e, className: a, ...l }) => {
|
|
64
64
|
const { allowMany: n, productValues: r, onProductChange: c, disabled: y, readOnly: O, hasError: s } = l, { options: u, validation: m, imageResize: p } = U(), { currency: v } = V(), { t: N } = Z(), h = I(e, o.Option);
|
|
65
65
|
return /* @__PURE__ */ t.createElement("div", {
|
|
66
66
|
className: a
|
|
67
67
|
}, u == null ? void 0 : u.map((_, g) => {
|
|
68
|
-
var C,
|
|
69
|
-
const
|
|
68
|
+
var C, A, F, D, S;
|
|
69
|
+
const T = ((S = (D = (F = (A = (C = m == null ? void 0 : m.predefined) == null ? void 0 : C.paymentOptions) == null ? void 0 : A.products) == null ? void 0 : F.find((R) => R.id === _.value)) == null ? void 0 : D.fixedPriceOptions) == null ? void 0 : S.price) || "0", L = _e(N, v), i = r.find((R) => R.productId === _.value);
|
|
70
70
|
return f(h, {
|
|
71
71
|
key: _.id || _.value || _.label,
|
|
72
72
|
option: _,
|
|
73
|
-
price:
|
|
73
|
+
price: T,
|
|
74
74
|
quantity: i == null ? void 0 : i.quantity,
|
|
75
75
|
isSelected: !!i,
|
|
76
76
|
allowMany: n,
|
|
@@ -84,10 +84,10 @@ const o = ({ children: e }) => {
|
|
|
84
84
|
});
|
|
85
85
|
}));
|
|
86
86
|
}, E = ({ children: e, className: a, ...l }) => {
|
|
87
|
-
const { option: n, price: r, quantity: c = 0, isSelected: y, allowMany: O, onProductChange: s, disabled: u, readOnly: m, hasError: p, currencyAriaLabel: v, imageResize: N, isFirst: h } = l, { id: _ } = U(), g = x(null),
|
|
87
|
+
const { option: n, price: r, quantity: c = 0, isSelected: y, allowMany: O, onProductChange: s, disabled: u, readOnly: m, hasError: p, currencyAriaLabel: v, imageResize: N, isFirst: h } = l, { id: _ } = U(), g = x(null), T = x(null), L = I(e, E.Image), i = I(e, E.Label), C = I(e, E.Price), A = I(e, E.Input), F = I(e, E.Quantity);
|
|
88
88
|
ee(() => {
|
|
89
89
|
var d;
|
|
90
|
-
h && ((d = g.current ??
|
|
90
|
+
h && ((d = g.current ?? T.current) == null || d.focus({
|
|
91
91
|
preventScroll: !0
|
|
92
92
|
}));
|
|
93
93
|
}, _);
|
|
@@ -129,7 +129,7 @@ const o = ({ children: e }) => {
|
|
|
129
129
|
readOnly: m,
|
|
130
130
|
hasError: p,
|
|
131
131
|
ariaLabel: R,
|
|
132
|
-
inputRef: h ?
|
|
132
|
+
inputRef: h ? T : void 0
|
|
133
133
|
}) : null) : /* @__PURE__ */ t.createElement(z, {
|
|
134
134
|
isSelected: y,
|
|
135
135
|
onChange: D,
|
|
@@ -148,7 +148,7 @@ const o = ({ children: e }) => {
|
|
|
148
148
|
label: n.label
|
|
149
149
|
}) : null, C ? f(C, {
|
|
150
150
|
price: r
|
|
151
|
-
}) : null, f(
|
|
151
|
+
}) : null, f(A, {
|
|
152
152
|
isSelected: y,
|
|
153
153
|
isHovered: d,
|
|
154
154
|
isFocused: B
|
|
@@ -208,11 +208,11 @@ const o = ({ children: e }) => {
|
|
|
208
208
|
"data-hook": "product-quantity"
|
|
209
209
|
}, /* @__PURE__ */ t.createElement(X, {
|
|
210
210
|
onKeyDown: m
|
|
211
|
-
}, /* @__PURE__ */ t.createElement(
|
|
211
|
+
}, /* @__PURE__ */ t.createElement(Q, {
|
|
212
212
|
slot: "decrement"
|
|
213
|
-
}, "-"), /* @__PURE__ */ t.createElement(
|
|
213
|
+
}, "-"), /* @__PURE__ */ t.createElement(Y, {
|
|
214
214
|
ref: s
|
|
215
|
-
}), /* @__PURE__ */ t.createElement(
|
|
215
|
+
}), /* @__PURE__ */ t.createElement(Q, {
|
|
216
216
|
slot: "increment"
|
|
217
217
|
}, "+")));
|
|
218
218
|
};
|
|
@@ -227,13 +227,13 @@ o.Options = w;
|
|
|
227
227
|
o.Option = E;
|
|
228
228
|
o.Description = de;
|
|
229
229
|
o.Error = Ee;
|
|
230
|
-
const Se = "_options_1jnru_1", Pe = "_option_1jnru_1", Ne = "_optionInput_1jnru_21", he = "_optionImage_1jnru_32",
|
|
230
|
+
const Se = "_options_1jnru_1", Pe = "_option_1jnru_1", Ne = "_optionInput_1jnru_21", he = "_optionImage_1jnru_32", Te = "_optionLabel_1jnru_66", Ae = "_optionPrice_1jnru_73", qe = "_quantity_1jnru_87", P = {
|
|
231
231
|
options: Se,
|
|
232
232
|
option: Pe,
|
|
233
233
|
optionInput: Ne,
|
|
234
234
|
optionImage: he,
|
|
235
|
-
optionLabel:
|
|
236
|
-
optionPrice:
|
|
235
|
+
optionLabel: Te,
|
|
236
|
+
optionPrice: Ae,
|
|
237
237
|
quantity: qe
|
|
238
238
|
}, ve = ({ content: e, locale: a }) => /* @__PURE__ */ t.createElement($, {
|
|
239
239
|
content: e,
|
|
@@ -248,13 +248,13 @@ const Se = "_options_1jnru_1", Pe = "_option_1jnru_1", Ne = "_optionInput_1jnru_
|
|
|
248
248
|
}, /* @__PURE__ */ t.createElement(o.Label.Required, {
|
|
249
249
|
className: b(ne, q.requiredMark)
|
|
250
250
|
})), /* @__PURE__ */ t.createElement(o.Options, {
|
|
251
|
-
className: b(ae,
|
|
251
|
+
className: b(ae, j.options, P.options)
|
|
252
252
|
}, /* @__PURE__ */ t.createElement(o.Option, {
|
|
253
253
|
className: b(q.checkbox, P.option)
|
|
254
254
|
}, /* @__PURE__ */ t.createElement(o.Option.Image, {
|
|
255
255
|
className: P.optionImage
|
|
256
256
|
}), /* @__PURE__ */ t.createElement(o.Option.Label, {
|
|
257
|
-
className: b(oe,
|
|
257
|
+
className: b(oe, j.optionLabel, P.optionLabel)
|
|
258
258
|
}), /* @__PURE__ */ t.createElement(o.Option.Price, {
|
|
259
259
|
className: b(re, P.optionPrice)
|
|
260
260
|
}), /* @__PURE__ */ t.createElement(o.Option.Input, {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import a, { useRef as F, useState as T, useEffect as B, useCallback as H } from "react";
|
|
2
2
|
import { RadioGroup as k, RadioField as q, RadioButton as A, TextField as G, Input as P } from "react-aria-components";
|
|
3
|
-
import { bo as g, bl as $, by as D, bq as x } from "./form-
|
|
3
|
+
import { bo as g, bl as $, by as D, bq as x } from "./form-DnpFCulG.js";
|
|
4
4
|
import { f as u, a as L } from "./find-child-C60k4CxG.js";
|
|
5
|
-
import { D as U, E as M } from "./field-error-headless-
|
|
6
|
-
import { L as j } from "./field-label-headless-
|
|
5
|
+
import { D as U, E as M } from "./field-error-headless-CgZAs65K.js";
|
|
6
|
+
import { L as j } from "./field-label-headless-CRYxe-vx.js";
|
|
7
7
|
import { S as w } from "./selection-indicator-XQ8MYHUQ.js";
|
|
8
8
|
const v = "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-Di8f67l0.js → radio-group-field-rac-BmR0H0UO.js}
RENAMED
|
@@ -1,14 +1,14 @@
|
|
|
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-CUkou54P.js";
|
|
5
5
|
import { E as c } from "./error-icon-hZxQ6DEy.js";
|
|
6
6
|
import { s as r } from "./field-rac.module-DP0lkkEv.js";
|
|
7
|
-
import {
|
|
7
|
+
import { R as i, a0 as E, X as p, Y as R, H as O, v as _, Z as I } from "./form-DnpFCulG.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-
|
|
11
|
-
const
|
|
9
|
+
import { u as N } from "./use-element-state-class-name-nqBrsuxl.js";
|
|
10
|
+
import { u } from "./use-text-input-class-name-BwCLUlxr.js";
|
|
11
|
+
const D = ({ content: o, locale: l }) => /* @__PURE__ */ e.createElement(m, {
|
|
12
12
|
content: o,
|
|
13
13
|
locale: l
|
|
14
14
|
}), g = () => {
|
|
@@ -31,14 +31,14 @@ const S = ({ 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));
|
|
42
42
|
};
|
|
43
43
|
export {
|
|
44
44
|
g as R
|
package/dist/component/{rating-input-field-rac-D6nHfXat.js → rating-input-field-rac-DRbFC_V7.js}
RENAMED
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { RicosViewer as D } from "@wix/ricos/viewer";
|
|
2
2
|
import u from "classnames";
|
|
3
3
|
import e, { useCallback as N, useState as O, useRef as A } from "react";
|
|
4
|
-
import { bo as v, bl as I, by as H,
|
|
4
|
+
import { bo as v, bl as I, by as H, R as T, a0 as M, _ as w, H as B, v as P, $ as q } from "./form-DnpFCulG.js";
|
|
5
5
|
import { RadioGroup as G, RadioField as k, RadioButton as x } from "react-aria-components";
|
|
6
6
|
import { f as E, a as U } from "./find-child-C60k4CxG.js";
|
|
7
|
-
import { D as z, E as Q } from "./field-error-headless-
|
|
8
|
-
import { L as Z } from "./field-label-headless-
|
|
7
|
+
import { D as z, E as Q } from "./field-error-headless-CgZAs65K.js";
|
|
8
|
+
import { L as Z } from "./field-label-headless-CRYxe-vx.js";
|
|
9
9
|
import { E as $ } from "./error-icon-hZxQ6DEy.js";
|
|
10
10
|
import { s as g } from "./field-rac.module-DP0lkkEv.js";
|
|
11
|
-
import { u as j } from "./use-element-state-class-name-
|
|
11
|
+
import { u as j } from "./use-element-state-class-name-nqBrsuxl.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 } = v(), { labelId: _ } = I(), L = N((y) => i(Number(y)), [
|
|
14
14
|
i
|
|
15
|
-
]),
|
|
16
|
-
return /* @__PURE__ */ e.createElement(
|
|
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(C, {
|
|
17
17
|
fieldId: n,
|
|
18
|
-
renderLabel: () =>
|
|
18
|
+
renderLabel: () => f,
|
|
19
19
|
renderInput: () => /* @__PURE__ */ e.createElement(G, {
|
|
20
20
|
"aria-labelledby": _,
|
|
21
21
|
value: r ? String(r) : void 0,
|
|
@@ -25,21 +25,21 @@ 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
|
-
renderDescription: () => /* @__PURE__ */ e.createElement(e.Fragment, null, h,
|
|
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 } = v(), { inputId: d, ariaDescribedBy: c } = I(), [o,
|
|
34
|
+
const { value: i, readOnly: l, hasError: m } = v(), { inputId: d, ariaDescribedBy: c } = I(), [o, R] = O(), C = A(null), _ = E(a, b.Rating), L = [
|
|
35
35
|
"1",
|
|
36
36
|
"2",
|
|
37
37
|
"3",
|
|
38
38
|
"4",
|
|
39
39
|
"5"
|
|
40
|
-
],
|
|
40
|
+
], f = (s) => o && !l ? o >= s : !!i && i >= Number(s);
|
|
41
41
|
return /* @__PURE__ */ e.createElement("div", {
|
|
42
|
-
ref:
|
|
42
|
+
ref: C,
|
|
43
43
|
id: d,
|
|
44
44
|
"aria-describedby": c,
|
|
45
45
|
className: n,
|
|
@@ -48,8 +48,8 @@ const t = ({ children: a }) => {
|
|
|
48
48
|
}, L.map((s) => U(_, {
|
|
49
49
|
key: s,
|
|
50
50
|
value: s,
|
|
51
|
-
isSelected:
|
|
52
|
-
onHoverChange: (
|
|
51
|
+
isSelected: f(s),
|
|
52
|
+
onHoverChange: (S) => R(S ? s : void 0),
|
|
53
53
|
label: r == null ? void 0 : r(Number(s))
|
|
54
54
|
})));
|
|
55
55
|
}, J = {
|
package/dist/component/{rich-content-rac.module-DfNKRJQl.js → rich-content-rac.module-B4fFSQ6R.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import c, { useState as u } from "react";
|
|
2
|
-
import { bo as a, bg as i, by as T } from "./form-
|
|
2
|
+
import { bo as a, bg as i, by as T } from "./form-DnpFCulG.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 { bo as m, aB as i, aj as u, a$ as R, b2 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 { bo as m, aB as i, aj as u, a$ as R, b2 as T } from "./form-DnpFCulG.js";
|
|
4
|
+
import { u as C, R as d, s as g, T as p } from "./rich-content-rac.module-B4fFSQ6R.js";
|
|
5
5
|
const h = {
|
|
6
6
|
colorPalette: T(),
|
|
7
7
|
customStyles: R()
|
package/dist/component/{service-dropdown-rac-DZgYoLs3.js → service-dropdown-rac-DrKwsL6p.js}
RENAMED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import t, { useRef as T, useMemo as _, useCallback as C, useEffect as b } from "react";
|
|
2
2
|
import { RicosViewer as w } from "@wix/ricos/viewer";
|
|
3
3
|
import E from "classnames";
|
|
4
|
-
import { bk as P, by as A, F as y, bo as M, bg as H, aq as V,
|
|
5
|
-
import { u as B } from "./use-service-options-base-
|
|
6
|
-
import { D as u } from "./dropdown-field-headless-
|
|
4
|
+
import { bk as P, by as A, F as y, bo as M, bg as H, aq as V, R as k, a0 as q, y as x, H as U, v as W } from "./form-DnpFCulG.js";
|
|
5
|
+
import { u as B } from "./use-service-options-base-SETfl9JT.js";
|
|
6
|
+
import { D as u } from "./dropdown-field-headless-ttDyqdqW.js";
|
|
7
7
|
import { C as Q } from "./chevron-down-icon-CcpVm6B-.js";
|
|
8
8
|
import { E as Y } from "./error-icon-hZxQ6DEy.js";
|
|
9
9
|
import { H as j } from "./custom-focus-class-_483Pkwp.js";
|
|
10
10
|
import { s as i } from "./field-rac.module-DP0lkkEv.js";
|
|
11
|
-
import { a as z, u as G } from "./use-dropdown-trigger-class-name-
|
|
11
|
+
import { a as z, u as G } from "./use-dropdown-trigger-class-name-0AI0_olG.js";
|
|
12
12
|
const J = "00000000-0000-0000-0000-000000000000", K = (e) => {
|
|
13
13
|
const { actions: o } = P(), { t: D } = A(), { addOther: n, addOtherLabel: p } = e, c = p || D("add-other.default-other-option-label"), a = T(!0), d = _(() => {
|
|
14
14
|
var s;
|
|
@@ -25,13 +25,13 @@ const J = "00000000-0000-0000-0000-000000000000", K = (e) => {
|
|
|
25
25
|
] : s, [
|
|
26
26
|
n,
|
|
27
27
|
c
|
|
28
|
-
]), { isLoading: f, options: l, isEmpty:
|
|
28
|
+
]), { isLoading: f, options: l, isEmpty: h, shouldRender: I, setIsLoading: S, setOptions: R, setIsEmpty: g, processOptions: F } = B({
|
|
29
29
|
fieldType: y.SERVICES_DROPDOWN,
|
|
30
30
|
isEditor: e.isEditor,
|
|
31
31
|
postProcessOptions: O
|
|
32
32
|
}), L = C(async () => {
|
|
33
33
|
if (a.current && (o != null && o.fetchServices) && d.length > 0) {
|
|
34
|
-
a.current = !1,
|
|
34
|
+
a.current = !1, S(!0);
|
|
35
35
|
let s;
|
|
36
36
|
try {
|
|
37
37
|
s = await o.fetchServices({
|
|
@@ -45,14 +45,14 @@ const J = "00000000-0000-0000-0000-000000000000", K = (e) => {
|
|
|
45
45
|
g(!n && m.length === 0), R(m);
|
|
46
46
|
} else
|
|
47
47
|
a.current = !0;
|
|
48
|
-
|
|
48
|
+
S(!1);
|
|
49
49
|
}
|
|
50
50
|
}, [
|
|
51
51
|
o,
|
|
52
52
|
d,
|
|
53
53
|
F,
|
|
54
54
|
n,
|
|
55
|
-
|
|
55
|
+
S,
|
|
56
56
|
R,
|
|
57
57
|
g
|
|
58
58
|
]);
|
|
@@ -84,7 +84,7 @@ const J = "00000000-0000-0000-0000-000000000000", K = (e) => {
|
|
|
84
84
|
return {
|
|
85
85
|
isLoading: f,
|
|
86
86
|
options: l,
|
|
87
|
-
isEmpty:
|
|
87
|
+
isEmpty: h,
|
|
88
88
|
onFocus: v,
|
|
89
89
|
onChange: N,
|
|
90
90
|
shouldRender: I
|
|
@@ -93,7 +93,7 @@ const J = "00000000-0000-0000-0000-000000000000", K = (e) => {
|
|
|
93
93
|
const o = M(), { addOther: D } = o, n = H(), p = o.isEditor || n.isEditor || n.isComposer, { isLoading: c, options: a, isEmpty: d, onFocus: O, onChange: f, shouldRender: l } = K({
|
|
94
94
|
...o,
|
|
95
95
|
isEditor: p
|
|
96
|
-
}),
|
|
96
|
+
}), h = _(() => ({
|
|
97
97
|
...o,
|
|
98
98
|
options: c ? [] : a,
|
|
99
99
|
isLoading: c,
|
|
@@ -108,7 +108,7 @@ const J = "00000000-0000-0000-0000-000000000000", K = (e) => {
|
|
|
108
108
|
]);
|
|
109
109
|
return !p && d && !D || !l ? null : /* @__PURE__ */ t.createElement(V.Provider, {
|
|
110
110
|
value: {
|
|
111
|
-
v2:
|
|
111
|
+
v2: h
|
|
112
112
|
}
|
|
113
113
|
}, /* @__PURE__ */ t.createElement(u, null, e));
|
|
114
114
|
};
|
|
@@ -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, bo as d, aq as D, R as F, a0 as N, o as f, q as h, H as b, v as M, p as A } from "./form-DnpFCulG.js";
|
|
5
|
+
import { u as v } from "./use-service-options-base-SETfl9JT.js";
|
|
6
|
+
import { C as i } from "./checkbox-group-field-headless-KeJlwm_s.js";
|
|
7
7
|
import { E as x } from "./error-icon-hZxQ6DEy.js";
|
|
8
8
|
import { C as P } from "./checkbox-indicator-module-classes-akWZsZNn.js";
|
|
9
9
|
import { s as n } from "./field-rac.module-DP0lkkEv.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-nqBrsuxl.js";
|
|
12
|
+
import { u as k } from "./use-text-input-class-name-BwCLUlxr.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
|
}), H = () => {
|