@wix/form-elements 1.132.0 → 1.134.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-DMYXIOL3.js → appointment-rac-CZHb5jGz.js} +246 -246
- package/dist/component/{bookings-address-rac-D6Ot6vm7.js → bookings-address-rac-F39MfGmX.js} +1 -1
- package/dist/component/{bookings-email-rac-CkPflUxK.js → bookings-email-rac-D4CurQjr.js} +1 -1
- package/dist/component/{bookings-first-name-rac-BbDv4BQw.js → bookings-first-name-rac-Bz9o1eLl.js} +1 -1
- package/dist/component/{bookings-header-rac-DJodBCf4.js → bookings-header-rac-6mfX0WGf.js} +1 -1
- package/dist/component/{bookings-last-name-rac-C4PRt2XO.js → bookings-last-name-rac-CD1-B7Ao.js} +1 -1
- package/dist/component/{bookings-login-bar-rac-MPcFtzUB.js → bookings-login-bar-rac-2eQkfhBb.js} +17 -17
- package/dist/component/{bookings-phone-rac-BnaiOxWV.js → bookings-phone-rac-X6sSnHiH.js} +1 -1
- package/dist/component/{bookings-rich-text-rac-Cwp6pBC_.js → bookings-rich-text-rac-f2artJnn.js} +1 -1
- package/dist/component/{calendar.module-DnhTT4QT.js → calendar.module-CKCBG_Pg.js} +11 -11
- package/dist/component/{checkbox-field-rac-BA-67OHo.js → checkbox-field-rac-DoZ9bcw3.js} +26 -25
- package/dist/component/{checkbox-group-field-headless-B20gxYEt.js → checkbox-group-field-headless-B-d37T4z.js} +32 -31
- package/dist/component/{checkbox-group-field-rac--uloIFS6.js → checkbox-group-field-rac-0qYHz3g1.js} +6 -6
- package/dist/component/{checkbox-group-rac-CYt86YIr.js → checkbox-group-rac-BqUJdAju.js} +1 -1
- package/dist/component/{checkbox-indicator-module-classes-Bqo0QILF.js → checkbox-indicator-module-classes-6173wvuW.js} +1 -1
- package/dist/component/{checkbox-rac-4FLDh24V.js → checkbox-rac-BN-qNzpH.js} +1 -1
- package/dist/component/{contacts-address-rac-BU2H0MEF.js → contacts-address-rac-B7vWOTFf.js} +1 -1
- package/dist/component/{contacts-birthdate-rac-DXITbTMA.js → contacts-birthdate-rac-Dl0OatzW.js} +1 -1
- package/dist/component/{contacts-company-rac-D_BKjGc8.js → contacts-company-rac-DIeGU0Bf.js} +1 -1
- package/dist/component/{contacts-email-rac-CfYSUKJ3.js → contacts-email-rac-BCH6ogWv.js} +1 -1
- package/dist/component/{contacts-first-name-rac-DYZUgWsB.js → contacts-first-name-rac-Cx-USWmx.js} +1 -1
- package/dist/component/{contacts-last-name-rac-m-zqIpMB.js → contacts-last-name-rac-CUZdJI9J.js} +1 -1
- package/dist/component/{contacts-phone-rac-nJDsO_Y8.js → contacts-phone-rac-hNCW_2UC.js} +1 -1
- package/dist/component/{contacts-position-rac-CAGdJXSW.js → contacts-position-rac-CJfOgxZc.js} +1 -1
- package/dist/component/{contacts-subscribe-rac-jwP65ngO.js → contacts-subscribe-rac-69721_c9.js} +1 -1
- package/dist/component/{contacts-tax-id-rac-DUOQlZ3c.js → contacts-tax-id-rac-CXXBqWIm.js} +1 -1
- package/dist/component/{date-availability-EbJKjV1U.js → date-availability-NQGPIrdZ.js} +1 -1
- package/dist/component/{date-input-field-rac-CZRcW-0J.js → date-input-field-rac-C-we-suG.js} +60 -60
- package/dist/component/{date-input-rac-CasoMjfj.js → date-input-rac-Cif7Bqxc.js} +1 -1
- package/dist/component/{date-picker-field-rac-V9MRWrj-.js → date-picker-field-rac-CHDkTXVH.js} +63 -63
- package/dist/component/{date-picker-rac-Cu5wTh1_.js → date-picker-rac-DdhgbY6W.js} +1 -1
- package/dist/component/{date-time-input-field-rac-YGqLIle1.js → date-time-input-field-rac-BjtDbiqE.js} +7 -7
- package/dist/component/{date-time-input-rac-DCEyREJI.js → date-time-input-rac-BDP5SN-i.js} +1 -1
- package/dist/component/{dext-checkbox-group-rac-DLB5mAwB.js → dext-checkbox-group-rac-CkF41kIR.js} +2 -2
- package/dist/component/{dext-checkbox-rac-DFV7ixAO.js → dext-checkbox-rac-DjYpsxmq.js} +1 -1
- package/dist/component/{dext-date-picker-rac-CEL2X1ID.js → dext-date-picker-rac-BxXZLogr.js} +1 -1
- package/dist/component/{dext-date-time-input-rac-yLdCLDbQ.js → dext-date-time-input-rac-e4y_JjEx.js} +1 -1
- package/dist/component/{dext-dropdown-rac-ti_P0L_X.js → dext-dropdown-rac-DsjB3ZX7.js} +1 -1
- package/dist/component/{dext-email-rac-CnvdVz-J.js → dext-email-rac-ClPp1g4D.js} +1 -1
- package/dist/component/{dext-number-input-rac-CmGt691Y.js → dext-number-input-rac-D2nZNzyN.js} +1 -1
- package/dist/component/{dext-phone-rac-JEZkz4gZ.js → dext-phone-rac-PNiQZ-Lr.js} +1 -1
- package/dist/component/{dext-radio-group-rac-CUk6wUPl.js → dext-radio-group-rac-DUltmMHM.js} +2 -2
- package/dist/component/{dext-rating-input-rac-Q1J5oqhZ.js → dext-rating-input-rac-C_apsfGT.js} +1 -1
- package/dist/component/{dext-tags-rac-DU9FLeGu.js → dext-tags-rac-DkB_CmOD.js} +2 -2
- package/dist/component/{dext-text-area-rac-D1FOCK6O.js → dext-text-area-rac-CfoIK0S7.js} +1 -1
- package/dist/component/{dext-text-input-rac-Dzb5lQjK.js → dext-text-input-rac-CIOXlk6U.js} +1 -1
- package/dist/component/{dext-url-input-rac-cRLFpiNR.js → dext-url-input-rac-UHJAs3ck.js} +1 -1
- package/dist/component/{donation-rac-CV-PnK1D.js → donation-rac-BJfvVi_d.js} +49 -52
- package/dist/component/{dropdown-field-headless-D1e2XbNj.js → dropdown-field-headless-0DB-T-3t.js} +5 -5
- package/dist/component/{dropdown-field-rac-DkeVkP9c.js → dropdown-field-rac-DB-pd2a8.js} +5 -5
- package/dist/component/{dropdown-rac-ChlsWwyp.js → dropdown-rac-4T4zRBVy.js} +1 -1
- package/dist/component/{ecom-address-rac-DvHJ4Ym-.js → ecom-address-rac-BjWD1sRX.js} +1 -1
- package/dist/component/{ecom-subscription-checkbox-rac-D3LX7FVx.js → ecom-subscription-checkbox-rac-CYCufut6.js} +2 -2
- package/dist/component/{email-input-field-rac-B8OCp4L9.js → email-input-field-rac-DlLoY9jB.js} +4 -4
- package/dist/component/{events-repeater-rac-BO0-VcV3.js → events-repeater-rac-CPHJbWcZ.js} +48 -47
- package/dist/component/{events-rsvp-rac-CnULPDrG.js → events-rsvp-rac-NXf8Fv3A.js} +4 -4
- package/dist/component/{field-error-headless-DwlihJqC.js → field-error-headless-C-wyL0uw.js} +1 -1
- package/dist/component/{field-label-headless-C_cMy8vP.js → field-label-headless-32mvEUId.js} +1 -1
- package/dist/component/field-rac.module-DfEb7pBp.js +25 -0
- package/dist/component/file-upload-rac-BicD_Bhj.js +566 -0
- package/dist/component/{fixed-payment-rac-ameH1syZ.js → fixed-payment-rac-DxHalHUv.js} +4 -4
- package/dist/component/{form-GcotNutn.js → form-B2wZnWX9.js} +69 -69
- package/dist/component/form.css +1 -1
- package/dist/component/form.js +1 -1
- package/dist/component/{header-field-rac-D2fpKxIz.js → header-field-rac-C47Te_oW.js} +2 -2
- package/dist/component/{header-rac-DdWMo2xZ.js → header-rac-ChDYKTx5.js} +1 -1
- package/dist/component/{image-choice-rac-CBaUQX8m.js → image-choice-rac-CqTBWpcY.js} +56 -59
- package/dist/component/{index-nOv_Pf2O.js → index-BF_Aifc-.js} +4 -4
- package/dist/component/{index-CAktfVsx.js → index-Br8x_xx8.js} +2 -2
- package/dist/component/{isObjectLike-t9SwprFt.js → isObjectLike-D4VXbd0T.js} +1 -1
- package/dist/component/{multiline-address-field-rac-DpMPlfjM.js → multiline-address-field-rac-DYcfzGJb.js} +8 -8
- package/dist/component/{multiline-address-rac-D1XtQuAy.js → multiline-address-rac-DcGDGyL-.js} +1 -1
- package/dist/component/{number-input-field-rac-CFFU1JrK.js → number-input-field-rac-C_Fh8oeD.js} +5 -5
- package/dist/component/{number-input-rac-BDs3ngbf.js → number-input-rac-J2tCaAYx.js} +1 -1
- package/dist/component/{password-rac-jRXGfQn_.js → password-rac-wlfBhft8.js} +5 -5
- package/dist/component/{payment-input-rac-BAkJqSyU.js → payment-input-rac-DKxy3uE0.js} +5 -5
- package/dist/component/{phone-input-field-rac-D_1jDl7O.js → phone-input-field-rac-ClXUOLpB.js} +117 -117
- package/dist/component/{phone-rac-DyinFMYS.js → phone-rac-D0-Poz1e.js} +1 -1
- package/dist/component/{product-list-rac-BkUvhZMi.js → product-list-rac-TF5fgLyc.js} +69 -68
- package/dist/component/{quiz-radio-group-rac-Cha9jkTD.js → quiz-radio-group-rac-BX4V_6wg.js} +1 -1
- package/dist/component/{radio-button-module-classes-WQaDTnal.js → radio-button-module-classes-D8UpzVUK.js} +18 -17
- package/dist/component/{radio-group-field-rac-Cr35UXlg.js → radio-group-field-rac-C0zCVtjj.js} +5 -5
- package/dist/component/{radio-group-rac-BGRYJcwQ.js → radio-group-rac-DrKqgPRT.js} +1 -1
- package/dist/component/{rating-input-field-rac-C_X51vxl.js → rating-input-field-rac-DjxfTgv5.js} +35 -33
- package/dist/component/{rating-input-rac-B-usRVpy.js → rating-input-rac-DO4Bpdj3.js} +1 -1
- package/dist/component/{rich-content-rac.module-Bed3DsK7.js → rich-content-rac.module-DUNKiTkT.js} +1 -1
- package/dist/component/{rich-text-field-rac-SHHiInVy.js → rich-text-field-rac-DIOTzVwj.js} +2 -2
- package/dist/component/{rich-text-rac-CND63R3E.js → rich-text-rac-C_E_vEGz.js} +1 -1
- package/dist/component/{service-dropdown-rac-BdfxJ1Zq.js → service-dropdown-rac-B3gQT9Tj.js} +6 -6
- package/dist/component/{services-multi-choice-rac-D6BdQ2xE.js → services-multi-choice-rac-D40hZhBB.js} +7 -7
- package/dist/component/{signature-rac-xuYTsTUB.js → signature-rac-CKXpb2WN.js} +307 -301
- package/dist/component/{submit-button-rac-7YwnpPtu.js → submit-button-rac-CDS-vtXq.js} +39 -39
- package/dist/component/{tags-field-rac-ChzPiPvQ.js → tags-field-rac-CdQWq8k5.js} +72 -75
- package/dist/component/{tags-rac-BScWp3da.js → tags-rac-BwChqdGx.js} +1 -1
- package/dist/component/{text-area-field-rac-CDEJUPgV.js → text-area-field-rac-VCFJuHx4.js} +5 -5
- package/dist/component/{text-area-rac-CwiF24AW.js → text-area-rac-BICVNsdn.js} +1 -1
- package/dist/component/{text-input-field-rac-vg2b_7it.js → text-input-field-rac-C9gyRhcK.js} +4 -4
- package/dist/component/{text-input-headless-BdD-dAx2.js → text-input-headless-BdkaD-re.js} +3 -3
- package/dist/component/{text-input-rac-yX6rdvri.js → text-input-rac-B7buOGbq.js} +1 -1
- package/dist/component/{time-input-rac-B_kYmOwq.js → time-input-rac-CSFhEYi0.js} +5 -5
- package/dist/component/{url-input-field-rac-NJqyqxLi.js → url-input-field-rac-BIXokgHy.js} +5 -5
- package/dist/component/{url-input-rac-BqIKc9nY.js → url-input-rac-tTN0GaTH.js} +1 -1
- package/dist/component/{use-dropdown-option-class-name-DFW55r3E.js → use-dropdown-option-class-name-C6zB6TNA.js} +3 -3
- package/dist/component/{use-dropdown-trigger-class-name-Df-nqoeG.js → use-dropdown-trigger-class-name-CEq68SuK.js} +2 -2
- package/dist/component/use-element-state-class-name-BFZzVwqe.js +23 -0
- package/dist/component/use-hoverable-input-class-name-CzZmczhf.js +25 -0
- package/dist/component/{use-service-options-base-B64QpFwc.js → use-service-options-base-DOCVW9ax.js} +1 -1
- package/dist/component/use-text-input-class-name-BNX3qkmh.js +6 -0
- package/package.json +2 -2
- package/dist/component/field-rac.module-BIBNQEOK.js +0 -25
- package/dist/component/file-upload-rac-CjBKgUCk.js +0 -561
- package/dist/component/use-element-state-class-name-D008EeZn.js +0 -20
- package/dist/component/use-hoverable-input-class-name-CVtF0FGy.js +0 -23
- package/dist/component/use-text-input-class-name-BSDU7QEO.js +0 -6
|
@@ -1,41 +1,41 @@
|
|
|
1
|
-
import t, { useMemo as $, useCallback as M, useRef as
|
|
1
|
+
import t, { useMemo as $, useCallback as M, useRef as x } from "react";
|
|
2
2
|
import { RicosViewer as z } from "@wix/ricos/viewer";
|
|
3
3
|
import b from "classnames";
|
|
4
|
-
import { CheckboxField as G, CheckboxButton as j, NumberField as X, Group as J, Button as
|
|
5
|
-
import { bh as
|
|
4
|
+
import { CheckboxField as G, CheckboxButton as j, NumberField as X, Group as J, Button as Q, Input as W } from "react-aria-components";
|
|
5
|
+
import { bh as U, be as Y, b9 as V, br as Z, bj as ee, I as te, U as ne, L as ae, O as oe, N as re, H as se, v as le, p as ie, M as ce } from "./form-B2wZnWX9.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-32mvEUId.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-C-wyL0uw.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
|
-
import { C as Ie } from "./checkbox-indicator-module-classes-
|
|
15
|
-
import { s as
|
|
16
|
-
import { o as
|
|
17
|
-
import { u as Oe } from "./use-element-state-class-name-
|
|
14
|
+
import { C as Ie } from "./checkbox-indicator-module-classes-6173wvuW.js";
|
|
15
|
+
import { s as q } from "./field-rac.module-DfEb7pBp.js";
|
|
16
|
+
import { o as w } from "./options-rac.module-_THNq6Qq.js";
|
|
17
|
+
import { u as Oe } from "./use-element-state-class-name-BFZzVwqe.js";
|
|
18
18
|
var Le = /* @__PURE__ */ (function(e) {
|
|
19
19
|
return e.crop = "CROP", e.fit = "FIT", e;
|
|
20
|
-
})({}),
|
|
20
|
+
})({}), k = /* @__PURE__ */ (function(e) {
|
|
21
21
|
return e.oneByOne = "one-by-one", e.onlyOne = "only-one", e.many = "many", e;
|
|
22
22
|
})({});
|
|
23
23
|
function Ce({ maxItems: e, products: a } = {}) {
|
|
24
|
-
return e === 1 ?
|
|
24
|
+
return e === 1 ? k.onlyOne : a != null && a.length && a.every((s) => {
|
|
25
25
|
var n;
|
|
26
|
-
return typeof ((n =
|
|
27
|
-
}) ?
|
|
26
|
+
return typeof ((n = s.quantityLimit) == null ? void 0 : n.maximum) > "u";
|
|
27
|
+
}) ? k.many : k.oneByOne;
|
|
28
28
|
}
|
|
29
29
|
const o = ({ children: e }) => {
|
|
30
30
|
var D;
|
|
31
|
-
const { id: a, value:
|
|
32
|
-
|
|
33
|
-
]),
|
|
34
|
-
const d = i.filter((K) => K.productId !== S.productId),
|
|
31
|
+
const { id: a, value: s, onChange: n, disabled: r, readOnly: c, required: y, onBlur: O, onFocus: l, hasError: u, validation: m, FieldLayout: p } = U(), { inputId: v, labelId: N, ariaDescribedBy: h } = Y(), _ = I(e, o.Label), g = I(e, o.Options), A = I(e, o.Description), L = I(e, o.Error), i = $(() => s || [], [
|
|
32
|
+
s
|
|
33
|
+
]), T = Ce((D = m == null ? void 0 : m.predefined) == null ? void 0 : D.paymentOptions) === k.many, F = M((S, R) => {
|
|
34
|
+
const d = i.filter((K) => K.productId !== S.productId), B = R ? [
|
|
35
35
|
...d,
|
|
36
36
|
S
|
|
37
37
|
] : d;
|
|
38
|
-
n == null || n(
|
|
38
|
+
n == null || n(B);
|
|
39
39
|
}, [
|
|
40
40
|
i,
|
|
41
41
|
n
|
|
@@ -44,74 +44,74 @@ const o = ({ children: e }) => {
|
|
|
44
44
|
fieldId: a,
|
|
45
45
|
renderLabel: () => _,
|
|
46
46
|
renderInput: () => /* @__PURE__ */ t.createElement(ye, {
|
|
47
|
-
id:
|
|
47
|
+
id: v,
|
|
48
48
|
ariaLabelledBy: N,
|
|
49
49
|
ariaDescribedBy: h,
|
|
50
50
|
required: y,
|
|
51
51
|
onBlur: O,
|
|
52
|
-
onFocus:
|
|
52
|
+
onFocus: l
|
|
53
53
|
}, g ? f(g, {
|
|
54
|
-
allowMany:
|
|
54
|
+
allowMany: T,
|
|
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, A)
|
|
62
62
|
});
|
|
63
|
-
},
|
|
64
|
-
const { allowMany: n, productValues: r, onProductChange: c, disabled: y, readOnly: O, hasError:
|
|
63
|
+
}, H = ({ children: e, className: a, ...s }) => {
|
|
64
|
+
const { allowMany: n, productValues: r, onProductChange: c, disabled: y, readOnly: O, hasError: l } = s, { 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, T, F, D, S;
|
|
69
|
+
const A = ((S = (D = (F = (T = (C = m == null ? void 0 : m.predefined) == null ? void 0 : C.paymentOptions) == null ? void 0 : T.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: A,
|
|
74
74
|
quantity: i == null ? void 0 : i.quantity,
|
|
75
75
|
isSelected: !!i,
|
|
76
76
|
allowMany: n,
|
|
77
77
|
onProductChange: c,
|
|
78
78
|
disabled: y,
|
|
79
79
|
readOnly: O,
|
|
80
|
-
hasError:
|
|
80
|
+
hasError: l,
|
|
81
81
|
currencyAriaLabel: L,
|
|
82
82
|
imageResize: p,
|
|
83
83
|
isFirst: g === 0
|
|
84
84
|
});
|
|
85
85
|
}));
|
|
86
|
-
}, E = ({ children: e, className: a, ...
|
|
87
|
-
const { option: n, price: r, quantity: c = 0, isSelected: y, allowMany: O, onProductChange:
|
|
86
|
+
}, E = ({ children: e, className: a, ...s }) => {
|
|
87
|
+
const { option: n, price: r, quantity: c = 0, isSelected: y, allowMany: O, onProductChange: l, disabled: u, readOnly: m, hasError: p, currencyAriaLabel: v, imageResize: N, isFirst: h } = s, { id: _ } = U(), g = x(null), A = x(null), L = I(e, E.Image), i = I(e, E.Label), C = I(e, E.Price), T = 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 ?? A.current) == null || d.focus({
|
|
91
91
|
preventScroll: !0
|
|
92
92
|
}));
|
|
93
93
|
}, _);
|
|
94
94
|
const D = M((d) => {
|
|
95
|
-
|
|
95
|
+
l({
|
|
96
96
|
productId: n.value,
|
|
97
97
|
price: r,
|
|
98
98
|
quantity: 1
|
|
99
99
|
}, d);
|
|
100
100
|
}, [
|
|
101
|
-
|
|
101
|
+
l,
|
|
102
102
|
n.value,
|
|
103
103
|
r
|
|
104
104
|
]), S = M((d) => {
|
|
105
|
-
|
|
105
|
+
l({
|
|
106
106
|
productId: n.value,
|
|
107
107
|
price: r,
|
|
108
108
|
quantity: d
|
|
109
109
|
}, d > 0);
|
|
110
110
|
}, [
|
|
111
|
-
|
|
111
|
+
l,
|
|
112
112
|
n.value,
|
|
113
113
|
r
|
|
114
|
-
]), R = `${n.label} ${
|
|
114
|
+
]), R = `${n.label} ${v} ${r}`;
|
|
115
115
|
return O ? /* @__PURE__ */ t.createElement("div", {
|
|
116
116
|
className: a,
|
|
117
117
|
"data-hook": "product"
|
|
@@ -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 ? A : void 0
|
|
133
133
|
}) : null) : /* @__PURE__ */ t.createElement(G, {
|
|
134
134
|
isSelected: y,
|
|
135
135
|
onChange: D,
|
|
@@ -141,26 +141,27 @@ const o = ({ children: e }) => {
|
|
|
141
141
|
ref: g,
|
|
142
142
|
className: a,
|
|
143
143
|
"data-hook": "product"
|
|
144
|
-
}, ({ isHovered: d }) => /* @__PURE__ */ t.createElement(t.Fragment, null, L ? f(L, {
|
|
144
|
+
}, ({ isHovered: d, isFocused: B }) => /* @__PURE__ */ t.createElement(t.Fragment, null, L ? f(L, {
|
|
145
145
|
option: n,
|
|
146
146
|
imageResize: N
|
|
147
147
|
}) : null, i ? f(i, {
|
|
148
148
|
label: n.label
|
|
149
149
|
}) : null, C ? f(C, {
|
|
150
150
|
price: r
|
|
151
|
-
}) : null, f(
|
|
151
|
+
}) : null, f(T, {
|
|
152
152
|
isSelected: y,
|
|
153
|
-
isHovered: d
|
|
153
|
+
isHovered: d,
|
|
154
|
+
isFocused: B
|
|
154
155
|
}))));
|
|
155
156
|
}, Re = ({ className: e, ...a }) => {
|
|
156
|
-
var
|
|
157
|
-
const { option:
|
|
157
|
+
var l;
|
|
158
|
+
const { option: s, imageResize: n } = a, r = (l = s.media) == null ? void 0 : l.image;
|
|
158
159
|
if (!r)
|
|
159
160
|
return null;
|
|
160
161
|
const c = n === Le.fit, y = me(r, 96, 96, c ? "fit" : "fill");
|
|
161
162
|
if (!y)
|
|
162
163
|
return null;
|
|
163
|
-
const O = r.altText ||
|
|
164
|
+
const O = r.altText || s.label || "";
|
|
164
165
|
return /* @__PURE__ */ t.createElement("img", {
|
|
165
166
|
className: e,
|
|
166
167
|
src: y,
|
|
@@ -169,14 +170,14 @@ const o = ({ children: e }) => {
|
|
|
169
170
|
"data-hook": "product-image"
|
|
170
171
|
});
|
|
171
172
|
}, ge = ({ className: e, ...a }) => {
|
|
172
|
-
const { label:
|
|
173
|
+
const { label: s } = a;
|
|
173
174
|
return /* @__PURE__ */ t.createElement("span", {
|
|
174
175
|
className: e,
|
|
175
176
|
"data-hook": "product-label"
|
|
176
|
-
},
|
|
177
|
+
}, s || "");
|
|
177
178
|
}, Fe = ({ className: e, ...a }) => {
|
|
178
|
-
const { price:
|
|
179
|
-
amount:
|
|
179
|
+
const { price: s } = a, { currency: n, regionalFormat: r } = V(), c = pe({
|
|
180
|
+
amount: s,
|
|
180
181
|
currency: n == null ? void 0 : n.code,
|
|
181
182
|
locale: r
|
|
182
183
|
});
|
|
@@ -185,7 +186,7 @@ const o = ({ children: e }) => {
|
|
|
185
186
|
"data-hook": "product-price"
|
|
186
187
|
}, c);
|
|
187
188
|
}, De = ({ className: e, ...a }) => {
|
|
188
|
-
const { quantity:
|
|
189
|
+
const { quantity: s, onQuantityChange: n, disabled: r, readOnly: c, hasError: y, ariaLabel: O, inputRef: l } = a, u = M((p) => {
|
|
189
190
|
n(p < 0 ? 0 : p);
|
|
190
191
|
}, [
|
|
191
192
|
n
|
|
@@ -195,7 +196,7 @@ const o = ({ children: e }) => {
|
|
|
195
196
|
u
|
|
196
197
|
]);
|
|
197
198
|
return /* @__PURE__ */ t.createElement(X, {
|
|
198
|
-
value:
|
|
199
|
+
value: s,
|
|
199
200
|
onChange: u,
|
|
200
201
|
minValue: 0,
|
|
201
202
|
step: 1,
|
|
@@ -207,11 +208,11 @@ const o = ({ children: e }) => {
|
|
|
207
208
|
"data-hook": "product-quantity"
|
|
208
209
|
}, /* @__PURE__ */ t.createElement(J, {
|
|
209
210
|
onKeyDown: m
|
|
210
|
-
}, /* @__PURE__ */ t.createElement(
|
|
211
|
+
}, /* @__PURE__ */ t.createElement(Q, {
|
|
211
212
|
slot: "decrement"
|
|
212
213
|
}, "-"), /* @__PURE__ */ t.createElement(W, {
|
|
213
|
-
ref:
|
|
214
|
-
}), /* @__PURE__ */ t.createElement(
|
|
214
|
+
ref: l
|
|
215
|
+
}), /* @__PURE__ */ t.createElement(Q, {
|
|
215
216
|
slot: "increment"
|
|
216
217
|
}, "+")));
|
|
217
218
|
};
|
|
@@ -220,21 +221,21 @@ E.Label = ge;
|
|
|
220
221
|
E.Price = Fe;
|
|
221
222
|
E.Input = be;
|
|
222
223
|
E.Quantity = De;
|
|
223
|
-
|
|
224
|
+
H.Option = E;
|
|
224
225
|
o.Label = ue;
|
|
225
|
-
o.Options =
|
|
226
|
+
o.Options = H;
|
|
226
227
|
o.Option = E;
|
|
227
228
|
o.Description = de;
|
|
228
229
|
o.Error = Ee;
|
|
229
|
-
const Se = "
|
|
230
|
+
const Se = "_options_519is_1", Pe = "_option_519is_1", Ne = "_optionInput_519is_21", he = "_optionImage_519is_32", Ae = "_optionLabel_519is_66", Te = "_optionPrice_519is_73", qe = "_quantity_519is_87", P = {
|
|
230
231
|
options: Se,
|
|
231
232
|
option: Pe,
|
|
232
233
|
optionInput: Ne,
|
|
233
234
|
optionImage: he,
|
|
234
|
-
optionLabel:
|
|
235
|
-
optionPrice:
|
|
236
|
-
quantity:
|
|
237
|
-
},
|
|
235
|
+
optionLabel: Ae,
|
|
236
|
+
optionPrice: Te,
|
|
237
|
+
quantity: qe
|
|
238
|
+
}, ve = ({ content: e, locale: a }) => /* @__PURE__ */ t.createElement(z, {
|
|
238
239
|
content: e,
|
|
239
240
|
locale: a
|
|
240
241
|
}), Me = () => {
|
|
@@ -243,28 +244,28 @@ const Se = "_options_11x4v_1", Pe = "_option_11x4v_1", Ne = "_optionInput_11x4v_
|
|
|
243
244
|
moduleClasses: Ie
|
|
244
245
|
});
|
|
245
246
|
return /* @__PURE__ */ t.createElement(o, null, /* @__PURE__ */ t.createElement(o.Label, {
|
|
246
|
-
className: b(te,
|
|
247
|
+
className: b(te, q.label)
|
|
247
248
|
}, /* @__PURE__ */ t.createElement(o.Label.Required, {
|
|
248
|
-
className: b(ne,
|
|
249
|
+
className: b(ne, q.requiredMark)
|
|
249
250
|
})), /* @__PURE__ */ t.createElement(o.Options, {
|
|
250
|
-
className: b(ae,
|
|
251
|
+
className: b(ae, w.options, P.options)
|
|
251
252
|
}, /* @__PURE__ */ t.createElement(o.Option, {
|
|
252
|
-
className: b(
|
|
253
|
+
className: b(q.checkbox, P.option)
|
|
253
254
|
}, /* @__PURE__ */ t.createElement(o.Option.Image, {
|
|
254
255
|
className: P.optionImage
|
|
255
256
|
}), /* @__PURE__ */ t.createElement(o.Option.Label, {
|
|
256
|
-
className: b(oe,
|
|
257
|
+
className: b(oe, w.optionLabel, P.optionLabel)
|
|
257
258
|
}), /* @__PURE__ */ t.createElement(o.Option.Price, {
|
|
258
259
|
className: b(re, P.optionPrice)
|
|
259
260
|
}), /* @__PURE__ */ t.createElement(o.Option.Input, {
|
|
260
261
|
className: (a) => b(e(a), P.optionInput)
|
|
261
262
|
}), /* @__PURE__ */ t.createElement(o.Option.Quantity, {
|
|
262
|
-
className: b(
|
|
263
|
+
className: b(se, q.inputGroup, P.quantity)
|
|
263
264
|
}))), /* @__PURE__ */ t.createElement(o.Error, {
|
|
264
|
-
className: b(
|
|
265
|
+
className: b(le, q.error)
|
|
265
266
|
}, /* @__PURE__ */ t.createElement(fe, null), /* @__PURE__ */ t.createElement(o.Error.Text, null)), /* @__PURE__ */ t.createElement(o.Description, {
|
|
266
|
-
className: b(ie,
|
|
267
|
-
},
|
|
267
|
+
className: b(ie, q.description)
|
|
268
|
+
}, ve));
|
|
268
269
|
}, Ze = () => /* @__PURE__ */ t.createElement(Me, null);
|
|
269
270
|
export {
|
|
270
271
|
Ze as ProductListRAC
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import a, { useRef as
|
|
1
|
+
import a, { useRef as F, useState as V, useEffect as T, useCallback as B } from "react";
|
|
2
2
|
import { RadioGroup as H, RadioField as k, RadioButton as A, TextField as G, Input as P } from "react-aria-components";
|
|
3
|
-
import { bh as g, be as $, br as
|
|
3
|
+
import { bh as g, be as $, br as D, bj as x } from "./form-B2wZnWX9.js";
|
|
4
4
|
import { f as d, a as v } from "./find-child-C60k4CxG.js";
|
|
5
|
-
import { D as U, E as j } from "./field-error-headless-
|
|
6
|
-
import { L as M } from "./field-label-headless-
|
|
5
|
+
import { D as U, E as j } from "./field-error-headless-C-wyL0uw.js";
|
|
6
|
+
import { L as M } from "./field-label-headless-32mvEUId.js";
|
|
7
7
|
import { S as w } from "./selection-indicator-XQ8MYHUQ.js";
|
|
8
|
-
const L = "Other", z = (e, t) => e == null ? void 0 : e.find((n) => (n.value ?? n.label) === t),
|
|
8
|
+
const L = "Other", z = (e, t) => e == null ? void 0 : e.find((n) => (n.value ?? n.label) === t), S = (e, t) => !!t && !z(e, t), J = (e, t) => {
|
|
9
9
|
const l = t ? t.length + 2 : 0;
|
|
10
10
|
return e.slice(l);
|
|
11
11
|
}, i = ({ children: e, className: t }) => {
|
|
12
|
-
const { id: n, value: l, onChange: O, disabled: p, readOnly: f, required: b, onBlur: E, onFocus: m, hasError: r, FieldLayout: c, options: o } = g(), { inputId: h, labelId: C, ariaDescribedBy: I } = $(), s = d(e, i.Label), _ = d(e, i.Options),
|
|
12
|
+
const { id: n, value: l, onChange: O, disabled: p, readOnly: f, required: b, onBlur: E, onFocus: m, hasError: r, FieldLayout: c, options: o } = g(), { inputId: h, labelId: C, ariaDescribedBy: I } = $(), s = d(e, i.Label), _ = d(e, i.Options), R = d(e, i.Description), q = d(e, i.Error), N = S(o, l) ? L : l || null;
|
|
13
13
|
return /* @__PURE__ */ a.createElement(c, {
|
|
14
14
|
fieldId: n,
|
|
15
15
|
renderLabel: () => v(s, {
|
|
@@ -29,10 +29,10 @@ const L = "Other", z = (e, t) => e == null ? void 0 : e.find((n) => (n.value ??
|
|
|
29
29
|
onBlur: E,
|
|
30
30
|
onFocus: m
|
|
31
31
|
}, _),
|
|
32
|
-
renderDescription: () => /* @__PURE__ */ a.createElement(a.Fragment, null, q,
|
|
32
|
+
renderDescription: () => /* @__PURE__ */ a.createElement(a.Fragment, null, q, R)
|
|
33
33
|
});
|
|
34
34
|
}, K = ({ children: e, className: t }) => {
|
|
35
|
-
const { options: n, addOther: l, addOtherLabel: O, id: p, numberOfColumns: f, hasError: b } = g(), { t: E } =
|
|
35
|
+
const { options: n, addOther: l, addOtherLabel: O, id: p, numberOfColumns: f, hasError: b } = g(), { t: E } = D(), m = d(e, i.Option), r = F(null), c = O || E("add-other.default-other-option-label") || L;
|
|
36
36
|
return x(() => {
|
|
37
37
|
var o;
|
|
38
38
|
(o = r.current) == null || o.focus();
|
|
@@ -54,7 +54,7 @@ const L = "Other", z = (e, t) => e == null ? void 0 : e.find((n) => (n.value ??
|
|
|
54
54
|
}));
|
|
55
55
|
}, u = ({ children: e, className: t, ...n }) => {
|
|
56
56
|
var I;
|
|
57
|
-
const { value: l, label: O, isOther: p = !1, radioRef: f } = n, { value: b, options: E } = g(), m = d(e, u.Label), r = d(e, u.Input), c = d(e, u.Control), o = d(e, u.OtherInput), h = p ?
|
|
57
|
+
const { value: l, label: O, isOther: p = !1, radioRef: f } = n, { value: b, options: E } = g(), m = d(e, u.Label), r = d(e, u.Input), c = d(e, u.Control), o = d(e, u.OtherInput), h = p ? S(E, b) : b === l, C = (I = r == null ? void 0 : r.props) == null ? void 0 : I.className;
|
|
58
58
|
return /* @__PURE__ */ a.createElement("div", {
|
|
59
59
|
className: t
|
|
60
60
|
}, /* @__PURE__ */ a.createElement(k, {
|
|
@@ -62,9 +62,10 @@ const L = "Other", z = (e, t) => e == null ? void 0 : e.find((n) => (n.value ??
|
|
|
62
62
|
}, /* @__PURE__ */ a.createElement(A, {
|
|
63
63
|
ref: f,
|
|
64
64
|
className: C
|
|
65
|
-
}, ({ isSelected: s, isHovered: _ }) => /* @__PURE__ */ a.createElement(a.Fragment, null, v(c, {
|
|
65
|
+
}, ({ isSelected: s, isHovered: _, isFocused: R }) => /* @__PURE__ */ a.createElement(a.Fragment, null, v(c, {
|
|
66
66
|
isSelected: s,
|
|
67
|
-
isHovered: _
|
|
67
|
+
isHovered: _,
|
|
68
|
+
isFocused: R
|
|
68
69
|
}), v(m, {
|
|
69
70
|
label: O
|
|
70
71
|
})))), p && h && o);
|
|
@@ -74,7 +75,7 @@ const L = "Other", z = (e, t) => e == null ? void 0 : e.find((n) => (n.value ??
|
|
|
74
75
|
className: e
|
|
75
76
|
}, n);
|
|
76
77
|
}, W = (e) => null, X = ({ className: e }) => {
|
|
77
|
-
const { value: t, onChange: n, addOtherLabel: l, addOtherPlaceholder: O, otherInputCharacterLimit: p, disabled: f, readOnly: b, options: E } = g(), { t: m } =
|
|
78
|
+
const { value: t, onChange: n, addOtherLabel: l, addOtherPlaceholder: O, otherInputCharacterLimit: p, disabled: f, readOnly: b, options: E } = g(), { t: m } = D(), r = F(null), c = S(E, t), o = l || m("add-other.default-other-option-label") || L, [h, C] = V(c && t ? J(t, l) : "");
|
|
78
79
|
T(() => {
|
|
79
80
|
var s;
|
|
80
81
|
c && r.current && ((s = r.current) == null || s.focus());
|
|
@@ -111,7 +112,7 @@ i.Options = K;
|
|
|
111
112
|
i.Option = u;
|
|
112
113
|
i.Description = U;
|
|
113
114
|
i.Error = j;
|
|
114
|
-
const Y = "_labelImage_1bq4s_1", Z = "_option_1bq4s_26", ee = "_optionInput_1bq4s_32", te = "_optionControl_1bq4s_50", oe = "_optionControlHover_1bq4s_72", ne = "_optionControlSelected_1bq4s_90", le = "_optionLabel_1bq4s_125",
|
|
115
|
+
const Y = "_labelImage_1bq4s_1", Z = "_option_1bq4s_26", ee = "_optionInput_1bq4s_32", te = "_optionControl_1bq4s_50", oe = "_optionControlHover_1bq4s_72", ne = "_optionControlSelected_1bq4s_90", le = "_optionLabel_1bq4s_125", y = {
|
|
115
116
|
labelImage: Y,
|
|
116
117
|
option: Z,
|
|
117
118
|
optionInput: ee,
|
|
@@ -120,12 +121,12 @@ const Y = "_labelImage_1bq4s_1", Z = "_option_1bq4s_26", ee = "_optionInput_1bq4
|
|
|
120
121
|
optionControlSelected: ne,
|
|
121
122
|
optionLabel: le
|
|
122
123
|
}, pe = {
|
|
123
|
-
base:
|
|
124
|
-
selected:
|
|
125
|
-
hover:
|
|
124
|
+
base: y.optionControl,
|
|
125
|
+
selected: y.optionControlSelected,
|
|
126
|
+
hover: y.optionControlHover
|
|
126
127
|
};
|
|
127
128
|
export {
|
|
128
129
|
pe as R,
|
|
129
130
|
i as a,
|
|
130
|
-
|
|
131
|
+
y as s
|
|
131
132
|
};
|
package/dist/component/{radio-group-field-rac-Cr35UXlg.js → radio-group-field-rac-C0zCVtjj.js}
RENAMED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { RicosViewer as m } from "@wix/ricos/viewer";
|
|
2
2
|
import t from "classnames";
|
|
3
3
|
import e from "react";
|
|
4
|
-
import { a, s, R as n } from "./radio-button-module-classes-
|
|
4
|
+
import { a, s, R as n } from "./radio-button-module-classes-D8UpzVUK.js";
|
|
5
5
|
import { E as c } from "./error-icon-hZxQ6DEy.js";
|
|
6
|
-
import { s as r } from "./field-rac.module-
|
|
7
|
-
import { I as i, U as E, P as p, Q as R, v as O, p as _, R as I } from "./form-
|
|
6
|
+
import { s as r } from "./field-rac.module-DfEb7pBp.js";
|
|
7
|
+
import { I as i, U as E, P as p, Q as R, v as O, p as _, R as I } from "./form-B2wZnWX9.js";
|
|
8
8
|
import { o as L } from "./options-rac.module-_THNq6Qq.js";
|
|
9
|
-
import { u as N } from "./use-element-state-class-name-
|
|
10
|
-
import { u } from "./use-text-input-class-name-
|
|
9
|
+
import { u as N } from "./use-element-state-class-name-BFZzVwqe.js";
|
|
10
|
+
import { u } from "./use-text-input-class-name-BNX3qkmh.js";
|
|
11
11
|
const D = ({ content: o, locale: l }) => /* @__PURE__ */ e.createElement(m, {
|
|
12
12
|
content: o,
|
|
13
13
|
locale: l
|
package/dist/component/{rating-input-field-rac-C_X51vxl.js → rating-input-field-rac-DjxfTgv5.js}
RENAMED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { RicosViewer as y } from "@wix/ricos/viewer";
|
|
2
|
-
import
|
|
2
|
+
import u from "classnames";
|
|
3
3
|
import e, { useCallback as N, useState as O, useRef as A } from "react";
|
|
4
|
-
import { bh as I, be as v, br as T, I as H, U as M, S as w, v as B, p as P, T as q } from "./form-
|
|
4
|
+
import { bh as I, be as v, br as T, I as H, U as M, S as w, v as B, p as P, T as q } from "./form-B2wZnWX9.js";
|
|
5
5
|
import { RadioGroup as G, RadioField as k, RadioButton as x } from "react-aria-components";
|
|
6
|
-
import { f as
|
|
7
|
-
import { D as z, E as Q } from "./field-error-headless-
|
|
8
|
-
import { L as Z } from "./field-label-headless-
|
|
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-C-wyL0uw.js";
|
|
8
|
+
import { L as Z } from "./field-label-headless-32mvEUId.js";
|
|
9
9
|
import { E as j } from "./error-icon-hZxQ6DEy.js";
|
|
10
|
-
import { s as g } from "./field-rac.module-
|
|
11
|
-
import { u as J } from "./use-element-state-class-name-
|
|
10
|
+
import { s as g } from "./field-rac.module-DfEb7pBp.js";
|
|
11
|
+
import { u as J } from "./use-element-state-class-name-BFZzVwqe.js";
|
|
12
12
|
const t = ({ children: a }) => {
|
|
13
|
-
const { id: n, value: r, onChange:
|
|
14
|
-
|
|
15
|
-
]), S =
|
|
13
|
+
const { id: n, value: r, onChange: i, disabled: l, readOnly: m, required: d, hasError: c, onBlur: o, onFocus: C, FieldLayout: R } = I(), { labelId: _ } = v(), L = N((D) => i(Number(D)), [
|
|
14
|
+
i
|
|
15
|
+
]), S = E(a, t.Label), s = E(a, t.Ratings), f = E(a, t.Description), h = E(a, t.Error);
|
|
16
16
|
return /* @__PURE__ */ e.createElement(R, {
|
|
17
17
|
fieldId: n,
|
|
18
18
|
renderLabel: () => S,
|
|
@@ -21,29 +21,29 @@ const t = ({ children: a }) => {
|
|
|
21
21
|
value: r ? String(r) : void 0,
|
|
22
22
|
onChange: L,
|
|
23
23
|
isDisabled: l,
|
|
24
|
-
isReadOnly:
|
|
25
|
-
isRequired:
|
|
26
|
-
isInvalid:
|
|
27
|
-
onBlur:
|
|
24
|
+
isReadOnly: m,
|
|
25
|
+
isRequired: d,
|
|
26
|
+
isInvalid: c,
|
|
27
|
+
onBlur: o,
|
|
28
28
|
onFocus: C,
|
|
29
29
|
orientation: "horizontal"
|
|
30
30
|
}, s),
|
|
31
31
|
renderDescription: () => /* @__PURE__ */ e.createElement(e.Fragment, null, h, f)
|
|
32
32
|
});
|
|
33
33
|
}, b = ({ children: a, className: n, getReactionLabel: r }) => {
|
|
34
|
-
const { value:
|
|
34
|
+
const { value: i, readOnly: l, hasError: m } = I(), { inputId: d, ariaDescribedBy: c } = v(), [o, C] = O(), R = A(null), _ = E(a, b.Rating), L = [
|
|
35
35
|
"1",
|
|
36
36
|
"2",
|
|
37
37
|
"3",
|
|
38
38
|
"4",
|
|
39
39
|
"5"
|
|
40
|
-
], S = (s) =>
|
|
40
|
+
], S = (s) => o && !l ? o >= s : !!i && i >= Number(s);
|
|
41
41
|
return /* @__PURE__ */ e.createElement("div", {
|
|
42
42
|
ref: R,
|
|
43
|
-
id:
|
|
44
|
-
"aria-describedby":
|
|
43
|
+
id: d,
|
|
44
|
+
"aria-describedby": c,
|
|
45
45
|
className: n,
|
|
46
|
-
"data-invalid":
|
|
46
|
+
"data-invalid": m,
|
|
47
47
|
"data-readonly": l
|
|
48
48
|
}, L.map((s) => U(_, {
|
|
49
49
|
key: s,
|
|
@@ -63,22 +63,24 @@ const t = ({ children: a }) => {
|
|
|
63
63
|
width: 1,
|
|
64
64
|
whiteSpace: "nowrap"
|
|
65
65
|
}, F = ({ className: a, children: n, ...r }) => {
|
|
66
|
-
const { value:
|
|
66
|
+
const { value: i, isSelected: l, onHoverChange: m, label: d } = r;
|
|
67
67
|
return /* @__PURE__ */ e.createElement(k, {
|
|
68
|
-
value:
|
|
68
|
+
value: i
|
|
69
69
|
}, /* @__PURE__ */ e.createElement(x, {
|
|
70
|
-
className: ({ isHovered:
|
|
70
|
+
className: ({ isHovered: c, isFocused: o }) => typeof a == "function" ? a({
|
|
71
71
|
isSelected: l,
|
|
72
|
-
isHovered:
|
|
72
|
+
isHovered: c,
|
|
73
|
+
isFocused: o
|
|
73
74
|
}) : a ?? "",
|
|
74
75
|
"data-active": l || void 0,
|
|
75
|
-
onHoverChange:
|
|
76
|
-
}, ({ isHovered:
|
|
76
|
+
onHoverChange: m
|
|
77
|
+
}, ({ isHovered: c, isFocused: o }) => /* @__PURE__ */ e.createElement(e.Fragment, null, typeof n == "function" ? n({
|
|
77
78
|
isSelected: l,
|
|
78
|
-
isHovered:
|
|
79
|
-
|
|
79
|
+
isHovered: c,
|
|
80
|
+
isFocused: o
|
|
81
|
+
}) : n, d ? /* @__PURE__ */ e.createElement("span", {
|
|
80
82
|
style: K
|
|
81
|
-
},
|
|
83
|
+
}, d) : null)));
|
|
82
84
|
};
|
|
83
85
|
b.Rating = F;
|
|
84
86
|
t.Label = Z;
|
|
@@ -114,20 +116,20 @@ const W = (a) => /* @__PURE__ */ e.createElement("svg", {
|
|
|
114
116
|
moduleClasses: te
|
|
115
117
|
});
|
|
116
118
|
return /* @__PURE__ */ e.createElement(t, null, /* @__PURE__ */ e.createElement(t.Label, {
|
|
117
|
-
className:
|
|
119
|
+
className: u(H, g.label)
|
|
118
120
|
}, /* @__PURE__ */ e.createElement(t.Label.Required, {
|
|
119
|
-
className:
|
|
121
|
+
className: u(M, g.requiredMark)
|
|
120
122
|
})), /* @__PURE__ */ e.createElement(t.Ratings, {
|
|
121
|
-
className:
|
|
123
|
+
className: u(w, p.ratings),
|
|
122
124
|
getReactionLabel: (r) => a("rating-input.a11y.reaction-label", {
|
|
123
125
|
count: r
|
|
124
126
|
})
|
|
125
127
|
}, /* @__PURE__ */ e.createElement(t.Rating, {
|
|
126
128
|
className: n
|
|
127
129
|
}, /* @__PURE__ */ e.createElement(W, null))), /* @__PURE__ */ e.createElement(t.Error, {
|
|
128
|
-
className:
|
|
130
|
+
className: u(B, g.error)
|
|
129
131
|
}, /* @__PURE__ */ e.createElement(j, null), /* @__PURE__ */ e.createElement(t.Error.Text, null)), /* @__PURE__ */ e.createElement(t.Description, {
|
|
130
|
-
className:
|
|
132
|
+
className: u(P, g.description)
|
|
131
133
|
}, ee));
|
|
132
134
|
};
|
|
133
135
|
export {
|
package/dist/component/{rich-content-rac.module-Bed3DsK7.js → rich-content-rac.module-DUNKiTkT.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import c, { useState as u } from "react";
|
|
2
|
-
import { bh as a, b9 as i, br as T } from "./form-
|
|
2
|
+
import { bh as a, b9 as i, br as T } from "./form-B2wZnWX9.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 { bh as m, au as u, ac as i, aU as R, aX as T } from "./form-
|
|
4
|
-
import { u as C, R as d, s as g, T as h } from "./rich-content-rac.module-
|
|
3
|
+
import { bh as m, au as u, ac as i, aU as R, aX as T } from "./form-B2wZnWX9.js";
|
|
4
|
+
import { u as C, R as d, s as g, T as h } from "./rich-content-rac.module-DUNKiTkT.js";
|
|
5
5
|
const p = {
|
|
6
6
|
colorPalette: T(),
|
|
7
7
|
customStyles: R()
|
package/dist/component/{service-dropdown-rac-BdfxJ1Zq.js → service-dropdown-rac-B3gQT9Tj.js}
RENAMED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import t, { useRef as T, useMemo as _, useCallback as h, useEffect as b } from "react";
|
|
2
2
|
import { RicosViewer as w } from "@wix/ricos/viewer";
|
|
3
3
|
import E from "classnames";
|
|
4
|
-
import { bd as P, br as A, F as M, bh as y, b9 as U, aj as V, I as x, U as H, K as k, v as q, p as B } from "./form-
|
|
5
|
-
import { u as W } from "./use-service-options-base-
|
|
6
|
-
import { D as u } from "./dropdown-field-headless-
|
|
4
|
+
import { bd as P, br as A, F as M, bh as y, b9 as U, aj as V, I as x, U as H, K as k, v as q, p as B } from "./form-B2wZnWX9.js";
|
|
5
|
+
import { u as W } from "./use-service-options-base-DOCVW9ax.js";
|
|
6
|
+
import { D as u } from "./dropdown-field-headless-0DB-T-3t.js";
|
|
7
7
|
import { C as j } from "./chevron-down-icon-CcpVm6B-.js";
|
|
8
8
|
import { E as K } from "./error-icon-hZxQ6DEy.js";
|
|
9
9
|
import { H as Q } from "./custom-focus-class-_483Pkwp.js";
|
|
10
|
-
import { s as a } from "./field-rac.module-
|
|
11
|
-
import { u as Y } from "./use-dropdown-option-class-name-
|
|
12
|
-
import { u as z } from "./use-dropdown-trigger-class-name-
|
|
10
|
+
import { s as a } from "./field-rac.module-DfEb7pBp.js";
|
|
11
|
+
import { u as Y } from "./use-dropdown-option-class-name-C6zB6TNA.js";
|
|
12
|
+
import { u as z } from "./use-dropdown-trigger-class-name-CEq68SuK.js";
|
|
13
13
|
const G = "00000000-0000-0000-0000-000000000000", J = (e) => {
|
|
14
14
|
const { actions: o } = P(), { t: C } = A(), { addOther: n, addOtherLabel: p } = e, c = p || C("add-other.default-other-option-label"), i = T(!0), d = _(() => {
|
|
15
15
|
var s;
|