@wix/form-elements 1.89.0 → 1.91.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 (115) hide show
  1. package/dist/component/{appointment-rac-DG8GUJpn.js → appointment-rac-CDZ0Gdin.js} +6 -6
  2. package/dist/component/{bookings-address-rac-cNBSx-Pr.js → bookings-address-rac-pmQyMw-1.js} +1 -1
  3. package/dist/component/{bookings-email-rac-CYdSoVWP.js → bookings-email-rac-CzDEYpBV.js} +1 -1
  4. package/dist/component/{bookings-first-name-rac-CQB2o8ww.js → bookings-first-name-rac-qg7T37FZ.js} +1 -1
  5. package/dist/component/{bookings-header-rac-CzKvQond.js → bookings-header-rac-Dmwmt_Cp.js} +1 -1
  6. package/dist/component/{bookings-last-name-rac-oK1BC5Am.js → bookings-last-name-rac-CXTtlnYI.js} +1 -1
  7. package/dist/component/{bookings-login-bar-rac-CZNEy748.js → bookings-login-bar-rac-DTs9s6hU.js} +21 -21
  8. package/dist/component/{bookings-phone-rac-D_4WfolC.js → bookings-phone-rac-C7AEVZA-.js} +1 -1
  9. package/dist/component/{bookings-rich-text-rac-CrEfeL4P.js → bookings-rich-text-rac-CBGVMqOn.js} +1 -1
  10. package/dist/component/{checkbox-field-rac-CGqshW45.js → checkbox-field-rac-BggtF6cZ.js} +49 -49
  11. package/dist/component/{checkbox-group-field-headless-C3_5IR-E.js → checkbox-group-field-headless-O2ZsF7An.js} +30 -30
  12. package/dist/component/{checkbox-group-field-rac-DIzdgyAw.js → checkbox-group-field-rac-OC3W4Taz.js} +9 -9
  13. package/dist/component/{checkbox-group-rac-EvWVfusV.js → checkbox-group-rac-CZuEXWgx.js} +1 -1
  14. package/dist/component/{checkbox-indicator-module-classes-Bb3xB1ve.js → checkbox-indicator-module-classes-mJ7hl_8K.js} +1 -1
  15. package/dist/component/{checkbox-rac-CT_69Jei.js → checkbox-rac-W-a8Z0ht.js} +1 -1
  16. package/dist/component/{contacts-address-rac-M8MZd777.js → contacts-address-rac-DtG9NDgw.js} +1 -1
  17. package/dist/component/{contacts-birthdate-rac-BS-8HeRD.js → contacts-birthdate-rac-DS7uNjKO.js} +1 -1
  18. package/dist/component/{contacts-company-rac-gmgKLvic.js → contacts-company-rac-CQX5azvs.js} +1 -1
  19. package/dist/component/{contacts-email-rac-QQ6E9VzX.js → contacts-email-rac-QgYLfH6e.js} +1 -1
  20. package/dist/component/{contacts-first-name-rac-DR7XheRo.js → contacts-first-name-rac-BrlHl2Uj.js} +1 -1
  21. package/dist/component/{contacts-last-name-rac-CBJgTkj5.js → contacts-last-name-rac-ieDtRIbl.js} +1 -1
  22. package/dist/component/{contacts-phone-rac-CTl25HdK.js → contacts-phone-rac-LTjC8k7e.js} +1 -1
  23. package/dist/component/{contacts-position-rac-DBDOW7QR.js → contacts-position-rac-CxbAUzIc.js} +1 -1
  24. package/dist/component/{contacts-subscribe-rac-C0-uJ7fU.js → contacts-subscribe-rac-H0dNjYV8.js} +2 -2
  25. package/dist/component/{contacts-tax-id-rac-BtXc0V1S.js → contacts-tax-id-rac-uhTEMEwl.js} +1 -1
  26. package/dist/component/{date-availability-IQtwk-aX.js → date-availability-eRjWauCz.js} +1 -1
  27. package/dist/component/{date-input-field-rac-2rbZiSgo.js → date-input-field-rac-BKb019gB.js} +99 -98
  28. package/dist/component/{date-input-rac-j4--xZ8s.js → date-input-rac-BBllT9pM.js} +1 -1
  29. package/dist/component/{date-picker-field-rac-Cl7ueVVn.js → date-picker-field-rac-CSXVWmGL.js} +43 -43
  30. package/dist/component/{date-picker-rac-BrObkuYv.js → date-picker-rac-CwEFOSSe.js} +1 -1
  31. package/dist/component/date-time-input-field-rac-C4yIIebr.js +424 -0
  32. package/dist/component/{date-time-input-rac-BShquR72.js → date-time-input-rac-DsGlyO8x.js} +1 -1
  33. package/dist/component/{dext-checkbox-group-rac-DNXYnHDM.js → dext-checkbox-group-rac-Bs9tVVXo.js} +2 -2
  34. package/dist/component/{dext-checkbox-rac-RBMWmgyT.js → dext-checkbox-rac-FEjZejl7.js} +1 -1
  35. package/dist/component/{dext-date-picker-rac-Dph_kV11.js → dext-date-picker-rac-Mdbuq1mu.js} +1 -1
  36. package/dist/component/{dext-date-time-input-rac-C3_gQkBT.js → dext-date-time-input-rac-B4dRBObU.js} +1 -1
  37. package/dist/component/{dext-dropdown-rac-D34vhtST.js → dext-dropdown-rac-QVngfb7K.js} +1 -1
  38. package/dist/component/{dext-email-rac-Yzf4-vSg.js → dext-email-rac-cURI3VuR.js} +1 -1
  39. package/dist/component/{dext-number-input-rac-D0jZXKaI.js → dext-number-input-rac-CovkZ8Ey.js} +1 -1
  40. package/dist/component/{dext-phone-rac-bqTpmTa0.js → dext-phone-rac-C8GjKZnH.js} +1 -1
  41. package/dist/component/{dext-radio-group-rac-AYPAzpqZ.js → dext-radio-group-rac-BlrJmIH3.js} +2 -2
  42. package/dist/component/{dext-rating-input-rac-DOSq-xVQ.js → dext-rating-input-rac-jIJisfdp.js} +1 -1
  43. package/dist/component/{dext-tags-rac-BXtFTlL0.js → dext-tags-rac-BXjCLX6y.js} +2 -2
  44. package/dist/component/{dext-text-area-rac-46wwBQg_.js → dext-text-area-rac-CD_x4meg.js} +1 -1
  45. package/dist/component/{dext-text-input-rac-DVj6V1VG.js → dext-text-input-rac-Du51Nj6q.js} +1 -1
  46. package/dist/component/{dext-url-input-rac-B5zu9R5K.js → dext-url-input-rac-_W6CW5hp.js} +1 -1
  47. package/dist/component/{donation-rac-DeBMssGg.js → donation-rac-9njvq8HE.js} +51 -51
  48. package/dist/component/dropdown-field-headless-BBc5oicg.js +101 -0
  49. package/dist/component/dropdown-field-rac-BYRb3VEI.js +36 -0
  50. package/dist/component/{dropdown-rac-bUNYh49x.js → dropdown-rac-BBrPWiSg.js} +1 -1
  51. package/dist/component/{ecom-address-rac-CtrERV3f.js → ecom-address-rac-CDJ46mdt.js} +1 -1
  52. package/dist/component/{ecom-subscription-checkbox-rac-BrpwOSYM.js → ecom-subscription-checkbox-rac-DItvmxzX.js} +6 -6
  53. package/dist/component/{email-input-field-rac-4yYxYc1a.js → email-input-field-rac-aeRdkPOh.js} +63 -63
  54. package/dist/component/{events-repeater-rac-B308C1JK.js → events-repeater-rac-CzVycetd.js} +35 -35
  55. package/dist/component/{events-rsvp-rac-C4_LJ3Wz.js → events-rsvp-rac-BhLYlH1V.js} +6 -6
  56. package/dist/component/{field-error-headless-PMBWtb3Z.js → field-error-headless-T9JfqiMS.js} +12 -12
  57. package/dist/component/{field-label-headless-0racVfdo.js → field-label-headless-bDWQszAb.js} +12 -12
  58. package/dist/component/field-rac.module-BUvPquav.js +26 -0
  59. package/dist/component/{file-upload-rac-CZIHV2OL.js → file-upload-rac-Dk-delp2.js} +116 -116
  60. package/dist/component/{fixed-payment-rac-COhRKeun.js → fixed-payment-rac-Bj8RMj1w.js} +15 -15
  61. package/dist/component/{form-UCnayEKT.js → form-C7cB75mm.js} +1130 -1128
  62. package/dist/component/{form-element-classes--p2vz_Bm.js → form-element-classes-CLZXu-91.js} +79 -69
  63. package/dist/component/form.css +1 -1
  64. package/dist/component/form.js +1 -1
  65. package/dist/component/{header-field-rac-CpXa-NlC.js → header-field-rac-RzI5owwx.js} +3 -3
  66. package/dist/component/{header-rac-CCsguMlZ.js → header-rac-DQgyaMDA.js} +1 -1
  67. package/dist/component/{image-choice-rac-j2UH4Q4I.js → image-choice-rac-DOs1eI0_.js} +20 -20
  68. package/dist/component/{index-jg8dn8po.js → index-C90Q2rfK.js} +2 -2
  69. package/dist/component/{index-Bxa3IDHm.js → index-DlPclNOa.js} +4 -4
  70. package/dist/component/{isObjectLike-Zw6J9g91.js → isObjectLike-DLz0WtlZ.js} +1 -1
  71. package/dist/component/{multiline-address-field-rac-BeFAYL7V.js → multiline-address-field-rac-DHYRZxtJ.js} +575 -574
  72. package/dist/component/{multiline-address-rac-BYr5_DQd.js → multiline-address-rac-7sUhPDFM.js} +1 -1
  73. package/dist/component/{number-input-field-rac-BNdJecUL.js → number-input-field-rac-DMHSUbYN.js} +24 -24
  74. package/dist/component/{number-input-rac-Cqkj4JAF.js → number-input-rac-CF5271QD.js} +1 -1
  75. package/dist/component/{password-rac-D4iSs1ds.js → password-rac-CxQRcSEb.js} +21 -21
  76. package/dist/component/{payment-input-rac-BvBP47HP.js → payment-input-rac-C20HS9QN.js} +25 -25
  77. package/dist/component/{phone-input-field-rac-Cggx8IlY.js → phone-input-field-rac-BDF_4RJE.js} +185 -184
  78. package/dist/component/{phone-rac-BISmYt_n.js → phone-rac-pGbG3Cu0.js} +1 -1
  79. package/dist/component/{product-list-rac-C1bm-U2G.js → product-list-rac-CxyJaRQ6.js} +43 -43
  80. package/dist/component/quiz-radio-group-rac-CCddKnuf.js +13 -0
  81. package/dist/component/{radio-button-module-classes-blfiatlc.js → radio-button-module-classes-uyJAJMZn.js} +7 -7
  82. package/dist/component/{radio-group-field-rac-BiiPUxbQ.js → radio-group-field-rac-VwR2FlNg.js} +5 -5
  83. package/dist/component/{radio-group-rac-Bn_W-3xz.js → radio-group-rac-D8pzwSCS.js} +1 -1
  84. package/dist/component/{rating-input-field-rac-CjXIoNMc.js → rating-input-field-rac-C4ohOgX0.js} +24 -24
  85. package/dist/component/{rating-input-rac-Ci4uPo22.js → rating-input-rac-NpCggSGK.js} +1 -1
  86. package/dist/component/{rich-content-rac.module-CDZniyrZ.js → rich-content-rac.module-B9HHqJL4.js} +4 -4
  87. package/dist/component/{rich-text-field-rac-BBRE9_Kr.js → rich-text-field-rac-C3qKHitl.js} +5 -5
  88. package/dist/component/{rich-text-rac-C3MfJK-H.js → rich-text-rac-BJkS9CGE.js} +1 -1
  89. package/dist/component/service-dropdown-rac-BTdBTfeg.js +146 -0
  90. package/dist/component/{services-multi-choice-rac-FDHRjDLS.js → services-multi-choice-rac-Nl74A8jo.js} +18 -18
  91. package/dist/component/{signature-rac-DfGPV0Mw.js → signature-rac-BAVXA-5Q.js} +53 -53
  92. package/dist/component/{submit-button-rac-DRsqyJcl.js → submit-button-rac-DlmeZjy_.js} +7 -7
  93. package/dist/component/{tags-field-rac-CZ4FBGG9.js → tags-field-rac-BFBSf5mt.js} +56 -56
  94. package/dist/component/{tags-rac-CMHMsiwv.js → tags-rac-S_GJQpwJ.js} +1 -1
  95. package/dist/component/text-area-field-rac-D1qLXh4K.js +73 -0
  96. package/dist/component/{text-area-rac-BKGDa4E3.js → text-area-rac-DejqDYR0.js} +1 -1
  97. package/dist/component/{text-input-field-rac-CU8eBRM4.js → text-input-field-rac-DwPTWyiR.js} +6 -6
  98. package/dist/component/{text-input-headless-C1eFy2gl.js → text-input-headless-BUljrxVJ.js} +6 -6
  99. package/dist/component/{text-input-rac-DO0eI3ty.js → text-input-rac-CCWkAOVG.js} +1 -1
  100. package/dist/component/{time-input-rac-BJ0AL2Be.js → time-input-rac-b09-o8Uw.js} +23 -23
  101. package/dist/component/{url-input-field-rac-BtpAuKfp.js → url-input-field-rac-DYGAFldc.js} +22 -22
  102. package/dist/component/{url-input-rac-CjnPbcHt.js → url-input-rac-CsAWnWt5.js} +1 -1
  103. package/dist/component/use-dropdown-option-class-name-CruN_y12.js +28 -0
  104. package/dist/component/{use-element-state-class-name-X08kIFhd.js → use-element-state-class-name-DZhlOoWK.js} +1 -1
  105. package/dist/component/{use-service-options-base-DfHhMveM.js → use-service-options-base-JNSCsxxz.js} +3 -3
  106. package/dist/component/{use-text-input-class-name-BAuokapo.js → use-text-input-class-name-CgCYHOMw.js} +4 -4
  107. package/dist/form.d.ts +18 -7
  108. package/package.json +23 -22
  109. package/dist/component/date-time-input-field-rac-mqea6CtW.js +0 -423
  110. package/dist/component/dropdown-field-headless-ShcoDfPa.js +0 -84
  111. package/dist/component/dropdown-field-rac-DruF_YdZ.js +0 -32
  112. package/dist/component/field-rac.module-D06m9T9x.js +0 -24
  113. package/dist/component/quiz-radio-group-rac-BhNhoOSI.js +0 -13
  114. package/dist/component/service-dropdown-rac-DQkk3SlS.js +0 -142
  115. package/dist/component/text-area-field-rac-BnRuG5y8.js +0 -73
@@ -1,5 +1,5 @@
1
1
  import e from "react";
2
- import { M as t } from "./multiline-address-field-rac-BeFAYL7V.js";
2
+ import { M as t } from "./multiline-address-field-rac-DHYRZxtJ.js";
3
3
  const i = () => /* @__PURE__ */ e.createElement(t, null);
4
4
  export {
5
5
  i as MultilineAddressRAC
@@ -1,57 +1,57 @@
1
- import { RicosViewer as v } from "@wix/ricos/viewer";
1
+ import { RicosViewer as P } from "@wix/ricos/viewer";
2
2
  import i from "classnames";
3
- import r, { useState as j, useCallback as Q, useEffect as U, useRef as $ } from "react";
3
+ import r, { useState as Q, useCallback as U, useEffect as $, useRef as j } from "react";
4
4
  import { NumberField as z, Input as G } from "react-aria-components";
5
- import { aj as _, ag as S, at as H, al as J } from "./form-UCnayEKT.js";
5
+ import { ak as _, ah as S, au as H, am as J } from "./form-C7cB75mm.js";
6
6
  import { f as c } from "./find-child-C60k4CxG.js";
7
- import { D as K, E as W } from "./field-error-headless-PMBWtb3Z.js";
8
- import { L as X } from "./field-label-headless-0racVfdo.js";
7
+ import { D as K, E as W } from "./field-error-headless-T9JfqiMS.js";
8
+ import { L as X } from "./field-label-headless-bDWQszAb.js";
9
9
  import { g as Y, c as Z } from "./numeric-input-utils-CuBMi4-a.js";
10
10
  import { u as w } from "./use-invoke-callback-UH73A_J3.js";
11
11
  import { E as ee } from "./error-icon-hZxQ6DEy.js";
12
- import { s as p } from "./field-rac.module-D06m9T9x.js";
13
- import { y as re, P as te, o as ae, i as ne } from "./form-element-classes--p2vz_Bm.js";
14
- import { u as se } from "./use-text-input-class-name-BAuokapo.js";
12
+ import { s as p } from "./field-rac.module-BUvPquav.js";
13
+ import { B as re, R as te, q as ae, i as ne } from "./form-element-classes-CLZXu-91.js";
14
+ import { u as se } from "./use-text-input-class-name-CgCYHOMw.js";
15
15
  const e = ({ children: t }) => {
16
- var F, L, R;
17
- const { id: n, value: s, onChange: l, disabled: d, required: E, readOnly: o, onBlur: b, onFocus: f, FieldLayout: m, hasError: u, validation: a } = _(), { labelId: y } = S(), D = ((F = a == null ? void 0 : a.number) == null ? void 0 : F.multipleOf) || 1, g = (L = a == null ? void 0 : a.number) == null ? void 0 : L.maximum, A = (R = a == null ? void 0 : a.number) == null ? void 0 : R.minimum, x = O(s), [T, I] = j(x), V = w(b), h = c(t, e.Label), q = c(t, e.Input), M = c(t, e.Description), k = c(t, e.Error), B = Q((N) => {
16
+ var F, R, L;
17
+ const { id: n, value: s, onChange: l, disabled: d, required: E, readOnly: o, onBlur: b, onFocus: f, FieldLayout: m, hasError: u, validation: a } = _(), { labelId: y } = S(), D = ((F = a == null ? void 0 : a.number) == null ? void 0 : F.multipleOf) || 1, A = (R = a == null ? void 0 : a.number) == null ? void 0 : R.maximum, g = (L = a == null ? void 0 : a.number) == null ? void 0 : L.minimum, h = O(s), [q, I] = Q(h), x = w(b), T = c(t, e.Label), V = c(t, e.Input), k = c(t, e.Description), B = c(t, e.Error), M = U((N) => {
18
18
  if (N === void 0 || Number.isNaN(N)) {
19
19
  l(""), I(NaN);
20
20
  return;
21
21
  }
22
- const P = Y(D), C = Number(N.toFixed(P));
22
+ const v = Y(D), C = Number(N.toFixed(v));
23
23
  l(C), I(C);
24
24
  }, [
25
25
  D,
26
26
  l
27
27
  ]);
28
- return U(() => {
28
+ return $(() => {
29
29
  I(O(s));
30
30
  }, [
31
31
  s
32
32
  ]), /* @__PURE__ */ r.createElement(m, {
33
33
  fieldId: n,
34
- renderLabel: () => h,
34
+ renderLabel: () => T,
35
35
  renderInput: () => /* @__PURE__ */ r.createElement(z, {
36
36
  "aria-labelledby": y,
37
- value: T,
38
- onChange: B,
37
+ value: q,
38
+ onChange: M,
39
39
  isDisabled: d,
40
40
  isRequired: E,
41
41
  isReadOnly: o,
42
42
  isInvalid: u,
43
- onBlur: V,
43
+ onBlur: x,
44
44
  onFocus: f,
45
- minValue: A ?? void 0,
46
- maxValue: g ?? void 0
47
- }, q),
48
- renderDescription: () => /* @__PURE__ */ r.createElement(r.Fragment, null, k, M)
45
+ minValue: g ?? void 0,
46
+ maxValue: A ?? void 0
47
+ }, V),
48
+ renderDescription: () => /* @__PURE__ */ r.createElement(r.Fragment, null, B, k)
49
49
  });
50
50
  }, le = ({ className: t }) => {
51
51
  var u;
52
52
  const { t: n } = H(), { inputId: s, ariaDescribedBy: l } = S(), { id: d, placeholder: E, validation: o, label: b, required: f } = _();
53
53
  (u = o == null ? void 0 : o.number) != null && u.multipleOf;
54
- const m = $(null);
54
+ const m = j(null);
55
55
  return J(() => {
56
56
  var a;
57
57
  (a = m.current) == null || a.focus();
@@ -71,10 +71,10 @@ e.Label = X;
71
71
  e.Input = le;
72
72
  e.Description = K;
73
73
  e.Error = W;
74
- const O = (t) => Z(t) ?? NaN, oe = ({ content: t, locale: n }) => /* @__PURE__ */ r.createElement(v, {
74
+ const O = (t) => Z(t) ?? NaN, oe = ({ content: t, locale: n }) => /* @__PURE__ */ r.createElement(P, {
75
75
  content: t,
76
76
  locale: n
77
- }), Re = () => {
77
+ }), Le = () => {
78
78
  const t = se();
79
79
  return /* @__PURE__ */ r.createElement(e, null, /* @__PURE__ */ r.createElement(e.Label, {
80
80
  className: i(re, p.label)
@@ -89,5 +89,5 @@ const O = (t) => Z(t) ?? NaN, oe = ({ content: t, locale: n }) => /* @__PURE__ *
89
89
  }, oe));
90
90
  };
91
91
  export {
92
- Re as N
92
+ Le as N
93
93
  };
@@ -1,5 +1,5 @@
1
1
  import e from "react";
2
- import { N as r } from "./number-input-field-rac-BNdJecUL.js";
2
+ import { N as r } from "./number-input-field-rac-DMHSUbYN.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 S } from "react";
2
2
  import { RicosViewer as x } from "@wix/ricos/viewer";
3
3
  import d from "classnames";
4
- import { aj as E, ag as I, al as O, at as A } from "./form-UCnayEKT.js";
5
- import { TextField as B, Group as P, Input as V, Button as v } from "react-aria-components";
4
+ import { ak as E, ah as I, am as O, au as B } from "./form-C7cB75mm.js";
5
+ import { TextField as A, Group as V, Input as v, Button as P } from "react-aria-components";
6
6
  import { f as u, a as g } from "./find-child-C60k4CxG.js";
7
- import { D as M, E as k } from "./field-error-headless-PMBWtb3Z.js";
8
- import { L as q } from "./field-label-headless-0racVfdo.js";
9
- import { E as j } from "./error-icon-hZxQ6DEy.js";
10
- import { H as U } from "./custom-focus-class-_483Pkwp.js";
11
- import { s as p } from "./field-rac.module-D06m9T9x.js";
12
- import { y as H, P as W, o as Z, i as G } from "./form-element-classes--p2vz_Bm.js";
13
- import { u as Q } from "./use-text-input-class-name-BAuokapo.js";
7
+ import { D as M, E as k } from "./field-error-headless-T9JfqiMS.js";
8
+ import { L as q } from "./field-label-headless-bDWQszAb.js";
9
+ import { E as U } from "./error-icon-hZxQ6DEy.js";
10
+ import { H as j } from "./custom-focus-class-_483Pkwp.js";
11
+ import { s as p } from "./field-rac.module-BUvPquav.js";
12
+ import { B as H, R as W, q as Z, i as G } from "./form-element-classes-CLZXu-91.js";
13
+ import { u as Q } from "./use-text-input-class-name-CgCYHOMw.js";
14
14
  const t = ({ children: o, className: r }) => {
15
- const { id: l, value: s, onChange: c, disabled: n, readOnly: m, required: a, hasError: i, onBlur: f, onFocus: C, FieldLayout: y } = E(), { labelId: _ } = I(), [R, D] = N(!1), F = u(o, t.Label), L = u(o, t.Control), T = u(o, t.Description), w = u(o, t.Error);
16
- return /* @__PURE__ */ e.createElement(y, {
15
+ const { id: l, value: s, onChange: c, disabled: n, readOnly: m, required: a, hasError: i, onBlur: f, onFocus: C, FieldLayout: _ } = E(), { labelId: y } = I(), [R, D] = N(!1), F = u(o, t.Label), L = u(o, t.Control), T = u(o, t.Description), h = u(o, t.Error);
16
+ return /* @__PURE__ */ e.createElement(_, {
17
17
  fieldId: l,
18
18
  renderLabel: () => F,
19
- renderInput: () => /* @__PURE__ */ e.createElement(B, {
20
- "aria-labelledby": _,
19
+ renderInput: () => /* @__PURE__ */ e.createElement(A, {
20
+ "aria-labelledby": y,
21
21
  value: s ?? "",
22
22
  onChange: c,
23
23
  isDisabled: n,
@@ -29,13 +29,13 @@ const t = ({ children: o, className: r }) => {
29
29
  className: r
30
30
  }, g(L, {
31
31
  isVisible: R,
32
- onToggleVisibility: () => D((h) => !h)
32
+ onToggleVisibility: () => D((w) => !w)
33
33
  })),
34
- renderDescription: () => /* @__PURE__ */ e.createElement(e.Fragment, null, T, w)
34
+ renderDescription: () => /* @__PURE__ */ e.createElement(e.Fragment, null, T, h)
35
35
  });
36
36
  }, $ = ({ 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
- return /* @__PURE__ */ e.createElement(P, {
38
+ return /* @__PURE__ */ e.createElement(V, {
39
39
  className: r,
40
40
  isDisabled: n,
41
41
  isInvalid: m
@@ -50,7 +50,7 @@ const t = ({ children: o, className: r }) => {
50
50
  return O(() => {
51
51
  var i;
52
52
  (i = a.current) == null || i.focus();
53
- }, s), /* @__PURE__ */ e.createElement(V, {
53
+ }, s), /* @__PURE__ */ e.createElement(v, {
54
54
  ref: a,
55
55
  id: n,
56
56
  type: l ? "text" : "password",
@@ -60,7 +60,7 @@ const t = ({ children: o, className: r }) => {
60
60
  });
61
61
  }, J = ({ className: o, showPasswordTooltipText: r, hidePasswordTooltipText: l, children: s, ...c }) => {
62
62
  const { isVisible: n, onToggleVisibility: m } = c, { disabled: a } = E(), i = n ? l : r;
63
- return /* @__PURE__ */ e.createElement(v, {
63
+ return /* @__PURE__ */ e.createElement(P, {
64
64
  type: "button",
65
65
  isDisabled: a,
66
66
  onPress: m,
@@ -119,7 +119,7 @@ const K = (o) => /* @__PURE__ */ e.createElement("svg", {
119
119
  content: o,
120
120
  locale: r
121
121
  }), oe = () => {
122
- const { t: o } = A(), r = Q(b.control);
122
+ const { t: o } = B(), r = Q(b.control);
123
123
  return /* @__PURE__ */ e.createElement(t, null, /* @__PURE__ */ e.createElement(t.Label, {
124
124
  className: d(H, p.label)
125
125
  }, /* @__PURE__ */ e.createElement(t.Label.Required, {
@@ -127,14 +127,14 @@ const K = (o) => /* @__PURE__ */ e.createElement("svg", {
127
127
  })), /* @__PURE__ */ e.createElement(t.Control, {
128
128
  className: r
129
129
  }, /* @__PURE__ */ e.createElement(t.Input, {
130
- className: d(p.innerInput, U)
130
+ className: d(p.innerInput, j)
131
131
  }), /* @__PURE__ */ e.createElement(t.Toggle, {
132
132
  className: b.toggleButton,
133
133
  showPasswordTooltipText: o("forms.widget.modals.show-password-tooltip"),
134
134
  hidePasswordTooltipText: o("forms.widget.modals.hide-password-tooltip")
135
135
  }, ({ isVisible: l }) => l ? /* @__PURE__ */ e.createElement(X, null) : /* @__PURE__ */ e.createElement(K, null))), /* @__PURE__ */ e.createElement(t.Error, {
136
136
  className: d(Z, p.error)
137
- }, /* @__PURE__ */ e.createElement(j, null), /* @__PURE__ */ e.createElement(t.Error.Text, null)), /* @__PURE__ */ e.createElement(t.Description, {
137
+ }, /* @__PURE__ */ e.createElement(U, null), /* @__PURE__ */ e.createElement(t.Error.Text, null)), /* @__PURE__ */ e.createElement(t.Description, {
138
138
  className: d(G, p.description)
139
139
  }, te));
140
140
  }, be = () => /* @__PURE__ */ e.createElement(oe, null);
@@ -1,18 +1,18 @@
1
- import r, { useCallback as V, useRef as Q } from "react";
1
+ import r, { useCallback as P, useRef as j } from "react";
2
2
  import { RicosViewer as w } from "@wix/ricos/viewer";
3
3
  import p from "classnames";
4
4
  import { TextField as z, Group as J, Input as K } from "react-aria-components";
5
- import { aj as R, ag as D, ab as T, at as W, al as X } from "./form-UCnayEKT.js";
5
+ import { ak as N, ah as D, ac as T, au as W, am as X } from "./form-C7cB75mm.js";
6
6
  import { f as i } from "./find-child-C60k4CxG.js";
7
- import { D as Y, E as Z } from "./field-error-headless-PMBWtb3Z.js";
8
- import { L as ee } from "./field-label-headless-0racVfdo.js";
9
- import { f as N, g as re } from "./payment-field-utils-DobiK5Xh.js";
7
+ import { D as Y, E as Z } from "./field-error-headless-T9JfqiMS.js";
8
+ import { L as ee } from "./field-label-headless-bDWQszAb.js";
9
+ import { f as L, g as re } from "./payment-field-utils-DobiK5Xh.js";
10
10
  import { u as te } from "./use-synced-display-value-DcAxdn3M.js";
11
11
  import { E as ne } from "./error-icon-hZxQ6DEy.js";
12
12
  import { H as ae } from "./custom-focus-class-_483Pkwp.js";
13
- import { s as d } from "./field-rac.module-D06m9T9x.js";
14
- import { y as se, P as oe, o as le, i as ce } from "./form-element-classes--p2vz_Bm.js";
15
- import { u as ie } from "./use-text-input-class-name-BAuokapo.js";
13
+ import { s as d } from "./field-rac.module-BUvPquav.js";
14
+ import { B as se, R as oe, q as le, i as ce } from "./form-element-classes-CLZXu-91.js";
15
+ import { u as ie } from "./use-text-input-class-name-CgCYHOMw.js";
16
16
  function ue(e, t) {
17
17
  return {
18
18
  productId: e.id,
@@ -27,29 +27,29 @@ function h(e) {
27
27
  return Number.isNaN(t) ? void 0 : t;
28
28
  }
29
29
  const n = ({ children: e }) => {
30
- var O, g, A, P;
31
- const { id: t, value: a, onChange: s, disabled: u, readOnly: m, required: y, hasError: b, onBlur: o, onFocus: E, FieldLayout: M, validation: C } = R(), { 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], _ = (P = a == null ? void 0 : a.at(0)) == null ? void 0 : P.price, [F, I] = te({
30
+ var O, g, A, V;
31
+ const { id: t, value: a, onChange: s, disabled: u, readOnly: m, required: y, hasError: b, onBlur: o, onFocus: E, FieldLayout: q, validation: C } = N(), { labelId: M, 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, I] = te({
32
32
  sourceValue: _,
33
- format: (l) => N(String(l ?? ""), c),
33
+ format: (l) => L(String(l ?? ""), c),
34
34
  regionalFormat: c
35
- }), $ = V(() => {
36
- const l = N(F, c);
35
+ }), $ = P(() => {
36
+ const l = L(F, c);
37
37
  I(l || ""), o == null || o();
38
38
  }, [
39
39
  F,
40
40
  c,
41
41
  o,
42
42
  I
43
- ]), B = V((l) => {
43
+ ]), B = P((l) => {
44
44
  I(l);
45
- const L = h(N(l, c)), j = h(_);
46
- if (L !== j) {
47
- if (L === void 0) {
45
+ const R = h(L(l, c)), Q = h(_);
46
+ if (R !== Q) {
47
+ if (R === void 0) {
48
48
  s(null);
49
49
  return;
50
50
  }
51
51
  s([
52
- ue(S, L)
52
+ ue(S, R)
53
53
  ]);
54
54
  }
55
55
  }, [
@@ -58,12 +58,12 @@ const n = ({ children: e }) => {
58
58
  c,
59
59
  _,
60
60
  I
61
- ]), U = i(e, n.Label), k = i(e, n.Input), v = i(e, n.Description), H = i(e, n.Error);
62
- return /* @__PURE__ */ r.createElement(M, {
61
+ ]), k = i(e, n.Label), U = i(e, n.Input), v = i(e, n.Description), H = i(e, n.Error);
62
+ return /* @__PURE__ */ r.createElement(q, {
63
63
  fieldId: t,
64
- renderLabel: () => U,
64
+ renderLabel: () => k,
65
65
  renderInput: () => /* @__PURE__ */ r.createElement(z, {
66
- "aria-labelledby": `${q} ${G}`,
66
+ "aria-labelledby": `${M} ${G}`,
67
67
  value: a ? F : "",
68
68
  onChange: B,
69
69
  isDisabled: u,
@@ -72,11 +72,11 @@ const n = ({ children: e }) => {
72
72
  isInvalid: b,
73
73
  onBlur: $,
74
74
  onFocus: E
75
- }, k),
75
+ }, U),
76
76
  renderDescription: () => /* @__PURE__ */ r.createElement(r.Fragment, null, H, v)
77
77
  });
78
78
  }, f = ({ children: e, className: t }) => {
79
- const { disabled: a, hasError: s } = R(), u = i(e, f.Currency), m = i(e, f.Value);
79
+ const { disabled: a, hasError: s } = N(), u = i(e, f.Currency), m = i(e, f.Value);
80
80
  return /* @__PURE__ */ r.createElement(J, {
81
81
  className: t,
82
82
  isDisabled: a,
@@ -91,7 +91,7 @@ const n = ({ children: e }) => {
91
91
  className: e
92
92
  }, t.sign || t.code) : null;
93
93
  }, pe = ({ className: e }) => {
94
- const { id: t, placeholder: a, label: s } = R(), { inputId: u, labelId: m, prefixId: y, ariaDescribedBy: b } = D(), o = Q(null);
94
+ const { id: t, placeholder: a, label: s } = N(), { inputId: u, labelId: m, prefixId: y, ariaDescribedBy: b } = D(), o = j(null);
95
95
  return X(() => {
96
96
  var E;
97
97
  (E = o.current) == null || E.focus();