@dataloop-ai/components 0.20.266 → 0.20.268

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.266",
3
+ "version": "0.20.268",
4
4
  "exports": {
5
5
  ".": "./index.ts",
6
6
  "./models": "./models.ts",
@@ -570,7 +570,7 @@ export default defineComponent({
570
570
  margin: var(--dl-button-margin);
571
571
  border-radius: var(--dl-button-border-radius);
572
572
  font-family: var(--dl-typography-body-body2-font-family);
573
- font-size: var(--dl-button-font-size);
573
+ font-size: var(--dl-typography-body-body2-font-size);
574
574
  font-weight: var(--dl-typography-body-body2-font-weight);
575
575
  cursor: var(--dl-button-cursor);
576
576
  color: var(--dl-button-text-color);
@@ -26,6 +26,7 @@
26
26
  <slot name="actions" />
27
27
  <dl-button
28
28
  v-if="closeButton"
29
+ class="close-button"
29
30
  icon="icon-dl-close"
30
31
  icon-size="16px"
31
32
  flat
@@ -68,7 +69,7 @@ export default defineComponent({
68
69
  setup(props, { slots }) {
69
70
  const hasTitle = computed(() => !!props.title || !!slots.title)
70
71
  const hasSubtitle = computed(() => !!props.subtitle || !!slots.subtitle)
71
- const closeIconSizePadding = `0 0 0 0`
72
+ const closeIconSizePadding = `4px`
72
73
  return { hasTitle, hasSubtitle, closeIconSizePadding }
73
74
  }
74
75
  })
@@ -105,8 +106,10 @@ export default defineComponent({
105
106
  display: flex;
106
107
  gap: var(--dl-dialog-box-header-actions-gap, 4px);
107
108
  align-items: flex-start;
108
- ::v-deep button.dl-button {
109
+ .close-button ::v-deep button.dl-button {
109
110
  --dl-button-border-radius: 0;
111
+ border: none;
112
+ --dl-button-border: none;
110
113
  &:focus-visible {
111
114
  --dl-button-border-radius: 2px;
112
115
  }
@@ -1277,7 +1277,9 @@ export default defineComponent({
1277
1277
  background-color: var(--dl-color-panel-background);
1278
1278
  cursor: text;
1279
1279
 
1280
- font-size: 12px;
1280
+ font-family: var(--dl-typography-body-body2-font-family);
1281
+ font-size: var(--dl-typography-body-body2-font-size);
1282
+ font-weight: var(--dl-typography-body-body2-font-weight);
1281
1283
  line-height: 14px;
1282
1284
 
1283
1285
  border: 1px solid var(--dl-color-separator);
@@ -1338,10 +1340,10 @@ export default defineComponent({
1338
1340
  }
1339
1341
 
1340
1342
  &__textarea {
1341
- font-size: 12px;
1342
- font-weight: 400;
1343
+ font-size: var(--dl-typography-body-body2-font-size);
1344
+ font-weight: var(--dl-typography-body-body2-font-weight);
1343
1345
  line-height: 14px;
1344
- font-family: 'Roboto', sans-serif;
1346
+ font-family: var(--dl-typography-body-body2-font-family);
1345
1347
  width: 100%;
1346
1348
  border: none;
1347
1349
  outline: none;
@@ -1366,6 +1368,10 @@ export default defineComponent({
1366
1368
  color: var(--dl-color-lighter);
1367
1369
  /* In case this causes render shadowing move to use html/injection approach */
1368
1370
  content: attr(placeholder);
1371
+ display: inline-block;
1372
+ max-width: 100%;
1373
+ overflow: hidden;
1374
+ text-overflow: ellipsis;
1369
1375
  }
1370
1376
  & > * {
1371
1377
  display: flex;
@@ -7,10 +7,16 @@
7
7
  </slot>
8
8
  <dl-button
9
9
  v-if="!hideCloseButton"
10
- text-color="dl-color-darker"
11
- flat
10
+ class="close-button"
12
11
  icon="icon-dl-close"
13
- size="xl"
12
+ icon-size="16px"
13
+ flat
14
+ size="m"
15
+ text-color="var(--dell-gray-600)"
16
+ hover-bg-color="var(--dell-gray-100)"
17
+ pressed-bg-color="var(--dell-gray-200)"
18
+ hover-text-color="var(--dell-gray-800)"
19
+ pressed-text-color="var(--dell-gray-800)"
14
20
  :padding="closeIconSizePadding"
15
21
  @click="$emit('close')"
16
22
  />
@@ -38,7 +44,7 @@ export default defineComponent({
38
44
  },
39
45
  emits: ['close'],
40
46
  setup() {
41
- const closeIconSizePadding = `0 0 0 0`
47
+ const closeIconSizePadding = `4px`
42
48
  return { closeIconSizePadding }
43
49
  }
44
50
  })
@@ -51,4 +57,13 @@ export default defineComponent({
51
57
  padding: 16px;
52
58
  border-bottom: 1px solid var(--dl-color-separator);
53
59
  }
60
+ .close-button {
61
+ ::v-deep button.dl-button {
62
+ --dl-button-border-radius: 0;
63
+ border: none;
64
+ &:focus-visible {
65
+ --dl-button-border-radius: 2px;
66
+ }
67
+ }
68
+ }
54
69
  </style>
@@ -71,6 +71,7 @@
71
71
  </template>
72
72
  <dl-badge
73
73
  v-if="count"
74
+ class="toast-counter"
74
75
  with-border
75
76
  floating
76
77
  align="top"
@@ -80,14 +81,6 @@
80
81
  ? 'var(--dl-color-alert-text)'
81
82
  : 'var(--dl-color-text-buttons)'
82
83
  "
83
- style="
84
- display: grid;
85
- text-align: center;
86
- width: fit-content;
87
- padding: 3px;
88
- min-width: 1em;
89
- top: -5px;
90
- "
91
84
  >
92
85
  {{ count + 1 }}
93
86
  </dl-badge>
@@ -358,6 +351,21 @@ export default defineComponent({
358
351
  font-size: inherit;
359
352
  }
360
353
 
354
+ .toast-counter.toast-counter {
355
+ display: grid;
356
+ text-align: center;
357
+ width: fit-content;
358
+ padding: 1px 3px;
359
+ min-width: 20px;
360
+ min-height: 20px;
361
+ top: -5px;
362
+ right: -8px;
363
+ font-family: var(--dl-typography-body-body3-font-family);
364
+ font-size: var(--dl-typography-body-body3-font-size);
365
+ line-height: var(--dl-typography-body-body3-line-height);
366
+ font-weight: var(--dl-typography-body-body3-font-weight);
367
+ }
368
+
361
369
  .toast-message--pre-line {
362
370
  white-space: pre-line;
363
371
  }