@wix/form-elements 1.107.0 → 1.109.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-D2F4vgf1.js → appointment-rac-C9-XwsPI.js} +295 -296
- package/dist/component/{bookings-address-rac-_5S8J8_i.js → bookings-address-rac-jrrCPWjw.js} +1 -1
- package/dist/component/{bookings-email-rac-6vmDR9nS.js → bookings-email-rac-J9-RMEbf.js} +1 -1
- package/dist/component/{bookings-first-name-rac-DtTJ4T2K.js → bookings-first-name-rac-CH7-6JmA.js} +1 -1
- package/dist/component/{bookings-header-rac-B3dsEwzR.js → bookings-header-rac-C2JV-ciN.js} +1 -1
- package/dist/component/{bookings-last-name-rac-B3idkbi8.js → bookings-last-name-rac-0a9CwiaV.js} +1 -1
- package/dist/component/{bookings-login-bar-rac-CrRBcQwT.js → bookings-login-bar-rac-4Mb7MQYe.js} +21 -22
- package/dist/component/{bookings-phone-rac-BE0yWNnj.js → bookings-phone-rac-vYx5r5jn.js} +1 -1
- package/dist/component/{bookings-rich-text-rac-CYo1l0-6.js → bookings-rich-text-rac-CWg1FgUp.js} +1 -1
- package/dist/component/{checkbox-field-rac-boTtXVEt.js → checkbox-field-rac-Dwx1leKA.js} +27 -28
- package/dist/component/{checkbox-group-field-headless-DnkUvDm8.js → checkbox-group-field-headless-AFWgXzx_.js} +41 -41
- package/dist/component/{checkbox-group-field-rac-DrDTgHMg.js → checkbox-group-field-rac-CO8kmWJp.js} +6 -6
- package/dist/component/{checkbox-group-rac-v3ozUBpo.js → checkbox-group-rac-_79HsFF4.js} +1 -1
- package/dist/component/{checkbox-rac-YSLE-RnG.js → checkbox-rac-B_tbMfjo.js} +1 -1
- package/dist/component/{contacts-address-rac-C653yaHZ.js → contacts-address-rac-SJ5Tvzd0.js} +1 -1
- package/dist/component/{contacts-birthdate-rac-BeAQ6shx.js → contacts-birthdate-rac-BU1L3sbW.js} +1 -1
- package/dist/component/{contacts-company-rac-BglKOoTG.js → contacts-company-rac-Y4B8KhDa.js} +1 -1
- package/dist/component/{contacts-email-rac-D6m7ynfc.js → contacts-email-rac-CQW84o7C.js} +1 -1
- package/dist/component/{contacts-first-name-rac-Dgxn0tUJ.js → contacts-first-name-rac-Dtai-wtH.js} +1 -1
- package/dist/component/{contacts-last-name-rac-1UyIuRKH.js → contacts-last-name-rac--ixuu3ri.js} +1 -1
- package/dist/component/{contacts-phone-rac-BQ77BlW4.js → contacts-phone-rac-HOHfSvT-.js} +1 -1
- package/dist/component/{contacts-position-rac-BUDUv7lv.js → contacts-position-rac-BPMkh6yf.js} +1 -1
- package/dist/component/{contacts-subscribe-rac-DdtA0qKW.js → contacts-subscribe-rac-D0_RMwJb.js} +1 -1
- package/dist/component/{contacts-tax-id-rac-WUaKcNl0.js → contacts-tax-id-rac-CZJmMiVf.js} +1 -1
- package/dist/component/{date-availability-XjBFq8jt.js → date-availability-C4dDHvuc.js} +1 -1
- package/dist/component/{date-input-field-rac-aY2zuuKs.js → date-input-field-rac-8oERZcqh.js} +79 -80
- package/dist/component/{date-input-rac-DRiP2_97.js → date-input-rac-CYRojmW6.js} +1 -1
- package/dist/component/{date-picker-field-rac-Bzl-d3Uj.js → date-picker-field-rac-CIspU7No.js} +87 -88
- package/dist/component/{date-picker-rac-DHHUh8vn.js → date-picker-rac-D0Y0zf2J.js} +1 -1
- package/dist/component/{date-time-input-field-rac-DP_StuLr.js → date-time-input-field-rac-0daWK65I.js} +73 -74
- package/dist/component/{date-time-input-rac-B11KIxsf.js → date-time-input-rac-BemKPk1j.js} +1 -1
- package/dist/component/{dext-checkbox-group-rac-BHZBqyWv.js → dext-checkbox-group-rac-BpFNn56W.js} +2 -2
- package/dist/component/{dext-checkbox-rac-BIlAqEvV.js → dext-checkbox-rac-DOISgubJ.js} +1 -1
- package/dist/component/{dext-date-picker-rac-CHBXNrZi.js → dext-date-picker-rac-CNGhFg_g.js} +1 -1
- package/dist/component/{dext-date-time-input-rac-BYtliKry.js → dext-date-time-input-rac-BuUIvJRr.js} +1 -1
- package/dist/component/{dext-dropdown-rac-C2VPSFV5.js → dext-dropdown-rac-DtND-Dbo.js} +1 -1
- package/dist/component/{dext-email-rac-Fnb0Ggcs.js → dext-email-rac-CmjLFOi8.js} +1 -1
- package/dist/component/{dext-number-input-rac-DopfSyFi.js → dext-number-input-rac-DHTNg1dh.js} +1 -1
- package/dist/component/{dext-phone-rac-Rn4i_2rc.js → dext-phone-rac-BrrU5qH_.js} +1 -1
- package/dist/component/{dext-radio-group-rac-bNaskJpK.js → dext-radio-group-rac-CD3MGfAM.js} +4 -4
- package/dist/component/{dext-rating-input-rac-DL6ZZd7d.js → dext-rating-input-rac-BETGJZmt.js} +1 -1
- package/dist/component/{dext-tags-rac-TsUPoImO.js → dext-tags-rac-Coo9jN-T.js} +4 -4
- package/dist/component/{dext-text-area-rac-BIuY7LTd.js → dext-text-area-rac-CNWjqhUT.js} +1 -1
- package/dist/component/{dext-text-input-rac-CSYPW0Qi.js → dext-text-input-rac-CCWyDexv.js} +1 -1
- package/dist/component/{dext-url-input-rac-_g0lqGfW.js → dext-url-input-rac-Dtakkgmk.js} +1 -1
- package/dist/component/{donation-rac-BYKFtsyR.js → donation-rac-BboGm_k_.js} +101 -102
- package/dist/component/{dropdown-field-headless-CBaqlNZi.js → dropdown-field-headless-BTMJGUwY.js} +16 -16
- package/dist/component/{dropdown-field-rac-CCAGSMm3.js → dropdown-field-rac-CDRV8ckB.js} +5 -5
- package/dist/component/{dropdown-rac-C_EqUsZ1.js → dropdown-rac-kEuU2pXW.js} +1 -1
- package/dist/component/{ecom-address-rac-Bw9eH0iF.js → ecom-address-rac-BgKL9ElH.js} +1 -1
- package/dist/component/{ecom-subscription-checkbox-rac-B5PVOO2a.js → ecom-subscription-checkbox-rac-CDhJsNPD.js} +6 -6
- package/dist/component/{email-input-field-rac-B2kqQ6yo.js → email-input-field-rac-DdOd86NX.js} +54 -55
- package/dist/component/{events-repeater-rac--4OnUxWE.js → events-repeater-rac-_VJ30dpB.js} +62 -63
- package/dist/component/{events-rsvp-rac-CczCoo3T.js → events-rsvp-rac-DA-261bq.js} +5 -5
- package/dist/component/{field-error-headless-D3-1L5sf.js → field-error-headless-CovyN0GI.js} +8 -8
- package/dist/component/{field-label-headless-Du4ckIVy.js → field-label-headless-DVvX2QaH.js} +11 -11
- package/dist/component/file-upload-rac-bhEPUJPs.js +561 -0
- package/dist/component/fixed-payment-rac-DmI6MeKc.js +61 -0
- package/dist/component/{form-DQauhsho.js → form-BTDgyr54.js} +3430 -3244
- package/dist/component/form.css +1 -1
- package/dist/component/form.js +3 -3
- package/dist/component/header-field-rac-C0rUjmo0.js +24 -0
- package/dist/component/{header-rac-CR9T3Pnu.js → header-rac-DRMO22PV.js} +1 -1
- package/dist/component/{image-choice-rac-DJ_8v467.js → image-choice-rac-CQDQ7AlD.js} +32 -33
- package/dist/component/{index-CcUTIUWM.js → index-B9QlosT1.js} +12 -12
- package/dist/component/{index-BB7d_9Dv.js → index-CNWT9t6j.js} +66 -66
- package/dist/component/{isObjectLike-xvPa_08X.js → isObjectLike-c0td2WCR.js} +1 -1
- package/dist/component/{multiline-address-field-rac-CyaFOloE.js → multiline-address-field-rac-D8bVxRsD.js} +124 -125
- package/dist/component/{multiline-address-rac-CaHGUN_f.js → multiline-address-rac-g-6RB7o8.js} +1 -1
- package/dist/component/number-input-field-rac-BaOwQ5Ya.js +92 -0
- package/dist/component/{number-input-rac-DMKX6nhk.js → number-input-rac-BXv8-Pnj.js} +1 -1
- package/dist/component/{password-rac-0RUXPAn6.js → password-rac-BB9XeSSZ.js} +36 -37
- package/dist/component/{payment-input-rac-CHSZ3-Lt.js → payment-input-rac-DwnSV9rM.js} +41 -42
- package/dist/component/{phone-input-field-rac-JmIFcP1e.js → phone-input-field-rac-CC3C4ToW.js} +56 -57
- package/dist/component/{phone-rac-BLRnAPXP.js → phone-rac-DpNhSaE0.js} +1 -1
- package/dist/component/{product-list-rac-BkF5tDwt.js → product-list-rac-BAESk3B6.js} +74 -75
- package/dist/component/{quiz-radio-group-rac-32cCMTUS.js → quiz-radio-group-rac-PS6AZr63.js} +1 -1
- package/dist/component/{radio-button-module-classes-IOulhuSH.js → radio-button-module-classes-CXcn5unY.js} +30 -30
- package/dist/component/{radio-group-field-rac-CJwku6e0.js → radio-group-field-rac-pt8xbDfS.js} +6 -6
- package/dist/component/{radio-group-rac-BiW-9Abj.js → radio-group-rac-DkzkM6N_.js} +1 -1
- package/dist/component/{rating-input-field-rac-B9cwaROK.js → rating-input-field-rac-DDHBkR4x.js} +43 -44
- package/dist/component/{rating-input-rac-BpwlNvzQ.js → rating-input-rac-CcsDmLus.js} +1 -1
- package/dist/component/{rich-content-rac.module-B1uyPmtK.js → rich-content-rac.module-B2vsO6fj.js} +4 -4
- package/dist/component/rich-text-field-rac-CvKht2eC.js +21 -0
- package/dist/component/{rich-text-rac-VfeZxS27.js → rich-text-rac-CRpSffQB.js} +1 -1
- package/dist/component/{service-dropdown-rac-BCfs8IhW.js → service-dropdown-rac-BOpdXNjG.js} +36 -37
- package/dist/component/{services-multi-choice-rac-CCqdF_7P.js → services-multi-choice-rac-t0wdSt_T.js} +20 -21
- package/dist/component/{signature-rac-DOyMo3u0.js → signature-rac-2LsIYYIX.js} +141 -142
- package/dist/component/{submit-button-rac-C2uA5DeE.js → submit-button-rac-BbE8dS35.js} +26 -27
- package/dist/component/{tags-field-rac-C_uIw2by.js → tags-field-rac-BnsBxReU.js} +44 -45
- package/dist/component/{tags-rac-1pQ-fpe_.js → tags-rac-BFH4RINA.js} +1 -1
- package/dist/component/{text-area-field-rac-DqlOkm7e.js → text-area-field-rac-Ag7_gniM.js} +28 -29
- package/dist/component/{text-area-rac-DPdkrFcH.js → text-area-rac-ByUX0p2O.js} +1 -1
- package/dist/component/{text-input-field-rac-CmXm6r1w.js → text-input-field-rac-D3MZ8teu.js} +3 -3
- package/dist/component/{text-input-headless-DD__2DFf.js → text-input-headless-CwONErsY.js} +12 -12
- package/dist/component/{text-input-rac-DRHyQEH7.js → text-input-rac-DLXdAhkK.js} +1 -1
- package/dist/component/{time-input-rac-BJPIymQY.js → time-input-rac-Bs55lTON.js} +33 -34
- package/dist/component/url-input-field-rac-FG-bCh-E.js +74 -0
- package/dist/component/{url-input-rac-C0ChQUzq.js → url-input-rac-BOKuCMTe.js} +1 -1
- package/dist/component/use-dropdown-option-class-name-DjV7FW5y.js +21 -0
- package/dist/component/{use-element-state-class-name-BatTc2bw.js → use-element-state-class-name-DB1AzkvF.js} +1 -1
- package/dist/component/{use-is-forced-open-dropdown-B0jiPTmS.js → use-is-forced-open-dropdown-ifUIpuwL.js} +7 -7
- package/dist/component/{use-service-options-base-oeE7xszw.js → use-service-options-base-B11cq0HH.js} +7 -7
- package/dist/component/use-text-input-class-name-va1PzWFg.js +23 -0
- package/dist/form.d.ts +21 -1
- package/package.json +2 -2
- package/dist/component/file-upload-rac-DbdkUbWM.js +0 -484
- package/dist/component/fixed-payment-rac-f9-01iDN.js +0 -62
- package/dist/component/form-element-classes-bLFmhsKw.js +0 -137
- package/dist/component/header-field-rac-DamDk5BR.js +0 -25
- package/dist/component/number-input-field-rac-BuYUzDWV.js +0 -93
- package/dist/component/rich-text-field-rac-C_qE7Ykg.js +0 -22
- package/dist/component/url-input-field-rac-CFDYkZ6I.js +0 -75
- package/dist/component/use-dropdown-option-class-name-3L5ZmNLK.js +0 -21
- package/dist/component/use-text-input-class-name-LQ5S-NLh.js +0 -24
package/dist/component/{date-picker-field-rac-Bzl-d3Uj.js → date-picker-field-rac-CIspU7No.js}
RENAMED
|
@@ -1,22 +1,21 @@
|
|
|
1
1
|
import { RicosViewer as X } from "@wix/ricos/viewer";
|
|
2
2
|
import D from "classnames";
|
|
3
|
-
import e, { useState as O, useCallback as k, useContext as ee, useRef as A, useMemo as
|
|
3
|
+
import e, { useState as O, useCallback as k, useContext as ee, useRef as A, useMemo as b } 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 f,
|
|
8
|
-
import { g as
|
|
9
|
-
import { f as E, a as
|
|
10
|
-
import { D as
|
|
11
|
-
import { L as
|
|
12
|
-
import { D as
|
|
13
|
-
import { u as
|
|
14
|
-
import { i as
|
|
15
|
-
import { C as
|
|
16
|
-
import { E as
|
|
17
|
-
import { H as
|
|
6
|
+
import { I18nProvider as ne, DatePicker as ae, 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 x, SelectValue as w, ListBox as Y, ListBoxItem as B } from "react-aria-components";
|
|
7
|
+
import { D as f, b9 as T, b6 as U, b1 as F, bb as pe, I as De, U as fe, t as Ce, n as ye, v as Se, p as ve } from "./form-BTDgyr54.js";
|
|
8
|
+
import { g as Te, c as P } from "./calendar.module-DnhTT4QT.js";
|
|
9
|
+
import { f as E, a as v } from "./find-child-C60k4CxG.js";
|
|
10
|
+
import { D as he, E as _e } from "./field-error-headless-CovyN0GI.js";
|
|
11
|
+
import { L as Ne } from "./field-label-headless-DVvX2QaH.js";
|
|
12
|
+
import { D as be, N as L, S as V } from "./non-modal-popover-DtIMXHbe.js";
|
|
13
|
+
import { u as Ie } from "./use-is-forced-open-dropdown-ifUIpuwL.js";
|
|
14
|
+
import { i as Fe } from "./date-availability-C4dDHvuc.js";
|
|
15
|
+
import { C as I } from "./chevron-down-icon-CcpVm6B-.js";
|
|
16
|
+
import { E as Le } from "./error-icon-hZxQ6DEy.js";
|
|
17
|
+
import { H as Oe } from "./custom-focus-class-_483Pkwp.js";
|
|
18
18
|
import { s as p } from "./field-rac.module-B4l_0KRU.js";
|
|
19
|
-
import { v as Ne, J as Ie, n as Fe, h as Le, o as be, j as Oe } from "./form-element-classes-bLFmhsKw.js";
|
|
20
19
|
const Ae = [
|
|
21
20
|
f.SUNDAY,
|
|
22
21
|
f.MONDAY,
|
|
@@ -27,18 +26,18 @@ const Ae = [
|
|
|
27
26
|
f.SATURDAY
|
|
28
27
|
], Pe = {
|
|
29
28
|
availableDays: Ae
|
|
30
|
-
},
|
|
31
|
-
const { id: r, value: l, onChange:
|
|
32
|
-
const
|
|
33
|
-
|
|
29
|
+
}, n = ({ children: t }) => {
|
|
30
|
+
const { id: r, value: l, onChange: a, disabled: i, required: c, onBlur: d, onFocus: o, FieldLayout: m, hasError: u, readOnly: C } = T(), { labelId: y } = U(), { regionalFormat: h } = F(), [s, _] = O(null), [W, K] = O(!1), N = Ie(r), $ = k((z) => {
|
|
31
|
+
const J = Ke(z);
|
|
32
|
+
a(J);
|
|
34
33
|
}, [
|
|
35
|
-
|
|
36
|
-
]), H = E(t,
|
|
34
|
+
a
|
|
35
|
+
]), H = E(t, n.Label), q = E(t, n.Control), G = E(t, n.Calendar), j = E(t, n.Description), Q = E(t, n.Error), Z = We(l);
|
|
37
36
|
return /* @__PURE__ */ e.createElement(m, {
|
|
38
37
|
fieldId: r,
|
|
39
38
|
renderLabel: () => H,
|
|
40
|
-
renderInput: () => /* @__PURE__ */ e.createElement(
|
|
41
|
-
locale:
|
|
39
|
+
renderInput: () => /* @__PURE__ */ e.createElement(ne, {
|
|
40
|
+
locale: h
|
|
42
41
|
}, /* @__PURE__ */ e.createElement("div", {
|
|
43
42
|
ref: _,
|
|
44
43
|
style: {
|
|
@@ -46,9 +45,9 @@ const Ae = [
|
|
|
46
45
|
}
|
|
47
46
|
}), /* @__PURE__ */ e.createElement(re, {
|
|
48
47
|
getContainer: () => s
|
|
49
|
-
}, /* @__PURE__ */ e.createElement(
|
|
48
|
+
}, /* @__PURE__ */ e.createElement(ae, {
|
|
50
49
|
"aria-labelledby": y,
|
|
51
|
-
value:
|
|
50
|
+
value: Z,
|
|
52
51
|
onChange: $,
|
|
53
52
|
isDisabled: i,
|
|
54
53
|
isInvalid: u,
|
|
@@ -58,13 +57,13 @@ const Ae = [
|
|
|
58
57
|
onFocus: o,
|
|
59
58
|
isOpen: N || W,
|
|
60
59
|
onOpenChange: N ? void 0 : K
|
|
61
|
-
}, q,
|
|
60
|
+
}, q, v(G, {
|
|
62
61
|
isForcedOpen: N
|
|
63
62
|
})))),
|
|
64
|
-
renderDescription: () => /* @__PURE__ */ e.createElement(e.Fragment, null,
|
|
63
|
+
renderDescription: () => /* @__PURE__ */ e.createElement(e.Fragment, null, Q, j)
|
|
65
64
|
});
|
|
66
65
|
}, Re = ({ children: t, className: r }) => {
|
|
67
|
-
const { inputId: l, ariaDescribedBy:
|
|
66
|
+
const { inputId: l, ariaDescribedBy: a } = U(), { hasError: i, disabled: c, readOnly: d } = T(), o = ee(oe), m = k((u) => {
|
|
68
67
|
if (!o || o.isOpen || c || d)
|
|
69
68
|
return;
|
|
70
69
|
const C = u.target;
|
|
@@ -79,19 +78,19 @@ const Ae = [
|
|
|
79
78
|
]);
|
|
80
79
|
return /* @__PURE__ */ e.createElement(le, {
|
|
81
80
|
id: l,
|
|
82
|
-
"aria-describedby":
|
|
81
|
+
"aria-describedby": a,
|
|
83
82
|
className: r,
|
|
84
83
|
"data-invalid": i,
|
|
85
84
|
onPointerDownCapture: m
|
|
86
85
|
}, t);
|
|
87
86
|
}, ke = ({ className: t }) => {
|
|
88
|
-
const { id: r, placeholder: l } =
|
|
87
|
+
const { id: r, placeholder: l } = T(), { regionalFormat: a } = F(), i = A(null), c = A(!1);
|
|
89
88
|
pe(() => {
|
|
90
89
|
var o;
|
|
91
90
|
(o = i.current) == null || o.focus();
|
|
92
91
|
}, r);
|
|
93
|
-
const d =
|
|
94
|
-
|
|
92
|
+
const d = b(() => $e(a), [
|
|
93
|
+
a
|
|
95
94
|
]);
|
|
96
95
|
return /* @__PURE__ */ e.createElement(se, {
|
|
97
96
|
className: t
|
|
@@ -112,27 +111,27 @@ const Ae = [
|
|
|
112
111
|
}
|
|
113
112
|
}, (u) => !u.isPlaceholder || !l ? u.text : m ? l : u.text);
|
|
114
113
|
});
|
|
115
|
-
}, Me = ({ children: t, className: r }) => /* @__PURE__ */ e.createElement(
|
|
114
|
+
}, Me = ({ children: t, className: r }) => /* @__PURE__ */ e.createElement(be, {
|
|
116
115
|
className: r
|
|
117
116
|
}, t), g = ({ children: t, className: r, ...l }) => {
|
|
118
|
-
const { isForcedOpen:
|
|
117
|
+
const { isForcedOpen: a } = l, { regionalFormat: i } = F(), { availability: c } = T(), d = b(() => Te(i), [
|
|
119
118
|
i
|
|
120
|
-
]), o =
|
|
119
|
+
]), o = b(() => (s) => {
|
|
121
120
|
const _ = new Date(s.year, s.month - 1, s.day);
|
|
122
|
-
return !
|
|
121
|
+
return !Fe(_, c || Pe);
|
|
123
122
|
}, [
|
|
124
123
|
c
|
|
125
|
-
]), m = E(t, g.Day) ?? /* @__PURE__ */ e.createElement(g.Day, null), u = E(t, g.PreviousTrigger), C = E(t, g.NextTrigger), y = E(t, g.MonthTrigger),
|
|
126
|
-
return /* @__PURE__ */ e.createElement(
|
|
124
|
+
]), m = E(t, g.Day) ?? /* @__PURE__ */ e.createElement(g.Day, null), u = E(t, g.PreviousTrigger), C = E(t, g.NextTrigger), y = E(t, g.MonthTrigger), h = E(t, g.YearTrigger);
|
|
125
|
+
return /* @__PURE__ */ e.createElement(L, {
|
|
127
126
|
className: r,
|
|
128
127
|
containerPadding: 0
|
|
129
128
|
}, /* @__PURE__ */ e.createElement(xe, {
|
|
130
|
-
isForcedOpen:
|
|
129
|
+
isForcedOpen: a
|
|
131
130
|
}, /* @__PURE__ */ e.createElement(ie, {
|
|
132
|
-
autoFocus:
|
|
131
|
+
autoFocus: a ? !1 : void 0,
|
|
133
132
|
firstDayOfWeek: He(d),
|
|
134
133
|
isDateUnavailable: o
|
|
135
|
-
}, /* @__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) => v(y, {
|
|
136
135
|
ariaLabel: s["aria-label"],
|
|
137
136
|
selectedKey: s.value,
|
|
138
137
|
onSelectionChange: s.onChange,
|
|
@@ -140,7 +139,7 @@ const Ae = [
|
|
|
140
139
|
popoverClassName: r
|
|
141
140
|
})), /* @__PURE__ */ e.createElement(ue, {
|
|
142
141
|
visibleYears: 100
|
|
143
|
-
}, (s) => h
|
|
142
|
+
}, (s) => v(h, {
|
|
144
143
|
ariaLabel: s["aria-label"],
|
|
145
144
|
selectedKey: s.value,
|
|
146
145
|
onSelectionChange: s.onChange,
|
|
@@ -148,16 +147,16 @@ const Ae = [
|
|
|
148
147
|
popoverClassName: r
|
|
149
148
|
})), C), /* @__PURE__ */ e.createElement(de, {
|
|
150
149
|
weekdayStyle: "short"
|
|
151
|
-
}, (s) =>
|
|
150
|
+
}, (s) => v(m, {
|
|
152
151
|
date: s
|
|
153
152
|
})))));
|
|
154
153
|
}, xe = ({ isForcedOpen: t, children: r }) => t ? /* @__PURE__ */ e.createElement("div", {
|
|
155
154
|
role: "dialog"
|
|
156
155
|
}, r) : /* @__PURE__ */ e.createElement(ge, null, r), we = ({ children: t, className: r, ...l }) => {
|
|
157
|
-
const { date:
|
|
156
|
+
const { date: a } = l;
|
|
158
157
|
return /* @__PURE__ */ e.createElement(Ee, {
|
|
159
158
|
className: r,
|
|
160
|
-
date:
|
|
159
|
+
date: a
|
|
161
160
|
}, t);
|
|
162
161
|
}, Ye = ({ children: t, className: r }) => /* @__PURE__ */ e.createElement(M, {
|
|
163
162
|
slot: "previous",
|
|
@@ -166,14 +165,14 @@ const Ae = [
|
|
|
166
165
|
slot: "next",
|
|
167
166
|
className: r
|
|
168
167
|
}, t), Ue = ({ children: t, className: r, ...l }) => {
|
|
169
|
-
const { ariaLabel:
|
|
168
|
+
const { ariaLabel: a, selectedKey: i, onSelectionChange: c, items: d, popoverClassName: o } = l;
|
|
170
169
|
return /* @__PURE__ */ e.createElement(x, {
|
|
171
|
-
"aria-label":
|
|
170
|
+
"aria-label": a,
|
|
172
171
|
selectedKey: i,
|
|
173
172
|
onSelectionChange: c
|
|
174
173
|
}, /* @__PURE__ */ e.createElement(V, {
|
|
175
174
|
className: r
|
|
176
|
-
}, /* @__PURE__ */ e.createElement(w, null), t), /* @__PURE__ */ e.createElement(
|
|
175
|
+
}, /* @__PURE__ */ e.createElement(w, null), t), /* @__PURE__ */ e.createElement(L, {
|
|
177
176
|
className: o,
|
|
178
177
|
containerPadding: 0
|
|
179
178
|
}, /* @__PURE__ */ e.createElement(Y, {
|
|
@@ -182,14 +181,14 @@ const Ae = [
|
|
|
182
181
|
id: m.id
|
|
183
182
|
}, m.formatted))));
|
|
184
183
|
}, Ve = ({ children: t, className: r, ...l }) => {
|
|
185
|
-
const { ariaLabel:
|
|
184
|
+
const { ariaLabel: a, selectedKey: i, onSelectionChange: c, items: d, popoverClassName: o } = l;
|
|
186
185
|
return /* @__PURE__ */ e.createElement(x, {
|
|
187
|
-
"aria-label":
|
|
186
|
+
"aria-label": a,
|
|
188
187
|
selectedKey: i,
|
|
189
188
|
onSelectionChange: c
|
|
190
189
|
}, /* @__PURE__ */ e.createElement(V, {
|
|
191
190
|
className: r
|
|
192
|
-
}, /* @__PURE__ */ e.createElement(w, null), t), /* @__PURE__ */ e.createElement(
|
|
191
|
+
}, /* @__PURE__ */ e.createElement(w, null), t), /* @__PURE__ */ e.createElement(L, {
|
|
193
192
|
className: o,
|
|
194
193
|
containerPadding: 0
|
|
195
194
|
}, /* @__PURE__ */ e.createElement(Y, {
|
|
@@ -203,13 +202,13 @@ g.PreviousTrigger = Ye;
|
|
|
203
202
|
g.NextTrigger = Be;
|
|
204
203
|
g.MonthTrigger = Ue;
|
|
205
204
|
g.YearTrigger = Ve;
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
205
|
+
n.Label = Ne;
|
|
206
|
+
n.Control = Re;
|
|
207
|
+
n.Input = ke;
|
|
208
|
+
n.Trigger = Me;
|
|
209
|
+
n.Calendar = g;
|
|
210
|
+
n.Description = he;
|
|
211
|
+
n.Error = _e;
|
|
213
212
|
function We(t) {
|
|
214
213
|
if (!t)
|
|
215
214
|
return null;
|
|
@@ -222,8 +221,8 @@ function We(t) {
|
|
|
222
221
|
function Ke(t) {
|
|
223
222
|
if (!t)
|
|
224
223
|
return null;
|
|
225
|
-
const r = String(t.year).padStart(4, "0"), l = String(t.month).padStart(2, "0"),
|
|
226
|
-
return `${r}-${l}-${
|
|
224
|
+
const r = String(t.year).padStart(4, "0"), l = String(t.month).padStart(2, "0"), a = String(t.day).padStart(2, "0");
|
|
225
|
+
return `${r}-${l}-${a}`;
|
|
227
226
|
}
|
|
228
227
|
function $e(t) {
|
|
229
228
|
var r;
|
|
@@ -232,7 +231,7 @@ function $e(t) {
|
|
|
232
231
|
year: "numeric",
|
|
233
232
|
month: "2-digit",
|
|
234
233
|
day: "2-digit"
|
|
235
|
-
}).formatToParts(/* @__PURE__ */ new Date()).find((
|
|
234
|
+
}).formatToParts(/* @__PURE__ */ new Date()).find((a) => a.type !== "literal")) == null ? void 0 : r.type) ?? "month";
|
|
236
235
|
} catch {
|
|
237
236
|
return "month";
|
|
238
237
|
}
|
|
@@ -261,51 +260,51 @@ const qe = (t) => /* @__PURE__ */ e.createElement("svg", {
|
|
|
261
260
|
strokeWidth: "1.5",
|
|
262
261
|
strokeLinecap: "round",
|
|
263
262
|
strokeLinejoin: "round"
|
|
264
|
-
})), Ge = "_control_1vunt_1", je = "_segments_1vunt_14",
|
|
263
|
+
})), Ge = "_control_1vunt_1", je = "_segments_1vunt_14", Qe = "_trigger_1vunt_65", Ze = "_calendarPopover_1vunt_96", ze = "_calendarDay_1vunt_242", S = {
|
|
265
264
|
control: Ge,
|
|
266
265
|
segments: je,
|
|
267
|
-
trigger:
|
|
268
|
-
calendarPopover:
|
|
269
|
-
calendarDay:
|
|
270
|
-
},
|
|
266
|
+
trigger: Qe,
|
|
267
|
+
calendarPopover: Ze,
|
|
268
|
+
calendarDay: ze
|
|
269
|
+
}, Je = ({ content: t, locale: r }) => /* @__PURE__ */ e.createElement(X, {
|
|
271
270
|
content: t,
|
|
272
271
|
locale: r
|
|
273
272
|
}), Xe = {
|
|
274
273
|
left: 90,
|
|
275
274
|
right: -90
|
|
276
|
-
}, R = ({ direction: t }) => /* @__PURE__ */ e.createElement(
|
|
275
|
+
}, R = ({ direction: t }) => /* @__PURE__ */ e.createElement(I, {
|
|
277
276
|
style: {
|
|
278
277
|
transform: `rotate(${Xe[t]}deg)`
|
|
279
278
|
}
|
|
280
|
-
}),
|
|
281
|
-
className: D(
|
|
282
|
-
}, /* @__PURE__ */ e.createElement(
|
|
283
|
-
className: D(
|
|
284
|
-
})), /* @__PURE__ */ e.createElement(
|
|
285
|
-
className: D(
|
|
286
|
-
}, /* @__PURE__ */ e.createElement(
|
|
279
|
+
}), Ct = () => /* @__PURE__ */ e.createElement(n, null, /* @__PURE__ */ e.createElement(n.Label, {
|
|
280
|
+
className: D(De, p.label)
|
|
281
|
+
}, /* @__PURE__ */ e.createElement(n.Label.Required, {
|
|
282
|
+
className: D(fe, p.requiredMark)
|
|
283
|
+
})), /* @__PURE__ */ e.createElement(n.Control, {
|
|
284
|
+
className: D(Ce, p.input, S.control)
|
|
285
|
+
}, /* @__PURE__ */ e.createElement(n.Trigger, {
|
|
287
286
|
className: S.trigger
|
|
288
|
-
}, /* @__PURE__ */ e.createElement(qe, null)), /* @__PURE__ */ e.createElement(
|
|
287
|
+
}, /* @__PURE__ */ e.createElement(qe, null)), /* @__PURE__ */ e.createElement(n.Input, {
|
|
289
288
|
className: S.segments
|
|
290
|
-
})), /* @__PURE__ */ e.createElement(
|
|
291
|
-
className: D(
|
|
292
|
-
}, /* @__PURE__ */ e.createElement(
|
|
289
|
+
})), /* @__PURE__ */ e.createElement(n.Calendar, {
|
|
290
|
+
className: D(ye, p.selectPopover, S.calendarPopover)
|
|
291
|
+
}, /* @__PURE__ */ e.createElement(n.Calendar.PreviousTrigger, null, /* @__PURE__ */ e.createElement(R, {
|
|
293
292
|
direction: "left"
|
|
294
|
-
})), /* @__PURE__ */ e.createElement(
|
|
293
|
+
})), /* @__PURE__ */ e.createElement(n.Calendar.MonthTrigger, null, /* @__PURE__ */ e.createElement(I, {
|
|
295
294
|
className: p.dropdownIcon
|
|
296
|
-
})), /* @__PURE__ */ e.createElement(
|
|
295
|
+
})), /* @__PURE__ */ e.createElement(n.Calendar.YearTrigger, null, /* @__PURE__ */ e.createElement(I, {
|
|
297
296
|
className: p.dropdownIcon
|
|
298
|
-
})), /* @__PURE__ */ e.createElement(
|
|
297
|
+
})), /* @__PURE__ */ e.createElement(n.Calendar.NextTrigger, null, /* @__PURE__ */ e.createElement(R, {
|
|
299
298
|
direction: "right"
|
|
300
|
-
})), /* @__PURE__ */ e.createElement(
|
|
301
|
-
className: D(
|
|
299
|
+
})), /* @__PURE__ */ e.createElement(n.Calendar.Day, {
|
|
300
|
+
className: D(Oe, P.day, S.calendarDay)
|
|
302
301
|
}, ({ formattedDate: t }) => /* @__PURE__ */ e.createElement("span", {
|
|
303
302
|
className: P.dayNumber
|
|
304
|
-
}, t))), /* @__PURE__ */ e.createElement(
|
|
305
|
-
className: D(
|
|
306
|
-
}, /* @__PURE__ */ e.createElement(
|
|
307
|
-
className: D(
|
|
308
|
-
},
|
|
303
|
+
}, t))), /* @__PURE__ */ e.createElement(n.Error, {
|
|
304
|
+
className: D(Se, p.error)
|
|
305
|
+
}, /* @__PURE__ */ e.createElement(Le, null), /* @__PURE__ */ e.createElement(n.Error.Text, null)), /* @__PURE__ */ e.createElement(n.Description, {
|
|
306
|
+
className: D(ve, p.description)
|
|
307
|
+
}, Je));
|
|
309
308
|
export {
|
|
310
|
-
|
|
309
|
+
Ct as D
|
|
311
310
|
};
|