srcdev-nuxt-components 0.0.13 → 0.0.15
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.
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<
|
|
2
|
+
<ClientOnly>
|
|
3
3
|
<button :popovertarget class="popover-trigger" :class="[elementClasses]">
|
|
4
4
|
<slot name="trigger"></slot>
|
|
5
5
|
</button>
|
|
6
6
|
|
|
7
|
-
<dialog popover :id="popovertarget" :class="[elementClasses]">
|
|
7
|
+
<div class="dialog-popover" popover :id="popovertarget" :class="[elementClasses]">
|
|
8
8
|
<slot name="popoverCotent"></slot>
|
|
9
|
-
</
|
|
10
|
-
</
|
|
9
|
+
</div>
|
|
10
|
+
</ClientOnly>
|
|
11
11
|
</template>
|
|
12
12
|
|
|
13
13
|
<script setup lang="ts">
|
|
@@ -28,12 +28,18 @@ const { elementClasses } = useStyleClassPassthrough(props.styleClassPassthrough)
|
|
|
28
28
|
</script>
|
|
29
29
|
|
|
30
30
|
<style scoped lang="css">
|
|
31
|
+
@position-try --left {
|
|
32
|
+
inset: auto;
|
|
33
|
+
top: anchor(bottom);
|
|
34
|
+
right: anchor(right);
|
|
35
|
+
}
|
|
36
|
+
|
|
31
37
|
@layer popover-setup {
|
|
32
38
|
.popover-trigger {
|
|
33
39
|
anchor-name: v-bind(anchorName);
|
|
34
40
|
}
|
|
35
41
|
|
|
36
|
-
dialog {
|
|
42
|
+
.dialog-popover {
|
|
37
43
|
display: none;
|
|
38
44
|
position: absolute;
|
|
39
45
|
position-anchor: v-bind(anchorName);
|
|
@@ -58,10 +64,10 @@ const { elementClasses } = useStyleClassPassthrough(props.styleClassPassthrough)
|
|
|
58
64
|
}
|
|
59
65
|
}
|
|
60
66
|
|
|
61
|
-
@position-try --left {
|
|
67
|
+
/* @position-try --left {
|
|
62
68
|
inset: auto;
|
|
63
69
|
top: anchor(bottom);
|
|
64
70
|
right: anchor(right);
|
|
65
|
-
}
|
|
71
|
+
} */
|
|
66
72
|
}
|
|
67
73
|
</style>
|
package/package.json
CHANGED