@wix/form-elements 1.158.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 (117) hide show
  1. package/dist/component/{appointment-rac-m5-FH9kU.js → appointment-rac-BmHu56e5.js} +63 -63
  2. package/dist/component/{bookings-address-rac-VtG7wH0l.js → bookings-address-rac-DY9l2g0h.js} +1 -1
  3. package/dist/component/{bookings-email-rac-C8T3aTQH.js → bookings-email-rac-B5vNSOsS.js} +1 -1
  4. package/dist/component/{bookings-first-name-rac-BlhIWWNj.js → bookings-first-name-rac-CJiefCNz.js} +1 -1
  5. package/dist/component/{bookings-header-rac-adwR7PKJ.js → bookings-header-rac-BFu7Ko5w.js} +1 -1
  6. package/dist/component/{bookings-last-name-rac-z5z1GJQL.js → bookings-last-name-rac-DegMM13h.js} +1 -1
  7. package/dist/component/{bookings-login-bar-rac-DMgVxy8J.js → bookings-login-bar-rac-DrA-5tBH.js} +7 -7
  8. package/dist/component/{bookings-phone-rac-DS7ffO6T.js → bookings-phone-rac-DsaeqxCI.js} +1 -1
  9. package/dist/component/{bookings-rich-text-rac-BNWI0o60.js → bookings-rich-text-rac-jRHiwqi8.js} +1 -1
  10. package/dist/component/{checkbox-field-rac-CUKZ9NHF.js → checkbox-field-rac-CyoBb6Yf.js} +43 -43
  11. package/dist/component/{checkbox-group-field-headless-Didam2ZD.js → checkbox-group-field-headless-Bv1gU3oL.js} +54 -54
  12. package/dist/component/{checkbox-group-field-rac-C3WCeVA8.js → checkbox-group-field-rac-DasArcdV.js} +6 -6
  13. package/dist/component/{checkbox-group-rac-Bkq-wm7_.js → checkbox-group-rac-CzmufV1U.js} +1 -1
  14. package/dist/component/{checkbox-rac-66ga9Lph.js → checkbox-rac-6C7XoUoZ.js} +1 -1
  15. package/dist/component/{contacts-address-rac-DSOk97te.js → contacts-address-rac-BZobbFtz.js} +1 -1
  16. package/dist/component/{contacts-birthdate-rac-1qguKm9O.js → contacts-birthdate-rac-DIzf41DS.js} +1 -1
  17. package/dist/component/{contacts-company-rac-Chefzmw3.js → contacts-company-rac-BiBDO28r.js} +1 -1
  18. package/dist/component/{contacts-email-rac-DG6eAnz2.js → contacts-email-rac-5mqokCSD.js} +1 -1
  19. package/dist/component/{contacts-first-name-rac-tSGE0w5w.js → contacts-first-name-rac-BXe3_Nz5.js} +1 -1
  20. package/dist/component/{contacts-last-name-rac-BjZWfbM5.js → contacts-last-name-rac-Cfqgh7u1.js} +1 -1
  21. package/dist/component/{contacts-phone-rac-jfGNKLoZ.js → contacts-phone-rac-cmLUWnAc.js} +1 -1
  22. package/dist/component/{contacts-position-rac-kv8I-m_Q.js → contacts-position-rac-DTyvklfN.js} +1 -1
  23. package/dist/component/{contacts-subscribe-rac-BkUG0AMs.js → contacts-subscribe-rac-D-ZEX1A3.js} +1 -1
  24. package/dist/component/{contacts-tax-id-rac-BtFrK_Ci.js → contacts-tax-id-rac-B4NYJwWt.js} +1 -1
  25. package/dist/component/{date-availability-_A9DS6za.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-CpseQkV4.js → date-input-rac-CYix11gT.js} +1 -1
  28. package/dist/component/{date-picker-field-rac-B4gjhxG6.js → date-picker-field-rac-B8pvtPir.js} +86 -86
  29. package/dist/component/{date-picker-rac-DDJfUDCM.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-BkvcyU3H.js → date-time-input-rac-DMN-noQX.js} +1 -1
  32. package/dist/component/{dext-checkbox-group-rac-UWDhIjU-.js → dext-checkbox-group-rac-Kq0GnteP.js} +2 -2
  33. package/dist/component/{dext-checkbox-rac-q9UJnqsC.js → dext-checkbox-rac-BY9GZ4n1.js} +1 -1
  34. package/dist/component/{dext-date-picker-rac-C164FDSF.js → dext-date-picker-rac-CXArIddp.js} +1 -1
  35. package/dist/component/{dext-date-time-input-rac-BvbnfRYU.js → dext-date-time-input-rac-B39TtxGq.js} +1 -1
  36. package/dist/component/{dext-dropdown-rac-z0xU1mRO.js → dext-dropdown-rac-C3y0G8cS.js} +1 -1
  37. package/dist/component/{dext-email-rac-BkiWpfNw.js → dext-email-rac-BIg3cq7Q.js} +1 -1
  38. package/dist/component/{dext-number-input-rac-DeQWO-RK.js → dext-number-input-rac-27sHJ7yN.js} +1 -1
  39. package/dist/component/{dext-phone-rac-CGlVpadW.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-ibIctxU_.js → dext-rating-input-rac-B_E6OcBr.js} +1 -1
  42. package/dist/component/{dext-tags-rac-snCgM6u0.js → dext-tags-rac-Yd9aAtnF.js} +2 -2
  43. package/dist/component/{dext-text-area-rac-BHVs8ixR.js → dext-text-area-rac-CMACri2C.js} +1 -1
  44. package/dist/component/{dext-text-input-rac-DGI747Od.js → dext-text-input-rac-sNjSCfQ-.js} +1 -1
  45. package/dist/component/{dext-url-input-rac-CpO2VDPE.js → dext-url-input-rac-DwhbzJty.js} +1 -1
  46. package/dist/component/{donation-rac-Ck6HkRcW.js → donation-rac-BVAN3kMk.js} +90 -90
  47. package/dist/component/{dropdown-field-rac-e5MjWn5B.js → dropdown-field-rac-DdoGigWx.js} +14 -14
  48. package/dist/component/{dropdown-rac-B2jprC8G.js → dropdown-rac-CRkt5w47.js} +1 -1
  49. package/dist/component/{ecom-address-rac-D0stOqRv.js → ecom-address-rac-C36hFHW0.js} +1 -1
  50. package/dist/component/{ecom-subscription-checkbox-rac-BRzaQKx3.js → ecom-subscription-checkbox-rac-BKfQ348w.js} +2 -2
  51. package/dist/component/{email-input-field-rac-0UIjNipg.js → email-input-field-rac-MOaISYxa.js} +59 -59
  52. package/dist/component/{events-repeater-rac-BBQZzP7U.js → events-repeater-rac-D6p-NgE8.js} +20 -20
  53. package/dist/component/{events-rsvp-rac-Ck7BXGKy.js → events-rsvp-rac-DVpgN8gm.js} +18 -18
  54. package/dist/component/{field-error-headless-vApyo-y9.js → field-error-headless-XNWmDH3E.js} +4 -4
  55. package/dist/component/{field-label-headless-C8-ShLxy.js → field-label-headless-CORRAJGt.js} +4 -4
  56. package/dist/component/{file-upload-rac-BzWJOM6C.js → file-upload-rac-DRMr7E4b.js} +89 -89
  57. package/dist/component/{fixed-payment-rac-C4_xI103.js → fixed-payment-rac-BUXzNex9.js} +18 -18
  58. package/dist/component/{form-D7ulDPh1.js → form-DSpx-AO8.js} +785 -728
  59. package/dist/component/form.css +1 -1
  60. package/dist/component/form.js +1 -1
  61. package/dist/component/{header-field-rac-BnBbhsOZ.js → header-field-rac-CiDXlNsa.js} +6 -6
  62. package/dist/component/{header-rac-CEWayr6b.js → header-rac-B5Rg-h8u.js} +1 -1
  63. package/dist/component/{image-choice-rac-DTZrz6oP.js → image-choice-rac-CtoA_KDp.js} +44 -44
  64. package/dist/component/{index-CKtw7kvn.js → index-Bz7ZhQsF.js} +53 -53
  65. package/dist/component/{index-DBbgIHYT.js → index-CwruESwc.js} +5 -5
  66. package/dist/component/{isObjectLike-BHfPE26c.js → isObjectLike-C5dHxHP0.js} +11 -11
  67. package/dist/component/multiline-address-field-rac-Z-qF366L.js +1664 -0
  68. package/dist/component/{multiline-address-rac-YQj_QROS.js → multiline-address-rac-CJIHTMw5.js} +1 -1
  69. package/dist/component/{number-input-field-rac-A7xM2c6F.js → number-input-field-rac-D4vf6I6N.js} +29 -29
  70. package/dist/component/{number-input-rac-DeDatLY5.js → number-input-rac-B2jW6JUQ.js} +1 -1
  71. package/dist/component/{password-rac-7Si7JHee.js → password-rac-DGRZ17Jl.js} +29 -29
  72. package/dist/component/{payment-input-rac-D4JKZl-5.js → payment-input-rac-BtD-tAKv.js} +27 -27
  73. package/dist/component/phone-input-field-rac-KD4-APhr.js +512 -0
  74. package/dist/component/{phone-rac-Y2mWnseb.js → phone-rac-Cw2yccgg.js} +1 -1
  75. package/dist/component/{product-list-rac-CYUcNqf3.js → product-list-rac-XbzTDdbp.js} +33 -33
  76. package/dist/component/{quiz-radio-group-rac-f3O7fksW.js → quiz-radio-group-rac-BDw_mAw5.js} +1 -1
  77. package/dist/component/{radio-button-module-classes-BgVUqcvD.js → radio-button-module-classes-CFGf0Hzh.js} +23 -23
  78. package/dist/component/{radio-group-field-rac-DrOiyk5C.js → radio-group-field-rac-CXN7tyVu.js} +6 -6
  79. package/dist/component/{radio-group-rac-Btt_bz_K.js → radio-group-rac-COHzqjBh.js} +1 -1
  80. package/dist/component/{rating-input-field-rac-CwN7wyaw.js → rating-input-field-rac-DCXNZgf1.js} +37 -37
  81. package/dist/component/{rating-input-rac-sTy0SV3L.js → rating-input-rac-DwQt9ML7.js} +1 -1
  82. package/dist/component/{rich-content-rac.module-C11w9mXa.js → rich-content-rac.module-B7rPwNns.js} +8 -8
  83. package/dist/component/{rich-text-field-rac-kGwuDtNs.js → rich-text-field-rac-DlER7NRD.js} +4 -4
  84. package/dist/component/{rich-text-rac-T4ic2hrA.js → rich-text-rac-CjicsHA7.js} +1 -1
  85. package/dist/component/service-dropdown-rac-B81LC_6_.js +145 -0
  86. package/dist/component/{services-multi-choice-rac-CLQ4dLxO.js → services-multi-choice-rac-BR6gZeHk.js} +16 -16
  87. package/dist/component/{signature-rac-DLiFeCNL.js → signature-rac-XFj7Ddtp.js} +69 -69
  88. package/dist/component/{submit-button-rac-CccO80E1.js → submit-button-rac-Bz7zs_3W.js} +12 -12
  89. package/dist/component/{tags-field-rac-DaghCGJU.js → tags-field-rac-DWWkNKqc.js} +79 -79
  90. package/dist/component/{tags-rac-3ly5shW2.js → tags-rac-BXyiQ9i1.js} +1 -1
  91. package/dist/component/{text-area-field-rac-2-TYC5Lb.js → text-area-field-rac-DsIRYi0d.js} +21 -21
  92. package/dist/component/{text-area-rac-Bx0pgw80.js → text-area-rac-CF9pDP9d.js} +1 -1
  93. package/dist/component/{text-input-field-rac-Dyur2Wby.js → text-input-field-rac-BwIDZACz.js} +5 -5
  94. package/dist/component/{text-input-headless-DZ-Pjpm4.js → text-input-headless-5kQs2_Xu.js} +14 -14
  95. package/dist/component/{text-input-rac-BuBtJDX_.js → text-input-rac-CRmSuw1k.js} +1 -1
  96. package/dist/component/{time-input-rac-AlDEpfXZ.js → time-input-rac-BRMNpe51.js} +20 -20
  97. package/dist/component/{url-input-field-rac-BzP4-8yP.js → url-input-field-rac-CKLS3QDk.js} +17 -17
  98. package/dist/component/{url-input-rac-DaBXuedf.js → url-input-rac-Dv-kp50D.js} +1 -1
  99. package/dist/component/use-dropdown-option-class-name-BQi_qE_-.js +116 -0
  100. package/dist/component/use-dropdown-trigger-class-name-bAK8aHiG.js +96 -0
  101. package/dist/component/{use-element-state-class-name-DY0UyIQg.js → use-element-state-class-name-rXM_lHug.js} +1 -1
  102. package/dist/component/{use-hoverable-input-class-name-C_Wh4Qfc.js → use-hoverable-input-class-name-BnV_uerV.js} +2 -2
  103. package/dist/component/use-is-forced-open-dropdown-Bp-5Xpmw.js +53 -0
  104. package/dist/component/{use-service-options-base-DgSaAuGy.js → use-service-options-base-CLeE9-Tx.js} +10 -10
  105. package/dist/component/use-text-input-class-name-DIKWvfkm.js +6 -0
  106. package/dist/form.d.ts +8 -0
  107. package/package.json +2 -2
  108. package/dist/component/date-input-field-rac-QZUxFX5e.js +0 -303
  109. package/dist/component/date-time-input-field-rac-DcwKQKHf.js +0 -433
  110. package/dist/component/dext-radio-group-rac-D8hMWNIQ.js +0 -18
  111. package/dist/component/dropdown-field-headless-Bv6LrkeA.js +0 -93
  112. package/dist/component/multiline-address-field-rac-jhcWn4wT.js +0 -1659
  113. package/dist/component/phone-input-field-rac-GxcQ_Pyl.js +0 -508
  114. package/dist/component/service-dropdown-rac-BfliE4hs.js +0 -145
  115. package/dist/component/use-dropdown-trigger-class-name-BKOFwNvc.js +0 -117
  116. package/dist/component/use-is-forced-open-dropdown-Bw_IFUKt.js +0 -48
  117. package/dist/component/use-text-input-class-name-DFMQAg_E.js +0 -6
@@ -1,5 +1,5 @@
1
1
  import e from "react";
2
- import { M as t } from "./multiline-address-field-rac-jhcWn4wT.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-D7ulDPh1.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-vApyo-y9.js";
8
- import { L as ee } from "./field-label-headless-C8-ShLxy.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-DFMQAg_E.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-A7xM2c6F.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-D7ulDPh1.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-vApyo-y9.js";
8
- import { L as Z } from "./field-label-headless-C8-ShLxy.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-DFMQAg_E.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-D7ulDPh1.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-vApyo-y9.js";
8
- import { L as ae } from "./field-label-headless-C8-ShLxy.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-DFMQAg_E.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 = () => {