@wix/form-elements 1.106.0 → 1.108.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-D2F4vgf1.js → appointment-rac-ZAp8oWbK.js} +289 -290
  2. package/dist/component/{bookings-address-rac-_5S8J8_i.js → bookings-address-rac-x-Az7vHf.js} +1 -1
  3. package/dist/component/{bookings-email-rac-6vmDR9nS.js → bookings-email-rac-MoF_CaqB.js} +1 -1
  4. package/dist/component/{bookings-first-name-rac-DtTJ4T2K.js → bookings-first-name-rac-CWh3Rb0M.js} +1 -1
  5. package/dist/component/{bookings-header-rac-B3dsEwzR.js → bookings-header-rac-BVTiXUWk.js} +1 -1
  6. package/dist/component/{bookings-last-name-rac-B3idkbi8.js → bookings-last-name-rac-kXRRlyHl.js} +1 -1
  7. package/dist/component/{bookings-login-bar-rac-CrRBcQwT.js → bookings-login-bar-rac-C4Zr6kXE.js} +23 -24
  8. package/dist/component/{bookings-phone-rac-BE0yWNnj.js → bookings-phone-rac-2rz1m_xi.js} +1 -1
  9. package/dist/component/{bookings-rich-text-rac-CYo1l0-6.js → bookings-rich-text-rac-BEjGypQw.js} +1 -1
  10. package/dist/component/{checkbox-field-rac-boTtXVEt.js → checkbox-field-rac-DwEQLIaz.js} +66 -67
  11. package/dist/component/{checkbox-group-field-headless-DnkUvDm8.js → checkbox-group-field-headless-BsOww_QB.js} +37 -37
  12. package/dist/component/{checkbox-group-field-rac-DrDTgHMg.js → checkbox-group-field-rac-DTcZcVS6.js} +6 -6
  13. package/dist/component/{checkbox-group-rac-v3ozUBpo.js → checkbox-group-rac-DQsML-pW.js} +1 -1
  14. package/dist/component/{checkbox-rac-YSLE-RnG.js → checkbox-rac-irEBBOxP.js} +1 -1
  15. package/dist/component/{contacts-address-rac-C653yaHZ.js → contacts-address-rac-B5bSAYrm.js} +1 -1
  16. package/dist/component/{contacts-birthdate-rac-BeAQ6shx.js → contacts-birthdate-rac-DyScj8f4.js} +1 -1
  17. package/dist/component/{contacts-company-rac-BglKOoTG.js → contacts-company-rac-C5X9-jXa.js} +1 -1
  18. package/dist/component/{contacts-email-rac-D6m7ynfc.js → contacts-email-rac-B0vkfmrS.js} +1 -1
  19. package/dist/component/{contacts-first-name-rac-Dgxn0tUJ.js → contacts-first-name-rac-Cfil3U_e.js} +1 -1
  20. package/dist/component/{contacts-last-name-rac-1UyIuRKH.js → contacts-last-name-rac-CtPLE-7-.js} +1 -1
  21. package/dist/component/{contacts-phone-rac-BQ77BlW4.js → contacts-phone-rac-YkzsAoBZ.js} +1 -1
  22. package/dist/component/{contacts-position-rac-BUDUv7lv.js → contacts-position-rac-BS4j8QC-.js} +1 -1
  23. package/dist/component/{contacts-subscribe-rac-DdtA0qKW.js → contacts-subscribe-rac-z_9VsEZL.js} +1 -1
  24. package/dist/component/{contacts-tax-id-rac-WUaKcNl0.js → contacts-tax-id-rac-WFkmKyZv.js} +1 -1
  25. package/dist/component/{date-availability-XjBFq8jt.js → date-availability-NN3rxosk.js} +1 -1
  26. package/dist/component/{date-input-field-rac-aY2zuuKs.js → date-input-field-rac-mdhEC3oq.js} +88 -89
  27. package/dist/component/{date-input-rac-DRiP2_97.js → date-input-rac-CGciuoTx.js} +1 -1
  28. package/dist/component/{date-picker-field-rac-Bzl-d3Uj.js → date-picker-field-rac-CRZVODfF.js} +90 -91
  29. package/dist/component/{date-picker-rac-DHHUh8vn.js → date-picker-rac-Bfbvjy8W.js} +1 -1
  30. package/dist/component/{date-time-input-field-rac-DP_StuLr.js → date-time-input-field-rac-TDWBXZ44.js} +76 -77
  31. package/dist/component/{date-time-input-rac-B11KIxsf.js → date-time-input-rac-DY0qdSix.js} +1 -1
  32. package/dist/component/{dext-checkbox-group-rac-BHZBqyWv.js → dext-checkbox-group-rac-BFGM7SOt.js} +2 -2
  33. package/dist/component/{dext-checkbox-rac-BIlAqEvV.js → dext-checkbox-rac-DPZvTeUZ.js} +1 -1
  34. package/dist/component/{dext-date-picker-rac-CHBXNrZi.js → dext-date-picker-rac-Xd5kojsQ.js} +1 -1
  35. package/dist/component/{dext-date-time-input-rac-BYtliKry.js → dext-date-time-input-rac-C0RIdxJW.js} +1 -1
  36. package/dist/component/{dext-dropdown-rac-C2VPSFV5.js → dext-dropdown-rac-D1m8vJvm.js} +1 -1
  37. package/dist/component/{dext-email-rac-Fnb0Ggcs.js → dext-email-rac-BC81RFYY.js} +1 -1
  38. package/dist/component/{dext-number-input-rac-DopfSyFi.js → dext-number-input-rac-Z_ih9FfX.js} +1 -1
  39. package/dist/component/{dext-phone-rac-Rn4i_2rc.js → dext-phone-rac-s3BOnXuI.js} +1 -1
  40. package/dist/component/{dext-radio-group-rac-bNaskJpK.js → dext-radio-group-rac-CL3jcezs.js} +2 -2
  41. package/dist/component/{dext-rating-input-rac-DL6ZZd7d.js → dext-rating-input-rac-wz1EyP5b.js} +1 -1
  42. package/dist/component/{dext-tags-rac-TsUPoImO.js → dext-tags-rac-BY4Rf2BP.js} +2 -2
  43. package/dist/component/{dext-text-area-rac-BIuY7LTd.js → dext-text-area-rac-DRJzlsq8.js} +1 -1
  44. package/dist/component/{dext-text-input-rac-CSYPW0Qi.js → dext-text-input-rac-BGcRNNAi.js} +1 -1
  45. package/dist/component/{dext-url-input-rac-_g0lqGfW.js → dext-url-input-rac-CRAIm8yp.js} +1 -1
  46. package/dist/component/{donation-rac-BYKFtsyR.js → donation-rac-BlTfOIlE.js} +83 -84
  47. package/dist/component/{dropdown-field-headless-CBaqlNZi.js → dropdown-field-headless-DhzRAMcM.js} +12 -12
  48. package/dist/component/{dropdown-field-rac-CCAGSMm3.js → dropdown-field-rac-DXyY5we-.js} +5 -5
  49. package/dist/component/{dropdown-rac-C_EqUsZ1.js → dropdown-rac-C6YM6qxm.js} +1 -1
  50. package/dist/component/{ecom-address-rac-Bw9eH0iF.js → ecom-address-rac-CAdr7wya.js} +1 -1
  51. package/dist/component/{ecom-subscription-checkbox-rac-B5PVOO2a.js → ecom-subscription-checkbox-rac-Z2VMuCbt.js} +6 -6
  52. package/dist/component/{email-input-field-rac-B2kqQ6yo.js → email-input-field-rac-DpkfunVK.js} +53 -54
  53. package/dist/component/{events-repeater-rac--4OnUxWE.js → events-repeater-rac-CuJkdrPo.js} +61 -62
  54. package/dist/component/{events-rsvp-rac-CczCoo3T.js → events-rsvp-rac-BKWlSeQ9.js} +8 -8
  55. package/dist/component/{field-error-headless-D3-1L5sf.js → field-error-headless-tsg9FQ-_.js} +12 -12
  56. package/dist/component/{field-label-headless-Du4ckIVy.js → field-label-headless-CB8dEat8.js} +11 -11
  57. package/dist/component/{file-upload-rac-DbdkUbWM.js → file-upload-rac-ZdgYt646.js} +67 -68
  58. package/dist/component/{fixed-payment-rac-f9-01iDN.js → fixed-payment-rac-CuIQEeHh.js} +20 -21
  59. package/dist/component/{form-DQauhsho.js → form-0jt4L5xo.js} +3045 -2896
  60. package/dist/component/form.css +1 -1
  61. package/dist/component/form.js +1 -1
  62. package/dist/component/header-field-rac-CWVGzxKb.js +24 -0
  63. package/dist/component/{header-rac-CR9T3Pnu.js → header-rac-D6KsV-ko.js} +1 -1
  64. package/dist/component/{image-choice-rac-DJ_8v467.js → image-choice-rac-CUCyVS8c.js} +29 -30
  65. package/dist/component/{index-BB7d_9Dv.js → index-TJSnVtCO.js} +72 -72
  66. package/dist/component/{index-CcUTIUWM.js → index-iOqQidgV.js} +12 -12
  67. package/dist/component/{isObjectLike-xvPa_08X.js → isObjectLike-DQbx8r1c.js} +1 -1
  68. package/dist/component/{multiline-address-field-rac-CyaFOloE.js → multiline-address-field-rac-DtZ1NTfD.js} +186 -187
  69. package/dist/component/{multiline-address-rac-CaHGUN_f.js → multiline-address-rac-ub-_XzHU.js} +1 -1
  70. package/dist/component/number-input-field-rac-DLItn4DK.js +92 -0
  71. package/dist/component/{number-input-rac-DMKX6nhk.js → number-input-rac-UuxJzqEx.js} +1 -1
  72. package/dist/component/{password-rac-0RUXPAn6.js → password-rac-Di6q96Rn.js} +37 -38
  73. package/dist/component/{payment-input-rac-CHSZ3-Lt.js → payment-input-rac-CG6c4-Ge.js} +52 -53
  74. package/dist/component/{phone-input-field-rac-JmIFcP1e.js → phone-input-field-rac-D4JphCuT.js} +75 -76
  75. package/dist/component/{phone-rac-BLRnAPXP.js → phone-rac-_vDw2usa.js} +1 -1
  76. package/dist/component/{product-list-rac-BkF5tDwt.js → product-list-rac-CgxRlj1f.js} +73 -74
  77. package/dist/component/{quiz-radio-group-rac-32cCMTUS.js → quiz-radio-group-rac-bi26aGxN.js} +1 -1
  78. package/dist/component/{radio-button-module-classes-IOulhuSH.js → radio-button-module-classes-DDJq2ESf.js} +33 -33
  79. package/dist/component/{radio-group-field-rac-CJwku6e0.js → radio-group-field-rac-D1aMVO6l.js} +4 -4
  80. package/dist/component/{radio-group-rac-BiW-9Abj.js → radio-group-rac-HKC85M6t.js} +1 -1
  81. package/dist/component/{rating-input-field-rac-B9cwaROK.js → rating-input-field-rac-CpRehxFB.js} +42 -43
  82. package/dist/component/{rating-input-rac-BpwlNvzQ.js → rating-input-rac-BMuCZ3oj.js} +1 -1
  83. package/dist/component/{rich-content-rac.module-B1uyPmtK.js → rich-content-rac.module-mZ6xoAOd.js} +4 -4
  84. package/dist/component/rich-text-field-rac-CUK8V8Kf.js +21 -0
  85. package/dist/component/{rich-text-rac-VfeZxS27.js → rich-text-rac-B-7sR2FJ.js} +1 -1
  86. package/dist/component/{service-dropdown-rac-BCfs8IhW.js → service-dropdown-rac-1DDNT5bn.js} +43 -44
  87. package/dist/component/{services-multi-choice-rac-CCqdF_7P.js → services-multi-choice-rac-CB-6dwxz.js} +21 -22
  88. package/dist/component/{signature-rac-DOyMo3u0.js → signature-rac-7XBci6P2.js} +35 -36
  89. package/dist/component/{submit-button-rac-C2uA5DeE.js → submit-button-rac-B1-Mk8Gg.js} +21 -22
  90. package/dist/component/{tags-field-rac-C_uIw2by.js → tags-field-rac-CQ9Y7mq-.js} +49 -50
  91. package/dist/component/{tags-rac-1pQ-fpe_.js → tags-rac-Visic-Ml.js} +1 -1
  92. package/dist/component/{text-area-field-rac-DqlOkm7e.js → text-area-field-rac-C8fP1g-w.js} +31 -32
  93. package/dist/component/{text-area-rac-DPdkrFcH.js → text-area-rac-B6yZxzxm.js} +1 -1
  94. package/dist/component/{text-input-field-rac-CmXm6r1w.js → text-input-field-rac-CNjbOxD1.js} +5 -5
  95. package/dist/component/{text-input-headless-DD__2DFf.js → text-input-headless-Bm8PJGep.js} +12 -12
  96. package/dist/component/{text-input-rac-DRHyQEH7.js → text-input-rac-BEPC1Z-4.js} +1 -1
  97. package/dist/component/{time-input-rac-BJPIymQY.js → time-input-rac-3m6C_Jp5.js} +41 -42
  98. package/dist/component/url-input-field-rac-CIk_6Lf6.js +74 -0
  99. package/dist/component/{url-input-rac-C0ChQUzq.js → url-input-rac-DyVoygXH.js} +1 -1
  100. package/dist/component/use-dropdown-option-class-name-McG3ayOT.js +21 -0
  101. package/dist/component/{use-element-state-class-name-BatTc2bw.js → use-element-state-class-name-B9MBWX44.js} +1 -1
  102. package/dist/component/{use-is-forced-open-dropdown-B0jiPTmS.js → use-is-forced-open-dropdown-r5G_sZsO.js} +7 -7
  103. package/dist/component/{use-service-options-base-oeE7xszw.js → use-service-options-base-hcbkvhpw.js} +7 -7
  104. package/dist/component/use-text-input-class-name-SnurFqAr.js +23 -0
  105. package/dist/form.d.ts +3 -1
  106. package/package.json +2 -2
  107. package/dist/component/form-element-classes-bLFmhsKw.js +0 -137
  108. package/dist/component/header-field-rac-DamDk5BR.js +0 -25
  109. package/dist/component/number-input-field-rac-BuYUzDWV.js +0 -93
  110. package/dist/component/rich-text-field-rac-C_qE7Ykg.js +0 -22
  111. package/dist/component/url-input-field-rac-CFDYkZ6I.js +0 -75
  112. package/dist/component/use-dropdown-option-class-name-3L5ZmNLK.js +0 -21
  113. package/dist/component/use-text-input-class-name-LQ5S-NLh.js +0 -24
@@ -1,22 +1,21 @@
1
1
  import { RicosViewer as X } from "@wix/ricos/viewer";
2
2
  import D from "classnames";
3
- import e, { useState as O, useCallback as k, useContext as ee, useRef as A, useMemo as I } from "react";
3
+ import e, { useState as O, useCallback as k, useContext as ee, useRef as A, useMemo as b } 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 ue, CalendarGrid as de, Dialog as ge, CalendarCell as Ee, Button as M, Select as x, SelectValue as w, ListBox as Y, ListBoxItem as B } from "react-aria-components";
7
- import { D as f, ak as v, ah as U, ac as L, am as pe } from "./form-DQauhsho.js";
8
- import { g as De, c as P } from "./calendar.module-DnhTT4QT.js";
9
- import { f as E, a as h } from "./find-child-C60k4CxG.js";
10
- import { D as fe, E as Ce } from "./field-error-headless-D3-1L5sf.js";
11
- import { L as ye } from "./field-label-headless-Du4ckIVy.js";
12
- import { D as Se, N as b, S as V } from "./non-modal-popover-DtIMXHbe.js";
13
- import { u as he } from "./use-is-forced-open-dropdown-B0jiPTmS.js";
14
- import { i as ve } from "./date-availability-XjBFq8jt.js";
15
- import { C as F } from "./chevron-down-icon-CcpVm6B-.js";
16
- import { E as Te } from "./error-icon-hZxQ6DEy.js";
17
- import { H as _e } from "./custom-focus-class-_483Pkwp.js";
6
+ import { I18nProvider as ne, DatePicker as ae, DatePickerStateContext as oe, Group as le, DateInput as se, DateSegment as ce, Calendar as ie, CalendarMonthPicker as me, CalendarYearPicker as ue, CalendarGrid as de, Dialog as ge, CalendarCell as Ee, Button as M, Select as x, SelectValue as w, ListBox as Y, ListBoxItem as B } from "react-aria-components";
7
+ import { D as f, b5 as h, b2 as U, aZ as F, b7 as pe, H as De, T as fe, t as Ce, n as ye, u as Se, p as Te } from "./form-0jt4L5xo.js";
8
+ import { g as he, c as P } from "./calendar.module-DnhTT4QT.js";
9
+ import { f as E, a as T } from "./find-child-C60k4CxG.js";
10
+ import { D as ve, E as _e } from "./field-error-headless-tsg9FQ-_.js";
11
+ import { L as Ne } from "./field-label-headless-CB8dEat8.js";
12
+ import { D as be, N as L, S as V } from "./non-modal-popover-DtIMXHbe.js";
13
+ import { u as Ie } from "./use-is-forced-open-dropdown-r5G_sZsO.js";
14
+ import { i as Fe } from "./date-availability-NN3rxosk.js";
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 Oe } from "./custom-focus-class-_483Pkwp.js";
18
18
  import { s as p } from "./field-rac.module-B4l_0KRU.js";
19
- import { v as Ne, J as Ie, n as Fe, h as Le, o as be, j as Oe } from "./form-element-classes-bLFmhsKw.js";
20
19
  const Ae = [
21
20
  f.SUNDAY,
22
21
  f.MONDAY,
@@ -27,18 +26,18 @@ const Ae = [
27
26
  f.SATURDAY
28
27
  ], Pe = {
29
28
  availableDays: Ae
30
- }, a = ({ children: t }) => {
31
- const { id: r, value: l, onChange: n, disabled: i, required: c, onBlur: d, onFocus: o, FieldLayout: m, hasError: u, readOnly: C } = v(), { labelId: y } = U(), { regionalFormat: T } = L(), [s, _] = O(null), [W, K] = O(!1), N = he(r), $ = k((Z) => {
32
- const z = Ke(Z);
33
- n(z);
29
+ }, n = ({ children: t }) => {
30
+ const { id: r, value: l, onChange: a, disabled: i, required: c, onBlur: d, onFocus: o, FieldLayout: m, hasError: u, readOnly: C } = h(), { labelId: y } = U(), { regionalFormat: v } = F(), [s, _] = O(null), [W, K] = O(!1), N = Ie(r), H = k((z) => {
31
+ const J = Ke(z);
32
+ a(J);
34
33
  }, [
35
- n
36
- ]), H = E(t, a.Label), q = E(t, a.Control), G = E(t, a.Calendar), j = E(t, a.Description), J = E(t, a.Error), Q = We(l);
34
+ a
35
+ ]), $ = E(t, n.Label), q = E(t, n.Control), G = E(t, n.Calendar), j = E(t, n.Description), Z = E(t, n.Error), Q = We(l);
37
36
  return /* @__PURE__ */ e.createElement(m, {
38
37
  fieldId: r,
39
- renderLabel: () => H,
40
- renderInput: () => /* @__PURE__ */ e.createElement(ae, {
41
- locale: T
38
+ renderLabel: () => $,
39
+ renderInput: () => /* @__PURE__ */ e.createElement(ne, {
40
+ locale: v
42
41
  }, /* @__PURE__ */ e.createElement("div", {
43
42
  ref: _,
44
43
  style: {
@@ -46,10 +45,10 @@ const Ae = [
46
45
  }
47
46
  }), /* @__PURE__ */ e.createElement(re, {
48
47
  getContainer: () => s
49
- }, /* @__PURE__ */ e.createElement(ne, {
48
+ }, /* @__PURE__ */ e.createElement(ae, {
50
49
  "aria-labelledby": y,
51
50
  value: Q,
52
- onChange: $,
51
+ onChange: H,
53
52
  isDisabled: i,
54
53
  isInvalid: u,
55
54
  isReadOnly: C,
@@ -58,13 +57,13 @@ const Ae = [
58
57
  onFocus: o,
59
58
  isOpen: N || W,
60
59
  onOpenChange: N ? void 0 : K
61
- }, q, h(G, {
60
+ }, q, T(G, {
62
61
  isForcedOpen: N
63
62
  })))),
64
- renderDescription: () => /* @__PURE__ */ e.createElement(e.Fragment, null, J, j)
63
+ renderDescription: () => /* @__PURE__ */ e.createElement(e.Fragment, null, Z, j)
65
64
  });
66
65
  }, Re = ({ children: t, className: r }) => {
67
- const { inputId: l, ariaDescribedBy: n } = U(), { hasError: i, disabled: c, readOnly: d } = v(), o = ee(oe), m = k((u) => {
66
+ const { inputId: l, ariaDescribedBy: a } = U(), { hasError: i, disabled: c, readOnly: d } = h(), o = ee(oe), m = k((u) => {
68
67
  if (!o || o.isOpen || c || d)
69
68
  return;
70
69
  const C = u.target;
@@ -79,19 +78,19 @@ const Ae = [
79
78
  ]);
80
79
  return /* @__PURE__ */ e.createElement(le, {
81
80
  id: l,
82
- "aria-describedby": n,
81
+ "aria-describedby": a,
83
82
  className: r,
84
83
  "data-invalid": i,
85
84
  onPointerDownCapture: m
86
85
  }, t);
87
86
  }, ke = ({ className: t }) => {
88
- const { id: r, placeholder: l } = v(), { regionalFormat: n } = L(), i = A(null), c = A(!1);
87
+ const { id: r, placeholder: l } = h(), { regionalFormat: a } = F(), i = A(null), c = A(!1);
89
88
  pe(() => {
90
89
  var o;
91
90
  (o = i.current) == null || o.focus();
92
91
  }, r);
93
- const d = I(() => $e(n), [
94
- n
92
+ const d = b(() => He(a), [
93
+ a
95
94
  ]);
96
95
  return /* @__PURE__ */ e.createElement(se, {
97
96
  className: t
@@ -112,27 +111,27 @@ const Ae = [
112
111
  }
113
112
  }, (u) => !u.isPlaceholder || !l ? u.text : m ? l : u.text);
114
113
  });
115
- }, Me = ({ children: t, className: r }) => /* @__PURE__ */ e.createElement(Se, {
114
+ }, Me = ({ children: t, className: r }) => /* @__PURE__ */ e.createElement(be, {
116
115
  className: r
117
116
  }, t), g = ({ children: t, className: r, ...l }) => {
118
- const { isForcedOpen: n } = l, { regionalFormat: i } = L(), { availability: c } = v(), d = I(() => De(i), [
117
+ const { isForcedOpen: a } = l, { regionalFormat: i } = F(), { availability: c } = h(), d = b(() => he(i), [
119
118
  i
120
- ]), o = I(() => (s) => {
119
+ ]), o = b(() => (s) => {
121
120
  const _ = new Date(s.year, s.month - 1, s.day);
122
- return !ve(_, c || Pe);
121
+ return !Fe(_, c || Pe);
123
122
  }, [
124
123
  c
125
- ]), m = E(t, g.Day) ?? /* @__PURE__ */ e.createElement(g.Day, null), u = E(t, g.PreviousTrigger), C = E(t, g.NextTrigger), y = E(t, g.MonthTrigger), T = E(t, g.YearTrigger);
126
- return /* @__PURE__ */ e.createElement(b, {
124
+ ]), m = E(t, g.Day) ?? /* @__PURE__ */ e.createElement(g.Day, null), u = E(t, g.PreviousTrigger), C = E(t, g.NextTrigger), y = E(t, g.MonthTrigger), v = E(t, g.YearTrigger);
125
+ return /* @__PURE__ */ e.createElement(L, {
127
126
  className: r,
128
127
  containerPadding: 0
129
128
  }, /* @__PURE__ */ e.createElement(xe, {
130
- isForcedOpen: n
129
+ isForcedOpen: a
131
130
  }, /* @__PURE__ */ e.createElement(ie, {
132
- autoFocus: n ? !1 : void 0,
133
- firstDayOfWeek: He(d),
131
+ autoFocus: a ? !1 : void 0,
132
+ firstDayOfWeek: $e(d),
134
133
  isDateUnavailable: o
135
- }, /* @__PURE__ */ e.createElement("header", null, u, /* @__PURE__ */ e.createElement(me, null, (s) => h(y, {
134
+ }, /* @__PURE__ */ e.createElement("header", null, u, /* @__PURE__ */ e.createElement(me, null, (s) => T(y, {
136
135
  ariaLabel: s["aria-label"],
137
136
  selectedKey: s.value,
138
137
  onSelectionChange: s.onChange,
@@ -140,7 +139,7 @@ const Ae = [
140
139
  popoverClassName: r
141
140
  })), /* @__PURE__ */ e.createElement(ue, {
142
141
  visibleYears: 100
143
- }, (s) => h(T, {
142
+ }, (s) => T(v, {
144
143
  ariaLabel: s["aria-label"],
145
144
  selectedKey: s.value,
146
145
  onSelectionChange: s.onChange,
@@ -148,16 +147,16 @@ const Ae = [
148
147
  popoverClassName: r
149
148
  })), C), /* @__PURE__ */ e.createElement(de, {
150
149
  weekdayStyle: "short"
151
- }, (s) => h(m, {
150
+ }, (s) => T(m, {
152
151
  date: s
153
152
  })))));
154
153
  }, xe = ({ isForcedOpen: t, children: r }) => t ? /* @__PURE__ */ e.createElement("div", {
155
154
  role: "dialog"
156
155
  }, r) : /* @__PURE__ */ e.createElement(ge, null, r), we = ({ children: t, className: r, ...l }) => {
157
- const { date: n } = l;
156
+ const { date: a } = l;
158
157
  return /* @__PURE__ */ e.createElement(Ee, {
159
158
  className: r,
160
- date: n
159
+ date: a
161
160
  }, t);
162
161
  }, Ye = ({ children: t, className: r }) => /* @__PURE__ */ e.createElement(M, {
163
162
  slot: "previous",
@@ -166,14 +165,14 @@ const Ae = [
166
165
  slot: "next",
167
166
  className: r
168
167
  }, t), Ue = ({ children: t, className: r, ...l }) => {
169
- const { ariaLabel: n, selectedKey: i, onSelectionChange: c, items: d, popoverClassName: o } = l;
168
+ const { ariaLabel: a, selectedKey: i, onSelectionChange: c, items: d, popoverClassName: o } = l;
170
169
  return /* @__PURE__ */ e.createElement(x, {
171
- "aria-label": n,
170
+ "aria-label": a,
172
171
  selectedKey: i,
173
172
  onSelectionChange: c
174
173
  }, /* @__PURE__ */ e.createElement(V, {
175
174
  className: r
176
- }, /* @__PURE__ */ e.createElement(w, null), t), /* @__PURE__ */ e.createElement(b, {
175
+ }, /* @__PURE__ */ e.createElement(w, null), t), /* @__PURE__ */ e.createElement(L, {
177
176
  className: o,
178
177
  containerPadding: 0
179
178
  }, /* @__PURE__ */ e.createElement(Y, {
@@ -182,14 +181,14 @@ const Ae = [
182
181
  id: m.id
183
182
  }, m.formatted))));
184
183
  }, Ve = ({ children: t, className: r, ...l }) => {
185
- const { ariaLabel: n, selectedKey: i, onSelectionChange: c, items: d, popoverClassName: o } = l;
184
+ const { ariaLabel: a, selectedKey: i, onSelectionChange: c, items: d, popoverClassName: o } = l;
186
185
  return /* @__PURE__ */ e.createElement(x, {
187
- "aria-label": n,
186
+ "aria-label": a,
188
187
  selectedKey: i,
189
188
  onSelectionChange: c
190
189
  }, /* @__PURE__ */ e.createElement(V, {
191
190
  className: r
192
- }, /* @__PURE__ */ e.createElement(w, null), t), /* @__PURE__ */ e.createElement(b, {
191
+ }, /* @__PURE__ */ e.createElement(w, null), t), /* @__PURE__ */ e.createElement(L, {
193
192
  className: o,
194
193
  containerPadding: 0
195
194
  }, /* @__PURE__ */ e.createElement(Y, {
@@ -203,13 +202,13 @@ g.PreviousTrigger = Ye;
203
202
  g.NextTrigger = Be;
204
203
  g.MonthTrigger = Ue;
205
204
  g.YearTrigger = Ve;
206
- a.Label = ye;
207
- a.Control = Re;
208
- a.Input = ke;
209
- a.Trigger = Me;
210
- a.Calendar = g;
211
- a.Description = fe;
212
- a.Error = Ce;
205
+ n.Label = Ne;
206
+ n.Control = Re;
207
+ n.Input = ke;
208
+ n.Trigger = Me;
209
+ n.Calendar = g;
210
+ n.Description = ve;
211
+ n.Error = _e;
213
212
  function We(t) {
214
213
  if (!t)
215
214
  return null;
@@ -222,22 +221,22 @@ function We(t) {
222
221
  function Ke(t) {
223
222
  if (!t)
224
223
  return null;
225
- const r = String(t.year).padStart(4, "0"), l = String(t.month).padStart(2, "0"), n = String(t.day).padStart(2, "0");
226
- return `${r}-${l}-${n}`;
224
+ const r = String(t.year).padStart(4, "0"), l = String(t.month).padStart(2, "0"), a = String(t.day).padStart(2, "0");
225
+ return `${r}-${l}-${a}`;
227
226
  }
228
- function $e(t) {
227
+ function He(t) {
229
228
  var r;
230
229
  try {
231
230
  return ((r = new Intl.DateTimeFormat(t, {
232
231
  year: "numeric",
233
232
  month: "2-digit",
234
233
  day: "2-digit"
235
- }).formatToParts(/* @__PURE__ */ new Date()).find((n) => n.type !== "literal")) == null ? void 0 : r.type) ?? "month";
234
+ }).formatToParts(/* @__PURE__ */ new Date()).find((a) => a.type !== "literal")) == null ? void 0 : r.type) ?? "month";
236
235
  } catch {
237
236
  return "month";
238
237
  }
239
238
  }
240
- function He(t) {
239
+ function $e(t) {
241
240
  return [
242
241
  "sun",
243
242
  "mon",
@@ -261,51 +260,51 @@ const qe = (t) => /* @__PURE__ */ e.createElement("svg", {
261
260
  strokeWidth: "1.5",
262
261
  strokeLinecap: "round",
263
262
  strokeLinejoin: "round"
264
- })), Ge = "_control_1vunt_1", je = "_segments_1vunt_14", Je = "_trigger_1vunt_65", Qe = "_calendarPopover_1vunt_96", Ze = "_calendarDay_1vunt_242", S = {
263
+ })), Ge = "_control_1vunt_1", je = "_segments_1vunt_14", Ze = "_trigger_1vunt_65", Qe = "_calendarPopover_1vunt_96", ze = "_calendarDay_1vunt_242", S = {
265
264
  control: Ge,
266
265
  segments: je,
267
- trigger: Je,
266
+ trigger: Ze,
268
267
  calendarPopover: Qe,
269
- calendarDay: Ze
270
- }, ze = ({ content: t, locale: r }) => /* @__PURE__ */ e.createElement(X, {
268
+ calendarDay: ze
269
+ }, Je = ({ content: t, locale: r }) => /* @__PURE__ */ e.createElement(X, {
271
270
  content: t,
272
271
  locale: r
273
272
  }), Xe = {
274
273
  left: 90,
275
274
  right: -90
276
- }, R = ({ direction: t }) => /* @__PURE__ */ e.createElement(F, {
275
+ }, R = ({ direction: t }) => /* @__PURE__ */ e.createElement(I, {
277
276
  style: {
278
277
  transform: `rotate(${Xe[t]}deg)`
279
278
  }
280
- }), yt = () => /* @__PURE__ */ e.createElement(a, null, /* @__PURE__ */ e.createElement(a.Label, {
281
- className: D(Ne, p.label)
282
- }, /* @__PURE__ */ e.createElement(a.Label.Required, {
283
- className: D(Ie, p.requiredMark)
284
- })), /* @__PURE__ */ e.createElement(a.Control, {
285
- className: D(Fe, p.input, S.control)
286
- }, /* @__PURE__ */ e.createElement(a.Trigger, {
279
+ }), Ct = () => /* @__PURE__ */ e.createElement(n, null, /* @__PURE__ */ e.createElement(n.Label, {
280
+ className: D(De, p.label)
281
+ }, /* @__PURE__ */ e.createElement(n.Label.Required, {
282
+ className: D(fe, p.requiredMark)
283
+ })), /* @__PURE__ */ e.createElement(n.Control, {
284
+ className: D(Ce, p.input, S.control)
285
+ }, /* @__PURE__ */ e.createElement(n.Trigger, {
287
286
  className: S.trigger
288
- }, /* @__PURE__ */ e.createElement(qe, null)), /* @__PURE__ */ e.createElement(a.Input, {
287
+ }, /* @__PURE__ */ e.createElement(qe, null)), /* @__PURE__ */ e.createElement(n.Input, {
289
288
  className: S.segments
290
- })), /* @__PURE__ */ e.createElement(a.Calendar, {
291
- className: D(Le, p.selectPopover, S.calendarPopover)
292
- }, /* @__PURE__ */ e.createElement(a.Calendar.PreviousTrigger, null, /* @__PURE__ */ e.createElement(R, {
289
+ })), /* @__PURE__ */ e.createElement(n.Calendar, {
290
+ className: D(ye, p.selectPopover, S.calendarPopover)
291
+ }, /* @__PURE__ */ e.createElement(n.Calendar.PreviousTrigger, null, /* @__PURE__ */ e.createElement(R, {
293
292
  direction: "left"
294
- })), /* @__PURE__ */ e.createElement(a.Calendar.MonthTrigger, null, /* @__PURE__ */ e.createElement(F, {
293
+ })), /* @__PURE__ */ e.createElement(n.Calendar.MonthTrigger, null, /* @__PURE__ */ e.createElement(I, {
295
294
  className: p.dropdownIcon
296
- })), /* @__PURE__ */ e.createElement(a.Calendar.YearTrigger, null, /* @__PURE__ */ e.createElement(F, {
295
+ })), /* @__PURE__ */ e.createElement(n.Calendar.YearTrigger, null, /* @__PURE__ */ e.createElement(I, {
297
296
  className: p.dropdownIcon
298
- })), /* @__PURE__ */ e.createElement(a.Calendar.NextTrigger, null, /* @__PURE__ */ e.createElement(R, {
297
+ })), /* @__PURE__ */ e.createElement(n.Calendar.NextTrigger, null, /* @__PURE__ */ e.createElement(R, {
299
298
  direction: "right"
300
- })), /* @__PURE__ */ e.createElement(a.Calendar.Day, {
301
- className: D(_e, P.day, S.calendarDay)
299
+ })), /* @__PURE__ */ e.createElement(n.Calendar.Day, {
300
+ className: D(Oe, P.day, S.calendarDay)
302
301
  }, ({ formattedDate: t }) => /* @__PURE__ */ e.createElement("span", {
303
302
  className: P.dayNumber
304
- }, t))), /* @__PURE__ */ e.createElement(a.Error, {
305
- className: D(be, p.error)
306
- }, /* @__PURE__ */ e.createElement(Te, null), /* @__PURE__ */ e.createElement(a.Error.Text, null)), /* @__PURE__ */ e.createElement(a.Description, {
307
- className: D(Oe, p.description)
308
- }, ze));
303
+ }, t))), /* @__PURE__ */ e.createElement(n.Error, {
304
+ className: D(Se, p.error)
305
+ }, /* @__PURE__ */ e.createElement(Le, null), /* @__PURE__ */ e.createElement(n.Error.Text, null)), /* @__PURE__ */ e.createElement(n.Description, {
306
+ className: D(Te, p.description)
307
+ }, Je));
309
308
  export {
310
- yt as D
309
+ Ct as D
311
310
  };
@@ -1,5 +1,5 @@
1
1
  import e from "react";
2
- import { D as r } from "./date-picker-field-rac-Bzl-d3Uj.js";
2
+ import { D as r } from "./date-picker-field-rac-CRZVODfF.js";
3
3
  const a = () => /* @__PURE__ */ e.createElement(r, null);
4
4
  export {
5
5
  a as DatePickerRAC