@wix/form-elements 1.146.0 → 1.148.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (118) hide show
  1. package/dist/component/{appointment-rac-scUix9QX.js → appointment-rac-BNqXl3dq.js} +168 -164
  2. package/dist/component/{bookings-address-rac-CKemkJOO.js → bookings-address-rac-DzLf588z.js} +1 -1
  3. package/dist/component/{bookings-email-rac-CDqdhPAB.js → bookings-email-rac-BCNWH7ss.js} +1 -1
  4. package/dist/component/{bookings-first-name-rac-DEy_7Hjb.js → bookings-first-name-rac-D36aHUOJ.js} +1 -1
  5. package/dist/component/{bookings-header-rac-Bl4xy9lB.js → bookings-header-rac-CNr2y2ES.js} +1 -1
  6. package/dist/component/{bookings-last-name-rac-CsL9xQ1W.js → bookings-last-name-rac-yHE6ZIxr.js} +1 -1
  7. package/dist/component/{bookings-login-bar-rac-DkHYQ4No.js → bookings-login-bar-rac-C3weOc1i.js} +6 -6
  8. package/dist/component/{bookings-phone-rac-BoBiFwbV.js → bookings-phone-rac-CIo_ApRf.js} +1 -1
  9. package/dist/component/{bookings-rich-text-rac-DZZnPKWA.js → bookings-rich-text-rac-rgKnvt57.js} +1 -1
  10. package/dist/component/{checkbox-field-rac-UgLmJxB-.js → checkbox-field-rac-CMaVxLNe.js} +9 -7
  11. package/dist/component/{checkbox-group-field-headless-C809nB0Q.js → checkbox-group-field-headless-XPtqS8Km.js} +68 -68
  12. package/dist/component/{checkbox-group-field-rac-u4i4wG21.js → checkbox-group-field-rac-C_58XfQt.js} +9 -9
  13. package/dist/component/{checkbox-group-rac-DBAQhSo3.js → checkbox-group-rac-FQrWViSh.js} +1 -1
  14. package/dist/component/{checkbox-indicator-module-classes-6173wvuW.js → checkbox-indicator-module-classes-akWZsZNn.js} +1 -1
  15. package/dist/component/{checkbox-rac-FDQVsI5-.js → checkbox-rac-C5Lj2b1N.js} +1 -1
  16. package/dist/component/{contacts-address-rac-DnArylPa.js → contacts-address-rac-OhpLzD0X.js} +1 -1
  17. package/dist/component/{contacts-birthdate-rac-C19jhGEO.js → contacts-birthdate-rac-Dnqq84ct.js} +1 -1
  18. package/dist/component/{contacts-company-rac-Dxs0hs_i.js → contacts-company-rac-DMnTF55t.js} +1 -1
  19. package/dist/component/{contacts-email-rac-D-H43L8r.js → contacts-email-rac-DmZhScW2.js} +1 -1
  20. package/dist/component/{contacts-first-name-rac-DwV5NESk.js → contacts-first-name-rac-B6A4fuzK.js} +1 -1
  21. package/dist/component/{contacts-last-name-rac-C5v2xurf.js → contacts-last-name-rac-DVz97lew.js} +1 -1
  22. package/dist/component/{contacts-phone-rac-D9a5x-xl.js → contacts-phone-rac-DV8aO0uS.js} +1 -1
  23. package/dist/component/{contacts-position-rac-DfsgOv-k.js → contacts-position-rac-BP_yBIE4.js} +1 -1
  24. package/dist/component/{contacts-subscribe-rac-B-Hho0Kb.js → contacts-subscribe-rac-wmTprtLf.js} +1 -1
  25. package/dist/component/{contacts-tax-id-rac-q6TQkB4b.js → contacts-tax-id-rac-CUEPBQye.js} +1 -1
  26. package/dist/component/{date-availability-CMDvf5VU.js → date-availability-BK_0gLRv.js} +1 -1
  27. package/dist/component/{date-input-field-rac-C1WLUct3.js → date-input-field-rac-BfWPvRnd.js} +84 -78
  28. package/dist/component/{date-input-rac-cNQ-nr4D.js → date-input-rac-B7vAMRBX.js} +1 -1
  29. package/dist/component/{date-picker-field-rac-mx11z-MO.js → date-picker-field-rac-CpDY4EkU.js} +111 -105
  30. package/dist/component/{date-picker-rac-DeTz17zC.js → date-picker-rac-BCswaZB1.js} +1 -1
  31. package/dist/component/{date-time-input-field-rac-feQ2E1eU.js → date-time-input-field-rac-D9w4eEa0.js} +135 -129
  32. package/dist/component/{date-time-input-rac-G0s0xP4v.js → date-time-input-rac-_im8-JRC.js} +1 -1
  33. package/dist/component/{dext-checkbox-group-rac-BcTN1nJb.js → dext-checkbox-group-rac-Di7B1Wzv.js} +2 -2
  34. package/dist/component/{dext-checkbox-rac-DX0TOrCO.js → dext-checkbox-rac-BPendOsP.js} +1 -1
  35. package/dist/component/{dext-date-picker-rac-CpDp11oa.js → dext-date-picker-rac-_-Ig9Qn6.js} +1 -1
  36. package/dist/component/{dext-date-time-input-rac-BRvO8izU.js → dext-date-time-input-rac-dKFW87yu.js} +1 -1
  37. package/dist/component/{dext-dropdown-rac-DGZ4Yi_X.js → dext-dropdown-rac-Cpdpps7P.js} +1 -1
  38. package/dist/component/{dext-email-rac-B9YCFHB4.js → dext-email-rac-D4UmYH5m.js} +1 -1
  39. package/dist/component/{dext-number-input-rac-D890dBZf.js → dext-number-input-rac-DUetGnYJ.js} +1 -1
  40. package/dist/component/{dext-phone-rac-BAQftbXo.js → dext-phone-rac-Bsz_DAT9.js} +1 -1
  41. package/dist/component/dext-radio-group-rac-B_soj2FD.js +18 -0
  42. package/dist/component/{dext-rating-input-rac-BqQKVaHo.js → dext-rating-input-rac-cm40qt4O.js} +1 -1
  43. package/dist/component/{dext-tags-rac-zxxKcNUe.js → dext-tags-rac-D1ULx6t1.js} +2 -2
  44. package/dist/component/{dext-text-area-rac-Ctp9SwPg.js → dext-text-area-rac-IkL67rHB.js} +1 -1
  45. package/dist/component/{dext-text-input-rac-c_QMlyjr.js → dext-text-input-rac-DsYSTEL2.js} +1 -1
  46. package/dist/component/{dext-url-input-rac-96pv15aC.js → dext-url-input-rac-BKvEkpYu.js} +1 -1
  47. package/dist/component/{donation-rac-GEWKSLJY.js → donation-rac-CaCXMa-H.js} +87 -85
  48. package/dist/component/{dropdown-field-headless-C3OxMhLE.js → dropdown-field-headless-DcrQK8mL.js} +36 -34
  49. package/dist/component/{dropdown-field-rac-CCXfBmSc.js → dropdown-field-rac-CuGoz_6I.js} +9 -10
  50. package/dist/component/{dropdown-rac-CR7hswXE.js → dropdown-rac-rIe6ZqaZ.js} +1 -1
  51. package/dist/component/{ecom-address-rac-khMuxEFD.js → ecom-address-rac-DT0rzvvp.js} +1 -1
  52. package/dist/component/{ecom-subscription-checkbox-rac-CAi_AHpb.js → ecom-subscription-checkbox-rac-ZfbiME6e.js} +5 -5
  53. package/dist/component/{email-input-field-rac-B83mY2lg.js → email-input-field-rac-8Qn3yskh.js} +62 -62
  54. package/dist/component/{events-repeater-rac-ClEwXgmb.js → events-repeater-rac-DyHrMd3y.js} +25 -21
  55. package/dist/component/{events-rsvp-rac-BJ5q2SVR.js → events-rsvp-rac-CoL-euuc.js} +9 -9
  56. package/dist/component/{field-error-headless-CsYQCsiT.js → field-error-headless-RylIeqXr.js} +6 -6
  57. package/dist/component/{field-label-headless-Yg_1PMSg.js → field-label-headless-d3hZxIEc.js} +15 -15
  58. package/dist/component/field-rac.module-DP0lkkEv.js +25 -0
  59. package/dist/component/{file-upload-rac-DJsuI_lR.js → file-upload-rac-rXbabrgc.js} +172 -168
  60. package/dist/component/{fixed-payment-rac-BMFe9wxU.js → fixed-payment-rac-CaR7pXXA.js} +13 -13
  61. package/dist/component/{form-Bed4Kfz8.js → form-DhIEC3nB.js} +2309 -2308
  62. package/dist/component/form.css +1 -1
  63. package/dist/component/form.js +2 -2
  64. package/dist/component/{header-field-rac-DPQTrOSZ.js → header-field-rac-nELbyGjP.js} +4 -4
  65. package/dist/component/{header-rac-CzXsuLmE.js → header-rac-q80EQNmM.js} +1 -1
  66. package/dist/component/{image-choice-rac-R_4pbOSr.js → image-choice-rac-CLMiTQK0.js} +42 -42
  67. package/dist/component/{index-DZxHlvzt.js → index-C-jVrv9Y.js} +91 -91
  68. package/dist/component/{index-qSZCe_WC.js → index-DnLJzPM-.js} +2 -2
  69. package/dist/component/{isObjectLike-B-a5uaU-.js → isObjectLike-Bf577MHV.js} +15 -15
  70. package/dist/component/{multiline-address-field-rac-rv4IZZy_.js → multiline-address-field-rac-BVAv1w9F.js} +155 -137
  71. package/dist/component/{multiline-address-rac-DZ7cYtgn.js → multiline-address-rac-qMuUHA9U.js} +1 -1
  72. package/dist/component/{number-input-field-rac-CL9iXKIf.js → number-input-field-rac-B_vnBWFG.js} +24 -22
  73. package/dist/component/{number-input-rac-BeGn6qJR.js → number-input-rac-BPCIW8Fz.js} +1 -1
  74. package/dist/component/{password-rac-DfvhdsKG.js → password-rac-D72HG72u.js} +28 -26
  75. package/dist/component/{payment-input-rac-BmMfi5rf.js → payment-input-rac-DthVgsAi.js} +32 -30
  76. package/dist/component/{phone-input-field-rac-DW0a1pXs.js → phone-input-field-rac-XIPkH8Fb.js} +46 -46
  77. package/dist/component/{phone-rac-quZjJ08H.js → phone-rac-U94fCfer.js} +1 -1
  78. package/dist/component/{product-list-rac-Ci0KB7sN.js → product-list-rac-BRMGPyhr.js} +78 -78
  79. package/dist/component/{quiz-radio-group-rac--UUtGx2t.js → quiz-radio-group-rac-DafNzzgX.js} +1 -1
  80. package/dist/component/radio-button-module-classes-DtFlHID_.js +134 -0
  81. package/dist/component/{radio-group-field-rac-w8fHpFKJ.js → radio-group-field-rac-BXrYWjew.js} +13 -13
  82. package/dist/component/{radio-group-rac-jO8aghii.js → radio-group-rac-BNyFfQYV.js} +1 -1
  83. package/dist/component/{rating-input-field-rac-BRc2PtqE.js → rating-input-field-rac-KbkiVCZ7.js} +27 -27
  84. package/dist/component/{rating-input-rac-D9zs06xR.js → rating-input-rac-zT4vPkwP.js} +1 -1
  85. package/dist/component/{rich-content-rac.module-Cv3ZmD00.js → rich-content-rac.module-C0OQetct.js} +8 -8
  86. package/dist/component/{rich-text-field-rac-BmWuIfA8.js → rich-text-field-rac-T4NoShC0.js} +4 -4
  87. package/dist/component/{rich-text-rac-BnqnrvB1.js → rich-text-rac-m6VRCRZu.js} +1 -1
  88. package/dist/component/{service-dropdown-rac-Cl81KfJU.js → service-dropdown-rac-BFwKhL1l.js} +44 -45
  89. package/dist/component/{services-multi-choice-rac-sQ1NF9hY.js → services-multi-choice-rac-DjzcuRWv.js} +13 -13
  90. package/dist/component/{signature-rac-Huairu7V.js → signature-rac-B1LPKnIw.js} +281 -279
  91. package/dist/component/{submit-button-rac-Dpg7N0TG.js → submit-button-rac-Cz3PVtW4.js} +25 -25
  92. package/dist/component/{tags-field-rac-BQ8TEqXH.js → tags-field-rac-DzSoL__s.js} +82 -82
  93. package/dist/component/{tags-rac-CFOmyCCc.js → tags-rac-DMYJDrm-.js} +1 -1
  94. package/dist/component/{text-area-field-rac-DNiMa7d3.js → text-area-field-rac-SuMzBm-Q.js} +30 -28
  95. package/dist/component/{text-area-rac-kLFe-KbZ.js → text-area-rac-C-zmnJgt.js} +1 -1
  96. package/dist/component/{text-input-field-rac-CqENSUUX.js → text-input-field-rac-BmQlXTK9.js} +6 -6
  97. package/dist/component/text-input-headless-BsrjGTK4.js +47 -0
  98. package/dist/component/{text-input-rac-uYQEfOtE.js → text-input-rac-DhQFKG4h.js} +1 -1
  99. package/dist/component/time-input-rac-CRZZdbTI.js +161 -0
  100. package/dist/component/{url-input-field-rac-BioH7kuz.js → url-input-field-rac-D617Pvsf.js} +30 -28
  101. package/dist/component/{url-input-rac-D2VSSyqW.js → url-input-rac-CLvxaWZz.js} +1 -1
  102. package/dist/component/use-dropdown-trigger-class-name-C4uqTKFP.js +117 -0
  103. package/dist/component/{use-element-state-class-name-oiKCauK-.js → use-element-state-class-name-DJx-T0zf.js} +3 -3
  104. package/dist/component/use-hoverable-input-class-name-pwVZXwrY.js +25 -0
  105. package/dist/component/use-is-forced-open-dropdown-DBpm1D-o.js +48 -0
  106. package/dist/component/{use-service-options-base-DXG60hA5.js → use-service-options-base-xHeVTve3.js} +6 -6
  107. package/dist/component/use-text-input-class-name-CrEjJ2Z8.js +6 -0
  108. package/dist/form.d.ts +5 -0
  109. package/package.json +2 -2
  110. package/dist/component/dext-radio-group-rac-CtEjnu_X.js +0 -18
  111. package/dist/component/field-rac.module-DfEb7pBp.js +0 -25
  112. package/dist/component/radio-button-module-classes-CqdBGknT.js +0 -132
  113. package/dist/component/text-input-headless-BdPkEeK2.js +0 -45
  114. package/dist/component/time-input-rac-BYoojlJ9.js +0 -159
  115. package/dist/component/use-dropdown-option-class-name-BEmvU-Gg.js +0 -115
  116. package/dist/component/use-dropdown-trigger-class-name-qj9skLWZ.js +0 -40
  117. package/dist/component/use-hoverable-input-class-name-BW3nCyhG.js +0 -25
  118. package/dist/component/use-text-input-class-name-BhQFcXYH.js +0 -6
@@ -1,5 +1,5 @@
1
1
  import e from "react";
2
- import { M as o } from "./multiline-address-field-rac-rv4IZZy_.js";
2
+ import { M as o } from "./multiline-address-field-rac-BVAv1w9F.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-B83mY2lg.js";
2
+ import { E as e } from "./email-input-field-rac-8Qn3yskh.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-CqENSUUX.js";
2
+ import { T as e } from "./text-input-field-rac-BmQlXTK9.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-DPQTrOSZ.js";
2
+ import { H as r } from "./header-field-rac-nELbyGjP.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-CqENSUUX.js";
2
+ import { T as e } from "./text-input-field-rac-BmQlXTK9.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 { bn as d, bx as b, bf as f, bj as x, P as p } from "./form-Bed4Kfz8.js";
3
+ import { bo as d, by as b, bg as f, bk as x, Q as p } from "./form-DhIEC3nB.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", C = "_text_1ixk2_34", k = "_button_1ixk2_39", u = {
47
+ const T = "_container_1ixk2_1", k = "_text_1ixk2_34", C = "_button_1ixk2_39", u = {
48
48
  container: T,
49
- text: C,
50
- button: k
51
- }, A = () => {
49
+ text: k,
50
+ button: C
51
+ }, y = () => {
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", C = "_text_1ixk2_34", k = "_button_1ixk2_39", u
67
67
  }), /* @__PURE__ */ o.createElement(l.Button, {
68
68
  className: u.button
69
69
  })));
70
- }, h = () => /* @__PURE__ */ o.createElement(A, null);
70
+ }, h = () => /* @__PURE__ */ o.createElement(y, 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-DW0a1pXs.js";
2
+ import { P as e } from "./phone-input-field-rac-XIPkH8Fb.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-BmWuIfA8.js";
2
+ import { R as t } from "./rich-text-field-rac-T4NoShC0.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 { aX as ei, bn as Zr, aF as Qr, aE as fn, bx as ri, bf as ti, b3 as ai, bk as ni, bp as ii, n as si, $ as oi, s as ui, aA as ci, G as fi, u as li, r as _i } from "./form-Bed4Kfz8.js";
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-DhIEC3nB.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-CsYQCsiT.js";
7
+ import { D as hi, E as pi } from "./field-error-headless-RylIeqXr.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-B-a5uaU-.js";
9
+ import { c as re, r as $, e as S, a as J, d as yi, b as bi } from "./isObjectLike-Bf577MHV.js";
10
10
  import { S as gi } from "./selection-indicator-XQ8MYHUQ.js";
11
11
  import { E as qi } from "./error-icon-hZxQ6DEy.js";
12
- import { C as Ci } from "./checkbox-indicator-module-classes-6173wvuW.js";
13
- import { s as oe } from "./field-rac.module-DfEb7pBp.js";
14
- import { u as Ai } from "./use-element-state-class-name-oiKCauK-.js";
12
+ import { C as Ci } from "./checkbox-indicator-module-classes-akWZsZNn.js";
13
+ import { s as oe } from "./field-rac.module-DP0lkkEv.js";
14
+ import { u as Ai } from "./use-element-state-class-name-DJx-T0zf.js";
15
15
  var ue, dt;
16
16
  function mi() {
17
17
  if (dt) return ue;
@@ -1254,7 +1254,9 @@ const Bs = /* @__PURE__ */ ei(Ks), ks = (e, r, t) => {
1254
1254
  const { id: t, value: a, onChange: n, disabled: i, required: s, readOnly: o, onBlur: u, onFocus: c, hasError: v } = Zr(), { inputId: _, ariaDescribedBy: p } = ni(), y = Jn(null);
1255
1255
  ii(() => {
1256
1256
  var g;
1257
- (g = y.current) == null || g.focus();
1257
+ (g = y.current) == null || g.focus({
1258
+ preventScroll: !0
1259
+ });
1258
1260
  }, t);
1259
1261
  const q = W(e, X.RichTextLabel), C = W(e, X.Input), m = Yn((g) => {
1260
1262
  n(g);
@@ -1,37 +1,37 @@
1
- import o, { useMemo as k, useCallback as $, useRef as w, useState as W, useEffect as A } from "react";
1
+ import r, { useMemo as y, useCallback as $, useRef as w, useState as W, useEffect as A } from "react";
2
2
  import { CheckboxGroup as M, CheckboxField as j, CheckboxButton as z, TextField as J, Input as K } from "react-aria-components";
3
3
  import { debounce as Q } from "ts-debounce";
4
- import { bn as R, bk as U, bx as X, bp as Y } from "./form-Bed4Kfz8.js";
4
+ import { bo as R, bl as U, by as X, bq as Y } from "./form-DhIEC3nB.js";
5
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-CsYQCsiT.js";
7
- import { L as te } from "./field-label-headless-Yg_1PMSg.js";
8
- import { F as ne } from "./fieldset-headless-CD3fds9J.js";
9
- import { S as ae } from "./selection-indicator-XQ8MYHUQ.js";
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
- const n = t ? t.length + 2 : 0;
15
- return (e.find((s) => s.startsWith(`${t}: `)) || "").slice(n);
6
+ import { D as Z, E as ee } from "./field-error-headless-RylIeqXr.js";
7
+ import { L as te } from "./field-label-headless-d3hZxIEc.js";
8
+ import { F as ae } from "./fieldset-headless-CD3fds9J.js";
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) => {
14
+ const a = t ? t.length + 2 : 0;
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 r = R(), { id: n, value: a, 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 = k(() => a || [], [
18
- a
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 || [], [
18
+ n
19
19
  ]), V = $((b) => {
20
20
  s == null || s(b);
21
21
  }, [
22
22
  s
23
23
  ]);
24
- return /* @__PURE__ */ o.createElement(i, {
25
- fieldId: n,
24
+ return /* @__PURE__ */ r.createElement(i, {
25
+ fieldId: a,
26
26
  renderLabel: () => E,
27
- renderInput: () => /* @__PURE__ */ o.createElement(ne, {
27
+ renderInput: () => /* @__PURE__ */ r.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__ */ o.createElement(M, {
34
+ }, /* @__PURE__ */ r.createElement(M, {
35
35
  className: t,
36
36
  "aria-labelledby": u,
37
37
  value: O,
@@ -40,21 +40,21 @@ const B = "Other", le = (e, t) => e.some((r) => !t.includes(r)), N = (e, t) => e
40
40
  isRequired: p,
41
41
  isInvalid: c
42
42
  }, g)),
43
- renderDescription: () => /* @__PURE__ */ o.createElement(o.Fragment, null, l, C)
43
+ renderDescription: () => /* @__PURE__ */ r.createElement(r.Fragment, null, l, C)
44
44
  });
45
45
  }, _ = ({ children: e, className: t }) => {
46
- const r = R(), { id: n, options: a, addOther: s, addOtherLabel: d, numberOfColumns: p } = r, { t: f } = X(), m = I(e, _.Option), c = se(d, f);
47
- return /* @__PURE__ */ o.createElement("div", {
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", {
48
48
  className: t,
49
49
  "data-columns": p
50
- }, a == null ? void 0 : a.map((i, h) => {
50
+ }, n == null ? void 0 : n.map((i, h) => {
51
51
  const u = i.value ?? i.label;
52
52
  return F(m, {
53
53
  key: i.id || i.label,
54
54
  value: u,
55
55
  label: i.label,
56
56
  isFirst: h === 0,
57
- fieldId: n
57
+ fieldId: a
58
58
  });
59
59
  }), s && F(m, {
60
60
  key: B,
@@ -62,65 +62,65 @@ const B = "Other", le = (e, t) => e.some((r) => !t.includes(r)), N = (e, t) => e
62
62
  label: c,
63
63
  isOther: !0
64
64
  }));
65
- }, re = ({ className: e, ...t }) => {
66
- const { label: r } = t;
67
- return /* @__PURE__ */ o.createElement("span", {
65
+ }, oe = ({ className: e, ...t }) => {
66
+ const { label: o } = t;
67
+ return /* @__PURE__ */ r.createElement("span", {
68
68
  className: e
69
- }, r);
70
- }, y = ({ children: e, className: t, ...r }) => {
71
- const { value: n, label: a, 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);
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);
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, y.Label), C = I(e, y.Input), l = k(() => m || [], [
78
+ const g = I(e, k.Label), C = I(e, k.Input), l = y(() => m || [], [
79
79
  m
80
- ]), O = k(() => d ? l.find((b) => b === a || b.startsWith(`${a}: `)) || a : n, [
80
+ ]), O = y(() => d ? l.find((b) => b === n || b.startsWith(`${n}: `)) || n : a, [
81
81
  d,
82
82
  l,
83
- a,
84
- n
83
+ n,
84
+ a
85
85
  ]), V = $((b) => {
86
86
  if (!d)
87
87
  return;
88
88
  const D = S(L || []), x = l.filter((P) => D.includes(P)), H = b ? [
89
89
  ...x,
90
- a
90
+ n
91
91
  ] : x;
92
92
  c == null || c(H);
93
93
  }, [
94
94
  d,
95
- a,
95
+ n,
96
96
  c,
97
97
  L,
98
98
  l
99
99
  ]);
100
- return /* @__PURE__ */ o.createElement(j, {
100
+ return /* @__PURE__ */ r.createElement(j, {
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__ */ o.createElement(z, {
106
+ }, /* @__PURE__ */ r.createElement(z, {
107
107
  ref: E,
108
108
  className: t,
109
- "data-hook": `checkbox-${a}`
110
- }, ({ isSelected: b, isHovered: D, isFocused: x }) => /* @__PURE__ */ o.createElement(o.Fragment, null, F(C, {
109
+ "data-hook": `checkbox-${n}`
110
+ }, ({ isSelected: b, isHovered: D, isFocused: x }) => /* @__PURE__ */ r.createElement(r.Fragment, null, F(C, {
111
111
  isSelected: b,
112
112
  isHovered: D,
113
113
  isFocused: x
114
114
  }), F(g, {
115
- label: a
115
+ label: n
116
116
  }))));
117
117
  };
118
- y.Label = re;
119
- y.Input = ae;
120
- const T = ({ children: e, ...t }) => {
121
- const { value: r, label: n, isFirst: a = !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 = k(() => f || [], [
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 || [], [
122
122
  f
123
- ]), O = k(() => {
123
+ ]), O = y(() => {
124
124
  if (!s)
125
125
  return !1;
126
126
  const V = S(c || []);
@@ -130,48 +130,48 @@ const T = ({ children: e, ...t }) => {
130
130
  l,
131
131
  c
132
132
  ]);
133
- return /* @__PURE__ */ o.createElement(o.Fragment, null, F(g, {
134
- value: r,
135
- label: n,
136
- isFirst: a,
133
+ return /* @__PURE__ */ r.createElement(r.Fragment, null, F(g, {
134
+ value: o,
135
+ label: a,
136
+ isFirst: n,
137
137
  isOther: s,
138
138
  fieldId: d
139
139
  }), s && O && F(C, {
140
140
  fieldValue: l,
141
141
  onChange: m,
142
- label: n,
142
+ label: a,
143
143
  placeholder: i,
144
144
  maxLength: h,
145
145
  disabled: u,
146
146
  readOnly: L,
147
147
  hasError: E,
148
- ariaLabel: n,
149
- addOtherLabel: n,
148
+ ariaLabel: a,
149
+ addOtherLabel: a,
150
150
  options: c
151
151
  }));
152
- }, G = ({ className: e, inputClassName: t, ...r }) => {
153
- const { fieldValue: n, onChange: a, label: s, placeholder: d, maxLength: p, disabled: f, readOnly: m, hasError: c, ariaLabel: i, addOtherLabel: h, options: u } = r, [L, E] = W(() => {
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(() => {
154
154
  const l = S(u || []);
155
- return N(n, l) ? q(n, h) : "";
155
+ return N(a, l) ? T(a, h) : "";
156
156
  });
157
157
  A(() => {
158
- const l = S(u || []), O = N(n, l);
159
- E(O ? q(n, h) : "");
158
+ const l = S(u || []), O = N(a, l);
159
+ E(O ? T(a, h) : "");
160
160
  }, [
161
- n,
161
+ a,
162
162
  u,
163
163
  h
164
164
  ]);
165
- const g = k(() => Q((l) => {
166
- const O = S(u || []), V = n.filter((x) => O.includes(x)), b = l ? `${h}: ${l}` : s, D = [
165
+ const g = y(() => Q((l) => {
166
+ const O = S(u || []), V = a.filter((x) => O.includes(x)), b = l ? `${h}: ${l}` : s, D = [
167
167
  ...V,
168
168
  b
169
169
  ];
170
- a(D);
170
+ n(D);
171
171
  }, 500), [
172
- a,
173
- u,
174
172
  n,
173
+ u,
174
+ a,
175
175
  h,
176
176
  s
177
177
  ]), C = $((l) => {
@@ -179,7 +179,7 @@ const T = ({ children: e, ...t }) => {
179
179
  }, [
180
180
  g
181
181
  ]);
182
- return /* @__PURE__ */ o.createElement(J, {
182
+ return /* @__PURE__ */ r.createElement(J, {
183
183
  "aria-label": i,
184
184
  value: L,
185
185
  onChange: C,
@@ -187,7 +187,7 @@ const T = ({ children: e, ...t }) => {
187
187
  isReadOnly: m,
188
188
  isInvalid: c,
189
189
  className: e
190
- }, /* @__PURE__ */ o.createElement(K, {
190
+ }, /* @__PURE__ */ r.createElement(K, {
191
191
  className: t,
192
192
  placeholder: d,
193
193
  maxLength: p,
@@ -196,9 +196,9 @@ const T = ({ children: e, ...t }) => {
196
196
  };
197
197
  v.Label = te;
198
198
  v.Options = _;
199
- _.Option = T;
200
- T.Checkbox = y;
201
- T.OtherInput = G;
199
+ _.Option = q;
200
+ q.Checkbox = k;
201
+ q.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-C809nB0Q.js";
4
+ import { C as t } from "./checkbox-group-field-headless-XPtqS8Km.js";
5
5
  import { E as n } from "./error-icon-hZxQ6DEy.js";
6
- import { C as c } from "./checkbox-indicator-module-classes-6173wvuW.js";
7
- import { s } from "./field-rac.module-DfEb7pBp.js";
8
- import { R as i, $ as E, o as p, q as C, G as O, u as _, p as R } from "./form-Bed4Kfz8.js";
6
+ import { C as c } from "./checkbox-indicator-module-classes-akWZsZNn.js";
7
+ import { s } from "./field-rac.module-DP0lkkEv.js";
8
+ import { S as i, a0 as E, o as p, q as C, H as O, v as _, p as I } from "./form-DhIEC3nB.js";
9
9
  import { o as l } from "./options-rac.module-_THNq6Qq.js";
10
- import { u as I } from "./use-element-state-class-name-oiKCauK-.js";
11
- import { u as L } from "./use-text-input-class-name-BhQFcXYH.js";
10
+ import { u as L } from "./use-element-state-class-name-DJx-T0zf.js";
11
+ import { u as R } from "./use-text-input-class-name-CrEjJ2Z8.js";
12
12
  const u = ({ content: o, locale: r }) => /* @__PURE__ */ e.createElement(m, {
13
13
  content: o,
14
14
  locale: r
15
15
  }), k = () => {
16
- const o = I({
17
- globalClasses: R,
16
+ const o = L({
17
+ globalClasses: I,
18
18
  moduleClasses: c
19
- }), r = L();
19
+ }), r = 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, {
@@ -1,5 +1,5 @@
1
1
  import e from "react";
2
- import { C as o } from "./checkbox-group-field-rac-u4i4wG21.js";
2
+ import { C as o } from "./checkbox-group-field-rac-C_58XfQt.js";
3
3
  const c = () => /* @__PURE__ */ e.createElement(o, null);
4
4
  export {
5
5
  c as CheckboxGroupRAC
@@ -1,4 +1,4 @@
1
- import { s as e } from "./field-rac.module-DfEb7pBp.js";
1
+ import { s as e } from "./field-rac.module-DP0lkkEv.js";
2
2
  const o = {
3
3
  base: e.checkboxInput,
4
4
  selected: e.checkboxInputSelected,
@@ -1,5 +1,5 @@
1
1
  import e from "react";
2
- import { C as o } from "./checkbox-field-rac-UgLmJxB-.js";
2
+ import { C as o } from "./checkbox-field-rac-CMaVxLNe.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-CqENSUUX.js";
2
+ import { T as e } from "./text-input-field-rac-BmQlXTK9.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-C1WLUct3.js";
2
+ import { D as e } from "./date-input-field-rac-BfWPvRnd.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-CqENSUUX.js";
2
+ import { T as e } from "./text-input-field-rac-BmQlXTK9.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-B83mY2lg.js";
2
+ import { E as e } from "./email-input-field-rac-8Qn3yskh.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-CqENSUUX.js";
2
+ import { T as e } from "./text-input-field-rac-BmQlXTK9.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-CqENSUUX.js";
2
+ import { T as e } from "./text-input-field-rac-BmQlXTK9.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-DW0a1pXs.js";
2
+ import { P as e } from "./phone-input-field-rac-XIPkH8Fb.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-CqENSUUX.js";
2
+ import { T as e } from "./text-input-field-rac-BmQlXTK9.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-UgLmJxB-.js";
2
+ import { C as t } from "./checkbox-field-rac-CMaVxLNe.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-CqENSUUX.js";
2
+ import { T as e } from "./text-input-field-rac-BmQlXTK9.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-Bed4Kfz8.js";
1
+ import { D as r } from "./form-DhIEC3nB.js";
2
2
  const o = {
3
3
  0: r.SUNDAY,
4
4
  1: r.MONDAY,