@wix/form-elements 1.128.0 → 1.130.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-S9z3s23G.js → appointment-rac-BpZGi0ra.js} +4 -4
- package/dist/component/{bookings-address-rac-B7wL2TjQ.js → bookings-address-rac-IU28SJy5.js} +1 -1
- package/dist/component/{bookings-email-rac-T2lFRGpg.js → bookings-email-rac-BkhnLFKC.js} +1 -1
- package/dist/component/{bookings-first-name-rac-BBrENRBf.js → bookings-first-name-rac-CwMmkICM.js} +1 -1
- package/dist/component/{bookings-header-rac-CWGMiMQz.js → bookings-header-rac-BtGNPfsP.js} +1 -1
- package/dist/component/{bookings-last-name-rac-BQWvH_gm.js → bookings-last-name-rac-BmloqxX9.js} +1 -1
- package/dist/component/{bookings-login-bar-rac-tFs0Vioz.js → bookings-login-bar-rac-QHUQz0Do.js} +1 -1
- package/dist/component/{bookings-phone-rac-BV_BTfAh.js → bookings-phone-rac-CBKcGM_o.js} +1 -1
- package/dist/component/{bookings-rich-text-rac-8cD6QJBZ.js → bookings-rich-text-rac-DnazNxHe.js} +1 -1
- package/dist/component/{checkbox-field-rac-YmG26i31.js → checkbox-field-rac-BSiNWGvO.js} +4 -4
- package/dist/component/{checkbox-group-field-headless-CE8sEjZj.js → checkbox-group-field-headless-Bl_gIm5X.js} +3 -3
- package/dist/component/{checkbox-group-field-rac-CSuJRyk1.js → checkbox-group-field-rac-_cpM6zrw.js} +4 -4
- package/dist/component/{checkbox-group-rac-VDezm9js.js → checkbox-group-rac-mZwI2tQ7.js} +1 -1
- package/dist/component/{checkbox-rac-DoC1ZqAq.js → checkbox-rac-rfO8Kefs.js} +1 -1
- package/dist/component/{contacts-address-rac-10AZNzhI.js → contacts-address-rac-CHthblox.js} +1 -1
- package/dist/component/{contacts-birthdate-rac-C7YDiyg2.js → contacts-birthdate-rac-CuvwylkU.js} +1 -1
- package/dist/component/{contacts-company-rac-xQEtJ_-m.js → contacts-company-rac-D546Lq1s.js} +1 -1
- package/dist/component/{contacts-email-rac-Bryw_aCU.js → contacts-email-rac-DwXQ_wWS.js} +1 -1
- package/dist/component/{contacts-first-name-rac-BXmuuhfG.js → contacts-first-name-rac-C7bQDK9N.js} +1 -1
- package/dist/component/{contacts-last-name-rac-CVWVZO8I.js → contacts-last-name-rac-CQTkOyHY.js} +1 -1
- package/dist/component/{contacts-phone-rac-C-KSwisV.js → contacts-phone-rac-5_KC_NgQ.js} +1 -1
- package/dist/component/{contacts-position-rac-od-5Gie5.js → contacts-position-rac-Y467YbGC.js} +1 -1
- package/dist/component/{contacts-subscribe-rac-CCh9JcQx.js → contacts-subscribe-rac-By3IlB_r.js} +1 -1
- package/dist/component/{contacts-tax-id-rac-DOM7TPQz.js → contacts-tax-id-rac-Cz7LLBFg.js} +1 -1
- package/dist/component/{date-availability-G5IwqtRi.js → date-availability-2VUtbyz1.js} +1 -1
- package/dist/component/{date-input-field-rac-BpBqS7LG.js → date-input-field-rac-C0YZZ7d1.js} +86 -86
- package/dist/component/{date-input-rac-CQyqRqZK.js → date-input-rac-BIlIrfkK.js} +1 -1
- package/dist/component/{date-picker-field-rac-BsR_0eAW.js → date-picker-field-rac-D96wqSQ2.js} +92 -91
- package/dist/component/{date-picker-rac-Bl2k363u.js → date-picker-rac-CgVftEAJ.js} +1 -1
- package/dist/component/date-time-input-field-rac-C4uP9wLp.js +427 -0
- package/dist/component/{date-time-input-rac-CInfYWxN.js → date-time-input-rac-BgHUANTP.js} +1 -1
- package/dist/component/{dext-checkbox-group-rac-E36LjEfn.js → dext-checkbox-group-rac-DjiWZ293.js} +2 -2
- package/dist/component/{dext-checkbox-rac-DkMAv7aY.js → dext-checkbox-rac-BmUjJHD_.js} +1 -1
- package/dist/component/{dext-date-picker-rac-BNkJPlYo.js → dext-date-picker-rac-BlrV70R7.js} +1 -1
- package/dist/component/{dext-date-time-input-rac-BH3Q0pwI.js → dext-date-time-input-rac-JkFxwGgu.js} +1 -1
- package/dist/component/{dext-dropdown-rac-DkF_DD08.js → dext-dropdown-rac-Xbczi-Z0.js} +1 -1
- package/dist/component/{dext-email-rac-0x_DN0_O.js → dext-email-rac-DkMdn4ps.js} +1 -1
- package/dist/component/{dext-number-input-rac-UiIENkK3.js → dext-number-input-rac-CNMiNuNi.js} +1 -1
- package/dist/component/{dext-phone-rac-BZFK4Uq7.js → dext-phone-rac-C8c-RKQv.js} +1 -1
- package/dist/component/{dext-radio-group-rac-CBAdO7kt.js → dext-radio-group-rac-BAJJSIKu.js} +2 -2
- package/dist/component/{dext-rating-input-rac-fqR1sriq.js → dext-rating-input-rac-BdnfHwl1.js} +1 -1
- package/dist/component/{dext-tags-rac-mDuiUs9L.js → dext-tags-rac-BjsYYa9X.js} +2 -2
- package/dist/component/{dext-text-area-rac-C-8jKWpK.js → dext-text-area-rac-Aatrs0NK.js} +1 -1
- package/dist/component/{dext-text-input-rac-CCBAM9YO.js → dext-text-input-rac-DgUfidRi.js} +1 -1
- package/dist/component/{dext-url-input-rac-C4_8Yk0p.js → dext-url-input-rac-DQbUHNX7.js} +1 -1
- package/dist/component/{donation-rac-BwDHypVJ.js → donation-rac-BEbw90qi.js} +5 -5
- package/dist/component/dropdown-field-headless-Cg-_dZP4.js +91 -0
- package/dist/component/{dropdown-field-rac-DduQJ9rO.js → dropdown-field-rac-EjA-abC8.js} +4 -4
- package/dist/component/{dropdown-rac-BhhECLoH.js → dropdown-rac-zDidZ7dx.js} +1 -1
- package/dist/component/{ecom-address-rac-BJ1nnEVL.js → ecom-address-rac-Df9TvxEv.js} +1 -1
- package/dist/component/{ecom-subscription-checkbox-rac-4m1XMTDY.js → ecom-subscription-checkbox-rac-B6ztLCEK.js} +2 -2
- package/dist/component/{email-input-field-rac-bPEcgidt.js → email-input-field-rac-CpPKmeC5.js} +3 -3
- package/dist/component/{events-repeater-rac-CujTGEHx.js → events-repeater-rac-C5VWlWG-.js} +4 -4
- package/dist/component/{events-rsvp-rac-BPqr_aY9.js → events-rsvp-rac-CLTyr98o.js} +3 -3
- package/dist/component/{field-error-headless-Bu_4Huhb.js → field-error-headless-Dgx4BHo5.js} +1 -1
- package/dist/component/{field-label-headless-DkDmQPFG.js → field-label-headless-CsqtNbNm.js} +1 -1
- package/dist/component/{file-upload-rac-DmOQrGe8.js → file-upload-rac-1SX9-51k.js} +4 -4
- package/dist/component/{fixed-payment-rac-CDsddKrV.js → fixed-payment-rac-C_zIu17t.js} +3 -3
- package/dist/component/{form-BpJ4Lqbe.js → form-BoHpaLjl.js} +69 -69
- package/dist/component/form.css +1 -1
- package/dist/component/form.js +1 -1
- package/dist/component/{header-field-rac-Cr1FVQdq.js → header-field-rac-DBw1TpEG.js} +2 -2
- package/dist/component/{header-rac-CvAZsqDL.js → header-rac-DAnTKW4z.js} +1 -1
- package/dist/component/{image-choice-rac-D_EKrD73.js → image-choice-rac-CqnAnKbc.js} +4 -4
- package/dist/component/{index-Tnke1N8m.js → index-Rqkz8Lrx.js} +2 -2
- package/dist/component/{index-DxsHfkik.js → index-g0wVTJHp.js} +4 -4
- package/dist/component/{isObjectLike-CMWsWjX8.js → isObjectLike-Dt08IFKQ.js} +1 -1
- package/dist/component/{multiline-address-field-rac-BMeMP7J6.js → multiline-address-field-rac-1zdTMnWs.js} +7 -7
- package/dist/component/{multiline-address-rac-CFprfFXm.js → multiline-address-rac-DI_2qWao.js} +1 -1
- package/dist/component/non-modal-popover-D-u13tmp.js +64 -0
- package/dist/component/{number-input-field-rac-CaHySxYH.js → number-input-field-rac-1EfxOkZP.js} +4 -4
- package/dist/component/{number-input-rac-BezfoU8h.js → number-input-rac-AG8ecaT6.js} +1 -1
- package/dist/component/{password-rac-_wwZFd67.js → password-rac-CGu6cCp2.js} +4 -4
- package/dist/component/{payment-input-rac-CWrSvBDp.js → payment-input-rac-CRMqRcWZ.js} +4 -4
- package/dist/component/{phone-input-field-rac-R3LYdPIs.js → phone-input-field-rac-Bpk1kirr.js} +7 -7
- package/dist/component/{phone-rac-D6uILVRw.js → phone-rac-w7Kiv6ru.js} +1 -1
- package/dist/component/{product-list-rac-D3WTfC9k.js → product-list-rac-WIshqJ3F.js} +4 -4
- package/dist/component/{quiz-radio-group-rac-B6T7eedk.js → quiz-radio-group-rac-BkB4fikl.js} +1 -1
- package/dist/component/{radio-button-module-classes-D8Jm-Q6u.js → radio-button-module-classes-D78goUwl.js} +3 -3
- package/dist/component/{radio-group-field-rac-R5onZzJd.js → radio-group-field-rac-Cx2nvCDW.js} +4 -4
- package/dist/component/{radio-group-rac-DUPHR4tK.js → radio-group-rac-46JW3dAH.js} +1 -1
- package/dist/component/{rating-input-field-rac-C9GpwuRO.js → rating-input-field-rac-D05VBUGw.js} +4 -4
- package/dist/component/{rating-input-rac-Iv_2PVqP.js → rating-input-rac-DtnpPnnU.js} +1 -1
- package/dist/component/{rich-content-rac.module-Det3BKrI.js → rich-content-rac.module-W8U6Eupl.js} +1 -1
- package/dist/component/{rich-text-field-rac-DnBtp2d_.js → rich-text-field-rac-BKMs8NOQ.js} +2 -2
- package/dist/component/{rich-text-rac-CXzxap1G.js → rich-text-rac-BJ4Jii81.js} +1 -1
- package/dist/component/{service-dropdown-rac-CVyd2HYC.js → service-dropdown-rac-CEDqWqhg.js} +5 -5
- package/dist/component/{services-multi-choice-rac-BY-W0xIt.js → services-multi-choice-rac-9qwSAT5T.js} +5 -5
- package/dist/component/{signature-rac-BojdPJhg.js → signature-rac-D6BMpTFh.js} +4 -4
- package/dist/component/{submit-button-rac-Q7KKQbiL.js → submit-button-rac-Bj3iEONs.js} +2 -2
- package/dist/component/{tags-field-rac-CbmR6gi4.js → tags-field-rac-DMD53JR4.js} +5 -5
- package/dist/component/{tags-rac-hJo0tMVR.js → tags-rac-BNL4fHg-.js} +1 -1
- package/dist/component/{text-area-field-rac-DHQqkqtu.js → text-area-field-rac-CHJzdEBE.js} +4 -4
- package/dist/component/{text-area-rac-BTXxfWyK.js → text-area-rac-CgoEe9Qh.js} +1 -1
- package/dist/component/{text-input-field-rac-BVTBYjMM.js → text-input-field-rac-DewYQNfK.js} +3 -3
- package/dist/component/{text-input-headless-Dk_0y9U-.js → text-input-headless-OayaIOMS.js} +3 -3
- package/dist/component/{text-input-rac-DIwGn0WI.js → text-input-rac-4SxpOILY.js} +1 -1
- package/dist/component/{time-input-rac-ClyPOKOH.js → time-input-rac-CivcOPuU.js} +65 -64
- package/dist/component/{url-input-field-rac-BhPzHWTI.js → url-input-field-rac-BK3WIP-A.js} +4 -4
- package/dist/component/{url-input-rac-COD7T5wo.js → url-input-rac-Dgn9n6w1.js} +1 -1
- package/dist/component/{use-dropdown-option-class-name-CTDQ4YIC.js → use-dropdown-option-class-name-BZu-Fese.js} +2 -2
- package/dist/component/use-dropdown-trigger-class-name-Dpk8_xn2.js +40 -0
- package/dist/component/{use-element-state-class-name-BU86oHkX.js → use-element-state-class-name-Cby7DA2T.js} +1 -1
- package/dist/component/{use-hoverable-input-class-name-DWkmQfPd.js → use-hoverable-input-class-name-CKBvA8Gx.js} +2 -2
- package/dist/component/{use-service-options-base-jkecu8jY.js → use-service-options-base-Px-Ey93X.js} +1 -1
- package/dist/component/use-text-input-class-name-D30YesHa.js +6 -0
- package/package.json +2 -2
- package/dist/component/date-time-input-field-rac-C5TC2nsm.js +0 -426
- package/dist/component/dropdown-field-headless-CspX2zV_.js +0 -91
- package/dist/component/non-modal-popover-DtIMXHbe.js +0 -63
- package/dist/component/use-dropdown-trigger-class-name-DapDPNX0.js +0 -43
- package/dist/component/use-text-input-class-name-CNTXVb7N.js +0 -6
package/dist/component/{date-picker-field-rac-BsR_0eAW.js → date-picker-field-rac-D96wqSQ2.js}
RENAMED
|
@@ -1,17 +1,17 @@
|
|
|
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 x, 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
|
|
7
|
-
import { D as p, bh as
|
|
8
|
-
import { g as
|
|
9
|
-
import { f as E, a as
|
|
10
|
-
import { D as
|
|
11
|
-
import { L as
|
|
12
|
-
import { D as be, N as L, S as V } from "./non-modal-popover-
|
|
13
|
-
import { a as _e, u as Ie } from "./use-dropdown-trigger-class-name-
|
|
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 w, 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 De, U as fe, n as Ce, v as ye, p as Se } from "./form-BoHpaLjl.js";
|
|
8
|
+
import { g as he, c as P } from "./calendar.module-DnhTT4QT.js";
|
|
9
|
+
import { f as E, a as h } from "./find-child-C60k4CxG.js";
|
|
10
|
+
import { D as Te, E as Ne } from "./field-error-headless-Dgx4BHo5.js";
|
|
11
|
+
import { L as ve } from "./field-label-headless-CsqtNbNm.js";
|
|
12
|
+
import { D as be, 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-Dpk8_xn2.js";
|
|
14
|
+
import { i as Fe } from "./date-availability-2VUtbyz1.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";
|
|
@@ -27,19 +27,19 @@ const Oe = [
|
|
|
27
27
|
], Pe = {
|
|
28
28
|
availableDays: Oe
|
|
29
29
|
}, a = ({ children: t }) => {
|
|
30
|
-
const { id: r, value:
|
|
31
|
-
const J =
|
|
30
|
+
const { id: r, value: o, onChange: n, disabled: i, required: c, onBlur: u, onFocus: l, FieldLayout: m, hasError: d, readOnly: f } = T(), { labelId: C } = U(), { regionalFormat: N } = F(), [s, v] = A(null), [q, K] = A(!1), b = _e(r), W = x((z) => {
|
|
31
|
+
const J = Ke(z);
|
|
32
32
|
n(J);
|
|
33
33
|
}, [
|
|
34
34
|
n
|
|
35
|
-
]),
|
|
35
|
+
]), $ = E(t, a.Label), H = E(t, a.Control), j = E(t, a.Calendar), G = E(t, a.Description), Q = E(t, a.Error), Z = qe(o);
|
|
36
36
|
return /* @__PURE__ */ e.createElement(m, {
|
|
37
37
|
fieldId: r,
|
|
38
|
-
renderLabel: () =>
|
|
38
|
+
renderLabel: () => $,
|
|
39
39
|
renderInput: () => /* @__PURE__ */ e.createElement(ae, {
|
|
40
|
-
locale:
|
|
40
|
+
locale: N
|
|
41
41
|
}, /* @__PURE__ */ e.createElement("div", {
|
|
42
|
-
ref:
|
|
42
|
+
ref: v,
|
|
43
43
|
style: {
|
|
44
44
|
display: "contents"
|
|
45
45
|
}
|
|
@@ -48,168 +48,169 @@ const Oe = [
|
|
|
48
48
|
}, /* @__PURE__ */ e.createElement(ne, {
|
|
49
49
|
"aria-labelledby": C,
|
|
50
50
|
value: Z,
|
|
51
|
-
onChange:
|
|
51
|
+
onChange: W,
|
|
52
52
|
isDisabled: i,
|
|
53
|
-
isInvalid:
|
|
53
|
+
isInvalid: d,
|
|
54
54
|
isReadOnly: f,
|
|
55
55
|
isRequired: c,
|
|
56
|
-
onBlur:
|
|
57
|
-
onFocus:
|
|
58
|
-
isOpen: b ||
|
|
59
|
-
onOpenChange: b ? void 0 :
|
|
60
|
-
},
|
|
56
|
+
onBlur: u,
|
|
57
|
+
onFocus: l,
|
|
58
|
+
isOpen: b || q,
|
|
59
|
+
onOpenChange: b ? void 0 : K
|
|
60
|
+
}, H, h(j, {
|
|
61
61
|
isForcedOpen: b
|
|
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:
|
|
67
|
-
if (!
|
|
66
|
+
const { inputId: o, ariaDescribedBy: n } = U(), { hasError: i, disabled: c, readOnly: u } = T(), l = ee(oe), m = x((d) => {
|
|
67
|
+
if (!l || l.isOpen || c || u)
|
|
68
68
|
return;
|
|
69
|
-
const f =
|
|
69
|
+
const f = d.target;
|
|
70
70
|
if (f.closest("button"))
|
|
71
71
|
return;
|
|
72
72
|
const C = f.closest("[data-type]");
|
|
73
|
-
C && C.getAttribute("data-type") !== "literal" ||
|
|
73
|
+
C && C.getAttribute("data-type") !== "literal" || l.setOpen(!0);
|
|
74
74
|
}, [
|
|
75
|
-
|
|
75
|
+
l,
|
|
76
76
|
c,
|
|
77
|
-
|
|
77
|
+
u
|
|
78
78
|
]);
|
|
79
79
|
return /* @__PURE__ */ e.createElement(le, {
|
|
80
|
-
id:
|
|
80
|
+
id: o,
|
|
81
81
|
"aria-describedby": n,
|
|
82
82
|
className: r,
|
|
83
83
|
"data-invalid": i,
|
|
84
84
|
onPointerDownCapture: m
|
|
85
85
|
}, t);
|
|
86
|
-
},
|
|
87
|
-
const { id: r, placeholder:
|
|
86
|
+
}, xe = ({ className: t }) => {
|
|
87
|
+
const { id: r, placeholder: o } = T(), { regionalFormat: n } = F(), i = O(null), c = O(!1);
|
|
88
88
|
pe(() => {
|
|
89
|
-
var
|
|
90
|
-
(
|
|
89
|
+
var l;
|
|
90
|
+
(l = i.current) == null || l.focus();
|
|
91
91
|
}, r);
|
|
92
|
-
const
|
|
92
|
+
const u = _(() => We(n), [
|
|
93
93
|
n
|
|
94
94
|
]);
|
|
95
95
|
return /* @__PURE__ */ e.createElement(se, {
|
|
96
|
-
className: t
|
|
97
|
-
|
|
98
|
-
|
|
96
|
+
className: t,
|
|
97
|
+
"data-placeholder-hidden": !o || void 0
|
|
98
|
+
}, (l) => {
|
|
99
|
+
const m = l.type === u && l.isPlaceholder && !!o;
|
|
99
100
|
return /* @__PURE__ */ e.createElement(ce, {
|
|
100
|
-
segment:
|
|
101
|
+
segment: l,
|
|
101
102
|
"data-first-segment": m || void 0,
|
|
102
|
-
ref: (
|
|
103
|
-
if (!
|
|
103
|
+
ref: (d) => {
|
|
104
|
+
if (!d && c.current) {
|
|
104
105
|
i.current = null, c.current = !1;
|
|
105
106
|
return;
|
|
106
107
|
}
|
|
107
|
-
if (
|
|
108
|
-
i.current =
|
|
108
|
+
if (d && !c.current) {
|
|
109
|
+
i.current = d, c.current = !0;
|
|
109
110
|
return;
|
|
110
111
|
}
|
|
111
112
|
}
|
|
112
|
-
}, (
|
|
113
|
+
}, (d) => !d.isPlaceholder || !o ? d.text : m ? o : d.text);
|
|
113
114
|
});
|
|
114
|
-
},
|
|
115
|
+
}, ke = ({ children: t, className: r }) => /* @__PURE__ */ e.createElement(be, {
|
|
115
116
|
className: r
|
|
116
|
-
}, t), g = ({ children: t, className: r, ...
|
|
117
|
-
const { isForcedOpen: n } =
|
|
117
|
+
}, t), g = ({ children: t, className: r, ...o }) => {
|
|
118
|
+
const { isForcedOpen: n } = o, { regionalFormat: i } = F(), { availability: c } = T(), u = _(() => he(i), [
|
|
118
119
|
i
|
|
119
|
-
]),
|
|
120
|
-
const
|
|
121
|
-
return !Fe(
|
|
120
|
+
]), l = _(() => (s) => {
|
|
121
|
+
const v = new Date(s.year, s.month - 1, s.day);
|
|
122
|
+
return !Fe(v, c || Pe);
|
|
122
123
|
}, [
|
|
123
124
|
c
|
|
124
|
-
]), m = E(t, g.Day) ?? /* @__PURE__ */ e.createElement(g.Day, null),
|
|
125
|
+
]), m = E(t, g.Day) ?? /* @__PURE__ */ e.createElement(g.Day, null), d = E(t, g.PreviousTrigger), f = E(t, g.NextTrigger), C = E(t, g.MonthTrigger), N = E(t, g.YearTrigger);
|
|
125
126
|
return /* @__PURE__ */ e.createElement(L, {
|
|
126
127
|
className: r,
|
|
127
128
|
containerPadding: 0
|
|
128
|
-
}, /* @__PURE__ */ e.createElement(
|
|
129
|
+
}, /* @__PURE__ */ e.createElement(Me, {
|
|
129
130
|
isForcedOpen: n
|
|
130
131
|
}, /* @__PURE__ */ e.createElement(ie, {
|
|
131
132
|
autoFocus: n ? !1 : void 0,
|
|
132
|
-
firstDayOfWeek:
|
|
133
|
-
isDateUnavailable:
|
|
134
|
-
}, /* @__PURE__ */ e.createElement("header", null,
|
|
133
|
+
firstDayOfWeek: $e(u),
|
|
134
|
+
isDateUnavailable: l
|
|
135
|
+
}, /* @__PURE__ */ e.createElement("header", null, d, /* @__PURE__ */ e.createElement(me, null, (s) => h(C, {
|
|
135
136
|
ariaLabel: s["aria-label"],
|
|
136
137
|
selectedKey: s.value,
|
|
137
138
|
onSelectionChange: s.onChange,
|
|
138
139
|
items: s.items,
|
|
139
140
|
popoverClassName: r
|
|
140
|
-
})), /* @__PURE__ */ e.createElement(
|
|
141
|
+
})), /* @__PURE__ */ e.createElement(de, {
|
|
141
142
|
visibleYears: 100
|
|
142
|
-
}, (s) =>
|
|
143
|
+
}, (s) => h(N, {
|
|
143
144
|
ariaLabel: s["aria-label"],
|
|
144
145
|
selectedKey: s.value,
|
|
145
146
|
onSelectionChange: s.onChange,
|
|
146
147
|
items: s.items,
|
|
147
148
|
popoverClassName: r
|
|
148
|
-
})), f), /* @__PURE__ */ e.createElement(
|
|
149
|
+
})), f), /* @__PURE__ */ e.createElement(ue, {
|
|
149
150
|
weekdayStyle: "short"
|
|
150
|
-
}, (s) =>
|
|
151
|
+
}, (s) => h(m, {
|
|
151
152
|
date: s
|
|
152
153
|
})))));
|
|
153
|
-
},
|
|
154
|
+
}, Me = ({ isForcedOpen: t, children: r }) => t ? /* @__PURE__ */ e.createElement("div", {
|
|
154
155
|
role: "dialog"
|
|
155
|
-
}, r) : /* @__PURE__ */ e.createElement(ge, null, r),
|
|
156
|
-
const { date: n } =
|
|
156
|
+
}, r) : /* @__PURE__ */ e.createElement(ge, null, r), we = ({ children: t, className: r, ...o }) => {
|
|
157
|
+
const { date: n } = o;
|
|
157
158
|
return /* @__PURE__ */ e.createElement(Ee, {
|
|
158
159
|
className: r,
|
|
159
160
|
date: n
|
|
160
161
|
}, t);
|
|
161
|
-
}, Ye = ({ children: t, className: r }) => /* @__PURE__ */ e.createElement(
|
|
162
|
+
}, Ye = ({ children: t, className: r }) => /* @__PURE__ */ e.createElement(k, {
|
|
162
163
|
slot: "previous",
|
|
163
164
|
className: r
|
|
164
|
-
}, t), Be = ({ children: t, className: r }) => /* @__PURE__ */ e.createElement(
|
|
165
|
+
}, t), Be = ({ children: t, className: r }) => /* @__PURE__ */ e.createElement(k, {
|
|
165
166
|
slot: "next",
|
|
166
167
|
className: r
|
|
167
|
-
}, t), Ue = ({ children: t, className: r, ...
|
|
168
|
-
const { ariaLabel: n, selectedKey: i, onSelectionChange: c, items:
|
|
169
|
-
return /* @__PURE__ */ e.createElement(
|
|
168
|
+
}, t), Ue = ({ children: t, className: r, ...o }) => {
|
|
169
|
+
const { ariaLabel: n, selectedKey: i, onSelectionChange: c, items: u, popoverClassName: l } = o;
|
|
170
|
+
return /* @__PURE__ */ e.createElement(M, {
|
|
170
171
|
"aria-label": n,
|
|
171
172
|
selectedKey: i,
|
|
172
173
|
onSelectionChange: c
|
|
173
174
|
}, /* @__PURE__ */ e.createElement(V, {
|
|
174
175
|
className: r
|
|
175
|
-
}, /* @__PURE__ */ e.createElement(
|
|
176
|
-
className:
|
|
176
|
+
}, /* @__PURE__ */ e.createElement(w, null), t), /* @__PURE__ */ e.createElement(L, {
|
|
177
|
+
className: l,
|
|
177
178
|
containerPadding: 0
|
|
178
179
|
}, /* @__PURE__ */ e.createElement(Y, {
|
|
179
|
-
items:
|
|
180
|
+
items: u
|
|
180
181
|
}, (m) => /* @__PURE__ */ e.createElement(B, {
|
|
181
182
|
id: m.id
|
|
182
183
|
}, m.formatted))));
|
|
183
|
-
}, Ve = ({ children: t, className: r, ...
|
|
184
|
-
const { ariaLabel: n, selectedKey: i, onSelectionChange: c, items:
|
|
185
|
-
return /* @__PURE__ */ e.createElement(
|
|
184
|
+
}, Ve = ({ children: t, className: r, ...o }) => {
|
|
185
|
+
const { ariaLabel: n, selectedKey: i, onSelectionChange: c, items: u, popoverClassName: l } = o;
|
|
186
|
+
return /* @__PURE__ */ e.createElement(M, {
|
|
186
187
|
"aria-label": n,
|
|
187
188
|
selectedKey: i,
|
|
188
189
|
onSelectionChange: c
|
|
189
190
|
}, /* @__PURE__ */ e.createElement(V, {
|
|
190
191
|
className: r
|
|
191
|
-
}, /* @__PURE__ */ e.createElement(
|
|
192
|
-
className:
|
|
192
|
+
}, /* @__PURE__ */ e.createElement(w, null), t), /* @__PURE__ */ e.createElement(L, {
|
|
193
|
+
className: l,
|
|
193
194
|
containerPadding: 0
|
|
194
195
|
}, /* @__PURE__ */ e.createElement(Y, {
|
|
195
|
-
items:
|
|
196
|
+
items: u
|
|
196
197
|
}, (m) => /* @__PURE__ */ e.createElement(B, {
|
|
197
198
|
id: m.id
|
|
198
199
|
}, m.formatted))));
|
|
199
200
|
};
|
|
200
|
-
g.Day =
|
|
201
|
+
g.Day = we;
|
|
201
202
|
g.PreviousTrigger = Ye;
|
|
202
203
|
g.NextTrigger = Be;
|
|
203
204
|
g.MonthTrigger = Ue;
|
|
204
205
|
g.YearTrigger = Ve;
|
|
205
|
-
a.Label =
|
|
206
|
+
a.Label = ve;
|
|
206
207
|
a.Control = Re;
|
|
207
|
-
a.Input =
|
|
208
|
-
a.Trigger =
|
|
208
|
+
a.Input = xe;
|
|
209
|
+
a.Trigger = ke;
|
|
209
210
|
a.Calendar = g;
|
|
210
|
-
a.Description =
|
|
211
|
-
a.Error =
|
|
212
|
-
function
|
|
211
|
+
a.Description = Te;
|
|
212
|
+
a.Error = Ne;
|
|
213
|
+
function qe(t) {
|
|
213
214
|
if (!t)
|
|
214
215
|
return null;
|
|
215
216
|
try {
|
|
@@ -218,13 +219,13 @@ function Ke(t) {
|
|
|
218
219
|
return null;
|
|
219
220
|
}
|
|
220
221
|
}
|
|
221
|
-
function
|
|
222
|
+
function Ke(t) {
|
|
222
223
|
if (!t)
|
|
223
224
|
return null;
|
|
224
|
-
const r = String(t.year).padStart(4, "0"),
|
|
225
|
-
return `${r}-${
|
|
225
|
+
const r = String(t.year).padStart(4, "0"), o = String(t.month).padStart(2, "0"), n = String(t.day).padStart(2, "0");
|
|
226
|
+
return `${r}-${o}-${n}`;
|
|
226
227
|
}
|
|
227
|
-
function
|
|
228
|
+
function We(t) {
|
|
228
229
|
var r;
|
|
229
230
|
try {
|
|
230
231
|
return ((r = new Intl.DateTimeFormat(t, {
|
|
@@ -236,7 +237,7 @@ function $e(t) {
|
|
|
236
237
|
return "month";
|
|
237
238
|
}
|
|
238
239
|
}
|
|
239
|
-
function
|
|
240
|
+
function $e(t) {
|
|
240
241
|
return [
|
|
241
242
|
"sun",
|
|
242
243
|
"mon",
|
|
@@ -247,7 +248,7 @@ function He(t) {
|
|
|
247
248
|
"sat"
|
|
248
249
|
][t] || "mon";
|
|
249
250
|
}
|
|
250
|
-
const
|
|
251
|
+
const He = (t) => /* @__PURE__ */ e.createElement("svg", {
|
|
251
252
|
viewBox: "0 0 24 24",
|
|
252
253
|
fill: "none",
|
|
253
254
|
width: 14,
|
|
@@ -260,7 +261,7 @@ const qe = (t) => /* @__PURE__ */ e.createElement("svg", {
|
|
|
260
261
|
strokeWidth: "1.5",
|
|
261
262
|
strokeLinecap: "round",
|
|
262
263
|
strokeLinejoin: "round"
|
|
263
|
-
})), je = "
|
|
264
|
+
})), je = "_control_qgrx0_1", Ge = "_segments_qgrx0_14", Qe = "_trigger_qgrx0_72", Ze = "_calendarPopover_qgrx0_103", ze = "_calendarDay_qgrx0_249", S = {
|
|
264
265
|
control: je,
|
|
265
266
|
segments: Ge,
|
|
266
267
|
trigger: Qe,
|
|
@@ -286,7 +287,7 @@ const qe = (t) => /* @__PURE__ */ e.createElement("svg", {
|
|
|
286
287
|
className: t
|
|
287
288
|
}, /* @__PURE__ */ e.createElement(a.Trigger, {
|
|
288
289
|
className: S.trigger
|
|
289
|
-
}, /* @__PURE__ */ e.createElement(
|
|
290
|
+
}, /* @__PURE__ */ e.createElement(He, null)), /* @__PURE__ */ e.createElement(a.Input, {
|
|
290
291
|
className: S.segments
|
|
291
292
|
})), /* @__PURE__ */ e.createElement(a.Calendar, {
|
|
292
293
|
className: y(Ce, D.selectPopover, S.calendarPopover)
|