@farm-investimentos/front-mfe-components 14.0.0 → 14.1.0

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.
@@ -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
- 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
- }
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 class="farm-container-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>