@dataloop-ai/components 0.16.1 → 0.16.2

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": "@dataloop-ai/components",
3
- "version": "0.16.1",
3
+ "version": "0.16.2",
4
4
  "exports": {
5
5
  ".": "./index.ts",
6
6
  "./models": "./models.ts",
@@ -27,7 +27,8 @@ export default defineComponent({
27
27
  },
28
28
  size: {
29
29
  type: String,
30
- default: 'body'
30
+ required: false,
31
+ default: null
31
32
  },
32
33
  uppercase: Boolean,
33
34
  bold: Boolean,
@@ -49,7 +50,11 @@ export default defineComponent({
49
50
  fontWeight: this.bold ? 'bold' : 400
50
51
  }
51
52
 
52
- if (!sizes.includes(this.size)) {
53
+ if (!this.size) {
54
+ if (sizes.includes(this.variant)) {
55
+ styles.fontSize = this.variant as string
56
+ }
57
+ } else {
53
58
  styles.fontSize = this.size as string
54
59
  }
55
60