@wix/form-elements 1.169.0 → 1.170.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-BbXyKTd7.js → appointment-rac-DZ0SFXmL.js} +83 -83
- package/dist/component/{bookings-address-rac-VJkR_U9L.js → bookings-address-rac-BW9grc77.js} +1 -1
- package/dist/component/{bookings-email-rac-_EupwXpQ.js → bookings-email-rac-D8gMaAfB.js} +1 -1
- package/dist/component/{bookings-first-name-rac-DTZixHYj.js → bookings-first-name-rac-CAjcs7b6.js} +1 -1
- package/dist/component/{bookings-header-rac-BKbKTv5g.js → bookings-header-rac-BhKZ1kku.js} +1 -1
- package/dist/component/{bookings-last-name-rac-BDy860-C.js → bookings-last-name-rac-DpsMDuU0.js} +1 -1
- package/dist/component/{bookings-login-bar-rac-DgNP-YNZ.js → bookings-login-bar-rac-BVdWmKS8.js} +3 -3
- package/dist/component/{bookings-phone-rac-B_I6n96b.js → bookings-phone-rac-DsqNi2mI.js} +1 -1
- package/dist/component/{bookings-rich-text-rac-prYPbIiz.js → bookings-rich-text-rac-elM4Ne3f.js} +1 -1
- package/dist/component/{checkbox-field-rac-C-4PXuxG.js → checkbox-field-rac-BU4E73fD.js} +43 -43
- package/dist/component/{checkbox-group-field-headless-D16bAcaq.js → checkbox-group-field-headless-6yJdIbP2.js} +41 -41
- package/dist/component/{checkbox-group-field-rac-GUQ5dO_s.js → checkbox-group-field-rac-CojbCWSF.js} +4 -4
- package/dist/component/{checkbox-group-rac-Bl6xL5-H.js → checkbox-group-rac-3qUVUc-C.js} +1 -1
- package/dist/component/{checkbox-rac-Blg0KVyP.js → checkbox-rac-DwbTapd_.js} +1 -1
- package/dist/component/{contacts-address-rac-BfOhCAj8.js → contacts-address-rac-BL7XDZuP.js} +1 -1
- package/dist/component/{contacts-birthdate-rac-DYBvDh62.js → contacts-birthdate-rac-DeJYIHAg.js} +1 -1
- package/dist/component/{contacts-company-rac-DIJr7zjA.js → contacts-company-rac-BeImf5uc.js} +1 -1
- package/dist/component/{contacts-email-rac-DjmqELhC.js → contacts-email-rac-CtacwrZ0.js} +1 -1
- package/dist/component/{contacts-first-name-rac-DGNll7gw.js → contacts-first-name-rac-CAdOqOOA.js} +1 -1
- package/dist/component/{contacts-last-name-rac-BJ8AZYQN.js → contacts-last-name-rac-Db9mHzCW.js} +1 -1
- package/dist/component/{contacts-phone-rac-BC-QtpEN.js → contacts-phone-rac-W0OLEbzL.js} +1 -1
- package/dist/component/{contacts-position-rac-BQia__74.js → contacts-position-rac-CV4Ibt4Z.js} +1 -1
- package/dist/component/{contacts-subscribe-rac-CTFptz01.js → contacts-subscribe-rac-CQ3Q1pjZ.js} +1 -1
- package/dist/component/{contacts-tax-id-rac-Cy72Jouc.js → contacts-tax-id-rac-Dux-pk6r.js} +1 -1
- package/dist/component/{date-availability-BC6updcS.js → date-availability-RkX-Qw7G.js} +1 -1
- package/dist/component/date-input-field-rac-CYCT6qoa.js +309 -0
- package/dist/component/{date-input-rac-KkRyWRP_.js → date-input-rac-BkYZ7q_o.js} +1 -1
- package/dist/component/{date-picker-field-rac-BLWVJbTJ.js → date-picker-field-rac-eMidYtsl.js} +31 -31
- package/dist/component/{date-picker-rac-DKCQza7v.js → date-picker-rac-D23rxZcF.js} +1 -1
- package/dist/component/{date-time-input-field-rac-CZxZW6fz.js → date-time-input-field-rac-BjIj4dXQ.js} +111 -111
- package/dist/component/{date-time-input-rac-DQ-iBwmr.js → date-time-input-rac-BSGAdk9L.js} +1 -1
- package/dist/component/{dext-checkbox-group-rac-kp1Jbwt-.js → dext-checkbox-group-rac-Xmb5IKrb.js} +2 -2
- package/dist/component/{dext-checkbox-rac-CBm9cRUz.js → dext-checkbox-rac-2eA7y0ld.js} +1 -1
- package/dist/component/{dext-date-picker-rac-DsVKWsRy.js → dext-date-picker-rac-CmLxVGGT.js} +1 -1
- package/dist/component/{dext-date-time-input-rac-CO26-8Qo.js → dext-date-time-input-rac-Cd9nwSjb.js} +1 -1
- package/dist/component/{dext-dropdown-rac-eRzu2C-y.js → dext-dropdown-rac-BKdQ0nGS.js} +1 -1
- package/dist/component/{dext-email-rac-DDrZzE_G.js → dext-email-rac-07zDPxyf.js} +1 -1
- package/dist/component/{dext-number-input-rac-Dj7sInLk.js → dext-number-input-rac-DRvGuppY.js} +1 -1
- package/dist/component/{dext-phone-rac-g8M77F7m.js → dext-phone-rac-CKtTVjFg.js} +1 -1
- package/dist/component/{dext-radio-group-rac-BjhygC0R.js → dext-radio-group-rac-BsBmMufq.js} +2 -2
- package/dist/component/{dext-rating-input-rac-BraNjvyA.js → dext-rating-input-rac-CcFSTAIh.js} +1 -1
- package/dist/component/{dext-tags-rac-B5mAIuDi.js → dext-tags-rac-CCTDlCvX.js} +2 -2
- package/dist/component/{dext-text-area-rac-D_YBnaWi.js → dext-text-area-rac-Cif8po9h.js} +1 -1
- package/dist/component/{dext-text-input-rac-BzeWH1jv.js → dext-text-input-rac-2118X4iF.js} +1 -1
- package/dist/component/{dext-url-input-rac-Cn0h_vx3.js → dext-url-input-rac-DDImGkQe.js} +1 -1
- package/dist/component/{donation-rac-CQRdHxWh.js → donation-rac-Dnylss1d.js} +103 -103
- package/dist/component/{dropdown-field-rac-C7LL0W5Z.js → dropdown-field-rac-DDI4ZgZH.js} +3 -3
- package/dist/component/{dropdown-rac-Nb2VyJ0x.js → dropdown-rac-DX0Z3R_8.js} +1 -1
- package/dist/component/{ecom-address-rac-_c2YIIwg.js → ecom-address-rac-D9MeEQsk.js} +1 -1
- package/dist/component/{ecom-subscription-checkbox-rac-Bma7TAVj.js → ecom-subscription-checkbox-rac-DKJ9j5dj.js} +2 -2
- package/dist/component/{email-input-field-rac-2E2tEaS5.js → email-input-field-rac-DaKrmlwe.js} +55 -55
- package/dist/component/{events-repeater-rac-COWHYBFD.js → events-repeater-rac-DWrOLT0Y.js} +45 -45
- package/dist/component/{events-rsvp-rac-CXp8j19Y.js → events-rsvp-rac-YBTR1tR0.js} +6 -6
- package/dist/component/{field-error-headless-S-ugOQQX.js → field-error-headless-jksFrezt.js} +10 -10
- package/dist/component/{field-label-headless-_n4I0_tX.js → field-label-headless-BBvJAVxI.js} +10 -10
- package/dist/component/{file-upload-rac-DCH_iwDg.js → file-upload-rac-CgdmfUZG.js} +168 -168
- package/dist/component/{fixed-payment-rac-CYkKJUfM.js → fixed-payment-rac-v6rKwzFs.js} +13 -13
- package/dist/component/{form-jK8ezTss.js → form-BsiK682r.js} +530 -502
- package/dist/component/form.js +1 -1
- package/dist/component/{header-field-rac-DnbjI6W5.js → header-field-rac-BuXybl7K.js} +6 -6
- package/dist/component/{header-rac-DKUICrni.js → header-rac-CDyaLosW.js} +1 -1
- package/dist/component/{image-choice-rac-B_9ponST.js → image-choice-rac-BRlMroBw.js} +41 -41
- package/dist/component/{index-BxdMzOvN.js → index-BanOeCAF.js} +242 -236
- package/dist/component/{index-ZYnsxY-a.js → index-y9URYGEE.js} +6 -6
- package/dist/component/{isObjectLike-BW-9QEQl.js → isObjectLike-BG9nJ-rx.js} +7 -7
- package/dist/component/{multiline-address-field-rac-k-P0ijWG.js → multiline-address-field-rac-DRAkxI1l.js} +342 -342
- package/dist/component/{multiline-address-rac-Bbn9mNDa.js → multiline-address-rac-JjTzWsEb.js} +1 -1
- package/dist/component/{number-input-field-rac--lom-B_X.js → number-input-field-rac-QrouG7Hv.js} +22 -22
- package/dist/component/{number-input-rac-Bhbd6T9S.js → number-input-rac-DGmE7cLv.js} +1 -1
- package/dist/component/{password-rac-BV_uTHb3.js → password-rac-DeyY228m.js} +28 -28
- package/dist/component/{payment-input-rac-cawyGN_t.js → payment-input-rac-DmIennLi.js} +45 -45
- package/dist/component/{phone-input-field-rac-CsElHRto.js → phone-input-field-rac-F7e74TGA.js} +76 -76
- package/dist/component/{phone-rac-XrHN5Nko.js → phone-rac-CQfB2CQD.js} +1 -1
- package/dist/component/{product-list-rac-cxv_xz7K.js → product-list-rac--GGG8vvO.js} +62 -62
- package/dist/component/{quiz-radio-group-rac-DGaxOPE1.js → quiz-radio-group-rac-DF2C2vNq.js} +1 -1
- package/dist/component/{radio-button-module-classes-Xv2Jn01x.js → radio-button-module-classes-DmpNo6F2.js} +17 -17
- package/dist/component/{radio-group-field-rac-DgGqgTql.js → radio-group-field-rac-BGcPYfKO.js} +6 -6
- package/dist/component/{radio-group-rac-Bh0E-oe1.js → radio-group-rac-CqysUMCE.js} +1 -1
- package/dist/component/{rating-input-field-rac-C3YLV971.js → rating-input-field-rac-D-ei917Y.js} +24 -24
- package/dist/component/{rating-input-rac-CfcC5EUh.js → rating-input-rac-a9zJ74fw.js} +1 -1
- package/dist/component/{rich-content-rac.module-DUjzLGtX.js → rich-content-rac.module-CvyLVlXL.js} +5 -5
- package/dist/component/{rich-text-field-rac-BmguoJhk.js → rich-text-field-rac-vf19nvyw.js} +7 -7
- package/dist/component/{rich-text-rac-BWhHcq25.js → rich-text-rac-Cx_wpoxC.js} +1 -1
- package/dist/component/{service-dropdown-rac-C5oX-ql7.js → service-dropdown-rac-DITzKQxd.js} +26 -26
- package/dist/component/{services-multi-choice-rac-C1fem9NB.js → services-multi-choice-rac-BtisN0Aq.js} +11 -11
- package/dist/component/{signature-rac-BtHqiWj1.js → signature-rac-DUeIoS5O.js} +226 -226
- package/dist/component/{submit-button-rac-OYeKJFF8.js → submit-button-rac-C8h6zeTw.js} +36 -36
- package/dist/component/{tags-field-rac-kA2RSijL.js → tags-field-rac-CjFuiB0n.js} +51 -51
- package/dist/component/{tags-rac-B_2qCZGu.js → tags-rac-BO7rwyLl.js} +1 -1
- package/dist/component/{text-area-field-rac-DeO609Mv.js → text-area-field-rac-CgUx3nQ0.js} +23 -23
- package/dist/component/{text-area-rac-BAQFBOZd.js → text-area-rac-WgXYXIaf.js} +1 -1
- package/dist/component/{text-input-field-rac-CCcKwuLZ.js → text-input-field-rac-DaxWFha-.js} +6 -6
- package/dist/component/{text-input-headless-D8-jkaYm.js → text-input-headless-hjuRJTZN.js} +6 -6
- package/dist/component/{text-input-rac-BVcgjj8g.js → text-input-rac-BzumrJBj.js} +1 -1
- package/dist/component/{time-input-rac-BYctyHgU.js → time-input-rac-2FEkpQ7M.js} +18 -18
- package/dist/component/{url-input-field-rac-COC9qgcs.js → url-input-field-rac-BZ9f8D8I.js} +26 -26
- package/dist/component/{url-input-rac-BZXLh0Ej.js → url-input-rac-D-AVlxkD.js} +1 -1
- package/dist/component/{use-dropdown-option-class-name-BTltqRl1.js → use-dropdown-option-class-name-DwAAtzgX.js} +11 -11
- package/dist/component/{use-dropdown-trigger-class-name-BjJZfl3i.js → use-dropdown-trigger-class-name-D-6n9YVG.js} +18 -18
- package/dist/component/{use-element-state-class-name-CkT6Ga8t.js → use-element-state-class-name-C5auxwhj.js} +3 -3
- package/dist/component/{use-hoverable-input-class-name-BkoSr6tr.js → use-hoverable-input-class-name-Nd2jqfz4.js} +2 -2
- package/dist/component/use-is-forced-open-dropdown-CKaHhCqp.js +64 -0
- package/dist/component/{use-service-options-base-Wp8RZ4Z8.js → use-service-options-base-CvluFheT.js} +3 -3
- package/dist/component/use-text-input-class-name-DGTlYJxC.js +6 -0
- package/dist/form.d.ts +19 -0
- package/package.json +2 -2
- package/dist/component/date-input-field-rac-b_T1yf8D.js +0 -309
- package/dist/component/use-is-forced-open-dropdown-fo_NCnSk.js +0 -53
- package/dist/component/use-text-input-class-name-DS7i03Gk.js +0 -6
|
@@ -3,47 +3,47 @@ import E from "classnames";
|
|
|
3
3
|
import t, { useMemo as L, useState as K, useCallback as U, useRef as z, useContext as le } from "react";
|
|
4
4
|
import { parseTime as ie } from "@internationalized/date";
|
|
5
5
|
import { UNSAFE_PortalProvider as ce } from "react-aria";
|
|
6
|
-
import { ListBoxItem as me, Select as de, TextField as
|
|
7
|
-
import {
|
|
6
|
+
import { ListBoxItem as me, Select as de, TextField as Q, TimeField as ue, SelectValue as pe, Input as W, DateInput as Ee, DateSegment as x, TimeFieldStateContext as fe } from "react-aria-components";
|
|
7
|
+
import { bK as b, bH as J, bC as $, bf as Z, bs as ee, b2 as d, bU as y, bw as X, bh as be, b9 as he, bz as _e, bb as j, bM as q, u as Ie, X as ge, al as De, w as V, x as Ne, M as Te, I as Oe, v as Le, y as ye, z as k } from "./form-BsiK682r.js";
|
|
8
8
|
import { f as u, a as C } from "./find-child-C60k4CxG.js";
|
|
9
|
-
import { g as
|
|
10
|
-
import { D as
|
|
11
|
-
import { L as
|
|
9
|
+
import { g as Fe } from "./helpers-HmkkXrh2.js";
|
|
10
|
+
import { D as Pe, E as Ce } from "./field-error-headless-jksFrezt.js";
|
|
11
|
+
import { L as Me } from "./field-label-headless-BBvJAVxI.js";
|
|
12
12
|
import { F as Se } from "./fieldset-headless-CD3fds9J.js";
|
|
13
|
-
import { N as
|
|
14
|
-
import {
|
|
15
|
-
import { V as
|
|
16
|
-
import { C as
|
|
17
|
-
import { E as
|
|
13
|
+
import { N as Re, E as Ae, S as ve } from "./non-modal-popover-D-u13tmp.js";
|
|
14
|
+
import { u as we } from "./use-is-forced-open-dropdown-CKaHhCqp.js";
|
|
15
|
+
import { V as Ve, a as Ye } from "./use-dropdown-option-class-name-DwAAtzgX.js";
|
|
16
|
+
import { C as He } from "./chevron-down-icon-CcpVm6B-.js";
|
|
17
|
+
import { E as Ue } 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-ts2t4WUO.js";
|
|
20
|
-
import { u as H } from "./use-hoverable-input-class-name-
|
|
20
|
+
import { u as H } from "./use-hoverable-input-class-name-Nd2jqfz4.js";
|
|
21
21
|
const l = ({ children: e, className: a }) => {
|
|
22
|
-
const { id: n, required: r, onBlur: o, onFocus: s, FieldLayout: i } =
|
|
22
|
+
const { id: n, required: r, onBlur: o, onFocus: s, FieldLayout: i } = b(), { inputId: m, labelId: c, ariaDescribedBy: h } = J(), { regionalFormat: p } = $(), 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), g = 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: () => C(
|
|
31
|
+
renderLabel: () => C(M, {
|
|
32
32
|
as: "div"
|
|
33
33
|
}),
|
|
34
34
|
renderInput: () => /* @__PURE__ */ t.createElement(Se, {
|
|
35
35
|
id: m,
|
|
36
36
|
ariaLabelledBy: c,
|
|
37
|
-
ariaDescribedBy:
|
|
37
|
+
ariaDescribedBy: h,
|
|
38
38
|
required: r,
|
|
39
39
|
onBlur: o,
|
|
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, g, v)
|
|
44
44
|
});
|
|
45
45
|
}, F = ({ children: e, className: a }) => {
|
|
46
|
-
const { id: n, disabled: r, readOnly: o, showDateLabels: s, hidePlaceholder: i } =
|
|
46
|
+
const { id: n, disabled: r, readOnly: o, showDateLabels: s, hidePlaceholder: i } = b(), { labelId: m } = O(d.MONTH), { partValue: c, partError: h, onPartChange: p } = P(d.MONTH), { t: N } = y(), [M, v] = K(!1), g = we(n), [D, T] = K(null), S = i ? Ae : N("field.date.placeholder.month"), te = U((w) => {
|
|
47
47
|
o || p(typeof w == "string" ? w : "");
|
|
48
48
|
}, [
|
|
49
49
|
p,
|
|
@@ -68,24 +68,24 @@ const l = ({ children: e, className: a }) => {
|
|
|
68
68
|
value: c || null,
|
|
69
69
|
onChange: te,
|
|
70
70
|
isDisabled: r,
|
|
71
|
-
isInvalid:
|
|
72
|
-
placeholder:
|
|
73
|
-
isOpen:
|
|
74
|
-
onOpenChange:
|
|
71
|
+
isInvalid: h,
|
|
72
|
+
placeholder: S,
|
|
73
|
+
isOpen: g || M,
|
|
74
|
+
onOpenChange: g ? void 0 : ae
|
|
75
75
|
}, re, C(oe, {
|
|
76
|
-
isForcedOpen:
|
|
76
|
+
isForcedOpen: g
|
|
77
77
|
}))));
|
|
78
|
-
},
|
|
78
|
+
}, Be = ({ className: e }) => /* @__PURE__ */ t.createElement(G, {
|
|
79
79
|
datePart: d.MONTH,
|
|
80
80
|
className: e
|
|
81
|
-
}),
|
|
82
|
-
const { id: n, readOnly: r } =
|
|
83
|
-
return
|
|
81
|
+
}), xe = ({ children: e, className: a }) => {
|
|
82
|
+
const { id: n, readOnly: r } = b(), { inputId: o } = O(d.MONTH), { partError: s, isFirstPart: i } = P(d.MONTH), m = z(null);
|
|
83
|
+
return q(() => {
|
|
84
84
|
var c;
|
|
85
85
|
i && ((c = m.current) == null || c.focus({
|
|
86
86
|
preventScroll: !0
|
|
87
87
|
}));
|
|
88
|
-
}, n), /* @__PURE__ */ t.createElement(
|
|
88
|
+
}, n), /* @__PURE__ */ t.createElement(ve, {
|
|
89
89
|
ref: m,
|
|
90
90
|
id: o,
|
|
91
91
|
className: a,
|
|
@@ -94,14 +94,14 @@ const l = ({ children: e, className: a }) => {
|
|
|
94
94
|
"data-readonly": r || void 0
|
|
95
95
|
}, /* @__PURE__ */ t.createElement(pe, null), e);
|
|
96
96
|
}, B = ({ children: e, className: a, ...n }) => {
|
|
97
|
-
const { isForcedOpen: r } = n, { language: o } =
|
|
97
|
+
const { isForcedOpen: r } = n, { language: o } = $(), s = L(() => Fe(o), [
|
|
98
98
|
o
|
|
99
99
|
]), i = u(e, B.Option) ?? /* @__PURE__ */ t.createElement(B.Option, null);
|
|
100
|
-
return /* @__PURE__ */ t.createElement(
|
|
100
|
+
return /* @__PURE__ */ t.createElement(Re, {
|
|
101
101
|
className: a,
|
|
102
102
|
containerPadding: 0,
|
|
103
103
|
offset: 0
|
|
104
|
-
}, /* @__PURE__ */ t.createElement(
|
|
104
|
+
}, /* @__PURE__ */ t.createElement(Ve, {
|
|
105
105
|
isForcedOpen: r,
|
|
106
106
|
autoFocus: r ? !1 : void 0
|
|
107
107
|
}, s.map((m, c) => C(i, {
|
|
@@ -109,7 +109,7 @@ const l = ({ children: e, className: a }) => {
|
|
|
109
109
|
value: String(c + 1),
|
|
110
110
|
label: m
|
|
111
111
|
}))));
|
|
112
|
-
},
|
|
112
|
+
}, ke = ({ 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 =
|
|
120
|
+
F.Label = Be;
|
|
121
|
+
F.Trigger = xe;
|
|
122
122
|
F.Options = B;
|
|
123
|
-
B.Option =
|
|
123
|
+
B.Option = ke;
|
|
124
124
|
const R = ({ children: e, className: a }) => {
|
|
125
|
-
const { disabled: n, readOnly: r, showDateLabels: o } =
|
|
125
|
+
const { disabled: n, readOnly: r, showDateLabels: o } = b(), { labelId: s } = O(d.DAY), { partValue: i, partError: m, onPartChange: c } = P(d.DAY), h = 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 &&
|
|
129
|
+
}, o && h, /* @__PURE__ */ t.createElement(Q, {
|
|
130
130
|
"aria-labelledby": o ? s : void 0,
|
|
131
131
|
value: i,
|
|
132
132
|
onChange: c,
|
|
@@ -134,17 +134,17 @@ const R = ({ children: e, className: a }) => {
|
|
|
134
134
|
isReadOnly: r,
|
|
135
135
|
isInvalid: m
|
|
136
136
|
}, p));
|
|
137
|
-
},
|
|
137
|
+
}, ze = ({ className: e }) => /* @__PURE__ */ t.createElement(G, {
|
|
138
138
|
datePart: d.DAY,
|
|
139
139
|
className: e
|
|
140
|
-
}),
|
|
141
|
-
const { id: a, hidePlaceholder: n } =
|
|
142
|
-
return
|
|
140
|
+
}), $e = ({ className: e }) => {
|
|
141
|
+
const { id: a, hidePlaceholder: n } = b(), { inputId: r } = O(d.DAY), { isFirstPart: o } = P(d.DAY), { t: s } = y(), i = z(null), m = n ? void 0 : s("field.date.placeholder.day");
|
|
142
|
+
return q(() => {
|
|
143
143
|
var c;
|
|
144
144
|
o && ((c = i.current) == null || c.focus({
|
|
145
145
|
preventScroll: !0
|
|
146
146
|
}));
|
|
147
|
-
}, a), /* @__PURE__ */ t.createElement(
|
|
147
|
+
}, a), /* @__PURE__ */ t.createElement(W, {
|
|
148
148
|
ref: i,
|
|
149
149
|
id: r,
|
|
150
150
|
className: e,
|
|
@@ -154,14 +154,14 @@ const R = ({ children: e, className: a }) => {
|
|
|
154
154
|
"data-hook": d.DAY
|
|
155
155
|
});
|
|
156
156
|
};
|
|
157
|
-
R.Label =
|
|
158
|
-
R.Input =
|
|
157
|
+
R.Label = ze;
|
|
158
|
+
R.Input = $e;
|
|
159
159
|
const A = ({ children: e, className: a }) => {
|
|
160
|
-
const { disabled: n, readOnly: r, showDateLabels: o } =
|
|
160
|
+
const { disabled: n, readOnly: r, showDateLabels: o } = b(), { labelId: s } = O(d.YEAR), { partValue: i, partError: m, onPartChange: c } = P(d.YEAR), h = 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 &&
|
|
164
|
+
}, o && h, /* @__PURE__ */ t.createElement(Q, {
|
|
165
165
|
"aria-labelledby": o ? s : void 0,
|
|
166
166
|
value: i,
|
|
167
167
|
onChange: c,
|
|
@@ -169,17 +169,17 @@ const A = ({ children: e, className: a }) => {
|
|
|
169
169
|
isReadOnly: r,
|
|
170
170
|
isInvalid: m
|
|
171
171
|
}, p));
|
|
172
|
-
},
|
|
172
|
+
}, qe = ({ className: e }) => /* @__PURE__ */ t.createElement(G, {
|
|
173
173
|
datePart: d.YEAR,
|
|
174
174
|
className: e
|
|
175
|
-
}),
|
|
176
|
-
const { id: a, hidePlaceholder: n } =
|
|
177
|
-
return
|
|
175
|
+
}), Ge = ({ className: e }) => {
|
|
176
|
+
const { id: a, hidePlaceholder: n } = b(), { inputId: r } = O(d.YEAR), { isFirstPart: o } = P(d.YEAR), { t: s } = y(), i = z(null), m = n ? void 0 : s("field.date.placeholder.year");
|
|
177
|
+
return q(() => {
|
|
178
178
|
var c;
|
|
179
179
|
o && ((c = i.current) == null || c.focus({
|
|
180
180
|
preventScroll: !0
|
|
181
181
|
}));
|
|
182
|
-
}, a), /* @__PURE__ */ t.createElement(
|
|
182
|
+
}, a), /* @__PURE__ */ t.createElement(W, {
|
|
183
183
|
ref: i,
|
|
184
184
|
id: r,
|
|
185
185
|
className: e,
|
|
@@ -189,31 +189,31 @@ 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 } =
|
|
192
|
+
A.Label = qe;
|
|
193
|
+
A.Input = Ge;
|
|
194
|
+
const I = ({ children: e, className: a }) => {
|
|
195
|
+
const { disabled: n, readOnly: r, use24HourFormat: o, showDateLabels: s } = b(), { labelId: i } = O("time"), { partValue: m, partError: c, onPartChange: h } = P("time"), p = u(e, I.Label), N = u(e, I.Input);
|
|
196
196
|
return /* @__PURE__ */ t.createElement("div", {
|
|
197
197
|
className: a,
|
|
198
198
|
"data-date-field": !0
|
|
199
199
|
}, s && p, /* @__PURE__ */ t.createElement(ue, {
|
|
200
200
|
"aria-labelledby": s ? i : void 0,
|
|
201
201
|
value: m,
|
|
202
|
-
onChange:
|
|
202
|
+
onChange: h,
|
|
203
203
|
isDisabled: n,
|
|
204
204
|
isReadOnly: r,
|
|
205
205
|
isInvalid: c,
|
|
206
206
|
hourCycle: o ? 24 : 12
|
|
207
207
|
}, N));
|
|
208
|
-
},
|
|
208
|
+
}, Ke = ({ 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,
|
|
212
212
|
htmlFor: a,
|
|
213
213
|
className: e
|
|
214
214
|
}, o);
|
|
215
|
-
},
|
|
216
|
-
const { hidePlaceholder: n } =
|
|
215
|
+
}, Xe = ({ children: e, className: a }) => {
|
|
216
|
+
const { hidePlaceholder: n } = b(), r = u(e, I.Hour), o = u(e, I.Minute), s = u(e, I.Period);
|
|
217
217
|
return /* @__PURE__ */ t.createElement(Ee, {
|
|
218
218
|
className: a,
|
|
219
219
|
"data-hook": "time",
|
|
@@ -240,8 +240,8 @@ const g = ({ children: e, className: a }) => {
|
|
|
240
240
|
return /* @__PURE__ */ t.createElement(t.Fragment, null);
|
|
241
241
|
}
|
|
242
242
|
});
|
|
243
|
-
},
|
|
244
|
-
const { hidePlaceholder: n } =
|
|
243
|
+
}, je = ({ className: e, ...a }) => {
|
|
244
|
+
const { hidePlaceholder: n } = b(), { segment: r } = a, { t: o } = y(), s = n ? void 0 : o("field.date.placeholder.hour");
|
|
245
245
|
return /* @__PURE__ */ t.createElement(x, {
|
|
246
246
|
segment: r,
|
|
247
247
|
className: e,
|
|
@@ -249,8 +249,8 @@ const g = ({ children: e, className: a }) => {
|
|
|
249
249
|
placeholder: s
|
|
250
250
|
}
|
|
251
251
|
});
|
|
252
|
-
},
|
|
253
|
-
const { hidePlaceholder: n } =
|
|
252
|
+
}, Qe = ({ className: e, ...a }) => {
|
|
253
|
+
const { hidePlaceholder: n } = b(), { segment: r } = a, { t: o } = y(), s = n ? void 0 : o("field.date.placeholder.minute");
|
|
254
254
|
return /* @__PURE__ */ t.createElement(x, {
|
|
255
255
|
segment: r,
|
|
256
256
|
className: e,
|
|
@@ -258,8 +258,8 @@ const g = ({ children: e, className: a }) => {
|
|
|
258
258
|
placeholder: s
|
|
259
259
|
}
|
|
260
260
|
});
|
|
261
|
-
},
|
|
262
|
-
const { hidePlaceholder: n } =
|
|
261
|
+
}, We = ({ className: e, ...a }) => {
|
|
262
|
+
const { hidePlaceholder: n } = b(), { segment: r } = a, { t: o } = y(), s = le(fe), i = n ? void 0 : o("field.date.placeholder.period"), m = () => s == null ? void 0 : s.increment("dayPeriod");
|
|
263
263
|
return /* @__PURE__ */ t.createElement(x, {
|
|
264
264
|
segment: r,
|
|
265
265
|
className: e,
|
|
@@ -269,18 +269,18 @@ const g = ({ children: e, className: a }) => {
|
|
|
269
269
|
}
|
|
270
270
|
});
|
|
271
271
|
};
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
l.Label =
|
|
272
|
+
I.Label = Ke;
|
|
273
|
+
I.Input = Xe;
|
|
274
|
+
I.Hour = je;
|
|
275
|
+
I.Minute = Qe;
|
|
276
|
+
I.Period = We;
|
|
277
|
+
l.Label = Me;
|
|
278
278
|
l.Month = F;
|
|
279
279
|
l.Day = R;
|
|
280
280
|
l.Year = A;
|
|
281
|
-
l.Time =
|
|
282
|
-
l.Description =
|
|
283
|
-
l.Error =
|
|
281
|
+
l.Time = I;
|
|
282
|
+
l.Description = Pe;
|
|
283
|
+
l.Error = Ce;
|
|
284
284
|
function O(e) {
|
|
285
285
|
const { inputId: a } = J();
|
|
286
286
|
return L(() => {
|
|
@@ -295,35 +295,35 @@ function O(e) {
|
|
|
295
295
|
]);
|
|
296
296
|
}
|
|
297
297
|
function P(e) {
|
|
298
|
-
const { value: a, onChange: n, hasError: r = !1 } =
|
|
298
|
+
const { value: a, onChange: n, hasError: r = !1 } = b(), { regionalFormat: o } = $(), [s, i] = L(() => X(a ?? ""), [
|
|
299
299
|
a
|
|
300
|
-
]), m = L(() =>
|
|
300
|
+
]), m = L(() => be(r, a ?? ""), [
|
|
301
301
|
a,
|
|
302
302
|
r
|
|
303
|
-
]), c = L(() =>
|
|
303
|
+
]), c = L(() => he(s), [
|
|
304
304
|
s
|
|
305
|
-
]),
|
|
305
|
+
]), h = L(() => Je(i), [
|
|
306
306
|
i
|
|
307
|
-
]), p = U((
|
|
308
|
-
const D =
|
|
307
|
+
]), p = U((g) => {
|
|
308
|
+
const D = Ze(g), T = j(s, D);
|
|
309
309
|
n(T);
|
|
310
310
|
}, [
|
|
311
311
|
n,
|
|
312
312
|
s
|
|
313
|
-
]), N = U((
|
|
314
|
-
const [, D] =
|
|
315
|
-
n(
|
|
313
|
+
]), N = U((g) => {
|
|
314
|
+
const [, D] = X(a ?? ""), T = _e(g, 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
|
]);
|
|
325
325
|
return e === "time" ? {
|
|
326
|
-
partValue:
|
|
326
|
+
partValue: h,
|
|
327
327
|
partError: m.TIME,
|
|
328
328
|
onPartChange: p,
|
|
329
329
|
isFirstPart: !1
|
|
@@ -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 G({ 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,
|
|
@@ -342,7 +342,7 @@ function q({ datePart: e, className: a }) {
|
|
|
342
342
|
className: a
|
|
343
343
|
}, i);
|
|
344
344
|
}
|
|
345
|
-
function
|
|
345
|
+
function Je(e) {
|
|
346
346
|
if (!e)
|
|
347
347
|
return null;
|
|
348
348
|
try {
|
|
@@ -351,7 +351,7 @@ function Qe(e) {
|
|
|
351
351
|
return null;
|
|
352
352
|
}
|
|
353
353
|
}
|
|
354
|
-
function
|
|
354
|
+
function Ze(e) {
|
|
355
355
|
if (!e)
|
|
356
356
|
return null;
|
|
357
357
|
const a = String(e.hour).padStart(2, "0"), n = String(e.minute).padStart(2, "0"), r = String(e.second).padStart(2, "0");
|
|
@@ -361,27 +361,27 @@ function Je(e) {
|
|
|
361
361
|
r
|
|
362
362
|
].join(":");
|
|
363
363
|
}
|
|
364
|
-
const
|
|
365
|
-
fields:
|
|
366
|
-
month:
|
|
367
|
-
day:
|
|
368
|
-
year:
|
|
369
|
-
timeGroup:
|
|
370
|
-
dayInput:
|
|
371
|
-
yearInput:
|
|
372
|
-
monthTrigger:
|
|
373
|
-
monthOption:
|
|
374
|
-
time:
|
|
375
|
-
hour:
|
|
376
|
-
minute:
|
|
377
|
-
period:
|
|
378
|
-
},
|
|
364
|
+
const et = "_fields_1ofw4_1", tt = "_month_1ofw4_10", at = "_day_1ofw4_11", nt = "_year_1ofw4_12", rt = "_timeGroup_1ofw4_13", ot = "_dayInput_1ofw4_34", st = "_yearInput_1ofw4_35", lt = "_monthTrigger_1ofw4_39", it = "_monthOption_1ofw4_59", ct = "_time_1ofw4_13", mt = "_hour_1ofw4_81", dt = "_minute_1ofw4_82", ut = "_period_1ofw4_83", f = {
|
|
365
|
+
fields: et,
|
|
366
|
+
month: tt,
|
|
367
|
+
day: at,
|
|
368
|
+
year: nt,
|
|
369
|
+
timeGroup: rt,
|
|
370
|
+
dayInput: ot,
|
|
371
|
+
yearInput: st,
|
|
372
|
+
monthTrigger: lt,
|
|
373
|
+
monthOption: it,
|
|
374
|
+
time: ct,
|
|
375
|
+
hour: mt,
|
|
376
|
+
minute: dt,
|
|
377
|
+
period: ut
|
|
378
|
+
}, pt = ({ content: e, locale: a }) => /* @__PURE__ */ t.createElement(se, {
|
|
379
379
|
content: e,
|
|
380
380
|
locale: a
|
|
381
|
-
}),
|
|
381
|
+
}), vt = () => {
|
|
382
382
|
const e = H(Le, [
|
|
383
383
|
f.monthTrigger
|
|
384
|
-
]), a =
|
|
384
|
+
]), a = Ye(ye, f.monthOption, Y), n = H(k, [
|
|
385
385
|
f.dayInput
|
|
386
386
|
]), r = H(k, [
|
|
387
387
|
f.yearInput
|
|
@@ -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(Ie, f.fields)
|
|
393
393
|
}, /* @__PURE__ */ t.createElement(l.Label, {
|
|
394
|
-
className: E(
|
|
394
|
+
className: E(ge, _.label)
|
|
395
395
|
}, /* @__PURE__ */ t.createElement(l.Label.Required, {
|
|
396
396
|
className: E(De, _.requiredMark)
|
|
397
397
|
})), /* @__PURE__ */ t.createElement(l.Month, {
|
|
@@ -400,7 +400,7 @@ const Ze = "_fields_1ofw4_1", et = "_month_1ofw4_10", tt = "_day_1ofw4_11", at =
|
|
|
400
400
|
className: E(V, _.label)
|
|
401
401
|
}), /* @__PURE__ */ t.createElement(l.Month.Trigger, {
|
|
402
402
|
className: e
|
|
403
|
-
}, /* @__PURE__ */ t.createElement(
|
|
403
|
+
}, /* @__PURE__ */ t.createElement(He, {
|
|
404
404
|
className: _.dropdownIcon
|
|
405
405
|
})), /* @__PURE__ */ t.createElement(l.Month.Options, {
|
|
406
406
|
className: E(Ne, _.selectPopover, _.dropdownPopover)
|
|
@@ -432,10 +432,10 @@ const Ze = "_fields_1ofw4_1", et = "_month_1ofw4_10", tt = "_day_1ofw4_11", at =
|
|
|
432
432
|
className: E(f.period, Y)
|
|
433
433
|
}))), /* @__PURE__ */ t.createElement(l.Error, {
|
|
434
434
|
className: E(Te, _.error)
|
|
435
|
-
}, /* @__PURE__ */ t.createElement(
|
|
435
|
+
}, /* @__PURE__ */ t.createElement(Ue, null), /* @__PURE__ */ t.createElement(l.Error.Text, null)), /* @__PURE__ */ t.createElement(l.Description, {
|
|
436
436
|
className: E(Oe, _.description)
|
|
437
|
-
},
|
|
437
|
+
}, pt));
|
|
438
438
|
};
|
|
439
439
|
export {
|
|
440
|
-
|
|
440
|
+
vt as D
|
|
441
441
|
};
|
package/dist/component/{dext-checkbox-group-rac-kp1Jbwt-.js → dext-checkbox-group-rac-Xmb5IKrb.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 { bK as e, aM as t } from "./form-BsiK682r.js";
|
|
3
|
+
import { C as p } from "./checkbox-group-field-rac-CojbCWSF.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-BjhygC0R.js → dext-radio-group-rac-BsBmMufq.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 { bK as e, aM as t } from "./form-BsiK682r.js";
|
|
3
|
+
import { R as p } from "./radio-group-field-rac-BGcPYfKO.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 { bK as e, aM as o } from "./form-BsiK682r.js";
|
|
3
|
+
import { T as s } from "./tags-field-rac-CjFuiB0n.js";
|
|
4
4
|
import { b as a } from "./default-limits-D7qVv_Hv.js";
|
|
5
5
|
const l = () => {
|
|
6
6
|
const t = {
|