@wix/form-elements 1.125.0 → 1.127.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-Z-zuUkSk.js → appointment-rac-BrC7gcpn.js} +5 -5
- package/dist/component/{bookings-address-rac-CKDBaGLn.js → bookings-address-rac-D-UmBxjD.js} +1 -1
- package/dist/component/{bookings-email-rac-D4aI_Jzq.js → bookings-email-rac-CjHDzU0Q.js} +1 -1
- package/dist/component/{bookings-first-name-rac-zzQHBi06.js → bookings-first-name-rac-ChBkkkWm.js} +1 -1
- package/dist/component/{bookings-header-rac-Ck8ODZZj.js → bookings-header-rac-ERfGeYyw.js} +1 -1
- package/dist/component/{bookings-last-name-rac-Bf6GZjrX.js → bookings-last-name-rac-CuTJ7Y8w.js} +1 -1
- package/dist/component/{bookings-login-bar-rac-DFDj9-BP.js → bookings-login-bar-rac-pudlQ67l.js} +6 -6
- package/dist/component/{bookings-phone-rac-Bv1-qlMw.js → bookings-phone-rac-nLPnLRfS.js} +1 -1
- package/dist/component/{bookings-rich-text-rac-D7B-s_XR.js → bookings-rich-text-rac-DOmGQlyG.js} +1 -1
- package/dist/component/{checkbox-field-rac-CiKYZvTz.js → checkbox-field-rac-DLazY-iO.js} +86 -86
- package/dist/component/{checkbox-group-field-headless-CV6U8eSj.js → checkbox-group-field-headless-CPyWmFBH.js} +3 -3
- package/dist/component/{checkbox-group-field-rac-BQlPsFkN.js → checkbox-group-field-rac-Bir3gaI9.js} +6 -6
- package/dist/component/{checkbox-group-rac-DS3C_O04.js → checkbox-group-rac-BGXUl-sJ.js} +1 -1
- package/dist/component/{checkbox-indicator-module-classes-DOAYUQ_Q.js → checkbox-indicator-module-classes-Bqo0QILF.js} +1 -1
- package/dist/component/{checkbox-rac-dUEfjEya.js → checkbox-rac-D_wZVUFV.js} +1 -1
- package/dist/component/{contacts-address-rac-CpszOK8V.js → contacts-address-rac-CNldSQbf.js} +1 -1
- package/dist/component/{contacts-birthdate-rac-8VQHFq-M.js → contacts-birthdate-rac-AVyldaRF.js} +1 -1
- package/dist/component/{contacts-company-rac-BOBr0Kk7.js → contacts-company-rac-CiP1Ctpa.js} +1 -1
- package/dist/component/{contacts-email-rac-CTLHE5HL.js → contacts-email-rac-CzjMVEJZ.js} +1 -1
- package/dist/component/{contacts-first-name-rac-nYNH569s.js → contacts-first-name-rac-G0kE0HmA.js} +1 -1
- package/dist/component/{contacts-last-name-rac-BX1D0mI7.js → contacts-last-name-rac-cnTTtnMZ.js} +1 -1
- package/dist/component/{contacts-phone-rac-DKbEfOsH.js → contacts-phone-rac-DJ9oxox4.js} +1 -1
- package/dist/component/{contacts-position-rac-B0y-O-4j.js → contacts-position-rac-e0uQ-eqL.js} +1 -1
- package/dist/component/{contacts-subscribe-rac-5yYJn7F0.js → contacts-subscribe-rac-D4J2x78f.js} +1 -1
- package/dist/component/{contacts-tax-id-rac-BB5ngpkv.js → contacts-tax-id-rac-DwJuNH-C.js} +1 -1
- package/dist/component/{date-availability-C87SaTKG.js → date-availability-D2BSwZ_r.js} +1 -1
- package/dist/component/{date-input-field-rac-CS8QQO3m.js → date-input-field-rac-ztJ02C60.js} +42 -42
- package/dist/component/{date-input-rac-VHB7v5UL.js → date-input-rac-D-SFsC6P.js} +1 -1
- package/dist/component/{date-picker-field-rac-Cri5p6Ms.js → date-picker-field-rac-DaNwsa8z.js} +15 -15
- package/dist/component/{date-picker-rac-B57G3x5E.js → date-picker-rac-Bn0sA6P1.js} +1 -1
- package/dist/component/{date-time-input-field-rac-4Qka-NnP.js → date-time-input-field-rac-D-ArMpcJ.js} +64 -64
- package/dist/component/{date-time-input-rac-DGCjjMFb.js → date-time-input-rac-qYLa3IDx.js} +1 -1
- package/dist/component/{dext-checkbox-group-rac-DWvCwPTc.js → dext-checkbox-group-rac-Dir6tyvo.js} +2 -2
- package/dist/component/{dext-checkbox-rac-33LSTC36.js → dext-checkbox-rac-ByiMc3BH.js} +1 -1
- package/dist/component/{dext-date-picker-rac-Bf7NykP3.js → dext-date-picker-rac-BwOozu5y.js} +1 -1
- package/dist/component/{dext-date-time-input-rac-Bao0DdBz.js → dext-date-time-input-rac-CaJEzZa4.js} +1 -1
- package/dist/component/{dext-dropdown-rac-DmcOs3JV.js → dext-dropdown-rac-DJnMjggU.js} +1 -1
- package/dist/component/{dext-email-rac-BQZuGJyR.js → dext-email-rac-CF4SQ86l.js} +1 -1
- package/dist/component/{dext-number-input-rac-BkRW3syI.js → dext-number-input-rac--3goVI8C.js} +1 -1
- package/dist/component/{dext-phone-rac-BQTtIO3M.js → dext-phone-rac-MYJYG040.js} +1 -1
- package/dist/component/{dext-radio-group-rac-8OX3bK1R.js → dext-radio-group-rac-Q2J5Hk5W.js} +4 -4
- package/dist/component/{dext-rating-input-rac-DzsAbe6_.js → dext-rating-input-rac-CAWhD-lI.js} +1 -1
- package/dist/component/{dext-tags-rac-vBL9kqB4.js → dext-tags-rac-DyxI5ooy.js} +4 -4
- package/dist/component/{dext-text-area-rac-DnaX_wQ4.js → dext-text-area-rac-CZpM-r49.js} +1 -1
- package/dist/component/{dext-text-input-rac-D94mFw2C.js → dext-text-input-rac-Bv5Mhyw6.js} +1 -1
- package/dist/component/{dext-url-input-rac-BbGsxHGa.js → dext-url-input-rac-BkbTjbAI.js} +1 -1
- package/dist/component/{donation-rac-BMSQOEKY.js → donation-rac-DZjFeJFy.js} +36 -36
- package/dist/component/{dropdown-field-headless-DfV7Hu_x.js → dropdown-field-headless-C7l2TQYy.js} +16 -16
- package/dist/component/{dropdown-field-rac-DV8KVcfL.js → dropdown-field-rac-DOAlecw8.js} +5 -5
- package/dist/component/{dropdown-rac-CWxp-u5t.js → dropdown-rac-D8HtaeBe.js} +1 -1
- package/dist/component/{ecom-address-rac-DDUa9lKf.js → ecom-address-rac-B25o-GVv.js} +1 -1
- package/dist/component/{ecom-subscription-checkbox-rac-C6Bl1HwZ.js → ecom-subscription-checkbox-rac-NvdWnD0v.js} +2 -2
- package/dist/component/{email-input-field-rac-DssxRa6A.js → email-input-field-rac-rWyojsu0.js} +19 -19
- package/dist/component/{events-repeater-rac-C-Y70-hO.js → events-repeater-rac-D2HvNt0y.js} +11 -11
- package/dist/component/{events-rsvp-rac-CH8cmC73.js → events-rsvp-rac-D4WLn0Bx.js} +4 -4
- package/dist/component/{field-error-headless-B-dJmWQP.js → field-error-headless-DU0YsEXR.js} +6 -6
- package/dist/component/{field-label-headless-BMozN-s1.js → field-label-headless-CvdTZi6i.js} +1 -1
- package/dist/component/field-rac.module-BIBNQEOK.js +25 -0
- package/dist/component/{file-upload-rac-q-JbJbUf.js → file-upload-rac-CMelyfA8.js} +68 -68
- package/dist/component/{fixed-payment-rac-BUeec_59.js → fixed-payment-rac-CewsqE-k.js} +9 -9
- package/dist/component/{form-D_BE2Fzt.js → form-D9IxiDXP.js} +2400 -2346
- package/dist/component/form.css +1 -1
- package/dist/component/form.js +3 -3
- package/dist/component/{header-field-rac-DWDGXZ-1.js → header-field-rac-CYBfb_5D.js} +6 -6
- package/dist/component/{header-rac-DSJRq-aS.js → header-rac-BIq3DmbL.js} +1 -1
- package/dist/component/{image-choice-rac-CZhE0M_b.js → image-choice-rac-aOObRIMi.js} +12 -12
- package/dist/component/{index-COa1NdN9.js → index-BXqA4oNj.js} +15 -15
- package/dist/component/{index-CbQKmL2D.js → index-D-g3wQ-z.js} +43 -43
- package/dist/component/{isObjectLike-OXbnWiQZ.js → isObjectLike-BNDXzCto.js} +7 -7
- package/dist/component/{multiline-address-field-rac-uwvOu2s8.js → multiline-address-field-rac-BcTa7Von.js} +8 -8
- package/dist/component/{multiline-address-rac-dechT7TO.js → multiline-address-rac-Cd_BFreP.js} +1 -1
- package/dist/component/{number-input-field-rac-Dzd1zIZ3.js → number-input-field-rac-_JlH34_3.js} +9 -9
- package/dist/component/{number-input-rac-CEkIm28k.js → number-input-rac-CiM20ScT.js} +1 -1
- package/dist/component/{password-rac-CWitmbZm.js → password-rac-DrpXSY74.js} +32 -32
- package/dist/component/{payment-input-rac-CM0uC5on.js → payment-input-rac-RnMeVWDc.js} +15 -15
- package/dist/component/{phone-input-field-rac-fWGQuICi.js → phone-input-field-rac-nNp7D7gK.js} +39 -39
- package/dist/component/{phone-rac-Yz8_o8zI.js → phone-rac-B2JjPT2w.js} +1 -1
- package/dist/component/{product-list-rac-CEWFFKC_.js → product-list-rac-Cv_fjFn3.js} +28 -28
- package/dist/component/{quiz-radio-group-rac-D0x2dT8O.js → quiz-radio-group-rac-CNqF6Tq3.js} +1 -1
- package/dist/component/{radio-button-module-classes-ByzyRWGZ.js → radio-button-module-classes-vqR4TN-z.js} +3 -3
- package/dist/component/{radio-group-field-rac-Bp-gAa8G.js → radio-group-field-rac-Bpyr40q-.js} +5 -5
- package/dist/component/{radio-group-rac-v2iHQ7Do.js → radio-group-rac-DBLPP0YC.js} +1 -1
- package/dist/component/{rating-input-field-rac-Cy2FMWGM.js → rating-input-field-rac-BOi0G37L.js} +10 -10
- package/dist/component/{rating-input-rac-BbVp3WB3.js → rating-input-rac-CxpmV0Pa.js} +1 -1
- package/dist/component/{rich-content-rac.module-CD6SVCbh.js → rich-content-rac.module-Dmm9GyQq.js} +1 -1
- package/dist/component/{rich-text-field-rac-BpNrx6yp.js → rich-text-field-rac-C466OrTf.js} +9 -9
- package/dist/component/{rich-text-rac-Dhy7uiP1.js → rich-text-rac-BvVxD7oJ.js} +1 -1
- package/dist/component/{service-dropdown-rac-CAneRKHw.js → service-dropdown-rac-pmUKH0sP.js} +14 -14
- package/dist/component/{services-multi-choice-rac-D6sXFbh-.js → services-multi-choice-rac-B65i6q2D.js} +7 -7
- package/dist/component/signature-rac-BRyM06Vz.js +918 -0
- package/dist/component/{submit-button-rac-BXXTjOsT.js → submit-button-rac-DaCRjZlQ.js} +15 -15
- package/dist/component/{tags-field-rac-C5UfRny_.js → tags-field-rac-CEdfh-EQ.js} +17 -17
- package/dist/component/{tags-rac-B9CeCJ7N.js → tags-rac-CGSTQ0qK.js} +1 -1
- package/dist/component/{text-area-field-rac-CPRcMTLB.js → text-area-field-rac-C-EHPWwQ.js} +15 -15
- package/dist/component/{text-area-rac-DTP1F7-n.js → text-area-rac-Df1nSb2q.js} +1 -1
- package/dist/component/{text-input-field-rac-BNWvKfLB.js → text-input-field-rac-DmCZtBi_.js} +4 -4
- package/dist/component/{text-input-headless-CLQsDBPq.js → text-input-headless-DAxEZP1P.js} +8 -8
- package/dist/component/{text-input-rac-D-x0vJ11.js → text-input-rac-DgpO17dl.js} +1 -1
- package/dist/component/{time-input-rac-CDyfV8is.js → time-input-rac-Dld_tLub.js} +10 -10
- package/dist/component/{url-input-field-rac-DS-y2pYu.js → url-input-field-rac-DHZ6bpxZ.js} +10 -10
- package/dist/component/{url-input-rac-mPuawQc5.js → url-input-rac-CZlWy5RB.js} +1 -1
- package/dist/component/{use-dropdown-option-class-name-C8fUy9a7.js → use-dropdown-option-class-name-opBd-YJA.js} +3 -3
- package/dist/component/{use-dropdown-trigger-class-name-TB7azWxx.js → use-dropdown-trigger-class-name-BGQH0WCO.js} +10 -10
- package/dist/component/use-element-state-class-name-B2ecLjwN.js +20 -0
- package/dist/component/{use-hoverable-input-class-name-Dd0kMkOT.js → use-hoverable-input-class-name-B42rAp82.js} +3 -3
- package/dist/component/{use-service-options-base-CZXMLBQ0.js → use-service-options-base-D60-jNUT.js} +4 -4
- package/dist/component/use-text-input-class-name-DGpCdZ_e.js +6 -0
- package/dist/form.d.ts +11 -1
- package/package.json +23 -23
- package/dist/component/field-rac.module-DQxyEwK7.js +0 -26
- package/dist/component/signature-rac-D_mfewhJ.js +0 -794
- package/dist/component/use-element-state-class-name-BUWRj3G2.js +0 -22
- package/dist/component/use-text-input-class-name-BJ6Qm1bq.js +0 -6
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
import { RicosViewer as se } from "@wix/ricos/viewer";
|
|
2
2
|
import h from "classnames";
|
|
3
|
-
import t, { useMemo 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 Q, TimeField as de, SelectValue as ue, Input as
|
|
7
|
-
import {
|
|
6
|
+
import { ListBoxItem as ce, Select as me, TextField as Q, TimeField as de, SelectValue as ue, Input as J, DateInput as pe, DateSegment as x, TimeFieldStateContext as Ee } from "react-aria-components";
|
|
7
|
+
import { bh as f, be as W, b9 as $, aO as X, a$ as Z, aB as d, br as C, b3 as K, aQ as he, aI as fe, b6 as be, aK as j, bj as z, I as R, U as ge, K as Ie, v as Ne, p as De } from "./form-D9IxiDXP.js";
|
|
8
8
|
import { f as u, a as P } from "./find-child-C60k4CxG.js";
|
|
9
|
-
import { g as
|
|
10
|
-
import { D as
|
|
11
|
-
import { L as
|
|
9
|
+
import { g as ye } from "./helpers-HmkkXrh2.js";
|
|
10
|
+
import { D as _e, E as Oe } from "./field-error-headless-DU0YsEXR.js";
|
|
11
|
+
import { L as Te } from "./field-label-headless-CvdTZi6i.js";
|
|
12
12
|
import { F as Ce } from "./fieldset-headless-CD3fds9J.js";
|
|
13
13
|
import { N as Fe, S as Le } from "./non-modal-popover-DtIMXHbe.js";
|
|
14
|
-
import { a as Pe, u as Me } from "./use-dropdown-trigger-class-name-
|
|
15
|
-
import { V as Se, u as Re } from "./use-dropdown-option-class-name-
|
|
14
|
+
import { a as Pe, u as Me } from "./use-dropdown-trigger-class-name-BGQH0WCO.js";
|
|
15
|
+
import { V as Se, u as Re } from "./use-dropdown-option-class-name-opBd-YJA.js";
|
|
16
16
|
import { C as Ae } from "./chevron-down-icon-CcpVm6B-.js";
|
|
17
17
|
import { E as Ve } from "./error-icon-hZxQ6DEy.js";
|
|
18
18
|
import { H as w } from "./custom-focus-class-_483Pkwp.js";
|
|
19
|
-
import { s as g } from "./field-rac.module-
|
|
20
|
-
import { u as k } from "./use-text-input-class-name-
|
|
19
|
+
import { s as g } from "./field-rac.module-BIBNQEOK.js";
|
|
20
|
+
import { u as k } from "./use-text-input-class-name-DGpCdZ_e.js";
|
|
21
21
|
const l = ({ children: e, className: a }) => {
|
|
22
|
-
const { id: n, required: s, onBlur: o, onFocus: r, FieldLayout: i } = f(), { inputId: m, labelId: c, ariaDescribedBy: b } =
|
|
22
|
+
const { id: n, required: s, onBlur: o, onFocus: r, FieldLayout: i } = f(), { inputId: m, labelId: c, ariaDescribedBy: b } = W(), { regionalFormat: p } = $(), y = T(() => X(p).filter(Z).map((S) => S.toUpperCase()), [
|
|
23
23
|
p
|
|
24
24
|
]), M = u(e, l.Label), v = u(e, l.Description), N = 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
|
+
}, _ = u(e, l.Time);
|
|
29
29
|
return /* @__PURE__ */ t.createElement(i, {
|
|
30
30
|
fieldId: n,
|
|
31
31
|
renderLabel: () => P(M, {
|
|
@@ -39,11 +39,11 @@ const l = ({ children: e, className: a }) => {
|
|
|
39
39
|
onBlur: o,
|
|
40
40
|
onFocus: r,
|
|
41
41
|
className: a
|
|
42
|
-
}, D[
|
|
42
|
+
}, D[y[0]], D[y[1]], D[y[2]], _),
|
|
43
43
|
renderDescription: () => /* @__PURE__ */ t.createElement(t.Fragment, null, N, v)
|
|
44
44
|
});
|
|
45
45
|
}, F = ({ children: e, className: a }) => {
|
|
46
|
-
const { id: n, disabled: s, readOnly: o, showDateLabels: r, hidePlaceholder: i } = f(), { labelId: m } =
|
|
46
|
+
const { id: n, disabled: s, readOnly: o, showDateLabels: r, hidePlaceholder: i } = f(), { labelId: m } = O(d.MONTH), { partValue: c, partError: b, onPartChange: p } = L(d.MONTH), { t: y } = C(), [M, v] = G(!1), N = Pe(n), [D, _] = G(null), S = i ? void 0 : y("field.date.placeholder.month"), ee = H((Y) => {
|
|
47
47
|
o || p(typeof Y == "string" ? Y : "");
|
|
48
48
|
}, [
|
|
49
49
|
p,
|
|
@@ -57,7 +57,7 @@ const l = ({ children: e, className: a }) => {
|
|
|
57
57
|
className: a,
|
|
58
58
|
"data-date-field": !0
|
|
59
59
|
}, r ? ae : null, /* @__PURE__ */ t.createElement("div", {
|
|
60
|
-
ref:
|
|
60
|
+
ref: _,
|
|
61
61
|
style: {
|
|
62
62
|
display: "contents"
|
|
63
63
|
}
|
|
@@ -75,12 +75,12 @@ const l = ({ children: e, className: a }) => {
|
|
|
75
75
|
}, ne, P(re, {
|
|
76
76
|
isForcedOpen: N
|
|
77
77
|
}))));
|
|
78
|
-
}, ve = ({ className: e }) => /* @__PURE__ */ t.createElement(
|
|
78
|
+
}, ve = ({ className: e }) => /* @__PURE__ */ t.createElement(q, {
|
|
79
79
|
datePart: d.MONTH,
|
|
80
80
|
className: e
|
|
81
81
|
}), Ye = ({ children: e, className: a }) => {
|
|
82
|
-
const { id: n, readOnly: s } = f(), { inputId: o } =
|
|
83
|
-
return
|
|
82
|
+
const { id: n, readOnly: s } = f(), { inputId: o } = O(d.MONTH), { partError: r, isFirstPart: i } = L(d.MONTH), m = U(null);
|
|
83
|
+
return z(() => {
|
|
84
84
|
var c;
|
|
85
85
|
i && ((c = m.current) == null || c.focus());
|
|
86
86
|
}, n), /* @__PURE__ */ t.createElement(Le, {
|
|
@@ -92,7 +92,7 @@ const l = ({ children: e, className: a }) => {
|
|
|
92
92
|
"data-readonly": s || void 0
|
|
93
93
|
}, /* @__PURE__ */ t.createElement(ue, null), e);
|
|
94
94
|
}, B = ({ children: e, className: a, ...n }) => {
|
|
95
|
-
const { isForcedOpen: s } = n, { language: o } =
|
|
95
|
+
const { isForcedOpen: s } = n, { language: o } = $(), r = T(() => ye(o), [
|
|
96
96
|
o
|
|
97
97
|
]), i = u(e, B.Option) ?? /* @__PURE__ */ t.createElement(B.Option, null);
|
|
98
98
|
return /* @__PURE__ */ t.createElement(Fe, {
|
|
@@ -120,7 +120,7 @@ F.Trigger = Ye;
|
|
|
120
120
|
F.Options = B;
|
|
121
121
|
B.Option = we;
|
|
122
122
|
const A = ({ children: e, className: a }) => {
|
|
123
|
-
const { disabled: n, readOnly: s, showDateLabels: o } = f(), { labelId: r } =
|
|
123
|
+
const { disabled: n, readOnly: s, showDateLabels: o } = f(), { labelId: r } = O(d.DAY), { partValue: i, partError: m, onPartChange: c } = L(d.DAY), b = u(e, A.Label), p = u(e, A.Input);
|
|
124
124
|
return /* @__PURE__ */ t.createElement("div", {
|
|
125
125
|
className: a,
|
|
126
126
|
"data-date-field": !0
|
|
@@ -132,15 +132,15 @@ const A = ({ children: e, className: a }) => {
|
|
|
132
132
|
isReadOnly: s,
|
|
133
133
|
isInvalid: m
|
|
134
134
|
}, p));
|
|
135
|
-
}, He = ({ className: e }) => /* @__PURE__ */ t.createElement(
|
|
135
|
+
}, He = ({ className: e }) => /* @__PURE__ */ t.createElement(q, {
|
|
136
136
|
datePart: d.DAY,
|
|
137
137
|
className: e
|
|
138
138
|
}), Be = ({ className: e }) => {
|
|
139
|
-
const { id: a, hidePlaceholder: n } = f(), { inputId: s } =
|
|
140
|
-
return
|
|
139
|
+
const { id: a, hidePlaceholder: n } = f(), { inputId: s } = O(d.DAY), { isFirstPart: o } = L(d.DAY), { t: r } = C(), i = U(null), m = n ? void 0 : r("field.date.placeholder.day");
|
|
140
|
+
return z(() => {
|
|
141
141
|
var c;
|
|
142
142
|
o && ((c = i.current) == null || c.focus());
|
|
143
|
-
}, a), /* @__PURE__ */ t.createElement(
|
|
143
|
+
}, a), /* @__PURE__ */ t.createElement(J, {
|
|
144
144
|
ref: i,
|
|
145
145
|
id: s,
|
|
146
146
|
className: e,
|
|
@@ -153,7 +153,7 @@ const A = ({ children: e, className: a }) => {
|
|
|
153
153
|
A.Label = He;
|
|
154
154
|
A.Input = Be;
|
|
155
155
|
const V = ({ children: e, className: a }) => {
|
|
156
|
-
const { disabled: n, readOnly: s, showDateLabels: o } = f(), { labelId: r } =
|
|
156
|
+
const { disabled: n, readOnly: s, showDateLabels: o } = f(), { labelId: r } = O(d.YEAR), { partValue: i, partError: m, onPartChange: c } = L(d.YEAR), b = u(e, V.Label), p = u(e, V.Input);
|
|
157
157
|
return /* @__PURE__ */ t.createElement("div", {
|
|
158
158
|
className: a,
|
|
159
159
|
"data-date-field": !0
|
|
@@ -165,15 +165,15 @@ const V = ({ children: e, className: a }) => {
|
|
|
165
165
|
isReadOnly: s,
|
|
166
166
|
isInvalid: m
|
|
167
167
|
}, p));
|
|
168
|
-
}, xe = ({ className: e }) => /* @__PURE__ */ t.createElement(
|
|
168
|
+
}, xe = ({ className: e }) => /* @__PURE__ */ t.createElement(q, {
|
|
169
169
|
datePart: d.YEAR,
|
|
170
170
|
className: e
|
|
171
171
|
}), ke = ({ className: e }) => {
|
|
172
|
-
const { id: a, hidePlaceholder: n } = f(), { inputId: s } =
|
|
173
|
-
return
|
|
172
|
+
const { id: a, hidePlaceholder: n } = f(), { inputId: s } = O(d.YEAR), { isFirstPart: o } = L(d.YEAR), { t: r } = C(), i = U(null), m = n ? void 0 : r("field.date.placeholder.year");
|
|
173
|
+
return z(() => {
|
|
174
174
|
var c;
|
|
175
175
|
o && ((c = i.current) == null || c.focus());
|
|
176
|
-
}, a), /* @__PURE__ */ t.createElement(
|
|
176
|
+
}, a), /* @__PURE__ */ t.createElement(J, {
|
|
177
177
|
ref: i,
|
|
178
178
|
id: s,
|
|
179
179
|
className: e,
|
|
@@ -186,7 +186,7 @@ const V = ({ children: e, className: a }) => {
|
|
|
186
186
|
V.Label = xe;
|
|
187
187
|
V.Input = ke;
|
|
188
188
|
const I = ({ children: e, className: a }) => {
|
|
189
|
-
const { disabled: n, readOnly: s, use24HourFormat: o, showDateLabels: r } = f(), { labelId: i } =
|
|
189
|
+
const { disabled: n, readOnly: s, use24HourFormat: o, showDateLabels: r } = f(), { labelId: i } = O("time"), { partValue: m, partError: c, onPartChange: b } = L("time"), p = u(e, I.Label), y = u(e, I.Input);
|
|
190
190
|
return /* @__PURE__ */ t.createElement("div", {
|
|
191
191
|
className: a,
|
|
192
192
|
"data-date-field": !0
|
|
@@ -198,15 +198,15 @@ const I = ({ children: e, className: a }) => {
|
|
|
198
198
|
isReadOnly: s,
|
|
199
199
|
isInvalid: c,
|
|
200
200
|
hourCycle: o ? 24 : 12
|
|
201
|
-
},
|
|
201
|
+
}, y));
|
|
202
202
|
}, Ue = ({ className: e }) => {
|
|
203
|
-
const { inputId: a, labelId: n } =
|
|
203
|
+
const { inputId: a, labelId: n } = O("time"), { t: s } = C(), o = s("field.date.label.time");
|
|
204
204
|
return /* @__PURE__ */ t.createElement("label", {
|
|
205
205
|
id: n,
|
|
206
206
|
htmlFor: a,
|
|
207
207
|
className: e
|
|
208
208
|
}, o);
|
|
209
|
-
},
|
|
209
|
+
}, $e = ({ children: e, className: a }) => {
|
|
210
210
|
const n = u(e, I.Hour), s = u(e, I.Minute), o = u(e, I.Period);
|
|
211
211
|
return /* @__PURE__ */ t.createElement(pe, {
|
|
212
212
|
className: a,
|
|
@@ -233,7 +233,7 @@ const I = ({ children: e, className: a }) => {
|
|
|
233
233
|
return /* @__PURE__ */ t.createElement(t.Fragment, null);
|
|
234
234
|
}
|
|
235
235
|
});
|
|
236
|
-
},
|
|
236
|
+
}, ze = ({ className: e, ...a }) => {
|
|
237
237
|
const { hidePlaceholder: n } = f(), { segment: s } = a, { t: o } = C(), r = n ? void 0 : o("field.date.placeholder.hour");
|
|
238
238
|
return /* @__PURE__ */ t.createElement(x, {
|
|
239
239
|
segment: s,
|
|
@@ -242,7 +242,7 @@ const I = ({ children: e, className: a }) => {
|
|
|
242
242
|
placeholder: r
|
|
243
243
|
}
|
|
244
244
|
});
|
|
245
|
-
},
|
|
245
|
+
}, qe = ({ className: e, ...a }) => {
|
|
246
246
|
const { hidePlaceholder: n } = f(), { segment: s } = a, { t: o } = C(), r = n ? void 0 : o("field.date.placeholder.minute");
|
|
247
247
|
return /* @__PURE__ */ t.createElement(x, {
|
|
248
248
|
segment: s,
|
|
@@ -251,7 +251,7 @@ const I = ({ children: e, className: a }) => {
|
|
|
251
251
|
placeholder: r
|
|
252
252
|
}
|
|
253
253
|
});
|
|
254
|
-
},
|
|
254
|
+
}, Ge = ({ className: e, ...a }) => {
|
|
255
255
|
const { hidePlaceholder: n } = f(), { segment: s } = a, { t: o } = C(), r = oe(Ee), i = n ? void 0 : o("field.date.placeholder.period"), m = () => r == null ? void 0 : r.increment("dayPeriod");
|
|
256
256
|
return /* @__PURE__ */ t.createElement(x, {
|
|
257
257
|
segment: s,
|
|
@@ -263,20 +263,20 @@ const I = ({ children: e, className: a }) => {
|
|
|
263
263
|
});
|
|
264
264
|
};
|
|
265
265
|
I.Label = Ue;
|
|
266
|
-
I.Input =
|
|
267
|
-
I.Hour =
|
|
268
|
-
I.Minute =
|
|
269
|
-
I.Period =
|
|
270
|
-
l.Label =
|
|
266
|
+
I.Input = $e;
|
|
267
|
+
I.Hour = ze;
|
|
268
|
+
I.Minute = qe;
|
|
269
|
+
I.Period = Ge;
|
|
270
|
+
l.Label = Te;
|
|
271
271
|
l.Month = F;
|
|
272
272
|
l.Day = A;
|
|
273
273
|
l.Year = V;
|
|
274
274
|
l.Time = I;
|
|
275
|
-
l.Description =
|
|
276
|
-
l.Error =
|
|
277
|
-
function
|
|
278
|
-
const { inputId: a } =
|
|
279
|
-
return
|
|
275
|
+
l.Description = _e;
|
|
276
|
+
l.Error = Oe;
|
|
277
|
+
function O(e) {
|
|
278
|
+
const { inputId: a } = W();
|
|
279
|
+
return T(() => {
|
|
280
280
|
const n = e.toLowerCase();
|
|
281
281
|
return {
|
|
282
282
|
inputId: `${a}-${n}-input`,
|
|
@@ -288,30 +288,30 @@ function T(e) {
|
|
|
288
288
|
]);
|
|
289
289
|
}
|
|
290
290
|
function L(e) {
|
|
291
|
-
const { value: a, onChange: n, hasError: s = !1 } = f(), { regionalFormat: o } =
|
|
291
|
+
const { value: a, onChange: n, hasError: s = !1 } = f(), { regionalFormat: o } = $(), [r, i] = T(() => K(a ?? ""), [
|
|
292
292
|
a
|
|
293
|
-
]), m =
|
|
293
|
+
]), m = T(() => he(s, a ?? ""), [
|
|
294
294
|
a,
|
|
295
295
|
s
|
|
296
|
-
]), c =
|
|
296
|
+
]), c = T(() => fe(r), [
|
|
297
297
|
r
|
|
298
|
-
]), b =
|
|
298
|
+
]), b = T(() => Ke(i), [
|
|
299
299
|
i
|
|
300
300
|
]), p = H((N) => {
|
|
301
|
-
const D =
|
|
302
|
-
n(
|
|
301
|
+
const D = je(N), _ = j(r, D);
|
|
302
|
+
n(_);
|
|
303
303
|
}, [
|
|
304
304
|
n,
|
|
305
305
|
r
|
|
306
|
-
]),
|
|
307
|
-
const [, D] =
|
|
306
|
+
]), y = H((N) => {
|
|
307
|
+
const [, D] = K(a ?? ""), _ = be(N, e, c), S = j(_, D);
|
|
308
308
|
n(S);
|
|
309
309
|
}, [
|
|
310
310
|
n,
|
|
311
311
|
a,
|
|
312
312
|
c,
|
|
313
313
|
e
|
|
314
|
-
]), M =
|
|
314
|
+
]), M = T(() => e === "time" ? !1 : X(o).filter(Z).map((_) => _.toUpperCase())[0] === e, [
|
|
315
315
|
o,
|
|
316
316
|
e
|
|
317
317
|
]);
|
|
@@ -323,19 +323,19 @@ function L(e) {
|
|
|
323
323
|
} : {
|
|
324
324
|
partValue: c[e] || "",
|
|
325
325
|
partError: m[e],
|
|
326
|
-
onPartChange:
|
|
326
|
+
onPartChange: y,
|
|
327
327
|
isFirstPart: M
|
|
328
328
|
};
|
|
329
329
|
}
|
|
330
|
-
function
|
|
331
|
-
const { inputId: n, labelId: s } =
|
|
330
|
+
function q({ datePart: e, className: a }) {
|
|
331
|
+
const { inputId: n, labelId: s } = O(e), { t: o } = C(), r = `field.date.label.${e.toLowerCase()}`, i = o(r);
|
|
332
332
|
return /* @__PURE__ */ t.createElement("label", {
|
|
333
333
|
id: s,
|
|
334
334
|
htmlFor: n,
|
|
335
335
|
className: a
|
|
336
336
|
}, i);
|
|
337
337
|
}
|
|
338
|
-
function
|
|
338
|
+
function Ke(e) {
|
|
339
339
|
if (!e)
|
|
340
340
|
return null;
|
|
341
341
|
try {
|
|
@@ -344,7 +344,7 @@ function je(e) {
|
|
|
344
344
|
return null;
|
|
345
345
|
}
|
|
346
346
|
}
|
|
347
|
-
function
|
|
347
|
+
function je(e) {
|
|
348
348
|
if (!e)
|
|
349
349
|
return null;
|
|
350
350
|
const a = String(e.hour).padStart(2, "0"), n = String(e.minute).padStart(2, "0"), s = String(e.second).padStart(2, "0");
|
|
@@ -354,11 +354,11 @@ function Ke(e) {
|
|
|
354
354
|
s
|
|
355
355
|
].join(":");
|
|
356
356
|
}
|
|
357
|
-
const Qe = "_fields_h99r9_1",
|
|
357
|
+
const Qe = "_fields_h99r9_1", Je = "_month_h99r9_10", We = "_day_h99r9_11", Xe = "_year_h99r9_12", Ze = "_timeGroup_h99r9_13", et = "_dayInput_h99r9_34", tt = "_yearInput_h99r9_35", at = "_monthTrigger_h99r9_39", nt = "_monthOption_h99r9_59", rt = "_time_h99r9_13", st = "_hour_h99r9_78", ot = "_minute_h99r9_79", lt = "_period_h99r9_80", E = {
|
|
358
358
|
fields: Qe,
|
|
359
|
-
month:
|
|
360
|
-
day:
|
|
361
|
-
year:
|
|
359
|
+
month: Je,
|
|
360
|
+
day: We,
|
|
361
|
+
year: Xe,
|
|
362
362
|
timeGroup: Ze,
|
|
363
363
|
dayInput: et,
|
|
364
364
|
yearInput: tt,
|
package/dist/component/{dext-checkbox-group-rac-DWvCwPTc.js → dext-checkbox-group-rac-Dir6tyvo.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 { bh as e, aj as t } from "./form-D9IxiDXP.js";
|
|
3
|
+
import { C as p } from "./checkbox-group-field-rac-Bir3gaI9.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-8OX3bK1R.js → dext-radio-group-rac-Q2J5Hk5W.js}
RENAMED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import r from "react";
|
|
2
|
-
import {
|
|
3
|
-
import { R as p } from "./radio-group-field-rac-
|
|
2
|
+
import { bh as e, aj as t } from "./form-D9IxiDXP.js";
|
|
3
|
+
import { R as p } from "./radio-group-field-rac-Bpyr40q-.js";
|
|
4
4
|
import { a } from "./default-limits-D7qVv_Hv.js";
|
|
5
|
-
const
|
|
5
|
+
const l = () => {
|
|
6
6
|
const o = {
|
|
7
7
|
...e(),
|
|
8
8
|
otherInputCharacterLimit: a
|
|
@@ -14,5 +14,5 @@ const c = () => {
|
|
|
14
14
|
}, /* @__PURE__ */ r.createElement(p, null));
|
|
15
15
|
};
|
|
16
16
|
export {
|
|
17
|
-
|
|
17
|
+
l as DextRadioGroupRAC
|
|
18
18
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import r from "react";
|
|
2
|
-
import {
|
|
3
|
-
import { T as s } from "./tags-field-rac-
|
|
2
|
+
import { bh as e, aj as o } from "./form-D9IxiDXP.js";
|
|
3
|
+
import { T as s } from "./tags-field-rac-CEdfh-EQ.js";
|
|
4
4
|
import { b as a } from "./default-limits-D7qVv_Hv.js";
|
|
5
|
-
const
|
|
5
|
+
const l = () => {
|
|
6
6
|
const t = {
|
|
7
7
|
...e(),
|
|
8
8
|
otherInputCharacterLimit: a
|
|
@@ -14,5 +14,5 @@ const c = () => {
|
|
|
14
14
|
}, /* @__PURE__ */ r.createElement(s, null));
|
|
15
15
|
};
|
|
16
16
|
export {
|
|
17
|
-
|
|
17
|
+
l as DextTagsRAC
|
|
18
18
|
};
|