@wix/form-elements 1.160.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-BmHu56e5.js → appointment-rac-3Z1wiBX6.js} +366 -359
- package/dist/component/{bookings-address-rac-DY9l2g0h.js → bookings-address-rac-2zV-a8SW.js} +1 -1
- package/dist/component/{bookings-email-rac-B5vNSOsS.js → bookings-email-rac-C1WakVnh.js} +1 -1
- package/dist/component/{bookings-first-name-rac-CJiefCNz.js → bookings-first-name-rac-6f18uXA0.js} +1 -1
- package/dist/component/{bookings-header-rac-BFu7Ko5w.js → bookings-header-rac-BeaxlPQl.js} +1 -1
- package/dist/component/{bookings-last-name-rac-DegMM13h.js → bookings-last-name-rac-CsLZaKfO.js} +1 -1
- package/dist/component/{bookings-login-bar-rac-DrA-5tBH.js → bookings-login-bar-rac-B3TRivWU.js} +5 -5
- package/dist/component/{bookings-phone-rac-DsaeqxCI.js → bookings-phone-rac-BnFEknvv.js} +1 -1
- package/dist/component/{bookings-rich-text-rac-jRHiwqi8.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-CyoBb6Yf.js → checkbox-field-rac-DqGbxAd0.js} +45 -45
- package/dist/component/{checkbox-group-field-headless-Bv1gU3oL.js → checkbox-group-field-headless-CiobdaVa.js} +38 -38
- package/dist/component/{checkbox-group-field-rac-DasArcdV.js → checkbox-group-field-rac-Dxrc2F4x.js} +14 -14
- package/dist/component/{checkbox-group-rac-CzmufV1U.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-6C7XoUoZ.js → checkbox-rac-DhZsIMuk.js} +1 -1
- package/dist/component/{contacts-address-rac-BZobbFtz.js → contacts-address-rac--GiWpa6C.js} +1 -1
- package/dist/component/{contacts-birthdate-rac-DIzf41DS.js → contacts-birthdate-rac-CmI2nPpr.js} +1 -1
- package/dist/component/{contacts-company-rac-BiBDO28r.js → contacts-company-rac-DcSLvPnR.js} +1 -1
- package/dist/component/{contacts-email-rac-5mqokCSD.js → contacts-email-rac-BLOIHGP9.js} +1 -1
- package/dist/component/{contacts-first-name-rac-BXe3_Nz5.js → contacts-first-name-rac-DgMCKLeE.js} +1 -1
- package/dist/component/{contacts-last-name-rac-Cfqgh7u1.js → contacts-last-name-rac-tcEQP1Db.js} +1 -1
- package/dist/component/{contacts-phone-rac-cmLUWnAc.js → contacts-phone-rac-CK664cfW.js} +1 -1
- package/dist/component/{contacts-position-rac-DTyvklfN.js → contacts-position-rac-B8skwXy6.js} +1 -1
- package/dist/component/{contacts-subscribe-rac-D-ZEX1A3.js → contacts-subscribe-rac-DQZYJjMo.js} +1 -1
- package/dist/component/{contacts-tax-id-rac-B4NYJwWt.js → contacts-tax-id-rac-Ci24ixLu.js} +1 -1
- package/dist/component/{date-availability-Dach9aRC.js → date-availability-Va6_2NAZ.js} +1 -1
- package/dist/component/{date-input-field-rac-B72mHcya.js → date-input-field-rac-lAKyuHOI.js} +98 -98
- package/dist/component/{date-input-rac-CYix11gT.js → date-input-rac-ClEesupR.js} +1 -1
- package/dist/component/{date-picker-field-rac-B8pvtPir.js → date-picker-field-rac-h45jfoso.js} +72 -72
- package/dist/component/{date-picker-rac-D6cR0zH9.js → date-picker-rac-B-pvqBn0.js} +1 -1
- package/dist/component/{date-time-input-field-rac-B7Y3Yf5l.js → date-time-input-field-rac-41QpurJp.js} +72 -72
- package/dist/component/{date-time-input-rac-DMN-noQX.js → date-time-input-rac-BQOUl7It.js} +1 -1
- package/dist/component/{dext-checkbox-group-rac-Kq0GnteP.js → dext-checkbox-group-rac-C4Q6tfBD.js} +2 -2
- package/dist/component/{dext-checkbox-rac-BY9GZ4n1.js → dext-checkbox-rac-Yo2PHNDA.js} +1 -1
- package/dist/component/{dext-date-picker-rac-CXArIddp.js → dext-date-picker-rac-jM9x8W6a.js} +1 -1
- package/dist/component/{dext-date-time-input-rac-B39TtxGq.js → dext-date-time-input-rac-BgW_4WIg.js} +1 -1
- package/dist/component/{dext-dropdown-rac-C3y0G8cS.js → dext-dropdown-rac-DCL7D6-G.js} +1 -1
- package/dist/component/{dext-email-rac-BIg3cq7Q.js → dext-email-rac-Dz7yBqkd.js} +1 -1
- package/dist/component/{dext-number-input-rac-27sHJ7yN.js → dext-number-input-rac-BdMjBpH9.js} +1 -1
- package/dist/component/{dext-phone-rac-CcohoFQp.js → dext-phone-rac-D2i9fXL3.js} +1 -1
- package/dist/component/{dext-radio-group-rac-eead3Gve.js → dext-radio-group-rac-Br2f1Ahx.js} +2 -2
- package/dist/component/{dext-rating-input-rac-B_E6OcBr.js → dext-rating-input-rac-OkfJ7Eb0.js} +1 -1
- package/dist/component/{dext-tags-rac-Yd9aAtnF.js → dext-tags-rac-43vDoDdM.js} +2 -2
- package/dist/component/{dext-text-area-rac-CMACri2C.js → dext-text-area-rac-C072pWO9.js} +1 -1
- package/dist/component/{dext-text-input-rac-sNjSCfQ-.js → dext-text-input-rac-BiHJpJCt.js} +1 -1
- package/dist/component/{dext-url-input-rac-DwhbzJty.js → dext-url-input-rac-YOGYMj5C.js} +1 -1
- package/dist/component/{donation-rac-BVAN3kMk.js → donation-rac-fCt3mddA.js} +106 -106
- package/dist/component/{dropdown-field-rac-DdoGigWx.js → dropdown-field-rac-EQrQJ2-C.js} +4 -4
- package/dist/component/{dropdown-rac-CRkt5w47.js → dropdown-rac-MPCcjrFd.js} +1 -1
- package/dist/component/{ecom-address-rac-C36hFHW0.js → ecom-address-rac-DSgpHqzV.js} +1 -1
- package/dist/component/{ecom-subscription-checkbox-rac-BKfQ348w.js → ecom-subscription-checkbox-rac-Dw6Ke0Fb.js} +2 -2
- package/dist/component/{email-input-field-rac-MOaISYxa.js → email-input-field-rac-DVmvH4u4.js} +80 -80
- package/dist/component/{events-repeater-rac-D6p-NgE8.js → events-repeater-rac-Uwpo7XF4.js} +25 -25
- package/dist/component/{events-rsvp-rac-DVpgN8gm.js → events-rsvp-rac-D2DJAkep.js} +4 -4
- package/dist/component/{field-error-headless-XNWmDH3E.js → field-error-headless-DAc8FpKI.js} +7 -7
- package/dist/component/{field-label-headless-CORRAJGt.js → field-label-headless-DxxwJtjh.js} +17 -17
- package/dist/component/field-rac.module-ts2t4WUO.js +25 -0
- package/dist/component/{file-upload-rac-DRMr7E4b.js → file-upload-rac-CBKIeaxX.js} +194 -194
- package/dist/component/{fixed-payment-rac-BUXzNex9.js → fixed-payment-rac-BsCDoc1p.js} +20 -20
- package/dist/component/{form-DSpx-AO8.js → form-GAuLAdjq.js} +338 -347
- package/dist/component/form.css +1 -1
- package/dist/component/form.js +1 -1
- package/dist/component/{header-field-rac-CiDXlNsa.js → header-field-rac-DtZCjzLJ.js} +6 -6
- package/dist/component/{header-rac-B5Rg-h8u.js → header-rac-B1hlVDf8.js} +1 -1
- package/dist/component/image-choice-rac-DQaCg_Xk.js +155 -0
- package/dist/component/{index-CwruESwc.js → index-BaVjVNYj.js} +5 -5
- package/dist/component/{index-Bz7ZhQsF.js → index-C1EXd9jU.js} +50 -50
- package/dist/component/{isObjectLike-C5dHxHP0.js → isObjectLike-m2dqIREj.js} +3 -3
- package/dist/component/{multiline-address-field-rac-Z-qF366L.js → multiline-address-field-rac-CMMdLb-J.js} +41 -41
- package/dist/component/{multiline-address-rac-CJIHTMw5.js → multiline-address-rac-VUQNp-Tz.js} +1 -1
- package/dist/component/{number-input-field-rac-D4vf6I6N.js → number-input-field-rac-B5bsGDKm.js} +24 -24
- package/dist/component/{number-input-rac-B2jW6JUQ.js → number-input-rac-BzzW0p9R.js} +1 -1
- package/dist/component/{password-rac-DGRZ17Jl.js → password-rac-2Rr7lvNO.js} +25 -25
- package/dist/component/{payment-input-rac-BtD-tAKv.js → payment-input-rac-CEUzIrJA.js} +31 -31
- package/dist/component/{phone-input-field-rac-KD4-APhr.js → phone-input-field-rac-BDBaqAzE.js} +59 -59
- package/dist/component/{phone-rac-Cw2yccgg.js → phone-rac-BTK8-tkq.js} +1 -1
- package/dist/component/{product-list-rac-XbzTDdbp.js → product-list-rac-1QbeT5RH.js} +43 -43
- package/dist/component/{quiz-radio-group-rac-BDw_mAw5.js → quiz-radio-group-rac-tn2CzdCu.js} +1 -1
- package/dist/component/{radio-button-module-classes-CFGf0Hzh.js → radio-button-module-classes-aK1SQcLG.js} +30 -30
- package/dist/component/{radio-group-field-rac-CXN7tyVu.js → radio-group-field-rac-DlMXhW_S.js} +7 -7
- package/dist/component/{radio-group-rac-COHzqjBh.js → radio-group-rac-BmU_5tBK.js} +1 -1
- package/dist/component/{rating-input-field-rac-DCXNZgf1.js → rating-input-field-rac-DUPJUAX2.js} +27 -27
- package/dist/component/{rating-input-rac-DwQt9ML7.js → rating-input-rac-BLhkZdj8.js} +1 -1
- package/dist/component/{rich-content-rac.module-B7rPwNns.js → rich-content-rac.module-C9bGXB69.js} +5 -5
- package/dist/component/{rich-text-field-rac-DlER7NRD.js → rich-text-field-rac-CVqmsZzZ.js} +6 -6
- package/dist/component/{rich-text-rac-CjicsHA7.js → rich-text-rac-D8K6445F.js} +1 -1
- package/dist/component/{service-dropdown-rac-B81LC_6_.js → service-dropdown-rac-PR_iLdmo.js} +31 -31
- package/dist/component/{services-multi-choice-rac-BR6gZeHk.js → services-multi-choice-rac-BvMadJCf.js} +19 -19
- package/dist/component/{signature-rac-XFj7Ddtp.js → signature-rac-Cpjv6kcl.js} +235 -235
- package/dist/component/{submit-button-rac-Bz7zs_3W.js → submit-button-rac-DpDk7cMb.js} +7 -7
- package/dist/component/{tags-field-rac-DWWkNKqc.js → tags-field-rac-DnyWNHXT.js} +67 -67
- package/dist/component/{tags-rac-BXyiQ9i1.js → tags-rac-D5Do7BNm.js} +1 -1
- package/dist/component/{text-area-field-rac-DsIRYi0d.js → text-area-field-rac-DLBgla0L.js} +27 -27
- package/dist/component/{text-area-rac-CF9pDP9d.js → text-area-rac-Bfsl2gSn.js} +1 -1
- package/dist/component/{text-input-field-rac-BwIDZACz.js → text-input-field-rac-hLsUcQNw.js} +4 -4
- package/dist/component/{text-input-headless-5kQs2_Xu.js → text-input-headless-Otd7Uy7V.js} +13 -13
- package/dist/component/{text-input-rac-CRmSuw1k.js → text-input-rac-jpnc-v91.js} +1 -1
- package/dist/component/{time-input-rac-BRMNpe51.js → time-input-rac-DnjrmZZw.js} +26 -26
- package/dist/component/url-input-field-rac-C90NYHb8.js +77 -0
- package/dist/component/{url-input-rac-Dv-kp50D.js → url-input-rac-C3wfEnqs.js} +1 -1
- package/dist/component/{use-dropdown-option-class-name-BQi_qE_-.js → use-dropdown-option-class-name-CYkLlKBs.js} +12 -12
- package/dist/component/{use-dropdown-trigger-class-name-bAK8aHiG.js → use-dropdown-trigger-class-name-CTt4Z67m.js} +17 -17
- package/dist/component/{use-element-state-class-name-rXM_lHug.js → use-element-state-class-name-ByDw6j7c.js} +1 -1
- package/dist/component/{use-hoverable-input-class-name-BnV_uerV.js → use-hoverable-input-class-name-Duhgtn2I.js} +3 -3
- package/dist/component/use-is-forced-open-dropdown-B5gNY4Zm.js +53 -0
- package/dist/component/{use-service-options-base-CLeE9-Tx.js → use-service-options-base-DE-QaNDw.js} +8 -8
- package/dist/component/use-text-input-class-name-CmxSw6bY.js +6 -0
- package/dist/form.d.ts +3 -0
- package/package.json +2 -2
- package/dist/component/field-rac.module-DP0lkkEv.js +0 -25
- package/dist/component/image-choice-rac-CtoA_KDp.js +0 -155
- package/dist/component/url-input-field-rac-CKLS3QDk.js +0 -77
- package/dist/component/use-is-forced-open-dropdown-Bp-5Xpmw.js +0 -53
- package/dist/component/use-text-input-class-name-DIKWvfkm.js +0 -6
package/dist/component/{date-picker-field-rac-B8pvtPir.js → date-picker-field-rac-h45jfoso.js}
RENAMED
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import { RicosViewer as X } from "@wix/ricos/viewer";
|
|
2
2
|
import p from "classnames";
|
|
3
|
-
import e, { useState as
|
|
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
|
|
9
|
-
import { f as E, a as
|
|
10
|
-
import { D as Ne, E as Te } from "./field-error-headless-
|
|
11
|
-
import { L as
|
|
12
|
-
import { D as ve, N as
|
|
13
|
-
import { u as Ie } from "./use-is-forced-open-dropdown-
|
|
14
|
-
import { i as Fe } from "./date-availability-
|
|
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
|
+
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-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
|
-
import { E as
|
|
17
|
-
import { H as
|
|
18
|
-
import { s as D } from "./field-rac.module-
|
|
19
|
-
import { u as
|
|
20
|
-
const
|
|
16
|
+
import { E as Oe } from "./error-icon-hZxQ6DEy.js";
|
|
17
|
+
import { H as Le } from "./custom-focus-class-_483Pkwp.js";
|
|
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
|
+
const Pe = [
|
|
21
21
|
f.SUNDAY,
|
|
22
22
|
f.MONDAY,
|
|
23
23
|
f.TUESDAY,
|
|
@@ -26,17 +26,17 @@ const Ae = [
|
|
|
26
26
|
f.FRIDAY,
|
|
27
27
|
f.SATURDAY
|
|
28
28
|
], Re = {
|
|
29
|
-
availableDays:
|
|
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 } =
|
|
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,22 +49,22 @@ const Ae = [
|
|
|
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,
|
|
64
|
+
renderDescription: () => /* @__PURE__ */ e.createElement(e.Fragment, null, z, j)
|
|
65
65
|
});
|
|
66
66
|
}, ke = ({ children: t, className: r }) => {
|
|
67
|
-
const { inputId: l, ariaDescribedBy: n } =
|
|
67
|
+
const { inputId: l, ariaDescribedBy: n } = U(), { hasError: i, disabled: c, readOnly: u } = h(), o = ee(le), m = k((d) => {
|
|
68
68
|
if (!o || o.isOpen || c || u)
|
|
69
69
|
return;
|
|
70
70
|
const C = d.target;
|
|
@@ -84,15 +84,15 @@ const Ae = [
|
|
|
84
84
|
"data-invalid": i,
|
|
85
85
|
onClick: m
|
|
86
86
|
}, t);
|
|
87
|
-
},
|
|
88
|
-
const { id: r, placeholder: l } = h(), { regionalFormat: n } = F(), i =
|
|
87
|
+
}, Me = ({ className: t }) => {
|
|
88
|
+
const { id: r, placeholder: l } = h(), { regionalFormat: n } = F(), i = A(null), c = A(!1);
|
|
89
89
|
pe(() => {
|
|
90
90
|
var o;
|
|
91
91
|
(o = i.current) == null || o.focus({
|
|
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 Ae = [
|
|
|
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), [
|
|
@@ -126,16 +126,16 @@ const Ae = [
|
|
|
126
126
|
}, [
|
|
127
127
|
c
|
|
128
128
|
]), 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);
|
|
129
|
-
return /* @__PURE__ */ e.createElement(
|
|
129
|
+
return /* @__PURE__ */ e.createElement(O, {
|
|
130
130
|
className: r,
|
|
131
131
|
containerPadding: 0
|
|
132
132
|
}, /* @__PURE__ */ e.createElement(Ye, {
|
|
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 Ae = [
|
|
|
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 Ae = [
|
|
|
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,21 +162,21 @@ const Ae = [
|
|
|
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),
|
|
168
|
+
}, t), Ue = ({ children: t, className: r }) => /* @__PURE__ */ e.createElement(M, {
|
|
169
169
|
slot: "next",
|
|
170
170
|
className: r
|
|
171
|
-
}, t),
|
|
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
|
|
177
|
-
}, /* @__PURE__ */ e.createElement(
|
|
177
|
+
}, /* @__PURE__ */ e.createElement(V, {
|
|
178
178
|
className: r
|
|
179
|
-
}, /* @__PURE__ */ e.createElement(Y, null), t), /* @__PURE__ */ e.createElement(
|
|
179
|
+
}, /* @__PURE__ */ e.createElement(Y, null), t), /* @__PURE__ */ e.createElement(O, {
|
|
180
180
|
className: o,
|
|
181
181
|
containerPadding: 0
|
|
182
182
|
}, /* @__PURE__ */ e.createElement(w, {
|
|
@@ -184,15 +184,15 @@ const Ae = [
|
|
|
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
|
|
193
|
-
}, /* @__PURE__ */ e.createElement(
|
|
193
|
+
}, /* @__PURE__ */ e.createElement(V, {
|
|
194
194
|
className: r
|
|
195
|
-
}, /* @__PURE__ */ e.createElement(Y, null), t), /* @__PURE__ */ e.createElement(
|
|
195
|
+
}, /* @__PURE__ */ e.createElement(Y, null), t), /* @__PURE__ */ e.createElement(O, {
|
|
196
196
|
className: o,
|
|
197
197
|
containerPadding: 0
|
|
198
198
|
}, /* @__PURE__ */ e.createElement(w, {
|
|
@@ -203,17 +203,17 @@ const Ae = [
|
|
|
203
203
|
};
|
|
204
204
|
g.Day = we;
|
|
205
205
|
g.PreviousTrigger = Be;
|
|
206
|
-
g.NextTrigger =
|
|
207
|
-
g.MonthTrigger =
|
|
208
|
-
g.YearTrigger =
|
|
209
|
-
a.Label =
|
|
206
|
+
g.NextTrigger = Ue;
|
|
207
|
+
g.MonthTrigger = Ve;
|
|
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,9 +264,9 @@ const qe = (t) => /* @__PURE__ */ e.createElement("svg", {
|
|
|
264
264
|
strokeWidth: "1.5",
|
|
265
265
|
strokeLinecap: "round",
|
|
266
266
|
strokeLinejoin: "round"
|
|
267
|
-
})),
|
|
268
|
-
control:
|
|
269
|
-
segments:
|
|
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
|
+
segments: ze,
|
|
270
270
|
trigger: Qe,
|
|
271
271
|
calendarPopover: Ze,
|
|
272
272
|
calendarDay: Je,
|
|
@@ -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 =
|
|
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(
|
|
309
|
+
className: p(Le, P.day, S.calendarDay)
|
|
310
310
|
}, ({ formattedDate: r }) => /* @__PURE__ */ e.createElement("span", {
|
|
311
|
-
className: p(
|
|
311
|
+
className: p(P.dayNumber, S.dayNumber)
|
|
312
312
|
}, r))), /* @__PURE__ */ e.createElement(a.Error, {
|
|
313
313
|
className: p(ye, D.error)
|
|
314
|
-
}, /* @__PURE__ */ e.createElement(
|
|
315
|
-
className: p(
|
|
314
|
+
}, /* @__PURE__ */ e.createElement(Oe, null), /* @__PURE__ */ e.createElement(a.Error.Text, null)), /* @__PURE__ */ e.createElement(a.Description, {
|
|
315
|
+
className: p(Se, D.description)
|
|
316
316
|
}, et));
|
|
317
317
|
};
|
|
318
318
|
export {
|
|
319
|
-
|
|
319
|
+
_t as D
|
|
320
320
|
};
|