@wix/form-elements 1.159.0 → 1.160.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 (116) hide show
  1. package/dist/component/{appointment-rac-CpiyUOXo.js → appointment-rac-BmHu56e5.js} +63 -63
  2. package/dist/component/{bookings-address-rac-BBEUV1t7.js → bookings-address-rac-DY9l2g0h.js} +1 -1
  3. package/dist/component/{bookings-email-rac-DdfoeLFV.js → bookings-email-rac-B5vNSOsS.js} +1 -1
  4. package/dist/component/{bookings-first-name-rac-DH39yvQ-.js → bookings-first-name-rac-CJiefCNz.js} +1 -1
  5. package/dist/component/{bookings-header-rac-StLm7b4I.js → bookings-header-rac-BFu7Ko5w.js} +1 -1
  6. package/dist/component/{bookings-last-name-rac-DHZMPMOO.js → bookings-last-name-rac-DegMM13h.js} +1 -1
  7. package/dist/component/{bookings-login-bar-rac-DrHp1ojM.js → bookings-login-bar-rac-DrA-5tBH.js} +7 -7
  8. package/dist/component/{bookings-phone-rac-6aGjbavK.js → bookings-phone-rac-DsaeqxCI.js} +1 -1
  9. package/dist/component/{bookings-rich-text-rac-DBlGZUM5.js → bookings-rich-text-rac-jRHiwqi8.js} +1 -1
  10. package/dist/component/{checkbox-field-rac-Cna1Va1X.js → checkbox-field-rac-CyoBb6Yf.js} +43 -43
  11. package/dist/component/{checkbox-group-field-headless-m_-10Mdx.js → checkbox-group-field-headless-Bv1gU3oL.js} +54 -54
  12. package/dist/component/{checkbox-group-field-rac-BSCi5hmx.js → checkbox-group-field-rac-DasArcdV.js} +6 -6
  13. package/dist/component/{checkbox-group-rac-BWYQZmAI.js → checkbox-group-rac-CzmufV1U.js} +1 -1
  14. package/dist/component/{checkbox-rac-BsUTfSUf.js → checkbox-rac-6C7XoUoZ.js} +1 -1
  15. package/dist/component/{contacts-address-rac-DwCLW8rV.js → contacts-address-rac-BZobbFtz.js} +1 -1
  16. package/dist/component/{contacts-birthdate-rac-DnNgxbKb.js → contacts-birthdate-rac-DIzf41DS.js} +1 -1
  17. package/dist/component/{contacts-company-rac-BQqXzpNl.js → contacts-company-rac-BiBDO28r.js} +1 -1
  18. package/dist/component/{contacts-email-rac-BINnZzxp.js → contacts-email-rac-5mqokCSD.js} +1 -1
  19. package/dist/component/{contacts-first-name-rac-DBWKFkIU.js → contacts-first-name-rac-BXe3_Nz5.js} +1 -1
  20. package/dist/component/{contacts-last-name-rac-D_-qrF7I.js → contacts-last-name-rac-Cfqgh7u1.js} +1 -1
  21. package/dist/component/{contacts-phone-rac-7n7JkSDr.js → contacts-phone-rac-cmLUWnAc.js} +1 -1
  22. package/dist/component/{contacts-position-rac-DvXP8nvT.js → contacts-position-rac-DTyvklfN.js} +1 -1
  23. package/dist/component/{contacts-subscribe-rac-DnLnV5Gm.js → contacts-subscribe-rac-D-ZEX1A3.js} +1 -1
  24. package/dist/component/{contacts-tax-id-rac-BJVWhvYW.js → contacts-tax-id-rac-B4NYJwWt.js} +1 -1
  25. package/dist/component/{date-availability-Df807-eN.js → date-availability-Dach9aRC.js} +1 -1
  26. package/dist/component/date-input-field-rac-B72mHcya.js +309 -0
  27. package/dist/component/{date-input-rac-CSB3MWHW.js → date-input-rac-CYix11gT.js} +1 -1
  28. package/dist/component/{date-picker-field-rac-CySThPfz.js → date-picker-field-rac-B8pvtPir.js} +86 -86
  29. package/dist/component/{date-picker-rac-Fp8_pxtf.js → date-picker-rac-D6cR0zH9.js} +1 -1
  30. package/dist/component/date-time-input-field-rac-B7Y3Yf5l.js +441 -0
  31. package/dist/component/{date-time-input-rac-wctMR4uM.js → date-time-input-rac-DMN-noQX.js} +1 -1
  32. package/dist/component/{dext-checkbox-group-rac-erMPfwFL.js → dext-checkbox-group-rac-Kq0GnteP.js} +2 -2
  33. package/dist/component/{dext-checkbox-rac-DQSq9Lqd.js → dext-checkbox-rac-BY9GZ4n1.js} +1 -1
  34. package/dist/component/{dext-date-picker-rac-RCLcd1VV.js → dext-date-picker-rac-CXArIddp.js} +1 -1
  35. package/dist/component/{dext-date-time-input-rac-DMolWzvy.js → dext-date-time-input-rac-B39TtxGq.js} +1 -1
  36. package/dist/component/{dext-dropdown-rac-wQ2GJL4V.js → dext-dropdown-rac-C3y0G8cS.js} +1 -1
  37. package/dist/component/{dext-email-rac-BtymBVTW.js → dext-email-rac-BIg3cq7Q.js} +1 -1
  38. package/dist/component/{dext-number-input-rac-DHPiK0Z3.js → dext-number-input-rac-27sHJ7yN.js} +1 -1
  39. package/dist/component/{dext-phone-rac-C58vHEEe.js → dext-phone-rac-CcohoFQp.js} +1 -1
  40. package/dist/component/dext-radio-group-rac-eead3Gve.js +18 -0
  41. package/dist/component/{dext-rating-input-rac-DI0k3tVa.js → dext-rating-input-rac-B_E6OcBr.js} +1 -1
  42. package/dist/component/{dext-tags-rac-DmF6ctvQ.js → dext-tags-rac-Yd9aAtnF.js} +2 -2
  43. package/dist/component/{dext-text-area-rac-Bv6ridbR.js → dext-text-area-rac-CMACri2C.js} +1 -1
  44. package/dist/component/{dext-text-input-rac-DoTAdUgU.js → dext-text-input-rac-sNjSCfQ-.js} +1 -1
  45. package/dist/component/{dext-url-input-rac-BuoMS6g2.js → dext-url-input-rac-DwhbzJty.js} +1 -1
  46. package/dist/component/{donation-rac-CjZalSgn.js → donation-rac-BVAN3kMk.js} +77 -77
  47. package/dist/component/{dropdown-field-rac-By_fpqhx.js → dropdown-field-rac-DdoGigWx.js} +14 -14
  48. package/dist/component/{dropdown-rac-BnIEC4RX.js → dropdown-rac-CRkt5w47.js} +1 -1
  49. package/dist/component/{ecom-address-rac-B6Usk1Ty.js → ecom-address-rac-C36hFHW0.js} +1 -1
  50. package/dist/component/{ecom-subscription-checkbox-rac-B4B0wzlC.js → ecom-subscription-checkbox-rac-BKfQ348w.js} +2 -2
  51. package/dist/component/{email-input-field-rac-Df3KI3_v.js → email-input-field-rac-MOaISYxa.js} +59 -59
  52. package/dist/component/{events-repeater-rac-B2iBk8lV.js → events-repeater-rac-D6p-NgE8.js} +20 -20
  53. package/dist/component/{events-rsvp-rac-xl_qCIh3.js → events-rsvp-rac-DVpgN8gm.js} +18 -18
  54. package/dist/component/{field-error-headless-DWc76YmY.js → field-error-headless-XNWmDH3E.js} +4 -4
  55. package/dist/component/{field-label-headless-DKBKqI2X.js → field-label-headless-CORRAJGt.js} +4 -4
  56. package/dist/component/{file-upload-rac-BVj4cRqe.js → file-upload-rac-DRMr7E4b.js} +89 -89
  57. package/dist/component/{fixed-payment-rac-BS1Hb4hg.js → fixed-payment-rac-BUXzNex9.js} +18 -18
  58. package/dist/component/{form-BTUoOcqB.js → form-DSpx-AO8.js} +785 -728
  59. package/dist/component/form.js +1 -1
  60. package/dist/component/{header-field-rac-DTJ_Us6u.js → header-field-rac-CiDXlNsa.js} +6 -6
  61. package/dist/component/{header-rac-CvYp0Jjo.js → header-rac-B5Rg-h8u.js} +1 -1
  62. package/dist/component/{image-choice-rac--qrYqKJl.js → image-choice-rac-CtoA_KDp.js} +22 -22
  63. package/dist/component/{index-DIl9BH2M.js → index-Bz7ZhQsF.js} +53 -53
  64. package/dist/component/{index-CoEV4QEy.js → index-CwruESwc.js} +5 -5
  65. package/dist/component/{isObjectLike-CLN09X5V.js → isObjectLike-C5dHxHP0.js} +11 -11
  66. package/dist/component/multiline-address-field-rac-Z-qF366L.js +1664 -0
  67. package/dist/component/{multiline-address-rac-DtaAJjbR.js → multiline-address-rac-CJIHTMw5.js} +1 -1
  68. package/dist/component/{number-input-field-rac-2gqDUlw9.js → number-input-field-rac-D4vf6I6N.js} +29 -29
  69. package/dist/component/{number-input-rac-BlciEPLN.js → number-input-rac-B2jW6JUQ.js} +1 -1
  70. package/dist/component/{password-rac-BvvQgafk.js → password-rac-DGRZ17Jl.js} +29 -29
  71. package/dist/component/{payment-input-rac-CSRyOPPr.js → payment-input-rac-BtD-tAKv.js} +27 -27
  72. package/dist/component/phone-input-field-rac-KD4-APhr.js +512 -0
  73. package/dist/component/{phone-rac-DMP1MoRs.js → phone-rac-Cw2yccgg.js} +1 -1
  74. package/dist/component/{product-list-rac-WQ9Qhzum.js → product-list-rac-XbzTDdbp.js} +33 -33
  75. package/dist/component/{quiz-radio-group-rac-DzrL3-gZ.js → quiz-radio-group-rac-BDw_mAw5.js} +1 -1
  76. package/dist/component/{radio-button-module-classes-CJk18LzO.js → radio-button-module-classes-CFGf0Hzh.js} +23 -23
  77. package/dist/component/{radio-group-field-rac-DGoMoSgo.js → radio-group-field-rac-CXN7tyVu.js} +6 -6
  78. package/dist/component/{radio-group-rac-DhAELVNV.js → radio-group-rac-COHzqjBh.js} +1 -1
  79. package/dist/component/{rating-input-field-rac-CFoesqmC.js → rating-input-field-rac-DCXNZgf1.js} +37 -37
  80. package/dist/component/{rating-input-rac-CFMIxche.js → rating-input-rac-DwQt9ML7.js} +1 -1
  81. package/dist/component/{rich-content-rac.module-xJ03MegT.js → rich-content-rac.module-B7rPwNns.js} +8 -8
  82. package/dist/component/{rich-text-field-rac-CBMY4JOB.js → rich-text-field-rac-DlER7NRD.js} +4 -4
  83. package/dist/component/{rich-text-rac-CvZ7s1Ct.js → rich-text-rac-CjicsHA7.js} +1 -1
  84. package/dist/component/service-dropdown-rac-B81LC_6_.js +145 -0
  85. package/dist/component/{services-multi-choice-rac-fXOov4K7.js → services-multi-choice-rac-BR6gZeHk.js} +16 -16
  86. package/dist/component/{signature-rac-CG_Q9Oxr.js → signature-rac-XFj7Ddtp.js} +69 -69
  87. package/dist/component/{submit-button-rac-DAsovEp2.js → submit-button-rac-Bz7zs_3W.js} +12 -12
  88. package/dist/component/{tags-field-rac-9mpOMPLm.js → tags-field-rac-DWWkNKqc.js} +22 -22
  89. package/dist/component/{tags-rac-CNBJ08wS.js → tags-rac-BXyiQ9i1.js} +1 -1
  90. package/dist/component/{text-area-field-rac-D4aTm7CM.js → text-area-field-rac-DsIRYi0d.js} +21 -21
  91. package/dist/component/{text-area-rac-DoKiH_Kv.js → text-area-rac-CF9pDP9d.js} +1 -1
  92. package/dist/component/{text-input-field-rac-BbvPB26b.js → text-input-field-rac-BwIDZACz.js} +5 -5
  93. package/dist/component/{text-input-headless-BGaBRrP1.js → text-input-headless-5kQs2_Xu.js} +14 -14
  94. package/dist/component/{text-input-rac-1ac1EKad.js → text-input-rac-CRmSuw1k.js} +1 -1
  95. package/dist/component/{time-input-rac-BS0rR-89.js → time-input-rac-BRMNpe51.js} +20 -20
  96. package/dist/component/{url-input-field-rac-DbO6ATng.js → url-input-field-rac-CKLS3QDk.js} +17 -17
  97. package/dist/component/{url-input-rac-DHuny3d-.js → url-input-rac-Dv-kp50D.js} +1 -1
  98. package/dist/component/use-dropdown-option-class-name-BQi_qE_-.js +116 -0
  99. package/dist/component/use-dropdown-trigger-class-name-bAK8aHiG.js +96 -0
  100. package/dist/component/{use-element-state-class-name-BUsFQfoW.js → use-element-state-class-name-rXM_lHug.js} +1 -1
  101. package/dist/component/{use-hoverable-input-class-name-C2l3G8gb.js → use-hoverable-input-class-name-BnV_uerV.js} +2 -2
  102. package/dist/component/use-is-forced-open-dropdown-Bp-5Xpmw.js +53 -0
  103. package/dist/component/{use-service-options-base-D_enm38a.js → use-service-options-base-CLeE9-Tx.js} +10 -10
  104. package/dist/component/use-text-input-class-name-DIKWvfkm.js +6 -0
  105. package/dist/form.d.ts +8 -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/use-dropdown-trigger-class-name-rcGBzxI1.js +0 -117
  115. package/dist/component/use-is-forced-open-dropdown-CoOk4W4i.js +0 -48
  116. 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 t } from "./multiline-address-field-rac-BjWzx-LH.js";
2
+ import { M as t } from "./multiline-address-field-rac-Z-qF366L.js";
3
3
  const i = () => /* @__PURE__ */ e.createElement(t, null);
4
4
  export {
5
5
  i as MultilineAddressRAC
@@ -1,19 +1,19 @@
1
- import { RicosViewer as P } from "@wix/ricos/viewer";
1
+ import { RicosViewer as z } from "@wix/ricos/viewer";
2
2
  import i from "classnames";
3
- import r, { useState as H, useCallback as Q, useEffect as U, useRef as $ } from "react";
4
- import { NumberField as j, Input as z } from "react-aria-components";
5
- import { bo as _, bl as S, by as G, bq as J, R as K, a0 as W, H as X, v as Y } from "./form-BTUoOcqB.js";
3
+ import r, { useState as P, useCallback as J, useEffect as Q, useRef as U } from "react";
4
+ import { NumberField as $, Input as j } from "react-aria-components";
5
+ import { bz as _, bw as S, bJ as w, bB as G, V as H, ab as K, L as W, z as X } from "./form-DSpx-AO8.js";
6
6
  import { f as c } from "./find-child-C60k4CxG.js";
7
- import { D as Z, E as w } from "./field-error-headless-DWc76YmY.js";
8
- import { L as ee } from "./field-label-headless-DKBKqI2X.js";
7
+ import { D as Y, E as Z } from "./field-error-headless-XNWmDH3E.js";
8
+ import { L as ee } from "./field-label-headless-CORRAJGt.js";
9
9
  import { g as re, c as te } from "./numeric-input-utils-CuBMi4-a.js";
10
10
  import { u as ne } from "./use-invoke-callback-UH73A_J3.js";
11
11
  import { E as ae } from "./error-icon-hZxQ6DEy.js";
12
12
  import { s as p } from "./field-rac.module-DP0lkkEv.js";
13
- import { u as se } from "./use-text-input-class-name-BLtPQoYE.js";
13
+ import { u as se } from "./use-text-input-class-name-DIKWvfkm.js";
14
14
  const e = ({ children: t }) => {
15
- var F, R, L;
16
- const { id: a, value: s, onChange: l, disabled: d, required: b, readOnly: o, onBlur: E, onFocus: f, FieldLayout: m, hasError: u, validation: n } = _(), { labelId: y } = S(), D = ((F = n == null ? void 0 : n.number) == null ? void 0 : F.multipleOf) || 1, A = (R = n == null ? void 0 : n.number) == null ? void 0 : R.maximum, g = (L = n == null ? void 0 : n.number) == null ? void 0 : L.minimum, q = O(s), [x, I] = H(q), T = ne(E), V = c(t, e.Label), h = c(t, e.Input), M = c(t, e.Description), k = c(t, e.Error), B = Q((N) => {
15
+ var F, L, R;
16
+ const { id: a, value: s, onChange: l, disabled: d, required: b, readOnly: o, onBlur: E, onFocus: f, FieldLayout: m, hasError: u, validation: n } = _(), { labelId: y } = S(), D = ((F = n == null ? void 0 : n.number) == null ? void 0 : F.multipleOf) || 1, A = (L = n == null ? void 0 : n.number) == null ? void 0 : L.maximum, V = (R = n == null ? void 0 : n.number) == null ? void 0 : R.minimum, g = O(s), [x, I] = P(g), T = ne(E), h = c(t, e.Label), q = c(t, e.Input), B = c(t, e.Description), M = c(t, e.Error), k = J((N) => {
17
17
  if (N === void 0 || Number.isNaN(N)) {
18
18
  l(""), I(NaN);
19
19
  return;
@@ -24,39 +24,39 @@ const e = ({ children: t }) => {
24
24
  D,
25
25
  l
26
26
  ]);
27
- return U(() => {
27
+ return Q(() => {
28
28
  I(O(s));
29
29
  }, [
30
30
  s
31
31
  ]), /* @__PURE__ */ r.createElement(m, {
32
32
  fieldId: a,
33
- renderLabel: () => V,
34
- renderInput: () => /* @__PURE__ */ r.createElement(j, {
33
+ renderLabel: () => h,
34
+ renderInput: () => /* @__PURE__ */ r.createElement($, {
35
35
  "aria-labelledby": y,
36
36
  value: x,
37
- onChange: B,
37
+ onChange: k,
38
38
  isDisabled: d,
39
39
  isRequired: b,
40
40
  isReadOnly: o,
41
41
  isInvalid: u,
42
42
  onBlur: T,
43
43
  onFocus: f,
44
- minValue: g ?? void 0,
44
+ minValue: V ?? void 0,
45
45
  maxValue: A ?? void 0
46
- }, h),
47
- renderDescription: () => /* @__PURE__ */ r.createElement(r.Fragment, null, k, M)
46
+ }, q),
47
+ renderDescription: () => /* @__PURE__ */ r.createElement(r.Fragment, null, M, B)
48
48
  });
49
49
  }, le = ({ className: t }) => {
50
50
  var u;
51
- const { t: a } = G(), { inputId: s, ariaDescribedBy: l } = S(), { id: d, placeholder: b, validation: o, label: E, required: f } = _();
51
+ const { t: a } = w(), { inputId: s, ariaDescribedBy: l } = S(), { id: d, placeholder: b, validation: o, label: E, required: f } = _();
52
52
  (u = o == null ? void 0 : o.number) != null && u.multipleOf;
53
- const m = $(null);
54
- return J(() => {
53
+ const m = U(null);
54
+ return G(() => {
55
55
  var n;
56
56
  (n = m.current) == null || n.focus({
57
57
  preventScroll: !0
58
58
  });
59
- }, d), /* @__PURE__ */ r.createElement(z, {
59
+ }, d), /* @__PURE__ */ r.createElement(j, {
60
60
  ref: m,
61
61
  id: s,
62
62
  "aria-describedby": l,
@@ -70,25 +70,25 @@ const e = ({ children: t }) => {
70
70
  };
71
71
  e.Label = ee;
72
72
  e.Input = le;
73
- e.Description = Z;
74
- e.Error = w;
75
- const O = (t) => te(t) ?? NaN, oe = ({ content: t, locale: a }) => /* @__PURE__ */ r.createElement(P, {
73
+ e.Description = Y;
74
+ e.Error = Z;
75
+ const O = (t) => te(t) ?? NaN, oe = ({ content: t, locale: a }) => /* @__PURE__ */ r.createElement(z, {
76
76
  content: t,
77
77
  locale: a
78
- }), Re = () => {
78
+ }), Le = () => {
79
79
  const t = se();
80
80
  return /* @__PURE__ */ r.createElement(e, null, /* @__PURE__ */ r.createElement(e.Label, {
81
- className: i(K, p.label)
81
+ className: i(H, p.label)
82
82
  }, /* @__PURE__ */ r.createElement(e.Label.Required, {
83
- className: i(W, p.requiredMark)
83
+ className: i(K, p.requiredMark)
84
84
  })), /* @__PURE__ */ r.createElement(e.Input, {
85
85
  className: t
86
86
  }), /* @__PURE__ */ r.createElement(e.Error, {
87
- className: i(X, p.error)
87
+ className: i(W, p.error)
88
88
  }, /* @__PURE__ */ r.createElement(ae, null), /* @__PURE__ */ r.createElement(e.Error.Text, null)), /* @__PURE__ */ r.createElement(e.Description, {
89
- className: i(Y, p.description)
89
+ className: i(X, p.description)
90
90
  }, oe));
91
91
  };
92
92
  export {
93
- Re as N
93
+ Le as N
94
94
  };
@@ -1,5 +1,5 @@
1
1
  import e from "react";
2
- import { N as r } from "./number-input-field-rac-2gqDUlw9.js";
2
+ import { N as r } from "./number-input-field-rac-D4vf6I6N.js";
3
3
  const n = () => /* @__PURE__ */ e.createElement(r, null);
4
4
  export {
5
5
  n as NumberInputRAC
@@ -1,23 +1,23 @@
1
1
  import e, { useState as N, useRef as x } from "react";
2
2
  import { RicosViewer as O } from "@wix/ricos/viewer";
3
3
  import d from "classnames";
4
- import { bo as E, bl as I, bq as v, by as A, R as B, a0 as V, H as P, v as M } from "./form-BTUoOcqB.js";
5
- import { TextField as k, Group as q, Input as H, Button as U } from "react-aria-components";
4
+ import { bz as E, bw as I, bB as B, bJ as A, V, ab as v, L as P, z as M } from "./form-DSpx-AO8.js";
5
+ import { TextField as k, Group as q, Input as U, Button as j } from "react-aria-components";
6
6
  import { f as u, a as b } from "./find-child-C60k4CxG.js";
7
- import { D as j, E as W } from "./field-error-headless-DWc76YmY.js";
8
- import { L as Z } from "./field-label-headless-DKBKqI2X.js";
9
- import { E as G } from "./error-icon-hZxQ6DEy.js";
10
- import { H as Q } from "./custom-focus-class-_483Pkwp.js";
7
+ import { D as z, E as H } from "./field-error-headless-XNWmDH3E.js";
8
+ import { L as W } from "./field-label-headless-CORRAJGt.js";
9
+ import { E as Z } from "./error-icon-hZxQ6DEy.js";
10
+ import { H as G } from "./custom-focus-class-_483Pkwp.js";
11
11
  import { s as p } from "./field-rac.module-DP0lkkEv.js";
12
- import { u as $ } from "./use-text-input-class-name-BLtPQoYE.js";
12
+ import { u as J } from "./use-text-input-class-name-DIKWvfkm.js";
13
13
  const t = ({ children: o, className: r }) => {
14
- const { id: l, value: s, onChange: c, disabled: n, readOnly: m, required: a, hasError: i, onBlur: f, onFocus: C, autoComplete: y, FieldLayout: _ } = E(), { labelId: R } = I(), [D, F] = N(!1), L = u(o, t.Label), T = u(o, t.Control), w = u(o, t.Description), S = u(o, t.Error);
15
- return /* @__PURE__ */ e.createElement(_, {
14
+ const { id: l, value: s, onChange: c, disabled: n, readOnly: m, required: a, hasError: i, onBlur: f, onFocus: C, autoComplete: _, FieldLayout: y } = E(), { labelId: L } = I(), [R, D] = N(!1), F = u(o, t.Label), T = u(o, t.Control), w = u(o, t.Description), S = u(o, t.Error);
15
+ return /* @__PURE__ */ e.createElement(y, {
16
16
  fieldId: l,
17
- renderLabel: () => L,
17
+ renderLabel: () => F,
18
18
  renderInput: () => /* @__PURE__ */ e.createElement(k, {
19
- autoComplete: y,
20
- "aria-labelledby": R,
19
+ autoComplete: _,
20
+ "aria-labelledby": L,
21
21
  value: s ?? "",
22
22
  onChange: c,
23
23
  isDisabled: n,
@@ -28,12 +28,12 @@ const t = ({ children: o, className: r }) => {
28
28
  onFocus: C,
29
29
  className: r
30
30
  }, b(T, {
31
- isVisible: D,
32
- onToggleVisibility: () => F((h) => !h)
31
+ isVisible: R,
32
+ onToggleVisibility: () => D((h) => !h)
33
33
  })),
34
34
  renderDescription: () => /* @__PURE__ */ e.createElement(e.Fragment, null, w, S)
35
35
  });
36
- }, z = ({ children: o, className: r, ...l }) => {
36
+ }, Q = ({ children: o, className: r, ...l }) => {
37
37
  const { isVisible: s, onToggleVisibility: c } = l, { disabled: n, hasError: m } = E(), a = u(o, t.Input), i = u(o, t.Toggle);
38
38
  return /* @__PURE__ */ e.createElement(q, {
39
39
  className: r,
@@ -45,14 +45,14 @@ const t = ({ children: o, className: r }) => {
45
45
  isVisible: s,
46
46
  onToggleVisibility: c
47
47
  }));
48
- }, J = ({ className: o, ...r }) => {
48
+ }, $ = ({ className: o, ...r }) => {
49
49
  const { isVisible: l } = r, { id: s, placeholder: c } = E(), { inputId: n, ariaDescribedBy: m } = I(), a = x(null);
50
- return v(() => {
50
+ return B(() => {
51
51
  var i;
52
52
  (i = a.current) == null || i.focus({
53
53
  preventScroll: !0
54
54
  });
55
- }, s), /* @__PURE__ */ e.createElement(H, {
55
+ }, s), /* @__PURE__ */ e.createElement(U, {
56
56
  ref: a,
57
57
  id: n,
58
58
  type: l ? "text" : "password",
@@ -62,7 +62,7 @@ const t = ({ children: o, className: r }) => {
62
62
  });
63
63
  }, K = ({ className: o, showPasswordTooltipText: r, hidePasswordTooltipText: l, children: s, ...c }) => {
64
64
  const { isVisible: n, onToggleVisibility: m } = c, { disabled: a } = E(), i = n ? l : r;
65
- return /* @__PURE__ */ e.createElement(U, {
65
+ return /* @__PURE__ */ e.createElement(j, {
66
66
  type: "button",
67
67
  isDisabled: a,
68
68
  onPress: m,
@@ -73,12 +73,12 @@ const t = ({ children: o, className: r }) => {
73
73
  isVisible: n
74
74
  }));
75
75
  };
76
- t.Label = Z;
77
- t.Control = z;
78
- t.Input = J;
76
+ t.Label = W;
77
+ t.Control = Q;
78
+ t.Input = $;
79
79
  t.Toggle = K;
80
- t.Description = j;
81
- t.Error = W;
80
+ t.Description = z;
81
+ t.Error = H;
82
82
  const X = (o) => /* @__PURE__ */ e.createElement("svg", {
83
83
  viewBox: "0 0 24 24",
84
84
  width: "20",
@@ -121,22 +121,22 @@ const X = (o) => /* @__PURE__ */ e.createElement("svg", {
121
121
  content: o,
122
122
  locale: r
123
123
  }), re = () => {
124
- const { t: o } = A(), r = $(g.control);
124
+ const { t: o } = A(), r = J(g.control);
125
125
  return /* @__PURE__ */ e.createElement(t, null, /* @__PURE__ */ e.createElement(t.Label, {
126
- className: d(B, p.label)
126
+ className: d(V, p.label)
127
127
  }, /* @__PURE__ */ e.createElement(t.Label.Required, {
128
- className: d(V, p.requiredMark)
128
+ className: d(v, p.requiredMark)
129
129
  })), /* @__PURE__ */ e.createElement(t.Control, {
130
130
  className: r
131
131
  }, /* @__PURE__ */ e.createElement(t.Input, {
132
- className: d(p.innerInput, Q)
132
+ className: d(p.innerInput, G)
133
133
  }), /* @__PURE__ */ e.createElement(t.Toggle, {
134
134
  className: g.toggleButton,
135
135
  showPasswordTooltipText: o("forms.widget.modals.show-password-tooltip"),
136
136
  hidePasswordTooltipText: o("forms.widget.modals.hide-password-tooltip")
137
137
  }, ({ isVisible: l }) => l ? /* @__PURE__ */ e.createElement(Y, null) : /* @__PURE__ */ e.createElement(X, null))), /* @__PURE__ */ e.createElement(t.Error, {
138
138
  className: d(P, p.error)
139
- }, /* @__PURE__ */ e.createElement(G, null), /* @__PURE__ */ e.createElement(t.Error.Text, null)), /* @__PURE__ */ e.createElement(t.Description, {
139
+ }, /* @__PURE__ */ e.createElement(Z, null), /* @__PURE__ */ e.createElement(t.Error.Text, null)), /* @__PURE__ */ e.createElement(t.Description, {
140
140
  className: d(M, p.description)
141
141
  }, oe));
142
142
  }, ge = () => /* @__PURE__ */ e.createElement(re, null);
@@ -1,17 +1,17 @@
1
- import r, { useCallback as P, useRef as j } from "react";
2
- import { RicosViewer as w } from "@wix/ricos/viewer";
1
+ import r, { useCallback as P, useRef as w } from "react";
2
+ import { RicosViewer as J } from "@wix/ricos/viewer";
3
3
  import p from "classnames";
4
- import { TextField as z, Group as J, Input as K } from "react-aria-components";
5
- import { bo as N, bl as D, bg as T, by as W, bq as X, R as Y, a0 as Z, H as ee, v as re } from "./form-BTUoOcqB.js";
4
+ import { TextField as Q, Group as j, Input as K } from "react-aria-components";
5
+ import { bz as R, bw as D, br as T, bJ as W, bB as X, V as Y, ab as Z, L as ee, z as re } from "./form-DSpx-AO8.js";
6
6
  import { f as i } from "./find-child-C60k4CxG.js";
7
- import { D as te, E as ne } from "./field-error-headless-DWc76YmY.js";
8
- import { L as ae } from "./field-label-headless-DKBKqI2X.js";
9
- import { f as L, g as se } from "./payment-field-utils-DobiK5Xh.js";
7
+ import { D as te, E as ne } from "./field-error-headless-XNWmDH3E.js";
8
+ import { L as ae } from "./field-label-headless-CORRAJGt.js";
9
+ import { f as N, g as se } from "./payment-field-utils-DobiK5Xh.js";
10
10
  import { u as oe } from "./use-synced-display-value-DcAxdn3M.js";
11
11
  import { E as le } from "./error-icon-hZxQ6DEy.js";
12
12
  import { H as ce } from "./custom-focus-class-_483Pkwp.js";
13
13
  import { s as d } from "./field-rac.module-DP0lkkEv.js";
14
- import { u as ie } from "./use-text-input-class-name-BLtPQoYE.js";
14
+ import { u as ie } from "./use-text-input-class-name-DIKWvfkm.js";
15
15
  function ue(e, t) {
16
16
  return {
17
17
  productId: e.id,
@@ -26,29 +26,29 @@ function h(e) {
26
26
  return Number.isNaN(t) ? void 0 : t;
27
27
  }
28
28
  const n = ({ children: e }) => {
29
- var O, g, A, V;
30
- const { id: t, value: a, onChange: s, disabled: u, readOnly: m, required: I, hasError: y, onBlur: o, onFocus: E, FieldLayout: M, validation: C } = N(), { labelId: q, prefixId: G } = D(), { regionalFormat: c } = T(), S = (A = (g = (O = C == null ? void 0 : C.predefined) == null ? void 0 : O.paymentOptions) == null ? void 0 : g.products) == null ? void 0 : A[0], _ = (V = a == null ? void 0 : a.at(0)) == null ? void 0 : V.price, [F, b] = oe({
29
+ var O, g, V, A;
30
+ const { id: t, value: a, onChange: s, disabled: u, readOnly: m, required: I, hasError: y, onBlur: o, onFocus: E, FieldLayout: M, validation: C } = R(), { labelId: q, prefixId: G } = D(), { regionalFormat: c } = T(), S = (V = (g = (O = C == null ? void 0 : C.predefined) == null ? void 0 : O.paymentOptions) == null ? void 0 : g.products) == null ? void 0 : V[0], _ = (A = a == null ? void 0 : a.at(0)) == null ? void 0 : A.price, [F, b] = oe({
31
31
  sourceValue: _,
32
- format: (l) => L(String(l ?? ""), c),
32
+ format: (l) => N(String(l ?? ""), c),
33
33
  regionalFormat: c
34
34
  }), $ = P(() => {
35
- const l = L(F, c);
35
+ const l = N(F, c);
36
36
  b(l || ""), o == null || o();
37
37
  }, [
38
38
  F,
39
39
  c,
40
40
  o,
41
41
  b
42
- ]), v = P((l) => {
42
+ ]), B = P((l) => {
43
43
  b(l);
44
- const R = h(L(l, c)), Q = h(_);
45
- if (R !== Q) {
46
- if (R === void 0) {
44
+ const L = h(N(l, c)), H = h(_);
45
+ if (L !== H) {
46
+ if (L === void 0) {
47
47
  s(null);
48
48
  return;
49
49
  }
50
50
  s([
51
- ue(S, R)
51
+ ue(S, L)
52
52
  ]);
53
53
  }
54
54
  }, [
@@ -57,26 +57,26 @@ const n = ({ children: e }) => {
57
57
  c,
58
58
  _,
59
59
  b
60
- ]), B = i(e, n.Label), H = i(e, n.Input), U = i(e, n.Description), k = i(e, n.Error);
60
+ ]), v = i(e, n.Label), U = i(e, n.Input), k = i(e, n.Description), z = i(e, n.Error);
61
61
  return /* @__PURE__ */ r.createElement(M, {
62
62
  fieldId: t,
63
- renderLabel: () => B,
64
- renderInput: () => /* @__PURE__ */ r.createElement(z, {
63
+ renderLabel: () => v,
64
+ renderInput: () => /* @__PURE__ */ r.createElement(Q, {
65
65
  "aria-labelledby": `${q} ${G}`,
66
66
  value: a ? F : "",
67
- onChange: v,
67
+ onChange: B,
68
68
  isDisabled: u,
69
69
  isReadOnly: m,
70
70
  isRequired: I,
71
71
  isInvalid: y,
72
72
  onBlur: $,
73
73
  onFocus: E
74
- }, H),
75
- renderDescription: () => /* @__PURE__ */ r.createElement(r.Fragment, null, k, U)
74
+ }, U),
75
+ renderDescription: () => /* @__PURE__ */ r.createElement(r.Fragment, null, z, k)
76
76
  });
77
77
  }, f = ({ children: e, className: t }) => {
78
- const { disabled: a, hasError: s } = N(), u = i(e, f.Currency), m = i(e, f.Value);
79
- return /* @__PURE__ */ r.createElement(J, {
78
+ const { disabled: a, hasError: s } = R(), u = i(e, f.Currency), m = i(e, f.Value);
79
+ return /* @__PURE__ */ r.createElement(j, {
80
80
  className: t,
81
81
  isDisabled: a,
82
82
  isInvalid: s
@@ -90,7 +90,7 @@ const n = ({ children: e }) => {
90
90
  className: e
91
91
  }, t.sign || t.code) : null;
92
92
  }, pe = ({ className: e }) => {
93
- const { id: t, placeholder: a, label: s } = N(), { inputId: u, labelId: m, prefixId: I, ariaDescribedBy: y } = D(), o = j(null);
93
+ const { id: t, placeholder: a, label: s } = R(), { inputId: u, labelId: m, prefixId: I, ariaDescribedBy: y } = D(), o = w(null);
94
94
  return X(() => {
95
95
  var E;
96
96
  (E = o.current) == null || E.focus({
@@ -117,7 +117,7 @@ n.Error = ne;
117
117
  const de = "_inputGroup_vuy4u_1", fe = "_currency_vuy4u_14", x = {
118
118
  inputGroup: de,
119
119
  currency: fe
120
- }, Ee = ({ content: e, locale: t }) => /* @__PURE__ */ r.createElement(w, {
120
+ }, Ee = ({ content: e, locale: t }) => /* @__PURE__ */ r.createElement(J, {
121
121
  content: e,
122
122
  locale: t
123
123
  }), be = () => {