@react-spectrum/dropzone 3.0.0-rc.2 → 3.0.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 (197) hide show
  1. package/dist/DropZone.main.js +86 -0
  2. package/dist/DropZone.main.js.map +1 -0
  3. package/dist/DropZone.mjs +81 -0
  4. package/dist/DropZone.module.js +81 -0
  5. package/dist/DropZone.module.js.map +1 -0
  6. package/dist/ar-AE.main.js +6 -0
  7. package/dist/ar-AE.main.js.map +1 -0
  8. package/dist/ar-AE.mjs +8 -0
  9. package/dist/ar-AE.module.js +8 -0
  10. package/dist/ar-AE.module.js.map +1 -0
  11. package/dist/bg-BG.main.js +6 -0
  12. package/dist/bg-BG.main.js.map +1 -0
  13. package/dist/bg-BG.mjs +8 -0
  14. package/dist/bg-BG.module.js +8 -0
  15. package/dist/bg-BG.module.js.map +1 -0
  16. package/dist/cs-CZ.main.js +6 -0
  17. package/dist/cs-CZ.main.js.map +1 -0
  18. package/dist/cs-CZ.mjs +8 -0
  19. package/dist/cs-CZ.module.js +8 -0
  20. package/dist/cs-CZ.module.js.map +1 -0
  21. package/dist/da-DK.main.js +6 -0
  22. package/dist/da-DK.main.js.map +1 -0
  23. package/dist/da-DK.mjs +8 -0
  24. package/dist/da-DK.module.js +8 -0
  25. package/dist/da-DK.module.js.map +1 -0
  26. package/dist/de-DE.main.js +6 -0
  27. package/dist/de-DE.main.js.map +1 -0
  28. package/dist/de-DE.mjs +8 -0
  29. package/dist/de-DE.module.js +8 -0
  30. package/dist/de-DE.module.js.map +1 -0
  31. package/dist/dropzone_vars_css.main.js +38 -0
  32. package/dist/dropzone_vars_css.main.js.map +1 -0
  33. package/dist/dropzone_vars_css.mjs +40 -0
  34. package/dist/dropzone_vars_css.module.js +40 -0
  35. package/dist/dropzone_vars_css.module.js.map +1 -0
  36. package/dist/el-GR.main.js +6 -0
  37. package/dist/el-GR.main.js.map +1 -0
  38. package/dist/el-GR.mjs +8 -0
  39. package/dist/el-GR.module.js +8 -0
  40. package/dist/el-GR.module.js.map +1 -0
  41. package/dist/en-US.main.js +6 -0
  42. package/dist/en-US.main.js.map +1 -0
  43. package/dist/en-US.mjs +8 -0
  44. package/dist/en-US.module.js +8 -0
  45. package/dist/en-US.module.js.map +1 -0
  46. package/dist/es-ES.main.js +6 -0
  47. package/dist/es-ES.main.js.map +1 -0
  48. package/dist/es-ES.mjs +8 -0
  49. package/dist/es-ES.module.js +8 -0
  50. package/dist/es-ES.module.js.map +1 -0
  51. package/dist/et-EE.main.js +6 -0
  52. package/dist/et-EE.main.js.map +1 -0
  53. package/dist/et-EE.mjs +8 -0
  54. package/dist/et-EE.module.js +8 -0
  55. package/dist/et-EE.module.js.map +1 -0
  56. package/dist/fi-FI.main.js +6 -0
  57. package/dist/fi-FI.main.js.map +1 -0
  58. package/dist/fi-FI.mjs +8 -0
  59. package/dist/fi-FI.module.js +8 -0
  60. package/dist/fi-FI.module.js.map +1 -0
  61. package/dist/fr-FR.main.js +6 -0
  62. package/dist/fr-FR.main.js.map +1 -0
  63. package/dist/fr-FR.mjs +8 -0
  64. package/dist/fr-FR.module.js +8 -0
  65. package/dist/fr-FR.module.js.map +1 -0
  66. package/dist/he-IL.main.js +6 -0
  67. package/dist/he-IL.main.js.map +1 -0
  68. package/dist/he-IL.mjs +8 -0
  69. package/dist/he-IL.module.js +8 -0
  70. package/dist/he-IL.module.js.map +1 -0
  71. package/dist/hr-HR.main.js +6 -0
  72. package/dist/hr-HR.main.js.map +1 -0
  73. package/dist/hr-HR.mjs +8 -0
  74. package/dist/hr-HR.module.js +8 -0
  75. package/dist/hr-HR.module.js.map +1 -0
  76. package/dist/hu-HU.main.js +6 -0
  77. package/dist/hu-HU.main.js.map +1 -0
  78. package/dist/hu-HU.mjs +8 -0
  79. package/dist/hu-HU.module.js +8 -0
  80. package/dist/hu-HU.module.js.map +1 -0
  81. package/dist/import.mjs +1 -343
  82. package/dist/intlStrings.main.js +108 -0
  83. package/dist/intlStrings.main.js.map +1 -0
  84. package/dist/intlStrings.mjs +110 -0
  85. package/dist/intlStrings.module.js +110 -0
  86. package/dist/intlStrings.module.js.map +1 -0
  87. package/dist/it-IT.main.js +6 -0
  88. package/dist/it-IT.main.js.map +1 -0
  89. package/dist/it-IT.mjs +8 -0
  90. package/dist/it-IT.module.js +8 -0
  91. package/dist/it-IT.module.js.map +1 -0
  92. package/dist/ja-JP.main.js +6 -0
  93. package/dist/ja-JP.main.js.map +1 -0
  94. package/dist/ja-JP.mjs +8 -0
  95. package/dist/ja-JP.module.js +8 -0
  96. package/dist/ja-JP.module.js.map +1 -0
  97. package/dist/ko-KR.main.js +6 -0
  98. package/dist/ko-KR.main.js.map +1 -0
  99. package/dist/ko-KR.mjs +8 -0
  100. package/dist/ko-KR.module.js +8 -0
  101. package/dist/ko-KR.module.js.map +1 -0
  102. package/dist/lt-LT.main.js +6 -0
  103. package/dist/lt-LT.main.js.map +1 -0
  104. package/dist/lt-LT.mjs +8 -0
  105. package/dist/lt-LT.module.js +8 -0
  106. package/dist/lt-LT.module.js.map +1 -0
  107. package/dist/lv-LV.main.js +6 -0
  108. package/dist/lv-LV.main.js.map +1 -0
  109. package/dist/lv-LV.mjs +8 -0
  110. package/dist/lv-LV.module.js +8 -0
  111. package/dist/lv-LV.module.js.map +1 -0
  112. package/dist/main.js +2 -340
  113. package/dist/main.js.map +1 -1
  114. package/dist/module.js +1 -343
  115. package/dist/module.js.map +1 -1
  116. package/dist/nb-NO.main.js +6 -0
  117. package/dist/nb-NO.main.js.map +1 -0
  118. package/dist/nb-NO.mjs +8 -0
  119. package/dist/nb-NO.module.js +8 -0
  120. package/dist/nb-NO.module.js.map +1 -0
  121. package/dist/nl-NL.main.js +6 -0
  122. package/dist/nl-NL.main.js.map +1 -0
  123. package/dist/nl-NL.mjs +8 -0
  124. package/dist/nl-NL.module.js +8 -0
  125. package/dist/nl-NL.module.js.map +1 -0
  126. package/dist/pl-PL.main.js +6 -0
  127. package/dist/pl-PL.main.js.map +1 -0
  128. package/dist/pl-PL.mjs +8 -0
  129. package/dist/pl-PL.module.js +8 -0
  130. package/dist/pl-PL.module.js.map +1 -0
  131. package/dist/pt-BR.main.js +6 -0
  132. package/dist/pt-BR.main.js.map +1 -0
  133. package/dist/pt-BR.mjs +8 -0
  134. package/dist/pt-BR.module.js +8 -0
  135. package/dist/pt-BR.module.js.map +1 -0
  136. package/dist/pt-PT.main.js +6 -0
  137. package/dist/pt-PT.main.js.map +1 -0
  138. package/dist/pt-PT.mjs +8 -0
  139. package/dist/pt-PT.module.js +8 -0
  140. package/dist/pt-PT.module.js.map +1 -0
  141. package/dist/ro-RO.main.js +6 -0
  142. package/dist/ro-RO.main.js.map +1 -0
  143. package/dist/ro-RO.mjs +8 -0
  144. package/dist/ro-RO.module.js +8 -0
  145. package/dist/ro-RO.module.js.map +1 -0
  146. package/dist/ru-RU.main.js +6 -0
  147. package/dist/ru-RU.main.js.map +1 -0
  148. package/dist/ru-RU.mjs +8 -0
  149. package/dist/ru-RU.module.js +8 -0
  150. package/dist/ru-RU.module.js.map +1 -0
  151. package/dist/sk-SK.main.js +6 -0
  152. package/dist/sk-SK.main.js.map +1 -0
  153. package/dist/sk-SK.mjs +8 -0
  154. package/dist/sk-SK.module.js +8 -0
  155. package/dist/sk-SK.module.js.map +1 -0
  156. package/dist/sl-SI.main.js +6 -0
  157. package/dist/sl-SI.main.js.map +1 -0
  158. package/dist/sl-SI.mjs +8 -0
  159. package/dist/sl-SI.module.js +8 -0
  160. package/dist/sl-SI.module.js.map +1 -0
  161. package/dist/sr-SP.main.js +6 -0
  162. package/dist/sr-SP.main.js.map +1 -0
  163. package/dist/sr-SP.mjs +8 -0
  164. package/dist/sr-SP.module.js +8 -0
  165. package/dist/sr-SP.module.js.map +1 -0
  166. package/dist/sv-SE.main.js +6 -0
  167. package/dist/sv-SE.main.js.map +1 -0
  168. package/dist/sv-SE.mjs +8 -0
  169. package/dist/sv-SE.module.js +8 -0
  170. package/dist/sv-SE.module.js.map +1 -0
  171. package/dist/tr-TR.main.js +6 -0
  172. package/dist/tr-TR.main.js.map +1 -0
  173. package/dist/tr-TR.mjs +8 -0
  174. package/dist/tr-TR.module.js +8 -0
  175. package/dist/tr-TR.module.js.map +1 -0
  176. package/dist/types.d.ts +3 -3
  177. package/dist/types.d.ts.map +1 -1
  178. package/dist/uk-UA.main.js +6 -0
  179. package/dist/uk-UA.main.js.map +1 -0
  180. package/dist/uk-UA.mjs +8 -0
  181. package/dist/uk-UA.module.js +8 -0
  182. package/dist/uk-UA.module.js.map +1 -0
  183. package/dist/vars.c0db847d.css +169 -0
  184. package/dist/vars.c0db847d.css.map +1 -0
  185. package/dist/zh-CN.main.js +6 -0
  186. package/dist/zh-CN.main.js.map +1 -0
  187. package/dist/zh-CN.mjs +8 -0
  188. package/dist/zh-CN.module.js +8 -0
  189. package/dist/zh-CN.module.js.map +1 -0
  190. package/dist/zh-TW.main.js +6 -0
  191. package/dist/zh-TW.main.js.map +1 -0
  192. package/dist/zh-TW.mjs +8 -0
  193. package/dist/zh-TW.module.js +8 -0
  194. package/dist/zh-TW.module.js.map +1 -0
  195. package/package.json +8 -8
  196. package/src/DropZone.tsx +42 -35
  197. package/dist/main.css +0 -1
@@ -0,0 +1,6 @@
1
+ module.exports = {
2
+ "replaceMessage": `Presu\u{148}te s\xfabor, ktor\xfd chcete nahradi\u{165}`
3
+ };
4
+
5
+
6
+ //# sourceMappingURL=sk-SK.main.js.map
@@ -0,0 +1 @@
1
+ {"mappings":"AAAA,iBAAiB;IAAG,kBAAkB,CAAC,uDAAqC,CAAC;AAC7E","sources":["packages/@react-spectrum/dropzone/intl/sk-SK.json"],"sourcesContent":["{\n \"replaceMessage\": \"Presuňte súbor, ktorý chcete nahradiť\"\n}\n"],"names":[],"version":3,"file":"sk-SK.main.js.map"}
package/dist/sk-SK.mjs ADDED
@@ -0,0 +1,8 @@
1
+ var $e689339abe8753c7$exports = {};
2
+ $e689339abe8753c7$exports = {
3
+ "replaceMessage": `Presu\u{148}te s\xfabor, ktor\xfd chcete nahradi\u{165}`
4
+ };
5
+
6
+
7
+ export {$e689339abe8753c7$exports as default};
8
+ //# sourceMappingURL=sk-SK.mjs.map
@@ -0,0 +1,8 @@
1
+ var $e689339abe8753c7$exports = {};
2
+ $e689339abe8753c7$exports = {
3
+ "replaceMessage": `Presu\u{148}te s\xfabor, ktor\xfd chcete nahradi\u{165}`
4
+ };
5
+
6
+
7
+ export {$e689339abe8753c7$exports as default};
8
+ //# sourceMappingURL=sk-SK.module.js.map
@@ -0,0 +1 @@
1
+ {"mappings":";AAAA,4BAAiB;IAAG,kBAAkB,CAAC,uDAAqC,CAAC;AAC7E","sources":["packages/@react-spectrum/dropzone/intl/sk-SK.json"],"sourcesContent":["{\n \"replaceMessage\": \"Presuňte súbor, ktorý chcete nahradiť\"\n}\n"],"names":[],"version":3,"file":"sk-SK.module.js.map"}
@@ -0,0 +1,6 @@
1
+ module.exports = {
2
+ "replaceMessage": `Spustite datoteko za zamenjavo`
3
+ };
4
+
5
+
6
+ //# sourceMappingURL=sl-SI.main.js.map
@@ -0,0 +1 @@
1
+ {"mappings":"AAAA,iBAAiB;IAAG,kBAAkB,CAAC,8BAA8B,CAAC;AACtE","sources":["packages/@react-spectrum/dropzone/intl/sl-SI.json"],"sourcesContent":["{\n \"replaceMessage\": \"Spustite datoteko za zamenjavo\"\n}\n"],"names":[],"version":3,"file":"sl-SI.main.js.map"}
package/dist/sl-SI.mjs ADDED
@@ -0,0 +1,8 @@
1
+ var $7bfc0ba33fedfe25$exports = {};
2
+ $7bfc0ba33fedfe25$exports = {
3
+ "replaceMessage": `Spustite datoteko za zamenjavo`
4
+ };
5
+
6
+
7
+ export {$7bfc0ba33fedfe25$exports as default};
8
+ //# sourceMappingURL=sl-SI.mjs.map
@@ -0,0 +1,8 @@
1
+ var $7bfc0ba33fedfe25$exports = {};
2
+ $7bfc0ba33fedfe25$exports = {
3
+ "replaceMessage": `Spustite datoteko za zamenjavo`
4
+ };
5
+
6
+
7
+ export {$7bfc0ba33fedfe25$exports as default};
8
+ //# sourceMappingURL=sl-SI.module.js.map
@@ -0,0 +1 @@
1
+ {"mappings":";AAAA,4BAAiB;IAAG,kBAAkB,CAAC,8BAA8B,CAAC;AACtE","sources":["packages/@react-spectrum/dropzone/intl/sl-SI.json"],"sourcesContent":["{\n \"replaceMessage\": \"Spustite datoteko za zamenjavo\"\n}\n"],"names":[],"version":3,"file":"sl-SI.module.js.map"}
@@ -0,0 +1,6 @@
1
+ module.exports = {
2
+ "replaceMessage": `Otpustite datoteku radi zamene`
3
+ };
4
+
5
+
6
+ //# sourceMappingURL=sr-SP.main.js.map
@@ -0,0 +1 @@
1
+ {"mappings":"AAAA,iBAAiB;IAAG,kBAAkB,CAAC,8BAA8B,CAAC;AACtE","sources":["packages/@react-spectrum/dropzone/intl/sr-SP.json"],"sourcesContent":["{\n \"replaceMessage\": \"Otpustite datoteku radi zamene\"\n}\n"],"names":[],"version":3,"file":"sr-SP.main.js.map"}
package/dist/sr-SP.mjs ADDED
@@ -0,0 +1,8 @@
1
+ var $0bb12c08fb7d59be$exports = {};
2
+ $0bb12c08fb7d59be$exports = {
3
+ "replaceMessage": `Otpustite datoteku radi zamene`
4
+ };
5
+
6
+
7
+ export {$0bb12c08fb7d59be$exports as default};
8
+ //# sourceMappingURL=sr-SP.mjs.map
@@ -0,0 +1,8 @@
1
+ var $0bb12c08fb7d59be$exports = {};
2
+ $0bb12c08fb7d59be$exports = {
3
+ "replaceMessage": `Otpustite datoteku radi zamene`
4
+ };
5
+
6
+
7
+ export {$0bb12c08fb7d59be$exports as default};
8
+ //# sourceMappingURL=sr-SP.module.js.map
@@ -0,0 +1 @@
1
+ {"mappings":";AAAA,4BAAiB;IAAG,kBAAkB,CAAC,8BAA8B,CAAC;AACtE","sources":["packages/@react-spectrum/dropzone/intl/sr-SP.json"],"sourcesContent":["{\n \"replaceMessage\": \"Otpustite datoteku radi zamene\"\n}\n"],"names":[],"version":3,"file":"sr-SP.module.js.map"}
@@ -0,0 +1,6 @@
1
+ module.exports = {
2
+ "replaceMessage": `Sl\xe4pp filen f\xf6r att ers\xe4tta`
3
+ };
4
+
5
+
6
+ //# sourceMappingURL=sv-SE.main.js.map
@@ -0,0 +1 @@
1
+ {"mappings":"AAAA,iBAAiB;IAAG,kBAAkB,CAAC,oCAA2B,CAAC;AACnE","sources":["packages/@react-spectrum/dropzone/intl/sv-SE.json"],"sourcesContent":["{\n \"replaceMessage\": \"Släpp filen för att ersätta\"\n}\n"],"names":[],"version":3,"file":"sv-SE.main.js.map"}
package/dist/sv-SE.mjs ADDED
@@ -0,0 +1,8 @@
1
+ var $b8c50d0f68c95c3d$exports = {};
2
+ $b8c50d0f68c95c3d$exports = {
3
+ "replaceMessage": `Sl\xe4pp filen f\xf6r att ers\xe4tta`
4
+ };
5
+
6
+
7
+ export {$b8c50d0f68c95c3d$exports as default};
8
+ //# sourceMappingURL=sv-SE.mjs.map
@@ -0,0 +1,8 @@
1
+ var $b8c50d0f68c95c3d$exports = {};
2
+ $b8c50d0f68c95c3d$exports = {
3
+ "replaceMessage": `Sl\xe4pp filen f\xf6r att ers\xe4tta`
4
+ };
5
+
6
+
7
+ export {$b8c50d0f68c95c3d$exports as default};
8
+ //# sourceMappingURL=sv-SE.module.js.map
@@ -0,0 +1 @@
1
+ {"mappings":";AAAA,4BAAiB;IAAG,kBAAkB,CAAC,oCAA2B,CAAC;AACnE","sources":["packages/@react-spectrum/dropzone/intl/sv-SE.json"],"sourcesContent":["{\n \"replaceMessage\": \"Släpp filen för att ersätta\"\n}\n"],"names":[],"version":3,"file":"sv-SE.module.js.map"}
@@ -0,0 +1,6 @@
1
+ module.exports = {
2
+ "replaceMessage": `De\u{11F}i\u{15F}tirmek i\xe7in dosyay\u{131} b\u{131}rak\u{131}n`
3
+ };
4
+
5
+
6
+ //# sourceMappingURL=tr-TR.main.js.map
@@ -0,0 +1 @@
1
+ {"mappings":"AAAA,iBAAiB;IAAG,kBAAkB,CAAC,iEAAgC,CAAC;AACxE","sources":["packages/@react-spectrum/dropzone/intl/tr-TR.json"],"sourcesContent":["{\n \"replaceMessage\": \"Değiştirmek için dosyayı bırakın\"\n}\n"],"names":[],"version":3,"file":"tr-TR.main.js.map"}
package/dist/tr-TR.mjs ADDED
@@ -0,0 +1,8 @@
1
+ var $711c9bc16244510d$exports = {};
2
+ $711c9bc16244510d$exports = {
3
+ "replaceMessage": `De\u{11F}i\u{15F}tirmek i\xe7in dosyay\u{131} b\u{131}rak\u{131}n`
4
+ };
5
+
6
+
7
+ export {$711c9bc16244510d$exports as default};
8
+ //# sourceMappingURL=tr-TR.mjs.map
@@ -0,0 +1,8 @@
1
+ var $711c9bc16244510d$exports = {};
2
+ $711c9bc16244510d$exports = {
3
+ "replaceMessage": `De\u{11F}i\u{15F}tirmek i\xe7in dosyay\u{131} b\u{131}rak\u{131}n`
4
+ };
5
+
6
+
7
+ export {$711c9bc16244510d$exports as default};
8
+ //# sourceMappingURL=tr-TR.module.js.map
@@ -0,0 +1 @@
1
+ {"mappings":";AAAA,4BAAiB;IAAG,kBAAkB,CAAC,iEAAgC,CAAC;AACxE","sources":["packages/@react-spectrum/dropzone/intl/tr-TR.json"],"sourcesContent":["{\n \"replaceMessage\": \"Değiştirmek için dosyayı bırakın\"\n}\n"],"names":[],"version":3,"file":"tr-TR.module.js.map"}
package/dist/types.d.ts CHANGED
@@ -1,7 +1,7 @@
1
- import { AriaLabelingProps, DOMProps, StyleProps } from "@react-types/shared";
1
+ import { AriaLabelingProps, DOMProps, StyleProps, DOMRefValue } from "@react-types/shared";
2
2
  import { DropZoneProps } from "react-aria-components";
3
3
  import React, { ReactNode } from "react";
4
- export interface SpectrumDropZoneProps extends Omit<DropZoneProps, 'onHoverStart' | 'onHoverChange' | 'onHoverEnd'>, DOMProps, StyleProps, AriaLabelingProps {
4
+ export interface SpectrumDropZoneProps extends Omit<DropZoneProps, 'onHoverStart' | 'onHoverChange' | 'onHoverEnd' | 'isDisabled' | 'className' | 'style'>, DOMProps, StyleProps, AriaLabelingProps {
5
5
  /** The content to display in the drop zone. */
6
6
  children: ReactNode;
7
7
  /** Whether the drop zone has been filled. */
@@ -12,6 +12,6 @@ export interface SpectrumDropZoneProps extends Omit<DropZoneProps, 'onHoverStart
12
12
  /**
13
13
  * A drop zone is an area into which one or multiple objects can be dragged and dropped.
14
14
  */
15
- export let DropZone: React.ForwardRefExoticComponent<SpectrumDropZoneProps & React.RefAttributes<import("@react-types/shared").DOMRefValue<HTMLDivElement>>>;
15
+ export let DropZone: React.ForwardRefExoticComponent<SpectrumDropZoneProps & React.RefAttributes<DOMRefValue<HTMLDivElement>>>;
16
16
 
17
17
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"mappings":";;;AAsBA,sCAAuC,SAAQ,IAAI,CAAC,aAAa,EAAE,cAAc,GAAG,eAAe,GAAG,YAAY,CAAC,EAAE,QAAQ,EAAE,UAAU,EAAE,iBAAiB;IAC1J,+CAA+C;IAC/C,QAAQ,EAAE,SAAS,CAAC;IACpB,6CAA6C;IAC7C,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,oGAAoG;IACpG,cAAc,CAAC,EAAE,MAAM,CAAA;CACxB;AAsDD;;GAEG;AACH,OAAA,IAAI,iJAAsC,CAAC","sources":["packages/@react-spectrum/dropzone/src/packages/@react-spectrum/dropzone/src/DropZone.tsx","packages/@react-spectrum/dropzone/src/packages/@react-spectrum/dropzone/src/index.ts","packages/@react-spectrum/dropzone/src/index.ts"],"sourcesContent":[null,null,"/*\n * Copyright 2023 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\n/// <reference types=\"css-module-types\" />\n\nexport {DropZone} from './DropZone';\nexport type {SpectrumDropZoneProps} from './DropZone';\n"],"names":[],"version":3,"file":"types.d.ts.map"}
1
+ {"mappings":";;;AAsBA,sCAAuC,SAAQ,IAAI,CAAC,aAAa,EAAE,cAAc,GAAG,eAAe,GAAG,YAAY,GAAG,YAAY,GAAG,WAAW,GAAG,OAAO,CAAC,EAAE,QAAQ,EAAE,UAAU,EAAE,iBAAiB;IACjM,+CAA+C;IAC/C,QAAQ,EAAE,SAAS,CAAC;IACpB,6CAA6C;IAC7C,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,oGAAoG;IACpG,cAAc,CAAC,EAAE,MAAM,CAAA;CACxB;AA6DD;;GAEG;AACH,OAAA,IAAI,mHAAsC,CAAC","sources":["packages/@react-spectrum/dropzone/src/packages/@react-spectrum/dropzone/src/DropZone.tsx","packages/@react-spectrum/dropzone/src/packages/@react-spectrum/dropzone/src/index.ts","packages/@react-spectrum/dropzone/src/index.ts"],"sourcesContent":[null,null,"/*\n * Copyright 2023 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\n/// <reference types=\"css-module-types\" />\n\nexport {DropZone} from './DropZone';\nexport type {SpectrumDropZoneProps} from './DropZone';\n"],"names":[],"version":3,"file":"types.d.ts.map"}
@@ -0,0 +1,6 @@
1
+ module.exports = {
2
+ "replaceMessage": `\u{41F}\u{435}\u{440}\u{435}\u{442}\u{44F}\u{433}\u{43D}\u{456}\u{442}\u{44C} \u{444}\u{430}\u{439}\u{43B} \u{434}\u{43B}\u{44F} \u{437}\u{430}\u{43C}\u{456}\u{43D}\u{438}`
3
+ };
4
+
5
+
6
+ //# sourceMappingURL=uk-UA.main.js.map
@@ -0,0 +1 @@
1
+ {"mappings":"AAAA,iBAAiB;IAAG,kBAAkB,CAAC,2KAA2B,CAAC;AACnE","sources":["packages/@react-spectrum/dropzone/intl/uk-UA.json"],"sourcesContent":["{\n \"replaceMessage\": \"Перетягніть файл для заміни\"\n}\n"],"names":[],"version":3,"file":"uk-UA.main.js.map"}
package/dist/uk-UA.mjs ADDED
@@ -0,0 +1,8 @@
1
+ var $6229f5290723ff0e$exports = {};
2
+ $6229f5290723ff0e$exports = {
3
+ "replaceMessage": `\u{41F}\u{435}\u{440}\u{435}\u{442}\u{44F}\u{433}\u{43D}\u{456}\u{442}\u{44C} \u{444}\u{430}\u{439}\u{43B} \u{434}\u{43B}\u{44F} \u{437}\u{430}\u{43C}\u{456}\u{43D}\u{438}`
4
+ };
5
+
6
+
7
+ export {$6229f5290723ff0e$exports as default};
8
+ //# sourceMappingURL=uk-UA.mjs.map
@@ -0,0 +1,8 @@
1
+ var $6229f5290723ff0e$exports = {};
2
+ $6229f5290723ff0e$exports = {
3
+ "replaceMessage": `\u{41F}\u{435}\u{440}\u{435}\u{442}\u{44F}\u{433}\u{43D}\u{456}\u{442}\u{44C} \u{444}\u{430}\u{439}\u{43B} \u{434}\u{43B}\u{44F} \u{437}\u{430}\u{43C}\u{456}\u{43D}\u{438}`
4
+ };
5
+
6
+
7
+ export {$6229f5290723ff0e$exports as default};
8
+ //# sourceMappingURL=uk-UA.module.js.map
@@ -0,0 +1 @@
1
+ {"mappings":";AAAA,4BAAiB;IAAG,kBAAkB,CAAC,2KAA2B,CAAC;AACnE","sources":["packages/@react-spectrum/dropzone/intl/uk-UA.json"],"sourcesContent":["{\n \"replaceMessage\": \"Перетягніть файл для заміни\"\n}\n"],"names":[],"version":3,"file":"uk-UA.module.js.map"}
@@ -0,0 +1,169 @@
1
+ .b5Gu6W_i18nFontFamily {
2
+ font-synthesis: weight;
3
+ font-family: adobe-clean, Source Sans Pro, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Ubuntu, Trebuchet MS, Lucida Grande, sans-serif;
4
+ }
5
+
6
+ .b5Gu6W_i18nFontFamily:lang(ar) {
7
+ font-family: myriad-arabic, adobe-clean, Source Sans Pro, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Ubuntu, Trebuchet MS, Lucida Grande, sans-serif;
8
+ }
9
+
10
+ .b5Gu6W_i18nFontFamily:lang(he) {
11
+ font-family: myriad-hebrew, adobe-clean, Source Sans Pro, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Ubuntu, Trebuchet MS, Lucida Grande, sans-serif;
12
+ }
13
+
14
+ .b5Gu6W_i18nFontFamily:lang(zh) {
15
+ font-family: adobe-clean-han-traditional, source-han-traditional, MingLiu, Heiti TC Light, sans-serif;
16
+ }
17
+
18
+ .b5Gu6W_i18nFontFamily:lang(zh-Hans) {
19
+ font-family: adobe-clean-han-simplified-c, source-han-simplified-c, SimSun, Heiti SC Light, sans-serif;
20
+ }
21
+
22
+ .b5Gu6W_i18nFontFamily:lang(zh-Hant) {
23
+ font-family: adobe-clean-han-traditional, source-han-traditional, MingLiu, Microsoft JhengHei UI, Microsoft JhengHei, Heiti TC Light, sans-serif;
24
+ }
25
+
26
+ .b5Gu6W_i18nFontFamily:lang(zh-SG), .b5Gu6W_i18nFontFamily:lang(zh-CN) {
27
+ font-family: adobe-clean-han-simplified-c, source-han-simplified-c, SimSun, Heiti SC Light, sans-serif;
28
+ }
29
+
30
+ .b5Gu6W_i18nFontFamily:lang(ko) {
31
+ font-family: adobe-clean-han-korean, source-han-korean, Malgun Gothic, Apple Gothic, sans-serif;
32
+ }
33
+
34
+ .b5Gu6W_i18nFontFamily:lang(ja) {
35
+ font-family: adobe-clean-han-japanese, Hiragino Kaku Gothic ProN, ヒラギノ角ゴ ProN W3, Osaka, YuGothic, Yu Gothic, メイリオ, Meiryo, MS Pゴシック, MS PGothic, sans-serif;
36
+ }
37
+
38
+ .b5Gu6W_spectrum-FocusRing-ring {
39
+ --spectrum-focus-ring-border-radius: var(--spectrum-textfield-border-radius, var(--spectrum-alias-border-radius-regular));
40
+ --spectrum-focus-ring-gap: var(--spectrum-alias-input-focusring-gap);
41
+ --spectrum-focus-ring-size: var(--spectrum-alias-input-focusring-size);
42
+ --spectrum-focus-ring-border-size: 0px;
43
+ --spectrum-focus-ring-color: var(--spectrum-high-contrast-focus-ring-color, var(--spectrum-alias-focus-ring-color, var(--spectrum-alias-focus-color)));
44
+ }
45
+
46
+ .b5Gu6W_spectrum-FocusRing-ring:after {
47
+ border-radius: calc(var(--spectrum-focus-ring-border-radius) + var(--spectrum-focus-ring-gap));
48
+ content: "";
49
+ margin: calc(-1 * var(--spectrum-focus-ring-border-size));
50
+ pointer-events: none;
51
+ transition: box-shadow var(--spectrum-global-animation-duration-100, .13s) ease-out, margin var(--spectrum-global-animation-duration-100, .13s) ease-out;
52
+ display: block;
53
+ position: absolute;
54
+ inset: 0;
55
+ }
56
+
57
+ .b5Gu6W_spectrum-FocusRing.b5Gu6W_focus-ring:after {
58
+ margin: calc(var(--spectrum-focus-ring-gap) * -1 - var(--spectrum-focus-ring-border-size));
59
+ box-shadow: 0 0 0 var(--spectrum-focus-ring-size) var(--spectrum-focus-ring-color);
60
+ }
61
+
62
+ .b5Gu6W_spectrum-FocusRing--quiet:after {
63
+ border-radius: 0;
64
+ }
65
+
66
+ .b5Gu6W_spectrum-FocusRing--quiet.b5Gu6W_focus-ring:after {
67
+ margin: 0 0 calc(var(--spectrum-focus-ring-gap) * -1 - var(--spectrum-focus-ring-border-size)) 0;
68
+ box-shadow: 0 var(--spectrum-focus-ring-size) 0 var(--spectrum-focus-ring-color);
69
+ }
70
+
71
+ @media (forced-colors: active) {
72
+ .b5Gu6W_spectrum-FocusRing, .b5Gu6W_spectrum-FocusRing-ring, .b5Gu6W_spectrum-FocusRing--quiet {
73
+ --spectrum-high-contrast-focus-ring-color: Highlight;
74
+ }
75
+
76
+ :is(.b5Gu6W_spectrum-FocusRing, .b5Gu6W_spectrum-FocusRing-ring, .b5Gu6W_spectrum-FocusRing--quiet):after {
77
+ forced-color-adjust: none;
78
+ }
79
+ }
80
+
81
+ .b5Gu6W_spectrum-Dropzone {
82
+ text-align: center;
83
+ border-width: var(--spectrum-dropzone-border-width, var(--spectrum-alias-border-size-thick));
84
+ border-radius: var(--spectrum-dropzone-border-radius, var(--spectrum-alias-border-radius-regular));
85
+ padding: var(--spectrum-dropzone-padding, var(--spectrum-global-dimension-size-900));
86
+ border-style: dashed;
87
+ position: relative;
88
+ }
89
+
90
+ .b5Gu6W_spectrum-Dropzone .b5Gu6W_spectrum-Dropzone-backdrop {
91
+ content: "";
92
+ display: none;
93
+ position: absolute;
94
+ inset: 0;
95
+ }
96
+
97
+ .b5Gu6W_spectrum-Dropzone:focus {
98
+ border-style: dashed;
99
+ outline: 0;
100
+ }
101
+
102
+ .b5Gu6W_spectrum-Dropzone:focus.b5Gu6W_focus-ring {
103
+ border-style: solid;
104
+ }
105
+
106
+ .b5Gu6W_spectrum-Dropzone[data-drop-target].b5Gu6W_spectrum-Dropzone--filled .b5Gu6W_spectrum-Dropzone-banner, .b5Gu6W_spectrum-Dropzone[data-drop-target] .b5Gu6W_spectrum-Dropzone-backdrop {
107
+ display: block;
108
+ }
109
+
110
+ .b5Gu6W_spectrum-Dropzone-banner {
111
+ color: var(--spectrum-gray-50);
112
+ background-color: var(--spectrum-global-color-blue-500);
113
+ padding: var(--spectrum-global-dimension-size-115) var(--spectrum-global-dimension-size-150);
114
+ border-radius: var(--spectrum-dropzone-border-radius, var(--spectrum-alias-border-radius-regular));
115
+ border: 1px solid var(--spectrum-global-color-blue-500);
116
+ display: none;
117
+ position: absolute;
118
+ top: 50%;
119
+ left: 50%;
120
+ transform: translate(-50%, -50%);
121
+ }
122
+
123
+ @media (forced-colors: active) {
124
+ .b5Gu6W_spectrum-Dropzone[data-drop-target] .b5Gu6W_spectrum-Dropzone-backdrop {
125
+ display: none;
126
+ }
127
+
128
+ .b5Gu6W_spectrum-Dropzone[data-drop-target].b5Gu6W_spectrum-Dropzone--filled .b5Gu6W_spectrum-Dropzone-backdrop {
129
+ display: block;
130
+ }
131
+ }
132
+
133
+ .b5Gu6W_spectrum-Dropzone {
134
+ --spectrum-dropzone-illustratedmessage-illustration-color-key-focus: var(--spectrum-global-color-blue-500);
135
+ border-color: var(--spectrum-dropzone-border-color, var(--spectrum-global-color-gray-300));
136
+ }
137
+
138
+ .b5Gu6W_spectrum-Dropzone[data-focus-visible] {
139
+ border-color: var(--spectrum-dropzone-border-color-selected-hover, var(--spectrum-global-color-blue-400));
140
+ }
141
+
142
+ .b5Gu6W_spectrum-Dropzone[data-drop-target] {
143
+ border-style: solid;
144
+ border-color: var(--spectrum-dropzone-border-color-selected-hover, var(--spectrum-global-color-blue-400));
145
+ background-color: var(--spectrum-dropzone-background-color-selected-hover, var(--spectrum-alias-highlight-selected));
146
+ }
147
+
148
+ .b5Gu6W_spectrum-Dropzone[data-drop-target] .b5Gu6W_spectrum-Dropzone-illustratedMessage svg {
149
+ color: var(--spectrum-dropzone-illustratedmessage-illustration-color-key-focus);
150
+ }
151
+
152
+ .b5Gu6W_spectrum-Dropzone[data-drop-target].b5Gu6W_focus-ring {
153
+ border-color: var(--spectrum-dropzone-border-color-selected-hover, var(--spectrum-global-color-blue-400));
154
+ }
155
+
156
+ .b5Gu6W_spectrum-Dropzone[data-drop-target] .b5Gu6W_spectrum-Dropzone-backdrop {
157
+ background-color: var(--spectrum-dropzone-background-color-selected-hover, var(--spectrum-alias-highlight-selected));
158
+ }
159
+
160
+ @media (forced-colors: active) {
161
+ .b5Gu6W_spectrum-Dropzone {
162
+ --spectrum-dropzone-border-color: CanvasText;
163
+ --spectrum-dropzone-border-color-selected-hover: Highlight;
164
+ --spectrum-dropzone-background-color-selected-hover: Canvas;
165
+ --spectrum-dropzone-banner-border-color: CanvasText;
166
+ --spectrum-dropzone-illustratedmessage-illustration-color-key-focus: Highlight;
167
+ }
168
+ }
169
+ /*# sourceMappingURL=vars.c0db847d.css.map */
@@ -0,0 +1 @@
1
+ {"mappings":"AA4DA;;;;;AAIE;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAQA;;;;AAIA;;;;AAKF;;;;;;;;AAOE;;;;;;;;;;;AAqBE;;;;;AAQF;;;;AAKE;;;;;AAOJ;EACE;;;;EAIE;;;;;AAMJ;;;;;;;;;AAQE;;;;;;;AAUA;;;;;AAGE;;;;AAMA;;;;AAYJ;;;;;;;;;;;;;AAaA;EAGM;;;;EAKA;;;;;AAmBN;;;;;AAOE;;;;AAIA;;;;;;AAMI;;;;AAKF;;;;AAMA;;;;AAMJ;EACE","sources":["packages/@adobe/spectrum-css-temp/components/dropzone/vars.css"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\n@import './index.css';\n@import './skin.css';\n"],"names":[],"version":3,"file":"vars.c0db847d.css.map"}
@@ -0,0 +1,6 @@
1
+ module.exports = {
2
+ "replaceMessage": `\u{5220}\u{9664}\u{8981}\u{66FF}\u{6362}\u{7684}\u{6587}\u{4EF6}`
3
+ };
4
+
5
+
6
+ //# sourceMappingURL=zh-CN.main.js.map
@@ -0,0 +1 @@
1
+ {"mappings":"AAAA,iBAAiB;IAAG,kBAAkB,CAAC,gEAAQ,CAAC;AAChD","sources":["packages/@react-spectrum/dropzone/intl/zh-CN.json"],"sourcesContent":["{\n \"replaceMessage\": \"删除要替换的文件\"\n}\n"],"names":[],"version":3,"file":"zh-CN.main.js.map"}
package/dist/zh-CN.mjs ADDED
@@ -0,0 +1,8 @@
1
+ var $1ba57165d5de0b25$exports = {};
2
+ $1ba57165d5de0b25$exports = {
3
+ "replaceMessage": `\u{5220}\u{9664}\u{8981}\u{66FF}\u{6362}\u{7684}\u{6587}\u{4EF6}`
4
+ };
5
+
6
+
7
+ export {$1ba57165d5de0b25$exports as default};
8
+ //# sourceMappingURL=zh-CN.mjs.map
@@ -0,0 +1,8 @@
1
+ var $1ba57165d5de0b25$exports = {};
2
+ $1ba57165d5de0b25$exports = {
3
+ "replaceMessage": `\u{5220}\u{9664}\u{8981}\u{66FF}\u{6362}\u{7684}\u{6587}\u{4EF6}`
4
+ };
5
+
6
+
7
+ export {$1ba57165d5de0b25$exports as default};
8
+ //# sourceMappingURL=zh-CN.module.js.map
@@ -0,0 +1 @@
1
+ {"mappings":";AAAA,4BAAiB;IAAG,kBAAkB,CAAC,gEAAQ,CAAC;AAChD","sources":["packages/@react-spectrum/dropzone/intl/zh-CN.json"],"sourcesContent":["{\n \"replaceMessage\": \"删除要替换的文件\"\n}\n"],"names":[],"version":3,"file":"zh-CN.module.js.map"}
@@ -0,0 +1,6 @@
1
+ module.exports = {
2
+ "replaceMessage": `\u{653E}\u{7F6E}\u{8981}\u{53D6}\u{4EE3}\u{7684}\u{6A94}\u{6848}`
3
+ };
4
+
5
+
6
+ //# sourceMappingURL=zh-TW.main.js.map
@@ -0,0 +1 @@
1
+ {"mappings":"AAAA,iBAAiB;IAAG,kBAAkB,CAAC,gEAAQ,CAAC;AAChD","sources":["packages/@react-spectrum/dropzone/intl/zh-TW.json"],"sourcesContent":["{\n \"replaceMessage\": \"放置要取代的檔案\"\n}\n"],"names":[],"version":3,"file":"zh-TW.main.js.map"}
package/dist/zh-TW.mjs ADDED
@@ -0,0 +1,8 @@
1
+ var $586e20fd0bf5d7aa$exports = {};
2
+ $586e20fd0bf5d7aa$exports = {
3
+ "replaceMessage": `\u{653E}\u{7F6E}\u{8981}\u{53D6}\u{4EE3}\u{7684}\u{6A94}\u{6848}`
4
+ };
5
+
6
+
7
+ export {$586e20fd0bf5d7aa$exports as default};
8
+ //# sourceMappingURL=zh-TW.mjs.map
@@ -0,0 +1,8 @@
1
+ var $586e20fd0bf5d7aa$exports = {};
2
+ $586e20fd0bf5d7aa$exports = {
3
+ "replaceMessage": `\u{653E}\u{7F6E}\u{8981}\u{53D6}\u{4EE3}\u{7684}\u{6A94}\u{6848}`
4
+ };
5
+
6
+
7
+ export {$586e20fd0bf5d7aa$exports as default};
8
+ //# sourceMappingURL=zh-TW.module.js.map
@@ -0,0 +1 @@
1
+ {"mappings":";AAAA,4BAAiB;IAAG,kBAAkB,CAAC,gEAAQ,CAAC;AAChD","sources":["packages/@react-spectrum/dropzone/intl/zh-TW.json"],"sourcesContent":["{\n \"replaceMessage\": \"放置要取代的檔案\"\n}\n"],"names":[],"version":3,"file":"zh-TW.module.js.map"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-spectrum/dropzone",
3
- "version": "3.0.0-rc.2",
3
+ "version": "3.0.0",
4
4
  "description": "Spectrum UI components in React",
5
5
  "license": "Apache-2.0",
6
6
  "main": "dist/main.js",
@@ -36,16 +36,16 @@
36
36
  "url": "https://github.com/adobe/react-spectrum"
37
37
  },
38
38
  "dependencies": {
39
- "@react-aria/i18n": "^3.10.1",
40
- "@react-aria/utils": "^3.23.1",
41
- "@react-spectrum/utils": "^3.11.4",
42
- "@react-types/shared": "^3.22.0",
39
+ "@react-aria/i18n": "^3.11.0",
40
+ "@react-aria/utils": "^3.24.0",
41
+ "@react-spectrum/utils": "^3.11.6",
42
+ "@react-types/shared": "^3.23.0",
43
43
  "@swc/helpers": "^0.5.0",
44
- "react-aria-components": "^1.1.0"
44
+ "react-aria-components": "^1.2.0"
45
45
  },
46
46
  "devDependencies": {
47
47
  "@adobe/spectrum-css-temp": "3.0.0-alpha.1",
48
- "@react-spectrum/test-utils": "3.0.0-alpha.1"
48
+ "@react-spectrum/test-utils-internal": "3.0.0-alpha.1"
49
49
  },
50
50
  "peerDependencies": {
51
51
  "@react-spectrum/provider": "^3.0.0",
@@ -54,5 +54,5 @@
54
54
  "publishConfig": {
55
55
  "access": "public"
56
56
  },
57
- "gitHead": "f040ff62678e6a31375b96c05396df0bae660350"
57
+ "gitHead": "f645f29edc1322153fd60af4640cbcab1d992dbd"
58
58
  }
package/src/DropZone.tsx CHANGED
@@ -12,7 +12,7 @@
12
12
 
13
13
  import {AriaLabelingProps, DOMProps, DOMRef, StyleProps} from '@react-types/shared';
14
14
  import {classNames, SlotProvider, useDOMRef, useStyleProps} from '@react-spectrum/utils';
15
- import {DropZoneProps, DropZone as RACDropZone} from 'react-aria-components';
15
+ import {DropZoneProps, HeadingContext, Provider, DropZone as RACDropZone} from 'react-aria-components';
16
16
  // @ts-ignore
17
17
  import intlMessages from '../intl/*.json';
18
18
  import {mergeProps, useId} from '@react-aria/utils';
@@ -20,7 +20,7 @@ import React, {ReactNode} from 'react';
20
20
  import styles from '@adobe/spectrum-css-temp/components/dropzone/vars.css';
21
21
  import {useLocalizedStringFormatter} from '@react-aria/i18n';
22
22
 
23
- export interface SpectrumDropZoneProps extends Omit<DropZoneProps, 'onHoverStart' | 'onHoverChange' | 'onHoverEnd'>, DOMProps, StyleProps, AriaLabelingProps {
23
+ export interface SpectrumDropZoneProps extends Omit<DropZoneProps, 'onHoverStart' | 'onHoverChange' | 'onHoverEnd' | 'isDisabled' | 'className' | 'style'>, DOMProps, StyleProps, AriaLabelingProps {
24
24
  /** The content to display in the drop zone. */
25
25
  children: ReactNode,
26
26
  /** Whether the drop zone has been filled. */
@@ -41,43 +41,50 @@ function DropZone(props: SpectrumDropZoneProps, ref: DOMRef<HTMLDivElement>) {
41
41
  let {styleProps} = useStyleProps(props);
42
42
  let domRef = useDOMRef(ref);
43
43
  let messageId = useId();
44
+ let headingId = useId();
44
45
  let stringFormatter = useLocalizedStringFormatter(intlMessages, '@react-spectrum/dropzone');
46
+ let ariaLabelledby = isFilled ? `${headingId} ${messageId}` : headingId;
45
47
 
46
48
  return (
47
- <RACDropZone
48
- {...mergeProps(filterProps(otherProps))}
49
- {...styleProps as Omit<React.HTMLAttributes<HTMLElement>, 'onDrop'>}
50
- aria-labelledby={isFilled && messageId}
51
- className={
52
- classNames(
53
- styles,
54
- 'spectrum-Dropzone',
55
- styleProps.className,
56
- {'spectrum-Dropzone--filled': isFilled}
57
- )}
58
- ref={domRef}>
59
- <SlotProvider
60
- slots={{
61
- illustration: {UNSAFE_className: classNames(
62
- styles,
63
- 'spectrum-Dropzone-illustratedMessage'
64
- )}
65
- }}>
66
- {children}
67
- </SlotProvider>
68
- <div className={classNames(styles, 'spectrum-Dropzone-backdrop')} />
69
- <div
70
- id={messageId}
49
+ <Provider
50
+ values={[
51
+ [HeadingContext, {id: headingId}]
52
+ ]}>
53
+ <RACDropZone
54
+ {...mergeProps(filterProps(otherProps))}
55
+ {...styleProps as Omit<React.HTMLAttributes<HTMLElement>, 'onDrop'>}
56
+ aria-labelledby={ariaLabelledby}
71
57
  className={
72
- classNames(
73
- styles,
74
- 'spectrum-Dropzone-banner',
75
- styleProps.className
76
- )
77
- }>
78
- {replaceMessage ? replaceMessage : stringFormatter.format('replaceMessage')}
79
- </div>
80
- </RACDropZone>
58
+ classNames(
59
+ styles,
60
+ 'spectrum-Dropzone',
61
+ styleProps.className,
62
+ {'spectrum-Dropzone--filled': isFilled}
63
+ )}
64
+ ref={domRef}>
65
+ <SlotProvider
66
+ slots={{
67
+ illustration: {UNSAFE_className: classNames(
68
+ styles,
69
+ 'spectrum-Dropzone-illustratedMessage'
70
+ )}
71
+ }}>
72
+ {children}
73
+ </SlotProvider>
74
+ <div className={classNames(styles, 'spectrum-Dropzone-backdrop')} />
75
+ <div
76
+ id={messageId}
77
+ className={
78
+ classNames(
79
+ styles,
80
+ 'spectrum-Dropzone-banner',
81
+ styleProps.className
82
+ )
83
+ }>
84
+ {replaceMessage ? replaceMessage : stringFormatter.format('replaceMessage')}
85
+ </div>
86
+ </RACDropZone>
87
+ </Provider>
81
88
  );
82
89
  }
83
90