@wix/form-elements 1.132.0 → 1.134.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-DMYXIOL3.js → appointment-rac-CZHb5jGz.js} +246 -246
- package/dist/component/{bookings-address-rac-D6Ot6vm7.js → bookings-address-rac-F39MfGmX.js} +1 -1
- package/dist/component/{bookings-email-rac-CkPflUxK.js → bookings-email-rac-D4CurQjr.js} +1 -1
- package/dist/component/{bookings-first-name-rac-BbDv4BQw.js → bookings-first-name-rac-Bz9o1eLl.js} +1 -1
- package/dist/component/{bookings-header-rac-DJodBCf4.js → bookings-header-rac-6mfX0WGf.js} +1 -1
- package/dist/component/{bookings-last-name-rac-C4PRt2XO.js → bookings-last-name-rac-CD1-B7Ao.js} +1 -1
- package/dist/component/{bookings-login-bar-rac-MPcFtzUB.js → bookings-login-bar-rac-2eQkfhBb.js} +17 -17
- package/dist/component/{bookings-phone-rac-BnaiOxWV.js → bookings-phone-rac-X6sSnHiH.js} +1 -1
- package/dist/component/{bookings-rich-text-rac-Cwp6pBC_.js → bookings-rich-text-rac-f2artJnn.js} +1 -1
- package/dist/component/{calendar.module-DnhTT4QT.js → calendar.module-CKCBG_Pg.js} +11 -11
- package/dist/component/{checkbox-field-rac-BA-67OHo.js → checkbox-field-rac-DoZ9bcw3.js} +26 -25
- package/dist/component/{checkbox-group-field-headless-B20gxYEt.js → checkbox-group-field-headless-B-d37T4z.js} +32 -31
- package/dist/component/{checkbox-group-field-rac--uloIFS6.js → checkbox-group-field-rac-0qYHz3g1.js} +6 -6
- package/dist/component/{checkbox-group-rac-CYt86YIr.js → checkbox-group-rac-BqUJdAju.js} +1 -1
- package/dist/component/{checkbox-indicator-module-classes-Bqo0QILF.js → checkbox-indicator-module-classes-6173wvuW.js} +1 -1
- package/dist/component/{checkbox-rac-4FLDh24V.js → checkbox-rac-BN-qNzpH.js} +1 -1
- package/dist/component/{contacts-address-rac-BU2H0MEF.js → contacts-address-rac-B7vWOTFf.js} +1 -1
- package/dist/component/{contacts-birthdate-rac-DXITbTMA.js → contacts-birthdate-rac-Dl0OatzW.js} +1 -1
- package/dist/component/{contacts-company-rac-D_BKjGc8.js → contacts-company-rac-DIeGU0Bf.js} +1 -1
- package/dist/component/{contacts-email-rac-CfYSUKJ3.js → contacts-email-rac-BCH6ogWv.js} +1 -1
- package/dist/component/{contacts-first-name-rac-DYZUgWsB.js → contacts-first-name-rac-Cx-USWmx.js} +1 -1
- package/dist/component/{contacts-last-name-rac-m-zqIpMB.js → contacts-last-name-rac-CUZdJI9J.js} +1 -1
- package/dist/component/{contacts-phone-rac-nJDsO_Y8.js → contacts-phone-rac-hNCW_2UC.js} +1 -1
- package/dist/component/{contacts-position-rac-CAGdJXSW.js → contacts-position-rac-CJfOgxZc.js} +1 -1
- package/dist/component/{contacts-subscribe-rac-jwP65ngO.js → contacts-subscribe-rac-69721_c9.js} +1 -1
- package/dist/component/{contacts-tax-id-rac-DUOQlZ3c.js → contacts-tax-id-rac-CXXBqWIm.js} +1 -1
- package/dist/component/{date-availability-EbJKjV1U.js → date-availability-NQGPIrdZ.js} +1 -1
- package/dist/component/{date-input-field-rac-CZRcW-0J.js → date-input-field-rac-C-we-suG.js} +60 -60
- package/dist/component/{date-input-rac-CasoMjfj.js → date-input-rac-Cif7Bqxc.js} +1 -1
- package/dist/component/{date-picker-field-rac-V9MRWrj-.js → date-picker-field-rac-CHDkTXVH.js} +63 -63
- package/dist/component/{date-picker-rac-Cu5wTh1_.js → date-picker-rac-DdhgbY6W.js} +1 -1
- package/dist/component/{date-time-input-field-rac-YGqLIle1.js → date-time-input-field-rac-BjtDbiqE.js} +7 -7
- package/dist/component/{date-time-input-rac-DCEyREJI.js → date-time-input-rac-BDP5SN-i.js} +1 -1
- package/dist/component/{dext-checkbox-group-rac-DLB5mAwB.js → dext-checkbox-group-rac-CkF41kIR.js} +2 -2
- package/dist/component/{dext-checkbox-rac-DFV7ixAO.js → dext-checkbox-rac-DjYpsxmq.js} +1 -1
- package/dist/component/{dext-date-picker-rac-CEL2X1ID.js → dext-date-picker-rac-BxXZLogr.js} +1 -1
- package/dist/component/{dext-date-time-input-rac-yLdCLDbQ.js → dext-date-time-input-rac-e4y_JjEx.js} +1 -1
- package/dist/component/{dext-dropdown-rac-ti_P0L_X.js → dext-dropdown-rac-DsjB3ZX7.js} +1 -1
- package/dist/component/{dext-email-rac-CnvdVz-J.js → dext-email-rac-ClPp1g4D.js} +1 -1
- package/dist/component/{dext-number-input-rac-CmGt691Y.js → dext-number-input-rac-D2nZNzyN.js} +1 -1
- package/dist/component/{dext-phone-rac-JEZkz4gZ.js → dext-phone-rac-PNiQZ-Lr.js} +1 -1
- package/dist/component/{dext-radio-group-rac-CUk6wUPl.js → dext-radio-group-rac-DUltmMHM.js} +2 -2
- package/dist/component/{dext-rating-input-rac-Q1J5oqhZ.js → dext-rating-input-rac-C_apsfGT.js} +1 -1
- package/dist/component/{dext-tags-rac-DU9FLeGu.js → dext-tags-rac-DkB_CmOD.js} +2 -2
- package/dist/component/{dext-text-area-rac-D1FOCK6O.js → dext-text-area-rac-CfoIK0S7.js} +1 -1
- package/dist/component/{dext-text-input-rac-Dzb5lQjK.js → dext-text-input-rac-CIOXlk6U.js} +1 -1
- package/dist/component/{dext-url-input-rac-cRLFpiNR.js → dext-url-input-rac-UHJAs3ck.js} +1 -1
- package/dist/component/{donation-rac-CV-PnK1D.js → donation-rac-BJfvVi_d.js} +49 -52
- package/dist/component/{dropdown-field-headless-D1e2XbNj.js → dropdown-field-headless-0DB-T-3t.js} +5 -5
- package/dist/component/{dropdown-field-rac-DkeVkP9c.js → dropdown-field-rac-DB-pd2a8.js} +5 -5
- package/dist/component/{dropdown-rac-ChlsWwyp.js → dropdown-rac-4T4zRBVy.js} +1 -1
- package/dist/component/{ecom-address-rac-DvHJ4Ym-.js → ecom-address-rac-BjWD1sRX.js} +1 -1
- package/dist/component/{ecom-subscription-checkbox-rac-D3LX7FVx.js → ecom-subscription-checkbox-rac-CYCufut6.js} +2 -2
- package/dist/component/{email-input-field-rac-B8OCp4L9.js → email-input-field-rac-DlLoY9jB.js} +4 -4
- package/dist/component/{events-repeater-rac-BO0-VcV3.js → events-repeater-rac-CPHJbWcZ.js} +48 -47
- package/dist/component/{events-rsvp-rac-CnULPDrG.js → events-rsvp-rac-NXf8Fv3A.js} +4 -4
- package/dist/component/{field-error-headless-DwlihJqC.js → field-error-headless-C-wyL0uw.js} +1 -1
- package/dist/component/{field-label-headless-C_cMy8vP.js → field-label-headless-32mvEUId.js} +1 -1
- package/dist/component/field-rac.module-DfEb7pBp.js +25 -0
- package/dist/component/file-upload-rac-BicD_Bhj.js +566 -0
- package/dist/component/{fixed-payment-rac-ameH1syZ.js → fixed-payment-rac-DxHalHUv.js} +4 -4
- package/dist/component/{form-GcotNutn.js → form-B2wZnWX9.js} +69 -69
- package/dist/component/form.css +1 -1
- package/dist/component/form.js +1 -1
- package/dist/component/{header-field-rac-D2fpKxIz.js → header-field-rac-C47Te_oW.js} +2 -2
- package/dist/component/{header-rac-DdWMo2xZ.js → header-rac-ChDYKTx5.js} +1 -1
- package/dist/component/{image-choice-rac-CBaUQX8m.js → image-choice-rac-CqTBWpcY.js} +56 -59
- package/dist/component/{index-nOv_Pf2O.js → index-BF_Aifc-.js} +4 -4
- package/dist/component/{index-CAktfVsx.js → index-Br8x_xx8.js} +2 -2
- package/dist/component/{isObjectLike-t9SwprFt.js → isObjectLike-D4VXbd0T.js} +1 -1
- package/dist/component/{multiline-address-field-rac-DpMPlfjM.js → multiline-address-field-rac-DYcfzGJb.js} +8 -8
- package/dist/component/{multiline-address-rac-D1XtQuAy.js → multiline-address-rac-DcGDGyL-.js} +1 -1
- package/dist/component/{number-input-field-rac-CFFU1JrK.js → number-input-field-rac-C_Fh8oeD.js} +5 -5
- package/dist/component/{number-input-rac-BDs3ngbf.js → number-input-rac-J2tCaAYx.js} +1 -1
- package/dist/component/{password-rac-jRXGfQn_.js → password-rac-wlfBhft8.js} +5 -5
- package/dist/component/{payment-input-rac-BAkJqSyU.js → payment-input-rac-DKxy3uE0.js} +5 -5
- package/dist/component/{phone-input-field-rac-D_1jDl7O.js → phone-input-field-rac-ClXUOLpB.js} +117 -117
- package/dist/component/{phone-rac-DyinFMYS.js → phone-rac-D0-Poz1e.js} +1 -1
- package/dist/component/{product-list-rac-BkUvhZMi.js → product-list-rac-TF5fgLyc.js} +69 -68
- package/dist/component/{quiz-radio-group-rac-Cha9jkTD.js → quiz-radio-group-rac-BX4V_6wg.js} +1 -1
- package/dist/component/{radio-button-module-classes-WQaDTnal.js → radio-button-module-classes-D8UpzVUK.js} +18 -17
- package/dist/component/{radio-group-field-rac-Cr35UXlg.js → radio-group-field-rac-C0zCVtjj.js} +5 -5
- package/dist/component/{radio-group-rac-BGRYJcwQ.js → radio-group-rac-DrKqgPRT.js} +1 -1
- package/dist/component/{rating-input-field-rac-C_X51vxl.js → rating-input-field-rac-DjxfTgv5.js} +35 -33
- package/dist/component/{rating-input-rac-B-usRVpy.js → rating-input-rac-DO4Bpdj3.js} +1 -1
- package/dist/component/{rich-content-rac.module-Bed3DsK7.js → rich-content-rac.module-DUNKiTkT.js} +1 -1
- package/dist/component/{rich-text-field-rac-SHHiInVy.js → rich-text-field-rac-DIOTzVwj.js} +2 -2
- package/dist/component/{rich-text-rac-CND63R3E.js → rich-text-rac-C_E_vEGz.js} +1 -1
- package/dist/component/{service-dropdown-rac-BdfxJ1Zq.js → service-dropdown-rac-B3gQT9Tj.js} +6 -6
- package/dist/component/{services-multi-choice-rac-D6BdQ2xE.js → services-multi-choice-rac-D40hZhBB.js} +7 -7
- package/dist/component/{signature-rac-xuYTsTUB.js → signature-rac-CKXpb2WN.js} +307 -301
- package/dist/component/{submit-button-rac-7YwnpPtu.js → submit-button-rac-CDS-vtXq.js} +39 -39
- package/dist/component/{tags-field-rac-ChzPiPvQ.js → tags-field-rac-CdQWq8k5.js} +72 -75
- package/dist/component/{tags-rac-BScWp3da.js → tags-rac-BwChqdGx.js} +1 -1
- package/dist/component/{text-area-field-rac-CDEJUPgV.js → text-area-field-rac-VCFJuHx4.js} +5 -5
- package/dist/component/{text-area-rac-CwiF24AW.js → text-area-rac-BICVNsdn.js} +1 -1
- package/dist/component/{text-input-field-rac-vg2b_7it.js → text-input-field-rac-C9gyRhcK.js} +4 -4
- package/dist/component/{text-input-headless-BdD-dAx2.js → text-input-headless-BdkaD-re.js} +3 -3
- package/dist/component/{text-input-rac-yX6rdvri.js → text-input-rac-B7buOGbq.js} +1 -1
- package/dist/component/{time-input-rac-B_kYmOwq.js → time-input-rac-CSFhEYi0.js} +5 -5
- package/dist/component/{url-input-field-rac-NJqyqxLi.js → url-input-field-rac-BIXokgHy.js} +5 -5
- package/dist/component/{url-input-rac-BqIKc9nY.js → url-input-rac-tTN0GaTH.js} +1 -1
- package/dist/component/{use-dropdown-option-class-name-DFW55r3E.js → use-dropdown-option-class-name-C6zB6TNA.js} +3 -3
- package/dist/component/{use-dropdown-trigger-class-name-Df-nqoeG.js → use-dropdown-trigger-class-name-CEq68SuK.js} +2 -2
- package/dist/component/use-element-state-class-name-BFZzVwqe.js +23 -0
- package/dist/component/use-hoverable-input-class-name-CzZmczhf.js +25 -0
- package/dist/component/{use-service-options-base-B64QpFwc.js → use-service-options-base-DOCVW9ax.js} +1 -1
- package/dist/component/use-text-input-class-name-BNX3qkmh.js +6 -0
- package/package.json +2 -2
- package/dist/component/field-rac.module-BIBNQEOK.js +0 -25
- package/dist/component/file-upload-rac-CjBKgUCk.js +0 -561
- package/dist/component/use-element-state-class-name-D008EeZn.js +0 -20
- package/dist/component/use-hoverable-input-class-name-CVtF0FGy.js +0 -23
- package/dist/component/use-text-input-class-name-BSDU7QEO.js +0 -6
package/dist/component/{date-input-field-rac-CZRcW-0J.js → date-input-field-rac-C-we-suG.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-B2wZnWX9.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-C-wyL0uw.js";
|
|
10
|
+
import { L as fe } from "./field-label-headless-32mvEUId.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-CEq68SuK.js";
|
|
14
|
+
import { V as Oe, u as Ne } from "./use-dropdown-option-class-name-C6zB6TNA.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-BNX3qkmh.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-V9MRWrj-.js → date-picker-field-rac-CHDkTXVH.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-B2wZnWX9.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-C-wyL0uw.js";
|
|
11
|
+
import { L as Ne } from "./field-label-headless-32mvEUId.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-CEq68SuK.js";
|
|
14
|
+
import { i as Fe } from "./date-availability-NQGPIrdZ.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 {
|