@dataloop-ai/components 0.18.101 → 0.18.102

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.18.101",
3
+ "version": "0.18.102",
4
4
  "exports": {
5
5
  ".": "./index.ts",
6
6
  "./models": "./models.ts",
@@ -213,6 +213,9 @@ export default defineComponent({
213
213
  ]
214
214
  },
215
215
  getIconColor(): string {
216
+ if (this.disabled) {
217
+ return 'dl-color-disabled'
218
+ }
216
219
  if (this.mouseOver) {
217
220
  return 'dl-color-hover'
218
221
  }
@@ -37,7 +37,10 @@
37
37
  <dl-ellipsis :text="suffixPreview" />
38
38
  </slot>
39
39
  </span>
40
- <div class="dl-label__suffix">
40
+ <div
41
+ v-if="hint || hasHintSlot || hasActions"
42
+ class="dl-label__suffix"
43
+ >
41
44
  <div class="dl-label__suffix-slot">
42
45
  <slot
43
46
  v-if="mouseOver"
@@ -138,6 +141,11 @@ export default defineComponent({
138
141
  const hasSuffixSlot = computed(() => {
139
142
  return !!slots['suffix']
140
143
  })
144
+
145
+ const hasHintSlot = computed(() => {
146
+ return !!slots['hint']
147
+ })
148
+
141
149
  const prefixPreview = computed(() => {
142
150
  return prefix.value?.trim() ?? ''
143
151
  })
@@ -151,6 +159,7 @@ export default defineComponent({
151
159
  styles,
152
160
  hasActions,
153
161
  hasSuffixSlot,
162
+ hasHintSlot,
154
163
  prefixPreview,
155
164
  suffixPreview
156
165
  }