@wix/form-elements 1.169.0 → 1.170.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-BbXyKTd7.js → appointment-rac-DZ0SFXmL.js} +83 -83
  2. package/dist/component/{bookings-address-rac-VJkR_U9L.js → bookings-address-rac-BW9grc77.js} +1 -1
  3. package/dist/component/{bookings-email-rac-_EupwXpQ.js → bookings-email-rac-D8gMaAfB.js} +1 -1
  4. package/dist/component/{bookings-first-name-rac-DTZixHYj.js → bookings-first-name-rac-CAjcs7b6.js} +1 -1
  5. package/dist/component/{bookings-header-rac-BKbKTv5g.js → bookings-header-rac-BhKZ1kku.js} +1 -1
  6. package/dist/component/{bookings-last-name-rac-BDy860-C.js → bookings-last-name-rac-DpsMDuU0.js} +1 -1
  7. package/dist/component/{bookings-login-bar-rac-DgNP-YNZ.js → bookings-login-bar-rac-BVdWmKS8.js} +3 -3
  8. package/dist/component/{bookings-phone-rac-B_I6n96b.js → bookings-phone-rac-DsqNi2mI.js} +1 -1
  9. package/dist/component/{bookings-rich-text-rac-prYPbIiz.js → bookings-rich-text-rac-elM4Ne3f.js} +1 -1
  10. package/dist/component/{checkbox-field-rac-C-4PXuxG.js → checkbox-field-rac-BU4E73fD.js} +43 -43
  11. package/dist/component/{checkbox-group-field-headless-D16bAcaq.js → checkbox-group-field-headless-6yJdIbP2.js} +41 -41
  12. package/dist/component/{checkbox-group-field-rac-GUQ5dO_s.js → checkbox-group-field-rac-CojbCWSF.js} +4 -4
  13. package/dist/component/{checkbox-group-rac-Bl6xL5-H.js → checkbox-group-rac-3qUVUc-C.js} +1 -1
  14. package/dist/component/{checkbox-rac-Blg0KVyP.js → checkbox-rac-DwbTapd_.js} +1 -1
  15. package/dist/component/{contacts-address-rac-BfOhCAj8.js → contacts-address-rac-BL7XDZuP.js} +1 -1
  16. package/dist/component/{contacts-birthdate-rac-DYBvDh62.js → contacts-birthdate-rac-DeJYIHAg.js} +1 -1
  17. package/dist/component/{contacts-company-rac-DIJr7zjA.js → contacts-company-rac-BeImf5uc.js} +1 -1
  18. package/dist/component/{contacts-email-rac-DjmqELhC.js → contacts-email-rac-CtacwrZ0.js} +1 -1
  19. package/dist/component/{contacts-first-name-rac-DGNll7gw.js → contacts-first-name-rac-CAdOqOOA.js} +1 -1
  20. package/dist/component/{contacts-last-name-rac-BJ8AZYQN.js → contacts-last-name-rac-Db9mHzCW.js} +1 -1
  21. package/dist/component/{contacts-phone-rac-BC-QtpEN.js → contacts-phone-rac-W0OLEbzL.js} +1 -1
  22. package/dist/component/{contacts-position-rac-BQia__74.js → contacts-position-rac-CV4Ibt4Z.js} +1 -1
  23. package/dist/component/{contacts-subscribe-rac-CTFptz01.js → contacts-subscribe-rac-CQ3Q1pjZ.js} +1 -1
  24. package/dist/component/{contacts-tax-id-rac-Cy72Jouc.js → contacts-tax-id-rac-Dux-pk6r.js} +1 -1
  25. package/dist/component/{date-availability-BC6updcS.js → date-availability-RkX-Qw7G.js} +1 -1
  26. package/dist/component/date-input-field-rac-CYCT6qoa.js +309 -0
  27. package/dist/component/{date-input-rac-KkRyWRP_.js → date-input-rac-BkYZ7q_o.js} +1 -1
  28. package/dist/component/{date-picker-field-rac-BLWVJbTJ.js → date-picker-field-rac-eMidYtsl.js} +31 -31
  29. package/dist/component/{date-picker-rac-DKCQza7v.js → date-picker-rac-D23rxZcF.js} +1 -1
  30. package/dist/component/{date-time-input-field-rac-CZxZW6fz.js → date-time-input-field-rac-BjIj4dXQ.js} +111 -111
  31. package/dist/component/{date-time-input-rac-DQ-iBwmr.js → date-time-input-rac-BSGAdk9L.js} +1 -1
  32. package/dist/component/{dext-checkbox-group-rac-kp1Jbwt-.js → dext-checkbox-group-rac-Xmb5IKrb.js} +2 -2
  33. package/dist/component/{dext-checkbox-rac-CBm9cRUz.js → dext-checkbox-rac-2eA7y0ld.js} +1 -1
  34. package/dist/component/{dext-date-picker-rac-DsVKWsRy.js → dext-date-picker-rac-CmLxVGGT.js} +1 -1
  35. package/dist/component/{dext-date-time-input-rac-CO26-8Qo.js → dext-date-time-input-rac-Cd9nwSjb.js} +1 -1
  36. package/dist/component/{dext-dropdown-rac-eRzu2C-y.js → dext-dropdown-rac-BKdQ0nGS.js} +1 -1
  37. package/dist/component/{dext-email-rac-DDrZzE_G.js → dext-email-rac-07zDPxyf.js} +1 -1
  38. package/dist/component/{dext-number-input-rac-Dj7sInLk.js → dext-number-input-rac-DRvGuppY.js} +1 -1
  39. package/dist/component/{dext-phone-rac-g8M77F7m.js → dext-phone-rac-CKtTVjFg.js} +1 -1
  40. package/dist/component/{dext-radio-group-rac-BjhygC0R.js → dext-radio-group-rac-BsBmMufq.js} +2 -2
  41. package/dist/component/{dext-rating-input-rac-BraNjvyA.js → dext-rating-input-rac-CcFSTAIh.js} +1 -1
  42. package/dist/component/{dext-tags-rac-B5mAIuDi.js → dext-tags-rac-CCTDlCvX.js} +2 -2
  43. package/dist/component/{dext-text-area-rac-D_YBnaWi.js → dext-text-area-rac-Cif8po9h.js} +1 -1
  44. package/dist/component/{dext-text-input-rac-BzeWH1jv.js → dext-text-input-rac-2118X4iF.js} +1 -1
  45. package/dist/component/{dext-url-input-rac-Cn0h_vx3.js → dext-url-input-rac-DDImGkQe.js} +1 -1
  46. package/dist/component/{donation-rac-CQRdHxWh.js → donation-rac-Dnylss1d.js} +103 -103
  47. package/dist/component/{dropdown-field-rac-C7LL0W5Z.js → dropdown-field-rac-DDI4ZgZH.js} +3 -3
  48. package/dist/component/{dropdown-rac-Nb2VyJ0x.js → dropdown-rac-DX0Z3R_8.js} +1 -1
  49. package/dist/component/{ecom-address-rac-_c2YIIwg.js → ecom-address-rac-D9MeEQsk.js} +1 -1
  50. package/dist/component/{ecom-subscription-checkbox-rac-Bma7TAVj.js → ecom-subscription-checkbox-rac-DKJ9j5dj.js} +2 -2
  51. package/dist/component/{email-input-field-rac-2E2tEaS5.js → email-input-field-rac-DaKrmlwe.js} +55 -55
  52. package/dist/component/{events-repeater-rac-COWHYBFD.js → events-repeater-rac-DWrOLT0Y.js} +45 -45
  53. package/dist/component/{events-rsvp-rac-CXp8j19Y.js → events-rsvp-rac-YBTR1tR0.js} +6 -6
  54. package/dist/component/{field-error-headless-S-ugOQQX.js → field-error-headless-jksFrezt.js} +10 -10
  55. package/dist/component/{field-label-headless-_n4I0_tX.js → field-label-headless-BBvJAVxI.js} +10 -10
  56. package/dist/component/{file-upload-rac-DCH_iwDg.js → file-upload-rac-CgdmfUZG.js} +168 -168
  57. package/dist/component/{fixed-payment-rac-CYkKJUfM.js → fixed-payment-rac-v6rKwzFs.js} +13 -13
  58. package/dist/component/{form-jK8ezTss.js → form-BsiK682r.js} +530 -502
  59. package/dist/component/form.js +1 -1
  60. package/dist/component/{header-field-rac-DnbjI6W5.js → header-field-rac-BuXybl7K.js} +6 -6
  61. package/dist/component/{header-rac-DKUICrni.js → header-rac-CDyaLosW.js} +1 -1
  62. package/dist/component/{image-choice-rac-B_9ponST.js → image-choice-rac-BRlMroBw.js} +41 -41
  63. package/dist/component/{index-BxdMzOvN.js → index-BanOeCAF.js} +242 -236
  64. package/dist/component/{index-ZYnsxY-a.js → index-y9URYGEE.js} +6 -6
  65. package/dist/component/{isObjectLike-BW-9QEQl.js → isObjectLike-BG9nJ-rx.js} +7 -7
  66. package/dist/component/{multiline-address-field-rac-k-P0ijWG.js → multiline-address-field-rac-DRAkxI1l.js} +342 -342
  67. package/dist/component/{multiline-address-rac-Bbn9mNDa.js → multiline-address-rac-JjTzWsEb.js} +1 -1
  68. package/dist/component/{number-input-field-rac--lom-B_X.js → number-input-field-rac-QrouG7Hv.js} +22 -22
  69. package/dist/component/{number-input-rac-Bhbd6T9S.js → number-input-rac-DGmE7cLv.js} +1 -1
  70. package/dist/component/{password-rac-BV_uTHb3.js → password-rac-DeyY228m.js} +28 -28
  71. package/dist/component/{payment-input-rac-cawyGN_t.js → payment-input-rac-DmIennLi.js} +45 -45
  72. package/dist/component/{phone-input-field-rac-CsElHRto.js → phone-input-field-rac-F7e74TGA.js} +76 -76
  73. package/dist/component/{phone-rac-XrHN5Nko.js → phone-rac-CQfB2CQD.js} +1 -1
  74. package/dist/component/{product-list-rac-cxv_xz7K.js → product-list-rac--GGG8vvO.js} +62 -62
  75. package/dist/component/{quiz-radio-group-rac-DGaxOPE1.js → quiz-radio-group-rac-DF2C2vNq.js} +1 -1
  76. package/dist/component/{radio-button-module-classes-Xv2Jn01x.js → radio-button-module-classes-DmpNo6F2.js} +17 -17
  77. package/dist/component/{radio-group-field-rac-DgGqgTql.js → radio-group-field-rac-BGcPYfKO.js} +6 -6
  78. package/dist/component/{radio-group-rac-Bh0E-oe1.js → radio-group-rac-CqysUMCE.js} +1 -1
  79. package/dist/component/{rating-input-field-rac-C3YLV971.js → rating-input-field-rac-D-ei917Y.js} +24 -24
  80. package/dist/component/{rating-input-rac-CfcC5EUh.js → rating-input-rac-a9zJ74fw.js} +1 -1
  81. package/dist/component/{rich-content-rac.module-DUjzLGtX.js → rich-content-rac.module-CvyLVlXL.js} +5 -5
  82. package/dist/component/{rich-text-field-rac-BmguoJhk.js → rich-text-field-rac-vf19nvyw.js} +7 -7
  83. package/dist/component/{rich-text-rac-BWhHcq25.js → rich-text-rac-Cx_wpoxC.js} +1 -1
  84. package/dist/component/{service-dropdown-rac-C5oX-ql7.js → service-dropdown-rac-DITzKQxd.js} +26 -26
  85. package/dist/component/{services-multi-choice-rac-C1fem9NB.js → services-multi-choice-rac-BtisN0Aq.js} +11 -11
  86. package/dist/component/{signature-rac-BtHqiWj1.js → signature-rac-DUeIoS5O.js} +226 -226
  87. package/dist/component/{submit-button-rac-OYeKJFF8.js → submit-button-rac-C8h6zeTw.js} +36 -36
  88. package/dist/component/{tags-field-rac-kA2RSijL.js → tags-field-rac-CjFuiB0n.js} +51 -51
  89. package/dist/component/{tags-rac-B_2qCZGu.js → tags-rac-BO7rwyLl.js} +1 -1
  90. package/dist/component/{text-area-field-rac-DeO609Mv.js → text-area-field-rac-CgUx3nQ0.js} +23 -23
  91. package/dist/component/{text-area-rac-BAQFBOZd.js → text-area-rac-WgXYXIaf.js} +1 -1
  92. package/dist/component/{text-input-field-rac-CCcKwuLZ.js → text-input-field-rac-DaxWFha-.js} +6 -6
  93. package/dist/component/{text-input-headless-D8-jkaYm.js → text-input-headless-hjuRJTZN.js} +6 -6
  94. package/dist/component/{text-input-rac-BVcgjj8g.js → text-input-rac-BzumrJBj.js} +1 -1
  95. package/dist/component/{time-input-rac-BYctyHgU.js → time-input-rac-2FEkpQ7M.js} +18 -18
  96. package/dist/component/{url-input-field-rac-COC9qgcs.js → url-input-field-rac-BZ9f8D8I.js} +26 -26
  97. package/dist/component/{url-input-rac-BZXLh0Ej.js → url-input-rac-D-AVlxkD.js} +1 -1
  98. package/dist/component/{use-dropdown-option-class-name-BTltqRl1.js → use-dropdown-option-class-name-DwAAtzgX.js} +11 -11
  99. package/dist/component/{use-dropdown-trigger-class-name-BjJZfl3i.js → use-dropdown-trigger-class-name-D-6n9YVG.js} +18 -18
  100. package/dist/component/{use-element-state-class-name-CkT6Ga8t.js → use-element-state-class-name-C5auxwhj.js} +3 -3
  101. package/dist/component/{use-hoverable-input-class-name-BkoSr6tr.js → use-hoverable-input-class-name-Nd2jqfz4.js} +2 -2
  102. package/dist/component/use-is-forced-open-dropdown-CKaHhCqp.js +64 -0
  103. package/dist/component/{use-service-options-base-Wp8RZ4Z8.js → use-service-options-base-CvluFheT.js} +3 -3
  104. package/dist/component/use-text-input-class-name-DGTlYJxC.js +6 -0
  105. package/dist/form.d.ts +19 -0
  106. package/package.json +2 -2
  107. package/dist/component/date-input-field-rac-b_T1yf8D.js +0 -309
  108. package/dist/component/use-is-forced-open-dropdown-fo_NCnSk.js +0 -53
  109. package/dist/component/use-text-input-class-name-DS7i03Gk.js +0 -6
@@ -1,5 +1,5 @@
1
1
  import e from "react";
2
- import { M as t } from "./multiline-address-field-rac-k-P0ijWG.js";
2
+ import { M as t } from "./multiline-address-field-rac-DRAkxI1l.js";
3
3
  const i = () => /* @__PURE__ */ e.createElement(t, null);
4
4
  export {
5
5
  i as MultilineAddressRAC
@@ -1,19 +1,19 @@
1
1
  import { RicosViewer as P } from "@wix/ricos/viewer";
2
2
  import i from "classnames";
3
- import r, { useState as U, useCallback as G, useEffect as K, useRef as Q } from "react";
4
- import { NumberField as $, Input as j } from "react-aria-components";
5
- import { bD as _, bA as S, bN as z, bF as H, U as J, af as W, K as X, G as Y } from "./form-jK8ezTss.js";
3
+ import r, { useState as U, useCallback as H, useEffect as K, useRef as Q } from "react";
4
+ import { NumberField as X, Input as $ } from "react-aria-components";
5
+ import { bK as _, bH as S, bU as j, bM as z, X as G, al as J, M as W, I as Y } from "./form-BsiK682r.js";
6
6
  import { f as c } from "./find-child-C60k4CxG.js";
7
- import { D as Z, E as w } from "./field-error-headless-S-ugOQQX.js";
8
- import { L as ee } from "./field-label-headless-_n4I0_tX.js";
7
+ import { D as Z, E as w } from "./field-error-headless-jksFrezt.js";
8
+ import { L as ee } from "./field-label-headless-BBvJAVxI.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-ts2t4WUO.js";
13
- import { u as se } from "./use-text-input-class-name-DS7i03Gk.js";
13
+ import { u as se } from "./use-text-input-class-name-DGTlYJxC.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: A } = S(), D = ((F = n == null ? void 0 : n.number) == null ? void 0 : F.multipleOf) || 1, y = (L = n == null ? void 0 : n.number) == null ? void 0 : L.maximum, g = (R = n == null ? void 0 : n.number) == null ? void 0 : R.minimum, x = O(s), [T, I] = U(x), V = ne(E), h = c(t, e.Label), q = c(t, e.Input), M = c(t, e.Description), k = c(t, e.Error), B = G((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 = O(s), [x, I] = U(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 = H((N) => {
17
17
  if (N === void 0 || Number.isNaN(N)) {
18
18
  l(""), I(NaN);
19
19
  return;
@@ -30,33 +30,33 @@ const e = ({ children: t }) => {
30
30
  s
31
31
  ]), /* @__PURE__ */ r.createElement(m, {
32
32
  fieldId: a,
33
- renderLabel: () => h,
34
- renderInput: () => /* @__PURE__ */ r.createElement($, {
35
- "aria-labelledby": A,
36
- value: T,
33
+ renderLabel: () => V,
34
+ renderInput: () => /* @__PURE__ */ r.createElement(X, {
35
+ "aria-labelledby": y,
36
+ value: x,
37
37
  onChange: B,
38
38
  isDisabled: d,
39
39
  isRequired: b,
40
40
  isReadOnly: o,
41
41
  isInvalid: u,
42
- onBlur: V,
42
+ onBlur: T,
43
43
  onFocus: f,
44
- minValue: g ?? void 0,
45
- maxValue: y ?? void 0
46
- }, q),
47
- renderDescription: () => /* @__PURE__ */ r.createElement(r.Fragment, null, k, M)
44
+ minValue: M ?? void 0,
45
+ maxValue: A ?? void 0
46
+ }, h),
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 } = z(), { inputId: s, ariaDescribedBy: l } = S(), { id: d, placeholder: b, validation: o, label: E, required: f } = _();
51
+ const { t: a } = j(), { 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
53
  const m = Q(null);
54
- return H(() => {
54
+ return z(() => {
55
55
  var n;
56
56
  (n = m.current) == null || n.focus({
57
57
  preventScroll: !0
58
58
  });
59
- }, d), /* @__PURE__ */ r.createElement(j, {
59
+ }, d), /* @__PURE__ */ r.createElement($, {
60
60
  ref: m,
61
61
  id: s,
62
62
  "aria-describedby": l,
@@ -78,13 +78,13 @@ const O = (t) => te(t) ?? NaN, oe = ({ content: t, locale: a }) => /* @__PURE__
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(G, p.label)
82
82
  }, /* @__PURE__ */ r.createElement(e.Label.Required, {
83
- className: i(W, p.requiredMark)
83
+ className: i(J, 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
89
  className: i(Y, p.description)
90
90
  }, oe));
@@ -1,5 +1,5 @@
1
1
  import e from "react";
2
- import { N as r } from "./number-input-field-rac--lom-B_X.js";
2
+ import { N as r } from "./number-input-field-rac-QrouG7Hv.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";
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 { bD as E, bA as I, bF as A, bN as B, U as v, af as V, K as P, G as M } from "./form-jK8ezTss.js";
5
- import { TextField as k, Group as q, Input as U, Button as j } from "react-aria-components";
4
+ import { bK as E, bH as I, bM as A, bU as B, X as v, al as M, M as V, I as P } from "./form-BsiK682r.js";
5
+ import { TextField as k, Group as q, Input as U, 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 G, E as H } from "./field-error-headless-S-ugOQQX.js";
8
- import { L as W } from "./field-label-headless-_n4I0_tX.js";
9
- import { E as Z } from "./error-icon-hZxQ6DEy.js";
7
+ import { D as j, E as W } from "./field-error-headless-jksFrezt.js";
8
+ import { L as Z } from "./field-label-headless-BBvJAVxI.js";
9
+ import { E as G } from "./error-icon-hZxQ6DEy.js";
10
10
  import { H as K } from "./custom-focus-class-_483Pkwp.js";
11
11
  import { s as p } from "./field-rac.module-ts2t4WUO.js";
12
- import { u as Q } from "./use-text-input-class-name-DS7i03Gk.js";
12
+ import { u as Q } from "./use-text-input-class-name-DGTlYJxC.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: D } = I(), [F, R] = h(!1), L = u(o, t.Label), T = u(o, t.Control), w = u(o, t.Description), N = u(o, t.Error);
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: 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
15
  return /* @__PURE__ */ e.createElement(y, {
16
16
  fieldId: l,
17
17
  renderLabel: () => L,
18
18
  renderInput: () => /* @__PURE__ */ e.createElement(k, {
19
19
  autoComplete: _,
20
- "aria-labelledby": D,
20
+ "aria-labelledby": R,
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: F,
32
- onToggleVisibility: () => R((S) => !S)
31
+ isVisible: D,
32
+ onToggleVisibility: () => F((h) => !h)
33
33
  })),
34
- renderDescription: () => /* @__PURE__ */ e.createElement(e.Fragment, null, w, N)
34
+ renderDescription: () => /* @__PURE__ */ e.createElement(e.Fragment, null, w, S)
35
35
  });
36
- }, $ = ({ children: o, className: r, ...l }) => {
36
+ }, X = ({ 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,7 +45,7 @@ const t = ({ children: o, className: r }) => {
45
45
  isVisible: s,
46
46
  onToggleVisibility: c
47
47
  }));
48
- }, z = ({ 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
50
  return A(() => {
51
51
  var i;
@@ -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,
@@ -73,13 +73,13 @@ const t = ({ children: o, className: r }) => {
73
73
  isVisible: n
74
74
  }));
75
75
  };
76
- t.Label = W;
77
- t.Control = $;
78
- t.Input = z;
79
- t.Toggle = J;
80
- t.Description = G;
81
- t.Error = H;
82
- const X = (o) => /* @__PURE__ */ e.createElement("svg", {
76
+ t.Label = Z;
77
+ t.Control = X;
78
+ t.Input = $;
79
+ t.Toggle = z;
80
+ t.Description = j;
81
+ t.Error = W;
82
+ const J = (o) => /* @__PURE__ */ e.createElement("svg", {
83
83
  viewBox: "0 0 24 24",
84
84
  width: "20",
85
85
  height: "20",
@@ -125,7 +125,7 @@ const X = (o) => /* @__PURE__ */ e.createElement("svg", {
125
125
  return /* @__PURE__ */ e.createElement(t, null, /* @__PURE__ */ e.createElement(t.Label, {
126
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, {
@@ -134,10 +134,10 @@ const X = (o) => /* @__PURE__ */ e.createElement("svg", {
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(X, null))), /* @__PURE__ */ e.createElement(t.Error, {
138
- className: d(P, p.error)
139
- }, /* @__PURE__ */ e.createElement(Z, null), /* @__PURE__ */ e.createElement(t.Error.Text, null)), /* @__PURE__ */ e.createElement(t.Description, {
140
- className: d(M, p.description)
137
+ }, ({ isVisible: l }) => l ? /* @__PURE__ */ e.createElement(Y, null) : /* @__PURE__ */ e.createElement(J, null))), /* @__PURE__ */ e.createElement(t.Error, {
138
+ className: d(V, p.error)
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
141
  }, oe));
142
142
  }, ge = () => /* @__PURE__ */ e.createElement(re, null);
143
143
  export {
@@ -1,17 +1,17 @@
1
1
  import r, { useCallback as P, useRef as Q } from "react";
2
- import { RicosViewer as j } from "@wix/ricos/viewer";
2
+ import { RicosViewer as X } 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 { bD as L, bA as R, bv as T, bN as W, bF as X, U as Y, af as Z, K as ee, G as re } from "./form-jK8ezTss.js";
4
+ import { TextField as j, Group as w, Input as z } from "react-aria-components";
5
+ import { bK as R, bH as D, bC as x, bU as J, bM as W, X as Y, al as Z, M as ee, I as re } from "./form-BsiK682r.js";
6
6
  import { f as i } from "./find-child-C60k4CxG.js";
7
- import { D as te, E as ne } from "./field-error-headless-S-ugOQQX.js";
8
- import { L as ae } from "./field-label-headless-_n4I0_tX.js";
9
- import { f as D, g as se } from "./payment-field-utils-DobiK5Xh.js";
7
+ import { D as te, E as ne } from "./field-error-headless-jksFrezt.js";
8
+ import { L as ae } from "./field-label-headless-BBvJAVxI.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-ts2t4WUO.js";
14
- import { u as ie } from "./use-text-input-class-name-DS7i03Gk.js";
14
+ import { u as ie } from "./use-text-input-class-name-DGTlYJxC.js";
15
15
  function ue(e, t) {
16
16
  return {
17
17
  productId: e.id,
@@ -19,7 +19,7 @@ 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, "."));
@@ -27,62 +27,62 @@ function h(e) {
27
27
  }
28
28
  const n = ({ children: e }) => {
29
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 } = L(), { labelId: G, prefixId: q } = R(), { 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], F = (V = a == null ? void 0 : a.at(0)) == null ? void 0 : V.price, [_, b] = oe({
31
- sourceValue: F,
32
- format: (l) => D(String(l ?? ""), c),
30
+ const { id: t, value: a, onChange: s, disabled: u, readOnly: m, required: b, hasError: y, onBlur: o, onFocus: E, 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
+ sourceValue: _,
32
+ format: (l) => N(String(l ?? ""), c),
33
33
  regionalFormat: c
34
34
  }), $ = P(() => {
35
- const l = D(_, c);
36
- b(l || ""), o == null || o();
35
+ const l = N(F, c);
36
+ I(l || ""), o == null || o();
37
37
  }, [
38
- _,
38
+ F,
39
39
  c,
40
40
  o,
41
- b
42
- ]), v = P((l) => {
43
- b(l);
44
- const N = h(D(l, c)), K = h(F);
45
- if (N !== K) {
46
- if (N === void 0) {
41
+ I
42
+ ]), U = P((l) => {
43
+ I(l);
44
+ const L = M(N(l, c)), K = M(_);
45
+ if (L !== K) {
46
+ if (L === void 0) {
47
47
  s(null);
48
48
  return;
49
49
  }
50
50
  s([
51
- ue(S, N)
51
+ ue(S, L)
52
52
  ]);
53
53
  }
54
54
  }, [
55
55
  s,
56
56
  S,
57
57
  c,
58
- F,
59
- b
60
- ]), U = i(e, n.Label), B = i(e, n.Input), k = i(e, n.Description), H = i(e, n.Error);
61
- return /* @__PURE__ */ r.createElement(M, {
58
+ _,
59
+ I
60
+ ]), v = i(e, n.Label), B = i(e, n.Input), H = i(e, n.Description), k = i(e, n.Error);
61
+ return /* @__PURE__ */ r.createElement(T, {
62
62
  fieldId: t,
63
- renderLabel: () => U,
64
- renderInput: () => /* @__PURE__ */ r.createElement(w, {
65
- "aria-labelledby": `${G} ${q}`,
66
- value: a ? _ : "",
67
- onChange: v,
63
+ renderLabel: () => v,
64
+ renderInput: () => /* @__PURE__ */ r.createElement(j, {
65
+ "aria-labelledby": `${q} ${G}`,
66
+ value: a ? F : "",
67
+ onChange: U,
68
68
  isDisabled: u,
69
69
  isReadOnly: m,
70
- isRequired: I,
70
+ isRequired: b,
71
71
  isInvalid: y,
72
72
  onBlur: $,
73
73
  onFocus: E
74
74
  }, B),
75
- renderDescription: () => /* @__PURE__ */ r.createElement(r.Fragment, null, H, k)
75
+ renderDescription: () => /* @__PURE__ */ r.createElement(r.Fragment, null, k, H)
76
76
  });
77
77
  }, f = ({ children: e, className: t }) => {
78
- const { disabled: a, hasError: s } = L(), u = i(e, f.Currency), m = i(e, f.Value);
79
- return /* @__PURE__ */ r.createElement(z, {
78
+ const { disabled: a, hasError: s } = R(), u = i(e, f.Currency), m = i(e, f.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 } = T(), { t: a } = W(), { prefixId: s } = R();
85
+ const { currency: t } = x(), { t: a } = J(), { prefixId: s } = D();
86
86
  return t ? /* @__PURE__ */ r.createElement("span", {
87
87
  id: s,
88
88
  "aria-hidden": !1,
@@ -90,19 +90,19 @@ 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 } = L(), { inputId: u, labelId: m, prefixId: I, ariaDescribedBy: y } = R(), o = Q(null);
94
- return X(() => {
93
+ const { id: t, placeholder: a, label: s } = R(), { inputId: u, labelId: m, prefixId: b, ariaDescribedBy: y } = D(), o = Q(null);
94
+ return W(() => {
95
95
  var E;
96
96
  (E = o.current) == null || E.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,
103
103
  placeholder: a,
104
104
  "aria-label": s,
105
- "aria-labelledby": `${m} ${I}`,
105
+ "aria-labelledby": `${m} ${b}`,
106
106
  "aria-describedby": y,
107
107
  inputMode: "decimal",
108
108
  autoComplete: "off"
@@ -114,14 +114,14 @@ n.Label = ae;
114
114
  n.Input = f;
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", fe = "_currency_vuy4u_14", h = {
118
118
  inputGroup: de,
119
119
  currency: fe
120
- }, Ee = ({ content: e, locale: t }) => /* @__PURE__ */ r.createElement(j, {
120
+ }, Ee = ({ content: e, locale: t }) => /* @__PURE__ */ r.createElement(X, {
121
121
  content: e,
122
122
  locale: t
123
- }), be = () => {
124
- const e = ie(x.inputGroup);
123
+ }), Ie = () => {
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,7 +129,7 @@ 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, {
@@ -137,7 +137,7 @@ const de = "_inputGroup_vuy4u_1", fe = "_currency_vuy4u_14", x = {
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
139
  }, Ee));
140
- }, Pe = () => /* @__PURE__ */ r.createElement(be, null);
140
+ }, Pe = () => /* @__PURE__ */ r.createElement(Ie, null);
141
141
  export {
142
142
  Pe as PaymentInputRAC
143
143
  };