2022-04-29 00:23:28 +02:00
|
|
|
<template>
|
2024-08-27 18:19:52 +02:00
|
|
|
<div class="fixed z-40 top-0 left-0 w-full h-full flex items-center justify-center p-6 bg-black/60 backdrop-blur-sm">
|
|
|
|
<div
|
|
|
|
class="relative rounded-lg p-8 bg-zinc-800 shadow-2xl shadow-black border border-zinc-700 border-solid w-full max-h-full flex flex-col overflow-auto"
|
|
|
|
:class="full ? 'h-full' : innerWidth"
|
|
|
|
>
|
2023-12-25 19:36:13 +01:00
|
|
|
<div class="absolute top-0 right-0 mt-6 mr-6 flex space-x-6">
|
|
|
|
<slot name="actions"></slot>
|
|
|
|
<a href="#" @click.prevent="$emit('close')">
|
|
|
|
<ui-sprite src="close" class="text-zinc-400 w-6 h-6"></ui-sprite>
|
|
|
|
</a>
|
|
|
|
</div>
|
2023-12-16 22:59:25 +01:00
|
|
|
<h3 v-if="heading" class="font-semibold text-primary-200 text-xl" v-html="heading"></h3>
|
2024-09-13 01:29:46 +02:00
|
|
|
<div class="text-primary-100 group is-popup grow flex flex-col mt-4">
|
2024-02-08 23:09:51 +01:00
|
|
|
<suspense>
|
|
|
|
<div>
|
|
|
|
<slot></slot>
|
|
|
|
</div>
|
|
|
|
<template #fallback>
|
2024-06-29 11:27:08 +02:00
|
|
|
<ui-loading></ui-loading>
|
2024-02-08 23:09:51 +01:00
|
|
|
</template>
|
|
|
|
</suspense>
|
2022-04-29 00:23:28 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
export default {
|
|
|
|
props: {
|
2023-12-16 22:59:25 +01:00
|
|
|
heading: {
|
|
|
|
type: String,
|
|
|
|
default: () => '',
|
|
|
|
},
|
|
|
|
innerWidth: {
|
|
|
|
default: () => 'max-w-xl',
|
|
|
|
type: String,
|
|
|
|
},
|
2023-12-25 19:36:13 +01:00
|
|
|
full: {
|
|
|
|
type: Boolean,
|
|
|
|
default: () => false,
|
|
|
|
},
|
2022-04-29 00:23:28 +02:00
|
|
|
},
|
|
|
|
};
|
|
|
|
</script>
|