client/data-bridge/src/presentation/components/ProcessDialogHeader.vue
<template>
<div class="wb-ui-processdialog-header">
<!-- @slot This slot should be filled with a "safe" action, e.g. close -->
<slot name="safeAction">
<div />
</slot>
<h1 class="wb-ui-processdialog-header__title">
<!-- @slot This slot should be filled with the title of the dialog -->
<slot name="title">
<span />
</slot>
</h1>
<!-- @slot This slot should be filled with the primary action, e.g. publish -->
<slot name="primaryAction">
<div />
</slot>
</div>
</template>
<script lang="ts">
import { defineComponent } from 'vue';
/**
* A component to be used as header of dialogs in which users make their
* way through a process - i.e. there is a primary action "forward" and
* an alternative second one.
*/
export default defineComponent( {
name: 'ProcessDialogHeader',
compatConfig: { MODE: 3 },
} );
</script>
<style lang="scss">
.wb-ui-processdialog-header {
display: flex;
justify-content: space-between;
box-sizing: border-box;
border-bottom: $header-border-width solid $wmui-color-base70;
@media ( max-width: $breakpoint ) {
// on mobile, surrounding OOUI window border is gone,
// so add our own border-top
border-top: $header-border-width solid $wmui-color-base70;
}
&__title {
display: inline-flex;
align-items: center;
margin: 0;
padding: 0;
@include h5();
}
}
</style>