Skip to content

Commit 5841e1d

Browse files
committed
chore(dropzone): restoring image, story and template files
1 parent 9acc046 commit 5841e1d

File tree

3 files changed

+11
-19
lines changed

3 files changed

+11
-19
lines changed
Loading

components/dropzone/stories/dropzone.stories.js

+11-15
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
import { default as ActionButton } from "@spectrum-css/actionbutton/stories/actionbutton.stories.js";
2-
import { SizingTemplate } from "@spectrum-css/dropzone/stories/template.js";
32
import { default as IllustratedMessage } from "@spectrum-css/illustratedmessage/stories/illustratedmessage.stories.js";
4-
import { Template as Link } from "@spectrum-css/link/stories/template.js";
3+
import { Sizes } from "@spectrum-css/preview/decorators";
54
import { disableDefaultModes } from "@spectrum-css/preview/modes";
65
import { isDragged } from "@spectrum-css/preview/types";
7-
import { html } from "lit";
86
import metadata from "../dist/metadata.json";
97
import packageJson from "../package.json";
108
import { DropzoneGroup } from "./dropzone.test.js";
9+
import { Template } from "./template.js";
1110

1211
/**
1312
* A drop zone is an area on the screen into a which an object can be dragged and dropped to accomplish a task. It's a common interaction in uploading and file management workflows. For example, a drop zone might be used in an upload workflow to enable the user to simply drop a file from their operating system into the drop zone, which is a more efficient and intuitive action, rather than utilizing the standard "Choose file" dialog.
@@ -38,6 +37,7 @@ export default {
3837
isFilled: false,
3938
title: "Drag and drop your file",
4039
description: "Or, select a file from your computer.",
40+
label: "Browse files",
4141
},
4242
parameters: {
4343
design: {
@@ -50,17 +50,7 @@ export default {
5050
};
5151

5252
export const Default = DropzoneGroup.bind({});
53-
Default.args = {
54-
description: [
55-
() => {
56-
return html`${Link({ url: "#", text: "Select a file" })} from your computer.`;
57-
},
58-
],
59-
label: "Drop file to replace",
60-
customStyles: {
61-
width: "300px",
62-
},
63-
};
53+
Default.args = {};
6454

6555
// ********* VRT ONLY ********* //
6656
export const WithForcedColors = DropzoneGroup.bind({});
@@ -74,7 +64,13 @@ WithForcedColors.parameters = {
7464
};
7565

7666

77-
export const Sizing = SizingTemplate.bind({});
67+
export const Sizing = (args, context) => Sizes({
68+
Template,
69+
withBorder: false,
70+
withHeader: false,
71+
...args
72+
}, context);
73+
7874
Sizing.args = {};
7975
Sizing.tags = ["!dev"];
8076
Sizing.parameters = {

components/illustratedmessage/stories/template.js

-4
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,7 @@ export const Template = ({
3030
${customIllustration
3131
? customIllustration()
3232
: illustrationSvgMarkup(size)}
33-
<<<<<<< HEAD
3433
<div class="${rootClass}-content">
35-
=======
36-
<div class="${rootClass}--content">
37-
>>>>>>> da506c0eb (feat(dropzone): adding dropzone migration)
3834
${when(
3935
title,
4036
() =>

0 commit comments

Comments
 (0)