mirror of
https://github.com/solidtime-io/solidtime.git
synced 2026-06-06 20:37:32 +00:00
27140d4ffc
* add linter, prettier and typescript support for jetstream * add github actions for lint, build and typecheck * add composer install to build action * fix composer lock * add ext-intl and fixed php version * fix intl php extension install * add tip php extension to github npm build action * fix php version to 8.3.1 * change github php base action * fix primary button default type * updated typescript types from Team to Organization --------- Co-authored-by: Gregor Vostrak <gregorvostrak@Gregors-MacBook-Pro.local>
48 lines
1003 B
Vue
48 lines
1003 B
Vue
<script setup lang="ts">
|
|
import Modal from './Modal.vue';
|
|
|
|
const emit = defineEmits(['close']);
|
|
|
|
defineProps({
|
|
show: {
|
|
type: Boolean,
|
|
default: false,
|
|
},
|
|
maxWidth: {
|
|
type: String,
|
|
default: '2xl',
|
|
},
|
|
closeable: {
|
|
type: Boolean,
|
|
default: true,
|
|
},
|
|
});
|
|
|
|
const close = () => {
|
|
emit('close');
|
|
};
|
|
</script>
|
|
|
|
<template>
|
|
<Modal
|
|
:show="show"
|
|
:max-width="maxWidth"
|
|
:closeable="closeable"
|
|
@close="close">
|
|
<div class="px-6 py-4">
|
|
<div class="text-lg font-medium text-gray-900 dark:text-gray-100">
|
|
<slot name="title" />
|
|
</div>
|
|
|
|
<div class="mt-4 text-sm text-gray-600 dark:text-gray-400">
|
|
<slot name="content" />
|
|
</div>
|
|
</div>
|
|
|
|
<div
|
|
class="flex flex-row justify-end px-6 py-4 bg-gray-100 dark:bg-gray-800 text-end">
|
|
<slot name="footer" />
|
|
</div>
|
|
</Modal>
|
|
</template>
|