@wix/form-elements 1.145.0 → 1.147.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-De-uH9rz.js → appointment-rac-BG5-bIZU.js} +98 -98
- package/dist/component/{bookings-address-rac-DB6QCMQJ.js → bookings-address-rac-8e8PqKsp.js} +1 -1
- package/dist/component/{bookings-email-rac-g6ZdB_BO.js → bookings-email-rac-CtlnU8ws.js} +1 -1
- package/dist/component/{bookings-first-name-rac-DQgL_VHl.js → bookings-first-name-rac-CrivNlXM.js} +1 -1
- package/dist/component/{bookings-header-rac-DAnIm-Oq.js → bookings-header-rac-DWDAjfqq.js} +1 -1
- package/dist/component/{bookings-last-name-rac-D62jNdDb.js → bookings-last-name-rac-qAthWem2.js} +1 -1
- package/dist/component/{bookings-login-bar-rac-5z8HfBhU.js → bookings-login-bar-rac-BNyUDqlM.js} +6 -6
- package/dist/component/{bookings-phone-rac-D0gu-_wy.js → bookings-phone-rac-Tc39XLr7.js} +1 -1
- package/dist/component/{bookings-rich-text-rac-b4J1HcdI.js → bookings-rich-text-rac-CPNaPtFK.js} +1 -1
- package/dist/component/{checkbox-field-rac-CmRRc9Dz.js → checkbox-field-rac-DEa78Tpf.js} +4 -4
- package/dist/component/{checkbox-group-field-headless-CB8yAfMe.js → checkbox-group-field-headless-BxBaMg29.js} +68 -68
- package/dist/component/{checkbox-group-field-rac-C5gRZRTd.js → checkbox-group-field-rac-CRRP03Qk.js} +7 -7
- package/dist/component/{checkbox-group-rac-DNDF1Irh.js → checkbox-group-rac-TOofMGl3.js} +1 -1
- package/dist/component/{checkbox-rac-B9vztGBU.js → checkbox-rac-CHMHr8Ry.js} +1 -1
- package/dist/component/{contacts-address-rac-CKZeSncj.js → contacts-address-rac-Bc5yDvTL.js} +1 -1
- package/dist/component/{contacts-birthdate-rac-BbpNNQgF.js → contacts-birthdate-rac-Ubtg5ncv.js} +1 -1
- package/dist/component/{contacts-company-rac-BX2KT201.js → contacts-company-rac-BksH9IoV.js} +1 -1
- package/dist/component/{contacts-email-rac-5Irzx1mA.js → contacts-email-rac-DDPEtMAm.js} +1 -1
- package/dist/component/{contacts-first-name-rac-CxKp8_2u.js → contacts-first-name-rac-DUlCvEdx.js} +1 -1
- package/dist/component/{contacts-last-name-rac-BDCbSv5I.js → contacts-last-name-rac-BikqNgUr.js} +1 -1
- package/dist/component/{contacts-phone-rac-BM_PV_uH.js → contacts-phone-rac-B4OEgM_8.js} +1 -1
- package/dist/component/{contacts-position-rac-1aqthQSi.js → contacts-position-rac-BfybzySV.js} +1 -1
- package/dist/component/{contacts-subscribe-rac-CdqXs4kp.js → contacts-subscribe-rac-CMHb33v1.js} +1 -1
- package/dist/component/{contacts-tax-id-rac-BKHpcDb6.js → contacts-tax-id-rac-C-qEqwO5.js} +1 -1
- package/dist/component/{date-availability-DmFFTX8p.js → date-availability-DZ3J3LLm.js} +1 -1
- package/dist/component/date-input-field-rac-DeL5vuE7.js +297 -0
- package/dist/component/{date-input-rac-BB6qZ16w.js → date-input-rac-Di6TQvFf.js} +1 -1
- package/dist/component/{date-picker-field-rac-Ckwu2vD6.js → date-picker-field-rac-BcdpTkjV.js} +107 -103
- package/dist/component/{date-picker-rac-DSqzUAaH.js → date-picker-rac-Brne65gr.js} +1 -1
- package/dist/component/{date-time-input-field-rac-DO-iRdkW.js → date-time-input-field-rac-BtQfAxRp.js} +49 -49
- package/dist/component/{date-time-input-rac-smVCCxdY.js → date-time-input-rac-DM_HXiqV.js} +1 -1
- package/dist/component/{dext-checkbox-group-rac-B8bx3rT2.js → dext-checkbox-group-rac-WTVwhGG0.js} +2 -2
- package/dist/component/{dext-checkbox-rac-x8VLGRbc.js → dext-checkbox-rac-BR5YwmLQ.js} +1 -1
- package/dist/component/{dext-date-picker-rac-D2a9NXap.js → dext-date-picker-rac-DvDuRGYi.js} +1 -1
- package/dist/component/{dext-date-time-input-rac-Cp5XjpGv.js → dext-date-time-input-rac-C6RgbaVv.js} +1 -1
- package/dist/component/{dext-dropdown-rac-nWgEvyxt.js → dext-dropdown-rac-CWjSdcZx.js} +1 -1
- package/dist/component/{dext-email-rac-CkX6ya8p.js → dext-email-rac-D-C1gVTq.js} +1 -1
- package/dist/component/{dext-number-input-rac-CKT0MS1x.js → dext-number-input-rac-YKzZS2ZG.js} +1 -1
- package/dist/component/{dext-phone-rac-DM2E7zW_.js → dext-phone-rac-CFZlEH2a.js} +1 -1
- package/dist/component/dext-radio-group-rac-DiH0wIIl.js +18 -0
- package/dist/component/{dext-rating-input-rac-CKWNpFuu.js → dext-rating-input-rac-D0s-i0qO.js} +1 -1
- package/dist/component/{dext-tags-rac-6AskGGTp.js → dext-tags-rac-Br48OQQ5.js} +2 -2
- package/dist/component/{dext-text-area-rac-ClGLD7sD.js → dext-text-area-rac-6jG8gJ7i.js} +1 -1
- package/dist/component/{dext-text-input-rac-Blbk53d4.js → dext-text-input-rac-FAJTCXuf.js} +1 -1
- package/dist/component/{dext-url-input-rac-BuitmJU0.js → dext-url-input-rac-BoMP8sQB.js} +1 -1
- package/dist/component/{donation-rac-DOifFCD7.js → donation-rac-DNi4p-v5.js} +69 -69
- package/dist/component/{dropdown-field-headless-m2P6s7X5.js → dropdown-field-headless-7SCC-xOC.js} +27 -27
- package/dist/component/{dropdown-field-rac-5e6wWJBl.js → dropdown-field-rac-CMzZh6J6.js} +8 -9
- package/dist/component/{dropdown-rac-BGxE9pJB.js → dropdown-rac-qeugpHXY.js} +1 -1
- package/dist/component/{ecom-address-rac-kbD9qW5Y.js → ecom-address-rac-D8b_L5md.js} +1 -1
- package/dist/component/{ecom-subscription-checkbox-rac-CE-Yixnj.js → ecom-subscription-checkbox-rac-BnAuR9La.js} +5 -5
- package/dist/component/{email-input-field-rac-CbwcB33o.js → email-input-field-rac-CunXRyc5.js} +64 -62
- package/dist/component/{events-repeater-rac-CGhUscBr.js → events-repeater-rac-DMjyIOkB.js} +17 -17
- package/dist/component/{events-rsvp-rac-AQ33zPTe.js → events-rsvp-rac-BsuDPq2K.js} +8 -8
- package/dist/component/{field-error-headless-ClPQ03Jc.js → field-error-headless-E8WjFr_n.js} +6 -6
- package/dist/component/{field-label-headless-DhN8Lkuq.js → field-label-headless-BakLOu5E.js} +15 -15
- package/dist/component/{file-upload-rac-yTx1ZRhZ.js → file-upload-rac-Clu_c--0.js} +43 -43
- package/dist/component/{fixed-payment-rac-nlyxa9nB.js → fixed-payment-rac-CzAXxsb-.js} +12 -12
- package/dist/component/{form-D3iU18lh.js → form-DHAKwnLt.js} +3850 -3872
- package/dist/component/form.css +1 -1
- package/dist/component/form.js +2 -2
- package/dist/component/{header-field-rac-DAEzcleV.js → header-field-rac-CwmVpz3r.js} +4 -4
- package/dist/component/{header-rac-CJZ4qMFg.js → header-rac-ahkGRjSy.js} +1 -1
- package/dist/component/{image-choice-rac-BFAMHwPh.js → image-choice-rac-BwxkkdUu.js} +17 -17
- package/dist/component/{index-DQW26cnX.js → index-BFi_n6B7.js} +2 -2
- package/dist/component/{index-W7GOFnq8.js → index-BQf23zZi.js} +91 -91
- package/dist/component/{isObjectLike-CE8eaxSI.js → isObjectLike-DHcMRYYH.js} +15 -15
- package/dist/component/{multiline-address-field-rac-FbJO0HFf.js → multiline-address-field-rac-C6xaqNOk.js} +68 -60
- package/dist/component/{multiline-address-rac-CI-vt6Pm.js → multiline-address-rac-DF4TFuDx.js} +1 -1
- package/dist/component/{number-input-field-rac-BRVAr7LL.js → number-input-field-rac-uVJ3SBv2.js} +27 -27
- package/dist/component/{number-input-rac-C8hCiJiu.js → number-input-rac-D6ERhrSM.js} +1 -1
- package/dist/component/{password-rac-Baslr6Ga.js → password-rac-CAiC0ZKl.js} +47 -46
- package/dist/component/{payment-input-rac-CfJSKxYz.js → payment-input-rac-Bu25xvby.js} +33 -32
- package/dist/component/{phone-input-field-rac-Dqh4CXdC.js → phone-input-field-rac-32qUvCsC.js} +46 -45
- package/dist/component/{phone-rac-DaLuGuxd.js → phone-rac-mNrpj30q.js} +1 -1
- package/dist/component/{product-list-rac-PNMwRBtL.js → product-list-rac-zHdM9rHw.js} +53 -53
- package/dist/component/{quiz-radio-group-rac-DN8vY-oM.js → quiz-radio-group-rac-BaSlT8w3.js} +1 -1
- package/dist/component/{radio-button-module-classes-DlJi9a2f.js → radio-button-module-classes-BdWjkBlX.js} +9 -9
- package/dist/component/{radio-group-field-rac-C0tLXhl5.js → radio-group-field-rac-DI0UgTBr.js} +12 -12
- package/dist/component/{radio-group-rac-FAk7PYgP.js → radio-group-rac-D2ESG8J4.js} +1 -1
- package/dist/component/{rating-input-field-rac-Cl1kH_uu.js → rating-input-field-rac-BYT2XqOK.js} +26 -26
- package/dist/component/{rating-input-rac-D9p-0pkI.js → rating-input-rac-D-5CmVAX.js} +1 -1
- package/dist/component/{rich-content-rac.module-Dkr46kPC.js → rich-content-rac.module-Dp9Advo9.js} +8 -8
- package/dist/component/{rich-text-field-rac-DthhTvTp.js → rich-text-field-rac-COEUwoXQ.js} +4 -4
- package/dist/component/{rich-text-rac-DqZX4NeB.js → rich-text-rac-CQZLjBQ0.js} +1 -1
- package/dist/component/{service-dropdown-rac-BMOGLU2Z.js → service-dropdown-rac-BTtJVFv8.js} +44 -45
- package/dist/component/{services-multi-choice-rac-DcdUewzJ.js → services-multi-choice-rac-hbY3g0Kb.js} +11 -11
- package/dist/component/{signature-rac-BRvN6kUW.js → signature-rac-CTCNclwL.js} +67 -67
- package/dist/component/{submit-button-rac-B70UC8eS.js → submit-button-rac-kKGeVgsG.js} +25 -25
- package/dist/component/{tags-field-rac-NpYyV8X4.js → tags-field-rac-CVf7oQr_.js} +35 -35
- package/dist/component/{tags-rac-BMEbpJ-z.js → tags-rac-DiX1_nTT.js} +1 -1
- package/dist/component/{text-area-field-rac-BLSrNwJ6.js → text-area-field-rac-IhBNXiDl.js} +22 -22
- package/dist/component/{text-area-rac-Cm7aAfIz.js → text-area-rac-DHevCtFF.js} +1 -1
- package/dist/component/{text-input-field-rac-BDqV7s0M.js → text-input-field-rac-Da3_wTdh.js} +5 -5
- package/dist/component/text-input-headless-DcZRRXCp.js +45 -0
- package/dist/component/{text-input-rac-Cc_SkCCS.js → text-input-rac-564LIZ1_.js} +1 -1
- package/dist/component/{time-input-rac-DDCiAFe2.js → time-input-rac-p-Nnsxp_.js} +54 -54
- package/dist/component/{url-input-field-rac-jen6pbz7.js → url-input-field-rac-DjrcpRtm.js} +27 -26
- package/dist/component/{url-input-rac-BWh6udtS.js → url-input-rac-B3brpyop.js} +1 -1
- package/dist/component/use-dropdown-trigger-class-name-BWTT7ltv.js +117 -0
- package/dist/component/{use-element-state-class-name-B1r_nXW1.js → use-element-state-class-name-CUZuhFvZ.js} +3 -3
- package/dist/component/{use-hoverable-input-class-name-B-FhrcyQ.js → use-hoverable-input-class-name-ugX8-g4E.js} +6 -6
- package/dist/component/use-is-forced-open-dropdown-DUZMvWpk.js +48 -0
- package/dist/component/{use-service-options-base-CTA_43F3.js → use-service-options-base-hqO9Ev38.js} +6 -6
- package/dist/component/use-text-input-class-name-wp9dzpEy.js +6 -0
- package/dist/form.d.ts +5 -0
- package/package.json +2 -2
- package/dist/component/date-input-field-rac-BnlAOn12.js +0 -290
- package/dist/component/dext-radio-group-rac-Czr5yY3K.js +0 -18
- package/dist/component/text-input-headless-B0jcwDev.js +0 -44
- package/dist/component/use-dropdown-option-class-name-OD8brKoy.js +0 -115
- package/dist/component/use-dropdown-trigger-class-name-BrkmG0ad.js +0 -40
- package/dist/component/use-text-input-class-name-BXuk3TK7.js +0 -6
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
import { RicosViewer as se } from "@wix/ricos/viewer";
|
|
2
2
|
import h from "classnames";
|
|
3
|
-
import t, { useMemo as T, useState as
|
|
3
|
+
import t, { useMemo as T, useState as G, useCallback as H, useRef as U, useContext as oe } 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
|
|
7
|
-
import {
|
|
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 x, 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-DHAKwnLt.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-E8WjFr_n.js";
|
|
11
|
+
import { L as Te } from "./field-label-headless-BakLOu5E.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 Me
|
|
15
|
-
import { V as Re, u as Ae } from "./use-dropdown-
|
|
14
|
+
import { a as Me } from "./use-is-forced-open-dropdown-DUZMvWpk.js";
|
|
15
|
+
import { V as Se, a as Re, u as Ae } from "./use-dropdown-trigger-class-name-BWTT7ltv.js";
|
|
16
16
|
import { C as Ve } from "./chevron-down-icon-CcpVm6B-.js";
|
|
17
|
-
import { E as
|
|
17
|
+
import { E as ve } from "./error-icon-hZxQ6DEy.js";
|
|
18
18
|
import { H as k } from "./custom-focus-class-_483Pkwp.js";
|
|
19
19
|
import { s as g } from "./field-rac.module-DfEb7pBp.js";
|
|
20
|
-
import { u as B } from "./use-text-input-class-name-
|
|
20
|
+
import { u as B } from "./use-text-input-class-name-wp9dzpEy.js";
|
|
21
21
|
const l = ({ children: e, className: a }) => {
|
|
22
|
-
const { id: n, required: r, onBlur: s, onFocus: o, FieldLayout: i } = f(), { inputId: m, labelId: c, ariaDescribedBy: b } =
|
|
22
|
+
const { id: n, required: r, onBlur: s, onFocus: o, FieldLayout: i } = f(), { inputId: m, labelId: c, ariaDescribedBy: b } = X(), { regionalFormat: p } = q(), _ = T(() => J(p).filter(Z).map((S) => S.toUpperCase()), [
|
|
23
23
|
p
|
|
24
|
-
]), M = u(e, l.Label),
|
|
24
|
+
]), M = 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)
|
|
@@ -40,16 +40,16 @@ const l = ({ children: e, className: a }) => {
|
|
|
40
40
|
onFocus: o,
|
|
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: s, showDateLabels: o, hidePlaceholder: i } = f(), { labelId: m } = O(d.MONTH), { partValue: c, partError: b, onPartChange: p } = F(d.MONTH), { t: _ } = L(), [M,
|
|
47
|
-
s || p(typeof
|
|
46
|
+
const { id: n, disabled: r, readOnly: s, showDateLabels: o, hidePlaceholder: i } = f(), { labelId: m } = O(d.MONTH), { partValue: c, partError: b, onPartChange: p } = F(d.MONTH), { t: _ } = L(), [M, v] = G(!1), D = Me(n), [N, y] = G(null), S = i ? Fe : _("field.date.placeholder.month"), ee = H((Y) => {
|
|
47
|
+
s || p(typeof Y == "string" ? Y : "");
|
|
48
48
|
}, [
|
|
49
49
|
p,
|
|
50
50
|
s
|
|
51
|
-
]), te = H((
|
|
52
|
-
Y
|
|
51
|
+
]), te = H((Y) => {
|
|
52
|
+
v(Y && !s);
|
|
53
53
|
}, [
|
|
54
54
|
s
|
|
55
55
|
]), ae = u(e, C.Label), ne = u(e, C.Trigger), re = u(e, C.Options);
|
|
@@ -75,7 +75,7 @@ const l = ({ children: e, className: a }) => {
|
|
|
75
75
|
}, ne, P(re, {
|
|
76
76
|
isForcedOpen: D
|
|
77
77
|
}))));
|
|
78
|
-
},
|
|
78
|
+
}, Ye = ({ className: e }) => /* @__PURE__ */ t.createElement($, {
|
|
79
79
|
datePart: d.MONTH,
|
|
80
80
|
className: e
|
|
81
81
|
}), ke = ({ children: e, className: a }) => {
|
|
@@ -92,14 +92,14 @@ const l = ({ children: e, className: a }) => {
|
|
|
92
92
|
"data-readonly": r || void 0
|
|
93
93
|
}, /* @__PURE__ */ t.createElement(ue, null), e);
|
|
94
94
|
}, w = ({ children: e, className: a, ...n }) => {
|
|
95
|
-
const { isForcedOpen: r } = n, { language: s } =
|
|
95
|
+
const { isForcedOpen: r } = n, { language: s } = q(), o = T(() => _e(s), [
|
|
96
96
|
s
|
|
97
97
|
]), i = u(e, w.Option) ?? /* @__PURE__ */ t.createElement(w.Option, null);
|
|
98
98
|
return /* @__PURE__ */ t.createElement(Ce, {
|
|
99
99
|
className: a,
|
|
100
100
|
containerPadding: 0,
|
|
101
101
|
offset: 0
|
|
102
|
-
}, /* @__PURE__ */ t.createElement(
|
|
102
|
+
}, /* @__PURE__ */ t.createElement(Se, {
|
|
103
103
|
isForcedOpen: r,
|
|
104
104
|
autoFocus: r ? !1 : void 0
|
|
105
105
|
}, o.map((m, c) => P(i, {
|
|
@@ -115,7 +115,7 @@ const l = ({ children: e, className: a }) => {
|
|
|
115
115
|
textValue: r
|
|
116
116
|
}, r);
|
|
117
117
|
};
|
|
118
|
-
C.Label =
|
|
118
|
+
C.Label = Ye;
|
|
119
119
|
C.Trigger = ke;
|
|
120
120
|
C.Options = w;
|
|
121
121
|
w.Option = He;
|
|
@@ -124,7 +124,7 @@ const A = ({ children: e, className: a }) => {
|
|
|
124
124
|
return /* @__PURE__ */ t.createElement("div", {
|
|
125
125
|
className: a,
|
|
126
126
|
"data-date-field": !0
|
|
127
|
-
}, s && b, /* @__PURE__ */ t.createElement(
|
|
127
|
+
}, s && b, /* @__PURE__ */ t.createElement(Q, {
|
|
128
128
|
"aria-labelledby": s ? o : void 0,
|
|
129
129
|
value: i,
|
|
130
130
|
onChange: c,
|
|
@@ -132,7 +132,7 @@ const A = ({ children: e, className: a }) => {
|
|
|
132
132
|
isReadOnly: r,
|
|
133
133
|
isInvalid: m
|
|
134
134
|
}, p));
|
|
135
|
-
}, we = ({ className: e }) => /* @__PURE__ */ t.createElement(
|
|
135
|
+
}, we = ({ className: e }) => /* @__PURE__ */ t.createElement($, {
|
|
136
136
|
datePart: d.DAY,
|
|
137
137
|
className: e
|
|
138
138
|
}), xe = ({ className: e }) => {
|
|
@@ -140,7 +140,7 @@ const A = ({ children: e, className: a }) => {
|
|
|
140
140
|
return z(() => {
|
|
141
141
|
var c;
|
|
142
142
|
s && ((c = i.current) == null || c.focus());
|
|
143
|
-
}, a), /* @__PURE__ */ t.createElement(
|
|
143
|
+
}, a), /* @__PURE__ */ t.createElement(W, {
|
|
144
144
|
ref: i,
|
|
145
145
|
id: r,
|
|
146
146
|
className: e,
|
|
@@ -157,7 +157,7 @@ const V = ({ children: e, className: a }) => {
|
|
|
157
157
|
return /* @__PURE__ */ t.createElement("div", {
|
|
158
158
|
className: a,
|
|
159
159
|
"data-date-field": !0
|
|
160
|
-
}, s && b, /* @__PURE__ */ t.createElement(
|
|
160
|
+
}, s && b, /* @__PURE__ */ t.createElement(Q, {
|
|
161
161
|
"aria-labelledby": s ? o : void 0,
|
|
162
162
|
value: i,
|
|
163
163
|
onChange: c,
|
|
@@ -165,7 +165,7 @@ const V = ({ children: e, className: a }) => {
|
|
|
165
165
|
isReadOnly: r,
|
|
166
166
|
isInvalid: m
|
|
167
167
|
}, p));
|
|
168
|
-
}, Be = ({ className: e }) => /* @__PURE__ */ t.createElement(
|
|
168
|
+
}, Be = ({ className: e }) => /* @__PURE__ */ t.createElement($, {
|
|
169
169
|
datePart: d.YEAR,
|
|
170
170
|
className: e
|
|
171
171
|
}), Ue = ({ className: e }) => {
|
|
@@ -173,7 +173,7 @@ const V = ({ children: e, className: a }) => {
|
|
|
173
173
|
return z(() => {
|
|
174
174
|
var c;
|
|
175
175
|
s && ((c = i.current) == null || c.focus());
|
|
176
|
-
}, a), /* @__PURE__ */ t.createElement(
|
|
176
|
+
}, a), /* @__PURE__ */ t.createElement(W, {
|
|
177
177
|
ref: i,
|
|
178
178
|
id: r,
|
|
179
179
|
className: e,
|
|
@@ -199,7 +199,7 @@ const I = ({ children: e, className: a }) => {
|
|
|
199
199
|
isInvalid: c,
|
|
200
200
|
hourCycle: s ? 24 : 12
|
|
201
201
|
}, _));
|
|
202
|
-
},
|
|
202
|
+
}, qe = ({ className: e }) => {
|
|
203
203
|
const { inputId: a, labelId: n } = O("time"), { t: r } = L(), s = r("field.date.label.time");
|
|
204
204
|
return /* @__PURE__ */ t.createElement("label", {
|
|
205
205
|
id: n,
|
|
@@ -234,7 +234,7 @@ const I = ({ children: e, className: a }) => {
|
|
|
234
234
|
return /* @__PURE__ */ t.createElement(t.Fragment, null);
|
|
235
235
|
}
|
|
236
236
|
});
|
|
237
|
-
},
|
|
237
|
+
}, $e = ({ className: e, ...a }) => {
|
|
238
238
|
const { hidePlaceholder: n } = f(), { segment: r } = a, { t: s } = L(), o = n ? void 0 : s("field.date.placeholder.hour");
|
|
239
239
|
return /* @__PURE__ */ t.createElement(x, {
|
|
240
240
|
segment: r,
|
|
@@ -243,7 +243,7 @@ const I = ({ children: e, className: a }) => {
|
|
|
243
243
|
placeholder: o
|
|
244
244
|
}
|
|
245
245
|
});
|
|
246
|
-
},
|
|
246
|
+
}, Ge = ({ className: e, ...a }) => {
|
|
247
247
|
const { hidePlaceholder: n } = f(), { segment: r } = a, { t: s } = L(), o = n ? void 0 : s("field.date.placeholder.minute");
|
|
248
248
|
return /* @__PURE__ */ t.createElement(x, {
|
|
249
249
|
segment: r,
|
|
@@ -252,7 +252,7 @@ const I = ({ children: e, className: a }) => {
|
|
|
252
252
|
placeholder: o
|
|
253
253
|
}
|
|
254
254
|
});
|
|
255
|
-
},
|
|
255
|
+
}, je = ({ className: e, ...a }) => {
|
|
256
256
|
const { hidePlaceholder: n } = f(), { segment: r } = a, { t: s } = L(), o = oe(Ee), i = n ? void 0 : s("field.date.placeholder.period"), m = () => o == null ? void 0 : o.increment("dayPeriod");
|
|
257
257
|
return /* @__PURE__ */ t.createElement(x, {
|
|
258
258
|
segment: r,
|
|
@@ -263,11 +263,11 @@ const I = ({ children: e, className: a }) => {
|
|
|
263
263
|
}
|
|
264
264
|
});
|
|
265
265
|
};
|
|
266
|
-
I.Label =
|
|
266
|
+
I.Label = qe;
|
|
267
267
|
I.Input = ze;
|
|
268
|
-
I.Hour =
|
|
269
|
-
I.Minute =
|
|
270
|
-
I.Period =
|
|
268
|
+
I.Hour = $e;
|
|
269
|
+
I.Minute = Ge;
|
|
270
|
+
I.Period = je;
|
|
271
271
|
l.Label = Te;
|
|
272
272
|
l.Month = C;
|
|
273
273
|
l.Day = A;
|
|
@@ -276,7 +276,7 @@ l.Time = I;
|
|
|
276
276
|
l.Description = ye;
|
|
277
277
|
l.Error = Oe;
|
|
278
278
|
function O(e) {
|
|
279
|
-
const { inputId: a } =
|
|
279
|
+
const { inputId: a } = X();
|
|
280
280
|
return T(() => {
|
|
281
281
|
const n = e.toLowerCase();
|
|
282
282
|
return {
|
|
@@ -289,30 +289,30 @@ function O(e) {
|
|
|
289
289
|
]);
|
|
290
290
|
}
|
|
291
291
|
function F(e) {
|
|
292
|
-
const { value: a, onChange: n, hasError: r = !1 } = f(), { regionalFormat: s } =
|
|
292
|
+
const { value: a, onChange: n, hasError: r = !1 } = f(), { regionalFormat: s } = q(), [o, i] = T(() => j(a ?? ""), [
|
|
293
293
|
a
|
|
294
294
|
]), m = T(() => fe(r, a ?? ""), [
|
|
295
295
|
a,
|
|
296
296
|
r
|
|
297
297
|
]), c = T(() => he(o), [
|
|
298
298
|
o
|
|
299
|
-
]), b = T(() =>
|
|
299
|
+
]), b = T(() => Ke(i), [
|
|
300
300
|
i
|
|
301
301
|
]), p = H((D) => {
|
|
302
|
-
const N =
|
|
302
|
+
const N = Qe(D), y = K(o, N);
|
|
303
303
|
n(y);
|
|
304
304
|
}, [
|
|
305
305
|
n,
|
|
306
306
|
o
|
|
307
307
|
]), _ = H((D) => {
|
|
308
|
-
const [, N] =
|
|
308
|
+
const [, N] = j(a ?? ""), y = be(D, e, c), S = K(y, N);
|
|
309
309
|
n(S);
|
|
310
310
|
}, [
|
|
311
311
|
n,
|
|
312
312
|
a,
|
|
313
313
|
c,
|
|
314
314
|
e
|
|
315
|
-
]), M = T(() => e === "time" ? !1 :
|
|
315
|
+
]), M = T(() => e === "time" ? !1 : J(s).filter(Z).map((y) => y.toUpperCase())[0] === e, [
|
|
316
316
|
s,
|
|
317
317
|
e
|
|
318
318
|
]);
|
|
@@ -328,7 +328,7 @@ function F(e) {
|
|
|
328
328
|
isFirstPart: M
|
|
329
329
|
};
|
|
330
330
|
}
|
|
331
|
-
function
|
|
331
|
+
function $({ datePart: e, className: a }) {
|
|
332
332
|
const { inputId: n, labelId: r } = O(e), { t: s } = L(), o = `field.date.label.${e.toLowerCase()}`, i = s(o);
|
|
333
333
|
return /* @__PURE__ */ t.createElement("label", {
|
|
334
334
|
id: r,
|
|
@@ -336,7 +336,7 @@ function G({ datePart: e, className: a }) {
|
|
|
336
336
|
className: a
|
|
337
337
|
}, i);
|
|
338
338
|
}
|
|
339
|
-
function
|
|
339
|
+
function Ke(e) {
|
|
340
340
|
if (!e)
|
|
341
341
|
return null;
|
|
342
342
|
try {
|
|
@@ -345,7 +345,7 @@ function We(e) {
|
|
|
345
345
|
return null;
|
|
346
346
|
}
|
|
347
347
|
}
|
|
348
|
-
function
|
|
348
|
+
function Qe(e) {
|
|
349
349
|
if (!e)
|
|
350
350
|
return null;
|
|
351
351
|
const a = String(e.hour).padStart(2, "0"), n = String(e.minute).padStart(2, "0"), r = String(e.second).padStart(2, "0");
|
|
@@ -355,10 +355,10 @@ function je(e) {
|
|
|
355
355
|
r
|
|
356
356
|
].join(":");
|
|
357
357
|
}
|
|
358
|
-
const
|
|
359
|
-
fields:
|
|
360
|
-
month:
|
|
361
|
-
day:
|
|
358
|
+
const We = "_fields_1meki_1", Xe = "_month_1meki_10", Je = "_day_1meki_11", Ze = "_year_1meki_12", et = "_timeGroup_1meki_13", tt = "_dayInput_1meki_34", at = "_yearInput_1meki_35", nt = "_monthTrigger_1meki_39", rt = "_monthOption_1meki_59", st = "_time_1meki_13", ot = "_hour_1meki_78", lt = "_minute_1meki_79", it = "_period_1meki_80", E = {
|
|
359
|
+
fields: We,
|
|
360
|
+
month: Xe,
|
|
361
|
+
day: Je,
|
|
362
362
|
year: Ze,
|
|
363
363
|
timeGroup: et,
|
|
364
364
|
dayInput: tt,
|
|
@@ -373,7 +373,7 @@ const Ke = "_fields_1meki_1", Je = "_month_1meki_10", Xe = "_day_1meki_11", Ze =
|
|
|
373
373
|
content: e,
|
|
374
374
|
locale: a
|
|
375
375
|
}), Mt = () => {
|
|
376
|
-
const e =
|
|
376
|
+
const e = Re(E.monthTrigger), a = Ae(E.monthOption, k), n = B(E.dayInput), r = B(E.yearInput), s = B(E.time);
|
|
377
377
|
return /* @__PURE__ */ t.createElement(l, {
|
|
378
378
|
className: E.fields
|
|
379
379
|
}, /* @__PURE__ */ t.createElement(l.Label, {
|
|
@@ -418,7 +418,7 @@ const Ke = "_fields_1meki_1", Je = "_month_1meki_10", Xe = "_day_1meki_11", Ze =
|
|
|
418
418
|
className: h(E.period, k)
|
|
419
419
|
}))), /* @__PURE__ */ t.createElement(l.Error, {
|
|
420
420
|
className: h(De, g.error)
|
|
421
|
-
}, /* @__PURE__ */ t.createElement(
|
|
421
|
+
}, /* @__PURE__ */ t.createElement(ve, null), /* @__PURE__ */ t.createElement(l.Error.Text, null)), /* @__PURE__ */ t.createElement(l.Description, {
|
|
422
422
|
className: h(Ne, g.description)
|
|
423
423
|
}, ct));
|
|
424
424
|
};
|
package/dist/component/{dext-checkbox-group-rac-B8bx3rT2.js → dext-checkbox-group-rac-WTVwhGG0.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 { bo as e, aq as t } from "./form-DHAKwnLt.js";
|
|
3
|
+
import { C as p } from "./checkbox-group-field-rac-CRRP03Qk.js";
|
|
4
4
|
import { D as s } from "./default-limits-D7qVv_Hv.js";
|
|
5
5
|
const C = () => {
|
|
6
6
|
const r = {
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import o from "react";
|
|
2
|
+
import { bo as e, aq as t } from "./form-DHAKwnLt.js";
|
|
3
|
+
import { R as p } from "./radio-group-field-rac-DI0UgTBr.js";
|
|
4
|
+
import { a } from "./default-limits-D7qVv_Hv.js";
|
|
5
|
+
const l = () => {
|
|
6
|
+
const r = {
|
|
7
|
+
...e(),
|
|
8
|
+
otherInputCharacterLimit: a
|
|
9
|
+
};
|
|
10
|
+
return /* @__PURE__ */ o.createElement(t.Provider, {
|
|
11
|
+
value: {
|
|
12
|
+
v2: r
|
|
13
|
+
}
|
|
14
|
+
}, /* @__PURE__ */ o.createElement(p, null));
|
|
15
|
+
};
|
|
16
|
+
export {
|
|
17
|
+
l as DextRadioGroupRAC
|
|
18
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import r from "react";
|
|
2
|
-
import {
|
|
3
|
-
import { T as s } from "./tags-field-rac-
|
|
2
|
+
import { bo as e, aq as o } from "./form-DHAKwnLt.js";
|
|
3
|
+
import { T as s } from "./tags-field-rac-CVf7oQr_.js";
|
|
4
4
|
import { b as a } from "./default-limits-D7qVv_Hv.js";
|
|
5
5
|
const l = () => {
|
|
6
6
|
const t = {
|