@farm-investimentos/front-mfe-components 15.3.0 → 15.3.1

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": "15.3.0",
3
+ "version": "15.3.1",
4
4
  "author": "farm investimentos",
5
5
  "private": false,
6
6
  "main": "./dist/front-mfe-components.common.js",
@@ -62,7 +62,8 @@
62
62
  }
63
63
  }
64
64
 
65
- .farm-textfield--touched.farm-textfield--validatable {
65
+
66
+ .farm-textfield--touched.farm-textfield--blured.farm-textfield--validatable {
66
67
  &.farm-textfield--error {
67
68
  .farm-textfield {
68
69
  &--input {
@@ -186,7 +186,7 @@ export default defineComponent({
186
186
  });
187
187
  const customId = 'farm-textfield-' + (props.id || randomId(2));
188
188
 
189
- const showErrorText = computed(() => hasError.value && isTouched.value);
189
+ const showErrorText = computed(() => hasError.value && isTouched.value && isBlured.value);
190
190
 
191
191
  watch(
192
192
  () => props.value,
@@ -43,6 +43,8 @@ export default defineComponent({
43
43
  | 'label'
44
44
  | 'li'
45
45
  | 'div'
46
+ | 'dd'
47
+ | 'dt'
46
48
  >,
47
49
  default: 'p',
48
50
  },
@@ -104,7 +106,7 @@ export default defineComponent({
104
106
  setup(props) {
105
107
  const { size, lineHeight } = toRefs(props);
106
108
 
107
- let style = ref({});
109
+ let style = ref({} as { fontSize: string; lineHeight: string });
108
110
  let tag = ref(typographyHtmlTags.includes(props.tag) ? props.tag : 'p');
109
111
 
110
112
  const isSizeFromBreakpoints = computed(() => breakPoints.includes(size.value));
@@ -1 +1,16 @@
1
- export default ['p', 'span', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'legend', 'label', 'li', 'div'];
1
+ export default [
2
+ 'p',
3
+ 'span',
4
+ 'h1',
5
+ 'h2',
6
+ 'h3',
7
+ 'h4',
8
+ 'h5',
9
+ 'h6',
10
+ 'legend',
11
+ 'label',
12
+ 'li',
13
+ 'div',
14
+ 'dd',
15
+ 'dt',
16
+ ];