@react-spectrum/dropzone 3.0.20 → 3.1.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.
- package/dist/import.mjs +2 -2
- package/dist/main.js +2 -2
- package/dist/main.js.map +1 -1
- package/dist/module.js +2 -2
- package/dist/module.js.map +1 -1
- package/dist/types/src/index.d.ts +2 -0
- package/package.json +13 -29
- package/src/index.ts +3 -2
- package/dist/DropZone.main.js +0 -83
- package/dist/DropZone.main.js.map +0 -1
- package/dist/DropZone.mjs +0 -78
- package/dist/DropZone.module.js +0 -78
- package/dist/DropZone.module.js.map +0 -1
- package/dist/ar-AE.main.js +0 -6
- package/dist/ar-AE.main.js.map +0 -1
- package/dist/ar-AE.mjs +0 -8
- package/dist/ar-AE.module.js +0 -8
- package/dist/ar-AE.module.js.map +0 -1
- package/dist/bg-BG.main.js +0 -6
- package/dist/bg-BG.main.js.map +0 -1
- package/dist/bg-BG.mjs +0 -8
- package/dist/bg-BG.module.js +0 -8
- package/dist/bg-BG.module.js.map +0 -1
- package/dist/cs-CZ.main.js +0 -6
- package/dist/cs-CZ.main.js.map +0 -1
- package/dist/cs-CZ.mjs +0 -8
- package/dist/cs-CZ.module.js +0 -8
- package/dist/cs-CZ.module.js.map +0 -1
- package/dist/da-DK.main.js +0 -6
- package/dist/da-DK.main.js.map +0 -1
- package/dist/da-DK.mjs +0 -8
- package/dist/da-DK.module.js +0 -8
- package/dist/da-DK.module.js.map +0 -1
- package/dist/de-DE.main.js +0 -6
- package/dist/de-DE.main.js.map +0 -1
- package/dist/de-DE.mjs +0 -8
- package/dist/de-DE.module.js +0 -8
- package/dist/de-DE.module.js.map +0 -1
- package/dist/dropzone.cc11cd55.css +0 -169
- package/dist/dropzone.cc11cd55.css.map +0 -1
- package/dist/dropzone_vars_css.main.js +0 -38
- package/dist/dropzone_vars_css.main.js.map +0 -1
- package/dist/dropzone_vars_css.mjs +0 -40
- package/dist/dropzone_vars_css.module.js +0 -40
- package/dist/dropzone_vars_css.module.js.map +0 -1
- package/dist/el-GR.main.js +0 -6
- package/dist/el-GR.main.js.map +0 -1
- package/dist/el-GR.mjs +0 -8
- package/dist/el-GR.module.js +0 -8
- package/dist/el-GR.module.js.map +0 -1
- package/dist/en-US.main.js +0 -6
- package/dist/en-US.main.js.map +0 -1
- package/dist/en-US.mjs +0 -8
- package/dist/en-US.module.js +0 -8
- package/dist/en-US.module.js.map +0 -1
- package/dist/es-ES.main.js +0 -6
- package/dist/es-ES.main.js.map +0 -1
- package/dist/es-ES.mjs +0 -8
- package/dist/es-ES.module.js +0 -8
- package/dist/es-ES.module.js.map +0 -1
- package/dist/et-EE.main.js +0 -6
- package/dist/et-EE.main.js.map +0 -1
- package/dist/et-EE.mjs +0 -8
- package/dist/et-EE.module.js +0 -8
- package/dist/et-EE.module.js.map +0 -1
- package/dist/fi-FI.main.js +0 -6
- package/dist/fi-FI.main.js.map +0 -1
- package/dist/fi-FI.mjs +0 -8
- package/dist/fi-FI.module.js +0 -8
- package/dist/fi-FI.module.js.map +0 -1
- package/dist/fr-FR.main.js +0 -6
- package/dist/fr-FR.main.js.map +0 -1
- package/dist/fr-FR.mjs +0 -8
- package/dist/fr-FR.module.js +0 -8
- package/dist/fr-FR.module.js.map +0 -1
- package/dist/he-IL.main.js +0 -6
- package/dist/he-IL.main.js.map +0 -1
- package/dist/he-IL.mjs +0 -8
- package/dist/he-IL.module.js +0 -8
- package/dist/he-IL.module.js.map +0 -1
- package/dist/hr-HR.main.js +0 -6
- package/dist/hr-HR.main.js.map +0 -1
- package/dist/hr-HR.mjs +0 -8
- package/dist/hr-HR.module.js +0 -8
- package/dist/hr-HR.module.js.map +0 -1
- package/dist/hu-HU.main.js +0 -6
- package/dist/hu-HU.main.js.map +0 -1
- package/dist/hu-HU.mjs +0 -8
- package/dist/hu-HU.module.js +0 -8
- package/dist/hu-HU.module.js.map +0 -1
- package/dist/intlStrings.main.js +0 -108
- package/dist/intlStrings.main.js.map +0 -1
- package/dist/intlStrings.mjs +0 -110
- package/dist/intlStrings.module.js +0 -110
- package/dist/intlStrings.module.js.map +0 -1
- package/dist/it-IT.main.js +0 -6
- package/dist/it-IT.main.js.map +0 -1
- package/dist/it-IT.mjs +0 -8
- package/dist/it-IT.module.js +0 -8
- package/dist/it-IT.module.js.map +0 -1
- package/dist/ja-JP.main.js +0 -6
- package/dist/ja-JP.main.js.map +0 -1
- package/dist/ja-JP.mjs +0 -8
- package/dist/ja-JP.module.js +0 -8
- package/dist/ja-JP.module.js.map +0 -1
- package/dist/ko-KR.main.js +0 -6
- package/dist/ko-KR.main.js.map +0 -1
- package/dist/ko-KR.mjs +0 -8
- package/dist/ko-KR.module.js +0 -8
- package/dist/ko-KR.module.js.map +0 -1
- package/dist/lt-LT.main.js +0 -6
- package/dist/lt-LT.main.js.map +0 -1
- package/dist/lt-LT.mjs +0 -8
- package/dist/lt-LT.module.js +0 -8
- package/dist/lt-LT.module.js.map +0 -1
- package/dist/lv-LV.main.js +0 -6
- package/dist/lv-LV.main.js.map +0 -1
- package/dist/lv-LV.mjs +0 -8
- package/dist/lv-LV.module.js +0 -8
- package/dist/lv-LV.module.js.map +0 -1
- package/dist/nb-NO.main.js +0 -6
- package/dist/nb-NO.main.js.map +0 -1
- package/dist/nb-NO.mjs +0 -8
- package/dist/nb-NO.module.js +0 -8
- package/dist/nb-NO.module.js.map +0 -1
- package/dist/nl-NL.main.js +0 -6
- package/dist/nl-NL.main.js.map +0 -1
- package/dist/nl-NL.mjs +0 -8
- package/dist/nl-NL.module.js +0 -8
- package/dist/nl-NL.module.js.map +0 -1
- package/dist/pl-PL.main.js +0 -6
- package/dist/pl-PL.main.js.map +0 -1
- package/dist/pl-PL.mjs +0 -8
- package/dist/pl-PL.module.js +0 -8
- package/dist/pl-PL.module.js.map +0 -1
- package/dist/pt-BR.main.js +0 -6
- package/dist/pt-BR.main.js.map +0 -1
- package/dist/pt-BR.mjs +0 -8
- package/dist/pt-BR.module.js +0 -8
- package/dist/pt-BR.module.js.map +0 -1
- package/dist/pt-PT.main.js +0 -6
- package/dist/pt-PT.main.js.map +0 -1
- package/dist/pt-PT.mjs +0 -8
- package/dist/pt-PT.module.js +0 -8
- package/dist/pt-PT.module.js.map +0 -1
- package/dist/ro-RO.main.js +0 -6
- package/dist/ro-RO.main.js.map +0 -1
- package/dist/ro-RO.mjs +0 -8
- package/dist/ro-RO.module.js +0 -8
- package/dist/ro-RO.module.js.map +0 -1
- package/dist/ru-RU.main.js +0 -6
- package/dist/ru-RU.main.js.map +0 -1
- package/dist/ru-RU.mjs +0 -8
- package/dist/ru-RU.module.js +0 -8
- package/dist/ru-RU.module.js.map +0 -1
- package/dist/sk-SK.main.js +0 -6
- package/dist/sk-SK.main.js.map +0 -1
- package/dist/sk-SK.mjs +0 -8
- package/dist/sk-SK.module.js +0 -8
- package/dist/sk-SK.module.js.map +0 -1
- package/dist/sl-SI.main.js +0 -6
- package/dist/sl-SI.main.js.map +0 -1
- package/dist/sl-SI.mjs +0 -8
- package/dist/sl-SI.module.js +0 -8
- package/dist/sl-SI.module.js.map +0 -1
- package/dist/sr-SP.main.js +0 -6
- package/dist/sr-SP.main.js.map +0 -1
- package/dist/sr-SP.mjs +0 -8
- package/dist/sr-SP.module.js +0 -8
- package/dist/sr-SP.module.js.map +0 -1
- package/dist/sv-SE.main.js +0 -6
- package/dist/sv-SE.main.js.map +0 -1
- package/dist/sv-SE.mjs +0 -8
- package/dist/sv-SE.module.js +0 -8
- package/dist/sv-SE.module.js.map +0 -1
- package/dist/tr-TR.main.js +0 -6
- package/dist/tr-TR.main.js.map +0 -1
- package/dist/tr-TR.mjs +0 -8
- package/dist/tr-TR.module.js +0 -8
- package/dist/tr-TR.module.js.map +0 -1
- package/dist/types.d.ts +0 -17
- package/dist/types.d.ts.map +0 -1
- package/dist/uk-UA.main.js +0 -6
- package/dist/uk-UA.main.js.map +0 -1
- package/dist/uk-UA.mjs +0 -8
- package/dist/uk-UA.module.js +0 -8
- package/dist/uk-UA.module.js.map +0 -1
- package/dist/zh-CN.main.js +0 -6
- package/dist/zh-CN.main.js.map +0 -1
- package/dist/zh-CN.mjs +0 -8
- package/dist/zh-CN.module.js +0 -8
- package/dist/zh-CN.module.js.map +0 -1
- package/dist/zh-TW.main.js +0 -6
- package/dist/zh-TW.main.js.map +0 -1
- package/dist/zh-TW.mjs +0 -8
- package/dist/zh-TW.module.js +0 -8
- package/dist/zh-TW.module.js.map +0 -1
- package/src/DropZone.tsx +0 -92
package/dist/import.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {DropZone as $
|
|
1
|
+
import {DropZone as $2a76fd95e94b3547$re_export$DropZone} from "@adobe/react-spectrum/DropZone";
|
|
2
2
|
|
|
3
3
|
/*
|
|
4
4
|
* Copyright 2023 Adobe. All rights reserved.
|
|
@@ -14,5 +14,5 @@ import {DropZone as $37da9a3796695f28$export$3c6489d84dc98b6} from "./DropZone.m
|
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
export {$
|
|
17
|
+
export {$2a76fd95e94b3547$re_export$DropZone as DropZone};
|
|
18
18
|
//# sourceMappingURL=module.js.map
|
package/dist/main.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
var $
|
|
1
|
+
var $bGp0C$adobereactspectrumDropZone = require("@adobe/react-spectrum/DropZone");
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
function $parcel$export(e, n, v, s) {
|
|
5
5
|
Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
|
|
6
6
|
}
|
|
7
7
|
|
|
8
|
-
$parcel$export(module.exports, "DropZone", ()
|
|
8
|
+
$parcel$export(module.exports, "DropZone", function () { return $bGp0C$adobereactspectrumDropZone.DropZone; });
|
|
9
9
|
/*
|
|
10
10
|
* Copyright 2023 Adobe. All rights reserved.
|
|
11
11
|
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
package/dist/main.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
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 '
|
|
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 '@adobe/react-spectrum/DropZone';\n\nexport type {SpectrumDropZoneProps} from '@adobe/react-spectrum/DropZone';\n"],"names":[],"version":3,"file":"main.js.map"}
|
package/dist/module.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {DropZone as $
|
|
1
|
+
import {DropZone as $2a76fd95e94b3547$re_export$DropZone} from "@adobe/react-spectrum/DropZone";
|
|
2
2
|
|
|
3
3
|
/*
|
|
4
4
|
* Copyright 2023 Adobe. All rights reserved.
|
|
@@ -14,5 +14,5 @@ import {DropZone as $37da9a3796695f28$export$3c6489d84dc98b6} from "./DropZone.m
|
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
export {$
|
|
17
|
+
export {$2a76fd95e94b3547$re_export$DropZone as DropZone};
|
|
18
18
|
//# sourceMappingURL=module.js.map
|
package/dist/module.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
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 '
|
|
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 '@adobe/react-spectrum/DropZone';\n\nexport type {SpectrumDropZoneProps} from '@adobe/react-spectrum/DropZone';\n"],"names":[],"version":3,"file":"module.js.map"}
|
package/package.json
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-spectrum/dropzone",
|
|
3
|
-
"version": "3.0
|
|
3
|
+
"version": "3.1.0",
|
|
4
4
|
"description": "Spectrum UI components in React",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"main": "dist/main.js",
|
|
7
7
|
"module": "dist/module.js",
|
|
8
8
|
"exports": {
|
|
9
|
-
"
|
|
10
|
-
|
|
11
|
-
"./dist/types.d.ts",
|
|
12
|
-
"./
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
"
|
|
9
|
+
".": {
|
|
10
|
+
"source": "./src/index.ts",
|
|
11
|
+
"types": "./dist/types/src/index.d.ts",
|
|
12
|
+
"import": "./dist/import.mjs",
|
|
13
|
+
"require": "./dist/main.js"
|
|
14
|
+
},
|
|
15
|
+
"./package.json": "./package.json"
|
|
16
16
|
},
|
|
17
|
-
"types": "dist/types.d.ts",
|
|
17
|
+
"types": "dist/types/src/index.d.ts",
|
|
18
18
|
"source": "src/index.ts",
|
|
19
19
|
"files": [
|
|
20
20
|
"dist",
|
|
@@ -24,41 +24,25 @@
|
|
|
24
24
|
"*.css"
|
|
25
25
|
],
|
|
26
26
|
"targets": {
|
|
27
|
-
"
|
|
28
|
-
"includeNodeModules": [
|
|
29
|
-
"@adobe/spectrum-css-temp"
|
|
30
|
-
]
|
|
31
|
-
},
|
|
32
|
-
"module": {
|
|
33
|
-
"includeNodeModules": [
|
|
34
|
-
"@adobe/spectrum-css-temp"
|
|
35
|
-
]
|
|
36
|
-
}
|
|
27
|
+
"types": false
|
|
37
28
|
},
|
|
38
29
|
"repository": {
|
|
39
30
|
"type": "git",
|
|
40
31
|
"url": "https://github.com/adobe/react-spectrum"
|
|
41
32
|
},
|
|
42
33
|
"dependencies": {
|
|
43
|
-
"@react-
|
|
44
|
-
"@
|
|
45
|
-
"@react-spectrum/utils": "^3.12.11",
|
|
46
|
-
"@react-types/shared": "^3.33.0",
|
|
47
|
-
"@swc/helpers": "^0.5.0",
|
|
48
|
-
"react-aria-components": "^1.15.0"
|
|
34
|
+
"@adobe/react-spectrum": "3.47.0",
|
|
35
|
+
"@swc/helpers": "^0.5.0"
|
|
49
36
|
},
|
|
50
37
|
"devDependencies": {
|
|
51
|
-
"@adobe/spectrum-css-temp": "3.0.0-alpha.1",
|
|
52
|
-
"@react-spectrum/test-utils-internal": "3.0.0-alpha.1",
|
|
53
38
|
"react-dom": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0"
|
|
54
39
|
},
|
|
55
40
|
"peerDependencies": {
|
|
56
|
-
"@react-spectrum/provider": "^3.0.0",
|
|
57
41
|
"react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1",
|
|
58
42
|
"react-dom": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1"
|
|
59
43
|
},
|
|
60
44
|
"publishConfig": {
|
|
61
45
|
"access": "public"
|
|
62
46
|
},
|
|
63
|
-
"gitHead": "
|
|
47
|
+
"gitHead": "a6999bdf494a2e9c0381a5881908328bdd22ddae"
|
|
64
48
|
}
|
package/src/index.ts
CHANGED
|
@@ -12,5 +12,6 @@
|
|
|
12
12
|
|
|
13
13
|
/// <reference types="css-module-types" />
|
|
14
14
|
|
|
15
|
-
export {DropZone} from '
|
|
16
|
-
|
|
15
|
+
export {DropZone} from '@adobe/react-spectrum/DropZone';
|
|
16
|
+
|
|
17
|
+
export type {SpectrumDropZoneProps} from '@adobe/react-spectrum/DropZone';
|
package/dist/DropZone.main.js
DELETED
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
var $338e657e2a59c652$exports = require("./intlStrings.main.js");
|
|
2
|
-
require("./dropzone.cc11cd55.css");
|
|
3
|
-
var $880edb5e40e39939$exports = require("./dropzone_vars_css.main.js");
|
|
4
|
-
var $7vttB$reactspectrumutils = require("@react-spectrum/utils");
|
|
5
|
-
var $7vttB$reactariacomponents = require("react-aria-components");
|
|
6
|
-
var $7vttB$reactariautils = require("@react-aria/utils");
|
|
7
|
-
var $7vttB$react = require("react");
|
|
8
|
-
var $7vttB$reactariai18n = require("@react-aria/i18n");
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
function $parcel$interopDefault(a) {
|
|
12
|
-
return a && a.__esModule ? a.default : a;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
function $parcel$export(e, n, v, s) {
|
|
16
|
-
Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
$parcel$export(module.exports, "DropZone", () => $f7b7e7956f17a6e7$export$3c6489d84dc98b6);
|
|
20
|
-
/*
|
|
21
|
-
* Copyright 2023 Adobe. All rights reserved.
|
|
22
|
-
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
23
|
-
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
24
|
-
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
25
|
-
*
|
|
26
|
-
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
27
|
-
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
28
|
-
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
29
|
-
* governing permissions and limitations under the License.
|
|
30
|
-
*/
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
// Filter out props used by RAC DropZone that we don't want in RSP DropZone for now.
|
|
38
|
-
let $f7b7e7956f17a6e7$var$filterProps = (props)=>{
|
|
39
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
40
|
-
let { onHoverStart: onHoverStart, onHoverChange: onHoverChange, onHoverEnd: onHoverEnd, ...otherProps } = props;
|
|
41
|
-
return otherProps;
|
|
42
|
-
};
|
|
43
|
-
const $f7b7e7956f17a6e7$export$3c6489d84dc98b6 = /*#__PURE__*/ (0, ($parcel$interopDefault($7vttB$react))).forwardRef(function DropZone(props, ref) {
|
|
44
|
-
let { children: children, isFilled: isFilled, replaceMessage: replaceMessage, ...otherProps } = props;
|
|
45
|
-
let { styleProps: styleProps } = (0, $7vttB$reactspectrumutils.useStyleProps)(props);
|
|
46
|
-
let domRef = (0, $7vttB$reactspectrumutils.useDOMRef)(ref);
|
|
47
|
-
let messageId = (0, $7vttB$reactariautils.useId)();
|
|
48
|
-
let headingId = (0, $7vttB$reactariautils.useId)();
|
|
49
|
-
let stringFormatter = (0, $7vttB$reactariai18n.useLocalizedStringFormatter)((0, ($parcel$interopDefault($338e657e2a59c652$exports))), '@react-spectrum/dropzone');
|
|
50
|
-
let ariaLabelledby = isFilled ? `${headingId} ${messageId}` : headingId;
|
|
51
|
-
return /*#__PURE__*/ (0, ($parcel$interopDefault($7vttB$react))).createElement((0, $7vttB$reactariacomponents.Provider), {
|
|
52
|
-
values: [
|
|
53
|
-
[
|
|
54
|
-
(0, $7vttB$reactariacomponents.HeadingContext),
|
|
55
|
-
{
|
|
56
|
-
id: headingId
|
|
57
|
-
}
|
|
58
|
-
]
|
|
59
|
-
]
|
|
60
|
-
}, /*#__PURE__*/ (0, ($parcel$interopDefault($7vttB$react))).createElement((0, $7vttB$reactariacomponents.DropZone), {
|
|
61
|
-
...(0, $7vttB$reactariautils.mergeProps)($f7b7e7956f17a6e7$var$filterProps(otherProps)),
|
|
62
|
-
...styleProps,
|
|
63
|
-
"aria-labelledby": ariaLabelledby,
|
|
64
|
-
className: (0, $7vttB$reactspectrumutils.classNames)((0, ($parcel$interopDefault($880edb5e40e39939$exports))), 'spectrum-Dropzone', styleProps.className, {
|
|
65
|
-
'spectrum-Dropzone--filled': isFilled
|
|
66
|
-
}),
|
|
67
|
-
ref: domRef
|
|
68
|
-
}, /*#__PURE__*/ (0, ($parcel$interopDefault($7vttB$react))).createElement((0, $7vttB$reactspectrumutils.SlotProvider), {
|
|
69
|
-
slots: {
|
|
70
|
-
illustration: {
|
|
71
|
-
UNSAFE_className: (0, $7vttB$reactspectrumutils.classNames)((0, ($parcel$interopDefault($880edb5e40e39939$exports))), 'spectrum-Dropzone-illustratedMessage')
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
}, children), /*#__PURE__*/ (0, ($parcel$interopDefault($7vttB$react))).createElement("div", {
|
|
75
|
-
className: (0, $7vttB$reactspectrumutils.classNames)((0, ($parcel$interopDefault($880edb5e40e39939$exports))), 'spectrum-Dropzone-backdrop')
|
|
76
|
-
}), /*#__PURE__*/ (0, ($parcel$interopDefault($7vttB$react))).createElement("div", {
|
|
77
|
-
id: messageId,
|
|
78
|
-
className: (0, $7vttB$reactspectrumutils.classNames)((0, ($parcel$interopDefault($880edb5e40e39939$exports))), 'spectrum-Dropzone-banner', styleProps.className)
|
|
79
|
-
}, replaceMessage ? replaceMessage : stringFormatter.format('replaceMessage'))));
|
|
80
|
-
});
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
//# sourceMappingURL=DropZone.main.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"mappings":";;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;CAUC;;;;;;;AAqBD,oFAAoF;AACpF,IAAI,oCAAc,CAAC;IACjB,6DAA6D;IAC7D,IAAI,gBAAC,YAAY,iBAAE,aAAa,cAAE,UAAU,EAAE,GAAG,YAAW,GAAG;IAC/D,OAAO;AACT;AAKO,MAAM,yDAAW,CAAA,GAAA,sCAAI,EAAE,UAAU,CAAC,SAAS,SAAS,KAA4B,EAAE,GAA2B;IAClH,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,YAAY,CAAA,GAAA,2BAAI;IACpB,IAAI,kBAAkB,CAAA,GAAA,gDAA0B,EAAE,CAAA,GAAA,mDAAW,GAAG;IAChE,IAAI,iBAAiB,WAAW,GAAG,UAAU,CAAC,EAAE,WAAW,GAAG;IAE9D,qBACE,0DAAC,CAAA,GAAA,mCAAO;QACN,QAAQ;YACN;gBAAC,CAAA,GAAA,yCAAa;gBAAG;oBAAC,IAAI;gBAAS;aAAE;SAClC;qBACD,0DAAC,CAAA,GAAA,mCAAU;QACR,GAAG,CAAA,GAAA,gCAAS,EAAE,kCAAY,YAAY;QACtC,GAAG,UAAU;QACd,mBAAiB;QACjB,WACA,CAAA,GAAA,oCAAS,EACP,CAAA,GAAA,mDAAK,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,mDAAK,GACL;YACC;QACL;OACC,yBAEH,0DAAC;QAAI,WAAW,CAAA,GAAA,oCAAS,EAAE,CAAA,GAAA,mDAAK,GAAG;sBACnC,0DAAC;QACC,IAAI;QACJ,WACE,CAAA,GAAA,oCAAS,EACP,CAAA,GAAA,mDAAK,GACL,4BACA,WAAW,SAAS;OAGvB,iBAAiB,iBAAiB,gBAAgB,MAAM,CAAC;AAKpE","sources":["packages/@react-spectrum/dropzone/src/DropZone.tsx"],"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\nimport {AriaLabelingProps, DOMProps, DOMRef, StyleProps} from '@react-types/shared';\nimport {classNames, SlotProvider, useDOMRef, useStyleProps} from '@react-spectrum/utils';\nimport {DropZoneProps, HeadingContext, Provider, 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' | 'isDisabled' | 'className' | 'style' | 'render'>, 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\n/**\n * A drop zone is an area into which one or multiple objects can be dragged and dropped.\n */\nexport const DropZone = React.forwardRef(function 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 headingId = useId();\n let stringFormatter = useLocalizedStringFormatter(intlMessages, '@react-spectrum/dropzone');\n let ariaLabelledby = isFilled ? `${headingId} ${messageId}` : headingId;\n\n return (\n <Provider\n values={[\n [HeadingContext, {id: headingId}]\n ]}>\n <RACDropZone\n {...mergeProps(filterProps(otherProps))}\n {...styleProps as Omit<React.HTMLAttributes<HTMLElement>, 'onDrop'>}\n aria-labelledby={ariaLabelledby}\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 </Provider>\n );\n});\n"],"names":[],"version":3,"file":"DropZone.main.js.map"}
|
package/dist/DropZone.mjs
DELETED
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
import $fl6Ye$intlStringsmodulejs from "./intlStrings.mjs";
|
|
2
|
-
import "./dropzone.cc11cd55.css";
|
|
3
|
-
import $fl6Ye$dropzone_vars_cssmodulejs from "./dropzone_vars_css.mjs";
|
|
4
|
-
import {useStyleProps as $fl6Ye$useStyleProps, useDOMRef as $fl6Ye$useDOMRef, classNames as $fl6Ye$classNames, SlotProvider as $fl6Ye$SlotProvider} from "@react-spectrum/utils";
|
|
5
|
-
import {Provider as $fl6Ye$Provider, HeadingContext as $fl6Ye$HeadingContext, DropZone as $fl6Ye$DropZone} from "react-aria-components";
|
|
6
|
-
import {useId as $fl6Ye$useId, mergeProps as $fl6Ye$mergeProps} from "@react-aria/utils";
|
|
7
|
-
import $fl6Ye$react from "react";
|
|
8
|
-
import {useLocalizedStringFormatter as $fl6Ye$useLocalizedStringFormatter} from "@react-aria/i18n";
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
function $parcel$interopDefault(a) {
|
|
12
|
-
return a && a.__esModule ? a.default : a;
|
|
13
|
-
}
|
|
14
|
-
/*
|
|
15
|
-
* Copyright 2023 Adobe. All rights reserved.
|
|
16
|
-
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
17
|
-
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
18
|
-
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
19
|
-
*
|
|
20
|
-
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
21
|
-
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
22
|
-
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
23
|
-
* governing permissions and limitations under the License.
|
|
24
|
-
*/
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
// Filter out props used by RAC DropZone that we don't want in RSP DropZone for now.
|
|
32
|
-
let $37da9a3796695f28$var$filterProps = (props)=>{
|
|
33
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
34
|
-
let { onHoverStart: onHoverStart, onHoverChange: onHoverChange, onHoverEnd: onHoverEnd, ...otherProps } = props;
|
|
35
|
-
return otherProps;
|
|
36
|
-
};
|
|
37
|
-
const $37da9a3796695f28$export$3c6489d84dc98b6 = /*#__PURE__*/ (0, $fl6Ye$react).forwardRef(function DropZone(props, ref) {
|
|
38
|
-
let { children: children, isFilled: isFilled, replaceMessage: replaceMessage, ...otherProps } = props;
|
|
39
|
-
let { styleProps: styleProps } = (0, $fl6Ye$useStyleProps)(props);
|
|
40
|
-
let domRef = (0, $fl6Ye$useDOMRef)(ref);
|
|
41
|
-
let messageId = (0, $fl6Ye$useId)();
|
|
42
|
-
let headingId = (0, $fl6Ye$useId)();
|
|
43
|
-
let stringFormatter = (0, $fl6Ye$useLocalizedStringFormatter)((0, ($parcel$interopDefault($fl6Ye$intlStringsmodulejs))), '@react-spectrum/dropzone');
|
|
44
|
-
let ariaLabelledby = isFilled ? `${headingId} ${messageId}` : headingId;
|
|
45
|
-
return /*#__PURE__*/ (0, $fl6Ye$react).createElement((0, $fl6Ye$Provider), {
|
|
46
|
-
values: [
|
|
47
|
-
[
|
|
48
|
-
(0, $fl6Ye$HeadingContext),
|
|
49
|
-
{
|
|
50
|
-
id: headingId
|
|
51
|
-
}
|
|
52
|
-
]
|
|
53
|
-
]
|
|
54
|
-
}, /*#__PURE__*/ (0, $fl6Ye$react).createElement((0, $fl6Ye$DropZone), {
|
|
55
|
-
...(0, $fl6Ye$mergeProps)($37da9a3796695f28$var$filterProps(otherProps)),
|
|
56
|
-
...styleProps,
|
|
57
|
-
"aria-labelledby": ariaLabelledby,
|
|
58
|
-
className: (0, $fl6Ye$classNames)((0, ($parcel$interopDefault($fl6Ye$dropzone_vars_cssmodulejs))), 'spectrum-Dropzone', styleProps.className, {
|
|
59
|
-
'spectrum-Dropzone--filled': isFilled
|
|
60
|
-
}),
|
|
61
|
-
ref: domRef
|
|
62
|
-
}, /*#__PURE__*/ (0, $fl6Ye$react).createElement((0, $fl6Ye$SlotProvider), {
|
|
63
|
-
slots: {
|
|
64
|
-
illustration: {
|
|
65
|
-
UNSAFE_className: (0, $fl6Ye$classNames)((0, ($parcel$interopDefault($fl6Ye$dropzone_vars_cssmodulejs))), 'spectrum-Dropzone-illustratedMessage')
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
}, children), /*#__PURE__*/ (0, $fl6Ye$react).createElement("div", {
|
|
69
|
-
className: (0, $fl6Ye$classNames)((0, ($parcel$interopDefault($fl6Ye$dropzone_vars_cssmodulejs))), 'spectrum-Dropzone-backdrop')
|
|
70
|
-
}), /*#__PURE__*/ (0, $fl6Ye$react).createElement("div", {
|
|
71
|
-
id: messageId,
|
|
72
|
-
className: (0, $fl6Ye$classNames)((0, ($parcel$interopDefault($fl6Ye$dropzone_vars_cssmodulejs))), 'spectrum-Dropzone-banner', styleProps.className)
|
|
73
|
-
}, replaceMessage ? replaceMessage : stringFormatter.format('replaceMessage'))));
|
|
74
|
-
});
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
export {$37da9a3796695f28$export$3c6489d84dc98b6 as DropZone};
|
|
78
|
-
//# sourceMappingURL=DropZone.module.js.map
|
package/dist/DropZone.module.js
DELETED
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
import $fl6Ye$intlStringsmodulejs from "./intlStrings.module.js";
|
|
2
|
-
import "./dropzone.cc11cd55.css";
|
|
3
|
-
import $fl6Ye$dropzone_vars_cssmodulejs from "./dropzone_vars_css.module.js";
|
|
4
|
-
import {useStyleProps as $fl6Ye$useStyleProps, useDOMRef as $fl6Ye$useDOMRef, classNames as $fl6Ye$classNames, SlotProvider as $fl6Ye$SlotProvider} from "@react-spectrum/utils";
|
|
5
|
-
import {Provider as $fl6Ye$Provider, HeadingContext as $fl6Ye$HeadingContext, DropZone as $fl6Ye$DropZone} from "react-aria-components";
|
|
6
|
-
import {useId as $fl6Ye$useId, mergeProps as $fl6Ye$mergeProps} from "@react-aria/utils";
|
|
7
|
-
import $fl6Ye$react from "react";
|
|
8
|
-
import {useLocalizedStringFormatter as $fl6Ye$useLocalizedStringFormatter} from "@react-aria/i18n";
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
function $parcel$interopDefault(a) {
|
|
12
|
-
return a && a.__esModule ? a.default : a;
|
|
13
|
-
}
|
|
14
|
-
/*
|
|
15
|
-
* Copyright 2023 Adobe. All rights reserved.
|
|
16
|
-
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
17
|
-
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
18
|
-
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
19
|
-
*
|
|
20
|
-
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
21
|
-
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
22
|
-
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
23
|
-
* governing permissions and limitations under the License.
|
|
24
|
-
*/
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
// Filter out props used by RAC DropZone that we don't want in RSP DropZone for now.
|
|
32
|
-
let $37da9a3796695f28$var$filterProps = (props)=>{
|
|
33
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
34
|
-
let { onHoverStart: onHoverStart, onHoverChange: onHoverChange, onHoverEnd: onHoverEnd, ...otherProps } = props;
|
|
35
|
-
return otherProps;
|
|
36
|
-
};
|
|
37
|
-
const $37da9a3796695f28$export$3c6489d84dc98b6 = /*#__PURE__*/ (0, $fl6Ye$react).forwardRef(function DropZone(props, ref) {
|
|
38
|
-
let { children: children, isFilled: isFilled, replaceMessage: replaceMessage, ...otherProps } = props;
|
|
39
|
-
let { styleProps: styleProps } = (0, $fl6Ye$useStyleProps)(props);
|
|
40
|
-
let domRef = (0, $fl6Ye$useDOMRef)(ref);
|
|
41
|
-
let messageId = (0, $fl6Ye$useId)();
|
|
42
|
-
let headingId = (0, $fl6Ye$useId)();
|
|
43
|
-
let stringFormatter = (0, $fl6Ye$useLocalizedStringFormatter)((0, ($parcel$interopDefault($fl6Ye$intlStringsmodulejs))), '@react-spectrum/dropzone');
|
|
44
|
-
let ariaLabelledby = isFilled ? `${headingId} ${messageId}` : headingId;
|
|
45
|
-
return /*#__PURE__*/ (0, $fl6Ye$react).createElement((0, $fl6Ye$Provider), {
|
|
46
|
-
values: [
|
|
47
|
-
[
|
|
48
|
-
(0, $fl6Ye$HeadingContext),
|
|
49
|
-
{
|
|
50
|
-
id: headingId
|
|
51
|
-
}
|
|
52
|
-
]
|
|
53
|
-
]
|
|
54
|
-
}, /*#__PURE__*/ (0, $fl6Ye$react).createElement((0, $fl6Ye$DropZone), {
|
|
55
|
-
...(0, $fl6Ye$mergeProps)($37da9a3796695f28$var$filterProps(otherProps)),
|
|
56
|
-
...styleProps,
|
|
57
|
-
"aria-labelledby": ariaLabelledby,
|
|
58
|
-
className: (0, $fl6Ye$classNames)((0, ($parcel$interopDefault($fl6Ye$dropzone_vars_cssmodulejs))), 'spectrum-Dropzone', styleProps.className, {
|
|
59
|
-
'spectrum-Dropzone--filled': isFilled
|
|
60
|
-
}),
|
|
61
|
-
ref: domRef
|
|
62
|
-
}, /*#__PURE__*/ (0, $fl6Ye$react).createElement((0, $fl6Ye$SlotProvider), {
|
|
63
|
-
slots: {
|
|
64
|
-
illustration: {
|
|
65
|
-
UNSAFE_className: (0, $fl6Ye$classNames)((0, ($parcel$interopDefault($fl6Ye$dropzone_vars_cssmodulejs))), 'spectrum-Dropzone-illustratedMessage')
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
}, children), /*#__PURE__*/ (0, $fl6Ye$react).createElement("div", {
|
|
69
|
-
className: (0, $fl6Ye$classNames)((0, ($parcel$interopDefault($fl6Ye$dropzone_vars_cssmodulejs))), 'spectrum-Dropzone-backdrop')
|
|
70
|
-
}), /*#__PURE__*/ (0, $fl6Ye$react).createElement("div", {
|
|
71
|
-
id: messageId,
|
|
72
|
-
className: (0, $fl6Ye$classNames)((0, ($parcel$interopDefault($fl6Ye$dropzone_vars_cssmodulejs))), 'spectrum-Dropzone-banner', styleProps.className)
|
|
73
|
-
}, replaceMessage ? replaceMessage : stringFormatter.format('replaceMessage'))));
|
|
74
|
-
});
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
export {$37da9a3796695f28$export$3c6489d84dc98b6 as DropZone};
|
|
78
|
-
//# sourceMappingURL=DropZone.module.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"mappings":";;;;;;;;;;;;;AAAA;;;;;;;;;;CAUC;;;;;;;AAqBD,oFAAoF;AACpF,IAAI,oCAAc,CAAC;IACjB,6DAA6D;IAC7D,IAAI,gBAAC,YAAY,iBAAE,aAAa,cAAE,UAAU,EAAE,GAAG,YAAW,GAAG;IAC/D,OAAO;AACT;AAKO,MAAM,yDAAW,CAAA,GAAA,YAAI,EAAE,UAAU,CAAC,SAAS,SAAS,KAA4B,EAAE,GAA2B;IAClH,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,YAAY,CAAA,GAAA,YAAI;IACpB,IAAI,kBAAkB,CAAA,GAAA,kCAA0B,EAAE,CAAA,GAAA,oDAAW,GAAG;IAChE,IAAI,iBAAiB,WAAW,GAAG,UAAU,CAAC,EAAE,WAAW,GAAG;IAE9D,qBACE,gCAAC,CAAA,GAAA,eAAO;QACN,QAAQ;YACN;gBAAC,CAAA,GAAA,qBAAa;gBAAG;oBAAC,IAAI;gBAAS;aAAE;SAClC;qBACD,gCAAC,CAAA,GAAA,eAAU;QACR,GAAG,CAAA,GAAA,iBAAS,EAAE,kCAAY,YAAY;QACtC,GAAG,UAAU;QACd,mBAAiB;QACjB,WACA,CAAA,GAAA,iBAAS,EACP,CAAA,GAAA,0DAAK,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,0DAAK,GACL;YACC;QACL;OACC,yBAEH,gCAAC;QAAI,WAAW,CAAA,GAAA,iBAAS,EAAE,CAAA,GAAA,0DAAK,GAAG;sBACnC,gCAAC;QACC,IAAI;QACJ,WACE,CAAA,GAAA,iBAAS,EACP,CAAA,GAAA,0DAAK,GACL,4BACA,WAAW,SAAS;OAGvB,iBAAiB,iBAAiB,gBAAgB,MAAM,CAAC;AAKpE","sources":["packages/@react-spectrum/dropzone/src/DropZone.tsx"],"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\nimport {AriaLabelingProps, DOMProps, DOMRef, StyleProps} from '@react-types/shared';\nimport {classNames, SlotProvider, useDOMRef, useStyleProps} from '@react-spectrum/utils';\nimport {DropZoneProps, HeadingContext, Provider, 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' | 'isDisabled' | 'className' | 'style' | 'render'>, 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\n/**\n * A drop zone is an area into which one or multiple objects can be dragged and dropped.\n */\nexport const DropZone = React.forwardRef(function 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 headingId = useId();\n let stringFormatter = useLocalizedStringFormatter(intlMessages, '@react-spectrum/dropzone');\n let ariaLabelledby = isFilled ? `${headingId} ${messageId}` : headingId;\n\n return (\n <Provider\n values={[\n [HeadingContext, {id: headingId}]\n ]}>\n <RACDropZone\n {...mergeProps(filterProps(otherProps))}\n {...styleProps as Omit<React.HTMLAttributes<HTMLElement>, 'onDrop'>}\n aria-labelledby={ariaLabelledby}\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 </Provider>\n );\n});\n"],"names":[],"version":3,"file":"DropZone.module.js.map"}
|
package/dist/ar-AE.main.js
DELETED
package/dist/ar-AE.main.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"mappings":"AAAA,iBAAiB;IAAG,kBAAkB,CAAC,oKAA0B,CAAC;AAClE","sources":["packages/@react-spectrum/dropzone/intl/ar-AE.json"],"sourcesContent":["{\n \"replaceMessage\": \"للاستبدال، قم بإفلات الملف\"\n}\n"],"names":[],"version":3,"file":"ar-AE.main.js.map"}
|
package/dist/ar-AE.mjs
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
var $3cffa6a83421c23c$exports = {};
|
|
2
|
-
$3cffa6a83421c23c$exports = {
|
|
3
|
-
"replaceMessage": `\u{644}\u{644}\u{627}\u{633}\u{62A}\u{628}\u{62F}\u{627}\u{644}\u{60C} \u{642}\u{645} \u{628}\u{625}\u{641}\u{644}\u{627}\u{62A} \u{627}\u{644}\u{645}\u{644}\u{641}`
|
|
4
|
-
};
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
export {$3cffa6a83421c23c$exports as default};
|
|
8
|
-
//# sourceMappingURL=ar-AE.module.js.map
|
package/dist/ar-AE.module.js
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
var $3cffa6a83421c23c$exports = {};
|
|
2
|
-
$3cffa6a83421c23c$exports = {
|
|
3
|
-
"replaceMessage": `\u{644}\u{644}\u{627}\u{633}\u{62A}\u{628}\u{62F}\u{627}\u{644}\u{60C} \u{642}\u{645} \u{628}\u{625}\u{641}\u{644}\u{627}\u{62A} \u{627}\u{644}\u{645}\u{644}\u{641}`
|
|
4
|
-
};
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
export {$3cffa6a83421c23c$exports as default};
|
|
8
|
-
//# sourceMappingURL=ar-AE.module.js.map
|
package/dist/ar-AE.module.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"mappings":";AAAA,4BAAiB;IAAG,kBAAkB,CAAC,oKAA0B,CAAC;AAClE","sources":["packages/@react-spectrum/dropzone/intl/ar-AE.json"],"sourcesContent":["{\n \"replaceMessage\": \"للاستبدال، قم بإفلات الملف\"\n}\n"],"names":[],"version":3,"file":"ar-AE.module.js.map"}
|
package/dist/bg-BG.main.js
DELETED
package/dist/bg-BG.main.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"mappings":"AAAA,iBAAiB;IAAG,kBAAkB,CAAC,wIAAsB,CAAC;AAC9D","sources":["packages/@react-spectrum/dropzone/intl/bg-BG.json"],"sourcesContent":["{\n \"replaceMessage\": \"Пуснете файл за замяна\"\n}\n"],"names":[],"version":3,"file":"bg-BG.main.js.map"}
|
package/dist/bg-BG.mjs
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
var $65cafe835931ede6$exports = {};
|
|
2
|
-
$65cafe835931ede6$exports = {
|
|
3
|
-
"replaceMessage": `\u{41F}\u{443}\u{441}\u{43D}\u{435}\u{442}\u{435} \u{444}\u{430}\u{439}\u{43B} \u{437}\u{430} \u{437}\u{430}\u{43C}\u{44F}\u{43D}\u{430}`
|
|
4
|
-
};
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
export {$65cafe835931ede6$exports as default};
|
|
8
|
-
//# sourceMappingURL=bg-BG.module.js.map
|
package/dist/bg-BG.module.js
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
var $65cafe835931ede6$exports = {};
|
|
2
|
-
$65cafe835931ede6$exports = {
|
|
3
|
-
"replaceMessage": `\u{41F}\u{443}\u{441}\u{43D}\u{435}\u{442}\u{435} \u{444}\u{430}\u{439}\u{43B} \u{437}\u{430} \u{437}\u{430}\u{43C}\u{44F}\u{43D}\u{430}`
|
|
4
|
-
};
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
export {$65cafe835931ede6$exports as default};
|
|
8
|
-
//# sourceMappingURL=bg-BG.module.js.map
|
package/dist/bg-BG.module.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"mappings":";AAAA,4BAAiB;IAAG,kBAAkB,CAAC,wIAAsB,CAAC;AAC9D","sources":["packages/@react-spectrum/dropzone/intl/bg-BG.json"],"sourcesContent":["{\n \"replaceMessage\": \"Пуснете файл за замяна\"\n}\n"],"names":[],"version":3,"file":"bg-BG.module.js.map"}
|
package/dist/cs-CZ.main.js
DELETED
package/dist/cs-CZ.main.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"mappings":"AAAA,iBAAiB;IAAG,kBAAkB,CAAC,+CAA6B,CAAC;AACrE","sources":["packages/@react-spectrum/dropzone/intl/cs-CZ.json"],"sourcesContent":["{\n \"replaceMessage\": \"Přetáhněte soubor k nahrazení\"\n}\n"],"names":[],"version":3,"file":"cs-CZ.main.js.map"}
|
package/dist/cs-CZ.mjs
DELETED
package/dist/cs-CZ.module.js
DELETED
package/dist/cs-CZ.module.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"mappings":";AAAA,4BAAiB;IAAG,kBAAkB,CAAC,+CAA6B,CAAC;AACrE","sources":["packages/@react-spectrum/dropzone/intl/cs-CZ.json"],"sourcesContent":["{\n \"replaceMessage\": \"Přetáhněte soubor k nahrazení\"\n}\n"],"names":[],"version":3,"file":"cs-CZ.module.js.map"}
|
package/dist/da-DK.main.js
DELETED
package/dist/da-DK.main.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"mappings":"AAAA,iBAAiB;IAAG,kBAAkB,CAAC,wBAAwB,CAAC;AAChE","sources":["packages/@react-spectrum/dropzone/intl/da-DK.json"],"sourcesContent":["{\n \"replaceMessage\": \"Drop fil for at erstatte\"\n}\n"],"names":[],"version":3,"file":"da-DK.main.js.map"}
|
package/dist/da-DK.mjs
DELETED
package/dist/da-DK.module.js
DELETED
package/dist/da-DK.module.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"mappings":";AAAA,4BAAiB;IAAG,kBAAkB,CAAC,wBAAwB,CAAC;AAChE","sources":["packages/@react-spectrum/dropzone/intl/da-DK.json"],"sourcesContent":["{\n \"replaceMessage\": \"Drop fil for at erstatte\"\n}\n"],"names":[],"version":3,"file":"da-DK.module.js.map"}
|
package/dist/de-DE.main.js
DELETED
package/dist/de-DE.main.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"mappings":"AAAA,iBAAiB;IAAG,kBAAkB,CAAC,0BAA0B,CAAC;AAClE","sources":["packages/@react-spectrum/dropzone/intl/de-DE.json"],"sourcesContent":["{\n \"replaceMessage\": \"Datei zum Ersetzen ablegen\"\n}\n"],"names":[],"version":3,"file":"de-DE.main.js.map"}
|
package/dist/de-DE.mjs
DELETED
package/dist/de-DE.module.js
DELETED
package/dist/de-DE.module.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"mappings":";AAAA,4BAAiB;IAAG,kBAAkB,CAAC,0BAA0B,CAAC;AAClE","sources":["packages/@react-spectrum/dropzone/intl/de-DE.json"],"sourcesContent":["{\n \"replaceMessage\": \"Datei zum Ersetzen ablegen\"\n}\n"],"names":[],"version":3,"file":"de-DE.module.js.map"}
|