@wix/form-elements 1.121.0 → 1.122.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-BmwzUTfZ.js → appointment-rac-Cj90bm7v.js} +4 -4
- package/dist/component/{bookings-address-rac-CDpBaBGi.js → bookings-address-rac-ta3UnLl8.js} +1 -1
- package/dist/component/{bookings-email-rac-8AonBAEP.js → bookings-email-rac-Ch2W4ucr.js} +1 -1
- package/dist/component/{bookings-first-name-rac-BAF3OLyL.js → bookings-first-name-rac-CvBNN0qW.js} +1 -1
- package/dist/component/{bookings-header-rac-DIXxOHe1.js → bookings-header-rac-BGn5xB-k.js} +1 -1
- package/dist/component/{bookings-last-name-rac-Cm-58BWq.js → bookings-last-name-rac-Dlu0RgZ0.js} +1 -1
- package/dist/component/{bookings-login-bar-rac-DvaiFVqg.js → bookings-login-bar-rac-1htwH3kv.js} +1 -1
- package/dist/component/{bookings-phone-rac-znrjfRwm.js → bookings-phone-rac-U75qHO4B.js} +1 -1
- package/dist/component/{bookings-rich-text-rac-DFPeWcrH.js → bookings-rich-text-rac-_j66QPCk.js} +1 -1
- package/dist/component/{checkbox-field-rac-COvxqyF7.js → checkbox-field-rac-CjQeC7-Y.js} +4 -4
- package/dist/component/{checkbox-group-field-headless-DT1HX61N.js → checkbox-group-field-headless-BLZlefmT.js} +3 -3
- package/dist/component/{checkbox-group-field-rac-Db1w6Vzm.js → checkbox-group-field-rac-s_9nrnok.js} +4 -4
- package/dist/component/{checkbox-group-rac-BCgFQJ4P.js → checkbox-group-rac-DZgOprql.js} +1 -1
- package/dist/component/{checkbox-rac-C1dKq2AT.js → checkbox-rac-H0jZt4pG.js} +1 -1
- package/dist/component/{contacts-address-rac-BoZ2LExb.js → contacts-address-rac-QMPNicwV.js} +1 -1
- package/dist/component/{contacts-birthdate-rac-CX-oJkwP.js → contacts-birthdate-rac-BubQqfVp.js} +1 -1
- package/dist/component/{contacts-company-rac-ByY9oaOX.js → contacts-company-rac-fVQn5dPH.js} +1 -1
- package/dist/component/{contacts-email-rac-DBnTEm82.js → contacts-email-rac-sJqycgjN.js} +1 -1
- package/dist/component/{contacts-first-name-rac-Jn-ubMoS.js → contacts-first-name-rac-DuHDHR2w.js} +1 -1
- package/dist/component/{contacts-last-name-rac-Wea7_JU-.js → contacts-last-name-rac-DV2g2QGF.js} +1 -1
- package/dist/component/{contacts-phone-rac-POYGTwBr.js → contacts-phone-rac-e9o55Al-.js} +1 -1
- package/dist/component/{contacts-position-rac-DjDHNTfL.js → contacts-position-rac-Z6vDVuT7.js} +1 -1
- package/dist/component/{contacts-subscribe-rac-C7vOLrLV.js → contacts-subscribe-rac-GiiBZhQ7.js} +1 -1
- package/dist/component/{contacts-tax-id-rac-C-CVis0b.js → contacts-tax-id-rac-KFIbfE1X.js} +1 -1
- package/dist/component/{date-availability-B3unFx4z.js → date-availability-BloJXrmD.js} +1 -1
- package/dist/component/date-input-field-rac-MT_m-Z3G.js +290 -0
- package/dist/component/{date-input-rac-BW_WuabB.js → date-input-rac-C2WNFEp-.js} +1 -1
- package/dist/component/{date-picker-field-rac-DgBfvDRc.js → date-picker-field-rac-C9ewyabf.js} +117 -114
- package/dist/component/{date-picker-rac-B2v-E9tZ.js → date-picker-rac-BiDt00zO.js} +1 -1
- package/dist/component/{date-time-input-field-rac-DNxauQLv.js → date-time-input-field-rac-D1GNwPmZ.js} +111 -111
- package/dist/component/{date-time-input-rac-DZMQuMlD.js → date-time-input-rac-VMTzuAzt.js} +1 -1
- package/dist/component/{dext-checkbox-group-rac-B0u3i1v1.js → dext-checkbox-group-rac-CUG-FJj1.js} +2 -2
- package/dist/component/{dext-checkbox-rac-BngAFLbm.js → dext-checkbox-rac-DUC-rpQy.js} +1 -1
- package/dist/component/{dext-date-picker-rac-CyPtZQQp.js → dext-date-picker-rac-Bp1_5ZRF.js} +1 -1
- package/dist/component/{dext-date-time-input-rac-DBm_ZVMr.js → dext-date-time-input-rac-D7BBsF1U.js} +1 -1
- package/dist/component/{dext-dropdown-rac-DBDOigJS.js → dext-dropdown-rac-GmP2v4Va.js} +1 -1
- package/dist/component/{dext-email-rac-Cj-eerfr.js → dext-email-rac-Dfu8MJjD.js} +1 -1
- package/dist/component/{dext-number-input-rac-WdUIM6bV.js → dext-number-input-rac-C8ejJdHk.js} +1 -1
- package/dist/component/{dext-phone-rac-CH-UDDKr.js → dext-phone-rac-iaVcaxNr.js} +1 -1
- package/dist/component/{dext-radio-group-rac-umexCSNY.js → dext-radio-group-rac-yOH9UuWW.js} +2 -2
- package/dist/component/{dext-rating-input-rac-ukMPDLxU.js → dext-rating-input-rac-d_PyzTCP.js} +1 -1
- package/dist/component/{dext-tags-rac-BE8aqyRm.js → dext-tags-rac-CjH32M87.js} +2 -2
- package/dist/component/{dext-text-area-rac-GtNDPetb.js → dext-text-area-rac-BLcw2KMH.js} +1 -1
- package/dist/component/{dext-text-input-rac-DQhaKaoe.js → dext-text-input-rac-2SLBKsBY.js} +1 -1
- package/dist/component/{dext-url-input-rac-DogsntOO.js → dext-url-input-rac-BIh4KJw3.js} +1 -1
- package/dist/component/{donation-rac-C1Se3wmU.js → donation-rac-D1cY7dDX.js} +5 -5
- package/dist/component/{dropdown-field-headless-5vi45azS.js → dropdown-field-headless-DgpZtlSI.js} +5 -5
- package/dist/component/{dropdown-field-rac-B0PeCuG6.js → dropdown-field-rac-CUNtROoj.js} +18 -17
- package/dist/component/{dropdown-rac--ZgcFbpH.js → dropdown-rac-BdCYUN39.js} +1 -1
- package/dist/component/{ecom-address-rac-C1p-fN1j.js → ecom-address-rac-CRcfdrJ1.js} +1 -1
- package/dist/component/{ecom-subscription-checkbox-rac-uplYmDWZ.js → ecom-subscription-checkbox-rac-CgePHF0U.js} +2 -2
- package/dist/component/{email-input-field-rac-C6nqydVv.js → email-input-field-rac-DvWj_fAr.js} +3 -3
- package/dist/component/{events-repeater-rac-CqKFo75H.js → events-repeater-rac-Cfth4URI.js} +4 -4
- package/dist/component/{events-rsvp-rac-BBQwW-Jk.js → events-rsvp-rac-PmNHKbSw.js} +3 -3
- package/dist/component/{field-error-headless-COObBNJG.js → field-error-headless-B8MijSrk.js} +1 -1
- package/dist/component/{field-label-headless-DhXceghb.js → field-label-headless-D3FPZC-x.js} +1 -1
- package/dist/component/{file-upload-rac-B5CnpgIo.js → file-upload-rac-BNqkSQ2b.js} +4 -4
- package/dist/component/{fixed-payment-rac-B8yKRpQV.js → fixed-payment-rac-CtNOKzeC.js} +3 -3
- package/dist/component/{form-CimhBiBc.js → form-AphBF-mQ.js} +691 -671
- package/dist/component/form.css +1 -1
- package/dist/component/form.js +1 -1
- package/dist/component/{header-field-rac-BHgFF-LG.js → header-field-rac-cJ2ZFy67.js} +2 -2
- package/dist/component/{header-rac-DJttTbow.js → header-rac-Dd7yRNC0.js} +1 -1
- package/dist/component/{image-choice-rac-C-qj1WBS.js → image-choice-rac-2Z_7AfHu.js} +4 -4
- package/dist/component/{index-Qe91Dgi2.js → index-A4jMKGCs.js} +2 -2
- package/dist/component/{index-9nfSsqJo.js → index-ERGpdqrG.js} +4 -4
- package/dist/component/{isObjectLike-VICRth8V.js → isObjectLike-wpJkrV5k.js} +1 -1
- package/dist/component/{multiline-address-field-rac-DMg6V-0L.js → multiline-address-field-rac-CGqF3dfq.js} +369 -369
- package/dist/component/{multiline-address-rac-DpvB5bX9.js → multiline-address-rac-Dy8_4emN.js} +1 -1
- package/dist/component/{number-input-field-rac-DQERdWaA.js → number-input-field-rac-BaTODjcx.js} +4 -4
- package/dist/component/{number-input-rac-DY9uyE-k.js → number-input-rac-CVpDhFz5.js} +1 -1
- package/dist/component/{password-rac-cSWH1LPy.js → password-rac-BNam3XdN.js} +4 -4
- package/dist/component/{payment-input-rac-BiUNnsQx.js → payment-input-rac-Czqho0fu.js} +4 -4
- package/dist/component/phone-input-field-rac-BM2SoA5b.js +507 -0
- package/dist/component/{phone-rac-CFeNcp2U.js → phone-rac-BuC_Yxb2.js} +1 -1
- package/dist/component/{product-list-rac-DzhnEmL_.js → product-list-rac-gfZUDEoh.js} +4 -4
- package/dist/component/{quiz-radio-group-rac-BpsPgebu.js → quiz-radio-group-rac-DswfVeX4.js} +1 -1
- package/dist/component/{radio-button-module-classes-NBKHsJH7.js → radio-button-module-classes-DmWrhFOe.js} +3 -3
- package/dist/component/{radio-group-field-rac-C2oTt1mT.js → radio-group-field-rac-CE67QNOZ.js} +4 -4
- package/dist/component/{radio-group-rac-oINHZ5yY.js → radio-group-rac-hMr6DTvG.js} +1 -1
- package/dist/component/{rating-input-field-rac-fnv2RdUA.js → rating-input-field-rac-bDVUjGJa.js} +4 -4
- package/dist/component/{rating-input-rac-BFofFzSX.js → rating-input-rac-ZNdJ7gjD.js} +1 -1
- package/dist/component/{rich-content-rac.module-BplXvCt6.js → rich-content-rac.module-CUYcnq1k.js} +1 -1
- package/dist/component/{rich-text-field-rac-Csi4_gCV.js → rich-text-field-rac-DjnSs-6W.js} +2 -2
- package/dist/component/{rich-text-rac-Btu1y3LR.js → rich-text-rac-BIZ9Yyb_.js} +1 -1
- package/dist/component/service-dropdown-rac-6cm9orLJ.js +146 -0
- package/dist/component/{services-multi-choice-rac-B2rAg7VN.js → services-multi-choice-rac-DkojlNhZ.js} +5 -5
- package/dist/component/{signature-rac-tznFgZ4j.js → signature-rac-BfDoEvbo.js} +3 -3
- package/dist/component/submit-button-rac-BDEQy_l_.js +172 -0
- package/dist/component/{tags-field-rac-DFm9o85s.js → tags-field-rac-DvmQ9U0Y.js} +5 -5
- package/dist/component/{tags-rac-CJFccYp5.js → tags-rac-DxkhHwfm.js} +1 -1
- package/dist/component/{text-area-field-rac-C4UEZOjz.js → text-area-field-rac-DngdDcia.js} +4 -4
- package/dist/component/{text-area-rac-Dhsq1l8f.js → text-area-rac-CXm7TYZV.js} +1 -1
- package/dist/component/{text-input-field-rac-DiW0Sqj_.js → text-input-field-rac-DyDgs_io.js} +3 -3
- package/dist/component/{text-input-headless-u1_aFnZ1.js → text-input-headless-C_feZwcp.js} +3 -3
- package/dist/component/{text-input-rac-COy-c4N_.js → text-input-rac-C5UxE1Zt.js} +1 -1
- package/dist/component/{time-input-rac-DipZQTZN.js → time-input-rac-cBIuRiEr.js} +4 -4
- package/dist/component/{url-input-field-rac-DhBCGvKd.js → url-input-field-rac-BUO9FUv6.js} +4 -4
- package/dist/component/{url-input-rac-kw4gCDbc.js → url-input-rac-D7Z-AQaq.js} +1 -1
- package/dist/component/{use-dropdown-option-class-name-Bes6rpX4.js → use-dropdown-option-class-name-Bm1SOTi8.js} +2 -2
- package/dist/component/use-dropdown-trigger-class-name-Dcy1VIqo.js +43 -0
- package/dist/component/{use-element-state-class-name-_GWfwpEf.js → use-element-state-class-name-B3vhm52Z.js} +1 -1
- package/dist/component/use-hoverable-input-class-name-nSoEwyiu.js +23 -0
- package/dist/component/{use-service-options-base-4yrjmSWU.js → use-service-options-base-Drse9uff.js} +1 -1
- package/dist/component/use-text-input-class-name-CZWGRiSQ.js +6 -0
- package/package.json +2 -2
- package/dist/component/date-input-field-rac-BW0c1-Kl.js +0 -290
- package/dist/component/phone-input-field-rac-CtPGbnw_.js +0 -504
- package/dist/component/service-dropdown-rac-CzZW7Bp1.js +0 -145
- package/dist/component/submit-button-rac-DnHWbtTC.js +0 -141
- package/dist/component/use-is-forced-open-dropdown-RE1Ml2A3.js +0 -41
- package/dist/component/use-text-input-class-name-uMLXv54u.js +0 -23
package/dist/component/{date-picker-field-rac-DgBfvDRc.js → date-picker-field-rac-C9ewyabf.js}
RENAMED
|
@@ -1,76 +1,76 @@
|
|
|
1
1
|
import { RicosViewer as X } from "@wix/ricos/viewer";
|
|
2
|
-
import
|
|
3
|
-
import e, { useState as
|
|
2
|
+
import y from "classnames";
|
|
3
|
+
import e, { useState as A, useCallback as k, useContext as ee, useRef as O, useMemo as _ } from "react";
|
|
4
4
|
import { parseDate as te } from "@internationalized/date";
|
|
5
5
|
import { UNSAFE_PortalProvider as re } from "react-aria";
|
|
6
|
-
import { I18nProvider as
|
|
7
|
-
import { D as
|
|
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 ue, CalendarGrid as de, Dialog as ge, CalendarCell as Ee, Button as M, Select as w, SelectValue as x, ListBox as Y, ListBoxItem as B } from "react-aria-components";
|
|
7
|
+
import { D as p, b9 as v, b6 as U, b1 as F, bb as pe, I as De, U as fe, n as Ce, v as ye, p as Se } from "./form-AphBF-mQ.js";
|
|
8
8
|
import { g as Te, c as P } from "./calendar.module-DnhTT4QT.js";
|
|
9
|
-
import { f as E, a as
|
|
10
|
-
import { D as
|
|
11
|
-
import { L as Ne } from "./field-label-headless-
|
|
9
|
+
import { f as E, a as T } from "./find-child-C60k4CxG.js";
|
|
10
|
+
import { D as ve, E as he } from "./field-error-headless-B8MijSrk.js";
|
|
11
|
+
import { L as Ne } from "./field-label-headless-D3FPZC-x.js";
|
|
12
12
|
import { D as be, N as L, S as V } from "./non-modal-popover-DtIMXHbe.js";
|
|
13
|
-
import { u as Ie } from "./use-
|
|
14
|
-
import { i as Fe } from "./date-availability-
|
|
13
|
+
import { a as _e, u as Ie } from "./use-dropdown-trigger-class-name-Dcy1VIqo.js";
|
|
14
|
+
import { i as Fe } from "./date-availability-BloJXrmD.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
|
-
import { H as
|
|
18
|
-
import { s as
|
|
19
|
-
const
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
17
|
+
import { H as Ae } from "./custom-focus-class-_483Pkwp.js";
|
|
18
|
+
import { s as D } from "./field-rac.module-B4l_0KRU.js";
|
|
19
|
+
const Oe = [
|
|
20
|
+
p.SUNDAY,
|
|
21
|
+
p.MONDAY,
|
|
22
|
+
p.TUESDAY,
|
|
23
|
+
p.WEDNESDAY,
|
|
24
|
+
p.THURSDAY,
|
|
25
|
+
p.FRIDAY,
|
|
26
|
+
p.SATURDAY
|
|
27
27
|
], Pe = {
|
|
28
|
-
availableDays:
|
|
29
|
-
},
|
|
30
|
-
const { id: r, value: l, onChange:
|
|
31
|
-
const J =
|
|
32
|
-
|
|
28
|
+
availableDays: Oe
|
|
29
|
+
}, a = ({ children: t }) => {
|
|
30
|
+
const { id: r, value: l, onChange: n, disabled: i, required: c, onBlur: d, onFocus: o, FieldLayout: m, hasError: u, readOnly: f } = v(), { labelId: C } = U(), { regionalFormat: h } = F(), [s, N] = A(null), [K, W] = A(!1), b = _e(r), $ = k((z) => {
|
|
31
|
+
const J = We(z);
|
|
32
|
+
n(J);
|
|
33
33
|
}, [
|
|
34
|
-
|
|
35
|
-
]), H = E(t,
|
|
34
|
+
n
|
|
35
|
+
]), H = E(t, a.Label), q = E(t, a.Control), j = E(t, a.Calendar), G = E(t, a.Description), Q = E(t, a.Error), Z = Ke(l);
|
|
36
36
|
return /* @__PURE__ */ e.createElement(m, {
|
|
37
37
|
fieldId: r,
|
|
38
38
|
renderLabel: () => H,
|
|
39
|
-
renderInput: () => /* @__PURE__ */ e.createElement(
|
|
39
|
+
renderInput: () => /* @__PURE__ */ e.createElement(ae, {
|
|
40
40
|
locale: h
|
|
41
41
|
}, /* @__PURE__ */ e.createElement("div", {
|
|
42
|
-
ref:
|
|
42
|
+
ref: N,
|
|
43
43
|
style: {
|
|
44
44
|
display: "contents"
|
|
45
45
|
}
|
|
46
46
|
}), /* @__PURE__ */ e.createElement(re, {
|
|
47
47
|
getContainer: () => s
|
|
48
|
-
}, /* @__PURE__ */ e.createElement(
|
|
49
|
-
"aria-labelledby":
|
|
48
|
+
}, /* @__PURE__ */ e.createElement(ne, {
|
|
49
|
+
"aria-labelledby": C,
|
|
50
50
|
value: Z,
|
|
51
51
|
onChange: $,
|
|
52
52
|
isDisabled: i,
|
|
53
53
|
isInvalid: u,
|
|
54
|
-
isReadOnly:
|
|
54
|
+
isReadOnly: f,
|
|
55
55
|
isRequired: c,
|
|
56
56
|
onBlur: d,
|
|
57
57
|
onFocus: o,
|
|
58
|
-
isOpen:
|
|
59
|
-
onOpenChange:
|
|
60
|
-
}, q,
|
|
61
|
-
isForcedOpen:
|
|
58
|
+
isOpen: b || K,
|
|
59
|
+
onOpenChange: b ? void 0 : W
|
|
60
|
+
}, q, T(j, {
|
|
61
|
+
isForcedOpen: b
|
|
62
62
|
})))),
|
|
63
|
-
renderDescription: () => /* @__PURE__ */ e.createElement(e.Fragment, null, Q,
|
|
63
|
+
renderDescription: () => /* @__PURE__ */ e.createElement(e.Fragment, null, Q, G)
|
|
64
64
|
});
|
|
65
65
|
}, Re = ({ children: t, className: r }) => {
|
|
66
|
-
const { inputId: l, ariaDescribedBy:
|
|
66
|
+
const { inputId: l, ariaDescribedBy: n } = U(), { hasError: i, disabled: c, readOnly: d } = v(), o = ee(oe), m = k((u) => {
|
|
67
67
|
if (!o || o.isOpen || c || d)
|
|
68
68
|
return;
|
|
69
|
-
const
|
|
70
|
-
if (
|
|
69
|
+
const f = u.target;
|
|
70
|
+
if (f.closest("button"))
|
|
71
71
|
return;
|
|
72
|
-
const
|
|
73
|
-
|
|
72
|
+
const C = f.closest("[data-type]");
|
|
73
|
+
C && C.getAttribute("data-type") !== "literal" || o.setOpen(!0);
|
|
74
74
|
}, [
|
|
75
75
|
o,
|
|
76
76
|
c,
|
|
@@ -78,19 +78,19 @@ const Ae = [
|
|
|
78
78
|
]);
|
|
79
79
|
return /* @__PURE__ */ e.createElement(le, {
|
|
80
80
|
id: l,
|
|
81
|
-
"aria-describedby":
|
|
81
|
+
"aria-describedby": n,
|
|
82
82
|
className: r,
|
|
83
83
|
"data-invalid": i,
|
|
84
84
|
onPointerDownCapture: m
|
|
85
85
|
}, t);
|
|
86
86
|
}, ke = ({ className: t }) => {
|
|
87
|
-
const { id: r, placeholder: l } =
|
|
87
|
+
const { id: r, placeholder: l } = v(), { regionalFormat: n } = F(), i = O(null), c = O(!1);
|
|
88
88
|
pe(() => {
|
|
89
89
|
var o;
|
|
90
90
|
(o = i.current) == null || o.focus();
|
|
91
91
|
}, r);
|
|
92
|
-
const d =
|
|
93
|
-
|
|
92
|
+
const d = _(() => $e(n), [
|
|
93
|
+
n
|
|
94
94
|
]);
|
|
95
95
|
return /* @__PURE__ */ e.createElement(se, {
|
|
96
96
|
className: t
|
|
@@ -114,24 +114,24 @@ const Ae = [
|
|
|
114
114
|
}, Me = ({ children: t, className: r }) => /* @__PURE__ */ e.createElement(be, {
|
|
115
115
|
className: r
|
|
116
116
|
}, t), g = ({ children: t, className: r, ...l }) => {
|
|
117
|
-
const { isForcedOpen:
|
|
117
|
+
const { isForcedOpen: n } = l, { regionalFormat: i } = F(), { availability: c } = v(), d = _(() => Te(i), [
|
|
118
118
|
i
|
|
119
|
-
]), o =
|
|
120
|
-
const
|
|
121
|
-
return !Fe(
|
|
119
|
+
]), o = _(() => (s) => {
|
|
120
|
+
const N = new Date(s.year, s.month - 1, s.day);
|
|
121
|
+
return !Fe(N, c || Pe);
|
|
122
122
|
}, [
|
|
123
123
|
c
|
|
124
|
-
]), m = E(t, g.Day) ?? /* @__PURE__ */ e.createElement(g.Day, null), u = E(t, g.PreviousTrigger),
|
|
124
|
+
]), m = E(t, g.Day) ?? /* @__PURE__ */ e.createElement(g.Day, null), u = E(t, g.PreviousTrigger), f = E(t, g.NextTrigger), C = E(t, g.MonthTrigger), h = E(t, g.YearTrigger);
|
|
125
125
|
return /* @__PURE__ */ e.createElement(L, {
|
|
126
126
|
className: r,
|
|
127
127
|
containerPadding: 0
|
|
128
|
-
}, /* @__PURE__ */ e.createElement(
|
|
129
|
-
isForcedOpen:
|
|
128
|
+
}, /* @__PURE__ */ e.createElement(we, {
|
|
129
|
+
isForcedOpen: n
|
|
130
130
|
}, /* @__PURE__ */ e.createElement(ie, {
|
|
131
|
-
autoFocus:
|
|
131
|
+
autoFocus: n ? !1 : void 0,
|
|
132
132
|
firstDayOfWeek: He(d),
|
|
133
133
|
isDateUnavailable: o
|
|
134
|
-
}, /* @__PURE__ */ e.createElement("header", null, u, /* @__PURE__ */ e.createElement(me, null, (s) =>
|
|
134
|
+
}, /* @__PURE__ */ e.createElement("header", null, u, /* @__PURE__ */ e.createElement(me, null, (s) => T(C, {
|
|
135
135
|
ariaLabel: s["aria-label"],
|
|
136
136
|
selectedKey: s.value,
|
|
137
137
|
onSelectionChange: s.onChange,
|
|
@@ -139,24 +139,24 @@ const Ae = [
|
|
|
139
139
|
popoverClassName: r
|
|
140
140
|
})), /* @__PURE__ */ e.createElement(ue, {
|
|
141
141
|
visibleYears: 100
|
|
142
|
-
}, (s) =>
|
|
142
|
+
}, (s) => T(h, {
|
|
143
143
|
ariaLabel: s["aria-label"],
|
|
144
144
|
selectedKey: s.value,
|
|
145
145
|
onSelectionChange: s.onChange,
|
|
146
146
|
items: s.items,
|
|
147
147
|
popoverClassName: r
|
|
148
|
-
})),
|
|
148
|
+
})), f), /* @__PURE__ */ e.createElement(de, {
|
|
149
149
|
weekdayStyle: "short"
|
|
150
|
-
}, (s) =>
|
|
150
|
+
}, (s) => T(m, {
|
|
151
151
|
date: s
|
|
152
152
|
})))));
|
|
153
|
-
},
|
|
153
|
+
}, we = ({ isForcedOpen: t, children: r }) => t ? /* @__PURE__ */ e.createElement("div", {
|
|
154
154
|
role: "dialog"
|
|
155
|
-
}, r) : /* @__PURE__ */ e.createElement(ge, null, r),
|
|
156
|
-
const { date:
|
|
155
|
+
}, r) : /* @__PURE__ */ e.createElement(ge, null, r), xe = ({ children: t, className: r, ...l }) => {
|
|
156
|
+
const { date: n } = l;
|
|
157
157
|
return /* @__PURE__ */ e.createElement(Ee, {
|
|
158
158
|
className: r,
|
|
159
|
-
date:
|
|
159
|
+
date: n
|
|
160
160
|
}, t);
|
|
161
161
|
}, Ye = ({ children: t, className: r }) => /* @__PURE__ */ e.createElement(M, {
|
|
162
162
|
slot: "previous",
|
|
@@ -165,14 +165,14 @@ const Ae = [
|
|
|
165
165
|
slot: "next",
|
|
166
166
|
className: r
|
|
167
167
|
}, t), Ue = ({ children: t, className: r, ...l }) => {
|
|
168
|
-
const { ariaLabel:
|
|
169
|
-
return /* @__PURE__ */ e.createElement(
|
|
170
|
-
"aria-label":
|
|
168
|
+
const { ariaLabel: n, selectedKey: i, onSelectionChange: c, items: d, popoverClassName: o } = l;
|
|
169
|
+
return /* @__PURE__ */ e.createElement(w, {
|
|
170
|
+
"aria-label": n,
|
|
171
171
|
selectedKey: i,
|
|
172
172
|
onSelectionChange: c
|
|
173
173
|
}, /* @__PURE__ */ e.createElement(V, {
|
|
174
174
|
className: r
|
|
175
|
-
}, /* @__PURE__ */ e.createElement(
|
|
175
|
+
}, /* @__PURE__ */ e.createElement(x, null), t), /* @__PURE__ */ e.createElement(L, {
|
|
176
176
|
className: o,
|
|
177
177
|
containerPadding: 0
|
|
178
178
|
}, /* @__PURE__ */ e.createElement(Y, {
|
|
@@ -181,14 +181,14 @@ const Ae = [
|
|
|
181
181
|
id: m.id
|
|
182
182
|
}, m.formatted))));
|
|
183
183
|
}, Ve = ({ children: t, className: r, ...l }) => {
|
|
184
|
-
const { ariaLabel:
|
|
185
|
-
return /* @__PURE__ */ e.createElement(
|
|
186
|
-
"aria-label":
|
|
184
|
+
const { ariaLabel: n, selectedKey: i, onSelectionChange: c, items: d, popoverClassName: o } = l;
|
|
185
|
+
return /* @__PURE__ */ e.createElement(w, {
|
|
186
|
+
"aria-label": n,
|
|
187
187
|
selectedKey: i,
|
|
188
188
|
onSelectionChange: c
|
|
189
189
|
}, /* @__PURE__ */ e.createElement(V, {
|
|
190
190
|
className: r
|
|
191
|
-
}, /* @__PURE__ */ e.createElement(
|
|
191
|
+
}, /* @__PURE__ */ e.createElement(x, null), t), /* @__PURE__ */ e.createElement(L, {
|
|
192
192
|
className: o,
|
|
193
193
|
containerPadding: 0
|
|
194
194
|
}, /* @__PURE__ */ e.createElement(Y, {
|
|
@@ -197,19 +197,19 @@ const Ae = [
|
|
|
197
197
|
id: m.id
|
|
198
198
|
}, m.formatted))));
|
|
199
199
|
};
|
|
200
|
-
g.Day =
|
|
200
|
+
g.Day = xe;
|
|
201
201
|
g.PreviousTrigger = Ye;
|
|
202
202
|
g.NextTrigger = Be;
|
|
203
203
|
g.MonthTrigger = Ue;
|
|
204
204
|
g.YearTrigger = Ve;
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
function
|
|
205
|
+
a.Label = Ne;
|
|
206
|
+
a.Control = Re;
|
|
207
|
+
a.Input = ke;
|
|
208
|
+
a.Trigger = Me;
|
|
209
|
+
a.Calendar = g;
|
|
210
|
+
a.Description = ve;
|
|
211
|
+
a.Error = he;
|
|
212
|
+
function Ke(t) {
|
|
213
213
|
if (!t)
|
|
214
214
|
return null;
|
|
215
215
|
try {
|
|
@@ -218,11 +218,11 @@ function We(t) {
|
|
|
218
218
|
return null;
|
|
219
219
|
}
|
|
220
220
|
}
|
|
221
|
-
function
|
|
221
|
+
function We(t) {
|
|
222
222
|
if (!t)
|
|
223
223
|
return null;
|
|
224
|
-
const r = String(t.year).padStart(4, "0"), l = String(t.month).padStart(2, "0"),
|
|
225
|
-
return `${r}-${l}-${
|
|
224
|
+
const r = String(t.year).padStart(4, "0"), l = String(t.month).padStart(2, "0"), n = String(t.day).padStart(2, "0");
|
|
225
|
+
return `${r}-${l}-${n}`;
|
|
226
226
|
}
|
|
227
227
|
function $e(t) {
|
|
228
228
|
var r;
|
|
@@ -231,7 +231,7 @@ function $e(t) {
|
|
|
231
231
|
year: "numeric",
|
|
232
232
|
month: "2-digit",
|
|
233
233
|
day: "2-digit"
|
|
234
|
-
}).formatToParts(/* @__PURE__ */ new Date()).find((
|
|
234
|
+
}).formatToParts(/* @__PURE__ */ new Date()).find((n) => n.type !== "literal")) == null ? void 0 : r.type) ?? "month";
|
|
235
235
|
} catch {
|
|
236
236
|
return "month";
|
|
237
237
|
}
|
|
@@ -260,9 +260,9 @@ const qe = (t) => /* @__PURE__ */ e.createElement("svg", {
|
|
|
260
260
|
strokeWidth: "1.5",
|
|
261
261
|
strokeLinecap: "round",
|
|
262
262
|
strokeLinejoin: "round"
|
|
263
|
-
})),
|
|
264
|
-
control:
|
|
265
|
-
segments:
|
|
263
|
+
})), je = "_control_1vunt_1", Ge = "_segments_1vunt_14", Qe = "_trigger_1vunt_65", Ze = "_calendarPopover_1vunt_96", ze = "_calendarDay_1vunt_242", S = {
|
|
264
|
+
control: je,
|
|
265
|
+
segments: Ge,
|
|
266
266
|
trigger: Qe,
|
|
267
267
|
calendarPopover: Ze,
|
|
268
268
|
calendarDay: ze
|
|
@@ -276,35 +276,38 @@ const qe = (t) => /* @__PURE__ */ e.createElement("svg", {
|
|
|
276
276
|
style: {
|
|
277
277
|
transform: `rotate(${Xe[t]}deg)`
|
|
278
278
|
}
|
|
279
|
-
}), Ct = () =>
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
}
|
|
284
|
-
|
|
285
|
-
}, /* @__PURE__ */ e.createElement(
|
|
286
|
-
|
|
287
|
-
}, /* @__PURE__ */ e.createElement(
|
|
288
|
-
|
|
289
|
-
})), /* @__PURE__ */ e.createElement(
|
|
290
|
-
|
|
291
|
-
}, /* @__PURE__ */ e.createElement(
|
|
292
|
-
|
|
293
|
-
}
|
|
294
|
-
|
|
295
|
-
})), /* @__PURE__ */ e.createElement(
|
|
296
|
-
|
|
297
|
-
})), /* @__PURE__ */ e.createElement(
|
|
298
|
-
|
|
299
|
-
})), /* @__PURE__ */ e.createElement(
|
|
300
|
-
|
|
301
|
-
},
|
|
302
|
-
|
|
303
|
-
},
|
|
304
|
-
|
|
305
|
-
},
|
|
306
|
-
|
|
307
|
-
},
|
|
279
|
+
}), Ct = () => {
|
|
280
|
+
const t = Ie(S.control);
|
|
281
|
+
return /* @__PURE__ */ e.createElement(a, null, /* @__PURE__ */ e.createElement(a.Label, {
|
|
282
|
+
className: y(De, D.label)
|
|
283
|
+
}, /* @__PURE__ */ e.createElement(a.Label.Required, {
|
|
284
|
+
className: y(fe, D.requiredMark)
|
|
285
|
+
})), /* @__PURE__ */ e.createElement(a.Control, {
|
|
286
|
+
className: t
|
|
287
|
+
}, /* @__PURE__ */ e.createElement(a.Trigger, {
|
|
288
|
+
className: S.trigger
|
|
289
|
+
}, /* @__PURE__ */ e.createElement(qe, null)), /* @__PURE__ */ e.createElement(a.Input, {
|
|
290
|
+
className: S.segments
|
|
291
|
+
})), /* @__PURE__ */ e.createElement(a.Calendar, {
|
|
292
|
+
className: y(Ce, D.selectPopover, S.calendarPopover)
|
|
293
|
+
}, /* @__PURE__ */ e.createElement(a.Calendar.PreviousTrigger, null, /* @__PURE__ */ e.createElement(R, {
|
|
294
|
+
direction: "left"
|
|
295
|
+
})), /* @__PURE__ */ e.createElement(a.Calendar.MonthTrigger, null, /* @__PURE__ */ e.createElement(I, {
|
|
296
|
+
className: D.dropdownIcon
|
|
297
|
+
})), /* @__PURE__ */ e.createElement(a.Calendar.YearTrigger, null, /* @__PURE__ */ e.createElement(I, {
|
|
298
|
+
className: D.dropdownIcon
|
|
299
|
+
})), /* @__PURE__ */ e.createElement(a.Calendar.NextTrigger, null, /* @__PURE__ */ e.createElement(R, {
|
|
300
|
+
direction: "right"
|
|
301
|
+
})), /* @__PURE__ */ e.createElement(a.Calendar.Day, {
|
|
302
|
+
className: y(Ae, P.day, S.calendarDay)
|
|
303
|
+
}, ({ formattedDate: r }) => /* @__PURE__ */ e.createElement("span", {
|
|
304
|
+
className: P.dayNumber
|
|
305
|
+
}, r))), /* @__PURE__ */ e.createElement(a.Error, {
|
|
306
|
+
className: y(ye, D.error)
|
|
307
|
+
}, /* @__PURE__ */ e.createElement(Le, null), /* @__PURE__ */ e.createElement(a.Error.Text, null)), /* @__PURE__ */ e.createElement(a.Description, {
|
|
308
|
+
className: y(Se, D.description)
|
|
309
|
+
}, Je));
|
|
310
|
+
};
|
|
308
311
|
export {
|
|
309
312
|
Ct as D
|
|
310
313
|
};
|