@farm-investimentos/front-mfe-components 6.2.2 → 6.2.5

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.2",
3
+ "version": "6.2.5",
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 {
@@ -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
  }
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <button v-on="$listeners" v-bind="$attrs" :type="type" :class="classes">
2
+ <button v-on="$listeners" v-bind="$attrs" :disabled="disabled" :type="type" :class="classes">
3
3
  <span class="farm-btn__content">
4
4
  <slot></slot>
5
5
  </span>
@@ -3,7 +3,7 @@
3
3
  v-if="optionsList.length == 0"
4
4
  @click="onClick"
5
5
  dense
6
- class="v-btn--responsive"
6
+ class="farm-btn--responsive"
7
7
  outlined
8
8
  title="Exportar"
9
9
  :disabled="disabled"
@@ -23,7 +23,7 @@
23
23
  v-bind="attrs"
24
24
  v-on="on"
25
25
  dense
26
- class="v-btn--responsive"
26
+ class="farm-btn--responsive"
27
27
  outlined
28
28
  title="Exportar"
29
29
  @onClick="togglePopover = true"
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <farm-btn @click="onClick" dense class="v-btn--responsive farm-btn--import" outlined title="Importar">
2
+ <farm-btn @click="onClick" dense class="farm-btn--responsive farm-btn--import" outlined title="Importar">
3
3
  <i class="mdi mdi-upload"></i>
4
4
  {{ label }}
5
5
  </farm-btn>
@@ -5,10 +5,10 @@
5
5
  v-bind="attrs"
6
6
  v-on="on"
7
7
  dense
8
- @onClick="togglePopover = true"
9
- class="v-btn--responsive farm-btn--import"
8
+ class="farm-btn--responsive farm-btn--import"
10
9
  outlined
11
10
  title="Importar"
11
+ @onClick="togglePopover = true"
12
12
  >
13
13
  Importar
14
14
  <i
@@ -1,11 +1,11 @@
1
1
  <template>
2
2
  <farm-btn
3
- @click="onClick"
4
3
  dense
5
- class="v-btn--responsive"
4
+ class="farm-btn--responsive"
6
5
  color="error"
7
6
  :title="label"
8
7
  :disabled="disabled"
8
+ @click="onClick"
9
9
  >
10
10
  <v-icon>mdi-trash-can-outline</v-icon>
11
11
  {{ label }}
@@ -2,7 +2,7 @@
2
2
  <farm-btn
3
3
  @click="onClick"
4
4
  dense
5
- class="v-btn--responsive"
5
+ class="farm-btn--responsive"
6
6
  :class="{
7
7
  'v-btn_icon--prepend': prepend,
8
8
  'v-btn_icon--apppend': !prepend,
@@ -19,7 +19,7 @@
19
19
 
20
20
  <p v-if="maxSizeReach" v-html="maxSizeReachMsg"></p>
21
21
 
22
- <farm-btn depressed outlined color="secondary" class="v-btn-responsive" @click="reset">
22
+ <farm-btn depressed outlined color="secondary" class="farm-btn--responsive" @click="reset">
23
23
  Escolher outro
24
24
  </farm-btn>
25
25
  </div>
@@ -17,7 +17,7 @@
17
17
  <DefaultButton
18
18
  v-if="hasExtraFilters"
19
19
  color="secondary"
20
- class="v-btn--responsive mt-14 mt-sm-8"
20
+ class="farm-btn--responsive mt-14 mt-sm-8"
21
21
  @click="onFilterClick"
22
22
  >
23
23
  <v-icon color="white" class="mr-2" small>{{ extraFiltersBtnIcon }}</v-icon>
@@ -43,7 +43,7 @@ export const OutlinedButtons = () => ({
43
43
  };
44
44
  },
45
45
  template: `<div class="buttons-container">
46
- <farm-btn v-for="color of colors":key="color" :color="color"outlined>
46
+ <farm-btn v-for="color of colors":key="color" :color="color" outlined>
47
47
  {{ color }}
48
48
  </farm-btn>
49
49
  </div>`,
@@ -56,6 +56,7 @@ export const DisabledButtons = () => ({
56
56
  data() {
57
57
  return {
58
58
  colors,
59
+ x: 1
59
60
  };
60
61
  },
61
62
  template: `<div class="buttons-container">