@wix/form-elements 1.63.0 → 1.64.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-B1VVk_Ui.js → appointment-rac-DojiZqx9.js} +35 -35
- package/dist/component/{bookings-address-rac-IQeHFdHT.js → bookings-address-rac-Bm_lQchD.js} +1 -1
- package/dist/component/{bookings-email-rac-z26A790r.js → bookings-email-rac-vwuy0kW8.js} +1 -1
- package/dist/component/{bookings-first-name-rac-Djf0GPP4.js → bookings-first-name-rac-BbWuLoeg.js} +1 -1
- package/dist/component/{bookings-header-rac-CXOzAOpz.js → bookings-header-rac-DVknNH29.js} +1 -1
- package/dist/component/{bookings-last-name-rac-CbB8alM9.js → bookings-last-name-rac-BnT3Cq0b.js} +1 -1
- package/dist/component/{bookings-login-bar-rac-CXrLx7Pn.js → bookings-login-bar-rac-DKi-VAXc.js} +5 -5
- package/dist/component/{bookings-phone-rac-DGYx7h5g.js → bookings-phone-rac-Bfy8rheB.js} +1 -1
- package/dist/component/{bookings-rich-text-rac-viJG57XF.js → bookings-rich-text-rac-DGiBDcXw.js} +1 -1
- package/dist/component/{checkbox-field-rac-e-RAmupX.js → checkbox-field-rac-CYADRY54.js} +5 -5
- package/dist/component/checkbox-group-field-headless-BDAFpX5F.js +210 -0
- package/dist/component/checkbox-group-field-rac-2YUsOmDI.js +40 -0
- package/dist/component/{checkbox-group-rac-CDfDTWqz.js → checkbox-group-rac-CQf1C9H5.js} +1 -1
- package/dist/component/{checkbox-rac-BRBKYD_5.js → checkbox-rac-Bjv8jZjs.js} +1 -1
- package/dist/component/{contacts-address-rac-BtWWQi77.js → contacts-address-rac-BBTiEec9.js} +1 -1
- package/dist/component/{contacts-birthdate-rac-DaEUXJTf.js → contacts-birthdate-rac-XReeFHVW.js} +1 -1
- package/dist/component/{contacts-company-rac-IgRyjtcM.js → contacts-company-rac-B-fUQszu.js} +1 -1
- package/dist/component/{contacts-email-rac-BS1MDrMk.js → contacts-email-rac-DBtcCcsV.js} +1 -1
- package/dist/component/{contacts-first-name-rac-BAvXypDF.js → contacts-first-name-rac-mkwU3706.js} +1 -1
- package/dist/component/{contacts-last-name-rac-C289RYPl.js → contacts-last-name-rac-DY5N-AZx.js} +1 -1
- package/dist/component/{contacts-phone-rac-DIpyskam.js → contacts-phone-rac-Ce1rMz_z.js} +1 -1
- package/dist/component/{contacts-position-rac-nPeh3lKU.js → contacts-position-rac-B65H8PDu.js} +1 -1
- package/dist/component/contacts-subscribe-rac-BxO8rIyL.js +13 -0
- package/dist/component/{contacts-tax-id-rac-C4WB-SR0.js → contacts-tax-id-rac-Jtt0ySK2.js} +1 -1
- package/dist/component/{date-availability-HHjPx4Uv.js → date-availability-B8UwvTJa.js} +1 -1
- package/dist/component/{date-input-field-rac-GFgFcpX2.js → date-input-field-rac-RL2a0xoD.js} +33 -33
- package/dist/component/{date-input-rac-B9BUEIA-.js → date-input-rac-ak3G7V07.js} +1 -1
- package/dist/component/{date-picker-field-rac-BfjYIIuY.js → date-picker-field-rac-SL_Roltf.js} +31 -31
- package/dist/component/{date-picker-rac-Bd2UN0ZF.js → date-picker-rac-ByrM0YIX.js} +1 -1
- package/dist/component/{date-time-input-field-rac-CAXnxLQP.js → date-time-input-field-rac-DOE7xcKi.js} +36 -36
- package/dist/component/{date-time-input-rac-BuJ3Awlh.js → date-time-input-rac-BA-GyrAc.js} +1 -1
- package/dist/component/{dext-checkbox-group-rac-DKp4cBVa.js → dext-checkbox-group-rac-EwUnBO80.js} +2 -2
- package/dist/component/{dext-checkbox-rac-BMu_k06A.js → dext-checkbox-rac-CIRKi4B5.js} +1 -1
- package/dist/component/{dext-date-picker-rac-L3sdldhT.js → dext-date-picker-rac-BYO_Q1zM.js} +1 -1
- package/dist/component/{dext-date-time-input-rac-UmabFzDN.js → dext-date-time-input-rac-BOahPeaH.js} +1 -1
- package/dist/component/{dext-dropdown-rac-DbjgYaG-.js → dext-dropdown-rac-sTD_r-0H.js} +1 -1
- package/dist/component/{dext-email-rac-rNudrOOK.js → dext-email-rac-e-2_h3he.js} +1 -1
- package/dist/component/{dext-number-input-rac-hw1FTrJL.js → dext-number-input-rac-D6LACzWl.js} +1 -1
- package/dist/component/{dext-phone-rac-DrZ_Vwv2.js → dext-phone-rac-kUycy5Od.js} +1 -1
- package/dist/component/{dext-radio-group-rac-DAt2ax-I.js → dext-radio-group-rac-DPD2UkrV.js} +2 -2
- package/dist/component/{dext-rating-input-rac-BW2Ike11.js → dext-rating-input-rac-DUsnrl9W.js} +1 -1
- package/dist/component/{dext-tags-rac-DDzwlKrR.js → dext-tags-rac-D6z69HuO.js} +2 -2
- package/dist/component/{dext-text-area-rac-D0xf4z3z.js → dext-text-area-rac-C-DVtFJ1.js} +1 -1
- package/dist/component/{dext-text-input-rac-Da04OLmq.js → dext-text-input-rac-CIa2MdC6.js} +1 -1
- package/dist/component/{dext-url-input-rac-B-g4xTqh.js → dext-url-input-rac-8rVVW5us.js} +1 -1
- package/dist/component/{donation-rac-gKeq72jg.js → donation-rac-BjmSBabc.js} +60 -60
- package/dist/component/{dropdown-field-headless-Js5TxdU4.js → dropdown-field-headless-DReo519l.js} +16 -16
- package/dist/component/{dropdown-field-rac-BDxcvX00.js → dropdown-field-rac-DzrjA2O6.js} +7 -7
- package/dist/component/{dropdown-rac-B5UHNzV-.js → dropdown-rac-CS7oLTp_.js} +1 -1
- package/dist/component/{ecom-address-rac-0zm4bX37.js → ecom-address-rac-EIb88J_6.js} +1 -1
- package/dist/component/{ecom-subscription-checkbox-rac-DCXoI33l.js → ecom-subscription-checkbox-rac-CE0Ks6qS.js} +5 -5
- package/dist/component/{email-input-field-rac-svf6hUHF.js → email-input-field-rac-BScZxYHw.js} +47 -47
- package/dist/component/{events-repeater-rac-DMIqzuVK.js → events-repeater-rac-Y0rH2Jli.js} +45 -45
- package/dist/component/{events-rsvp-rac-B_YD4ckO.js → events-rsvp-rac-BiAYVv_b.js} +12 -12
- package/dist/component/{field-error-headless-DTKnr5Zx.js → field-error-headless-DrnFrGun.js} +3 -3
- package/dist/component/{field-label-headless-DV4aNd5Y.js → field-label-headless-BIYf1BIh.js} +4 -4
- package/dist/component/field-rac.module-CWkwwhq4.js +21 -0
- package/dist/component/{file-upload-rac-lGKJjG3m.js → file-upload-rac-br--tZLp.js} +73 -73
- package/dist/component/{fixed-payment-rac-BVS6glii.js → fixed-payment-rac-XEtrsaMy.js} +11 -11
- package/dist/component/{form-DzjdnO7t.js → form-9yjqDnxY.js} +1563 -1556
- package/dist/component/form-element-classes-KRzHUNLu.js +57 -0
- package/dist/component/form.css +1 -1
- package/dist/component/form.js +1 -1
- package/dist/component/{header-field-rac-tzBH-8Yh.js → header-field-rac-CLELgzqY.js} +7 -7
- package/dist/component/{header-rac-6thQAvVF.js → header-rac-D8KGkVVp.js} +1 -1
- package/dist/component/{image-choice-rac-Dx1b-saW.js → image-choice-rac-Cl09CLP4.js} +14 -14
- package/dist/component/{index-DIP7KB8P.js → index-C4y71e1i.js} +2 -2
- package/dist/component/{index-Lnx0829a.js → index-PHkE0Ru4.js} +4 -4
- package/dist/component/{isObjectLike-B_1KizZV.js → isObjectLike-srCDplej.js} +1 -1
- package/dist/component/{multiline-address-field-rac-BY2SUp2d.js → multiline-address-field-rac-CsBLI9y-.js} +80 -80
- package/dist/component/{multiline-address-rac-BL8Yp4F0.js → multiline-address-rac-DFDPFfXh.js} +1 -1
- package/dist/component/{number-input-field-rac-x0yFmXbe.js → number-input-field-rac-DZRR7gdt.js} +16 -16
- package/dist/component/{number-input-rac-pJXc2YsD.js → number-input-rac-BCS5lkff.js} +1 -1
- package/dist/component/{password-rac-B4XCP64b.js → password-rac-ClDGgR3E.js} +16 -16
- package/dist/component/{payment-input-rac-CZdOAjK4.js → payment-input-rac-COydWmUE.js} +28 -28
- package/dist/component/{phone-input-field-rac-DO_V5Z_T.js → phone-input-field-rac-DYCibqe1.js} +42 -42
- package/dist/component/{phone-rac-D16nLDjP.js → phone-rac-BS-dmWkJ.js} +1 -1
- package/dist/component/{product-list-rac-DER8gVqy.js → product-list-rac-hxOhaA-r.js} +75 -75
- package/dist/component/quiz-radio-group-rac-BT-YZO2Q.js +13 -0
- package/dist/component/{radio-group-field-rac-Dt2pU0VV.js → radio-group-field-rac-DKqWnMBJ.js} +3 -3
- package/dist/component/{radio-group-field-rac.module--sO0VqCA.js → radio-group-field-rac.module-BwUynK_5.js} +7 -7
- package/dist/component/{radio-group-rac-CqCmtkNQ.js → radio-group-rac-DHURQZKK.js} +1 -1
- package/dist/component/{rating-input-field-rac-xDrHHcL2.js → rating-input-field-rac-CZRdSVrf.js} +30 -30
- package/dist/component/{rating-input-rac-Bo5E9N87.js → rating-input-rac-BaH52DYm.js} +1 -1
- package/dist/component/{rich-content-rac.module-CJXbNca9.js → rich-content-rac.module-ILBfxEmN.js} +1 -1
- package/dist/component/{rich-text-field-rac-CkV0Z9F-.js → rich-text-field-rac-B58q8Is7.js} +5 -5
- package/dist/component/{rich-text-rac-59DbKpXz.js → rich-text-rac-DGbZh1eX.js} +1 -1
- package/dist/component/{service-dropdown-rac-BLnflnUr.js → service-dropdown-rac-DUiNIbdv.js} +45 -45
- package/dist/component/services-multi-choice-rac-B7y9s2l8.js +76 -0
- package/dist/component/{signature-rac-Bb5IaS28.js → signature-rac-CydpvQJZ.js} +25 -25
- package/dist/component/{submit-button-rac-Bjyi8sUA.js → submit-button-rac-OO53h4H8.js} +6 -6
- package/dist/component/{tags-field-rac-C_VO3_69.js → tags-field-rac-eX3d3JEH.js} +44 -44
- package/dist/component/{tags-rac-CKiutCWe.js → tags-rac-CdIB_48Z.js} +1 -1
- package/dist/component/{text-area-field-rac-Cg-vIhFe.js → text-area-field-rac-Bir5Q7gz.js} +17 -17
- package/dist/component/{text-area-rac-tMFx38UD.js → text-area-rac-Ct1UNU04.js} +1 -1
- package/dist/component/{text-input-field-rac-CgN_2hOD.js → text-input-field-rac-onGUXC9J.js} +6 -6
- package/dist/component/{text-input-headless-CkhvKrFp.js → text-input-headless-Bs9m7QFg.js} +11 -11
- package/dist/component/{text-input-rac-BsyBgd3b.js → text-input-rac-DK4nEw4D.js} +1 -1
- package/dist/component/{time-input-rac-BxRVJtHE.js → time-input-rac-BCG9ktFa.js} +35 -35
- package/dist/component/{url-input-field-rac-B_1yVniS.js → url-input-field-rac-mUkrVTcL.js} +24 -24
- package/dist/component/{url-input-rac-D8VrKYVe.js → url-input-rac-Cl7LFYlr.js} +1 -1
- package/dist/component/{use-service-options-base-Ci9gIluo.js → use-service-options-base-BYVuKRj2.js} +6 -6
- package/dist/form.d.ts +3 -1
- package/package.json +2 -2
- package/dist/component/checkbox-group-field-headless-Cvia4lL6.js +0 -204
- package/dist/component/checkbox-group-field-rac-BXxk90dk.js +0 -33
- package/dist/component/contacts-subscribe-rac-Ci5OLk68.js +0 -13
- package/dist/component/field-rac.module-DtugsLiL.js +0 -21
- package/dist/component/form-element-classes-Bi-nNM8q.js +0 -55
- package/dist/component/quiz-radio-group-rac-BgTmHHi4.js +0 -13
- package/dist/component/services-multi-choice-rac-C-bFjwx8.js +0 -76
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
import t, { useMemo as
|
|
2
|
-
import { RicosViewer as
|
|
3
|
-
import
|
|
1
|
+
import t, { useMemo as G, useCallback as q, useRef as B } from "react";
|
|
2
|
+
import { RicosViewer as H } from "@wix/ricos/viewer";
|
|
3
|
+
import _ from "classnames";
|
|
4
4
|
import { CheckboxField as K, CheckboxButton as j, NumberField as J, Group as W, Button as U, Input as X } from "react-aria-components";
|
|
5
|
-
import {
|
|
5
|
+
import { ai as M, af as Y, ab as w, as as Z, ak as ee } from "./form-9yjqDnxY.js";
|
|
6
6
|
import { f as b, a as L } from "./find-child-C60k4CxG.js";
|
|
7
|
-
import { L as te, g as ne } from "./field-label-headless-
|
|
7
|
+
import { L as te, g as ne } from "./field-label-headless-BIYf1BIh.js";
|
|
8
8
|
import { f as ae } from "./format-currency-BwShJ9vM.js";
|
|
9
|
-
import { D as oe, E as re } from "./field-error-headless-
|
|
10
|
-
import { F as
|
|
11
|
-
import { g as
|
|
9
|
+
import { D as oe, E as re } from "./field-error-headless-DrnFrGun.js";
|
|
10
|
+
import { F as ie } from "./fieldset-headless-CD3fds9J.js";
|
|
11
|
+
import { g as le } from "./payment-field-utils-DobiK5Xh.js";
|
|
12
12
|
import { E as se } from "./error-icon-hZxQ6DEy.js";
|
|
13
|
-
import { s as
|
|
14
|
-
import {
|
|
15
|
-
import { o as
|
|
13
|
+
import { s as S } from "./field-rac.module-CWkwwhq4.js";
|
|
14
|
+
import { t as ce, J as ue, x as me, A as pe, z as de, y as Ee, s as ye, n as fe, j as _e } from "./form-element-classes-KRzHUNLu.js";
|
|
15
|
+
import { o as Q } from "./options-rac.module-KM-VT_KY.js";
|
|
16
16
|
var be = /* @__PURE__ */ (function(e) {
|
|
17
17
|
return e.crop = "CROP", e.fit = "FIT", e;
|
|
18
18
|
})({}), k = /* @__PURE__ */ (function(e) {
|
|
19
19
|
return e.oneByOne = "one-by-one", e.onlyOne = "only-one", e.many = "many", e;
|
|
20
20
|
})({});
|
|
21
21
|
function Ie({ maxItems: e, products: o } = {}) {
|
|
22
|
-
return e === 1 ? k.onlyOne : o != null && o.length && o.every((
|
|
22
|
+
return e === 1 ? k.onlyOne : o != null && o.length && o.every((i) => {
|
|
23
23
|
var n;
|
|
24
|
-
return typeof ((n =
|
|
24
|
+
return typeof ((n = i.quantityLimit) == null ? void 0 : n.maximum) > "u";
|
|
25
25
|
}) ? k.many : k.oneByOne;
|
|
26
26
|
}
|
|
27
27
|
const a = ({ children: e }) => {
|
|
28
28
|
var D;
|
|
29
|
-
const { id: o, value:
|
|
30
|
-
|
|
31
|
-
]),
|
|
32
|
-
const
|
|
33
|
-
...
|
|
34
|
-
|
|
35
|
-
] :
|
|
36
|
-
n == null || n(
|
|
29
|
+
const { id: o, value: i, onChange: n, disabled: r, readOnly: c, required: E, onBlur: I, onFocus: l, hasError: u, validation: m, FieldLayout: p } = M(), { inputId: T, labelId: v, ariaDescribedBy: N } = Y(), y = b(e, a.Label), g = b(e, a.Options), A = b(e, a.Description), O = b(e, a.Error), s = G(() => i || [], [
|
|
30
|
+
i
|
|
31
|
+
]), x = Ie((D = m == null ? void 0 : m.predefined) == null ? void 0 : D.paymentOptions) === k.many, F = q((P, C) => {
|
|
32
|
+
const f = s.filter(($) => $.productId !== P.productId), z = C ? [
|
|
33
|
+
...f,
|
|
34
|
+
P
|
|
35
|
+
] : f;
|
|
36
|
+
n == null || n(z);
|
|
37
37
|
}, [
|
|
38
38
|
s,
|
|
39
39
|
n
|
|
@@ -41,15 +41,15 @@ const a = ({ children: e }) => {
|
|
|
41
41
|
return /* @__PURE__ */ t.createElement(p, {
|
|
42
42
|
fieldId: o,
|
|
43
43
|
renderLabel: () => y,
|
|
44
|
-
renderInput: () => /* @__PURE__ */ t.createElement(
|
|
45
|
-
id:
|
|
44
|
+
renderInput: () => /* @__PURE__ */ t.createElement(ie, {
|
|
45
|
+
id: T,
|
|
46
46
|
ariaLabelledBy: v,
|
|
47
47
|
ariaDescribedBy: N,
|
|
48
48
|
required: E,
|
|
49
49
|
onBlur: I,
|
|
50
|
-
onFocus:
|
|
50
|
+
onFocus: l
|
|
51
51
|
}, g ? L(g, {
|
|
52
|
-
allowMany:
|
|
52
|
+
allowMany: x,
|
|
53
53
|
productValues: s,
|
|
54
54
|
onProductChange: F,
|
|
55
55
|
disabled: r,
|
|
@@ -58,13 +58,13 @@ const a = ({ children: e }) => {
|
|
|
58
58
|
}) : null),
|
|
59
59
|
renderDescription: () => /* @__PURE__ */ t.createElement(t.Fragment, null, O, A)
|
|
60
60
|
});
|
|
61
|
-
}, V = ({ children: e, className: o, ...
|
|
62
|
-
const { allowMany: n, productValues: r, onProductChange: c, disabled: E, readOnly: I, hasError:
|
|
61
|
+
}, V = ({ children: e, className: o, ...i }) => {
|
|
62
|
+
const { allowMany: n, productValues: r, onProductChange: c, disabled: E, readOnly: I, hasError: l } = i, { options: u, validation: m, imageResize: p } = M(), { currency: T } = w(), { t: v } = Z(), N = b(e, a.Option);
|
|
63
63
|
return /* @__PURE__ */ t.createElement("div", {
|
|
64
64
|
className: o
|
|
65
65
|
}, u == null ? void 0 : u.map((y, g) => {
|
|
66
|
-
var R,
|
|
67
|
-
const A = ((
|
|
66
|
+
var R, x, F, D, P;
|
|
67
|
+
const A = ((P = (D = (F = (x = (R = m == null ? void 0 : m.predefined) == null ? void 0 : R.paymentOptions) == null ? void 0 : x.products) == null ? void 0 : F.find((C) => C.id === y.value)) == null ? void 0 : D.fixedPriceOptions) == null ? void 0 : P.price) || "0", O = le(v, T), s = r.find((C) => C.productId === y.value);
|
|
68
68
|
return L(N, {
|
|
69
69
|
key: y.id || y.value || y.label,
|
|
70
70
|
option: y,
|
|
@@ -75,41 +75,41 @@ const a = ({ children: e }) => {
|
|
|
75
75
|
onProductChange: c,
|
|
76
76
|
disabled: E,
|
|
77
77
|
readOnly: I,
|
|
78
|
-
hasError:
|
|
78
|
+
hasError: l,
|
|
79
79
|
currencyAriaLabel: O,
|
|
80
80
|
imageResize: p,
|
|
81
81
|
isFirst: g === 0
|
|
82
82
|
});
|
|
83
83
|
}));
|
|
84
|
-
}, d = ({ children: e, className: o, ...
|
|
85
|
-
const { option: n, price: r, quantity: c = 0, isSelected: E, allowMany: I, onProductChange:
|
|
84
|
+
}, d = ({ children: e, className: o, ...i }) => {
|
|
85
|
+
const { option: n, price: r, quantity: c = 0, isSelected: E, allowMany: I, onProductChange: l, disabled: u, readOnly: m, hasError: p, currencyAriaLabel: T, imageResize: v, isFirst: N } = i, { id: y } = M(), g = B(null), A = B(null), O = b(e, d.Image), s = b(e, d.Label), R = b(e, d.Price), x = b(e, d.Input), F = b(e, d.Quantity);
|
|
86
86
|
ee(() => {
|
|
87
|
-
var
|
|
88
|
-
N && ((
|
|
87
|
+
var f;
|
|
88
|
+
N && ((f = g.current ?? A.current) == null || f.focus({
|
|
89
89
|
preventScroll: !0
|
|
90
90
|
}));
|
|
91
91
|
}, y);
|
|
92
|
-
const D =
|
|
93
|
-
|
|
92
|
+
const D = q((f) => {
|
|
93
|
+
l({
|
|
94
94
|
productId: n.value,
|
|
95
95
|
price: r,
|
|
96
96
|
quantity: 1
|
|
97
|
-
},
|
|
97
|
+
}, f);
|
|
98
98
|
}, [
|
|
99
|
-
|
|
99
|
+
l,
|
|
100
100
|
n.value,
|
|
101
101
|
r
|
|
102
|
-
]),
|
|
103
|
-
|
|
102
|
+
]), P = q((f) => {
|
|
103
|
+
l({
|
|
104
104
|
productId: n.value,
|
|
105
105
|
price: r,
|
|
106
|
-
quantity:
|
|
107
|
-
},
|
|
106
|
+
quantity: f
|
|
107
|
+
}, f > 0);
|
|
108
108
|
}, [
|
|
109
|
-
|
|
109
|
+
l,
|
|
110
110
|
n.value,
|
|
111
111
|
r
|
|
112
|
-
]), C = `${n.label} ${
|
|
112
|
+
]), C = `${n.label} ${T} ${r}`;
|
|
113
113
|
return I ? /* @__PURE__ */ t.createElement("div", {
|
|
114
114
|
className: o,
|
|
115
115
|
"data-hook": "product"
|
|
@@ -122,7 +122,7 @@ const a = ({ children: e }) => {
|
|
|
122
122
|
price: r
|
|
123
123
|
}) : null, F ? L(F, {
|
|
124
124
|
quantity: c,
|
|
125
|
-
onQuantityChange:
|
|
125
|
+
onQuantityChange: P,
|
|
126
126
|
disabled: u,
|
|
127
127
|
readOnly: m,
|
|
128
128
|
hasError: p,
|
|
@@ -146,16 +146,16 @@ const a = ({ children: e }) => {
|
|
|
146
146
|
label: n.label
|
|
147
147
|
}) : null, R ? L(R, {
|
|
148
148
|
price: r
|
|
149
|
-
}) : null,
|
|
149
|
+
}) : null, x));
|
|
150
150
|
}, Le = ({ className: e, ...o }) => {
|
|
151
|
-
var
|
|
152
|
-
const { option:
|
|
151
|
+
var l;
|
|
152
|
+
const { option: i, imageResize: n } = o, r = (l = i.media) == null ? void 0 : l.image;
|
|
153
153
|
if (!r)
|
|
154
154
|
return null;
|
|
155
155
|
const c = n === be.fit, E = ne(r, 96, 96, c ? "fit" : "fill");
|
|
156
156
|
if (!E)
|
|
157
157
|
return null;
|
|
158
|
-
const I = r.altText ||
|
|
158
|
+
const I = r.altText || i.label || "";
|
|
159
159
|
return /* @__PURE__ */ t.createElement("img", {
|
|
160
160
|
className: e,
|
|
161
161
|
src: E,
|
|
@@ -164,14 +164,14 @@ const a = ({ children: e }) => {
|
|
|
164
164
|
"data-hook": "product-image"
|
|
165
165
|
});
|
|
166
166
|
}, Oe = ({ className: e, ...o }) => {
|
|
167
|
-
const { label:
|
|
167
|
+
const { label: i } = o;
|
|
168
168
|
return /* @__PURE__ */ t.createElement("span", {
|
|
169
169
|
className: e,
|
|
170
170
|
"data-hook": "product-label"
|
|
171
|
-
},
|
|
171
|
+
}, i || "");
|
|
172
172
|
}, Re = ({ className: e, ...o }) => {
|
|
173
|
-
const { price:
|
|
174
|
-
amount:
|
|
173
|
+
const { price: i } = o, { currency: n, regionalFormat: r } = w(), c = ae({
|
|
174
|
+
amount: i,
|
|
175
175
|
currency: n == null ? void 0 : n.code,
|
|
176
176
|
locale: r
|
|
177
177
|
});
|
|
@@ -183,17 +183,17 @@ const a = ({ children: e }) => {
|
|
|
183
183
|
"aria-hidden": "true",
|
|
184
184
|
className: e
|
|
185
185
|
}), ge = ({ className: e, ...o }) => {
|
|
186
|
-
const { quantity:
|
|
186
|
+
const { quantity: i, onQuantityChange: n, disabled: r, readOnly: c, hasError: E, ariaLabel: I, inputRef: l } = o, u = q((p) => {
|
|
187
187
|
n(p < 0 ? 0 : p);
|
|
188
188
|
}, [
|
|
189
189
|
n
|
|
190
|
-
]), m =
|
|
190
|
+
]), m = q((p) => {
|
|
191
191
|
p.key === "Home" && (p.preventDefault(), u(0));
|
|
192
192
|
}, [
|
|
193
193
|
u
|
|
194
194
|
]);
|
|
195
195
|
return /* @__PURE__ */ t.createElement(J, {
|
|
196
|
-
value:
|
|
196
|
+
value: i,
|
|
197
197
|
onChange: u,
|
|
198
198
|
minValue: 0,
|
|
199
199
|
step: 1,
|
|
@@ -208,7 +208,7 @@ const a = ({ children: e }) => {
|
|
|
208
208
|
}, /* @__PURE__ */ t.createElement(U, {
|
|
209
209
|
slot: "decrement"
|
|
210
210
|
}, "-"), /* @__PURE__ */ t.createElement(X, {
|
|
211
|
-
ref:
|
|
211
|
+
ref: l
|
|
212
212
|
}), /* @__PURE__ */ t.createElement(U, {
|
|
213
213
|
slot: "increment"
|
|
214
214
|
}, "+")));
|
|
@@ -224,40 +224,40 @@ a.Options = V;
|
|
|
224
224
|
a.Option = d;
|
|
225
225
|
a.Description = oe;
|
|
226
226
|
a.Error = re;
|
|
227
|
-
const Fe = "_options_11x4v_1", De = "_option_11x4v_1",
|
|
227
|
+
const Fe = "_options_11x4v_1", De = "_option_11x4v_1", Pe = "_optionInput_11x4v_21", Se = "_optionImage_11x4v_32", he = "_optionLabel_11x4v_66", ve = "_optionPrice_11x4v_73", Ne = "_quantity_11x4v_87", h = {
|
|
228
228
|
options: Fe,
|
|
229
229
|
option: De,
|
|
230
|
-
optionInput:
|
|
231
|
-
optionImage:
|
|
232
|
-
optionLabel:
|
|
230
|
+
optionInput: Pe,
|
|
231
|
+
optionImage: Se,
|
|
232
|
+
optionLabel: he,
|
|
233
233
|
optionPrice: ve,
|
|
234
234
|
quantity: Ne
|
|
235
|
-
}, Ae = ({ content: e, locale: o }) => /* @__PURE__ */ t.createElement(
|
|
235
|
+
}, Ae = ({ content: e, locale: o }) => /* @__PURE__ */ t.createElement(H, {
|
|
236
236
|
content: e,
|
|
237
237
|
locale: o
|
|
238
|
-
}),
|
|
239
|
-
className:
|
|
238
|
+
}), xe = () => /* @__PURE__ */ t.createElement(a, null, /* @__PURE__ */ t.createElement(a.Label, {
|
|
239
|
+
className: _(ce, S.label)
|
|
240
240
|
}, /* @__PURE__ */ t.createElement(a.Label.Required, {
|
|
241
|
-
className:
|
|
241
|
+
className: _(ue, S.requiredMark)
|
|
242
242
|
})), /* @__PURE__ */ t.createElement(a.Options, {
|
|
243
|
-
className:
|
|
243
|
+
className: _(me, Q.options, h.options)
|
|
244
244
|
}, /* @__PURE__ */ t.createElement(a.Option, {
|
|
245
|
-
className:
|
|
245
|
+
className: _(S.checkbox, h.option)
|
|
246
246
|
}, /* @__PURE__ */ t.createElement(a.Option.Image, {
|
|
247
|
-
className:
|
|
247
|
+
className: h.optionImage
|
|
248
248
|
}), /* @__PURE__ */ t.createElement(a.Option.Label, {
|
|
249
|
-
className:
|
|
249
|
+
className: _(pe, Q.optionLabel, h.optionLabel)
|
|
250
250
|
}), /* @__PURE__ */ t.createElement(a.Option.Price, {
|
|
251
|
-
className:
|
|
251
|
+
className: _(de, h.optionPrice)
|
|
252
252
|
}), /* @__PURE__ */ t.createElement(a.Option.Input, {
|
|
253
|
-
className:
|
|
253
|
+
className: _(Ee, S.checkboxInput, h.optionInput)
|
|
254
254
|
}), /* @__PURE__ */ t.createElement(a.Option.Quantity, {
|
|
255
|
-
className:
|
|
255
|
+
className: _(ye, S.inputGroup, h.quantity)
|
|
256
256
|
}))), /* @__PURE__ */ t.createElement(a.Error, {
|
|
257
|
-
className:
|
|
257
|
+
className: _(fe, S.error)
|
|
258
258
|
}, /* @__PURE__ */ t.createElement(se, null), /* @__PURE__ */ t.createElement(a.Error.Text, null)), /* @__PURE__ */ t.createElement(a.Description, {
|
|
259
|
-
className:
|
|
260
|
-
}, Ae)), Je = () => /* @__PURE__ */ t.createElement(
|
|
259
|
+
className: _(_e, S.description)
|
|
260
|
+
}, Ae)), Je = () => /* @__PURE__ */ t.createElement(xe, null);
|
|
261
261
|
export {
|
|
262
262
|
Je as ProductListRAC
|
|
263
263
|
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import _ from "react";
|
|
2
|
+
import { R } from "./radio-group-field-rac-DKqWnMBJ.js";
|
|
3
|
+
import { D as o, C as r, B as O } from "./form-element-classes-KRzHUNLu.js";
|
|
4
|
+
const I = () => /* @__PURE__ */ _.createElement(R, {
|
|
5
|
+
classes: {
|
|
6
|
+
container: O,
|
|
7
|
+
label: r,
|
|
8
|
+
control: o
|
|
9
|
+
}
|
|
10
|
+
});
|
|
11
|
+
export {
|
|
12
|
+
I as QuizRadioGroupRAC
|
|
13
|
+
};
|
package/dist/component/{radio-group-field-rac-Dt2pU0VV.js → radio-group-field-rac-DKqWnMBJ.js}
RENAMED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { RicosViewer as s } from "@wix/ricos/viewer";
|
|
2
2
|
import a from "classnames";
|
|
3
3
|
import e from "react";
|
|
4
|
-
import { R as t, s as r } from "./radio-group-field-rac.module
|
|
4
|
+
import { R as t, s as r } from "./radio-group-field-rac.module-BwUynK_5.js";
|
|
5
5
|
import { E as m } from "./error-icon-hZxQ6DEy.js";
|
|
6
|
-
import { s as l } from "./field-rac.module-
|
|
7
|
-
import {
|
|
6
|
+
import { s as l } from "./field-rac.module-CWkwwhq4.js";
|
|
7
|
+
import { t as c, J as i, H as E, G as _, E as R, s as p, n as O, j as I } from "./form-element-classes-KRzHUNLu.js";
|
|
8
8
|
const L = ({ content: o, locale: n }) => /* @__PURE__ */ e.createElement(s, {
|
|
9
9
|
content: o,
|
|
10
10
|
locale: n
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import s, { useRef as y, useState as V, useEffect as S, useCallback as B } from "react";
|
|
2
2
|
import { RadioGroup as T, RadioField as k, RadioButton as G, TextField as M, Input as P } from "react-aria-components";
|
|
3
|
-
import {
|
|
3
|
+
import { ai as C, af as $, as as F, ab as q, ak as x } from "./form-9yjqDnxY.js";
|
|
4
4
|
import { f as d, a as g } from "./find-child-C60k4CxG.js";
|
|
5
|
-
import { D as U, E as
|
|
6
|
-
import { L as
|
|
7
|
-
import { N as
|
|
5
|
+
import { D as U, E as A } from "./field-error-headless-DrnFrGun.js";
|
|
6
|
+
import { L as H } from "./field-label-headless-BIYf1BIh.js";
|
|
7
|
+
import { N as j } from "./options-layout-constants-DEfIEJWD.js";
|
|
8
8
|
const L = "Other", w = (e, t) => e == null ? void 0 : e.find((o) => (o.value ?? o.label) === t), R = (e, t) => !!t && !w(e, t), z = (e, t) => {
|
|
9
9
|
const a = t ? t.length + 2 : 0;
|
|
10
10
|
return e.slice(a);
|
|
@@ -31,7 +31,7 @@ const L = "Other", w = (e, t) => e == null ? void 0 : e.find((o) => (o.value ??
|
|
|
31
31
|
renderDescription: () => /* @__PURE__ */ s.createElement(s.Fragment, null, N, _)
|
|
32
32
|
});
|
|
33
33
|
}, J = ({ children: e, className: t }) => {
|
|
34
|
-
const { options: o, addOther: a, addOtherLabel: O, id: m, numberOfColumns: f, hasError: b } = C(), { t: E } = F(), { isMobile: v } = q(), l = d(e, i.Option), r = y(null), c = O || E("add-other.default-other-option-label") || L, I = v ?
|
|
34
|
+
const { options: o, addOther: a, addOtherLabel: O, id: m, numberOfColumns: f, hasError: b } = C(), { t: E } = F(), { isMobile: v } = q(), l = d(e, i.Option), r = y(null), c = O || E("add-other.default-other-option-label") || L, I = v ? j.ONE : f;
|
|
35
35
|
return x(() => {
|
|
36
36
|
var n;
|
|
37
37
|
(n = r.current) == null || n.focus();
|
|
@@ -105,11 +105,11 @@ p.Label = K;
|
|
|
105
105
|
p.Input = Q;
|
|
106
106
|
p.Control = W;
|
|
107
107
|
p.OtherInput = X;
|
|
108
|
-
i.Label =
|
|
108
|
+
i.Label = H;
|
|
109
109
|
i.Options = J;
|
|
110
110
|
i.Option = p;
|
|
111
111
|
i.Description = U;
|
|
112
|
-
i.Error =
|
|
112
|
+
i.Error = A;
|
|
113
113
|
const Y = "_labelImage_45itv_1", Z = "_options_45itv_26", ee = "_option_45itv_26", te = "_optionInput_45itv_46", oe = "_optionControl_45itv_64", ne = "_optionLabel_45itv_142", de = {
|
|
114
114
|
labelImage: Y,
|
|
115
115
|
options: Z,
|
package/dist/component/{rating-input-field-rac-xDrHHcL2.js → rating-input-field-rac-CZRdSVrf.js}
RENAMED
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import { RicosViewer as D } from "@wix/ricos/viewer";
|
|
2
2
|
import d from "classnames";
|
|
3
3
|
import e, { useCallback as N, useState as y, useRef as O } from "react";
|
|
4
|
-
import {
|
|
4
|
+
import { ai as b, af as v, as as A } from "./form-9yjqDnxY.js";
|
|
5
5
|
import { RadioGroup as w, RadioField as M, RadioButton as B } from "react-aria-components";
|
|
6
6
|
import { f as m, a as T } from "./find-child-C60k4CxG.js";
|
|
7
|
-
import { D as H, E as P } from "./field-error-headless-
|
|
8
|
-
import { L as q } from "./field-label-headless-
|
|
7
|
+
import { D as H, E as P } from "./field-error-headless-DrnFrGun.js";
|
|
8
|
+
import { L as q } from "./field-label-headless-BIYf1BIh.js";
|
|
9
9
|
import { E as x } from "./error-icon-hZxQ6DEy.js";
|
|
10
|
-
import { s as u } from "./field-rac.module-
|
|
11
|
-
import {
|
|
10
|
+
import { s as u } from "./field-rac.module-CWkwwhq4.js";
|
|
11
|
+
import { t as k, J as z, I as G, n as j, j as J } from "./form-element-classes-KRzHUNLu.js";
|
|
12
12
|
const t = ({ children: r }) => {
|
|
13
|
-
const { id: n, value:
|
|
14
|
-
|
|
15
|
-
]),
|
|
13
|
+
const { id: n, value: s, onChange: o, disabled: l, required: c, hasError: i, onBlur: C, onFocus: L, FieldLayout: E } = b(), { labelId: p } = v(), R = N((F) => o(Number(F)), [
|
|
14
|
+
o
|
|
15
|
+
]), f = m(r, t.Label), a = m(r, t.Ratings), g = m(r, t.Description), S = m(r, t.Error);
|
|
16
16
|
return /* @__PURE__ */ e.createElement(E, {
|
|
17
17
|
fieldId: n,
|
|
18
|
-
renderLabel: () =>
|
|
18
|
+
renderLabel: () => f,
|
|
19
19
|
renderInput: () => /* @__PURE__ */ e.createElement(w, {
|
|
20
20
|
"aria-labelledby": p,
|
|
21
|
-
value:
|
|
21
|
+
value: s ? String(s) : void 0,
|
|
22
22
|
onChange: R,
|
|
23
23
|
isDisabled: l,
|
|
24
24
|
isRequired: c,
|
|
@@ -27,16 +27,16 @@ const t = ({ children: r }) => {
|
|
|
27
27
|
onFocus: L,
|
|
28
28
|
orientation: "horizontal"
|
|
29
29
|
}, a),
|
|
30
|
-
renderDescription: () => /* @__PURE__ */ e.createElement(e.Fragment, null, S,
|
|
30
|
+
renderDescription: () => /* @__PURE__ */ e.createElement(e.Fragment, null, S, g)
|
|
31
31
|
});
|
|
32
|
-
}, h = ({ children: r, className: n, getReactionLabel:
|
|
33
|
-
const { value:
|
|
32
|
+
}, h = ({ children: r, className: n, getReactionLabel: s }) => {
|
|
33
|
+
const { value: o, hasError: l } = b(), { inputId: c, ariaDescribedBy: i } = v(), [C, L] = y(), E = O(null), p = m(r, h.Rating), R = [
|
|
34
34
|
"1",
|
|
35
35
|
"2",
|
|
36
36
|
"3",
|
|
37
37
|
"4",
|
|
38
38
|
"5"
|
|
39
|
-
],
|
|
39
|
+
], f = (a) => C ? C >= a : !!o && o >= Number(a);
|
|
40
40
|
return /* @__PURE__ */ e.createElement("div", {
|
|
41
41
|
ref: E,
|
|
42
42
|
id: c,
|
|
@@ -46,11 +46,11 @@ const t = ({ children: r }) => {
|
|
|
46
46
|
}, R.map((a) => T(p, {
|
|
47
47
|
key: a,
|
|
48
48
|
value: a,
|
|
49
|
-
isSelected:
|
|
50
|
-
onHoverChange: (
|
|
51
|
-
label:
|
|
49
|
+
isSelected: f(a),
|
|
50
|
+
onHoverChange: (g) => L(g ? a : void 0),
|
|
51
|
+
label: s == null ? void 0 : s(Number(a))
|
|
52
52
|
})));
|
|
53
|
-
},
|
|
53
|
+
}, Q = {
|
|
54
54
|
border: 0,
|
|
55
55
|
clipPath: "inset(50%)",
|
|
56
56
|
height: 1,
|
|
@@ -60,10 +60,10 @@ const t = ({ children: r }) => {
|
|
|
60
60
|
position: "absolute",
|
|
61
61
|
width: 1,
|
|
62
62
|
whiteSpace: "nowrap"
|
|
63
|
-
}, _ = ({ className: r, children: n, ...
|
|
64
|
-
const { value:
|
|
63
|
+
}, _ = ({ className: r, children: n, ...s }) => {
|
|
64
|
+
const { value: o, isSelected: l, onHoverChange: c, label: i } = s;
|
|
65
65
|
return /* @__PURE__ */ e.createElement(M, {
|
|
66
|
-
value:
|
|
66
|
+
value: o
|
|
67
67
|
}, /* @__PURE__ */ e.createElement(B, {
|
|
68
68
|
className: r,
|
|
69
69
|
"data-active": l || void 0,
|
|
@@ -71,7 +71,7 @@ const t = ({ children: r }) => {
|
|
|
71
71
|
}, typeof n == "function" ? n({
|
|
72
72
|
isSelected: l
|
|
73
73
|
}) : n, i ? /* @__PURE__ */ e.createElement("span", {
|
|
74
|
-
style:
|
|
74
|
+
style: Q
|
|
75
75
|
}, i) : null));
|
|
76
76
|
};
|
|
77
77
|
h.Rating = _;
|
|
@@ -80,7 +80,7 @@ t.Ratings = h;
|
|
|
80
80
|
t.Rating = _;
|
|
81
81
|
t.Description = H;
|
|
82
82
|
t.Error = P;
|
|
83
|
-
const
|
|
83
|
+
const U = (r) => /* @__PURE__ */ e.createElement("svg", {
|
|
84
84
|
viewBox: "0 0 32 32",
|
|
85
85
|
width: 32,
|
|
86
86
|
height: 32,
|
|
@@ -90,7 +90,7 @@ const j = (r) => /* @__PURE__ */ e.createElement("svg", {
|
|
|
90
90
|
}, /* @__PURE__ */ e.createElement("path", {
|
|
91
91
|
fillRule: "evenodd",
|
|
92
92
|
d: "M28.6265,13.6325 C28.9655,13.3015 29.0845,12.8175 28.9385,12.3665 C28.7925,11.9165 28.4105,11.5945 27.9415,11.5265 L20.5785,10.4565 C20.5015,10.4445 20.4345,10.3965 20.4005,10.3275 L17.1075,3.6545 L17.1075,3.6535 C16.8975,3.2295 16.4735,2.9655 16.0005,2.9655 L15.9995,2.9655 C15.5255,2.9655 15.1025,3.2295 14.8925,3.6545 L11.5985,10.3275 C11.5645,10.3965 11.4985,10.4445 11.4225,10.4565 L4.0575,11.5265 C3.5895,11.5945 3.2075,11.9165 3.0615,12.3665 C2.9155,12.8175 3.0345,13.3015 3.3735,13.6325 L8.7025,18.8265 C8.7575,18.8805 8.7835,18.9585 8.7705,19.0345 L7.5125,26.3695 C7.4325,26.8355 7.6205,27.2985 8.0035,27.5765 C8.2195,27.7345 8.4735,27.8145 8.7285,27.8145 C8.9245,27.8145 9.1215,27.7665 9.3045,27.6705 L15.8895,24.2085 C15.9595,24.1725 16.0415,24.1725 16.1085,24.2075 L22.6955,27.6705 C23.1155,27.8915 23.6135,27.8555 23.9965,27.5765 C24.3795,27.2985 24.5675,26.8355 24.4875,26.3695 L23.2305,19.0355 C23.2165,18.9585 23.2425,18.8805 23.2975,18.8265 L28.6265,13.6325 Z"
|
|
93
|
-
})),
|
|
93
|
+
})), Z = (r) => /* @__PURE__ */ e.createElement("svg", {
|
|
94
94
|
viewBox: "0 0 32 32",
|
|
95
95
|
width: 32,
|
|
96
96
|
height: 32,
|
|
@@ -100,7 +100,7 @@ const j = (r) => /* @__PURE__ */ e.createElement("svg", {
|
|
|
100
100
|
}, /* @__PURE__ */ e.createElement("path", {
|
|
101
101
|
fillRule: "evenodd",
|
|
102
102
|
d: "M16,3.966 C15.956,3.966 15.848,3.979 15.789,4.097 L12.496,10.77 C12.317,11.133 11.969,11.386 11.567,11.445 L4.202,12.515 C4.072,12.534 4.026,12.634 4.012,12.675 C3.999,12.717 3.978,12.824 4.072,12.917 L9.4,18.111 C9.691,18.394 9.824,18.803 9.755,19.204 L8.498,26.538 C8.476,26.668 8.556,26.742 8.591,26.768 C8.627,26.793 8.721,26.846 8.838,26.786 L15.426,23.323 C15.785,23.133 16.215,23.134 16.574,23.322 L23.162,26.786 C23.277,26.846 23.374,26.793 23.409,26.768 C23.444,26.742 23.524,26.668 23.502,26.538 L22.245,19.204 C22.176,18.803 22.309,18.394 22.6,18.111 L27.928,12.917 C28.022,12.824 28.001,12.717 27.988,12.675 C27.974,12.634 27.928,12.534 27.798,12.515 L20.434,11.445 C20.031,11.386 19.683,11.133 19.504,10.769 L16.211,4.097 C16.152,3.979 16.044,3.966 16,3.966 M8.728,27.814 C8.473,27.814 8.22,27.734 8.003,27.577 C7.62,27.299 7.432,26.836 7.512,26.369 L8.77,19.035 C8.783,18.958 8.758,18.881 8.702,18.826 L3.374,13.633 C3.035,13.302 2.915,12.817 3.061,12.367 C3.208,11.916 3.589,11.594 4.058,11.526 L11.422,10.456 C11.499,10.445 11.565,10.397 11.599,10.328 L14.893,3.654 C15.102,3.23 15.526,2.966 16,2.966 C16.474,2.966 16.898,3.23 17.107,3.654 L20.401,10.327 C20.435,10.397 20.501,10.445 20.579,10.456 L27.942,11.526 C28.411,11.594 28.792,11.916 28.939,12.367 C29.085,12.817 28.965,13.302 28.626,13.633 L23.298,18.826 C23.242,18.881 23.217,18.958 23.23,19.035 L24.488,26.369 C24.568,26.836 24.38,27.299 23.997,27.577 C23.614,27.855 23.116,27.892 22.696,27.671 L16.109,24.208 C16.042,24.173 15.959,24.172 15.891,24.208 L9.304,27.671 C9.122,27.767 8.924,27.814 8.728,27.814"
|
|
103
|
-
})), K = "_ratings_112z7_1", W = "_rating_112z7_1",
|
|
103
|
+
})), K = "_ratings_112z7_1", W = "_rating_112z7_1", I = {
|
|
104
104
|
ratings: K,
|
|
105
105
|
rating: W
|
|
106
106
|
}, X = ({ content: r, locale: n }) => /* @__PURE__ */ e.createElement(D, {
|
|
@@ -113,16 +113,16 @@ const j = (r) => /* @__PURE__ */ e.createElement("svg", {
|
|
|
113
113
|
}, /* @__PURE__ */ e.createElement(t.Label.Required, {
|
|
114
114
|
className: d(z, u.requiredMark)
|
|
115
115
|
})), /* @__PURE__ */ e.createElement(t.Ratings, {
|
|
116
|
-
className:
|
|
116
|
+
className: I.ratings,
|
|
117
117
|
getReactionLabel: (n) => r("rating-input.a11y.reaction-label", {
|
|
118
118
|
count: n
|
|
119
119
|
})
|
|
120
120
|
}, /* @__PURE__ */ e.createElement(t.Rating, {
|
|
121
|
-
className: d(G,
|
|
122
|
-
}, ({ isSelected: n }) => n ? /* @__PURE__ */ e.createElement(
|
|
123
|
-
className: d(
|
|
121
|
+
className: d(G, I.rating)
|
|
122
|
+
}, ({ isSelected: n }) => n ? /* @__PURE__ */ e.createElement(U, null) : /* @__PURE__ */ e.createElement(Z, null))), /* @__PURE__ */ e.createElement(t.Error, {
|
|
123
|
+
className: d(j, u.error)
|
|
124
124
|
}, /* @__PURE__ */ e.createElement(x, null), /* @__PURE__ */ e.createElement(t.Error.Text, null)), /* @__PURE__ */ e.createElement(t.Description, {
|
|
125
|
-
className: d(
|
|
125
|
+
className: d(J, u.description)
|
|
126
126
|
}, X));
|
|
127
127
|
};
|
|
128
128
|
export {
|
package/dist/component/{rich-content-rac.module-CJXbNca9.js → rich-content-rac.module-ILBfxEmN.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import c, { useState as u } from "react";
|
|
2
|
-
import {
|
|
2
|
+
import { ai as a, ab as i, as as T } from "./form-9yjqDnxY.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,12 +1,12 @@
|
|
|
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 { ai as m, L as i, W as u, Z as R } from "./form-9yjqDnxY.js";
|
|
4
|
+
import { u as T, R as C, s as d, T as p } from "./rich-content-rac.module-ILBfxEmN.js";
|
|
5
|
+
import { _ as g } from "./form-element-classes-KRzHUNLu.js";
|
|
6
6
|
const h = {
|
|
7
7
|
colorPalette: R(),
|
|
8
8
|
customStyles: u()
|
|
9
|
-
},
|
|
9
|
+
}, _ = ({ truncate: t = !0 } = {}) => {
|
|
10
10
|
const { content: a, maxShownParagraphs: s } = m(), { displayedContent: n, isTruncated: o, isTruncateButtonShown: r, toggleTruncate: c } = T(a, t ? s : void 0);
|
|
11
11
|
return /* @__PURE__ */ e.createElement(C, null, () => /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(i, {
|
|
12
12
|
className: l(g, d.richContent),
|
|
@@ -18,5 +18,5 @@ const h = {
|
|
|
18
18
|
})));
|
|
19
19
|
};
|
|
20
20
|
export {
|
|
21
|
-
|
|
21
|
+
_ as R
|
|
22
22
|
};
|