@wix/form-elements 1.151.0 → 1.153.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-D2bigw_H.js} +4 -4
- package/dist/component/{bookings-address-rac-CWtYXwpn.js → bookings-address-rac-Cf05RpIZ.js} +1 -1
- package/dist/component/{bookings-email-rac-BUpRXmbz.js → bookings-email-rac-CT-Kud-p.js} +1 -1
- package/dist/component/{bookings-first-name-rac-CnHSxXFN.js → bookings-first-name-rac-Bs5OyaHY.js} +1 -1
- package/dist/component/{bookings-header-rac-BcD45Kgs.js → bookings-header-rac-Ru9_r2xR.js} +1 -1
- package/dist/component/{bookings-last-name-rac-VaqfK3bu.js → bookings-last-name-rac-DXMPd2Ps.js} +1 -1
- package/dist/component/{bookings-login-bar-rac-Dv2quJRw.js → bookings-login-bar-rac-DnrhCv8K.js} +1 -1
- package/dist/component/{bookings-phone-rac-DVOu-9yX.js → bookings-phone-rac-EGAH9Sj5.js} +1 -1
- package/dist/component/{bookings-rich-text-rac-SfsoQKeI.js → bookings-rich-text-rac-wvJv1HLp.js} +1 -1
- package/dist/component/{checkbox-field-rac-BHGWuGcT.js → checkbox-field-rac-LA2ynBpW.js} +4 -4
- package/dist/component/{checkbox-group-field-headless-KVBLbjKE.js → checkbox-group-field-headless-Be3rHuBy.js} +3 -3
- package/dist/component/{checkbox-group-field-rac-C-WNRuVW.js → checkbox-group-field-rac-cKVBp2Od.js} +7 -7
- package/dist/component/{checkbox-group-rac-BMeqtM9H.js → checkbox-group-rac-DSdh3fge.js} +1 -1
- package/dist/component/{checkbox-rac-WDBiwyvs.js → checkbox-rac-DMSneG1p.js} +1 -1
- package/dist/component/{contacts-address-rac-CUjhR8Nq.js → contacts-address-rac-BqzNSCJr.js} +1 -1
- package/dist/component/{contacts-birthdate-rac-BurJLd1V.js → contacts-birthdate-rac-CNPCgWV_.js} +1 -1
- package/dist/component/{contacts-company-rac-y94712hj.js → contacts-company-rac-DNLgFugB.js} +1 -1
- package/dist/component/{contacts-email-rac-BYzv5pJt.js → contacts-email-rac-DzYtj6U7.js} +1 -1
- package/dist/component/{contacts-first-name-rac-AabYYZTr.js → contacts-first-name-rac-_w-NCWhj.js} +1 -1
- package/dist/component/{contacts-last-name-rac-B6GTnMea.js → contacts-last-name-rac-MO5nwQUf.js} +1 -1
- package/dist/component/{contacts-phone-rac-BhGEdh5D.js → contacts-phone-rac-vp0CnlDj.js} +1 -1
- package/dist/component/{contacts-position-rac-BmbLuomW.js → contacts-position-rac-CNcaPpV5.js} +1 -1
- package/dist/component/{contacts-subscribe-rac-B7SELom1.js → contacts-subscribe-rac-ChNW2GDr.js} +1 -1
- package/dist/component/{contacts-tax-id-rac-BewGatKM.js → contacts-tax-id-rac-BpxH95CB.js} +1 -1
- package/dist/component/{date-availability-Cpw7i5-L.js → date-availability-ZWzqCMNY.js} +1 -1
- package/dist/component/{date-input-field-rac-JbWzxDzZ.js → date-input-field-rac-Dd9a7PaB.js} +6 -6
- package/dist/component/{date-input-rac-v4pNWyuY.js → date-input-rac-InYREYth.js} +1 -1
- package/dist/component/{date-picker-field-rac-0eLcya58.js → date-picker-field-rac-unQuEVfi.js} +6 -6
- package/dist/component/{date-picker-rac-BP4BRWn4.js → date-picker-rac-DlLt-suC.js} +1 -1
- package/dist/component/{date-time-input-field-rac-Cj0RSJF9.js → date-time-input-field-rac-DN6FmYST.js} +6 -6
- package/dist/component/{date-time-input-rac-DyD0SpMV.js → date-time-input-rac-BM90MGg0.js} +1 -1
- package/dist/component/{dext-checkbox-group-rac-BE9fK7wx.js → dext-checkbox-group-rac-BUMKcxmc.js} +2 -2
- package/dist/component/{dext-checkbox-rac-CpB-AVP1.js → dext-checkbox-rac-DGanqYnB.js} +1 -1
- package/dist/component/{dext-date-picker-rac-DkiWY5CE.js → dext-date-picker-rac-Vm5LqGKJ.js} +1 -1
- package/dist/component/{dext-date-time-input-rac-CyGIs4uD.js → dext-date-time-input-rac-DPXuw9dZ.js} +1 -1
- package/dist/component/{dext-dropdown-rac-C0GiCpWI.js → dext-dropdown-rac-Cofyuyfi.js} +1 -1
- package/dist/component/{dext-email-rac-Clngd9Lm.js → dext-email-rac-_y8wS7KV.js} +1 -1
- package/dist/component/{dext-number-input-rac-Boshfkc5.js → dext-number-input-rac-ZytCGJrW.js} +1 -1
- package/dist/component/{dext-phone-rac-AX8R0fDx.js → dext-phone-rac-C55xMFUD.js} +1 -1
- package/dist/component/{dext-radio-group-rac-VSwdnWPU.js → dext-radio-group-rac-BBPDyfmw.js} +2 -2
- package/dist/component/{dext-rating-input-rac-aspmLO_w.js → dext-rating-input-rac-BhdcK-GH.js} +1 -1
- package/dist/component/{dext-tags-rac-D4r4j1KZ.js → dext-tags-rac-CI2Xc03w.js} +2 -2
- package/dist/component/{dext-text-area-rac-D8vG4QTK.js → dext-text-area-rac-RuSovGlp.js} +1 -1
- package/dist/component/{dext-text-input-rac-D19SJhDG.js → dext-text-input-rac-DQd00cll.js} +1 -1
- package/dist/component/{dext-url-input-rac-BUAWZX7n.js → dext-url-input-rac-Bn2-Qudo.js} +1 -1
- package/dist/component/{donation-rac-C4NdOTts.js → donation-rac-XB0arMGx.js} +5 -5
- package/dist/component/{dropdown-field-headless-CtppkNv5.js → dropdown-field-headless-D0QHnQvI.js} +5 -5
- package/dist/component/{dropdown-field-rac-B6KCsR-j.js → dropdown-field-rac-Bwe73KgJ.js} +5 -5
- package/dist/component/{dropdown-rac-CkFLrcRV.js → dropdown-rac-CChdbmVW.js} +1 -1
- package/dist/component/{ecom-address-rac-D6asF2b7.js → ecom-address-rac-U0zYzmAk.js} +1 -1
- package/dist/component/{ecom-subscription-checkbox-rac-CFzMl_9G.js → ecom-subscription-checkbox-rac-Cd4fKnVJ.js} +2 -2
- package/dist/component/{email-input-field-rac-gCsspvxb.js → email-input-field-rac-FRlbfWr0.js} +3 -3
- package/dist/component/{events-repeater-rac-DSrjafwK.js → events-repeater-rac-CBjqu0d6.js} +4 -4
- package/dist/component/{events-rsvp-rac-CMQtNDqE.js → events-rsvp-rac-Ciezamm0.js} +3 -3
- package/dist/component/{field-error-headless-Bt2dslWu.js → field-error-headless-Bkstr7c4.js} +1 -1
- package/dist/component/{field-label-headless-ZBAhq8nF.js → field-label-headless-BQdzL3qy.js} +1 -1
- package/dist/component/{file-upload-rac-MzPreLKz.js → file-upload-rac-BKE1ducj.js} +30 -30
- package/dist/component/{fixed-payment-rac-CPWIOJSH.js → fixed-payment-rac-B01pKLTi.js} +8 -8
- package/dist/component/{form-BrXx-2qp.js → form-BBasotzg.js} +291 -294
- package/dist/component/form.js +1 -1
- package/dist/component/{header-field-rac-5dkUDBLN.js → header-field-rac-CrhHOqXZ.js} +2 -2
- package/dist/component/{header-rac-eXnz2eEI.js → header-rac-Dp3WTqgX.js} +1 -1
- package/dist/component/{image-choice-rac-BxmirCog.js → image-choice-rac-DJxTewda.js} +4 -4
- package/dist/component/{index-CCz5mdOt.js → index-BQvyEQWT.js} +4 -4
- package/dist/component/{index-Be6_W-02.js → index-n_nFGyIF.js} +2 -2
- package/dist/component/{isObjectLike-DhFZRIZ5.js → isObjectLike-BVuF_W7V.js} +1 -1
- package/dist/component/{multiline-address-field-rac-C3Rz-qFR.js → multiline-address-field-rac-D8d0OxHJ.js} +7 -7
- package/dist/component/{multiline-address-rac-BFvxiD8l.js → multiline-address-rac-BVfMe6L4.js} +1 -1
- package/dist/component/{number-input-field-rac-CAuoAgAm.js → number-input-field-rac-CxEmmXKN.js} +9 -9
- package/dist/component/{number-input-rac-ZCBaL_D4.js → number-input-rac-QYnTwzd-.js} +1 -1
- package/dist/component/{password-rac-oAAB5Yek.js → password-rac-C-qGzwyr.js} +6 -6
- package/dist/component/{payment-input-rac-BkVImcPM.js → payment-input-rac-DmrwVntr.js} +16 -16
- package/dist/component/{phone-input-field-rac-LReDQaEl.js → phone-input-field-rac-COIVTDiA.js} +202 -202
- package/dist/component/{phone-rac-B4Rv_q9_.js → phone-rac-DKQE4q0-.js} +1 -1
- package/dist/component/{product-list-rac-CVoJPZH6.js → product-list-rac-MP1iV-ki.js} +25 -25
- package/dist/component/{quiz-radio-group-rac-CHXOBaWQ.js → quiz-radio-group-rac-D5SWxzie.js} +1 -1
- package/dist/component/{radio-button-module-classes-G3CPOqV_.js → radio-button-module-classes-DHbL55H_.js} +3 -3
- package/dist/component/{radio-group-field-rac-Di8f67l0.js → radio-group-field-rac-BgtFPmlJ.js} +8 -8
- package/dist/component/{radio-group-rac-BP4EdSWA.js → radio-group-rac-Ct-3Dxt9.js} +1 -1
- package/dist/component/{rating-input-field-rac-D6nHfXat.js → rating-input-field-rac-D2UWtvZ5.js} +15 -15
- package/dist/component/{rating-input-rac-BpTVbrOY.js → rating-input-rac-D31uJ5fp.js} +1 -1
- package/dist/component/{rich-content-rac.module-DfNKRJQl.js → rich-content-rac.module-CaJq2hem.js} +1 -1
- package/dist/component/{rich-text-field-rac-BZx7O1ln.js → rich-text-field-rac-Cozr8cKE.js} +2 -2
- package/dist/component/{rich-text-rac-Bie0rehR.js → rich-text-rac-BPDbHGDS.js} +1 -1
- package/dist/component/{service-dropdown-rac-DZgYoLs3.js → service-dropdown-rac-BmRx6WJk.js} +11 -11
- package/dist/component/{services-multi-choice-rac-os7W4s1g.js → services-multi-choice-rac-BWd7EnKj.js} +8 -8
- package/dist/component/{signature-rac-BMRvU0qg.js → signature-rac-GWN393X6.js} +53 -53
- package/dist/component/{submit-button-rac-BkXQF3FL.js → submit-button-rac-DkcJAQz4.js} +2 -2
- package/dist/component/{tags-field-rac-5GL81x5S.js → tags-field-rac-Crj2KkXI.js} +17 -17
- package/dist/component/{tags-rac-BG4eu5vf.js → tags-rac-BqTLqg6-.js} +1 -1
- package/dist/component/{text-area-field-rac-CGtt6YXJ.js → text-area-field-rac-DDNzZb6-.js} +12 -12
- package/dist/component/{text-area-rac-D6aJxM-f.js → text-area-rac-_GZpfhob.js} +1 -1
- package/dist/component/{text-input-field-rac-BUuVi4gl.js → text-input-field-rac-C8Oy01fr.js} +5 -5
- package/dist/component/{text-input-headless-DG-jyTVD.js → text-input-headless-CeUccQB2.js} +3 -3
- package/dist/component/{text-input-rac-LVE42SOJ.js → text-input-rac-quKzZGuN.js} +1 -1
- package/dist/component/{time-input-rac-jZ9v7Azv.js → time-input-rac-Cs6v7FWy.js} +16 -16
- package/dist/component/{url-input-field-rac-DQ9JerAM.js → url-input-field-rac-XKB-01MY.js} +7 -7
- package/dist/component/{url-input-rac-4k06IpF-.js → url-input-rac-CLy5V0JB.js} +1 -1
- package/dist/component/{use-dropdown-trigger-class-name-CgNFe8Eg.js → use-dropdown-trigger-class-name-BnXNxOw5.js} +3 -3
- package/dist/component/{use-element-state-class-name-B4a4SKmP.js → use-element-state-class-name-DXp0miT9.js} +1 -1
- package/dist/component/{use-hoverable-input-class-name-DZVkGZvs.js → use-hoverable-input-class-name-D2Y08f_R.js} +2 -2
- package/dist/component/{use-is-forced-open-dropdown-ClP9MSlU.js → use-is-forced-open-dropdown-BG5bt8En.js} +1 -1
- package/dist/component/{use-service-options-base-Ch2bF4mk.js → use-service-options-base--io114bM.js} +1 -1
- package/dist/component/use-text-input-class-name-DGOkD9xM.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-BBasotzg.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-BQdzL3qy.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-Bkstr7c4.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-DXp0miT9.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-BBasotzg.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-Bkstr7c4.js";
|
|
6
|
+
import { L as j } from "./field-label-headless-BQdzL3qy.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-BgtFPmlJ.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-DHbL55H_.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-BBasotzg.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-DXp0miT9.js";
|
|
10
|
+
import { u } from "./use-text-input-class-name-DGOkD9xM.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-D2UWtvZ5.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-BBasotzg.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-Bkstr7c4.js";
|
|
8
|
+
import { L as Z } from "./field-label-headless-BQdzL3qy.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-DXp0miT9.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-CaJq2hem.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-BBasotzg.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-BBasotzg.js";
|
|
4
|
+
import { u as C, R as d, s as g, T as p } from "./rich-content-rac.module-CaJq2hem.js";
|
|
5
5
|
const h = {
|
|
6
6
|
colorPalette: T(),
|
|
7
7
|
customStyles: R()
|
package/dist/component/{service-dropdown-rac-DZgYoLs3.js → service-dropdown-rac-BmRx6WJk.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-BBasotzg.js";
|
|
5
|
+
import { u as B } from "./use-service-options-base--io114bM.js";
|
|
6
|
+
import { D as u } from "./dropdown-field-headless-D0QHnQvI.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-BnXNxOw5.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-BBasotzg.js";
|
|
5
|
+
import { u as v } from "./use-service-options-base--io114bM.js";
|
|
6
|
+
import { C as i } from "./checkbox-group-field-headless-Be3rHuBy.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-DXp0miT9.js";
|
|
12
|
+
import { u as k } from "./use-text-input-class-name-DGOkD9xM.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 = () => {
|