@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,27 +1,27 @@
|
|
|
1
1
|
import { RicosViewer as se } from "@wix/ricos/viewer";
|
|
2
2
|
import h from "classnames";
|
|
3
|
-
import t, { useMemo as O, useState as
|
|
3
|
+
import t, { useMemo as O, useState as q, useCallback as H, useRef as U, useContext as oe } from "react";
|
|
4
4
|
import { parseTime as le } from "@internationalized/date";
|
|
5
5
|
import { UNSAFE_PortalProvider as ie } from "react-aria";
|
|
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
|
|
7
|
-
import {
|
|
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, M as R, Y as ge, O as Ie, G as De, u as Ne } from "./form-Mla9_phC.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-JU1yiTVE.js";
|
|
11
|
+
import { L as Oe } from "./field-label-headless-CD4_8Ros.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-BHwQ-wZa.js";
|
|
15
|
+
import { V as Re, u as Ae } from "./use-dropdown-option-class-name-BM-NiVtO.js";
|
|
16
16
|
import { C as Ve } from "./chevron-down-icon-CcpVm6B-.js";
|
|
17
|
-
import { E as
|
|
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
|
|
20
|
+
import { u as B } from "./use-text-input-class-name-Bqj4OoIw.js";
|
|
21
21
|
const l = ({ children: e, className: a }) => {
|
|
22
|
-
const { id: n, required: r, onBlur: s, onFocus: o, FieldLayout: i } = f(), { inputId: m, labelId: c, ariaDescribedBy: b } = W(), { regionalFormat: p } =
|
|
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),
|
|
24
|
+
]), M = u(e, l.Label), Y = u(e, l.Description), D = u(e, l.Error), N = {
|
|
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,17 +39,17 @@ 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
|
+
}, N[_[0]], N[_[1]], N[_[2]], y),
|
|
43
|
+
renderDescription: () => /* @__PURE__ */ t.createElement(t.Fragment, null, D, 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,
|
|
47
|
-
s || p(typeof
|
|
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), D = Me(n), [N, y] = q(null), S = i ? Fe : _("field.date.placeholder.month"), ee = H((v) => {
|
|
47
|
+
s || p(typeof v == "string" ? v : "");
|
|
48
48
|
}, [
|
|
49
49
|
p,
|
|
50
50
|
s
|
|
51
|
-
]), te = H((
|
|
52
|
-
v
|
|
51
|
+
]), te = H((v) => {
|
|
52
|
+
Y(v && !s);
|
|
53
53
|
}, [
|
|
54
54
|
s
|
|
55
55
|
]), ae = u(e, C.Label), ne = u(e, C.Trigger), re = u(e, C.Options);
|
|
@@ -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: () => N
|
|
66
66
|
}, /* @__PURE__ */ t.createElement(me, {
|
|
67
67
|
"aria-labelledby": o ? m : void 0,
|
|
68
68
|
value: c || null,
|
|
@@ -70,17 +70,17 @@ const l = ({ children: e, className: a }) => {
|
|
|
70
70
|
isDisabled: r,
|
|
71
71
|
isInvalid: b,
|
|
72
72
|
placeholder: S,
|
|
73
|
-
isOpen:
|
|
74
|
-
onOpenChange:
|
|
73
|
+
isOpen: D || M,
|
|
74
|
+
onOpenChange: D ? void 0 : te
|
|
75
75
|
}, ne, P(re, {
|
|
76
|
-
isForcedOpen:
|
|
76
|
+
isForcedOpen: D
|
|
77
77
|
}))));
|
|
78
|
-
},
|
|
78
|
+
}, ve = ({ className: e }) => /* @__PURE__ */ t.createElement($, {
|
|
79
79
|
datePart: d.MONTH,
|
|
80
80
|
className: e
|
|
81
81
|
}), ke = ({ children: e, className: a }) => {
|
|
82
82
|
const { id: n, readOnly: r } = f(), { inputId: s } = T(d.MONTH), { partError: o, isFirstPart: i } = F(d.MONTH), m = U(null);
|
|
83
|
-
return
|
|
83
|
+
return G(() => {
|
|
84
84
|
var c;
|
|
85
85
|
i && ((c = m.current) == null || c.focus());
|
|
86
86
|
}, n), /* @__PURE__ */ t.createElement(Pe, {
|
|
@@ -92,7 +92,7 @@ const l = ({ children: e, className: a }) => {
|
|
|
92
92
|
"data-readonly": r || void 0
|
|
93
93
|
}, /* @__PURE__ */ t.createElement(ue, null), e);
|
|
94
94
|
}, w = ({ children: e, className: a, ...n }) => {
|
|
95
|
-
const { isForcedOpen: r } = n, { language: s } =
|
|
95
|
+
const { isForcedOpen: r } = n, { language: s } = z(), o = O(() => _e(s), [
|
|
96
96
|
s
|
|
97
97
|
]), i = u(e, w.Option) ?? /* @__PURE__ */ t.createElement(w.Option, null);
|
|
98
98
|
return /* @__PURE__ */ t.createElement(Ce, {
|
|
@@ -115,7 +115,7 @@ const l = ({ children: e, className: a }) => {
|
|
|
115
115
|
textValue: r
|
|
116
116
|
}, r);
|
|
117
117
|
};
|
|
118
|
-
C.Label =
|
|
118
|
+
C.Label = ve;
|
|
119
119
|
C.Trigger = ke;
|
|
120
120
|
C.Options = w;
|
|
121
121
|
w.Option = He;
|
|
@@ -132,12 +132,12 @@ const A = ({ children: e, className: a }) => {
|
|
|
132
132
|
isReadOnly: r,
|
|
133
133
|
isInvalid: m
|
|
134
134
|
}, p));
|
|
135
|
-
}, we = ({ className: e }) => /* @__PURE__ */ t.createElement(
|
|
135
|
+
}, we = ({ className: e }) => /* @__PURE__ */ t.createElement($, {
|
|
136
136
|
datePart: d.DAY,
|
|
137
137
|
className: e
|
|
138
|
-
}),
|
|
138
|
+
}), xe = ({ className: e }) => {
|
|
139
139
|
const { id: a, hidePlaceholder: n } = f(), { inputId: r } = T(d.DAY), { isFirstPart: s } = F(d.DAY), { t: o } = L(), i = U(null), m = n ? void 0 : o("field.date.placeholder.day");
|
|
140
|
-
return
|
|
140
|
+
return G(() => {
|
|
141
141
|
var c;
|
|
142
142
|
s && ((c = i.current) == null || c.focus());
|
|
143
143
|
}, a), /* @__PURE__ */ t.createElement(J, {
|
|
@@ -151,7 +151,7 @@ const A = ({ children: e, className: a }) => {
|
|
|
151
151
|
});
|
|
152
152
|
};
|
|
153
153
|
A.Label = we;
|
|
154
|
-
A.Input =
|
|
154
|
+
A.Input = xe;
|
|
155
155
|
const V = ({ children: e, className: a }) => {
|
|
156
156
|
const { disabled: n, readOnly: r, showDateLabels: s } = f(), { labelId: o } = T(d.YEAR), { partValue: i, partError: m, onPartChange: c } = F(d.YEAR), b = u(e, V.Label), p = u(e, V.Input);
|
|
157
157
|
return /* @__PURE__ */ t.createElement("div", {
|
|
@@ -165,12 +165,12 @@ const V = ({ children: e, className: a }) => {
|
|
|
165
165
|
isReadOnly: r,
|
|
166
166
|
isInvalid: m
|
|
167
167
|
}, p));
|
|
168
|
-
},
|
|
168
|
+
}, Be = ({ className: e }) => /* @__PURE__ */ t.createElement($, {
|
|
169
169
|
datePart: d.YEAR,
|
|
170
170
|
className: e
|
|
171
171
|
}), Ue = ({ className: e }) => {
|
|
172
172
|
const { id: a, hidePlaceholder: n } = f(), { inputId: r } = T(d.YEAR), { isFirstPart: s } = F(d.YEAR), { t: o } = L(), i = U(null), m = n ? void 0 : o("field.date.placeholder.year");
|
|
173
|
-
return
|
|
173
|
+
return G(() => {
|
|
174
174
|
var c;
|
|
175
175
|
s && ((c = i.current) == null || c.focus());
|
|
176
176
|
}, a), /* @__PURE__ */ t.createElement(J, {
|
|
@@ -183,7 +183,7 @@ const V = ({ children: e, className: a }) => {
|
|
|
183
183
|
"data-hook": d.YEAR
|
|
184
184
|
});
|
|
185
185
|
};
|
|
186
|
-
V.Label =
|
|
186
|
+
V.Label = Be;
|
|
187
187
|
V.Input = Ue;
|
|
188
188
|
const I = ({ children: e, className: a }) => {
|
|
189
189
|
const { disabled: n, readOnly: r, use24HourFormat: s, showDateLabels: o } = f(), { labelId: i } = T("time"), { partValue: m, partError: c, onPartChange: b } = F("time"), p = u(e, I.Label), _ = u(e, I.Input);
|
|
@@ -199,14 +199,14 @@ const I = ({ children: e, className: a }) => {
|
|
|
199
199
|
isInvalid: c,
|
|
200
200
|
hourCycle: s ? 24 : 12
|
|
201
201
|
}, _));
|
|
202
|
-
},
|
|
202
|
+
}, ze = ({ className: e }) => {
|
|
203
203
|
const { inputId: a, labelId: n } = T("time"), { t: r } = L(), s = r("field.date.label.time");
|
|
204
204
|
return /* @__PURE__ */ t.createElement("label", {
|
|
205
205
|
id: n,
|
|
206
206
|
htmlFor: a,
|
|
207
207
|
className: e
|
|
208
208
|
}, s);
|
|
209
|
-
},
|
|
209
|
+
}, Ge = ({ children: e, className: a }) => {
|
|
210
210
|
const { hidePlaceholder: n } = f(), r = u(e, I.Hour), s = u(e, I.Minute), o = u(e, I.Period);
|
|
211
211
|
return /* @__PURE__ */ t.createElement(pe, {
|
|
212
212
|
className: a,
|
|
@@ -227,34 +227,34 @@ const I = ({ children: e, className: a }) => {
|
|
|
227
227
|
segment: i
|
|
228
228
|
}) || /* @__PURE__ */ t.createElement(t.Fragment, null);
|
|
229
229
|
case "literal":
|
|
230
|
-
return /* @__PURE__ */ t.createElement(
|
|
230
|
+
return /* @__PURE__ */ t.createElement(x, {
|
|
231
231
|
segment: i
|
|
232
232
|
});
|
|
233
233
|
default:
|
|
234
234
|
return /* @__PURE__ */ t.createElement(t.Fragment, null);
|
|
235
235
|
}
|
|
236
236
|
});
|
|
237
|
-
},
|
|
237
|
+
}, $e = ({ className: e, ...a }) => {
|
|
238
238
|
const { hidePlaceholder: n } = f(), { segment: r } = a, { t: s } = L(), o = n ? void 0 : s("field.date.placeholder.hour");
|
|
239
|
-
return /* @__PURE__ */ t.createElement(
|
|
239
|
+
return /* @__PURE__ */ t.createElement(x, {
|
|
240
240
|
segment: r,
|
|
241
241
|
className: e,
|
|
242
242
|
...o && {
|
|
243
243
|
placeholder: o
|
|
244
244
|
}
|
|
245
245
|
});
|
|
246
|
-
},
|
|
246
|
+
}, qe = ({ className: e, ...a }) => {
|
|
247
247
|
const { hidePlaceholder: n } = f(), { segment: r } = a, { t: s } = L(), o = n ? void 0 : s("field.date.placeholder.minute");
|
|
248
|
-
return /* @__PURE__ */ t.createElement(
|
|
248
|
+
return /* @__PURE__ */ t.createElement(x, {
|
|
249
249
|
segment: r,
|
|
250
250
|
className: e,
|
|
251
251
|
...o && {
|
|
252
252
|
placeholder: o
|
|
253
253
|
}
|
|
254
254
|
});
|
|
255
|
-
},
|
|
255
|
+
}, je = ({ className: e, ...a }) => {
|
|
256
256
|
const { hidePlaceholder: n } = f(), { segment: r } = a, { t: s } = L(), o = oe(Ee), i = n ? void 0 : s("field.date.placeholder.period"), m = () => o == null ? void 0 : o.increment("dayPeriod");
|
|
257
|
-
return /* @__PURE__ */ t.createElement(
|
|
257
|
+
return /* @__PURE__ */ t.createElement(x, {
|
|
258
258
|
segment: r,
|
|
259
259
|
className: e,
|
|
260
260
|
onClick: m,
|
|
@@ -263,11 +263,11 @@ const I = ({ children: e, className: a }) => {
|
|
|
263
263
|
}
|
|
264
264
|
});
|
|
265
265
|
};
|
|
266
|
-
I.Label =
|
|
267
|
-
I.Input =
|
|
268
|
-
I.Hour =
|
|
269
|
-
I.Minute =
|
|
270
|
-
I.Period =
|
|
266
|
+
I.Label = ze;
|
|
267
|
+
I.Input = Ge;
|
|
268
|
+
I.Hour = $e;
|
|
269
|
+
I.Minute = qe;
|
|
270
|
+
I.Period = je;
|
|
271
271
|
l.Label = Oe;
|
|
272
272
|
l.Month = C;
|
|
273
273
|
l.Day = A;
|
|
@@ -289,23 +289,23 @@ function T(e) {
|
|
|
289
289
|
]);
|
|
290
290
|
}
|
|
291
291
|
function F(e) {
|
|
292
|
-
const { value: a, onChange: n, hasError: r = !1 } = f(), { regionalFormat: s } =
|
|
292
|
+
const { value: a, onChange: n, hasError: r = !1 } = f(), { regionalFormat: s } = z(), [o, i] = O(() => j(a ?? ""), [
|
|
293
293
|
a
|
|
294
294
|
]), m = O(() => fe(r, a ?? ""), [
|
|
295
295
|
a,
|
|
296
296
|
r
|
|
297
297
|
]), c = O(() => he(o), [
|
|
298
298
|
o
|
|
299
|
-
]), b = O(() =>
|
|
299
|
+
]), b = O(() => Ke(i), [
|
|
300
300
|
i
|
|
301
|
-
]), p = H((
|
|
302
|
-
const
|
|
301
|
+
]), p = H((D) => {
|
|
302
|
+
const N = Qe(D), y = K(o, N);
|
|
303
303
|
n(y);
|
|
304
304
|
}, [
|
|
305
305
|
n,
|
|
306
306
|
o
|
|
307
|
-
]), _ = H((
|
|
308
|
-
const [,
|
|
307
|
+
]), _ = H((D) => {
|
|
308
|
+
const [, N] = j(a ?? ""), y = be(D, e, c), S = K(y, N);
|
|
309
309
|
n(S);
|
|
310
310
|
}, [
|
|
311
311
|
n,
|
|
@@ -328,7 +328,7 @@ function F(e) {
|
|
|
328
328
|
isFirstPart: M
|
|
329
329
|
};
|
|
330
330
|
}
|
|
331
|
-
function
|
|
331
|
+
function $({ datePart: e, className: a }) {
|
|
332
332
|
const { inputId: n, labelId: r } = T(e), { t: s } = L(), o = `field.date.label.${e.toLowerCase()}`, i = s(o);
|
|
333
333
|
return /* @__PURE__ */ t.createElement("label", {
|
|
334
334
|
id: r,
|
|
@@ -336,7 +336,7 @@ function q({ datePart: e, className: a }) {
|
|
|
336
336
|
className: a
|
|
337
337
|
}, i);
|
|
338
338
|
}
|
|
339
|
-
function
|
|
339
|
+
function Ke(e) {
|
|
340
340
|
if (!e)
|
|
341
341
|
return null;
|
|
342
342
|
try {
|
|
@@ -373,7 +373,7 @@ const Je = "_fields_1meki_1", We = "_month_1meki_10", Xe = "_day_1meki_11", Ze =
|
|
|
373
373
|
content: e,
|
|
374
374
|
locale: a
|
|
375
375
|
}), Mt = () => {
|
|
376
|
-
const e = Se(E.monthTrigger), a = Ae(E.monthOption, k), n =
|
|
376
|
+
const e = Se(E.monthTrigger), a = Ae(E.monthOption, k), n = B(E.dayInput), r = B(E.yearInput), s = B(E.time);
|
|
377
377
|
return /* @__PURE__ */ t.createElement(l, {
|
|
378
378
|
className: E.fields
|
|
379
379
|
}, /* @__PURE__ */ t.createElement(l.Label, {
|
|
@@ -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(
|
|
421
|
-
}, /* @__PURE__ */ t.createElement(
|
|
422
|
-
className: h(
|
|
420
|
+
className: h(De, g.error)
|
|
421
|
+
}, /* @__PURE__ */ t.createElement(Ye, null), /* @__PURE__ */ t.createElement(l.Error.Text, null)), /* @__PURE__ */ t.createElement(l.Description, {
|
|
422
|
+
className: h(Ne, g.description)
|
|
423
423
|
}, ct));
|
|
424
424
|
};
|
|
425
425
|
export {
|
package/dist/component/{dext-checkbox-group-rac-ZNKzyWda.js → dext-checkbox-group-rac-DI26D3eR.js}
RENAMED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import o from "react";
|
|
2
|
-
import {
|
|
3
|
-
import { C as p } from "./checkbox-group-field-rac-
|
|
2
|
+
import { bj as e, al as t } from "./form-Mla9_phC.js";
|
|
3
|
+
import { C as p } from "./checkbox-group-field-rac-M1l5h3ii.js";
|
|
4
4
|
import { D as s } from "./default-limits-D7qVv_Hv.js";
|
|
5
|
-
const
|
|
5
|
+
const n = () => {
|
|
6
6
|
const r = {
|
|
7
7
|
...e(),
|
|
8
8
|
otherInputCharacterLimit: s
|
|
@@ -14,5 +14,5 @@ const C = () => {
|
|
|
14
14
|
}, /* @__PURE__ */ o.createElement(p, null));
|
|
15
15
|
};
|
|
16
16
|
export {
|
|
17
|
-
|
|
17
|
+
n as DextCheckboxGroupRAC
|
|
18
18
|
};
|
package/dist/component/{dext-radio-group-rac-BTWnIvwW.js → dext-radio-group-rac-ad6j8I4s.js}
RENAMED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import r from "react";
|
|
2
|
-
import {
|
|
3
|
-
import { R as p } from "./radio-group-field-rac-
|
|
2
|
+
import { bj as e, al as t } from "./form-Mla9_phC.js";
|
|
3
|
+
import { R as p } from "./radio-group-field-rac-0dJHtf3G.js";
|
|
4
4
|
import { a } from "./default-limits-D7qVv_Hv.js";
|
|
5
|
-
const
|
|
5
|
+
const R = () => {
|
|
6
6
|
const o = {
|
|
7
7
|
...e(),
|
|
8
8
|
otherInputCharacterLimit: a
|
|
@@ -14,5 +14,5 @@ const l = () => {
|
|
|
14
14
|
}, /* @__PURE__ */ r.createElement(p, null));
|
|
15
15
|
};
|
|
16
16
|
export {
|
|
17
|
-
|
|
17
|
+
R as DextRadioGroupRAC
|
|
18
18
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import r from "react";
|
|
2
|
-
import {
|
|
3
|
-
import { T as s } from "./tags-field-rac-
|
|
2
|
+
import { bj as e, al as o } from "./form-Mla9_phC.js";
|
|
3
|
+
import { T as s } from "./tags-field-rac-Di1aK4E2.js";
|
|
4
4
|
import { b as a } from "./default-limits-D7qVv_Hv.js";
|
|
5
|
-
const
|
|
5
|
+
const T = () => {
|
|
6
6
|
const t = {
|
|
7
7
|
...e(),
|
|
8
8
|
otherInputCharacterLimit: a
|
|
@@ -14,5 +14,5 @@ const l = () => {
|
|
|
14
14
|
}, /* @__PURE__ */ r.createElement(s, null));
|
|
15
15
|
};
|
|
16
16
|
export {
|
|
17
|
-
|
|
17
|
+
T as DextTagsRAC
|
|
18
18
|
};
|