@farm-investimentos/front-mfe-components 11.8.3 → 11.8.4
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 +146 -138
- 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 +146 -138
- 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/DialogHeader/DialogHeader.scss +0 -1
- package/src/components/DialogHeader/DialogHeader.vue +1 -1
- package/src/components/Radio/Radio.scss +2 -3
- package/src/components/Radio/Radio.stories.js +4 -0
- package/src/components/Radio/Radio.vue +12 -10
package/package.json
CHANGED
|
@@ -5,11 +5,10 @@ input[type="radio"] {
|
|
|
5
5
|
margin: 0;
|
|
6
6
|
font: inherit;
|
|
7
7
|
color: rgba(0, 0, 0, .6);
|
|
8
|
-
width:
|
|
9
|
-
height:
|
|
8
|
+
width: 24px;
|
|
9
|
+
height: 24px;
|
|
10
10
|
border: 1.5px solid rgba(0, 0, 0, .6);
|
|
11
11
|
border-radius: 50%;
|
|
12
|
-
transform: translate(-12px);
|
|
13
12
|
display: grid;
|
|
14
13
|
place-content: center;
|
|
15
14
|
cursor: pointer;
|
|
@@ -13,6 +13,10 @@ export default {
|
|
|
13
13
|
<span style="color: var(--farm-extra-1-base);">development</span>
|
|
14
14
|
`,
|
|
15
15
|
},
|
|
16
|
+
design: {
|
|
17
|
+
type: 'figma',
|
|
18
|
+
url: 'https://www.figma.com/file/p62YDSTfWg0Mcnf5APfdvI/%E2%9C%8D-Design-System-%7C-v2?node-id=4913%3A20222&t=RIUg7AZerUGMSaM9-0',
|
|
19
|
+
},
|
|
16
20
|
},
|
|
17
21
|
viewMode: 'docs',
|
|
18
22
|
},
|
|
@@ -26,22 +26,24 @@ export default Vue.extend({
|
|
|
26
26
|
/**
|
|
27
27
|
* Value to be set to v-model
|
|
28
28
|
*/
|
|
29
|
-
value: { type: String, default: undefined },
|
|
29
|
+
value: { type: [String, Number, Boolean], default: undefined },
|
|
30
30
|
},
|
|
31
31
|
computed: {
|
|
32
32
|
isChecked() {
|
|
33
33
|
return this.modelValue == this.value;
|
|
34
34
|
},
|
|
35
35
|
},
|
|
36
|
-
|
|
37
|
-
onClick
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
reset() {
|
|
43
|
-
|
|
44
|
-
}
|
|
36
|
+
setup(_, { emit }) {
|
|
37
|
+
const onClick = event => {
|
|
38
|
+
emit('change', event.target.value);
|
|
39
|
+
emit('input', event.target.value);
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
const reset = () => {
|
|
43
|
+
emit('input', null);
|
|
44
|
+
};
|
|
45
|
+
const validate = () => {};
|
|
46
|
+
return { onClick, reset, validate };
|
|
45
47
|
},
|
|
46
48
|
});
|
|
47
49
|
</script>
|