@spectrum-web-components/dropzone 0.0.0-20241209155954

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/README.md ADDED
@@ -0,0 +1,235 @@
1
+ ## Description
2
+
3
+ A `<sp-dropzone>` is an area on the screen into which an object can be dragged and dropped to accomplish a task. For example, a DropZone might be used in an upload workflow to enable the user to drop a file from their operating system into the DropZone, which is a more efficient and intuitive action, rather than utilize the standard "Choose File" dialog.
4
+
5
+ DropZones should be used with an IllustratedMessage component as a child if the drop zone is empty, otherwise the existing content should be passed as a child.
6
+
7
+ ### Usage
8
+
9
+ [![See it on NPM!](https://img.shields.io/npm/v/@spectrum-web-components/dropzone?style=for-the-badge)](https://www.npmjs.com/package/@spectrum-web-components/dropzone)
10
+ [![How big is this package in your project?](https://img.shields.io/bundlephobia/minzip/@spectrum-web-components/dropzone?style=for-the-badge)](https://bundlephobia.com/result?p=@spectrum-web-components/dropzone)
11
+ [![Try it on webcomponents.dev](https://img.shields.io/badge/Try%20it%20on-webcomponents.dev-green?style=for-the-badge)](https://webcomponents.dev/edit/collection/fO75441E1Q5ZlI0e9pgq/yoQJtdPFBCH1UG3Qsicc/src/index.ts)
12
+
13
+ ```
14
+ yarn add @spectrum-web-components/dropzone
15
+ ```
16
+
17
+ Import the side effectful registration of `<sp-dropzone>` via:
18
+
19
+ ```
20
+ import '@spectrum-web-components/dropzone/sp-dropzone.js';
21
+ ```
22
+
23
+ When looking to leverage the `Dropzone` base class as a type and/or for extension purposes, do so via:
24
+
25
+ ```
26
+ import { Dropzone } from '@spectrum-web-components/dropzone';
27
+ ```
28
+
29
+ ## Example
30
+
31
+ ```html
32
+ <sp-dropzone id="dropzone-1" style="width: 400px;">
33
+ <sp-illustrated-message heading="Drag and drop your file">
34
+ <svg
35
+ xmlns="http://www.w3.org/2000/svg"
36
+ viewBox="0 0 150 103"
37
+ width="150"
38
+ height="103"
39
+ >
40
+ <path
41
+ d="M133.7,8.5h-118c-1.9,0-3.5,1.6-3.5,3.5v27c0,0.8,0.7,1.5,1.5,1.5s1.5-0.7,1.5-1.5V23.5h119V92c0,0.3-0.2,0.5-0.5,0.5h-118c-0.3,0-0.5-0.2-0.5-0.5V69c0-0.8-0.7-1.5-1.5-1.5s-1.5,0.7-1.5,1.5v23c0,1.9,1.6,3.5,3.5,3.5h118c1.9,0,3.5-1.6,3.5-3.5V12C137.2,10.1,135.6,8.5,133.7,8.5z M15.2,21.5V12c0-0.3,0.2-0.5,0.5-0.5h118c0.3,0,0.5,0.2,0.5,0.5v9.5H15.2z M32.6,16.5c0,0.6-0.4,1-1,1h-10c-0.6,0-1-0.4-1-1s0.4-1,1-1h10C32.2,15.5,32.6,15.9,32.6,16.5z M13.6,56.1l-8.6,8.5C4.8,65,4.4,65.1,4,65.1c-0.4,0-0.8-0.1-1.1-0.4c-0.6-0.6-0.6-1.5,0-2.1l8.6-8.5l-8.6-8.5c-0.6-0.6-0.6-1.5,0-2.1c0.6-0.6,1.5-0.6,2.1,0l8.6,8.5l8.6-8.5c0.6-0.6,1.5-0.6,2.1,0c0.6,0.6,0.6,1.5,0,2.1L15.8,54l8.6,8.5c0.6,0.6,0.6,1.5,0,2.1c-0.3,0.3-0.7,0.4-1.1,0.4c-0.4,0-0.8-0.1-1.1-0.4L13.6,56.1z"
42
+ ></path>
43
+ </svg>
44
+ </sp-illustrated-message>
45
+
46
+ <div>
47
+ <label for="file-input">
48
+ <sp-link
49
+ href="javascript:;"
50
+ onclick="this.parentElement.nextElementSibling.click()"
51
+ >
52
+ Select a File
53
+ </sp-link>
54
+ from your computer
55
+ </label>
56
+ <input type="file" id="file-input" style="display: none" />
57
+ </div>
58
+ <div>
59
+ or
60
+ <sp-link href="http://stock.adobe.com" target="blank">
61
+ Search Adobe Stock
62
+ </sp-link>
63
+ </div>
64
+ </sp-dropzone>
65
+ ```
66
+
67
+ ### Dragged
68
+
69
+ When a file is dragged over the `<sp-dropzone>` element, it will display with the `dragged` attribute, as follows:
70
+
71
+ ```html
72
+ <sp-dropzone id="dropzone" dragged style="width: 400px;">
73
+ <sp-illustrated-message heading="Drag and drop your file">
74
+ <svg
75
+ xmlns="http://www.w3.org/2000/svg"
76
+ viewBox="0 0 150 103"
77
+ width="150"
78
+ height="103"
79
+ >
80
+ <path
81
+ d="M133.7,8.5h-118c-1.9,0-3.5,1.6-3.5,3.5v27c0,0.8,0.7,1.5,1.5,1.5s1.5-0.7,1.5-1.5V23.5h119V92c0,0.3-0.2,0.5-0.5,0.5h-118c-0.3,0-0.5-0.2-0.5-0.5V69c0-0.8-0.7-1.5-1.5-1.5s-1.5,0.7-1.5,1.5v23c0,1.9,1.6,3.5,3.5,3.5h118c1.9,0,3.5-1.6,3.5-3.5V12C137.2,10.1,135.6,8.5,133.7,8.5z M15.2,21.5V12c0-0.3,0.2-0.5,0.5-0.5h118c0.3,0,0.5,0.2,0.5,0.5v9.5H15.2z M32.6,16.5c0,0.6-0.4,1-1,1h-10c-0.6,0-1-0.4-1-1s0.4-1,1-1h10C32.2,15.5,32.6,15.9,32.6,16.5z M13.6,56.1l-8.6,8.5C4.8,65,4.4,65.1,4,65.1c-0.4,0-0.8-0.1-1.1-0.4c-0.6-0.6-0.6-1.5,0-2.1l8.6-8.5l-8.6-8.5c-0.6-0.6-0.6-1.5,0-2.1c0.6-0.6,1.5-0.6,2.1,0l8.6,8.5l8.6-8.5c0.6-0.6,1.5-0.6,2.1,0c0.6,0.6,0.6,1.5,0,2.1L15.8,54l8.6,8.5c0.6,0.6,0.6,1.5,0,2.1c-0.3,0.3-0.7,0.4-1.1,0.4c-0.4,0-0.8-0.1-1.1-0.4L13.6,56.1z"
82
+ ></path>
83
+ </svg>
84
+ </sp-illustrated-message>
85
+
86
+ <div>
87
+ <label for="file-input">
88
+ <sp-link
89
+ href="javascript:;"
90
+ onclick="this.parentElement.nextElementSibling.click()"
91
+ >
92
+ Select a File
93
+ </sp-link>
94
+ from your computer
95
+ </label>
96
+ <input type="file" id="file-input" style="display: none" />
97
+ </div>
98
+ <div>
99
+ or
100
+ <sp-link href="http://stock.adobe.com" target="blank">
101
+ Search Adobe Stock
102
+ </sp-link>
103
+ </div>
104
+ </sp-dropzone>
105
+ ```
106
+
107
+ ### Filled
108
+
109
+ When the `<sp-dropzone>` is in a filled state, set the `filled` attribute, as follows:
110
+
111
+ ```html-live
112
+
113
+ <sp-action-button draggable="true" style="margin-block-end: 16px;">
114
+ Drag me
115
+ </sp-action-button>
116
+ <sp-dropzone tabindex="0" id="dropzone" drop-effect="copy">
117
+ <sp-illustrated-message style="--mod-illustrated-message-display: flex;" heading="Drag and drop your file" id="message">
118
+ <svg
119
+ xmlns="http://www.w3.org/2000/svg"
120
+ viewBox="0 0 150 103"
121
+ width="150"
122
+ height="103"
123
+ >
124
+ <path
125
+ d="M133.7,8.5h-118c-1.9,0-3.5,1.6-3.5,3.5v27c0,0.8,0.7,1.5,1.5,1.5s1.5-0.7,1.5-1.5V23.5h119V92c0,0.3-0.2,0.5-0.5,0.5h-118c-0.3,0-0.5-0.2-0.5-0.5V69c0-0.8-0.7-1.5-1.5-1.5s-1.5,0.7-1.5,1.5v23c0,1.9,1.6,3.5,3.5,3.5h118c1.9,0,3.5-1.6,3.5-3.5V12C137.2,10.1,135.6,8.5,133.7,8.5z M15.2,21.5V12c0-0.3,0.2-0.5,0.5-0.5h118c0.3,0,0.5,0.2,0.5,0.5v9.5H15.2z M32.6,16.5c0,0.6-0.4,1-1,1h-10c-0.6,0-1-0.4-1-1s0.4-1,1-1h10C32.2,15.5,32.6,15.9,32.6,16.5z M13.6,56.1l-8.6,8.5C4.8,65,4.4,65.1,4,65.1c-0.4,0-0.8-0.1-1.1-0.4c-0.6-0.6-0.6-1.5,0-2.1l8.6-8.5l-8.6-8.5c-0.6-0.6-0.6-1.5,0-2.1c0.6-0.6,1.5-0.6,2.1,0l8.6,8.5l8.6-8.5c0.6-0.6,1.5-0.6,2.1,0c0.6,0.6,0.6,1.5,0,2.1L15.8,54l8.6,8.5c0.6,0.6,0.6,1.5,0,2.1c-0.3,0.3-0.7,0.4-1.1,0.4c-0.4,0-0.8-0.1-1.1-0.4L13.6,56.1z"
126
+ ></path>
127
+ </svg>
128
+ </sp-illustrated-message>
129
+ <div>
130
+ <label for="file-input">
131
+ <sp-link
132
+ href="javascript:;"
133
+ onclick="this.parentElement.nextElementSibling.click()"
134
+ >
135
+ Select a File
136
+ </sp-link>
137
+ from your computer
138
+ </label>
139
+ <input type="file" id="file-input" style="display: none" />
140
+ </div>
141
+ <div>
142
+ or
143
+ <sp-link href="http://stock.adobe.com" target="blank">
144
+ Search Adobe Stock
145
+ </sp-link>
146
+ </div>
147
+ </sp-dropzone>
148
+
149
+ <script type="module">
150
+ customElements.whenDefined('sp-dropzone').then(() => {
151
+ const dropzone = document.getElementById('dropzone');
152
+ const message = document.getElementById('message');
153
+ const fileInput = document.getElementById('file-input');
154
+ let input;
155
+ let beingDraggedOver = false;
156
+
157
+ const updateMessage = () => {
158
+ message.heading = input !== undefined
159
+ ? (beingDraggedOver ? 'Drop here to replace!' : 'You dropped something!')
160
+ : 'Drag and drop your file';
161
+ };
162
+
163
+ const handleDropOrChange = () => {
164
+ input = 'mock-file';
165
+ dropzone.setAttribute("filled", true);
166
+ beingDraggedOver = false;
167
+ updateMessage();
168
+ };
169
+
170
+ dropzone.addEventListener('dragover', (event) => {
171
+ event.preventDefault();
172
+ beingDraggedOver = true;
173
+ updateMessage();
174
+ });
175
+
176
+ dropzone.addEventListener('dragleave', () => {
177
+ beingDraggedOver = false;
178
+ updateMessage();
179
+ });
180
+
181
+ dropzone.addEventListener('drop', (event) => {
182
+ event.preventDefault();
183
+ handleDropOrChange();
184
+ });
185
+
186
+ fileInput.addEventListener('change', handleDropOrChange);
187
+ });
188
+ </script>
189
+
190
+ ```
191
+
192
+ <script type="module">
193
+ customElements.whenDefined('sp-dropzone').then(() => {
194
+ const dropzone = document.getElementById('dropzone');
195
+ const message = document.getElementById('message');
196
+ const fileInput = document.getElementById('file-input');
197
+ let input;
198
+ let beingDraggedOver = false;
199
+
200
+ const updateMessage = () => {
201
+ message.heading = input !== undefined
202
+ ? (beingDraggedOver ? 'Drop here to replace!' : 'You dropped something!')
203
+ : 'Drag and drop your file';
204
+ };
205
+
206
+ const handleDropOrChange = () => {
207
+ input = 'mock-file';
208
+ dropzone.setAttribute("filled", true);
209
+ beingDraggedOver = false;
210
+ updateMessage();
211
+ };
212
+
213
+ dropzone.addEventListener('dragover', (event) => {
214
+ event.preventDefault();
215
+ beingDraggedOver = true;
216
+ updateMessage();
217
+ });
218
+
219
+ dropzone.addEventListener('dragleave', () => {
220
+ beingDraggedOver = false;
221
+ updateMessage();
222
+ });
223
+
224
+ dropzone.addEventListener('drop', (event) => {
225
+ event.preventDefault();
226
+ handleDropOrChange();
227
+ });
228
+
229
+ fileInput.addEventListener('change', handleDropOrChange);
230
+ });
231
+ </script>
232
+
233
+ ## Accessibility
234
+
235
+ When actions, e.g. copy/paste, can be enacted directly on the `<sp-dropzone>` element itself, be sure to supply a `tabindex` so that keyboard users can find this interaction in the tab order. For screen readers, be sure to announce what the actions are, how to complete them, and when they are completed by supplying the appropriate `role` and `aria-label` attributes.
package/package.json ADDED
@@ -0,0 +1,72 @@
1
+ {
2
+ "name": "@spectrum-web-components/dropzone",
3
+ "version": "0.0.0-20241209155954",
4
+ "publishConfig": {
5
+ "access": "public"
6
+ },
7
+ "description": "",
8
+ "license": "Apache-2.0",
9
+ "repository": {
10
+ "type": "git",
11
+ "url": "https://github.com/adobe/spectrum-web-components.git",
12
+ "directory": "packages/dropzone"
13
+ },
14
+ "author": "",
15
+ "homepage": "https://opensource.adobe.com/spectrum-web-components/components/dropzone",
16
+ "bugs": {
17
+ "url": "https://github.com/adobe/spectrum-web-components/issues"
18
+ },
19
+ "main": "./src/index.js",
20
+ "module": "./src/index.js",
21
+ "type": "module",
22
+ "exports": {
23
+ ".": {
24
+ "development": "./src/index.dev.js",
25
+ "default": "./src/index.js"
26
+ },
27
+ "./package.json": "./package.json",
28
+ "./src/Dropzone.js": {
29
+ "development": "./src/Dropzone.dev.js",
30
+ "default": "./src/Dropzone.js"
31
+ },
32
+ "./src/dropzone-overrides.css.js": "./src/dropzone-overrides.css.js",
33
+ "./src/dropzone.css.js": "./src/dropzone.css.js",
34
+ "./src/index.js": {
35
+ "development": "./src/index.dev.js",
36
+ "default": "./src/index.js"
37
+ },
38
+ "./sp-dropzone.js": {
39
+ "development": "./sp-dropzone.dev.js",
40
+ "default": "./sp-dropzone.js"
41
+ }
42
+ },
43
+ "scripts": {
44
+ "test": "echo \"Error: run tests from mono-repo root.\" && exit 1"
45
+ },
46
+ "files": [
47
+ "**/*.d.ts",
48
+ "**/*.js",
49
+ "**/*.js.map",
50
+ "custom-elements.json",
51
+ "!stories/",
52
+ "!test/"
53
+ ],
54
+ "keywords": [
55
+ "spectrum css",
56
+ "web components",
57
+ "lit-element",
58
+ "lit-html"
59
+ ],
60
+ "dependencies": {
61
+ "@spectrum-web-components/base": "0.0.0-20241209155954"
62
+ },
63
+ "devDependencies": {
64
+ "@spectrum-css/dropzone": "^7.0.0-s2-foundations.16"
65
+ },
66
+ "types": "./src/index.d.ts",
67
+ "customElements": "custom-elements.json",
68
+ "sideEffects": [
69
+ "./sp-*.js",
70
+ "./**/*.dev.js"
71
+ ]
72
+ }
@@ -0,0 +1,6 @@
1
+ import { Dropzone } from './src/Dropzone.js';
2
+ declare global {
3
+ interface HTMLElementTagNameMap {
4
+ 'sp-dropzone': Dropzone;
5
+ }
6
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ import { Dropzone } from "./src/Dropzone.dev.js";
3
+ import { defineElement } from "@spectrum-web-components/base/src/define-element.js";
4
+ defineElement("sp-dropzone", Dropzone);
5
+ //# sourceMappingURL=sp-dropzone.dev.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["sp-dropzone.ts"],
4
+ "sourcesContent": ["/*\nCopyright 2020 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\nimport { Dropzone } from './src/Dropzone.dev.js'\nimport { defineElement } from '@spectrum-web-components/base/src/define-element.js';\n\ndefineElement('sp-dropzone', Dropzone);\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'sp-dropzone': Dropzone;\n }\n}\n"],
5
+ "mappings": ";AAWA,SAAS,gBAAgB;AACzB,SAAS,qBAAqB;AAE9B,cAAc,eAAe,QAAQ;",
6
+ "names": []
7
+ }
package/sp-dropzone.js ADDED
@@ -0,0 +1,2 @@
1
+ "use strict";import{Dropzone as e}from"./src/Dropzone.js";import{defineElement as o}from"@spectrum-web-components/base/src/define-element.js";o("sp-dropzone",e);
2
+ //# sourceMappingURL=sp-dropzone.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["sp-dropzone.ts"],
4
+ "sourcesContent": ["/*\nCopyright 2020 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\nimport { Dropzone } from './src/Dropzone.js';\nimport { defineElement } from '@spectrum-web-components/base/src/define-element.js';\n\ndefineElement('sp-dropzone', Dropzone);\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'sp-dropzone': Dropzone;\n }\n}\n"],
5
+ "mappings": "aAWA,OAAS,YAAAA,MAAgB,oBACzB,OAAS,iBAAAC,MAAqB,sDAE9BA,EAAc,cAAeD,CAAQ",
6
+ "names": ["Dropzone", "defineElement"]
7
+ }
@@ -0,0 +1,52 @@
1
+ import { CSSResultArray, SpectrumElement, TemplateResult } from '@spectrum-web-components/base';
2
+ export type DropzoneEventDetail = DragEvent;
3
+ export type DropEffects = 'copy' | 'move' | 'link' | 'none';
4
+ /**
5
+ * @element sp-dropzone
6
+ *
7
+ * @slot - The default slot on an `sp-dropzone` is a great place to place upload instructions
8
+ * built with an `sp-illustrated-message` or other information, possibly even built from data
9
+ * provided by the upload, to support users successfully interacting with the drag and drop
10
+ * based features of your application
11
+ *
12
+ * @fires sp-dropzone-should-accept - A cancellable event that confirms whether or not
13
+ * a file dropped on the UI should be accepted.
14
+ * @fires sp-dropzone-dragover - Announces when files have been dragged over the UI, but not yet dropped.
15
+ * @fires sp-dropzone-dragleave - Announces when dragged files have been moved out of the UI without having been dropped.
16
+ * @fires sp-dropzone-drop - Announces when dragged files have been dropped on the UI.
17
+ */
18
+ export declare class Dropzone extends SpectrumElement {
19
+ static get styles(): CSSResultArray;
20
+ /**
21
+ * Controls the feedback (typically visual) the user is given during a drag and drop operation
22
+ * @attr
23
+ * @type {'copy' | 'move' | 'link' | 'none'}
24
+ */
25
+ get dropEffect(): DropEffects;
26
+ set dropEffect(value: DropEffects);
27
+ private _dropEffect;
28
+ /**
29
+ * Indicates that files are currently being dragged over the dropzone.
30
+ */
31
+ isDragged: boolean;
32
+ /**
33
+ * Set this property to indicate that the component is in a filled state.
34
+ */
35
+ isFilled: boolean;
36
+ private debouncedDragLeave;
37
+ connectedCallback(): void;
38
+ disconnectedCallback(): void;
39
+ onDragOver(event: DragEvent): void;
40
+ onDragLeave(event: DragEvent): void;
41
+ onDrop(event: DragEvent): void;
42
+ protected render(): TemplateResult;
43
+ protected clearDebouncedDragLeave(): void;
44
+ }
45
+ declare global {
46
+ interface GlobalEventHandlersEventMap {
47
+ 'sp-dropzone:should-accept': CustomEvent<DragEvent>;
48
+ 'sp-dropzone:dragover': CustomEvent<DragEvent>;
49
+ 'sp-dropzone:dragleave': CustomEvent<DragEvent>;
50
+ 'sp-dropzone:drop': CustomEvent<DragEvent>;
51
+ }
52
+ }
@@ -0,0 +1,121 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __decorateClass = (decorators, target, key, kind) => {
5
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
6
+ for (var i = decorators.length - 1, decorator; i >= 0; i--)
7
+ if (decorator = decorators[i])
8
+ result = (kind ? decorator(target, key, result) : decorator(result)) || result;
9
+ if (kind && result) __defProp(target, key, result);
10
+ return result;
11
+ };
12
+ import {
13
+ html,
14
+ SpectrumElement
15
+ } from "@spectrum-web-components/base";
16
+ import { property } from "@spectrum-web-components/base/src/decorators.js";
17
+ import dropzoneStyles from "./dropzone.css.js";
18
+ export class Dropzone extends SpectrumElement {
19
+ constructor() {
20
+ super(...arguments);
21
+ this._dropEffect = "copy";
22
+ this.isDragged = false;
23
+ this.isFilled = false;
24
+ this.debouncedDragLeave = null;
25
+ }
26
+ static get styles() {
27
+ return [dropzoneStyles];
28
+ }
29
+ /**
30
+ * Controls the feedback (typically visual) the user is given during a drag and drop operation
31
+ * @attr
32
+ * @type {'copy' | 'move' | 'link' | 'none'}
33
+ */
34
+ get dropEffect() {
35
+ return this._dropEffect;
36
+ }
37
+ set dropEffect(value) {
38
+ if (["copy", "move", "link", "none"].includes(value)) {
39
+ this._dropEffect = value;
40
+ }
41
+ }
42
+ connectedCallback() {
43
+ super.connectedCallback();
44
+ this.addEventListener("drop", this.onDrop);
45
+ this.addEventListener("dragover", this.onDragOver);
46
+ this.addEventListener("dragleave", this.onDragLeave);
47
+ }
48
+ disconnectedCallback() {
49
+ super.disconnectedCallback();
50
+ this.removeEventListener("drop", this.onDrop);
51
+ this.removeEventListener("dragover", this.onDragOver);
52
+ this.removeEventListener("dragleave", this.onDragLeave);
53
+ }
54
+ onDragOver(event) {
55
+ const shouldAcceptEvent = new CustomEvent("sp-dropzone-should-accept", {
56
+ bubbles: true,
57
+ cancelable: true,
58
+ composed: true,
59
+ detail: event
60
+ });
61
+ const shouldAccept = this.dispatchEvent(shouldAcceptEvent);
62
+ if (!event.dataTransfer) {
63
+ return;
64
+ }
65
+ if (!shouldAccept) {
66
+ event.dataTransfer.dropEffect = "none";
67
+ return;
68
+ }
69
+ event.preventDefault();
70
+ this.clearDebouncedDragLeave();
71
+ this.isDragged = true;
72
+ event.dataTransfer.dropEffect = this.dropEffect;
73
+ const dragOverEvent = new CustomEvent("sp-dropzone-dragover", {
74
+ bubbles: true,
75
+ composed: true,
76
+ detail: event
77
+ });
78
+ this.dispatchEvent(dragOverEvent);
79
+ }
80
+ onDragLeave(event) {
81
+ this.clearDebouncedDragLeave();
82
+ this.debouncedDragLeave = window.setTimeout(() => {
83
+ this.isDragged = false;
84
+ const dragLeave = new CustomEvent("sp-dropzone-dragleave", {
85
+ bubbles: true,
86
+ composed: true,
87
+ detail: event
88
+ });
89
+ this.dispatchEvent(dragLeave);
90
+ }, 100);
91
+ }
92
+ onDrop(event) {
93
+ event.preventDefault();
94
+ this.clearDebouncedDragLeave();
95
+ this.isDragged = false;
96
+ const dropEvent = new CustomEvent("sp-dropzone-drop", {
97
+ bubbles: true,
98
+ composed: true,
99
+ detail: event
100
+ });
101
+ this.dispatchEvent(dropEvent);
102
+ }
103
+ render() {
104
+ return html`
105
+ <slot></slot>
106
+ `;
107
+ }
108
+ clearDebouncedDragLeave() {
109
+ if (this.debouncedDragLeave) {
110
+ clearTimeout(this.debouncedDragLeave);
111
+ this.debouncedDragLeave = null;
112
+ }
113
+ }
114
+ }
115
+ __decorateClass([
116
+ property({ type: Boolean, reflect: true, attribute: "dragged" })
117
+ ], Dropzone.prototype, "isDragged", 2);
118
+ __decorateClass([
119
+ property({ type: Boolean, attribute: "filled" })
120
+ ], Dropzone.prototype, "isFilled", 2);
121
+ //# sourceMappingURL=Dropzone.dev.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["Dropzone.ts"],
4
+ "sourcesContent": ["/*\nCopyright 2020 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\n\nimport {\n CSSResultArray,\n html,\n SpectrumElement,\n TemplateResult,\n} from '@spectrum-web-components/base';\nimport { property } from '@spectrum-web-components/base/src/decorators.js';\n\nimport dropzoneStyles from './dropzone.css.js';\n\nexport type DropzoneEventDetail = DragEvent;\n\nexport type DropEffects = 'copy' | 'move' | 'link' | 'none';\n\n/**\n * @element sp-dropzone\n *\n * @slot - The default slot on an `sp-dropzone` is a great place to place upload instructions\n * built with an `sp-illustrated-message` or other information, possibly even built from data\n * provided by the upload, to support users successfully interacting with the drag and drop\n * based features of your application\n *\n * @fires sp-dropzone-should-accept - A cancellable event that confirms whether or not\n * a file dropped on the UI should be accepted.\n * @fires sp-dropzone-dragover - Announces when files have been dragged over the UI, but not yet dropped.\n * @fires sp-dropzone-dragleave - Announces when dragged files have been moved out of the UI without having been dropped.\n * @fires sp-dropzone-drop - Announces when dragged files have been dropped on the UI.\n */\nexport class Dropzone extends SpectrumElement {\n public static override get styles(): CSSResultArray {\n return [dropzoneStyles];\n }\n\n /**\n * Controls the feedback (typically visual) the user is given during a drag and drop operation\n * @attr\n * @type {'copy' | 'move' | 'link' | 'none'}\n */\n public get dropEffect(): DropEffects {\n return this._dropEffect;\n }\n public set dropEffect(value: DropEffects) {\n if (['copy', 'move', 'link', 'none'].includes(value)) {\n this._dropEffect = value;\n }\n }\n private _dropEffect: DropEffects = 'copy';\n\n /**\n * Indicates that files are currently being dragged over the dropzone.\n */\n @property({ type: Boolean, reflect: true, attribute: 'dragged' })\n public isDragged = false;\n\n /**\n * Set this property to indicate that the component is in a filled state.\n */\n @property({ type: Boolean, attribute: 'filled' })\n public isFilled = false;\n\n private debouncedDragLeave: number | null = null;\n\n public override connectedCallback(): void {\n super.connectedCallback();\n\n this.addEventListener('drop', this.onDrop);\n this.addEventListener('dragover', this.onDragOver);\n this.addEventListener('dragleave', this.onDragLeave);\n }\n\n public override disconnectedCallback(): void {\n super.disconnectedCallback();\n\n this.removeEventListener('drop', this.onDrop);\n this.removeEventListener('dragover', this.onDragOver);\n this.removeEventListener('dragleave', this.onDragLeave);\n }\n\n public onDragOver(event: DragEvent): void {\n const shouldAcceptEvent = new CustomEvent('sp-dropzone-should-accept', {\n bubbles: true,\n cancelable: true,\n composed: true,\n detail: event,\n });\n const shouldAccept = this.dispatchEvent(shouldAcceptEvent);\n if (!event.dataTransfer) {\n return;\n }\n if (!shouldAccept) {\n event.dataTransfer.dropEffect = 'none';\n return;\n }\n\n event.preventDefault();\n\n this.clearDebouncedDragLeave();\n\n this.isDragged = true;\n\n event.dataTransfer.dropEffect = this.dropEffect;\n const dragOverEvent = new CustomEvent('sp-dropzone-dragover', {\n bubbles: true,\n composed: true,\n detail: event,\n });\n this.dispatchEvent(dragOverEvent);\n }\n\n public onDragLeave(event: DragEvent): void {\n this.clearDebouncedDragLeave();\n\n this.debouncedDragLeave = window.setTimeout(() => {\n this.isDragged = false;\n\n const dragLeave = new CustomEvent('sp-dropzone-dragleave', {\n bubbles: true,\n composed: true,\n detail: event,\n });\n this.dispatchEvent(dragLeave);\n }, 100);\n }\n\n public onDrop(event: DragEvent): void {\n event.preventDefault();\n\n this.clearDebouncedDragLeave();\n\n this.isDragged = false;\n const dropEvent = new CustomEvent('sp-dropzone-drop', {\n bubbles: true,\n composed: true,\n detail: event,\n });\n this.dispatchEvent(dropEvent);\n }\n\n protected override render(): TemplateResult {\n return html`\n <slot></slot>\n `;\n }\n\n protected clearDebouncedDragLeave(): void {\n if (this.debouncedDragLeave) {\n clearTimeout(this.debouncedDragLeave);\n this.debouncedDragLeave = null;\n }\n }\n}\n\ndeclare global {\n interface GlobalEventHandlersEventMap {\n 'sp-dropzone:should-accept': CustomEvent<DragEvent>;\n 'sp-dropzone:dragover': CustomEvent<DragEvent>;\n 'sp-dropzone:dragleave': CustomEvent<DragEvent>;\n 'sp-dropzone:drop': CustomEvent<DragEvent>;\n }\n}\n"],
5
+ "mappings": ";;;;;;;;;;;AAYA;AAAA,EAEI;AAAA,EACA;AAAA,OAEG;AACP,SAAS,gBAAgB;AAEzB,OAAO,oBAAoB;AAoBpB,aAAM,iBAAiB,gBAAgB;AAAA,EAAvC;AAAA;AAkBH,SAAQ,cAA2B;AAMnC,SAAO,YAAY;AAMnB,SAAO,WAAW;AAElB,SAAQ,qBAAoC;AAAA;AAAA,EA/B5C,WAA2B,SAAyB;AAChD,WAAO,CAAC,cAAc;AAAA,EAC1B;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAOA,IAAW,aAA0B;AACjC,WAAO,KAAK;AAAA,EAChB;AAAA,EACA,IAAW,WAAW,OAAoB;AACtC,QAAI,CAAC,QAAQ,QAAQ,QAAQ,MAAM,EAAE,SAAS,KAAK,GAAG;AAClD,WAAK,cAAc;AAAA,IACvB;AAAA,EACJ;AAAA,EAiBgB,oBAA0B;AACtC,UAAM,kBAAkB;AAExB,SAAK,iBAAiB,QAAQ,KAAK,MAAM;AACzC,SAAK,iBAAiB,YAAY,KAAK,UAAU;AACjD,SAAK,iBAAiB,aAAa,KAAK,WAAW;AAAA,EACvD;AAAA,EAEgB,uBAA6B;AACzC,UAAM,qBAAqB;AAE3B,SAAK,oBAAoB,QAAQ,KAAK,MAAM;AAC5C,SAAK,oBAAoB,YAAY,KAAK,UAAU;AACpD,SAAK,oBAAoB,aAAa,KAAK,WAAW;AAAA,EAC1D;AAAA,EAEO,WAAW,OAAwB;AACtC,UAAM,oBAAoB,IAAI,YAAY,6BAA6B;AAAA,MACnE,SAAS;AAAA,MACT,YAAY;AAAA,MACZ,UAAU;AAAA,MACV,QAAQ;AAAA,IACZ,CAAC;AACD,UAAM,eAAe,KAAK,cAAc,iBAAiB;AACzD,QAAI,CAAC,MAAM,cAAc;AACrB;AAAA,IACJ;AACA,QAAI,CAAC,cAAc;AACf,YAAM,aAAa,aAAa;AAChC;AAAA,IACJ;AAEA,UAAM,eAAe;AAErB,SAAK,wBAAwB;AAE7B,SAAK,YAAY;AAEjB,UAAM,aAAa,aAAa,KAAK;AACrC,UAAM,gBAAgB,IAAI,YAAY,wBAAwB;AAAA,MAC1D,SAAS;AAAA,MACT,UAAU;AAAA,MACV,QAAQ;AAAA,IACZ,CAAC;AACD,SAAK,cAAc,aAAa;AAAA,EACpC;AAAA,EAEO,YAAY,OAAwB;AACvC,SAAK,wBAAwB;AAE7B,SAAK,qBAAqB,OAAO,WAAW,MAAM;AAC9C,WAAK,YAAY;AAEjB,YAAM,YAAY,IAAI,YAAY,yBAAyB;AAAA,QACvD,SAAS;AAAA,QACT,UAAU;AAAA,QACV,QAAQ;AAAA,MACZ,CAAC;AACD,WAAK,cAAc,SAAS;AAAA,IAChC,GAAG,GAAG;AAAA,EACV;AAAA,EAEO,OAAO,OAAwB;AAClC,UAAM,eAAe;AAErB,SAAK,wBAAwB;AAE7B,SAAK,YAAY;AACjB,UAAM,YAAY,IAAI,YAAY,oBAAoB;AAAA,MAClD,SAAS;AAAA,MACT,UAAU;AAAA,MACV,QAAQ;AAAA,IACZ,CAAC;AACD,SAAK,cAAc,SAAS;AAAA,EAChC;AAAA,EAEmB,SAAyB;AACxC,WAAO;AAAA;AAAA;AAAA,EAGX;AAAA,EAEU,0BAAgC;AACtC,QAAI,KAAK,oBAAoB;AACzB,mBAAa,KAAK,kBAAkB;AACpC,WAAK,qBAAqB;AAAA,IAC9B;AAAA,EACJ;AACJ;AAlGW;AAAA,EADN,SAAS,EAAE,MAAM,SAAS,SAAS,MAAM,WAAW,UAAU,CAAC;AAAA,GAvBvD,SAwBF;AAMA;AAAA,EADN,SAAS,EAAE,MAAM,SAAS,WAAW,SAAS,CAAC;AAAA,GA7BvC,SA8BF;",
6
+ "names": []
7
+ }
@@ -0,0 +1,4 @@
1
+ "use strict";var p=Object.defineProperty;var c=Object.getOwnPropertyDescriptor;var d=(s,o,e,t)=>{for(var r=t>1?void 0:t?c(o,e):o,a=s.length-1,n;a>=0;a--)(n=s[a])&&(r=(t?n(o,e,r):n(r))||r);return t&&r&&p(o,e,r),r};import{html as l,SpectrumElement as v}from"@spectrum-web-components/base";import{property as i}from"@spectrum-web-components/base/src/decorators.js";import u from"./dropzone.css.js";export class Dropzone extends v{constructor(){super(...arguments);this._dropEffect="copy";this.isDragged=!1;this.isFilled=!1;this.debouncedDragLeave=null}static get styles(){return[u]}get dropEffect(){return this._dropEffect}set dropEffect(e){["copy","move","link","none"].includes(e)&&(this._dropEffect=e)}connectedCallback(){super.connectedCallback(),this.addEventListener("drop",this.onDrop),this.addEventListener("dragover",this.onDragOver),this.addEventListener("dragleave",this.onDragLeave)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("drop",this.onDrop),this.removeEventListener("dragover",this.onDragOver),this.removeEventListener("dragleave",this.onDragLeave)}onDragOver(e){const t=new CustomEvent("sp-dropzone-should-accept",{bubbles:!0,cancelable:!0,composed:!0,detail:e}),r=this.dispatchEvent(t);if(!e.dataTransfer)return;if(!r){e.dataTransfer.dropEffect="none";return}e.preventDefault(),this.clearDebouncedDragLeave(),this.isDragged=!0,e.dataTransfer.dropEffect=this.dropEffect;const a=new CustomEvent("sp-dropzone-dragover",{bubbles:!0,composed:!0,detail:e});this.dispatchEvent(a)}onDragLeave(e){this.clearDebouncedDragLeave(),this.debouncedDragLeave=window.setTimeout(()=>{this.isDragged=!1;const t=new CustomEvent("sp-dropzone-dragleave",{bubbles:!0,composed:!0,detail:e});this.dispatchEvent(t)},100)}onDrop(e){e.preventDefault(),this.clearDebouncedDragLeave(),this.isDragged=!1;const t=new CustomEvent("sp-dropzone-drop",{bubbles:!0,composed:!0,detail:e});this.dispatchEvent(t)}render(){return l`
2
+ <slot></slot>
3
+ `}clearDebouncedDragLeave(){this.debouncedDragLeave&&(clearTimeout(this.debouncedDragLeave),this.debouncedDragLeave=null)}}d([i({type:Boolean,reflect:!0,attribute:"dragged"})],Dropzone.prototype,"isDragged",2),d([i({type:Boolean,attribute:"filled"})],Dropzone.prototype,"isFilled",2);
4
+ //# sourceMappingURL=Dropzone.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["Dropzone.ts"],
4
+ "sourcesContent": ["/*\nCopyright 2020 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\n\nimport {\n CSSResultArray,\n html,\n SpectrumElement,\n TemplateResult,\n} from '@spectrum-web-components/base';\nimport { property } from '@spectrum-web-components/base/src/decorators.js';\n\nimport dropzoneStyles from './dropzone.css.js';\n\nexport type DropzoneEventDetail = DragEvent;\n\nexport type DropEffects = 'copy' | 'move' | 'link' | 'none';\n\n/**\n * @element sp-dropzone\n *\n * @slot - The default slot on an `sp-dropzone` is a great place to place upload instructions\n * built with an `sp-illustrated-message` or other information, possibly even built from data\n * provided by the upload, to support users successfully interacting with the drag and drop\n * based features of your application\n *\n * @fires sp-dropzone-should-accept - A cancellable event that confirms whether or not\n * a file dropped on the UI should be accepted.\n * @fires sp-dropzone-dragover - Announces when files have been dragged over the UI, but not yet dropped.\n * @fires sp-dropzone-dragleave - Announces when dragged files have been moved out of the UI without having been dropped.\n * @fires sp-dropzone-drop - Announces when dragged files have been dropped on the UI.\n */\nexport class Dropzone extends SpectrumElement {\n public static override get styles(): CSSResultArray {\n return [dropzoneStyles];\n }\n\n /**\n * Controls the feedback (typically visual) the user is given during a drag and drop operation\n * @attr\n * @type {'copy' | 'move' | 'link' | 'none'}\n */\n public get dropEffect(): DropEffects {\n return this._dropEffect;\n }\n public set dropEffect(value: DropEffects) {\n if (['copy', 'move', 'link', 'none'].includes(value)) {\n this._dropEffect = value;\n }\n }\n private _dropEffect: DropEffects = 'copy';\n\n /**\n * Indicates that files are currently being dragged over the dropzone.\n */\n @property({ type: Boolean, reflect: true, attribute: 'dragged' })\n public isDragged = false;\n\n /**\n * Set this property to indicate that the component is in a filled state.\n */\n @property({ type: Boolean, attribute: 'filled' })\n public isFilled = false;\n\n private debouncedDragLeave: number | null = null;\n\n public override connectedCallback(): void {\n super.connectedCallback();\n\n this.addEventListener('drop', this.onDrop);\n this.addEventListener('dragover', this.onDragOver);\n this.addEventListener('dragleave', this.onDragLeave);\n }\n\n public override disconnectedCallback(): void {\n super.disconnectedCallback();\n\n this.removeEventListener('drop', this.onDrop);\n this.removeEventListener('dragover', this.onDragOver);\n this.removeEventListener('dragleave', this.onDragLeave);\n }\n\n public onDragOver(event: DragEvent): void {\n const shouldAcceptEvent = new CustomEvent('sp-dropzone-should-accept', {\n bubbles: true,\n cancelable: true,\n composed: true,\n detail: event,\n });\n const shouldAccept = this.dispatchEvent(shouldAcceptEvent);\n if (!event.dataTransfer) {\n return;\n }\n if (!shouldAccept) {\n event.dataTransfer.dropEffect = 'none';\n return;\n }\n\n event.preventDefault();\n\n this.clearDebouncedDragLeave();\n\n this.isDragged = true;\n\n event.dataTransfer.dropEffect = this.dropEffect;\n const dragOverEvent = new CustomEvent('sp-dropzone-dragover', {\n bubbles: true,\n composed: true,\n detail: event,\n });\n this.dispatchEvent(dragOverEvent);\n }\n\n public onDragLeave(event: DragEvent): void {\n this.clearDebouncedDragLeave();\n\n this.debouncedDragLeave = window.setTimeout(() => {\n this.isDragged = false;\n\n const dragLeave = new CustomEvent('sp-dropzone-dragleave', {\n bubbles: true,\n composed: true,\n detail: event,\n });\n this.dispatchEvent(dragLeave);\n }, 100);\n }\n\n public onDrop(event: DragEvent): void {\n event.preventDefault();\n\n this.clearDebouncedDragLeave();\n\n this.isDragged = false;\n const dropEvent = new CustomEvent('sp-dropzone-drop', {\n bubbles: true,\n composed: true,\n detail: event,\n });\n this.dispatchEvent(dropEvent);\n }\n\n protected override render(): TemplateResult {\n return html`\n <slot></slot>\n `;\n }\n\n protected clearDebouncedDragLeave(): void {\n if (this.debouncedDragLeave) {\n clearTimeout(this.debouncedDragLeave);\n this.debouncedDragLeave = null;\n }\n }\n}\n\ndeclare global {\n interface GlobalEventHandlersEventMap {\n 'sp-dropzone:should-accept': CustomEvent<DragEvent>;\n 'sp-dropzone:dragover': CustomEvent<DragEvent>;\n 'sp-dropzone:dragleave': CustomEvent<DragEvent>;\n 'sp-dropzone:drop': CustomEvent<DragEvent>;\n }\n}\n"],
5
+ "mappings": "qNAYA,OAEI,QAAAA,EACA,mBAAAC,MAEG,gCACP,OAAS,YAAAC,MAAgB,kDAEzB,OAAOC,MAAoB,oBAoBpB,aAAM,iBAAiBF,CAAgB,CAAvC,kCAkBH,KAAQ,YAA2B,OAMnC,KAAO,UAAY,GAMnB,KAAO,SAAW,GAElB,KAAQ,mBAAoC,KA/B5C,WAA2B,QAAyB,CAChD,MAAO,CAACE,CAAc,CAC1B,CAOA,IAAW,YAA0B,CACjC,OAAO,KAAK,WAChB,CACA,IAAW,WAAWC,EAAoB,CAClC,CAAC,OAAQ,OAAQ,OAAQ,MAAM,EAAE,SAASA,CAAK,IAC/C,KAAK,YAAcA,EAE3B,CAiBgB,mBAA0B,CACtC,MAAM,kBAAkB,EAExB,KAAK,iBAAiB,OAAQ,KAAK,MAAM,EACzC,KAAK,iBAAiB,WAAY,KAAK,UAAU,EACjD,KAAK,iBAAiB,YAAa,KAAK,WAAW,CACvD,CAEgB,sBAA6B,CACzC,MAAM,qBAAqB,EAE3B,KAAK,oBAAoB,OAAQ,KAAK,MAAM,EAC5C,KAAK,oBAAoB,WAAY,KAAK,UAAU,EACpD,KAAK,oBAAoB,YAAa,KAAK,WAAW,CAC1D,CAEO,WAAWC,EAAwB,CACtC,MAAMC,EAAoB,IAAI,YAAY,4BAA6B,CACnE,QAAS,GACT,WAAY,GACZ,SAAU,GACV,OAAQD,CACZ,CAAC,EACKE,EAAe,KAAK,cAAcD,CAAiB,EACzD,GAAI,CAACD,EAAM,aACP,OAEJ,GAAI,CAACE,EAAc,CACfF,EAAM,aAAa,WAAa,OAChC,MACJ,CAEAA,EAAM,eAAe,EAErB,KAAK,wBAAwB,EAE7B,KAAK,UAAY,GAEjBA,EAAM,aAAa,WAAa,KAAK,WACrC,MAAMG,EAAgB,IAAI,YAAY,uBAAwB,CAC1D,QAAS,GACT,SAAU,GACV,OAAQH,CACZ,CAAC,EACD,KAAK,cAAcG,CAAa,CACpC,CAEO,YAAYH,EAAwB,CACvC,KAAK,wBAAwB,EAE7B,KAAK,mBAAqB,OAAO,WAAW,IAAM,CAC9C,KAAK,UAAY,GAEjB,MAAMI,EAAY,IAAI,YAAY,wBAAyB,CACvD,QAAS,GACT,SAAU,GACV,OAAQJ,CACZ,CAAC,EACD,KAAK,cAAcI,CAAS,CAChC,EAAG,GAAG,CACV,CAEO,OAAOJ,EAAwB,CAClCA,EAAM,eAAe,EAErB,KAAK,wBAAwB,EAE7B,KAAK,UAAY,GACjB,MAAMK,EAAY,IAAI,YAAY,mBAAoB,CAClD,QAAS,GACT,SAAU,GACV,OAAQL,CACZ,CAAC,EACD,KAAK,cAAcK,CAAS,CAChC,CAEmB,QAAyB,CACxC,OAAOV;AAAA;AAAA,SAGX,CAEU,yBAAgC,CAClC,KAAK,qBACL,aAAa,KAAK,kBAAkB,EACpC,KAAK,mBAAqB,KAElC,CACJ,CAlGWW,EAAA,CADNT,EAAS,CAAE,KAAM,QAAS,QAAS,GAAM,UAAW,SAAU,CAAC,GAvBvD,SAwBF,yBAMAS,EAAA,CADNT,EAAS,CAAE,KAAM,QAAS,UAAW,QAAS,CAAC,GA7BvC,SA8BF",
6
+ "names": ["html", "SpectrumElement", "property", "dropzoneStyles", "value", "event", "shouldAcceptEvent", "shouldAccept", "dragOverEvent", "dragLeave", "dropEvent", "__decorateClass"]
7
+ }
@@ -0,0 +1,2 @@
1
+ declare const styles: import("@spectrum-web-components/base").CSSResult;
2
+ export default styles;
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ import { css } from "@spectrum-web-components/base";
3
+ const styles = css`
4
+ :host{--spectrum-drop-zone-padding:var(--system-drop-zone-padding);--spectrum-drop-zone-illustration-to-heading:var(--system-drop-zone-illustration-to-heading);--spectrum-drop-zone-heading-to-body:var(--system-drop-zone-heading-to-body);--spectrum-drop-zone-border-width:var(--system-drop-zone-border-width);--spectrum-drop-zone-corner-radius:var(--system-drop-zone-corner-radius);--spectrum-drop-zone-border-color:var(--system-drop-zone-border-color);--spectrum-drop-zone-heading-font-family:var(--system-drop-zone-heading-font-family);--spectrum-drop-zone-heading-font-weight:var(--system-drop-zone-heading-font-weight);--spectrum-drop-zone-heading-font-style:var(--system-drop-zone-heading-font-style);--spectrum-drop-zone-heading-font-size:var(--system-drop-zone-heading-font-size);--spectrum-drop-zone-heading-line-height:var(--system-drop-zone-heading-line-height);--spectrum-drop-zone-heading-color:var(--system-drop-zone-heading-color);--spectrum-drop-zone-body-font-family:var(--system-drop-zone-body-font-family);--spectrum-drop-zone-body-font-weight:var(--system-drop-zone-body-font-weight);--spectrum-drop-zone-body-font-style:var(--system-drop-zone-body-font-style);--spectrum-drop-zone-body-font-size:var(--system-drop-zone-body-font-size);--spectrum-drop-zone-body-line-height:var(--system-drop-zone-body-line-height);--spectrum-drop-zone-body-color:var(--system-drop-zone-body-color);--spectrum-drop-zone-background-color:var(--system-drop-zone-background-color);--spectrum-drop-zone-border-color-hover:var(--system-drop-zone-border-color-hover);--spectrum-drop-zone-illustration-color:var(--system-drop-zone-illustration-color);--spectrum-drop-zone-illustration-color-hover:var(--system-drop-zone-illustration-color-hover);--spectrum-drop-zone-content-height:var(--system-drop-zone-content-height);--spectrum-drop-zone-content-max-width:var(--system-drop-zone-content-max-width);--spectrum-drop-zone-content-edge-to-text:var(--system-drop-zone-content-edge-to-text);--spectrum-drop-zone-content-top-to-text:var(--system-drop-zone-content-top-to-text);--spectrum-drop-zone-content-bottom-to-text:var(--system-drop-zone-content-bottom-to-text);--spectrum-drop-zone-content-font-family:var(--system-drop-zone-content-font-family);--spectrum-drop-zone-content-font-weight:var(--system-drop-zone-content-font-weight);--spectrum-drop-zone-content-font-style:var(--system-drop-zone-content-font-style);--spectrum-drop-zone-content-font-size:var(--system-drop-zone-content-font-size);--spectrum-drop-zone-content-line-height:var(--system-drop-zone-content-line-height);--spectrum-drop-zone-content-background-color:var(--system-drop-zone-content-background-color);--spectrum-drop-zone-content-color:var(--system-drop-zone-content-color);--spectrum-drop-zone-heading-font-size-cjk:var(--system-drop-zone-heading-font-size-cjk)}
5
+ `;
6
+ export default styles;
7
+ //# sourceMappingURL=dropzone-overrides.css.dev.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["dropzone-overrides.css.ts"],
4
+ "sourcesContent": ["/*\nCopyright 2024 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\nimport { css } from '@spectrum-web-components/base';\nconst styles = css`\n :host{--spectrum-drop-zone-padding:var(--system-drop-zone-padding);--spectrum-drop-zone-illustration-to-heading:var(--system-drop-zone-illustration-to-heading);--spectrum-drop-zone-heading-to-body:var(--system-drop-zone-heading-to-body);--spectrum-drop-zone-border-width:var(--system-drop-zone-border-width);--spectrum-drop-zone-corner-radius:var(--system-drop-zone-corner-radius);--spectrum-drop-zone-border-color:var(--system-drop-zone-border-color);--spectrum-drop-zone-heading-font-family:var(--system-drop-zone-heading-font-family);--spectrum-drop-zone-heading-font-weight:var(--system-drop-zone-heading-font-weight);--spectrum-drop-zone-heading-font-style:var(--system-drop-zone-heading-font-style);--spectrum-drop-zone-heading-font-size:var(--system-drop-zone-heading-font-size);--spectrum-drop-zone-heading-line-height:var(--system-drop-zone-heading-line-height);--spectrum-drop-zone-heading-color:var(--system-drop-zone-heading-color);--spectrum-drop-zone-body-font-family:var(--system-drop-zone-body-font-family);--spectrum-drop-zone-body-font-weight:var(--system-drop-zone-body-font-weight);--spectrum-drop-zone-body-font-style:var(--system-drop-zone-body-font-style);--spectrum-drop-zone-body-font-size:var(--system-drop-zone-body-font-size);--spectrum-drop-zone-body-line-height:var(--system-drop-zone-body-line-height);--spectrum-drop-zone-body-color:var(--system-drop-zone-body-color);--spectrum-drop-zone-background-color:var(--system-drop-zone-background-color);--spectrum-drop-zone-border-color-hover:var(--system-drop-zone-border-color-hover);--spectrum-drop-zone-illustration-color:var(--system-drop-zone-illustration-color);--spectrum-drop-zone-illustration-color-hover:var(--system-drop-zone-illustration-color-hover);--spectrum-drop-zone-content-height:var(--system-drop-zone-content-height);--spectrum-drop-zone-content-max-width:var(--system-drop-zone-content-max-width);--spectrum-drop-zone-content-edge-to-text:var(--system-drop-zone-content-edge-to-text);--spectrum-drop-zone-content-top-to-text:var(--system-drop-zone-content-top-to-text);--spectrum-drop-zone-content-bottom-to-text:var(--system-drop-zone-content-bottom-to-text);--spectrum-drop-zone-content-font-family:var(--system-drop-zone-content-font-family);--spectrum-drop-zone-content-font-weight:var(--system-drop-zone-content-font-weight);--spectrum-drop-zone-content-font-style:var(--system-drop-zone-content-font-style);--spectrum-drop-zone-content-font-size:var(--system-drop-zone-content-font-size);--spectrum-drop-zone-content-line-height:var(--system-drop-zone-content-line-height);--spectrum-drop-zone-content-background-color:var(--system-drop-zone-content-background-color);--spectrum-drop-zone-content-color:var(--system-drop-zone-content-color);--spectrum-drop-zone-heading-font-size-cjk:var(--system-drop-zone-heading-font-size-cjk)}\n`;\nexport default styles;"],
5
+ "mappings": ";AAWA,SAAS,WAAW;AACpB,MAAM,SAAS;AAAA;AAAA;AAGf,eAAe;",
6
+ "names": []
7
+ }
@@ -0,0 +1,4 @@
1
+ "use strict";import{css as o}from"@spectrum-web-components/base";const e=o`
2
+ :host{--spectrum-drop-zone-padding:var(--system-drop-zone-padding);--spectrum-drop-zone-illustration-to-heading:var(--system-drop-zone-illustration-to-heading);--spectrum-drop-zone-heading-to-body:var(--system-drop-zone-heading-to-body);--spectrum-drop-zone-border-width:var(--system-drop-zone-border-width);--spectrum-drop-zone-corner-radius:var(--system-drop-zone-corner-radius);--spectrum-drop-zone-border-color:var(--system-drop-zone-border-color);--spectrum-drop-zone-heading-font-family:var(--system-drop-zone-heading-font-family);--spectrum-drop-zone-heading-font-weight:var(--system-drop-zone-heading-font-weight);--spectrum-drop-zone-heading-font-style:var(--system-drop-zone-heading-font-style);--spectrum-drop-zone-heading-font-size:var(--system-drop-zone-heading-font-size);--spectrum-drop-zone-heading-line-height:var(--system-drop-zone-heading-line-height);--spectrum-drop-zone-heading-color:var(--system-drop-zone-heading-color);--spectrum-drop-zone-body-font-family:var(--system-drop-zone-body-font-family);--spectrum-drop-zone-body-font-weight:var(--system-drop-zone-body-font-weight);--spectrum-drop-zone-body-font-style:var(--system-drop-zone-body-font-style);--spectrum-drop-zone-body-font-size:var(--system-drop-zone-body-font-size);--spectrum-drop-zone-body-line-height:var(--system-drop-zone-body-line-height);--spectrum-drop-zone-body-color:var(--system-drop-zone-body-color);--spectrum-drop-zone-background-color:var(--system-drop-zone-background-color);--spectrum-drop-zone-border-color-hover:var(--system-drop-zone-border-color-hover);--spectrum-drop-zone-illustration-color:var(--system-drop-zone-illustration-color);--spectrum-drop-zone-illustration-color-hover:var(--system-drop-zone-illustration-color-hover);--spectrum-drop-zone-content-height:var(--system-drop-zone-content-height);--spectrum-drop-zone-content-max-width:var(--system-drop-zone-content-max-width);--spectrum-drop-zone-content-edge-to-text:var(--system-drop-zone-content-edge-to-text);--spectrum-drop-zone-content-top-to-text:var(--system-drop-zone-content-top-to-text);--spectrum-drop-zone-content-bottom-to-text:var(--system-drop-zone-content-bottom-to-text);--spectrum-drop-zone-content-font-family:var(--system-drop-zone-content-font-family);--spectrum-drop-zone-content-font-weight:var(--system-drop-zone-content-font-weight);--spectrum-drop-zone-content-font-style:var(--system-drop-zone-content-font-style);--spectrum-drop-zone-content-font-size:var(--system-drop-zone-content-font-size);--spectrum-drop-zone-content-line-height:var(--system-drop-zone-content-line-height);--spectrum-drop-zone-content-background-color:var(--system-drop-zone-content-background-color);--spectrum-drop-zone-content-color:var(--system-drop-zone-content-color);--spectrum-drop-zone-heading-font-size-cjk:var(--system-drop-zone-heading-font-size-cjk)}
3
+ `;export default e;
4
+ //# sourceMappingURL=dropzone-overrides.css.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["dropzone-overrides.css.ts"],
4
+ "sourcesContent": ["/*\nCopyright 2024 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\nimport { css } from '@spectrum-web-components/base';\nconst styles = css`\n :host{--spectrum-drop-zone-padding:var(--system-drop-zone-padding);--spectrum-drop-zone-illustration-to-heading:var(--system-drop-zone-illustration-to-heading);--spectrum-drop-zone-heading-to-body:var(--system-drop-zone-heading-to-body);--spectrum-drop-zone-border-width:var(--system-drop-zone-border-width);--spectrum-drop-zone-corner-radius:var(--system-drop-zone-corner-radius);--spectrum-drop-zone-border-color:var(--system-drop-zone-border-color);--spectrum-drop-zone-heading-font-family:var(--system-drop-zone-heading-font-family);--spectrum-drop-zone-heading-font-weight:var(--system-drop-zone-heading-font-weight);--spectrum-drop-zone-heading-font-style:var(--system-drop-zone-heading-font-style);--spectrum-drop-zone-heading-font-size:var(--system-drop-zone-heading-font-size);--spectrum-drop-zone-heading-line-height:var(--system-drop-zone-heading-line-height);--spectrum-drop-zone-heading-color:var(--system-drop-zone-heading-color);--spectrum-drop-zone-body-font-family:var(--system-drop-zone-body-font-family);--spectrum-drop-zone-body-font-weight:var(--system-drop-zone-body-font-weight);--spectrum-drop-zone-body-font-style:var(--system-drop-zone-body-font-style);--spectrum-drop-zone-body-font-size:var(--system-drop-zone-body-font-size);--spectrum-drop-zone-body-line-height:var(--system-drop-zone-body-line-height);--spectrum-drop-zone-body-color:var(--system-drop-zone-body-color);--spectrum-drop-zone-background-color:var(--system-drop-zone-background-color);--spectrum-drop-zone-border-color-hover:var(--system-drop-zone-border-color-hover);--spectrum-drop-zone-illustration-color:var(--system-drop-zone-illustration-color);--spectrum-drop-zone-illustration-color-hover:var(--system-drop-zone-illustration-color-hover);--spectrum-drop-zone-content-height:var(--system-drop-zone-content-height);--spectrum-drop-zone-content-max-width:var(--system-drop-zone-content-max-width);--spectrum-drop-zone-content-edge-to-text:var(--system-drop-zone-content-edge-to-text);--spectrum-drop-zone-content-top-to-text:var(--system-drop-zone-content-top-to-text);--spectrum-drop-zone-content-bottom-to-text:var(--system-drop-zone-content-bottom-to-text);--spectrum-drop-zone-content-font-family:var(--system-drop-zone-content-font-family);--spectrum-drop-zone-content-font-weight:var(--system-drop-zone-content-font-weight);--spectrum-drop-zone-content-font-style:var(--system-drop-zone-content-font-style);--spectrum-drop-zone-content-font-size:var(--system-drop-zone-content-font-size);--spectrum-drop-zone-content-line-height:var(--system-drop-zone-content-line-height);--spectrum-drop-zone-content-background-color:var(--system-drop-zone-content-background-color);--spectrum-drop-zone-content-color:var(--system-drop-zone-content-color);--spectrum-drop-zone-heading-font-size-cjk:var(--system-drop-zone-heading-font-size-cjk)}\n`;\nexport default styles;"],
5
+ "mappings": "aAWA,OAAS,OAAAA,MAAW,gCACpB,MAAMC,EAASD;AAAA;AAAA,EAGf,eAAeC",
6
+ "names": ["css", "styles"]
7
+ }
@@ -0,0 +1,2 @@
1
+ declare const styles: import("@spectrum-web-components/base").CSSResult;
2
+ export default styles;
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ import { css } from "@spectrum-web-components/base";
3
+ const styles = css`
4
+ :host{--mod-illustrated-message-content-maximum-width:var(--mod-drop-zone-content-maximum-width,var(--spectrum-drop-zone-content-maximum-width));--mod-illustrated-message-illustration-color:var(--mod-drop-zone-illustration-color,var(--spectrum-drop-zone-illustration-color));--mod-illustrated-message-title-to-heading:var(--mod-drop-zone-illustration-to-heading,var(--spectrum-drop-zone-illustration-to-heading));--mod-illustrated-message-heading-to-body:var(--mod-drop-zone-heading-to-body,var(--spectrum-drop-zone-heading-to-body));--mod-illustrated-message-title-font-family:var(--mod-drop-zone-heading-font-family,var(--spectrum-drop-zone-heading-font-family));--mod-illustrated-message-title-font-weight:var(--mod-drop-zone-heading-font-weight,var(--spectrum-drop-zone-heading-font-weight));--mod-illustrated-message-title-font-style:var(--mod-drop-zone-heading-font-style,var(--spectrum-drop-zone-heading-font-style));--mod-illustrated-message-title-font-size:var(--mod-drop-zone-heading-font-size,var(--spectrum-drop-zone-heading-font-size));--mod-illustrated-message-title-line-height:var(--mod-drop-zone-heading-line-height,var(--spectrum-drop-zone-heading-line-height));--mod-illustrated-message-title-color:var(--mod-drop-zone-heading-color,var(--spectrum-drop-zone-heading-color));--mod-illustrated-message-description-position:relative;--mod-illustrated-message-description-z-index:1;--mod-illustrated-message-heading-to-description:0;--mod-illustrated-message-description-font-family:var(--mod-drop-zone-body-font-family,var(--spectrum-drop-zone-body-font-family));--mod-illustrated-message-description-font-weight:var(--mod-drop-zone-body-font-weight,var(--spectrum-drop-zone-body-font-weight));--mod-illustrated-message-description-font-style:var(--mod-drop-zone-body-font-style,var(--spectrum-drop-zone-body-font-style));--mod-illustrated-message-description-font-size:var(--mod-drop-zone-body-font-size,var(--spectrum-drop-zone-body-font-size));--mod-illustrated-message-description-line-height:var(--mod-drop-zone-body-line-height,var(--spectrum-drop-zone-body-line-height));--mod-illustrated-message-description-color:var(--mod-drop-zone-body-color,var(--spectrum-drop-zone-body-color));--mod-actionbutton-font-size:var(--mod-drop-zone-content-font-size,var(--spectrum-drop-zone-content-font-size));--mod-actionbutton-label-color:var(--mod-drop-zone-content-color,var(--spectrum-drop-zone-content-color));--mod-actionbutton-edge-to-text:var(--mod-drop-zone-content-edge-to-text,var(--spectrum-drop-zone-content-edge-to-text));box-sizing:border-box;inline-size:var(--mod-drop-zone-width,var(--spectrum-drop-zone-width));padding:calc(var(--mod-drop-zone-padding,var(--spectrum-drop-zone-padding)) - var(--mod-drop-zone-border-width,var(--spectrum-drop-zone-border-width)));text-align:center;border-color:var(--mod-drop-zone-border-color,var(--spectrum-drop-zone-border-color));border-width:var(--mod-drop-zone-border-width,var(--spectrum-drop-zone-border-width));border-radius:var(--mod-drop-zone-corner-radius,var(--spectrum-drop-zone-corner-radius));border-style:dashed;border-style:var(--mod-drop-zone-border-style,var(--spectrum-drop-zone-border-style,dashed));background-color:var(--mod-drop-zone-background-color,var(--spectrum-drop-zone-background-color));background-size:cover}:host:lang(ja),:host:lang(ko),:host:lang(zh){--spectrum-drop-zone-heading-font-size:var(--spectrum-drop-zone-heading-font-size-cjk)}:host([dragged]){--mod-drop-zone-border-style:var(--mod-drop-zone-border-style-dragged,solid);--mod-drop-zone-background-color:rgba(var(--spectrum-drop-zone-background-color),var(--mod-drop-zone-background-color-opacity,var(--spectrum-drop-zone-background-color-opacity)));--spectrum-drop-zone-border-color:var(--highcontrast-drop-zone-border-color-hover,var(--mod-drop-zone-border-color-hover,var(--spectrum-drop-zone-border-color-hover)));--mod-illustrated-message-illustration-color:var(--mod-drop-zone-illustration-color-hover,var(--spectrum-drop-zone-illustration-color-hover))}:host([filled]){--mod-drop-zone-background-color:rgba(var(--spectrum-drop-zone-background-color),var(--mod-drop-zone-background-color-opacity-filled,var(--spectrum-drop-zone-background-color-opacity-filled)));--mod-illustrated-message-display:none}:host([filled][dragged]){--mod-drop-zone-content-display:flex}:host(:focus-visible){--mod-drop-zone-border-style:solid;--spectrum-drop-zone-border-color:var(--highcontrast-drop-zone-border-color-hover,var(--mod-drop-zone-border-color-hover,var(--spectrum-drop-zone-border-color-hover)));outline:0}.spectrum-DropZone-content{display:none;display:var(--mod-drop-zone-content-display,var(--spectrum-drop-zone-content-display,none));block-size:100%;z-index:1;justify-content:center;align-items:center;position:relative}.spectrum-DropZone-button{box-sizing:border-box;block-size:var(--mod-drop-zone-content-height,var(--spectrum-drop-zone-content-height));max-inline-size:var(--mod-drop-zone-content-max-width,var(--spectrum-drop-zone-content-max-width));font-family:var(--mod-drop-zone-content-font-family,var(--spectrum-drop-zone-content-font-family));font-weight:var(--mod-drop-zone-content-font-weight,var(--spectrum-drop-zone-content-font-weight));font-style:var(--mod-drop-zone-content-font-style,var(--spectrum-drop-zone-content-font-style));line-height:var(--mod-drop-zone-content-line-height,var(--spectrum-drop-zone-content-line-height));border:none;padding-block-start:var(--mod-drop-zone-content-top-to-text,var(--spectrum-drop-zone-content-top-to-text));padding-block-end:var(--mod-drop-zone-content-bottom-to-text,var(--spectrum-drop-zone-content-bottom-to-text))}.spectrum-DropZone-button,.spectrum-DropZone-button:focus{background-color:var(--mod-drop-zone-content-background-color,var(--spectrum-drop-zone-content-background-color))}@media (hover:hover){.spectrum-DropZone-button:hover{background-color:var(--mod-drop-zone-content-background-color,var(--spectrum-drop-zone-content-background-color))}}@media (forced-colors:active){:host{--highcontrast-drop-zone-illustration-color:CanvasText;--highcontrast-drop-zone-border-color-hover:Highlight;--highcontrast-illustrated-message-illustration-color:var(--highcontrast-drop-zone-illustration-color)}}:host{--spectrum-drop-zone-padding:var(--system-drop-zone-padding);--spectrum-drop-zone-illustration-to-heading:var(--system-drop-zone-illustration-to-heading);--spectrum-drop-zone-heading-to-body:var(--system-drop-zone-heading-to-body);--spectrum-drop-zone-border-width:var(--system-drop-zone-border-width);--spectrum-drop-zone-corner-radius:var(--system-drop-zone-corner-radius);--spectrum-drop-zone-border-color:var(--system-drop-zone-border-color);--spectrum-drop-zone-heading-font-family:var(--system-drop-zone-heading-font-family);--spectrum-drop-zone-heading-font-weight:var(--system-drop-zone-heading-font-weight);--spectrum-drop-zone-heading-font-style:var(--system-drop-zone-heading-font-style);--spectrum-drop-zone-heading-font-size:var(--system-drop-zone-heading-font-size);--spectrum-drop-zone-heading-line-height:var(--system-drop-zone-heading-line-height);--spectrum-drop-zone-heading-color:var(--system-drop-zone-heading-color);--spectrum-drop-zone-body-font-family:var(--system-drop-zone-body-font-family);--spectrum-drop-zone-body-font-weight:var(--system-drop-zone-body-font-weight);--spectrum-drop-zone-body-font-style:var(--system-drop-zone-body-font-style);--spectrum-drop-zone-body-font-size:var(--system-drop-zone-body-font-size);--spectrum-drop-zone-body-line-height:var(--system-drop-zone-body-line-height);--spectrum-drop-zone-body-color:var(--system-drop-zone-body-color);--spectrum-drop-zone-background-color:var(--system-drop-zone-background-color);--spectrum-drop-zone-border-color-hover:var(--system-drop-zone-border-color-hover);--spectrum-drop-zone-illustration-color:var(--system-drop-zone-illustration-color);--spectrum-drop-zone-illustration-color-hover:var(--system-drop-zone-illustration-color-hover);--spectrum-drop-zone-content-height:var(--system-drop-zone-content-height);--spectrum-drop-zone-content-max-width:var(--system-drop-zone-content-max-width);--spectrum-drop-zone-content-edge-to-text:var(--system-drop-zone-content-edge-to-text);--spectrum-drop-zone-content-top-to-text:var(--system-drop-zone-content-top-to-text);--spectrum-drop-zone-content-bottom-to-text:var(--system-drop-zone-content-bottom-to-text);--spectrum-drop-zone-content-font-family:var(--system-drop-zone-content-font-family);--spectrum-drop-zone-content-font-weight:var(--system-drop-zone-content-font-weight);--spectrum-drop-zone-content-font-style:var(--system-drop-zone-content-font-style);--spectrum-drop-zone-content-font-size:var(--system-drop-zone-content-font-size);--spectrum-drop-zone-content-line-height:var(--system-drop-zone-content-line-height);--spectrum-drop-zone-content-background-color:var(--system-drop-zone-content-background-color);--spectrum-drop-zone-content-color:var(--system-drop-zone-content-color);--spectrum-drop-zone-heading-font-size-cjk:var(--system-drop-zone-heading-font-size-cjk)}:host{display:block}::slotted(*){font-family:var(--mod-drop-zone-body-font-family,var(--spectrum-drop-zone-body-font-family));font-size:var(--mod-drop-zone-body-font-size,var(--spectrum-drop-zone-body-font-size));font-weight:var(--mod-drop-zone-body-font-weight,var(--spectrum-drop-zone-body-font-weight));line-height:var(--mod-drop-zone-body-line-height,var(--spectrum-drop-zone-body-line-height));font-style:var(--spectrum-drop-zone-body-font-style,var(--spectrum-drop-zone-body-font-style));margin-top:0;margin-bottom:0}
5
+ `;
6
+ export default styles;
7
+ //# sourceMappingURL=dropzone.css.dev.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["dropzone.css.ts"],
4
+ "sourcesContent": ["/*\nCopyright 2024 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\nimport { css } from '@spectrum-web-components/base';\nconst styles = css`\n :host{--mod-illustrated-message-content-maximum-width:var(--mod-drop-zone-content-maximum-width,var(--spectrum-drop-zone-content-maximum-width));--mod-illustrated-message-illustration-color:var(--mod-drop-zone-illustration-color,var(--spectrum-drop-zone-illustration-color));--mod-illustrated-message-title-to-heading:var(--mod-drop-zone-illustration-to-heading,var(--spectrum-drop-zone-illustration-to-heading));--mod-illustrated-message-heading-to-body:var(--mod-drop-zone-heading-to-body,var(--spectrum-drop-zone-heading-to-body));--mod-illustrated-message-title-font-family:var(--mod-drop-zone-heading-font-family,var(--spectrum-drop-zone-heading-font-family));--mod-illustrated-message-title-font-weight:var(--mod-drop-zone-heading-font-weight,var(--spectrum-drop-zone-heading-font-weight));--mod-illustrated-message-title-font-style:var(--mod-drop-zone-heading-font-style,var(--spectrum-drop-zone-heading-font-style));--mod-illustrated-message-title-font-size:var(--mod-drop-zone-heading-font-size,var(--spectrum-drop-zone-heading-font-size));--mod-illustrated-message-title-line-height:var(--mod-drop-zone-heading-line-height,var(--spectrum-drop-zone-heading-line-height));--mod-illustrated-message-title-color:var(--mod-drop-zone-heading-color,var(--spectrum-drop-zone-heading-color));--mod-illustrated-message-description-position:relative;--mod-illustrated-message-description-z-index:1;--mod-illustrated-message-heading-to-description:0;--mod-illustrated-message-description-font-family:var(--mod-drop-zone-body-font-family,var(--spectrum-drop-zone-body-font-family));--mod-illustrated-message-description-font-weight:var(--mod-drop-zone-body-font-weight,var(--spectrum-drop-zone-body-font-weight));--mod-illustrated-message-description-font-style:var(--mod-drop-zone-body-font-style,var(--spectrum-drop-zone-body-font-style));--mod-illustrated-message-description-font-size:var(--mod-drop-zone-body-font-size,var(--spectrum-drop-zone-body-font-size));--mod-illustrated-message-description-line-height:var(--mod-drop-zone-body-line-height,var(--spectrum-drop-zone-body-line-height));--mod-illustrated-message-description-color:var(--mod-drop-zone-body-color,var(--spectrum-drop-zone-body-color));--mod-actionbutton-font-size:var(--mod-drop-zone-content-font-size,var(--spectrum-drop-zone-content-font-size));--mod-actionbutton-label-color:var(--mod-drop-zone-content-color,var(--spectrum-drop-zone-content-color));--mod-actionbutton-edge-to-text:var(--mod-drop-zone-content-edge-to-text,var(--spectrum-drop-zone-content-edge-to-text));box-sizing:border-box;inline-size:var(--mod-drop-zone-width,var(--spectrum-drop-zone-width));padding:calc(var(--mod-drop-zone-padding,var(--spectrum-drop-zone-padding)) - var(--mod-drop-zone-border-width,var(--spectrum-drop-zone-border-width)));text-align:center;border-color:var(--mod-drop-zone-border-color,var(--spectrum-drop-zone-border-color));border-width:var(--mod-drop-zone-border-width,var(--spectrum-drop-zone-border-width));border-radius:var(--mod-drop-zone-corner-radius,var(--spectrum-drop-zone-corner-radius));border-style:dashed;border-style:var(--mod-drop-zone-border-style,var(--spectrum-drop-zone-border-style,dashed));background-color:var(--mod-drop-zone-background-color,var(--spectrum-drop-zone-background-color));background-size:cover}:host:lang(ja),:host:lang(ko),:host:lang(zh){--spectrum-drop-zone-heading-font-size:var(--spectrum-drop-zone-heading-font-size-cjk)}:host([dragged]){--mod-drop-zone-border-style:var(--mod-drop-zone-border-style-dragged,solid);--mod-drop-zone-background-color:rgba(var(--spectrum-drop-zone-background-color),var(--mod-drop-zone-background-color-opacity,var(--spectrum-drop-zone-background-color-opacity)));--spectrum-drop-zone-border-color:var(--highcontrast-drop-zone-border-color-hover,var(--mod-drop-zone-border-color-hover,var(--spectrum-drop-zone-border-color-hover)));--mod-illustrated-message-illustration-color:var(--mod-drop-zone-illustration-color-hover,var(--spectrum-drop-zone-illustration-color-hover))}:host([filled]){--mod-drop-zone-background-color:rgba(var(--spectrum-drop-zone-background-color),var(--mod-drop-zone-background-color-opacity-filled,var(--spectrum-drop-zone-background-color-opacity-filled)));--mod-illustrated-message-display:none}:host([filled][dragged]){--mod-drop-zone-content-display:flex}:host(:focus-visible){--mod-drop-zone-border-style:solid;--spectrum-drop-zone-border-color:var(--highcontrast-drop-zone-border-color-hover,var(--mod-drop-zone-border-color-hover,var(--spectrum-drop-zone-border-color-hover)));outline:0}.spectrum-DropZone-content{display:none;display:var(--mod-drop-zone-content-display,var(--spectrum-drop-zone-content-display,none));block-size:100%;z-index:1;justify-content:center;align-items:center;position:relative}.spectrum-DropZone-button{box-sizing:border-box;block-size:var(--mod-drop-zone-content-height,var(--spectrum-drop-zone-content-height));max-inline-size:var(--mod-drop-zone-content-max-width,var(--spectrum-drop-zone-content-max-width));font-family:var(--mod-drop-zone-content-font-family,var(--spectrum-drop-zone-content-font-family));font-weight:var(--mod-drop-zone-content-font-weight,var(--spectrum-drop-zone-content-font-weight));font-style:var(--mod-drop-zone-content-font-style,var(--spectrum-drop-zone-content-font-style));line-height:var(--mod-drop-zone-content-line-height,var(--spectrum-drop-zone-content-line-height));border:none;padding-block-start:var(--mod-drop-zone-content-top-to-text,var(--spectrum-drop-zone-content-top-to-text));padding-block-end:var(--mod-drop-zone-content-bottom-to-text,var(--spectrum-drop-zone-content-bottom-to-text))}.spectrum-DropZone-button,.spectrum-DropZone-button:focus{background-color:var(--mod-drop-zone-content-background-color,var(--spectrum-drop-zone-content-background-color))}@media (hover:hover){.spectrum-DropZone-button:hover{background-color:var(--mod-drop-zone-content-background-color,var(--spectrum-drop-zone-content-background-color))}}@media (forced-colors:active){:host{--highcontrast-drop-zone-illustration-color:CanvasText;--highcontrast-drop-zone-border-color-hover:Highlight;--highcontrast-illustrated-message-illustration-color:var(--highcontrast-drop-zone-illustration-color)}}:host{--spectrum-drop-zone-padding:var(--system-drop-zone-padding);--spectrum-drop-zone-illustration-to-heading:var(--system-drop-zone-illustration-to-heading);--spectrum-drop-zone-heading-to-body:var(--system-drop-zone-heading-to-body);--spectrum-drop-zone-border-width:var(--system-drop-zone-border-width);--spectrum-drop-zone-corner-radius:var(--system-drop-zone-corner-radius);--spectrum-drop-zone-border-color:var(--system-drop-zone-border-color);--spectrum-drop-zone-heading-font-family:var(--system-drop-zone-heading-font-family);--spectrum-drop-zone-heading-font-weight:var(--system-drop-zone-heading-font-weight);--spectrum-drop-zone-heading-font-style:var(--system-drop-zone-heading-font-style);--spectrum-drop-zone-heading-font-size:var(--system-drop-zone-heading-font-size);--spectrum-drop-zone-heading-line-height:var(--system-drop-zone-heading-line-height);--spectrum-drop-zone-heading-color:var(--system-drop-zone-heading-color);--spectrum-drop-zone-body-font-family:var(--system-drop-zone-body-font-family);--spectrum-drop-zone-body-font-weight:var(--system-drop-zone-body-font-weight);--spectrum-drop-zone-body-font-style:var(--system-drop-zone-body-font-style);--spectrum-drop-zone-body-font-size:var(--system-drop-zone-body-font-size);--spectrum-drop-zone-body-line-height:var(--system-drop-zone-body-line-height);--spectrum-drop-zone-body-color:var(--system-drop-zone-body-color);--spectrum-drop-zone-background-color:var(--system-drop-zone-background-color);--spectrum-drop-zone-border-color-hover:var(--system-drop-zone-border-color-hover);--spectrum-drop-zone-illustration-color:var(--system-drop-zone-illustration-color);--spectrum-drop-zone-illustration-color-hover:var(--system-drop-zone-illustration-color-hover);--spectrum-drop-zone-content-height:var(--system-drop-zone-content-height);--spectrum-drop-zone-content-max-width:var(--system-drop-zone-content-max-width);--spectrum-drop-zone-content-edge-to-text:var(--system-drop-zone-content-edge-to-text);--spectrum-drop-zone-content-top-to-text:var(--system-drop-zone-content-top-to-text);--spectrum-drop-zone-content-bottom-to-text:var(--system-drop-zone-content-bottom-to-text);--spectrum-drop-zone-content-font-family:var(--system-drop-zone-content-font-family);--spectrum-drop-zone-content-font-weight:var(--system-drop-zone-content-font-weight);--spectrum-drop-zone-content-font-style:var(--system-drop-zone-content-font-style);--spectrum-drop-zone-content-font-size:var(--system-drop-zone-content-font-size);--spectrum-drop-zone-content-line-height:var(--system-drop-zone-content-line-height);--spectrum-drop-zone-content-background-color:var(--system-drop-zone-content-background-color);--spectrum-drop-zone-content-color:var(--system-drop-zone-content-color);--spectrum-drop-zone-heading-font-size-cjk:var(--system-drop-zone-heading-font-size-cjk)}:host{display:block}::slotted(*){font-family:var(--mod-drop-zone-body-font-family,var(--spectrum-drop-zone-body-font-family));font-size:var(--mod-drop-zone-body-font-size,var(--spectrum-drop-zone-body-font-size));font-weight:var(--mod-drop-zone-body-font-weight,var(--spectrum-drop-zone-body-font-weight));line-height:var(--mod-drop-zone-body-line-height,var(--spectrum-drop-zone-body-line-height));font-style:var(--spectrum-drop-zone-body-font-style,var(--spectrum-drop-zone-body-font-style));margin-top:0;margin-bottom:0}\n`;\nexport default styles;"],
5
+ "mappings": ";AAWA,SAAS,WAAW;AACpB,MAAM,SAAS;AAAA;AAAA;AAGf,eAAe;",
6
+ "names": []
7
+ }
@@ -0,0 +1,4 @@
1
+ "use strict";import{css as o}from"@spectrum-web-components/base";const e=o`
2
+ :host{--mod-illustrated-message-content-maximum-width:var(--mod-drop-zone-content-maximum-width,var(--spectrum-drop-zone-content-maximum-width));--mod-illustrated-message-illustration-color:var(--mod-drop-zone-illustration-color,var(--spectrum-drop-zone-illustration-color));--mod-illustrated-message-title-to-heading:var(--mod-drop-zone-illustration-to-heading,var(--spectrum-drop-zone-illustration-to-heading));--mod-illustrated-message-heading-to-body:var(--mod-drop-zone-heading-to-body,var(--spectrum-drop-zone-heading-to-body));--mod-illustrated-message-title-font-family:var(--mod-drop-zone-heading-font-family,var(--spectrum-drop-zone-heading-font-family));--mod-illustrated-message-title-font-weight:var(--mod-drop-zone-heading-font-weight,var(--spectrum-drop-zone-heading-font-weight));--mod-illustrated-message-title-font-style:var(--mod-drop-zone-heading-font-style,var(--spectrum-drop-zone-heading-font-style));--mod-illustrated-message-title-font-size:var(--mod-drop-zone-heading-font-size,var(--spectrum-drop-zone-heading-font-size));--mod-illustrated-message-title-line-height:var(--mod-drop-zone-heading-line-height,var(--spectrum-drop-zone-heading-line-height));--mod-illustrated-message-title-color:var(--mod-drop-zone-heading-color,var(--spectrum-drop-zone-heading-color));--mod-illustrated-message-description-position:relative;--mod-illustrated-message-description-z-index:1;--mod-illustrated-message-heading-to-description:0;--mod-illustrated-message-description-font-family:var(--mod-drop-zone-body-font-family,var(--spectrum-drop-zone-body-font-family));--mod-illustrated-message-description-font-weight:var(--mod-drop-zone-body-font-weight,var(--spectrum-drop-zone-body-font-weight));--mod-illustrated-message-description-font-style:var(--mod-drop-zone-body-font-style,var(--spectrum-drop-zone-body-font-style));--mod-illustrated-message-description-font-size:var(--mod-drop-zone-body-font-size,var(--spectrum-drop-zone-body-font-size));--mod-illustrated-message-description-line-height:var(--mod-drop-zone-body-line-height,var(--spectrum-drop-zone-body-line-height));--mod-illustrated-message-description-color:var(--mod-drop-zone-body-color,var(--spectrum-drop-zone-body-color));--mod-actionbutton-font-size:var(--mod-drop-zone-content-font-size,var(--spectrum-drop-zone-content-font-size));--mod-actionbutton-label-color:var(--mod-drop-zone-content-color,var(--spectrum-drop-zone-content-color));--mod-actionbutton-edge-to-text:var(--mod-drop-zone-content-edge-to-text,var(--spectrum-drop-zone-content-edge-to-text));box-sizing:border-box;inline-size:var(--mod-drop-zone-width,var(--spectrum-drop-zone-width));padding:calc(var(--mod-drop-zone-padding,var(--spectrum-drop-zone-padding)) - var(--mod-drop-zone-border-width,var(--spectrum-drop-zone-border-width)));text-align:center;border-color:var(--mod-drop-zone-border-color,var(--spectrum-drop-zone-border-color));border-width:var(--mod-drop-zone-border-width,var(--spectrum-drop-zone-border-width));border-radius:var(--mod-drop-zone-corner-radius,var(--spectrum-drop-zone-corner-radius));border-style:dashed;border-style:var(--mod-drop-zone-border-style,var(--spectrum-drop-zone-border-style,dashed));background-color:var(--mod-drop-zone-background-color,var(--spectrum-drop-zone-background-color));background-size:cover}:host:lang(ja),:host:lang(ko),:host:lang(zh){--spectrum-drop-zone-heading-font-size:var(--spectrum-drop-zone-heading-font-size-cjk)}:host([dragged]){--mod-drop-zone-border-style:var(--mod-drop-zone-border-style-dragged,solid);--mod-drop-zone-background-color:rgba(var(--spectrum-drop-zone-background-color),var(--mod-drop-zone-background-color-opacity,var(--spectrum-drop-zone-background-color-opacity)));--spectrum-drop-zone-border-color:var(--highcontrast-drop-zone-border-color-hover,var(--mod-drop-zone-border-color-hover,var(--spectrum-drop-zone-border-color-hover)));--mod-illustrated-message-illustration-color:var(--mod-drop-zone-illustration-color-hover,var(--spectrum-drop-zone-illustration-color-hover))}:host([filled]){--mod-drop-zone-background-color:rgba(var(--spectrum-drop-zone-background-color),var(--mod-drop-zone-background-color-opacity-filled,var(--spectrum-drop-zone-background-color-opacity-filled)));--mod-illustrated-message-display:none}:host([filled][dragged]){--mod-drop-zone-content-display:flex}:host(:focus-visible){--mod-drop-zone-border-style:solid;--spectrum-drop-zone-border-color:var(--highcontrast-drop-zone-border-color-hover,var(--mod-drop-zone-border-color-hover,var(--spectrum-drop-zone-border-color-hover)));outline:0}.spectrum-DropZone-content{display:none;display:var(--mod-drop-zone-content-display,var(--spectrum-drop-zone-content-display,none));block-size:100%;z-index:1;justify-content:center;align-items:center;position:relative}.spectrum-DropZone-button{box-sizing:border-box;block-size:var(--mod-drop-zone-content-height,var(--spectrum-drop-zone-content-height));max-inline-size:var(--mod-drop-zone-content-max-width,var(--spectrum-drop-zone-content-max-width));font-family:var(--mod-drop-zone-content-font-family,var(--spectrum-drop-zone-content-font-family));font-weight:var(--mod-drop-zone-content-font-weight,var(--spectrum-drop-zone-content-font-weight));font-style:var(--mod-drop-zone-content-font-style,var(--spectrum-drop-zone-content-font-style));line-height:var(--mod-drop-zone-content-line-height,var(--spectrum-drop-zone-content-line-height));border:none;padding-block-start:var(--mod-drop-zone-content-top-to-text,var(--spectrum-drop-zone-content-top-to-text));padding-block-end:var(--mod-drop-zone-content-bottom-to-text,var(--spectrum-drop-zone-content-bottom-to-text))}.spectrum-DropZone-button,.spectrum-DropZone-button:focus{background-color:var(--mod-drop-zone-content-background-color,var(--spectrum-drop-zone-content-background-color))}@media (hover:hover){.spectrum-DropZone-button:hover{background-color:var(--mod-drop-zone-content-background-color,var(--spectrum-drop-zone-content-background-color))}}@media (forced-colors:active){:host{--highcontrast-drop-zone-illustration-color:CanvasText;--highcontrast-drop-zone-border-color-hover:Highlight;--highcontrast-illustrated-message-illustration-color:var(--highcontrast-drop-zone-illustration-color)}}:host{--spectrum-drop-zone-padding:var(--system-drop-zone-padding);--spectrum-drop-zone-illustration-to-heading:var(--system-drop-zone-illustration-to-heading);--spectrum-drop-zone-heading-to-body:var(--system-drop-zone-heading-to-body);--spectrum-drop-zone-border-width:var(--system-drop-zone-border-width);--spectrum-drop-zone-corner-radius:var(--system-drop-zone-corner-radius);--spectrum-drop-zone-border-color:var(--system-drop-zone-border-color);--spectrum-drop-zone-heading-font-family:var(--system-drop-zone-heading-font-family);--spectrum-drop-zone-heading-font-weight:var(--system-drop-zone-heading-font-weight);--spectrum-drop-zone-heading-font-style:var(--system-drop-zone-heading-font-style);--spectrum-drop-zone-heading-font-size:var(--system-drop-zone-heading-font-size);--spectrum-drop-zone-heading-line-height:var(--system-drop-zone-heading-line-height);--spectrum-drop-zone-heading-color:var(--system-drop-zone-heading-color);--spectrum-drop-zone-body-font-family:var(--system-drop-zone-body-font-family);--spectrum-drop-zone-body-font-weight:var(--system-drop-zone-body-font-weight);--spectrum-drop-zone-body-font-style:var(--system-drop-zone-body-font-style);--spectrum-drop-zone-body-font-size:var(--system-drop-zone-body-font-size);--spectrum-drop-zone-body-line-height:var(--system-drop-zone-body-line-height);--spectrum-drop-zone-body-color:var(--system-drop-zone-body-color);--spectrum-drop-zone-background-color:var(--system-drop-zone-background-color);--spectrum-drop-zone-border-color-hover:var(--system-drop-zone-border-color-hover);--spectrum-drop-zone-illustration-color:var(--system-drop-zone-illustration-color);--spectrum-drop-zone-illustration-color-hover:var(--system-drop-zone-illustration-color-hover);--spectrum-drop-zone-content-height:var(--system-drop-zone-content-height);--spectrum-drop-zone-content-max-width:var(--system-drop-zone-content-max-width);--spectrum-drop-zone-content-edge-to-text:var(--system-drop-zone-content-edge-to-text);--spectrum-drop-zone-content-top-to-text:var(--system-drop-zone-content-top-to-text);--spectrum-drop-zone-content-bottom-to-text:var(--system-drop-zone-content-bottom-to-text);--spectrum-drop-zone-content-font-family:var(--system-drop-zone-content-font-family);--spectrum-drop-zone-content-font-weight:var(--system-drop-zone-content-font-weight);--spectrum-drop-zone-content-font-style:var(--system-drop-zone-content-font-style);--spectrum-drop-zone-content-font-size:var(--system-drop-zone-content-font-size);--spectrum-drop-zone-content-line-height:var(--system-drop-zone-content-line-height);--spectrum-drop-zone-content-background-color:var(--system-drop-zone-content-background-color);--spectrum-drop-zone-content-color:var(--system-drop-zone-content-color);--spectrum-drop-zone-heading-font-size-cjk:var(--system-drop-zone-heading-font-size-cjk)}:host{display:block}::slotted(*){font-family:var(--mod-drop-zone-body-font-family,var(--spectrum-drop-zone-body-font-family));font-size:var(--mod-drop-zone-body-font-size,var(--spectrum-drop-zone-body-font-size));font-weight:var(--mod-drop-zone-body-font-weight,var(--spectrum-drop-zone-body-font-weight));line-height:var(--mod-drop-zone-body-line-height,var(--spectrum-drop-zone-body-line-height));font-style:var(--spectrum-drop-zone-body-font-style,var(--spectrum-drop-zone-body-font-style));margin-top:0;margin-bottom:0}
3
+ `;export default e;
4
+ //# sourceMappingURL=dropzone.css.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["dropzone.css.ts"],
4
+ "sourcesContent": ["/*\nCopyright 2024 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\nimport { css } from '@spectrum-web-components/base';\nconst styles = css`\n :host{--mod-illustrated-message-content-maximum-width:var(--mod-drop-zone-content-maximum-width,var(--spectrum-drop-zone-content-maximum-width));--mod-illustrated-message-illustration-color:var(--mod-drop-zone-illustration-color,var(--spectrum-drop-zone-illustration-color));--mod-illustrated-message-title-to-heading:var(--mod-drop-zone-illustration-to-heading,var(--spectrum-drop-zone-illustration-to-heading));--mod-illustrated-message-heading-to-body:var(--mod-drop-zone-heading-to-body,var(--spectrum-drop-zone-heading-to-body));--mod-illustrated-message-title-font-family:var(--mod-drop-zone-heading-font-family,var(--spectrum-drop-zone-heading-font-family));--mod-illustrated-message-title-font-weight:var(--mod-drop-zone-heading-font-weight,var(--spectrum-drop-zone-heading-font-weight));--mod-illustrated-message-title-font-style:var(--mod-drop-zone-heading-font-style,var(--spectrum-drop-zone-heading-font-style));--mod-illustrated-message-title-font-size:var(--mod-drop-zone-heading-font-size,var(--spectrum-drop-zone-heading-font-size));--mod-illustrated-message-title-line-height:var(--mod-drop-zone-heading-line-height,var(--spectrum-drop-zone-heading-line-height));--mod-illustrated-message-title-color:var(--mod-drop-zone-heading-color,var(--spectrum-drop-zone-heading-color));--mod-illustrated-message-description-position:relative;--mod-illustrated-message-description-z-index:1;--mod-illustrated-message-heading-to-description:0;--mod-illustrated-message-description-font-family:var(--mod-drop-zone-body-font-family,var(--spectrum-drop-zone-body-font-family));--mod-illustrated-message-description-font-weight:var(--mod-drop-zone-body-font-weight,var(--spectrum-drop-zone-body-font-weight));--mod-illustrated-message-description-font-style:var(--mod-drop-zone-body-font-style,var(--spectrum-drop-zone-body-font-style));--mod-illustrated-message-description-font-size:var(--mod-drop-zone-body-font-size,var(--spectrum-drop-zone-body-font-size));--mod-illustrated-message-description-line-height:var(--mod-drop-zone-body-line-height,var(--spectrum-drop-zone-body-line-height));--mod-illustrated-message-description-color:var(--mod-drop-zone-body-color,var(--spectrum-drop-zone-body-color));--mod-actionbutton-font-size:var(--mod-drop-zone-content-font-size,var(--spectrum-drop-zone-content-font-size));--mod-actionbutton-label-color:var(--mod-drop-zone-content-color,var(--spectrum-drop-zone-content-color));--mod-actionbutton-edge-to-text:var(--mod-drop-zone-content-edge-to-text,var(--spectrum-drop-zone-content-edge-to-text));box-sizing:border-box;inline-size:var(--mod-drop-zone-width,var(--spectrum-drop-zone-width));padding:calc(var(--mod-drop-zone-padding,var(--spectrum-drop-zone-padding)) - var(--mod-drop-zone-border-width,var(--spectrum-drop-zone-border-width)));text-align:center;border-color:var(--mod-drop-zone-border-color,var(--spectrum-drop-zone-border-color));border-width:var(--mod-drop-zone-border-width,var(--spectrum-drop-zone-border-width));border-radius:var(--mod-drop-zone-corner-radius,var(--spectrum-drop-zone-corner-radius));border-style:dashed;border-style:var(--mod-drop-zone-border-style,var(--spectrum-drop-zone-border-style,dashed));background-color:var(--mod-drop-zone-background-color,var(--spectrum-drop-zone-background-color));background-size:cover}:host:lang(ja),:host:lang(ko),:host:lang(zh){--spectrum-drop-zone-heading-font-size:var(--spectrum-drop-zone-heading-font-size-cjk)}:host([dragged]){--mod-drop-zone-border-style:var(--mod-drop-zone-border-style-dragged,solid);--mod-drop-zone-background-color:rgba(var(--spectrum-drop-zone-background-color),var(--mod-drop-zone-background-color-opacity,var(--spectrum-drop-zone-background-color-opacity)));--spectrum-drop-zone-border-color:var(--highcontrast-drop-zone-border-color-hover,var(--mod-drop-zone-border-color-hover,var(--spectrum-drop-zone-border-color-hover)));--mod-illustrated-message-illustration-color:var(--mod-drop-zone-illustration-color-hover,var(--spectrum-drop-zone-illustration-color-hover))}:host([filled]){--mod-drop-zone-background-color:rgba(var(--spectrum-drop-zone-background-color),var(--mod-drop-zone-background-color-opacity-filled,var(--spectrum-drop-zone-background-color-opacity-filled)));--mod-illustrated-message-display:none}:host([filled][dragged]){--mod-drop-zone-content-display:flex}:host(:focus-visible){--mod-drop-zone-border-style:solid;--spectrum-drop-zone-border-color:var(--highcontrast-drop-zone-border-color-hover,var(--mod-drop-zone-border-color-hover,var(--spectrum-drop-zone-border-color-hover)));outline:0}.spectrum-DropZone-content{display:none;display:var(--mod-drop-zone-content-display,var(--spectrum-drop-zone-content-display,none));block-size:100%;z-index:1;justify-content:center;align-items:center;position:relative}.spectrum-DropZone-button{box-sizing:border-box;block-size:var(--mod-drop-zone-content-height,var(--spectrum-drop-zone-content-height));max-inline-size:var(--mod-drop-zone-content-max-width,var(--spectrum-drop-zone-content-max-width));font-family:var(--mod-drop-zone-content-font-family,var(--spectrum-drop-zone-content-font-family));font-weight:var(--mod-drop-zone-content-font-weight,var(--spectrum-drop-zone-content-font-weight));font-style:var(--mod-drop-zone-content-font-style,var(--spectrum-drop-zone-content-font-style));line-height:var(--mod-drop-zone-content-line-height,var(--spectrum-drop-zone-content-line-height));border:none;padding-block-start:var(--mod-drop-zone-content-top-to-text,var(--spectrum-drop-zone-content-top-to-text));padding-block-end:var(--mod-drop-zone-content-bottom-to-text,var(--spectrum-drop-zone-content-bottom-to-text))}.spectrum-DropZone-button,.spectrum-DropZone-button:focus{background-color:var(--mod-drop-zone-content-background-color,var(--spectrum-drop-zone-content-background-color))}@media (hover:hover){.spectrum-DropZone-button:hover{background-color:var(--mod-drop-zone-content-background-color,var(--spectrum-drop-zone-content-background-color))}}@media (forced-colors:active){:host{--highcontrast-drop-zone-illustration-color:CanvasText;--highcontrast-drop-zone-border-color-hover:Highlight;--highcontrast-illustrated-message-illustration-color:var(--highcontrast-drop-zone-illustration-color)}}:host{--spectrum-drop-zone-padding:var(--system-drop-zone-padding);--spectrum-drop-zone-illustration-to-heading:var(--system-drop-zone-illustration-to-heading);--spectrum-drop-zone-heading-to-body:var(--system-drop-zone-heading-to-body);--spectrum-drop-zone-border-width:var(--system-drop-zone-border-width);--spectrum-drop-zone-corner-radius:var(--system-drop-zone-corner-radius);--spectrum-drop-zone-border-color:var(--system-drop-zone-border-color);--spectrum-drop-zone-heading-font-family:var(--system-drop-zone-heading-font-family);--spectrum-drop-zone-heading-font-weight:var(--system-drop-zone-heading-font-weight);--spectrum-drop-zone-heading-font-style:var(--system-drop-zone-heading-font-style);--spectrum-drop-zone-heading-font-size:var(--system-drop-zone-heading-font-size);--spectrum-drop-zone-heading-line-height:var(--system-drop-zone-heading-line-height);--spectrum-drop-zone-heading-color:var(--system-drop-zone-heading-color);--spectrum-drop-zone-body-font-family:var(--system-drop-zone-body-font-family);--spectrum-drop-zone-body-font-weight:var(--system-drop-zone-body-font-weight);--spectrum-drop-zone-body-font-style:var(--system-drop-zone-body-font-style);--spectrum-drop-zone-body-font-size:var(--system-drop-zone-body-font-size);--spectrum-drop-zone-body-line-height:var(--system-drop-zone-body-line-height);--spectrum-drop-zone-body-color:var(--system-drop-zone-body-color);--spectrum-drop-zone-background-color:var(--system-drop-zone-background-color);--spectrum-drop-zone-border-color-hover:var(--system-drop-zone-border-color-hover);--spectrum-drop-zone-illustration-color:var(--system-drop-zone-illustration-color);--spectrum-drop-zone-illustration-color-hover:var(--system-drop-zone-illustration-color-hover);--spectrum-drop-zone-content-height:var(--system-drop-zone-content-height);--spectrum-drop-zone-content-max-width:var(--system-drop-zone-content-max-width);--spectrum-drop-zone-content-edge-to-text:var(--system-drop-zone-content-edge-to-text);--spectrum-drop-zone-content-top-to-text:var(--system-drop-zone-content-top-to-text);--spectrum-drop-zone-content-bottom-to-text:var(--system-drop-zone-content-bottom-to-text);--spectrum-drop-zone-content-font-family:var(--system-drop-zone-content-font-family);--spectrum-drop-zone-content-font-weight:var(--system-drop-zone-content-font-weight);--spectrum-drop-zone-content-font-style:var(--system-drop-zone-content-font-style);--spectrum-drop-zone-content-font-size:var(--system-drop-zone-content-font-size);--spectrum-drop-zone-content-line-height:var(--system-drop-zone-content-line-height);--spectrum-drop-zone-content-background-color:var(--system-drop-zone-content-background-color);--spectrum-drop-zone-content-color:var(--system-drop-zone-content-color);--spectrum-drop-zone-heading-font-size-cjk:var(--system-drop-zone-heading-font-size-cjk)}:host{display:block}::slotted(*){font-family:var(--mod-drop-zone-body-font-family,var(--spectrum-drop-zone-body-font-family));font-size:var(--mod-drop-zone-body-font-size,var(--spectrum-drop-zone-body-font-size));font-weight:var(--mod-drop-zone-body-font-weight,var(--spectrum-drop-zone-body-font-weight));line-height:var(--mod-drop-zone-body-line-height,var(--spectrum-drop-zone-body-line-height));font-style:var(--spectrum-drop-zone-body-font-style,var(--spectrum-drop-zone-body-font-style));margin-top:0;margin-bottom:0}\n`;\nexport default styles;"],
5
+ "mappings": "aAWA,OAAS,OAAAA,MAAW,gCACpB,MAAMC,EAASD;AAAA;AAAA,EAGf,eAAeC",
6
+ "names": ["css", "styles"]
7
+ }
package/src/index.d.ts ADDED
@@ -0,0 +1 @@
1
+ export * from './Dropzone.js';
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ export * from "./Dropzone.dev.js";
3
+ //# sourceMappingURL=index.dev.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["index.ts"],
4
+ "sourcesContent": ["/*\nCopyright 2020 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\nexport * from './Dropzone.dev.js'\n"],
5
+ "mappings": ";AAWA,cAAc;",
6
+ "names": []
7
+ }
package/src/index.js ADDED
@@ -0,0 +1,2 @@
1
+ "use strict";export*from"./Dropzone.js";
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["index.ts"],
4
+ "sourcesContent": ["/*\nCopyright 2020 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\nexport * from './Dropzone.js';\n"],
5
+ "mappings": "aAWA,WAAc",
6
+ "names": []
7
+ }
@@ -0,0 +1,39 @@
1
+ // @ts-check
2
+ /*
3
+ Copyright 2023 Adobe. All rights reserved.
4
+ This file is licensed to you under the Apache License, Version 2.0 (the 'License');
5
+ you may not use this file except in compliance with the License. You may obtain a copy
6
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
7
+
8
+ Unless required by applicable law or agreed to in writing, software distributed under
9
+ the License is distributed on an 'AS IS' BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
10
+ OF ANY KIND, either express or implied. See the License for the specific language
11
+ governing permissions and limitations under the License.
12
+ */
13
+
14
+ import { converterFor } from '../../../tasks/process-spectrum-utils.js';
15
+
16
+ const converter = converterFor('spectrum-DropZone');
17
+
18
+ /**
19
+ * @type { import('../../../tasks/spectrum-css-converter').SpectrumCSSConverter }
20
+ */
21
+ const config = {
22
+ conversions: [
23
+ {
24
+ inPackage: '@spectrum-css/dropzone',
25
+ outPackage: 'dropzone',
26
+ fileName: 'dropzone',
27
+ components: [
28
+ converter.classToHost(),
29
+ converter.classToAttribute('is-dragged', 'dragged'),
30
+ converter.classToAttribute('is-filled', 'filled'),
31
+ converter.classToSlotted(
32
+ 'spectrum-IllustratedMessage-illustration'
33
+ ),
34
+ ],
35
+ },
36
+ ],
37
+ };
38
+
39
+ export default config;
@@ -0,0 +1,2 @@
1
+ declare const styles: import("@spectrum-web-components/base").CSSResult;
2
+ export default styles;
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ import { css } from "@spectrum-web-components/base";
3
+ const styles = css`
4
+ :host{--mod-illustrated-message-content-maximum-width:var(--mod-drop-zone-content-maximum-width,var(--spectrum-drop-zone-content-maximum-width));--mod-illustrated-message-illustration-color:var(--mod-drop-zone-illustration-color,var(--spectrum-drop-zone-illustration-color));--mod-illustrated-message-title-to-heading:var(--mod-drop-zone-illustration-to-heading,var(--spectrum-drop-zone-illustration-to-heading));--mod-illustrated-message-heading-to-body:var(--mod-drop-zone-heading-to-body,var(--spectrum-drop-zone-heading-to-body));--mod-illustrated-message-title-font-family:var(--mod-drop-zone-heading-font-family,var(--spectrum-drop-zone-heading-font-family));--mod-illustrated-message-title-font-weight:var(--mod-drop-zone-heading-font-weight,var(--spectrum-drop-zone-heading-font-weight));--mod-illustrated-message-title-font-style:var(--mod-drop-zone-heading-font-style,var(--spectrum-drop-zone-heading-font-style));--mod-illustrated-message-title-font-size:var(--mod-drop-zone-heading-font-size,var(--spectrum-drop-zone-heading-font-size));--mod-illustrated-message-title-line-height:var(--mod-drop-zone-heading-line-height,var(--spectrum-drop-zone-heading-line-height));--mod-illustrated-message-title-color:var(--mod-drop-zone-heading-color,var(--spectrum-drop-zone-heading-color));--mod-illustrated-message-description-position:relative;--mod-illustrated-message-description-z-index:1;--mod-illustrated-message-heading-to-description:0;--mod-illustrated-message-description-font-family:var(--mod-drop-zone-body-font-family,var(--spectrum-drop-zone-body-font-family));--mod-illustrated-message-description-font-weight:var(--mod-drop-zone-body-font-weight,var(--spectrum-drop-zone-body-font-weight));--mod-illustrated-message-description-font-style:var(--mod-drop-zone-body-font-style,var(--spectrum-drop-zone-body-font-style));--mod-illustrated-message-description-font-size:var(--mod-drop-zone-body-font-size,var(--spectrum-drop-zone-body-font-size));--mod-illustrated-message-description-line-height:var(--mod-drop-zone-body-line-height,var(--spectrum-drop-zone-body-line-height));--mod-illustrated-message-description-color:var(--mod-drop-zone-body-color,var(--spectrum-drop-zone-body-color));--mod-actionbutton-font-size:var(--mod-drop-zone-content-font-size,var(--spectrum-drop-zone-content-font-size));--mod-actionbutton-label-color:var(--mod-drop-zone-content-color,var(--spectrum-drop-zone-content-color));--mod-actionbutton-edge-to-text:var(--mod-drop-zone-content-edge-to-text,var(--spectrum-drop-zone-content-edge-to-text));box-sizing:border-box;inline-size:var(--mod-drop-zone-width,var(--spectrum-drop-zone-width));padding:calc(var(--mod-drop-zone-padding,var(--spectrum-drop-zone-padding)) - var(--mod-drop-zone-border-width,var(--spectrum-drop-zone-border-width)));text-align:center;border-color:var(--mod-drop-zone-border-color,var(--spectrum-drop-zone-border-color));border-width:var(--mod-drop-zone-border-width,var(--spectrum-drop-zone-border-width));border-radius:var(--mod-drop-zone-corner-radius,var(--spectrum-drop-zone-corner-radius));border-style:dashed;border-style:var(--mod-drop-zone-border-style,var(--spectrum-drop-zone-border-style,dashed));background-color:var(--mod-drop-zone-background-color,var(--spectrum-drop-zone-background-color));background-size:cover}:host:lang(ja),:host:lang(ko),:host:lang(zh){--spectrum-drop-zone-heading-font-size:var(--spectrum-drop-zone-heading-font-size-cjk)}:host([dragged]){--mod-drop-zone-border-style:var(--mod-drop-zone-border-style-dragged,solid);--mod-drop-zone-background-color:rgba(var(--spectrum-drop-zone-background-color),var(--mod-drop-zone-background-color-opacity,var(--spectrum-drop-zone-background-color-opacity)));--spectrum-drop-zone-border-color:var(--highcontrast-drop-zone-border-color-hover,var(--mod-drop-zone-border-color-hover,var(--spectrum-drop-zone-border-color-hover)));--mod-illustrated-message-illustration-color:var(--mod-drop-zone-illustration-color-hover,var(--spectrum-drop-zone-illustration-color-hover))}:host([filled]){--mod-drop-zone-background-color:rgba(var(--spectrum-drop-zone-background-color),var(--mod-drop-zone-background-color-opacity-filled,var(--spectrum-drop-zone-background-color-opacity-filled)));--mod-illustrated-message-display:none}:host([filled][dragged]){--mod-drop-zone-content-display:flex}:host(:focus-visible){--mod-drop-zone-border-style:solid;--spectrum-drop-zone-border-color:var(--highcontrast-drop-zone-border-color-hover,var(--mod-drop-zone-border-color-hover,var(--spectrum-drop-zone-border-color-hover)));outline:0}.spectrum-DropZone-content{display:none;display:var(--mod-drop-zone-content-display,var(--spectrum-drop-zone-content-display,none));block-size:100%;z-index:1;justify-content:center;align-items:center;position:relative}.spectrum-DropZone-button{box-sizing:border-box;block-size:var(--mod-drop-zone-content-height,var(--spectrum-drop-zone-content-height));max-inline-size:var(--mod-drop-zone-content-max-width,var(--spectrum-drop-zone-content-max-width));font-family:var(--mod-drop-zone-content-font-family,var(--spectrum-drop-zone-content-font-family));font-weight:var(--mod-drop-zone-content-font-weight,var(--spectrum-drop-zone-content-font-weight));font-style:var(--mod-drop-zone-content-font-style,var(--spectrum-drop-zone-content-font-style));line-height:var(--mod-drop-zone-content-line-height,var(--spectrum-drop-zone-content-line-height));border:none;padding-block-start:var(--mod-drop-zone-content-top-to-text,var(--spectrum-drop-zone-content-top-to-text));padding-block-end:var(--mod-drop-zone-content-bottom-to-text,var(--spectrum-drop-zone-content-bottom-to-text))}.spectrum-DropZone-button,.spectrum-DropZone-button:focus{background-color:var(--mod-drop-zone-content-background-color,var(--spectrum-drop-zone-content-background-color))}@media (hover:hover){.spectrum-DropZone-button:hover{background-color:var(--mod-drop-zone-content-background-color,var(--spectrum-drop-zone-content-background-color))}}@media (forced-colors:active){:host{--highcontrast-drop-zone-illustration-color:CanvasText;--highcontrast-drop-zone-border-color-hover:Highlight;--highcontrast-illustrated-message-illustration-color:var(--highcontrast-drop-zone-illustration-color)}}
5
+ `;
6
+ export default styles;
7
+ //# sourceMappingURL=spectrum-dropzone.css.dev.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["spectrum-dropzone.css.ts"],
4
+ "sourcesContent": ["/*\nCopyright 2024 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\nimport { css } from '@spectrum-web-components/base';\nconst styles = css`\n :host{--mod-illustrated-message-content-maximum-width:var(--mod-drop-zone-content-maximum-width,var(--spectrum-drop-zone-content-maximum-width));--mod-illustrated-message-illustration-color:var(--mod-drop-zone-illustration-color,var(--spectrum-drop-zone-illustration-color));--mod-illustrated-message-title-to-heading:var(--mod-drop-zone-illustration-to-heading,var(--spectrum-drop-zone-illustration-to-heading));--mod-illustrated-message-heading-to-body:var(--mod-drop-zone-heading-to-body,var(--spectrum-drop-zone-heading-to-body));--mod-illustrated-message-title-font-family:var(--mod-drop-zone-heading-font-family,var(--spectrum-drop-zone-heading-font-family));--mod-illustrated-message-title-font-weight:var(--mod-drop-zone-heading-font-weight,var(--spectrum-drop-zone-heading-font-weight));--mod-illustrated-message-title-font-style:var(--mod-drop-zone-heading-font-style,var(--spectrum-drop-zone-heading-font-style));--mod-illustrated-message-title-font-size:var(--mod-drop-zone-heading-font-size,var(--spectrum-drop-zone-heading-font-size));--mod-illustrated-message-title-line-height:var(--mod-drop-zone-heading-line-height,var(--spectrum-drop-zone-heading-line-height));--mod-illustrated-message-title-color:var(--mod-drop-zone-heading-color,var(--spectrum-drop-zone-heading-color));--mod-illustrated-message-description-position:relative;--mod-illustrated-message-description-z-index:1;--mod-illustrated-message-heading-to-description:0;--mod-illustrated-message-description-font-family:var(--mod-drop-zone-body-font-family,var(--spectrum-drop-zone-body-font-family));--mod-illustrated-message-description-font-weight:var(--mod-drop-zone-body-font-weight,var(--spectrum-drop-zone-body-font-weight));--mod-illustrated-message-description-font-style:var(--mod-drop-zone-body-font-style,var(--spectrum-drop-zone-body-font-style));--mod-illustrated-message-description-font-size:var(--mod-drop-zone-body-font-size,var(--spectrum-drop-zone-body-font-size));--mod-illustrated-message-description-line-height:var(--mod-drop-zone-body-line-height,var(--spectrum-drop-zone-body-line-height));--mod-illustrated-message-description-color:var(--mod-drop-zone-body-color,var(--spectrum-drop-zone-body-color));--mod-actionbutton-font-size:var(--mod-drop-zone-content-font-size,var(--spectrum-drop-zone-content-font-size));--mod-actionbutton-label-color:var(--mod-drop-zone-content-color,var(--spectrum-drop-zone-content-color));--mod-actionbutton-edge-to-text:var(--mod-drop-zone-content-edge-to-text,var(--spectrum-drop-zone-content-edge-to-text));box-sizing:border-box;inline-size:var(--mod-drop-zone-width,var(--spectrum-drop-zone-width));padding:calc(var(--mod-drop-zone-padding,var(--spectrum-drop-zone-padding)) - var(--mod-drop-zone-border-width,var(--spectrum-drop-zone-border-width)));text-align:center;border-color:var(--mod-drop-zone-border-color,var(--spectrum-drop-zone-border-color));border-width:var(--mod-drop-zone-border-width,var(--spectrum-drop-zone-border-width));border-radius:var(--mod-drop-zone-corner-radius,var(--spectrum-drop-zone-corner-radius));border-style:dashed;border-style:var(--mod-drop-zone-border-style,var(--spectrum-drop-zone-border-style,dashed));background-color:var(--mod-drop-zone-background-color,var(--spectrum-drop-zone-background-color));background-size:cover}:host:lang(ja),:host:lang(ko),:host:lang(zh){--spectrum-drop-zone-heading-font-size:var(--spectrum-drop-zone-heading-font-size-cjk)}:host([dragged]){--mod-drop-zone-border-style:var(--mod-drop-zone-border-style-dragged,solid);--mod-drop-zone-background-color:rgba(var(--spectrum-drop-zone-background-color),var(--mod-drop-zone-background-color-opacity,var(--spectrum-drop-zone-background-color-opacity)));--spectrum-drop-zone-border-color:var(--highcontrast-drop-zone-border-color-hover,var(--mod-drop-zone-border-color-hover,var(--spectrum-drop-zone-border-color-hover)));--mod-illustrated-message-illustration-color:var(--mod-drop-zone-illustration-color-hover,var(--spectrum-drop-zone-illustration-color-hover))}:host([filled]){--mod-drop-zone-background-color:rgba(var(--spectrum-drop-zone-background-color),var(--mod-drop-zone-background-color-opacity-filled,var(--spectrum-drop-zone-background-color-opacity-filled)));--mod-illustrated-message-display:none}:host([filled][dragged]){--mod-drop-zone-content-display:flex}:host(:focus-visible){--mod-drop-zone-border-style:solid;--spectrum-drop-zone-border-color:var(--highcontrast-drop-zone-border-color-hover,var(--mod-drop-zone-border-color-hover,var(--spectrum-drop-zone-border-color-hover)));outline:0}.spectrum-DropZone-content{display:none;display:var(--mod-drop-zone-content-display,var(--spectrum-drop-zone-content-display,none));block-size:100%;z-index:1;justify-content:center;align-items:center;position:relative}.spectrum-DropZone-button{box-sizing:border-box;block-size:var(--mod-drop-zone-content-height,var(--spectrum-drop-zone-content-height));max-inline-size:var(--mod-drop-zone-content-max-width,var(--spectrum-drop-zone-content-max-width));font-family:var(--mod-drop-zone-content-font-family,var(--spectrum-drop-zone-content-font-family));font-weight:var(--mod-drop-zone-content-font-weight,var(--spectrum-drop-zone-content-font-weight));font-style:var(--mod-drop-zone-content-font-style,var(--spectrum-drop-zone-content-font-style));line-height:var(--mod-drop-zone-content-line-height,var(--spectrum-drop-zone-content-line-height));border:none;padding-block-start:var(--mod-drop-zone-content-top-to-text,var(--spectrum-drop-zone-content-top-to-text));padding-block-end:var(--mod-drop-zone-content-bottom-to-text,var(--spectrum-drop-zone-content-bottom-to-text))}.spectrum-DropZone-button,.spectrum-DropZone-button:focus{background-color:var(--mod-drop-zone-content-background-color,var(--spectrum-drop-zone-content-background-color))}@media (hover:hover){.spectrum-DropZone-button:hover{background-color:var(--mod-drop-zone-content-background-color,var(--spectrum-drop-zone-content-background-color))}}@media (forced-colors:active){:host{--highcontrast-drop-zone-illustration-color:CanvasText;--highcontrast-drop-zone-border-color-hover:Highlight;--highcontrast-illustrated-message-illustration-color:var(--highcontrast-drop-zone-illustration-color)}}\n`;\nexport default styles;"],
5
+ "mappings": ";AAWA,SAAS,WAAW;AACpB,MAAM,SAAS;AAAA;AAAA;AAGf,eAAe;",
6
+ "names": []
7
+ }
@@ -0,0 +1,4 @@
1
+ "use strict";import{css as o}from"@spectrum-web-components/base";const r=o`
2
+ :host{--mod-illustrated-message-content-maximum-width:var(--mod-drop-zone-content-maximum-width,var(--spectrum-drop-zone-content-maximum-width));--mod-illustrated-message-illustration-color:var(--mod-drop-zone-illustration-color,var(--spectrum-drop-zone-illustration-color));--mod-illustrated-message-title-to-heading:var(--mod-drop-zone-illustration-to-heading,var(--spectrum-drop-zone-illustration-to-heading));--mod-illustrated-message-heading-to-body:var(--mod-drop-zone-heading-to-body,var(--spectrum-drop-zone-heading-to-body));--mod-illustrated-message-title-font-family:var(--mod-drop-zone-heading-font-family,var(--spectrum-drop-zone-heading-font-family));--mod-illustrated-message-title-font-weight:var(--mod-drop-zone-heading-font-weight,var(--spectrum-drop-zone-heading-font-weight));--mod-illustrated-message-title-font-style:var(--mod-drop-zone-heading-font-style,var(--spectrum-drop-zone-heading-font-style));--mod-illustrated-message-title-font-size:var(--mod-drop-zone-heading-font-size,var(--spectrum-drop-zone-heading-font-size));--mod-illustrated-message-title-line-height:var(--mod-drop-zone-heading-line-height,var(--spectrum-drop-zone-heading-line-height));--mod-illustrated-message-title-color:var(--mod-drop-zone-heading-color,var(--spectrum-drop-zone-heading-color));--mod-illustrated-message-description-position:relative;--mod-illustrated-message-description-z-index:1;--mod-illustrated-message-heading-to-description:0;--mod-illustrated-message-description-font-family:var(--mod-drop-zone-body-font-family,var(--spectrum-drop-zone-body-font-family));--mod-illustrated-message-description-font-weight:var(--mod-drop-zone-body-font-weight,var(--spectrum-drop-zone-body-font-weight));--mod-illustrated-message-description-font-style:var(--mod-drop-zone-body-font-style,var(--spectrum-drop-zone-body-font-style));--mod-illustrated-message-description-font-size:var(--mod-drop-zone-body-font-size,var(--spectrum-drop-zone-body-font-size));--mod-illustrated-message-description-line-height:var(--mod-drop-zone-body-line-height,var(--spectrum-drop-zone-body-line-height));--mod-illustrated-message-description-color:var(--mod-drop-zone-body-color,var(--spectrum-drop-zone-body-color));--mod-actionbutton-font-size:var(--mod-drop-zone-content-font-size,var(--spectrum-drop-zone-content-font-size));--mod-actionbutton-label-color:var(--mod-drop-zone-content-color,var(--spectrum-drop-zone-content-color));--mod-actionbutton-edge-to-text:var(--mod-drop-zone-content-edge-to-text,var(--spectrum-drop-zone-content-edge-to-text));box-sizing:border-box;inline-size:var(--mod-drop-zone-width,var(--spectrum-drop-zone-width));padding:calc(var(--mod-drop-zone-padding,var(--spectrum-drop-zone-padding)) - var(--mod-drop-zone-border-width,var(--spectrum-drop-zone-border-width)));text-align:center;border-color:var(--mod-drop-zone-border-color,var(--spectrum-drop-zone-border-color));border-width:var(--mod-drop-zone-border-width,var(--spectrum-drop-zone-border-width));border-radius:var(--mod-drop-zone-corner-radius,var(--spectrum-drop-zone-corner-radius));border-style:dashed;border-style:var(--mod-drop-zone-border-style,var(--spectrum-drop-zone-border-style,dashed));background-color:var(--mod-drop-zone-background-color,var(--spectrum-drop-zone-background-color));background-size:cover}:host:lang(ja),:host:lang(ko),:host:lang(zh){--spectrum-drop-zone-heading-font-size:var(--spectrum-drop-zone-heading-font-size-cjk)}:host([dragged]){--mod-drop-zone-border-style:var(--mod-drop-zone-border-style-dragged,solid);--mod-drop-zone-background-color:rgba(var(--spectrum-drop-zone-background-color),var(--mod-drop-zone-background-color-opacity,var(--spectrum-drop-zone-background-color-opacity)));--spectrum-drop-zone-border-color:var(--highcontrast-drop-zone-border-color-hover,var(--mod-drop-zone-border-color-hover,var(--spectrum-drop-zone-border-color-hover)));--mod-illustrated-message-illustration-color:var(--mod-drop-zone-illustration-color-hover,var(--spectrum-drop-zone-illustration-color-hover))}:host([filled]){--mod-drop-zone-background-color:rgba(var(--spectrum-drop-zone-background-color),var(--mod-drop-zone-background-color-opacity-filled,var(--spectrum-drop-zone-background-color-opacity-filled)));--mod-illustrated-message-display:none}:host([filled][dragged]){--mod-drop-zone-content-display:flex}:host(:focus-visible){--mod-drop-zone-border-style:solid;--spectrum-drop-zone-border-color:var(--highcontrast-drop-zone-border-color-hover,var(--mod-drop-zone-border-color-hover,var(--spectrum-drop-zone-border-color-hover)));outline:0}.spectrum-DropZone-content{display:none;display:var(--mod-drop-zone-content-display,var(--spectrum-drop-zone-content-display,none));block-size:100%;z-index:1;justify-content:center;align-items:center;position:relative}.spectrum-DropZone-button{box-sizing:border-box;block-size:var(--mod-drop-zone-content-height,var(--spectrum-drop-zone-content-height));max-inline-size:var(--mod-drop-zone-content-max-width,var(--spectrum-drop-zone-content-max-width));font-family:var(--mod-drop-zone-content-font-family,var(--spectrum-drop-zone-content-font-family));font-weight:var(--mod-drop-zone-content-font-weight,var(--spectrum-drop-zone-content-font-weight));font-style:var(--mod-drop-zone-content-font-style,var(--spectrum-drop-zone-content-font-style));line-height:var(--mod-drop-zone-content-line-height,var(--spectrum-drop-zone-content-line-height));border:none;padding-block-start:var(--mod-drop-zone-content-top-to-text,var(--spectrum-drop-zone-content-top-to-text));padding-block-end:var(--mod-drop-zone-content-bottom-to-text,var(--spectrum-drop-zone-content-bottom-to-text))}.spectrum-DropZone-button,.spectrum-DropZone-button:focus{background-color:var(--mod-drop-zone-content-background-color,var(--spectrum-drop-zone-content-background-color))}@media (hover:hover){.spectrum-DropZone-button:hover{background-color:var(--mod-drop-zone-content-background-color,var(--spectrum-drop-zone-content-background-color))}}@media (forced-colors:active){:host{--highcontrast-drop-zone-illustration-color:CanvasText;--highcontrast-drop-zone-border-color-hover:Highlight;--highcontrast-illustrated-message-illustration-color:var(--highcontrast-drop-zone-illustration-color)}}
3
+ `;export default r;
4
+ //# sourceMappingURL=spectrum-dropzone.css.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["spectrum-dropzone.css.ts"],
4
+ "sourcesContent": ["/*\nCopyright 2024 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\nimport { css } from '@spectrum-web-components/base';\nconst styles = css`\n :host{--mod-illustrated-message-content-maximum-width:var(--mod-drop-zone-content-maximum-width,var(--spectrum-drop-zone-content-maximum-width));--mod-illustrated-message-illustration-color:var(--mod-drop-zone-illustration-color,var(--spectrum-drop-zone-illustration-color));--mod-illustrated-message-title-to-heading:var(--mod-drop-zone-illustration-to-heading,var(--spectrum-drop-zone-illustration-to-heading));--mod-illustrated-message-heading-to-body:var(--mod-drop-zone-heading-to-body,var(--spectrum-drop-zone-heading-to-body));--mod-illustrated-message-title-font-family:var(--mod-drop-zone-heading-font-family,var(--spectrum-drop-zone-heading-font-family));--mod-illustrated-message-title-font-weight:var(--mod-drop-zone-heading-font-weight,var(--spectrum-drop-zone-heading-font-weight));--mod-illustrated-message-title-font-style:var(--mod-drop-zone-heading-font-style,var(--spectrum-drop-zone-heading-font-style));--mod-illustrated-message-title-font-size:var(--mod-drop-zone-heading-font-size,var(--spectrum-drop-zone-heading-font-size));--mod-illustrated-message-title-line-height:var(--mod-drop-zone-heading-line-height,var(--spectrum-drop-zone-heading-line-height));--mod-illustrated-message-title-color:var(--mod-drop-zone-heading-color,var(--spectrum-drop-zone-heading-color));--mod-illustrated-message-description-position:relative;--mod-illustrated-message-description-z-index:1;--mod-illustrated-message-heading-to-description:0;--mod-illustrated-message-description-font-family:var(--mod-drop-zone-body-font-family,var(--spectrum-drop-zone-body-font-family));--mod-illustrated-message-description-font-weight:var(--mod-drop-zone-body-font-weight,var(--spectrum-drop-zone-body-font-weight));--mod-illustrated-message-description-font-style:var(--mod-drop-zone-body-font-style,var(--spectrum-drop-zone-body-font-style));--mod-illustrated-message-description-font-size:var(--mod-drop-zone-body-font-size,var(--spectrum-drop-zone-body-font-size));--mod-illustrated-message-description-line-height:var(--mod-drop-zone-body-line-height,var(--spectrum-drop-zone-body-line-height));--mod-illustrated-message-description-color:var(--mod-drop-zone-body-color,var(--spectrum-drop-zone-body-color));--mod-actionbutton-font-size:var(--mod-drop-zone-content-font-size,var(--spectrum-drop-zone-content-font-size));--mod-actionbutton-label-color:var(--mod-drop-zone-content-color,var(--spectrum-drop-zone-content-color));--mod-actionbutton-edge-to-text:var(--mod-drop-zone-content-edge-to-text,var(--spectrum-drop-zone-content-edge-to-text));box-sizing:border-box;inline-size:var(--mod-drop-zone-width,var(--spectrum-drop-zone-width));padding:calc(var(--mod-drop-zone-padding,var(--spectrum-drop-zone-padding)) - var(--mod-drop-zone-border-width,var(--spectrum-drop-zone-border-width)));text-align:center;border-color:var(--mod-drop-zone-border-color,var(--spectrum-drop-zone-border-color));border-width:var(--mod-drop-zone-border-width,var(--spectrum-drop-zone-border-width));border-radius:var(--mod-drop-zone-corner-radius,var(--spectrum-drop-zone-corner-radius));border-style:dashed;border-style:var(--mod-drop-zone-border-style,var(--spectrum-drop-zone-border-style,dashed));background-color:var(--mod-drop-zone-background-color,var(--spectrum-drop-zone-background-color));background-size:cover}:host:lang(ja),:host:lang(ko),:host:lang(zh){--spectrum-drop-zone-heading-font-size:var(--spectrum-drop-zone-heading-font-size-cjk)}:host([dragged]){--mod-drop-zone-border-style:var(--mod-drop-zone-border-style-dragged,solid);--mod-drop-zone-background-color:rgba(var(--spectrum-drop-zone-background-color),var(--mod-drop-zone-background-color-opacity,var(--spectrum-drop-zone-background-color-opacity)));--spectrum-drop-zone-border-color:var(--highcontrast-drop-zone-border-color-hover,var(--mod-drop-zone-border-color-hover,var(--spectrum-drop-zone-border-color-hover)));--mod-illustrated-message-illustration-color:var(--mod-drop-zone-illustration-color-hover,var(--spectrum-drop-zone-illustration-color-hover))}:host([filled]){--mod-drop-zone-background-color:rgba(var(--spectrum-drop-zone-background-color),var(--mod-drop-zone-background-color-opacity-filled,var(--spectrum-drop-zone-background-color-opacity-filled)));--mod-illustrated-message-display:none}:host([filled][dragged]){--mod-drop-zone-content-display:flex}:host(:focus-visible){--mod-drop-zone-border-style:solid;--spectrum-drop-zone-border-color:var(--highcontrast-drop-zone-border-color-hover,var(--mod-drop-zone-border-color-hover,var(--spectrum-drop-zone-border-color-hover)));outline:0}.spectrum-DropZone-content{display:none;display:var(--mod-drop-zone-content-display,var(--spectrum-drop-zone-content-display,none));block-size:100%;z-index:1;justify-content:center;align-items:center;position:relative}.spectrum-DropZone-button{box-sizing:border-box;block-size:var(--mod-drop-zone-content-height,var(--spectrum-drop-zone-content-height));max-inline-size:var(--mod-drop-zone-content-max-width,var(--spectrum-drop-zone-content-max-width));font-family:var(--mod-drop-zone-content-font-family,var(--spectrum-drop-zone-content-font-family));font-weight:var(--mod-drop-zone-content-font-weight,var(--spectrum-drop-zone-content-font-weight));font-style:var(--mod-drop-zone-content-font-style,var(--spectrum-drop-zone-content-font-style));line-height:var(--mod-drop-zone-content-line-height,var(--spectrum-drop-zone-content-line-height));border:none;padding-block-start:var(--mod-drop-zone-content-top-to-text,var(--spectrum-drop-zone-content-top-to-text));padding-block-end:var(--mod-drop-zone-content-bottom-to-text,var(--spectrum-drop-zone-content-bottom-to-text))}.spectrum-DropZone-button,.spectrum-DropZone-button:focus{background-color:var(--mod-drop-zone-content-background-color,var(--spectrum-drop-zone-content-background-color))}@media (hover:hover){.spectrum-DropZone-button:hover{background-color:var(--mod-drop-zone-content-background-color,var(--spectrum-drop-zone-content-background-color))}}@media (forced-colors:active){:host{--highcontrast-drop-zone-illustration-color:CanvasText;--highcontrast-drop-zone-border-color-hover:Highlight;--highcontrast-illustrated-message-illustration-color:var(--highcontrast-drop-zone-illustration-color)}}\n`;\nexport default styles;"],
5
+ "mappings": "aAWA,OAAS,OAAAA,MAAW,gCACpB,MAAMC,EAASD;AAAA;AAAA,EAGf,eAAeC",
6
+ "names": ["css", "styles"]
7
+ }