@wix/form-elements 1.147.0 → 1.149.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-BG5-bIZU.js → appointment-rac-CeJ6tmgt.js} +93 -89
- package/dist/component/{bookings-address-rac-8e8PqKsp.js → bookings-address-rac-CEObYEbj.js} +1 -1
- package/dist/component/{bookings-email-rac-CtlnU8ws.js → bookings-email-rac-DmW99D5W.js} +1 -1
- package/dist/component/{bookings-first-name-rac-CrivNlXM.js → bookings-first-name-rac-GmKet4hL.js} +1 -1
- package/dist/component/{bookings-header-rac-DWDAjfqq.js → bookings-header-rac-C_J1YzAq.js} +1 -1
- package/dist/component/{bookings-last-name-rac-qAthWem2.js → bookings-last-name-rac-Bj-gwK0F.js} +1 -1
- package/dist/component/{bookings-login-bar-rac-BNyUDqlM.js → bookings-login-bar-rac-ol4QLAP6.js} +1 -1
- package/dist/component/{bookings-phone-rac-Tc39XLr7.js → bookings-phone-rac-oaCG294y.js} +1 -1
- package/dist/component/{bookings-rich-text-rac-CPNaPtFK.js → bookings-rich-text-rac-sMiikQgk.js} +1 -1
- package/dist/component/{checkbox-field-rac-DEa78Tpf.js → checkbox-field-rac-DxGaRbDj.js} +9 -7
- package/dist/component/{checkbox-group-field-headless-BxBaMg29.js → checkbox-group-field-headless-C3ZaCvQz.js} +3 -3
- package/dist/component/{checkbox-group-field-rac-CRRP03Qk.js → checkbox-group-field-rac-CMj-kfFN.js} +6 -6
- package/dist/component/{checkbox-group-rac-TOofMGl3.js → checkbox-group-rac-DpOT4H7g.js} +1 -1
- package/dist/component/{checkbox-indicator-module-classes-6173wvuW.js → checkbox-indicator-module-classes-akWZsZNn.js} +1 -1
- package/dist/component/{checkbox-rac-CHMHr8Ry.js → checkbox-rac-CwdOkW8r.js} +1 -1
- package/dist/component/{contacts-address-rac-Bc5yDvTL.js → contacts-address-rac-CQvt1Epy.js} +1 -1
- package/dist/component/{contacts-birthdate-rac-Ubtg5ncv.js → contacts-birthdate-rac-VRGtjIMf.js} +1 -1
- package/dist/component/{contacts-company-rac-BksH9IoV.js → contacts-company-rac-B_XDJTL9.js} +1 -1
- package/dist/component/{contacts-email-rac-DDPEtMAm.js → contacts-email-rac-BJ0EdzZo.js} +1 -1
- package/dist/component/{contacts-first-name-rac-DUlCvEdx.js → contacts-first-name-rac-DzBzJXj7.js} +1 -1
- package/dist/component/{contacts-last-name-rac-BikqNgUr.js → contacts-last-name-rac-DAHlHpW7.js} +1 -1
- package/dist/component/{contacts-phone-rac-B4OEgM_8.js → contacts-phone-rac-C4D1TMqv.js} +1 -1
- package/dist/component/{contacts-position-rac-BfybzySV.js → contacts-position-rac-g0CJQJLc.js} +1 -1
- package/dist/component/{contacts-subscribe-rac-CMHb33v1.js → contacts-subscribe-rac-C54jQIum.js} +1 -1
- package/dist/component/{contacts-tax-id-rac-C-qEqwO5.js → contacts-tax-id-rac-D_JlmKJb.js} +1 -1
- package/dist/component/{date-availability-DZ3J3LLm.js → date-availability-CFp_AHpE.js} +1 -1
- package/dist/component/{date-input-field-rac-DeL5vuE7.js → date-input-field-rac-CxOU5_P5.js} +75 -69
- package/dist/component/{date-input-rac-Di6TQvFf.js → date-input-rac-CEuyvgIp.js} +1 -1
- package/dist/component/{date-picker-field-rac-BcdpTkjV.js → date-picker-field-rac-DC8gw2Qe.js} +10 -8
- package/dist/component/{date-picker-rac-Brne65gr.js → date-picker-rac-B8prCy1F.js} +1 -1
- package/dist/component/{date-time-input-field-rac-BtQfAxRp.js → date-time-input-field-rac-FwScqIVQ.js} +115 -109
- package/dist/component/{date-time-input-rac-DM_HXiqV.js → date-time-input-rac-gdstXM2G.js} +1 -1
- package/dist/component/{dext-checkbox-group-rac-WTVwhGG0.js → dext-checkbox-group-rac-DdEAXUYC.js} +2 -2
- package/dist/component/{dext-checkbox-rac-BR5YwmLQ.js → dext-checkbox-rac-DYgl82IR.js} +1 -1
- package/dist/component/{dext-date-picker-rac-DvDuRGYi.js → dext-date-picker-rac-SaO61461.js} +1 -1
- package/dist/component/{dext-date-time-input-rac-C6RgbaVv.js → dext-date-time-input-rac-CQ2klkyf.js} +1 -1
- package/dist/component/{dext-dropdown-rac-CWjSdcZx.js → dext-dropdown-rac-CYINWMm2.js} +1 -1
- package/dist/component/{dext-email-rac-D-C1gVTq.js → dext-email-rac-7e49-L1S.js} +1 -1
- package/dist/component/{dext-number-input-rac-YKzZS2ZG.js → dext-number-input-rac-BxECUZaK.js} +1 -1
- package/dist/component/{dext-phone-rac-CFZlEH2a.js → dext-phone-rac-BCUCWcrF.js} +1 -1
- package/dist/component/{dext-radio-group-rac-DiH0wIIl.js → dext-radio-group-rac-Bs_64hFW.js} +2 -2
- package/dist/component/{dext-rating-input-rac-D0s-i0qO.js → dext-rating-input-rac-Bl-MBjGQ.js} +1 -1
- package/dist/component/{dext-tags-rac-Br48OQQ5.js → dext-tags-rac-D98sEqwj.js} +2 -2
- package/dist/component/{dext-text-area-rac-6jG8gJ7i.js → dext-text-area-rac-Dsbsk2z4.js} +1 -1
- package/dist/component/{dext-text-input-rac-FAJTCXuf.js → dext-text-input-rac-vYtTnV5G.js} +1 -1
- package/dist/component/{dext-url-input-rac-BoMP8sQB.js → dext-url-input-rac-tJJZOvtn.js} +1 -1
- package/dist/component/{donation-rac-DNi4p-v5.js → donation-rac-CPPSHRbF.js} +60 -58
- package/dist/component/{dropdown-field-headless-7SCC-xOC.js → dropdown-field-headless-BWbsB155.js} +29 -27
- package/dist/component/{dropdown-field-rac-CMzZh6J6.js → dropdown-field-rac-BYyLHTVV.js} +4 -4
- package/dist/component/{dropdown-rac-qeugpHXY.js → dropdown-rac-CyWVQHvW.js} +1 -1
- package/dist/component/{ecom-address-rac-D8b_L5md.js → ecom-address-rac-DLWEUZg7.js} +1 -1
- package/dist/component/{ecom-subscription-checkbox-rac-BnAuR9La.js → ecom-subscription-checkbox-rac-DY-Vzmr5.js} +2 -2
- package/dist/component/{email-input-field-rac-CunXRyc5.js → email-input-field-rac-00Q0cH3p.js} +4 -4
- package/dist/component/{events-repeater-rac-DMjyIOkB.js → events-repeater-rac-C_TDB0VL.js} +12 -8
- package/dist/component/{events-rsvp-rac-BsuDPq2K.js → events-rsvp-rac-Cly4TgEv.js} +4 -4
- package/dist/component/{field-error-headless-E8WjFr_n.js → field-error-headless-sUpR20_V.js} +1 -1
- package/dist/component/{field-label-headless-BakLOu5E.js → field-label-headless-xEHyxl62.js} +1 -1
- package/dist/component/field-rac.module-DP0lkkEv.js +25 -0
- package/dist/component/{file-upload-rac-Clu_c--0.js → file-upload-rac-BLTYhgrR.js} +148 -144
- package/dist/component/{fixed-payment-rac-CzAXxsb-.js → fixed-payment-rac-BBSzAU8U.js} +4 -4
- package/dist/component/{form-DHAKwnLt.js → form-DbRjIc40.js} +2212 -2217
- package/dist/component/form.css +1 -1
- package/dist/component/form.js +1 -1
- package/dist/component/{header-field-rac-CwmVpz3r.js → header-field-rac-DdF0EtGw.js} +2 -2
- package/dist/component/{header-rac-ahkGRjSy.js → header-rac-CQzVj2se.js} +1 -1
- package/dist/component/{image-choice-rac-BwxkkdUu.js → image-choice-rac-F4il5nrs.js} +32 -32
- package/dist/component/{index-BFi_n6B7.js → index-3lV2ezGk.js} +2 -2
- package/dist/component/{index-BQf23zZi.js → index-ClGqqyFk.js} +4 -4
- package/dist/component/{isObjectLike-DHcMRYYH.js → isObjectLike-CbFuWC1b.js} +1 -1
- package/dist/component/{multiline-address-field-rac-C6xaqNOk.js → multiline-address-field-rac-Bhkmy-UH.js} +106 -88
- package/dist/component/{multiline-address-rac-DF4TFuDx.js → multiline-address-rac-CH6ZAJ_l.js} +1 -1
- package/dist/component/{number-input-field-rac-uVJ3SBv2.js → number-input-field-rac-DEBHQQqw.js} +16 -14
- package/dist/component/{number-input-rac-D6ERhrSM.js → number-input-rac-DL3ReqMc.js} +1 -1
- package/dist/component/{password-rac-CAiC0ZKl.js → password-rac-Bo7Va46-.js} +13 -11
- package/dist/component/{payment-input-rac-Bu25xvby.js → payment-input-rac-CyT2kcLF.js} +13 -11
- package/dist/component/{phone-input-field-rac-32qUvCsC.js → phone-input-field-rac-CKCkS2mG.js} +7 -7
- package/dist/component/{phone-rac-mNrpj30q.js → phone-rac-BcW_3aA5.js} +1 -1
- package/dist/component/{product-list-rac-zHdM9rHw.js → product-list-rac-Cxu5KYQ1.js} +49 -49
- package/dist/component/{quiz-radio-group-rac-BaSlT8w3.js → quiz-radio-group-rac-Bam3nw3m.js} +1 -1
- package/dist/component/radio-button-module-classes-D6cil49f.js +134 -0
- package/dist/component/{radio-group-field-rac-DI0UgTBr.js → radio-group-field-rac-BgWnXO5Q.js} +5 -5
- package/dist/component/{radio-group-rac-D2ESG8J4.js → radio-group-rac-BMepx9xD.js} +1 -1
- package/dist/component/{rating-input-field-rac-BYT2XqOK.js → rating-input-field-rac-BmdQzQ1t.js} +5 -5
- package/dist/component/{rating-input-rac-D-5CmVAX.js → rating-input-rac-BuNTgro2.js} +1 -1
- package/dist/component/{rich-content-rac.module-Dp9Advo9.js → rich-content-rac.module-DIShgYK1.js} +1 -1
- package/dist/component/{rich-text-field-rac-COEUwoXQ.js → rich-text-field-rac-CfcWsMcr.js} +2 -2
- package/dist/component/{rich-text-rac-CQZLjBQ0.js → rich-text-rac-CbpbC1i1.js} +1 -1
- package/dist/component/{service-dropdown-rac-BTtJVFv8.js → service-dropdown-rac-_ph-8eMR.js} +5 -5
- package/dist/component/{services-multi-choice-rac-hbY3g0Kb.js → services-multi-choice-rac-VS-18f_N.js} +7 -7
- package/dist/component/{signature-rac-CTCNclwL.js → signature-rac-CgCdt4im.js} +286 -284
- package/dist/component/{submit-button-rac-kKGeVgsG.js → submit-button-rac-CAnahSZG.js} +2 -2
- package/dist/component/{tags-field-rac-CVf7oQr_.js → tags-field-rac-TdxHJoT1.js} +75 -75
- package/dist/component/{tags-rac-DiX1_nTT.js → tags-rac-ivZy_kqq.js} +1 -1
- package/dist/component/{text-area-field-rac-IhBNXiDl.js → text-area-field-rac-C4dg7l8s.js} +15 -13
- package/dist/component/{text-area-rac-DHevCtFF.js → text-area-rac-Dqcg7ApJ.js} +1 -1
- package/dist/component/{text-input-field-rac-Da3_wTdh.js → text-input-field-rac-C6VjmvWa.js} +4 -4
- package/dist/component/text-input-headless-CUsCjQmX.js +47 -0
- package/dist/component/{text-input-rac-564LIZ1_.js → text-input-rac-CMFWBJKG.js} +1 -1
- package/dist/component/{time-input-rac-p-Nnsxp_.js → time-input-rac-cbG7WRTS.js} +29 -27
- package/dist/component/{url-input-field-rac-DjrcpRtm.js → url-input-field-rac-7yh9eqH3.js} +20 -18
- package/dist/component/{url-input-rac-B3brpyop.js → url-input-rac-D_rkLxU0.js} +1 -1
- package/dist/component/{use-dropdown-trigger-class-name-BWTT7ltv.js → use-dropdown-trigger-class-name-B53A0SXh.js} +4 -4
- package/dist/component/{use-element-state-class-name-CUZuhFvZ.js → use-element-state-class-name-glM9I1ZZ.js} +1 -1
- package/dist/component/{use-hoverable-input-class-name-ugX8-g4E.js → use-hoverable-input-class-name-DpOCZ2hg.js} +3 -3
- package/dist/component/{use-is-forced-open-dropdown-DUZMvWpk.js → use-is-forced-open-dropdown-B0M0FaQ-.js} +1 -1
- package/dist/component/{use-service-options-base-hqO9Ev38.js → use-service-options-base-CqZd8Yl3.js} +1 -1
- package/dist/component/use-text-input-class-name-DPUN9lls.js +6 -0
- package/dist/form.d.ts +3 -3
- package/package.json +2 -2
- package/dist/component/field-rac.module-DfEb7pBp.js +0 -25
- package/dist/component/radio-button-module-classes-BdWjkBlX.js +0 -132
- package/dist/component/text-input-headless-DcZRRXCp.js +0 -45
- package/dist/component/use-text-input-class-name-wp9dzpEy.js +0 -6
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
import { RicosViewer as
|
|
1
|
+
import { RicosViewer as oe } from "@wix/ricos/viewer";
|
|
2
2
|
import h from "classnames";
|
|
3
|
-
import t, { useMemo as T, useState as G, useCallback as
|
|
3
|
+
import t, { useMemo as T, useState as G, useCallback as w, useRef as U, useContext as se } from "react";
|
|
4
4
|
import { parseTime as le } from "@internationalized/date";
|
|
5
5
|
import { UNSAFE_PortalProvider as ie } from "react-aria";
|
|
6
|
-
import { ListBoxItem as ce, Select as me, TextField as Q, TimeField as de, SelectValue as ue, Input as W, DateInput as pe, DateSegment as
|
|
7
|
-
import { bo as f, bl as X, bg as q, aV as J, b6 as Z, aI as d, by as L, ba as j, aX as fe, aP as he, bd as be, aR as K, bq as z, S as R, a0 as ge, y as Ie, H as De, v as Ne } from "./form-
|
|
6
|
+
import { ListBoxItem as ce, Select as me, TextField as Q, TimeField as de, SelectValue as ue, Input as W, DateInput as pe, DateSegment as B, TimeFieldStateContext as Ee } from "react-aria-components";
|
|
7
|
+
import { bo as f, bl as X, bg as q, aV as J, b6 as Z, aI as d, by as L, ba as j, aX as fe, aP as he, bd as be, aR as K, bq as z, S as R, a0 as ge, y as Ie, H as De, v as Ne } from "./form-DbRjIc40.js";
|
|
8
8
|
import { f as u, a as P } from "./find-child-C60k4CxG.js";
|
|
9
9
|
import { g as _e } from "./helpers-HmkkXrh2.js";
|
|
10
|
-
import { D as ye, E as Oe } from "./field-error-headless-
|
|
11
|
-
import { L as Te } from "./field-label-headless-
|
|
10
|
+
import { D as ye, E as Oe } from "./field-error-headless-sUpR20_V.js";
|
|
11
|
+
import { L as Te } from "./field-label-headless-xEHyxl62.js";
|
|
12
12
|
import { F as Le } from "./fieldset-headless-CD3fds9J.js";
|
|
13
13
|
import { N as Ce, E as Fe, S as Pe } from "./non-modal-popover-D-u13tmp.js";
|
|
14
|
-
import { a as
|
|
15
|
-
import { V as
|
|
16
|
-
import { C as
|
|
17
|
-
import { E as
|
|
18
|
-
import { H
|
|
19
|
-
import { s as g } from "./field-rac.module-
|
|
20
|
-
import { u as
|
|
14
|
+
import { a as Se } from "./use-is-forced-open-dropdown-B0M0FaQ-.js";
|
|
15
|
+
import { V as Me, a as Re, u as Ae } from "./use-dropdown-trigger-class-name-B53A0SXh.js";
|
|
16
|
+
import { C as ve } from "./chevron-down-icon-CcpVm6B-.js";
|
|
17
|
+
import { E as Ve } from "./error-icon-hZxQ6DEy.js";
|
|
18
|
+
import { H } from "./custom-focus-class-_483Pkwp.js";
|
|
19
|
+
import { s as g } from "./field-rac.module-DP0lkkEv.js";
|
|
20
|
+
import { u as k } from "./use-text-input-class-name-DPUN9lls.js";
|
|
21
21
|
const l = ({ children: e, className: a }) => {
|
|
22
|
-
const { id: n, required: r, onBlur:
|
|
22
|
+
const { id: n, required: r, onBlur: o, onFocus: s, FieldLayout: i } = f(), { inputId: m, labelId: c, ariaDescribedBy: b } = X(), { regionalFormat: p } = q(), _ = T(() => J(p).filter(Z).map((M) => M.toUpperCase()), [
|
|
23
23
|
p
|
|
24
|
-
]),
|
|
24
|
+
]), S = u(e, l.Label), V = u(e, l.Description), D = u(e, l.Error), N = {
|
|
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
|
}, y = u(e, l.Time);
|
|
29
29
|
return /* @__PURE__ */ t.createElement(i, {
|
|
30
30
|
fieldId: n,
|
|
31
|
-
renderLabel: () => P(
|
|
31
|
+
renderLabel: () => P(S, {
|
|
32
32
|
as: "div"
|
|
33
33
|
}),
|
|
34
34
|
renderInput: () => /* @__PURE__ */ t.createElement(Le, {
|
|
@@ -36,27 +36,27 @@ const l = ({ children: e, className: a }) => {
|
|
|
36
36
|
ariaLabelledBy: c,
|
|
37
37
|
ariaDescribedBy: b,
|
|
38
38
|
required: r,
|
|
39
|
-
onBlur:
|
|
40
|
-
onFocus:
|
|
39
|
+
onBlur: o,
|
|
40
|
+
onFocus: s,
|
|
41
41
|
className: a
|
|
42
42
|
}, N[_[0]], N[_[1]], N[_[2]], y),
|
|
43
|
-
renderDescription: () => /* @__PURE__ */ t.createElement(t.Fragment, null, D,
|
|
43
|
+
renderDescription: () => /* @__PURE__ */ t.createElement(t.Fragment, null, D, V)
|
|
44
44
|
});
|
|
45
45
|
}, C = ({ children: e, className: a }) => {
|
|
46
|
-
const { id: n, disabled: r, readOnly:
|
|
47
|
-
|
|
46
|
+
const { id: n, disabled: r, readOnly: o, showDateLabels: s, hidePlaceholder: i } = f(), { labelId: m } = O(d.MONTH), { partValue: c, partError: b, onPartChange: p } = F(d.MONTH), { t: _ } = L(), [S, V] = G(!1), D = Se(n), [N, y] = G(null), M = i ? Fe : _("field.date.placeholder.month"), ee = w((Y) => {
|
|
47
|
+
o || p(typeof Y == "string" ? Y : "");
|
|
48
48
|
}, [
|
|
49
49
|
p,
|
|
50
|
-
|
|
51
|
-
]), te =
|
|
52
|
-
|
|
50
|
+
o
|
|
51
|
+
]), te = w((Y) => {
|
|
52
|
+
V(Y && !o);
|
|
53
53
|
}, [
|
|
54
|
-
|
|
54
|
+
o
|
|
55
55
|
]), ae = u(e, C.Label), ne = u(e, C.Trigger), re = u(e, C.Options);
|
|
56
56
|
return /* @__PURE__ */ t.createElement("div", {
|
|
57
57
|
className: a,
|
|
58
58
|
"data-date-field": !0
|
|
59
|
-
},
|
|
59
|
+
}, s ? ae : null, /* @__PURE__ */ t.createElement("div", {
|
|
60
60
|
ref: y,
|
|
61
61
|
style: {
|
|
62
62
|
display: "contents"
|
|
@@ -64,13 +64,13 @@ const l = ({ children: e, className: a }) => {
|
|
|
64
64
|
}), /* @__PURE__ */ t.createElement(ie, {
|
|
65
65
|
getContainer: () => N
|
|
66
66
|
}, /* @__PURE__ */ t.createElement(me, {
|
|
67
|
-
"aria-labelledby":
|
|
67
|
+
"aria-labelledby": s ? m : void 0,
|
|
68
68
|
value: c || null,
|
|
69
69
|
onChange: ee,
|
|
70
70
|
isDisabled: r,
|
|
71
71
|
isInvalid: b,
|
|
72
|
-
placeholder:
|
|
73
|
-
isOpen: D ||
|
|
72
|
+
placeholder: M,
|
|
73
|
+
isOpen: D || S,
|
|
74
74
|
onOpenChange: D ? void 0 : te
|
|
75
75
|
}, ne, P(re, {
|
|
76
76
|
isForcedOpen: D
|
|
@@ -78,36 +78,38 @@ const l = ({ children: e, className: a }) => {
|
|
|
78
78
|
}, Ye = ({ className: e }) => /* @__PURE__ */ t.createElement($, {
|
|
79
79
|
datePart: d.MONTH,
|
|
80
80
|
className: e
|
|
81
|
-
}),
|
|
82
|
-
const { id: n, readOnly: r } = f(), { inputId:
|
|
81
|
+
}), He = ({ children: e, className: a }) => {
|
|
82
|
+
const { id: n, readOnly: r } = f(), { inputId: o } = O(d.MONTH), { partError: s, isFirstPart: i } = F(d.MONTH), m = U(null);
|
|
83
83
|
return z(() => {
|
|
84
84
|
var c;
|
|
85
|
-
i && ((c = m.current) == null || c.focus(
|
|
85
|
+
i && ((c = m.current) == null || c.focus({
|
|
86
|
+
preventScroll: !0
|
|
87
|
+
}));
|
|
86
88
|
}, n), /* @__PURE__ */ t.createElement(Pe, {
|
|
87
89
|
ref: m,
|
|
88
|
-
id:
|
|
90
|
+
id: o,
|
|
89
91
|
className: a,
|
|
90
92
|
"data-hook": d.MONTH,
|
|
91
|
-
"data-invalid":
|
|
93
|
+
"data-invalid": s || void 0,
|
|
92
94
|
"data-readonly": r || void 0
|
|
93
95
|
}, /* @__PURE__ */ t.createElement(ue, null), e);
|
|
94
|
-
},
|
|
95
|
-
const { isForcedOpen: r } = n, { language:
|
|
96
|
-
|
|
97
|
-
]), i = u(e,
|
|
96
|
+
}, x = ({ children: e, className: a, ...n }) => {
|
|
97
|
+
const { isForcedOpen: r } = n, { language: o } = q(), s = T(() => _e(o), [
|
|
98
|
+
o
|
|
99
|
+
]), i = u(e, x.Option) ?? /* @__PURE__ */ t.createElement(x.Option, null);
|
|
98
100
|
return /* @__PURE__ */ t.createElement(Ce, {
|
|
99
101
|
className: a,
|
|
100
102
|
containerPadding: 0,
|
|
101
103
|
offset: 0
|
|
102
|
-
}, /* @__PURE__ */ t.createElement(
|
|
104
|
+
}, /* @__PURE__ */ t.createElement(Me, {
|
|
103
105
|
isForcedOpen: r,
|
|
104
106
|
autoFocus: r ? !1 : void 0
|
|
105
|
-
},
|
|
107
|
+
}, s.map((m, c) => P(i, {
|
|
106
108
|
key: String(c + 1),
|
|
107
109
|
value: String(c + 1),
|
|
108
110
|
label: m
|
|
109
111
|
}))));
|
|
110
|
-
},
|
|
112
|
+
}, we = ({ className: e, ...a }) => {
|
|
111
113
|
const { value: n, label: r } = a;
|
|
112
114
|
return /* @__PURE__ */ t.createElement(ce, {
|
|
113
115
|
className: e,
|
|
@@ -116,30 +118,32 @@ const l = ({ children: e, className: a }) => {
|
|
|
116
118
|
}, r);
|
|
117
119
|
};
|
|
118
120
|
C.Label = Ye;
|
|
119
|
-
C.Trigger =
|
|
120
|
-
C.Options =
|
|
121
|
-
|
|
121
|
+
C.Trigger = He;
|
|
122
|
+
C.Options = x;
|
|
123
|
+
x.Option = we;
|
|
122
124
|
const A = ({ children: e, className: a }) => {
|
|
123
|
-
const { disabled: n, readOnly: r, showDateLabels:
|
|
125
|
+
const { disabled: n, readOnly: r, showDateLabels: o } = f(), { labelId: s } = O(d.DAY), { partValue: i, partError: m, onPartChange: c } = F(d.DAY), b = u(e, A.Label), p = u(e, A.Input);
|
|
124
126
|
return /* @__PURE__ */ t.createElement("div", {
|
|
125
127
|
className: a,
|
|
126
128
|
"data-date-field": !0
|
|
127
|
-
},
|
|
128
|
-
"aria-labelledby":
|
|
129
|
+
}, o && b, /* @__PURE__ */ t.createElement(Q, {
|
|
130
|
+
"aria-labelledby": o ? s : void 0,
|
|
129
131
|
value: i,
|
|
130
132
|
onChange: c,
|
|
131
133
|
isDisabled: n,
|
|
132
134
|
isReadOnly: r,
|
|
133
135
|
isInvalid: m
|
|
134
136
|
}, p));
|
|
135
|
-
},
|
|
137
|
+
}, xe = ({ className: e }) => /* @__PURE__ */ t.createElement($, {
|
|
136
138
|
datePart: d.DAY,
|
|
137
139
|
className: e
|
|
138
|
-
}),
|
|
139
|
-
const { id: a, hidePlaceholder: n } = f(), { inputId: r } = O(d.DAY), { isFirstPart:
|
|
140
|
+
}), Be = ({ className: e }) => {
|
|
141
|
+
const { id: a, hidePlaceholder: n } = f(), { inputId: r } = O(d.DAY), { isFirstPart: o } = F(d.DAY), { t: s } = L(), i = U(null), m = n ? void 0 : s("field.date.placeholder.day");
|
|
140
142
|
return z(() => {
|
|
141
143
|
var c;
|
|
142
|
-
|
|
144
|
+
o && ((c = i.current) == null || c.focus({
|
|
145
|
+
preventScroll: !0
|
|
146
|
+
}));
|
|
143
147
|
}, a), /* @__PURE__ */ t.createElement(W, {
|
|
144
148
|
ref: i,
|
|
145
149
|
id: r,
|
|
@@ -150,29 +154,31 @@ const A = ({ children: e, className: a }) => {
|
|
|
150
154
|
"data-hook": d.DAY
|
|
151
155
|
});
|
|
152
156
|
};
|
|
153
|
-
A.Label =
|
|
154
|
-
A.Input =
|
|
155
|
-
const
|
|
156
|
-
const { disabled: n, readOnly: r, showDateLabels:
|
|
157
|
+
A.Label = xe;
|
|
158
|
+
A.Input = Be;
|
|
159
|
+
const v = ({ children: e, className: a }) => {
|
|
160
|
+
const { disabled: n, readOnly: r, showDateLabels: o } = f(), { labelId: s } = O(d.YEAR), { partValue: i, partError: m, onPartChange: c } = F(d.YEAR), b = u(e, v.Label), p = u(e, v.Input);
|
|
157
161
|
return /* @__PURE__ */ t.createElement("div", {
|
|
158
162
|
className: a,
|
|
159
163
|
"data-date-field": !0
|
|
160
|
-
},
|
|
161
|
-
"aria-labelledby":
|
|
164
|
+
}, o && b, /* @__PURE__ */ t.createElement(Q, {
|
|
165
|
+
"aria-labelledby": o ? s : void 0,
|
|
162
166
|
value: i,
|
|
163
167
|
onChange: c,
|
|
164
168
|
isDisabled: n,
|
|
165
169
|
isReadOnly: r,
|
|
166
170
|
isInvalid: m
|
|
167
171
|
}, p));
|
|
168
|
-
},
|
|
172
|
+
}, ke = ({ className: e }) => /* @__PURE__ */ t.createElement($, {
|
|
169
173
|
datePart: d.YEAR,
|
|
170
174
|
className: e
|
|
171
175
|
}), Ue = ({ className: e }) => {
|
|
172
|
-
const { id: a, hidePlaceholder: n } = f(), { inputId: r } = O(d.YEAR), { isFirstPart:
|
|
176
|
+
const { id: a, hidePlaceholder: n } = f(), { inputId: r } = O(d.YEAR), { isFirstPart: o } = F(d.YEAR), { t: s } = L(), i = U(null), m = n ? void 0 : s("field.date.placeholder.year");
|
|
173
177
|
return z(() => {
|
|
174
178
|
var c;
|
|
175
|
-
|
|
179
|
+
o && ((c = i.current) == null || c.focus({
|
|
180
|
+
preventScroll: !0
|
|
181
|
+
}));
|
|
176
182
|
}, a), /* @__PURE__ */ t.createElement(W, {
|
|
177
183
|
ref: i,
|
|
178
184
|
id: r,
|
|
@@ -183,31 +189,31 @@ const V = ({ children: e, className: a }) => {
|
|
|
183
189
|
"data-hook": d.YEAR
|
|
184
190
|
});
|
|
185
191
|
};
|
|
186
|
-
|
|
187
|
-
|
|
192
|
+
v.Label = ke;
|
|
193
|
+
v.Input = Ue;
|
|
188
194
|
const I = ({ children: e, className: a }) => {
|
|
189
|
-
const { disabled: n, readOnly: r, use24HourFormat:
|
|
195
|
+
const { disabled: n, readOnly: r, use24HourFormat: o, showDateLabels: s } = f(), { labelId: i } = O("time"), { partValue: m, partError: c, onPartChange: b } = F("time"), p = u(e, I.Label), _ = u(e, I.Input);
|
|
190
196
|
return /* @__PURE__ */ t.createElement("div", {
|
|
191
197
|
className: a,
|
|
192
198
|
"data-date-field": !0
|
|
193
|
-
},
|
|
194
|
-
"aria-labelledby":
|
|
199
|
+
}, s && p, /* @__PURE__ */ t.createElement(de, {
|
|
200
|
+
"aria-labelledby": s ? i : void 0,
|
|
195
201
|
value: m,
|
|
196
202
|
onChange: b,
|
|
197
203
|
isDisabled: n,
|
|
198
204
|
isReadOnly: r,
|
|
199
205
|
isInvalid: c,
|
|
200
|
-
hourCycle:
|
|
206
|
+
hourCycle: o ? 24 : 12
|
|
201
207
|
}, _));
|
|
202
208
|
}, qe = ({ className: e }) => {
|
|
203
|
-
const { inputId: a, labelId: n } = O("time"), { t: r } = L(),
|
|
209
|
+
const { inputId: a, labelId: n } = O("time"), { t: r } = L(), o = r("field.date.label.time");
|
|
204
210
|
return /* @__PURE__ */ t.createElement("label", {
|
|
205
211
|
id: n,
|
|
206
212
|
htmlFor: a,
|
|
207
213
|
className: e
|
|
208
|
-
},
|
|
214
|
+
}, o);
|
|
209
215
|
}, ze = ({ children: e, className: a }) => {
|
|
210
|
-
const { hidePlaceholder: n } = f(), r = u(e, I.Hour),
|
|
216
|
+
const { hidePlaceholder: n } = f(), r = u(e, I.Hour), o = u(e, I.Minute), s = u(e, I.Period);
|
|
211
217
|
return /* @__PURE__ */ t.createElement(pe, {
|
|
212
218
|
className: a,
|
|
213
219
|
"data-hook": "time",
|
|
@@ -219,15 +225,15 @@ const I = ({ children: e, className: a }) => {
|
|
|
219
225
|
segment: i
|
|
220
226
|
}) || /* @__PURE__ */ t.createElement(t.Fragment, null);
|
|
221
227
|
case "minute":
|
|
222
|
-
return P(
|
|
228
|
+
return P(o, {
|
|
223
229
|
segment: i
|
|
224
230
|
}) || /* @__PURE__ */ t.createElement(t.Fragment, null);
|
|
225
231
|
case "dayPeriod":
|
|
226
|
-
return P(
|
|
232
|
+
return P(s, {
|
|
227
233
|
segment: i
|
|
228
234
|
}) || /* @__PURE__ */ t.createElement(t.Fragment, null);
|
|
229
235
|
case "literal":
|
|
230
|
-
return /* @__PURE__ */ t.createElement(
|
|
236
|
+
return /* @__PURE__ */ t.createElement(B, {
|
|
231
237
|
segment: i
|
|
232
238
|
});
|
|
233
239
|
default:
|
|
@@ -235,26 +241,26 @@ const I = ({ children: e, className: a }) => {
|
|
|
235
241
|
}
|
|
236
242
|
});
|
|
237
243
|
}, $e = ({ className: e, ...a }) => {
|
|
238
|
-
const { hidePlaceholder: n } = f(), { segment: r } = a, { t:
|
|
239
|
-
return /* @__PURE__ */ t.createElement(
|
|
244
|
+
const { hidePlaceholder: n } = f(), { segment: r } = a, { t: o } = L(), s = n ? void 0 : o("field.date.placeholder.hour");
|
|
245
|
+
return /* @__PURE__ */ t.createElement(B, {
|
|
240
246
|
segment: r,
|
|
241
247
|
className: e,
|
|
242
|
-
...
|
|
243
|
-
placeholder:
|
|
248
|
+
...s && {
|
|
249
|
+
placeholder: s
|
|
244
250
|
}
|
|
245
251
|
});
|
|
246
252
|
}, Ge = ({ className: e, ...a }) => {
|
|
247
|
-
const { hidePlaceholder: n } = f(), { segment: r } = a, { t:
|
|
248
|
-
return /* @__PURE__ */ t.createElement(
|
|
253
|
+
const { hidePlaceholder: n } = f(), { segment: r } = a, { t: o } = L(), s = n ? void 0 : o("field.date.placeholder.minute");
|
|
254
|
+
return /* @__PURE__ */ t.createElement(B, {
|
|
249
255
|
segment: r,
|
|
250
256
|
className: e,
|
|
251
|
-
...
|
|
252
|
-
placeholder:
|
|
257
|
+
...s && {
|
|
258
|
+
placeholder: s
|
|
253
259
|
}
|
|
254
260
|
});
|
|
255
261
|
}, je = ({ className: e, ...a }) => {
|
|
256
|
-
const { hidePlaceholder: n } = f(), { segment: r } = a, { t:
|
|
257
|
-
return /* @__PURE__ */ t.createElement(
|
|
262
|
+
const { hidePlaceholder: n } = f(), { segment: r } = a, { t: o } = L(), s = se(Ee), i = n ? void 0 : o("field.date.placeholder.period"), m = () => s == null ? void 0 : s.increment("dayPeriod");
|
|
263
|
+
return /* @__PURE__ */ t.createElement(B, {
|
|
258
264
|
segment: r,
|
|
259
265
|
className: e,
|
|
260
266
|
onClick: m,
|
|
@@ -271,7 +277,7 @@ I.Period = je;
|
|
|
271
277
|
l.Label = Te;
|
|
272
278
|
l.Month = C;
|
|
273
279
|
l.Day = A;
|
|
274
|
-
l.Year =
|
|
280
|
+
l.Year = v;
|
|
275
281
|
l.Time = I;
|
|
276
282
|
l.Description = ye;
|
|
277
283
|
l.Error = Oe;
|
|
@@ -289,31 +295,31 @@ function O(e) {
|
|
|
289
295
|
]);
|
|
290
296
|
}
|
|
291
297
|
function F(e) {
|
|
292
|
-
const { value: a, onChange: n, hasError: r = !1 } = f(), { regionalFormat:
|
|
298
|
+
const { value: a, onChange: n, hasError: r = !1 } = f(), { regionalFormat: o } = q(), [s, i] = T(() => j(a ?? ""), [
|
|
293
299
|
a
|
|
294
300
|
]), m = T(() => fe(r, a ?? ""), [
|
|
295
301
|
a,
|
|
296
302
|
r
|
|
297
|
-
]), c = T(() => he(
|
|
298
|
-
|
|
303
|
+
]), c = T(() => he(s), [
|
|
304
|
+
s
|
|
299
305
|
]), b = T(() => Ke(i), [
|
|
300
306
|
i
|
|
301
|
-
]), p =
|
|
302
|
-
const N = Qe(D), y = K(
|
|
307
|
+
]), p = w((D) => {
|
|
308
|
+
const N = Qe(D), y = K(s, N);
|
|
303
309
|
n(y);
|
|
304
310
|
}, [
|
|
305
311
|
n,
|
|
306
|
-
|
|
307
|
-
]), _ =
|
|
308
|
-
const [, N] = j(a ?? ""), y = be(D, e, c),
|
|
309
|
-
n(
|
|
312
|
+
s
|
|
313
|
+
]), _ = w((D) => {
|
|
314
|
+
const [, N] = j(a ?? ""), y = be(D, e, c), M = K(y, N);
|
|
315
|
+
n(M);
|
|
310
316
|
}, [
|
|
311
317
|
n,
|
|
312
318
|
a,
|
|
313
319
|
c,
|
|
314
320
|
e
|
|
315
|
-
]),
|
|
316
|
-
|
|
321
|
+
]), S = T(() => e === "time" ? !1 : J(o).filter(Z).map((y) => y.toUpperCase())[0] === e, [
|
|
322
|
+
o,
|
|
317
323
|
e
|
|
318
324
|
]);
|
|
319
325
|
return e === "time" ? {
|
|
@@ -325,11 +331,11 @@ function F(e) {
|
|
|
325
331
|
partValue: c[e] || "",
|
|
326
332
|
partError: m[e],
|
|
327
333
|
onPartChange: _,
|
|
328
|
-
isFirstPart:
|
|
334
|
+
isFirstPart: S
|
|
329
335
|
};
|
|
330
336
|
}
|
|
331
337
|
function $({ datePart: e, className: a }) {
|
|
332
|
-
const { inputId: n, labelId: r } = O(e), { t:
|
|
338
|
+
const { inputId: n, labelId: r } = O(e), { t: o } = L(), s = `field.date.label.${e.toLowerCase()}`, i = o(s);
|
|
333
339
|
return /* @__PURE__ */ t.createElement("label", {
|
|
334
340
|
id: r,
|
|
335
341
|
htmlFor: n,
|
|
@@ -355,7 +361,7 @@ function Qe(e) {
|
|
|
355
361
|
r
|
|
356
362
|
].join(":");
|
|
357
363
|
}
|
|
358
|
-
const We = "
|
|
364
|
+
const We = "_fields_16388_1", Xe = "_month_16388_10", Je = "_day_16388_11", Ze = "_year_16388_12", et = "_timeGroup_16388_13", tt = "_dayInput_16388_34", at = "_yearInput_16388_35", nt = "_monthTrigger_16388_39", rt = "_monthOption_16388_59", ot = "_time_16388_13", st = "_hour_16388_81", lt = "_minute_16388_82", it = "_period_16388_83", E = {
|
|
359
365
|
fields: We,
|
|
360
366
|
month: Xe,
|
|
361
367
|
day: Je,
|
|
@@ -365,15 +371,15 @@ const We = "_fields_1meki_1", Xe = "_month_1meki_10", Je = "_day_1meki_11", Ze =
|
|
|
365
371
|
yearInput: at,
|
|
366
372
|
monthTrigger: nt,
|
|
367
373
|
monthOption: rt,
|
|
368
|
-
time:
|
|
369
|
-
hour:
|
|
374
|
+
time: ot,
|
|
375
|
+
hour: st,
|
|
370
376
|
minute: lt,
|
|
371
377
|
period: it
|
|
372
|
-
}, ct = ({ content: e, locale: a }) => /* @__PURE__ */ t.createElement(
|
|
378
|
+
}, ct = ({ content: e, locale: a }) => /* @__PURE__ */ t.createElement(oe, {
|
|
373
379
|
content: e,
|
|
374
380
|
locale: a
|
|
375
|
-
}),
|
|
376
|
-
const e = Re(E.monthTrigger), a = Ae(E.monthOption,
|
|
381
|
+
}), St = () => {
|
|
382
|
+
const e = Re(E.monthTrigger), a = Ae(E.monthOption, H), n = k(E.dayInput), r = k(E.yearInput), o = k(E.time);
|
|
377
383
|
return /* @__PURE__ */ t.createElement(l, {
|
|
378
384
|
className: E.fields
|
|
379
385
|
}, /* @__PURE__ */ t.createElement(l.Label, {
|
|
@@ -386,7 +392,7 @@ const We = "_fields_1meki_1", Xe = "_month_1meki_10", Je = "_day_1meki_11", Ze =
|
|
|
386
392
|
className: h(R, g.label)
|
|
387
393
|
}), /* @__PURE__ */ t.createElement(l.Month.Trigger, {
|
|
388
394
|
className: e
|
|
389
|
-
}, /* @__PURE__ */ t.createElement(
|
|
395
|
+
}, /* @__PURE__ */ t.createElement(ve, {
|
|
390
396
|
className: g.dropdownIcon
|
|
391
397
|
})), /* @__PURE__ */ t.createElement(l.Month.Options, {
|
|
392
398
|
className: h(Ie, g.selectPopover, g.dropdownPopover)
|
|
@@ -409,19 +415,19 @@ const We = "_fields_1meki_1", Xe = "_month_1meki_10", Je = "_day_1meki_11", Ze =
|
|
|
409
415
|
}, /* @__PURE__ */ t.createElement(l.Time.Label, {
|
|
410
416
|
className: h(R, g.label)
|
|
411
417
|
}), /* @__PURE__ */ t.createElement(l.Time.Input, {
|
|
412
|
-
className:
|
|
418
|
+
className: o
|
|
413
419
|
}, /* @__PURE__ */ t.createElement(l.Time.Hour, {
|
|
414
|
-
className: h(E.hour,
|
|
420
|
+
className: h(E.hour, H)
|
|
415
421
|
}), /* @__PURE__ */ t.createElement(l.Time.Minute, {
|
|
416
|
-
className: h(E.minute,
|
|
422
|
+
className: h(E.minute, H)
|
|
417
423
|
}), /* @__PURE__ */ t.createElement(l.Time.Period, {
|
|
418
|
-
className: h(E.period,
|
|
424
|
+
className: h(E.period, H)
|
|
419
425
|
}))), /* @__PURE__ */ t.createElement(l.Error, {
|
|
420
426
|
className: h(De, g.error)
|
|
421
|
-
}, /* @__PURE__ */ t.createElement(
|
|
427
|
+
}, /* @__PURE__ */ t.createElement(Ve, null), /* @__PURE__ */ t.createElement(l.Error.Text, null)), /* @__PURE__ */ t.createElement(l.Description, {
|
|
422
428
|
className: h(Ne, g.description)
|
|
423
429
|
}, ct));
|
|
424
430
|
};
|
|
425
431
|
export {
|
|
426
|
-
|
|
432
|
+
St as D
|
|
427
433
|
};
|
package/dist/component/{dext-checkbox-group-rac-WTVwhGG0.js → dext-checkbox-group-rac-DdEAXUYC.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import o from "react";
|
|
2
|
-
import { bo as e, aq as t } from "./form-
|
|
3
|
-
import { C as p } from "./checkbox-group-field-rac-
|
|
2
|
+
import { bo as e, aq as t } from "./form-DbRjIc40.js";
|
|
3
|
+
import { C as p } from "./checkbox-group-field-rac-CMj-kfFN.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-DiH0wIIl.js → dext-radio-group-rac-Bs_64hFW.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import o from "react";
|
|
2
|
-
import { bo as e, aq as t } from "./form-
|
|
3
|
-
import { R as p } from "./radio-group-field-rac-
|
|
2
|
+
import { bo as e, aq as t } from "./form-DbRjIc40.js";
|
|
3
|
+
import { R as p } from "./radio-group-field-rac-BgWnXO5Q.js";
|
|
4
4
|
import { a } from "./default-limits-D7qVv_Hv.js";
|
|
5
5
|
const l = () => {
|
|
6
6
|
const r = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import r from "react";
|
|
2
|
-
import { bo as e, aq as o } from "./form-
|
|
3
|
-
import { T as s } from "./tags-field-rac-
|
|
2
|
+
import { bo as e, aq as o } from "./form-DbRjIc40.js";
|
|
3
|
+
import { T as s } from "./tags-field-rac-TdxHJoT1.js";
|
|
4
4
|
import { b as a } from "./default-limits-D7qVv_Hv.js";
|
|
5
5
|
const l = () => {
|
|
6
6
|
const t = {
|