@farm-investimentos/front-mfe-components 3.4.7 → 3.4.8

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@farm-investimentos/front-mfe-components",
3
- "version": "3.4.7",
3
+ "version": "3.4.8",
4
4
  "author": "farm investimentos",
5
5
  "private": false,
6
6
  "main": "./dist/front-mfe-components.common.js",
@@ -0,0 +1,17 @@
1
+ section {
2
+ display: flex;
3
+ flex-direction: row;
4
+ .v-btn {
5
+ margin-left: 1rem;
6
+ }
7
+ }
8
+ @media screen and (max-width: 600px) {
9
+ section {
10
+ flex-direction: column;
11
+ margin-bottom: 1rem;
12
+ .v-btn {
13
+ margin-left: 0;
14
+ margin-top: 0 !important;
15
+ }
16
+ }
17
+ }
@@ -69,10 +69,10 @@ export default {
69
69
  this.inputValue = newValue;
70
70
  },
71
71
  },
72
- data: () => {
72
+ data() {
73
73
  return {
74
74
  timer: null,
75
- inputValue: '',
75
+ inputValue: this.initialValue,
76
76
  };
77
77
  },
78
78
  methods: {
@@ -105,21 +105,5 @@ export default {
105
105
  </script>
106
106
 
107
107
  <style scoped lang="scss">
108
- section {
109
- display: flex;
110
- flex-direction: row;
111
- .v-btn {
112
- margin-left: 1rem;
113
- }
114
- }
115
- @media screen and (max-width: 600px) {
116
- section {
117
- flex-direction: column;
118
- margin-bottom: 1rem;
119
- .v-btn {
120
- margin-left: 0;
121
- margin-top: 0 !important;
122
- }
123
- }
124
- }
108
+ @import './MainFilter.scss';
125
109
  </style>
@@ -0,0 +1,75 @@
1
+ import { withDesign } from 'storybook-addon-designs';
2
+ import { DefaultButton } from '../main';
3
+
4
+ export default {
5
+ title: 'Examples/Buttons',
6
+ decorators: [withDesign],
7
+ parameters: {
8
+ viewMode: 'docs',
9
+ docs: {
10
+ description: {
11
+ component: `DefaultButton`,
12
+ },
13
+ },
14
+ },
15
+ };
16
+
17
+ const colors = ['primary', 'secondary', 'error', 'extra', 'gray', 'accent', 'yellow'];
18
+
19
+ export const ActiveButtons = () => ({
20
+ components: {
21
+ DefaultButton,
22
+ },
23
+ data() {
24
+ return {
25
+ colors,
26
+ };
27
+ },
28
+ template: `<div style="display: flex; flex-direction: column; max-width: 160px; width: 100%;">
29
+ <DefaultButton v-for="color of colors":key="color" :color="color" style="margin-bottom: 1rem;">
30
+ {{ color }}
31
+ </DefaultButton>
32
+ </div>`,
33
+ });
34
+
35
+ export const OutlinedButtons = () => ({
36
+ components: {
37
+ DefaultButton,
38
+ },
39
+ data() {
40
+ return {
41
+ colors,
42
+ };
43
+ },
44
+ template: `<div style="display: flex; flex-direction: column; max-width: 160px; width: 100%;">
45
+ <DefaultButton v-for="color of colors":key="color" :color="color" style="margin-bottom: 1rem;" outlined>
46
+ {{ color }}
47
+ </DefaultButton>
48
+ </div>`,
49
+ });
50
+
51
+ export const DisabledButtons = () => ({
52
+ components: {
53
+ DefaultButton,
54
+ },
55
+ data() {
56
+ return {
57
+ colors,
58
+ };
59
+ },
60
+ template: `<div style="display: flex; flex-direction: column; max-width: 160px; width: 100%;">
61
+ <DefaultButton v-for="color of colors":key="color" :color="color" style="margin-bottom: 1rem;" disabled>
62
+ {{ color }}
63
+ </DefaultButton>
64
+ </div>`,
65
+ });
66
+
67
+ ActiveButtons.story = {
68
+ name: 'Active',
69
+ };
70
+ OutlinedButtons.story = {
71
+ name: 'Outlined',
72
+ };
73
+ DisabledButtons.story = {
74
+ name: 'Disabled',
75
+ };