@farm-investimentos/front-mfe-components 11.6.0 → 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/dist/front-mfe-components.common.js +98 -106
- package/dist/front-mfe-components.common.js.map +1 -1
- package/dist/front-mfe-components.css +1 -1
- package/dist/front-mfe-components.umd.js +98 -106
- package/dist/front-mfe-components.umd.js.map +1 -1
- package/dist/front-mfe-components.umd.min.js +1 -1
- package/dist/front-mfe-components.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/src/components/Form/Form.stories.js +1 -1
- package/src/components/layout/Row/Row.scss +0 -6
- package/src/components/layout/Row/Row.stories.js +0 -31
- package/src/components/layout/Row/Row.vue +0 -8
- package/src/scss/FormOverrides.scss +60 -13
package/package.json
CHANGED
|
@@ -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>
|
|
@@ -110,34 +110,3 @@ export const yGridGutters = () => ({
|
|
|
110
110
|
</farm-row>
|
|
111
111
|
</div>`,
|
|
112
112
|
});
|
|
113
|
-
|
|
114
|
-
export const yFormGutters = () => ({
|
|
115
|
-
template: `<div>
|
|
116
|
-
<farm-row y-form-gutters>
|
|
117
|
-
<farm-col md="6">
|
|
118
|
-
<div style="border:1px solid red;">
|
|
119
|
-
<farm-label>label 1</farm-label>
|
|
120
|
-
<farm-textfield />
|
|
121
|
-
</div>
|
|
122
|
-
</farm-col>
|
|
123
|
-
<farm-col md="6">
|
|
124
|
-
<div style="border:1px solid red;">
|
|
125
|
-
<farm-label>label 2</farm-label>
|
|
126
|
-
<farm-textfield />
|
|
127
|
-
</div>
|
|
128
|
-
</farm-col>
|
|
129
|
-
<farm-col md="6">
|
|
130
|
-
<div style="border:1px solid red;">
|
|
131
|
-
<farm-label>label 3</farm-label>
|
|
132
|
-
<farm-textfield hint="some hint text" persistent-hint />
|
|
133
|
-
</div>
|
|
134
|
-
</farm-col>
|
|
135
|
-
<farm-col md="6">
|
|
136
|
-
<div style="border:1px solid red;">
|
|
137
|
-
<farm-label>label 4</farm-label>
|
|
138
|
-
<farm-textfield />
|
|
139
|
-
</div>
|
|
140
|
-
</farm-col>
|
|
141
|
-
</farm-row>
|
|
142
|
-
</div>`,
|
|
143
|
-
});
|
|
@@ -9,7 +9,6 @@
|
|
|
9
9
|
'farm-row--no-default-gutters': noDefaultGutters,
|
|
10
10
|
'farm-row--extra-decrease': extraDecrease,
|
|
11
11
|
'farm-row--y-grid-gutters': yGridGutters,
|
|
12
|
-
'farm-row--y-form-gutters': yFormGutters,
|
|
13
12
|
}"
|
|
14
13
|
>
|
|
15
14
|
<slot></slot>
|
|
@@ -69,13 +68,6 @@ export default Vue.extend({
|
|
|
69
68
|
type: Boolean,
|
|
70
69
|
default: false,
|
|
71
70
|
},
|
|
72
|
-
/**
|
|
73
|
-
* Add proper gutters to farm-cols in Y axis to be used with form elements
|
|
74
|
-
*/
|
|
75
|
-
yFormGutters: {
|
|
76
|
-
type: Boolean,
|
|
77
|
-
default: false,
|
|
78
|
-
},
|
|
79
71
|
},
|
|
80
72
|
inheritAttrs: true,
|
|
81
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,28 +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
|
-
|
|
78
|
-
|
|
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
|
-
|
|
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;
|
|
89
|
-
min-height: 16px;
|
|
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;
|
|
90
121
|
}
|
|
91
122
|
}
|
|
92
|
-
|
|
123
|
+
|
|
124
|
+
.v-text-field .v-form {
|
|
93
125
|
.v-col-fieldset-default {
|
|
94
126
|
margin-bottom: 0;
|
|
95
127
|
padding-bottom: 0;
|
|
@@ -98,57 +130,63 @@
|
|
|
98
130
|
color: var(--v-error-base);
|
|
99
131
|
}
|
|
100
132
|
}
|
|
133
|
+
|
|
101
134
|
.row.form__footer-buttons--right {
|
|
102
135
|
margin: 0;
|
|
103
136
|
margin-top: 1rem;
|
|
104
137
|
padding: 0;
|
|
105
138
|
justify-content: flex-end;
|
|
139
|
+
|
|
106
140
|
.v-btn {
|
|
107
141
|
margin-left: 1rem;
|
|
108
142
|
}
|
|
109
143
|
}
|
|
110
144
|
}
|
|
145
|
+
|
|
111
146
|
.v-form.v-form-importfile {
|
|
112
|
-
|
|
147
|
+
>.row:first-child {
|
|
113
148
|
border-bottom: 1px solid var(--v-gray-lighten2);
|
|
114
149
|
padding: 1rem;
|
|
150
|
+
|
|
115
151
|
h3 {
|
|
116
152
|
font-weight: 700;
|
|
117
153
|
color: var(--v-secondary-base);
|
|
118
154
|
}
|
|
119
155
|
}
|
|
120
156
|
|
|
121
|
-
|
|
157
|
+
>.row:nth-child(2) {
|
|
122
158
|
padding: 1rem;
|
|
159
|
+
|
|
123
160
|
legend {
|
|
124
161
|
font-weight: 700;
|
|
125
162
|
width: 100%;
|
|
126
163
|
}
|
|
127
164
|
}
|
|
128
165
|
}
|
|
166
|
+
|
|
129
167
|
.v-form.form-custom-disabled {
|
|
130
168
|
.theme--light {
|
|
131
169
|
&.v-text-field.v-input--is-disabled .v-input__slot {
|
|
132
170
|
padding-left: 0;
|
|
171
|
+
|
|
133
172
|
input,
|
|
134
173
|
label {
|
|
135
174
|
color: var(--v-primary-base);
|
|
136
175
|
font-size: 1rem !important;
|
|
137
176
|
}
|
|
138
177
|
}
|
|
178
|
+
|
|
139
179
|
&.v-text-field.v-input--is-disabled .v-input__slot fieldset {
|
|
140
180
|
border: none;
|
|
141
181
|
}
|
|
142
182
|
}
|
|
143
183
|
}
|
|
144
|
-
.v-text-field.v-text-field--solo .v-input__control {
|
|
145
|
-
min-height: 30px;
|
|
146
|
-
}
|
|
147
184
|
|
|
148
185
|
.theme--light.v-input--switch {
|
|
149
186
|
.v-input--switch__thumb {
|
|
150
187
|
color: #ffffff !important;
|
|
151
188
|
}
|
|
189
|
+
|
|
152
190
|
.v-input--switch__track.theme--light {
|
|
153
191
|
background: #f0643b;
|
|
154
192
|
|
|
@@ -156,6 +194,7 @@
|
|
|
156
194
|
background-color: var(--v-secondary-base);
|
|
157
195
|
}
|
|
158
196
|
}
|
|
197
|
+
|
|
159
198
|
label {
|
|
160
199
|
font-size: 0.5rem;
|
|
161
200
|
font-weight: 600;
|
|
@@ -168,9 +207,11 @@
|
|
|
168
207
|
.v-form {
|
|
169
208
|
.row.form__footer-buttons--right {
|
|
170
209
|
justify-content: unset;
|
|
210
|
+
|
|
171
211
|
.v-btn {
|
|
172
212
|
margin-left: 0;
|
|
173
213
|
}
|
|
214
|
+
|
|
174
215
|
.v-btn:not(:first-child) {
|
|
175
216
|
margin-top: 1rem;
|
|
176
217
|
}
|
|
@@ -183,11 +224,13 @@
|
|
|
183
224
|
.v-icon.v-icon {
|
|
184
225
|
font-size: 22px;
|
|
185
226
|
color: var(--farm-neutral-darken);
|
|
227
|
+
|
|
186
228
|
&.mdi-checkbox-marked,
|
|
187
229
|
&.mdi-minus-box {
|
|
188
230
|
color: var(--farm-primary-base);
|
|
189
231
|
}
|
|
190
232
|
}
|
|
233
|
+
|
|
191
234
|
.v-input--selection-controls__ripple {
|
|
192
235
|
display: none;
|
|
193
236
|
}
|
|
@@ -198,20 +241,24 @@
|
|
|
198
241
|
padding: 8px 12px;
|
|
199
242
|
height: 36px;
|
|
200
243
|
border-bottom: none;
|
|
244
|
+
|
|
201
245
|
&:hover {
|
|
202
246
|
background-color: var(--farm-primary-lighten);
|
|
203
247
|
}
|
|
204
248
|
}
|
|
249
|
+
|
|
205
250
|
.v-list-item .v-list-item__content {
|
|
206
251
|
padding: 0;
|
|
207
252
|
}
|
|
253
|
+
|
|
208
254
|
.v-list-item__title {
|
|
209
255
|
font-weight: 700;
|
|
210
256
|
font-size: 12px;
|
|
211
257
|
color: var(--farm-text-primary);
|
|
212
258
|
line-height: 12px;
|
|
213
259
|
}
|
|
260
|
+
|
|
214
261
|
.v-list-item__action:first-child {
|
|
215
262
|
margin-right: 16px;
|
|
216
263
|
}
|
|
217
|
-
}
|
|
264
|
+
}
|