- Implement unified design system tokens, 10px radius, and IRANSans typography - Modernize sidebar with Gemini-style collapsed expander, square 1:1 items, and elevated profile flyout - Standardize all modal dialogs with 16px padding, fixed header/footer, 16px medium title, and sticky bottom actions - Refactor DealFormView and CustomFieldsSection with standard UiField, UiInput, and UiSelect components - Add draggable bottom-left QuickCreate floating action button
82 lines
1.5 KiB
Vue
82 lines
1.5 KiB
Vue
<script setup lang="ts">
|
|
import UiIcon from '@/components/UiIcon.vue';
|
|
|
|
type IconName = InstanceType<typeof UiIcon>['$props']['name'];
|
|
|
|
withDefaults(
|
|
defineProps<{
|
|
title?: string;
|
|
description?: string;
|
|
icon?: IconName;
|
|
}>(),
|
|
{
|
|
title: 'موردی یافت نشد',
|
|
icon: 'search',
|
|
},
|
|
);
|
|
</script>
|
|
|
|
<template>
|
|
<div class="ui-empty-state">
|
|
<div class="icon-wrap">
|
|
<slot name="icon">
|
|
<UiIcon :name="icon" :size="32" />
|
|
</slot>
|
|
</div>
|
|
<h3 class="title">{{ title }}</h3>
|
|
<p v-if="description" class="description">{{ description }}</p>
|
|
<slot />
|
|
<div v-if="$slots.action" class="action-wrap">
|
|
<slot name="action" />
|
|
</div>
|
|
</div>
|
|
</template>
|
|
|
|
<style scoped>
|
|
.ui-empty-state {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
text-align: center;
|
|
padding: var(--sp-10) var(--sp-6);
|
|
gap: var(--sp-3);
|
|
color: var(--muted);
|
|
background: var(--surface);
|
|
border: 1px dashed var(--line-strong);
|
|
border-radius: var(--radius);
|
|
width: 100%;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.icon-wrap {
|
|
display: grid;
|
|
place-items: center;
|
|
width: 56px;
|
|
height: 56px;
|
|
border-radius: 50%;
|
|
background: var(--surface-subtle);
|
|
color: var(--muted);
|
|
margin-bottom: var(--sp-1);
|
|
}
|
|
|
|
.title {
|
|
margin: 0;
|
|
font-size: var(--fs-md);
|
|
font-weight: var(--fw-bold);
|
|
color: var(--ink);
|
|
}
|
|
|
|
.description {
|
|
margin: 0;
|
|
font-size: var(--fs-sm);
|
|
max-width: 360px;
|
|
line-height: var(--lh-relaxed);
|
|
color: var(--muted);
|
|
}
|
|
|
|
.action-wrap {
|
|
margin-top: var(--sp-2);
|
|
}
|
|
</style>
|