@wix/form-elements 1.187.0 → 1.189.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 (109) hide show
  1. package/dist/component/{appointment-rac-DiGTD4hn.js → appointment-rac-Biwj0bKe.js} +78 -78
  2. package/dist/component/{bookings-address-rac-Bczo07PP.js → bookings-address-rac-B_o25LOI.js} +1 -1
  3. package/dist/component/{bookings-email-rac-D0cw7HFH.js → bookings-email-rac-BBcusxbS.js} +1 -1
  4. package/dist/component/{bookings-first-name-rac-DqxVpKqV.js → bookings-first-name-rac-CNTGannm.js} +1 -1
  5. package/dist/component/{bookings-header-rac-BxlD5Wje.js → bookings-header-rac-BTvG2vnk.js} +1 -1
  6. package/dist/component/{bookings-last-name-rac-CraNB_ut.js → bookings-last-name-rac-BQumGsz9.js} +1 -1
  7. package/dist/component/{bookings-login-bar-rac-BMGnVYXE.js → bookings-login-bar-rac-Cl_rwWhO.js} +8 -8
  8. package/dist/component/{bookings-phone-rac-CnSlSyLi.js → bookings-phone-rac-B_gXe9Fa.js} +1 -1
  9. package/dist/component/{bookings-rich-text-rac-CWWvRRRi.js → bookings-rich-text-rac-CbMuPVCB.js} +1 -1
  10. package/dist/component/{checkbox-field-rac-C2LLGbbS.js → checkbox-field-rac-QwFSqEgs.js} +43 -43
  11. package/dist/component/{checkbox-group-field-headless-B2hKVuJD.js → checkbox-group-field-headless-CTDMO0TM.js} +38 -38
  12. package/dist/component/{checkbox-group-field-rac-Bqo7LRpI.js → checkbox-group-field-rac-DFUST9Th.js} +4 -4
  13. package/dist/component/{checkbox-group-rac-CHAnQW7L.js → checkbox-group-rac-CBAE-o1Q.js} +1 -1
  14. package/dist/component/{checkbox-rac-D09xnf-F.js → checkbox-rac-DkYPhGTU.js} +1 -1
  15. package/dist/component/{contacts-address-rac-CY_ff8gq.js → contacts-address-rac-DKf42iJk.js} +1 -1
  16. package/dist/component/{contacts-birthdate-rac-BkPpyiCP.js → contacts-birthdate-rac-ffPSb2YW.js} +1 -1
  17. package/dist/component/{contacts-company-rac-2I05yC97.js → contacts-company-rac-DLVdNbYz.js} +1 -1
  18. package/dist/component/{contacts-email-rac-B5vwkBUk.js → contacts-email-rac-CW8SdcYX.js} +1 -1
  19. package/dist/component/{contacts-first-name-rac-CVxn7EaP.js → contacts-first-name-rac-CGdzgpkw.js} +1 -1
  20. package/dist/component/{contacts-last-name-rac-DIu7T_QU.js → contacts-last-name-rac-DNQj7UcW.js} +1 -1
  21. package/dist/component/{contacts-phone-rac-B_9KO997.js → contacts-phone-rac-zAMIceti.js} +1 -1
  22. package/dist/component/{contacts-position-rac-Dll7FDN5.js → contacts-position-rac-DLwn9B2T.js} +1 -1
  23. package/dist/component/{contacts-subscribe-rac-DvZ0S_7T.js → contacts-subscribe-rac-Cy5rxTkC.js} +1 -1
  24. package/dist/component/{contacts-tax-id-rac-BmYWQGbm.js → contacts-tax-id-rac-CEfU6N6C.js} +1 -1
  25. package/dist/component/{date-availability-C2IYlnG_.js → date-availability-C9EOQUiy.js} +1 -1
  26. package/dist/component/{date-input-field-rac-TwaBKY7l.js → date-input-field-rac-F4QQeEtO.js} +57 -57
  27. package/dist/component/{date-input-rac-CusCOLnm.js → date-input-rac-CJeOgyF5.js} +1 -1
  28. package/dist/component/{date-picker-field-rac-ufxxlmpA.js → date-picker-field-rac-33ARKAxQ.js} +35 -35
  29. package/dist/component/{date-picker-rac-IGr_hLjg.js → date-picker-rac-Beaqh84V.js} +1 -1
  30. package/dist/component/{date-time-input-field-rac-B6ZQo4Tk.js → date-time-input-field-rac-CB8FfYUM.js} +44 -44
  31. package/dist/component/{date-time-input-rac-X1GCfhSl.js → date-time-input-rac-DQ9P6IVp.js} +1 -1
  32. package/dist/component/{dext-checkbox-group-rac-D9UmRqnt.js → dext-checkbox-group-rac-Cho-hueW.js} +2 -2
  33. package/dist/component/{dext-checkbox-rac-DrMbQCX3.js → dext-checkbox-rac-BIwIwy-y.js} +1 -1
  34. package/dist/component/{dext-date-picker-rac-Barwg8La.js → dext-date-picker-rac-C03HJdvX.js} +1 -1
  35. package/dist/component/{dext-date-time-input-rac-ChIUfDk4.js → dext-date-time-input-rac-Bo4XfnRA.js} +1 -1
  36. package/dist/component/{dext-dropdown-rac-BCrEGvfc.js → dext-dropdown-rac-CadT1tMH.js} +1 -1
  37. package/dist/component/{dext-email-rac-D7l9fah1.js → dext-email-rac-DbiEws8H.js} +1 -1
  38. package/dist/component/{dext-number-input-rac-CrI6ChK9.js → dext-number-input-rac-XoW8CLvX.js} +1 -1
  39. package/dist/component/{dext-phone-rac-B_ObVduc.js → dext-phone-rac-9rFyUD8e.js} +1 -1
  40. package/dist/component/{dext-radio-group-rac-DOBaXXjq.js → dext-radio-group-rac-U6BNL7IT.js} +2 -2
  41. package/dist/component/{dext-rating-input-rac-D4LxflR7.js → dext-rating-input-rac-BDGUv8jU.js} +1 -1
  42. package/dist/component/{dext-tags-rac-nTSiW-H7.js → dext-tags-rac-CAFGVcIi.js} +2 -2
  43. package/dist/component/{dext-text-area-rac-DYV_gO7a.js → dext-text-area-rac-DXyzm9oe.js} +1 -1
  44. package/dist/component/{dext-text-input-rac-Zjq6PsXg.js → dext-text-input-rac-C27gdfyG.js} +1 -1
  45. package/dist/component/{dext-url-input-rac-BM7jm0Tn.js → dext-url-input-rac-DovYH3_G.js} +1 -1
  46. package/dist/component/{donation-rac-CGjEtI7s.js → donation-rac-DV2aRsDt.js} +60 -60
  47. package/dist/component/{dropdown-field-rac-c-Owb2hL.js → dropdown-field-rac-D58C7YZG.js} +3 -3
  48. package/dist/component/{dropdown-rac-Bp9hWnJS.js → dropdown-rac-57yZf_yZ.js} +1 -1
  49. package/dist/component/{ecom-address-rac-C1YRffNH.js → ecom-address-rac-Co3WhA7m.js} +1 -1
  50. package/dist/component/{ecom-subscription-checkbox-rac-B5uCvEqP.js → ecom-subscription-checkbox-rac-CYjsuRA9.js} +2 -2
  51. package/dist/component/{email-input-field-rac-BDQYfj6b.js → email-input-field-rac-C5G3pVkR.js} +14 -14
  52. package/dist/component/{events-repeater-rac-DoZBb6e0.js → events-repeater-rac-D5PXSDIH.js} +72 -70
  53. package/dist/component/{events-rsvp-rac-OyYogsL5.js → events-rsvp-rac-BfyQNZh6.js} +3 -3
  54. package/dist/component/{field-error-headless-B41KJxbD.js → field-error-headless-RTyrenpC.js} +8 -8
  55. package/dist/component/{field-label-headless-DHt_Wm_S.js → field-label-headless-Bd00Hl2z.js} +4 -4
  56. package/dist/component/{file-upload-rac-Bed5vOYu.js → file-upload-rac-D5pTnsHO.js} +61 -61
  57. package/dist/component/{fixed-payment-rac-_HtF4gSw.js → fixed-payment-rac-ByxSjPu5.js} +9 -9
  58. package/dist/component/{form-DAUDnpk6.js → form-BG5UjjLA.js} +3276 -3217
  59. package/dist/component/form.js +1 -1
  60. package/dist/component/{header-field-rac-BwlXDMt4.js → header-field-rac-Bql6VoAi.js} +2 -2
  61. package/dist/component/{header-rac-CdFpA8bi.js → header-rac-DWAIn4eY.js} +1 -1
  62. package/dist/component/{image-choice-rac-Bfs7ixsZ.js → image-choice-rac-D5dSQ4Xd.js} +11 -11
  63. package/dist/component/{index-B5HfcvO_.js → index-37eV-JEp.js} +5 -5
  64. package/dist/component/{index-BQctPc9k.js → index-DlcCtz4h.js} +4 -4
  65. package/dist/component/{isObjectLike-CKRIZUUL.js → isObjectLike-ClPDcTiq.js} +1 -1
  66. package/dist/component/{multiline-address-field-rac-Gs6BGlnz.js → multiline-address-field-rac-CpvwzmpC.js} +345 -345
  67. package/dist/component/{multiline-address-rac-6tsDZK20.js → multiline-address-rac-ENim2Bn6.js} +1 -1
  68. package/dist/component/{number-input-field-rac-D2vzcEDT.js → number-input-field-rac-DTRnmRDk.js} +21 -21
  69. package/dist/component/{number-input-rac-DJA2sjJ2.js → number-input-rac-QROlEpkx.js} +1 -1
  70. package/dist/component/{password-rac-DS9j5AEn.js → password-rac-jMoyzIP2.js} +47 -47
  71. package/dist/component/{payment-input-rac-t15HwuyR.js → payment-input-rac-DOOV4P4b.js} +31 -31
  72. package/dist/component/{phone-input-field-rac-DCEMaJjP.js → phone-input-field-rac-BA_mTcND.js} +47 -47
  73. package/dist/component/{phone-rac-R2KIpq9Y.js → phone-rac-DXcbIqHK.js} +1 -1
  74. package/dist/component/{product-list-rac-BCaz8EbJ.js → product-list-rac-CsxR7Ut6.js} +63 -63
  75. package/dist/component/{quiz-radio-group-rac-Czjt8SZW.js → quiz-radio-group-rac-IQgqvqjs.js} +1 -1
  76. package/dist/component/{radio-button-module-classes-B2cY0daS.js → radio-button-module-classes-DIFYfYiH.js} +36 -36
  77. package/dist/component/{radio-group-field-rac-BdCqn6Uq.js → radio-group-field-rac-Ca2RlxOl.js} +4 -4
  78. package/dist/component/{radio-group-rac-CdKWOA6d.js → radio-group-rac-DDervEEb.js} +1 -1
  79. package/dist/component/{rating-input-field-rac-qllcIC5u.js → rating-input-field-rac-0kyPo9cU.js} +12 -12
  80. package/dist/component/{rating-input-rac-Cno0IibX.js → rating-input-rac-DqPsqUKR.js} +1 -1
  81. package/dist/component/{rich-content-rac.module-Bj8zO5BD.js → rich-content-rac.module-2T_-7jvb.js} +5 -5
  82. package/dist/component/{rich-text-field-rac-CJOPMgvk.js → rich-text-field-rac-W-eKzhuC.js} +4 -4
  83. package/dist/component/{rich-text-rac-qJLSQUfk.js → rich-text-rac-CzJfbAyx.js} +1 -1
  84. package/dist/component/{service-dropdown-rac-CrrqMt0I.js → service-dropdown-rac-BMJy2pZ5.js} +25 -25
  85. package/dist/component/{services-multi-choice-rac-DHpIgQT8.js → services-multi-choice-rac-BBAWlI7U.js} +7 -7
  86. package/dist/component/{signature-rac-vHDz7aO9.js → signature-rac-Y1GLswrp.js} +22 -22
  87. package/dist/component/{submit-button-rac-CdSXP5MY.js → submit-button-rac-CSKbrgQ3.js} +17 -17
  88. package/dist/component/{tags-field-rac-BE5q3Yzp.js → tags-field-rac-D3zOYcC5.js} +19 -19
  89. package/dist/component/{tags-rac-DPH9Jekq.js → tags-rac-Cs77Abgs.js} +1 -1
  90. package/dist/component/text-area-field-rac-DZZW7rAX.js +74 -0
  91. package/dist/component/{text-area-rac-BWI_FwJ_.js → text-area-rac-BRPp0HnX.js} +1 -1
  92. package/dist/component/{text-input-field-rac-SljlZsKs.js → text-input-field-rac-tPDZmLdU.js} +3 -3
  93. package/dist/component/text-input-headless-tkwEZWs7.js +47 -0
  94. package/dist/component/{text-input-rac-OP8CxA5d.js → text-input-rac-DnHt4vkM.js} +1 -1
  95. package/dist/component/{time-input-rac-Dc0pojpK.js → time-input-rac-Dbg4Nqb5.js} +18 -18
  96. package/dist/component/url-input-field-rac-3ODFXFRP.js +77 -0
  97. package/dist/component/{url-input-rac-DW245AQ3.js → url-input-rac-CPb5o8Of.js} +1 -1
  98. package/dist/component/{use-dropdown-option-class-name-CohYBaie.js → use-dropdown-option-class-name-Dd4ncVaY.js} +2 -2
  99. package/dist/component/{use-dropdown-trigger-class-name-CcyW9dW5.js → use-dropdown-trigger-class-name-zVniRqM7.js} +29 -29
  100. package/dist/component/{use-element-state-class-name-ByWbyT81.js → use-element-state-class-name-C8jFeDrq.js} +3 -3
  101. package/dist/component/{use-hoverable-input-class-name-CmYpz2Os.js → use-hoverable-input-class-name-B9diy0Mr.js} +2 -2
  102. package/dist/component/{use-is-forced-open-dropdown-D4-XPkUN.js → use-is-forced-open-dropdown-BR1U1l5w.js} +6 -6
  103. package/dist/component/{use-service-options-base-DGHhZKVh.js → use-service-options-base-yM4rJlq1.js} +3 -3
  104. package/dist/component/use-text-input-class-name-D6AnBbJx.js +6 -0
  105. package/package.json +2 -2
  106. package/dist/component/text-area-field-rac-CUSpvF_P.js +0 -74
  107. package/dist/component/text-input-headless-BWFcuwI4.js +0 -47
  108. package/dist/component/url-input-field-rac-CcUeuaJX.js +0 -77
  109. package/dist/component/use-text-input-class-name-VJ-nzeqS.js +0 -6
@@ -1,5 +1,5 @@
1
1
  import e from "react";
2
- import { M as t } from "./multiline-address-field-rac-Gs6BGlnz.js";
2
+ import { M as t } from "./multiline-address-field-rac-CpvwzmpC.js";
3
3
  const i = () => /* @__PURE__ */ e.createElement(t, null);
4
4
  export {
5
5
  i as MultilineAddressRAC
@@ -1,37 +1,37 @@
1
1
  import { RicosViewer as P } from "@wix/ricos/viewer";
2
2
  import i from "classnames";
3
- import r, { useState as Q, useCallback as U, useEffect as X, useRef as $ } from "react";
4
- import { NumberField as j, Input as z } from "react-aria-components";
5
- import { bL as _, bI as S, bV as G, bN as H, X as J, am as K, M as W, I as Y } from "./form-DAUDnpk6.js";
3
+ import r, { useState as X, useCallback as J, useEffect as Q, useRef as U } from "react";
4
+ import { NumberField as $, Input as j } from "react-aria-components";
5
+ import { bM as _, bJ as S, bX as z, bO as G, X as H, am as K, M as W, I as Y } from "./form-BG5UjjLA.js";
6
6
  import { f as c } from "./find-child-C60k4CxG.js";
7
- import { D as Z, E as w } from "./field-error-headless-B41KJxbD.js";
8
- import { L as ee } from "./field-label-headless-DHt_Wm_S.js";
7
+ import { D as Z, E as w } from "./field-error-headless-RTyrenpC.js";
8
+ import { L as ee } from "./field-label-headless-Bd00Hl2z.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-DcyJyi2B.js";
13
- import { u as se } from "./use-text-input-class-name-VJ-nzeqS.js";
13
+ import { u as se } from "./use-text-input-class-name-D6AnBbJx.js";
14
14
  const e = ({ children: t }) => {
15
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] = Q(g), M = ne(E), T = c(t, e.Label), h = c(t, e.Input), q = c(t, e.Description), k = c(t, e.Error), B = U((N) => {
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, M = (R = n == null ? void 0 : n.number) == null ? void 0 : R.minimum, g = C(s), [x, I] = X(g), T = ne(E), V = c(t, e.Label), h = c(t, e.Input), q = c(t, e.Description), k = c(t, e.Error), B = J((N) => {
17
17
  if (N === void 0 || Number.isNaN(N)) {
18
18
  l(""), I(NaN);
19
19
  return;
20
20
  }
21
- const v = re(D), C = Number(N.toFixed(v));
22
- l(C), I(C);
21
+ const v = re(D), O = Number(N.toFixed(v));
22
+ l(O), I(O);
23
23
  }, [
24
24
  D,
25
25
  l
26
26
  ]);
27
- return X(() => {
28
- I(O(s));
27
+ return Q(() => {
28
+ I(C(s));
29
29
  }, [
30
30
  s
31
31
  ]), /* @__PURE__ */ r.createElement(m, {
32
32
  fieldId: a,
33
- renderLabel: () => T,
34
- renderInput: () => /* @__PURE__ */ r.createElement(j, {
33
+ renderLabel: () => V,
34
+ renderInput: () => /* @__PURE__ */ r.createElement($, {
35
35
  "aria-labelledby": y,
36
36
  value: x,
37
37
  onChange: B,
@@ -39,24 +39,24 @@ const e = ({ children: t }) => {
39
39
  isRequired: b,
40
40
  isReadOnly: o,
41
41
  isInvalid: u,
42
- onBlur: M,
42
+ onBlur: T,
43
43
  onFocus: f,
44
- minValue: V ?? void 0,
44
+ minValue: M ?? void 0,
45
45
  maxValue: A ?? void 0
46
46
  }, h),
47
47
  renderDescription: () => /* @__PURE__ */ r.createElement(r.Fragment, null, k, q)
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 } = z(), { 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 H(() => {
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,
@@ -72,13 +72,13 @@ e.Label = ee;
72
72
  e.Input = le;
73
73
  e.Description = Z;
74
74
  e.Error = w;
75
- const O = (t) => te(t) ?? NaN, oe = ({ content: t, locale: a }) => /* @__PURE__ */ r.createElement(P, {
75
+ const C = (t) => te(t) ?? NaN, oe = ({ content: t, locale: a }) => /* @__PURE__ */ r.createElement(P, {
76
76
  content: t,
77
77
  locale: a
78
78
  }), Le = () => {
79
79
  const t = se();
80
80
  return /* @__PURE__ */ r.createElement(e, null, /* @__PURE__ */ r.createElement(e.Label, {
81
- className: i(J, p.label)
81
+ className: i(H, p.label)
82
82
  }, /* @__PURE__ */ r.createElement(e.Label.Required, {
83
83
  className: i(K, p.requiredMark)
84
84
  })), /* @__PURE__ */ r.createElement(e.Input, {
@@ -1,5 +1,5 @@
1
1
  import e from "react";
2
- import { N as r } from "./number-input-field-rac-D2vzcEDT.js";
2
+ import { N as r } from "./number-input-field-rac-DTRnmRDk.js";
3
3
  const n = () => /* @__PURE__ */ e.createElement(r, null);
4
4
  export {
5
5
  n as NumberInputRAC
@@ -1,23 +1,23 @@
1
- import e, { useState as h, useRef as x } from "react";
2
- import { RicosViewer as O } from "@wix/ricos/viewer";
1
+ import e, { useState as N, useRef as O } from "react";
2
+ import { RicosViewer as x } from "@wix/ricos/viewer";
3
3
  import d from "classnames";
4
- import { bL as E, bI as I, bN as A, bV as B, X as V, am as v, M, I as P } from "./form-DAUDnpk6.js";
5
- import { TextField as k, Group as q, Input as U, Button as j } from "react-aria-components";
4
+ import { bM as E, bJ as I, bO as V, bV as A, bX as B, X as v, am as M, M as P, I as k } from "./form-BG5UjjLA.js";
5
+ import { TextField as q, Group as U, Input as j, Button as H } from "react-aria-components";
6
6
  import { f as u, a as b } from "./find-child-C60k4CxG.js";
7
- import { D as H, E as W } from "./field-error-headless-B41KJxbD.js";
8
- import { L as Z } from "./field-label-headless-DHt_Wm_S.js";
7
+ import { D as W, E as X } from "./field-error-headless-RTyrenpC.js";
8
+ import { L as Z } from "./field-label-headless-Bd00Hl2z.js";
9
9
  import { E as G } from "./error-icon-hZxQ6DEy.js";
10
- import { H as Q } from "./custom-focus-class-_483Pkwp.js";
10
+ import { H as J } from "./custom-focus-class-_483Pkwp.js";
11
11
  import { s as p } from "./field-rac.module-DcyJyi2B.js";
12
- import { u as X } from "./use-text-input-class-name-VJ-nzeqS.js";
12
+ import { u as K } from "./use-text-input-class-name-D6AnBbJx.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: _, FieldLayout: y } = E(), { labelId: L } = I(), [R, D] = h(!1), F = u(o, t.Label), T = u(o, t.Control), w = u(o, t.Description), N = u(o, t.Error);
15
- return /* @__PURE__ */ e.createElement(y, {
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), h = u(o, t.Description), w = u(o, t.Error);
15
+ return /* @__PURE__ */ e.createElement(_, {
16
16
  fieldId: l,
17
- renderLabel: () => F,
18
- renderInput: () => /* @__PURE__ */ e.createElement(k, {
19
- autoComplete: _,
20
- "aria-labelledby": L,
17
+ renderLabel: () => L,
18
+ renderInput: () => /* @__PURE__ */ e.createElement(q, {
19
+ autoComplete: y,
20
+ "aria-labelledby": R,
21
21
  value: s ?? "",
22
22
  onChange: c,
23
23
  isDisabled: n,
@@ -28,14 +28,14 @@ const t = ({ children: o, className: r }) => {
28
28
  onFocus: C,
29
29
  className: r
30
30
  }, b(T, {
31
- isVisible: R,
32
- onToggleVisibility: () => D((S) => !S)
31
+ isVisible: D,
32
+ onToggleVisibility: () => F((S) => !S)
33
33
  })),
34
- renderDescription: () => /* @__PURE__ */ e.createElement(e.Fragment, null, w, N)
34
+ renderDescription: () => /* @__PURE__ */ e.createElement(e.Fragment, null, h, w)
35
35
  });
36
- }, $ = ({ 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
- return /* @__PURE__ */ e.createElement(q, {
38
+ return /* @__PURE__ */ e.createElement(U, {
39
39
  className: r,
40
40
  isDisabled: n,
41
41
  isInvalid: m
@@ -45,14 +45,14 @@ const t = ({ children: o, className: r }) => {
45
45
  isVisible: s,
46
46
  onToggleVisibility: c
47
47
  }));
48
- }, z = ({ className: o, ...r }) => {
49
- const { isVisible: l } = r, { id: s, placeholder: c } = E(), { inputId: n, ariaDescribedBy: m } = I(), a = x(null);
50
- return A(() => {
48
+ }, $ = ({ className: o, ...r }) => {
49
+ const { isVisible: l } = r, { id: s, placeholder: c } = E(), { inputId: n, ariaDescribedBy: m } = I(), a = O(null);
50
+ return V(() => {
51
51
  var i;
52
52
  (i = a.current) == null || i.focus({
53
53
  preventScroll: !0
54
54
  });
55
- }, s), /* @__PURE__ */ e.createElement(U, {
55
+ }, s), A(a), /* @__PURE__ */ e.createElement(j, {
56
56
  ref: a,
57
57
  id: n,
58
58
  type: l ? "text" : "password",
@@ -60,9 +60,9 @@ const t = ({ children: o, className: r }) => {
60
60
  className: o,
61
61
  placeholder: c
62
62
  });
63
- }, J = ({ className: o, showPasswordTooltipText: r, hidePasswordTooltipText: l, children: s, ...c }) => {
63
+ }, z = ({ 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(j, {
65
+ return /* @__PURE__ */ e.createElement(H, {
66
66
  type: "button",
67
67
  isDisabled: a,
68
68
  onPress: m,
@@ -74,12 +74,12 @@ const t = ({ children: o, className: r }) => {
74
74
  }));
75
75
  };
76
76
  t.Label = Z;
77
- t.Control = $;
78
- t.Input = z;
79
- t.Toggle = J;
80
- t.Description = H;
81
- t.Error = W;
82
- const K = (o) => /* @__PURE__ */ e.createElement("svg", {
77
+ t.Control = Q;
78
+ t.Input = $;
79
+ t.Toggle = z;
80
+ t.Description = W;
81
+ t.Error = X;
82
+ const Y = (o) => /* @__PURE__ */ e.createElement("svg", {
83
83
  viewBox: "0 0 24 24",
84
84
  width: "20",
85
85
  height: "20",
@@ -94,7 +94,7 @@ const K = (o) => /* @__PURE__ */ e.createElement("svg", {
94
94
  cx: "12",
95
95
  cy: "12",
96
96
  r: "3"
97
- })), Y = (o) => /* @__PURE__ */ e.createElement("svg", {
97
+ })), ee = (o) => /* @__PURE__ */ e.createElement("svg", {
98
98
  viewBox: "0 0 24 24",
99
99
  width: "20",
100
100
  height: "20",
@@ -114,32 +114,32 @@ const K = (o) => /* @__PURE__ */ e.createElement("svg", {
114
114
  y1: "21",
115
115
  x2: "21",
116
116
  y2: "3"
117
- })), ee = "_control_1malj_1", te = "_toggleButton_1malj_15", g = {
118
- control: ee,
119
- toggleButton: te
120
- }, oe = ({ content: o, locale: r }) => /* @__PURE__ */ e.createElement(O, {
117
+ })), te = "_control_1malj_1", oe = "_toggleButton_1malj_15", g = {
118
+ control: te,
119
+ toggleButton: oe
120
+ }, re = ({ content: o, locale: r }) => /* @__PURE__ */ e.createElement(x, {
121
121
  content: o,
122
122
  locale: r
123
- }), re = () => {
124
- const { t: o } = B(), r = X(g.control);
123
+ }), se = () => {
124
+ const { t: o } = B(), r = K(g.control);
125
125
  return /* @__PURE__ */ e.createElement(t, null, /* @__PURE__ */ e.createElement(t.Label, {
126
- className: d(V, 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(M, 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, J)
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
- }, ({ isVisible: l }) => l ? /* @__PURE__ */ e.createElement(Y, null) : /* @__PURE__ */ e.createElement(K, null))), /* @__PURE__ */ e.createElement(t.Error, {
138
- className: d(M, p.error)
137
+ }, ({ isVisible: l }) => l ? /* @__PURE__ */ e.createElement(ee, null) : /* @__PURE__ */ e.createElement(Y, null))), /* @__PURE__ */ e.createElement(t.Error, {
138
+ className: d(P, p.error)
139
139
  }, /* @__PURE__ */ e.createElement(G, null), /* @__PURE__ */ e.createElement(t.Error.Text, null)), /* @__PURE__ */ e.createElement(t.Description, {
140
- className: d(P, p.description)
141
- }, oe));
142
- }, ge = () => /* @__PURE__ */ e.createElement(re, null);
140
+ className: d(k, p.description)
141
+ }, re));
142
+ }, Ie = () => /* @__PURE__ */ e.createElement(se, null);
143
143
  export {
144
- ge as PasswordRAC
144
+ Ie as PasswordRAC
145
145
  };
@@ -1,17 +1,17 @@
1
- import r, { useCallback as P, useRef as X } from "react";
2
- import { RicosViewer as j } from "@wix/ricos/viewer";
1
+ import r, { useCallback as P, useRef as J } from "react";
2
+ import { RicosViewer as Q } from "@wix/ricos/viewer";
3
3
  import p from "classnames";
4
- import { TextField as w, Group as z, Input as J } from "react-aria-components";
5
- import { bL as D, bI as R, bD as M, bV as K, bN as W, X as Y, am as Z, M as ee, I as re } from "./form-DAUDnpk6.js";
4
+ import { TextField as j, Group as w, Input as z } from "react-aria-components";
5
+ import { bM as R, bJ as D, bE as x, bX as K, bO as W, X as Y, am as Z, M as ee, I as re } from "./form-BG5UjjLA.js";
6
6
  import { f as i } from "./find-child-C60k4CxG.js";
7
- import { D as te, E as ne } from "./field-error-headless-B41KJxbD.js";
8
- import { L as ae } from "./field-label-headless-DHt_Wm_S.js";
7
+ import { D as te, E as ne } from "./field-error-headless-RTyrenpC.js";
8
+ import { L as ae } from "./field-label-headless-Bd00Hl2z.js";
9
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-DcyJyi2B.js";
14
- import { u as ie } from "./use-text-input-class-name-VJ-nzeqS.js";
14
+ import { u as ie } from "./use-text-input-class-name-D6AnBbJx.js";
15
15
  function ue(e, t) {
16
16
  return {
17
17
  productId: e.id,
@@ -19,15 +19,15 @@ function ue(e, t) {
19
19
  quantity: 1
20
20
  };
21
21
  }
22
- function h(e) {
22
+ function M(e) {
23
23
  if (e == null || e === "")
24
24
  return;
25
25
  const t = Number(String(e).replace(/,/g, "."));
26
26
  return Number.isNaN(t) ? void 0 : t;
27
27
  }
28
28
  const n = ({ children: e }) => {
29
- var O, g, V, A;
30
- const { id: t, value: a, onChange: s, disabled: u, readOnly: m, required: b, hasError: y, onBlur: o, onFocus: E, FieldLayout: T, validation: C } = D(), { labelId: q, prefixId: G } = R(), { regionalFormat: c } = M(), 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, I] = oe({
29
+ var O, g, A, V;
30
+ const { id: t, value: a, onChange: s, disabled: u, readOnly: m, required: b, hasError: y, onBlur: o, onFocus: f, FieldLayout: T, validation: C } = R(), { labelId: q, prefixId: G } = D(), { regionalFormat: c } = x(), 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] = oe({
31
31
  sourceValue: _,
32
32
  format: (l) => N(String(l ?? ""), c),
33
33
  regionalFormat: c
@@ -41,8 +41,8 @@ const n = ({ children: e }) => {
41
41
  I
42
42
  ]), v = P((l) => {
43
43
  I(l);
44
- const L = h(N(l, c)), Q = h(_);
45
- if (L !== Q) {
44
+ const L = M(N(l, c)), X = M(_);
45
+ if (L !== X) {
46
46
  if (L === void 0) {
47
47
  s(null);
48
48
  return;
@@ -61,7 +61,7 @@ const n = ({ children: e }) => {
61
61
  return /* @__PURE__ */ r.createElement(T, {
62
62
  fieldId: t,
63
63
  renderLabel: () => B,
64
- renderInput: () => /* @__PURE__ */ r.createElement(w, {
64
+ renderInput: () => /* @__PURE__ */ r.createElement(j, {
65
65
  "aria-labelledby": `${q} ${G}`,
66
66
  value: a ? F : "",
67
67
  onChange: v,
@@ -70,19 +70,19 @@ const n = ({ children: e }) => {
70
70
  isRequired: b,
71
71
  isInvalid: y,
72
72
  onBlur: $,
73
- onFocus: E
73
+ onFocus: f
74
74
  }, U),
75
75
  renderDescription: () => /* @__PURE__ */ r.createElement(r.Fragment, null, H, k)
76
76
  });
77
- }, f = ({ children: e, className: t }) => {
78
- const { disabled: a, hasError: s } = D(), u = i(e, f.Currency), m = i(e, f.Value);
79
- return /* @__PURE__ */ r.createElement(z, {
77
+ }, E = ({ children: e, className: t }) => {
78
+ const { disabled: a, hasError: s } = R(), u = i(e, E.Currency), m = i(e, E.Value);
79
+ return /* @__PURE__ */ r.createElement(w, {
80
80
  className: t,
81
81
  isDisabled: a,
82
82
  isInvalid: s
83
83
  }, u, m);
84
84
  }, me = ({ className: e }) => {
85
- const { currency: t } = M(), { t: a } = K(), { prefixId: s } = R();
85
+ const { currency: t } = x(), { t: a } = K(), { prefixId: s } = D();
86
86
  return t ? /* @__PURE__ */ r.createElement("span", {
87
87
  id: s,
88
88
  "aria-hidden": !1,
@@ -90,13 +90,13 @@ 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 } = D(), { inputId: u, labelId: m, prefixId: b, ariaDescribedBy: y } = R(), o = X(null);
93
+ const { id: t, placeholder: a, label: s } = R(), { inputId: u, labelId: m, prefixId: b, ariaDescribedBy: y } = D(), o = J(null);
94
94
  return W(() => {
95
- var E;
96
- (E = o.current) == null || E.focus({
95
+ var f;
96
+ (f = o.current) == null || f.focus({
97
97
  preventScroll: !0
98
98
  });
99
- }, t), /* @__PURE__ */ r.createElement(J, {
99
+ }, t), /* @__PURE__ */ r.createElement(z, {
100
100
  ref: o,
101
101
  id: u,
102
102
  className: e,
@@ -108,20 +108,20 @@ const n = ({ children: e }) => {
108
108
  autoComplete: "off"
109
109
  });
110
110
  };
111
- f.Currency = me;
112
- f.Value = pe;
111
+ E.Currency = me;
112
+ E.Value = pe;
113
113
  n.Label = ae;
114
- n.Input = f;
114
+ n.Input = E;
115
115
  n.Description = te;
116
116
  n.Error = ne;
117
- const de = "_inputGroup_vuy4u_1", fe = "_currency_vuy4u_14", x = {
117
+ const de = "_inputGroup_vuy4u_1", Ee = "_currency_vuy4u_14", h = {
118
118
  inputGroup: de,
119
- currency: fe
120
- }, Ee = ({ content: e, locale: t }) => /* @__PURE__ */ r.createElement(j, {
119
+ currency: Ee
120
+ }, fe = ({ content: e, locale: t }) => /* @__PURE__ */ r.createElement(Q, {
121
121
  content: e,
122
122
  locale: t
123
123
  }), Ie = () => {
124
- const e = ie(x.inputGroup);
124
+ const e = ie(h.inputGroup);
125
125
  return /* @__PURE__ */ r.createElement(n, null, /* @__PURE__ */ r.createElement(n.Label, {
126
126
  className: p(Y, d.label)
127
127
  }, /* @__PURE__ */ r.createElement(n.Label.Required, {
@@ -129,14 +129,14 @@ const de = "_inputGroup_vuy4u_1", fe = "_currency_vuy4u_14", x = {
129
129
  })), /* @__PURE__ */ r.createElement(n.Input, {
130
130
  className: e
131
131
  }, /* @__PURE__ */ r.createElement(n.Input.Currency, {
132
- className: x.currency
132
+ className: h.currency
133
133
  }), /* @__PURE__ */ r.createElement(n.Input.Value, {
134
134
  className: p(d.innerInput, ce)
135
135
  })), /* @__PURE__ */ r.createElement(n.Error, {
136
136
  className: p(ee, d.error)
137
137
  }, /* @__PURE__ */ r.createElement(le, null), /* @__PURE__ */ r.createElement(n.Error.Text, null)), /* @__PURE__ */ r.createElement(n.Description, {
138
138
  className: p(re, d.description)
139
- }, Ee));
139
+ }, fe));
140
140
  }, Pe = () => /* @__PURE__ */ r.createElement(Ie, null);
141
141
  export {
142
142
  Pe as PaymentInputRAC