@wix/form-elements 1.107.0 → 1.109.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 (115) hide show
  1. package/dist/component/{appointment-rac-D2F4vgf1.js → appointment-rac-C9-XwsPI.js} +295 -296
  2. package/dist/component/{bookings-address-rac-_5S8J8_i.js → bookings-address-rac-jrrCPWjw.js} +1 -1
  3. package/dist/component/{bookings-email-rac-6vmDR9nS.js → bookings-email-rac-J9-RMEbf.js} +1 -1
  4. package/dist/component/{bookings-first-name-rac-DtTJ4T2K.js → bookings-first-name-rac-CH7-6JmA.js} +1 -1
  5. package/dist/component/{bookings-header-rac-B3dsEwzR.js → bookings-header-rac-C2JV-ciN.js} +1 -1
  6. package/dist/component/{bookings-last-name-rac-B3idkbi8.js → bookings-last-name-rac-0a9CwiaV.js} +1 -1
  7. package/dist/component/{bookings-login-bar-rac-CrRBcQwT.js → bookings-login-bar-rac-4Mb7MQYe.js} +21 -22
  8. package/dist/component/{bookings-phone-rac-BE0yWNnj.js → bookings-phone-rac-vYx5r5jn.js} +1 -1
  9. package/dist/component/{bookings-rich-text-rac-CYo1l0-6.js → bookings-rich-text-rac-CWg1FgUp.js} +1 -1
  10. package/dist/component/{checkbox-field-rac-boTtXVEt.js → checkbox-field-rac-Dwx1leKA.js} +27 -28
  11. package/dist/component/{checkbox-group-field-headless-DnkUvDm8.js → checkbox-group-field-headless-AFWgXzx_.js} +41 -41
  12. package/dist/component/{checkbox-group-field-rac-DrDTgHMg.js → checkbox-group-field-rac-CO8kmWJp.js} +6 -6
  13. package/dist/component/{checkbox-group-rac-v3ozUBpo.js → checkbox-group-rac-_79HsFF4.js} +1 -1
  14. package/dist/component/{checkbox-rac-YSLE-RnG.js → checkbox-rac-B_tbMfjo.js} +1 -1
  15. package/dist/component/{contacts-address-rac-C653yaHZ.js → contacts-address-rac-SJ5Tvzd0.js} +1 -1
  16. package/dist/component/{contacts-birthdate-rac-BeAQ6shx.js → contacts-birthdate-rac-BU1L3sbW.js} +1 -1
  17. package/dist/component/{contacts-company-rac-BglKOoTG.js → contacts-company-rac-Y4B8KhDa.js} +1 -1
  18. package/dist/component/{contacts-email-rac-D6m7ynfc.js → contacts-email-rac-CQW84o7C.js} +1 -1
  19. package/dist/component/{contacts-first-name-rac-Dgxn0tUJ.js → contacts-first-name-rac-Dtai-wtH.js} +1 -1
  20. package/dist/component/{contacts-last-name-rac-1UyIuRKH.js → contacts-last-name-rac--ixuu3ri.js} +1 -1
  21. package/dist/component/{contacts-phone-rac-BQ77BlW4.js → contacts-phone-rac-HOHfSvT-.js} +1 -1
  22. package/dist/component/{contacts-position-rac-BUDUv7lv.js → contacts-position-rac-BPMkh6yf.js} +1 -1
  23. package/dist/component/{contacts-subscribe-rac-DdtA0qKW.js → contacts-subscribe-rac-D0_RMwJb.js} +1 -1
  24. package/dist/component/{contacts-tax-id-rac-WUaKcNl0.js → contacts-tax-id-rac-CZJmMiVf.js} +1 -1
  25. package/dist/component/{date-availability-XjBFq8jt.js → date-availability-C4dDHvuc.js} +1 -1
  26. package/dist/component/{date-input-field-rac-aY2zuuKs.js → date-input-field-rac-8oERZcqh.js} +79 -80
  27. package/dist/component/{date-input-rac-DRiP2_97.js → date-input-rac-CYRojmW6.js} +1 -1
  28. package/dist/component/{date-picker-field-rac-Bzl-d3Uj.js → date-picker-field-rac-CIspU7No.js} +87 -88
  29. package/dist/component/{date-picker-rac-DHHUh8vn.js → date-picker-rac-D0Y0zf2J.js} +1 -1
  30. package/dist/component/{date-time-input-field-rac-DP_StuLr.js → date-time-input-field-rac-0daWK65I.js} +73 -74
  31. package/dist/component/{date-time-input-rac-B11KIxsf.js → date-time-input-rac-BemKPk1j.js} +1 -1
  32. package/dist/component/{dext-checkbox-group-rac-BHZBqyWv.js → dext-checkbox-group-rac-BpFNn56W.js} +2 -2
  33. package/dist/component/{dext-checkbox-rac-BIlAqEvV.js → dext-checkbox-rac-DOISgubJ.js} +1 -1
  34. package/dist/component/{dext-date-picker-rac-CHBXNrZi.js → dext-date-picker-rac-CNGhFg_g.js} +1 -1
  35. package/dist/component/{dext-date-time-input-rac-BYtliKry.js → dext-date-time-input-rac-BuUIvJRr.js} +1 -1
  36. package/dist/component/{dext-dropdown-rac-C2VPSFV5.js → dext-dropdown-rac-DtND-Dbo.js} +1 -1
  37. package/dist/component/{dext-email-rac-Fnb0Ggcs.js → dext-email-rac-CmjLFOi8.js} +1 -1
  38. package/dist/component/{dext-number-input-rac-DopfSyFi.js → dext-number-input-rac-DHTNg1dh.js} +1 -1
  39. package/dist/component/{dext-phone-rac-Rn4i_2rc.js → dext-phone-rac-BrrU5qH_.js} +1 -1
  40. package/dist/component/{dext-radio-group-rac-bNaskJpK.js → dext-radio-group-rac-CD3MGfAM.js} +4 -4
  41. package/dist/component/{dext-rating-input-rac-DL6ZZd7d.js → dext-rating-input-rac-BETGJZmt.js} +1 -1
  42. package/dist/component/{dext-tags-rac-TsUPoImO.js → dext-tags-rac-Coo9jN-T.js} +4 -4
  43. package/dist/component/{dext-text-area-rac-BIuY7LTd.js → dext-text-area-rac-CNWjqhUT.js} +1 -1
  44. package/dist/component/{dext-text-input-rac-CSYPW0Qi.js → dext-text-input-rac-CCWyDexv.js} +1 -1
  45. package/dist/component/{dext-url-input-rac-_g0lqGfW.js → dext-url-input-rac-Dtakkgmk.js} +1 -1
  46. package/dist/component/{donation-rac-BYKFtsyR.js → donation-rac-BboGm_k_.js} +101 -102
  47. package/dist/component/{dropdown-field-headless-CBaqlNZi.js → dropdown-field-headless-BTMJGUwY.js} +16 -16
  48. package/dist/component/{dropdown-field-rac-CCAGSMm3.js → dropdown-field-rac-CDRV8ckB.js} +5 -5
  49. package/dist/component/{dropdown-rac-C_EqUsZ1.js → dropdown-rac-kEuU2pXW.js} +1 -1
  50. package/dist/component/{ecom-address-rac-Bw9eH0iF.js → ecom-address-rac-BgKL9ElH.js} +1 -1
  51. package/dist/component/{ecom-subscription-checkbox-rac-B5PVOO2a.js → ecom-subscription-checkbox-rac-CDhJsNPD.js} +6 -6
  52. package/dist/component/{email-input-field-rac-B2kqQ6yo.js → email-input-field-rac-DdOd86NX.js} +54 -55
  53. package/dist/component/{events-repeater-rac--4OnUxWE.js → events-repeater-rac-_VJ30dpB.js} +62 -63
  54. package/dist/component/{events-rsvp-rac-CczCoo3T.js → events-rsvp-rac-DA-261bq.js} +5 -5
  55. package/dist/component/{field-error-headless-D3-1L5sf.js → field-error-headless-CovyN0GI.js} +8 -8
  56. package/dist/component/{field-label-headless-Du4ckIVy.js → field-label-headless-DVvX2QaH.js} +11 -11
  57. package/dist/component/file-upload-rac-bhEPUJPs.js +561 -0
  58. package/dist/component/fixed-payment-rac-DmI6MeKc.js +61 -0
  59. package/dist/component/{form-DQauhsho.js → form-BTDgyr54.js} +3430 -3244
  60. package/dist/component/form.css +1 -1
  61. package/dist/component/form.js +3 -3
  62. package/dist/component/header-field-rac-C0rUjmo0.js +24 -0
  63. package/dist/component/{header-rac-CR9T3Pnu.js → header-rac-DRMO22PV.js} +1 -1
  64. package/dist/component/{image-choice-rac-DJ_8v467.js → image-choice-rac-CQDQ7AlD.js} +32 -33
  65. package/dist/component/{index-CcUTIUWM.js → index-B9QlosT1.js} +12 -12
  66. package/dist/component/{index-BB7d_9Dv.js → index-CNWT9t6j.js} +66 -66
  67. package/dist/component/{isObjectLike-xvPa_08X.js → isObjectLike-c0td2WCR.js} +1 -1
  68. package/dist/component/{multiline-address-field-rac-CyaFOloE.js → multiline-address-field-rac-D8bVxRsD.js} +124 -125
  69. package/dist/component/{multiline-address-rac-CaHGUN_f.js → multiline-address-rac-g-6RB7o8.js} +1 -1
  70. package/dist/component/number-input-field-rac-BaOwQ5Ya.js +92 -0
  71. package/dist/component/{number-input-rac-DMKX6nhk.js → number-input-rac-BXv8-Pnj.js} +1 -1
  72. package/dist/component/{password-rac-0RUXPAn6.js → password-rac-BB9XeSSZ.js} +36 -37
  73. package/dist/component/{payment-input-rac-CHSZ3-Lt.js → payment-input-rac-DwnSV9rM.js} +41 -42
  74. package/dist/component/{phone-input-field-rac-JmIFcP1e.js → phone-input-field-rac-CC3C4ToW.js} +56 -57
  75. package/dist/component/{phone-rac-BLRnAPXP.js → phone-rac-DpNhSaE0.js} +1 -1
  76. package/dist/component/{product-list-rac-BkF5tDwt.js → product-list-rac-BAESk3B6.js} +74 -75
  77. package/dist/component/{quiz-radio-group-rac-32cCMTUS.js → quiz-radio-group-rac-PS6AZr63.js} +1 -1
  78. package/dist/component/{radio-button-module-classes-IOulhuSH.js → radio-button-module-classes-CXcn5unY.js} +30 -30
  79. package/dist/component/{radio-group-field-rac-CJwku6e0.js → radio-group-field-rac-pt8xbDfS.js} +6 -6
  80. package/dist/component/{radio-group-rac-BiW-9Abj.js → radio-group-rac-DkzkM6N_.js} +1 -1
  81. package/dist/component/{rating-input-field-rac-B9cwaROK.js → rating-input-field-rac-DDHBkR4x.js} +43 -44
  82. package/dist/component/{rating-input-rac-BpwlNvzQ.js → rating-input-rac-CcsDmLus.js} +1 -1
  83. package/dist/component/{rich-content-rac.module-B1uyPmtK.js → rich-content-rac.module-B2vsO6fj.js} +4 -4
  84. package/dist/component/rich-text-field-rac-CvKht2eC.js +21 -0
  85. package/dist/component/{rich-text-rac-VfeZxS27.js → rich-text-rac-CRpSffQB.js} +1 -1
  86. package/dist/component/{service-dropdown-rac-BCfs8IhW.js → service-dropdown-rac-BOpdXNjG.js} +36 -37
  87. package/dist/component/{services-multi-choice-rac-CCqdF_7P.js → services-multi-choice-rac-t0wdSt_T.js} +20 -21
  88. package/dist/component/{signature-rac-DOyMo3u0.js → signature-rac-2LsIYYIX.js} +141 -142
  89. package/dist/component/{submit-button-rac-C2uA5DeE.js → submit-button-rac-BbE8dS35.js} +26 -27
  90. package/dist/component/{tags-field-rac-C_uIw2by.js → tags-field-rac-BnsBxReU.js} +44 -45
  91. package/dist/component/{tags-rac-1pQ-fpe_.js → tags-rac-BFH4RINA.js} +1 -1
  92. package/dist/component/{text-area-field-rac-DqlOkm7e.js → text-area-field-rac-Ag7_gniM.js} +28 -29
  93. package/dist/component/{text-area-rac-DPdkrFcH.js → text-area-rac-ByUX0p2O.js} +1 -1
  94. package/dist/component/{text-input-field-rac-CmXm6r1w.js → text-input-field-rac-D3MZ8teu.js} +3 -3
  95. package/dist/component/{text-input-headless-DD__2DFf.js → text-input-headless-CwONErsY.js} +12 -12
  96. package/dist/component/{text-input-rac-DRHyQEH7.js → text-input-rac-DLXdAhkK.js} +1 -1
  97. package/dist/component/{time-input-rac-BJPIymQY.js → time-input-rac-Bs55lTON.js} +33 -34
  98. package/dist/component/url-input-field-rac-FG-bCh-E.js +74 -0
  99. package/dist/component/{url-input-rac-C0ChQUzq.js → url-input-rac-BOKuCMTe.js} +1 -1
  100. package/dist/component/use-dropdown-option-class-name-DjV7FW5y.js +21 -0
  101. package/dist/component/{use-element-state-class-name-BatTc2bw.js → use-element-state-class-name-DB1AzkvF.js} +1 -1
  102. package/dist/component/{use-is-forced-open-dropdown-B0jiPTmS.js → use-is-forced-open-dropdown-ifUIpuwL.js} +7 -7
  103. package/dist/component/{use-service-options-base-oeE7xszw.js → use-service-options-base-B11cq0HH.js} +7 -7
  104. package/dist/component/use-text-input-class-name-va1PzWFg.js +23 -0
  105. package/dist/form.d.ts +21 -1
  106. package/package.json +2 -2
  107. package/dist/component/file-upload-rac-DbdkUbWM.js +0 -484
  108. package/dist/component/fixed-payment-rac-f9-01iDN.js +0 -62
  109. package/dist/component/form-element-classes-bLFmhsKw.js +0 -137
  110. package/dist/component/header-field-rac-DamDk5BR.js +0 -25
  111. package/dist/component/number-input-field-rac-BuYUzDWV.js +0 -93
  112. package/dist/component/rich-text-field-rac-C_qE7Ykg.js +0 -22
  113. package/dist/component/url-input-field-rac-CFDYkZ6I.js +0 -75
  114. package/dist/component/use-dropdown-option-class-name-3L5ZmNLK.js +0 -21
  115. package/dist/component/use-text-input-class-name-LQ5S-NLh.js +0 -24
@@ -1,40 +1,39 @@
1
1
  import { RicosViewer as ee } from "@wix/ricos/viewer";
2
- import b from "classnames";
3
- import t, { useMemo as g, useState as j, useCallback as v, useRef as k } from "react";
2
+ import f from "classnames";
3
+ import t, { useMemo as y, useState as j, useCallback as v, useRef as k } from "react";
4
4
  import { UNSAFE_PortalProvider as te } from "react-aria";
5
5
  import { ListBoxItem as ae, ListBox as ne, Select as re, TextField as U, SelectValue as se, Input as $ } from "react-aria-components";
6
- import { ak as D, ah as q, ac as w, K as z, a2 as G, s as m, au as P, y as oe, O as le, a9 as ce, am as B } from "./form-DQauhsho.js";
6
+ import { b9 as D, b6 as q, b1 as w, aG as z, aT as G, au as d, bj as P, aB as oe, aH as le, a_ as ce, bb as B, I as S, U as ie, t as de, K as me, v as ue, p as pe } from "./form-BTDgyr54.js";
7
7
  import { f as u, a as H } from "./find-child-C60k4CxG.js";
8
- import { g as ie } from "./helpers-HmkkXrh2.js";
9
- import { D as me, E as de } from "./field-error-headless-D3-1L5sf.js";
10
- import { L as ue } from "./field-label-headless-Du4ckIVy.js";
11
- import { F as pe } from "./fieldset-headless-CD3fds9J.js";
12
- import { N as Ee, S as fe } from "./non-modal-popover-DtIMXHbe.js";
13
- import { u as be } from "./use-is-forced-open-dropdown-B0jiPTmS.js";
14
- import { C as he } from "./chevron-down-icon-CcpVm6B-.js";
15
- import { E as Ie } from "./error-icon-hZxQ6DEy.js";
16
- import { H as De } from "./custom-focus-class-_483Pkwp.js";
8
+ import { g as Ee } from "./helpers-HmkkXrh2.js";
9
+ import { D as be, E as fe } from "./field-error-headless-CovyN0GI.js";
10
+ import { L as he } from "./field-label-headless-DVvX2QaH.js";
11
+ import { F as Ie } from "./fieldset-headless-CD3fds9J.js";
12
+ import { N as De, S as Oe } from "./non-modal-popover-DtIMXHbe.js";
13
+ import { u as ge } from "./use-is-forced-open-dropdown-ifUIpuwL.js";
14
+ import { C as ye } from "./chevron-down-icon-CcpVm6B-.js";
15
+ import { E as Ne } from "./error-icon-hZxQ6DEy.js";
16
+ import { H as _e } from "./custom-focus-class-_483Pkwp.js";
17
17
  import { s as E } from "./field-rac.module-B4l_0KRU.js";
18
- import { v as S, J as Oe, n as ye, x as ge, o as Ne, j as _e } from "./form-element-classes-bLFmhsKw.js";
19
- import { u as Le } from "./use-dropdown-option-class-name-3L5ZmNLK.js";
20
- import { u as x } from "./use-text-input-class-name-LQ5S-NLh.js";
18
+ import { u as Le } from "./use-dropdown-option-class-name-DjV7FW5y.js";
19
+ import { u as x } from "./use-text-input-class-name-va1PzWFg.js";
21
20
  const n = ({ children: e, className: a }) => {
22
- const { id: r, required: o, onBlur: s, onFocus: l, FieldLayout: c } = D(), { inputId: d, labelId: i, ariaDescribedBy: f } = q(), { regionalFormat: p } = w(), h = g(() => z(p).filter(G).map((Y) => Y.toUpperCase()), [
21
+ const { id: r, required: o, onBlur: s, onFocus: l, FieldLayout: c } = D(), { inputId: m, labelId: i, ariaDescribedBy: b } = q(), { regionalFormat: p } = w(), h = y(() => z(p).filter(G).map((Y) => Y.toUpperCase()), [
23
22
  p
24
23
  ]), _ = u(e, n.Label), T = u(e, n.Description), L = u(e, n.Error), F = {
25
- [m.MONTH]: u(e, n.Month),
26
- [m.DAY]: u(e, n.Day),
27
- [m.YEAR]: u(e, n.Year)
24
+ [d.MONTH]: u(e, n.Month),
25
+ [d.DAY]: u(e, n.Day),
26
+ [d.YEAR]: u(e, n.Year)
28
27
  };
29
28
  return /* @__PURE__ */ t.createElement(c, {
30
29
  fieldId: r,
31
30
  renderLabel: () => H(_, {
32
31
  as: "div"
33
32
  }),
34
- renderInput: () => /* @__PURE__ */ t.createElement(pe, {
35
- id: d,
33
+ renderInput: () => /* @__PURE__ */ t.createElement(Ie, {
34
+ id: m,
36
35
  ariaLabelledBy: i,
37
- ariaDescribedBy: f,
36
+ ariaDescribedBy: b,
38
37
  required: o,
39
38
  onBlur: s,
40
39
  onFocus: l,
@@ -43,20 +42,20 @@ const n = ({ children: e, className: a }) => {
43
42
  renderDescription: () => /* @__PURE__ */ t.createElement(t.Fragment, null, L, T)
44
43
  });
45
44
  }, O = ({ children: e, className: a }) => {
46
- const { id: r, disabled: o, readOnly: s, showDateLabels: l, hidePlaceholder: c } = D(), { labelId: d } = y(m.MONTH), { partValue: i, partError: f, onPartChange: p } = N(m.MONTH), { t: h } = P(), [_, T] = j(!1), L = be(r), [F, Y] = j(null), K = c ? void 0 : h("field.date.placeholder.month"), J = v((M) => {
45
+ const { id: r, disabled: o, readOnly: s, showDateLabels: l, hidePlaceholder: c } = D(), { labelId: m } = g(d.MONTH), { partValue: i, partError: b, onPartChange: p } = N(d.MONTH), { t: h } = P(), [_, T] = j(!1), L = ge(r), [F, Y] = j(null), K = c ? void 0 : h("field.date.placeholder.month"), Q = v((M) => {
47
46
  s || p(typeof M == "string" ? M : "");
48
47
  }, [
49
48
  p,
50
49
  s
51
- ]), Q = v((M) => {
50
+ ]), W = v((M) => {
52
51
  T(M && !s);
53
52
  }, [
54
53
  s
55
- ]), W = u(e, O.Label), X = u(e, O.Trigger), Z = u(e, O.Options);
54
+ ]), J = u(e, O.Label), X = u(e, O.Trigger), Z = u(e, O.Options);
56
55
  return /* @__PURE__ */ t.createElement("div", {
57
56
  className: a,
58
57
  "data-date-field": !0
59
- }, l ? W : null, /* @__PURE__ */ t.createElement("div", {
58
+ }, l ? J : null, /* @__PURE__ */ t.createElement("div", {
60
59
  ref: Y,
61
60
  style: {
62
61
  display: "contents"
@@ -64,47 +63,47 @@ const n = ({ children: e, className: a }) => {
64
63
  }), /* @__PURE__ */ t.createElement(te, {
65
64
  getContainer: () => F
66
65
  }, /* @__PURE__ */ t.createElement(re, {
67
- "aria-labelledby": l ? d : void 0,
66
+ "aria-labelledby": l ? m : void 0,
68
67
  value: i || null,
69
- onChange: J,
68
+ onChange: Q,
70
69
  isDisabled: o,
71
- isInvalid: f,
70
+ isInvalid: b,
72
71
  placeholder: K,
73
72
  isOpen: L || _,
74
- onOpenChange: L ? void 0 : Q
73
+ onOpenChange: L ? void 0 : W
75
74
  }, X, H(Z, {
76
75
  isForcedOpen: L
77
76
  }))));
78
77
  }, Fe = ({ className: e }) => /* @__PURE__ */ t.createElement(V, {
79
- datePart: m.MONTH,
78
+ datePart: d.MONTH,
80
79
  className: e
81
80
  }), Ce = ({ children: e, className: a }) => {
82
- const { id: r, readOnly: o } = D(), { inputId: s } = y(m.MONTH), { partError: l, isFirstPart: c } = N(m.MONTH), d = k(null);
81
+ const { id: r, readOnly: o } = D(), { inputId: s } = g(d.MONTH), { partError: l, isFirstPart: c } = N(d.MONTH), m = k(null);
83
82
  return B(() => {
84
83
  var i;
85
- c && ((i = d.current) == null || i.focus());
86
- }, r), /* @__PURE__ */ t.createElement(fe, {
87
- ref: d,
84
+ c && ((i = m.current) == null || i.focus());
85
+ }, r), /* @__PURE__ */ t.createElement(Oe, {
86
+ ref: m,
88
87
  id: s,
89
88
  className: a,
90
- "data-hook": m.MONTH,
89
+ "data-hook": d.MONTH,
91
90
  "data-invalid": l || void 0,
92
91
  "data-readonly": o || void 0
93
92
  }, /* @__PURE__ */ t.createElement(se, null), e);
94
93
  }, A = ({ children: e, className: a, ...r }) => {
95
- const { isForcedOpen: o } = r, { language: s } = w(), l = g(() => ie(s), [
94
+ const { isForcedOpen: o } = r, { language: s } = w(), l = y(() => Ee(s), [
96
95
  s
97
96
  ]), c = u(e, A.Option) ?? /* @__PURE__ */ t.createElement(A.Option, null);
98
- return /* @__PURE__ */ t.createElement(Ee, {
97
+ return /* @__PURE__ */ t.createElement(De, {
99
98
  className: a,
100
99
  containerPadding: 0,
101
100
  offset: 0
102
101
  }, /* @__PURE__ */ t.createElement(ne, {
103
102
  autoFocus: o ? !1 : void 0
104
- }, l.map((d, i) => H(c, {
103
+ }, l.map((m, i) => H(c, {
105
104
  key: String(i + 1),
106
105
  value: String(i + 1),
107
- label: d
106
+ label: m
108
107
  }))));
109
108
  }, Re = ({ className: e, ...a }) => {
110
109
  const { value: r, label: o } = a;
@@ -119,23 +118,23 @@ O.Trigger = Ce;
119
118
  O.Options = A;
120
119
  A.Option = Re;
121
120
  const C = ({ children: e, className: a }) => {
122
- const { disabled: r, readOnly: o, showDateLabels: s } = D(), { labelId: l } = y(m.DAY), { partValue: c, partError: d, onPartChange: i } = N(m.DAY), f = u(e, C.Label), p = u(e, C.Input);
121
+ const { disabled: r, readOnly: o, showDateLabels: s } = D(), { labelId: l } = g(d.DAY), { partValue: c, partError: m, onPartChange: i } = N(d.DAY), b = u(e, C.Label), p = u(e, C.Input);
123
122
  return /* @__PURE__ */ t.createElement("div", {
124
123
  className: a,
125
124
  "data-date-field": !0
126
- }, s && f, /* @__PURE__ */ t.createElement(U, {
125
+ }, s && b, /* @__PURE__ */ t.createElement(U, {
127
126
  "aria-labelledby": s ? l : void 0,
128
127
  value: c,
129
128
  onChange: i,
130
129
  isDisabled: r,
131
130
  isReadOnly: o,
132
- isInvalid: d
131
+ isInvalid: m
133
132
  }, p));
134
133
  }, Me = ({ className: e }) => /* @__PURE__ */ t.createElement(V, {
135
- datePart: m.DAY,
134
+ datePart: d.DAY,
136
135
  className: e
137
136
  }), Se = ({ className: e }) => {
138
- const { id: a, hidePlaceholder: r } = D(), { inputId: o } = y(m.DAY), { isFirstPart: s } = N(m.DAY), { t: l } = P(), c = k(null), d = r ? void 0 : l("field.date.placeholder.day");
137
+ const { id: a, hidePlaceholder: r } = D(), { inputId: o } = g(d.DAY), { isFirstPart: s } = N(d.DAY), { t: l } = P(), c = k(null), m = r ? void 0 : l("field.date.placeholder.day");
139
138
  return B(() => {
140
139
  var i;
141
140
  s && ((i = c.current) == null || i.focus());
@@ -143,32 +142,32 @@ const C = ({ children: e, className: a }) => {
143
142
  ref: c,
144
143
  id: o,
145
144
  className: e,
146
- placeholder: d,
145
+ placeholder: m,
147
146
  maxLength: 2,
148
147
  inputMode: "numeric",
149
- "data-hook": m.DAY
148
+ "data-hook": d.DAY
150
149
  });
151
150
  };
152
151
  C.Label = Me;
153
152
  C.Input = Se;
154
153
  const R = ({ children: e, className: a }) => {
155
- const { disabled: r, readOnly: o, showDateLabels: s } = D(), { labelId: l } = y(m.YEAR), { partValue: c, partError: d, onPartChange: i } = N(m.YEAR), f = u(e, R.Label), p = u(e, R.Input);
154
+ const { disabled: r, readOnly: o, showDateLabels: s } = D(), { labelId: l } = g(d.YEAR), { partValue: c, partError: m, onPartChange: i } = N(d.YEAR), b = u(e, R.Label), p = u(e, R.Input);
156
155
  return /* @__PURE__ */ t.createElement("div", {
157
156
  className: a,
158
157
  "data-date-field": !0
159
- }, s && f, /* @__PURE__ */ t.createElement(U, {
158
+ }, s && b, /* @__PURE__ */ t.createElement(U, {
160
159
  "aria-labelledby": s ? l : void 0,
161
160
  value: c,
162
161
  onChange: i,
163
162
  isDisabled: r,
164
163
  isReadOnly: o,
165
- isInvalid: d
164
+ isInvalid: m
166
165
  }, p));
167
166
  }, Ae = ({ className: e }) => /* @__PURE__ */ t.createElement(V, {
168
- datePart: m.YEAR,
167
+ datePart: d.YEAR,
169
168
  className: e
170
169
  }), Pe = ({ className: e }) => {
171
- const { id: a, hidePlaceholder: r } = D(), { inputId: o } = y(m.YEAR), { isFirstPart: s } = N(m.YEAR), { t: l } = P(), c = k(null), d = r ? void 0 : l("field.date.placeholder.year");
170
+ const { id: a, hidePlaceholder: r } = D(), { inputId: o } = g(d.YEAR), { isFirstPart: s } = N(d.YEAR), { t: l } = P(), c = k(null), m = r ? void 0 : l("field.date.placeholder.year");
172
171
  return B(() => {
173
172
  var i;
174
173
  s && ((i = c.current) == null || i.focus());
@@ -176,23 +175,23 @@ const R = ({ children: e, className: a }) => {
176
175
  ref: c,
177
176
  id: o,
178
177
  className: e,
179
- placeholder: d,
178
+ placeholder: m,
180
179
  maxLength: 4,
181
180
  inputMode: "numeric",
182
- "data-hook": m.YEAR
181
+ "data-hook": d.YEAR
183
182
  });
184
183
  };
185
184
  R.Label = Ae;
186
185
  R.Input = Pe;
187
- n.Label = ue;
186
+ n.Label = he;
188
187
  n.Month = O;
189
188
  n.Day = C;
190
189
  n.Year = R;
191
- n.Description = me;
192
- n.Error = de;
193
- function y(e) {
190
+ n.Description = be;
191
+ n.Error = fe;
192
+ function g(e) {
194
193
  const { inputId: a } = q();
195
- return g(() => {
194
+ return y(() => {
196
195
  const r = e.toLowerCase();
197
196
  return {
198
197
  inputId: `${a}-${r}-input`,
@@ -204,31 +203,31 @@ function y(e) {
204
203
  ]);
205
204
  }
206
205
  function N(e) {
207
- const { value: a, onChange: r, hasError: o = !1 } = D(), { regionalFormat: s } = w(), l = g(() => oe(a ?? ""), [
206
+ const { value: a, onChange: r, hasError: o = !1 } = D(), { regionalFormat: s } = w(), l = y(() => oe(a ?? ""), [
208
207
  a
209
- ]), c = g(() => le(o, a ?? ""), [
208
+ ]), c = y(() => le(o, a ?? ""), [
210
209
  a,
211
210
  o
212
- ]), d = l[e] || "", i = v((p) => {
211
+ ]), m = l[e] || "", i = v((p) => {
213
212
  const h = ce(p, e, l);
214
213
  r(h);
215
214
  }, [
216
215
  r,
217
216
  l,
218
217
  e
219
- ]), f = g(() => z(s).filter(G).map((_) => _.toUpperCase())[0] === e, [
218
+ ]), b = y(() => z(s).filter(G).map((_) => _.toUpperCase())[0] === e, [
220
219
  s,
221
220
  e
222
221
  ]);
223
222
  return {
224
- partValue: d,
223
+ partValue: m,
225
224
  partError: c[e],
226
225
  onPartChange: i,
227
- isFirstPart: f
226
+ isFirstPart: b
228
227
  };
229
228
  }
230
229
  function V({ datePart: e, className: a }) {
231
- const { inputId: r, labelId: o } = y(e), { t: s } = P(), l = `field.date.label.${e.toLowerCase()}`, c = s(l);
230
+ const { inputId: r, labelId: o } = g(e), { t: s } = P(), l = `field.date.label.${e.toLowerCase()}`, c = s(l);
232
231
  return /* @__PURE__ */ t.createElement("label", {
233
232
  id: o,
234
233
  htmlFor: r,
@@ -247,44 +246,44 @@ const Te = "_fields_bc5kj_1", Ye = "_month_bc5kj_11", ve = "_day_bc5kj_12", ke =
247
246
  }, je = ({ content: e, locale: a }) => /* @__PURE__ */ t.createElement(ee, {
248
247
  content: e,
249
248
  locale: a
250
- }), ct = () => {
251
- const e = Le(I.monthOption, De), a = x(I.dayInput), r = x(I.yearInput);
249
+ }), lt = () => {
250
+ const e = Le(I.monthOption, _e), a = x(I.dayInput), r = x(I.yearInput);
252
251
  return /* @__PURE__ */ t.createElement(n, {
253
252
  className: I.fields
254
253
  }, /* @__PURE__ */ t.createElement(n.Label, {
255
- className: b(S, E.label)
254
+ className: f(S, E.label)
256
255
  }, /* @__PURE__ */ t.createElement(n.Label.Required, {
257
- className: b(Oe, E.requiredMark)
256
+ className: f(ie, E.requiredMark)
258
257
  })), /* @__PURE__ */ t.createElement(n.Month, {
259
258
  className: I.month
260
259
  }, /* @__PURE__ */ t.createElement(n.Month.Label, {
261
- className: b(S, E.label)
260
+ className: f(S, E.label)
262
261
  }), /* @__PURE__ */ t.createElement(n.Month.Trigger, {
263
- className: b(ye, E.input, I.monthTrigger)
264
- }, /* @__PURE__ */ t.createElement(he, {
262
+ className: f(de, E.input, I.monthTrigger)
263
+ }, /* @__PURE__ */ t.createElement(ye, {
265
264
  className: E.dropdownIcon
266
265
  })), /* @__PURE__ */ t.createElement(n.Month.Options, {
267
- className: b(ge, E.selectPopover, E.dropdownPopover)
266
+ className: f(me, E.selectPopover, E.dropdownPopover)
268
267
  }, /* @__PURE__ */ t.createElement(n.Month.Options.Option, {
269
268
  className: e
270
269
  }))), /* @__PURE__ */ t.createElement(n.Day, {
271
270
  className: I.day
272
271
  }, /* @__PURE__ */ t.createElement(n.Day.Label, {
273
- className: b(S, E.label)
272
+ className: f(S, E.label)
274
273
  }), /* @__PURE__ */ t.createElement(n.Day.Input, {
275
274
  className: a
276
275
  })), /* @__PURE__ */ t.createElement(n.Year, {
277
276
  className: I.year
278
277
  }, /* @__PURE__ */ t.createElement(n.Year.Label, {
279
- className: b(S, E.label)
278
+ className: f(S, E.label)
280
279
  }), /* @__PURE__ */ t.createElement(n.Year.Input, {
281
280
  className: r
282
281
  })), /* @__PURE__ */ t.createElement(n.Error, {
283
- className: b(Ne, E.error)
284
- }, /* @__PURE__ */ t.createElement(Ie, null), /* @__PURE__ */ t.createElement(n.Error.Text, null)), /* @__PURE__ */ t.createElement(n.Description, {
285
- className: b(_e, E.description)
282
+ className: f(ue, E.error)
283
+ }, /* @__PURE__ */ t.createElement(Ne, null), /* @__PURE__ */ t.createElement(n.Error.Text, null)), /* @__PURE__ */ t.createElement(n.Description, {
284
+ className: f(pe, E.description)
286
285
  }, je));
287
286
  };
288
287
  export {
289
- ct as D
288
+ lt as D
290
289
  };
@@ -1,5 +1,5 @@
1
1
  import t from "react";
2
- import { D as e } from "./date-input-field-rac-aY2zuuKs.js";
2
+ import { D as e } from "./date-input-field-rac-8oERZcqh.js";
3
3
  const o = () => /* @__PURE__ */ t.createElement(e, null);
4
4
  export {
5
5
  o as DateInputRAC