- 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
69 lines
1.3 KiB
Vue
69 lines
1.3 KiB
Vue
<script setup lang="ts">
|
|
import UiIcon from '@/components/UiIcon.vue';
|
|
|
|
withDefaults(
|
|
defineProps<{
|
|
placeholder?: string;
|
|
}>(),
|
|
{ placeholder: 'جستجو...' },
|
|
);
|
|
|
|
const model = defineModel<string>({ default: '' });
|
|
</script>
|
|
|
|
<template>
|
|
<label class="ui-search">
|
|
<span class="sr">جستجو</span>
|
|
<input
|
|
v-model="model"
|
|
type="search"
|
|
:placeholder="placeholder"
|
|
/>
|
|
<UiIcon name="search" :size="16" />
|
|
</label>
|
|
</template>
|
|
|
|
<style scoped>
|
|
.ui-search {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.45rem;
|
|
min-width: 0;
|
|
height: var(--control-h);
|
|
min-height: var(--control-h);
|
|
padding: 0 0.75rem;
|
|
background: var(--surface);
|
|
border: 1px solid var(--line);
|
|
border-radius: var(--radius);
|
|
color: var(--muted);
|
|
box-sizing: border-box;
|
|
transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
|
|
}
|
|
|
|
.ui-search input {
|
|
flex: 1;
|
|
min-width: 0;
|
|
border: 0;
|
|
outline: none;
|
|
background: transparent;
|
|
color: var(--ink);
|
|
font: inherit;
|
|
font-size: var(--fs-sm);
|
|
padding: 0;
|
|
}
|
|
|
|
.ui-search:focus-within {
|
|
outline: none;
|
|
border-color: var(--accent);
|
|
box-shadow: 0 0 0 2px var(--accent-soft);
|
|
}
|
|
|
|
.sr {
|
|
position: absolute;
|
|
width: 1px;
|
|
height: 1px;
|
|
overflow: hidden;
|
|
clip: rect(0 0 0 0);
|
|
}
|
|
</style>
|