@wix/form-elements 1.160.0 → 1.161.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 (108) hide show
  1. package/dist/component/{appointment-rac-BmHu56e5.js → appointment-rac-BubC8I9X.js} +395 -388
  2. package/dist/component/{bookings-address-rac-DY9l2g0h.js → bookings-address-rac-BbwvVs86.js} +1 -1
  3. package/dist/component/{bookings-email-rac-B5vNSOsS.js → bookings-email-rac-C2HCkcfa.js} +1 -1
  4. package/dist/component/{bookings-first-name-rac-CJiefCNz.js → bookings-first-name-rac-Uy7c5EBs.js} +1 -1
  5. package/dist/component/{bookings-header-rac-BFu7Ko5w.js → bookings-header-rac-nmwsWRjS.js} +1 -1
  6. package/dist/component/{bookings-last-name-rac-DegMM13h.js → bookings-last-name-rac-BAioQLCg.js} +1 -1
  7. package/dist/component/{bookings-login-bar-rac-DrA-5tBH.js → bookings-login-bar-rac-CO6vOBjG.js} +7 -7
  8. package/dist/component/{bookings-phone-rac-DsaeqxCI.js → bookings-phone-rac-Cr16h-_R.js} +1 -1
  9. package/dist/component/{bookings-rich-text-rac-jRHiwqi8.js → bookings-rich-text-rac-CHLH3jd7.js} +1 -1
  10. package/dist/component/{checkbox-field-rac-CyoBb6Yf.js → checkbox-field-rac-CMwmwFMD.js} +43 -43
  11. package/dist/component/{checkbox-group-field-headless-Bv1gU3oL.js → checkbox-group-field-headless-BNs_S-nT.js} +24 -24
  12. package/dist/component/{checkbox-group-field-rac-DasArcdV.js → checkbox-group-field-rac-BA60EPAN.js} +12 -12
  13. package/dist/component/{checkbox-group-rac-CzmufV1U.js → checkbox-group-rac-BJZ4Oer9.js} +1 -1
  14. package/dist/component/{checkbox-rac-6C7XoUoZ.js → checkbox-rac-KsVlI6_V.js} +1 -1
  15. package/dist/component/{contacts-address-rac-BZobbFtz.js → contacts-address-rac-CRYkz87z.js} +1 -1
  16. package/dist/component/{contacts-birthdate-rac-DIzf41DS.js → contacts-birthdate-rac-BIz-1-ZX.js} +1 -1
  17. package/dist/component/{contacts-company-rac-BiBDO28r.js → contacts-company-rac-B8G__j6I.js} +1 -1
  18. package/dist/component/{contacts-email-rac-5mqokCSD.js → contacts-email-rac-Dztkvp5i.js} +1 -1
  19. package/dist/component/{contacts-first-name-rac-BXe3_Nz5.js → contacts-first-name-rac-CVSEWpLU.js} +1 -1
  20. package/dist/component/{contacts-last-name-rac-Cfqgh7u1.js → contacts-last-name-rac-Blz4M5bk.js} +1 -1
  21. package/dist/component/{contacts-phone-rac-cmLUWnAc.js → contacts-phone-rac-CPCE5soY.js} +1 -1
  22. package/dist/component/{contacts-position-rac-DTyvklfN.js → contacts-position-rac-Dd_kBjqG.js} +1 -1
  23. package/dist/component/{contacts-subscribe-rac-D-ZEX1A3.js → contacts-subscribe-rac-C6AlsP10.js} +1 -1
  24. package/dist/component/{contacts-tax-id-rac-B4NYJwWt.js → contacts-tax-id-rac-CQ1n29zI.js} +1 -1
  25. package/dist/component/{date-availability-Dach9aRC.js → date-availability-DDj1j0z5.js} +1 -1
  26. package/dist/component/{date-input-field-rac-B72mHcya.js → date-input-field-rac-D5r1n_ah.js} +59 -59
  27. package/dist/component/{date-input-rac-CYix11gT.js → date-input-rac-Cyi5mU_P.js} +1 -1
  28. package/dist/component/{date-picker-field-rac-B8pvtPir.js → date-picker-field-rac-CeG391Zo.js} +34 -34
  29. package/dist/component/{date-picker-rac-D6cR0zH9.js → date-picker-rac-Ci9aHgav.js} +1 -1
  30. package/dist/component/{date-time-input-field-rac-B7Y3Yf5l.js → date-time-input-field-rac-CrbYEbJJ.js} +89 -89
  31. package/dist/component/{date-time-input-rac-DMN-noQX.js → date-time-input-rac-DDJLkqs0.js} +1 -1
  32. package/dist/component/{dext-checkbox-group-rac-Kq0GnteP.js → dext-checkbox-group-rac-C3ftVHBA.js} +4 -4
  33. package/dist/component/{dext-checkbox-rac-BY9GZ4n1.js → dext-checkbox-rac-BGLYWn68.js} +1 -1
  34. package/dist/component/{dext-date-picker-rac-CXArIddp.js → dext-date-picker-rac-Cy9RlDlt.js} +1 -1
  35. package/dist/component/{dext-date-time-input-rac-B39TtxGq.js → dext-date-time-input-rac-88ZoTd5e.js} +1 -1
  36. package/dist/component/{dext-dropdown-rac-C3y0G8cS.js → dext-dropdown-rac-CPxDUuk9.js} +1 -1
  37. package/dist/component/{dext-email-rac-BIg3cq7Q.js → dext-email-rac-BAvQwDPA.js} +1 -1
  38. package/dist/component/{dext-number-input-rac-27sHJ7yN.js → dext-number-input-rac-D7HYQVKq.js} +1 -1
  39. package/dist/component/{dext-phone-rac-CcohoFQp.js → dext-phone-rac--FhcplSI.js} +1 -1
  40. package/dist/component/{dext-radio-group-rac-eead3Gve.js → dext-radio-group-rac-DBz8iCKW.js} +2 -2
  41. package/dist/component/{dext-rating-input-rac-B_E6OcBr.js → dext-rating-input-rac-Cv7nThfe.js} +1 -1
  42. package/dist/component/{dext-tags-rac-Yd9aAtnF.js → dext-tags-rac-CRUUc5dr.js} +2 -2
  43. package/dist/component/{dext-text-area-rac-CMACri2C.js → dext-text-area-rac-DQBQXV1L.js} +1 -1
  44. package/dist/component/{dext-text-input-rac-sNjSCfQ-.js → dext-text-input-rac-4CpM581y.js} +1 -1
  45. package/dist/component/{dext-url-input-rac-DwhbzJty.js → dext-url-input-rac-0C1jTEr9.js} +1 -1
  46. package/dist/component/{donation-rac-BVAN3kMk.js → donation-rac-Cgt0ZE50.js} +68 -68
  47. package/dist/component/{dropdown-field-rac-DdoGigWx.js → dropdown-field-rac-DlGKR7pZ.js} +3 -3
  48. package/dist/component/{dropdown-rac-CRkt5w47.js → dropdown-rac-CYFW_3x_.js} +1 -1
  49. package/dist/component/{ecom-address-rac-C36hFHW0.js → ecom-address-rac-CQfQHpXC.js} +1 -1
  50. package/dist/component/{ecom-subscription-checkbox-rac-BKfQ348w.js → ecom-subscription-checkbox-rac-D2v2Upvz.js} +2 -2
  51. package/dist/component/{email-input-field-rac-MOaISYxa.js → email-input-field-rac-CVw25yRo.js} +45 -45
  52. package/dist/component/{events-repeater-rac-D6p-NgE8.js → events-repeater-rac-BCVUcmFj.js} +22 -22
  53. package/dist/component/{events-rsvp-rac-DVpgN8gm.js → events-rsvp-rac-DwbqEr8z.js} +3 -3
  54. package/dist/component/{field-error-headless-XNWmDH3E.js → field-error-headless-XnVcMmsL.js} +3 -3
  55. package/dist/component/{field-label-headless-CORRAJGt.js → field-label-headless-BRTLT2Yt.js} +14 -14
  56. package/dist/component/{file-upload-rac-DRMr7E4b.js → file-upload-rac-Dkwg9Jk4.js} +115 -115
  57. package/dist/component/{fixed-payment-rac-BUXzNex9.js → fixed-payment-rac-ST98xAa2.js} +20 -20
  58. package/dist/component/{form-DSpx-AO8.js → form-BUqSKOvc.js} +235 -234
  59. package/dist/component/form.js +1 -1
  60. package/dist/component/{header-field-rac-CiDXlNsa.js → header-field-rac-CzNTGYWq.js} +5 -5
  61. package/dist/component/{header-rac-B5Rg-h8u.js → header-rac-DUt6AIAE.js} +1 -1
  62. package/dist/component/{image-choice-rac-CtoA_KDp.js → image-choice-rac-DuBgrSt2.js} +21 -21
  63. package/dist/component/{index-Bz7ZhQsF.js → index-CDO22hht.js} +106 -106
  64. package/dist/component/{index-CwruESwc.js → index-cZZeAuuu.js} +5 -5
  65. package/dist/component/{isObjectLike-C5dHxHP0.js → isObjectLike-cs4bARpC.js} +3 -3
  66. package/dist/component/{multiline-address-field-rac-Z-qF366L.js → multiline-address-field-rac-vcEWhUCV.js} +73 -73
  67. package/dist/component/{multiline-address-rac-CJIHTMw5.js → multiline-address-rac-WQaI2eUX.js} +1 -1
  68. package/dist/component/{number-input-field-rac-D4vf6I6N.js → number-input-field-rac-CBUMqATk.js} +26 -26
  69. package/dist/component/{number-input-rac-B2jW6JUQ.js → number-input-rac-B4j5hyzS.js} +1 -1
  70. package/dist/component/{password-rac-DGRZ17Jl.js → password-rac-DwLyf45N.js} +28 -28
  71. package/dist/component/{payment-input-rac-BtD-tAKv.js → payment-input-rac-D0Od---y.js} +28 -28
  72. package/dist/component/{phone-input-field-rac-KD4-APhr.js → phone-input-field-rac-COlu9IeC.js} +64 -64
  73. package/dist/component/{phone-rac-Cw2yccgg.js → phone-rac-Dh4RacOF.js} +1 -1
  74. package/dist/component/{product-list-rac-XbzTDdbp.js → product-list-rac-D7zHDE2D.js} +47 -47
  75. package/dist/component/{quiz-radio-group-rac-BDw_mAw5.js → quiz-radio-group-rac-1AaKphJt.js} +1 -1
  76. package/dist/component/{radio-button-module-classes-CFGf0Hzh.js → radio-button-module-classes-VqaP6vpA.js} +29 -29
  77. package/dist/component/{radio-group-field-rac-CXN7tyVu.js → radio-group-field-rac-Cp3LRN3C.js} +6 -6
  78. package/dist/component/{radio-group-rac-COHzqjBh.js → radio-group-rac-KhmhzYGf.js} +1 -1
  79. package/dist/component/{rating-input-field-rac-DCXNZgf1.js → rating-input-field-rac-10n6ciCr.js} +22 -22
  80. package/dist/component/{rating-input-rac-DwQt9ML7.js → rating-input-rac-XZjjY2Gp.js} +1 -1
  81. package/dist/component/{rich-content-rac.module-B7rPwNns.js → rich-content-rac.module-kMwDoLBa.js} +1 -1
  82. package/dist/component/{rich-text-field-rac-DlER7NRD.js → rich-text-field-rac-H5bd8fAt.js} +6 -6
  83. package/dist/component/{rich-text-rac-CjicsHA7.js → rich-text-rac-88GSQR62.js} +1 -1
  84. package/dist/component/{service-dropdown-rac-B81LC_6_.js → service-dropdown-rac-B1_Xr_X3.js} +31 -31
  85. package/dist/component/{services-multi-choice-rac-BR6gZeHk.js → services-multi-choice-rac-DWp_Llbi.js} +17 -17
  86. package/dist/component/{signature-rac-XFj7Ddtp.js → signature-rac-zN_6KRDp.js} +44 -44
  87. package/dist/component/{submit-button-rac-Bz7zs_3W.js → submit-button-rac-Dv6UarYX.js} +2 -2
  88. package/dist/component/{tags-field-rac-DWWkNKqc.js → tags-field-rac-sVN6MHfJ.js} +38 -38
  89. package/dist/component/{tags-rac-BXyiQ9i1.js → tags-rac-DhTHs_XN.js} +1 -1
  90. package/dist/component/{text-area-field-rac-DsIRYi0d.js → text-area-field-rac-DrWkww7W.js} +21 -21
  91. package/dist/component/{text-area-rac-CF9pDP9d.js → text-area-rac-CXXh-ZdY.js} +1 -1
  92. package/dist/component/{text-input-field-rac-BwIDZACz.js → text-input-field-rac-C2YiMr-g.js} +3 -3
  93. package/dist/component/{text-input-headless-5kQs2_Xu.js → text-input-headless-BJMNbsMY.js} +12 -12
  94. package/dist/component/{text-input-rac-CRmSuw1k.js → text-input-rac-CpsPh7FH.js} +1 -1
  95. package/dist/component/{time-input-rac-BRMNpe51.js → time-input-rac-DG_1KxS4.js} +23 -23
  96. package/dist/component/{url-input-field-rac-CKLS3QDk.js → url-input-field-rac-twxRREnl.js} +26 -26
  97. package/dist/component/{url-input-rac-Dv-kp50D.js → url-input-rac-BTStO0NP.js} +1 -1
  98. package/dist/component/{use-dropdown-option-class-name-BQi_qE_-.js → use-dropdown-option-class-name-DbMMg1ws.js} +2 -2
  99. package/dist/component/{use-dropdown-trigger-class-name-bAK8aHiG.js → use-dropdown-trigger-class-name-Yes4kC_0.js} +17 -17
  100. package/dist/component/{use-element-state-class-name-rXM_lHug.js → use-element-state-class-name-DlncY4hk.js} +1 -1
  101. package/dist/component/{use-hoverable-input-class-name-BnV_uerV.js → use-hoverable-input-class-name-C__zqP5j.js} +2 -2
  102. package/dist/component/use-is-forced-open-dropdown-DnK_MQRO.js +53 -0
  103. package/dist/component/{use-service-options-base-CLeE9-Tx.js → use-service-options-base-DKJe52Vk.js} +6 -6
  104. package/dist/component/use-text-input-class-name-D9tJTR-b.js +6 -0
  105. package/dist/form.d.ts +3 -0
  106. package/package.json +2 -2
  107. package/dist/component/use-is-forced-open-dropdown-Bp-5Xpmw.js +0 -53
  108. package/dist/component/use-text-input-class-name-DIKWvfkm.js +0 -6
@@ -1,28 +1,28 @@
1
1
  import { RicosViewer as ne } from "@wix/ricos/viewer";
2
2
  import D from "classnames";
3
- import t, { useMemo as L, useState as z, useCallback as H, useRef as w } from "react";
3
+ import t, { useMemo as y, useState as $, useCallback as H, useRef as w } from "react";
4
4
  import { UNSAFE_PortalProvider as re } from "react-aria";
5
- import { ListBoxItem as oe, Select as se, TextField as q, SelectValue as le, Input as W } from "react-aria-components";
6
- import { bz as I, bw as J, br as B, b4 as K, bh as Q, aT as o, bJ as R, a_ as ce, b5 as ie, bo as me, bB as V, t as de, V as ue, ab as pe, v, I as Ee, L as be, z as fe, u as De, w as $ } from "./form-DSpx-AO8.js";
7
- import { f as p, a as U } from "./find-child-C60k4CxG.js";
5
+ import { ListBoxItem as oe, Select as se, TextField as z, SelectValue as le, Input as W } from "react-aria-components";
6
+ import { bA as I, bx as K, bs as U, b5 as G, bi as J, aU as o, bK as R, a$ as ce, b6 as ie, bp as me, bC as B, u as de, W as ue, ac as pe, w as v, J as Ee, M as be, G as fe, v as De, x as q } from "./form-BUqSKOvc.js";
7
+ import { f as p, a as V } from "./find-child-C60k4CxG.js";
8
8
  import { g as _e } from "./helpers-HmkkXrh2.js";
9
- import { D as Ie, E as Oe } from "./field-error-headless-XNWmDH3E.js";
10
- import { L as he } from "./field-label-headless-CORRAJGt.js";
9
+ import { D as Ie, E as Oe } from "./field-error-headless-XnVcMmsL.js";
10
+ import { L as he } from "./field-label-headless-BRTLT2Yt.js";
11
11
  import { F as Ne } from "./fieldset-headless-CD3fds9J.js";
12
- import { N as Le, E as ye, S as ge } from "./non-modal-popover-D-u13tmp.js";
13
- import { a as Ce } from "./use-is-forced-open-dropdown-Bp-5Xpmw.js";
14
- import { V as Fe, u as Te } from "./use-dropdown-option-class-name-BQi_qE_-.js";
15
- import { C as Ae } from "./chevron-down-icon-CcpVm6B-.js";
12
+ import { N as ye, E as Le, S as ge } from "./non-modal-popover-D-u13tmp.js";
13
+ import { a as Ce } from "./use-is-forced-open-dropdown-DnK_MQRO.js";
14
+ import { V as Fe, u as Ae } from "./use-dropdown-option-class-name-DbMMg1ws.js";
15
+ import { C as Te } from "./chevron-down-icon-CcpVm6B-.js";
16
16
  import { E as Re } from "./error-icon-hZxQ6DEy.js";
17
17
  import { H as Me } from "./custom-focus-class-_483Pkwp.js";
18
18
  import { s as b } from "./field-rac.module-DP0lkkEv.js";
19
- import { u as Y } from "./use-hoverable-input-class-name-BnV_uerV.js";
19
+ import { u as Y } from "./use-hoverable-input-class-name-C__zqP5j.js";
20
20
  const Pe = {
21
21
  [o.MONTH]: "bday-month",
22
22
  [o.DAY]: "bday-day",
23
23
  [o.YEAR]: "bday-year"
24
24
  }, x = (e, a) => e === "bday" ? Pe[a] : void 0, n = ({ children: e, className: a }) => {
25
- const { id: r, required: s, onBlur: l, onFocus: c, FieldLayout: m } = I(), { inputId: i, labelId: d, ariaDescribedBy: u } = J(), { regionalFormat: E } = B(), f = L(() => K(E).filter(Q).map((S) => S.toUpperCase()), [
25
+ const { id: r, required: s, onBlur: l, onFocus: c, FieldLayout: m } = I(), { inputId: i, labelId: d, ariaDescribedBy: u } = K(), { regionalFormat: E } = U(), f = y(() => G(E).filter(J).map((S) => S.toUpperCase()), [
26
26
  E
27
27
  ]), g = p(e, n.Label), M = p(e, n.Description), P = p(e, n.Error), O = {
28
28
  [o.MONTH]: p(e, n.Month),
@@ -31,7 +31,7 @@ const Pe = {
31
31
  };
32
32
  return /* @__PURE__ */ t.createElement(m, {
33
33
  fieldId: r,
34
- renderLabel: () => U(g, {
34
+ renderLabel: () => V(g, {
35
35
  as: "div"
36
36
  }),
37
37
  renderInput: () => /* @__PURE__ */ t.createElement(Ne, {
@@ -46,13 +46,13 @@ const Pe = {
46
46
  renderDescription: () => /* @__PURE__ */ t.createElement(t.Fragment, null, P, M)
47
47
  });
48
48
  }, h = ({ children: e, className: a }) => {
49
- const { id: r, disabled: s, readOnly: l, showDateLabels: c, hidePlaceholder: m, autoComplete: i } = I(), { labelId: d } = N(o.MONTH), { partValue: u, partError: E, onPartChange: f } = y(o.MONTH), { t: g } = R(), [M, P] = z(!1), O = Ce(r), [S, X] = z(null), j = m ? ye : g("field.date.placeholder.month"), G = H((T) => {
50
- l || f(typeof T == "string" ? T : "");
49
+ const { id: r, disabled: s, readOnly: l, showDateLabels: c, hidePlaceholder: m, autoComplete: i } = I(), { labelId: d } = N(o.MONTH), { partValue: u, partError: E, onPartChange: f } = L(o.MONTH), { t: g } = R(), [M, P] = $(!1), O = Ce(r), [S, Q] = $(null), X = m ? Le : g("field.date.placeholder.month"), j = H((A) => {
50
+ l || f(typeof A == "string" ? A : "");
51
51
  }, [
52
52
  f,
53
53
  l
54
- ]), Z = H((T) => {
55
- P(T && !l);
54
+ ]), Z = H((A) => {
55
+ P(A && !l);
56
56
  }, [
57
57
  l
58
58
  ]), ee = p(e, h.Label), te = p(e, h.Trigger), ae = p(e, h.Options);
@@ -60,7 +60,7 @@ const Pe = {
60
60
  className: a,
61
61
  "data-date-field": !0
62
62
  }, c ? ee : null, /* @__PURE__ */ t.createElement("div", {
63
- ref: X,
63
+ ref: Q,
64
64
  style: {
65
65
  display: "contents"
66
66
  }
@@ -70,21 +70,21 @@ const Pe = {
70
70
  autoComplete: x(i, o.MONTH),
71
71
  "aria-labelledby": c ? d : void 0,
72
72
  value: u || null,
73
- onChange: G,
73
+ onChange: j,
74
74
  isDisabled: s,
75
75
  isInvalid: E,
76
- placeholder: j,
76
+ placeholder: X,
77
77
  isOpen: O || M,
78
78
  onOpenChange: O ? void 0 : Z
79
- }, te, U(ae, {
79
+ }, te, V(ae, {
80
80
  isForcedOpen: O
81
81
  }))));
82
82
  }, Se = ({ className: e }) => /* @__PURE__ */ t.createElement(k, {
83
83
  datePart: o.MONTH,
84
84
  className: e
85
85
  }), ve = ({ children: e, className: a }) => {
86
- const { id: r, readOnly: s } = I(), { inputId: l } = N(o.MONTH), { partError: c, isFirstPart: m } = y(o.MONTH), i = w(null);
87
- return V(() => {
86
+ const { id: r, readOnly: s } = I(), { inputId: l } = N(o.MONTH), { partError: c, isFirstPart: m } = L(o.MONTH), i = w(null);
87
+ return B(() => {
88
88
  var d;
89
89
  m && ((d = i.current) == null || d.focus({
90
90
  preventScroll: !0
@@ -97,18 +97,18 @@ const Pe = {
97
97
  "data-invalid": c || void 0,
98
98
  "data-readonly": s || void 0
99
99
  }, /* @__PURE__ */ t.createElement(le, null), e);
100
- }, A = ({ children: e, className: a, ...r }) => {
101
- const { isForcedOpen: s } = r, { language: l } = B(), c = L(() => _e(l), [
100
+ }, T = ({ children: e, className: a, ...r }) => {
101
+ const { isForcedOpen: s } = r, { language: l } = U(), c = y(() => _e(l), [
102
102
  l
103
- ]), m = p(e, A.Option) ?? /* @__PURE__ */ t.createElement(A.Option, null);
104
- return /* @__PURE__ */ t.createElement(Le, {
103
+ ]), m = p(e, T.Option) ?? /* @__PURE__ */ t.createElement(T.Option, null);
104
+ return /* @__PURE__ */ t.createElement(ye, {
105
105
  className: a,
106
106
  containerPadding: 0,
107
107
  offset: 0
108
108
  }, /* @__PURE__ */ t.createElement(Fe, {
109
109
  isForcedOpen: s,
110
110
  autoFocus: s ? !1 : void 0
111
- }, c.map((i, d) => U(m, {
111
+ }, c.map((i, d) => V(m, {
112
112
  key: String(d + 1),
113
113
  value: String(d + 1),
114
114
  label: i
@@ -123,14 +123,14 @@ const Pe = {
123
123
  };
124
124
  h.Label = Se;
125
125
  h.Trigger = ve;
126
- h.Options = A;
127
- A.Option = Ye;
126
+ h.Options = T;
127
+ T.Option = Ye;
128
128
  const C = ({ children: e, className: a }) => {
129
- const { disabled: r, readOnly: s, showDateLabels: l } = I(), { labelId: c } = N(o.DAY), { partValue: m, partError: i, onPartChange: d } = y(o.DAY), u = p(e, C.Label), E = p(e, C.Input);
129
+ const { disabled: r, readOnly: s, showDateLabels: l } = I(), { labelId: c } = N(o.DAY), { partValue: m, partError: i, onPartChange: d } = L(o.DAY), u = p(e, C.Label), E = p(e, C.Input);
130
130
  return /* @__PURE__ */ t.createElement("div", {
131
131
  className: a,
132
132
  "data-date-field": !0
133
- }, l && u, /* @__PURE__ */ t.createElement(q, {
133
+ }, l && u, /* @__PURE__ */ t.createElement(z, {
134
134
  "aria-labelledby": l ? c : void 0,
135
135
  value: m,
136
136
  onChange: d,
@@ -142,8 +142,8 @@ const C = ({ children: e, className: a }) => {
142
142
  datePart: o.DAY,
143
143
  className: e
144
144
  }), we = ({ className: e }) => {
145
- const { id: a, hidePlaceholder: r, autoComplete: s } = I(), { inputId: l } = N(o.DAY), { isFirstPart: c } = y(o.DAY), { t: m } = R(), i = w(null), d = r ? void 0 : m("field.date.placeholder.day");
146
- return V(() => {
145
+ const { id: a, hidePlaceholder: r, autoComplete: s } = I(), { inputId: l } = N(o.DAY), { isFirstPart: c } = L(o.DAY), { t: m } = R(), i = w(null), d = r ? void 0 : m("field.date.placeholder.day");
146
+ return B(() => {
147
147
  var u;
148
148
  c && ((u = i.current) == null || u.focus({
149
149
  preventScroll: !0
@@ -162,11 +162,11 @@ const C = ({ children: e, className: a }) => {
162
162
  C.Label = He;
163
163
  C.Input = we;
164
164
  const F = ({ children: e, className: a }) => {
165
- const { disabled: r, readOnly: s, showDateLabels: l } = I(), { labelId: c } = N(o.YEAR), { partValue: m, partError: i, onPartChange: d } = y(o.YEAR), u = p(e, F.Label), E = p(e, F.Input);
165
+ const { disabled: r, readOnly: s, showDateLabels: l } = I(), { labelId: c } = N(o.YEAR), { partValue: m, partError: i, onPartChange: d } = L(o.YEAR), u = p(e, F.Label), E = p(e, F.Input);
166
166
  return /* @__PURE__ */ t.createElement("div", {
167
167
  className: a,
168
168
  "data-date-field": !0
169
- }, l && u, /* @__PURE__ */ t.createElement(q, {
169
+ }, l && u, /* @__PURE__ */ t.createElement(z, {
170
170
  "aria-labelledby": l ? c : void 0,
171
171
  value: m,
172
172
  onChange: d,
@@ -174,12 +174,12 @@ const F = ({ children: e, className: a }) => {
174
174
  isReadOnly: s,
175
175
  isInvalid: i
176
176
  }, E));
177
- }, Be = ({ className: e }) => /* @__PURE__ */ t.createElement(k, {
177
+ }, Ue = ({ className: e }) => /* @__PURE__ */ t.createElement(k, {
178
178
  datePart: o.YEAR,
179
179
  className: e
180
- }), Ve = ({ className: e }) => {
181
- const { id: a, hidePlaceholder: r, autoComplete: s } = I(), { inputId: l } = N(o.YEAR), { isFirstPart: c } = y(o.YEAR), { t: m } = R(), i = w(null), d = r ? void 0 : m("field.date.placeholder.year");
182
- return V(() => {
180
+ }), Be = ({ className: e }) => {
181
+ const { id: a, hidePlaceholder: r, autoComplete: s } = I(), { inputId: l } = N(o.YEAR), { isFirstPart: c } = L(o.YEAR), { t: m } = R(), i = w(null), d = r ? void 0 : m("field.date.placeholder.year");
182
+ return B(() => {
183
183
  var u;
184
184
  c && ((u = i.current) == null || u.focus({
185
185
  preventScroll: !0
@@ -195,8 +195,8 @@ const F = ({ children: e, className: a }) => {
195
195
  "data-hook": o.YEAR
196
196
  });
197
197
  };
198
- F.Label = Be;
199
- F.Input = Ve;
198
+ F.Label = Ue;
199
+ F.Input = Be;
200
200
  n.Label = he;
201
201
  n.Month = h;
202
202
  n.Day = C;
@@ -204,8 +204,8 @@ n.Year = F;
204
204
  n.Description = Ie;
205
205
  n.Error = Oe;
206
206
  function N(e) {
207
- const { inputId: a } = J();
208
- return L(() => {
207
+ const { inputId: a } = K();
208
+ return y(() => {
209
209
  const r = e.toLowerCase();
210
210
  return {
211
211
  inputId: `${a}-${r}-input`,
@@ -216,10 +216,10 @@ function N(e) {
216
216
  e
217
217
  ]);
218
218
  }
219
- function y(e) {
220
- const { value: a, onChange: r, hasError: s = !1 } = I(), { regionalFormat: l } = B(), c = L(() => ce(a ?? ""), [
219
+ function L(e) {
220
+ const { value: a, onChange: r, hasError: s = !1 } = I(), { regionalFormat: l } = U(), c = y(() => ce(a ?? ""), [
221
221
  a
222
- ]), m = L(() => ie(s, a ?? ""), [
222
+ ]), m = y(() => ie(s, a ?? ""), [
223
223
  a,
224
224
  s
225
225
  ]), i = c[e] || "", d = H((E) => {
@@ -229,7 +229,7 @@ function y(e) {
229
229
  r,
230
230
  c,
231
231
  e
232
- ]), u = L(() => K(l).filter(Q).map((g) => g.toUpperCase())[0] === e, [
232
+ ]), u = y(() => G(l).filter(J).map((g) => g.toUpperCase())[0] === e, [
233
233
  l,
234
234
  e
235
235
  ]);
@@ -248,24 +248,24 @@ function k({ datePart: e, className: a }) {
248
248
  className: a
249
249
  }, m);
250
250
  }
251
- const Ue = "_fields_1mv4t_1", xe = "_month_1mv4t_10", ke = "_day_1mv4t_11", ze = "_year_1mv4t_12", $e = "_dayInput_1mv4t_28", qe = "_yearInput_1mv4t_29", We = "_monthTrigger_1mv4t_33", Je = "_monthOption_1mv4t_53", _ = {
252
- fields: Ue,
251
+ const Ve = "_fields_1mv4t_1", xe = "_month_1mv4t_10", ke = "_day_1mv4t_11", $e = "_year_1mv4t_12", qe = "_dayInput_1mv4t_28", ze = "_yearInput_1mv4t_29", We = "_monthTrigger_1mv4t_33", Ke = "_monthOption_1mv4t_53", _ = {
252
+ fields: Ve,
253
253
  month: xe,
254
254
  day: ke,
255
- year: ze,
256
- dayInput: $e,
257
- yearInput: qe,
255
+ year: $e,
256
+ dayInput: qe,
257
+ yearInput: ze,
258
258
  monthTrigger: We,
259
- monthOption: Je
260
- }, Ke = ({ content: e, locale: a }) => /* @__PURE__ */ t.createElement(ne, {
259
+ monthOption: Ke
260
+ }, Ge = ({ content: e, locale: a }) => /* @__PURE__ */ t.createElement(ne, {
261
261
  content: e,
262
262
  locale: a
263
263
  }), Et = () => {
264
264
  const e = Y(De, [
265
265
  _.monthTrigger
266
- ]), a = Te(_.monthOption, Me), r = Y($, [
266
+ ]), a = Ae(_.monthOption, Me), r = Y(q, [
267
267
  _.dayInput
268
- ]), s = Y($, [
268
+ ]), s = Y(q, [
269
269
  _.yearInput
270
270
  ]);
271
271
  return /* @__PURE__ */ t.createElement(n, {
@@ -280,7 +280,7 @@ const Ue = "_fields_1mv4t_1", xe = "_month_1mv4t_10", ke = "_day_1mv4t_11", ze =
280
280
  className: D(v, b.label)
281
281
  }), /* @__PURE__ */ t.createElement(n.Month.Trigger, {
282
282
  className: e
283
- }, /* @__PURE__ */ t.createElement(Ae, {
283
+ }, /* @__PURE__ */ t.createElement(Te, {
284
284
  className: b.dropdownIcon
285
285
  })), /* @__PURE__ */ t.createElement(n.Month.Options, {
286
286
  className: D(Ee, b.selectPopover, b.dropdownPopover)
@@ -302,7 +302,7 @@ const Ue = "_fields_1mv4t_1", xe = "_month_1mv4t_10", ke = "_day_1mv4t_11", ze =
302
302
  className: D(be, b.error)
303
303
  }, /* @__PURE__ */ t.createElement(Re, null), /* @__PURE__ */ t.createElement(n.Error.Text, null)), /* @__PURE__ */ t.createElement(n.Description, {
304
304
  className: D(fe, b.description)
305
- }, Ke));
305
+ }, Ge));
306
306
  };
307
307
  export {
308
308
  Et as D
@@ -1,5 +1,5 @@
1
1
  import t from "react";
2
- import { D as e } from "./date-input-field-rac-B72mHcya.js";
2
+ import { D as e } from "./date-input-field-rac-D5r1n_ah.js";
3
3
  const o = () => /* @__PURE__ */ t.createElement(e, null);
4
4
  export {
5
5
  o as DateInputRAC
@@ -1,23 +1,23 @@
1
1
  import { RicosViewer as X } from "@wix/ricos/viewer";
2
2
  import p from "classnames";
3
- import e, { useState as O, useCallback as k, useContext as ee, useRef as P, useMemo as v } from "react";
3
+ import e, { useState as L, useCallback as k, useContext as ee, useRef as A, 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
6
  import { I18nProvider as ae, DatePicker as ne, DatePickerStateContext as le, Group as oe, 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 x, Select as M, SelectValue as Y, ListBox as w, ListBoxItem as B } from "react-aria-components";
7
- import { D as f, bz as h, bw as V, br as F, bB as pe, V as fe, ab as De, y as Ce, L as ye, z as be, x as Se } from "./form-DSpx-AO8.js";
8
- import { g as he, c as A } from "./calendar.module-CKCBG_Pg.js";
7
+ import { D as f, bA as h, bx as U, bs as F, bC as pe, W as fe, ac as De, z as Ce, M as ye, G as be, y as Se } from "./form-BUqSKOvc.js";
8
+ import { g as he, c as P } from "./calendar.module-CKCBG_Pg.js";
9
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-XNWmDH3E.js";
11
- import { L as _e } from "./field-label-headless-CORRAJGt.js";
12
- import { D as ve, N as L, S as U } from "./non-modal-popover-D-u13tmp.js";
13
- import { u as Ie } from "./use-is-forced-open-dropdown-Bp-5Xpmw.js";
14
- import { i as Fe } from "./date-availability-Dach9aRC.js";
10
+ import { D as Ne, E as Te } from "./field-error-headless-XnVcMmsL.js";
11
+ import { L as _e } from "./field-label-headless-BRTLT2Yt.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-DnK_MQRO.js";
14
+ import { i as Fe } from "./date-availability-DDj1j0z5.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 Oe } 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 D } from "./field-rac.module-DP0lkkEv.js";
19
- import { u as Pe } from "./use-hoverable-input-class-name-BnV_uerV.js";
20
- const Ae = [
19
+ import { u as Ae } from "./use-hoverable-input-class-name-C__zqP5j.js";
20
+ const Pe = [
21
21
  f.SUNDAY,
22
22
  f.MONDAY,
23
23
  f.TUESDAY,
@@ -26,14 +26,14 @@ const Ae = [
26
26
  f.FRIDAY,
27
27
  f.SATURDAY
28
28
  ], Re = {
29
- availableDays: Ae
29
+ availableDays: Pe
30
30
  }, a = ({ children: t }) => {
31
- const { id: r, value: l, onChange: n, disabled: i, required: c, onBlur: u, onFocus: o, FieldLayout: m, hasError: d, readOnly: C } = h(), { labelId: y } = V(), { regionalFormat: N } = F(), [s, T] = O(null), [j, K] = O(!1), _ = Ie(r), W = k((Z) => {
31
+ const { id: r, value: l, onChange: n, disabled: i, required: c, onBlur: u, onFocus: o, FieldLayout: m, hasError: d, readOnly: C } = h(), { labelId: y } = U(), { regionalFormat: N } = F(), [s, T] = L(null), [j, K] = L(!1), _ = Ie(r), W = k((Z) => {
32
32
  const J = We(Z);
33
33
  n(J);
34
34
  }, [
35
35
  n
36
- ]), H = E(t, a.Label), $ = E(t, a.Control), q = E(t, a.Calendar), z = E(t, a.Description), G = E(t, a.Error), Q = Ke(l);
36
+ ]), H = E(t, a.Label), $ = E(t, a.Control), q = E(t, a.Calendar), G = E(t, a.Description), z = E(t, a.Error), Q = Ke(l);
37
37
  return /* @__PURE__ */ e.createElement(m, {
38
38
  fieldId: r,
39
39
  renderLabel: () => H,
@@ -61,10 +61,10 @@ const Ae = [
61
61
  }, $, S(q, {
62
62
  isForcedOpen: _
63
63
  })))),
64
- renderDescription: () => /* @__PURE__ */ e.createElement(e.Fragment, null, G, z)
64
+ renderDescription: () => /* @__PURE__ */ e.createElement(e.Fragment, null, z, G)
65
65
  });
66
66
  }, ke = ({ children: t, className: r }) => {
67
- const { inputId: l, ariaDescribedBy: n } = V(), { hasError: i, disabled: c, readOnly: u } = h(), o = ee(le), m = k((d) => {
67
+ const { inputId: l, ariaDescribedBy: n } = U(), { hasError: i, disabled: c, readOnly: u } = h(), o = ee(le), m = k((d) => {
68
68
  if (!o || o.isOpen || c || u)
69
69
  return;
70
70
  const C = d.target;
@@ -85,7 +85,7 @@ const Ae = [
85
85
  onClick: m
86
86
  }, t);
87
87
  }, xe = ({ className: t }) => {
88
- const { id: r, placeholder: l } = h(), { regionalFormat: n } = F(), i = P(null), c = P(!1);
88
+ const { id: r, placeholder: l } = h(), { regionalFormat: n } = F(), i = A(null), c = A(!1);
89
89
  pe(() => {
90
90
  var o;
91
91
  (o = i.current) == null || o.focus({
@@ -126,7 +126,7 @@ const Ae = [
126
126
  }, [
127
127
  c
128
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(L, {
129
+ return /* @__PURE__ */ e.createElement(O, {
130
130
  className: r,
131
131
  containerPadding: 0
132
132
  }, /* @__PURE__ */ e.createElement(Ye, {
@@ -165,18 +165,18 @@ const Ae = [
165
165
  }, Be = ({ children: t, className: r }) => /* @__PURE__ */ e.createElement(x, {
166
166
  slot: "previous",
167
167
  className: r
168
- }, t), Ve = ({ children: t, className: r }) => /* @__PURE__ */ e.createElement(x, {
168
+ }, t), Ue = ({ children: t, className: r }) => /* @__PURE__ */ e.createElement(x, {
169
169
  slot: "next",
170
170
  className: r
171
- }, t), Ue = ({ children: t, className: r, ...l }) => {
171
+ }, t), Ve = ({ children: t, className: r, ...l }) => {
172
172
  const { ariaLabel: n, selectedKey: i, onSelectionChange: c, items: u, popoverClassName: o } = l;
173
173
  return /* @__PURE__ */ e.createElement(M, {
174
174
  "aria-label": n,
175
175
  selectedKey: i,
176
176
  onSelectionChange: c
177
- }, /* @__PURE__ */ e.createElement(U, {
177
+ }, /* @__PURE__ */ e.createElement(V, {
178
178
  className: r
179
- }, /* @__PURE__ */ e.createElement(Y, null), t), /* @__PURE__ */ e.createElement(L, {
179
+ }, /* @__PURE__ */ e.createElement(Y, null), t), /* @__PURE__ */ e.createElement(O, {
180
180
  className: o,
181
181
  containerPadding: 0
182
182
  }, /* @__PURE__ */ e.createElement(w, {
@@ -190,9 +190,9 @@ const Ae = [
190
190
  "aria-label": n,
191
191
  selectedKey: i,
192
192
  onSelectionChange: c
193
- }, /* @__PURE__ */ e.createElement(U, {
193
+ }, /* @__PURE__ */ e.createElement(V, {
194
194
  className: r
195
- }, /* @__PURE__ */ e.createElement(Y, null), t), /* @__PURE__ */ e.createElement(L, {
195
+ }, /* @__PURE__ */ e.createElement(Y, null), t), /* @__PURE__ */ e.createElement(O, {
196
196
  className: o,
197
197
  containerPadding: 0
198
198
  }, /* @__PURE__ */ e.createElement(w, {
@@ -203,8 +203,8 @@ const Ae = [
203
203
  };
204
204
  g.Day = we;
205
205
  g.PreviousTrigger = Be;
206
- g.NextTrigger = Ve;
207
- g.MonthTrigger = Ue;
206
+ g.NextTrigger = Ue;
207
+ g.MonthTrigger = Ve;
208
208
  g.YearTrigger = je;
209
209
  a.Label = _e;
210
210
  a.Control = ke;
@@ -264,9 +264,9 @@ const qe = (t) => /* @__PURE__ */ e.createElement("svg", {
264
264
  strokeWidth: "1.5",
265
265
  strokeLinecap: "round",
266
266
  strokeLinejoin: "round"
267
- })), ze = "_control_anbxj_1", Ge = "_segments_anbxj_14", Qe = "_trigger_anbxj_72", Ze = "_calendarPopover_anbxj_103", Je = "_calendarDay_anbxj_253", Xe = "_dayNumber_anbxj_260", b = {
268
- control: ze,
269
- segments: Ge,
267
+ })), Ge = "_control_anbxj_1", ze = "_segments_anbxj_14", Qe = "_trigger_anbxj_72", Ze = "_calendarPopover_anbxj_103", Je = "_calendarDay_anbxj_253", Xe = "_dayNumber_anbxj_260", b = {
268
+ control: Ge,
269
+ segments: ze,
270
270
  trigger: Qe,
271
271
  calendarPopover: Ze,
272
272
  calendarDay: Je,
@@ -282,7 +282,7 @@ const qe = (t) => /* @__PURE__ */ e.createElement("svg", {
282
282
  transform: `rotate(${tt[t]}deg)`
283
283
  }
284
284
  }), St = () => {
285
- const t = Pe(Se, [
285
+ const t = Ae(Se, [
286
286
  b.control
287
287
  ]);
288
288
  return /* @__PURE__ */ e.createElement(a, null, /* @__PURE__ */ e.createElement(a.Label, {
@@ -306,12 +306,12 @@ const qe = (t) => /* @__PURE__ */ e.createElement("svg", {
306
306
  })), /* @__PURE__ */ e.createElement(a.Calendar.NextTrigger, null, /* @__PURE__ */ e.createElement(R, {
307
307
  direction: "right"
308
308
  })), /* @__PURE__ */ e.createElement(a.Calendar.Day, {
309
- className: p(Oe, A.day, b.calendarDay)
309
+ className: p(Le, P.day, b.calendarDay)
310
310
  }, ({ formattedDate: r }) => /* @__PURE__ */ e.createElement("span", {
311
- className: p(A.dayNumber, b.dayNumber)
311
+ className: p(P.dayNumber, b.dayNumber)
312
312
  }, r))), /* @__PURE__ */ e.createElement(a.Error, {
313
313
  className: p(ye, D.error)
314
- }, /* @__PURE__ */ e.createElement(Le, null), /* @__PURE__ */ e.createElement(a.Error.Text, null)), /* @__PURE__ */ e.createElement(a.Description, {
314
+ }, /* @__PURE__ */ e.createElement(Oe, null), /* @__PURE__ */ e.createElement(a.Error.Text, null)), /* @__PURE__ */ e.createElement(a.Description, {
315
315
  className: p(be, D.description)
316
316
  }, et));
317
317
  };
@@ -1,5 +1,5 @@
1
1
  import e from "react";
2
- import { D as r } from "./date-picker-field-rac-B8pvtPir.js";
2
+ import { D as r } from "./date-picker-field-rac-CeG391Zo.js";
3
3
  const a = () => /* @__PURE__ */ e.createElement(r, null);
4
4
  export {
5
5
  a as DatePickerRAC