@dataloop-ai/components 0.20.207 → 0.20.209
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
|
@@ -90,12 +90,25 @@ export default defineComponent({
|
|
|
90
90
|
tooltip: {
|
|
91
91
|
type: String,
|
|
92
92
|
default: null
|
|
93
|
+
},
|
|
94
|
+
activeColor: {
|
|
95
|
+
type: String,
|
|
96
|
+
default: null
|
|
93
97
|
}
|
|
94
98
|
},
|
|
95
99
|
emits: ['click', 'mousemove', 'mouseup', 'mousedown'],
|
|
96
100
|
setup(props) {
|
|
97
|
-
const {
|
|
98
|
-
|
|
101
|
+
const {
|
|
102
|
+
styles,
|
|
103
|
+
color,
|
|
104
|
+
size,
|
|
105
|
+
icon,
|
|
106
|
+
svg,
|
|
107
|
+
inline,
|
|
108
|
+
svgSource,
|
|
109
|
+
tooltip,
|
|
110
|
+
activeColor
|
|
111
|
+
} = toRefs(props)
|
|
99
112
|
|
|
100
113
|
const svgIcon = ref(null)
|
|
101
114
|
const isDestroyed = ref(false)
|
|
@@ -129,6 +142,9 @@ export default defineComponent({
|
|
|
129
142
|
: color.value,
|
|
130
143
|
'dell-gray-800'
|
|
131
144
|
)
|
|
145
|
+
: 'inherit',
|
|
146
|
+
'--dl-icon-color-active': activeColor.value
|
|
147
|
+
? getColor(activeColor.value, 'dell-gray-800')
|
|
132
148
|
: 'inherit'
|
|
133
149
|
}
|
|
134
150
|
})
|
|
@@ -250,5 +266,9 @@ export default defineComponent({
|
|
|
250
266
|
display: inline-flex;
|
|
251
267
|
color: var(--dl-icon-color);
|
|
252
268
|
font-size: var(--dl-icon-font-size);
|
|
269
|
+
|
|
270
|
+
&:active {
|
|
271
|
+
color: var(--dl-icon-color-active);
|
|
272
|
+
}
|
|
253
273
|
}
|
|
254
274
|
</style>
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
</span>
|
|
28
28
|
<p
|
|
29
29
|
v-if="showValue && !indeterminate && !summary"
|
|
30
|
-
class="dl-progress-bar-
|
|
30
|
+
class="dl-progress-bar-value"
|
|
31
31
|
>
|
|
32
32
|
{{ computedValue }}{{ showPercentage ? '%' : '' }}
|
|
33
33
|
</p>
|
|
@@ -114,6 +114,12 @@ export default defineComponent({
|
|
|
114
114
|
|
|
115
115
|
<style scoped lang="scss">
|
|
116
116
|
.dl-progress-bar-label {
|
|
117
|
+
margin: 0;
|
|
118
|
+
font-size: var(--dl-font-size-body);
|
|
119
|
+
line-height: 1;
|
|
120
|
+
color: var(--dell-gray-600);
|
|
121
|
+
}
|
|
122
|
+
.dl-progress-bar-value {
|
|
117
123
|
margin: 0;
|
|
118
124
|
font-size: var(--dl-font-size-body);
|
|
119
125
|
line-height: 1;
|
|
@@ -36,6 +36,10 @@ export default defineComponent({
|
|
|
36
36
|
color: {
|
|
37
37
|
type: String,
|
|
38
38
|
default: 'dell-gray-800'
|
|
39
|
+
},
|
|
40
|
+
activeColor: {
|
|
41
|
+
type: String,
|
|
42
|
+
default: null
|
|
39
43
|
}
|
|
40
44
|
},
|
|
41
45
|
data() {
|
|
@@ -48,7 +52,10 @@ export default defineComponent({
|
|
|
48
52
|
const styles: Record<string, string | number> = {
|
|
49
53
|
color: getColor(this.color as string, 'dl-color-darker'),
|
|
50
54
|
textTransform: this.letterClass ? null : this.transform,
|
|
51
|
-
fontWeight: this.bold ? 500 : 400
|
|
55
|
+
fontWeight: this.bold ? 500 : 400,
|
|
56
|
+
'--dl-typography-color-active': this.activeColor
|
|
57
|
+
? getColor(this.activeColor as string, 'dell-gray-800')
|
|
58
|
+
: null
|
|
52
59
|
}
|
|
53
60
|
|
|
54
61
|
if (this.size && !sizes.includes(this.size)) {
|
|
@@ -120,5 +127,9 @@ export default defineComponent({
|
|
|
120
127
|
&--small {
|
|
121
128
|
font-size: var(--dl-font-size-small);
|
|
122
129
|
}
|
|
130
|
+
|
|
131
|
+
&:active {
|
|
132
|
+
color: var(--dl-typography-color-active);
|
|
133
|
+
}
|
|
123
134
|
}
|
|
124
135
|
</style>
|
|
@@ -77,12 +77,12 @@ export default defineComponent({
|
|
|
77
77
|
color: {
|
|
78
78
|
type: String,
|
|
79
79
|
required: false,
|
|
80
|
-
default: '
|
|
80
|
+
default: 'dell-gray-800'
|
|
81
81
|
},
|
|
82
82
|
backgroundColor: {
|
|
83
83
|
type: String,
|
|
84
84
|
required: false,
|
|
85
|
-
default: '
|
|
85
|
+
default: 'dell-white'
|
|
86
86
|
},
|
|
87
87
|
maxHeight: {
|
|
88
88
|
type: String,
|
|
@@ -414,7 +414,7 @@ export default defineComponent({
|
|
|
414
414
|
'--dl-tooltip-text-transform': props.capitalized
|
|
415
415
|
? 'capitalize'
|
|
416
416
|
: 'none',
|
|
417
|
-
'--dl-tooltip-border': props.border
|
|
417
|
+
'--dl-tooltip-border': props.border || 'dell-gray-200'
|
|
418
418
|
}
|
|
419
419
|
] as any
|
|
420
420
|
}
|
|
@@ -435,8 +435,9 @@ export default defineComponent({
|
|
|
435
435
|
line-height: 16px;
|
|
436
436
|
color: var(--dl-tooltip-color);
|
|
437
437
|
background: var(--dl-tooltip-background);
|
|
438
|
-
border: var(--dl-tooltip-border);
|
|
439
|
-
border-radius:
|
|
438
|
+
border: 1px solid var(--dl-tooltip-border, #eaeaea);
|
|
439
|
+
border-radius: 0px;
|
|
440
|
+
box-shadow: 0 2px 2px 0 var(--dell-shadow, rgba(0, 0, 0, 0.14));
|
|
440
441
|
text-transform: none;
|
|
441
442
|
font-family: 'Roboto', sans-serif;
|
|
442
443
|
font-weight: 400;
|