@farm-investimentos/front-mfe-components 14.0.0 → 14.0.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 +179 -130
- 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 +179 -130
- 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/layout/Col/Col.scss +42 -2
- package/src/components/layout/Col/Col.stories.js +30 -0
- package/src/components/layout/Col/Col.vue +50 -0
- package/src/components/layout/ContainerFooter/Container.stories.js +5 -0
- package/src/components/layout/ContainerFooter/ContainerFooter.scss +10 -6
- package/src/components/layout/ContainerFooter/ContainerFooter.vue +12 -1
package/package.json
CHANGED
|
@@ -24,13 +24,19 @@
|
|
|
24
24
|
flex: 0 0 (100/12 * $i)+#{"%"};
|
|
25
25
|
max-width: (100/12 * $i)+#{"%"};
|
|
26
26
|
}
|
|
27
|
-
}
|
|
28
27
|
|
|
29
|
-
@for $i from 1 through 12 {
|
|
30
28
|
.farm-col--xs-#{$i * 1} {
|
|
31
29
|
flex: 0 0 (100/12 * $i)+#{"%"};
|
|
32
30
|
max-width: (100/12 * $i)+#{"%"};
|
|
33
31
|
}
|
|
32
|
+
|
|
33
|
+
.farm-col--offset-#{$i * 1} {
|
|
34
|
+
margin-left: (100/12 * $i)+#{"%"};
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.farm-col--offset-0 {
|
|
39
|
+
margin-left: 0%;
|
|
34
40
|
}
|
|
35
41
|
|
|
36
42
|
@include fromXs {
|
|
@@ -39,6 +45,14 @@
|
|
|
39
45
|
flex: 0 0 (100/12 * $i)+#{"%"};
|
|
40
46
|
max-width: (100/12 * $i)+#{"%"};
|
|
41
47
|
}
|
|
48
|
+
|
|
49
|
+
.farm-col--offset-sm-#{$i * 1} {
|
|
50
|
+
margin-left: (100/12 * $i)+#{"%"};
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.farm-col--offset-sm-0 {
|
|
55
|
+
margin-left: 0%;
|
|
42
56
|
}
|
|
43
57
|
}
|
|
44
58
|
|
|
@@ -48,7 +62,17 @@
|
|
|
48
62
|
flex: 0 0 (100/12 * $i)+#{"%"};
|
|
49
63
|
max-width: (100/12 * $i)+#{"%"};
|
|
50
64
|
}
|
|
65
|
+
|
|
66
|
+
.farm-col--offset-md-#{$i * 1} {
|
|
67
|
+
margin-left: (100/12 * $i)+#{"%"};
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.farm-col--offset-md-0 {
|
|
73
|
+
margin-left: 0%;
|
|
51
74
|
}
|
|
75
|
+
|
|
52
76
|
}
|
|
53
77
|
|
|
54
78
|
@include fromMd {
|
|
@@ -57,6 +81,14 @@
|
|
|
57
81
|
flex: 0 0 (100/12 * $i)+#{"%"};
|
|
58
82
|
max-width: (100/12 * $i)+#{"%"};
|
|
59
83
|
}
|
|
84
|
+
|
|
85
|
+
.farm-col--offset-lg-#{$i * 1} {
|
|
86
|
+
margin-left: (100/12 * $i)+#{"%"};
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.farm-col--offset-lg-0 {
|
|
91
|
+
margin-left: 0%;
|
|
60
92
|
}
|
|
61
93
|
}
|
|
62
94
|
|
|
@@ -66,5 +98,13 @@
|
|
|
66
98
|
flex: 0 0 (100/12 * $i)+#{"%"};
|
|
67
99
|
max-width: (100/12 * $i)+#{"%"};
|
|
68
100
|
}
|
|
101
|
+
|
|
102
|
+
.farm-col--offset-xl-#{$i * 1} {
|
|
103
|
+
margin-left: (100/12 * $i)+#{"%"};
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.farm-col--offset-xl-0 {
|
|
108
|
+
margin-left: 0%;
|
|
69
109
|
}
|
|
70
110
|
}
|
|
@@ -141,4 +141,34 @@ export const AlignSelf = () => ({
|
|
|
141
141
|
<farm-row style="height: 150px">
|
|
142
142
|
<farm-col :style="style" v-for="align in aligns" :key="align" :align-self="align">{{ align }}</farm-col>
|
|
143
143
|
</farm-row>`,
|
|
144
|
+
});
|
|
145
|
+
|
|
146
|
+
export const Offsets = () => ({
|
|
147
|
+
data() {
|
|
148
|
+
return {
|
|
149
|
+
style,
|
|
150
|
+
items
|
|
151
|
+
};
|
|
152
|
+
},
|
|
153
|
+
template: `<farm-box>
|
|
154
|
+
<farm-row>
|
|
155
|
+
<farm-col :style="style" md="1" offset-md="3">offset-md 3</farm-col>
|
|
156
|
+
<farm-col :style="style" md="1" offset-md="1">offset-md 1</farm-col>
|
|
157
|
+
</farm-row>
|
|
158
|
+
<br />
|
|
159
|
+
<farm-row>
|
|
160
|
+
<farm-col :style="style" md="1" offset-sm="1">offset-sm 1</farm-col>
|
|
161
|
+
<farm-col :style="style" md="1" offset-sm="4">offset-sm 4</farm-col>
|
|
162
|
+
<farm-col :style="style" md="1" offset-sm="2">offset-sm 2</farm-col>
|
|
163
|
+
</farm-row>
|
|
164
|
+
<br />
|
|
165
|
+
<farm-row>
|
|
166
|
+
<farm-col :style="style" md="1" offset-sm="1" offset-md="3">offset-sm 1 md 3</farm-col>
|
|
167
|
+
</farm-row>
|
|
168
|
+
<br />
|
|
169
|
+
<farm-row>
|
|
170
|
+
<farm-col :style="style" md="1" offset="1">offset 1</farm-col>
|
|
171
|
+
<farm-col :style="style" md="1" offset="1" offset-md="0">offset md 0</farm-col>
|
|
172
|
+
</farm-row>
|
|
173
|
+
</farm-box>`,
|
|
144
174
|
});
|
|
@@ -11,6 +11,11 @@
|
|
|
11
11
|
[`farm-col--xs-${xs}`]: xs,
|
|
12
12
|
[`farm-col--cols-${cols}`]: cols,
|
|
13
13
|
'farm-col--no-gutters': noGutters,
|
|
14
|
+
[`farm-col--offset-${offset}`]: offset,
|
|
15
|
+
[`farm-col--offset-xl-${offsetXl}`]: offsetXl,
|
|
16
|
+
[`farm-col--offset-lg-${offsetLg}`]: offsetLg,
|
|
17
|
+
[`farm-col--offset-md-${offsetMd}`]: offsetMd,
|
|
18
|
+
[`farm-col--offset-sm-${offsetSm}`]: offsetSm,
|
|
14
19
|
}"
|
|
15
20
|
>
|
|
16
21
|
<slot></slot>
|
|
@@ -82,6 +87,51 @@ export default Vue.extend({
|
|
|
82
87
|
type: String as PropType<'start' | 'center' | 'end' | 'auto' | 'baseline' | 'stretch'>,
|
|
83
88
|
default: '',
|
|
84
89
|
},
|
|
90
|
+
/**
|
|
91
|
+
* Sets the default offset for the column.
|
|
92
|
+
*/
|
|
93
|
+
offset: {
|
|
94
|
+
type: [String, Number] as PropType<
|
|
95
|
+
0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12
|
|
96
|
+
>,
|
|
97
|
+
default: null,
|
|
98
|
+
},
|
|
99
|
+
/**
|
|
100
|
+
* Changes the offset of the component on extra large and greater breakpoints.
|
|
101
|
+
*/
|
|
102
|
+
offsetXl: {
|
|
103
|
+
type: [String, Number] as PropType<
|
|
104
|
+
0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12
|
|
105
|
+
>,
|
|
106
|
+
default: null,
|
|
107
|
+
},
|
|
108
|
+
/**
|
|
109
|
+
* Changes the offset of the component on large and greater breakpoints.
|
|
110
|
+
*/
|
|
111
|
+
offsetLg: {
|
|
112
|
+
type: [String, Number] as PropType<
|
|
113
|
+
0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12
|
|
114
|
+
>,
|
|
115
|
+
default: null,
|
|
116
|
+
},
|
|
117
|
+
/**
|
|
118
|
+
* Changes the offset of the component on medium and greater breakpoints.
|
|
119
|
+
*/
|
|
120
|
+
offsetMd: {
|
|
121
|
+
type: [String, Number] as PropType<
|
|
122
|
+
0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12
|
|
123
|
+
>,
|
|
124
|
+
default: null,
|
|
125
|
+
},
|
|
126
|
+
/**
|
|
127
|
+
* Changes the offset of the component on small and greater breakpoints.
|
|
128
|
+
*/
|
|
129
|
+
offsetSm: {
|
|
130
|
+
type: [String, Number] as PropType<
|
|
131
|
+
0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12
|
|
132
|
+
>,
|
|
133
|
+
default: null,
|
|
134
|
+
},
|
|
85
135
|
},
|
|
86
136
|
inheritAttrs: true,
|
|
87
137
|
});
|
|
@@ -21,4 +21,9 @@ export const Primary = () => ({
|
|
|
21
21
|
template: '<farm-container-footer>Footer content</farm-container-footer>',
|
|
22
22
|
});
|
|
23
23
|
|
|
24
|
+
export const noTop = () => ({
|
|
25
|
+
components: { 'farm-container-footer': ContainerFooter },
|
|
26
|
+
template: '<farm-container-footer noTop>Footer content</farm-container-footer>',
|
|
27
|
+
});
|
|
28
|
+
|
|
24
29
|
Primary.storyName = 'Basic';
|
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
@import '../../../configurations/functions';
|
|
2
2
|
|
|
3
3
|
.farm-container-footer {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
4
|
+
width: 100%;
|
|
5
|
+
padding: gutter('lg');
|
|
6
|
+
padding-bottom: 0;
|
|
7
|
+
border-top: 1px solid var(--farm-stroke-base);
|
|
8
|
+
margin-top: gutter('lg');
|
|
9
|
+
|
|
10
|
+
&.farm-container-footer--notop {
|
|
11
|
+
margin-top: gutter('none');
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<footer
|
|
2
|
+
<footer
|
|
3
|
+
:class="{
|
|
4
|
+
'farm-container-footer': true,
|
|
5
|
+
'farm-container-footer--notop': noTop,
|
|
6
|
+
}"
|
|
7
|
+
>
|
|
3
8
|
<slot></slot>
|
|
4
9
|
</footer>
|
|
5
10
|
</template>
|
|
@@ -8,6 +13,12 @@ import Vue from 'vue';
|
|
|
8
13
|
|
|
9
14
|
export default Vue.extend({
|
|
10
15
|
name: 'farm-container-footer',
|
|
16
|
+
props: {
|
|
17
|
+
noTop: {
|
|
18
|
+
type: Boolean,
|
|
19
|
+
default: false,
|
|
20
|
+
},
|
|
21
|
+
},
|
|
11
22
|
inheritAttrs: true,
|
|
12
23
|
});
|
|
13
24
|
</script>
|