@wix/form-elements 1.145.0 → 1.147.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-De-uH9rz.js → appointment-rac-BG5-bIZU.js} +98 -98
- package/dist/component/{bookings-address-rac-DB6QCMQJ.js → bookings-address-rac-8e8PqKsp.js} +1 -1
- package/dist/component/{bookings-email-rac-g6ZdB_BO.js → bookings-email-rac-CtlnU8ws.js} +1 -1
- package/dist/component/{bookings-first-name-rac-DQgL_VHl.js → bookings-first-name-rac-CrivNlXM.js} +1 -1
- package/dist/component/{bookings-header-rac-DAnIm-Oq.js → bookings-header-rac-DWDAjfqq.js} +1 -1
- package/dist/component/{bookings-last-name-rac-D62jNdDb.js → bookings-last-name-rac-qAthWem2.js} +1 -1
- package/dist/component/{bookings-login-bar-rac-5z8HfBhU.js → bookings-login-bar-rac-BNyUDqlM.js} +6 -6
- package/dist/component/{bookings-phone-rac-D0gu-_wy.js → bookings-phone-rac-Tc39XLr7.js} +1 -1
- package/dist/component/{bookings-rich-text-rac-b4J1HcdI.js → bookings-rich-text-rac-CPNaPtFK.js} +1 -1
- package/dist/component/{checkbox-field-rac-CmRRc9Dz.js → checkbox-field-rac-DEa78Tpf.js} +4 -4
- package/dist/component/{checkbox-group-field-headless-CB8yAfMe.js → checkbox-group-field-headless-BxBaMg29.js} +68 -68
- package/dist/component/{checkbox-group-field-rac-C5gRZRTd.js → checkbox-group-field-rac-CRRP03Qk.js} +7 -7
- package/dist/component/{checkbox-group-rac-DNDF1Irh.js → checkbox-group-rac-TOofMGl3.js} +1 -1
- package/dist/component/{checkbox-rac-B9vztGBU.js → checkbox-rac-CHMHr8Ry.js} +1 -1
- package/dist/component/{contacts-address-rac-CKZeSncj.js → contacts-address-rac-Bc5yDvTL.js} +1 -1
- package/dist/component/{contacts-birthdate-rac-BbpNNQgF.js → contacts-birthdate-rac-Ubtg5ncv.js} +1 -1
- package/dist/component/{contacts-company-rac-BX2KT201.js → contacts-company-rac-BksH9IoV.js} +1 -1
- package/dist/component/{contacts-email-rac-5Irzx1mA.js → contacts-email-rac-DDPEtMAm.js} +1 -1
- package/dist/component/{contacts-first-name-rac-CxKp8_2u.js → contacts-first-name-rac-DUlCvEdx.js} +1 -1
- package/dist/component/{contacts-last-name-rac-BDCbSv5I.js → contacts-last-name-rac-BikqNgUr.js} +1 -1
- package/dist/component/{contacts-phone-rac-BM_PV_uH.js → contacts-phone-rac-B4OEgM_8.js} +1 -1
- package/dist/component/{contacts-position-rac-1aqthQSi.js → contacts-position-rac-BfybzySV.js} +1 -1
- package/dist/component/{contacts-subscribe-rac-CdqXs4kp.js → contacts-subscribe-rac-CMHb33v1.js} +1 -1
- package/dist/component/{contacts-tax-id-rac-BKHpcDb6.js → contacts-tax-id-rac-C-qEqwO5.js} +1 -1
- package/dist/component/{date-availability-DmFFTX8p.js → date-availability-DZ3J3LLm.js} +1 -1
- package/dist/component/date-input-field-rac-DeL5vuE7.js +297 -0
- package/dist/component/{date-input-rac-BB6qZ16w.js → date-input-rac-Di6TQvFf.js} +1 -1
- package/dist/component/{date-picker-field-rac-Ckwu2vD6.js → date-picker-field-rac-BcdpTkjV.js} +107 -103
- package/dist/component/{date-picker-rac-DSqzUAaH.js → date-picker-rac-Brne65gr.js} +1 -1
- package/dist/component/{date-time-input-field-rac-DO-iRdkW.js → date-time-input-field-rac-BtQfAxRp.js} +49 -49
- package/dist/component/{date-time-input-rac-smVCCxdY.js → date-time-input-rac-DM_HXiqV.js} +1 -1
- package/dist/component/{dext-checkbox-group-rac-B8bx3rT2.js → dext-checkbox-group-rac-WTVwhGG0.js} +2 -2
- package/dist/component/{dext-checkbox-rac-x8VLGRbc.js → dext-checkbox-rac-BR5YwmLQ.js} +1 -1
- package/dist/component/{dext-date-picker-rac-D2a9NXap.js → dext-date-picker-rac-DvDuRGYi.js} +1 -1
- package/dist/component/{dext-date-time-input-rac-Cp5XjpGv.js → dext-date-time-input-rac-C6RgbaVv.js} +1 -1
- package/dist/component/{dext-dropdown-rac-nWgEvyxt.js → dext-dropdown-rac-CWjSdcZx.js} +1 -1
- package/dist/component/{dext-email-rac-CkX6ya8p.js → dext-email-rac-D-C1gVTq.js} +1 -1
- package/dist/component/{dext-number-input-rac-CKT0MS1x.js → dext-number-input-rac-YKzZS2ZG.js} +1 -1
- package/dist/component/{dext-phone-rac-DM2E7zW_.js → dext-phone-rac-CFZlEH2a.js} +1 -1
- package/dist/component/dext-radio-group-rac-DiH0wIIl.js +18 -0
- package/dist/component/{dext-rating-input-rac-CKWNpFuu.js → dext-rating-input-rac-D0s-i0qO.js} +1 -1
- package/dist/component/{dext-tags-rac-6AskGGTp.js → dext-tags-rac-Br48OQQ5.js} +2 -2
- package/dist/component/{dext-text-area-rac-ClGLD7sD.js → dext-text-area-rac-6jG8gJ7i.js} +1 -1
- package/dist/component/{dext-text-input-rac-Blbk53d4.js → dext-text-input-rac-FAJTCXuf.js} +1 -1
- package/dist/component/{dext-url-input-rac-BuitmJU0.js → dext-url-input-rac-BoMP8sQB.js} +1 -1
- package/dist/component/{donation-rac-DOifFCD7.js → donation-rac-DNi4p-v5.js} +69 -69
- package/dist/component/{dropdown-field-headless-m2P6s7X5.js → dropdown-field-headless-7SCC-xOC.js} +27 -27
- package/dist/component/{dropdown-field-rac-5e6wWJBl.js → dropdown-field-rac-CMzZh6J6.js} +8 -9
- package/dist/component/{dropdown-rac-BGxE9pJB.js → dropdown-rac-qeugpHXY.js} +1 -1
- package/dist/component/{ecom-address-rac-kbD9qW5Y.js → ecom-address-rac-D8b_L5md.js} +1 -1
- package/dist/component/{ecom-subscription-checkbox-rac-CE-Yixnj.js → ecom-subscription-checkbox-rac-BnAuR9La.js} +5 -5
- package/dist/component/{email-input-field-rac-CbwcB33o.js → email-input-field-rac-CunXRyc5.js} +64 -62
- package/dist/component/{events-repeater-rac-CGhUscBr.js → events-repeater-rac-DMjyIOkB.js} +17 -17
- package/dist/component/{events-rsvp-rac-AQ33zPTe.js → events-rsvp-rac-BsuDPq2K.js} +8 -8
- package/dist/component/{field-error-headless-ClPQ03Jc.js → field-error-headless-E8WjFr_n.js} +6 -6
- package/dist/component/{field-label-headless-DhN8Lkuq.js → field-label-headless-BakLOu5E.js} +15 -15
- package/dist/component/{file-upload-rac-yTx1ZRhZ.js → file-upload-rac-Clu_c--0.js} +43 -43
- package/dist/component/{fixed-payment-rac-nlyxa9nB.js → fixed-payment-rac-CzAXxsb-.js} +12 -12
- package/dist/component/{form-D3iU18lh.js → form-DHAKwnLt.js} +3850 -3872
- package/dist/component/form.css +1 -1
- package/dist/component/form.js +2 -2
- package/dist/component/{header-field-rac-DAEzcleV.js → header-field-rac-CwmVpz3r.js} +4 -4
- package/dist/component/{header-rac-CJZ4qMFg.js → header-rac-ahkGRjSy.js} +1 -1
- package/dist/component/{image-choice-rac-BFAMHwPh.js → image-choice-rac-BwxkkdUu.js} +17 -17
- package/dist/component/{index-DQW26cnX.js → index-BFi_n6B7.js} +2 -2
- package/dist/component/{index-W7GOFnq8.js → index-BQf23zZi.js} +91 -91
- package/dist/component/{isObjectLike-CE8eaxSI.js → isObjectLike-DHcMRYYH.js} +15 -15
- package/dist/component/{multiline-address-field-rac-FbJO0HFf.js → multiline-address-field-rac-C6xaqNOk.js} +68 -60
- package/dist/component/{multiline-address-rac-CI-vt6Pm.js → multiline-address-rac-DF4TFuDx.js} +1 -1
- package/dist/component/{number-input-field-rac-BRVAr7LL.js → number-input-field-rac-uVJ3SBv2.js} +27 -27
- package/dist/component/{number-input-rac-C8hCiJiu.js → number-input-rac-D6ERhrSM.js} +1 -1
- package/dist/component/{password-rac-Baslr6Ga.js → password-rac-CAiC0ZKl.js} +47 -46
- package/dist/component/{payment-input-rac-CfJSKxYz.js → payment-input-rac-Bu25xvby.js} +33 -32
- package/dist/component/{phone-input-field-rac-Dqh4CXdC.js → phone-input-field-rac-32qUvCsC.js} +46 -45
- package/dist/component/{phone-rac-DaLuGuxd.js → phone-rac-mNrpj30q.js} +1 -1
- package/dist/component/{product-list-rac-PNMwRBtL.js → product-list-rac-zHdM9rHw.js} +53 -53
- package/dist/component/{quiz-radio-group-rac-DN8vY-oM.js → quiz-radio-group-rac-BaSlT8w3.js} +1 -1
- package/dist/component/{radio-button-module-classes-DlJi9a2f.js → radio-button-module-classes-BdWjkBlX.js} +9 -9
- package/dist/component/{radio-group-field-rac-C0tLXhl5.js → radio-group-field-rac-DI0UgTBr.js} +12 -12
- package/dist/component/{radio-group-rac-FAk7PYgP.js → radio-group-rac-D2ESG8J4.js} +1 -1
- package/dist/component/{rating-input-field-rac-Cl1kH_uu.js → rating-input-field-rac-BYT2XqOK.js} +26 -26
- package/dist/component/{rating-input-rac-D9p-0pkI.js → rating-input-rac-D-5CmVAX.js} +1 -1
- package/dist/component/{rich-content-rac.module-Dkr46kPC.js → rich-content-rac.module-Dp9Advo9.js} +8 -8
- package/dist/component/{rich-text-field-rac-DthhTvTp.js → rich-text-field-rac-COEUwoXQ.js} +4 -4
- package/dist/component/{rich-text-rac-DqZX4NeB.js → rich-text-rac-CQZLjBQ0.js} +1 -1
- package/dist/component/{service-dropdown-rac-BMOGLU2Z.js → service-dropdown-rac-BTtJVFv8.js} +44 -45
- package/dist/component/{services-multi-choice-rac-DcdUewzJ.js → services-multi-choice-rac-hbY3g0Kb.js} +11 -11
- package/dist/component/{signature-rac-BRvN6kUW.js → signature-rac-CTCNclwL.js} +67 -67
- package/dist/component/{submit-button-rac-B70UC8eS.js → submit-button-rac-kKGeVgsG.js} +25 -25
- package/dist/component/{tags-field-rac-NpYyV8X4.js → tags-field-rac-CVf7oQr_.js} +35 -35
- package/dist/component/{tags-rac-BMEbpJ-z.js → tags-rac-DiX1_nTT.js} +1 -1
- package/dist/component/{text-area-field-rac-BLSrNwJ6.js → text-area-field-rac-IhBNXiDl.js} +22 -22
- package/dist/component/{text-area-rac-Cm7aAfIz.js → text-area-rac-DHevCtFF.js} +1 -1
- package/dist/component/{text-input-field-rac-BDqV7s0M.js → text-input-field-rac-Da3_wTdh.js} +5 -5
- package/dist/component/text-input-headless-DcZRRXCp.js +45 -0
- package/dist/component/{text-input-rac-Cc_SkCCS.js → text-input-rac-564LIZ1_.js} +1 -1
- package/dist/component/{time-input-rac-DDCiAFe2.js → time-input-rac-p-Nnsxp_.js} +54 -54
- package/dist/component/{url-input-field-rac-jen6pbz7.js → url-input-field-rac-DjrcpRtm.js} +27 -26
- package/dist/component/{url-input-rac-BWh6udtS.js → url-input-rac-B3brpyop.js} +1 -1
- package/dist/component/use-dropdown-trigger-class-name-BWTT7ltv.js +117 -0
- package/dist/component/{use-element-state-class-name-B1r_nXW1.js → use-element-state-class-name-CUZuhFvZ.js} +3 -3
- package/dist/component/{use-hoverable-input-class-name-B-FhrcyQ.js → use-hoverable-input-class-name-ugX8-g4E.js} +6 -6
- package/dist/component/use-is-forced-open-dropdown-DUZMvWpk.js +48 -0
- package/dist/component/{use-service-options-base-CTA_43F3.js → use-service-options-base-hqO9Ev38.js} +6 -6
- package/dist/component/use-text-input-class-name-wp9dzpEy.js +6 -0
- package/dist/form.d.ts +5 -0
- package/package.json +2 -2
- package/dist/component/date-input-field-rac-BnlAOn12.js +0 -290
- package/dist/component/dext-radio-group-rac-Czr5yY3K.js +0 -18
- package/dist/component/text-input-headless-B0jcwDev.js +0 -44
- package/dist/component/use-dropdown-option-class-name-OD8brKoy.js +0 -115
- package/dist/component/use-dropdown-trigger-class-name-BrkmG0ad.js +0 -40
- package/dist/component/use-text-input-class-name-BXuk3TK7.js +0 -6
package/dist/component/{date-picker-field-rac-Ckwu2vD6.js → date-picker-field-rac-BcdpTkjV.js}
RENAMED
|
@@ -1,76 +1,77 @@
|
|
|
1
1
|
import { RicosViewer as X } from "@wix/ricos/viewer";
|
|
2
|
-
import
|
|
3
|
-
import e, { useState as
|
|
2
|
+
import p from "classnames";
|
|
3
|
+
import e, { useState as L, useCallback as x, useContext as ee, useRef as P, 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 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
|
|
8
|
-
import { g as he, c as
|
|
9
|
-
import { f as E, a as
|
|
10
|
-
import { D as
|
|
11
|
-
import { L as
|
|
12
|
-
import { D as ve, N as
|
|
13
|
-
import {
|
|
14
|
-
import { i as Fe } from "./date-availability-
|
|
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 k, Select as M, SelectValue as Y, ListBox as w, ListBoxItem as B } from "react-aria-components";
|
|
7
|
+
import { D, bo as h, bl as U, bg as F, bq as pe, S as De, a0 as fe, u as Ce, H as ye, v as be, t as Se } from "./form-DHAKwnLt.js";
|
|
8
|
+
import { g as he, c as A } from "./calendar.module-CKCBG_Pg.js";
|
|
9
|
+
import { f as E, a as S } from "./find-child-C60k4CxG.js";
|
|
10
|
+
import { D as Ne, E as Te } from "./field-error-headless-E8WjFr_n.js";
|
|
11
|
+
import { L as _e } from "./field-label-headless-BakLOu5E.js";
|
|
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-DUZMvWpk.js";
|
|
14
|
+
import { i as Fe } from "./date-availability-DZ3J3LLm.js";
|
|
15
15
|
import { C as I } from "./chevron-down-icon-CcpVm6B-.js";
|
|
16
|
-
import { E as
|
|
17
|
-
import { H as
|
|
16
|
+
import { E as Oe } from "./error-icon-hZxQ6DEy.js";
|
|
17
|
+
import { H as Le } from "./custom-focus-class-_483Pkwp.js";
|
|
18
18
|
import { s as f } from "./field-rac.module-DfEb7pBp.js";
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
19
|
+
import { u as Pe } from "./use-hoverable-input-class-name-ugX8-g4E.js";
|
|
20
|
+
const Ae = [
|
|
21
|
+
D.SUNDAY,
|
|
22
|
+
D.MONDAY,
|
|
23
|
+
D.TUESDAY,
|
|
24
|
+
D.WEDNESDAY,
|
|
25
|
+
D.THURSDAY,
|
|
26
|
+
D.FRIDAY,
|
|
27
|
+
D.SATURDAY
|
|
28
|
+
], Re = {
|
|
29
|
+
availableDays: Ae
|
|
29
30
|
}, 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 =
|
|
31
|
+
const { id: r, value: o, onChange: n, disabled: i, required: c, onBlur: u, onFocus: l, FieldLayout: m, hasError: d, readOnly: C } = h(), { labelId: y } = U(), { regionalFormat: N } = F(), [s, T] = L(null), [j, K] = L(!1), _ = Ie(r), H = x((z) => {
|
|
32
|
+
const J = He(z);
|
|
32
33
|
n(J);
|
|
33
34
|
}, [
|
|
34
35
|
n
|
|
35
|
-
]),
|
|
36
|
+
]), W = E(t, a.Label), $ = E(t, a.Control), q = E(t, a.Calendar), G = E(t, a.Description), Q = E(t, a.Error), Z = Ke(o);
|
|
36
37
|
return /* @__PURE__ */ e.createElement(m, {
|
|
37
38
|
fieldId: r,
|
|
38
|
-
renderLabel: () =>
|
|
39
|
+
renderLabel: () => W,
|
|
39
40
|
renderInput: () => /* @__PURE__ */ e.createElement(ae, {
|
|
40
|
-
locale:
|
|
41
|
+
locale: N
|
|
41
42
|
}, /* @__PURE__ */ e.createElement("div", {
|
|
42
|
-
ref:
|
|
43
|
+
ref: T,
|
|
43
44
|
style: {
|
|
44
45
|
display: "contents"
|
|
45
46
|
}
|
|
46
47
|
}), /* @__PURE__ */ e.createElement(re, {
|
|
47
48
|
getContainer: () => s
|
|
48
49
|
}, /* @__PURE__ */ e.createElement(ne, {
|
|
49
|
-
"aria-labelledby":
|
|
50
|
+
"aria-labelledby": y,
|
|
50
51
|
value: Z,
|
|
51
|
-
onChange:
|
|
52
|
+
onChange: H,
|
|
52
53
|
isDisabled: i,
|
|
53
54
|
isInvalid: d,
|
|
54
|
-
isReadOnly:
|
|
55
|
+
isReadOnly: C,
|
|
55
56
|
isRequired: c,
|
|
56
57
|
onBlur: u,
|
|
57
58
|
onFocus: l,
|
|
58
|
-
isOpen:
|
|
59
|
-
onOpenChange:
|
|
60
|
-
},
|
|
61
|
-
isForcedOpen:
|
|
59
|
+
isOpen: _ || j,
|
|
60
|
+
onOpenChange: _ ? void 0 : K
|
|
61
|
+
}, $, S(q, {
|
|
62
|
+
isForcedOpen: _
|
|
62
63
|
})))),
|
|
63
|
-
renderDescription: () => /* @__PURE__ */ e.createElement(e.Fragment, null, Q,
|
|
64
|
+
renderDescription: () => /* @__PURE__ */ e.createElement(e.Fragment, null, Q, G)
|
|
64
65
|
});
|
|
65
|
-
},
|
|
66
|
-
const { inputId: o, ariaDescribedBy: n } = U(), { hasError: i, disabled: c, readOnly: u } =
|
|
66
|
+
}, xe = ({ children: t, className: r }) => {
|
|
67
|
+
const { inputId: o, ariaDescribedBy: n } = U(), { hasError: i, disabled: c, readOnly: u } = h(), l = ee(oe), m = x((d) => {
|
|
67
68
|
if (!l || l.isOpen || c || u)
|
|
68
69
|
return;
|
|
69
|
-
const
|
|
70
|
-
if (
|
|
70
|
+
const C = d.target;
|
|
71
|
+
if (C.closest("button"))
|
|
71
72
|
return;
|
|
72
|
-
const
|
|
73
|
-
|
|
73
|
+
const y = C.closest("[data-type]");
|
|
74
|
+
y && y.getAttribute("data-type") !== "literal" || l.setOpen(!0);
|
|
74
75
|
}, [
|
|
75
76
|
l,
|
|
76
77
|
c,
|
|
@@ -84,12 +85,12 @@ const Oe = [
|
|
|
84
85
|
onPointerDownCapture: m
|
|
85
86
|
}, t);
|
|
86
87
|
}, ke = ({ className: t }) => {
|
|
87
|
-
const { id: r, placeholder: o } =
|
|
88
|
+
const { id: r, placeholder: o } = h(), { regionalFormat: n } = F(), i = P(null), c = P(!1);
|
|
88
89
|
pe(() => {
|
|
89
90
|
var l;
|
|
90
91
|
(l = i.current) == null || l.focus();
|
|
91
92
|
}, r);
|
|
92
|
-
const u =
|
|
93
|
+
const u = v(() => We(n), [
|
|
93
94
|
n
|
|
94
95
|
]);
|
|
95
96
|
return /* @__PURE__ */ e.createElement(se, {
|
|
@@ -115,24 +116,24 @@ const Oe = [
|
|
|
115
116
|
}, Me = ({ children: t, className: r }) => /* @__PURE__ */ e.createElement(ve, {
|
|
116
117
|
className: r
|
|
117
118
|
}, t), g = ({ children: t, className: r, ...o }) => {
|
|
118
|
-
const { isForcedOpen: n } = o, { regionalFormat: i } = F(), { availability: c } =
|
|
119
|
+
const { isForcedOpen: n } = o, { regionalFormat: i } = F(), { availability: c } = h(), u = v(() => he(i), [
|
|
119
120
|
i
|
|
120
|
-
]), l =
|
|
121
|
-
const
|
|
122
|
-
return !Fe(
|
|
121
|
+
]), l = v(() => (s) => {
|
|
122
|
+
const T = new Date(s.year, s.month - 1, s.day);
|
|
123
|
+
return !Fe(T, c || Re);
|
|
123
124
|
}, [
|
|
124
125
|
c
|
|
125
|
-
]), m = E(t, g.Day) ?? /* @__PURE__ */ e.createElement(g.Day, null), d = E(t, g.PreviousTrigger),
|
|
126
|
-
return /* @__PURE__ */ e.createElement(
|
|
126
|
+
]), m = E(t, g.Day) ?? /* @__PURE__ */ e.createElement(g.Day, null), d = E(t, g.PreviousTrigger), C = E(t, g.NextTrigger), y = E(t, g.MonthTrigger), N = E(t, g.YearTrigger);
|
|
127
|
+
return /* @__PURE__ */ e.createElement(O, {
|
|
127
128
|
className: r,
|
|
128
129
|
containerPadding: 0
|
|
129
|
-
}, /* @__PURE__ */ e.createElement(
|
|
130
|
+
}, /* @__PURE__ */ e.createElement(Ye, {
|
|
130
131
|
isForcedOpen: n
|
|
131
132
|
}, /* @__PURE__ */ e.createElement(ie, {
|
|
132
133
|
autoFocus: n ? !1 : void 0,
|
|
133
|
-
firstDayOfWeek:
|
|
134
|
+
firstDayOfWeek: $e(u),
|
|
134
135
|
isDateUnavailable: l
|
|
135
|
-
}, /* @__PURE__ */ e.createElement("header", null, d, /* @__PURE__ */ e.createElement(me, null, (s) =>
|
|
136
|
+
}, /* @__PURE__ */ e.createElement("header", null, d, /* @__PURE__ */ e.createElement(me, null, (s) => S(y, {
|
|
136
137
|
ariaLabel: s["aria-label"],
|
|
137
138
|
selectedKey: s.value,
|
|
138
139
|
onSelectionChange: s.onChange,
|
|
@@ -140,76 +141,76 @@ const Oe = [
|
|
|
140
141
|
popoverClassName: r
|
|
141
142
|
})), /* @__PURE__ */ e.createElement(de, {
|
|
142
143
|
visibleYears: 100
|
|
143
|
-
}, (s) =>
|
|
144
|
+
}, (s) => S(N, {
|
|
144
145
|
ariaLabel: s["aria-label"],
|
|
145
146
|
selectedKey: s.value,
|
|
146
147
|
onSelectionChange: s.onChange,
|
|
147
148
|
items: s.items,
|
|
148
149
|
popoverClassName: r
|
|
149
|
-
})),
|
|
150
|
+
})), C), /* @__PURE__ */ e.createElement(ue, {
|
|
150
151
|
weekdayStyle: "short"
|
|
151
|
-
}, (s) =>
|
|
152
|
+
}, (s) => S(m, {
|
|
152
153
|
date: s
|
|
153
154
|
})))));
|
|
154
|
-
},
|
|
155
|
+
}, Ye = ({ isForcedOpen: t, children: r }) => t ? /* @__PURE__ */ e.createElement("div", {
|
|
155
156
|
role: "dialog"
|
|
156
|
-
}, r) : /* @__PURE__ */ e.createElement(ge, null, r),
|
|
157
|
+
}, r) : /* @__PURE__ */ e.createElement(ge, null, r), we = ({ children: t, className: r, ...o }) => {
|
|
157
158
|
const { date: n } = o;
|
|
158
159
|
return /* @__PURE__ */ e.createElement(Ee, {
|
|
159
160
|
className: r,
|
|
160
161
|
date: n
|
|
161
162
|
}, t);
|
|
162
|
-
},
|
|
163
|
+
}, Be = ({ children: t, className: r }) => /* @__PURE__ */ e.createElement(k, {
|
|
163
164
|
slot: "previous",
|
|
164
165
|
className: r
|
|
165
|
-
}, t),
|
|
166
|
+
}, t), Ue = ({ children: t, className: r }) => /* @__PURE__ */ e.createElement(k, {
|
|
166
167
|
slot: "next",
|
|
167
168
|
className: r
|
|
168
|
-
}, t),
|
|
169
|
+
}, t), Ve = ({ children: t, className: r, ...o }) => {
|
|
169
170
|
const { ariaLabel: n, selectedKey: i, onSelectionChange: c, items: u, popoverClassName: l } = o;
|
|
170
|
-
return /* @__PURE__ */ e.createElement(
|
|
171
|
+
return /* @__PURE__ */ e.createElement(M, {
|
|
171
172
|
"aria-label": n,
|
|
172
173
|
selectedKey: i,
|
|
173
174
|
onSelectionChange: c
|
|
174
175
|
}, /* @__PURE__ */ e.createElement(V, {
|
|
175
176
|
className: r
|
|
176
|
-
}, /* @__PURE__ */ e.createElement(
|
|
177
|
+
}, /* @__PURE__ */ e.createElement(Y, null), t), /* @__PURE__ */ e.createElement(O, {
|
|
177
178
|
className: l,
|
|
178
179
|
containerPadding: 0
|
|
179
|
-
}, /* @__PURE__ */ e.createElement(
|
|
180
|
+
}, /* @__PURE__ */ e.createElement(w, {
|
|
180
181
|
items: u
|
|
181
182
|
}, (m) => /* @__PURE__ */ e.createElement(B, {
|
|
182
183
|
id: m.id
|
|
183
184
|
}, m.formatted))));
|
|
184
|
-
},
|
|
185
|
+
}, je = ({ children: t, className: r, ...o }) => {
|
|
185
186
|
const { ariaLabel: n, selectedKey: i, onSelectionChange: c, items: u, popoverClassName: l } = o;
|
|
186
|
-
return /* @__PURE__ */ e.createElement(
|
|
187
|
+
return /* @__PURE__ */ e.createElement(M, {
|
|
187
188
|
"aria-label": n,
|
|
188
189
|
selectedKey: i,
|
|
189
190
|
onSelectionChange: c
|
|
190
191
|
}, /* @__PURE__ */ e.createElement(V, {
|
|
191
192
|
className: r
|
|
192
|
-
}, /* @__PURE__ */ e.createElement(
|
|
193
|
+
}, /* @__PURE__ */ e.createElement(Y, null), t), /* @__PURE__ */ e.createElement(O, {
|
|
193
194
|
className: l,
|
|
194
195
|
containerPadding: 0
|
|
195
|
-
}, /* @__PURE__ */ e.createElement(
|
|
196
|
+
}, /* @__PURE__ */ e.createElement(w, {
|
|
196
197
|
items: u
|
|
197
198
|
}, (m) => /* @__PURE__ */ e.createElement(B, {
|
|
198
199
|
id: m.id
|
|
199
200
|
}, m.formatted))));
|
|
200
201
|
};
|
|
201
|
-
g.Day =
|
|
202
|
-
g.PreviousTrigger =
|
|
203
|
-
g.NextTrigger =
|
|
204
|
-
g.MonthTrigger =
|
|
205
|
-
g.YearTrigger =
|
|
206
|
-
a.Label =
|
|
207
|
-
a.Control =
|
|
202
|
+
g.Day = we;
|
|
203
|
+
g.PreviousTrigger = Be;
|
|
204
|
+
g.NextTrigger = Ue;
|
|
205
|
+
g.MonthTrigger = Ve;
|
|
206
|
+
g.YearTrigger = je;
|
|
207
|
+
a.Label = _e;
|
|
208
|
+
a.Control = xe;
|
|
208
209
|
a.Input = ke;
|
|
209
210
|
a.Trigger = Me;
|
|
210
211
|
a.Calendar = g;
|
|
211
|
-
a.Description =
|
|
212
|
-
a.Error =
|
|
212
|
+
a.Description = Ne;
|
|
213
|
+
a.Error = Te;
|
|
213
214
|
function Ke(t) {
|
|
214
215
|
if (!t)
|
|
215
216
|
return null;
|
|
@@ -219,13 +220,13 @@ function Ke(t) {
|
|
|
219
220
|
return null;
|
|
220
221
|
}
|
|
221
222
|
}
|
|
222
|
-
function
|
|
223
|
+
function He(t) {
|
|
223
224
|
if (!t)
|
|
224
225
|
return null;
|
|
225
226
|
const r = String(t.year).padStart(4, "0"), o = String(t.month).padStart(2, "0"), n = String(t.day).padStart(2, "0");
|
|
226
227
|
return `${r}-${o}-${n}`;
|
|
227
228
|
}
|
|
228
|
-
function
|
|
229
|
+
function We(t) {
|
|
229
230
|
var r;
|
|
230
231
|
try {
|
|
231
232
|
return ((r = new Intl.DateTimeFormat(t, {
|
|
@@ -237,7 +238,7 @@ function $e(t) {
|
|
|
237
238
|
return "month";
|
|
238
239
|
}
|
|
239
240
|
}
|
|
240
|
-
function
|
|
241
|
+
function $e(t) {
|
|
241
242
|
return [
|
|
242
243
|
"sun",
|
|
243
244
|
"mon",
|
|
@@ -261,36 +262,39 @@ const qe = (t) => /* @__PURE__ */ e.createElement("svg", {
|
|
|
261
262
|
strokeWidth: "1.5",
|
|
262
263
|
strokeLinecap: "round",
|
|
263
264
|
strokeLinejoin: "round"
|
|
264
|
-
})), Ge = "
|
|
265
|
+
})), Ge = "_control_anbxj_1", Qe = "_segments_anbxj_14", Ze = "_trigger_anbxj_72", ze = "_calendarPopover_anbxj_103", Je = "_calendarDay_anbxj_253", Xe = "_dayNumber_anbxj_260", b = {
|
|
265
266
|
control: Ge,
|
|
266
|
-
segments:
|
|
267
|
-
trigger:
|
|
268
|
-
calendarPopover:
|
|
269
|
-
calendarDay:
|
|
270
|
-
|
|
267
|
+
segments: Qe,
|
|
268
|
+
trigger: Ze,
|
|
269
|
+
calendarPopover: ze,
|
|
270
|
+
calendarDay: Je,
|
|
271
|
+
dayNumber: Xe
|
|
272
|
+
}, et = ({ content: t, locale: r }) => /* @__PURE__ */ e.createElement(X, {
|
|
271
273
|
content: t,
|
|
272
274
|
locale: r
|
|
273
|
-
}),
|
|
275
|
+
}), tt = {
|
|
274
276
|
left: 90,
|
|
275
277
|
right: -90
|
|
276
278
|
}, R = ({ direction: t }) => /* @__PURE__ */ e.createElement(I, {
|
|
277
279
|
style: {
|
|
278
|
-
transform: `rotate(${
|
|
280
|
+
transform: `rotate(${tt[t]}deg)`
|
|
279
281
|
}
|
|
280
|
-
}),
|
|
281
|
-
const t =
|
|
282
|
+
}), St = () => {
|
|
283
|
+
const t = Pe(Se, [
|
|
284
|
+
b.control
|
|
285
|
+
]);
|
|
282
286
|
return /* @__PURE__ */ e.createElement(a, null, /* @__PURE__ */ e.createElement(a.Label, {
|
|
283
|
-
className:
|
|
287
|
+
className: p(De, f.label)
|
|
284
288
|
}, /* @__PURE__ */ e.createElement(a.Label.Required, {
|
|
285
|
-
className:
|
|
289
|
+
className: p(fe, f.requiredMark)
|
|
286
290
|
})), /* @__PURE__ */ e.createElement(a.Control, {
|
|
287
291
|
className: t
|
|
288
292
|
}, /* @__PURE__ */ e.createElement(a.Trigger, {
|
|
289
|
-
className:
|
|
293
|
+
className: b.trigger
|
|
290
294
|
}, /* @__PURE__ */ e.createElement(qe, null)), /* @__PURE__ */ e.createElement(a.Input, {
|
|
291
|
-
className:
|
|
295
|
+
className: b.segments
|
|
292
296
|
})), /* @__PURE__ */ e.createElement(a.Calendar, {
|
|
293
|
-
className:
|
|
297
|
+
className: p(Ce, f.selectPopover, b.calendarPopover)
|
|
294
298
|
}, /* @__PURE__ */ e.createElement(a.Calendar.PreviousTrigger, null, /* @__PURE__ */ e.createElement(R, {
|
|
295
299
|
direction: "left"
|
|
296
300
|
})), /* @__PURE__ */ e.createElement(a.Calendar.MonthTrigger, null, /* @__PURE__ */ e.createElement(I, {
|
|
@@ -300,15 +304,15 @@ const qe = (t) => /* @__PURE__ */ e.createElement("svg", {
|
|
|
300
304
|
})), /* @__PURE__ */ e.createElement(a.Calendar.NextTrigger, null, /* @__PURE__ */ e.createElement(R, {
|
|
301
305
|
direction: "right"
|
|
302
306
|
})), /* @__PURE__ */ e.createElement(a.Calendar.Day, {
|
|
303
|
-
className:
|
|
307
|
+
className: p(Le, A.day, b.calendarDay)
|
|
304
308
|
}, ({ formattedDate: r }) => /* @__PURE__ */ e.createElement("span", {
|
|
305
|
-
className:
|
|
309
|
+
className: p(A.dayNumber, b.dayNumber)
|
|
306
310
|
}, r))), /* @__PURE__ */ e.createElement(a.Error, {
|
|
307
|
-
className:
|
|
308
|
-
}, /* @__PURE__ */ e.createElement(
|
|
309
|
-
className:
|
|
310
|
-
},
|
|
311
|
+
className: p(ye, f.error)
|
|
312
|
+
}, /* @__PURE__ */ e.createElement(Oe, null), /* @__PURE__ */ e.createElement(a.Error.Text, null)), /* @__PURE__ */ e.createElement(a.Description, {
|
|
313
|
+
className: p(be, f.description)
|
|
314
|
+
}, et));
|
|
311
315
|
};
|
|
312
316
|
export {
|
|
313
|
-
|
|
317
|
+
St as D
|
|
314
318
|
};
|