@wix/form-elements 1.84.0 → 1.86.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-BSy3u0GK.js → appointment-rac-DiPF4326.js} +78 -78
- package/dist/component/{bookings-address-rac-CL7Bh1yH.js → bookings-address-rac-DuqMUPYH.js} +1 -1
- package/dist/component/{bookings-email-rac-Bw9tj_tv.js → bookings-email-rac-C4uKdWr-.js} +1 -1
- package/dist/component/{bookings-first-name-rac-BOOu_AXM.js → bookings-first-name-rac-D8Iu-SNH.js} +1 -1
- package/dist/component/{bookings-header-rac-3kBei7GF.js → bookings-header-rac-Df7inEbP.js} +1 -1
- package/dist/component/{bookings-last-name-rac-CUKbu22q.js → bookings-last-name-rac-3GrFylkJ.js} +1 -1
- package/dist/component/{bookings-login-bar-rac-CLrUhdX2.js → bookings-login-bar-rac-Cmm93hGY.js} +6 -6
- package/dist/component/{bookings-phone-rac-7DViellg.js → bookings-phone-rac-CfdQ5qR1.js} +1 -1
- package/dist/component/{bookings-rich-text-rac-CIUZX--G.js → bookings-rich-text-rac-CAFLGrDr.js} +1 -1
- package/dist/component/{checkbox-field-rac-C_jth3RK.js → checkbox-field-rac-D4TSHtYp.js} +5 -5
- package/dist/component/{checkbox-group-field-headless-D-c9Kyj8.js → checkbox-group-field-headless-BtorRj0k.js} +30 -30
- package/dist/component/{checkbox-group-field-rac-MgGUuYII.js → checkbox-group-field-rac-CSZjtiTd.js} +6 -6
- package/dist/component/{checkbox-group-rac-rr1mN2EJ.js → checkbox-group-rac-DVa2KhXh.js} +1 -1
- package/dist/component/{checkbox-rac-CRsLQKhN.js → checkbox-rac-BEAyFkKn.js} +1 -1
- package/dist/component/{contacts-address-rac-BFlNbQKh.js → contacts-address-rac-DRiJ7oWN.js} +1 -1
- package/dist/component/{contacts-birthdate-rac-D7Ww3iAz.js → contacts-birthdate-rac-pFthm4vI.js} +1 -1
- package/dist/component/{contacts-company-rac-DLl4nqH-.js → contacts-company-rac-Bkf19ZXI.js} +1 -1
- package/dist/component/{contacts-email-rac-K8fCs8qS.js → contacts-email-rac-eG6dMktK.js} +1 -1
- package/dist/component/{contacts-first-name-rac-BOTxHl3m.js → contacts-first-name-rac-BGM8vurp.js} +1 -1
- package/dist/component/{contacts-last-name-rac-bFnG-7Hm.js → contacts-last-name-rac-CB3YwF_-.js} +1 -1
- package/dist/component/{contacts-phone-rac-B4teqDIV.js → contacts-phone-rac-C-k6Np0j.js} +1 -1
- package/dist/component/{contacts-position-rac-CnWoXO5h.js → contacts-position-rac-DbBwVhvF.js} +1 -1
- package/dist/component/{contacts-subscribe-rac-Bco722BU.js → contacts-subscribe-rac-DPFEKv8D.js} +2 -2
- package/dist/component/{contacts-tax-id-rac-QQsKhAx3.js → contacts-tax-id-rac-DUe69xy2.js} +1 -1
- package/dist/component/{date-availability-DMbyb1GZ.js → date-availability-LsRBBF2w.js} +1 -1
- package/dist/component/{date-input-field-rac-CVRjO19U.js → date-input-field-rac-8tT_tvxK.js} +43 -43
- package/dist/component/{date-input-rac-zi7AQ8Ai.js → date-input-rac-XNgfU9bx.js} +1 -1
- package/dist/component/{date-picker-field-rac-5H10gH9D.js → date-picker-field-rac-BrVIS9sI.js} +20 -20
- package/dist/component/{date-picker-rac-CxWNDsyJ.js → date-picker-rac-ldp-6ccS.js} +1 -1
- package/dist/component/{date-time-input-field-rac-CDa-nyf8.js → date-time-input-field-rac-CoHc9hOG.js} +5 -5
- package/dist/component/{date-time-input-rac-DglwFYb0.js → date-time-input-rac-BaCayitG.js} +1 -1
- package/dist/component/{dext-checkbox-group-rac-BBB652Uy.js → dext-checkbox-group-rac-Zhmol3mv.js} +2 -2
- package/dist/component/{dext-checkbox-rac-BVtiGV3w.js → dext-checkbox-rac-ByYJS2iR.js} +1 -1
- package/dist/component/{dext-date-picker-rac-Di4x6sI_.js → dext-date-picker-rac-DsKWfvPj.js} +1 -1
- package/dist/component/{dext-date-time-input-rac-agWHwUo7.js → dext-date-time-input-rac-BEinQWMz.js} +1 -1
- package/dist/component/{dext-dropdown-rac-U3FZTA2-.js → dext-dropdown-rac-FuoCb4hK.js} +1 -1
- package/dist/component/{dext-email-rac-CZ9AQw_k.js → dext-email-rac-CfTAbFH5.js} +1 -1
- package/dist/component/{dext-number-input-rac-DFr_9ZX5.js → dext-number-input-rac-CwGC_pv7.js} +1 -1
- package/dist/component/{dext-phone-rac-BYsfNwXn.js → dext-phone-rac-CgMCLDYK.js} +1 -1
- package/dist/component/{dext-radio-group-rac-B_jm5YAT.js → dext-radio-group-rac-XB40HDWO.js} +2 -2
- package/dist/component/{dext-rating-input-rac-CNlhMKt-.js → dext-rating-input-rac-BeoGv6No.js} +1 -1
- package/dist/component/{dext-tags-rac-y9x8Fg54.js → dext-tags-rac-DJ0DWl1v.js} +2 -2
- package/dist/component/{dext-text-area-rac-BgRxIpn9.js → dext-text-area-rac-3X-i3Lf_.js} +1 -1
- package/dist/component/{dext-text-input-rac-CdzgUZ38.js → dext-text-input-rac-DJa5OTo5.js} +1 -1
- package/dist/component/{dext-url-input-rac-Cg1TYyNV.js → dext-url-input-rac-DgsZYkzF.js} +1 -1
- package/dist/component/{donation-rac-Deiw7Tl9.js → donation-rac-DvklUsO9.js} +43 -43
- package/dist/component/{dropdown-field-headless-BKj2rdy9.js → dropdown-field-headless-CMvvmkUR.js} +11 -11
- package/dist/component/{dropdown-field-rac-CIdC2_O3.js → dropdown-field-rac-Dogcbl1j.js} +5 -5
- package/dist/component/{dropdown-rac-CYxaJrXP.js → dropdown-rac-CMCVoUmd.js} +1 -1
- package/dist/component/{ecom-address-rac-Crr3A_iU.js → ecom-address-rac-B-x688-1.js} +1 -1
- package/dist/component/{ecom-subscription-checkbox-rac-DdXAex4c.js → ecom-subscription-checkbox-rac-2SO8p_Mh.js} +3 -3
- package/dist/component/{email-input-field-rac-C516Fm0v.js → email-input-field-rac-CWVqDqUg.js} +54 -54
- package/dist/component/{events-repeater-rac-DL49KaIU.js → events-repeater-rac-Br-ida6_.js} +30 -30
- package/dist/component/{events-rsvp-rac-B5EvAP8x.js → events-rsvp-rac-BwABDdyN.js} +3 -3
- package/dist/component/{field-error-headless-D2CJ4Qk7.js → field-error-headless-D4iJBghM.js} +1 -1
- package/dist/component/{field-label-headless-D2-WvVKT.js → field-label-headless-CzJhv-wS.js} +7 -7
- package/dist/component/{file-upload-rac-BG3msdbn.js → file-upload-rac-DU6INU4J.js} +85 -85
- package/dist/component/{fixed-payment-rac-3bI_h_W0.js → fixed-payment-rac-DEn6L3zu.js} +12 -12
- package/dist/component/{form-B3KiRFhB.js → form-Dt3W_RUv.js} +2229 -2203
- package/dist/component/{form-element-classes-Ct1UaxuQ.js → form-element-classes-BhFk9Jrj.js} +85 -54
- package/dist/component/form.css +1 -1
- package/dist/component/form.js +1 -1
- package/dist/component/{header-field-rac-Bp7hStrt.js → header-field-rac-D0K0BqUG.js} +5 -5
- package/dist/component/{header-rac-yVYId2B_.js → header-rac-DyIg-Ltz.js} +1 -1
- package/dist/component/{image-choice-rac-D1mqJfcn.js → image-choice-rac-DMjIkxUy.js} +42 -42
- package/dist/component/{index-B0PANcv8.js → index-BovDughA.js} +4 -4
- package/dist/component/{index-LrdDmlej.js → index-DiFa7GGa.js} +2 -2
- package/dist/component/{isObjectLike-DH7T0Txd.js → isObjectLike-CUZBx88n.js} +1 -1
- package/dist/component/{multiline-address-field-rac-C-gtuNCU.js → multiline-address-field-rac-CK5u9I0i.js} +128 -128
- package/dist/component/{multiline-address-rac-B3ixmNqi.js → multiline-address-rac-w0tpyTzt.js} +1 -1
- package/dist/component/{number-input-field-rac-BNPMYFay.js → number-input-field-rac-CVOSoBnw.js} +30 -30
- package/dist/component/{number-input-rac-BaEBt2uf.js → number-input-rac-DXEMqaqN.js} +1 -1
- package/dist/component/{password-rac-B0H_ILkt.js → password-rac-9pZro4oK.js} +19 -19
- package/dist/component/{payment-input-rac-LIk9MP5a.js → payment-input-rac-D9oGt1IQ.js} +17 -17
- package/dist/component/{phone-input-field-rac-CUUAacDK.js → phone-input-field-rac-B_MnDM0g.js} +40 -40
- package/dist/component/{phone-rac-BYqYOw60.js → phone-rac-BqoY5RbY.js} +1 -1
- package/dist/component/{product-list-rac-CvoI6ajr.js → product-list-rac-B_ZzTsCB.js} +41 -41
- package/dist/component/{quiz-radio-group-rac-D0IJGSh0.js → quiz-radio-group-rac-Ct2fFqIn.js} +2 -2
- package/dist/component/{radio-button-module-classes-CWfSY9kQ.js → radio-button-module-classes-PHiNEQN2.js} +7 -7
- package/dist/component/{radio-group-field-rac-DisEhh0b.js → radio-group-field-rac-Dfs4JSH_.js} +4 -4
- package/dist/component/{radio-group-rac-DrwjFNWh.js → radio-group-rac-D9SSPWcI.js} +1 -1
- package/dist/component/{rating-input-field-rac-BLMQWT7z.js → rating-input-field-rac-BFdsvsk2.js} +16 -16
- package/dist/component/{rating-input-rac-CGJY2HSO.js → rating-input-rac-hG1mVqe-.js} +1 -1
- package/dist/component/{rich-content-rac.module-C9cKdumu.js → rich-content-rac.module-BnJHWZW_.js} +1 -1
- package/dist/component/{rich-text-field-rac-DTSRvaTK.js → rich-text-field-rac-CYRioe4F.js} +3 -3
- package/dist/component/{rich-text-rac-Blk3neHN.js → rich-text-rac-BVFGMc9w.js} +1 -1
- package/dist/component/{service-dropdown-rac-C9P5IWrV.js → service-dropdown-rac-BDrEc7Zb.js} +20 -20
- package/dist/component/{services-multi-choice-rac-Cnhwy1a9.js → services-multi-choice-rac-RauhMlXM.js} +7 -7
- package/dist/component/{signature-rac-Benar-ci.js → signature-rac-eZQzl11r.js} +41 -41
- package/dist/component/submit-button-rac-DeGY6ugG.js +142 -0
- package/dist/component/{tags-field-rac-wA_0ZinI.js → tags-field-rac-CZ5TvoyT.js} +72 -72
- package/dist/component/{tags-rac-BcVGekA6.js → tags-rac-DXznht8H.js} +1 -1
- package/dist/component/{text-area-field-rac-VpuojNac.js → text-area-field-rac-B5qohjUV.js} +25 -25
- package/dist/component/{text-area-rac-DDvi8u5M.js → text-area-rac-B1KlbayF.js} +1 -1
- package/dist/component/{text-input-field-rac-C6LohBtn.js → text-input-field-rac-CHQcR47F.js} +3 -3
- package/dist/component/{text-input-headless-5yKhWpLD.js → text-input-headless-CRm8bo7P.js} +10 -10
- package/dist/component/{text-input-rac-C8hsNUp6.js → text-input-rac-BfQViUSp.js} +1 -1
- package/dist/component/{time-input-rac-fOT-pjju.js → time-input-rac-BhhojlSG.js} +19 -19
- package/dist/component/{url-input-field-rac-DxR6Hymf.js → url-input-field-rac-cvzCBb8W.js} +19 -19
- package/dist/component/{url-input-rac-B928R10o.js → url-input-rac-C_sH1Z5C.js} +1 -1
- package/dist/component/use-element-state-class-name-CeL6xkSj.js +22 -0
- package/dist/component/{use-service-options-base-UyJmT2P6.js → use-service-options-base-_vksQyAH.js} +5 -5
- package/dist/component/{use-text-input-class-name-Qk2v8a6-.js → use-text-input-class-name-DLHJl2sm.js} +5 -5
- package/dist/form.d.ts +105 -2
- package/package.json +6 -3
- package/dist/component/submit-button-rac-BDJQsZC3.js +0 -116
- package/dist/component/use-element-state-class-name-CBjBYCW5.js +0 -20
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import t, { useMemo as
|
|
2
|
-
import { RicosViewer as
|
|
1
|
+
import t, { useMemo as K, useCallback as x, useRef as B } from "react";
|
|
2
|
+
import { RicosViewer as $ } from "@wix/ricos/viewer";
|
|
3
3
|
import _ from "classnames";
|
|
4
|
-
import { CheckboxField as
|
|
5
|
-
import {
|
|
6
|
-
import { f as
|
|
7
|
-
import { L as te, g as ne } from "./field-label-headless-
|
|
4
|
+
import { CheckboxField as z, CheckboxButton as j, NumberField as X, Group as J, Button as U, Input as W } from "react-aria-components";
|
|
5
|
+
import { aj as k, ag as Y, ab as w, at as Z, al as ee } from "./form-Dt3W_RUv.js";
|
|
6
|
+
import { f as b, a as I } from "./find-child-C60k4CxG.js";
|
|
7
|
+
import { L as te, g as ne } from "./field-label-headless-CzJhv-wS.js";
|
|
8
8
|
import { f as ae } from "./format-currency-BwShJ9vM.js";
|
|
9
|
-
import { D as oe, E as re } from "./field-error-headless-
|
|
9
|
+
import { D as oe, E as re } from "./field-error-headless-D4iJBghM.js";
|
|
10
10
|
import { F as le } from "./fieldset-headless-CD3fds9J.js";
|
|
11
11
|
import { g as se } from "./payment-field-utils-DobiK5Xh.js";
|
|
12
12
|
import { S as ie } from "./selection-indicator-XQ8MYHUQ.js";
|
|
13
13
|
import { E as ce } from "./error-icon-hZxQ6DEy.js";
|
|
14
14
|
import { C as ue } from "./checkbox-indicator-module-classes-Bb3xB1ve.js";
|
|
15
15
|
import { s as T } from "./field-rac.module-D06m9T9x.js";
|
|
16
|
-
import { y as me,
|
|
16
|
+
import { y as me, P as pe, C as de, G as Ee, E as ye, x as fe, o as _e, i as Ie, D as be } from "./form-element-classes-BhFk9Jrj.js";
|
|
17
17
|
import { o as Q } from "./options-rac.module-KM-VT_KY.js";
|
|
18
|
-
import { u as
|
|
18
|
+
import { u as Oe } from "./use-element-state-class-name-CeL6xkSj.js";
|
|
19
19
|
var Le = /* @__PURE__ */ (function(e) {
|
|
20
20
|
return e.crop = "CROP", e.fit = "FIT", e;
|
|
21
21
|
})({}), M = /* @__PURE__ */ (function(e) {
|
|
@@ -29,14 +29,14 @@ function Ce({ maxItems: e, products: a } = {}) {
|
|
|
29
29
|
}
|
|
30
30
|
const o = ({ children: e }) => {
|
|
31
31
|
var D;
|
|
32
|
-
const { id: a, value: l, onChange: n, disabled: r, readOnly: c, required: y, onBlur:
|
|
32
|
+
const { id: a, value: l, onChange: n, disabled: r, readOnly: c, required: y, onBlur: O, onFocus: s, hasError: u, validation: m, FieldLayout: p } = k(), { inputId: q, labelId: N, ariaDescribedBy: h } = Y(), f = b(e, o.Label), R = b(e, o.Options), v = b(e, o.Description), L = b(e, o.Error), i = K(() => l || [], [
|
|
33
33
|
l
|
|
34
|
-
]), A = Ce((D = m == null ? void 0 : m.predefined) == null ? void 0 : D.paymentOptions) === M.many, F = x((S,
|
|
35
|
-
const d = i.filter((
|
|
34
|
+
]), A = Ce((D = m == null ? void 0 : m.predefined) == null ? void 0 : D.paymentOptions) === M.many, F = x((S, g) => {
|
|
35
|
+
const d = i.filter((H) => H.productId !== S.productId), G = g ? [
|
|
36
36
|
...d,
|
|
37
37
|
S
|
|
38
38
|
] : d;
|
|
39
|
-
n == null || n(
|
|
39
|
+
n == null || n(G);
|
|
40
40
|
}, [
|
|
41
41
|
i,
|
|
42
42
|
n
|
|
@@ -49,9 +49,9 @@ const o = ({ children: e }) => {
|
|
|
49
49
|
ariaLabelledBy: N,
|
|
50
50
|
ariaDescribedBy: h,
|
|
51
51
|
required: y,
|
|
52
|
-
onBlur:
|
|
52
|
+
onBlur: O,
|
|
53
53
|
onFocus: s
|
|
54
|
-
},
|
|
54
|
+
}, R ? I(R, {
|
|
55
55
|
allowMany: A,
|
|
56
56
|
productValues: i,
|
|
57
57
|
onProductChange: F,
|
|
@@ -62,12 +62,12 @@ const o = ({ children: e }) => {
|
|
|
62
62
|
renderDescription: () => /* @__PURE__ */ t.createElement(t.Fragment, null, L, v)
|
|
63
63
|
});
|
|
64
64
|
}, V = ({ children: e, className: a, ...l }) => {
|
|
65
|
-
const { allowMany: n, productValues: r, onProductChange: c, disabled: y, readOnly:
|
|
65
|
+
const { allowMany: n, productValues: r, onProductChange: c, disabled: y, readOnly: O, hasError: s } = l, { options: u, validation: m, imageResize: p } = k(), { currency: q } = w(), { t: N } = Z(), h = b(e, o.Option);
|
|
66
66
|
return /* @__PURE__ */ t.createElement("div", {
|
|
67
67
|
className: a
|
|
68
|
-
}, u == null ? void 0 : u.map((f,
|
|
68
|
+
}, u == null ? void 0 : u.map((f, R) => {
|
|
69
69
|
var C, A, F, D, S;
|
|
70
|
-
const v = ((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((
|
|
70
|
+
const v = ((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((g) => g.id === f.value)) == null ? void 0 : D.fixedPriceOptions) == null ? void 0 : S.price) || "0", L = se(N, q), i = r.find((g) => g.productId === f.value);
|
|
71
71
|
return I(h, {
|
|
72
72
|
key: f.id || f.value || f.label,
|
|
73
73
|
option: f,
|
|
@@ -77,18 +77,18 @@ const o = ({ children: e }) => {
|
|
|
77
77
|
allowMany: n,
|
|
78
78
|
onProductChange: c,
|
|
79
79
|
disabled: y,
|
|
80
|
-
readOnly:
|
|
80
|
+
readOnly: O,
|
|
81
81
|
hasError: s,
|
|
82
82
|
currencyAriaLabel: L,
|
|
83
83
|
imageResize: p,
|
|
84
|
-
isFirst:
|
|
84
|
+
isFirst: R === 0
|
|
85
85
|
});
|
|
86
86
|
}));
|
|
87
87
|
}, E = ({ children: e, className: a, ...l }) => {
|
|
88
|
-
const { option: n, price: r, quantity: c = 0, isSelected: y, allowMany:
|
|
88
|
+
const { option: n, price: r, quantity: c = 0, isSelected: y, allowMany: O, onProductChange: s, disabled: u, readOnly: m, hasError: p, currencyAriaLabel: q, imageResize: N, isFirst: h } = l, { id: f } = k(), R = B(null), v = B(null), L = b(e, E.Image), i = b(e, E.Label), C = b(e, E.Price), A = b(e, E.Input), F = b(e, E.Quantity);
|
|
89
89
|
ee(() => {
|
|
90
90
|
var d;
|
|
91
|
-
h && ((d =
|
|
91
|
+
h && ((d = R.current ?? v.current) == null || d.focus({
|
|
92
92
|
preventScroll: !0
|
|
93
93
|
}));
|
|
94
94
|
}, f);
|
|
@@ -112,8 +112,8 @@ const o = ({ children: e }) => {
|
|
|
112
112
|
s,
|
|
113
113
|
n.value,
|
|
114
114
|
r
|
|
115
|
-
]),
|
|
116
|
-
return
|
|
115
|
+
]), g = `${n.label} ${q} ${r}`;
|
|
116
|
+
return O ? /* @__PURE__ */ t.createElement("div", {
|
|
117
117
|
className: a,
|
|
118
118
|
"data-hook": "product"
|
|
119
119
|
}, L ? I(L, {
|
|
@@ -129,17 +129,17 @@ const o = ({ children: e }) => {
|
|
|
129
129
|
disabled: u,
|
|
130
130
|
readOnly: m,
|
|
131
131
|
hasError: p,
|
|
132
|
-
ariaLabel:
|
|
132
|
+
ariaLabel: g,
|
|
133
133
|
inputRef: h ? v : void 0
|
|
134
|
-
}) : null) : /* @__PURE__ */ t.createElement(
|
|
134
|
+
}) : null) : /* @__PURE__ */ t.createElement(z, {
|
|
135
135
|
isSelected: y,
|
|
136
136
|
onChange: D,
|
|
137
137
|
isDisabled: u,
|
|
138
138
|
isReadOnly: m,
|
|
139
139
|
isInvalid: p,
|
|
140
|
-
"aria-label":
|
|
141
|
-
}, /* @__PURE__ */ t.createElement(
|
|
142
|
-
ref:
|
|
140
|
+
"aria-label": g
|
|
141
|
+
}, /* @__PURE__ */ t.createElement(j, {
|
|
142
|
+
ref: R,
|
|
143
143
|
className: a,
|
|
144
144
|
"data-hook": "product"
|
|
145
145
|
}, ({ isHovered: d }) => /* @__PURE__ */ t.createElement(t.Fragment, null, L ? I(L, {
|
|
@@ -153,7 +153,7 @@ const o = ({ children: e }) => {
|
|
|
153
153
|
isSelected: y,
|
|
154
154
|
isHovered: d
|
|
155
155
|
}))));
|
|
156
|
-
},
|
|
156
|
+
}, ge = ({ className: e, ...a }) => {
|
|
157
157
|
var s;
|
|
158
158
|
const { option: l, imageResize: n } = a, r = (s = l.media) == null ? void 0 : s.image;
|
|
159
159
|
if (!r)
|
|
@@ -161,15 +161,15 @@ const o = ({ children: e }) => {
|
|
|
161
161
|
const c = n === Le.fit, y = ne(r, 96, 96, c ? "fit" : "fill");
|
|
162
162
|
if (!y)
|
|
163
163
|
return null;
|
|
164
|
-
const
|
|
164
|
+
const O = r.altText || l.label || "";
|
|
165
165
|
return /* @__PURE__ */ t.createElement("img", {
|
|
166
166
|
className: e,
|
|
167
167
|
src: y,
|
|
168
|
-
alt:
|
|
168
|
+
alt: O,
|
|
169
169
|
"data-fit": c ? "contain" : "cover",
|
|
170
170
|
"data-hook": "product-image"
|
|
171
171
|
});
|
|
172
|
-
},
|
|
172
|
+
}, Re = ({ className: e, ...a }) => {
|
|
173
173
|
const { label: l } = a;
|
|
174
174
|
return /* @__PURE__ */ t.createElement("span", {
|
|
175
175
|
className: e,
|
|
@@ -186,7 +186,7 @@ const o = ({ children: e }) => {
|
|
|
186
186
|
"data-hook": "product-price"
|
|
187
187
|
}, c);
|
|
188
188
|
}, De = ({ className: e, ...a }) => {
|
|
189
|
-
const { quantity: l, onQuantityChange: n, disabled: r, readOnly: c, hasError: y, ariaLabel:
|
|
189
|
+
const { quantity: l, onQuantityChange: n, disabled: r, readOnly: c, hasError: y, ariaLabel: O, inputRef: s } = a, u = x((p) => {
|
|
190
190
|
n(p < 0 ? 0 : p);
|
|
191
191
|
}, [
|
|
192
192
|
n
|
|
@@ -195,7 +195,7 @@ const o = ({ children: e }) => {
|
|
|
195
195
|
}, [
|
|
196
196
|
u
|
|
197
197
|
]);
|
|
198
|
-
return /* @__PURE__ */ t.createElement(
|
|
198
|
+
return /* @__PURE__ */ t.createElement(X, {
|
|
199
199
|
value: l,
|
|
200
200
|
onChange: u,
|
|
201
201
|
minValue: 0,
|
|
@@ -203,7 +203,7 @@ const o = ({ children: e }) => {
|
|
|
203
203
|
isDisabled: r,
|
|
204
204
|
isReadOnly: c,
|
|
205
205
|
isInvalid: y,
|
|
206
|
-
"aria-label":
|
|
206
|
+
"aria-label": O,
|
|
207
207
|
className: e,
|
|
208
208
|
"data-hook": "product-quantity"
|
|
209
209
|
}, /* @__PURE__ */ t.createElement(J, {
|
|
@@ -216,8 +216,8 @@ const o = ({ children: e }) => {
|
|
|
216
216
|
slot: "increment"
|
|
217
217
|
}, "+")));
|
|
218
218
|
};
|
|
219
|
-
E.Image =
|
|
220
|
-
E.Label =
|
|
219
|
+
E.Image = ge;
|
|
220
|
+
E.Label = Re;
|
|
221
221
|
E.Price = Fe;
|
|
222
222
|
E.Input = ie;
|
|
223
223
|
E.Quantity = De;
|
|
@@ -235,12 +235,12 @@ const Se = "_options_11x4v_1", Pe = "_option_11x4v_1", Ne = "_optionInput_11x4v_
|
|
|
235
235
|
optionLabel: ve,
|
|
236
236
|
optionPrice: Ae,
|
|
237
237
|
quantity: Te
|
|
238
|
-
}, qe = ({ content: e, locale: a }) => /* @__PURE__ */ t.createElement(
|
|
238
|
+
}, qe = ({ content: e, locale: a }) => /* @__PURE__ */ t.createElement($, {
|
|
239
239
|
content: e,
|
|
240
240
|
locale: a
|
|
241
241
|
}), xe = () => {
|
|
242
|
-
const e =
|
|
243
|
-
globalClasses:
|
|
242
|
+
const e = Oe({
|
|
243
|
+
globalClasses: be,
|
|
244
244
|
moduleClasses: ue
|
|
245
245
|
});
|
|
246
246
|
return /* @__PURE__ */ t.createElement(o, null, /* @__PURE__ */ t.createElement(o.Label, {
|
package/dist/component/{quiz-radio-group-rac-D0IJGSh0.js → quiz-radio-group-rac-Ct2fFqIn.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _ from "react";
|
|
2
|
-
import { R } from "./radio-group-field-rac-
|
|
3
|
-
import {
|
|
2
|
+
import { R } from "./radio-group-field-rac-Dfs4JSH_.js";
|
|
3
|
+
import { J as o, I as r, H as O } from "./form-element-classes-BhFk9Jrj.js";
|
|
4
4
|
const e = () => /* @__PURE__ */ _.createElement(R, {
|
|
5
5
|
classes: {
|
|
6
6
|
container: O,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import l, { useRef as S, useState as V, useEffect as B, useCallback as T } from "react";
|
|
2
|
-
import { RadioGroup as H, RadioField as
|
|
3
|
-
import {
|
|
2
|
+
import { RadioGroup as H, RadioField as M, RadioButton as U, TextField as k, Input as A } from "react-aria-components";
|
|
3
|
+
import { aj as v, ag as G, at as F, ab as P, al as $ } from "./form-Dt3W_RUv.js";
|
|
4
4
|
import { f as p, a as y } from "./find-child-C60k4CxG.js";
|
|
5
|
-
import { D as q, E as x } from "./field-error-headless-
|
|
6
|
-
import { L as j } from "./field-label-headless-
|
|
5
|
+
import { D as q, E as x } from "./field-error-headless-D4iJBghM.js";
|
|
6
|
+
import { L as j } from "./field-label-headless-CzJhv-wS.js";
|
|
7
7
|
import { N as w } from "./options-layout-constants-DEfIEJWD.js";
|
|
8
8
|
import { S as z } from "./selection-indicator-XQ8MYHUQ.js";
|
|
9
9
|
const L = "Other", J = (e, t) => e == null ? void 0 : e.find((o) => (o.value ?? o.label) === t), R = (e, t) => !!t && !J(e, t), K = (e, t) => {
|
|
@@ -57,9 +57,9 @@ const L = "Other", J = (e, t) => e == null ? void 0 : e.find((o) => (o.value ??
|
|
|
57
57
|
const { value: a, label: O, isOther: b = !1, radioRef: h } = o, { value: f, options: _ } = v(), E = p(e, m.Label), r = p(e, m.Input), s = p(e, m.Control), u = p(e, m.OtherInput), C = b ? R(_, f) : f === a, n = (d = r == null ? void 0 : r.props) == null ? void 0 : d.className;
|
|
58
58
|
return /* @__PURE__ */ l.createElement("div", {
|
|
59
59
|
className: t
|
|
60
|
-
}, /* @__PURE__ */ l.createElement(k, {
|
|
61
|
-
value: a
|
|
62
60
|
}, /* @__PURE__ */ l.createElement(M, {
|
|
61
|
+
value: a
|
|
62
|
+
}, /* @__PURE__ */ l.createElement(U, {
|
|
63
63
|
ref: h,
|
|
64
64
|
className: n
|
|
65
65
|
}, ({ isSelected: i, isHovered: I }) => /* @__PURE__ */ l.createElement(l.Fragment, null, y(s, {
|
|
@@ -89,7 +89,7 @@ const L = "Other", J = (e, t) => e == null ? void 0 : e.find((o) => (o.value ??
|
|
|
89
89
|
a,
|
|
90
90
|
u
|
|
91
91
|
]);
|
|
92
|
-
return /* @__PURE__ */ l.createElement(
|
|
92
|
+
return /* @__PURE__ */ l.createElement(k, {
|
|
93
93
|
"aria-label": u,
|
|
94
94
|
value: C,
|
|
95
95
|
onChange: d,
|
package/dist/component/{radio-group-field-rac-DisEhh0b.js → radio-group-field-rac-Dfs4JSH_.js}
RENAMED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { RicosViewer as m } from "@wix/ricos/viewer";
|
|
2
2
|
import t from "classnames";
|
|
3
3
|
import e from "react";
|
|
4
|
-
import { a, s, R as c } from "./radio-button-module-classes-
|
|
4
|
+
import { a, s, R as c } from "./radio-button-module-classes-PHiNEQN2.js";
|
|
5
5
|
import { E as i } from "./error-icon-hZxQ6DEy.js";
|
|
6
6
|
import { s as o } from "./field-rac.module-D06m9T9x.js";
|
|
7
|
-
import {
|
|
8
|
-
import { u } from "./use-element-state-class-name-
|
|
9
|
-
import { u as N } from "./use-text-input-class-name-
|
|
7
|
+
import { M as E, L as O, K as R, y as _, P as p, o as I, i as L } from "./form-element-classes-BhFk9Jrj.js";
|
|
8
|
+
import { u } from "./use-element-state-class-name-CeL6xkSj.js";
|
|
9
|
+
import { u as N } from "./use-text-input-class-name-DLHJl2sm.js";
|
|
10
10
|
const D = ({ content: r, locale: l }) => /* @__PURE__ */ e.createElement(m, {
|
|
11
11
|
content: r,
|
|
12
12
|
locale: l
|
package/dist/component/{rating-input-field-rac-BLMQWT7z.js → rating-input-field-rac-BFdsvsk2.js}
RENAMED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { RicosViewer as D } from "@wix/ricos/viewer";
|
|
2
2
|
import m from "classnames";
|
|
3
3
|
import e, { useCallback as N, useState as O, useRef as A } from "react";
|
|
4
|
-
import {
|
|
5
|
-
import { RadioGroup as
|
|
6
|
-
import { f as u, a as
|
|
7
|
-
import { D as
|
|
8
|
-
import { L as G } from "./field-label-headless-
|
|
4
|
+
import { aj as b, ag as v, at as T } from "./form-Dt3W_RUv.js";
|
|
5
|
+
import { RadioGroup as H, RadioField as M, RadioButton as w } from "react-aria-components";
|
|
6
|
+
import { f as u, a as P } from "./find-child-C60k4CxG.js";
|
|
7
|
+
import { D as B, E as q } from "./field-error-headless-D4iJBghM.js";
|
|
8
|
+
import { L as G } from "./field-label-headless-CzJhv-wS.js";
|
|
9
9
|
import { E as k } from "./error-icon-hZxQ6DEy.js";
|
|
10
10
|
import { s as g } from "./field-rac.module-D06m9T9x.js";
|
|
11
|
-
import { y as x,
|
|
12
|
-
import { u as J } from "./use-element-state-class-name-
|
|
11
|
+
import { y as x, P as U, N as j, o as z, i as Q, O as Z } from "./form-element-classes-BhFk9Jrj.js";
|
|
12
|
+
import { u as J } from "./use-element-state-class-name-CeL6xkSj.js";
|
|
13
13
|
const t = ({ children: a }) => {
|
|
14
14
|
const { id: n, value: r, onChange: l, disabled: o, readOnly: d, required: c, hasError: i, onBlur: E, onFocus: C, FieldLayout: R } = b(), { labelId: _ } = v(), L = N((y) => l(Number(y)), [
|
|
15
15
|
l
|
|
@@ -17,7 +17,7 @@ const t = ({ children: a }) => {
|
|
|
17
17
|
return /* @__PURE__ */ e.createElement(R, {
|
|
18
18
|
fieldId: n,
|
|
19
19
|
renderLabel: () => f,
|
|
20
|
-
renderInput: () => /* @__PURE__ */ e.createElement(
|
|
20
|
+
renderInput: () => /* @__PURE__ */ e.createElement(H, {
|
|
21
21
|
"aria-labelledby": _,
|
|
22
22
|
value: r ? String(r) : void 0,
|
|
23
23
|
onChange: L,
|
|
@@ -46,7 +46,7 @@ const t = ({ children: a }) => {
|
|
|
46
46
|
className: n,
|
|
47
47
|
"data-invalid": d,
|
|
48
48
|
"data-readonly": o
|
|
49
|
-
}, L.map((s) =>
|
|
49
|
+
}, L.map((s) => P(_, {
|
|
50
50
|
key: s,
|
|
51
51
|
value: s,
|
|
52
52
|
isSelected: f(s),
|
|
@@ -65,7 +65,7 @@ const t = ({ children: a }) => {
|
|
|
65
65
|
whiteSpace: "nowrap"
|
|
66
66
|
}, F = ({ className: a, children: n, ...r }) => {
|
|
67
67
|
const { value: l, isSelected: o, onHoverChange: d, label: c } = r;
|
|
68
|
-
return /* @__PURE__ */ e.createElement(
|
|
68
|
+
return /* @__PURE__ */ e.createElement(M, {
|
|
69
69
|
value: l
|
|
70
70
|
}, /* @__PURE__ */ e.createElement(w, {
|
|
71
71
|
className: ({ isHovered: i }) => typeof a == "function" ? a({
|
|
@@ -85,7 +85,7 @@ I.Rating = F;
|
|
|
85
85
|
t.Label = G;
|
|
86
86
|
t.Ratings = I;
|
|
87
87
|
t.Rating = F;
|
|
88
|
-
t.Description =
|
|
88
|
+
t.Description = B;
|
|
89
89
|
t.Error = q;
|
|
90
90
|
const W = (a) => /* @__PURE__ */ e.createElement("svg", {
|
|
91
91
|
viewBox: "0 0 32 32",
|
|
@@ -110,8 +110,8 @@ const W = (a) => /* @__PURE__ */ e.createElement("svg", {
|
|
|
110
110
|
selected: p.ratingSelected,
|
|
111
111
|
hover: p.ratingHover
|
|
112
112
|
}, ge = () => {
|
|
113
|
-
const { t: a } =
|
|
114
|
-
globalClasses:
|
|
113
|
+
const { t: a } = T(), n = J({
|
|
114
|
+
globalClasses: Z,
|
|
115
115
|
moduleClasses: te
|
|
116
116
|
});
|
|
117
117
|
return /* @__PURE__ */ e.createElement(t, null, /* @__PURE__ */ e.createElement(t.Label, {
|
|
@@ -119,16 +119,16 @@ const W = (a) => /* @__PURE__ */ e.createElement("svg", {
|
|
|
119
119
|
}, /* @__PURE__ */ e.createElement(t.Label.Required, {
|
|
120
120
|
className: m(U, g.requiredMark)
|
|
121
121
|
})), /* @__PURE__ */ e.createElement(t.Ratings, {
|
|
122
|
-
className: m(
|
|
122
|
+
className: m(j, p.ratings),
|
|
123
123
|
getReactionLabel: (r) => a("rating-input.a11y.reaction-label", {
|
|
124
124
|
count: r
|
|
125
125
|
})
|
|
126
126
|
}, /* @__PURE__ */ e.createElement(t.Rating, {
|
|
127
127
|
className: n
|
|
128
128
|
}, /* @__PURE__ */ e.createElement(W, null))), /* @__PURE__ */ e.createElement(t.Error, {
|
|
129
|
-
className: m(
|
|
129
|
+
className: m(z, g.error)
|
|
130
130
|
}, /* @__PURE__ */ e.createElement(k, null), /* @__PURE__ */ e.createElement(t.Error.Text, null)), /* @__PURE__ */ e.createElement(t.Description, {
|
|
131
|
-
className: m(
|
|
131
|
+
className: m(Q, g.description)
|
|
132
132
|
}, ee));
|
|
133
133
|
};
|
|
134
134
|
export {
|
package/dist/component/{rich-content-rac.module-C9cKdumu.js → rich-content-rac.module-BnJHWZW_.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import c, { useState as u } from "react";
|
|
2
|
-
import {
|
|
2
|
+
import { aj as a, ab as i, at as T } from "./form-Dt3W_RUv.js";
|
|
3
3
|
import { Button as d } from "react-aria-components";
|
|
4
4
|
import { D as r } from "./data-hooks-Dkw1pbRj.js";
|
|
5
5
|
import { truncateRichContent as _ } from "@wix/ricos/content";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import l from "classnames";
|
|
2
2
|
import e from "react";
|
|
3
|
-
import {
|
|
4
|
-
import { u as T, R as C, s as d, T as p } from "./rich-content-rac.module-
|
|
5
|
-
import {
|
|
3
|
+
import { aj as m, L as i, W as u, Z as R } from "./form-Dt3W_RUv.js";
|
|
4
|
+
import { u as T, R as C, s as d, T as p } from "./rich-content-rac.module-BnJHWZW_.js";
|
|
5
|
+
import { a6 as g } from "./form-element-classes-BhFk9Jrj.js";
|
|
6
6
|
const h = {
|
|
7
7
|
colorPalette: R(),
|
|
8
8
|
customStyles: u()
|
package/dist/component/{service-dropdown-rac-C9P5IWrV.js → service-dropdown-rac-BDrEc7Zb.js}
RENAMED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import t, { useRef as N, useMemo as g, useCallback as h, useEffect as
|
|
2
|
-
import { RicosViewer as
|
|
1
|
+
import t, { useRef as N, useMemo as g, useCallback as h, useEffect as T } from "react";
|
|
2
|
+
import { RicosViewer as A } from "@wix/ricos/viewer";
|
|
3
3
|
import m from "classnames";
|
|
4
|
-
import {
|
|
5
|
-
import { u as V } from "./use-service-options-base-
|
|
6
|
-
import { D as d } from "./dropdown-field-headless-
|
|
7
|
-
import { C as
|
|
8
|
-
import { E as
|
|
9
|
-
import { H as
|
|
4
|
+
import { af as w, at as b, F as M, aj as y, ab as x, h as U } from "./form-Dt3W_RUv.js";
|
|
5
|
+
import { u as V } from "./use-service-options-base-_vksQyAH.js";
|
|
6
|
+
import { D as d } from "./dropdown-field-headless-CMvvmkUR.js";
|
|
7
|
+
import { C as B } from "./chevron-down-icon-CcpVm6B-.js";
|
|
8
|
+
import { E as H } from "./error-icon-hZxQ6DEy.js";
|
|
9
|
+
import { H as k } from "./custom-focus-class-_483Pkwp.js";
|
|
10
10
|
import { s as n } from "./field-rac.module-D06m9T9x.js";
|
|
11
|
-
import { y as
|
|
11
|
+
import { y as q, P as W, x as j, B as Q, o as Y, i as z } from "./form-element-classes-BhFk9Jrj.js";
|
|
12
12
|
const G = "00000000-0000-0000-0000-000000000000", J = (e) => {
|
|
13
13
|
const { actions: r } = w(), { t: C } = b(), { addOther: i, addOtherLabel: p } = e, c = p || C("add-other.default-other-option-label"), a = N(!0), E = g(() => {
|
|
14
14
|
var s;
|
|
@@ -56,7 +56,7 @@ const G = "00000000-0000-0000-0000-000000000000", J = (e) => {
|
|
|
56
56
|
L,
|
|
57
57
|
S
|
|
58
58
|
]);
|
|
59
|
-
|
|
59
|
+
T(() => {
|
|
60
60
|
if (!e.isEditor && l.length > 0) {
|
|
61
61
|
const s = i ? l.length - 1 : l.length;
|
|
62
62
|
S(s === 0);
|
|
@@ -72,7 +72,7 @@ const G = "00000000-0000-0000-0000-000000000000", J = (e) => {
|
|
|
72
72
|
}, [
|
|
73
73
|
R,
|
|
74
74
|
e.onFocus
|
|
75
|
-
]),
|
|
75
|
+
]), P = h(
|
|
76
76
|
(s) => {
|
|
77
77
|
e.onChange && e.onChange(s), a.current = !0;
|
|
78
78
|
},
|
|
@@ -86,7 +86,7 @@ const G = "00000000-0000-0000-0000-000000000000", J = (e) => {
|
|
|
86
86
|
options: l,
|
|
87
87
|
isEmpty: D,
|
|
88
88
|
onFocus: v,
|
|
89
|
-
onChange:
|
|
89
|
+
onChange: P,
|
|
90
90
|
shouldRender: I
|
|
91
91
|
};
|
|
92
92
|
}, o = ({ children: e }) => {
|
|
@@ -117,24 +117,24 @@ o.Trigger = d.Trigger;
|
|
|
117
117
|
o.Options = d.Options;
|
|
118
118
|
o.Description = d.Description;
|
|
119
119
|
o.Error = d.Error;
|
|
120
|
-
const K = ({ content: e, locale: r }) => /* @__PURE__ */ t.createElement(
|
|
120
|
+
const K = ({ content: e, locale: r }) => /* @__PURE__ */ t.createElement(A, {
|
|
121
121
|
content: e,
|
|
122
122
|
locale: r
|
|
123
123
|
}), X = () => /* @__PURE__ */ t.createElement(o, null, /* @__PURE__ */ t.createElement(o.Label, {
|
|
124
|
-
className: m(
|
|
124
|
+
className: m(q, n.label)
|
|
125
125
|
}, /* @__PURE__ */ t.createElement(o.Label.Required, {
|
|
126
126
|
className: m(W, n.requiredMark)
|
|
127
127
|
})), /* @__PURE__ */ t.createElement(o.Trigger, {
|
|
128
|
-
className: m(
|
|
129
|
-
}, /* @__PURE__ */ t.createElement(
|
|
128
|
+
className: m(j, n.input, n.dropdownTrigger)
|
|
129
|
+
}, /* @__PURE__ */ t.createElement(B, {
|
|
130
130
|
className: n.dropdownIcon
|
|
131
131
|
})), /* @__PURE__ */ t.createElement(o.Options, {
|
|
132
|
-
className: m(
|
|
132
|
+
className: m(Q, n.selectPopover, n.dropdownPopover)
|
|
133
133
|
}, /* @__PURE__ */ t.createElement(o.Options.Option, {
|
|
134
|
-
className: m(n.selectOption,
|
|
134
|
+
className: m(n.selectOption, k)
|
|
135
135
|
})), /* @__PURE__ */ t.createElement(o.Error, {
|
|
136
|
-
className: m(
|
|
137
|
-
}, /* @__PURE__ */ t.createElement(
|
|
136
|
+
className: m(Y, n.error)
|
|
137
|
+
}, /* @__PURE__ */ t.createElement(H, null), /* @__PURE__ */ t.createElement(o.Error.Text, null)), /* @__PURE__ */ t.createElement(o.Description, {
|
|
138
138
|
className: m(z, n.description)
|
|
139
139
|
}, K)), le = () => /* @__PURE__ */ t.createElement(X, null);
|
|
140
140
|
export {
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import e, { useEffect as _, useMemo as I } from "react";
|
|
2
2
|
import { RicosViewer as L } from "@wix/ricos/viewer";
|
|
3
3
|
import r from "classnames";
|
|
4
|
-
import { F as R,
|
|
5
|
-
import { u as F } from "./use-service-options-base-
|
|
6
|
-
import { C as a } from "./checkbox-group-field-headless-
|
|
4
|
+
import { F as R, aj as d, h as D } from "./form-Dt3W_RUv.js";
|
|
5
|
+
import { u as F } from "./use-service-options-base-_vksQyAH.js";
|
|
6
|
+
import { C as a } from "./checkbox-group-field-headless-BtorRj0k.js";
|
|
7
7
|
import { E as f } from "./error-icon-hZxQ6DEy.js";
|
|
8
8
|
import { C as N } from "./checkbox-indicator-module-classes-Bb3xB1ve.js";
|
|
9
9
|
import { s as i } from "./field-rac.module-D06m9T9x.js";
|
|
10
|
-
import { y as h,
|
|
10
|
+
import { y as h, P as M, T as b, V as A, x as T, o as v, i as x, U as P } from "./form-element-classes-BhFk9Jrj.js";
|
|
11
11
|
import { o as O } from "./options-rac.module-KM-VT_KY.js";
|
|
12
|
-
import { u as
|
|
12
|
+
import { u as y } from "./use-element-state-class-name-CeL6xkSj.js";
|
|
13
13
|
const k = (s) => {
|
|
14
14
|
var C;
|
|
15
15
|
const { isLoading: o, options: n, isEmpty: c, shouldRender: m, setOptions: l, setIsEmpty: E, setHasInitialDataLoaded: p } = F({
|
|
@@ -55,8 +55,8 @@ const V = ({ content: s, locale: o }) => /* @__PURE__ */ e.createElement(L, {
|
|
|
55
55
|
content: s,
|
|
56
56
|
locale: o
|
|
57
57
|
}), U = () => {
|
|
58
|
-
const s =
|
|
59
|
-
globalClasses:
|
|
58
|
+
const s = y({
|
|
59
|
+
globalClasses: P,
|
|
60
60
|
moduleClasses: N
|
|
61
61
|
});
|
|
62
62
|
return /* @__PURE__ */ e.createElement(t, null, /* @__PURE__ */ e.createElement(t.Label, {
|