@farm-investimentos/front-mfe-components 9.4.0 → 10.0.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 +3787 -3383
- 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 +3787 -3383
- 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/Card/Card.vue +1 -1
- package/src/components/Card/CardContent/CardContent.vue +1 -1
- package/src/components/Checkbox/Checkbox.vue +6 -1
- package/src/components/Chip/Chip.stories.js +11 -0
- package/src/components/CopyToClipboard/__tests__/CopyToClipboard.spec.js +5 -1
- package/src/components/DatePicker/DatePicker.vue +0 -2
- package/src/components/Form/Form.stories.js +29 -4
- package/src/components/Icon/Icon.stories.js +3 -1
- package/src/components/List/List.scss +0 -0
- package/src/components/List/List.stories.js +29 -0
- package/src/components/List/List.vue +17 -0
- package/src/components/List/__tests__/List.spec.js +20 -0
- package/src/components/List/index.ts +4 -0
- package/src/components/ListItem/ListItem.scss +37 -0
- package/src/components/ListItem/ListItem.stories.js +70 -0
- package/src/components/ListItem/ListItem.vue +82 -0
- package/src/components/ListItem/__tests__/ListItem.spec.js +20 -0
- package/src/components/ListItem/index.ts +4 -0
- package/src/components/Logger/Logger.vue +5 -7
- package/src/components/Modal/Modal.scss +1 -0
- package/src/components/Modal/Modal.stories.js +2 -2
- package/src/components/ModalPromptUser/ModalPromptUser.scss +3 -0
- package/src/components/ModalPromptUser/ModalPromptUser.stories.js +7 -6
- package/src/components/ModalPromptUser/ModalPromptUser.vue +18 -17
- package/src/components/PromptUserToConfirm/PromptUserToConfirm.vue +2 -2
- package/src/components/RadioGroup/RadioGroup.scss +46 -20
- package/src/components/RadioGroup/RadioGroup.stories.js +69 -8
- package/src/components/RadioGroup/RadioGroup.vue +68 -46
- package/src/components/TableContextMenu/TableContextMenu.scss +5 -2
- package/src/components/TableContextMenu/TableContextMenu.stories.js +21 -4
- package/src/components/TableContextMenu/TableContextMenu.vue +6 -7
- package/src/components/TextField/__tests__/{Label.spec.js → TextField.spec.js} +0 -0
- package/src/components/layout/Col/Col.scss +5 -0
- package/src/components/layout/Col/Col.stories.js +42 -0
- package/src/components/layout/Col/Col.vue +62 -0
- package/src/components/layout/Col/__tests__/Col.spec.js +22 -0
- package/src/components/layout/Col/index.ts +4 -0
- package/src/components/layout/Container/Container.scss +7 -3
- package/src/components/layout/Container/Container.stories.js +2 -1
- package/src/components/layout/ContainerFooter/ContainerFooter.scss +6 -3
- package/src/components/layout/Row/Row.scss +25 -1
- package/src/components/layout/Row/Row.stories.js +48 -3
- package/src/components/layout/Row/Row.vue +24 -1
- package/src/configurations/_variables.scss +2 -2
- package/src/examples/Container/Basic.stories.js +20 -4
- package/src/main.ts +4 -0
|
@@ -7,8 +7,8 @@ export default {
|
|
|
7
7
|
docs: {
|
|
8
8
|
description: {
|
|
9
9
|
component: `Row<br />
|
|
10
|
-
selector: <em>farm-row</em
|
|
11
|
-
<span style="color:
|
|
10
|
+
selector: <em>farm-row</em><br />
|
|
11
|
+
<span style="color: var(--farm-extra-1-base);">development</span>
|
|
12
12
|
`,
|
|
13
13
|
},
|
|
14
14
|
},
|
|
@@ -20,4 +20,49 @@ export const Primary = () => ({
|
|
|
20
20
|
template: '<farm-row>row content</farm-row>',
|
|
21
21
|
});
|
|
22
22
|
|
|
23
|
-
|
|
23
|
+
export const Align = () => ({
|
|
24
|
+
data() {
|
|
25
|
+
return {
|
|
26
|
+
aligns: ['start', 'center', 'end', 'baseline', 'stretch'],
|
|
27
|
+
};
|
|
28
|
+
},
|
|
29
|
+
template: `<div>
|
|
30
|
+
<farm-row :align="align" v-for="align in aligns" :key="'align_' + align">
|
|
31
|
+
<v-col md="6">
|
|
32
|
+
row align
|
|
33
|
+
{{ align }}
|
|
34
|
+
</v-col>
|
|
35
|
+
</farm-row>
|
|
36
|
+
</div>`,
|
|
37
|
+
});
|
|
38
|
+
|
|
39
|
+
export const AlignContent = () => ({
|
|
40
|
+
data() {
|
|
41
|
+
return {
|
|
42
|
+
aligns: ['start', 'center', 'end', 'space-between', 'space-around', 'stretch'],
|
|
43
|
+
};
|
|
44
|
+
},
|
|
45
|
+
template: `<div>
|
|
46
|
+
<farm-row :align-content="align" v-for="align in aligns" :key="'align-content-_' + align">
|
|
47
|
+
<v-col md="6">
|
|
48
|
+
row align-content
|
|
49
|
+
{{ align }}
|
|
50
|
+
</v-col>
|
|
51
|
+
</farm-row>
|
|
52
|
+
</div>`,
|
|
53
|
+
});
|
|
54
|
+
|
|
55
|
+
export const Justify = () => ({
|
|
56
|
+
data() {
|
|
57
|
+
return {
|
|
58
|
+
justifications: ['start', 'center', 'end', 'space-between', 'space-around'],
|
|
59
|
+
};
|
|
60
|
+
},
|
|
61
|
+
template: `<div>
|
|
62
|
+
<farm-row :justify="k" v-for="k in justifications" :key="'justify-_' + k">
|
|
63
|
+
<v-col md="6">
|
|
64
|
+
row justify {{ k }}
|
|
65
|
+
</v-col>
|
|
66
|
+
</farm-row>
|
|
67
|
+
</div>`,
|
|
68
|
+
});
|
|
@@ -1,10 +1,19 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<component
|
|
2
|
+
<component
|
|
3
|
+
:is="tag"
|
|
4
|
+
:class="{
|
|
5
|
+
'farm-row': true,
|
|
6
|
+
[`farm-row--align-${align}`]: align,
|
|
7
|
+
[`farm-row--align-content-${alignContent}`]: alignContent,
|
|
8
|
+
[`farm-row--justify-${justify}`]: justify,
|
|
9
|
+
}"
|
|
10
|
+
>
|
|
3
11
|
<slot></slot>
|
|
4
12
|
</component>
|
|
5
13
|
</template>
|
|
6
14
|
<script lang="ts">
|
|
7
15
|
import Vue from 'vue';
|
|
16
|
+
import { PropType } from 'vue/types/v3-component-props';
|
|
8
17
|
|
|
9
18
|
export default Vue.extend({
|
|
10
19
|
name: 'farm-row',
|
|
@@ -13,6 +22,20 @@ export default Vue.extend({
|
|
|
13
22
|
* Html tag
|
|
14
23
|
*/
|
|
15
24
|
tag: { type: String, default: 'div' },
|
|
25
|
+
align: {
|
|
26
|
+
type: String as PropType<'start' | 'center' | 'end' | 'baseline' | 'stretch'>,
|
|
27
|
+
default: '',
|
|
28
|
+
},
|
|
29
|
+
alignContent: {
|
|
30
|
+
type: String as PropType<
|
|
31
|
+
'start' | 'center' | 'end' | 'space-between' | 'space-around' | 'stretch'
|
|
32
|
+
>,
|
|
33
|
+
default: '',
|
|
34
|
+
},
|
|
35
|
+
justify: {
|
|
36
|
+
type: String as PropType<'start' | 'center' | 'end' | 'space-between' | 'space-around'>,
|
|
37
|
+
default: '',
|
|
38
|
+
},
|
|
16
39
|
},
|
|
17
40
|
inheritAttrs: true,
|
|
18
41
|
});
|
|
@@ -17,10 +17,26 @@ export const Primary = () => ({
|
|
|
17
17
|
export const Secondary = () => ({
|
|
18
18
|
template: `
|
|
19
19
|
<farm-container>
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
20
|
+
<div>
|
|
21
|
+
Content<br />
|
|
22
|
+
Content<br />
|
|
23
|
+
Content<br />
|
|
24
|
+
Content<br />
|
|
25
|
+
Content<br />
|
|
26
|
+
</div>
|
|
27
|
+
<farm-row>
|
|
28
|
+
<v-col md="6">
|
|
29
|
+
coluna 1
|
|
30
|
+
</v-col>
|
|
31
|
+
<v-col md="6">
|
|
32
|
+
coluna 2
|
|
33
|
+
</v-col>
|
|
34
|
+
</farm-row>
|
|
35
|
+
<farm-row>
|
|
36
|
+
<farm-container-footer>
|
|
37
|
+
Footer content
|
|
38
|
+
</farm-container-footer>
|
|
39
|
+
</farm-row>
|
|
24
40
|
</farm-container>
|
|
25
41
|
`,
|
|
26
42
|
});
|
package/src/main.ts
CHANGED
|
@@ -71,6 +71,8 @@ export * from './components/SelectModalOptions';
|
|
|
71
71
|
export * from './components/ChipInviteStatus';
|
|
72
72
|
export * from './components/Form';
|
|
73
73
|
export * from './components/Label';
|
|
74
|
+
export * from './components/List';
|
|
75
|
+
export * from './components/ListItem';
|
|
74
76
|
export * from './components/Logger';
|
|
75
77
|
export * from './components/Logger/LoggerItem';
|
|
76
78
|
export * from './components/Icon';
|
|
@@ -83,7 +85,9 @@ export * from './components/TextField';
|
|
|
83
85
|
export * from './components/Tooltip';
|
|
84
86
|
export * from './components/Typography';
|
|
85
87
|
|
|
88
|
+
export * from './components/layout/Col';
|
|
86
89
|
export * from './components/layout/Container';
|
|
87
90
|
export * from './components/layout/ContainerFooter';
|
|
88
91
|
export * from './components/layout/Row';
|
|
89
92
|
export * from './components/layout/Line';
|
|
93
|
+
|