@wix/form-elements 1.137.0 → 1.138.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 → appointment-rac-DvzMuumV.js} +52 -52
- package/dist/component/{bookings-address-rac-ZLK-g-4b.js → bookings-address-rac-DoTKdj4W.js} +1 -1
- package/dist/component/{bookings-email-rac-C-406Pj1.js → bookings-email-rac-CHvxtHcu.js} +1 -1
- package/dist/component/{bookings-first-name-rac-ClxJPAU2.js → bookings-first-name-rac-VAAhC_fg.js} +1 -1
- package/dist/component/{bookings-header-rac-B_xKyowA.js → bookings-header-rac-YWB4879A.js} +1 -1
- package/dist/component/{bookings-last-name-rac-DcExtGsO.js → bookings-last-name-rac-B-aGMcD_.js} +1 -1
- package/dist/component/{bookings-login-bar-rac-B5Gpk-kG.js → bookings-login-bar-rac-3wYAN_xh.js} +4 -4
- package/dist/component/{bookings-phone-rac-DJSSDoRL.js → bookings-phone-rac-CzQVxpNK.js} +1 -1
- package/dist/component/{bookings-rich-text-rac-D-v6z1Fs.js → bookings-rich-text-rac-C5z9Gvts.js} +1 -1
- package/dist/component/{checkbox-field-rac-DJmjpsmU.js → checkbox-field-rac-CradfjbE.js} +4 -4
- package/dist/component/{checkbox-group-field-headless-C4A_Kv1U.js → checkbox-group-field-headless-DdVXFUPC.js} +3 -3
- package/dist/component/{checkbox-group-field-rac-M1l5h3ii.js → checkbox-group-field-rac-KqKHh6Uj.js} +4 -4
- package/dist/component/{checkbox-group-rac-DRdzHVfR.js → checkbox-group-rac-C34O1zlM.js} +1 -1
- package/dist/component/{checkbox-rac-Cyhg2Wvd.js → checkbox-rac-BnXI1EcE.js} +1 -1
- package/dist/component/{contacts-address-rac-BQvrTPCI.js → contacts-address-rac-Ba57mGCo.js} +1 -1
- package/dist/component/{contacts-birthdate-rac-DIMg-UlR.js → contacts-birthdate-rac-lOtU_kNL.js} +1 -1
- package/dist/component/{contacts-company-rac-OgWSVsmZ.js → contacts-company-rac-fzSYypTz.js} +1 -1
- package/dist/component/{contacts-email-rac-39IQYxTe.js → contacts-email-rac-kOu3zzAk.js} +1 -1
- package/dist/component/{contacts-first-name-rac-CjwVQGS7.js → contacts-first-name-rac-CwUDxtmS.js} +1 -1
- package/dist/component/{contacts-last-name-rac-C6ftvjMG.js → contacts-last-name-rac-DstG7QIk.js} +1 -1
- package/dist/component/{contacts-phone-rac-ldsxrFQH.js → contacts-phone-rac-DbDYtB90.js} +1 -1
- package/dist/component/{contacts-position-rac-3RzQeh2P.js → contacts-position-rac-G-5pxT4U.js} +1 -1
- package/dist/component/{contacts-subscribe-rac-CfuH705u.js → contacts-subscribe-rac-hfjDjoZw.js} +1 -1
- package/dist/component/{contacts-tax-id-rac-D85Dm5Pa.js → contacts-tax-id-rac-CUwJltYa.js} +1 -1
- package/dist/component/{date-availability-DcYOAszO.js → date-availability-CwlAp1DX.js} +1 -1
- package/dist/component/{date-input-field-rac-D4cr7NGI.js → date-input-field-rac-C47Y-z4d.js} +6 -6
- package/dist/component/{date-input-rac-BwJwmoZr.js → date-input-rac-BSKV4JJO.js} +1 -1
- package/dist/component/{date-picker-field-rac-C-IM7SHk.js → date-picker-field-rac-NSAnfLRk.js} +5 -5
- package/dist/component/{date-picker-rac-BkAp8Bgb.js → date-picker-rac-DlEVDz1X.js} +1 -1
- package/dist/component/{date-time-input-field-rac-DGCd-WUh.js → date-time-input-field-rac-Bs2xjob_.js} +20 -20
- package/dist/component/{date-time-input-rac-ClLzxACj.js → date-time-input-rac-Dvy_vn5y.js} +1 -1
- package/dist/component/{dext-checkbox-group-rac-DI26D3eR.js → dext-checkbox-group-rac-ydiyI0Ax.js} +2 -2
- package/dist/component/{dext-checkbox-rac-CRJq1RxN.js → dext-checkbox-rac-D3FH0uIS.js} +1 -1
- package/dist/component/{dext-date-picker-rac-CvzQs_Te.js → dext-date-picker-rac-C4Xa4Mkn.js} +1 -1
- package/dist/component/{dext-date-time-input-rac-Dtysjtim.js → dext-date-time-input-rac-DBUVJbqB.js} +1 -1
- package/dist/component/{dext-dropdown-rac-DHGo26Az.js → dext-dropdown-rac-Ku5SxJci.js} +1 -1
- package/dist/component/{dext-email-rac-BpnNEdVF.js → dext-email-rac-CdfesgKH.js} +1 -1
- package/dist/component/{dext-number-input-rac-C5iW_ei6.js → dext-number-input-rac-AmiEoijD.js} +1 -1
- package/dist/component/{dext-phone-rac-KCTWlcaK.js → dext-phone-rac-BqiNW-E2.js} +1 -1
- package/dist/component/{dext-radio-group-rac-ad6j8I4s.js → dext-radio-group-rac-Bku-LoOz.js} +2 -2
- package/dist/component/{dext-rating-input-rac-B4AvCMi0.js → dext-rating-input-rac-TxRgyMyp.js} +1 -1
- package/dist/component/{dext-tags-rac-BMathc_H.js → dext-tags-rac-C6iBGwg4.js} +2 -2
- package/dist/component/{dext-text-area-rac-Xb-pGhSZ.js → dext-text-area-rac-BU0eyjM4.js} +1 -1
- package/dist/component/{dext-text-input-rac-CSE8qfGF.js → dext-text-input-rac-BEls3cms.js} +1 -1
- package/dist/component/{dext-url-input-rac-Bq4iz5z9.js → dext-url-input-rac-CMAK9Qo6.js} +1 -1
- package/dist/component/{donation-rac-DRUbysCr.js → donation-rac-aGSBtE2T.js} +17 -17
- package/dist/component/{dropdown-field-headless-DO592qOP.js → dropdown-field-headless-B6i33cBH.js} +5 -5
- package/dist/component/{dropdown-field-rac-C2yjQI-C.js → dropdown-field-rac-COluC25e.js} +6 -6
- package/dist/component/{dropdown-rac-DlrGt2kE.js → dropdown-rac-BGQx3saK.js} +1 -1
- package/dist/component/{ecom-address-rac-D_StW_li.js → ecom-address-rac-BgkdVaiI.js} +1 -1
- package/dist/component/{ecom-subscription-checkbox-rac-CrdttyUU.js → ecom-subscription-checkbox-rac-C9jnWaZl.js} +2 -2
- package/dist/component/{email-input-field-rac-DqXazwV3.js → email-input-field-rac-DHCUGLjQ.js} +3 -3
- package/dist/component/{events-repeater-rac-DDpRs7rY.js → events-repeater-rac-BHz0azrh.js} +13 -13
- package/dist/component/{events-rsvp-rac-BN9axMYX.js → events-rsvp-rac-BgtEivuD.js} +8 -8
- package/dist/component/{field-error-headless-JU1yiTVE.js → field-error-headless-BCrv3sBa.js} +1 -1
- package/dist/component/{field-label-headless-CD4_8Ros.js → field-label-headless-B54yFVkr.js} +1 -1
- package/dist/component/{file-upload-rac-CQTx6hEf.js → file-upload-rac-Cg8Z8lhS.js} +21 -21
- package/dist/component/{fixed-payment-rac-B5cRBcxY.js → fixed-payment-rac-B3uuRmES.js} +21 -21
- package/dist/component/{form-Mla9_phC.js → form-D7mq5tD5.js} +77 -77
- package/dist/component/form.js +1 -1
- package/dist/component/{header-field-rac-B_F66ChH.js → header-field-rac-DbeAaOaE.js} +2 -2
- package/dist/component/{header-rac-BX6Df8ej.js → header-rac-CRghbywI.js} +1 -1
- package/dist/component/{image-choice-rac-Ce01EhFJ.js → image-choice-rac-nCRaXrH5.js} +17 -17
- package/dist/component/{index-Ch7II1GU.js → index-C6cdxkPM.js} +2 -2
- package/dist/component/{index-DoIW9Cb6.js → index-DNonwKkE.js} +4 -4
- package/dist/component/{isObjectLike-C1TnJWn6.js → isObjectLike-PXbsarQL.js} +1 -1
- package/dist/component/{multiline-address-field-rac-DVDEcHtq.js → multiline-address-field-rac-DeMafI8g.js} +7 -7
- package/dist/component/{multiline-address-rac-BJ8ln_G5.js → multiline-address-rac-g1IrapIk.js} +1 -1
- package/dist/component/{number-input-field-rac-DTfx9YgL.js → number-input-field-rac-BSGFZQh_.js} +10 -10
- package/dist/component/{number-input-rac-pg7cmYpS.js → number-input-rac-C5yMyFyv.js} +1 -1
- package/dist/component/{password-rac-D8BKTB_H.js → password-rac-jHDFxH5W.js} +10 -10
- package/dist/component/{payment-input-rac-HBquclKy.js → payment-input-rac-Cpw8VM0u.js} +14 -14
- package/dist/component/{phone-input-field-rac-Fgfg5HwA.js → phone-input-field-rac-DLZysv_w.js} +26 -26
- package/dist/component/{phone-rac-pivMTIyc.js → phone-rac-DK5Toq-q.js} +1 -1
- package/dist/component/{product-list-rac-DauIxK2R.js → product-list-rac-DR2bHVkk.js} +22 -22
- package/dist/component/{quiz-radio-group-rac-B0OtjxKf.js → quiz-radio-group-rac-mWuYJqRQ.js} +1 -1
- package/dist/component/{radio-button-module-classes-Cu3KM625.js → radio-button-module-classes-CokNolqR.js} +3 -3
- package/dist/component/{radio-group-field-rac-0dJHtf3G.js → radio-group-field-rac-DiaR7RdY.js} +6 -6
- package/dist/component/{radio-group-rac-CqtO1JqM.js → radio-group-rac-FdQp_E1O.js} +1 -1
- package/dist/component/{rating-input-field-rac-CMny6OSF.js → rating-input-field-rac-DbyB_Esi.js} +11 -11
- package/dist/component/{rating-input-rac-DA4iU_-m.js → rating-input-rac-D4C1bB-A.js} +1 -1
- package/dist/component/{rich-content-rac.module-CZX0cZst.js → rich-content-rac.module-CDtZ3pmh.js} +1 -1
- package/dist/component/{rich-text-field-rac-Dtm6xFcj.js → rich-text-field-rac-CYqdqamx.js} +2 -2
- package/dist/component/{rich-text-rac-ClqIW5ds.js → rich-text-rac-CDzSg_7O.js} +1 -1
- package/dist/component/{service-dropdown-rac-_4T1OZGq.js → service-dropdown-rac-rdwYVwGB.js} +9 -9
- package/dist/component/{services-multi-choice-rac-BVim-jnM.js → services-multi-choice-rac-DOO6HYgT.js} +7 -7
- package/dist/component/{signature-rac-D7w8WTLO.js → signature-rac-CBh4_hf-.js} +4 -4
- package/dist/component/{submit-button-rac-BkUDj1dU.js → submit-button-rac-B8ZNvJjY.js} +2 -2
- package/dist/component/{tags-field-rac-Di1aK4E2.js → tags-field-rac-D5THw-TO.js} +5 -5
- package/dist/component/{tags-rac-CJ5f4Doi.js → tags-rac-C8wN2xTn.js} +1 -1
- package/dist/component/{text-area-field-rac-DFjrT9fs.js → text-area-field-rac-D3GB6Wrq.js} +6 -6
- package/dist/component/{text-area-rac-DBANidv_.js → text-area-rac-CCTd5x7u.js} +1 -1
- package/dist/component/{text-input-field-rac-DJDzqR6d.js → text-input-field-rac-emy5LgNs.js} +3 -3
- package/dist/component/{text-input-headless-CG4wbxMG.js → text-input-headless-BIgsm4yN.js} +3 -3
- package/dist/component/{text-input-rac-V0tK1Gj2.js → text-input-rac-BFRe44DM.js} +1 -1
- package/dist/component/{time-input-rac-LSoyg8Ao.js → time-input-rac-D6FsrMxb.js} +4 -4
- package/dist/component/{url-input-field-rac-DI0SdDI0.js → url-input-field-rac-Dk9F61BD.js} +8 -8
- package/dist/component/{url-input-rac-obx2Uf2F.js → url-input-rac-C1pAmfj-.js} +1 -1
- package/dist/component/{use-dropdown-option-class-name-BM-NiVtO.js → use-dropdown-option-class-name-DNvaYrmm.js} +2 -2
- package/dist/component/{use-dropdown-trigger-class-name-BHwQ-wZa.js → use-dropdown-trigger-class-name-_gAS-eDg.js} +2 -2
- package/dist/component/{use-element-state-class-name-DAYz5X_i.js → use-element-state-class-name-CT3HIbmC.js} +1 -1
- package/dist/component/{use-hoverable-input-class-name-DZ-4NGpv.js → use-hoverable-input-class-name-DMVtzjju.js} +2 -2
- package/dist/component/{use-service-options-base-BOjt2sg9.js → use-service-options-base-DMgeKnCC.js} +1 -1
- package/dist/component/use-text-input-class-name-CO5G1Jx0.js +6 -0
- package/package.json +2 -2
- package/dist/component/use-text-input-class-name-Bqj4OoIw.js +0 -6
|
@@ -4,24 +4,24 @@ import t, { useMemo as O, useState as q, useCallback as H, useRef as U, useConte
|
|
|
4
4
|
import { parseTime as le } from "@internationalized/date";
|
|
5
5
|
import { UNSAFE_PortalProvider as ie } from "react-aria";
|
|
6
6
|
import { ListBoxItem as ce, Select as me, TextField as Q, TimeField as de, SelectValue as ue, Input as J, DateInput as pe, DateSegment as x, TimeFieldStateContext as Ee } from "react-aria-components";
|
|
7
|
-
import { bj as f, bg as W, bb as z, aQ as X, b1 as Z, aD as d, bt as L, b5 as j, aS as fe, aK as he, b8 as be, aM as K, bl as G,
|
|
7
|
+
import { bj as f, bg as W, bb as z, aQ as X, b1 as Z, aD as d, bt as L, b5 as j, aS as fe, aK as he, b8 as be, aM as K, bl as G, N as R, Y as ge, O as Ie, G as Ne, u as De } from "./form-D7mq5tD5.js";
|
|
8
8
|
import { f as u, a as P } from "./find-child-C60k4CxG.js";
|
|
9
9
|
import { g as _e } from "./helpers-HmkkXrh2.js";
|
|
10
|
-
import { D as ye, E as Te } from "./field-error-headless-
|
|
11
|
-
import { L as Oe } from "./field-label-headless-
|
|
10
|
+
import { D as ye, E as Te } from "./field-error-headless-BCrv3sBa.js";
|
|
11
|
+
import { L as Oe } from "./field-label-headless-B54yFVkr.js";
|
|
12
12
|
import { F as Le } from "./fieldset-headless-CD3fds9J.js";
|
|
13
13
|
import { N as Ce, E as Fe, S as Pe } from "./non-modal-popover-D-u13tmp.js";
|
|
14
|
-
import { a as Me, u as Se } from "./use-dropdown-trigger-class-name-
|
|
15
|
-
import { V as Re, u as Ae } from "./use-dropdown-option-class-name-
|
|
14
|
+
import { a as Me, u as Se } from "./use-dropdown-trigger-class-name-_gAS-eDg.js";
|
|
15
|
+
import { V as Re, u as Ae } from "./use-dropdown-option-class-name-DNvaYrmm.js";
|
|
16
16
|
import { C as Ve } from "./chevron-down-icon-CcpVm6B-.js";
|
|
17
17
|
import { E as Ye } from "./error-icon-hZxQ6DEy.js";
|
|
18
18
|
import { H as k } from "./custom-focus-class-_483Pkwp.js";
|
|
19
19
|
import { s as g } from "./field-rac.module-DfEb7pBp.js";
|
|
20
|
-
import { u as B } from "./use-text-input-class-name-
|
|
20
|
+
import { u as B } from "./use-text-input-class-name-CO5G1Jx0.js";
|
|
21
21
|
const l = ({ children: e, className: a }) => {
|
|
22
22
|
const { id: n, required: r, onBlur: s, onFocus: o, FieldLayout: i } = f(), { inputId: m, labelId: c, ariaDescribedBy: b } = W(), { regionalFormat: p } = z(), _ = O(() => X(p).filter(Z).map((S) => S.toUpperCase()), [
|
|
23
23
|
p
|
|
24
|
-
]), M = u(e, l.Label), Y = u(e, l.Description),
|
|
24
|
+
]), M = u(e, l.Label), Y = u(e, l.Description), N = u(e, l.Error), D = {
|
|
25
25
|
[d.MONTH]: u(e, l.Month),
|
|
26
26
|
[d.DAY]: u(e, l.Day),
|
|
27
27
|
[d.YEAR]: u(e, l.Year)
|
|
@@ -39,11 +39,11 @@ const l = ({ children: e, className: a }) => {
|
|
|
39
39
|
onBlur: s,
|
|
40
40
|
onFocus: o,
|
|
41
41
|
className: a
|
|
42
|
-
},
|
|
43
|
-
renderDescription: () => /* @__PURE__ */ t.createElement(t.Fragment, null,
|
|
42
|
+
}, D[_[0]], D[_[1]], D[_[2]], y),
|
|
43
|
+
renderDescription: () => /* @__PURE__ */ t.createElement(t.Fragment, null, N, Y)
|
|
44
44
|
});
|
|
45
45
|
}, C = ({ children: e, className: a }) => {
|
|
46
|
-
const { id: n, disabled: r, readOnly: s, showDateLabels: o, hidePlaceholder: i } = f(), { labelId: m } = T(d.MONTH), { partValue: c, partError: b, onPartChange: p } = F(d.MONTH), { t: _ } = L(), [M, Y] = q(!1),
|
|
46
|
+
const { id: n, disabled: r, readOnly: s, showDateLabels: o, hidePlaceholder: i } = f(), { labelId: m } = T(d.MONTH), { partValue: c, partError: b, onPartChange: p } = F(d.MONTH), { t: _ } = L(), [M, Y] = q(!1), N = Me(n), [D, y] = q(null), S = i ? Fe : _("field.date.placeholder.month"), ee = H((v) => {
|
|
47
47
|
s || p(typeof v == "string" ? v : "");
|
|
48
48
|
}, [
|
|
49
49
|
p,
|
|
@@ -62,7 +62,7 @@ const l = ({ children: e, className: a }) => {
|
|
|
62
62
|
display: "contents"
|
|
63
63
|
}
|
|
64
64
|
}), /* @__PURE__ */ t.createElement(ie, {
|
|
65
|
-
getContainer: () =>
|
|
65
|
+
getContainer: () => D
|
|
66
66
|
}, /* @__PURE__ */ t.createElement(me, {
|
|
67
67
|
"aria-labelledby": o ? m : void 0,
|
|
68
68
|
value: c || null,
|
|
@@ -70,10 +70,10 @@ const l = ({ children: e, className: a }) => {
|
|
|
70
70
|
isDisabled: r,
|
|
71
71
|
isInvalid: b,
|
|
72
72
|
placeholder: S,
|
|
73
|
-
isOpen:
|
|
74
|
-
onOpenChange:
|
|
73
|
+
isOpen: N || M,
|
|
74
|
+
onOpenChange: N ? void 0 : te
|
|
75
75
|
}, ne, P(re, {
|
|
76
|
-
isForcedOpen:
|
|
76
|
+
isForcedOpen: N
|
|
77
77
|
}))));
|
|
78
78
|
}, ve = ({ className: e }) => /* @__PURE__ */ t.createElement($, {
|
|
79
79
|
datePart: d.MONTH,
|
|
@@ -298,14 +298,14 @@ function F(e) {
|
|
|
298
298
|
o
|
|
299
299
|
]), b = O(() => Ke(i), [
|
|
300
300
|
i
|
|
301
|
-
]), p = H((
|
|
302
|
-
const
|
|
301
|
+
]), p = H((N) => {
|
|
302
|
+
const D = Qe(N), y = K(o, D);
|
|
303
303
|
n(y);
|
|
304
304
|
}, [
|
|
305
305
|
n,
|
|
306
306
|
o
|
|
307
|
-
]), _ = H((
|
|
308
|
-
const [,
|
|
307
|
+
]), _ = H((N) => {
|
|
308
|
+
const [, D] = j(a ?? ""), y = be(N, e, c), S = K(y, D);
|
|
309
309
|
n(S);
|
|
310
310
|
}, [
|
|
311
311
|
n,
|
|
@@ -417,9 +417,9 @@ const Je = "_fields_1meki_1", We = "_month_1meki_10", Xe = "_day_1meki_11", Ze =
|
|
|
417
417
|
}), /* @__PURE__ */ t.createElement(l.Time.Period, {
|
|
418
418
|
className: h(E.period, k)
|
|
419
419
|
}))), /* @__PURE__ */ t.createElement(l.Error, {
|
|
420
|
-
className: h(
|
|
420
|
+
className: h(Ne, g.error)
|
|
421
421
|
}, /* @__PURE__ */ t.createElement(Ye, null), /* @__PURE__ */ t.createElement(l.Error.Text, null)), /* @__PURE__ */ t.createElement(l.Description, {
|
|
422
|
-
className: h(
|
|
422
|
+
className: h(De, g.description)
|
|
423
423
|
}, ct));
|
|
424
424
|
};
|
|
425
425
|
export {
|
package/dist/component/{dext-checkbox-group-rac-DI26D3eR.js → dext-checkbox-group-rac-ydiyI0Ax.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import o from "react";
|
|
2
|
-
import { bj as e, al as t } from "./form-
|
|
3
|
-
import { C as p } from "./checkbox-group-field-rac-
|
|
2
|
+
import { bj as e, al as t } from "./form-D7mq5tD5.js";
|
|
3
|
+
import { C as p } from "./checkbox-group-field-rac-KqKHh6Uj.js";
|
|
4
4
|
import { D as s } from "./default-limits-D7qVv_Hv.js";
|
|
5
5
|
const n = () => {
|
|
6
6
|
const r = {
|
package/dist/component/{dext-radio-group-rac-ad6j8I4s.js → dext-radio-group-rac-Bku-LoOz.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import r from "react";
|
|
2
|
-
import { bj as e, al as t } from "./form-
|
|
3
|
-
import { R as p } from "./radio-group-field-rac-
|
|
2
|
+
import { bj as e, al as t } from "./form-D7mq5tD5.js";
|
|
3
|
+
import { R as p } from "./radio-group-field-rac-DiaR7RdY.js";
|
|
4
4
|
import { a } from "./default-limits-D7qVv_Hv.js";
|
|
5
5
|
const R = () => {
|
|
6
6
|
const o = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import r from "react";
|
|
2
|
-
import { bj as e, al as o } from "./form-
|
|
3
|
-
import { T as s } from "./tags-field-rac-
|
|
2
|
+
import { bj as e, al as o } from "./form-D7mq5tD5.js";
|
|
3
|
+
import { T as s } from "./tags-field-rac-D5THw-TO.js";
|
|
4
4
|
import { b as a } from "./default-limits-D7qVv_Hv.js";
|
|
5
5
|
const T = () => {
|
|
6
6
|
const t = {
|
|
@@ -3,11 +3,11 @@ import { RicosViewer as ne } from "@wix/ricos/viewer";
|
|
|
3
3
|
import L from "classnames";
|
|
4
4
|
import { ToggleButtonGroup as oe, TextField as re, Group as se, ToggleButton as ae, Input as le } from "react-aria-components";
|
|
5
5
|
import { debounce as ce } from "ts-debounce";
|
|
6
|
-
import { az as j, bj as T, bg as P, bt as ie, bb as x, bl as ue,
|
|
6
|
+
import { az as j, bj as T, bg as P, bt as ie, bb as x, bl as ue, N as me, Y as pe, v as de, G as Ie, u as Ce, w as Ee } from "./form-D7mq5tD5.js";
|
|
7
7
|
import { f as O, a as F } from "./find-child-C60k4CxG.js";
|
|
8
8
|
import { a as z } from "./format-currency-BwShJ9vM.js";
|
|
9
|
-
import { D as fe, E as Oe } from "./field-error-headless-
|
|
10
|
-
import { L as be } from "./field-label-headless-
|
|
9
|
+
import { D as fe, E as Oe } from "./field-error-headless-BCrv3sBa.js";
|
|
10
|
+
import { L as be } from "./field-label-headless-B54yFVkr.js";
|
|
11
11
|
import { F as ye } from "./fieldset-headless-CD3fds9J.js";
|
|
12
12
|
import { a as _e, b as he } from "./numeric-input-utils-CuBMi4-a.js";
|
|
13
13
|
import { g as Ne } from "./payment-field-utils-DobiK5Xh.js";
|
|
@@ -15,8 +15,8 @@ import { u as ge } from "./use-synced-display-value-DcAxdn3M.js";
|
|
|
15
15
|
import { E as Fe } from "./error-icon-hZxQ6DEy.js";
|
|
16
16
|
import { s as v } from "./field-rac.module-DfEb7pBp.js";
|
|
17
17
|
import { o as De } from "./options-rac.module-_THNq6Qq.js";
|
|
18
|
-
import { u as Se } from "./use-element-state-class-name-
|
|
19
|
-
import { u as Le } from "./use-text-input-class-name-
|
|
18
|
+
import { u as Se } from "./use-element-state-class-name-CT3HIbmC.js";
|
|
19
|
+
import { u as Le } from "./use-text-input-class-name-CO5G1Jx0.js";
|
|
20
20
|
function ve(e, t) {
|
|
21
21
|
return e.reduce((o, r) => (o[r[t]] = r, o), {});
|
|
22
22
|
}
|
|
@@ -39,7 +39,7 @@ function w(e, t) {
|
|
|
39
39
|
function Pe(e) {
|
|
40
40
|
return e.find((t) => t.priceType === j.DYNAMIC_PRICE);
|
|
41
41
|
}
|
|
42
|
-
function
|
|
42
|
+
function Be(e, t) {
|
|
43
43
|
return (e == null ? void 0 : e.productId) === (t == null ? void 0 : t.id) ? String((e == null ? void 0 : e.price) ?? "") : "";
|
|
44
44
|
}
|
|
45
45
|
const s = ({ children: e }) => {
|
|
@@ -48,24 +48,24 @@ const s = ({ children: e }) => {
|
|
|
48
48
|
return ((h = (I = u == null ? void 0 : u.predefined) == null ? void 0 : I.paymentOptions) == null ? void 0 : h.products) || [];
|
|
49
49
|
}, [
|
|
50
50
|
u
|
|
51
|
-
]),
|
|
51
|
+
]), B = q(() => Re(D), [
|
|
52
52
|
D
|
|
53
53
|
]), a = q(() => E ? Pe(D) : void 0, [
|
|
54
54
|
D,
|
|
55
55
|
E
|
|
56
|
-
]), K =
|
|
56
|
+
]), K = Be(b, a), [V, M] = ge({
|
|
57
57
|
sourceValue: K,
|
|
58
58
|
format: (I) => he(String(I ?? ""), _),
|
|
59
59
|
regionalFormat: _
|
|
60
60
|
}), H = S((I) => {
|
|
61
|
-
const h = I === void 0 ? void 0 :
|
|
61
|
+
const h = I === void 0 ? void 0 : B[I];
|
|
62
62
|
r(h ? [
|
|
63
63
|
w(h, Te(h))
|
|
64
|
-
] : []),
|
|
64
|
+
] : []), M("");
|
|
65
65
|
}, [
|
|
66
66
|
r,
|
|
67
|
-
|
|
68
|
-
|
|
67
|
+
B,
|
|
68
|
+
M
|
|
69
69
|
]), k = S((I) => {
|
|
70
70
|
a && r(typeof I == "number" ? [
|
|
71
71
|
w(a, String(I))
|
|
@@ -78,7 +78,7 @@ const s = ({ children: e }) => {
|
|
|
78
78
|
]), Q = S((I) => {
|
|
79
79
|
(b == null ? void 0 : b.productId) !== (a == null ? void 0 : a.id) && r(void 0);
|
|
80
80
|
const { validInput: h, validNumber: ee } = _e(I.target.value, Ae, V, _);
|
|
81
|
-
|
|
81
|
+
M(h), G(ee);
|
|
82
82
|
}, [
|
|
83
83
|
_,
|
|
84
84
|
r,
|
|
@@ -86,7 +86,7 @@ const s = ({ children: e }) => {
|
|
|
86
86
|
a,
|
|
87
87
|
V,
|
|
88
88
|
G,
|
|
89
|
-
|
|
89
|
+
M
|
|
90
90
|
]), U = (b == null ? void 0 : b.productId) || null, W = S(() => {
|
|
91
91
|
a != null && a.id && U !== a.id && H(a.id);
|
|
92
92
|
}, [
|
|
@@ -105,7 +105,7 @@ const s = ({ children: e }) => {
|
|
|
105
105
|
onBlur: i,
|
|
106
106
|
onFocus: C
|
|
107
107
|
}, Y ? F(Y, {
|
|
108
|
-
productsById:
|
|
108
|
+
productsById: B,
|
|
109
109
|
selectedValue: U,
|
|
110
110
|
onSelectProduct: H,
|
|
111
111
|
addOther: E,
|
|
@@ -119,7 +119,7 @@ const s = ({ children: e }) => {
|
|
|
119
119
|
}) : null),
|
|
120
120
|
renderDescription: () => /* @__PURE__ */ n.createElement(n.Fragment, null, Z, X)
|
|
121
121
|
});
|
|
122
|
-
},
|
|
122
|
+
}, Me = ({ children: e, className: t, ...o }) => {
|
|
123
123
|
const { productsById: r, selectedValue: l, onSelectProduct: i, addOther: C, customAmount: u, onCustomAmountInputChange: E, currency: p, t: f, placeholder: c, customAmountProductId: d, onFocusCustomInput: y } = o, { hasError: m } = T(), g = O(e, s.Options), _ = O(e, s.OtherInput);
|
|
124
124
|
return /* @__PURE__ */ n.createElement("div", {
|
|
125
125
|
className: t,
|
|
@@ -252,7 +252,7 @@ A.Currency = Ve;
|
|
|
252
252
|
A.Value = He;
|
|
253
253
|
$.Option = R;
|
|
254
254
|
s.Label = be;
|
|
255
|
-
s.Control =
|
|
255
|
+
s.Control = Me;
|
|
256
256
|
s.Options = $;
|
|
257
257
|
s.OtherInput = A;
|
|
258
258
|
s.Description = fe;
|
package/dist/component/{dropdown-field-headless-DO592qOP.js → dropdown-field-headless-B6i33cBH.js}
RENAMED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import e, { useState as b, useCallback as g, useRef as k } from "react";
|
|
2
2
|
import { UNSAFE_PortalProvider as q } from "react-aria";
|
|
3
3
|
import { Select as M, SelectValue as j, ListBoxItem as H } from "react-aria-components";
|
|
4
|
-
import { bj as E, bg as O, bl as U } from "./form-
|
|
4
|
+
import { bj as E, bg as O, bl as U } from "./form-D7mq5tD5.js";
|
|
5
5
|
import { f as d, a as F } from "./find-child-C60k4CxG.js";
|
|
6
|
-
import { D as Y, E as z } from "./field-error-headless-
|
|
7
|
-
import { L as G } from "./field-label-headless-
|
|
6
|
+
import { D as Y, E as z } from "./field-error-headless-BCrv3sBa.js";
|
|
7
|
+
import { L as G } from "./field-label-headless-B54yFVkr.js";
|
|
8
8
|
import { E as J, S as K, N as Q } from "./non-modal-popover-D-u13tmp.js";
|
|
9
|
-
import { a as W } from "./use-dropdown-trigger-class-name-
|
|
10
|
-
import { V as X } from "./use-dropdown-option-class-name-
|
|
9
|
+
import { a as W } from "./use-dropdown-trigger-class-name-_gAS-eDg.js";
|
|
10
|
+
import { V as X } from "./use-dropdown-option-class-name-DNvaYrmm.js";
|
|
11
11
|
const r = ({ children: n }) => {
|
|
12
12
|
const { id: l, value: a, defaultValue: o, options: u = [], readOnly: s, onChange: t, placeholder: m, disabled: i, required: v, onBlur: L, onFocus: y, FieldLayout: C, hasError: D } = E(), [I, h] = b(!1), p = W(l), [P, S] = b(null), T = a && u.some((c) => (c.value ?? c.label) === a) ? a : o || null, { labelId: B } = O(), N = g((c) => {
|
|
13
13
|
s || t(typeof c == "string" ? c : null);
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { RicosViewer as m } from "@wix/ricos/viewer";
|
|
2
2
|
import a from "classnames";
|
|
3
3
|
import e from "react";
|
|
4
|
-
import { D as r } from "./dropdown-field-headless-
|
|
4
|
+
import { D as r } from "./dropdown-field-headless-B6i33cBH.js";
|
|
5
5
|
import { C as n } from "./chevron-down-icon-CcpVm6B-.js";
|
|
6
6
|
import { E as l } from "./error-icon-hZxQ6DEy.js";
|
|
7
7
|
import { H as c } from "./custom-focus-class-_483Pkwp.js";
|
|
8
8
|
import { s as o } from "./field-rac.module-DfEb7pBp.js";
|
|
9
|
-
import {
|
|
10
|
-
import { u as O } from "./use-dropdown-option-class-name-
|
|
11
|
-
import { u as C } from "./use-dropdown-trigger-class-name-
|
|
9
|
+
import { N as i, Y as p, O as E, G as _, u as D } from "./form-D7mq5tD5.js";
|
|
10
|
+
import { u as O } from "./use-dropdown-option-class-name-DNvaYrmm.js";
|
|
11
|
+
import { u as C } from "./use-dropdown-trigger-class-name-_gAS-eDg.js";
|
|
12
12
|
const R = ({ content: t, locale: s }) => /* @__PURE__ */ e.createElement(m, {
|
|
13
13
|
content: t,
|
|
14
14
|
locale: s
|
|
15
|
-
}),
|
|
15
|
+
}), T = () => {
|
|
16
16
|
const t = C(o.dropdownTrigger), s = O(c);
|
|
17
17
|
return /* @__PURE__ */ e.createElement(r, null, /* @__PURE__ */ e.createElement(r.Label, {
|
|
18
18
|
className: a(i, o.label)
|
|
@@ -33,5 +33,5 @@ const R = ({ content: t, locale: s }) => /* @__PURE__ */ e.createElement(m, {
|
|
|
33
33
|
}, R));
|
|
34
34
|
};
|
|
35
35
|
export {
|
|
36
|
-
|
|
36
|
+
T as D
|
|
37
37
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import o, { useMemo as n } from "react";
|
|
2
|
-
import { bj as a, bt as c, al as i } from "./form-
|
|
3
|
-
import { C as l } from "./checkbox-field-rac-
|
|
2
|
+
import { bj as a, bt as c, al as i } from "./form-D7mq5tD5.js";
|
|
3
|
+
import { C as l } from "./checkbox-field-rac-CradfjbE.js";
|
|
4
4
|
const p = (e) => ({
|
|
5
5
|
nodes: [
|
|
6
6
|
{
|
package/dist/component/{email-input-field-rac-DqXazwV3.js → email-input-field-rac-DHCUGLjQ.js}
RENAMED
|
@@ -2,7 +2,7 @@ import { RicosViewer as ie } from "@wix/ricos/viewer";
|
|
|
2
2
|
import D from "classnames";
|
|
3
3
|
import u, { createContext as z, useContext as Z, createElement as R, isValidElement as B, cloneElement as w, useState as le, useCallback as me, useEffect as ue } from "react";
|
|
4
4
|
import { TextField as pe } from "react-aria-components";
|
|
5
|
-
import { bg as fe, bt as ge, be as ve, d as ye, bj as Ee, bn as de, bh as be, aj as Se,
|
|
5
|
+
import { bg as fe, bt as ge, be as ve, d as ye, bj as Ee, bn as de, bh as be, aj as Se, N as Oe, Y as he, G as Ie, u as Ne, a5 as Ae } from "./form-D7mq5tD5.js";
|
|
6
6
|
import { f as C } from "./find-child-C60k4CxG.js";
|
|
7
7
|
import ee from "@babel/runtime/helpers/objectWithoutProperties";
|
|
8
8
|
import L from "@babel/runtime/helpers/typeof";
|
|
@@ -10,10 +10,10 @@ import Fe from "@babel/runtime/helpers/defineProperty";
|
|
|
10
10
|
import ke from "html-parse-stringify";
|
|
11
11
|
import Te from "@babel/runtime/helpers/classCallCheck";
|
|
12
12
|
import je from "@babel/runtime/helpers/createClass";
|
|
13
|
-
import { T as U } from "./text-input-headless-
|
|
13
|
+
import { T as U } from "./text-input-headless-BIgsm4yN.js";
|
|
14
14
|
import { E as xe } from "./error-icon-hZxQ6DEy.js";
|
|
15
15
|
import { s as H } from "./field-rac.module-DfEb7pBp.js";
|
|
16
|
-
import { u as De } from "./use-text-input-class-name-
|
|
16
|
+
import { u as De } from "./use-text-input-class-name-CO5G1Jx0.js";
|
|
17
17
|
var Ce = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g, Le = {
|
|
18
18
|
"&": "&",
|
|
19
19
|
"&": "&",
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import t, { useState as $, useMemo as h, useCallback as V, useRef as
|
|
2
|
-
import
|
|
1
|
+
import t, { useState as $, useMemo as h, useCallback as V, useRef as M } from "react";
|
|
2
|
+
import k 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 { 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,
|
|
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, N as te, n as se, s as ne, r as oe } from "./form-D7mq5tD5.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-B54yFVkr.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 x } 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-CT3HIbmC.js";
|
|
13
|
+
import { u as me } from "./use-text-input-class-name-CO5G1Jx0.js";
|
|
14
14
|
const ie = [], de = ({ id: e, fields: s, layout: a, value: o, onChange: n, errors: l = ie, validation: c }) => {
|
|
15
15
|
const [m, i] = $((o == null ? void 0 : o.length) || 0), u = h(() => o ?? [], [
|
|
16
16
|
o
|
|
@@ -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 = M(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 = M(null);
|
|
141
141
|
j(() => {
|
|
142
142
|
var G;
|
|
143
143
|
(G = p.current) == null || G.focus();
|
|
@@ -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: k(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(x, {
|
|
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(x, null)))), /* @__PURE__ */ t.createElement(r.GuestToggle, {
|
|
256
|
+
className: k(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-CokNolqR.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 {
|
|
7
|
+
import { N as E, Y as p, T as R, U as O, G as _, u as L, V as D } from "./form-D7mq5tD5.js";
|
|
8
8
|
import { o as I } from "./options-rac.module-_THNq6Qq.js";
|
|
9
|
-
import { u as
|
|
9
|
+
import { u as N } from "./use-element-state-class-name-CT3HIbmC.js";
|
|
10
10
|
const e = ({ children: r, className: l }) => /* @__PURE__ */ t.createElement(a, {
|
|
11
11
|
className: l
|
|
12
12
|
}, r);
|
|
@@ -15,11 +15,11 @@ 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 S = ({ content: r, locale: l }) => /* @__PURE__ */ t.createElement(m, {
|
|
19
19
|
content: r,
|
|
20
20
|
locale: l
|
|
21
|
-
}),
|
|
22
|
-
const r =
|
|
21
|
+
}), u = () => {
|
|
22
|
+
const r = N({
|
|
23
23
|
globalClasses: D,
|
|
24
24
|
moduleClasses: c
|
|
25
25
|
});
|
|
@@ -41,8 +41,8 @@ const u = ({ 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
|
+
}, S));
|
|
45
|
+
}, v = () => /* @__PURE__ */ t.createElement(u, null);
|
|
46
46
|
export {
|
|
47
47
|
v as EventsRsvpRAC
|
|
48
48
|
};
|
package/dist/component/{field-error-headless-JU1yiTVE.js → field-error-headless-BCrv3sBa.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import t, { createContext as m, useContext as M } from "react";
|
|
2
|
-
import { bj as c, bg as i, bb as b, aU as f, aV as x } from "./form-
|
|
2
|
+
import { bj as c, bg as i, bb as b, aU as f, aV as x } from "./form-D7mq5tD5.js";
|
|
3
3
|
const H = ({ className: r, children: e }) => {
|
|
4
4
|
const { description: s, target: o } = c(), { descriptionId: a } = i(), { language: n } = b();
|
|
5
5
|
return s ? /* @__PURE__ */ t.createElement("div", {
|
package/dist/component/{field-label-headless-CD4_8Ros.js → field-label-headless-B54yFVkr.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { bj as m, aA as d, aB as p, bg as B, bt as D } from "./form-
|
|
1
|
+
import { bj as m, aA as d, aB as p, bg as B, bt as D } from "./form-D7mq5tD5.js";
|
|
2
2
|
import l from "react";
|
|
3
3
|
import { f as g } from "./find-child-C60k4CxG.js";
|
|
4
4
|
import { sdk as L } from "@wix/image-kit";
|