@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
@@ -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-D3iU18lh.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-ClPQ03Jc.js";
11
- import { L as Ne } from "./field-label-headless-DhN8Lkuq.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-BrkmG0ad.js";
14
- import { i as Fe } from "./date-availability-DmFFTX8p.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-DHAKwnLt.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-E8WjFr_n.js";
11
+ import { L as _e } from "./field-label-headless-BakLOu5E.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-DUZMvWpk.js";
14
+ import { i as Fe } from "./date-availability-DZ3J3LLm.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";
16
+ import { E as Oe } from "./error-icon-hZxQ6DEy.js";
17
+ import { H as Le } from "./custom-focus-class-_483Pkwp.js";
18
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
19
+ import { u as Pe } from "./use-hoverable-input-class-name-ugX8-g4E.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,12 @@ 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
91
  (l = i.current) == null || l.focus();
91
92
  }, r);
92
- const u = _(() => $e(n), [
93
+ const u = v(() => We(n), [
93
94
  n
94
95
  ]);
95
96
  return /* @__PURE__ */ e.createElement(se, {
@@ -115,24 +116,24 @@ const Oe = [
115
116
  }, Me = ({ children: t, className: r }) => /* @__PURE__ */ e.createElement(ve, {
116
117
  className: r
117
118
  }, t), g = ({ children: t, className: r, ...o }) => {
118
- const { isForcedOpen: n } = o, { regionalFormat: i } = F(), { availability: c } = T(), u = _(() => he(i), [
119
+ const { isForcedOpen: n } = o, { regionalFormat: i } = F(), { availability: c } = h(), u = v(() => he(i), [
119
120
  i
120
- ]), l = _(() => (s) => {
121
- const N = new Date(s.year, s.month - 1, s.day);
122
- return !Fe(N, c || Pe);
121
+ ]), l = v(() => (s) => {
122
+ const T = new Date(s.year, s.month - 1, s.day);
123
+ return !Fe(T, c || Re);
123
124
  }, [
124
125
  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, {
126
+ ]), 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);
127
+ return /* @__PURE__ */ e.createElement(O, {
127
128
  className: r,
128
129
  containerPadding: 0
129
- }, /* @__PURE__ */ e.createElement(we, {
130
+ }, /* @__PURE__ */ e.createElement(Ye, {
130
131
  isForcedOpen: n
131
132
  }, /* @__PURE__ */ e.createElement(ie, {
132
133
  autoFocus: n ? !1 : void 0,
133
- firstDayOfWeek: He(u),
134
+ firstDayOfWeek: $e(u),
134
135
  isDateUnavailable: l
135
- }, /* @__PURE__ */ e.createElement("header", null, d, /* @__PURE__ */ e.createElement(me, null, (s) => h(C, {
136
+ }, /* @__PURE__ */ e.createElement("header", null, d, /* @__PURE__ */ e.createElement(me, null, (s) => S(y, {
136
137
  ariaLabel: s["aria-label"],
137
138
  selectedKey: s.value,
138
139
  onSelectionChange: s.onChange,
@@ -140,76 +141,76 @@ const Oe = [
140
141
  popoverClassName: r
141
142
  })), /* @__PURE__ */ e.createElement(de, {
142
143
  visibleYears: 100
143
- }, (s) => h(b, {
144
+ }, (s) => S(N, {
144
145
  ariaLabel: s["aria-label"],
145
146
  selectedKey: s.value,
146
147
  onSelectionChange: s.onChange,
147
148
  items: s.items,
148
149
  popoverClassName: r
149
- })), D), /* @__PURE__ */ e.createElement(ue, {
150
+ })), C), /* @__PURE__ */ e.createElement(ue, {
150
151
  weekdayStyle: "short"
151
- }, (s) => h(m, {
152
+ }, (s) => S(m, {
152
153
  date: s
153
154
  })))));
154
- }, we = ({ isForcedOpen: t, children: r }) => t ? /* @__PURE__ */ e.createElement("div", {
155
+ }, Ye = ({ isForcedOpen: t, children: r }) => t ? /* @__PURE__ */ e.createElement("div", {
155
156
  role: "dialog"
156
- }, r) : /* @__PURE__ */ e.createElement(ge, null, r), xe = ({ children: t, className: r, ...o }) => {
157
+ }, r) : /* @__PURE__ */ e.createElement(ge, null, r), we = ({ children: t, className: r, ...o }) => {
157
158
  const { date: n } = o;
158
159
  return /* @__PURE__ */ e.createElement(Ee, {
159
160
  className: r,
160
161
  date: n
161
162
  }, t);
162
- }, Ye = ({ children: t, className: r }) => /* @__PURE__ */ e.createElement(M, {
163
+ }, Be = ({ children: t, className: r }) => /* @__PURE__ */ e.createElement(k, {
163
164
  slot: "previous",
164
165
  className: r
165
- }, t), Be = ({ children: t, className: r }) => /* @__PURE__ */ e.createElement(M, {
166
+ }, t), Ue = ({ children: t, className: r }) => /* @__PURE__ */ e.createElement(k, {
166
167
  slot: "next",
167
168
  className: r
168
- }, t), Ue = ({ children: t, className: r, ...o }) => {
169
+ }, t), Ve = ({ children: t, className: r, ...o }) => {
169
170
  const { ariaLabel: n, selectedKey: i, onSelectionChange: c, items: u, popoverClassName: l } = o;
170
- return /* @__PURE__ */ e.createElement(w, {
171
+ return /* @__PURE__ */ e.createElement(M, {
171
172
  "aria-label": n,
172
173
  selectedKey: i,
173
174
  onSelectionChange: c
174
175
  }, /* @__PURE__ */ e.createElement(V, {
175
176
  className: r
176
- }, /* @__PURE__ */ e.createElement(x, null), t), /* @__PURE__ */ e.createElement(L, {
177
+ }, /* @__PURE__ */ e.createElement(Y, null), t), /* @__PURE__ */ e.createElement(O, {
177
178
  className: l,
178
179
  containerPadding: 0
179
- }, /* @__PURE__ */ e.createElement(Y, {
180
+ }, /* @__PURE__ */ e.createElement(w, {
180
181
  items: u
181
182
  }, (m) => /* @__PURE__ */ e.createElement(B, {
182
183
  id: m.id
183
184
  }, m.formatted))));
184
- }, Ve = ({ children: t, className: r, ...o }) => {
185
+ }, je = ({ children: t, className: r, ...o }) => {
185
186
  const { ariaLabel: n, selectedKey: i, onSelectionChange: c, items: u, popoverClassName: l } = o;
186
- return /* @__PURE__ */ e.createElement(w, {
187
+ return /* @__PURE__ */ e.createElement(M, {
187
188
  "aria-label": n,
188
189
  selectedKey: i,
189
190
  onSelectionChange: c
190
191
  }, /* @__PURE__ */ e.createElement(V, {
191
192
  className: r
192
- }, /* @__PURE__ */ e.createElement(x, null), t), /* @__PURE__ */ e.createElement(L, {
193
+ }, /* @__PURE__ */ e.createElement(Y, null), t), /* @__PURE__ */ e.createElement(O, {
193
194
  className: l,
194
195
  containerPadding: 0
195
- }, /* @__PURE__ */ e.createElement(Y, {
196
+ }, /* @__PURE__ */ e.createElement(w, {
196
197
  items: u
197
198
  }, (m) => /* @__PURE__ */ e.createElement(B, {
198
199
  id: m.id
199
200
  }, m.formatted))));
200
201
  };
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;
202
+ g.Day = we;
203
+ g.PreviousTrigger = Be;
204
+ g.NextTrigger = Ue;
205
+ g.MonthTrigger = Ve;
206
+ g.YearTrigger = je;
207
+ a.Label = _e;
208
+ a.Control = xe;
208
209
  a.Input = ke;
209
210
  a.Trigger = Me;
210
211
  a.Calendar = g;
211
- a.Description = Te;
212
- a.Error = be;
212
+ a.Description = Ne;
213
+ a.Error = Te;
213
214
  function Ke(t) {
214
215
  if (!t)
215
216
  return null;
@@ -219,13 +220,13 @@ function Ke(t) {
219
220
  return null;
220
221
  }
221
222
  }
222
- function We(t) {
223
+ function He(t) {
223
224
  if (!t)
224
225
  return null;
225
226
  const r = String(t.year).padStart(4, "0"), o = String(t.month).padStart(2, "0"), n = String(t.day).padStart(2, "0");
226
227
  return `${r}-${o}-${n}`;
227
228
  }
228
- function $e(t) {
229
+ function We(t) {
229
230
  var r;
230
231
  try {
231
232
  return ((r = new Intl.DateTimeFormat(t, {
@@ -237,7 +238,7 @@ function $e(t) {
237
238
  return "month";
238
239
  }
239
240
  }
240
- function He(t) {
241
+ function $e(t) {
241
242
  return [
242
243
  "sun",
243
244
  "mon",
@@ -261,36 +262,39 @@ const qe = (t) => /* @__PURE__ */ e.createElement("svg", {
261
262
  strokeWidth: "1.5",
262
263
  strokeLinecap: "round",
263
264
  strokeLinejoin: "round"
264
- })), Ge = "_control_18cbf_1", je = "_segments_18cbf_14", Qe = "_trigger_18cbf_72", Ze = "_calendarPopover_18cbf_103", ze = "_calendarDay_18cbf_252", S = {
265
+ })), 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
266
  control: Ge,
266
- segments: je,
267
- trigger: Qe,
268
- calendarPopover: Ze,
269
- calendarDay: ze
270
- }, Je = ({ content: t, locale: r }) => /* @__PURE__ */ e.createElement(X, {
267
+ segments: Qe,
268
+ trigger: Ze,
269
+ calendarPopover: ze,
270
+ calendarDay: Je,
271
+ dayNumber: Xe
272
+ }, et = ({ content: t, locale: r }) => /* @__PURE__ */ e.createElement(X, {
271
273
  content: t,
272
274
  locale: r
273
- }), Xe = {
275
+ }), tt = {
274
276
  left: 90,
275
277
  right: -90
276
278
  }, R = ({ direction: t }) => /* @__PURE__ */ e.createElement(I, {
277
279
  style: {
278
- transform: `rotate(${Xe[t]}deg)`
280
+ transform: `rotate(${tt[t]}deg)`
279
281
  }
280
- }), Ct = () => {
281
- const t = Ie(S.control);
282
+ }), St = () => {
283
+ const t = Pe(Se, [
284
+ b.control
285
+ ]);
282
286
  return /* @__PURE__ */ e.createElement(a, null, /* @__PURE__ */ e.createElement(a.Label, {
283
- className: y(fe, f.label)
287
+ className: p(De, f.label)
284
288
  }, /* @__PURE__ */ e.createElement(a.Label.Required, {
285
- className: y(De, f.requiredMark)
289
+ className: p(fe, f.requiredMark)
286
290
  })), /* @__PURE__ */ e.createElement(a.Control, {
287
291
  className: t
288
292
  }, /* @__PURE__ */ e.createElement(a.Trigger, {
289
- className: S.trigger
293
+ className: b.trigger
290
294
  }, /* @__PURE__ */ e.createElement(qe, null)), /* @__PURE__ */ e.createElement(a.Input, {
291
- className: S.segments
295
+ className: b.segments
292
296
  })), /* @__PURE__ */ e.createElement(a.Calendar, {
293
- className: y(Ce, f.selectPopover, S.calendarPopover)
297
+ className: p(Ce, f.selectPopover, b.calendarPopover)
294
298
  }, /* @__PURE__ */ e.createElement(a.Calendar.PreviousTrigger, null, /* @__PURE__ */ e.createElement(R, {
295
299
  direction: "left"
296
300
  })), /* @__PURE__ */ e.createElement(a.Calendar.MonthTrigger, null, /* @__PURE__ */ e.createElement(I, {
@@ -300,15 +304,15 @@ const qe = (t) => /* @__PURE__ */ e.createElement("svg", {
300
304
  })), /* @__PURE__ */ e.createElement(a.Calendar.NextTrigger, null, /* @__PURE__ */ e.createElement(R, {
301
305
  direction: "right"
302
306
  })), /* @__PURE__ */ e.createElement(a.Calendar.Day, {
303
- className: y(Ae, P.day, S.calendarDay)
307
+ className: p(Le, A.day, b.calendarDay)
304
308
  }, ({ formattedDate: r }) => /* @__PURE__ */ e.createElement("span", {
305
- className: P.dayNumber
309
+ className: p(A.dayNumber, b.dayNumber)
306
310
  }, 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));
311
+ className: p(ye, f.error)
312
+ }, /* @__PURE__ */ e.createElement(Oe, null), /* @__PURE__ */ e.createElement(a.Error.Text, null)), /* @__PURE__ */ e.createElement(a.Description, {
313
+ className: p(be, f.description)
314
+ }, et));
311
315
  };
312
316
  export {
313
- Ct as D
317
+ St as D
314
318
  };
@@ -1,5 +1,5 @@
1
1
  import e from "react";
2
- import { D as r } from "./date-picker-field-rac-Ckwu2vD6.js";
2
+ import { D as r } from "./date-picker-field-rac-BcdpTkjV.js";
3
3
  const a = () => /* @__PURE__ */ e.createElement(r, null);
4
4
  export {
5
5
  a as DatePickerRAC