sample-ui-component-library 0.0.17-dev → 0.0.23-dev

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.
@@ -1,40 +0,0 @@
1
- import { useEffect } from "react";
2
- import { Viewer } from "../components/Viewer";
3
- import { useArgs } from "@storybook/preview-api";
4
- import { action } from "@storybook/addon-actions";
5
-
6
- import fileTrees from "./data/filetree.json";
7
-
8
- import "./ViewerStories.scss"
9
-
10
- export default {
11
- title: 'Viewer',
12
- component: Viewer,
13
- argTypes: {}
14
- };
15
-
16
- const Template = (args) => {
17
- const [, updateArgs] = useArgs();
18
-
19
- const onFileSelect = (selectedFile) => {
20
- action('Selected Stack Position:')(selectedFile);
21
- }
22
-
23
- useEffect(() => {
24
- updateArgs({onFileSelect : onFileSelect});
25
- }, []);
26
-
27
- return (
28
- <div className="viewerStoryWrapper">
29
- <Viewer {...args} />
30
- </div>
31
- )
32
- }
33
-
34
- export const Default = Template.bind({})
35
-
36
- console.log(fileTrees);
37
-
38
- Default.args = {
39
- systemTree: fileTrees.fileTrees
40
- }
@@ -1,7 +0,0 @@
1
- .viewerStoryWrapper{
2
- position: absolute;
3
- top:0;
4
- bottom:0;
5
- left:0;
6
- right:0;
7
- }