@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.
Files changed (113) hide show
  1. package/dist/component/{appointment-rac-De-uH9rz.js → appointment-rac-BG5-bIZU.js} +98 -98
  2. package/dist/component/{bookings-address-rac-DB6QCMQJ.js → bookings-address-rac-8e8PqKsp.js} +1 -1
  3. package/dist/component/{bookings-email-rac-g6ZdB_BO.js → bookings-email-rac-CtlnU8ws.js} +1 -1
  4. package/dist/component/{bookings-first-name-rac-DQgL_VHl.js → bookings-first-name-rac-CrivNlXM.js} +1 -1
  5. package/dist/component/{bookings-header-rac-DAnIm-Oq.js → bookings-header-rac-DWDAjfqq.js} +1 -1
  6. package/dist/component/{bookings-last-name-rac-D62jNdDb.js → bookings-last-name-rac-qAthWem2.js} +1 -1
  7. package/dist/component/{bookings-login-bar-rac-5z8HfBhU.js → bookings-login-bar-rac-BNyUDqlM.js} +6 -6
  8. package/dist/component/{bookings-phone-rac-D0gu-_wy.js → bookings-phone-rac-Tc39XLr7.js} +1 -1
  9. package/dist/component/{bookings-rich-text-rac-b4J1HcdI.js → bookings-rich-text-rac-CPNaPtFK.js} +1 -1
  10. package/dist/component/{checkbox-field-rac-CmRRc9Dz.js → checkbox-field-rac-DEa78Tpf.js} +4 -4
  11. package/dist/component/{checkbox-group-field-headless-CB8yAfMe.js → checkbox-group-field-headless-BxBaMg29.js} +68 -68
  12. package/dist/component/{checkbox-group-field-rac-C5gRZRTd.js → checkbox-group-field-rac-CRRP03Qk.js} +7 -7
  13. package/dist/component/{checkbox-group-rac-DNDF1Irh.js → checkbox-group-rac-TOofMGl3.js} +1 -1
  14. package/dist/component/{checkbox-rac-B9vztGBU.js → checkbox-rac-CHMHr8Ry.js} +1 -1
  15. package/dist/component/{contacts-address-rac-CKZeSncj.js → contacts-address-rac-Bc5yDvTL.js} +1 -1
  16. package/dist/component/{contacts-birthdate-rac-BbpNNQgF.js → contacts-birthdate-rac-Ubtg5ncv.js} +1 -1
  17. package/dist/component/{contacts-company-rac-BX2KT201.js → contacts-company-rac-BksH9IoV.js} +1 -1
  18. package/dist/component/{contacts-email-rac-5Irzx1mA.js → contacts-email-rac-DDPEtMAm.js} +1 -1
  19. package/dist/component/{contacts-first-name-rac-CxKp8_2u.js → contacts-first-name-rac-DUlCvEdx.js} +1 -1
  20. package/dist/component/{contacts-last-name-rac-BDCbSv5I.js → contacts-last-name-rac-BikqNgUr.js} +1 -1
  21. package/dist/component/{contacts-phone-rac-BM_PV_uH.js → contacts-phone-rac-B4OEgM_8.js} +1 -1
  22. package/dist/component/{contacts-position-rac-1aqthQSi.js → contacts-position-rac-BfybzySV.js} +1 -1
  23. package/dist/component/{contacts-subscribe-rac-CdqXs4kp.js → contacts-subscribe-rac-CMHb33v1.js} +1 -1
  24. package/dist/component/{contacts-tax-id-rac-BKHpcDb6.js → contacts-tax-id-rac-C-qEqwO5.js} +1 -1
  25. package/dist/component/{date-availability-DmFFTX8p.js → date-availability-DZ3J3LLm.js} +1 -1
  26. package/dist/component/date-input-field-rac-DeL5vuE7.js +297 -0
  27. package/dist/component/{date-input-rac-BB6qZ16w.js → date-input-rac-Di6TQvFf.js} +1 -1
  28. package/dist/component/{date-picker-field-rac-Ckwu2vD6.js → date-picker-field-rac-BcdpTkjV.js} +107 -103
  29. package/dist/component/{date-picker-rac-DSqzUAaH.js → date-picker-rac-Brne65gr.js} +1 -1
  30. package/dist/component/{date-time-input-field-rac-DO-iRdkW.js → date-time-input-field-rac-BtQfAxRp.js} +49 -49
  31. package/dist/component/{date-time-input-rac-smVCCxdY.js → date-time-input-rac-DM_HXiqV.js} +1 -1
  32. package/dist/component/{dext-checkbox-group-rac-B8bx3rT2.js → dext-checkbox-group-rac-WTVwhGG0.js} +2 -2
  33. package/dist/component/{dext-checkbox-rac-x8VLGRbc.js → dext-checkbox-rac-BR5YwmLQ.js} +1 -1
  34. package/dist/component/{dext-date-picker-rac-D2a9NXap.js → dext-date-picker-rac-DvDuRGYi.js} +1 -1
  35. package/dist/component/{dext-date-time-input-rac-Cp5XjpGv.js → dext-date-time-input-rac-C6RgbaVv.js} +1 -1
  36. package/dist/component/{dext-dropdown-rac-nWgEvyxt.js → dext-dropdown-rac-CWjSdcZx.js} +1 -1
  37. package/dist/component/{dext-email-rac-CkX6ya8p.js → dext-email-rac-D-C1gVTq.js} +1 -1
  38. package/dist/component/{dext-number-input-rac-CKT0MS1x.js → dext-number-input-rac-YKzZS2ZG.js} +1 -1
  39. package/dist/component/{dext-phone-rac-DM2E7zW_.js → dext-phone-rac-CFZlEH2a.js} +1 -1
  40. package/dist/component/dext-radio-group-rac-DiH0wIIl.js +18 -0
  41. package/dist/component/{dext-rating-input-rac-CKWNpFuu.js → dext-rating-input-rac-D0s-i0qO.js} +1 -1
  42. package/dist/component/{dext-tags-rac-6AskGGTp.js → dext-tags-rac-Br48OQQ5.js} +2 -2
  43. package/dist/component/{dext-text-area-rac-ClGLD7sD.js → dext-text-area-rac-6jG8gJ7i.js} +1 -1
  44. package/dist/component/{dext-text-input-rac-Blbk53d4.js → dext-text-input-rac-FAJTCXuf.js} +1 -1
  45. package/dist/component/{dext-url-input-rac-BuitmJU0.js → dext-url-input-rac-BoMP8sQB.js} +1 -1
  46. package/dist/component/{donation-rac-DOifFCD7.js → donation-rac-DNi4p-v5.js} +69 -69
  47. package/dist/component/{dropdown-field-headless-m2P6s7X5.js → dropdown-field-headless-7SCC-xOC.js} +27 -27
  48. package/dist/component/{dropdown-field-rac-5e6wWJBl.js → dropdown-field-rac-CMzZh6J6.js} +8 -9
  49. package/dist/component/{dropdown-rac-BGxE9pJB.js → dropdown-rac-qeugpHXY.js} +1 -1
  50. package/dist/component/{ecom-address-rac-kbD9qW5Y.js → ecom-address-rac-D8b_L5md.js} +1 -1
  51. package/dist/component/{ecom-subscription-checkbox-rac-CE-Yixnj.js → ecom-subscription-checkbox-rac-BnAuR9La.js} +5 -5
  52. package/dist/component/{email-input-field-rac-CbwcB33o.js → email-input-field-rac-CunXRyc5.js} +64 -62
  53. package/dist/component/{events-repeater-rac-CGhUscBr.js → events-repeater-rac-DMjyIOkB.js} +17 -17
  54. package/dist/component/{events-rsvp-rac-AQ33zPTe.js → events-rsvp-rac-BsuDPq2K.js} +8 -8
  55. package/dist/component/{field-error-headless-ClPQ03Jc.js → field-error-headless-E8WjFr_n.js} +6 -6
  56. package/dist/component/{field-label-headless-DhN8Lkuq.js → field-label-headless-BakLOu5E.js} +15 -15
  57. package/dist/component/{file-upload-rac-yTx1ZRhZ.js → file-upload-rac-Clu_c--0.js} +43 -43
  58. package/dist/component/{fixed-payment-rac-nlyxa9nB.js → fixed-payment-rac-CzAXxsb-.js} +12 -12
  59. package/dist/component/{form-D3iU18lh.js → form-DHAKwnLt.js} +3850 -3872
  60. package/dist/component/form.css +1 -1
  61. package/dist/component/form.js +2 -2
  62. package/dist/component/{header-field-rac-DAEzcleV.js → header-field-rac-CwmVpz3r.js} +4 -4
  63. package/dist/component/{header-rac-CJZ4qMFg.js → header-rac-ahkGRjSy.js} +1 -1
  64. package/dist/component/{image-choice-rac-BFAMHwPh.js → image-choice-rac-BwxkkdUu.js} +17 -17
  65. package/dist/component/{index-DQW26cnX.js → index-BFi_n6B7.js} +2 -2
  66. package/dist/component/{index-W7GOFnq8.js → index-BQf23zZi.js} +91 -91
  67. package/dist/component/{isObjectLike-CE8eaxSI.js → isObjectLike-DHcMRYYH.js} +15 -15
  68. package/dist/component/{multiline-address-field-rac-FbJO0HFf.js → multiline-address-field-rac-C6xaqNOk.js} +68 -60
  69. package/dist/component/{multiline-address-rac-CI-vt6Pm.js → multiline-address-rac-DF4TFuDx.js} +1 -1
  70. package/dist/component/{number-input-field-rac-BRVAr7LL.js → number-input-field-rac-uVJ3SBv2.js} +27 -27
  71. package/dist/component/{number-input-rac-C8hCiJiu.js → number-input-rac-D6ERhrSM.js} +1 -1
  72. package/dist/component/{password-rac-Baslr6Ga.js → password-rac-CAiC0ZKl.js} +47 -46
  73. package/dist/component/{payment-input-rac-CfJSKxYz.js → payment-input-rac-Bu25xvby.js} +33 -32
  74. package/dist/component/{phone-input-field-rac-Dqh4CXdC.js → phone-input-field-rac-32qUvCsC.js} +46 -45
  75. package/dist/component/{phone-rac-DaLuGuxd.js → phone-rac-mNrpj30q.js} +1 -1
  76. package/dist/component/{product-list-rac-PNMwRBtL.js → product-list-rac-zHdM9rHw.js} +53 -53
  77. package/dist/component/{quiz-radio-group-rac-DN8vY-oM.js → quiz-radio-group-rac-BaSlT8w3.js} +1 -1
  78. package/dist/component/{radio-button-module-classes-DlJi9a2f.js → radio-button-module-classes-BdWjkBlX.js} +9 -9
  79. package/dist/component/{radio-group-field-rac-C0tLXhl5.js → radio-group-field-rac-DI0UgTBr.js} +12 -12
  80. package/dist/component/{radio-group-rac-FAk7PYgP.js → radio-group-rac-D2ESG8J4.js} +1 -1
  81. package/dist/component/{rating-input-field-rac-Cl1kH_uu.js → rating-input-field-rac-BYT2XqOK.js} +26 -26
  82. package/dist/component/{rating-input-rac-D9p-0pkI.js → rating-input-rac-D-5CmVAX.js} +1 -1
  83. package/dist/component/{rich-content-rac.module-Dkr46kPC.js → rich-content-rac.module-Dp9Advo9.js} +8 -8
  84. package/dist/component/{rich-text-field-rac-DthhTvTp.js → rich-text-field-rac-COEUwoXQ.js} +4 -4
  85. package/dist/component/{rich-text-rac-DqZX4NeB.js → rich-text-rac-CQZLjBQ0.js} +1 -1
  86. package/dist/component/{service-dropdown-rac-BMOGLU2Z.js → service-dropdown-rac-BTtJVFv8.js} +44 -45
  87. package/dist/component/{services-multi-choice-rac-DcdUewzJ.js → services-multi-choice-rac-hbY3g0Kb.js} +11 -11
  88. package/dist/component/{signature-rac-BRvN6kUW.js → signature-rac-CTCNclwL.js} +67 -67
  89. package/dist/component/{submit-button-rac-B70UC8eS.js → submit-button-rac-kKGeVgsG.js} +25 -25
  90. package/dist/component/{tags-field-rac-NpYyV8X4.js → tags-field-rac-CVf7oQr_.js} +35 -35
  91. package/dist/component/{tags-rac-BMEbpJ-z.js → tags-rac-DiX1_nTT.js} +1 -1
  92. package/dist/component/{text-area-field-rac-BLSrNwJ6.js → text-area-field-rac-IhBNXiDl.js} +22 -22
  93. package/dist/component/{text-area-rac-Cm7aAfIz.js → text-area-rac-DHevCtFF.js} +1 -1
  94. package/dist/component/{text-input-field-rac-BDqV7s0M.js → text-input-field-rac-Da3_wTdh.js} +5 -5
  95. package/dist/component/text-input-headless-DcZRRXCp.js +45 -0
  96. package/dist/component/{text-input-rac-Cc_SkCCS.js → text-input-rac-564LIZ1_.js} +1 -1
  97. package/dist/component/{time-input-rac-DDCiAFe2.js → time-input-rac-p-Nnsxp_.js} +54 -54
  98. package/dist/component/{url-input-field-rac-jen6pbz7.js → url-input-field-rac-DjrcpRtm.js} +27 -26
  99. package/dist/component/{url-input-rac-BWh6udtS.js → url-input-rac-B3brpyop.js} +1 -1
  100. package/dist/component/use-dropdown-trigger-class-name-BWTT7ltv.js +117 -0
  101. package/dist/component/{use-element-state-class-name-B1r_nXW1.js → use-element-state-class-name-CUZuhFvZ.js} +3 -3
  102. package/dist/component/{use-hoverable-input-class-name-B-FhrcyQ.js → use-hoverable-input-class-name-ugX8-g4E.js} +6 -6
  103. package/dist/component/use-is-forced-open-dropdown-DUZMvWpk.js +48 -0
  104. package/dist/component/{use-service-options-base-CTA_43F3.js → use-service-options-base-hqO9Ev38.js} +6 -6
  105. package/dist/component/use-text-input-class-name-wp9dzpEy.js +6 -0
  106. package/dist/form.d.ts +5 -0
  107. package/package.json +2 -2
  108. package/dist/component/date-input-field-rac-BnlAOn12.js +0 -290
  109. package/dist/component/dext-radio-group-rac-Czr5yY3K.js +0 -18
  110. package/dist/component/text-input-headless-B0jcwDev.js +0 -44
  111. package/dist/component/use-dropdown-option-class-name-OD8brKoy.js +0 -115
  112. package/dist/component/use-dropdown-trigger-class-name-BrkmG0ad.js +0 -40
  113. package/dist/component/use-text-input-class-name-BXuk3TK7.js +0 -6
@@ -0,0 +1,297 @@
1
+ import { RicosViewer as ae } from "@wix/ricos/viewer";
2
+ import y from "classnames";
3
+ import t, { useMemo as N, useState as k, useCallback as v, useRef as w } from "react";
4
+ import { UNSAFE_PortalProvider as ne } from "react-aria";
5
+ import { ListBoxItem as re, Select as oe, TextField as $, SelectValue as se, Input as z } from "react-aria-components";
6
+ import { bo as h, bl as W, bg as H, aV as K, b6 as Q, aI as o, by as T, aP as le, aW as ce, bd as ie, bq as V, S as M, a0 as me, y as de, H as ue, v as pe } from "./form-DHAKwnLt.js";
7
+ import { f as p, a as B } from "./find-child-C60k4CxG.js";
8
+ import { g as Ee } from "./helpers-HmkkXrh2.js";
9
+ import { D as fe, E as be } from "./field-error-headless-E8WjFr_n.js";
10
+ import { L as ye } from "./field-label-headless-BakLOu5E.js";
11
+ import { F as De } from "./fieldset-headless-CD3fds9J.js";
12
+ import { N as he, E as Ie, S as Oe } from "./non-modal-popover-D-u13tmp.js";
13
+ import { a as ge } from "./use-is-forced-open-dropdown-DUZMvWpk.js";
14
+ import { V as Ne, a as Ce, u as _e } from "./use-dropdown-trigger-class-name-BWTT7ltv.js";
15
+ import { C as Le } from "./chevron-down-icon-CcpVm6B-.js";
16
+ import { E as Fe } from "./error-icon-hZxQ6DEy.js";
17
+ import { H as Re } from "./custom-focus-class-_483Pkwp.js";
18
+ import { s as f } from "./field-rac.module-DfEb7pBp.js";
19
+ import { u as q } from "./use-text-input-class-name-wp9dzpEy.js";
20
+ const Me = {
21
+ [o.MONTH]: "bday-month",
22
+ [o.DAY]: "bday-day",
23
+ [o.YEAR]: "bday-year"
24
+ }, x = (e, a) => e === "bday" ? Me[a] : void 0, n = ({ children: e, className: a }) => {
25
+ const { id: r, required: s, onBlur: l, onFocus: c, FieldLayout: m } = h(), { inputId: i, labelId: d, ariaDescribedBy: u } = W(), { regionalFormat: E } = H(), b = N(() => K(E).filter(Q).map((Y) => Y.toUpperCase()), [
26
+ E
27
+ ]), _ = p(e, n.Label), P = p(e, n.Description), S = p(e, n.Error), I = {
28
+ [o.MONTH]: p(e, n.Month),
29
+ [o.DAY]: p(e, n.Day),
30
+ [o.YEAR]: p(e, n.Year)
31
+ };
32
+ return /* @__PURE__ */ t.createElement(m, {
33
+ fieldId: r,
34
+ renderLabel: () => B(_, {
35
+ as: "div"
36
+ }),
37
+ renderInput: () => /* @__PURE__ */ t.createElement(De, {
38
+ id: i,
39
+ ariaLabelledBy: d,
40
+ ariaDescribedBy: u,
41
+ required: s,
42
+ onBlur: l,
43
+ onFocus: c,
44
+ className: a
45
+ }, I[b[0]], I[b[1]], I[b[2]]),
46
+ renderDescription: () => /* @__PURE__ */ t.createElement(t.Fragment, null, S, P)
47
+ });
48
+ }, O = ({ children: e, className: a }) => {
49
+ const { id: r, disabled: s, readOnly: l, showDateLabels: c, hidePlaceholder: m, autoComplete: i } = h(), { labelId: d } = g(o.MONTH), { partValue: u, partError: E, onPartChange: b } = C(o.MONTH), { t: _ } = T(), [P, S] = k(!1), I = ge(r), [Y, j] = k(null), G = m ? Ie : _("field.date.placeholder.month"), J = v((R) => {
50
+ l || b(typeof R == "string" ? R : "");
51
+ }, [
52
+ b,
53
+ l
54
+ ]), X = v((R) => {
55
+ S(R && !l);
56
+ }, [
57
+ l
58
+ ]), Z = p(e, O.Label), ee = p(e, O.Trigger), te = p(e, O.Options);
59
+ return /* @__PURE__ */ t.createElement("div", {
60
+ className: a,
61
+ "data-date-field": !0
62
+ }, c ? Z : null, /* @__PURE__ */ t.createElement("div", {
63
+ ref: j,
64
+ style: {
65
+ display: "contents"
66
+ }
67
+ }), /* @__PURE__ */ t.createElement(ne, {
68
+ getContainer: () => Y
69
+ }, /* @__PURE__ */ t.createElement(oe, {
70
+ autoComplete: x(i, o.MONTH),
71
+ "aria-labelledby": c ? d : void 0,
72
+ value: u || null,
73
+ onChange: J,
74
+ isDisabled: s,
75
+ isInvalid: E,
76
+ placeholder: G,
77
+ isOpen: I || P,
78
+ onOpenChange: I ? void 0 : X
79
+ }, ee, B(te, {
80
+ isForcedOpen: I
81
+ }))));
82
+ }, Ae = ({ className: e }) => /* @__PURE__ */ t.createElement(U, {
83
+ datePart: o.MONTH,
84
+ className: e
85
+ }), Te = ({ children: e, className: a }) => {
86
+ const { id: r, readOnly: s } = h(), { inputId: l } = g(o.MONTH), { partError: c, isFirstPart: m } = C(o.MONTH), i = w(null);
87
+ return V(() => {
88
+ var d;
89
+ m && ((d = i.current) == null || d.focus());
90
+ }, r), /* @__PURE__ */ t.createElement(Oe, {
91
+ ref: i,
92
+ id: l,
93
+ className: a,
94
+ "data-hook": o.MONTH,
95
+ "data-invalid": c || void 0,
96
+ "data-readonly": s || void 0
97
+ }, /* @__PURE__ */ t.createElement(se, null), e);
98
+ }, A = ({ children: e, className: a, ...r }) => {
99
+ const { isForcedOpen: s } = r, { language: l } = H(), c = N(() => Ee(l), [
100
+ l
101
+ ]), m = p(e, A.Option) ?? /* @__PURE__ */ t.createElement(A.Option, null);
102
+ return /* @__PURE__ */ t.createElement(he, {
103
+ className: a,
104
+ containerPadding: 0,
105
+ offset: 0
106
+ }, /* @__PURE__ */ t.createElement(Ne, {
107
+ isForcedOpen: s,
108
+ autoFocus: s ? !1 : void 0
109
+ }, c.map((i, d) => B(m, {
110
+ key: String(d + 1),
111
+ value: String(d + 1),
112
+ label: i
113
+ }))));
114
+ }, Pe = ({ className: e, ...a }) => {
115
+ const { value: r, label: s } = a;
116
+ return /* @__PURE__ */ t.createElement(re, {
117
+ className: e,
118
+ id: r,
119
+ textValue: s
120
+ }, s);
121
+ };
122
+ O.Label = Ae;
123
+ O.Trigger = Te;
124
+ O.Options = A;
125
+ A.Option = Pe;
126
+ const L = ({ children: e, className: a }) => {
127
+ const { disabled: r, readOnly: s, showDateLabels: l } = h(), { labelId: c } = g(o.DAY), { partValue: m, partError: i, onPartChange: d } = C(o.DAY), u = p(e, L.Label), E = p(e, L.Input);
128
+ return /* @__PURE__ */ t.createElement("div", {
129
+ className: a,
130
+ "data-date-field": !0
131
+ }, l && u, /* @__PURE__ */ t.createElement($, {
132
+ "aria-labelledby": l ? c : void 0,
133
+ value: m,
134
+ onChange: d,
135
+ isDisabled: r,
136
+ isReadOnly: s,
137
+ isInvalid: i
138
+ }, E));
139
+ }, Se = ({ className: e }) => /* @__PURE__ */ t.createElement(U, {
140
+ datePart: o.DAY,
141
+ className: e
142
+ }), Ye = ({ className: e }) => {
143
+ const { id: a, hidePlaceholder: r, autoComplete: s } = h(), { inputId: l } = g(o.DAY), { isFirstPart: c } = C(o.DAY), { t: m } = T(), i = w(null), d = r ? void 0 : m("field.date.placeholder.day");
144
+ return V(() => {
145
+ var u;
146
+ c && ((u = i.current) == null || u.focus());
147
+ }, a), /* @__PURE__ */ t.createElement(z, {
148
+ ref: i,
149
+ id: l,
150
+ className: e,
151
+ placeholder: d,
152
+ autoComplete: x(s, o.DAY),
153
+ maxLength: 2,
154
+ inputMode: "numeric",
155
+ "data-hook": o.DAY
156
+ });
157
+ };
158
+ L.Label = Se;
159
+ L.Input = Ye;
160
+ const F = ({ children: e, className: a }) => {
161
+ const { disabled: r, readOnly: s, showDateLabels: l } = h(), { labelId: c } = g(o.YEAR), { partValue: m, partError: i, onPartChange: d } = C(o.YEAR), u = p(e, F.Label), E = p(e, F.Input);
162
+ return /* @__PURE__ */ t.createElement("div", {
163
+ className: a,
164
+ "data-date-field": !0
165
+ }, l && u, /* @__PURE__ */ t.createElement($, {
166
+ "aria-labelledby": l ? c : void 0,
167
+ value: m,
168
+ onChange: d,
169
+ isDisabled: r,
170
+ isReadOnly: s,
171
+ isInvalid: i
172
+ }, E));
173
+ }, ve = ({ className: e }) => /* @__PURE__ */ t.createElement(U, {
174
+ datePart: o.YEAR,
175
+ className: e
176
+ }), we = ({ className: e }) => {
177
+ const { id: a, hidePlaceholder: r, autoComplete: s } = h(), { inputId: l } = g(o.YEAR), { isFirstPart: c } = C(o.YEAR), { t: m } = T(), i = w(null), d = r ? void 0 : m("field.date.placeholder.year");
178
+ return V(() => {
179
+ var u;
180
+ c && ((u = i.current) == null || u.focus());
181
+ }, a), /* @__PURE__ */ t.createElement(z, {
182
+ ref: i,
183
+ id: l,
184
+ className: e,
185
+ placeholder: d,
186
+ autoComplete: x(s, o.YEAR),
187
+ maxLength: 4,
188
+ inputMode: "numeric",
189
+ "data-hook": o.YEAR
190
+ });
191
+ };
192
+ F.Label = ve;
193
+ F.Input = we;
194
+ n.Label = ye;
195
+ n.Month = O;
196
+ n.Day = L;
197
+ n.Year = F;
198
+ n.Description = fe;
199
+ n.Error = be;
200
+ function g(e) {
201
+ const { inputId: a } = W();
202
+ return N(() => {
203
+ const r = e.toLowerCase();
204
+ return {
205
+ inputId: `${a}-${r}-input`,
206
+ labelId: `${a}-${r}-label`
207
+ };
208
+ }, [
209
+ a,
210
+ e
211
+ ]);
212
+ }
213
+ function C(e) {
214
+ const { value: a, onChange: r, hasError: s = !1 } = h(), { regionalFormat: l } = H(), c = N(() => le(a ?? ""), [
215
+ a
216
+ ]), m = N(() => ce(s, a ?? ""), [
217
+ a,
218
+ s
219
+ ]), i = c[e] || "", d = v((E) => {
220
+ const b = ie(E, e, c);
221
+ r(b);
222
+ }, [
223
+ r,
224
+ c,
225
+ e
226
+ ]), u = N(() => K(l).filter(Q).map((_) => _.toUpperCase())[0] === e, [
227
+ l,
228
+ e
229
+ ]);
230
+ return {
231
+ partValue: i,
232
+ partError: m[e],
233
+ onPartChange: d,
234
+ isFirstPart: u
235
+ };
236
+ }
237
+ function U({ datePart: e, className: a }) {
238
+ const { inputId: r, labelId: s } = g(e), { t: l } = T(), c = `field.date.label.${e.toLowerCase()}`, m = l(c);
239
+ return /* @__PURE__ */ t.createElement("label", {
240
+ id: s,
241
+ htmlFor: r,
242
+ className: a
243
+ }, m);
244
+ }
245
+ const He = "_fields_fw9my_1", Ve = "_month_fw9my_10", Be = "_day_fw9my_11", xe = "_year_fw9my_12", Ue = "_dayInput_fw9my_28", ke = "_yearInput_fw9my_29", qe = "_monthTrigger_fw9my_33", $e = "_monthOption_fw9my_53", D = {
246
+ fields: He,
247
+ month: Ve,
248
+ day: Be,
249
+ year: xe,
250
+ dayInput: Ue,
251
+ yearInput: ke,
252
+ monthTrigger: qe,
253
+ monthOption: $e
254
+ }, ze = ({ content: e, locale: a }) => /* @__PURE__ */ t.createElement(ae, {
255
+ content: e,
256
+ locale: a
257
+ }), dt = () => {
258
+ const e = Ce(D.monthTrigger), a = _e(D.monthOption, Re), r = q(D.dayInput), s = q(D.yearInput);
259
+ return /* @__PURE__ */ t.createElement(n, {
260
+ className: D.fields
261
+ }, /* @__PURE__ */ t.createElement(n.Label, {
262
+ className: y(M, f.label)
263
+ }, /* @__PURE__ */ t.createElement(n.Label.Required, {
264
+ className: y(me, f.requiredMark)
265
+ })), /* @__PURE__ */ t.createElement(n.Month, {
266
+ className: D.month
267
+ }, /* @__PURE__ */ t.createElement(n.Month.Label, {
268
+ className: y(M, f.label)
269
+ }), /* @__PURE__ */ t.createElement(n.Month.Trigger, {
270
+ className: e
271
+ }, /* @__PURE__ */ t.createElement(Le, {
272
+ className: f.dropdownIcon
273
+ })), /* @__PURE__ */ t.createElement(n.Month.Options, {
274
+ className: y(de, f.selectPopover, f.dropdownPopover)
275
+ }, /* @__PURE__ */ t.createElement(n.Month.Options.Option, {
276
+ className: a
277
+ }))), /* @__PURE__ */ t.createElement(n.Day, {
278
+ className: D.day
279
+ }, /* @__PURE__ */ t.createElement(n.Day.Label, {
280
+ className: y(M, f.label)
281
+ }), /* @__PURE__ */ t.createElement(n.Day.Input, {
282
+ className: r
283
+ })), /* @__PURE__ */ t.createElement(n.Year, {
284
+ className: D.year
285
+ }, /* @__PURE__ */ t.createElement(n.Year.Label, {
286
+ className: y(M, f.label)
287
+ }), /* @__PURE__ */ t.createElement(n.Year.Input, {
288
+ className: s
289
+ })), /* @__PURE__ */ t.createElement(n.Error, {
290
+ className: y(ue, f.error)
291
+ }, /* @__PURE__ */ t.createElement(Fe, null), /* @__PURE__ */ t.createElement(n.Error.Text, null)), /* @__PURE__ */ t.createElement(n.Description, {
292
+ className: y(pe, f.description)
293
+ }, ze));
294
+ };
295
+ export {
296
+ dt as D
297
+ };
@@ -1,5 +1,5 @@
1
1
  import t from "react";
2
- import { D as e } from "./date-input-field-rac-BnlAOn12.js";
2
+ import { D as e } from "./date-input-field-rac-DeL5vuE7.js";
3
3
  const o = () => /* @__PURE__ */ t.createElement(e, null);
4
4
  export {
5
5
  o as DateInputRAC