@farm-investimentos/front-mfe-components 7.3.2 → 7.4.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.
- package/dist/front-mfe-components.common.js +186 -42
- 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 +186 -42
- 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/Container/Container.scss +29 -0
- package/src/components/layout/Container/Container.stories.js +23 -0
- package/src/components/layout/Container/Container.vue +18 -0
- package/src/components/layout/Container/index.ts +4 -0
- package/src/components/layout/ContainerFooter/Container.stories.js +23 -0
- package/src/components/layout/ContainerFooter/ContainerFooter.scss +6 -0
- package/src/components/layout/ContainerFooter/ContainerFooter.vue +16 -0
- package/src/components/layout/ContainerFooter/index.ts +4 -0
- package/src/main.ts +3 -0
package/package.json
CHANGED
|
@@ -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,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,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>
|
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';
|