@wix/form-elements 1.233.0 → 1.234.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 (116) hide show
  1. package/dist/component/{appointment-rac-D-3m58lp.js → appointment-rac-DaJz8fBt.js} +4 -4
  2. package/dist/component/{bookings-address-rac-B-LoE2Qn.js → bookings-address-rac-lkvT2jFg.js} +1 -1
  3. package/dist/component/{bookings-email-rac-DPZwdIFG.js → bookings-email-rac-B6yDIr7X.js} +1 -1
  4. package/dist/component/{bookings-first-name-rac-CsVsVcvr.js → bookings-first-name-rac-BdwaASKa.js} +1 -1
  5. package/dist/component/{bookings-header-rac-qNe2KRzE.js → bookings-header-rac-K_4D2edM.js} +1 -1
  6. package/dist/component/{bookings-last-name-rac-DQL_KMg2.js → bookings-last-name-rac-z1DsE6Te.js} +1 -1
  7. package/dist/component/{bookings-login-bar-rac-COt6CmZt.js → bookings-login-bar-rac-DuDc27Sg.js} +1 -1
  8. package/dist/component/{bookings-phone-rac-L07Dr5yv.js → bookings-phone-rac-D3I57XfO.js} +1 -1
  9. package/dist/component/{bookings-rich-text-rac-DJaGIswi.js → bookings-rich-text-rac-Dva_0eJC.js} +1 -1
  10. package/dist/component/{checkbox-field-rac-hshAPjuN.js → checkbox-field-rac-CcVXm9fo.js} +4 -4
  11. package/dist/component/{checkbox-group-field-headless-Dz8ifQ1q.js → checkbox-group-field-headless-DIwGr5_m.js} +3 -3
  12. package/dist/component/{checkbox-group-field-rac-BcmVG9V9.js → checkbox-group-field-rac-Di8eepGG.js} +4 -4
  13. package/dist/component/{checkbox-group-rac-Dxd3xSxY.js → checkbox-group-rac-uA3X1M2J.js} +1 -1
  14. package/dist/component/{checkbox-rac-BWtTYFl2.js → checkbox-rac-BSYp2Yim.js} +1 -1
  15. package/dist/component/{contacts-address-rac-Cgi9ARvL.js → contacts-address-rac-BmITc1pA.js} +1 -1
  16. package/dist/component/{contacts-birthdate-rac-C5LiljQS.js → contacts-birthdate-rac-BbiTr6cp.js} +1 -1
  17. package/dist/component/{contacts-company-rac-DjVt6krD.js → contacts-company-rac-DUQ7fNTn.js} +1 -1
  18. package/dist/component/{contacts-email-rac-UUsDS-Hj.js → contacts-email-rac-CVqqMJbq.js} +1 -1
  19. package/dist/component/{contacts-first-name-rac-D0I06Uqj.js → contacts-first-name-rac-uv3ldXXw.js} +1 -1
  20. package/dist/component/{contacts-last-name-rac-DEg25NCh.js → contacts-last-name-rac-CimDHNgO.js} +1 -1
  21. package/dist/component/{contacts-phone-rac-CGs7LCRx.js → contacts-phone-rac-BShfAZ5U.js} +1 -1
  22. package/dist/component/{contacts-position-rac-6uf20AOO.js → contacts-position-rac-BENXoFz5.js} +1 -1
  23. package/dist/component/{contacts-subscribe-rac-OR1Tl4HS.js → contacts-subscribe-rac-CBBgFf9U.js} +1 -1
  24. package/dist/component/{contacts-tax-id-rac-BogsWGs4.js → contacts-tax-id-rac-B4fcviNx.js} +1 -1
  25. package/dist/component/{date-availability-Dc4t2XCp.js → date-availability-BrxRBFHK.js} +1 -1
  26. package/dist/component/date-input-field-rac-BFDOSod0.js +382 -0
  27. package/dist/component/{date-input-rac-D9uou8Mx.js → date-input-rac-Cd6SHUjO.js} +1 -1
  28. package/dist/component/{date-picker-field-rac-BKiq-iMW.js → date-picker-field-rac-BN2EjYXP.js} +8 -8
  29. package/dist/component/{date-picker-rac-CMroLRTz.js → date-picker-rac-BQWpqtZJ.js} +1 -1
  30. package/dist/component/date-time-input-field-rac-BO_3H4NG.js +526 -0
  31. package/dist/component/{date-time-input-rac-DBqQrjE_.js → date-time-input-rac-wgKGtEcj.js} +1 -1
  32. package/dist/component/{dext-checkbox-group-rac-CyReMYPe.js → dext-checkbox-group-rac-DM20MEtm.js} +2 -2
  33. package/dist/component/{dext-checkbox-rac-C-Ax0coQ.js → dext-checkbox-rac-DvzEyVhG.js} +1 -1
  34. package/dist/component/{dext-date-picker-rac-BEjVuSbf.js → dext-date-picker-rac-cof0w9i_.js} +1 -1
  35. package/dist/component/{dext-date-time-input-rac-xWnKBcPO.js → dext-date-time-input-rac-BiJqwZ-5.js} +1 -1
  36. package/dist/component/{dext-dropdown-rac-BupA5fTu.js → dext-dropdown-rac-DEq1gj7M.js} +1 -1
  37. package/dist/component/{dext-email-rac-D-PgibOQ.js → dext-email-rac-BDg2wBuO.js} +1 -1
  38. package/dist/component/{dext-number-input-rac-YGeVY6EG.js → dext-number-input-rac-BBouksMP.js} +1 -1
  39. package/dist/component/{dext-phone-rac-LFs2NS4p.js → dext-phone-rac-DZASm4Ft.js} +1 -1
  40. package/dist/component/{dext-radio-group-rac-C9GUzkeB.js → dext-radio-group-rac-DqAZs7cq.js} +2 -2
  41. package/dist/component/{dext-rating-input-rac-Cl0HkVM2.js → dext-rating-input-rac-BUB6w2g3.js} +1 -1
  42. package/dist/component/{dext-tags-rac-BYkY96bj.js → dext-tags-rac-BH6azQiT.js} +2 -2
  43. package/dist/component/{dext-text-area-rac-fz7UNRqD.js → dext-text-area-rac-Bm1Oi7pi.js} +1 -1
  44. package/dist/component/{dext-text-input-rac-Dv9HTbCt.js → dext-text-input-rac-DBSxcYp8.js} +1 -1
  45. package/dist/component/{dext-url-input-rac-FxdnSlVl.js → dext-url-input-rac-gJ_-qrzY.js} +1 -1
  46. package/dist/component/{dismiss-icon-DJmsu1VC.js → dismiss-icon-sdQDwRev.js} +1 -1
  47. package/dist/component/{donation-rac-Bu74Oogy.js → donation-rac-CJHcIOnk.js} +5 -5
  48. package/dist/component/{dropdown-field-rac-CzWkvn7h.js → dropdown-field-rac-D94vF6Um.js} +3 -3
  49. package/dist/component/{dropdown-rac-V6_Z9Wpm.js → dropdown-rac-EN7KMhtd.js} +1 -1
  50. package/dist/component/{ecom-address-rac-jXrbgGcR.js → ecom-address-rac-CYk1wXq3.js} +1 -1
  51. package/dist/component/{ecom-subscription-checkbox-rac-eHaOfQ88.js → ecom-subscription-checkbox-rac--cLVBIUD.js} +2 -2
  52. package/dist/component/{email-input-field-rac-CWVKPe92.js → email-input-field-rac-DWTQUl88.js} +3 -3
  53. package/dist/component/{events-repeater-rac-DYOdULgb.js → events-repeater-rac-B-CAZJsO.js} +4 -4
  54. package/dist/component/{events-rsvp-rac-QVCrDFMy.js → events-rsvp-rac-CkLzjZe0.js} +3 -3
  55. package/dist/component/{field-error-headless-NewCzOB9.js → field-error-headless-Hpn7Cjyz.js} +1 -1
  56. package/dist/component/{field-label-headless-Deo9dGbv.js → field-label-headless-CZaQ-q22.js} +1 -1
  57. package/dist/component/{file-upload-rac-aXHlyxHi.js → file-upload-rac-DelhbRzX.js} +153 -150
  58. package/dist/component/{fixed-payment-rac-BSZpuGK5.js → fixed-payment-rac-CGee8oWb.js} +3 -3
  59. package/dist/component/{form-D6g5Lhie.js → form-CKPfFL3D.js} +2347 -2341
  60. package/dist/component/form.css +1 -1
  61. package/dist/component/form.js +1 -1
  62. package/dist/component/{header-field-rac-PG_d2DLi.js → header-field-rac-B6vzJnaW.js} +2 -2
  63. package/dist/component/{header-rac-DSdtCA23.js → header-rac-Bc4WxzR1.js} +1 -1
  64. package/dist/component/hidden-part-label-Dc5eP4S0.js +18 -0
  65. package/dist/component/{image-choice-rac-Dfcq_DDp.js → image-choice-rac-BuArZj5n.js} +4 -4
  66. package/dist/component/{index-D4MrV_sk.js → index-CmopQE1P.js} +2 -2
  67. package/dist/component/{index-zP5mfEf8.js → index-yqi4FTyq.js} +4 -4
  68. package/dist/component/{isObjectLike-DFFmMGos.js → isObjectLike-DO4jXs__.js} +1 -1
  69. package/dist/component/{multiline-address-field-rac-C_Xy1nWk.js → multiline-address-field-rac-CijPzBxU.js} +8 -8
  70. package/dist/component/{multiline-address-rac-BqpeM7C_.js → multiline-address-rac-CchEjTwl.js} +1 -1
  71. package/dist/component/{number-input-field-rac-BQyjLISj.js → number-input-field-rac-CdJstTE-.js} +4 -4
  72. package/dist/component/{number-input-rac-DrDlS1RB.js → number-input-rac-B0V7Xy0I.js} +1 -1
  73. package/dist/component/{password-rac-BT58ATdC.js → password-rac-BipcyWPk.js} +4 -4
  74. package/dist/component/{payment-input-rac-CWalYCZA.js → payment-input-rac-ClhUNxdL.js} +4 -4
  75. package/dist/component/{phone-input-field-rac-D_ayc1RA.js → phone-input-field-rac-CPNMdr70.js} +7 -7
  76. package/dist/component/{phone-rac-p5F-E8Qq.js → phone-rac-DL5pW-cK.js} +1 -1
  77. package/dist/component/{product-list-rac-CPr9bYu0.js → product-list-rac-Ii0qlyiq.js} +4 -4
  78. package/dist/component/{quiz-radio-group-rac-OW0sqesm.js → quiz-radio-group-rac-DtO0om99.js} +1 -1
  79. package/dist/component/radio-button-module-classes-CY-zH0im.js +152 -0
  80. package/dist/component/{radio-group-field-rac-BLCsoI-r.js → radio-group-field-rac-ViY8g4gL.js} +4 -4
  81. package/dist/component/{radio-group-rac-BgUpj2G5.js → radio-group-rac-CjCoPD-w.js} +1 -1
  82. package/dist/component/rating-input-field-rac-BMFXLqfg.js +145 -0
  83. package/dist/component/{rating-input-rac-DSpFTPOv.js → rating-input-rac-CWGGV3Fx.js} +1 -1
  84. package/dist/component/{rich-content-rac.module-CLu7GcMK.js → rich-content-rac.module-CTlkS2_O.js} +1 -1
  85. package/dist/component/{rich-text-field-rac-ZiI_nRWE.js → rich-text-field-rac-2SQn_URM.js} +2 -2
  86. package/dist/component/{rich-text-rac-BsgiN5d-.js → rich-text-rac-L3m09cVp.js} +1 -1
  87. package/dist/component/{service-dropdown-rac-DWyhRr97.js → service-dropdown-rac-uKz9PkBj.js} +4 -4
  88. package/dist/component/{services-multi-choice-rac-TPWCJXw4.js → services-multi-choice-rac-sOJlp6_l.js} +5 -5
  89. package/dist/component/{signature-rac-D67GGPog.js → signature-rac-B1O7Ivtg.js} +4 -4
  90. package/dist/component/{submit-button-rac-DnVE0X13.js → submit-button-rac-iYdJFSXy.js} +60 -60
  91. package/dist/component/{tags-field-rac-Cr1g3IQA.js → tags-field-rac-CFSrsxw9.js} +5 -5
  92. package/dist/component/{tags-rac-CVMs-yMu.js → tags-rac-KW_c8m3p.js} +1 -1
  93. package/dist/component/{text-area-field-rac-gTMH-0ED.js → text-area-field-rac-BJEAvqCy.js} +4 -4
  94. package/dist/component/{text-area-rac-_s4ZWY1w.js → text-area-rac-Bk9j2e4k.js} +1 -1
  95. package/dist/component/{text-input-field-rac-BkHvsCqC.js → text-input-field-rac-KlrY_3qp.js} +3 -3
  96. package/dist/component/{text-input-headless-9zV5V5ku.js → text-input-headless-B6gzsedE.js} +3 -3
  97. package/dist/component/{text-input-rac-DiKyTmgL.js → text-input-rac-CSO1g0rD.js} +1 -1
  98. package/dist/component/{time-input-rac-DI40cFEX.js → time-input-rac-jaYI3_XV.js} +6 -6
  99. package/dist/component/{url-input-field-rac-BksPlayI.js → url-input-field-rac-1t5d4VjM.js} +4 -4
  100. package/dist/component/{url-input-rac-D7JSf8Qb.js → url-input-rac-BTQOpun9.js} +1 -1
  101. package/dist/component/{use-dropdown-option-class-name-DSehgOmn.js → use-dropdown-option-class-name-DEBN31l5.js} +2 -2
  102. package/dist/component/{use-dropdown-trigger-class-name-Bn5-sN_y.js → use-dropdown-trigger-class-name-BpcEWMWj.js} +7 -7
  103. package/dist/component/{use-element-state-class-name-CPvOOc0S.js → use-element-state-class-name-B0muHOx4.js} +1 -1
  104. package/dist/component/{use-hoverable-input-class-name-CdTBtnwn.js → use-hoverable-input-class-name-CL0sOlNu.js} +2 -2
  105. package/dist/component/{use-is-forced-open-dropdown-BowzktO1.js → use-is-forced-open-dropdown-BhQKJWNc.js} +1 -1
  106. package/dist/component/{use-native-mobile-input-FJXRhGOj.js → use-native-mobile-input-W9CS9U3u.js} +1 -1
  107. package/dist/component/{use-service-options-base-BIAtzpWn.js → use-service-options-base-DUgTjbHR.js} +1 -1
  108. package/dist/component/use-text-input-class-name-Mm_0ULVk.js +6 -0
  109. package/dist/form.d.ts +81 -0
  110. package/package.json +2 -2
  111. package/dist/component/date-input-field-rac-D4OlWmZn.js +0 -365
  112. package/dist/component/date-time-input-field-rac-Bv2fVYpg.js +0 -507
  113. package/dist/component/helpers-HmkkXrh2.js +0 -12
  114. package/dist/component/radio-button-module-classes-BZ_Hel4e.js +0 -137
  115. package/dist/component/rating-input-field-rac-B_HyeaML.js +0 -139
  116. package/dist/component/use-text-input-class-name-ChjVNdVG.js +0 -6
@@ -1,23 +1,23 @@
1
- import t, { useState as $, useRef as H, useMemo as pe, useEffect as ne, useCallback as Z, createContext as ge, useContext as _e } from "react";
2
- import Le from "@wix/editor-react-components/AnimatedIcon";
3
- import { RicosViewer as he } from "@wix/ricos/viewer";
1
+ import t, { useState as Y, useRef as H, useMemo as fe, useEffect as ne, useCallback as Z, createContext as _e, useContext as Le } from "react";
2
+ import he from "@wix/editor-react-components/AnimatedIcon";
3
+ import { RicosViewer as xe } from "@wix/ricos/viewer";
4
4
  import A from "classnames";
5
- import { bJ as Ce, bY as re, bS as xe, aO as Ne, bV as ve, aH as ie, bX as De, bK as fe, bN as V, bP as ye, bH as Se, bG as Te, X as Be, am as Ie, b as we, P as Ae, Q as ce, R as Re, N as ue, M as de, I as Ze, O as Me, f as te } from "./form-D6g5Lhie.js";
6
- import { E as Oe } from "./error-icon-hZxQ6DEy.js";
7
- import { s as Y } from "./field-rac.module-D0QzJXUv.js";
8
- import { u as me } from "./use-element-state-class-name-CPvOOc0S.js";
9
- import { DropZone as Ue, Text as ke, FileTrigger as Pe, Button as Ee, ProgressBar as He, VisuallyHidden as ze } from "react-aria-components";
10
- import { f as h, a as Q } from "./find-child-C60k4CxG.js";
11
- import { b as Ve, a as Ke, D as je, E as qe } from "./field-error-headless-NewCzOB9.js";
12
- import { L as Ye } from "./field-label-headless-Deo9dGbv.js";
13
- const $e = {
5
+ import { bJ as Ce, bY as re, bS as Ne, aO as ve, bV as De, aH as ce, bX as ye, bK as oe, bN as V, bP as Se, bH as Te, bG as Be, X as Ie, am as we, b as Ae, P as Re, Q as ue, R as Ze, N as de, M as me, I as Me, O as Oe, f as te } from "./form-CKPfFL3D.js";
6
+ import { E as Ue } from "./error-icon-hZxQ6DEy.js";
7
+ import { s as q } from "./field-rac.module-D0QzJXUv.js";
8
+ import { u as pe } from "./use-element-state-class-name-B0muHOx4.js";
9
+ import { DropZone as ke, Text as Pe, FileTrigger as He, Button as Ee, ProgressBar as ze, VisuallyHidden as Ve } from "react-aria-components";
10
+ import { f as x, a as Q } from "./find-child-C60k4CxG.js";
11
+ import { b as $e, a as Ke, D as je, E as qe } from "./field-error-headless-Hpn7Cjyz.js";
12
+ import { L as Ye } from "./field-label-headless-CZaQ-q22.js";
13
+ const Qe = {
14
14
  Video: "video/*",
15
15
  Image: "image/*",
16
16
  Audio: "audio/*",
17
17
  Document: ".ai, .cdr, .csv, .doc, .docb, .docx, .dot, .dotx, .dwg, .eps, .epub, .fla, .gpx, .ical, .icalendar, .ics, .ifb, .indd, .ipynb, .key, .kml, .kmz, .mobi, .mtf, .mtx, .numbers, .odg, .odp, .ods, .odt, .otp, .ots, .ott, .oxps, .pages, .pdf, .pdn, .pkg, .pot, .potx, .pps, .ppsx, .ppt, .pptx, .psd, .pub, .rtf, .sldx, .txt, .json, .vcf, .xcf, .xls, .xlsx, .xlt, .xltx, .xlw, .xps,.xml,application/msword,application/vnd.openxmlformats-officedocument.wordprocessingml.document,application/pdf,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet,application/vnd.ms-excel",
18
18
  Archive: ".zip, .rar, .tar, .tar.gz, .gz, .gzip, .jar, .7z, .fgz, .webarchive",
19
19
  Model3D: ".gltf, .glb"
20
- }, Qe = (e) => {
20
+ }, We = (e) => {
21
21
  const { actions: n, formId: r } = Ce();
22
22
  return async (l, s, d) => {
23
23
  if (!(n != null && n.uploadFile) || !l.length)
@@ -27,8 +27,8 @@ const $e = {
27
27
  formId: r,
28
28
  uploadTarget: e
29
29
  }).then((i) => {
30
- const { id: x, displayName: m, url: p, isPrivate: c } = i, y = {
31
- fileId: x,
30
+ const { id: C, displayName: m, url: p, isPrivate: c } = i, y = {
31
+ fileId: C,
32
32
  displayName: m || o.name,
33
33
  url: c ? void 0 : p,
34
34
  fileType: o.type || "application/octet-stream"
@@ -43,14 +43,14 @@ const $e = {
43
43
  return (await Promise.all(E)).filter((o) => o !== void 0);
44
44
  };
45
45
  };
46
- function We({ valueSliderLimit: e, value: n, explanationText: r, target: l, onChange: s, uploadFileFormats: d, onBlur: E, onFilesCleared: C }) {
47
- const [o, i] = $(Xe(n)), [x, m] = $(n || []), [p, c] = $(), y = Qe(l), { t: N } = re(), g = xe().includes(Ne.BUTTONS_HOVER), { setFormStatus: T } = ve(), I = H(!1), B = H(s);
46
+ function Xe({ valueSliderLimit: e, value: n, explanationText: r, target: l, onChange: s, uploadFileFormats: d, onBlur: E, onFilesCleared: L }) {
47
+ const [o, i] = Y(Ge(n)), [C, m] = Y(n || []), [p, c] = Y(), y = We(l), { t: N } = re(), g = Ne().includes(ve.BUTTONS_HOVER), { setFormStatus: T } = De(), I = H(!1), B = H(s);
48
48
  B.current = s;
49
- const v = pe(() => o.some((f) => f.state === "uploading"), [
49
+ const v = fe(() => o.some((f) => f.state === "uploading"), [
50
50
  o
51
51
  ]);
52
52
  ne(() => {
53
- I.current !== v && (I.current = v, T(l, v ? ie.BUSY : ie.READY));
53
+ I.current !== v && (I.current = v, T(l, v ? ce.BUSY : ce.READY));
54
54
  }, [
55
55
  v,
56
56
  T,
@@ -61,9 +61,9 @@ function We({ valueSliderLimit: e, value: n, explanationText: r, target: l, onCh
61
61
  return;
62
62
  const _ = o.filter((f) => f.state === "uploading").length;
63
63
  if (_) {
64
- const f = o.filter((F) => F.state === "uploaded" && F.file.size > 0).length, L = f / (f + _);
64
+ const f = o.filter((F) => F.state === "uploaded" && F.file.size > 0).length, h = f / (f + _);
65
65
  return N("form.file-upload.uploading", {
66
- count: Math.round(L * 100)
66
+ count: Math.round(h * 100)
67
67
  });
68
68
  }
69
69
  return N("form.file-upload.explanation-text", {
@@ -77,7 +77,7 @@ function We({ valueSliderLimit: e, value: n, explanationText: r, target: l, onCh
77
77
  r,
78
78
  u
79
79
  ]), S = Z(async (_) => {
80
- await y(_, ({ file: f, uploadedFile: L }) => {
80
+ await y(_, ({ file: f, uploadedFile: h }) => {
81
81
  i((F) => F.map((b) => b.file === f ? {
82
82
  file: f,
83
83
  state: "uploaded"
@@ -85,12 +85,12 @@ function We({ valueSliderLimit: e, value: n, explanationText: r, target: l, onCh
85
85
  var U;
86
86
  const b = [
87
87
  ...F
88
- ].concat(L);
88
+ ].concat(h);
89
89
  return (U = B.current) == null || U.call(B, b), b;
90
90
  });
91
- }, (f, L) => {
92
- i((F) => F.map((b) => b.file === L ? {
93
- file: L,
91
+ }, (f, h) => {
92
+ i((F) => F.map((b) => b.file === h ? {
93
+ file: h,
94
94
  state: "error",
95
95
  errorMessage: N("form.file-upload.error.upload-failed")
96
96
  } : b));
@@ -98,7 +98,7 @@ function We({ valueSliderLimit: e, value: n, explanationText: r, target: l, onCh
98
98
  }, [
99
99
  y,
100
100
  N
101
- ]), j = async (_) => {
101
+ ]), K = async (_) => {
102
102
  if (p && c(void 0), _) {
103
103
  if (o.length + _.length > e) {
104
104
  c(N("form.file-upload.error.upload-limit", {
@@ -117,33 +117,33 @@ function We({ valueSliderLimit: e, value: n, explanationText: r, target: l, onCh
117
117
  }
118
118
  }, O = (_) => {
119
119
  const f = o[_];
120
- if (x && s && f.state !== "error") {
121
- const L = x.filter((b) => b.displayName !== f.file.name);
122
- s(L), m(L);
120
+ if (C && s && f.state !== "error") {
121
+ const h = C.filter((b) => b.displayName !== f.file.name);
122
+ s(h), m(h);
123
123
  const F = o.filter((b) => b.file.name !== f.file.name);
124
- i(F), F.length === 0 && C();
124
+ i(F), F.length === 0 && L();
125
125
  } else {
126
- const L = o.filter((F) => F !== f);
127
- i(L), L.length === 0 && C();
126
+ const h = o.filter((F) => F !== f);
127
+ i(h), h.length === 0 && L();
128
128
  }
129
- }, q = () => {
129
+ }, j = () => {
130
130
  p && c(void 0), E();
131
- }, W = d.map((_) => $e[_]).join(), J = Z(() => {
131
+ }, W = d.map((_) => Qe[_]).join(), J = Z(() => {
132
132
  i([]), m([]);
133
133
  }, []);
134
- return De(J), {
134
+ return ye(J), {
135
135
  files: o,
136
136
  limitError: p,
137
137
  hover: g,
138
138
  getExplanationText: w,
139
139
  getStatusText: u,
140
- handleChange: j,
140
+ handleChange: K,
141
141
  handleDelete: O,
142
142
  accept: W,
143
- handleBlur: q
143
+ handleBlur: j
144
144
  };
145
145
  }
146
- function Xe(e = []) {
146
+ function Ge(e = []) {
147
147
  const n = e || [];
148
148
  try {
149
149
  return n.map((r) => ({
@@ -159,26 +159,26 @@ function Xe(e = []) {
159
159
  }
160
160
  return [];
161
161
  }
162
- const Fe = /* @__PURE__ */ ge(void 0);
163
- function K() {
164
- const e = _e(Fe);
162
+ const Fe = /* @__PURE__ */ _e(void 0);
163
+ function $() {
164
+ const e = Le(Fe);
165
165
  if (typeof e > "u")
166
166
  throw new Error("FileUpload components must be used within FileUpload");
167
167
  return e;
168
168
  }
169
169
  const z = ({ children: e, className: n }) => {
170
- const { ariaDescribedBy: r } = fe(), { disabled: l, hasError: s } = V(), { handleFileChange: d, limitReached: E } = K();
170
+ const { ariaDescribedBy: r } = oe(), { disabled: l, hasError: s } = V(), { handleFileChange: d, limitReached: E } = $();
171
171
  if (E)
172
172
  return null;
173
- const C = h(e, z.Title), o = h(e, z.Subtitle), i = h(e, z.Button);
174
- return /* @__PURE__ */ t.createElement(Ue, {
173
+ const L = x(e, z.Title), o = x(e, z.Subtitle), i = x(e, z.Button);
174
+ return /* @__PURE__ */ t.createElement(ke, {
175
175
  "aria-describedby": r,
176
176
  className: n,
177
177
  "data-invalid": s,
178
178
  isDisabled: l,
179
- onDrop: async (x) => {
179
+ onDrop: async (C) => {
180
180
  const m = [];
181
- for (const p of x.items)
181
+ for (const p of C.items)
182
182
  if (p.kind === "file") {
183
183
  const c = await p.getFile();
184
184
  c && m.push(c);
@@ -188,38 +188,40 @@ const z = ({ children: e, className: n }) => {
188
188
  m.forEach((c) => p.items.add(c)), d(p.files);
189
189
  }
190
190
  }
191
- }, /* @__PURE__ */ t.createElement(ke, {
191
+ }, /* @__PURE__ */ t.createElement(Pe, {
192
192
  slot: "label"
193
- }, C, o), i);
194
- }, Ge = ({ className: e, children: n }) => {
195
- const { limitReached: r } = K();
193
+ }, L, o), i);
194
+ }, Je = ({ className: e, children: n }) => {
195
+ const { limitReached: r } = $();
196
196
  return /* @__PURE__ */ t.createElement("p", {
197
197
  className: e
198
198
  }, n({
199
199
  limitReached: r
200
200
  }));
201
- }, Je = ({ className: e, children: n }) => {
202
- const { limitReached: r } = K(), { explanationText: l } = V();
201
+ }, et = ({ className: e, children: n }) => {
202
+ const { limitReached: r } = $(), { explanationText: l } = V();
203
203
  return /* @__PURE__ */ t.createElement("p", {
204
204
  className: e
205
205
  }, l || n({
206
206
  limitReached: r
207
207
  }));
208
- }, oe = ({ className: e, children: n, "aria-roledescription": r, onHoverStart: l, onHoverEnd: s, onFocusChange: d }) => {
209
- const { ariaDescribedBy: E, inputId: C, labelId: o, errorId: i } = fe(), { disabled: x, required: m, onFocus: p, hasError: c, errorMessage: y } = V(), { handleFileChange: N, accept: M, multiple: g, buttonRef: T, handleBlur: I, limitError: B, files: v } = K(), u = (v == null ? void 0 : v.some((S) => S.errorMessage)) ?? !1, w = !!(c || y || B || u);
210
- return /* @__PURE__ */ t.createElement(Pe, {
208
+ }, le = ({ className: e, children: n, "aria-roledescription": r, onHoverStart: l, onHoverEnd: s, onFocusChange: d }) => {
209
+ const { ariaDescribedBy: E, inputId: L, labelId: o, errorId: i } = oe(), { disabled: C, required: m, onFocus: p, hasError: c, errorMessage: y } = V(), { handleFileChange: N, accept: M, multiple: g, buttonRef: T, handleBlur: I, limitError: B, files: v } = $(), u = (v == null ? void 0 : v.some((S) => S.errorMessage)) ?? !1, w = !!(c || y || B || u);
210
+ return /* @__PURE__ */ t.createElement(He, {
211
211
  acceptedFileTypes: M ? M.split(",") : void 0,
212
212
  allowsMultiple: g,
213
213
  onSelect: (S) => {
214
214
  if (S) {
215
- const j = Array.from(S), O = new DataTransfer();
216
- j.forEach((q) => O.items.add(q)), N(O.files);
215
+ const K = Array.from(S), O = new DataTransfer();
216
+ K.forEach((j) => O.items.add(j)), N(O.files);
217
217
  }
218
218
  }
219
219
  }, /* @__PURE__ */ t.createElement(Ee, {
220
220
  ref: T,
221
- id: C,
222
- "aria-labelledby": o,
221
+ id: L,
222
+ // The visible button text first, then the field label ("Upload file,
223
+ // Resume"), so speech-input users can say what they see (WCAG 2.5.3).
224
+ "aria-labelledby": `${be(L)} ${o}`,
223
225
  "aria-describedby": [
224
226
  E,
225
227
  i
@@ -230,7 +232,7 @@ const z = ({ children: e, className: n }) => {
230
232
  "aria-invalid": w || void 0,
231
233
  "aria-required": m
232
234
  }),
233
- isDisabled: x,
235
+ isDisabled: C,
234
236
  className: e,
235
237
  onFocus: p,
236
238
  onBlur: I,
@@ -238,35 +240,36 @@ const z = ({ children: e, className: n }) => {
238
240
  onHoverEnd: s,
239
241
  onFocusChange: d
240
242
  }, n));
241
- }, et = ({ className: e }) => {
242
- const { buttonText: n } = V();
243
+ }, be = (e) => `${e}-button-text`, tt = ({ className: e }) => {
244
+ const { buttonText: n } = V(), { inputId: r } = oe();
243
245
  return /* @__PURE__ */ t.createElement("span", {
246
+ id: be(r),
244
247
  className: e
245
248
  }, n);
246
249
  };
247
- oe.Text = et;
248
- z.Title = Ge;
249
- z.Subtitle = Je;
250
- z.Button = oe;
250
+ le.Text = tt;
251
+ z.Title = Je;
252
+ z.Subtitle = et;
253
+ z.Button = le;
251
254
  const R = ({ children: e, className: n, ...r }) => {
252
- const { file: l, index: s } = r, d = l.file.name, E = h(e, R.Name), C = h(e, R.Remove), o = h(e, R.Spinner), i = h(e, R.Error);
255
+ const { file: l, index: s } = r, d = l.file.name, E = x(e, R.Name), L = x(e, R.Remove), o = x(e, R.Spinner), i = x(e, R.Error);
253
256
  return /* @__PURE__ */ t.createElement("div", {
254
257
  className: n
255
258
  }, Q(E, {
256
259
  fileName: d
257
- }), l.state === "uploading" ? o : Q(C, {
260
+ }), l.state === "uploading" ? o : Q(L, {
258
261
  index: s,
259
262
  fileName: d
260
263
  }), l.errorMessage && Q(i, {
261
264
  errorMessage: l.errorMessage
262
265
  }));
263
- }, tt = ({ className: e, ...n }) => {
266
+ }, nt = ({ className: e, ...n }) => {
264
267
  const { fileName: r } = n;
265
268
  return /* @__PURE__ */ t.createElement("span", {
266
269
  className: e
267
270
  }, r);
268
- }, nt = ({ className: e, "aria-label": n, children: r, ...l }) => {
269
- const { fileName: s, index: d } = l, { disabled: E } = V(), { handleDelete: C, fileRemoveButtonRefs: o } = K(), i = H(null);
271
+ }, rt = ({ className: e, "aria-label": n, children: r, ...l }) => {
272
+ const { fileName: s, index: d } = l, { disabled: E } = V(), { handleDelete: L, fileRemoveButtonRefs: o } = $(), i = H(null);
270
273
  ne(() => {
271
274
  const m = o.current, p = s;
272
275
  return m[p] = i, () => {
@@ -276,19 +279,19 @@ const R = ({ children: e, className: n, ...r }) => {
276
279
  s,
277
280
  o
278
281
  ]);
279
- const x = () => {
280
- C(d);
282
+ const C = () => {
283
+ L(d);
281
284
  };
282
285
  return /* @__PURE__ */ t.createElement(Ee, {
283
286
  ref: i,
284
287
  "aria-disabled": E,
285
288
  "aria-label": n,
286
289
  "aria-description": s,
287
- onClick: x,
290
+ onClick: C,
288
291
  className: e,
289
292
  isDisabled: E
290
293
  }, r);
291
- }, be = ({ className: e, children: n, ...r }) => {
294
+ }, ge = ({ className: e, children: n, ...r }) => {
292
295
  const { errorMessage: l } = r;
293
296
  return l ? /* @__PURE__ */ t.createElement(Ke, {
294
297
  value: l
@@ -296,18 +299,18 @@ const R = ({ children: e, className: n, ...r }) => {
296
299
  className: e,
297
300
  role: "alert"
298
301
  }, n)) : null;
299
- }, rt = ({ className: e, "aria-label": n, children: r }) => /* @__PURE__ */ t.createElement(He, {
302
+ }, ot = ({ className: e, "aria-label": n, children: r }) => /* @__PURE__ */ t.createElement(ze, {
300
303
  "aria-label": n,
301
304
  className: e,
302
305
  isIndeterminate: !0
303
306
  }, r);
304
- R.Name = tt;
305
- R.Remove = nt;
306
- R.Spinner = rt;
307
- R.Error = be;
308
- be.Text = Ve;
309
- const le = ({ children: e, className: n }) => {
310
- const { files: r } = K(), l = h(e, le.File);
307
+ R.Name = nt;
308
+ R.Remove = rt;
309
+ R.Spinner = ot;
310
+ R.Error = ge;
311
+ ge.Text = $e;
312
+ const ae = ({ children: e, className: n }) => {
313
+ const { files: r } = $(), l = x(e, ae.File);
311
314
  return !r || r.length === 0 ? null : /* @__PURE__ */ t.createElement("div", {
312
315
  className: n
313
316
  }, r.map((s, d) => Q(l, {
@@ -316,23 +319,23 @@ const le = ({ children: e, className: n }) => {
316
319
  index: d
317
320
  })));
318
321
  };
319
- le.File = R;
322
+ ae.File = R;
320
323
  const G = (e) => e.file.name, a = ({ children: e }) => {
321
- const { t: n } = re(), { id: r, value: l, onChange: s, uploadFileFormats: d, valueSliderLimit: E, target: C, explanationText: o, onBlur: i, hasError: x, errorMessage: m, FieldLayout: p } = V(), c = H(null), y = H({}), N = H(!1), M = Z(() => {
324
+ const { t: n } = re(), { id: r, value: l, onChange: s, uploadFileFormats: d, valueSliderLimit: E, target: L, explanationText: o, onBlur: i, hasError: C, errorMessage: m, FieldLayout: p } = V(), c = H(null), y = H({}), N = H(!1), M = Z(() => {
322
325
  c.current ? c.current.focus() : N.current = !0;
323
- }, []), { files: g, limitError: T, hover: I, getExplanationText: B, getStatusText: v, handleBlur: u, handleChange: w, handleDelete: S, accept: j } = We({
326
+ }, []), { files: g, limitError: T, hover: I, getExplanationText: B, getStatusText: v, handleBlur: u, handleChange: w, handleDelete: S, accept: K } = Xe({
324
327
  valueSliderLimit: E,
325
328
  value: l,
326
329
  explanationText: o,
327
- target: C,
330
+ target: L,
328
331
  onChange: s,
329
332
  uploadFileFormats: d,
330
333
  onBlur: i,
331
334
  onFilesCleared: M
332
335
  }), O = Z((k) => {
333
- var se;
336
+ var ie;
334
337
  const X = g[k], P = G(X);
335
- g.length > 1 && ((se = (g.filter((ee) => G(ee) !== P).map((ee) => y.current[G(ee)]).find(Boolean) ?? c).current) == null || se.focus()), S(k);
338
+ g.length > 1 && ((ie = (g.filter((ee) => G(ee) !== P).map((ee) => y.current[G(ee)]).find(Boolean) ?? c).current) == null || ie.focus()), S(k);
336
339
  }, [
337
340
  S,
338
341
  g
@@ -342,14 +345,14 @@ const G = (e) => e.file.name, a = ({ children: e }) => {
342
345
  }, [
343
346
  g
344
347
  ]);
345
- const q = E > 1, W = g.length >= E, J = pe(() => ({
348
+ const j = E > 1, W = g.length >= E, J = fe(() => ({
346
349
  handleFileChange: w,
347
350
  handleBlur: u,
348
351
  handleDelete: O,
349
352
  files: g,
350
- accept: j,
353
+ accept: K,
351
354
  limitReached: W,
352
- multiple: q,
355
+ multiple: j,
353
356
  getExplanationText: B,
354
357
  getStatusText: v,
355
358
  hover: I,
@@ -361,15 +364,15 @@ const G = (e) => e.file.name, a = ({ children: e }) => {
361
364
  u,
362
365
  O,
363
366
  g,
364
- j,
367
+ K,
365
368
  W,
366
- q,
369
+ j,
367
370
  B,
368
371
  v,
369
372
  I,
370
373
  T
371
- ]), _ = h(e, a.Label), f = h(e, a.DropZone), L = h(e, a.Button), F = h(e, a.Explanation), b = h(e, a.Files), U = h(e, a.Description), ae = h(e, a.Error);
372
- return ye(() => {
374
+ ]), _ = x(e, a.Label), f = x(e, a.DropZone), h = x(e, a.Button), F = x(e, a.Explanation), b = x(e, a.Files), U = x(e, a.Description), se = x(e, a.Error);
375
+ return Se(() => {
373
376
  var k, X;
374
377
  if (c.current) {
375
378
  c.current.focus({
@@ -385,11 +388,11 @@ const G = (e) => e.file.name, a = ({ children: e }) => {
385
388
  }, /* @__PURE__ */ t.createElement(p, {
386
389
  fieldId: r,
387
390
  renderLabel: () => _,
388
- renderInput: () => f ?? L,
389
- renderDescription: () => /* @__PURE__ */ t.createElement(t.Fragment, null, Q(ae, {
390
- hasError: !!(x || T),
391
+ renderInput: () => f ?? h,
392
+ renderDescription: () => /* @__PURE__ */ t.createElement(t.Fragment, null, Q(se, {
393
+ hasError: !!(C || T),
391
394
  errorMessage: T ?? m
392
- }), /* @__PURE__ */ t.createElement(ze, {
395
+ }), /* @__PURE__ */ t.createElement(Ve, {
393
396
  role: "status",
394
397
  "aria-live": "polite",
395
398
  "aria-atomic": "true"
@@ -397,20 +400,20 @@ const G = (e) => e.file.name, a = ({ children: e }) => {
397
400
  count: g.length
398
401
  })), F, b, U)
399
402
  }));
400
- }, ot = ({ className: e, showUploadStatusOnly: n }) => {
401
- const { files: r, getExplanationText: l, getStatusText: s } = K(), d = n ? s() : l();
403
+ }, lt = ({ className: e, showUploadStatusOnly: n }) => {
404
+ const { files: r, getExplanationText: l, getStatusText: s } = $(), d = n ? s() : l();
402
405
  return r.length === 1 || !d ? null : /* @__PURE__ */ t.createElement("p", {
403
406
  className: e
404
407
  }, d);
405
408
  };
406
409
  a.Label = Ye;
407
410
  a.DropZone = z;
408
- a.Button = oe;
409
- a.Explanation = ot;
410
- a.Files = le;
411
+ a.Button = le;
412
+ a.Explanation = lt;
413
+ a.Files = ae;
411
414
  a.Description = je;
412
415
  a.Error = qe;
413
- const lt = (e) => /* @__PURE__ */ t.createElement("svg", {
416
+ const at = (e) => /* @__PURE__ */ t.createElement("svg", {
414
417
  viewBox: "0 0 24 24",
415
418
  width: 24,
416
419
  height: 24,
@@ -419,7 +422,7 @@ const lt = (e) => /* @__PURE__ */ t.createElement("svg", {
419
422
  ...e
420
423
  }, /* @__PURE__ */ t.createElement("path", {
421
424
  d: "M12 12 12 6 11 6 11 12 5 12 5 13 11 13 11 19 12 19 12 13 18 13 18 12z"
422
- })), at = (e) => /* @__PURE__ */ t.createElement("svg", {
425
+ })), st = (e) => /* @__PURE__ */ t.createElement("svg", {
423
426
  viewBox: "0 0 24 24",
424
427
  width: 24,
425
428
  height: 24,
@@ -428,7 +431,7 @@ const lt = (e) => /* @__PURE__ */ t.createElement("svg", {
428
431
  ...e
429
432
  }, /* @__PURE__ */ t.createElement("path", {
430
433
  d: "M12,21 C7.02943725,21 3,16.9705627 3,12 C3,7.02943725 7.02943725,3 12,3 C16.9705627,3 21,7.02943725 21,12 C21,16.9705627 16.9705627,21 12,21 Z M12,20 C16.418278,20 20,16.418278 20,12 C20,7.581722 16.418278,4 12,4 C7.581722,4 4,7.581722 4,12 C4,16.418278 7.581722,20 12,20 Z M12.7287834,7.27532214 C12.9203342,7.46687299 13.0199347,7.73174979 13.0020527,8.00205275 L13.0020527,12.0020527 C13.0199347,12.2723557 12.9203342,12.5372325 12.7287834,12.7287834 C12.5372325,12.9203342 12.2723557,13.0199347 12.0020527,13.0020527 C11.7317498,13.0199347 11.466873,12.9203342 11.2753221,12.7287834 C11.0837713,12.5372325 10.9841708,12.2723557 11.0020527,12.0020527 L11.0020527,8.00205275 C10.9841708,7.73174979 11.0837713,7.46687299 11.2753221,7.27532214 C11.466873,7.08377129 11.7317498,6.98417081 12.0020527,7.00205275 C12.2723557,6.98417081 12.5372325,7.08377129 12.7287834,7.27532214 Z M12.7287834,15.2753221 C12.9203342,15.466873 13.0199347,15.7317498 13.0020527,16.0020527 C13.0199347,16.2723557 12.9203342,16.5372325 12.7287834,16.7287834 C12.5372325,16.9203342 12.2723557,17.0199347 12.0020527,17.0020527 C11.7317498,17.0199347 11.466873,16.9203342 11.2753221,16.7287834 C11.0837713,16.5372325 10.9841708,16.2723557 11.0020527,16.0020527 C10.9841708,15.7317498 11.0837713,15.466873 11.2753221,15.2753221 C11.466873,15.0837713 11.7317498,14.9841708 12.0020527,15.0020527 C12.2723557,14.9841708 12.5372325,15.0837713 12.7287834,15.2753221 Z"
431
- })), st = (e) => /* @__PURE__ */ t.createElement("svg", {
434
+ })), it = (e) => /* @__PURE__ */ t.createElement("svg", {
432
435
  viewBox: "0 0 24 24",
433
436
  width: 24,
434
437
  height: 24,
@@ -437,7 +440,7 @@ const lt = (e) => /* @__PURE__ */ t.createElement("svg", {
437
440
  ...e
438
441
  }, /* @__PURE__ */ t.createElement("path", {
439
442
  d: "M17,17 C17,18.6568542 15.6568542,20 14,20 L9,20 C7.34314575,20 6,18.6568542 6,17 L6,7 L5,7 L5,6 L18,6 L18,7 L17,7 L17,17 Z M9,9 L10,9 L10,16 L9,16 L9,9 Z M11,9 L12,9 L12,16 L11,16 L11,9 Z M13,9 L14,9 L14,16 L13,16 L13,9 Z M7,17 C7,18.1045695 7.8954305,19 9,19 L14,19 C15.1045695,19 16,18.1045695 16,17 L16,7 L7,7 L7,17 Z M13,6 L13,5 L10,5 L10,6 L9,6 L9,5 C9,4.44771525 9.44771525,4 10,4 L13,4 C13.5522847,4 14,4.44771525 14,5 L14,6 L13,6 Z"
440
- })), it = () => {
443
+ })), ct = () => {
441
444
  const n = "calc(50% - 2px)";
442
445
  return /* @__PURE__ */ t.createElement("svg", {
443
446
  fill: "none",
@@ -469,39 +472,39 @@ const lt = (e) => /* @__PURE__ */ t.createElement("svg", {
469
472
  values: "0;360",
470
473
  repeatCount: "indefinite"
471
474
  })));
472
- }, ct = "_dropZone_1rkyw_1", ut = "_dropZoneHover_1rkyw_26", dt = "_dropZoneTitle_1rkyw_63", mt = "_dropZoneSubtitle_1rkyw_68", pt = "_button_1rkyw_72", ft = "_buttonHover_1rkyw_125", Et = "_explanation_1rkyw_142", Ft = "_files_1rkyw_146", bt = "_file_1rkyw_146", gt = "_fileName_1rkyw_195", _t = "_buttonLabel_1rkyw_203", Lt = "_removeButton_1rkyw_207", ht = "_spinner_1rkyw_254", Ct = "_fileError_1rkyw_270", D = {
473
- dropZone: ct,
474
- dropZoneHover: ut,
475
- dropZoneTitle: dt,
476
- dropZoneSubtitle: mt,
477
- button: pt,
478
- buttonHover: ft,
479
- explanation: Et,
480
- files: Ft,
481
- file: bt,
482
- fileName: gt,
483
- buttonLabel: _t,
484
- removeButton: Lt,
485
- spinner: ht,
475
+ }, ut = "_dropZone_1rkyw_1", dt = "_dropZoneHover_1rkyw_26", mt = "_dropZoneTitle_1rkyw_63", pt = "_dropZoneSubtitle_1rkyw_68", ft = "_button_1rkyw_72", Et = "_buttonHover_1rkyw_125", Ft = "_explanation_1rkyw_142", bt = "_files_1rkyw_146", gt = "_file_1rkyw_146", _t = "_fileName_1rkyw_195", Lt = "_buttonLabel_1rkyw_203", ht = "_removeButton_1rkyw_207", xt = "_spinner_1rkyw_254", Ct = "_fileError_1rkyw_270", D = {
476
+ dropZone: ut,
477
+ dropZoneHover: dt,
478
+ dropZoneTitle: mt,
479
+ dropZoneSubtitle: pt,
480
+ button: ft,
481
+ buttonHover: Et,
482
+ explanation: Ft,
483
+ files: bt,
484
+ file: gt,
485
+ fileName: _t,
486
+ buttonLabel: Lt,
487
+ removeButton: ht,
488
+ spinner: xt,
486
489
  fileError: Ct
487
- }, xt = ({ content: e, locale: n }) => /* @__PURE__ */ t.createElement(he, {
490
+ }, Nt = ({ content: e, locale: n }) => /* @__PURE__ */ t.createElement(xe, {
488
491
  content: e,
489
492
  locale: n
490
- }), Nt = () => {
493
+ }), vt = () => {
491
494
  var T, I, B, v;
492
- const { t: e } = re(), { disabled: n, readOnly: r } = V(), l = !n && !r, s = me({
493
- globalClasses: ue,
495
+ const { t: e } = re(), { disabled: n, readOnly: r } = V(), l = !n && !r, s = pe({
496
+ globalClasses: de,
494
497
  moduleClasses: {
495
498
  base: D.dropZone,
496
499
  hover: D.dropZoneHover
497
500
  }
498
- }), d = me({
499
- globalClasses: Me,
501
+ }), d = pe({
502
+ globalClasses: Oe,
500
503
  moduleClasses: {
501
504
  base: D.button,
502
505
  hover: D.buttonHover
503
506
  }
504
- }), E = (v = (B = (I = (T = Se().fileUpload) == null ? void 0 : T.elementProps) == null ? void 0 : I.uploadButton) == null ? void 0 : B.elementProps) == null ? void 0 : v.icon, { wix: C, className: o, ...i } = E ?? {}, x = Te(te.FILE_UPLOAD, te.UPLOAD_BUTTON, te.UPLOAD_BUTTON_LABEL), m = H(null), [p, c] = $(!1), [y, N] = $(!1), M = Z(() => {
507
+ }), E = (v = (B = (I = (T = Te().fileUpload) == null ? void 0 : T.elementProps) == null ? void 0 : I.uploadButton) == null ? void 0 : B.elementProps) == null ? void 0 : v.icon, { wix: L, className: o, ...i } = E ?? {}, C = Be(te.FILE_UPLOAD, te.UPLOAD_BUTTON, te.UPLOAD_BUTTON_LABEL), m = H(null), [p, c] = Y(!1), [y, N] = Y(!1), M = Z(() => {
505
508
  var u;
506
509
  c(!0), (u = m.current) == null || u.runAnimationForward();
507
510
  }, []), g = Z(() => {
@@ -509,9 +512,9 @@ const lt = (e) => /* @__PURE__ */ t.createElement("svg", {
509
512
  c(!1), (u = m.current) == null || u.runAnimationBackward();
510
513
  }, []);
511
514
  return /* @__PURE__ */ t.createElement(a, null, /* @__PURE__ */ t.createElement(a.Label, {
512
- className: A(Be, Y.label)
515
+ className: A(Ie, q.label)
513
516
  }, /* @__PURE__ */ t.createElement(a.Label.Required, {
514
- className: A(Ie, Y.requiredMark)
517
+ className: A(we, q.requiredMark)
515
518
  })), /* @__PURE__ */ t.createElement(a.DropZone, {
516
519
  className: ({ isHovered: u, isFocused: w, isDropTarget: S }) => s({
517
520
  isSelected: !1,
@@ -534,37 +537,37 @@ const lt = (e) => /* @__PURE__ */ t.createElement("svg", {
534
537
  onHoverStart: M,
535
538
  onHoverEnd: g,
536
539
  onFocusChange: N
537
- }, i.svg ? /* @__PURE__ */ t.createElement(Le, {
540
+ }, i.svg ? /* @__PURE__ */ t.createElement(he, {
538
541
  ...i,
539
542
  ref: m,
540
- className: A(we, Ae, o)
541
- }) : E ? null : /* @__PURE__ */ t.createElement(lt, null), /* @__PURE__ */ t.createElement(a.DropZone.Button.Text, {
542
- className: A(ce.base, D.buttonLabel, x, {
543
- [ce.hover]: l && (p || y)
543
+ className: A(Ae, Re, o)
544
+ }) : E ? null : /* @__PURE__ */ t.createElement(at, null), /* @__PURE__ */ t.createElement(a.DropZone.Button.Text, {
545
+ className: A(ue.base, D.buttonLabel, C, {
546
+ [ue.hover]: l && (p || y)
544
547
  })
545
548
  }))), /* @__PURE__ */ t.createElement(a.Explanation, {
546
- className: A(Re, Y.description, D.explanation),
549
+ className: A(Ze, q.description, D.explanation),
547
550
  showUploadStatusOnly: !0
548
551
  }), /* @__PURE__ */ t.createElement(a.Files, {
549
552
  className: D.files
550
553
  }, /* @__PURE__ */ t.createElement(a.Files.File, {
551
- className: A(ue.base, D.file)
554
+ className: A(de.base, D.file)
552
555
  }, /* @__PURE__ */ t.createElement(a.Files.File.Name, {
553
556
  className: D.fileName
554
557
  }), /* @__PURE__ */ t.createElement(a.Files.File.Spinner, {
555
558
  className: D.spinner,
556
559
  "aria-label": e("file-upload.file.uploading-spinner.aria-label")
557
- }, /* @__PURE__ */ t.createElement(it, null)), /* @__PURE__ */ t.createElement(a.Files.File.Remove, {
560
+ }, /* @__PURE__ */ t.createElement(ct, null)), /* @__PURE__ */ t.createElement(a.Files.File.Remove, {
558
561
  className: D.removeButton,
559
562
  "aria-label": e("file-upload.delete-file.aria-label")
560
- }, /* @__PURE__ */ t.createElement(st, null)), /* @__PURE__ */ t.createElement(a.Files.File.Error, {
561
- className: A(de, Y.error, D.fileError)
562
- }, /* @__PURE__ */ t.createElement(at, null), /* @__PURE__ */ t.createElement(a.Files.File.Error.Text, null)))), /* @__PURE__ */ t.createElement(a.Description, {
563
- className: A(Ze, Y.description)
564
- }, xt), /* @__PURE__ */ t.createElement(a.Error, {
565
- className: A(de, Y.error)
566
- }, /* @__PURE__ */ t.createElement(Oe, null), /* @__PURE__ */ t.createElement(a.Error.Text, null)));
567
- }, Ut = () => /* @__PURE__ */ t.createElement(Nt, null);
563
+ }, /* @__PURE__ */ t.createElement(it, null)), /* @__PURE__ */ t.createElement(a.Files.File.Error, {
564
+ className: A(me, q.error, D.fileError)
565
+ }, /* @__PURE__ */ t.createElement(st, null), /* @__PURE__ */ t.createElement(a.Files.File.Error.Text, null)))), /* @__PURE__ */ t.createElement(a.Description, {
566
+ className: A(Me, q.description)
567
+ }, Nt), /* @__PURE__ */ t.createElement(a.Error, {
568
+ className: A(me, q.error)
569
+ }, /* @__PURE__ */ t.createElement(Ue, null), /* @__PURE__ */ t.createElement(a.Error.Text, null)));
570
+ }, kt = () => /* @__PURE__ */ t.createElement(vt, null);
568
571
  export {
569
- Ut as FileUploadRAC
572
+ kt as FileUploadRAC
570
573
  };
@@ -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, X as S, S as N, I as x } from "./form-D6g5Lhie.js";
4
+ import { bN as C, bF as I, bK as P, X as S, S as N, I as x } from "./form-CKPfFL3D.js";
5
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-NewCzOB9.js";
8
- import { L as g } from "./field-label-headless-Deo9dGbv.js";
7
+ import { D as v, E as M } from "./field-error-headless-Hpn7Cjyz.js";
8
+ import { L as g } from "./field-label-headless-CZaQ-q22.js";
9
9
  import { s as F } from "./field-rac.module-D0QzJXUv.js";
10
10
  const e = ({ children: r }) => {
11
11
  var p;