@wix/form-elements 1.160.0 → 1.161.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-BubC8I9X.js} +395 -388
- package/dist/component/{bookings-address-rac-DY9l2g0h.js → bookings-address-rac-BbwvVs86.js} +1 -1
- package/dist/component/{bookings-email-rac-B5vNSOsS.js → bookings-email-rac-C2HCkcfa.js} +1 -1
- package/dist/component/{bookings-first-name-rac-CJiefCNz.js → bookings-first-name-rac-Uy7c5EBs.js} +1 -1
- package/dist/component/{bookings-header-rac-BFu7Ko5w.js → bookings-header-rac-nmwsWRjS.js} +1 -1
- package/dist/component/{bookings-last-name-rac-DegMM13h.js → bookings-last-name-rac-BAioQLCg.js} +1 -1
- package/dist/component/{bookings-login-bar-rac-DrA-5tBH.js → bookings-login-bar-rac-CO6vOBjG.js} +7 -7
- package/dist/component/{bookings-phone-rac-DsaeqxCI.js → bookings-phone-rac-Cr16h-_R.js} +1 -1
- package/dist/component/{bookings-rich-text-rac-jRHiwqi8.js → bookings-rich-text-rac-CHLH3jd7.js} +1 -1
- package/dist/component/{checkbox-field-rac-CyoBb6Yf.js → checkbox-field-rac-CMwmwFMD.js} +43 -43
- package/dist/component/{checkbox-group-field-headless-Bv1gU3oL.js → checkbox-group-field-headless-BNs_S-nT.js} +24 -24
- package/dist/component/{checkbox-group-field-rac-DasArcdV.js → checkbox-group-field-rac-BA60EPAN.js} +12 -12
- package/dist/component/{checkbox-group-rac-CzmufV1U.js → checkbox-group-rac-BJZ4Oer9.js} +1 -1
- package/dist/component/{checkbox-rac-6C7XoUoZ.js → checkbox-rac-KsVlI6_V.js} +1 -1
- package/dist/component/{contacts-address-rac-BZobbFtz.js → contacts-address-rac-CRYkz87z.js} +1 -1
- package/dist/component/{contacts-birthdate-rac-DIzf41DS.js → contacts-birthdate-rac-BIz-1-ZX.js} +1 -1
- package/dist/component/{contacts-company-rac-BiBDO28r.js → contacts-company-rac-B8G__j6I.js} +1 -1
- package/dist/component/{contacts-email-rac-5mqokCSD.js → contacts-email-rac-Dztkvp5i.js} +1 -1
- package/dist/component/{contacts-first-name-rac-BXe3_Nz5.js → contacts-first-name-rac-CVSEWpLU.js} +1 -1
- package/dist/component/{contacts-last-name-rac-Cfqgh7u1.js → contacts-last-name-rac-Blz4M5bk.js} +1 -1
- package/dist/component/{contacts-phone-rac-cmLUWnAc.js → contacts-phone-rac-CPCE5soY.js} +1 -1
- package/dist/component/{contacts-position-rac-DTyvklfN.js → contacts-position-rac-Dd_kBjqG.js} +1 -1
- package/dist/component/{contacts-subscribe-rac-D-ZEX1A3.js → contacts-subscribe-rac-C6AlsP10.js} +1 -1
- package/dist/component/{contacts-tax-id-rac-B4NYJwWt.js → contacts-tax-id-rac-CQ1n29zI.js} +1 -1
- package/dist/component/{date-availability-Dach9aRC.js → date-availability-DDj1j0z5.js} +1 -1
- package/dist/component/{date-input-field-rac-B72mHcya.js → date-input-field-rac-D5r1n_ah.js} +59 -59
- package/dist/component/{date-input-rac-CYix11gT.js → date-input-rac-Cyi5mU_P.js} +1 -1
- package/dist/component/{date-picker-field-rac-B8pvtPir.js → date-picker-field-rac-CeG391Zo.js} +34 -34
- package/dist/component/{date-picker-rac-D6cR0zH9.js → date-picker-rac-Ci9aHgav.js} +1 -1
- package/dist/component/{date-time-input-field-rac-B7Y3Yf5l.js → date-time-input-field-rac-CrbYEbJJ.js} +89 -89
- package/dist/component/{date-time-input-rac-DMN-noQX.js → date-time-input-rac-DDJLkqs0.js} +1 -1
- package/dist/component/{dext-checkbox-group-rac-Kq0GnteP.js → dext-checkbox-group-rac-C3ftVHBA.js} +4 -4
- package/dist/component/{dext-checkbox-rac-BY9GZ4n1.js → dext-checkbox-rac-BGLYWn68.js} +1 -1
- package/dist/component/{dext-date-picker-rac-CXArIddp.js → dext-date-picker-rac-Cy9RlDlt.js} +1 -1
- package/dist/component/{dext-date-time-input-rac-B39TtxGq.js → dext-date-time-input-rac-88ZoTd5e.js} +1 -1
- package/dist/component/{dext-dropdown-rac-C3y0G8cS.js → dext-dropdown-rac-CPxDUuk9.js} +1 -1
- package/dist/component/{dext-email-rac-BIg3cq7Q.js → dext-email-rac-BAvQwDPA.js} +1 -1
- package/dist/component/{dext-number-input-rac-27sHJ7yN.js → dext-number-input-rac-D7HYQVKq.js} +1 -1
- package/dist/component/{dext-phone-rac-CcohoFQp.js → dext-phone-rac--FhcplSI.js} +1 -1
- package/dist/component/{dext-radio-group-rac-eead3Gve.js → dext-radio-group-rac-DBz8iCKW.js} +2 -2
- package/dist/component/{dext-rating-input-rac-B_E6OcBr.js → dext-rating-input-rac-Cv7nThfe.js} +1 -1
- package/dist/component/{dext-tags-rac-Yd9aAtnF.js → dext-tags-rac-CRUUc5dr.js} +2 -2
- package/dist/component/{dext-text-area-rac-CMACri2C.js → dext-text-area-rac-DQBQXV1L.js} +1 -1
- package/dist/component/{dext-text-input-rac-sNjSCfQ-.js → dext-text-input-rac-4CpM581y.js} +1 -1
- package/dist/component/{dext-url-input-rac-DwhbzJty.js → dext-url-input-rac-0C1jTEr9.js} +1 -1
- package/dist/component/{donation-rac-BVAN3kMk.js → donation-rac-Cgt0ZE50.js} +68 -68
- package/dist/component/{dropdown-field-rac-DdoGigWx.js → dropdown-field-rac-DlGKR7pZ.js} +3 -3
- package/dist/component/{dropdown-rac-CRkt5w47.js → dropdown-rac-CYFW_3x_.js} +1 -1
- package/dist/component/{ecom-address-rac-C36hFHW0.js → ecom-address-rac-CQfQHpXC.js} +1 -1
- package/dist/component/{ecom-subscription-checkbox-rac-BKfQ348w.js → ecom-subscription-checkbox-rac-D2v2Upvz.js} +2 -2
- package/dist/component/{email-input-field-rac-MOaISYxa.js → email-input-field-rac-CVw25yRo.js} +45 -45
- package/dist/component/{events-repeater-rac-D6p-NgE8.js → events-repeater-rac-BCVUcmFj.js} +22 -22
- package/dist/component/{events-rsvp-rac-DVpgN8gm.js → events-rsvp-rac-DwbqEr8z.js} +3 -3
- package/dist/component/{field-error-headless-XNWmDH3E.js → field-error-headless-XnVcMmsL.js} +3 -3
- package/dist/component/{field-label-headless-CORRAJGt.js → field-label-headless-BRTLT2Yt.js} +14 -14
- package/dist/component/{file-upload-rac-DRMr7E4b.js → file-upload-rac-Dkwg9Jk4.js} +115 -115
- package/dist/component/{fixed-payment-rac-BUXzNex9.js → fixed-payment-rac-ST98xAa2.js} +20 -20
- package/dist/component/{form-DSpx-AO8.js → form-BUqSKOvc.js} +235 -234
- package/dist/component/form.js +1 -1
- package/dist/component/{header-field-rac-CiDXlNsa.js → header-field-rac-CzNTGYWq.js} +5 -5
- package/dist/component/{header-rac-B5Rg-h8u.js → header-rac-DUt6AIAE.js} +1 -1
- package/dist/component/{image-choice-rac-CtoA_KDp.js → image-choice-rac-DuBgrSt2.js} +21 -21
- package/dist/component/{index-Bz7ZhQsF.js → index-CDO22hht.js} +106 -106
- package/dist/component/{index-CwruESwc.js → index-cZZeAuuu.js} +5 -5
- package/dist/component/{isObjectLike-C5dHxHP0.js → isObjectLike-cs4bARpC.js} +3 -3
- package/dist/component/{multiline-address-field-rac-Z-qF366L.js → multiline-address-field-rac-vcEWhUCV.js} +73 -73
- package/dist/component/{multiline-address-rac-CJIHTMw5.js → multiline-address-rac-WQaI2eUX.js} +1 -1
- package/dist/component/{number-input-field-rac-D4vf6I6N.js → number-input-field-rac-CBUMqATk.js} +26 -26
- package/dist/component/{number-input-rac-B2jW6JUQ.js → number-input-rac-B4j5hyzS.js} +1 -1
- package/dist/component/{password-rac-DGRZ17Jl.js → password-rac-DwLyf45N.js} +28 -28
- package/dist/component/{payment-input-rac-BtD-tAKv.js → payment-input-rac-D0Od---y.js} +28 -28
- package/dist/component/{phone-input-field-rac-KD4-APhr.js → phone-input-field-rac-COlu9IeC.js} +64 -64
- package/dist/component/{phone-rac-Cw2yccgg.js → phone-rac-Dh4RacOF.js} +1 -1
- package/dist/component/{product-list-rac-XbzTDdbp.js → product-list-rac-D7zHDE2D.js} +47 -47
- package/dist/component/{quiz-radio-group-rac-BDw_mAw5.js → quiz-radio-group-rac-1AaKphJt.js} +1 -1
- package/dist/component/{radio-button-module-classes-CFGf0Hzh.js → radio-button-module-classes-VqaP6vpA.js} +29 -29
- package/dist/component/{radio-group-field-rac-CXN7tyVu.js → radio-group-field-rac-Cp3LRN3C.js} +6 -6
- package/dist/component/{radio-group-rac-COHzqjBh.js → radio-group-rac-KhmhzYGf.js} +1 -1
- package/dist/component/{rating-input-field-rac-DCXNZgf1.js → rating-input-field-rac-10n6ciCr.js} +22 -22
- package/dist/component/{rating-input-rac-DwQt9ML7.js → rating-input-rac-XZjjY2Gp.js} +1 -1
- package/dist/component/{rich-content-rac.module-B7rPwNns.js → rich-content-rac.module-kMwDoLBa.js} +1 -1
- package/dist/component/{rich-text-field-rac-DlER7NRD.js → rich-text-field-rac-H5bd8fAt.js} +6 -6
- package/dist/component/{rich-text-rac-CjicsHA7.js → rich-text-rac-88GSQR62.js} +1 -1
- package/dist/component/{service-dropdown-rac-B81LC_6_.js → service-dropdown-rac-B1_Xr_X3.js} +31 -31
- package/dist/component/{services-multi-choice-rac-BR6gZeHk.js → services-multi-choice-rac-DWp_Llbi.js} +17 -17
- package/dist/component/{signature-rac-XFj7Ddtp.js → signature-rac-zN_6KRDp.js} +44 -44
- package/dist/component/{submit-button-rac-Bz7zs_3W.js → submit-button-rac-Dv6UarYX.js} +2 -2
- package/dist/component/{tags-field-rac-DWWkNKqc.js → tags-field-rac-sVN6MHfJ.js} +38 -38
- package/dist/component/{tags-rac-BXyiQ9i1.js → tags-rac-DhTHs_XN.js} +1 -1
- package/dist/component/{text-area-field-rac-DsIRYi0d.js → text-area-field-rac-DrWkww7W.js} +21 -21
- package/dist/component/{text-area-rac-CF9pDP9d.js → text-area-rac-CXXh-ZdY.js} +1 -1
- package/dist/component/{text-input-field-rac-BwIDZACz.js → text-input-field-rac-C2YiMr-g.js} +3 -3
- package/dist/component/{text-input-headless-5kQs2_Xu.js → text-input-headless-BJMNbsMY.js} +12 -12
- package/dist/component/{text-input-rac-CRmSuw1k.js → text-input-rac-CpsPh7FH.js} +1 -1
- package/dist/component/{time-input-rac-BRMNpe51.js → time-input-rac-DG_1KxS4.js} +23 -23
- package/dist/component/{url-input-field-rac-CKLS3QDk.js → url-input-field-rac-twxRREnl.js} +26 -26
- package/dist/component/{url-input-rac-Dv-kp50D.js → url-input-rac-BTStO0NP.js} +1 -1
- package/dist/component/{use-dropdown-option-class-name-BQi_qE_-.js → use-dropdown-option-class-name-DbMMg1ws.js} +2 -2
- package/dist/component/{use-dropdown-trigger-class-name-bAK8aHiG.js → use-dropdown-trigger-class-name-Yes4kC_0.js} +17 -17
- package/dist/component/{use-element-state-class-name-rXM_lHug.js → use-element-state-class-name-DlncY4hk.js} +1 -1
- package/dist/component/{use-hoverable-input-class-name-BnV_uerV.js → use-hoverable-input-class-name-C__zqP5j.js} +2 -2
- package/dist/component/use-is-forced-open-dropdown-DnK_MQRO.js +53 -0
- package/dist/component/{use-service-options-base-CLeE9-Tx.js → use-service-options-base-DKJe52Vk.js} +6 -6
- package/dist/component/use-text-input-class-name-D9tJTR-b.js +6 -0
- package/dist/form.d.ts +3 -0
- package/package.json +2 -2
- 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,37 +1,37 @@
|
|
|
1
1
|
import { RicosViewer as se } from "@wix/ricos/viewer";
|
|
2
2
|
import E from "classnames";
|
|
3
|
-
import t, { useMemo as L, useState as W, useCallback as
|
|
3
|
+
import t, { useMemo as L, useState as W, 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 {
|
|
8
|
-
import { f as u, a as
|
|
6
|
+
import { ListBoxItem as me, Select as de, TextField as J, TimeField as ue, SelectValue as pe, Input as Q, DateInput as Ee, DateSegment as B, TimeFieldStateContext as fe } from "react-aria-components";
|
|
7
|
+
import { bA as h, bx as X, bs as z, b5 as Z, bi as ee, aU as d, bK as y, bm as K, b7 as he, a$ as be, bp as _e, b1 as j, bC as G, u as ge, W as Ie, ac as De, w as V, J as Ne, M as Te, G as Oe, v as Le, x as k } from "./form-BUqSKOvc.js";
|
|
8
|
+
import { f as u, a as P } from "./find-child-C60k4CxG.js";
|
|
9
9
|
import { g as ye } from "./helpers-HmkkXrh2.js";
|
|
10
|
-
import { D as Fe, E as
|
|
11
|
-
import { L as
|
|
12
|
-
import { F as
|
|
13
|
-
import { N as
|
|
14
|
-
import { a as
|
|
15
|
-
import { V as
|
|
10
|
+
import { D as Fe, E as Ce } from "./field-error-headless-XnVcMmsL.js";
|
|
11
|
+
import { L as Pe } from "./field-label-headless-BRTLT2Yt.js";
|
|
12
|
+
import { F as Me } from "./fieldset-headless-CD3fds9J.js";
|
|
13
|
+
import { N as Se, E as Re, S as Ae } from "./non-modal-popover-D-u13tmp.js";
|
|
14
|
+
import { a as ve } from "./use-is-forced-open-dropdown-DnK_MQRO.js";
|
|
15
|
+
import { V as we, u as Ve } from "./use-dropdown-option-class-name-DbMMg1ws.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
19
|
import { s as _ } from "./field-rac.module-DP0lkkEv.js";
|
|
20
|
-
import { u as H } from "./use-hoverable-input-class-name-
|
|
20
|
+
import { u as H } from "./use-hoverable-input-class-name-C__zqP5j.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 } = X(), { regionalFormat: p } =
|
|
22
|
+
const { id: n, required: r, onBlur: o, onFocus: s, FieldLayout: i } = h(), { inputId: m, labelId: c, ariaDescribedBy: b } = X(), { regionalFormat: p } = z(), N = L(() => Z(p).filter(ee).map((S) => S.toUpperCase()), [
|
|
23
23
|
p
|
|
24
|
-
]),
|
|
24
|
+
]), M = 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)
|
|
28
28
|
}, T = u(e, l.Time);
|
|
29
29
|
return /* @__PURE__ */ t.createElement(i, {
|
|
30
30
|
fieldId: n,
|
|
31
|
-
renderLabel: () =>
|
|
31
|
+
renderLabel: () => P(M, {
|
|
32
32
|
as: "div"
|
|
33
33
|
}),
|
|
34
|
-
renderInput: () => /* @__PURE__ */ t.createElement(
|
|
34
|
+
renderInput: () => /* @__PURE__ */ t.createElement(Me, {
|
|
35
35
|
id: m,
|
|
36
36
|
ariaLabelledBy: c,
|
|
37
37
|
ariaDescribedBy: b,
|
|
@@ -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 } =
|
|
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 } = C(d.MONTH), { t: N } = y(), [M, v] = W(!1), I = ve(n), [D, T] = W(null), S = 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);
|
|
@@ -69,18 +69,18 @@ const l = ({ children: e, className: a }) => {
|
|
|
69
69
|
onChange: te,
|
|
70
70
|
isDisabled: r,
|
|
71
71
|
isInvalid: b,
|
|
72
|
-
placeholder:
|
|
73
|
-
isOpen:
|
|
74
|
-
onOpenChange:
|
|
75
|
-
}, re,
|
|
76
|
-
isForcedOpen:
|
|
72
|
+
placeholder: S,
|
|
73
|
+
isOpen: I || M,
|
|
74
|
+
onOpenChange: I ? void 0 : ae
|
|
75
|
+
}, re, P(oe, {
|
|
76
|
+
isForcedOpen: I
|
|
77
77
|
}))));
|
|
78
|
-
},
|
|
78
|
+
}, Ue = ({ className: e }) => /* @__PURE__ */ t.createElement(q, {
|
|
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 } =
|
|
83
|
-
return
|
|
81
|
+
}), xe = ({ children: e, className: a }) => {
|
|
82
|
+
const { id: n, readOnly: r } = h(), { inputId: o } = O(d.MONTH), { partError: s, isFirstPart: i } = C(d.MONTH), m = $(null);
|
|
83
|
+
return G(() => {
|
|
84
84
|
var c;
|
|
85
85
|
i && ((c = m.current) == null || c.focus({
|
|
86
86
|
preventScroll: !0
|
|
@@ -93,23 +93,23 @@ 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
|
+
}, x = ({ children: e, className: a, ...n }) => {
|
|
97
|
+
const { isForcedOpen: r } = n, { language: o } = z(), s = L(() => ye(o), [
|
|
98
98
|
o
|
|
99
|
-
]), i = u(e,
|
|
100
|
-
return /* @__PURE__ */ t.createElement(
|
|
99
|
+
]), i = u(e, x.Option) ?? /* @__PURE__ */ t.createElement(x.Option, null);
|
|
100
|
+
return /* @__PURE__ */ t.createElement(Se, {
|
|
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
|
-
}, s.map((m, c) =>
|
|
107
|
+
}, s.map((m, c) => P(i, {
|
|
108
108
|
key: String(c + 1),
|
|
109
109
|
value: String(c + 1),
|
|
110
110
|
label: m
|
|
111
111
|
}))));
|
|
112
|
-
},
|
|
112
|
+
}, Be = ({ className: e, ...a }) => {
|
|
113
113
|
const { value: n, label: r } = a;
|
|
114
114
|
return /* @__PURE__ */ t.createElement(me, {
|
|
115
115
|
className: e,
|
|
@@ -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 = xe;
|
|
122
|
+
F.Options = x;
|
|
123
|
+
x.Option = Be;
|
|
124
124
|
const R = ({ children: e, className: a }) => {
|
|
125
|
-
const { disabled: n, readOnly: r, showDateLabels: o } = h(), { labelId: s } = O(d.DAY), { partValue: i, partError: m, onPartChange: c } =
|
|
125
|
+
const { disabled: n, readOnly: r, showDateLabels: o } = h(), { labelId: s } = O(d.DAY), { partValue: i, partError: m, onPartChange: c } = C(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(J, {
|
|
130
130
|
"aria-labelledby": o ? s : void 0,
|
|
131
131
|
value: i,
|
|
132
132
|
onChange: c,
|
|
@@ -134,12 +134,12 @@ const R = ({ children: e, className: a }) => {
|
|
|
134
134
|
isReadOnly: r,
|
|
135
135
|
isInvalid: m
|
|
136
136
|
}, p));
|
|
137
|
-
}, ke = ({ className: e }) => /* @__PURE__ */ t.createElement(
|
|
137
|
+
}, ke = ({ className: e }) => /* @__PURE__ */ t.createElement(q, {
|
|
138
138
|
datePart: d.DAY,
|
|
139
139
|
className: e
|
|
140
|
-
}),
|
|
141
|
-
const { id: a, hidePlaceholder: n } = h(), { inputId: r } = O(d.DAY), { isFirstPart: o } =
|
|
142
|
-
return
|
|
140
|
+
}), $e = ({ className: e }) => {
|
|
141
|
+
const { id: a, hidePlaceholder: n } = h(), { inputId: r } = O(d.DAY), { isFirstPart: o } = C(d.DAY), { t: s } = y(), i = $(null), m = n ? void 0 : s("field.date.placeholder.day");
|
|
142
|
+
return G(() => {
|
|
143
143
|
var c;
|
|
144
144
|
o && ((c = i.current) == null || c.focus({
|
|
145
145
|
preventScroll: !0
|
|
@@ -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
|
-
const { disabled: n, readOnly: r, showDateLabels: o } = h(), { labelId: s } = O(d.YEAR), { partValue: i, partError: m, onPartChange: c } =
|
|
160
|
+
const { disabled: n, readOnly: r, showDateLabels: o } = h(), { labelId: s } = O(d.YEAR), { partValue: i, partError: m, onPartChange: c } = C(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(J, {
|
|
165
165
|
"aria-labelledby": o ? s : void 0,
|
|
166
166
|
value: i,
|
|
167
167
|
onChange: c,
|
|
@@ -169,12 +169,12 @@ const A = ({ children: e, className: a }) => {
|
|
|
169
169
|
isReadOnly: r,
|
|
170
170
|
isInvalid: m
|
|
171
171
|
}, p));
|
|
172
|
-
},
|
|
172
|
+
}, ze = ({ className: e }) => /* @__PURE__ */ t.createElement(q, {
|
|
173
173
|
datePart: d.YEAR,
|
|
174
174
|
className: e
|
|
175
|
-
}),
|
|
176
|
-
const { id: a, hidePlaceholder: n } = h(), { inputId: r } = O(d.YEAR), { isFirstPart: o } =
|
|
177
|
-
return
|
|
175
|
+
}), Ge = ({ className: e }) => {
|
|
176
|
+
const { id: a, hidePlaceholder: n } = h(), { inputId: r } = O(d.YEAR), { isFirstPart: o } = C(d.YEAR), { t: s } = y(), i = $(null), m = n ? void 0 : s("field.date.placeholder.year");
|
|
177
|
+
return G(() => {
|
|
178
178
|
var c;
|
|
179
179
|
o && ((c = i.current) == null || c.focus({
|
|
180
180
|
preventScroll: !0
|
|
@@ -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 } =
|
|
192
|
+
A.Label = ze;
|
|
193
|
+
A.Input = Ge;
|
|
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 } = C("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
|
|
@@ -205,7 +205,7 @@ const I = ({ children: e, className: a }) => {
|
|
|
205
205
|
isInvalid: c,
|
|
206
206
|
hourCycle: o ? 24 : 12
|
|
207
207
|
}, N));
|
|
208
|
-
},
|
|
208
|
+
}, qe = ({ className: e }) => {
|
|
209
209
|
const { inputId: a, labelId: n } = O("time"), { t: r } = y(), o = r("field.date.label.time");
|
|
210
210
|
return /* @__PURE__ */ t.createElement("label", {
|
|
211
211
|
id: n,
|
|
@@ -213,7 +213,7 @@ const I = ({ children: e, className: a }) => {
|
|
|
213
213
|
className: e
|
|
214
214
|
}, o);
|
|
215
215
|
}, We = ({ children: e, className: a }) => {
|
|
216
|
-
const { hidePlaceholder: n } = h(), r = u(e,
|
|
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",
|
|
@@ -221,46 +221,46 @@ const I = ({ children: e, className: a }) => {
|
|
|
221
221
|
}, (i) => {
|
|
222
222
|
switch (i.type) {
|
|
223
223
|
case "hour":
|
|
224
|
-
return
|
|
224
|
+
return P(r, {
|
|
225
225
|
segment: i
|
|
226
226
|
}) || /* @__PURE__ */ t.createElement(t.Fragment, null);
|
|
227
227
|
case "minute":
|
|
228
|
-
return
|
|
228
|
+
return P(o, {
|
|
229
229
|
segment: i
|
|
230
230
|
}) || /* @__PURE__ */ t.createElement(t.Fragment, null);
|
|
231
231
|
case "dayPeriod":
|
|
232
|
-
return
|
|
232
|
+
return P(s, {
|
|
233
233
|
segment: i
|
|
234
234
|
}) || /* @__PURE__ */ t.createElement(t.Fragment, null);
|
|
235
235
|
case "literal":
|
|
236
|
-
return /* @__PURE__ */ t.createElement(
|
|
236
|
+
return /* @__PURE__ */ t.createElement(B, {
|
|
237
237
|
segment: i
|
|
238
238
|
});
|
|
239
239
|
default:
|
|
240
240
|
return /* @__PURE__ */ t.createElement(t.Fragment, null);
|
|
241
241
|
}
|
|
242
242
|
});
|
|
243
|
-
},
|
|
243
|
+
}, Ke = ({ 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
|
-
return /* @__PURE__ */ t.createElement(
|
|
245
|
+
return /* @__PURE__ */ t.createElement(B, {
|
|
246
246
|
segment: r,
|
|
247
247
|
className: e,
|
|
248
248
|
...s && {
|
|
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
|
-
return /* @__PURE__ */ t.createElement(
|
|
254
|
+
return /* @__PURE__ */ t.createElement(B, {
|
|
255
255
|
segment: r,
|
|
256
256
|
className: e,
|
|
257
257
|
...s && {
|
|
258
258
|
placeholder: s
|
|
259
259
|
}
|
|
260
260
|
});
|
|
261
|
-
},
|
|
261
|
+
}, Je = ({ 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
|
-
return /* @__PURE__ */ t.createElement(
|
|
263
|
+
return /* @__PURE__ */ t.createElement(B, {
|
|
264
264
|
segment: r,
|
|
265
265
|
className: e,
|
|
266
266
|
onClick: m,
|
|
@@ -269,18 +269,18 @@ const I = ({ children: e, className: a }) => {
|
|
|
269
269
|
}
|
|
270
270
|
});
|
|
271
271
|
};
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
l.Label =
|
|
272
|
+
g.Label = qe;
|
|
273
|
+
g.Input = We;
|
|
274
|
+
g.Hour = Ke;
|
|
275
|
+
g.Minute = je;
|
|
276
|
+
g.Period = Je;
|
|
277
|
+
l.Label = Pe;
|
|
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
|
-
l.Error =
|
|
283
|
+
l.Error = Ce;
|
|
284
284
|
function O(e) {
|
|
285
285
|
const { inputId: a } = X();
|
|
286
286
|
return L(() => {
|
|
@@ -294,8 +294,8 @@ function O(e) {
|
|
|
294
294
|
e
|
|
295
295
|
]);
|
|
296
296
|
}
|
|
297
|
-
function
|
|
298
|
-
const { value: a, onChange: n, hasError: r = !1 } = h(), { regionalFormat: o } =
|
|
297
|
+
function C(e) {
|
|
298
|
+
const { value: a, onChange: n, hasError: r = !1 } = h(), { regionalFormat: o } = z(), [s, i] = L(() => K(a ?? ""), [
|
|
299
299
|
a
|
|
300
300
|
]), m = L(() => he(r, a ?? ""), [
|
|
301
301
|
a,
|
|
@@ -304,21 +304,21 @@ function P(e) {
|
|
|
304
304
|
s
|
|
305
305
|
]), b = L(() => Qe(i), [
|
|
306
306
|
i
|
|
307
|
-
]), p =
|
|
308
|
-
const D = Xe(
|
|
307
|
+
]), p = U((I) => {
|
|
308
|
+
const D = Xe(I), T = j(s, D);
|
|
309
309
|
n(T);
|
|
310
310
|
}, [
|
|
311
311
|
n,
|
|
312
312
|
s
|
|
313
|
-
]), N =
|
|
314
|
-
const [, D] =
|
|
315
|
-
n(
|
|
313
|
+
]), N = U((I) => {
|
|
314
|
+
const [, D] = K(a ?? ""), T = _e(I, e, c), S = j(T, D);
|
|
315
|
+
n(S);
|
|
316
316
|
}, [
|
|
317
317
|
n,
|
|
318
318
|
a,
|
|
319
319
|
c,
|
|
320
320
|
e
|
|
321
|
-
]),
|
|
321
|
+
]), M = L(() => e === "time" ? !1 : Z(o).filter(ee).map((T) => T.toUpperCase())[0] === e, [
|
|
322
322
|
o,
|
|
323
323
|
e
|
|
324
324
|
]);
|
|
@@ -331,10 +331,10 @@ function P(e) {
|
|
|
331
331
|
partValue: c[e] || "",
|
|
332
332
|
partError: m[e],
|
|
333
333
|
onPartChange: N,
|
|
334
|
-
isFirstPart:
|
|
334
|
+
isFirstPart: M
|
|
335
335
|
};
|
|
336
336
|
}
|
|
337
|
-
function
|
|
337
|
+
function q({ datePart: e, className: a }) {
|
|
338
338
|
const { inputId: n, labelId: r } = O(e), { t: o } = y(), s = `field.date.label.${e.toLowerCase()}`, i = o(s);
|
|
339
339
|
return /* @__PURE__ */ t.createElement("label", {
|
|
340
340
|
id: r,
|
|
@@ -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-C3ftVHBA.js}
RENAMED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import o from "react";
|
|
2
|
-
import {
|
|
3
|
-
import { C as p } from "./checkbox-group-field-rac-
|
|
2
|
+
import { bA as e, aC as t } from "./form-BUqSKOvc.js";
|
|
3
|
+
import { C as p } from "./checkbox-group-field-rac-BA60EPAN.js";
|
|
4
4
|
import { D as s } from "./default-limits-D7qVv_Hv.js";
|
|
5
|
-
const
|
|
5
|
+
const n = () => {
|
|
6
6
|
const r = {
|
|
7
7
|
...e(),
|
|
8
8
|
otherInputCharacterLimit: s
|
|
@@ -14,5 +14,5 @@ const C = () => {
|
|
|
14
14
|
}, /* @__PURE__ */ o.createElement(p, null));
|
|
15
15
|
};
|
|
16
16
|
export {
|
|
17
|
-
|
|
17
|
+
n as DextCheckboxGroupRAC
|
|
18
18
|
};
|
package/dist/component/{dext-radio-group-rac-eead3Gve.js → dext-radio-group-rac-DBz8iCKW.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 { bA as e, aC as t } from "./form-BUqSKOvc.js";
|
|
3
|
+
import { R as p } from "./radio-group-field-rac-Cp3LRN3C.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 { bA as e, aC as o } from "./form-BUqSKOvc.js";
|
|
3
|
+
import { T as s } from "./tags-field-rac-sVN6MHfJ.js";
|
|
4
4
|
import { b as a } from "./default-limits-D7qVv_Hv.js";
|
|
5
5
|
const l = () => {
|
|
6
6
|
const t = {
|