@veritree/ui 0.31.0 → 0.32.0
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": "@veritree/ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.32.0",
|
|
4
4
|
"description": "veritree ui library",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "index.js",
|
|
@@ -11,9 +11,9 @@
|
|
|
11
11
|
"access": "public"
|
|
12
12
|
},
|
|
13
13
|
"dependencies": {
|
|
14
|
-
"@floating-ui/dom": "^1.0
|
|
14
|
+
"@floating-ui/dom": "^1.2.0",
|
|
15
15
|
"@linusborg/vue-simple-portal": "^0.1.5",
|
|
16
|
-
"@veritree/icons": "^0.
|
|
16
|
+
"@veritree/icons": "^0.43.0"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
19
|
"prettier": "^2.7.1",
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
<div
|
|
4
4
|
v-if="visible"
|
|
5
5
|
:id="id"
|
|
6
|
-
:class="
|
|
6
|
+
:class="
|
|
7
7
|
headless
|
|
8
8
|
? 'dialog'
|
|
9
|
-
:
|
|
10
|
-
|
|
9
|
+
: `fixed inset-0 z-50 grid grid-cols-1 grid-rows-1 p-4 md:p-8`
|
|
10
|
+
"
|
|
11
11
|
aria-modal="true"
|
|
12
12
|
@click="onClick"
|
|
13
13
|
>
|
|
@@ -46,12 +46,15 @@ export default {
|
|
|
46
46
|
|
|
47
47
|
const emit = () => this.emit();
|
|
48
48
|
|
|
49
|
+
const full = this.full;
|
|
50
|
+
|
|
49
51
|
return {
|
|
50
52
|
componentId,
|
|
51
53
|
hide,
|
|
52
54
|
emit,
|
|
53
55
|
registerContent,
|
|
54
56
|
registerOverlay,
|
|
57
|
+
full,
|
|
55
58
|
};
|
|
56
59
|
},
|
|
57
60
|
};
|
|
@@ -70,6 +73,10 @@ export default {
|
|
|
70
73
|
type: Boolean,
|
|
71
74
|
default: false,
|
|
72
75
|
},
|
|
76
|
+
full: {
|
|
77
|
+
type: Boolean,
|
|
78
|
+
default: false,
|
|
79
|
+
},
|
|
73
80
|
},
|
|
74
81
|
|
|
75
82
|
data() {
|
|
@@ -11,11 +11,11 @@
|
|
|
11
11
|
<div
|
|
12
12
|
v-show="visible"
|
|
13
13
|
:id="id"
|
|
14
|
-
:class="
|
|
14
|
+
:class="
|
|
15
15
|
headless
|
|
16
16
|
? 'dialog-content'
|
|
17
|
-
:
|
|
18
|
-
|
|
17
|
+
: `relative m-auto flex flex-col overflow-auto rounded bg-white p-6 focus:outline-none lg:p-8 ${classes}`
|
|
18
|
+
"
|
|
19
19
|
tabindex="-1"
|
|
20
20
|
@keydown.esc.stop="hide"
|
|
21
21
|
>
|
|
@@ -47,6 +47,12 @@ export default {
|
|
|
47
47
|
id() {
|
|
48
48
|
return `dialog-content-${this.apiDialog().componentId}`;
|
|
49
49
|
},
|
|
50
|
+
full() {
|
|
51
|
+
return this.apiDialog().full;
|
|
52
|
+
},
|
|
53
|
+
classes() {
|
|
54
|
+
return this.full ? 'h-screen w-screen' : 'max-h-full max-w-full ';
|
|
55
|
+
},
|
|
50
56
|
},
|
|
51
57
|
|
|
52
58
|
mounted() {
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
:aria-describedby="ariaDescribedBy"
|
|
5
5
|
class="flex min-w-min"
|
|
6
6
|
@mouseenter="onMouseenter"
|
|
7
|
-
@mouseleave="
|
|
7
|
+
@mouseleave="onmouseout"
|
|
8
8
|
>
|
|
9
9
|
<slot />
|
|
10
10
|
</div>
|
|
@@ -55,7 +55,7 @@ export default {
|
|
|
55
55
|
}, this.apiTooltip().delayDuration);
|
|
56
56
|
},
|
|
57
57
|
|
|
58
|
-
|
|
58
|
+
onmouseout() {
|
|
59
59
|
clearTimeout(tooltipTriggerTimeout);
|
|
60
60
|
this.cancel();
|
|
61
61
|
},
|