@dataloop-ai/components 0.20.229 → 0.20.231

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.20.229",
3
+ "version": "0.20.231",
4
4
  "exports": {
5
5
  ".": "./index.ts",
6
6
  "./models": "./models.ts",
@@ -253,6 +253,9 @@ export default defineComponent({
253
253
  ]
254
254
  },
255
255
  getIconColor(): string {
256
+ if (this.flat && this.hasIcon && !this.hasContent && this.icon === 'icon-dl-info') {
257
+ return null
258
+ }
256
259
  if (this.disabled) {
257
260
  if (this.disabledIconColor) {
258
261
  return this.disabledIconColor
@@ -303,7 +306,15 @@ export default defineComponent({
303
306
  return this.textColor
304
307
  }
305
308
 
306
- return null
309
+ return setTextColor({
310
+ disabled: this.disabled,
311
+ outlined: this.outlined,
312
+ flat: this.flat,
313
+ color: this.color,
314
+ filled: this.filled,
315
+ shaded: this.shaded,
316
+ textColor: this.textColor
317
+ })
307
318
  },
308
319
  computedStyles(): Record<string, string> {
309
320
  return isString(this.styles)
@@ -110,17 +110,10 @@ export default defineComponent({
110
110
  const logger = loggerFactory('dl-icon')
111
111
  const isHovered = ref(false)
112
112
 
113
- const hasDefaultSlot = computed<boolean>(() => {
114
- const slot = slots.default
115
- if (!slot) return false
116
- return slot().length > 0
117
- })
118
-
119
113
  const isInfoDefault = computed<boolean>(() => {
120
114
  return (
121
115
  icon.value === 'icon-dl-info' &&
122
- !color.value &&
123
- !hasDefaultSlot.value
116
+ !color.value
124
117
  )
125
118
  })
126
119
 
@@ -129,7 +129,7 @@ export default defineComponent({
129
129
  }
130
130
 
131
131
  &:active {
132
- color: var(--dl-typography-color-active);
132
+ color: var(--dl-typography-color-active, var(--dl-typography-color));
133
133
  }
134
134
  }
135
135
  </style>
@@ -339,6 +339,30 @@
339
339
  tooltip="test me please"
340
340
  />
341
341
  </div>
342
+ <div style="display: flex; justify-content: center; margin-top: 50px">
343
+ <dl-button
344
+ id="import-info-dl-button"
345
+ flat
346
+ icon="icon-dl-info"
347
+ size="s"
348
+ />
349
+ </div>
350
+ <div style="display: flex; justify-content: center; margin-top: 20px">
351
+ <dl-button
352
+ flat
353
+ icon="icon-dl-info"
354
+ size="s"
355
+ icon-color="dell-green-200"
356
+ text-color="dell-yellow-800"
357
+ >
358
+ Info Button
359
+ <dl-menu hover-group="info-menu">
360
+ <div style="padding: 10px; text-align: center">
361
+ Hello World
362
+ </div>
363
+ </dl-menu>
364
+ </dl-button>
365
+ </div>
342
366
  </div>
343
367
  </template>
344
368