@wix/form-elements 1.107.0 → 1.108.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-ZAp8oWbK.js} +289 -290
- package/dist/component/{bookings-address-rac-_5S8J8_i.js → bookings-address-rac-x-Az7vHf.js} +1 -1
- package/dist/component/{bookings-email-rac-6vmDR9nS.js → bookings-email-rac-MoF_CaqB.js} +1 -1
- package/dist/component/{bookings-first-name-rac-DtTJ4T2K.js → bookings-first-name-rac-CWh3Rb0M.js} +1 -1
- package/dist/component/{bookings-header-rac-B3dsEwzR.js → bookings-header-rac-BVTiXUWk.js} +1 -1
- package/dist/component/{bookings-last-name-rac-B3idkbi8.js → bookings-last-name-rac-kXRRlyHl.js} +1 -1
- package/dist/component/{bookings-login-bar-rac-CrRBcQwT.js → bookings-login-bar-rac-C4Zr6kXE.js} +23 -24
- package/dist/component/{bookings-phone-rac-BE0yWNnj.js → bookings-phone-rac-2rz1m_xi.js} +1 -1
- package/dist/component/{bookings-rich-text-rac-CYo1l0-6.js → bookings-rich-text-rac-BEjGypQw.js} +1 -1
- package/dist/component/{checkbox-field-rac-boTtXVEt.js → checkbox-field-rac-DwEQLIaz.js} +66 -67
- package/dist/component/{checkbox-group-field-headless-DnkUvDm8.js → checkbox-group-field-headless-BsOww_QB.js} +37 -37
- package/dist/component/{checkbox-group-field-rac-DrDTgHMg.js → checkbox-group-field-rac-DTcZcVS6.js} +6 -6
- package/dist/component/{checkbox-group-rac-v3ozUBpo.js → checkbox-group-rac-DQsML-pW.js} +1 -1
- package/dist/component/{checkbox-rac-YSLE-RnG.js → checkbox-rac-irEBBOxP.js} +1 -1
- package/dist/component/{contacts-address-rac-C653yaHZ.js → contacts-address-rac-B5bSAYrm.js} +1 -1
- package/dist/component/{contacts-birthdate-rac-BeAQ6shx.js → contacts-birthdate-rac-DyScj8f4.js} +1 -1
- package/dist/component/{contacts-company-rac-BglKOoTG.js → contacts-company-rac-C5X9-jXa.js} +1 -1
- package/dist/component/{contacts-email-rac-D6m7ynfc.js → contacts-email-rac-B0vkfmrS.js} +1 -1
- package/dist/component/{contacts-first-name-rac-Dgxn0tUJ.js → contacts-first-name-rac-Cfil3U_e.js} +1 -1
- package/dist/component/{contacts-last-name-rac-1UyIuRKH.js → contacts-last-name-rac-CtPLE-7-.js} +1 -1
- package/dist/component/{contacts-phone-rac-BQ77BlW4.js → contacts-phone-rac-YkzsAoBZ.js} +1 -1
- package/dist/component/{contacts-position-rac-BUDUv7lv.js → contacts-position-rac-BS4j8QC-.js} +1 -1
- package/dist/component/{contacts-subscribe-rac-DdtA0qKW.js → contacts-subscribe-rac-z_9VsEZL.js} +1 -1
- package/dist/component/{contacts-tax-id-rac-WUaKcNl0.js → contacts-tax-id-rac-WFkmKyZv.js} +1 -1
- package/dist/component/{date-availability-XjBFq8jt.js → date-availability-NN3rxosk.js} +1 -1
- package/dist/component/{date-input-field-rac-aY2zuuKs.js → date-input-field-rac-mdhEC3oq.js} +88 -89
- package/dist/component/{date-input-rac-DRiP2_97.js → date-input-rac-CGciuoTx.js} +1 -1
- package/dist/component/{date-picker-field-rac-Bzl-d3Uj.js → date-picker-field-rac-CRZVODfF.js} +90 -91
- package/dist/component/{date-picker-rac-DHHUh8vn.js → date-picker-rac-Bfbvjy8W.js} +1 -1
- package/dist/component/{date-time-input-field-rac-DP_StuLr.js → date-time-input-field-rac-TDWBXZ44.js} +76 -77
- package/dist/component/{date-time-input-rac-B11KIxsf.js → date-time-input-rac-DY0qdSix.js} +1 -1
- package/dist/component/{dext-checkbox-group-rac-BHZBqyWv.js → dext-checkbox-group-rac-BFGM7SOt.js} +2 -2
- package/dist/component/{dext-checkbox-rac-BIlAqEvV.js → dext-checkbox-rac-DPZvTeUZ.js} +1 -1
- package/dist/component/{dext-date-picker-rac-CHBXNrZi.js → dext-date-picker-rac-Xd5kojsQ.js} +1 -1
- package/dist/component/{dext-date-time-input-rac-BYtliKry.js → dext-date-time-input-rac-C0RIdxJW.js} +1 -1
- package/dist/component/{dext-dropdown-rac-C2VPSFV5.js → dext-dropdown-rac-D1m8vJvm.js} +1 -1
- package/dist/component/{dext-email-rac-Fnb0Ggcs.js → dext-email-rac-BC81RFYY.js} +1 -1
- package/dist/component/{dext-number-input-rac-DopfSyFi.js → dext-number-input-rac-Z_ih9FfX.js} +1 -1
- package/dist/component/{dext-phone-rac-Rn4i_2rc.js → dext-phone-rac-s3BOnXuI.js} +1 -1
- package/dist/component/{dext-radio-group-rac-bNaskJpK.js → dext-radio-group-rac-CL3jcezs.js} +2 -2
- package/dist/component/{dext-rating-input-rac-DL6ZZd7d.js → dext-rating-input-rac-wz1EyP5b.js} +1 -1
- package/dist/component/{dext-tags-rac-TsUPoImO.js → dext-tags-rac-BY4Rf2BP.js} +2 -2
- package/dist/component/{dext-text-area-rac-BIuY7LTd.js → dext-text-area-rac-DRJzlsq8.js} +1 -1
- package/dist/component/{dext-text-input-rac-CSYPW0Qi.js → dext-text-input-rac-BGcRNNAi.js} +1 -1
- package/dist/component/{dext-url-input-rac-_g0lqGfW.js → dext-url-input-rac-CRAIm8yp.js} +1 -1
- package/dist/component/{donation-rac-BYKFtsyR.js → donation-rac-BlTfOIlE.js} +83 -84
- package/dist/component/{dropdown-field-headless-CBaqlNZi.js → dropdown-field-headless-DhzRAMcM.js} +12 -12
- package/dist/component/{dropdown-field-rac-CCAGSMm3.js → dropdown-field-rac-DXyY5we-.js} +5 -5
- package/dist/component/{dropdown-rac-C_EqUsZ1.js → dropdown-rac-C6YM6qxm.js} +1 -1
- package/dist/component/{ecom-address-rac-Bw9eH0iF.js → ecom-address-rac-CAdr7wya.js} +1 -1
- package/dist/component/{ecom-subscription-checkbox-rac-B5PVOO2a.js → ecom-subscription-checkbox-rac-Z2VMuCbt.js} +6 -6
- package/dist/component/{email-input-field-rac-B2kqQ6yo.js → email-input-field-rac-DpkfunVK.js} +53 -54
- package/dist/component/{events-repeater-rac--4OnUxWE.js → events-repeater-rac-CuJkdrPo.js} +61 -62
- package/dist/component/{events-rsvp-rac-CczCoo3T.js → events-rsvp-rac-BKWlSeQ9.js} +8 -8
- package/dist/component/{field-error-headless-D3-1L5sf.js → field-error-headless-tsg9FQ-_.js} +12 -12
- package/dist/component/{field-label-headless-Du4ckIVy.js → field-label-headless-CB8dEat8.js} +11 -11
- package/dist/component/{file-upload-rac-DbdkUbWM.js → file-upload-rac-ZdgYt646.js} +67 -68
- package/dist/component/{fixed-payment-rac-f9-01iDN.js → fixed-payment-rac-CuIQEeHh.js} +20 -21
- package/dist/component/{form-DQauhsho.js → form-0jt4L5xo.js} +3045 -2896
- package/dist/component/form.css +1 -1
- package/dist/component/form.js +1 -1
- package/dist/component/header-field-rac-CWVGzxKb.js +24 -0
- package/dist/component/{header-rac-CR9T3Pnu.js → header-rac-D6KsV-ko.js} +1 -1
- package/dist/component/{image-choice-rac-DJ_8v467.js → image-choice-rac-CUCyVS8c.js} +29 -30
- package/dist/component/{index-BB7d_9Dv.js → index-TJSnVtCO.js} +72 -72
- package/dist/component/{index-CcUTIUWM.js → index-iOqQidgV.js} +12 -12
- package/dist/component/{isObjectLike-xvPa_08X.js → isObjectLike-DQbx8r1c.js} +1 -1
- package/dist/component/{multiline-address-field-rac-CyaFOloE.js → multiline-address-field-rac-DtZ1NTfD.js} +186 -187
- package/dist/component/{multiline-address-rac-CaHGUN_f.js → multiline-address-rac-ub-_XzHU.js} +1 -1
- package/dist/component/number-input-field-rac-DLItn4DK.js +92 -0
- package/dist/component/{number-input-rac-DMKX6nhk.js → number-input-rac-UuxJzqEx.js} +1 -1
- package/dist/component/{password-rac-0RUXPAn6.js → password-rac-Di6q96Rn.js} +37 -38
- package/dist/component/{payment-input-rac-CHSZ3-Lt.js → payment-input-rac-CG6c4-Ge.js} +52 -53
- package/dist/component/{phone-input-field-rac-JmIFcP1e.js → phone-input-field-rac-D4JphCuT.js} +75 -76
- package/dist/component/{phone-rac-BLRnAPXP.js → phone-rac-_vDw2usa.js} +1 -1
- package/dist/component/{product-list-rac-BkF5tDwt.js → product-list-rac-CgxRlj1f.js} +73 -74
- package/dist/component/{quiz-radio-group-rac-32cCMTUS.js → quiz-radio-group-rac-bi26aGxN.js} +1 -1
- package/dist/component/{radio-button-module-classes-IOulhuSH.js → radio-button-module-classes-DDJq2ESf.js} +33 -33
- package/dist/component/{radio-group-field-rac-CJwku6e0.js → radio-group-field-rac-D1aMVO6l.js} +4 -4
- package/dist/component/{radio-group-rac-BiW-9Abj.js → radio-group-rac-HKC85M6t.js} +1 -1
- package/dist/component/{rating-input-field-rac-B9cwaROK.js → rating-input-field-rac-CpRehxFB.js} +42 -43
- package/dist/component/{rating-input-rac-BpwlNvzQ.js → rating-input-rac-BMuCZ3oj.js} +1 -1
- package/dist/component/{rich-content-rac.module-B1uyPmtK.js → rich-content-rac.module-mZ6xoAOd.js} +4 -4
- package/dist/component/rich-text-field-rac-CUK8V8Kf.js +21 -0
- package/dist/component/{rich-text-rac-VfeZxS27.js → rich-text-rac-B-7sR2FJ.js} +1 -1
- package/dist/component/{service-dropdown-rac-BCfs8IhW.js → service-dropdown-rac-1DDNT5bn.js} +43 -44
- package/dist/component/{services-multi-choice-rac-CCqdF_7P.js → services-multi-choice-rac-CB-6dwxz.js} +21 -22
- package/dist/component/{signature-rac-DOyMo3u0.js → signature-rac-7XBci6P2.js} +35 -36
- package/dist/component/{submit-button-rac-C2uA5DeE.js → submit-button-rac-B1-Mk8Gg.js} +21 -22
- package/dist/component/{tags-field-rac-C_uIw2by.js → tags-field-rac-CQ9Y7mq-.js} +49 -50
- package/dist/component/{tags-rac-1pQ-fpe_.js → tags-rac-Visic-Ml.js} +1 -1
- package/dist/component/{text-area-field-rac-DqlOkm7e.js → text-area-field-rac-C8fP1g-w.js} +31 -32
- package/dist/component/{text-area-rac-DPdkrFcH.js → text-area-rac-B6yZxzxm.js} +1 -1
- package/dist/component/{text-input-field-rac-CmXm6r1w.js → text-input-field-rac-CNjbOxD1.js} +5 -5
- package/dist/component/{text-input-headless-DD__2DFf.js → text-input-headless-Bm8PJGep.js} +12 -12
- package/dist/component/{text-input-rac-DRHyQEH7.js → text-input-rac-BEPC1Z-4.js} +1 -1
- package/dist/component/{time-input-rac-BJPIymQY.js → time-input-rac-3m6C_Jp5.js} +41 -42
- package/dist/component/url-input-field-rac-CIk_6Lf6.js +74 -0
- package/dist/component/{url-input-rac-C0ChQUzq.js → url-input-rac-DyVoygXH.js} +1 -1
- package/dist/component/use-dropdown-option-class-name-McG3ayOT.js +21 -0
- package/dist/component/{use-element-state-class-name-BatTc2bw.js → use-element-state-class-name-B9MBWX44.js} +1 -1
- package/dist/component/{use-is-forced-open-dropdown-B0jiPTmS.js → use-is-forced-open-dropdown-r5G_sZsO.js} +7 -7
- package/dist/component/{use-service-options-base-oeE7xszw.js → use-service-options-base-hcbkvhpw.js} +7 -7
- package/dist/component/use-text-input-class-name-SnurFqAr.js +23 -0
- package/dist/form.d.ts +3 -1
- package/package.json +2 -2
- 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-CRZVODfF.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, b5 as h, b2 as U, aZ as F, b7 as pe, H as De, T as fe, t as Ce, n as ye, u as Se, p as Te } from "./form-0jt4L5xo.js";
|
|
8
|
+
import { g as he, c as P } from "./calendar.module-DnhTT4QT.js";
|
|
9
|
+
import { f as E, a as T } from "./find-child-C60k4CxG.js";
|
|
10
|
+
import { D as ve, E as _e } from "./field-error-headless-tsg9FQ-_.js";
|
|
11
|
+
import { L as Ne } from "./field-label-headless-CB8dEat8.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-r5G_sZsO.js";
|
|
14
|
+
import { i as Fe } from "./date-availability-NN3rxosk.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 } = h(), { labelId: y } = U(), { regionalFormat: v } = F(), [s, _] = O(null), [W, K] = O(!1), N = Ie(r), H = k((z) => {
|
|
31
|
+
const J = Ke(z);
|
|
32
|
+
a(J);
|
|
34
33
|
}, [
|
|
35
|
-
|
|
36
|
-
]),
|
|
34
|
+
a
|
|
35
|
+
]), $ = E(t, n.Label), q = E(t, n.Control), G = E(t, n.Calendar), j = E(t, n.Description), Z = E(t, n.Error), Q = We(l);
|
|
37
36
|
return /* @__PURE__ */ e.createElement(m, {
|
|
38
37
|
fieldId: r,
|
|
39
|
-
renderLabel: () =>
|
|
40
|
-
renderInput: () => /* @__PURE__ */ e.createElement(
|
|
41
|
-
locale:
|
|
38
|
+
renderLabel: () => $,
|
|
39
|
+
renderInput: () => /* @__PURE__ */ e.createElement(ne, {
|
|
40
|
+
locale: v
|
|
42
41
|
}, /* @__PURE__ */ e.createElement("div", {
|
|
43
42
|
ref: _,
|
|
44
43
|
style: {
|
|
@@ -46,10 +45,10 @@ 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
50
|
value: Q,
|
|
52
|
-
onChange:
|
|
51
|
+
onChange: H,
|
|
53
52
|
isDisabled: i,
|
|
54
53
|
isInvalid: u,
|
|
55
54
|
isReadOnly: C,
|
|
@@ -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, T(G, {
|
|
62
61
|
isForcedOpen: N
|
|
63
62
|
})))),
|
|
64
|
-
renderDescription: () => /* @__PURE__ */ e.createElement(e.Fragment, null,
|
|
63
|
+
renderDescription: () => /* @__PURE__ */ e.createElement(e.Fragment, null, Z, 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 } = h(), 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 } = h(), { 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(() => He(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 } = h(), d = b(() => he(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), v = 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:
|
|
133
|
-
firstDayOfWeek:
|
|
131
|
+
autoFocus: a ? !1 : void 0,
|
|
132
|
+
firstDayOfWeek: $e(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) => T(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) =>
|
|
142
|
+
}, (s) => T(v, {
|
|
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) => T(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 = ve;
|
|
211
|
+
n.Error = _e;
|
|
213
212
|
function We(t) {
|
|
214
213
|
if (!t)
|
|
215
214
|
return null;
|
|
@@ -222,22 +221,22 @@ 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
|
-
function
|
|
227
|
+
function He(t) {
|
|
229
228
|
var r;
|
|
230
229
|
try {
|
|
231
230
|
return ((r = new Intl.DateTimeFormat(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
|
}
|
|
239
238
|
}
|
|
240
|
-
function
|
|
239
|
+
function $e(t) {
|
|
241
240
|
return [
|
|
242
241
|
"sun",
|
|
243
242
|
"mon",
|
|
@@ -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", Ze = "_trigger_1vunt_65", Qe = "_calendarPopover_1vunt_96", ze = "_calendarDay_1vunt_242", S = {
|
|
265
264
|
control: Ge,
|
|
266
265
|
segments: je,
|
|
267
|
-
trigger:
|
|
266
|
+
trigger: Ze,
|
|
268
267
|
calendarPopover: Qe,
|
|
269
|
-
calendarDay:
|
|
270
|
-
},
|
|
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(Te, p.description)
|
|
307
|
+
}, Je));
|
|
309
308
|
export {
|
|
310
|
-
|
|
309
|
+
Ct as D
|
|
311
310
|
};
|