@wix/form-elements 1.135.0 → 1.137.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-DETLNlLb.js +1010 -0
- package/dist/component/{bookings-address-rac-BK-sU26E.js → bookings-address-rac-ZLK-g-4b.js} +1 -1
- package/dist/component/{bookings-email-rac-DZ3HVkyn.js → bookings-email-rac-C-406Pj1.js} +1 -1
- package/dist/component/{bookings-first-name-rac-Ci4PHqOr.js → bookings-first-name-rac-ClxJPAU2.js} +1 -1
- package/dist/component/{bookings-header-rac-C_MYNrDA.js → bookings-header-rac-B_xKyowA.js} +1 -1
- package/dist/component/{bookings-last-name-rac-CdNlwyjm.js → bookings-last-name-rac-DcExtGsO.js} +1 -1
- package/dist/component/{bookings-login-bar-rac-CP2JcaVr.js → bookings-login-bar-rac-B5Gpk-kG.js} +6 -6
- package/dist/component/{bookings-phone-rac-BV8sqxil.js → bookings-phone-rac-DJSSDoRL.js} +1 -1
- package/dist/component/{bookings-rich-text-rac-DQtcYRsh.js → bookings-rich-text-rac-D-v6z1Fs.js} +1 -1
- package/dist/component/{checkbox-field-rac-DPNqHTNc.js → checkbox-field-rac-DJmjpsmU.js} +121 -121
- package/dist/component/{checkbox-group-field-headless-DhhynlgN.js → checkbox-group-field-headless-C4A_Kv1U.js} +19 -19
- package/dist/component/{checkbox-group-field-rac-B3zOW7qr.js → checkbox-group-field-rac-M1l5h3ii.js} +4 -4
- package/dist/component/{checkbox-group-rac-Qy03hO31.js → checkbox-group-rac-DRdzHVfR.js} +1 -1
- package/dist/component/{checkbox-rac-DYr3RaHj.js → checkbox-rac-Cyhg2Wvd.js} +1 -1
- package/dist/component/{contacts-address-rac-Bi-etpfX.js → contacts-address-rac-BQvrTPCI.js} +1 -1
- package/dist/component/{contacts-birthdate-rac-D2LLjX9P.js → contacts-birthdate-rac-DIMg-UlR.js} +1 -1
- package/dist/component/{contacts-company-rac-C9ImoG_i.js → contacts-company-rac-OgWSVsmZ.js} +1 -1
- package/dist/component/{contacts-email-rac-DeGblC9V.js → contacts-email-rac-39IQYxTe.js} +1 -1
- package/dist/component/{contacts-first-name-rac-Xk3m57jK.js → contacts-first-name-rac-CjwVQGS7.js} +1 -1
- package/dist/component/{contacts-last-name-rac-BKE-1IYB.js → contacts-last-name-rac-C6ftvjMG.js} +1 -1
- package/dist/component/{contacts-phone-rac-CHmtTutD.js → contacts-phone-rac-ldsxrFQH.js} +1 -1
- package/dist/component/{contacts-position-rac-BS3TySLG.js → contacts-position-rac-3RzQeh2P.js} +1 -1
- package/dist/component/{contacts-subscribe-rac--fpczJiB.js → contacts-subscribe-rac-CfuH705u.js} +1 -1
- package/dist/component/{contacts-tax-id-rac-CHkn8vkL.js → contacts-tax-id-rac-D85Dm5Pa.js} +1 -1
- package/dist/component/{date-availability-70Vb-dlb.js → date-availability-DcYOAszO.js} +1 -1
- package/dist/component/{date-input-field-rac-BlkYEYM_.js → date-input-field-rac-D4cr7NGI.js} +52 -52
- package/dist/component/{date-input-rac-JdNFk07Q.js → date-input-rac-BwJwmoZr.js} +1 -1
- package/dist/component/{date-picker-field-rac-DHu11mY1.js → date-picker-field-rac-C-IM7SHk.js} +5 -5
- package/dist/component/{date-picker-rac-CZtWhFzM.js → date-picker-rac-BkAp8Bgb.js} +1 -1
- package/dist/component/{date-time-input-field-rac-cHAALqS5.js → date-time-input-field-rac-DGCd-WUh.js} +58 -58
- package/dist/component/{date-time-input-rac-Dz7GfoJO.js → date-time-input-rac-ClLzxACj.js} +1 -1
- package/dist/component/{dext-checkbox-group-rac-ZNKzyWda.js → dext-checkbox-group-rac-DI26D3eR.js} +4 -4
- package/dist/component/{dext-checkbox-rac-DfPFXrKu.js → dext-checkbox-rac-CRJq1RxN.js} +1 -1
- package/dist/component/{dext-date-picker-rac-BPbl65qK.js → dext-date-picker-rac-CvzQs_Te.js} +1 -1
- package/dist/component/{dext-date-time-input-rac-D5ywbLtW.js → dext-date-time-input-rac-Dtysjtim.js} +1 -1
- package/dist/component/{dext-dropdown-rac-BuVsPZOU.js → dext-dropdown-rac-DHGo26Az.js} +1 -1
- package/dist/component/{dext-email-rac-DRjt3lqT.js → dext-email-rac-BpnNEdVF.js} +1 -1
- package/dist/component/{dext-number-input-rac-Bzrl87fo.js → dext-number-input-rac-C5iW_ei6.js} +1 -1
- package/dist/component/{dext-phone-rac-LibvQb8h.js → dext-phone-rac-KCTWlcaK.js} +1 -1
- package/dist/component/{dext-radio-group-rac-BTWnIvwW.js → dext-radio-group-rac-ad6j8I4s.js} +4 -4
- package/dist/component/{dext-rating-input-rac-DTlnOcC8.js → dext-rating-input-rac-B4AvCMi0.js} +1 -1
- package/dist/component/{dext-tags-rac-YdeijviH.js → dext-tags-rac-BMathc_H.js} +4 -4
- package/dist/component/{dext-text-area-rac-CdCzQYey.js → dext-text-area-rac-Xb-pGhSZ.js} +1 -1
- package/dist/component/{dext-text-input-rac-B28RTezm.js → dext-text-input-rac-CSE8qfGF.js} +1 -1
- package/dist/component/{dext-url-input-rac-B0ZBPbAb.js → dext-url-input-rac-Bq4iz5z9.js} +1 -1
- package/dist/component/donation-rac-DRUbysCr.js +306 -0
- package/dist/component/{dropdown-field-headless-DVZnbZAM.js → dropdown-field-headless-DO592qOP.js} +8 -8
- package/dist/component/{dropdown-field-rac-DWCj_Grt.js → dropdown-field-rac-C2yjQI-C.js} +7 -7
- package/dist/component/{dropdown-rac-Bpo-F5sc.js → dropdown-rac-DlrGt2kE.js} +1 -1
- package/dist/component/{ecom-address-rac-vJ0ku_Ld.js → ecom-address-rac-D_StW_li.js} +1 -1
- package/dist/component/{ecom-subscription-checkbox-rac-DgVReM6c.js → ecom-subscription-checkbox-rac-CrdttyUU.js} +2 -2
- package/dist/component/{email-input-field-rac-BXJGOBg-.js → email-input-field-rac-DqXazwV3.js} +46 -46
- package/dist/component/{events-repeater-rac-CrXE_ppd.js → events-repeater-rac-DDpRs7rY.js} +23 -23
- package/dist/component/{events-rsvp-rac-BGg3P1CQ.js → events-rsvp-rac-BN9axMYX.js} +10 -10
- package/dist/component/{field-error-headless-C3eOy1_l.js → field-error-headless-JU1yiTVE.js} +6 -6
- package/dist/component/{field-label-headless-BMmR_IeF.js → field-label-headless-CD4_8Ros.js} +7 -7
- package/dist/component/{file-upload-rac-Umix6wXx.js → file-upload-rac-CQTx6hEf.js} +50 -50
- package/dist/component/{fixed-payment-rac-CfIJCBjb.js → fixed-payment-rac-B5cRBcxY.js} +12 -12
- package/dist/component/{form-CYPNOMwk.js → form-Mla9_phC.js} +831 -823
- package/dist/component/form.css +1 -1
- package/dist/component/form.js +1 -1
- package/dist/component/{header-field-rac-oxHUTKYV.js → header-field-rac-B_F66ChH.js} +4 -4
- package/dist/component/{header-rac-DTGV923r.js → header-rac-BX6Df8ej.js} +1 -1
- package/dist/component/{image-choice-rac-B9JGl_h7.js → image-choice-rac-Ce01EhFJ.js} +32 -32
- package/dist/component/{index-C_ktc-yO.js → index-Ch7II1GU.js} +5 -5
- package/dist/component/{index-BOKSOnDK.js → index-DoIW9Cb6.js} +107 -107
- package/dist/component/{isObjectLike-Di8V7txC.js → isObjectLike-C1TnJWn6.js} +7 -7
- package/dist/component/{multiline-address-field-rac-zgmTbXlg.js → multiline-address-field-rac-DVDEcHtq.js} +115 -115
- package/dist/component/{multiline-address-rac-Cyb3dvBf.js → multiline-address-rac-BJ8ln_G5.js} +1 -1
- package/dist/component/{number-input-field-rac-DquqqRy_.js → number-input-field-rac-DTfx9YgL.js} +24 -24
- package/dist/component/{number-input-rac-G2DdTbk2.js → number-input-rac-pg7cmYpS.js} +1 -1
- package/dist/component/{password-rac-DJCU0F38.js → password-rac-D8BKTB_H.js} +50 -50
- package/dist/component/{payment-input-rac-DlIYza6N.js → payment-input-rac-HBquclKy.js} +38 -38
- package/dist/component/{phone-input-field-rac-B10TInMa.js → phone-input-field-rac-Fgfg5HwA.js} +56 -56
- package/dist/component/{phone-rac-BuyttJpM.js → phone-rac-pivMTIyc.js} +1 -1
- package/dist/component/{product-list-rac-WrSJwQ_g.js → product-list-rac-DauIxK2R.js} +61 -61
- package/dist/component/{quiz-radio-group-rac-CHxZ_pK_.js → quiz-radio-group-rac-B0OtjxKf.js} +1 -1
- package/dist/component/{radio-button-module-classes-DjJU-8ZB.js → radio-button-module-classes-Cu3KM625.js} +3 -3
- package/dist/component/{radio-group-field-rac-BImiqcKa.js → radio-group-field-rac-0dJHtf3G.js} +10 -10
- package/dist/component/{radio-group-rac-CDkJeGpN.js → radio-group-rac-CqtO1JqM.js} +1 -1
- package/dist/component/{rating-input-field-rac-Dsr_S5qN.js → rating-input-field-rac-CMny6OSF.js} +28 -28
- package/dist/component/{rating-input-rac-BJUW8U93.js → rating-input-rac-DA4iU_-m.js} +1 -1
- package/dist/component/{rich-content-rac.module-BfQJqA-x.js → rich-content-rac.module-CZX0cZst.js} +3 -3
- package/dist/component/{rich-text-field-rac-DIuZbu_u.js → rich-text-field-rac-Dtm6xFcj.js} +7 -7
- package/dist/component/{rich-text-rac-C39fpEiP.js → rich-text-rac-ClqIW5ds.js} +1 -1
- package/dist/component/service-dropdown-rac-_4T1OZGq.js +146 -0
- package/dist/component/{services-multi-choice-rac-GVb4qA7g.js → services-multi-choice-rac-BVim-jnM.js} +7 -7
- package/dist/component/{signature-rac-nC5pr6nB.js → signature-rac-D7w8WTLO.js} +73 -73
- package/dist/component/{submit-button-rac-eUjgrx9Q.js → submit-button-rac-BkUDj1dU.js} +12 -12
- package/dist/component/{tags-field-rac-zv30chSd.js → tags-field-rac-Di1aK4E2.js} +27 -27
- package/dist/component/{tags-rac-PnS2SxVP.js → tags-rac-CJ5f4Doi.js} +1 -1
- package/dist/component/{text-area-field-rac-DLeOMD4g.js → text-area-field-rac-DFjrT9fs.js} +16 -16
- package/dist/component/{text-area-rac-jZ_mh45C.js → text-area-rac-DBANidv_.js} +1 -1
- package/dist/component/{text-input-field-rac-DifV7Erd.js → text-input-field-rac-DJDzqR6d.js} +5 -5
- package/dist/component/{text-input-headless-DhVEjorY.js → text-input-headless-CG4wbxMG.js} +6 -6
- package/dist/component/{text-input-rac-Ce4qKN9M.js → text-input-rac-V0tK1Gj2.js} +1 -1
- package/dist/component/{time-input-rac-1kW3aDIo.js → time-input-rac-LSoyg8Ao.js} +46 -46
- package/dist/component/{url-input-field-rac-D9xXAQCq.js → url-input-field-rac-DI0SdDI0.js} +23 -23
- package/dist/component/{url-input-rac-SaAybDdN.js → url-input-rac-obx2Uf2F.js} +1 -1
- package/dist/component/{use-dropdown-option-class-name-C_MO_0JS.js → use-dropdown-option-class-name-BM-NiVtO.js} +2 -2
- package/dist/component/{use-dropdown-trigger-class-name-D7EMiD-M.js → use-dropdown-trigger-class-name-BHwQ-wZa.js} +4 -4
- package/dist/component/{use-element-state-class-name-DZFi3Z42.js → use-element-state-class-name-DAYz5X_i.js} +1 -1
- package/dist/component/{use-hoverable-input-class-name-JAZ1mif0.js → use-hoverable-input-class-name-DZ-4NGpv.js} +2 -2
- package/dist/component/{use-service-options-base-ZX4iaxzr.js → use-service-options-base-BOjt2sg9.js} +4 -4
- package/dist/component/use-text-input-class-name-Bqj4OoIw.js +6 -0
- package/package.json +2 -2
- package/dist/component/appointment-rac-CYCddSl9.js +0 -1010
- package/dist/component/donation-rac-_0cwsIAq.js +0 -314
- package/dist/component/service-dropdown-rac-Bc9hEpx3.js +0 -146
- package/dist/component/use-text-input-class-name-XFjQX8q1.js +0 -6
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import t, { useState as $, useMemo as
|
|
2
|
-
import
|
|
1
|
+
import t, { useState as $, useMemo as h, useCallback as V, useRef as x } from "react";
|
|
2
|
+
import M from "classnames";
|
|
3
3
|
import { NumberField as z, CheckboxField as J, CheckboxButton as Q, Group as W, Input as Y, Button as w } from "react-aria-components";
|
|
4
|
-
import {
|
|
4
|
+
import { bp as q, bq as H, bf as K, bk as P, aH as Z, bj as y, bg as X, bl as j, an as ee, M as te, n as se, s as ne, r as oe } from "./form-Mla9_phC.js";
|
|
5
5
|
import { f as b, a as L } from "./find-child-C60k4CxG.js";
|
|
6
|
-
import { L as re } from "./field-label-headless-
|
|
6
|
+
import { L as re } from "./field-label-headless-CD4_8Ros.js";
|
|
7
7
|
import { S as ae } from "./selection-indicator-XQ8MYHUQ.js";
|
|
8
8
|
import { u as le } from "./use-invoke-callback-UH73A_J3.js";
|
|
9
|
-
import { C as
|
|
9
|
+
import { C as k } from "./chevron-down-icon-CcpVm6B-.js";
|
|
10
10
|
import { C as ce } from "./checkbox-indicator-module-classes-6173wvuW.js";
|
|
11
11
|
import { s as v } from "./field-rac.module-DfEb7pBp.js";
|
|
12
|
-
import { u as ue } from "./use-element-state-class-name-
|
|
13
|
-
import { u as me } from "./use-text-input-class-name-
|
|
12
|
+
import { u as ue } from "./use-element-state-class-name-DAYz5X_i.js";
|
|
13
|
+
import { u as me } from "./use-text-input-class-name-Bqj4OoIw.js";
|
|
14
14
|
const ie = [], de = ({ id: e, fields: s, layout: a, value: o, onChange: n, errors: l = ie, validation: c }) => {
|
|
15
|
-
const [m, i] = $((o == null ? void 0 : o.length) || 0), u =
|
|
15
|
+
const [m, i] = $((o == null ? void 0 : o.length) || 0), u = h(() => o ?? [], [
|
|
16
16
|
o
|
|
17
|
-
]), d = q(), g = H(), C = K(), { validateFields: p } = P(), F = c.predefined.objectArrayOptions.maxItems, O =
|
|
17
|
+
]), d = q(), g = H(), C = K(), { validateFields: p } = P(), F = c.predefined.objectArrayOptions.maxItems, O = h(() => Z({
|
|
18
18
|
form: {
|
|
19
19
|
fields: s,
|
|
20
20
|
steps: [
|
|
@@ -29,9 +29,9 @@ const ie = [], de = ({ id: e, fields: s, layout: a, value: o, onChange: n, error
|
|
|
29
29
|
s,
|
|
30
30
|
a,
|
|
31
31
|
e
|
|
32
|
-
]), _ =
|
|
33
|
-
const [
|
|
34
|
-
return E[
|
|
32
|
+
]), _ = h(() => l.reduce((E, I) => {
|
|
33
|
+
const [A, N] = I.errorPath.split("/"), B = parseInt(A, 10);
|
|
34
|
+
return E[B] || (E[B] = []), E[B].push({
|
|
35
35
|
...I,
|
|
36
36
|
errorPath: N
|
|
37
37
|
}), E;
|
|
@@ -41,18 +41,18 @@ const ie = [], de = ({ id: e, fields: s, layout: a, value: o, onChange: n, error
|
|
|
41
41
|
const I = Number.isNaN(E) ? 0 : Math.min(Math.max(E, 0), F);
|
|
42
42
|
i(I), n == null || n(Array.from({
|
|
43
43
|
length: I
|
|
44
|
-
}, (
|
|
44
|
+
}, (A, N) => u[N] ?? {}));
|
|
45
45
|
}, [
|
|
46
46
|
F,
|
|
47
47
|
u,
|
|
48
48
|
n
|
|
49
|
-
]), D = V((E) => (I,
|
|
49
|
+
]), D = V((E) => (I, A) => {
|
|
50
50
|
const N = Array.from({
|
|
51
51
|
length: m
|
|
52
|
-
}, (
|
|
52
|
+
}, (B, U) => u[U] ?? {});
|
|
53
53
|
N[E] = {
|
|
54
54
|
...N[E],
|
|
55
|
-
[I]:
|
|
55
|
+
[I]: A
|
|
56
56
|
}, n == null || n(N);
|
|
57
57
|
}, [
|
|
58
58
|
m,
|
|
@@ -119,7 +119,7 @@ const ie = [], de = ({ id: e, fields: s, layout: a, value: o, onChange: n, error
|
|
|
119
119
|
isReadOnly: o
|
|
120
120
|
}, n, c, l);
|
|
121
121
|
}, ge = ({ className: e }) => {
|
|
122
|
-
const { id: s } = y(), { inputId: a, ariaDescribedBy: o } = X(), n =
|
|
122
|
+
const { id: s } = y(), { inputId: a, ariaDescribedBy: o } = X(), n = x(null);
|
|
123
123
|
return j(() => {
|
|
124
124
|
var l;
|
|
125
125
|
(l = n.current) == null || l.focus();
|
|
@@ -137,7 +137,7 @@ const ie = [], de = ({ id: e, fields: s, layout: a, value: o, onChange: n, error
|
|
|
137
137
|
slot: "increment",
|
|
138
138
|
className: s
|
|
139
139
|
}, e), S = ({ children: e, className: s, ...a }) => {
|
|
140
|
-
const { guestCount: o, onGuestCountChange: n } = a, { id: l, label: c, disabled: m, readOnly: i, onBlur: u, onFocus: d } = y(), { inputId: g, ariaDescribedBy: C } = X(), p =
|
|
140
|
+
const { guestCount: o, onGuestCountChange: n } = a, { id: l, label: c, disabled: m, readOnly: i, onBlur: u, onFocus: d } = y(), { inputId: g, ariaDescribedBy: C } = X(), p = x(null);
|
|
141
141
|
j(() => {
|
|
142
142
|
var G;
|
|
143
143
|
(G = p.current) == null || G.focus();
|
|
@@ -172,7 +172,7 @@ const ie = [], de = ({ id: e, fields: s, layout: a, value: o, onChange: n, error
|
|
|
172
172
|
className: e
|
|
173
173
|
}, a);
|
|
174
174
|
}, T = ({ children: e, className: s, ...a }) => {
|
|
175
|
-
const { guestCount: o, guests: n, errorsByIndex: l, formView: c, onGuestFieldChange: m } = a, { disabled: i, readOnly: u } = y(), d =
|
|
175
|
+
const { guestCount: o, guests: n, errorsByIndex: l, formView: c, onGuestFieldChange: m } = a, { disabled: i, readOnly: u } = y(), d = h(() => ({
|
|
176
176
|
...c,
|
|
177
177
|
fields: c.fields.map((C) => ({
|
|
178
178
|
...C,
|
|
@@ -239,21 +239,21 @@ const Ne = "_container_p2psq_1", _e = "_countGroup_p2psq_8", Le = "_increment_p2
|
|
|
239
239
|
return /* @__PURE__ */ t.createElement(r, {
|
|
240
240
|
className: R.container
|
|
241
241
|
}, /* @__PURE__ */ t.createElement(r.Label, {
|
|
242
|
-
className:
|
|
242
|
+
className: M(te, v.label)
|
|
243
243
|
}), /* @__PURE__ */ t.createElement(r.GuestCount, null, /* @__PURE__ */ t.createElement(r.GuestCount.Control, {
|
|
244
244
|
className: e
|
|
245
245
|
}, /* @__PURE__ */ t.createElement(r.GuestCount.Input, {
|
|
246
246
|
className: v.innerInput
|
|
247
247
|
}), /* @__PURE__ */ t.createElement(r.GuestCount.Increment, {
|
|
248
248
|
className: R.increment
|
|
249
|
-
}, /* @__PURE__ */ t.createElement(
|
|
249
|
+
}, /* @__PURE__ */ t.createElement(k, {
|
|
250
250
|
style: {
|
|
251
251
|
transform: "rotate(180deg)"
|
|
252
252
|
}
|
|
253
253
|
})), /* @__PURE__ */ t.createElement(r.GuestCount.Decrement, {
|
|
254
254
|
className: R.decrement
|
|
255
|
-
}, /* @__PURE__ */ t.createElement(
|
|
256
|
-
className:
|
|
255
|
+
}, /* @__PURE__ */ t.createElement(k, null)))), /* @__PURE__ */ t.createElement(r.GuestToggle, {
|
|
256
|
+
className: M(se, v.checkbox)
|
|
257
257
|
}, /* @__PURE__ */ t.createElement(r.GuestToggle.Input, {
|
|
258
258
|
className: s
|
|
259
259
|
}), /* @__PURE__ */ t.createElement(r.GuestToggle.Label, {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import t from "react";
|
|
2
2
|
import { RicosViewer as m } from "@wix/ricos/viewer";
|
|
3
3
|
import s from "classnames";
|
|
4
|
-
import { a, s as n, R as c } from "./radio-button-module-classes-
|
|
4
|
+
import { a, s as n, R as c } from "./radio-button-module-classes-Cu3KM625.js";
|
|
5
5
|
import { E as i } from "./error-icon-hZxQ6DEy.js";
|
|
6
6
|
import { s as o } from "./field-rac.module-DfEb7pBp.js";
|
|
7
|
-
import {
|
|
8
|
-
import { o as
|
|
9
|
-
import { u as S } from "./use-element-state-class-name-
|
|
7
|
+
import { M as E, Y as p, T as R, U as O, G as _, u as L, V as D } from "./form-Mla9_phC.js";
|
|
8
|
+
import { o as I } from "./options-rac.module-_THNq6Qq.js";
|
|
9
|
+
import { u as S } from "./use-element-state-class-name-DAYz5X_i.js";
|
|
10
10
|
const e = ({ children: r, className: l }) => /* @__PURE__ */ t.createElement(a, {
|
|
11
11
|
className: l
|
|
12
12
|
}, r);
|
|
@@ -15,12 +15,12 @@ e.Options = a.Options;
|
|
|
15
15
|
e.Option = a.Option;
|
|
16
16
|
e.Description = a.Description;
|
|
17
17
|
e.Error = a.Error;
|
|
18
|
-
const
|
|
18
|
+
const u = ({ content: r, locale: l }) => /* @__PURE__ */ t.createElement(m, {
|
|
19
19
|
content: r,
|
|
20
20
|
locale: l
|
|
21
|
-
}),
|
|
21
|
+
}), N = () => {
|
|
22
22
|
const r = S({
|
|
23
|
-
globalClasses:
|
|
23
|
+
globalClasses: D,
|
|
24
24
|
moduleClasses: c
|
|
25
25
|
});
|
|
26
26
|
return /* @__PURE__ */ t.createElement(e, null, /* @__PURE__ */ t.createElement(e.Label, {
|
|
@@ -28,7 +28,7 @@ const N = ({ content: r, locale: l }) => /* @__PURE__ */ t.createElement(m, {
|
|
|
28
28
|
}, /* @__PURE__ */ t.createElement(e.Label.Required, {
|
|
29
29
|
className: s(p, o.requiredMark)
|
|
30
30
|
})), /* @__PURE__ */ t.createElement(e.Options, {
|
|
31
|
-
className: s(R,
|
|
31
|
+
className: s(R, I.options)
|
|
32
32
|
}, /* @__PURE__ */ t.createElement(e.Option, {
|
|
33
33
|
className: n.option
|
|
34
34
|
}, /* @__PURE__ */ t.createElement(e.Option.Input, {
|
|
@@ -41,8 +41,8 @@ const N = ({ content: r, locale: l }) => /* @__PURE__ */ t.createElement(m, {
|
|
|
41
41
|
className: s(_, o.error)
|
|
42
42
|
}, /* @__PURE__ */ t.createElement(i, null), /* @__PURE__ */ t.createElement(e.Error.Text, null)), /* @__PURE__ */ t.createElement(e.Description, {
|
|
43
43
|
className: s(L, o.description)
|
|
44
|
-
},
|
|
45
|
-
}, v = () => /* @__PURE__ */ t.createElement(
|
|
44
|
+
}, u));
|
|
45
|
+
}, v = () => /* @__PURE__ */ t.createElement(N, null);
|
|
46
46
|
export {
|
|
47
47
|
v as EventsRsvpRAC
|
|
48
48
|
};
|
package/dist/component/{field-error-headless-C3eOy1_l.js → field-error-headless-JU1yiTVE.js}
RENAMED
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import t, { createContext as m, useContext as M } from "react";
|
|
2
|
-
import {
|
|
2
|
+
import { bj as c, bg as i, bb as b, aU as f, aV as x } from "./form-Mla9_phC.js";
|
|
3
3
|
const H = ({ className: r, children: e }) => {
|
|
4
|
-
const { description: s, target: o } = c(), { descriptionId: a } = i(), { language: n } =
|
|
4
|
+
const { description: s, target: o } = c(), { descriptionId: a } = i(), { language: n } = b();
|
|
5
5
|
return s ? /* @__PURE__ */ t.createElement("div", {
|
|
6
6
|
className: r,
|
|
7
7
|
id: a,
|
|
8
|
-
"data-hook":
|
|
8
|
+
"data-hook": f(o)
|
|
9
9
|
}, e({
|
|
10
10
|
content: s,
|
|
11
11
|
locale: n
|
|
12
12
|
})) : null;
|
|
13
|
-
}, l = /* @__PURE__ */ m(void 0),
|
|
13
|
+
}, l = /* @__PURE__ */ m(void 0), h = l.Provider, v = ({ className: r }) => {
|
|
14
14
|
const e = M(l);
|
|
15
15
|
return /* @__PURE__ */ t.createElement("span", {
|
|
16
16
|
className: r
|
|
17
17
|
}, e ?? "");
|
|
18
18
|
}, D = ({ className: r, children: e, ...s }) => {
|
|
19
19
|
const { hasError: o, errorMessage: a } = s, { target: n, hasError: E, errorMessage: d } = c(), { errorId: g } = i(), u = o ?? E, p = a ?? d;
|
|
20
|
-
return u ? /* @__PURE__ */ t.createElement(
|
|
20
|
+
return u ? /* @__PURE__ */ t.createElement(h, {
|
|
21
21
|
value: p
|
|
22
22
|
}, /* @__PURE__ */ t.createElement("div", {
|
|
23
23
|
id: g,
|
|
@@ -29,6 +29,6 @@ D.Text = v;
|
|
|
29
29
|
export {
|
|
30
30
|
H as D,
|
|
31
31
|
D as E,
|
|
32
|
-
|
|
32
|
+
h as a,
|
|
33
33
|
v as b
|
|
34
34
|
};
|
package/dist/component/{field-label-headless-BMmR_IeF.js → field-label-headless-CD4_8Ros.js}
RENAMED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { bj as m, aA as d, aB as p, bg as B, bt as D } from "./form-Mla9_phC.js";
|
|
2
2
|
import l from "react";
|
|
3
|
-
import { f as
|
|
4
|
-
import { sdk as
|
|
3
|
+
import { f as g } from "./find-child-C60k4CxG.js";
|
|
4
|
+
import { sdk as L } from "@wix/image-kit";
|
|
5
5
|
function N({ id: e, width: t, height: n }, a, r, o = "fill") {
|
|
6
|
-
return (o === "fit" ?
|
|
6
|
+
return (o === "fit" ? L.getScaleToFitImageURL : L.getScaleToFillImageURL)(e, t, n, typeof a == "number" ? a : parseInt(a, 10), typeof r == "number" ? r : parseInt(r, 10));
|
|
7
7
|
}
|
|
8
8
|
var u = /* @__PURE__ */ (function(e) {
|
|
9
9
|
return e.TOP = "top", e.BOTTOM = "bottom", e;
|
|
@@ -15,15 +15,15 @@ const S = {
|
|
|
15
15
|
margin: 0,
|
|
16
16
|
padding: 0
|
|
17
17
|
}, U = "", i = ({ children: e, className: t, ...n }) => {
|
|
18
|
-
const { as: a = "label", requiredIndicatorHidden: r = !1, label: o } = n, { label: T, required: R = !1, hideLabel: F = !1, requiredIndicatorType: q = d.ASTERISK, requiredIndicatorPlacement: O = p.AFTER_FIELD_TITLE, media:
|
|
19
|
-
id:
|
|
18
|
+
const { as: a = "label", requiredIndicatorHidden: r = !1, label: o } = n, { label: T, required: R = !1, hideLabel: F = !1, requiredIndicatorType: q = d.ASTERISK, requiredIndicatorPlacement: O = p.AFTER_FIELD_TITLE, media: A, mediaSettings: s } = m(), { labelId: y, inputId: P } = B(), _ = a, b = R && !r ? g(e, i.Required) : null, c = A ? g(e, i.Image) : null, E = (s == null ? void 0 : s.imagePosition) ?? u.TOP, h = q === d.ASTERISK && O === p.BEFORE_FIELD_TITLE, f = (o ?? T) || U, I = /* @__PURE__ */ l.createElement(_, {
|
|
19
|
+
id: y,
|
|
20
20
|
htmlFor: a === "label" ? P : void 0,
|
|
21
21
|
className: t,
|
|
22
22
|
style: F ? S : void 0
|
|
23
23
|
}, h ? /* @__PURE__ */ l.createElement(l.Fragment, null, b, f) : /* @__PURE__ */ l.createElement(l.Fragment, null, f, b));
|
|
24
24
|
return c ? /* @__PURE__ */ l.createElement("div", null, E === u.TOP ? c : null, I, E === u.BOTTOM ? c : null) : I;
|
|
25
25
|
}, v = ({ className: e }) => {
|
|
26
|
-
const { t } =
|
|
26
|
+
const { t } = D(), { requiredIndicatorType: n } = m();
|
|
27
27
|
return n === d.TEXT ? /* @__PURE__ */ l.createElement("span", {
|
|
28
28
|
className: e,
|
|
29
29
|
"aria-hidden": "true"
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import t, { useState as
|
|
1
|
+
import t, { useState as $, useRef as q, useMemo as fe, useEffect as ne, useCallback as I, createContext as he, useContext as _e } from "react";
|
|
2
2
|
import Le from "@wix/editor-react-components/AnimatedIcon";
|
|
3
3
|
import { RicosViewer as Ce } from "@wix/ricos/viewer";
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
4
|
+
import M from "classnames";
|
|
5
|
+
import { bf as xe, bt as oe, bo as Ne, am as ve, br as De, af as ie, bs as Te, bg as Ee, bj as z, bl as Se, bd as Be, bc as ye, M as Ze, Y as Re, b as Me, aa as Ae, ab as ce, u as ue, z as de, G as me, a9 as Ie, f as te } from "./form-Mla9_phC.js";
|
|
6
6
|
import { E as Oe } from "./error-icon-hZxQ6DEy.js";
|
|
7
|
-
import { s as
|
|
8
|
-
import { u as pe } from "./use-element-state-class-name-
|
|
9
|
-
import { DropZone as we, Text as Ue, FileTrigger as Pe, Button as be, ProgressBar as
|
|
7
|
+
import { s as Y } from "./field-rac.module-DfEb7pBp.js";
|
|
8
|
+
import { u as pe } from "./use-element-state-class-name-DAYz5X_i.js";
|
|
9
|
+
import { DropZone as we, Text as Ue, FileTrigger as Pe, Button as be, ProgressBar as He, VisuallyHidden as qe } from "react-aria-components";
|
|
10
10
|
import { f as L, a as W } from "./find-child-C60k4CxG.js";
|
|
11
|
-
import { b as ke, a as ze, D as Ve, E as je } from "./field-error-headless-
|
|
12
|
-
import { L as Ke } from "./field-label-headless-
|
|
13
|
-
const
|
|
11
|
+
import { b as ke, a as ze, D as Ve, E as je } from "./field-error-headless-JU1yiTVE.js";
|
|
12
|
+
import { L as Ke } from "./field-label-headless-CD4_8Ros.js";
|
|
13
|
+
const Ye = {
|
|
14
14
|
Video: "video/*",
|
|
15
15
|
Image: "image/*",
|
|
16
16
|
Audio: "audio/*",
|
|
17
17
|
Document: ".ai, .cdr, .csv, .doc, .docb, .docx, .dot, .dotx, .dwg, .eps, .epub, .fla, .gpx, .ical, .icalendar, .ics, .ifb, .indd, .ipynb, .key, .kml, .kmz, .mobi, .mtf, .mtx, .numbers, .odg, .odp, .ods, .odt, .otp, .ots, .ott, .oxps, .pages, .pdf, .pdn, .pkg, .pot, .potx, .pps, .ppsx, .ppt, .pptx, .psd, .pub, .rtf, .sldx, .txt, .json, .vcf, .xcf, .xls, .xlsx, .xlt, .xltx, .xlw, .xps,.xml,application/msword,application/vnd.openxmlformats-officedocument.wordprocessingml.document,application/pdf,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet,application/vnd.ms-excel",
|
|
18
18
|
Archive: ".zip, .rar, .tar, .tar.gz, .gz, .gzip, .jar, .7z, .fgz, .webarchive",
|
|
19
19
|
Model3D: ".gltf, .glb"
|
|
20
|
-
},
|
|
20
|
+
}, $e = (e) => {
|
|
21
21
|
const { actions: n, formId: o } = xe();
|
|
22
22
|
return async (a, s, d) => {
|
|
23
23
|
if (!(n != null && n.uploadFile) || !a.length)
|
|
@@ -44,7 +44,7 @@ const $e = {
|
|
|
44
44
|
};
|
|
45
45
|
};
|
|
46
46
|
function We({ valueSliderLimit: e, value: n, explanationText: o, target: a, onChange: s, uploadFileFormats: d, onBlur: E, onFilesCleared: C }) {
|
|
47
|
-
const [r, i] =
|
|
47
|
+
const [r, i] = $(Ge(n)), [x, m] = $(n || []), [p, c] = $(), T = $e(a), { t: N } = oe(), F = Ne().includes(ve.BUTTONS_HOVER), { setFormStatus: B } = De(), Z = q(!1), y = q(s);
|
|
48
48
|
y.current = s;
|
|
49
49
|
const v = fe(() => r.some((f) => f.state === "uploading"), [
|
|
50
50
|
r
|
|
@@ -56,7 +56,7 @@ function We({ valueSliderLimit: e, value: n, explanationText: o, target: a, onCh
|
|
|
56
56
|
B,
|
|
57
57
|
a
|
|
58
58
|
]);
|
|
59
|
-
const u =
|
|
59
|
+
const u = I(() => {
|
|
60
60
|
if (!r.length)
|
|
61
61
|
return;
|
|
62
62
|
const h = r.filter((f) => f.state === "uploading").length;
|
|
@@ -72,11 +72,11 @@ function We({ valueSliderLimit: e, value: n, explanationText: o, target: a, onCh
|
|
|
72
72
|
}, [
|
|
73
73
|
r,
|
|
74
74
|
N
|
|
75
|
-
]), R =
|
|
75
|
+
]), R = I(() => r.length ? r.some((f) => f.state === "uploading") ? u() : o || u() : o, [
|
|
76
76
|
r,
|
|
77
77
|
o,
|
|
78
78
|
u
|
|
79
|
-
]), S =
|
|
79
|
+
]), S = I(async (h) => {
|
|
80
80
|
await T(h, ({ file: f, uploadedFile: _ }) => {
|
|
81
81
|
i((b) => b.map((g) => g.file === f ? {
|
|
82
82
|
file: f,
|
|
@@ -128,7 +128,7 @@ function We({ valueSliderLimit: e, value: n, explanationText: o, target: a, onCh
|
|
|
128
128
|
}
|
|
129
129
|
}, K = () => {
|
|
130
130
|
p && c(void 0), E();
|
|
131
|
-
},
|
|
131
|
+
}, G = d.map((h) => Ye[h]).join(), X = I(() => {
|
|
132
132
|
i([]), m([]);
|
|
133
133
|
}, []);
|
|
134
134
|
return Te(X), {
|
|
@@ -139,11 +139,11 @@ function We({ valueSliderLimit: e, value: n, explanationText: o, target: a, onCh
|
|
|
139
139
|
getStatusText: u,
|
|
140
140
|
handleChange: j,
|
|
141
141
|
handleDelete: w,
|
|
142
|
-
accept:
|
|
142
|
+
accept: G,
|
|
143
143
|
handleBlur: K
|
|
144
144
|
};
|
|
145
145
|
}
|
|
146
|
-
function
|
|
146
|
+
function Ge(e = []) {
|
|
147
147
|
const n = e || [];
|
|
148
148
|
try {
|
|
149
149
|
return n.map((o) => ({
|
|
@@ -191,7 +191,7 @@ const k = ({ children: e, className: n }) => {
|
|
|
191
191
|
}, /* @__PURE__ */ t.createElement(Ue, {
|
|
192
192
|
slot: "label"
|
|
193
193
|
}, C, r), i);
|
|
194
|
-
},
|
|
194
|
+
}, Qe = ({ className: e, children: n }) => {
|
|
195
195
|
const { limitReached: o } = V();
|
|
196
196
|
return /* @__PURE__ */ t.createElement("p", {
|
|
197
197
|
className: e
|
|
@@ -245,11 +245,11 @@ const k = ({ children: e, className: n }) => {
|
|
|
245
245
|
}, n);
|
|
246
246
|
};
|
|
247
247
|
re.Text = Xe;
|
|
248
|
-
k.Title =
|
|
248
|
+
k.Title = Qe;
|
|
249
249
|
k.Subtitle = Je;
|
|
250
250
|
k.Button = re;
|
|
251
|
-
const
|
|
252
|
-
const { file: a, index: s } = o, d = a.file.name, E = L(e,
|
|
251
|
+
const A = ({ children: e, className: n, ...o }) => {
|
|
252
|
+
const { file: a, index: s } = o, d = a.file.name, E = L(e, A.Name), C = L(e, A.Remove), r = L(e, A.Spinner), i = L(e, A.Error);
|
|
253
253
|
return /* @__PURE__ */ t.createElement("div", {
|
|
254
254
|
className: n
|
|
255
255
|
}, W(E, {
|
|
@@ -266,7 +266,7 @@ const I = ({ children: e, className: n, ...o }) => {
|
|
|
266
266
|
className: e
|
|
267
267
|
}, o);
|
|
268
268
|
}, tt = ({ className: e, "aria-label": n, children: o, ...a }) => {
|
|
269
|
-
const { fileName: s, index: d } = a, { disabled: E } = z(), { handleDelete: C, fileRemoveButtonRefs: r } = V(), i =
|
|
269
|
+
const { fileName: s, index: d } = a, { disabled: E } = z(), { handleDelete: C, fileRemoveButtonRefs: r } = V(), i = q(null);
|
|
270
270
|
ne(() => {
|
|
271
271
|
const m = r.current, p = s;
|
|
272
272
|
return m[p] = i, () => {
|
|
@@ -296,15 +296,15 @@ const I = ({ children: e, className: n, ...o }) => {
|
|
|
296
296
|
className: e,
|
|
297
297
|
role: "alert"
|
|
298
298
|
}, n)) : null;
|
|
299
|
-
}, nt = ({ className: e, "aria-label": n, children: o }) => /* @__PURE__ */ t.createElement(
|
|
299
|
+
}, nt = ({ className: e, "aria-label": n, children: o }) => /* @__PURE__ */ t.createElement(He, {
|
|
300
300
|
"aria-label": n,
|
|
301
301
|
className: e,
|
|
302
302
|
isIndeterminate: !0
|
|
303
303
|
}, o);
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
304
|
+
A.Name = et;
|
|
305
|
+
A.Remove = tt;
|
|
306
|
+
A.Spinner = nt;
|
|
307
|
+
A.Error = Fe;
|
|
308
308
|
Fe.Text = ke;
|
|
309
309
|
const ae = ({ children: e, className: n }) => {
|
|
310
310
|
const { files: o } = V(), a = L(e, ae.File);
|
|
@@ -316,9 +316,9 @@ const ae = ({ children: e, className: n }) => {
|
|
|
316
316
|
index: d
|
|
317
317
|
})));
|
|
318
318
|
};
|
|
319
|
-
ae.File =
|
|
319
|
+
ae.File = A;
|
|
320
320
|
const J = (e) => e.file.name, l = ({ children: e }) => {
|
|
321
|
-
const { t: n } = oe(), { id: o, value: a, onChange: s, uploadFileFormats: d, valueSliderLimit: E, target: C, explanationText: r, onBlur: i, hasError: x, errorMessage: m, FieldLayout: p } = z(), c =
|
|
321
|
+
const { t: n } = oe(), { id: o, value: a, onChange: s, uploadFileFormats: d, valueSliderLimit: E, target: C, explanationText: r, onBlur: i, hasError: x, errorMessage: m, FieldLayout: p } = z(), c = q(null), T = q({}), N = q(!1), O = I(() => {
|
|
322
322
|
c.current ? c.current.focus() : N.current = !0;
|
|
323
323
|
}, []), { files: F, limitError: B, hover: Z, getExplanationText: y, getStatusText: v, handleBlur: u, handleChange: R, handleDelete: S, accept: j } = We({
|
|
324
324
|
valueSliderLimit: E,
|
|
@@ -329,10 +329,10 @@ const J = (e) => e.file.name, l = ({ children: e }) => {
|
|
|
329
329
|
uploadFileFormats: d,
|
|
330
330
|
onBlur: i,
|
|
331
331
|
onFilesCleared: O
|
|
332
|
-
}), w =
|
|
332
|
+
}), w = I((P) => {
|
|
333
333
|
var se;
|
|
334
|
-
const
|
|
335
|
-
F.length > 1 && ((se = (F.filter((ee) => J(ee) !==
|
|
334
|
+
const Q = F[P], H = J(Q);
|
|
335
|
+
F.length > 1 && ((se = (F.filter((ee) => J(ee) !== H).map((ee) => T.current[J(ee)]).find(Boolean) ?? c).current) == null || se.focus()), S(P);
|
|
336
336
|
}, [
|
|
337
337
|
S,
|
|
338
338
|
F
|
|
@@ -342,13 +342,13 @@ const J = (e) => e.file.name, l = ({ children: e }) => {
|
|
|
342
342
|
}, [
|
|
343
343
|
F
|
|
344
344
|
]);
|
|
345
|
-
const K = E > 1,
|
|
345
|
+
const K = E > 1, G = F.length >= E, X = fe(() => ({
|
|
346
346
|
handleFileChange: R,
|
|
347
347
|
handleBlur: u,
|
|
348
348
|
handleDelete: w,
|
|
349
349
|
files: F,
|
|
350
350
|
accept: j,
|
|
351
|
-
limitReached:
|
|
351
|
+
limitReached: G,
|
|
352
352
|
multiple: K,
|
|
353
353
|
getExplanationText: y,
|
|
354
354
|
getStatusText: v,
|
|
@@ -362,7 +362,7 @@ const J = (e) => e.file.name, l = ({ children: e }) => {
|
|
|
362
362
|
w,
|
|
363
363
|
F,
|
|
364
364
|
j,
|
|
365
|
-
|
|
365
|
+
G,
|
|
366
366
|
K,
|
|
367
367
|
y,
|
|
368
368
|
v,
|
|
@@ -370,12 +370,12 @@ const J = (e) => e.file.name, l = ({ children: e }) => {
|
|
|
370
370
|
B
|
|
371
371
|
]), h = L(e, l.Label), f = L(e, l.DropZone), _ = L(e, l.Button), b = L(e, l.Explanation), g = L(e, l.Files), U = L(e, l.Description), le = L(e, l.Error);
|
|
372
372
|
return Se(() => {
|
|
373
|
-
var P,
|
|
373
|
+
var P, Q;
|
|
374
374
|
if (c.current) {
|
|
375
375
|
c.current.focus();
|
|
376
376
|
return;
|
|
377
377
|
}
|
|
378
|
-
(
|
|
378
|
+
(Q = (P = F.map((H) => T.current[J(H)]).find((H) => H == null ? void 0 : H.current)) == null ? void 0 : P.current) == null || Q.focus();
|
|
379
379
|
}, o), /* @__PURE__ */ t.createElement(ge.Provider, {
|
|
380
380
|
value: X
|
|
381
381
|
}, /* @__PURE__ */ t.createElement(p, {
|
|
@@ -385,7 +385,7 @@ const J = (e) => e.file.name, l = ({ children: e }) => {
|
|
|
385
385
|
renderDescription: () => /* @__PURE__ */ t.createElement(t.Fragment, null, W(le, {
|
|
386
386
|
hasError: !!(x || B),
|
|
387
387
|
errorMessage: B ?? m
|
|
388
|
-
}), /* @__PURE__ */ t.createElement(
|
|
388
|
+
}), /* @__PURE__ */ t.createElement(qe, {
|
|
389
389
|
role: "status",
|
|
390
390
|
"aria-live": "polite",
|
|
391
391
|
"aria-atomic": "true"
|
|
@@ -492,22 +492,22 @@ const rt = (e) => /* @__PURE__ */ t.createElement("svg", {
|
|
|
492
492
|
hover: D.dropZoneHover
|
|
493
493
|
}
|
|
494
494
|
}), d = pe({
|
|
495
|
-
globalClasses:
|
|
495
|
+
globalClasses: Ie,
|
|
496
496
|
moduleClasses: {
|
|
497
497
|
base: D.button,
|
|
498
498
|
hover: D.buttonHover
|
|
499
499
|
}
|
|
500
|
-
}), E = (v = (y = (Z = (B = Be().dropZone) == null ? void 0 : B.elementProps) == null ? void 0 : Z.uploadButton) == null ? void 0 : y.elementProps) == null ? void 0 : v.icon, { wix: C, className: r, ...i } = E ?? {}, x = ye(te.DROP_ZONE, te.UPLOAD_BUTTON, te.UPLOAD_BUTTON_LABEL), m =
|
|
500
|
+
}), E = (v = (y = (Z = (B = Be().dropZone) == null ? void 0 : B.elementProps) == null ? void 0 : Z.uploadButton) == null ? void 0 : y.elementProps) == null ? void 0 : v.icon, { wix: C, className: r, ...i } = E ?? {}, x = ye(te.DROP_ZONE, te.UPLOAD_BUTTON, te.UPLOAD_BUTTON_LABEL), m = q(null), [p, c] = $(!1), [T, N] = $(!1), O = I(() => {
|
|
501
501
|
var u;
|
|
502
502
|
c(!0), (u = m.current) == null || u.runAnimationForward();
|
|
503
|
-
}, []), F =
|
|
503
|
+
}, []), F = I(() => {
|
|
504
504
|
var u;
|
|
505
505
|
c(!1), (u = m.current) == null || u.runAnimationBackward();
|
|
506
506
|
}, []);
|
|
507
507
|
return /* @__PURE__ */ t.createElement(l, null, /* @__PURE__ */ t.createElement(l.Label, {
|
|
508
|
-
className:
|
|
508
|
+
className: M(Ze, Y.label)
|
|
509
509
|
}, /* @__PURE__ */ t.createElement(l.Label.Required, {
|
|
510
|
-
className:
|
|
510
|
+
className: M(Re, Y.requiredMark)
|
|
511
511
|
})), /* @__PURE__ */ t.createElement(l.DropZone, {
|
|
512
512
|
className: ({ isHovered: u, isFocused: R, isDropTarget: S }) => s({
|
|
513
513
|
isSelected: !1,
|
|
@@ -533,18 +533,18 @@ const rt = (e) => /* @__PURE__ */ t.createElement("svg", {
|
|
|
533
533
|
}, i.svg ? /* @__PURE__ */ t.createElement(Le, {
|
|
534
534
|
...i,
|
|
535
535
|
ref: m,
|
|
536
|
-
className:
|
|
536
|
+
className: M(Me, Ae, r)
|
|
537
537
|
}) : E ? null : /* @__PURE__ */ t.createElement(rt, null), /* @__PURE__ */ t.createElement(l.DropZone.Button.Text, {
|
|
538
|
-
className:
|
|
538
|
+
className: M(ce.base, D.buttonLabel, x, {
|
|
539
539
|
[ce.hover]: a && (p || T)
|
|
540
540
|
})
|
|
541
541
|
}))), /* @__PURE__ */ t.createElement(l.Explanation, {
|
|
542
|
-
className:
|
|
542
|
+
className: M(ue, Y.description, D.explanation),
|
|
543
543
|
showUploadStatusOnly: !0
|
|
544
544
|
}), /* @__PURE__ */ t.createElement(l.Files, {
|
|
545
545
|
className: D.files
|
|
546
546
|
}, /* @__PURE__ */ t.createElement(l.Files.File, {
|
|
547
|
-
className:
|
|
547
|
+
className: M(de.base, D.file)
|
|
548
548
|
}, /* @__PURE__ */ t.createElement(l.Files.File.Name, {
|
|
549
549
|
className: D.fileName
|
|
550
550
|
}), /* @__PURE__ */ t.createElement(l.Files.File.Spinner, {
|
|
@@ -554,11 +554,11 @@ const rt = (e) => /* @__PURE__ */ t.createElement("svg", {
|
|
|
554
554
|
className: D.removeButton,
|
|
555
555
|
"aria-label": e("file-upload.delete-file.aria-label")
|
|
556
556
|
}, /* @__PURE__ */ t.createElement(lt, null)), /* @__PURE__ */ t.createElement(l.Files.File.Error, {
|
|
557
|
-
className:
|
|
557
|
+
className: M(me, Y.error, D.fileError)
|
|
558
558
|
}, /* @__PURE__ */ t.createElement(at, null), /* @__PURE__ */ t.createElement(l.Files.File.Error.Text, null)))), /* @__PURE__ */ t.createElement(l.Description, {
|
|
559
|
-
className:
|
|
559
|
+
className: M(ue, Y.description)
|
|
560
560
|
}, Ct), /* @__PURE__ */ t.createElement(l.Error, {
|
|
561
|
-
className:
|
|
561
|
+
className: M(me, Y.error)
|
|
562
562
|
}, /* @__PURE__ */ t.createElement(Oe, null), /* @__PURE__ */ t.createElement(l.Error.Text, null)));
|
|
563
563
|
}, wt = () => /* @__PURE__ */ t.createElement(xt, null);
|
|
564
564
|
export {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import t, { useMemo as _ } from "react";
|
|
2
2
|
import { RicosViewer as A } from "@wix/ricos/viewer";
|
|
3
3
|
import u from "classnames";
|
|
4
|
-
import {
|
|
5
|
-
import { f as c, a as
|
|
4
|
+
import { bj as C, bb as I, bg as P, M as N, N as O, u as S } from "./form-Mla9_phC.js";
|
|
5
|
+
import { f as c, a as x } from "./find-child-C60k4CxG.js";
|
|
6
6
|
import { f as R } from "./format-currency-BwShJ9vM.js";
|
|
7
|
-
import { D as v, E as M } from "./field-error-headless-
|
|
8
|
-
import { L as g } from "./field-label-headless-
|
|
7
|
+
import { D as v, E as M } from "./field-error-headless-JU1yiTVE.js";
|
|
8
|
+
import { L as g } from "./field-label-headless-CD4_8Ros.js";
|
|
9
9
|
import { s as L } from "./field-rac.module-DfEb7pBp.js";
|
|
10
10
|
const e = ({ children: r }) => {
|
|
11
11
|
var p;
|
|
@@ -14,16 +14,16 @@ const e = ({ children: r }) => {
|
|
|
14
14
|
return (f = (E = (d = n == null ? void 0 : n.predefined) == null ? void 0 : d.paymentOptions) == null ? void 0 : E.products) == null ? void 0 : f[0];
|
|
15
15
|
}, [
|
|
16
16
|
n
|
|
17
|
-
]), i = (p = s == null ? void 0 : s.fixedPriceOptions) == null ? void 0 : p.price,
|
|
17
|
+
]), i = (p = s == null ? void 0 : s.fixedPriceOptions) == null ? void 0 : p.price, b = c(r, e.Label), y = c(r, e.Amount), F = c(r, e.Description), D = c(r, e.Error);
|
|
18
18
|
return /* @__PURE__ */ t.createElement(l, {
|
|
19
19
|
fieldId: a,
|
|
20
|
-
renderLabel: () =>
|
|
21
|
-
renderInput: () =>
|
|
20
|
+
renderLabel: () => b,
|
|
21
|
+
renderInput: () => x(y, {
|
|
22
22
|
price: i,
|
|
23
23
|
currencyCode: o == null ? void 0 : o.code,
|
|
24
24
|
locale: m
|
|
25
25
|
}),
|
|
26
|
-
renderDescription: () => /* @__PURE__ */ t.createElement(t.Fragment, null, D,
|
|
26
|
+
renderDescription: () => /* @__PURE__ */ t.createElement(t.Fragment, null, D, F)
|
|
27
27
|
});
|
|
28
28
|
}, B = ({ className: r, ...a }) => {
|
|
29
29
|
const { price: n, currencyCode: l, locale: o } = a, { inputId: m, ariaDescribedBy: s } = P(), i = R({
|
|
@@ -44,17 +44,17 @@ e.Label = T;
|
|
|
44
44
|
e.Amount = B;
|
|
45
45
|
e.Description = v;
|
|
46
46
|
e.Error = M;
|
|
47
|
-
const V = "_value_c7203_1",
|
|
47
|
+
const V = "_value_c7203_1", j = {
|
|
48
48
|
value: V
|
|
49
49
|
}, k = ({ content: r, locale: a }) => /* @__PURE__ */ t.createElement(A, {
|
|
50
50
|
content: r,
|
|
51
51
|
locale: a
|
|
52
52
|
}), w = () => /* @__PURE__ */ t.createElement(e, null, /* @__PURE__ */ t.createElement(e.Label, {
|
|
53
|
-
className: u(
|
|
53
|
+
className: u(N, L.label)
|
|
54
54
|
}), /* @__PURE__ */ t.createElement(e.Amount, {
|
|
55
|
-
className: u(
|
|
55
|
+
className: u(O, j.value)
|
|
56
56
|
}), /* @__PURE__ */ t.createElement(e.Description, {
|
|
57
|
-
className: u(
|
|
57
|
+
className: u(S, L.description)
|
|
58
58
|
}, k)), W = () => /* @__PURE__ */ t.createElement(w, null);
|
|
59
59
|
export {
|
|
60
60
|
W as FixedPaymentRAC
|