@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,76 +1,77 @@
1
1
  import { RicosViewer as X } from "@wix/ricos/viewer";
2
- import y from "classnames";
3
- import e, { useState as A, useCallback as k, useContext as ee, useRef as O, useMemo as _ } from "react";
2
+ import p from "classnames";
3
+ import e, { useState as L, useCallback as x, useContext as ee, useRef as P, useMemo as v } from "react";
4
4
  import { parseDate as te } from "@internationalized/date";
5
5
  import { UNSAFE_PortalProvider as re } from "react-aria";
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, bn as T, bk as U, bf as F, bp as pe, R as fe, $ as De, t as Ce, G as ye, u as Se } from "./form-Bed4Kfz8.js";
8
- import { g as he, c as P } from "./calendar.module-CKCBG_Pg.js";
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-CsYQCsiT.js";
11
- import { L as Ne } from "./field-label-headless-Yg_1PMSg.js";
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-qj9skLWZ.js";
14
- import { i as Fe } from "./date-availability-CMDvf5VU.js";
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 k, Select as M, SelectValue as Y, ListBox as w, ListBoxItem as B } from "react-aria-components";
7
+ import { D, bo as h, bl as U, bg as F, bq as pe, S as De, a0 as fe, u as Ce, H as ye, v as be, t as Se } from "./form-DhIEC3nB.js";
8
+ import { g as he, c as A } from "./calendar.module-CKCBG_Pg.js";
9
+ import { f as E, a as S } from "./find-child-C60k4CxG.js";
10
+ import { D as Ne, E as Te } from "./field-error-headless-RylIeqXr.js";
11
+ import { L as _e } from "./field-label-headless-d3hZxIEc.js";
12
+ import { D as ve, N as O, S as V } from "./non-modal-popover-D-u13tmp.js";
13
+ import { u as Ie } from "./use-is-forced-open-dropdown-DBpm1D-o.js";
14
+ import { i as Fe } from "./date-availability-BK_0gLRv.js";
15
15
  import { C as I } from "./chevron-down-icon-CcpVm6B-.js";
16
- import { E as Le } from "./error-icon-hZxQ6DEy.js";
17
- import { H as Ae } from "./custom-focus-class-_483Pkwp.js";
18
- import { s as f } from "./field-rac.module-DfEb7pBp.js";
19
- const Oe = [
20
- p.SUNDAY,
21
- p.MONDAY,
22
- p.TUESDAY,
23
- p.WEDNESDAY,
24
- p.THURSDAY,
25
- p.FRIDAY,
26
- p.SATURDAY
27
- ], Pe = {
28
- availableDays: Oe
16
+ import { E as Oe } from "./error-icon-hZxQ6DEy.js";
17
+ import { H as Le } from "./custom-focus-class-_483Pkwp.js";
18
+ import { s as f } from "./field-rac.module-DP0lkkEv.js";
19
+ import { u as Pe } from "./use-hoverable-input-class-name-pwVZXwrY.js";
20
+ const Ae = [
21
+ D.SUNDAY,
22
+ D.MONDAY,
23
+ D.TUESDAY,
24
+ D.WEDNESDAY,
25
+ D.THURSDAY,
26
+ D.FRIDAY,
27
+ D.SATURDAY
28
+ ], Re = {
29
+ availableDays: Ae
29
30
  }, a = ({ children: t }) => {
30
- const { id: r, value: o, onChange: n, disabled: i, required: c, onBlur: u, onFocus: l, FieldLayout: m, hasError: d, readOnly: D } = T(), { labelId: C } = U(), { regionalFormat: b } = F(), [s, N] = A(null), [K, W] = A(!1), v = _e(r), $ = k((z) => {
31
- const J = We(z);
31
+ const { id: r, value: o, onChange: n, disabled: i, required: c, onBlur: u, onFocus: l, FieldLayout: m, hasError: d, readOnly: C } = h(), { labelId: y } = U(), { regionalFormat: N } = F(), [s, T] = L(null), [j, K] = L(!1), _ = Ie(r), H = x((z) => {
32
+ const J = He(z);
32
33
  n(J);
33
34
  }, [
34
35
  n
35
- ]), H = E(t, a.Label), q = E(t, a.Control), G = E(t, a.Calendar), j = E(t, a.Description), Q = E(t, a.Error), Z = Ke(o);
36
+ ]), W = E(t, a.Label), $ = E(t, a.Control), q = E(t, a.Calendar), G = E(t, a.Description), Q = E(t, a.Error), Z = Ke(o);
36
37
  return /* @__PURE__ */ e.createElement(m, {
37
38
  fieldId: r,
38
- renderLabel: () => H,
39
+ renderLabel: () => W,
39
40
  renderInput: () => /* @__PURE__ */ e.createElement(ae, {
40
- locale: b
41
+ locale: N
41
42
  }, /* @__PURE__ */ e.createElement("div", {
42
- ref: N,
43
+ ref: T,
43
44
  style: {
44
45
  display: "contents"
45
46
  }
46
47
  }), /* @__PURE__ */ e.createElement(re, {
47
48
  getContainer: () => s
48
49
  }, /* @__PURE__ */ e.createElement(ne, {
49
- "aria-labelledby": C,
50
+ "aria-labelledby": y,
50
51
  value: Z,
51
- onChange: $,
52
+ onChange: H,
52
53
  isDisabled: i,
53
54
  isInvalid: d,
54
- isReadOnly: D,
55
+ isReadOnly: C,
55
56
  isRequired: c,
56
57
  onBlur: u,
57
58
  onFocus: l,
58
- isOpen: v || K,
59
- onOpenChange: v ? void 0 : W
60
- }, q, h(G, {
61
- isForcedOpen: v
59
+ isOpen: _ || j,
60
+ onOpenChange: _ ? void 0 : K
61
+ }, $, S(q, {
62
+ isForcedOpen: _
62
63
  })))),
63
- renderDescription: () => /* @__PURE__ */ e.createElement(e.Fragment, null, Q, j)
64
+ renderDescription: () => /* @__PURE__ */ e.createElement(e.Fragment, null, Q, G)
64
65
  });
65
- }, Re = ({ children: t, className: r }) => {
66
- const { inputId: o, ariaDescribedBy: n } = U(), { hasError: i, disabled: c, readOnly: u } = T(), l = ee(oe), m = k((d) => {
66
+ }, xe = ({ children: t, className: r }) => {
67
+ const { inputId: o, ariaDescribedBy: n } = U(), { hasError: i, disabled: c, readOnly: u } = h(), l = ee(oe), m = x((d) => {
67
68
  if (!l || l.isOpen || c || u)
68
69
  return;
69
- const D = d.target;
70
- if (D.closest("button"))
70
+ const C = d.target;
71
+ if (C.closest("button"))
71
72
  return;
72
- const C = D.closest("[data-type]");
73
- C && C.getAttribute("data-type") !== "literal" || l.setOpen(!0);
73
+ const y = C.closest("[data-type]");
74
+ y && y.getAttribute("data-type") !== "literal" || l.setOpen(!0);
74
75
  }, [
75
76
  l,
76
77
  c,
@@ -84,12 +85,14 @@ const Oe = [
84
85
  onPointerDownCapture: m
85
86
  }, t);
86
87
  }, ke = ({ className: t }) => {
87
- const { id: r, placeholder: o } = T(), { regionalFormat: n } = F(), i = O(null), c = O(!1);
88
+ const { id: r, placeholder: o } = h(), { regionalFormat: n } = F(), i = P(null), c = P(!1);
88
89
  pe(() => {
89
90
  var l;
90
- (l = i.current) == null || l.focus();
91
+ (l = i.current) == null || l.focus({
92
+ preventScroll: !0
93
+ });
91
94
  }, r);
92
- const u = _(() => $e(n), [
95
+ const u = v(() => We(n), [
93
96
  n
94
97
  ]);
95
98
  return /* @__PURE__ */ e.createElement(se, {
@@ -115,24 +118,24 @@ const Oe = [
115
118
  }, Me = ({ children: t, className: r }) => /* @__PURE__ */ e.createElement(ve, {
116
119
  className: r
117
120
  }, t), g = ({ children: t, className: r, ...o }) => {
118
- const { isForcedOpen: n } = o, { regionalFormat: i } = F(), { availability: c } = T(), u = _(() => he(i), [
121
+ const { isForcedOpen: n } = o, { regionalFormat: i } = F(), { availability: c } = h(), u = v(() => he(i), [
119
122
  i
120
- ]), l = _(() => (s) => {
121
- const N = new Date(s.year, s.month - 1, s.day);
122
- return !Fe(N, c || Pe);
123
+ ]), l = v(() => (s) => {
124
+ const T = new Date(s.year, s.month - 1, s.day);
125
+ return !Fe(T, c || Re);
123
126
  }, [
124
127
  c
125
- ]), m = E(t, g.Day) ?? /* @__PURE__ */ e.createElement(g.Day, null), d = E(t, g.PreviousTrigger), D = E(t, g.NextTrigger), C = E(t, g.MonthTrigger), b = E(t, g.YearTrigger);
126
- return /* @__PURE__ */ e.createElement(L, {
128
+ ]), m = E(t, g.Day) ?? /* @__PURE__ */ e.createElement(g.Day, null), d = E(t, g.PreviousTrigger), C = E(t, g.NextTrigger), y = E(t, g.MonthTrigger), N = E(t, g.YearTrigger);
129
+ return /* @__PURE__ */ e.createElement(O, {
127
130
  className: r,
128
131
  containerPadding: 0
129
- }, /* @__PURE__ */ e.createElement(we, {
132
+ }, /* @__PURE__ */ e.createElement(Ye, {
130
133
  isForcedOpen: n
131
134
  }, /* @__PURE__ */ e.createElement(ie, {
132
135
  autoFocus: n ? !1 : void 0,
133
- firstDayOfWeek: He(u),
136
+ firstDayOfWeek: $e(u),
134
137
  isDateUnavailable: l
135
- }, /* @__PURE__ */ e.createElement("header", null, d, /* @__PURE__ */ e.createElement(me, null, (s) => h(C, {
138
+ }, /* @__PURE__ */ e.createElement("header", null, d, /* @__PURE__ */ e.createElement(me, null, (s) => S(y, {
136
139
  ariaLabel: s["aria-label"],
137
140
  selectedKey: s.value,
138
141
  onSelectionChange: s.onChange,
@@ -140,76 +143,76 @@ const Oe = [
140
143
  popoverClassName: r
141
144
  })), /* @__PURE__ */ e.createElement(de, {
142
145
  visibleYears: 100
143
- }, (s) => h(b, {
146
+ }, (s) => S(N, {
144
147
  ariaLabel: s["aria-label"],
145
148
  selectedKey: s.value,
146
149
  onSelectionChange: s.onChange,
147
150
  items: s.items,
148
151
  popoverClassName: r
149
- })), D), /* @__PURE__ */ e.createElement(ue, {
152
+ })), C), /* @__PURE__ */ e.createElement(ue, {
150
153
  weekdayStyle: "short"
151
- }, (s) => h(m, {
154
+ }, (s) => S(m, {
152
155
  date: s
153
156
  })))));
154
- }, we = ({ isForcedOpen: t, children: r }) => t ? /* @__PURE__ */ e.createElement("div", {
157
+ }, Ye = ({ isForcedOpen: t, children: r }) => t ? /* @__PURE__ */ e.createElement("div", {
155
158
  role: "dialog"
156
- }, r) : /* @__PURE__ */ e.createElement(ge, null, r), xe = ({ children: t, className: r, ...o }) => {
159
+ }, r) : /* @__PURE__ */ e.createElement(ge, null, r), we = ({ children: t, className: r, ...o }) => {
157
160
  const { date: n } = o;
158
161
  return /* @__PURE__ */ e.createElement(Ee, {
159
162
  className: r,
160
163
  date: n
161
164
  }, t);
162
- }, Ye = ({ children: t, className: r }) => /* @__PURE__ */ e.createElement(M, {
165
+ }, Be = ({ children: t, className: r }) => /* @__PURE__ */ e.createElement(k, {
163
166
  slot: "previous",
164
167
  className: r
165
- }, t), Be = ({ children: t, className: r }) => /* @__PURE__ */ e.createElement(M, {
168
+ }, t), Ue = ({ children: t, className: r }) => /* @__PURE__ */ e.createElement(k, {
166
169
  slot: "next",
167
170
  className: r
168
- }, t), Ue = ({ children: t, className: r, ...o }) => {
171
+ }, t), Ve = ({ children: t, className: r, ...o }) => {
169
172
  const { ariaLabel: n, selectedKey: i, onSelectionChange: c, items: u, popoverClassName: l } = o;
170
- return /* @__PURE__ */ e.createElement(w, {
173
+ return /* @__PURE__ */ e.createElement(M, {
171
174
  "aria-label": n,
172
175
  selectedKey: i,
173
176
  onSelectionChange: c
174
177
  }, /* @__PURE__ */ e.createElement(V, {
175
178
  className: r
176
- }, /* @__PURE__ */ e.createElement(x, null), t), /* @__PURE__ */ e.createElement(L, {
179
+ }, /* @__PURE__ */ e.createElement(Y, null), t), /* @__PURE__ */ e.createElement(O, {
177
180
  className: l,
178
181
  containerPadding: 0
179
- }, /* @__PURE__ */ e.createElement(Y, {
182
+ }, /* @__PURE__ */ e.createElement(w, {
180
183
  items: u
181
184
  }, (m) => /* @__PURE__ */ e.createElement(B, {
182
185
  id: m.id
183
186
  }, m.formatted))));
184
- }, Ve = ({ children: t, className: r, ...o }) => {
187
+ }, je = ({ children: t, className: r, ...o }) => {
185
188
  const { ariaLabel: n, selectedKey: i, onSelectionChange: c, items: u, popoverClassName: l } = o;
186
- return /* @__PURE__ */ e.createElement(w, {
189
+ return /* @__PURE__ */ e.createElement(M, {
187
190
  "aria-label": n,
188
191
  selectedKey: i,
189
192
  onSelectionChange: c
190
193
  }, /* @__PURE__ */ e.createElement(V, {
191
194
  className: r
192
- }, /* @__PURE__ */ e.createElement(x, null), t), /* @__PURE__ */ e.createElement(L, {
195
+ }, /* @__PURE__ */ e.createElement(Y, null), t), /* @__PURE__ */ e.createElement(O, {
193
196
  className: l,
194
197
  containerPadding: 0
195
- }, /* @__PURE__ */ e.createElement(Y, {
198
+ }, /* @__PURE__ */ e.createElement(w, {
196
199
  items: u
197
200
  }, (m) => /* @__PURE__ */ e.createElement(B, {
198
201
  id: m.id
199
202
  }, m.formatted))));
200
203
  };
201
- g.Day = xe;
202
- g.PreviousTrigger = Ye;
203
- g.NextTrigger = Be;
204
- g.MonthTrigger = Ue;
205
- g.YearTrigger = Ve;
206
- a.Label = Ne;
207
- a.Control = Re;
204
+ g.Day = we;
205
+ g.PreviousTrigger = Be;
206
+ g.NextTrigger = Ue;
207
+ g.MonthTrigger = Ve;
208
+ g.YearTrigger = je;
209
+ a.Label = _e;
210
+ a.Control = xe;
208
211
  a.Input = ke;
209
212
  a.Trigger = Me;
210
213
  a.Calendar = g;
211
- a.Description = Te;
212
- a.Error = be;
214
+ a.Description = Ne;
215
+ a.Error = Te;
213
216
  function Ke(t) {
214
217
  if (!t)
215
218
  return null;
@@ -219,13 +222,13 @@ function Ke(t) {
219
222
  return null;
220
223
  }
221
224
  }
222
- function We(t) {
225
+ function He(t) {
223
226
  if (!t)
224
227
  return null;
225
228
  const r = String(t.year).padStart(4, "0"), o = String(t.month).padStart(2, "0"), n = String(t.day).padStart(2, "0");
226
229
  return `${r}-${o}-${n}`;
227
230
  }
228
- function $e(t) {
231
+ function We(t) {
229
232
  var r;
230
233
  try {
231
234
  return ((r = new Intl.DateTimeFormat(t, {
@@ -237,7 +240,7 @@ function $e(t) {
237
240
  return "month";
238
241
  }
239
242
  }
240
- function He(t) {
243
+ function $e(t) {
241
244
  return [
242
245
  "sun",
243
246
  "mon",
@@ -261,36 +264,39 @@ const qe = (t) => /* @__PURE__ */ e.createElement("svg", {
261
264
  strokeWidth: "1.5",
262
265
  strokeLinecap: "round",
263
266
  strokeLinejoin: "round"
264
- })), Ge = "_control_18cbf_1", je = "_segments_18cbf_14", Qe = "_trigger_18cbf_72", Ze = "_calendarPopover_18cbf_103", ze = "_calendarDay_18cbf_252", S = {
267
+ })), Ge = "_control_anbxj_1", Qe = "_segments_anbxj_14", Ze = "_trigger_anbxj_72", ze = "_calendarPopover_anbxj_103", Je = "_calendarDay_anbxj_253", Xe = "_dayNumber_anbxj_260", b = {
265
268
  control: Ge,
266
- segments: je,
267
- trigger: Qe,
268
- calendarPopover: Ze,
269
- calendarDay: ze
270
- }, Je = ({ content: t, locale: r }) => /* @__PURE__ */ e.createElement(X, {
269
+ segments: Qe,
270
+ trigger: Ze,
271
+ calendarPopover: ze,
272
+ calendarDay: Je,
273
+ dayNumber: Xe
274
+ }, et = ({ content: t, locale: r }) => /* @__PURE__ */ e.createElement(X, {
271
275
  content: t,
272
276
  locale: r
273
- }), Xe = {
277
+ }), tt = {
274
278
  left: 90,
275
279
  right: -90
276
280
  }, R = ({ direction: t }) => /* @__PURE__ */ e.createElement(I, {
277
281
  style: {
278
- transform: `rotate(${Xe[t]}deg)`
282
+ transform: `rotate(${tt[t]}deg)`
279
283
  }
280
- }), Ct = () => {
281
- const t = Ie(S.control);
284
+ }), St = () => {
285
+ const t = Pe(Se, [
286
+ b.control
287
+ ]);
282
288
  return /* @__PURE__ */ e.createElement(a, null, /* @__PURE__ */ e.createElement(a.Label, {
283
- className: y(fe, f.label)
289
+ className: p(De, f.label)
284
290
  }, /* @__PURE__ */ e.createElement(a.Label.Required, {
285
- className: y(De, f.requiredMark)
291
+ className: p(fe, f.requiredMark)
286
292
  })), /* @__PURE__ */ e.createElement(a.Control, {
287
293
  className: t
288
294
  }, /* @__PURE__ */ e.createElement(a.Trigger, {
289
- className: S.trigger
295
+ className: b.trigger
290
296
  }, /* @__PURE__ */ e.createElement(qe, null)), /* @__PURE__ */ e.createElement(a.Input, {
291
- className: S.segments
297
+ className: b.segments
292
298
  })), /* @__PURE__ */ e.createElement(a.Calendar, {
293
- className: y(Ce, f.selectPopover, S.calendarPopover)
299
+ className: p(Ce, f.selectPopover, b.calendarPopover)
294
300
  }, /* @__PURE__ */ e.createElement(a.Calendar.PreviousTrigger, null, /* @__PURE__ */ e.createElement(R, {
295
301
  direction: "left"
296
302
  })), /* @__PURE__ */ e.createElement(a.Calendar.MonthTrigger, null, /* @__PURE__ */ e.createElement(I, {
@@ -300,15 +306,15 @@ const qe = (t) => /* @__PURE__ */ e.createElement("svg", {
300
306
  })), /* @__PURE__ */ e.createElement(a.Calendar.NextTrigger, null, /* @__PURE__ */ e.createElement(R, {
301
307
  direction: "right"
302
308
  })), /* @__PURE__ */ e.createElement(a.Calendar.Day, {
303
- className: y(Ae, P.day, S.calendarDay)
309
+ className: p(Le, A.day, b.calendarDay)
304
310
  }, ({ formattedDate: r }) => /* @__PURE__ */ e.createElement("span", {
305
- className: P.dayNumber
311
+ className: p(A.dayNumber, b.dayNumber)
306
312
  }, r))), /* @__PURE__ */ e.createElement(a.Error, {
307
- className: y(ye, f.error)
308
- }, /* @__PURE__ */ e.createElement(Le, null), /* @__PURE__ */ e.createElement(a.Error.Text, null)), /* @__PURE__ */ e.createElement(a.Description, {
309
- className: y(Se, f.description)
310
- }, Je));
313
+ className: p(ye, f.error)
314
+ }, /* @__PURE__ */ e.createElement(Oe, null), /* @__PURE__ */ e.createElement(a.Error.Text, null)), /* @__PURE__ */ e.createElement(a.Description, {
315
+ className: p(be, f.description)
316
+ }, et));
311
317
  };
312
318
  export {
313
- Ct as D
319
+ St as D
314
320
  };
@@ -1,5 +1,5 @@
1
1
  import e from "react";
2
- import { D as r } from "./date-picker-field-rac-mx11z-MO.js";
2
+ import { D as r } from "./date-picker-field-rac-CpDY4EkU.js";
3
3
  const a = () => /* @__PURE__ */ e.createElement(r, null);
4
4
  export {
5
5
  a as DatePickerRAC