@wix/form-elements 1.88.0 → 1.90.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-DG8GUJpn.js → appointment-rac-DtPa-JZ9.js} +6 -6
- package/dist/component/{bookings-address-rac-cNBSx-Pr.js → bookings-address-rac-4l8kqoLi.js} +1 -1
- package/dist/component/{bookings-email-rac-CYdSoVWP.js → bookings-email-rac-76vUcGtU.js} +1 -1
- package/dist/component/{bookings-first-name-rac-CQB2o8ww.js → bookings-first-name-rac-IS7LUMxg.js} +1 -1
- package/dist/component/{bookings-header-rac-CzKvQond.js → bookings-header-rac-2wTzY64_.js} +1 -1
- package/dist/component/{bookings-last-name-rac-oK1BC5Am.js → bookings-last-name-rac-nxA75igv.js} +1 -1
- package/dist/component/{bookings-login-bar-rac-CZNEy748.js → bookings-login-bar-rac-CRi1nntD.js} +21 -21
- package/dist/component/{bookings-phone-rac-D_4WfolC.js → bookings-phone-rac-DZjvHly0.js} +1 -1
- package/dist/component/{bookings-rich-text-rac-CrEfeL4P.js → bookings-rich-text-rac-CYn1wwYQ.js} +1 -1
- package/dist/component/{checkbox-field-rac-CGqshW45.js → checkbox-field-rac-DAcFLQNT.js} +49 -49
- package/dist/component/{checkbox-group-field-headless-C3_5IR-E.js → checkbox-group-field-headless-BJmS0Ce5.js} +30 -30
- package/dist/component/{checkbox-group-field-rac-DIzdgyAw.js → checkbox-group-field-rac-CeFUt2Nr.js} +9 -9
- package/dist/component/{checkbox-group-rac-EvWVfusV.js → checkbox-group-rac-eDChVoVP.js} +1 -1
- package/dist/component/{checkbox-indicator-module-classes-Bb3xB1ve.js → checkbox-indicator-module-classes-mJ7hl_8K.js} +1 -1
- package/dist/component/{checkbox-rac-CT_69Jei.js → checkbox-rac-DGmZdPnl.js} +1 -1
- package/dist/component/{contacts-address-rac-M8MZd777.js → contacts-address-rac-CGS83PMu.js} +1 -1
- package/dist/component/{contacts-birthdate-rac-BS-8HeRD.js → contacts-birthdate-rac-DkP-7tZ9.js} +1 -1
- package/dist/component/{contacts-company-rac-gmgKLvic.js → contacts-company-rac-D_KYvkYe.js} +1 -1
- package/dist/component/{contacts-email-rac-QQ6E9VzX.js → contacts-email-rac-4lGD56E8.js} +1 -1
- package/dist/component/{contacts-first-name-rac-DR7XheRo.js → contacts-first-name-rac-C5L3U9QV.js} +1 -1
- package/dist/component/{contacts-last-name-rac-CBJgTkj5.js → contacts-last-name-rac-SL3FSAhE.js} +1 -1
- package/dist/component/{contacts-phone-rac-CTl25HdK.js → contacts-phone-rac-DkUwJ56_.js} +1 -1
- package/dist/component/{contacts-position-rac-DBDOW7QR.js → contacts-position-rac-CeKJ5oJh.js} +1 -1
- package/dist/component/{contacts-subscribe-rac-C0-uJ7fU.js → contacts-subscribe-rac-Bjldz7ed.js} +2 -2
- package/dist/component/{contacts-tax-id-rac-BtXc0V1S.js → contacts-tax-id-rac-D8QxyDiU.js} +1 -1
- package/dist/component/{date-availability-IQtwk-aX.js → date-availability-DdMI-zNj.js} +1 -1
- package/dist/component/{date-input-field-rac-2rbZiSgo.js → date-input-field-rac-Da6j7OP2.js} +99 -98
- package/dist/component/{date-input-rac-j4--xZ8s.js → date-input-rac-tlmhXr4A.js} +1 -1
- package/dist/component/{date-picker-field-rac-Cl7ueVVn.js → date-picker-field-rac-ClNfMoR1.js} +43 -43
- package/dist/component/{date-picker-rac-BrObkuYv.js → date-picker-rac-BV3TGjsx.js} +1 -1
- package/dist/component/date-time-input-field-rac-5eHyKry0.js +424 -0
- package/dist/component/{date-time-input-rac-BShquR72.js → date-time-input-rac-DQk2ylbE.js} +1 -1
- package/dist/component/{dext-checkbox-group-rac-DNXYnHDM.js → dext-checkbox-group-rac-CBj9Y7Tp.js} +2 -2
- package/dist/component/{dext-checkbox-rac-RBMWmgyT.js → dext-checkbox-rac-C1KI5I2J.js} +1 -1
- package/dist/component/{dext-date-picker-rac-Dph_kV11.js → dext-date-picker-rac-D-8Ss0bx.js} +1 -1
- package/dist/component/{dext-date-time-input-rac-C3_gQkBT.js → dext-date-time-input-rac-CRnwLBSZ.js} +1 -1
- package/dist/component/{dext-dropdown-rac-D34vhtST.js → dext-dropdown-rac-BVTEMS0W.js} +1 -1
- package/dist/component/{dext-email-rac-Yzf4-vSg.js → dext-email-rac-CXeM4iQj.js} +1 -1
- package/dist/component/{dext-number-input-rac-D0jZXKaI.js → dext-number-input-rac-DMh08cy5.js} +1 -1
- package/dist/component/{dext-phone-rac-bqTpmTa0.js → dext-phone-rac-E1fFjkVW.js} +1 -1
- package/dist/component/{dext-radio-group-rac-AYPAzpqZ.js → dext-radio-group-rac-_BhRzFAr.js} +2 -2
- package/dist/component/{dext-rating-input-rac-DOSq-xVQ.js → dext-rating-input-rac-BRYVQOYw.js} +1 -1
- package/dist/component/{dext-tags-rac-BXtFTlL0.js → dext-tags-rac-C4iwtRcw.js} +2 -2
- package/dist/component/{dext-text-area-rac-46wwBQg_.js → dext-text-area-rac-CQ1KAhkU.js} +1 -1
- package/dist/component/{dext-text-input-rac-DVj6V1VG.js → dext-text-input-rac-xCoKhEt3.js} +1 -1
- package/dist/component/{dext-url-input-rac-B5zu9R5K.js → dext-url-input-rac-DyoEEa_v.js} +1 -1
- package/dist/component/{donation-rac-DeBMssGg.js → donation-rac-CSDVxWUj.js} +51 -51
- package/dist/component/dropdown-field-headless-BXyP9KYi.js +101 -0
- package/dist/component/dropdown-field-rac-D1Z_Jbzd.js +36 -0
- package/dist/component/{dropdown-rac-bUNYh49x.js → dropdown-rac-BEi7CMKT.js} +1 -1
- package/dist/component/{ecom-address-rac-CtrERV3f.js → ecom-address-rac-DGl7rlwa.js} +1 -1
- package/dist/component/{ecom-subscription-checkbox-rac-BrpwOSYM.js → ecom-subscription-checkbox-rac-D5HzzRQk.js} +6 -6
- package/dist/component/{email-input-field-rac-4yYxYc1a.js → email-input-field-rac-DHAK2K8E.js} +63 -63
- package/dist/component/{events-repeater-rac-B308C1JK.js → events-repeater-rac-N1mGqD4R.js} +35 -35
- package/dist/component/{events-rsvp-rac-C4_LJ3Wz.js → events-rsvp-rac-Ds9PnqHG.js} +6 -6
- package/dist/component/{field-error-headless-PMBWtb3Z.js → field-error-headless-9MKScovg.js} +12 -12
- package/dist/component/{field-label-headless-0racVfdo.js → field-label-headless-BaoLrUWJ.js} +12 -12
- package/dist/component/field-rac.module-BUvPquav.js +26 -0
- package/dist/component/{file-upload-rac-CZIHV2OL.js → file-upload-rac-CNbLRxUz.js} +116 -116
- package/dist/component/{fixed-payment-rac-COhRKeun.js → fixed-payment-rac-BFnvUksR.js} +15 -15
- package/dist/component/{form-UCnayEKT.js → form-B3YjGh0T.js} +129 -128
- package/dist/component/{form-element-classes--p2vz_Bm.js → form-element-classes-CLZXu-91.js} +79 -69
- package/dist/component/form.css +1 -1
- package/dist/component/form.js +1 -1
- package/dist/component/{header-field-rac-CpXa-NlC.js → header-field-rac-64pYqszP.js} +3 -3
- package/dist/component/{header-rac-CCsguMlZ.js → header-rac-BtPQVL59.js} +1 -1
- package/dist/component/{image-choice-rac-j2UH4Q4I.js → image-choice-rac-BsojUR1h.js} +20 -20
- package/dist/component/{index-Bxa3IDHm.js → index-CtiBRBqZ.js} +4 -4
- package/dist/component/{index-jg8dn8po.js → index-f2JBxCTd.js} +2 -2
- package/dist/component/{isObjectLike-Zw6J9g91.js → isObjectLike-BgqHLNgn.js} +1 -1
- package/dist/component/{multiline-address-field-rac-BeFAYL7V.js → multiline-address-field-rac-CH1hCUTf.js} +575 -574
- package/dist/component/{multiline-address-rac-BYr5_DQd.js → multiline-address-rac-CkOPWXfI.js} +1 -1
- package/dist/component/{number-input-field-rac-BNdJecUL.js → number-input-field-rac-B7U_08UK.js} +24 -24
- package/dist/component/{number-input-rac-Cqkj4JAF.js → number-input-rac-1jcchySg.js} +1 -1
- package/dist/component/{password-rac-D4iSs1ds.js → password-rac-CAaV8OrL.js} +21 -21
- package/dist/component/{payment-input-rac-BvBP47HP.js → payment-input-rac-B3Knhzrz.js} +25 -25
- package/dist/component/{phone-input-field-rac-Cggx8IlY.js → phone-input-field-rac-BGsvxtXz.js} +185 -184
- package/dist/component/{phone-rac-BISmYt_n.js → phone-rac-BUAW-44w.js} +1 -1
- package/dist/component/{product-list-rac-C1bm-U2G.js → product-list-rac-C7Nq3ZG4.js} +43 -43
- package/dist/component/quiz-radio-group-rac-CRa3I_NR.js +13 -0
- package/dist/component/{radio-button-module-classes-blfiatlc.js → radio-button-module-classes-BEvf741q.js} +7 -7
- package/dist/component/{radio-group-field-rac-BiiPUxbQ.js → radio-group-field-rac-BYTXrpnE.js} +5 -5
- package/dist/component/{radio-group-rac-Bn_W-3xz.js → radio-group-rac-138JrIhm.js} +1 -1
- package/dist/component/{rating-input-field-rac-CjXIoNMc.js → rating-input-field-rac-D5pOVdFJ.js} +24 -24
- package/dist/component/{rating-input-rac-Ci4uPo22.js → rating-input-rac-DuK1q9JB.js} +1 -1
- package/dist/component/{rich-content-rac.module-CDZniyrZ.js → rich-content-rac.module-H3hPgDtD.js} +4 -4
- package/dist/component/{rich-text-field-rac-BBRE9_Kr.js → rich-text-field-rac-Btwqm4wb.js} +5 -5
- package/dist/component/{rich-text-rac-C3MfJK-H.js → rich-text-rac-DIu8StCg.js} +1 -1
- package/dist/component/service-dropdown-rac-N8jqoUC_.js +146 -0
- package/dist/component/{services-multi-choice-rac-FDHRjDLS.js → services-multi-choice-rac-DlP0tB9d.js} +18 -18
- package/dist/component/{signature-rac-DfGPV0Mw.js → signature-rac-DuRzxIkO.js} +53 -53
- package/dist/component/{submit-button-rac-DRsqyJcl.js → submit-button-rac-DFmPp4jT.js} +7 -7
- package/dist/component/{tags-field-rac-CZ4FBGG9.js → tags-field-rac-DIgyn5P9.js} +56 -56
- package/dist/component/{tags-rac-CMHMsiwv.js → tags-rac-C6R6RHl2.js} +1 -1
- package/dist/component/text-area-field-rac-opBEx_8s.js +73 -0
- package/dist/component/{text-area-rac-BKGDa4E3.js → text-area-rac-D4iKhAqc.js} +1 -1
- package/dist/component/{text-input-field-rac-CU8eBRM4.js → text-input-field-rac-Ckp8Ierz.js} +6 -6
- package/dist/component/{text-input-headless-C1eFy2gl.js → text-input-headless-D-LXpqS3.js} +6 -6
- package/dist/component/{text-input-rac-DO0eI3ty.js → text-input-rac-ChxuJj-q.js} +1 -1
- package/dist/component/{time-input-rac-BJ0AL2Be.js → time-input-rac-C5_rEy7W.js} +23 -23
- package/dist/component/{url-input-field-rac-BtpAuKfp.js → url-input-field-rac-CBOnhquz.js} +22 -22
- package/dist/component/{url-input-rac-CjnPbcHt.js → url-input-rac-BY-BVg6r.js} +1 -1
- package/dist/component/use-dropdown-option-class-name-C1iEE28P.js +28 -0
- package/dist/component/{use-element-state-class-name-X08kIFhd.js → use-element-state-class-name--YLulmsU.js} +1 -1
- package/dist/component/{use-service-options-base-DfHhMveM.js → use-service-options-base-BNLFmnHJ.js} +3 -3
- package/dist/component/{use-text-input-class-name-BAuokapo.js → use-text-input-class-name-3Xp-hNDT.js} +4 -4
- package/dist/form.d.ts +3 -0
- package/package.json +3 -3
- package/dist/component/date-time-input-field-rac-mqea6CtW.js +0 -423
- package/dist/component/dropdown-field-headless-ShcoDfPa.js +0 -84
- package/dist/component/dropdown-field-rac-DruF_YdZ.js +0 -32
- package/dist/component/field-rac.module-D06m9T9x.js +0 -24
- package/dist/component/quiz-radio-group-rac-BhNhoOSI.js +0 -13
- package/dist/component/service-dropdown-rac-DQkk3SlS.js +0 -142
- package/dist/component/text-area-field-rac-BnRuG5y8.js +0 -73
package/dist/component/{date-picker-field-rac-Cl7ueVVn.js → date-picker-field-rac-ClNfMoR1.js}
RENAMED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { RicosViewer as G } from "@wix/ricos/viewer";
|
|
2
|
-
import
|
|
3
|
-
import e, { useState as
|
|
4
|
-
import { D,
|
|
2
|
+
import y from "classnames";
|
|
3
|
+
import e, { useState as z, useCallback as F, useContext as Q, useRef as L, useMemo as _ } from "react";
|
|
4
|
+
import { D, ak as v, ah as A, ac as S, am as Z } from "./form-B3YjGh0T.js";
|
|
5
5
|
import { parseDate as J } from "@internationalized/date";
|
|
6
6
|
import { UNSAFE_PortalProvider as X } from "react-aria";
|
|
7
|
-
import { I18nProvider as ee, DatePicker as te, DatePickerStateContext as re, Group as ae, DateInput as ne, DateSegment as oe, Dialog as le, Calendar as se, CalendarMonthPicker as ce, CalendarYearPicker as ie, CalendarGrid as me, CalendarCell as ue, Button as R, Select as O, SelectValue as x, ListBox as
|
|
7
|
+
import { I18nProvider as ee, DatePicker as te, DatePickerStateContext as re, Group as ae, DateInput as ne, DateSegment as oe, Dialog as le, Calendar as se, CalendarMonthPicker as ce, CalendarYearPicker as ie, CalendarGrid as me, CalendarCell as ue, Button as R, Select as O, SelectValue as x, ListBox as k, ListBoxItem as M } from "react-aria-components";
|
|
8
8
|
import { g as de } from "./get-first-day-of-the-week-DvnsxYhQ.js";
|
|
9
9
|
import { f as E, a as b } from "./find-child-C60k4CxG.js";
|
|
10
|
-
import { D as ge, E as Ee } from "./field-error-headless-
|
|
11
|
-
import { L as pe } from "./field-label-headless-
|
|
10
|
+
import { D as ge, E as Ee } from "./field-error-headless-9MKScovg.js";
|
|
11
|
+
import { L as pe } from "./field-label-headless-BaoLrUWJ.js";
|
|
12
12
|
import { D as De, N as I, S as w } from "./non-modal-popover-DtIMXHbe.js";
|
|
13
|
-
import { i as fe } from "./date-availability-
|
|
13
|
+
import { i as fe } from "./date-availability-DdMI-zNj.js";
|
|
14
14
|
import { C as N } from "./chevron-down-icon-CcpVm6B-.js";
|
|
15
|
-
import { E as
|
|
16
|
-
import { s as p } from "./field-rac.module-
|
|
17
|
-
import {
|
|
15
|
+
import { E as Ce } from "./error-icon-hZxQ6DEy.js";
|
|
16
|
+
import { s as p } from "./field-rac.module-BUvPquav.js";
|
|
17
|
+
import { B as ye, R as he, z as ve, D as Se, q as Te, i as be } from "./form-element-classes-CLZXu-91.js";
|
|
18
18
|
const _e = [
|
|
19
19
|
D.SUNDAY,
|
|
20
20
|
D.MONDAY,
|
|
@@ -26,15 +26,15 @@ const _e = [
|
|
|
26
26
|
], Ne = {
|
|
27
27
|
availableDays: _e
|
|
28
28
|
}, a = ({ children: t }) => {
|
|
29
|
-
const { id: r, value: n, onChange: l, disabled: i, required: c, onBlur: d, onFocus: o, FieldLayout: m, hasError: u, readOnly: f } = v(), { labelId:
|
|
30
|
-
const
|
|
31
|
-
l(
|
|
29
|
+
const { id: r, value: n, onChange: l, disabled: i, required: c, onBlur: d, onFocus: o, FieldLayout: m, hasError: u, readOnly: f } = v(), { labelId: C } = A(), { regionalFormat: s } = S(), [T, Y] = z(null), B = F((H) => {
|
|
30
|
+
const j = Me(H);
|
|
31
|
+
l(j);
|
|
32
32
|
}, [
|
|
33
33
|
l
|
|
34
|
-
]),
|
|
34
|
+
]), q = E(t, a.Label), V = E(t, a.Control), U = E(t, a.Calendar), W = E(t, a.Description), K = E(t, a.Error), $ = ke(n);
|
|
35
35
|
return /* @__PURE__ */ e.createElement(m, {
|
|
36
36
|
fieldId: r,
|
|
37
|
-
renderLabel: () =>
|
|
37
|
+
renderLabel: () => q,
|
|
38
38
|
renderInput: () => /* @__PURE__ */ e.createElement(ee, {
|
|
39
39
|
locale: s
|
|
40
40
|
}, /* @__PURE__ */ e.createElement("div", {
|
|
@@ -45,7 +45,7 @@ const _e = [
|
|
|
45
45
|
}), /* @__PURE__ */ e.createElement(X, {
|
|
46
46
|
getContainer: () => T
|
|
47
47
|
}, /* @__PURE__ */ e.createElement(te, {
|
|
48
|
-
"aria-labelledby":
|
|
48
|
+
"aria-labelledby": C,
|
|
49
49
|
value: $,
|
|
50
50
|
onChange: B,
|
|
51
51
|
isDisabled: i,
|
|
@@ -54,18 +54,18 @@ const _e = [
|
|
|
54
54
|
isRequired: c,
|
|
55
55
|
onBlur: d,
|
|
56
56
|
onFocus: o
|
|
57
|
-
},
|
|
57
|
+
}, V, U))),
|
|
58
58
|
renderDescription: () => /* @__PURE__ */ e.createElement(e.Fragment, null, K, W)
|
|
59
59
|
});
|
|
60
60
|
}, Ie = ({ children: t, className: r }) => {
|
|
61
|
-
const { inputId: n, ariaDescribedBy: l } = A(), { hasError: i, disabled: c, readOnly: d } = v(), o =
|
|
61
|
+
const { inputId: n, ariaDescribedBy: l } = A(), { hasError: i, disabled: c, readOnly: d } = v(), o = Q(re), m = F((u) => {
|
|
62
62
|
if (!o || o.isOpen || c || d)
|
|
63
63
|
return;
|
|
64
64
|
const f = u.target;
|
|
65
65
|
if (f.closest("button"))
|
|
66
66
|
return;
|
|
67
|
-
const
|
|
68
|
-
|
|
67
|
+
const C = f.closest("[data-type]");
|
|
68
|
+
C && C.getAttribute("data-type") !== "literal" || o.setOpen(!0);
|
|
69
69
|
}, [
|
|
70
70
|
o,
|
|
71
71
|
c,
|
|
@@ -80,7 +80,7 @@ const _e = [
|
|
|
80
80
|
}, t);
|
|
81
81
|
}, Le = ({ className: t }) => {
|
|
82
82
|
const { id: r, placeholder: n } = v(), { regionalFormat: l } = S(), i = L(null), c = L(!1);
|
|
83
|
-
|
|
83
|
+
Z(() => {
|
|
84
84
|
var o;
|
|
85
85
|
(o = i.current) == null || o.focus();
|
|
86
86
|
}, r);
|
|
@@ -116,7 +116,7 @@ const _e = [
|
|
|
116
116
|
return !fe(T, i || Ne);
|
|
117
117
|
}, [
|
|
118
118
|
i
|
|
119
|
-
]), o = E(t, g.Day) ?? /* @__PURE__ */ e.createElement(g.Day, null), m = E(t, g.PreviousTrigger), u = E(t, g.NextTrigger), f = E(t, g.MonthTrigger),
|
|
119
|
+
]), o = E(t, g.Day) ?? /* @__PURE__ */ e.createElement(g.Day, null), m = E(t, g.PreviousTrigger), u = E(t, g.NextTrigger), f = E(t, g.MonthTrigger), C = E(t, g.YearTrigger);
|
|
120
120
|
return /* @__PURE__ */ e.createElement(I, {
|
|
121
121
|
className: r,
|
|
122
122
|
containerPadding: 0
|
|
@@ -131,7 +131,7 @@ const _e = [
|
|
|
131
131
|
popoverClassName: r
|
|
132
132
|
})), /* @__PURE__ */ e.createElement(ie, {
|
|
133
133
|
visibleYears: 100
|
|
134
|
-
}, (s) => b(
|
|
134
|
+
}, (s) => b(C, {
|
|
135
135
|
ariaLabel: s["aria-label"],
|
|
136
136
|
selectedKey: s.value,
|
|
137
137
|
onSelectionChange: s.onChange,
|
|
@@ -165,9 +165,9 @@ const _e = [
|
|
|
165
165
|
}, /* @__PURE__ */ e.createElement(x, null), t), /* @__PURE__ */ e.createElement(I, {
|
|
166
166
|
className: o,
|
|
167
167
|
containerPadding: 0
|
|
168
|
-
}, /* @__PURE__ */ e.createElement(
|
|
168
|
+
}, /* @__PURE__ */ e.createElement(k, {
|
|
169
169
|
items: d
|
|
170
|
-
}, (m) => /* @__PURE__ */ e.createElement(
|
|
170
|
+
}, (m) => /* @__PURE__ */ e.createElement(M, {
|
|
171
171
|
id: m.id
|
|
172
172
|
}, m.formatted))));
|
|
173
173
|
}, xe = ({ children: t, className: r, ...n }) => {
|
|
@@ -181,9 +181,9 @@ const _e = [
|
|
|
181
181
|
}, /* @__PURE__ */ e.createElement(x, null), t), /* @__PURE__ */ e.createElement(I, {
|
|
182
182
|
className: o,
|
|
183
183
|
containerPadding: 0
|
|
184
|
-
}, /* @__PURE__ */ e.createElement(
|
|
184
|
+
}, /* @__PURE__ */ e.createElement(k, {
|
|
185
185
|
items: d
|
|
186
|
-
}, (m) => /* @__PURE__ */ e.createElement(
|
|
186
|
+
}, (m) => /* @__PURE__ */ e.createElement(M, {
|
|
187
187
|
id: m.id
|
|
188
188
|
}, m.formatted))));
|
|
189
189
|
};
|
|
@@ -199,7 +199,7 @@ a.Trigger = Pe;
|
|
|
199
199
|
a.Calendar = g;
|
|
200
200
|
a.Description = ge;
|
|
201
201
|
a.Error = Ee;
|
|
202
|
-
function
|
|
202
|
+
function ke(t) {
|
|
203
203
|
if (!t)
|
|
204
204
|
return null;
|
|
205
205
|
try {
|
|
@@ -208,7 +208,7 @@ function Me(t) {
|
|
|
208
208
|
return null;
|
|
209
209
|
}
|
|
210
210
|
}
|
|
211
|
-
function
|
|
211
|
+
function Me(t) {
|
|
212
212
|
if (!t)
|
|
213
213
|
return null;
|
|
214
214
|
const r = String(t.year).padStart(4, "0"), n = String(t.month).padStart(2, "0"), l = String(t.day).padStart(2, "0");
|
|
@@ -250,37 +250,37 @@ const Be = (t) => /* @__PURE__ */ e.createElement("svg", {
|
|
|
250
250
|
strokeWidth: "1.5",
|
|
251
251
|
strokeLinecap: "round",
|
|
252
252
|
strokeLinejoin: "round"
|
|
253
|
-
})),
|
|
254
|
-
control:
|
|
255
|
-
segments:
|
|
253
|
+
})), qe = "_control_1xqv5_1", Ve = "_segments_1xqv5_14", Ue = "_trigger_1xqv5_65", We = "_calendarPopover_1xqv5_96", Ke = "_calendarDay_1xqv5_219", $e = "_mobile_1xqv5_262", h = {
|
|
254
|
+
control: qe,
|
|
255
|
+
segments: Ve,
|
|
256
256
|
trigger: Ue,
|
|
257
257
|
calendarPopover: We,
|
|
258
258
|
calendarDay: Ke,
|
|
259
259
|
mobile: $e
|
|
260
|
-
},
|
|
260
|
+
}, He = ({ content: t, locale: r }) => /* @__PURE__ */ e.createElement(G, {
|
|
261
261
|
content: t,
|
|
262
262
|
locale: r
|
|
263
|
-
}),
|
|
263
|
+
}), je = {
|
|
264
264
|
left: 90,
|
|
265
265
|
right: -90
|
|
266
266
|
}, P = ({ direction: t }) => /* @__PURE__ */ e.createElement(N, {
|
|
267
267
|
style: {
|
|
268
|
-
transform: `rotate(${
|
|
268
|
+
transform: `rotate(${je[t]}deg)`
|
|
269
269
|
}
|
|
270
270
|
}), ut = () => {
|
|
271
271
|
const { isMobile: t } = S();
|
|
272
272
|
return /* @__PURE__ */ e.createElement(a, null, /* @__PURE__ */ e.createElement(a.Label, {
|
|
273
|
-
className:
|
|
273
|
+
className: y(ye, p.label)
|
|
274
274
|
}, /* @__PURE__ */ e.createElement(a.Label.Required, {
|
|
275
|
-
className:
|
|
275
|
+
className: y(he, p.requiredMark)
|
|
276
276
|
})), /* @__PURE__ */ e.createElement(a.Control, {
|
|
277
|
-
className:
|
|
277
|
+
className: y(ve, p.input, h.control)
|
|
278
278
|
}, /* @__PURE__ */ e.createElement(a.Trigger, {
|
|
279
279
|
className: h.trigger
|
|
280
280
|
}, /* @__PURE__ */ e.createElement(Be, null)), /* @__PURE__ */ e.createElement(a.Input, {
|
|
281
281
|
className: h.segments
|
|
282
282
|
})), /* @__PURE__ */ e.createElement(a.Calendar, {
|
|
283
|
-
className:
|
|
283
|
+
className: y(Se, p.selectPopover, h.calendarPopover, {
|
|
284
284
|
[h.mobile]: t
|
|
285
285
|
})
|
|
286
286
|
}, /* @__PURE__ */ e.createElement(a.Calendar.PreviousTrigger, null, /* @__PURE__ */ e.createElement(P, {
|
|
@@ -294,10 +294,10 @@ const Be = (t) => /* @__PURE__ */ e.createElement("svg", {
|
|
|
294
294
|
})), /* @__PURE__ */ e.createElement(a.Calendar.Day, {
|
|
295
295
|
className: h.calendarDay
|
|
296
296
|
})), /* @__PURE__ */ e.createElement(a.Error, {
|
|
297
|
-
className:
|
|
298
|
-
}, /* @__PURE__ */ e.createElement(
|
|
299
|
-
className:
|
|
300
|
-
},
|
|
297
|
+
className: y(Te, p.error)
|
|
298
|
+
}, /* @__PURE__ */ e.createElement(Ce, null), /* @__PURE__ */ e.createElement(a.Error.Text, null)), /* @__PURE__ */ e.createElement(a.Description, {
|
|
299
|
+
className: y(be, p.description)
|
|
300
|
+
}, He));
|
|
301
301
|
};
|
|
302
302
|
export {
|
|
303
303
|
ut as D
|
|
@@ -0,0 +1,424 @@
|
|
|
1
|
+
import { RicosViewer as ne } from "@wix/ricos/viewer";
|
|
2
|
+
import p from "classnames";
|
|
3
|
+
import t, { useMemo as L, useState as G, useCallback as w, useRef as U, useContext as re } from "react";
|
|
4
|
+
import { ak as g, ah as j, ac as x, K as J, a2 as W, s as d, au as O, a6 as K, Q as se, y as oe, a9 as le, z as Q, am as q } from "./form-B3YjGh0T.js";
|
|
5
|
+
import { parseTime as ie } from "@internationalized/date";
|
|
6
|
+
import { UNSAFE_PortalProvider as ce } from "react-aria";
|
|
7
|
+
import { ListBoxItem as me, ListBox as de, Select as ue, TextField as X, TimeField as pe, SelectValue as Ee, Input as Z, DateInput as fe, DateSegment as k, TimeFieldStateContext as he } from "react-aria-components";
|
|
8
|
+
import { f as u, a as S } from "./find-child-C60k4CxG.js";
|
|
9
|
+
import { g as be } from "./helpers-HmkkXrh2.js";
|
|
10
|
+
import { D as ge, E as Ie } from "./field-error-headless-9MKScovg.js";
|
|
11
|
+
import { L as _e } from "./field-label-headless-BaoLrUWJ.js";
|
|
12
|
+
import { F as Ne } from "./fieldset-headless-CD3fds9J.js";
|
|
13
|
+
import { N as De, S as ye } from "./non-modal-popover-DtIMXHbe.js";
|
|
14
|
+
import { C as Te } from "./chevron-down-icon-CcpVm6B-.js";
|
|
15
|
+
import { E as Le } from "./error-icon-hZxQ6DEy.js";
|
|
16
|
+
import { H } from "./custom-focus-class-_483Pkwp.js";
|
|
17
|
+
import { s as b } from "./field-rac.module-BUvPquav.js";
|
|
18
|
+
import { B as v, R as Oe, z as Ce, D as Fe, q as Pe, i as Me } from "./form-element-classes-CLZXu-91.js";
|
|
19
|
+
import { g as ve } from "./use-dropdown-option-class-name-C1iEE28P.js";
|
|
20
|
+
import { u as z } from "./use-text-input-class-name-3Xp-hNDT.js";
|
|
21
|
+
const l = ({ children: e, className: a }) => {
|
|
22
|
+
const { id: n, required: r, onBlur: o, onFocus: s, FieldLayout: i } = g(), { inputId: m, labelId: c, ariaDescribedBy: f } = j(), { regionalFormat: h } = x(), N = L(() => J(h).filter(W).map((M) => M.toUpperCase()), [
|
|
23
|
+
h
|
|
24
|
+
]), P = u(e, l.Label), V = u(e, l.Description), T = u(e, l.Error), _ = {
|
|
25
|
+
[d.MONTH]: u(e, l.Month),
|
|
26
|
+
[d.DAY]: u(e, l.Day),
|
|
27
|
+
[d.YEAR]: u(e, l.Year)
|
|
28
|
+
}, D = u(e, l.Time);
|
|
29
|
+
return /* @__PURE__ */ t.createElement(i, {
|
|
30
|
+
fieldId: n,
|
|
31
|
+
renderLabel: () => S(P, {
|
|
32
|
+
as: "div"
|
|
33
|
+
}),
|
|
34
|
+
renderInput: () => /* @__PURE__ */ t.createElement(Ne, {
|
|
35
|
+
id: m,
|
|
36
|
+
ariaLabelledBy: c,
|
|
37
|
+
ariaDescribedBy: f,
|
|
38
|
+
required: r,
|
|
39
|
+
onBlur: o,
|
|
40
|
+
onFocus: s,
|
|
41
|
+
className: a
|
|
42
|
+
}, _[N[0]], _[N[1]], _[N[2]], D),
|
|
43
|
+
renderDescription: () => /* @__PURE__ */ t.createElement(t.Fragment, null, T, V)
|
|
44
|
+
});
|
|
45
|
+
}, C = ({ children: e, className: a }) => {
|
|
46
|
+
const { disabled: n, readOnly: r, showDateLabels: o, hidePlaceholder: s } = g(), { labelId: i } = y(d.MONTH), { partValue: m, partError: c, onPartChange: f } = F(d.MONTH), { t: h } = O(), [N, P] = G(!1), [V, T] = G(null), _ = s ? void 0 : h("field.date.placeholder.month"), D = w((Y) => {
|
|
47
|
+
r || f(typeof Y == "string" ? Y : "");
|
|
48
|
+
}, [
|
|
49
|
+
f,
|
|
50
|
+
r
|
|
51
|
+
]), M = w((Y) => {
|
|
52
|
+
P(Y && !r);
|
|
53
|
+
}, [
|
|
54
|
+
r
|
|
55
|
+
]), ee = u(e, C.Label), te = u(e, C.Trigger), ae = u(e, C.Options);
|
|
56
|
+
return /* @__PURE__ */ t.createElement("div", {
|
|
57
|
+
className: a,
|
|
58
|
+
"data-date-field": !0
|
|
59
|
+
}, o ? ee : null, /* @__PURE__ */ t.createElement("div", {
|
|
60
|
+
ref: T,
|
|
61
|
+
style: {
|
|
62
|
+
display: "contents"
|
|
63
|
+
}
|
|
64
|
+
}), /* @__PURE__ */ t.createElement(ce, {
|
|
65
|
+
getContainer: () => V
|
|
66
|
+
}, /* @__PURE__ */ t.createElement(ue, {
|
|
67
|
+
"aria-labelledby": o ? i : void 0,
|
|
68
|
+
value: m || null,
|
|
69
|
+
onChange: D,
|
|
70
|
+
isDisabled: n,
|
|
71
|
+
isInvalid: c,
|
|
72
|
+
placeholder: _,
|
|
73
|
+
isOpen: N,
|
|
74
|
+
onOpenChange: M
|
|
75
|
+
}, te, ae)));
|
|
76
|
+
}, Se = ({ className: e }) => /* @__PURE__ */ t.createElement($, {
|
|
77
|
+
datePart: d.MONTH,
|
|
78
|
+
className: e
|
|
79
|
+
}), Re = ({ children: e, className: a }) => {
|
|
80
|
+
const { id: n, readOnly: r } = g(), { inputId: o } = y(d.MONTH), { partError: s, isFirstPart: i } = F(d.MONTH), m = U(null);
|
|
81
|
+
return q(() => {
|
|
82
|
+
var c;
|
|
83
|
+
i && ((c = m.current) == null || c.focus());
|
|
84
|
+
}, n), /* @__PURE__ */ t.createElement(ye, {
|
|
85
|
+
ref: m,
|
|
86
|
+
id: o,
|
|
87
|
+
className: a,
|
|
88
|
+
"data-hook": d.MONTH,
|
|
89
|
+
"data-invalid": s || void 0,
|
|
90
|
+
"data-readonly": r || void 0
|
|
91
|
+
}, /* @__PURE__ */ t.createElement(Ee, null), e);
|
|
92
|
+
}, B = ({ children: e, className: a }) => {
|
|
93
|
+
const { language: n } = x(), r = L(() => be(n), [
|
|
94
|
+
n
|
|
95
|
+
]), o = u(e, B.Option) ?? /* @__PURE__ */ t.createElement(B.Option, null);
|
|
96
|
+
return /* @__PURE__ */ t.createElement(De, {
|
|
97
|
+
className: a,
|
|
98
|
+
containerPadding: 0,
|
|
99
|
+
offset: 0
|
|
100
|
+
}, /* @__PURE__ */ t.createElement(de, null, r.map((s, i) => S(o, {
|
|
101
|
+
key: String(i + 1),
|
|
102
|
+
value: String(i + 1),
|
|
103
|
+
label: s
|
|
104
|
+
}))));
|
|
105
|
+
}, Ae = ({ className: e, ...a }) => {
|
|
106
|
+
const { value: n, label: r } = a;
|
|
107
|
+
return /* @__PURE__ */ t.createElement(me, {
|
|
108
|
+
className: e,
|
|
109
|
+
id: n,
|
|
110
|
+
textValue: r
|
|
111
|
+
}, r);
|
|
112
|
+
};
|
|
113
|
+
C.Label = Se;
|
|
114
|
+
C.Trigger = Re;
|
|
115
|
+
C.Options = B;
|
|
116
|
+
B.Option = Ae;
|
|
117
|
+
const R = ({ children: e, className: a }) => {
|
|
118
|
+
const { disabled: n, readOnly: r, showDateLabels: o } = g(), { labelId: s } = y(d.DAY), { partValue: i, partError: m, onPartChange: c } = F(d.DAY), f = u(e, R.Label), h = u(e, R.Input);
|
|
119
|
+
return /* @__PURE__ */ t.createElement("div", {
|
|
120
|
+
className: a,
|
|
121
|
+
"data-date-field": !0
|
|
122
|
+
}, o && f, /* @__PURE__ */ t.createElement(X, {
|
|
123
|
+
"aria-labelledby": o ? s : void 0,
|
|
124
|
+
value: i,
|
|
125
|
+
onChange: c,
|
|
126
|
+
isDisabled: n,
|
|
127
|
+
isReadOnly: r,
|
|
128
|
+
isInvalid: m
|
|
129
|
+
}, h));
|
|
130
|
+
}, Ve = ({ className: e }) => /* @__PURE__ */ t.createElement($, {
|
|
131
|
+
datePart: d.DAY,
|
|
132
|
+
className: e
|
|
133
|
+
}), Ye = ({ className: e }) => {
|
|
134
|
+
const { id: a, hidePlaceholder: n } = g(), { inputId: r } = y(d.DAY), { isFirstPart: o } = F(d.DAY), { t: s } = O(), i = U(null), m = n ? void 0 : s("field.date.placeholder.day");
|
|
135
|
+
return q(() => {
|
|
136
|
+
var c;
|
|
137
|
+
o && ((c = i.current) == null || c.focus());
|
|
138
|
+
}, a), /* @__PURE__ */ t.createElement(Z, {
|
|
139
|
+
ref: i,
|
|
140
|
+
id: r,
|
|
141
|
+
className: e,
|
|
142
|
+
placeholder: m,
|
|
143
|
+
maxLength: 2,
|
|
144
|
+
inputMode: "numeric",
|
|
145
|
+
"data-hook": d.DAY
|
|
146
|
+
});
|
|
147
|
+
};
|
|
148
|
+
R.Label = Ve;
|
|
149
|
+
R.Input = Ye;
|
|
150
|
+
const A = ({ children: e, className: a }) => {
|
|
151
|
+
const { disabled: n, readOnly: r, showDateLabels: o } = g(), { labelId: s } = y(d.YEAR), { partValue: i, partError: m, onPartChange: c } = F(d.YEAR), f = u(e, A.Label), h = u(e, A.Input);
|
|
152
|
+
return /* @__PURE__ */ t.createElement("div", {
|
|
153
|
+
className: a,
|
|
154
|
+
"data-date-field": !0
|
|
155
|
+
}, o && f, /* @__PURE__ */ t.createElement(X, {
|
|
156
|
+
"aria-labelledby": o ? s : void 0,
|
|
157
|
+
value: i,
|
|
158
|
+
onChange: c,
|
|
159
|
+
isDisabled: n,
|
|
160
|
+
isReadOnly: r,
|
|
161
|
+
isInvalid: m
|
|
162
|
+
}, h));
|
|
163
|
+
}, He = ({ className: e }) => /* @__PURE__ */ t.createElement($, {
|
|
164
|
+
datePart: d.YEAR,
|
|
165
|
+
className: e
|
|
166
|
+
}), we = ({ className: e }) => {
|
|
167
|
+
const { id: a, hidePlaceholder: n } = g(), { inputId: r } = y(d.YEAR), { isFirstPart: o } = F(d.YEAR), { t: s } = O(), i = U(null), m = n ? void 0 : s("field.date.placeholder.year");
|
|
168
|
+
return q(() => {
|
|
169
|
+
var c;
|
|
170
|
+
o && ((c = i.current) == null || c.focus());
|
|
171
|
+
}, a), /* @__PURE__ */ t.createElement(Z, {
|
|
172
|
+
ref: i,
|
|
173
|
+
id: r,
|
|
174
|
+
className: e,
|
|
175
|
+
placeholder: m,
|
|
176
|
+
maxLength: 4,
|
|
177
|
+
inputMode: "numeric",
|
|
178
|
+
"data-hook": d.YEAR
|
|
179
|
+
});
|
|
180
|
+
};
|
|
181
|
+
A.Label = He;
|
|
182
|
+
A.Input = we;
|
|
183
|
+
const I = ({ children: e, className: a }) => {
|
|
184
|
+
const { disabled: n, readOnly: r, use24HourFormat: o, showDateLabels: s } = g(), { labelId: i } = y("time"), { partValue: m, partError: c, onPartChange: f } = F("time"), h = u(e, I.Label), N = u(e, I.Input);
|
|
185
|
+
return /* @__PURE__ */ t.createElement("div", {
|
|
186
|
+
className: a,
|
|
187
|
+
"data-date-field": !0
|
|
188
|
+
}, s && h, /* @__PURE__ */ t.createElement(pe, {
|
|
189
|
+
"aria-labelledby": s ? i : void 0,
|
|
190
|
+
value: m,
|
|
191
|
+
onChange: f,
|
|
192
|
+
isDisabled: n,
|
|
193
|
+
isReadOnly: r,
|
|
194
|
+
isInvalid: c,
|
|
195
|
+
hourCycle: o ? 24 : 12
|
|
196
|
+
}, N));
|
|
197
|
+
}, Be = ({ className: e }) => {
|
|
198
|
+
const { inputId: a, labelId: n } = y("time"), { t: r } = O(), o = r("field.date.label.time");
|
|
199
|
+
return /* @__PURE__ */ t.createElement("label", {
|
|
200
|
+
id: n,
|
|
201
|
+
htmlFor: a,
|
|
202
|
+
className: e
|
|
203
|
+
}, o);
|
|
204
|
+
}, xe = ({ children: e, className: a }) => {
|
|
205
|
+
const n = u(e, I.Hour), r = u(e, I.Minute), o = u(e, I.Period);
|
|
206
|
+
return /* @__PURE__ */ t.createElement(fe, {
|
|
207
|
+
className: a,
|
|
208
|
+
"data-hook": "time"
|
|
209
|
+
}, (s) => {
|
|
210
|
+
switch (s.type) {
|
|
211
|
+
case "hour":
|
|
212
|
+
return S(n, {
|
|
213
|
+
segment: s
|
|
214
|
+
}) || /* @__PURE__ */ t.createElement(t.Fragment, null);
|
|
215
|
+
case "minute":
|
|
216
|
+
return S(r, {
|
|
217
|
+
segment: s
|
|
218
|
+
}) || /* @__PURE__ */ t.createElement(t.Fragment, null);
|
|
219
|
+
case "dayPeriod":
|
|
220
|
+
return S(o, {
|
|
221
|
+
segment: s
|
|
222
|
+
}) || /* @__PURE__ */ t.createElement(t.Fragment, null);
|
|
223
|
+
case "literal":
|
|
224
|
+
return /* @__PURE__ */ t.createElement(k, {
|
|
225
|
+
segment: s
|
|
226
|
+
});
|
|
227
|
+
default:
|
|
228
|
+
return /* @__PURE__ */ t.createElement(t.Fragment, null);
|
|
229
|
+
}
|
|
230
|
+
});
|
|
231
|
+
}, ke = ({ className: e, ...a }) => {
|
|
232
|
+
const { hidePlaceholder: n } = g(), { segment: r } = a, { t: o } = O(), s = n ? void 0 : o("field.date.placeholder.hour");
|
|
233
|
+
return /* @__PURE__ */ t.createElement(k, {
|
|
234
|
+
segment: r,
|
|
235
|
+
className: e,
|
|
236
|
+
...s && {
|
|
237
|
+
placeholder: s
|
|
238
|
+
}
|
|
239
|
+
});
|
|
240
|
+
}, ze = ({ className: e, ...a }) => {
|
|
241
|
+
const { hidePlaceholder: n } = g(), { segment: r } = a, { t: o } = O(), s = n ? void 0 : o("field.date.placeholder.minute");
|
|
242
|
+
return /* @__PURE__ */ t.createElement(k, {
|
|
243
|
+
segment: r,
|
|
244
|
+
className: e,
|
|
245
|
+
...s && {
|
|
246
|
+
placeholder: s
|
|
247
|
+
}
|
|
248
|
+
});
|
|
249
|
+
}, Ue = ({ className: e, ...a }) => {
|
|
250
|
+
const { hidePlaceholder: n } = g(), { segment: r } = a, { t: o } = O(), s = re(he), i = n ? void 0 : o("field.date.placeholder.period"), m = () => s == null ? void 0 : s.increment("dayPeriod");
|
|
251
|
+
return /* @__PURE__ */ t.createElement(k, {
|
|
252
|
+
segment: r,
|
|
253
|
+
className: e,
|
|
254
|
+
onClick: m,
|
|
255
|
+
...i && {
|
|
256
|
+
placeholder: i
|
|
257
|
+
}
|
|
258
|
+
});
|
|
259
|
+
};
|
|
260
|
+
I.Label = Be;
|
|
261
|
+
I.Input = xe;
|
|
262
|
+
I.Hour = ke;
|
|
263
|
+
I.Minute = ze;
|
|
264
|
+
I.Period = Ue;
|
|
265
|
+
l.Label = _e;
|
|
266
|
+
l.Month = C;
|
|
267
|
+
l.Day = R;
|
|
268
|
+
l.Year = A;
|
|
269
|
+
l.Time = I;
|
|
270
|
+
l.Description = ge;
|
|
271
|
+
l.Error = Ie;
|
|
272
|
+
function y(e) {
|
|
273
|
+
const { inputId: a } = j();
|
|
274
|
+
return L(() => {
|
|
275
|
+
const n = e.toLowerCase();
|
|
276
|
+
return {
|
|
277
|
+
inputId: `${a}-${n}-input`,
|
|
278
|
+
labelId: `${a}-${n}-label`
|
|
279
|
+
};
|
|
280
|
+
}, [
|
|
281
|
+
a,
|
|
282
|
+
e
|
|
283
|
+
]);
|
|
284
|
+
}
|
|
285
|
+
function F(e) {
|
|
286
|
+
const { value: a, onChange: n, hasError: r = !1 } = g(), { regionalFormat: o } = x(), [s, i] = L(() => K(a ?? ""), [
|
|
287
|
+
a
|
|
288
|
+
]), m = L(() => se(r, a ?? ""), [
|
|
289
|
+
a,
|
|
290
|
+
r
|
|
291
|
+
]), c = L(() => oe(s), [
|
|
292
|
+
s
|
|
293
|
+
]), f = L(() => qe(i), [
|
|
294
|
+
i
|
|
295
|
+
]), h = w((T) => {
|
|
296
|
+
const _ = $e(T), D = Q(s, _);
|
|
297
|
+
n(D);
|
|
298
|
+
}, [
|
|
299
|
+
n,
|
|
300
|
+
s
|
|
301
|
+
]), N = w((T) => {
|
|
302
|
+
const [, _] = K(a ?? ""), D = le(T, e, c), M = Q(D, _);
|
|
303
|
+
n(M);
|
|
304
|
+
}, [
|
|
305
|
+
n,
|
|
306
|
+
a,
|
|
307
|
+
c,
|
|
308
|
+
e
|
|
309
|
+
]), P = L(() => e === "time" ? !1 : J(o).filter(W).map((D) => D.toUpperCase())[0] === e, [
|
|
310
|
+
o,
|
|
311
|
+
e
|
|
312
|
+
]);
|
|
313
|
+
return e === "time" ? {
|
|
314
|
+
partValue: f,
|
|
315
|
+
partError: m.TIME,
|
|
316
|
+
onPartChange: h,
|
|
317
|
+
isFirstPart: !1
|
|
318
|
+
} : {
|
|
319
|
+
partValue: c[e] || "",
|
|
320
|
+
partError: m[e],
|
|
321
|
+
onPartChange: N,
|
|
322
|
+
isFirstPart: P
|
|
323
|
+
};
|
|
324
|
+
}
|
|
325
|
+
function $({ datePart: e, className: a }) {
|
|
326
|
+
const { inputId: n, labelId: r } = y(e), { t: o } = O(), s = `field.date.label.${e.toLowerCase()}`, i = o(s);
|
|
327
|
+
return /* @__PURE__ */ t.createElement("label", {
|
|
328
|
+
id: r,
|
|
329
|
+
htmlFor: n,
|
|
330
|
+
className: a
|
|
331
|
+
}, i);
|
|
332
|
+
}
|
|
333
|
+
function qe(e) {
|
|
334
|
+
if (!e)
|
|
335
|
+
return null;
|
|
336
|
+
try {
|
|
337
|
+
return ie(e);
|
|
338
|
+
} catch {
|
|
339
|
+
return null;
|
|
340
|
+
}
|
|
341
|
+
}
|
|
342
|
+
function $e(e) {
|
|
343
|
+
if (!e)
|
|
344
|
+
return null;
|
|
345
|
+
const a = String(e.hour).padStart(2, "0"), n = String(e.minute).padStart(2, "0"), r = String(e.second).padStart(2, "0");
|
|
346
|
+
return [
|
|
347
|
+
a,
|
|
348
|
+
n,
|
|
349
|
+
r
|
|
350
|
+
].join(":");
|
|
351
|
+
}
|
|
352
|
+
const Ge = "_fields_1svr5_1", Ke = "_month_1svr5_10", Qe = "_day_1svr5_11", je = "_year_1svr5_12", Je = "_timeGroup_1svr5_13", We = "_mobile_1svr5_32", Xe = "_dayInput_1svr5_45", Ze = "_yearInput_1svr5_46", et = "_monthTrigger_1svr5_50", tt = "_monthOption_1svr5_70", at = "_time_1svr5_13", nt = "_hour_1svr5_89", rt = "_minute_1svr5_90", st = "_period_1svr5_91", E = {
|
|
353
|
+
fields: Ge,
|
|
354
|
+
month: Ke,
|
|
355
|
+
day: Qe,
|
|
356
|
+
year: je,
|
|
357
|
+
timeGroup: Je,
|
|
358
|
+
mobile: We,
|
|
359
|
+
dayInput: Xe,
|
|
360
|
+
yearInput: Ze,
|
|
361
|
+
monthTrigger: et,
|
|
362
|
+
monthOption: tt,
|
|
363
|
+
time: at,
|
|
364
|
+
hour: nt,
|
|
365
|
+
minute: rt,
|
|
366
|
+
period: st
|
|
367
|
+
}, ot = ({ content: e, locale: a }) => /* @__PURE__ */ t.createElement(ne, {
|
|
368
|
+
content: e,
|
|
369
|
+
locale: a
|
|
370
|
+
}), Ct = () => {
|
|
371
|
+
const e = ve(E.monthOption, H), { isMobile: a } = x(), n = z(E.dayInput), r = z(E.yearInput), o = z(E.time);
|
|
372
|
+
return /* @__PURE__ */ t.createElement(l, {
|
|
373
|
+
className: p(E.fields, {
|
|
374
|
+
[E.mobile]: a
|
|
375
|
+
})
|
|
376
|
+
}, /* @__PURE__ */ t.createElement(l.Label, {
|
|
377
|
+
className: p(v, b.label)
|
|
378
|
+
}, /* @__PURE__ */ t.createElement(l.Label.Required, {
|
|
379
|
+
className: p(Oe, b.requiredMark)
|
|
380
|
+
})), /* @__PURE__ */ t.createElement(l.Month, {
|
|
381
|
+
className: E.month
|
|
382
|
+
}, /* @__PURE__ */ t.createElement(l.Month.Label, {
|
|
383
|
+
className: p(v, b.label)
|
|
384
|
+
}), /* @__PURE__ */ t.createElement(l.Month.Trigger, {
|
|
385
|
+
className: p(Ce, b.input, E.monthTrigger)
|
|
386
|
+
}, /* @__PURE__ */ t.createElement(Te, {
|
|
387
|
+
className: b.dropdownIcon
|
|
388
|
+
})), /* @__PURE__ */ t.createElement(l.Month.Options, {
|
|
389
|
+
className: p(Fe, b.selectPopover, b.dropdownPopover)
|
|
390
|
+
}, /* @__PURE__ */ t.createElement(l.Month.Options.Option, {
|
|
391
|
+
className: e
|
|
392
|
+
}))), /* @__PURE__ */ t.createElement(l.Day, {
|
|
393
|
+
className: E.day
|
|
394
|
+
}, /* @__PURE__ */ t.createElement(l.Day.Label, {
|
|
395
|
+
className: p(v, b.label)
|
|
396
|
+
}), /* @__PURE__ */ t.createElement(l.Day.Input, {
|
|
397
|
+
className: n
|
|
398
|
+
})), /* @__PURE__ */ t.createElement(l.Year, {
|
|
399
|
+
className: E.year
|
|
400
|
+
}, /* @__PURE__ */ t.createElement(l.Year.Label, {
|
|
401
|
+
className: p(v, b.label)
|
|
402
|
+
}), /* @__PURE__ */ t.createElement(l.Year.Input, {
|
|
403
|
+
className: r
|
|
404
|
+
})), /* @__PURE__ */ t.createElement(l.Time, {
|
|
405
|
+
className: E.timeGroup
|
|
406
|
+
}, /* @__PURE__ */ t.createElement(l.Time.Label, {
|
|
407
|
+
className: p(v, b.label)
|
|
408
|
+
}), /* @__PURE__ */ t.createElement(l.Time.Input, {
|
|
409
|
+
className: o
|
|
410
|
+
}, /* @__PURE__ */ t.createElement(l.Time.Hour, {
|
|
411
|
+
className: p(E.hour, H)
|
|
412
|
+
}), /* @__PURE__ */ t.createElement(l.Time.Minute, {
|
|
413
|
+
className: p(E.minute, H)
|
|
414
|
+
}), /* @__PURE__ */ t.createElement(l.Time.Period, {
|
|
415
|
+
className: p(E.period, H)
|
|
416
|
+
}))), /* @__PURE__ */ t.createElement(l.Error, {
|
|
417
|
+
className: p(Pe, b.error)
|
|
418
|
+
}, /* @__PURE__ */ t.createElement(Le, null), /* @__PURE__ */ t.createElement(l.Error.Text, null)), /* @__PURE__ */ t.createElement(l.Description, {
|
|
419
|
+
className: p(Me, b.description)
|
|
420
|
+
}, ot));
|
|
421
|
+
};
|
|
422
|
+
export {
|
|
423
|
+
Ct as D
|
|
424
|
+
};
|
package/dist/component/{dext-checkbox-group-rac-DNXYnHDM.js → dext-checkbox-group-rac-CBj9Y7Tp.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import o from "react";
|
|
2
|
-
import {
|
|
3
|
-
import { C as p } from "./checkbox-group-field-rac-
|
|
2
|
+
import { ak as e, h as t } from "./form-B3YjGh0T.js";
|
|
3
|
+
import { C as p } from "./checkbox-group-field-rac-CeFUt2Nr.js";
|
|
4
4
|
import { D as s } from "./default-limits-D7qVv_Hv.js";
|
|
5
5
|
const C = () => {
|
|
6
6
|
const r = {
|