@dataloop-ai/components 0.20.267 → 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
|
@@ -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 = `
|
|
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
|
}
|
|
@@ -7,10 +7,16 @@
|
|
|
7
7
|
</slot>
|
|
8
8
|
<dl-button
|
|
9
9
|
v-if="!hideCloseButton"
|
|
10
|
-
|
|
11
|
-
flat
|
|
10
|
+
class="close-button"
|
|
12
11
|
icon="icon-dl-close"
|
|
13
|
-
size="
|
|
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 = `
|
|
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>
|