@wix/form-elements 1.146.0 → 1.148.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 (118) hide show
  1. package/dist/component/{appointment-rac-scUix9QX.js → appointment-rac-BNqXl3dq.js} +168 -164
  2. package/dist/component/{bookings-address-rac-CKemkJOO.js → bookings-address-rac-DzLf588z.js} +1 -1
  3. package/dist/component/{bookings-email-rac-CDqdhPAB.js → bookings-email-rac-BCNWH7ss.js} +1 -1
  4. package/dist/component/{bookings-first-name-rac-DEy_7Hjb.js → bookings-first-name-rac-D36aHUOJ.js} +1 -1
  5. package/dist/component/{bookings-header-rac-Bl4xy9lB.js → bookings-header-rac-CNr2y2ES.js} +1 -1
  6. package/dist/component/{bookings-last-name-rac-CsL9xQ1W.js → bookings-last-name-rac-yHE6ZIxr.js} +1 -1
  7. package/dist/component/{bookings-login-bar-rac-DkHYQ4No.js → bookings-login-bar-rac-C3weOc1i.js} +6 -6
  8. package/dist/component/{bookings-phone-rac-BoBiFwbV.js → bookings-phone-rac-CIo_ApRf.js} +1 -1
  9. package/dist/component/{bookings-rich-text-rac-DZZnPKWA.js → bookings-rich-text-rac-rgKnvt57.js} +1 -1
  10. package/dist/component/{checkbox-field-rac-UgLmJxB-.js → checkbox-field-rac-CMaVxLNe.js} +9 -7
  11. package/dist/component/{checkbox-group-field-headless-C809nB0Q.js → checkbox-group-field-headless-XPtqS8Km.js} +68 -68
  12. package/dist/component/{checkbox-group-field-rac-u4i4wG21.js → checkbox-group-field-rac-C_58XfQt.js} +9 -9
  13. package/dist/component/{checkbox-group-rac-DBAQhSo3.js → checkbox-group-rac-FQrWViSh.js} +1 -1
  14. package/dist/component/{checkbox-indicator-module-classes-6173wvuW.js → checkbox-indicator-module-classes-akWZsZNn.js} +1 -1
  15. package/dist/component/{checkbox-rac-FDQVsI5-.js → checkbox-rac-C5Lj2b1N.js} +1 -1
  16. package/dist/component/{contacts-address-rac-DnArylPa.js → contacts-address-rac-OhpLzD0X.js} +1 -1
  17. package/dist/component/{contacts-birthdate-rac-C19jhGEO.js → contacts-birthdate-rac-Dnqq84ct.js} +1 -1
  18. package/dist/component/{contacts-company-rac-Dxs0hs_i.js → contacts-company-rac-DMnTF55t.js} +1 -1
  19. package/dist/component/{contacts-email-rac-D-H43L8r.js → contacts-email-rac-DmZhScW2.js} +1 -1
  20. package/dist/component/{contacts-first-name-rac-DwV5NESk.js → contacts-first-name-rac-B6A4fuzK.js} +1 -1
  21. package/dist/component/{contacts-last-name-rac-C5v2xurf.js → contacts-last-name-rac-DVz97lew.js} +1 -1
  22. package/dist/component/{contacts-phone-rac-D9a5x-xl.js → contacts-phone-rac-DV8aO0uS.js} +1 -1
  23. package/dist/component/{contacts-position-rac-DfsgOv-k.js → contacts-position-rac-BP_yBIE4.js} +1 -1
  24. package/dist/component/{contacts-subscribe-rac-B-Hho0Kb.js → contacts-subscribe-rac-wmTprtLf.js} +1 -1
  25. package/dist/component/{contacts-tax-id-rac-q6TQkB4b.js → contacts-tax-id-rac-CUEPBQye.js} +1 -1
  26. package/dist/component/{date-availability-CMDvf5VU.js → date-availability-BK_0gLRv.js} +1 -1
  27. package/dist/component/{date-input-field-rac-C1WLUct3.js → date-input-field-rac-BfWPvRnd.js} +84 -78
  28. package/dist/component/{date-input-rac-cNQ-nr4D.js → date-input-rac-B7vAMRBX.js} +1 -1
  29. package/dist/component/{date-picker-field-rac-mx11z-MO.js → date-picker-field-rac-CpDY4EkU.js} +111 -105
  30. package/dist/component/{date-picker-rac-DeTz17zC.js → date-picker-rac-BCswaZB1.js} +1 -1
  31. package/dist/component/{date-time-input-field-rac-feQ2E1eU.js → date-time-input-field-rac-D9w4eEa0.js} +135 -129
  32. package/dist/component/{date-time-input-rac-G0s0xP4v.js → date-time-input-rac-_im8-JRC.js} +1 -1
  33. package/dist/component/{dext-checkbox-group-rac-BcTN1nJb.js → dext-checkbox-group-rac-Di7B1Wzv.js} +2 -2
  34. package/dist/component/{dext-checkbox-rac-DX0TOrCO.js → dext-checkbox-rac-BPendOsP.js} +1 -1
  35. package/dist/component/{dext-date-picker-rac-CpDp11oa.js → dext-date-picker-rac-_-Ig9Qn6.js} +1 -1
  36. package/dist/component/{dext-date-time-input-rac-BRvO8izU.js → dext-date-time-input-rac-dKFW87yu.js} +1 -1
  37. package/dist/component/{dext-dropdown-rac-DGZ4Yi_X.js → dext-dropdown-rac-Cpdpps7P.js} +1 -1
  38. package/dist/component/{dext-email-rac-B9YCFHB4.js → dext-email-rac-D4UmYH5m.js} +1 -1
  39. package/dist/component/{dext-number-input-rac-D890dBZf.js → dext-number-input-rac-DUetGnYJ.js} +1 -1
  40. package/dist/component/{dext-phone-rac-BAQftbXo.js → dext-phone-rac-Bsz_DAT9.js} +1 -1
  41. package/dist/component/dext-radio-group-rac-B_soj2FD.js +18 -0
  42. package/dist/component/{dext-rating-input-rac-BqQKVaHo.js → dext-rating-input-rac-cm40qt4O.js} +1 -1
  43. package/dist/component/{dext-tags-rac-zxxKcNUe.js → dext-tags-rac-D1ULx6t1.js} +2 -2
  44. package/dist/component/{dext-text-area-rac-Ctp9SwPg.js → dext-text-area-rac-IkL67rHB.js} +1 -1
  45. package/dist/component/{dext-text-input-rac-c_QMlyjr.js → dext-text-input-rac-DsYSTEL2.js} +1 -1
  46. package/dist/component/{dext-url-input-rac-96pv15aC.js → dext-url-input-rac-BKvEkpYu.js} +1 -1
  47. package/dist/component/{donation-rac-GEWKSLJY.js → donation-rac-CaCXMa-H.js} +87 -85
  48. package/dist/component/{dropdown-field-headless-C3OxMhLE.js → dropdown-field-headless-DcrQK8mL.js} +36 -34
  49. package/dist/component/{dropdown-field-rac-CCXfBmSc.js → dropdown-field-rac-CuGoz_6I.js} +9 -10
  50. package/dist/component/{dropdown-rac-CR7hswXE.js → dropdown-rac-rIe6ZqaZ.js} +1 -1
  51. package/dist/component/{ecom-address-rac-khMuxEFD.js → ecom-address-rac-DT0rzvvp.js} +1 -1
  52. package/dist/component/{ecom-subscription-checkbox-rac-CAi_AHpb.js → ecom-subscription-checkbox-rac-ZfbiME6e.js} +5 -5
  53. package/dist/component/{email-input-field-rac-B83mY2lg.js → email-input-field-rac-8Qn3yskh.js} +62 -62
  54. package/dist/component/{events-repeater-rac-ClEwXgmb.js → events-repeater-rac-DyHrMd3y.js} +25 -21
  55. package/dist/component/{events-rsvp-rac-BJ5q2SVR.js → events-rsvp-rac-CoL-euuc.js} +9 -9
  56. package/dist/component/{field-error-headless-CsYQCsiT.js → field-error-headless-RylIeqXr.js} +6 -6
  57. package/dist/component/{field-label-headless-Yg_1PMSg.js → field-label-headless-d3hZxIEc.js} +15 -15
  58. package/dist/component/field-rac.module-DP0lkkEv.js +25 -0
  59. package/dist/component/{file-upload-rac-DJsuI_lR.js → file-upload-rac-rXbabrgc.js} +172 -168
  60. package/dist/component/{fixed-payment-rac-BMFe9wxU.js → fixed-payment-rac-CaR7pXXA.js} +13 -13
  61. package/dist/component/{form-Bed4Kfz8.js → form-DhIEC3nB.js} +2309 -2308
  62. package/dist/component/form.css +1 -1
  63. package/dist/component/form.js +2 -2
  64. package/dist/component/{header-field-rac-DPQTrOSZ.js → header-field-rac-nELbyGjP.js} +4 -4
  65. package/dist/component/{header-rac-CzXsuLmE.js → header-rac-q80EQNmM.js} +1 -1
  66. package/dist/component/{image-choice-rac-R_4pbOSr.js → image-choice-rac-CLMiTQK0.js} +42 -42
  67. package/dist/component/{index-DZxHlvzt.js → index-C-jVrv9Y.js} +91 -91
  68. package/dist/component/{index-qSZCe_WC.js → index-DnLJzPM-.js} +2 -2
  69. package/dist/component/{isObjectLike-B-a5uaU-.js → isObjectLike-Bf577MHV.js} +15 -15
  70. package/dist/component/{multiline-address-field-rac-rv4IZZy_.js → multiline-address-field-rac-BVAv1w9F.js} +155 -137
  71. package/dist/component/{multiline-address-rac-DZ7cYtgn.js → multiline-address-rac-qMuUHA9U.js} +1 -1
  72. package/dist/component/{number-input-field-rac-CL9iXKIf.js → number-input-field-rac-B_vnBWFG.js} +24 -22
  73. package/dist/component/{number-input-rac-BeGn6qJR.js → number-input-rac-BPCIW8Fz.js} +1 -1
  74. package/dist/component/{password-rac-DfvhdsKG.js → password-rac-D72HG72u.js} +28 -26
  75. package/dist/component/{payment-input-rac-BmMfi5rf.js → payment-input-rac-DthVgsAi.js} +32 -30
  76. package/dist/component/{phone-input-field-rac-DW0a1pXs.js → phone-input-field-rac-XIPkH8Fb.js} +46 -46
  77. package/dist/component/{phone-rac-quZjJ08H.js → phone-rac-U94fCfer.js} +1 -1
  78. package/dist/component/{product-list-rac-Ci0KB7sN.js → product-list-rac-BRMGPyhr.js} +78 -78
  79. package/dist/component/{quiz-radio-group-rac--UUtGx2t.js → quiz-radio-group-rac-DafNzzgX.js} +1 -1
  80. package/dist/component/radio-button-module-classes-DtFlHID_.js +134 -0
  81. package/dist/component/{radio-group-field-rac-w8fHpFKJ.js → radio-group-field-rac-BXrYWjew.js} +13 -13
  82. package/dist/component/{radio-group-rac-jO8aghii.js → radio-group-rac-BNyFfQYV.js} +1 -1
  83. package/dist/component/{rating-input-field-rac-BRc2PtqE.js → rating-input-field-rac-KbkiVCZ7.js} +27 -27
  84. package/dist/component/{rating-input-rac-D9zs06xR.js → rating-input-rac-zT4vPkwP.js} +1 -1
  85. package/dist/component/{rich-content-rac.module-Cv3ZmD00.js → rich-content-rac.module-C0OQetct.js} +8 -8
  86. package/dist/component/{rich-text-field-rac-BmWuIfA8.js → rich-text-field-rac-T4NoShC0.js} +4 -4
  87. package/dist/component/{rich-text-rac-BnqnrvB1.js → rich-text-rac-m6VRCRZu.js} +1 -1
  88. package/dist/component/{service-dropdown-rac-Cl81KfJU.js → service-dropdown-rac-BFwKhL1l.js} +44 -45
  89. package/dist/component/{services-multi-choice-rac-sQ1NF9hY.js → services-multi-choice-rac-DjzcuRWv.js} +13 -13
  90. package/dist/component/{signature-rac-Huairu7V.js → signature-rac-B1LPKnIw.js} +281 -279
  91. package/dist/component/{submit-button-rac-Dpg7N0TG.js → submit-button-rac-Cz3PVtW4.js} +25 -25
  92. package/dist/component/{tags-field-rac-BQ8TEqXH.js → tags-field-rac-DzSoL__s.js} +82 -82
  93. package/dist/component/{tags-rac-CFOmyCCc.js → tags-rac-DMYJDrm-.js} +1 -1
  94. package/dist/component/{text-area-field-rac-DNiMa7d3.js → text-area-field-rac-SuMzBm-Q.js} +30 -28
  95. package/dist/component/{text-area-rac-kLFe-KbZ.js → text-area-rac-C-zmnJgt.js} +1 -1
  96. package/dist/component/{text-input-field-rac-CqENSUUX.js → text-input-field-rac-BmQlXTK9.js} +6 -6
  97. package/dist/component/text-input-headless-BsrjGTK4.js +47 -0
  98. package/dist/component/{text-input-rac-uYQEfOtE.js → text-input-rac-DhQFKG4h.js} +1 -1
  99. package/dist/component/time-input-rac-CRZZdbTI.js +161 -0
  100. package/dist/component/{url-input-field-rac-BioH7kuz.js → url-input-field-rac-D617Pvsf.js} +30 -28
  101. package/dist/component/{url-input-rac-D2VSSyqW.js → url-input-rac-CLvxaWZz.js} +1 -1
  102. package/dist/component/use-dropdown-trigger-class-name-C4uqTKFP.js +117 -0
  103. package/dist/component/{use-element-state-class-name-oiKCauK-.js → use-element-state-class-name-DJx-T0zf.js} +3 -3
  104. package/dist/component/use-hoverable-input-class-name-pwVZXwrY.js +25 -0
  105. package/dist/component/use-is-forced-open-dropdown-DBpm1D-o.js +48 -0
  106. package/dist/component/{use-service-options-base-DXG60hA5.js → use-service-options-base-xHeVTve3.js} +6 -6
  107. package/dist/component/use-text-input-class-name-CrEjJ2Z8.js +6 -0
  108. package/dist/form.d.ts +5 -0
  109. package/package.json +2 -2
  110. package/dist/component/dext-radio-group-rac-CtEjnu_X.js +0 -18
  111. package/dist/component/field-rac.module-DfEb7pBp.js +0 -25
  112. package/dist/component/radio-button-module-classes-CqdBGknT.js +0 -132
  113. package/dist/component/text-input-headless-BdPkEeK2.js +0 -45
  114. package/dist/component/time-input-rac-BYoojlJ9.js +0 -159
  115. package/dist/component/use-dropdown-option-class-name-BEmvU-Gg.js +0 -115
  116. package/dist/component/use-dropdown-trigger-class-name-qj9skLWZ.js +0 -40
  117. package/dist/component/use-hoverable-input-class-name-BW3nCyhG.js +0 -25
  118. package/dist/component/use-text-input-class-name-BhQFcXYH.js +0 -6
@@ -1,37 +1,37 @@
1
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";
2
+ import g from "classnames";
3
+ import t, { useMemo as N, useState as U, useCallback as v, useRef as H } from "react";
4
4
  import { UNSAFE_PortalProvider as ne } from "react-aria";
5
- import { ListBoxItem as re, Select as oe, TextField as q, SelectValue as se, Input as z } from "react-aria-components";
6
- import { bn as h, bk as G, bf as H, aU as K, b5 as Q, aH as o, bx as T, aO as le, aV as ce, bc as ie, bp as V, R as M, $ as me, x as de, G as ue, u as pe } from "./form-Bed4Kfz8.js";
7
- import { f as p, a as B } from "./find-child-C60k4CxG.js";
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 k, aV as K, b6 as Q, aI as o, by as T, aP as le, aW as ce, bd as ie, bq as w, S as M, a0 as me, y as de, H as ue, v as pe } from "./form-DhIEC3nB.js";
7
+ import { f as p, a as V } from "./find-child-C60k4CxG.js";
8
8
  import { g as Ee } from "./helpers-HmkkXrh2.js";
9
- import { D as fe, E as be } from "./field-error-headless-CsYQCsiT.js";
10
- import { L as ye } from "./field-label-headless-Yg_1PMSg.js";
9
+ import { D as fe, E as be } from "./field-error-headless-RylIeqXr.js";
10
+ import { L as ge } from "./field-label-headless-d3hZxIEc.js";
11
11
  import { F as De } from "./fieldset-headless-CD3fds9J.js";
12
- import { N as he, E as Oe, S as Ie } from "./non-modal-popover-D-u13tmp.js";
13
- import { a as ge, u as Ne } from "./use-dropdown-trigger-class-name-qj9skLWZ.js";
14
- import { V as Ce, u as _e } from "./use-dropdown-option-class-name-BEmvU-Gg.js";
12
+ import { N as he, E as ye, S as Ie } from "./non-modal-popover-D-u13tmp.js";
13
+ import { a as Oe } from "./use-is-forced-open-dropdown-DBpm1D-o.js";
14
+ import { V as Ne, a as Ce, u as _e } from "./use-dropdown-trigger-class-name-C4uqTKFP.js";
15
15
  import { C as Le } from "./chevron-down-icon-CcpVm6B-.js";
16
16
  import { E as Fe } from "./error-icon-hZxQ6DEy.js";
17
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 $ } from "./use-text-input-class-name-BhQFcXYH.js";
18
+ import { s as f } from "./field-rac.module-DP0lkkEv.js";
19
+ import { u as q } from "./use-text-input-class-name-CrEjJ2Z8.js";
20
20
  const Me = {
21
21
  [o.MONTH]: "bday-month",
22
22
  [o.DAY]: "bday-day",
23
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 } = G(), { regionalFormat: E } = H(), b = N(() => K(E).filter(Q).map((S) => S.toUpperCase()), [
24
+ }, B = (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 } = k(), b = N(() => K(E).filter(Q).map((Y) => Y.toUpperCase()), [
26
26
  E
27
- ]), _ = p(e, n.Label), P = p(e, n.Description), Y = p(e, n.Error), O = {
27
+ ]), _ = p(e, n.Label), P = p(e, n.Description), S = p(e, n.Error), y = {
28
28
  [o.MONTH]: p(e, n.Month),
29
29
  [o.DAY]: p(e, n.Day),
30
30
  [o.YEAR]: p(e, n.Year)
31
31
  };
32
32
  return /* @__PURE__ */ t.createElement(m, {
33
33
  fieldId: r,
34
- renderLabel: () => B(_, {
34
+ renderLabel: () => V(_, {
35
35
  as: "div"
36
36
  }),
37
37
  renderInput: () => /* @__PURE__ */ t.createElement(De, {
@@ -42,17 +42,17 @@ const Me = {
42
42
  onBlur: l,
43
43
  onFocus: c,
44
44
  className: a
45
- }, O[b[0]], O[b[1]], O[b[2]]),
46
- renderDescription: () => /* @__PURE__ */ t.createElement(t.Fragment, null, Y, P)
45
+ }, y[b[0]], y[b[1]], y[b[2]]),
46
+ renderDescription: () => /* @__PURE__ */ t.createElement(t.Fragment, null, S, P)
47
47
  });
48
48
  }, I = ({ 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, Y] = k(!1), O = ge(r), [S, W] = k(null), j = m ? Oe : _("field.date.placeholder.month"), J = v((R) => {
49
+ const { id: r, disabled: s, readOnly: l, showDateLabels: c, hidePlaceholder: m, autoComplete: i } = h(), { labelId: d } = O(o.MONTH), { partValue: u, partError: E, onPartChange: b } = C(o.MONTH), { t: _ } = T(), [P, S] = U(!1), y = Oe(r), [Y, j] = U(null), G = m ? ye : _("field.date.placeholder.month"), J = v((R) => {
50
50
  l || b(typeof R == "string" ? R : "");
51
51
  }, [
52
52
  b,
53
53
  l
54
54
  ]), X = v((R) => {
55
- Y(R && !l);
55
+ S(R && !l);
56
56
  }, [
57
57
  l
58
58
  ]), Z = p(e, I.Label), ee = p(e, I.Trigger), te = p(e, I.Options);
@@ -60,33 +60,35 @@ const Me = {
60
60
  className: a,
61
61
  "data-date-field": !0
62
62
  }, c ? Z : null, /* @__PURE__ */ t.createElement("div", {
63
- ref: W,
63
+ ref: j,
64
64
  style: {
65
65
  display: "contents"
66
66
  }
67
67
  }), /* @__PURE__ */ t.createElement(ne, {
68
- getContainer: () => S
68
+ getContainer: () => Y
69
69
  }, /* @__PURE__ */ t.createElement(oe, {
70
- autoComplete: x(i, o.MONTH),
70
+ autoComplete: B(i, o.MONTH),
71
71
  "aria-labelledby": c ? d : void 0,
72
72
  value: u || null,
73
73
  onChange: J,
74
74
  isDisabled: s,
75
75
  isInvalid: E,
76
- placeholder: j,
77
- isOpen: O || P,
78
- onOpenChange: O ? void 0 : X
79
- }, ee, B(te, {
80
- isForcedOpen: O
76
+ placeholder: G,
77
+ isOpen: y || P,
78
+ onOpenChange: y ? void 0 : X
79
+ }, ee, V(te, {
80
+ isForcedOpen: y
81
81
  }))));
82
- }, Ae = ({ className: e }) => /* @__PURE__ */ t.createElement(U, {
82
+ }, Ae = ({ className: e }) => /* @__PURE__ */ t.createElement(x, {
83
83
  datePart: o.MONTH,
84
84
  className: e
85
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(() => {
86
+ const { id: r, readOnly: s } = h(), { inputId: l } = O(o.MONTH), { partError: c, isFirstPart: m } = C(o.MONTH), i = H(null);
87
+ return w(() => {
88
88
  var d;
89
- m && ((d = i.current) == null || d.focus());
89
+ m && ((d = i.current) == null || d.focus({
90
+ preventScroll: !0
91
+ }));
90
92
  }, r), /* @__PURE__ */ t.createElement(Ie, {
91
93
  ref: i,
92
94
  id: l,
@@ -96,17 +98,17 @@ const Me = {
96
98
  "data-readonly": s || void 0
97
99
  }, /* @__PURE__ */ t.createElement(se, null), e);
98
100
  }, A = ({ children: e, className: a, ...r }) => {
99
- const { isForcedOpen: s } = r, { language: l } = H(), c = N(() => Ee(l), [
101
+ const { isForcedOpen: s } = r, { language: l } = k(), c = N(() => Ee(l), [
100
102
  l
101
103
  ]), m = p(e, A.Option) ?? /* @__PURE__ */ t.createElement(A.Option, null);
102
104
  return /* @__PURE__ */ t.createElement(he, {
103
105
  className: a,
104
106
  containerPadding: 0,
105
107
  offset: 0
106
- }, /* @__PURE__ */ t.createElement(Ce, {
108
+ }, /* @__PURE__ */ t.createElement(Ne, {
107
109
  isForcedOpen: s,
108
110
  autoFocus: s ? !1 : void 0
109
- }, c.map((i, d) => B(m, {
111
+ }, c.map((i, d) => V(m, {
110
112
  key: String(d + 1),
111
113
  value: String(d + 1),
112
114
  label: i
@@ -124,11 +126,11 @@ I.Trigger = Te;
124
126
  I.Options = A;
125
127
  A.Option = Pe;
126
128
  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);
129
+ const { disabled: r, readOnly: s, showDateLabels: l } = h(), { labelId: c } = O(o.DAY), { partValue: m, partError: i, onPartChange: d } = C(o.DAY), u = p(e, L.Label), E = p(e, L.Input);
128
130
  return /* @__PURE__ */ t.createElement("div", {
129
131
  className: a,
130
132
  "data-date-field": !0
131
- }, l && u, /* @__PURE__ */ t.createElement(q, {
133
+ }, l && u, /* @__PURE__ */ t.createElement($, {
132
134
  "aria-labelledby": l ? c : void 0,
133
135
  value: m,
134
136
  onChange: d,
@@ -136,33 +138,35 @@ const L = ({ children: e, className: a }) => {
136
138
  isReadOnly: s,
137
139
  isInvalid: i
138
140
  }, E));
139
- }, Ye = ({ className: e }) => /* @__PURE__ */ t.createElement(U, {
141
+ }, Se = ({ className: e }) => /* @__PURE__ */ t.createElement(x, {
140
142
  datePart: o.DAY,
141
143
  className: e
142
- }), Se = ({ 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(() => {
144
+ }), Ye = ({ className: e }) => {
145
+ const { id: a, hidePlaceholder: r, autoComplete: s } = h(), { inputId: l } = O(o.DAY), { isFirstPart: c } = C(o.DAY), { t: m } = T(), i = H(null), d = r ? void 0 : m("field.date.placeholder.day");
146
+ return w(() => {
145
147
  var u;
146
- c && ((u = i.current) == null || u.focus());
148
+ c && ((u = i.current) == null || u.focus({
149
+ preventScroll: !0
150
+ }));
147
151
  }, a), /* @__PURE__ */ t.createElement(z, {
148
152
  ref: i,
149
153
  id: l,
150
154
  className: e,
151
155
  placeholder: d,
152
- autoComplete: x(s, o.DAY),
156
+ autoComplete: B(s, o.DAY),
153
157
  maxLength: 2,
154
158
  inputMode: "numeric",
155
159
  "data-hook": o.DAY
156
160
  });
157
161
  };
158
- L.Label = Ye;
159
- L.Input = Se;
162
+ L.Label = Se;
163
+ L.Input = Ye;
160
164
  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);
165
+ const { disabled: r, readOnly: s, showDateLabels: l } = h(), { labelId: c } = O(o.YEAR), { partValue: m, partError: i, onPartChange: d } = C(o.YEAR), u = p(e, F.Label), E = p(e, F.Input);
162
166
  return /* @__PURE__ */ t.createElement("div", {
163
167
  className: a,
164
168
  "data-date-field": !0
165
- }, l && u, /* @__PURE__ */ t.createElement(q, {
169
+ }, l && u, /* @__PURE__ */ t.createElement($, {
166
170
  "aria-labelledby": l ? c : void 0,
167
171
  value: m,
168
172
  onChange: d,
@@ -170,35 +174,37 @@ const F = ({ children: e, className: a }) => {
170
174
  isReadOnly: s,
171
175
  isInvalid: i
172
176
  }, E));
173
- }, ve = ({ className: e }) => /* @__PURE__ */ t.createElement(U, {
177
+ }, ve = ({ className: e }) => /* @__PURE__ */ t.createElement(x, {
174
178
  datePart: o.YEAR,
175
179
  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(() => {
180
+ }), He = ({ className: e }) => {
181
+ const { id: a, hidePlaceholder: r, autoComplete: s } = h(), { inputId: l } = O(o.YEAR), { isFirstPart: c } = C(o.YEAR), { t: m } = T(), i = H(null), d = r ? void 0 : m("field.date.placeholder.year");
182
+ return w(() => {
179
183
  var u;
180
- c && ((u = i.current) == null || u.focus());
184
+ c && ((u = i.current) == null || u.focus({
185
+ preventScroll: !0
186
+ }));
181
187
  }, a), /* @__PURE__ */ t.createElement(z, {
182
188
  ref: i,
183
189
  id: l,
184
190
  className: e,
185
191
  placeholder: d,
186
- autoComplete: x(s, o.YEAR),
192
+ autoComplete: B(s, o.YEAR),
187
193
  maxLength: 4,
188
194
  inputMode: "numeric",
189
195
  "data-hook": o.YEAR
190
196
  });
191
197
  };
192
198
  F.Label = ve;
193
- F.Input = we;
194
- n.Label = ye;
199
+ F.Input = He;
200
+ n.Label = ge;
195
201
  n.Month = I;
196
202
  n.Day = L;
197
203
  n.Year = F;
198
204
  n.Description = fe;
199
205
  n.Error = be;
200
- function g(e) {
201
- const { inputId: a } = G();
206
+ function O(e) {
207
+ const { inputId: a } = W();
202
208
  return N(() => {
203
209
  const r = e.toLowerCase();
204
210
  return {
@@ -211,7 +217,7 @@ function g(e) {
211
217
  ]);
212
218
  }
213
219
  function C(e) {
214
- const { value: a, onChange: r, hasError: s = !1 } = h(), { regionalFormat: l } = H(), c = N(() => le(a ?? ""), [
220
+ const { value: a, onChange: r, hasError: s = !1 } = h(), { regionalFormat: l } = k(), c = N(() => le(a ?? ""), [
215
221
  a
216
222
  ]), m = N(() => ce(s, a ?? ""), [
217
223
  a,
@@ -234,62 +240,62 @@ function C(e) {
234
240
  isFirstPart: u
235
241
  };
236
242
  }
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);
243
+ function x({ datePart: e, className: a }) {
244
+ const { inputId: r, labelId: s } = O(e), { t: l } = T(), c = `field.date.label.${e.toLowerCase()}`, m = l(c);
239
245
  return /* @__PURE__ */ t.createElement("label", {
240
246
  id: s,
241
247
  htmlFor: r,
242
248
  className: a
243
249
  }, m);
244
250
  }
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", $e = "_monthTrigger_fw9my_33", qe = "_monthOption_fw9my_53", D = {
246
- fields: He,
247
- month: Ve,
248
- day: Be,
249
- year: xe,
250
- dayInput: Ue,
251
- yearInput: ke,
252
- monthTrigger: $e,
253
- monthOption: qe
251
+ const ke = "_fields_kg9md_1", we = "_month_kg9md_10", Ve = "_day_kg9md_11", Be = "_year_kg9md_12", xe = "_dayInput_kg9md_28", Ue = "_yearInput_kg9md_29", qe = "_monthTrigger_kg9md_33", $e = "_monthOption_kg9md_53", D = {
252
+ fields: ke,
253
+ month: we,
254
+ day: Ve,
255
+ year: Be,
256
+ dayInput: xe,
257
+ yearInput: Ue,
258
+ monthTrigger: qe,
259
+ monthOption: $e
254
260
  }, ze = ({ content: e, locale: a }) => /* @__PURE__ */ t.createElement(ae, {
255
261
  content: e,
256
262
  locale: a
257
263
  }), dt = () => {
258
- const e = Ne(D.monthTrigger), a = _e(D.monthOption, Re), r = $(D.dayInput), s = $(D.yearInput);
264
+ const e = Ce(D.monthTrigger), a = _e(D.monthOption, Re), r = q(D.dayInput), s = q(D.yearInput);
259
265
  return /* @__PURE__ */ t.createElement(n, {
260
266
  className: D.fields
261
267
  }, /* @__PURE__ */ t.createElement(n.Label, {
262
- className: y(M, f.label)
268
+ className: g(M, f.label)
263
269
  }, /* @__PURE__ */ t.createElement(n.Label.Required, {
264
- className: y(me, f.requiredMark)
270
+ className: g(me, f.requiredMark)
265
271
  })), /* @__PURE__ */ t.createElement(n.Month, {
266
272
  className: D.month
267
273
  }, /* @__PURE__ */ t.createElement(n.Month.Label, {
268
- className: y(M, f.label)
274
+ className: g(M, f.label)
269
275
  }), /* @__PURE__ */ t.createElement(n.Month.Trigger, {
270
276
  className: e
271
277
  }, /* @__PURE__ */ t.createElement(Le, {
272
278
  className: f.dropdownIcon
273
279
  })), /* @__PURE__ */ t.createElement(n.Month.Options, {
274
- className: y(de, f.selectPopover, f.dropdownPopover)
280
+ className: g(de, f.selectPopover, f.dropdownPopover)
275
281
  }, /* @__PURE__ */ t.createElement(n.Month.Options.Option, {
276
282
  className: a
277
283
  }))), /* @__PURE__ */ t.createElement(n.Day, {
278
284
  className: D.day
279
285
  }, /* @__PURE__ */ t.createElement(n.Day.Label, {
280
- className: y(M, f.label)
286
+ className: g(M, f.label)
281
287
  }), /* @__PURE__ */ t.createElement(n.Day.Input, {
282
288
  className: r
283
289
  })), /* @__PURE__ */ t.createElement(n.Year, {
284
290
  className: D.year
285
291
  }, /* @__PURE__ */ t.createElement(n.Year.Label, {
286
- className: y(M, f.label)
292
+ className: g(M, f.label)
287
293
  }), /* @__PURE__ */ t.createElement(n.Year.Input, {
288
294
  className: s
289
295
  })), /* @__PURE__ */ t.createElement(n.Error, {
290
- className: y(ue, f.error)
296
+ className: g(ue, f.error)
291
297
  }, /* @__PURE__ */ t.createElement(Fe, null), /* @__PURE__ */ t.createElement(n.Error.Text, null)), /* @__PURE__ */ t.createElement(n.Description, {
292
- className: y(pe, f.description)
298
+ className: g(pe, f.description)
293
299
  }, ze));
294
300
  };
295
301
  export {
@@ -1,5 +1,5 @@
1
1
  import t from "react";
2
- import { D as e } from "./date-input-field-rac-C1WLUct3.js";
2
+ import { D as e } from "./date-input-field-rac-BfWPvRnd.js";
3
3
  const o = () => /* @__PURE__ */ t.createElement(e, null);
4
4
  export {
5
5
  o as DateInputRAC