2020-01-29 12:37:25 -07:00
|
|
|
<template>
|
|
|
|
<div class="fpezltsf" :class="{ warn }">
|
2022-11-06 19:49:47 -07:00
|
|
|
<i v-if="warn" class="ph-warning-bold ph-lg"></i>
|
|
|
|
<i v-else class="ph-info-bold ph-lg"></i>
|
2020-01-29 12:37:25 -07:00
|
|
|
<slot></slot>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
2022-09-06 03:09:17 -06:00
|
|
|
<script lang="ts" setup>
|
|
|
|
import { } from 'vue';
|
2020-01-29 12:37:25 -07:00
|
|
|
|
2022-12-06 21:12:44 -07:00
|
|
|
defineProps<{
|
2022-09-06 03:09:17 -06:00
|
|
|
warn?: boolean;
|
|
|
|
}>();
|
2020-01-29 12:37:25 -07:00
|
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
.fpezltsf {
|
|
|
|
padding: 16px;
|
|
|
|
font-size: 90%;
|
|
|
|
background: var(--infoBg);
|
|
|
|
color: var(--infoFg);
|
2021-01-11 04:38:34 -07:00
|
|
|
border-radius: var(--radius);
|
2020-01-29 12:37:25 -07:00
|
|
|
|
|
|
|
&.warn {
|
|
|
|
background: var(--infoWarnBg);
|
|
|
|
color: var(--infoWarnFg);
|
|
|
|
}
|
|
|
|
|
|
|
|
> i {
|
|
|
|
margin-right: 4px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</style>
|