@wix/form-elements 1.171.0 → 1.173.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-DZ0SFXmL.js → appointment-rac-DIV9zgmZ.js} +80 -80
- package/dist/component/{bookings-address-rac-BW9grc77.js → bookings-address-rac-C5cT4gkX.js} +1 -1
- package/dist/component/{bookings-email-rac-D8gMaAfB.js → bookings-email-rac-CQEhRS7N.js} +1 -1
- package/dist/component/{bookings-first-name-rac-CAjcs7b6.js → bookings-first-name-rac-BwdasJXd.js} +1 -1
- package/dist/component/{bookings-header-rac-BhKZ1kku.js → bookings-header-rac-CWzKq3yr.js} +1 -1
- package/dist/component/{bookings-last-name-rac-DpsMDuU0.js → bookings-last-name-rac-CoVWqEy5.js} +1 -1
- package/dist/component/{bookings-login-bar-rac-BVdWmKS8.js → bookings-login-bar-rac-DwoI-iRQ.js} +4 -4
- package/dist/component/{bookings-phone-rac-DsqNi2mI.js → bookings-phone-rac-WAZU-1kD.js} +1 -1
- package/dist/component/{bookings-rich-text-rac-elM4Ne3f.js → bookings-rich-text-rac-I5Uo-q87.js} +1 -1
- package/dist/component/{checkbox-field-rac-BU4E73fD.js → checkbox-field-rac-CKbKBNcQ.js} +43 -43
- package/dist/component/{checkbox-group-field-headless-6yJdIbP2.js → checkbox-group-field-headless-7PMj-zW6.js} +47 -47
- package/dist/component/{checkbox-group-field-rac-CojbCWSF.js → checkbox-group-field-rac-BZ-YgEYR.js} +4 -4
- package/dist/component/{checkbox-group-rac-3qUVUc-C.js → checkbox-group-rac-CED8h4qI.js} +1 -1
- package/dist/component/{checkbox-rac-DwbTapd_.js → checkbox-rac-CbpEXMBz.js} +1 -1
- package/dist/component/{contacts-address-rac-BL7XDZuP.js → contacts-address-rac-F3Ui7iJu.js} +1 -1
- package/dist/component/{contacts-birthdate-rac-DeJYIHAg.js → contacts-birthdate-rac-CcxRV3RQ.js} +1 -1
- package/dist/component/{contacts-company-rac-BeImf5uc.js → contacts-company-rac-mDY20HzW.js} +1 -1
- package/dist/component/{contacts-email-rac-CtacwrZ0.js → contacts-email-rac-CoBPNuCj.js} +1 -1
- package/dist/component/{contacts-first-name-rac-CAdOqOOA.js → contacts-first-name-rac-DzbpBmNm.js} +1 -1
- package/dist/component/{contacts-last-name-rac-Db9mHzCW.js → contacts-last-name-rac-DEmV-MNE.js} +1 -1
- package/dist/component/{contacts-phone-rac-W0OLEbzL.js → contacts-phone-rac-BlEpatWP.js} +1 -1
- package/dist/component/{contacts-position-rac-CV4Ibt4Z.js → contacts-position-rac-DlZahRQc.js} +1 -1
- package/dist/component/{contacts-subscribe-rac-CQ3Q1pjZ.js → contacts-subscribe-rac-LXCEPvXl.js} +1 -1
- package/dist/component/{contacts-tax-id-rac-Dux-pk6r.js → contacts-tax-id-rac-DS0SDAtC.js} +1 -1
- package/dist/component/{date-availability-RkX-Qw7G.js → date-availability-DTFyrU8J.js} +1 -1
- package/dist/component/{date-input-field-rac-CYCT6qoa.js → date-input-field-rac-D7Pv-hqW.js} +62 -62
- package/dist/component/{date-input-rac-BkYZ7q_o.js → date-input-rac-BEsh54Gz.js} +1 -1
- package/dist/component/{date-picker-field-rac-eMidYtsl.js → date-picker-field-rac-DJirD93a.js} +15 -15
- package/dist/component/{date-picker-rac-D23rxZcF.js → date-picker-rac-B1fUqj_w.js} +1 -1
- package/dist/component/{date-time-input-field-rac-BjIj4dXQ.js → date-time-input-field-rac-CPFaQUXF.js} +38 -38
- package/dist/component/{date-time-input-rac-BSGAdk9L.js → date-time-input-rac-CAozBO0e.js} +1 -1
- package/dist/component/{dext-checkbox-group-rac-Xmb5IKrb.js → dext-checkbox-group-rac-B0yqJoj8.js} +2 -2
- package/dist/component/{dext-checkbox-rac-2eA7y0ld.js → dext-checkbox-rac-yZaUdHz1.js} +1 -1
- package/dist/component/{dext-date-picker-rac-CmLxVGGT.js → dext-date-picker-rac-AJ7XIW-h.js} +1 -1
- package/dist/component/{dext-date-time-input-rac-Cd9nwSjb.js → dext-date-time-input-rac-CPs79sUY.js} +1 -1
- package/dist/component/{dext-dropdown-rac-BKdQ0nGS.js → dext-dropdown-rac-W2QzqPG4.js} +1 -1
- package/dist/component/{dext-email-rac-07zDPxyf.js → dext-email-rac-CCW1Dk1m.js} +1 -1
- package/dist/component/{dext-number-input-rac-DRvGuppY.js → dext-number-input-rac-BAInaxoF.js} +1 -1
- package/dist/component/{dext-phone-rac-CKtTVjFg.js → dext-phone-rac-CYYgZiFW.js} +1 -1
- package/dist/component/{dext-radio-group-rac-BsBmMufq.js → dext-radio-group-rac-Dqvmxoai.js} +2 -2
- package/dist/component/{dext-rating-input-rac-CcFSTAIh.js → dext-rating-input-rac-CWl7X0zW.js} +1 -1
- package/dist/component/{dext-tags-rac-CCTDlCvX.js → dext-tags-rac-BpAfPh55.js} +2 -2
- package/dist/component/{dext-text-area-rac-Cif8po9h.js → dext-text-area-rac-CLTg8XXH.js} +1 -1
- package/dist/component/{dext-text-input-rac-2118X4iF.js → dext-text-input-rac-BV-F-ZsP.js} +1 -1
- package/dist/component/{dext-url-input-rac-DDImGkQe.js → dext-url-input-rac-B9wHRaZr.js} +1 -1
- package/dist/component/{donation-rac-Dnylss1d.js → donation-rac-Be4swKWD.js} +50 -50
- package/dist/component/{dropdown-field-rac-DDI4ZgZH.js → dropdown-field-rac-BFEB_WuX.js} +3 -3
- package/dist/component/{dropdown-rac-DX0Z3R_8.js → dropdown-rac-Dz7QtFVB.js} +1 -1
- package/dist/component/{ecom-address-rac-D9MeEQsk.js → ecom-address-rac-Bu6msDgo.js} +1 -1
- package/dist/component/{ecom-subscription-checkbox-rac-DKJ9j5dj.js → ecom-subscription-checkbox-rac-BRovQqrM.js} +2 -2
- package/dist/component/{email-input-field-rac-DaKrmlwe.js → email-input-field-rac-EERVxm6G.js} +42 -42
- package/dist/component/{events-repeater-rac-DWrOLT0Y.js → events-repeater-rac-xs0pooBs.js} +49 -49
- package/dist/component/{events-rsvp-rac-YBTR1tR0.js → events-rsvp-rac-CMi-8EqK.js} +3 -3
- package/dist/component/{field-error-headless-jksFrezt.js → field-error-headless-DbFXeaud.js} +8 -8
- package/dist/component/{field-label-headless-BBvJAVxI.js → field-label-headless-CWOYHPsb.js} +11 -11
- package/dist/component/{file-upload-rac-CgdmfUZG.js → file-upload-rac-vbMTIdDc.js} +61 -61
- package/dist/component/{fixed-payment-rac-v6rKwzFs.js → fixed-payment-rac-BRk7ams_.js} +7 -7
- package/dist/component/{form-BsiK682r.js → form-BjeODFzx.js} +238 -237
- package/dist/component/form.css +1 -1
- package/dist/component/form.js +1 -1
- package/dist/component/{header-field-rac-BuXybl7K.js → header-field-rac-CQexwZn7.js} +2 -2
- package/dist/component/{header-rac-CDyaLosW.js → header-rac-CYbPDl4_.js} +1 -1
- package/dist/component/{image-choice-rac-BRlMroBw.js → image-choice-rac-DDvlaK6K.js} +15 -15
- package/dist/component/{index-BanOeCAF.js → index-B6wFpWpe.js} +4 -4
- package/dist/component/{index-y9URYGEE.js → index-Bs9ypEe2.js} +6 -6
- package/dist/component/{isObjectLike-BG9nJ-rx.js → isObjectLike-Xcw2hQQ6.js} +1 -1
- package/dist/component/{multiline-address-field-rac-DRAkxI1l.js → multiline-address-field-rac-CYJR-MUz.js} +209 -209
- package/dist/component/{multiline-address-rac-JjTzWsEb.js → multiline-address-rac-DO1j_w6S.js} +1 -1
- package/dist/component/{number-input-field-rac-QrouG7Hv.js → number-input-field-rac-C-qvd8v9.js} +18 -18
- package/dist/component/{number-input-rac-DGmE7cLv.js → number-input-rac-CQSaifZE.js} +1 -1
- package/dist/component/{password-rac-DeyY228m.js → password-rac-CqnbZtR_.js} +28 -28
- package/dist/component/{payment-input-rac-DmIennLi.js → payment-input-rac-CbOcztkp.js} +28 -28
- package/dist/component/{phone-input-field-rac-F7e74TGA.js → phone-input-field-rac-BQ187I2C.js} +55 -55
- package/dist/component/{phone-rac-CQfB2CQD.js → phone-rac-CbA2xqF3.js} +1 -1
- package/dist/component/{product-list-rac--GGG8vvO.js → product-list-rac-MxB9tRiE.js} +103 -103
- package/dist/component/{quiz-radio-group-rac-DF2C2vNq.js → quiz-radio-group-rac-IViaDVRW.js} +1 -1
- package/dist/component/{radio-button-module-classes-DmpNo6F2.js → radio-button-module-classes-jtnooKMO.js} +33 -33
- package/dist/component/{radio-group-field-rac-BGcPYfKO.js → radio-group-field-rac-g3SQGJPp.js} +4 -4
- package/dist/component/{radio-group-rac-CqysUMCE.js → radio-group-rac-D8wmzlbu.js} +1 -1
- package/dist/component/{rating-input-field-rac-D-ei917Y.js → rating-input-field-rac-BqPXKKdi.js} +15 -15
- package/dist/component/{rating-input-rac-a9zJ74fw.js → rating-input-rac-CeZIpOmm.js} +1 -1
- package/dist/component/{rich-content-rac.module-CvyLVlXL.js → rich-content-rac.module-BLgdpRh_.js} +5 -5
- package/dist/component/{rich-text-field-rac-vf19nvyw.js → rich-text-field-rac-BpSVobCQ.js} +6 -6
- package/dist/component/{rich-text-rac-Cx_wpoxC.js → rich-text-rac-DqpaqbFH.js} +1 -1
- package/dist/component/{service-dropdown-rac-DITzKQxd.js → service-dropdown-rac-DKgtga1t.js} +30 -30
- package/dist/component/{services-multi-choice-rac-BtisN0Aq.js → services-multi-choice-rac-CAyB0b4q.js} +9 -9
- package/dist/component/{signature-rac-DUeIoS5O.js → signature-rac-DC20YN4f.js} +97 -97
- package/dist/component/{submit-button-rac-C8h6zeTw.js → submit-button-rac-ClWtqIkR.js} +30 -30
- package/dist/component/{tags-field-rac-CjFuiB0n.js → tags-field-rac-DHM9k8uf.js} +18 -18
- package/dist/component/{tags-rac-BO7rwyLl.js → tags-rac-Clg50jwY.js} +1 -1
- package/dist/component/{text-area-field-rac-CgUx3nQ0.js → text-area-field-rac-B2qJZ6wR.js} +16 -16
- package/dist/component/{text-area-rac-WgXYXIaf.js → text-area-rac-BwsVk7u7.js} +1 -1
- package/dist/component/{text-input-field-rac-DaxWFha-.js → text-input-field-rac-BQbo-3Ly.js} +6 -6
- package/dist/component/{text-input-headless-hjuRJTZN.js → text-input-headless-WICGIHcN.js} +3 -3
- package/dist/component/{text-input-rac-BzumrJBj.js → text-input-rac-D7BRYDZr.js} +1 -1
- package/dist/component/{time-input-rac-2FEkpQ7M.js → time-input-rac-Dnp-0_Js.js} +22 -22
- package/dist/component/{url-input-field-rac-BZ9f8D8I.js → url-input-field-rac-MC13zKST.js} +19 -19
- package/dist/component/{url-input-rac-D-AVlxkD.js → url-input-rac-DfAtTmKv.js} +1 -1
- package/dist/component/{use-dropdown-option-class-name-DwAAtzgX.js → use-dropdown-option-class-name-CVUEosg4.js} +2 -2
- package/dist/component/{use-dropdown-trigger-class-name-D-6n9YVG.js → use-dropdown-trigger-class-name-BHLG7EB-.js} +25 -25
- package/dist/component/{use-element-state-class-name-C5auxwhj.js → use-element-state-class-name-BVJylHPn.js} +3 -3
- package/dist/component/{use-hoverable-input-class-name-Nd2jqfz4.js → use-hoverable-input-class-name-DO9ctJ81.js} +2 -2
- package/dist/component/{use-is-forced-open-dropdown-CKaHhCqp.js → use-is-forced-open-dropdown-Czuo32Nq.js} +8 -8
- package/dist/component/{use-service-options-base-CvluFheT.js → use-service-options-base-DUuGIm38.js} +1 -1
- package/dist/component/use-text-input-class-name-LEnNGX0a.js +6 -0
- package/package.json +2 -2
- package/dist/component/use-text-input-class-name-DGTlYJxC.js +0 -6
|
@@ -1,36 +1,36 @@
|
|
|
1
1
|
import t, { useMemo as K, useCallback as v, useRef as x } from "react";
|
|
2
2
|
import { RicosViewer as $ } from "@wix/ricos/viewer";
|
|
3
|
-
import
|
|
4
|
-
import { CheckboxField as z, CheckboxButton as
|
|
5
|
-
import {
|
|
6
|
-
import { f
|
|
7
|
-
import { L as
|
|
8
|
-
import { f as
|
|
9
|
-
import { D as
|
|
10
|
-
import { F as
|
|
11
|
-
import { g as
|
|
3
|
+
import I from "classnames";
|
|
4
|
+
import { CheckboxField as z, CheckboxButton as X, NumberField as Y, Group as j, Button as Q, Input as J } from "react-aria-components";
|
|
5
|
+
import { bL as U, bI as W, bD as w, bV as Z, bN as ee, X as te, am as ne, a6 as ae, a7 as oe, aa as re, a9 as le, ab as se, M as ie, I as ce, a8 as ue } from "./form-BjeODFzx.js";
|
|
6
|
+
import { f, a as b } from "./find-child-C60k4CxG.js";
|
|
7
|
+
import { L as me, g as pe } from "./field-label-headless-CWOYHPsb.js";
|
|
8
|
+
import { f as de } from "./format-currency-BwShJ9vM.js";
|
|
9
|
+
import { D as Ee, E as _e } from "./field-error-headless-DbFXeaud.js";
|
|
10
|
+
import { F as Ie } from "./fieldset-headless-CD3fds9J.js";
|
|
11
|
+
import { g as ye } 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
|
|
15
|
-
import { s as
|
|
16
|
-
import { o as
|
|
17
|
-
import { u as Oe } from "./use-element-state-class-name-
|
|
18
|
-
var
|
|
14
|
+
import { C as Le } from "./checkbox-indicator-module-classes-DUTR4mcg.js";
|
|
15
|
+
import { s as A } from "./field-rac.module-ts2t4WUO.js";
|
|
16
|
+
import { o as V } from "./options-rac.module-_THNq6Qq.js";
|
|
17
|
+
import { u as Oe } from "./use-element-state-class-name-BVJylHPn.js";
|
|
18
|
+
var Ce = /* @__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
|
-
function
|
|
23
|
+
function Re({ maxItems: e, products: a } = {}) {
|
|
24
24
|
return e === 1 ? k.onlyOne : a != null && a.length && a.every((l) => {
|
|
25
25
|
var n;
|
|
26
26
|
return typeof ((n = l.quantityLimit) == null ? void 0 : n.maximum) > "u";
|
|
27
27
|
}) ? k.many : k.oneByOne;
|
|
28
28
|
}
|
|
29
29
|
const o = ({ children: e }) => {
|
|
30
|
-
var
|
|
31
|
-
const { id: a, value: l, onChange: n, disabled: r, readOnly: c, required:
|
|
30
|
+
var F;
|
|
31
|
+
const { id: a, value: l, onChange: n, disabled: r, readOnly: c, required: _, onBlur: L, onFocus: s, hasError: u, validation: m, FieldLayout: p } = U(), { inputId: M, labelId: N, ariaDescribedBy: h } = W(), y = f(e, o.Label), g = f(e, o.Options), q = f(e, o.Description), O = f(e, o.Error), i = K(() => l || [], [
|
|
32
32
|
l
|
|
33
|
-
]),
|
|
33
|
+
]), T = Re((F = m == null ? void 0 : m.predefined) == null ? void 0 : F.paymentOptions) === k.many, D = v((S, R) => {
|
|
34
34
|
const d = i.filter((H) => H.productId !== S.productId), B = R ? [
|
|
35
35
|
...d,
|
|
36
36
|
S
|
|
@@ -42,56 +42,56 @@ const o = ({ children: e }) => {
|
|
|
42
42
|
]);
|
|
43
43
|
return /* @__PURE__ */ t.createElement(p, {
|
|
44
44
|
fieldId: a,
|
|
45
|
-
renderLabel: () =>
|
|
46
|
-
renderInput: () => /* @__PURE__ */ t.createElement(
|
|
47
|
-
id:
|
|
45
|
+
renderLabel: () => y,
|
|
46
|
+
renderInput: () => /* @__PURE__ */ t.createElement(Ie, {
|
|
47
|
+
id: M,
|
|
48
48
|
ariaLabelledBy: N,
|
|
49
49
|
ariaDescribedBy: h,
|
|
50
|
-
required:
|
|
51
|
-
onBlur:
|
|
50
|
+
required: _,
|
|
51
|
+
onBlur: L,
|
|
52
52
|
onFocus: s
|
|
53
|
-
}, g ?
|
|
54
|
-
allowMany:
|
|
53
|
+
}, g ? b(g, {
|
|
54
|
+
allowMany: T,
|
|
55
55
|
productValues: i,
|
|
56
|
-
onProductChange:
|
|
56
|
+
onProductChange: D,
|
|
57
57
|
disabled: r,
|
|
58
58
|
readOnly: c,
|
|
59
59
|
hasError: u
|
|
60
60
|
}) : null),
|
|
61
|
-
renderDescription: () => /* @__PURE__ */ t.createElement(t.Fragment, null,
|
|
61
|
+
renderDescription: () => /* @__PURE__ */ t.createElement(t.Fragment, null, O, q)
|
|
62
62
|
});
|
|
63
|
-
},
|
|
64
|
-
const { allowMany: n, productValues: r, onProductChange: c, disabled:
|
|
63
|
+
}, G = ({ children: e, className: a, ...l }) => {
|
|
64
|
+
const { allowMany: n, productValues: r, onProductChange: c, disabled: _, readOnly: L, hasError: s } = l, { options: u, validation: m, imageResize: p } = U(), { currency: M } = w(), { t: N } = Z(), h = f(e, o.Option);
|
|
65
65
|
return /* @__PURE__ */ t.createElement("div", {
|
|
66
66
|
className: a
|
|
67
|
-
}, u == null ? void 0 : u.map((
|
|
68
|
-
var C,
|
|
69
|
-
const
|
|
70
|
-
return
|
|
71
|
-
key:
|
|
72
|
-
option:
|
|
73
|
-
price:
|
|
67
|
+
}, u == null ? void 0 : u.map((y, g) => {
|
|
68
|
+
var C, T, D, F, S;
|
|
69
|
+
const q = ((S = (F = (D = (T = (C = m == null ? void 0 : m.predefined) == null ? void 0 : C.paymentOptions) == null ? void 0 : T.products) == null ? void 0 : D.find((R) => R.id === y.value)) == null ? void 0 : F.fixedPriceOptions) == null ? void 0 : S.price) || "0", O = ye(N, M), i = r.find((R) => R.productId === y.value);
|
|
70
|
+
return b(h, {
|
|
71
|
+
key: y.id || y.value || y.label,
|
|
72
|
+
option: y,
|
|
73
|
+
price: q,
|
|
74
74
|
quantity: i == null ? void 0 : i.quantity,
|
|
75
75
|
isSelected: !!i,
|
|
76
76
|
allowMany: n,
|
|
77
77
|
onProductChange: c,
|
|
78
|
-
disabled:
|
|
79
|
-
readOnly:
|
|
78
|
+
disabled: _,
|
|
79
|
+
readOnly: L,
|
|
80
80
|
hasError: s,
|
|
81
|
-
currencyAriaLabel:
|
|
81
|
+
currencyAriaLabel: O,
|
|
82
82
|
imageResize: p,
|
|
83
83
|
isFirst: g === 0
|
|
84
84
|
});
|
|
85
85
|
}));
|
|
86
86
|
}, E = ({ children: e, className: a, ...l }) => {
|
|
87
|
-
const { option: n, price: r, quantity: c = 0, isSelected:
|
|
87
|
+
const { option: n, price: r, quantity: c = 0, isSelected: _, allowMany: L, onProductChange: s, disabled: u, readOnly: m, hasError: p, currencyAriaLabel: M, imageResize: N, isFirst: h } = l, { id: y } = U(), g = x(null), q = x(null), O = f(e, E.Image), i = f(e, E.Label), C = f(e, E.Price), T = f(e, E.Input), D = f(e, E.Quantity);
|
|
88
88
|
ee(() => {
|
|
89
89
|
var d;
|
|
90
|
-
h && ((d = g.current ??
|
|
90
|
+
h && ((d = g.current ?? q.current) == null || d.focus({
|
|
91
91
|
preventScroll: !0
|
|
92
92
|
}));
|
|
93
|
-
},
|
|
94
|
-
const
|
|
93
|
+
}, y);
|
|
94
|
+
const F = v((d) => {
|
|
95
95
|
s({
|
|
96
96
|
productId: n.value,
|
|
97
97
|
price: r,
|
|
@@ -111,72 +111,72 @@ const o = ({ children: e }) => {
|
|
|
111
111
|
s,
|
|
112
112
|
n.value,
|
|
113
113
|
r
|
|
114
|
-
]), R = `${n.label} ${
|
|
115
|
-
return
|
|
114
|
+
]), R = `${n.label} ${M} ${r}`;
|
|
115
|
+
return L ? /* @__PURE__ */ t.createElement("div", {
|
|
116
116
|
className: a,
|
|
117
117
|
"data-hook": "product"
|
|
118
|
-
},
|
|
118
|
+
}, O ? b(O, {
|
|
119
119
|
option: n,
|
|
120
120
|
imageResize: N
|
|
121
|
-
}) : null, i ?
|
|
121
|
+
}) : null, i ? b(i, {
|
|
122
122
|
label: n.label
|
|
123
|
-
}) : null, C ?
|
|
123
|
+
}) : null, C ? b(C, {
|
|
124
124
|
price: r
|
|
125
|
-
}) : null,
|
|
125
|
+
}) : null, D ? b(D, {
|
|
126
126
|
quantity: c,
|
|
127
127
|
onQuantityChange: S,
|
|
128
128
|
disabled: u,
|
|
129
129
|
readOnly: m,
|
|
130
130
|
hasError: p,
|
|
131
131
|
ariaLabel: R,
|
|
132
|
-
inputRef: h ?
|
|
132
|
+
inputRef: h ? q : void 0
|
|
133
133
|
}) : null) : /* @__PURE__ */ t.createElement(z, {
|
|
134
|
-
isSelected:
|
|
135
|
-
onChange:
|
|
134
|
+
isSelected: _,
|
|
135
|
+
onChange: F,
|
|
136
136
|
isDisabled: u,
|
|
137
137
|
isReadOnly: m,
|
|
138
138
|
isInvalid: p,
|
|
139
139
|
"aria-label": R
|
|
140
|
-
}, /* @__PURE__ */ t.createElement(
|
|
140
|
+
}, /* @__PURE__ */ t.createElement(X, {
|
|
141
141
|
ref: g,
|
|
142
142
|
className: a,
|
|
143
143
|
"data-hook": "product"
|
|
144
|
-
}, ({ isHovered: d, isFocused: B }) => /* @__PURE__ */ t.createElement(t.Fragment, null,
|
|
144
|
+
}, ({ isHovered: d, isFocused: B }) => /* @__PURE__ */ t.createElement(t.Fragment, null, O ? b(O, {
|
|
145
145
|
option: n,
|
|
146
146
|
imageResize: N
|
|
147
|
-
}) : null, i ?
|
|
147
|
+
}) : null, i ? b(i, {
|
|
148
148
|
label: n.label
|
|
149
|
-
}) : null, C ?
|
|
149
|
+
}) : null, C ? b(C, {
|
|
150
150
|
price: r
|
|
151
|
-
}) : null,
|
|
152
|
-
isSelected:
|
|
151
|
+
}) : null, b(T, {
|
|
152
|
+
isSelected: _,
|
|
153
153
|
isHovered: d,
|
|
154
154
|
isFocused: B
|
|
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)
|
|
160
160
|
return null;
|
|
161
|
-
const c = n ===
|
|
162
|
-
if (!
|
|
161
|
+
const c = n === Ce.fit, _ = pe(r, 96, 96, c ? "fit" : "fill");
|
|
162
|
+
if (!_)
|
|
163
163
|
return null;
|
|
164
|
-
const
|
|
164
|
+
const L = r.altText || l.label || "";
|
|
165
165
|
return /* @__PURE__ */ t.createElement("img", {
|
|
166
166
|
className: e,
|
|
167
|
-
src:
|
|
168
|
-
alt:
|
|
167
|
+
src: _,
|
|
168
|
+
alt: L,
|
|
169
169
|
"data-fit": c ? "contain" : "cover",
|
|
170
170
|
"data-hook": "product-image"
|
|
171
171
|
});
|
|
172
|
-
},
|
|
172
|
+
}, De = ({ className: e, ...a }) => {
|
|
173
173
|
const { label: l } = a;
|
|
174
174
|
return /* @__PURE__ */ t.createElement("span", {
|
|
175
175
|
className: e,
|
|
176
176
|
"data-hook": "product-label"
|
|
177
177
|
}, l || "");
|
|
178
178
|
}, Fe = ({ className: e, ...a }) => {
|
|
179
|
-
const { price: l } = a, { currency: n, regionalFormat: r } = w(), c =
|
|
179
|
+
const { price: l } = a, { currency: n, regionalFormat: r } = w(), c = de({
|
|
180
180
|
amount: l,
|
|
181
181
|
currency: n == null ? void 0 : n.code,
|
|
182
182
|
locale: r
|
|
@@ -185,8 +185,8 @@ const o = ({ children: e }) => {
|
|
|
185
185
|
className: e,
|
|
186
186
|
"data-hook": "product-price"
|
|
187
187
|
}, c);
|
|
188
|
-
},
|
|
189
|
-
const { quantity: l, onQuantityChange: n, disabled: r, readOnly: c, hasError:
|
|
188
|
+
}, Se = ({ className: e, ...a }) => {
|
|
189
|
+
const { quantity: l, onQuantityChange: n, disabled: r, readOnly: c, hasError: _, ariaLabel: L, inputRef: s } = a, u = v((p) => {
|
|
190
190
|
n(p < 0 ? 0 : p);
|
|
191
191
|
}, [
|
|
192
192
|
n
|
|
@@ -195,18 +195,18 @@ const o = ({ children: e }) => {
|
|
|
195
195
|
}, [
|
|
196
196
|
u
|
|
197
197
|
]);
|
|
198
|
-
return /* @__PURE__ */ t.createElement(
|
|
198
|
+
return /* @__PURE__ */ t.createElement(Y, {
|
|
199
199
|
value: l,
|
|
200
200
|
onChange: u,
|
|
201
201
|
minValue: 0,
|
|
202
202
|
step: 1,
|
|
203
203
|
isDisabled: r,
|
|
204
204
|
isReadOnly: c,
|
|
205
|
-
isInvalid:
|
|
206
|
-
"aria-label":
|
|
205
|
+
isInvalid: _,
|
|
206
|
+
"aria-label": L,
|
|
207
207
|
className: e,
|
|
208
208
|
"data-hook": "product-quantity"
|
|
209
|
-
}, /* @__PURE__ */ t.createElement(
|
|
209
|
+
}, /* @__PURE__ */ t.createElement(j, {
|
|
210
210
|
onKeyDown: m
|
|
211
211
|
}, /* @__PURE__ */ t.createElement(Q, {
|
|
212
212
|
slot: "decrement"
|
|
@@ -216,57 +216,57 @@ 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 = De;
|
|
221
221
|
E.Price = Fe;
|
|
222
222
|
E.Input = be;
|
|
223
|
-
E.Quantity =
|
|
224
|
-
|
|
225
|
-
o.Label =
|
|
226
|
-
o.Options =
|
|
223
|
+
E.Quantity = Se;
|
|
224
|
+
G.Option = E;
|
|
225
|
+
o.Label = me;
|
|
226
|
+
o.Options = G;
|
|
227
227
|
o.Option = E;
|
|
228
|
-
o.Description =
|
|
229
|
-
o.Error =
|
|
230
|
-
const
|
|
231
|
-
options:
|
|
232
|
-
option:
|
|
233
|
-
optionInput:
|
|
234
|
-
optionImage:
|
|
228
|
+
o.Description = Ee;
|
|
229
|
+
o.Error = _e;
|
|
230
|
+
const Pe = "_options_110dq_1", Ne = "_option_110dq_1", he = "_optionInput_110dq_21", qe = "_optionImage_110dq_32", Te = "_optionLabel_110dq_66", Ae = "_optionPrice_110dq_73", Me = "_quantity_110dq_87", P = {
|
|
231
|
+
options: Pe,
|
|
232
|
+
option: Ne,
|
|
233
|
+
optionInput: he,
|
|
234
|
+
optionImage: qe,
|
|
235
235
|
optionLabel: Te,
|
|
236
236
|
optionPrice: Ae,
|
|
237
237
|
quantity: Me
|
|
238
|
-
},
|
|
238
|
+
}, ve = ({ content: e, locale: a }) => /* @__PURE__ */ t.createElement($, {
|
|
239
239
|
content: e,
|
|
240
240
|
locale: a
|
|
241
|
-
}),
|
|
241
|
+
}), ke = () => {
|
|
242
242
|
const e = Oe({
|
|
243
|
-
globalClasses:
|
|
244
|
-
moduleClasses:
|
|
243
|
+
globalClasses: ue,
|
|
244
|
+
moduleClasses: Le
|
|
245
245
|
});
|
|
246
246
|
return /* @__PURE__ */ t.createElement(o, null, /* @__PURE__ */ t.createElement(o.Label, {
|
|
247
|
-
className:
|
|
247
|
+
className: I(te, A.label)
|
|
248
248
|
}, /* @__PURE__ */ t.createElement(o.Label.Required, {
|
|
249
|
-
className:
|
|
249
|
+
className: I(ne, A.requiredMark)
|
|
250
250
|
})), /* @__PURE__ */ t.createElement(o.Options, {
|
|
251
|
-
className:
|
|
251
|
+
className: I(ae, V.options, P.options)
|
|
252
252
|
}, /* @__PURE__ */ t.createElement(o.Option, {
|
|
253
|
-
className:
|
|
253
|
+
className: I(A.checkbox, P.option)
|
|
254
254
|
}, /* @__PURE__ */ t.createElement(o.Option.Image, {
|
|
255
|
-
className: P.optionImage
|
|
255
|
+
className: I(oe, P.optionImage)
|
|
256
256
|
}), /* @__PURE__ */ t.createElement(o.Option.Label, {
|
|
257
|
-
className:
|
|
257
|
+
className: I(re, V.optionLabel, P.optionLabel)
|
|
258
258
|
}), /* @__PURE__ */ t.createElement(o.Option.Price, {
|
|
259
|
-
className:
|
|
259
|
+
className: I(le, P.optionPrice)
|
|
260
260
|
}), /* @__PURE__ */ t.createElement(o.Option.Input, {
|
|
261
|
-
className: (a) =>
|
|
261
|
+
className: (a) => I(e(a), P.optionInput)
|
|
262
262
|
}), /* @__PURE__ */ t.createElement(o.Option.Quantity, {
|
|
263
|
-
className:
|
|
263
|
+
className: I(se, A.inputGroup, P.quantity)
|
|
264
264
|
}))), /* @__PURE__ */ t.createElement(o.Error, {
|
|
265
|
-
className:
|
|
265
|
+
className: I(ie, A.error)
|
|
266
266
|
}, /* @__PURE__ */ t.createElement(fe, null), /* @__PURE__ */ t.createElement(o.Error.Text, null)), /* @__PURE__ */ t.createElement(o.Description, {
|
|
267
|
-
className:
|
|
268
|
-
},
|
|
269
|
-
},
|
|
267
|
+
className: I(ce, A.description)
|
|
268
|
+
}, ve));
|
|
269
|
+
}, et = () => /* @__PURE__ */ t.createElement(ke, null);
|
|
270
270
|
export {
|
|
271
|
-
|
|
271
|
+
et as ProductListRAC
|
|
272
272
|
};
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import a, { useRef as F, useState as T, useEffect as B, useCallback as H } from "react";
|
|
2
|
-
import { RadioGroup as k, RadioField as A, RadioButton as G, TextField as P, Input as
|
|
3
|
-
import {
|
|
4
|
-
import { f as u, a as
|
|
5
|
-
import { D as
|
|
6
|
-
import { L as
|
|
7
|
-
import { S as
|
|
8
|
-
const
|
|
2
|
+
import { RadioGroup as k, RadioField as A, RadioButton as G, TextField as P, Input as $ } from "react-aria-components";
|
|
3
|
+
import { bL as g, bI as q, bV as D, bN as x } from "./form-BjeODFzx.js";
|
|
4
|
+
import { f as u, a as v } from "./find-child-C60k4CxG.js";
|
|
5
|
+
import { D as U, E as M } from "./field-error-headless-DbFXeaud.js";
|
|
6
|
+
import { L as j } from "./field-label-headless-CWOYHPsb.js";
|
|
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), y = (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: h, disabled: p, readOnly: O, required: m, onBlur: E, onFocus: b, hasError: r, FieldLayout: c, options: o } = g(), { inputId: f, labelId: C, ariaDescribedBy:
|
|
12
|
+
const { id: n, value: l, onChange: h, disabled: p, readOnly: O, required: m, onBlur: E, onFocus: b, hasError: r, FieldLayout: c, options: o } = g(), { inputId: f, labelId: C, ariaDescribedBy: _ } = q(), s = u(e, i.Label), I = u(e, i.Options), R = u(e, i.Description), N = u(e, i.Error), V = y(o, l) ? L : l || null;
|
|
13
13
|
return /* @__PURE__ */ a.createElement(c, {
|
|
14
14
|
fieldId: n,
|
|
15
|
-
renderLabel: () =>
|
|
15
|
+
renderLabel: () => v(s, {
|
|
16
16
|
as: "div"
|
|
17
17
|
}),
|
|
18
18
|
renderInput: () => /* @__PURE__ */ a.createElement(k, {
|
|
19
19
|
id: f,
|
|
20
20
|
className: t,
|
|
21
21
|
"aria-labelledby": C,
|
|
22
|
-
"aria-describedby":
|
|
22
|
+
"aria-describedby": _,
|
|
23
23
|
value: V,
|
|
24
24
|
onChange: h,
|
|
25
25
|
isDisabled: p,
|
|
@@ -28,12 +28,12 @@ const v = "Other", w = (e, t) => e == null ? void 0 : e.find((n) => (n.value ??
|
|
|
28
28
|
isInvalid: r,
|
|
29
29
|
onBlur: E,
|
|
30
30
|
onFocus: b
|
|
31
|
-
},
|
|
31
|
+
}, I),
|
|
32
32
|
renderDescription: () => /* @__PURE__ */ a.createElement(a.Fragment, null, N, R)
|
|
33
33
|
});
|
|
34
|
-
},
|
|
35
|
-
const { options: n, addOther: l, addOtherLabel: h, id: p, numberOfColumns: O, hasError: m } = g(), { t: E } = D(), b = u(e, i.Option), r = F(null), c = h || E("add-other.default-other-option-label") ||
|
|
36
|
-
return
|
|
34
|
+
}, K = ({ children: e, className: t }) => {
|
|
35
|
+
const { options: n, addOther: l, addOtherLabel: h, id: p, numberOfColumns: O, hasError: m } = g(), { t: E } = D(), b = u(e, i.Option), r = F(null), c = h || E("add-other.default-other-option-label") || L;
|
|
36
|
+
return x(() => {
|
|
37
37
|
var o;
|
|
38
38
|
(o = r.current) == null || o.focus({
|
|
39
39
|
preventScroll: !0
|
|
@@ -42,21 +42,21 @@ const v = "Other", w = (e, t) => e == null ? void 0 : e.find((n) => (n.value ??
|
|
|
42
42
|
className: t,
|
|
43
43
|
"data-columns": O,
|
|
44
44
|
"data-invalid": m
|
|
45
|
-
}, n.map((o, f) =>
|
|
45
|
+
}, n.map((o, f) => v(b, {
|
|
46
46
|
key: o.value ?? o.label,
|
|
47
47
|
value: o.value ?? o.label,
|
|
48
48
|
label: o.label,
|
|
49
49
|
index: f,
|
|
50
50
|
radioRef: f === 0 ? r : void 0
|
|
51
|
-
})), l &&
|
|
52
|
-
key:
|
|
53
|
-
value:
|
|
51
|
+
})), l && v(b, {
|
|
52
|
+
key: L,
|
|
53
|
+
value: L,
|
|
54
54
|
label: c,
|
|
55
55
|
isOther: !0
|
|
56
56
|
}));
|
|
57
57
|
}, d = ({ children: e, className: t, ...n }) => {
|
|
58
|
-
var
|
|
59
|
-
const { value: l, label: h, isOther: p = !1, radioRef: O } = n, { value: m, options: E } = g(), b = u(e, d.Label), r = u(e, d.Input), c = u(e, d.Control), o = u(e, d.OtherInput), f = p ? y(E, m) : m === l, C = (
|
|
58
|
+
var _;
|
|
59
|
+
const { value: l, label: h, isOther: p = !1, radioRef: O } = n, { value: m, options: E } = g(), b = u(e, d.Label), r = u(e, d.Input), c = u(e, d.Control), o = u(e, d.OtherInput), f = p ? y(E, m) : m === l, C = (_ = r == null ? void 0 : r.props) == null ? void 0 : _.className;
|
|
60
60
|
return /* @__PURE__ */ a.createElement("div", {
|
|
61
61
|
className: t
|
|
62
62
|
}, /* @__PURE__ */ a.createElement(A, {
|
|
@@ -64,11 +64,11 @@ const v = "Other", w = (e, t) => e == null ? void 0 : e.find((n) => (n.value ??
|
|
|
64
64
|
}, /* @__PURE__ */ a.createElement(G, {
|
|
65
65
|
ref: O,
|
|
66
66
|
className: C
|
|
67
|
-
}, ({ isSelected: s, isHovered:
|
|
67
|
+
}, ({ isSelected: s, isHovered: I, isFocused: R }) => /* @__PURE__ */ a.createElement(a.Fragment, null, v(c, {
|
|
68
68
|
isSelected: s,
|
|
69
|
-
isHovered:
|
|
69
|
+
isHovered: I,
|
|
70
70
|
isFocused: R
|
|
71
|
-
}),
|
|
71
|
+
}), v(b, {
|
|
72
72
|
label: h
|
|
73
73
|
})))), p && f && o);
|
|
74
74
|
}, Q = ({ className: e, ...t }) => {
|
|
@@ -77,16 +77,16 @@ const v = "Other", w = (e, t) => e == null ? void 0 : e.find((n) => (n.value ??
|
|
|
77
77
|
className: e
|
|
78
78
|
}, n);
|
|
79
79
|
}, W = (e) => null, X = ({ className: e }) => {
|
|
80
|
-
const { value: t, onChange: n, addOtherLabel: l, addOtherPlaceholder: h, otherInputCharacterLimit: p, disabled: O, readOnly: m, options: E } = g(), { t: b } = D(), r = F(null), c = y(E, t), o = l || b("add-other.default-other-option-label") ||
|
|
80
|
+
const { value: t, onChange: n, addOtherLabel: l, addOtherPlaceholder: h, otherInputCharacterLimit: p, disabled: O, readOnly: m, options: E } = g(), { t: b } = D(), r = F(null), c = y(E, t), o = l || b("add-other.default-other-option-label") || L, [f, C] = T(c && t ? J(t, l) : "");
|
|
81
81
|
B(() => {
|
|
82
82
|
var s;
|
|
83
83
|
c && r.current && ((s = r.current) == null || s.focus());
|
|
84
84
|
}, [
|
|
85
85
|
c
|
|
86
86
|
]);
|
|
87
|
-
const
|
|
88
|
-
let
|
|
89
|
-
s ?
|
|
87
|
+
const _ = H((s) => {
|
|
88
|
+
let I;
|
|
89
|
+
s ? I = `${l}: ${s}` : I = o, n(I), C(s);
|
|
90
90
|
}, [
|
|
91
91
|
n,
|
|
92
92
|
l,
|
|
@@ -95,10 +95,10 @@ const v = "Other", w = (e, t) => e == null ? void 0 : e.find((n) => (n.value ??
|
|
|
95
95
|
return /* @__PURE__ */ a.createElement(P, {
|
|
96
96
|
"aria-label": o,
|
|
97
97
|
value: f,
|
|
98
|
-
onChange:
|
|
98
|
+
onChange: _,
|
|
99
99
|
isDisabled: O,
|
|
100
100
|
isReadOnly: m
|
|
101
|
-
}, /* @__PURE__ */ a.createElement(
|
|
101
|
+
}, /* @__PURE__ */ a.createElement($, {
|
|
102
102
|
ref: r,
|
|
103
103
|
className: e,
|
|
104
104
|
placeholder: h,
|
|
@@ -107,12 +107,12 @@ const v = "Other", w = (e, t) => e == null ? void 0 : e.find((n) => (n.value ??
|
|
|
107
107
|
};
|
|
108
108
|
d.Label = Q;
|
|
109
109
|
d.Input = W;
|
|
110
|
-
d.Control =
|
|
110
|
+
d.Control = w;
|
|
111
111
|
d.OtherInput = X;
|
|
112
|
-
i.Label =
|
|
113
|
-
i.Options =
|
|
112
|
+
i.Label = j;
|
|
113
|
+
i.Options = K;
|
|
114
114
|
i.Option = d;
|
|
115
|
-
i.Description =
|
|
115
|
+
i.Description = U;
|
|
116
116
|
i.Error = M;
|
|
117
117
|
const Y = "_labelImage_1u9f2_1", Z = "_option_1u9f2_26", ee = "_optionInput_1u9f2_32", te = "_optionControl_1u9f2_50", oe = "_optionControlHover_1u9f2_72", ne = "_optionControlSelected_1u9f2_90", le = "_optionLabel_1u9f2_137", S = {
|
|
118
118
|
labelImage: Y,
|
package/dist/component/{radio-group-field-rac-BGcPYfKO.js → radio-group-field-rac-g3SQGJPp.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-jtnooKMO.js";
|
|
5
5
|
import { E as c } from "./error-icon-hZxQ6DEy.js";
|
|
6
6
|
import { s as r } from "./field-rac.module-ts2t4WUO.js";
|
|
7
|
-
import { X as i,
|
|
7
|
+
import { X as i, am as E, ac as p, ad as O, M as R, I as _, ae as I } from "./form-BjeODFzx.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-BVJylHPn.js";
|
|
10
|
+
import { u } from "./use-text-input-class-name-LEnNGX0a.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-D-ei917Y.js → rating-input-field-rac-BqPXKKdi.js}
RENAMED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { RicosViewer as y } 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 {
|
|
4
|
+
import { bL as I, bI as v, bV as M, X as T, am as H, af as w, M as B, I as P, ag as q } from "./form-BjeODFzx.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
|
|
8
|
-
import { L as
|
|
9
|
-
import { E as
|
|
7
|
+
import { D as z, E as Q } from "./field-error-headless-DbFXeaud.js";
|
|
8
|
+
import { L as X } from "./field-label-headless-CWOYHPsb.js";
|
|
9
|
+
import { E as Z } from "./error-icon-hZxQ6DEy.js";
|
|
10
10
|
import { s as g } from "./field-rac.module-ts2t4WUO.js";
|
|
11
|
-
import { u as
|
|
11
|
+
import { u as j } from "./use-element-state-class-name-BVJylHPn.js";
|
|
12
12
|
const t = ({ children: a }) => {
|
|
13
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
14
|
i
|
|
@@ -52,7 +52,7 @@ const t = ({ children: a }) => {
|
|
|
52
52
|
onHoverChange: (S) => C(S ? s : void 0),
|
|
53
53
|
label: r == null ? void 0 : r(Number(s))
|
|
54
54
|
})));
|
|
55
|
-
},
|
|
55
|
+
}, J = {
|
|
56
56
|
border: 0,
|
|
57
57
|
clipPath: "inset(50%)",
|
|
58
58
|
height: 1,
|
|
@@ -79,16 +79,16 @@ const t = ({ children: a }) => {
|
|
|
79
79
|
isHovered: c,
|
|
80
80
|
isFocused: o
|
|
81
81
|
}) : n, d ? /* @__PURE__ */ e.createElement("span", {
|
|
82
|
-
style:
|
|
82
|
+
style: J
|
|
83
83
|
}, d) : null)));
|
|
84
84
|
};
|
|
85
85
|
b.Rating = F;
|
|
86
|
-
t.Label =
|
|
86
|
+
t.Label = X;
|
|
87
87
|
t.Ratings = b;
|
|
88
88
|
t.Rating = F;
|
|
89
89
|
t.Description = z;
|
|
90
|
-
t.Error =
|
|
91
|
-
const
|
|
90
|
+
t.Error = Q;
|
|
91
|
+
const K = (a) => /* @__PURE__ */ e.createElement("svg", {
|
|
92
92
|
viewBox: "0 0 32 32",
|
|
93
93
|
width: 32,
|
|
94
94
|
height: 32,
|
|
@@ -111,14 +111,14 @@ const J = (a) => /* @__PURE__ */ e.createElement("svg", {
|
|
|
111
111
|
selected: p.ratingSelected,
|
|
112
112
|
hover: p.ratingHover
|
|
113
113
|
}, Ee = () => {
|
|
114
|
-
const { t: a } =
|
|
114
|
+
const { t: a } = M(), n = j({
|
|
115
115
|
globalClasses: q,
|
|
116
116
|
moduleClasses: te
|
|
117
117
|
});
|
|
118
118
|
return /* @__PURE__ */ e.createElement(t, null, /* @__PURE__ */ e.createElement(t.Label, {
|
|
119
|
-
className: u(
|
|
119
|
+
className: u(T, g.label)
|
|
120
120
|
}, /* @__PURE__ */ e.createElement(t.Label.Required, {
|
|
121
|
-
className: u(
|
|
121
|
+
className: u(H, g.requiredMark)
|
|
122
122
|
})), /* @__PURE__ */ e.createElement(t.Ratings, {
|
|
123
123
|
className: u(w, p.ratings),
|
|
124
124
|
getReactionLabel: (r) => a("rating-input.a11y.reaction-label", {
|
|
@@ -126,9 +126,9 @@ const J = (a) => /* @__PURE__ */ e.createElement("svg", {
|
|
|
126
126
|
})
|
|
127
127
|
}, /* @__PURE__ */ e.createElement(t.Rating, {
|
|
128
128
|
className: n
|
|
129
|
-
}, /* @__PURE__ */ e.createElement(
|
|
129
|
+
}, /* @__PURE__ */ e.createElement(K, null))), /* @__PURE__ */ e.createElement(t.Error, {
|
|
130
130
|
className: u(B, g.error)
|
|
131
|
-
}, /* @__PURE__ */ e.createElement(
|
|
131
|
+
}, /* @__PURE__ */ e.createElement(Z, null), /* @__PURE__ */ e.createElement(t.Error.Text, null)), /* @__PURE__ */ e.createElement(t.Description, {
|
|
132
132
|
className: u(P, g.description)
|
|
133
133
|
}, ee));
|
|
134
134
|
};
|