@dataloop-ai/components 0.16.1 → 0.16.3

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.3",
4
4
  "exports": {
5
5
  ".": "./index.ts",
6
6
  "./models": "./models.ts",
@@ -21,7 +21,7 @@
21
21
  "check-only": "if grep -E -H -r --exclude-dir=.git --exclude-dir=node_modules --exclude=*.json --exclude=*.yml '^(describe|it).only' .; then echo 'Found only in test files' && exit 1; fi"
22
22
  },
23
23
  "dependencies": {
24
- "@dataloop-ai/icons": "^2.0.13",
24
+ "@dataloop-ai/icons": "^3.0.5",
25
25
  "@types/lodash": "^4.14.184",
26
26
  "chart.js": "^3.9.1",
27
27
  "lodash": "^4.17.21",
@@ -128,7 +128,7 @@ export default defineComponent({
128
128
  try {
129
129
  svgElement.src = this.svgSource
130
130
  ? `${this.svgSource}/${this.icon}.svg`
131
- : require(`@dataloop-ai/icons/docs/assets/${this.icon}.svg`)
131
+ : require(`@dataloop-ai/icons/assets/${this.icon}.svg`)
132
132
  } catch (e) {
133
133
  reject(e)
134
134
  }
@@ -7,7 +7,7 @@
7
7
  <script lang="ts">
8
8
  import { defineComponent, onMounted, watch, provide, ref } from 'vue-demi'
9
9
  import { getThemeModeAttr } from '../../../utils'
10
- import '@dataloop-ai/icons/docs/style.css'
10
+ import '@dataloop-ai/icons/style.css'
11
11
  import { v4 } from 'uuid'
12
12
 
13
13
  export default defineComponent({
@@ -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