@dataloop-ai/components 0.20.124 → 0.20.126

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.124",
3
+ "version": "0.20.126",
4
4
  "exports": {
5
5
  ".": "./index.ts",
6
6
  "./models": "./models.ts",
@@ -11,18 +11,12 @@
11
11
  style="padding: 0; margin-bottom: 10px"
12
12
  @click.stop.prevent="$emit('onClose')"
13
13
  />
14
- <h2
15
- v-if="hasTitle"
16
- class="title"
17
- >
14
+ <h2 v-if="hasTitle" class="title">
18
15
  <slot name="title">
19
16
  <dl-ellipsis :text="title" />
20
17
  </slot>
21
18
  </h2>
22
- <p
23
- v-if="hasSubtitle"
24
- class="subtitle"
25
- >
19
+ <p v-if="hasSubtitle" class="subtitle">
26
20
  <slot name="subtitle">
27
21
  <dl-ellipsis :text="subtitle" />
28
22
  </slot>
@@ -30,14 +24,18 @@
30
24
  </div>
31
25
  <dl-button
32
26
  v-if="closeButton"
33
- style="height: 100%; display: flex; align-items: start"
27
+ style="
28
+ --dl-button-padding: 5px;
29
+ --dl-button-bg-hover: var(--dl-color-fill-secondary);
30
+ "
34
31
  class="close-button"
35
32
  icon="icon-dl-close"
36
- size="s"
37
33
  flat
38
34
  text-color="dl-color-darker"
39
35
  @click="$emit('onClose')"
40
- />
36
+ >
37
+ <dl-tooltip :delay="800"> Close </dl-tooltip>
38
+ </dl-button>
41
39
  </div>
42
40
  </template>
43
41
 
@@ -45,12 +43,14 @@
45
43
  import { computed, defineComponent } from 'vue-demi'
46
44
  import { DlButton } from '../../../basic'
47
45
  import { DlEllipsis } from '../../../essential'
46
+ import { DlTooltip } from '../../../shared'
48
47
 
49
48
  export default defineComponent({
50
49
  name: 'DlDialogBoxHeader',
51
50
  components: {
52
51
  DlButton,
53
- DlEllipsis
52
+ DlEllipsis,
53
+ DlTooltip
54
54
  },
55
55
  props: {
56
56
  title: { type: String, default: '' },
@@ -90,5 +90,7 @@ export default defineComponent({
90
90
 
91
91
  .close-button {
92
92
  margin-top: 5px;
93
+ display: flex;
94
+ align-items: flex-start;
93
95
  }
94
96
  </style>