@wix/form-elements 1.159.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 (117) hide show
  1. package/dist/component/{appointment-rac-CpiyUOXo.js → appointment-rac-BubC8I9X.js} +388 -381
  2. package/dist/component/{bookings-address-rac-BBEUV1t7.js → bookings-address-rac-BbwvVs86.js} +1 -1
  3. package/dist/component/{bookings-email-rac-DdfoeLFV.js → bookings-email-rac-C2HCkcfa.js} +1 -1
  4. package/dist/component/{bookings-first-name-rac-DH39yvQ-.js → bookings-first-name-rac-Uy7c5EBs.js} +1 -1
  5. package/dist/component/{bookings-header-rac-StLm7b4I.js → bookings-header-rac-nmwsWRjS.js} +1 -1
  6. package/dist/component/{bookings-last-name-rac-DHZMPMOO.js → bookings-last-name-rac-BAioQLCg.js} +1 -1
  7. package/dist/component/{bookings-login-bar-rac-DrHp1ojM.js → bookings-login-bar-rac-CO6vOBjG.js} +5 -5
  8. package/dist/component/{bookings-phone-rac-6aGjbavK.js → bookings-phone-rac-Cr16h-_R.js} +1 -1
  9. package/dist/component/{bookings-rich-text-rac-DBlGZUM5.js → bookings-rich-text-rac-CHLH3jd7.js} +1 -1
  10. package/dist/component/{checkbox-field-rac-Cna1Va1X.js → checkbox-field-rac-CMwmwFMD.js} +4 -4
  11. package/dist/component/{checkbox-group-field-headless-m_-10Mdx.js → checkbox-group-field-headless-BNs_S-nT.js} +50 -50
  12. package/dist/component/{checkbox-group-field-rac-BSCi5hmx.js → checkbox-group-field-rac-BA60EPAN.js} +12 -12
  13. package/dist/component/{checkbox-group-rac-BWYQZmAI.js → checkbox-group-rac-BJZ4Oer9.js} +1 -1
  14. package/dist/component/{checkbox-rac-BsUTfSUf.js → checkbox-rac-KsVlI6_V.js} +1 -1
  15. package/dist/component/{contacts-address-rac-DwCLW8rV.js → contacts-address-rac-CRYkz87z.js} +1 -1
  16. package/dist/component/{contacts-birthdate-rac-DnNgxbKb.js → contacts-birthdate-rac-BIz-1-ZX.js} +1 -1
  17. package/dist/component/{contacts-company-rac-BQqXzpNl.js → contacts-company-rac-B8G__j6I.js} +1 -1
  18. package/dist/component/{contacts-email-rac-BINnZzxp.js → contacts-email-rac-Dztkvp5i.js} +1 -1
  19. package/dist/component/{contacts-first-name-rac-DBWKFkIU.js → contacts-first-name-rac-CVSEWpLU.js} +1 -1
  20. package/dist/component/{contacts-last-name-rac-D_-qrF7I.js → contacts-last-name-rac-Blz4M5bk.js} +1 -1
  21. package/dist/component/{contacts-phone-rac-7n7JkSDr.js → contacts-phone-rac-CPCE5soY.js} +1 -1
  22. package/dist/component/{contacts-position-rac-DvXP8nvT.js → contacts-position-rac-Dd_kBjqG.js} +1 -1
  23. package/dist/component/{contacts-subscribe-rac-DnLnV5Gm.js → contacts-subscribe-rac-C6AlsP10.js} +1 -1
  24. package/dist/component/{contacts-tax-id-rac-BJVWhvYW.js → contacts-tax-id-rac-CQ1n29zI.js} +1 -1
  25. package/dist/component/{date-availability-Df807-eN.js → date-availability-DDj1j0z5.js} +1 -1
  26. package/dist/component/date-input-field-rac-D5r1n_ah.js +309 -0
  27. package/dist/component/{date-input-rac-CSB3MWHW.js → date-input-rac-Cyi5mU_P.js} +1 -1
  28. package/dist/component/{date-picker-field-rac-CySThPfz.js → date-picker-field-rac-CeG391Zo.js} +79 -79
  29. package/dist/component/{date-picker-rac-Fp8_pxtf.js → date-picker-rac-Ci9aHgav.js} +1 -1
  30. package/dist/component/date-time-input-field-rac-CrbYEbJJ.js +441 -0
  31. package/dist/component/{date-time-input-rac-wctMR4uM.js → date-time-input-rac-DDJLkqs0.js} +1 -1
  32. package/dist/component/{dext-checkbox-group-rac-erMPfwFL.js → dext-checkbox-group-rac-C3ftVHBA.js} +4 -4
  33. package/dist/component/{dext-checkbox-rac-DQSq9Lqd.js → dext-checkbox-rac-BGLYWn68.js} +1 -1
  34. package/dist/component/{dext-date-picker-rac-RCLcd1VV.js → dext-date-picker-rac-Cy9RlDlt.js} +1 -1
  35. package/dist/component/{dext-date-time-input-rac-DMolWzvy.js → dext-date-time-input-rac-88ZoTd5e.js} +1 -1
  36. package/dist/component/{dext-dropdown-rac-wQ2GJL4V.js → dext-dropdown-rac-CPxDUuk9.js} +1 -1
  37. package/dist/component/{dext-email-rac-BtymBVTW.js → dext-email-rac-BAvQwDPA.js} +1 -1
  38. package/dist/component/{dext-number-input-rac-DHPiK0Z3.js → dext-number-input-rac-D7HYQVKq.js} +1 -1
  39. package/dist/component/{dext-phone-rac-C58vHEEe.js → dext-phone-rac--FhcplSI.js} +1 -1
  40. package/dist/component/dext-radio-group-rac-DBz8iCKW.js +18 -0
  41. package/dist/component/{dext-rating-input-rac-DI0k3tVa.js → dext-rating-input-rac-Cv7nThfe.js} +1 -1
  42. package/dist/component/{dext-tags-rac-DmF6ctvQ.js → dext-tags-rac-CRUUc5dr.js} +2 -2
  43. package/dist/component/{dext-text-area-rac-Bv6ridbR.js → dext-text-area-rac-DQBQXV1L.js} +1 -1
  44. package/dist/component/{dext-text-input-rac-DoTAdUgU.js → dext-text-input-rac-4CpM581y.js} +1 -1
  45. package/dist/component/{dext-url-input-rac-BuoMS6g2.js → dext-url-input-rac-0C1jTEr9.js} +1 -1
  46. package/dist/component/{donation-rac-CjZalSgn.js → donation-rac-Cgt0ZE50.js} +79 -79
  47. package/dist/component/{dropdown-field-rac-By_fpqhx.js → dropdown-field-rac-DlGKR7pZ.js} +14 -14
  48. package/dist/component/{dropdown-rac-BnIEC4RX.js → dropdown-rac-CYFW_3x_.js} +1 -1
  49. package/dist/component/{ecom-address-rac-B6Usk1Ty.js → ecom-address-rac-CQfQHpXC.js} +1 -1
  50. package/dist/component/{ecom-subscription-checkbox-rac-B4B0wzlC.js → ecom-subscription-checkbox-rac-D2v2Upvz.js} +2 -2
  51. package/dist/component/{email-input-field-rac-Df3KI3_v.js → email-input-field-rac-CVw25yRo.js} +39 -39
  52. package/dist/component/{events-repeater-rac-B2iBk8lV.js → events-repeater-rac-BCVUcmFj.js} +25 -25
  53. package/dist/component/{events-rsvp-rac-xl_qCIh3.js → events-rsvp-rac-DwbqEr8z.js} +18 -18
  54. package/dist/component/{field-error-headless-DWc76YmY.js → field-error-headless-XnVcMmsL.js} +3 -3
  55. package/dist/component/{field-label-headless-DKBKqI2X.js → field-label-headless-BRTLT2Yt.js} +16 -16
  56. package/dist/component/{file-upload-rac-BVj4cRqe.js → file-upload-rac-Dkwg9Jk4.js} +118 -118
  57. package/dist/component/{fixed-payment-rac-BS1Hb4hg.js → fixed-payment-rac-ST98xAa2.js} +13 -13
  58. package/dist/component/{form-BTUoOcqB.js → form-BUqSKOvc.js} +785 -727
  59. package/dist/component/form.js +1 -1
  60. package/dist/component/{header-field-rac-DTJ_Us6u.js → header-field-rac-CzNTGYWq.js} +6 -6
  61. package/dist/component/{header-rac-CvYp0Jjo.js → header-rac-DUt6AIAE.js} +1 -1
  62. package/dist/component/{image-choice-rac--qrYqKJl.js → image-choice-rac-DuBgrSt2.js} +23 -23
  63. package/dist/component/{index-DIl9BH2M.js → index-CDO22hht.js} +66 -66
  64. package/dist/component/{index-CoEV4QEy.js → index-cZZeAuuu.js} +2 -2
  65. package/dist/component/{isObjectLike-CLN09X5V.js → isObjectLike-cs4bARpC.js} +11 -11
  66. package/dist/component/multiline-address-field-rac-vcEWhUCV.js +1664 -0
  67. package/dist/component/{multiline-address-rac-DtaAJjbR.js → multiline-address-rac-WQaI2eUX.js} +1 -1
  68. package/dist/component/{number-input-field-rac-2gqDUlw9.js → number-input-field-rac-CBUMqATk.js} +23 -23
  69. package/dist/component/{number-input-rac-BlciEPLN.js → number-input-rac-B4j5hyzS.js} +1 -1
  70. package/dist/component/{password-rac-BvvQgafk.js → password-rac-DwLyf45N.js} +27 -27
  71. package/dist/component/{payment-input-rac-CSRyOPPr.js → payment-input-rac-D0Od---y.js} +31 -31
  72. package/dist/component/phone-input-field-rac-COlu9IeC.js +512 -0
  73. package/dist/component/{phone-rac-DMP1MoRs.js → phone-rac-Dh4RacOF.js} +1 -1
  74. package/dist/component/{product-list-rac-WQ9Qhzum.js → product-list-rac-D7zHDE2D.js} +39 -39
  75. package/dist/component/{quiz-radio-group-rac-DzrL3-gZ.js → quiz-radio-group-rac-1AaKphJt.js} +1 -1
  76. package/dist/component/{radio-button-module-classes-CJk18LzO.js → radio-button-module-classes-VqaP6vpA.js} +30 -30
  77. package/dist/component/{radio-group-field-rac-DGoMoSgo.js → radio-group-field-rac-Cp3LRN3C.js} +8 -8
  78. package/dist/component/{radio-group-rac-DhAELVNV.js → radio-group-rac-KhmhzYGf.js} +1 -1
  79. package/dist/component/{rating-input-field-rac-CFoesqmC.js → rating-input-field-rac-10n6ciCr.js} +39 -39
  80. package/dist/component/{rating-input-rac-CFMIxche.js → rating-input-rac-XZjjY2Gp.js} +1 -1
  81. package/dist/component/{rich-content-rac.module-xJ03MegT.js → rich-content-rac.module-kMwDoLBa.js} +8 -8
  82. package/dist/component/{rich-text-field-rac-CBMY4JOB.js → rich-text-field-rac-H5bd8fAt.js} +4 -4
  83. package/dist/component/{rich-text-rac-CvZ7s1Ct.js → rich-text-rac-88GSQR62.js} +1 -1
  84. package/dist/component/service-dropdown-rac-B1_Xr_X3.js +145 -0
  85. package/dist/component/{services-multi-choice-rac-fXOov4K7.js → services-multi-choice-rac-DWp_Llbi.js} +11 -11
  86. package/dist/component/{signature-rac-CG_Q9Oxr.js → signature-rac-zN_6KRDp.js} +82 -82
  87. package/dist/component/{submit-button-rac-DAsovEp2.js → submit-button-rac-Dv6UarYX.js} +12 -12
  88. package/dist/component/{tags-field-rac-9mpOMPLm.js → tags-field-rac-sVN6MHfJ.js} +43 -43
  89. package/dist/component/{tags-rac-CNBJ08wS.js → tags-rac-DhTHs_XN.js} +1 -1
  90. package/dist/component/{text-area-field-rac-D4aTm7CM.js → text-area-field-rac-DrWkww7W.js} +19 -19
  91. package/dist/component/{text-area-rac-DoKiH_Kv.js → text-area-rac-CXXh-ZdY.js} +1 -1
  92. package/dist/component/{text-input-field-rac-BbvPB26b.js → text-input-field-rac-C2YiMr-g.js} +5 -5
  93. package/dist/component/text-input-headless-BJMNbsMY.js +47 -0
  94. package/dist/component/{text-input-rac-1ac1EKad.js → text-input-rac-CpsPh7FH.js} +1 -1
  95. package/dist/component/{time-input-rac-BS0rR-89.js → time-input-rac-DG_1KxS4.js} +20 -20
  96. package/dist/component/{url-input-field-rac-DbO6ATng.js → url-input-field-rac-twxRREnl.js} +19 -19
  97. package/dist/component/{url-input-rac-DHuny3d-.js → url-input-rac-BTStO0NP.js} +1 -1
  98. package/dist/component/use-dropdown-option-class-name-DbMMg1ws.js +116 -0
  99. package/dist/component/use-dropdown-trigger-class-name-Yes4kC_0.js +96 -0
  100. package/dist/component/{use-element-state-class-name-BUsFQfoW.js → use-element-state-class-name-DlncY4hk.js} +1 -1
  101. package/dist/component/{use-hoverable-input-class-name-C2l3G8gb.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-D_enm38a.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 +11 -0
  106. package/package.json +2 -2
  107. package/dist/component/date-input-field-rac-CEuPElMH.js +0 -303
  108. package/dist/component/date-time-input-field-rac-DG5KSBHe.js +0 -433
  109. package/dist/component/dext-radio-group-rac-Cp-I94HW.js +0 -18
  110. package/dist/component/dropdown-field-headless-BYEjiIUf.js +0 -93
  111. package/dist/component/multiline-address-field-rac-BjWzx-LH.js +0 -1659
  112. package/dist/component/phone-input-field-rac-BVWzH_TY.js +0 -508
  113. package/dist/component/service-dropdown-rac-B627AgPG.js +0 -145
  114. package/dist/component/text-input-headless-BGaBRrP1.js +0 -47
  115. package/dist/component/use-dropdown-trigger-class-name-rcGBzxI1.js +0 -117
  116. package/dist/component/use-is-forced-open-dropdown-CoOk4W4i.js +0 -48
  117. package/dist/component/use-text-input-class-name-BLtPQoYE.js +0 -6
@@ -1,5 +1,5 @@
1
1
  import e from "react";
2
- import { M as o } from "./multiline-address-field-rac-BjWzx-LH.js";
2
+ import { M as o } from "./multiline-address-field-rac-vcEWhUCV.js";
3
3
  const s = () => /* @__PURE__ */ e.createElement(o, null);
4
4
  export {
5
5
  s as BookingsAddressRAC
@@ -1,5 +1,5 @@
1
1
  import t from "react";
2
- import { E as e } from "./email-input-field-rac-Df3KI3_v.js";
2
+ import { E as e } from "./email-input-field-rac-CVw25yRo.js";
3
3
  const m = () => /* @__PURE__ */ t.createElement(e, null);
4
4
  export {
5
5
  m as BookingsEmailRAC
@@ -1,5 +1,5 @@
1
1
  import t from "react";
2
- import { T as e } from "./text-input-field-rac-BbvPB26b.js";
2
+ import { T as e } from "./text-input-field-rac-C2YiMr-g.js";
3
3
  const m = () => /* @__PURE__ */ t.createElement(e, null);
4
4
  export {
5
5
  m as BookingsFirstNameRAC
@@ -1,5 +1,5 @@
1
1
  import e from "react";
2
- import { H as r } from "./header-field-rac-DTJ_Us6u.js";
2
+ import { H as r } from "./header-field-rac-CzNTGYWq.js";
3
3
  const a = () => /* @__PURE__ */ e.createElement(r, {
4
4
  truncate: !1
5
5
  });
@@ -1,5 +1,5 @@
1
1
  import t from "react";
2
- import { T as e } from "./text-input-field-rac-BbvPB26b.js";
2
+ import { T as e } from "./text-input-field-rac-C2YiMr-g.js";
3
3
  const m = () => /* @__PURE__ */ t.createElement(e, null);
4
4
  export {
5
5
  m as BookingsLastNameRAC
@@ -1,6 +1,6 @@
1
1
  import o from "react";
2
2
  import E from "classnames";
3
- import { bo as d, by as b, bg as f, bk as x, Q as p } from "./form-BTUoOcqB.js";
3
+ import { bA as d, bK as b, bs as f, bw as x, V as p } from "./form-BUqSKOvc.js";
4
4
  import { Button as L } from "react-aria-components";
5
5
  import { a as m, f as g } from "./find-child-C60k4CxG.js";
6
6
  const l = ({ children: n }) => {
@@ -44,11 +44,11 @@ const l = ({ children: n }) => {
44
44
  l.LoginBar = _;
45
45
  l.Text = N;
46
46
  l.Button = F;
47
- const T = "_container_1ixk2_1", k = "_text_1ixk2_34", C = "_button_1ixk2_39", u = {
47
+ const T = "_container_1ixk2_1", A = "_text_1ixk2_34", C = "_button_1ixk2_39", u = {
48
48
  container: T,
49
- text: k,
49
+ text: A,
50
50
  button: C
51
- }, y = () => {
51
+ }, k = () => {
52
52
  const { userData: n, language: r } = f(), { actions: t } = x();
53
53
  return /* @__PURE__ */ o.createElement(l, null, /* @__PURE__ */ o.createElement(l.LoginBar, {
54
54
  email: n == null ? void 0 : n.email,
@@ -67,7 +67,7 @@ const T = "_container_1ixk2_1", k = "_text_1ixk2_34", C = "_button_1ixk2_39", u
67
67
  }), /* @__PURE__ */ o.createElement(l.Button, {
68
68
  className: u.button
69
69
  })));
70
- }, h = () => /* @__PURE__ */ o.createElement(y, null);
70
+ }, h = () => /* @__PURE__ */ o.createElement(k, null);
71
71
  export {
72
72
  h as BookingsLoginBarRAC
73
73
  };
@@ -1,5 +1,5 @@
1
1
  import o from "react";
2
- import { P as e } from "./phone-input-field-rac-BVWzH_TY.js";
2
+ import { P as e } from "./phone-input-field-rac-COlu9IeC.js";
3
3
  const r = () => /* @__PURE__ */ o.createElement(e, null);
4
4
  export {
5
5
  r as BookingsPhoneRAC
@@ -1,5 +1,5 @@
1
1
  import e from "react";
2
- import { R as t } from "./rich-text-field-rac-CBMY4JOB.js";
2
+ import { R as t } from "./rich-text-field-rac-H5bd8fAt.js";
3
3
  const c = () => /* @__PURE__ */ e.createElement(t, {
4
4
  truncate: !1
5
5
  });
@@ -2,16 +2,16 @@ import { RicosViewer as Xn } from "@wix/ricos/viewer";
2
2
  import U from "classnames";
3
3
  import b, { useMemo as $n, useRef as Jn, useCallback as Yn } from "react";
4
4
  import { CheckboxField as Qn, CheckboxButton as Zn } from "react-aria-components";
5
- import { aY as ei, bo as Zr, aG as Qr, aF as fn, by as ri, bg as ti, b4 as ai, bl as ni, bq as ii, n as si, a0 as oi, s as ui, aB as ci, H as fi, v as li, r as _i } from "./form-BTUoOcqB.js";
5
+ import { b8 as ei, bA as Zr, aS as Qr, aR as fn, bK as ri, bs as ti, bg as ai, bx as ni, bC as ii, o as si, ac as oi, t as ui, aN as ci, M as fi, G as li, s as _i } from "./form-BUqSKOvc.js";
6
6
  import { f as W, a as vi } from "./find-child-C60k4CxG.js";
7
- import { D as hi, E as pi } from "./field-error-headless-DWc76YmY.js";
7
+ import { D as hi, E as pi } from "./field-error-headless-XnVcMmsL.js";
8
8
  import { Node_Type as di } from "@wix/ricos/schema";
9
- import { c as re, r as $, e as S, a as J, d as yi, b as bi } from "./isObjectLike-CLN09X5V.js";
9
+ import { c as re, r as $, e as S, a as J, d as yi, b as bi } from "./isObjectLike-cs4bARpC.js";
10
10
  import { S as gi } from "./selection-indicator-XQ8MYHUQ.js";
11
11
  import { E as qi } from "./error-icon-hZxQ6DEy.js";
12
12
  import { C as Ci } from "./checkbox-indicator-module-classes-akWZsZNn.js";
13
13
  import { s as oe } from "./field-rac.module-DP0lkkEv.js";
14
- import { u as Ai } from "./use-element-state-class-name-BUsFQfoW.js";
14
+ import { u as Ai } from "./use-element-state-class-name-DlncY4hk.js";
15
15
  var ue, dt;
16
16
  function mi() {
17
17
  if (dt) return ue;
@@ -1,37 +1,37 @@
1
- import r, { useMemo as y, useCallback as $, useRef as w, useState as W, useEffect as A } from "react";
2
- import { CheckboxGroup as M, CheckboxField as j, CheckboxButton as z, TextField as J, Input as K } from "react-aria-components";
1
+ import o, { useMemo as F, useCallback as $, useRef as w, useState as A, useEffect as W } from "react";
2
+ import { CheckboxGroup as K, CheckboxField as M, CheckboxButton as j, TextField as z, Input as J } from "react-aria-components";
3
3
  import { debounce as Q } from "ts-debounce";
4
- import { bo as R, bl as U, by as X, bq as Y } from "./form-BTUoOcqB.js";
5
- import { f as I, a as F } from "./find-child-C60k4CxG.js";
6
- import { D as Z, E as ee } from "./field-error-headless-DWc76YmY.js";
7
- import { L as te } from "./field-label-headless-DKBKqI2X.js";
4
+ import { bA as R, bx as U, bK as X, bC as Y } from "./form-BUqSKOvc.js";
5
+ import { f as I, a as k } from "./find-child-C60k4CxG.js";
6
+ import { D as Z, E as ee } from "./field-error-headless-XnVcMmsL.js";
7
+ import { L as te } from "./field-label-headless-BRTLT2Yt.js";
8
8
  import { F as ae } from "./fieldset-headless-CD3fds9J.js";
9
9
  import { S as ne } from "./selection-indicator-XQ8MYHUQ.js";
10
- const B = "Other", le = (e, t) => e.some((o) => !t.includes(o)), N = (e, t) => e.length > 0 && le(e, t), se = (e, t) => {
11
- const o = t == null ? void 0 : t("add-other.default-other-option-label");
12
- return e || o || B;
13
- }, T = (e, t) => {
10
+ const B = "Other", le = (e, t) => e.some((r) => !t.includes(r)), N = (e, t) => e.length > 0 && le(e, t), se = (e, t) => {
11
+ const r = t == null ? void 0 : t("add-other.default-other-option-label");
12
+ return e || r || B;
13
+ }, q = (e, t) => {
14
14
  const a = t ? t.length + 2 : 0;
15
15
  return (e.find((s) => s.startsWith(`${t}: `)) || "").slice(a);
16
16
  }, S = (e) => e.map((t) => t.value ?? t.label), v = ({ children: e, className: t }) => {
17
- const o = R(), { id: a, value: n, onChange: s, disabled: d, required: p, onBlur: f, onFocus: m, hasError: c, FieldLayout: i } = o, { inputId: h, labelId: u, ariaDescribedBy: L } = U(), E = I(e, v.Label), g = I(e, v.Options), C = I(e, v.Description), l = I(e, v.Error), O = y(() => n || [], [
17
+ const r = R(), { id: a, value: n, onChange: s, disabled: d, required: p, onBlur: f, onFocus: m, hasError: c, FieldLayout: i } = r, { inputId: h, labelId: u, ariaDescribedBy: L } = U(), E = I(e, v.Label), g = I(e, v.Options), C = I(e, v.Description), l = I(e, v.Error), O = F(() => n || [], [
18
18
  n
19
19
  ]), V = $((b) => {
20
20
  s == null || s(b);
21
21
  }, [
22
22
  s
23
23
  ]);
24
- return /* @__PURE__ */ r.createElement(i, {
24
+ return /* @__PURE__ */ o.createElement(i, {
25
25
  fieldId: a,
26
26
  renderLabel: () => E,
27
- renderInput: () => /* @__PURE__ */ r.createElement(ae, {
27
+ renderInput: () => /* @__PURE__ */ o.createElement(ae, {
28
28
  id: h,
29
29
  ariaLabelledBy: u,
30
30
  ariaDescribedBy: L,
31
31
  required: p,
32
32
  onBlur: f,
33
33
  onFocus: m
34
- }, /* @__PURE__ */ r.createElement(M, {
34
+ }, /* @__PURE__ */ o.createElement(K, {
35
35
  className: t,
36
36
  "aria-labelledby": u,
37
37
  value: O,
@@ -40,44 +40,44 @@ const B = "Other", le = (e, t) => e.some((o) => !t.includes(o)), N = (e, t) => e
40
40
  isRequired: p,
41
41
  isInvalid: c
42
42
  }, g)),
43
- renderDescription: () => /* @__PURE__ */ r.createElement(r.Fragment, null, l, C)
43
+ renderDescription: () => /* @__PURE__ */ o.createElement(o.Fragment, null, l, C)
44
44
  });
45
45
  }, _ = ({ children: e, className: t }) => {
46
- const o = R(), { id: a, options: n, addOther: s, addOtherLabel: d, numberOfColumns: p } = o, { t: f } = X(), m = I(e, _.Option), c = se(d, f);
47
- return /* @__PURE__ */ r.createElement("div", {
46
+ const r = R(), { id: a, options: n, addOther: s, addOtherLabel: d, numberOfColumns: p } = r, { t: f } = X(), m = I(e, _.Option), c = se(d, f);
47
+ return /* @__PURE__ */ o.createElement("div", {
48
48
  className: t,
49
49
  "data-columns": p
50
50
  }, n == null ? void 0 : n.map((i, h) => {
51
51
  const u = i.value ?? i.label;
52
- return F(m, {
52
+ return k(m, {
53
53
  key: i.id || i.label,
54
54
  value: u,
55
55
  label: i.label,
56
56
  isFirst: h === 0,
57
57
  fieldId: a
58
58
  });
59
- }), s && F(m, {
59
+ }), s && k(m, {
60
60
  key: B,
61
61
  value: B,
62
62
  label: c,
63
63
  isOther: !0
64
64
  }));
65
- }, oe = ({ className: e, ...t }) => {
66
- const { label: o } = t;
67
- return /* @__PURE__ */ r.createElement("span", {
65
+ }, re = ({ className: e, ...t }) => {
66
+ const { label: r } = t;
67
+ return /* @__PURE__ */ o.createElement("span", {
68
68
  className: e
69
- }, o);
70
- }, k = ({ children: e, className: t, ...o }) => {
71
- const { value: a, label: n, isFirst: s = !1, isOther: d = !1, fieldId: p } = o, f = R(), { value: m, onChange: c, disabled: i, readOnly: h, hasError: u, options: L } = f, E = w(null);
69
+ }, r);
70
+ }, y = ({ children: e, className: t, ...r }) => {
71
+ const { value: a, label: n, isFirst: s = !1, isOther: d = !1, fieldId: p } = r, f = R(), { value: m, onChange: c, disabled: i, readOnly: h, hasError: u, options: L } = f, E = w(null);
72
72
  Y(() => {
73
73
  var b;
74
74
  s && ((b = E.current) == null || b.focus({
75
75
  preventScroll: !0
76
76
  }));
77
77
  }, p);
78
- const g = I(e, k.Label), C = I(e, k.Input), l = y(() => m || [], [
78
+ const g = I(e, y.Label), C = I(e, y.Input), l = F(() => m || [], [
79
79
  m
80
- ]), O = y(() => d ? l.find((b) => b === n || b.startsWith(`${n}: `)) || n : a, [
80
+ ]), O = F(() => d ? l.find((b) => b === n || b.startsWith(`${n}: `)) || n : a, [
81
81
  d,
82
82
  l,
83
83
  n,
@@ -97,30 +97,30 @@ const B = "Other", le = (e, t) => e.some((o) => !t.includes(o)), N = (e, t) => e
97
97
  L,
98
98
  l
99
99
  ]);
100
- return /* @__PURE__ */ r.createElement(j, {
100
+ return /* @__PURE__ */ o.createElement(M, {
101
101
  value: O,
102
102
  onChange: d ? V : void 0,
103
103
  isDisabled: i,
104
104
  isReadOnly: h,
105
105
  isInvalid: u
106
- }, /* @__PURE__ */ r.createElement(z, {
106
+ }, /* @__PURE__ */ o.createElement(j, {
107
107
  ref: E,
108
108
  className: t,
109
109
  "data-hook": `checkbox-${n}`
110
- }, ({ isSelected: b, isHovered: D, isFocused: x }) => /* @__PURE__ */ r.createElement(r.Fragment, null, F(C, {
110
+ }, ({ isSelected: b, isHovered: D, isFocused: x }) => /* @__PURE__ */ o.createElement(o.Fragment, null, k(C, {
111
111
  isSelected: b,
112
112
  isHovered: D,
113
113
  isFocused: x
114
- }), F(g, {
114
+ }), k(g, {
115
115
  label: n
116
116
  }))));
117
117
  };
118
- k.Label = oe;
119
- k.Input = ne;
120
- const q = ({ children: e, ...t }) => {
121
- const { value: o, label: a, isFirst: n = !1, isOther: s = !1, fieldId: d } = t, p = R(), { value: f, onChange: m, options: c, addOtherPlaceholder: i, otherInputCharacterLimit: h, disabled: u, readOnly: L, hasError: E } = p, g = I(e, k), C = I(e, G), l = y(() => f || [], [
118
+ y.Label = re;
119
+ y.Input = ne;
120
+ const T = ({ children: e, ...t }) => {
121
+ const { value: r, label: a, isFirst: n = !1, isOther: s = !1, fieldId: d } = t, p = R(), { value: f, onChange: m, options: c, addOtherPlaceholder: i, otherInputCharacterLimit: h, disabled: u, readOnly: L, hasError: E } = p, g = I(e, y), C = I(e, G), l = F(() => f || [], [
122
122
  f
123
- ]), O = y(() => {
123
+ ]), O = F(() => {
124
124
  if (!s)
125
125
  return !1;
126
126
  const V = S(c || []);
@@ -130,13 +130,13 @@ const q = ({ children: e, ...t }) => {
130
130
  l,
131
131
  c
132
132
  ]);
133
- return /* @__PURE__ */ r.createElement(r.Fragment, null, F(g, {
134
- value: o,
133
+ return /* @__PURE__ */ o.createElement(o.Fragment, null, k(g, {
134
+ value: r,
135
135
  label: a,
136
136
  isFirst: n,
137
137
  isOther: s,
138
138
  fieldId: d
139
- }), s && O && F(C, {
139
+ }), s && O && k(C, {
140
140
  fieldValue: l,
141
141
  onChange: m,
142
142
  label: a,
@@ -149,20 +149,20 @@ const q = ({ children: e, ...t }) => {
149
149
  addOtherLabel: a,
150
150
  options: c
151
151
  }));
152
- }, G = ({ className: e, inputClassName: t, ...o }) => {
153
- const { fieldValue: a, onChange: n, label: s, placeholder: d, maxLength: p, disabled: f, readOnly: m, hasError: c, ariaLabel: i, addOtherLabel: h, options: u } = o, [L, E] = W(() => {
152
+ }, G = ({ className: e, inputClassName: t, ...r }) => {
153
+ const { fieldValue: a, onChange: n, label: s, placeholder: d, maxLength: p, disabled: f, readOnly: m, hasError: c, ariaLabel: i, addOtherLabel: h, options: u } = r, [L, E] = A(() => {
154
154
  const l = S(u || []);
155
- return N(a, l) ? T(a, h) : "";
155
+ return N(a, l) ? q(a, h) : "";
156
156
  });
157
- A(() => {
157
+ W(() => {
158
158
  const l = S(u || []), O = N(a, l);
159
- E(O ? T(a, h) : "");
159
+ E(O ? q(a, h) : "");
160
160
  }, [
161
161
  a,
162
162
  u,
163
163
  h
164
164
  ]);
165
- const g = y(() => Q((l) => {
165
+ const g = F(() => Q((l) => {
166
166
  const O = S(u || []), V = a.filter((x) => O.includes(x)), b = l ? `${h}: ${l}` : s, D = [
167
167
  ...V,
168
168
  b
@@ -179,7 +179,7 @@ const q = ({ children: e, ...t }) => {
179
179
  }, [
180
180
  g
181
181
  ]);
182
- return /* @__PURE__ */ r.createElement(J, {
182
+ return /* @__PURE__ */ o.createElement(z, {
183
183
  "aria-label": i,
184
184
  value: L,
185
185
  onChange: C,
@@ -187,7 +187,7 @@ const q = ({ children: e, ...t }) => {
187
187
  isReadOnly: m,
188
188
  isInvalid: c,
189
189
  className: e
190
- }, /* @__PURE__ */ r.createElement(K, {
190
+ }, /* @__PURE__ */ o.createElement(J, {
191
191
  className: t,
192
192
  placeholder: d,
193
193
  maxLength: p,
@@ -196,9 +196,9 @@ const q = ({ children: e, ...t }) => {
196
196
  };
197
197
  v.Label = te;
198
198
  v.Options = _;
199
- _.Option = q;
200
- q.Checkbox = k;
201
- q.OtherInput = G;
199
+ _.Option = T;
200
+ T.Checkbox = y;
201
+ T.OtherInput = G;
202
202
  v.Description = Z;
203
203
  v.Error = ee;
204
204
  export {
@@ -1,22 +1,22 @@
1
1
  import { RicosViewer as m } from "@wix/ricos/viewer";
2
2
  import a from "classnames";
3
3
  import e from "react";
4
- import { C as t } from "./checkbox-group-field-headless-m_-10Mdx.js";
4
+ import { C as t } from "./checkbox-group-field-headless-BNs_S-nT.js";
5
5
  import { E as n } from "./error-icon-hZxQ6DEy.js";
6
6
  import { C as c } from "./checkbox-indicator-module-classes-akWZsZNn.js";
7
7
  import { s } from "./field-rac.module-DP0lkkEv.js";
8
- import { R as i, a0 as E, o as p, q as C, H as O, v as _, p as R } from "./form-BTUoOcqB.js";
8
+ import { W as i, ac as E, p, r as C, M as O, G as _, q as I } from "./form-BUqSKOvc.js";
9
9
  import { o as l } from "./options-rac.module-_THNq6Qq.js";
10
- import { u as I } from "./use-element-state-class-name-BUsFQfoW.js";
11
- import { u as L } from "./use-text-input-class-name-BLtPQoYE.js";
12
- const u = ({ content: o, locale: r }) => /* @__PURE__ */ e.createElement(m, {
13
- content: o,
14
- locale: r
10
+ import { u as L } from "./use-element-state-class-name-DlncY4hk.js";
11
+ import { u as R } from "./use-text-input-class-name-D9tJTR-b.js";
12
+ const u = ({ content: r, locale: o }) => /* @__PURE__ */ e.createElement(m, {
13
+ content: r,
14
+ locale: o
15
15
  }), k = () => {
16
- const o = I({
17
- globalClasses: R,
16
+ const r = L({
17
+ globalClasses: I,
18
18
  moduleClasses: c
19
- }), r = L();
19
+ }), o = R();
20
20
  return /* @__PURE__ */ e.createElement(t, null, /* @__PURE__ */ e.createElement(t.Label, {
21
21
  className: a(i, s.label)
22
22
  }, /* @__PURE__ */ e.createElement(t.Label.Required, {
@@ -26,11 +26,11 @@ const u = ({ content: o, locale: r }) => /* @__PURE__ */ e.createElement(m, {
26
26
  }, /* @__PURE__ */ e.createElement(t.Options.Option, null, /* @__PURE__ */ e.createElement(t.Options.Option.Checkbox, {
27
27
  className: s.checkbox
28
28
  }, /* @__PURE__ */ e.createElement(t.Options.Option.Checkbox.Input, {
29
- className: o
29
+ className: r
30
30
  }), /* @__PURE__ */ e.createElement(t.Options.Option.Checkbox.Label, {
31
31
  className: a(C, l.optionLabel)
32
32
  })), /* @__PURE__ */ e.createElement(t.Options.Option.OtherInput, {
33
- inputClassName: r
33
+ inputClassName: o
34
34
  }))), /* @__PURE__ */ e.createElement(t.Error, {
35
35
  className: a(O, s.error)
36
36
  }, /* @__PURE__ */ e.createElement(n, null), /* @__PURE__ */ e.createElement(t.Error.Text, null)), /* @__PURE__ */ e.createElement(t.Description, {
@@ -1,5 +1,5 @@
1
1
  import e from "react";
2
- import { C as o } from "./checkbox-group-field-rac-BSCi5hmx.js";
2
+ import { C as o } from "./checkbox-group-field-rac-BA60EPAN.js";
3
3
  const c = () => /* @__PURE__ */ e.createElement(o, null);
4
4
  export {
5
5
  c as CheckboxGroupRAC
@@ -1,5 +1,5 @@
1
1
  import e from "react";
2
- import { C as o } from "./checkbox-field-rac-Cna1Va1X.js";
2
+ import { C as o } from "./checkbox-field-rac-CMwmwFMD.js";
3
3
  const c = () => /* @__PURE__ */ e.createElement(o, null);
4
4
  export {
5
5
  c as CheckboxRAC
@@ -1,5 +1,5 @@
1
1
  import t from "react";
2
- import { T as e } from "./text-input-field-rac-BbvPB26b.js";
2
+ import { T as e } from "./text-input-field-rac-C2YiMr-g.js";
3
3
  const n = () => /* @__PURE__ */ t.createElement(e, null);
4
4
  export {
5
5
  n as ContactsAddressRAC
@@ -1,5 +1,5 @@
1
1
  import t from "react";
2
- import { D as e } from "./date-input-field-rac-CEuPElMH.js";
2
+ import { D as e } from "./date-input-field-rac-D5r1n_ah.js";
3
3
  const a = () => /* @__PURE__ */ t.createElement(e, null);
4
4
  export {
5
5
  a as ContactsBirthdateRAC
@@ -1,5 +1,5 @@
1
1
  import t from "react";
2
- import { T as e } from "./text-input-field-rac-BbvPB26b.js";
2
+ import { T as e } from "./text-input-field-rac-C2YiMr-g.js";
3
3
  const n = () => /* @__PURE__ */ t.createElement(e, null);
4
4
  export {
5
5
  n as ContactsCompanyRAC
@@ -1,5 +1,5 @@
1
1
  import t from "react";
2
- import { E as e } from "./email-input-field-rac-Df3KI3_v.js";
2
+ import { E as e } from "./email-input-field-rac-CVw25yRo.js";
3
3
  const o = () => /* @__PURE__ */ t.createElement(e, null);
4
4
  export {
5
5
  o as ContactsEmailRAC
@@ -1,5 +1,5 @@
1
1
  import t from "react";
2
- import { T as e } from "./text-input-field-rac-BbvPB26b.js";
2
+ import { T as e } from "./text-input-field-rac-C2YiMr-g.js";
3
3
  const m = () => /* @__PURE__ */ t.createElement(e, null);
4
4
  export {
5
5
  m as ContactsFirstNameRAC
@@ -1,5 +1,5 @@
1
1
  import t from "react";
2
- import { T as e } from "./text-input-field-rac-BbvPB26b.js";
2
+ import { T as e } from "./text-input-field-rac-C2YiMr-g.js";
3
3
  const a = () => /* @__PURE__ */ t.createElement(e, null);
4
4
  export {
5
5
  a as ContactsLastNameRAC
@@ -1,5 +1,5 @@
1
1
  import t from "react";
2
- import { P as e } from "./phone-input-field-rac-BVWzH_TY.js";
2
+ import { P as e } from "./phone-input-field-rac-COlu9IeC.js";
3
3
  const r = () => /* @__PURE__ */ t.createElement(e, null);
4
4
  export {
5
5
  r as ContactsPhoneRAC
@@ -1,5 +1,5 @@
1
1
  import t from "react";
2
- import { T as e } from "./text-input-field-rac-BbvPB26b.js";
2
+ import { T as e } from "./text-input-field-rac-C2YiMr-g.js";
3
3
  const n = () => /* @__PURE__ */ t.createElement(e, null);
4
4
  export {
5
5
  n as ContactsPositionRAC
@@ -1,5 +1,5 @@
1
1
  import e from "react";
2
- import { C as t } from "./checkbox-field-rac-Cna1Va1X.js";
2
+ import { C as t } from "./checkbox-field-rac-CMwmwFMD.js";
3
3
  const c = () => /* @__PURE__ */ e.createElement(t, null);
4
4
  export {
5
5
  c as ContactsSubscribeRAC
@@ -1,5 +1,5 @@
1
1
  import t from "react";
2
- import { T as e } from "./text-input-field-rac-BbvPB26b.js";
2
+ import { T as e } from "./text-input-field-rac-C2YiMr-g.js";
3
3
  const n = () => /* @__PURE__ */ t.createElement(e, null);
4
4
  export {
5
5
  n as ContactsTaxIdRAC
@@ -1,4 +1,4 @@
1
- import { D as r } from "./form-BTUoOcqB.js";
1
+ import { D as r } from "./form-BUqSKOvc.js";
2
2
  const o = {
3
3
  0: r.SUNDAY,
4
4
  1: r.MONDAY,