@wix/form-elements 1.145.0 → 1.147.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 (113) hide show
  1. package/dist/component/{appointment-rac-De-uH9rz.js → appointment-rac-BG5-bIZU.js} +98 -98
  2. package/dist/component/{bookings-address-rac-DB6QCMQJ.js → bookings-address-rac-8e8PqKsp.js} +1 -1
  3. package/dist/component/{bookings-email-rac-g6ZdB_BO.js → bookings-email-rac-CtlnU8ws.js} +1 -1
  4. package/dist/component/{bookings-first-name-rac-DQgL_VHl.js → bookings-first-name-rac-CrivNlXM.js} +1 -1
  5. package/dist/component/{bookings-header-rac-DAnIm-Oq.js → bookings-header-rac-DWDAjfqq.js} +1 -1
  6. package/dist/component/{bookings-last-name-rac-D62jNdDb.js → bookings-last-name-rac-qAthWem2.js} +1 -1
  7. package/dist/component/{bookings-login-bar-rac-5z8HfBhU.js → bookings-login-bar-rac-BNyUDqlM.js} +6 -6
  8. package/dist/component/{bookings-phone-rac-D0gu-_wy.js → bookings-phone-rac-Tc39XLr7.js} +1 -1
  9. package/dist/component/{bookings-rich-text-rac-b4J1HcdI.js → bookings-rich-text-rac-CPNaPtFK.js} +1 -1
  10. package/dist/component/{checkbox-field-rac-CmRRc9Dz.js → checkbox-field-rac-DEa78Tpf.js} +4 -4
  11. package/dist/component/{checkbox-group-field-headless-CB8yAfMe.js → checkbox-group-field-headless-BxBaMg29.js} +68 -68
  12. package/dist/component/{checkbox-group-field-rac-C5gRZRTd.js → checkbox-group-field-rac-CRRP03Qk.js} +7 -7
  13. package/dist/component/{checkbox-group-rac-DNDF1Irh.js → checkbox-group-rac-TOofMGl3.js} +1 -1
  14. package/dist/component/{checkbox-rac-B9vztGBU.js → checkbox-rac-CHMHr8Ry.js} +1 -1
  15. package/dist/component/{contacts-address-rac-CKZeSncj.js → contacts-address-rac-Bc5yDvTL.js} +1 -1
  16. package/dist/component/{contacts-birthdate-rac-BbpNNQgF.js → contacts-birthdate-rac-Ubtg5ncv.js} +1 -1
  17. package/dist/component/{contacts-company-rac-BX2KT201.js → contacts-company-rac-BksH9IoV.js} +1 -1
  18. package/dist/component/{contacts-email-rac-5Irzx1mA.js → contacts-email-rac-DDPEtMAm.js} +1 -1
  19. package/dist/component/{contacts-first-name-rac-CxKp8_2u.js → contacts-first-name-rac-DUlCvEdx.js} +1 -1
  20. package/dist/component/{contacts-last-name-rac-BDCbSv5I.js → contacts-last-name-rac-BikqNgUr.js} +1 -1
  21. package/dist/component/{contacts-phone-rac-BM_PV_uH.js → contacts-phone-rac-B4OEgM_8.js} +1 -1
  22. package/dist/component/{contacts-position-rac-1aqthQSi.js → contacts-position-rac-BfybzySV.js} +1 -1
  23. package/dist/component/{contacts-subscribe-rac-CdqXs4kp.js → contacts-subscribe-rac-CMHb33v1.js} +1 -1
  24. package/dist/component/{contacts-tax-id-rac-BKHpcDb6.js → contacts-tax-id-rac-C-qEqwO5.js} +1 -1
  25. package/dist/component/{date-availability-DmFFTX8p.js → date-availability-DZ3J3LLm.js} +1 -1
  26. package/dist/component/date-input-field-rac-DeL5vuE7.js +297 -0
  27. package/dist/component/{date-input-rac-BB6qZ16w.js → date-input-rac-Di6TQvFf.js} +1 -1
  28. package/dist/component/{date-picker-field-rac-Ckwu2vD6.js → date-picker-field-rac-BcdpTkjV.js} +107 -103
  29. package/dist/component/{date-picker-rac-DSqzUAaH.js → date-picker-rac-Brne65gr.js} +1 -1
  30. package/dist/component/{date-time-input-field-rac-DO-iRdkW.js → date-time-input-field-rac-BtQfAxRp.js} +49 -49
  31. package/dist/component/{date-time-input-rac-smVCCxdY.js → date-time-input-rac-DM_HXiqV.js} +1 -1
  32. package/dist/component/{dext-checkbox-group-rac-B8bx3rT2.js → dext-checkbox-group-rac-WTVwhGG0.js} +2 -2
  33. package/dist/component/{dext-checkbox-rac-x8VLGRbc.js → dext-checkbox-rac-BR5YwmLQ.js} +1 -1
  34. package/dist/component/{dext-date-picker-rac-D2a9NXap.js → dext-date-picker-rac-DvDuRGYi.js} +1 -1
  35. package/dist/component/{dext-date-time-input-rac-Cp5XjpGv.js → dext-date-time-input-rac-C6RgbaVv.js} +1 -1
  36. package/dist/component/{dext-dropdown-rac-nWgEvyxt.js → dext-dropdown-rac-CWjSdcZx.js} +1 -1
  37. package/dist/component/{dext-email-rac-CkX6ya8p.js → dext-email-rac-D-C1gVTq.js} +1 -1
  38. package/dist/component/{dext-number-input-rac-CKT0MS1x.js → dext-number-input-rac-YKzZS2ZG.js} +1 -1
  39. package/dist/component/{dext-phone-rac-DM2E7zW_.js → dext-phone-rac-CFZlEH2a.js} +1 -1
  40. package/dist/component/dext-radio-group-rac-DiH0wIIl.js +18 -0
  41. package/dist/component/{dext-rating-input-rac-CKWNpFuu.js → dext-rating-input-rac-D0s-i0qO.js} +1 -1
  42. package/dist/component/{dext-tags-rac-6AskGGTp.js → dext-tags-rac-Br48OQQ5.js} +2 -2
  43. package/dist/component/{dext-text-area-rac-ClGLD7sD.js → dext-text-area-rac-6jG8gJ7i.js} +1 -1
  44. package/dist/component/{dext-text-input-rac-Blbk53d4.js → dext-text-input-rac-FAJTCXuf.js} +1 -1
  45. package/dist/component/{dext-url-input-rac-BuitmJU0.js → dext-url-input-rac-BoMP8sQB.js} +1 -1
  46. package/dist/component/{donation-rac-DOifFCD7.js → donation-rac-DNi4p-v5.js} +69 -69
  47. package/dist/component/{dropdown-field-headless-m2P6s7X5.js → dropdown-field-headless-7SCC-xOC.js} +27 -27
  48. package/dist/component/{dropdown-field-rac-5e6wWJBl.js → dropdown-field-rac-CMzZh6J6.js} +8 -9
  49. package/dist/component/{dropdown-rac-BGxE9pJB.js → dropdown-rac-qeugpHXY.js} +1 -1
  50. package/dist/component/{ecom-address-rac-kbD9qW5Y.js → ecom-address-rac-D8b_L5md.js} +1 -1
  51. package/dist/component/{ecom-subscription-checkbox-rac-CE-Yixnj.js → ecom-subscription-checkbox-rac-BnAuR9La.js} +5 -5
  52. package/dist/component/{email-input-field-rac-CbwcB33o.js → email-input-field-rac-CunXRyc5.js} +64 -62
  53. package/dist/component/{events-repeater-rac-CGhUscBr.js → events-repeater-rac-DMjyIOkB.js} +17 -17
  54. package/dist/component/{events-rsvp-rac-AQ33zPTe.js → events-rsvp-rac-BsuDPq2K.js} +8 -8
  55. package/dist/component/{field-error-headless-ClPQ03Jc.js → field-error-headless-E8WjFr_n.js} +6 -6
  56. package/dist/component/{field-label-headless-DhN8Lkuq.js → field-label-headless-BakLOu5E.js} +15 -15
  57. package/dist/component/{file-upload-rac-yTx1ZRhZ.js → file-upload-rac-Clu_c--0.js} +43 -43
  58. package/dist/component/{fixed-payment-rac-nlyxa9nB.js → fixed-payment-rac-CzAXxsb-.js} +12 -12
  59. package/dist/component/{form-D3iU18lh.js → form-DHAKwnLt.js} +3850 -3872
  60. package/dist/component/form.css +1 -1
  61. package/dist/component/form.js +2 -2
  62. package/dist/component/{header-field-rac-DAEzcleV.js → header-field-rac-CwmVpz3r.js} +4 -4
  63. package/dist/component/{header-rac-CJZ4qMFg.js → header-rac-ahkGRjSy.js} +1 -1
  64. package/dist/component/{image-choice-rac-BFAMHwPh.js → image-choice-rac-BwxkkdUu.js} +17 -17
  65. package/dist/component/{index-DQW26cnX.js → index-BFi_n6B7.js} +2 -2
  66. package/dist/component/{index-W7GOFnq8.js → index-BQf23zZi.js} +91 -91
  67. package/dist/component/{isObjectLike-CE8eaxSI.js → isObjectLike-DHcMRYYH.js} +15 -15
  68. package/dist/component/{multiline-address-field-rac-FbJO0HFf.js → multiline-address-field-rac-C6xaqNOk.js} +68 -60
  69. package/dist/component/{multiline-address-rac-CI-vt6Pm.js → multiline-address-rac-DF4TFuDx.js} +1 -1
  70. package/dist/component/{number-input-field-rac-BRVAr7LL.js → number-input-field-rac-uVJ3SBv2.js} +27 -27
  71. package/dist/component/{number-input-rac-C8hCiJiu.js → number-input-rac-D6ERhrSM.js} +1 -1
  72. package/dist/component/{password-rac-Baslr6Ga.js → password-rac-CAiC0ZKl.js} +47 -46
  73. package/dist/component/{payment-input-rac-CfJSKxYz.js → payment-input-rac-Bu25xvby.js} +33 -32
  74. package/dist/component/{phone-input-field-rac-Dqh4CXdC.js → phone-input-field-rac-32qUvCsC.js} +46 -45
  75. package/dist/component/{phone-rac-DaLuGuxd.js → phone-rac-mNrpj30q.js} +1 -1
  76. package/dist/component/{product-list-rac-PNMwRBtL.js → product-list-rac-zHdM9rHw.js} +53 -53
  77. package/dist/component/{quiz-radio-group-rac-DN8vY-oM.js → quiz-radio-group-rac-BaSlT8w3.js} +1 -1
  78. package/dist/component/{radio-button-module-classes-DlJi9a2f.js → radio-button-module-classes-BdWjkBlX.js} +9 -9
  79. package/dist/component/{radio-group-field-rac-C0tLXhl5.js → radio-group-field-rac-DI0UgTBr.js} +12 -12
  80. package/dist/component/{radio-group-rac-FAk7PYgP.js → radio-group-rac-D2ESG8J4.js} +1 -1
  81. package/dist/component/{rating-input-field-rac-Cl1kH_uu.js → rating-input-field-rac-BYT2XqOK.js} +26 -26
  82. package/dist/component/{rating-input-rac-D9p-0pkI.js → rating-input-rac-D-5CmVAX.js} +1 -1
  83. package/dist/component/{rich-content-rac.module-Dkr46kPC.js → rich-content-rac.module-Dp9Advo9.js} +8 -8
  84. package/dist/component/{rich-text-field-rac-DthhTvTp.js → rich-text-field-rac-COEUwoXQ.js} +4 -4
  85. package/dist/component/{rich-text-rac-DqZX4NeB.js → rich-text-rac-CQZLjBQ0.js} +1 -1
  86. package/dist/component/{service-dropdown-rac-BMOGLU2Z.js → service-dropdown-rac-BTtJVFv8.js} +44 -45
  87. package/dist/component/{services-multi-choice-rac-DcdUewzJ.js → services-multi-choice-rac-hbY3g0Kb.js} +11 -11
  88. package/dist/component/{signature-rac-BRvN6kUW.js → signature-rac-CTCNclwL.js} +67 -67
  89. package/dist/component/{submit-button-rac-B70UC8eS.js → submit-button-rac-kKGeVgsG.js} +25 -25
  90. package/dist/component/{tags-field-rac-NpYyV8X4.js → tags-field-rac-CVf7oQr_.js} +35 -35
  91. package/dist/component/{tags-rac-BMEbpJ-z.js → tags-rac-DiX1_nTT.js} +1 -1
  92. package/dist/component/{text-area-field-rac-BLSrNwJ6.js → text-area-field-rac-IhBNXiDl.js} +22 -22
  93. package/dist/component/{text-area-rac-Cm7aAfIz.js → text-area-rac-DHevCtFF.js} +1 -1
  94. package/dist/component/{text-input-field-rac-BDqV7s0M.js → text-input-field-rac-Da3_wTdh.js} +5 -5
  95. package/dist/component/text-input-headless-DcZRRXCp.js +45 -0
  96. package/dist/component/{text-input-rac-Cc_SkCCS.js → text-input-rac-564LIZ1_.js} +1 -1
  97. package/dist/component/{time-input-rac-DDCiAFe2.js → time-input-rac-p-Nnsxp_.js} +54 -54
  98. package/dist/component/{url-input-field-rac-jen6pbz7.js → url-input-field-rac-DjrcpRtm.js} +27 -26
  99. package/dist/component/{url-input-rac-BWh6udtS.js → url-input-rac-B3brpyop.js} +1 -1
  100. package/dist/component/use-dropdown-trigger-class-name-BWTT7ltv.js +117 -0
  101. package/dist/component/{use-element-state-class-name-B1r_nXW1.js → use-element-state-class-name-CUZuhFvZ.js} +3 -3
  102. package/dist/component/{use-hoverable-input-class-name-B-FhrcyQ.js → use-hoverable-input-class-name-ugX8-g4E.js} +6 -6
  103. package/dist/component/use-is-forced-open-dropdown-DUZMvWpk.js +48 -0
  104. package/dist/component/{use-service-options-base-CTA_43F3.js → use-service-options-base-hqO9Ev38.js} +6 -6
  105. package/dist/component/use-text-input-class-name-wp9dzpEy.js +6 -0
  106. package/dist/form.d.ts +5 -0
  107. package/package.json +2 -2
  108. package/dist/component/date-input-field-rac-BnlAOn12.js +0 -290
  109. package/dist/component/dext-radio-group-rac-Czr5yY3K.js +0 -18
  110. package/dist/component/text-input-headless-B0jcwDev.js +0 -44
  111. package/dist/component/use-dropdown-option-class-name-OD8brKoy.js +0 -115
  112. package/dist/component/use-dropdown-trigger-class-name-BrkmG0ad.js +0 -40
  113. package/dist/component/use-text-input-class-name-BXuk3TK7.js +0 -6
@@ -1,15 +1,15 @@
1
- import t, { useState as Y, useRef as q, useMemo as fe, useEffect as ne, useCallback as M, createContext as he, useContext as _e } from "react";
1
+ import t, { useState as Y, useRef as k, useMemo as fe, useEffect as ne, useCallback as M, createContext as he, useContext as _e } from "react";
2
2
  import Le from "@wix/editor-react-components/AnimatedIcon";
3
3
  import { RicosViewer as xe } from "@wix/ricos/viewer";
4
4
  import Z from "classnames";
5
- import { bj as Ce, bx as oe, bs as ve, aq as Ne, bv as De, aj as ie, bw as Te, bk as Ee, bn as z, bp as Se, bh as Be, bg as ye, R as Ie, $ as Re, b as Ze, J as Ae, K as ce, u as ue, H as de, G as me, I as Me, f as te } from "./form-D3iU18lh.js";
5
+ import { bk as Ce, by as oe, bt as ve, ar as Ne, bw as De, ak as ie, bx as Te, bl as Ee, bo as z, bq as Se, bi as Be, bh as ye, S as Ie, a0 as Re, b as Ze, K as Ae, L as ce, v as ue, I as de, H as me, J as Me, f as te } from "./form-DHAKwnLt.js";
6
6
  import { E as Oe } from "./error-icon-hZxQ6DEy.js";
7
7
  import { s as $ } from "./field-rac.module-DfEb7pBp.js";
8
- import { u as pe } from "./use-element-state-class-name-B1r_nXW1.js";
9
- import { DropZone as Ue, Text as we, FileTrigger as He, Button as Fe, ProgressBar as Pe, VisuallyHidden as qe } from "react-aria-components";
8
+ import { u as pe } from "./use-element-state-class-name-CUZuhFvZ.js";
9
+ import { DropZone as Ue, Text as we, FileTrigger as He, Button as Fe, ProgressBar as Pe, VisuallyHidden as ke } from "react-aria-components";
10
10
  import { f as L, a as W } from "./find-child-C60k4CxG.js";
11
- import { b as ke, a as ze, D as Ve, E as je } from "./field-error-headless-ClPQ03Jc.js";
12
- import { L as Ke } from "./field-label-headless-DhN8Lkuq.js";
11
+ import { b as qe, a as ze, D as Ve, E as Ke } from "./field-error-headless-E8WjFr_n.js";
12
+ import { L as je } from "./field-label-headless-BakLOu5E.js";
13
13
  const $e = {
14
14
  Video: "video/*",
15
15
  Image: "image/*",
@@ -44,7 +44,7 @@ const $e = {
44
44
  };
45
45
  };
46
46
  function We({ valueSliderLimit: e, value: n, explanationText: o, target: l, onChange: s, uploadFileFormats: d, onBlur: E, onFilesCleared: x }) {
47
- const [r, i] = Y(Ge(n)), [C, m] = Y(n || []), [p, c] = Y(), T = Ye(l), { t: v } = oe(), g = ve().includes(Ne.BUTTONS_HOVER), { setFormStatus: B } = De(), I = q(!1), y = q(s);
47
+ const [r, i] = Y(Je(n)), [C, m] = Y(n || []), [p, c] = Y(), T = Ye(l), { t: v } = oe(), g = ve().includes(Ne.BUTTONS_HOVER), { setFormStatus: B } = De(), I = k(!1), y = k(s);
48
48
  y.current = s;
49
49
  const N = fe(() => r.some((f) => f.state === "uploading"), [
50
50
  r
@@ -98,7 +98,7 @@ function We({ valueSliderLimit: e, value: n, explanationText: o, target: l, onCh
98
98
  }, [
99
99
  T,
100
100
  v
101
- ]), j = async (h) => {
101
+ ]), K = async (h) => {
102
102
  if (p && c(void 0), h) {
103
103
  if (r.length + h.length > e) {
104
104
  c(v("form.file-upload.error.upload-limit", {
@@ -126,9 +126,9 @@ function We({ valueSliderLimit: e, value: n, explanationText: o, target: l, onCh
126
126
  const _ = r.filter((F) => F !== f);
127
127
  i(_), _.length === 0 && x();
128
128
  }
129
- }, K = () => {
129
+ }, j = () => {
130
130
  p && c(void 0), E();
131
- }, G = d.map((h) => $e[h]).join(), X = M(() => {
131
+ }, J = d.map((h) => $e[h]).join(), X = M(() => {
132
132
  i([]), m([]);
133
133
  }, []);
134
134
  return Te(X), {
@@ -137,13 +137,13 @@ function We({ valueSliderLimit: e, value: n, explanationText: o, target: l, onCh
137
137
  hover: g,
138
138
  getExplanationText: R,
139
139
  getStatusText: u,
140
- handleChange: j,
140
+ handleChange: K,
141
141
  handleDelete: U,
142
- accept: G,
143
- handleBlur: K
142
+ accept: J,
143
+ handleBlur: j
144
144
  };
145
145
  }
146
- function Ge(e = []) {
146
+ function Je(e = []) {
147
147
  const n = e || [];
148
148
  try {
149
149
  return n.map((o) => ({
@@ -166,11 +166,11 @@ function V() {
166
166
  throw new Error("FileUpload components must be used within FileUpload");
167
167
  return e;
168
168
  }
169
- const k = ({ children: e, className: n }) => {
169
+ const q = ({ children: e, className: n }) => {
170
170
  const { ariaDescribedBy: o } = Ee(), { disabled: l, hasError: s } = z(), { handleFileChange: d, limitReached: E } = V();
171
171
  if (E)
172
172
  return null;
173
- const x = L(e, k.Title), r = L(e, k.Subtitle), i = L(e, k.Button);
173
+ const x = L(e, q.Title), r = L(e, q.Subtitle), i = L(e, q.Button);
174
174
  return /* @__PURE__ */ t.createElement(Ue, {
175
175
  "aria-describedby": o,
176
176
  className: n,
@@ -191,14 +191,14 @@ const k = ({ children: e, className: n }) => {
191
191
  }, /* @__PURE__ */ t.createElement(we, {
192
192
  slot: "label"
193
193
  }, x, r), i);
194
- }, Je = ({ className: e, children: n }) => {
194
+ }, Qe = ({ className: e, children: n }) => {
195
195
  const { limitReached: o } = V();
196
196
  return /* @__PURE__ */ t.createElement("p", {
197
197
  className: e
198
198
  }, n({
199
199
  limitReached: o
200
200
  }));
201
- }, Qe = ({ className: e, children: n }) => {
201
+ }, Ge = ({ className: e, children: n }) => {
202
202
  const { limitReached: o } = V(), { explanationText: l } = z();
203
203
  return /* @__PURE__ */ t.createElement("p", {
204
204
  className: e
@@ -212,8 +212,8 @@ const k = ({ children: e, className: n }) => {
212
212
  allowsMultiple: g,
213
213
  onSelect: (S) => {
214
214
  if (S) {
215
- const j = Array.from(S), U = new DataTransfer();
216
- j.forEach((K) => U.items.add(K)), v(U.files);
215
+ const K = Array.from(S), U = new DataTransfer();
216
+ K.forEach((j) => U.items.add(j)), v(U.files);
217
217
  }
218
218
  }
219
219
  }, /* @__PURE__ */ t.createElement(Fe, {
@@ -245,9 +245,9 @@ const k = ({ children: e, className: n }) => {
245
245
  }, n);
246
246
  };
247
247
  re.Text = Xe;
248
- k.Title = Je;
249
- k.Subtitle = Qe;
250
- k.Button = re;
248
+ q.Title = Qe;
249
+ q.Subtitle = Ge;
250
+ q.Button = re;
251
251
  const A = ({ children: e, className: n, ...o }) => {
252
252
  const { file: l, index: s } = o, d = l.file.name, E = L(e, A.Name), x = L(e, A.Remove), r = L(e, A.Spinner), i = L(e, A.Error);
253
253
  return /* @__PURE__ */ t.createElement("div", {
@@ -266,7 +266,7 @@ const A = ({ children: e, className: n, ...o }) => {
266
266
  className: e
267
267
  }, o);
268
268
  }, tt = ({ className: e, "aria-label": n, children: o, ...l }) => {
269
- const { fileName: s, index: d } = l, { disabled: E } = z(), { handleDelete: x, fileRemoveButtonRefs: r } = V(), i = q(null);
269
+ const { fileName: s, index: d } = l, { disabled: E } = z(), { handleDelete: x, fileRemoveButtonRefs: r } = V(), i = k(null);
270
270
  ne(() => {
271
271
  const m = r.current, p = s;
272
272
  return m[p] = i, () => {
@@ -305,7 +305,7 @@ A.Name = et;
305
305
  A.Remove = tt;
306
306
  A.Spinner = nt;
307
307
  A.Error = ge;
308
- ge.Text = ke;
308
+ ge.Text = qe;
309
309
  const le = ({ children: e, className: n }) => {
310
310
  const { files: o } = V(), l = L(e, le.File);
311
311
  return !o || o.length === 0 ? null : /* @__PURE__ */ t.createElement("div", {
@@ -317,10 +317,10 @@ const le = ({ children: e, className: n }) => {
317
317
  })));
318
318
  };
319
319
  le.File = A;
320
- const Q = (e) => e.file.name, a = ({ children: e }) => {
321
- const { t: n } = oe(), { id: o, value: l, onChange: s, uploadFileFormats: d, valueSliderLimit: E, target: x, explanationText: r, onBlur: i, hasError: C, errorMessage: m, FieldLayout: p } = z(), c = q(null), T = q({}), v = q(!1), O = M(() => {
320
+ const G = (e) => e.file.name, a = ({ children: e }) => {
321
+ const { t: n } = oe(), { id: o, value: l, onChange: s, uploadFileFormats: d, valueSliderLimit: E, target: x, explanationText: r, onBlur: i, hasError: C, errorMessage: m, FieldLayout: p } = z(), c = k(null), T = k({}), v = k(!1), O = M(() => {
322
322
  c.current ? c.current.focus() : v.current = !0;
323
- }, []), { files: g, limitError: B, hover: I, getExplanationText: y, getStatusText: N, handleBlur: u, handleChange: R, handleDelete: S, accept: j } = We({
323
+ }, []), { files: g, limitError: B, hover: I, getExplanationText: y, getStatusText: N, handleBlur: u, handleChange: R, handleDelete: S, accept: K } = We({
324
324
  valueSliderLimit: E,
325
325
  value: l,
326
326
  explanationText: r,
@@ -331,8 +331,8 @@ const Q = (e) => e.file.name, a = ({ children: e }) => {
331
331
  onFilesCleared: O
332
332
  }), U = M((H) => {
333
333
  var se;
334
- const J = g[H], P = Q(J);
335
- g.length > 1 && ((se = (g.filter((ee) => Q(ee) !== P).map((ee) => T.current[Q(ee)]).find(Boolean) ?? c).current) == null || se.focus()), S(H);
334
+ const Q = g[H], P = G(Q);
335
+ g.length > 1 && ((se = (g.filter((ee) => G(ee) !== P).map((ee) => T.current[G(ee)]).find(Boolean) ?? c).current) == null || se.focus()), S(H);
336
336
  }, [
337
337
  S,
338
338
  g
@@ -342,14 +342,14 @@ const Q = (e) => e.file.name, a = ({ children: e }) => {
342
342
  }, [
343
343
  g
344
344
  ]);
345
- const K = E > 1, G = g.length >= E, X = fe(() => ({
345
+ const j = E > 1, J = g.length >= E, X = fe(() => ({
346
346
  handleFileChange: R,
347
347
  handleBlur: u,
348
348
  handleDelete: U,
349
349
  files: g,
350
- accept: j,
351
- limitReached: G,
352
- multiple: K,
350
+ accept: K,
351
+ limitReached: J,
352
+ multiple: j,
353
353
  getExplanationText: y,
354
354
  getStatusText: N,
355
355
  hover: I,
@@ -361,21 +361,21 @@ const Q = (e) => e.file.name, a = ({ children: e }) => {
361
361
  u,
362
362
  U,
363
363
  g,
364
- j,
365
- G,
366
364
  K,
365
+ J,
366
+ j,
367
367
  y,
368
368
  N,
369
369
  I,
370
370
  B
371
371
  ]), h = L(e, a.Label), f = L(e, a.DropZone), _ = L(e, a.Button), F = L(e, a.Explanation), b = L(e, a.Files), w = L(e, a.Description), ae = L(e, a.Error);
372
372
  return Se(() => {
373
- var H, J;
373
+ var H, Q;
374
374
  if (c.current) {
375
375
  c.current.focus();
376
376
  return;
377
377
  }
378
- (J = (H = g.map((P) => T.current[Q(P)]).find((P) => P == null ? void 0 : P.current)) == null ? void 0 : H.current) == null || J.focus();
378
+ (Q = (H = g.map((P) => T.current[G(P)]).find((P) => P == null ? void 0 : P.current)) == null ? void 0 : H.current) == null || Q.focus();
379
379
  }, o), /* @__PURE__ */ t.createElement(be.Provider, {
380
380
  value: X
381
381
  }, /* @__PURE__ */ t.createElement(p, {
@@ -385,7 +385,7 @@ const Q = (e) => e.file.name, a = ({ children: e }) => {
385
385
  renderDescription: () => /* @__PURE__ */ t.createElement(t.Fragment, null, W(ae, {
386
386
  hasError: !!(C || B),
387
387
  errorMessage: B ?? m
388
- }), /* @__PURE__ */ t.createElement(qe, {
388
+ }), /* @__PURE__ */ t.createElement(ke, {
389
389
  role: "status",
390
390
  "aria-live": "polite",
391
391
  "aria-atomic": "true"
@@ -399,13 +399,13 @@ const Q = (e) => e.file.name, a = ({ children: e }) => {
399
399
  className: e
400
400
  }, d);
401
401
  };
402
- a.Label = Ke;
403
- a.DropZone = k;
402
+ a.Label = je;
403
+ a.DropZone = q;
404
404
  a.Button = re;
405
405
  a.Explanation = ot;
406
406
  a.Files = le;
407
407
  a.Description = Ve;
408
- a.Error = je;
408
+ a.Error = Ke;
409
409
  const rt = (e) => /* @__PURE__ */ t.createElement("svg", {
410
410
  viewBox: "0 0 24 24",
411
411
  width: 24,
@@ -497,7 +497,7 @@ const rt = (e) => /* @__PURE__ */ t.createElement("svg", {
497
497
  base: D.button,
498
498
  hover: D.buttonHover
499
499
  }
500
- }), E = (N = (y = (I = (B = Be().fileUpload) == null ? void 0 : B.elementProps) == null ? void 0 : I.uploadButton) == null ? void 0 : y.elementProps) == null ? void 0 : N.icon, { wix: x, className: r, ...i } = E ?? {}, C = ye(te.FILE_UPLOAD, te.UPLOAD_BUTTON, te.UPLOAD_BUTTON_LABEL), m = q(null), [p, c] = Y(!1), [T, v] = Y(!1), O = M(() => {
500
+ }), E = (N = (y = (I = (B = Be().fileUpload) == null ? void 0 : B.elementProps) == null ? void 0 : I.uploadButton) == null ? void 0 : y.elementProps) == null ? void 0 : N.icon, { wix: x, className: r, ...i } = E ?? {}, C = ye(te.FILE_UPLOAD, te.UPLOAD_BUTTON, te.UPLOAD_BUTTON_LABEL), m = k(null), [p, c] = Y(!1), [T, v] = Y(!1), O = M(() => {
501
501
  var u;
502
502
  c(!0), (u = m.current) == null || u.runAnimationForward();
503
503
  }, []), g = M(() => {
@@ -1,11 +1,11 @@
1
1
  import t, { useMemo as _ } from "react";
2
2
  import { RicosViewer as A } from "@wix/ricos/viewer";
3
3
  import u from "classnames";
4
- import { bn as C, bf as I, bk as P, R, L as S, u as x } from "./form-D3iU18lh.js";
5
- import { f as c, a as N } from "./find-child-C60k4CxG.js";
4
+ import { bo as C, bg as I, bl as P, S, M as x, v as N } from "./form-DHAKwnLt.js";
5
+ import { f as c, a as R } from "./find-child-C60k4CxG.js";
6
6
  import { f as O } from "./format-currency-BwShJ9vM.js";
7
- import { D as v, E as M } from "./field-error-headless-ClPQ03Jc.js";
8
- import { L as g } from "./field-label-headless-DhN8Lkuq.js";
7
+ import { D as v, E as M } from "./field-error-headless-E8WjFr_n.js";
8
+ import { L as g } from "./field-label-headless-BakLOu5E.js";
9
9
  import { s as F } from "./field-rac.module-DfEb7pBp.js";
10
10
  const e = ({ children: r }) => {
11
11
  var p;
@@ -14,11 +14,11 @@ const e = ({ children: r }) => {
14
14
  return (f = (E = (d = n == null ? void 0 : n.predefined) == null ? void 0 : d.paymentOptions) == null ? void 0 : E.products) == null ? void 0 : f[0];
15
15
  }, [
16
16
  n
17
- ]), i = (p = s == null ? void 0 : s.fixedPriceOptions) == null ? void 0 : p.price, L = c(r, e.Label), y = c(r, e.Amount), b = c(r, e.Description), D = c(r, e.Error);
17
+ ]), i = (p = s == null ? void 0 : s.fixedPriceOptions) == null ? void 0 : p.price, y = c(r, e.Label), L = c(r, e.Amount), b = c(r, e.Description), D = c(r, e.Error);
18
18
  return /* @__PURE__ */ t.createElement(l, {
19
19
  fieldId: a,
20
- renderLabel: () => L,
21
- renderInput: () => N(y, {
20
+ renderLabel: () => y,
21
+ renderInput: () => R(L, {
22
22
  price: i,
23
23
  currencyCode: o == null ? void 0 : o.code,
24
24
  locale: m
@@ -44,17 +44,17 @@ e.Label = V;
44
44
  e.Amount = T;
45
45
  e.Description = v;
46
46
  e.Error = M;
47
- const k = "_value_c7203_1", B = {
48
- value: k
47
+ const B = "_value_c7203_1", k = {
48
+ value: B
49
49
  }, w = ({ content: r, locale: a }) => /* @__PURE__ */ t.createElement(A, {
50
50
  content: r,
51
51
  locale: a
52
52
  }), X = () => /* @__PURE__ */ t.createElement(e, null, /* @__PURE__ */ t.createElement(e.Label, {
53
- className: u(R, F.label)
53
+ className: u(S, F.label)
54
54
  }), /* @__PURE__ */ t.createElement(e.Amount, {
55
- className: u(S, B.value)
55
+ className: u(x, k.value)
56
56
  }), /* @__PURE__ */ t.createElement(e.Description, {
57
- className: u(x, F.description)
57
+ className: u(N, F.description)
58
58
  }, w)), Q = () => /* @__PURE__ */ t.createElement(X, null);
59
59
  export {
60
60
  Q as FixedPaymentRAC