@veritree/ui 0.64.0 → 0.64.2
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,11 +1,9 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<VTButton
|
|
3
|
+
:class="[headless ? 'drawer-close' : '-mr-2 ml-auto shrink-0 text-inherit']"
|
|
4
|
+
:headless="headless"
|
|
5
|
+
:size="null"
|
|
3
6
|
variant="icon"
|
|
4
|
-
:class="{
|
|
5
|
-
'drawer-close': headless,
|
|
6
|
-
'-mr-2 ml-auto shrink-0 text-inherit': !headless,
|
|
7
|
-
}"
|
|
8
|
-
:theme="theme"
|
|
9
7
|
@click.prevent="hide"
|
|
10
8
|
><slot><IconLeft :class="{ 'rotate-180': right }" /></slot
|
|
11
9
|
></VTButton>
|
|
@@ -22,23 +20,17 @@ export default {
|
|
|
22
20
|
|
|
23
21
|
inject: ['apiDrawer'],
|
|
24
22
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
headless() {
|
|
31
|
-
return this.apiDrawer().isHeadless;
|
|
23
|
+
props: {
|
|
24
|
+
headless: {
|
|
25
|
+
type: Boolean,
|
|
26
|
+
default: false,
|
|
32
27
|
},
|
|
28
|
+
},
|
|
33
29
|
|
|
30
|
+
computed: {
|
|
34
31
|
right() {
|
|
35
32
|
return this.apiDrawer().isRight;
|
|
36
33
|
},
|
|
37
|
-
|
|
38
|
-
// temporary till button theme is implemented
|
|
39
|
-
theme() {
|
|
40
|
-
return this.dark ? 'dark' : null;
|
|
41
|
-
},
|
|
42
34
|
},
|
|
43
35
|
|
|
44
36
|
methods: {
|
|
@@ -1,5 +1,24 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<legend
|
|
2
|
+
<legend
|
|
3
|
+
:class="[
|
|
4
|
+
headless
|
|
5
|
+
? 'legend'
|
|
6
|
+
: 'mb-4 block w-full text-sm font-medium text-gray-600',
|
|
7
|
+
]"
|
|
8
|
+
>
|
|
3
9
|
<slot />
|
|
4
10
|
</legend>
|
|
5
11
|
</template>
|
|
12
|
+
|
|
13
|
+
<script>
|
|
14
|
+
export default {
|
|
15
|
+
name: 'VTLegend',
|
|
16
|
+
|
|
17
|
+
props: {
|
|
18
|
+
headless: {
|
|
19
|
+
type: Boolean,
|
|
20
|
+
default: false,
|
|
21
|
+
},
|
|
22
|
+
},
|
|
23
|
+
};
|
|
24
|
+
</script>
|