@farm-investimentos/front-mfe-components 6.2.0 → 6.2.3

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": "6.2.0",
3
+ "version": "6.2.3",
4
4
  "author": "farm investimentos",
5
5
  "private": false,
6
6
  "main": "./dist/front-mfe-components.common.js",
@@ -55,7 +55,7 @@ $colors: primary, secondary, error, extra, accent, info, success, gray, yellow;
55
55
  }
56
56
  }
57
57
 
58
- &:not(.farm-btn--plain):active {
58
+ &:not(.farm-btn--plain):not(.farm-btn--disabled):active {
59
59
  box-shadow: 0px 5px 5px -3px rgb(0 0 0 / 20%), 0px 8px 10px 1px rgb(0 0 0 / 14%), 0px 3px 14px 2px rgb(0 0 0 / 12%);
60
60
 
61
61
  &:before {
@@ -91,7 +91,7 @@ $colors: primary, secondary, error, extra, accent, info, success, gray, yellow;
91
91
  width: 36px;
92
92
 
93
93
  .farm-btn__content i.mdi {
94
- color: gray !important;
94
+ color: gray;
95
95
  }
96
96
 
97
97
  @each $color in $colors {
@@ -150,4 +150,13 @@ $colors: primary, secondary, error, extra, accent, info, success, gray, yellow;
150
150
 
151
151
  .farm-btn--elevated {
152
152
  box-shadow: 0px 3px 1px -2px rgb(0 0 0 / 20%), 0px 2px 2px 0px rgb(0 0 0 / 14%), 0px 1px 5px 0px rgb(0 0 0 / 12%);
153
+ }
154
+
155
+ @media screen and (max-width: 600px) {
156
+
157
+ .farm-btn.farm-btn--responsive {
158
+ width: 100%;
159
+ margin: 0;
160
+ }
161
+
153
162
  }
@@ -109,6 +109,25 @@ export const Icons = () => ({
109
109
  </div>`,
110
110
  });
111
111
 
112
+ export const Iconed = () => ({
113
+ components: {
114
+ 'farm-btn': DefaultButton,
115
+ },
116
+ data() {
117
+ return {
118
+ colors,
119
+ };
120
+ },
121
+ template: `<div class="buttons-container">
122
+ <h4>Icon</h4>
123
+ <farm-btn icon v-for="color of colors":key="color" >
124
+ <v-icon :color="color">mdi-book</v-icon>
125
+ </farm-btn>
126
+
127
+
128
+ </div>`,
129
+ });
130
+
112
131
  ActiveButtons.story = {
113
132
  name: 'Active',
114
133
  };
@@ -124,3 +143,6 @@ Plain.story = {
124
143
  Icons.story = {
125
144
  name: 'Icons',
126
145
  };
146
+ Iconed.story = {
147
+ name: 'Iconed',
148
+ };
@@ -63,4 +63,11 @@
63
63
  width: 100%;
64
64
  margin: 0;
65
65
  }
66
+
67
+ .farm-btn.v-btn-responsive,
68
+ .farm-btn.v-btn--responsive {
69
+ width: 100%;
70
+ margin: 0;
71
+ }
72
+
66
73
  }