@wix/form-elements 1.133.0 → 1.135.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-D0mwr3TL.js → appointment-rac-CYCddSl9.js} +246 -246
- package/dist/component/{bookings-address-rac-BEnmwXax.js → bookings-address-rac-BK-sU26E.js} +1 -1
- package/dist/component/{bookings-email-rac-D56j9PXc.js → bookings-email-rac-DZ3HVkyn.js} +1 -1
- package/dist/component/{bookings-first-name-rac-xu3S-ih_.js → bookings-first-name-rac-Ci4PHqOr.js} +1 -1
- package/dist/component/{bookings-header-rac-hfBabv7v.js → bookings-header-rac-C_MYNrDA.js} +1 -1
- package/dist/component/{bookings-last-name-rac-6bMvN0Cm.js → bookings-last-name-rac-CdNlwyjm.js} +1 -1
- package/dist/component/{bookings-login-bar-rac-DE70Omwf.js → bookings-login-bar-rac-CP2JcaVr.js} +17 -17
- package/dist/component/{bookings-phone-rac-D_EHRAiU.js → bookings-phone-rac-BV8sqxil.js} +1 -1
- package/dist/component/{bookings-rich-text-rac-BxgI9Zt6.js → bookings-rich-text-rac-DQtcYRsh.js} +1 -1
- package/dist/component/{calendar.module-DnhTT4QT.js → calendar.module-CKCBG_Pg.js} +11 -11
- package/dist/component/{checkbox-field-rac-BLDUOAXM.js → checkbox-field-rac-DPNqHTNc.js} +26 -25
- package/dist/component/{checkbox-group-field-headless-CugSJIBp.js → checkbox-group-field-headless-DhhynlgN.js} +32 -31
- package/dist/component/{checkbox-group-field-rac-D4m9SmRX.js → checkbox-group-field-rac-B3zOW7qr.js} +6 -6
- package/dist/component/{checkbox-group-rac-BYqEsCwa.js → checkbox-group-rac-Qy03hO31.js} +1 -1
- package/dist/component/{checkbox-indicator-module-classes-zXKP5rD4.js → checkbox-indicator-module-classes-6173wvuW.js} +1 -1
- package/dist/component/{checkbox-rac-DkIBUAN7.js → checkbox-rac-DYr3RaHj.js} +1 -1
- package/dist/component/{contacts-address-rac-D1tzbiTM.js → contacts-address-rac-Bi-etpfX.js} +1 -1
- package/dist/component/{contacts-birthdate-rac-DO-1xG0u.js → contacts-birthdate-rac-D2LLjX9P.js} +1 -1
- package/dist/component/{contacts-company-rac-CzJK3YIo.js → contacts-company-rac-C9ImoG_i.js} +1 -1
- package/dist/component/{contacts-email-rac-DLvMErBI.js → contacts-email-rac-DeGblC9V.js} +1 -1
- package/dist/component/{contacts-first-name-rac-3RcSXL0h.js → contacts-first-name-rac-Xk3m57jK.js} +1 -1
- package/dist/component/{contacts-last-name-rac-BYoSi_QX.js → contacts-last-name-rac-BKE-1IYB.js} +1 -1
- package/dist/component/{contacts-phone-rac-DMYn0orB.js → contacts-phone-rac-CHmtTutD.js} +1 -1
- package/dist/component/{contacts-position-rac-K1R6ihXo.js → contacts-position-rac-BS3TySLG.js} +1 -1
- package/dist/component/{contacts-subscribe-rac-DsWNSH6t.js → contacts-subscribe-rac--fpczJiB.js} +1 -1
- package/dist/component/{contacts-tax-id-rac-D7NjPiRf.js → contacts-tax-id-rac-CHkn8vkL.js} +1 -1
- package/dist/component/{date-availability-D3n6-g3h.js → date-availability-70Vb-dlb.js} +1 -1
- package/dist/component/{date-input-field-rac-SyAmInlu.js → date-input-field-rac-BlkYEYM_.js} +60 -60
- package/dist/component/{date-input-rac-BQNOsWz1.js → date-input-rac-JdNFk07Q.js} +1 -1
- package/dist/component/{date-picker-field-rac-DO1epod7.js → date-picker-field-rac-DHu11mY1.js} +63 -63
- package/dist/component/{date-picker-rac-DQElftUu.js → date-picker-rac-CZtWhFzM.js} +1 -1
- package/dist/component/{date-time-input-field-rac-CV5wZSXO.js → date-time-input-field-rac-cHAALqS5.js} +7 -7
- package/dist/component/{date-time-input-rac-DvHwpjnk.js → date-time-input-rac-Dz7GfoJO.js} +1 -1
- package/dist/component/{dext-checkbox-group-rac-BfcKoslb.js → dext-checkbox-group-rac-ZNKzyWda.js} +2 -2
- package/dist/component/{dext-checkbox-rac-DhadtXb5.js → dext-checkbox-rac-DfPFXrKu.js} +1 -1
- package/dist/component/{dext-date-picker-rac-0Dmo3mrG.js → dext-date-picker-rac-BPbl65qK.js} +1 -1
- package/dist/component/{dext-date-time-input-rac-Cnh7Aqiq.js → dext-date-time-input-rac-D5ywbLtW.js} +1 -1
- package/dist/component/{dext-dropdown-rac-CajXcYsB.js → dext-dropdown-rac-BuVsPZOU.js} +1 -1
- package/dist/component/{dext-email-rac-DynJaiZt.js → dext-email-rac-DRjt3lqT.js} +1 -1
- package/dist/component/{dext-number-input-rac-LmTKwb80.js → dext-number-input-rac-Bzrl87fo.js} +1 -1
- package/dist/component/{dext-phone-rac-Cw2roq1_.js → dext-phone-rac-LibvQb8h.js} +1 -1
- package/dist/component/{dext-radio-group-rac-CaNZJrkc.js → dext-radio-group-rac-BTWnIvwW.js} +2 -2
- package/dist/component/{dext-rating-input-rac-CAL1jb0q.js → dext-rating-input-rac-DTlnOcC8.js} +1 -1
- package/dist/component/{dext-tags-rac-BOp_amVK.js → dext-tags-rac-YdeijviH.js} +2 -2
- package/dist/component/{dext-text-area-rac-6DYTHIeh.js → dext-text-area-rac-CdCzQYey.js} +1 -1
- package/dist/component/{dext-text-input-rac-CDWthvV3.js → dext-text-input-rac-B28RTezm.js} +1 -1
- package/dist/component/{dext-url-input-rac-CsS4NPYO.js → dext-url-input-rac-B0ZBPbAb.js} +1 -1
- package/dist/component/{donation-rac-B7lFkotu.js → donation-rac-_0cwsIAq.js} +7 -10
- package/dist/component/{dropdown-field-headless-ajQghLaj.js → dropdown-field-headless-DVZnbZAM.js} +5 -5
- package/dist/component/{dropdown-field-rac-Bf5LQqSL.js → dropdown-field-rac-DWCj_Grt.js} +5 -5
- package/dist/component/{dropdown-rac-CJmA_ePl.js → dropdown-rac-Bpo-F5sc.js} +1 -1
- package/dist/component/{ecom-address-rac-B49ZP2qc.js → ecom-address-rac-vJ0ku_Ld.js} +1 -1
- package/dist/component/{ecom-subscription-checkbox-rac-C8qImtxo.js → ecom-subscription-checkbox-rac-DgVReM6c.js} +2 -2
- package/dist/component/{email-input-field-rac-B_bEWp5N.js → email-input-field-rac-BXJGOBg-.js} +4 -4
- package/dist/component/{events-repeater-rac-DXxqmIBX.js → events-repeater-rac-CrXE_ppd.js} +48 -47
- package/dist/component/{events-rsvp-rac-BaJQLSv3.js → events-rsvp-rac-BGg3P1CQ.js} +4 -4
- package/dist/component/{field-error-headless-BxEFPwKI.js → field-error-headless-C3eOy1_l.js} +1 -1
- package/dist/component/{field-label-headless-5mewgrhq.js → field-label-headless-BMmR_IeF.js} +1 -1
- package/dist/component/field-rac.module-DfEb7pBp.js +25 -0
- package/dist/component/file-upload-rac-Umix6wXx.js +566 -0
- package/dist/component/{fixed-payment-rac-S68bqvbB.js → fixed-payment-rac-CfIJCBjb.js} +4 -4
- package/dist/component/{form-CPY-PtxT.js → form-CYPNOMwk.js} +1685 -1641
- package/dist/component/form.css +1 -1
- package/dist/component/form.js +1 -1
- package/dist/component/{header-field-rac-r6dYbnvA.js → header-field-rac-oxHUTKYV.js} +2 -2
- package/dist/component/{header-rac-C9gaKsaE.js → header-rac-DTGV923r.js} +1 -1
- package/dist/component/{image-choice-rac-BbES5dAK.js → image-choice-rac-B9JGl_h7.js} +42 -45
- package/dist/component/{index-o-TpCHqo.js → index-BOKSOnDK.js} +4 -4
- package/dist/component/{index-C6zuIVeJ.js → index-C_ktc-yO.js} +2 -2
- package/dist/component/{isObjectLike-BSRiBVs9.js → isObjectLike-Di8V7txC.js} +1 -1
- package/dist/component/{multiline-address-field-rac-BfVIiFyM.js → multiline-address-field-rac-zgmTbXlg.js} +8 -8
- package/dist/component/{multiline-address-rac-BOKBExhi.js → multiline-address-rac-Cyb3dvBf.js} +1 -1
- package/dist/component/{number-input-field-rac-BRKFm8aA.js → number-input-field-rac-DquqqRy_.js} +5 -5
- package/dist/component/{number-input-rac-BNbCCb-g.js → number-input-rac-G2DdTbk2.js} +1 -1
- package/dist/component/{password-rac-BygVJf7f.js → password-rac-DJCU0F38.js} +5 -5
- package/dist/component/{payment-input-rac-CoMbHcHG.js → payment-input-rac-DlIYza6N.js} +5 -5
- package/dist/component/{phone-input-field-rac-dFjxptEr.js → phone-input-field-rac-B10TInMa.js} +28 -29
- package/dist/component/{phone-rac-Dup3AP9J.js → phone-rac-BuyttJpM.js} +1 -1
- package/dist/component/{product-list-rac-B62mNB_W.js → product-list-rac-WrSJwQ_g.js} +69 -68
- package/dist/component/{quiz-radio-group-rac-DPMhDtr7.js → quiz-radio-group-rac-CHxZ_pK_.js} +1 -1
- package/dist/component/{radio-button-module-classes-BMvPai_6.js → radio-button-module-classes-DjJU-8ZB.js} +18 -17
- package/dist/component/{radio-group-field-rac-DPt2Zl4G.js → radio-group-field-rac-BImiqcKa.js} +5 -5
- package/dist/component/{radio-group-rac-BZyGqFzr.js → radio-group-rac-CDkJeGpN.js} +1 -1
- package/dist/component/{rating-input-field-rac-C3E0KzV-.js → rating-input-field-rac-Dsr_S5qN.js} +35 -33
- package/dist/component/{rating-input-rac-BKLz4l_D.js → rating-input-rac-BJUW8U93.js} +1 -1
- package/dist/component/{rich-content-rac.module-CQ1qa_zz.js → rich-content-rac.module-BfQJqA-x.js} +1 -1
- package/dist/component/{rich-text-field-rac-BfdA5KNz.js → rich-text-field-rac-DIuZbu_u.js} +2 -2
- package/dist/component/{rich-text-rac-BFbhfFuF.js → rich-text-rac-C39fpEiP.js} +1 -1
- package/dist/component/{service-dropdown-rac-VulpHBki.js → service-dropdown-rac-Bc9hEpx3.js} +6 -6
- package/dist/component/{services-multi-choice-rac-CIx5UpfD.js → services-multi-choice-rac-GVb4qA7g.js} +7 -7
- package/dist/component/{signature-rac-BdxMBfl9.js → signature-rac-nC5pr6nB.js} +269 -264
- package/dist/component/{submit-button-rac-CkuWGEyL.js → submit-button-rac-eUjgrx9Q.js} +2 -2
- package/dist/component/{tags-field-rac-DKo_Yb5i.js → tags-field-rac-zv30chSd.js} +54 -57
- package/dist/component/{tags-rac-BimVd3ym.js → tags-rac-PnS2SxVP.js} +1 -1
- package/dist/component/{text-area-field-rac-DEiLtCnb.js → text-area-field-rac-DLeOMD4g.js} +5 -5
- package/dist/component/{text-area-rac-CHZtsq0f.js → text-area-rac-jZ_mh45C.js} +1 -1
- package/dist/component/{text-input-field-rac-CSHvUtRG.js → text-input-field-rac-DifV7Erd.js} +4 -4
- package/dist/component/{text-input-headless-BYcExFPS.js → text-input-headless-DhVEjorY.js} +3 -3
- package/dist/component/{text-input-rac-D-R9btYo.js → text-input-rac-Ce4qKN9M.js} +1 -1
- package/dist/component/{time-input-rac-wkHemVzj.js → time-input-rac-1kW3aDIo.js} +5 -5
- package/dist/component/{url-input-field-rac-KJEcLyFk.js → url-input-field-rac-D9xXAQCq.js} +5 -5
- package/dist/component/{url-input-rac-JFfEH389.js → url-input-rac-SaAybDdN.js} +1 -1
- package/dist/component/{use-dropdown-option-class-name-BetaTWbW.js → use-dropdown-option-class-name-C_MO_0JS.js} +3 -3
- package/dist/component/{use-dropdown-trigger-class-name-C0ffAjFn.js → use-dropdown-trigger-class-name-D7EMiD-M.js} +2 -2
- package/dist/component/use-element-state-class-name-DZFi3Z42.js +23 -0
- package/dist/component/use-hoverable-input-class-name-JAZ1mif0.js +25 -0
- package/dist/component/{use-service-options-base-q0JTA7UI.js → use-service-options-base-ZX4iaxzr.js} +1 -1
- package/dist/component/use-text-input-class-name-XFjQX8q1.js +6 -0
- package/package.json +2 -2
- package/dist/component/field-rac.module-BGN-O8tV.js +0 -25
- package/dist/component/file-upload-rac-D9Z1Cumr.js +0 -562
- package/dist/component/use-element-state-class-name-BOks3she.js +0 -20
- package/dist/component/use-hoverable-input-class-name-jxtCw16L.js +0 -23
- package/dist/component/use-text-input-class-name-CTa0bC4T.js +0 -6
package/dist/component/{date-input-field-rac-SyAmInlu.js → date-input-field-rac-BlkYEYM_.js}
RENAMED
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import { RicosViewer as ee } from "@wix/ricos/viewer";
|
|
2
2
|
import h from "classnames";
|
|
3
|
-
import t, { useMemo as
|
|
3
|
+
import t, { useMemo as O, useState as U, useCallback as v, useRef as w } from "react";
|
|
4
4
|
import { UNSAFE_PortalProvider as te } from "react-aria";
|
|
5
|
-
import { ListBoxItem as ae, Select as ne, TextField as
|
|
6
|
-
import { bh as
|
|
7
|
-
import { f as u, a as
|
|
5
|
+
import { ListBoxItem as ae, Select as ne, TextField as $, SelectValue as re, Input as q } from "react-aria-components";
|
|
6
|
+
import { bh as I, be as z, b9 as V, aO as K, a$ as j, aB as m, br as S, aI as se, aP as oe, b6 as le, bj as B, I as P, U as ce, K as ie, v as me, p as de } from "./form-CYPNOMwk.js";
|
|
7
|
+
import { f as u, a as H } from "./find-child-C60k4CxG.js";
|
|
8
8
|
import { g as ue } from "./helpers-HmkkXrh2.js";
|
|
9
|
-
import { D as pe, E as Ee } from "./field-error-headless-
|
|
10
|
-
import { L as fe } from "./field-label-headless-
|
|
9
|
+
import { D as pe, E as Ee } from "./field-error-headless-C3eOy1_l.js";
|
|
10
|
+
import { L as fe } from "./field-label-headless-BMmR_IeF.js";
|
|
11
11
|
import { F as be } from "./fieldset-headless-CD3fds9J.js";
|
|
12
|
-
import { N as he, E as
|
|
13
|
-
import { a as
|
|
14
|
-
import { V as
|
|
12
|
+
import { N as he, E as ye, S as Ie } from "./non-modal-popover-D-u13tmp.js";
|
|
13
|
+
import { a as De, u as ge } from "./use-dropdown-trigger-class-name-D7EMiD-M.js";
|
|
14
|
+
import { V as Oe, u as Ne } from "./use-dropdown-option-class-name-C_MO_0JS.js";
|
|
15
15
|
import { C as Le } from "./chevron-down-icon-CcpVm6B-.js";
|
|
16
16
|
import { E as _e } from "./error-icon-hZxQ6DEy.js";
|
|
17
17
|
import { H as Ce } from "./custom-focus-class-_483Pkwp.js";
|
|
18
|
-
import { s as E } from "./field-rac.module-
|
|
19
|
-
import { u as
|
|
18
|
+
import { s as E } from "./field-rac.module-DfEb7pBp.js";
|
|
19
|
+
import { u as k } from "./use-text-input-class-name-XFjQX8q1.js";
|
|
20
20
|
const n = ({ children: e, className: a }) => {
|
|
21
|
-
const { id: r, required: s, onBlur: o, onFocus: l, FieldLayout: c } =
|
|
21
|
+
const { id: r, required: s, onBlur: o, onFocus: l, FieldLayout: c } = I(), { inputId: d, labelId: i, ariaDescribedBy: f } = z(), { regionalFormat: p } = V(), b = O(() => K(p).filter(j).map((Y) => Y.toUpperCase()), [
|
|
22
22
|
p
|
|
23
23
|
]), L = u(e, n.Label), T = u(e, n.Description), _ = u(e, n.Error), C = {
|
|
24
24
|
[m.MONTH]: u(e, n.Month),
|
|
@@ -27,7 +27,7 @@ const n = ({ children: e, className: a }) => {
|
|
|
27
27
|
};
|
|
28
28
|
return /* @__PURE__ */ t.createElement(c, {
|
|
29
29
|
fieldId: r,
|
|
30
|
-
renderLabel: () =>
|
|
30
|
+
renderLabel: () => H(L, {
|
|
31
31
|
as: "div"
|
|
32
32
|
}),
|
|
33
33
|
renderInput: () => /* @__PURE__ */ t.createElement(be, {
|
|
@@ -41,8 +41,8 @@ const n = ({ children: e, className: a }) => {
|
|
|
41
41
|
}, C[b[0]], C[b[1]], C[b[2]]),
|
|
42
42
|
renderDescription: () => /* @__PURE__ */ t.createElement(t.Fragment, null, _, T)
|
|
43
43
|
});
|
|
44
|
-
},
|
|
45
|
-
const { id: r, disabled: s, readOnly: o, showDateLabels: l, hidePlaceholder: c } =
|
|
44
|
+
}, D = ({ children: e, className: a }) => {
|
|
45
|
+
const { id: r, disabled: s, readOnly: o, showDateLabels: l, hidePlaceholder: c } = I(), { labelId: d } = g(m.MONTH), { partValue: i, partError: f, onPartChange: p } = N(m.MONTH), { t: b } = S(), [L, T] = U(!1), _ = De(r), [C, Y] = U(null), Q = c ? ye : b("field.date.placeholder.month"), G = v((R) => {
|
|
46
46
|
o || p(typeof R == "string" ? R : "");
|
|
47
47
|
}, [
|
|
48
48
|
p,
|
|
@@ -51,7 +51,7 @@ const n = ({ children: e, className: a }) => {
|
|
|
51
51
|
T(R && !o);
|
|
52
52
|
}, [
|
|
53
53
|
o
|
|
54
|
-
]), W = u(e,
|
|
54
|
+
]), W = u(e, D.Label), X = u(e, D.Trigger), Z = u(e, D.Options);
|
|
55
55
|
return /* @__PURE__ */ t.createElement("div", {
|
|
56
56
|
className: a,
|
|
57
57
|
"data-date-field": !0
|
|
@@ -71,18 +71,18 @@ const n = ({ children: e, className: a }) => {
|
|
|
71
71
|
placeholder: Q,
|
|
72
72
|
isOpen: _ || L,
|
|
73
73
|
onOpenChange: _ ? void 0 : J
|
|
74
|
-
}, X,
|
|
74
|
+
}, X, H(Z, {
|
|
75
75
|
isForcedOpen: _
|
|
76
76
|
}))));
|
|
77
|
-
}, Fe = ({ className: e }) => /* @__PURE__ */ t.createElement(
|
|
77
|
+
}, Fe = ({ className: e }) => /* @__PURE__ */ t.createElement(x, {
|
|
78
78
|
datePart: m.MONTH,
|
|
79
79
|
className: e
|
|
80
80
|
}), Me = ({ children: e, className: a }) => {
|
|
81
|
-
const { id: r, readOnly: s } =
|
|
82
|
-
return
|
|
81
|
+
const { id: r, readOnly: s } = I(), { inputId: o } = g(m.MONTH), { partError: l, isFirstPart: c } = N(m.MONTH), d = w(null);
|
|
82
|
+
return B(() => {
|
|
83
83
|
var i;
|
|
84
84
|
c && ((i = d.current) == null || i.focus());
|
|
85
|
-
}, r), /* @__PURE__ */ t.createElement(
|
|
85
|
+
}, r), /* @__PURE__ */ t.createElement(Ie, {
|
|
86
86
|
ref: d,
|
|
87
87
|
id: o,
|
|
88
88
|
className: a,
|
|
@@ -91,17 +91,17 @@ const n = ({ children: e, className: a }) => {
|
|
|
91
91
|
"data-readonly": s || void 0
|
|
92
92
|
}, /* @__PURE__ */ t.createElement(re, null), e);
|
|
93
93
|
}, A = ({ children: e, className: a, ...r }) => {
|
|
94
|
-
const { isForcedOpen: s } = r, { language: o } = V(), l =
|
|
94
|
+
const { isForcedOpen: s } = r, { language: o } = V(), l = O(() => ue(o), [
|
|
95
95
|
o
|
|
96
96
|
]), c = u(e, A.Option) ?? /* @__PURE__ */ t.createElement(A.Option, null);
|
|
97
97
|
return /* @__PURE__ */ t.createElement(he, {
|
|
98
98
|
className: a,
|
|
99
99
|
containerPadding: 0,
|
|
100
100
|
offset: 0
|
|
101
|
-
}, /* @__PURE__ */ t.createElement(
|
|
101
|
+
}, /* @__PURE__ */ t.createElement(Oe, {
|
|
102
102
|
isForcedOpen: s,
|
|
103
103
|
autoFocus: s ? !1 : void 0
|
|
104
|
-
}, l.map((d, i) =>
|
|
104
|
+
}, l.map((d, i) => H(c, {
|
|
105
105
|
key: String(i + 1),
|
|
106
106
|
value: String(i + 1),
|
|
107
107
|
label: d
|
|
@@ -114,16 +114,16 @@ const n = ({ children: e, className: a }) => {
|
|
|
114
114
|
textValue: s
|
|
115
115
|
}, s);
|
|
116
116
|
};
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
117
|
+
D.Label = Fe;
|
|
118
|
+
D.Trigger = Me;
|
|
119
|
+
D.Options = A;
|
|
120
120
|
A.Option = Re;
|
|
121
121
|
const F = ({ children: e, className: a }) => {
|
|
122
|
-
const { disabled: r, readOnly: s, showDateLabels: o } =
|
|
122
|
+
const { disabled: r, readOnly: s, showDateLabels: o } = I(), { labelId: l } = g(m.DAY), { partValue: c, partError: d, onPartChange: i } = N(m.DAY), f = u(e, F.Label), p = u(e, F.Input);
|
|
123
123
|
return /* @__PURE__ */ t.createElement("div", {
|
|
124
124
|
className: a,
|
|
125
125
|
"data-date-field": !0
|
|
126
|
-
}, o && f, /* @__PURE__ */ t.createElement(
|
|
126
|
+
}, o && f, /* @__PURE__ */ t.createElement($, {
|
|
127
127
|
"aria-labelledby": o ? l : void 0,
|
|
128
128
|
value: c,
|
|
129
129
|
onChange: i,
|
|
@@ -131,15 +131,15 @@ const F = ({ children: e, className: a }) => {
|
|
|
131
131
|
isReadOnly: s,
|
|
132
132
|
isInvalid: d
|
|
133
133
|
}, p));
|
|
134
|
-
}, Pe = ({ className: e }) => /* @__PURE__ */ t.createElement(
|
|
134
|
+
}, Pe = ({ className: e }) => /* @__PURE__ */ t.createElement(x, {
|
|
135
135
|
datePart: m.DAY,
|
|
136
136
|
className: e
|
|
137
137
|
}), Ae = ({ className: e }) => {
|
|
138
|
-
const { id: a, hidePlaceholder: r } =
|
|
139
|
-
return
|
|
138
|
+
const { id: a, hidePlaceholder: r } = I(), { inputId: s } = g(m.DAY), { isFirstPart: o } = N(m.DAY), { t: l } = S(), c = w(null), d = r ? void 0 : l("field.date.placeholder.day");
|
|
139
|
+
return B(() => {
|
|
140
140
|
var i;
|
|
141
141
|
o && ((i = c.current) == null || i.focus());
|
|
142
|
-
}, a), /* @__PURE__ */ t.createElement(
|
|
142
|
+
}, a), /* @__PURE__ */ t.createElement(q, {
|
|
143
143
|
ref: c,
|
|
144
144
|
id: s,
|
|
145
145
|
className: e,
|
|
@@ -152,11 +152,11 @@ const F = ({ children: e, className: a }) => {
|
|
|
152
152
|
F.Label = Pe;
|
|
153
153
|
F.Input = Ae;
|
|
154
154
|
const M = ({ children: e, className: a }) => {
|
|
155
|
-
const { disabled: r, readOnly: s, showDateLabels: o } =
|
|
155
|
+
const { disabled: r, readOnly: s, showDateLabels: o } = I(), { labelId: l } = g(m.YEAR), { partValue: c, partError: d, onPartChange: i } = N(m.YEAR), f = u(e, M.Label), p = u(e, M.Input);
|
|
156
156
|
return /* @__PURE__ */ t.createElement("div", {
|
|
157
157
|
className: a,
|
|
158
158
|
"data-date-field": !0
|
|
159
|
-
}, o && f, /* @__PURE__ */ t.createElement(
|
|
159
|
+
}, o && f, /* @__PURE__ */ t.createElement($, {
|
|
160
160
|
"aria-labelledby": o ? l : void 0,
|
|
161
161
|
value: c,
|
|
162
162
|
onChange: i,
|
|
@@ -164,15 +164,15 @@ const M = ({ children: e, className: a }) => {
|
|
|
164
164
|
isReadOnly: s,
|
|
165
165
|
isInvalid: d
|
|
166
166
|
}, p));
|
|
167
|
-
}, Se = ({ className: e }) => /* @__PURE__ */ t.createElement(
|
|
167
|
+
}, Se = ({ className: e }) => /* @__PURE__ */ t.createElement(x, {
|
|
168
168
|
datePart: m.YEAR,
|
|
169
169
|
className: e
|
|
170
170
|
}), Te = ({ className: e }) => {
|
|
171
|
-
const { id: a, hidePlaceholder: r } =
|
|
172
|
-
return
|
|
171
|
+
const { id: a, hidePlaceholder: r } = I(), { inputId: s } = g(m.YEAR), { isFirstPart: o } = N(m.YEAR), { t: l } = S(), c = w(null), d = r ? void 0 : l("field.date.placeholder.year");
|
|
172
|
+
return B(() => {
|
|
173
173
|
var i;
|
|
174
174
|
o && ((i = c.current) == null || i.focus());
|
|
175
|
-
}, a), /* @__PURE__ */ t.createElement(
|
|
175
|
+
}, a), /* @__PURE__ */ t.createElement(q, {
|
|
176
176
|
ref: c,
|
|
177
177
|
id: s,
|
|
178
178
|
className: e,
|
|
@@ -185,14 +185,14 @@ const M = ({ children: e, className: a }) => {
|
|
|
185
185
|
M.Label = Se;
|
|
186
186
|
M.Input = Te;
|
|
187
187
|
n.Label = fe;
|
|
188
|
-
n.Month =
|
|
188
|
+
n.Month = D;
|
|
189
189
|
n.Day = F;
|
|
190
190
|
n.Year = M;
|
|
191
191
|
n.Description = pe;
|
|
192
192
|
n.Error = Ee;
|
|
193
|
-
function
|
|
194
|
-
const { inputId: a } =
|
|
195
|
-
return
|
|
193
|
+
function g(e) {
|
|
194
|
+
const { inputId: a } = z();
|
|
195
|
+
return O(() => {
|
|
196
196
|
const r = e.toLowerCase();
|
|
197
197
|
return {
|
|
198
198
|
inputId: `${a}-${r}-input`,
|
|
@@ -204,9 +204,9 @@ function O(e) {
|
|
|
204
204
|
]);
|
|
205
205
|
}
|
|
206
206
|
function N(e) {
|
|
207
|
-
const { value: a, onChange: r, hasError: s = !1 } =
|
|
207
|
+
const { value: a, onChange: r, hasError: s = !1 } = I(), { regionalFormat: o } = V(), l = O(() => se(a ?? ""), [
|
|
208
208
|
a
|
|
209
|
-
]), c =
|
|
209
|
+
]), c = O(() => oe(s, a ?? ""), [
|
|
210
210
|
a,
|
|
211
211
|
s
|
|
212
212
|
]), d = l[e] || "", i = v((p) => {
|
|
@@ -216,7 +216,7 @@ function N(e) {
|
|
|
216
216
|
r,
|
|
217
217
|
l,
|
|
218
218
|
e
|
|
219
|
-
]), f =
|
|
219
|
+
]), f = O(() => K(o).filter(j).map((L) => L.toUpperCase())[0] === e, [
|
|
220
220
|
o,
|
|
221
221
|
e
|
|
222
222
|
]);
|
|
@@ -227,36 +227,36 @@ function N(e) {
|
|
|
227
227
|
isFirstPart: f
|
|
228
228
|
};
|
|
229
229
|
}
|
|
230
|
-
function
|
|
231
|
-
const { inputId: r, labelId: s } =
|
|
230
|
+
function x({ datePart: e, className: a }) {
|
|
231
|
+
const { inputId: r, labelId: s } = g(e), { t: o } = S(), l = `field.date.label.${e.toLowerCase()}`, c = o(l);
|
|
232
232
|
return /* @__PURE__ */ t.createElement("label", {
|
|
233
233
|
id: s,
|
|
234
234
|
htmlFor: r,
|
|
235
235
|
className: a
|
|
236
236
|
}, c);
|
|
237
237
|
}
|
|
238
|
-
const Ye = "
|
|
238
|
+
const Ye = "_fields_fw9my_1", ve = "_month_fw9my_10", we = "_day_fw9my_11", Ve = "_year_fw9my_12", Be = "_dayInput_fw9my_28", He = "_yearInput_fw9my_29", xe = "_monthTrigger_fw9my_33", Ue = "_monthOption_fw9my_53", y = {
|
|
239
239
|
fields: Ye,
|
|
240
240
|
month: ve,
|
|
241
241
|
day: we,
|
|
242
242
|
year: Ve,
|
|
243
|
-
dayInput:
|
|
244
|
-
yearInput:
|
|
245
|
-
monthTrigger:
|
|
246
|
-
monthOption:
|
|
247
|
-
},
|
|
243
|
+
dayInput: Be,
|
|
244
|
+
yearInput: He,
|
|
245
|
+
monthTrigger: xe,
|
|
246
|
+
monthOption: Ue
|
|
247
|
+
}, ke = ({ content: e, locale: a }) => /* @__PURE__ */ t.createElement(ee, {
|
|
248
248
|
content: e,
|
|
249
249
|
locale: a
|
|
250
250
|
}), ct = () => {
|
|
251
|
-
const e =
|
|
251
|
+
const e = ge(y.monthTrigger), a = Ne(y.monthOption, Ce), r = k(y.dayInput), s = k(y.yearInput);
|
|
252
252
|
return /* @__PURE__ */ t.createElement(n, {
|
|
253
|
-
className:
|
|
253
|
+
className: y.fields
|
|
254
254
|
}, /* @__PURE__ */ t.createElement(n.Label, {
|
|
255
255
|
className: h(P, E.label)
|
|
256
256
|
}, /* @__PURE__ */ t.createElement(n.Label.Required, {
|
|
257
257
|
className: h(ce, E.requiredMark)
|
|
258
258
|
})), /* @__PURE__ */ t.createElement(n.Month, {
|
|
259
|
-
className:
|
|
259
|
+
className: y.month
|
|
260
260
|
}, /* @__PURE__ */ t.createElement(n.Month.Label, {
|
|
261
261
|
className: h(P, E.label)
|
|
262
262
|
}), /* @__PURE__ */ t.createElement(n.Month.Trigger, {
|
|
@@ -268,13 +268,13 @@ const Ye = "_fields_16lz4_1", ve = "_month_16lz4_10", we = "_day_16lz4_11", Ve =
|
|
|
268
268
|
}, /* @__PURE__ */ t.createElement(n.Month.Options.Option, {
|
|
269
269
|
className: a
|
|
270
270
|
}))), /* @__PURE__ */ t.createElement(n.Day, {
|
|
271
|
-
className:
|
|
271
|
+
className: y.day
|
|
272
272
|
}, /* @__PURE__ */ t.createElement(n.Day.Label, {
|
|
273
273
|
className: h(P, E.label)
|
|
274
274
|
}), /* @__PURE__ */ t.createElement(n.Day.Input, {
|
|
275
275
|
className: r
|
|
276
276
|
})), /* @__PURE__ */ t.createElement(n.Year, {
|
|
277
|
-
className:
|
|
277
|
+
className: y.year
|
|
278
278
|
}, /* @__PURE__ */ t.createElement(n.Year.Label, {
|
|
279
279
|
className: h(P, E.label)
|
|
280
280
|
}), /* @__PURE__ */ t.createElement(n.Year.Input, {
|
|
@@ -283,7 +283,7 @@ const Ye = "_fields_16lz4_1", ve = "_month_16lz4_10", we = "_day_16lz4_11", Ve =
|
|
|
283
283
|
className: h(me, E.error)
|
|
284
284
|
}, /* @__PURE__ */ t.createElement(_e, null), /* @__PURE__ */ t.createElement(n.Error.Text, null)), /* @__PURE__ */ t.createElement(n.Description, {
|
|
285
285
|
className: h(de, E.description)
|
|
286
|
-
},
|
|
286
|
+
}, ke));
|
|
287
287
|
};
|
|
288
288
|
export {
|
|
289
289
|
ct as D
|
package/dist/component/{date-picker-field-rac-DO1epod7.js → date-picker-field-rac-DHu11mY1.js}
RENAMED
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { RicosViewer as X } from "@wix/ricos/viewer";
|
|
2
2
|
import y from "classnames";
|
|
3
|
-
import e, { useState as A, useCallback as
|
|
3
|
+
import e, { useState as A, useCallback as k, useContext as ee, useRef as O, useMemo as _ } from "react";
|
|
4
4
|
import { parseDate as te } from "@internationalized/date";
|
|
5
5
|
import { UNSAFE_PortalProvider as re } from "react-aria";
|
|
6
|
-
import { I18nProvider as ae, DatePicker as ne, DatePickerStateContext as oe, Group as le, DateInput as se, DateSegment as ce, Calendar as ie, CalendarMonthPicker as me, CalendarYearPicker as de, CalendarGrid as ue, Dialog as ge, CalendarCell as Ee, Button as
|
|
7
|
-
import { D as p, bh as T, be as U, b9 as F, bj as pe, I as
|
|
8
|
-
import { g as he, c as P } from "./calendar.module-
|
|
6
|
+
import { I18nProvider as ae, DatePicker as ne, DatePickerStateContext as oe, Group as le, DateInput as se, DateSegment as ce, Calendar as ie, CalendarMonthPicker as me, CalendarYearPicker as de, CalendarGrid as ue, Dialog as ge, CalendarCell as Ee, Button as M, Select as w, SelectValue as x, ListBox as Y, ListBoxItem as B } from "react-aria-components";
|
|
7
|
+
import { D as p, bh as T, be as U, b9 as F, bj as pe, I as fe, U as De, n as Ce, v as ye, p as Se } from "./form-CYPNOMwk.js";
|
|
8
|
+
import { g as he, c as P } from "./calendar.module-CKCBG_Pg.js";
|
|
9
9
|
import { f as E, a as h } from "./find-child-C60k4CxG.js";
|
|
10
|
-
import { D as Te, E as
|
|
11
|
-
import { L as
|
|
12
|
-
import { D as
|
|
13
|
-
import { a as _e, u as Ie } from "./use-dropdown-trigger-class-name-
|
|
14
|
-
import { i as Fe } from "./date-availability-
|
|
10
|
+
import { D as Te, E as be } from "./field-error-headless-C3eOy1_l.js";
|
|
11
|
+
import { L as Ne } from "./field-label-headless-BMmR_IeF.js";
|
|
12
|
+
import { D as ve, N as L, S as V } from "./non-modal-popover-D-u13tmp.js";
|
|
13
|
+
import { a as _e, u as Ie } from "./use-dropdown-trigger-class-name-D7EMiD-M.js";
|
|
14
|
+
import { i as Fe } from "./date-availability-70Vb-dlb.js";
|
|
15
15
|
import { C as I } from "./chevron-down-icon-CcpVm6B-.js";
|
|
16
16
|
import { E as Le } from "./error-icon-hZxQ6DEy.js";
|
|
17
17
|
import { H as Ae } from "./custom-focus-class-_483Pkwp.js";
|
|
18
|
-
import { s as
|
|
18
|
+
import { s as f } from "./field-rac.module-DfEb7pBp.js";
|
|
19
19
|
const Oe = [
|
|
20
20
|
p.SUNDAY,
|
|
21
21
|
p.MONDAY,
|
|
@@ -27,19 +27,19 @@ const Oe = [
|
|
|
27
27
|
], Pe = {
|
|
28
28
|
availableDays: Oe
|
|
29
29
|
}, a = ({ children: t }) => {
|
|
30
|
-
const { id: r, value: o, onChange: n, disabled: i, required: c, onBlur: u, onFocus: l, FieldLayout: m, hasError: d, readOnly:
|
|
31
|
-
const J =
|
|
30
|
+
const { id: r, value: o, onChange: n, disabled: i, required: c, onBlur: u, onFocus: l, FieldLayout: m, hasError: d, readOnly: D } = T(), { labelId: C } = U(), { regionalFormat: b } = F(), [s, N] = A(null), [K, W] = A(!1), v = _e(r), $ = k((z) => {
|
|
31
|
+
const J = We(z);
|
|
32
32
|
n(J);
|
|
33
33
|
}, [
|
|
34
34
|
n
|
|
35
|
-
]),
|
|
35
|
+
]), H = E(t, a.Label), q = E(t, a.Control), j = E(t, a.Calendar), G = E(t, a.Description), Q = E(t, a.Error), Z = Ke(o);
|
|
36
36
|
return /* @__PURE__ */ e.createElement(m, {
|
|
37
37
|
fieldId: r,
|
|
38
|
-
renderLabel: () =>
|
|
38
|
+
renderLabel: () => H,
|
|
39
39
|
renderInput: () => /* @__PURE__ */ e.createElement(ae, {
|
|
40
|
-
locale:
|
|
40
|
+
locale: b
|
|
41
41
|
}, /* @__PURE__ */ e.createElement("div", {
|
|
42
|
-
ref:
|
|
42
|
+
ref: N,
|
|
43
43
|
style: {
|
|
44
44
|
display: "contents"
|
|
45
45
|
}
|
|
@@ -48,28 +48,28 @@ const Oe = [
|
|
|
48
48
|
}, /* @__PURE__ */ e.createElement(ne, {
|
|
49
49
|
"aria-labelledby": C,
|
|
50
50
|
value: Z,
|
|
51
|
-
onChange:
|
|
51
|
+
onChange: $,
|
|
52
52
|
isDisabled: i,
|
|
53
53
|
isInvalid: d,
|
|
54
|
-
isReadOnly:
|
|
54
|
+
isReadOnly: D,
|
|
55
55
|
isRequired: c,
|
|
56
56
|
onBlur: u,
|
|
57
57
|
onFocus: l,
|
|
58
|
-
isOpen:
|
|
59
|
-
onOpenChange:
|
|
60
|
-
},
|
|
61
|
-
isForcedOpen:
|
|
58
|
+
isOpen: v || K,
|
|
59
|
+
onOpenChange: v ? void 0 : W
|
|
60
|
+
}, q, h(j, {
|
|
61
|
+
isForcedOpen: v
|
|
62
62
|
})))),
|
|
63
63
|
renderDescription: () => /* @__PURE__ */ e.createElement(e.Fragment, null, Q, G)
|
|
64
64
|
});
|
|
65
65
|
}, Re = ({ children: t, className: r }) => {
|
|
66
|
-
const { inputId: o, ariaDescribedBy: n } = U(), { hasError: i, disabled: c, readOnly: u } = T(), l = ee(oe), m =
|
|
66
|
+
const { inputId: o, ariaDescribedBy: n } = U(), { hasError: i, disabled: c, readOnly: u } = T(), l = ee(oe), m = k((d) => {
|
|
67
67
|
if (!l || l.isOpen || c || u)
|
|
68
68
|
return;
|
|
69
|
-
const
|
|
70
|
-
if (
|
|
69
|
+
const D = d.target;
|
|
70
|
+
if (D.closest("button"))
|
|
71
71
|
return;
|
|
72
|
-
const C =
|
|
72
|
+
const C = D.closest("[data-type]");
|
|
73
73
|
C && C.getAttribute("data-type") !== "literal" || l.setOpen(!0);
|
|
74
74
|
}, [
|
|
75
75
|
l,
|
|
@@ -83,13 +83,13 @@ const Oe = [
|
|
|
83
83
|
"data-invalid": i,
|
|
84
84
|
onPointerDownCapture: m
|
|
85
85
|
}, t);
|
|
86
|
-
},
|
|
86
|
+
}, ke = ({ className: t }) => {
|
|
87
87
|
const { id: r, placeholder: o } = T(), { regionalFormat: n } = F(), i = O(null), c = O(!1);
|
|
88
88
|
pe(() => {
|
|
89
89
|
var l;
|
|
90
90
|
(l = i.current) == null || l.focus();
|
|
91
91
|
}, r);
|
|
92
|
-
const u = _(() =>
|
|
92
|
+
const u = _(() => $e(n), [
|
|
93
93
|
n
|
|
94
94
|
]);
|
|
95
95
|
return /* @__PURE__ */ e.createElement(se, {
|
|
@@ -112,25 +112,25 @@ const Oe = [
|
|
|
112
112
|
}
|
|
113
113
|
}, (d) => !d.isPlaceholder || !o ? d.text : m ? o : d.text);
|
|
114
114
|
});
|
|
115
|
-
},
|
|
115
|
+
}, Me = ({ children: t, className: r }) => /* @__PURE__ */ e.createElement(ve, {
|
|
116
116
|
className: r
|
|
117
117
|
}, t), g = ({ children: t, className: r, ...o }) => {
|
|
118
118
|
const { isForcedOpen: n } = o, { regionalFormat: i } = F(), { availability: c } = T(), u = _(() => he(i), [
|
|
119
119
|
i
|
|
120
120
|
]), l = _(() => (s) => {
|
|
121
|
-
const
|
|
122
|
-
return !Fe(
|
|
121
|
+
const N = new Date(s.year, s.month - 1, s.day);
|
|
122
|
+
return !Fe(N, c || Pe);
|
|
123
123
|
}, [
|
|
124
124
|
c
|
|
125
|
-
]), m = E(t, g.Day) ?? /* @__PURE__ */ e.createElement(g.Day, null), d = E(t, g.PreviousTrigger),
|
|
125
|
+
]), m = E(t, g.Day) ?? /* @__PURE__ */ e.createElement(g.Day, null), d = E(t, g.PreviousTrigger), D = E(t, g.NextTrigger), C = E(t, g.MonthTrigger), b = E(t, g.YearTrigger);
|
|
126
126
|
return /* @__PURE__ */ e.createElement(L, {
|
|
127
127
|
className: r,
|
|
128
128
|
containerPadding: 0
|
|
129
|
-
}, /* @__PURE__ */ e.createElement(
|
|
129
|
+
}, /* @__PURE__ */ e.createElement(we, {
|
|
130
130
|
isForcedOpen: n
|
|
131
131
|
}, /* @__PURE__ */ e.createElement(ie, {
|
|
132
132
|
autoFocus: n ? !1 : void 0,
|
|
133
|
-
firstDayOfWeek:
|
|
133
|
+
firstDayOfWeek: He(u),
|
|
134
134
|
isDateUnavailable: l
|
|
135
135
|
}, /* @__PURE__ */ e.createElement("header", null, d, /* @__PURE__ */ e.createElement(me, null, (s) => h(C, {
|
|
136
136
|
ariaLabel: s["aria-label"],
|
|
@@ -140,40 +140,40 @@ const Oe = [
|
|
|
140
140
|
popoverClassName: r
|
|
141
141
|
})), /* @__PURE__ */ e.createElement(de, {
|
|
142
142
|
visibleYears: 100
|
|
143
|
-
}, (s) => h(
|
|
143
|
+
}, (s) => h(b, {
|
|
144
144
|
ariaLabel: s["aria-label"],
|
|
145
145
|
selectedKey: s.value,
|
|
146
146
|
onSelectionChange: s.onChange,
|
|
147
147
|
items: s.items,
|
|
148
148
|
popoverClassName: r
|
|
149
|
-
})),
|
|
149
|
+
})), D), /* @__PURE__ */ e.createElement(ue, {
|
|
150
150
|
weekdayStyle: "short"
|
|
151
151
|
}, (s) => h(m, {
|
|
152
152
|
date: s
|
|
153
153
|
})))));
|
|
154
|
-
},
|
|
154
|
+
}, we = ({ isForcedOpen: t, children: r }) => t ? /* @__PURE__ */ e.createElement("div", {
|
|
155
155
|
role: "dialog"
|
|
156
|
-
}, r) : /* @__PURE__ */ e.createElement(ge, null, r),
|
|
156
|
+
}, r) : /* @__PURE__ */ e.createElement(ge, null, r), xe = ({ children: t, className: r, ...o }) => {
|
|
157
157
|
const { date: n } = o;
|
|
158
158
|
return /* @__PURE__ */ e.createElement(Ee, {
|
|
159
159
|
className: r,
|
|
160
160
|
date: n
|
|
161
161
|
}, t);
|
|
162
|
-
}, Ye = ({ children: t, className: r }) => /* @__PURE__ */ e.createElement(
|
|
162
|
+
}, Ye = ({ children: t, className: r }) => /* @__PURE__ */ e.createElement(M, {
|
|
163
163
|
slot: "previous",
|
|
164
164
|
className: r
|
|
165
|
-
}, t), Be = ({ children: t, className: r }) => /* @__PURE__ */ e.createElement(
|
|
165
|
+
}, t), Be = ({ children: t, className: r }) => /* @__PURE__ */ e.createElement(M, {
|
|
166
166
|
slot: "next",
|
|
167
167
|
className: r
|
|
168
168
|
}, t), Ue = ({ children: t, className: r, ...o }) => {
|
|
169
169
|
const { ariaLabel: n, selectedKey: i, onSelectionChange: c, items: u, popoverClassName: l } = o;
|
|
170
|
-
return /* @__PURE__ */ e.createElement(
|
|
170
|
+
return /* @__PURE__ */ e.createElement(w, {
|
|
171
171
|
"aria-label": n,
|
|
172
172
|
selectedKey: i,
|
|
173
173
|
onSelectionChange: c
|
|
174
174
|
}, /* @__PURE__ */ e.createElement(V, {
|
|
175
175
|
className: r
|
|
176
|
-
}, /* @__PURE__ */ e.createElement(
|
|
176
|
+
}, /* @__PURE__ */ e.createElement(x, null), t), /* @__PURE__ */ e.createElement(L, {
|
|
177
177
|
className: l,
|
|
178
178
|
containerPadding: 0
|
|
179
179
|
}, /* @__PURE__ */ e.createElement(Y, {
|
|
@@ -183,13 +183,13 @@ const Oe = [
|
|
|
183
183
|
}, m.formatted))));
|
|
184
184
|
}, Ve = ({ children: t, className: r, ...o }) => {
|
|
185
185
|
const { ariaLabel: n, selectedKey: i, onSelectionChange: c, items: u, popoverClassName: l } = o;
|
|
186
|
-
return /* @__PURE__ */ e.createElement(
|
|
186
|
+
return /* @__PURE__ */ e.createElement(w, {
|
|
187
187
|
"aria-label": n,
|
|
188
188
|
selectedKey: i,
|
|
189
189
|
onSelectionChange: c
|
|
190
190
|
}, /* @__PURE__ */ e.createElement(V, {
|
|
191
191
|
className: r
|
|
192
|
-
}, /* @__PURE__ */ e.createElement(
|
|
192
|
+
}, /* @__PURE__ */ e.createElement(x, null), t), /* @__PURE__ */ e.createElement(L, {
|
|
193
193
|
className: l,
|
|
194
194
|
containerPadding: 0
|
|
195
195
|
}, /* @__PURE__ */ e.createElement(Y, {
|
|
@@ -198,19 +198,19 @@ const Oe = [
|
|
|
198
198
|
id: m.id
|
|
199
199
|
}, m.formatted))));
|
|
200
200
|
};
|
|
201
|
-
g.Day =
|
|
201
|
+
g.Day = xe;
|
|
202
202
|
g.PreviousTrigger = Ye;
|
|
203
203
|
g.NextTrigger = Be;
|
|
204
204
|
g.MonthTrigger = Ue;
|
|
205
205
|
g.YearTrigger = Ve;
|
|
206
|
-
a.Label =
|
|
206
|
+
a.Label = Ne;
|
|
207
207
|
a.Control = Re;
|
|
208
|
-
a.Input =
|
|
209
|
-
a.Trigger =
|
|
208
|
+
a.Input = ke;
|
|
209
|
+
a.Trigger = Me;
|
|
210
210
|
a.Calendar = g;
|
|
211
211
|
a.Description = Te;
|
|
212
|
-
a.Error =
|
|
213
|
-
function
|
|
212
|
+
a.Error = be;
|
|
213
|
+
function Ke(t) {
|
|
214
214
|
if (!t)
|
|
215
215
|
return null;
|
|
216
216
|
try {
|
|
@@ -219,13 +219,13 @@ function qe(t) {
|
|
|
219
219
|
return null;
|
|
220
220
|
}
|
|
221
221
|
}
|
|
222
|
-
function
|
|
222
|
+
function We(t) {
|
|
223
223
|
if (!t)
|
|
224
224
|
return null;
|
|
225
225
|
const r = String(t.year).padStart(4, "0"), o = String(t.month).padStart(2, "0"), n = String(t.day).padStart(2, "0");
|
|
226
226
|
return `${r}-${o}-${n}`;
|
|
227
227
|
}
|
|
228
|
-
function
|
|
228
|
+
function $e(t) {
|
|
229
229
|
var r;
|
|
230
230
|
try {
|
|
231
231
|
return ((r = new Intl.DateTimeFormat(t, {
|
|
@@ -237,7 +237,7 @@ function We(t) {
|
|
|
237
237
|
return "month";
|
|
238
238
|
}
|
|
239
239
|
}
|
|
240
|
-
function
|
|
240
|
+
function He(t) {
|
|
241
241
|
return [
|
|
242
242
|
"sun",
|
|
243
243
|
"mon",
|
|
@@ -248,7 +248,7 @@ function $e(t) {
|
|
|
248
248
|
"sat"
|
|
249
249
|
][t] || "mon";
|
|
250
250
|
}
|
|
251
|
-
const
|
|
251
|
+
const qe = (t) => /* @__PURE__ */ e.createElement("svg", {
|
|
252
252
|
viewBox: "0 0 24 24",
|
|
253
253
|
fill: "none",
|
|
254
254
|
width: 14,
|
|
@@ -261,7 +261,7 @@ const He = (t) => /* @__PURE__ */ e.createElement("svg", {
|
|
|
261
261
|
strokeWidth: "1.5",
|
|
262
262
|
strokeLinecap: "round",
|
|
263
263
|
strokeLinejoin: "round"
|
|
264
|
-
})), je = "
|
|
264
|
+
})), je = "_control_18cbf_1", Ge = "_segments_18cbf_14", Qe = "_trigger_18cbf_72", Ze = "_calendarPopover_18cbf_103", ze = "_calendarDay_18cbf_252", S = {
|
|
265
265
|
control: je,
|
|
266
266
|
segments: Ge,
|
|
267
267
|
trigger: Qe,
|
|
@@ -280,23 +280,23 @@ const He = (t) => /* @__PURE__ */ e.createElement("svg", {
|
|
|
280
280
|
}), Ct = () => {
|
|
281
281
|
const t = Ie(S.control);
|
|
282
282
|
return /* @__PURE__ */ e.createElement(a, null, /* @__PURE__ */ e.createElement(a.Label, {
|
|
283
|
-
className: y(
|
|
283
|
+
className: y(fe, f.label)
|
|
284
284
|
}, /* @__PURE__ */ e.createElement(a.Label.Required, {
|
|
285
|
-
className: y(
|
|
285
|
+
className: y(De, f.requiredMark)
|
|
286
286
|
})), /* @__PURE__ */ e.createElement(a.Control, {
|
|
287
287
|
className: t
|
|
288
288
|
}, /* @__PURE__ */ e.createElement(a.Trigger, {
|
|
289
289
|
className: S.trigger
|
|
290
|
-
}, /* @__PURE__ */ e.createElement(
|
|
290
|
+
}, /* @__PURE__ */ e.createElement(qe, null)), /* @__PURE__ */ e.createElement(a.Input, {
|
|
291
291
|
className: S.segments
|
|
292
292
|
})), /* @__PURE__ */ e.createElement(a.Calendar, {
|
|
293
|
-
className: y(Ce,
|
|
293
|
+
className: y(Ce, f.selectPopover, S.calendarPopover)
|
|
294
294
|
}, /* @__PURE__ */ e.createElement(a.Calendar.PreviousTrigger, null, /* @__PURE__ */ e.createElement(R, {
|
|
295
295
|
direction: "left"
|
|
296
296
|
})), /* @__PURE__ */ e.createElement(a.Calendar.MonthTrigger, null, /* @__PURE__ */ e.createElement(I, {
|
|
297
|
-
className:
|
|
297
|
+
className: f.dropdownIcon
|
|
298
298
|
})), /* @__PURE__ */ e.createElement(a.Calendar.YearTrigger, null, /* @__PURE__ */ e.createElement(I, {
|
|
299
|
-
className:
|
|
299
|
+
className: f.dropdownIcon
|
|
300
300
|
})), /* @__PURE__ */ e.createElement(a.Calendar.NextTrigger, null, /* @__PURE__ */ e.createElement(R, {
|
|
301
301
|
direction: "right"
|
|
302
302
|
})), /* @__PURE__ */ e.createElement(a.Calendar.Day, {
|
|
@@ -304,9 +304,9 @@ const He = (t) => /* @__PURE__ */ e.createElement("svg", {
|
|
|
304
304
|
}, ({ formattedDate: r }) => /* @__PURE__ */ e.createElement("span", {
|
|
305
305
|
className: P.dayNumber
|
|
306
306
|
}, r))), /* @__PURE__ */ e.createElement(a.Error, {
|
|
307
|
-
className: y(ye,
|
|
307
|
+
className: y(ye, f.error)
|
|
308
308
|
}, /* @__PURE__ */ e.createElement(Le, null), /* @__PURE__ */ e.createElement(a.Error.Text, null)), /* @__PURE__ */ e.createElement(a.Description, {
|
|
309
|
-
className: y(Se,
|
|
309
|
+
className: y(Se, f.description)
|
|
310
310
|
}, Je));
|
|
311
311
|
};
|
|
312
312
|
export {
|