@wix/form-elements 1.140.0 → 1.142.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-CBgveDfU.js → appointment-rac-BAwonF75.js} +85 -85
- package/dist/component/{bookings-address-rac-BJqKQGM7.js → bookings-address-rac-xhj2n7jK.js} +1 -1
- package/dist/component/{bookings-email-rac-BEBnQQtI.js → bookings-email-rac-BGjeAwgm.js} +1 -1
- package/dist/component/{bookings-first-name-rac-CcLe5bPh.js → bookings-first-name-rac-l392yYAU.js} +1 -1
- package/dist/component/{bookings-header-rac-C2CRP5vX.js → bookings-header-rac-JwIo7hsJ.js} +1 -1
- package/dist/component/{bookings-last-name-rac-D9EPB2o-.js → bookings-last-name-rac-CJp81BPl.js} +1 -1
- package/dist/component/{bookings-login-bar-rac-DaDoExJQ.js → bookings-login-bar-rac-BiPklGE_.js} +4 -4
- package/dist/component/{bookings-phone-rac-C4rfNh9m.js → bookings-phone-rac-mQfDJGkK.js} +1 -1
- package/dist/component/{bookings-rich-text-rac-CHupwGUy.js → bookings-rich-text-rac-BOfHn2EU.js} +1 -1
- package/dist/component/{checkbox-field-rac-JA4-Un3S.js → checkbox-field-rac-CA6SeM0c.js} +4 -4
- package/dist/component/{checkbox-group-field-headless-ikYtTUSV.js → checkbox-group-field-headless-ChLT0zKA.js} +3 -3
- package/dist/component/{checkbox-group-field-rac-CkkSPle4.js → checkbox-group-field-rac-_Fkre79S.js} +7 -7
- package/dist/component/{checkbox-group-rac-BYXab1TV.js → checkbox-group-rac-esBLJZ6Y.js} +1 -1
- package/dist/component/{checkbox-rac-MsaKpbsM.js → checkbox-rac-C3vXtbJh.js} +1 -1
- package/dist/component/{contacts-address-rac-BG5KM6Mu.js → contacts-address-rac-BuBBBt19.js} +1 -1
- package/dist/component/{contacts-birthdate-rac-CIJtY0ml.js → contacts-birthdate-rac-BMBJeVOK.js} +1 -1
- package/dist/component/{contacts-company-rac-qQxsdn-g.js → contacts-company-rac-CZl168-E.js} +1 -1
- package/dist/component/{contacts-email-rac-Cb_zFMQd.js → contacts-email-rac-CJgVzCns.js} +1 -1
- package/dist/component/{contacts-first-name-rac-L0IsiQmM.js → contacts-first-name-rac-9ZNYKQeb.js} +1 -1
- package/dist/component/{contacts-last-name-rac-BNgF4RBx.js → contacts-last-name-rac-KgylQwHW.js} +1 -1
- package/dist/component/{contacts-phone-rac-BhOsgxwZ.js → contacts-phone-rac-DYr30FLP.js} +1 -1
- package/dist/component/{contacts-position-rac-B2JM9fSY.js → contacts-position-rac-B9BZZ3K9.js} +1 -1
- package/dist/component/{contacts-subscribe-rac-CVSWNhBY.js → contacts-subscribe-rac-DOQb2GLm.js} +1 -1
- package/dist/component/{contacts-tax-id-rac-BtdNdxYS.js → contacts-tax-id-rac-cYE1ehXN.js} +1 -1
- package/dist/component/{date-availability-BVSO1Gbz.js → date-availability-BOKvA8w-.js} +1 -1
- package/dist/component/{date-input-field-rac-DFCPKpI2.js → date-input-field-rac-BwY53gNr.js} +47 -47
- package/dist/component/{date-input-rac-CcC5JdTU.js → date-input-rac-Cgg4QJbB.js} +1 -1
- package/dist/component/{date-picker-field-rac-CAr7r5k3.js → date-picker-field-rac-0Ue6uiCM.js} +5 -5
- package/dist/component/{date-picker-rac-0WEGa3ZQ.js → date-picker-rac-CgICj33f.js} +1 -1
- package/dist/component/{date-time-input-field-rac-DPlFlkrF.js → date-time-input-field-rac-ChRCMk7_.js} +60 -60
- package/dist/component/{date-time-input-rac-c0dm0pdf.js → date-time-input-rac-B8tRZrri.js} +1 -1
- package/dist/component/{dext-checkbox-group-rac-B1db5jv3.js → dext-checkbox-group-rac-B_qjx1QD.js} +2 -2
- package/dist/component/{dext-checkbox-rac-C03w68Ta.js → dext-checkbox-rac-Bw9SyhHA.js} +1 -1
- package/dist/component/{dext-date-picker-rac-DTjysj_k.js → dext-date-picker-rac-Bzn28zNq.js} +1 -1
- package/dist/component/{dext-date-time-input-rac-CnL2o6YR.js → dext-date-time-input-rac-7Cuk3PoA.js} +1 -1
- package/dist/component/{dext-dropdown-rac-CJxC-Wr0.js → dext-dropdown-rac-Md1VI5pc.js} +1 -1
- package/dist/component/{dext-email-rac-CewA7bXc.js → dext-email-rac-DbHwHGKz.js} +1 -1
- package/dist/component/{dext-number-input-rac--_aUE6C8.js → dext-number-input-rac-DIVk3zXL.js} +1 -1
- package/dist/component/{dext-phone-rac-_ObccrwR.js → dext-phone-rac-ZIya63UJ.js} +1 -1
- package/dist/component/{dext-radio-group-rac-DXBCI2mT.js → dext-radio-group-rac-DV1xHkOD.js} +2 -2
- package/dist/component/{dext-rating-input-rac-CS3VY3B3.js → dext-rating-input-rac-YRIYgeT4.js} +1 -1
- package/dist/component/{dext-tags-rac-CyTea3vl.js → dext-tags-rac-DTJ6Pz_x.js} +2 -2
- package/dist/component/{dext-text-area-rac-C_qN16CX.js → dext-text-area-rac-V-d9i95A.js} +1 -1
- package/dist/component/{dext-text-input-rac-DhqfiI_U.js → dext-text-input-rac-ccrundX-.js} +1 -1
- package/dist/component/{dext-url-input-rac-CxI4MbMH.js → dext-url-input-rac-Bd5SZ2U4.js} +1 -1
- package/dist/component/{donation-rac-BZmT89_j.js → donation-rac-BFmpW-3b.js} +23 -23
- package/dist/component/{dropdown-field-headless-CO82AsyC.js → dropdown-field-headless-C2qgeReH.js} +5 -5
- package/dist/component/{dropdown-field-rac-BqPHSq7k.js → dropdown-field-rac-Bj1YSgpT.js} +9 -9
- package/dist/component/{dropdown-rac-pOLj9tRE.js → dropdown-rac-DfdvX5I5.js} +1 -1
- package/dist/component/{ecom-address-rac-DBQ0rVmy.js → ecom-address-rac-DOWNQhhX.js} +1 -1
- package/dist/component/{ecom-subscription-checkbox-rac-BJoMvht8.js → ecom-subscription-checkbox-rac-2ELdC1ql.js} +2 -2
- package/dist/component/{email-input-field-rac-DTqYXW-m.js → email-input-field-rac-CY0U6vEM.js} +34 -34
- package/dist/component/{events-repeater-rac-3gkcVOh6.js → events-repeater-rac-C2oo_RZt.js} +4 -4
- package/dist/component/{events-rsvp-rac-DYMvnjuz.js → events-rsvp-rac-BrimIo0r.js} +8 -8
- package/dist/component/{field-error-headless-CQ8PHjtA.js → field-error-headless-r0fX50xw.js} +1 -1
- package/dist/component/{field-label-headless-BgAx-Enb.js → field-label-headless-D-kCfg8j.js} +1 -1
- package/dist/component/{file-upload-rac-B8TgLoCU.js → file-upload-rac-Beb2BcFK.js} +160 -160
- package/dist/component/{fixed-payment-rac-CRupF7Fu.js → fixed-payment-rac-DGFWYMZG.js} +9 -9
- package/dist/component/{form-BzzldBcB.js → form-DtzwuBIo.js} +296 -293
- package/dist/component/form.js +1 -1
- package/dist/component/{header-field-rac-iFuM4bGC.js → header-field-rac-CVmGSa0E.js} +2 -2
- package/dist/component/{header-rac-CLOeCzLk.js → header-rac-C3AEJmYN.js} +1 -1
- package/dist/component/{image-choice-rac-C6UBnrn3.js → image-choice-rac-Ch-mxLgP.js} +16 -16
- package/dist/component/{index-BHGQWZ7f.js → index-CTn6AQ3A.js} +2 -2
- package/dist/component/{index-CtMQ3oqe.js → index-CmqLlW8X.js} +4 -4
- package/dist/component/{isObjectLike-BVz2g6jF.js → isObjectLike-iyypwAQL.js} +1 -1
- package/dist/component/{multiline-address-field-rac-CKBpkEET.js → multiline-address-field-rac-DJXcb6NG.js} +41 -41
- package/dist/component/{multiline-address-rac-DcGF1aWF.js → multiline-address-rac-DcZgTx1c.js} +1 -1
- package/dist/component/{number-input-field-rac-CODTSfX-.js → number-input-field-rac-W3TqQGhC.js} +20 -20
- package/dist/component/{number-input-rac-ByT6DN8A.js → number-input-rac-CdXigsba.js} +1 -1
- package/dist/component/{password-rac-Bwnpd70V.js → password-rac-Dph6984u.js} +19 -19
- package/dist/component/{payment-input-rac-DmfJZmgO.js → payment-input-rac-D5ARk1lF.js} +23 -23
- package/dist/component/{phone-input-field-rac-B2exX67y.js → phone-input-field-rac-BUfe-B2i.js} +55 -55
- package/dist/component/{phone-rac-9HksdhZY.js → phone-rac-DTiWT1uy.js} +1 -1
- package/dist/component/{product-list-rac-DnhtTpJC.js → product-list-rac-1_Q2JYwH.js} +32 -32
- package/dist/component/{quiz-radio-group-rac-BNVLQ2YS.js → quiz-radio-group-rac-iyBhi0wJ.js} +1 -1
- package/dist/component/{radio-button-module-classes-D2nPj405.js → radio-button-module-classes-DwfobXBe.js} +3 -3
- package/dist/component/{radio-group-field-rac-BT657aHX.js → radio-group-field-rac-BkKNVwMi.js} +8 -8
- package/dist/component/{radio-group-rac-yjr7rBFf.js → radio-group-rac-CH0nkJ8V.js} +1 -1
- package/dist/component/{rating-input-field-rac-DJzVLTkF.js → rating-input-field-rac-CUUUlgZi.js} +27 -27
- package/dist/component/{rating-input-rac-Cpzm_Rbk.js → rating-input-rac-8yEiqBR5.js} +1 -1
- package/dist/component/{rich-content-rac.module-B8WTFbve.js → rich-content-rac.module-DeKU0pwh.js} +1 -1
- package/dist/component/{rich-text-field-rac-DCiBRkow.js → rich-text-field-rac-Cwd-RWTi.js} +2 -2
- package/dist/component/{rich-text-rac-DiP1GwaU.js → rich-text-rac-C5-jPNYP.js} +1 -1
- package/dist/component/{service-dropdown-rac-D5YlC7mU.js → service-dropdown-rac-DBGAnsut.js} +37 -37
- package/dist/component/{services-multi-choice-rac-D5uwtGzk.js → services-multi-choice-rac-CqEoGsuw.js} +12 -12
- package/dist/component/{signature-rac-g7pBfp7A.js → signature-rac-Cq3y66Cr.js} +36 -36
- package/dist/component/{submit-button-rac-WVz4yWjl.js → submit-button-rac-CKM7yUL4.js} +2 -2
- package/dist/component/{tags-field-rac-BS7qlHyA.js → tags-field-rac-CpJ0O9f_.js} +15 -15
- package/dist/component/{tags-rac-CQGlk8GO.js → tags-rac-BPjw67Po.js} +1 -1
- package/dist/component/{text-area-field-rac-B2rsUGoZ.js → text-area-field-rac-BG6MJuIW.js} +16 -16
- package/dist/component/{text-area-rac-CwJXAFKH.js → text-area-rac-BAS4F4VC.js} +1 -1
- package/dist/component/{text-input-field-rac-CiZ83ULN.js → text-input-field-rac-BhMktcEd.js} +5 -5
- package/dist/component/{text-input-headless-C56J6s10.js → text-input-headless-Bpjd70nh.js} +3 -3
- package/dist/component/{text-input-rac-BMSWPbrZ.js → text-input-rac-Bj21XKGA.js} +1 -1
- package/dist/component/{time-input-rac-DrKC1wiN.js → time-input-rac-DBpRHdnX.js} +12 -12
- package/dist/component/{url-input-field-rac-HPvjYmsV.js → url-input-field-rac-B_EMXVWh.js} +11 -11
- package/dist/component/{url-input-rac-gQIszvK3.js → url-input-rac-D0Ck-9KV.js} +1 -1
- package/dist/component/{use-dropdown-option-class-name-nZCgStzg.js → use-dropdown-option-class-name-CkpHwC6t.js} +21 -21
- package/dist/component/{use-dropdown-trigger-class-name-Ba9Ej9xC.js → use-dropdown-trigger-class-name-DmDwpAVn.js} +2 -2
- package/dist/component/{use-element-state-class-name-CEMjabjh.js → use-element-state-class-name-BrgdwHYP.js} +1 -1
- package/dist/component/{use-hoverable-input-class-name-BSiPBu4i.js → use-hoverable-input-class-name-qVo45l-t.js} +2 -2
- package/dist/component/{use-service-options-base-DSkh5Ayp.js → use-service-options-base-Dlqs4p0Z.js} +1 -1
- package/dist/component/use-text-input-class-name-CP2VJOso.js +6 -0
- package/dist/form.d.ts +12 -2
- package/package.json +2 -2
- package/dist/component/use-text-input-class-name-B2pSCrTD.js +0 -6
package/dist/component/{date-input-field-rac-DFCPKpI2.js → date-input-field-rac-BwY53gNr.js}
RENAMED
|
@@ -3,22 +3,22 @@ import h from "classnames";
|
|
|
3
3
|
import t, { useMemo as O, useState as k, useCallback as v, useRef as w } from "react";
|
|
4
4
|
import { UNSAFE_PortalProvider as te } from "react-aria";
|
|
5
5
|
import { ListBoxItem as ae, Select as ne, TextField as $, SelectValue as re, Input as q } from "react-aria-components";
|
|
6
|
-
import { bj as
|
|
6
|
+
import { bj as y, bg as z, bb as V, aQ as K, b1 as Q, aD as m, bt as S, aK as se, aR as oe, b8 as le, bl as H, R as P, $ as ce, x as ie, G as me, u as de } from "./form-DtzwuBIo.js";
|
|
7
7
|
import { f as u, a as B } from "./find-child-C60k4CxG.js";
|
|
8
8
|
import { g as ue } from "./helpers-HmkkXrh2.js";
|
|
9
|
-
import { D as pe, E as Ee } from "./field-error-headless-
|
|
10
|
-
import { L as fe } from "./field-label-headless-
|
|
9
|
+
import { D as pe, E as Ee } from "./field-error-headless-r0fX50xw.js";
|
|
10
|
+
import { L as fe } from "./field-label-headless-D-kCfg8j.js";
|
|
11
11
|
import { F as be } from "./fieldset-headless-CD3fds9J.js";
|
|
12
|
-
import { N as he, E as
|
|
13
|
-
import { a as ge, u as Ie } from "./use-dropdown-trigger-class-name-
|
|
14
|
-
import { V as Oe, u as Ne } from "./use-dropdown-option-class-name-
|
|
12
|
+
import { N as he, E as De, S as ye } from "./non-modal-popover-D-u13tmp.js";
|
|
13
|
+
import { a as ge, u as Ie } from "./use-dropdown-trigger-class-name-DmDwpAVn.js";
|
|
14
|
+
import { V as Oe, u as Ne } from "./use-dropdown-option-class-name-CkpHwC6t.js";
|
|
15
15
|
import { C as Le } from "./chevron-down-icon-CcpVm6B-.js";
|
|
16
16
|
import { E as _e } from "./error-icon-hZxQ6DEy.js";
|
|
17
17
|
import { H as Ce } from "./custom-focus-class-_483Pkwp.js";
|
|
18
18
|
import { s as E } from "./field-rac.module-DfEb7pBp.js";
|
|
19
|
-
import { u as U } from "./use-text-input-class-name-
|
|
19
|
+
import { u as U } from "./use-text-input-class-name-CP2VJOso.js";
|
|
20
20
|
const n = ({ children: e, className: a }) => {
|
|
21
|
-
const { id: r, required: s, onBlur: o, onFocus: l, FieldLayout: c } =
|
|
21
|
+
const { id: r, required: s, onBlur: o, onFocus: l, FieldLayout: c } = y(), { inputId: d, labelId: i, ariaDescribedBy: f } = z(), { regionalFormat: p } = V(), b = O(() => K(p).filter(Q).map((Y) => Y.toUpperCase()), [
|
|
22
22
|
p
|
|
23
23
|
]), L = u(e, n.Label), T = u(e, n.Description), _ = u(e, n.Error), C = {
|
|
24
24
|
[m.MONTH]: u(e, n.Month),
|
|
@@ -42,20 +42,20 @@ const n = ({ children: e, className: a }) => {
|
|
|
42
42
|
renderDescription: () => /* @__PURE__ */ t.createElement(t.Fragment, null, _, T)
|
|
43
43
|
});
|
|
44
44
|
}, g = ({ children: e, className: a }) => {
|
|
45
|
-
const { id: r, disabled: s, readOnly: o, showDateLabels: l, hidePlaceholder: c } =
|
|
46
|
-
o || p(typeof
|
|
45
|
+
const { id: r, disabled: s, readOnly: o, showDateLabels: l, hidePlaceholder: c } = y(), { labelId: d } = I(m.MONTH), { partValue: i, partError: f, onPartChange: p } = N(m.MONTH), { t: b } = S(), [L, T] = k(!1), _ = ge(r), [C, Y] = k(null), j = c ? De : b("field.date.placeholder.month"), G = v((M) => {
|
|
46
|
+
o || p(typeof M == "string" ? M : "");
|
|
47
47
|
}, [
|
|
48
48
|
p,
|
|
49
49
|
o
|
|
50
|
-
]),
|
|
51
|
-
T(
|
|
50
|
+
]), W = v((M) => {
|
|
51
|
+
T(M && !o);
|
|
52
52
|
}, [
|
|
53
53
|
o
|
|
54
|
-
]),
|
|
54
|
+
]), J = u(e, g.Label), X = u(e, g.Trigger), Z = u(e, g.Options);
|
|
55
55
|
return /* @__PURE__ */ t.createElement("div", {
|
|
56
56
|
className: a,
|
|
57
57
|
"data-date-field": !0
|
|
58
|
-
}, l ?
|
|
58
|
+
}, l ? J : null, /* @__PURE__ */ t.createElement("div", {
|
|
59
59
|
ref: Y,
|
|
60
60
|
style: {
|
|
61
61
|
display: "contents"
|
|
@@ -70,19 +70,19 @@ const n = ({ children: e, className: a }) => {
|
|
|
70
70
|
isInvalid: f,
|
|
71
71
|
placeholder: j,
|
|
72
72
|
isOpen: _ || L,
|
|
73
|
-
onOpenChange: _ ? void 0 :
|
|
73
|
+
onOpenChange: _ ? void 0 : W
|
|
74
74
|
}, X, B(Z, {
|
|
75
75
|
isForcedOpen: _
|
|
76
76
|
}))));
|
|
77
77
|
}, Fe = ({ className: e }) => /* @__PURE__ */ t.createElement(x, {
|
|
78
78
|
datePart: m.MONTH,
|
|
79
79
|
className: e
|
|
80
|
-
}),
|
|
81
|
-
const { id: r, readOnly: s } =
|
|
80
|
+
}), Re = ({ children: e, className: a }) => {
|
|
81
|
+
const { id: r, readOnly: s } = y(), { inputId: o } = I(m.MONTH), { partError: l, isFirstPart: c } = N(m.MONTH), d = w(null);
|
|
82
82
|
return H(() => {
|
|
83
83
|
var i;
|
|
84
84
|
c && ((i = d.current) == null || i.focus());
|
|
85
|
-
}, r), /* @__PURE__ */ t.createElement(
|
|
85
|
+
}, r), /* @__PURE__ */ t.createElement(ye, {
|
|
86
86
|
ref: d,
|
|
87
87
|
id: o,
|
|
88
88
|
className: a,
|
|
@@ -90,10 +90,10 @@ const n = ({ children: e, className: a }) => {
|
|
|
90
90
|
"data-invalid": l || void 0,
|
|
91
91
|
"data-readonly": s || void 0
|
|
92
92
|
}, /* @__PURE__ */ t.createElement(re, null), e);
|
|
93
|
-
},
|
|
93
|
+
}, A = ({ children: e, className: a, ...r }) => {
|
|
94
94
|
const { isForcedOpen: s } = r, { language: o } = V(), l = O(() => ue(o), [
|
|
95
95
|
o
|
|
96
|
-
]), c = u(e,
|
|
96
|
+
]), c = u(e, A.Option) ?? /* @__PURE__ */ t.createElement(A.Option, null);
|
|
97
97
|
return /* @__PURE__ */ t.createElement(he, {
|
|
98
98
|
className: a,
|
|
99
99
|
containerPadding: 0,
|
|
@@ -106,7 +106,7 @@ const n = ({ children: e, className: a }) => {
|
|
|
106
106
|
value: String(i + 1),
|
|
107
107
|
label: d
|
|
108
108
|
}))));
|
|
109
|
-
},
|
|
109
|
+
}, Me = ({ className: e, ...a }) => {
|
|
110
110
|
const { value: r, label: s } = a;
|
|
111
111
|
return /* @__PURE__ */ t.createElement(ae, {
|
|
112
112
|
className: e,
|
|
@@ -115,11 +115,11 @@ const n = ({ children: e, className: a }) => {
|
|
|
115
115
|
}, s);
|
|
116
116
|
};
|
|
117
117
|
g.Label = Fe;
|
|
118
|
-
g.Trigger =
|
|
119
|
-
g.Options =
|
|
120
|
-
|
|
118
|
+
g.Trigger = Re;
|
|
119
|
+
g.Options = A;
|
|
120
|
+
A.Option = Me;
|
|
121
121
|
const F = ({ children: e, className: a }) => {
|
|
122
|
-
const { disabled: r, readOnly: s, showDateLabels: o } =
|
|
122
|
+
const { disabled: r, readOnly: s, showDateLabels: o } = y(), { labelId: l } = I(m.DAY), { partValue: c, partError: d, onPartChange: i } = N(m.DAY), f = u(e, F.Label), p = u(e, F.Input);
|
|
123
123
|
return /* @__PURE__ */ t.createElement("div", {
|
|
124
124
|
className: a,
|
|
125
125
|
"data-date-field": !0
|
|
@@ -131,11 +131,11 @@ const F = ({ children: e, className: a }) => {
|
|
|
131
131
|
isReadOnly: s,
|
|
132
132
|
isInvalid: d
|
|
133
133
|
}, p));
|
|
134
|
-
},
|
|
134
|
+
}, Pe = ({ className: e }) => /* @__PURE__ */ t.createElement(x, {
|
|
135
135
|
datePart: m.DAY,
|
|
136
136
|
className: e
|
|
137
|
-
}),
|
|
138
|
-
const { id: a, hidePlaceholder: r } =
|
|
137
|
+
}), Ae = ({ className: e }) => {
|
|
138
|
+
const { id: a, hidePlaceholder: r } = y(), { inputId: s } = I(m.DAY), { isFirstPart: o } = N(m.DAY), { t: l } = S(), c = w(null), d = r ? void 0 : l("field.date.placeholder.day");
|
|
139
139
|
return H(() => {
|
|
140
140
|
var i;
|
|
141
141
|
o && ((i = c.current) == null || i.focus());
|
|
@@ -149,10 +149,10 @@ const F = ({ children: e, className: a }) => {
|
|
|
149
149
|
"data-hook": m.DAY
|
|
150
150
|
});
|
|
151
151
|
};
|
|
152
|
-
F.Label =
|
|
153
|
-
F.Input =
|
|
154
|
-
const
|
|
155
|
-
const { disabled: r, readOnly: s, showDateLabels: o } =
|
|
152
|
+
F.Label = Pe;
|
|
153
|
+
F.Input = Ae;
|
|
154
|
+
const R = ({ children: e, className: a }) => {
|
|
155
|
+
const { disabled: r, readOnly: s, showDateLabels: o } = y(), { labelId: l } = I(m.YEAR), { partValue: c, partError: d, onPartChange: i } = N(m.YEAR), f = u(e, R.Label), p = u(e, R.Input);
|
|
156
156
|
return /* @__PURE__ */ t.createElement("div", {
|
|
157
157
|
className: a,
|
|
158
158
|
"data-date-field": !0
|
|
@@ -168,7 +168,7 @@ const M = ({ children: e, className: a }) => {
|
|
|
168
168
|
datePart: m.YEAR,
|
|
169
169
|
className: e
|
|
170
170
|
}), Te = ({ className: e }) => {
|
|
171
|
-
const { id: a, hidePlaceholder: r } =
|
|
171
|
+
const { id: a, hidePlaceholder: r } = y(), { inputId: s } = I(m.YEAR), { isFirstPart: o } = N(m.YEAR), { t: l } = S(), c = w(null), d = r ? void 0 : l("field.date.placeholder.year");
|
|
172
172
|
return H(() => {
|
|
173
173
|
var i;
|
|
174
174
|
o && ((i = c.current) == null || i.focus());
|
|
@@ -182,12 +182,12 @@ const M = ({ children: e, className: a }) => {
|
|
|
182
182
|
"data-hook": m.YEAR
|
|
183
183
|
});
|
|
184
184
|
};
|
|
185
|
-
|
|
186
|
-
|
|
185
|
+
R.Label = Se;
|
|
186
|
+
R.Input = Te;
|
|
187
187
|
n.Label = fe;
|
|
188
188
|
n.Month = g;
|
|
189
189
|
n.Day = F;
|
|
190
|
-
n.Year =
|
|
190
|
+
n.Year = R;
|
|
191
191
|
n.Description = pe;
|
|
192
192
|
n.Error = Ee;
|
|
193
193
|
function I(e) {
|
|
@@ -204,7 +204,7 @@ function I(e) {
|
|
|
204
204
|
]);
|
|
205
205
|
}
|
|
206
206
|
function N(e) {
|
|
207
|
-
const { value: a, onChange: r, hasError: s = !1 } =
|
|
207
|
+
const { value: a, onChange: r, hasError: s = !1 } = y(), { regionalFormat: o } = V(), l = O(() => se(a ?? ""), [
|
|
208
208
|
a
|
|
209
209
|
]), c = O(() => oe(s, a ?? ""), [
|
|
210
210
|
a,
|
|
@@ -235,7 +235,7 @@ function x({ datePart: e, className: a }) {
|
|
|
235
235
|
className: a
|
|
236
236
|
}, c);
|
|
237
237
|
}
|
|
238
|
-
const Ye = "_fields_fw9my_1", ve = "_month_fw9my_10", we = "_day_fw9my_11", Ve = "_year_fw9my_12", He = "_dayInput_fw9my_28", Be = "_yearInput_fw9my_29", xe = "_monthTrigger_fw9my_33", ke = "_monthOption_fw9my_53",
|
|
238
|
+
const Ye = "_fields_fw9my_1", ve = "_month_fw9my_10", we = "_day_fw9my_11", Ve = "_year_fw9my_12", He = "_dayInput_fw9my_28", Be = "_yearInput_fw9my_29", xe = "_monthTrigger_fw9my_33", ke = "_monthOption_fw9my_53", D = {
|
|
239
239
|
fields: Ye,
|
|
240
240
|
month: ve,
|
|
241
241
|
day: we,
|
|
@@ -248,17 +248,17 @@ const Ye = "_fields_fw9my_1", ve = "_month_fw9my_10", we = "_day_fw9my_11", Ve =
|
|
|
248
248
|
content: e,
|
|
249
249
|
locale: a
|
|
250
250
|
}), ct = () => {
|
|
251
|
-
const e = Ie(
|
|
251
|
+
const e = Ie(D.monthTrigger), a = Ne(D.monthOption, Ce), r = U(D.dayInput), s = U(D.yearInput);
|
|
252
252
|
return /* @__PURE__ */ t.createElement(n, {
|
|
253
|
-
className:
|
|
253
|
+
className: D.fields
|
|
254
254
|
}, /* @__PURE__ */ t.createElement(n.Label, {
|
|
255
|
-
className: h(
|
|
255
|
+
className: h(P, E.label)
|
|
256
256
|
}, /* @__PURE__ */ t.createElement(n.Label.Required, {
|
|
257
257
|
className: h(ce, E.requiredMark)
|
|
258
258
|
})), /* @__PURE__ */ t.createElement(n.Month, {
|
|
259
|
-
className:
|
|
259
|
+
className: D.month
|
|
260
260
|
}, /* @__PURE__ */ t.createElement(n.Month.Label, {
|
|
261
|
-
className: h(
|
|
261
|
+
className: h(P, E.label)
|
|
262
262
|
}), /* @__PURE__ */ t.createElement(n.Month.Trigger, {
|
|
263
263
|
className: e
|
|
264
264
|
}, /* @__PURE__ */ t.createElement(Le, {
|
|
@@ -268,15 +268,15 @@ const Ye = "_fields_fw9my_1", ve = "_month_fw9my_10", we = "_day_fw9my_11", Ve =
|
|
|
268
268
|
}, /* @__PURE__ */ t.createElement(n.Month.Options.Option, {
|
|
269
269
|
className: a
|
|
270
270
|
}))), /* @__PURE__ */ t.createElement(n.Day, {
|
|
271
|
-
className:
|
|
271
|
+
className: D.day
|
|
272
272
|
}, /* @__PURE__ */ t.createElement(n.Day.Label, {
|
|
273
|
-
className: h(
|
|
273
|
+
className: h(P, E.label)
|
|
274
274
|
}), /* @__PURE__ */ t.createElement(n.Day.Input, {
|
|
275
275
|
className: r
|
|
276
276
|
})), /* @__PURE__ */ t.createElement(n.Year, {
|
|
277
|
-
className:
|
|
277
|
+
className: D.year
|
|
278
278
|
}, /* @__PURE__ */ t.createElement(n.Year.Label, {
|
|
279
|
-
className: h(
|
|
279
|
+
className: h(P, E.label)
|
|
280
280
|
}), /* @__PURE__ */ t.createElement(n.Year.Input, {
|
|
281
281
|
className: s
|
|
282
282
|
})), /* @__PURE__ */ t.createElement(n.Error, {
|
package/dist/component/{date-picker-field-rac-CAr7r5k3.js → date-picker-field-rac-0Ue6uiCM.js}
RENAMED
|
@@ -4,14 +4,14 @@ import e, { useState as A, useCallback as k, useContext as ee, useRef as O, useM
|
|
|
4
4
|
import { parseDate as te } from "@internationalized/date";
|
|
5
5
|
import { UNSAFE_PortalProvider as re } from "react-aria";
|
|
6
6
|
import { I18nProvider as ae, DatePicker as ne, DatePickerStateContext as oe, Group as le, DateInput as se, DateSegment as ce, Calendar as ie, CalendarMonthPicker as me, CalendarYearPicker as de, CalendarGrid as ue, Dialog as ge, CalendarCell as Ee, Button as M, Select as w, SelectValue as x, ListBox as Y, ListBoxItem as B } from "react-aria-components";
|
|
7
|
-
import { D as p, bj as T, bg as U, bb as F, bl as pe,
|
|
7
|
+
import { D as p, bj as T, bg as U, bb as F, bl as pe, R as fe, $ as De, t as Ce, G as ye, u as Se } from "./form-DtzwuBIo.js";
|
|
8
8
|
import { g as he, c as P } from "./calendar.module-CKCBG_Pg.js";
|
|
9
9
|
import { f as E, a as h } from "./find-child-C60k4CxG.js";
|
|
10
|
-
import { D as Te, E as be } from "./field-error-headless-
|
|
11
|
-
import { L as Ne } from "./field-label-headless-
|
|
10
|
+
import { D as Te, E as be } from "./field-error-headless-r0fX50xw.js";
|
|
11
|
+
import { L as Ne } from "./field-label-headless-D-kCfg8j.js";
|
|
12
12
|
import { D as ve, N as L, S as V } from "./non-modal-popover-D-u13tmp.js";
|
|
13
|
-
import { a as _e, u as Ie } from "./use-dropdown-trigger-class-name-
|
|
14
|
-
import { i as Fe } from "./date-availability-
|
|
13
|
+
import { a as _e, u as Ie } from "./use-dropdown-trigger-class-name-DmDwpAVn.js";
|
|
14
|
+
import { i as Fe } from "./date-availability-BOKvA8w-.js";
|
|
15
15
|
import { C as I } from "./chevron-down-icon-CcpVm6B-.js";
|
|
16
16
|
import { E as Le } from "./error-icon-hZxQ6DEy.js";
|
|
17
17
|
import { H as Ae } from "./custom-focus-class-_483Pkwp.js";
|