@wix/form-elements 1.94.0 → 1.96.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-CNIizm60.js → appointment-rac-BKgRKq3j.js} +309 -310
- package/dist/component/{bookings-address-rac-C7ukrF1D.js → bookings-address-rac-C87x19gw.js} +1 -1
- package/dist/component/{bookings-email-rac-DnzbLEmf.js → bookings-email-rac-f4nuC_pb.js} +1 -1
- package/dist/component/{bookings-first-name-rac-8Krm-3QK.js → bookings-first-name-rac-BGmuAmbu.js} +1 -1
- package/dist/component/{bookings-header-rac-WRILbKeE.js → bookings-header-rac-CoyxHljp.js} +1 -1
- package/dist/component/{bookings-last-name-rac-C0-yWBLa.js → bookings-last-name-rac-D2mBYwcR.js} +1 -1
- package/dist/component/{bookings-login-bar-rac-Bc9u_rn_.js → bookings-login-bar-rac-BH2Mi6TR.js} +4 -4
- package/dist/component/{bookings-phone-rac-BaBlg7f7.js → bookings-phone-rac-Dz78ybFV.js} +1 -1
- package/dist/component/{bookings-rich-text-rac-DR-Ngu_b.js → bookings-rich-text-rac-8_h0cOoy.js} +1 -1
- package/dist/component/{get-first-day-of-the-week-DvnsxYhQ.js → calendar.module-DnhTT4QT.js} +23 -18
- package/dist/component/{checkbox-field-rac-Cqr57TgJ.js → checkbox-field-rac-CJnegjvL.js} +5 -5
- package/dist/component/{checkbox-group-field-headless-Bgcvavr3.js → checkbox-group-field-headless-CrA7Gx2Y.js} +3 -3
- package/dist/component/{checkbox-group-field-rac-Bcsowjwp.js → checkbox-group-field-rac-DMg75l5Q.js} +12 -12
- package/dist/component/{checkbox-group-rac-38j0b8_U.js → checkbox-group-rac-C9XWlO5D.js} +1 -1
- package/dist/component/{checkbox-rac-Bb5ZxZo7.js → checkbox-rac-CrqhH4z9.js} +1 -1
- package/dist/component/{contacts-address-rac-gaOhfztb.js → contacts-address-rac-C2mqTiPg.js} +1 -1
- package/dist/component/{contacts-birthdate-rac-DAIPR64p.js → contacts-birthdate-rac-i7_RMona.js} +1 -1
- package/dist/component/{contacts-company-rac-DVPQrcfN.js → contacts-company-rac-7sdIosaG.js} +1 -1
- package/dist/component/{contacts-email-rac-qMyFjz_2.js → contacts-email-rac-CrsksJ9G.js} +1 -1
- package/dist/component/{contacts-first-name-rac-OVPtHcde.js → contacts-first-name-rac-I5xIYxgD.js} +1 -1
- package/dist/component/{contacts-last-name-rac-BmLQrJ2D.js → contacts-last-name-rac-DnzJYJh7.js} +1 -1
- package/dist/component/{contacts-phone-rac-D7waZc1q.js → contacts-phone-rac-Cx1jpYmv.js} +1 -1
- package/dist/component/{contacts-position-rac-DnI3o3Am.js → contacts-position-rac-CxddG_cE.js} +1 -1
- package/dist/component/{contacts-subscribe-rac-P8zn8_GS.js → contacts-subscribe-rac-C1nTAhnd.js} +2 -2
- package/dist/component/{contacts-tax-id-rac-9CBr2KkR.js → contacts-tax-id-rac-B1lzfrj_.js} +1 -1
- package/dist/component/{date-availability--ntpBDiI.js → date-availability-LN33GU7O.js} +1 -1
- package/dist/component/{date-input-field-rac-Don2tz5U.js → date-input-field-rac-zTcw6Mxx.js} +57 -56
- package/dist/component/{date-input-rac-Du3e8Hcu.js → date-input-rac-NfVbrcoO.js} +1 -1
- package/dist/component/date-picker-field-rac-Cc9hJloJ.js +317 -0
- package/dist/component/{date-picker-rac-BsCMkfHV.js → date-picker-rac-C5iXyKdf.js} +1 -1
- package/dist/component/{date-time-input-field-rac-LLF1UdUD.js → date-time-input-field-rac-Cp34u7cC.js} +53 -52
- package/dist/component/{date-time-input-rac-KYqrNgbb.js → date-time-input-rac-CfFd56Xf.js} +1 -1
- package/dist/component/{dext-checkbox-group-rac-DaOY9Cb6.js → dext-checkbox-group-rac-BVx7XXwR.js} +2 -2
- package/dist/component/{dext-checkbox-rac-Ceu5q9xf.js → dext-checkbox-rac-CmUOLx_w.js} +1 -1
- package/dist/component/{dext-date-picker-rac-iop0XEpQ.js → dext-date-picker-rac-XDrLGVTQ.js} +1 -1
- package/dist/component/{dext-date-time-input-rac-DJB_fMiN.js → dext-date-time-input-rac-ZLCq_taK.js} +1 -1
- package/dist/component/{dext-dropdown-rac-Dhp4CUZ5.js → dext-dropdown-rac-C74zBq3M.js} +1 -1
- package/dist/component/{dext-email-rac-BIr9RxhQ.js → dext-email-rac-CqS9HcdY.js} +1 -1
- package/dist/component/{dext-number-input-rac-Q8p3NeKN.js → dext-number-input-rac-DszjJDT-.js} +1 -1
- package/dist/component/{dext-phone-rac-DRdRLIvr.js → dext-phone-rac-wt7T8hpM.js} +1 -1
- package/dist/component/{dext-radio-group-rac-D1N_wBhO.js → dext-radio-group-rac-BvRnaWP0.js} +2 -2
- package/dist/component/{dext-rating-input-rac-BQIMl7oQ.js → dext-rating-input-rac-D1Lt9M3c.js} +1 -1
- package/dist/component/{dext-tags-rac-C52jiu1I.js → dext-tags-rac-70YO5CJH.js} +2 -2
- package/dist/component/{dext-text-area-rac-BWmSs4mb.js → dext-text-area-rac-CC5RCvWh.js} +1 -1
- package/dist/component/{dext-text-input-rac-BnAJ-7Hs.js → dext-text-input-rac-s487DzPW.js} +1 -1
- package/dist/component/{dext-url-input-rac-CvGn3KHo.js → dext-url-input-rac-DEKwUh2a.js} +1 -1
- package/dist/component/{donation-rac-DsFRs16V.js → donation-rac-C2bCFVHP.js} +30 -30
- package/dist/component/{dropdown-field-headless-K0AM4AAs.js → dropdown-field-headless-BMWwkydq.js} +4 -4
- package/dist/component/{dropdown-field-rac-CMEB8ZQN.js → dropdown-field-rac-Cw5Cbpg0.js} +5 -5
- package/dist/component/{dropdown-rac-BakYShkm.js → dropdown-rac-CEmlDY3w.js} +1 -1
- package/dist/component/{ecom-address-rac-A_Aj5CX0.js → ecom-address-rac-Dv6asnf_.js} +1 -1
- package/dist/component/{ecom-subscription-checkbox-rac-Ddol0N03.js → ecom-subscription-checkbox-rac-DOwH-Ebd.js} +3 -3
- package/dist/component/{email-input-field-rac-B7yOMDWB.js → email-input-field-rac-CeFXPibq.js} +41 -41
- package/dist/component/events-repeater-rac-BUk5Qc8n.js +267 -0
- package/dist/component/{events-rsvp-rac-DfjqTM7C.js → events-rsvp-rac-CtFkVzUy.js} +20 -20
- package/dist/component/{field-error-headless-CONyKitA.js → field-error-headless-B6x_cVEi.js} +1 -1
- package/dist/component/{field-label-headless-tf9QXhMi.js → field-label-headless-BibCD8xx.js} +1 -1
- package/dist/component/{file-upload-rac-Bng5Yew9.js → file-upload-rac-BUcktluW.js} +43 -43
- package/dist/component/{fixed-payment-rac-CXIv7_Oj.js → fixed-payment-rac-BMSBSo5c.js} +10 -10
- package/dist/component/{form-Lv-a47BN.js → form-9WmwgGNc.js} +1120 -1108
- package/dist/component/{form-element-classes-CLZXu-91.js → form-element-classes-BtKlobUX.js} +60 -59
- package/dist/component/form.css +1 -1
- package/dist/component/form.js +1 -1
- package/dist/component/{header-field-rac-BZdYszfP.js → header-field-rac-CxUuHOic.js} +3 -3
- package/dist/component/{header-rac-BNeqoDyT.js → header-rac-DejI69X7.js} +1 -1
- package/dist/component/{image-choice-rac-aSKDRo51.js → image-choice-rac-BjI5a_co.js} +15 -15
- package/dist/component/{index-DnNA6zNR.js → index-Csso-2QH.js} +2 -2
- package/dist/component/{index-CWZfskEy.js → index-Dz2hV2_S.js} +4 -4
- package/dist/component/{isObjectLike-C9ogbjhq.js → isObjectLike-BN_BZMhy.js} +1 -1
- package/dist/component/{multiline-address-field-rac-CHE1mE_b.js → multiline-address-field-rac-CYfphmfr.js} +86 -85
- package/dist/component/{multiline-address-rac-wxJunvdU.js → multiline-address-rac-Ccujt2bd.js} +1 -1
- package/dist/component/{number-input-field-rac-ore1oi9q.js → number-input-field-rac-CfnRCRar.js} +18 -18
- package/dist/component/{number-input-rac-DU-rCrjJ.js → number-input-rac-DnTO9d8P.js} +1 -1
- package/dist/component/{password-rac-Dkqv0AIm.js → password-rac-Be_YSb-Q.js} +37 -37
- package/dist/component/{payment-input-rac-CsTcFhQ5.js → payment-input-rac-DXUf5iYb.js} +22 -22
- package/dist/component/{phone-input-field-rac-lIVKt7ge.js → phone-input-field-rac-DYAwLuvJ.js} +32 -31
- package/dist/component/{phone-rac-CZlsXHRM.js → phone-rac-BlsvDmER.js} +1 -1
- package/dist/component/{product-list-rac-UebyHfhC.js → product-list-rac-DdXwRSc2.js} +15 -15
- package/dist/component/{quiz-radio-group-rac-ORLTYxdR.js → quiz-radio-group-rac-B0yiKdbu.js} +2 -2
- package/dist/component/{radio-button-module-classes-CEQr0hKB.js → radio-button-module-classes-t1jsWYpT.js} +3 -3
- package/dist/component/{radio-group-field-rac-t_Dj1_4p.js → radio-group-field-rac-Cug1TtSq.js} +4 -4
- package/dist/component/{radio-group-rac-CC_35nq4.js → radio-group-rac-_O5T0Pt8.js} +1 -1
- package/dist/component/{rating-input-field-rac-BU66cRhy.js → rating-input-field-rac-BSKzQ3fq.js} +31 -31
- package/dist/component/{rating-input-rac-KgNbgchh.js → rating-input-rac-B71q44YO.js} +1 -1
- package/dist/component/{rich-content-rac.module-oGcFL-hl.js → rich-content-rac.module-BJuoKIOt.js} +1 -1
- package/dist/component/{rich-text-field-rac-CiwMiMv7.js → rich-text-field-rac-CiSR82Fw.js} +3 -3
- package/dist/component/{rich-text-rac-Dmp0xxpi.js → rich-text-rac-Bo6UBwOg.js} +1 -1
- package/dist/component/{service-dropdown-rac-_QBi8_AO.js → service-dropdown-rac-BJ7V-g8M.js} +35 -35
- package/dist/component/{services-multi-choice-rac-C2e3xL9O.js → services-multi-choice-rac-CtBcc9WH.js} +12 -12
- package/dist/component/{signature-rac-Dj3aYMvJ.js → signature-rac-yvrHr1he.js} +102 -102
- package/dist/component/{submit-button-rac-C-BVXga7.js → submit-button-rac-s-JdZgq7.js} +2 -2
- package/dist/component/{tags-field-rac-CcOUcsCd.js → tags-field-rac-g_W0RMod.js} +66 -66
- package/dist/component/{tags-rac-p68DA4Mq.js → tags-rac-DmvIH6HU.js} +1 -1
- package/dist/component/{text-area-field-rac-DubIcKTn.js → text-area-field-rac-Duja5xOA.js} +27 -27
- package/dist/component/{text-area-rac-CygfUB6z.js → text-area-rac-DzRxgG6u.js} +1 -1
- package/dist/component/{text-input-field-rac-C7JZRcCX.js → text-input-field-rac-C2eXeoBC.js} +7 -7
- package/dist/component/{text-input-headless-D1xcxxNE.js → text-input-headless-d1WK0nqR.js} +3 -3
- package/dist/component/{text-input-rac-C5lfqJCN.js → text-input-rac-DM9MnoQs.js} +1 -1
- package/dist/component/{time-input-rac-BNxceC-R.js → time-input-rac-CxVZ3USX.js} +25 -25
- package/dist/component/{url-input-field-rac-DH_STwmd.js → url-input-field-rac-4oVJMr1a.js} +19 -19
- package/dist/component/{url-input-rac-C2VOzCis.js → url-input-rac--T-FnskQ.js} +1 -1
- package/dist/component/use-dropdown-option-class-name-BFHRYpVL.js +21 -0
- package/dist/component/{use-element-state-class-name-CITSBXT8.js → use-element-state-class-name-De5YnxMK.js} +1 -1
- package/dist/component/use-is-forced-open-dropdown-CWvcd9Ex.js +41 -0
- package/dist/component/{use-service-options-base-DVBmOiRh.js → use-service-options-base-CD1EVWRE.js} +1 -1
- package/dist/component/{use-text-input-class-name-COw61iUf.js → use-text-input-class-name-BYwXccvO.js} +3 -3
- package/package.json +4 -3
- package/dist/component/date-picker-field-rac-Wxmz-O7r.js +0 -304
- package/dist/component/events-repeater-rac-bp8gFHXQ.js +0 -256
- package/dist/component/use-dropdown-option-class-name-CKRu4ERM.js +0 -57
|
@@ -0,0 +1,317 @@
|
|
|
1
|
+
import { RicosViewer as X } from "@wix/ricos/viewer";
|
|
2
|
+
import D from "classnames";
|
|
3
|
+
import e, { useState as A, useCallback as k, useContext as ee, useRef as P, useMemo as F } from "react";
|
|
4
|
+
import { D as f, ak as _, ah as w, ac as T, am as te } from "./form-9WmwgGNc.js";
|
|
5
|
+
import { parseDate as re } from "@internationalized/date";
|
|
6
|
+
import { UNSAFE_PortalProvider as ae } from "react-aria";
|
|
7
|
+
import { I18nProvider as ne, DatePicker as oe, DatePickerStateContext as le, Group as se, DateInput as ce, DateSegment as ie, Calendar as me, CalendarMonthPicker as de, CalendarYearPicker as ue, CalendarGrid as ge, Dialog as Ee, CalendarCell as pe, Button as x, Select as Y, SelectValue as B, ListBox as U, ListBoxItem as V } from "react-aria-components";
|
|
8
|
+
import { g as De, c as R } from "./calendar.module-DnhTT4QT.js";
|
|
9
|
+
import { f as E, a as h } from "./find-child-C60k4CxG.js";
|
|
10
|
+
import { D as fe, E as Ce } from "./field-error-headless-B6x_cVEi.js";
|
|
11
|
+
import { L as ye } from "./field-label-headless-BibCD8xx.js";
|
|
12
|
+
import { D as Se, N as O, S as W } from "./non-modal-popover-DtIMXHbe.js";
|
|
13
|
+
import { u as he } from "./use-is-forced-open-dropdown-CWvcd9Ex.js";
|
|
14
|
+
import { i as _e } from "./date-availability-LN33GU7O.js";
|
|
15
|
+
import { C as L } from "./chevron-down-icon-CcpVm6B-.js";
|
|
16
|
+
import { E as Te } from "./error-icon-hZxQ6DEy.js";
|
|
17
|
+
import { H as Ne } from "./custom-focus-class-_483Pkwp.js";
|
|
18
|
+
import { s as p } from "./field-rac.module-DobpyqOd.js";
|
|
19
|
+
import { C as be, S as ve, n as Ie, h as Fe, r as Le, j as Oe } from "./form-element-classes-BtKlobUX.js";
|
|
20
|
+
const Ae = [
|
|
21
|
+
f.SUNDAY,
|
|
22
|
+
f.MONDAY,
|
|
23
|
+
f.TUESDAY,
|
|
24
|
+
f.WEDNESDAY,
|
|
25
|
+
f.THURSDAY,
|
|
26
|
+
f.FRIDAY,
|
|
27
|
+
f.SATURDAY
|
|
28
|
+
], Pe = {
|
|
29
|
+
availableDays: Ae
|
|
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 } = _(), { labelId: y } = w(), { regionalFormat: N } = T(), [b, s] = A(null), [v, K] = A(!1), I = he(r), z = k((Z) => {
|
|
32
|
+
const J = Ke(Z);
|
|
33
|
+
n(J);
|
|
34
|
+
}, [
|
|
35
|
+
n
|
|
36
|
+
]), $ = E(t, a.Label), H = E(t, a.Control), q = E(t, a.Calendar), G = E(t, a.Description), j = E(t, a.Error), Q = We(l);
|
|
37
|
+
return /* @__PURE__ */ e.createElement(m, {
|
|
38
|
+
fieldId: r,
|
|
39
|
+
renderLabel: () => $,
|
|
40
|
+
renderInput: () => /* @__PURE__ */ e.createElement(ne, {
|
|
41
|
+
locale: N
|
|
42
|
+
}, /* @__PURE__ */ e.createElement("div", {
|
|
43
|
+
ref: s,
|
|
44
|
+
style: {
|
|
45
|
+
display: "contents"
|
|
46
|
+
}
|
|
47
|
+
}), /* @__PURE__ */ e.createElement(ae, {
|
|
48
|
+
getContainer: () => b
|
|
49
|
+
}, /* @__PURE__ */ e.createElement(oe, {
|
|
50
|
+
"aria-labelledby": y,
|
|
51
|
+
value: Q,
|
|
52
|
+
onChange: z,
|
|
53
|
+
isDisabled: i,
|
|
54
|
+
isInvalid: d,
|
|
55
|
+
isReadOnly: C,
|
|
56
|
+
isRequired: c,
|
|
57
|
+
onBlur: u,
|
|
58
|
+
onFocus: o,
|
|
59
|
+
isOpen: I || v,
|
|
60
|
+
onOpenChange: I ? void 0 : K
|
|
61
|
+
}, H, h(q, {
|
|
62
|
+
isForcedOpen: I
|
|
63
|
+
})))),
|
|
64
|
+
renderDescription: () => /* @__PURE__ */ e.createElement(e.Fragment, null, j, G)
|
|
65
|
+
});
|
|
66
|
+
}, Re = ({ children: t, className: r }) => {
|
|
67
|
+
const { inputId: l, ariaDescribedBy: n } = w(), { hasError: i, disabled: c, readOnly: u } = _(), o = ee(le), m = k((d) => {
|
|
68
|
+
if (!o || o.isOpen || c || u)
|
|
69
|
+
return;
|
|
70
|
+
const C = d.target;
|
|
71
|
+
if (C.closest("button"))
|
|
72
|
+
return;
|
|
73
|
+
const y = C.closest("[data-type]");
|
|
74
|
+
y && y.getAttribute("data-type") !== "literal" || o.setOpen(!0);
|
|
75
|
+
}, [
|
|
76
|
+
o,
|
|
77
|
+
c,
|
|
78
|
+
u
|
|
79
|
+
]);
|
|
80
|
+
return /* @__PURE__ */ e.createElement(se, {
|
|
81
|
+
id: l,
|
|
82
|
+
"aria-describedby": n,
|
|
83
|
+
className: r,
|
|
84
|
+
"data-invalid": i,
|
|
85
|
+
onPointerDownCapture: m
|
|
86
|
+
}, t);
|
|
87
|
+
}, Me = ({ className: t }) => {
|
|
88
|
+
const { id: r, placeholder: l } = _(), { regionalFormat: n } = T(), i = P(null), c = P(!1);
|
|
89
|
+
te(() => {
|
|
90
|
+
var o;
|
|
91
|
+
(o = i.current) == null || o.focus();
|
|
92
|
+
}, r);
|
|
93
|
+
const u = F(() => ze(n), [
|
|
94
|
+
n
|
|
95
|
+
]);
|
|
96
|
+
return /* @__PURE__ */ e.createElement(ce, {
|
|
97
|
+
className: t
|
|
98
|
+
}, (o) => {
|
|
99
|
+
const m = o.type === u && o.isPlaceholder && !!l;
|
|
100
|
+
return /* @__PURE__ */ e.createElement(ie, {
|
|
101
|
+
segment: o,
|
|
102
|
+
"data-first-segment": m || void 0,
|
|
103
|
+
ref: (d) => {
|
|
104
|
+
if (!d && c.current) {
|
|
105
|
+
i.current = null, c.current = !1;
|
|
106
|
+
return;
|
|
107
|
+
}
|
|
108
|
+
if (d && !c.current) {
|
|
109
|
+
i.current = d, c.current = !0;
|
|
110
|
+
return;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
}, (d) => !d.isPlaceholder || !l ? d.text : m ? l : d.text);
|
|
114
|
+
});
|
|
115
|
+
}, ke = ({ children: t, className: r }) => /* @__PURE__ */ e.createElement(Se, {
|
|
116
|
+
className: r
|
|
117
|
+
}, t), g = ({ children: t, className: r, ...l }) => {
|
|
118
|
+
const { isForcedOpen: n } = l, { regionalFormat: i, isMobile: c } = T(), { availability: u } = _(), o = F(() => De(i), [
|
|
119
|
+
i
|
|
120
|
+
]), m = F(() => (s) => {
|
|
121
|
+
const v = new Date(s.year, s.month - 1, s.day);
|
|
122
|
+
return !_e(v, u || Pe);
|
|
123
|
+
}, [
|
|
124
|
+
u
|
|
125
|
+
]), d = E(t, g.Day) ?? /* @__PURE__ */ e.createElement(g.Day, null), C = E(t, g.PreviousTrigger), y = E(t, g.NextTrigger), N = E(t, g.MonthTrigger), b = E(t, g.YearTrigger);
|
|
126
|
+
return /* @__PURE__ */ e.createElement(O, {
|
|
127
|
+
className: r,
|
|
128
|
+
containerPadding: 0
|
|
129
|
+
}, /* @__PURE__ */ e.createElement(we, {
|
|
130
|
+
isForcedOpen: n
|
|
131
|
+
}, /* @__PURE__ */ e.createElement(me, {
|
|
132
|
+
autoFocus: n ? !1 : void 0,
|
|
133
|
+
firstDayOfWeek: $e(o),
|
|
134
|
+
isDateUnavailable: m
|
|
135
|
+
}, /* @__PURE__ */ e.createElement("header", null, C, /* @__PURE__ */ e.createElement(de, null, (s) => h(N, {
|
|
136
|
+
ariaLabel: s["aria-label"],
|
|
137
|
+
selectedKey: s.value,
|
|
138
|
+
onSelectionChange: s.onChange,
|
|
139
|
+
items: s.items,
|
|
140
|
+
popoverClassName: r
|
|
141
|
+
})), /* @__PURE__ */ e.createElement(ue, {
|
|
142
|
+
visibleYears: 100
|
|
143
|
+
}, (s) => h(b, {
|
|
144
|
+
ariaLabel: s["aria-label"],
|
|
145
|
+
selectedKey: s.value,
|
|
146
|
+
onSelectionChange: s.onChange,
|
|
147
|
+
items: s.items,
|
|
148
|
+
popoverClassName: r
|
|
149
|
+
})), y), /* @__PURE__ */ e.createElement(ge, {
|
|
150
|
+
weekdayStyle: c ? "narrow" : "short"
|
|
151
|
+
}, (s) => h(d, {
|
|
152
|
+
date: s
|
|
153
|
+
})))));
|
|
154
|
+
}, we = ({ isForcedOpen: t, children: r }) => t ? /* @__PURE__ */ e.createElement("div", {
|
|
155
|
+
role: "dialog"
|
|
156
|
+
}, r) : /* @__PURE__ */ e.createElement(Ee, null, r), xe = ({ children: t, className: r, ...l }) => {
|
|
157
|
+
const { date: n } = l;
|
|
158
|
+
return /* @__PURE__ */ e.createElement(pe, {
|
|
159
|
+
className: r,
|
|
160
|
+
date: n
|
|
161
|
+
}, t);
|
|
162
|
+
}, Ye = ({ children: t, className: r }) => /* @__PURE__ */ e.createElement(x, {
|
|
163
|
+
slot: "previous",
|
|
164
|
+
className: r
|
|
165
|
+
}, t), Be = ({ children: t, className: r }) => /* @__PURE__ */ e.createElement(x, {
|
|
166
|
+
slot: "next",
|
|
167
|
+
className: r
|
|
168
|
+
}, t), Ue = ({ children: t, className: r, ...l }) => {
|
|
169
|
+
const { ariaLabel: n, selectedKey: i, onSelectionChange: c, items: u, popoverClassName: o } = l;
|
|
170
|
+
return /* @__PURE__ */ e.createElement(Y, {
|
|
171
|
+
"aria-label": n,
|
|
172
|
+
selectedKey: i,
|
|
173
|
+
onSelectionChange: c
|
|
174
|
+
}, /* @__PURE__ */ e.createElement(W, {
|
|
175
|
+
className: r
|
|
176
|
+
}, /* @__PURE__ */ e.createElement(B, null), t), /* @__PURE__ */ e.createElement(O, {
|
|
177
|
+
className: o,
|
|
178
|
+
containerPadding: 0
|
|
179
|
+
}, /* @__PURE__ */ e.createElement(U, {
|
|
180
|
+
items: u
|
|
181
|
+
}, (m) => /* @__PURE__ */ e.createElement(V, {
|
|
182
|
+
id: m.id
|
|
183
|
+
}, m.formatted))));
|
|
184
|
+
}, Ve = ({ children: t, className: r, ...l }) => {
|
|
185
|
+
const { ariaLabel: n, selectedKey: i, onSelectionChange: c, items: u, popoverClassName: o } = l;
|
|
186
|
+
return /* @__PURE__ */ e.createElement(Y, {
|
|
187
|
+
"aria-label": n,
|
|
188
|
+
selectedKey: i,
|
|
189
|
+
onSelectionChange: c
|
|
190
|
+
}, /* @__PURE__ */ e.createElement(W, {
|
|
191
|
+
className: r
|
|
192
|
+
}, /* @__PURE__ */ e.createElement(B, null), t), /* @__PURE__ */ e.createElement(O, {
|
|
193
|
+
className: o,
|
|
194
|
+
containerPadding: 0
|
|
195
|
+
}, /* @__PURE__ */ e.createElement(U, {
|
|
196
|
+
items: u
|
|
197
|
+
}, (m) => /* @__PURE__ */ e.createElement(V, {
|
|
198
|
+
id: m.id
|
|
199
|
+
}, m.formatted))));
|
|
200
|
+
};
|
|
201
|
+
g.Day = xe;
|
|
202
|
+
g.PreviousTrigger = Ye;
|
|
203
|
+
g.NextTrigger = Be;
|
|
204
|
+
g.MonthTrigger = Ue;
|
|
205
|
+
g.YearTrigger = Ve;
|
|
206
|
+
a.Label = ye;
|
|
207
|
+
a.Control = Re;
|
|
208
|
+
a.Input = Me;
|
|
209
|
+
a.Trigger = ke;
|
|
210
|
+
a.Calendar = g;
|
|
211
|
+
a.Description = fe;
|
|
212
|
+
a.Error = Ce;
|
|
213
|
+
function We(t) {
|
|
214
|
+
if (!t)
|
|
215
|
+
return null;
|
|
216
|
+
try {
|
|
217
|
+
return re(t);
|
|
218
|
+
} catch {
|
|
219
|
+
return null;
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
function Ke(t) {
|
|
223
|
+
if (!t)
|
|
224
|
+
return null;
|
|
225
|
+
const r = String(t.year).padStart(4, "0"), l = String(t.month).padStart(2, "0"), n = String(t.day).padStart(2, "0");
|
|
226
|
+
return `${r}-${l}-${n}`;
|
|
227
|
+
}
|
|
228
|
+
function ze(t) {
|
|
229
|
+
var r;
|
|
230
|
+
try {
|
|
231
|
+
return ((r = new Intl.DateTimeFormat(t, {
|
|
232
|
+
year: "numeric",
|
|
233
|
+
month: "2-digit",
|
|
234
|
+
day: "2-digit"
|
|
235
|
+
}).formatToParts(/* @__PURE__ */ new Date()).find((n) => n.type !== "literal")) == null ? void 0 : r.type) ?? "month";
|
|
236
|
+
} catch {
|
|
237
|
+
return "month";
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
function $e(t) {
|
|
241
|
+
return [
|
|
242
|
+
"sun",
|
|
243
|
+
"mon",
|
|
244
|
+
"tue",
|
|
245
|
+
"wed",
|
|
246
|
+
"thu",
|
|
247
|
+
"fri",
|
|
248
|
+
"sat"
|
|
249
|
+
][t] || "mon";
|
|
250
|
+
}
|
|
251
|
+
const He = (t) => /* @__PURE__ */ e.createElement("svg", {
|
|
252
|
+
viewBox: "0 0 24 24",
|
|
253
|
+
fill: "none",
|
|
254
|
+
width: 14,
|
|
255
|
+
height: 14,
|
|
256
|
+
"aria-hidden": "true",
|
|
257
|
+
...t
|
|
258
|
+
}, /* @__PURE__ */ e.createElement("path", {
|
|
259
|
+
d: "M7 2v2M17 2v2M3 8h18M5 4h14a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2Z",
|
|
260
|
+
stroke: "currentColor",
|
|
261
|
+
strokeWidth: "1.5",
|
|
262
|
+
strokeLinecap: "round",
|
|
263
|
+
strokeLinejoin: "round"
|
|
264
|
+
})), qe = "_control_1ezgc_1", Ge = "_segments_1ezgc_14", je = "_trigger_1ezgc_65", Qe = "_calendarPopover_1ezgc_96", Ze = "_calendarDay_1ezgc_242", Je = "_mobile_1ezgc_253", S = {
|
|
265
|
+
control: qe,
|
|
266
|
+
segments: Ge,
|
|
267
|
+
trigger: je,
|
|
268
|
+
calendarPopover: Qe,
|
|
269
|
+
calendarDay: Ze,
|
|
270
|
+
mobile: Je
|
|
271
|
+
}, Xe = ({ content: t, locale: r }) => /* @__PURE__ */ e.createElement(X, {
|
|
272
|
+
content: t,
|
|
273
|
+
locale: r
|
|
274
|
+
}), et = {
|
|
275
|
+
left: 90,
|
|
276
|
+
right: -90
|
|
277
|
+
}, M = ({ direction: t }) => /* @__PURE__ */ e.createElement(L, {
|
|
278
|
+
style: {
|
|
279
|
+
transform: `rotate(${et[t]}deg)`
|
|
280
|
+
}
|
|
281
|
+
}), St = () => {
|
|
282
|
+
const { isMobile: t } = T();
|
|
283
|
+
return /* @__PURE__ */ e.createElement(a, null, /* @__PURE__ */ e.createElement(a.Label, {
|
|
284
|
+
className: D(be, p.label)
|
|
285
|
+
}, /* @__PURE__ */ e.createElement(a.Label.Required, {
|
|
286
|
+
className: D(ve, p.requiredMark)
|
|
287
|
+
})), /* @__PURE__ */ e.createElement(a.Control, {
|
|
288
|
+
className: D(Ie, p.input, S.control)
|
|
289
|
+
}, /* @__PURE__ */ e.createElement(a.Trigger, {
|
|
290
|
+
className: S.trigger
|
|
291
|
+
}, /* @__PURE__ */ e.createElement(He, null)), /* @__PURE__ */ e.createElement(a.Input, {
|
|
292
|
+
className: S.segments
|
|
293
|
+
})), /* @__PURE__ */ e.createElement(a.Calendar, {
|
|
294
|
+
className: D(Fe, p.selectPopover, S.calendarPopover, {
|
|
295
|
+
[S.mobile]: t
|
|
296
|
+
})
|
|
297
|
+
}, /* @__PURE__ */ e.createElement(a.Calendar.PreviousTrigger, null, /* @__PURE__ */ e.createElement(M, {
|
|
298
|
+
direction: "left"
|
|
299
|
+
})), /* @__PURE__ */ e.createElement(a.Calendar.MonthTrigger, null, /* @__PURE__ */ e.createElement(L, {
|
|
300
|
+
className: p.dropdownIcon
|
|
301
|
+
})), /* @__PURE__ */ e.createElement(a.Calendar.YearTrigger, null, /* @__PURE__ */ e.createElement(L, {
|
|
302
|
+
className: p.dropdownIcon
|
|
303
|
+
})), /* @__PURE__ */ e.createElement(a.Calendar.NextTrigger, null, /* @__PURE__ */ e.createElement(M, {
|
|
304
|
+
direction: "right"
|
|
305
|
+
})), /* @__PURE__ */ e.createElement(a.Calendar.Day, {
|
|
306
|
+
className: D(Ne, R.day, S.calendarDay)
|
|
307
|
+
}, ({ formattedDate: r }) => /* @__PURE__ */ e.createElement("span", {
|
|
308
|
+
className: R.dayNumber
|
|
309
|
+
}, r))), /* @__PURE__ */ e.createElement(a.Error, {
|
|
310
|
+
className: D(Le, p.error)
|
|
311
|
+
}, /* @__PURE__ */ e.createElement(Te, null), /* @__PURE__ */ e.createElement(a.Error.Text, null)), /* @__PURE__ */ e.createElement(a.Description, {
|
|
312
|
+
className: D(Oe, p.description)
|
|
313
|
+
}, Xe));
|
|
314
|
+
};
|
|
315
|
+
export {
|
|
316
|
+
St as D
|
|
317
|
+
};
|
|
@@ -1,25 +1,26 @@
|
|
|
1
1
|
import { RicosViewer as se } from "@wix/ricos/viewer";
|
|
2
2
|
import p from "classnames";
|
|
3
|
-
import t, { useMemo as T, useState as
|
|
4
|
-
import { ak as b, ah as
|
|
3
|
+
import t, { useMemo as T, useState as q, useCallback as w, useRef as G, useContext as oe } from "react";
|
|
4
|
+
import { ak as b, ah as Q, ac as B, K as W, a2 as J, s as d, au as L, a6 as j, Q as le, y as ie, a9 as ce, z as K, am as U } from "./form-9WmwgGNc.js";
|
|
5
5
|
import { parseTime as me } from "@internationalized/date";
|
|
6
6
|
import { UNSAFE_PortalProvider as de } from "react-aria";
|
|
7
7
|
import { ListBoxItem as ue, ListBox as pe, Select as Ee, TextField as X, TimeField as fe, SelectValue as he, Input as Z, DateInput as be, DateSegment as k, TimeFieldStateContext as ge } from "react-aria-components";
|
|
8
8
|
import { f as u, a as P } from "./find-child-C60k4CxG.js";
|
|
9
9
|
import { g as Ie } from "./helpers-HmkkXrh2.js";
|
|
10
|
-
import { D as _e, E as De } from "./field-error-headless-
|
|
11
|
-
import { L as Ne } from "./field-label-headless-
|
|
10
|
+
import { D as _e, E as De } from "./field-error-headless-B6x_cVEi.js";
|
|
11
|
+
import { L as Ne } from "./field-label-headless-BibCD8xx.js";
|
|
12
12
|
import { F as ye } from "./fieldset-headless-CD3fds9J.js";
|
|
13
13
|
import { N as Oe, S as Te } from "./non-modal-popover-DtIMXHbe.js";
|
|
14
|
-
import {
|
|
15
|
-
import { C as
|
|
16
|
-
import { E as
|
|
14
|
+
import { u as Le } from "./use-is-forced-open-dropdown-CWvcd9Ex.js";
|
|
15
|
+
import { C as Fe } from "./chevron-down-icon-CcpVm6B-.js";
|
|
16
|
+
import { E as Ce } from "./error-icon-hZxQ6DEy.js";
|
|
17
17
|
import { H } from "./custom-focus-class-_483Pkwp.js";
|
|
18
18
|
import { s as h } from "./field-rac.module-DobpyqOd.js";
|
|
19
|
-
import {
|
|
20
|
-
import { u as
|
|
19
|
+
import { C as v, S as Pe, n as Me, E as Se, r as ve, j as Re } from "./form-element-classes-BtKlobUX.js";
|
|
20
|
+
import { u as Ae } from "./use-dropdown-option-class-name-BFHRYpVL.js";
|
|
21
|
+
import { u as z } from "./use-text-input-class-name-BYwXccvO.js";
|
|
21
22
|
const l = ({ children: e, className: a }) => {
|
|
22
|
-
const { id: n, required: o, onBlur: s, onFocus: r, FieldLayout: i } = b(), { inputId: m, labelId: c, ariaDescribedBy: g } =
|
|
23
|
+
const { id: n, required: o, onBlur: s, onFocus: r, FieldLayout: i } = b(), { inputId: m, labelId: c, ariaDescribedBy: g } = Q(), { regionalFormat: f } = B(), N = T(() => W(f).filter(J).map((S) => S.toUpperCase()), [
|
|
23
24
|
f
|
|
24
25
|
]), M = u(e, l.Label), V = u(e, l.Description), _ = u(e, l.Error), D = {
|
|
25
26
|
[d.MONTH]: u(e, l.Month),
|
|
@@ -43,7 +44,7 @@ const l = ({ children: e, className: a }) => {
|
|
|
43
44
|
renderDescription: () => /* @__PURE__ */ t.createElement(t.Fragment, null, _, V)
|
|
44
45
|
});
|
|
45
46
|
}, F = ({ children: e, className: a }) => {
|
|
46
|
-
const { id: n, disabled: o, readOnly: s, showDateLabels: r, hidePlaceholder: i } = b(), { labelId: m } = O(d.MONTH), { partValue: c, partError: g, onPartChange: f } = C(d.MONTH), { t: N } = L(), [M, V] =
|
|
47
|
+
const { id: n, disabled: o, readOnly: s, showDateLabels: r, hidePlaceholder: i } = b(), { labelId: m } = O(d.MONTH), { partValue: c, partError: g, onPartChange: f } = C(d.MONTH), { t: N } = L(), [M, V] = q(!1), _ = Le(n), [D, y] = q(null), S = i ? void 0 : N("field.date.placeholder.month"), ee = w((Y) => {
|
|
47
48
|
s || f(typeof Y == "string" ? Y : "");
|
|
48
49
|
}, [
|
|
49
50
|
f,
|
|
@@ -69,13 +70,13 @@ const l = ({ children: e, className: a }) => {
|
|
|
69
70
|
onChange: ee,
|
|
70
71
|
isDisabled: o,
|
|
71
72
|
isInvalid: g,
|
|
72
|
-
placeholder:
|
|
73
|
+
placeholder: S,
|
|
73
74
|
isOpen: _ || M,
|
|
74
75
|
onOpenChange: _ ? void 0 : te
|
|
75
76
|
}, ne, P(re, {
|
|
76
77
|
isForcedOpen: _
|
|
77
78
|
}))));
|
|
78
|
-
}, Ve = ({ className: e }) => /* @__PURE__ */ t.createElement(
|
|
79
|
+
}, Ve = ({ className: e }) => /* @__PURE__ */ t.createElement($, {
|
|
79
80
|
datePart: d.MONTH,
|
|
80
81
|
className: e
|
|
81
82
|
}), Ye = ({ children: e, className: a }) => {
|
|
@@ -91,10 +92,10 @@ const l = ({ children: e, className: a }) => {
|
|
|
91
92
|
"data-invalid": r || void 0,
|
|
92
93
|
"data-readonly": o || void 0
|
|
93
94
|
}, /* @__PURE__ */ t.createElement(he, null), e);
|
|
94
|
-
},
|
|
95
|
-
const { isForcedOpen: o } = n, { language: s } =
|
|
95
|
+
}, x = ({ children: e, className: a, ...n }) => {
|
|
96
|
+
const { isForcedOpen: o } = n, { language: s } = B(), r = T(() => Ie(s), [
|
|
96
97
|
s
|
|
97
|
-
]), i = u(e,
|
|
98
|
+
]), i = u(e, x.Option) ?? /* @__PURE__ */ t.createElement(x.Option, null);
|
|
98
99
|
return /* @__PURE__ */ t.createElement(Oe, {
|
|
99
100
|
className: a,
|
|
100
101
|
containerPadding: 0,
|
|
@@ -116,8 +117,8 @@ const l = ({ children: e, className: a }) => {
|
|
|
116
117
|
};
|
|
117
118
|
F.Label = Ve;
|
|
118
119
|
F.Trigger = Ye;
|
|
119
|
-
F.Options =
|
|
120
|
-
|
|
120
|
+
F.Options = x;
|
|
121
|
+
x.Option = He;
|
|
121
122
|
const R = ({ children: e, className: a }) => {
|
|
122
123
|
const { disabled: n, readOnly: o, showDateLabels: s } = b(), { labelId: r } = O(d.DAY), { partValue: i, partError: m, onPartChange: c } = C(d.DAY), g = u(e, R.Label), f = u(e, R.Input);
|
|
123
124
|
return /* @__PURE__ */ t.createElement("div", {
|
|
@@ -131,10 +132,10 @@ const R = ({ children: e, className: a }) => {
|
|
|
131
132
|
isReadOnly: o,
|
|
132
133
|
isInvalid: m
|
|
133
134
|
}, f));
|
|
134
|
-
}, we = ({ className: e }) => /* @__PURE__ */ t.createElement(
|
|
135
|
+
}, we = ({ className: e }) => /* @__PURE__ */ t.createElement($, {
|
|
135
136
|
datePart: d.DAY,
|
|
136
137
|
className: e
|
|
137
|
-
}),
|
|
138
|
+
}), xe = ({ className: e }) => {
|
|
138
139
|
const { id: a, hidePlaceholder: n } = b(), { inputId: o } = O(d.DAY), { isFirstPart: s } = C(d.DAY), { t: r } = L(), i = G(null), m = n ? void 0 : r("field.date.placeholder.day");
|
|
139
140
|
return U(() => {
|
|
140
141
|
var c;
|
|
@@ -150,7 +151,7 @@ const R = ({ children: e, className: a }) => {
|
|
|
150
151
|
});
|
|
151
152
|
};
|
|
152
153
|
R.Label = we;
|
|
153
|
-
R.Input =
|
|
154
|
+
R.Input = xe;
|
|
154
155
|
const A = ({ children: e, className: a }) => {
|
|
155
156
|
const { disabled: n, readOnly: o, showDateLabels: s } = b(), { labelId: r } = O(d.YEAR), { partValue: i, partError: m, onPartChange: c } = C(d.YEAR), g = u(e, A.Label), f = u(e, A.Input);
|
|
156
157
|
return /* @__PURE__ */ t.createElement("div", {
|
|
@@ -164,7 +165,7 @@ const A = ({ children: e, className: a }) => {
|
|
|
164
165
|
isReadOnly: o,
|
|
165
166
|
isInvalid: m
|
|
166
167
|
}, f));
|
|
167
|
-
},
|
|
168
|
+
}, Be = ({ className: e }) => /* @__PURE__ */ t.createElement($, {
|
|
168
169
|
datePart: d.YEAR,
|
|
169
170
|
className: e
|
|
170
171
|
}), ke = ({ className: e }) => {
|
|
@@ -182,7 +183,7 @@ const A = ({ children: e, className: a }) => {
|
|
|
182
183
|
"data-hook": d.YEAR
|
|
183
184
|
});
|
|
184
185
|
};
|
|
185
|
-
A.Label =
|
|
186
|
+
A.Label = Be;
|
|
186
187
|
A.Input = ke;
|
|
187
188
|
const I = ({ children: e, className: a }) => {
|
|
188
189
|
const { disabled: n, readOnly: o, use24HourFormat: s, showDateLabels: r } = b(), { labelId: i } = O("time"), { partValue: m, partError: c, onPartChange: g } = C("time"), f = u(e, I.Label), N = u(e, I.Input);
|
|
@@ -241,7 +242,7 @@ const I = ({ children: e, className: a }) => {
|
|
|
241
242
|
placeholder: r
|
|
242
243
|
}
|
|
243
244
|
});
|
|
244
|
-
},
|
|
245
|
+
}, $e = ({ className: e, ...a }) => {
|
|
245
246
|
const { hidePlaceholder: n } = b(), { segment: o } = a, { t: s } = L(), r = n ? void 0 : s("field.date.placeholder.minute");
|
|
246
247
|
return /* @__PURE__ */ t.createElement(k, {
|
|
247
248
|
segment: o,
|
|
@@ -250,7 +251,7 @@ const I = ({ children: e, className: a }) => {
|
|
|
250
251
|
placeholder: r
|
|
251
252
|
}
|
|
252
253
|
});
|
|
253
|
-
},
|
|
254
|
+
}, qe = ({ className: e, ...a }) => {
|
|
254
255
|
const { hidePlaceholder: n } = b(), { segment: o } = a, { t: s } = L(), r = oe(ge), i = n ? void 0 : s("field.date.placeholder.period"), m = () => r == null ? void 0 : r.increment("dayPeriod");
|
|
255
256
|
return /* @__PURE__ */ t.createElement(k, {
|
|
256
257
|
segment: o,
|
|
@@ -264,8 +265,8 @@ const I = ({ children: e, className: a }) => {
|
|
|
264
265
|
I.Label = ze;
|
|
265
266
|
I.Input = Ge;
|
|
266
267
|
I.Hour = Ue;
|
|
267
|
-
I.Minute =
|
|
268
|
-
I.Period =
|
|
268
|
+
I.Minute = $e;
|
|
269
|
+
I.Period = qe;
|
|
269
270
|
l.Label = Ne;
|
|
270
271
|
l.Month = F;
|
|
271
272
|
l.Day = R;
|
|
@@ -274,7 +275,7 @@ l.Time = I;
|
|
|
274
275
|
l.Description = _e;
|
|
275
276
|
l.Error = De;
|
|
276
277
|
function O(e) {
|
|
277
|
-
const { inputId: a } =
|
|
278
|
+
const { inputId: a } = Q();
|
|
278
279
|
return T(() => {
|
|
279
280
|
const n = e.toLowerCase();
|
|
280
281
|
return {
|
|
@@ -287,24 +288,24 @@ function O(e) {
|
|
|
287
288
|
]);
|
|
288
289
|
}
|
|
289
290
|
function C(e) {
|
|
290
|
-
const { value: a, onChange: n, hasError: o = !1 } = b(), { regionalFormat: s } =
|
|
291
|
+
const { value: a, onChange: n, hasError: o = !1 } = b(), { regionalFormat: s } = B(), [r, i] = T(() => j(a ?? ""), [
|
|
291
292
|
a
|
|
292
293
|
]), m = T(() => le(o, a ?? ""), [
|
|
293
294
|
a,
|
|
294
295
|
o
|
|
295
296
|
]), c = T(() => ie(r), [
|
|
296
297
|
r
|
|
297
|
-
]), g = T(() =>
|
|
298
|
+
]), g = T(() => je(i), [
|
|
298
299
|
i
|
|
299
300
|
]), f = w((_) => {
|
|
300
|
-
const D =
|
|
301
|
+
const D = Ke(_), y = K(r, D);
|
|
301
302
|
n(y);
|
|
302
303
|
}, [
|
|
303
304
|
n,
|
|
304
305
|
r
|
|
305
306
|
]), N = w((_) => {
|
|
306
|
-
const [, D] =
|
|
307
|
-
n(
|
|
307
|
+
const [, D] = j(a ?? ""), y = ce(_, e, c), S = K(y, D);
|
|
308
|
+
n(S);
|
|
308
309
|
}, [
|
|
309
310
|
n,
|
|
310
311
|
a,
|
|
@@ -326,7 +327,7 @@ function C(e) {
|
|
|
326
327
|
isFirstPart: M
|
|
327
328
|
};
|
|
328
329
|
}
|
|
329
|
-
function
|
|
330
|
+
function $({ datePart: e, className: a }) {
|
|
330
331
|
const { inputId: n, labelId: o } = O(e), { t: s } = L(), r = `field.date.label.${e.toLowerCase()}`, i = s(r);
|
|
331
332
|
return /* @__PURE__ */ t.createElement("label", {
|
|
332
333
|
id: o,
|
|
@@ -334,7 +335,7 @@ function q({ datePart: e, className: a }) {
|
|
|
334
335
|
className: a
|
|
335
336
|
}, i);
|
|
336
337
|
}
|
|
337
|
-
function
|
|
338
|
+
function je(e) {
|
|
338
339
|
if (!e)
|
|
339
340
|
return null;
|
|
340
341
|
try {
|
|
@@ -343,7 +344,7 @@ function Ke(e) {
|
|
|
343
344
|
return null;
|
|
344
345
|
}
|
|
345
346
|
}
|
|
346
|
-
function
|
|
347
|
+
function Ke(e) {
|
|
347
348
|
if (!e)
|
|
348
349
|
return null;
|
|
349
350
|
const a = String(e.hour).padStart(2, "0"), n = String(e.minute).padStart(2, "0"), o = String(e.second).padStart(2, "0");
|
|
@@ -353,8 +354,8 @@ function Qe(e) {
|
|
|
353
354
|
o
|
|
354
355
|
].join(":");
|
|
355
356
|
}
|
|
356
|
-
const
|
|
357
|
-
fields:
|
|
357
|
+
const Qe = "_fields_1svr5_1", We = "_month_1svr5_10", Je = "_day_1svr5_11", Xe = "_year_1svr5_12", Ze = "_timeGroup_1svr5_13", et = "_mobile_1svr5_32", tt = "_dayInput_1svr5_45", at = "_yearInput_1svr5_46", nt = "_monthTrigger_1svr5_50", rt = "_monthOption_1svr5_70", st = "_time_1svr5_13", ot = "_hour_1svr5_89", lt = "_minute_1svr5_90", it = "_period_1svr5_91", E = {
|
|
358
|
+
fields: Qe,
|
|
358
359
|
month: We,
|
|
359
360
|
day: Je,
|
|
360
361
|
year: Xe,
|
|
@@ -371,23 +372,23 @@ const je = "_fields_1svr5_1", We = "_month_1svr5_10", Je = "_day_1svr5_11", Xe =
|
|
|
371
372
|
}, ct = ({ content: e, locale: a }) => /* @__PURE__ */ t.createElement(se, {
|
|
372
373
|
content: e,
|
|
373
374
|
locale: a
|
|
374
|
-
}),
|
|
375
|
-
const e =
|
|
375
|
+
}), St = () => {
|
|
376
|
+
const e = Ae(E.monthOption, H), { isMobile: a } = B(), n = z(E.dayInput), o = z(E.yearInput), s = z(E.time);
|
|
376
377
|
return /* @__PURE__ */ t.createElement(l, {
|
|
377
378
|
className: p(E.fields, {
|
|
378
379
|
[E.mobile]: a
|
|
379
380
|
})
|
|
380
381
|
}, /* @__PURE__ */ t.createElement(l.Label, {
|
|
381
|
-
className: p(
|
|
382
|
+
className: p(v, h.label)
|
|
382
383
|
}, /* @__PURE__ */ t.createElement(l.Label.Required, {
|
|
383
|
-
className: p(
|
|
384
|
+
className: p(Pe, h.requiredMark)
|
|
384
385
|
})), /* @__PURE__ */ t.createElement(l.Month, {
|
|
385
386
|
className: E.month
|
|
386
387
|
}, /* @__PURE__ */ t.createElement(l.Month.Label, {
|
|
387
|
-
className: p(
|
|
388
|
+
className: p(v, h.label)
|
|
388
389
|
}), /* @__PURE__ */ t.createElement(l.Month.Trigger, {
|
|
389
|
-
className: p(
|
|
390
|
-
}, /* @__PURE__ */ t.createElement(
|
|
390
|
+
className: p(Me, h.input, E.monthTrigger)
|
|
391
|
+
}, /* @__PURE__ */ t.createElement(Fe, {
|
|
391
392
|
className: h.dropdownIcon
|
|
392
393
|
})), /* @__PURE__ */ t.createElement(l.Month.Options, {
|
|
393
394
|
className: p(Se, h.selectPopover, h.dropdownPopover)
|
|
@@ -396,19 +397,19 @@ const je = "_fields_1svr5_1", We = "_month_1svr5_10", Je = "_day_1svr5_11", Xe =
|
|
|
396
397
|
}))), /* @__PURE__ */ t.createElement(l.Day, {
|
|
397
398
|
className: E.day
|
|
398
399
|
}, /* @__PURE__ */ t.createElement(l.Day.Label, {
|
|
399
|
-
className: p(
|
|
400
|
+
className: p(v, h.label)
|
|
400
401
|
}), /* @__PURE__ */ t.createElement(l.Day.Input, {
|
|
401
402
|
className: n
|
|
402
403
|
})), /* @__PURE__ */ t.createElement(l.Year, {
|
|
403
404
|
className: E.year
|
|
404
405
|
}, /* @__PURE__ */ t.createElement(l.Year.Label, {
|
|
405
|
-
className: p(
|
|
406
|
+
className: p(v, h.label)
|
|
406
407
|
}), /* @__PURE__ */ t.createElement(l.Year.Input, {
|
|
407
408
|
className: o
|
|
408
409
|
})), /* @__PURE__ */ t.createElement(l.Time, {
|
|
409
410
|
className: E.timeGroup
|
|
410
411
|
}, /* @__PURE__ */ t.createElement(l.Time.Label, {
|
|
411
|
-
className: p(
|
|
412
|
+
className: p(v, h.label)
|
|
412
413
|
}), /* @__PURE__ */ t.createElement(l.Time.Input, {
|
|
413
414
|
className: s
|
|
414
415
|
}, /* @__PURE__ */ t.createElement(l.Time.Hour, {
|
|
@@ -418,11 +419,11 @@ const je = "_fields_1svr5_1", We = "_month_1svr5_10", Je = "_day_1svr5_11", Xe =
|
|
|
418
419
|
}), /* @__PURE__ */ t.createElement(l.Time.Period, {
|
|
419
420
|
className: p(E.period, H)
|
|
420
421
|
}))), /* @__PURE__ */ t.createElement(l.Error, {
|
|
421
|
-
className: p(
|
|
422
|
-
}, /* @__PURE__ */ t.createElement(
|
|
423
|
-
className: p(
|
|
422
|
+
className: p(ve, h.error)
|
|
423
|
+
}, /* @__PURE__ */ t.createElement(Ce, null), /* @__PURE__ */ t.createElement(l.Error.Text, null)), /* @__PURE__ */ t.createElement(l.Description, {
|
|
424
|
+
className: p(Re, h.description)
|
|
424
425
|
}, ct));
|
|
425
426
|
};
|
|
426
427
|
export {
|
|
427
|
-
|
|
428
|
+
St as D
|
|
428
429
|
};
|
package/dist/component/{dext-checkbox-group-rac-DaOY9Cb6.js → dext-checkbox-group-rac-BVx7XXwR.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import o from "react";
|
|
2
|
-
import { ak as e, h as t } from "./form-
|
|
3
|
-
import { C as p } from "./checkbox-group-field-rac-
|
|
2
|
+
import { ak as e, h as t } from "./form-9WmwgGNc.js";
|
|
3
|
+
import { C as p } from "./checkbox-group-field-rac-DMg75l5Q.js";
|
|
4
4
|
import { D as s } from "./default-limits-D7qVv_Hv.js";
|
|
5
5
|
const C = () => {
|
|
6
6
|
const r = {
|