@react-spectrum/dropzone 3.0.0-rc.3 → 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 (61) 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.mjs +1 -1
  7. package/dist/bg-BG.mjs +1 -1
  8. package/dist/cs-CZ.mjs +1 -1
  9. package/dist/da-DK.mjs +1 -1
  10. package/dist/de-DE.mjs +1 -1
  11. package/dist/dropzone_vars_css.main.js +38 -0
  12. package/dist/dropzone_vars_css.main.js.map +1 -0
  13. package/dist/dropzone_vars_css.mjs +40 -0
  14. package/dist/dropzone_vars_css.module.js +40 -0
  15. package/dist/dropzone_vars_css.module.js.map +1 -0
  16. package/dist/el-GR.mjs +1 -1
  17. package/dist/en-US.mjs +1 -1
  18. package/dist/es-ES.mjs +1 -1
  19. package/dist/et-EE.mjs +1 -1
  20. package/dist/fi-FI.mjs +1 -1
  21. package/dist/fr-FR.mjs +1 -1
  22. package/dist/he-IL.mjs +1 -1
  23. package/dist/hr-HR.mjs +1 -1
  24. package/dist/hu-HU.mjs +1 -1
  25. package/dist/import.mjs +1 -207
  26. package/dist/intlStrings.main.js +108 -0
  27. package/dist/intlStrings.main.js.map +1 -0
  28. package/dist/intlStrings.mjs +110 -0
  29. package/dist/intlStrings.module.js +110 -0
  30. package/dist/intlStrings.module.js.map +1 -0
  31. package/dist/it-IT.mjs +1 -1
  32. package/dist/ja-JP.mjs +1 -1
  33. package/dist/ko-KR.mjs +1 -1
  34. package/dist/lt-LT.mjs +1 -1
  35. package/dist/lv-LV.mjs +1 -1
  36. package/dist/main.js +2 -204
  37. package/dist/main.js.map +1 -1
  38. package/dist/module.js +1 -207
  39. package/dist/module.js.map +1 -1
  40. package/dist/nb-NO.mjs +1 -1
  41. package/dist/nl-NL.mjs +1 -1
  42. package/dist/pl-PL.mjs +1 -1
  43. package/dist/pt-BR.mjs +1 -1
  44. package/dist/pt-PT.mjs +1 -1
  45. package/dist/ro-RO.mjs +1 -1
  46. package/dist/ru-RU.mjs +1 -1
  47. package/dist/sk-SK.mjs +1 -1
  48. package/dist/sl-SI.mjs +1 -1
  49. package/dist/sr-SP.mjs +1 -1
  50. package/dist/sv-SE.mjs +1 -1
  51. package/dist/tr-TR.mjs +1 -1
  52. package/dist/types.d.ts +3 -3
  53. package/dist/types.d.ts.map +1 -1
  54. package/dist/uk-UA.mjs +1 -1
  55. package/dist/{main.css → vars.c0db847d.css} +15 -26
  56. package/dist/vars.c0db847d.css.map +1 -0
  57. package/dist/zh-CN.mjs +1 -1
  58. package/dist/zh-TW.mjs +1 -1
  59. package/package.json +8 -8
  60. package/src/DropZone.tsx +42 -35
  61. package/dist/main.css.map +0 -1
package/dist/main.js CHANGED
@@ -1,54 +1,11 @@
1
- var $a6975295bf5c4d55$exports = require("./ar-AE.main.js");
2
- var $ab5dc96d5c64d58d$exports = require("./bg-BG.main.js");
3
- var $ec9c957cc1eb6ac9$exports = require("./cs-CZ.main.js");
4
- var $c20098e490cf11c0$exports = require("./da-DK.main.js");
5
- var $d17f27c65aaaf6a8$exports = require("./de-DE.main.js");
6
- var $348bb5362089d093$exports = require("./el-GR.main.js");
7
- var $28f774213637c9f3$exports = require("./en-US.main.js");
8
- var $2dd0cb4c8fc57cfe$exports = require("./es-ES.main.js");
9
- var $c1426789ba28ff98$exports = require("./et-EE.main.js");
10
- var $e5c8914ba605a596$exports = require("./fi-FI.main.js");
11
- var $d15362445d044738$exports = require("./fr-FR.main.js");
12
- var $32537b5d24d2d4fc$exports = require("./he-IL.main.js");
13
- var $c18f98b9142e7b26$exports = require("./hr-HR.main.js");
14
- var $570766610b3b9179$exports = require("./hu-HU.main.js");
15
- var $af6eb076bbc3df31$exports = require("./it-IT.main.js");
16
- var $797208a224779dc6$exports = require("./ja-JP.main.js");
17
- var $efe0febd9c5ff51d$exports = require("./ko-KR.main.js");
18
- var $3119bdb414264e20$exports = require("./lt-LT.main.js");
19
- var $8d43cc6c8aff95db$exports = require("./lv-LV.main.js");
20
- var $a5084d93d23b0854$exports = require("./nb-NO.main.js");
21
- var $5978d18c34077bbe$exports = require("./nl-NL.main.js");
22
- var $f17bee60ccd0e5e3$exports = require("./pl-PL.main.js");
23
- var $4f5eb463d9a9c950$exports = require("./pt-BR.main.js");
24
- var $a9483dcdf6481e43$exports = require("./pt-PT.main.js");
25
- var $5741c50d5ed46532$exports = require("./ro-RO.main.js");
26
- var $8fd22e7013122e76$exports = require("./ru-RU.main.js");
27
- var $87e27b1f4c06cc77$exports = require("./sk-SK.main.js");
28
- var $ac2d9d11787db074$exports = require("./sl-SI.main.js");
29
- var $4cae4b890c7d2e64$exports = require("./sr-SP.main.js");
30
- var $ef9b4743bba0e45f$exports = require("./sv-SE.main.js");
31
- var $8c5762c3146afda1$exports = require("./tr-TR.main.js");
32
- var $1a99cc22a4a9a948$exports = require("./uk-UA.main.js");
33
- var $eae14e35d0f53ea0$exports = require("./zh-CN.main.js");
34
- var $88e03544efa0a675$exports = require("./zh-TW.main.js");
35
- require("./main.css");
36
- var $fRqBm$reactspectrumutils = require("@react-spectrum/utils");
37
- var $fRqBm$reactariacomponents = require("react-aria-components");
38
- var $fRqBm$reactariautils = require("@react-aria/utils");
39
- var $fRqBm$react = require("react");
40
- var $fRqBm$reactariai18n = require("@react-aria/i18n");
1
+ var $f7b7e7956f17a6e7$exports = require("./DropZone.main.js");
41
2
 
42
3
 
43
4
  function $parcel$export(e, n, v, s) {
44
5
  Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
45
6
  }
46
7
 
47
- function $parcel$interopDefault(a) {
48
- return a && a.__esModule ? a.default : a;
49
- }
50
-
51
- $parcel$export(module.exports, "DropZone", () => $f7b7e7956f17a6e7$export$3c6489d84dc98b6);
8
+ $parcel$export(module.exports, "DropZone", () => $f7b7e7956f17a6e7$exports.DropZone);
52
9
  /*
53
10
  * Copyright 2023 Adobe. All rights reserved.
54
11
  * This file is licensed to you under the Apache License, Version 2.0 (the "License");
@@ -60,165 +17,6 @@ $parcel$export(module.exports, "DropZone", () => $f7b7e7956f17a6e7$export$3c6489
60
17
  * OF ANY KIND, either express or implied. See the License for the specific language
61
18
  * governing permissions and limitations under the License.
62
19
  */ /// <reference types="css-module-types" />
63
- /*
64
- * Copyright 2023 Adobe. All rights reserved.
65
- * This file is licensed to you under the Apache License, Version 2.0 (the "License");
66
- * you may not use this file except in compliance with the License. You may obtain a copy
67
- * of the License at http://www.apache.org/licenses/LICENSE-2.0
68
- *
69
- * Unless required by applicable law or agreed to in writing, software distributed under
70
- * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
71
- * OF ANY KIND, either express or implied. See the License for the specific language
72
- * governing permissions and limitations under the License.
73
- */
74
-
75
- var $338e657e2a59c652$exports = {};
76
-
77
-
78
-
79
-
80
-
81
-
82
-
83
-
84
-
85
-
86
-
87
-
88
-
89
-
90
-
91
-
92
-
93
-
94
-
95
-
96
-
97
-
98
-
99
-
100
-
101
-
102
-
103
-
104
-
105
-
106
-
107
-
108
-
109
-
110
- $338e657e2a59c652$exports = {
111
- "ar-AE": $a6975295bf5c4d55$exports,
112
- "bg-BG": $ab5dc96d5c64d58d$exports,
113
- "cs-CZ": $ec9c957cc1eb6ac9$exports,
114
- "da-DK": $c20098e490cf11c0$exports,
115
- "de-DE": $d17f27c65aaaf6a8$exports,
116
- "el-GR": $348bb5362089d093$exports,
117
- "en-US": $28f774213637c9f3$exports,
118
- "es-ES": $2dd0cb4c8fc57cfe$exports,
119
- "et-EE": $c1426789ba28ff98$exports,
120
- "fi-FI": $e5c8914ba605a596$exports,
121
- "fr-FR": $d15362445d044738$exports,
122
- "he-IL": $32537b5d24d2d4fc$exports,
123
- "hr-HR": $c18f98b9142e7b26$exports,
124
- "hu-HU": $570766610b3b9179$exports,
125
- "it-IT": $af6eb076bbc3df31$exports,
126
- "ja-JP": $797208a224779dc6$exports,
127
- "ko-KR": $efe0febd9c5ff51d$exports,
128
- "lt-LT": $3119bdb414264e20$exports,
129
- "lv-LV": $8d43cc6c8aff95db$exports,
130
- "nb-NO": $a5084d93d23b0854$exports,
131
- "nl-NL": $5978d18c34077bbe$exports,
132
- "pl-PL": $f17bee60ccd0e5e3$exports,
133
- "pt-BR": $4f5eb463d9a9c950$exports,
134
- "pt-PT": $a9483dcdf6481e43$exports,
135
- "ro-RO": $5741c50d5ed46532$exports,
136
- "ru-RU": $8fd22e7013122e76$exports,
137
- "sk-SK": $87e27b1f4c06cc77$exports,
138
- "sl-SI": $ac2d9d11787db074$exports,
139
- "sr-SP": $4cae4b890c7d2e64$exports,
140
- "sv-SE": $ef9b4743bba0e45f$exports,
141
- "tr-TR": $8c5762c3146afda1$exports,
142
- "uk-UA": $1a99cc22a4a9a948$exports,
143
- "zh-CN": $eae14e35d0f53ea0$exports,
144
- "zh-TW": $88e03544efa0a675$exports
145
- };
146
-
147
-
148
-
149
-
150
- var $880edb5e40e39939$exports = {};
151
-
152
- $parcel$export($880edb5e40e39939$exports, "focus-ring", () => $880edb5e40e39939$export$f39a09f249340e2a, (v) => $880edb5e40e39939$export$f39a09f249340e2a = v);
153
- $parcel$export($880edb5e40e39939$exports, "i18nFontFamily", () => $880edb5e40e39939$export$8c4ee2c50c22c514, (v) => $880edb5e40e39939$export$8c4ee2c50c22c514 = v);
154
- $parcel$export($880edb5e40e39939$exports, "spectrum-Dropzone", () => $880edb5e40e39939$export$ce4e6f6931d40b3b, (v) => $880edb5e40e39939$export$ce4e6f6931d40b3b = v);
155
- $parcel$export($880edb5e40e39939$exports, "spectrum-Dropzone--filled", () => $880edb5e40e39939$export$23839b546bc9025, (v) => $880edb5e40e39939$export$23839b546bc9025 = v);
156
- $parcel$export($880edb5e40e39939$exports, "spectrum-Dropzone-backdrop", () => $880edb5e40e39939$export$9707254954de90f5, (v) => $880edb5e40e39939$export$9707254954de90f5 = v);
157
- $parcel$export($880edb5e40e39939$exports, "spectrum-Dropzone-banner", () => $880edb5e40e39939$export$4dbecdbee9ec453f, (v) => $880edb5e40e39939$export$4dbecdbee9ec453f = v);
158
- $parcel$export($880edb5e40e39939$exports, "spectrum-Dropzone-illustratedMessage", () => $880edb5e40e39939$export$b5dc261d2b2c189e, (v) => $880edb5e40e39939$export$b5dc261d2b2c189e = v);
159
- $parcel$export($880edb5e40e39939$exports, "spectrum-FocusRing-ring", () => $880edb5e40e39939$export$4109102f950813a6, (v) => $880edb5e40e39939$export$4109102f950813a6 = v);
160
- $parcel$export($880edb5e40e39939$exports, "spectrum-FocusRing", () => $880edb5e40e39939$export$24c7f46a6e3605dd, (v) => $880edb5e40e39939$export$24c7f46a6e3605dd = v);
161
- $parcel$export($880edb5e40e39939$exports, "spectrum-FocusRing--quiet", () => $880edb5e40e39939$export$2927016961429360, (v) => $880edb5e40e39939$export$2927016961429360 = v);
162
- var $880edb5e40e39939$export$f39a09f249340e2a;
163
- var $880edb5e40e39939$export$8c4ee2c50c22c514;
164
- var $880edb5e40e39939$export$ce4e6f6931d40b3b;
165
- var $880edb5e40e39939$export$23839b546bc9025;
166
- var $880edb5e40e39939$export$9707254954de90f5;
167
- var $880edb5e40e39939$export$4dbecdbee9ec453f;
168
- var $880edb5e40e39939$export$b5dc261d2b2c189e;
169
- var $880edb5e40e39939$export$4109102f950813a6;
170
- var $880edb5e40e39939$export$24c7f46a6e3605dd;
171
- var $880edb5e40e39939$export$2927016961429360;
172
- $880edb5e40e39939$export$f39a09f249340e2a = `b5Gu6W_focus-ring`;
173
- $880edb5e40e39939$export$8c4ee2c50c22c514 = `b5Gu6W_i18nFontFamily`;
174
- $880edb5e40e39939$export$ce4e6f6931d40b3b = `b5Gu6W_spectrum-Dropzone`;
175
- $880edb5e40e39939$export$23839b546bc9025 = `b5Gu6W_spectrum-Dropzone--filled`;
176
- $880edb5e40e39939$export$9707254954de90f5 = `b5Gu6W_spectrum-Dropzone-backdrop`;
177
- $880edb5e40e39939$export$4dbecdbee9ec453f = `b5Gu6W_spectrum-Dropzone-banner`;
178
- $880edb5e40e39939$export$b5dc261d2b2c189e = `b5Gu6W_spectrum-Dropzone-illustratedMessage`;
179
- $880edb5e40e39939$export$4109102f950813a6 = `b5Gu6W_spectrum-FocusRing-ring`;
180
- $880edb5e40e39939$export$24c7f46a6e3605dd = `b5Gu6W_spectrum-FocusRing ${$880edb5e40e39939$export$4109102f950813a6}`;
181
- $880edb5e40e39939$export$2927016961429360 = `b5Gu6W_spectrum-FocusRing--quiet`;
182
-
183
-
184
-
185
- // Filter out props used by RAC DropZone that we don't want in RSP DropZone for now.
186
- let $f7b7e7956f17a6e7$var$filterProps = (props)=>{
187
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
188
- let { onHoverStart: onHoverStart, onHoverChange: onHoverChange, onHoverEnd: onHoverEnd, ...otherProps } = props;
189
- return otherProps;
190
- };
191
- function $f7b7e7956f17a6e7$var$DropZone(props, ref) {
192
- let { children: children, isFilled: isFilled, replaceMessage: replaceMessage, ...otherProps } = props;
193
- let { styleProps: styleProps } = (0, $fRqBm$reactspectrumutils.useStyleProps)(props);
194
- let domRef = (0, $fRqBm$reactspectrumutils.useDOMRef)(ref);
195
- let messageId = (0, $fRqBm$reactariautils.useId)();
196
- let stringFormatter = (0, $fRqBm$reactariai18n.useLocalizedStringFormatter)((0, (/*@__PURE__*/$parcel$interopDefault($338e657e2a59c652$exports))), "@react-spectrum/dropzone");
197
- return /*#__PURE__*/ (0, ($parcel$interopDefault($fRqBm$react))).createElement((0, $fRqBm$reactariacomponents.DropZone), {
198
- ...(0, $fRqBm$reactariautils.mergeProps)($f7b7e7956f17a6e7$var$filterProps(otherProps)),
199
- ...styleProps,
200
- "aria-labelledby": isFilled && messageId,
201
- className: (0, $fRqBm$reactspectrumutils.classNames)((0, (/*@__PURE__*/$parcel$interopDefault($880edb5e40e39939$exports))), "spectrum-Dropzone", styleProps.className, {
202
- "spectrum-Dropzone--filled": isFilled
203
- }),
204
- ref: domRef
205
- }, /*#__PURE__*/ (0, ($parcel$interopDefault($fRqBm$react))).createElement((0, $fRqBm$reactspectrumutils.SlotProvider), {
206
- slots: {
207
- illustration: {
208
- UNSAFE_className: (0, $fRqBm$reactspectrumutils.classNames)((0, (/*@__PURE__*/$parcel$interopDefault($880edb5e40e39939$exports))), "spectrum-Dropzone-illustratedMessage")
209
- }
210
- }
211
- }, children), /*#__PURE__*/ (0, ($parcel$interopDefault($fRqBm$react))).createElement("div", {
212
- className: (0, $fRqBm$reactspectrumutils.classNames)((0, (/*@__PURE__*/$parcel$interopDefault($880edb5e40e39939$exports))), "spectrum-Dropzone-backdrop")
213
- }), /*#__PURE__*/ (0, ($parcel$interopDefault($fRqBm$react))).createElement("div", {
214
- id: messageId,
215
- className: (0, $fRqBm$reactspectrumutils.classNames)((0, (/*@__PURE__*/$parcel$interopDefault($880edb5e40e39939$exports))), "spectrum-Dropzone-banner", styleProps.className)
216
- }, replaceMessage ? replaceMessage : stringFormatter.format("replaceMessage")));
217
- }
218
- /**
219
- * A drop zone is an area into which one or multiple objects can be dragged and dropped.
220
- */ let $f7b7e7956f17a6e7$export$3c6489d84dc98b6 = /*#__PURE__*/ (0, ($parcel$interopDefault($fRqBm$react))).forwardRef($f7b7e7956f17a6e7$var$DropZone);
221
-
222
20
 
223
21
 
224
22
 
package/dist/main.js.map CHANGED
@@ -1 +1 @@
1
- {"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;CAUC,GAED,0CAA0C;ACZ1C;;;;;;;;;;CAUC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACwBD,4BAAiB;IACf,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;AACX;;;;;;;;;;;;;;;;;ACrEA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AATA,4CAA+B,CAAC,iBAAiB,CAAC;AAClD,4CAAmC,CAAC,qBAAqB,CAAC;AAC1D,4CAAsC,CAAC,wBAAwB,CAAC;AAChE,2CAA8C,CAAC,gCAAgC,CAAC;AAChF,4CAA+C,CAAC,iCAAiC,CAAC;AAClF,4CAA6C,CAAC,+BAA+B,CAAC;AAC9E,4CAAyD,CAAC,2CAA2C,CAAC;AACtG,4CAA4C,CAAC,8BAA8B,CAAC;AAC5E,4CAAuC,CAAC,0BAA0B,EAAE,0CAA0C,CAAC;AAC/G,4CAA8C,CAAC,gCAAgC,CAAC;;;;AFsBhF,oFAAoF;AACpF,IAAI,oCAAc,CAAC;IACjB,6DAA6D;IAC7D,IAAI,gBAAC,YAAY,iBAAE,aAAa,cAAE,UAAU,EAAE,GAAG,YAAW,GAAG;IAC/D,OAAO;AACT;AAEA,SAAS,+BAAS,KAA4B,EAAE,GAA2B;IACzE,IAAI,YAAC,QAAQ,YAAE,QAAQ,kBAAE,cAAc,EAAE,GAAG,YAAW,GAAG;IAC1D,IAAI,cAAC,UAAU,EAAC,GAAG,CAAA,GAAA,uCAAY,EAAE;IACjC,IAAI,SAAS,CAAA,GAAA,mCAAQ,EAAE;IACvB,IAAI,YAAY,CAAA,GAAA,2BAAI;IACpB,IAAI,kBAAkB,CAAA,GAAA,gDAA0B,EAAE,CAAA,GAAA,gEAAW,GAAG;IAEhE,qBACE,0DAAC,CAAA,GAAA,mCAAU;QACR,GAAG,CAAA,GAAA,gCAAS,EAAE,kCAAY,YAAY;QACtC,GAAG,UAAU;QACd,mBAAiB,YAAY;QAC7B,WACA,CAAA,GAAA,oCAAS,EACP,CAAA,GAAA,gEAAK,GACL,qBACA,WAAW,SAAS,EACpB;YAAC,6BAA6B;QAAQ;QAExC,KAAK;qBACL,0DAAC,CAAA,GAAA,sCAAW;QACV,OAAO;YACL,cAAc;gBAAC,kBAAkB,CAAA,GAAA,oCAAS,EACxC,CAAA,GAAA,gEAAK,GACL;YACC;QACL;OACC,yBAEH,0DAAC;QAAI,WAAW,CAAA,GAAA,oCAAS,EAAE,CAAA,GAAA,gEAAK,GAAG;sBACnC,0DAAC;QACC,IAAI;QACJ,WACE,CAAA,GAAA,oCAAS,EACP,CAAA,GAAA,gEAAK,GACL,4BACA,WAAW,SAAS;OAGvB,iBAAiB,iBAAiB,gBAAgB,MAAM,CAAC;AAIlE;AAEA;;CAEC,GACD,IAAI,yDAAY,CAAA,GAAA,sCAAI,EAAE,UAAU,CAAC;","sources":["packages/@react-spectrum/dropzone/src/index.ts","packages/@react-spectrum/dropzone/src/DropZone.tsx","packages/@react-spectrum/dropzone/src/*.js","packages/@adobe/spectrum-css-temp/components/dropzone/vars.css"],"sourcesContent":["/*\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","/*\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\nimport {AriaLabelingProps, DOMProps, DOMRef, StyleProps} from '@react-types/shared';\nimport {classNames, SlotProvider, useDOMRef, useStyleProps} from '@react-spectrum/utils';\nimport {DropZoneProps, DropZone as RACDropZone} from 'react-aria-components';\n// @ts-ignore\nimport intlMessages from '../intl/*.json';\nimport {mergeProps, useId} from '@react-aria/utils';\nimport React, {ReactNode} from 'react';\nimport styles from '@adobe/spectrum-css-temp/components/dropzone/vars.css';\nimport {useLocalizedStringFormatter} from '@react-aria/i18n';\n\nexport interface SpectrumDropZoneProps extends Omit<DropZoneProps, 'onHoverStart' | 'onHoverChange' | 'onHoverEnd'>, DOMProps, StyleProps, AriaLabelingProps {\n /** The content to display in the drop zone. */\n children: ReactNode,\n /** Whether the drop zone has been filled. */\n isFilled?: boolean,\n /** The message to replace the default banner message that is shown when the drop zone is filled. */\n replaceMessage?: string\n}\n\n// Filter out props used by RAC DropZone that we don't want in RSP DropZone for now.\nlet filterProps = (props) => {\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n let {onHoverStart, onHoverChange, onHoverEnd, ...otherProps} = props;\n return otherProps;\n};\n\nfunction DropZone(props: SpectrumDropZoneProps, ref: DOMRef<HTMLDivElement>) {\n let {children, isFilled, replaceMessage, ...otherProps} = props;\n let {styleProps} = useStyleProps(props);\n let domRef = useDOMRef(ref);\n let messageId = useId();\n let stringFormatter = useLocalizedStringFormatter(intlMessages, '@react-spectrum/dropzone');\n\n return (\n <RACDropZone\n {...mergeProps(filterProps(otherProps))}\n {...styleProps as Omit<React.HTMLAttributes<HTMLElement>, 'onDrop'>}\n aria-labelledby={isFilled && messageId}\n className={\n classNames(\n styles,\n 'spectrum-Dropzone',\n styleProps.className,\n {'spectrum-Dropzone--filled': isFilled}\n )}\n ref={domRef}>\n <SlotProvider\n slots={{\n illustration: {UNSAFE_className: classNames(\n styles,\n 'spectrum-Dropzone-illustratedMessage'\n )}\n }}>\n {children}\n </SlotProvider>\n <div className={classNames(styles, 'spectrum-Dropzone-backdrop')} />\n <div\n id={messageId}\n className={\n classNames(\n styles,\n 'spectrum-Dropzone-banner',\n styleProps.className\n )\n }>\n {replaceMessage ? replaceMessage : stringFormatter.format('replaceMessage')}\n </div>\n </RACDropZone>\n );\n}\n\n/**\n * A drop zone is an area into which one or multiple objects can be dragged and dropped.\n */\nlet _DropZone = React.forwardRef(DropZone);\nexport {_DropZone as DropZone};\n","const _temp0 = require(\"../intl/ar-AE.json\");\nconst _temp1 = require(\"../intl/bg-BG.json\");\nconst _temp2 = require(\"../intl/cs-CZ.json\");\nconst _temp3 = require(\"../intl/da-DK.json\");\nconst _temp4 = require(\"../intl/de-DE.json\");\nconst _temp5 = require(\"../intl/el-GR.json\");\nconst _temp6 = require(\"../intl/en-US.json\");\nconst _temp7 = require(\"../intl/es-ES.json\");\nconst _temp8 = require(\"../intl/et-EE.json\");\nconst _temp9 = require(\"../intl/fi-FI.json\");\nconst _temp10 = require(\"../intl/fr-FR.json\");\nconst _temp11 = require(\"../intl/he-IL.json\");\nconst _temp12 = require(\"../intl/hr-HR.json\");\nconst _temp13 = require(\"../intl/hu-HU.json\");\nconst _temp14 = require(\"../intl/it-IT.json\");\nconst _temp15 = require(\"../intl/ja-JP.json\");\nconst _temp16 = require(\"../intl/ko-KR.json\");\nconst _temp17 = require(\"../intl/lt-LT.json\");\nconst _temp18 = require(\"../intl/lv-LV.json\");\nconst _temp19 = require(\"../intl/nb-NO.json\");\nconst _temp20 = require(\"../intl/nl-NL.json\");\nconst _temp21 = require(\"../intl/pl-PL.json\");\nconst _temp22 = require(\"../intl/pt-BR.json\");\nconst _temp23 = require(\"../intl/pt-PT.json\");\nconst _temp24 = require(\"../intl/ro-RO.json\");\nconst _temp25 = require(\"../intl/ru-RU.json\");\nconst _temp26 = require(\"../intl/sk-SK.json\");\nconst _temp27 = require(\"../intl/sl-SI.json\");\nconst _temp28 = require(\"../intl/sr-SP.json\");\nconst _temp29 = require(\"../intl/sv-SE.json\");\nconst _temp30 = require(\"../intl/tr-TR.json\");\nconst _temp31 = require(\"../intl/uk-UA.json\");\nconst _temp32 = require(\"../intl/zh-CN.json\");\nconst _temp33 = require(\"../intl/zh-TW.json\");\nmodule.exports = {\n \"ar-AE\": _temp0,\n \"bg-BG\": _temp1,\n \"cs-CZ\": _temp2,\n \"da-DK\": _temp3,\n \"de-DE\": _temp4,\n \"el-GR\": _temp5,\n \"en-US\": _temp6,\n \"es-ES\": _temp7,\n \"et-EE\": _temp8,\n \"fi-FI\": _temp9,\n \"fr-FR\": _temp10,\n \"he-IL\": _temp11,\n \"hr-HR\": _temp12,\n \"hu-HU\": _temp13,\n \"it-IT\": _temp14,\n \"ja-JP\": _temp15,\n \"ko-KR\": _temp16,\n \"lt-LT\": _temp17,\n \"lv-LV\": _temp18,\n \"nb-NO\": _temp19,\n \"nl-NL\": _temp20,\n \"pl-PL\": _temp21,\n \"pt-BR\": _temp22,\n \"pt-PT\": _temp23,\n \"ro-RO\": _temp24,\n \"ru-RU\": _temp25,\n \"sk-SK\": _temp26,\n \"sl-SI\": _temp27,\n \"sr-SP\": _temp28,\n \"sv-SE\": _temp29,\n \"tr-TR\": _temp30,\n \"uk-UA\": _temp31,\n \"zh-CN\": _temp32,\n \"zh-TW\": _temp33\n}","/*\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":"main.js.map"}
1
+ {"mappings":";;;;;;;;AAAA;;;;;;;;;;CAUC,GAED,0CAA0C","sources":["packages/@react-spectrum/dropzone/src/index.ts"],"sourcesContent":["/*\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":"main.js.map"}
package/dist/module.js CHANGED
@@ -1,52 +1,5 @@
1
- import $3cffa6a83421c23c$exports from "./ar-AE.module.js";
2
- import $65cafe835931ede6$exports from "./bg-BG.module.js";
3
- import $2adcb67bf4ec91c9$exports from "./cs-CZ.module.js";
4
- import $6ba504c8d6544e47$exports from "./da-DK.module.js";
5
- import $3ce29be01ff65705$exports from "./de-DE.module.js";
6
- import $ae42035e6b9dd97a$exports from "./el-GR.module.js";
7
- import $0935d9c31242fd34$exports from "./en-US.module.js";
8
- import $abfec65a0d2b0c27$exports from "./es-ES.module.js";
9
- import $8d7af4cd5d5753c7$exports from "./et-EE.module.js";
10
- import $db22385d5bdd005e$exports from "./fi-FI.module.js";
11
- import $245a392e21415836$exports from "./fr-FR.module.js";
12
- import $6413fb43414b9e75$exports from "./he-IL.module.js";
13
- import $ee0ea9d296f5f6ab$exports from "./hr-HR.module.js";
14
- import $51171b341dfc5453$exports from "./hu-HU.module.js";
15
- import $830e3263459eb1d0$exports from "./it-IT.module.js";
16
- import $289e4e8b39441972$exports from "./ja-JP.module.js";
17
- import $3a6a62f186206880$exports from "./ko-KR.module.js";
18
- import $ad1097286dff3101$exports from "./lt-LT.module.js";
19
- import $fd59115b0041c337$exports from "./lv-LV.module.js";
20
- import $710ff1246576a6ec$exports from "./nb-NO.module.js";
21
- import $000943b4c8779050$exports from "./nl-NL.module.js";
22
- import $7f2e93329f476e76$exports from "./pl-PL.module.js";
23
- import $fd69b558842c4d71$exports from "./pt-BR.module.js";
24
- import $7a646e214fd1cba2$exports from "./pt-PT.module.js";
25
- import $93014858e8228579$exports from "./ro-RO.module.js";
26
- import $2769c5d71042ac27$exports from "./ru-RU.module.js";
27
- import $e689339abe8753c7$exports from "./sk-SK.module.js";
28
- import $7bfc0ba33fedfe25$exports from "./sl-SI.module.js";
29
- import $0bb12c08fb7d59be$exports from "./sr-SP.module.js";
30
- import $b8c50d0f68c95c3d$exports from "./sv-SE.module.js";
31
- import $711c9bc16244510d$exports from "./tr-TR.module.js";
32
- import $6229f5290723ff0e$exports from "./uk-UA.module.js";
33
- import $1ba57165d5de0b25$exports from "./zh-CN.module.js";
34
- import $586e20fd0bf5d7aa$exports from "./zh-TW.module.js";
35
- import "./main.css";
36
- import {useStyleProps as $gvoUB$useStyleProps, useDOMRef as $gvoUB$useDOMRef, classNames as $gvoUB$classNames, SlotProvider as $gvoUB$SlotProvider} from "@react-spectrum/utils";
37
- import {DropZone as $gvoUB$DropZone} from "react-aria-components";
38
- import {useId as $gvoUB$useId, mergeProps as $gvoUB$mergeProps} from "@react-aria/utils";
39
- import $gvoUB$react from "react";
40
- import {useLocalizedStringFormatter as $gvoUB$useLocalizedStringFormatter} from "@react-aria/i18n";
1
+ import {DropZone as $37da9a3796695f28$export$3c6489d84dc98b6} from "./DropZone.module.js";
41
2
 
42
-
43
- function $parcel$interopDefault(a) {
44
- return a && a.__esModule ? a.default : a;
45
- }
46
-
47
- function $parcel$export(e, n, v, s) {
48
- Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
49
- }
50
3
  /*
51
4
  * Copyright 2023 Adobe. All rights reserved.
52
5
  * This file is licensed to you under the Apache License, Version 2.0 (the "License");
@@ -58,165 +11,6 @@ function $parcel$export(e, n, v, s) {
58
11
  * OF ANY KIND, either express or implied. See the License for the specific language
59
12
  * governing permissions and limitations under the License.
60
13
  */ /// <reference types="css-module-types" />
61
- /*
62
- * Copyright 2023 Adobe. All rights reserved.
63
- * This file is licensed to you under the Apache License, Version 2.0 (the "License");
64
- * you may not use this file except in compliance with the License. You may obtain a copy
65
- * of the License at http://www.apache.org/licenses/LICENSE-2.0
66
- *
67
- * Unless required by applicable law or agreed to in writing, software distributed under
68
- * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
69
- * OF ANY KIND, either express or implied. See the License for the specific language
70
- * governing permissions and limitations under the License.
71
- */
72
-
73
- var $e4fb2fdca6053dfb$exports = {};
74
-
75
-
76
-
77
-
78
-
79
-
80
-
81
-
82
-
83
-
84
-
85
-
86
-
87
-
88
-
89
-
90
-
91
-
92
-
93
-
94
-
95
-
96
-
97
-
98
-
99
-
100
-
101
-
102
-
103
-
104
-
105
-
106
-
107
-
108
- $e4fb2fdca6053dfb$exports = {
109
- "ar-AE": $3cffa6a83421c23c$exports,
110
- "bg-BG": $65cafe835931ede6$exports,
111
- "cs-CZ": $2adcb67bf4ec91c9$exports,
112
- "da-DK": $6ba504c8d6544e47$exports,
113
- "de-DE": $3ce29be01ff65705$exports,
114
- "el-GR": $ae42035e6b9dd97a$exports,
115
- "en-US": $0935d9c31242fd34$exports,
116
- "es-ES": $abfec65a0d2b0c27$exports,
117
- "et-EE": $8d7af4cd5d5753c7$exports,
118
- "fi-FI": $db22385d5bdd005e$exports,
119
- "fr-FR": $245a392e21415836$exports,
120
- "he-IL": $6413fb43414b9e75$exports,
121
- "hr-HR": $ee0ea9d296f5f6ab$exports,
122
- "hu-HU": $51171b341dfc5453$exports,
123
- "it-IT": $830e3263459eb1d0$exports,
124
- "ja-JP": $289e4e8b39441972$exports,
125
- "ko-KR": $3a6a62f186206880$exports,
126
- "lt-LT": $ad1097286dff3101$exports,
127
- "lv-LV": $fd59115b0041c337$exports,
128
- "nb-NO": $710ff1246576a6ec$exports,
129
- "nl-NL": $000943b4c8779050$exports,
130
- "pl-PL": $7f2e93329f476e76$exports,
131
- "pt-BR": $fd69b558842c4d71$exports,
132
- "pt-PT": $7a646e214fd1cba2$exports,
133
- "ro-RO": $93014858e8228579$exports,
134
- "ru-RU": $2769c5d71042ac27$exports,
135
- "sk-SK": $e689339abe8753c7$exports,
136
- "sl-SI": $7bfc0ba33fedfe25$exports,
137
- "sr-SP": $0bb12c08fb7d59be$exports,
138
- "sv-SE": $b8c50d0f68c95c3d$exports,
139
- "tr-TR": $711c9bc16244510d$exports,
140
- "uk-UA": $6229f5290723ff0e$exports,
141
- "zh-CN": $1ba57165d5de0b25$exports,
142
- "zh-TW": $586e20fd0bf5d7aa$exports
143
- };
144
-
145
-
146
-
147
-
148
- var $02af9bc0a51717d4$exports = {};
149
-
150
- $parcel$export($02af9bc0a51717d4$exports, "focus-ring", () => $02af9bc0a51717d4$export$f39a09f249340e2a, (v) => $02af9bc0a51717d4$export$f39a09f249340e2a = v);
151
- $parcel$export($02af9bc0a51717d4$exports, "i18nFontFamily", () => $02af9bc0a51717d4$export$8c4ee2c50c22c514, (v) => $02af9bc0a51717d4$export$8c4ee2c50c22c514 = v);
152
- $parcel$export($02af9bc0a51717d4$exports, "spectrum-Dropzone", () => $02af9bc0a51717d4$export$ce4e6f6931d40b3b, (v) => $02af9bc0a51717d4$export$ce4e6f6931d40b3b = v);
153
- $parcel$export($02af9bc0a51717d4$exports, "spectrum-Dropzone--filled", () => $02af9bc0a51717d4$export$23839b546bc9025, (v) => $02af9bc0a51717d4$export$23839b546bc9025 = v);
154
- $parcel$export($02af9bc0a51717d4$exports, "spectrum-Dropzone-backdrop", () => $02af9bc0a51717d4$export$9707254954de90f5, (v) => $02af9bc0a51717d4$export$9707254954de90f5 = v);
155
- $parcel$export($02af9bc0a51717d4$exports, "spectrum-Dropzone-banner", () => $02af9bc0a51717d4$export$4dbecdbee9ec453f, (v) => $02af9bc0a51717d4$export$4dbecdbee9ec453f = v);
156
- $parcel$export($02af9bc0a51717d4$exports, "spectrum-Dropzone-illustratedMessage", () => $02af9bc0a51717d4$export$b5dc261d2b2c189e, (v) => $02af9bc0a51717d4$export$b5dc261d2b2c189e = v);
157
- $parcel$export($02af9bc0a51717d4$exports, "spectrum-FocusRing-ring", () => $02af9bc0a51717d4$export$4109102f950813a6, (v) => $02af9bc0a51717d4$export$4109102f950813a6 = v);
158
- $parcel$export($02af9bc0a51717d4$exports, "spectrum-FocusRing", () => $02af9bc0a51717d4$export$24c7f46a6e3605dd, (v) => $02af9bc0a51717d4$export$24c7f46a6e3605dd = v);
159
- $parcel$export($02af9bc0a51717d4$exports, "spectrum-FocusRing--quiet", () => $02af9bc0a51717d4$export$2927016961429360, (v) => $02af9bc0a51717d4$export$2927016961429360 = v);
160
- var $02af9bc0a51717d4$export$f39a09f249340e2a;
161
- var $02af9bc0a51717d4$export$8c4ee2c50c22c514;
162
- var $02af9bc0a51717d4$export$ce4e6f6931d40b3b;
163
- var $02af9bc0a51717d4$export$23839b546bc9025;
164
- var $02af9bc0a51717d4$export$9707254954de90f5;
165
- var $02af9bc0a51717d4$export$4dbecdbee9ec453f;
166
- var $02af9bc0a51717d4$export$b5dc261d2b2c189e;
167
- var $02af9bc0a51717d4$export$4109102f950813a6;
168
- var $02af9bc0a51717d4$export$24c7f46a6e3605dd;
169
- var $02af9bc0a51717d4$export$2927016961429360;
170
- $02af9bc0a51717d4$export$f39a09f249340e2a = `b5Gu6W_focus-ring`;
171
- $02af9bc0a51717d4$export$8c4ee2c50c22c514 = `b5Gu6W_i18nFontFamily`;
172
- $02af9bc0a51717d4$export$ce4e6f6931d40b3b = `b5Gu6W_spectrum-Dropzone`;
173
- $02af9bc0a51717d4$export$23839b546bc9025 = `b5Gu6W_spectrum-Dropzone--filled`;
174
- $02af9bc0a51717d4$export$9707254954de90f5 = `b5Gu6W_spectrum-Dropzone-backdrop`;
175
- $02af9bc0a51717d4$export$4dbecdbee9ec453f = `b5Gu6W_spectrum-Dropzone-banner`;
176
- $02af9bc0a51717d4$export$b5dc261d2b2c189e = `b5Gu6W_spectrum-Dropzone-illustratedMessage`;
177
- $02af9bc0a51717d4$export$4109102f950813a6 = `b5Gu6W_spectrum-FocusRing-ring`;
178
- $02af9bc0a51717d4$export$24c7f46a6e3605dd = `b5Gu6W_spectrum-FocusRing ${$02af9bc0a51717d4$export$4109102f950813a6}`;
179
- $02af9bc0a51717d4$export$2927016961429360 = `b5Gu6W_spectrum-FocusRing--quiet`;
180
-
181
-
182
-
183
- // Filter out props used by RAC DropZone that we don't want in RSP DropZone for now.
184
- let $37da9a3796695f28$var$filterProps = (props)=>{
185
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
186
- let { onHoverStart: onHoverStart, onHoverChange: onHoverChange, onHoverEnd: onHoverEnd, ...otherProps } = props;
187
- return otherProps;
188
- };
189
- function $37da9a3796695f28$var$DropZone(props, ref) {
190
- let { children: children, isFilled: isFilled, replaceMessage: replaceMessage, ...otherProps } = props;
191
- let { styleProps: styleProps } = (0, $gvoUB$useStyleProps)(props);
192
- let domRef = (0, $gvoUB$useDOMRef)(ref);
193
- let messageId = (0, $gvoUB$useId)();
194
- let stringFormatter = (0, $gvoUB$useLocalizedStringFormatter)((0, (/*@__PURE__*/$parcel$interopDefault($e4fb2fdca6053dfb$exports))), "@react-spectrum/dropzone");
195
- return /*#__PURE__*/ (0, $gvoUB$react).createElement((0, $gvoUB$DropZone), {
196
- ...(0, $gvoUB$mergeProps)($37da9a3796695f28$var$filterProps(otherProps)),
197
- ...styleProps,
198
- "aria-labelledby": isFilled && messageId,
199
- className: (0, $gvoUB$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($02af9bc0a51717d4$exports))), "spectrum-Dropzone", styleProps.className, {
200
- "spectrum-Dropzone--filled": isFilled
201
- }),
202
- ref: domRef
203
- }, /*#__PURE__*/ (0, $gvoUB$react).createElement((0, $gvoUB$SlotProvider), {
204
- slots: {
205
- illustration: {
206
- UNSAFE_className: (0, $gvoUB$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($02af9bc0a51717d4$exports))), "spectrum-Dropzone-illustratedMessage")
207
- }
208
- }
209
- }, children), /*#__PURE__*/ (0, $gvoUB$react).createElement("div", {
210
- className: (0, $gvoUB$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($02af9bc0a51717d4$exports))), "spectrum-Dropzone-backdrop")
211
- }), /*#__PURE__*/ (0, $gvoUB$react).createElement("div", {
212
- id: messageId,
213
- className: (0, $gvoUB$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($02af9bc0a51717d4$exports))), "spectrum-Dropzone-banner", styleProps.className)
214
- }, replaceMessage ? replaceMessage : stringFormatter.format("replaceMessage")));
215
- }
216
- /**
217
- * A drop zone is an area into which one or multiple objects can be dragged and dropped.
218
- */ let $37da9a3796695f28$export$3c6489d84dc98b6 = /*#__PURE__*/ (0, $gvoUB$react).forwardRef($37da9a3796695f28$var$DropZone);
219
-
220
14
 
221
15
 
222
16
 
@@ -1 +1 @@
1
- {"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;CAUC,GAED,0CAA0C;ACZ1C;;;;;;;;;;CAUC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACwBD,4BAAiB;IACf,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;AACX;;;;;;;;;;;;;;;;;ACrEA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AATA,4CAA+B,CAAC,iBAAiB,CAAC;AAClD,4CAAmC,CAAC,qBAAqB,CAAC;AAC1D,4CAAsC,CAAC,wBAAwB,CAAC;AAChE,2CAA8C,CAAC,gCAAgC,CAAC;AAChF,4CAA+C,CAAC,iCAAiC,CAAC;AAClF,4CAA6C,CAAC,+BAA+B,CAAC;AAC9E,4CAAyD,CAAC,2CAA2C,CAAC;AACtG,4CAA4C,CAAC,8BAA8B,CAAC;AAC5E,4CAAuC,CAAC,0BAA0B,EAAE,0CAA0C,CAAC;AAC/G,4CAA8C,CAAC,gCAAgC,CAAC;;;;AFsBhF,oFAAoF;AACpF,IAAI,oCAAc,CAAC;IACjB,6DAA6D;IAC7D,IAAI,gBAAC,YAAY,iBAAE,aAAa,cAAE,UAAU,EAAE,GAAG,YAAW,GAAG;IAC/D,OAAO;AACT;AAEA,SAAS,+BAAS,KAA4B,EAAE,GAA2B;IACzE,IAAI,YAAC,QAAQ,YAAE,QAAQ,kBAAE,cAAc,EAAE,GAAG,YAAW,GAAG;IAC1D,IAAI,cAAC,UAAU,EAAC,GAAG,CAAA,GAAA,oBAAY,EAAE;IACjC,IAAI,SAAS,CAAA,GAAA,gBAAQ,EAAE;IACvB,IAAI,YAAY,CAAA,GAAA,YAAI;IACpB,IAAI,kBAAkB,CAAA,GAAA,kCAA0B,EAAE,CAAA,GAAA,gEAAW,GAAG;IAEhE,qBACE,gCAAC,CAAA,GAAA,eAAU;QACR,GAAG,CAAA,GAAA,iBAAS,EAAE,kCAAY,YAAY;QACtC,GAAG,UAAU;QACd,mBAAiB,YAAY;QAC7B,WACA,CAAA,GAAA,iBAAS,EACP,CAAA,GAAA,gEAAK,GACL,qBACA,WAAW,SAAS,EACpB;YAAC,6BAA6B;QAAQ;QAExC,KAAK;qBACL,gCAAC,CAAA,GAAA,mBAAW;QACV,OAAO;YACL,cAAc;gBAAC,kBAAkB,CAAA,GAAA,iBAAS,EACxC,CAAA,GAAA,gEAAK,GACL;YACC;QACL;OACC,yBAEH,gCAAC;QAAI,WAAW,CAAA,GAAA,iBAAS,EAAE,CAAA,GAAA,gEAAK,GAAG;sBACnC,gCAAC;QACC,IAAI;QACJ,WACE,CAAA,GAAA,iBAAS,EACP,CAAA,GAAA,gEAAK,GACL,4BACA,WAAW,SAAS;OAGvB,iBAAiB,iBAAiB,gBAAgB,MAAM,CAAC;AAIlE;AAEA;;CAEC,GACD,IAAI,yDAAY,CAAA,GAAA,YAAI,EAAE,UAAU,CAAC;","sources":["packages/@react-spectrum/dropzone/src/index.ts","packages/@react-spectrum/dropzone/src/DropZone.tsx","packages/@react-spectrum/dropzone/src/*.js","packages/@adobe/spectrum-css-temp/components/dropzone/vars.css"],"sourcesContent":["/*\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","/*\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\nimport {AriaLabelingProps, DOMProps, DOMRef, StyleProps} from '@react-types/shared';\nimport {classNames, SlotProvider, useDOMRef, useStyleProps} from '@react-spectrum/utils';\nimport {DropZoneProps, DropZone as RACDropZone} from 'react-aria-components';\n// @ts-ignore\nimport intlMessages from '../intl/*.json';\nimport {mergeProps, useId} from '@react-aria/utils';\nimport React, {ReactNode} from 'react';\nimport styles from '@adobe/spectrum-css-temp/components/dropzone/vars.css';\nimport {useLocalizedStringFormatter} from '@react-aria/i18n';\n\nexport interface SpectrumDropZoneProps extends Omit<DropZoneProps, 'onHoverStart' | 'onHoverChange' | 'onHoverEnd'>, DOMProps, StyleProps, AriaLabelingProps {\n /** The content to display in the drop zone. */\n children: ReactNode,\n /** Whether the drop zone has been filled. */\n isFilled?: boolean,\n /** The message to replace the default banner message that is shown when the drop zone is filled. */\n replaceMessage?: string\n}\n\n// Filter out props used by RAC DropZone that we don't want in RSP DropZone for now.\nlet filterProps = (props) => {\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n let {onHoverStart, onHoverChange, onHoverEnd, ...otherProps} = props;\n return otherProps;\n};\n\nfunction DropZone(props: SpectrumDropZoneProps, ref: DOMRef<HTMLDivElement>) {\n let {children, isFilled, replaceMessage, ...otherProps} = props;\n let {styleProps} = useStyleProps(props);\n let domRef = useDOMRef(ref);\n let messageId = useId();\n let stringFormatter = useLocalizedStringFormatter(intlMessages, '@react-spectrum/dropzone');\n\n return (\n <RACDropZone\n {...mergeProps(filterProps(otherProps))}\n {...styleProps as Omit<React.HTMLAttributes<HTMLElement>, 'onDrop'>}\n aria-labelledby={isFilled && messageId}\n className={\n classNames(\n styles,\n 'spectrum-Dropzone',\n styleProps.className,\n {'spectrum-Dropzone--filled': isFilled}\n )}\n ref={domRef}>\n <SlotProvider\n slots={{\n illustration: {UNSAFE_className: classNames(\n styles,\n 'spectrum-Dropzone-illustratedMessage'\n )}\n }}>\n {children}\n </SlotProvider>\n <div className={classNames(styles, 'spectrum-Dropzone-backdrop')} />\n <div\n id={messageId}\n className={\n classNames(\n styles,\n 'spectrum-Dropzone-banner',\n styleProps.className\n )\n }>\n {replaceMessage ? replaceMessage : stringFormatter.format('replaceMessage')}\n </div>\n </RACDropZone>\n );\n}\n\n/**\n * A drop zone is an area into which one or multiple objects can be dragged and dropped.\n */\nlet _DropZone = React.forwardRef(DropZone);\nexport {_DropZone as DropZone};\n","const _temp0 = require(\"../intl/ar-AE.json\");\nconst _temp1 = require(\"../intl/bg-BG.json\");\nconst _temp2 = require(\"../intl/cs-CZ.json\");\nconst _temp3 = require(\"../intl/da-DK.json\");\nconst _temp4 = require(\"../intl/de-DE.json\");\nconst _temp5 = require(\"../intl/el-GR.json\");\nconst _temp6 = require(\"../intl/en-US.json\");\nconst _temp7 = require(\"../intl/es-ES.json\");\nconst _temp8 = require(\"../intl/et-EE.json\");\nconst _temp9 = require(\"../intl/fi-FI.json\");\nconst _temp10 = require(\"../intl/fr-FR.json\");\nconst _temp11 = require(\"../intl/he-IL.json\");\nconst _temp12 = require(\"../intl/hr-HR.json\");\nconst _temp13 = require(\"../intl/hu-HU.json\");\nconst _temp14 = require(\"../intl/it-IT.json\");\nconst _temp15 = require(\"../intl/ja-JP.json\");\nconst _temp16 = require(\"../intl/ko-KR.json\");\nconst _temp17 = require(\"../intl/lt-LT.json\");\nconst _temp18 = require(\"../intl/lv-LV.json\");\nconst _temp19 = require(\"../intl/nb-NO.json\");\nconst _temp20 = require(\"../intl/nl-NL.json\");\nconst _temp21 = require(\"../intl/pl-PL.json\");\nconst _temp22 = require(\"../intl/pt-BR.json\");\nconst _temp23 = require(\"../intl/pt-PT.json\");\nconst _temp24 = require(\"../intl/ro-RO.json\");\nconst _temp25 = require(\"../intl/ru-RU.json\");\nconst _temp26 = require(\"../intl/sk-SK.json\");\nconst _temp27 = require(\"../intl/sl-SI.json\");\nconst _temp28 = require(\"../intl/sr-SP.json\");\nconst _temp29 = require(\"../intl/sv-SE.json\");\nconst _temp30 = require(\"../intl/tr-TR.json\");\nconst _temp31 = require(\"../intl/uk-UA.json\");\nconst _temp32 = require(\"../intl/zh-CN.json\");\nconst _temp33 = require(\"../intl/zh-TW.json\");\nmodule.exports = {\n \"ar-AE\": _temp0,\n \"bg-BG\": _temp1,\n \"cs-CZ\": _temp2,\n \"da-DK\": _temp3,\n \"de-DE\": _temp4,\n \"el-GR\": _temp5,\n \"en-US\": _temp6,\n \"es-ES\": _temp7,\n \"et-EE\": _temp8,\n \"fi-FI\": _temp9,\n \"fr-FR\": _temp10,\n \"he-IL\": _temp11,\n \"hr-HR\": _temp12,\n \"hu-HU\": _temp13,\n \"it-IT\": _temp14,\n \"ja-JP\": _temp15,\n \"ko-KR\": _temp16,\n \"lt-LT\": _temp17,\n \"lv-LV\": _temp18,\n \"nb-NO\": _temp19,\n \"nl-NL\": _temp20,\n \"pl-PL\": _temp21,\n \"pt-BR\": _temp22,\n \"pt-PT\": _temp23,\n \"ro-RO\": _temp24,\n \"ru-RU\": _temp25,\n \"sk-SK\": _temp26,\n \"sl-SI\": _temp27,\n \"sr-SP\": _temp28,\n \"sv-SE\": _temp29,\n \"tr-TR\": _temp30,\n \"uk-UA\": _temp31,\n \"zh-CN\": _temp32,\n \"zh-TW\": _temp33\n}","/*\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":"module.js.map"}
1
+ {"mappings":";;AAAA;;;;;;;;;;CAUC,GAED,0CAA0C","sources":["packages/@react-spectrum/dropzone/src/index.ts"],"sourcesContent":["/*\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":"module.js.map"}
package/dist/nb-NO.mjs CHANGED
@@ -5,4 +5,4 @@ $710ff1246576a6ec$exports = {
5
5
 
6
6
 
7
7
  export {$710ff1246576a6ec$exports as default};
8
- //# sourceMappingURL=nb-NO.module.js.map
8
+ //# sourceMappingURL=nb-NO.mjs.map
package/dist/nl-NL.mjs CHANGED
@@ -5,4 +5,4 @@ $000943b4c8779050$exports = {
5
5
 
6
6
 
7
7
  export {$000943b4c8779050$exports as default};
8
- //# sourceMappingURL=nl-NL.module.js.map
8
+ //# sourceMappingURL=nl-NL.mjs.map
package/dist/pl-PL.mjs CHANGED
@@ -5,4 +5,4 @@ $7f2e93329f476e76$exports = {
5
5
 
6
6
 
7
7
  export {$7f2e93329f476e76$exports as default};
8
- //# sourceMappingURL=pl-PL.module.js.map
8
+ //# sourceMappingURL=pl-PL.mjs.map
package/dist/pt-BR.mjs CHANGED
@@ -5,4 +5,4 @@ $fd69b558842c4d71$exports = {
5
5
 
6
6
 
7
7
  export {$fd69b558842c4d71$exports as default};
8
- //# sourceMappingURL=pt-BR.module.js.map
8
+ //# sourceMappingURL=pt-BR.mjs.map
package/dist/pt-PT.mjs CHANGED
@@ -5,4 +5,4 @@ $7a646e214fd1cba2$exports = {
5
5
 
6
6
 
7
7
  export {$7a646e214fd1cba2$exports as default};
8
- //# sourceMappingURL=pt-PT.module.js.map
8
+ //# sourceMappingURL=pt-PT.mjs.map
package/dist/ro-RO.mjs CHANGED
@@ -5,4 +5,4 @@ $93014858e8228579$exports = {
5
5
 
6
6
 
7
7
  export {$93014858e8228579$exports as default};
8
- //# sourceMappingURL=ro-RO.module.js.map
8
+ //# sourceMappingURL=ro-RO.mjs.map
package/dist/ru-RU.mjs CHANGED
@@ -5,4 +5,4 @@ $2769c5d71042ac27$exports = {
5
5
 
6
6
 
7
7
  export {$2769c5d71042ac27$exports as default};
8
- //# sourceMappingURL=ru-RU.module.js.map
8
+ //# sourceMappingURL=ru-RU.mjs.map
package/dist/sk-SK.mjs CHANGED
@@ -5,4 +5,4 @@ $e689339abe8753c7$exports = {
5
5
 
6
6
 
7
7
  export {$e689339abe8753c7$exports as default};
8
- //# sourceMappingURL=sk-SK.module.js.map
8
+ //# sourceMappingURL=sk-SK.mjs.map
package/dist/sl-SI.mjs CHANGED
@@ -5,4 +5,4 @@ $7bfc0ba33fedfe25$exports = {
5
5
 
6
6
 
7
7
  export {$7bfc0ba33fedfe25$exports as default};
8
- //# sourceMappingURL=sl-SI.module.js.map
8
+ //# sourceMappingURL=sl-SI.mjs.map
package/dist/sr-SP.mjs CHANGED
@@ -5,4 +5,4 @@ $0bb12c08fb7d59be$exports = {
5
5
 
6
6
 
7
7
  export {$0bb12c08fb7d59be$exports as default};
8
- //# sourceMappingURL=sr-SP.module.js.map
8
+ //# sourceMappingURL=sr-SP.mjs.map
package/dist/sv-SE.mjs CHANGED
@@ -5,4 +5,4 @@ $b8c50d0f68c95c3d$exports = {
5
5
 
6
6
 
7
7
  export {$b8c50d0f68c95c3d$exports as default};
8
- //# sourceMappingURL=sv-SE.module.js.map
8
+ //# sourceMappingURL=sv-SE.mjs.map
package/dist/tr-TR.mjs CHANGED
@@ -5,4 +5,4 @@ $711c9bc16244510d$exports = {
5
5
 
6
6
 
7
7
  export {$711c9bc16244510d$exports as default};
8
- //# sourceMappingURL=tr-TR.module.js.map
8
+ //# sourceMappingURL=tr-TR.mjs.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"}
package/dist/uk-UA.mjs CHANGED
@@ -5,4 +5,4 @@ $6229f5290723ff0e$exports = {
5
5
 
6
6
 
7
7
  export {$6229f5290723ff0e$exports as default};
8
- //# sourceMappingURL=uk-UA.module.js.map
8
+ //# sourceMappingURL=uk-UA.mjs.map