@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@farm-investimentos/front-mfe-components",
3
- "version": "11.8.3",
3
+ "version": "11.8.4",
4
4
  "author": "farm investimentos",
5
5
  "private": false,
6
6
  "main": "./dist/front-mfe-components.common.js",
@@ -1,6 +1,5 @@
1
1
  .farm-dialog-header__close {
2
2
  position: absolute;
3
- right: 16px;
4
3
  margin-top: 0;
5
4
  font-size: 16px;
6
5
 
@@ -15,7 +15,7 @@
15
15
  title="Fechar"
16
16
  @click="onClose"
17
17
  >
18
- <farm-icon role="button"> close-thick </farm-icon>
18
+ <farm-icon role="button" size="md"> window-close </farm-icon>
19
19
  </farm-btn>
20
20
  </header>
21
21
  </template>
@@ -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: 18px;
9
- height: 18px;
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
- methods: {
37
- onClick(event) {
38
- this.$emit('change', event.target.value);
39
- this.$emit('input', event.target.value);
40
- },
41
- validate() {},
42
- reset() {
43
- this.$emit('input', null);
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>