@wix/form-elements 1.161.0 → 1.162.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-BubC8I9X.js → appointment-rac-3Z1wiBX6.js} +123 -123
- package/dist/component/{bookings-address-rac-BbwvVs86.js → bookings-address-rac-2zV-a8SW.js} +1 -1
- package/dist/component/{bookings-email-rac-C2HCkcfa.js → bookings-email-rac-C1WakVnh.js} +1 -1
- package/dist/component/{bookings-first-name-rac-Uy7c5EBs.js → bookings-first-name-rac-6f18uXA0.js} +1 -1
- package/dist/component/{bookings-header-rac-nmwsWRjS.js → bookings-header-rac-BeaxlPQl.js} +1 -1
- package/dist/component/{bookings-last-name-rac-BAioQLCg.js → bookings-last-name-rac-CsLZaKfO.js} +1 -1
- package/dist/component/{bookings-login-bar-rac-CO6vOBjG.js → bookings-login-bar-rac-B3TRivWU.js} +6 -6
- package/dist/component/{bookings-phone-rac-Cr16h-_R.js → bookings-phone-rac-BnFEknvv.js} +1 -1
- package/dist/component/{bookings-rich-text-rac-CHLH3jd7.js → bookings-rich-text-rac-CFPqDZay.js} +1 -1
- package/dist/component/{calendar.module-CKCBG_Pg.js → calendar.module-BMUyMVja.js} +19 -19
- package/dist/component/{checkbox-field-rac-CMwmwFMD.js → checkbox-field-rac-DqGbxAd0.js} +6 -6
- package/dist/component/{checkbox-group-field-headless-BNs_S-nT.js → checkbox-group-field-headless-CiobdaVa.js} +27 -27
- package/dist/component/{checkbox-group-field-rac-BA60EPAN.js → checkbox-group-field-rac-Dxrc2F4x.js} +6 -6
- package/dist/component/{checkbox-group-rac-BJZ4Oer9.js → checkbox-group-rac-C3tL4YSr.js} +1 -1
- package/dist/component/{checkbox-indicator-module-classes-akWZsZNn.js → checkbox-indicator-module-classes-DUTR4mcg.js} +1 -1
- package/dist/component/{checkbox-rac-KsVlI6_V.js → checkbox-rac-DhZsIMuk.js} +1 -1
- package/dist/component/{contacts-address-rac-CRYkz87z.js → contacts-address-rac--GiWpa6C.js} +1 -1
- package/dist/component/{contacts-birthdate-rac-BIz-1-ZX.js → contacts-birthdate-rac-CmI2nPpr.js} +1 -1
- package/dist/component/{contacts-company-rac-B8G__j6I.js → contacts-company-rac-DcSLvPnR.js} +1 -1
- package/dist/component/{contacts-email-rac-Dztkvp5i.js → contacts-email-rac-BLOIHGP9.js} +1 -1
- package/dist/component/{contacts-first-name-rac-CVSEWpLU.js → contacts-first-name-rac-DgMCKLeE.js} +1 -1
- package/dist/component/{contacts-last-name-rac-Blz4M5bk.js → contacts-last-name-rac-tcEQP1Db.js} +1 -1
- package/dist/component/{contacts-phone-rac-CPCE5soY.js → contacts-phone-rac-CK664cfW.js} +1 -1
- package/dist/component/{contacts-position-rac-Dd_kBjqG.js → contacts-position-rac-B8skwXy6.js} +1 -1
- package/dist/component/{contacts-subscribe-rac-C6AlsP10.js → contacts-subscribe-rac-DQZYJjMo.js} +1 -1
- package/dist/component/{contacts-tax-id-rac-CQ1n29zI.js → contacts-tax-id-rac-Ci24ixLu.js} +1 -1
- package/dist/component/{date-availability-DDj1j0z5.js → date-availability-Va6_2NAZ.js} +1 -1
- package/dist/component/{date-input-field-rac-D5r1n_ah.js → date-input-field-rac-lAKyuHOI.js} +89 -89
- package/dist/component/{date-input-rac-Cyi5mU_P.js → date-input-rac-ClEesupR.js} +1 -1
- package/dist/component/{date-picker-field-rac-CeG391Zo.js → date-picker-field-rac-h45jfoso.js} +54 -54
- package/dist/component/{date-picker-rac-Ci9aHgav.js → date-picker-rac-B-pvqBn0.js} +1 -1
- package/dist/component/{date-time-input-field-rac-CrbYEbJJ.js → date-time-input-field-rac-41QpurJp.js} +80 -80
- package/dist/component/{date-time-input-rac-DDJLkqs0.js → date-time-input-rac-BQOUl7It.js} +1 -1
- package/dist/component/{dext-checkbox-group-rac-C3ftVHBA.js → dext-checkbox-group-rac-C4Q6tfBD.js} +4 -4
- package/dist/component/{dext-checkbox-rac-BGLYWn68.js → dext-checkbox-rac-Yo2PHNDA.js} +1 -1
- package/dist/component/{dext-date-picker-rac-Cy9RlDlt.js → dext-date-picker-rac-jM9x8W6a.js} +1 -1
- package/dist/component/{dext-date-time-input-rac-88ZoTd5e.js → dext-date-time-input-rac-BgW_4WIg.js} +1 -1
- package/dist/component/{dext-dropdown-rac-CPxDUuk9.js → dext-dropdown-rac-DCL7D6-G.js} +1 -1
- package/dist/component/{dext-email-rac-BAvQwDPA.js → dext-email-rac-Dz7yBqkd.js} +1 -1
- package/dist/component/{dext-number-input-rac-D7HYQVKq.js → dext-number-input-rac-BdMjBpH9.js} +1 -1
- package/dist/component/{dext-phone-rac--FhcplSI.js → dext-phone-rac-D2i9fXL3.js} +1 -1
- package/dist/component/{dext-radio-group-rac-DBz8iCKW.js → dext-radio-group-rac-Br2f1Ahx.js} +2 -2
- package/dist/component/{dext-rating-input-rac-Cv7nThfe.js → dext-rating-input-rac-OkfJ7Eb0.js} +1 -1
- package/dist/component/{dext-tags-rac-CRUUc5dr.js → dext-tags-rac-43vDoDdM.js} +2 -2
- package/dist/component/{dext-text-area-rac-DQBQXV1L.js → dext-text-area-rac-C072pWO9.js} +1 -1
- package/dist/component/{dext-text-input-rac-4CpM581y.js → dext-text-input-rac-BiHJpJCt.js} +1 -1
- package/dist/component/{dext-url-input-rac-0C1jTEr9.js → dext-url-input-rac-YOGYMj5C.js} +1 -1
- package/dist/component/{donation-rac-Cgt0ZE50.js → donation-rac-fCt3mddA.js} +98 -98
- package/dist/component/{dropdown-field-rac-DlGKR7pZ.js → dropdown-field-rac-EQrQJ2-C.js} +4 -4
- package/dist/component/{dropdown-rac-CYFW_3x_.js → dropdown-rac-MPCcjrFd.js} +1 -1
- package/dist/component/{ecom-address-rac-CQfQHpXC.js → ecom-address-rac-DSgpHqzV.js} +1 -1
- package/dist/component/{ecom-subscription-checkbox-rac-D2v2Upvz.js → ecom-subscription-checkbox-rac-Dw6Ke0Fb.js} +2 -2
- package/dist/component/{email-input-field-rac-CVw25yRo.js → email-input-field-rac-DVmvH4u4.js} +48 -48
- package/dist/component/{events-repeater-rac-BCVUcmFj.js → events-repeater-rac-Uwpo7XF4.js} +24 -24
- package/dist/component/{events-rsvp-rac-DwbqEr8z.js → events-rsvp-rac-D2DJAkep.js} +4 -4
- package/dist/component/{field-error-headless-XnVcMmsL.js → field-error-headless-DAc8FpKI.js} +8 -8
- package/dist/component/{field-label-headless-BRTLT2Yt.js → field-label-headless-DxxwJtjh.js} +17 -17
- package/dist/component/field-rac.module-ts2t4WUO.js +25 -0
- package/dist/component/{file-upload-rac-Dkwg9Jk4.js → file-upload-rac-CBKIeaxX.js} +163 -163
- package/dist/component/{fixed-payment-rac-ST98xAa2.js → fixed-payment-rac-BsCDoc1p.js} +18 -18
- package/dist/component/{form-BUqSKOvc.js → form-GAuLAdjq.js} +326 -336
- package/dist/component/form.css +1 -1
- package/dist/component/form.js +1 -1
- package/dist/component/{header-field-rac-CzNTGYWq.js → header-field-rac-DtZCjzLJ.js} +6 -6
- package/dist/component/{header-rac-DUt6AIAE.js → header-rac-B1hlVDf8.js} +1 -1
- package/dist/component/image-choice-rac-DQaCg_Xk.js +155 -0
- package/dist/component/{index-cZZeAuuu.js → index-BaVjVNYj.js} +2 -2
- package/dist/component/{index-CDO22hht.js → index-C1EXd9jU.js} +69 -69
- package/dist/component/{isObjectLike-cs4bARpC.js → isObjectLike-m2dqIREj.js} +3 -3
- package/dist/component/{multiline-address-field-rac-vcEWhUCV.js → multiline-address-field-rac-CMMdLb-J.js} +41 -41
- package/dist/component/{multiline-address-rac-WQaI2eUX.js → multiline-address-rac-VUQNp-Tz.js} +1 -1
- package/dist/component/{number-input-field-rac-CBUMqATk.js → number-input-field-rac-B5bsGDKm.js} +24 -24
- package/dist/component/{number-input-rac-B4j5hyzS.js → number-input-rac-BzzW0p9R.js} +1 -1
- package/dist/component/{password-rac-DwLyf45N.js → password-rac-2Rr7lvNO.js} +17 -17
- package/dist/component/{payment-input-rac-D0Od---y.js → payment-input-rac-CEUzIrJA.js} +32 -32
- package/dist/component/{phone-input-field-rac-COlu9IeC.js → phone-input-field-rac-BDBaqAzE.js} +48 -48
- package/dist/component/{phone-rac-Dh4RacOF.js → phone-rac-BTK8-tkq.js} +1 -1
- package/dist/component/{product-list-rac-D7zHDE2D.js → product-list-rac-1QbeT5RH.js} +26 -26
- package/dist/component/{quiz-radio-group-rac-1AaKphJt.js → quiz-radio-group-rac-tn2CzdCu.js} +1 -1
- package/dist/component/{radio-button-module-classes-VqaP6vpA.js → radio-button-module-classes-aK1SQcLG.js} +34 -34
- package/dist/component/{radio-group-field-rac-Cp3LRN3C.js → radio-group-field-rac-DlMXhW_S.js} +5 -5
- package/dist/component/{radio-group-rac-KhmhzYGf.js → radio-group-rac-BmU_5tBK.js} +1 -1
- package/dist/component/{rating-input-field-rac-10n6ciCr.js → rating-input-field-rac-DUPJUAX2.js} +30 -30
- package/dist/component/{rating-input-rac-XZjjY2Gp.js → rating-input-rac-BLhkZdj8.js} +1 -1
- package/dist/component/{rich-content-rac.module-kMwDoLBa.js → rich-content-rac.module-C9bGXB69.js} +5 -5
- package/dist/component/{rich-text-field-rac-H5bd8fAt.js → rich-text-field-rac-CVqmsZzZ.js} +4 -4
- package/dist/component/{rich-text-rac-88GSQR62.js → rich-text-rac-D8K6445F.js} +1 -1
- package/dist/component/{service-dropdown-rac-B1_Xr_X3.js → service-dropdown-rac-PR_iLdmo.js} +26 -26
- package/dist/component/{services-multi-choice-rac-DWp_Llbi.js → services-multi-choice-rac-BvMadJCf.js} +15 -15
- package/dist/component/{signature-rac-zN_6KRDp.js → signature-rac-Cpjv6kcl.js} +235 -235
- package/dist/component/{submit-button-rac-Dv6UarYX.js → submit-button-rac-DpDk7cMb.js} +7 -7
- package/dist/component/{tags-field-rac-sVN6MHfJ.js → tags-field-rac-DnyWNHXT.js} +75 -75
- package/dist/component/{tags-rac-DhTHs_XN.js → tags-rac-D5Do7BNm.js} +1 -1
- package/dist/component/{text-area-field-rac-DrWkww7W.js → text-area-field-rac-DLBgla0L.js} +19 -19
- package/dist/component/{text-area-rac-CXXh-ZdY.js → text-area-rac-Bfsl2gSn.js} +1 -1
- package/dist/component/{text-input-field-rac-C2YiMr-g.js → text-input-field-rac-hLsUcQNw.js} +4 -4
- package/dist/component/{text-input-headless-BJMNbsMY.js → text-input-headless-Otd7Uy7V.js} +11 -11
- package/dist/component/{text-input-rac-CpsPh7FH.js → text-input-rac-jpnc-v91.js} +1 -1
- package/dist/component/{time-input-rac-DG_1KxS4.js → time-input-rac-DnjrmZZw.js} +20 -20
- package/dist/component/url-input-field-rac-C90NYHb8.js +77 -0
- package/dist/component/{url-input-rac-BTStO0NP.js → url-input-rac-C3wfEnqs.js} +1 -1
- package/dist/component/{use-dropdown-option-class-name-DbMMg1ws.js → use-dropdown-option-class-name-CYkLlKBs.js} +12 -12
- package/dist/component/{use-dropdown-trigger-class-name-Yes4kC_0.js → use-dropdown-trigger-class-name-CTt4Z67m.js} +19 -19
- package/dist/component/{use-element-state-class-name-DlncY4hk.js → use-element-state-class-name-ByDw6j7c.js} +1 -1
- package/dist/component/{use-hoverable-input-class-name-C__zqP5j.js → use-hoverable-input-class-name-Duhgtn2I.js} +3 -3
- package/dist/component/{use-is-forced-open-dropdown-DnK_MQRO.js → use-is-forced-open-dropdown-B5gNY4Zm.js} +4 -4
- package/dist/component/{use-service-options-base-DKJe52Vk.js → use-service-options-base-DE-QaNDw.js} +3 -3
- package/dist/component/use-text-input-class-name-CmxSw6bY.js +6 -0
- package/package.json +2 -2
- package/dist/component/field-rac.module-DP0lkkEv.js +0 -25
- package/dist/component/image-choice-rac-DuBgrSt2.js +0 -155
- package/dist/component/url-input-field-rac-twxRREnl.js +0 -77
- package/dist/component/use-text-input-class-name-D9tJTR-b.js +0 -6
package/dist/component/{date-input-field-rac-D5r1n_ah.js → date-input-field-rac-lAKyuHOI.js}
RENAMED
|
@@ -1,40 +1,40 @@
|
|
|
1
1
|
import { RicosViewer as ne } from "@wix/ricos/viewer";
|
|
2
2
|
import D from "classnames";
|
|
3
|
-
import t, { useMemo as
|
|
3
|
+
import t, { useMemo as N, useState as q, useCallback as x, useRef as H } from "react";
|
|
4
4
|
import { UNSAFE_PortalProvider as re } from "react-aria";
|
|
5
|
-
import { ListBoxItem as oe, Select as se, TextField as z, SelectValue as le, Input as
|
|
6
|
-
import {
|
|
7
|
-
import { f as p, a as
|
|
8
|
-
import { g as
|
|
9
|
-
import { D as
|
|
10
|
-
import { L as
|
|
11
|
-
import { F as
|
|
12
|
-
import { N as
|
|
13
|
-
import { a as Ce } from "./use-is-forced-open-dropdown-
|
|
14
|
-
import { V as Fe, u as Ae } from "./use-dropdown-option-class-name-
|
|
5
|
+
import { ListBoxItem as oe, Select as se, TextField as z, SelectValue as le, Input as K } from "react-aria-components";
|
|
6
|
+
import { by as _, bv as W, bq as w, b3 as G, bg as Q, aS as o, bI as R, aZ as ce, b4 as ie, bn as me, bA as U, u as de, U as ue, aa as pe, w as Y, H as Ee, K as be, G as fe, v as De, x as $ } from "./form-GAuLAdjq.js";
|
|
7
|
+
import { f as p, a as B } from "./find-child-C60k4CxG.js";
|
|
8
|
+
import { g as Ie } from "./helpers-HmkkXrh2.js";
|
|
9
|
+
import { D as _e, E as Oe } from "./field-error-headless-DAc8FpKI.js";
|
|
10
|
+
import { L as ge } from "./field-label-headless-DxxwJtjh.js";
|
|
11
|
+
import { F as he } from "./fieldset-headless-CD3fds9J.js";
|
|
12
|
+
import { N as Ne, E as ye, S as Le } from "./non-modal-popover-D-u13tmp.js";
|
|
13
|
+
import { a as Ce } from "./use-is-forced-open-dropdown-B5gNY4Zm.js";
|
|
14
|
+
import { V as Fe, u as Ae } from "./use-dropdown-option-class-name-CYkLlKBs.js";
|
|
15
15
|
import { C as Te } from "./chevron-down-icon-CcpVm6B-.js";
|
|
16
16
|
import { E as Re } from "./error-icon-hZxQ6DEy.js";
|
|
17
17
|
import { H as Me } from "./custom-focus-class-_483Pkwp.js";
|
|
18
|
-
import { s as b } from "./field-rac.module-
|
|
19
|
-
import { u as
|
|
18
|
+
import { s as b } from "./field-rac.module-ts2t4WUO.js";
|
|
19
|
+
import { u as v } from "./use-hoverable-input-class-name-Duhgtn2I.js";
|
|
20
20
|
const Pe = {
|
|
21
21
|
[o.MONTH]: "bday-month",
|
|
22
22
|
[o.DAY]: "bday-day",
|
|
23
23
|
[o.YEAR]: "bday-year"
|
|
24
|
-
},
|
|
25
|
-
const { id: r, required: s, onBlur: l, onFocus: c, FieldLayout: m } =
|
|
24
|
+
}, V = (e, a) => e === "bday" ? Pe[a] : void 0, n = ({ children: e, className: a }) => {
|
|
25
|
+
const { id: r, required: s, onBlur: l, onFocus: c, FieldLayout: m } = _(), { inputId: i, labelId: d, ariaDescribedBy: u } = W(), { regionalFormat: E } = w(), f = N(() => G(E).filter(Q).map((S) => S.toUpperCase()), [
|
|
26
26
|
E
|
|
27
|
-
]),
|
|
27
|
+
]), L = p(e, n.Label), M = p(e, n.Description), P = p(e, n.Error), O = {
|
|
28
28
|
[o.MONTH]: p(e, n.Month),
|
|
29
29
|
[o.DAY]: p(e, n.Day),
|
|
30
30
|
[o.YEAR]: p(e, n.Year)
|
|
31
31
|
};
|
|
32
32
|
return /* @__PURE__ */ t.createElement(m, {
|
|
33
33
|
fieldId: r,
|
|
34
|
-
renderLabel: () =>
|
|
34
|
+
renderLabel: () => B(L, {
|
|
35
35
|
as: "div"
|
|
36
36
|
}),
|
|
37
|
-
renderInput: () => /* @__PURE__ */ t.createElement(
|
|
37
|
+
renderInput: () => /* @__PURE__ */ t.createElement(he, {
|
|
38
38
|
id: i,
|
|
39
39
|
ariaLabelledBy: d,
|
|
40
40
|
ariaDescribedBy: u,
|
|
@@ -45,51 +45,51 @@ const Pe = {
|
|
|
45
45
|
}, O[f[0]], O[f[1]], O[f[2]]),
|
|
46
46
|
renderDescription: () => /* @__PURE__ */ t.createElement(t.Fragment, null, P, M)
|
|
47
47
|
});
|
|
48
|
-
},
|
|
49
|
-
const { id: r, disabled: s, readOnly: l, showDateLabels: c, hidePlaceholder: m, autoComplete: i } =
|
|
48
|
+
}, g = ({ children: e, className: a }) => {
|
|
49
|
+
const { id: r, disabled: s, readOnly: l, showDateLabels: c, hidePlaceholder: m, autoComplete: i } = _(), { labelId: d } = h(o.MONTH), { partValue: u, partError: E, onPartChange: f } = y(o.MONTH), { t: L } = R(), [M, P] = q(!1), O = Ce(r), [S, X] = q(null), Z = m ? ye : L("field.date.placeholder.month"), j = x((A) => {
|
|
50
50
|
l || f(typeof A == "string" ? A : "");
|
|
51
51
|
}, [
|
|
52
52
|
f,
|
|
53
53
|
l
|
|
54
|
-
]),
|
|
54
|
+
]), J = x((A) => {
|
|
55
55
|
P(A && !l);
|
|
56
56
|
}, [
|
|
57
57
|
l
|
|
58
|
-
]), ee = p(e,
|
|
58
|
+
]), ee = p(e, g.Label), te = p(e, g.Trigger), ae = p(e, g.Options);
|
|
59
59
|
return /* @__PURE__ */ t.createElement("div", {
|
|
60
60
|
className: a,
|
|
61
61
|
"data-date-field": !0
|
|
62
62
|
}, c ? ee : null, /* @__PURE__ */ t.createElement("div", {
|
|
63
|
-
ref:
|
|
63
|
+
ref: X,
|
|
64
64
|
style: {
|
|
65
65
|
display: "contents"
|
|
66
66
|
}
|
|
67
67
|
}), /* @__PURE__ */ t.createElement(re, {
|
|
68
68
|
getContainer: () => S
|
|
69
69
|
}, /* @__PURE__ */ t.createElement(se, {
|
|
70
|
-
autoComplete:
|
|
70
|
+
autoComplete: V(i, o.MONTH),
|
|
71
71
|
"aria-labelledby": c ? d : void 0,
|
|
72
72
|
value: u || null,
|
|
73
73
|
onChange: j,
|
|
74
74
|
isDisabled: s,
|
|
75
75
|
isInvalid: E,
|
|
76
|
-
placeholder:
|
|
76
|
+
placeholder: Z,
|
|
77
77
|
isOpen: O || M,
|
|
78
|
-
onOpenChange: O ? void 0 :
|
|
79
|
-
}, te,
|
|
78
|
+
onOpenChange: O ? void 0 : J
|
|
79
|
+
}, te, B(ae, {
|
|
80
80
|
isForcedOpen: O
|
|
81
81
|
}))));
|
|
82
82
|
}, Se = ({ className: e }) => /* @__PURE__ */ t.createElement(k, {
|
|
83
83
|
datePart: o.MONTH,
|
|
84
84
|
className: e
|
|
85
|
-
}),
|
|
86
|
-
const { id: r, readOnly: s } =
|
|
87
|
-
return
|
|
85
|
+
}), Ye = ({ children: e, className: a }) => {
|
|
86
|
+
const { id: r, readOnly: s } = _(), { inputId: l } = h(o.MONTH), { partError: c, isFirstPart: m } = y(o.MONTH), i = H(null);
|
|
87
|
+
return U(() => {
|
|
88
88
|
var d;
|
|
89
89
|
m && ((d = i.current) == null || d.focus({
|
|
90
90
|
preventScroll: !0
|
|
91
91
|
}));
|
|
92
|
-
}, r), /* @__PURE__ */ t.createElement(
|
|
92
|
+
}, r), /* @__PURE__ */ t.createElement(Le, {
|
|
93
93
|
ref: i,
|
|
94
94
|
id: l,
|
|
95
95
|
className: a,
|
|
@@ -98,22 +98,22 @@ const Pe = {
|
|
|
98
98
|
"data-readonly": s || void 0
|
|
99
99
|
}, /* @__PURE__ */ t.createElement(le, null), e);
|
|
100
100
|
}, T = ({ children: e, className: a, ...r }) => {
|
|
101
|
-
const { isForcedOpen: s } = r, { language: l } =
|
|
101
|
+
const { isForcedOpen: s } = r, { language: l } = w(), c = N(() => Ie(l), [
|
|
102
102
|
l
|
|
103
103
|
]), m = p(e, T.Option) ?? /* @__PURE__ */ t.createElement(T.Option, null);
|
|
104
|
-
return /* @__PURE__ */ t.createElement(
|
|
104
|
+
return /* @__PURE__ */ t.createElement(Ne, {
|
|
105
105
|
className: a,
|
|
106
106
|
containerPadding: 0,
|
|
107
107
|
offset: 0
|
|
108
108
|
}, /* @__PURE__ */ t.createElement(Fe, {
|
|
109
109
|
isForcedOpen: s,
|
|
110
110
|
autoFocus: s ? !1 : void 0
|
|
111
|
-
}, c.map((i, d) =>
|
|
111
|
+
}, c.map((i, d) => B(m, {
|
|
112
112
|
key: String(d + 1),
|
|
113
113
|
value: String(d + 1),
|
|
114
114
|
label: i
|
|
115
115
|
}))));
|
|
116
|
-
},
|
|
116
|
+
}, ve = ({ className: e, ...a }) => {
|
|
117
117
|
const { value: r, label: s } = a;
|
|
118
118
|
return /* @__PURE__ */ t.createElement(oe, {
|
|
119
119
|
className: e,
|
|
@@ -121,12 +121,12 @@ const Pe = {
|
|
|
121
121
|
textValue: s
|
|
122
122
|
}, s);
|
|
123
123
|
};
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
T.Option =
|
|
124
|
+
g.Label = Se;
|
|
125
|
+
g.Trigger = Ye;
|
|
126
|
+
g.Options = T;
|
|
127
|
+
T.Option = ve;
|
|
128
128
|
const C = ({ children: e, className: a }) => {
|
|
129
|
-
const { disabled: r, readOnly: s, showDateLabels: l } =
|
|
129
|
+
const { disabled: r, readOnly: s, showDateLabels: l } = _(), { labelId: c } = h(o.DAY), { partValue: m, partError: i, onPartChange: d } = y(o.DAY), u = p(e, C.Label), E = p(e, C.Input);
|
|
130
130
|
return /* @__PURE__ */ t.createElement("div", {
|
|
131
131
|
className: a,
|
|
132
132
|
"data-date-field": !0
|
|
@@ -138,31 +138,31 @@ const C = ({ children: e, className: a }) => {
|
|
|
138
138
|
isReadOnly: s,
|
|
139
139
|
isInvalid: i
|
|
140
140
|
}, E));
|
|
141
|
-
},
|
|
141
|
+
}, xe = ({ className: e }) => /* @__PURE__ */ t.createElement(k, {
|
|
142
142
|
datePart: o.DAY,
|
|
143
143
|
className: e
|
|
144
|
-
}),
|
|
145
|
-
const { id: a, hidePlaceholder: r, autoComplete: s } =
|
|
146
|
-
return
|
|
144
|
+
}), He = ({ className: e }) => {
|
|
145
|
+
const { id: a, hidePlaceholder: r, autoComplete: s } = _(), { inputId: l } = h(o.DAY), { isFirstPart: c } = y(o.DAY), { t: m } = R(), i = H(null), d = r ? void 0 : m("field.date.placeholder.day");
|
|
146
|
+
return U(() => {
|
|
147
147
|
var u;
|
|
148
148
|
c && ((u = i.current) == null || u.focus({
|
|
149
149
|
preventScroll: !0
|
|
150
150
|
}));
|
|
151
|
-
}, a), /* @__PURE__ */ t.createElement(
|
|
151
|
+
}, a), /* @__PURE__ */ t.createElement(K, {
|
|
152
152
|
ref: i,
|
|
153
153
|
id: l,
|
|
154
154
|
className: e,
|
|
155
155
|
placeholder: d,
|
|
156
|
-
autoComplete:
|
|
156
|
+
autoComplete: V(s, o.DAY),
|
|
157
157
|
maxLength: 2,
|
|
158
158
|
inputMode: "numeric",
|
|
159
159
|
"data-hook": o.DAY
|
|
160
160
|
});
|
|
161
161
|
};
|
|
162
|
-
C.Label =
|
|
163
|
-
C.Input =
|
|
162
|
+
C.Label = xe;
|
|
163
|
+
C.Input = He;
|
|
164
164
|
const F = ({ children: e, className: a }) => {
|
|
165
|
-
const { disabled: r, readOnly: s, showDateLabels: l } =
|
|
165
|
+
const { disabled: r, readOnly: s, showDateLabels: l } = _(), { labelId: c } = h(o.YEAR), { partValue: m, partError: i, onPartChange: d } = y(o.YEAR), u = p(e, F.Label), E = p(e, F.Input);
|
|
166
166
|
return /* @__PURE__ */ t.createElement("div", {
|
|
167
167
|
className: a,
|
|
168
168
|
"data-date-field": !0
|
|
@@ -174,38 +174,38 @@ const F = ({ children: e, className: a }) => {
|
|
|
174
174
|
isReadOnly: s,
|
|
175
175
|
isInvalid: i
|
|
176
176
|
}, E));
|
|
177
|
-
},
|
|
177
|
+
}, we = ({ className: e }) => /* @__PURE__ */ t.createElement(k, {
|
|
178
178
|
datePart: o.YEAR,
|
|
179
179
|
className: e
|
|
180
|
-
}),
|
|
181
|
-
const { id: a, hidePlaceholder: r, autoComplete: s } =
|
|
182
|
-
return
|
|
180
|
+
}), Ue = ({ className: e }) => {
|
|
181
|
+
const { id: a, hidePlaceholder: r, autoComplete: s } = _(), { inputId: l } = h(o.YEAR), { isFirstPart: c } = y(o.YEAR), { t: m } = R(), i = H(null), d = r ? void 0 : m("field.date.placeholder.year");
|
|
182
|
+
return U(() => {
|
|
183
183
|
var u;
|
|
184
184
|
c && ((u = i.current) == null || u.focus({
|
|
185
185
|
preventScroll: !0
|
|
186
186
|
}));
|
|
187
|
-
}, a), /* @__PURE__ */ t.createElement(
|
|
187
|
+
}, a), /* @__PURE__ */ t.createElement(K, {
|
|
188
188
|
ref: i,
|
|
189
189
|
id: l,
|
|
190
190
|
className: e,
|
|
191
191
|
placeholder: d,
|
|
192
|
-
autoComplete:
|
|
192
|
+
autoComplete: V(s, o.YEAR),
|
|
193
193
|
maxLength: 4,
|
|
194
194
|
inputMode: "numeric",
|
|
195
195
|
"data-hook": o.YEAR
|
|
196
196
|
});
|
|
197
197
|
};
|
|
198
|
-
F.Label =
|
|
199
|
-
F.Input =
|
|
200
|
-
n.Label =
|
|
201
|
-
n.Month =
|
|
198
|
+
F.Label = we;
|
|
199
|
+
F.Input = Ue;
|
|
200
|
+
n.Label = ge;
|
|
201
|
+
n.Month = g;
|
|
202
202
|
n.Day = C;
|
|
203
203
|
n.Year = F;
|
|
204
|
-
n.Description =
|
|
204
|
+
n.Description = _e;
|
|
205
205
|
n.Error = Oe;
|
|
206
|
-
function
|
|
207
|
-
const { inputId: a } =
|
|
208
|
-
return
|
|
206
|
+
function h(e) {
|
|
207
|
+
const { inputId: a } = W();
|
|
208
|
+
return N(() => {
|
|
209
209
|
const r = e.toLowerCase();
|
|
210
210
|
return {
|
|
211
211
|
inputId: `${a}-${r}-input`,
|
|
@@ -216,20 +216,20 @@ function N(e) {
|
|
|
216
216
|
e
|
|
217
217
|
]);
|
|
218
218
|
}
|
|
219
|
-
function
|
|
220
|
-
const { value: a, onChange: r, hasError: s = !1 } =
|
|
219
|
+
function y(e) {
|
|
220
|
+
const { value: a, onChange: r, hasError: s = !1 } = _(), { regionalFormat: l } = w(), c = N(() => ce(a ?? ""), [
|
|
221
221
|
a
|
|
222
|
-
]), m =
|
|
222
|
+
]), m = N(() => ie(s, a ?? ""), [
|
|
223
223
|
a,
|
|
224
224
|
s
|
|
225
|
-
]), i = c[e] || "", d =
|
|
225
|
+
]), i = c[e] || "", d = x((E) => {
|
|
226
226
|
const f = me(E, e, c);
|
|
227
227
|
r(f);
|
|
228
228
|
}, [
|
|
229
229
|
r,
|
|
230
230
|
c,
|
|
231
231
|
e
|
|
232
|
-
]), u =
|
|
232
|
+
]), u = N(() => G(l).filter(Q).map((L) => L.toUpperCase())[0] === e, [
|
|
233
233
|
l,
|
|
234
234
|
e
|
|
235
235
|
]);
|
|
@@ -241,43 +241,43 @@ function L(e) {
|
|
|
241
241
|
};
|
|
242
242
|
}
|
|
243
243
|
function k({ datePart: e, className: a }) {
|
|
244
|
-
const { inputId: r, labelId: s } =
|
|
244
|
+
const { inputId: r, labelId: s } = h(e), { t: l } = R(), c = `field.date.label.${e.toLowerCase()}`, m = l(c);
|
|
245
245
|
return /* @__PURE__ */ t.createElement("label", {
|
|
246
246
|
id: s,
|
|
247
247
|
htmlFor: r,
|
|
248
248
|
className: a
|
|
249
249
|
}, m);
|
|
250
250
|
}
|
|
251
|
-
const
|
|
252
|
-
fields:
|
|
253
|
-
month:
|
|
251
|
+
const Be = "_fields_b2cgx_1", Ve = "_month_b2cgx_10", ke = "_day_b2cgx_11", qe = "_year_b2cgx_12", $e = "_dayInput_b2cgx_28", ze = "_yearInput_b2cgx_29", Ke = "_monthTrigger_b2cgx_33", We = "_monthOption_b2cgx_53", I = {
|
|
252
|
+
fields: Be,
|
|
253
|
+
month: Ve,
|
|
254
254
|
day: ke,
|
|
255
|
-
year:
|
|
256
|
-
dayInput:
|
|
255
|
+
year: qe,
|
|
256
|
+
dayInput: $e,
|
|
257
257
|
yearInput: ze,
|
|
258
|
-
monthTrigger:
|
|
259
|
-
monthOption:
|
|
258
|
+
monthTrigger: Ke,
|
|
259
|
+
monthOption: We
|
|
260
260
|
}, Ge = ({ content: e, locale: a }) => /* @__PURE__ */ t.createElement(ne, {
|
|
261
261
|
content: e,
|
|
262
262
|
locale: a
|
|
263
263
|
}), Et = () => {
|
|
264
|
-
const e =
|
|
265
|
-
|
|
266
|
-
]), a = Ae(
|
|
267
|
-
|
|
268
|
-
]), s =
|
|
269
|
-
|
|
264
|
+
const e = v(De, [
|
|
265
|
+
I.monthTrigger
|
|
266
|
+
]), a = Ae(I.monthOption, Me), r = v($, [
|
|
267
|
+
I.dayInput
|
|
268
|
+
]), s = v($, [
|
|
269
|
+
I.yearInput
|
|
270
270
|
]);
|
|
271
271
|
return /* @__PURE__ */ t.createElement(n, {
|
|
272
|
-
className: D(de,
|
|
272
|
+
className: D(de, I.fields)
|
|
273
273
|
}, /* @__PURE__ */ t.createElement(n.Label, {
|
|
274
274
|
className: D(ue, b.label)
|
|
275
275
|
}, /* @__PURE__ */ t.createElement(n.Label.Required, {
|
|
276
276
|
className: D(pe, b.requiredMark)
|
|
277
277
|
})), /* @__PURE__ */ t.createElement(n.Month, {
|
|
278
|
-
className:
|
|
278
|
+
className: I.month
|
|
279
279
|
}, /* @__PURE__ */ t.createElement(n.Month.Label, {
|
|
280
|
-
className: D(
|
|
280
|
+
className: D(Y, b.label)
|
|
281
281
|
}), /* @__PURE__ */ t.createElement(n.Month.Trigger, {
|
|
282
282
|
className: e
|
|
283
283
|
}, /* @__PURE__ */ t.createElement(Te, {
|
|
@@ -287,15 +287,15 @@ const Ve = "_fields_1mv4t_1", xe = "_month_1mv4t_10", ke = "_day_1mv4t_11", $e =
|
|
|
287
287
|
}, /* @__PURE__ */ t.createElement(n.Month.Options.Option, {
|
|
288
288
|
className: a
|
|
289
289
|
}))), /* @__PURE__ */ t.createElement(n.Day, {
|
|
290
|
-
className:
|
|
290
|
+
className: I.day
|
|
291
291
|
}, /* @__PURE__ */ t.createElement(n.Day.Label, {
|
|
292
|
-
className: D(
|
|
292
|
+
className: D(Y, b.label)
|
|
293
293
|
}), /* @__PURE__ */ t.createElement(n.Day.Input, {
|
|
294
294
|
className: r
|
|
295
295
|
})), /* @__PURE__ */ t.createElement(n.Year, {
|
|
296
|
-
className:
|
|
296
|
+
className: I.year
|
|
297
297
|
}, /* @__PURE__ */ t.createElement(n.Year.Label, {
|
|
298
|
-
className: D(
|
|
298
|
+
className: D(Y, b.label)
|
|
299
299
|
}), /* @__PURE__ */ t.createElement(n.Year.Input, {
|
|
300
300
|
className: s
|
|
301
301
|
})), /* @__PURE__ */ t.createElement(n.Error, {
|
package/dist/component/{date-picker-field-rac-CeG391Zo.js → date-picker-field-rac-h45jfoso.js}
RENAMED
|
@@ -3,20 +3,20 @@ import p from "classnames";
|
|
|
3
3
|
import e, { useState as L, useCallback as k, useContext as ee, useRef as A, useMemo as v } 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 le, Group as oe, 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 f,
|
|
8
|
-
import { g as he, c as P } from "./calendar.module-
|
|
9
|
-
import { f as E, a as
|
|
10
|
-
import { D as Ne, E as Te } from "./field-error-headless-
|
|
11
|
-
import { L as
|
|
6
|
+
import { I18nProvider as ae, DatePicker as ne, DatePickerStateContext as le, Group as oe, 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 x, SelectValue as Y, ListBox as w, ListBoxItem as B } from "react-aria-components";
|
|
7
|
+
import { D as f, by as h, bv as U, bq as F, bA as pe, U as fe, aa as De, z as Ce, K as ye, G as Se, y as _e } from "./form-GAuLAdjq.js";
|
|
8
|
+
import { g as he, c as P } from "./calendar.module-BMUyMVja.js";
|
|
9
|
+
import { f as E, a as _ } from "./find-child-C60k4CxG.js";
|
|
10
|
+
import { D as Ne, E as Te } from "./field-error-headless-DAc8FpKI.js";
|
|
11
|
+
import { L as be } from "./field-label-headless-DxxwJtjh.js";
|
|
12
12
|
import { D as ve, N as O, S as V } from "./non-modal-popover-D-u13tmp.js";
|
|
13
|
-
import { u as Ie } from "./use-is-forced-open-dropdown-
|
|
14
|
-
import { i as Fe } from "./date-availability-
|
|
13
|
+
import { u as Ie } from "./use-is-forced-open-dropdown-B5gNY4Zm.js";
|
|
14
|
+
import { i as Fe } from "./date-availability-Va6_2NAZ.js";
|
|
15
15
|
import { C as I } from "./chevron-down-icon-CcpVm6B-.js";
|
|
16
16
|
import { E as Oe } from "./error-icon-hZxQ6DEy.js";
|
|
17
17
|
import { H as Le } from "./custom-focus-class-_483Pkwp.js";
|
|
18
|
-
import { s as D } from "./field-rac.module-
|
|
19
|
-
import { u as Ae } from "./use-hoverable-input-class-name-
|
|
18
|
+
import { s as D } from "./field-rac.module-ts2t4WUO.js";
|
|
19
|
+
import { u as Ae } from "./use-hoverable-input-class-name-Duhgtn2I.js";
|
|
20
20
|
const Pe = [
|
|
21
21
|
f.SUNDAY,
|
|
22
22
|
f.MONDAY,
|
|
@@ -28,15 +28,15 @@ const Pe = [
|
|
|
28
28
|
], Re = {
|
|
29
29
|
availableDays: Pe
|
|
30
30
|
}, a = ({ children: t }) => {
|
|
31
|
-
const { id: r, value: l, onChange: n, disabled: i, required: c, onBlur: u, onFocus: o, FieldLayout: m, hasError: d, readOnly: C } = h(), { labelId: y } = U(), { regionalFormat: N } = F(), [s, T] = L(null), [
|
|
32
|
-
const J =
|
|
31
|
+
const { id: r, value: l, onChange: n, disabled: i, required: c, onBlur: u, onFocus: o, FieldLayout: m, hasError: d, readOnly: C } = h(), { labelId: y } = U(), { regionalFormat: N } = F(), [s, T] = L(null), [K, W] = L(!1), b = Ie(r), H = k((Z) => {
|
|
32
|
+
const J = He(Z);
|
|
33
33
|
n(J);
|
|
34
34
|
}, [
|
|
35
35
|
n
|
|
36
|
-
]),
|
|
36
|
+
]), $ = E(t, a.Label), q = E(t, a.Control), G = E(t, a.Calendar), j = E(t, a.Description), z = E(t, a.Error), Q = We(l);
|
|
37
37
|
return /* @__PURE__ */ e.createElement(m, {
|
|
38
38
|
fieldId: r,
|
|
39
|
-
renderLabel: () =>
|
|
39
|
+
renderLabel: () => $,
|
|
40
40
|
renderInput: () => /* @__PURE__ */ e.createElement(ae, {
|
|
41
41
|
locale: N
|
|
42
42
|
}, /* @__PURE__ */ e.createElement("div", {
|
|
@@ -49,19 +49,19 @@ const Pe = [
|
|
|
49
49
|
}, /* @__PURE__ */ e.createElement(ne, {
|
|
50
50
|
"aria-labelledby": y,
|
|
51
51
|
value: Q,
|
|
52
|
-
onChange:
|
|
52
|
+
onChange: H,
|
|
53
53
|
isDisabled: i,
|
|
54
54
|
isInvalid: d,
|
|
55
55
|
isReadOnly: C,
|
|
56
56
|
isRequired: c,
|
|
57
57
|
onBlur: u,
|
|
58
58
|
onFocus: o,
|
|
59
|
-
isOpen:
|
|
60
|
-
onOpenChange:
|
|
61
|
-
},
|
|
62
|
-
isForcedOpen:
|
|
59
|
+
isOpen: b || K,
|
|
60
|
+
onOpenChange: b ? void 0 : W
|
|
61
|
+
}, q, _(G, {
|
|
62
|
+
isForcedOpen: b
|
|
63
63
|
})))),
|
|
64
|
-
renderDescription: () => /* @__PURE__ */ e.createElement(e.Fragment, null, z,
|
|
64
|
+
renderDescription: () => /* @__PURE__ */ e.createElement(e.Fragment, null, z, j)
|
|
65
65
|
});
|
|
66
66
|
}, ke = ({ children: t, className: r }) => {
|
|
67
67
|
const { inputId: l, ariaDescribedBy: n } = U(), { hasError: i, disabled: c, readOnly: u } = h(), o = ee(le), m = k((d) => {
|
|
@@ -84,7 +84,7 @@ const Pe = [
|
|
|
84
84
|
"data-invalid": i,
|
|
85
85
|
onClick: m
|
|
86
86
|
}, t);
|
|
87
|
-
},
|
|
87
|
+
}, Me = ({ className: t }) => {
|
|
88
88
|
const { id: r, placeholder: l } = h(), { regionalFormat: n } = F(), i = A(null), c = A(!1);
|
|
89
89
|
pe(() => {
|
|
90
90
|
var o;
|
|
@@ -92,7 +92,7 @@ const Pe = [
|
|
|
92
92
|
preventScroll: !0
|
|
93
93
|
});
|
|
94
94
|
}, r);
|
|
95
|
-
const u = v(() =>
|
|
95
|
+
const u = v(() => $e(n), [
|
|
96
96
|
n
|
|
97
97
|
]);
|
|
98
98
|
return /* @__PURE__ */ e.createElement(se, {
|
|
@@ -115,7 +115,7 @@ const Pe = [
|
|
|
115
115
|
}
|
|
116
116
|
}, (d) => !d.isPlaceholder || !l ? d.text : m ? l : d.text);
|
|
117
117
|
});
|
|
118
|
-
},
|
|
118
|
+
}, xe = ({ children: t, className: r }) => /* @__PURE__ */ e.createElement(ve, {
|
|
119
119
|
className: r
|
|
120
120
|
}, t), g = ({ children: t, className: r, ...l }) => {
|
|
121
121
|
const { isForcedOpen: n } = l, { regionalFormat: i } = F(), { availability: c } = h(), u = v(() => he(i), [
|
|
@@ -133,9 +133,9 @@ const Pe = [
|
|
|
133
133
|
isForcedOpen: n
|
|
134
134
|
}, /* @__PURE__ */ e.createElement(ie, {
|
|
135
135
|
autoFocus: n ? !1 : void 0,
|
|
136
|
-
firstDayOfWeek:
|
|
136
|
+
firstDayOfWeek: qe(u),
|
|
137
137
|
isDateUnavailable: o
|
|
138
|
-
}, /* @__PURE__ */ e.createElement("header", null, d, /* @__PURE__ */ e.createElement(me, null, (s) =>
|
|
138
|
+
}, /* @__PURE__ */ e.createElement("header", null, d, /* @__PURE__ */ e.createElement(me, null, (s) => _(y, {
|
|
139
139
|
ariaLabel: s["aria-label"],
|
|
140
140
|
selectedKey: s.value,
|
|
141
141
|
onSelectionChange: s.onChange,
|
|
@@ -143,7 +143,7 @@ const Pe = [
|
|
|
143
143
|
popoverClassName: r
|
|
144
144
|
})), /* @__PURE__ */ e.createElement(de, {
|
|
145
145
|
visibleYears: 100
|
|
146
|
-
}, (s) =>
|
|
146
|
+
}, (s) => _(N, {
|
|
147
147
|
ariaLabel: s["aria-label"],
|
|
148
148
|
selectedKey: s.value,
|
|
149
149
|
onSelectionChange: s.onChange,
|
|
@@ -151,7 +151,7 @@ const Pe = [
|
|
|
151
151
|
popoverClassName: r
|
|
152
152
|
})), C), /* @__PURE__ */ e.createElement(ue, {
|
|
153
153
|
weekdayStyle: "short"
|
|
154
|
-
}, (s) =>
|
|
154
|
+
}, (s) => _(m, {
|
|
155
155
|
date: s
|
|
156
156
|
})))));
|
|
157
157
|
}, Ye = ({ isForcedOpen: t, children: r }) => t ? /* @__PURE__ */ e.createElement("div", {
|
|
@@ -162,15 +162,15 @@ const Pe = [
|
|
|
162
162
|
className: r,
|
|
163
163
|
date: n
|
|
164
164
|
}, t);
|
|
165
|
-
}, Be = ({ children: t, className: r }) => /* @__PURE__ */ e.createElement(
|
|
165
|
+
}, Be = ({ children: t, className: r }) => /* @__PURE__ */ e.createElement(M, {
|
|
166
166
|
slot: "previous",
|
|
167
167
|
className: r
|
|
168
|
-
}, t), Ue = ({ children: t, className: r }) => /* @__PURE__ */ e.createElement(
|
|
168
|
+
}, t), Ue = ({ children: t, className: r }) => /* @__PURE__ */ e.createElement(M, {
|
|
169
169
|
slot: "next",
|
|
170
170
|
className: r
|
|
171
171
|
}, t), Ve = ({ children: t, className: r, ...l }) => {
|
|
172
172
|
const { ariaLabel: n, selectedKey: i, onSelectionChange: c, items: u, popoverClassName: o } = l;
|
|
173
|
-
return /* @__PURE__ */ e.createElement(
|
|
173
|
+
return /* @__PURE__ */ e.createElement(x, {
|
|
174
174
|
"aria-label": n,
|
|
175
175
|
selectedKey: i,
|
|
176
176
|
onSelectionChange: c
|
|
@@ -184,9 +184,9 @@ const Pe = [
|
|
|
184
184
|
}, (m) => /* @__PURE__ */ e.createElement(B, {
|
|
185
185
|
id: m.id
|
|
186
186
|
}, m.formatted))));
|
|
187
|
-
},
|
|
187
|
+
}, Ke = ({ children: t, className: r, ...l }) => {
|
|
188
188
|
const { ariaLabel: n, selectedKey: i, onSelectionChange: c, items: u, popoverClassName: o } = l;
|
|
189
|
-
return /* @__PURE__ */ e.createElement(
|
|
189
|
+
return /* @__PURE__ */ e.createElement(x, {
|
|
190
190
|
"aria-label": n,
|
|
191
191
|
selectedKey: i,
|
|
192
192
|
onSelectionChange: c
|
|
@@ -205,15 +205,15 @@ g.Day = we;
|
|
|
205
205
|
g.PreviousTrigger = Be;
|
|
206
206
|
g.NextTrigger = Ue;
|
|
207
207
|
g.MonthTrigger = Ve;
|
|
208
|
-
g.YearTrigger =
|
|
209
|
-
a.Label =
|
|
208
|
+
g.YearTrigger = Ke;
|
|
209
|
+
a.Label = be;
|
|
210
210
|
a.Control = ke;
|
|
211
|
-
a.Input =
|
|
212
|
-
a.Trigger =
|
|
211
|
+
a.Input = Me;
|
|
212
|
+
a.Trigger = xe;
|
|
213
213
|
a.Calendar = g;
|
|
214
214
|
a.Description = Ne;
|
|
215
215
|
a.Error = Te;
|
|
216
|
-
function
|
|
216
|
+
function We(t) {
|
|
217
217
|
if (!t)
|
|
218
218
|
return null;
|
|
219
219
|
try {
|
|
@@ -222,13 +222,13 @@ function Ke(t) {
|
|
|
222
222
|
return null;
|
|
223
223
|
}
|
|
224
224
|
}
|
|
225
|
-
function
|
|
225
|
+
function He(t) {
|
|
226
226
|
if (!t)
|
|
227
227
|
return null;
|
|
228
228
|
const r = String(t.year).padStart(4, "0"), l = String(t.month).padStart(2, "0"), n = String(t.day).padStart(2, "0");
|
|
229
229
|
return `${r}-${l}-${n}`;
|
|
230
230
|
}
|
|
231
|
-
function
|
|
231
|
+
function $e(t) {
|
|
232
232
|
var r;
|
|
233
233
|
try {
|
|
234
234
|
return ((r = new Intl.DateTimeFormat(t, {
|
|
@@ -240,7 +240,7 @@ function He(t) {
|
|
|
240
240
|
return "month";
|
|
241
241
|
}
|
|
242
242
|
}
|
|
243
|
-
function
|
|
243
|
+
function qe(t) {
|
|
244
244
|
return [
|
|
245
245
|
"sun",
|
|
246
246
|
"mon",
|
|
@@ -251,7 +251,7 @@ function $e(t) {
|
|
|
251
251
|
"sat"
|
|
252
252
|
][t] || "mon";
|
|
253
253
|
}
|
|
254
|
-
const
|
|
254
|
+
const Ge = (t) => /* @__PURE__ */ e.createElement("svg", {
|
|
255
255
|
viewBox: "0 0 24 24",
|
|
256
256
|
fill: "none",
|
|
257
257
|
width: 14,
|
|
@@ -264,8 +264,8 @@ const qe = (t) => /* @__PURE__ */ e.createElement("svg", {
|
|
|
264
264
|
strokeWidth: "1.5",
|
|
265
265
|
strokeLinecap: "round",
|
|
266
266
|
strokeLinejoin: "round"
|
|
267
|
-
})),
|
|
268
|
-
control:
|
|
267
|
+
})), je = "_control_1le52_1", ze = "_segments_1le52_14", Qe = "_trigger_1le52_72", Ze = "_calendarPopover_1le52_103 _textOnFillOptions_vf5u1_8", Je = "_calendarDay_1le52_246", Xe = "_dayNumber_1le52_253", S = {
|
|
268
|
+
control: je,
|
|
269
269
|
segments: ze,
|
|
270
270
|
trigger: Qe,
|
|
271
271
|
calendarPopover: Ze,
|
|
@@ -281,9 +281,9 @@ const qe = (t) => /* @__PURE__ */ e.createElement("svg", {
|
|
|
281
281
|
style: {
|
|
282
282
|
transform: `rotate(${tt[t]}deg)`
|
|
283
283
|
}
|
|
284
|
-
}),
|
|
285
|
-
const t = Ae(
|
|
286
|
-
|
|
284
|
+
}), _t = () => {
|
|
285
|
+
const t = Ae(_e, [
|
|
286
|
+
S.control
|
|
287
287
|
]);
|
|
288
288
|
return /* @__PURE__ */ e.createElement(a, null, /* @__PURE__ */ e.createElement(a.Label, {
|
|
289
289
|
className: p(fe, D.label)
|
|
@@ -292,11 +292,11 @@ const qe = (t) => /* @__PURE__ */ e.createElement("svg", {
|
|
|
292
292
|
})), /* @__PURE__ */ e.createElement(a.Control, {
|
|
293
293
|
className: t
|
|
294
294
|
}, /* @__PURE__ */ e.createElement(a.Trigger, {
|
|
295
|
-
className:
|
|
296
|
-
}, /* @__PURE__ */ e.createElement(
|
|
297
|
-
className:
|
|
295
|
+
className: S.trigger
|
|
296
|
+
}, /* @__PURE__ */ e.createElement(Ge, null)), /* @__PURE__ */ e.createElement(a.Input, {
|
|
297
|
+
className: S.segments
|
|
298
298
|
})), /* @__PURE__ */ e.createElement(a.Calendar, {
|
|
299
|
-
className: p(Ce, D.selectPopover,
|
|
299
|
+
className: p(Ce, D.selectPopover, S.calendarPopover)
|
|
300
300
|
}, /* @__PURE__ */ e.createElement(a.Calendar.PreviousTrigger, null, /* @__PURE__ */ e.createElement(R, {
|
|
301
301
|
direction: "left"
|
|
302
302
|
})), /* @__PURE__ */ e.createElement(a.Calendar.MonthTrigger, null, /* @__PURE__ */ e.createElement(I, {
|
|
@@ -306,15 +306,15 @@ const qe = (t) => /* @__PURE__ */ e.createElement("svg", {
|
|
|
306
306
|
})), /* @__PURE__ */ e.createElement(a.Calendar.NextTrigger, null, /* @__PURE__ */ e.createElement(R, {
|
|
307
307
|
direction: "right"
|
|
308
308
|
})), /* @__PURE__ */ e.createElement(a.Calendar.Day, {
|
|
309
|
-
className: p(Le, P.day,
|
|
309
|
+
className: p(Le, P.day, S.calendarDay)
|
|
310
310
|
}, ({ formattedDate: r }) => /* @__PURE__ */ e.createElement("span", {
|
|
311
|
-
className: p(P.dayNumber,
|
|
311
|
+
className: p(P.dayNumber, S.dayNumber)
|
|
312
312
|
}, r))), /* @__PURE__ */ e.createElement(a.Error, {
|
|
313
313
|
className: p(ye, D.error)
|
|
314
314
|
}, /* @__PURE__ */ e.createElement(Oe, null), /* @__PURE__ */ e.createElement(a.Error.Text, null)), /* @__PURE__ */ e.createElement(a.Description, {
|
|
315
|
-
className: p(
|
|
315
|
+
className: p(Se, D.description)
|
|
316
316
|
}, et));
|
|
317
317
|
};
|
|
318
318
|
export {
|
|
319
|
-
|
|
319
|
+
_t as D
|
|
320
320
|
};
|