@spectrum-web-components/dropzone 1.1.0 → 1.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (43) hide show
  1. package/package.json +3 -3
  2. package/sp-dropzone.d.ts +6 -0
  3. package/sp-dropzone.dev.js +5 -0
  4. package/sp-dropzone.dev.js.map +7 -0
  5. package/sp-dropzone.js +2 -0
  6. package/sp-dropzone.js.map +7 -0
  7. package/src/Dropzone.d.ts +52 -0
  8. package/src/Dropzone.dev.js +121 -0
  9. package/src/Dropzone.dev.js.map +7 -0
  10. package/src/Dropzone.js +4 -0
  11. package/src/Dropzone.js.map +7 -0
  12. package/src/dropzone-overrides.css.d.ts +2 -0
  13. package/src/dropzone-overrides.css.dev.js +7 -0
  14. package/src/dropzone-overrides.css.dev.js.map +7 -0
  15. package/src/dropzone-overrides.css.js +4 -0
  16. package/src/dropzone-overrides.css.js.map +7 -0
  17. package/src/dropzone.css.d.ts +2 -0
  18. package/src/dropzone.css.dev.js +7 -0
  19. package/src/dropzone.css.dev.js.map +7 -0
  20. package/src/dropzone.css.js +4 -0
  21. package/src/dropzone.css.js.map +7 -0
  22. package/src/index.d.ts +1 -0
  23. package/src/index.dev.js +3 -0
  24. package/src/index.dev.js.map +7 -0
  25. package/src/index.js +2 -0
  26. package/src/index.js.map +7 -0
  27. package/src/spectrum-dropzone.css.d.ts +2 -0
  28. package/src/spectrum-dropzone.css.dev.js +7 -0
  29. package/src/spectrum-dropzone.css.dev.js.map +7 -0
  30. package/src/spectrum-dropzone.css.js +4 -0
  31. package/src/spectrum-dropzone.css.js.map +7 -0
  32. package/stories/dropzone.stories.js +196 -0
  33. package/stories/dropzone.stories.js.map +7 -0
  34. package/test/benchmark/test-basic.js +30 -0
  35. package/test/benchmark/test-basic.js.map +7 -0
  36. package/test/dropzone-memory.test.js +8 -0
  37. package/test/dropzone-memory.test.js.map +7 -0
  38. package/test/dropzone.test-vrt.js +5 -0
  39. package/test/dropzone.test-vrt.js.map +7 -0
  40. package/test/dropzone.test.js +142 -0
  41. package/test/dropzone.test.js.map +7 -0
  42. package/test/test-svg.js +64 -0
  43. package/test/test-svg.js.map +7 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spectrum-web-components/dropzone",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -58,7 +58,7 @@
58
58
  "lit-html"
59
59
  ],
60
60
  "dependencies": {
61
- "@spectrum-web-components/base": "^1.1.0"
61
+ "@spectrum-web-components/base": "^1.1.1"
62
62
  },
63
63
  "devDependencies": {
64
64
  "@spectrum-css/dropzone": "7.0.0-s2-foundations.16"
@@ -69,5 +69,5 @@
69
69
  "./sp-*.js",
70
70
  "./**/*.dev.js"
71
71
  ],
72
- "gitHead": "e3c6e52501451acc6fa85b10dd718267b80a01ab"
72
+ "gitHead": "44870aa95001c1b995456d994ae31bbe7277fac9"
73
73
  }
@@ -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 2025 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 2025 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 2025 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 2025 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,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 2025 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 2025 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
+ }
@@ -0,0 +1,196 @@
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
+ LitElement
15
+ } from "@spectrum-web-components/base";
16
+ import { defineElement } from "@spectrum-web-components/base/src/define-element.js";
17
+ import { state } from "@spectrum-web-components/base/src/decorators.js";
18
+ import "@spectrum-web-components/dropzone/sp-dropzone.js";
19
+ import "@spectrum-web-components/action-button/sp-action-button.js";
20
+ import { illustration } from "../test/test-svg";
21
+ import "@spectrum-web-components/illustrated-message/sp-illustrated-message.js";
22
+ import "@spectrum-web-components/link/sp-link.js";
23
+ export default {
24
+ component: "sp-dropzone",
25
+ title: "Dropzone",
26
+ args: {
27
+ isDragged: false,
28
+ isFilled: false
29
+ },
30
+ argTypes: {
31
+ isDragged: {
32
+ name: "isDragged",
33
+ type: { name: "boolean", required: false },
34
+ table: {
35
+ type: { summary: "boolean" },
36
+ defaultValue: { summary: false }
37
+ },
38
+ control: {
39
+ type: "boolean"
40
+ }
41
+ },
42
+ isFilled: {
43
+ name: "isFilled",
44
+ type: { name: "boolean", required: false },
45
+ table: {
46
+ type: { summary: "boolean" },
47
+ defaultValue: { summary: false }
48
+ },
49
+ control: {
50
+ type: "boolean"
51
+ }
52
+ }
53
+ }
54
+ };
55
+ export const Default = (args) => {
56
+ return html`
57
+ <sp-dropzone id="dropzone" tabindex="0" ?dragged=${args.isDragged}>
58
+ <sp-illustrated-message heading="Drag and Drop Your File">
59
+ ${illustration}
60
+ </sp-illustrated-message>
61
+ <div>
62
+ <label for="file-input">
63
+ <sp-link
64
+ href="javascript:;"
65
+ onclick="this.parentElement.nextElementSibling.click()"
66
+ >
67
+ Select a File
68
+ </sp-link>
69
+ from your computer
70
+ </label>
71
+ <input type="file" id="file-input" style="display: none" />
72
+ </div>
73
+ <div>
74
+ or
75
+ <sp-link href="http://stock.adobe.com" target="blank">
76
+ Search Adobe Stock
77
+ </sp-link>
78
+ </div>
79
+ </sp-dropzone>
80
+ `;
81
+ };
82
+ export const Dragged = (args) => {
83
+ return html`
84
+ <sp-dropzone id="dropzone" tabindex="0" ?dragged=${args.isDragged}>
85
+ <sp-illustrated-message heading="Drag and Drop Your File">
86
+ ${illustration}
87
+ </sp-illustrated-message>
88
+ <div>
89
+ <label for="file-input">
90
+ <sp-link
91
+ href="javascript:;"
92
+ onclick="this.parentElement.nextElementSibling.click()"
93
+ >
94
+ Select a File
95
+ </sp-link>
96
+ from your computer
97
+ </label>
98
+ <input type="file" id="file-input" style="display: none" />
99
+ </div>
100
+ <div>
101
+ or
102
+ <sp-link href="http://stock.adobe.com" target="blank">
103
+ Search Adobe Stock
104
+ </sp-link>
105
+ </div>
106
+ </sp-dropzone>
107
+ `;
108
+ };
109
+ Dragged.args = {
110
+ isDragged: true
111
+ };
112
+ export const Filled = (args) => {
113
+ return html`
114
+ <sp-dropzone id="dropzone" ?filled=${args.isFilled}>
115
+ Filled dropzone
116
+ </sp-dropzone>
117
+ `;
118
+ };
119
+ Filled.args = {
120
+ isFilled: true
121
+ };
122
+ class ControlledDropzone extends LitElement {
123
+ constructor() {
124
+ super(...arguments);
125
+ this.beingDraggedOver = false;
126
+ this.input = void 0;
127
+ }
128
+ render() {
129
+ return html`
130
+ <span>
131
+ <sp-action-button
132
+ draggable="true"
133
+ style="margin-block-end: 16px;"
134
+ >
135
+ Drag me
136
+ </sp-action-button>
137
+ <sp-dropzone
138
+ tabindex="0"
139
+ id="dropzone"
140
+ drop-effect="copy"
141
+ ?filled=${this.input !== void 0}
142
+ @sp-dropzone-drop=${this.onChange}
143
+ @sp-dropzone-dragover=${this.onDragOver}
144
+ @sp-dropzone-dragleave=${this.onDragLeave}
145
+ >
146
+ <sp-illustrated-message
147
+ style="--mod-illustrated-message-display: flex;"
148
+ heading=${this.input !== void 0 ? this.beingDraggedOver ? "Drop here to replace!" : "You dropped something!" : "Drag and drop your file"}
149
+ >
150
+ ${illustration}
151
+ </sp-illustrated-message>
152
+ <div>
153
+ <label for="file-input">
154
+ <sp-link
155
+ href="javascript:;"
156
+ onclick="this.parentElement.nextElementSibling.click()"
157
+ >
158
+ Select a File
159
+ </sp-link>
160
+ from your computer
161
+ </label>
162
+ <input
163
+ type="file"
164
+ id="file-input"
165
+ style="display: none"
166
+ @change=${this.onChange}
167
+ />
168
+ </div>
169
+ </sp-dropzone>
170
+ </span>
171
+ `;
172
+ }
173
+ onChange() {
174
+ this.input = "mock-file";
175
+ this.beingDraggedOver = false;
176
+ }
177
+ onDragOver() {
178
+ this.beingDraggedOver = true;
179
+ }
180
+ onDragLeave() {
181
+ this.beingDraggedOver = false;
182
+ }
183
+ }
184
+ __decorateClass([
185
+ state()
186
+ ], ControlledDropzone.prototype, "beingDraggedOver", 2);
187
+ __decorateClass([
188
+ state()
189
+ ], ControlledDropzone.prototype, "input", 2);
190
+ defineElement("controlled-dropzone", ControlledDropzone);
191
+ export const Controlled = () => {
192
+ return html`
193
+ <controlled-dropzone></controlled-dropzone>
194
+ `;
195
+ };
196
+ //# sourceMappingURL=dropzone.stories.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["dropzone.stories.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 {\n html,\n LitElement,\n TemplateResult,\n} from '@spectrum-web-components/base';\nimport { defineElement } from '@spectrum-web-components/base/src/define-element.js';\nimport { state } from '@spectrum-web-components/base/src/decorators.js';\n\nimport '@spectrum-web-components/dropzone/sp-dropzone.js';\nimport '@spectrum-web-components/action-button/sp-action-button.js';\nimport { illustration } from '../test/test-svg';\nimport '@spectrum-web-components/illustrated-message/sp-illustrated-message.js';\nimport '@spectrum-web-components/link/sp-link.js';\n\nexport default {\n component: 'sp-dropzone',\n title: 'Dropzone',\n args: {\n isDragged: false,\n isFilled: false,\n },\n argTypes: {\n isDragged: {\n name: 'isDragged',\n type: { name: 'boolean', required: false },\n table: {\n type: { summary: 'boolean' },\n defaultValue: { summary: false },\n },\n control: {\n type: 'boolean',\n },\n },\n isFilled: {\n name: 'isFilled',\n type: { name: 'boolean', required: false },\n table: {\n type: { summary: 'boolean' },\n defaultValue: { summary: false },\n },\n control: {\n type: 'boolean',\n },\n },\n },\n};\n\ntype StoryArgs = {\n isDragged?: boolean;\n isFilled?: boolean;\n};\n\nexport const Default = (args: StoryArgs): TemplateResult => {\n return html`\n <sp-dropzone id=\"dropzone\" tabindex=\"0\" ?dragged=${args.isDragged}>\n <sp-illustrated-message heading=\"Drag and Drop Your File\">\n ${illustration}\n </sp-illustrated-message>\n <div>\n <label for=\"file-input\">\n <sp-link\n href=\"javascript:;\"\n onclick=\"this.parentElement.nextElementSibling.click()\"\n >\n Select a File\n </sp-link>\n from your computer\n </label>\n <input type=\"file\" id=\"file-input\" style=\"display: none\" />\n </div>\n <div>\n or\n <sp-link href=\"http://stock.adobe.com\" target=\"blank\">\n Search Adobe Stock\n </sp-link>\n </div>\n </sp-dropzone>\n `;\n};\n\nexport const Dragged = (args: StoryArgs): TemplateResult => {\n return html`\n <sp-dropzone id=\"dropzone\" tabindex=\"0\" ?dragged=${args.isDragged}>\n <sp-illustrated-message heading=\"Drag and Drop Your File\">\n ${illustration}\n </sp-illustrated-message>\n <div>\n <label for=\"file-input\">\n <sp-link\n href=\"javascript:;\"\n onclick=\"this.parentElement.nextElementSibling.click()\"\n >\n Select a File\n </sp-link>\n from your computer\n </label>\n <input type=\"file\" id=\"file-input\" style=\"display: none\" />\n </div>\n <div>\n or\n <sp-link href=\"http://stock.adobe.com\" target=\"blank\">\n Search Adobe Stock\n </sp-link>\n </div>\n </sp-dropzone>\n `;\n};\nDragged.args = {\n isDragged: true,\n};\n\nexport const Filled = (args: StoryArgs): TemplateResult => {\n return html`\n <sp-dropzone id=\"dropzone\" ?filled=${args.isFilled}>\n Filled dropzone\n </sp-dropzone>\n `;\n};\nFilled.args = {\n isFilled: true,\n};\n\nclass ControlledDropzone extends LitElement {\n @state()\n private beingDraggedOver: boolean = false;\n\n @state()\n private input?: string = undefined;\n\n override render(): TemplateResult {\n return html`\n <span>\n <sp-action-button\n draggable=\"true\"\n style=\"margin-block-end: 16px;\"\n >\n Drag me\n </sp-action-button>\n <sp-dropzone\n tabindex=\"0\"\n id=\"dropzone\"\n drop-effect=\"copy\"\n ?filled=${this.input !== undefined}\n @sp-dropzone-drop=${this.onChange}\n @sp-dropzone-dragover=${this.onDragOver}\n @sp-dropzone-dragleave=${this.onDragLeave}\n >\n <sp-illustrated-message\n style=\"--mod-illustrated-message-display: flex;\"\n heading=${this.input !== undefined\n ? this.beingDraggedOver\n ? 'Drop here to replace!'\n : 'You dropped something!'\n : 'Drag and drop your file'}\n >\n ${illustration}\n </sp-illustrated-message>\n <div>\n <label for=\"file-input\">\n <sp-link\n href=\"javascript:;\"\n onclick=\"this.parentElement.nextElementSibling.click()\"\n >\n Select a File\n </sp-link>\n from your computer\n </label>\n <input\n type=\"file\"\n id=\"file-input\"\n style=\"display: none\"\n @change=${this.onChange}\n />\n </div>\n </sp-dropzone>\n </span>\n `;\n }\n\n private onChange(): void {\n this.input = 'mock-file';\n this.beingDraggedOver = false;\n }\n\n private onDragOver(): void {\n this.beingDraggedOver = true;\n }\n\n private onDragLeave(): void {\n this.beingDraggedOver = false;\n }\n}\ndefineElement('controlled-dropzone', ControlledDropzone);\n\nexport const Controlled = (): TemplateResult => {\n return html`\n <controlled-dropzone></controlled-dropzone>\n `;\n};\n"],
5
+ "mappings": ";;;;;;;;;;;AAWA;AAAA,EACI;AAAA,EACA;AAAA,OAEG;AACP,SAAS,qBAAqB;AAC9B,SAAS,aAAa;AAEtB,OAAO;AACP,OAAO;AACP,SAAS,oBAAoB;AAC7B,OAAO;AACP,OAAO;AAEP,eAAe;AAAA,EACX,WAAW;AAAA,EACX,OAAO;AAAA,EACP,MAAM;AAAA,IACF,WAAW;AAAA,IACX,UAAU;AAAA,EACd;AAAA,EACA,UAAU;AAAA,IACN,WAAW;AAAA,MACP,MAAM;AAAA,MACN,MAAM,EAAE,MAAM,WAAW,UAAU,MAAM;AAAA,MACzC,OAAO;AAAA,QACH,MAAM,EAAE,SAAS,UAAU;AAAA,QAC3B,cAAc,EAAE,SAAS,MAAM;AAAA,MACnC;AAAA,MACA,SAAS;AAAA,QACL,MAAM;AAAA,MACV;AAAA,IACJ;AAAA,IACA,UAAU;AAAA,MACN,MAAM;AAAA,MACN,MAAM,EAAE,MAAM,WAAW,UAAU,MAAM;AAAA,MACzC,OAAO;AAAA,QACH,MAAM,EAAE,SAAS,UAAU;AAAA,QAC3B,cAAc,EAAE,SAAS,MAAM;AAAA,MACnC;AAAA,MACA,SAAS;AAAA,QACL,MAAM;AAAA,MACV;AAAA,IACJ;AAAA,EACJ;AACJ;AAOO,aAAM,UAAU,CAAC,SAAoC;AACxD,SAAO;AAAA,2DACgD,KAAK,SAAS;AAAA;AAAA,kBAEvD,YAAY;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAsB9B;AAEO,aAAM,UAAU,CAAC,SAAoC;AACxD,SAAO;AAAA,2DACgD,KAAK,SAAS;AAAA;AAAA,kBAEvD,YAAY;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAsB9B;AACA,QAAQ,OAAO;AAAA,EACX,WAAW;AACf;AAEO,aAAM,SAAS,CAAC,SAAoC;AACvD,SAAO;AAAA,6CACkC,KAAK,QAAQ;AAAA;AAAA;AAAA;AAI1D;AACA,OAAO,OAAO;AAAA,EACV,UAAU;AACd;AAEA,MAAM,2BAA2B,WAAW;AAAA,EAA5C;AAAA;AAEI,SAAQ,mBAA4B;AAGpC,SAAQ,QAAiB;AAAA;AAAA,EAEhB,SAAyB;AAC9B,WAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,8BAYe,KAAK,UAAU,MAAS;AAAA,wCACd,KAAK,QAAQ;AAAA,4CACT,KAAK,UAAU;AAAA,6CACd,KAAK,WAAW;AAAA;AAAA;AAAA;AAAA,kCAI3B,KAAK,UAAU,SACnB,KAAK,mBACD,0BACA,2BACJ,yBAAyB;AAAA;AAAA,0BAE7B,YAAY;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sCAgBA,KAAK,QAAQ;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAM/C;AAAA,EAEQ,WAAiB;AACrB,SAAK,QAAQ;AACb,SAAK,mBAAmB;AAAA,EAC5B;AAAA,EAEQ,aAAmB;AACvB,SAAK,mBAAmB;AAAA,EAC5B;AAAA,EAEQ,cAAoB;AACxB,SAAK,mBAAmB;AAAA,EAC5B;AACJ;AAnEY;AAAA,EADP,MAAM;AAAA,GADL,mBAEM;AAGA;AAAA,EADP,MAAM;AAAA,GAJL,mBAKM;AAiEZ,cAAc,uBAAuB,kBAAkB;AAEhD,aAAM,aAAa,MAAsB;AAC5C,SAAO;AAAA;AAAA;AAGX;",
6
+ "names": []
7
+ }
@@ -0,0 +1,30 @@
1
+ "use strict";
2
+ import "@spectrum-web-components/dropzone/sp-dropzone.js";
3
+ import { html } from "lit";
4
+ import { measureFixtureCreation } from "../../../../test/benchmark/helpers.js";
5
+ measureFixtureCreation(html`
6
+ <sp-dropzone id="dropzone">
7
+ <sp-illustrated-message heading="Drag and Drop Your File">
8
+ <svg>
9
+ <use xlink:href="geometry.svg#upload_geometry" />
10
+ </svg>
11
+ </sp-illustrated-message>
12
+
13
+ <div style="color: grey">
14
+ <div>
15
+ <label for="file-input">
16
+ <sp-link>Select a File</sp-link>
17
+ from your computer
18
+ </label>
19
+ <input type="file" id="file-input" style="display: none" />
20
+ </div>
21
+ <div>
22
+ or
23
+ <sp-link href="http://stock.adobe.com" target="blank">
24
+ Search Adobe Stock
25
+ </sp-link>
26
+ </div>
27
+ </div>
28
+ </sp-dropzone>
29
+ `);
30
+ //# sourceMappingURL=test-basic.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["test-basic.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 '@spectrum-web-components/dropzone/sp-dropzone.js';\nimport { html } from 'lit';\nimport { measureFixtureCreation } from '../../../../test/benchmark/helpers.js';\n\nmeasureFixtureCreation(html`\n <sp-dropzone id=\"dropzone\">\n <sp-illustrated-message heading=\"Drag and Drop Your File\">\n <svg>\n <use xlink:href=\"geometry.svg#upload_geometry\" />\n </svg>\n </sp-illustrated-message>\n\n <div style=\"color: grey\">\n <div>\n <label for=\"file-input\">\n <sp-link>Select a File</sp-link>\n from your computer\n </label>\n <input type=\"file\" id=\"file-input\" style=\"display: none\" />\n </div>\n <div>\n or\n <sp-link href=\"http://stock.adobe.com\" target=\"blank\">\n Search Adobe Stock\n </sp-link>\n </div>\n </div>\n </sp-dropzone>\n`);\n"],
5
+ "mappings": ";AAYA,OAAO;AACP,SAAS,YAAY;AACrB,SAAS,8BAA8B;AAEvC,uBAAuB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAwBtB;",
6
+ "names": []
7
+ }
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ import { html } from "@open-wc/testing";
3
+ import "@spectrum-web-components/dropzone/sp-dropzone.js";
4
+ import { testForMemoryLeaks } from "../../../test/testing-helpers.js";
5
+ testForMemoryLeaks(html`
6
+ <sp-dropzone></sp-dropzone>
7
+ `);
8
+ //# sourceMappingURL=dropzone-memory.test.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["dropzone-memory.test.ts"],
4
+ "sourcesContent": ["/*\nCopyright 2023 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\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 { html } from '@open-wc/testing';\nimport '@spectrum-web-components/dropzone/sp-dropzone.js';\nimport { testForMemoryLeaks } from '../../../test/testing-helpers.js';\n\ntestForMemoryLeaks(html`\n <sp-dropzone></sp-dropzone>\n`);\n"],
5
+ "mappings": ";AAWA,SAAS,YAAY;AACrB,OAAO;AACP,SAAS,0BAA0B;AAEnC,mBAAmB;AAAA;AAAA,CAElB;",
6
+ "names": []
7
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ import * as stories from "../stories/dropzone.stories.js";
3
+ import { regressVisuals } from "../../../test/visual/test.js";
4
+ regressVisuals("DropzoneStories", stories);
5
+ //# sourceMappingURL=dropzone.test-vrt.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["dropzone.test-vrt.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 * as stories from '../stories/dropzone.stories.js';\nimport { regressVisuals } from '../../../test/visual/test.js';\nimport type { TestsType } from '../../../test/visual/test.js';\n\nregressVisuals('DropzoneStories', stories as unknown as TestsType);\n"],
5
+ "mappings": ";AAYA,YAAY,aAAa;AACzB,SAAS,sBAAsB;AAG/B,eAAe,mBAAmB,OAA+B;",
6
+ "names": []
7
+ }
@@ -0,0 +1,142 @@
1
+ "use strict";
2
+ import "@spectrum-web-components/dropzone/sp-dropzone.js";
3
+ import { illustration } from "./test-svg.js";
4
+ import { waitForPredicate } from "../../../test/testing-helpers.js";
5
+ import { elementUpdated, expect, fixture, html } from "@open-wc/testing";
6
+ describe("Dropzone", () => {
7
+ it("loads", async () => {
8
+ const el = await fixture(html`
9
+ <sp-dropzone id="dropzone">
10
+ <sp-illustrated-message heading="Drag and Drop Your File">
11
+ ${illustration}
12
+ </sp-illustrated-message>
13
+
14
+ <div style="color: grey">
15
+ <div>
16
+ <label for="file-input">
17
+ <sp-link>Select a File</sp-link>
18
+ from your computer
19
+ </label>
20
+ <input
21
+ type="file"
22
+ id="file-input"
23
+ style="display: none"
24
+ />
25
+ </div>
26
+ <div>
27
+ or
28
+ <sp-link href="http://stock.adobe.com" target="blank">
29
+ Search Adobe Stock
30
+ </sp-link>
31
+ </div>
32
+ </div>
33
+ </sp-dropzone>
34
+ `);
35
+ expect(el).to.not.equal(void 0);
36
+ if (!el.shadowRoot) throw new Error("No shadowRoot");
37
+ const slot = el.shadowRoot.querySelector("slot");
38
+ expect(slot).to.not.equal(void 0);
39
+ return true;
40
+ });
41
+ it("manages `dropEffects`", async () => {
42
+ const el = await fixture(html`
43
+ <sp-dropzone id="dropzone"></sp-dropzone>
44
+ `);
45
+ await elementUpdated(el);
46
+ expect(el.dropEffect).to.equal("copy");
47
+ el.dropEffect = "move";
48
+ await elementUpdated(el);
49
+ expect(el.dropEffect).to.equal("move");
50
+ });
51
+ it("manages `dragover` events", async () => {
52
+ const el = await fixture(html`
53
+ <sp-dropzone id="dropzone"></sp-dropzone>
54
+ `);
55
+ await elementUpdated(el);
56
+ expect(el.isDragged).to.be.false;
57
+ el.dispatchEvent(new DragEvent("dragover"));
58
+ expect(el.isDragged).to.be.false;
59
+ let dataTransfer = false;
60
+ try {
61
+ dataTransfer = new DataTransfer();
62
+ } catch (error) {
63
+ }
64
+ if (dataTransfer) {
65
+ const dragOverEvent = new DragEvent("dragover", {
66
+ dataTransfer
67
+ });
68
+ el.dispatchEvent(dragOverEvent);
69
+ expect(el.isDragged).to.be.true;
70
+ }
71
+ });
72
+ it("allows `dragover` events to be canceled", async () => {
73
+ const canceledDrag = (event) => {
74
+ event.preventDefault();
75
+ };
76
+ const el = await fixture(html`
77
+ <sp-dropzone
78
+ id="dropzone"
79
+ @sp-dropzone-should-accept=${canceledDrag}
80
+ ></sp-dropzone>
81
+ `);
82
+ await elementUpdated(el);
83
+ expect(el.isDragged).to.be.false;
84
+ let dataTransfer = false;
85
+ try {
86
+ dataTransfer = new DataTransfer();
87
+ } catch (error) {
88
+ }
89
+ if (dataTransfer) {
90
+ const dragOverEvent = new DragEvent("dragover", {
91
+ dataTransfer
92
+ });
93
+ el.dispatchEvent(dragOverEvent);
94
+ expect(el.isDragged).to.be.false;
95
+ expect(dataTransfer.dropEffect).to.not.equal(el.dropEffect);
96
+ expect(dataTransfer.dropEffect).to.equal("none");
97
+ }
98
+ });
99
+ it("manages `dragleave` events via debounce", async () => {
100
+ let dragLeftCount = 0;
101
+ const onDragLeave = () => {
102
+ dragLeftCount += 1;
103
+ };
104
+ const el = await fixture(html`
105
+ <sp-dropzone
106
+ id="dropzone"
107
+ @sp-dropzone-dragleave=${onDragLeave}
108
+ ></sp-dropzone>
109
+ `);
110
+ await elementUpdated(el);
111
+ expect(dragLeftCount).to.equal(0);
112
+ el.dispatchEvent(new DragEvent("dragleave"));
113
+ el.dispatchEvent(new DragEvent("dragleave"));
114
+ await waitForPredicate(() => dragLeftCount === 1);
115
+ expect(dragLeftCount).to.equal(1);
116
+ });
117
+ it("manages `dragleave` events", async () => {
118
+ let dropped = false;
119
+ const onDrop = () => {
120
+ dropped = true;
121
+ };
122
+ const el = await fixture(html`
123
+ <sp-dropzone
124
+ id="dropzone"
125
+ @sp-dropzone-drop=${onDrop}
126
+ ></sp-dropzone>
127
+ `);
128
+ await elementUpdated(el);
129
+ expect(dropped).to.be.false;
130
+ el.dispatchEvent(new DragEvent("drop"));
131
+ expect(dropped).to.be.true;
132
+ });
133
+ it("sets `filled` attribute", async () => {
134
+ const el = await fixture(html`
135
+ <sp-dropzone id="dropzone" filled></sp-dropzone>
136
+ `);
137
+ await elementUpdated(el);
138
+ expect(el.isFilled).to.be.true;
139
+ expect(el.hasAttribute("filled")).to.be.true;
140
+ });
141
+ });
142
+ //# sourceMappingURL=dropzone.test.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["dropzone.test.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 '@spectrum-web-components/dropzone/sp-dropzone.js';\nimport { Dropzone } from '@spectrum-web-components/dropzone';\nimport { illustration } from './test-svg.js';\nimport { waitForPredicate } from '../../../test/testing-helpers.js';\nimport { elementUpdated, expect, fixture, html } from '@open-wc/testing';\n\ndescribe('Dropzone', () => {\n it('loads', async () => {\n const el = await fixture<Dropzone>(html`\n <sp-dropzone id=\"dropzone\">\n <sp-illustrated-message heading=\"Drag and Drop Your File\">\n ${illustration}\n </sp-illustrated-message>\n\n <div style=\"color: grey\">\n <div>\n <label for=\"file-input\">\n <sp-link>Select a File</sp-link>\n from your computer\n </label>\n <input\n type=\"file\"\n id=\"file-input\"\n style=\"display: none\"\n />\n </div>\n <div>\n or\n <sp-link href=\"http://stock.adobe.com\" target=\"blank\">\n Search Adobe Stock\n </sp-link>\n </div>\n </div>\n </sp-dropzone>\n `);\n expect(el).to.not.equal(undefined);\n if (!el.shadowRoot) throw new Error('No shadowRoot');\n const slot = el.shadowRoot.querySelector('slot') as HTMLSlotElement;\n expect(slot).to.not.equal(undefined);\n return true;\n });\n it('manages `dropEffects`', async () => {\n const el = await fixture<Dropzone>(html`\n <sp-dropzone id=\"dropzone\"></sp-dropzone>\n `);\n\n await elementUpdated(el);\n\n expect(el.dropEffect).to.equal('copy');\n\n el.dropEffect = 'move';\n\n await elementUpdated(el);\n\n expect(el.dropEffect).to.equal('move');\n });\n it('manages `dragover` events', async () => {\n const el = await fixture<Dropzone>(html`\n <sp-dropzone id=\"dropzone\"></sp-dropzone>\n `);\n\n await elementUpdated(el);\n\n expect(el.isDragged).to.be.false;\n\n el.dispatchEvent(new DragEvent('dragover'));\n\n expect(el.isDragged).to.be.false;\n\n let dataTransfer: DataTransfer | boolean = false;\n try {\n // Safari doesn't like this...\n dataTransfer = new DataTransfer();\n } catch (error) {}\n if (dataTransfer) {\n const dragOverEvent = new DragEvent('dragover', {\n dataTransfer,\n });\n\n el.dispatchEvent(dragOverEvent);\n\n expect(el.isDragged).to.be.true;\n // We should be able to make the following test here:\n // expect(dataTransfer.dropEffect).to.equal(el.dropEffect);\n // However, Chrome doesn't like it in the context of a test...\n }\n });\n it('allows `dragover` events to be canceled', async () => {\n const canceledDrag = (event: DragEvent): void => {\n event.preventDefault();\n };\n const el = await fixture<Dropzone>(html`\n <sp-dropzone\n id=\"dropzone\"\n @sp-dropzone-should-accept=${canceledDrag}\n ></sp-dropzone>\n `);\n\n await elementUpdated(el);\n\n expect(el.isDragged).to.be.false;\n\n let dataTransfer: DataTransfer | boolean = false;\n try {\n // Safari doesn't like this...\n dataTransfer = new DataTransfer();\n } catch (error) {}\n if (dataTransfer) {\n const dragOverEvent = new DragEvent('dragover', {\n dataTransfer,\n });\n\n el.dispatchEvent(dragOverEvent);\n\n expect(el.isDragged).to.be.false;\n expect(dataTransfer.dropEffect).to.not.equal(el.dropEffect);\n expect(dataTransfer.dropEffect).to.equal('none');\n }\n });\n it('manages `dragleave` events via debounce', async () => {\n let dragLeftCount = 0;\n const onDragLeave = (): void => {\n dragLeftCount += 1;\n };\n const el = await fixture<Dropzone>(html`\n <sp-dropzone\n id=\"dropzone\"\n @sp-dropzone-dragleave=${onDragLeave}\n ></sp-dropzone>\n `);\n\n await elementUpdated(el);\n\n expect(dragLeftCount).to.equal(0);\n\n el.dispatchEvent(new DragEvent('dragleave'));\n el.dispatchEvent(new DragEvent('dragleave'));\n\n await waitForPredicate(() => dragLeftCount === 1);\n\n expect(dragLeftCount).to.equal(1);\n });\n\n it('manages `dragleave` events', async () => {\n let dropped = false;\n const onDrop = (): void => {\n dropped = true;\n };\n const el = await fixture<Dropzone>(html`\n <sp-dropzone\n id=\"dropzone\"\n @sp-dropzone-drop=${onDrop}\n ></sp-dropzone>\n `);\n\n await elementUpdated(el);\n\n expect(dropped).to.be.false;\n\n el.dispatchEvent(new DragEvent('drop'));\n\n expect(dropped).to.be.true;\n });\n\n it('sets `filled` attribute', async () => {\n const el = await fixture<Dropzone>(html`\n <sp-dropzone id=\"dropzone\" filled></sp-dropzone>\n `);\n\n await elementUpdated(el);\n\n expect(el.isFilled).to.be.true;\n expect(el.hasAttribute('filled')).to.be.true;\n });\n});\n"],
5
+ "mappings": ";AAWA,OAAO;AAEP,SAAS,oBAAoB;AAC7B,SAAS,wBAAwB;AACjC,SAAS,gBAAgB,QAAQ,SAAS,YAAY;AAEtD,SAAS,YAAY,MAAM;AACvB,KAAG,SAAS,YAAY;AACpB,UAAM,KAAK,MAAM,QAAkB;AAAA;AAAA;AAAA,sBAGrB,YAAY;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,SAuBzB;AACD,WAAO,EAAE,EAAE,GAAG,IAAI,MAAM,MAAS;AACjC,QAAI,CAAC,GAAG,WAAY,OAAM,IAAI,MAAM,eAAe;AACnD,UAAM,OAAO,GAAG,WAAW,cAAc,MAAM;AAC/C,WAAO,IAAI,EAAE,GAAG,IAAI,MAAM,MAAS;AACnC,WAAO;AAAA,EACX,CAAC;AACD,KAAG,yBAAyB,YAAY;AACpC,UAAM,KAAK,MAAM,QAAkB;AAAA;AAAA,SAElC;AAED,UAAM,eAAe,EAAE;AAEvB,WAAO,GAAG,UAAU,EAAE,GAAG,MAAM,MAAM;AAErC,OAAG,aAAa;AAEhB,UAAM,eAAe,EAAE;AAEvB,WAAO,GAAG,UAAU,EAAE,GAAG,MAAM,MAAM;AAAA,EACzC,CAAC;AACD,KAAG,6BAA6B,YAAY;AACxC,UAAM,KAAK,MAAM,QAAkB;AAAA;AAAA,SAElC;AAED,UAAM,eAAe,EAAE;AAEvB,WAAO,GAAG,SAAS,EAAE,GAAG,GAAG;AAE3B,OAAG,cAAc,IAAI,UAAU,UAAU,CAAC;AAE1C,WAAO,GAAG,SAAS,EAAE,GAAG,GAAG;AAE3B,QAAI,eAAuC;AAC3C,QAAI;AAEA,qBAAe,IAAI,aAAa;AAAA,IACpC,SAAS,OAAO;AAAA,IAAC;AACjB,QAAI,cAAc;AACd,YAAM,gBAAgB,IAAI,UAAU,YAAY;AAAA,QAC5C;AAAA,MACJ,CAAC;AAED,SAAG,cAAc,aAAa;AAE9B,aAAO,GAAG,SAAS,EAAE,GAAG,GAAG;AAAA,IAI/B;AAAA,EACJ,CAAC;AACD,KAAG,2CAA2C,YAAY;AACtD,UAAM,eAAe,CAAC,UAA2B;AAC7C,YAAM,eAAe;AAAA,IACzB;AACA,UAAM,KAAK,MAAM,QAAkB;AAAA;AAAA;AAAA,6CAGE,YAAY;AAAA;AAAA,SAEhD;AAED,UAAM,eAAe,EAAE;AAEvB,WAAO,GAAG,SAAS,EAAE,GAAG,GAAG;AAE3B,QAAI,eAAuC;AAC3C,QAAI;AAEA,qBAAe,IAAI,aAAa;AAAA,IACpC,SAAS,OAAO;AAAA,IAAC;AACjB,QAAI,cAAc;AACd,YAAM,gBAAgB,IAAI,UAAU,YAAY;AAAA,QAC5C;AAAA,MACJ,CAAC;AAED,SAAG,cAAc,aAAa;AAE9B,aAAO,GAAG,SAAS,EAAE,GAAG,GAAG;AAC3B,aAAO,aAAa,UAAU,EAAE,GAAG,IAAI,MAAM,GAAG,UAAU;AAC1D,aAAO,aAAa,UAAU,EAAE,GAAG,MAAM,MAAM;AAAA,IACnD;AAAA,EACJ,CAAC;AACD,KAAG,2CAA2C,YAAY;AACtD,QAAI,gBAAgB;AACpB,UAAM,cAAc,MAAY;AAC5B,uBAAiB;AAAA,IACrB;AACA,UAAM,KAAK,MAAM,QAAkB;AAAA;AAAA;AAAA,yCAGF,WAAW;AAAA;AAAA,SAE3C;AAED,UAAM,eAAe,EAAE;AAEvB,WAAO,aAAa,EAAE,GAAG,MAAM,CAAC;AAEhC,OAAG,cAAc,IAAI,UAAU,WAAW,CAAC;AAC3C,OAAG,cAAc,IAAI,UAAU,WAAW,CAAC;AAE3C,UAAM,iBAAiB,MAAM,kBAAkB,CAAC;AAEhD,WAAO,aAAa,EAAE,GAAG,MAAM,CAAC;AAAA,EACpC,CAAC;AAED,KAAG,8BAA8B,YAAY;AACzC,QAAI,UAAU;AACd,UAAM,SAAS,MAAY;AACvB,gBAAU;AAAA,IACd;AACA,UAAM,KAAK,MAAM,QAAkB;AAAA;AAAA;AAAA,oCAGP,MAAM;AAAA;AAAA,SAEjC;AAED,UAAM,eAAe,EAAE;AAEvB,WAAO,OAAO,EAAE,GAAG,GAAG;AAEtB,OAAG,cAAc,IAAI,UAAU,MAAM,CAAC;AAEtC,WAAO,OAAO,EAAE,GAAG,GAAG;AAAA,EAC1B,CAAC;AAED,KAAG,2BAA2B,YAAY;AACtC,UAAM,KAAK,MAAM,QAAkB;AAAA;AAAA,SAElC;AAED,UAAM,eAAe,EAAE;AAEvB,WAAO,GAAG,QAAQ,EAAE,GAAG,GAAG;AAC1B,WAAO,GAAG,aAAa,QAAQ,CAAC,EAAE,GAAG,GAAG;AAAA,EAC5C,CAAC;AACL,CAAC;",
6
+ "names": []
7
+ }
@@ -0,0 +1,64 @@
1
+ "use strict";
2
+ import { html } from "@spectrum-web-components/base";
3
+ export const illustration = html`
4
+ <svg
5
+ xmlns="http://www.w3.org/2000/svg"
6
+ viewBox="0 0 200 100"
7
+ width="200"
8
+ height="100"
9
+ >
10
+ <defs>
11
+ <style>
12
+ .cls-1,
13
+ .cls-2 {
14
+ fill: none;
15
+ stroke-linecap: round;
16
+ stroke-linejoin: round;
17
+ }
18
+ .cls-1 {
19
+ stroke-width: 3px;
20
+ }
21
+ .cls-2 {
22
+ stroke-width: 2px;
23
+ }
24
+ </style>
25
+ </defs>
26
+ <path
27
+ class="cls-1"
28
+ d="M110.53,85.66,100.26,95.89a1.09,1.09,0,0,1-1.52,0L88.47,85.66"
29
+ ></path>
30
+ <line class="cls-1" x1="99.5" y1="95.5" x2="99.5" y2="58.5"></line>
31
+ <path class="cls-1" d="M105.5,73.5h19a2,2,0,0,0,2-2v-43"></path>
32
+ <path
33
+ class="cls-1"
34
+ d="M126.5,22.5h-19a2,2,0,0,1-2-2V1.5h-31a2,2,0,0,0-2,2v68a2,2,0,0,0,2,2h19"
35
+ ></path>
36
+ <line class="cls-1" x1="105.5" y1="1.5" x2="126.5" y2="22.5"></line>
37
+ <path
38
+ class="cls-2"
39
+ d="M47.93,50.49a5,5,0,1,0-4.83-5A4.93,4.93,0,0,0,47.93,50.49Z"
40
+ ></path>
41
+ <path
42
+ class="cls-2"
43
+ d="M36.6,65.93,42.05,60A2.06,2.06,0,0,1,45,60l12.68,13.2"
44
+ ></path>
45
+ <path
46
+ class="cls-2"
47
+ d="M3.14,73.23,22.42,53.76a1.65,1.65,0,0,1,2.38,0l19.05,19.7"
48
+ ></path>
49
+ <path
50
+ class="cls-1"
51
+ d="M139.5,36.5H196A1.49,1.49,0,0,1,197.5,38V72A1.49,1.49,0,0,1,196,73.5H141A1.49,1.49,0,0,1,139.5,72V32A1.49,1.49,0,0,1,141,30.5H154a2.43,2.43,0,0,1,1.67.66l6,5.66"
52
+ ></path>
53
+ <rect
54
+ class="cls-1"
55
+ x="1.5"
56
+ y="34.5"
57
+ width="58"
58
+ height="39"
59
+ rx="2"
60
+ ry="2"
61
+ ></rect>
62
+ </svg>
63
+ `;
64
+ //# sourceMappingURL=test-svg.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["test-svg.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 { html } from '@spectrum-web-components/base';\n\nexport const illustration = html`\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 200 100\"\n width=\"200\"\n height=\"100\"\n >\n <defs>\n <style>\n .cls-1,\n .cls-2 {\n fill: none;\n stroke-linecap: round;\n stroke-linejoin: round;\n }\n .cls-1 {\n stroke-width: 3px;\n }\n .cls-2 {\n stroke-width: 2px;\n }\n </style>\n </defs>\n <path\n class=\"cls-1\"\n d=\"M110.53,85.66,100.26,95.89a1.09,1.09,0,0,1-1.52,0L88.47,85.66\"\n ></path>\n <line class=\"cls-1\" x1=\"99.5\" y1=\"95.5\" x2=\"99.5\" y2=\"58.5\"></line>\n <path class=\"cls-1\" d=\"M105.5,73.5h19a2,2,0,0,0,2-2v-43\"></path>\n <path\n class=\"cls-1\"\n d=\"M126.5,22.5h-19a2,2,0,0,1-2-2V1.5h-31a2,2,0,0,0-2,2v68a2,2,0,0,0,2,2h19\"\n ></path>\n <line class=\"cls-1\" x1=\"105.5\" y1=\"1.5\" x2=\"126.5\" y2=\"22.5\"></line>\n <path\n class=\"cls-2\"\n d=\"M47.93,50.49a5,5,0,1,0-4.83-5A4.93,4.93,0,0,0,47.93,50.49Z\"\n ></path>\n <path\n class=\"cls-2\"\n d=\"M36.6,65.93,42.05,60A2.06,2.06,0,0,1,45,60l12.68,13.2\"\n ></path>\n <path\n class=\"cls-2\"\n d=\"M3.14,73.23,22.42,53.76a1.65,1.65,0,0,1,2.38,0l19.05,19.7\"\n ></path>\n <path\n class=\"cls-1\"\n d=\"M139.5,36.5H196A1.49,1.49,0,0,1,197.5,38V72A1.49,1.49,0,0,1,196,73.5H141A1.49,1.49,0,0,1,139.5,72V32A1.49,1.49,0,0,1,141,30.5H154a2.43,2.43,0,0,1,1.67.66l6,5.66\"\n ></path>\n <rect\n class=\"cls-1\"\n x=\"1.5\"\n y=\"34.5\"\n width=\"58\"\n height=\"39\"\n rx=\"2\"\n ry=\"2\"\n ></rect>\n </svg>\n`;\n"],
5
+ "mappings": ";AAWA,SAAS,YAAY;AAEd,aAAM,eAAe;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;",
6
+ "names": []
7
+ }