@farm-investimentos/front-mfe-components 11.5.6 → 11.6.1

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": "11.5.6",
3
+ "version": "11.6.1",
4
4
  "author": "farm investimentos",
5
5
  "private": false,
6
6
  "main": "./dist/front-mfe-components.common.js",
@@ -24,6 +24,6 @@ describe('ContextMenu component', () => {
24
24
  it('Should handle click', () =>{
25
25
  component.click();
26
26
  expect(component.inputValue).toBeTruthy();
27
- })
28
- })
27
+ });
28
+ });
29
29
  });
@@ -257,7 +257,7 @@ export const Grid = () => ({
257
257
  </farm-col>
258
258
  <farm-col cols="12" md="3">
259
259
  <farm-label>Label 3</farm-label>
260
- <farm-textfield />
260
+ <farm-textfield hint="some hint text" persistent-hint="true" />
261
261
  </farm-col>
262
262
  <farm-col cols="12" md="3">
263
263
  <farm-label>Label 4</farm-label>
@@ -35,4 +35,8 @@
35
35
  margin: 0 -#{2 * gutter('vuetify')};
36
36
  }
37
37
 
38
+ &--y-grid-gutters > .farm-col {
39
+ margin-top: 12px;
40
+ margin-bottom: 12px;
41
+ }
38
42
  }
@@ -71,3 +71,42 @@ export const Justify = () => ({
71
71
  export const NoDefaultGutters = () => ({
72
72
  template: '<farm-row :no-default-gutters="true">no gutters</farm-row>',
73
73
  });
74
+
75
+ export const DefaultGrid = () => ({
76
+ template: `<div>
77
+ <farm-row>
78
+ <farm-col md="6">
79
+ <div style="border:1px solid red;">col 1</div>
80
+ </farm-col>
81
+ <farm-col md="6">
82
+ <div style="border:1px solid red;">col 2</div>
83
+ </farm-col>
84
+ <farm-col md="6">
85
+ <div style="border:1px solid red;">col 3</div>
86
+ </farm-col>
87
+ <farm-col md="6">
88
+ <div style="border:1px solid red;">col 4</div>
89
+ </farm-col>
90
+ </farm-row>
91
+ </div>`,
92
+ });
93
+
94
+
95
+ export const yGridGutters = () => ({
96
+ template: `<div>
97
+ <farm-row y-grid-gutters>
98
+ <farm-col md="6">
99
+ <div style="border:1px solid red;">col 1</div>
100
+ </farm-col>
101
+ <farm-col md="6">
102
+ <div style="border:1px solid red;">col 2</div>
103
+ </farm-col>
104
+ <farm-col md="6">
105
+ <div style="border:1px solid red;">col 3</div>
106
+ </farm-col>
107
+ <farm-col md="6">
108
+ <div style="border:1px solid red;">col 4</div>
109
+ </farm-col>
110
+ </farm-row>
111
+ </div>`,
112
+ });
@@ -8,6 +8,7 @@
8
8
  [`farm-row--justify-${justify}`]: justify,
9
9
  'farm-row--no-default-gutters': noDefaultGutters,
10
10
  'farm-row--extra-decrease': extraDecrease,
11
+ 'farm-row--y-grid-gutters': yGridGutters,
11
12
  }"
12
13
  >
13
14
  <slot></slot>
@@ -60,6 +61,13 @@ export default Vue.extend({
60
61
  type: Boolean,
61
62
  default: false,
62
63
  },
64
+ /**
65
+ * Add gutters to farm-cols in Y axis
66
+ */
67
+ yGridGutters: {
68
+ type: Boolean,
69
+ default: false,
70
+ },
63
71
  },
64
72
  inheritAttrs: true,
65
73
  });
@@ -1,7 +1,9 @@
1
1
  .theme--light {
2
+
2
3
  .fieldset-default,
3
4
  .v-col-fieldset-default {
4
5
  border: 0;
6
+
5
7
  label {
6
8
  font-weight: bold;
7
9
  display: block;
@@ -15,49 +17,61 @@
15
17
  .v-input__append-inner {
16
18
  margin-top: 8px;
17
19
  }
20
+
18
21
  .v-input__prepend-inner {
19
22
  margin-top: 8px;
20
23
  }
21
24
  }
25
+
22
26
  .v-input__prepend-outer {
23
27
  margin-top: 8px;
24
28
  }
25
29
  }
30
+
26
31
  &.v-text-field.v-input--dense.v-text-field--outlined {
27
32
  .v-input__slot {
28
33
  min-height: 36px !important;
29
34
  height: 36px;
30
35
  background: white;
36
+
31
37
  fieldset {
32
38
  border-color: var(--v-gray-lighten2);
33
39
  }
40
+
34
41
  input,
35
42
  .v-select__selection {
36
43
  font-size: 0.75rem;
37
44
  }
45
+
38
46
  .v-input__append-inner {
39
47
  margin-top: 8px;
40
48
  }
49
+
41
50
  .v-input__prepend-inner {
42
51
  margin-top: 8px;
43
52
  }
44
53
  }
54
+
45
55
  .v-input__prepend-outer {
46
56
  margin-top: 8px;
47
57
  }
58
+
48
59
  &.v-input--is-label-active.v-input--is-focused {
49
60
  .v-input__slot fieldset {
50
61
  border-color: var(--v-secondary-base);
51
62
  }
63
+
52
64
  input {
53
65
  color: var(--v-secondary-base);
54
66
  }
55
67
  }
68
+
56
69
  &.error--text {
57
70
  .v-input__slot fieldset {
58
71
  border-color: var(--v-error-base);
59
72
  border-width: 1px;
60
73
  }
74
+
61
75
  &:after {
62
76
  content: '\F0028';
63
77
  position: absolute;
@@ -68,27 +82,46 @@
68
82
  }
69
83
  }
70
84
  }
85
+
71
86
  .v-textarea.v-text-field--enclosed .v-text-field__slot {
72
87
  textarea {
73
88
  font-size: 0.75rem;
74
89
  line-height: 1.25rem;
75
90
  }
76
91
  }
77
- .v-text-field--outlined:not(.v-input--is-focused):not(.v-input--has-state)
78
- > .v-input__control
79
- > .v-input__slot
80
- fieldset {
92
+
93
+ .v-text-field--outlined:not(.v-input--is-focused):not(.v-input--has-state)>.v-input__control>.v-input__slot fieldset {
81
94
  border-color: var(--v-gray-lighten2);
82
95
  }
83
- .v-text-field--outlined.v-input--is-focused > .v-input__control > .v-input__slot fieldset {
96
+
97
+ .v-text-field--outlined.v-input--is-focused>.v-input__control>.v-input__slot fieldset {
84
98
  border-color: var(--v-gray-lighten2);
85
99
  border-width: 1px;
86
100
  }
101
+
87
102
  .v-text-field .v-text-field__details {
88
103
  padding-left: 0 !important;
104
+ min-height: 16px !important;
105
+ margin-bottom: 0 !important;
106
+ }
107
+ }
108
+
109
+ .v-text-field {
110
+ .v-input__slot {
111
+ margin-bottom: 4px;
112
+ }
113
+
114
+ &.v-text-field--enclosed .v-text-field__details {
115
+ min-height: 16px !important;
116
+ margin-bottom: 4px !important;
117
+ }
118
+
119
+ &.v-text-field--solo .v-input__control {
120
+ min-height: 30px;
89
121
  }
90
122
  }
91
- .v-form {
123
+
124
+ .v-text-field .v-form {
92
125
  .v-col-fieldset-default {
93
126
  margin-bottom: 0;
94
127
  padding-bottom: 0;
@@ -97,57 +130,63 @@
97
130
  color: var(--v-error-base);
98
131
  }
99
132
  }
133
+
100
134
  .row.form__footer-buttons--right {
101
135
  margin: 0;
102
136
  margin-top: 1rem;
103
137
  padding: 0;
104
138
  justify-content: flex-end;
139
+
105
140
  .v-btn {
106
141
  margin-left: 1rem;
107
142
  }
108
143
  }
109
144
  }
145
+
110
146
  .v-form.v-form-importfile {
111
- > .row:first-child {
147
+ >.row:first-child {
112
148
  border-bottom: 1px solid var(--v-gray-lighten2);
113
149
  padding: 1rem;
150
+
114
151
  h3 {
115
152
  font-weight: 700;
116
153
  color: var(--v-secondary-base);
117
154
  }
118
155
  }
119
156
 
120
- > .row:nth-child(2) {
157
+ >.row:nth-child(2) {
121
158
  padding: 1rem;
159
+
122
160
  legend {
123
161
  font-weight: 700;
124
162
  width: 100%;
125
163
  }
126
164
  }
127
165
  }
166
+
128
167
  .v-form.form-custom-disabled {
129
168
  .theme--light {
130
169
  &.v-text-field.v-input--is-disabled .v-input__slot {
131
170
  padding-left: 0;
171
+
132
172
  input,
133
173
  label {
134
174
  color: var(--v-primary-base);
135
175
  font-size: 1rem !important;
136
176
  }
137
177
  }
178
+
138
179
  &.v-text-field.v-input--is-disabled .v-input__slot fieldset {
139
180
  border: none;
140
181
  }
141
182
  }
142
183
  }
143
- .v-text-field.v-text-field--solo .v-input__control {
144
- min-height: 30px;
145
- }
146
184
 
147
185
  .theme--light.v-input--switch {
148
186
  .v-input--switch__thumb {
149
187
  color: #ffffff !important;
150
188
  }
189
+
151
190
  .v-input--switch__track.theme--light {
152
191
  background: #f0643b;
153
192
 
@@ -155,6 +194,7 @@
155
194
  background-color: var(--v-secondary-base);
156
195
  }
157
196
  }
197
+
158
198
  label {
159
199
  font-size: 0.5rem;
160
200
  font-weight: 600;
@@ -167,9 +207,11 @@
167
207
  .v-form {
168
208
  .row.form__footer-buttons--right {
169
209
  justify-content: unset;
210
+
170
211
  .v-btn {
171
212
  margin-left: 0;
172
213
  }
214
+
173
215
  .v-btn:not(:first-child) {
174
216
  margin-top: 1rem;
175
217
  }
@@ -182,11 +224,13 @@
182
224
  .v-icon.v-icon {
183
225
  font-size: 22px;
184
226
  color: var(--farm-neutral-darken);
227
+
185
228
  &.mdi-checkbox-marked,
186
229
  &.mdi-minus-box {
187
230
  color: var(--farm-primary-base);
188
231
  }
189
232
  }
233
+
190
234
  .v-input--selection-controls__ripple {
191
235
  display: none;
192
236
  }
@@ -197,20 +241,24 @@
197
241
  padding: 8px 12px;
198
242
  height: 36px;
199
243
  border-bottom: none;
244
+
200
245
  &:hover {
201
246
  background-color: var(--farm-primary-lighten);
202
247
  }
203
248
  }
249
+
204
250
  .v-list-item .v-list-item__content {
205
251
  padding: 0;
206
252
  }
253
+
207
254
  .v-list-item__title {
208
255
  font-weight: 700;
209
256
  font-size: 12px;
210
257
  color: var(--farm-text-primary);
211
258
  line-height: 12px;
212
259
  }
260
+
213
261
  .v-list-item__action:first-child {
214
262
  margin-right: 16px;
215
263
  }
216
- }
264
+ }