@farm-investimentos/front-mfe-components 7.3.2 → 7.4.2

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": "7.3.2",
3
+ "version": "7.4.2",
4
4
  "author": "farm investimentos",
5
5
  "private": false,
6
6
  "main": "./dist/front-mfe-components.common.js",
@@ -6,8 +6,10 @@ section {
6
6
  margin-left: 1rem;
7
7
  }
8
8
 
9
- label .farm-icon {
10
- vertical-align: middle;
9
+ .filter-label {
10
+ align-items: flex-end;
11
+ display: flex;
12
+ height: 1.56rem;
11
13
  }
12
14
  }
13
15
 
@@ -21,4 +23,4 @@ section {
21
23
  margin-top: 0 !important;
22
24
  }
23
25
  }
24
- }
26
+ }
@@ -1,9 +1,8 @@
1
1
  <template>
2
2
  <section :class="{ 'justify-end': justifyEnd === true }">
3
3
  <fieldset class="fieldset-default" v-if="hasInitialInput">
4
- <label :for="elementId">
4
+ <label class="filter-label" :for="elementId">
5
5
  {{ label }}
6
- <farm-icon color="gray"> file-find </farm-icon>
7
6
  </label>
8
7
  <v-text-field
9
8
  color="secondary"
@@ -0,0 +1,29 @@
1
+ .farm-container {
2
+ width: 100%;
3
+ padding: 12px;
4
+ margin-right: auto;
5
+ margin-left: auto;
6
+ max-width: 100%;
7
+
8
+ >div {
9
+ background-color: white;
10
+ border-radius: 8px;
11
+ max-width: calc(100% - 32px);
12
+ margin: 16px auto;
13
+ padding: 12px;
14
+
15
+ // deprecated
16
+ .container-main__footer-buttons-right {
17
+ margin: 0;
18
+ margin-top: 1rem;
19
+ padding: 0;
20
+ justify-content: flex-end;
21
+
22
+ .v-btn {
23
+ margin-left: 1rem;
24
+ }
25
+ }
26
+
27
+ min-height: 128px;
28
+ }
29
+ }
@@ -0,0 +1,23 @@
1
+ import Container from './Container.vue';
2
+
3
+ export default {
4
+ title: 'Layout/Container',
5
+ component: Container,
6
+ parameters: {
7
+ docs: {
8
+ description: {
9
+ component: `Container<br />
10
+ selector: <em>farm-container</em>
11
+ `,
12
+ },
13
+ },
14
+ viewMode: 'docs',
15
+ },
16
+ };
17
+
18
+ export const Primary = () => ({
19
+ components: { 'farm-container': Container },
20
+ template: '<farm-container>content</farm-container>',
21
+ });
22
+
23
+ Primary.storyName = 'Basic';
@@ -0,0 +1,18 @@
1
+ <template>
2
+ <section class="farm-container">
3
+ <div class="elevation-2">
4
+ <slot></slot>
5
+ </div>
6
+ </section>
7
+ </template>
8
+ <script lang="ts">
9
+ import Vue from 'vue';
10
+
11
+ export default Vue.extend({
12
+ name: 'farm-container',
13
+ inheritAttrs: true,
14
+ });
15
+ </script>
16
+ <style lang="scss" scoped>
17
+ @import 'Container.scss';
18
+ </style>
@@ -0,0 +1,4 @@
1
+ import Container from './Container.vue';
2
+
3
+ export { Container };
4
+ export default Container;
@@ -0,0 +1,23 @@
1
+ import ContainerFooter from './ContainerFooter.vue';
2
+
3
+ export default {
4
+ title: 'Layout/ContainerFooter',
5
+ component: ContainerFooter,
6
+ parameters: {
7
+ docs: {
8
+ description: {
9
+ component: `Container Footer<br />
10
+ selector: <em>farm-container-footer</em>
11
+ `,
12
+ },
13
+ },
14
+ viewMode: 'docs',
15
+ },
16
+ };
17
+
18
+ export const Primary = () => ({
19
+ components: { 'farm-container-footer': ContainerFooter },
20
+ template: '<farm-container-footer>Footer content</farm-container-footer>',
21
+ });
22
+
23
+ Primary.storyName = 'Basic';
@@ -0,0 +1,6 @@
1
+ .farm-container-footer {
2
+ width: 100%;
3
+ padding: 24px 32px;
4
+ border-top: 1px solid var(--v-gray-lighten2);
5
+ margin-top: 12px;
6
+ }
@@ -0,0 +1,16 @@
1
+ <template>
2
+ <footer class="farm-container-footer">
3
+ <slot></slot>
4
+ </footer>
5
+ </template>
6
+ <script lang="ts">
7
+ import Vue from 'vue';
8
+
9
+ export default Vue.extend({
10
+ name: 'farm-container-footer',
11
+ inheritAttrs: true,
12
+ });
13
+ </script>
14
+ <style lang="scss" scoped>
15
+ @import 'ContainerFooter.scss';
16
+ </style>
@@ -0,0 +1,4 @@
1
+ import ContainerFooter from './ContainerFooter.vue';
2
+
3
+ export { ContainerFooter };
4
+ export default ContainerFooter;
package/src/main.ts CHANGED
@@ -69,3 +69,6 @@ export * from './components/ProgressBar';
69
69
  export * from './components/Stepper';
70
70
  export * from './components/Switcher';
71
71
  export * from './components/TextField';
72
+
73
+ export * from './components/layout/Container';
74
+ export * from './components/layout/ContainerFooter';