@wix/form-elements 1.94.0 → 1.96.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-CNIizm60.js → appointment-rac-BKgRKq3j.js} +309 -310
- package/dist/component/{bookings-address-rac-C7ukrF1D.js → bookings-address-rac-C87x19gw.js} +1 -1
- package/dist/component/{bookings-email-rac-DnzbLEmf.js → bookings-email-rac-f4nuC_pb.js} +1 -1
- package/dist/component/{bookings-first-name-rac-8Krm-3QK.js → bookings-first-name-rac-BGmuAmbu.js} +1 -1
- package/dist/component/{bookings-header-rac-WRILbKeE.js → bookings-header-rac-CoyxHljp.js} +1 -1
- package/dist/component/{bookings-last-name-rac-C0-yWBLa.js → bookings-last-name-rac-D2mBYwcR.js} +1 -1
- package/dist/component/{bookings-login-bar-rac-Bc9u_rn_.js → bookings-login-bar-rac-BH2Mi6TR.js} +4 -4
- package/dist/component/{bookings-phone-rac-BaBlg7f7.js → bookings-phone-rac-Dz78ybFV.js} +1 -1
- package/dist/component/{bookings-rich-text-rac-DR-Ngu_b.js → bookings-rich-text-rac-8_h0cOoy.js} +1 -1
- package/dist/component/{get-first-day-of-the-week-DvnsxYhQ.js → calendar.module-DnhTT4QT.js} +23 -18
- package/dist/component/{checkbox-field-rac-Cqr57TgJ.js → checkbox-field-rac-CJnegjvL.js} +5 -5
- package/dist/component/{checkbox-group-field-headless-Bgcvavr3.js → checkbox-group-field-headless-CrA7Gx2Y.js} +3 -3
- package/dist/component/{checkbox-group-field-rac-Bcsowjwp.js → checkbox-group-field-rac-DMg75l5Q.js} +12 -12
- package/dist/component/{checkbox-group-rac-38j0b8_U.js → checkbox-group-rac-C9XWlO5D.js} +1 -1
- package/dist/component/{checkbox-rac-Bb5ZxZo7.js → checkbox-rac-CrqhH4z9.js} +1 -1
- package/dist/component/{contacts-address-rac-gaOhfztb.js → contacts-address-rac-C2mqTiPg.js} +1 -1
- package/dist/component/{contacts-birthdate-rac-DAIPR64p.js → contacts-birthdate-rac-i7_RMona.js} +1 -1
- package/dist/component/{contacts-company-rac-DVPQrcfN.js → contacts-company-rac-7sdIosaG.js} +1 -1
- package/dist/component/{contacts-email-rac-qMyFjz_2.js → contacts-email-rac-CrsksJ9G.js} +1 -1
- package/dist/component/{contacts-first-name-rac-OVPtHcde.js → contacts-first-name-rac-I5xIYxgD.js} +1 -1
- package/dist/component/{contacts-last-name-rac-BmLQrJ2D.js → contacts-last-name-rac-DnzJYJh7.js} +1 -1
- package/dist/component/{contacts-phone-rac-D7waZc1q.js → contacts-phone-rac-Cx1jpYmv.js} +1 -1
- package/dist/component/{contacts-position-rac-DnI3o3Am.js → contacts-position-rac-CxddG_cE.js} +1 -1
- package/dist/component/{contacts-subscribe-rac-P8zn8_GS.js → contacts-subscribe-rac-C1nTAhnd.js} +2 -2
- package/dist/component/{contacts-tax-id-rac-9CBr2KkR.js → contacts-tax-id-rac-B1lzfrj_.js} +1 -1
- package/dist/component/{date-availability--ntpBDiI.js → date-availability-LN33GU7O.js} +1 -1
- package/dist/component/{date-input-field-rac-Don2tz5U.js → date-input-field-rac-zTcw6Mxx.js} +57 -56
- package/dist/component/{date-input-rac-Du3e8Hcu.js → date-input-rac-NfVbrcoO.js} +1 -1
- package/dist/component/date-picker-field-rac-Cc9hJloJ.js +317 -0
- package/dist/component/{date-picker-rac-BsCMkfHV.js → date-picker-rac-C5iXyKdf.js} +1 -1
- package/dist/component/{date-time-input-field-rac-LLF1UdUD.js → date-time-input-field-rac-Cp34u7cC.js} +53 -52
- package/dist/component/{date-time-input-rac-KYqrNgbb.js → date-time-input-rac-CfFd56Xf.js} +1 -1
- package/dist/component/{dext-checkbox-group-rac-DaOY9Cb6.js → dext-checkbox-group-rac-BVx7XXwR.js} +2 -2
- package/dist/component/{dext-checkbox-rac-Ceu5q9xf.js → dext-checkbox-rac-CmUOLx_w.js} +1 -1
- package/dist/component/{dext-date-picker-rac-iop0XEpQ.js → dext-date-picker-rac-XDrLGVTQ.js} +1 -1
- package/dist/component/{dext-date-time-input-rac-DJB_fMiN.js → dext-date-time-input-rac-ZLCq_taK.js} +1 -1
- package/dist/component/{dext-dropdown-rac-Dhp4CUZ5.js → dext-dropdown-rac-C74zBq3M.js} +1 -1
- package/dist/component/{dext-email-rac-BIr9RxhQ.js → dext-email-rac-CqS9HcdY.js} +1 -1
- package/dist/component/{dext-number-input-rac-Q8p3NeKN.js → dext-number-input-rac-DszjJDT-.js} +1 -1
- package/dist/component/{dext-phone-rac-DRdRLIvr.js → dext-phone-rac-wt7T8hpM.js} +1 -1
- package/dist/component/{dext-radio-group-rac-D1N_wBhO.js → dext-radio-group-rac-BvRnaWP0.js} +2 -2
- package/dist/component/{dext-rating-input-rac-BQIMl7oQ.js → dext-rating-input-rac-D1Lt9M3c.js} +1 -1
- package/dist/component/{dext-tags-rac-C52jiu1I.js → dext-tags-rac-70YO5CJH.js} +2 -2
- package/dist/component/{dext-text-area-rac-BWmSs4mb.js → dext-text-area-rac-CC5RCvWh.js} +1 -1
- package/dist/component/{dext-text-input-rac-BnAJ-7Hs.js → dext-text-input-rac-s487DzPW.js} +1 -1
- package/dist/component/{dext-url-input-rac-CvGn3KHo.js → dext-url-input-rac-DEKwUh2a.js} +1 -1
- package/dist/component/{donation-rac-DsFRs16V.js → donation-rac-C2bCFVHP.js} +30 -30
- package/dist/component/{dropdown-field-headless-K0AM4AAs.js → dropdown-field-headless-BMWwkydq.js} +4 -4
- package/dist/component/{dropdown-field-rac-CMEB8ZQN.js → dropdown-field-rac-Cw5Cbpg0.js} +5 -5
- package/dist/component/{dropdown-rac-BakYShkm.js → dropdown-rac-CEmlDY3w.js} +1 -1
- package/dist/component/{ecom-address-rac-A_Aj5CX0.js → ecom-address-rac-Dv6asnf_.js} +1 -1
- package/dist/component/{ecom-subscription-checkbox-rac-Ddol0N03.js → ecom-subscription-checkbox-rac-DOwH-Ebd.js} +3 -3
- package/dist/component/{email-input-field-rac-B7yOMDWB.js → email-input-field-rac-CeFXPibq.js} +41 -41
- package/dist/component/events-repeater-rac-BUk5Qc8n.js +267 -0
- package/dist/component/{events-rsvp-rac-DfjqTM7C.js → events-rsvp-rac-CtFkVzUy.js} +20 -20
- package/dist/component/{field-error-headless-CONyKitA.js → field-error-headless-B6x_cVEi.js} +1 -1
- package/dist/component/{field-label-headless-tf9QXhMi.js → field-label-headless-BibCD8xx.js} +1 -1
- package/dist/component/{file-upload-rac-Bng5Yew9.js → file-upload-rac-BUcktluW.js} +43 -43
- package/dist/component/{fixed-payment-rac-CXIv7_Oj.js → fixed-payment-rac-BMSBSo5c.js} +10 -10
- package/dist/component/{form-Lv-a47BN.js → form-9WmwgGNc.js} +1120 -1108
- package/dist/component/{form-element-classes-CLZXu-91.js → form-element-classes-BtKlobUX.js} +60 -59
- package/dist/component/form.css +1 -1
- package/dist/component/form.js +1 -1
- package/dist/component/{header-field-rac-BZdYszfP.js → header-field-rac-CxUuHOic.js} +3 -3
- package/dist/component/{header-rac-BNeqoDyT.js → header-rac-DejI69X7.js} +1 -1
- package/dist/component/{image-choice-rac-aSKDRo51.js → image-choice-rac-BjI5a_co.js} +15 -15
- package/dist/component/{index-DnNA6zNR.js → index-Csso-2QH.js} +2 -2
- package/dist/component/{index-CWZfskEy.js → index-Dz2hV2_S.js} +4 -4
- package/dist/component/{isObjectLike-C9ogbjhq.js → isObjectLike-BN_BZMhy.js} +1 -1
- package/dist/component/{multiline-address-field-rac-CHE1mE_b.js → multiline-address-field-rac-CYfphmfr.js} +86 -85
- package/dist/component/{multiline-address-rac-wxJunvdU.js → multiline-address-rac-Ccujt2bd.js} +1 -1
- package/dist/component/{number-input-field-rac-ore1oi9q.js → number-input-field-rac-CfnRCRar.js} +18 -18
- package/dist/component/{number-input-rac-DU-rCrjJ.js → number-input-rac-DnTO9d8P.js} +1 -1
- package/dist/component/{password-rac-Dkqv0AIm.js → password-rac-Be_YSb-Q.js} +37 -37
- package/dist/component/{payment-input-rac-CsTcFhQ5.js → payment-input-rac-DXUf5iYb.js} +22 -22
- package/dist/component/{phone-input-field-rac-lIVKt7ge.js → phone-input-field-rac-DYAwLuvJ.js} +32 -31
- package/dist/component/{phone-rac-CZlsXHRM.js → phone-rac-BlsvDmER.js} +1 -1
- package/dist/component/{product-list-rac-UebyHfhC.js → product-list-rac-DdXwRSc2.js} +15 -15
- package/dist/component/{quiz-radio-group-rac-ORLTYxdR.js → quiz-radio-group-rac-B0yiKdbu.js} +2 -2
- package/dist/component/{radio-button-module-classes-CEQr0hKB.js → radio-button-module-classes-t1jsWYpT.js} +3 -3
- package/dist/component/{radio-group-field-rac-t_Dj1_4p.js → radio-group-field-rac-Cug1TtSq.js} +4 -4
- package/dist/component/{radio-group-rac-CC_35nq4.js → radio-group-rac-_O5T0Pt8.js} +1 -1
- package/dist/component/{rating-input-field-rac-BU66cRhy.js → rating-input-field-rac-BSKzQ3fq.js} +31 -31
- package/dist/component/{rating-input-rac-KgNbgchh.js → rating-input-rac-B71q44YO.js} +1 -1
- package/dist/component/{rich-content-rac.module-oGcFL-hl.js → rich-content-rac.module-BJuoKIOt.js} +1 -1
- package/dist/component/{rich-text-field-rac-CiwMiMv7.js → rich-text-field-rac-CiSR82Fw.js} +3 -3
- package/dist/component/{rich-text-rac-Dmp0xxpi.js → rich-text-rac-Bo6UBwOg.js} +1 -1
- package/dist/component/{service-dropdown-rac-_QBi8_AO.js → service-dropdown-rac-BJ7V-g8M.js} +35 -35
- package/dist/component/{services-multi-choice-rac-C2e3xL9O.js → services-multi-choice-rac-CtBcc9WH.js} +12 -12
- package/dist/component/{signature-rac-Dj3aYMvJ.js → signature-rac-yvrHr1he.js} +102 -102
- package/dist/component/{submit-button-rac-C-BVXga7.js → submit-button-rac-s-JdZgq7.js} +2 -2
- package/dist/component/{tags-field-rac-CcOUcsCd.js → tags-field-rac-g_W0RMod.js} +66 -66
- package/dist/component/{tags-rac-p68DA4Mq.js → tags-rac-DmvIH6HU.js} +1 -1
- package/dist/component/{text-area-field-rac-DubIcKTn.js → text-area-field-rac-Duja5xOA.js} +27 -27
- package/dist/component/{text-area-rac-CygfUB6z.js → text-area-rac-DzRxgG6u.js} +1 -1
- package/dist/component/{text-input-field-rac-C7JZRcCX.js → text-input-field-rac-C2eXeoBC.js} +7 -7
- package/dist/component/{text-input-headless-D1xcxxNE.js → text-input-headless-d1WK0nqR.js} +3 -3
- package/dist/component/{text-input-rac-C5lfqJCN.js → text-input-rac-DM9MnoQs.js} +1 -1
- package/dist/component/{time-input-rac-BNxceC-R.js → time-input-rac-CxVZ3USX.js} +25 -25
- package/dist/component/{url-input-field-rac-DH_STwmd.js → url-input-field-rac-4oVJMr1a.js} +19 -19
- package/dist/component/{url-input-rac-C2VOzCis.js → url-input-rac--T-FnskQ.js} +1 -1
- package/dist/component/use-dropdown-option-class-name-BFHRYpVL.js +21 -0
- package/dist/component/{use-element-state-class-name-CITSBXT8.js → use-element-state-class-name-De5YnxMK.js} +1 -1
- package/dist/component/use-is-forced-open-dropdown-CWvcd9Ex.js +41 -0
- package/dist/component/{use-service-options-base-DVBmOiRh.js → use-service-options-base-CD1EVWRE.js} +1 -1
- package/dist/component/{use-text-input-class-name-COw61iUf.js → use-text-input-class-name-BYwXccvO.js} +3 -3
- package/package.json +4 -3
- package/dist/component/date-picker-field-rac-Wxmz-O7r.js +0 -304
- package/dist/component/events-repeater-rac-bp8gFHXQ.js +0 -256
- package/dist/component/use-dropdown-option-class-name-CKRu4ERM.js +0 -57
|
@@ -0,0 +1,267 @@
|
|
|
1
|
+
import t, { useState as $, useMemo as B, useCallback as T, useRef as M } from "react";
|
|
2
|
+
import k from "classnames";
|
|
3
|
+
import { NumberField as q, CheckboxField as J, CheckboxButton as Q, Group as W, Input as Y, Button as w } from "react-aria-components";
|
|
4
|
+
import { aq as U, ar as z, ag as H, al as K, v as Z, ak as L, ah as P, am as X, j as ee } from "./form-9WmwgGNc.js";
|
|
5
|
+
import { f as C, a as y } from "./find-child-C60k4CxG.js";
|
|
6
|
+
import { L as te } from "./field-label-headless-BibCD8xx.js";
|
|
7
|
+
import { S as se } from "./selection-indicator-XQ8MYHUQ.js";
|
|
8
|
+
import { u as ne } from "./use-invoke-callback-UH73A_J3.js";
|
|
9
|
+
import { C as x } from "./chevron-down-icon-CcpVm6B-.js";
|
|
10
|
+
import { C as oe } from "./checkbox-indicator-module-classes-DhbNznSB.js";
|
|
11
|
+
import { s as v } from "./field-rac.module-DobpyqOd.js";
|
|
12
|
+
import { C as re, s as ae, u as le, t as ce } from "./form-element-classes-BtKlobUX.js";
|
|
13
|
+
import { u as ue } from "./use-element-state-class-name-De5YnxMK.js";
|
|
14
|
+
import { u as me } from "./use-text-input-class-name-BYwXccvO.js";
|
|
15
|
+
const ie = [], de = ({ id: e, fields: s, layout: a, value: o, onChange: n, errors: l = ie, validation: c }) => {
|
|
16
|
+
const [m, i] = $((o == null ? void 0 : o.length) || 0), u = B(() => o ?? [], [
|
|
17
|
+
o
|
|
18
|
+
]), d = U(), G = z(), E = H(), { validateFields: p } = K(), F = c.predefined.objectArrayOptions.maxItems, O = B(() => Z({
|
|
19
|
+
form: {
|
|
20
|
+
fields: s,
|
|
21
|
+
steps: [
|
|
22
|
+
{
|
|
23
|
+
layout: a
|
|
24
|
+
}
|
|
25
|
+
]
|
|
26
|
+
},
|
|
27
|
+
parentId: e,
|
|
28
|
+
recursive: !1
|
|
29
|
+
}), [
|
|
30
|
+
s,
|
|
31
|
+
a,
|
|
32
|
+
e
|
|
33
|
+
]), N = B(() => l.reduce((g, I) => {
|
|
34
|
+
const [h, _] = I.errorPath.split("/"), A = parseInt(h, 10);
|
|
35
|
+
return g[A] || (g[A] = []), g[A].push({
|
|
36
|
+
...I,
|
|
37
|
+
errorPath: _
|
|
38
|
+
}), g;
|
|
39
|
+
}, []), [
|
|
40
|
+
l
|
|
41
|
+
]), b = T((g) => {
|
|
42
|
+
const I = Number.isNaN(g) ? 0 : Math.min(Math.max(g, 0), F);
|
|
43
|
+
i(I), n == null || n(Array.from({
|
|
44
|
+
length: I
|
|
45
|
+
}, (h, _) => u[_] ?? {}));
|
|
46
|
+
}, [
|
|
47
|
+
F,
|
|
48
|
+
u,
|
|
49
|
+
n
|
|
50
|
+
]), D = T((g) => (I, h) => {
|
|
51
|
+
const _ = Array.from({
|
|
52
|
+
length: m
|
|
53
|
+
}, (A, j) => u[j] ?? {});
|
|
54
|
+
_[g] = {
|
|
55
|
+
..._[g],
|
|
56
|
+
[I]: h
|
|
57
|
+
}, n == null || n(_);
|
|
58
|
+
}, [
|
|
59
|
+
m,
|
|
60
|
+
u,
|
|
61
|
+
n
|
|
62
|
+
]);
|
|
63
|
+
return {
|
|
64
|
+
guestLimit: F,
|
|
65
|
+
guestCount: m,
|
|
66
|
+
guests: u,
|
|
67
|
+
errorsByIndex: N,
|
|
68
|
+
formView: O,
|
|
69
|
+
formSchema: d,
|
|
70
|
+
formFields: G,
|
|
71
|
+
fieldActions: E,
|
|
72
|
+
validateFields: p,
|
|
73
|
+
changeGuestCount: b,
|
|
74
|
+
changeGuestField: D
|
|
75
|
+
};
|
|
76
|
+
}, pe = [], Ee = {}, r = ({ children: e, className: s }) => {
|
|
77
|
+
const a = L(), { id: o, FieldLayout: n } = a, { guestLimit: l, guestCount: c, guests: m, errorsByIndex: i, formView: u, changeGuestCount: d, changeGuestField: G } = de(a), E = C(e, r.Label), p = C(e, r.GuestCount), F = C(e, r.GuestToggle), O = C(e, r.Guests), N = l > 1;
|
|
78
|
+
return /* @__PURE__ */ t.createElement(n, {
|
|
79
|
+
fieldId: o,
|
|
80
|
+
renderLabel: () => N ? E : null,
|
|
81
|
+
renderInput: () => /* @__PURE__ */ t.createElement("div", {
|
|
82
|
+
className: s
|
|
83
|
+
}, N ? y(p, {
|
|
84
|
+
guestLimit: l,
|
|
85
|
+
guestCount: c,
|
|
86
|
+
onGuestCountChange: d
|
|
87
|
+
}) : y(F, {
|
|
88
|
+
guestCount: c,
|
|
89
|
+
onGuestCountChange: d
|
|
90
|
+
}), y(O, {
|
|
91
|
+
guestCount: c,
|
|
92
|
+
guests: m,
|
|
93
|
+
errorsByIndex: i,
|
|
94
|
+
formView: u,
|
|
95
|
+
onGuestFieldChange: G
|
|
96
|
+
})),
|
|
97
|
+
renderDescription: () => null
|
|
98
|
+
});
|
|
99
|
+
}, Ce = ({ className: e }) => /* @__PURE__ */ t.createElement(te, {
|
|
100
|
+
className: e
|
|
101
|
+
}, null), f = ({ children: e, ...s }) => {
|
|
102
|
+
const { guestLimit: a, guestCount: o, onGuestCountChange: n } = s, { label: l, disabled: c, readOnly: m, onBlur: i, onFocus: u } = L(), d = ne(i), G = C(e, f.Control);
|
|
103
|
+
return /* @__PURE__ */ t.createElement(q, {
|
|
104
|
+
"aria-label": l,
|
|
105
|
+
value: o,
|
|
106
|
+
onChange: n,
|
|
107
|
+
minValue: 0,
|
|
108
|
+
maxValue: a,
|
|
109
|
+
step: 1,
|
|
110
|
+
isDisabled: c,
|
|
111
|
+
isReadOnly: m,
|
|
112
|
+
onBlur: d,
|
|
113
|
+
onFocus: u
|
|
114
|
+
}, G);
|
|
115
|
+
}, ge = ({ children: e, className: s }) => {
|
|
116
|
+
const { disabled: a, readOnly: o } = L(), n = C(e, f.Input), l = C(e, f.Decrement), c = C(e, f.Increment);
|
|
117
|
+
return /* @__PURE__ */ t.createElement(W, {
|
|
118
|
+
className: s,
|
|
119
|
+
isDisabled: a,
|
|
120
|
+
isReadOnly: o
|
|
121
|
+
}, n, c, l);
|
|
122
|
+
}, Ge = ({ className: e }) => {
|
|
123
|
+
const { id: s } = L(), { inputId: a, ariaDescribedBy: o } = P(), n = M(null);
|
|
124
|
+
return X(() => {
|
|
125
|
+
var l;
|
|
126
|
+
(l = n.current) == null || l.focus();
|
|
127
|
+
}, s), /* @__PURE__ */ t.createElement(Y, {
|
|
128
|
+
ref: n,
|
|
129
|
+
id: a,
|
|
130
|
+
"aria-describedby": o,
|
|
131
|
+
className: e,
|
|
132
|
+
inputMode: "numeric"
|
|
133
|
+
});
|
|
134
|
+
}, fe = ({ children: e, className: s }) => /* @__PURE__ */ t.createElement(w, {
|
|
135
|
+
slot: "decrement",
|
|
136
|
+
className: s
|
|
137
|
+
}, e), be = ({ children: e, className: s }) => /* @__PURE__ */ t.createElement(w, {
|
|
138
|
+
slot: "increment",
|
|
139
|
+
className: s
|
|
140
|
+
}, e), S = ({ children: e, className: s, ...a }) => {
|
|
141
|
+
const { guestCount: o, onGuestCountChange: n } = a, { id: l, label: c, disabled: m, readOnly: i, onBlur: u, onFocus: d } = L(), { inputId: G, ariaDescribedBy: E } = P(), p = M(null);
|
|
142
|
+
X(() => {
|
|
143
|
+
var b;
|
|
144
|
+
(b = p.current) == null || b.focus();
|
|
145
|
+
}, l);
|
|
146
|
+
const F = C(e, S.Input), O = C(e, S.Label), N = T((b) => {
|
|
147
|
+
n(b ? 1 : 0);
|
|
148
|
+
}, [
|
|
149
|
+
n
|
|
150
|
+
]);
|
|
151
|
+
return /* @__PURE__ */ t.createElement(J, {
|
|
152
|
+
inputRef: p,
|
|
153
|
+
id: G,
|
|
154
|
+
"aria-describedby": E,
|
|
155
|
+
isSelected: o > 0,
|
|
156
|
+
onChange: N,
|
|
157
|
+
isDisabled: m,
|
|
158
|
+
isReadOnly: i,
|
|
159
|
+
onBlur: u,
|
|
160
|
+
onFocus: d
|
|
161
|
+
}, /* @__PURE__ */ t.createElement(Q, {
|
|
162
|
+
className: s
|
|
163
|
+
}, ({ isSelected: b, isHovered: D }) => /* @__PURE__ */ t.createElement(t.Fragment, null, y(F, {
|
|
164
|
+
isSelected: b,
|
|
165
|
+
isHovered: D
|
|
166
|
+
}), y(O, {
|
|
167
|
+
label: c
|
|
168
|
+
}))));
|
|
169
|
+
}, Fe = ({ className: e, ...s }) => {
|
|
170
|
+
const { label: a } = s;
|
|
171
|
+
return /* @__PURE__ */ t.createElement("span", {
|
|
172
|
+
className: e
|
|
173
|
+
}, a);
|
|
174
|
+
}, V = ({ children: e, className: s, ...a }) => {
|
|
175
|
+
const { guestCount: o, guests: n, errorsByIndex: l, formView: c, onGuestFieldChange: m } = a, { disabled: i, readOnly: u } = L(), d = B(() => ({
|
|
176
|
+
...c,
|
|
177
|
+
fields: c.fields.map((E) => ({
|
|
178
|
+
...E,
|
|
179
|
+
properties: {
|
|
180
|
+
...E.properties,
|
|
181
|
+
disabled: !!(i || E.properties.disabled),
|
|
182
|
+
readOnly: !!(u || E.properties.readOnly)
|
|
183
|
+
}
|
|
184
|
+
}))
|
|
185
|
+
}), [
|
|
186
|
+
c,
|
|
187
|
+
i,
|
|
188
|
+
u
|
|
189
|
+
]), G = C(e, V.Guest);
|
|
190
|
+
return o ? /* @__PURE__ */ t.createElement("div", {
|
|
191
|
+
className: s
|
|
192
|
+
}, Array.from({
|
|
193
|
+
length: o
|
|
194
|
+
}, (E, p) => y(G, {
|
|
195
|
+
key: p,
|
|
196
|
+
index: p,
|
|
197
|
+
formView: d,
|
|
198
|
+
values: n[p] ?? Ee,
|
|
199
|
+
errors: l[p] ?? pe,
|
|
200
|
+
onFieldChange: m(p)
|
|
201
|
+
}))) : null;
|
|
202
|
+
}, Ie = ({ className: e, ...s }) => {
|
|
203
|
+
const { index: a, formView: o, values: n, errors: l, onFieldChange: c } = s, m = U(), i = z(), u = H(), { validateFields: d } = K();
|
|
204
|
+
return /* @__PURE__ */ t.createElement("div", {
|
|
205
|
+
className: e,
|
|
206
|
+
"data-hook": `guest-${a}`
|
|
207
|
+
}, /* @__PURE__ */ t.createElement(ee, {
|
|
208
|
+
form: o,
|
|
209
|
+
formSchema: m,
|
|
210
|
+
values: n,
|
|
211
|
+
errors: l,
|
|
212
|
+
validateFields: d,
|
|
213
|
+
onFieldChange: c,
|
|
214
|
+
fields: i,
|
|
215
|
+
fieldActions: u
|
|
216
|
+
}));
|
|
217
|
+
};
|
|
218
|
+
f.Control = ge;
|
|
219
|
+
f.Input = Ge;
|
|
220
|
+
f.Decrement = fe;
|
|
221
|
+
f.Increment = be;
|
|
222
|
+
S.Input = se;
|
|
223
|
+
S.Label = Fe;
|
|
224
|
+
V.Guest = Ie;
|
|
225
|
+
r.Label = Ce;
|
|
226
|
+
r.GuestCount = f;
|
|
227
|
+
r.GuestToggle = S;
|
|
228
|
+
r.Guests = V;
|
|
229
|
+
const _e = "_container_z48oy_1", Ne = "_countGroup_z48oy_8", ye = "_increment_z48oy_18", Le = "_decrement_z48oy_19", R = {
|
|
230
|
+
container: _e,
|
|
231
|
+
countGroup: Ne,
|
|
232
|
+
increment: ye,
|
|
233
|
+
decrement: Le
|
|
234
|
+
}, Oe = () => {
|
|
235
|
+
const e = me(R.countGroup), s = ue({
|
|
236
|
+
globalClasses: ce,
|
|
237
|
+
moduleClasses: oe
|
|
238
|
+
});
|
|
239
|
+
return /* @__PURE__ */ t.createElement(r, {
|
|
240
|
+
className: R.container
|
|
241
|
+
}, /* @__PURE__ */ t.createElement(r.Label, {
|
|
242
|
+
className: k(re, v.label)
|
|
243
|
+
}), /* @__PURE__ */ t.createElement(r.GuestCount, null, /* @__PURE__ */ t.createElement(r.GuestCount.Control, {
|
|
244
|
+
className: e
|
|
245
|
+
}, /* @__PURE__ */ t.createElement(r.GuestCount.Input, {
|
|
246
|
+
className: v.innerInput
|
|
247
|
+
}), /* @__PURE__ */ t.createElement(r.GuestCount.Increment, {
|
|
248
|
+
className: R.increment
|
|
249
|
+
}, /* @__PURE__ */ t.createElement(x, {
|
|
250
|
+
style: {
|
|
251
|
+
transform: "rotate(180deg)"
|
|
252
|
+
}
|
|
253
|
+
})), /* @__PURE__ */ t.createElement(r.GuestCount.Decrement, {
|
|
254
|
+
className: R.decrement
|
|
255
|
+
}, /* @__PURE__ */ t.createElement(x, null)))), /* @__PURE__ */ t.createElement(r.GuestToggle, {
|
|
256
|
+
className: k(ae, v.checkbox)
|
|
257
|
+
}, /* @__PURE__ */ t.createElement(r.GuestToggle.Input, {
|
|
258
|
+
className: s
|
|
259
|
+
}), /* @__PURE__ */ t.createElement(r.GuestToggle.Label, {
|
|
260
|
+
className: le
|
|
261
|
+
})), /* @__PURE__ */ t.createElement(r.Guests, {
|
|
262
|
+
className: R.container
|
|
263
|
+
}, /* @__PURE__ */ t.createElement(r.Guests.Guest, null)));
|
|
264
|
+
}, ze = () => /* @__PURE__ */ t.createElement(Oe, null);
|
|
265
|
+
export {
|
|
266
|
+
ze as EventsRepeaterRAC
|
|
267
|
+
};
|
|
@@ -1,43 +1,43 @@
|
|
|
1
1
|
import t from "react";
|
|
2
2
|
import { RicosViewer as m } from "@wix/ricos/viewer";
|
|
3
|
-
import
|
|
4
|
-
import { a, s as o, R as c } from "./radio-button-module-classes-
|
|
3
|
+
import r from "classnames";
|
|
4
|
+
import { a as s, s as o, R as c } from "./radio-button-module-classes-t1jsWYpT.js";
|
|
5
5
|
import { E } from "./error-icon-hZxQ6DEy.js";
|
|
6
6
|
import { s as l } from "./field-rac.module-DobpyqOd.js";
|
|
7
|
-
import {
|
|
8
|
-
import { u } from "./use-element-state-class-name-
|
|
9
|
-
const e = ({ children:
|
|
10
|
-
e.Label =
|
|
11
|
-
e.Options =
|
|
12
|
-
e.Option =
|
|
13
|
-
e.Description =
|
|
14
|
-
e.Error =
|
|
15
|
-
const D = ({ content:
|
|
16
|
-
content:
|
|
7
|
+
import { C as i, S as p, T as R, U as _, r as O, j as L, V as S } from "./form-element-classes-BtKlobUX.js";
|
|
8
|
+
import { u } from "./use-element-state-class-name-De5YnxMK.js";
|
|
9
|
+
const e = ({ children: a }) => /* @__PURE__ */ t.createElement(s, null, a);
|
|
10
|
+
e.Label = s.Label;
|
|
11
|
+
e.Options = s.Options;
|
|
12
|
+
e.Option = s.Option;
|
|
13
|
+
e.Description = s.Description;
|
|
14
|
+
e.Error = s.Error;
|
|
15
|
+
const D = ({ content: a, locale: n }) => /* @__PURE__ */ t.createElement(m, {
|
|
16
|
+
content: a,
|
|
17
17
|
locale: n
|
|
18
18
|
}), I = () => {
|
|
19
|
-
const
|
|
19
|
+
const a = u({
|
|
20
20
|
globalClasses: S,
|
|
21
21
|
moduleClasses: c
|
|
22
22
|
});
|
|
23
23
|
return /* @__PURE__ */ t.createElement(e, null, /* @__PURE__ */ t.createElement(e.Label, {
|
|
24
|
-
className:
|
|
24
|
+
className: r(i, l.label)
|
|
25
25
|
}, /* @__PURE__ */ t.createElement(e.Label.Required, {
|
|
26
|
-
className:
|
|
26
|
+
className: r(p, l.requiredMark)
|
|
27
27
|
})), /* @__PURE__ */ t.createElement(e.Options, {
|
|
28
|
-
className:
|
|
28
|
+
className: r(R, o.options)
|
|
29
29
|
}, /* @__PURE__ */ t.createElement(e.Option, {
|
|
30
30
|
className: o.option
|
|
31
31
|
}, /* @__PURE__ */ t.createElement(e.Option.Input, {
|
|
32
32
|
className: o.optionInput
|
|
33
33
|
}), /* @__PURE__ */ t.createElement(e.Option.Control, {
|
|
34
|
-
className:
|
|
34
|
+
className: a
|
|
35
35
|
}), /* @__PURE__ */ t.createElement(e.Option.Label, {
|
|
36
|
-
className:
|
|
36
|
+
className: r(_, o.optionLabel)
|
|
37
37
|
}))), /* @__PURE__ */ t.createElement(e.Error, {
|
|
38
|
-
className:
|
|
38
|
+
className: r(O, l.error)
|
|
39
39
|
}, /* @__PURE__ */ t.createElement(E, null), /* @__PURE__ */ t.createElement(e.Error.Text, null)), /* @__PURE__ */ t.createElement(e.Description, {
|
|
40
|
-
className:
|
|
40
|
+
className: r(L, l.description)
|
|
41
41
|
}, D));
|
|
42
42
|
}, b = () => /* @__PURE__ */ t.createElement(I, null);
|
|
43
43
|
export {
|
package/dist/component/{field-error-headless-CONyKitA.js → field-error-headless-B6x_cVEi.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import t, { createContext as m, useContext as M } from "react";
|
|
2
|
-
import { ak as c, ah as i, ac as f, U as h, W as x } from "./form-
|
|
2
|
+
import { ak as c, ah as i, ac as f, U as h, W as x } from "./form-9WmwgGNc.js";
|
|
3
3
|
const N = ({ className: r, children: e }) => {
|
|
4
4
|
const { description: s, target: o } = c(), { descriptionId: a } = i(), { language: n } = f();
|
|
5
5
|
return s ? /* @__PURE__ */ t.createElement("div", {
|
package/dist/component/{field-label-headless-tf9QXhMi.js → field-label-headless-BibCD8xx.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ak as m, R as d, r as p, ah as D, au as B } from "./form-
|
|
1
|
+
import { ak as m, R as d, r as p, ah as D, au as B } from "./form-9WmwgGNc.js";
|
|
2
2
|
import l from "react";
|
|
3
3
|
import { f as L } from "./find-child-C60k4CxG.js";
|
|
4
4
|
import { sdk as R } from "@wix/image-kit";
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import t, { useState as Q, useRef as V, useMemo as oe, useEffect as se, useCallback as P, createContext as pe, useContext as fe } from "react";
|
|
2
2
|
import { RicosViewer as Ee } from "@wix/ricos/viewer";
|
|
3
|
-
import
|
|
4
|
-
import { ag as Fe, au as ie, ap as ge, i as he, as as xe, e as re, at as be, ah as ce, ak as
|
|
3
|
+
import B from "classnames";
|
|
4
|
+
import { ag as Fe, au as ie, ap as ge, i as he, as as xe, e as re, at as be, ah as ce, ak as j, am as Ce } from "./form-9WmwgGNc.js";
|
|
5
5
|
import { E as Le } from "./error-icon-hZxQ6DEy.js";
|
|
6
6
|
import { s as I } from "./field-rac.module-DobpyqOd.js";
|
|
7
|
-
import {
|
|
7
|
+
import { C as ne, S as De, a3 as Ne, j as ae, r as le } from "./form-element-classes-BtKlobUX.js";
|
|
8
8
|
import { f as h, a as z } from "./find-child-C60k4CxG.js";
|
|
9
|
-
import { b as ve, a as ye, D as _e, E as
|
|
10
|
-
import { L as
|
|
11
|
-
import { DropZone as
|
|
9
|
+
import { b as ve, a as ye, D as _e, E as Te } from "./field-error-headless-B6x_cVEi.js";
|
|
10
|
+
import { L as Be } from "./field-label-headless-BibCD8xx.js";
|
|
11
|
+
import { DropZone as Re, Text as Se, FileTrigger as Me, Button as de, ProgressBar as Ie } from "react-aria-components";
|
|
12
12
|
const we = {
|
|
13
13
|
Video: "video/*",
|
|
14
14
|
Image: "image/*",
|
|
@@ -111,7 +111,7 @@ function Ze({ valueSliderLimit: e, value: r, explanationText: n, target: o, onCh
|
|
|
111
111
|
...p
|
|
112
112
|
]), await M(p);
|
|
113
113
|
}
|
|
114
|
-
},
|
|
114
|
+
}, q = (F) => {
|
|
115
115
|
const u = a[F];
|
|
116
116
|
if (b && i && u.state !== "error") {
|
|
117
117
|
const g = b.filter((f) => f.displayName !== u.file.name);
|
|
@@ -133,7 +133,7 @@ function Ze({ valueSliderLimit: e, value: r, explanationText: n, target: o, onCh
|
|
|
133
133
|
hover: k,
|
|
134
134
|
getExplanationText: U,
|
|
135
135
|
handleChange: O,
|
|
136
|
-
handleDelete:
|
|
136
|
+
handleDelete: q,
|
|
137
137
|
accept: K,
|
|
138
138
|
handleBlur: $
|
|
139
139
|
};
|
|
@@ -162,8 +162,8 @@ function Z() {
|
|
|
162
162
|
return e;
|
|
163
163
|
}
|
|
164
164
|
const A = ({ children: e, className: r }) => {
|
|
165
|
-
const { ariaDescribedBy: n } = ce(), { disabled: o, hasError: i } =
|
|
166
|
-
return /* @__PURE__ */ t.createElement(
|
|
165
|
+
const { ariaDescribedBy: n } = ce(), { disabled: o, hasError: i } = j(), { handleFileChange: d } = Z(), x = h(e, A.Title), D = h(e, A.Subtitle), a = h(e, A.Button);
|
|
166
|
+
return /* @__PURE__ */ t.createElement(Re, {
|
|
167
167
|
"aria-describedby": n,
|
|
168
168
|
className: r,
|
|
169
169
|
"data-invalid": i,
|
|
@@ -198,7 +198,7 @@ const A = ({ children: e, className: r }) => {
|
|
|
198
198
|
limitReached: n
|
|
199
199
|
}));
|
|
200
200
|
}, J = ({ className: e, children: r, "aria-roledescription": n }) => {
|
|
201
|
-
const { ariaDescribedBy: o, inputId: i, labelId: d, errorId: x } = ce(), { disabled: D, required: a, onFocus: s, hasError: b, errorMessage: m } =
|
|
201
|
+
const { ariaDescribedBy: o, inputId: i, labelId: d, errorId: x } = ce(), { disabled: D, required: a, onFocus: s, hasError: b, errorMessage: m } = j(), { handleFileChange: c, accept: N, multiple: v, buttonRef: E, handleBlur: R, limitError: k, files: y } = Z(), S = (y == null ? void 0 : y.some((C) => C.errorMessage)) ?? !1, _ = !!(b || m || k || S);
|
|
202
202
|
return /* @__PURE__ */ t.createElement(Me, {
|
|
203
203
|
acceptedFileTypes: N ? N.split(",") : void 0,
|
|
204
204
|
allowsMultiple: v,
|
|
@@ -225,10 +225,10 @@ const A = ({ children: e, className: r }) => {
|
|
|
225
225
|
isDisabled: D,
|
|
226
226
|
className: e,
|
|
227
227
|
onFocus: s,
|
|
228
|
-
onBlur:
|
|
228
|
+
onBlur: R
|
|
229
229
|
}, r));
|
|
230
230
|
}, Pe = ({ className: e }) => {
|
|
231
|
-
const { buttonText: r } =
|
|
231
|
+
const { buttonText: r } = j();
|
|
232
232
|
return /* @__PURE__ */ t.createElement("span", {
|
|
233
233
|
className: e
|
|
234
234
|
}, r);
|
|
@@ -237,8 +237,8 @@ J.Text = Pe;
|
|
|
237
237
|
A.Title = Ue;
|
|
238
238
|
A.Subtitle = Oe;
|
|
239
239
|
A.Button = J;
|
|
240
|
-
const
|
|
241
|
-
const { file: o, index: i } = n, d = o.file.name, x = h(e,
|
|
240
|
+
const T = ({ children: e, className: r, ...n }) => {
|
|
241
|
+
const { file: o, index: i } = n, d = o.file.name, x = h(e, T.Name), D = h(e, T.Remove), a = h(e, T.Spinner), s = h(e, T.Error);
|
|
242
242
|
return /* @__PURE__ */ t.createElement("div", {
|
|
243
243
|
className: r
|
|
244
244
|
}, z(x, {
|
|
@@ -255,7 +255,7 @@ const B = ({ children: e, className: r, ...n }) => {
|
|
|
255
255
|
className: e
|
|
256
256
|
}, n);
|
|
257
257
|
}, Ve = ({ className: e, "aria-label": r, children: n, ...o }) => {
|
|
258
|
-
const { fileName: i, index: d } = o, { disabled: x } =
|
|
258
|
+
const { fileName: i, index: d } = o, { disabled: x } = j(), { handleDelete: D, fileRemoveButtonRefs: a } = Z(), s = V(null);
|
|
259
259
|
se(() => {
|
|
260
260
|
const m = a.current, c = i;
|
|
261
261
|
return m[c] = s, () => {
|
|
@@ -285,15 +285,15 @@ const B = ({ children: e, className: r, ...n }) => {
|
|
|
285
285
|
className: e,
|
|
286
286
|
role: "alert"
|
|
287
287
|
}, r)) : null;
|
|
288
|
-
},
|
|
288
|
+
}, je = ({ className: e, "aria-label": r, children: n }) => /* @__PURE__ */ t.createElement(Ie, {
|
|
289
289
|
"aria-label": r,
|
|
290
290
|
className: e,
|
|
291
291
|
isIndeterminate: !0
|
|
292
292
|
}, n);
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
293
|
+
T.Name = ze;
|
|
294
|
+
T.Remove = Ve;
|
|
295
|
+
T.Spinner = je;
|
|
296
|
+
T.Error = ue;
|
|
297
297
|
ue.Text = ve;
|
|
298
298
|
const X = ({ children: e, className: r }) => {
|
|
299
299
|
const { files: n } = Z(), o = h(e, X.File);
|
|
@@ -305,12 +305,12 @@ const X = ({ children: e, className: r }) => {
|
|
|
305
305
|
index: d
|
|
306
306
|
})));
|
|
307
307
|
};
|
|
308
|
-
X.File =
|
|
308
|
+
X.File = T;
|
|
309
309
|
const G = (e) => e.file.name, l = ({ children: e }) => {
|
|
310
|
-
const { id: r, value: n, onChange: o, uploadFileFormats: i, valueSliderLimit: d, target: x, explanationText: D, onBlur: a, hasError: s, errorMessage: b, FieldLayout: m } =
|
|
310
|
+
const { id: r, value: n, onChange: o, uploadFileFormats: i, valueSliderLimit: d, target: x, explanationText: D, onBlur: a, hasError: s, errorMessage: b, FieldLayout: m } = j(), c = V(null), N = V({}), v = P(() => {
|
|
311
311
|
var L;
|
|
312
312
|
(L = c.current) == null || L.focus();
|
|
313
|
-
}, []), { files: E, limitError:
|
|
313
|
+
}, []), { files: E, limitError: R, hover: k, getExplanationText: y, handleBlur: S, handleChange: _, handleDelete: C, accept: U } = Ze({
|
|
314
314
|
valueSliderLimit: d,
|
|
315
315
|
value: n,
|
|
316
316
|
explanationText: D,
|
|
@@ -326,17 +326,17 @@ const G = (e) => e.file.name, l = ({ children: e }) => {
|
|
|
326
326
|
}, [
|
|
327
327
|
C,
|
|
328
328
|
E
|
|
329
|
-
]), O = d > 1,
|
|
329
|
+
]), O = d > 1, q = E.length >= d, $ = oe(() => ({
|
|
330
330
|
handleFileChange: _,
|
|
331
331
|
handleBlur: S,
|
|
332
332
|
handleDelete: M,
|
|
333
333
|
files: E,
|
|
334
334
|
accept: U,
|
|
335
|
-
limitReached:
|
|
335
|
+
limitReached: q,
|
|
336
336
|
multiple: O,
|
|
337
337
|
getExplanationText: y,
|
|
338
338
|
hover: k,
|
|
339
|
-
limitError:
|
|
339
|
+
limitError: R,
|
|
340
340
|
buttonRef: c,
|
|
341
341
|
fileRemoveButtonRefs: N
|
|
342
342
|
}), [
|
|
@@ -345,11 +345,11 @@ const G = (e) => e.file.name, l = ({ children: e }) => {
|
|
|
345
345
|
M,
|
|
346
346
|
E,
|
|
347
347
|
U,
|
|
348
|
-
|
|
348
|
+
q,
|
|
349
349
|
O,
|
|
350
350
|
y,
|
|
351
351
|
k,
|
|
352
|
-
|
|
352
|
+
R
|
|
353
353
|
]), K = h(e, l.Label), W = h(e, l.DropZone), F = h(e, l.Button), u = h(e, l.Explanation), g = h(e, l.Files), p = h(e, l.Description), f = h(e, l.Error);
|
|
354
354
|
return Ce(() => {
|
|
355
355
|
var L;
|
|
@@ -361,23 +361,23 @@ const G = (e) => e.file.name, l = ({ children: e }) => {
|
|
|
361
361
|
renderLabel: () => K,
|
|
362
362
|
renderInput: () => W ?? F,
|
|
363
363
|
renderDescription: () => /* @__PURE__ */ t.createElement(t.Fragment, null, z(f, {
|
|
364
|
-
hasError: !!(s ||
|
|
365
|
-
errorMessage:
|
|
364
|
+
hasError: !!(s || R),
|
|
365
|
+
errorMessage: R ?? b
|
|
366
366
|
}), p, u, g)
|
|
367
367
|
}));
|
|
368
|
-
},
|
|
368
|
+
}, qe = ({ className: e }) => {
|
|
369
369
|
const { getExplanationText: r } = Z(), n = r();
|
|
370
370
|
return n ? /* @__PURE__ */ t.createElement("p", {
|
|
371
371
|
className: e
|
|
372
372
|
}, n) : null;
|
|
373
373
|
};
|
|
374
|
-
l.Label =
|
|
374
|
+
l.Label = Be;
|
|
375
375
|
l.DropZone = A;
|
|
376
376
|
l.Button = J;
|
|
377
|
-
l.Explanation =
|
|
377
|
+
l.Explanation = qe;
|
|
378
378
|
l.Files = X;
|
|
379
379
|
l.Description = _e;
|
|
380
|
-
l.Error =
|
|
380
|
+
l.Error = Te;
|
|
381
381
|
const $e = (e) => /* @__PURE__ */ t.createElement("svg", {
|
|
382
382
|
viewBox: "0 0 24 24",
|
|
383
383
|
width: 24,
|
|
@@ -451,16 +451,16 @@ const $e = (e) => /* @__PURE__ */ t.createElement("svg", {
|
|
|
451
451
|
}), nt = () => {
|
|
452
452
|
const { t: e } = ie();
|
|
453
453
|
return /* @__PURE__ */ t.createElement(l, null, /* @__PURE__ */ t.createElement(l.Label, {
|
|
454
|
-
className:
|
|
454
|
+
className: B(ne, I.label)
|
|
455
455
|
}, /* @__PURE__ */ t.createElement(l.Label.Required, {
|
|
456
|
-
className:
|
|
456
|
+
className: B(De, I.requiredMark)
|
|
457
457
|
})), /* @__PURE__ */ t.createElement(l.Button, {
|
|
458
|
-
className:
|
|
458
|
+
className: B(Ne, I.uploadButton),
|
|
459
459
|
"aria-roledescription": e("file-upload.aria-roledescription")
|
|
460
460
|
}, /* @__PURE__ */ t.createElement($e, null), /* @__PURE__ */ t.createElement(l.Button.Text, null)), /* @__PURE__ */ t.createElement(l.Explanation, {
|
|
461
|
-
className:
|
|
461
|
+
className: B(ae, I.description, w.explanation)
|
|
462
462
|
}), /* @__PURE__ */ t.createElement(l.Files, {
|
|
463
|
-
className:
|
|
463
|
+
className: B(ne, w.files)
|
|
464
464
|
}, /* @__PURE__ */ t.createElement(l.Files.File, {
|
|
465
465
|
className: w.file
|
|
466
466
|
}, /* @__PURE__ */ t.createElement(l.Files.File.Name, {
|
|
@@ -472,11 +472,11 @@ const $e = (e) => /* @__PURE__ */ t.createElement("svg", {
|
|
|
472
472
|
className: w.removeButton,
|
|
473
473
|
"aria-label": e("file-upload.delete-file.aria-label")
|
|
474
474
|
}, /* @__PURE__ */ t.createElement(We, null)), /* @__PURE__ */ t.createElement(l.Files.File.Error, {
|
|
475
|
-
className:
|
|
475
|
+
className: B(le, I.error, w.fileError)
|
|
476
476
|
}, /* @__PURE__ */ t.createElement(Ke, null), /* @__PURE__ */ t.createElement(l.Files.File.Error.Text, null)))), /* @__PURE__ */ t.createElement(l.Description, {
|
|
477
|
-
className:
|
|
477
|
+
className: B(ae, I.description)
|
|
478
478
|
}, rt), /* @__PURE__ */ t.createElement(l.Error, {
|
|
479
|
-
className:
|
|
479
|
+
className: B(le, I.error)
|
|
480
480
|
}, /* @__PURE__ */ t.createElement(Le, null), /* @__PURE__ */ t.createElement(l.Error.Text, null)));
|
|
481
481
|
}, Ft = () => /* @__PURE__ */ t.createElement(nt, null);
|
|
482
482
|
export {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import t, { useMemo as b } from "react";
|
|
2
2
|
import { RicosViewer as A } from "@wix/ricos/viewer";
|
|
3
3
|
import u from "classnames";
|
|
4
|
-
import { ak as C, ac as I, ah as P } from "./form-
|
|
4
|
+
import { ak as C, ac as I, ah as P } from "./form-9WmwgGNc.js";
|
|
5
5
|
import { f as c, a as O } from "./find-child-C60k4CxG.js";
|
|
6
6
|
import { f as S } from "./format-currency-BwShJ9vM.js";
|
|
7
|
-
import { D as x, E as N } from "./field-error-headless-
|
|
8
|
-
import { L as R } from "./field-label-headless-
|
|
7
|
+
import { D as x, E as N } from "./field-error-headless-B6x_cVEi.js";
|
|
8
|
+
import { L as R } from "./field-label-headless-BibCD8xx.js";
|
|
9
9
|
import { s as L } from "./field-rac.module-DobpyqOd.js";
|
|
10
|
-
import {
|
|
10
|
+
import { C as v, D as M, j as g } from "./form-element-classes-BtKlobUX.js";
|
|
11
11
|
const e = ({ children: r }) => {
|
|
12
12
|
var p;
|
|
13
13
|
const { id: n, validation: a, FieldLayout: l } = C(), { currency: o, regionalFormat: m } = I(), s = b(() => {
|
|
@@ -26,7 +26,7 @@ const e = ({ children: r }) => {
|
|
|
26
26
|
}),
|
|
27
27
|
renderDescription: () => /* @__PURE__ */ t.createElement(t.Fragment, null, _, D)
|
|
28
28
|
});
|
|
29
|
-
},
|
|
29
|
+
}, B = ({ className: r, ...n }) => {
|
|
30
30
|
const { price: a, currencyCode: l, locale: o } = n, { inputId: m, ariaDescribedBy: s } = P(), i = S({
|
|
31
31
|
amount: a,
|
|
32
32
|
currency: l,
|
|
@@ -42,7 +42,7 @@ const e = ({ children: r }) => {
|
|
|
42
42
|
className: r
|
|
43
43
|
}, null);
|
|
44
44
|
e.Label = T;
|
|
45
|
-
e.Amount =
|
|
45
|
+
e.Amount = B;
|
|
46
46
|
e.Description = x;
|
|
47
47
|
e.Error = N;
|
|
48
48
|
const V = "_value_c7203_1", k = {
|
|
@@ -50,13 +50,13 @@ const V = "_value_c7203_1", k = {
|
|
|
50
50
|
}, h = ({ content: r, locale: n }) => /* @__PURE__ */ t.createElement(A, {
|
|
51
51
|
content: r,
|
|
52
52
|
locale: n
|
|
53
|
-
}),
|
|
53
|
+
}), j = () => /* @__PURE__ */ t.createElement(e, null, /* @__PURE__ */ t.createElement(e.Label, {
|
|
54
54
|
className: u(v, L.label)
|
|
55
55
|
}), /* @__PURE__ */ t.createElement(e.Amount, {
|
|
56
|
-
className: u(
|
|
56
|
+
className: u(M, k.value)
|
|
57
57
|
}), /* @__PURE__ */ t.createElement(e.Description, {
|
|
58
|
-
className: u(
|
|
59
|
-
}, h)), X = () => /* @__PURE__ */ t.createElement(
|
|
58
|
+
className: u(g, L.description)
|
|
59
|
+
}, h)), X = () => /* @__PURE__ */ t.createElement(j, null);
|
|
60
60
|
export {
|
|
61
61
|
X as FixedPaymentRAC
|
|
62
62
|
};
|