@wix/form-elements 1.160.0 → 1.162.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/component/{appointment-rac-BmHu56e5.js → appointment-rac-3Z1wiBX6.js} +366 -359
- package/dist/component/{bookings-address-rac-DY9l2g0h.js → bookings-address-rac-2zV-a8SW.js} +1 -1
- package/dist/component/{bookings-email-rac-B5vNSOsS.js → bookings-email-rac-C1WakVnh.js} +1 -1
- package/dist/component/{bookings-first-name-rac-CJiefCNz.js → bookings-first-name-rac-6f18uXA0.js} +1 -1
- package/dist/component/{bookings-header-rac-BFu7Ko5w.js → bookings-header-rac-BeaxlPQl.js} +1 -1
- package/dist/component/{bookings-last-name-rac-DegMM13h.js → bookings-last-name-rac-CsLZaKfO.js} +1 -1
- package/dist/component/{bookings-login-bar-rac-DrA-5tBH.js → bookings-login-bar-rac-B3TRivWU.js} +5 -5
- package/dist/component/{bookings-phone-rac-DsaeqxCI.js → bookings-phone-rac-BnFEknvv.js} +1 -1
- package/dist/component/{bookings-rich-text-rac-jRHiwqi8.js → bookings-rich-text-rac-CFPqDZay.js} +1 -1
- package/dist/component/{calendar.module-CKCBG_Pg.js → calendar.module-BMUyMVja.js} +19 -19
- package/dist/component/{checkbox-field-rac-CyoBb6Yf.js → checkbox-field-rac-DqGbxAd0.js} +45 -45
- package/dist/component/{checkbox-group-field-headless-Bv1gU3oL.js → checkbox-group-field-headless-CiobdaVa.js} +38 -38
- package/dist/component/{checkbox-group-field-rac-DasArcdV.js → checkbox-group-field-rac-Dxrc2F4x.js} +14 -14
- package/dist/component/{checkbox-group-rac-CzmufV1U.js → checkbox-group-rac-C3tL4YSr.js} +1 -1
- package/dist/component/{checkbox-indicator-module-classes-akWZsZNn.js → checkbox-indicator-module-classes-DUTR4mcg.js} +1 -1
- package/dist/component/{checkbox-rac-6C7XoUoZ.js → checkbox-rac-DhZsIMuk.js} +1 -1
- package/dist/component/{contacts-address-rac-BZobbFtz.js → contacts-address-rac--GiWpa6C.js} +1 -1
- package/dist/component/{contacts-birthdate-rac-DIzf41DS.js → contacts-birthdate-rac-CmI2nPpr.js} +1 -1
- package/dist/component/{contacts-company-rac-BiBDO28r.js → contacts-company-rac-DcSLvPnR.js} +1 -1
- package/dist/component/{contacts-email-rac-5mqokCSD.js → contacts-email-rac-BLOIHGP9.js} +1 -1
- package/dist/component/{contacts-first-name-rac-BXe3_Nz5.js → contacts-first-name-rac-DgMCKLeE.js} +1 -1
- package/dist/component/{contacts-last-name-rac-Cfqgh7u1.js → contacts-last-name-rac-tcEQP1Db.js} +1 -1
- package/dist/component/{contacts-phone-rac-cmLUWnAc.js → contacts-phone-rac-CK664cfW.js} +1 -1
- package/dist/component/{contacts-position-rac-DTyvklfN.js → contacts-position-rac-B8skwXy6.js} +1 -1
- package/dist/component/{contacts-subscribe-rac-D-ZEX1A3.js → contacts-subscribe-rac-DQZYJjMo.js} +1 -1
- package/dist/component/{contacts-tax-id-rac-B4NYJwWt.js → contacts-tax-id-rac-Ci24ixLu.js} +1 -1
- package/dist/component/{date-availability-Dach9aRC.js → date-availability-Va6_2NAZ.js} +1 -1
- package/dist/component/{date-input-field-rac-B72mHcya.js → date-input-field-rac-lAKyuHOI.js} +98 -98
- package/dist/component/{date-input-rac-CYix11gT.js → date-input-rac-ClEesupR.js} +1 -1
- package/dist/component/{date-picker-field-rac-B8pvtPir.js → date-picker-field-rac-h45jfoso.js} +72 -72
- package/dist/component/{date-picker-rac-D6cR0zH9.js → date-picker-rac-B-pvqBn0.js} +1 -1
- package/dist/component/{date-time-input-field-rac-B7Y3Yf5l.js → date-time-input-field-rac-41QpurJp.js} +72 -72
- package/dist/component/{date-time-input-rac-DMN-noQX.js → date-time-input-rac-BQOUl7It.js} +1 -1
- package/dist/component/{dext-checkbox-group-rac-Kq0GnteP.js → dext-checkbox-group-rac-C4Q6tfBD.js} +2 -2
- package/dist/component/{dext-checkbox-rac-BY9GZ4n1.js → dext-checkbox-rac-Yo2PHNDA.js} +1 -1
- package/dist/component/{dext-date-picker-rac-CXArIddp.js → dext-date-picker-rac-jM9x8W6a.js} +1 -1
- package/dist/component/{dext-date-time-input-rac-B39TtxGq.js → dext-date-time-input-rac-BgW_4WIg.js} +1 -1
- package/dist/component/{dext-dropdown-rac-C3y0G8cS.js → dext-dropdown-rac-DCL7D6-G.js} +1 -1
- package/dist/component/{dext-email-rac-BIg3cq7Q.js → dext-email-rac-Dz7yBqkd.js} +1 -1
- package/dist/component/{dext-number-input-rac-27sHJ7yN.js → dext-number-input-rac-BdMjBpH9.js} +1 -1
- package/dist/component/{dext-phone-rac-CcohoFQp.js → dext-phone-rac-D2i9fXL3.js} +1 -1
- package/dist/component/{dext-radio-group-rac-eead3Gve.js → dext-radio-group-rac-Br2f1Ahx.js} +2 -2
- package/dist/component/{dext-rating-input-rac-B_E6OcBr.js → dext-rating-input-rac-OkfJ7Eb0.js} +1 -1
- package/dist/component/{dext-tags-rac-Yd9aAtnF.js → dext-tags-rac-43vDoDdM.js} +2 -2
- package/dist/component/{dext-text-area-rac-CMACri2C.js → dext-text-area-rac-C072pWO9.js} +1 -1
- package/dist/component/{dext-text-input-rac-sNjSCfQ-.js → dext-text-input-rac-BiHJpJCt.js} +1 -1
- package/dist/component/{dext-url-input-rac-DwhbzJty.js → dext-url-input-rac-YOGYMj5C.js} +1 -1
- package/dist/component/{donation-rac-BVAN3kMk.js → donation-rac-fCt3mddA.js} +106 -106
- package/dist/component/{dropdown-field-rac-DdoGigWx.js → dropdown-field-rac-EQrQJ2-C.js} +4 -4
- package/dist/component/{dropdown-rac-CRkt5w47.js → dropdown-rac-MPCcjrFd.js} +1 -1
- package/dist/component/{ecom-address-rac-C36hFHW0.js → ecom-address-rac-DSgpHqzV.js} +1 -1
- package/dist/component/{ecom-subscription-checkbox-rac-BKfQ348w.js → ecom-subscription-checkbox-rac-Dw6Ke0Fb.js} +2 -2
- package/dist/component/{email-input-field-rac-MOaISYxa.js → email-input-field-rac-DVmvH4u4.js} +80 -80
- package/dist/component/{events-repeater-rac-D6p-NgE8.js → events-repeater-rac-Uwpo7XF4.js} +25 -25
- package/dist/component/{events-rsvp-rac-DVpgN8gm.js → events-rsvp-rac-D2DJAkep.js} +4 -4
- package/dist/component/{field-error-headless-XNWmDH3E.js → field-error-headless-DAc8FpKI.js} +7 -7
- package/dist/component/{field-label-headless-CORRAJGt.js → field-label-headless-DxxwJtjh.js} +17 -17
- package/dist/component/field-rac.module-ts2t4WUO.js +25 -0
- package/dist/component/{file-upload-rac-DRMr7E4b.js → file-upload-rac-CBKIeaxX.js} +194 -194
- package/dist/component/{fixed-payment-rac-BUXzNex9.js → fixed-payment-rac-BsCDoc1p.js} +20 -20
- package/dist/component/{form-DSpx-AO8.js → form-GAuLAdjq.js} +338 -347
- package/dist/component/form.css +1 -1
- package/dist/component/form.js +1 -1
- package/dist/component/{header-field-rac-CiDXlNsa.js → header-field-rac-DtZCjzLJ.js} +6 -6
- package/dist/component/{header-rac-B5Rg-h8u.js → header-rac-B1hlVDf8.js} +1 -1
- package/dist/component/image-choice-rac-DQaCg_Xk.js +155 -0
- package/dist/component/{index-CwruESwc.js → index-BaVjVNYj.js} +5 -5
- package/dist/component/{index-Bz7ZhQsF.js → index-C1EXd9jU.js} +50 -50
- package/dist/component/{isObjectLike-C5dHxHP0.js → isObjectLike-m2dqIREj.js} +3 -3
- package/dist/component/{multiline-address-field-rac-Z-qF366L.js → multiline-address-field-rac-CMMdLb-J.js} +41 -41
- package/dist/component/{multiline-address-rac-CJIHTMw5.js → multiline-address-rac-VUQNp-Tz.js} +1 -1
- package/dist/component/{number-input-field-rac-D4vf6I6N.js → number-input-field-rac-B5bsGDKm.js} +24 -24
- package/dist/component/{number-input-rac-B2jW6JUQ.js → number-input-rac-BzzW0p9R.js} +1 -1
- package/dist/component/{password-rac-DGRZ17Jl.js → password-rac-2Rr7lvNO.js} +25 -25
- package/dist/component/{payment-input-rac-BtD-tAKv.js → payment-input-rac-CEUzIrJA.js} +31 -31
- package/dist/component/{phone-input-field-rac-KD4-APhr.js → phone-input-field-rac-BDBaqAzE.js} +59 -59
- package/dist/component/{phone-rac-Cw2yccgg.js → phone-rac-BTK8-tkq.js} +1 -1
- package/dist/component/{product-list-rac-XbzTDdbp.js → product-list-rac-1QbeT5RH.js} +43 -43
- package/dist/component/{quiz-radio-group-rac-BDw_mAw5.js → quiz-radio-group-rac-tn2CzdCu.js} +1 -1
- package/dist/component/{radio-button-module-classes-CFGf0Hzh.js → radio-button-module-classes-aK1SQcLG.js} +30 -30
- package/dist/component/{radio-group-field-rac-CXN7tyVu.js → radio-group-field-rac-DlMXhW_S.js} +7 -7
- package/dist/component/{radio-group-rac-COHzqjBh.js → radio-group-rac-BmU_5tBK.js} +1 -1
- package/dist/component/{rating-input-field-rac-DCXNZgf1.js → rating-input-field-rac-DUPJUAX2.js} +27 -27
- package/dist/component/{rating-input-rac-DwQt9ML7.js → rating-input-rac-BLhkZdj8.js} +1 -1
- package/dist/component/{rich-content-rac.module-B7rPwNns.js → rich-content-rac.module-C9bGXB69.js} +5 -5
- package/dist/component/{rich-text-field-rac-DlER7NRD.js → rich-text-field-rac-CVqmsZzZ.js} +6 -6
- package/dist/component/{rich-text-rac-CjicsHA7.js → rich-text-rac-D8K6445F.js} +1 -1
- package/dist/component/{service-dropdown-rac-B81LC_6_.js → service-dropdown-rac-PR_iLdmo.js} +31 -31
- package/dist/component/{services-multi-choice-rac-BR6gZeHk.js → services-multi-choice-rac-BvMadJCf.js} +19 -19
- package/dist/component/{signature-rac-XFj7Ddtp.js → signature-rac-Cpjv6kcl.js} +235 -235
- package/dist/component/{submit-button-rac-Bz7zs_3W.js → submit-button-rac-DpDk7cMb.js} +7 -7
- package/dist/component/{tags-field-rac-DWWkNKqc.js → tags-field-rac-DnyWNHXT.js} +67 -67
- package/dist/component/{tags-rac-BXyiQ9i1.js → tags-rac-D5Do7BNm.js} +1 -1
- package/dist/component/{text-area-field-rac-DsIRYi0d.js → text-area-field-rac-DLBgla0L.js} +27 -27
- package/dist/component/{text-area-rac-CF9pDP9d.js → text-area-rac-Bfsl2gSn.js} +1 -1
- package/dist/component/{text-input-field-rac-BwIDZACz.js → text-input-field-rac-hLsUcQNw.js} +4 -4
- package/dist/component/{text-input-headless-5kQs2_Xu.js → text-input-headless-Otd7Uy7V.js} +13 -13
- package/dist/component/{text-input-rac-CRmSuw1k.js → text-input-rac-jpnc-v91.js} +1 -1
- package/dist/component/{time-input-rac-BRMNpe51.js → time-input-rac-DnjrmZZw.js} +26 -26
- package/dist/component/url-input-field-rac-C90NYHb8.js +77 -0
- package/dist/component/{url-input-rac-Dv-kp50D.js → url-input-rac-C3wfEnqs.js} +1 -1
- package/dist/component/{use-dropdown-option-class-name-BQi_qE_-.js → use-dropdown-option-class-name-CYkLlKBs.js} +12 -12
- package/dist/component/{use-dropdown-trigger-class-name-bAK8aHiG.js → use-dropdown-trigger-class-name-CTt4Z67m.js} +17 -17
- package/dist/component/{use-element-state-class-name-rXM_lHug.js → use-element-state-class-name-ByDw6j7c.js} +1 -1
- package/dist/component/{use-hoverable-input-class-name-BnV_uerV.js → use-hoverable-input-class-name-Duhgtn2I.js} +3 -3
- package/dist/component/use-is-forced-open-dropdown-B5gNY4Zm.js +53 -0
- package/dist/component/{use-service-options-base-CLeE9-Tx.js → use-service-options-base-DE-QaNDw.js} +8 -8
- package/dist/component/use-text-input-class-name-CmxSw6bY.js +6 -0
- package/dist/form.d.ts +3 -0
- package/package.json +2 -2
- package/dist/component/field-rac.module-DP0lkkEv.js +0 -25
- package/dist/component/image-choice-rac-CtoA_KDp.js +0 -155
- package/dist/component/url-input-field-rac-CKLS3QDk.js +0 -77
- package/dist/component/use-is-forced-open-dropdown-Bp-5Xpmw.js +0 -53
- package/dist/component/use-text-input-class-name-DIKWvfkm.js +0 -6
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
import { RicosViewer as se } from "@wix/ricos/viewer";
|
|
2
2
|
import E from "classnames";
|
|
3
|
-
import t, { useMemo as L, useState as
|
|
3
|
+
import t, { useMemo as L, useState as K, useCallback as U, useRef as $, useContext as le } from "react";
|
|
4
4
|
import { parseTime as ie } from "@internationalized/date";
|
|
5
5
|
import { UNSAFE_PortalProvider as ce } from "react-aria";
|
|
6
|
-
import { ListBoxItem as me, Select as de, TextField as
|
|
7
|
-
import {
|
|
6
|
+
import { ListBoxItem as me, Select as de, TextField as Q, TimeField as ue, SelectValue as pe, Input as X, DateInput as Ee, DateSegment as x, TimeFieldStateContext as fe } from "react-aria-components";
|
|
7
|
+
import { by as h, bv as Z, bq as q, b3 as J, bg as ee, aS as d, bI as y, bk as W, b5 as he, aZ as be, bn as _e, a$ as j, bA as z, u as ge, U as Ie, aa as De, w as V, H as Ne, K as Te, G as Oe, v as Le, x as k } from "./form-GAuLAdjq.js";
|
|
8
8
|
import { f as u, a as C } from "./find-child-C60k4CxG.js";
|
|
9
9
|
import { g as ye } from "./helpers-HmkkXrh2.js";
|
|
10
|
-
import { D as Fe, E as Pe } from "./field-error-headless-
|
|
11
|
-
import { L as Ce } from "./field-label-headless-
|
|
10
|
+
import { D as Fe, E as Pe } from "./field-error-headless-DAc8FpKI.js";
|
|
11
|
+
import { L as Ce } from "./field-label-headless-DxxwJtjh.js";
|
|
12
12
|
import { F as Se } from "./fieldset-headless-CD3fds9J.js";
|
|
13
13
|
import { N as Me, E as Re, S as Ae } from "./non-modal-popover-D-u13tmp.js";
|
|
14
|
-
import { a as
|
|
15
|
-
import { V as
|
|
14
|
+
import { a as ve } from "./use-is-forced-open-dropdown-B5gNY4Zm.js";
|
|
15
|
+
import { V as we, u as Ve } from "./use-dropdown-option-class-name-CYkLlKBs.js";
|
|
16
16
|
import { C as Ye } from "./chevron-down-icon-CcpVm6B-.js";
|
|
17
17
|
import { E as He } from "./error-icon-hZxQ6DEy.js";
|
|
18
18
|
import { H as Y } from "./custom-focus-class-_483Pkwp.js";
|
|
19
|
-
import { s as _ } from "./field-rac.module-
|
|
20
|
-
import { u as H } from "./use-hoverable-input-class-name-
|
|
19
|
+
import { s as _ } from "./field-rac.module-ts2t4WUO.js";
|
|
20
|
+
import { u as H } from "./use-hoverable-input-class-name-Duhgtn2I.js";
|
|
21
21
|
const l = ({ children: e, className: a }) => {
|
|
22
|
-
const { id: n, required: r, onBlur: o, onFocus: s, FieldLayout: i } = h(), { inputId: m, labelId: c, ariaDescribedBy: b } =
|
|
22
|
+
const { id: n, required: r, onBlur: o, onFocus: s, FieldLayout: i } = h(), { inputId: m, labelId: c, ariaDescribedBy: b } = Z(), { regionalFormat: p } = q(), N = L(() => J(p).filter(ee).map((M) => M.toUpperCase()), [
|
|
23
23
|
p
|
|
24
|
-
]), S = u(e, l.Label),
|
|
24
|
+
]), S = u(e, l.Label), v = u(e, l.Description), I = u(e, l.Error), D = {
|
|
25
25
|
[d.MONTH]: u(e, l.Month),
|
|
26
26
|
[d.DAY]: u(e, l.Day),
|
|
27
27
|
[d.YEAR]: u(e, l.Year)
|
|
@@ -40,16 +40,16 @@ const l = ({ children: e, className: a }) => {
|
|
|
40
40
|
onFocus: s,
|
|
41
41
|
className: a
|
|
42
42
|
}, D[N[0]], D[N[1]], D[N[2]], T),
|
|
43
|
-
renderDescription: () => /* @__PURE__ */ t.createElement(t.Fragment, null,
|
|
43
|
+
renderDescription: () => /* @__PURE__ */ t.createElement(t.Fragment, null, I, v)
|
|
44
44
|
});
|
|
45
45
|
}, F = ({ children: e, className: a }) => {
|
|
46
|
-
const { id: n, disabled: r, readOnly: o, showDateLabels: s, hidePlaceholder: i } = h(), { labelId: m } = O(d.MONTH), { partValue: c, partError: b, onPartChange: p } = P(d.MONTH), { t: N } = y(), [S,
|
|
47
|
-
o || p(typeof
|
|
46
|
+
const { id: n, disabled: r, readOnly: o, showDateLabels: s, hidePlaceholder: i } = h(), { labelId: m } = O(d.MONTH), { partValue: c, partError: b, onPartChange: p } = P(d.MONTH), { t: N } = y(), [S, v] = K(!1), I = ve(n), [D, T] = K(null), M = i ? Re : N("field.date.placeholder.month"), te = U((w) => {
|
|
47
|
+
o || p(typeof w == "string" ? w : "");
|
|
48
48
|
}, [
|
|
49
49
|
p,
|
|
50
50
|
o
|
|
51
|
-
]), ae =
|
|
52
|
-
w
|
|
51
|
+
]), ae = U((w) => {
|
|
52
|
+
v(w && !o);
|
|
53
53
|
}, [
|
|
54
54
|
o
|
|
55
55
|
]), ne = u(e, F.Label), re = u(e, F.Trigger), oe = u(e, F.Options);
|
|
@@ -70,17 +70,17 @@ const l = ({ children: e, className: a }) => {
|
|
|
70
70
|
isDisabled: r,
|
|
71
71
|
isInvalid: b,
|
|
72
72
|
placeholder: M,
|
|
73
|
-
isOpen:
|
|
74
|
-
onOpenChange:
|
|
73
|
+
isOpen: I || S,
|
|
74
|
+
onOpenChange: I ? void 0 : ae
|
|
75
75
|
}, re, C(oe, {
|
|
76
|
-
isForcedOpen:
|
|
76
|
+
isForcedOpen: I
|
|
77
77
|
}))));
|
|
78
|
-
},
|
|
78
|
+
}, Ue = ({ className: e }) => /* @__PURE__ */ t.createElement(G, {
|
|
79
79
|
datePart: d.MONTH,
|
|
80
80
|
className: e
|
|
81
|
-
}),
|
|
82
|
-
const { id: n, readOnly: r } = h(), { inputId: o } = O(d.MONTH), { partError: s, isFirstPart: i } = P(d.MONTH), m =
|
|
83
|
-
return
|
|
81
|
+
}), Be = ({ children: e, className: a }) => {
|
|
82
|
+
const { id: n, readOnly: r } = h(), { inputId: o } = O(d.MONTH), { partError: s, isFirstPart: i } = P(d.MONTH), m = $(null);
|
|
83
|
+
return z(() => {
|
|
84
84
|
var c;
|
|
85
85
|
i && ((c = m.current) == null || c.focus({
|
|
86
86
|
preventScroll: !0
|
|
@@ -93,15 +93,15 @@ const l = ({ children: e, className: a }) => {
|
|
|
93
93
|
"data-invalid": s || void 0,
|
|
94
94
|
"data-readonly": r || void 0
|
|
95
95
|
}, /* @__PURE__ */ t.createElement(pe, null), e);
|
|
96
|
-
},
|
|
97
|
-
const { isForcedOpen: r } = n, { language: o } =
|
|
96
|
+
}, B = ({ children: e, className: a, ...n }) => {
|
|
97
|
+
const { isForcedOpen: r } = n, { language: o } = q(), s = L(() => ye(o), [
|
|
98
98
|
o
|
|
99
|
-
]), i = u(e,
|
|
99
|
+
]), i = u(e, B.Option) ?? /* @__PURE__ */ t.createElement(B.Option, null);
|
|
100
100
|
return /* @__PURE__ */ t.createElement(Me, {
|
|
101
101
|
className: a,
|
|
102
102
|
containerPadding: 0,
|
|
103
103
|
offset: 0
|
|
104
|
-
}, /* @__PURE__ */ t.createElement(
|
|
104
|
+
}, /* @__PURE__ */ t.createElement(we, {
|
|
105
105
|
isForcedOpen: r,
|
|
106
106
|
autoFocus: r ? !1 : void 0
|
|
107
107
|
}, s.map((m, c) => C(i, {
|
|
@@ -117,16 +117,16 @@ const l = ({ children: e, className: a }) => {
|
|
|
117
117
|
textValue: r
|
|
118
118
|
}, r);
|
|
119
119
|
};
|
|
120
|
-
F.Label =
|
|
121
|
-
F.Trigger =
|
|
122
|
-
F.Options =
|
|
123
|
-
|
|
120
|
+
F.Label = Ue;
|
|
121
|
+
F.Trigger = Be;
|
|
122
|
+
F.Options = B;
|
|
123
|
+
B.Option = xe;
|
|
124
124
|
const R = ({ children: e, className: a }) => {
|
|
125
125
|
const { disabled: n, readOnly: r, showDateLabels: o } = h(), { labelId: s } = O(d.DAY), { partValue: i, partError: m, onPartChange: c } = P(d.DAY), b = u(e, R.Label), p = u(e, R.Input);
|
|
126
126
|
return /* @__PURE__ */ t.createElement("div", {
|
|
127
127
|
className: a,
|
|
128
128
|
"data-date-field": !0
|
|
129
|
-
}, o && b, /* @__PURE__ */ t.createElement(
|
|
129
|
+
}, o && b, /* @__PURE__ */ t.createElement(Q, {
|
|
130
130
|
"aria-labelledby": o ? s : void 0,
|
|
131
131
|
value: i,
|
|
132
132
|
onChange: c,
|
|
@@ -137,14 +137,14 @@ const R = ({ children: e, className: a }) => {
|
|
|
137
137
|
}, ke = ({ className: e }) => /* @__PURE__ */ t.createElement(G, {
|
|
138
138
|
datePart: d.DAY,
|
|
139
139
|
className: e
|
|
140
|
-
}),
|
|
141
|
-
const { id: a, hidePlaceholder: n } = h(), { inputId: r } = O(d.DAY), { isFirstPart: o } = P(d.DAY), { t: s } = y(), i =
|
|
142
|
-
return
|
|
140
|
+
}), $e = ({ className: e }) => {
|
|
141
|
+
const { id: a, hidePlaceholder: n } = h(), { inputId: r } = O(d.DAY), { isFirstPart: o } = P(d.DAY), { t: s } = y(), i = $(null), m = n ? void 0 : s("field.date.placeholder.day");
|
|
142
|
+
return z(() => {
|
|
143
143
|
var c;
|
|
144
144
|
o && ((c = i.current) == null || c.focus({
|
|
145
145
|
preventScroll: !0
|
|
146
146
|
}));
|
|
147
|
-
}, a), /* @__PURE__ */ t.createElement(
|
|
147
|
+
}, a), /* @__PURE__ */ t.createElement(X, {
|
|
148
148
|
ref: i,
|
|
149
149
|
id: r,
|
|
150
150
|
className: e,
|
|
@@ -155,13 +155,13 @@ const R = ({ children: e, className: a }) => {
|
|
|
155
155
|
});
|
|
156
156
|
};
|
|
157
157
|
R.Label = ke;
|
|
158
|
-
R.Input =
|
|
158
|
+
R.Input = $e;
|
|
159
159
|
const A = ({ children: e, className: a }) => {
|
|
160
160
|
const { disabled: n, readOnly: r, showDateLabels: o } = h(), { labelId: s } = O(d.YEAR), { partValue: i, partError: m, onPartChange: c } = P(d.YEAR), b = u(e, A.Label), p = u(e, A.Input);
|
|
161
161
|
return /* @__PURE__ */ t.createElement("div", {
|
|
162
162
|
className: a,
|
|
163
163
|
"data-date-field": !0
|
|
164
|
-
}, o && b, /* @__PURE__ */ t.createElement(
|
|
164
|
+
}, o && b, /* @__PURE__ */ t.createElement(Q, {
|
|
165
165
|
"aria-labelledby": o ? s : void 0,
|
|
166
166
|
value: i,
|
|
167
167
|
onChange: c,
|
|
@@ -169,17 +169,17 @@ const A = ({ children: e, className: a }) => {
|
|
|
169
169
|
isReadOnly: r,
|
|
170
170
|
isInvalid: m
|
|
171
171
|
}, p));
|
|
172
|
-
},
|
|
172
|
+
}, qe = ({ className: e }) => /* @__PURE__ */ t.createElement(G, {
|
|
173
173
|
datePart: d.YEAR,
|
|
174
174
|
className: e
|
|
175
|
-
}),
|
|
176
|
-
const { id: a, hidePlaceholder: n } = h(), { inputId: r } = O(d.YEAR), { isFirstPart: o } = P(d.YEAR), { t: s } = y(), i =
|
|
177
|
-
return
|
|
175
|
+
}), ze = ({ className: e }) => {
|
|
176
|
+
const { id: a, hidePlaceholder: n } = h(), { inputId: r } = O(d.YEAR), { isFirstPart: o } = P(d.YEAR), { t: s } = y(), i = $(null), m = n ? void 0 : s("field.date.placeholder.year");
|
|
177
|
+
return z(() => {
|
|
178
178
|
var c;
|
|
179
179
|
o && ((c = i.current) == null || c.focus({
|
|
180
180
|
preventScroll: !0
|
|
181
181
|
}));
|
|
182
|
-
}, a), /* @__PURE__ */ t.createElement(
|
|
182
|
+
}, a), /* @__PURE__ */ t.createElement(X, {
|
|
183
183
|
ref: i,
|
|
184
184
|
id: r,
|
|
185
185
|
className: e,
|
|
@@ -189,10 +189,10 @@ const A = ({ children: e, className: a }) => {
|
|
|
189
189
|
"data-hook": d.YEAR
|
|
190
190
|
});
|
|
191
191
|
};
|
|
192
|
-
A.Label =
|
|
193
|
-
A.Input =
|
|
194
|
-
const
|
|
195
|
-
const { disabled: n, readOnly: r, use24HourFormat: o, showDateLabels: s } = h(), { labelId: i } = O("time"), { partValue: m, partError: c, onPartChange: b } = P("time"), p = u(e,
|
|
192
|
+
A.Label = qe;
|
|
193
|
+
A.Input = ze;
|
|
194
|
+
const g = ({ children: e, className: a }) => {
|
|
195
|
+
const { disabled: n, readOnly: r, use24HourFormat: o, showDateLabels: s } = h(), { labelId: i } = O("time"), { partValue: m, partError: c, onPartChange: b } = P("time"), p = u(e, g.Label), N = u(e, g.Input);
|
|
196
196
|
return /* @__PURE__ */ t.createElement("div", {
|
|
197
197
|
className: a,
|
|
198
198
|
"data-date-field": !0
|
|
@@ -212,8 +212,8 @@ const I = ({ children: e, className: a }) => {
|
|
|
212
212
|
htmlFor: a,
|
|
213
213
|
className: e
|
|
214
214
|
}, o);
|
|
215
|
-
},
|
|
216
|
-
const { hidePlaceholder: n } = h(), r = u(e,
|
|
215
|
+
}, Ke = ({ children: e, className: a }) => {
|
|
216
|
+
const { hidePlaceholder: n } = h(), r = u(e, g.Hour), o = u(e, g.Minute), s = u(e, g.Period);
|
|
217
217
|
return /* @__PURE__ */ t.createElement(Ee, {
|
|
218
218
|
className: a,
|
|
219
219
|
"data-hook": "time",
|
|
@@ -240,7 +240,7 @@ const I = ({ children: e, className: a }) => {
|
|
|
240
240
|
return /* @__PURE__ */ t.createElement(t.Fragment, null);
|
|
241
241
|
}
|
|
242
242
|
});
|
|
243
|
-
},
|
|
243
|
+
}, We = ({ className: e, ...a }) => {
|
|
244
244
|
const { hidePlaceholder: n } = h(), { segment: r } = a, { t: o } = y(), s = n ? void 0 : o("field.date.placeholder.hour");
|
|
245
245
|
return /* @__PURE__ */ t.createElement(x, {
|
|
246
246
|
segment: r,
|
|
@@ -249,7 +249,7 @@ const I = ({ children: e, className: a }) => {
|
|
|
249
249
|
placeholder: s
|
|
250
250
|
}
|
|
251
251
|
});
|
|
252
|
-
},
|
|
252
|
+
}, je = ({ className: e, ...a }) => {
|
|
253
253
|
const { hidePlaceholder: n } = h(), { segment: r } = a, { t: o } = y(), s = n ? void 0 : o("field.date.placeholder.minute");
|
|
254
254
|
return /* @__PURE__ */ t.createElement(x, {
|
|
255
255
|
segment: r,
|
|
@@ -258,7 +258,7 @@ const I = ({ children: e, className: a }) => {
|
|
|
258
258
|
placeholder: s
|
|
259
259
|
}
|
|
260
260
|
});
|
|
261
|
-
},
|
|
261
|
+
}, Qe = ({ className: e, ...a }) => {
|
|
262
262
|
const { hidePlaceholder: n } = h(), { segment: r } = a, { t: o } = y(), s = le(fe), i = n ? void 0 : o("field.date.placeholder.period"), m = () => s == null ? void 0 : s.increment("dayPeriod");
|
|
263
263
|
return /* @__PURE__ */ t.createElement(x, {
|
|
264
264
|
segment: r,
|
|
@@ -269,20 +269,20 @@ const I = ({ children: e, className: a }) => {
|
|
|
269
269
|
}
|
|
270
270
|
});
|
|
271
271
|
};
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
272
|
+
g.Label = Ge;
|
|
273
|
+
g.Input = Ke;
|
|
274
|
+
g.Hour = We;
|
|
275
|
+
g.Minute = je;
|
|
276
|
+
g.Period = Qe;
|
|
277
277
|
l.Label = Ce;
|
|
278
278
|
l.Month = F;
|
|
279
279
|
l.Day = R;
|
|
280
280
|
l.Year = A;
|
|
281
|
-
l.Time =
|
|
281
|
+
l.Time = g;
|
|
282
282
|
l.Description = Fe;
|
|
283
283
|
l.Error = Pe;
|
|
284
284
|
function O(e) {
|
|
285
|
-
const { inputId: a } =
|
|
285
|
+
const { inputId: a } = Z();
|
|
286
286
|
return L(() => {
|
|
287
287
|
const n = e.toLowerCase();
|
|
288
288
|
return {
|
|
@@ -295,30 +295,30 @@ function O(e) {
|
|
|
295
295
|
]);
|
|
296
296
|
}
|
|
297
297
|
function P(e) {
|
|
298
|
-
const { value: a, onChange: n, hasError: r = !1 } = h(), { regionalFormat: o } =
|
|
298
|
+
const { value: a, onChange: n, hasError: r = !1 } = h(), { regionalFormat: o } = q(), [s, i] = L(() => W(a ?? ""), [
|
|
299
299
|
a
|
|
300
300
|
]), m = L(() => he(r, a ?? ""), [
|
|
301
301
|
a,
|
|
302
302
|
r
|
|
303
303
|
]), c = L(() => be(s), [
|
|
304
304
|
s
|
|
305
|
-
]), b = L(() =>
|
|
305
|
+
]), b = L(() => Xe(i), [
|
|
306
306
|
i
|
|
307
|
-
]), p =
|
|
308
|
-
const D =
|
|
307
|
+
]), p = U((I) => {
|
|
308
|
+
const D = Ze(I), T = j(s, D);
|
|
309
309
|
n(T);
|
|
310
310
|
}, [
|
|
311
311
|
n,
|
|
312
312
|
s
|
|
313
|
-
]), N =
|
|
314
|
-
const [, D] =
|
|
313
|
+
]), N = U((I) => {
|
|
314
|
+
const [, D] = W(a ?? ""), T = _e(I, e, c), M = j(T, D);
|
|
315
315
|
n(M);
|
|
316
316
|
}, [
|
|
317
317
|
n,
|
|
318
318
|
a,
|
|
319
319
|
c,
|
|
320
320
|
e
|
|
321
|
-
]), S = L(() => e === "time" ? !1 :
|
|
321
|
+
]), S = L(() => e === "time" ? !1 : J(o).filter(ee).map((T) => T.toUpperCase())[0] === e, [
|
|
322
322
|
o,
|
|
323
323
|
e
|
|
324
324
|
]);
|
|
@@ -342,7 +342,7 @@ function G({ datePart: e, className: a }) {
|
|
|
342
342
|
className: a
|
|
343
343
|
}, i);
|
|
344
344
|
}
|
|
345
|
-
function
|
|
345
|
+
function Xe(e) {
|
|
346
346
|
if (!e)
|
|
347
347
|
return null;
|
|
348
348
|
try {
|
|
@@ -351,7 +351,7 @@ function Qe(e) {
|
|
|
351
351
|
return null;
|
|
352
352
|
}
|
|
353
353
|
}
|
|
354
|
-
function
|
|
354
|
+
function Ze(e) {
|
|
355
355
|
if (!e)
|
|
356
356
|
return null;
|
|
357
357
|
const a = String(e.hour).padStart(2, "0"), n = String(e.minute).padStart(2, "0"), r = String(e.second).padStart(2, "0");
|
|
@@ -361,8 +361,8 @@ function Xe(e) {
|
|
|
361
361
|
r
|
|
362
362
|
].join(":");
|
|
363
363
|
}
|
|
364
|
-
const
|
|
365
|
-
fields:
|
|
364
|
+
const Je = "_fields_1ofw4_1", et = "_month_1ofw4_10", tt = "_day_1ofw4_11", at = "_year_1ofw4_12", nt = "_timeGroup_1ofw4_13", rt = "_dayInput_1ofw4_34", ot = "_yearInput_1ofw4_35", st = "_monthTrigger_1ofw4_39", lt = "_monthOption_1ofw4_59", it = "_time_1ofw4_13", ct = "_hour_1ofw4_81", mt = "_minute_1ofw4_82", dt = "_period_1ofw4_83", f = {
|
|
365
|
+
fields: Je,
|
|
366
366
|
month: et,
|
|
367
367
|
day: tt,
|
|
368
368
|
year: at,
|
|
@@ -389,9 +389,9 @@ const Ze = "_fields_1ofw4_1", et = "_month_1ofw4_10", tt = "_day_1ofw4_11", at =
|
|
|
389
389
|
f.time
|
|
390
390
|
]);
|
|
391
391
|
return /* @__PURE__ */ t.createElement(l, {
|
|
392
|
-
className: E(
|
|
392
|
+
className: E(ge, f.fields)
|
|
393
393
|
}, /* @__PURE__ */ t.createElement(l.Label, {
|
|
394
|
-
className: E(
|
|
394
|
+
className: E(Ie, _.label)
|
|
395
395
|
}, /* @__PURE__ */ t.createElement(l.Label.Required, {
|
|
396
396
|
className: E(De, _.requiredMark)
|
|
397
397
|
})), /* @__PURE__ */ t.createElement(l.Month, {
|
package/dist/component/{dext-checkbox-group-rac-Kq0GnteP.js → dext-checkbox-group-rac-C4Q6tfBD.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 { by as e, aA as t } from "./form-GAuLAdjq.js";
|
|
3
|
+
import { C as p } from "./checkbox-group-field-rac-Dxrc2F4x.js";
|
|
4
4
|
import { D as s } from "./default-limits-D7qVv_Hv.js";
|
|
5
5
|
const C = () => {
|
|
6
6
|
const r = {
|
package/dist/component/{dext-radio-group-rac-eead3Gve.js → dext-radio-group-rac-Br2f1Ahx.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import r from "react";
|
|
2
|
-
import {
|
|
3
|
-
import { R as p } from "./radio-group-field-rac-
|
|
2
|
+
import { by as e, aA as t } from "./form-GAuLAdjq.js";
|
|
3
|
+
import { R as p } from "./radio-group-field-rac-DlMXhW_S.js";
|
|
4
4
|
import { a } from "./default-limits-D7qVv_Hv.js";
|
|
5
5
|
const l = () => {
|
|
6
6
|
const o = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import r from "react";
|
|
2
|
-
import {
|
|
3
|
-
import { T as s } from "./tags-field-rac-
|
|
2
|
+
import { by as e, aA as o } from "./form-GAuLAdjq.js";
|
|
3
|
+
import { T as s } from "./tags-field-rac-DnyWNHXT.js";
|
|
4
4
|
import { b as a } from "./default-limits-D7qVv_Hv.js";
|
|
5
5
|
const l = () => {
|
|
6
6
|
const t = {
|