@dataloop-ai/components 0.20.189 → 0.20.191

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.189",
3
+ "version": "0.20.191",
4
4
  "exports": {
5
5
  ".": "./index.ts",
6
6
  "./models": "./models.ts",
@@ -53,6 +53,7 @@
53
53
  --dell-gray-100: #F4F4F4;
54
54
  --dell-gray-200: #eaeaea;
55
55
  --dell-gray-300: #C5C5C5;
56
+ --dell-gray-400: #9E9E9E;
56
57
  --dell-gray-500: #757575;
57
58
  --dell-gray-600: #616161;
58
59
  --dell-gray-700: #4D4D4D;
@@ -60,13 +61,18 @@
60
61
  --dell-gray-900: #252525;
61
62
  --dell-blue-100: #ebf4fb;
62
63
  --dell-blue-200: #D9EAF8;
64
+ --dell-blue-300: #94BBEA;
63
65
  --dell-blue-400: #4C9FDD;
64
66
  --dell-blue-500: #0076CE;
65
67
  --dell-blue-600: #0062AB;
66
68
  --dell-blue-700: #004E88;
69
+ --dell-blue-800: #003A65;
70
+ --dell-blue-900: #002642;
71
+ --dell-green-100: #EDF5EB;
67
72
  --dell-green-200: #DDEDD9;
68
73
  --dell-green-500: #1B8500;
69
74
  --dell-green-600: #166e00;
75
+ --dell-yellow-100: #FFFBEB;
70
76
  --dell-yellow-200: #FFF7D9;
71
77
  --dell-yellow-500: #FFC700;
72
78
  --dell-yellow-600: #E5A51A;
@@ -74,12 +80,15 @@
74
80
  --dell-orange-200: #FCE8D9;
75
81
  --dell-orange-500: #ED6400;
76
82
  --dell-orange-600: #C55300;
83
+ --dell-red-100: #F9EBEB;
77
84
  --dell-red-200: #F3D9D9;
78
85
  --dell-red-500: #AF0000;
79
86
  --dell-red-600: #910000;
80
87
  --dell-red-700: #730000;
81
88
  --dell-overlay: rgba(0, 0, 0, 0.6);
82
89
  --dell-shadow: rgba(0, 0, 0, 0.14);
90
+ --dell-teal-500: #00819e;
91
+ --dell-berry-500: #A10061;
83
92
  --dell-color-discovery: #7F3EE0;
84
93
  --dell-color-discovery-bg: #F6F2FD;
85
94
  }
@@ -24,10 +24,10 @@ body {
24
24
  :root {
25
25
  /* common */
26
26
  --dl-color-white: #FFFFFF; /* replace to --dell-white: #FFFFFF */
27
- --dl-color-black: #000;
27
+ --dl-color-black: #252525; /* replace to --dell-gray-900: #252525 */
28
28
  --dl-color-bg: #FFFFFF; /* replace to --dell-white: #FFFFFF */
29
29
  --dl-color-background: #FFFFFF; /* replace to --dell-white: #FFFFFF */
30
- --dl-color-transparent: transparent;
30
+ --dl-color-transparent: transparent; /* replace to --dell-transparent: transparent */
31
31
 
32
32
  /* fontSizes */
33
33
  --dl-font-size-h1: 30px;
@@ -40,10 +40,10 @@ body {
40
40
  --dl-font-size-small: 10px;
41
41
 
42
42
  /* shadows */
43
- --dl-menu-shadow: 0px 3px 6px rgba(16, 30, 115, 0.15);
43
+ --dl-menu-shadow: rgba(0, 0, 0, 0.14); /* replace to --dell-shadow: rgba(0, 0, 0, 0.14); */
44
44
 
45
45
  /* colors */
46
- --dl-color-tooltip-text: #fefefe;
46
+ --dl-color-tooltip-text: #FFFFFF; /* replace to --dell-white: #FFFFFF */
47
47
  --dl-color-tooltip-background: #333333; /* base color replace to --dell-gray-800: #333333 */
48
48
  --dl-color-text-darker-buttons: #333333; /* replace to --dell-gray-800: #333333 */
49
49
  --dl-color-secondary: #0076CE; /* replace to --dell-blue-500: #0076CE */
@@ -54,24 +54,24 @@ body {
54
54
  --dl-color-lighter: #757575; /* replace to --dell-gray-500: #757575 */
55
55
  --dl-color-hover: #0062AB; /* replace to --dell-blue-600: #0062AB */
56
56
  --dl-color-disabled: #757575; /* replace to --dell-gray-500: #757575 */
57
- --dl-color-fill: #0000001e;
58
- --dl-color-fill-hover: #f8f8f8;
57
+ --dl-color-fill: #ebf4fb; /* replace to --dell-gray-100: #ebf4fb */
58
+ --dl-color-fill-hover: #ebf4fb; /* replace to --dell-gray-100: #ebf4fb */
59
59
  --dl-color-separator: #C5C5C5; /* replace to --dell-gray-300: #C5C5C5 */
60
60
  --dl-color-component: #FFFFFF; /* replace to --dell-white: #FFFFFF */
61
61
  --dl-color-scrollbar: #C5C5C5; /* replace to --dell-gray-300: #C5C5C5 */
62
62
  --dl-color-body-background: #F4F4F4; /* replace to --dell-gray-100: #F4F4F4 */
63
63
  --dl-color-panel-background: #FFFFFF; /* replace to --dell-white: #FFFFFF */
64
- --dl-color-side-panel: #18195c;
64
+ --dl-color-side-panel: #FFFFFF; /* replace to --dell-white: #FFFFFF */
65
65
  --dl-color-shadow: #FFFFFF; /* replace to --dell-white: #FFFFFF */
66
66
  --dl-color-icon-default: #333333; /* replace to --dell-gray-800: #333333 */
67
- --dl-color-fill-secondary: #fbf8f8;
68
- --dl-color-fill-third: #fbfbfb;
69
- --dl-color-link: #20abfa;
70
- --dl-color-cell-background: #fffae2;
67
+ --dl-color-fill-secondary: #ebf4fb; /* replace to --dell-blue-100: #ebf4fb */
68
+ --dl-color-fill-third: #F4F4F4; /* replace to --dell-gray-100: #F4F4F4 */
69
+ --dl-color-link: #D9EAF8; /* replace to --dell-blue-600: #D9EAF8 */
70
+ --dl-color-cell-background: #F4F4F4; /* replace to --dell-gray-100: #F4F4F4 */
71
71
  --dl-color-disabled-slider: #757575; /* replace to --dell-gray-500: #757575 */
72
72
  --dl-color-text-800: #252525; /* replace to --dell-gray-900: #252525 */
73
- --q-color-positive: #38d079;
74
- --q-color-warning: #e1b75b;
73
+ --q-color-positive: #38d079; /* not in use */
74
+ --q-color-warning: #FFC700; /* replace to --dell-yellow-500: #FFC700 */
75
75
 
76
76
  /* alert colors */
77
77
  --dl-color-negative: #AF0000; /* replace to --dell-red-500: #AF0000 */
@@ -89,19 +89,19 @@ body {
89
89
  --dl-color-info-base: #EBF4FB; /* replace to --dell-blue-100: #EBF4FB */
90
90
  --dl-color-info-highlight: #FFFFFF; /* replace to --dell-white: #FFFFFF */
91
91
 
92
- --dl-color-chart-brush: #eef1ff;
92
+ --dl-color-chart-brush: #eef1ff; /* not in use */
93
93
 
94
- --dl-date-picker-shadow: 0px 3px 6px #101e7326;
94
+ --dl-date-picker-shadow: 0px 3px 6px #101e7326; /* not in use */
95
95
  --dl-date-picker-selected-strip: #0076CE; /* base color replace to --dell-blue-500: #0076CE */
96
- --dl-date-picker-selected-date: #8fa0ff;
96
+ --dl-date-picker-selected-date: #8fa0ff; /* not in use in OA, maybe in use in other repos*/
97
97
 
98
98
  /* DlJsonEditor based on atom one themes */
99
- --dl-json-editor-key-color: #a626a4;
100
- --dl-json-editor-background-color: #fafafa;
101
- --dl-json-editor-panel-background: #fafafa;
102
- --dl-json-editor-value-color-boolean: #0184bb;
103
- --dl-json-editor-value-color-number: #c18401;
104
- --dl-json-editor-value-color-string: #50a14f;
99
+ --dl-json-editor-key-color: #a626a4; /* remain the same color */
100
+ --dl-json-editor-background-color: #FFFFFF; /* replace to --dell-white: #FFFFFF */
101
+ --dl-json-editor-panel-background: #FFFFFF; /* replace to --dell-white: #FFFFFF */
102
+ --dl-json-editor-value-color-boolean: #00819e; /* replace to dell-teal-500: #00819e */
103
+ --dl-json-editor-value-color-number: #ED6400; /* replace to dell-orange-500: #ED6400 */
104
+ --dl-json-editor-value-color-string: #1B8500; /* replace to --dell-green-500: #1B8500 */
105
105
 
106
106
  --dl-color-discovery: #7F3EE0; /* replace to --dell-color-discovery: #7F3EE0 */
107
107
  --dl-color-discovery-bg: #F6F2FD; /* replace to --dell-color-discovery-bg: #F6F2FD */
@@ -16,8 +16,12 @@
16
16
  @click="onClick"
17
17
  @dblclick="onDblClick"
18
18
  @mousedown="onMouseDown"
19
+ @mouseup="mouseDown = false"
19
20
  @mouseenter="mouseOver = true"
20
- @mouseleave="mouseOver = false"
21
+ @mouseleave="
22
+ mouseOver = false;
23
+ mouseDown = false
24
+ "
21
25
  >
22
26
  <dl-tooltip
23
27
  v-if="!tooltip && overflow && isOverflowing && hasLabel"
@@ -219,6 +223,7 @@ export default defineComponent({
219
223
  const buttonLabelRef = ref(null)
220
224
  const { hasEllipsis } = useSizeObserver(buttonLabelRef)
221
225
  const mouseOver = ref(false)
226
+ const mouseDown = ref(false)
222
227
 
223
228
  const buttonClass = computed(() => {
224
229
  const classes = ['dl-button']
@@ -239,6 +244,7 @@ export default defineComponent({
239
244
  isOverflowing: hasEllipsis,
240
245
  buttonClass,
241
246
  mouseOver,
247
+ mouseDown,
242
248
  buttonTimeout
243
249
  }
244
250
  },
@@ -264,6 +270,21 @@ export default defineComponent({
264
270
  textColor: this.iconColor ?? this.textColor
265
271
  })
266
272
  }
273
+
274
+ if (this.mouseDown) {
275
+ if (this.colorsObject?.PRESSED?.TEXT) {
276
+ return this.colorsObject.PRESSED.TEXT
277
+ }
278
+ if (!this.flat) {
279
+ return 'var(--dl-button-text-color)'
280
+ }
281
+ return setTextOnPressed({
282
+ disabled: this.disabled,
283
+ flat: this.flat,
284
+ textColor: this.iconColor ?? this.textColor
285
+ })
286
+ }
287
+
267
288
  if (this.mouseOver) {
268
289
  return (
269
290
  this.hoverTextColor ??
@@ -416,8 +437,10 @@ export default defineComponent({
416
437
  color: this.color
417
438
  }),
418
439
  '--dl-button-text-color-pressed': setTextOnPressed({
419
- shaded: this.shaded,
420
- outlined: this.shaded
440
+ disabled: this.disabled,
441
+ flat: this.flat,
442
+ color: this.color,
443
+ textColor: this.textColor
421
444
  }),
422
445
  '--dl-button-bg-pressed':
423
446
  this.pressedBgColor ??
@@ -497,6 +520,7 @@ export default defineComponent({
497
520
  }
498
521
  }
499
522
 
523
+ this.mouseDown = true
500
524
  this.$emit('mousedown', e)
501
525
  }
502
526
  }
@@ -542,6 +566,7 @@ export default defineComponent({
542
566
  transition: var(--dl-button-text-transition-duration);
543
567
  }
544
568
  }
569
+ outline: none;
545
570
 
546
571
  &--dense {
547
572
  border: none;
@@ -562,6 +587,11 @@ export default defineComponent({
562
587
  color: var(--dl-button-text-color-hover) !important;
563
588
  }
564
589
  }
590
+ &:focus-visible {
591
+ outline: 1px solid var(--dell-blue-500);
592
+ outline-offset: 2px;
593
+ border-radius: var(--dl-button-border-radius);
594
+ }
565
595
  }
566
596
 
567
597
  .dl-button-content {
@@ -213,10 +213,14 @@ export const setBgOnPressed = ({ shaded }: Partial<DlButtonProps>) => {
213
213
  }
214
214
 
215
215
  export const setTextOnPressed = ({
216
- shaded,
217
- outlined
216
+ disabled,
217
+ flat,
218
+ textColor
218
219
  }: Partial<DlButtonProps>) => {
219
- return 'var(--dl-button-text-color)'
220
+ if (textColor) return getColor(textColor, 'dl-color-secondary')
221
+ if (disabled) return getColor('', 'dl-color-disabled')
222
+ if (!flat) return 'var(--dl-button-text-color)'
223
+ return 'var(--dl-color-secondary)'
220
224
  }
221
225
 
222
226
  export const setBorderOnPressed = ({