@tiddh/brave-vue 1.93.41 → 1.93.42
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/Modal/Sidebar.stories.js +44 -0
- package/dist/src/Modal/Sidebar.vue +884 -0
- package/dist/src/Sidebar.stories.js +44 -0
- package/dist/src/Sidebar.vue +884 -0
- package/dist/src/components/Modal/Sidebar.stories.js +44 -0
- package/dist/src/components/Modal/Sidebar.vue +884 -0
- package/package.json +1 -1
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { action } from "@storybook/addon-actions";
|
|
2
|
+
import { linkTo } from "@storybook/addon-links";
|
|
3
|
+
import { withKnobs, text, boolean, select } from "@storybook/addon-knobs";
|
|
4
|
+
|
|
5
|
+
import Sidebar from "./Sidebar";
|
|
6
|
+
|
|
7
|
+
// import Input from "../Form/Input";
|
|
8
|
+
// import Button from "../Buttons/Button";
|
|
9
|
+
|
|
10
|
+
export default {
|
|
11
|
+
title: "Sidebar",
|
|
12
|
+
decorators: [withKnobs],
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
export const Primary = () => ({
|
|
16
|
+
components: { Sidebar },
|
|
17
|
+
props: {
|
|
18
|
+
disabled: {
|
|
19
|
+
default: boolean("Disabled", false),
|
|
20
|
+
},
|
|
21
|
+
inverted: {
|
|
22
|
+
default: boolean("Inverted", false),
|
|
23
|
+
},
|
|
24
|
+
shadowColor: {
|
|
25
|
+
default: text("Shadow color", "175, 162, 186"),
|
|
26
|
+
},
|
|
27
|
+
divider: {
|
|
28
|
+
default: boolean("Divider", true),
|
|
29
|
+
},
|
|
30
|
+
},
|
|
31
|
+
template: `<div>
|
|
32
|
+
<Sidebar ctaText="Voltar para a home" color="#223A7E">
|
|
33
|
+
<h1>Teste</h1>
|
|
34
|
+
</Sidebar>
|
|
35
|
+
|
|
36
|
+
</div>`,
|
|
37
|
+
});
|
|
38
|
+
|
|
39
|
+
const sizeList = {
|
|
40
|
+
XLarge: "xl",
|
|
41
|
+
Large: "lg",
|
|
42
|
+
Medium: "md",
|
|
43
|
+
Small: "sm",
|
|
44
|
+
};
|